@public-ui/sample-react 1.7.0-rc.9 → 1.7.1

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 (455) hide show
  1. package/.eslintrc.js +5 -0
  2. package/dist/.htaccess +3 -0
  3. package/dist/1159.js +2 -0
  4. package/dist/1159.js.LICENSE.txt +3 -0
  5. package/dist/1474.js +2 -0
  6. package/dist/1474.js.LICENSE.txt +3 -0
  7. package/dist/183.js +2 -0
  8. package/dist/183.js.LICENSE.txt +3 -0
  9. package/dist/2337.js +2 -0
  10. package/dist/2337.js.LICENSE.txt +3 -0
  11. package/dist/2412.js +2 -0
  12. package/dist/2412.js.LICENSE.txt +3 -0
  13. package/dist/3153.js +2 -0
  14. package/dist/3153.js.LICENSE.txt +3 -0
  15. package/dist/3303.js +2 -0
  16. package/dist/3303.js.LICENSE.txt +3 -0
  17. package/dist/3325.js +2 -0
  18. package/dist/3325.js.LICENSE.txt +3 -0
  19. package/dist/3429.js +2 -0
  20. package/dist/3429.js.LICENSE.txt +3 -0
  21. package/dist/3459.js +2 -0
  22. package/dist/3459.js.LICENSE.txt +3 -0
  23. package/dist/3537.js +2 -0
  24. package/dist/3537.js.LICENSE.txt +3 -0
  25. package/dist/3932.js +2 -0
  26. package/dist/3932.js.LICENSE.txt +3 -0
  27. package/dist/4021.js +2 -0
  28. package/dist/4021.js.LICENSE.txt +3 -0
  29. package/dist/4022.js +2 -0
  30. package/dist/4022.js.LICENSE.txt +3 -0
  31. package/dist/4195.js +2 -0
  32. package/dist/4195.js.LICENSE.txt +3 -0
  33. package/dist/4291.js +2 -0
  34. package/dist/4291.js.LICENSE.txt +3 -0
  35. package/dist/4323.js +2 -0
  36. package/dist/4323.js.LICENSE.txt +3 -0
  37. package/dist/4355.js +2 -0
  38. package/dist/4355.js.LICENSE.txt +3 -0
  39. package/dist/4436.js +2 -0
  40. package/dist/4436.js.LICENSE.txt +3 -0
  41. package/dist/4477.js +2 -0
  42. package/dist/4477.js.LICENSE.txt +3 -0
  43. package/dist/4564.js +2 -0
  44. package/dist/4564.js.LICENSE.txt +3 -0
  45. package/dist/4864.js +2 -0
  46. package/dist/4864.js.LICENSE.txt +3 -0
  47. package/dist/4891.js +2 -0
  48. package/dist/4891.js.LICENSE.txt +3 -0
  49. package/dist/5183.js +2 -0
  50. package/dist/5183.js.LICENSE.txt +3 -0
  51. package/dist/5293.js +2 -0
  52. package/dist/5293.js.LICENSE.txt +3 -0
  53. package/dist/5369.js +2 -0
  54. package/dist/5369.js.LICENSE.txt +3 -0
  55. package/dist/5390.js +2 -0
  56. package/dist/5390.js.LICENSE.txt +3 -0
  57. package/dist/540.js +2 -0
  58. package/dist/540.js.LICENSE.txt +3 -0
  59. package/dist/5862.js +2 -0
  60. package/dist/5862.js.LICENSE.txt +3 -0
  61. package/dist/5866.js +2 -0
  62. package/dist/5866.js.LICENSE.txt +3 -0
  63. package/dist/6012.js +2 -0
  64. package/dist/6012.js.LICENSE.txt +3 -0
  65. package/dist/6068.js +2 -0
  66. package/dist/6068.js.LICENSE.txt +3 -0
  67. package/dist/6210.js +2 -0
  68. package/dist/6210.js.LICENSE.txt +3 -0
  69. package/dist/6320.js +2 -0
  70. package/dist/6320.js.LICENSE.txt +3 -0
  71. package/dist/6558.js +2 -0
  72. package/dist/6558.js.LICENSE.txt +3 -0
  73. package/dist/6655.js +2 -0
  74. package/dist/6655.js.LICENSE.txt +3 -0
  75. package/dist/6813.js +2 -0
  76. package/dist/6813.js.LICENSE.txt +3 -0
  77. package/dist/6908.js +2 -0
  78. package/dist/6908.js.LICENSE.txt +3 -0
  79. package/dist/7029.js +2 -0
  80. package/dist/7029.js.LICENSE.txt +3 -0
  81. package/dist/7255.js +2 -0
  82. package/dist/7255.js.LICENSE.txt +3 -0
  83. package/dist/7447.js +2 -0
  84. package/dist/7447.js.LICENSE.txt +3 -0
  85. package/dist/7715.js +2 -0
  86. package/dist/7715.js.LICENSE.txt +3 -0
  87. package/dist/7722.js +2 -0
  88. package/dist/7722.js.LICENSE.txt +3 -0
  89. package/dist/7801.js +2 -0
  90. package/dist/7801.js.LICENSE.txt +3 -0
  91. package/dist/7858.js +2 -0
  92. package/dist/7858.js.LICENSE.txt +3 -0
  93. package/dist/7955.js +2 -0
  94. package/dist/7955.js.LICENSE.txt +3 -0
  95. package/dist/7958.js +2 -0
  96. package/dist/7958.js.LICENSE.txt +3 -0
  97. package/dist/7995.js +2 -0
  98. package/dist/7995.js.LICENSE.txt +3 -0
  99. package/dist/8061.js +2 -0
  100. package/dist/8061.js.LICENSE.txt +3 -0
  101. package/dist/8065.js +2 -0
  102. package/dist/8065.js.LICENSE.txt +3 -0
  103. package/dist/8073.js +2 -0
  104. package/dist/8073.js.LICENSE.txt +3 -0
  105. package/dist/8099.js +2 -0
  106. package/dist/8099.js.LICENSE.txt +3 -0
  107. package/dist/8111.js +2 -0
  108. package/dist/8111.js.LICENSE.txt +3 -0
  109. package/dist/8255.js +2 -0
  110. package/dist/8255.js.LICENSE.txt +3 -0
  111. package/dist/8291.js +2 -0
  112. package/dist/8291.js.LICENSE.txt +3 -0
  113. package/dist/8408.js +2 -0
  114. package/dist/8408.js.LICENSE.txt +3 -0
  115. package/dist/8709.js +1 -0
  116. package/dist/8761.js +2 -0
  117. package/dist/8761.js.LICENSE.txt +3 -0
  118. package/dist/9106.js +2 -0
  119. package/dist/9106.js.LICENSE.txt +3 -0
  120. package/dist/9230.js +2 -0
  121. package/dist/9230.js.LICENSE.txt +3 -0
  122. package/dist/9329.js +2 -0
  123. package/dist/9329.js.LICENSE.txt +3 -0
  124. package/dist/9598.js +2 -0
  125. package/dist/9598.js.LICENSE.txt +3 -0
  126. package/dist/9734.js +2 -0
  127. package/dist/9734.js.LICENSE.txt +3 -0
  128. package/dist/9747.js +2 -0
  129. package/dist/9747.js.LICENSE.txt +3 -0
  130. package/dist/9792.js +2 -0
  131. package/dist/9792.js.LICENSE.txt +3 -0
  132. package/dist/9895.js +2 -0
  133. package/dist/9895.js.LICENSE.txt +3 -0
  134. package/dist/9963.js +2 -0
  135. package/dist/9963.js.LICENSE.txt +3 -0
  136. package/dist/9972.js +2 -0
  137. package/dist/9972.js.LICENSE.txt +3 -0
  138. package/dist/assets/bundes/LICENSE.md +1 -0
  139. package/dist/assets/bundes/sans/BundesSans-Web-Black.ttf +0 -0
  140. package/dist/assets/bundes/sans/BundesSans-Web-Black.woff +0 -0
  141. package/dist/assets/bundes/sans/BundesSans-Web-Black.woff2 +0 -0
  142. package/dist/assets/bundes/sans/BundesSans-Web-BlackItalic.ttf +0 -0
  143. package/dist/assets/bundes/sans/BundesSans-Web-BlackItalic.woff +0 -0
  144. package/dist/assets/bundes/sans/BundesSans-Web-BlackItalic.woff2 +0 -0
  145. package/dist/assets/bundes/sans/BundesSans-Web-Bold.ttf +0 -0
  146. package/dist/assets/bundes/sans/BundesSans-Web-Bold.woff +0 -0
  147. package/dist/assets/bundes/sans/BundesSans-Web-Bold.woff2 +0 -0
  148. package/dist/assets/bundes/sans/BundesSans-Web-BoldItalic.ttf +0 -0
  149. package/dist/assets/bundes/sans/BundesSans-Web-BoldItalic.woff +0 -0
  150. package/dist/assets/bundes/sans/BundesSans-Web-BoldItalic.woff2 +0 -0
  151. package/dist/assets/bundes/sans/BundesSans-Web-Light.ttf +0 -0
  152. package/dist/assets/bundes/sans/BundesSans-Web-Light.woff +0 -0
  153. package/dist/assets/bundes/sans/BundesSans-Web-Light.woff2 +0 -0
  154. package/dist/assets/bundes/sans/BundesSans-Web-LightItalic.ttf +0 -0
  155. package/dist/assets/bundes/sans/BundesSans-Web-LightItalic.woff +0 -0
  156. package/dist/assets/bundes/sans/BundesSans-Web-LightItalic.woff2 +0 -0
  157. package/dist/assets/bundes/sans/BundesSans-Web-Medium.ttf +0 -0
  158. package/dist/assets/bundes/sans/BundesSans-Web-Medium.woff +0 -0
  159. package/dist/assets/bundes/sans/BundesSans-Web-Medium.woff2 +0 -0
  160. package/dist/assets/bundes/sans/BundesSans-Web-MediumItalic.ttf +0 -0
  161. package/dist/assets/bundes/sans/BundesSans-Web-MediumItalic.woff +0 -0
  162. package/dist/assets/bundes/sans/BundesSans-Web-MediumItalic.woff2 +0 -0
  163. package/dist/assets/bundes/sans/BundesSans-Web-Regular.ttf +0 -0
  164. package/dist/assets/bundes/sans/BundesSans-Web-Regular.woff +0 -0
  165. package/dist/assets/bundes/sans/BundesSans-Web-Regular.woff2 +0 -0
  166. package/dist/assets/bundes/sans/BundesSans-Web-RegularItalic.ttf +0 -0
  167. package/dist/assets/bundes/sans/BundesSans-Web-RegularItalic.woff +0 -0
  168. package/dist/assets/bundes/sans/BundesSans-Web-RegularItalic.woff2 +0 -0
  169. package/dist/assets/bundes/sans-cond/BundesSansCond-Web-Regular.ttf +0 -0
  170. package/dist/assets/bundes/sans-cond/BundesSansCond-Web-Regular.woff +0 -0
  171. package/dist/assets/bundes/sans-cond/BundesSansCond-Web-Regular.woff2 +0 -0
  172. package/dist/assets/bundes/serif/BundesSerif-Web-Bold.ttf +0 -0
  173. package/dist/assets/bundes/serif/BundesSerif-Web-Bold.woff +0 -0
  174. package/dist/assets/bundes/serif/BundesSerif-Web-Bold.woff2 +0 -0
  175. package/dist/assets/bundes/serif/BundesSerif-Web-BoldItalic.ttf +0 -0
  176. package/dist/assets/bundes/serif/BundesSerif-Web-BoldItalic.woff +0 -0
  177. package/dist/assets/bundes/serif/BundesSerif-Web-BoldItalic.woff2 +0 -0
  178. package/dist/assets/bundes/serif/BundesSerif-Web-Italic.ttf +0 -0
  179. package/dist/assets/bundes/serif/BundesSerif-Web-Italic.woff +0 -0
  180. package/dist/assets/bundes/serif/BundesSerif-Web-Italic.woff2 +0 -0
  181. package/dist/assets/bundes/serif/BundesSerif-Web-Regular.ttf +0 -0
  182. package/dist/assets/bundes/serif/BundesSerif-Web-Regular.woff +0 -0
  183. package/dist/assets/bundes/serif/BundesSerif-Web-Regular.woff2 +0 -0
  184. package/dist/assets/bundes/style.css +84 -0
  185. package/dist/assets/codicons/LICENSE +395 -0
  186. package/dist/assets/codicons/LICENSE-CODE +21 -0
  187. package/dist/assets/codicons/codicon.css +582 -0
  188. package/dist/assets/codicons/codicon.csv +426 -0
  189. package/dist/assets/codicons/codicon.html +3911 -0
  190. package/dist/assets/codicons/codicon.svg +1 -0
  191. package/dist/assets/codicons/codicon.ttf +0 -0
  192. package/dist/assets/fontawesome-free/LICENSE.txt +165 -0
  193. package/dist/assets/fontawesome-free/css/all.css +7831 -0
  194. package/dist/assets/fontawesome-free/css/all.min.css +6 -0
  195. package/dist/assets/fontawesome-free/css/brands.css +1432 -0
  196. package/dist/assets/fontawesome-free/css/brands.min.css +6 -0
  197. package/dist/assets/fontawesome-free/css/fontawesome.css +6338 -0
  198. package/dist/assets/fontawesome-free/css/fontawesome.min.css +6 -0
  199. package/dist/assets/fontawesome-free/css/regular.css +19 -0
  200. package/dist/assets/fontawesome-free/css/regular.min.css +6 -0
  201. package/dist/assets/fontawesome-free/css/solid.css +19 -0
  202. package/dist/assets/fontawesome-free/css/solid.min.css +6 -0
  203. package/dist/assets/fontawesome-free/css/svg-with-js.css +634 -0
  204. package/dist/assets/fontawesome-free/css/svg-with-js.min.css +6 -0
  205. package/dist/assets/fontawesome-free/css/v4-font-face.css +26 -0
  206. package/dist/assets/fontawesome-free/css/v4-font-face.min.css +6 -0
  207. package/dist/assets/fontawesome-free/css/v4-shims.css +2146 -0
  208. package/dist/assets/fontawesome-free/css/v4-shims.min.css +6 -0
  209. package/dist/assets/fontawesome-free/css/v5-font-face.css +22 -0
  210. package/dist/assets/fontawesome-free/css/v5-font-face.min.css +6 -0
  211. package/dist/assets/fontawesome-free/webfonts/fa-brands-400.ttf +0 -0
  212. package/dist/assets/fontawesome-free/webfonts/fa-brands-400.woff2 +0 -0
  213. package/dist/assets/fontawesome-free/webfonts/fa-regular-400.ttf +0 -0
  214. package/dist/assets/fontawesome-free/webfonts/fa-regular-400.woff2 +0 -0
  215. package/dist/assets/fontawesome-free/webfonts/fa-solid-900.ttf +0 -0
  216. package/dist/assets/fontawesome-free/webfonts/fa-solid-900.woff2 +0 -0
  217. package/dist/assets/fontawesome-free/webfonts/fa-v4compatibility.ttf +0 -0
  218. package/dist/assets/fontawesome-free/webfonts/fa-v4compatibility.woff2 +0 -0
  219. package/dist/assets/icofont/demo.html +18939 -0
  220. package/dist/assets/icofont/fonts/icofont.eot +0 -0
  221. package/dist/assets/icofont/fonts/icofont.svg +2105 -0
  222. package/dist/assets/icofont/fonts/icofont.ttf +0 -0
  223. package/dist/assets/icofont/fonts/icofont.woff +0 -0
  224. package/dist/assets/icofont/fonts/icofont.woff2 +0 -0
  225. package/dist/assets/icofont/icofont.css +10757 -0
  226. package/dist/assets/icofont/icofont.min.css +7 -0
  227. package/dist/assets/kolibri.ico +0 -0
  228. package/dist/assets/kreon/Kreon-VariableFont_wght.ttf +0 -0
  229. package/dist/assets/kreon/OFL.txt +93 -0
  230. package/dist/assets/kreon/README.txt +67 -0
  231. package/dist/assets/kreon/static/Kreon-Bold.ttf +0 -0
  232. package/dist/assets/kreon/static/Kreon-Light.ttf +0 -0
  233. package/dist/assets/kreon/static/Kreon-Medium.ttf +0 -0
  234. package/dist/assets/kreon/static/Kreon-Regular.ttf +0 -0
  235. package/dist/assets/kreon/static/Kreon-SemiBold.ttf +0 -0
  236. package/dist/assets/kreon/style.css +41 -0
  237. package/dist/assets/material-icons/LICENSE +202 -0
  238. package/dist/assets/material-icons/README.md +129 -0
  239. package/dist/assets/material-icons/_data/versions.json +2124 -0
  240. package/dist/assets/material-icons/css/_codepoints.scss +2279 -0
  241. package/dist/assets/material-icons/css/_mixins.scss +13 -0
  242. package/dist/assets/material-icons/css/_variables.scss +6 -0
  243. package/dist/assets/material-icons/css/material-icons.css +9208 -0
  244. package/dist/assets/material-icons/css/material-icons.min.css +1 -0
  245. package/dist/assets/material-icons/css/material-icons.scss +39 -0
  246. package/dist/assets/material-icons/iconfont/_mixins.scss +55 -0
  247. package/dist/assets/material-icons/iconfont/_variables.scss +3 -0
  248. package/dist/assets/material-icons/iconfont/filled.css +24 -0
  249. package/dist/assets/material-icons/iconfont/filled.scss +4 -0
  250. package/dist/assets/material-icons/iconfont/material-icons-outlined.woff +0 -0
  251. package/dist/assets/material-icons/iconfont/material-icons-outlined.woff2 +0 -0
  252. package/dist/assets/material-icons/iconfont/material-icons-round.woff +0 -0
  253. package/dist/assets/material-icons/iconfont/material-icons-round.woff2 +0 -0
  254. package/dist/assets/material-icons/iconfont/material-icons-sharp.woff +0 -0
  255. package/dist/assets/material-icons/iconfont/material-icons-sharp.woff2 +0 -0
  256. package/dist/assets/material-icons/iconfont/material-icons-two-tone.woff +0 -0
  257. package/dist/assets/material-icons/iconfont/material-icons-two-tone.woff2 +0 -0
  258. package/dist/assets/material-icons/iconfont/material-icons.css +124 -0
  259. package/dist/assets/material-icons/iconfont/material-icons.scss +5 -0
  260. package/dist/assets/material-icons/iconfont/material-icons.woff +0 -0
  261. package/dist/assets/material-icons/iconfont/material-icons.woff2 +0 -0
  262. package/dist/assets/material-icons/iconfont/outlined.css +24 -0
  263. package/dist/assets/material-icons/iconfont/outlined.scss +4 -0
  264. package/dist/assets/material-icons/iconfont/round.css +24 -0
  265. package/dist/assets/material-icons/iconfont/round.scss +4 -0
  266. package/dist/assets/material-icons/iconfont/sharp.css +24 -0
  267. package/dist/assets/material-icons/iconfont/sharp.scss +4 -0
  268. package/dist/assets/material-icons/iconfont/two-tone.css +24 -0
  269. package/dist/assets/material-icons/iconfont/two-tone.scss +4 -0
  270. package/dist/assets/material-icons/index.d.ts +2128 -0
  271. package/dist/assets/material-icons/package.json +52 -0
  272. package/dist/assets/material-symbols/LICENSE +202 -0
  273. package/dist/assets/material-symbols/README.md +114 -0
  274. package/dist/assets/material-symbols/_core.scss +47 -0
  275. package/dist/assets/material-symbols/index.css +74 -0
  276. package/dist/assets/material-symbols/index.d.ts +2809 -0
  277. package/dist/assets/material-symbols/index.scss +3 -0
  278. package/dist/assets/material-symbols/material-symbols-outlined.woff2 +0 -0
  279. package/dist/assets/material-symbols/material-symbols-rounded.woff2 +0 -0
  280. package/dist/assets/material-symbols/material-symbols-sharp.woff2 +0 -0
  281. package/dist/assets/material-symbols/outlined.css +24 -0
  282. package/dist/assets/material-symbols/outlined.scss +3 -0
  283. package/dist/assets/material-symbols/package.json +41 -0
  284. package/dist/assets/material-symbols/rounded.css +24 -0
  285. package/dist/assets/material-symbols/rounded.scss +3 -0
  286. package/dist/assets/material-symbols/sharp.css +24 -0
  287. package/dist/assets/material-symbols/sharp.scss +3 -0
  288. package/dist/assets/noto-sans/fonts/NotoSans-Black.ttf +0 -0
  289. package/dist/assets/noto-sans/fonts/NotoSans-BlackItalic.ttf +0 -0
  290. package/dist/assets/noto-sans/fonts/NotoSans-Bold.ttf +0 -0
  291. package/dist/assets/noto-sans/fonts/NotoSans-BoldItalic.ttf +0 -0
  292. package/dist/assets/noto-sans/fonts/NotoSans-ExtraBold.ttf +0 -0
  293. package/dist/assets/noto-sans/fonts/NotoSans-ExtraBoldItalic.ttf +0 -0
  294. package/dist/assets/noto-sans/fonts/NotoSans-ExtraLight.ttf +0 -0
  295. package/dist/assets/noto-sans/fonts/NotoSans-ExtraLightItalic.ttf +0 -0
  296. package/dist/assets/noto-sans/fonts/NotoSans-Italic.ttf +0 -0
  297. package/dist/assets/noto-sans/fonts/NotoSans-Light.ttf +0 -0
  298. package/dist/assets/noto-sans/fonts/NotoSans-LightItalic.ttf +0 -0
  299. package/dist/assets/noto-sans/fonts/NotoSans-Medium.ttf +0 -0
  300. package/dist/assets/noto-sans/fonts/NotoSans-MediumItalic.ttf +0 -0
  301. package/dist/assets/noto-sans/fonts/NotoSans-Regular.ttf +0 -0
  302. package/dist/assets/noto-sans/fonts/NotoSans-SemiBold.ttf +0 -0
  303. package/dist/assets/noto-sans/fonts/NotoSans-SemiBoldItalic.ttf +0 -0
  304. package/dist/assets/noto-sans/fonts/NotoSans-Thin.ttf +0 -0
  305. package/dist/assets/noto-sans/fonts/NotoSans-ThinItalic.ttf +0 -0
  306. package/dist/assets/noto-sans/fonts/OFL.txt +93 -0
  307. package/dist/assets/noto-sans/noto-sans.css +11 -0
  308. package/dist/assets/roboto/LICENSE.txt +202 -0
  309. package/dist/assets/roboto/Roboto-Black.ttf +0 -0
  310. package/dist/assets/roboto/Roboto-BlackItalic.ttf +0 -0
  311. package/dist/assets/roboto/Roboto-Bold.ttf +0 -0
  312. package/dist/assets/roboto/Roboto-BoldItalic.ttf +0 -0
  313. package/dist/assets/roboto/Roboto-Italic.ttf +0 -0
  314. package/dist/assets/roboto/Roboto-Light.ttf +0 -0
  315. package/dist/assets/roboto/Roboto-LightItalic.ttf +0 -0
  316. package/dist/assets/roboto/Roboto-Medium.ttf +0 -0
  317. package/dist/assets/roboto/Roboto-MediumItalic.ttf +0 -0
  318. package/dist/assets/roboto/Roboto-Regular.ttf +0 -0
  319. package/dist/assets/roboto/Roboto-Thin.ttf +0 -0
  320. package/dist/assets/roboto/Roboto-ThinItalic.ttf +0 -0
  321. package/dist/assets/roboto/roboto.css +27 -0
  322. package/dist/assets/tabler-icons/fonts/tabler-icons.eot +0 -0
  323. package/dist/assets/tabler-icons/fonts/tabler-icons.ttf +0 -0
  324. package/dist/assets/tabler-icons/fonts/tabler-icons.woff +0 -0
  325. package/dist/assets/tabler-icons/fonts/tabler-icons.woff2 +0 -0
  326. package/dist/assets/tabler-icons/tabler-icons.css +16056 -0
  327. package/dist/assets/tabler-icons/tabler-icons.html +36226 -0
  328. package/dist/assets/tabler-icons/tabler-icons.min.css +4 -0
  329. package/dist/assets/tabler-icons/tabler-icons.png +0 -0
  330. package/dist/assets/tabler-icons/tabler-icons.scss +8058 -0
  331. package/dist/index.html +28 -0
  332. package/dist/main.css +3 -0
  333. package/dist/main.js +2374 -0
  334. package/dist/main.js.LICENSE.txt +57 -0
  335. package/dist/robots.txt +2 -0
  336. package/package.json +61 -63
  337. package/public/index.html +1 -1
  338. package/src/App.tsx +12 -4
  339. package/src/components/FocusInput.tsx +20 -0
  340. package/src/components/FormWrap.tsx +21 -0
  341. package/src/components/Sidebar.tsx +2 -2
  342. package/src/components/alert/basic.tsx +6 -0
  343. package/src/components/alert/card-msg.tsx +0 -1
  344. package/src/components/alert/html.tsx +3 -3
  345. package/src/components/badge/button.tsx +1 -1
  346. package/src/components/breadcrumb/basic.tsx +2 -2
  347. package/src/components/button/basic.tsx +4 -28
  348. package/src/components/button/hide-label.tsx +1 -1
  349. package/src/components/button/icons.tsx +1 -1
  350. package/src/components/button/partials/cases.tsx +16 -0
  351. package/src/components/button/partials/variants.tsx +27 -0
  352. package/src/components/button/width.tsx +1 -1
  353. package/src/components/button-group/basic.tsx +2 -2
  354. package/src/components/button-link/basic.tsx +5 -5
  355. package/src/components/button-link/icons.tsx +5 -5
  356. package/src/components/button-link/image.tsx +2 -2
  357. package/src/components/button-link/routes.ts +0 -3
  358. package/src/components/card/confirm.tsx +1 -1
  359. package/src/components/card/selection.tsx +4 -4
  360. package/src/components/handout/basic.tsx +42 -42
  361. package/src/components/heading/badged.tsx +6 -6
  362. package/src/components/icon/basic.tsx +2 -2
  363. package/src/components/image/basic.tsx +5 -0
  364. package/src/components/image/routes.ts +9 -0
  365. package/src/components/input-checkbox/basic.tsx +4 -36
  366. package/src/components/input-checkbox/button.tsx +5 -0
  367. package/src/components/input-checkbox/partials/cases.tsx +62 -0
  368. package/src/components/input-checkbox/partials/variants.tsx +19 -0
  369. package/src/components/input-checkbox/routes.ts +4 -0
  370. package/src/components/input-checkbox/switch.tsx +5 -0
  371. package/src/components/input-color/basic.tsx +4 -28
  372. package/src/components/input-color/partials/cases.tsx +25 -0
  373. package/src/components/input-color/partials/variants.tsx +19 -0
  374. package/src/components/input-date/basic.tsx +4 -19
  375. package/src/components/input-date/partials/cases.tsx +22 -0
  376. package/src/components/input-date/partials/variants.tsx +19 -0
  377. package/src/components/input-email/basic.tsx +4 -29
  378. package/src/components/input-email/partials/cases.tsx +33 -0
  379. package/src/components/input-email/partials/variants.tsx +19 -0
  380. package/src/components/input-file/basic.tsx +4 -24
  381. package/src/components/input-file/partials/cases.tsx +27 -0
  382. package/src/components/input-file/partials/variants.tsx +19 -0
  383. package/src/components/input-number/basic.tsx +4 -29
  384. package/src/components/input-number/partials/cases.tsx +32 -0
  385. package/src/components/input-number/partials/variants.tsx +19 -0
  386. package/src/components/input-password/basic.tsx +4 -27
  387. package/src/components/input-password/partials/cases.tsx +32 -0
  388. package/src/components/input-password/partials/variants.tsx +19 -0
  389. package/src/components/input-password/show-password.tsx +3 -2
  390. package/src/components/input-radio/basic.tsx +4 -45
  391. package/src/components/input-radio/horizontal.tsx +9 -6
  392. package/src/components/input-radio/partials/cases.tsx +56 -0
  393. package/src/components/input-radio/partials/variants.tsx +19 -0
  394. package/src/components/input-radio/select.tsx +1 -1
  395. package/src/components/input-range/basic.tsx +4 -28
  396. package/src/components/input-range/partials/cases.tsx +31 -0
  397. package/src/components/input-range/partials/variants.tsx +19 -0
  398. package/src/components/input-text/basic.tsx +4 -71
  399. package/src/components/input-text/blur.tsx +2 -4
  400. package/src/components/input-text/focus.tsx +8 -6
  401. package/src/components/input-text/partials/cases.tsx +47 -0
  402. package/src/components/input-text/partials/variants.tsx +19 -0
  403. package/src/components/input-text/routes.ts +0 -3
  404. package/src/components/kolibri/animated.tsx +4 -0
  405. package/src/components/kolibri/basic.tsx +4 -0
  406. package/src/components/kolibri/no-label.tsx +4 -0
  407. package/src/components/kolibri/routes.ts +13 -0
  408. package/src/components/link/icons.tsx +5 -5
  409. package/src/components/link/image.tsx +1 -2
  410. package/src/components/link/target.tsx +5 -6
  411. package/src/components/link-group/basic.tsx +9 -0
  412. package/src/components/link-group/horizontal.tsx +9 -0
  413. package/src/components/link-group/routes.ts +6 -1
  414. package/src/components/logo/basic.tsx +5 -0
  415. package/src/components/logo/routes.ts +9 -0
  416. package/src/components/modal/basic.tsx +37 -0
  417. package/src/components/modal/routes.ts +9 -0
  418. package/src/components/nav/active.tsx +2 -2
  419. package/src/components/nav/basic.tsx +2 -2
  420. package/src/components/pagination/basic.tsx +4 -3
  421. package/src/components/popover/basic.tsx +5 -5
  422. package/src/components/quote/basic.tsx +6 -0
  423. package/src/components/quote/block.tsx +17 -0
  424. package/src/components/quote/routes.ts +11 -0
  425. package/src/components/select/basic.tsx +4 -50
  426. package/src/components/select/partials/cases.tsx +67 -0
  427. package/src/components/select/partials/variants.tsx +19 -0
  428. package/src/components/split-button/basic.tsx +7 -35
  429. package/src/components/table/badge-size.tsx +2 -2
  430. package/src/components/table/render-cell.tsx +3 -3
  431. package/src/components/table/routes.ts +4 -2
  432. package/src/components/table/sort-date.tsx +1 -1
  433. package/src/components/table/with-pagination.tsx +22 -0
  434. package/src/components/tabs/basic.tsx +30 -0
  435. package/src/components/tabs/icons-only.tsx +34 -0
  436. package/src/components/tabs/routes.ts +11 -0
  437. package/src/components/textarea/adjust-height.tsx +2 -2
  438. package/src/components/textarea/basic.tsx +4 -10
  439. package/src/components/textarea/counter.tsx +6 -0
  440. package/src/components/textarea/disabled.tsx +1 -1
  441. package/src/components/textarea/partials/cases.tsx +14 -0
  442. package/src/components/textarea/partials/variants.tsx +19 -0
  443. package/src/components/textarea/placeholder.tsx +1 -1
  444. package/src/components/textarea/readonly.tsx +1 -1
  445. package/src/components/textarea/resize.tsx +4 -4
  446. package/src/components/textarea/routes.ts +2 -0
  447. package/src/components/textarea/rows.tsx +1 -1
  448. package/src/components/toast/basic.tsx +2 -2
  449. package/src/components/types.tsx +42 -0
  450. package/src/shares/routes.ts +15 -3
  451. package/src/style.scss +10 -5
  452. package/tsconfig.json +2 -3
  453. package/src/components/button-link/target.tsx +0 -16
  454. package/src/components/input-text/hidden-label.tsx +0 -66
  455. package/test-build.sh +0 -2
