@public-ui/sample-react 3.0.0-rc.0 → 3.0.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. package/README.md +8 -0
  2. package/dist/1068.js +2 -0
  3. package/dist/1219.js +2 -0
  4. package/dist/1258.js +2 -0
  5. package/dist/1298.js +2 -0
  6. package/dist/{572.js → 136.js} +2 -2
  7. package/dist/1416.js +2 -0
  8. package/dist/1676.js +2 -0
  9. package/dist/1718.js +2 -0
  10. package/dist/1744.js +2 -0
  11. package/dist/1791.js +1 -1
  12. package/dist/2078.js +2 -0
  13. package/dist/2115.js +2 -0
  14. package/dist/2195.js +2 -0
  15. package/dist/3021.js +2 -0
  16. package/dist/3027.js +2 -0
  17. package/dist/3186.js +2 -0
  18. package/dist/{7473.js → 3241.js} +2 -2
  19. package/dist/364.js +2 -0
  20. package/dist/{2450.js → 3758.js} +2 -2
  21. package/dist/3836.js +2 -0
  22. package/dist/3872.js +2 -0
  23. package/dist/3879.js +2 -0
  24. package/dist/3949.js +2 -0
  25. package/dist/4211.js +2 -0
  26. package/dist/4350.js +2 -0
  27. package/dist/4390.js +2 -0
  28. package/dist/{2986.js → 4566.js} +2 -2
  29. package/dist/4662.js +2 -0
  30. package/dist/4928.js +2 -0
  31. package/dist/5000.js +2 -0
  32. package/dist/5151.js +2 -0
  33. package/dist/5171.js +2 -0
  34. package/dist/{6740.js → 5792.js} +2 -2
  35. package/dist/5876.js +2 -0
  36. package/dist/597.js +2 -0
  37. package/dist/6451.js +2 -0
  38. package/dist/{9148.js → 6480.js} +2 -2
  39. package/dist/{1325.js → 6577.js} +2 -2
  40. package/dist/6983.js +2 -0
  41. package/dist/7084.js +2 -0
  42. package/dist/7225.js +2 -0
  43. package/dist/7267.js +2 -0
  44. package/dist/7779.js +2 -0
  45. package/dist/7958.js +2 -0
  46. package/dist/7997.js +2 -0
  47. package/dist/8069.js +2 -0
  48. package/dist/8177.js +1 -1
  49. package/dist/8212.js +2 -0
  50. package/dist/8243.js +2 -0
  51. package/dist/8283.js +2 -0
  52. package/dist/8478.js +2 -0
  53. package/dist/851.js +2 -0
  54. package/dist/8573.js +2 -0
  55. package/dist/8728.js +2 -0
  56. package/dist/8808.js +2 -0
  57. package/dist/8999.js +2 -0
  58. package/dist/9068.js +2 -0
  59. package/dist/9130.js +2 -0
  60. package/dist/9162.js +2 -0
  61. package/dist/9219.js +2 -0
  62. package/dist/9423.js +2 -0
  63. package/dist/9430.js +2 -0
  64. package/dist/9542.js +2 -0
  65. package/dist/{7141.js → 9929.js} +2 -2
  66. package/dist/993.js +2 -0
  67. package/dist/index.html +0 -1
  68. package/dist/main.css +2 -2
  69. package/dist/main.js +1 -1
  70. package/package.json +15 -15
  71. package/public/index.html +0 -1
  72. package/src/App.tsx +0 -2
  73. package/src/components/handout/basic.tsx +18 -23
  74. package/src/components/image/basic.tsx +1 -1
  75. package/src/components/input-date/partials/minMax.tsx +3 -3
  76. package/src/components/input-date/partials/variants.tsx +1 -1
  77. package/src/components/input-date/show-hide-msg.tsx +0 -1
  78. package/src/components/input-text/partials/cases.tsx +1 -1
  79. package/src/components/input-text/smart-button.tsx +14 -1
  80. package/src/components/input-text/text-formatter.tsx +1 -2
  81. package/src/components/link/access-key.tsx +1 -3
  82. package/src/components/nav/basic.tsx +8 -2
  83. package/src/components/nav/horizontal.tsx +2 -2
  84. package/src/components/pagination/basic.tsx +1 -1
  85. package/src/components/select/partials/cases.tsx +16 -1
  86. package/src/components/single-select/partials/cases.tsx +5 -4
  87. package/src/components/single-select/partials/variants.tsx +5 -5
  88. package/src/components/split-button/basic.tsx +2 -2
  89. package/src/components/table/column-alignment.tsx +12 -12
  90. package/src/components/table/complex-headers.tsx +3 -3
  91. package/src/components/table/horizontal-scrollbar.tsx +12 -6
  92. package/src/components/table/multi-sort.tsx +4 -4
  93. package/src/components/table/pagination-position.tsx +23 -5
  94. package/src/components/table/render-cell.tsx +4 -4
  95. package/src/components/table/sort-data.tsx +14 -16
  96. package/src/components/table/stateful-with-selection.tsx +5 -5
  97. package/src/components/table/stateful-with-single-selection.tsx +5 -5
  98. package/src/components/table/stateless-with-selection.tsx +6 -6
  99. package/src/components/table/stateless-with-single-selection.tsx +6 -6
  100. package/src/components/table/with-footer.tsx +3 -3
  101. package/src/components/table/with-pagination.tsx +3 -3
  102. package/src/react.main.tsx +2 -7
  103. package/src/scenarios/appointment-form/PersonalInformationForm.tsx +4 -1
  104. package/src/scenarios/horizontal-scrollbar-advanced/TableHorizontalScrollbarAdvanced.tsx +2 -2
  105. package/src/shares/routes.ts +0 -6
  106. package/src/style.scss +4 -0
  107. package/dist/1073.js +0 -2
  108. package/dist/1392.js +0 -2
  109. package/dist/1604.js +0 -2
  110. package/dist/175.js +0 -2
  111. package/dist/178.js +0 -2
  112. package/dist/2220.js +0 -2
  113. package/dist/2444.js +0 -2
  114. package/dist/2794.js +0 -2
  115. package/dist/3030.js +0 -2
  116. package/dist/3270.js +0 -2
  117. package/dist/3340.js +0 -2
  118. package/dist/3392.js +0 -2
  119. package/dist/3529.js +0 -2
  120. package/dist/3756.js +0 -2
  121. package/dist/3960.js +0 -2
  122. package/dist/399.js +0 -2
  123. package/dist/4145.js +0 -2
  124. package/dist/4539.js +0 -2
  125. package/dist/4563.js +0 -2
  126. package/dist/4571.js +0 -2
  127. package/dist/5260.js +0 -2
  128. package/dist/5301.js +0 -2
  129. package/dist/5333.js +0 -2
  130. package/dist/5523.js +0 -2
  131. package/dist/5551.js +0 -2
  132. package/dist/5575.js +0 -2
  133. package/dist/5665.js +0 -2
  134. package/dist/5873.js +0 -2
  135. package/dist/5879.js +0 -2
  136. package/dist/5964.js +0 -2
  137. package/dist/618.js +0 -2
  138. package/dist/623.js +0 -2
  139. package/dist/643.js +0 -2
  140. package/dist/6610.js +0 -2
  141. package/dist/6618.js +0 -2
  142. package/dist/6711.js +0 -2
  143. package/dist/6786.js +0 -2
  144. package/dist/685.js +0 -2
  145. package/dist/6950.js +0 -2
  146. package/dist/7055.js +0 -2
  147. package/dist/7106.js +0 -2
  148. package/dist/7146.js +0 -2
  149. package/dist/7287.js +0 -2
  150. package/dist/7599.js +0 -2
  151. package/dist/7648.js +0 -2
  152. package/dist/7668.js +0 -2
  153. package/dist/7855.js +0 -2
  154. package/dist/7965.js +0 -2
  155. package/dist/8165.js +0 -2
  156. package/dist/8306.js +0 -2
  157. package/dist/8543.js +0 -2
  158. package/dist/866.js +0 -2
  159. package/dist/8859.js +0 -2
  160. package/dist/904.js +0 -2
  161. package/dist/9522.js +0 -2
  162. package/dist/9625.js +0 -2
  163. package/dist/9625.js.LICENSE.txt +0 -3
  164. package/dist/971.js +0 -2
  165. package/dist/971.js.LICENSE.txt +0 -3
  166. package/dist/9712.js +0 -2
  167. package/dist/9712.js.LICENSE.txt +0 -3
  168. package/dist/976.js +0 -2
  169. package/dist/976.js.LICENSE.txt +0 -3
  170. package/dist/982.js +0 -2
  171. package/dist/982.js.LICENSE.txt +0 -3
  172. package/dist/986.js +0 -2
  173. package/dist/986.js.LICENSE.txt +0 -3
  174. package/src/components/button-group/basic.tsx +0 -34
  175. package/src/components/button-group/routes.ts +0 -8
  176. package/src/components/indented-text/basic.tsx +0 -37
  177. package/src/components/indented-text/routes.ts +0 -8
  178. package/src/components/link-group/basic.tsx +0 -23
  179. package/src/components/link-group/horizontal.tsx +0 -23
  180. package/src/components/link-group/routes.ts +0 -10
  181. /package/dist/{1073.js.LICENSE.txt → 1068.js.LICENSE.txt} +0 -0
  182. /package/dist/{1325.js.LICENSE.txt → 1219.js.LICENSE.txt} +0 -0
  183. /package/dist/{1392.js.LICENSE.txt → 1258.js.LICENSE.txt} +0 -0
  184. /package/dist/{1604.js.LICENSE.txt → 1298.js.LICENSE.txt} +0 -0
  185. /package/dist/{175.js.LICENSE.txt → 136.js.LICENSE.txt} +0 -0
  186. /package/dist/{178.js.LICENSE.txt → 1416.js.LICENSE.txt} +0 -0
  187. /package/dist/{2220.js.LICENSE.txt → 1676.js.LICENSE.txt} +0 -0
  188. /package/dist/{2444.js.LICENSE.txt → 1718.js.LICENSE.txt} +0 -0
  189. /package/dist/{2450.js.LICENSE.txt → 1744.js.LICENSE.txt} +0 -0
  190. /package/dist/{2794.js.LICENSE.txt → 2078.js.LICENSE.txt} +0 -0
  191. /package/dist/{2986.js.LICENSE.txt → 2115.js.LICENSE.txt} +0 -0
  192. /package/dist/{3030.js.LICENSE.txt → 2195.js.LICENSE.txt} +0 -0
  193. /package/dist/{3270.js.LICENSE.txt → 3021.js.LICENSE.txt} +0 -0
  194. /package/dist/{3340.js.LICENSE.txt → 3027.js.LICENSE.txt} +0 -0
  195. /package/dist/{3392.js.LICENSE.txt → 3186.js.LICENSE.txt} +0 -0
  196. /package/dist/{3529.js.LICENSE.txt → 3241.js.LICENSE.txt} +0 -0
  197. /package/dist/{3756.js.LICENSE.txt → 364.js.LICENSE.txt} +0 -0
  198. /package/dist/{3960.js.LICENSE.txt → 3758.js.LICENSE.txt} +0 -0
  199. /package/dist/{399.js.LICENSE.txt → 3836.js.LICENSE.txt} +0 -0
  200. /package/dist/{4145.js.LICENSE.txt → 3872.js.LICENSE.txt} +0 -0
  201. /package/dist/{4539.js.LICENSE.txt → 3879.js.LICENSE.txt} +0 -0
  202. /package/dist/{4563.js.LICENSE.txt → 3949.js.LICENSE.txt} +0 -0
  203. /package/dist/{4571.js.LICENSE.txt → 4211.js.LICENSE.txt} +0 -0
  204. /package/dist/{5260.js.LICENSE.txt → 4350.js.LICENSE.txt} +0 -0
  205. /package/dist/{5301.js.LICENSE.txt → 4390.js.LICENSE.txt} +0 -0
  206. /package/dist/{5333.js.LICENSE.txt → 4566.js.LICENSE.txt} +0 -0
  207. /package/dist/{5523.js.LICENSE.txt → 4662.js.LICENSE.txt} +0 -0
  208. /package/dist/{5551.js.LICENSE.txt → 4928.js.LICENSE.txt} +0 -0
  209. /package/dist/{5575.js.LICENSE.txt → 5000.js.LICENSE.txt} +0 -0
  210. /package/dist/{5665.js.LICENSE.txt → 5151.js.LICENSE.txt} +0 -0
  211. /package/dist/{572.js.LICENSE.txt → 5171.js.LICENSE.txt} +0 -0
  212. /package/dist/{5873.js.LICENSE.txt → 5792.js.LICENSE.txt} +0 -0
  213. /package/dist/{5879.js.LICENSE.txt → 5876.js.LICENSE.txt} +0 -0
  214. /package/dist/{5964.js.LICENSE.txt → 597.js.LICENSE.txt} +0 -0
  215. /package/dist/{618.js.LICENSE.txt → 6451.js.LICENSE.txt} +0 -0
  216. /package/dist/{623.js.LICENSE.txt → 6480.js.LICENSE.txt} +0 -0
  217. /package/dist/{643.js.LICENSE.txt → 6577.js.LICENSE.txt} +0 -0
  218. /package/dist/{6610.js.LICENSE.txt → 6983.js.LICENSE.txt} +0 -0
  219. /package/dist/{6618.js.LICENSE.txt → 7084.js.LICENSE.txt} +0 -0
  220. /package/dist/{6711.js.LICENSE.txt → 7225.js.LICENSE.txt} +0 -0
  221. /package/dist/{6740.js.LICENSE.txt → 7267.js.LICENSE.txt} +0 -0
  222. /package/dist/{6786.js.LICENSE.txt → 7779.js.LICENSE.txt} +0 -0
  223. /package/dist/{685.js.LICENSE.txt → 7958.js.LICENSE.txt} +0 -0
  224. /package/dist/{6950.js.LICENSE.txt → 7997.js.LICENSE.txt} +0 -0
  225. /package/dist/{7055.js.LICENSE.txt → 8069.js.LICENSE.txt} +0 -0
  226. /package/dist/{7106.js.LICENSE.txt → 8212.js.LICENSE.txt} +0 -0
  227. /package/dist/{7141.js.LICENSE.txt → 8243.js.LICENSE.txt} +0 -0
  228. /package/dist/{7146.js.LICENSE.txt → 8283.js.LICENSE.txt} +0 -0
  229. /package/dist/{7287.js.LICENSE.txt → 8478.js.LICENSE.txt} +0 -0
  230. /package/dist/{7473.js.LICENSE.txt → 851.js.LICENSE.txt} +0 -0
  231. /package/dist/{7599.js.LICENSE.txt → 8573.js.LICENSE.txt} +0 -0
  232. /package/dist/{7648.js.LICENSE.txt → 8728.js.LICENSE.txt} +0 -0
  233. /package/dist/{7668.js.LICENSE.txt → 8808.js.LICENSE.txt} +0 -0
  234. /package/dist/{7855.js.LICENSE.txt → 8999.js.LICENSE.txt} +0 -0
  235. /package/dist/{7965.js.LICENSE.txt → 9068.js.LICENSE.txt} +0 -0
  236. /package/dist/{8165.js.LICENSE.txt → 9130.js.LICENSE.txt} +0 -0
  237. /package/dist/{8306.js.LICENSE.txt → 9162.js.LICENSE.txt} +0 -0
  238. /package/dist/{8543.js.LICENSE.txt → 9219.js.LICENSE.txt} +0 -0
  239. /package/dist/{866.js.LICENSE.txt → 9423.js.LICENSE.txt} +0 -0
  240. /package/dist/{8859.js.LICENSE.txt → 9430.js.LICENSE.txt} +0 -0
  241. /package/dist/{904.js.LICENSE.txt → 9542.js.LICENSE.txt} +0 -0
  242. /package/dist/{9148.js.LICENSE.txt → 9929.js.LICENSE.txt} +0 -0
  243. /package/dist/{9522.js.LICENSE.txt → 993.js.LICENSE.txt} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@public-ui/sample-react",
