@public-ui/sample-react 2.1.8 → 2.1.9

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 (346) hide show
  1. package/dist/1266.js +2 -0
  2. package/dist/1601.js +2 -0
  3. package/dist/1786.js +2 -0
  4. package/dist/{495.js → 1797.js} +2 -2
  5. package/dist/1832.js +2 -0
  6. package/dist/1908.js +2 -0
  7. package/dist/2441.js +2 -0
  8. package/dist/2462.js +2 -0
  9. package/dist/2605.js +2 -0
  10. package/dist/2728.js +2 -0
  11. package/dist/2875.js +2 -0
  12. package/dist/2960.js +2 -0
  13. package/dist/3254.js +2 -0
  14. package/dist/3440.js +2 -0
  15. package/dist/3460.js +2 -0
  16. package/dist/3492.js +2 -0
  17. package/dist/3503.js +2 -0
  18. package/dist/3845.js +2 -0
  19. package/dist/3882.js +2 -0
  20. package/dist/3965.js +2 -0
  21. package/dist/4181.js +2 -0
  22. package/dist/4294.js +2 -0
  23. package/dist/4604.js +2 -0
  24. package/dist/4737.js +2 -0
  25. package/dist/4804.js +2 -0
  26. package/dist/4972.js +2 -0
  27. package/dist/5076.js +2 -0
  28. package/dist/5204.js +2 -0
  29. package/dist/5399.js +2 -0
  30. package/dist/5431.js +2 -0
  31. package/dist/5514.js +2 -0
  32. package/dist/5522.js +2 -0
  33. package/dist/5677.js +2 -0
  34. package/dist/5781.js +2 -0
  35. package/dist/5813.js +2 -0
  36. package/dist/5829.js +2 -0
  37. package/dist/6199.js +2 -0
  38. package/dist/6320.js +2 -0
  39. package/dist/6473.js +2 -0
  40. package/dist/6567.js +2 -0
  41. package/dist/6649.js +2 -0
  42. package/dist/6705.js +2 -0
  43. package/dist/6717.js +2 -0
  44. package/dist/6731.js +2 -0
  45. package/dist/6974.js +2 -0
  46. package/dist/7157.js +2 -0
  47. package/dist/7162.js +2 -0
  48. package/dist/7163.js +2 -0
  49. package/dist/7183.js +2 -0
  50. package/dist/7310.js +2 -0
  51. package/dist/{8977.js → 7391.js} +2 -2
  52. package/dist/7461.js +2 -0
  53. package/dist/7560.js +2 -0
  54. package/dist/7582.js +2 -0
  55. package/dist/7609.js +2 -0
  56. package/dist/8100.js +2 -0
  57. package/dist/8116.js +2 -0
  58. package/dist/8126.js +2 -0
  59. package/dist/8146.js +1 -1
  60. package/dist/8191.js +2 -0
  61. package/dist/8210.js +2 -0
  62. package/dist/8286.js +2 -0
  63. package/dist/8471.js +2 -0
  64. package/dist/85.js +2 -0
  65. package/dist/8799.js +2 -0
  66. package/dist/8902.js +2 -0
  67. package/dist/8956.js +2 -0
  68. package/dist/92.js +2 -0
  69. package/dist/9558.js +2 -0
  70. package/dist/9768.js +2 -0
  71. package/dist/9818.js +2 -0
  72. package/dist/989.js +2 -0
  73. package/dist/9980.js +2 -0
  74. package/dist/9980.js.LICENSE.txt +3 -0
  75. package/dist/assets/material-icons/iconfont/_variables.scss +1 -1
  76. package/dist/assets/material-symbols/_core.scss +6 -7
  77. package/dist/main.css +2 -2
  78. package/dist/main.js +1 -1
  79. package/package.json +4 -4
  80. package/public/assets/material-icons/iconfont/_variables.scss +1 -1
  81. package/public/assets/material-symbols/_core.scss +6 -7
  82. package/src/App.tsx +1 -1
  83. package/src/components/SampleDescription.tsx +2 -2
  84. package/src/components/alert/basic.tsx +2 -2
  85. package/src/components/button/icons.tsx +19 -17
  86. package/src/components/indented-text/basic.tsx +4 -1
  87. package/src/components/input-color/partials/cases.tsx +11 -9
  88. package/src/components/input-date/partials/cases.tsx +3 -1
  89. package/src/components/input-date/partials/minMax.tsx +41 -0
  90. package/src/components/input-date/partials/variants.tsx +5 -0
  91. package/src/components/input-email/partials/cases.tsx +3 -1
  92. package/src/components/input-file/partials/cases.tsx +13 -1
  93. package/src/components/input-number/partials/cases.tsx +3 -0
  94. package/src/components/input-password/partials/cases.tsx +3 -0
  95. package/src/components/input-radio/partials/cases.tsx +7 -5
  96. package/src/components/input-range/partials/cases.tsx +18 -16
  97. package/src/components/input-text/partials/cases.tsx +3 -0
  98. package/src/components/modal/basic.tsx +10 -1
  99. package/src/components/table/horizontal-scrollbar.tsx +15 -2
  100. package/src/components/table/multi-sort.tsx +116 -0
  101. package/src/components/table/routes.ts +2 -0
  102. package/src/components/tabs/align.tsx +57 -0
  103. package/src/components/tabs/routes.ts +2 -0
  104. package/src/components/toast/basic.tsx +31 -2
  105. package/src/hooks/useToasterService.ts +8 -2
  106. package/src/scenarios/change-tabindex.tsx +256 -0
  107. package/src/scenarios/focus-elements.tsx +14 -6
  108. package/src/scenarios/horizontal-scrollbar-advanced/TableHorizontalScrollbarAdvanced.tsx +15 -11
  109. package/src/scenarios/input-group-with-error.tsx +22 -2
  110. package/src/scenarios/inputs-get-value.tsx +14 -12
  111. package/src/scenarios/routes.ts +2 -0
  112. package/src/style.scss +21 -5
  113. package/dist/1487.js +0 -2
  114. package/dist/1636.js +0 -2
  115. package/dist/1792.js +0 -2
  116. package/dist/1795.js +0 -2
  117. package/dist/2017.js +0 -2
  118. package/dist/2322.js +0 -2
  119. package/dist/2538.js +0 -2
  120. package/dist/2567.js +0 -2
  121. package/dist/263.js +0 -2
  122. package/dist/2719.js +0 -2
  123. package/dist/3064.js +0 -2
  124. package/dist/3077.js +0 -2
  125. package/dist/3238.js +0 -2
  126. package/dist/3301.js +0 -2
  127. package/dist/3395.js +0 -2
  128. package/dist/35.js +0 -2
  129. package/dist/3521.js +0 -2
  130. package/dist/356.js +0 -2
  131. package/dist/3714.js +0 -2
  132. package/dist/3735.js +0 -2
  133. package/dist/3766.js +0 -2
  134. package/dist/3994.js +0 -2
  135. package/dist/4025.js +0 -2
  136. package/dist/4065.js +0 -2
  137. package/dist/4118.js +0 -2
  138. package/dist/4182.js +0 -2
  139. package/dist/4188.js +0 -2
  140. package/dist/4332.js +0 -2
  141. package/dist/4402.js +0 -2
  142. package/dist/4795.js +0 -2
  143. package/dist/4818.js +0 -2
  144. package/dist/4892.js +0 -2
  145. package/dist/4933.js +0 -2
  146. package/dist/4943.js +0 -2
  147. package/dist/5034.js +0 -2
  148. package/dist/5056.js +0 -2
  149. package/dist/5138.js +0 -2
  150. package/dist/5296.js +0 -2
  151. package/dist/5356.js +0 -2
  152. package/dist/5551.js +0 -2
  153. package/dist/5835.js +0 -2
  154. package/dist/5840.js +0 -2
  155. package/dist/5889.js +0 -2
  156. package/dist/5912.js +0 -2
  157. package/dist/6082.js +0 -2
  158. package/dist/6099.js +0 -2
  159. package/dist/6181.js +0 -2
  160. package/dist/619.js +0 -2
  161. package/dist/6671.js +0 -2
  162. package/dist/6775.js +0 -2
  163. package/dist/7274.js +0 -2
  164. package/dist/7440.js +0 -2
  165. package/dist/7795.js +0 -2
  166. package/dist/7802.js +0 -2
  167. package/dist/7860.js +0 -2
  168. package/dist/8092.js +0 -2
  169. package/dist/8111.js +0 -2
  170. package/dist/8427.js +0 -2
  171. package/dist/8495.js +0 -2
  172. package/dist/8672.js +0 -2
  173. package/dist/8737.js +0 -2
  174. package/dist/8786.js +0 -2
  175. package/dist/8796.js +0 -2
  176. package/dist/9333.js +0 -2
  177. package/dist/9389.js +0 -2
  178. package/dist/9561.js +0 -2
  179. package/dist/9599.js +0 -2
  180. package/dist/9612.js +0 -2
  181. package/dist/9890.js +0 -2
  182. package/dist/assets/bundes/LICENSE.md +0 -1
  183. package/dist/assets/bundes/sans/BundesSans-Web-Black.ttf +0 -0
  184. package/dist/assets/bundes/sans/BundesSans-Web-Black.woff +0 -0
  185. package/dist/assets/bundes/sans/BundesSans-Web-Black.woff2 +0 -0
  186. package/dist/assets/bundes/sans/BundesSans-Web-BlackItalic.ttf +0 -0
  187. package/dist/assets/bundes/sans/BundesSans-Web-BlackItalic.woff +0 -0
  188. package/dist/assets/bundes/sans/BundesSans-Web-BlackItalic.woff2 +0 -0
  189. package/dist/assets/bundes/sans/BundesSans-Web-Bold.ttf +0 -0
  190. package/dist/assets/bundes/sans/BundesSans-Web-Bold.woff +0 -0
  191. package/dist/assets/bundes/sans/BundesSans-Web-Bold.woff2 +0 -0
  192. package/dist/assets/bundes/sans/BundesSans-Web-BoldItalic.ttf +0 -0
  193. package/dist/assets/bundes/sans/BundesSans-Web-BoldItalic.woff +0 -0
  194. package/dist/assets/bundes/sans/BundesSans-Web-BoldItalic.woff2 +0 -0
  195. package/dist/assets/bundes/sans/BundesSans-Web-Light.ttf +0 -0
  196. package/dist/assets/bundes/sans/BundesSans-Web-Light.woff +0 -0
  197. package/dist/assets/bundes/sans/BundesSans-Web-Light.woff2 +0 -0
  198. package/dist/assets/bundes/sans/BundesSans-Web-LightItalic.ttf +0 -0
  199. package/dist/assets/bundes/sans/BundesSans-Web-LightItalic.woff +0 -0
  200. package/dist/assets/bundes/sans/BundesSans-Web-LightItalic.woff2 +0 -0
  201. package/dist/assets/bundes/sans/BundesSans-Web-Medium.ttf +0 -0
  202. package/dist/assets/bundes/sans/BundesSans-Web-Medium.woff +0 -0
  203. package/dist/assets/bundes/sans/BundesSans-Web-Medium.woff2 +0 -0
  204. package/dist/assets/bundes/sans/BundesSans-Web-MediumItalic.ttf +0 -0
  205. package/dist/assets/bundes/sans/BundesSans-Web-MediumItalic.woff +0 -0
  206. package/dist/assets/bundes/sans/BundesSans-Web-MediumItalic.woff2 +0 -0
  207. package/dist/assets/bundes/sans/BundesSans-Web-Regular.ttf +0 -0
  208. package/dist/assets/bundes/sans/BundesSans-Web-Regular.woff +0 -0
  209. package/dist/assets/bundes/sans/BundesSans-Web-Regular.woff2 +0 -0
  210. package/dist/assets/bundes/sans/BundesSans-Web-RegularItalic.ttf +0 -0
  211. package/dist/assets/bundes/sans/BundesSans-Web-RegularItalic.woff +0 -0
  212. package/dist/assets/bundes/sans/BundesSans-Web-RegularItalic.woff2 +0 -0
  213. package/dist/assets/bundes/sans-cond/BundesSansCond-Web-Regular.ttf +0 -0
  214. package/dist/assets/bundes/sans-cond/BundesSansCond-Web-Regular.woff +0 -0
  215. package/dist/assets/bundes/sans-cond/BundesSansCond-Web-Regular.woff2 +0 -0
  216. package/dist/assets/bundes/serif/BundesSerif-Web-Bold.ttf +0 -0
  217. package/dist/assets/bundes/serif/BundesSerif-Web-Bold.woff +0 -0
  218. package/dist/assets/bundes/serif/BundesSerif-Web-Bold.woff2 +0 -0
  219. package/dist/assets/bundes/serif/BundesSerif-Web-BoldItalic.ttf +0 -0
  220. package/dist/assets/bundes/serif/BundesSerif-Web-BoldItalic.woff +0 -0
  221. package/dist/assets/bundes/serif/BundesSerif-Web-BoldItalic.woff2 +0 -0
  222. package/dist/assets/bundes/serif/BundesSerif-Web-Italic.ttf +0 -0
  223. package/dist/assets/bundes/serif/BundesSerif-Web-Italic.woff +0 -0
  224. package/dist/assets/bundes/serif/BundesSerif-Web-Italic.woff2 +0 -0
  225. package/dist/assets/bundes/serif/BundesSerif-Web-Regular.ttf +0 -0
  226. package/dist/assets/bundes/serif/BundesSerif-Web-Regular.woff +0 -0
  227. package/dist/assets/bundes/serif/BundesSerif-Web-Regular.woff2 +0 -0
  228. package/dist/assets/bundes/style.css +0 -84
  229. package/public/assets/bundes/LICENSE.md +0 -1
  230. package/public/assets/bundes/sans/BundesSans-Web-Black.ttf +0 -0
  231. package/public/assets/bundes/sans/BundesSans-Web-Black.woff +0 -0
  232. package/public/assets/bundes/sans/BundesSans-Web-Black.woff2 +0 -0
  233. package/public/assets/bundes/sans/BundesSans-Web-BlackItalic.ttf +0 -0
  234. package/public/assets/bundes/sans/BundesSans-Web-BlackItalic.woff +0 -0
  235. package/public/assets/bundes/sans/BundesSans-Web-BlackItalic.woff2 +0 -0
  236. package/public/assets/bundes/sans/BundesSans-Web-Bold.ttf +0 -0
  237. package/public/assets/bundes/sans/BundesSans-Web-Bold.woff +0 -0
  238. package/public/assets/bundes/sans/BundesSans-Web-Bold.woff2 +0 -0
  239. package/public/assets/bundes/sans/BundesSans-Web-BoldItalic.ttf +0 -0
  240. package/public/assets/bundes/sans/BundesSans-Web-BoldItalic.woff +0 -0
  241. package/public/assets/bundes/sans/BundesSans-Web-BoldItalic.woff2 +0 -0
  242. package/public/assets/bundes/sans/BundesSans-Web-Light.ttf +0 -0
  243. package/public/assets/bundes/sans/BundesSans-Web-Light.woff +0 -0
  244. package/public/assets/bundes/sans/BundesSans-Web-Light.woff2 +0 -0
  245. package/public/assets/bundes/sans/BundesSans-Web-LightItalic.ttf +0 -0
  246. package/public/assets/bundes/sans/BundesSans-Web-LightItalic.woff +0 -0
  247. package/public/assets/bundes/sans/BundesSans-Web-LightItalic.woff2 +0 -0
  248. package/public/assets/bundes/sans/BundesSans-Web-Medium.ttf +0 -0
  249. package/public/assets/bundes/sans/BundesSans-Web-Medium.woff +0 -0
  250. package/public/assets/bundes/sans/BundesSans-Web-Medium.woff2 +0 -0
  251. package/public/assets/bundes/sans/BundesSans-Web-MediumItalic.ttf +0 -0
  252. package/public/assets/bundes/sans/BundesSans-Web-MediumItalic.woff +0 -0
  253. package/public/assets/bundes/sans/BundesSans-Web-MediumItalic.woff2 +0 -0
  254. package/public/assets/bundes/sans/BundesSans-Web-Regular.ttf +0 -0
  255. package/public/assets/bundes/sans/BundesSans-Web-Regular.woff +0 -0
  256. package/public/assets/bundes/sans/BundesSans-Web-Regular.woff2 +0 -0
  257. package/public/assets/bundes/sans/BundesSans-Web-RegularItalic.ttf +0 -0
  258. package/public/assets/bundes/sans/BundesSans-Web-RegularItalic.woff +0 -0
  259. package/public/assets/bundes/sans/BundesSans-Web-RegularItalic.woff2 +0 -0
  260. package/public/assets/bundes/sans-cond/BundesSansCond-Web-Regular.ttf +0 -0
  261. package/public/assets/bundes/sans-cond/BundesSansCond-Web-Regular.woff +0 -0
  262. package/public/assets/bundes/sans-cond/BundesSansCond-Web-Regular.woff2 +0 -0
  263. package/public/assets/bundes/serif/BundesSerif-Web-Bold.ttf +0 -0
  264. package/public/assets/bundes/serif/BundesSerif-Web-Bold.woff +0 -0
  265. package/public/assets/bundes/serif/BundesSerif-Web-Bold.woff2 +0 -0
  266. package/public/assets/bundes/serif/BundesSerif-Web-BoldItalic.ttf +0 -0
  267. package/public/assets/bundes/serif/BundesSerif-Web-BoldItalic.woff +0 -0
  268. package/public/assets/bundes/serif/BundesSerif-Web-BoldItalic.woff2 +0 -0
  269. package/public/assets/bundes/serif/BundesSerif-Web-Italic.ttf +0 -0
  270. package/public/assets/bundes/serif/BundesSerif-Web-Italic.woff +0 -0
  271. package/public/assets/bundes/serif/BundesSerif-Web-Italic.woff2 +0 -0
  272. package/public/assets/bundes/serif/BundesSerif-Web-Regular.ttf +0 -0
  273. package/public/assets/bundes/serif/BundesSerif-Web-Regular.woff +0 -0
  274. package/public/assets/bundes/serif/BundesSerif-Web-Regular.woff2 +0 -0
  275. package/public/assets/bundes/style.css +0 -84
  276. /package/dist/{1487.js.LICENSE.txt → 1266.js.LICENSE.txt} +0 -0
  277. /package/dist/{1636.js.LICENSE.txt → 1601.js.LICENSE.txt} +0 -0
  278. /package/dist/{1792.js.LICENSE.txt → 1786.js.LICENSE.txt} +0 -0
  279. /package/dist/{1795.js.LICENSE.txt → 1797.js.LICENSE.txt} +0 -0
  280. /package/dist/{2017.js.LICENSE.txt → 1832.js.LICENSE.txt} +0 -0
  281. /package/dist/{2322.js.LICENSE.txt → 1908.js.LICENSE.txt} +0 -0
  282. /package/dist/{2538.js.LICENSE.txt → 2441.js.LICENSE.txt} +0 -0
  283. /package/dist/{2567.js.LICENSE.txt → 2462.js.LICENSE.txt} +0 -0
  284. /package/dist/{263.js.LICENSE.txt → 2605.js.LICENSE.txt} +0 -0
  285. /package/dist/{2719.js.LICENSE.txt → 2728.js.LICENSE.txt} +0 -0
  286. /package/dist/{3064.js.LICENSE.txt → 2875.js.LICENSE.txt} +0 -0
  287. /package/dist/{3077.js.LICENSE.txt → 2960.js.LICENSE.txt} +0 -0
  288. /package/dist/{3238.js.LICENSE.txt → 3254.js.LICENSE.txt} +0 -0
  289. /package/dist/{3301.js.LICENSE.txt → 3440.js.LICENSE.txt} +0 -0
  290. /package/dist/{3395.js.LICENSE.txt → 3460.js.LICENSE.txt} +0 -0
  291. /package/dist/{35.js.LICENSE.txt → 3492.js.LICENSE.txt} +0 -0
  292. /package/dist/{3521.js.LICENSE.txt → 3503.js.LICENSE.txt} +0 -0
  293. /package/dist/{356.js.LICENSE.txt → 3845.js.LICENSE.txt} +0 -0
  294. /package/dist/{3714.js.LICENSE.txt → 3882.js.LICENSE.txt} +0 -0
  295. /package/dist/{3735.js.LICENSE.txt → 3965.js.LICENSE.txt} +0 -0
  296. /package/dist/{3766.js.LICENSE.txt → 4181.js.LICENSE.txt} +0 -0
  297. /package/dist/{3994.js.LICENSE.txt → 4294.js.LICENSE.txt} +0 -0
  298. /package/dist/{4025.js.LICENSE.txt → 4604.js.LICENSE.txt} +0 -0
  299. /package/dist/{4065.js.LICENSE.txt → 4737.js.LICENSE.txt} +0 -0
  300. /package/dist/{4118.js.LICENSE.txt → 4804.js.LICENSE.txt} +0 -0
  301. /package/dist/{4182.js.LICENSE.txt → 4972.js.LICENSE.txt} +0 -0
  302. /package/dist/{4188.js.LICENSE.txt → 5076.js.LICENSE.txt} +0 -0
  303. /package/dist/{4332.js.LICENSE.txt → 5204.js.LICENSE.txt} +0 -0
  304. /package/dist/{4402.js.LICENSE.txt → 5399.js.LICENSE.txt} +0 -0
  305. /package/dist/{4795.js.LICENSE.txt → 5431.js.LICENSE.txt} +0 -0
  306. /package/dist/{4818.js.LICENSE.txt → 5514.js.LICENSE.txt} +0 -0
  307. /package/dist/{4892.js.LICENSE.txt → 5522.js.LICENSE.txt} +0 -0
  308. /package/dist/{4933.js.LICENSE.txt → 5677.js.LICENSE.txt} +0 -0
  309. /package/dist/{4943.js.LICENSE.txt → 5781.js.LICENSE.txt} +0 -0
  310. /package/dist/{495.js.LICENSE.txt → 5813.js.LICENSE.txt} +0 -0
  311. /package/dist/{5034.js.LICENSE.txt → 5829.js.LICENSE.txt} +0 -0
  312. /package/dist/{5056.js.LICENSE.txt → 6199.js.LICENSE.txt} +0 -0
  313. /package/dist/{5138.js.LICENSE.txt → 6320.js.LICENSE.txt} +0 -0
  314. /package/dist/{5296.js.LICENSE.txt → 6473.js.LICENSE.txt} +0 -0
  315. /package/dist/{5356.js.LICENSE.txt → 6567.js.LICENSE.txt} +0 -0
  316. /package/dist/{5551.js.LICENSE.txt → 6649.js.LICENSE.txt} +0 -0
  317. /package/dist/{5835.js.LICENSE.txt → 6705.js.LICENSE.txt} +0 -0
  318. /package/dist/{5840.js.LICENSE.txt → 6717.js.LICENSE.txt} +0 -0
  319. /package/dist/{5889.js.LICENSE.txt → 6731.js.LICENSE.txt} +0 -0
  320. /package/dist/{5912.js.LICENSE.txt → 6974.js.LICENSE.txt} +0 -0
  321. /package/dist/{6082.js.LICENSE.txt → 7157.js.LICENSE.txt} +0 -0
  322. /package/dist/{6099.js.LICENSE.txt → 7162.js.LICENSE.txt} +0 -0
  323. /package/dist/{6181.js.LICENSE.txt → 7163.js.LICENSE.txt} +0 -0
  324. /package/dist/{619.js.LICENSE.txt → 7183.js.LICENSE.txt} +0 -0
  325. /package/dist/{6671.js.LICENSE.txt → 7310.js.LICENSE.txt} +0 -0
  326. /package/dist/{6775.js.LICENSE.txt → 7391.js.LICENSE.txt} +0 -0
  327. /package/dist/{7274.js.LICENSE.txt → 7461.js.LICENSE.txt} +0 -0
  328. /package/dist/{7440.js.LICENSE.txt → 7560.js.LICENSE.txt} +0 -0
  329. /package/dist/{7795.js.LICENSE.txt → 7582.js.LICENSE.txt} +0 -0
  330. /package/dist/{7802.js.LICENSE.txt → 7609.js.LICENSE.txt} +0 -0
  331. /package/dist/{7860.js.LICENSE.txt → 8100.js.LICENSE.txt} +0 -0
  332. /package/dist/{8092.js.LICENSE.txt → 8116.js.LICENSE.txt} +0 -0
  333. /package/dist/{8111.js.LICENSE.txt → 8126.js.LICENSE.txt} +0 -0
  334. /package/dist/{8427.js.LICENSE.txt → 8191.js.LICENSE.txt} +0 -0
  335. /package/dist/{8495.js.LICENSE.txt → 8210.js.LICENSE.txt} +0 -0
  336. /package/dist/{8672.js.LICENSE.txt → 8286.js.LICENSE.txt} +0 -0
  337. /package/dist/{8737.js.LICENSE.txt → 8471.js.LICENSE.txt} +0 -0
  338. /package/dist/{8786.js.LICENSE.txt → 85.js.LICENSE.txt} +0 -0
  339. /package/dist/{8796.js.LICENSE.txt → 8799.js.LICENSE.txt} +0 -0
  340. /package/dist/{8977.js.LICENSE.txt → 8902.js.LICENSE.txt} +0 -0
  341. /package/dist/{9333.js.LICENSE.txt → 8956.js.LICENSE.txt} +0 -0
  342. /package/dist/{9389.js.LICENSE.txt → 92.js.LICENSE.txt} +0 -0
  343. /package/dist/{9561.js.LICENSE.txt → 9558.js.LICENSE.txt} +0 -0
  344. /package/dist/{9599.js.LICENSE.txt → 9768.js.LICENSE.txt} +0 -0
  345. /package/dist/{9612.js.LICENSE.txt → 9818.js.LICENSE.txt} +0 -0
  346. /package/dist/{9890.js.LICENSE.txt → 989.js.LICENSE.txt} +0 -0