@@ -0,0 +1,19 @@
1
+ import React, { forwardRef } from 'react';
2
+
3
+ import { Components } from '@public-ui/components';
4
+ import { InputEmailCases } from './cases';
5
+
6
+ export const InputEmailVariants = forwardRef<HTMLKolInputEmailElement, Components.KolInputEmail>(function InputEmailVariant(props, ref) {
7
+ return (
8
+ <div className="grid md:grid-cols-2 gap-4">
9
+ <fieldset>
10
+ <legend>Email</legend>
11
+ <InputEmailCases {...props} />
12
+ </fieldset>
13
+ <fieldset>
14
+ <legend>Email (hideLabel)</legend>
15
+ <InputEmailCases ref={ref} {...props} _hideLabel />
16
+ </fieldset>
17
+ </div>
18
+ );
19
+ });
@@ -1,25 +1,5 @@
1
- import React from 'react';
2
- import { KolInputFile, KolForm } from '@public-ui/react';
1
+ import React, { FC } from 'react';
2
+ import { FormWrap } from '../FormWrap';
3
+ import { InputFileVariants } from './partials/variants';
3
4
 
4
- import { FC } from 'react';
5
-
6
- import { ERROR_MSG } from '../../shares/constants';
7
-
8
- export const InputFileBasic: FC = () => (
9
- <KolForm className="grid gap-4">
10
- <KolInputFile
11
- _id="file"
12
- _name="file"
13
- _required
14
- _error={ERROR_MSG}
15
- _label="Datei hochladen"
16
- _icon={{
17
- left: {
18
- icon: 'codicon codicon-save',
19
- },
20
- }}
21
- />
22
- <KolInputFile _id="file" _multiple _error={ERROR_MSG} _label="Datei hochladen (Multiple)" />
23
- <KolInputFile _disabled _id="file" _label="Datei hochladen (Disabled)" />
24
- </KolForm>
25
- );
5
+ export const InputFileBasic: FC = () => <FormWrap RefComponent={InputFileVariants} />;
@@ -0,0 +1,27 @@
1
+ import React, { forwardRef } from 'react';
2
+
3
+ import { KolInputFile } from '@public-ui/react';
4
+
5
+ import { Components } from '@public-ui/components';
6
+ import { ERROR_MSG } from '../../../shares/constants';
7
+
8
+ export const InputFileCases = forwardRef<HTMLKolInputFileElement, Components.KolInputFile>(function InputFileCases(props, ref) {
9
+ return (
10
+ <div className="grid gap-4">
11
+ <KolInputFile
12
+ {...props}
13
+ _required
14
+ _error={ERROR_MSG}
15
+ _label="Datei hochladen"
16
+ _icons={{
17
+ left: {
18
+ icon: 'codicon codicon-save',
19
+ },
20
+ }}
21
+ _touched
22
+ />
23
+ <KolInputFile {...props} ref={ref} _multiple _error={ERROR_MSG} _label="Datei hochladen (Multiple)" />
24
+ <KolInputFile {...props} _disabled _label="Datei hochladen (Disabled)" />
25
+ </div>
26
+ );
27
+ });
@@ -0,0 +1,19 @@
1
+ import React, { forwardRef } from 'react';
2
+
3
+ import { Components } from '@public-ui/components';
4
+ import { InputFileCases } from './cases';
5
+
6
+ export const InputFileVariants = forwardRef<HTMLKolInputFileElement, Components.KolInputFile>(function InputFileVariant(props, ref) {
7
+ return (
8
+ <div className="grid md:grid-cols-2 gap-4">
9
+ <fieldset>
10
+ <legend>File</legend>
11
+ <InputFileCases {...props} />
12
+ </fieldset>
13
+ <fieldset>
14
+ <legend>File (hideLabel)</legend>
15
+ <InputFileCases ref={ref} {...props} _hideLabel />
16
+ </fieldset>
17
+ </div>
18
+ );
19
+ });
@@ -1,30 +1,5 @@
1
- import React from 'react';
2
- import { KolForm, KolInputNumber } from '@public-ui/react';
1
+ import React, { FC } from 'react';
2
+ import { FormWrap } from '../FormWrap';
3
+ import { InputNumberVariants } from './partials/variants';
3
4
 