3
- "version": "3.0.0-rc.0",
3
+ "version": "3.0.0-rc.2",
4
4
  "description": "This app contains samples for the KoliBri/Public UI",
5
5
  "license": "EUPL-1.2",
6
6
  "repository": {
@@ -11,16 +11,16 @@
11
11
  "@leanup/stack": "1.3.54",
12
12
  "@leanup/stack-react": "1.3.54",
13
13
  "@leanup/stack-webpack": "1.3.54",
14
- "@playwright/test": "1.49.0",
14
+ "@playwright/test": "1.49.1",
15
15
  "@stencil/core": "4.22.3",
16
- "@types/node": "ts5.6",
16
+ "@types/node": "ts5.7",
17
17
  "@types/react": "18.3.4",
18
- "@types/react-dom": "18.3.1",
19
- "@typescript-eslint/eslint-plugin": "8.17.0",
20
- "@typescript-eslint/parser": "8.17.0",
18
+ "@types/react-dom": "18.3.5",
19
+ "@typescript-eslint/eslint-plugin": "8.18.0",
20
+ "@typescript-eslint/parser": "8.18.0",
21
21
  "@unocss/preset-uno": "0.58.9",
22
22
  "@unocss/webpack": "0.58.9",
23
- "adopted-style-sheets": "1.1.6",
23
+ "adopted-style-sheets": "1.1.7",
24
24
  "ajv": "8.17.1",
25
25
  "chromedriver": "130.0.4",
26
26
  "cpy-cli": "5.0.0",
@@ -34,7 +34,7 @@
34
34
  "eslint-plugin-react": "7.37.2",
35
35
  "file-loader": "6.2.0",
36
36
  "formik": "2.4.6",
37
- "knip": "5.39.2",
37
+ "knip": "5.40.0",
38
38
  "less-loader": "12.2.0",
39
39
  "mini-css-extract-plugin": "2.9.2",
40
40
  "nightwatch-axe-verbose": "2.3.1",
@@ -50,15 +50,15 @@
50
50
  "sass-loader": "16.0.4",
51
51
  "string-replace-loader": "3.1.0",
52
52
  "tslib": "2.8.1",
53
- "typescript": "5.6.3",
54
- "webpack": "5.97.0",
53
+ "typescript": "5.7.2",
54
+ "webpack": "5.97.1",
55
55
  "webpack-cli": "5.1.4",
56
- "webpack-dev-server": "5.1.0",
56
+ "webpack-dev-server": "5.2.0",
57
57
  "world_countries_lists": "2.9.0",
58
- "yup": "1.4.0",
59
- "@public-ui/react": "3.0.0-rc.0",
60
- "@public-ui/themes": "3.0.0-rc.0",
61
- "@public-ui/components": "3.0.0-rc.0"
58
+ "yup": "1.5.0",
59
+ "@public-ui/components": "3.0.0-rc.2",
60
+ "@public-ui/themes": "3.0.0-rc.2",
61
+ "@public-ui/react": "3.0.0-rc.2"
62
62
  },
