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

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 (404) hide show
  1. package/dist/1068.js +1 -1
  2. package/dist/1219.js +1 -1
  3. package/dist/136.js +1 -1
  4. package/dist/1416.js +1 -1
  5. package/dist/1676.js +1 -1
  6. package/dist/1718.js +1 -1
  7. package/dist/1744.js +1 -1
  8. package/dist/1791.js +1 -1
  9. package/dist/2078.js +1 -1
  10. package/dist/2115.js +1 -1
  11. package/dist/2195.js +1 -1
  12. package/dist/3021.js +1 -1
  13. package/dist/3027.js +1 -1
  14. package/dist/3186.js +1 -1
  15. package/dist/364.js +1 -1
  16. package/dist/3758.js +1 -1
  17. package/dist/3836.js +1 -1
  18. package/dist/3872.js +1 -1
  19. package/dist/3879.js +1 -1
  20. package/dist/3949.js +1 -1
  21. package/dist/4211.js +1 -1
  22. package/dist/4350.js +1 -1
  23. package/dist/4390.js +1 -1
  24. package/dist/4566.js +1 -1
  25. package/dist/4662.js +1 -1
  26. package/dist/4928.js +1 -1
  27. package/dist/{3241.js → 4989.js} +2 -2
  28. package/dist/5000.js +1 -1
  29. package/dist/5151.js +1 -1
  30. package/dist/5171.js +1 -1
  31. package/dist/5876.js +1 -1
  32. package/dist/597.js +1 -1
  33. package/dist/6368.js +2 -0
  34. package/dist/6420.js +2 -0
  35. package/dist/6451.js +1 -1
  36. package/dist/6480.js +1 -1
  37. package/dist/6577.js +1 -1
  38. package/dist/6983.js +1 -1
  39. package/dist/7084.js +1 -1
  40. package/dist/7225.js +1 -1
  41. package/dist/7267.js +1 -1
  42. package/dist/7958.js +1 -1
  43. package/dist/7997.js +1 -1
  44. package/dist/8069.js +1 -1
  45. package/dist/8177.js +1 -1
  46. package/dist/8212.js +1 -1
  47. package/dist/8243.js +1 -1
  48. package/dist/8283.js +1 -1
  49. package/dist/8478.js +1 -1
  50. package/dist/851.js +1 -1
  51. package/dist/8573.js +1 -1
  52. package/dist/8728.js +1 -1
  53. package/dist/8808.js +1 -1
  54. package/dist/8999.js +1 -1
  55. package/dist/9068.js +1 -1
  56. package/dist/9130.js +1 -1
  57. package/dist/9162.js +1 -1
  58. package/dist/9219.js +1 -1
  59. package/dist/9244.js +2 -0
  60. package/dist/9296.js +2 -0
  61. package/dist/9423.js +1 -1
  62. package/dist/9430.js +1 -1
  63. package/dist/9929.js +1 -1
  64. package/dist/993.js +1 -1
  65. package/dist/index.html +0 -8
  66. package/dist/main.js +1 -1
  67. package/dist/main.js.LICENSE.txt +2 -2
  68. package/package.json +14 -12
  69. package/public/index.html +0 -8
  70. package/src/App.tsx +1 -1
  71. package/src/components/SampleColumns.tsx +10 -0
  72. package/src/components/combobox/partials/variants.tsx +3 -2
  73. package/src/components/drawer/basic.tsx +2 -20
  74. package/src/components/drawer/controlled.tsx +0 -8
  75. package/src/components/form/error-list.tsx +66 -24
  76. package/src/components/handout/basic.tsx +1 -1
  77. package/src/components/input-checkbox/partials/variants.tsx +5 -4
  78. package/src/components/input-color/partials/cases.tsx +4 -2
  79. package/src/components/input-color/partials/variants.tsx +3 -2
  80. package/src/components/input-date/partials/cases.tsx +6 -3
  81. package/src/components/input-date/partials/variants.tsx +3 -2
  82. package/src/components/input-date/show-hide-msg.tsx +1 -1
  83. package/src/components/input-email/partials/cases.tsx +6 -3
  84. package/src/components/input-email/partials/variants.tsx +3 -2
  85. package/src/components/input-file/partials/cases.tsx +6 -3
  86. package/src/components/input-file/partials/variants.tsx +3 -2
  87. package/src/components/input-number/partials/variants.tsx +3 -2
  88. package/src/components/input-password/partials/cases.tsx +8 -5
  89. package/src/components/input-password/partials/variants.tsx +3 -2
  90. package/src/components/input-radio/partials/variants.tsx +3 -2
  91. package/src/components/input-range/partials/cases.tsx +6 -3
  92. package/src/components/input-range/partials/variants.tsx +3 -2
  93. package/src/components/input-text/{hide-errors.tsx → hide-msg.tsx} +5 -5
  94. package/src/components/input-text/partials/variants.tsx +3 -2
  95. package/src/components/input-text/routes.ts +2 -2
  96. package/src/components/modal/basic.tsx +28 -12
  97. package/src/components/select/partials/variants.tsx +3 -2
  98. package/src/components/single-select/partials/variants.tsx +3 -2
  99. package/src/components/table/column-alignment.tsx +4 -0
  100. package/src/components/table/complex-headers.tsx +1 -0
  101. package/src/components/table/interactive-child-elements.tsx +2 -0
  102. package/src/components/table/multi-sort.tsx +2 -0
  103. package/src/components/table/pagination-position.tsx +3 -0
  104. package/src/components/table/render-cell.tsx +1 -1
  105. package/src/components/table/sort-data.tsx +2 -2
  106. package/src/components/table/stateful-with-selection.tsx +1 -0
  107. package/src/components/table/stateful-with-single-selection.tsx +1 -0
  108. package/src/components/table/stateless-with-selection.tsx +1 -0
  109. package/src/components/table/stateless-with-single-selection.tsx +1 -0
  110. package/src/components/table/stateless.tsx +1 -0
  111. package/src/components/table/with-footer.tsx +1 -0
  112. package/src/components/table/with-pagination.tsx +1 -1
  113. package/src/components/textarea/partials/cases.tsx +9 -4
  114. package/src/components/textarea/partials/variants.tsx +3 -2
  115. package/src/react.main.tsx +3 -2
  116. package/src/scenarios/input-group-with-error.tsx +4 -4
  117. package/src/shares/theme.ts +4 -8
  118. package/dist/1258.js +0 -2
  119. package/dist/1298.js +0 -2
  120. package/dist/5792.js +0 -2
  121. package/dist/7779.js +0 -2
  122. package/dist/9542.js +0 -2
  123. package/dist/9542.js.LICENSE.txt +0 -3
  124. package/dist/assets/fontawesome-free/LICENSE.txt +0 -165
  125. package/dist/assets/fontawesome-free/css/all.css +0 -7831
  126. package/dist/assets/fontawesome-free/css/all.min.css +0 -6
  127. package/dist/assets/fontawesome-free/css/brands.css +0 -1432
  128. package/dist/assets/fontawesome-free/css/brands.min.css +0 -6
  129. package/dist/assets/fontawesome-free/css/fontawesome.css +0 -6338
  130. package/dist/assets/fontawesome-free/css/fontawesome.min.css +0 -6
  131. package/dist/assets/fontawesome-free/css/regular.css +0 -19
  132. package/dist/assets/fontawesome-free/css/regular.min.css +0 -6
  133. package/dist/assets/fontawesome-free/css/solid.css +0 -19
  134. package/dist/assets/fontawesome-free/css/solid.min.css +0 -6
  135. package/dist/assets/fontawesome-free/css/svg-with-js.css +0 -634
  136. package/dist/assets/fontawesome-free/css/svg-with-js.min.css +0 -6
  137. package/dist/assets/fontawesome-free/css/v4-font-face.css +0 -26
  138. package/dist/assets/fontawesome-free/css/v4-font-face.min.css +0 -6
  139. package/dist/assets/fontawesome-free/css/v4-shims.css +0 -2146
  140. package/dist/assets/fontawesome-free/css/v4-shims.min.css +0 -6
  141. package/dist/assets/fontawesome-free/css/v5-font-face.css +0 -22
  142. package/dist/assets/fontawesome-free/css/v5-font-face.min.css +0 -6
  143. package/dist/assets/fontawesome-free/webfonts/fa-brands-400.ttf +0 -0
  144. package/dist/assets/fontawesome-free/webfonts/fa-brands-400.woff2 +0 -0
  145. package/dist/assets/fontawesome-free/webfonts/fa-regular-400.ttf +0 -0
  146. package/dist/assets/fontawesome-free/webfonts/fa-regular-400.woff2 +0 -0
  147. package/dist/assets/fontawesome-free/webfonts/fa-solid-900.ttf +0 -0
  148. package/dist/assets/fontawesome-free/webfonts/fa-solid-900.woff2 +0 -0
  149. package/dist/assets/fontawesome-free/webfonts/fa-v4compatibility.ttf +0 -0
  150. package/dist/assets/fontawesome-free/webfonts/fa-v4compatibility.woff2 +0 -0
  151. package/dist/assets/icofont/demo.html +0 -18939
  152. package/dist/assets/icofont/fonts/icofont.eot +0 -0
  153. package/dist/assets/icofont/fonts/icofont.svg +0 -2105
  154. package/dist/assets/icofont/fonts/icofont.ttf +0 -0
  155. package/dist/assets/icofont/fonts/icofont.woff +0 -0
  156. package/dist/assets/icofont/fonts/icofont.woff2 +0 -0
  157. package/dist/assets/icofont/icofont.css +0 -10757
  158. package/dist/assets/icofont/icofont.min.css +0 -7
  159. package/dist/assets/kreon/Kreon-VariableFont_wght.ttf +0 -0
  160. package/dist/assets/kreon/OFL.txt +0 -93
  161. package/dist/assets/kreon/README.txt +0 -67
  162. package/dist/assets/kreon/static/Kreon-Bold.ttf +0 -0
  163. package/dist/assets/kreon/static/Kreon-Light.ttf +0 -0
  164. package/dist/assets/kreon/static/Kreon-Medium.ttf +0 -0
  165. package/dist/assets/kreon/static/Kreon-Regular.ttf +0 -0
  166. package/dist/assets/kreon/static/Kreon-SemiBold.ttf +0 -0
  167. package/dist/assets/kreon/style.css +0 -41
  168. package/dist/assets/material-icons/LICENSE +0 -202
  169. package/dist/assets/material-icons/README.md +0 -129
  170. package/dist/assets/material-icons/_data/versions.json +0 -2124
  171. package/dist/assets/material-icons/css/_codepoints.scss +0 -2279
  172. package/dist/assets/material-icons/css/_mixins.scss +0 -13
  173. package/dist/assets/material-icons/css/_variables.scss +0 -6
  174. package/dist/assets/material-icons/css/material-icons.css +0 -9208
  175. package/dist/assets/material-icons/css/material-icons.min.css +0 -1
  176. package/dist/assets/material-icons/css/material-icons.scss +0 -39
  177. package/dist/assets/material-icons/iconfont/_mixins.scss +0 -55
  178. package/dist/assets/material-icons/iconfont/_variables.scss +0 -3
  179. package/dist/assets/material-icons/iconfont/filled.css +0 -24
  180. package/dist/assets/material-icons/iconfont/filled.scss +0 -4
  181. package/dist/assets/material-icons/iconfont/material-icons-outlined.woff +0 -0
  182. package/dist/assets/material-icons/iconfont/material-icons-outlined.woff2 +0 -0
  183. package/dist/assets/material-icons/iconfont/material-icons-round.woff +0 -0
  184. package/dist/assets/material-icons/iconfont/material-icons-round.woff2 +0 -0
  185. package/dist/assets/material-icons/iconfont/material-icons-sharp.woff +0 -0
  186. package/dist/assets/material-icons/iconfont/material-icons-sharp.woff2 +0 -0
  187. package/dist/assets/material-icons/iconfont/material-icons-two-tone.woff +0 -0
  188. package/dist/assets/material-icons/iconfont/material-icons-two-tone.woff2 +0 -0
  189. package/dist/assets/material-icons/iconfont/material-icons.css +0 -124
  190. package/dist/assets/material-icons/iconfont/material-icons.scss +0 -5
  191. package/dist/assets/material-icons/iconfont/material-icons.woff +0 -0
  192. package/dist/assets/material-icons/iconfont/material-icons.woff2 +0 -0
  193. package/dist/assets/material-icons/iconfont/outlined.css +0 -24
  194. package/dist/assets/material-icons/iconfont/outlined.scss +0 -4
  195. package/dist/assets/material-icons/iconfont/round.css +0 -24
  196. package/dist/assets/material-icons/iconfont/round.scss +0 -4
  197. package/dist/assets/material-icons/iconfont/sharp.css +0 -24
  198. package/dist/assets/material-icons/iconfont/sharp.scss +0 -4
  199. package/dist/assets/material-icons/iconfont/two-tone.css +0 -24
  200. package/dist/assets/material-icons/iconfont/two-tone.scss +0 -4
  201. package/dist/assets/material-icons/index.d.ts +0 -2128
  202. package/dist/assets/material-icons/package.json +0 -52
  203. package/dist/assets/material-symbols/LICENSE +0 -202
  204. package/dist/assets/material-symbols/README.md +0 -114
  205. package/dist/assets/material-symbols/_core.scss +0 -46
  206. package/dist/assets/material-symbols/index.css +0 -74
  207. package/dist/assets/material-symbols/index.d.ts +0 -2809
  208. package/dist/assets/material-symbols/index.scss +0 -3
  209. package/dist/assets/material-symbols/material-symbols-outlined.woff2 +0 -0
  210. package/dist/assets/material-symbols/material-symbols-rounded.woff2 +0 -0
  211. package/dist/assets/material-symbols/material-symbols-sharp.woff2 +0 -0
  212. package/dist/assets/material-symbols/outlined.css +0 -24
  213. package/dist/assets/material-symbols/outlined.scss +0 -3
  214. package/dist/assets/material-symbols/package.json +0 -41
  215. package/dist/assets/material-symbols/rounded.css +0 -24
  216. package/dist/assets/material-symbols/rounded.scss +0 -3
  217. package/dist/assets/material-symbols/sharp.css +0 -24
  218. package/dist/assets/material-symbols/sharp.scss +0 -3
  219. package/dist/assets/noto-sans/fonts/NotoSans-Black.ttf +0 -0
  220. package/dist/assets/noto-sans/fonts/NotoSans-BlackItalic.ttf +0 -0
  221. package/dist/assets/noto-sans/fonts/NotoSans-Bold.ttf +0 -0
  222. package/dist/assets/noto-sans/fonts/NotoSans-BoldItalic.ttf +0 -0
  223. package/dist/assets/noto-sans/fonts/NotoSans-ExtraBold.ttf +0 -0
  224. package/dist/assets/noto-sans/fonts/NotoSans-ExtraBoldItalic.ttf +0 -0
  225. package/dist/assets/noto-sans/fonts/NotoSans-ExtraLight.ttf +0 -0
  226. package/dist/assets/noto-sans/fonts/NotoSans-ExtraLightItalic.ttf +0 -0
  227. package/dist/assets/noto-sans/fonts/NotoSans-Italic.ttf +0 -0
  228. package/dist/assets/noto-sans/fonts/NotoSans-Light.ttf +0 -0
  229. package/dist/assets/noto-sans/fonts/NotoSans-LightItalic.ttf +0 -0
  230. package/dist/assets/noto-sans/fonts/NotoSans-Medium.ttf +0 -0
  231. package/dist/assets/noto-sans/fonts/NotoSans-MediumItalic.ttf +0 -0
  232. package/dist/assets/noto-sans/fonts/NotoSans-Regular.ttf +0 -0
  233. package/dist/assets/noto-sans/fonts/NotoSans-SemiBold.ttf +0 -0
  234. package/dist/assets/noto-sans/fonts/NotoSans-SemiBoldItalic.ttf +0 -0
  235. package/dist/assets/noto-sans/fonts/NotoSans-Thin.ttf +0 -0
  236. package/dist/assets/noto-sans/fonts/NotoSans-ThinItalic.ttf +0 -0
  237. package/dist/assets/noto-sans/fonts/OFL.txt +0 -93
  238. package/dist/assets/noto-sans/noto-sans.css +0 -11
  239. package/dist/assets/roboto/LICENSE.txt +0 -202
  240. package/dist/assets/roboto/Roboto-Black.ttf +0 -0
  241. package/dist/assets/roboto/Roboto-BlackItalic.ttf +0 -0
  242. package/dist/assets/roboto/Roboto-Bold.ttf +0 -0
  243. package/dist/assets/roboto/Roboto-BoldItalic.ttf +0 -0
  244. package/dist/assets/roboto/Roboto-Italic.ttf +0 -0
  245. package/dist/assets/roboto/Roboto-Light.ttf +0 -0
  246. package/dist/assets/roboto/Roboto-LightItalic.ttf +0 -0
  247. package/dist/assets/roboto/Roboto-Medium.ttf +0 -0
  248. package/dist/assets/roboto/Roboto-MediumItalic.ttf +0 -0
  249. package/dist/assets/roboto/Roboto-Regular.ttf +0 -0
  250. package/dist/assets/roboto/Roboto-Thin.ttf +0 -0
  251. package/dist/assets/roboto/Roboto-ThinItalic.ttf +0 -0
  252. package/dist/assets/roboto/roboto.css +0 -27
  253. package/dist/assets/tabler-icons/fonts/tabler-icons.eot +0 -0
  254. package/dist/assets/tabler-icons/fonts/tabler-icons.ttf +0 -0
  255. package/dist/assets/tabler-icons/fonts/tabler-icons.woff +0 -0
  256. package/dist/assets/tabler-icons/fonts/tabler-icons.woff2 +0 -0
  257. package/dist/assets/tabler-icons/tabler-icons.css +0 -16056
  258. package/dist/assets/tabler-icons/tabler-icons.html +0 -36226
  259. package/dist/assets/tabler-icons/tabler-icons.min.css +0 -4
  260. package/dist/assets/tabler-icons/tabler-icons.png +0 -0
  261. package/dist/assets/tabler-icons/tabler-icons.scss +0 -8058
  262. package/public/assets/fontawesome-free/LICENSE.txt +0 -165
  263. package/public/assets/fontawesome-free/css/all.css +0 -7831
  264. package/public/assets/fontawesome-free/css/all.min.css +0 -6
  265. package/public/assets/fontawesome-free/css/brands.css +0 -1432
  266. package/public/assets/fontawesome-free/css/brands.min.css +0 -6
  267. package/public/assets/fontawesome-free/css/fontawesome.css +0 -6338
  268. package/public/assets/fontawesome-free/css/fontawesome.min.css +0 -6
  269. package/public/assets/fontawesome-free/css/regular.css +0 -19
  270. package/public/assets/fontawesome-free/css/regular.min.css +0 -6
  271. package/public/assets/fontawesome-free/css/solid.css +0 -19
  272. package/public/assets/fontawesome-free/css/solid.min.css +0 -6
  273. package/public/assets/fontawesome-free/css/svg-with-js.css +0 -634
  274. package/public/assets/fontawesome-free/css/svg-with-js.min.css +0 -6
  275. package/public/assets/fontawesome-free/css/v4-font-face.css +0 -26
  276. package/public/assets/fontawesome-free/css/v4-font-face.min.css +0 -6
  277. package/public/assets/fontawesome-free/css/v4-shims.css +0 -2146
  278. package/public/assets/fontawesome-free/css/v4-shims.min.css +0 -6
  279. package/public/assets/fontawesome-free/css/v5-font-face.css +0 -22
  280. package/public/assets/fontawesome-free/css/v5-font-face.min.css +0 -6
  281. package/public/assets/fontawesome-free/webfonts/fa-brands-400.ttf +0 -0
  282. package/public/assets/fontawesome-free/webfonts/fa-brands-400.woff2 +0 -0
  283. package/public/assets/fontawesome-free/webfonts/fa-regular-400.ttf +0 -0
  284. package/public/assets/fontawesome-free/webfonts/fa-regular-400.woff2 +0 -0
  285. package/public/assets/fontawesome-free/webfonts/fa-solid-900.ttf +0 -0
  286. package/public/assets/fontawesome-free/webfonts/fa-solid-900.woff2 +0 -0
  287. package/public/assets/fontawesome-free/webfonts/fa-v4compatibility.ttf +0 -0
  288. package/public/assets/fontawesome-free/webfonts/fa-v4compatibility.woff2 +0 -0
  289. package/public/assets/icofont/demo.html +0 -18939
  290. package/public/assets/icofont/fonts/icofont.eot +0 -0
  291. package/public/assets/icofont/fonts/icofont.svg +0 -2105
  292. package/public/assets/icofont/fonts/icofont.ttf +0 -0
  293. package/public/assets/icofont/fonts/icofont.woff +0 -0
  294. package/public/assets/icofont/fonts/icofont.woff2 +0 -0
  295. package/public/assets/icofont/icofont.css +0 -10757
  296. package/public/assets/icofont/icofont.min.css +0 -7
  297. package/public/assets/kreon/Kreon-VariableFont_wght.ttf +0 -0
  298. package/public/assets/kreon/OFL.txt +0 -93
  299. package/public/assets/kreon/README.txt +0 -67
  300. package/public/assets/kreon/static/Kreon-Bold.ttf +0 -0
  301. package/public/assets/kreon/static/Kreon-Light.ttf +0 -0
  302. package/public/assets/kreon/static/Kreon-Medium.ttf +0 -0
  303. package/public/assets/kreon/static/Kreon-Regular.ttf +0 -0
  304. package/public/assets/kreon/static/Kreon-SemiBold.ttf +0 -0
  305. package/public/assets/kreon/style.css +0 -41
  306. package/public/assets/material-icons/LICENSE +0 -202
  307. package/public/assets/material-icons/README.md +0 -129
  308. package/public/assets/material-icons/_data/versions.json +0 -2124
  309. package/public/assets/material-icons/css/_codepoints.scss +0 -2279
  310. package/public/assets/material-icons/css/_mixins.scss +0 -13
  311. package/public/assets/material-icons/css/_variables.scss +0 -6
  312. package/public/assets/material-icons/css/material-icons.css +0 -9208
  313. package/public/assets/material-icons/css/material-icons.min.css +0 -1
  314. package/public/assets/material-icons/css/material-icons.scss +0 -39
  315. package/public/assets/material-icons/iconfont/_mixins.scss +0 -55
  316. package/public/assets/material-icons/iconfont/_variables.scss +0 -3
  317. package/public/assets/material-icons/iconfont/filled.css +0 -24
  318. package/public/assets/material-icons/iconfont/filled.scss +0 -4
  319. package/public/assets/material-icons/iconfont/material-icons-outlined.woff +0 -0
  320. package/public/assets/material-icons/iconfont/material-icons-outlined.woff2 +0 -0
  321. package/public/assets/material-icons/iconfont/material-icons-round.woff +0 -0
  322. package/public/assets/material-icons/iconfont/material-icons-round.woff2 +0 -0
  323. package/public/assets/material-icons/iconfont/material-icons-sharp.woff +0 -0
  324. package/public/assets/material-icons/iconfont/material-icons-sharp.woff2 +0 -0
  325. package/public/assets/material-icons/iconfont/material-icons-two-tone.woff +0 -0
  326. package/public/assets/material-icons/iconfont/material-icons-two-tone.woff2 +0 -0
  327. package/public/assets/material-icons/iconfont/material-icons.css +0 -124
  328. package/public/assets/material-icons/iconfont/material-icons.scss +0 -5
  329. package/public/assets/material-icons/iconfont/material-icons.woff +0 -0
  330. package/public/assets/material-icons/iconfont/material-icons.woff2 +0 -0
  331. package/public/assets/material-icons/iconfont/outlined.css +0 -24
  332. package/public/assets/material-icons/iconfont/outlined.scss +0 -4
  333. package/public/assets/material-icons/iconfont/round.css +0 -24
  334. package/public/assets/material-icons/iconfont/round.scss +0 -4
  335. package/public/assets/material-icons/iconfont/sharp.css +0 -24
  336. package/public/assets/material-icons/iconfont/sharp.scss +0 -4
  337. package/public/assets/material-icons/iconfont/two-tone.css +0 -24
  338. package/public/assets/material-icons/iconfont/two-tone.scss +0 -4
  339. package/public/assets/material-icons/index.d.ts +0 -2128
  340. package/public/assets/material-icons/package.json +0 -52
  341. package/public/assets/material-symbols/LICENSE +0 -202
  342. package/public/assets/material-symbols/README.md +0 -114
  343. package/public/assets/material-symbols/_core.scss +0 -46
  344. package/public/assets/material-symbols/index.css +0 -74
  345. package/public/assets/material-symbols/index.d.ts +0 -2809
  346. package/public/assets/material-symbols/index.scss +0 -3
  347. package/public/assets/material-symbols/material-symbols-outlined.woff2 +0 -0
  348. package/public/assets/material-symbols/material-symbols-rounded.woff2 +0 -0
  349. package/public/assets/material-symbols/material-symbols-sharp.woff2 +0 -0
  350. package/public/assets/material-symbols/outlined.css +0 -24
  351. package/public/assets/material-symbols/outlined.scss +0 -3
  352. package/public/assets/material-symbols/package.json +0 -41
  353. package/public/assets/material-symbols/rounded.css +0 -24
  354. package/public/assets/material-symbols/rounded.scss +0 -3
  355. package/public/assets/material-symbols/sharp.css +0 -24
  356. package/public/assets/material-symbols/sharp.scss +0 -3
  357. package/public/assets/noto-sans/fonts/NotoSans-Black.ttf +0 -0
  358. package/public/assets/noto-sans/fonts/NotoSans-BlackItalic.ttf +0 -0
  359. package/public/assets/noto-sans/fonts/NotoSans-Bold.ttf +0 -0
  360. package/public/assets/noto-sans/fonts/NotoSans-BoldItalic.ttf +0 -0
  361. package/public/assets/noto-sans/fonts/NotoSans-ExtraBold.ttf +0 -0
  362. package/public/assets/noto-sans/fonts/NotoSans-ExtraBoldItalic.ttf +0 -0
  363. package/public/assets/noto-sans/fonts/NotoSans-ExtraLight.ttf +0 -0
  364. package/public/assets/noto-sans/fonts/NotoSans-ExtraLightItalic.ttf +0 -0
  365. package/public/assets/noto-sans/fonts/NotoSans-Italic.ttf +0 -0
  366. package/public/assets/noto-sans/fonts/NotoSans-Light.ttf +0 -0
  367. package/public/assets/noto-sans/fonts/NotoSans-LightItalic.ttf +0 -0
  368. package/public/assets/noto-sans/fonts/NotoSans-Medium.ttf +0 -0
  369. package/public/assets/noto-sans/fonts/NotoSans-MediumItalic.ttf +0 -0
  370. package/public/assets/noto-sans/fonts/NotoSans-Regular.ttf +0 -0
  371. package/public/assets/noto-sans/fonts/NotoSans-SemiBold.ttf +0 -0
  372. package/public/assets/noto-sans/fonts/NotoSans-SemiBoldItalic.ttf +0 -0
  373. package/public/assets/noto-sans/fonts/NotoSans-Thin.ttf +0 -0
  374. package/public/assets/noto-sans/fonts/NotoSans-ThinItalic.ttf +0 -0
  375. package/public/assets/noto-sans/fonts/OFL.txt +0 -93
  376. package/public/assets/noto-sans/noto-sans.css +0 -11
  377. package/public/assets/roboto/LICENSE.txt +0 -202
  378. package/public/assets/roboto/Roboto-Black.ttf +0 -0
  379. package/public/assets/roboto/Roboto-BlackItalic.ttf +0 -0
  380. package/public/assets/roboto/Roboto-Bold.ttf +0 -0
  381. package/public/assets/roboto/Roboto-BoldItalic.ttf +0 -0
  382. package/public/assets/roboto/Roboto-Italic.ttf +0 -0
  383. package/public/assets/roboto/Roboto-Light.ttf +0 -0
  384. package/public/assets/roboto/Roboto-LightItalic.ttf +0 -0
  385. package/public/assets/roboto/Roboto-Medium.ttf +0 -0
  386. package/public/assets/roboto/Roboto-MediumItalic.ttf +0 -0
  387. package/public/assets/roboto/Roboto-Regular.ttf +0 -0
  388. package/public/assets/roboto/Roboto-Thin.ttf +0 -0
  389. package/public/assets/roboto/Roboto-ThinItalic.ttf +0 -0
  390. package/public/assets/roboto/roboto.css +0 -27
  391. package/public/assets/tabler-icons/fonts/tabler-icons.eot +0 -0
  392. package/public/assets/tabler-icons/fonts/tabler-icons.ttf +0 -0
  393. package/public/assets/tabler-icons/fonts/tabler-icons.woff +0 -0
  394. package/public/assets/tabler-icons/fonts/tabler-icons.woff2 +0 -0
  395. package/public/assets/tabler-icons/tabler-icons.css +0 -16056
  396. package/public/assets/tabler-icons/tabler-icons.html +0 -36226
  397. package/public/assets/tabler-icons/tabler-icons.min.css +0 -4
  398. package/public/assets/tabler-icons/tabler-icons.png +0 -0
  399. package/public/assets/tabler-icons/tabler-icons.scss +0 -8058
  400. /package/dist/{1258.js.LICENSE.txt → 4989.js.LICENSE.txt} +0 -0
  401. /package/dist/{1298.js.LICENSE.txt → 6368.js.LICENSE.txt} +0 -0
  402. /package/dist/{3241.js.LICENSE.txt → 6420.js.LICENSE.txt} +0 -0
  403. /package/dist/{5792.js.LICENSE.txt → 9244.js.LICENSE.txt} +0 -0
  404. /package/dist/{7779.js.LICENSE.txt → 9296.js.LICENSE.txt} +0 -0