@@ -1,5 +1,6 @@
1
1
  import { Routes } from '../../shares/types';
2
2
  import { TabsBasic } from './basic';
3
+ import { TabsAlign } from './align';
3
4
  import { TabsIconsOnly } from './icons-only';
4
5
  import { TabsBehavior } from './behavior';
5
6
 
@@ -8,5 +9,6 @@ export const TABS_ROUTES: Routes = {
8
9
  basic: TabsBasic,
9
10
  'icons-only': TabsIconsOnly,
10
11
  behavior: TabsBehavior,
12
+ align: TabsAlign,
11
13
  },
12
14
  };
@@ -1,7 +1,9 @@
1
- import React from 'react';
1
+ import React, { useEffect } from 'react';
2
+ import { useSearchParams } from 'react-router-dom';
2
3
 
3
4
  import { ToasterService } from '@public-ui/components';
4
5
  import { KolButton } from '@public-ui/react';
6
+ import type { AlertType, AlertVariant } from '@public-ui/components';
5
7
 
6
8
  import { getRoot } from '../../shares/react-roots';
7
9
  import { SampleDescription } from '../SampleDescription';
@@ -9,6 +11,9 @@ import { SampleDescription } from '../SampleDescription';
9
11
  import type { FC } from 'react';
10
12
 