63
63
  "files": [
64
64
  ".eslintignore",
package/public/index.html CHANGED
@@ -6,7 +6,6 @@
6
6
  <meta name="description" content="Webapp demonstrating KolBri-components with React." />
7
7
  <meta name="viewport" content="width=device-width, initial-scale=1" />
8
8
  <link rel="shortcut icon" type="image/x-icon" href="assets/kolibri.ico" />
9
- <link rel="stylesheet" href="assets/bundes/style.css" />
10
9
  <link rel="stylesheet" href="assets/codicons/codicon.css" />
11
10
  <link rel="stylesheet" href="assets/fontawesome-free/css/all.min.css" />
12
11
  <link rel="stylesheet" href="assets/icofont/icofont.min.css" />
package/src/App.tsx CHANGED
@@ -91,8 +91,6 @@ const getRouteTree = (routes: MyRoutes): ReturnType<typeof Route>[] => {
91
91
  const ROUTE_LIST = getRouteList(ROUTES);
92
92
  const ROUTE_TREE = getRouteTree(ROUTES);
93
93
 
94
- console.log('ROUTE_LIST', ROUTE_LIST);
95
-
96
94
  const componentList: Map<string, Option<string>> = new Map();
97
95
  ROUTE_LIST.forEach((route) => {
98
96
  const routeSplit = route.split('/');
@@ -29,7 +29,7 @@ import {
29
29
  KolNav,
30
30
  KolProgress,
31
31
  KolSelect,
32
- KolTable,
32
+ KolTableStateful,
33
33
  KolTabs,
34
34
  KolTextarea,
35
35
  KolVersion,
@@ -73,16 +73,14 @@ const TABLE_HEADERS: KoliBriTableHeaders = {
73
73
  el.appendChild(renderElement);
74
74
  getRoot(renderElement).render(<KolButtonWrapper _label={cell.label} style={{ fontSize: '75%' }} />);
75
75
  },
76
- sort: (data) => {
77
- return data.sort((first, second) => {
78
- if ((first as TableDataType).monday < (second as TableDataType).monday) {
79
- return -1;
80
- }
81
- if ((first as TableDataType).monday > (second as TableDataType).monday) {
82
- return 1;
83
- }
84
- return 0;
85
- });
76
+ compareFn: (first, second) => {
77
+ if ((first as TableDataType).monday < (second as TableDataType).monday) {
78
+ return -1;
79
+ }
80
+ if ((first as TableDataType).monday > (second as TableDataType).monday) {
81
+ return 1;
82
+ }
83
+ return 0;
86
84
  },
87
85
  sortDirection: 'ASC',
88
86
  textAlign: 'right',
@@ -97,16 +95,14 @@ const TABLE_HEADERS: KoliBriTableHeaders = {
97
95
  el.appendChild(renderElement);
98
96
  getRoot(renderElement).render(<KolBadge _color="#060" _label={cell.label}></KolBadge>);
99
97
  },
100
- sort: (data) => {
101
- return data.sort((first, second) => {
102
- if ((first as TableDataType).tuesday < (second as TableDataType).tuesday) {
103
- return -1;
104
- }
105
- if ((first as TableDataType).tuesday > (second as TableDataType).tuesday) {
106
- return 1;
107
- }
108
- return 0;
109
- });
98
+ compareFn: (first, second) => {
99
+ if ((first as TableDataType).tuesday < (second as TableDataType).tuesday) {
100
+ return -1;
101
+ }
102
+ if ((first as TableDataType).tuesday > (second as TableDataType).tuesday) {
103
+ return 1;
104
+ }
105
+ return 0;
110
106
  },
111
107
  sortDirection: 'DESC',
112
108
  },
@@ -430,7 +426,6 @@ export const HandoutBasic: FC = () => {
430
426
  />
431
427
  </div>
432
428
  {/* <KolSkipNav></KolSkipNav> */}
433
- {/* <KolLinkGroup _label=""></KolLinkGroup> */}
434
429
  <div>
435
430
  <KolBreadcrumb
436
431
  _label="Breadcrumb aus Text-Links"
@@ -476,7 +471,7 @@ export const HandoutBasic: FC = () => {
476
471
  </KolCard>
477
472
  <KolCard className="col-span-6 sm:col-span-6 md:col-span-4 xl:col-span-5" _label="Table with Pagination" _level={2}>
478
473
  <div slot="" className="grid gap-2 p-2">
479
- <KolTable _label="Table" _headers={TABLE_HEADERS} _data={TABLE_DATA} _pagination></KolTable>
474
+ <KolTableStateful _label="Table" _headers={TABLE_HEADERS} _data={TABLE_DATA} _pagination></KolTableStateful>
480
475
  </div>
481
476
  </KolCard>
482
477
  </div>
@@ -9,6 +9,6 @@ export const ImageBasic: FC = () => (
9
9
  <p>KolImage renders an image. The sample shows an image with alternative text.</p>
10
10
  </SampleDescription>
11
11
 
12
- <KolImage className="w-80%" _src="abgrenzung.jpg" _alt="Darstellung des KoliBri-Theming" />
12
+ <KolImage className="w-image" _src="abgrenzung.jpg" _alt="Darstellung des KoliBri-Theming" />
13
13
  </>
14
14
  );
@@ -1,8 +1,8 @@
1
- import React, { forwardRef } from 'react';
1
+ import React from 'react';
2
2
  import { KolInputDate } from '@public-ui/react';
3
3
  import type { Components } from '@public-ui/components';
4
4
 
5
- export const InputDateMinMaxCases = forwardRef<HTMLKolInputDateElement, Components.KolInputDate>(function InputDateCases(props) {
5
+ export const InputDateMinMaxCases = (props: Components.KolInputDate) => {
6
6
  const minDateIso = '2024-09-26';
7
7
  const maxDateIso = '2024-09-27';
8
8
 
@@ -38,4 +38,4 @@ export const InputDateMinMaxCases = forwardRef<HTMLKolInputDateElement, Componen
38
38
  <KolInputDate {...props} _type="month" _label="Month with Date" _min={minDate} _max={maxDate} />
39
39
  </div>
40
40
  );
41
- });
41
+ };
@@ -17,7 +17,7 @@ export const InputDateVariants = forwardRef<HTMLKolInputDateElement, Components.
17
17
  </fieldset>
18
18
  <fieldset>
19
19
  <legend>Date (with min/max)</legend>
20
- <InputDateMinMaxCases ref={ref} {...props} />
20
+ <InputDateMinMaxCases {...props} />
21
21
  </fieldset>
22
22
  </div>
23
23
  );
@@ -37,7 +37,6 @@ export const InputDateShowHideMsg = () => {
37
37
  Error-Message visible: {showMsg && isTouched && !hideMsg ? 'Yes' : 'No'} (showMsg: {showMsg ? 'Yes' : 'No'}, isTouched: {isTouched ? 'Yes' : 'No'},
38
38
  hideMsg: {hideMsg ? 'Yes' : 'No'})
39
39
  </pre>
40
- <KolInputDate _error={showMsg ? 'error message' : undefined} _hideError={hideMsg} _label="Date (_error)" _touched={isTouched} />
41
40
  {msgTypes.map((type) => (
42
41
  <KolInputDate
43
42
  key={type}
@@ -21,6 +21,7 @@ export const InputTextCases = forwardRef<HTMLKolInputTextElement, Components.Kol
21
21
  icon: 'codicon codicon-arrow-right',
22
22
  style: {
23
23
  'font-size': '200%',
24
+ 'margin-right': 'calc(-8rem / var(--kolibri-root-font-size, 16))',
24
25
  },
25
26
  },
26
27
  }}
@@ -48,7 +49,6 @@ export const InputTextCases = forwardRef<HTMLKolInputTextElement, Components.Kol
48
49
  <KolInputText {...props} _value="Value" _disabled _label="First name (text, disabled)" />
49
50
  <KolInputText {...props} _value="Value" _label="With access key" _accessKey="c" />
50
51
  <KolInputText {...props} _value="Value" _label="With short key" _shortKey="s" />
51
- <KolInputText {...props} _value="Value" _label="With both key" _shortKey="d" _accessKey="e" />
52
52
  </div>
53
53
  );
54
54
  });
@@ -21,13 +21,26 @@ export const InputTextSmartButton = () => {
21
21
  },
22
22
  };
23
23
 
24
+ const icons = {
25
+ left: {
26
+ icon: 'codicon codicon-arrow-left',
27
+ },
28
+ right: {
29
+ icon: 'codicon codicon-arrow-right',
30
+ },
31
+ };
32
+
24
33
  return (
25
34
  <>
26
35
  <SampleDescription>
27
36
  <p>This sample shows the smart button feature for KolInputText. It allows the usage of a button inside the bnput.</p>
28
37
  </SampleDescription>
29
38
 
30
- <KolInputText _label="With Smart Button" _type="text" _smartButton={smartButton}></KolInputText>
39
+ <div className="grid gap-4">
40
+ <KolInputText _label="With Smart Button" _type="text" _smartButton={smartButton}></KolInputText>
41
+ <KolInputText _label="With Smart Button (disabled)" _disabled _type="text" _smartButton={smartButton}></KolInputText>
42
+ <KolInputText _label="With Smart Button and Icons" _type="text" _smartButton={smartButton} _icons={icons}></KolInputText>
43
+ </div>
31
44
  </>
32
45
  );
33
46
  };
@@ -111,8 +111,7 @@ export function InputTextFormatterDemo() {
111
111
  {({ field }: FieldProps<CurrencyExampleFormValues['currency']>) => (
112
112
  <div className="block mt-2">
113
113
  <NumericFormat
114
- customInput={({ type, value, onBlur, onChange, onFocus, ...other }: any) => {
115
- console.log('OTHER: ', other);
114
+ customInput={({ type, value, onBlur, onChange, onFocus }: any) => {
116
115
  return <KolInputText _label="Currency" _type={type} _value={value} _on={{ onBlur, onChange, onFocus }} />;
117
116
  }}
118
117
  displayType="input"
@@ -7,9 +7,7 @@ import { SampleDescription } from '../SampleDescription';
7
7
  export const LinkAccessKey: FC = () => (
8
8
  <>
9
9
  <SampleDescription>
10
- <p>
11
- <p>This sample shows KolLink with access key. The access keys can be used to trigger the buttons using the keyboard.</p>
12
- </p>
10
+ <p>This sample shows KolLink with access key. The access keys can be used to trigger the buttons using the keyboard.</p>
13
11
  </SampleDescription>
14
12
 
15
13
  <div className="grid gap-4">
@@ -31,11 +31,17 @@ export const NavBasic: FC = () => {
31
31
  </section>
32
32
  <section className="grid gap-4">
33
33
  <KolHeading _level={2} _label="Navigation without submenu" />
34
- <KolNav class="block w-fit" _label="Main navigation" _links={LINKS_WITHOUT_SUBMENU} _hasCompactButton _hasIconsWhenExpanded={hasIconsWhenExpanded} />
34
+ <KolNav
35
+ class="block w-fit"
36
+ _label="Navigation without submenu"
37
+ _links={LINKS_WITHOUT_SUBMENU}
38
+ _hasCompactButton
39
+ _hasIconsWhenExpanded={hasIconsWhenExpanded}
40
+ />
35
41
  </section>
36
42
  <section className="grid gap-4">
37
43
  <KolHeading _level={2} _label="Navigation with submenu" />
38
- <KolNav class="block w-fit" _label="Main navigation" _links={LINKS} _hasCompactButton _hasIconsWhenExpanded={hasIconsWhenExpanded} />
44
+ <KolNav class="block w-fit" _label="Navigation with submenu" _links={LINKS} _hasCompactButton _hasIconsWhenExpanded={hasIconsWhenExpanded} />
39
45
  </section>
40
46
  </section>
41
47
  </>
@@ -13,11 +13,11 @@ export const NavHorizontal: FC = () => (
13
13
  <section className="grid gap-8">
14
14
  <section className="grid gap-4">
15
15
  <KolHeading _level={2} _label="Navigation without submenu" />
16
- <KolNav _label="Main navigation" _links={LINKS_WITHOUT_SUBMENU} _orientation="horizontal" />
16
+ <KolNav _label="Navigation without submenu" _links={LINKS_WITHOUT_SUBMENU} _orientation="horizontal" />
17
17
  </section>
18
18
  <section className="grid gap-4">
19
19
  <KolHeading _level={2} _label="Navigation with submenu" />
20
- <KolNav _label="Main navigation" _links={LINKS} _orientation="horizontal" />
20
+ <KolNav _label="Navigation with submenu" _links={LINKS} _orientation="horizontal" />
21
21
  </section>
22
22
  </section>
23
23
  </>
@@ -25,7 +25,7 @@ export const PaginationBasic: FC = () => (
25
25
  _siblingCount={0}
26
26
  _boundaryCount={2}
27
27
  _hasButtons={false}
28
- _label="Test pagination 4"
28
+ _label="Test pagination 5"
29
29
  _on={{}}
30
30
  _pageSizeOptions={[10, 100]}
31
31
  />
@@ -4,7 +4,7 @@ import { KolSelect } from '@public-ui/react';
4
4
 
5
5
  import { ERROR_MSG } from '../../../shares/constants';
6
6
 
7
- import type { Components, SelectOption } from '@public-ui/components';
7
+ import type { Components, Optgroup, SelectOption, StencilUnknown } from '@public-ui/components';
8
8
  import { COUNTRY_OPTIONS } from '../../../shares/country';
9
9
 
10
10
  const SALUTATION_OPTIONS: SelectOption<string>[] = [
@@ -27,6 +27,19 @@ const SALUTATION_OPTIONS: SelectOption<string>[] = [
27
27
  },
28
28
  ];
29
29
 
30
+ type GroupedOptionsType = Record<string, Optgroup<StencilUnknown>>;
31
+
32
+ const groupedOptions: GroupedOptionsType = COUNTRY_OPTIONS.reduce((acc, option) => {
33
+ const firstLetter = (option.label as string).charAt(0).toUpperCase();
34
+ if (!acc[firstLetter]) {
35
+ acc[firstLetter] = { label: firstLetter, options: [] };
36
+ }
37
+ acc[firstLetter].options.push({ label: option.label, value: option.label });
38
+ return acc;
39
+ }, {} as GroupedOptionsType);
40
+
41
+ const groupedOptionsArray = Object.values(groupedOptions);
42
+
30
43
  export const SelectCases = forwardRef<HTMLKolSelectElement, Components.KolSelect>(function SelectCases(props, ref) {
31
44
  return (
32
45
  <div className="grid gap-4">
@@ -59,6 +72,8 @@ export const SelectCases = forwardRef<HTMLKolSelectElement, Components.KolSelect
59
72
  />
60
73
  <KolSelect {...props} _options={SALUTATION_OPTIONS} _label="With access key" _accessKey="c" />
61
74
  <KolSelect {...props} _options={SALUTATION_OPTIONS} _label="With short key" _shortKey="s" />
75
+ <KolSelect {...props} _options={groupedOptionsArray} _label="With grouped by first letter" _value={['Albanien']} />
76
+ <KolSelect {...props} _options={groupedOptionsArray} _label="With grouped by first letter (multiple)" _multiple _value={['Albanien']} />
62
77
  </div>
63
78
  );
64
79
  });
@@ -1,13 +1,14 @@
1
- import React, { forwardRef } from 'react';
1
+ import React from 'react';
2
2
 
3
3
  import { KolSingleSelect } from '@public-ui/react';
4
4
 
5
5
  import { ERROR_MSG, HINT_MSG } from '../../../shares/constants';
6
6
 
7
- import type { Components, Option, StencilUnknown } from '@public-ui/components';
7
+ import type { Option, StencilUnknown } from '@public-ui/components';
8
8
  import { COUNTRY_OPTIONS } from '../../../shares/country';
9
+ import type { Components } from '@public-ui/components';
9
10
 
10
- export const SingleSelectCases = forwardRef<HTMLKolSingleSelectElement, Components.KolSingleSelect>(function SingleSelectCases(props) {
11
+ export const SingleSelectCases = (props: Components.KolSingleSelect) => {
11
12
  return (
12
13
  <div className="grid gap-4">
13
14
  <KolSingleSelect
@@ -38,4 +39,4 @@ export const SingleSelectCases = forwardRef<HTMLKolSingleSelectElement, Componen
38
39
  <KolSingleSelect {...props} _label="With short key" _options={COUNTRY_OPTIONS as Option<StencilUnknown>[]} _value={'de'} _shortKey="s" />
39
40
  </div>
40
41
  );
41
- });
42
+ };
@@ -1,9 +1,9 @@
1
- import React, { forwardRef } from 'react';
1
+ import React from 'react';
2
2
 
3
3
  import { SingleSelectCases } from './cases';
4
-
5
4
  import type { Components } from '@public-ui/components';
6
- export const SingleSelectVariants = forwardRef<HTMLKolSingleSelectElement, Components.KolSingleSelect>(function SingleSelectVariant(props, ref) {
5
+
6
+ export const SingleSelectVariants = (props: Components.KolSingleSelect) => {
7
7
  return (
8
8
  <div className="grid md:grid-cols-2 gap-4">
9
9
  <fieldset>
@@ -12,8 +12,8 @@ export const SingleSelectVariants = forwardRef<HTMLKolSingleSelectElement, Compo
12
12
  </fieldset>
13
13
  <fieldset>
14
14
  <legend>Text (hideLabel)</legend>
15
- <SingleSelectCases ref={ref} {...props} _hideLabel />
15
+ <SingleSelectCases {...props} _hideLabel />
16
16
  </fieldset>
17
17
  </div>
18
18
  );
19
- });
19
+ };
@@ -27,10 +27,10 @@ export const SplitButtonBasic: FC = () => {
27
27
 
28
28
  <div className="flex gap-4">
29
29
  <KolSplitButton _label="Only the arrow opens" _on={{ onClick: handleButtonClick }}>
30
- Dropdown-Inhalt
30
+ Dropdown contents
31
31
  </KolSplitButton>
32
32
  <KolSplitButton _label="Button without visible label" _hideLabel _icons="codicon codicon-git-pull-request">
33
- Dropdown-Inhalt
33
+ Dropdown contents
34
34
  </KolSplitButton>
35
35
  </div>
36
36
  </>
@@ -1,22 +1,22 @@
1
1
  import type { FC } from 'react';
2
2
  import React from 'react';
3
3
 
4
- import { KolHeading, KolTable } from '@public-ui/react';
4
+ import { KolHeading, KolTableStateful } from '@public-ui/react';
5
5
 
6
6
  import { SampleDescription } from '../SampleDescription';
7
7
 
8
8
  const DATA = [{ left: 'Left Example', center: 'Center Example', right: 'Right Example' }];
9
- const genericNonSorter = <T,>(data: T): T => data;
9
+ const genericNonSorter = () => 0;
10
10
 
11
11
  export const TableColumnAlignment: FC = () => (
12
12
  <>
13
13
  <SampleDescription>
14
- <p>This sample shows KolTable with columns headers and data in different text alignments.</p>
14
+ <p>This sample shows KolTableStateful with columns headers and data in different text alignments.</p>
15
15
  </SampleDescription>
16
16
 
17
17
  <section className="w-full flex flex-col">
18
18
  <KolHeading _label="Simple table" _level={3}></KolHeading>
19
- <KolTable
19
+ <KolTableStateful
20
20
  _label="Table for demonstration purposes with different text align properties"
21
21
  _headers={{
22
22
  horizontal: [
@@ -33,14 +33,14 @@ export const TableColumnAlignment: FC = () => (
33
33
  />
34
34
 
35
35
  <KolHeading _label="Table with sortable columns" _level={3} className="block mt-6"></KolHeading>
36
- <KolTable
36
+ <KolTableStateful
37
37
  _label="Table for demonstration purposes with sortable columns"
38
38
  _headers={{
39
39
  horizontal: [
40
40
  [
41
- { label: 'left', key: 'left', textAlign: 'left', sort: genericNonSorter },
42
- { label: 'center', key: 'center', textAlign: 'center', sort: genericNonSorter },
43
- { label: 'right', key: 'right', textAlign: 'right', sort: genericNonSorter },
41
+ { label: 'left', key: 'left', textAlign: 'left', compareFn: genericNonSorter },
42
+ { label: 'center', key: 'center', textAlign: 'center', compareFn: genericNonSorter },
43
+ { label: 'right', key: 'right', textAlign: 'right', compareFn: genericNonSorter },
44
44
  ],
45
45
  ],
46
46
  }}
@@ -50,13 +50,13 @@ export const TableColumnAlignment: FC = () => (
50
50
  />
51
51
 
52
52
  <KolHeading _label="Table some sortable columns" _level={3} className="block mt-6"></KolHeading>
53
- <KolTable
53
+ <KolTableStateful
54
54
  _label="Table for demonstration purposes with some but not all columns sortable"
55
55
  _headers={{
56
56
  horizontal: [
57
57
  [
58
- { label: 'left', key: 'left', textAlign: 'left', sort: genericNonSorter },
59
- { label: 'center', key: 'center', textAlign: 'center', sort: genericNonSorter },
58
+ { label: 'left', key: 'left', textAlign: 'left', compareFn: genericNonSorter },
59
+ { label: 'center', key: 'center', textAlign: 'center', compareFn: genericNonSorter },
60
60
  { label: 'right', key: 'right', textAlign: 'right' },
61
61
  ],
62
62
  ],
@@ -67,7 +67,7 @@ export const TableColumnAlignment: FC = () => (
67
67
  />
68
68
 
69
69
  <KolHeading _label="Table with vertical heading" _level={3} className="block mt-6"></KolHeading>
70
- <KolTable
70
+ <KolTableStateful
71
71
  _label="Table for demonstration purposes with vertical heading"
72
72
  _headers={{
73
73
  horizontal: [
@@ -1,16 +1,16 @@
1
1
  import type { FC } from 'react';
2
2
  import React from 'react';
3
- import { KolTable } from '@public-ui/react';
3
+ import { KolTableStateful } from '@public-ui/react';
4
4
  import { SampleDescription } from '../SampleDescription';
5
5
 
6
6
  export const TableComplexHeaders: FC = () => (
7
7
  <>
8
8
  <SampleDescription>
9
- <p>This sample shows KolTable using vertical and horizontal headers, applying colspan and rowspan.</p>
9
+ <p>This sample shows KolTableStateful using vertical and horizontal headers, applying colspan and rowspan.</p>
10
10
  </SampleDescription>
11
11
 
12
12
  <section className="w-full flex flex-col">
13
- <KolTable
13
+ <KolTableStateful
14
14
  _label="Business hours"
15
15
  _data={[
16
16
  {
@@ -1,7 +1,7 @@
1
1
  import type { FC } from 'react';
2
2
  import React, { useState } from 'react';
3
3
 
4
- import { KolHeading, KolInputCheckbox, KolTable } from '@public-ui/react';
4
+ import { KolHeading, KolInputCheckbox, KolTableStateful } from '@public-ui/react';
5
5
 
6
6
  import { SampleDescription } from '../SampleDescription';
7
7
 
@@ -26,15 +26,15 @@ export const TableHorizontalScrollbar: FC = () => {
26
26
  <>
27
27
  <SampleDescription>
28
28
  <p>
29
- This sample shows KolTable with and without horizontal scrollbars. When a scrollbar is present, it should be possible to focus the table container and
30
- to scroll it using arrow keys.
29
+ This sample shows KolTableStateful with and without horizontal scrollbars. When a scrollbar is present, it should be possible to focus the table
30
+ container and to scroll it using arrow keys.
31
31
  </p>
32
32
  </SampleDescription>
33
33
 
34
34
  <section className="w-full flex flex-col gap-4">
35
35
  <KolHeading _label="Table with scrollbar" _level={2} />
36
36
 
37
- <KolTable
37
+ <KolTableStateful
38
38
  _label="Table for demonstration purposes with horizontal scrollbar."
39
39
  _minWidth={hasWidthRestriction ? '600px' : 'auto'}
40
40
  _headers={HEADERS}
@@ -45,7 +45,7 @@ export const TableHorizontalScrollbar: FC = () => {
45
45
 
46
46
  <KolHeading _label="Empty Table with scrollbar" _level={3} />
47
47
 
48
- <KolTable
48
+ <KolTableStateful
49
49
  _label="Table for demonstration purposes with horizontal scrollbar with auto minWidth."
50
50
  _minWidth={hasWidthRestriction ? '600px' : 'auto'}
51
51
  _headers={HEADERS}
@@ -70,7 +70,13 @@ export const TableHorizontalScrollbar: FC = () => {
70
70
  <i>Scrollbar appears on very small viewport sizes</i>
71
71
  </p>
72
72
 
73
- <KolTable _label="Table for demonstration purposes without horizontal scrollbar" _minWidth="600px" _headers={HEADERS} _data={DATA} className="block" />
73
+ <KolTableStateful
74
+ _label="Table for demonstration purposes without horizontal scrollbar"
75
+ _minWidth="600px"
76
+ _headers={HEADERS}
77
+ _data={DATA}
78
+ className="block"
79
+ />
74
80
  </section>
75
81
  </>
76
82
  );
@@ -1,7 +1,7 @@
1
1
  import type { FC } from 'react';
2
2
  import React, { useState } from 'react';
3
3
 
4
- import { KolHeading, KolInputCheckbox, KolTable } from '@public-ui/react';
4
+ import { KolHeading, KolInputCheckbox, KolTableStateful } from '@public-ui/react';
5
5
  import type { KoliBriTableHeaders, KoliBriTableDataType } from '@public-ui/components';
6
6
  import type { Data } from './test-data';
7
7
  import { DATA } from './test-data';
@@ -74,7 +74,7 @@ export const MultiSortTable: FC = () => {
74
74
  return (
75
75
  <>
76
76
  <SampleDescription>
77
- <p>This sample shows KolTable with multi-sort functionality, allowing sorting by both &quot;order&quot; and &quot;date&quot; columns.</p>
77
+ <p>This sample shows KolTableStateful with multi-sort functionality, allowing sorting by both &quot;order&quot; and &quot;date&quot; columns.</p>
78
78
  </SampleDescription>
79
79
 
80
80
  <section className="w-full grid gap-4">
@@ -86,7 +86,7 @@ export const MultiSortTable: FC = () => {
86
86
  _variant="switch"
87
87
  _on={{ onChange: (_, value) => setAllowMultiSortVertical(Boolean(value)) }}
88
88
  ></KolInputCheckbox>
89
- <KolTable
89
+ <KolTableStateful
90
90
  _label="Sort Table with Order and Date"
91
91
  _data={DATA.slice(0, 10)}
92
92
  _headers={HEADERS_VERTICAL}
@@ -102,7 +102,7 @@ export const MultiSortTable: FC = () => {
102
102
  _variant="switch"
103
103
  _on={{ onChange: (_, value) => setAllowMultiSortHorizontal(Boolean(value)) }}
104
104
  ></KolInputCheckbox>
105
- <KolTable
105
+ <KolTableStateful
106
106
  _label="Sort Table with Order and Date"
107
107
  _data={DATA}
108
108
  _headers={HEADERS_HORIZONTAL}