@public-ui/sample-react 3.0.0-rc.1 → 3.0.0-rc.10

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 (584) hide show
  1. package/dist/1006.js +2 -0
  2. package/dist/1114.js +2 -0
  3. package/dist/1752.js +2 -0
  4. package/dist/1932.js +2 -0
  5. package/dist/2069.js +2 -0
  6. package/dist/2212.js +2 -0
  7. package/dist/2231.js +2 -0
  8. package/dist/2321.js +2 -0
  9. package/dist/2596.js +2 -0
  10. package/dist/2827.js +2 -0
  11. package/dist/2894.js +2 -0
  12. package/dist/3099.js +2 -0
  13. package/dist/3151.js +2 -0
  14. package/dist/3203.js +2 -0
  15. package/dist/3540.js +2 -0
  16. package/dist/373.js +2 -0
  17. package/dist/3918.js +2 -0
  18. package/dist/3920.js +2 -0
  19. package/dist/4030.js +2 -0
  20. package/dist/4048.js +2 -0
  21. package/dist/4201.js +2 -0
  22. package/dist/4260.js +2 -0
  23. package/dist/4361.js +2 -0
  24. package/dist/4587.js +2 -0
  25. package/dist/4611.js +2 -0
  26. package/dist/4641.js +2 -0
  27. package/dist/4876.js +2 -0
  28. package/dist/5143.js +2 -0
  29. package/dist/5249.js +2 -0
  30. package/dist/5301.js +1 -1
  31. package/dist/5690.js +2 -0
  32. package/dist/5746.js +2 -0
  33. package/dist/{2450.js → 6047.js} +2 -2
  34. package/dist/6066.js +2 -0
  35. package/dist/6256.js +2 -0
  36. package/dist/6304.js +2 -0
  37. package/dist/6781.js +2 -0
  38. package/dist/6790.js +2 -0
  39. package/dist/6984.js +2 -0
  40. package/dist/7013.js +2 -0
  41. package/dist/7178.js +2 -0
  42. package/dist/7347.js +2 -0
  43. package/dist/740.js +2 -0
  44. package/dist/7444.js +2 -0
  45. package/dist/7533.js +2 -0
  46. package/dist/7535.js +2 -0
  47. package/dist/775.js +2 -0
  48. package/dist/8137.js +2 -0
  49. package/dist/8180.js +2 -0
  50. package/dist/8192.js +2 -0
  51. package/dist/8246.js +1 -0
  52. package/dist/833.js +2 -0
  53. package/dist/8378.js +2 -0
  54. package/dist/8605.js +2 -0
  55. package/dist/8625.js +2 -0
  56. package/dist/8840.js +2 -0
  57. package/dist/907.js +2 -0
  58. package/dist/9108.js +2 -0
  59. package/dist/9255.js +2 -0
  60. package/dist/9322.js +2 -0
  61. package/dist/9581.js +2 -0
  62. package/dist/9719.js +2 -0
  63. package/dist/9731.js +2 -0
  64. package/dist/9907.js +2 -0
  65. package/dist/9930.js +2 -0
  66. package/dist/9938.js +2 -0
  67. package/dist/index.html +1 -0
  68. package/dist/main.css +3 -3
  69. package/dist/main.js +1 -1
  70. package/dist/main.js.LICENSE.txt +2 -2
  71. package/package.json +33 -25
  72. package/public/index.html +1 -0
  73. package/src/App.tsx +1 -3
  74. package/src/components/SampleColumns.tsx +10 -0
  75. package/src/components/SampleDescription.tsx +27 -15
  76. package/src/components/Sidebar.tsx +29 -10
  77. package/src/components/badge/basic.tsx +1 -1
  78. package/src/components/badge/button.tsx +1 -1
  79. package/src/components/button/baselined.tsx +1 -1
  80. package/src/components/button/partials/cases.tsx +2 -2
  81. package/src/components/button/short-key.tsx +104 -3
  82. package/src/components/combobox/partials/variants.tsx +3 -2
  83. package/src/components/drawer/basic.tsx +9 -25
  84. package/src/components/drawer/controlled.tsx +0 -8
  85. package/src/components/form/error-list.tsx +66 -24
  86. package/src/components/handout/basic.tsx +25 -30
  87. package/src/components/icon/basic.tsx +2 -1
  88. package/src/components/input-checkbox/partials/variants.tsx +5 -4
  89. package/src/components/input-color/partials/cases.tsx +4 -2
  90. package/src/components/input-color/partials/variants.tsx +3 -2
  91. package/src/components/input-date/partials/cases.tsx +7 -4
  92. package/src/components/input-date/partials/minMax.tsx +3 -3
  93. package/src/components/input-date/partials/variants.tsx +4 -3
  94. package/src/components/input-date/show-hide-msg.tsx +1 -2
  95. package/src/components/input-email/partials/cases.tsx +6 -3
  96. package/src/components/input-email/partials/variants.tsx +3 -2
  97. package/src/components/input-file/partials/cases.tsx +6 -3
  98. package/src/components/input-file/partials/variants.tsx +3 -2
  99. package/src/components/input-number/partials/variants.tsx +3 -2
  100. package/src/components/input-password/partials/cases.tsx +8 -5
  101. package/src/components/input-password/partials/variants.tsx +3 -2
  102. package/src/components/input-radio/partials/variants.tsx +11 -8
  103. package/src/components/input-range/partials/cases.tsx +6 -3
  104. package/src/components/input-range/partials/variants.tsx +3 -2
  105. package/src/components/input-text/{hide-errors.tsx → hide-msg.tsx} +5 -5
  106. package/src/components/input-text/partials/cases.tsx +1 -1
  107. package/src/components/input-text/partials/variants.tsx +3 -2
  108. package/src/components/input-text/routes.ts +2 -2
  109. package/src/components/input-text/smart-button.tsx +14 -1
  110. package/src/components/input-text/text-formatter.tsx +1 -2
  111. package/src/components/link/access-key.tsx +1 -3
  112. package/src/components/link/short-key.tsx +1 -1
  113. package/src/components/link-button/aria-description.tsx +1 -1
  114. package/src/components/link-button/basic.tsx +8 -10
  115. package/src/components/modal/basic.tsx +28 -12
  116. package/src/components/nav/basic.tsx +8 -2
  117. package/src/components/nav/horizontal.tsx +2 -2
  118. package/src/components/pagination/basic.tsx +1 -1
  119. package/src/components/popover-button/basic.tsx +55 -0
  120. package/src/components/popover-button/routes.ts +8 -0
  121. package/src/components/progress/basic.tsx +12 -5
  122. package/src/components/select/partials/cases.tsx +22 -4
  123. package/src/components/select/partials/variants.tsx +3 -2
  124. package/src/components/single-select/partials/cases.tsx +8 -4
  125. package/src/components/single-select/partials/variants.tsx +8 -7
  126. package/src/components/split-button/basic.tsx +2 -2
  127. package/src/components/table/column-alignment.tsx +16 -12
  128. package/src/components/table/complex-headers.tsx +4 -3
  129. package/src/components/table/horizontal-scrollbar.tsx +12 -6
  130. package/src/components/table/interactive-child-elements.tsx +2 -0
  131. package/src/components/table/multi-sort.tsx +6 -4
  132. package/src/components/table/pagination-position.tsx +26 -5
  133. package/src/components/table/predefined-settings.tsx +41 -0
  134. package/src/components/table/render-cell.tsx +5 -5
  135. package/src/components/table/routes.ts +6 -4
  136. package/src/components/table/sort-data.tsx +16 -18
  137. package/src/components/table/stateful-with-selection.tsx +10 -6
  138. package/src/components/table/stateful-with-single-selection.tsx +6 -5
  139. package/src/components/table/stateless-with-selection.tsx +11 -7
  140. package/src/components/table/stateless-with-single-selection.tsx +9 -6
  141. package/src/components/table/stateless.tsx +1 -0
  142. package/src/components/table/with-footer.tsx +4 -3
  143. package/src/components/table/with-pagination.tsx +3 -3
  144. package/src/components/textarea/partials/cases.tsx +9 -4
  145. package/src/components/textarea/partials/variants.tsx +3 -2
  146. package/src/components/tree/basic.tsx +2 -1
  147. package/src/react.main.tsx +4 -9
  148. package/src/scenarios/appointment-form/PersonalInformationForm.tsx +4 -1
  149. package/src/scenarios/change-tabindex.tsx +24 -22
  150. package/src/scenarios/horizontal-scrollbar-advanced/TableHorizontalScrollbarAdvanced.tsx +2 -2
  151. package/src/scenarios/horizontal-scrollbar-advanced/layout.scss +4 -4
  152. package/src/scenarios/input-group-with-error.tsx +4 -4
  153. package/src/scenarios/routes.ts +2 -0
  154. package/src/scenarios/same-height-of-all-interactive-elements.tsx +62 -0
  155. package/src/shares/longOptions.ts +15 -0
  156. package/src/shares/routes.ts +3 -7
  157. package/src/shares/theme.ts +4 -8
  158. package/src/style.scss +17 -6
  159. package/unocss.config.ts +67 -68
  160. package/webpack.config.js +13 -2
  161. package/dist/1073.js +0 -2
  162. package/dist/1325.js +0 -2
  163. package/dist/1392.js +0 -2
  164. package/dist/1604.js +0 -2
  165. package/dist/175.js +0 -2
  166. package/dist/178.js +0 -2
  167. package/dist/1791.js +0 -2
  168. package/dist/2220.js +0 -2
  169. package/dist/2444.js +0 -2
  170. package/dist/2671.js +0 -2
  171. package/dist/2986.js +0 -2
  172. package/dist/3030.js +0 -2
  173. package/dist/3270.js +0 -2
  174. package/dist/3340.js +0 -2
  175. package/dist/3392.js +0 -2
  176. package/dist/3529.js +0 -2
  177. package/dist/3756.js +0 -2
  178. package/dist/3960.js +0 -2
  179. package/dist/399.js +0 -2
  180. package/dist/4145.js +0 -2
  181. package/dist/4288.js +0 -2
  182. package/dist/4539.js +0 -2
  183. package/dist/4563.js +0 -2
  184. package/dist/4571.js +0 -2
  185. package/dist/5260.js +0 -2
  186. package/dist/5333.js +0 -2
  187. package/dist/5523.js +0 -2
  188. package/dist/5551.js +0 -2
  189. package/dist/5575.js +0 -2
  190. package/dist/5665.js +0 -2
  191. package/dist/572.js +0 -2
  192. package/dist/5873.js +0 -2
  193. package/dist/5879.js +0 -2
  194. package/dist/5964.js +0 -2
  195. package/dist/6005.js +0 -2
  196. package/dist/618.js +0 -2
  197. package/dist/623.js +0 -2
  198. package/dist/643.js +0 -2
  199. package/dist/6610.js +0 -2
  200. package/dist/6618.js +0 -2
  201. package/dist/6711.js +0 -2
  202. package/dist/6740.js +0 -2
  203. package/dist/6786.js +0 -2
  204. package/dist/685.js +0 -2
  205. package/dist/6950.js +0 -2
  206. package/dist/7055.js +0 -2
  207. package/dist/7106.js +0 -2
  208. package/dist/7141.js +0 -2
  209. package/dist/7146.js +0 -2
  210. package/dist/7287.js +0 -2
  211. package/dist/7599.js +0 -2
  212. package/dist/7648.js +0 -2
  213. package/dist/7668.js +0 -2
  214. package/dist/7855.js +0 -2
  215. package/dist/8165.js +0 -2
  216. package/dist/8177.js +0 -2
  217. package/dist/8306.js +0 -2
  218. package/dist/8543.js +0 -2
  219. package/dist/866.js +0 -2
  220. package/dist/8859.js +0 -2
  221. package/dist/904.js +0 -2
  222. package/dist/9148.js +0 -2
  223. package/dist/9522.js +0 -2
  224. package/dist/9625.js +0 -2
  225. package/dist/9625.js.LICENSE.txt +0 -3
  226. package/dist/971.js +0 -2
  227. package/dist/971.js.LICENSE.txt +0 -3
  228. package/dist/9712.js +0 -2
  229. package/dist/9712.js.LICENSE.txt +0 -3
  230. package/dist/976.js +0 -2
  231. package/dist/976.js.LICENSE.txt +0 -3
  232. package/dist/982.js +0 -2
  233. package/dist/982.js.LICENSE.txt +0 -3
  234. package/dist/986.js +0 -2
  235. package/dist/986.js.LICENSE.txt +0 -3
  236. package/dist/assets/README.md +0 -1
  237. package/dist/assets/fontawesome-free/LICENSE.txt +0 -165
  238. package/dist/assets/fontawesome-free/css/all.css +0 -7831
  239. package/dist/assets/fontawesome-free/css/all.min.css +0 -6
  240. package/dist/assets/fontawesome-free/css/brands.css +0 -1432
  241. package/dist/assets/fontawesome-free/css/brands.min.css +0 -6
  242. package/dist/assets/fontawesome-free/css/fontawesome.css +0 -6338
  243. package/dist/assets/fontawesome-free/css/fontawesome.min.css +0 -6
  244. package/dist/assets/fontawesome-free/css/regular.css +0 -19
  245. package/dist/assets/fontawesome-free/css/regular.min.css +0 -6
  246. package/dist/assets/fontawesome-free/css/solid.css +0 -19
  247. package/dist/assets/fontawesome-free/css/solid.min.css +0 -6
  248. package/dist/assets/fontawesome-free/css/svg-with-js.css +0 -634
  249. package/dist/assets/fontawesome-free/css/svg-with-js.min.css +0 -6
  250. package/dist/assets/fontawesome-free/css/v4-font-face.css +0 -26
  251. package/dist/assets/fontawesome-free/css/v4-font-face.min.css +0 -6
  252. package/dist/assets/fontawesome-free/css/v4-shims.css +0 -2146
  253. package/dist/assets/fontawesome-free/css/v4-shims.min.css +0 -6
  254. package/dist/assets/fontawesome-free/css/v5-font-face.css +0 -22
  255. package/dist/assets/fontawesome-free/css/v5-font-face.min.css +0 -6
  256. package/dist/assets/fontawesome-free/webfonts/fa-brands-400.ttf +0 -0
  257. package/dist/assets/fontawesome-free/webfonts/fa-brands-400.woff2 +0 -0
  258. package/dist/assets/fontawesome-free/webfonts/fa-regular-400.ttf +0 -0
  259. package/dist/assets/fontawesome-free/webfonts/fa-regular-400.woff2 +0 -0
  260. package/dist/assets/fontawesome-free/webfonts/fa-solid-900.ttf +0 -0
  261. package/dist/assets/fontawesome-free/webfonts/fa-solid-900.woff2 +0 -0
  262. package/dist/assets/fontawesome-free/webfonts/fa-v4compatibility.ttf +0 -0
  263. package/dist/assets/fontawesome-free/webfonts/fa-v4compatibility.woff2 +0 -0
  264. package/dist/assets/icofont/demo.html +0 -18939
  265. package/dist/assets/icofont/fonts/icofont.eot +0 -0
  266. package/dist/assets/icofont/fonts/icofont.svg +0 -2105
  267. package/dist/assets/icofont/fonts/icofont.ttf +0 -0
  268. package/dist/assets/icofont/fonts/icofont.woff +0 -0
  269. package/dist/assets/icofont/fonts/icofont.woff2 +0 -0
  270. package/dist/assets/icofont/icofont.css +0 -10757
  271. package/dist/assets/icofont/icofont.min.css +0 -7
  272. package/dist/assets/kreon/Kreon-VariableFont_wght.ttf +0 -0
  273. package/dist/assets/kreon/OFL.txt +0 -93
  274. package/dist/assets/kreon/README.txt +0 -67
  275. package/dist/assets/kreon/static/Kreon-Bold.ttf +0 -0
  276. package/dist/assets/kreon/static/Kreon-Light.ttf +0 -0
  277. package/dist/assets/kreon/static/Kreon-Medium.ttf +0 -0
  278. package/dist/assets/kreon/static/Kreon-Regular.ttf +0 -0
  279. package/dist/assets/kreon/static/Kreon-SemiBold.ttf +0 -0
  280. package/dist/assets/kreon/style.css +0 -41
  281. package/dist/assets/material-icons/LICENSE +0 -202
  282. package/dist/assets/material-icons/README.md +0 -129
  283. package/dist/assets/material-icons/_data/versions.json +0 -2124
  284. package/dist/assets/material-icons/css/_codepoints.scss +0 -2279
  285. package/dist/assets/material-icons/css/_mixins.scss +0 -13
  286. package/dist/assets/material-icons/css/_variables.scss +0 -6
  287. package/dist/assets/material-icons/css/material-icons.css +0 -9208
  288. package/dist/assets/material-icons/css/material-icons.min.css +0 -1
  289. package/dist/assets/material-icons/css/material-icons.scss +0 -39
  290. package/dist/assets/material-icons/iconfont/_mixins.scss +0 -55
  291. package/dist/assets/material-icons/iconfont/_variables.scss +0 -3
  292. package/dist/assets/material-icons/iconfont/filled.css +0 -24
  293. package/dist/assets/material-icons/iconfont/filled.scss +0 -4
  294. package/dist/assets/material-icons/iconfont/material-icons-outlined.woff +0 -0
  295. package/dist/assets/material-icons/iconfont/material-icons-outlined.woff2 +0 -0
  296. package/dist/assets/material-icons/iconfont/material-icons-round.woff +0 -0
  297. package/dist/assets/material-icons/iconfont/material-icons-round.woff2 +0 -0
  298. package/dist/assets/material-icons/iconfont/material-icons-sharp.woff +0 -0
  299. package/dist/assets/material-icons/iconfont/material-icons-sharp.woff2 +0 -0
  300. package/dist/assets/material-icons/iconfont/material-icons-two-tone.woff +0 -0
  301. package/dist/assets/material-icons/iconfont/material-icons-two-tone.woff2 +0 -0
  302. package/dist/assets/material-icons/iconfont/material-icons.css +0 -124
  303. package/dist/assets/material-icons/iconfont/material-icons.scss +0 -5
  304. package/dist/assets/material-icons/iconfont/material-icons.woff +0 -0
  305. package/dist/assets/material-icons/iconfont/material-icons.woff2 +0 -0
  306. package/dist/assets/material-icons/iconfont/outlined.css +0 -24
  307. package/dist/assets/material-icons/iconfont/outlined.scss +0 -4
  308. package/dist/assets/material-icons/iconfont/round.css +0 -24
  309. package/dist/assets/material-icons/iconfont/round.scss +0 -4
  310. package/dist/assets/material-icons/iconfont/sharp.css +0 -24
  311. package/dist/assets/material-icons/iconfont/sharp.scss +0 -4
  312. package/dist/assets/material-icons/iconfont/two-tone.css +0 -24
  313. package/dist/assets/material-icons/iconfont/two-tone.scss +0 -4
  314. package/dist/assets/material-icons/index.d.ts +0 -2128
  315. package/dist/assets/material-icons/package.json +0 -52
  316. package/dist/assets/material-symbols/LICENSE +0 -202
  317. package/dist/assets/material-symbols/README.md +0 -114
  318. package/dist/assets/material-symbols/_core.scss +0 -46
  319. package/dist/assets/material-symbols/index.css +0 -74
  320. package/dist/assets/material-symbols/index.d.ts +0 -2809
  321. package/dist/assets/material-symbols/index.scss +0 -3
  322. package/dist/assets/material-symbols/material-symbols-outlined.woff2 +0 -0
  323. package/dist/assets/material-symbols/material-symbols-rounded.woff2 +0 -0
  324. package/dist/assets/material-symbols/material-symbols-sharp.woff2 +0 -0
  325. package/dist/assets/material-symbols/outlined.css +0 -24
  326. package/dist/assets/material-symbols/outlined.scss +0 -3
  327. package/dist/assets/material-symbols/package.json +0 -41
  328. package/dist/assets/material-symbols/rounded.css +0 -24
  329. package/dist/assets/material-symbols/rounded.scss +0 -3
  330. package/dist/assets/material-symbols/sharp.css +0 -24
  331. package/dist/assets/material-symbols/sharp.scss +0 -3
  332. package/dist/assets/noto-sans/fonts/NotoSans-Black.ttf +0 -0
  333. package/dist/assets/noto-sans/fonts/NotoSans-BlackItalic.ttf +0 -0
  334. package/dist/assets/noto-sans/fonts/NotoSans-Bold.ttf +0 -0
  335. package/dist/assets/noto-sans/fonts/NotoSans-BoldItalic.ttf +0 -0
  336. package/dist/assets/noto-sans/fonts/NotoSans-ExtraBold.ttf +0 -0
  337. package/dist/assets/noto-sans/fonts/NotoSans-ExtraBoldItalic.ttf +0 -0
  338. package/dist/assets/noto-sans/fonts/NotoSans-ExtraLight.ttf +0 -0
  339. package/dist/assets/noto-sans/fonts/NotoSans-ExtraLightItalic.ttf +0 -0
  340. package/dist/assets/noto-sans/fonts/NotoSans-Italic.ttf +0 -0
  341. package/dist/assets/noto-sans/fonts/NotoSans-Light.ttf +0 -0
  342. package/dist/assets/noto-sans/fonts/NotoSans-LightItalic.ttf +0 -0
  343. package/dist/assets/noto-sans/fonts/NotoSans-Medium.ttf +0 -0
  344. package/dist/assets/noto-sans/fonts/NotoSans-MediumItalic.ttf +0 -0
  345. package/dist/assets/noto-sans/fonts/NotoSans-Regular.ttf +0 -0
  346. package/dist/assets/noto-sans/fonts/NotoSans-SemiBold.ttf +0 -0
  347. package/dist/assets/noto-sans/fonts/NotoSans-SemiBoldItalic.ttf +0 -0
  348. package/dist/assets/noto-sans/fonts/NotoSans-Thin.ttf +0 -0
  349. package/dist/assets/noto-sans/fonts/NotoSans-ThinItalic.ttf +0 -0
  350. package/dist/assets/noto-sans/fonts/OFL.txt +0 -93
  351. package/dist/assets/noto-sans/noto-sans.css +0 -11
  352. package/dist/assets/roboto/LICENSE.txt +0 -202
  353. package/dist/assets/roboto/Roboto-Black.ttf +0 -0
  354. package/dist/assets/roboto/Roboto-BlackItalic.ttf +0 -0
  355. package/dist/assets/roboto/Roboto-Bold.ttf +0 -0
  356. package/dist/assets/roboto/Roboto-BoldItalic.ttf +0 -0
  357. package/dist/assets/roboto/Roboto-Italic.ttf +0 -0
  358. package/dist/assets/roboto/Roboto-Light.ttf +0 -0
  359. package/dist/assets/roboto/Roboto-LightItalic.ttf +0 -0
  360. package/dist/assets/roboto/Roboto-Medium.ttf +0 -0
  361. package/dist/assets/roboto/Roboto-MediumItalic.ttf +0 -0
  362. package/dist/assets/roboto/Roboto-Regular.ttf +0 -0
  363. package/dist/assets/roboto/Roboto-Thin.ttf +0 -0
  364. package/dist/assets/roboto/Roboto-ThinItalic.ttf +0 -0
  365. package/dist/assets/roboto/roboto.css +0 -27
  366. package/dist/assets/tabler-icons/fonts/tabler-icons.eot +0 -0
  367. package/dist/assets/tabler-icons/fonts/tabler-icons.ttf +0 -0
  368. package/dist/assets/tabler-icons/fonts/tabler-icons.woff +0 -0
  369. package/dist/assets/tabler-icons/fonts/tabler-icons.woff2 +0 -0
  370. package/dist/assets/tabler-icons/tabler-icons.css +0 -16056
  371. package/dist/assets/tabler-icons/tabler-icons.html +0 -36226
  372. package/dist/assets/tabler-icons/tabler-icons.min.css +0 -4
  373. package/dist/assets/tabler-icons/tabler-icons.png +0 -0
  374. package/dist/assets/tabler-icons/tabler-icons.scss +0 -8058
  375. package/public/assets/README.md +0 -1
  376. package/public/assets/fontawesome-free/LICENSE.txt +0 -165
  377. package/public/assets/fontawesome-free/css/all.css +0 -7831
  378. package/public/assets/fontawesome-free/css/all.min.css +0 -6
  379. package/public/assets/fontawesome-free/css/brands.css +0 -1432
  380. package/public/assets/fontawesome-free/css/brands.min.css +0 -6
  381. package/public/assets/fontawesome-free/css/fontawesome.css +0 -6338
  382. package/public/assets/fontawesome-free/css/fontawesome.min.css +0 -6
  383. package/public/assets/fontawesome-free/css/regular.css +0 -19
  384. package/public/assets/fontawesome-free/css/regular.min.css +0 -6
  385. package/public/assets/fontawesome-free/css/solid.css +0 -19
  386. package/public/assets/fontawesome-free/css/solid.min.css +0 -6
  387. package/public/assets/fontawesome-free/css/svg-with-js.css +0 -634
  388. package/public/assets/fontawesome-free/css/svg-with-js.min.css +0 -6
  389. package/public/assets/fontawesome-free/css/v4-font-face.css +0 -26
  390. package/public/assets/fontawesome-free/css/v4-font-face.min.css +0 -6
  391. package/public/assets/fontawesome-free/css/v4-shims.css +0 -2146
  392. package/public/assets/fontawesome-free/css/v4-shims.min.css +0 -6
  393. package/public/assets/fontawesome-free/css/v5-font-face.css +0 -22
  394. package/public/assets/fontawesome-free/css/v5-font-face.min.css +0 -6
  395. package/public/assets/fontawesome-free/webfonts/fa-brands-400.ttf +0 -0
  396. package/public/assets/fontawesome-free/webfonts/fa-brands-400.woff2 +0 -0
  397. package/public/assets/fontawesome-free/webfonts/fa-regular-400.ttf +0 -0
  398. package/public/assets/fontawesome-free/webfonts/fa-regular-400.woff2 +0 -0
  399. package/public/assets/fontawesome-free/webfonts/fa-solid-900.ttf +0 -0
  400. package/public/assets/fontawesome-free/webfonts/fa-solid-900.woff2 +0 -0
  401. package/public/assets/fontawesome-free/webfonts/fa-v4compatibility.ttf +0 -0
  402. package/public/assets/fontawesome-free/webfonts/fa-v4compatibility.woff2 +0 -0
  403. package/public/assets/icofont/demo.html +0 -18939
  404. package/public/assets/icofont/fonts/icofont.eot +0 -0
  405. package/public/assets/icofont/fonts/icofont.svg +0 -2105
  406. package/public/assets/icofont/fonts/icofont.ttf +0 -0
  407. package/public/assets/icofont/fonts/icofont.woff +0 -0
  408. package/public/assets/icofont/fonts/icofont.woff2 +0 -0
  409. package/public/assets/icofont/icofont.css +0 -10757
  410. package/public/assets/icofont/icofont.min.css +0 -7
  411. package/public/assets/kreon/Kreon-VariableFont_wght.ttf +0 -0
  412. package/public/assets/kreon/OFL.txt +0 -93
  413. package/public/assets/kreon/README.txt +0 -67
  414. package/public/assets/kreon/static/Kreon-Bold.ttf +0 -0
  415. package/public/assets/kreon/static/Kreon-Light.ttf +0 -0
  416. package/public/assets/kreon/static/Kreon-Medium.ttf +0 -0
  417. package/public/assets/kreon/static/Kreon-Regular.ttf +0 -0
  418. package/public/assets/kreon/static/Kreon-SemiBold.ttf +0 -0
  419. package/public/assets/kreon/style.css +0 -41
  420. package/public/assets/material-icons/LICENSE +0 -202
  421. package/public/assets/material-icons/README.md +0 -129
  422. package/public/assets/material-icons/_data/versions.json +0 -2124
  423. package/public/assets/material-icons/css/_codepoints.scss +0 -2279
  424. package/public/assets/material-icons/css/_mixins.scss +0 -13
  425. package/public/assets/material-icons/css/_variables.scss +0 -6
  426. package/public/assets/material-icons/css/material-icons.css +0 -9208
  427. package/public/assets/material-icons/css/material-icons.min.css +0 -1
  428. package/public/assets/material-icons/css/material-icons.scss +0 -39
  429. package/public/assets/material-icons/iconfont/_mixins.scss +0 -55
  430. package/public/assets/material-icons/iconfont/_variables.scss +0 -3
  431. package/public/assets/material-icons/iconfont/filled.css +0 -24
  432. package/public/assets/material-icons/iconfont/filled.scss +0 -4
  433. package/public/assets/material-icons/iconfont/material-icons-outlined.woff +0 -0
  434. package/public/assets/material-icons/iconfont/material-icons-outlined.woff2 +0 -0
  435. package/public/assets/material-icons/iconfont/material-icons-round.woff +0 -0
  436. package/public/assets/material-icons/iconfont/material-icons-round.woff2 +0 -0
  437. package/public/assets/material-icons/iconfont/material-icons-sharp.woff +0 -0
  438. package/public/assets/material-icons/iconfont/material-icons-sharp.woff2 +0 -0
  439. package/public/assets/material-icons/iconfont/material-icons-two-tone.woff +0 -0
  440. package/public/assets/material-icons/iconfont/material-icons-two-tone.woff2 +0 -0
  441. package/public/assets/material-icons/iconfont/material-icons.css +0 -124
  442. package/public/assets/material-icons/iconfont/material-icons.scss +0 -5
  443. package/public/assets/material-icons/iconfont/material-icons.woff +0 -0
  444. package/public/assets/material-icons/iconfont/material-icons.woff2 +0 -0
  445. package/public/assets/material-icons/iconfont/outlined.css +0 -24
  446. package/public/assets/material-icons/iconfont/outlined.scss +0 -4
  447. package/public/assets/material-icons/iconfont/round.css +0 -24
  448. package/public/assets/material-icons/iconfont/round.scss +0 -4
  449. package/public/assets/material-icons/iconfont/sharp.css +0 -24
  450. package/public/assets/material-icons/iconfont/sharp.scss +0 -4
  451. package/public/assets/material-icons/iconfont/two-tone.css +0 -24
  452. package/public/assets/material-icons/iconfont/two-tone.scss +0 -4
  453. package/public/assets/material-icons/index.d.ts +0 -2128
  454. package/public/assets/material-icons/package.json +0 -52
  455. package/public/assets/material-symbols/LICENSE +0 -202
  456. package/public/assets/material-symbols/README.md +0 -114
  457. package/public/assets/material-symbols/_core.scss +0 -46
  458. package/public/assets/material-symbols/index.css +0 -74
  459. package/public/assets/material-symbols/index.d.ts +0 -2809
  460. package/public/assets/material-symbols/index.scss +0 -3
  461. package/public/assets/material-symbols/material-symbols-outlined.woff2 +0 -0
  462. package/public/assets/material-symbols/material-symbols-rounded.woff2 +0 -0
  463. package/public/assets/material-symbols/material-symbols-sharp.woff2 +0 -0
  464. package/public/assets/material-symbols/outlined.css +0 -24
  465. package/public/assets/material-symbols/outlined.scss +0 -3
  466. package/public/assets/material-symbols/package.json +0 -41
  467. package/public/assets/material-symbols/rounded.css +0 -24
  468. package/public/assets/material-symbols/rounded.scss +0 -3
  469. package/public/assets/material-symbols/sharp.css +0 -24
  470. package/public/assets/material-symbols/sharp.scss +0 -3
  471. package/public/assets/noto-sans/fonts/NotoSans-Black.ttf +0 -0
  472. package/public/assets/noto-sans/fonts/NotoSans-BlackItalic.ttf +0 -0
  473. package/public/assets/noto-sans/fonts/NotoSans-Bold.ttf +0 -0
  474. package/public/assets/noto-sans/fonts/NotoSans-BoldItalic.ttf +0 -0
  475. package/public/assets/noto-sans/fonts/NotoSans-ExtraBold.ttf +0 -0
  476. package/public/assets/noto-sans/fonts/NotoSans-ExtraBoldItalic.ttf +0 -0
  477. package/public/assets/noto-sans/fonts/NotoSans-ExtraLight.ttf +0 -0
  478. package/public/assets/noto-sans/fonts/NotoSans-ExtraLightItalic.ttf +0 -0
  479. package/public/assets/noto-sans/fonts/NotoSans-Italic.ttf +0 -0
  480. package/public/assets/noto-sans/fonts/NotoSans-Light.ttf +0 -0
  481. package/public/assets/noto-sans/fonts/NotoSans-LightItalic.ttf +0 -0
  482. package/public/assets/noto-sans/fonts/NotoSans-Medium.ttf +0 -0
  483. package/public/assets/noto-sans/fonts/NotoSans-MediumItalic.ttf +0 -0
  484. package/public/assets/noto-sans/fonts/NotoSans-Regular.ttf +0 -0
  485. package/public/assets/noto-sans/fonts/NotoSans-SemiBold.ttf +0 -0
  486. package/public/assets/noto-sans/fonts/NotoSans-SemiBoldItalic.ttf +0 -0
  487. package/public/assets/noto-sans/fonts/NotoSans-Thin.ttf +0 -0
  488. package/public/assets/noto-sans/fonts/NotoSans-ThinItalic.ttf +0 -0
  489. package/public/assets/noto-sans/fonts/OFL.txt +0 -93
  490. package/public/assets/noto-sans/noto-sans.css +0 -11
  491. package/public/assets/roboto/LICENSE.txt +0 -202
  492. package/public/assets/roboto/Roboto-Black.ttf +0 -0
  493. package/public/assets/roboto/Roboto-BlackItalic.ttf +0 -0
  494. package/public/assets/roboto/Roboto-Bold.ttf +0 -0
  495. package/public/assets/roboto/Roboto-BoldItalic.ttf +0 -0
  496. package/public/assets/roboto/Roboto-Italic.ttf +0 -0
  497. package/public/assets/roboto/Roboto-Light.ttf +0 -0
  498. package/public/assets/roboto/Roboto-LightItalic.ttf +0 -0
  499. package/public/assets/roboto/Roboto-Medium.ttf +0 -0
  500. package/public/assets/roboto/Roboto-MediumItalic.ttf +0 -0
  501. package/public/assets/roboto/Roboto-Regular.ttf +0 -0
  502. package/public/assets/roboto/Roboto-Thin.ttf +0 -0
  503. package/public/assets/roboto/Roboto-ThinItalic.ttf +0 -0
  504. package/public/assets/roboto/roboto.css +0 -27
  505. package/public/assets/tabler-icons/fonts/tabler-icons.eot +0 -0
  506. package/public/assets/tabler-icons/fonts/tabler-icons.ttf +0 -0
  507. package/public/assets/tabler-icons/fonts/tabler-icons.woff +0 -0
  508. package/public/assets/tabler-icons/fonts/tabler-icons.woff2 +0 -0
  509. package/public/assets/tabler-icons/tabler-icons.css +0 -16056
  510. package/public/assets/tabler-icons/tabler-icons.html +0 -36226
  511. package/public/assets/tabler-icons/tabler-icons.min.css +0 -4
  512. package/public/assets/tabler-icons/tabler-icons.png +0 -0
  513. package/public/assets/tabler-icons/tabler-icons.scss +0 -8058
  514. package/src/components/button-group/basic.tsx +0 -34
  515. package/src/components/button-group/routes.ts +0 -8
  516. package/src/components/indented-text/basic.tsx +0 -37
  517. package/src/components/indented-text/routes.ts +0 -8
  518. package/src/components/link-group/basic.tsx +0 -23
  519. package/src/components/link-group/horizontal.tsx +0 -23
  520. package/src/components/link-group/routes.ts +0 -10
  521. /package/dist/{1073.js.LICENSE.txt → 1006.js.LICENSE.txt} +0 -0
  522. /package/dist/{1325.js.LICENSE.txt → 1114.js.LICENSE.txt} +0 -0
  523. /package/dist/{1392.js.LICENSE.txt → 1752.js.LICENSE.txt} +0 -0
  524. /package/dist/{1604.js.LICENSE.txt → 1932.js.LICENSE.txt} +0 -0
  525. /package/dist/{175.js.LICENSE.txt → 2069.js.LICENSE.txt} +0 -0
  526. /package/dist/{178.js.LICENSE.txt → 2212.js.LICENSE.txt} +0 -0
  527. /package/dist/{1791.js.LICENSE.txt → 2231.js.LICENSE.txt} +0 -0
  528. /package/dist/{2220.js.LICENSE.txt → 2321.js.LICENSE.txt} +0 -0
  529. /package/dist/{2444.js.LICENSE.txt → 2596.js.LICENSE.txt} +0 -0
  530. /package/dist/{2450.js.LICENSE.txt → 2827.js.LICENSE.txt} +0 -0
  531. /package/dist/{2671.js.LICENSE.txt → 2894.js.LICENSE.txt} +0 -0
  532. /package/dist/{2986.js.LICENSE.txt → 3099.js.LICENSE.txt} +0 -0
  533. /package/dist/{3030.js.LICENSE.txt → 3151.js.LICENSE.txt} +0 -0
  534. /package/dist/{3270.js.LICENSE.txt → 3203.js.LICENSE.txt} +0 -0
  535. /package/dist/{3340.js.LICENSE.txt → 3540.js.LICENSE.txt} +0 -0
  536. /package/dist/{3392.js.LICENSE.txt → 373.js.LICENSE.txt} +0 -0
  537. /package/dist/{3529.js.LICENSE.txt → 3918.js.LICENSE.txt} +0 -0
  538. /package/dist/{3756.js.LICENSE.txt → 3920.js.LICENSE.txt} +0 -0
  539. /package/dist/{3960.js.LICENSE.txt → 4030.js.LICENSE.txt} +0 -0
  540. /package/dist/{399.js.LICENSE.txt → 4048.js.LICENSE.txt} +0 -0
  541. /package/dist/{4145.js.LICENSE.txt → 4201.js.LICENSE.txt} +0 -0
  542. /package/dist/{4288.js.LICENSE.txt → 4260.js.LICENSE.txt} +0 -0
  543. /package/dist/{4539.js.LICENSE.txt → 4361.js.LICENSE.txt} +0 -0
  544. /package/dist/{4563.js.LICENSE.txt → 4587.js.LICENSE.txt} +0 -0
  545. /package/dist/{4571.js.LICENSE.txt → 4611.js.LICENSE.txt} +0 -0
  546. /package/dist/{5260.js.LICENSE.txt → 4641.js.LICENSE.txt} +0 -0
  547. /package/dist/{5333.js.LICENSE.txt → 4876.js.LICENSE.txt} +0 -0
  548. /package/dist/{5523.js.LICENSE.txt → 5143.js.LICENSE.txt} +0 -0
  549. /package/dist/{5551.js.LICENSE.txt → 5249.js.LICENSE.txt} +0 -0
  550. /package/dist/{5575.js.LICENSE.txt → 5690.js.LICENSE.txt} +0 -0
  551. /package/dist/{5665.js.LICENSE.txt → 5746.js.LICENSE.txt} +0 -0
  552. /package/dist/{572.js.LICENSE.txt → 6047.js.LICENSE.txt} +0 -0
  553. /package/dist/{5873.js.LICENSE.txt → 6066.js.LICENSE.txt} +0 -0
  554. /package/dist/{5879.js.LICENSE.txt → 6256.js.LICENSE.txt} +0 -0
  555. /package/dist/{5964.js.LICENSE.txt → 6304.js.LICENSE.txt} +0 -0
  556. /package/dist/{6005.js.LICENSE.txt → 6781.js.LICENSE.txt} +0 -0
  557. /package/dist/{618.js.LICENSE.txt → 6790.js.LICENSE.txt} +0 -0
  558. /package/dist/{623.js.LICENSE.txt → 6984.js.LICENSE.txt} +0 -0
  559. /package/dist/{643.js.LICENSE.txt → 7013.js.LICENSE.txt} +0 -0
  560. /package/dist/{6610.js.LICENSE.txt → 7178.js.LICENSE.txt} +0 -0
  561. /package/dist/{6618.js.LICENSE.txt → 7347.js.LICENSE.txt} +0 -0
  562. /package/dist/{6711.js.LICENSE.txt → 740.js.LICENSE.txt} +0 -0
  563. /package/dist/{6740.js.LICENSE.txt → 7444.js.LICENSE.txt} +0 -0
  564. /package/dist/{6786.js.LICENSE.txt → 7533.js.LICENSE.txt} +0 -0
  565. /package/dist/{685.js.LICENSE.txt → 7535.js.LICENSE.txt} +0 -0
  566. /package/dist/{6950.js.LICENSE.txt → 775.js.LICENSE.txt} +0 -0
  567. /package/dist/{7055.js.LICENSE.txt → 8137.js.LICENSE.txt} +0 -0
  568. /package/dist/{7106.js.LICENSE.txt → 8180.js.LICENSE.txt} +0 -0
  569. /package/dist/{7141.js.LICENSE.txt → 8192.js.LICENSE.txt} +0 -0
  570. /package/dist/{7146.js.LICENSE.txt → 833.js.LICENSE.txt} +0 -0
  571. /package/dist/{7287.js.LICENSE.txt → 8378.js.LICENSE.txt} +0 -0
  572. /package/dist/{7599.js.LICENSE.txt → 8605.js.LICENSE.txt} +0 -0
  573. /package/dist/{7648.js.LICENSE.txt → 8625.js.LICENSE.txt} +0 -0
  574. /package/dist/{7668.js.LICENSE.txt → 8840.js.LICENSE.txt} +0 -0
  575. /package/dist/{7855.js.LICENSE.txt → 907.js.LICENSE.txt} +0 -0
  576. /package/dist/{8165.js.LICENSE.txt → 9108.js.LICENSE.txt} +0 -0
  577. /package/dist/{8177.js.LICENSE.txt → 9255.js.LICENSE.txt} +0 -0
  578. /package/dist/{8306.js.LICENSE.txt → 9322.js.LICENSE.txt} +0 -0
  579. /package/dist/{8543.js.LICENSE.txt → 9581.js.LICENSE.txt} +0 -0
  580. /package/dist/{866.js.LICENSE.txt → 9719.js.LICENSE.txt} +0 -0
  581. /package/dist/{8859.js.LICENSE.txt → 9731.js.LICENSE.txt} +0 -0
  582. /package/dist/{904.js.LICENSE.txt → 9907.js.LICENSE.txt} +0 -0
  583. /package/dist/{9148.js.LICENSE.txt → 9930.js.LICENSE.txt} +0 -0
  584. /package/dist/{9522.js.LICENSE.txt → 9938.js.LICENSE.txt} +0 -0