4
- import { FC } from 'react';
5
-
6
- import { ERROR_MSG } from '../../shares/constants';
7
-
8
- export const InputNumberBasic: FC = () => (
9
- <KolForm className="grid gap-4">
10
- <KolInputNumber
11
- _id="number"
12
- _name="number"
13
- _required
14
- _error={ERROR_MSG}
15
- _placeholder="Mit Icons"
16
- _label="Zahleneingabe"
17
- _icon={{
18
- left: {
19
- icon: 'codicon codicon-arrow-left',
20
- },
21
- right: {
22
- icon: 'codicon codicon-arrow-right',
23
- },
24
- }}
25
- />
26
- <KolInputNumber _id="number" _max={10} _min={-10} _step={2} _label="Zahleneingabe (-10 bis 10 in 2er Schritten)" />
27
- <KolInputNumber _id="number" _read-only _label="Zahleneingabe (Readonly)" />
28
- <KolInputNumber _disabled _id="number" _label="Zahleneingabe (Disabled)" />
29
- </KolForm>
30
- );
5
+ export const InputNumberBasic: FC = () => <FormWrap RefComponent={InputNumberVariants} />;
@@ -0,0 +1,32 @@
1
+ import React, { forwardRef } from 'react';
2
+
3
+ import { KolInputNumber } from '@public-ui/react';
4
+
5
+ import { Components } from '@public-ui/components';
6
+ import { ERROR_MSG } from '../../../shares/constants';
7
+
8
+ export const InputNumberCases = forwardRef<HTMLKolInputNumberElement, Components.KolInputNumber>(function InputNumberCases(props, ref) {
9
+ return (
10
+ <div className="grid gap-4">
11
+ <KolInputNumber
12
+ {...props}
13
+ _required
14
+ _error={ERROR_MSG}
15
+ _touched
16
+ _placeholder="Mit Icons"
17
+ _label="Zahleneingabe"
18
+ _icons={{
19
+ left: {
20
+ icon: 'codicon codicon-arrow-left',
21
+ },
22
+ right: {
23
+ icon: 'codicon codicon-arrow-right',
24
+ },
25
+ }}
26
+ />
27
+ <KolInputNumber {...props} ref={ref} _max={10} _min={-10} _step={2} _label="Zahleneingabe (-10 bis 10 in 2er Schritten)" />
28
+ <KolInputNumber {...props} _readOnly _label="Zahleneingabe (Readonly)" />
29
+ <KolInputNumber {...props} _disabled _label="Zahleneingabe (Disabled)" />
30
+ </div>
31
+ );
32
+ });
@@ -0,0 +1,19 @@
1
+ import React, { forwardRef } from 'react';
2
+
3
+ import { Components } from '@public-ui/components';
4
+ import { InputNumberCases } from './cases';
5
+
6
+ export const InputNumberVariants = forwardRef<HTMLKolInputNumberElement, Components.KolInputNumber>(function InputNumberVariant(props, ref) {
7
+ return (
8
+ <div className="grid md:grid-cols-2 gap-4">
9
+ <fieldset>
10
+ <legend>Number</legend>
11
+ <InputNumberCases {...props} />
12
+ </fieldset>
13
+ <fieldset>
14
+ <legend>Number (hideLabel)</legend>
15
+ <InputNumberCases ref={ref} {...props} _hideLabel />
16
+ </fieldset>
17
+ </div>
18
+ );
19
+ });
@@ -1,28 +1,5 @@
1
- import React from 'react';
2
- import { KolForm, KolInputPassword } from '@public-ui/react';
1
+ import React, { FC } from 'react';
2
+ import { FormWrap } from '../FormWrap';
3
+ import { InputPasswordVariants } from './partials/variants';
3
4
 