@@ -33,7 +33,7 @@
33
33
  */
34
34
 
35
35
  /**
36
- * @remix-run/router v1.21.0
36
+ * @remix-run/router v1.21.1
37
37
  *
38
38
  * Copyright (c) Remix Software Inc.
39
39
  *
@@ -44,7 +44,7 @@
44
44
  */
45
45
 
46
46
  /**
47
- * React Router v6.28.0
47
+ * React Router v6.28.2
48
48
  *
49
49
  * Copyright (c) Remix Software Inc.
50
50
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@public-ui/sample-react",
3
- "version": "3.0.0-rc.2",
3
+ "version": "3.0.0-rc.4",
4
4
  "description": "This app contains samples for the KoliBri/Public UI",
5
5
  "license": "EUPL-1.2",
6
6
  "repository": {
@@ -16,8 +16,8 @@
16
16
  "@types/node": "ts5.7",
17
17
  "@types/react": "18.3.4",
18
18
  "@types/react-dom": "18.3.5",
19
- "@typescript-eslint/eslint-plugin": "8.18.0",
20
- "@typescript-eslint/parser": "8.18.0",
19
+ "@typescript-eslint/eslint-plugin": "8.18.2",
20
+ "@typescript-eslint/parser": "8.18.2",
21
21
  "@unocss/preset-uno": "0.58.9",
22
22
  "@unocss/webpack": "0.58.9",
23
23
  "adopted-style-sheets": "1.1.7",
@@ -31,7 +31,7 @@
31
31
  "eslint-plugin-html": "8.1.2",
32
32
  "eslint-plugin-json": "^3",
33
33
  "eslint-plugin-jsx-a11y": "6.10.2",
34
- "eslint-plugin-react": "7.37.2",
34
+ "eslint-plugin-react": "7.37.4",
35
35
  "file-loader": "6.2.0",
36
36
  "formik": "2.4.6",
37
37
  "knip": "5.40.0",
@@ -43,22 +43,23 @@
43
43
  "prettier": "3.4.2",
44
44
  "react": "18.3.1",
45
45
  "react-dom": "18.3.1",
46
- "react-number-format": "5.4.2",
47
- "react-router": "6.28.0",
48
- "react-router-dom": "6.28.0",
46
+ "react-number-format": "5.4.3",
47
+ "react-router": "6.28.2",
48
+ "react-router-dom": "6.28.2",
49
49
  "rimraf": "6.0.1",
50
50
  "sass-loader": "16.0.4",
51
51
  "string-replace-loader": "3.1.0",
52
52
  "tslib": "2.8.1",
53
- "typescript": "5.7.2",
53
+ "typescript": "5.7.3",
54
54
  "webpack": "5.97.1",
55
55
  "webpack-cli": "5.1.4",
56
56
  "webpack-dev-server": "5.2.0",
57
57
  "world_countries_lists": "2.9.0",
58
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"
59
+ "@public-ui-/theme-ecl": "2.1.3",
60
+ "@public-ui/components": "3.0.0-rc.4",
61
+ "@public-ui/react": "3.0.0-rc.4",
62
+ "@public-ui/theme-default": "3.0.0-rc.4"
62
63
  },
63
64
  "files": [
64
65
  ".eslintignore",
@@ -75,13 +76,14 @@
75
76
  "webpack.config.js"
76
77
  ],
77
78
  "scripts": {
79
+ "prebuild": "pnpm -r --filter=@public-ui/theme-* --filter @public-ui-/theme-* build",
78
80
  "build": "rimraf dist && cross-env NODE_ENV=production webpack",
79
81
  "build:deps": "pnpm --filter @public-ui/sample-react^... build",
80
82
  "format": "prettier --check src",
81
83
  "lint": "tsc --noemit && eslint \"{src,tests,e2e}/**/*.{html,js,json,jsx,ts,tsx,gql,graphql}\"",
