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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (404) hide show
  1. package/dist/1068.js +1 -1
  2. package/dist/1219.js +1 -1
  3. package/dist/136.js +1 -1
  4. package/dist/1416.js +1 -1
  5. package/dist/1676.js +1 -1
  6. package/dist/1718.js +1 -1
  7. package/dist/1744.js +1 -1
  8. package/dist/1791.js +1 -1
  9. package/dist/2078.js +1 -1
  10. package/dist/2115.js +1 -1
  11. package/dist/2195.js +1 -1
  12. package/dist/3021.js +1 -1
  13. package/dist/3027.js +1 -1
  14. package/dist/3186.js +1 -1
  15. package/dist/364.js +1 -1
  16. package/dist/3758.js +1 -1
  17. package/dist/3836.js +1 -1
  18. package/dist/3872.js +1 -1
  19. package/dist/3879.js +1 -1
  20. package/dist/3949.js +1 -1
  21. package/dist/4211.js +1 -1
  22. package/dist/4350.js +1 -1
  23. package/dist/4390.js +1 -1
  24. package/dist/4566.js +1 -1
  25. package/dist/4662.js +1 -1
  26. package/dist/4928.js +1 -1
  27. package/dist/{3241.js → 4989.js} +2 -2
  28. package/dist/5000.js +1 -1
  29. package/dist/5151.js +1 -1
  30. package/dist/5171.js +1 -1
  31. package/dist/5876.js +1 -1
  32. package/dist/597.js +1 -1
  33. package/dist/6368.js +2 -0
  34. package/dist/6420.js +2 -0
  35. package/dist/6451.js +1 -1
  36. package/dist/6480.js +1 -1
  37. package/dist/6577.js +1 -1
  38. package/dist/6983.js +1 -1
  39. package/dist/7084.js +1 -1
  40. package/dist/7225.js +1 -1
  41. package/dist/7267.js +1 -1
  42. package/dist/7958.js +1 -1
  43. package/dist/7997.js +1 -1
  44. package/dist/8069.js +1 -1
  45. package/dist/8177.js +1 -1
  46. package/dist/8212.js +1 -1
  47. package/dist/8243.js +1 -1
  48. package/dist/8283.js +1 -1
  49. package/dist/8478.js +1 -1
  50. package/dist/851.js +1 -1
  51. package/dist/8573.js +1 -1
  52. package/dist/8728.js +1 -1
  53. package/dist/8808.js +1 -1
  54. package/dist/8999.js +1 -1
  55. package/dist/9068.js +1 -1
  56. package/dist/9130.js +1 -1
  57. package/dist/9162.js +1 -1
  58. package/dist/9219.js +1 -1
  59. package/dist/9244.js +2 -0
  60. package/dist/9296.js +2 -0
  61. package/dist/9423.js +1 -1
  62. package/dist/9430.js +1 -1
  63. package/dist/9929.js +1 -1
  64. package/dist/993.js +1 -1
  65. package/dist/index.html +0 -8
  66. package/dist/main.js +1 -1
  67. package/dist/main.js.LICENSE.txt +2 -2
  68. package/package.json +14 -12
  69. package/public/index.html +0 -8
  70. package/src/App.tsx +1 -1
  71. package/src/components/SampleColumns.tsx +10 -0
  72. package/src/components/combobox/partials/variants.tsx +3 -2
  73. package/src/components/drawer/basic.tsx +2 -20
  74. package/src/components/drawer/controlled.tsx +0 -8
  75. package/src/components/form/error-list.tsx +66 -24
  76. package/src/components/handout/basic.tsx +1 -1
  77. package/src/components/input-checkbox/partials/variants.tsx +5 -4
  78. package/src/components/input-color/partials/cases.tsx +4 -2
  79. package/src/components/input-color/partials/variants.tsx +3 -2
  80. package/src/components/input-date/partials/cases.tsx +6 -3
  81. package/src/components/input-date/partials/variants.tsx +3 -2
  82. package/src/components/input-date/show-hide-msg.tsx +1 -1
  83. package/src/components/input-email/partials/cases.tsx +6 -3
  84. package/src/components/input-email/partials/variants.tsx +3 -2
  85. package/src/components/input-file/partials/cases.tsx +6 -3
  86. package/src/components/input-file/partials/variants.tsx +3 -2
  87. package/src/components/input-number/partials/variants.tsx +3 -2
  88. package/src/components/input-password/partials/cases.tsx +8 -5
  89. package/src/components/input-password/partials/variants.tsx +3 -2
  90. package/src/components/input-radio/partials/variants.tsx +3 -2
  91. package/src/components/input-range/partials/cases.tsx +6 -3
  92. package/src/components/input-range/partials/variants.tsx +3 -2
  93. package/src/components/input-text/{hide-errors.tsx → hide-msg.tsx} +5 -5
  94. package/src/components/input-text/partials/variants.tsx +3 -2
  95. package/src/components/input-text/routes.ts +2 -2
  96. package/src/components/modal/basic.tsx +28 -12
  97. package/src/components/select/partials/variants.tsx +3 -2
  98. package/src/components/single-select/partials/variants.tsx +3 -2
  99. package/src/components/table/column-alignment.tsx +4 -0
  100. package/src/components/table/complex-headers.tsx +1 -0
  101. package/src/components/table/interactive-child-elements.tsx +2 -0
  102. package/src/components/table/multi-sort.tsx +2 -0
  103. package/src/components/table/pagination-position.tsx +3 -0
  104. package/src/components/table/render-cell.tsx +1 -1
  105. package/src/components/table/sort-data.tsx +2 -2
  106. package/src/components/table/stateful-with-selection.tsx +1 -0
  107. package/src/components/table/stateful-with-single-selection.tsx +1 -0
  108. package/src/components/table/stateless-with-selection.tsx +1 -0
  109. package/src/components/table/stateless-with-single-selection.tsx +1 -0
  110. package/src/components/table/stateless.tsx +1 -0
  111. package/src/components/table/with-footer.tsx +1 -0
  112. package/src/components/table/with-pagination.tsx +1 -1
  113. package/src/components/textarea/partials/cases.tsx +9 -4
  114. package/src/components/textarea/partials/variants.tsx +3 -2
  115. package/src/react.main.tsx +3 -2
  116. package/src/scenarios/input-group-with-error.tsx +4 -4
  117. package/src/shares/theme.ts +4 -8
  118. package/dist/1258.js +0 -2
  119. package/dist/1298.js +0 -2
  120. package/dist/5792.js +0 -2
  121. package/dist/7779.js +0 -2
  122. package/dist/9542.js +0 -2
  123. package/dist/9542.js.LICENSE.txt +0 -3
  124. package/dist/assets/fontawesome-free/LICENSE.txt +0 -165
  125. package/dist/assets/fontawesome-free/css/all.css +0 -7831
  126. package/dist/assets/fontawesome-free/css/all.min.css +0 -6
  127. package/dist/assets/fontawesome-free/css/brands.css +0 -1432
  128. package/dist/assets/fontawesome-free/css/brands.min.css +0 -6
  129. package/dist/assets/fontawesome-free/css/fontawesome.css +0 -6338
  130. package/dist/assets/fontawesome-free/css/fontawesome.min.css +0 -6
  131. package/dist/assets/fontawesome-free/css/regular.css +0 -19
  132. package/dist/assets/fontawesome-free/css/regular.min.css +0 -6
  133. package/dist/assets/fontawesome-free/css/solid.css +0 -19
  134. package/dist/assets/fontawesome-free/css/solid.min.css +0 -6
  135. package/dist/assets/fontawesome-free/css/svg-with-js.css +0 -634
  136. package/dist/assets/fontawesome-free/css/svg-with-js.min.css +0 -6
  137. package/dist/assets/fontawesome-free/css/v4-font-face.css +0 -26
  138. package/dist/assets/fontawesome-free/css/v4-font-face.min.css +0 -6
  139. package/dist/assets/fontawesome-free/css/v4-shims.css +0 -2146
  140. package/dist/assets/fontawesome-free/css/v4-shims.min.css +0 -6
  141. package/dist/assets/fontawesome-free/css/v5-font-face.css +0 -22
  142. package/dist/assets/fontawesome-free/css/v5-font-face.min.css +0 -6
  143. package/dist/assets/fontawesome-free/webfonts/fa-brands-400.ttf +0 -0
  144. package/dist/assets/fontawesome-free/webfonts/fa-brands-400.woff2 +0 -0
  145. package/dist/assets/fontawesome-free/webfonts/fa-regular-400.ttf +0 -0
  146. package/dist/assets/fontawesome-free/webfonts/fa-regular-400.woff2 +0 -0
  147. package/dist/assets/fontawesome-free/webfonts/fa-solid-900.ttf +0 -0
  148. package/dist/assets/fontawesome-free/webfonts/fa-solid-900.woff2 +0 -0
  149. package/dist/assets/fontawesome-free/webfonts/fa-v4compatibility.ttf +0 -0
  150. package/dist/assets/fontawesome-free/webfonts/fa-v4compatibility.woff2 +0 -0
  151. package/dist/assets/icofont/demo.html +0 -18939
  152. package/dist/assets/icofont/fonts/icofont.eot +0 -0
  153. package/dist/assets/icofont/fonts/icofont.svg +0 -2105
  154. package/dist/assets/icofont/fonts/icofont.ttf +0 -0
  155. package/dist/assets/icofont/fonts/icofont.woff +0 -0
  156. package/dist/assets/icofont/fonts/icofont.woff2 +0 -0
  157. package/dist/assets/icofont/icofont.css +0 -10757
  158. package/dist/assets/icofont/icofont.min.css +0 -7
  159. package/dist/assets/kreon/Kreon-VariableFont_wght.ttf +0 -0
  160. package/dist/assets/kreon/OFL.txt +0 -93
  161. package/dist/assets/kreon/README.txt +0 -67
  162. package/dist/assets/kreon/static/Kreon-Bold.ttf +0 -0
  163. package/dist/assets/kreon/static/Kreon-Light.ttf +0 -0
  164. package/dist/assets/kreon/static/Kreon-Medium.ttf +0 -0
  165. package/dist/assets/kreon/static/Kreon-Regular.ttf +0 -0
  166. package/dist/assets/kreon/static/Kreon-SemiBold.ttf +0 -0
  167. package/dist/assets/kreon/style.css +0 -41
  168. package/dist/assets/material-icons/LICENSE +0 -202
  169. package/dist/assets/material-icons/README.md +0 -129
  170. package/dist/assets/material-icons/_data/versions.json +0 -2124
  171. package/dist/assets/material-icons/css/_codepoints.scss +0 -2279
  172. package/dist/assets/material-icons/css/_mixins.scss +0 -13
  173. package/dist/assets/material-icons/css/_variables.scss +0 -6
  174. package/dist/assets/material-icons/css/material-icons.css +0 -9208
  175. package/dist/assets/material-icons/css/material-icons.min.css +0 -1
  176. package/dist/assets/material-icons/css/material-icons.scss +0 -39
  177. package/dist/assets/material-icons/iconfont/_mixins.scss +0 -55
  178. package/dist/assets/material-icons/iconfont/_variables.scss +0 -3
  179. package/dist/assets/material-icons/iconfont/filled.css +0 -24
  180. package/dist/assets/material-icons/iconfont/filled.scss +0 -4
  181. package/dist/assets/material-icons/iconfont/material-icons-outlined.woff +0 -0
  182. package/dist/assets/material-icons/iconfont/material-icons-outlined.woff2 +0 -0
  183. package/dist/assets/material-icons/iconfont/material-icons-round.woff +0 -0
  184. package/dist/assets/material-icons/iconfont/material-icons-round.woff2 +0 -0
  185. package/dist/assets/material-icons/iconfont/material-icons-sharp.woff +0 -0
  186. package/dist/assets/material-icons/iconfont/material-icons-sharp.woff2 +0 -0
  187. package/dist/assets/material-icons/iconfont/material-icons-two-tone.woff +0 -0
  188. package/dist/assets/material-icons/iconfont/material-icons-two-tone.woff2 +0 -0
  189. package/dist/assets/material-icons/iconfont/material-icons.css +0 -124
  190. package/dist/assets/material-icons/iconfont/material-icons.scss +0 -5
  191. package/dist/assets/material-icons/iconfont/material-icons.woff +0 -0
  192. package/dist/assets/material-icons/iconfont/material-icons.woff2 +0 -0
  193. package/dist/assets/material-icons/iconfont/outlined.css +0 -24
  194. package/dist/assets/material-icons/iconfont/outlined.scss +0 -4
  195. package/dist/assets/material-icons/iconfont/round.css +0 -24
  196. package/dist/assets/material-icons/iconfont/round.scss +0 -4
  197. package/dist/assets/material-icons/iconfont/sharp.css +0 -24
  198. package/dist/assets/material-icons/iconfont/sharp.scss +0 -4
  199. package/dist/assets/material-icons/iconfont/two-tone.css +0 -24
  200. package/dist/assets/material-icons/iconfont/two-tone.scss +0 -4
  201. package/dist/assets/material-icons/index.d.ts +0 -2128
  202. package/dist/assets/material-icons/package.json +0 -52
  203. package/dist/assets/material-symbols/LICENSE +0 -202
  204. package/dist/assets/material-symbols/README.md +0 -114
  205. package/dist/assets/material-symbols/_core.scss +0 -46
  206. package/dist/assets/material-symbols/index.css +0 -74
  207. package/dist/assets/material-symbols/index.d.ts +0 -2809
  208. package/dist/assets/material-symbols/index.scss +0 -3
  209. package/dist/assets/material-symbols/material-symbols-outlined.woff2 +0 -0
  210. package/dist/assets/material-symbols/material-symbols-rounded.woff2 +0 -0
  211. package/dist/assets/material-symbols/material-symbols-sharp.woff2 +0 -0
  212. package/dist/assets/material-symbols/outlined.css +0 -24
  213. package/dist/assets/material-symbols/outlined.scss +0 -3
  214. package/dist/assets/material-symbols/package.json +0 -41
  215. package/dist/assets/material-symbols/rounded.css +0 -24
  216. package/dist/assets/material-symbols/rounded.scss +0 -3
  217. package/dist/assets/material-symbols/sharp.css +0 -24
  218. package/dist/assets/material-symbols/sharp.scss +0 -3
  219. package/dist/assets/noto-sans/fonts/NotoSans-Black.ttf +0 -0
  220. package/dist/assets/noto-sans/fonts/NotoSans-BlackItalic.ttf +0 -0
  221. package/dist/assets/noto-sans/fonts/NotoSans-Bold.ttf +0 -0
  222. package/dist/assets/noto-sans/fonts/NotoSans-BoldItalic.ttf +0 -0
  223. package/dist/assets/noto-sans/fonts/NotoSans-ExtraBold.ttf +0 -0
  224. package/dist/assets/noto-sans/fonts/NotoSans-ExtraBoldItalic.ttf +0 -0
  225. package/dist/assets/noto-sans/fonts/NotoSans-ExtraLight.ttf +0 -0
  226. package/dist/assets/noto-sans/fonts/NotoSans-ExtraLightItalic.ttf +0 -0
  227. package/dist/assets/noto-sans/fonts/NotoSans-Italic.ttf +0 -0
  228. package/dist/assets/noto-sans/fonts/NotoSans-Light.ttf +0 -0
  229. package/dist/assets/noto-sans/fonts/NotoSans-LightItalic.ttf +0 -0
  230. package/dist/assets/noto-sans/fonts/NotoSans-Medium.ttf +0 -0
  231. package/dist/assets/noto-sans/fonts/NotoSans-MediumItalic.ttf +0 -0
  232. package/dist/assets/noto-sans/fonts/NotoSans-Regular.ttf +0 -0
  233. package/dist/assets/noto-sans/fonts/NotoSans-SemiBold.ttf +0 -0
  234. package/dist/assets/noto-sans/fonts/NotoSans-SemiBoldItalic.ttf +0 -0
  235. package/dist/assets/noto-sans/fonts/NotoSans-Thin.ttf +0 -0
  236. package/dist/assets/noto-sans/fonts/NotoSans-ThinItalic.ttf +0 -0
  237. package/dist/assets/noto-sans/fonts/OFL.txt +0 -93
  238. package/dist/assets/noto-sans/noto-sans.css +0 -11
  239. package/dist/assets/roboto/LICENSE.txt +0 -202
  240. package/dist/assets/roboto/Roboto-Black.ttf +0 -0
  241. package/dist/assets/roboto/Roboto-BlackItalic.ttf +0 -0
  242. package/dist/assets/roboto/Roboto-Bold.ttf +0 -0
  243. package/dist/assets/roboto/Roboto-BoldItalic.ttf +0 -0
  244. package/dist/assets/roboto/Roboto-Italic.ttf +0 -0
  245. package/dist/assets/roboto/Roboto-Light.ttf +0 -0
  246. package/dist/assets/roboto/Roboto-LightItalic.ttf +0 -0
  247. package/dist/assets/roboto/Roboto-Medium.ttf +0 -0
  248. package/dist/assets/roboto/Roboto-MediumItalic.ttf +0 -0
  249. package/dist/assets/roboto/Roboto-Regular.ttf +0 -0
  250. package/dist/assets/roboto/Roboto-Thin.ttf +0 -0
  251. package/dist/assets/roboto/Roboto-ThinItalic.ttf +0 -0
  252. package/dist/assets/roboto/roboto.css +0 -27
  253. package/dist/assets/tabler-icons/fonts/tabler-icons.eot +0 -0
  254. package/dist/assets/tabler-icons/fonts/tabler-icons.ttf +0 -0
  255. package/dist/assets/tabler-icons/fonts/tabler-icons.woff +0 -0
  256. package/dist/assets/tabler-icons/fonts/tabler-icons.woff2 +0 -0
  257. package/dist/assets/tabler-icons/tabler-icons.css +0 -16056
  258. package/dist/assets/tabler-icons/tabler-icons.html +0 -36226
  259. package/dist/assets/tabler-icons/tabler-icons.min.css +0 -4
  260. package/dist/assets/tabler-icons/tabler-icons.png +0 -0
  261. package/dist/assets/tabler-icons/tabler-icons.scss +0 -8058
  262. package/public/assets/fontawesome-free/LICENSE.txt +0 -165
  263. package/public/assets/fontawesome-free/css/all.css +0 -7831
  264. package/public/assets/fontawesome-free/css/all.min.css +0 -6
  265. package/public/assets/fontawesome-free/css/brands.css +0 -1432
  266. package/public/assets/fontawesome-free/css/brands.min.css +0 -6
  267. package/public/assets/fontawesome-free/css/fontawesome.css +0 -6338
  268. package/public/assets/fontawesome-free/css/fontawesome.min.css +0 -6
  269. package/public/assets/fontawesome-free/css/regular.css +0 -19
  270. package/public/assets/fontawesome-free/css/regular.min.css +0 -6
  271. package/public/assets/fontawesome-free/css/solid.css +0 -19
  272. package/public/assets/fontawesome-free/css/solid.min.css +0 -6
  273. package/public/assets/fontawesome-free/css/svg-with-js.css +0 -634
  274. package/public/assets/fontawesome-free/css/svg-with-js.min.css +0 -6
  275. package/public/assets/fontawesome-free/css/v4-font-face.css +0 -26
  276. package/public/assets/fontawesome-free/css/v4-font-face.min.css +0 -6
  277. package/public/assets/fontawesome-free/css/v4-shims.css +0 -2146
  278. package/public/assets/fontawesome-free/css/v4-shims.min.css +0 -6
  279. package/public/assets/fontawesome-free/css/v5-font-face.css +0 -22
  280. package/public/assets/fontawesome-free/css/v5-font-face.min.css +0 -6
  281. package/public/assets/fontawesome-free/webfonts/fa-brands-400.ttf +0 -0
  282. package/public/assets/fontawesome-free/webfonts/fa-brands-400.woff2 +0 -0
  283. package/public/assets/fontawesome-free/webfonts/fa-regular-400.ttf +0 -0
  284. package/public/assets/fontawesome-free/webfonts/fa-regular-400.woff2 +0 -0
  285. package/public/assets/fontawesome-free/webfonts/fa-solid-900.ttf +0 -0
  286. package/public/assets/fontawesome-free/webfonts/fa-solid-900.woff2 +0 -0
  287. package/public/assets/fontawesome-free/webfonts/fa-v4compatibility.ttf +0 -0
  288. package/public/assets/fontawesome-free/webfonts/fa-v4compatibility.woff2 +0 -0
  289. package/public/assets/icofont/demo.html +0 -18939
  290. package/public/assets/icofont/fonts/icofont.eot +0 -0
  291. package/public/assets/icofont/fonts/icofont.svg +0 -2105
  292. package/public/assets/icofont/fonts/icofont.ttf +0 -0
  293. package/public/assets/icofont/fonts/icofont.woff +0 -0
  294. package/public/assets/icofont/fonts/icofont.woff2 +0 -0
  295. package/public/assets/icofont/icofont.css +0 -10757
  296. package/public/assets/icofont/icofont.min.css +0 -7
  297. package/public/assets/kreon/Kreon-VariableFont_wght.ttf +0 -0
  298. package/public/assets/kreon/OFL.txt +0 -93
  299. package/public/assets/kreon/README.txt +0 -67
  300. package/public/assets/kreon/static/Kreon-Bold.ttf +0 -0
  301. package/public/assets/kreon/static/Kreon-Light.ttf +0 -0
  302. package/public/assets/kreon/static/Kreon-Medium.ttf +0 -0
  303. package/public/assets/kreon/static/Kreon-Regular.ttf +0 -0
  304. package/public/assets/kreon/static/Kreon-SemiBold.ttf +0 -0
  305. package/public/assets/kreon/style.css +0 -41
  306. package/public/assets/material-icons/LICENSE +0 -202
  307. package/public/assets/material-icons/README.md +0 -129
  308. package/public/assets/material-icons/_data/versions.json +0 -2124
  309. package/public/assets/material-icons/css/_codepoints.scss +0 -2279
  310. package/public/assets/material-icons/css/_mixins.scss +0 -13
  311. package/public/assets/material-icons/css/_variables.scss +0 -6
  312. package/public/assets/material-icons/css/material-icons.css +0 -9208
  313. package/public/assets/material-icons/css/material-icons.min.css +0 -1
  314. package/public/assets/material-icons/css/material-icons.scss +0 -39
  315. package/public/assets/material-icons/iconfont/_mixins.scss +0 -55
  316. package/public/assets/material-icons/iconfont/_variables.scss +0 -3
  317. package/public/assets/material-icons/iconfont/filled.css +0 -24
  318. package/public/assets/material-icons/iconfont/filled.scss +0 -4
  319. package/public/assets/material-icons/iconfont/material-icons-outlined.woff +0 -0
  320. package/public/assets/material-icons/iconfont/material-icons-outlined.woff2 +0 -0
  321. package/public/assets/material-icons/iconfont/material-icons-round.woff +0 -0
  322. package/public/assets/material-icons/iconfont/material-icons-round.woff2 +0 -0
  323. package/public/assets/material-icons/iconfont/material-icons-sharp.woff +0 -0
  324. package/public/assets/material-icons/iconfont/material-icons-sharp.woff2 +0 -0
  325. package/public/assets/material-icons/iconfont/material-icons-two-tone.woff +0 -0
  326. package/public/assets/material-icons/iconfont/material-icons-two-tone.woff2 +0 -0
  327. package/public/assets/material-icons/iconfont/material-icons.css +0 -124
  328. package/public/assets/material-icons/iconfont/material-icons.scss +0 -5
  329. package/public/assets/material-icons/iconfont/material-icons.woff +0 -0
  330. package/public/assets/material-icons/iconfont/material-icons.woff2 +0 -0
  331. package/public/assets/material-icons/iconfont/outlined.css +0 -24
  332. package/public/assets/material-icons/iconfont/outlined.scss +0 -4
  333. package/public/assets/material-icons/iconfont/round.css +0 -24
  334. package/public/assets/material-icons/iconfont/round.scss +0 -4
  335. package/public/assets/material-icons/iconfont/sharp.css +0 -24
  336. package/public/assets/material-icons/iconfont/sharp.scss +0 -4
  337. package/public/assets/material-icons/iconfont/two-tone.css +0 -24
  338. package/public/assets/material-icons/iconfont/two-tone.scss +0 -4
  339. package/public/assets/material-icons/index.d.ts +0 -2128
  340. package/public/assets/material-icons/package.json +0 -52
  341. package/public/assets/material-symbols/LICENSE +0 -202
  342. package/public/assets/material-symbols/README.md +0 -114
  343. package/public/assets/material-symbols/_core.scss +0 -46
  344. package/public/assets/material-symbols/index.css +0 -74
  345. package/public/assets/material-symbols/index.d.ts +0 -2809
  346. package/public/assets/material-symbols/index.scss +0 -3
  347. package/public/assets/material-symbols/material-symbols-outlined.woff2 +0 -0
  348. package/public/assets/material-symbols/material-symbols-rounded.woff2 +0 -0
  349. package/public/assets/material-symbols/material-symbols-sharp.woff2 +0 -0
  350. package/public/assets/material-symbols/outlined.css +0 -24
  351. package/public/assets/material-symbols/outlined.scss +0 -3
  352. package/public/assets/material-symbols/package.json +0 -41
  353. package/public/assets/material-symbols/rounded.css +0 -24
  354. package/public/assets/material-symbols/rounded.scss +0 -3
  355. package/public/assets/material-symbols/sharp.css +0 -24
  356. package/public/assets/material-symbols/sharp.scss +0 -3
  357. package/public/assets/noto-sans/fonts/NotoSans-Black.ttf +0 -0
  358. package/public/assets/noto-sans/fonts/NotoSans-BlackItalic.ttf +0 -0
  359. package/public/assets/noto-sans/fonts/NotoSans-Bold.ttf +0 -0
  360. package/public/assets/noto-sans/fonts/NotoSans-BoldItalic.ttf +0 -0
  361. package/public/assets/noto-sans/fonts/NotoSans-ExtraBold.ttf +0 -0
  362. package/public/assets/noto-sans/fonts/NotoSans-ExtraBoldItalic.ttf +0 -0
  363. package/public/assets/noto-sans/fonts/NotoSans-ExtraLight.ttf +0 -0
  364. package/public/assets/noto-sans/fonts/NotoSans-ExtraLightItalic.ttf +0 -0
  365. package/public/assets/noto-sans/fonts/NotoSans-Italic.ttf +0 -0
  366. package/public/assets/noto-sans/fonts/NotoSans-Light.ttf +0 -0
  367. package/public/assets/noto-sans/fonts/NotoSans-LightItalic.ttf +0 -0
  368. package/public/assets/noto-sans/fonts/NotoSans-Medium.ttf +0 -0
  369. package/public/assets/noto-sans/fonts/NotoSans-MediumItalic.ttf +0 -0
  370. package/public/assets/noto-sans/fonts/NotoSans-Regular.ttf +0 -0
  371. package/public/assets/noto-sans/fonts/NotoSans-SemiBold.ttf +0 -0
  372. package/public/assets/noto-sans/fonts/NotoSans-SemiBoldItalic.ttf +0 -0
  373. package/public/assets/noto-sans/fonts/NotoSans-Thin.ttf +0 -0
  374. package/public/assets/noto-sans/fonts/NotoSans-ThinItalic.ttf +0 -0
  375. package/public/assets/noto-sans/fonts/OFL.txt +0 -93
  376. package/public/assets/noto-sans/noto-sans.css +0 -11
  377. package/public/assets/roboto/LICENSE.txt +0 -202
  378. package/public/assets/roboto/Roboto-Black.ttf +0 -0
  379. package/public/assets/roboto/Roboto-BlackItalic.ttf +0 -0
  380. package/public/assets/roboto/Roboto-Bold.ttf +0 -0
  381. package/public/assets/roboto/Roboto-BoldItalic.ttf +0 -0
  382. package/public/assets/roboto/Roboto-Italic.ttf +0 -0
  383. package/public/assets/roboto/Roboto-Light.ttf +0 -0
  384. package/public/assets/roboto/Roboto-LightItalic.ttf +0 -0
  385. package/public/assets/roboto/Roboto-Medium.ttf +0 -0
  386. package/public/assets/roboto/Roboto-MediumItalic.ttf +0 -0
  387. package/public/assets/roboto/Roboto-Regular.ttf +0 -0
  388. package/public/assets/roboto/Roboto-Thin.ttf +0 -0
  389. package/public/assets/roboto/Roboto-ThinItalic.ttf +0 -0
  390. package/public/assets/roboto/roboto.css +0 -27
  391. package/public/assets/tabler-icons/fonts/tabler-icons.eot +0 -0
  392. package/public/assets/tabler-icons/fonts/tabler-icons.ttf +0 -0
  393. package/public/assets/tabler-icons/fonts/tabler-icons.woff +0 -0
  394. package/public/assets/tabler-icons/fonts/tabler-icons.woff2 +0 -0
  395. package/public/assets/tabler-icons/tabler-icons.css +0 -16056
  396. package/public/assets/tabler-icons/tabler-icons.html +0 -36226
  397. package/public/assets/tabler-icons/tabler-icons.min.css +0 -4
  398. package/public/assets/tabler-icons/tabler-icons.png +0 -0
  399. package/public/assets/tabler-icons/tabler-icons.scss +0 -8058
  400. /package/dist/{1258.js.LICENSE.txt → 4989.js.LICENSE.txt} +0 -0
  401. /package/dist/{1298.js.LICENSE.txt → 6368.js.LICENSE.txt} +0 -0
  402. /package/dist/{3241.js.LICENSE.txt → 6420.js.LICENSE.txt} +0 -0
  403. /package/dist/{5792.js.LICENSE.txt → 9244.js.LICENSE.txt} +0 -0
  404. /package/dist/{7779.js.LICENSE.txt → 9296.js.LICENSE.txt} +0 -0