4
- import { FC } from 'react';
5
-
6
- import { ERROR_MSG } from '../../shares/constants';
7
-
8
- export const InputPasswordBasic: FC = () => (
9
- <KolForm className="grid gap-4">
10
- <KolInputPassword _disabled _error={ERROR_MSG} _label="Passwort (Disabled)" />
11
- <KolInputPassword _read-only _label="Passwort (Readonly)" />
12
- <KolInputPassword
13
- _name="password"
14
- _required
15
- _error={ERROR_MSG}
16
- _placeholder="Mit Icons"
17
- _label="Passwort"
18
- _icon={{
19
- left: {
20
- icon: 'codicon codicon-arrow-left',
21
- },
22
- right: {
23
- icon: 'codicon codicon-arrow-right',
24
- },
25
- }}
26
- />
27
- </KolForm>
28
- );
5
+ export const InputPasswordBasic: FC = () => <FormWrap RefComponent={InputPasswordVariants} />;
@@ -0,0 +1,32 @@
1
+ import React, { forwardRef } from 'react';
2
+
3
+ import { KolInputPassword } from '@public-ui/react';
4
+
5
+ import { Components } from '@public-ui/components';
6
+ import { ERROR_MSG } from '../../../shares/constants';
7
+
8
+ export const InputPasswordCases = forwardRef<HTMLKolInputPasswordElement, Components.KolInputPassword>(function InputPasswordCases(props, ref) {
9
+ return (
10
+ <div className="grid gap-4">
11
+ <KolInputPassword {...props} _disabled _error={ERROR_MSG} _label="Passwort (Disabled)" _touched />
12
+ <KolInputPassword {...props} _readOnly _label="Passwort (Readonly)" />
13
+ <KolInputPassword
14
+ {...props}
15
+ ref={ref}
16
+ _required
17
+ _error={ERROR_MSG}
18
+ _placeholder="Mit Icons"
19
+ _label="Passwort"
20
+ _icons={{
21
+ left: {
22
+ icon: 'codicon codicon-arrow-left',
23
+ },
24
+ right: {
25
+ icon: 'codicon codicon-arrow-right',
26
+ },
27
+ }}
28
+ _touched
29
+ />
30
+ </div>
31
+ );
32
+ });
@@ -0,0 +1,19 @@
1
+ import React, { forwardRef } from 'react';
2
+
3
+ import { Components } from '@public-ui/components';
4
+ import { InputPasswordCases } from './cases';
5
+
6
+ export const InputPasswordVariants = forwardRef<HTMLKolInputPasswordElement, Components.KolInputPassword>(function InputPasswordVariant(props, ref) {
7
+ return (
8
+ <div className="grid md:grid-cols-2 gap-4">
9
+ <fieldset>
10
+ <legend>Password</legend>
11
+ <InputPasswordCases {...props} />
12
+ </fieldset>
13
+ <fieldset>
14
+ <legend>Password (hideLabel)</legend>
15
+ <InputPasswordCases ref={ref} {...props} _hideLabel />
16
+ </fieldset>
17
+ </div>
18
+ );
19
+ });
@@ -15,13 +15,13 @@ export const InputPasswordShowPassword: FC = () => {
15
15
  }, [isPasswordVisible]);