82
84
  "postinstall": "pnpm exec playwright install",
83
85
  "prepare:components-assets": "cpy \"node_modules/@public-ui/components/assets/**/*\" public/assets --dot",
84
- "prepare:themes-assets": "cpy \"node_modules/@public-ui/themes/assets/**/*\" public/assets --dot",
86
+ "prepare:themes-assets": "cpy \"node_modules/@public-ui/theme-default/assets/**/*\" public/assets --dot",
85
87
  "serve": "cross-env NODE_ENV=development webpack serve --devtool=source-map",
86
88
  "start": "npm run serve -- --open",
87
89
  "test": "pnpm test:e2e",
package/public/index.html CHANGED
@@ -7,14 +7,6 @@
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
9
  <link rel="stylesheet" href="assets/codicons/codicon.css" />
10
- <link rel="stylesheet" href="assets/fontawesome-free/css/all.min.css" />
11
- <link rel="stylesheet" href="assets/icofont/icofont.min.css" />
12
- <link rel="stylesheet" href="assets/kreon/style.css" />
13
- <link rel="stylesheet" href="assets/noto-sans/noto-sans.css" />
14
- <link rel="stylesheet" href="assets/material-icons/iconfont/material-icons.css" />
15
- <link rel="stylesheet" href="assets/material-symbols/index.css" />
16
- <link rel="stylesheet" href="assets/roboto/roboto.css" />
17
- <link rel="stylesheet" href="assets/tabler-icons/tabler-icons.css" />
18
10
  <link rel="stylesheet" href="main.css" />