@@ -3,9 +3,10 @@ import React, { forwardRef } from 'react';
3
3
  import { InputRadioCases } from './cases';
4
4
 
5
5
  import type { Components } from '@public-ui/components';
6
+ import { SampleColumns } from '../../SampleColumns';
6
7
  export const InputRadioVariants = forwardRef<HTMLKolInputRadioElement, Components.KolInputRadio>(function InputRadioVariant(props, ref) {
7
8
  return (
8
- <div className="grid md:grid-cols-2 gap-4">
9
+ <SampleColumns>
9
10
  <fieldset>
10
11
  <legend>Radio</legend>
11
12
  <InputRadioCases {...props} />
@@ -14,6 +15,6 @@ export const InputRadioVariants = forwardRef<HTMLKolInputRadioElement, Component
14
15
  <legend>Radio (hideLabel)</legend>
15
16
  <InputRadioCases ref={ref} {...props} _hideLabel />
16
17
  </fieldset>
17
- </div>
18
+ </SampleColumns>
18
19
  );
19
20
  });
@@ -1,10 +1,9 @@
1
1
  import React, { forwardRef } from 'react';
2
-
3
2
  import { KolInputRange } from '@public-ui/react';
3
+ import type { Components } from '@public-ui/components';
4
4
 
5
- import { ERROR_MSG } from '../../../shares/constants';
5
+ import { ERROR_MSG, HINT_MSG } from '../../../shares/constants';
6
6
 
