@public-ui/components 4.0.1 → 4.0.2-rc.0

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 (1046) hide show
  1. package/assets/kolicons/kolicons.eot +0 -0
  2. package/assets/kolicons/kolicons.ttf +0 -0
  3. package/assets/kolicons/kolicons.woff +0 -0
  4. package/assets/kolicons/kolicons.woff2 +0 -0
  5. package/assets/kolicons/style.css +6 -6
  6. package/custom-elements.json +1 -1
  7. package/dist/cjs/{Alert-CpYj4v7g.js → Alert-DtQ03z8O.js} +1 -1
  8. package/dist/cjs/Alert-DtQ03z8O.js.map +1 -0
  9. package/dist/cjs/{Collapsible-DrJS6rNQ.js → Collapsible-DohAM07j.js} +1 -1
  10. package/dist/cjs/Collapsible-DohAM07j.js.map +1 -0
  11. package/dist/cjs/{CustomSuggestionsOptionsGroup-DAcN4YFU.js → CustomSuggestionsOptionsGroup-DHF2hK90.js} +1 -1
  12. package/dist/cjs/CustomSuggestionsOptionsGroup-DHF2hK90.js.map +1 -0
  13. package/dist/cjs/{FieldControlStateWrapper-BJL8eQGW.js → FieldControlStateWrapper-JXdfDOo8.js} +1 -1
  14. package/dist/cjs/FieldControlStateWrapper-JXdfDOo8.js.map +1 -0
  15. package/dist/cjs/{FormFieldStateWrapper-JRuyDpZT.js → FormFieldStateWrapper-BpqhYm7P.js} +1 -1
  16. package/dist/cjs/FormFieldStateWrapper-BpqhYm7P.js.map +1 -0
  17. package/dist/cjs/{Heading-CFrR8SYV.js → Heading-ChjuBKBn.js} +1 -1
  18. package/dist/cjs/Heading-ChjuBKBn.js.map +1 -0
  19. package/dist/cjs/{Icon-XibHb7vP.js → Icon-iVhi6gU5.js} +1 -1
  20. package/dist/cjs/{Icon-XibHb7vP.js.map → Icon-iVhi6gU5.js.map} +1 -1
  21. package/dist/cjs/{Input-CYpqUdug.js → Input-COFlLL8E.js} +1 -1
  22. package/dist/cjs/Input-COFlLL8E.js.map +1 -0
  23. package/dist/cjs/{InputStateWrapper-CDV4KcGi.js → InputStateWrapper-C1fhfznM.js} +1 -1
  24. package/dist/cjs/{InputStateWrapper-CDV4KcGi.js.map → InputStateWrapper-C1fhfznM.js.map} +1 -1
  25. package/dist/cjs/{InternalUnderlinedBadgeText-B9ixH4sJ.js → InternalUnderlinedBadgeText-BjwSM9G9.js} +1 -1
  26. package/dist/cjs/{InternalUnderlinedBadgeText-B9ixH4sJ.js.map → InternalUnderlinedBadgeText-BjwSM9G9.js.map} +1 -1
  27. package/dist/cjs/{Span-CnRW44mB.js → Span-BIQQV6s4.js} +1 -1
  28. package/dist/cjs/Span-BIQQV6s4.js.map +1 -0
  29. package/dist/cjs/{access-and-short-key-DwC1Fz3j.js → access-and-short-key-CCCHvYLb.js} +1 -1
  30. package/dist/cjs/{access-and-short-key-DwC1Fz3j.js.map → access-and-short-key-CCCHvYLb.js.map} +1 -1
  31. package/dist/cjs/{align-CZMTZlEl.js → align-DzESFd7M.js} +1 -1
  32. package/dist/cjs/{align-CZMTZlEl.js.map → align-DzESFd7M.js.map} +1 -1
  33. package/dist/cjs/{align-floating-elements-DhQa2Mpw.js → align-floating-elements-CDNgE1Ig.js} +1 -1
  34. package/dist/cjs/{align-floating-elements-DhQa2Mpw.js.map → align-floating-elements-CDNgE1Ig.js.map} +1 -1
  35. package/dist/cjs/{app-globals-CmfwD-Tq.js → app-globals-CLR8-07K.js} +1 -1
  36. package/dist/cjs/{app-globals-CmfwD-Tq.js.map → app-globals-CLR8-07K.js.map} +1 -1
  37. package/dist/cjs/{associated.controller-bswFXTsy.js → associated.controller-Dc2_qV0Z.js} +1 -1
  38. package/dist/cjs/{associated.controller-bswFXTsy.js.map → associated.controller-Dc2_qV0Z.js.map} +1 -1
  39. package/dist/cjs/{auto-complete-ClGDmbxf.js → auto-complete-B0qEmCG1.js} +1 -1
  40. package/dist/cjs/{auto-complete-ClGDmbxf.js.map → auto-complete-B0qEmCG1.js.map} +1 -1
  41. package/dist/cjs/{bem-DQRepkGo.js → bem-Cef7rE7D.js} +1 -1
  42. package/dist/{esm/bem-De7JANRY.js.map → cjs/bem-Cef7rE7D.js.map} +1 -1
  43. package/dist/cjs/{bem-BYT6lXKo.js → bem-DVbv_T8C.js} +1 -1
  44. package/dist/cjs/{bem-BYT6lXKo.js.map → bem-DVbv_T8C.js.map} +1 -1
  45. package/dist/cjs/{bootstrap-tq3Puc5L.js → bootstrap-CzjBcNNh.js} +1 -1
  46. package/dist/cjs/{bootstrap-tq3Puc5L.js.map → bootstrap-CzjBcNNh.js.map} +1 -1
  47. package/dist/cjs/{browser-XJa5sCFp.js → browser-V9DqtNIN.js} +1 -1
  48. package/dist/cjs/{browser-XJa5sCFp.js.map → browser-V9DqtNIN.js.map} +1 -1
  49. package/dist/cjs/{button-variant-BBuSbF-9.js → button-variant-RREhGrOx.js} +1 -1
  50. package/dist/cjs/{button-variant-BBuSbF-9.js.map → button-variant-RREhGrOx.js.map} +1 -1
  51. package/dist/cjs/clsx-RqM_0UPm.js +4 -0
  52. package/dist/cjs/clsx-RqM_0UPm.js.map +1 -0
  53. package/dist/cjs/{color-CnWT1y2W.js → color-DfrCgfcO.js} +1 -1
  54. package/dist/cjs/{color-CnWT1y2W.js.map → color-DfrCgfcO.js.map} +1 -1
  55. package/dist/cjs/common-CVrgX_aH.js +4 -0
  56. package/dist/cjs/common-CVrgX_aH.js.map +1 -0
  57. package/dist/cjs/{controller-CLYRT34c.js → controller-8WSJR4E0.js} +1 -1
  58. package/dist/cjs/{controller-CLYRT34c.js.map → controller-8WSJR4E0.js.map} +1 -1
  59. package/dist/cjs/{controller-ElAO9BF5.js → controller-BBDtG-DQ.js} +1 -1
  60. package/dist/cjs/{controller-ElAO9BF5.js.map → controller-BBDtG-DQ.js.map} +1 -1
  61. package/dist/cjs/{controller-C1bL2QKL.js → controller-C7Ks-Ios.js} +1 -1
  62. package/dist/cjs/{controller-C1bL2QKL.js.map → controller-C7Ks-Ios.js.map} +1 -1
  63. package/dist/cjs/{controller-DJARu4Su.js → controller-DNypsbyJ.js} +1 -1
  64. package/dist/cjs/{controller-DJARu4Su.js.map → controller-DNypsbyJ.js.map} +1 -1
  65. package/dist/cjs/{controller-icon-BVZaryXD.js → controller-icon-CCSs0Sxy.js} +1 -1
  66. package/dist/cjs/controller-icon-CCSs0Sxy.js.map +1 -0
  67. package/dist/cjs/{custom-class-QzhrlAuN.js → custom-class-B_Uvx6Bt.js} +1 -1
  68. package/dist/cjs/{custom-class-QzhrlAuN.js.map → custom-class-B_Uvx6Bt.js.map} +1 -1
  69. package/dist/cjs/{dev.utils-C6VGVnPR.js → dev.utils-1synHdM6.js} +1 -1
  70. package/dist/cjs/{dev.utils-C6VGVnPR.js.map → dev.utils-1synHdM6.js.map} +1 -1
  71. package/dist/cjs/{devtools-Cg0IG1hR.js → devtools-DIruBryI.js} +1 -1
  72. package/dist/cjs/{devtools-Cg0IG1hR.js.map → devtools-DIruBryI.js.map} +1 -1
  73. package/dist/cjs/{disabled-CaeFOFNv.js → disabled-ho9HYcbB.js} +1 -1
  74. package/dist/cjs/{disabled-CaeFOFNv.js.map → disabled-ho9HYcbB.js.map} +1 -1
  75. package/dist/cjs/{has-closer-Bpl3HJQj.js → has-closer-B64BnLIe.js} +1 -1
  76. package/dist/cjs/{has-closer-Bpl3HJQj.js.map → has-closer-B64BnLIe.js.map} +1 -1
  77. package/dist/cjs/{hide-label-DJdjz8C9.js → hide-label-BHDqUYc4.js} +1 -1
  78. package/dist/cjs/{hide-label-DJdjz8C9.js.map → hide-label-BHDqUYc4.js.map} +1 -1
  79. package/dist/cjs/href-C8mn_7dz.js +4 -0
  80. package/dist/cjs/{href-DbWhzuXj.js.map → href-C8mn_7dz.js.map} +1 -1
  81. package/dist/cjs/{i18n-D4Klw_bZ.js → i18n-FiBKm5tC.js} +1 -1
  82. package/dist/cjs/{i18n-D4Klw_bZ.js.map → i18n-FiBKm5tC.js.map} +1 -1
  83. package/dist/cjs/{icons-DIWMA5U2.js → icons-Djpux97E.js} +1 -1
  84. package/dist/cjs/{icons-DIWMA5U2.js.map → icons-Djpux97E.js.map} +1 -1
  85. package/dist/cjs/{image-source-D4a1NLKp.js → image-source-BdvjXd4U.js} +1 -1
  86. package/dist/cjs/{image-source-D4a1NLKp.js.map → image-source-BdvjXd4U.js.map} +1 -1
  87. package/dist/cjs/index-CGQ9yED5.js +4 -0
  88. package/dist/cjs/index-CGQ9yED5.js.map +1 -0
  89. package/dist/cjs/index.cjs.js +1 -1
  90. package/dist/cjs/{inline-D-mXNqRI.js → inline-ZGTkjfT_.js} +1 -1
  91. package/dist/cjs/{inline-D-mXNqRI.js.map → inline-ZGTkjfT_.js.map} +1 -1
  92. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  93. package/dist/cjs/kol-abbr.entry.cjs.js.map +1 -1
  94. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  95. package/dist/cjs/kol-accordion.entry.cjs.js.map +1 -1
  96. package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
  97. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  98. package/dist/cjs/kol-alert.entry.cjs.js.map +1 -1
  99. package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
  100. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  101. package/dist/cjs/kol-avatar.entry.cjs.js.map +1 -1
  102. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  103. package/dist/cjs/kol-badge.entry.cjs.js.map +1 -1
  104. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  105. package/dist/cjs/kol-breadcrumb.entry.cjs.js.map +1 -1
  106. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  107. package/dist/cjs/kol-button-link.entry.cjs.js.map +1 -1
  108. package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
  109. package/dist/cjs/kol-button-wc.entry.cjs.js.map +1 -1
  110. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  111. package/dist/cjs/kol-button.entry.cjs.js.map +1 -1
  112. package/dist/cjs/kol-card-wc.cjs.entry.js +1 -1
  113. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  114. package/dist/cjs/kol-card.entry.cjs.js.map +1 -1
  115. package/dist/cjs/kol-combobox.cjs.entry.js +1 -1
  116. package/dist/cjs/kol-combobox.entry.cjs.js.map +1 -1
  117. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  118. package/dist/cjs/kol-details.entry.cjs.js.map +1 -1
  119. package/dist/cjs/kol-dialog-wc.cjs.entry.js +1 -1
  120. package/dist/cjs/kol-dialog-wc.entry.cjs.js.map +1 -1
  121. package/dist/cjs/kol-dialog.cjs.entry.js +1 -1
  122. package/dist/cjs/kol-dialog.entry.cjs.js.map +1 -1
  123. package/dist/cjs/kol-drawer.cjs.entry.js +1 -1
  124. package/dist/cjs/kol-drawer.entry.cjs.js.map +1 -1
  125. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  126. package/dist/cjs/kol-form.entry.cjs.js.map +1 -1
  127. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  128. package/dist/cjs/kol-heading.entry.cjs.js.map +1 -1
  129. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  130. package/dist/cjs/kol-icon.entry.cjs.js.map +1 -1
  131. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  132. package/dist/cjs/kol-image.entry.cjs.js.map +1 -1
  133. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  134. package/dist/cjs/kol-input-checkbox.entry.cjs.js.map +1 -1
  135. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  136. package/dist/cjs/kol-input-color.entry.cjs.js.map +1 -1
  137. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  138. package/dist/cjs/kol-input-date.entry.cjs.js.map +1 -1
  139. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  140. package/dist/cjs/kol-input-email.entry.cjs.js.map +1 -1
  141. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  142. package/dist/cjs/kol-input-file.entry.cjs.js.map +1 -1
  143. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  144. package/dist/cjs/kol-input-number.entry.cjs.js.map +1 -1
  145. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  146. package/dist/cjs/kol-input-password.entry.cjs.js.map +1 -1
  147. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  148. package/dist/cjs/kol-input-radio.entry.cjs.js.map +1 -1
  149. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  150. package/dist/cjs/kol-input-range.entry.cjs.js.map +1 -1
  151. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  152. package/dist/cjs/kol-input-text.entry.cjs.js.map +1 -1
  153. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  154. package/dist/cjs/kol-kolibri.entry.cjs.js.map +1 -1
  155. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  156. package/dist/cjs/kol-link-button.entry.cjs.js.map +1 -1
  157. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  158. package/dist/cjs/kol-link-wc.entry.cjs.js.map +1 -1
  159. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  160. package/dist/cjs/kol-link.entry.cjs.js.map +1 -1
  161. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  162. package/dist/cjs/kol-modal.entry.cjs.js.map +1 -1
  163. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  164. package/dist/cjs/kol-nav.entry.cjs.js.map +1 -1
  165. package/dist/cjs/kol-pagination-wc.cjs.entry.js +1 -1
  166. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  167. package/dist/cjs/kol-pagination.entry.cjs.js.map +1 -1
  168. package/dist/cjs/kol-popover-button-wc.cjs.entry.js +1 -1
  169. package/dist/cjs/kol-popover-button-wc.entry.cjs.js.map +1 -1
  170. package/dist/cjs/kol-popover-button.cjs.entry.js +1 -1
  171. package/dist/cjs/kol-popover-button.entry.cjs.js.map +1 -1
  172. package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
  173. package/dist/cjs/kol-popover-wc.entry.cjs.js.map +1 -1
  174. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  175. package/dist/cjs/kol-progress.entry.cjs.js.map +1 -1
  176. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  177. package/dist/cjs/kol-quote.entry.cjs.js.map +1 -1
  178. package/dist/cjs/kol-select-wc.cjs.entry.js +1 -1
  179. package/dist/cjs/kol-select-wc.entry.cjs.js.map +1 -1
  180. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  181. package/dist/cjs/kol-select.entry.cjs.js.map +1 -1
  182. package/dist/cjs/kol-single-select.cjs.entry.js +1 -1
  183. package/dist/cjs/kol-single-select.entry.cjs.js.map +1 -1
  184. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  185. package/dist/cjs/kol-skip-nav.entry.cjs.js.map +1 -1
  186. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  187. package/dist/cjs/kol-spin.entry.cjs.js.map +1 -1
  188. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  189. package/dist/cjs/kol-split-button.entry.cjs.js.map +1 -1
  190. package/dist/cjs/kol-table-settings-wc.cjs.entry.js +1 -1
  191. package/dist/cjs/kol-table-stateful.cjs.entry.js +1 -1
  192. package/dist/cjs/kol-table-stateful.entry.cjs.js.map +1 -1
  193. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +1 -1
  194. package/dist/cjs/kol-table-stateless-wc.entry.cjs.js.map +1 -1
  195. package/dist/cjs/kol-table-stateless.cjs.entry.js +1 -1
  196. package/dist/cjs/kol-table-stateless.entry.cjs.js.map +1 -1
  197. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  198. package/dist/cjs/kol-tabs.entry.cjs.js.map +1 -1
  199. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  200. package/dist/cjs/kol-textarea.entry.cjs.js.map +1 -1
  201. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  202. package/dist/cjs/kol-toast-container.entry.cjs.js.map +1 -1
  203. package/dist/cjs/kol-toolbar.cjs.entry.js +1 -1
  204. package/dist/cjs/kol-toolbar.entry.cjs.js.map +1 -1
  205. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
  206. package/dist/cjs/kol-tooltip-wc.entry.cjs.js.map +1 -1
  207. package/dist/cjs/kol-tree-item-wc.cjs.entry.js +1 -1
  208. package/dist/cjs/kol-tree-item-wc.entry.cjs.js.map +1 -1
  209. package/dist/cjs/kol-tree-item.cjs.entry.js +1 -1
  210. package/dist/cjs/kol-tree-item.entry.cjs.js.map +1 -1
  211. package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
  212. package/dist/cjs/kol-tree.cjs.entry.js +1 -1
  213. package/dist/cjs/kol-tree.entry.cjs.js.map +1 -1
  214. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  215. package/dist/cjs/kol-version.entry.cjs.js.map +1 -1
  216. package/dist/cjs/kolibri.cjs.js +1 -1
  217. package/dist/cjs/{label-6ELpV3zN.js → label-hrZgP5L2.js} +1 -1
  218. package/dist/cjs/{label-6ELpV3zN.js.map → label-hrZgP5L2.js.map} +1 -1
  219. package/dist/cjs/loader.cjs.js +1 -1
  220. package/dist/cjs/{markdown-3A2I0-h0.js → markdown-BBFG59OM.js} +1 -1
  221. package/dist/cjs/{markdown-3A2I0-h0.js.map → markdown-BBFG59OM.js.map} +1 -1
  222. package/dist/cjs/{max-length-behavior-4-1HVlnW.js → max-length-behavior-C_yhihNc.js} +1 -1
  223. package/dist/cjs/{max-length-behavior-4-1HVlnW.js.map → max-length-behavior-C_yhihNc.js.map} +1 -1
  224. package/dist/cjs/multiple-BfRsaJ2k.js +4 -0
  225. package/dist/cjs/{multiple-BEeLswnf.js.map → multiple-BfRsaJ2k.js.map} +1 -1
  226. package/dist/cjs/{open-Cmj73Yck.js → open-CfLMA-RZ.js} +1 -1
  227. package/dist/cjs/{open-Cmj73Yck.js.map → open-CfLMA-RZ.js.map} +1 -1
  228. package/dist/cjs/{orientation-Dd8-hTEK.js → orientation-DaPu8bkO.js} +1 -1
  229. package/dist/cjs/{orientation-Dd8-hTEK.js.map → orientation-DaPu8bkO.js.map} +1 -1
  230. package/dist/cjs/placeholder-CvU6WlSk.js +4 -0
  231. package/dist/cjs/{placeholder-DgaWXVvw.js.map → placeholder-CvU6WlSk.js.map} +1 -1
  232. package/dist/cjs/{read-only-CqH4Yl3E.js → read-only-DHgqkIJn.js} +1 -1
  233. package/dist/cjs/{read-only-CqH4Yl3E.js.map → read-only-DHgqkIJn.js.map} +1 -1
  234. package/dist/cjs/required-Dr4BJesp.js +4 -0
  235. package/dist/cjs/{required-CQRVrSKV.js.map → required-Dr4BJesp.js.map} +1 -1
  236. package/dist/cjs/{rows-CHmhNWwq.js → rows-fcel-z8f.js} +1 -1
  237. package/dist/cjs/{rows-CHmhNWwq.js.map → rows-fcel-z8f.js.map} +1 -1
  238. package/dist/cjs/show-Dm9sQZab.js +4 -0
  239. package/dist/cjs/{show-uOPnYOEA.js.map → show-Dm9sQZab.js.map} +1 -1
  240. package/dist/cjs/{spell-check-BxAjybZv.js → spell-check-BFf7iqEk.js} +1 -1
  241. package/dist/cjs/{spell-check-BxAjybZv.js.map → spell-check-BFf7iqEk.js.map} +1 -1
  242. package/dist/cjs/{suggestions-Dc0ibSs8.js → suggestions-B4hAyBjd.js} +1 -1
  243. package/dist/cjs/{suggestions-Dc0ibSs8.js.map → suggestions-B4hAyBjd.js.map} +1 -1
  244. package/dist/cjs/{table-selection-Db8SGRVp.js → table-selection-iU84Nx6I.js} +1 -1
  245. package/dist/cjs/{table-selection-Db8SGRVp.js.map → table-selection-iU84Nx6I.js.map} +1 -1
  246. package/dist/cjs/test-component.cjs.entry.js +1 -1
  247. package/dist/cjs/tooltip-align-BlhMTd6l.js +4 -0
  248. package/dist/cjs/{tooltip-align-Bmn7e65O.js.map → tooltip-align-BlhMTd6l.js.map} +1 -1
  249. package/dist/cjs/{unique-nav-labels-DfG2EZs_.js → unique-nav-labels-C1o76hW1.js} +1 -1
  250. package/dist/cjs/{unique-nav-labels-DfG2EZs_.js.map → unique-nav-labels-C1o76hW1.js.map} +1 -1
  251. package/dist/cjs/{validation-DBGuassN.js → validation-B3X8CC75.js} +1 -1
  252. package/dist/cjs/{validation-DBGuassN.js.map → validation-B3X8CC75.js.map} +1 -1
  253. package/dist/cjs/{validation-BNj07e2T.js → validation-CSn_8imy.js} +1 -1
  254. package/dist/cjs/{validation-BNj07e2T.js.map → validation-CSn_8imy.js.map} +1 -1
  255. package/dist/components/Alert.js +1 -1
  256. package/dist/components/Alert.js.map +1 -1
  257. package/dist/components/Collapsible.js +1 -1
  258. package/dist/components/Collapsible.js.map +1 -1
  259. package/dist/components/CustomSuggestionsOptionsGroup.js.map +1 -1
  260. package/dist/components/FieldControlStateWrapper.js +1 -1
  261. package/dist/components/FieldControlStateWrapper.js.map +1 -1
  262. package/dist/components/Heading.js.map +1 -1
  263. package/dist/components/Input.js +1 -1
  264. package/dist/components/Input.js.map +1 -1
  265. package/dist/components/Span.js.map +1 -1
  266. package/dist/components/bem2.js +1 -1
  267. package/dist/components/bem2.js.map +1 -1
  268. package/dist/components/clsx.js +1 -1
  269. package/dist/components/clsx.js.map +1 -1
  270. package/dist/components/common.js +1 -1
  271. package/dist/components/common.js.map +1 -1
  272. package/dist/components/controller-icon.js +1 -1
  273. package/dist/components/controller-icon.js.map +1 -1
  274. package/dist/components/controller2.js +1 -1
  275. package/dist/components/controller2.js.map +1 -1
  276. package/dist/components/kol-abbr.js +1 -1
  277. package/dist/components/kol-abbr.js.map +1 -1
  278. package/dist/components/kol-accordion.js +1 -1
  279. package/dist/components/kol-accordion.js.map +1 -1
  280. package/dist/components/kol-alert.js +1 -1
  281. package/dist/components/kol-alert.js.map +1 -1
  282. package/dist/components/kol-avatar.js +1 -1
  283. package/dist/components/kol-avatar.js.map +1 -1
  284. package/dist/components/kol-badge.js +1 -1
  285. package/dist/components/kol-badge.js.map +1 -1
  286. package/dist/components/kol-breadcrumb.js +1 -1
  287. package/dist/components/kol-breadcrumb.js.map +1 -1
  288. package/dist/components/kol-button-link.js +1 -1
  289. package/dist/components/kol-button-link.js.map +1 -1
  290. package/dist/components/kol-button-wc.js +1 -1
  291. package/dist/components/kol-button-wc.js.map +1 -1
  292. package/dist/components/kol-button.js +1 -1
  293. package/dist/components/kol-button.js.map +1 -1
  294. package/dist/components/kol-card.js +1 -1
  295. package/dist/components/kol-card.js.map +1 -1
  296. package/dist/components/kol-combobox.js +1 -1
  297. package/dist/components/kol-combobox.js.map +1 -1
  298. package/dist/components/kol-details.js +1 -1
  299. package/dist/components/kol-details.js.map +1 -1
  300. package/dist/components/kol-dialog-wc.js +1 -1
  301. package/dist/components/kol-dialog-wc.js.map +1 -1
  302. package/dist/components/kol-dialog.js +1 -1
  303. package/dist/components/kol-dialog.js.map +1 -1
  304. package/dist/components/kol-drawer.js +1 -1
  305. package/dist/components/kol-drawer.js.map +1 -1
  306. package/dist/components/kol-form.js +1 -1
  307. package/dist/components/kol-form.js.map +1 -1
  308. package/dist/components/kol-heading.js +1 -1
  309. package/dist/components/kol-heading.js.map +1 -1
  310. package/dist/components/kol-icon.js +1 -1
  311. package/dist/components/kol-icon.js.map +1 -1
  312. package/dist/components/kol-image.js +1 -1
  313. package/dist/components/kol-image.js.map +1 -1
  314. package/dist/components/kol-input-checkbox.js +1 -1
  315. package/dist/components/kol-input-checkbox.js.map +1 -1
  316. package/dist/components/kol-input-color.js +1 -1
  317. package/dist/components/kol-input-color.js.map +1 -1
  318. package/dist/components/kol-input-date.js +1 -1
  319. package/dist/components/kol-input-date.js.map +1 -1
  320. package/dist/components/kol-input-email.js +1 -1
  321. package/dist/components/kol-input-email.js.map +1 -1
  322. package/dist/components/kol-input-file.js +1 -1
  323. package/dist/components/kol-input-file.js.map +1 -1
  324. package/dist/components/kol-input-number.js +1 -1
  325. package/dist/components/kol-input-number.js.map +1 -1
  326. package/dist/components/kol-input-password.js +1 -1
  327. package/dist/components/kol-input-password.js.map +1 -1
  328. package/dist/components/kol-input-radio.js +1 -1
  329. package/dist/components/kol-input-radio.js.map +1 -1
  330. package/dist/components/kol-input-range.js +1 -1
  331. package/dist/components/kol-input-range.js.map +1 -1
  332. package/dist/components/kol-input-text.js +1 -1
  333. package/dist/components/kol-input-text.js.map +1 -1
  334. package/dist/components/kol-kolibri.js +1 -1
  335. package/dist/components/kol-kolibri.js.map +1 -1
  336. package/dist/components/kol-link-button.js +1 -1
  337. package/dist/components/kol-link-button.js.map +1 -1
  338. package/dist/components/kol-link-wc.js +1 -1
  339. package/dist/components/kol-link-wc.js.map +1 -1
  340. package/dist/components/kol-link.js +1 -1
  341. package/dist/components/kol-link.js.map +1 -1
  342. package/dist/components/kol-modal.js +1 -1
  343. package/dist/components/kol-modal.js.map +1 -1
  344. package/dist/components/kol-nav.js +1 -1
  345. package/dist/components/kol-nav.js.map +1 -1
  346. package/dist/components/kol-pagination.js +1 -1
  347. package/dist/components/kol-pagination.js.map +1 -1
  348. package/dist/components/kol-popover-button-wc.js +1 -1
  349. package/dist/components/kol-popover-button-wc.js.map +1 -1
  350. package/dist/components/kol-popover-button.js +1 -1
  351. package/dist/components/kol-popover-button.js.map +1 -1
  352. package/dist/components/kol-popover-wc.js +1 -1
  353. package/dist/components/kol-popover-wc.js.map +1 -1
  354. package/dist/components/kol-progress.js +1 -1
  355. package/dist/components/kol-progress.js.map +1 -1
  356. package/dist/components/kol-quote.js +1 -1
  357. package/dist/components/kol-quote.js.map +1 -1
  358. package/dist/components/kol-select-wc.js +1 -1
  359. package/dist/components/kol-select-wc.js.map +1 -1
  360. package/dist/components/kol-select.js +1 -1
  361. package/dist/components/kol-select.js.map +1 -1
  362. package/dist/components/kol-single-select.js +1 -1
  363. package/dist/components/kol-single-select.js.map +1 -1
  364. package/dist/components/kol-skip-nav.js +1 -1
  365. package/dist/components/kol-skip-nav.js.map +1 -1
  366. package/dist/components/kol-spin.js +1 -1
  367. package/dist/components/kol-spin.js.map +1 -1
  368. package/dist/components/kol-split-button.js +1 -1
  369. package/dist/components/kol-split-button.js.map +1 -1
  370. package/dist/components/kol-table-stateful.js +1 -1
  371. package/dist/components/kol-table-stateful.js.map +1 -1
  372. package/dist/components/kol-table-stateless-wc.js +1 -1
  373. package/dist/components/kol-table-stateless-wc.js.map +1 -1
  374. package/dist/components/kol-table-stateless.js +1 -1
  375. package/dist/components/kol-table-stateless.js.map +1 -1
  376. package/dist/components/kol-tabs.js +1 -1
  377. package/dist/components/kol-tabs.js.map +1 -1
  378. package/dist/components/kol-textarea.js +1 -1
  379. package/dist/components/kol-textarea.js.map +1 -1
  380. package/dist/components/kol-toast-container.js +1 -1
  381. package/dist/components/kol-toast-container.js.map +1 -1
  382. package/dist/components/kol-toolbar.js +1 -1
  383. package/dist/components/kol-toolbar.js.map +1 -1
  384. package/dist/components/kol-tooltip-wc.js +1 -1
  385. package/dist/components/kol-tooltip-wc.js.map +1 -1
  386. package/dist/components/kol-tree-item-wc.js +1 -1
  387. package/dist/components/kol-tree-item-wc.js.map +1 -1
  388. package/dist/components/kol-tree-item.js +1 -1
  389. package/dist/components/kol-tree-item.js.map +1 -1
  390. package/dist/components/kol-tree.js +1 -1
  391. package/dist/components/kol-tree.js.map +1 -1
  392. package/dist/components/kol-version.js +1 -1
  393. package/dist/components/kol-version.js.map +1 -1
  394. package/dist/esm/{Alert-w-XRy_I0.js → Alert-ClpsVuF2.js} +1 -1
  395. package/dist/esm/Alert-ClpsVuF2.js.map +1 -0
  396. package/dist/esm/{Collapsible-DPgFue-K.js → Collapsible-DJQ63Wkm.js} +1 -1
  397. package/dist/esm/Collapsible-DJQ63Wkm.js.map +1 -0
  398. package/dist/esm/{CustomSuggestionsOptionsGroup-DBnTzfB6.js → CustomSuggestionsOptionsGroup-fezw8JEL.js} +1 -1
  399. package/dist/esm/CustomSuggestionsOptionsGroup-fezw8JEL.js.map +1 -0
  400. package/dist/esm/FieldControlStateWrapper-CO5RnPmg.js +4 -0
  401. package/dist/esm/FieldControlStateWrapper-CO5RnPmg.js.map +1 -0
  402. package/dist/esm/{FormFieldStateWrapper-COm9oJpc.js → FormFieldStateWrapper-BuBXucJg.js} +1 -1
  403. package/dist/esm/FormFieldStateWrapper-BuBXucJg.js.map +1 -0
  404. package/dist/esm/{Heading-C1x8c7QT.js → Heading-DpnGwI1P.js} +1 -1
  405. package/dist/esm/Heading-DpnGwI1P.js.map +1 -0
  406. package/dist/esm/{Icon-Dy7mcWMM.js → Icon-3kqoqI7a.js} +1 -1
  407. package/dist/esm/{Icon-Dy7mcWMM.js.map → Icon-3kqoqI7a.js.map} +1 -1
  408. package/dist/esm/Input-Dfll_k2a.js +4 -0
  409. package/dist/esm/Input-Dfll_k2a.js.map +1 -0
  410. package/dist/esm/{InputStateWrapper-BTDaLAdB.js → InputStateWrapper-COnbaVst.js} +1 -1
  411. package/dist/{kolibri/InputStateWrapper-BTDaLAdB.js.map → esm/InputStateWrapper-COnbaVst.js.map} +1 -1
  412. package/dist/esm/{InternalUnderlinedBadgeText-B9d8aD7h.js → InternalUnderlinedBadgeText-gZHJvp1Z.js} +1 -1
  413. package/dist/esm/{InternalUnderlinedBadgeText-B9d8aD7h.js.map → InternalUnderlinedBadgeText-gZHJvp1Z.js.map} +1 -1
  414. package/dist/esm/{Span-d_9gh2UX.js → Span-D_wayad6.js} +1 -1
  415. package/dist/esm/Span-D_wayad6.js.map +1 -0
  416. package/dist/esm/{access-and-short-key-BlB0ZAri.js → access-and-short-key-OLoWTcqR.js} +1 -1
  417. package/dist/esm/{access-and-short-key-BlB0ZAri.js.map → access-and-short-key-OLoWTcqR.js.map} +1 -1
  418. package/dist/esm/{align-C_bkzA-y.js → align-DUInjtnX.js} +1 -1
  419. package/dist/esm/{align-C_bkzA-y.js.map → align-DUInjtnX.js.map} +1 -1
  420. package/dist/esm/{align-floating-elements-BmMJhjF1.js → align-floating-elements-Iw9vSPIz.js} +1 -1
  421. package/dist/esm/{align-floating-elements-BmMJhjF1.js.map → align-floating-elements-Iw9vSPIz.js.map} +1 -1
  422. package/dist/esm/{app-globals-D5fY7UdG.js → app-globals-Dd0i3RV0.js} +1 -1
  423. package/dist/esm/{app-globals-D5fY7UdG.js.map → app-globals-Dd0i3RV0.js.map} +1 -1
  424. package/dist/esm/{associated.controller-ByKVIoVY.js → associated.controller-BZSp_RI6.js} +1 -1
  425. package/dist/esm/{associated.controller-ByKVIoVY.js.map → associated.controller-BZSp_RI6.js.map} +1 -1
  426. package/dist/esm/{auto-complete-CndE0brm.js → auto-complete-wULl95GT.js} +1 -1
  427. package/dist/esm/{auto-complete-CndE0brm.js.map → auto-complete-wULl95GT.js.map} +1 -1
  428. package/dist/esm/{bem-Gw3XXPol.js → bem-B-RhdwG0.js} +1 -1
  429. package/dist/esm/{bem-Gw3XXPol.js.map → bem-B-RhdwG0.js.map} +1 -1
  430. package/dist/esm/{bem-De7JANRY.js → bem-yGcgGOmY.js} +1 -1
  431. package/dist/{kolibri/bem-De7JANRY.js.map → esm/bem-yGcgGOmY.js.map} +1 -1
  432. package/dist/esm/{bootstrap-bsjlQuLF.js → bootstrap-BhCzUA0r.js} +1 -1
  433. package/dist/esm/{bootstrap-bsjlQuLF.js.map → bootstrap-BhCzUA0r.js.map} +1 -1
  434. package/dist/esm/{browser-DaourpHc.js → browser-CU41g6rf.js} +1 -1
  435. package/dist/esm/{browser-DaourpHc.js.map → browser-CU41g6rf.js.map} +1 -1
  436. package/dist/esm/{button-variant-BKr6oMet.js → button-variant-BwJjQkng.js} +1 -1
  437. package/dist/{kolibri/button-variant-BKr6oMet.js.map → esm/button-variant-BwJjQkng.js.map} +1 -1
  438. package/dist/esm/clsx-D6cJXTZC.js +4 -0
  439. package/dist/esm/clsx-D6cJXTZC.js.map +1 -0
  440. package/dist/esm/{color-D-_1x7ql.js → color-DZ0Ata5E.js} +1 -1
  441. package/dist/esm/{color-D-_1x7ql.js.map → color-DZ0Ata5E.js.map} +1 -1
  442. package/dist/esm/{common-BXXICkFX.js → common-B-m-0Sa1.js} +1 -1
  443. package/dist/esm/common-B-m-0Sa1.js.map +1 -0
  444. package/dist/esm/{controller-D-keynM4.js → controller-BCXVCtVk.js} +1 -1
  445. package/dist/{kolibri/controller-D-keynM4.js.map → esm/controller-BCXVCtVk.js.map} +1 -1
  446. package/dist/esm/{controller-JRmPz-8e.js → controller-B_S4V3_h.js} +1 -1
  447. package/dist/esm/{controller-JRmPz-8e.js.map → controller-B_S4V3_h.js.map} +1 -1
  448. package/dist/esm/{controller-l9pRaF0m.js → controller-BxyXciaS.js} +1 -1
  449. package/dist/esm/{controller-l9pRaF0m.js.map → controller-BxyXciaS.js.map} +1 -1
  450. package/dist/esm/{controller-Cas3cNU_.js → controller-CML4u5lU.js} +1 -1
  451. package/dist/esm/{controller-Cas3cNU_.js.map → controller-CML4u5lU.js.map} +1 -1
  452. package/dist/esm/{controller-icon-BSuMVX-J.js → controller-icon-Bv5rghvz.js} +1 -1
  453. package/dist/esm/controller-icon-Bv5rghvz.js.map +1 -0
  454. package/dist/esm/{custom-class-B6h_ZSR7.js → custom-class-D9xy9Wzd.js} +1 -1
  455. package/dist/esm/{custom-class-B6h_ZSR7.js.map → custom-class-D9xy9Wzd.js.map} +1 -1
  456. package/dist/esm/{dev.utils-EtfHgKpk.js → dev.utils-ClbGw5Q5.js} +1 -1
  457. package/dist/esm/{dev.utils-EtfHgKpk.js.map → dev.utils-ClbGw5Q5.js.map} +1 -1
  458. package/dist/esm/{devtools-CB3ruxGp.js → devtools-BAjFWJia.js} +1 -1
  459. package/dist/{kolibri/devtools-CB3ruxGp.js.map → esm/devtools-BAjFWJia.js.map} +1 -1
  460. package/dist/esm/disabled-BiVzb-WY.js +4 -0
  461. package/dist/esm/{disabled-D0wfAqak.js.map → disabled-BiVzb-WY.js.map} +1 -1
  462. package/dist/esm/{has-closer-OxGfsISj.js → has-closer-DTWxZxLk.js} +1 -1
  463. package/dist/esm/{has-closer-OxGfsISj.js.map → has-closer-DTWxZxLk.js.map} +1 -1
  464. package/dist/esm/{hide-label-90DGA8H4.js → hide-label-WZ5WNz3h.js} +1 -1
  465. package/dist/esm/{hide-label-90DGA8H4.js.map → hide-label-WZ5WNz3h.js.map} +1 -1
  466. package/dist/esm/href-BM8XBoul.js +4 -0
  467. package/dist/esm/{href-BDekIhFd.js.map → href-BM8XBoul.js.map} +1 -1
  468. package/dist/esm/{i18n-CvQhdUrE.js → i18n-0_cE4ov3.js} +1 -1
  469. package/dist/esm/{i18n-CvQhdUrE.js.map → i18n-0_cE4ov3.js.map} +1 -1
  470. package/dist/esm/{icons-DpMX_jnF.js → icons-C3vHAMd1.js} +1 -1
  471. package/dist/esm/{icons-DpMX_jnF.js.map → icons-C3vHAMd1.js.map} +1 -1
  472. package/dist/esm/{image-source-udiqQ1zY.js → image-source-t6wt0WTO.js} +1 -1
  473. package/dist/esm/{image-source-udiqQ1zY.js.map → image-source-t6wt0WTO.js.map} +1 -1
  474. package/dist/esm/index-CJixoXML.js +4 -0
  475. package/dist/esm/index-CJixoXML.js.map +1 -0
  476. package/dist/esm/index.js +1 -1
  477. package/dist/esm/{inline-eBYBtb1X.js → inline-6XaAuvMb.js} +1 -1
  478. package/dist/{kolibri/inline-eBYBtb1X.js.map → esm/inline-6XaAuvMb.js.map} +1 -1
  479. package/dist/esm/kol-abbr.entry.js +1 -1
  480. package/dist/esm/kol-abbr.entry.js.map +1 -1
  481. package/dist/esm/kol-accordion.entry.js +1 -1
  482. package/dist/esm/kol-accordion.entry.js.map +1 -1
  483. package/dist/esm/kol-alert-wc.entry.js +1 -1
  484. package/dist/esm/kol-alert.entry.js +1 -1
  485. package/dist/esm/kol-alert.entry.js.map +1 -1
  486. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  487. package/dist/esm/kol-avatar.entry.js +1 -1
  488. package/dist/esm/kol-avatar.entry.js.map +1 -1
  489. package/dist/esm/kol-badge.entry.js +1 -1
  490. package/dist/esm/kol-badge.entry.js.map +1 -1
  491. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  492. package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
  493. package/dist/esm/kol-button-link.entry.js +1 -1
  494. package/dist/esm/kol-button-link.entry.js.map +1 -1
  495. package/dist/esm/kol-button-wc.entry.js +1 -1
  496. package/dist/esm/kol-button-wc.entry.js.map +1 -1
  497. package/dist/esm/kol-button.entry.js +1 -1
  498. package/dist/esm/kol-button.entry.js.map +1 -1
  499. package/dist/esm/kol-card-wc.entry.js +1 -1
  500. package/dist/esm/kol-card.entry.js +1 -1
  501. package/dist/esm/kol-card.entry.js.map +1 -1
  502. package/dist/esm/kol-combobox.entry.js +1 -1
  503. package/dist/esm/kol-combobox.entry.js.map +1 -1
  504. package/dist/esm/kol-details.entry.js +1 -1
  505. package/dist/esm/kol-details.entry.js.map +1 -1
  506. package/dist/esm/kol-dialog-wc.entry.js +1 -1
  507. package/dist/esm/kol-dialog-wc.entry.js.map +1 -1
  508. package/dist/esm/kol-dialog.entry.js +1 -1
  509. package/dist/esm/kol-dialog.entry.js.map +1 -1
  510. package/dist/esm/kol-drawer.entry.js +1 -1
  511. package/dist/esm/kol-drawer.entry.js.map +1 -1
  512. package/dist/esm/kol-form.entry.js +1 -1
  513. package/dist/esm/kol-form.entry.js.map +1 -1
  514. package/dist/esm/kol-heading.entry.js +1 -1
  515. package/dist/esm/kol-heading.entry.js.map +1 -1
  516. package/dist/esm/kol-icon.entry.js +1 -1
  517. package/dist/esm/kol-icon.entry.js.map +1 -1
  518. package/dist/esm/kol-image.entry.js +1 -1
  519. package/dist/esm/kol-image.entry.js.map +1 -1
  520. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  521. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  522. package/dist/esm/kol-input-color.entry.js +1 -1
  523. package/dist/esm/kol-input-color.entry.js.map +1 -1
  524. package/dist/esm/kol-input-date.entry.js +1 -1
  525. package/dist/esm/kol-input-date.entry.js.map +1 -1
  526. package/dist/esm/kol-input-email.entry.js +1 -1
  527. package/dist/esm/kol-input-email.entry.js.map +1 -1
  528. package/dist/esm/kol-input-file.entry.js +1 -1
  529. package/dist/esm/kol-input-file.entry.js.map +1 -1
  530. package/dist/esm/kol-input-number.entry.js +1 -1
  531. package/dist/esm/kol-input-number.entry.js.map +1 -1
  532. package/dist/esm/kol-input-password.entry.js +1 -1
  533. package/dist/esm/kol-input-password.entry.js.map +1 -1
  534. package/dist/esm/kol-input-radio.entry.js +1 -1
  535. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  536. package/dist/esm/kol-input-range.entry.js +1 -1
  537. package/dist/esm/kol-input-range.entry.js.map +1 -1
  538. package/dist/esm/kol-input-text.entry.js +1 -1
  539. package/dist/esm/kol-input-text.entry.js.map +1 -1
  540. package/dist/esm/kol-kolibri.entry.js +1 -1
  541. package/dist/esm/kol-kolibri.entry.js.map +1 -1
  542. package/dist/esm/kol-link-button.entry.js +1 -1
  543. package/dist/esm/kol-link-button.entry.js.map +1 -1
  544. package/dist/esm/kol-link-wc.entry.js +1 -1
  545. package/dist/esm/kol-link-wc.entry.js.map +1 -1
  546. package/dist/esm/kol-link.entry.js +1 -1
  547. package/dist/esm/kol-link.entry.js.map +1 -1
  548. package/dist/esm/kol-modal.entry.js +1 -1
  549. package/dist/esm/kol-modal.entry.js.map +1 -1
  550. package/dist/esm/kol-nav.entry.js +1 -1
  551. package/dist/esm/kol-nav.entry.js.map +1 -1
  552. package/dist/esm/kol-pagination-wc.entry.js +1 -1
  553. package/dist/esm/kol-pagination.entry.js +1 -1
  554. package/dist/esm/kol-pagination.entry.js.map +1 -1
  555. package/dist/esm/kol-popover-button-wc.entry.js +1 -1
  556. package/dist/esm/kol-popover-button-wc.entry.js.map +1 -1
  557. package/dist/esm/kol-popover-button.entry.js +1 -1
  558. package/dist/esm/kol-popover-button.entry.js.map +1 -1
  559. package/dist/esm/kol-popover-wc.entry.js +1 -1
  560. package/dist/esm/kol-popover-wc.entry.js.map +1 -1
  561. package/dist/esm/kol-progress.entry.js +1 -1
  562. package/dist/esm/kol-progress.entry.js.map +1 -1
  563. package/dist/esm/kol-quote.entry.js +1 -1
  564. package/dist/esm/kol-quote.entry.js.map +1 -1
  565. package/dist/esm/kol-select-wc.entry.js +1 -1
  566. package/dist/esm/kol-select-wc.entry.js.map +1 -1
  567. package/dist/esm/kol-select.entry.js +1 -1
  568. package/dist/esm/kol-select.entry.js.map +1 -1
  569. package/dist/esm/kol-single-select.entry.js +1 -1
  570. package/dist/esm/kol-single-select.entry.js.map +1 -1
  571. package/dist/esm/kol-skip-nav.entry.js +1 -1
  572. package/dist/esm/kol-skip-nav.entry.js.map +1 -1
  573. package/dist/esm/kol-spin.entry.js +1 -1
  574. package/dist/esm/kol-spin.entry.js.map +1 -1
  575. package/dist/esm/kol-split-button.entry.js +1 -1
  576. package/dist/esm/kol-split-button.entry.js.map +1 -1
  577. package/dist/esm/kol-table-settings-wc.entry.js +1 -1
  578. package/dist/esm/kol-table-stateful.entry.js +1 -1
  579. package/dist/esm/kol-table-stateful.entry.js.map +1 -1
  580. package/dist/esm/kol-table-stateless-wc.entry.js +1 -1
  581. package/dist/esm/kol-table-stateless-wc.entry.js.map +1 -1
  582. package/dist/esm/kol-table-stateless.entry.js +1 -1
  583. package/dist/esm/kol-table-stateless.entry.js.map +1 -1
  584. package/dist/esm/kol-tabs.entry.js +1 -1
  585. package/dist/esm/kol-tabs.entry.js.map +1 -1
  586. package/dist/esm/kol-textarea.entry.js +1 -1
  587. package/dist/esm/kol-textarea.entry.js.map +1 -1
  588. package/dist/esm/kol-toast-container.entry.js +1 -1
  589. package/dist/esm/kol-toast-container.entry.js.map +1 -1
  590. package/dist/esm/kol-toolbar.entry.js +1 -1
  591. package/dist/esm/kol-toolbar.entry.js.map +1 -1
  592. package/dist/esm/kol-tooltip-wc.entry.js +1 -1
  593. package/dist/esm/kol-tooltip-wc.entry.js.map +1 -1
  594. package/dist/esm/kol-tree-item-wc.entry.js +1 -1
  595. package/dist/esm/kol-tree-item-wc.entry.js.map +1 -1
  596. package/dist/esm/kol-tree-item.entry.js +1 -1
  597. package/dist/esm/kol-tree-item.entry.js.map +1 -1
  598. package/dist/esm/kol-tree-wc.entry.js +1 -1
  599. package/dist/esm/kol-tree.entry.js +1 -1
  600. package/dist/esm/kol-tree.entry.js.map +1 -1
  601. package/dist/esm/kol-version.entry.js +1 -1
  602. package/dist/esm/kol-version.entry.js.map +1 -1
  603. package/dist/esm/kolibri.js +1 -1
  604. package/dist/esm/{label-Dkj9sxQK.js → label-BqL4x8lJ.js} +1 -1
  605. package/dist/esm/{label-Dkj9sxQK.js.map → label-BqL4x8lJ.js.map} +1 -1
  606. package/dist/esm/loader.js +1 -1
  607. package/dist/esm/{markdown-CaS836ev.js → markdown-OkxVnUil.js} +1 -1
  608. package/dist/esm/{markdown-CaS836ev.js.map → markdown-OkxVnUil.js.map} +1 -1
  609. package/dist/esm/{max-length-behavior-C7oPJjTW.js → max-length-behavior-BhW8_k_T.js} +1 -1
  610. package/dist/esm/{max-length-behavior-C7oPJjTW.js.map → max-length-behavior-BhW8_k_T.js.map} +1 -1
  611. package/dist/esm/{multiple-BYEUdjyO.js → multiple-CN7ZfDba.js} +1 -1
  612. package/dist/esm/{multiple-BYEUdjyO.js.map → multiple-CN7ZfDba.js.map} +1 -1
  613. package/dist/esm/open-BS0uItWa.js +4 -0
  614. package/dist/{kolibri/open-Cuy37cT5.js.map → esm/open-BS0uItWa.js.map} +1 -1
  615. package/dist/esm/{orientation-uIK98CL3.js → orientation-DR4gvMev.js} +1 -1
  616. package/dist/esm/{orientation-uIK98CL3.js.map → orientation-DR4gvMev.js.map} +1 -1
  617. package/dist/esm/{placeholder-C0qu-_xi.js → placeholder-DhhN6Rra.js} +1 -1
  618. package/dist/esm/{placeholder-C0qu-_xi.js.map → placeholder-DhhN6Rra.js.map} +1 -1
  619. package/dist/esm/{read-only-DqzvkuwG.js → read-only-joz0PLP_.js} +1 -1
  620. package/dist/esm/{read-only-DqzvkuwG.js.map → read-only-joz0PLP_.js.map} +1 -1
  621. package/dist/esm/required-DJbvNLly.js +4 -0
  622. package/dist/esm/{required-IJ-wNQGn.js.map → required-DJbvNLly.js.map} +1 -1
  623. package/dist/esm/rows-BAjzKE6S.js +4 -0
  624. package/dist/esm/{rows-CaNxvJ4Y.js.map → rows-BAjzKE6S.js.map} +1 -1
  625. package/dist/esm/{show-DVtFSh7x.js → show-Db770b87.js} +1 -1
  626. package/dist/{kolibri/show-DVtFSh7x.js.map → esm/show-Db770b87.js.map} +1 -1
  627. package/dist/esm/spell-check-S60TjBC_.js +4 -0
  628. package/dist/esm/{spell-check-BBqBRmnp.js.map → spell-check-S60TjBC_.js.map} +1 -1
  629. package/dist/esm/{suggestions-CsvpWHvb.js → suggestions-CcNcD0dX.js} +1 -1
  630. package/dist/esm/{suggestions-CsvpWHvb.js.map → suggestions-CcNcD0dX.js.map} +1 -1
  631. package/dist/esm/{table-selection-C4VgH6EI.js → table-selection-DjfWF12k.js} +1 -1
  632. package/dist/{kolibri/table-selection-C4VgH6EI.js.map → esm/table-selection-DjfWF12k.js.map} +1 -1
  633. package/dist/esm/test-component.entry.js +1 -1
  634. package/dist/esm/tooltip-align-1XGYSZmF.js +4 -0
  635. package/dist/esm/{tooltip-align-P-7pyT1i.js.map → tooltip-align-1XGYSZmF.js.map} +1 -1
  636. package/dist/esm/{unique-nav-labels-B6560U3V.js → unique-nav-labels-BzOU2gyW.js} +1 -1
  637. package/dist/esm/{unique-nav-labels-B6560U3V.js.map → unique-nav-labels-BzOU2gyW.js.map} +1 -1
  638. package/dist/esm/validation-BIgftzAT.js +4 -0
  639. package/dist/esm/{validation-Ct877GbF.js.map → validation-BIgftzAT.js.map} +1 -1
  640. package/dist/esm/{validation-D0gTVdAQ.js → validation-Cmv8Nj43.js} +1 -1
  641. package/dist/esm/{validation-D0gTVdAQ.js.map → validation-Cmv8Nj43.js.map} +1 -1
  642. package/dist/kolibri/Alert-ClpsVuF2.js +4 -0
  643. package/dist/kolibri/Alert-ClpsVuF2.js.map +1 -0
  644. package/dist/kolibri/Collapsible-DJQ63Wkm.js +4 -0
  645. package/dist/kolibri/Collapsible-DJQ63Wkm.js.map +1 -0
  646. package/dist/kolibri/{CustomSuggestionsOptionsGroup-DBnTzfB6.js → CustomSuggestionsOptionsGroup-fezw8JEL.js} +1 -1
  647. package/dist/kolibri/CustomSuggestionsOptionsGroup-fezw8JEL.js.map +1 -0
  648. package/dist/kolibri/FieldControlStateWrapper-CO5RnPmg.js +4 -0
  649. package/dist/kolibri/FieldControlStateWrapper-CO5RnPmg.js.map +1 -0
  650. package/dist/kolibri/{FormFieldStateWrapper-COm9oJpc.js → FormFieldStateWrapper-BuBXucJg.js} +1 -1
  651. package/dist/kolibri/FormFieldStateWrapper-BuBXucJg.js.map +1 -0
  652. package/dist/kolibri/Heading-DpnGwI1P.js +4 -0
  653. package/dist/kolibri/Heading-DpnGwI1P.js.map +1 -0
  654. package/dist/kolibri/{Icon-Dy7mcWMM.js → Icon-3kqoqI7a.js} +1 -1
  655. package/dist/kolibri/{Icon-Dy7mcWMM.js.map → Icon-3kqoqI7a.js.map} +1 -1
  656. package/dist/kolibri/{Input-8s5wXmyi.js → Input-Dfll_k2a.js} +1 -1
  657. package/dist/kolibri/Input-Dfll_k2a.js.map +1 -0
  658. package/dist/kolibri/InputStateWrapper-COnbaVst.js +4 -0
  659. package/dist/{esm/InputStateWrapper-BTDaLAdB.js.map → kolibri/InputStateWrapper-COnbaVst.js.map} +1 -1
  660. package/dist/kolibri/InternalUnderlinedBadgeText-gZHJvp1Z.js +4 -0
  661. package/dist/kolibri/{InternalUnderlinedBadgeText-B9d8aD7h.js.map → InternalUnderlinedBadgeText-gZHJvp1Z.js.map} +1 -1
  662. package/dist/kolibri/Span-D_wayad6.js +4 -0
  663. package/dist/kolibri/Span-D_wayad6.js.map +1 -0
  664. package/dist/kolibri/access-and-short-key-OLoWTcqR.js +4 -0
  665. package/dist/kolibri/{access-and-short-key-BlB0ZAri.js.map → access-and-short-key-OLoWTcqR.js.map} +1 -1
  666. package/dist/kolibri/{align-C_bkzA-y.js → align-DUInjtnX.js} +1 -1
  667. package/dist/kolibri/{align-C_bkzA-y.js.map → align-DUInjtnX.js.map} +1 -1
  668. package/dist/kolibri/{align-floating-elements-BmMJhjF1.js → align-floating-elements-Iw9vSPIz.js} +1 -1
  669. package/dist/kolibri/{align-floating-elements-BmMJhjF1.js.map → align-floating-elements-Iw9vSPIz.js.map} +1 -1
  670. package/dist/kolibri/app-globals-Dd0i3RV0.js +4 -0
  671. package/dist/kolibri/{app-globals-D5fY7UdG.js.map → app-globals-Dd0i3RV0.js.map} +1 -1
  672. package/dist/kolibri/{associated.controller-ByKVIoVY.js → associated.controller-BZSp_RI6.js} +1 -1
  673. package/dist/kolibri/{associated.controller-ByKVIoVY.js.map → associated.controller-BZSp_RI6.js.map} +1 -1
  674. package/dist/kolibri/{auto-complete-CndE0brm.js → auto-complete-wULl95GT.js} +1 -1
  675. package/dist/kolibri/{auto-complete-CndE0brm.js.map → auto-complete-wULl95GT.js.map} +1 -1
  676. package/dist/kolibri/bem-B-RhdwG0.js +4 -0
  677. package/dist/kolibri/{bem-Gw3XXPol.js.map → bem-B-RhdwG0.js.map} +1 -1
  678. package/dist/kolibri/{bem-De7JANRY.js → bem-yGcgGOmY.js} +1 -1
  679. package/dist/{cjs/bem-DQRepkGo.js.map → kolibri/bem-yGcgGOmY.js.map} +1 -1
  680. package/dist/kolibri/{bootstrap-bsjlQuLF.js → bootstrap-BhCzUA0r.js} +1 -1
  681. package/dist/kolibri/{bootstrap-bsjlQuLF.js.map → bootstrap-BhCzUA0r.js.map} +1 -1
  682. package/dist/kolibri/{browser-DaourpHc.js → browser-CU41g6rf.js} +1 -1
  683. package/dist/kolibri/{browser-DaourpHc.js.map → browser-CU41g6rf.js.map} +1 -1
  684. package/dist/kolibri/{button-variant-BKr6oMet.js → button-variant-BwJjQkng.js} +1 -1
  685. package/dist/{esm/button-variant-BKr6oMet.js.map → kolibri/button-variant-BwJjQkng.js.map} +1 -1
  686. package/dist/kolibri/clsx-D6cJXTZC.js +4 -0
  687. package/dist/kolibri/clsx-D6cJXTZC.js.map +1 -0
  688. package/dist/kolibri/{color-D-_1x7ql.js → color-DZ0Ata5E.js} +1 -1
  689. package/dist/kolibri/{color-D-_1x7ql.js.map → color-DZ0Ata5E.js.map} +1 -1
  690. package/dist/kolibri/common-B-m-0Sa1.js +4 -0
  691. package/dist/kolibri/common-B-m-0Sa1.js.map +1 -0
  692. package/dist/kolibri/{controller-D-keynM4.js → controller-BCXVCtVk.js} +1 -1
  693. package/dist/{esm/controller-D-keynM4.js.map → kolibri/controller-BCXVCtVk.js.map} +1 -1
  694. package/dist/kolibri/{controller-JRmPz-8e.js → controller-B_S4V3_h.js} +1 -1
  695. package/dist/kolibri/{controller-JRmPz-8e.js.map → controller-B_S4V3_h.js.map} +1 -1
  696. package/dist/kolibri/controller-BxyXciaS.js +4 -0
  697. package/dist/kolibri/{controller-l9pRaF0m.js.map → controller-BxyXciaS.js.map} +1 -1
  698. package/dist/kolibri/controller-CML4u5lU.js +4 -0
  699. package/dist/kolibri/{controller-Cas3cNU_.js.map → controller-CML4u5lU.js.map} +1 -1
  700. package/dist/kolibri/controller-icon-Bv5rghvz.js +4 -0
  701. package/dist/kolibri/controller-icon-Bv5rghvz.js.map +1 -0
  702. package/dist/kolibri/custom-class-D9xy9Wzd.js +4 -0
  703. package/dist/kolibri/{custom-class-B6h_ZSR7.js.map → custom-class-D9xy9Wzd.js.map} +1 -1
  704. package/dist/kolibri/{dev.utils-EtfHgKpk.js → dev.utils-ClbGw5Q5.js} +1 -1
  705. package/dist/kolibri/{dev.utils-EtfHgKpk.js.map → dev.utils-ClbGw5Q5.js.map} +1 -1
  706. package/dist/kolibri/{devtools-CB3ruxGp.js → devtools-BAjFWJia.js} +1 -1
  707. package/dist/{esm/devtools-CB3ruxGp.js.map → kolibri/devtools-BAjFWJia.js.map} +1 -1
  708. package/dist/kolibri/disabled-BiVzb-WY.js +4 -0
  709. package/dist/kolibri/{disabled-D0wfAqak.js.map → disabled-BiVzb-WY.js.map} +1 -1
  710. package/dist/kolibri/has-closer-DTWxZxLk.js +4 -0
  711. package/dist/kolibri/{has-closer-OxGfsISj.js.map → has-closer-DTWxZxLk.js.map} +1 -1
  712. package/dist/kolibri/hide-label-WZ5WNz3h.js +4 -0
  713. package/dist/kolibri/{hide-label-90DGA8H4.js.map → hide-label-WZ5WNz3h.js.map} +1 -1
  714. package/dist/kolibri/href-BM8XBoul.js +4 -0
  715. package/dist/kolibri/{href-BDekIhFd.js.map → href-BM8XBoul.js.map} +1 -1
  716. package/dist/kolibri/i18n-0_cE4ov3.js +4 -0
  717. package/dist/kolibri/{i18n-CvQhdUrE.js.map → i18n-0_cE4ov3.js.map} +1 -1
  718. package/dist/kolibri/{icons-DpMX_jnF.js → icons-C3vHAMd1.js} +1 -1
  719. package/dist/kolibri/{icons-DpMX_jnF.js.map → icons-C3vHAMd1.js.map} +1 -1
  720. package/dist/kolibri/image-source-t6wt0WTO.js +4 -0
  721. package/dist/kolibri/{image-source-udiqQ1zY.js.map → image-source-t6wt0WTO.js.map} +1 -1
  722. package/dist/kolibri/{index-DyUiyxj3.js → index-CJixoXML.js} +2 -2
  723. package/dist/kolibri/index-CJixoXML.js.map +1 -0
  724. package/dist/kolibri/index.esm.js +1 -1
  725. package/dist/kolibri/inline-6XaAuvMb.js +4 -0
  726. package/dist/{esm/inline-eBYBtb1X.js.map → kolibri/inline-6XaAuvMb.js.map} +1 -1
  727. package/dist/kolibri/kol-abbr.entry.esm.js.map +1 -1
  728. package/dist/kolibri/kol-abbr.entry.js +1 -1
  729. package/dist/kolibri/kol-abbr.entry.js.map +1 -1
  730. package/dist/kolibri/kol-accordion.entry.esm.js.map +1 -1
  731. package/dist/kolibri/kol-accordion.entry.js +1 -1
  732. package/dist/kolibri/kol-accordion.entry.js.map +1 -1
  733. package/dist/kolibri/kol-alert-wc.entry.js +1 -1
  734. package/dist/kolibri/kol-alert.entry.esm.js.map +1 -1
  735. package/dist/kolibri/kol-alert.entry.js +1 -1
  736. package/dist/kolibri/kol-alert.entry.js.map +1 -1
  737. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  738. package/dist/kolibri/kol-avatar.entry.esm.js.map +1 -1
  739. package/dist/kolibri/kol-avatar.entry.js +1 -1
  740. package/dist/kolibri/kol-avatar.entry.js.map +1 -1
  741. package/dist/kolibri/kol-badge.entry.esm.js.map +1 -1
  742. package/dist/kolibri/kol-badge.entry.js +1 -1
  743. package/dist/kolibri/kol-badge.entry.js.map +1 -1
  744. package/dist/kolibri/kol-breadcrumb.entry.esm.js.map +1 -1
  745. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  746. package/dist/kolibri/kol-breadcrumb.entry.js.map +1 -1
  747. package/dist/kolibri/kol-button-link.entry.esm.js.map +1 -1
  748. package/dist/kolibri/kol-button-link.entry.js +1 -1
  749. package/dist/kolibri/kol-button-link.entry.js.map +1 -1
  750. package/dist/kolibri/kol-button-wc.entry.esm.js.map +1 -1
  751. package/dist/kolibri/kol-button-wc.entry.js +1 -1
  752. package/dist/kolibri/kol-button-wc.entry.js.map +1 -1
  753. package/dist/kolibri/kol-button.entry.esm.js.map +1 -1
  754. package/dist/kolibri/kol-button.entry.js +1 -1
  755. package/dist/kolibri/kol-button.entry.js.map +1 -1
  756. package/dist/kolibri/kol-card-wc.entry.js +1 -1
  757. package/dist/kolibri/kol-card-wc.entry.js.map +1 -1
  758. package/dist/kolibri/kol-card.entry.esm.js.map +1 -1
  759. package/dist/kolibri/kol-card.entry.js +1 -1
  760. package/dist/kolibri/kol-card.entry.js.map +1 -1
  761. package/dist/kolibri/kol-combobox.entry.esm.js.map +1 -1
  762. package/dist/kolibri/kol-combobox.entry.js +1 -1
  763. package/dist/kolibri/kol-combobox.entry.js.map +1 -1
  764. package/dist/kolibri/kol-details.entry.esm.js.map +1 -1
  765. package/dist/kolibri/kol-details.entry.js +1 -1
  766. package/dist/kolibri/kol-details.entry.js.map +1 -1
  767. package/dist/kolibri/kol-dialog-wc.entry.esm.js.map +1 -1
  768. package/dist/kolibri/kol-dialog-wc.entry.js +1 -1
  769. package/dist/kolibri/kol-dialog-wc.entry.js.map +1 -1
  770. package/dist/kolibri/kol-dialog.entry.esm.js.map +1 -1
  771. package/dist/kolibri/kol-dialog.entry.js +1 -1
  772. package/dist/kolibri/kol-dialog.entry.js.map +1 -1
  773. package/dist/kolibri/kol-drawer.entry.esm.js.map +1 -1
  774. package/dist/kolibri/kol-drawer.entry.js +1 -1
  775. package/dist/kolibri/kol-drawer.entry.js.map +1 -1
  776. package/dist/kolibri/kol-form.entry.esm.js.map +1 -1
  777. package/dist/kolibri/kol-form.entry.js +1 -1
  778. package/dist/kolibri/kol-form.entry.js.map +1 -1
  779. package/dist/kolibri/kol-heading.entry.esm.js.map +1 -1
  780. package/dist/kolibri/kol-heading.entry.js +1 -1
  781. package/dist/kolibri/kol-heading.entry.js.map +1 -1
  782. package/dist/kolibri/kol-icon.entry.esm.js.map +1 -1
  783. package/dist/kolibri/kol-icon.entry.js +1 -1
  784. package/dist/kolibri/kol-image.entry.esm.js.map +1 -1
  785. package/dist/kolibri/kol-image.entry.js +1 -1
  786. package/dist/kolibri/kol-image.entry.js.map +1 -1
  787. package/dist/kolibri/kol-input-checkbox.entry.esm.js.map +1 -1
  788. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  789. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  790. package/dist/kolibri/kol-input-color.entry.esm.js.map +1 -1
  791. package/dist/kolibri/kol-input-color.entry.js +1 -1
  792. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  793. package/dist/kolibri/kol-input-date.entry.esm.js.map +1 -1
  794. package/dist/kolibri/kol-input-date.entry.js +1 -1
  795. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  796. package/dist/kolibri/kol-input-email.entry.esm.js.map +1 -1
  797. package/dist/kolibri/kol-input-email.entry.js +1 -1
  798. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  799. package/dist/kolibri/kol-input-file.entry.esm.js.map +1 -1
  800. package/dist/kolibri/kol-input-file.entry.js +1 -1
  801. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  802. package/dist/kolibri/kol-input-number.entry.esm.js.map +1 -1
  803. package/dist/kolibri/kol-input-number.entry.js +1 -1
  804. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  805. package/dist/kolibri/kol-input-password.entry.esm.js.map +1 -1
  806. package/dist/kolibri/kol-input-password.entry.js +1 -1
  807. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  808. package/dist/kolibri/kol-input-radio.entry.esm.js.map +1 -1
  809. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  810. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  811. package/dist/kolibri/kol-input-range.entry.esm.js.map +1 -1
  812. package/dist/kolibri/kol-input-range.entry.js +1 -1
  813. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  814. package/dist/kolibri/kol-input-text.entry.esm.js.map +1 -1
  815. package/dist/kolibri/kol-input-text.entry.js +1 -1
  816. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  817. package/dist/kolibri/kol-kolibri.entry.esm.js.map +1 -1
  818. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  819. package/dist/kolibri/kol-kolibri.entry.js.map +1 -1
  820. package/dist/kolibri/kol-link-button.entry.esm.js.map +1 -1
  821. package/dist/kolibri/kol-link-button.entry.js +1 -1
  822. package/dist/kolibri/kol-link-button.entry.js.map +1 -1
  823. package/dist/kolibri/kol-link-wc.entry.esm.js.map +1 -1
  824. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  825. package/dist/kolibri/kol-link-wc.entry.js.map +1 -1
  826. package/dist/kolibri/kol-link.entry.esm.js.map +1 -1
  827. package/dist/kolibri/kol-link.entry.js +1 -1
  828. package/dist/kolibri/kol-link.entry.js.map +1 -1
  829. package/dist/kolibri/kol-modal.entry.esm.js.map +1 -1
  830. package/dist/kolibri/kol-modal.entry.js +1 -1
  831. package/dist/kolibri/kol-modal.entry.js.map +1 -1
  832. package/dist/kolibri/kol-nav.entry.esm.js.map +1 -1
  833. package/dist/kolibri/kol-nav.entry.js +1 -1
  834. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  835. package/dist/kolibri/kol-pagination-wc.entry.js +1 -1
  836. package/dist/kolibri/kol-pagination.entry.esm.js.map +1 -1
  837. package/dist/kolibri/kol-pagination.entry.js +1 -1
  838. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  839. package/dist/kolibri/kol-popover-button-wc.entry.esm.js.map +1 -1
  840. package/dist/kolibri/kol-popover-button-wc.entry.js +1 -1
  841. package/dist/kolibri/kol-popover-button-wc.entry.js.map +1 -1
  842. package/dist/kolibri/kol-popover-button.entry.esm.js.map +1 -1
  843. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  844. package/dist/kolibri/kol-popover-button.entry.js.map +1 -1
  845. package/dist/kolibri/kol-popover-wc.entry.esm.js.map +1 -1
  846. package/dist/kolibri/kol-popover-wc.entry.js +1 -1
  847. package/dist/kolibri/kol-popover-wc.entry.js.map +1 -1
  848. package/dist/kolibri/kol-progress.entry.esm.js.map +1 -1
  849. package/dist/kolibri/kol-progress.entry.js +1 -1
  850. package/dist/kolibri/kol-progress.entry.js.map +1 -1
  851. package/dist/kolibri/kol-quote.entry.esm.js.map +1 -1
  852. package/dist/kolibri/kol-quote.entry.js +1 -1
  853. package/dist/kolibri/kol-quote.entry.js.map +1 -1
  854. package/dist/kolibri/kol-select-wc.entry.esm.js.map +1 -1
  855. package/dist/kolibri/kol-select-wc.entry.js +1 -1
  856. package/dist/kolibri/kol-select-wc.entry.js.map +1 -1
  857. package/dist/kolibri/kol-select.entry.esm.js.map +1 -1
  858. package/dist/kolibri/kol-select.entry.js +1 -1
  859. package/dist/kolibri/kol-select.entry.js.map +1 -1
  860. package/dist/kolibri/kol-single-select.entry.esm.js.map +1 -1
  861. package/dist/kolibri/kol-single-select.entry.js +1 -1
  862. package/dist/kolibri/kol-single-select.entry.js.map +1 -1
  863. package/dist/kolibri/kol-skip-nav.entry.esm.js.map +1 -1
  864. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  865. package/dist/kolibri/kol-skip-nav.entry.js.map +1 -1
  866. package/dist/kolibri/kol-spin.entry.esm.js.map +1 -1
  867. package/dist/kolibri/kol-spin.entry.js +1 -1
  868. package/dist/kolibri/kol-spin.entry.js.map +1 -1
  869. package/dist/kolibri/kol-split-button.entry.esm.js.map +1 -1
  870. package/dist/kolibri/kol-split-button.entry.js +1 -1
  871. package/dist/kolibri/kol-split-button.entry.js.map +1 -1
  872. package/dist/kolibri/kol-table-settings-wc.entry.js +1 -1
  873. package/dist/kolibri/kol-table-stateful.entry.esm.js.map +1 -1
  874. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  875. package/dist/kolibri/kol-table-stateful.entry.js.map +1 -1
  876. package/dist/kolibri/kol-table-stateless-wc.entry.esm.js.map +1 -1
  877. package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
  878. package/dist/kolibri/kol-table-stateless-wc.entry.js.map +1 -1
  879. package/dist/kolibri/kol-table-stateless.entry.esm.js.map +1 -1
  880. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  881. package/dist/kolibri/kol-table-stateless.entry.js.map +1 -1
  882. package/dist/kolibri/kol-tabs.entry.esm.js.map +1 -1
  883. package/dist/kolibri/kol-tabs.entry.js +1 -1
  884. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  885. package/dist/kolibri/kol-textarea.entry.esm.js.map +1 -1
  886. package/dist/kolibri/kol-textarea.entry.js +1 -1
  887. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  888. package/dist/kolibri/kol-toast-container.entry.esm.js.map +1 -1
  889. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  890. package/dist/kolibri/kol-toast-container.entry.js.map +1 -1
  891. package/dist/kolibri/kol-toolbar.entry.esm.js.map +1 -1
  892. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  893. package/dist/kolibri/kol-toolbar.entry.js.map +1 -1
  894. package/dist/kolibri/kol-tooltip-wc.entry.esm.js.map +1 -1
  895. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  896. package/dist/kolibri/kol-tooltip-wc.entry.js.map +1 -1
  897. package/dist/kolibri/kol-tree-item-wc.entry.esm.js.map +1 -1
  898. package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
  899. package/dist/kolibri/kol-tree-item-wc.entry.js.map +1 -1
  900. package/dist/kolibri/kol-tree-item.entry.esm.js.map +1 -1
  901. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  902. package/dist/kolibri/kol-tree-item.entry.js.map +1 -1
  903. package/dist/kolibri/kol-tree-wc.entry.js +1 -1
  904. package/dist/kolibri/kol-tree.entry.esm.js.map +1 -1
  905. package/dist/kolibri/kol-tree.entry.js +1 -1
  906. package/dist/kolibri/kol-tree.entry.js.map +1 -1
  907. package/dist/kolibri/kol-version.entry.esm.js.map +1 -1
  908. package/dist/kolibri/kol-version.entry.js +1 -1
  909. package/dist/kolibri/kol-version.entry.js.map +1 -1
  910. package/dist/kolibri/kolibri.esm.js +1 -1
  911. package/dist/kolibri/{label-Dkj9sxQK.js → label-BqL4x8lJ.js} +1 -1
  912. package/dist/kolibri/{label-Dkj9sxQK.js.map → label-BqL4x8lJ.js.map} +1 -1
  913. package/dist/kolibri/{markdown-CaS836ev.js → markdown-OkxVnUil.js} +1 -1
  914. package/dist/kolibri/{markdown-CaS836ev.js.map → markdown-OkxVnUil.js.map} +1 -1
  915. package/dist/kolibri/max-length-behavior-BhW8_k_T.js +4 -0
  916. package/dist/kolibri/{max-length-behavior-C7oPJjTW.js.map → max-length-behavior-BhW8_k_T.js.map} +1 -1
  917. package/dist/kolibri/multiple-CN7ZfDba.js +4 -0
  918. package/dist/kolibri/{multiple-BYEUdjyO.js.map → multiple-CN7ZfDba.js.map} +1 -1
  919. package/dist/kolibri/open-BS0uItWa.js +4 -0
  920. package/dist/{esm/open-Cuy37cT5.js.map → kolibri/open-BS0uItWa.js.map} +1 -1
  921. package/dist/kolibri/orientation-DR4gvMev.js +4 -0
  922. package/dist/kolibri/{orientation-uIK98CL3.js.map → orientation-DR4gvMev.js.map} +1 -1
  923. package/dist/kolibri/placeholder-DhhN6Rra.js +4 -0
  924. package/dist/kolibri/{placeholder-C0qu-_xi.js.map → placeholder-DhhN6Rra.js.map} +1 -1
  925. package/dist/kolibri/read-only-joz0PLP_.js +4 -0
  926. package/dist/kolibri/{read-only-DqzvkuwG.js.map → read-only-joz0PLP_.js.map} +1 -1
  927. package/dist/kolibri/required-DJbvNLly.js +4 -0
  928. package/dist/kolibri/{required-IJ-wNQGn.js.map → required-DJbvNLly.js.map} +1 -1
  929. package/dist/kolibri/rows-BAjzKE6S.js +4 -0
  930. package/dist/kolibri/{rows-CaNxvJ4Y.js.map → rows-BAjzKE6S.js.map} +1 -1
  931. package/dist/kolibri/show-Db770b87.js +4 -0
  932. package/dist/{esm/show-DVtFSh7x.js.map → kolibri/show-Db770b87.js.map} +1 -1
  933. package/dist/kolibri/spell-check-S60TjBC_.js +4 -0
  934. package/dist/kolibri/{spell-check-BBqBRmnp.js.map → spell-check-S60TjBC_.js.map} +1 -1
  935. package/dist/kolibri/{suggestions-CsvpWHvb.js → suggestions-CcNcD0dX.js} +1 -1
  936. package/dist/kolibri/{suggestions-CsvpWHvb.js.map → suggestions-CcNcD0dX.js.map} +1 -1
  937. package/dist/kolibri/{table-selection-C4VgH6EI.js → table-selection-DjfWF12k.js} +1 -1
  938. package/dist/{esm/table-selection-C4VgH6EI.js.map → kolibri/table-selection-DjfWF12k.js.map} +1 -1
  939. package/dist/kolibri/test-component.entry.js +1 -1
  940. package/dist/kolibri/tooltip-align-1XGYSZmF.js +4 -0
  941. package/dist/kolibri/{tooltip-align-P-7pyT1i.js.map → tooltip-align-1XGYSZmF.js.map} +1 -1
  942. package/dist/kolibri/{unique-nav-labels-B6560U3V.js → unique-nav-labels-BzOU2gyW.js} +1 -1
  943. package/dist/kolibri/{unique-nav-labels-B6560U3V.js.map → unique-nav-labels-BzOU2gyW.js.map} +1 -1
  944. package/dist/kolibri/{validation-Ct877GbF.js → validation-BIgftzAT.js} +1 -1
  945. package/dist/kolibri/{validation-Ct877GbF.js.map → validation-BIgftzAT.js.map} +1 -1
  946. package/dist/kolibri/validation-Cmv8Nj43.js +4 -0
  947. package/dist/kolibri/{validation-D0gTVdAQ.js.map → validation-Cmv8Nj43.js.map} +1 -1
  948. package/dist/types/components/table-stateless/component.d.ts +2 -0
  949. package/dist/types/components/tooltip/component.d.ts +1 -0
  950. package/dist/types/schema/components/table.d.ts +14 -2
  951. package/dist/types/schema/types/table.d.ts +1 -0
  952. package/dist/types/utils/clsx.d.ts +5 -0
  953. package/package.json +73 -8
  954. package/postinstall.js +10 -21
  955. package/dist/cjs/Alert-CpYj4v7g.js.map +0 -1
  956. package/dist/cjs/Collapsible-DrJS6rNQ.js.map +0 -1
  957. package/dist/cjs/CustomSuggestionsOptionsGroup-DAcN4YFU.js.map +0 -1
  958. package/dist/cjs/FieldControlStateWrapper-BJL8eQGW.js.map +0 -1
  959. package/dist/cjs/FormFieldStateWrapper-JRuyDpZT.js.map +0 -1
  960. package/dist/cjs/Heading-CFrR8SYV.js.map +0 -1
  961. package/dist/cjs/Input-CYpqUdug.js.map +0 -1
  962. package/dist/cjs/Span-CnRW44mB.js.map +0 -1
  963. package/dist/cjs/clsx-CkZlkaek.js +0 -4
  964. package/dist/cjs/clsx-CkZlkaek.js.map +0 -1
  965. package/dist/cjs/common-1pTy2kta.js +0 -4
  966. package/dist/cjs/common-1pTy2kta.js.map +0 -1
  967. package/dist/cjs/controller-icon-BVZaryXD.js.map +0 -1
  968. package/dist/cjs/href-DbWhzuXj.js +0 -4
  969. package/dist/cjs/index-C3uXtd6W.js +0 -4
  970. package/dist/cjs/index-C3uXtd6W.js.map +0 -1
  971. package/dist/cjs/multiple-BEeLswnf.js +0 -4
  972. package/dist/cjs/placeholder-DgaWXVvw.js +0 -4
  973. package/dist/cjs/required-CQRVrSKV.js +0 -4
  974. package/dist/cjs/show-uOPnYOEA.js +0 -4
  975. package/dist/cjs/tooltip-align-Bmn7e65O.js +0 -4
  976. package/dist/esm/Alert-w-XRy_I0.js.map +0 -1
  977. package/dist/esm/Collapsible-DPgFue-K.js.map +0 -1
  978. package/dist/esm/CustomSuggestionsOptionsGroup-DBnTzfB6.js.map +0 -1
  979. package/dist/esm/FieldControlStateWrapper-qlVOBL-e.js +0 -4
  980. package/dist/esm/FieldControlStateWrapper-qlVOBL-e.js.map +0 -1
  981. package/dist/esm/FormFieldStateWrapper-COm9oJpc.js.map +0 -1
  982. package/dist/esm/Heading-C1x8c7QT.js.map +0 -1
  983. package/dist/esm/Input-8s5wXmyi.js +0 -4
  984. package/dist/esm/Input-8s5wXmyi.js.map +0 -1
  985. package/dist/esm/Span-d_9gh2UX.js.map +0 -1
  986. package/dist/esm/clsx-eK3rPvPS.js +0 -4
  987. package/dist/esm/clsx-eK3rPvPS.js.map +0 -1
  988. package/dist/esm/common-BXXICkFX.js.map +0 -1
  989. package/dist/esm/controller-icon-BSuMVX-J.js.map +0 -1
  990. package/dist/esm/disabled-D0wfAqak.js +0 -4
  991. package/dist/esm/href-BDekIhFd.js +0 -4
  992. package/dist/esm/index-DyUiyxj3.js +0 -4
  993. package/dist/esm/index-DyUiyxj3.js.map +0 -1
  994. package/dist/esm/open-Cuy37cT5.js +0 -4
  995. package/dist/esm/required-IJ-wNQGn.js +0 -4
  996. package/dist/esm/rows-CaNxvJ4Y.js +0 -4
  997. package/dist/esm/spell-check-BBqBRmnp.js +0 -4
  998. package/dist/esm/tooltip-align-P-7pyT1i.js +0 -4
  999. package/dist/esm/validation-Ct877GbF.js +0 -4
  1000. package/dist/kolibri/Alert-w-XRy_I0.js +0 -4
  1001. package/dist/kolibri/Alert-w-XRy_I0.js.map +0 -1
  1002. package/dist/kolibri/Collapsible-DPgFue-K.js +0 -4
  1003. package/dist/kolibri/Collapsible-DPgFue-K.js.map +0 -1
  1004. package/dist/kolibri/CustomSuggestionsOptionsGroup-DBnTzfB6.js.map +0 -1
  1005. package/dist/kolibri/FieldControlStateWrapper-qlVOBL-e.js +0 -4
  1006. package/dist/kolibri/FieldControlStateWrapper-qlVOBL-e.js.map +0 -1
  1007. package/dist/kolibri/FormFieldStateWrapper-COm9oJpc.js.map +0 -1
  1008. package/dist/kolibri/Heading-C1x8c7QT.js +0 -4
  1009. package/dist/kolibri/Heading-C1x8c7QT.js.map +0 -1
  1010. package/dist/kolibri/Input-8s5wXmyi.js.map +0 -1
  1011. package/dist/kolibri/InputStateWrapper-BTDaLAdB.js +0 -4
  1012. package/dist/kolibri/InternalUnderlinedBadgeText-B9d8aD7h.js +0 -4
  1013. package/dist/kolibri/Span-d_9gh2UX.js +0 -4
  1014. package/dist/kolibri/Span-d_9gh2UX.js.map +0 -1
  1015. package/dist/kolibri/access-and-short-key-BlB0ZAri.js +0 -4
  1016. package/dist/kolibri/app-globals-D5fY7UdG.js +0 -4
  1017. package/dist/kolibri/bem-Gw3XXPol.js +0 -4
  1018. package/dist/kolibri/clsx-eK3rPvPS.js +0 -4
  1019. package/dist/kolibri/clsx-eK3rPvPS.js.map +0 -1
  1020. package/dist/kolibri/common-BXXICkFX.js +0 -4
  1021. package/dist/kolibri/common-BXXICkFX.js.map +0 -1
  1022. package/dist/kolibri/controller-Cas3cNU_.js +0 -4
  1023. package/dist/kolibri/controller-icon-BSuMVX-J.js +0 -4
  1024. package/dist/kolibri/controller-icon-BSuMVX-J.js.map +0 -1
  1025. package/dist/kolibri/controller-l9pRaF0m.js +0 -4
  1026. package/dist/kolibri/custom-class-B6h_ZSR7.js +0 -4
  1027. package/dist/kolibri/disabled-D0wfAqak.js +0 -4
  1028. package/dist/kolibri/has-closer-OxGfsISj.js +0 -4
  1029. package/dist/kolibri/hide-label-90DGA8H4.js +0 -4
  1030. package/dist/kolibri/href-BDekIhFd.js +0 -4
  1031. package/dist/kolibri/i18n-CvQhdUrE.js +0 -4
  1032. package/dist/kolibri/image-source-udiqQ1zY.js +0 -4
  1033. package/dist/kolibri/index-DyUiyxj3.js.map +0 -1
  1034. package/dist/kolibri/inline-eBYBtb1X.js +0 -4
  1035. package/dist/kolibri/max-length-behavior-C7oPJjTW.js +0 -4
  1036. package/dist/kolibri/multiple-BYEUdjyO.js +0 -4
  1037. package/dist/kolibri/open-Cuy37cT5.js +0 -4
  1038. package/dist/kolibri/orientation-uIK98CL3.js +0 -4
  1039. package/dist/kolibri/placeholder-C0qu-_xi.js +0 -4
  1040. package/dist/kolibri/read-only-DqzvkuwG.js +0 -4
  1041. package/dist/kolibri/required-IJ-wNQGn.js +0 -4
  1042. package/dist/kolibri/rows-CaNxvJ4Y.js +0 -4
  1043. package/dist/kolibri/show-DVtFSh7x.js +0 -4
  1044. package/dist/kolibri/spell-check-BBqBRmnp.js +0 -4
  1045. package/dist/kolibri/tooltip-align-P-7pyT1i.js +0 -4
  1046. package/dist/kolibri/validation-D0gTVdAQ.js +0 -4
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{L as o,n as t,b as a}from"./common-B-m-0Sa1.js";import{a as i}from"./index-CJixoXML.js";var n=()=>{i(o=>{try{o.shadowRoot instanceof ShadowRoot&&t(o,a(o))}catch(o){}return"default"}),import("./devtools-BAjFWJia.js").then(o=>{"object"==typeof o&&null!==o&&"function"==typeof o.initialize&&o.initialize()}).catch(t=>{o.error(t)})};const r=n;export{r as g};
@@ -1 +1 @@
1
- {"version":3,"file":"app-globals-D5fY7UdG.js","sources":["src/global/script.ts","@stencil/core/internal/app-globals"],"sourcesContent":["import { getThemeDetails, setThemeStyle } from 'adopted-style-sheets';\n\nimport { setMode } from '@stencil/core';\nimport { Log } from '../schema';\n\nexport default () => {\n\tsetMode((elm) => {\n\t\ttry {\n\t\t\tif (elm.shadowRoot instanceof ShadowRoot) {\n\t\t\t\tsetThemeStyle(elm, getThemeDetails(elm));\n\t\t\t}\n\t\t} catch (error) {\n\t\t\t/**\n\t\t\t * Try is needed for SSR.\n\t\t\t * - no HTMLElement is available\n\t\t\t * - no ShadowRoot is available\n\t\t\t */\n\t\t}\n\t\treturn 'default';\n\t});\n\n\timport('./devtools')\n\t\t.then((devTools) => {\n\t\t\tif (typeof devTools === 'object' && devTools !== null && typeof devTools.initialize === 'function') {\n\t\t\t\tdevTools.initialize();\n\t\t\t}\n\t\t})\n\t\t.catch((error) => {\n\t\t\tLog.error(error);\n\t\t});\n};\n","import appGlobalScript from '/home/runner/work/kolibri/kolibri/packages/components/src/global/script.ts';\nexport const globalScripts = appGlobalScript;\nexport const globalStyles = \"\";\n"],"names":["setThemeStyle","getThemeDetails"],"mappings":";;;;;;AAKA,sBAAe,MAAK;AACnB,IAAA,OAAO,CAAC,CAAC,GAAG,KAAI;AACf,QAAA,IAAI;AACH,YAAA,IAAI,GAAG,CAAC,UAAU,YAAY,UAAU,EAAE;gBACzCA,EAAa,CAAC,GAAG,EAAEC,CAAe,CAAC,GAAG,CAAC,CAAC;;;QAExC,OAAO,KAAK,EAAE;;AAOhB,QAAA,OAAO,SAAS;AACjB,KAAC,CAAC;IAEF,OAAO,wBAAY;AACjB,SAAA,IAAI,CAAC,CAAC,QAAQ,KAAI;AAClB,QAAA,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,KAAK,IAAI,IAAI,OAAO,QAAQ,CAAC,UAAU,KAAK,UAAU,EAAE;YACnG,QAAQ,CAAC,UAAU,EAAE;;AAEvB,KAAC;AACA,SAAA,KAAK,CAAC,CAAC,KAAK,KAAI;AAChB,QAAA,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC;AACjB,KAAC,CAAC;AACJ,CAAC;;AC7BW,MAAC,aAAa,GAAG;;;;"}
1
+ {"version":3,"file":"app-globals-Dd0i3RV0.js","sources":["src/global/script.ts","@stencil/core/internal/app-globals"],"sourcesContent":["import { getThemeDetails, setThemeStyle } from 'adopted-style-sheets';\n\nimport { setMode } from '@stencil/core';\nimport { Log } from '../schema';\n\nexport default () => {\n\tsetMode((elm) => {\n\t\ttry {\n\t\t\tif (elm.shadowRoot instanceof ShadowRoot) {\n\t\t\t\tsetThemeStyle(elm, getThemeDetails(elm));\n\t\t\t}\n\t\t} catch (error) {\n\t\t\t/**\n\t\t\t * Try is needed for SSR.\n\t\t\t * - no HTMLElement is available\n\t\t\t * - no ShadowRoot is available\n\t\t\t */\n\t\t}\n\t\treturn 'default';\n\t});\n\n\timport('./devtools')\n\t\t.then((devTools) => {\n\t\t\tif (typeof devTools === 'object' && devTools !== null && typeof devTools.initialize === 'function') {\n\t\t\t\tdevTools.initialize();\n\t\t\t}\n\t\t})\n\t\t.catch((error) => {\n\t\t\tLog.error(error);\n\t\t});\n};\n","import appGlobalScript from '/home/runner/work/kolibri/kolibri/packages/components/src/global/script.ts';\nexport const globalScripts = appGlobalScript;\nexport const globalStyles = \"\";\n"],"names":["setThemeStyle","getThemeDetails"],"mappings":";;;;;;AAKA,sBAAe,MAAK;AACnB,IAAA,OAAO,CAAC,CAAC,GAAG,KAAI;AACf,QAAA,IAAI;AACH,YAAA,IAAI,GAAG,CAAC,UAAU,YAAY,UAAU,EAAE;gBACzCA,EAAa,CAAC,GAAG,EAAEC,CAAe,CAAC,GAAG,CAAC,CAAC;;;QAExC,OAAO,KAAK,EAAE;;AAOhB,QAAA,OAAO,SAAS;AACjB,KAAC,CAAC;IAEF,OAAO,wBAAY;AACjB,SAAA,IAAI,CAAC,CAAC,QAAQ,KAAI;AAClB,QAAA,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,KAAK,IAAI,IAAI,OAAO,QAAQ,CAAC,UAAU,KAAK,UAAU,EAAE;YACnG,QAAQ,CAAC,UAAU,EAAE;;AAEvB,KAAC;AACA,SAAA,KAAK,CAAC,CAAC,KAAK,KAAI;AAChB,QAAA,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC;AACjB,KAAC,CAAC;AACJ,CAAC;;AC7BW,MAAC,aAAa,GAAG;;;;"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{e as t,I as e,j as i,N as s}from"./common-BXXICkFX.js";import{g as o}from"./bootstrap-bsjlQuLF.js";const a=(e,s,i)=>{t(e,"_name",s,i)},n=t=>"KOL-BUTTON"===t||"KOL-COMBOBOX"===t||"KOL-INPUT-CHECKBOX"===t||"KOL-INPUT-COLOR"===t||"KOL-INPUT-DATE"===t||"KOL-INPUT-EMAIL"===t||"KOL-INPUT-FILE"===t||"KOL-INPUT-NUMBER"===t||"KOL-INPUT-PASSWORD"===t||"KOL-INPUT-RADIO"===t||"KOL-INPUT-RANGE"===t||"KOL-INPUT-TEXT"===t||"KOL-SELECT"===t||"KOL-SINGLE-SELECT"===t||"KOL-TEXTAREA"===t;class l{constructor(t,s,a){var r,l,c,u;if(this.experimentalMode=e(),this.setFormAssociatedValue=t=>{var e;const s=null===(e=this.formAssociated)||void 0===e?void 0:e.getAttribute("name");null!==s&&""!==s||i(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);const o=this.tryToStringifyValue(t);this.syncValue(t,o,this.formAssociated),this.syncValue(t,o,this.syncToOwnInput)},this.component=t,this.host=this.findHostWithShadowRoot(a),this.type=s,(null===(r=o())||void 0===r?void 0:r.reflectInputValues)&&n(null===(l=this.host)||void 0===l?void 0:l.tagName)&&t._name){switch(null===(c=this.host)||void 0===c||c.querySelectorAll("input,select,textarea").forEach(t=>{var e;null===(e=this.host)||void 0===e||e.removeChild(t)}),this.type){case"button":case"color":case"date":case"email":case"file":case"number":case"password":case"radio":case"range":case"text":this.formAssociated=document.createElement("input"),this.formAssociated.setAttribute("type",this.type);break;case"select":this.formAssociated=document.createElement("select"),this.formAssociated.setAttribute("multiple","");break;case"textarea":this.formAssociated=document.createElement("textarea");break;default:this.formAssociated=document.createElement("input"),this.formAssociated.setAttribute("type","hidden")}this.formAssociated.setAttribute("data-form-associated",""),this.formAssociated.setAttribute("hidden",""),null===(u=this.host)||void 0===u||u.appendChild(this.formAssociated)}}findHostWithShadowRoot(t){for(;null===(null==t?void 0:t.shadowRoot)&&t!==document.body;)(t=null==t?void 0:t.parentNode).host&&(t=t.host);return t}setAttribute(t,e,s){if(this.experimentalMode)try{if("boolean"!=typeof(s="object"==typeof s&&null!==s?JSON.stringify(s):s)&&"number"!=typeof s&&"string"!=typeof s)throw new Error("Invalid value type: "+typeof s);null==e||e.setAttribute(t,`${s}`)}catch(s){null==e||e.removeAttribute(t)}}tryToStringifyValue(t){try{return"object"==typeof t&&null!==t?JSON.stringify(t).toString():null==t?null:t.toString()}catch(t){return s(`The form field raw value is not able to stringify! ${t}`),""}}syncValue(t,e,s){if(s)switch(this.type){case"file":s.files=t;break;case"select":s.querySelectorAll("option").forEach(t=>{s.removeChild(t)}),Array.isArray(t)&&t.forEach(t=>{const e=this.tryToStringifyValue(t);if("string"==typeof e){const t=document.createElement("option");t.setAttribute("value",e),t.setAttribute("selected",""),s.appendChild(t)}});break;case"radio":"string"==typeof e&&(s.setAttribute("value",e),s.setAttribute("checked",""),s.value=e);break;default:"string"==typeof e?(s.setAttribute("value",e),s.value=e):(s.removeAttribute("value"),s.value="")}}validateName(t){a(this.component,t,{hooks:{afterPatch:()=>{this.setAttribute("name",this.formAssociated,this.component.state._name)}}}),void 0===t&&i("A name on input fields or switches is not strictly required, but it might be relevant for the autocomplete function and for the static submission of the input field.")}validateSyncValueBySelector(t){if(this.experimentalMode&&"string"==typeof t){const e=document.querySelector(t);e&&(this.syncToOwnInput=e)}}componentWillLoad(){this.validateName(this.component._name),this.validateSyncValueBySelector(this.component._syncValueBySelector)}}export{l as A};
4
+ import{e as t,I as e,j as i,N as s}from"./common-B-m-0Sa1.js";import{g as o}from"./bootstrap-BhCzUA0r.js";const a=(e,s,i)=>{t(e,"_name",s,i)},n=t=>"KOL-BUTTON"===t||"KOL-COMBOBOX"===t||"KOL-INPUT-CHECKBOX"===t||"KOL-INPUT-COLOR"===t||"KOL-INPUT-DATE"===t||"KOL-INPUT-EMAIL"===t||"KOL-INPUT-FILE"===t||"KOL-INPUT-NUMBER"===t||"KOL-INPUT-PASSWORD"===t||"KOL-INPUT-RADIO"===t||"KOL-INPUT-RANGE"===t||"KOL-INPUT-TEXT"===t||"KOL-SELECT"===t||"KOL-SINGLE-SELECT"===t||"KOL-TEXTAREA"===t;class l{constructor(t,s,a){var r,l,c,u;if(this.experimentalMode=e(),this.setFormAssociatedValue=t=>{var e;const s=null===(e=this.formAssociated)||void 0===e?void 0:e.getAttribute("name");null!==s&&""!==s||i(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);const o=this.tryToStringifyValue(t);this.syncValue(t,o,this.formAssociated),this.syncValue(t,o,this.syncToOwnInput)},this.component=t,this.host=this.findHostWithShadowRoot(a),this.type=s,(null===(r=o())||void 0===r?void 0:r.reflectInputValues)&&n(null===(l=this.host)||void 0===l?void 0:l.tagName)&&t._name){switch(null===(c=this.host)||void 0===c||c.querySelectorAll("input,select,textarea").forEach(t=>{var e;null===(e=this.host)||void 0===e||e.removeChild(t)}),this.type){case"button":case"color":case"date":case"email":case"file":case"number":case"password":case"radio":case"range":case"text":this.formAssociated=document.createElement("input"),this.formAssociated.setAttribute("type",this.type);break;case"select":this.formAssociated=document.createElement("select"),this.formAssociated.setAttribute("multiple","");break;case"textarea":this.formAssociated=document.createElement("textarea");break;default:this.formAssociated=document.createElement("input"),this.formAssociated.setAttribute("type","hidden")}this.formAssociated.setAttribute("data-form-associated",""),this.formAssociated.setAttribute("hidden",""),null===(u=this.host)||void 0===u||u.appendChild(this.formAssociated)}}findHostWithShadowRoot(t){for(;null===(null==t?void 0:t.shadowRoot)&&t!==document.body;)(t=null==t?void 0:t.parentNode).host&&(t=t.host);return t}setAttribute(t,e,s){if(this.experimentalMode)try{if("boolean"!=typeof(s="object"==typeof s&&null!==s?JSON.stringify(s):s)&&"number"!=typeof s&&"string"!=typeof s)throw new Error("Invalid value type: "+typeof s);null==e||e.setAttribute(t,`${s}`)}catch(s){null==e||e.removeAttribute(t)}}tryToStringifyValue(t){try{return"object"==typeof t&&null!==t?JSON.stringify(t).toString():null==t?null:t.toString()}catch(t){return s(`The form field raw value is not able to stringify! ${t}`),""}}syncValue(t,e,s){if(s)switch(this.type){case"file":s.files=t;break;case"select":s.querySelectorAll("option").forEach(t=>{s.removeChild(t)}),Array.isArray(t)&&t.forEach(t=>{const e=this.tryToStringifyValue(t);if("string"==typeof e){const t=document.createElement("option");t.setAttribute("value",e),t.setAttribute("selected",""),s.appendChild(t)}});break;case"radio":"string"==typeof e&&(s.setAttribute("value",e),s.setAttribute("checked",""),s.value=e);break;default:"string"==typeof e?(s.setAttribute("value",e),s.value=e):(s.removeAttribute("value"),s.value="")}}validateName(t){a(this.component,t,{hooks:{afterPatch:()=>{this.setAttribute("name",this.formAssociated,this.component.state._name)}}}),void 0===t&&i("A name on input fields or switches is not strictly required, but it might be relevant for the autocomplete function and for the static submission of the input field.")}validateSyncValueBySelector(t){if(this.experimentalMode&&"string"==typeof t){const e=document.querySelector(t);e&&(this.syncToOwnInput=e)}}componentWillLoad(){this.validateName(this.component._name),this.validateSyncValueBySelector(this.component._syncValueBySelector)}}export{l as A};
@@ -1 +1 @@
1
- {"version":3,"file":"associated.controller-ByKVIoVY.js","sources":["src/schema/props/name.ts","src/components/input-adapter-leanup/associated.controller.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport type { WatchStringOptions } from '../utils';\nimport { watchString } from '../utils';\n\n/* types */\nexport type NamePropType = string;\n\n/**\n * Defines the technical name of an input field.\n */\nexport type PropName = {\n\tname: NamePropType;\n};\n\n/* validator */\nexport const validateName = (component: Generic.Element.Component, value?: NamePropType, options?: WatchStringOptions): void => {\n\twatchString(component, '_name', value, options);\n};\n","import type { NamePropType, PropSyncValueBySelector, StencilUnknown, SyncValueBySelectorPropType } from '../../schema';\nimport { devHint, devWarning, getExperimentalMode, validateName } from '../../schema';\n\nimport type { Generic } from 'adopted-style-sheets';\nimport { getOptions } from '../../core/bootstrap';\n\ntype RequiredProps = NonNullable<unknown>;\ntype OptionalProps = {\n\tname: string;\n} & PropSyncValueBySelector;\ntype Props = Generic.Element.Members<RequiredProps, OptionalProps>;\ntype Watches = Generic.Element.Watchers<RequiredProps, OptionalProps>;\n\ntype HTMLInputFileElement = HTMLInputElement & {\n\tfiles: FileList;\n};\n\nconst isAssociatedTagName = (name?: string): boolean =>\n\tname === 'KOL-BUTTON' ||\n\tname === 'KOL-COMBOBOX' ||\n\tname === 'KOL-INPUT-CHECKBOX' ||\n\tname === 'KOL-INPUT-COLOR' ||\n\tname === 'KOL-INPUT-DATE' ||\n\tname === 'KOL-INPUT-EMAIL' ||\n\tname === 'KOL-INPUT-FILE' ||\n\tname === 'KOL-INPUT-NUMBER' ||\n\tname === 'KOL-INPUT-PASSWORD' ||\n\tname === 'KOL-INPUT-RADIO' ||\n\tname === 'KOL-INPUT-RANGE' ||\n\tname === 'KOL-INPUT-TEXT' ||\n\tname === 'KOL-SELECT' ||\n\tname === 'KOL-SINGLE-SELECT' ||\n\tname === 'KOL-TEXTAREA';\n\nexport class AssociatedInputController implements Watches {\n\tprivate readonly experimentalMode = getExperimentalMode();\n\n\tprotected readonly component: Generic.Element.Component & Props;\n\tprotected readonly type: string;\n\tprotected readonly host?: HTMLElement;\n\n\tpublic readonly formAssociated?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\tpublic syncToOwnInput?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\n\tpublic constructor(component: Generic.Element.Component & Props, type: string, host?: HTMLElement) {\n\t\tthis.component = component;\n\t\tthis.host = this.findHostWithShadowRoot(host);\n\t\tthis.type = type;\n\n\t\tif (getOptions()?.reflectInputValues && isAssociatedTagName(this.host?.tagName) && component._name) {\n\t\t\tthis.host?.querySelectorAll('input,select,textarea').forEach((el) => {\n\t\t\t\tthis.host?.removeChild(el);\n\t\t\t});\n\t\t\tswitch (this.type) {\n\t\t\t\tcase 'button':\n\t\t\t\tcase 'color':\n\t\t\t\tcase 'date':\n\t\t\t\tcase 'email':\n\t\t\t\tcase 'file':\n\t\t\t\tcase 'number':\n\t\t\t\tcase 'password':\n\t\t\t\tcase 'radio':\n\t\t\t\tcase 'range':\n\t\t\t\tcase 'text':\n\t\t\t\t\tthis.formAssociated = document.createElement('input');\n\t\t\t\t\tthis.formAssociated.setAttribute('type', this.type);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'select':\n\t\t\t\t\tthis.formAssociated = document.createElement('select');\n\t\t\t\t\tthis.formAssociated.setAttribute('multiple', '');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'textarea':\n\t\t\t\t\tthis.formAssociated = document.createElement('textarea');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'checkbox': // Checkbox uses default case\n\t\t\t\tcase 'single-select': // SingleSelect uses default case\n\t\t\t\tcase 'combobox': // Combobox uses default case\n\t\t\t\tdefault:\n\t\t\t\t\tthis.formAssociated = document.createElement('input');\n\t\t\t\t\tthis.formAssociated.setAttribute('type', 'hidden');\n\t\t\t}\n\t\t\tthis.formAssociated.setAttribute('data-form-associated', '');\n\t\t\tthis.formAssociated.setAttribute('hidden', '');\n\t\t\tthis.host?.appendChild(this.formAssociated);\n\t\t}\n\t}\n\n\t/**\n\t * The associated elements must not reside within the ShadowRoot and must\n\t * reside as children in the host to be recognized by native forms.\n\t */\n\tprivate findHostWithShadowRoot(host?: HTMLElement): HTMLElement | undefined {\n\t\twhile (host?.shadowRoot === null && host !== document.body) {\n\t\t\thost = host?.parentNode as HTMLElement;\n\t\t\tif ((host as unknown as ShadowRoot).host) {\n\t\t\t\thost = (host as unknown as ShadowRoot).host as HTMLElement;\n\t\t\t}\n\t\t}\n\t\treturn host;\n\t}\n\n\tprotected setAttribute(qualifiedName: string, element?: HTMLElement, value?: string | number | boolean) {\n\t\tif (this.experimentalMode) {\n\t\t\ttry {\n\t\t\t\tvalue = typeof value === 'object' && value !== null ? JSON.stringify(value) : value;\n\t\t\t\tif (typeof value === 'boolean' || typeof value === 'number' || typeof value === 'string') {\n\t\t\t\t\telement?.setAttribute(qualifiedName, `${value as string}`);\n\t\t\t\t} else {\n\t\t\t\t\tthrow new Error(`Invalid value type: ${typeof value}`);\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\telement?.removeAttribute(qualifiedName);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * We need to stringify the value, for the setAttribute method.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/setAttribute\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/attributes\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/attributes#value\n\t *\n\t * TODO: It is possible that the value are a cyclic object value. So we need a custom\n\t * JSON.stringify method from outside to convert it to string.\n\t */\n\tprivate tryToStringifyValue(value: StencilUnknown): string | null {\n\t\ttry {\n\t\t\treturn typeof value === 'object' && value !== null ? JSON.stringify(value).toString() : value === null || value === undefined ? null : value.toString();\n\t\t} catch (e) {\n\t\t\tdevWarning(`The form field raw value is not able to stringify! ${e as string}`);\n\t\t\treturn '';\n\t\t}\n\t}\n\n\t/**\n\t * We try to support native form-associated custom elements.\n\t *\n\t * @see https://github.com/public-ui/kolibri/discussions/2821\n\t */\n\tpublic readonly setFormAssociatedValue = (rawValue: StencilUnknown) => {\n\t\tconst name = this.formAssociated?.getAttribute('name');\n\t\tif (name === null || name === '') {\n\t\t\tdevHint(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);\n\t\t}\n\t\tconst strValue = this.tryToStringifyValue(rawValue);\n\t\tthis.syncValue(rawValue, strValue, this.formAssociated);\n\t\tthis.syncValue(rawValue, strValue, this.syncToOwnInput);\n\t};\n\n\tprivate syncValue(\n\t\trawValue: StencilUnknown,\n\t\tstrValue: string | null,\n\t\tassociatedElement?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement,\n\t) {\n\t\tif (associatedElement) {\n\t\t\tswitch (this.type) {\n\t\t\t\tcase 'file':\n\t\t\t\t\t(associatedElement as HTMLInputFileElement).files = rawValue as FileList;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'select':\n\t\t\t\t\t(associatedElement as HTMLSelectElement).querySelectorAll('option').forEach((el) => {\n\t\t\t\t\t\t(associatedElement as HTMLSelectElement).removeChild(el);\n\t\t\t\t\t});\n\t\t\t\t\tif (Array.isArray(rawValue)) {\n\t\t\t\t\t\trawValue.forEach((rawValueItem) => {\n\t\t\t\t\t\t\tconst strValueItem = this.tryToStringifyValue(rawValueItem as string);\n\t\t\t\t\t\t\tif (typeof strValueItem === 'string') {\n\t\t\t\t\t\t\t\tconst option = document.createElement('option');\n\t\t\t\t\t\t\t\toption.setAttribute('value', strValueItem);\n\t\t\t\t\t\t\t\toption.setAttribute('selected', '');\n\t\t\t\t\t\t\t\t(associatedElement as HTMLSelectElement).appendChild(option);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'radio':\n\t\t\t\t\tif (typeof strValue === 'string') {\n\t\t\t\t\t\tassociatedElement.setAttribute('value', strValue);\n\t\t\t\t\t\tassociatedElement.setAttribute('checked', '');\n\t\t\t\t\t\tassociatedElement.value = strValue;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif (typeof strValue === 'string') {\n\t\t\t\t\t\tassociatedElement.setAttribute('value', strValue);\n\t\t\t\t\t\tassociatedElement.value = strValue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tassociatedElement.removeAttribute('value');\n\t\t\t\t\t\tassociatedElement.value = '';\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic validateName(value?: NamePropType): void {\n\t\tvalidateName(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: () => {\n\t\t\t\t\tthis.setAttribute('name', this.formAssociated, this.component.state._name as string);\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\t\tif (typeof value === 'undefined') {\n\t\t\tdevHint(\n\t\t\t\t`A name on input fields or switches is not strictly required, but it might be relevant for the autocomplete function and for the static submission of the input field.`,\n\t\t\t);\n\t\t}\n\t}\n\n\tpublic validateSyncValueBySelector(value?: SyncValueBySelectorPropType): void {\n\t\tif (this.experimentalMode && typeof value === 'string') {\n\t\t\tconst input = document.querySelector(value) as HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\t\t\tif (input /* SSR instanceof HTMLInputElement */) {\n\t\t\t\tthis.syncToOwnInput = input;\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateName(this.component._name);\n\t\tthis.validateSyncValueBySelector(this.component._syncValueBySelector);\n\t}\n}\n"],"names":[],"mappings":";;;;;;AAgBO,MAAM,YAAY,GAAG,CAAC,SAAoC,EAAE,KAAoB,EAAE,OAA4B,KAAU;IAC9H,WAAW,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,CAAC;AAChD,CAAC;;ACDD,MAAM,mBAAmB,GAAG,CAAC,IAAa,KACzC,IAAI,KAAK,YAAY;AACrB,IAAA,IAAI,KAAK,cAAc;AACvB,IAAA,IAAI,KAAK,oBAAoB;AAC7B,IAAA,IAAI,KAAK,iBAAiB;AAC1B,IAAA,IAAI,KAAK,gBAAgB;AACzB,IAAA,IAAI,KAAK,iBAAiB;AAC1B,IAAA,IAAI,KAAK,gBAAgB;AACzB,IAAA,IAAI,KAAK,kBAAkB;AAC3B,IAAA,IAAI,KAAK,oBAAoB;AAC7B,IAAA,IAAI,KAAK,iBAAiB;AAC1B,IAAA,IAAI,KAAK,iBAAiB;AAC1B,IAAA,IAAI,KAAK,gBAAgB;AACzB,IAAA,IAAI,KAAK,YAAY;AACrB,IAAA,IAAI,KAAK,mBAAmB;IAC5B,IAAI,KAAK,c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G,IAAI,KAAK,EAAwC;AAChD,gBAAA,IAAI,CAAC,cAAc,GAAG,KAAK;;;;IAKvB,iBAAiB,GAAA;QACvB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;QACvC,IAAI,CAAC,2BAA2B,CAAC,IAAI,CAAC,SAAS,CAAC,oBAAoB,CAAC;;AAEtE;;;;"}
1
+ {"version":3,"file":"associated.controller-BZSp_RI6.js","sources":["src/schema/props/name.ts","src/components/input-adapter-leanup/associated.controller.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport type { WatchStringOptions } from '../utils';\nimport { watchString } from '../utils';\n\n/* types */\nexport type NamePropType = string;\n\n/**\n * Defines the technical name of an input field.\n */\nexport type PropName = {\n\tname: NamePropType;\n};\n\n/* validator */\nexport const validateName = (component: Generic.Element.Component, value?: NamePropType, options?: WatchStringOptions): void => {\n\twatchString(component, '_name', value, options);\n};\n","import type { NamePropType, PropSyncValueBySelector, StencilUnknown, SyncValueBySelectorPropType } from '../../schema';\nimport { devHint, devWarning, getExperimentalMode, validateName } from '../../schema';\n\nimport type { Generic } from 'adopted-style-sheets';\nimport { getOptions } from '../../core/bootstrap';\n\ntype RequiredProps = NonNullable<unknown>;\ntype OptionalProps = {\n\tname: string;\n} & PropSyncValueBySelector;\ntype Props = Generic.Element.Members<RequiredProps, OptionalProps>;\ntype Watches = Generic.Element.Watchers<RequiredProps, OptionalProps>;\n\ntype HTMLInputFileElement = HTMLInputElement & {\n\tfiles: FileList;\n};\n\nconst isAssociatedTagName = (name?: string): boolean =>\n\tname === 'KOL-BUTTON' ||\n\tname === 'KOL-COMBOBOX' ||\n\tname === 'KOL-INPUT-CHECKBOX' ||\n\tname === 'KOL-INPUT-COLOR' ||\n\tname === 'KOL-INPUT-DATE' ||\n\tname === 'KOL-INPUT-EMAIL' ||\n\tname === 'KOL-INPUT-FILE' ||\n\tname === 'KOL-INPUT-NUMBER' ||\n\tname === 'KOL-INPUT-PASSWORD' ||\n\tname === 'KOL-INPUT-RADIO' ||\n\tname === 'KOL-INPUT-RANGE' ||\n\tname === 'KOL-INPUT-TEXT' ||\n\tname === 'KOL-SELECT' ||\n\tname === 'KOL-SINGLE-SELECT' ||\n\tname === 'KOL-TEXTAREA';\n\nexport class AssociatedInputController implements Watches {\n\tprivate readonly experimentalMode = getExperimentalMode();\n\n\tprotected readonly component: Generic.Element.Component & Props;\n\tprotected readonly type: string;\n\tprotected readonly host?: HTMLElement;\n\n\tpublic readonly formAssociated?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\tpublic syncToOwnInput?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\n\tpublic constructor(component: Generic.Element.Component & Props, type: string, host?: HTMLElement) {\n\t\tthis.component = component;\n\t\tthis.host = this.findHostWithShadowRoot(host);\n\t\tthis.type = type;\n\n\t\tif (getOptions()?.reflectInputValues && isAssociatedTagName(this.host?.tagName) && component._name) {\n\t\t\tthis.host?.querySelectorAll('input,select,textarea').forEach((el) => {\n\t\t\t\tthis.host?.removeChild(el);\n\t\t\t});\n\t\t\tswitch (this.type) {\n\t\t\t\tcase 'button':\n\t\t\t\tcase 'color':\n\t\t\t\tcase 'date':\n\t\t\t\tcase 'email':\n\t\t\t\tcase 'file':\n\t\t\t\tcase 'number':\n\t\t\t\tcase 'password':\n\t\t\t\tcase 'radio':\n\t\t\t\tcase 'range':\n\t\t\t\tcase 'text':\n\t\t\t\t\tthis.formAssociated = document.createElement('input');\n\t\t\t\t\tthis.formAssociated.setAttribute('type', this.type);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'select':\n\t\t\t\t\tthis.formAssociated = document.createElement('select');\n\t\t\t\t\tthis.formAssociated.setAttribute('multiple', '');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'textarea':\n\t\t\t\t\tthis.formAssociated = document.createElement('textarea');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'checkbox': // Checkbox uses default case\n\t\t\t\tcase 'single-select': // SingleSelect uses default case\n\t\t\t\tcase 'combobox': // Combobox uses default case\n\t\t\t\tdefault:\n\t\t\t\t\tthis.formAssociated = document.createElement('input');\n\t\t\t\t\tthis.formAssociated.setAttribute('type', 'hidden');\n\t\t\t}\n\t\t\tthis.formAssociated.setAttribute('data-form-associated', '');\n\t\t\tthis.formAssociated.setAttribute('hidden', '');\n\t\t\tthis.host?.appendChild(this.formAssociated);\n\t\t}\n\t}\n\n\t/**\n\t * The associated elements must not reside within the ShadowRoot and must\n\t * reside as children in the host to be recognized by native forms.\n\t */\n\tprivate findHostWithShadowRoot(host?: HTMLElement): HTMLElement | undefined {\n\t\twhile (host?.shadowRoot === null && host !== document.body) {\n\t\t\thost = host?.parentNode as HTMLElement;\n\t\t\tif ((host as unknown as ShadowRoot).host) {\n\t\t\t\thost = (host as unknown as ShadowRoot).host as HTMLElement;\n\t\t\t}\n\t\t}\n\t\treturn host;\n\t}\n\n\tprotected setAttribute(qualifiedName: string, element?: HTMLElement, value?: string | number | boolean) {\n\t\tif (this.experimentalMode) {\n\t\t\ttry {\n\t\t\t\tvalue = typeof value === 'object' && value !== null ? JSON.stringify(value) : value;\n\t\t\t\tif (typeof value === 'boolean' || typeof value === 'number' || typeof value === 'string') {\n\t\t\t\t\telement?.setAttribute(qualifiedName, `${value as string}`);\n\t\t\t\t} else {\n\t\t\t\t\tthrow new Error(`Invalid value type: ${typeof value}`);\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\telement?.removeAttribute(qualifiedName);\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * We need to stringify the value, for the setAttribute method.\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/setAttribute\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/attributes\n\t * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/attributes#value\n\t *\n\t * TODO: It is possible that the value are a cyclic object value. So we need a custom\n\t * JSON.stringify method from outside to convert it to string.\n\t */\n\tprivate tryToStringifyValue(value: StencilUnknown): string | null {\n\t\ttry {\n\t\t\treturn typeof value === 'object' && value !== null ? JSON.stringify(value).toString() : value === null || value === undefined ? null : value.toString();\n\t\t} catch (e) {\n\t\t\tdevWarning(`The form field raw value is not able to stringify! ${e as string}`);\n\t\t\treturn '';\n\t\t}\n\t}\n\n\t/**\n\t * We try to support native form-associated custom elements.\n\t *\n\t * @see https://github.com/public-ui/kolibri/discussions/2821\n\t */\n\tpublic readonly setFormAssociatedValue = (rawValue: StencilUnknown) => {\n\t\tconst name = this.formAssociated?.getAttribute('name');\n\t\tif (name === null || name === '') {\n\t\t\tdevHint(` The form field (${this.type}) must have a name attribute to be form-associated. Please define the _name attribute.`);\n\t\t}\n\t\tconst strValue = this.tryToStringifyValue(rawValue);\n\t\tthis.syncValue(rawValue, strValue, this.formAssociated);\n\t\tthis.syncValue(rawValue, strValue, this.syncToOwnInput);\n\t};\n\n\tprivate syncValue(\n\t\trawValue: StencilUnknown,\n\t\tstrValue: string | null,\n\t\tassociatedElement?: HTMLButtonElement | HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement,\n\t) {\n\t\tif (associatedElement) {\n\t\t\tswitch (this.type) {\n\t\t\t\tcase 'file':\n\t\t\t\t\t(associatedElement as HTMLInputFileElement).files = rawValue as FileList;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'select':\n\t\t\t\t\t(associatedElement as HTMLSelectElement).querySelectorAll('option').forEach((el) => {\n\t\t\t\t\t\t(associatedElement as HTMLSelectElement).removeChild(el);\n\t\t\t\t\t});\n\t\t\t\t\tif (Array.isArray(rawValue)) {\n\t\t\t\t\t\trawValue.forEach((rawValueItem) => {\n\t\t\t\t\t\t\tconst strValueItem = this.tryToStringifyValue(rawValueItem as string);\n\t\t\t\t\t\t\tif (typeof strValueItem === 'string') {\n\t\t\t\t\t\t\t\tconst option = document.createElement('option');\n\t\t\t\t\t\t\t\toption.setAttribute('value', strValueItem);\n\t\t\t\t\t\t\t\toption.setAttribute('selected', '');\n\t\t\t\t\t\t\t\t(associatedElement as HTMLSelectElement).appendChild(option);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'radio':\n\t\t\t\t\tif (typeof strValue === 'string') {\n\t\t\t\t\t\tassociatedElement.setAttribute('value', strValue);\n\t\t\t\t\t\tassociatedElement.setAttribute('checked', '');\n\t\t\t\t\t\tassociatedElement.value = strValue;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tif (typeof strValue === 'string') {\n\t\t\t\t\t\tassociatedElement.setAttribute('value', strValue);\n\t\t\t\t\t\tassociatedElement.value = strValue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tassociatedElement.removeAttribute('value');\n\t\t\t\t\t\tassociatedElement.value = '';\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic validateName(value?: NamePropType): void {\n\t\tvalidateName(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: () => {\n\t\t\t\t\tthis.setAttribute('name', this.formAssociated, this.component.state._name as string);\n\t\t\t\t},\n\t\t\t},\n\t\t});\n\t\tif (typeof value === 'undefined') {\n\t\t\tdevHint(\n\t\t\t\t`A name on input fields or switches is not strictly required, but it might be relevant for the autocomplete function and for the static submission of the input field.`,\n\t\t\t);\n\t\t}\n\t}\n\n\tpublic validateSyncValueBySelector(value?: SyncValueBySelectorPropType): void {\n\t\tif (this.experimentalMode && typeof value === 'string') {\n\t\t\tconst input = document.querySelector(value) as HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;\n\t\t\tif (input /* SSR instanceof HTMLInputElement */) {\n\t\t\t\tthis.syncToOwnInput = input;\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tthis.validateName(this.component._name);\n\t\tthis.validateSyncValueBySelector(this.component._syncValueBySelector);\n\t}\n}\n"],"names":[],"mapp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N,wBAAA,iBAAiB,CAAC,eAAe,CAAC,OAAO,CAAC;AAC1C,wBAAA,iBAAiB,CAAC,KAAK,GAAG,EAAE;;;;;AAM1B,IAAA,YAAY,CAAC,KAAoB,EAAA;AACvC,QAAA,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,EAAE;AACnC,YAAA,KAAK,EAAE;gBACN,UAAU,EAAE,MAAK;AAChB,oBAAA,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,KAAe,CAAC;iBACpF;AACD,aAAA;AACD,SAAA,CAAC;AACF,QAAA,IAAI,OAAO,KAAK,KAAK,WAAW,EAAE;YACjC,OAAO,CACN,CAAuK,qKAAA,CAAA,CACvK;;;AAII,IAAA,2BAA2B,CAAC,KAAmC,EAAA;QACrE,IAAI,IAAI,CAAC,gBAAgB,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YACvD,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAA+D;YACzG,IAAI,KAAK,EAAwC;AAChD,gBAAA,IAAI,CAAC,cAAc,GAAG,KAAK;;;;IAKvB,iBAAiB,GAAA;QACvB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;QACvC,IAAI,CAAC,2BAA2B,CAAC,IAAI,CAAC,SAAS,CAAC,oBAAoB,CAAC;;AAEtE;;;;"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{w as o}from"./common-BXXICkFX.js";const t=["on","off"],e=(e,f)=>{o(e,"_autoComplete",o=>t.includes(o)||"string"==typeof o&&o.length>0,new Set(t),f,{defaultValue:"off"})};export{e as v};
4
+ import{w as o}from"./common-B-m-0Sa1.js";const t=["on","off"],e=(e,f)=>{o(e,"_autoComplete",o=>t.includes(o)||"string"==typeof o&&o.length>0,new Set(t),f,{defaultValue:"off"})};export{e as v};
@@ -1 +1 @@
1
- {"version":3,"file":"auto-complete-CndE0brm.js","sources":["src/schema/props/auto-complete.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { watchValidator } from '../utils';\n\n/* types */\nexport const autoCompleteOptions = ['on', 'off'] as const;\nexport type AutoCompletePropType = (typeof autoCompleteOptions)[number] | string;\n\n/**\n * Defines the auto-complete behavior for an element.\n */\nexport type PropAutoComplete = {\n\tautoComplete: AutoCompletePropType;\n};\n\n/* validator */\nexport const validateAutoComplete = (component: Generic.Element.Component, value?: AutoCompletePropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t'_autoComplete',\n\t\t(value): boolean => autoCompleteOptions.includes(value as (typeof autoCompleteOptions)[number]) || (typeof value === 'string' && value.length > 0),\n\t\tnew Set(autoCompleteOptions),\n\t\tvalue,\n\t\t{\n\t\t\tdefaultValue: 'off',\n\t\t},\n\t);\n};\n"],"names":[],"mappings":";;;;;AAKO,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE,KAAK,CAAU;MAW5C,oBAAoB,GAAG,CAAC,SAAoC,EAAE,KAA4B,KAAU;AAChH,IAAA,cAAc,CACb,SAAS,EACT,eAAe,EACf,CAAC,KAAK,KAAc,mBAAmB,CAAC,QAAQ,CAAC,KAA6C,CAAC,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,EAClJ,IAAI,GAAG,CAAC,mBAAmB,CAAC,EAC5B,KAAK,EACL;AACC,QAAA,YAAY,EAAE,KAAK;AACnB,KAAA,CACD;AACF;;;;"}
1
+ {"version":3,"file":"auto-complete-wULl95GT.js","sources":["src/schema/props/auto-complete.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { watchValidator } from '../utils';\n\n/* types */\nexport const autoCompleteOptions = ['on', 'off'] as const;\nexport type AutoCompletePropType = (typeof autoCompleteOptions)[number] | string;\n\n/**\n * Defines the auto-complete behavior for an element.\n */\nexport type PropAutoComplete = {\n\tautoComplete: AutoCompletePropType;\n};\n\n/* validator */\nexport const validateAutoComplete = (component: Generic.Element.Component, value?: AutoCompletePropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t'_autoComplete',\n\t\t(value): boolean => autoCompleteOptions.includes(value as (typeof autoCompleteOptions)[number]) || (typeof value === 'string' && value.length > 0),\n\t\tnew Set(autoCompleteOptions),\n\t\tvalue,\n\t\t{\n\t\t\tdefaultValue: 'off',\n\t\t},\n\t);\n};\n"],"names":[],"mappings":";;;;;AAKO,MAAM,mBAAmB,GAAG,CAAC,IAAI,EAAE,KAAK,CAAU;MAW5C,oBAAoB,GAAG,CAAC,SAAoC,EAAE,KAA4B,KAAU;AAChH,IAAA,cAAc,CACb,SAAS,EACT,eAAe,EACf,CAAC,KAAK,KAAc,mBAAmB,CAAC,QAAQ,CAAC,KAA6C,CAAC,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,EAClJ,IAAI,GAAG,CAAC,mBAAmB,CAAC,EAC5B,KAAK,EACL;AACC,QAAA,YAAY,EAAE,KAAK;AACnB,KAAA,CACD;AACF;;;;"}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{c as o}from"./browser-CU41g6rf.js";const n=o(),s={"kol-icon":{elements:{icon:{modifiers:null}},modifiers:null}},i=n("kol-icon"),c=n("kol-icon","icon");export{s as B,i as a,c as b};
@@ -1 +1 @@
1
- {"version":3,"file":"bem-Gw3XXPol.js","sources":["src/components/icon/bem.ts"],"sourcesContent":["import { generateBemClassNames } from 'typed-bem';\n\ntype SCHEMA = {\n\t'kol-icon': {\n\t\telements: {\n\t\t\ticon: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t};\n\t\tmodifiers: null;\n\t};\n};\n\nconst bem = generateBemClassNames<SCHEMA>();\n\nconst BEM: SCHEMA = {\n\t'kol-icon': {\n\t\telements: {\n\t\t\ticon: { modifiers: null },\n\t\t},\n\t\tmodifiers: null,\n\t},\n};\n\n/**\n * Define the static BEM class names for the alert component.\n */\nconst BEM_CLASS_ICON = bem('kol-icon');\nconst BEM_CLASS_ICON__ICON = bem('kol-icon', 'icon');\n\nexport { BEM_CLASS_ICON, BEM_CLASS_ICON__ICON, BEM as BEM_ICON, bem as genBemAlert };\n"],"names":["generateBemClassNames"],"mappings":";;;;;AAaA,MAAM,GAAG,GAAGA,CAAqB,EAAU;AAE3C,MAAM,GAAG,GAAW;AACnB,IAAA,UAAU,EAAE;AACX,QAAA,QAAQ,EAAE;AACT,YAAA,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AACzB,SAAA;AACD,QAAA,SAAS,EAAE,IAAI;AACf,KAAA;;AAMF,MAAM,cAAc,GAAG,GAAG,CAAC,UAAU;AAC/B,MAAA,oBAAoB,GAAG,GAAG,CAAC,UAAU,EAAE,MAAM;;;;"}
1
+ {"version":3,"file":"bem-B-RhdwG0.js","sources":["src/components/icon/bem.ts"],"sourcesContent":["import { generateBemClassNames } from 'typed-bem';\n\ntype SCHEMA = {\n\t'kol-icon': {\n\t\telements: {\n\t\t\ticon: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t};\n\t\tmodifiers: null;\n\t};\n};\n\nconst bem = generateBemClassNames<SCHEMA>();\n\nconst BEM: SCHEMA = {\n\t'kol-icon': {\n\t\telements: {\n\t\t\ticon: { modifiers: null },\n\t\t},\n\t\tmodifiers: null,\n\t},\n};\n\n/**\n * Define the static BEM class names for the alert component.\n */\nconst BEM_CLASS_ICON = bem('kol-icon');\nconst BEM_CLASS_ICON__ICON = bem('kol-icon', 'icon');\n\nexport { BEM_CLASS_ICON, BEM_CLASS_ICON__ICON, BEM as BEM_ICON, bem as genBemAlert };\n"],"names":["generateBemClassNames"],"mappings":";;;;;AAaA,MAAM,GAAG,GAAGA,CAAqB,EAAU;AAE3C,MAAM,GAAG,GAAW;AACnB,IAAA,UAAU,EAAE;AACX,QAAA,QAAQ,EAAE;AACT,YAAA,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AACzB,SAAA;AACD,QAAA,SAAS,EAAE,IAAI;AACf,KAAA;;AAMF,MAAM,cAAc,GAAG,GAAG,CAAC,UAAU;AAC/B,MAAA,oBAAoB,GAAG,GAAG,CAAC,UAAU,EAAE,MAAM;;;;"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{c as e}from"./browser-DaourpHc.js";const o=e(),t={"kol-alert":{elements:{closer:{modifiers:null},heading:{modifiers:new Set(["h0","h1","h2","h3","h4","h5","h6"])},icon:{modifiers:null},content:{modifiers:null},container:{modifiers:null}},modifiers:new Set(["hasCloser","type-default","type-error","type-info","type-success","type-warning","variant-card","variant-msg"])}},s=o("kol-alert","closer")+" kol-close-button",n=o("kol-alert","content"),r=o("kol-alert","icon");export{t as B,r as a,o as b,n as c,s as d};
4
+ import{c as e}from"./browser-CU41g6rf.js";const o=e(),r={"kol-alert":{elements:{closer:{modifiers:null},heading:{modifiers:new Set(["h0","h1","h2","h3","h4","h5","h6"])},icon:{modifiers:null},content:{modifiers:null},container:{modifiers:null}},modifiers:new Set(["hasCloser","type-default","type-error","type-info","type-success","type-warning","variant-card","variant-msg"])}},s=o("kol-alert","closer"),t=o("kol-alert","content"),n=o("kol-alert","icon");export{r as B,n as a,o as b,t as c,s as d};
@@ -1 +1 @@
1
- {"version":3,"file":"bem-DQRepkGo.js","sources":["src/functional-components/Alert/bem.ts"],"sourcesContent":["import { generateBemClassNames } from 'typed-bem';\n\n/**\n * This file defines the BEM schema for the kol-alert component.\n */\n\n/**\n * The schema defines the structure of the BEM class names\n */\ntype SCHEMA = {\n\t'kol-alert': {\n\t\t/**\n\t\t * Here we define the elements we needed\n\t\t * to realize a minimal full featured alert\n\t\t * component (DOM).\n\t\t */\n\t\telements: {\n\t\t\tcontainer: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\ticon: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\theading: {\n\t\t\t\t/**\n\t\t\t\t * Some elements needs modifiers to\n\t\t\t\t * style them properly.\n\t\t\t\t */\n\t\t\t\tmodifiers: Set<'h0' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'>;\n\t\t\t};\n\t\t\tcontent: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\tcloser: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t};\n\t\t/**\n\t\t * Here we define the modifiers related to the\n\t\t * kol-alert component properties.\n\t\t */\n\t\tmodifiers: Set<'hasCloser' | 'type-default' | 'type-error' | 'type-info' | 'type-success' | 'type-warning' | 'variant-card' | 'variant-msg'>;\n\t};\n};\n\n/**\n * Define the generator function for the BEM class names.\n */\nconst bem = generateBemClassNames<SCHEMA>();\n\n/**\n * Define a constants object that contains the BEM schema for\n * reuse to generate SCSS files in themes.\n */\nconst BEM: SCHEMA = {\n\t'kol-alert': {\n\t\telements: {\n\t\t\tcloser: { modifiers: null },\n\t\t\theading: { modifiers: new Set(['h0', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6']) },\n\t\t\ticon: { modifiers: null },\n\t\t\tcontent: { modifiers: null },\n\t\t\tcontainer: { modifiers: null },\n\t\t},\n\t\tmodifiers: new Set(['hasCloser', 'type-default', 'type-error', 'type-info', 'type-success', 'type-warning', 'variant-card', 'variant-msg']),\n\t},\n};\n\n/**\n * Define the static BEM class names for the alert component.\n */\nconst BEM_CLASS_ALERT__CLOSER = bem('kol-alert', 'closer') + ' kol-close-button';\nconst BEM_CLASS_ALERT__CONTENT = bem('kol-alert', 'content');\nconst BEM_CLASS_ALERT__ICON = bem('kol-alert', 'icon');\n\nexport { BEM as BEM_ALERT, BEM_CLASS_ALERT__CLOSER, BEM_CLASS_ALERT__CONTENT, BEM_CLASS_ALERT__ICON, bem as genBemAlert };\n"],"names":["generateBemClassNames"],"mappings":";;;;;;;AAgDA,MAAM,GAAG,GAAGA,SAAqB;AAMjC,MAAM,GAAG,GAAW;AACnB,IAAA,WAAW,EAAE;AACZ,QAAA,QAAQ,EAAE;AACT,YAAA,MAAM,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;YAC3B,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,EAAE;AAC3E,YAAA,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AACzB,YAAA,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AAC5B,YAAA,SAAS,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AAC9B,SAAA;QACD,SAAS,EAAE,IAAI,GAAG,CAAC,CAAC,WAAW,EAAE,cAAc,EAAE,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,CAAC,CAAC;AAC3I,KAAA;;AAMI,MAAA,uBAAuB,GAAG,GAAG,CAAC,WAAW,EAAE,QAAQ,CAAC,GAAG;AACvD,MAAA,wBAAwB,GAAG,GAAG,CAAC,WAAW,EAAE,SAAS;AACrD,MAAA,qBAAqB,GAAG,GAAG,CAAC,WAAW,EAAE,MAAM;;;;;;;;"}
1
+ {"version":3,"file":"bem-yGcgGOmY.js","sources":["src/functional-components/Alert/bem.ts"],"sourcesContent":["import { generateBemClassNames } from 'typed-bem';\n\n/**\n * This file defines the BEM schema for the kol-alert component.\n */\n\n/**\n * The schema defines the structure of the BEM class names\n */\ntype SCHEMA = {\n\t'kol-alert': {\n\t\t/**\n\t\t * Here we define the elements we needed\n\t\t * to realize a minimal full featured alert\n\t\t * component (DOM).\n\t\t */\n\t\telements: {\n\t\t\tcontainer: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\ticon: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\theading: {\n\t\t\t\t/**\n\t\t\t\t * Some elements needs modifiers to\n\t\t\t\t * style them properly.\n\t\t\t\t */\n\t\t\t\tmodifiers: Set<'h0' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'>;\n\t\t\t};\n\t\t\tcontent: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\tcloser: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t};\n\t\t/**\n\t\t * Here we define the modifiers related to the\n\t\t * kol-alert component properties.\n\t\t */\n\t\tmodifiers: Set<'hasCloser' | 'type-default' | 'type-error' | 'type-info' | 'type-success' | 'type-warning' | 'variant-card' | 'variant-msg'>;\n\t};\n};\n\n/**\n * Define the generator function for the BEM class names.\n */\nconst bem = generateBemClassNames<SCHEMA>();\n\n/**\n * Define a constants object that contains the BEM schema for\n * reuse to generate SCSS files in themes.\n */\nconst BEM: SCHEMA = {\n\t'kol-alert': {\n\t\telements: {\n\t\t\tcloser: { modifiers: null },\n\t\t\theading: { modifiers: new Set(['h0', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6']) },\n\t\t\ticon: { modifiers: null },\n\t\t\tcontent: { modifiers: null },\n\t\t\tcontainer: { modifiers: null },\n\t\t},\n\t\tmodifiers: new Set(['hasCloser', 'type-default', 'type-error', 'type-info', 'type-success', 'type-warning', 'variant-card', 'variant-msg']),\n\t},\n};\n\n/**\n * Define the static BEM class names for the alert component.\n */\nconst BEM_CLASS_ALERT__CLOSER = bem('kol-alert', 'closer');\nconst BEM_CLASS_ALERT__CONTENT = bem('kol-alert', 'content');\nconst BEM_CLASS_ALERT__ICON = bem('kol-alert', 'icon');\n\nexport { BEM as BEM_ALERT, BEM_CLASS_ALERT__CLOSER, BEM_CLASS_ALERT__CONTENT, BEM_CLASS_ALERT__ICON, bem as genBemAlert };\n"],"names":["generateBemClassNames"],"mappings":";;;;;AAgDA,MAAM,GAAG,GAAGA,CAAqB;AAMjC,MAAM,GAAG,GAAW;AACnB,IAAA,WAAW,EAAE;AACZ,QAAA,QAAQ,EAAE;AACT,YAAA,MAAM,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;YAC3B,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,EAAE;AAC3E,YAAA,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AACzB,YAAA,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AAC5B,YAAA,SAAS,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AAC9B,SAAA;QACD,SAAS,EAAE,IAAI,GAAG,CAAC,CAAC,WAAW,EAAE,cAAc,EAAE,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,CAAC,CAAC;AAC3I,KAAA;;AAMI,MAAA,uBAAuB,GAAG,GAAG,CAAC,WAAW,EAAE,QAAQ;AACnD,MAAA,wBAAwB,GAAG,GAAG,CAAC,WAAW,EAAE,SAAS;AACrD,MAAA,qBAAqB,GAAG,GAAG,CAAC,WAAW,EAAE,MAAM;;;;"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{k as o,V as n,L as i}from"./common-BXXICkFX.js";import{s as e}from"./component-names-B_kYyA8u.js";import{i as s}from"./i18n-B0tfVPMa.js";let t,d=!1;const a=async(a,r,l)=>{var m,v;const u="undefined"!=typeof process&&process.env?"production":void 0;o((null==l?void 0:l.environment)||u||"production"),s(null!==(v=null===(m=null==l?void 0:l.translation)||void 0===m?void 0:m.name)&&void 0!==v?v:"de",null==l?void 0:l.translations),(null==l?void 0:l.transformTagName)&&e(null==l?void 0:l.transformTagName);const c=await n(a,r,l);return d=!0,t=l,i.info("Development mode active - Enhanced debugging features available"),c},l=a,r=()=>d,v=()=>t;export{a as b,v as g,r as i,l as r};
4
+ import{k as o,V as n,L as i}from"./common-B-m-0Sa1.js";import{s as e}from"./component-names-B_kYyA8u.js";import{i as s}from"./i18n-B0tfVPMa.js";let t,d=!1;const a=async(a,r,l)=>{var m,v;const u="undefined"!=typeof process&&process.env?"production":void 0;o((null==l?void 0:l.environment)||u||"production"),s(null!==(v=null===(m=null==l?void 0:l.translation)||void 0===m?void 0:m.name)&&void 0!==v?v:"de",null==l?void 0:l.translations),(null==l?void 0:l.transformTagName)&&e(null==l?void 0:l.transformTagName);const c=await n(a,r,l);return d=!0,t=l,i.info("Development mode active - Enhanced debugging features available"),c},l=a,r=()=>d,v=()=>t;export{a as b,v as g,r as i,l as r};
@@ -1 +1 @@
1
- {"version":3,"file":"bootstrap-bsjlQuLF.js","sources":["src/core/bootstrap.ts"],"sourcesContent":["import type { Generic, LoaderCallback, RegisterOptions } from 'adopted-style-sheets';\nimport { register as coreRegister } from 'adopted-style-sheets';\nimport type { Mode } from '../schema';\nimport { Log, setRuntimeMode } from '../schema';\nimport { setCustomTagNames } from './component-names';\nimport { initializeI18n } from './i18n';\n\ntype KoliBriOptions = RegisterOptions & {\n\t/**\n\t * The environment in which the application is running.\n\t */\n\tenvironment?: Mode;\n\t/**\n\t * This option allows you to transform the component tag names.\n\t */\n\ttransformTagName?: (tagName: string) => string;\n\n\t/**\n\t * When enabled, all input fields will reflect their current value to the host element, making it accessible outside the shadow DOM.\n\t */\n\treflectInputValues?: boolean;\n};\n\nlet initialized = false;\nlet options: KoliBriOptions | undefined;\n\nexport const bootstrap = async (\n\tthemes:\n\t\t| Generic.Theming.RegisterPatch<string, string, string>\n\t\t| Generic.Theming.RegisterPatch<string, string, string>[]\n\t\t| Set<Generic.Theming.RegisterPatch<string, string, string>>,\n\tloaders: LoaderCallback | LoaderCallback[] | Set<LoaderCallback>,\n\tkoliBriOptions?: KoliBriOptions,\n): Promise<void[]> => {\n\tconst nodeEnv = typeof process !== 'undefined' && process.env ? (process.env.NODE_ENV as Mode) : undefined;\n\tsetRuntimeMode(koliBriOptions?.environment || nodeEnv || 'production');\n\n\tinitializeI18n(koliBriOptions?.translation?.name ?? 'de', koliBriOptions?.translations);\n\tif (koliBriOptions?.transformTagName) {\n\t\tsetCustomTagNames(koliBriOptions?.transformTagName);\n\t}\n\tconst coreRegisterReturnValue = await coreRegister(themes, loaders, koliBriOptions);\n\tinitialized = true;\n\toptions = koliBriOptions;\n\n\t// Only log development message when actually in development mode\n\tLog.info('Development mode active - Enhanced debugging features available');\n\n\treturn coreRegisterReturnValue;\n};\n\nexport const register = bootstrap;\nexport const isInitialized = () => initialized;\nexport const getOptions = () => options;\n"],"names":["coreRegister"],"mappings":";;;;;;;AAuBA,IAAI,WAAW,GAAG,KAAK;AACvB,IAAI,OAAmC;AAEhC,MAAM,SAAS,GAAG,OACxB,MAG6D,EAC7D,OAAgE,EAChE,cAA+B,KACX;;IACpB,MAAM,OAAO,GAAG,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,GAAG,GAAI,YAA6B,GAAG,SAAS;IAC1G,cAAc,CAAC,CAAA,cAAc,KAAA,IAAA,IAAd,cAAc,KAAd,MAAA,GAAA,MAAA,GAAA,cAAc,CAAE,WAAW,KAAI,OAAO,IAAI,YAAY,CAAC;AAEtE,IAAA,cAAc,CAAC,MAAA,CAAA,EAAA,GAAA,cAAc,aAAd,cAAc,KAAA,MAAA,GAAA,MAAA,GAAd,cAAc,CAAE,WAAW,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,IAAI,MAAI,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,EAAA,GAAA,IAAI,EAAE,cAAc,KAAd,IAAA,IAAA,cAAc,uBAAd,cAAc,CAAE,YAAY,CAAC;IACvF,IAAI,cAAc,aAAd,cAAc,KAAA,MAAA,GAAA,MAAA,GAAd,cAAc,CAAE,gBAAgB,EAAE;QACrC,iBAAiB,CAAC,cAAc,KAAd,IAAA,IAAA,cAAc,uBAAd,cAAc,CAAE,gBAAgB,CAAC;;IAEpD,MAAM,uBAAuB,GAAG,MAAMA,CAAY,CAAC,MAAM,EAAE,OAAO,EAAE,cAAc,CAAC;IACnF,WAAW,GAAG,IAAI;IAClB,OAAO,GAAG,cAAc;AAGxB,IAAA,GAAG,CAAC,IAAI,CAAC,iEAAiE,CAAC;AAE3E,IAAA,OAAO,uBAAuB;AAC/B;AAEO,MAAM,QAAQ,GAAG;MACX,aAAa,GAAG,MAAM;MACtB,UAAU,GAAG,MAAM;;;;"}
1
+ {"version":3,"file":"bootstrap-BhCzUA0r.js","sources":["src/core/bootstrap.ts"],"sourcesContent":["import type { Generic, LoaderCallback, RegisterOptions } from 'adopted-style-sheets';\nimport { register as coreRegister } from 'adopted-style-sheets';\nimport type { Mode } from '../schema';\nimport { Log, setRuntimeMode } from '../schema';\nimport { setCustomTagNames } from './component-names';\nimport { initializeI18n } from './i18n';\n\ntype KoliBriOptions = RegisterOptions & {\n\t/**\n\t * The environment in which the application is running.\n\t */\n\tenvironment?: Mode;\n\t/**\n\t * This option allows you to transform the component tag names.\n\t */\n\ttransformTagName?: (tagName: string) => string;\n\n\t/**\n\t * When enabled, all input fields will reflect their current value to the host element, making it accessible outside the shadow DOM.\n\t */\n\treflectInputValues?: boolean;\n};\n\nlet initialized = false;\nlet options: KoliBriOptions | undefined;\n\nexport const bootstrap = async (\n\tthemes:\n\t\t| Generic.Theming.RegisterPatch<string, string, string>\n\t\t| Generic.Theming.RegisterPatch<string, string, string>[]\n\t\t| Set<Generic.Theming.RegisterPatch<string, string, string>>,\n\tloaders: LoaderCallback | LoaderCallback[] | Set<LoaderCallback>,\n\tkoliBriOptions?: KoliBriOptions,\n): Promise<void[]> => {\n\tconst nodeEnv = typeof process !== 'undefined' && process.env ? (process.env.NODE_ENV as Mode) : undefined;\n\tsetRuntimeMode(koliBriOptions?.environment || nodeEnv || 'production');\n\n\tinitializeI18n(koliBriOptions?.translation?.name ?? 'de', koliBriOptions?.translations);\n\tif (koliBriOptions?.transformTagName) {\n\t\tsetCustomTagNames(koliBriOptions?.transformTagName);\n\t}\n\tconst coreRegisterReturnValue = await coreRegister(themes, loaders, koliBriOptions);\n\tinitialized = true;\n\toptions = koliBriOptions;\n\n\t// Only log development message when actually in development mode\n\tLog.info('Development mode active - Enhanced debugging features available');\n\n\treturn coreRegisterReturnValue;\n};\n\nexport const register = bootstrap;\nexport const isInitialized = () => initialized;\nexport const getOptions = () => options;\n"],"names":["coreRegister"],"mappings":";;;;;;;AAuBA,IAAI,WAAW,GAAG,KAAK;AACvB,IAAI,OAAmC;AAEhC,MAAM,SAAS,GAAG,OACxB,MAG6D,EAC7D,OAAgE,EAChE,cAA+B,KACX;;IACpB,MAAM,OAAO,GAAG,OAAO,OAAO,KAAK,WAAW,IAAI,OAAO,CAAC,GAAG,GAAI,YAA6B,GAAG,SAAS;IAC1G,cAAc,CAAC,CAAA,cAAc,KAAA,IAAA,IAAd,cAAc,KAAd,MAAA,GAAA,MAAA,GAAA,cAAc,CAAE,WAAW,KAAI,OAAO,IAAI,YAAY,CAAC;AAEtE,IAAA,cAAc,CAAC,MAAA,CAAA,EAAA,GAAA,cAAc,aAAd,cAAc,KAAA,MAAA,GAAA,MAAA,GAAd,cAAc,CAAE,WAAW,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,IAAI,MAAI,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,EAAA,GAAA,IAAI,EAAE,cAAc,KAAd,IAAA,IAAA,cAAc,uBAAd,cAAc,CAAE,YAAY,CAAC;IACvF,IAAI,cAAc,aAAd,cAAc,KAAA,MAAA,GAAA,MAAA,GAAd,cAAc,CAAE,gBAAgB,EAAE;QACrC,iBAAiB,CAAC,cAAc,KAAd,IAAA,IAAA,cAAc,uBAAd,cAAc,CAAE,gBAAgB,CAAC;;IAEpD,MAAM,uBAAuB,GAAG,MAAMA,CAAY,CAAC,MAAM,EAAE,OAAO,EAAE,cAAc,CAAC;IACnF,WAAW,GAAG,IAAI;IAClB,OAAO,GAAG,cAAc;AAGxB,IAAA,GAAG,CAAC,IAAI,CAAC,iEAAiE,CAAC;AAE3E,IAAA,OAAO,uBAAuB;AAC/B;AAEO,MAAM,QAAQ,GAAG;MACX,aAAa,GAAG,MAAM;MACtB,UAAU,GAAG,MAAM;;;;"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{l as r}from"./common-BXXICkFX.js";var n,t;function e(){return t||(t=1,n=function(r){return function(t,n){if(!t)return r;var e;"string"==typeof t?e=t:n=t;var o=r;return e&&(o+="__"+e),o+(n?Object.keys(n).reduce(function(r,t){var e=n[t];return e&&(r+=" "+("boolean"==typeof e?o+"--"+t:o+"--"+t+"_"+e)),r},""):"")}}),n}var o=e(),u=r(o);function f(){const r=new Map,t=(t,n,e)=>{try{return r.get(t)(n,e)}catch{return r.set(t,u(t)).get(t)(n,e)}};return t.forBlock=r=>{const n=(n,e)=>t(r,n,e);return n.forElement=n=>e=>t(r,n,e),n},t}export{f as c};
4
+ import{l as r}from"./common-B-m-0Sa1.js";var n,t;function e(){return t||(t=1,n=function(r){return function(t,n){if(!t)return r;var e;"string"==typeof t?e=t:n=t;var o=r;return e&&(o+="__"+e),o+(n?Object.keys(n).reduce(function(r,t){var e=n[t];return e&&(r+=" "+("boolean"==typeof e?o+"--"+t:o+"--"+t+"_"+e)),r},""):"")}}),n}var o=e(),u=r(o);function f(){const r=new Map,t=(t,n,e)=>{try{return r.get(t)(n,e)}catch{return r.set(t,u(t)).get(t)(n,e)}};return t.forBlock=r=>{const n=(n,e)=>t(r,n,e);return n.forElement=n=>e=>t(r,n,e),n},t}export{f as c};
@@ -1 +1 @@
1
- {"version":3,"file":"browser-DaourpHc.js","sources":["../../node_modules/.pnpm/easy-bem@1.1.1/node_modules/easy-bem/index.js","../../node_modules/.pnpm/typed-bem@1.0.2/node_modules/typed-bem/dist/browser.mjs"],"sourcesContent":["'use strict';\r\n\r\n/**\r\n * BEM class name factory.\r\n *\r\n * @typedef {Function} Bem\r\n * @param {String|Object} [elementOrMods] Element name or hash object with mods\r\n * @param {Object} [mods] Hash object with mods\r\n * @returns {String}\r\n */\r\n\r\n/**\r\n * Returns BEM class name factory.\r\n *\r\n * @param {String} componentName Block name\r\n * @returns {Bem}\r\n */\r\nmodule.exports = function bem(componentName) {\r\n return function (elementOrMods, mods) {\r\n if (!elementOrMods) {\r\n return componentName;\r\n }\r\n\r\n var element;\r\n\r\n if (typeof elementOrMods === 'string') {\r\n element = elementOrMods;\r\n } else {\r\n mods = elementOrMods;\r\n }\r\n\r\n var base = componentName;\r\n if (element) {\r\n base += '__' + element;\r\n }\r\n\r\n return base + (\r\n mods\r\n ? Object.keys(mods).reduce(function (result, name) {\r\n var value = mods[name];\r\n\r\n if (value) {\r\n result += ' ' + (\r\n typeof value === 'boolean'\r\n ? (base + '--' + name)\r\n : (base + '--' + name + '_' + value)\r\n );\r\n }\r\n\r\n return result;\r\n }, '')\r\n : ''\r\n );\r\n };\r\n}\r\n","import a from\"easy-bem\";function c(){const e=new Map,n=(t,o,r)=>{try{return e.get(t)(o,r)}catch{return e.set(t,a(t)).get(t)(o,r)}};return n.forBlock=t=>{const o=(r,s)=>n(t,r,s);return o.forElement=r=>s=>n(t,r,s),o},n}function f(...e){const n=new Set;for(const t of e)if(t)for(const o of t.split(/\\s+/))n.add(o);return[...n].join(\" \")}export{c as generateBemClassNames,f as uniqueClassNames};\n//# sourceMappingURL=browser.mjs.map\n"],"names":[],"mappings":";;;;;;;;;;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAA,OAAc,GAAG,SAAS,GAAG,CAAC,aAAa,EAAE;AAC7C,KAAI,OAAO,UAAU,aAAa,EAAE,IAAI,EAAE;SAClC,IAAI,CAAC,aAAa,EAAE;aAChB,OAAO,aAAa,C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AAC,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;;;","x_google_ignoreList":[0,1]}
1
+ {"version":3,"file":"browser-CU41g6rf.js","sources":["../../node_modules/.pnpm/easy-bem@1.1.1/node_modules/easy-bem/index.js","../../node_modules/.pnpm/typed-bem@1.0.2/node_modules/typed-bem/dist/browser.mjs"],"sourcesContent":["'use strict';\r\n\r\n/**\r\n * BEM class name factory.\r\n *\r\n * @typedef {Function} Bem\r\n * @param {String|Object} [elementOrMods] Element name or hash object with mods\r\n * @param {Object} [mods] Hash object with mods\r\n * @returns {String}\r\n */\r\n\r\n/**\r\n * Returns BEM class name factory.\r\n *\r\n * @param {String} componentName Block name\r\n * @returns {Bem}\r\n */\r\nmodule.exports = function bem(componentName) {\r\n return function (elementOrMods, mods) {\r\n if (!elementOrMods) {\r\n return componentName;\r\n }\r\n\r\n var element;\r\n\r\n if (typeof elementOrMods === 'string') {\r\n element = elementOrMods;\r\n } else {\r\n mods = elementOrMods;\r\n }\r\n\r\n var base = componentName;\r\n if (element) {\r\n base += '__' + element;\r\n }\r\n\r\n return base + (\r\n mods\r\n ? Object.keys(mods).reduce(function (result, name) {\r\n var value = mods[name];\r\n\r\n if (value) {\r\n result += ' ' + (\r\n typeof value === 'boolean'\r\n ? (base + '--' + name)\r\n : (base + '--' + name + '_' + value)\r\n );\r\n }\r\n\r\n return result;\r\n }, '')\r\n : ''\r\n );\r\n };\r\n}\r\n","import a from\"easy-bem\";function c(){const e=new Map,n=(t,o,r)=>{try{return e.get(t)(o,r)}catch{return e.set(t,a(t)).get(t)(o,r)}};return n.forBlock=t=>{const o=(r,s)=>n(t,r,s);return o.forElement=r=>s=>n(t,r,s),o},n}function f(...e){const n=new Set;for(const t of e)if(t)for(const o of t.split(/\\s+/))n.add(o);return[...n].join(\" \")}export{c as generateBemClassNames,f as uniqueClassNames};\n//# sourceMappingURL=browser.mjs.map\n"],"names":[],"mappings":";;;;;;;;;;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAA,OAAc,GAAG,SAAS,GAAG,CAAC,aAAa,EAAE;AAC7C,KAAI,OAAO,UAAU,aAAa,EAAE,IAAI,EAAE;SAClC,IAAI,CAAC,aAAa,EAAE;aAChB,OAAO,aAAa,CAAC;UACxB;AACT;SACQ,IAAI,OAAO,CAAC;AACpB;AACA,SAAQ,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE;aACnC,OAAO,GAAG,aAAa,CAAC;AACpC,UAAS,MAAM;aACH,IAAI,GAAG,aAAa,CAAC;UACxB;AACT;AACA,SAAQ,IAAI,IAAI,GAAG,aAAa,CAAC;SACzB,IAAI,OAAO,EAAE;AACrB,aAAY,IAAI,IAAI,IAAI,GAAG,OAAO,CAAC;UAC1B;AACT;AACA,SAAQ,OAAO,IAAI;AACnB,aAAY,IAAI;AAChB,mBAAkB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,UAAU,MAAM,EAAE,IAAI,EAAE;AACnE,qBAAoB,IAAI,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC;AAC3C;qBACoB,IAAI,KAAK,EAAE;yBACP,MAAM,IAAI,GAAG;6BACT,OAAO,KAAK,KAAK,SAAS;AACtD,oCAAmC,IAAI,GAAG,IAAI,GAAG,IAAI;oCAClB,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,GAAG,GAAG,KAAK,CAAC;AACpE,0BAAyB,CAAC;sBACL;AACrB;qBACoB,OAAO,MAAM,CAAC;kBACjB,EAAE,EAAE,CAAC;AACtB,mBAAkB,EAAE;AACpB,UAAS,CAAC;AACV,MAAK,CAAC;AACN;;;;;;;ACtDwB,SAAS,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;;;;","x_google_ignoreList":[0,1]}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{w as t,e as a,d as o}from"./common-BXXICkFX.js";const n=["tab","treeitem"],r=(a,o)=>{t(a,"_role",a=>"string"==typeof a&&n.includes(a),new Set([`KoliBriAlternativeButtonLinkRole {${n.join(", ")}`]),o)},s=(t,n)=>{a(t,"_ariaControls",n)},e=(t,n)=>{a(t,"_ariaDescription",n)},i=(a,t)=>{o(a,"_ariaExpanded",t)},c=["primary","secondary","normal","tertiary","danger","ghost","custom"],l=(a,n)=>{t(a,"_buttonVariant",a=>"string"==typeof a&&c.includes(a),new Set([`KoliBriButtonVariant {${c.join(", ")}`]),n,{defaultValue:"normal"})};export{e as a,i as b,r as c,l as d,s as v};
4
+ import{w as t,e as a,d as o}from"./common-B-m-0Sa1.js";const n=["tab","treeitem"],r=(a,o)=>{t(a,"_role",a=>"string"==typeof a&&n.includes(a),new Set([`KoliBriAlternativeButtonLinkRole {${n.join(", ")}`]),o)},s=(t,n)=>{a(t,"_ariaControls",n)},e=(t,n)=>{a(t,"_ariaDescription",n)},i=(a,t)=>{o(a,"_ariaExpanded",t)},c=["primary","secondary","normal","tertiary","danger","ghost","custom"],l=(a,n)=>{t(a,"_buttonVariant",a=>"string"==typeof a&&c.includes(a),new Set([`KoliBriButtonVariant {${c.join(", ")}`]),n,{defaultValue:"normal"})};export{e as a,i as b,r as c,l as d,s as v};
@@ -1 +1 @@
1
- {"version":3,"file":"button-variant-BKr6oMet.js","sources":["src/schema/props/alternative-button-link-role.ts","src/schema/props/aria-controls.ts","src/schema/props/aria-description.ts","src/schema/props/aria-expanded.ts","src/schema/props/button-variant.ts"],"sourcesContent":["/* types */\nimport type { Generic } from 'adopted-style-sheets';\nimport { watchValidator } from '../utils';\n\nconst alternativeButtonLinkRolePropTypeOptions = ['tab', 'treeitem'] as const;\nexport type AlternativeButtonLinkRolePropType = (typeof alternativeButtonLinkRolePropTypeOptions)[number];\n\n/**\n * Defines the role of the components primary element.\n */\nexport type PropAlternativeButtonLinkRole = {\n\trole: AlternativeButtonLinkRolePropType;\n};\n\n/* validator */\nexport const validateAlternativeButtonLinkRole = (component: Generic.Element.Component, value?: AlternativeButtonLinkRolePropType) => {\n\twatchValidator(\n\t\tcomponent,\n\t\t`_role`,\n\t\t(value) => typeof value === 'string' && alternativeButtonLinkRolePropTypeOptions.includes(value),\n\t\tnew Set([`KoliBriAlternativeButtonLinkRole {${alternativeButtonLinkRolePropTypeOptions.join(', ')}`]),\n\t\tvalue,\n\t);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { watchString } from '../utils';\n\n/* types */\n/**\n * Defines which elements are being controlled. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls)\n */\ntype AriaControlsPropType = string;\n\nexport type PropAriaControls = {\n\tariaControls: AriaControlsPropType;\n};\n\n/* validator */\nexport const validateAriaControls = (component: Generic.Element.Component, value?: AriaControlsPropType): void => {\n\twatchString(component, '_ariaControls', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\nimport { watchString } from '../utils';\n\n/* types */\nexport type AriaDescriptionPropType = string;\n\n/**\n * Defines the value for the aria-description attribute.\n */\nexport type PropAriaDescription = {\n\tariaDescription: AriaDescriptionPropType;\n};\n\n/* validator */\nexport const validateAriaDescription = (component: Generic.Element.Component, value?: AriaDescriptionPropType): void => {\n\twatchString(component, '_ariaDescription', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { watchBoolean } from '../utils';\n\n/* types */\nexport type AriaExpandedPropType = boolean;\n\n/**\n * Marks this element as open/expanded, or that the connected element (aria-controls/aria-owns) is open/expanded.\n * (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded)\n */\nexport type PropAriaExpanded = {\n\tariaExpanded: AriaExpandedPropType;\n};\n\n/* validator */\nexport const validateAriaExpanded = (component: Generic.Element.Component, value?: AriaExpandedPropType): void => {\n\twatchBoolean(component, '_ariaExpanded', value);\n};\n","/* types */\nimport type { Generic } from 'adopted-style-sheets';\nimport { watchValidator } from '../utils';\n\nconst buttonVariantPropTypeOptions = ['primary', 'secondary', 'normal', 'tertiary', 'danger', 'ghost', 'custom'] as const;\nexport type ButtonVariantPropType = (typeof buttonVariantPropTypeOptions)[number];\n\n/**\n * Defines which variant should be used for presentation.\n */\nexport type PropButtonVariant = {\n\tvariant: ButtonVariantPropType;\n};\n\n/* validator */\nexport const validateButtonVariant = (component: Generic.Element.Component, value?: ButtonVariantPropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t`_buttonVariant`,\n\t\t(value) => typeof value === 'string' && buttonVariantPropTypeOptions.includes(value),\n\t\tnew Set([`KoliBriButtonVariant {${buttonVariantPropTypeOptions.join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,CAAC,IAAI,CAAC,CAAA,CAAE,CAAC,CAAC,EAC7E,KAAK,EACL;AACC,QAAA,YAAY,EAAE,QAAQ;AACtB,KAAA,CACD;AACF;;;;"}
1
+ {"version":3,"file":"button-variant-BwJjQkng.js","sources":["src/schema/props/alternative-button-link-role.ts","src/schema/props/aria-controls.ts","src/schema/props/aria-description.ts","src/schema/props/aria-expanded.ts","src/schema/props/button-variant.ts"],"sourcesContent":["/* types */\nimport type { Generic } from 'adopted-style-sheets';\nimport { watchValidator } from '../utils';\n\nconst alternativeButtonLinkRolePropTypeOptions = ['tab', 'treeitem'] as const;\nexport type AlternativeButtonLinkRolePropType = (typeof alternativeButtonLinkRolePropTypeOptions)[number];\n\n/**\n * Defines the role of the components primary element.\n */\nexport type PropAlternativeButtonLinkRole = {\n\trole: AlternativeButtonLinkRolePropType;\n};\n\n/* validator */\nexport const validateAlternativeButtonLinkRole = (component: Generic.Element.Component, value?: AlternativeButtonLinkRolePropType) => {\n\twatchValidator(\n\t\tcomponent,\n\t\t`_role`,\n\t\t(value) => typeof value === 'string' && alternativeButtonLinkRolePropTypeOptions.includes(value),\n\t\tnew Set([`KoliBriAlternativeButtonLinkRole {${alternativeButtonLinkRolePropTypeOptions.join(', ')}`]),\n\t\tvalue,\n\t);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { watchString } from '../utils';\n\n/* types */\n/**\n * Defines which elements are being controlled. (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-controls)\n */\ntype AriaControlsPropType = string;\n\nexport type PropAriaControls = {\n\tariaControls: AriaControlsPropType;\n};\n\n/* validator */\nexport const validateAriaControls = (component: Generic.Element.Component, value?: AriaControlsPropType): void => {\n\twatchString(component, '_ariaControls', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\nimport { watchString } from '../utils';\n\n/* types */\nexport type AriaDescriptionPropType = string;\n\n/**\n * Defines the value for the aria-description attribute.\n */\nexport type PropAriaDescription = {\n\tariaDescription: AriaDescriptionPropType;\n};\n\n/* validator */\nexport const validateAriaDescription = (component: Generic.Element.Component, value?: AriaDescriptionPropType): void => {\n\twatchString(component, '_ariaDescription', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport { watchBoolean } from '../utils';\n\n/* types */\nexport type AriaExpandedPropType = boolean;\n\n/**\n * Marks this element as open/expanded, or that the connected element (aria-controls/aria-owns) is open/expanded.\n * (https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded)\n */\nexport type PropAriaExpanded = {\n\tariaExpanded: AriaExpandedPropType;\n};\n\n/* validator */\nexport const validateAriaExpanded = (component: Generic.Element.Component, value?: AriaExpandedPropType): void => {\n\twatchBoolean(component, '_ariaExpanded', value);\n};\n","/* types */\nimport type { Generic } from 'adopted-style-sheets';\nimport { watchValidator } from '../utils';\n\nconst buttonVariantPropTypeOptions = ['primary', 'secondary', 'normal', 'tertiary', 'danger', 'ghost', 'custom'] as const;\nexport type ButtonVariantPropType = (typeof buttonVariantPropTypeOptions)[number];\n\n/**\n * Defines which variant should be used for presentation.\n */\nexport type PropButtonVariant = {\n\tvariant: ButtonVariantPropType;\n};\n\n/* validator */\nexport const validateButtonVariant = (component: Generic.Element.Component, value?: ButtonVariantPropType): void => {\n\twatchValidator(\n\t\tcomponent,\n\t\t`_buttonVariant`,\n\t\t(value) => typeof value === 'string' && buttonVariantPropTypeOptions.includes(value),\n\t\tnew Set([`KoliBriButtonVariant {${buttonVariantPropTypeOptions.join(', ')}`]),\n\t\tvalue,\n\t\t{\n\t\t\tdefaultValue: 'normal',\n\t\t},\n\t);\n};\n"],"names":[],"mappings":";;;;;AAIA,MAAM,wCAAwC,GAAG,CAAC,KAAK,EAAE,UAAU,CAAU;MAWhE,iCAAiC,GAAG,CAAC,SAAoC,EAAE,KAAyC,KAAI;AACpI,IAAA,cAAc,CACb,SAAS,EACT,CAAO,KAAA,CAAA,EACP,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,wCAAwC,CAAC,QAAQ,CAAC,KAAK,CAAC,EAChG,IAAI,GAAG,CAAC,CAAC,CAAA,kCAAA,EAAqC,wCAAwC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAE,CAAA,CAAC,CAAC,EACrG,KAAK,CACL;AACF;;MCRa,oBAAoB,GAAG,CAAC,SAAoC,EAAE,KAA4B,KAAU;AAChH,IAAA,WAAW,CAAC,SAAS,EAAE,eAAe,EAAE,KAAK,CAAC;AAC/C;;MCHa,uBAAuB,GAAG,CAAC,SAAoC,EAAE,KAA+B,KAAU;AACtH,IAAA,WAAW,CAAC,SAAS,EAAE,kBAAkB,EAAE,KAAK,CAAC;AAClD;;MCAa,oBAAoB,GAAG,CAAC,SAAoC,EAAE,KAA4B,KAAU;AAChH,IAAA,YAAY,CAAC,SAAS,EAAE,eAAe,EAAE,KAAK,CAAC;AAChD;;ACdA,MAAM,4BAA4B,GAAG,CAAC,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAU;MAW5G,qBAAqB,GAAG,CAAC,SAAoC,EAAE,KAA6B,KAAU;AAClH,IAAA,cAAc,CACb,SAAS,EACT,CAAgB,cAAA,CAAA,EAChB,CAAC,KAAK,KAAK,OAAO,KAAK,KAAK,QAAQ,IAAI,4BAA4B,CAAC,QAAQ,CAAC,KAAK,CAAC,EACpF,IAAI,GAAG,CAAC,CAAC,yBAAyB,4BAA4B,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA,CAAE,CAAC,CAAC,EAC7E,KAAK,EACL;AACC,QAAA,YAAY,EAAE,QAAQ;AACtB,KAAA,CACD;AACF;;;;"}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ const o=t=>{let e="";if("string"==typeof t||"number"==typeof t)e+=t;else if("object"==typeof t&&null!==t)if(Array.isArray(t)){for(const r of t)if(r){const t=o(r);t&&(e&&(e+=" "),e+=t)}}else for(const o in t)t[o]&&(e&&(e+=" "),e+=o);return e},t=(...t)=>{let e="";for(const r of t)if(r){const t=o(r);t&&(e&&(e+=" "),e+=t)}return e};export{t as c};
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clsx-D6cJXTZC.js","sources":["src/utils/clsx.ts"],"sourcesContent":["/*\n * Adapted from clsx (MIT License).\n * Source: https://github.com/lukeed/clsx/blob/master/src/index.js\n *\n * MIT License\n *\n * Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com)\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\ntype ClassValue = string | number | boolean | null | undefined | ClassArray | ClassDictionary;\ntype ClassArray = ClassValue[];\ntype ClassDictionary = Record<string, boolean | null | undefined>;\n\nconst toVal = (mix: ClassValue): string => {\n\tlet str = '';\n\n\tif (typeof mix === 'string' || typeof mix === 'number') {\n\t\tstr += mix;\n\t} else if (typeof mix === 'object' && mix !== null) {\n\t\tif (Array.isArray(mix)) {\n\t\t\tfor (const item of mix) {\n\t\t\t\tif (item) {\n\t\t\t\t\tconst y = toVal(item);\n\t\t\t\t\tif (y) {\n\t\t\t\t\t\tstr && (str += ' ');\n\t\t\t\t\t\tstr += y;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tfor (const key in mix) {\n\t\t\t\tif (mix[key]) {\n\t\t\t\t\tstr && (str += ' ');\n\t\t\t\t\tstr += key;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn str;\n};\n\nconst clsx = (...args: ClassValue[]): string => {\n\tlet str = '';\n\tfor (const arg of args) {\n\t\tif (arg) {\n\t\t\tconst x = toVal(arg);\n\t\t\tif (x) {\n\t\t\t\tstr && (str += ' ');\n\t\t\t\tstr += x;\n\t\t\t}\n\t\t}\n\t}\n\treturn str;\n};\n\nexport default clsx;\n"],"names":[],"mappings":";;;AA8BA,MAAM,KAAK,GAAG,CAAC,GAAe,KAAY;IACzC,IAAI,GAAG,GAAG,EAAE;IAEZ,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QACvD,GAAG,IAAI,GAAG;;SACJ,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,IAAI,EAAE;AACnD,QAAA,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;AACvB,YAAA,KAAK,MAAM,IAAI,IAAI,GAAG,EAAE;gBACvB,IAAI,IAAI,EAAE;AACT,oBAAA,MAAM,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC;oBACrB,IAAI,CAAC,EAAE;AACN,wBAAA,GAAG,KAAK,GAAG,IAAI,GAAG,CAAC;wBACnB,GAAG,IAAI,CAAC;;;;;aAIL;AACN,YAAA,KAAK,MAAM,GAAG,IAAI,GAAG,EAAE;AACtB,gBAAA,IAAI,GAAG,CAAC,GAAG,CAAC,EAAE;AACb,oBAAA,GAAG,KAAK,GAAG,IAAI,GAAG,CAAC;oBACnB,GAAG,IAAI,GAAG;;;;;AAMd,IAAA,OAAO,GAAG;AACX,CAAC;AAED,MAAM,IAAI,GAAG,CAAC,GAAG,IAAkB,KAAY;IAC9C,IAAI,GAAG,GAAG,EAAE;AACZ,IAAA,KAAK,MAAM,GAAG,IAAI,IAAI,EAAE;QACvB,IAAI,GAAG,EAAE;AACR,YAAA,MAAM,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC;YACpB,IAAI,CAAC,EAAE;AACN,gBAAA,GAAG,KAAK,GAAG,IAAI,GAAG,CAAC;gBACnB,GAAG,IAAI,CAAC;;;;AAIX,IAAA,OAAO,GAAG;AACX;;;;"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{z as t,A as r,B as n,C as e,D as o,L as a,m as s,w as i}from"./common-BXXICkFX.js";function u(o){var a;Array.isArray(o)&&o.raw&&(o=String.raw(...arguments));var e=t(o);if(!e.space)return[];const u="h"===e.space[0]?r.min:n.min,s="h"===e.space[0]?r.max:n.max;return(a=Array(3))[0]=Math.min(Math.max(e.values[0],u[0]),s[0]),a[1]=Math.min(Math.max(e.values[1],u[1]),s[1]),a[2]=Math.min(Math.max(e.values[2],u[2]),s[2]),"h"===e.space[0]&&(a=r.rgb(a)),a.push(Math.min(Math.max(e.alpha,0),1)),a}const f=(r,o,t)=>(299*r+587*o+114*t)/1e3>=128?-1:1,l=(r,t,n,a=1)=>{const u=[Math.max(Math.min(Math.round(t[0]+a*Math.max(1,t[0]/100)),255),0),Math.max(Math.min(Math.round(t[1]+a*Math.max(1,t[1]/100)),255),0),Math.max(Math.min(Math.round(t[2]+a*Math.max(1,t[2]/100)),255),0)],s=o(e.hex(`rgba(${r.join(",")},1)`),e.hex(`rgba(${u.join(",")},1)`)),i=u[0]+u[1]+u[2];return 0===i||765===i||s>n?{background:r,foreground:u,contrast:s}:l(r,u,n,a)},c=new Map,g=(r,o,t,n=1)=>{if(c.has(r))return c.get(r);const a=l(r,o,t,n);return c.set(r,a),a},h=(r,o=7)=>{let t=[0,0,0,1],n=[255,255,255,1];"string"==typeof r?(t=u(r),n=t):"object"==typeof r&&null!==r&&"string"==typeof r.background&&"string"==typeof r.foreground&&(t=u(r.background),n="string"==typeof r.foreground?u(r.foreground):t);const a=f(t[0],t[1],t[2]),s=g([t[0],t[1],t[2]],[n[0],n[1],n[2]],o,a);return n=[...s.foreground,1],{background:e.hex(`rgba(${t.join(",")})`),foreground:e.hex(`rgba(${n.join(",")})`),contrast:s.contrast}},p=/^#((\d|[a-f]){8}|(\d|[a-f]){6}|(\d|[a-f]){3,4})$/i;function y(r){return p.test(r)}function d(r){if(r.startsWith("{"))try{const o=JSON.parse(r);if(v(o))return{type:"ColorPair",value:o}}catch(r){return{type:null,value:null}}return{type:null,value:null}}function M(r){if(r)if("string"==typeof r){if(y(r))return{type:"string",valid:!0,value:r};{const o=d(r);if(o.value)return{type:o.type,valid:!0,value:o.value}}}else{const o=r;if(v(o))return{type:"ColorPair",valid:!0,value:o}}return{type:null,valid:!1,value:""}}function v(r){return!("object"!=typeof r||!r||"string"!=typeof r.backgroundColor||!("string"==typeof r.foregroundColor||r.foregroundColor&&"string"==typeof r.foregroundColor.primary&&"string"==typeof r.foregroundColor.secondary&&"string"==typeof r.foregroundColor.neutral))}function b(r){const o=M(r);switch(o.type){case null:return!1;case"string":case"ColorPair":return o.valid}}const C=(r,o,t)=>{i(r,"_color",b,new Set(["rgb in hex","ColorPair"]),o,t)},$=r=>{var o;let t;const n=M(r);switch(n.type){case"string":t=h(n.value);break;case"ColorPair":{const r=n.value;let a="";"string"==typeof r.foregroundColor?a=r.foregroundColor:(null===(o=r.foregroundColor)||void 0===o?void 0:o.primary)&&(a=r.foregroundColor.primary),a&&"string"==typeof a||(a="#fff"),t=h({background:r.backgroundColor,foreground:a});break}case null:a.warn(`_color was empty or invalid (${JSON.stringify(r)})`),t=h({background:"#000",foreground:"#000"})}return t.contrast<7&&s(`[KolBadge] The contrast of ${t.contrast} (≥7, AAA) is to low, between the color pair ${t.background} and ${t.foreground}.`),{backgroundColor:t.background,foregroundColor:t.foreground}};export{$ as h,u as r,C as v};
4
+ import{z as t,A as r,B as n,C as e,D as o,L as a,m as s,w as i}from"./common-B-m-0Sa1.js";function u(o){var a;Array.isArray(o)&&o.raw&&(o=String.raw(...arguments));var e=t(o);if(!e.space)return[];const u="h"===e.space[0]?r.min:n.min,s="h"===e.space[0]?r.max:n.max;return(a=Array(3))[0]=Math.min(Math.max(e.values[0],u[0]),s[0]),a[1]=Math.min(Math.max(e.values[1],u[1]),s[1]),a[2]=Math.min(Math.max(e.values[2],u[2]),s[2]),"h"===e.space[0]&&(a=r.rgb(a)),a.push(Math.min(Math.max(e.alpha,0),1)),a}const f=(r,o,t)=>(299*r+587*o+114*t)/1e3>=128?-1:1,l=(r,t,n,a=1)=>{const u=[Math.max(Math.min(Math.round(t[0]+a*Math.max(1,t[0]/100)),255),0),Math.max(Math.min(Math.round(t[1]+a*Math.max(1,t[1]/100)),255),0),Math.max(Math.min(Math.round(t[2]+a*Math.max(1,t[2]/100)),255),0)],s=o(e.hex(`rgba(${r.join(",")},1)`),e.hex(`rgba(${u.join(",")},1)`)),i=u[0]+u[1]+u[2];return 0===i||765===i||s>n?{background:r,foreground:u,contrast:s}:l(r,u,n,a)},c=new Map,g=(r,o,t,n=1)=>{if(c.has(r))return c.get(r);const a=l(r,o,t,n);return c.set(r,a),a},h=(r,o=7)=>{let t=[0,0,0,1],n=[255,255,255,1];"string"==typeof r?(t=u(r),n=t):"object"==typeof r&&null!==r&&"string"==typeof r.background&&"string"==typeof r.foreground&&(t=u(r.background),n="string"==typeof r.foreground?u(r.foreground):t);const a=f(t[0],t[1],t[2]),s=g([t[0],t[1],t[2]],[n[0],n[1],n[2]],o,a);return n=[...s.foreground,1],{background:e.hex(`rgba(${t.join(",")})`),foreground:e.hex(`rgba(${n.join(",")})`),contrast:s.contrast}},p=/^#((\d|[a-f]){8}|(\d|[a-f]){6}|(\d|[a-f]){3,4})$/i;function y(r){return p.test(r)}function d(r){if(r.startsWith("{"))try{const o=JSON.parse(r);if(v(o))return{type:"ColorPair",value:o}}catch(r){return{type:null,value:null}}return{type:null,value:null}}function M(r){if(r)if("string"==typeof r){if(y(r))return{type:"string",valid:!0,value:r};{const o=d(r);if(o.value)return{type:o.type,valid:!0,value:o.value}}}else{const o=r;if(v(o))return{type:"ColorPair",valid:!0,value:o}}return{type:null,valid:!1,value:""}}function v(r){return!("object"!=typeof r||!r||"string"!=typeof r.backgroundColor||!("string"==typeof r.foregroundColor||r.foregroundColor&&"string"==typeof r.foregroundColor.primary&&"string"==typeof r.foregroundColor.secondary&&"string"==typeof r.foregroundColor.neutral))}function b(r){const o=M(r);switch(o.type){case null:return!1;case"string":case"ColorPair":return o.valid}}const $=(r,o,t)=>{i(r,"_color",b,new Set(["rgb in hex","ColorPair"]),o,t)},w=r=>{var o;let t;const n=M(r);switch(n.type){case"string":t=h(n.value);break;case"ColorPair":{const r=n.value;let a="";"string"==typeof r.foregroundColor?a=r.foregroundColor:(null===(o=r.foregroundColor)||void 0===o?void 0:o.primary)&&(a=r.foregroundColor.primary),a&&"string"==typeof a||(a="#fff"),t=h({background:r.backgroundColor,foreground:a});break}case null:a.warn(`_color was empty or invalid (${JSON.stringify(r)})`),t=h({background:"#000",foreground:"#000"})}return t.contrast<7&&s(`[KolBadge] The contrast of ${t.contrast} (≥7, AAA) is to low, between the color pair ${t.background} and ${t.foreground}.`),{backgroundColor:t.background,foregroundColor:t.foreground}};export{w as h,u as r,$ as v};
@@ -1 +1 @@
1
- {"version":3,"file":"color-D-_1x7ql.js","sources":["../../node_modules/.pnpm/color-rgba@2.4.0/node_modules/color-rgba/index.mjs","src/schema/utils/contrast.ts","src/schema/props/color.ts"],"sourcesContent":["/** @module color-rgba */\r\nimport parse from 'color-parse'\r\nimport rgb from 'color-space/rgb.js'\r\nimport hsl from 'color-space/hsl.js'\r\n\r\nexport default function rgba (color) {\r\n\t// template literals\r\n\tif (Array.isArray(color) && color.raw) color = String.raw(...arguments)\r\n\r\n\tvar values, i, l\r\n\r\n\t//attempt to parse non-array arguments\r\n\tvar parsed = parse(color)\r\n\r\n\tif (!parsed.space) return []\r\n\r\n\tconst min = parsed.space[0] === 'h' ? hsl.min : rgb.min\r\n\tconst max = parsed.space[0] === 'h' ? hsl.max : rgb.max\r\n\r\n\tvalues = Array(3)\r\n\tvalues[0] = Math.min(Math.max(parsed.values[0], min[0]), max[0])\r\n\tvalues[1] = Math.min(Math.max(parsed.values[1], min[1]), max[1])\r\n\tvalues[2] = Math.min(Math.max(parsed.values[2], min[2]), max[2])\r\n\r\n\tif (parsed.space[0] === 'h') {\r\n\t\tvalues = hsl.rgb(values)\r\n\t}\r\n\r\n\tvalues.push(Math.min(Math.max(parsed.alpha, 0), 1))\r\n\r\n\treturn values\r\n}\r\n","import type { RGB } from 'color-convert/conversions';\nimport { hex } from 'wcag-contrast';\n\nimport rgba from 'color-rgba';\nimport rgbaConvert from 'rgba-convert';\n\ntype RGBA = [number, number, number, number];\n\n// const calcColor = (color: RGBA, diff: number): RGBA => [\n// Math.max(Math.min(Math.round(color[0] + (color[0] / 100 + 1) * diff), 255), 0),\n// Math.max(Math.min(Math.round(color[1] + (color[1] / 100 + 1) * diff), 255), 0),\n// Math.max(Math.min(Math.round(color[2] + (color[2] / 100 + 1) * diff), 255), 0),\n// color[3],\n// ];\n\n// const relativeLuminanceFormel = (c: number): number => {\n// if (c <= 0.03928) {\n// return c / 12.92;\n// } else {\n// return ((c + 0.055) / 1.055) ** 2.4;\n// }\n// };\n// // https://www.w3.org/TR/WCAG20/#contrast-ratiodef\n// const relativeLuminance = (r: number, g: number, b: number): number => {\n// return (\n// 0.2126 * relativeLuminanceFormel(r) + 0.7152 * relativeLuminanceFormel(g) + 0.0722 * relativeLuminanceFormel(b)\n// );\n// };\n\n// https://css-tricks.com/snippets/javascript/random-hex-color/\n// const randomColor = () => Math.floor(Math.random() * 16777215).toString(16);\n\n// https://24ways.org/2010/calculating-color-contrast/\nexport const getContrastYIQ = (r: number, g: number, b: number): number => {\n\tconst yiq = (r * 299 + g * 587 + b * 114) / 1000;\n\treturn yiq >= 128 ? -1 : 1;\n};\n\ntype ColorPair<T> = {\n\tbackground: T;\n\tforeground: T;\n};\n\nexport type ColorContrast<T> = ColorPair<T> & {\n\tcontrast: number;\n};\n\nexport const calcColorContrast = (baseColor: RGB, contrastColor: RGB, ratio: number, dir = 1): ColorContrast<RGB> => {\n\tconst color: RGB = [\n\t\tMath.max(Math.min(Math.round(contrastColor[0] + dir * Math.max(1, contrastColor[0] / 100)), 255), 0),\n\t\tMath.max(Math.min(Math.round(contrastColor[1] + dir * Math.max(1, contrastColor[1] / 100)), 255), 0),\n\t\tMath.max(Math.min(Math.round(contrastColor[2] + dir * Math.max(1, contrastColor[2] / 100)), 255), 0),\n\t];\n\tconst contrast = hex(rgbaConvert.hex(`rgba(${baseColor.join(',')},1)`), rgbaConvert.hex(`rgba(${color.join(',')},1)`));\n\tconst summe = color[0] + color[1] + color[2];\n\tif (summe === 0 || summe === 765 || contrast > ratio) {\n\t\treturn {\n\t\t\tbackground: baseColor,\n\t\t\tforeground: color,\n\t\t\tcontrast,\n\t\t};\n\t} else {\n\t\treturn calcColorContrast(baseColor, color, ratio, dir);\n\t}\n};\n\nconst cache: Map<unknown, ColorContrast<RGB>> = new Map();\n\nexport const getColorContrast = (baseColor: RGB, contrastColor: RGB, ratio: number, dir = 1): ColorContrast<RGB> => {\n\tif (cache.has(baseColor)) {\n\t\treturn cache.get(baseColor) as ColorContrast<RGB>;\n\t}\n\tconst color = calcColorContrast(baseColor, contrastColor, ratio, dir);\n\tcache.set(baseColor, color);\n\treturn color;\n};\n\nexport const createContrastColorPair = (color: string | ColorPair<string>, contrastRatio = 7): ColorContrast<string> => {\n\tlet baseColor: RGBA = [0, 0, 0, 1];\n\tlet contrastColor: RGBA = [255, 255, 255, 1];\n\tif (typeof color === 'string') {\n\t\tbaseColor = rgba(color);\n\t\tcontrastColor = baseColor;\n\t} else if (typeof color === 'object' && color !== null && typeof color.background === 'string' && typeof color.foreground === 'string') {\n\t\tbaseColor = rgba(color.background);\n\t\tif (typeof color.foreground === 'string') {\n\t\t\tcontrastColor = rgba(color.foreground);\n\t\t} else {\n\t\t\tcontrastColor = baseColor;\n\t\t}\n\t}\n\tconst yiq = getContrastYIQ(baseColor[0], baseColor[1], baseColor[2]);\n\tconst colorContrast = getColorContrast(\n\t\t[baseColor[0], baseColor[1], baseColor[2]],\n\t\t[contrastColor[0], contrastColor[1], contrastColor[2]],\n\t\tcontrastRatio,\n\t\tyiq,\n\t);\n\tcontrastColor = [...colorContrast.foreground, 1];\n\n\treturn {\n\t\tbackground: rgbaConvert.hex(`rgba(${baseColor.join(',')})`),\n\t\tforeground: rgbaConvert.hex(`rgba(${contrastColor.join(',')})`),\n\t\tcontrast: colorContrast.contrast,\n\t};\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { Stringified } from '../types';\nimport type { ColorContrast, WatchOptions } from '../utils';\nimport { a11yHint, createContrastColorPair, Log, watchValidator } from '../utils';\n\n/**\n * Defines the colors for primary, secondary and neutral.\n */\ntype CharacteristicColors = {\n\tprimary: string;\n\tsecondary: string;\n\tneutral: string;\n};\n\n/**\n * Defines the backgroundColor and foregroundColor.\n */\nexport type ColorPair = {\n\tbackgroundColor: string;\n\tforegroundColor: Stringified<CharacteristicColors>;\n};\n\nexport type PropColor = ColorPair;\n\ntype typeOfColorType = 'string' | 'ColorPair' | null;\n\nconst HEX_REGEX = /^#((\\d|[a-f]){8}|(\\d|[a-f]){6}|(\\d|[a-f]){3,4})$/i;\nfunction isHexString(value: string): boolean {\n\treturn HEX_REGEX.test(value);\n}\n/* checks if the string is valid JSON and if the resulting object is a valid ColorPair and returns it, or null if invalid. */\nfunction isColorObjectString(value: string): { type: typeOfColorType; value: PropColor | null } {\n\tif (value.startsWith('{')) {\n\t\ttry {\n\t\t\tconst parsed = JSON.parse(value) as unknown;\n\t\t\tif (isValidColorPair(parsed as ColorPair)) return { type: 'ColorPair', value: parsed as ColorPair };\n\t\t} catch (error) {\n\t\t\treturn { type: null, value: null };\n\t\t}\n\t}\n\treturn { type: null, value: null };\n}\n\nfunction typeOfColor(value?: unknown): { type: typeOfColorType; valid: boolean; value: PropColor | string } {\n\tif (value) {\n\t\tif (typeof value === 'string') {\n\t\t\tif (isHexString(value)) return { type: 'string', valid: true, value: value };\n\t\t\telse {\n\t\t\t\tconst colorObject = isColorObjectString(value);\n\t\t\t\tif (colorObject.value) return { type: colorObject.type, valid: true, value: colorObject.value };\n\t\t\t}\n\t\t} else {\n\t\t\tconst asColorPair = value as ColorPair;\n\t\t\tif (isValidColorPair(asColorPair)) return { type: 'ColorPair', valid: true, value: asColorPair };\n\t\t}\n\t}\n\treturn { type: null, valid: false, value: '' };\n}\n\n/* validate different color options */\nfunction isValidColorPair(value: ColorPair): boolean {\n\treturn !!(\n\t\ttypeof value === 'object' &&\n\t\tvalue &&\n\t\ttypeof value.backgroundColor === 'string' &&\n\t\t(typeof value.foregroundColor === 'string' ||\n\t\t\t(value.foregroundColor &&\n\t\t\t\ttypeof value.foregroundColor.primary === 'string' &&\n\t\t\t\ttypeof value.foregroundColor.secondary === 'string' &&\n\t\t\t\ttypeof value.foregroundColor.neutral === 'string'))\n\t);\n}\n\nfunction validatorFunction(value?: Stringified<PropColor>): boolean {\n\tconst valueType = typeOfColor(value);\n\tswitch (valueType.type) {\n\t\tcase null:\n\t\t\treturn false;\n\t\tcase 'string':\n\t\tcase 'ColorPair':\n\t\t\treturn valueType.valid;\n\t}\n}\n\nexport const validateColor = (component: Generic.Element.Component, value?: Stringified<PropColor>, options?: WatchOptions): void => {\n\twatchValidator(component, '_color', validatorFunction, new Set(['rgb in hex', 'ColorPair']), value, options);\n};\n\nexport const handleColorChange = (value: unknown): ColorPair => {\n\tlet colorContrast: ColorContrast<string>;\n\tconst valueType = typeOfColor(value);\n\tswitch (valueType.type) {\n\t\tcase 'string':\n\t\t\tcolorContrast = createContrastColorPair(valueType.value as string);\n\t\t\tbreak;\n\t\tcase 'ColorPair': {\n\t\t\tconst asColorPair = valueType.value as ColorPair;\n\t\t\tlet foreground = '';\n\t\t\tif (typeof asColorPair.foregroundColor === 'string') foreground = asColorPair.foregroundColor;\n\t\t\telse if (asColorPair.foregroundColor?.primary) foreground = asColorPair.foregroundColor.primary;\n\t\t\tif (!foreground || typeof foreground !== 'string') foreground = '#fff';\n\t\t\tcolorContrast = createContrastColorPair({\n\t\t\t\tbackground: asColorPair.backgroundColor,\n\t\t\t\tforeground,\n\t\t\t});\n\t\t\tbreak;\n\t\t}\n\t\tcase null:\n\t\t\tLog.warn(`_color was empty or invalid (${JSON.stringify(value)})`);\n\t\t\tcolorContrast = createContrastColorPair({\n\t\t\t\tbackground: '#000',\n\t\t\t\tforeground: '#000',\n\t\t\t});\n\t}\n\n\tif (colorContrast.contrast < 7) {\n\t\ta11yHint(\n\t\t\t`[KolBadge] The contrast of ${colorContrast.contrast} (≥7, AAA) is to low, between the color pair ${colorContrast.background} and ${colorContrast.foreground}.`,\n\t\t);\n\t}\n\treturn {\n\t\tbackgroundColor: colorContrast.background,\n\t\tforegroundColor: colorContrast.foreground,\n\t};\n};\n"],"names":["hex","rgbaConvert"],"mappings":";;;;;AAAA;AAIA;AACe,SAAS,IAAI,EAAE,KAAK,EAAE;AACrC;AACA,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,GAAG,EAAE,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,GAAG,SAAS,EAAC;AACxE;AACA,CAAI,IAAC,MAAM,CAAM;AACjB;AACA;AACA,CAAC,IAAI,MAAM,GAAG,KAAK,CAAC,KAAK,EAAC;AAC1B;AACA,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE;AAC7B;AACA,CAAC,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,GAAG,GAAG,GAAG,CAAC,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AAG,SAAS,CAAC,KAAkB;YAChD,IAAI,UAAU,GAAG,EAAE;AACnB,YAAA,IAAI,OAAO,WAAW,CAAC,eAAe,KAAK,QAAQ;AAAE,gBAAA,UAAU,GAAG,WAAW,CAAC,eAAe;iBACxF,IAAI,CAAA,EAAA,GAAA,WAAW,CAAC,eAAe,0CAAE,OAAO;AAAE,gBAAA,UAAU,GAAG,WAAW,CAAC,eAAe,CAAC,OAAO;AAC/F,YAAA,IAAI,CAAC,UAAU,IAAI,OAAO,UAAU,KAAK,QAAQ;gBAAE,UAAU,GAAG,MAAM;YACtE,aAAa,GAAG,uBAAuB,CAAC;gBACvC,UAAU,EAAE,WAAW,CAAC,eAAe;gBACvC,UAAU;AACV,aAAA,CAAC;YACF;;AAED,QAAA,KAAK,IAAI;AACR,YAAA,GAAG,CAAC,IAAI,CAAC,CAAA,6BAAA,EAAgC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAG,CAAA,CAAA,CAAC;YAClE,aAAa,GAAG,uBAAuB,CAAC;AACvC,gBAAA,UAAU,EAAE,MAAM;AAClB,gBAAA,UAAU,EAAE,MAAM;AAClB,aAAA,CAAC;;AAGJ,IAAA,IAAI,aAAa,CAAC,QAAQ,GAAG,CAAC,EAAE;AAC/B,QAAA,QAAQ,CACP,CAAA,2BAAA,EAA8B,aAAa,CAAC,QAAQ,CAAgD,6CAAA,EAAA,aAAa,CAAC,UAAU,QAAQ,aAAa,CAAC,UAAU,CAAA,CAAA,CAAG,CAC/J;;IAEF,OAAO;QACN,eAAe,EAAE,aAAa,CAAC,UAAU;QACzC,eAAe,EAAE,aAAa,CAAC,UAAU;KACzC;AACF;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"color-DZ0Ata5E.js","sources":["../../node_modules/.pnpm/color-rgba@2.4.0/node_modules/color-rgba/index.mjs","src/schema/utils/contrast.ts","src/schema/props/color.ts"],"sourcesContent":["/** @module color-rgba */\r\nimport parse from 'color-parse'\r\nimport rgb from 'color-space/rgb.js'\r\nimport hsl from 'color-space/hsl.js'\r\n\r\nexport default function rgba (color) {\r\n\t// template literals\r\n\tif (Array.isArray(color) && color.raw) color = String.raw(...arguments)\r\n\r\n\tvar values, i, l\r\n\r\n\t//attempt to parse non-array arguments\r\n\tvar parsed = parse(color)\r\n\r\n\tif (!parsed.space) return []\r\n\r\n\tconst min = parsed.space[0] === 'h' ? hsl.min : rgb.min\r\n\tconst max = parsed.space[0] === 'h' ? hsl.max : rgb.max\r\n\r\n\tvalues = Array(3)\r\n\tvalues[0] = Math.min(Math.max(parsed.values[0], min[0]), max[0])\r\n\tvalues[1] = Math.min(Math.max(parsed.values[1], min[1]), max[1])\r\n\tvalues[2] = Math.min(Math.max(parsed.values[2], min[2]), max[2])\r\n\r\n\tif (parsed.space[0] === 'h') {\r\n\t\tvalues = hsl.rgb(values)\r\n\t}\r\n\r\n\tvalues.push(Math.min(Math.max(parsed.alpha, 0), 1))\r\n\r\n\treturn values\r\n}\r\n","import type { RGB } from 'color-convert/conversions';\nimport { hex } from 'wcag-contrast';\n\nimport rgba from 'color-rgba';\nimport rgbaConvert from 'rgba-convert';\n\ntype RGBA = [number, number, number, number];\n\n// const calcColor = (color: RGBA, diff: number): RGBA => [\n// Math.max(Math.min(Math.round(color[0] + (color[0] / 100 + 1) * diff), 255), 0),\n// Math.max(Math.min(Math.round(color[1] + (color[1] / 100 + 1) * diff), 255), 0),\n// Math.max(Math.min(Math.round(color[2] + (color[2] / 100 + 1) * diff), 255), 0),\n// color[3],\n// ];\n\n// const relativeLuminanceFormel = (c: number): number => {\n// if (c <= 0.03928) {\n// return c / 12.92;\n// } else {\n// return ((c + 0.055) / 1.055) ** 2.4;\n// }\n// };\n// // https://www.w3.org/TR/WCAG20/#contrast-ratiodef\n// const relativeLuminance = (r: number, g: number, b: number): number => {\n// return (\n// 0.2126 * relativeLuminanceFormel(r) + 0.7152 * relativeLuminanceFormel(g) + 0.0722 * relativeLuminanceFormel(b)\n// );\n// };\n\n// https://css-tricks.com/snippets/javascript/random-hex-color/\n// const randomColor = () => Math.floor(Math.random() * 16777215).toString(16);\n\n// https://24ways.org/2010/calculating-color-contrast/\nexport const getContrastYIQ = (r: number, g: number, b: number): number => {\n\tconst yiq = (r * 299 + g * 587 + b * 114) / 1000;\n\treturn yiq >= 128 ? -1 : 1;\n};\n\ntype ColorPair<T> = {\n\tbackground: T;\n\tforeground: T;\n};\n\nexport type ColorContrast<T> = ColorPair<T> & {\n\tcontrast: number;\n};\n\nexport const calcColorContrast = (baseColor: RGB, contrastColor: RGB, ratio: number, dir = 1): ColorContrast<RGB> => {\n\tconst color: RGB = [\n\t\tMath.max(Math.min(Math.round(contrastColor[0] + dir * Math.max(1, contrastColor[0] / 100)), 255), 0),\n\t\tMath.max(Math.min(Math.round(contrastColor[1] + dir * Math.max(1, contrastColor[1] / 100)), 255), 0),\n\t\tMath.max(Math.min(Math.round(contrastColor[2] + dir * Math.max(1, contrastColor[2] / 100)), 255), 0),\n\t];\n\tconst contrast = hex(rgbaConvert.hex(`rgba(${baseColor.join(',')},1)`), rgbaConvert.hex(`rgba(${color.join(',')},1)`));\n\tconst summe = color[0] + color[1] + color[2];\n\tif (summe === 0 || summe === 765 || contrast > ratio) {\n\t\treturn {\n\t\t\tbackground: baseColor,\n\t\t\tforeground: color,\n\t\t\tcontrast,\n\t\t};\n\t} else {\n\t\treturn calcColorContrast(baseColor, color, ratio, dir);\n\t}\n};\n\nconst cache: Map<unknown, ColorContrast<RGB>> = new Map();\n\nexport const getColorContrast = (baseColor: RGB, contrastColor: RGB, ratio: number, dir = 1): ColorContrast<RGB> => {\n\tif (cache.has(baseColor)) {\n\t\treturn cache.get(baseColor) as ColorContrast<RGB>;\n\t}\n\tconst color = calcColorContrast(baseColor, contrastColor, ratio, dir);\n\tcache.set(baseColor, color);\n\treturn color;\n};\n\nexport const createContrastColorPair = (color: string | ColorPair<string>, contrastRatio = 7): ColorContrast<string> => {\n\tlet baseColor: RGBA = [0, 0, 0, 1];\n\tlet contrastColor: RGBA = [255, 255, 255, 1];\n\tif (typeof color === 'string') {\n\t\tbaseColor = rgba(color);\n\t\tcontrastColor = baseColor;\n\t} else if (typeof color === 'object' && color !== null && typeof color.background === 'string' && typeof color.foreground === 'string') {\n\t\tbaseColor = rgba(color.background);\n\t\tif (typeof color.foreground === 'string') {\n\t\t\tcontrastColor = rgba(color.foreground);\n\t\t} else {\n\t\t\tcontrastColor = baseColor;\n\t\t}\n\t}\n\tconst yiq = getContrastYIQ(baseColor[0], baseColor[1], baseColor[2]);\n\tconst colorContrast = getColorContrast(\n\t\t[baseColor[0], baseColor[1], baseColor[2]],\n\t\t[contrastColor[0], contrastColor[1], contrastColor[2]],\n\t\tcontrastRatio,\n\t\tyiq,\n\t);\n\tcontrastColor = [...colorContrast.foreground, 1];\n\n\treturn {\n\t\tbackground: rgbaConvert.hex(`rgba(${baseColor.join(',')})`),\n\t\tforeground: rgbaConvert.hex(`rgba(${contrastColor.join(',')})`),\n\t\tcontrast: colorContrast.contrast,\n\t};\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { Stringified } from '../types';\nimport type { ColorContrast, WatchOptions } from '../utils';\nimport { a11yHint, createContrastColorPair, Log, watchValidator } from '../utils';\n\n/**\n * Defines the colors for primary, secondary and neutral.\n */\ntype CharacteristicColors = {\n\tprimary: string;\n\tsecondary: string;\n\tneutral: string;\n};\n\n/**\n * Defines the backgroundColor and foregroundColor.\n */\nexport type ColorPair = {\n\tbackgroundColor: string;\n\tforegroundColor: Stringified<CharacteristicColors>;\n};\n\nexport type PropColor = ColorPair;\n\ntype typeOfColorType = 'string' | 'ColorPair' | null;\n\nconst HEX_REGEX = /^#((\\d|[a-f]){8}|(\\d|[a-f]){6}|(\\d|[a-f]){3,4})$/i;\nfunction isHexString(value: string): boolean {\n\treturn HEX_REGEX.test(value);\n}\n/* checks if the string is valid JSON and if the resulting object is a valid ColorPair and returns it, or null if invalid. */\nfunction isColorObjectString(value: string): { type: typeOfColorType; value: PropColor | null } {\n\tif (value.startsWith('{')) {\n\t\ttry {\n\t\t\tconst parsed = JSON.parse(value) as unknown;\n\t\t\tif (isValidColorPair(parsed as ColorPair)) return { type: 'ColorPair', value: parsed as ColorPair };\n\t\t} catch (error) {\n\t\t\treturn { type: null, value: null };\n\t\t}\n\t}\n\treturn { type: null, value: null };\n}\n\nfunction typeOfColor(value?: unknown): { type: typeOfColorType; valid: boolean; value: PropColor | string } {\n\tif (value) {\n\t\tif (typeof value === 'string') {\n\t\t\tif (isHexString(value)) return { type: 'string', valid: true, value: value };\n\t\t\telse {\n\t\t\t\tconst colorObject = isColorObjectString(value);\n\t\t\t\tif (colorObject.value) return { type: colorObject.type, valid: true, value: colorObject.value };\n\t\t\t}\n\t\t} else {\n\t\t\tconst asColorPair = value as ColorPair;\n\t\t\tif (isValidColorPair(asColorPair)) return { type: 'ColorPair', valid: true, value: asColorPair };\n\t\t}\n\t}\n\treturn { type: null, valid: false, value: '' };\n}\n\n/* validate different color options */\nfunction isValidColorPair(value: ColorPair): boolean {\n\treturn !!(\n\t\ttypeof value === 'object' &&\n\t\tvalue &&\n\t\ttypeof value.backgroundColor === 'string' &&\n\t\t(typeof value.foregroundColor === 'string' ||\n\t\t\t(value.foregroundColor &&\n\t\t\t\ttypeof value.foregroundColor.primary === 'string' &&\n\t\t\t\ttypeof value.foregroundColor.secondary === 'string' &&\n\t\t\t\ttypeof value.foregroundColor.neutral === 'string'))\n\t);\n}\n\nfunction validatorFunction(value?: Stringified<PropColor>): boolean {\n\tconst valueType = typeOfColor(value);\n\tswitch (valueType.type) {\n\t\tcase null:\n\t\t\treturn false;\n\t\tcase 'string':\n\t\tcase 'ColorPair':\n\t\t\treturn valueType.valid;\n\t}\n}\n\nexport const validateColor = (component: Generic.Element.Component, value?: Stringified<PropColor>, options?: WatchOptions): void => {\n\twatchValidator(component, '_color', validatorFunction, new Set(['rgb in hex', 'ColorPair']), value, options);\n};\n\nexport const handleColorChange = (value: unknown): ColorPair => {\n\tlet colorContrast: ColorContrast<string>;\n\tconst valueType = typeOfColor(value);\n\tswitch (valueType.type) {\n\t\tcase 'string':\n\t\t\tcolorContrast = createContrastColorPair(valueType.value as string);\n\t\t\tbreak;\n\t\tcase 'ColorPair': {\n\t\t\tconst asColorPair = valueType.value as ColorPair;\n\t\t\tlet foreground = '';\n\t\t\tif (typeof asColorPair.foregroundColor === 'string') foreground = asColorPair.foregroundColor;\n\t\t\telse if (asColorPair.foregroundColor?.primary) foreground = asColorPair.foregroundColor.primary;\n\t\t\tif (!foreground || typeof foreground !== 'string') foreground = '#fff';\n\t\t\tcolorContrast = createContrastColorPair({\n\t\t\t\tbackground: asColorPair.backgroundColor,\n\t\t\t\tforeground,\n\t\t\t});\n\t\t\tbreak;\n\t\t}\n\t\tcase null:\n\t\t\tLog.warn(`_color was empty or invalid (${JSON.stringify(value)})`);\n\t\t\tcolorContrast = createContrastColorPair({\n\t\t\t\tbackground: '#000',\n\t\t\t\tforeground: '#000',\n\t\t\t});\n\t}\n\n\tif (colorContrast.contrast < 7) {\n\t\ta11yHint(\n\t\t\t`[KolBadge] The contrast of ${colorContrast.contrast} (≥7, AAA) is to low, between the color pair ${colorContrast.background} and ${colorContrast.foreground}.`,\n\t\t);\n\t}\n\treturn {\n\t\tbackgroundColor: colorContrast.background,\n\t\tforegroundColor: colorContrast.foreground,\n\t};\n};\n"],"names":["hex","rgbaConvert"],"mappings":";;;;;AAAA;AAIA;AACe,SAAS,IAAI,EAAE,KAAK,EAAE;AACrC;AACA,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,GAAG,EAAE,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,GAAG,SAAS,EAAC;AACxE;AACA,CAAI,IAAC,MAAM,CAAM;AACjB;AACA;AACA,CAAC,IAAI,MAAM,GAAG,KAAK,CAAC,KAAK,EAAC;AAC1B;AACA,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE;AAC7B;AACA,CA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asOwnProperty.call(e,"default")?e.default:e}var r,t={exports:{}},n=t.exports;function o(){return r||(r=1,function(e){!function(t,o){e.exports?e.exports=o():t.log=o()}(n,function(){var e=function(){},t="undefined",o=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),n=["trace","debug","info","warn","error"],r={},a=null;function s(e,t){var o=e[t];if("function"==typeof o.bind)return o.bind(e);try{return Function.prototype.bind.call(o,e)}catch(t){return function(){return Function.prototype.apply.apply(o,[e,arguments])}}}function i(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function l(n){return"debug"===n&&(n="log"),typeof console!==t&&("trace"===n&&o?i:void 0!==console[n]?s(console,n):void 0!==console.log?s(console,"log"):e)}function c(){for(var o=this.getLevel(),r=0;r<n.length;r++){var a=n[r];this[a]=r<o?e:this.methodFactory(a,o,this.name)}if(this.log=this.debug,typeof console===t&&o<this.levels.SILENT)return"No console available for logging"}function u(e){return function(){typeof console!==t&&(c.call(this),this[e].apply(this,arguments))}}function d(e,t,o){return l(e)||u.apply(this,arguments)}function f(e,o){var s,i,l,u=this,f="loglevel";function h(e){var o=(n[e]||"silent").toUpperCase();if(typeof window!==t&&f){try{return void(window.localStorage[f]=o)}catch(e){}try{window.document.cookie=encodeURIComponent(f)+"="+o+";"}catch(e){}}}function g(){var e;if(typeof window!==t&&f){try{e=window.localStorage[f]}catch(e){}if(typeof e===t)try{var o=window.document.cookie,n=encodeURIComponent(f),r=o.indexOf(n+"=");-1!==r&&(e=/^([^;]+)/.exec(o.slice(r+n.length+1))[1])}catch(e){}return void 0===u.levels[e]&&(e=void 0),e}}function p(e){var t=e;if("string"==typeof t&&void 0!==u.levels[t.toUpperCase()]&&(t=u.levels[t.toUpperCase()]),"number"==typeof t&&t>=0&&t<=u.levels.SILENT)return t;throw new TypeError("log.setLevel() called with invalid level: "+e)}"string"==typeof e?f+=":"+e:"symbol"==typeof e&&(f=void 0),u.name=e,u.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},u.methodFactory=o||d,u.getLevel=function(){return null!=l?l:null!=i?i:s},u.setLevel=function(e,t){return l=p(e),!1!==t&&h(l),c.call(u)},u.setDefaultLevel=function(e){i=p(e),g()||u.setLevel(e,!1)},u.resetLevel=function(){l=null,function(){if(typeof window!==t&&f){try{window.localStorage.removeItem(f)}catch(e){}try{window.document.cookie=encodeURIComponent(f)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}(),c.call(u)},u.enableAll=function(e){u.setLevel(u.levels.TRACE,e)},u.disableAll=function(e){u.setLevel(u.levels.SILENT,e)},u.rebuild=function(){if(a!==u&&(s=p(a.getLevel())),c.call(u),a===u)for(var e in r)r[e].rebuild()},s=p(a?a.getLevel():"WARN");var m=g();null!=m&&(l=p(m)),c.call(u)}(a=new f).getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=r[e];return t||(t=r[e]=new f(e,a.methodFactory)),t};var h=typeof window!==t?window.log:void 0;return a.noConflict=function(){return typeof window!==t&&window.log===a&&(window.log=h),a},a.getLoggers=function(){return r},a.default=a,a})}(t)),t.exports}var i=o(),a=e(i);const s=(e,t)=>o=>o(e,t),l=(e,t)=>o=>o(e,t,{append:!1}),f=()=>{const e=typeof process<"u"&&process.env?process.env:{},t="test"===e.NODE_ENV,o="VITEST"in e,n="JEST_WORKER_ID"in e,r="PLAYWRIGHT_TEST_BASE_URL"in e,a="true"===e.CI,s="true"===e.TEST||"true"===e.IS_TEST,i=typeof navigator<"u"&&!0===navigator.webdriver,l=typeof navigator<"u"&&/playwright|puppeteer|webdriver|selenium|testcafe/i.test(navigator.userAgent);return t||o||n||r||a||s||i||l},u={A11yUi:{CSS_STYLE_CACHE:new Map,IS_TEST_ENVIRONMENT:f(),PERFORMANCE_MEASURES:new Map,STYLING_TASK_QUEUE:new Map,THEMES:new Map,showAverageTimes:()=>{const e={};for(const[t,o]of u.A11yUi.PERFORMANCE_MEASURES.entries())e[t]=[o.totalTime/o.count,o.count];const t=Object.entries(e).sort((e,t)=>t[1][0]-e[1][0]);return console.table(Object.fromEntries(t.map(([e,[t,o]])=>[e,{"avg (ms)":parseFloat(t.toFixed(2)),count:o}]))),e}}};let c=!0,d=!1;const p=/^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/,v=e=>"string"==typeof e&&p.test(e),g=e=>{if(!v(e))throw new Error(`[Theming] The theme identifier "${"string"==typeof e?e:""}" (Type: ${typeof e}) is not valid. Please use only follow this pattern: /^[a-z][a-z0-9]{1,}(-[a-z0-9]+)?$/`)},y=e=>e.replace(/\/\*[\s\S]*?\*\//g,"").replace(/\s*([{},;])\s*/g,"$1").replace(/:\s+/g,":").replace(/\s+/g," ").replace(/;\}/g,"}").trim(),h=(e,t,o,n)=>b(e,t,o,n),b=(e,t,o,n)=>{(n=n??{}).append=n.append??!1,g(e),c&&!d&&(d=!0,a.warn(`[Theming] The theme process is locked. This means that the theme "${e}" should not be patched.\n\n import { register } from 'adopted-style-sheets';\n import { defineCustomElements } from '...';\n import { THEME } from '...';\n\n register(THEME, defineCustomElements)\n .then(() => {\n // run your app or website\n })\n .catch(console.warn);`));let r=u.A11yUi.THEMES.get(e);if(r||(r=new Map,u.A11yUi.THEMES.set(e,r)),n.append&&r.has(t)){const e=r.get(t);r.set(t,y(`${e}${o}`))}else r.set(t,y(o))},m=(e,t,o,n)=>w(e,t,o,n),w=(e,t,o,n)=>(g(e),"object"==typeof t&&null!==t&&Object.getOwnPropertyNames(t).forEach(r=>{const a=t[r],s=r.toLowerCase(),i="function"!=typeof n?.transformTagName||["GLOBAL","PROPERTIES"].includes(r)?r:n.transformTagName(s);"string"==typeof a&&a.length>0&&b(e,i.toUpperCase(),a,o)}),e),k=e=>{if(e instanceof HTMLElement){if("string"==typeof e.dataset.theme)return e;{let t=e.parentNode;for(;t instanceof ShadowRoot;)t=t.host;return k(t)}}return null},S=(e={})=>"false"!==e.themeEncroachCss&&"true"!==e.themeReset&&{mode:"after"===e.themeEncroachCssMode||"before"===e.themeEncroachCssMode?e.themeEncroachCssMode:"before"},E=()=>"object"==typeof u.A11yUi.Theme&&null!==u.A11yUi.Theme&&"boolean"==typeof u.A11yUi.Theme.cache&&"object"==typeof u.A11yUi.Theme.encroachCss&&null!==u.A11yUi.Theme.encroachCss&&"string"==typeof u.A11yUi.Theme.encroachCss.mode&&"string"==typeof u.A11yUi.Theme.name,T=()=>!("object"==typeof u.A11yUi.Theme&&null!==u.A11yUi.Theme)||"default"!==u.A11yUi.Theme.name,M=e=>{if(E())return u.A11yUi.Theme;{const t={cache:!0,encroachCss:S(),loglevel:"silent",mode:"csr",name:null},o=k(e);return o instanceof HTMLElement&&(t.cache="false"!==o.dataset.themeCache,t.encroachCss=S(o.dataset),t.loglevel="debug"===o.dataset.themeLoglevel?o.dataset.themeLoglevel:"silent",t.mode="ssr"===o.dataset.themeMode?o.dataset.themeMode:"csr",t.name=o.dataset.theme||null),t}},A=(e,t)=>({cache:!1!==t.cache,detect:"auto"===t.detect?"auto":"fixed",encroachCss:!1!==t.encroachCss&&("object"!=typeof t.encroachCss||null==t.encroachCss||"after"!==t.encroachCss.mode&&"before"!==t.encroachCss.mode?{mode:"before"}:t.encroachCss),loglevel:"debug"===t.loglevel?t.loglevel:"silent",mode:"ssr"===t.mode?t.mode:"csr",name:"string"==typeof t.name?t.name:e}),N=(e,t)=>{!1===E()&&T()&&"object"==typeof t&&null!==t&&("fixed"===(t=A(e,t)).detect?(null===t.name&&"string"==typeof e&&(t.name=e),e===t.name&&(u.A11yUi.Theme=t,a.info(`[Theming] Theme "${e}" was set as default theme.`))):d||(d=!0,a.warn("[Theming] The presetting of theme options is only relevant by using 'fixed' detection mode.")))};let O=!1;const L=(e,t,o={})=>{O||(O=!0,c=!1,typeof window<"u"&&(window.A11yUi=u.A11yUi)),"function"==typeof e?e=new Set([e]):Array.isArray(e)&&(e=new Set(e)),e instanceof Set&&e.forEach(e=>{"function"==typeof e&&1===e.length?N(e((e,t,n)=>w(e,t,n,o)),{cache:o.theme?.cache,detect:o.theme?.detect,encroachCss:o.theme?.encroachCss,mode:o.theme?.mode,name:o.theme?.name}):a.error("[Theming] An attempt was made to load an incompatible theme.")}),c=!0,"function"==typeof t?t=new Set([t]):Array.isArray(t)&&(t=new Set(t));const n=[];return t.forEach(e=>{const t=e();t instanceof Promise&&n.push(t)}),Promise.all(n)},I=new Set,C=/--[^;]+/g,R=/:/,$=typeof MutationObserver<"u";let j=25,x=()=>{j=Math.min(25+20*Math.log2(u.A11yUi.STYLING_TASK_QUEUE.size+1),250)};const _=(e,t)=>{let o=t.match(C);if(Array.isArray(o)){o=o.filter(e=>R.test(e));const t=document.createElement("style");t.innerHTML=`.${e} {${o.join(";")}}`,document.querySelector("head")?.appendChild(t)}I.add(e)},F=(e,t)=>{const o=u.A11yUi.THEMES.get(e);return o instanceof Map&&o.has(t)?o.get(t):""},H=e=>{for(const t of Array.from(e.childNodes)){if(!(t instanceof HTMLStyleElement&&"STYLE"===t.tagName&&void 0===t.dataset.themingFallback))break;e.removeChild(t)}},P=(e,t)=>{try{if("ssr"===u.A11yUi.Theme?.mode)throw new Error("SSR");const o=[];t.forEach(e=>{const t=new CSSStyleSheet;t.replaceSync(e),o.push(t)}),e.adoptedStyleSheets=o}catch{[...t].reverse().forEach((t,o)=>{if("string"!=typeof t||0===t.length)return;const n=document.createElement("style");switch(n.dataset.themingFallback="",o){case 4:n.dataset.themingBaseA11y="";break;case 3:n.dataset.themingBaseGlobal="";break;case 2:n.dataset.themingBaseComponent="";break;case 1:n.dataset.themingCustomGlobal="";break;case 0:n.dataset.themingCustomComponent="";break;default:n.dataset.themingUnknown=""}n.innerHTML=t,e.insertBefore(n,e.firstChild)})}},U=(e,t,o)=>{if(!1!==o){const n=[...Array.from(e.childNodes).filter(e=>e instanceof HTMLStyleElement&&"STYLE"===e.tagName)];let r;try{r=[...Array.from(e.adoptedStyleSheets)]}catch{r=[]}"before"===o?.mode?(n.reverse().forEach(e=>t.unshift(e.innerHTML)),r.reverse().forEach(e=>t.unshift(Array.from(e.cssRules).map(e=>e.cssText).join("")))):"after"===o?.mode&&(n.forEach(e=>t.push(e.innerHTML)),r.forEach(e=>t.push(Array.from(e.cssRules).map(e=>e.cssText).join(""))))}},q=(e,t,o)=>{const n=t.name||"default";let r;try{if(null===e.shadowRoot)throw new Error("ShadowRoot is null");r=e.shadowRoot}catch{r=e}if(u.A11yUi.CSS_STYLE_CACHE.get(n)?.has(e.tagName))z(e,r,u.A11yUi.CSS_STYLE_CACHE.get(n)?.get(e.tagName),o);else{const a=F(n,"PROPERTIES"),s=F(n,"GLOBAL"),i=F(n,e.tagName);!1===I.has(n)&&_(n,s);const l=[a,s,i];U(r,l,t.encroachCss),!0===t.cache&&(!1===u.A11yUi.CSS_STYLE_CACHE.has(n)&&u.A11yUi.CSS_STYLE_CACHE.set(n,new Map),u.A11yUi.CSS_STYLE_CACHE.get(n)?.set(e.tagName,l)),z(e,r,l,o)}},z=(e,t,o,n)=>{const r=performance.now();if(H(t),P(t,o),Q(e),n(),u.A11yUi.PERFORMANCE_MEASURES.has(e.tagName)){const t=u.A11yUi.PERFORMANCE_MEASURES.get(e.tagName);t.count+=1,t.totalTime+=performance.now()-r}else u.A11yUi.PERFORMANCE_MEASURES.set(e.tagName,{count:1,totalTime:performance.now()-r})},B=e=>{const t=u.A11yUi.STYLING_TASK_QUEUE.get(e);if(t){const{resetCss:o,themeDetails:n}=t;q(e,n,o),Q(e)}};let J=e=>{const t=setTimeout(()=>{clearTimeout(t),e.classList.contains("hydrated")?B(e):J(e)},j)};const K={attributes:!0,attributeFilter:["class"],childList:!1,subtree:!1},W={attributes:!0,attributeFilter:[],childList:!1,subtree:!1},D=$?new MutationObserver((e,t)=>{for(const o of e){const e=o.target;e.classList.contains("hydrated")&&(B(e),t.observe(e,W))}}):null;D&&(J=e=>D.observe(e,K),x=()=>{});let Y=e=>{const t=getComputedStyle(e).getPropertyValue("--theme-visibility-delay").trim();if(t.endsWith("ms"))return parseFloat(t);if(t.endsWith("s"))return 1e3*parseFloat(t);{const e=parseFloat(t);return isNaN(e)?0:e}};u.A11yUi.IS_TEST_ENVIRONMENT&&(Y=()=>0);const G=(e,t)=>{e.style.setProperty("visibility",t),e.dataset.themed=""},V=(e,t)=>{const o=e.style.visibility||null;u.A11yUi.STYLING_TASK_QUEUE.set(e,{resetCss:()=>{const t=Y(e);t>0?setTimeout(()=>{G(e,o)},t):G(e,o)},themeDetails:t}),e.style.setProperty("visibility","hidden","important"),J(e)},Q=e=>{u.A11yUi.STYLING_TASK_QUEUE.delete(e),x()},X=(e,t)=>{V(e,{...u.A11yUi.Theme,...t})};class Z{Prefix;Key;Tag;createTheme=(e,t)=>l(e,t);createTranslation=(e,t)=>s(e,t);constructor(e,t,o){this.Prefix=e,this.Key=Object.getOwnPropertyNames(t),this.Tag=Object.getOwnPropertyNames(o)}}var ee,te;!function(e){e[e.error=0]="error",e[e.warning=1]="warning",e[e.info=2]="info",e[e.success=3]="success",e[e.message=4]="message",e[e.close=5]="close",e[e["form-description"]=6]="form-description",e[e.of=7]="of",e[e.characters=8]="characters",e[e.new=9]="new",e[e["no-entries"]=10]="no-entries",e[e["change-order"]=11]="change-order",e[e["action-running"]=12]="action-running",e[e["action-done"]=13]="action-done",e[e["page-first"]=14]="page-first",e[e["page-back"]=15]="page-back",e[e["page-next"]=16]="page-next",e[e["page-last"]=17]="page-last",e[e["entries-per-site"]=18]="entries-per-site",e[e["page-current"]=19]="page-current",e[e["page-selected"]=20]="page-selected",e[e["page-per-site"]=21]="page-per-site",e[e["logo-description"]=22]="logo-description",e[e["open-link-in-tab"]=23]="open-link-in-tab",e[e["kolibri-logo"]=24]="kolibri-logo"}(ee||(ee={})),function(e){e[e.abbr=0]="abbr",e[e.accordion=1]="accordion",e[e.alert=2]="alert",e[e.avatar=3]="avatar",e[e.badge=4]="badge",e[e.breadcrumb=5]="breadcrumb",e[e.button=6]="button",e[e["button-link"]=7]="button-link",e[e.card=8]="card",e[e.combobox=9]="combobox",e[e.details=10]="details",e[e.dialog=11]="dialog",e[e.drawer=12]="drawer",e[e.form=13]="form",e[e.heading=14]="heading",e[e.icon=15]="icon",e[e.image=16]="image",e[e["input-checkbox"]=17]="input-checkbox",e[e["input-color"]=18]="input-color",e[e["input-date"]=19]="input-date",e[e["input-email"]=20]="input-email",e[e["input-file"]=21]="input-file",e[e["input-number"]=22]="input-number",e[e["input-password"]=23]="input-password",e[e["input-radio"]=24]="input-radio",e[e["input-range"]=25]="input-range",e[e["input-text"]=26]="input-text",e[e.kolibri=27]="kolibri",e[e.link=28]="link",e[e["link-button"]=29]="link-button",e[e.logo=30]="logo",e[e.modal=31]="modal",e[e.nav=32]="nav",e[e.pagination=33]="pagination",e[e["popover-button"]=34]="popover-button",e[e.progress=35]="progress",e[e.quote=36]="quote",e[e.select=37]="select",e[e["single-select"]=38]="single-select",e[e["skip-nav"]=39]="skip-nav",e[e.spin=40]="spin",e[e["split-button"]=41]="split-button",e[e.symbol=42]="symbol",e[e.table=43]="table",e[e["table-stateful"]=44]="table-stateful",e[e["table-stateless"]=45]="table-stateless",e[e.tabs=46]="tabs",e[e.textarea=47]="textarea",e[e["toast-container"]=48]="toast-container",e[e.toolbar=49]="toolbar",e[e.tooltip=50]="tooltip",e[e.tree=51]="tree",e[e["tree-item"]=52]="tree-item"}(te||(te={}));const ne=()=>"undefined"!=typeof window?window:{},re=()=>{const e=ne();return e&&void 0!==e.document?e.document:{}},oe=["development","production","test"];let ie="production";const ae=e=>{try{if(!oe.includes(e))throw new Error(`Invalid NODE_ENV value: ${e}. Expected one of ${oe.join(", ")}.`);ie=e}catch(e){ie="production"}},se=()=>{try{const e="undefined"!=typeof process&&process.env?process.env.NODE_ENV:void 0;if(e&&oe.includes(e))return e}catch(e){}return"production"};ae(se());let le=!1,fe=!1;const ue=()=>"development"===ie,ce=()=>"test"===ie,de=()=>!0===le,pe=e=>{le=!0===e},ve=()=>!0===fe,ge=e=>{fe=!0===e},ye="color: white; background: #666; font-weight: bold; padding: .25em .5em; border-radius: 3px; border: 1px solid #000",he=e=>Array.isArray(e)?e:[e],be=e=>`%c${e}`,me=(e,t)=>"string"==typeof t&&t.length>0?`${be(e)} | ${t}`:be(e),we=(e,t)=>[me(e,null==t?void 0:t.classifier),`${ye};${(null==t?void 0:t.overwriteStyle)||""}`],ke=e=>ue()||!0===e;class Se{constructor(e){this.label=e}debug(e,t){ke(null==t?void 0:t.forceLog)&&console.debug(...we(this.label,t),...he(e))}info(e,t){ke(null==t?void 0:t.forceLog)&&console.info(...we(this.label,t),...he(e))}trace(e,t){ke(null==t?void 0:t.forceLog)&&console.trace(...we(this.label,t),...he(e))}warn(e,t){ke(null==t?void 0:t.forceLog)&&console.warn(...we(this.label,t),...he(e))}error(e,t){console.error(...we(this.label,t),...he(e))}throw(e,t){if(ke(null==t?void 0:t.forceLog))throw new Error(...we(this.label,t),...he(e))}}const Ee=new Se("KoliBri"),Te=new Set,Me=(e,t)=>{!1===Te.has(e)&&(Te.add(e),Ee.debug([e].concat([]),{classifier:"✋ a11y",forceLog:!1,overwriteStyle:"; background-color: #09f"}))},Ae=new Set,Ne=(e,t)=>{!1===Ae.has(e)&&(Ae.add(e),Ee.warn([e].concat([]),{classifier:"🔥 deprecated",forceLog:!1,overwriteStyle:"; background-color: #f00"}))},Oe=new Set,Le=(e,t)=>{(!1===Oe.has(e)||(null==t?void 0:t.force))&&(Oe.add(e),Ee.debug([e].concat((null==t?void 0:t.details)||[]),{classifier:"💻 dev",forceLog:!!(null==t?void 0:t.force),overwriteStyle:"; background-color: #f09"}))},Ie=(e,t)=>{!1===Oe.has(e)&&(Oe.add(e),Ee.warn([e].concat([]),{classifier:"⚠️ dev",forceLog:!1,overwriteStyle:"; background-color: #f09"}))},Ce=new Set,Re=(e,t=!1,o)=>{!1===Ce.has(e)&&(Ce.add(e),e+=!0===t?" ✅":"",Ee.debug([e].concat([]),{classifier:"🌟 feature",forceLog:!1,overwriteStyle:"; background-color: #309"}))};Le("We appreciate any feedback, comments, screenshots, or demo links of an application based on KoliBri (kolibri@itzbund.de). Thank you!");const $e=new Set,je=(e,t)=>{!1===$e.has(e)&&($e.add(e),Ee.debug([e].concat([]),{classifier:"📑 ui/ux",forceLog:!1,overwriteStyle:"; background-color: #060;"}))},xe=()=>{Me('"Disabled" limits accessibility and visibility. From an accessibility perspective, we recommend using the readonly attribute instead of disabled.\n- https://uxdesign.cc/is-it-ok-to-grey-out-disabled-buttons-8afa74a0fae')},_e=e=>{"string"==typeof e&&""!==e||Me("Some structural elements, such as the nav tag, can be used multiple times on a webpage. To distinguish between similarly named structural elements, it is necessary to set an ARIA label.\n- https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/Navigation_Role#accessibility_concerns")},Fe=(e,t=8)=>{t>7&&je(`[${e}] Within navigation structures, it is recommended to use no more than 7 menu items.\n\nLink:\n- https://en.wikipedia.org/wiki/The_Magical_Number_Seven,_Plus_or_Minus_Two`)};var Ge,Ve,Xe,Ze,He=.2126,Pe=.7152,Ue=.0722,qe=1/12.92;function ze(e){return Math.pow((e+.055)/1.055,2.4)}function Be(e){var t=e[0]/255,o=e[1]/255,n=e[2]/255,r=t<=.03928?t*qe:ze(t),a=o<=.03928?o*qe:ze(o),s=n<=.03928?n*qe:ze(n);return r*He+a*Pe+s*Ue}function Je(e){var t=255;8===(e=e.replace(/^#/,"")).length&&(t=parseInt(e.slice(6,8),16),e=e.substring(0,6)),4===e.length&&(t=parseInt(e.slice(3,4).repeat(2),16),e=e.substring(0,3)),3===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);var o=parseInt(e,16);return[o>>16,o>>8&255,255&o,t]}function Ke(e,t){return(Math.max(e,t)+.05)/(Math.min(e,t)+.05)}function We(e,t){return Ke(Be(e),Be(t))}function De(e,t){return We(Je(e),Je(t))}function Ye(e){return e>=7?"AAA":e>=4.5?"AA":e>=3?"AA Large":"Fail"}function Qe(){return Ve?Ge:(Ve=1,Ge={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]})}function et(){if(Ze)return Xe;Ze=1;var e=Qe();Xe=function(o){var n,r,a=[],s=1;if("string"==typeof o)if(o=o.toLowerCase(),e[o])a=e[o].slice(),r="rgb";else if("transparent"===o)s=0,r="rgb",a=[0,0,0];else if(/^#[A-Fa-f0-9]+$/.test(o)){var i=o.slice(1);s=1,(u=i.length)<=4?(a=[parseInt(i[0]+i[0],16),parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16)],4===u&&(s=parseInt(i[3]+i[3],16)/255)):(a=[parseInt(i[0]+i[1],16),parseInt(i[2]+i[3],16),parseInt(i[4]+i[5],16)],8===u&&(s=parseInt(i[6]+i[7],16)/255)),a[0]||(a[0]=0),a[1]||(a[1]=0),a[2]||(a[2]=0),r="rgb"}else if(n=/^((?:rgb|hs[lvb]|hwb|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms)a?)\s*\(([^\)]*)\)/.exec(o)){var l=n[1],c="rgb"===l;r=i=l.replace(/a$/,"");var u="cmyk"===i?4:"gray"===i?1:3;a=n[2].trim().split(/\s*[,\/]\s*|\s+/).map(function(e,o){if(/%$/.test(e))return o===u?parseFloat(e)/100:"rgb"===i?255*parseFloat(e)/100:parseFloat(e);if("h"===i[o]){if(/deg$/.test(e))return parseFloat(e);if(void 0!==t[e])return t[e]}return parseFloat(e)}),l===i&&a.push(1),s=c||void 0===a[u]?1:a[u],a=a.slice(0,u)}else o.length>10&&/[0-9](?:\s|\/)/.test(o)&&(a=o.match(/([0-9]+)/g).map(function(e){return parseFloat(e)}),r=o.match(/([a-z])/gi).join("").toLowerCase());else isNaN(o)?Array.isArray(o)||o.length?(a=[o[0],o[1],o[2]],r="rgb",s=4===o.length?o[3]:1):o instanceof Object&&(null!=o.r||null!=o.red||null!=o.R?(r="rgb",a=[o.r||o.red||o.R||0,o.g||o.green||o.G||0,o.b||o.blue||o.B||0]):(r="hsl",a=[o.h||o.hue||o.H||0,o.s||o.saturation||o.S||0,o.l||o.lightness||o.L||o.b||o.brightness]),s=o.a||o.alpha||o.opacity||1,null!=o.opacity&&(s/=100)):(r="rgb",a=[o>>>16,(65280&o)>>>8,255&o]);return{space:r,values:a,alpha:s}};var t={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};return Xe}var tt=et(),nt=e(tt);const rt={min:[0,0,0],max:[255,255,255]};var ot={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(e){var t,o,n,r,a,s=e[0]/360,i=e[1]/100,l=e[2]/100,c=0;if(0===i)return[a=255*l,a,a];for(t=2*l-(o=l<.5?l*(1+i):l+i-l*i),r=[0,0,0];c<3;)(n=s+1/3*-(c-1))<0?n++:n>1&&n--,a=6*n<1?t+6*(o-t)*n:2*n<1?o:3*n<2?t+(o-t)*(2/3-n)*6:t,r[c++]=255*a;return r}};rt.hsl=function(e){var t,o,n=e[0]/255,r=e[1]/255,a=e[2]/255,s=Math.min(n,r,a),i=Math.max(n,r,a),l=i-s;return i===s?t=0:n===i?t=(r-a)/l:r===i?t=2+(a-n)/l:a===i&&(t=4+(n-r)/l),(t=Math.min(60*t,360))<0&&(t+=360),o=(s+i)/2,[t,100*(i===s?0:o<=.5?l/(i+s):l/(2-i-s)),100*o]};var at,it={exports:{}};function st(){if(at)return it.exports;function e(e){var o=t(e);return 3==o.length?o.concat(255):(o[3]=Math.round(o[3]),o)}function t(e){return"string"==typeof e?function(e){if("red"==e)return[255,0,0];if("green"==e)return[0,255,0];if("blue"==e)return[0,0,255];if("black"==e)return[0,0,0];if("white"==e)return[255,255,255];if("cyan"==e)return[0,255,255];if("gray"==e)return[128,128,128];if("grey"==e)return[128,128,128];if("magenta"==e)return[255,0,255];if("pink"==e)return[255,0,255];if("yellow"==e)return[255,255,0]}(e=e.toLowerCase())||function(e){var t=e.replace(/^#/,""),o=t.length;if(3==o||4==o){var r=n(t[0]),a=n(t[1]),s=n(t[2]),i=3==o?255:n(t[3]);if(isNaN(r)||isNaN(a)||isNaN(s)||isNaN(i))return;return[r,a,s,i]}}(e)||function(e){var t=e.replace(/^#/,""),o=t.length;if(6==o||8==o){var r=n(t.slice(0,2)),a=n(t.slice(2,4)),s=n(t.slice(4,6)),i=6==o?255:n(t.slice(6,8));if(isNaN(r)||isNaN(a)||isNaN(s)||isNaN(i))return;return[r,a,s,i]}}(e)||function(e){if("rgb("==e.substr(0,4)){var t=(e=e.match(/^rgb\(([^)]+)\)/)[1]).split(/ *, */).map(Number),o=r(t[0],!0),n=r(t[1],!0),a=r(t[2],!0);if(-1!=o&&-1!=n&&-1!=a)return[o,n,a,255]}}(e)||function(e){if("rgba("==e.substr(0,5)){var t=(e=e.match(/^rgba\(([^)]+)\)/)[1]).split(/ *, */).map(Number),o=r(t[0],!0),n=r(t[1],!0),a=r(t[2],!0),s=r(255*t[3]);if(-1!=o&&-1!=n&&-1!=a&&-1!=s)return[o,n,a,s]}}(e)||[0,0,0,255]:function(e){if("[object Object]"===Object.prototype.toString.call(e)&&Object.getPrototypeOf(e)===Object.getPrototypeOf({})){var t=r(null!=e.r?e.r:null!=e.red?e.red:0,!0),o=r(null!=e.g?e.g:null!=e.green?e.green:0,!0),n=r(null!=e.b?e.b:null!=e.blue?e.blue:0,!0),a=r(null!=e.a?e.a:null!=e.alpha?e.alpha:255,!0);if(-1!=t&&-1!=o&&-1!=n&&-1!=a)return[t,o,n,a]}}(e)||function(e){if(Array.isArray(e)&&(3==e.length||4==e.length)){var t=r(e[0],!0),o=r(e[1],!0),n=r(e[2],!0),a=r(null!=e[3]?e[3]:255,!0);if(-1!=t&&-1!=o&&-1!=n&&-1!=a)return[t,o,n,a]}}(e)||function(e){if("number"==typeof e&&Math.floor(e)==e&&e<=4294967295&&e>=0){return[e>>16&255,e>>8&255,255&e,e>>24&255]}}(e)||[0,0,0,255]}function o(e){var t=e.toString(16);return 1==t.length?"0"+t:t}function n(e){return 1==e.length?parseInt(e+e,16):parseInt(e,16)}function r(e,t){return"number"!=typeof e||!0===t&&Math.floor(e)!==e?-1:e>=0&&e<=255?e:-1}return at=1,it.exports=e,it.exports.arr=e,it.exports.obj=function(e){var o=t(e);return{r:o[0],g:o[1],b:o[2],a:3==o.length?255:Math.round(o[3])}},it.exports.css=function(e){var o=t(e);3==o.length&&o.push(255);return 255==o[3]?"rgb("+o[0]+", "+o[1]+", "+o[2]+")":0==o[3]?"rgba("+o[0]+", "+o[1]+", "+o[2]+", 0)":"rgba("+o[0]+", "+o[1]+", "+o[2]+", "+String(o[3]/255).substr(1)+")"},it.exports.hex=function(e){var n=t(e);3==n.length&&n.push(255);var r=255==n[3],a=o(n[0]),s=o(n[1]),i=o(n[2]),l=(n=o(Math.round(n[3])),function(e,t,o,n){var r=["ff","00","11","22","33","44","55","66","77","88","99","aa","bb","cc","dd","ee"];return-1!=r.indexOf(e)&&-1!=r.indexOf(t)&&-1!=r.indexOf(o)&&-1!=r.indexOf(n)}(a,s,i,n));if(r)return l?"#"+a.charAt(0)+s.charAt(0)+i.charAt(0):"#"+a+s+i;return l?"#"+a.charAt(0)+s.charAt(0)+i.charAt(0)+n.charAt(0):"#"+a+s+i+n},it.exports.num=function(e){var o=t(e);3==o.length?o.push(255):o[3]=Math.round(o[3]);return(o[3]<<24>>>0|o[0]<<16|o[1]<<8|o[2])>>>0},it.exports}var lt=st(),ft=e(lt);const ut=/\[object Object\]/,ct=(e,t)=>{"string"==typeof e&&ut.test(e)||t()},dt=(e,t)=>{"string"==typeof e&&""===e||t()},pt=(e,t)=>{de()&&(Ee.debug([e,t]),Ee.debug("↑ We propagate the (submit) event to this target.")),Object.defineProperty(e,"target",{value:t,writable:!1})},vt=e=>{var t,o,n;null===(t=e.nextHooks)||void 0===t||t.forEach((t,o)=>{var n;const r=t.get("beforePatch");"function"==typeof r&&r(null===(n=e.nextState)||void 0===n?void 0:n.get(o),e.nextState,e,o)}),(null===(o=e.nextState)||void 0===o?void 0:o.size)>0&&(e.state=Object.assign(Object.assign({},e.state),Object.fromEntries(e.nextState)),delete e.nextState,null===(n=e.nextHooks)||void 0===n||n.forEach((t,o)=>{const n=t.get("afterPatch");"function"==typeof n&&n(e.state[o],e.state,e,o)})),delete e.nextHooks},gt=(e,t,o,n={})=>{var r,a;void 0===e.nextHooks&&(e.nextHooks=new Map),void 0===e.nextState&&(e.nextState=new Map);e.nextHooks.get(t)instanceof Map==!1&&e.nextHooks.set(t,new Map),"function"==typeof n.afterPatch&&(null===(r=e.nextHooks.get(t))||void 0===r||r.set("afterPatch",n.afterPatch)),"function"==typeof n.beforePatch&&(null===(a=e.nextHooks.get(t))||void 0===a||a.set("beforePatch",n.beforePatch)),e.nextState.set(t,o),vt(e)},yt=(e,t,o,n)=>{Le(`[${e.constructor.name}] The property value: (${o}) for '${t}' is not valid. Allowed values are: ${Array.from(n).join(", ")}`)};function ht(e,t,o,n,r,a={}){o(r)?gt(e,t,r,a.hooks):void 0===r&&!0!==a.required&&o(a.defaultValue)?gt(e,t,a.defaultValue,a.hooks):(a.required||n.add(null),yt(e,t,r,n))}const bt=(e,t,o,n)=>{ht(e,t,e=>"boolean"==typeof e,new Set(["Boolean {true, false}"]),o,n)},mt=(e,t,o,n={})=>{const r="number"==typeof n.minLength?null==n?void 0:n.minLength:0;ht(e,t,e=>"string"==typeof e&&e.length>=r&&(void 0===(null==n?void 0:n.maxLength)||e.length<=n.maxLength),new Set(["String"]),o,n)},wt=(e,t,o,n)=>{ht(e,t,e=>"number"==typeof e&&(void 0===(null==n?void 0:n.min)||"number"==typeof(null==n?void 0:n.min)&&e>=n.min)&&(void 0===(null==n?void 0:n.max)||"number"==typeof(null==n?void 0:n.max)&&e<=n.max),new Set(["Number"]),o,n)},kt=(e,t,o,n,r=e=>e==e,a={})=>{dt(n,()=>{ct(n,()=>{void 0===n&&(n=[]);try{try{n=Tt(n)}catch(e){}if(Array.isArray(n)){const s=n.find(e=>!o(e));void 0===s&&r(n)?gt(e,t,n,a.hooks):ct(s,()=>{throw Ee.debug(s),new Error("↑ The schema for the property (_options) is not valid. The value will not be changed.")})}else ct(n,()=>{throw Ee.debug(n),new Error("↑ The schema for the property (_options) is not valid. The value will not be changed.")})}catch(e){Ee.debug(e)}})})},St=e=>{try{return JSON.stringify(e).replace(/"/g,"'")}catch(t){throw Ee.warn(["stringifyJson",e]),Ee.error("↑ The JSON could not be converted to a string. A stringifiable JSON is expected."),new Error}},Et=/^[{[]/,Tt=e=>{if("string"==typeof e)try{return JSON.parse(e)}catch(t){if(Et.test(e))try{return JSON.parse(e.replace(/'/g,'"'))}catch(t){Ee.warn(["parseJson",e]),Ee.error("↑ The JSON string could not be parsed. Make sure that single quotes in the text are escaped (&#8216;).")}}throw new Error},Mt=e=>"boolean"==typeof e?!0===e?"true":"false":void 0,At=e=>"string"==typeof e?e:Mt(e),Nt=(e,t)=>{const o=new Set,n=[t];let r=0;for(;r<n.length;){const t=n[r++];if(o.has(t))continue;if(o.add(t),t instanceof Element&&t.matches(e))return t;const a=Array.from(t.children||[]);for(let e=0;e<a.length;e++)n.push(a[e]);if(t instanceof HTMLElement&&t.shadowRoot&&n.push(t.shadowRoot),t instanceof HTMLSlotElement){const e=t.assignedNodes({flatten:!0});for(let t=0;t<e.length;t++)e[t]instanceof Element&&n.push(e[t])}}return null},Ot=(e,t)=>{const o=new Set,n=[],r=new Set,a=[t];let s=0;for(;s<a.length;){const t=a[s++];if(o.has(t))continue;o.add(t),t instanceof Element&&t.matches(e)&&!r.has(t)&&(n.push(t),r.add(t));const i=Array.from(t.children||[]);for(let e=0;e<i.length;e++)a.push(i[e]);if(t instanceof HTMLElement&&t.shadowRoot&&a.push(t.shadowRoot),t instanceof HTMLSlotElement){const e=t.assignedNodes({flatten:!0});for(let t=0;t<e.length;t++)e[t]instanceof Element&&a.push(e[t])}}return n},Lt=(e,t)=>Nt(e,t||re()),It=(e,t)=>Ot(e,t||re());let Ct=null;const Rt=()=>(Ct=Ct||{backgroundColor:"#00000000",color:"#00000000",domNode:re().body,level:"Fail",score:1},Ct),$t=/(\d+, ){3}0\)/,jt=(e,t=Rt())=>{const o=getComputedStyle(e),n=$t.test(o.backgroundColor)?t.backgroundColor:ft.hex(o.backgroundColor),r=$t.test(o.color)?t.color:ft.hex(o.color),a=De(n,r),s={backgroundColor:n,color:r,domNode:e,level:Ye(a),score:a};return a<4.5&&Ee.error(["Color-Contrast-Error",{backgroundColor:s.backgroundColor,color:s.color,level:s.level,score:s.score},s.domNode]),s},xt=(e,t=Rt())=>{t.domNode instanceof HTMLElement&&(t=jt(t.domNode,t));const o=t.domNode.querySelector(e);if(null===o){const o=t.domNode.querySelectorAll('[class="hydrated"]');for(let n=0;n<o.length&&(t.domNode=o[n],null===(t=xt(e,t)).domNode);n++);return t}return jt(o,t)};class _t{static queryHtmlElementColors(e,t,o=!1,n=!0){let r=null;if(!0===o||!1===_t.executionLock)if(!1===o&&(_t.cache.clear(),_t.cache.set(t.domNode,t),_t.executionLock=!0,!0===n&&Ee.debug("[KoliBriUtils] Color contrast analysis started...")),e===t.domNode)r=t;else{const o=new Set;if(t.domNode.shadowRoot){const e=t.domNode.shadowRoot.children;for(let t=0;t<e.length;t++)o.add(e[t])}const n=t.domNode;if("function"==typeof n.assignedNodes){const e=n.assignedNodes();for(let t=0;t<e.length;t++)e[t]instanceof HTMLElement&&o.add(e[t])}const a=t.domNode.children;for(let e=0;e<a.length;e++)o.add(a[e]);const s=Array.from(o);for(let o=0;o<s.length;o++){let n=_t.cache.get(s[o]);void 0===n&&(n=jt(s[o],t)),_t.cache.set(s[o],n);const a=_t.queryHtmlElementColors(e,n,!0,!1);if(null!==a){r=a;break}}}else Ee.debug("[KoliBriUtils] Call aborted because a color contrast analysis is currently being executed.");return!1===o&&(!0===n&&Ee.debug(`[KoliBriUtils] Color contrast analysis finished (${_t.cache.size} DOM elements are analysed).`),_t.executionLock=!1,_t.cache.clear()),r}}_t.executionLock=!1,_t.cache=new Map;class Ft{}Ft.getCssStyle=F,Ft.patchTheme=m,Ft.patchThemeTag=h,Ft.querySelector=Lt,Ft.querySelectorAll=It,Ft.stringifyJson=St;const Ht=e=>"object"==typeof e&&null!==e,Pt=(e,t=0)=>"string"==typeof e&&e.length>=t,Ut=e=>{if("object"!=typeof e||null===e)return Pt(e,1);for(const t in e)if(!1===Pt(t,1))return!1;return!0},qt=new Event("StateChange");export{ve as $,ot as A,rt as B,ft as C,De as D,Ut as E,Ht as F,kt as G,Fe as H,de as I,pt as J,ee as K,Ee as L,wt as M,Ie as N,dt as O,Lt as P,At as Q,Mt as R,qt as S,te as T,ue as U,L as V,jt as W,It as X,xt as Y,_t as Z,St as _,Ft as a,M as b,_e as c,bt as d,mt as e,Re as f,Pt as g,Ne as h,Z as i,Le as j,ae as k,e as l,Me as m,X as n,ct as o,Tt as p,xe as q,re as r,gt as s,pe as t,je as u,ge as v,ht as w,ne as x,ce as y,nt as z};