19
11
  <meta name="robots" content="noindex" />
20
12
  <meta name="kolibri" content="dev-mode=false;experimental-mode=true;" />
package/src/App.tsx CHANGED
@@ -137,7 +137,7 @@ export const App: FC = () => {
137
137
  )}
138
138
 
139
139
  <main className="flex flex-col items-stretch p-4" id="route-container">
140
- {!hideMenus && isDraftTheme(theme) && <KolBadge className="block mb-3" _label="DRAFT" _color="#db5461" />}
140
+ {!hideMenus && isDraftTheme(theme) && <KolBadge className="block mb-3" _label="In progress" _color="#db5461" />}
141
141
  <Routes>
142
142
  {ROUTE_TREE}
143
143
  <Route path="*" element={<Navigate to={ROUTE_LIST[0]} replace />} />
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import { type PropsWithChildren } from 'react';
3
+ import { useSearchParams } from 'react-router-dom';
4
+
5
+ export function SampleColumns({ children }: PropsWithChildren) {
6
+ const [searchParams] = useSearchParams();
7
+ const noColumns = searchParams.has('noColumns');
8
+
9
+ return <div className={noColumns ? '' : 'grid md:grid-cols-2 gap-4'}>{children}</div>;
10
+ }
@@ -2,10 +2,11 @@ import React from 'react';
2
2
  import type { Components } from '@public-ui/components';