16
16
 
17
17
  return (
18
- <KolForm className="grid gap-4">
18
+ <KolForm>
19
19
  <KolInputPassword
20
20
  _placeholder="Mit 'Passwort anzeigen' Button"
21
21
  _label="Passwort"
22
22
  ref={passwordRef}
23
23
  _smartButton={{
24
- _icon: {
24
+ _icons: {
25
25
  left: {
26
26
  icon: 'codicon codicon-eye',
27
27
  },
@@ -32,6 +32,7 @@ export const InputPasswordShowPassword: FC = () => {
32
32
  onClick: handleTogglePasswordClick,
33
33
  },
34
34
  }}
35
+ className="block"
35
36
  />
36
37
  </KolForm>
37
38
  );
@@ -1,46 +1,5 @@
1
- import React from 'react';
2
- import { KolForm, KolInputRadio } from '@public-ui/react';
1
+ import React, { FC } from 'react';
2
+ import { FormWrap } from '../FormWrap';
3
+ import { InputRadioVariants } from './partials/variants';
3
4
 
4
- import { FC } from 'react';
5
-
6
- import { ERROR_MSG } from '../../shares/constants';
7
-
8
- export const InputRadioBasic: FC = () => (
9
- <KolForm className="grid gap-4">
10
- <KolInputRadio
11
- _id="anrede"
12
- _error={ERROR_MSG}
13
- _name="anrede"
14
- _options="[{'label':'Frau','value':'Frau'},{'disabled':true,'label':'Herr (disabled)'},{'label':'Firma','value':'Firma'}]"
15
- _label="Anrede"
16
- />
17
- <KolInputRadio
18
- _id="anrede"
19
- _required
20
- _error={ERROR_MSG}
21
- _name="anrede2"
22
- _value="Firma"
23
- _options="[{'label':'Frau','value':'Frau'},{'disabled':true,'label':'Herr (disabled)','value':'Herr'},{'label':'Firma','value':'Firma'}]"
24
- _label="Anrede"
25
- />
26
- <KolInputRadio
27
- _id="anrede"
28
- _orientation="horizontal"
29
- _required
30
- _error={ERROR_MSG}
31
- _name="anrede2"
32
- _value="Firma"
33
- _options="[{'label':'Frau','value':'Frau'},{'disabled':true,'label':'Herr (disabled)'},{'label':'Firma','value':'Firma'}]"
34
- _label="Anrede (horizontal)"
35
- />
36
- <KolInputRadio
37
- _id="anrede"
38
- _disabled
39
- _error={ERROR_MSG}
40
- _name="anrede3"
41
- _value="Firma"
42
- _options="[{'label':'Frau','value':'Frau'},{'disabled':true,'label':'Herr (disabled)'},{'label':'Firma','value':'Firma'}]"
43
- _label="Anrede"
44
- />
45
- </KolForm>
46
- );
5
+ export const InputRadioBasic: FC = () => <FormWrap RefComponent={InputRadioVariants} />;
@@ -1,7 +1,7 @@
1
- import React from 'react';
2
- import { KolButton, KolDetails, KolInputCheckbox, KolInputRadio } from '@public-ui/react';
3
- import { FC, useState } from 'react';
1
+ import React, { FC, useState } from 'react';
2
+
4
3
  import { Orientation } from '@public-ui/components';
4
+ import { KolButton, KolDetails, KolForm, KolInputCheckbox, KolInputRadio } from '@public-ui/react';
5
5
 
6
6
  export const InputRadioHorizontal: FC = () => {
7
7
  const [show, setShow] = useState(true);
@@ -33,9 +33,12 @@ export const InputRadioHorizontal: FC = () => {
33
33
  <KolInputCheckbox _label="Switch orientation (horizontal/vertical)" _on={{ onChange: toggleOrientation }} _variant="switch" />
34
34
  </div>
35
35
  {show && (
36
- <div className="container my-4 d-grid gap-4">
37
- <KolInputRadio _label={`Test (${orientation})`} _options={options} _orientation={orientation} />
38
- </div>
36
+ <KolForm>
37
+ <div className="container my-4 d-grid gap-4">
38
+ <KolInputRadio _label={`Test (${orientation})`} _options={options} _orientation={orientation} _required />
39
+ <KolInputRadio _hideLabel _label={`Test (${orientation})`} _options={options} _orientation={orientation} _required />
40
+ </div>
41
+ </KolForm>
39
42
  )}
40
43
  </div>
41
44
  );
@@ -0,0 +1,56 @@
1
+ import React, { forwardRef } from 'react';
2
+
3
+ import { KolInputRadio } from '@public-ui/react';
4
+
5
+ import { Components } from '@public-ui/components';
6
+ import { ERROR_MSG } from '../../../shares/constants';
7
+
8
+ export const InputRadioCases = forwardRef<HTMLKolInputRadioElement, Components.KolInputRadio>(function InputRadioCases(props, ref) {
9
+ return (
10
+ <div className="grid gap-4">
11
+ <KolInputRadio
12
+ {...props}
13
+ _error={ERROR_MSG}
14
+ _options="[{'label':'Frau','value':'Frau'},{'disabled':true,'label':'Herr (disabled)'},{'label':'Firma','value':'Firma'}]"
15
+ _label="Anrede"
16
+ />
17
+ <KolInputRadio
18
+ {...props}
19
+ _required
20
+ _error={ERROR_MSG}
21
+ _touched
22
+ _value="Firma"
23
+ _options="[{'label':'Frau','value':'Frau'},{'disabled':true,'label':'Herr (disabled)','value':'Herr'},{'label':'Firma','value':'Firma'}]"
24
+ _label="Anrede (mit Fehler)"
25
+ />
26
+ <KolInputRadio
27
+ {...props}
28
+ ref={ref}
29
+ _orientation="horizontal"
30
+ _required
31
+ _value="Firma"
32
+ _options="[{'label':'Frau','value':'Frau'},{'disabled':true,'label':'Herr (disabled)'},{'label':'Firma','value':'Firma'}]"
33
+ _label="Anrede (horizontal)"
34
+ />
35
+ <KolInputRadio
36
+ {...props}
37
+ _disabled
38
+ _orientation="horizontal"
39
+ _required
40
+ _error={ERROR_MSG}
41
+ _touched
42
+ _value="Firma"
43
+ _options="[{'label':'Frau','value':'Frau'},{'disabled':true,'label':'Herr (disabled)'},{'label':'Firma','value':'Firma'}]"
44
+ _label="Anrede (horizontal mit Fehler)"
45
+ />
46
+ <KolInputRadio
47
+ {...props}
48
+ _disabled
49
+ _value="Firma"
50
+ _options="[{'label':'Frau','value':'Frau'},{'disabled':true,'label':'Herr (disabled)'},{'label':'Firma','value':'Firma'}]"
51
+ _label="Anrede"
52
+ _touched
53
+ />
54
+ </div>
55
+ );
56
+ });
@@ -0,0 +1,19 @@
1
+ import React, { forwardRef } from 'react';
2
+
3
+ import { Components } from '@public-ui/components';
4
+ import { InputRadioCases } from './cases';
5
+
6
+ export const InputRadioVariants = forwardRef<HTMLKolInputRadioElement, Components.KolInputRadio>(function InputRadioVariant(props, ref) {
7
+ return (
8
+ <div className="grid md:grid-cols-2 gap-4">
9
+ <fieldset>
10
+ <legend>Radio</legend>
11
+ <InputRadioCases {...props} />
12
+ </fieldset>
13
+ <fieldset>
14
+ <legend>Radio (hideLabel)</legend>
15
+ <InputRadioCases ref={ref} {...props} _hideLabel />
16
+ </fieldset>
17
+ </div>
18
+ );
19
+ });
@@ -13,6 +13,6 @@ const options = [
13
13
 
14
14
  export const InputRadioSelect: FC = () => (
15
15
  <KolForm className="grid gap-4">
16
- <KolInputRadio _id="anrede-radio" _error={ERROR_MSG} _name="anrede" _options={options} _label="Anrede" />
16
+ <KolInputRadio _error={ERROR_MSG} _options={options} _label="Anrede" />
17
17
  </KolForm>
18
18
  );
@@ -1,29 +1,5 @@
1
- import React from 'react';
2
- import { KolForm, KolInputRange } from '@public-ui/react';
1
+ import React, { FC } from 'react';
2
+ import { FormWrap } from '../FormWrap';
3
+ import { InputRangeVariants } from './partials/variants';
3
4
 
4
- import { FC } from 'react';
5
-
6
- import { ERROR_MSG } from '../../shares/constants';
7
-
8
- export const InputRangeBasic: FC = () => (
9
- <KolForm className="grid gap-4">
10
- <KolInputRange
11
- _id="range"
12
- _min={0}
13
- _max={50}
14
- _name="range"
15
- _error={ERROR_MSG}
16
- _label="Schieberegler"
17
- _icon={{
18
- left: {
19
- icon: 'codicon codicon-arrow-left',
20
- },
21
- right: {
22
- icon: 'codicon codicon-arrow-right',
23
- },
24
- }}
25
- />
26
- <KolInputRange _id="range" _min={0} _max={50} _step={10} _error={ERROR_MSG} _label="Schieberegler" />
27
- <KolInputRange _disabled _id="range" _min={0} _max={50} _label="Schieberegler" />
28
- </KolForm>
29
- );
5
+ export const InputRangeBasic: FC = () => <FormWrap RefComponent={InputRangeVariants} />;
@@ -0,0 +1,31 @@
1
+ import React, { forwardRef } from 'react';
2
+
3
+ import { KolInputRange } from '@public-ui/react';
4
+
5
+ import { Components } from '@public-ui/components';
6
+ import { ERROR_MSG } from '../../../shares/constants';
7
+
8
+ export const InputRangeCases = forwardRef<HTMLKolInputRangeElement, Components.KolInputRange>(function InputRangeCases(props, ref) {
9
+ return (
10
+ <div className="grid gap-4">
11
+ <KolInputRange
12
+ {...props}
13
+ _min={0}
14
+ _max={50}
15
+ _error={ERROR_MSG}
16
+ _label="Schieberegler"
17
+ _icons={{
18
+ left: {
19
+ icon: 'codicon codicon-arrow-left',
20
+ },
21
+ right: {
22
+ icon: 'codicon codicon-arrow-right',
23
+ },
24
+ }}
25
+ _touched
26
+ />
27
+ <KolInputRange {...props} ref={ref} _min={0} _max={50} _step={10} _error={ERROR_MSG} _label="Schieberegler mit Fehler" _touched />
28
+ <KolInputRange {...props} _disabled _min={0} _max={50} _label="Schieberegler (disabled)" />
29
+ </div>
30
+ );
31
+ });
@@ -0,0 +1,19 @@
1
+ import React, { forwardRef } from 'react';
2
+
3
+ import { Components } from '@public-ui/components';
4
+ import { InputRangeCases } from './cases';
5
+
6
+ export const InputRangeVariants = forwardRef<HTMLKolInputRangeElement, Components.KolInputRange>(function InputRangeVariant(props, ref) {
7
+ return (
8
+ <div className="grid md:grid-cols-2 gap-4">
9
+ <fieldset>
10
+ <legend>Range</legend>
11
+ <InputRangeCases {...props} />
12
+ </fieldset>
13
+ <fieldset>
14
+ <legend>Range (hideLabel)</legend>
15
+ <InputRangeCases ref={ref} {...props} _hideLabel />
16
+ </fieldset>
17
+ </div>
18
+ );
19
+ });
@@ -1,72 +1,5 @@
1
- import React from 'react';
2
- import { KolForm, KolInputText } from '@public-ui/react';
1
+ import React, { FC } from 'react';
2
+ import { FormWrap } from '../FormWrap';
3
+ import { InputTextVariants } from './partials/variants';
3
4
 
4
- import { FC } from 'react';
5
-
6
- import { ERROR_MSG, HINT_MSG } from '../../shares/constants';
7
-
8
- export const InputTextBasic: FC = () => (
9
- <KolForm className="grid gap-4">
10
- <KolInputText
11
- _id=""
12
- _hint={HINT_MSG}
13
- _error={ERROR_MSG}
14
- _placeholder="Mit Icons"
15
- _icon={{
16
- left: 'codicon codicon-arrow-left',
17
- right: {
18
- icon: 'codicon codicon-arrow-right',
19
- style: {
20
- 'font-size': '200%',
21
- },
22
- },
23
- }}
24
- _on={{
25
- onBlur: console.log,
26
- onChange: console.log,
27
- onClick: console.log,
28
- onFocus: console.log,
29
- }}
30
- _hideLabel
31
- _required
32
- _smartButton={{
33
- _icon: {
34
- left: {
35
- icon: 'codicon codicon-eye',
36
- },
37
- },
38
- _hideLabel: true,
39
- _label: 'Passwort anzeigen',
40
- _on: {
41
- onClick: () => {},
42
- },
43
- }}
44
- _type="search"
45
- _label="Suche"
46
- />
47
- <KolInputText
48
- _id=""
49
- _error={ERROR_MSG}
50
- _placeholder="Mit Icons"
51
- _label="Suche"
52
- _icon={{
53
- left: {
54
- icon: 'codicon codicon-arrow-left',
55
- },
56
- right: {
57
- icon: 'codicon codicon-arrow-right',
58
- },
59
- }}
60
- _hideLabel
61
- _type="search"
62
- />
63
- <KolInputText _id="" _placeholder="Placeholder" _label="Vorname (text)" _required />
64
- <KolInputText _id="" _placeholder="Placeholder" _label="Suche (search)" _type="search" />
65
- <KolInputText _id="vorname" _placeholder="Placeholder" _error={ERROR_MSG} _type="url" _label="URL (url)" />
66
- <KolInputText _id="" _placeholder="Placeholder" _type="tel" _label="Telefon (tel)" />
67
- <KolInputText _id="" _placeholder="Placeholder" _read-only _label="Vorname (text, readonly)" />
68
- <KolInputText _id="" _value="Value" _read-only _label="Vorname (text, readonly)" />
69
- <KolInputText _id="" _placeholder="Placeholder" _disabled _label="Vorname (text, disabled)" />
70
- <KolInputText _id="" _value="Value" _disabled _label="Vorname (text, disabled)" />
71
- </KolForm>
72
- );
5
+ export const InputTextBasic: FC = () => <FormWrap RefComponent={InputTextVariants} />;
@@ -1,10 +1,8 @@
1
1
  import { KolForm, KolInputText } from '@public-ui/react';
2
- import React from 'react';
3
-
4
- import { FC } from 'react';
2
+ import React, { FC } from 'react';
5
3
 
6
4
  export const InputTextBlur: FC = () => (
7
- <KolForm className="grid gap-4">
5
+ <KolForm>
8
6
  <KolInputText
9
7
  _on={{
10
8
  onBlur: console.log,
@@ -9,15 +9,17 @@ export const InputTextFocus: FC = () => {
9
9
  useLayoutEffect(() => {
10
10
  setTimeout(() => {
11
11
  ref.current?.focus();
12
- }, 100);
12
+ }, 500);
13
13
  }, [ref]);
14
14
 
15
15
  return (
16
- <KolForm className="grid gap-4">
17
- <KolInputText ref={ref} _id="vorname" _label="Vorname" />
18
- <KolInputText _label="Nachname" />
19
- <div>
20
- <KolButton _label="Submit"></KolButton>
16
+ <KolForm>
17
+ <div className="grid gap-4">
18
+ <KolInputText ref={ref} _label="Vorname" />
19
+ <KolInputText _label="Nachname" />
20
+ <div>
21
+ <KolButton _label="Submit"></KolButton>
22
+ </div>
21
23
  </div>
22
24
  </KolForm>
23
25
  );