11
13
  export const ToastBasic: FC = () => {
14
+ const [searchParams] = useSearchParams();
15
+ const defaultType = searchParams.get('type') as AlertType;
16
+ const defaultVariant = searchParams.get('variant') as AlertVariant;
12
17
  const toaster = ToasterService.getInstance(document);
13
18
  const handleButtonClickSimple = () => {
14
19
  void toaster.enqueue({
@@ -23,10 +28,34 @@ export const ToastBasic: FC = () => {
23
28
  description: 'Toasty',
24
29
  label: `Toast with variant 'msg'`,
25
30
  type: 'warning',
26
- alertVariant: 'msg',
31
+ variant: 'msg',
27
32
  });
28
33
  };
29
34
 
35
+ useEffect(() => {
36
+ if (defaultType && defaultVariant) {
37
+ void toaster.enqueue({
38
+ description: 'Toasty',
39
+ label: `Toast with variant 'msg'`,
40
+ type: defaultType,
41
+ variant: defaultVariant,
42
+ });
43
+ } else if (defaultType) {
44
+ void toaster.enqueue({
45
+ description: 'Toasty',
46
+ label: `Initial Toast`,
47
+ type: defaultType,
48
+ });
49
+ } else if (defaultVariant) {
50
+ void toaster.enqueue({
51
+ description: 'Toasty',
52
+ label: `Initial Toast`,
53
+ type: 'default',
54
+ variant: defaultVariant,
55
+ });
56
+ }
57
+ }, [defaultType, defaultVariant]);
58
+
30
59
  const handleButtonClickComplex = () => {
31
60
  void toaster.enqueue({
32
61
  render: (element: HTMLElement, { close }) => {
@@ -3,9 +3,9 @@ import { ToasterService } from '@public-ui/components';
3
3
  export function useToasterService() {
4
4
  const toaster = ToasterService.getInstance(document);
5
5
 
6
- const message = () => {
6
+ const message = (message?: string) => {
7
7
  void toaster.enqueue({
8
- description: 'Hello',
8
+ description: message || 'Hello',
9
9
  label: `Hello`,
10
10
  type: 'info',
11
11
  });
@@ -15,7 +15,13 @@ export function useToasterService() {
15
15
  message();
16
16
  };
17
17
 
18
+ const buttonWithTextClickEventHandler = (e: Event) => {
19
+ const text = (e.currentTarget as { textContent?: string }).textContent;
20
+ message(text);
21
+ };
22
+
18
23
  return {
19
24
  dummyClickEventHandler,
25
+ buttonWithTextClickEventHandler,
20
26
  };
21
27
  }
@@ -0,0 +1,256 @@
1
+ /* eslint-disable jsx-a11y/tabindex-no-positive */
2
+
3
+ import { SampleDescription } from '../components/SampleDescription';
4
+ import {
5
+ KolButton,
6
+ KolButtonLink,
7
+ KolCard,
8
+ KolCombobox,
9
+ KolInputCheckbox,
10
+ KolInputDate,
11
+ KolInputEmail,
12
+ KolInputFile,
13
+ KolInputColor,
14
+ KolInputNumber,
15
+ KolInputPassword,
16
+ KolInputRadio,
17
+ KolInputRange,
18
+ KolInputText,
19
+ KolLinkButton,
20
+ KolLink,
21
+ KolSingleSelect,
22
+ KolSplitButton,
23
+ KolTextarea,
24
+ } from '@public-ui/react';
25
+ import React from 'react';
26
+ import type { FC } from 'react';
27
+ import { ERROR_MSG, HINT_MSG } from '../shares/constants';
28
+ import { COUNTRY_OPTIONS, COUNTRY_SUGGESTIONS } from '../shares/country';
29
+ import type { Option, StencilUnknown } from '@public-ui/components';
30
+
31
+ export const ChangeTabindex: FC = () => {
32
+ return (
33
+ <>
34
+ <SampleDescription>
35
+ <p>This example show how different components works with tabIndex.</p>
36
+ </SampleDescription>
37
+
38
+ <div className="w-full grid gap-4">
39
+ <KolCard _label="Button" _level={0}>
40
+ <div className="flex flex-wrap gap-4">
41
+ <KolButton _label="Button 1, Tabindex 4" _variant="primary" tabIndex={4} />
42
+ <KolButton _disabled _label="Button 2, Tabindex 3" _variant="primary" tabIndex={3} />
43
+ <KolButton _label="Button 3, Tabindex 2" _variant="primary" tabIndex={2} />
44
+ <KolButton _label="Button 4, Tabindex 1" _variant="primary" tabIndex={1} />
45
+ </div>
46
+ </KolCard>
47
+
48
+ <KolCard _label="ButtonLink" _level={0}>
49
+ <div className="flex flex-wrap gap-4">
50
+ <KolButtonLink _label="ButtonLink 1, Tabindex 4" tabIndex={4} />
51
+ <KolButtonLink _disabled _label="ButtonLink 2, Tabindex 3" tabIndex={3} />
52
+ <KolButtonLink _label="ButtonLink 3, Tabindex 2" tabIndex={2} />
53
+ <KolButtonLink _label="ButtonLink 4, Tabindex 1" tabIndex={1} />
54
+ </div>
55
+ </KolCard>
56
+
57
+ <KolCard _label="Combobox" _level={0}>
58
+ <div className="flex flex-wrap gap-4">
59
+ <KolCombobox _hint={HINT_MSG} _label="Combobox 1, Tabindex 4" _suggestions={COUNTRY_SUGGESTIONS} _value={'Deutschland'} tabIndex={4} />
60
+ <KolCombobox _disabled _hint={HINT_MSG} _label="Combobox 2, Tabindex 3" _suggestions={COUNTRY_SUGGESTIONS} _value={'Deutschland'} tabIndex={3} />
61
+ <KolCombobox
62
+ _touched
63
+ _hint={HINT_MSG}
64
+ _msg={{ _type: 'error', _description: ERROR_MSG }}
65
+ _label="Combobox 3, Tabindex 2"
66
+ _suggestions={COUNTRY_SUGGESTIONS}
67
+ _value={'Deutschland'}
68
+ tabIndex={2}
69
+ />
70
+ <KolCombobox _hint={HINT_MSG} _label="Combobox 4, Tabindex 1" _suggestions={COUNTRY_SUGGESTIONS} _value={'Deutschland'} tabIndex={1} />
71
+ </div>
72
+ </KolCard>
73
+
74
+ <KolCard _label="InputCheckbox" _level={0}>
75
+ <div className="flex flex-wrap gap-4">
76
+ <KolInputCheckbox _label="InputCheckbox 4, Tabindex 1" _value={false} tabIndex={4} />
77
+ <KolInputCheckbox _disabled _label="InputCheckbox 3, Tabindex 2" _value={false} tabIndex={3} />
78
+ <KolInputCheckbox _touched _label="InputCheckbox 2, Tabindex 3" _msg={{ _type: 'error', _description: ERROR_MSG }} _value={false} tabIndex={2} />
79
+ <KolInputCheckbox _label="InputCheckbox 1, Tabindex 4" _value={false} tabIndex={1} />
80
+ </div>
81
+ </KolCard>
82
+
83
+ <KolCard _label="InputColor" _level={0}>
84
+ <div className="flex flex-wrap gap-4">
85
+ <KolInputColor _value="#f08080" _label="InputCheckbox 1, Tabindex 4" tabIndex={4} />
86
+ <KolInputColor _disabled _value="#f08080" _label="InputCheckbox 2, Tabindex 3" tabIndex={3} />
87
+ <KolInputColor _touched _value="#f08080" _label="InputCheckbox 3, Tabindex 2" _msg={{ _type: 'error', _description: ERROR_MSG }} tabIndex={2} />
88
+ <KolInputColor _value="#f08080" _label="InputCheckbox 4, Tabindex 1" tabIndex={1} />
89
+ </div>
90
+ </KolCard>
91
+
92
+ <KolCard _label="InputDate" _level={0}>
93
+ <div className="flex flex-wrap gap-4">
94
+ <KolInputDate _type="datetime-local" _label="InputCheckbox 1, Tabindex 4" tabIndex={4} />
95
+ <KolInputDate _disabled _type="datetime-local" _label="InputCheckbox 2, Tabindex 3" tabIndex={3} />
96
+ <KolInputDate
97
+ _touched
98
+ _type="datetime-local"
99
+ _label="InputCheckbox 3, Tabindex 2"
100
+ _msg={{ _type: 'error', _description: ERROR_MSG }}
101
+ tabIndex={2}
102
+ />
103
+ <KolInputDate _type="datetime-local" _label="InputCheckbox 4, Tabindex 1" tabIndex={1} />
104
+ </div>
105
+ </KolCard>
106
+
107
+ <KolCard _label="InputEmail" _level={0}>
108
+ <div className="flex flex-wrap gap-4">
109
+ <KolInputEmail _label="InputEmail 1, Tabindex 4" tabIndex={4} />
110
+ <KolInputEmail _disabled _label="InputEmail 2, Tabindex 3" tabIndex={3} />
111
+ <KolInputEmail _touched _label="InputEmail 3, Tabindex 2" _msg={{ _type: 'error', _description: ERROR_MSG }} tabIndex={2} />
112
+ <KolInputEmail _label="InputEmail 4, Tabindex 1" tabIndex={1} />
113
+ </div>
114
+ </KolCard>
115
+
116
+ <KolCard _label="InputFile" _level={0}>
117
+ <div className="flex flex-wrap gap-4">
118
+ <KolInputFile _label="InputFile 1, Tabindex 4" tabIndex={4} />
119
+ <KolInputFile _disabled _label="InputFile 2, Tabindex 3" tabIndex={3} />
120
+ <KolInputFile _touched _label="InputFile 3, Tabindex 2" _msg={{ _type: 'error', _description: ERROR_MSG }} tabIndex={2} />
121
+ <KolInputFile _label="InputFile 4, Tabindex 1" tabIndex={1} />
122
+ </div>
123
+ </KolCard>
124
+
125
+ <KolCard _label="InputNumber" _level={0}>
126
+ <div className="flex flex-wrap gap-4">
127
+ <KolInputNumber _label="InputNumber 1, Tabindex 4" tabIndex={4} />
128
+ <KolInputNumber _disabled _label="InputNumber 2, Tabindex 3" tabIndex={3} />
129
+ <KolInputNumber _touched _label="InputNumber 3, Tabindex 2" _msg={{ _type: 'error', _description: ERROR_MSG }} tabIndex={2} />
130
+ <KolInputNumber _label="InputNumber 4, Tabindex 1" tabIndex={1} />
131
+ </div>
132
+ </KolCard>
133
+
134
+ <KolCard _label="InputPassword" _level={0}>
135
+ <div className="flex flex-wrap gap-4">
136
+ <KolInputPassword _label="InputPassword 1, Tabindex 4" tabIndex={4} />
137
+ <KolInputPassword _disabled _label="InputPassword 2, Tabindex 3" tabIndex={3} />
138
+ <KolInputPassword _touched _label="InputPassword 3, Tabindex 2" _msg={{ _type: 'error', _description: ERROR_MSG }} tabIndex={2} />
139
+ <KolInputPassword _label="InputPassword 4, Tabindex 1" tabIndex={1} />
140
+ </div>
141
+ </KolCard>
142
+
143
+ <KolCard _label="InputRadio" _level={0}>
144
+ <div className="flex flex-wrap gap-4">
145
+ <KolInputRadio
146
+ _options="[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)','value':'Mr.'},{'label':'Company','value':'Company'}]"
147
+ _label="InputRadio 1, Tabindex 4"
148
+ tabIndex={4}
149
+ />
150
+ <KolInputRadio
151
+ _options="[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)','value':'Mr.'},{'label':'Company','value':'Company'}]"
152
+ _label="InputRadio 2, Tabindex 3"
153
+ _disabled
154
+ tabIndex={3}
155
+ />
156
+ <KolInputRadio
157
+ _touched
158
+ _options="[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)','value':'Mr.'},{'label':'Company','value':'Company'}]"
159
+ _label="InputRadio 3, Tabindex 2"
160
+ _msg={{ _type: 'error', _description: ERROR_MSG }}
161
+ tabIndex={2}
162
+ />{' '}
163
+ <KolInputRadio
164
+ _options="[{'label':'Mrs.','value':'Mrs.'},{'disabled':true,'label':'Mr. (disabled)','value':'Mr.'},{'label':'Company','value':'Company'}]"
165
+ _label="InputRadio 4, Tabindex 1"
166
+ tabIndex={1}
167
+ />
168
+ </div>
169
+ </KolCard>
170
+
171
+ <KolCard _label="InputRange" _level={0}>
172
+ <div className="flex flex-wrap gap-4">
173
+ <KolInputRange _label="InputRange 1, Tabindex 4" _min={0} _max={50} tabIndex={4} />
174
+ <KolInputRange _disabled _label="InputRange 2, Tabindex 3" _min={0} _max={50} tabIndex={3} />
175
+ <KolInputRange _touched _label="InputRange 3, Tabindex 2" _min={0} _max={50} _msg={{ _type: 'error', _description: ERROR_MSG }} tabIndex={2} />
176
+ <KolInputRange _label="InputRange 4, Tabindex 1" _min={0} _max={50} tabIndex={1} />
177
+ </div>
178
+ </KolCard>
179
+
180
+ <KolCard _label="InputText" _level={0}>
181
+ <div className="flex flex-wrap gap-4">
182
+ <KolInputText _label="InputText 1, Tabindex 4" tabIndex={4} />
183
+ <KolInputText _disabled _label="InputText 2, Tabindex 3" tabIndex={3} />
184
+ <KolInputText _touched _label="InputText 3, Tabindex 2" _msg={{ _type: 'error', _description: ERROR_MSG }} tabIndex={2} />
185
+ <KolInputText _label="InputText 4, Tabindex 1" tabIndex={1} />
186
+ </div>
187
+ </KolCard>
188
+
189
+ <KolCard _label="LinkButton" _level={0}>
190
+ <div className="flex flex-wrap gap-4">
191
+ <KolLinkButton _href={'#/back-page'} _label="InputText 1, Tabindex 4" _variant="primary" tabIndex={4}></KolLinkButton>
192
+ <KolLinkButton _disabled _href={'#/back-page'} _label="InputText 2, Tabindex 3" _variant="primary" tabIndex={3}></KolLinkButton>
193
+ <KolLinkButton _href={'#/back-page'} _label="InputText 3, Tabindex 2" _variant="primary" tabIndex={2}></KolLinkButton>
194
+ <KolLinkButton _href={'#/back-page'} _label="InputText 4, Tabindex 1" _variant="primary" tabIndex={1}></KolLinkButton>
195
+ </div>
196
+ </KolCard>
197
+
198
+ <KolCard _label="Link" _level={0}>
199
+ <KolLink _href="#/back-page" _label="InputText 1, Tabindex 4" tabIndex={4} />
200
+ <KolLink _disabled _href="#/back-page" _label="InputText 2, Tabindex 3" tabIndex={3} />
201
+ <KolLink _href="#/back-page" _label="InputText 3, Tabindex 2" tabIndex={2} />
202
+ <KolLink _href="#/back-page" _label="InputText 4, Tabindex 1" tabIndex={1} />
203
+ </KolCard>
204
+
205
+ <KolCard _label="SingleSelect" _level={0}>
206
+ <div className="flex flex-wrap gap-4">
207
+ <KolSingleSelect _label="InputText 1, Tabindex 4" _options={COUNTRY_OPTIONS as Option<StencilUnknown>[]} _value={'de'} tabIndex={4} />
208
+ <KolSingleSelect _disabled _label="InputText 2, Tabindex 3" _options={COUNTRY_OPTIONS as Option<StencilUnknown>[]} _value={'de'} tabIndex={3} />
209
+ <KolSingleSelect
210
+ _touched
211
+ _label="InputText 3, Tabindex 2"
212
+ _options={COUNTRY_OPTIONS as Option<StencilUnknown>[]}
213
+ _msg={{ _type: 'error', _description: ERROR_MSG }}
214
+ _value={'de'}
215
+ tabIndex={2}
216
+ />
217
+ <KolSingleSelect _label="InputText 4, Tabindex 1" _options={COUNTRY_OPTIONS as Option<StencilUnknown>[]} _value={'de'} tabIndex={1} />
218
+ </div>
219
+ </KolCard>
220
+
221
+ <KolCard _label="SplitButton" _level={0}>
222
+ <div className="flex flex-wrap gap-4">
223
+ <KolSplitButton _label="InputText 1, Tabindex 4" tabIndex={4}>
224
+ Dropdown-Inhalt
225
+ </KolSplitButton>
226
+ <KolSplitButton _label="InputText 2, Tabindex 3" tabIndex={3} _disabled>
227
+ Dropdown-Inhalt
228
+ </KolSplitButton>
229
+ <KolSplitButton _label="InputText 3, Tabindex 2" tabIndex={2}>
230
+ Dropdown-Inhalt
231
+ </KolSplitButton>{' '}
232
+ <KolSplitButton _label="InputText 4, Tabindex 1" tabIndex={1}>
233
+ Dropdown-Inhalt
234
+ </KolSplitButton>
235
+ </div>
236
+ </KolCard>
237
+
238
+ <KolCard _label="Textarea" _level={0}>
239
+ <div className="flex flex-wrap gap-4">
240
+ <KolTextarea _label="Textarea 1, Tabindex 4" _rows={3} _placeholder="Placeholder" tabIndex={4} />
241
+ <KolTextarea _disabled _label="Textarea 2, Tabindex 3" _rows={3} _placeholder="Placeholder" tabIndex={3} />
242
+ <KolTextarea
243
+ _touched
244
+ _label="Textarea 3, Tabindex 2"
245
+ _rows={3}
246
+ _placeholder="Placeholder"
247
+ _msg={{ _type: 'error', _description: ERROR_MSG }}
248
+ tabIndex={2}
249
+ />
250
+ <KolTextarea _label="Textarea 4, Tabindex 1" _rows={3} _placeholder="Placeholder" tabIndex={1} />
251
+ </div>
252
+ </KolCard>
253
+ </div>
254
+ </>
255
+ );
256
+ };
@@ -94,16 +94,24 @@ const getFocusElements = () => {
94
94
  ));
95
95
  focusElements.set('textarea', (_, ref) => <KolTextarea className="w-full" _name="textarea" _label="Textarea" _rows={5} ref={ref} />);
96
96
  focusElements.set('accordion', (_, ref) => <KolAccordion className="w-full" _label="Accordion here" ref={ref} />);
97
- focusElements.set('button', (_, ref) => <KolButton _label="Button here" ref={ref}></KolButton>);
98
- focusElements.set('buttonLink', (_, ref) => <KolButtonLink _label="ButtonLink here" ref={ref}></KolButtonLink>);
99
- focusElements.set('combobox', (_, ref) => <KolCombobox className="w-full" _label="KolCombobox here" _suggestions={[]} ref={ref}></KolCombobox>);
97
+ focusElements.set('button', (_, ref) => (
98
+ <div>
99
+ <KolButton _label="Button here" ref={ref} />
100
+ </div>
101
+ ));
102
+ focusElements.set('buttonLink', (_, ref) => <KolButtonLink _label="ButtonLink here" ref={ref} />);
103
+ focusElements.set('combobox', (_, ref) => <KolCombobox className="w-full" _label="KolCombobox here" _suggestions={[]} ref={ref} />);
100
104
  focusElements.set('details', (_, ref) => (
101
105
  <KolDetails className="w-full" _label="Details here" ref={ref}>
102
106
  detailed details
103
107
  </KolDetails>
104
108
  ));
105
- focusElements.set('link', (_, ref) => <KolLink className="w-full" _label="Link here" _href="#" ref={ref}></KolLink>);
106
- focusElements.set('linkButton', (_, ref) => <KolLinkButton _label="LinkButton here" _href="#" ref={ref}></KolLinkButton>);
109
+ focusElements.set('link', (_, ref) => <KolLink className="w-full" _label="Link here" _href="#" ref={ref} />);
110
+ focusElements.set('linkButton', (_, ref) => (
111
+ <div>
112
+ <KolLinkButton _label="LinkButton here" _href="#" ref={ref} />
113
+ </div>
114
+ ));
107
115
 
108
116
  return focusElements;
109
117
  };
@@ -134,7 +142,7 @@ const Fallback = (props: FallbackProps) => {
134
142
  <ul>
135
143
  {componentNames.map((componentName) => (
136
144
  <li key={componentName}>
137
- <KolLink _label={componentName} _href={`#/scenarios/focus-elements?component=${componentName}`}></KolLink>
145
+ <KolLink _label={componentName} _href={`#/scenarios/focus-elements?component=${componentName}`} />
138
146
  </li>
139
147
  ))}
140
148
  </ul>
@@ -60,17 +60,21 @@ function TableHorizontalScrollbarAdvanced() {
60
60
  <KolNav _label="Main navigation" _links={LINKS} _hasCompactButton _hasIconsWhenExpanded />
61
61
  </aside>
62
62
  <div className="content">
63
- <KolTabs _tabs={TABS} _label="Demo Tabs"></KolTabs>
64
- <div style={{ overflow: 'hidden' }}>
65
- <KolTable
66
- _label="Table for demonstration purposes with horizontal scrollbar"
67
- _minWidth={tableWith}
68
- _headers={HEADERS}
69
- _data={DATA}
70
- _pagination={{ _page: 1 }}
71
- className="block"
72
- />
73
- </div>
63
+ <KolTabs _tabs={TABS} _align="top" _label="Demo Tabs">
64
+ <div style={{ overflow: 'hidden' }}>
65
+ <KolTable
66
+ _label="Table for demonstration purposes with horizontal scrollbar"
67
+ _minWidth={tableWith}
68
+ _headers={HEADERS}
69
+ _data={DATA}
70
+ _pagination={{ _page: 1 }}
71
+ className="block"
72
+ />
73
+ </div>
74
+ <div></div>
75
+ <div></div>
76
+ <div></div>
77
+ </KolTabs>
74
78
  </div>
75
79
  </div>
76
80
  </>
@@ -1,7 +1,8 @@
1
1
  import React from 'react';
2
2
  import type { FC } from 'react';
3
- import { KolAlert, KolInputCheckbox, KolInputText } from '@public-ui/react';
3
+ import { KolAlert, KolInputCheckbox, KolInputText, KolSelect } from '@public-ui/react';
4
4
  import { SampleDescription } from '../components/SampleDescription';
5
+ import type { SelectOption } from '@public-ui/components';
5
6
 
6
7
  export const InputGroupWithError: FC = () => {
7
8
  const phoneError = true;
@@ -10,6 +11,25 @@ export const InputGroupWithError: FC = () => {
10
11
  const pizzaErrorMessage = 'Choose at least two and up to five toppings.';
11
12
  const pizzaToppings = ['Mushrooms', 'Bell Peppers', 'Onions', 'Olives', 'Spinach', 'Tomatoes', 'Artichokes', 'Zucchini', 'Jalapeños', 'Basil'];
12
13
 
14
+ const countryCodes: SelectOption<string>[] = [
15
+ {
16
+ label: 'United States +1',
17
+ value: '1',
18
+ },
19
+ {
20
+ label: 'Greece +30 ',
21
+ value: '30',
22
+ },
23
+ {
24
+ label: 'Germany +49',
25
+ value: '49',
26
+ },
27
+ {
28
+ label: 'Japan +81',
29
+ value: '81',
30
+ },
31
+ ];
32
+
13
33
  return (
14
34
  <>
15
35
  <SampleDescription>
@@ -22,7 +42,7 @@ export const InputGroupWithError: FC = () => {
22
42
  {phoneError && <KolAlert _alert _type="error" _label={phoneErrorMessage} />}
23
43
 
24
44
  <div className="grid grid-cols-3 gap-4 max-w-2xl">
25
- <KolInputText _label="Country code" _msg={{ _description: phoneErrorMessage, _type: 'error' }} _touched _hideError />
45
+ <KolSelect _options={countryCodes} _label="CountryCode " _msg={{ _description: phoneErrorMessage, _type: 'error' }} _touched _hideError />
26
46
  <KolInputText _label="Area code" _msg={{ _description: phoneErrorMessage, _type: 'error' }} _touched _hideError />
27
47
  <KolInputText _label="Local number" _msg={{ _description: phoneErrorMessage, _type: 'error' }} _touched _hideError />
28
48
  </div>
@@ -70,18 +70,20 @@ const Scenario = (props: Props) => {
70
70
  );
71
71
 
72
72
  return (
73
- <div className="grid grid-cols-3 items-end gap-4" data-testid={props.testId}>
74
- <props.InputComponent ref={ref} _on={eventListeners} {...props.inputProps} />
75
- <KolButton
76
- _label="getValue()"
77
- _on={{
78
- onClick: () => {
79
- void handleButtonClick();
80
- },
81
- }}
82
- ></KolButton>
83
- <pre className="text-base">{formatter(value)}</pre>
84
- </div>
73
+ <>
74
+ <div className="grid grid-cols-3 items-end gap-4" data-testid={props.testId}>
75
+ <props.InputComponent ref={ref} _on={eventListeners} {...props.inputProps} />
76
+ <KolButton
77
+ _label="getValue()"
78
+ _on={{
79
+ onClick: () => {
80
+ void handleButtonClick();
81
+ },
82
+ }}
83
+ ></KolButton>
84
+ <pre className="text-base">{formatter(value)}</pre>
85
+ </div>
86
+ </>
85
87
  );
86
88
  };
87
89
 
@@ -7,6 +7,7 @@ import { StaticForm } from './static-form';
7
7
  import { FocusElements } from './focus-elements';
8
8
  import { TableHorizontalScrollAdvanced } from './horizontal-scrollbar-advanced';
9
9
  import { InputGroupWithError } from './input-group-with-error';
10
+ import { ChangeTabindex } from './change-tabindex';
10
11
 
11
12
  export const SCENARIO_ROUTES: Routes = {
12
13
  scenarios: {
@@ -18,5 +19,6 @@ export const SCENARIO_ROUTES: Routes = {
18
19
  'inputs-get-value': InputsGetValue,
19
20
  'static-form': StaticForm,
20
21
  'table-horizontal-scrollbar-advanced': TableHorizontalScrollAdvanced,
22
+ 'change-tabindex': ChangeTabindex,
21
23
  },
22
24
  };
package/src/style.scss CHANGED
@@ -21,16 +21,32 @@ hr {
21
21
  grid-template-columns: auto auto;
22
22
  }
23
23
 
24
+ .indented-text {
25
+ p {
26
+ font-family: var(--font-family);
27
+ border-left: rem(-2) solid var(--color-primary-variant);
28
+ padding: 0 calc(8rem / var(--kolibri-root-font-size, 16));
29
+ margin-left: rem(-2);
30
+ }
31
+ }
32
+
33
+ .black-background {
34
+ background-color: black;
35
+ display: flex;
36
+ flex-direction: column;
37
+ padding: rem(8);
38
+ }
39
+
24
40
  @media (min-width: 1024px) {
25
41
  .app-container {
26
42
  display: grid;
27
- grid-template-columns: 360px calc(100% - 360px);
43
+ grid-template-columns: rem(360) calc(100% - rem(360));
28
44
  min-height: 100vh;
29
45
  height: 100%;
30
46
  }
31
47
 
32
48
  .app-sidebar {
33
- border-right: 1px solid gray;
49
+ border-right: rem(1) solid gray;
34
50
  position: relative;
35
51
 
36
52
  & .scrollable-container-wrapper {
@@ -38,7 +54,7 @@ hr {
38
54
  top: 0;
39
55
  bottom: 0;
40
56
  left: 0;
41
- width: 330px;
57
+ width: rem(330);
42
58
  margin: rem(16);
43
59
  flex-direction: column;
44
60
  display: flex;
@@ -47,7 +63,7 @@ hr {
47
63
  flex: 1 auto;
48
64
  overflow: auto;
49
65
  }
50
- }
66
+ }
51
67
  }
52
68
  }
53
69
 
@@ -57,4 +73,4 @@ hr {
57
73
  .no-print * {
58
74
  display: none !important;
59
75
  }
60
- }
76
+ }
package/dist/1487.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 1487.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_public_ui_sample_react=self.webpackChunk_public_ui_sample_react||[]).push([[1487],{3260:(t,n,e)=>{e.d(n,{S:()=>s,a:()=>o,b:()=>i,i:()=>a});const i=t=>"object"==typeof t&&null!==t,a=(t,n=0)=>"string"==typeof t&&t.length>=n,o=t=>{if("object"!=typeof t||null===t)return a(t,1);for(const n in t)if(!1===a(n,1))return!1;return!0},s=new Event("StateChange")},6855:(t,n,e)=>{function i(t){t.stopImmediatePropagation(),t.stopPropagation()}function a(t,n,e){n&&function(t,n,e){const i=t.dispatchEvent(function(t,n){return new CustomEvent(`kol-${t}`,{bubbles:!0,cancelable:!0,composed:!0,detail:n})}(n,e))}(n,t,e)}function o(t){t.preventDefault(),i(t)}e.d(n,{p:()=>o,s:()=>i,t:()=>a})},1036:(t,n,e)=>{e.d(n,{E:()=>d,a:()=>r,b:()=>h,c:()=>s,d:()=>o,v:()=>l});var i=e(7440),a=e(3260);const o=(t,n)=>{(0,i.w)(t,"_on",(t=>"object"==typeof t&&null!==t),new Set(["TableCallbacksPropType {Events.onSort, Events.onSelectionChange}"]),n)},s=(t,n)=>{(0,i.w)(t,"_on",(t=>"object"==typeof t&&null!==t),new Set(["TableStatefulCallbacksPropType {Events.onSelectionChange}"]),n)},l=(t,n,e)=>{(0,i.t)(n,(()=>{(0,i.o)(n,(()=>{void 0===n&&(n=[]);try{n=(0,i.p)(n)}catch(t){}Array.isArray(n)&&n.every((t=>"object"==typeof t&&null!==t))&&(0,i.s)(t,"_data",n,e)}))}))},r=(t,n,e)=>{(0,i.t)(n,(()=>{(0,i.o)(n,(()=>{void 0===n&&(n=[]);try{n=(0,i.p)(n)}catch(t){}Array.isArray(n)&&n.every((t=>"object"==typeof t&&null!==t))&&(0,i.s)(t,"_dataFoot",n,e)}))}))},h=(t,n)=>{var e;(e="string"==typeof n?(()=>{try{return(0,i.p)(n)}catch(t){return}})():n)&&(0,a.b)(e)&&"function"==typeof e.label&&(!e.selectedKeys||Array.isArray(e.selectedKeys))&&(0,i.s)(t,"_selection",n)};var d,c;(c=d||(d={})).onBlur="onBlur",c.onChange="onChange",c.onClick="onClick",c.onDblClick="onDblClick",c.onFocus="onFocus",c.onInput="onInput",c.onKeyDown="onKeyDown",c.onKeyPress="onKeyPress",c.onKeyUp="onKeyUp",c.onMouseDown="onMouseDown",c.onMouseMove="onMouseMove",c.onMouseOut="onMouseOut",c.onMouseOver="onMouseOver",c.onMouseUp="onMouseUp",c.onReset="onReset",c.onSelect="onSelect",c.onSort="onSort",c.onSelectionChange="onSelectionChange",c.onSubmit="onSubmit",c.onClose="onClose"},6588:(t,n,e)=>{e.d(n,{t:()=>o});var i=e(8457),a=e(4997);let o=(t,n)=>{var e;return(null!==(e=(0,i.g)())&&void 0!==e?e:(0,i.i)("de")).translate(t,n)};"test"===a.p&&(o=t=>t)},1487:(t,n,e)=>{e.r(n),e.d(n,{kol_table_stateful:()=>p});var i=e(777),a=e(6588),o=e(8579),s=e(6855),l=e(1036),r=e(7440),h=e(5815);const d=["top","bottom","both"],c=[10,20,50,100],u=t=>!0===t||""===t||"object"==typeof t&&null!==t,p=class{constructor(t){(0,i.r)(this,t),this.catchRef=t=>{this.tableWcRef=t},this.sortDirections=new Map,this.sortData=[],this.showPagination=!1,this.pageStartSlice=0,this.pageEndSlice=10,this.disableSort=!1,this.sortedColumnHead={label:"",key:"",sortDirection:"NOS"},this.setSortDirection=(t,n)=>{this.sortDirections.clear(),this.sortDirections.set(t,n),this.sortFunction=t},this.handlePagination={onClick:(t,n)=>{var e;"function"==typeof(null===(e=this.state._pagination._on)||void 0===e?void 0:e.onClick)&&this.state._pagination._on.onClick(t,n),(0,r.s)(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_page:n}))},onChangePage:(t,n)=>{var e;"function"==typeof(null===(e=this.state._pagination._on)||void 0===e?void 0:e.onChangePage)&&this.state._pagination._on.onChangePage(t,n),(0,r.s)(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_page:n}))},onChangePageSize:(t,n)=>{var e;"function"==typeof(null===(e=this.state._pagination._on)||void 0===e?void 0:e.onChangePageSize)&&this.state._pagination._on.onChangePageSize(t,n),(0,r.s)(this,"_pagination",Object.assign(Object.assign({},this.state._pagination),{_pageSize:n})),(0,r.s)(this,"_pageSize",n)}},this.onSelectionChange=t=>{t.stopPropagation()},this.updateSortedData=(t=this.sortedColumnHead)=>{if(this.disableSort)return void(0,r.s)(this,"_sortedData",this.state._data);let n=this.state._data;if(this.sortData.length>0)n=this.state._data.sort(((t,n)=>{for(let e=0;e<this.sortData.length;e++){const i=this.sortData[e],a=i.compareFn(t,n);if(0!==a)return"ASC"===i.direction?a:-a}return 0}));else if("function"==typeof this.sortFunction)switch(this.sortDirections.get(this.sortFunction)){case"ASC":n=this.sortFunction([...this.state._data]),this.sortedColumnHead={label:t.label,key:t.key,sortDirection:"ASC"};break;case"DESC":n=this.sortFunction([...this.state._data]).reverse(),this.sortedColumnHead={label:t.label,key:t.key,sortDirection:"DESC"};break;default:n=[...this.state._data],this.sortedColumnHead={label:"",key:"",sortDirection:"NOS"}}(0,r.s)(this,"_sortedData",n)},this._allowMultiSort=void 0,this._data=void 0,this._dataFoot=void 0,this._headers=void 0,this._label=void 0,this._minWidth=void 0,this._pagination=void 0,this._paginationPosition="bottom",this._selection=void 0,this._on=void 0,this.state={_allowMultiSort:!1,_data:[],_dataFoot:[],_headers:{horizontal:[],vertical:[]},_label:"",_pagination:{_page:1,_pageSize:10,_max:0},_sortedData:[],_paginationPosition:"bottom"}}validateAllowMultiSort(t){(0,r.w)(this,"_allowMultiSort",(()=>!0),new Set(["boolean"]),t,{defaultValue:!1})}validateData(t){(0,l.v)(this,t,{afterPatch:()=>{setTimeout(this.updateSortedData)}})}validateDataFoot(t){(0,l.a)(this,t,{afterPatch:()=>{setTimeout(this.updateSortedData)}})}validatePaginationPosition(t){((t,n)=>{(0,r.w)(t,"_paginationPosition",(t=>"string"==typeof t&&d.includes(t)),new Set([`PaginationPositionPropType {${d.join(", ")}`]),n,{defaultValue:"bottom"})})(this,t)}changeCellSort(t){var n;if("function"==typeof t.compareFn){this.state._allowMultiSort||t.key==(null===(n=this.sortData[0])||void 0===n?void 0:n.key)||(this.sortData=[]);const e=this.sortData.findIndex((n=>n.key===t.key));if(e>=0){const t=this.sortData[e];switch(t.direction){case"ASC":t.direction="DESC";break;case"DESC":this.sortData.splice(e,1);break;default:t.direction="ASC"}}else t.key&&this.sortData.push({label:t.label,key:t.key,compareFn:t.compareFn,direction:"ASC"});this.updateSortedData(t)}else if("function"==typeof t.sort){switch(this.sortFunction=t.sort,this.sortDirections.get(this.sortFunction)){case"ASC":this.setSortDirection(this.sortFunction,"DESC");break;case"DESC":this.setSortDirection(this.sortFunction,"NOS");break;default:this.setSortDirection(this.sortFunction,"ASC")}this.updateSortedData(t)}}validateHeaders(t){(0,r.t)(t,(()=>{(0,r.o)(t,(()=>{try{t=(0,r.p)(t)}catch(t){}(0,r.w)(this,"_headers",(t=>"object"==typeof t&&null!==t),new Set(["KoliBriTableHeaders"]),t,{hooks:{beforePatch:t=>{var n,e,i,a;const o=t=>{let n=!1;t.forEach((t=>{const e=t.key;if(!e)return;const i=t.sortDirection;"ASC"!==i&&"DESC"!==i||("function"==typeof t.compareFn?((this.state._allowMultiSort||0===this.sortData.length)&&this.sortData.push({label:t.label,key:e,compareFn:t.compareFn,direction:i}),n=!0):"function"==typeof t.sort&&(this.setSortDirection(t.sort,i),setTimeout((()=>this.updateSortedData({key:e,label:t.label,sortDirection:i})))))})),n&&setTimeout((()=>this.updateSortedData()))},s=t;null===(n=s.horizontal)||void 0===n||n.forEach(o),null===(e=s.vertical)||void 0===e||e.forEach(o),s.horizontal&&s.vertical&&(null===(i=s.horizontal)||void 0===i?void 0:i.length)>0&&(null===(a=s.vertical)||void 0===a?void 0:a.length)>0&&(this.disableSort=!0,(0,r.j)("Table: You can not sort the table data, if horizontal and vertical headers are defined at the same time. (https://github.com/public-ui/kolibri/issues/2372)"))}}})}))}))}validateLabel(t){(0,h.v)(this,t,{required:!0})}validateMinWidth(t){(0,r.i)(this,"_minWidth",t,{defaultValue:void 0})}validateSelection(t){(0,l.b)(this,t)}validateOn(t){(0,l.c)(this,t)}validatePagination(t){try{t=(0,r.p)(t)}catch(t){}this.showPagination=u(t),(0,r.w)(this,"_pagination",u,new Set(["boolean","KoliBriTablePagination"]),t,{defaultValue:{_page:1,_pageSize:10,_max:0}})}componentDidLoad(){var t;null===(t=this.tableWcRef)||void 0===t||t.addEventListener("kol-selection-change",this.onSelectionChange)}disconnectedCallback(){var t;null===(t=this.tableWcRef)||void 0===t||t.removeEventListener("kol-selection-change",this.onSelectionChange)}componentWillLoad(){this.validateAllowMultiSort(this._allowMultiSort),this.validateData(this._data),this.validateDataFoot(this._dataFoot),this.validateHeaders(this._headers),this.validateLabel(this._label),this.validateMinWidth(this._minWidth),this.validatePagination(this._pagination),this.validatePaginationPosition(this._paginationPosition),this.validateSelection(this._selection),this.validateOn(this._on)}selectDisplayedData(t,n,e){return"number"==typeof n&&n>0&&"number"==typeof e&&e>0?(this.pageStartSlice=n*(e-1),this.pageEndSlice=n*e>t.length?t.length:n*e,t.slice(this.pageStartSlice,this.pageEndSlice)):(this.pageStartSlice=0,this.pageEndSlice=t.length,t)}renderPagination(){return(0,i.h)("div",{class:"pagination"},(0,i.h)("span",null,(0,a.t)("kol-table-visible-range",{placeholders:{start:this.pageEndSlice>0?(this.pageStartSlice+1).toString():"0",end:this.pageEndSlice.toString(),total:this.state._pagination&&this.state._pagination._max>0?this.state._pagination._max.toString():Array.isArray(this.state._data)?this.state._data.length.toString():"0"}})),(0,i.h)("div",null,(0,i.h)(o.u,{_boundaryCount:this.state._pagination._boundaryCount,_customClass:this.state._pagination._customClass,_on:this.handlePagination,_page:this.state._pagination._page,_pageSize:this.state._pagination._pageSize,_pageSizeOptions:this.state._pagination._pageSizeOptions||c,_siblingCount:this.state._pagination._siblingCount,_tooltipAlign:"bottom",_max:this.state._pagination._max||this.state._pagination._max||this.state._data.length,_label:(0,a.t)("kol-table-pagination-label",{placeholders:{label:this.state._label}})})))}getHeaderCellSortState(t){if(!this.disableSort&&("function"==typeof t.compareFn||"function"==typeof t.sort)){if(t.key===this.sortedColumnHead.key)return this.sortedColumnHead.sortDirection;if(t.key){const n=this.sortData.find((n=>n.key===t.key));if(null==n?void 0:n.direction)return n.direction}return"NOS"}}handleSort({key:t}){const n=[...(this.state._headers.horizontal||[]).flat(),...(this.state._headers.vertical||[]).flat()].find((n=>n.key===t));n&&this.changeCellSort(n)}getSelectedData(t){var n;const e=this.state._selection;if(e){const i=null!==(n=e.keyPropertyName)&&void 0!==n?n:"id",a=this.state._sortedData.filter((n=>t.includes(n[i])));if(!1===(null==e?void 0:e.multiple))return a[0];if(i)return a}return null}handleSelectionChange(t,n){var e;const i=this.state._selection;i&&(this.state=Object.assign(Object.assign({},this.state),{_selection:Object.assign(Object.assign({},i),{selectedKeys:"object"==typeof n?n:[n]})}));const a=this.getSelectedData(n);(0,s.t)("selection-change",this.host,a),"function"==typeof(null===(e=this.state._on)||void 0===e?void 0:e[l.E.onSelectionChange])&&this.state._on[l.E.onSelectionChange](t,a)}getSelection(){return t=this,n=function*(){var t;const n=(null===(t=this.state._selection)||void 0===t?void 0:t.selectedKeys)||[];return this.getSelectedData(n)},new Promise(((e,i)=>{var a=t=>{try{s(n.next(t))}catch(t){i(t)}},o=t=>{try{s(n.throw(t))}catch(t){i(t)}},s=t=>t.done?e(t.value):Promise.resolve(t.value).then(a,o);s((n=n.apply(t,null)).next())}));var t,n}render(){var t,n,e,a;const s=this.selectDisplayedData(this.state._sortedData,this.showPagination?null!==(n=null===(t=this.state._pagination)||void 0===t?void 0:t._pageSize)&&void 0!==n?n:10:this.state._sortedData.length,this.state._pagination._page||1),l="top"===this._paginationPosition||"both"===this._paginationPosition?this.renderPagination():null,r="bottom"===this._paginationPosition||"both"===this._paginationPosition?this.renderPagination():null,h={horizontal:null===(e=this.state._headers.horizontal)||void 0===e?void 0:e.map((t=>t.map((t=>Object.assign(Object.assign({},t),{sortDirection:this.getHeaderCellSortState(t)}))))),vertical:null===(a=this.state._headers.vertical)||void 0===a?void 0:a.map((t=>t.map((t=>Object.assign(Object.assign({},t),{sortDirection:this.getHeaderCellSortState(t)})))))};return(0,i.h)(i.H,{key:"06dd5f12e9182fe2db630dcdd0f2645d4867b8e5",class:"kol-table-stateful"},this.pageEndSlice>0&&this.showPagination&&l,(0,i.h)(o.t,{key:"565eef88ba587eb4aa76b629c01c1d9e1ccf5d98",ref:this.catchRef,_data:s,_headerCells:h,_label:this.state._label,_dataFoot:this.state._dataFoot,_minWidth:this.state._minWidth,_on:{onSort:(t,n)=>{this.handleSort(n)},onSelectionChange:(t,n)=>{this.handleSelectionChange(t,n)}},_selection:this.state._selection}),this.pageEndSlice>0&&this.showPagination&&r)}get host(){return(0,i.g)(this)}static get watchers(){return{_allowMultiSort:["validateAllowMultiSort"],_data:["validateData"],_dataFoot:["validateDataFoot"],_paginationPosition:["validatePaginationPosition"],_headers:["validateHeaders"],_label:["validateLabel"],_minWidth:["validateMinWidth"],_selection:["validateSelection"],_on:["validateOn"],_pagination:["validatePagination"]}}};p.style={default:"/*\n * This file contains all rules for accessibility.\n */\n@layer kol-global {\n :host {\n /*\n * Minimum size of interactive elements.\n */\n --a11y-min-size: 44px;\n /*\n * No element should be used without a background and font color whose contrast ratio has\n * not been checked. By initially setting the background color to white and the font color\n * to black, the contrast ratio is ensured and explicit adjustment is forced.\n */\n background-color: white;\n color: black;\n /*\n * Verdana is an accessible font that can be used without requiring additional loading time.\n */\n font-family: Verdana;\n }\n * {\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n hyphens: auto;\n /*\n * Letter spacing is required for all texts.\n */\n letter-spacing: inherit;\n /*\n * This rule enables the word dividing for all texts. That is important for high zoom levels.\n */\n word-break: break-word;\n /*\n * Word spacing is required for all texts.\n */\n word-spacing: inherit;\n }\n /*\n * All interactive elements should have a minimum size of 44px.\n */\n /* input:not([type='checkbox'], [type='radio'], [type='range']), */\n /* option, */\n /* select, */\n /* textarea, */\n [role=button],\n button:not([role=link]),\n .kol-input .input {\n min-height: var(--a11y-min-size);\n min-width: var(--a11y-min-size);\n }\n /*\n * Some interactive elements should not inherit the font-family and font-size.\n */\n a,\n button,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n input,\n option,\n select,\n textarea {\n /*\n * All elements should inherit the font family from his parent element.\n */\n font-family: inherit;\n /*\n * All elements should inherit the font size from his parent element.\n */\n font-size: inherit;\n }\n}\n/**\n * Sometimes we need the semantic element for accessibility reasons,\n * but we don't want to show it.\n *\n * - https://www.a11yproject.com/posts/how-to-hide-content/\n */\n.visually-hidden {\n clip: rect(0 0 0 0);\n clip-path: inset(50%);\n height: 1px;\n overflow: hidden;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n@layer kol-global {\n /*\n * Dieses CSS stellt sicher, dass der Standard-Style\n * von A und Button resettet werden.\n */\n :is(a, button) {\n background-color: transparent;\n border: none;\n margin: 0;\n padding: 0;\n width: 100%; /* 100% needed for custom width from outside */\n }\n /*\n * Ensure elements with hidden attribute to be actually not visible\n * @see https://meowni.ca/hidden.is.a.lie.html\n */\n [hidden] {\n display: none !important;\n }\n}\n@layer kol-global {\n :host {\n /*\n * The max-width is needed to prevent the table from overflowing the\n * parent node, if the table is wider than the parent node.\n */\n max-width: 100%;\n }\n * {\n /*\n * We prefer to box-sizing: border-box for all elements.\n */\n box-sizing: border-box;\n }\n /* KolSpan is a layout component with icons in all directions and a label text in the middle. */\n .kol-span-wc {\n display: grid;\n place-items: center;\n }\n /* The sub span in KolSpan is the horizontal span with icon left and right and the label text in the middle. */\n .kol-span-wc > span {\n display: flex;\n place-items: center;\n }\n a,\n button {\n cursor: pointer;\n }\n /* This is the text label. */\n .hide-label > .kol-span-wc > span > span {\n display: none;\n }\n /* Reset browser agent style. */\n button:disabled {\n color: unset;\n }\n .disabled label,\n .disabled:focus-within label,\n [aria-disabled=true],\n [aria-disabled=true]:focus,\n [disabled],\n [disabled]:focus {\n cursor: not-allowed;\n opacity: 0.5;\n outline: none;\n }\n [aria-disabled=true]:focus .kol-span-wc,\n [disabled]:focus .kol-span-wc {\n outline: none !important;\n }\n}\n@layer kol-component {\n :host {\n display: block;\n }\n}\n@layer kol-component {\n :root {\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n div.pagination .kol-pagination {\n display: flex;\n flex-wrap: wrap;\n }\n div.pagination,\n div.pagination > div:last-child {\n display: grid;\n place-items: center;\n }\n @media (max-width: 1024px) {\n div.pagination .kol-pagination {\n flex-direction: column;\n }\n }\n @media (min-width: 1024px) {\n div.pagination,\n div.pagination > div:last-child {\n grid-auto-flow: column;\n }\n div.pagination .kol-pagination {\n display: flex;\n }\n }\n}\n@layer kol-component {\n :host,\n .kol-table-stateless-wc {\n display: block;\n font-size: calc(16rem / var(--kolibri-root-font-size, 16));\n }\n .table {\n max-width: 100%;\n overflow-x: auto;\n overflow-y: hidden;\n }\n table {\n width: 100%;\n }\n caption {\n text-align: start;\n }\n .focus-element {\n font-size: 0;\n }\n .focus-element:focus {\n outline: 0 !important;\n }\n .table:has(.focus-element:focus) {\n /* @see https://remysharp.com/til/css/focus-ring-default-styles */\n outline: 5px auto Highlight;\n outline: 5px auto -webkit-focus-ring-color;\n outline-offset: 2px;\n }\n .table-sort-button .button {\n color: inherit;\n }\n tbody th,\n th.align-left {\n text-align: left;\n }\n tbody th .table-sort-button .button-inner,\n th.align-left .table-sort-button .button-inner {\n justify-items: start;\n }\n th.align-center {\n text-align: center;\n }\n th.align-center .table-sort-button .button-inner {\n justify-items: center;\n }\n th.align-right {\n text-align: right;\n }\n th.align-right .table-sort-button .button-inner {\n justify-items: end;\n }\n .selection-header-cell {\n width: 0;\n }\n .selection-cell {\n width: var(--a11y-min-size);\n height: var(--a11y-min-size);\n white-space: nowrap;\n }\n .input label {\n align-items: center;\n cursor: pointer;\n display: flex;\n height: var(--a11y-min-size);\n justify-content: center;\n position: relative;\n width: var(--a11y-min-size);\n }\n .input .icon {\n display: block;\n inset: auto;\n position: absolute;\n z-index: 1;\n }\n .input input {\n appearance: none;\n border-style: solid;\n cursor: pointer;\n margin: 0;\n }\n .input input:before {\n content: \"\";\n }\n .input input[type=checkbox] {\n position: relative;\n display: flex;\n height: calc(var(--a11y-min-size) / 2);\n width: calc(var(--a11y-min-size) / 2);\n align-items: center;\n justify-content: center;\n background-color: rgb(255, 255, 255);\n border-width: 2px;\n line-height: 24px;\n transition: all 0.5s ease 0s;\n }\n .input input[type=radio] {\n display: flex;\n border-width: 2px;\n border-radius: 100%;\n height: 1.5em;\n min-height: 1.5em;\n min-width: 1.5em;\n padding: 0;\n width: 1.5em;\n }\n .input input[type=radio]:before {\n border-radius: 100%;\n margin: auto;\n height: 0.75em;\n width: 0.75em;\n }\n .input input[type=radio]:checked:before {\n background-color: #000;\n }\n @media (forced-colors: active) {\n .input input[type=radio]:checked:before {\n /* Give it a visible background in forced colors mode */\n background: selectedItem !important;\n }\n }\n}"}},5815:(t,n,e)=>{e.d(n,{a:()=>c,b:()=>l,c:()=>r,h:()=>a,v:()=>d});var i=e(7440);const a=[0,1,2,3,4,5,6],o=/[a-zA-Z0-9äöüÄÖÜß]/g,s=/^\d+$/;function l(t,n=1){return function(t){var n;return"string"==typeof t&&(null===(n=t.match(o))||void 0===n?void 0:n.length)||0}(t)>=n}function r(t){return s.test(t)}const h=new Set(["string"]),d=(t,n,e={})=>{(0,i.w)(t,"_label",(t=>"string"==typeof t),h,n,function(t){var n;return Object.assign(Object.assign({},t),{hooks:{afterPatch:(n,e,a,o)=>{var s,h;"function"==typeof(null===(s=t.hooks)||void 0===s?void 0:s.afterPatch)&&(null===(h=t.hooks)||void 0===h||h.afterPatch(n,e,a,o)),"string"==typeof n&&!1===l(n,3)&&!1===r(n)&&(0,i.a)(`The heading or label ("${n}") is not accessible. A label should consist of at least three readable characters.`),"string"==typeof n&&n.length>80&&(0,i.u)("A heading or label should not be longer than 80 characters.")},beforePatch:null===(n=t.hooks)||void 0===n?void 0:n.beforePatch}})}(e))},c=d},4997:(t,n,e)=>{e.d(n,{h:()=>a,p:()=>i,s:()=>o});let i="development";try{i="production"}catch(t){i="production"}const a=(t,n,e)=>{if(t&&n&&"string"==typeof e){const i=t.querySelector(`[slot="${e}"]`);i&&n.appendChild(i)}},o=t=>""===t}}]);