3
3
 
4
4
  import { ComboboxCases } from './cases';
5
+ import { SampleColumns } from '../../SampleColumns';
5
6
 
6
7
  export const ComboboxVariants = (props: Partial<Components.KolCombobox>) => {
7
8
  return (
8
- <div className="w-full grid md:grid-cols-2 gap-4">
9
+ <SampleColumns>
9
10
  <fieldset>
10
11
  <legend>Text</legend>
11
12
  <ComboboxCases {...props} />
@@ -14,6 +15,6 @@ export const ComboboxVariants = (props: Partial<Components.KolCombobox>) => {
14
15
  <legend>Text (hideLabel)</legend>
15
16
  <ComboboxCases {...props} _hideLabel />
16
17
  </fieldset>
17
- </div>
18
+ </SampleColumns>
18
19
  );
19
20
  };
@@ -14,21 +14,17 @@ export const DrawerBasic: FC = () => {
14
14
  const defaultAlign = searchParams.get('align') as AlignPropType;
15
15
  const hideMenus = useContext(HideMenusContext);
16
16
  const drawerElement = useRef<HTMLKolDrawerElement>(null);
17
- const drawerModalElement = useRef<HTMLKolDrawerElement>(null);
18
17
  const [align, setAlign] = useState<AlignPropType>(defaultAlign || 'left');
19
18
  useEffect(() => {
20
19
  if (defaultAlign) {
21
- drawerModalElement.current?.open();
20
+ drawerElement.current?.open();
22
21
  }
23
22
  }, [defaultAlign]);
24
23
  return (
25
24
  <>
26
25
  {!hideMenus && <KolBadge className="block mb-3" _label="Component is a DRAFT - Don't use in production yet." _color="#db5461" />}
27
26
  <SampleDescription>
28
- <p>
29
- KolDrawer shows a dialog attached to one of the sides of the viewport, when opened. This sample illustrates the four alignments and the modal- and
30
- non-modal modes.
31
- </p>
27
+ <p>KolDrawer shows a dialog attached to one of the sides of the viewport, when opened. This sample illustrates the four alignments.</p>
32
28
  </SampleDescription>
33
29
 
34
30
  <DrawerRadioAlign value={align} onChange={(_, value) => setAlign(value as AlignPropType)} />
@@ -41,20 +37,6 @@ export const DrawerBasic: FC = () => {
41
37
  <KolButton _label="Close drawer" _on={{ onClick: () => drawerElement.current?.close() }} />
42
38
  </KolDrawer>
43
39
  <KolButton _label="Open drawer" _on={{ onClick: () => drawerElement.current?.open() }} />
44
- <KolDrawer
45
- ref={drawerModalElement}
46
- _modal
47
- _align={align}
48
- _label="I am a Drawer Modal"
49
- _on={{ onClose: () => console.log('Drawer Modal onClose triggered!') }}
50
- >
51
- <p>
52
- Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
53
- voluptua.
54
- </p>
55
- <KolButton _label="Close drawer modal" _on={{ onClick: () => drawerModalElement.current?.close() }} />
56
- </KolDrawer>
57
- <KolButton _label="Open drawer as modal" _on={{ onClick: () => drawerModalElement.current?.open() }} />
58
40
  </div>
59
41
  </>
60
42
  );
@@ -14,7 +14,6 @@ export const DrawerControlled: FC = () => {
14
14
  const defaultAlign = searchParams.get('align') as AlignPropType;
15
15
  const hideMenus = useContext(HideMenusContext);
16
16
  const [open, setOpen] = useState(false);
17
- const [modalOpen, setModalOpen] = useState(false);
18
17
  const [align, setAlign] = useState<AlignPropType>(defaultAlign || 'left');
19
18
  return (
20
19
  <div>
@@ -34,13 +33,6 @@ export const DrawerControlled: FC = () => {
34
33
  </div>
35
34
  </KolDrawer>
36
35
  <KolButton _label="Open drawer" _on={{ onClick: () => setOpen(true) }} />
37
- <KolDrawer _open={modalOpen} _modal _align={align} _label="I'm a controlled modal drawer" _on={{ onClose: () => setModalOpen(false) }}>
38
- <div>
39
- <p>Lorem ipsum dolor sit amet,</p>
40
- <KolButton _label="Close drawer" _on={{ onClick: () => setModalOpen(false) }} />
41
- </div>
42
- </KolDrawer>
43
- <KolButton _label="Open drawer as modal" _on={{ onClick: () => setModalOpen(true) }} />
44
36
  </div>
45
37
  </div>
46
38
  );
@@ -1,28 +1,70 @@
1
+ import { KolButton, KolForm, KolInputText } from '@public-ui/react';
1
2
  import type { FC } from 'react';
2
- import React from 'react';
3
+ import React, { useEffect, useRef } from 'react';
3
4
  import { SampleDescription } from '../SampleDescription';
4
- import { KolForm, KolInputText } from '@public-ui/react';
5
5
 
6
- export const FormErrorList: FC = () => (
7
- <>
8
- <SampleDescription>
9
- <p>This sample shows a form with error messages.</p>
10
- </SampleDescription>
6
+ export const FormErrorList: FC = () => {
7
+ const formRef = useRef<HTMLKolFormElement | null>(null);
11
8
 
12
- <KolForm
13
- className="w-full"
14
- _errorList={[
15
- {
16
- message: 'Error in Input 2',
17
- selector: '#input2',
18
- },
19
- ]}
20
- >
21
- <div className="grid gap-2">
22
- <KolInputText id="input1" _label="Input 1" />
23
- <KolInputText id="input2" _label="Input 2" _touched _msg={{ _description: 'Input error', _type: 'error' }} />
24
- <KolInputText id="input3" _label="Input 3" />
25
- </div>
26
- </KolForm>
27
- </>
28
- );
9
+ const scrollTo = () => {
10
+ formRef.current?.focusErrorList();
11
+ };
12
+
13
+ /**
14
+ * Simulate the form submission
15
+ */
16
+ useEffect(() => {
17
+ formRef.current?.focusErrorList();
18
+ }, []);
19
+
20
+ return (
21
+ <>
22
+ <SampleDescription>
23
+ <p>This sample shows a form with error messages.</p>
24
+ </SampleDescription>
25
+
26
+ <KolForm
27
+ className="w-full"
28
+ ref={formRef}
29
+ _on={{
30
+ onSubmit: scrollTo,
31
+ }}
32
+ _errorList={[
33
+ {
34
+ message: 'Error in Input 2',
35
+ selector: '#input2',
36
+ },
37
+ {
38
+ message: 'Error in Input 3',
39
+ selector: () => alert('Error in Input 3'),
40
+ },
41
+ ]}
42
+ >
43
+ <div className="grid gap-2">
44
+ <KolInputText id="input1" _label="Input 1" />
45
+ <KolInputText
46
+ id="input2"
47
+ _label="Input 2"
48
+ _touched
49
+ _msg={{
50
+ _description: 'Input error',
51
+ _type: 'error',
52
+ }}
53
+ />
54
+ <KolInputText
55
+ id="input3"
56
+ _label="Input 3"
57
+ _touched
58
+ _msg={{
59
+ _description: 'Input error',
60
+ _type: 'error',
61
+ }}
62
+ />
63
+ <div>
64
+ <KolButton _label="ScrollTo" _type="submit" />
65
+ </div>
66
+ </div>
67
+ </KolForm>
68
+ </>
69
+ );
70
+ };
@@ -471,7 +471,7 @@ export const HandoutBasic: FC = () => {
471
471
  </KolCard>
472
472
  <KolCard className="col-span-6 sm:col-span-6 md:col-span-4 xl:col-span-5" _label="Table with Pagination" _level={2}>
473
473
  <div slot="" className="grid gap-2 p-2">
474
- <KolTableStateful _label="Table" _headers={TABLE_HEADERS} _data={TABLE_DATA} _pagination></KolTableStateful>
474
+ <KolTableStateful _label="Table" _minWidth="auto" _headers={TABLE_HEADERS} _data={TABLE_DATA} _pagination></KolTableStateful>
475
475
  </div>
476
476
  </KolCard>
477
477
  </div>
@@ -3,10 +3,11 @@ import React, { forwardRef } from 'react';
3
3
  import { InputCheckboxCases } from './cases';
4
4
 
5
5
  import type { Components } from '@public-ui/components';
6
+ import { SampleColumns } from '../../SampleColumns';
6
7
  export const InputCheckboxVariants = forwardRef<HTMLKolInputCheckboxElement, Components.KolInputCheckbox>(function InputCheckboxVariant(props, ref) {
7
8
  return (
8
9
  <>
9
- <div className="grid md:grid-cols-2 gap-4">
10
+ <SampleColumns>
10
11
  <fieldset>
11
12
  <legend>Label align &quot;left&quot; with label</legend>
12
13
  <InputCheckboxCases {...props} _labelAlign="left" />
@@ -15,8 +16,8 @@ export const InputCheckboxVariants = forwardRef<HTMLKolInputCheckboxElement, Com
15
16
  <legend>Label align &quot;left&quot; without Label (hideLabel)</legend>
16
17
  <InputCheckboxCases ref={ref} {...props} _hideLabel _labelAlign="left" />
17
18
  </fieldset>
18
- </div>
19
- <div className="grid md:grid-cols-2 gap-4">
19
+ </SampleColumns>
20
+ <SampleColumns>
20
21
  <fieldset>
21
22
  <legend>Label align &quot;right&quot; with label</legend>
22
23
  <InputCheckboxCases {...props} />
@@ -25,7 +26,7 @@ export const InputCheckboxVariants = forwardRef<HTMLKolInputCheckboxElement, Com
25
26
  <legend>Label align &quot;right&quot; without Label (hideLabel)</legend>
26
27
  <InputCheckboxCases ref={ref} {...props} _hideLabel />
27
28
  </fieldset>
28
- </div>
29
+ </SampleColumns>
29
30
  </>
30
31
  );
31
32
  });
@@ -1,10 +1,9 @@
1
1
  import React, { forwardRef } from 'react';
2
-
3
2
  import { KolInputColor } from '@public-ui/react';
3
+ import type { Components } from '@public-ui/components';
4
4
 
5
5
  import { ERROR_MSG } from '../../../shares/constants';
6
6
 
7
- import type { Components } from '@public-ui/components';
8
7
  export const InputColorCases = forwardRef<HTMLKolInputColorElement, Components.KolInputColor>(function InputColorCases(props, ref) {
9
8
  return (
10
9
  <div className="grid gap-4">
@@ -26,6 +25,9 @@ export const InputColorCases = forwardRef<HTMLKolInputColorElement, Components.K
26
25
  _suggestions="['#000000','#f08080', '#0000ff','#00ff00']"
27
26
  _touched
28
27
  />
28
+ <KolInputColor {...props} _msg={{ _type: 'info', _description: 'Just a hint' }} _label="Color" />
29
+ <KolInputColor {...props} _msg={{ _type: 'warning', _description: 'Small warning' }} _label="Color" />
30
+ <KolInputColor {...props} _msg={{ _type: 'success', _description: 'Success message' }} _label="Color" />
29
31
  <KolInputColor {...props} ref={ref} _accessKey="C" _hint="Hint text" _label="Color with hint" _value="#f08080" />
30
32
  <KolInputColor {...props} _disabled _label="Color (Disabled)" _value="#f08080" />
31
33
  <KolInputColor {...props} _label="With access key" _accessKey="c"></KolInputColor>
@@ -3,9 +3,10 @@ import React, { forwardRef } from 'react';
3
3
  import { InputColorCases } from './cases';
4
4
 
5
5
  import type { Components } from '@public-ui/components';
6
+ import { SampleColumns } from '../../SampleColumns';
6
7
  export const InputColorVariants = forwardRef<HTMLKolInputColorElement, Components.KolInputColor>(function InputColorVariant(props, ref) {
7
8
  return (
8
- <div className="grid md:grid-cols-2 gap-4">
9
+ <SampleColumns>
9
10
  <fieldset>
10
11
  <legend>Color</legend>
11
12
  <InputColorCases {...props} />
@@ -14,6 +15,6 @@ export const InputColorVariants = forwardRef<HTMLKolInputColorElement, Component
14
15
  <legend>Color (hideLabel)</legend>
15
16
  <InputColorCases ref={ref} {...props} _hideLabel />
16
17
  </fieldset>
17
- </div>
18
+ </SampleColumns>
18
19
  );
19
20
  });
@@ -1,10 +1,9 @@
1
1
  import React, { forwardRef } from 'react';
2
-
3
2
  import { KolInputDate } 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 InputDateCases = forwardRef<HTMLKolInputDateElement, Components.KolInputDate>(function InputDateCases(props, ref) {
9
8
  return (
10
9
  <div className="grid gap-4">
@@ -16,11 +15,15 @@ export const InputDateCases = forwardRef<HTMLKolInputDateElement, Components.Kol
16
15
  {...props}
17
16
  _step={1}
18
17
  _type="datetime-local"
18
+ _hint={HINT_MSG}
19
19
  _msg={{ _type: 'error', _description: ERROR_MSG }}
20
20
  _label="Local datetime (with seconds)"
21
21
  _required
22
22
  _touched
23
23
  />
24
+ <KolInputDate {...props} _msg={{ _type: 'info', _description: 'Just a hint' }} _label="Color" />
25
+ <KolInputDate {...props} _msg={{ _type: 'warning', _description: 'Small warning' }} _label="Color" />
26
+ <KolInputDate {...props} _msg={{ _type: 'success', _description: 'Success message' }} _label="Color" />
24
27
  <KolInputDate {...props} _type="month" _label="Month" _required />
25
28
  <KolInputDate {...props} ref={ref} _accessKey="W" _type="week" _label="Week" _required />
26
29
  <KolInputDate {...props} _type="time" _label="Time (standard)" _required />
@@ -4,9 +4,10 @@ import { InputDateCases } from './cases';
4
4
 
5
5
  import type { Components } from '@public-ui/components';
6
6
  import { InputDateMinMaxCases } from './minMax';
7
+ import { SampleColumns } from '../../SampleColumns';
7
8
  export const InputDateVariants = forwardRef<HTMLKolInputDateElement, Components.KolInputDate>(function InputDateVariant(props, ref) {
8
9
  return (
9
- <div className="grid md:grid-cols-2 gap-4">
10
+ <SampleColumns>
10
11
  <fieldset>
11
12
  <legend>Date</legend>
12
13
  <InputDateCases {...props} />
@@ -19,6 +20,6 @@ export const InputDateVariants = forwardRef<HTMLKolInputDateElement, Components.
19
20
  <legend>Date (with min/max)</legend>
20
21
  <InputDateMinMaxCases {...props} />
21
22
  </fieldset>
22
- </div>
23
+ </SampleColumns>
23
24
  );
24
25
  });
@@ -40,7 +40,7 @@ export const InputDateShowHideMsg = () => {
40
40
  {msgTypes.map((type) => (
41
41
  <KolInputDate
42
42
  key={type}
43
- _hideError={hideMsg}
43
+ _hideMsg={hideMsg}
44
44
  _label={`Date (_msg, ${type})`}
45
45
  _msg={
46
46
  showMsg
@@ -1,10 +1,9 @@
1
1
  import React, { forwardRef } from 'react';
2
-
3
2
  import { KolInputEmail } 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 InputEmailCases = forwardRef<HTMLKolInputEmailElement, Components.KolInputEmail>(function InputEmailCases(props, ref) {
9
8
  return (
10
9
  <div className="grid gap-4">
@@ -18,6 +17,7 @@ export const InputEmailCases = forwardRef<HTMLKolInputEmailElement, Components.K
18
17
  _placeholder="elke@mustermann.de"
19
18
  _suggestions="['test1@mail.de', 'test2@mail.de', 'test3@mail.de']"
20
19
  _label="E-Mail (list)"
20
+ _hint={HINT_MSG}
21
21
  _msg={{ _type: 'error', _description: ERROR_MSG }}
22
22
  _touched
23
23
  _icons={{
@@ -29,6 +29,9 @@ export const InputEmailCases = forwardRef<HTMLKolInputEmailElement, Components.K
29
29
  },
30
30
  }}
31
31
  />
32
+ <KolInputEmail {...props} _msg={{ _type: 'info', _description: 'Just a hint' }} _label="E-Mail" />
33
+ <KolInputEmail {...props} _msg={{ _type: 'warning', _description: 'Small warning' }} _label="E-Mail" />
34
+ <KolInputEmail {...props} _msg={{ _type: 'success', _description: 'Success message' }} _label="E-Mail" />
32
35
  <KolInputEmail {...props} _disabled _value="test@mail.de" _label="E-Mail (Disabled)" />
33
36
  <KolInputEmail {...props} _readOnly _value="test@mail.de" _label="E-Mail (Readonly)" />
34
37
  <KolInputEmail {...props} _value="test@mail.de" _label="With access key" _accessKey="c" />
@@ -3,9 +3,10 @@ import React, { forwardRef } from 'react';
3
3
  import { InputEmailCases } from './cases';
4
4
 
5
5
  import type { Components } from '@public-ui/components';
6
+ import { SampleColumns } from '../../SampleColumns';
6
7
  export const InputEmailVariants = forwardRef<HTMLKolInputEmailElement, Components.KolInputEmail>(function InputEmailVariant(props, ref) {
7
8
  return (
8
- <div className="grid md:grid-cols-2 gap-4">
9
+ <SampleColumns>
9
10
  <fieldset>
10
11
  <legend>Email</legend>
11
12
  <InputEmailCases {...props} />
@@ -14,6 +15,6 @@ export const InputEmailVariants = forwardRef<HTMLKolInputEmailElement, Component
14
15
  <legend>Email (hideLabel)</legend>
15
16
  <InputEmailCases ref={ref} {...props} _hideLabel />
16
17
  </fieldset>
17
- </div>
18
+ </SampleColumns>
18
19
  );
19
20
  });
@@ -1,10 +1,9 @@
1
1
  import React, { forwardRef } from 'react';
2
-
3
2
  import { KolInputFile } 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 InputFileCases = forwardRef<HTMLKolInputFileElement, Components.KolInputFile>(function InputFileCases(props, ref) {
9
8
  return (
10
9
  <div className="grid gap-4">
@@ -23,6 +22,7 @@ export const InputFileCases = forwardRef<HTMLKolInputFileElement, Components.Kol
23
22
  <KolInputFile
24
23
  {...props}
25
24
  _required
25
+ _hint={HINT_MSG}
26
26
  _msg={{ _type: 'error', _description: ERROR_MSG }}
27
27
  _label="Upload file (Black background test)"
28
28
  _icons={{
@@ -32,6 +32,9 @@ export const InputFileCases = forwardRef<HTMLKolInputFileElement, Components.Kol
32
32
  }}
33
33
  _touched
34
34
  />
35
+ <KolInputFile {...props} _msg={{ _type: 'info', _description: 'Just a hint' }} _label="Upload file" />
36
+ <KolInputFile {...props} _msg={{ _type: 'warning', _description: 'Small warning' }} _label="Upload file" />
37
+ <KolInputFile {...props} _msg={{ _type: 'success', _description: 'Success message' }} _label="Upload file" />
35
38
  <KolInputFile {...props} ref={ref} _accessKey="h" _multiple _msg={{ _type: 'error', _description: ERROR_MSG }} _label="Upload file (Multiple)" />
36
39
  <KolInputFile {...props} _disabled _label="Upload file (Disabled)" />
37
40
  <KolInputFile {...props} _label="With access key" _accessKey="c" />
@@ -1,11 +1,12 @@
1
1
  import React, { forwardRef } from 'react';
2
2
 
3
3
  import { InputFileCases } from './cases';
4
+ import { SampleColumns } from '../../SampleColumns';
4
5
 
5
6
  import type { Components } from '@public-ui/components';
6
7
  export const InputFileVariants = forwardRef<HTMLKolInputFileElement, Components.KolInputFile>(function InputFileVariant(props, ref) {
7
8
  return (
8
- <div className="grid md:grid-cols-2 gap-4">
9
+ <SampleColumns>
9
10
  <fieldset>
10
11
  <legend>File</legend>
11
12
  <InputFileCases {...props} />
@@ -14,6 +15,6 @@ export const InputFileVariants = forwardRef<HTMLKolInputFileElement, Components.
14
15
  <legend>File (hideLabel)</legend>
15
16
  <InputFileCases ref={ref} {...props} _hideLabel />
16
17
  </fieldset>
17
- </div>
18
+ </SampleColumns>
18
19
  );
19
20
  });
@@ -3,9 +3,10 @@ import React, { forwardRef } from 'react';
3
3
  import { InputNumberCases } from './cases';
4
4
 
5
5
  import type { Components } from '@public-ui/components';
6
+ import { SampleColumns } from '../../SampleColumns';
6
7
  export const InputNumberVariants = forwardRef<HTMLKolInputNumberElement, Components.KolInputNumber>(function InputNumberVariant(props, ref) {
7
8
  return (
8
- <div className="grid md:grid-cols-2 gap-4">
9
+ <SampleColumns>
9
10
  <fieldset>
10
11
  <legend>Number</legend>
11
12
  <InputNumberCases {...props} />
@@ -14,6 +15,6 @@ export const InputNumberVariants = forwardRef<HTMLKolInputNumberElement, Compone
14
15
  <legend>Number (hideLabel)</legend>
15
16
  <InputNumberCases ref={ref} {...props} _hideLabel />
16
17
  </fieldset>
17
- </div>
18
+ </SampleColumns>
18
19
  );
19
20
  });
@@ -1,23 +1,21 @@
1
1
  import React, { forwardRef } from 'react';
2
-
3
2
  import { KolInputPassword } 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 InputPasswordCases = forwardRef<HTMLKolInputPasswordElement, Components.KolInputPassword>(function InputPasswordCases(props, ref) {
9
8
  return (
10
9
  <div className="grid gap-4">
11
10
  <div className="black-background">
12
11
  <KolInputPassword {...props} _label="Passwort (Black background test)" />
13
12
  </div>
14
- <KolInputPassword {...props} _disabled _msg={{ _type: 'error', _description: ERROR_MSG }} _label="Passwort (Disabled)" _touched />
15
- <KolInputPassword {...props} _readOnly _label="Passwort (Readonly)" />
16
13
  <KolInputPassword
17
14
  {...props}
18
15
  ref={ref}
19
16
  _accessKey="P"
20
17
  _required
18
+ _hint={HINT_MSG}
21
19
  _msg={{ _type: 'error', _description: ERROR_MSG }}
22
20
  _placeholder="Mit Icons"
23
21
  _label="Passwort"
@@ -31,6 +29,11 @@ export const InputPasswordCases = forwardRef<HTMLKolInputPasswordElement, Compon
31
29
  }}
32
30
  _touched
33
31
  />
32
+ <KolInputPassword {...props} _placeholder="Placeholder" _msg={{ _type: 'info', _description: 'Just a hint' }} _label="Password" />
33
+ <KolInputPassword {...props} _placeholder="Placeholder" _msg={{ _type: 'warning', _description: 'Small warning' }} _label="Password" />
34
+ <KolInputPassword {...props} _placeholder="Placeholder" _msg={{ _type: 'success', _description: 'Success message' }} _label="Password" />
35
+ <KolInputPassword {...props} _disabled _msg={{ _type: 'error', _description: ERROR_MSG }} _label="Passwort (Disabled)" _touched />
36
+ <KolInputPassword {...props} _readOnly _label="Passwort (Readonly)" />
34
37
  <KolInputPassword {...props} ref={ref} _shortKey="c" _label="With access key" />
35
38
  <KolInputPassword {...props} ref={ref} _shortKey="s" _label="With short key" />
36
39
  </div>
@@ -3,9 +3,10 @@ import React, { forwardRef } from 'react';
3
3
  import { InputPasswordCases } from './cases';
4
4
 
5
5
  import type { Components } from '@public-ui/components';
6
+ import { SampleColumns } from '../../SampleColumns';
6
7
  export const InputPasswordVariants = forwardRef<HTMLKolInputPasswordElement, Components.KolInputPassword>(function InputPasswordVariant(props, ref) {
7
8
  return (
8
- <div className="grid md:grid-cols-2 gap-4">
9
+ <SampleColumns>
9
10
  <fieldset>
10
11
  <legend>Password</legend>
11
12
  <InputPasswordCases {...props} />
@@ -14,6 +15,6 @@ export const InputPasswordVariants = forwardRef<HTMLKolInputPasswordElement, Com
14
15
  <legend>Password (hideLabel)</legend>
15
16
  <InputPasswordCases ref={ref} {...props} _hideLabel />
16
17
  </fieldset>
17
- </div>
18
+ </SampleColumns>
18
19
  );
19
20
  });