7
- import type { Components } from '@public-ui/components';
8
7
  export const InputRangeCases = forwardRef<HTMLKolInputRangeElement, Components.KolInputRange>(function InputRangeCases(props, ref) {
9
8
  return (
10
9
  <div className="grid gap-4">
@@ -33,10 +32,14 @@ export const InputRangeCases = forwardRef<HTMLKolInputRangeElement, Components.K
33
32
  _min={0}
34
33
  _max={50}
35
34
  _step={10}
35
+ _hint={HINT_MSG}
36
36
  _msg={{ _type: 'error', _description: ERROR_MSG }}
37
37
  _label="Slider with error"
38
38
  _touched
39
39
  />
40
+ <KolInputRange {...props} _msg={{ _type: 'info', _description: 'Just a hint' }} _label="Slider" />
41
+ <KolInputRange {...props} _msg={{ _type: 'warning', _description: 'Small warning' }} _label="Slider" />
42
+ <KolInputRange {...props} _msg={{ _type: 'success', _description: 'Success message' }} _label="Slider" />
40
43
  <KolInputRange {...props} _disabled _min={0} _max={50} _label="Slider (disabled)" />
41
44
  <KolInputRange {...props} _min={0} _max={50} _label="With access key" _accessKey="c" />
42
45
  <KolInputRange {...props} _min={0} _max={50} _label="With short key" _shortKey="s" />
@@ -3,9 +3,10 @@ import React, { forwardRef } from 'react';
3
3
  import { InputRangeCases } from './cases';
4
4
 
5
5
  import type { Components } from '@public-ui/components';
6
+ import { SampleColumns } from '../../SampleColumns';
6
7
  export const InputRangeVariants = forwardRef<HTMLKolInputRangeElement, Components.KolInputRange>(function InputRangeVariant(props, ref) {
7
8
  return (
8
- <div className="grid md:grid-cols-2 gap-4">
9
+ <SampleColumns>
9
10
  <fieldset>
10
11
  <legend>Range</legend>
11
12
  <InputRangeCases {...props} />
@@ -14,6 +15,6 @@ export const InputRangeVariants = forwardRef<HTMLKolInputRangeElement, Component
14
15
  <legend>Range (hideLabel)</legend>
15
16
  <InputRangeCases ref={ref} {...props} _hideLabel />
16
17
  </fieldset>
17
- </div>
18
+ </SampleColumns>
18
19
  );
19
20
  });
@@ -3,12 +3,12 @@ import type { FC } from 'react';
3
3
  import React from 'react';
4
4
  import { SampleDescription } from '../SampleDescription';
5
5
 
6
- export const InputTextHideErrors: FC = () => (
6
+ export const InputTextHideMsg: FC = () => (
7
7
  <div className="grid gap-4">
8
8
  <SampleDescription>
9
9
  <p>
10
- This sample shows the <code>_hideError</code> feature for KolInputText. It allows to hide the error message from an input field and can be used, when
11
- the error is already shown somewhere else, e.g. for a group of inputs.
10
+ This sample shows the <code>_hideMsg</code> feature for KolInputText. It allows to hide the message from an input field and can be used, when the
11
+ message (e.g. error) is already shown somewhere else, e.g. for a group of inputs.
12
12
  </p>
13
13
  </SampleDescription>
14
14
 
@@ -21,8 +21,8 @@ export const InputTextHideErrors: FC = () => (
21
21
  <KolAlert className="col-span-2" _level={0} _type="error">
22
22
  This is a combined error message
23
23
  </KolAlert>
24
- <KolInputText _msg={{ _type: 'error', _description: 'This is a combined error message' }} _hideError _label="First input" _touched />
25
- <KolInputText _msg={{ _type: 'error', _description: 'This is a combined error message' }} _hideError _label="Second input with error" _touched />
24
+ <KolInputText _msg={{ _type: 'error', _description: 'This is a combined error message' }} _hideMsg _label="First input" _touched />
25
+ <KolInputText _msg={{ _type: 'error', _description: 'This is a combined error message' }} _hideMsg _label="Second input with error" _touched />
26
26
  </fieldset>
27
27
  </KolCard>
28
28
  </div>
@@ -3,9 +3,10 @@ import React, { forwardRef } from 'react';
3
3
  import { InputTextCases } from './cases';
4
4
 
5
5
  import type { Components } from '@public-ui/components';
6
+ import { SampleColumns } from '../../SampleColumns';
6
7
  export const InputTextVariants = forwardRef<HTMLKolInputTextElement, Components.KolInputText>(function InputTextVariant(props, ref) {
7
8
  return (
8
- <div className="grid md:grid-cols-2 gap-4">
9
+ <SampleColumns>
9
10
  <fieldset>
10
11
  <legend>Text</legend>
11
12
  <InputTextCases {...props} />
@@ -14,6 +15,6 @@ export const InputTextVariants = forwardRef<HTMLKolInputTextElement, Components.
14
15
  <legend>Text (hideLabel)</legend>
15
16
  <InputTextCases ref={ref} {...props} _hideLabel />
16
17
  </fieldset>
17
- </div>
18
+ </SampleColumns>
18
19
  );
19
20
  });
@@ -1,6 +1,6 @@
1
1
  import { Routes } from '../../shares/types';
2
2
  import { InputTextBasic } from './basic';
3
- import { InputTextHideErrors } from './hide-errors';
3
+ import { InputTextHideMsg } from './hide-msg';
4
4
  import { InputTextFormatterDemo } from './text-formatter';
5
5
  import { InputTextSmartButton } from './smart-button';
6
6
  import { InputTextExpertSlot } from './expert-slot';
@@ -8,7 +8,7 @@ import { InputTextExpertSlot } from './expert-slot';
8
8
  export const INPUT_TEXT_ROUTES: Routes = {
9
9
  'input-text': {
10
10
  basic: InputTextBasic,
11
- 'hide-errors': InputTextHideErrors,
11
+ 'hide-msg': InputTextHideMsg,
12
12
  'text-formatter': InputTextFormatterDemo,
13
13
  'smart-button': InputTextSmartButton,
14
14
  'expert-slot': InputTextExpertSlot,
@@ -1,5 +1,5 @@
1
1
  import type { FC } from 'react';
2
- import React, { useEffect, useRef } from 'react';
2
+ import React, { useEffect, useRef, useState } from 'react';
3
3
  import { useSearchParams } from 'react-router-dom';
4
4
 
5
5
  import { KolButton, KolCard, KolModal } from '@public-ui/react';
@@ -8,14 +8,18 @@ import { SampleDescription } from '../SampleDescription';
8
8
  export const ModalBasic: FC = () => {
9
9
  const [searchParams] = useSearchParams();
10
10
  const modalState = searchParams.get('show-modal') as string;
11
+ const defaultVariant = searchParams.get('variant') as string;
11
12
  const modalElement = useRef<HTMLKolModalElement>(null);
12
13
  const stackedModalElement = useRef<HTMLKolModalElement>(null);
13
-
14
+ const [variant, setVariant] = useState<'card' | 'blank'>('blank');
14
15
  useEffect(() => {
15
16
  if (modalState === 'true') {
16
17
  modalElement.current?.openModal();
17
18
  }
18
- }, [modalState]);
19
+ if (defaultVariant === 'card') {
20
+ setVariant(defaultVariant);
21
+ }
22
+ }, [modalState, defaultVariant]);
19
23
 
20
24
  return (
21
25
  <>
@@ -27,7 +31,7 @@ export const ModalBasic: FC = () => {
27
31
  </SampleDescription>
28
32
 
29
33
  <div className="flex">
30
- <KolModal _label="Primary modal" _width="80%" ref={modalElement} _on={{ onClose: () => console.log('Modal closed') }}>
34
+ <KolModal _label="Primary modal" _width="80%" ref={modalElement} _on={{ onClose: () => console.log('Modal closed') }} _variant={variant}>
31
35
  <KolCard _label="I am a modal.">
32
36
  <KolButton
33
37
  _label="Open stacked modal"
@@ -62,15 +66,27 @@ export const ModalBasic: FC = () => {
62
66
  />
63
67
  </KolCard>
64
68
  </KolModal>
69
+ <div className="grid gap-4">
70
+ <KolButton
71
+ _label="Open modal"
72
+ _on={{
73
+ onClick: () => {
74
+ setVariant('blank');
75
+ modalElement.current?.openModal();
76
+ },
77
+ }}
78
+ />
65
79
 
66
- <KolButton
67
- _label="Open modal"
68
- _on={{
69
- onClick: () => {
70
- modalElement.current?.openModal();
71
- },
72
- }}
73
- />
80
+ <KolButton
81
+ _label="Open card modal"
82
+ _on={{
83
+ onClick: () => {
84
+ setVariant('card');
85
+ modalElement.current?.openModal();
86
+ },
87
+ }}
88
+ />
89
+ </div>
74
90
  </div>
75
91
  </>
76
92
  );
@@ -3,9 +3,10 @@ import React, { forwardRef } from 'react';
3
3
  import { SelectCases } from './cases';
4
4
 
5
5
  import type { Components } from '@public-ui/components';
6
+ import { SampleColumns } from '../../SampleColumns';
6
7
  export const SelectVariants = forwardRef<HTMLKolSelectElement, Components.KolSelect>(function SelectVariant(props, ref) {
7
8
  return (
8
- <div className="grid md:grid-cols-2 gap-4">
9
+ <SampleColumns>
9
10
  <fieldset>
10
11
  <legend>Text</legend>
11
12
  <SelectCases {...props} />
@@ -14,6 +15,6 @@ export const SelectVariants = forwardRef<HTMLKolSelectElement, Components.KolSel
14
15
  <legend>Text (hideLabel)</legend>
15
16
  <SelectCases ref={ref} {...props} _hideLabel />
16
17
  </fieldset>
17
- </div>
18
+ </SampleColumns>
18
19
  );
19
20
  });
@@ -2,10 +2,11 @@ import React from 'react';
2
2
 
3
3
  import { SingleSelectCases } from './cases';
4
4
  import type { Components } from '@public-ui/components';
5
+ import { SampleColumns } from '../../SampleColumns';
5
6
 
6
7
  export const SingleSelectVariants = (props: Components.KolSingleSelect) => {
7
8
  return (
8
- <div className="grid md:grid-cols-2 gap-4">
9
+ <SampleColumns>
9
10
  <fieldset>
10
11
  <legend>Text</legend>
11
12
  <SingleSelectCases {...props} />
@@ -14,6 +15,6 @@ export const SingleSelectVariants = (props: Components.KolSingleSelect) => {
14
15
  <legend>Text (hideLabel)</legend>
15
16
  <SingleSelectCases {...props} _hideLabel />
16
17
  </fieldset>
17
- </div>
18
+ </SampleColumns>
18
19
  );
19
20
  };
@@ -18,6 +18,7 @@ export const TableColumnAlignment: FC = () => (
18
18
  <KolHeading _label="Simple table" _level={3}></KolHeading>
19
19
  <KolTableStateful
20
20
  _label="Table for demonstration purposes with different text align properties"
21
+ _minWidth="auto"
21
22
  _headers={{
22
23
  horizontal: [
23
24
  [
@@ -35,6 +36,7 @@ export const TableColumnAlignment: FC = () => (
35
36
  <KolHeading _label="Table with sortable columns" _level={3} className="block mt-6"></KolHeading>
36
37
  <KolTableStateful
37
38
  _label="Table for demonstration purposes with sortable columns"
39
+ _minWidth="auto"
38
40
  _headers={{
39
41
  horizontal: [
40
42
  [
@@ -52,6 +54,7 @@ export const TableColumnAlignment: FC = () => (
52
54
  <KolHeading _label="Table some sortable columns" _level={3} className="block mt-6"></KolHeading>
53
55
  <KolTableStateful
54
56
  _label="Table for demonstration purposes with some but not all columns sortable"
57
+ _minWidth="auto"
55
58
  _headers={{
56
59
  horizontal: [
57
60
  [
@@ -69,6 +72,7 @@ export const TableColumnAlignment: FC = () => (
69
72
  <KolHeading _label="Table with vertical heading" _level={3} className="block mt-6"></KolHeading>
70
73
  <KolTableStateful
71
74
  _label="Table for demonstration purposes with vertical heading"
75
+ _minWidth="auto"
72
76
  _headers={{
73
77
  horizontal: [
74
78
  [
@@ -12,6 +12,7 @@ export const TableComplexHeaders: FC = () => (
12
12
  <section className="w-full flex flex-col">
13
13
  <KolTableStateful
14
14
  _label="Business hours"
15
+ _minWidth="auto"
15
16
  _data={[
16
17
  {
17
18
  asp: 'Center',
@@ -46,6 +46,7 @@ export const InteractiveChildElements: FC = () => (
46
46
  <section className="w-full flex flex-col">
47
47
  <KolTableStateless
48
48
  _label="Button styles"
49
+ _minWidth="auto"
49
50
  _headerCells={{
50
51
  horizontal: [
51
52
  [
@@ -79,6 +80,7 @@ export const InteractiveChildElements: FC = () => (
79
80
 
80
81
  <KolTableStateless
81
82
  _label="Link styles"
83
+ _minWidth="auto"
82
84
  _headerCells={{
83
85
  horizontal: [
84
86
  [
@@ -88,6 +88,7 @@ export const MultiSortTable: FC = () => {
88
88
  ></KolInputCheckbox>
89
89
  <KolTableStateful
90
90
  _label="Sort Table with Order and Date"
91
+ _minWidth="auto"
91
92
  _data={DATA.slice(0, 10)}
92
93
  _headers={HEADERS_VERTICAL}
93
94
  className="block"
@@ -104,6 +105,7 @@ export const MultiSortTable: FC = () => {
104
105
  ></KolInputCheckbox>
105
106
  <KolTableStateful
106
107
  _label="Sort Table with Order and Date"
108
+ _minWidth="auto"
107
109
  _data={DATA}
108
110
  _headers={HEADERS_HORIZONTAL}
109
111
  className="block"
@@ -31,6 +31,7 @@ export const PaginationPosition: FC = () => (
31
31
  <KolHeading _level={2} _label="Table with pagination at the bottom."></KolHeading>
32
32
  <KolTableStateful
33
33
  _label="Sample table with pagination at the bottom"
34
+ _minWidth="auto"
34
35
  _data={DATA}
35
36
  _headers={HEADERS}
36
37
  _pagination={PAGINATION}
@@ -41,6 +42,7 @@ export const PaginationPosition: FC = () => (
41
42
  <KolHeading _level={2} _label="Table with pagination at the top."></KolHeading>
42
43
  <KolTableStateful
43
44
  _label="Sample table with pagination at the top"
45
+ _minWidth="auto"
44
46
  _data={DATA}
45
47
  _headers={HEADERS}
46
48
  _pagination={PAGINATION}
@@ -51,6 +53,7 @@ export const PaginationPosition: FC = () => (
51
53
  <KolHeading _level={2} _label="Table with pagination at both top and bottom."></KolHeading>
52
54
  <KolTableStateful
53
55
  _label="Sample table with pagination at both top and bottom"
56
+ _minWidth="auto"
54
57
  _data={DATA}
55
58
  _headers={HEADERS}
56
59
  _pagination={PAGINATION}
@@ -115,6 +115,6 @@ export const TableRenderCell: FC = () => (
115
115
  <p>This sample shows KolTableStateful using React render functions for the cell contents.</p>
116
116
  </SampleDescription>
117
117
 
118
- <KolTableStateful _label="Sort by date column" _data={DATA} _headers={HEADERS} className="w-full" />
118
+ <KolTableStateful _label="Sort by date column" _minWidth="auto" _data={DATA} _headers={HEADERS} className="w-full" />
119
119
  </>
120
120
  );
@@ -60,11 +60,11 @@ export const TableSortData: FC = () => (
60
60
  <section className="w-full grid gap-4">
61
61
  <section className="grid gap-4">
62
62
  <KolHeading _level={2} _label="Vertical" />
63
- <KolTableStateful _label="Sort a date column" _data={DATA.slice(0, 10)} _headers={HEADERS_VERTICAL} className="block" />
63
+ <KolTableStateful _label="Sort a date column" _minWidth="auto" _data={DATA.slice(0, 10)} _headers={HEADERS_VERTICAL} className="block" />
64
64
  </section>
65
65
  <section className="grid gap-4">
66
66
  <KolHeading _level={2} _label="Horizontal" />
67
- <KolTableStateful _label="Sort a date column" _data={DATA} _headers={HEADERS_HORIZONTAL} className="block" />
67
+ <KolTableStateful _label="Sort a date column" _minWidth="auto" _data={DATA} _headers={HEADERS_HORIZONTAL} className="block" />
68
68
  </section>
69
69
  </section>
70
70
  </>
@@ -69,6 +69,7 @@ export const TableStatefulWithSelection: FC = () => {
69
69
  <section className="w-full">
70
70
  <KolTableStateful
71
71
  _label="Table with selection checkboxes"
72
+ _minWidth="auto"
72
73
  _headers={{
73
74
  horizontal: [
74
75
  [
@@ -71,6 +71,7 @@ export const TableStatefulWithSingleSelection: FC = () => {
71
71
  <section className="w-full">
72
72
  <KolTableStateful
73
73
  _label="Table with selection radio"
74
+ _minWidth="auto"
74
75
  _headers={{
75
76
  horizontal: [
76
77
  [
@@ -65,6 +65,7 @@ export const TableStatelessWithSelection: FC = () => {
65
65
  <section className="w-full">
66
66
  <KolTableStateless
67
67
  _label="Table with selection checkboxes"
68
+ _minWidth="auto"
68
69
  _headerCells={{
69
70
  horizontal: [
70
71
  [
@@ -66,6 +66,7 @@ export const TableStatelessWithSingleSelection: FC = () => {
66
66
  <section className="w-full">
67
67
  <KolTableStateless
68
68
  _label="Table with selection checkboxes"
69
+ _minWidth="auto"
69
70
  _headerCells={{
70
71
  horizontal: [
71
72
  [
@@ -14,6 +14,7 @@ export const TableStateless: FC = () => (
14
14
  <section className="w-full">
15
15
  <KolTableStateless
16
16
  _label="Table for demonstration purposes"
17
+ _minWidth="auto"
17
18
  _headerCells={{
18
19
  horizontal: [
19
20
  [
@@ -12,6 +12,7 @@ export const TableWithFooter: FC = () => (
12
12
  <KolTableStateful
13
13
  className="w-full"
14
14
  _label="Business hours"
15
+ _minWidth="auto"
15
16
  _headers={{
16
17
  horizontal: [
17
18
  [
@@ -26,7 +26,7 @@ export const TableWithPagination: FC = () => (
26
26
  <p>This sample shows how KolTableStateful can be navigated using a pagination.</p>
27
27
  </SampleDescription>
28
28
  <div className="w-full">
29
- <KolTableStateful _label="Table description" _data={DATA} _headers={HEADERS} _pagination={PAGINATION}></KolTableStateful>
29
+ <KolTableStateful _label="Table description" _minWidth="auto" _data={DATA} _headers={HEADERS} _pagination={PAGINATION}></KolTableStateful>
30
30
  </div>
31
31
  </>
32
32
  );
@@ -1,14 +1,19 @@
1
1
  import React, { forwardRef } from 'react';
2
-
3
2
  import { KolTextarea } from '@public-ui/react';
3
+ import type { Components } from '@public-ui/components';
4
4
 
5
- import { ERROR_MSG } from '../../../shares/constants';
5
+ import { ERROR_MSG, HINT_MSG } from '../../../shares/constants';
6
6
 
7
- import type { Components } from '@public-ui/components';
8
7
  export const TextareaCases = forwardRef<HTMLKolTextareaElement, Components.KolTextarea>(function TextareaCases(props, ref) {
9
8
  return (
10
9
  <div className="grid gap-4">
11
- <KolTextarea {...props} _msg={{ _type: 'error', _description: ERROR_MSG }} _label="Text" _touched />
10
+ <div className="black-background">
11
+ <KolTextarea {...props} ref={ref} _placeholder="Placeholder" _label="Text" />
12
+ </div>
13
+ <KolTextarea {...props} _placeholder="Placeholder" _required _msg={{ _type: 'error', _description: ERROR_MSG }} _label="Text" _touched _hint={HINT_MSG} />
14
+ <KolTextarea {...props} _placeholder="Placeholder" _label="Text" _msg={{ _type: 'info', _description: 'Just a hint' }} />
15
+ <KolTextarea {...props} _placeholder="Placeholder" _label="Text" _msg={{ _type: 'warning', _description: 'Small warning' }} />
16
+ <KolTextarea {...props} _placeholder="Placeholder" _label="Text" _msg={{ _type: 'success', _description: 'Success message' }} />
12
17
  <KolTextarea {...props} ref={ref} _accessKey="T" _label="Text (3 rows)" _rows={3} />
13
18
  <KolTextarea {...props} ref={ref} _label="Text (placeholder)" _rows={3} _placeholder="Placeholder" />
14
19
  <KolTextarea {...props} ref={ref} _label="Text (disabled & placeholder)" _rows={3} _placeholder="Placeholder" _disabled />
@@ -3,9 +3,10 @@ import React, { forwardRef } from 'react';
3
3
  import { TextareaCases } from './cases';
4
4
 
5
5
  import type { Components } from '@public-ui/components';
6
+ import { SampleColumns } from '../../SampleColumns';
6
7
  export const TextareaVariants = forwardRef<HTMLKolTextareaElement, Components.KolTextarea>(function TextareaVariant(props, ref) {
7
8
  return (
8
- <div className="grid md:grid-cols-2 gap-4">
9
+ <SampleColumns>
9
10
  <fieldset>
10
11
  <legend>Text</legend>
11
12
  <TextareaCases {...props} />
@@ -14,6 +15,6 @@ export const TextareaVariants = forwardRef<HTMLKolTextareaElement, Components.Ko
14
15
  <legend>Text (hideLabel)</legend>
15
16
  <TextareaCases ref={ref} {...props} _hideLabel />
16
17
  </fieldset>
17
- </div>
18
+ </SampleColumns>
18
19
  );
19
20
  });
@@ -5,7 +5,8 @@ import { setTagNameTransformer } from '@public-ui/react';
5
5
 
6
6
  import { bootstrap, KoliBriDevHelper } from '@public-ui/components';
7
7
  import { defineCustomElements } from '@public-ui/components/dist/loader';
8
- import { DEFAULT, ECL_EC, ECL_EU, ITZBund } from '@public-ui/themes';
8
+ import { DEFAULT } from '@public-ui/theme-default';
9
+ import { ECL_EC, ECL_EU } from '@public-ui-/theme-ecl';
9
10
 
10
11
  import { App } from './App';
11
12
 
@@ -35,7 +36,7 @@ const getThemes = async () => {
35
36
  }
36
37
 
37
38
  /* List of regular sample app themes */
38
- return [DEFAULT, ECL_EC, ECL_EU, ITZBund] as Theme[];
39
+ return [DEFAULT, ECL_EC, ECL_EU] as Theme[];
39
40
  };
40
41
 
41
42
  void (async () => {
@@ -42,9 +42,9 @@ export const InputGroupWithError: FC = () => {
42
42
  {phoneError && <KolAlert _alert _type="error" _label={phoneErrorMessage} />}
43
43
 
44
44
  <div className="grid grid-cols-3 gap-4 max-w-2xl">
45
- <KolSelect _options={countryCodes} _label="CountryCode " _msg={{ _description: phoneErrorMessage, _type: 'error' }} _touched _hideError />
46
- <KolInputText _label="Area code" _msg={{ _description: phoneErrorMessage, _type: 'error' }} _touched _hideError />
47
- <KolInputText _label="Local number" _msg={{ _description: phoneErrorMessage, _type: 'error' }} _touched _hideError />
45
+ <KolSelect _options={countryCodes} _label="CountryCode " _msg={{ _description: phoneErrorMessage, _type: 'error' }} _touched _hideMsg />
46
+ <KolInputText _label="Area code" _msg={{ _description: phoneErrorMessage, _type: 'error' }} _touched _hideMsg />
47
+ <KolInputText _label="Local number" _msg={{ _description: phoneErrorMessage, _type: 'error' }} _touched _hideMsg />
48
48
  </div>
49
49
  </fieldset>
50
50
 
@@ -53,7 +53,7 @@ export const InputGroupWithError: FC = () => {
53
53
  {pizzaError && <KolAlert _alert _type="error" _label={pizzaErrorMessage} />}
54
54
 
55
55
  {pizzaToppings.map((topping) => (
56
- <KolInputCheckbox key={topping} _label={topping} _msg={{ _description: phoneErrorMessage, _type: 'error' }} _touched _hideError />
56
+ <KolInputCheckbox key={topping} _label={topping} _msg={{ _description: phoneErrorMessage, _type: 'error' }} _touched _hideMsg />
57
57
  ))}
58
58
  </fieldset>
59
59
  </>
@@ -1,10 +1,10 @@
1
1
  import { SelectOption } from '@public-ui/components';
2
2
 
3
- export const THEMES = ['default', 'ecl-ec', 'ecl-eu', 'itzbund', 'unstyled'] as const;
3
+ export const THEMES = ['default', 'ecl-ec', 'ecl-eu', 'unstyled'] as const;
4
4
  export type Theme = (typeof THEMES)[number];
5
5
  export type ThemeAndUnstyled = Theme | 'unstyled';
6
6
 
7
- const drafts: ThemeAndUnstyled[] = ['ecl-ec', 'ecl-eu', 'itzbund'];
7
+ const drafts: ThemeAndUnstyled[] = ['ecl-ec', 'ecl-eu'];
8
8
 
9
9
  export const isDraftTheme = (theme: ThemeAndUnstyled) => drafts.includes(theme);
10
10
 
@@ -27,15 +27,11 @@ export const THEME_OPTIONS: SelectOption<ThemeAndUnstyled>[] = [
27
27
  value: 'default',
28
28
  },
29
29
  {
30
- label: 'European Commission (Draft)',
30
+ label: 'European Commission (in progress)',
31
31
  value: 'ecl-ec',
32
32
  },
33
33
  {
34
- label: 'European Union (Draft)',
34
+ label: 'European Union (in progress)',
35
35
  value: 'ecl-eu',
36
36
  },
37
- {
38
- label: 'Informationstechnikzentrum Bund (Draft)',
39
- value: 'itzbund',
40
- },
41
37
  ];
package/dist/1258.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 1258.js.LICENSE.txt */
2
- "use strict";(self.webpackChunk_public_ui_sample_react=self.webpackChunk_public_ui_sample_react||[]).push([[1258],{9246:(t,e,n)=>{n.d(e,{a:()=>i,v:()=>l});var o=n(5800);const i=(t,e,n)=>{(0,o.w)(t,e,(t=>"string"==typeof t&&r.includes(t)),new Set(r),n,{defaultValue:"top"})},r=["left","right","top","bottom"],l=(t,e)=>{i(t,"_align",e)}},7189:(t,e,n)=>{n.d(e,{a:()=>bt,b:()=>yt});var o=n(5687),i=Object.defineProperty,r=Object.defineProperties,l=Object.getOwnPropertyDescriptors,c=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,f=Object.prototype.propertyIsEnumerable,a=(t,e,n)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,u=(t,e)=>{for(var n in e||(e={}))s.call(e,n)&&a(t,n,e[n]);if(c)for(var n of c(e))f.call(e,n)&&a(t,n,e[n]);return t},d=(t,e)=>r(t,l(e)),p=(t,e)=>{var n={};for(var o in t)s.call(t,o)&&e.indexOf(o)<0&&(n[o]=t[o]);if(null!=t&&c)for(var o of c(t))e.indexOf(o)<0&&f.call(t,o)&&(n[o]=t[o]);return n},h=(t,e,n)=>new Promise(((o,i)=>{var r=t=>{try{c(n.next(t))}catch(t){i(t)}},l=t=>{try{c(n.throw(t))}catch(t){i(t)}},c=t=>t.done?o(t.value):Promise.resolve(t.value).then(r,l);c((n=n.apply(t,e)).next())}));const m=Math.min,g=Math.max,y=Math.round,x=Math.floor,v=t=>({x:t,y:t}),w={left:"right",right:"left",bottom:"top",top:"bottom"},b={start:"end",end:"start"};function R(t,e,n){return g(t,m(e,n))}function O(t,e){return"function"==typeof t?t(e):t}function T(t){return t.split("-")[0]}function E(t){return t.split("-")[1]}function L(t){return"x"===t?"y":"x"}function A(t){return"y"===t?"height":"width"}function P(t){return["top","bottom"].includes(T(t))?"y":"x"}function D(t){return L(P(t))}function S(t){return t.replace(/start|end/g,(t=>b[t]))}function k(t){return t.replace(/left|right|bottom|top/g,(t=>w[t]))}function C(t){return"number"!=typeof t?function(t){return u({top:0,right:0,bottom:0,left:0},t)}(t):{top:t,right:t,bottom:t,left:t}}function F(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function H(t,e,n){let{reference:o,floating:i}=t;const r=P(e),l=D(e),c=A(l),s=T(e),f="y"===r,a=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,d=o[c]/2-i[c]/2;let p;switch(s){case"top":p={x:a,y:o.y-i.height};break;case"bottom":p={x:a,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:u};break;case"left":p={x:o.x-i.width,y:u};break;default:p={x:o.x,y:o.y}}switch(E(e)){case"start":p[l]-=d*(n&&f?-1:1);break;case"end":p[l]+=d*(n&&f?-1:1)}return p}function W(t,e){return h(this,null,(function*(){var n;void 0===e&&(e={});const{x:o,y:i,platform:r,rects:l,elements:c,strategy:s}=t,{boundary:f="clippingAncestors",rootBoundary:a="viewport",elementContext:u="floating",altBoundary:d=!1,padding:p=0}=O(e,t),h=C(p),m=c[d?"floating"===u?"reference":"floating":u],g=F(yield r.getClippingRect({element:null==(n=yield null==r.isElement?void 0:r.isElement(m))||n?m:m.contextElement||(yield null==r.getDocumentElement?void 0:r.getDocumentElement(c.floating)),boundary:f,rootBoundary:a,strategy:s})),y="floating"===u?{x:o,y:i,width:l.floating.width,height:l.floating.height}:l.reference,x=yield null==r.getOffsetParent?void 0:r.getOffsetParent(c.floating),v=(yield null==r.isElement?void 0:r.isElement(x))&&(yield null==r.getScale?void 0:r.getScale(x))||{x:1,y:1},w=F(r.convertOffsetParentRelativeRectToViewportRelativeRect?yield r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:y,offsetParent:x,strategy:s}):y);return{top:(g.top-w.top+h.top)/v.y,bottom:(w.bottom-g.bottom+h.bottom)/v.y,left:(g.left-w.left+h.left)/v.x,right:(w.right-g.right+h.right)/v.x}}))}function j(){return"undefined"!=typeof window}function _(t){return M(t)?(t.nodeName||"").toLowerCase():"#document"}function B(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function V(t){var e;return null==(e=(M(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function M(t){return!!j()&&(t instanceof Node||t instanceof B(t).Node)}function z(t){return!!j()&&(t instanceof Element||t instanceof B(t).Element)}function N(t){return!!j()&&(t instanceof HTMLElement||t instanceof B(t).HTMLElement)}function $(t){return!(!j()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof B(t).ShadowRoot)}function I(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=K(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!["inline","contents"].includes(i)}function q(t){return["table","td","th"].includes(_(t))}function X(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function Y(t){const e=G(),n=z(t)?K(t):t;return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function G(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function J(t){return["html","body","#document"].includes(_(t))}function K(t){return B(t).getComputedStyle(t)}function Q(t){return z(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function U(t){if("html"===_(t))return t;const e=t.assignedSlot||t.parentNode||$(t)&&t.host||V(t);return $(e)?e.host:e}function Z(t){const e=U(t);return J(e)?t.ownerDocument?t.ownerDocument.body:t.body:N(e)&&I(e)?e:Z(e)}function tt(t,e,n){var o;void 0===e&&(e=[]),void 0===n&&(n=!0);const i=Z(t),r=i===(null==(o=t.ownerDocument)?void 0:o.body),l=B(i);if(r){const t=et(l);return e.concat(l,l.visualViewport||[],I(i)?i:[],t&&n?tt(t):[])}return e.concat(i,tt(i,[],n))}function et(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function nt(t){const e=K(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=N(t),r=i?t.offsetWidth:n,l=i?t.offsetHeight:o,c=y(n)!==r||y(o)!==l;return c&&(n=r,o=l),{width:n,height:o,$:c}}function ot(t){return z(t)?t:t.contextElement}function it(t){const e=ot(t);if(!N(e))return v(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=nt(e);let l=(r?y(n.width):n.width)/o,c=(r?y(n.height):n.height)/i;return l&&Number.isFinite(l)||(l=1),c&&Number.isFinite(c)||(c=1),{x:l,y:c}}const rt=v(0);function lt(t){const e=B(t);return G()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:rt}function ct(t,e,n,o){void 0===e&&(e=!1),void 0===n&&(n=!1);const i=t.getBoundingClientRect(),r=ot(t);let l=v(1);e&&(o?z(o)&&(l=it(o)):l=it(t));const c=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==B(t))&&e}(r,n,o)?lt(r):v(0);let s=(i.left+c.x)/l.x,f=(i.top+c.y)/l.y,a=i.width/l.x,u=i.height/l.y;if(r){const t=B(r),e=o&&z(o)?B(o):o;let n=t,i=et(n);for(;i&&o&&e!==n;){const t=it(i),e=i.getBoundingClientRect(),o=K(i),r=e.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,l=e.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;s*=t.x,f*=t.y,a*=t.x,u*=t.y,s+=r,f+=l,n=B(i),i=et(n)}}return F({width:a,height:u,x:s,y:f})}function st(t,e){const n=Q(t).scrollLeft;return e?e.left+n:ct(V(t)).left+n}function ft(t,e,n){void 0===n&&(n=!1);const o=t.getBoundingClientRect();return{x:o.left+e.scrollLeft-(n?0:st(t,o)),y:o.top+e.scrollTop}}function at(t,e,n){let o;if("viewport"===e)o=function(t,e){const n=B(t),o=V(t),i=n.visualViewport;let r=o.clientWidth,l=o.clientHeight,c=0,s=0;if(i){r=i.width,l=i.height;const t=G();(!t||t&&"fixed"===e)&&(c=i.offsetLeft,s=i.offsetTop)}return{width:r,height:l,x:c,y:s}}(t,n);else if("document"===e)o=function(t){const e=V(t),n=Q(t),o=t.ownerDocument.body,i=g(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=g(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let l=-n.scrollLeft+st(t);const c=-n.scrollTop;return"rtl"===K(o).direction&&(l+=g(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:l,y:c}}(V(t));else if(z(e))o=function(t,e){const n=ct(t,!0,"fixed"===e),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=N(t)?it(t):v(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:i*r.x,y:o*r.y}}(e,n);else{const n=lt(t);o={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return F(o)}function ut(t,e){const n=U(t);return!(n===e||!z(n)||J(n))&&("fixed"===K(n).position||ut(n,e))}function dt(t,e,n){const o=N(e),i=V(e),r="fixed"===n,l=ct(t,!0,r,e);let c={scrollLeft:0,scrollTop:0};const s=v(0);if(o||!o&&!r)if(("body"!==_(e)||I(i))&&(c=Q(e)),o){const t=ct(e,!0,r,e);s.x=t.x+e.clientLeft,s.y=t.y+e.clientTop}else i&&(s.x=st(i));const f=!i||o||r?v(0):ft(i,c);return{x:l.left+c.scrollLeft-s.x-f.x,y:l.top+c.scrollTop-s.y-f.y,width:l.width,height:l.height}}function pt(t){return"static"===K(t).position}function ht(t,e){if(!N(t)||"fixed"===K(t).position)return null;if(e)return e(t);let n=t.offsetParent;return V(t)===n&&(n=n.ownerDocument.body),n}function mt(t,e){const n=B(t);if(X(t))return n;if(!N(t)){let e=U(t);for(;e&&!J(e);){if(z(e)&&!pt(e))return e;e=U(e)}return n}let o=ht(t,e);for(;o&&q(o)&&pt(o);)o=ht(o,e);return o&&J(o)&&pt(o)&&!Y(o)?n:o||function(t){let e=U(t);for(;N(e)&&!J(e);){if(Y(e))return e;if(X(e))return null;e=U(e)}return null}(t)||n}const gt={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r="fixed"===i,l=V(o),c=!!e&&X(e.floating);if(o===l||c&&r)return n;let s={scrollLeft:0,scrollTop:0},f=v(1);const a=v(0),u=N(o);if((u||!u&&!r)&&(("body"!==_(o)||I(l))&&(s=Q(o)),N(o))){const t=ct(o);f=it(o),a.x=t.x+o.clientLeft,a.y=t.y+o.clientTop}const d=!l||u||r?v(0):ft(l,s,!0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-s.scrollLeft*f.x+a.x+d.x,y:n.y*f.y-s.scrollTop*f.y+a.y+d.y}},getDocumentElement:V,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=[..."clippingAncestors"===n?X(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let o=tt(t,[],!1).filter((t=>z(t)&&"body"!==_(t))),i=null;const r="fixed"===K(t).position;let l=r?U(t):t;for(;z(l)&&!J(l);){const e=K(l),n=Y(l);n||"fixed"!==e.position||(i=null),(r?!n&&!i:!n&&"static"===e.position&&i&&["absolute","fixed"].includes(i.position)||I(l)&&!n&&ut(t,l))?o=o.filter((t=>t!==l)):i=e,l=U(l)}return e.set(t,o),o}(e,this._c):[].concat(n),o],l=r[0],c=r.reduce(((t,n)=>{const o=at(e,n,i);return t.top=g(o.top,t.top),t.right=m(o.right,t.right),t.bottom=m(o.bottom,t.bottom),t.left=g(o.left,t.left),t}),at(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}},getOffsetParent:mt,getElementRects:function(t){return h(this,null,(function*(){const e=this.getOffsetParent||mt,n=this.getDimensions,o=yield n(t.floating);return{reference:dt(t.reference,yield e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}}))},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=nt(t);return{width:e,height:n}},getScale:it,isElement:z,isRTL:function(t){return"rtl"===K(t).direction}};function yt(t,e,n,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:l="function"==typeof ResizeObserver,layoutShift:c="function"==typeof IntersectionObserver,animationFrame:s=!1}=o,f=ot(t),a=i||r?[...f?tt(f):[],...tt(e)]:[];a.forEach((t=>{i&&t.addEventListener("scroll",n,{passive:!0}),r&&t.addEventListener("resize",n)}));const p=f&&c?function(t,e){let n,o=null;const i=V(t);function r(){var t;clearTimeout(n),null==(t=o)||t.disconnect(),o=null}return function l(c,s){void 0===c&&(c=!1),void 0===s&&(s=1),r();const{left:f,top:a,width:p,height:h}=t.getBoundingClientRect();if(c||e(),!p||!h)return;const y={rootMargin:-x(a)+"px "+-x(i.clientWidth-(f+p))+"px "+-x(i.clientHeight-(a+h))+"px "+-x(f)+"px",threshold:g(0,m(1,s))||1};let v=!0;function w(t){const e=t[0].intersectionRatio;if(e!==s){if(!v)return l();e?l(!1,e):n=setTimeout((()=>{l(!1,1e-7)}),1e3)}v=!1}try{o=new IntersectionObserver(w,d(u({},y),{root:i.ownerDocument}))}catch(t){o=new IntersectionObserver(w,y)}o.observe(t)}(!0),r}(f,n):null;let h,y=-1,v=null;l&&(v=new ResizeObserver((t=>{let[o]=t;o&&o.target===f&&v&&(v.unobserve(e),cancelAnimationFrame(y),y=requestAnimationFrame((()=>{var t;null==(t=v)||t.observe(e)}))),n()})),f&&!s&&v.observe(f),v.observe(e));let w=s?ct(t):null;return s&&function e(){const o=ct(t);!w||o.x===w.x&&o.y===w.y&&o.width===w.width&&o.height===w.height||n(),w=o,h=requestAnimationFrame(e)}(),n(),()=>{var t;a.forEach((t=>{i&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n)})),null==p||p(),null==(t=v)||t.disconnect(),v=null,s&&cancelAnimationFrame(h)}}const xt=function(t){return void 0===t&&(t={}),{name:"shift",options:t,fn(e){return h(this,null,(function*(){const{x:n,y:o,placement:i}=e,r=O(t,e),{mainAxis:l=!0,crossAxis:c=!1,limiter:s={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}}}=r,f=p(r,["mainAxis","crossAxis","limiter"]),a={x:n,y:o},h=yield W(e,f),m=P(T(i)),g=L(m);let y=a[g],x=a[m];if(l){const t="y"===g?"bottom":"right";y=R(y+h["y"===g?"top":"left"],y,y-h[t])}if(c){const t="y"===m?"bottom":"right";x=R(x+h["y"===m?"top":"left"],x,x-h[t])}const v=s.fn(d(u({},e),{[g]:y,[m]:x}));return d(u({},v),{data:{x:v.x-n,y:v.y-o}})}))}}},vt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,fn(e){return h(this,null,(function*(){var n,o;const{placement:i,middlewareData:r,rects:l,initialPlacement:c,platform:s,elements:f}=e,a=O(t,e),{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:y=!0}=a,x=p(a,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const v=T(i),w=P(c),b=T(c)===c,R=yield null==s.isRTL?void 0:s.isRTL(f.floating),L=h||(b||!y?[k(c)]:function(t){const e=k(t);return[S(t),e,S(e)]}(c)),C="none"!==g;!h&&C&&L.push(...function(t,e,n,o){const i=E(t);let r=function(t,e,n){const o=["left","right"],i=["right","left"],r=["top","bottom"],l=["bottom","top"];switch(t){case"top":case"bottom":return n?e?i:o:e?o:i;case"left":case"right":return e?r:l;default:return[]}}(T(t),"start"===n,o);return i&&(r=r.map((t=>t+"-"+i)),e&&(r=r.concat(r.map(S)))),r}(c,y,g,R));const F=[c,...L],H=yield W(e,x),j=[];let _=(null==(o=r.flip)?void 0:o.overflows)||[];if(u&&j.push(H[v]),d){const t=function(t,e,n){void 0===n&&(n=!1);const o=E(t),i=D(t),r=A(i);let l="x"===i?o===(n?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[r]>e.floating[r]&&(l=k(l)),[l,k(l)]}(i,l,R);j.push(H[t[0]],H[t[1]])}if(_=[..._,{placement:i,overflows:j}],!j.every((t=>t<=0))){var B,V;const t=((null==(B=r.flip)?void 0:B.index)||0)+1,e=F[t];if(e)return{data:{index:t,overflows:_},reset:{placement:e}};let n=null==(V=_.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:V.placement;if(!n)switch(m){case"bestFit":{var M;const t=null==(M=_.filter((t=>{if(C){const e=P(t.placement);return e===w||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:M[0];t&&(n=t);break}case"initialPlacement":n=c}if(i!==n)return{reset:{placement:n}}}return{}}))}}},wt=t=>({name:"arrow",options:t,fn(e){return h(this,null,(function*(){const{x:n,y:o,placement:i,rects:r,platform:l,elements:c,middlewareData:s}=e,{element:f,padding:a=0}=O(t,e)||{};if(null==f)return{};const d=C(a),p={x:n,y:o},h=D(i),g=A(h),y=yield l.getDimensions(f),x="y"===h,v=x?"top":"left",w=x?"bottom":"right",b=x?"clientHeight":"clientWidth",T=r.reference[g]+r.reference[h]-p[h]-r.floating[g],L=p[h]-r.reference[h],P=yield null==l.getOffsetParent?void 0:l.getOffsetParent(f);let S=P?P[b]:0;S&&(yield null==l.isElement?void 0:l.isElement(P))||(S=c.floating[b]||r.floating[g]);const k=T/2-L/2,F=S/2-y[g]/2-1,H=m(d[v],F),W=m(d[w],F),j=H,_=S-y[g]-W,B=S/2-y[g]/2+k,V=R(j,B,_),M=!s.arrow&&null!=E(i)&&B!==V&&r.reference[g]/2-(B<j?H:W)-y[g]/2<0,z=M?B<j?B-j:B-_:0;return{[h]:p[h]+z,data:u({[h]:V,centerOffset:B-V-z},M&&{alignmentOffset:z}),reset:M}}))}}),bt=t=>h(void 0,[t],(function*({floatingElement:t,referenceElement:e,arrowElement:n,align:i="top"}){var r,l,c,s;if("test"!==o.p){const o=[(s=null!==(r=null==n?void 0:n.offsetHeight)&&void 0!==r?r:10,void 0===s&&(s=0),{name:"offset",options:s,fn(t){return h(this,null,(function*(){var e,n;const{x:o,y:i,placement:r,middlewareData:l}=t,c=yield function(t,e){return h(this,null,(function*(){const{placement:n,platform:o,elements:i}=t,r=yield null==o.isRTL?void 0:o.isRTL(i.floating),l=T(n),c=E(n),s="y"===P(n),f=["left","top"].includes(l)?-1:1,a=r&&s?-1:1,d=O(e,t);let{mainAxis:p,crossAxis:h,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:u({mainAxis:0,crossAxis:0,alignmentAxis:null},d);return c&&"number"==typeof m&&(h="end"===c?-1*m:m),s?{x:h*a,y:p*f}:{x:p*f,y:h*a}}))}(t,s);return r===(null==(e=l.offset)?void 0:e.placement)&&null!=(n=l.arrow)&&n.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:d(u({},c),{placement:r})}}))}}),vt(),xt()];n&&o.push(wt({element:n}));const{x:f,y:a,middlewareData:p,placement:m}=yield((t,e,n)=>{const o=new Map,i=u({platform:gt},n),r=d(u({},i.platform),{_c:o});return((t,e,n)=>h(void 0,null,(function*(){const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:l}=n,c=r.filter(Boolean),s=yield null==l.isRTL?void 0:l.isRTL(e);let f=yield l.getElementRects({reference:t,floating:e,strategy:i}),{x:a,y:p}=H(f,o,s),h=o,m={},g=0;for(let n=0;n<c.length;n++){const{name:r,fn:y}=c[n],{x,y:v,data:w,reset:b}=yield y({x:a,y:p,initialPlacement:o,placement:h,strategy:i,middlewareData:m,rects:f,platform:l,elements:{reference:t,floating:e}});a=null!=x?x:a,p=null!=v?v:p,m=d(u({},m),{[r]:u(u({},m[r]),w)}),b&&g<=50&&(g++,"object"==typeof b&&(b.placement&&(h=b.placement),b.rects&&(f=!0===b.rects?yield l.getElementRects({reference:t,floating:e,strategy:i}):b.rects),({x:a,y:p}=H(f,h,s))),n=-1)}return{x:a,y:p,placement:h,strategy:i,middlewareData:m}})))(t,e,d(u({},i),{platform:r}))})(e,t,{placement:i,middleware:o,strategy:"fixed"});Object.assign(t.style,{left:`${f}px`,top:`${a}px`,visibility:"visible"}),n&&((null===(l=p.arrow)||void 0===l?void 0:l.x)?Object.assign(n.style,{left:`${p.arrow.x}px`,top:"bottom"===m?-n.offsetHeight/2+"px":"",bottom:"top"===m?-n.offsetHeight/2+"px":""}):(null===(c=p.arrow)||void 0===c?void 0:c.y)&&Object.assign(n.style,{left:"right"===m?-n.offsetWidth/2+"px":"",right:"left"===m?-n.offsetWidth/2+"px":"",top:`${p.arrow.y}px`}))}}))}}]);