@@ -1,17 +1,18 @@
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
+ _minWidth="auto"
15
16
  _data={[
16
17
  {
17
18
  asp: 'Center',
@@ -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
  );
@@ -46,6 +46,7 @@ export const InteractiveChildElements: FC = () => (
46
46
  <section className="w-full flex flex-col">
47
47
  <KolTableStateless
48
48
  _label="Button styles"
49
+ _minWidth="auto"
49
50
  _headerCells={{
50
51
  horizontal: [
51
52
  [
@@ -79,6 +80,7 @@ export const InteractiveChildElements: FC = () => (
79
80
 
80
81
  <KolTableStateless
81
82
  _label="Link styles"
83
+ _minWidth="auto"
82
84
  _headerCells={{
83
85
  horizontal: [
84
86
  [
@@ -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,8 +86,9 @@ 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
+ _minWidth="auto"
91
92
  _data={DATA.slice(0, 10)}
92
93
  _headers={HEADERS_VERTICAL}
93
94
  className="block"
@@ -102,8 +103,9 @@ export const MultiSortTable: FC = () => {
102
103
  _variant="switch"
103
104
  _on={{ onChange: (_, value) => setAllowMultiSortHorizontal(Boolean(value)) }}
104
105
  ></KolInputCheckbox>
105
- <KolTable
106
+ <KolTableStateful
106
107
  _label="Sort Table with Order and Date"
108
+ _minWidth="auto"
107
109
  _data={DATA}
108
110
  _headers={HEADERS_HORIZONTAL}
109
111
  className="block"
@@ -1,7 +1,7 @@
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
  import { DATE_FORMATTER } from './formatter';
@@ -23,21 +23,42 @@ const PAGINATION: KoliBriTablePaginationProps = { _page: 2 };
23
23
  export const PaginationPosition: FC = () => (
24
24
  <div className="w-full grid gap-14">
25
25
  <SampleDescription>
26
- <p>This sample shows KolTable with different pagination positions.</p>
26
+ <p>This sample shows KolTableStateful with different pagination positions.</p>
27
27
  </SampleDescription>
28
28
 
29
29
  <section className="w-full flex flex-col gap-14">
30
30
  <section className="grid gap-4">
31
31
  <KolHeading _level={2} _label="Table with pagination at the bottom."></KolHeading>
32
- <KolTable _label="Tabellenbeschreibung" _data={DATA} _headers={HEADERS} _pagination={PAGINATION} _paginationPosition="bottom"></KolTable>
32
+ <KolTableStateful
33
+ _label="Sample table with pagination at the bottom"
34
+ _minWidth="auto"
35
+ _data={DATA}
36
+ _headers={HEADERS}
37
+ _pagination={PAGINATION}
38
+ _paginationPosition="bottom"
39
+ ></KolTableStateful>
33
40
  </section>
34
41
  <section className="grid gap-4">
35
42
  <KolHeading _level={2} _label="Table with pagination at the top."></KolHeading>
36
- <KolTable _label="Tabellenbeschreibung" _data={DATA} _headers={HEADERS} _pagination={PAGINATION} _paginationPosition="top"></KolTable>
43
+ <KolTableStateful
44
+ _label="Sample table with pagination at the top"
45
+ _minWidth="auto"
46
+ _data={DATA}
47
+ _headers={HEADERS}
48
+ _pagination={PAGINATION}
49
+ _paginationPosition="top"
50
+ ></KolTableStateful>
37
51
  </section>
38
52
  <section className="grid gap-4">
39
53
  <KolHeading _level={2} _label="Table with pagination at both top and bottom."></KolHeading>
40
- <KolTable _label="Tabellenbeschreibung" _data={DATA} _headers={HEADERS} _pagination={PAGINATION} _paginationPosition="both"></KolTable>
54
+ <KolTableStateful
55
+ _label="Sample table with pagination at both top and bottom"
56
+ _minWidth="auto"
57
+ _data={DATA}
58
+ _headers={HEADERS}
59
+ _pagination={PAGINATION}
60
+ _paginationPosition="both"
61
+ ></KolTableStateful>
41
62
  </section>
42
63
  </section>
43
64
  </div>
@@ -0,0 +1,41 @@
1
+ import { SampleDescription } from '../SampleDescription';
2
+ import { KolTableStateful } from '@public-ui/react';
3
+ import type { FC } from 'react';
4
+ import React from 'react';
5
+
6
+ const DATA = [{ columnA: 'Column A', columnB: 'Column B', columnC: 'Column C' }];
7
+
8
+ export const PredefinedSettings: FC = () => {
9
+ return (
10
+ <>
11
+ <SampleDescription>
12
+ <p>This example shows the table with predefined settings.</p>
13
+ </SampleDescription>
14
+
15
+ <KolTableStateful
16
+ _label="Table for demonstration purposes with predefined settings"
17
+ _minWidth="auto"
18
+ _headers={{
19
+ horizontal: [
20
+ [
21
+ { label: 'column A', key: 'columnA' },
22
+ { label: 'column B', key: 'columnB' },
23
+ { label: 'column C', key: 'columnC' },
24
+ ],
25
+ ],
26
+ }}
27
+ _tableSettings={{
28
+ columns: [
29
+ { key: 'columnA', visible: false, label: 'Column A', position: 2 },
30
+ { key: 'columnB', visible: true, label: 'Column B', position: 1, width: 20 },
31
+ { key: 'columnC', visible: true, label: 'Column C', position: 0, width: 45 },
32
+ ],
33
+ }}
34
+ _data={DATA}
35
+ _min-width="500px"
36
+ className="block"
37
+ style={{ maxWidth: '600px' }}
38
+ />
39
+ </>
40
+ );
41
+ };
@@ -1,7 +1,7 @@
1
1
  import type { FC } from 'react';
2
2
  import React from 'react';
3
3
 
4
- import { createReactRenderElement, KolButton, KolInputText, KolTable } from '@public-ui/react';
4
+ import { createReactRenderElement, KolButton, KolInputText, KolTableStateful } from '@public-ui/react';
5
5
 
6
6
  import { getRoot } from '../../shares/react-roots';
7
7
  import { SampleDescription } from '../SampleDescription';
@@ -80,11 +80,11 @@ const HEADERS: KoliBriTableHeaders = {
80
80
  render: (el, cell) => {
81
81
  el.innerHTML = `<strong>${DATE_FORMATTER.format(cell.label as unknown as Date)}</strong>`;
82
82
  },
83
- sort: (data) => data.sort((data0, data1) => (data0 as Data).date.getTime() - (data1 as Data).date.getTime()),
83
+ compareFn: (data0, data1) => (data0 as Data).date.getTime() - (data1 as Data).date.getTime(),
84
84
  },
85
85
  {
86
86
  label: 'Action (react)',
87
- key: 'order',
87
+ key: 'action',
88
88
  width: '20em',
89
89
 
90
90
  /* Example 4: Render function using React */
@@ -112,9 +112,9 @@ const HEADERS: KoliBriTableHeaders = {
112
112
  export const TableRenderCell: FC = () => (
113
113
  <>
114
114
  <SampleDescription>
115
- <p>This sample shows KolTable using React render functions for the cell contents.</p>
115
+ <p>This sample shows KolTableStateful using React render functions for the cell contents.</p>
116
116
  </SampleDescription>
117
117
 
118
- <KolTable _label="Sort by date column" _data={DATA} _headers={HEADERS} className="w-full" />
118
+ <KolTableStateful _label="Sort by date column" _minWidth="auto" _data={DATA} _headers={HEADERS} className="w-full" />
119
119
  </>
120
120
  );
@@ -14,23 +14,25 @@ import { TableStatelessWithSingleSelection } from './stateless-with-single-selec
14
14
  import { TableWithPagination } from './with-pagination';
15
15
  import { InteractiveChildElements } from './interactive-child-elements';
16
16
  import { MultiSortTable } from './multi-sort';
17
+ import { PredefinedSettings } from './predefined-settings';
17
18
 
18
19
  export const TABLE_ROUTES: Routes = {
19
20
  table: {
20
21
  'column-alignment': TableColumnAlignment,
21
22
  'complex-headers': TableComplexHeaders,
22
23
  'horizontal-scrollbar': TableHorizontalScrollbar,
24
+ 'interactive-child-elements': InteractiveChildElements,
25
+ 'multi-sort': MultiSortTable,
23
26
  'pagination-position': PaginationPosition,
27
+ 'predefined-settings': PredefinedSettings,
24
28
  'render-cell': TableRenderCell,
25
29
  'sort-data': TableSortData,
26
- 'with-footer': TableWithFooter,
27
30
  'stateful-with-selection': TableStatefulWithSelection,
28
31
  'stateful-with-single-selection': TableStatefulWithSingleSelection,
32
+ stateless: TableStateless,
29
33
  'stateless-with-selection': TableStatelessWithSelection,
30
34
  'stateless-with-single-selection': TableStatelessWithSingleSelection,
35
+ 'with-footer': TableWithFooter,
31
36
  'with-pagination': TableWithPagination,
32
- 'interactive-child-elements': InteractiveChildElements,
33
- stateless: TableStateless,
34
- 'multi-sort': MultiSortTable,
35
37
  },
36
38
  };
@@ -1,7 +1,7 @@
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
  import type { KoliBriTableHeaders } from '@public-ui/components';
6
6
  import type { Data } from './test-data';
7
7
  import { DATA } from './test-data';
@@ -22,12 +22,11 @@ const HEADERS_HORIZONTAL: KoliBriTableHeaders = {
22
22
  key: 'date',
23
23
  textAlign: 'center',
24
24
  render: (_el, _cell, tupel) => DATE_FORMATTER.format((tupel as Data).date),
25
- sort: (data) =>
26
- data.sort((data0, data1) => {
27
- if ((data0 as Data).date < (data1 as Data).date) return -1;
28
- else if ((data1 as Data).date < (data0 as Data).date) return 1;
29
- else return 0;
30
- }),
25
+ compareFn: (data0, data1) => {
26
+ if ((data0 as Data).date < (data1 as Data).date) return -1;
27
+ else if ((data1 as Data).date < (data0 as Data).date) return 1;
28
+ else return 0;
29
+ },
31
30
  },
32
31
  ],
33
32
  ],
@@ -42,12 +41,11 @@ const HEADERS_VERTICAL: KoliBriTableHeaders = {
42
41
  key: 'date',
43
42
  textAlign: 'center',
44
43
  render: (_el, _cell, tupel) => DATE_FORMATTER.format((tupel as Data).date),
45
- sort: (data) =>
46
- data.sort((data0, data1) => {
47
- if ((data0 as Data).date < (data1 as Data).date) return -1;
48
- else if ((data1 as Data).date < (data0 as Data).date) return 1;
49
- else return 0;
50
- }),
44
+ compareFn: (data0, data1) => {
45
+ if ((data0 as Data).date < (data1 as Data).date) return -1;
46
+ else if ((data1 as Data).date < (data0 as Data).date) return 1;
47
+ else return 0;
48
+ },
51
49
  },
52
50
  ],
53
51
  ],
@@ -56,17 +54,17 @@ const HEADERS_VERTICAL: KoliBriTableHeaders = {
56
54
  export const TableSortData: FC = () => (
57
55
  <>
58
56
  <SampleDescription>
59
- <p>This sample shows KolTable with sortable columns. The sort-order can be changed by clicking the &quot;date&quot; header column.</p>
57
+ <p>This sample shows KolTableStateful with sortable columns. The sort-order can be changed by clicking the &quot;date&quot; header column.</p>
60
58
  </SampleDescription>
61
59
 
62
60
  <section className="w-full grid gap-4">
63
61
  <section className="grid gap-4">
64
- <KolHeading _level={2} _label="Vertical" />
65
- <KolTable _label="Sort a date column" _data={DATA.slice(0, 10)} _headers={HEADERS_VERTICAL} className="block" />
62
+ <KolHeading _level={2} _label="Vertical headers" />
63
+ <KolTableStateful _label="Sort a date column" _minWidth="auto" _data={DATA.slice(0, 10)} _headers={HEADERS_VERTICAL} className="block" />
66
64
  </section>
67
65
  <section className="grid gap-4">
68
- <KolHeading _level={2} _label="Horizontal" />
69
- <KolTable _label="Sort a date column" _data={DATA} _headers={HEADERS_HORIZONTAL} className="block" />
66
+ <KolHeading _level={2} _label="Horizontal headers" />
67
+ <KolTableStateful _label="Sort a date column" _minWidth="auto" _data={DATA} _headers={HEADERS_HORIZONTAL} className="block" />
70
68
  </section>
71
69
  </section>
72
70
  </>
@@ -1,15 +1,17 @@
1
1
  import type { FC } from 'react';
2
2
  import React, { useEffect, useRef, useState } from 'react';
3
- import { KolButton, KolTableStateful, createReactRenderElement } from '@public-ui/react';
3
+ import { createReactRenderElement, KolButton, KolTableStateful } from '@public-ui/react';
4
4
  import { SampleDescription } from '../SampleDescription';
5
- import type { KoliBriTableDataType, KoliBriTableSelection } from '@public-ui/components';
5
+ import type { KoliBriTableCell, KoliBriTableDataType, KoliBriTableSelection } from '@public-ui/components';
6
+ import { KolEvent } from '@public-ui/components';
6
7
  import { getRoot } from '../../shares/react-roots';
7
- import type { KoliBriTableCell } from '@public-ui/components';
8
8
  import { useToasterService } from '../../hooks/useToasterService';
9
9
 
10
10
  const DATA = [
11
11
  { id: '1001', name: 'Foo Bar', internalIdentifier: `AAA1001` },
12
12
  { id: '1002', name: 'Foo Baz', internalIdentifier: `AAA1002` },
13
+ { id: '1003', name: 'This row is always unchecked', internalIdentifier: `AAA1003` },
14
+ { id: '1004', name: 'This row is always checked', internalIdentifier: `AAA1004` },
13
15
  ];
14
16
  type Data = (typeof DATA)[0];
15
17
 
@@ -28,7 +30,8 @@ export const TableStatefulWithSelection: FC = () => {
28
30
 
29
31
  const selection: KoliBriTableSelection = {
30
32
  label: (row) => `Selection for ${(row as Data).name}`,
31
- selectedKeys: selectedValue ? selectedValue.map((element) => element.internalIdentifier) : [],
33
+ selectedKeys: selectedValue ? selectedValue.map((element) => element.internalIdentifier) : ['AAA1004'],
34
+ disabledKeys: ['AAA1003', 'AAA1004'],
32
35
  keyPropertyName: 'internalIdentifier',
33
36
  };
34
37
 
@@ -48,11 +51,11 @@ export const TableStatefulWithSelection: FC = () => {
48
51
 
49
52
  useEffect(() => {
50
53
  // @ts-expect-error https://github.com/Microsoft/TypeScript/issues/28357
51
- kolTableStatefulRef.current?.addEventListener('kol-selection-change', handleSelectionChangeEvent);
54
+ kolTableStatefulRef.current?.addEventListener(KolEvent.selectionChange, handleSelectionChangeEvent);
52
55
 
53
56
  return () => {
54
57
  // @ts-expect-error https://github.com/Microsoft/TypeScript/issues/28357
55
- kolTableStatefulRef.current?.removeEventListener('kol-selection-change', handleSelectionChangeEvent);
58
+ kolTableStatefulRef.current?.removeEventListener(KolEvent.selectionChange, handleSelectionChangeEvent);
56
59
  };
57
60
  }, [kolTableStatefulRef]);
58
61
 
@@ -69,6 +72,7 @@ export const TableStatefulWithSelection: FC = () => {
69
72
  <section className="w-full">
70
73
  <KolTableStateful
71
74
  _label="Table with selection checkboxes"
75
+ _minWidth="auto"
72
76
  _headers={{
73
77
  horizontal: [
74
78
  [
@@ -1,10 +1,10 @@
1
1
  import type { FC } from 'react';
2
2
  import React, { useEffect, useRef, useState } from 'react';
3
- import { KolButton, KolTableStateful, createReactRenderElement } from '@public-ui/react';
3
+ import { createReactRenderElement, KolButton, KolTableStateful } from '@public-ui/react';
4
4
  import { SampleDescription } from '../SampleDescription';
5
- import type { KoliBriTableDataType, KoliBriTableSelection } from '@public-ui/components';
5
+ import type { KoliBriTableCell, KoliBriTableDataType, KoliBriTableSelection } from '@public-ui/components';
6
+ import { KolEvent } from '@public-ui/components';
6
7
  import { getRoot } from '../../shares/react-roots';
7
- import type { KoliBriTableCell } from '@public-ui/components';
8
8
  import { useToasterService } from '../../hooks/useToasterService';
9
9
 
10
10
  const DATA = [
@@ -50,11 +50,11 @@ export const TableStatefulWithSingleSelection: FC = () => {
50
50
 
51
51
  useEffect(() => {
52
52
  // @ts-expect-error https://github.com/Microsoft/TypeScript/issues/28357
53
- kolTableStatefulRef.current?.addEventListener('kol-selection-change', handleSelectionChangeEvent);
53
+ kolTableStatefulRef.current?.addEventListener(KolEvent.selectionChange, handleSelectionChangeEvent);
54
54
 
55
55
  return () => {
56
56
  // @ts-expect-error https://github.com/Microsoft/TypeScript/issues/28357
57
- kolTableStatefulRef.current?.removeEventListener('kol-selection-change', handleSelectionChangeEvent);
57
+ kolTableStatefulRef.current?.removeEventListener(KolEvent.selectionChange, handleSelectionChangeEvent);
58
58
  };
59
59
  }, [kolTableStatefulRef]);
60
60
 
@@ -71,6 +71,7 @@ export const TableStatefulWithSingleSelection: FC = () => {
71
71
  <section className="w-full">
72
72
  <KolTableStateful
73
73
  _label="Table with selection radio"
74
+ _minWidth="auto"
74
75
  _headers={{
75
76
  horizontal: [
76
77
  [
@@ -1,15 +1,17 @@
1
1
  import type { FC } from 'react';
2
- import React, { useEffect, useState, useRef } from 'react';
3
- import { KolButton, KolTableStateless, createReactRenderElement } from '@public-ui/react';
2
+ import React, { useEffect, useRef, useState } from 'react';
3
+ import { createReactRenderElement, KolButton, KolTableStateless } from '@public-ui/react';
4
4
  import { SampleDescription } from '../SampleDescription';
5
- import type { KoliBriTableSelection } from '@public-ui/components';
5
+ import type { KoliBriTableCell, KoliBriTableSelection } from '@public-ui/components';
6
+ import { KolEvent } from '@public-ui/components';
6
7
  import { getRoot } from '../../shares/react-roots';
7
- import type { KoliBriTableCell } from '@public-ui/components';
8
8
  import { useToasterService } from '../../hooks/useToasterService';
9
9
 
10
10
  const DATA = [
11
11
  { id: '1001', name: 'Foo Bar', internalIdentifier: `AAA1001` },
12
12
  { id: '1002', name: 'Foo Baz', internalIdentifier: `AAA1002` },
13
+ { id: '1003', name: 'This row is always unchecked', internalIdentifier: `AAA1003` },
14
+ { id: '1004', name: 'This row is always checked', internalIdentifier: `AAA1004` },
13
15
  ];
14
16
  type Data = (typeof DATA)[0];
15
17
 
@@ -24,12 +26,13 @@ function KolButtonWrapper({ label }: { label: string }) {
24
26
  }
25
27
 
26
28
  export const TableStatelessWithSelection: FC = () => {
27
- const [selectedKeys, setSelectedKeys] = useState(['AAA1002']);
29
+ const [selectedKeys, setSelectedKeys] = useState(['AAA1002', 'AAA1004']);
28
30
 
29
31
  const selection: KoliBriTableSelection = {
30
32
  label: (row) => `Selection for ${(row as Data).name}`,
31
33
  selectedKeys,
32
34
  keyPropertyName: 'internalIdentifier',
35
+ disabledKeys: ['AAA1003', 'AAA1004'],
33
36
  };
34
37
 
35
38
  const kolTableStatelessRef = useRef<HTMLKolTableStatelessElement>(null);
@@ -44,11 +47,11 @@ export const TableStatelessWithSelection: FC = () => {
44
47
 
45
48
  useEffect(() => {
46
49
  // @ts-expect-error https://github.com/Microsoft/TypeScript/issues/28357
47
- kolTableStatelessRef.current?.addEventListener('kol-selection-change', handleSelectionChangeEvent);
50
+ kolTableStatelessRef.current?.addEventListener(KolEvent.selectionChange, handleSelectionChangeEvent);
48
51
 
49
52
  return () => {
50
53
  // @ts-expect-error https://github.com/Microsoft/TypeScript/issues/28357
51
- kolTableStatelessRef.current?.removeEventListener('kol-selection-change', handleSelectionChangeEvent);
54
+ kolTableStatelessRef.current?.removeEventListener(KolEvent.selectionChange, handleSelectionChangeEvent);
52
55
  };
53
56
  }, [kolTableStatelessRef]);
54
57
 
@@ -65,6 +68,7 @@ export const TableStatelessWithSelection: FC = () => {
65
68
  <section className="w-full">
66
69
  <KolTableStateless
67
70
  _label="Table with selection checkboxes"
71
+ _minWidth="auto"
68
72
  _headerCells={{
69
73
  horizontal: [
70
74
  [
@@ -1,15 +1,16 @@
1
1
  import type { FC } from 'react';
2
- import React, { useEffect, useState, useRef } from 'react';
3
- import { KolButton, KolTableStateless, createReactRenderElement } from '@public-ui/react';
2
+ import React, { useEffect, useRef, useState } from 'react';
3
+ import { createReactRenderElement, KolButton, KolTableStateless } from '@public-ui/react';
4
4
  import { SampleDescription } from '../SampleDescription';
5
- import type { KoliBriTableSelection } from '@public-ui/components';
5
+ import type { KoliBriTableCell, KoliBriTableSelection } from '@public-ui/components';
6
+ import { KolEvent } from '@public-ui/components';
6
7
  import { getRoot } from '../../shares/react-roots';
7
- import type { KoliBriTableCell } from '@public-ui/components';
8
8
  import { useToasterService } from '../../hooks/useToasterService';
9
9
 
10
10
  const DATA = [
11
11
  { id: '1001', name: 'Foo Bar', internalIdentifier: `AAA1001` },
12
12
  { id: '1002', name: 'Foo Baz', internalIdentifier: `AAA1002` },
13
+ { id: '1003', name: 'Foo Disabled', internalIdentifier: `AAA1003` },
13
14
  ];
14
15
  type Data = (typeof DATA)[0];
15
16
 
@@ -30,6 +31,7 @@ export const TableStatelessWithSingleSelection: FC = () => {
30
31
  label: (row) => `Selection for ${(row as Data).name}`,
31
32
  multiple: false,
32
33
  selectedKeys,
34
+ disabledKeys: ['AAA1003'],
33
35
  keyPropertyName: 'internalIdentifier',
34
36
  };
35
37
 
@@ -45,11 +47,11 @@ export const TableStatelessWithSingleSelection: FC = () => {
45
47
 
46
48
  useEffect(() => {
47
49
  // @ts-expect-error https://github.com/Microsoft/TypeScript/issues/28357
48
- kolTableStatelessRef.current?.addEventListener('kol-selection-change', handleSelectionChangeEvent);
50
+ kolTableStatelessRef.current?.addEventListener(KolEvent.selectionChange, handleSelectionChangeEvent);
49
51
 
50
52
  return () => {
51
53
  // @ts-expect-error https://github.com/Microsoft/TypeScript/issues/28357
52
- kolTableStatelessRef.current?.removeEventListener('kol-selection-change', handleSelectionChangeEvent);
54
+ kolTableStatelessRef.current?.removeEventListener(KolEvent.selectionChange, handleSelectionChangeEvent);
53
55
  };
54
56
  }, [kolTableStatelessRef]);
55
57
 
@@ -66,6 +68,7 @@ export const TableStatelessWithSingleSelection: FC = () => {
66
68
  <section className="w-full">
67
69
  <KolTableStateless
68
70
  _label="Table with selection checkboxes"
71
+ _minWidth="auto"
69
72
  _headerCells={{
70
73
  horizontal: [
71
74
  [
@@ -14,6 +14,7 @@ export const TableStateless: FC = () => (
14
14
  <section className="w-full">
15
15
  <KolTableStateless
16
16
  _label="Table for demonstration purposes"
17
+ _minWidth="auto"
17
18
  _headerCells={{
18
19
  horizontal: [
19
20
  [
@@ -1,17 +1,18 @@
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 TableWithFooter: FC = () => (
7
7
  <>
8
8
  <SampleDescription>
9
- <p>This sample shows KolTable with footer data.</p>
9
+ <p>This sample shows KolTableStateful with footer data.</p>
10
10
  </SampleDescription>
11
11
 
12
- <KolTable
12
+ <KolTableStateful
13
13
  className="w-full"
14
14
  _label="Business hours"
15
+ _minWidth="auto"
15
16
  _headers={{
16
17
  horizontal: [
17
18
  [
@@ -1,7 +1,7 @@
1
1
  import type { FC } from 'react';
2
2
  import React from 'react';
3
3
 
4
- import { KolTable } from '@public-ui/react';
4
+ import { KolTableStateful } from '@public-ui/react';
5
5
 
6
6
  import { DATE_FORMATTER } from './formatter';
7
7
  import { SampleDescription } from '../SampleDescription';
@@ -23,10 +23,10 @@ const PAGINATION: KoliBriTablePaginationProps = { _page: 2 };
23
23
  export const TableWithPagination: FC = () => (
24
24
  <>
25
25
  <SampleDescription>
26
- <p>This sample shows how KolTable can be navigated using a pagination.</p>
26
+ <p>This sample shows how KolTableStateful can be navigated using a pagination.</p>
27
27
  </SampleDescription>
28
28
  <div className="w-full">
29
- <KolTable _label="Tabellenbeschreibung" _data={DATA} _headers={HEADERS} _pagination={PAGINATION}></KolTable>
29
+ <KolTableStateful _label="Table description" _minWidth="auto" _data={DATA} _headers={HEADERS} _pagination={PAGINATION}></KolTableStateful>
30
30
  </div>
31
31
  </>
32
32
  );
@@ -1,14 +1,19 @@
1
1
  import React, { forwardRef } from 'react';
2
-
3
2
  import { KolTextarea } from '@public-ui/react';
3
+ import type { Components } from '@public-ui/components';
4
4
 
5
- import { ERROR_MSG } from '../../../shares/constants';
5
+ import { ERROR_MSG, HINT_MSG } from '../../../shares/constants';
6
6
 
7
- import type { Components } from '@public-ui/components';
8
7
  export const TextareaCases = forwardRef<HTMLKolTextareaElement, Components.KolTextarea>(function TextareaCases(props, ref) {
9
8
  return (
10
9
  <div className="grid gap-4">
11
- <KolTextarea {...props} _msg={{ _type: 'error', _description: ERROR_MSG }} _label="Text" _touched />
10
+ <div className="black-background">
11
+ <KolTextarea {...props} ref={ref} _placeholder="Placeholder" _label="Text" />
12
+ </div>
13
+ <KolTextarea {...props} _placeholder="Placeholder" _required _msg={{ _type: 'error', _description: ERROR_MSG }} _label="Text" _touched _hint={HINT_MSG} />
14
+ <KolTextarea {...props} _placeholder="Placeholder" _label="Text" _msg={{ _type: 'info', _description: 'Just a hint' }} />
15
+ <KolTextarea {...props} _placeholder="Placeholder" _label="Text" _msg={{ _type: 'warning', _description: 'Small warning' }} />
16
+ <KolTextarea {...props} _placeholder="Placeholder" _label="Text" _msg={{ _type: 'success', _description: 'Success message' }} />
12
17
  <KolTextarea {...props} ref={ref} _accessKey="T" _label="Text (3 rows)" _rows={3} />
13
18
  <KolTextarea {...props} ref={ref} _label="Text (placeholder)" _rows={3} _placeholder="Placeholder" />
14
19
  <KolTextarea {...props} ref={ref} _label="Text (disabled & placeholder)" _rows={3} _placeholder="Placeholder" _disabled />