@public-ui/components 4.0.0-alpha.1 → 4.0.0-alpha.11

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 (1262) hide show
  1. package/README.md +1 -1
  2. package/assets/kolicons/kolicons.eot +0 -0
  3. package/assets/kolicons/kolicons.json +27 -0
  4. package/assets/kolicons/kolicons.svg +87 -0
  5. package/assets/kolicons/kolicons.ttf +0 -0
  6. package/assets/kolicons/kolicons.woff +0 -0
  7. package/assets/kolicons/kolicons.woff2 +0 -0
  8. package/assets/kolicons/style.css +44 -0
  9. package/custom-elements.json +330 -324
  10. package/dist/cjs/Alert-BkYuUM0L.js +4 -0
  11. package/dist/cjs/Alert-BkYuUM0L.js.map +1 -0
  12. package/dist/cjs/Collapsible-ov83UGvt.js +4 -0
  13. package/dist/cjs/Collapsible-ov83UGvt.js.map +1 -0
  14. package/dist/cjs/CustomSuggestionsOptionsGroup-Cct2j3Ly.js +4 -0
  15. package/dist/cjs/CustomSuggestionsOptionsGroup-Cct2j3Ly.js.map +1 -0
  16. package/dist/cjs/FieldControlStateWrapper-qGeLw0Jk.js +4 -0
  17. package/dist/cjs/FieldControlStateWrapper-qGeLw0Jk.js.map +1 -0
  18. package/dist/cjs/FormFieldStateWrapper-gMVtcnVF.js +4 -0
  19. package/dist/cjs/FormFieldStateWrapper-gMVtcnVF.js.map +1 -0
  20. package/dist/cjs/{Heading-DJ48CpuI.js → Heading-B_MWU4Kt.js} +1 -1
  21. package/dist/cjs/{Heading-DJ48CpuI.js.map → Heading-B_MWU4Kt.js.map} +1 -1
  22. package/dist/cjs/Icon-BX_UYAFs.js +4 -0
  23. package/dist/cjs/{Icon-D6G0_09j.js.map → Icon-BX_UYAFs.js.map} +1 -1
  24. package/dist/cjs/Input-LonZbQyt.js +4 -0
  25. package/dist/cjs/Input-LonZbQyt.js.map +1 -0
  26. package/dist/cjs/{InputStateWrapper-BBi90S8D.js → InputStateWrapper-CKySI0o9.js} +1 -1
  27. package/dist/cjs/{InputStateWrapper-BBi90S8D.js.map → InputStateWrapper-CKySI0o9.js.map} +1 -1
  28. package/dist/cjs/{InternalUnderlinedBadgeText-D0tClEJo.js → InternalUnderlinedBadgeText-COqZWbZO.js} +1 -1
  29. package/dist/cjs/{InternalUnderlinedBadgeText-D0tClEJo.js.map → InternalUnderlinedBadgeText-COqZWbZO.js.map} +1 -1
  30. package/dist/cjs/{Span-BZT0Xgoj.js → Span-C9EnwcGL.js} +1 -1
  31. package/dist/cjs/{Span-BZT0Xgoj.js.map → Span-C9EnwcGL.js.map} +1 -1
  32. package/dist/cjs/access-and-short-key-BExF929g.js.map +1 -1
  33. package/dist/cjs/{app-globals-CprMO-cF.js → app-globals-kNX8JN_9.js} +1 -1
  34. package/dist/cjs/{app-globals-CprMO-cF.js.map → app-globals-kNX8JN_9.js.map} +1 -1
  35. package/dist/cjs/{associated.controller-Dpp0zVIP.js → associated.controller-xFFmYxjC.js} +1 -1
  36. package/dist/cjs/{associated.controller-Dpp0zVIP.js.map → associated.controller-xFFmYxjC.js.map} +1 -1
  37. package/dist/cjs/bem-BVClcAVJ.js.map +1 -1
  38. package/dist/cjs/bem-Bu0VYjZa.js.map +1 -1
  39. package/dist/cjs/{bootstrap-B3uKTmEF.js → bootstrap-PMd882_s.js} +1 -1
  40. package/dist/cjs/{bootstrap-B3uKTmEF.js.map → bootstrap-PMd882_s.js.map} +1 -1
  41. package/dist/cjs/{link-variant-gYtaoJ43.js → button-variant-Dc6H5OWB.js} +1 -1
  42. package/dist/cjs/button-variant-Dc6H5OWB.js.map +1 -0
  43. package/dist/cjs/color-D7OxzTlF.js.map +1 -1
  44. package/dist/cjs/component-names-CuI-0Pbo.js +4 -0
  45. package/dist/cjs/component-names-CuI-0Pbo.js.map +1 -0
  46. package/dist/cjs/{controller-CygpdBUj.js → controller-CnLyTfET.js} +1 -1
  47. package/dist/cjs/{controller-CygpdBUj.js.map → controller-CnLyTfET.js.map} +1 -1
  48. package/dist/cjs/{controller-C36y36pM.js → controller-CqC_JEAS.js} +1 -1
  49. package/dist/cjs/{controller-C36y36pM.js.map → controller-CqC_JEAS.js.map} +1 -1
  50. package/dist/cjs/{controller-BF3IbQCZ.js → controller-Q-LXBPh4.js} +1 -1
  51. package/dist/cjs/controller-Q-LXBPh4.js.map +1 -0
  52. package/dist/cjs/{controller-BY1lNpWb.js → controller-gAS9vmUZ.js} +1 -1
  53. package/dist/cjs/controller-gAS9vmUZ.js.map +1 -0
  54. package/dist/cjs/controller-icon-s1UvJJoF.js +4 -0
  55. package/dist/cjs/controller-icon-s1UvJJoF.js.map +1 -0
  56. package/dist/cjs/{dev.utils-BMH6oSjV.js → dev.utils-mNp047WX.js} +1 -1
  57. package/dist/cjs/{dev.utils-BMH6oSjV.js.map → dev.utils-mNp047WX.js.map} +1 -1
  58. package/dist/cjs/{devtools-BI89G7wy.js → devtools-DwosJK2s.js} +1 -1
  59. package/dist/cjs/{devtools-BI89G7wy.js.map → devtools-DwosJK2s.js.map} +1 -1
  60. package/dist/cjs/{events-DDhO-Ns8.js → events-cX8h6I3p.js} +1 -1
  61. package/dist/cjs/events-cX8h6I3p.js.map +1 -0
  62. package/dist/cjs/i18n-DO0ARe7Z.js +4 -0
  63. package/dist/cjs/{i18n-NiDr3RbD.js.map → i18n-DO0ARe7Z.js.map} +1 -1
  64. package/dist/cjs/i18n-yHKQt1gl.js +4 -0
  65. package/dist/cjs/i18n-yHKQt1gl.js.map +1 -0
  66. package/dist/cjs/{icons-CvKgcv20.js → icons-D_PtPRwb.js} +1 -1
  67. package/dist/cjs/{icons-CvKgcv20.js.map → icons-D_PtPRwb.js.map} +1 -1
  68. package/dist/cjs/index-BcsJJPV6.js +4 -0
  69. package/dist/cjs/index-BcsJJPV6.js.map +1 -0
  70. package/dist/cjs/index.cjs.js +1 -1
  71. package/dist/cjs/index.cjs.js.map +1 -1
  72. package/dist/cjs/inline-CGvu_CRs.js +4 -0
  73. package/dist/cjs/inline-CGvu_CRs.js.map +1 -0
  74. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  75. package/dist/cjs/kol-abbr.entry.cjs.js.map +1 -1
  76. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  77. package/dist/cjs/kol-accordion.entry.cjs.js.map +1 -1
  78. package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
  79. package/dist/cjs/kol-alert-wc.entry.cjs.js.map +1 -1
  80. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  81. package/dist/cjs/kol-alert.entry.cjs.js.map +1 -1
  82. package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
  83. package/dist/cjs/kol-avatar-wc.entry.cjs.js.map +1 -1
  84. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  85. package/dist/cjs/kol-avatar.entry.cjs.js.map +1 -1
  86. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  87. package/dist/cjs/kol-badge.entry.cjs.js.map +1 -1
  88. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  89. package/dist/cjs/kol-breadcrumb.entry.cjs.js.map +1 -1
  90. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  91. package/dist/cjs/kol-button-link.entry.cjs.js.map +1 -1
  92. package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
  93. package/dist/cjs/kol-button-wc.entry.cjs.js.map +1 -1
  94. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  95. package/dist/cjs/kol-button.entry.cjs.js.map +1 -1
  96. package/dist/cjs/kol-card-wc.cjs.entry.js +1 -1
  97. package/dist/cjs/kol-card-wc.entry.cjs.js.map +1 -1
  98. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  99. package/dist/cjs/kol-card.entry.cjs.js.map +1 -1
  100. package/dist/cjs/kol-combobox.cjs.entry.js +1 -1
  101. package/dist/cjs/kol-combobox.entry.cjs.js.map +1 -1
  102. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  103. package/dist/cjs/kol-details.entry.cjs.js.map +1 -1
  104. package/dist/cjs/kol-drawer.cjs.entry.js +1 -1
  105. package/dist/cjs/kol-drawer.entry.cjs.js.map +1 -1
  106. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  107. package/dist/cjs/kol-form.entry.cjs.js.map +1 -1
  108. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  109. package/dist/cjs/kol-heading.entry.cjs.js.map +1 -1
  110. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  111. package/dist/cjs/kol-icon.entry.cjs.js.map +1 -1
  112. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  113. package/dist/cjs/kol-image.entry.cjs.js.map +1 -1
  114. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  115. package/dist/cjs/kol-input-checkbox.entry.cjs.js.map +1 -1
  116. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  117. package/dist/cjs/kol-input-color.entry.cjs.js.map +1 -1
  118. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  119. package/dist/cjs/kol-input-date.entry.cjs.js.map +1 -1
  120. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  121. package/dist/cjs/kol-input-email.entry.cjs.js.map +1 -1
  122. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  123. package/dist/cjs/kol-input-file.entry.cjs.js.map +1 -1
  124. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  125. package/dist/cjs/kol-input-number.entry.cjs.js.map +1 -1
  126. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  127. package/dist/cjs/kol-input-password.entry.cjs.js.map +1 -1
  128. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  129. package/dist/cjs/kol-input-radio.entry.cjs.js.map +1 -1
  130. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  131. package/dist/cjs/kol-input-range.entry.cjs.js.map +1 -1
  132. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  133. package/dist/cjs/kol-input-text.entry.cjs.js.map +1 -1
  134. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  135. package/dist/cjs/kol-kolibri.entry.cjs.js.map +1 -1
  136. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  137. package/dist/cjs/kol-link-button.entry.cjs.js.map +1 -1
  138. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  139. package/dist/cjs/kol-link-wc.entry.cjs.js.map +1 -1
  140. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  141. package/dist/cjs/kol-link.entry.cjs.js.map +1 -1
  142. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  143. package/dist/cjs/kol-modal.entry.cjs.js.map +1 -1
  144. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  145. package/dist/cjs/kol-nav.entry.cjs.js.map +1 -1
  146. package/dist/cjs/kol-pagination-wc.cjs.entry.js +1 -1
  147. package/dist/cjs/kol-pagination-wc.entry.cjs.js.map +1 -1
  148. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  149. package/dist/cjs/kol-pagination.entry.cjs.js.map +1 -1
  150. package/dist/cjs/kol-popover-button-wc.cjs.entry.js +1 -1
  151. package/dist/cjs/kol-popover-button-wc.entry.cjs.js.map +1 -1
  152. package/dist/cjs/kol-popover-button.cjs.entry.js +1 -1
  153. package/dist/cjs/kol-popover-button.entry.cjs.js.map +1 -1
  154. package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
  155. package/dist/cjs/kol-popover-wc.entry.cjs.js.map +1 -1
  156. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  157. package/dist/cjs/kol-progress.entry.cjs.js.map +1 -1
  158. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  159. package/dist/cjs/kol-quote.entry.cjs.js.map +1 -1
  160. package/dist/cjs/kol-select-wc.cjs.entry.js +4 -0
  161. package/dist/cjs/kol-select-wc.entry.cjs.js.map +1 -0
  162. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  163. package/dist/cjs/kol-select.entry.cjs.js.map +1 -1
  164. package/dist/cjs/kol-single-select.cjs.entry.js +1 -1
  165. package/dist/cjs/kol-single-select.entry.cjs.js.map +1 -1
  166. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  167. package/dist/cjs/kol-skip-nav.entry.cjs.js.map +1 -1
  168. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  169. package/dist/cjs/kol-spin.entry.cjs.js.map +1 -1
  170. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  171. package/dist/cjs/kol-split-button.entry.cjs.js.map +1 -1
  172. package/dist/cjs/kol-table-settings-wc.cjs.entry.js +1 -1
  173. package/dist/cjs/kol-table-settings-wc.entry.cjs.js.map +1 -1
  174. package/dist/cjs/kol-table-stateful.cjs.entry.js +1 -1
  175. package/dist/cjs/kol-table-stateful.entry.cjs.js.map +1 -1
  176. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +1 -1
  177. package/dist/cjs/kol-table-stateless-wc.entry.cjs.js.map +1 -1
  178. package/dist/cjs/kol-table-stateless.cjs.entry.js +1 -1
  179. package/dist/cjs/kol-table-stateless.entry.cjs.js.map +1 -1
  180. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  181. package/dist/cjs/kol-tabs.entry.cjs.js.map +1 -1
  182. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  183. package/dist/cjs/kol-textarea.entry.cjs.js.map +1 -1
  184. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  185. package/dist/cjs/kol-toast-container.entry.cjs.js.map +1 -1
  186. package/dist/cjs/kol-toolbar.cjs.entry.js +1 -1
  187. package/dist/cjs/kol-toolbar.entry.cjs.js.map +1 -1
  188. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
  189. package/dist/cjs/kol-tooltip-wc.entry.cjs.js.map +1 -1
  190. package/dist/cjs/kol-tree-item-wc.cjs.entry.js +1 -1
  191. package/dist/cjs/kol-tree-item-wc.entry.cjs.js.map +1 -1
  192. package/dist/cjs/kol-tree-item.cjs.entry.js +1 -1
  193. package/dist/cjs/kol-tree-item.entry.cjs.js.map +1 -1
  194. package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
  195. package/dist/cjs/kol-tree-wc.entry.cjs.js.map +1 -1
  196. package/dist/cjs/kol-tree.cjs.entry.js +1 -1
  197. package/dist/cjs/kol-tree.entry.cjs.js.map +1 -1
  198. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  199. package/dist/cjs/kol-version.entry.cjs.js.map +1 -1
  200. package/dist/cjs/kolibri.cjs.js +1 -1
  201. package/dist/cjs/kolibri.cjs.js.map +1 -1
  202. package/dist/cjs/loader.cjs.js +1 -1
  203. package/dist/cjs/multiple-DRhU5nKU.js.map +1 -1
  204. package/dist/cjs/rows-BUvz5j5U.js.map +1 -1
  205. package/dist/cjs/table-settings-Ct3SRuhX.js.map +1 -1
  206. package/dist/cjs/test-component.cjs.entry.js +1 -1
  207. package/dist/components/Alert.js +1 -1
  208. package/dist/components/Alert.js.map +1 -1
  209. package/dist/components/Collapsible.js +1 -1
  210. package/dist/components/Collapsible.js.map +1 -1
  211. package/dist/components/CustomSuggestionsOptionsGroup.js +4 -0
  212. package/dist/components/CustomSuggestionsOptionsGroup.js.map +1 -0
  213. package/dist/components/FieldControlStateWrapper.js +1 -1
  214. package/dist/components/FieldControlStateWrapper.js.map +1 -1
  215. package/dist/components/Heading.js.map +1 -1
  216. package/dist/components/Input.js +1 -1
  217. package/dist/components/Input.js.map +1 -1
  218. package/dist/components/InputStateWrapper.js.map +1 -1
  219. package/dist/components/Span.js.map +1 -1
  220. package/dist/components/access-and-short-key.js.map +1 -1
  221. package/dist/components/bem.js +1 -1
  222. package/dist/components/bem.js.map +1 -1
  223. package/dist/components/bem2.js +1 -1
  224. package/dist/components/bem2.js.map +1 -1
  225. package/dist/components/button-variant.js +4 -0
  226. package/dist/components/button-variant.js.map +1 -0
  227. package/dist/components/color.js.map +1 -1
  228. package/dist/components/component-names.js +1 -1
  229. package/dist/components/component-names.js.map +1 -1
  230. package/dist/components/controller-icon.js +1 -1
  231. package/dist/components/controller-icon.js.map +1 -1
  232. package/dist/components/controller.js +1 -1
  233. package/dist/components/controller.js.map +1 -1
  234. package/dist/components/controller2.js +1 -1
  235. package/dist/components/controller2.js.map +1 -1
  236. package/dist/components/controller3.js +1 -1
  237. package/dist/components/controller3.js.map +1 -1
  238. package/dist/components/controller5.js.map +1 -1
  239. package/dist/components/dev.utils.js.map +1 -1
  240. package/dist/components/devtools.js.map +1 -1
  241. package/dist/components/events.js +1 -1
  242. package/dist/components/events.js.map +1 -1
  243. package/dist/components/i18n2.js +1 -1
  244. package/dist/components/i18n2.js.map +1 -1
  245. package/dist/components/icons.js +1 -1
  246. package/dist/components/icons.js.map +1 -1
  247. package/dist/components/index.js +1 -1
  248. package/dist/components/index.js.map +1 -1
  249. package/dist/components/inline.js +4 -0
  250. package/dist/components/inline.js.map +1 -0
  251. package/dist/components/kol-abbr.js +1 -1
  252. package/dist/components/kol-abbr.js.map +1 -1
  253. package/dist/components/kol-accordion.js +1 -1
  254. package/dist/components/kol-accordion.js.map +1 -1
  255. package/dist/components/kol-alert-wc.js +1 -1
  256. package/dist/components/kol-alert-wc.js.map +1 -1
  257. package/dist/components/kol-alert.js +1 -1
  258. package/dist/components/kol-alert.js.map +1 -1
  259. package/dist/components/kol-avatar-wc.js +1 -1
  260. package/dist/components/kol-avatar-wc.js.map +1 -1
  261. package/dist/components/kol-avatar.js +1 -1
  262. package/dist/components/kol-avatar.js.map +1 -1
  263. package/dist/components/kol-badge.js +1 -1
  264. package/dist/components/kol-badge.js.map +1 -1
  265. package/dist/components/kol-breadcrumb.js +1 -1
  266. package/dist/components/kol-breadcrumb.js.map +1 -1
  267. package/dist/components/kol-button-link.js +1 -1
  268. package/dist/components/kol-button-link.js.map +1 -1
  269. package/dist/components/kol-button-wc.js +1 -1
  270. package/dist/components/kol-button-wc.js.map +1 -1
  271. package/dist/components/kol-button.js +1 -1
  272. package/dist/components/kol-button.js.map +1 -1
  273. package/dist/components/kol-card-wc.js +1 -1
  274. package/dist/components/kol-card-wc.js.map +1 -1
  275. package/dist/components/kol-card.js +1 -1
  276. package/dist/components/kol-card.js.map +1 -1
  277. package/dist/components/kol-combobox.js +1 -1
  278. package/dist/components/kol-combobox.js.map +1 -1
  279. package/dist/components/kol-details.js +1 -1
  280. package/dist/components/kol-details.js.map +1 -1
  281. package/dist/components/kol-drawer.js +1 -1
  282. package/dist/components/kol-drawer.js.map +1 -1
  283. package/dist/components/kol-form.js +1 -1
  284. package/dist/components/kol-form.js.map +1 -1
  285. package/dist/components/kol-heading.js +1 -1
  286. package/dist/components/kol-heading.js.map +1 -1
  287. package/dist/components/kol-icon.js +1 -1
  288. package/dist/components/kol-icon.js.map +1 -1
  289. package/dist/components/kol-image.js +1 -1
  290. package/dist/components/kol-image.js.map +1 -1
  291. package/dist/components/kol-input-checkbox.js +1 -1
  292. package/dist/components/kol-input-checkbox.js.map +1 -1
  293. package/dist/components/kol-input-color.js +1 -1
  294. package/dist/components/kol-input-color.js.map +1 -1
  295. package/dist/components/kol-input-date.js +1 -1
  296. package/dist/components/kol-input-date.js.map +1 -1
  297. package/dist/components/kol-input-email.js +1 -1
  298. package/dist/components/kol-input-email.js.map +1 -1
  299. package/dist/components/kol-input-file.js +1 -1
  300. package/dist/components/kol-input-file.js.map +1 -1
  301. package/dist/components/kol-input-number.js +1 -1
  302. package/dist/components/kol-input-number.js.map +1 -1
  303. package/dist/components/kol-input-password.js +1 -1
  304. package/dist/components/kol-input-password.js.map +1 -1
  305. package/dist/components/kol-input-radio.js +1 -1
  306. package/dist/components/kol-input-radio.js.map +1 -1
  307. package/dist/components/kol-input-range.js +1 -1
  308. package/dist/components/kol-input-range.js.map +1 -1
  309. package/dist/components/kol-input-text.js +1 -1
  310. package/dist/components/kol-input-text.js.map +1 -1
  311. package/dist/components/kol-kolibri.js +1 -1
  312. package/dist/components/kol-kolibri.js.map +1 -1
  313. package/dist/components/kol-link-button.js +1 -1
  314. package/dist/components/kol-link-button.js.map +1 -1
  315. package/dist/components/kol-link-wc.js +1 -1
  316. package/dist/components/kol-link-wc.js.map +1 -1
  317. package/dist/components/kol-link.js +1 -1
  318. package/dist/components/kol-link.js.map +1 -1
  319. package/dist/components/kol-modal.js +1 -1
  320. package/dist/components/kol-modal.js.map +1 -1
  321. package/dist/components/kol-nav.js +1 -1
  322. package/dist/components/kol-nav.js.map +1 -1
  323. package/dist/components/kol-pagination-wc.js +1 -1
  324. package/dist/components/kol-pagination-wc.js.map +1 -1
  325. package/dist/components/kol-pagination.js +1 -1
  326. package/dist/components/kol-pagination.js.map +1 -1
  327. package/dist/components/kol-popover-button-wc.js +1 -1
  328. package/dist/components/kol-popover-button-wc.js.map +1 -1
  329. package/dist/components/kol-popover-button.js +1 -1
  330. package/dist/components/kol-popover-button.js.map +1 -1
  331. package/dist/components/kol-popover-wc.js +1 -1
  332. package/dist/components/kol-popover-wc.js.map +1 -1
  333. package/dist/components/kol-progress.js +1 -1
  334. package/dist/components/kol-progress.js.map +1 -1
  335. package/dist/components/kol-quote.js +1 -1
  336. package/dist/components/kol-quote.js.map +1 -1
  337. package/dist/components/kol-select-wc.d.ts +11 -0
  338. package/dist/components/kol-select-wc.js +4 -0
  339. package/dist/components/kol-select-wc.js.map +1 -0
  340. package/dist/components/kol-select.js +1 -1
  341. package/dist/components/kol-select.js.map +1 -1
  342. package/dist/components/kol-single-select.js +1 -1
  343. package/dist/components/kol-single-select.js.map +1 -1
  344. package/dist/components/kol-skip-nav.js +1 -1
  345. package/dist/components/kol-skip-nav.js.map +1 -1
  346. package/dist/components/kol-spin.js +1 -1
  347. package/dist/components/kol-spin.js.map +1 -1
  348. package/dist/components/kol-split-button.js +1 -1
  349. package/dist/components/kol-split-button.js.map +1 -1
  350. package/dist/components/kol-table-settings-wc.js +1 -1
  351. package/dist/components/kol-table-settings-wc.js.map +1 -1
  352. package/dist/components/kol-table-stateful.js +1 -1
  353. package/dist/components/kol-table-stateful.js.map +1 -1
  354. package/dist/components/kol-table-stateless-wc.js +1 -1
  355. package/dist/components/kol-table-stateless-wc.js.map +1 -1
  356. package/dist/components/kol-table-stateless.js +1 -1
  357. package/dist/components/kol-table-stateless.js.map +1 -1
  358. package/dist/components/kol-tabs.js +1 -1
  359. package/dist/components/kol-tabs.js.map +1 -1
  360. package/dist/components/kol-textarea.js +1 -1
  361. package/dist/components/kol-textarea.js.map +1 -1
  362. package/dist/components/kol-toast-container.js +1 -1
  363. package/dist/components/kol-toast-container.js.map +1 -1
  364. package/dist/components/kol-toolbar.js +1 -1
  365. package/dist/components/kol-toolbar.js.map +1 -1
  366. package/dist/components/kol-tooltip-wc.js +1 -1
  367. package/dist/components/kol-tooltip-wc.js.map +1 -1
  368. package/dist/components/kol-tree-item-wc.js +1 -1
  369. package/dist/components/kol-tree-item-wc.js.map +1 -1
  370. package/dist/components/kol-tree-item.js +1 -1
  371. package/dist/components/kol-tree-item.js.map +1 -1
  372. package/dist/components/kol-tree-wc.js +1 -1
  373. package/dist/components/kol-tree-wc.js.map +1 -1
  374. package/dist/components/kol-tree.js +1 -1
  375. package/dist/components/kol-tree.js.map +1 -1
  376. package/dist/components/kol-version.js +1 -1
  377. package/dist/components/kol-version.js.map +1 -1
  378. package/dist/components/multiple.js.map +1 -1
  379. package/dist/components/rows.js.map +1 -1
  380. package/dist/components/table-settings.js.map +1 -1
  381. package/dist/esm/Alert-DIA2xA9y.js +4 -0
  382. package/dist/esm/Alert-DIA2xA9y.js.map +1 -0
  383. package/dist/esm/Collapsible-XJeVw5Bg.js +4 -0
  384. package/dist/esm/Collapsible-XJeVw5Bg.js.map +1 -0
  385. package/dist/esm/CustomSuggestionsOptionsGroup-B8Ar_Lf3.js +4 -0
  386. package/dist/esm/CustomSuggestionsOptionsGroup-B8Ar_Lf3.js.map +1 -0
  387. package/dist/esm/FieldControlStateWrapper-Pxc6eGXA.js +4 -0
  388. package/dist/esm/FieldControlStateWrapper-Pxc6eGXA.js.map +1 -0
  389. package/dist/esm/FormFieldStateWrapper-LHV3Rpm4.js +4 -0
  390. package/dist/esm/FormFieldStateWrapper-LHV3Rpm4.js.map +1 -0
  391. package/dist/esm/{Heading-KhwFHPZb.js → Heading-B2GrYJQS.js} +1 -1
  392. package/dist/esm/{Heading-KhwFHPZb.js.map → Heading-B2GrYJQS.js.map} +1 -1
  393. package/dist/esm/Icon-Cx4bRen6.js +4 -0
  394. package/dist/esm/{Icon-BsRmEtCa.js.map → Icon-Cx4bRen6.js.map} +1 -1
  395. package/dist/esm/Input-DgvlKYaQ.js +4 -0
  396. package/dist/esm/Input-DgvlKYaQ.js.map +1 -0
  397. package/dist/esm/{InputStateWrapper-GJbSTDc8.js → InputStateWrapper-febP2jPy.js} +1 -1
  398. package/dist/esm/{InputStateWrapper-GJbSTDc8.js.map → InputStateWrapper-febP2jPy.js.map} +1 -1
  399. package/dist/esm/InternalUnderlinedBadgeText-B2Mp6LvR.js +4 -0
  400. package/dist/esm/{InternalUnderlinedBadgeText-BnPUgbKl.js.map → InternalUnderlinedBadgeText-B2Mp6LvR.js.map} +1 -1
  401. package/dist/esm/{Span-5ZR0JDnP.js → Span-C6xaM2ei.js} +1 -1
  402. package/dist/{kolibri/Span-5ZR0JDnP.js.map → esm/Span-C6xaM2ei.js.map} +1 -1
  403. package/dist/esm/{access-and-short-key-bcID78Ha.js → access-and-short-key-Dy2a7Py3.js} +1 -1
  404. package/dist/esm/access-and-short-key-Dy2a7Py3.js.map +1 -0
  405. package/dist/esm/{align-CyK0wp7d.js → align-Bcqvz5vw.js} +1 -1
  406. package/dist/esm/{align-CyK0wp7d.js.map → align-Bcqvz5vw.js.map} +1 -1
  407. package/dist/esm/{align-floating-elements-Bx4ukVlr.js → align-floating-elements-DUQRrio7.js} +1 -1
  408. package/dist/{kolibri/align-floating-elements-Bx4ukVlr.js.map → esm/align-floating-elements-DUQRrio7.js.map} +1 -1
  409. package/dist/esm/{app-globals-COkPg4hl.js → app-globals-ekKWD6Td.js} +1 -1
  410. package/dist/esm/{app-globals-COkPg4hl.js.map → app-globals-ekKWD6Td.js.map} +1 -1
  411. package/dist/esm/{associated.controller-BKIODHIT.js → associated.controller-BStrZiDY.js} +1 -1
  412. package/dist/esm/{associated.controller-BKIODHIT.js.map → associated.controller-BStrZiDY.js.map} +1 -1
  413. package/dist/esm/{auto-complete-BsG3RQJ3.js → auto-complete-h9OoHuC5.js} +1 -1
  414. package/dist/esm/{auto-complete-BsG3RQJ3.js.map → auto-complete-h9OoHuC5.js.map} +1 -1
  415. package/dist/esm/{bem-BiknXNcP.js → bem-B2ILLet6.js} +1 -1
  416. package/dist/esm/{bem-BiknXNcP.js.map → bem-B2ILLet6.js.map} +1 -1
  417. package/dist/esm/{bem-CHTjklyp.js → bem-CIn1qsbp.js} +1 -1
  418. package/dist/esm/{bem-CHTjklyp.js.map → bem-CIn1qsbp.js.map} +1 -1
  419. package/dist/esm/{bootstrap-BiRnv4fV.js → bootstrap-BsrX_E7q.js} +1 -1
  420. package/dist/esm/{bootstrap-BiRnv4fV.js.map → bootstrap-BsrX_E7q.js.map} +1 -1
  421. package/dist/esm/{browser-Ba2Wl_kh.js → browser-CyCtPZc0.js} +1 -1
  422. package/dist/esm/{browser-Ba2Wl_kh.js.map → browser-CyCtPZc0.js.map} +1 -1
  423. package/dist/esm/button-variant-ueS50zGR.js +4 -0
  424. package/dist/esm/button-variant-ueS50zGR.js.map +1 -0
  425. package/dist/esm/{color-C3pYZKV3.js → color-DLhBoaj-.js} +1 -1
  426. package/dist/esm/color-DLhBoaj-.js.map +1 -0
  427. package/dist/esm/{common-8fBdMvJM.js → common-L1K0yh1S.js} +1 -1
  428. package/dist/{kolibri/common-8fBdMvJM.js.map → esm/common-L1K0yh1S.js.map} +1 -1
  429. package/dist/esm/component-names-C3fyby67.js +4 -0
  430. package/dist/esm/component-names-C3fyby67.js.map +1 -0
  431. package/dist/esm/{controller-CV2y9Ae_.js → controller-DJOhQXnE.js} +1 -1
  432. package/dist/esm/controller-DJOhQXnE.js.map +1 -0
  433. package/dist/esm/{controller-HR9pimff.js → controller-DugjUu5j.js} +1 -1
  434. package/dist/esm/{controller-HR9pimff.js.map → controller-DugjUu5j.js.map} +1 -1
  435. package/dist/esm/{controller-BiC2tpL8.js → controller-NE4BnSvx.js} +1 -1
  436. package/dist/esm/controller-NE4BnSvx.js.map +1 -0
  437. package/dist/esm/{controller-CeGWU1Au.js → controller-gn2X9gKB.js} +1 -1
  438. package/dist/{kolibri/controller-CeGWU1Au.js.map → esm/controller-gn2X9gKB.js.map} +1 -1
  439. package/dist/esm/controller-icon-BlpxRfuh.js +4 -0
  440. package/dist/esm/controller-icon-BlpxRfuh.js.map +1 -0
  441. package/dist/esm/{custom-class-CA0KGtrM.js → custom-class-Dg0c6ST7.js} +1 -1
  442. package/dist/esm/{custom-class-CA0KGtrM.js.map → custom-class-Dg0c6ST7.js.map} +1 -1
  443. package/dist/esm/{dev.utils-0SH3ep_K.js → dev.utils-esK2JNm4.js} +1 -1
  444. package/dist/esm/{dev.utils-0SH3ep_K.js.map → dev.utils-esK2JNm4.js.map} +1 -1
  445. package/dist/esm/{devtools-Cg1RmbyV.js → devtools-C4AShvlP.js} +1 -1
  446. package/dist/esm/{devtools-Cg1RmbyV.js.map → devtools-C4AShvlP.js.map} +1 -1
  447. package/dist/esm/disabled-u5a_azlj.js +4 -0
  448. package/dist/esm/{disabled-BydergHu.js.map → disabled-u5a_azlj.js.map} +1 -1
  449. package/dist/esm/{events-CoPFQEiC.js → events-9-skLO0f.js} +1 -1
  450. package/dist/esm/events-9-skLO0f.js.map +1 -0
  451. package/dist/esm/{has-closer-BBMh8HY3.js → has-closer-DENzUWH2.js} +1 -1
  452. package/dist/esm/{has-closer-BBMh8HY3.js.map → has-closer-DENzUWH2.js.map} +1 -1
  453. package/dist/esm/{hide-label-DRunOux4.js → hide-label-DjBQJOAP.js} +1 -1
  454. package/dist/esm/{hide-label-DRunOux4.js.map → hide-label-DjBQJOAP.js.map} +1 -1
  455. package/dist/esm/{href-zZq6HYWf.js → href-LHUCJ_IZ.js} +1 -1
  456. package/dist/esm/{href-zZq6HYWf.js.map → href-LHUCJ_IZ.js.map} +1 -1
  457. package/dist/esm/i18n-B0tfVPMa.js +4 -0
  458. package/dist/esm/i18n-B0tfVPMa.js.map +1 -0
  459. package/dist/esm/i18n-BgOmSzBT.js +4 -0
  460. package/dist/esm/{i18n-CdSCDnmA.js.map → i18n-BgOmSzBT.js.map} +1 -1
  461. package/dist/esm/{icons-72ER78AW.js → icons-B_GLbYEP.js} +1 -1
  462. package/dist/esm/{icons-72ER78AW.js.map → icons-B_GLbYEP.js.map} +1 -1
  463. package/dist/esm/{image-source-RWPv7frZ.js → image-source-DqpWx57w.js} +1 -1
  464. package/dist/esm/{image-source-RWPv7frZ.js.map → image-source-DqpWx57w.js.map} +1 -1
  465. package/dist/esm/index-COx1MtC5.js +4 -0
  466. package/dist/esm/index-COx1MtC5.js.map +1 -0
  467. package/dist/esm/index.js +1 -1
  468. package/dist/esm/index.js.map +1 -1
  469. package/dist/esm/inline-CeKQgcde.js +4 -0
  470. package/dist/esm/inline-CeKQgcde.js.map +1 -0
  471. package/dist/esm/kol-abbr.entry.js +1 -1
  472. package/dist/esm/kol-abbr.entry.js.map +1 -1
  473. package/dist/esm/kol-accordion.entry.js +1 -1
  474. package/dist/esm/kol-accordion.entry.js.map +1 -1
  475. package/dist/esm/kol-alert-wc.entry.js +1 -1
  476. package/dist/esm/kol-alert-wc.entry.js.map +1 -1
  477. package/dist/esm/kol-alert.entry.js +1 -1
  478. package/dist/esm/kol-alert.entry.js.map +1 -1
  479. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  480. package/dist/esm/kol-avatar-wc.entry.js.map +1 -1
  481. package/dist/esm/kol-avatar.entry.js +1 -1
  482. package/dist/esm/kol-avatar.entry.js.map +1 -1
  483. package/dist/esm/kol-badge.entry.js +1 -1
  484. package/dist/esm/kol-badge.entry.js.map +1 -1
  485. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  486. package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
  487. package/dist/esm/kol-button-link.entry.js +1 -1
  488. package/dist/esm/kol-button-link.entry.js.map +1 -1
  489. package/dist/esm/kol-button-wc.entry.js +1 -1
  490. package/dist/esm/kol-button-wc.entry.js.map +1 -1
  491. package/dist/esm/kol-button.entry.js +1 -1
  492. package/dist/esm/kol-button.entry.js.map +1 -1
  493. package/dist/esm/kol-card-wc.entry.js +1 -1
  494. package/dist/esm/kol-card-wc.entry.js.map +1 -1
  495. package/dist/esm/kol-card.entry.js +1 -1
  496. package/dist/esm/kol-card.entry.js.map +1 -1
  497. package/dist/esm/kol-combobox.entry.js +1 -1
  498. package/dist/esm/kol-combobox.entry.js.map +1 -1
  499. package/dist/esm/kol-details.entry.js +1 -1
  500. package/dist/esm/kol-details.entry.js.map +1 -1
  501. package/dist/esm/kol-drawer.entry.js +1 -1
  502. package/dist/esm/kol-drawer.entry.js.map +1 -1
  503. package/dist/esm/kol-form.entry.js +1 -1
  504. package/dist/esm/kol-form.entry.js.map +1 -1
  505. package/dist/esm/kol-heading.entry.js +1 -1
  506. package/dist/esm/kol-heading.entry.js.map +1 -1
  507. package/dist/esm/kol-icon.entry.js +1 -1
  508. package/dist/esm/kol-icon.entry.js.map +1 -1
  509. package/dist/esm/kol-image.entry.js +1 -1
  510. package/dist/esm/kol-image.entry.js.map +1 -1
  511. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  512. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  513. package/dist/esm/kol-input-color.entry.js +1 -1
  514. package/dist/esm/kol-input-color.entry.js.map +1 -1
  515. package/dist/esm/kol-input-date.entry.js +1 -1
  516. package/dist/esm/kol-input-date.entry.js.map +1 -1
  517. package/dist/esm/kol-input-email.entry.js +1 -1
  518. package/dist/esm/kol-input-email.entry.js.map +1 -1
  519. package/dist/esm/kol-input-file.entry.js +1 -1
  520. package/dist/esm/kol-input-file.entry.js.map +1 -1
  521. package/dist/esm/kol-input-number.entry.js +1 -1
  522. package/dist/esm/kol-input-number.entry.js.map +1 -1
  523. package/dist/esm/kol-input-password.entry.js +1 -1
  524. package/dist/esm/kol-input-password.entry.js.map +1 -1
  525. package/dist/esm/kol-input-radio.entry.js +1 -1
  526. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  527. package/dist/esm/kol-input-range.entry.js +1 -1
  528. package/dist/esm/kol-input-range.entry.js.map +1 -1
  529. package/dist/esm/kol-input-text.entry.js +1 -1
  530. package/dist/esm/kol-input-text.entry.js.map +1 -1
  531. package/dist/esm/kol-kolibri.entry.js +1 -1
  532. package/dist/esm/kol-kolibri.entry.js.map +1 -1
  533. package/dist/esm/kol-link-button.entry.js +1 -1
  534. package/dist/esm/kol-link-button.entry.js.map +1 -1
  535. package/dist/esm/kol-link-wc.entry.js +1 -1
  536. package/dist/esm/kol-link-wc.entry.js.map +1 -1
  537. package/dist/esm/kol-link.entry.js +1 -1
  538. package/dist/esm/kol-link.entry.js.map +1 -1
  539. package/dist/esm/kol-modal.entry.js +1 -1
  540. package/dist/esm/kol-modal.entry.js.map +1 -1
  541. package/dist/esm/kol-nav.entry.js +1 -1
  542. package/dist/esm/kol-nav.entry.js.map +1 -1
  543. package/dist/esm/kol-pagination-wc.entry.js +1 -1
  544. package/dist/esm/kol-pagination-wc.entry.js.map +1 -1
  545. package/dist/esm/kol-pagination.entry.js +1 -1
  546. package/dist/esm/kol-pagination.entry.js.map +1 -1
  547. package/dist/esm/kol-popover-button-wc.entry.js +1 -1
  548. package/dist/esm/kol-popover-button-wc.entry.js.map +1 -1
  549. package/dist/esm/kol-popover-button.entry.js +1 -1
  550. package/dist/esm/kol-popover-button.entry.js.map +1 -1
  551. package/dist/esm/kol-popover-wc.entry.js +1 -1
  552. package/dist/esm/kol-popover-wc.entry.js.map +1 -1
  553. package/dist/esm/kol-progress.entry.js +1 -1
  554. package/dist/esm/kol-progress.entry.js.map +1 -1
  555. package/dist/esm/kol-quote.entry.js +1 -1
  556. package/dist/esm/kol-quote.entry.js.map +1 -1
  557. package/dist/esm/kol-select-wc.entry.js +4 -0
  558. package/dist/esm/kol-select-wc.entry.js.map +1 -0
  559. package/dist/esm/kol-select.entry.js +1 -1
  560. package/dist/esm/kol-select.entry.js.map +1 -1
  561. package/dist/esm/kol-single-select.entry.js +1 -1
  562. package/dist/esm/kol-single-select.entry.js.map +1 -1
  563. package/dist/esm/kol-skip-nav.entry.js +1 -1
  564. package/dist/esm/kol-skip-nav.entry.js.map +1 -1
  565. package/dist/esm/kol-spin.entry.js +1 -1
  566. package/dist/esm/kol-spin.entry.js.map +1 -1
  567. package/dist/esm/kol-split-button.entry.js +1 -1
  568. package/dist/esm/kol-split-button.entry.js.map +1 -1
  569. package/dist/esm/kol-table-settings-wc.entry.js +1 -1
  570. package/dist/esm/kol-table-settings-wc.entry.js.map +1 -1
  571. package/dist/esm/kol-table-stateful.entry.js +1 -1
  572. package/dist/esm/kol-table-stateful.entry.js.map +1 -1
  573. package/dist/esm/kol-table-stateless-wc.entry.js +1 -1
  574. package/dist/esm/kol-table-stateless-wc.entry.js.map +1 -1
  575. package/dist/esm/kol-table-stateless.entry.js +1 -1
  576. package/dist/esm/kol-table-stateless.entry.js.map +1 -1
  577. package/dist/esm/kol-tabs.entry.js +1 -1
  578. package/dist/esm/kol-tabs.entry.js.map +1 -1
  579. package/dist/esm/kol-textarea.entry.js +1 -1
  580. package/dist/esm/kol-textarea.entry.js.map +1 -1
  581. package/dist/esm/kol-toast-container.entry.js +1 -1
  582. package/dist/esm/kol-toast-container.entry.js.map +1 -1
  583. package/dist/esm/kol-toolbar.entry.js +1 -1
  584. package/dist/esm/kol-toolbar.entry.js.map +1 -1
  585. package/dist/esm/kol-tooltip-wc.entry.js +1 -1
  586. package/dist/esm/kol-tooltip-wc.entry.js.map +1 -1
  587. package/dist/esm/kol-tree-item-wc.entry.js +1 -1
  588. package/dist/esm/kol-tree-item-wc.entry.js.map +1 -1
  589. package/dist/esm/kol-tree-item.entry.js +1 -1
  590. package/dist/esm/kol-tree-item.entry.js.map +1 -1
  591. package/dist/esm/kol-tree-wc.entry.js +1 -1
  592. package/dist/esm/kol-tree-wc.entry.js.map +1 -1
  593. package/dist/esm/kol-tree.entry.js +1 -1
  594. package/dist/esm/kol-tree.entry.js.map +1 -1
  595. package/dist/esm/kol-version.entry.js +1 -1
  596. package/dist/esm/kol-version.entry.js.map +1 -1
  597. package/dist/esm/kolibri.js +1 -1
  598. package/dist/esm/kolibri.js.map +1 -1
  599. package/dist/esm/{label-CdtNxOKu.js → label-ohY9ajP0.js} +1 -1
  600. package/dist/{kolibri/label-CdtNxOKu.js.map → esm/label-ohY9ajP0.js.map} +1 -1
  601. package/dist/esm/loader.js +1 -1
  602. package/dist/esm/{markdown-DL-PkOqb.js → markdown-CVks1MC0.js} +1 -1
  603. package/dist/esm/{markdown-DL-PkOqb.js.map → markdown-CVks1MC0.js.map} +1 -1
  604. package/dist/esm/{max-length-behavior-BmNWss6T.js → max-length-behavior-N5Lbz6E-.js} +1 -1
  605. package/dist/esm/{max-length-behavior-BmNWss6T.js.map → max-length-behavior-N5Lbz6E-.js.map} +1 -1
  606. package/dist/esm/{multiple-bcm5IaCN.js → multiple-D1puaB9F.js} +1 -1
  607. package/dist/esm/{multiple-bcm5IaCN.js.map → multiple-D1puaB9F.js.map} +1 -1
  608. package/dist/esm/{open-D9q98v46.js → open-BFQWty8w.js} +1 -1
  609. package/dist/esm/{open-D9q98v46.js.map → open-BFQWty8w.js.map} +1 -1
  610. package/dist/esm/{orientation-5kQWqijN.js → orientation-B0ErOlUK.js} +1 -1
  611. package/dist/esm/{orientation-5kQWqijN.js.map → orientation-B0ErOlUK.js.map} +1 -1
  612. package/dist/esm/{placeholder-6URRds0_.js → placeholder-DrgXYoah.js} +1 -1
  613. package/dist/esm/{placeholder-6URRds0_.js.map → placeholder-DrgXYoah.js.map} +1 -1
  614. package/dist/esm/{read-only-CcRldJ9w.js → read-only-Bp291veM.js} +1 -1
  615. package/dist/esm/{read-only-CcRldJ9w.js.map → read-only-Bp291veM.js.map} +1 -1
  616. package/dist/esm/{required-G86n77y0.js → required-7L0ytoMT.js} +1 -1
  617. package/dist/esm/{required-G86n77y0.js.map → required-7L0ytoMT.js.map} +1 -1
  618. package/dist/esm/{rows-P4l3PNiA.js → rows-C8piLIWD.js} +1 -1
  619. package/dist/esm/rows-C8piLIWD.js.map +1 -0
  620. package/dist/esm/{show-DsV_Vx8g.js → show-ChfALFZd.js} +1 -1
  621. package/dist/esm/{show-DsV_Vx8g.js.map → show-ChfALFZd.js.map} +1 -1
  622. package/dist/esm/{spell-check-DIsLAYgk.js → spell-check-DrU5XI1o.js} +1 -1
  623. package/dist/esm/{spell-check-DIsLAYgk.js.map → spell-check-DrU5XI1o.js.map} +1 -1
  624. package/dist/esm/{suggestions-DfF4lcNG.js → suggestions-Bufr76At.js} +1 -1
  625. package/dist/esm/{suggestions-DfF4lcNG.js.map → suggestions-Bufr76At.js.map} +1 -1
  626. package/dist/esm/{table-settings-DSZObo-2.js → table-settings-BYcS3vAt.js} +1 -1
  627. package/dist/esm/table-settings-BYcS3vAt.js.map +1 -0
  628. package/dist/esm/test-component.entry.js +1 -1
  629. package/dist/esm/tooltip-align-DEw_M6Is.js +4 -0
  630. package/dist/esm/{tooltip-align-_VI7LehI.js.map → tooltip-align-DEw_M6Is.js.map} +1 -1
  631. package/dist/esm/{unique-nav-labels-C_NhdgGz.js → unique-nav-labels-C-bt2E8D.js} +1 -1
  632. package/dist/esm/{unique-nav-labels-C_NhdgGz.js.map → unique-nav-labels-C-bt2E8D.js.map} +1 -1
  633. package/dist/esm/{validation-CW_RXPSn.js → validation-BVeaxeev.js} +1 -1
  634. package/dist/esm/{validation-CW_RXPSn.js.map → validation-BVeaxeev.js.map} +1 -1
  635. package/dist/esm/{validation-DoIjmu3L.js → validation-BmqW5reG.js} +1 -1
  636. package/dist/esm/{validation-DoIjmu3L.js.map → validation-BmqW5reG.js.map} +1 -1
  637. package/dist/kolibri/Alert-DIA2xA9y.js +4 -0
  638. package/dist/kolibri/Alert-DIA2xA9y.js.map +1 -0
  639. package/dist/kolibri/Collapsible-XJeVw5Bg.js +4 -0
  640. package/dist/kolibri/Collapsible-XJeVw5Bg.js.map +1 -0
  641. package/dist/kolibri/CustomSuggestionsOptionsGroup-B8Ar_Lf3.js +4 -0
  642. package/dist/kolibri/CustomSuggestionsOptionsGroup-B8Ar_Lf3.js.map +1 -0
  643. package/dist/kolibri/FieldControlStateWrapper-Pxc6eGXA.js +4 -0
  644. package/dist/kolibri/FieldControlStateWrapper-Pxc6eGXA.js.map +1 -0
  645. package/dist/kolibri/FormFieldStateWrapper-LHV3Rpm4.js +4 -0
  646. package/dist/kolibri/FormFieldStateWrapper-LHV3Rpm4.js.map +1 -0
  647. package/dist/kolibri/Heading-B2GrYJQS.js +4 -0
  648. package/dist/kolibri/{Heading-KhwFHPZb.js.map → Heading-B2GrYJQS.js.map} +1 -1
  649. package/dist/kolibri/Icon-Cx4bRen6.js +4 -0
  650. package/dist/kolibri/{Icon-BsRmEtCa.js.map → Icon-Cx4bRen6.js.map} +1 -1
  651. package/dist/kolibri/Input-DgvlKYaQ.js +4 -0
  652. package/dist/kolibri/Input-DgvlKYaQ.js.map +1 -0
  653. package/dist/kolibri/InputStateWrapper-febP2jPy.js +4 -0
  654. package/dist/kolibri/{InputStateWrapper-GJbSTDc8.js.map → InputStateWrapper-febP2jPy.js.map} +1 -1
  655. package/dist/kolibri/InternalUnderlinedBadgeText-B2Mp6LvR.js +4 -0
  656. package/dist/kolibri/{InternalUnderlinedBadgeText-BnPUgbKl.js.map → InternalUnderlinedBadgeText-B2Mp6LvR.js.map} +1 -1
  657. package/dist/kolibri/Span-C6xaM2ei.js +4 -0
  658. package/dist/{esm/Span-5ZR0JDnP.js.map → kolibri/Span-C6xaM2ei.js.map} +1 -1
  659. package/dist/kolibri/access-and-short-key-Dy2a7Py3.js +4 -0
  660. package/dist/kolibri/access-and-short-key-Dy2a7Py3.js.map +1 -0
  661. package/dist/kolibri/{align-CyK0wp7d.js → align-Bcqvz5vw.js} +1 -1
  662. package/dist/kolibri/{align-CyK0wp7d.js.map → align-Bcqvz5vw.js.map} +1 -1
  663. package/dist/kolibri/{align-floating-elements-Bx4ukVlr.js → align-floating-elements-DUQRrio7.js} +1 -1
  664. package/dist/{esm/align-floating-elements-Bx4ukVlr.js.map → kolibri/align-floating-elements-DUQRrio7.js.map} +1 -1
  665. package/dist/kolibri/app-globals-ekKWD6Td.js +4 -0
  666. package/dist/kolibri/{app-globals-COkPg4hl.js.map → app-globals-ekKWD6Td.js.map} +1 -1
  667. package/dist/kolibri/assets/.gitkeep +0 -0
  668. package/dist/kolibri/{associated.controller-BKIODHIT.js → associated.controller-BStrZiDY.js} +1 -1
  669. package/dist/kolibri/{associated.controller-BKIODHIT.js.map → associated.controller-BStrZiDY.js.map} +1 -1
  670. package/dist/kolibri/{auto-complete-BsG3RQJ3.js → auto-complete-h9OoHuC5.js} +1 -1
  671. package/dist/kolibri/{auto-complete-BsG3RQJ3.js.map → auto-complete-h9OoHuC5.js.map} +1 -1
  672. package/dist/kolibri/bem-B2ILLet6.js +4 -0
  673. package/dist/kolibri/{bem-BiknXNcP.js.map → bem-B2ILLet6.js.map} +1 -1
  674. package/dist/kolibri/{bem-CHTjklyp.js → bem-CIn1qsbp.js} +1 -1
  675. package/dist/kolibri/{bem-CHTjklyp.js.map → bem-CIn1qsbp.js.map} +1 -1
  676. package/dist/kolibri/{bootstrap-BiRnv4fV.js → bootstrap-BsrX_E7q.js} +1 -1
  677. package/dist/kolibri/{bootstrap-BiRnv4fV.js.map → bootstrap-BsrX_E7q.js.map} +1 -1
  678. package/dist/kolibri/{browser-Ba2Wl_kh.js → browser-CyCtPZc0.js} +1 -1
  679. package/dist/kolibri/{browser-Ba2Wl_kh.js.map → browser-CyCtPZc0.js.map} +1 -1
  680. package/dist/kolibri/button-variant-ueS50zGR.js +4 -0
  681. package/dist/kolibri/button-variant-ueS50zGR.js.map +1 -0
  682. package/dist/kolibri/{color-C3pYZKV3.js → color-DLhBoaj-.js} +1 -1
  683. package/dist/kolibri/color-DLhBoaj-.js.map +1 -0
  684. package/dist/kolibri/{common-8fBdMvJM.js → common-L1K0yh1S.js} +1 -1
  685. package/dist/{esm/common-8fBdMvJM.js.map → kolibri/common-L1K0yh1S.js.map} +1 -1
  686. package/dist/kolibri/component-names-C3fyby67.js +4 -0
  687. package/dist/kolibri/component-names-C3fyby67.js.map +1 -0
  688. package/dist/kolibri/controller-DJOhQXnE.js +4 -0
  689. package/dist/kolibri/controller-DJOhQXnE.js.map +1 -0
  690. package/dist/kolibri/controller-DugjUu5j.js +4 -0
  691. package/dist/kolibri/{controller-HR9pimff.js.map → controller-DugjUu5j.js.map} +1 -1
  692. package/dist/kolibri/controller-NE4BnSvx.js +4 -0
  693. package/dist/kolibri/controller-NE4BnSvx.js.map +1 -0
  694. package/dist/kolibri/{controller-CeGWU1Au.js → controller-gn2X9gKB.js} +1 -1
  695. package/dist/{esm/controller-CeGWU1Au.js.map → kolibri/controller-gn2X9gKB.js.map} +1 -1
  696. package/dist/kolibri/controller-icon-BlpxRfuh.js +4 -0
  697. package/dist/kolibri/controller-icon-BlpxRfuh.js.map +1 -0
  698. package/dist/kolibri/custom-class-Dg0c6ST7.js +4 -0
  699. package/dist/kolibri/{custom-class-CA0KGtrM.js.map → custom-class-Dg0c6ST7.js.map} +1 -1
  700. package/dist/kolibri/{dev.utils-0SH3ep_K.js → dev.utils-esK2JNm4.js} +1 -1
  701. package/dist/kolibri/{dev.utils-0SH3ep_K.js.map → dev.utils-esK2JNm4.js.map} +1 -1
  702. package/dist/kolibri/{devtools-Cg1RmbyV.js → devtools-C4AShvlP.js} +1 -1
  703. package/dist/kolibri/{devtools-Cg1RmbyV.js.map → devtools-C4AShvlP.js.map} +1 -1
  704. package/dist/kolibri/{disabled-BydergHu.js → disabled-u5a_azlj.js} +1 -1
  705. package/dist/kolibri/{disabled-BydergHu.js.map → disabled-u5a_azlj.js.map} +1 -1
  706. package/dist/kolibri/{events-CoPFQEiC.js → events-9-skLO0f.js} +1 -1
  707. package/dist/kolibri/events-9-skLO0f.js.map +1 -0
  708. package/dist/kolibri/has-closer-DENzUWH2.js +4 -0
  709. package/dist/kolibri/{has-closer-BBMh8HY3.js.map → has-closer-DENzUWH2.js.map} +1 -1
  710. package/dist/kolibri/hide-label-DjBQJOAP.js +4 -0
  711. package/dist/kolibri/{hide-label-DRunOux4.js.map → hide-label-DjBQJOAP.js.map} +1 -1
  712. package/dist/kolibri/href-LHUCJ_IZ.js +4 -0
  713. package/dist/kolibri/{href-zZq6HYWf.js.map → href-LHUCJ_IZ.js.map} +1 -1
  714. package/dist/kolibri/i18n-B0tfVPMa.js +4 -0
  715. package/dist/kolibri/i18n-B0tfVPMa.js.map +1 -0
  716. package/dist/kolibri/i18n-BgOmSzBT.js +4 -0
  717. package/dist/kolibri/{i18n-CdSCDnmA.js.map → i18n-BgOmSzBT.js.map} +1 -1
  718. package/dist/kolibri/{icons-72ER78AW.js → icons-B_GLbYEP.js} +1 -1
  719. package/dist/kolibri/{icons-72ER78AW.js.map → icons-B_GLbYEP.js.map} +1 -1
  720. package/dist/kolibri/image-source-DqpWx57w.js +4 -0
  721. package/dist/kolibri/{image-source-RWPv7frZ.js.map → image-source-DqpWx57w.js.map} +1 -1
  722. package/dist/kolibri/index-COx1MtC5.js +5 -0
  723. package/dist/kolibri/index-COx1MtC5.js.map +1 -0
  724. package/dist/kolibri/index.esm.js +1 -1
  725. package/dist/kolibri/index.esm.js.map +1 -1
  726. package/dist/kolibri/inline-CeKQgcde.js +4 -0
  727. package/dist/kolibri/inline-CeKQgcde.js.map +1 -0
  728. package/dist/kolibri/kol-abbr.entry.esm.js.map +1 -1
  729. package/dist/kolibri/kol-abbr.entry.js +1 -1
  730. package/dist/kolibri/kol-abbr.entry.js.map +1 -1
  731. package/dist/kolibri/kol-accordion.entry.esm.js.map +1 -1
  732. package/dist/kolibri/kol-accordion.entry.js +1 -1
  733. package/dist/kolibri/kol-accordion.entry.js.map +1 -1
  734. package/dist/kolibri/kol-alert-wc.entry.esm.js.map +1 -1
  735. package/dist/kolibri/kol-alert-wc.entry.js +1 -1
  736. package/dist/kolibri/kol-alert-wc.entry.js.map +1 -1
  737. package/dist/kolibri/kol-alert.entry.esm.js.map +1 -1
  738. package/dist/kolibri/kol-alert.entry.js +1 -1
  739. package/dist/kolibri/kol-alert.entry.js.map +1 -1
  740. package/dist/kolibri/kol-avatar-wc.entry.esm.js.map +1 -1
  741. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  742. package/dist/kolibri/kol-avatar-wc.entry.js.map +1 -1
  743. package/dist/kolibri/kol-avatar.entry.esm.js.map +1 -1
  744. package/dist/kolibri/kol-avatar.entry.js +1 -1
  745. package/dist/kolibri/kol-avatar.entry.js.map +1 -1
  746. package/dist/kolibri/kol-badge.entry.esm.js.map +1 -1
  747. package/dist/kolibri/kol-badge.entry.js +1 -1
  748. package/dist/kolibri/kol-badge.entry.js.map +1 -1
  749. package/dist/kolibri/kol-breadcrumb.entry.esm.js.map +1 -1
  750. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  751. package/dist/kolibri/kol-breadcrumb.entry.js.map +1 -1
  752. package/dist/kolibri/kol-button-link.entry.esm.js.map +1 -1
  753. package/dist/kolibri/kol-button-link.entry.js +1 -1
  754. package/dist/kolibri/kol-button-link.entry.js.map +1 -1
  755. package/dist/kolibri/kol-button-wc.entry.esm.js.map +1 -1
  756. package/dist/kolibri/kol-button-wc.entry.js +1 -1
  757. package/dist/kolibri/kol-button-wc.entry.js.map +1 -1
  758. package/dist/kolibri/kol-button.entry.esm.js.map +1 -1
  759. package/dist/kolibri/kol-button.entry.js +1 -1
  760. package/dist/kolibri/kol-button.entry.js.map +1 -1
  761. package/dist/kolibri/kol-card-wc.entry.esm.js.map +1 -1
  762. package/dist/kolibri/kol-card-wc.entry.js +1 -1
  763. package/dist/kolibri/kol-card-wc.entry.js.map +1 -1
  764. package/dist/kolibri/kol-card.entry.esm.js.map +1 -1
  765. package/dist/kolibri/kol-card.entry.js +1 -1
  766. package/dist/kolibri/kol-card.entry.js.map +1 -1
  767. package/dist/kolibri/kol-combobox.entry.esm.js.map +1 -1
  768. package/dist/kolibri/kol-combobox.entry.js +1 -1
  769. package/dist/kolibri/kol-combobox.entry.js.map +1 -1
  770. package/dist/kolibri/kol-details.entry.esm.js.map +1 -1
  771. package/dist/kolibri/kol-details.entry.js +1 -1
  772. package/dist/kolibri/kol-details.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-icon.entry.js.map +1 -1
  785. package/dist/kolibri/kol-image.entry.esm.js.map +1 -1
  786. package/dist/kolibri/kol-image.entry.js +1 -1
  787. package/dist/kolibri/kol-image.entry.js.map +1 -1
  788. package/dist/kolibri/kol-input-checkbox.entry.esm.js.map +1 -1
  789. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  790. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  791. package/dist/kolibri/kol-input-color.entry.esm.js.map +1 -1
  792. package/dist/kolibri/kol-input-color.entry.js +1 -1
  793. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  794. package/dist/kolibri/kol-input-date.entry.esm.js.map +1 -1
  795. package/dist/kolibri/kol-input-date.entry.js +1 -1
  796. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  797. package/dist/kolibri/kol-input-email.entry.esm.js.map +1 -1
  798. package/dist/kolibri/kol-input-email.entry.js +1 -1
  799. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  800. package/dist/kolibri/kol-input-file.entry.esm.js.map +1 -1
  801. package/dist/kolibri/kol-input-file.entry.js +1 -1
  802. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  803. package/dist/kolibri/kol-input-number.entry.esm.js.map +1 -1
  804. package/dist/kolibri/kol-input-number.entry.js +1 -1
  805. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  806. package/dist/kolibri/kol-input-password.entry.esm.js.map +1 -1
  807. package/dist/kolibri/kol-input-password.entry.js +1 -1
  808. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  809. package/dist/kolibri/kol-input-radio.entry.esm.js.map +1 -1
  810. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  811. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  812. package/dist/kolibri/kol-input-range.entry.esm.js.map +1 -1
  813. package/dist/kolibri/kol-input-range.entry.js +1 -1
  814. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  815. package/dist/kolibri/kol-input-text.entry.esm.js.map +1 -1
  816. package/dist/kolibri/kol-input-text.entry.js +1 -1
  817. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  818. package/dist/kolibri/kol-kolibri.entry.esm.js.map +1 -1
  819. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  820. package/dist/kolibri/kol-kolibri.entry.js.map +1 -1
  821. package/dist/kolibri/kol-link-button.entry.esm.js.map +1 -1
  822. package/dist/kolibri/kol-link-button.entry.js +1 -1
  823. package/dist/kolibri/kol-link-button.entry.js.map +1 -1
  824. package/dist/kolibri/kol-link-wc.entry.esm.js.map +1 -1
  825. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  826. package/dist/kolibri/kol-link-wc.entry.js.map +1 -1
  827. package/dist/kolibri/kol-link.entry.esm.js.map +1 -1
  828. package/dist/kolibri/kol-link.entry.js +1 -1
  829. package/dist/kolibri/kol-link.entry.js.map +1 -1
  830. package/dist/kolibri/kol-modal.entry.esm.js.map +1 -1
  831. package/dist/kolibri/kol-modal.entry.js +1 -1
  832. package/dist/kolibri/kol-modal.entry.js.map +1 -1
  833. package/dist/kolibri/kol-nav.entry.esm.js.map +1 -1
  834. package/dist/kolibri/kol-nav.entry.js +1 -1
  835. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  836. package/dist/kolibri/kol-pagination-wc.entry.esm.js.map +1 -1
  837. package/dist/kolibri/kol-pagination-wc.entry.js +1 -1
  838. package/dist/kolibri/kol-pagination-wc.entry.js.map +1 -1
  839. package/dist/kolibri/kol-pagination.entry.esm.js.map +1 -1
  840. package/dist/kolibri/kol-pagination.entry.js +1 -1
  841. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  842. package/dist/kolibri/kol-popover-button-wc.entry.esm.js.map +1 -1
  843. package/dist/kolibri/kol-popover-button-wc.entry.js +1 -1
  844. package/dist/kolibri/kol-popover-button-wc.entry.js.map +1 -1
  845. package/dist/kolibri/kol-popover-button.entry.esm.js.map +1 -1
  846. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  847. package/dist/kolibri/kol-popover-button.entry.js.map +1 -1
  848. package/dist/kolibri/kol-popover-wc.entry.esm.js.map +1 -1
  849. package/dist/kolibri/kol-popover-wc.entry.js +1 -1
  850. package/dist/kolibri/kol-popover-wc.entry.js.map +1 -1
  851. package/dist/kolibri/kol-progress.entry.esm.js.map +1 -1
  852. package/dist/kolibri/kol-progress.entry.js +1 -1
  853. package/dist/kolibri/kol-progress.entry.js.map +1 -1
  854. package/dist/kolibri/kol-quote.entry.esm.js.map +1 -1
  855. package/dist/kolibri/kol-quote.entry.js +1 -1
  856. package/dist/kolibri/kol-quote.entry.js.map +1 -1
  857. package/dist/kolibri/kol-select-wc.entry.esm.js.map +1 -0
  858. package/dist/kolibri/kol-select-wc.entry.js +4 -0
  859. package/dist/kolibri/kol-select-wc.entry.js.map +1 -0
  860. package/dist/kolibri/kol-select.entry.esm.js.map +1 -1
  861. package/dist/kolibri/kol-select.entry.js +1 -1
  862. package/dist/kolibri/kol-select.entry.js.map +1 -1
  863. package/dist/kolibri/kol-single-select.entry.esm.js.map +1 -1
  864. package/dist/kolibri/kol-single-select.entry.js +1 -1
  865. package/dist/kolibri/kol-single-select.entry.js.map +1 -1
  866. package/dist/kolibri/kol-skip-nav.entry.esm.js.map +1 -1
  867. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  868. package/dist/kolibri/kol-skip-nav.entry.js.map +1 -1
  869. package/dist/kolibri/kol-spin.entry.esm.js.map +1 -1
  870. package/dist/kolibri/kol-spin.entry.js +1 -1
  871. package/dist/kolibri/kol-spin.entry.js.map +1 -1
  872. package/dist/kolibri/kol-split-button.entry.esm.js.map +1 -1
  873. package/dist/kolibri/kol-split-button.entry.js +1 -1
  874. package/dist/kolibri/kol-split-button.entry.js.map +1 -1
  875. package/dist/kolibri/kol-table-settings-wc.entry.esm.js.map +1 -1
  876. package/dist/kolibri/kol-table-settings-wc.entry.js +1 -1
  877. package/dist/kolibri/kol-table-settings-wc.entry.js.map +1 -1
  878. package/dist/kolibri/kol-table-stateful.entry.esm.js.map +1 -1
  879. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  880. package/dist/kolibri/kol-table-stateful.entry.js.map +1 -1
  881. package/dist/kolibri/kol-table-stateless-wc.entry.esm.js.map +1 -1
  882. package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
  883. package/dist/kolibri/kol-table-stateless-wc.entry.js.map +1 -1
  884. package/dist/kolibri/kol-table-stateless.entry.esm.js.map +1 -1
  885. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  886. package/dist/kolibri/kol-table-stateless.entry.js.map +1 -1
  887. package/dist/kolibri/kol-tabs.entry.esm.js.map +1 -1
  888. package/dist/kolibri/kol-tabs.entry.js +1 -1
  889. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  890. package/dist/kolibri/kol-textarea.entry.esm.js.map +1 -1
  891. package/dist/kolibri/kol-textarea.entry.js +1 -1
  892. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  893. package/dist/kolibri/kol-toast-container.entry.esm.js.map +1 -1
  894. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  895. package/dist/kolibri/kol-toast-container.entry.js.map +1 -1
  896. package/dist/kolibri/kol-toolbar.entry.esm.js.map +1 -1
  897. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  898. package/dist/kolibri/kol-toolbar.entry.js.map +1 -1
  899. package/dist/kolibri/kol-tooltip-wc.entry.esm.js.map +1 -1
  900. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  901. package/dist/kolibri/kol-tooltip-wc.entry.js.map +1 -1
  902. package/dist/kolibri/kol-tree-item-wc.entry.esm.js.map +1 -1
  903. package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
  904. package/dist/kolibri/kol-tree-item-wc.entry.js.map +1 -1
  905. package/dist/kolibri/kol-tree-item.entry.esm.js.map +1 -1
  906. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  907. package/dist/kolibri/kol-tree-item.entry.js.map +1 -1
  908. package/dist/kolibri/kol-tree-wc.entry.esm.js.map +1 -1
  909. package/dist/kolibri/kol-tree-wc.entry.js +1 -1
  910. package/dist/kolibri/kol-tree-wc.entry.js.map +1 -1
  911. package/dist/kolibri/kol-tree.entry.esm.js.map +1 -1
  912. package/dist/kolibri/kol-tree.entry.js +1 -1
  913. package/dist/kolibri/kol-tree.entry.js.map +1 -1
  914. package/dist/kolibri/kol-version.entry.esm.js.map +1 -1
  915. package/dist/kolibri/kol-version.entry.js +1 -1
  916. package/dist/kolibri/kol-version.entry.js.map +1 -1
  917. package/dist/kolibri/kolibri.esm.js +1 -1
  918. package/dist/kolibri/kolibri.esm.js.map +1 -1
  919. package/dist/kolibri/{label-CdtNxOKu.js → label-ohY9ajP0.js} +1 -1
  920. package/dist/{esm/label-CdtNxOKu.js.map → kolibri/label-ohY9ajP0.js.map} +1 -1
  921. package/dist/kolibri/{markdown-DL-PkOqb.js → markdown-CVks1MC0.js} +1 -1
  922. package/dist/kolibri/{markdown-DL-PkOqb.js.map → markdown-CVks1MC0.js.map} +1 -1
  923. package/dist/kolibri/{max-length-behavior-BmNWss6T.js → max-length-behavior-N5Lbz6E-.js} +1 -1
  924. package/dist/kolibri/{max-length-behavior-BmNWss6T.js.map → max-length-behavior-N5Lbz6E-.js.map} +1 -1
  925. package/dist/kolibri/multiple-D1puaB9F.js +4 -0
  926. package/dist/kolibri/{multiple-bcm5IaCN.js.map → multiple-D1puaB9F.js.map} +1 -1
  927. package/dist/kolibri/open-BFQWty8w.js +4 -0
  928. package/dist/kolibri/{open-D9q98v46.js.map → open-BFQWty8w.js.map} +1 -1
  929. package/dist/kolibri/{orientation-5kQWqijN.js → orientation-B0ErOlUK.js} +1 -1
  930. package/dist/kolibri/{orientation-5kQWqijN.js.map → orientation-B0ErOlUK.js.map} +1 -1
  931. package/dist/kolibri/placeholder-DrgXYoah.js +4 -0
  932. package/dist/kolibri/{placeholder-6URRds0_.js.map → placeholder-DrgXYoah.js.map} +1 -1
  933. package/dist/kolibri/read-only-Bp291veM.js +4 -0
  934. package/dist/kolibri/{read-only-CcRldJ9w.js.map → read-only-Bp291veM.js.map} +1 -1
  935. package/dist/kolibri/required-7L0ytoMT.js +4 -0
  936. package/dist/kolibri/{required-G86n77y0.js.map → required-7L0ytoMT.js.map} +1 -1
  937. package/dist/kolibri/rows-C8piLIWD.js +4 -0
  938. package/dist/kolibri/rows-C8piLIWD.js.map +1 -0
  939. package/dist/kolibri/show-ChfALFZd.js +4 -0
  940. package/dist/kolibri/{show-DsV_Vx8g.js.map → show-ChfALFZd.js.map} +1 -1
  941. package/dist/kolibri/spell-check-DrU5XI1o.js +4 -0
  942. package/dist/kolibri/{spell-check-DIsLAYgk.js.map → spell-check-DrU5XI1o.js.map} +1 -1
  943. package/dist/kolibri/{suggestions-DfF4lcNG.js → suggestions-Bufr76At.js} +1 -1
  944. package/dist/kolibri/{suggestions-DfF4lcNG.js.map → suggestions-Bufr76At.js.map} +1 -1
  945. package/dist/kolibri/{table-settings-DSZObo-2.js → table-settings-BYcS3vAt.js} +1 -1
  946. package/dist/kolibri/table-settings-BYcS3vAt.js.map +1 -0
  947. package/dist/kolibri/test-component.entry.js +1 -1
  948. package/dist/kolibri/tooltip-align-DEw_M6Is.js +4 -0
  949. package/dist/kolibri/{tooltip-align-_VI7LehI.js.map → tooltip-align-DEw_M6Is.js.map} +1 -1
  950. package/dist/kolibri/{unique-nav-labels-C_NhdgGz.js → unique-nav-labels-C-bt2E8D.js} +1 -1
  951. package/dist/kolibri/{unique-nav-labels-C_NhdgGz.js.map → unique-nav-labels-C-bt2E8D.js.map} +1 -1
  952. package/dist/kolibri/validation-BVeaxeev.js +4 -0
  953. package/dist/kolibri/{validation-CW_RXPSn.js.map → validation-BVeaxeev.js.map} +1 -1
  954. package/dist/kolibri/{validation-DoIjmu3L.js → validation-BmqW5reG.js} +1 -1
  955. package/dist/kolibri/{validation-DoIjmu3L.js.map → validation-BmqW5reG.js.map} +1 -1
  956. package/dist/types/components/@deprecated/input/controller.d.ts +3 -1
  957. package/dist/types/components/@deprecated/input/types-icon.d.ts +1 -1
  958. package/dist/types/components/@deprecated/input/types.d.ts +1 -1
  959. package/dist/types/components/@else/all/component.d.ts +1 -1
  960. package/dist/types/components/accordion/shadow.d.ts +1 -1
  961. package/dist/types/components/alert/shadow.d.ts +1 -1
  962. package/dist/types/components/avatar/component.d.ts +6 -1
  963. package/dist/types/components/avatar/shadow.d.ts +2 -1
  964. package/dist/types/components/badge/shadow.d.ts +5 -2
  965. package/dist/types/components/button/component.d.ts +4 -4
  966. package/dist/types/components/button/shadow.d.ts +2 -1
  967. package/dist/types/components/button-link/shadow.d.ts +2 -2
  968. package/dist/types/components/combobox/controller.d.ts +1 -0
  969. package/dist/types/components/combobox/shadow.d.ts +4 -1
  970. package/dist/types/components/component-list.d.ts +2 -2
  971. package/dist/types/components/icon/bem.d.ts +6 -7
  972. package/dist/types/components/icon/controller.d.ts +1 -1
  973. package/dist/types/components/input-color/shadow.d.ts +1 -1
  974. package/dist/types/components/input-date/shadow.d.ts +1 -0
  975. package/dist/types/components/input-file/shadow.d.ts +1 -1
  976. package/dist/types/components/input-number/shadow.d.ts +2 -0
  977. package/dist/types/components/input-radio/controller.d.ts +1 -1
  978. package/dist/types/components/input-radio/shadow.d.ts +3 -0
  979. package/dist/types/components/input-range/shadow.d.ts +1 -1
  980. package/dist/types/components/input-text/shadow.d.ts +5 -0
  981. package/dist/types/components/link/component.d.ts +5 -3
  982. package/dist/types/components/link/shadow.d.ts +2 -2
  983. package/dist/types/components/link-button/shadow.d.ts +1 -1
  984. package/dist/types/components/nav/shadow.d.ts +1 -3
  985. package/dist/types/components/pagination/component.d.ts +3 -1
  986. package/dist/types/components/popover/component.d.ts +14 -7
  987. package/dist/types/components/popover-button/component.d.ts +5 -1
  988. package/dist/types/components/popover-button/shadow.d.ts +4 -1
  989. package/dist/types/components/select/component.d.ts +61 -0
  990. package/dist/types/components/select/controller.d.ts +1 -1
  991. package/dist/types/components/select/shadow.d.ts +3 -34
  992. package/dist/types/components/single-select/controller.d.ts +1 -1
  993. package/dist/types/components/single-select/shadow.d.ts +2 -3
  994. package/dist/types/components/skip-nav/shadow.d.ts +2 -0
  995. package/dist/types/components/split-button/shadow.d.ts +1 -1
  996. package/dist/types/components/table-stateful/shadow.d.ts +2 -1
  997. package/dist/types/components/table-stateless/component.d.ts +4 -0
  998. package/dist/types/components/table-stateless/table-settings.d.ts +1 -1
  999. package/dist/types/components/tabs/shadow.d.ts +1 -1
  1000. package/dist/types/components/toolbar/shadow.d.ts +1 -1
  1001. package/dist/types/components/tooltip/component.d.ts +8 -5
  1002. package/dist/types/components.d.ts +487 -153
  1003. package/dist/types/core/component-names.d.ts +1 -0
  1004. package/dist/types/e2e/index.d.ts +1 -1
  1005. package/dist/types/e2e/input-callbacks-and-events.d.ts +2 -2
  1006. package/dist/types/e2e/input-msg.d.ts +1 -0
  1007. package/dist/types/functional-component-wrappers/FieldControlStateWrapper/FieldControlStateWrapper.d.ts +1 -1
  1008. package/dist/types/functional-component-wrappers/InputContainerStateWrapper/InputContainerStateWrapper.d.ts +1 -1
  1009. package/dist/types/functional-component-wrappers/InputStateWrapper/InputStateWrapper.d.ts +1 -1
  1010. package/dist/types/functional-component-wrappers/RadioStateWrapper/RadioStateWrapper.d.ts +1 -1
  1011. package/dist/types/functional-component-wrappers/_helpers/getRenderStates.d.ts +2 -1
  1012. package/dist/types/functional-components/Alert/bem.d.ts +6 -7
  1013. package/dist/types/functional-components/Alert/index.d.ts +1 -1
  1014. package/dist/types/functional-components/Button/index.d.ts +1 -1
  1015. package/dist/types/functional-components/Collapsible/index.d.ts +1 -1
  1016. package/dist/types/functional-components/CustomSuggestionsOption/CustomSuggestionsOption.d.ts +1 -0
  1017. package/dist/types/functional-components/CustomSuggestionsOption/index.d.ts +1 -1
  1018. package/dist/types/functional-components/CustomSuggestionsOptionsGroup/index.d.ts +1 -1
  1019. package/dist/types/functional-components/FieldControl/index.d.ts +1 -1
  1020. package/dist/types/functional-components/FormField/FormField.d.ts +4 -5
  1021. package/dist/types/functional-components/FormField/index.d.ts +1 -1
  1022. package/dist/types/functional-components/FormFieldCounter/FormFieldCounter.d.ts +2 -1
  1023. package/dist/types/functional-components/FormFieldLabel/FormFieldLabel.d.ts +1 -0
  1024. package/dist/types/functional-components/Heading/index.d.ts +1 -1
  1025. package/dist/types/functional-components/Icon/index.d.ts +1 -1
  1026. package/dist/types/functional-components/IconButton/IconButton.d.ts +1 -1
  1027. package/dist/types/functional-components/IconButton/index.d.ts +1 -1
  1028. package/dist/types/functional-components/InputAdornment/index.d.ts +1 -1
  1029. package/dist/types/functional-components/InputContainer/index.d.ts +1 -1
  1030. package/dist/types/functional-components/InternalUnderlinedBadgeText/index.d.ts +1 -1
  1031. package/dist/types/functional-components/Span/index.d.ts +1 -1
  1032. package/dist/types/functional-components/Suggestions/index.d.ts +1 -1
  1033. package/dist/types/functional-components/index.d.ts +1 -1
  1034. package/dist/types/functional-components/inputs/Checkbox/index.d.ts +1 -1
  1035. package/dist/types/functional-components/inputs/Input/index.d.ts +1 -1
  1036. package/dist/types/functional-components/inputs/NativeOption/index.d.ts +1 -1
  1037. package/dist/types/functional-components/inputs/NativeOptionList/NativeOptionList.d.ts +1 -1
  1038. package/dist/types/functional-components/inputs/NativeOptionList/index.d.ts +1 -1
  1039. package/dist/types/functional-components/inputs/NativeSelect/NativeSelect.d.ts +1 -1
  1040. package/dist/types/functional-components/inputs/NativeSelect/index.d.ts +1 -1
  1041. package/dist/types/functional-components/inputs/Radio/index.d.ts +1 -1
  1042. package/dist/types/functional-components/inputs/TextArea/TextArea.d.ts +1 -1
  1043. package/dist/types/functional-components/inputs/TextArea/index.d.ts +1 -1
  1044. package/dist/types/index.d.ts +4 -4
  1045. package/dist/types/locales/de.d.ts +2 -0
  1046. package/dist/types/locales/en.d.ts +2 -0
  1047. package/dist/types/schema/components/avatar.d.ts +5 -2
  1048. package/dist/types/schema/components/button-link.d.ts +2 -2
  1049. package/dist/types/schema/components/button.d.ts +3 -4
  1050. package/dist/types/schema/components/combobox.d.ts +2 -0
  1051. package/dist/types/schema/components/drawer.d.ts +1 -1
  1052. package/dist/types/schema/components/index.d.ts +1 -1
  1053. package/dist/types/schema/components/input-radio.d.ts +1 -1
  1054. package/dist/types/schema/components/link-button.d.ts +2 -2
  1055. package/dist/types/schema/components/link.d.ts +2 -3
  1056. package/dist/types/schema/components/modal.d.ts +1 -1
  1057. package/dist/types/schema/components/nav.d.ts +2 -3
  1058. package/dist/types/schema/components/popover-button.d.ts +3 -3
  1059. package/dist/types/schema/components/popover.d.ts +1 -1
  1060. package/dist/types/schema/components/single-select.d.ts +3 -3
  1061. package/dist/types/schema/components/span.d.ts +1 -1
  1062. package/dist/types/schema/components/spin.d.ts +1 -1
  1063. package/dist/types/schema/components/table.d.ts +7 -2
  1064. package/dist/types/schema/components/tableStateless.d.ts +2 -2
  1065. package/dist/types/schema/components/tabs.d.ts +1 -1
  1066. package/dist/types/schema/components/toaster.d.ts +1 -2
  1067. package/dist/types/schema/index.d.ts +1 -1
  1068. package/dist/types/schema/props/index.d.ts +1 -1
  1069. package/dist/types/schema/props/inline.d.ts +7 -0
  1070. package/dist/types/schema/props/msg.d.ts +4 -2
  1071. package/dist/types/schema/props/options.d.ts +1 -1
  1072. package/dist/types/schema/props/popover-callbacks.d.ts +2 -1
  1073. package/dist/types/schema/props/table-callbacks.d.ts +3 -3
  1074. package/dist/types/schema/props/table-data-foot.d.ts +1 -1
  1075. package/dist/types/schema/props/table-data.d.ts +1 -1
  1076. package/dist/types/schema/props/toolbar-items.d.ts +5 -1
  1077. package/dist/types/schema/types/input/types.d.ts +5 -2
  1078. package/dist/types/schema/types/table-settings.d.ts +2 -1
  1079. package/dist/types/schema/types/table.d.ts +7 -2
  1080. package/dist/types/stencil-public-runtime.d.ts +35 -11
  1081. package/dist/types/utils/events.d.ts +1 -0
  1082. package/dist/types/utils/testing/index.d.ts +1 -1
  1083. package/doc/accordion.md +1 -1
  1084. package/doc/alert.md +1 -1
  1085. package/doc/avatar.md +5 -4
  1086. package/doc/badge.md +19 -6
  1087. package/doc/button-link.md +4 -4
  1088. package/doc/button.md +4 -3
  1089. package/doc/card.md +1 -1
  1090. package/doc/combobox.md +21 -20
  1091. package/doc/components.md +1 -1
  1092. package/doc/details.md +1 -1
  1093. package/doc/drawer.md +1 -1
  1094. package/doc/form.md +2 -2
  1095. package/doc/input-checkbox.md +4 -4
  1096. package/doc/input-color.md +20 -20
  1097. package/doc/input-date.md +26 -26
  1098. package/doc/input-email.md +28 -28
  1099. package/doc/input-file.md +20 -20
  1100. package/doc/input-number.md +26 -26
  1101. package/doc/input-password.md +27 -27
  1102. package/doc/input-radio.md +17 -17
  1103. package/doc/input-range.md +22 -22
  1104. package/doc/input-text.md +102 -29
  1105. package/doc/link-button.md +2 -2
  1106. package/doc/link.md +3 -3
  1107. package/doc/modal.md +1 -1
  1108. package/doc/nav.md +8 -9
  1109. package/doc/pagination.md +2 -2
  1110. package/doc/popover-button.md +24 -3
  1111. package/doc/progress.md +2 -2
  1112. package/doc/select.md +23 -23
  1113. package/doc/single-select.md +22 -22
  1114. package/doc/skip-nav.md +13 -0
  1115. package/doc/split-button.md +3 -3
  1116. package/doc/table-stateful.md +5 -5
  1117. package/doc/table-stateless.md +11 -11
  1118. package/doc/tabs.md +1 -1
  1119. package/doc/textarea.md +27 -27
  1120. package/doc/toaster.md +2 -0
  1121. package/doc/toolbar.md +1 -1
  1122. package/loader/index.d.ts +1 -0
  1123. package/loader/index.mjs +1 -0
  1124. package/package.json +18 -4
  1125. package/vscode-custom-data.json +353 -249
  1126. package/assets/codicons/LICENSE +0 -395
  1127. package/assets/codicons/LICENSE-CODE +0 -21
  1128. package/assets/codicons/codicon.css +0 -635
  1129. package/assets/codicons/codicon.csv +0 -467
  1130. package/assets/codicons/codicon.svg +0 -1
  1131. package/assets/codicons/codicon.ttf +0 -0
  1132. package/dist/cjs/Alert-DDA66DVu.js +0 -4
  1133. package/dist/cjs/Alert-DDA66DVu.js.map +0 -1
  1134. package/dist/cjs/Collapsible-IhYdCplx.js +0 -4
  1135. package/dist/cjs/Collapsible-IhYdCplx.js.map +0 -1
  1136. package/dist/cjs/CustomSuggestionsToggle-CeGKydyw.js +0 -4
  1137. package/dist/cjs/CustomSuggestionsToggle-CeGKydyw.js.map +0 -1
  1138. package/dist/cjs/FieldControlStateWrapper-DPxapC_D.js +0 -4
  1139. package/dist/cjs/FieldControlStateWrapper-DPxapC_D.js.map +0 -1
  1140. package/dist/cjs/FormFieldStateWrapper-C2VTSu-i.js +0 -4
  1141. package/dist/cjs/FormFieldStateWrapper-C2VTSu-i.js.map +0 -1
  1142. package/dist/cjs/Icon-D6G0_09j.js +0 -4
  1143. package/dist/cjs/Input-BRmqCQyF.js +0 -4
  1144. package/dist/cjs/Input-BRmqCQyF.js.map +0 -1
  1145. package/dist/cjs/component-names-D7MwtuB7.js +0 -4
  1146. package/dist/cjs/component-names-D7MwtuB7.js.map +0 -1
  1147. package/dist/cjs/controller-BF3IbQCZ.js.map +0 -1
  1148. package/dist/cjs/controller-BY1lNpWb.js.map +0 -1
  1149. package/dist/cjs/controller-icon-CdU193q2.js +0 -4
  1150. package/dist/cjs/controller-icon-CdU193q2.js.map +0 -1
  1151. package/dist/cjs/events-DDhO-Ns8.js.map +0 -1
  1152. package/dist/cjs/i18n-Drgbs46L.js +0 -4
  1153. package/dist/cjs/i18n-Drgbs46L.js.map +0 -1
  1154. package/dist/cjs/i18n-NiDr3RbD.js +0 -4
  1155. package/dist/cjs/index-DBmXlvaP.js +0 -4
  1156. package/dist/cjs/index-DBmXlvaP.js.map +0 -1
  1157. package/dist/cjs/link-variant-gYtaoJ43.js.map +0 -1
  1158. package/dist/components/CustomSuggestionsToggle.js +0 -4
  1159. package/dist/components/CustomSuggestionsToggle.js.map +0 -1
  1160. package/dist/components/link-variant.js +0 -4
  1161. package/dist/components/link-variant.js.map +0 -1
  1162. package/dist/esm/Alert-yh8R3coC.js +0 -4
  1163. package/dist/esm/Alert-yh8R3coC.js.map +0 -1
  1164. package/dist/esm/Collapsible-DMNJjdc3.js +0 -4
  1165. package/dist/esm/Collapsible-DMNJjdc3.js.map +0 -1
  1166. package/dist/esm/CustomSuggestionsToggle-_i-9Z6oo.js +0 -4
  1167. package/dist/esm/CustomSuggestionsToggle-_i-9Z6oo.js.map +0 -1
  1168. package/dist/esm/FieldControlStateWrapper-DxTxYvO0.js +0 -4
  1169. package/dist/esm/FieldControlStateWrapper-DxTxYvO0.js.map +0 -1
  1170. package/dist/esm/FormFieldStateWrapper-DRcnPo2o.js +0 -4
  1171. package/dist/esm/FormFieldStateWrapper-DRcnPo2o.js.map +0 -1
  1172. package/dist/esm/Icon-BsRmEtCa.js +0 -4
  1173. package/dist/esm/Input-BxElrU0N.js +0 -4
  1174. package/dist/esm/Input-BxElrU0N.js.map +0 -1
  1175. package/dist/esm/InternalUnderlinedBadgeText-BnPUgbKl.js +0 -4
  1176. package/dist/esm/access-and-short-key-bcID78Ha.js.map +0 -1
  1177. package/dist/esm/color-C3pYZKV3.js.map +0 -1
  1178. package/dist/esm/component-names-CkE54Ym7.js +0 -4
  1179. package/dist/esm/component-names-CkE54Ym7.js.map +0 -1
  1180. package/dist/esm/controller-BiC2tpL8.js.map +0 -1
  1181. package/dist/esm/controller-CV2y9Ae_.js.map +0 -1
  1182. package/dist/esm/controller-icon-DN63N3Rm.js +0 -4
  1183. package/dist/esm/controller-icon-DN63N3Rm.js.map +0 -1
  1184. package/dist/esm/disabled-BydergHu.js +0 -4
  1185. package/dist/esm/events-CoPFQEiC.js.map +0 -1
  1186. package/dist/esm/i18n-CdSCDnmA.js +0 -4
  1187. package/dist/esm/i18n-ZF6JbdVP.js +0 -4
  1188. package/dist/esm/i18n-ZF6JbdVP.js.map +0 -1
  1189. package/dist/esm/index-Dina3aff.js +0 -4
  1190. package/dist/esm/index-Dina3aff.js.map +0 -1
  1191. package/dist/esm/link-variant-H9yefO89.js +0 -4
  1192. package/dist/esm/link-variant-H9yefO89.js.map +0 -1
  1193. package/dist/esm/rows-P4l3PNiA.js.map +0 -1
  1194. package/dist/esm/table-settings-DSZObo-2.js.map +0 -1
  1195. package/dist/esm/tooltip-align-_VI7LehI.js +0 -4
  1196. package/dist/kolibri/Alert-yh8R3coC.js +0 -4
  1197. package/dist/kolibri/Alert-yh8R3coC.js.map +0 -1
  1198. package/dist/kolibri/Collapsible-DMNJjdc3.js +0 -4
  1199. package/dist/kolibri/Collapsible-DMNJjdc3.js.map +0 -1
  1200. package/dist/kolibri/CustomSuggestionsToggle-_i-9Z6oo.js +0 -4
  1201. package/dist/kolibri/CustomSuggestionsToggle-_i-9Z6oo.js.map +0 -1
  1202. package/dist/kolibri/FieldControlStateWrapper-DxTxYvO0.js +0 -4
  1203. package/dist/kolibri/FieldControlStateWrapper-DxTxYvO0.js.map +0 -1
  1204. package/dist/kolibri/FormFieldStateWrapper-DRcnPo2o.js +0 -4
  1205. package/dist/kolibri/FormFieldStateWrapper-DRcnPo2o.js.map +0 -1
  1206. package/dist/kolibri/Heading-KhwFHPZb.js +0 -4
  1207. package/dist/kolibri/Icon-BsRmEtCa.js +0 -4
  1208. package/dist/kolibri/Input-BxElrU0N.js +0 -4
  1209. package/dist/kolibri/Input-BxElrU0N.js.map +0 -1
  1210. package/dist/kolibri/InputStateWrapper-GJbSTDc8.js +0 -4
  1211. package/dist/kolibri/InternalUnderlinedBadgeText-BnPUgbKl.js +0 -4
  1212. package/dist/kolibri/Span-5ZR0JDnP.js +0 -4
  1213. package/dist/kolibri/access-and-short-key-bcID78Ha.js +0 -4
  1214. package/dist/kolibri/access-and-short-key-bcID78Ha.js.map +0 -1
  1215. package/dist/kolibri/app-globals-COkPg4hl.js +0 -4
  1216. package/dist/kolibri/assets/codicons/LICENSE +0 -395
  1217. package/dist/kolibri/assets/codicons/LICENSE-CODE +0 -21
  1218. package/dist/kolibri/assets/codicons/codicon.css +0 -635
  1219. package/dist/kolibri/assets/codicons/codicon.csv +0 -467
  1220. package/dist/kolibri/assets/codicons/codicon.svg +0 -1
  1221. package/dist/kolibri/assets/codicons/codicon.ttf +0 -0
  1222. package/dist/kolibri/assets/kolibri.ico +0 -0
  1223. package/dist/kolibri/bem-BiknXNcP.js +0 -4
  1224. package/dist/kolibri/color-C3pYZKV3.js.map +0 -1
  1225. package/dist/kolibri/component-names-CkE54Ym7.js +0 -4
  1226. package/dist/kolibri/component-names-CkE54Ym7.js.map +0 -1
  1227. package/dist/kolibri/controller-BiC2tpL8.js +0 -4
  1228. package/dist/kolibri/controller-BiC2tpL8.js.map +0 -1
  1229. package/dist/kolibri/controller-CV2y9Ae_.js +0 -4
  1230. package/dist/kolibri/controller-CV2y9Ae_.js.map +0 -1
  1231. package/dist/kolibri/controller-HR9pimff.js +0 -4
  1232. package/dist/kolibri/controller-icon-DN63N3Rm.js +0 -4
  1233. package/dist/kolibri/controller-icon-DN63N3Rm.js.map +0 -1
  1234. package/dist/kolibri/custom-class-CA0KGtrM.js +0 -4
  1235. package/dist/kolibri/events-CoPFQEiC.js.map +0 -1
  1236. package/dist/kolibri/has-closer-BBMh8HY3.js +0 -4
  1237. package/dist/kolibri/hide-label-DRunOux4.js +0 -4
  1238. package/dist/kolibri/href-zZq6HYWf.js +0 -4
  1239. package/dist/kolibri/i18n-CdSCDnmA.js +0 -4
  1240. package/dist/kolibri/i18n-ZF6JbdVP.js +0 -4
  1241. package/dist/kolibri/i18n-ZF6JbdVP.js.map +0 -1
  1242. package/dist/kolibri/image-source-RWPv7frZ.js +0 -4
  1243. package/dist/kolibri/index-Dina3aff.js +0 -5
  1244. package/dist/kolibri/index-Dina3aff.js.map +0 -1
  1245. package/dist/kolibri/link-variant-H9yefO89.js +0 -4
  1246. package/dist/kolibri/link-variant-H9yefO89.js.map +0 -1
  1247. package/dist/kolibri/multiple-bcm5IaCN.js +0 -4
  1248. package/dist/kolibri/open-D9q98v46.js +0 -4
  1249. package/dist/kolibri/placeholder-6URRds0_.js +0 -4
  1250. package/dist/kolibri/read-only-CcRldJ9w.js +0 -4
  1251. package/dist/kolibri/required-G86n77y0.js +0 -4
  1252. package/dist/kolibri/rows-P4l3PNiA.js +0 -4
  1253. package/dist/kolibri/rows-P4l3PNiA.js.map +0 -1
  1254. package/dist/kolibri/show-DsV_Vx8g.js +0 -4
  1255. package/dist/kolibri/spell-check-DIsLAYgk.js +0 -4
  1256. package/dist/kolibri/table-settings-DSZObo-2.js.map +0 -1
  1257. package/dist/kolibri/tooltip-align-_VI7LehI.js +0 -4
  1258. package/dist/kolibri/validation-CW_RXPSn.js +0 -4
  1259. package/dist/types/functional-components/CustomSuggestionsToggle/CustomSuggestionsToggle.d.ts +0 -7
  1260. package/dist/types/functional-components/CustomSuggestionsToggle/index.d.ts +0 -1
  1261. package/dist/types/functional-components/CustomSuggestionsToggle/test/snapshot.test.d.ts +0 -1
  1262. package/dist/types/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AAqB,CACtC,EAAkI,EAClI,QAAQ,KACL;QAFH,EAAE,iBAAiB,EAAE,KAAK,GAAG,iBAAiB,EAAE,KAAK,EAAE,UAAU,EAAE,iBAAiB,GAAG,EAAE,EAAE,sBAAsB,GAAG,EAAE,OAAY,EAAP,KAAK,GAAhI,MAAA,CAAA,EAAA,EAAA,CAAA,mBAAA,EAAA,OAAA,EAAA,OAAA,EAAA,mBAAA,EAAA,wBAAA,CAAkI,CAAF;AAGhI,IAAA,MAAM,aAAa,GAClB,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EACF,EAAA,KAAK,CACR;IAED,IAAI,CAAC,iBAAiB,EAAE;QACvB,QACC,CAAC,CAAA,aAAa,kBAAC,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,sBAAsB,CAAC,EAAM,EAAA,aAAa,GAC/E,QAAQ,CACM;;AAIlB,IAAA,MAAM,EAAE,KAAK,EAAE,eAAe,EAAqB,GAAA,iBAAiB,EAAjC,WAAW,GAAK,MAAA,CAAA,iBAAiB,EAA9D,CAAA,OAAA,CAA0C,CAAoB;AACpE,IAAA,MAAM,kBAAkB,GAAA,MAAA,CAAA,MAAA,CAAA,EACvB,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,eAAe,CAAC,EAC9C,EAAA,WAAW,CACd;IAED,QACC,8BAAY,kBAAkB,CAAA,EAC7B,CAAA,CAAC,aAAa,EAAC,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,qBAAqB,EAAE,uBAAuB,CAAC,EAAA,EAAM,aAAa,CAAA,EACvG,QAAQ,CACM,EAChB,CAAC,CAAA,sBAAsB,oBAAK,sBAAsB,CAAA,EAAG,iBAAiB,CAA0B,CACxF;AAEX;;;;","names":[],"sources":["src/functional-components/Heading/Heading.tsx"],"sourcesContent":["import { type FunctionalComponent as FC, h } from '@stencil/core';\nimport clsx from 'clsx';\nimport type { JSXBase } from '@stencil/core/internal';\nimport type { HeadingLevel } from '../../schema';\n\ntype HGroupProps = JSXBase.HTMLAttributes<HTMLElement>;\n\n// Define a base type for common props\ntype BaseProps = JSXBase.HTMLAttributes<HTMLHeadingElement | HTMLElement> & {\n\tlevel?: HeadingLevel;\n};\n\n// Define a type for the main headline props\ntype HeadlineProps = BaseProps;\n\n// Define a type for the secondary headline props\ntype SecondaryHeadlineProps = JSXBase.HTMLAttributes<HTMLParagraphElement>;\n\n// Define a type for the main Heading component props\nexport type HeadingProps = HeadlineProps & {\n\tsecondaryHeadline?: string;\n\tHeadingGroupProps?: HGroupProps;\n\tSecondaryHeadlineProps?: SecondaryHeadlineProps;\n};\n\nconst MIN_HEADING_LEVEL = 1;\nconst MAX_HEADING_LEVEL = 6;\n\n// Define a union type for valid headline tags\ntype HeadlineTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'strong';\n\n/**\n * Checks if the given level is a valid heading level.\n * @param level - The heading level to check.\n * @returns True if the level is valid, false otherwise.\n */\nfunction isValidHeadingLevel(level: number): boolean {\n\treturn level >= MIN_HEADING_LEVEL && level <= MAX_HEADING_LEVEL;\n}\n\n/**\n * Returns the appropriate headline tag based on the level.\n * If the level is invalid, returns 'strong'.\n * @param level - The heading level.\n * @returns The corresponding headline tag.\n */\nexport function getHeadlineTag(level: HeadingLevel | number): HeadlineTag {\n\treturn isValidHeadingLevel(level) ? (`h${level}` as HeadlineTag) : 'strong';\n}\n\n/**\n * Functional component for rendering a headline.\n * @param props - The properties for the headline component.\n * @param children - The children to render inside the headline.\n * @returns A VNode representing the headline.\n */\nconst KolHeadlineFc: FC<HeadlineProps> = ({ class: classNames, level = MIN_HEADING_LEVEL, ...other }, children) => {\n\tconst HeadlineTag = getHeadlineTag(level);\n\n\treturn (\n\t\t<HeadlineTag class={clsx('kol-headline', `kol-headline--${HeadlineTag}`, classNames)} {...other}>\n\t\t\t{children}\n\t\t</HeadlineTag>\n\t);\n};\n\n/**\n * Functional component for rendering a secondary headline.\n * The secondary text is rendered as a `<p>` because according to the HTML `hgroup`\n * specification the subheading does not create its own outline level.\n * @param props - The properties for the secondary headline component.\n * @param children - The children to render inside the secondary headline.\n * @returns A VNode representing the secondary headline.\n */\nconst KolSecondaryHeadlineFc: FC<SecondaryHeadlineProps> = ({ class: classNames, ...other }, children) => {\n\treturn (\n\t\t<p class={clsx('kol-headline kol-headline--group kol-headline--secondary', classNames)} {...other}>\n\t\t\t{children}\n\t\t</p>\n\t);\n};\n\n/**\n * Functional component for rendering a heading with an optional secondary headline.\n * @param props - The properties for the heading component.\n * @param children - The children to render inside the heading.\n * @returns A VNode representing the heading.\n */\nconst KolHeadingFc: FC<HeadingProps> = (\n\t{ secondaryHeadline, level = MIN_HEADING_LEVEL, class: classNames, HeadingGroupProps = {}, SecondaryHeadlineProps = {}, ...other },\n\tchildren,\n) => {\n\tconst headlineProps: HeadlineProps = {\n\t\tlevel,\n\t\t...other,\n\t};\n\n\tif (!secondaryHeadline) {\n\t\treturn (\n\t\t\t<KolHeadlineFc class={clsx(classNames, 'kol-headline--single')} {...headlineProps}>\n\t\t\t\t{children}\n\t\t\t</KolHeadlineFc>\n\t\t);\n\t}\n\n\tconst { class: groupClassNames, ...groupOthers } = HeadingGroupProps;\n\tconst headlineGroupProps: HGroupProps = {\n\t\tclass: clsx('kol-heading-group', groupClassNames),\n\t\t...groupOthers,\n\t};\n\n\treturn (\n\t\t<hgroup {...headlineGroupProps}>\n\t\t\t<KolHeadlineFc class={clsx(classNames, 'kol-headline--group', 'kol-headline--primary')} {...headlineProps}>\n\t\t\t\t{children}\n\t\t\t</KolHeadlineFc>\n\t\t\t<KolSecondaryHeadlineFc {...SecondaryHeadlineProps}>{secondaryHeadline}</KolSecondaryHeadlineFc>\n\t\t</hgroup>\n\t);\n};\n\nexport default KolHeadingFc;\n"],"version":3}
1
+ {"file":"Heading.js","mappings":";;;;;;;AAyBA,MAAM,iBAAiB,GAAG,CAAC;AAC3B,MAAM,iBAAiB,GAAG,CAAC;AAU3B,SAAS,mBA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G,EAAE,OAAY,EAAP,KAAK,GAAhI,MAAA,CAAA,EAAA,EAAA,CAAA,mBAAA,EAAA,OAAA,EAAA,OAAA,EAAA,mBAAA,EAAA,wBAAA,CAAkI,CAAF;AAGhI,IAAA,MAAM,aAAa,GAClB,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EACF,EAAA,KAAK,CACR;IAED,IAAI,CAAC,iBAAiB,EAAE;QACvB,QACC,CAAC,CAAA,aAAa,kBAAC,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,sBAAsB,CAAC,EAAM,EAAA,aAAa,GAC/E,QAAQ,CACM;;AAIlB,IAAA,MAAM,EAAE,KAAK,EAAE,eAAe,EAAqB,GAAA,iBAAiB,EAAjC,WAAW,GAAK,MAAA,CAAA,iBAAiB,EAA9D,CAAA,OAAA,CAA0C,CAAoB;AACpE,IAAA,MAAM,kBAAkB,GAAA,MAAA,CAAA,MAAA,CAAA,EACvB,KAAK,EAAE,IAAI,CAAC,mBAAmB,EAAE,eAAe,CAAC,EAC9C,EAAA,WAAW,CACd;IAED,QACC,8BAAY,kBAAkB,CAAA,EAC7B,CAAA,CAAC,aAAa,EAAC,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,qBAAqB,EAAE,uBAAuB,CAAC,EAAA,EAAM,aAAa,CAAA,EACvG,QAAQ,CACM,EAChB,CAAC,CAAA,sBAAsB,oBAAK,sBAAsB,CAAA,EAAG,iBAAiB,CAA0B,CACxF;AAEX;;;;","names":[],"sources":["src/functional-components/Heading/Heading.tsx"],"sourcesContent":["import { type FunctionalComponent as FC, h } from '@stencil/core';\nimport type { JSXBase } from '@stencil/core/internal';\nimport clsx from 'clsx';\nimport type { HeadingLevel } from '../../schema';\n\ntype HGroupProps = JSXBase.HTMLAttributes<HTMLElement>;\n\n// Define a base type for common props\ntype BaseProps = JSXBase.HTMLAttributes<HTMLHeadingElement | HTMLElement> & {\n\tlevel?: HeadingLevel;\n};\n\n// Define a type for the main headline props\ntype HeadlineProps = BaseProps;\n\n// Define a type for the secondary headline props\ntype SecondaryHeadlineProps = JSXBase.HTMLAttributes<HTMLParagraphElement>;\n\n// Define a type for the main Heading component props\nexport type HeadingProps = HeadlineProps & {\n\tsecondaryHeadline?: string;\n\tHeadingGroupProps?: HGroupProps;\n\tSecondaryHeadlineProps?: SecondaryHeadlineProps;\n};\n\nconst MIN_HEADING_LEVEL = 1;\nconst MAX_HEADING_LEVEL = 6;\n\n// Define a union type for valid headline tags\ntype HeadlineTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'strong';\n\n/**\n * Checks if the given level is a valid heading level.\n * @param level - The heading level to check.\n * @returns True if the level is valid, false otherwise.\n */\nfunction isValidHeadingLevel(level: number): boolean {\n\treturn level >= MIN_HEADING_LEVEL && level <= MAX_HEADING_LEVEL;\n}\n\n/**\n * Returns the appropriate headline tag based on the level.\n * If the level is invalid, returns 'strong'.\n * @param level - The heading level.\n * @returns The corresponding headline tag.\n */\nexport function getHeadlineTag(level: HeadingLevel | number): HeadlineTag {\n\treturn isValidHeadingLevel(level) ? (`h${level}` as HeadlineTag) : 'strong';\n}\n\n/**\n * Functional component for rendering a headline.\n * @param props - The properties for the headline component.\n * @param children - The children to render inside the headline.\n * @returns A VNode representing the headline.\n */\nconst KolHeadlineFc: FC<HeadlineProps> = ({ class: classNames, level = MIN_HEADING_LEVEL, ...other }, children) => {\n\tconst HeadlineTag = getHeadlineTag(level);\n\n\treturn (\n\t\t<HeadlineTag class={clsx('kol-headline', `kol-headline--${HeadlineTag}`, classNames)} {...other}>\n\t\t\t{children}\n\t\t</HeadlineTag>\n\t);\n};\n\n/**\n * Functional component for rendering a secondary headline.\n * The secondary text is rendered as a `<p>` because according to the HTML `hgroup`\n * specification the subheading does not create its own outline level.\n * @param props - The properties for the secondary headline component.\n * @param children - The children to render inside the secondary headline.\n * @returns A VNode representing the secondary headline.\n */\nconst KolSecondaryHeadlineFc: FC<SecondaryHeadlineProps> = ({ class: classNames, ...other }, children) => {\n\treturn (\n\t\t<p class={clsx('kol-headline kol-headline--group kol-headline--secondary', classNames)} {...other}>\n\t\t\t{children}\n\t\t</p>\n\t);\n};\n\n/**\n * Functional component for rendering a heading with an optional secondary headline.\n * @param props - The properties for the heading component.\n * @param children - The children to render inside the heading.\n * @returns A VNode representing the heading.\n */\nconst KolHeadingFc: FC<HeadingProps> = (\n\t{ secondaryHeadline, level = MIN_HEADING_LEVEL, class: classNames, HeadingGroupProps = {}, SecondaryHeadlineProps = {}, ...other },\n\tchildren,\n) => {\n\tconst headlineProps: HeadlineProps = {\n\t\tlevel,\n\t\t...other,\n\t};\n\n\tif (!secondaryHeadline) {\n\t\treturn (\n\t\t\t<KolHeadlineFc class={clsx(classNames, 'kol-headline--single')} {...headlineProps}>\n\t\t\t\t{children}\n\t\t\t</KolHeadlineFc>\n\t\t);\n\t}\n\n\tconst { class: groupClassNames, ...groupOthers } = HeadingGroupProps;\n\tconst headlineGroupProps: HGroupProps = {\n\t\tclass: clsx('kol-heading-group', groupClassNames),\n\t\t...groupOthers,\n\t};\n\n\treturn (\n\t\t<hgroup {...headlineGroupProps}>\n\t\t\t<KolHeadlineFc class={clsx(classNames, 'kol-headline--group', 'kol-headline--primary')} {...headlineProps}>\n\t\t\t\t{children}\n\t\t\t</KolHeadlineFc>\n\t\t\t<KolSecondaryHeadlineFc {...SecondaryHeadlineProps}>{secondaryHeadline}</KolSecondaryHeadlineFc>\n\t\t</hgroup>\n\t);\n};\n\nexport default KolHeadingFc;\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{_ as __rest}from"./tslib.es6.js";import{h,Fragment}from"@stencil/core/internal/client";import{c as clsx}from"./clsx.js";import"./common.js";import{d as getDefaultProps,c as checkHasMsg}from"./controller2.js";const InputFc=e=>{const{class:s,msg:l,required:o,disabled:r,touched:t,readonly:a,ariaDescribedBy:i,hideLabel:n,label:c,suggestions:d,value:u}=e,p=__rest(e,["class","msg","required","disabled","touched","readonly","ariaDescribedBy","hideLabel","label","suggestions","value"]),b=checkHasMsg(l,t),g="string"==typeof l?"error":null==l?void 0:l._type,m={"kol-input--disabled":Boolean(r),"kol-input--required":Boolean(o),"kol-input--touched":Boolean(t),"kol-input--readonly":Boolean(a),[`kol-input--${g||"error"}`]:b},y=Object.assign(Object.assign({class:clsx("kol-input",m,s),required:o,disabled:r,readonly:a,type:"text",list:d?`${p.id}-list`:void 0},getDefaultProps({ariaDescribedBy:i,hideLabel:n,label:c})),p);return h(Fragment,null,h("input",Object.assign({},y,{value:u})),d)};export{InputFc as I};
4
+ import{_ as __rest}from"./tslib.es6.js";import{h,Fragment}from"@stencil/core/internal/client";import{c as clsx}from"./clsx.js";import"./common.js";import{d as getDefaultProps,a as getMsgType,i as isMsgDefinedAndInputTouched}from"./controller2.js";const InputFc=e=>{const{class:s,msg:l,required:t,disabled:i,touched:a,readonly:o,ariaDescribedBy:n,hideLabel:r,label:d,suggestions:u,value:c}=e,p=__rest(e,["class","msg","required","disabled","touched","readonly","ariaDescribedBy","hideLabel","label","suggestions","value"]),g={"kol-input--disabled":Boolean(i),"kol-input--required":Boolean(t),"kol-input--touched":Boolean(a),"kol-input--readonly":Boolean(o),[`kol-input--${getMsgType(l)}`]:isMsgDefinedAndInputTouched(l,a)},b=Object.assign(Object.assign({class:clsx("kol-input",g,s),required:t,disabled:i,readonly:o,type:"text",list:u?`${p.id}-list`:void 0},getDefaultProps({ariaDescribedBy:n,hideLabel:r,label:d})),p);return h(Fragment,null,h("input",Object.assign({},b,{value:c})),u)};export{InputFc as I};
@@ -1 +1 @@
1
- {"file":"Input.js","mappings":";;;;;;;;;AAkBA,MAAM,OAAO,GAAmB,CAAC,KAAK,KAAI;IACzC,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,SAAS,E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,QAAA,EAAA,IAAA,EACC,CAAA,CAAA,OAAA,EAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAW,UAAU,EAAA,EAAE,KAAK,EAAE,KAAK,EAAI,CAAA,CAAA,EACtC,WAAW,CACV;AAEL;;;;","names":[],"sources":["src/functional-components/inputs/Input/Input.tsx"],"sourcesContent":["import { h, Fragment, type FunctionalComponent as FC } from '@stencil/core';\nimport type { JSXBase, VNode } from '@stencil/core/internal';\nimport clsx from 'clsx';\nimport { checkHasMsg, type MsgPropType, type Stringified } from '../../../schema';\nimport { getDefaultProps } from '../_helpers/getDefaultProps';\nimport type { DefaultInputProps } from '../_types';\n\nexport type InputProps = DefaultInputProps<JSXBase.InputHTMLAttributes<HTMLInputElement>> & {\n\tmsg?: Stringified<MsgPropType>;\n\ttouched?: boolean;\n\tspellcheck?: boolean;\n\tsuggestions?: VNode;\n\tvalue?: string | number | string[];\n} & {\n\t[key: `aria-${string}`]: unknown;\n\t[key: `data-${string}`]: unknown;\n};\n\nconst InputFc: FC<InputProps> = (props) => {\n\tconst { class: classNames, msg, required, disabled, touched, readonly, ariaDescribedBy, hideLabel, label, suggestions, value, ...other } = props;\n\n\tconst showMsg = checkHasMsg(msg, touched);\n\tconst msgType = typeof msg === 'string' ? 'error' : msg?._type;\n\n\tconst stateCssClasses = {\n\t\t['kol-input--disabled']: Boolean(disabled),\n\t\t['kol-input--required']: Boolean(required),\n\t\t['kol-input--touched']: Boolean(touched),\n\t\t['kol-input--readonly']: Boolean(readonly),\n\t\t[`kol-input--${msgType || 'error'}`]: showMsg,\n\t};\n\n\tconst inputProps: JSXBase.InputHTMLAttributes<HTMLInputElement> = {\n\t\tclass: clsx('kol-input', stateCssClasses, classNames),\n\t\trequired: required,\n\t\tdisabled: disabled,\n\t\treadonly: readonly,\n\t\ttype: 'text',\n\t\tlist: suggestions ? `${other.id}-list` : undefined,\n\t\t...getDefaultProps({ ariaDescribedBy, hideLabel, label }),\n\t\t...other,\n\t};\n\n\treturn (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C,EAAE,CAAA,KAAA,CAAO,GAAG,SAAS,EAC/C,EAAA,eAAe,CAAC,EAAE,eAAe,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,CAAA,EACtD,KAAK,CACR;AAED,IAAA,QACC,CAAA,CAAA,QAAA,EAAA,IAAA,EACC,CAAA,CAAA,OAAA,EAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAW,UAAU,EAAA,EAAE,KAAK,EAAE,KAAK,EAAI,CAAA,CAAA,EACtC,WAAW,CACV;AAEL;;;;","names":[],"sources":["src/functional-components/inputs/Input/Input.tsx"],"sourcesContent":["/* eslint-disable no-console */\nimport { Fragment, h, type FunctionalComponent as FC } from '@stencil/core';\nimport type { JSXBase, VNode } from '@stencil/core/internal';\nimport clsx from 'clsx';\nimport { getMsgType, isMsgDefinedAndInputTouched, type MsgPropType, type Stringified } from '../../../schema';\nimport { getDefaultProps } from '../_helpers/getDefaultProps';\nimport type { DefaultInputProps } from '../_types';\n\nexport type InputProps = DefaultInputProps<JSXBase.InputHTMLAttributes<HTMLInputElement>> & {\n\tmsg?: Stringified<MsgPropType>;\n\ttouched?: boolean;\n\tspellcheck?: boolean;\n\tsuggestions?: VNode;\n\tvalue?: string | number | string[];\n} & {\n\t[key: `aria-${string}`]: unknown;\n\t[key: `data-${string}`]: unknown;\n};\n\nconst InputFc: FC<InputProps> = (props) => {\n\tconst { class: classNames, msg, required, disabled, touched, readonly, ariaDescribedBy, hideLabel, label, suggestions, value, ...other } = props;\n\n\tconst stateCssClasses = {\n\t\t['kol-input--disabled']: Boolean(disabled),\n\t\t['kol-input--required']: Boolean(required),\n\t\t['kol-input--touched']: Boolean(touched),\n\t\t['kol-input--readonly']: Boolean(readonly),\n\t\t[`kol-input--${getMsgType(msg)}`]: isMsgDefinedAndInputTouched(msg, touched),\n\t};\n\n\tconst inputProps: JSXBase.InputHTMLAttributes<HTMLInputElement> = {\n\t\tclass: clsx('kol-input', stateCssClasses, classNames),\n\t\trequired: required,\n\t\tdisabled: disabled,\n\t\treadonly: readonly,\n\t\ttype: 'text',\n\t\tlist: suggestions ? `${other.id}-list` : undefined,\n\t\t...getDefaultProps({ ariaDescribedBy, hideLabel, label }),\n\t\t...other,\n\t};\n\n\treturn (\n\t\t<>\n\t\t\t<input {...inputProps} value={value} />\n\t\t\t{suggestions}\n\t\t</>\n\t);\n};\n\nexport default InputFc;\n"],"version":3}
@@ -1 +1 @@
1
- {"file":"InputStateWrapper.js","mappings":";;;;;;;;AASA,MAAM,aAAa,GAAyB,CAAC,EAA6B,KAAI;QAAjC,EAAE,EAAE,EAAE,WAAW,EAAA,GAAA,EAAY,EAAP,KAAK,GAAA,MAAA,CAAA,EAAA,EAA3B,qBAA6B,CAAF;IACvE,IAAI,CAAC,WAAW,EAAE;AACjB,QAAA,OAAO,IAAI;;IAGZ,QACC,CAAA,CAAA,UAAA,EAAA,MAAA,CAAA,MAAA,CAAA,EAAU,EAAE,EAAE,CAAA,EAAG,EAAE,CAAO,KAAA,CAAA,EAAA,EAAM,KAAK,CAAA,EACnC,WAAW,CAAC,GAAG,CAAC,CAAC,MAAqB,MACtC,CAAQ,CAAA,QAAA,EAAA,EAAA,KAAK,EAAE,MAAM,EAAI,CAAA,CACzB,CAAC,CACQ;AAEb;;ACmBA,SAAS,aAAa,CAAC,KAAiB,EAAE,KAA0B,EAAE,iBAA2B,EAAA;;AAChG,IAAA,MAAM,YAAY,GAAG,eAAe,CAAC,KAAK,CAAC;AAC3C,IAAA,MAAM,eAAe,GAAG,CAAC,GAAG,YAAY,CAAC,eAAe,EAAE,IAAI,CAAA,EAAA,GAAA,KAAK,CAAC,eAAe,mCAAI,EAAE,CAAC,CAAC;AAE3F,IAAA,MAAM,KAAK,GAAe;QACzB,EAAE,EAAE,KAAK,CAAC,GAAG;QACb,SAAS,EAAE,KAAK,CAAC,UAAU;QAC3B,KAAK,EAAE,KAAK,CAAC,MAAM;QACnB,QAAQ,EAAE,KAAK,CAAC,SAAS;QACzB,IAAI,EAAE,KAAK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,aAAa,CAAC,KAAK,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAAA,CAAI;AAC1E;;;;","names":["KolInputFc"],"sources":["src/functional-components/Suggestions/Suggestions.tsx","src/functional-component-wrappers/InputStateWrapper/InputStateWrapper.tsx"],"sourcesContent":["import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport type { JSXBase } from '@stencil/core/internal';\nimport type { W3CInputValue } from '../../schema';\n\nexport type SuggestionsProps = JSXBase.HTMLAttributes<HTMLDataListElement> & {\n\tid: string;\n\tsuggestions: W3CInputValue[];\n};\n\nconst SuggestionsFc: FC<SuggestionsProps> = ({ id, suggestions, ...other }) => {\n\tif (!suggestions) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<datalist id={`${id}-list`} {...other}>\n\t\t\t{suggestions.map((option: W3CInputValue) => (\n\t\t\t\t<option value={option} />\n\t\t\t))}\n\t\t</datalist>\n\t);\n};\nexport default SuggestionsFc;\n","import type { VNode } from '@stencil/core';\nimport { h, type FunctionalComponent as FC } from '@stencil/core';\nimport KolInputFc, { type InputProps } from '../../functional-components/inputs/Input';\n\nimport {\n\ttype InputColorStates,\n\ttype InputEmailStates,\n\ttype InputFileStates,\n\ttype InputNumberStates,\n\ttype InputPasswordStates,\n\ttype InputRangeStates,\n\ttype InputTextStates,\n\ttype InputCheckboxStates,\n\ttype InputRadioStates,\n\ttype MsgPropType,\n} from '../../schema';\nimport { getRenderStates } from '../_helpers/getRenderStates';\nimport SuggestionsFc from '../../functional-components/Suggestions';\n\ntype InputState =\n\t| InputTextStates\n\t| InputEmailStates\n\t| InputPasswordStates\n\t| InputNumberStates\n\t| InputColorStates\n\t| InputFileStates\n\t| InputRangeStates\n\t| InputCheckboxStates\n\t| InputRadioStates;\n\nexport type InputStateWrapperProps = Partial<InputProps> & {\n\tstate: InputState;\n\tcustomSuggestions?: boolean;\n};\n\n/**\n * @param state\n * @param other\n * @param customSuggestions - Set to true when a custom implementation for _suggestions is provided. Omits the native datalist.\n */\nfunction getInputProps(state: InputState, other: Partial<InputProps>, customSuggestions?: boolean): InputProps {\n\tconst renderStates = getRenderStates(state);\n\tconst ariaDescribedBy = [...renderStates.ariaDescribedBy, ...(other.ariaDescribedBy ?? [])];\n\n\tconst props: InputProps = {\n\t\tid: state._id,\n\t\thideLabel: state._hideLabel,\n\t\tlabel: state._label,\n\t\tdisabled: state._disabled,\n\t\tname: state._name,\n\t};\n\n\tif ('_accessKey' in state) props.accessKey = state._accessKey;\n\tif ('_type' in state) props.type = state._type;\n\tif ('_value' in state) props.value = state._value as string | number | string[];\n\tif ('_required' in state) props.required = state._required;\n\tif ('_maxLength' in state && '_maxLengthBehavior' in state && state._maxLengthBehavior === 'hard') props.maxlength = state._maxLength;\n\tif ('_placeholder' in state) props.placeholder = state._placeholder;\n\tif ('_autoComplete' in state) props.autoComplete = state._autoComplete;\n\tif ('_spellCheck' in state) props.spellcheck = state._spellCheck;\n\tif ('_pattern' in state) props.pattern = state._pattern;\n\tif ('_readOnly' in state) props.readonly = state._readOnly;\n\tif ('_min' in state) props.min = state._min;\n\tif ('_max' in state) props.max = state._max;\n\tif ('_step' in state) props.step = state._step;\n\tif ('_multiple' in state) props.multiple = state._multiple;\n\tif ('_checked' in state) props.checked = state._checked;\n\tif ('_indeterminate' in state) props.indeterminate = state._indeterminate;\n\tif ('_touched' in state) props.touched = state._touched;\n\tif ('_msg' in state) props.msg = state._msg as MsgPropType;\n\tif ('_shortKey' in state) props['aria-keyshortcuts'] = state._shortKey;\n\n\tif ('_suggestions' in state && !customSuggestions) {\n\t\tconst hasSuggestions = Array.isArray(state._suggestions) && state._suggestions.length > 0;\n\t\tif (hasSuggestions) {\n\t\t\tprops.suggestions = (<SuggestionsFc id={state._id} suggestions={state._suggestions} />) as VNode;\n\t\t}\n\t}\n\n\treturn {\n\t\t...props,\n\t\t...other,\n\t\tariaDescribedBy,\n\t};\n}\n\nconst InputStateWrapper: FC<InputStateWrapperProps> = ({ state, customSuggestions, ...other }) => {\n\treturn <Kol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AAC,aAAa,GAAG,KAAK,CAAC,cAAc;IACzE,IAAI,UAAU,IAAI,KAAK;AAAE,QAAA,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC,QAAQ;IACvD,IAAI,MAAM,IAAI,KAAK;AAAE,QAAA,KAAK,CAAC,GAAG,GAAG,KAAK,CAAC,IAAmB;IAC1D,IAAI,WAAW,IAAI,KAAK;AAAE,QAAA,KAAK,CAAC,mBAAmB,CAAC,GAAG,KAAK,CAAC,SAAS;AAEtE,IAAA,IAAI,cAAc,IAAI,KAAK,IAAI,CAAC,iBAAiB,EAAE;AAClD,QAAA,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,KAAK,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC;QACzF,IAAI,cAAc,EAAE;YACnB,KAAK,CAAC,WAAW,IAAI,EAAC,aAAa,EAAA,EAAC,EAAE,EAAE,KAAK,CAAC,GAAG,EAAE,WAAW,EAAE,KAAK,CAAC,YAAY,EAAA,CAAI,CAAU;;;IAIlG,OAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EACI,KAAK,CAAA,EACL,KAAK,CAAA,EAAA,EACR,eAAe,EACd,CAAA;AACH;AAEA,MAAM,iBAAiB,GAA+B,CAAC,EAAsC,KAAI;QAA1C,EAAE,KAAK,EAAE,iBAAiB,EAAA,GAAA,EAAY,EAAP,KAAK,GAAA,MAAA,CAAA,EAAA,EAApC,8BAAsC,CAAF;IAC1F,OAAO,CAAC,CAAAA,OAAU,EAAK,MAAA,CAAA,MAAA,CAAA,EAAA,EAAA,aAAa,CAAC,KAAK,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAAA,CAAI;AAC1E;;;;","names":["KolInputFc"],"sources":["src/functional-components/Suggestions/Suggestions.tsx","src/functional-component-wrappers/InputStateWrapper/InputStateWrapper.tsx"],"sourcesContent":["import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport type { JSXBase } from '@stencil/core/internal';\nimport type { W3CInputValue } from '../../schema';\n\nexport type SuggestionsProps = JSXBase.HTMLAttributes<HTMLDataListElement> & {\n\tid: string;\n\tsuggestions: W3CInputValue[];\n};\n\nconst SuggestionsFc: FC<SuggestionsProps> = ({ id, suggestions, ...other }) => {\n\tif (!suggestions) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<datalist id={`${id}-list`} {...other}>\n\t\t\t{suggestions.map((option: W3CInputValue) => (\n\t\t\t\t<option value={option} />\n\t\t\t))}\n\t\t</datalist>\n\t);\n};\nexport default SuggestionsFc;\n","import type { VNode } from '@stencil/core';\nimport { h, type FunctionalComponent as FC } from '@stencil/core';\nimport KolInputFc, { type InputProps } from '../../functional-components/inputs/Input';\n\nimport SuggestionsFc from '../../functional-components/Suggestions';\nimport {\n\ttype InputCheckboxStates,\n\ttype InputColorStates,\n\ttype InputEmailStates,\n\ttype InputFileStates,\n\ttype InputNumberStates,\n\ttype InputPasswordStates,\n\ttype InputRadioStates,\n\ttype InputRangeStates,\n\ttype InputTextStates,\n\ttype MsgPropType,\n} from '../../schema';\nimport { getRenderStates } from '../_helpers/getRenderStates';\n\ntype InputState =\n\t| InputTextStates\n\t| InputEmailStates\n\t| InputPasswordStates\n\t| InputNumberStates\n\t| InputColorStates\n\t| InputFileStates\n\t| InputRangeStates\n\t| InputCheckboxStates\n\t| InputRadioStates;\n\nexport type InputStateWrapperProps = Partial<InputProps> & {\n\tstate: InputState;\n\tcustomSuggestions?: boolean;\n};\n\n/**\n * @param state\n * @param other\n * @param customSuggestions - Set to true when a custom implementation for _suggestions is provided. Omits the native datalist.\n */\nfunction getInputProps(state: InputState, other: Partial<InputProps>, customSuggestions?: boolean): InputProps {\n\tconst renderStates = getRenderStates(state);\n\tconst ariaDescribedBy = [...renderStates.ariaDescribedBy, ...(other.ariaDescribedBy ?? [])];\n\n\tconst props: InputProps = {\n\t\tid: state._id,\n\t\thideLabel: state._hideLabel,\n\t\tlabel: state._label,\n\t\tdisabled: state._disabled,\n\t\tname: state._name,\n\t};\n\n\tif ('_accessKey' in state) props.accessKey = state._accessKey;\n\tif ('_type' in state) props.type = state._type;\n\tif ('_value' in state) props.value = state._value as string | number | string[];\n\tif ('_required' in state) props.required = state._required;\n\tif ('_maxLength' in state && '_maxLengthBehavior' in state && state._maxLengthBehavior === 'hard') props.maxlength = state._maxLength;\n\tif ('_placeholder' in state) props.placeholder = state._placeholder;\n\tif ('_autoComplete' in state) props.autoComplete = state._autoComplete;\n\tif ('_spellCheck' in state) props.spellcheck = state._spellCheck;\n\tif ('_pattern' in state) props.pattern = state._pattern;\n\tif ('_readOnly' in state) props.readonly = state._readOnly;\n\tif ('_min' in state) props.min = state._min;\n\tif ('_max' in state) props.max = state._max;\n\tif ('_step' in state) props.step = state._step;\n\tif ('_multiple' in state) props.multiple = state._multiple;\n\tif ('_checked' in state) props.checked = state._checked;\n\tif ('_indeterminate' in state) props.indeterminate = state._indeterminate;\n\tif ('_touched' in state) props.touched = state._touched;\n\tif ('_msg' in state) props.msg = state._msg as MsgPropType;\n\tif ('_shortKey' in state) props['aria-keyshortcuts'] = state._shortKey;\n\n\tif ('_suggestions' in state && !customSuggestions) {\n\t\tconst hasSuggestions = Array.isArray(state._suggestions) && state._suggestions.length > 0;\n\t\tif (hasSuggestions) {\n\t\t\tprops.suggestions = (<SuggestionsFc id={state._id} suggestions={state._suggestions} />) as VNode;\n\t\t}\n\t}\n\n\treturn {\n\t\t...props,\n\t\t...other,\n\t\tariaDescribedBy,\n\t};\n}\n\nconst InputStateWrapper: FC<InputStateWrapperProps> = ({ state, customSuggestions, ...other }) => {\n\treturn <KolInputFc {...getInputProps(state, other, customSuggestions)} />;\n};\n\nexport default InputStateWrapper;\n"],"version":3}
@@ -1 +1 @@
1
- {"file":"Span.js","mappings":";;;;;;;;;;;;;AAMA,MAAM,UAAU,GAA+C,CAAC,KAAK,KAAI;AACxE,IAAA,MAAM,EAAE,KAAK,E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CAAA,EAAA,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,EAAE,sBAAsB,EAAE,SAAS,EAAE,EAAE,UAAU,CAAC,IAAM,KAAK,CAAA,EACzF,QAAQ,CAAC,YAAY,CAAC,IAAI,CAAC,CAAA,UAAU,EAAC,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EAAC,KAAK,EAAK,EAAA,YAAY,CAAI,CAAA,EACvE,CAAM,CAAA,MAAA,EAAA,EAAA,KAAK,EAAC,qBAAqB,EAAA,EAC/B,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,CAAA,UAAU,EAAC,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EAAC,MAAM,EAAK,EAAA,aAAa,CAAI,CAAA,EAC1E,CAAA,CAACA,mBAAc,EAAC,EAAA,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,EAAE,SAAS,EAAE,SAAS,EAAA,EACpG,QAAQ,CACO,EAChB,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,CAAA,UAAU,EAAC,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EAAC,OAAO,EAAK,EAAA,cAAc,EAAI,CACvE,EACN,QAAQ,CAAC,eAAe,CAAC,IAAI,EAAC,UAAU,EAAA,MAAA,CAAA,MAAA,CAAA,EAAC,KAAK,EAAC,QAAQ,EAAK,EAAA,eAAe,CAAI,CAAA,CAC1E;AAET;;;;","names":["SpanCoreHelper"],"sources":["src/functional-components/Span/IconHelper.tsx","src/functional-components/Span/LabelHelper.tsx","src/functional-components/Span/SpanCoreHelper.tsx","src/functional-components/Span/Span.tsx"],"sourcesContent":["import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport clsx from 'clsx';\n\nimport type { KoliBriCustomIcon } from '../../schema';\nimport KolIconFc from '../Icon';\n\nconst IconHelper: FC<KoliBriCustomIcon & { class?: string }> = (props) => {\n\tconst { class: classNames, style, label, icon } = props;\n\n\treturn <KolIconFc class={clsx('icon', classNames)} style={style} label={label || ''} icons={icon} />;\n};\n\nexport default IconHelper;\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport clsx from 'clsx';\nimport { isString } from 'lodash-es';\n\nimport { md } from '../../utils/markdown';\nimport KolInternalUnderlinedBadgeTextFc from '../InternalUnderlinedBadgeText';\n\nconst LabelHelper: FC<{ label: string; hideLabel?: boolean; badgeText?: string; hideExpertSlot?: boolean; allowMarkdown?: boolean }> = ({\n\tlabel,\n\thideLabel,\n\tallowMarkdown,\n\tbadgeText,\n}) => {\n\tif (hideLabel || !isString(label)) {\n\t\treturn null;\n\t}\n\n\tconst defaultClasses = 'kol-span__label';\n\n\tif (allowMarkdown) {\n\t\treturn <span class={clsx(defaultClasses, 'md')} innerHTML={md(label)} />;\n\t}\n\n\tif (badgeText) {\n\t\treturn (\n\t\t\t<span class={clsx(defaultClasses)}>\n\t\t\t\t<KolInternalUnderlinedBadgeTextFc label={label} badgeText={badgeText} />\n\t\t\t</span>\n\t\t);\n\t}\n\n\treturn <span class={clsx(defaultClasses)}>{label}</span>;\n};\n\nexport default LabelHelper;\n","import { Fragment, h, type FunctionalComponent as FC } from '@stencil/core';\nimport { isString } from 'lodash-es';\n\nimport { showExpertSlot } from '../../schema';\nimport LabelHelper from './LabelHelper';\n\nconst KolSpanCoreHelperFc: FC<{ label: string; hideLabel?: boolean; badgeText?: string; hideExpertSlot?: boolean; allowMarkdown?: boolean }> = (\n\t{ hideLabel, label, badgeText, allowMarkdown },\n\tchildren,\n) => {\n\tconst hideExpertSlot = !showExpertSlot(label);\n\n\treturn (\n\t\t<>\n\t\t\t{hideExpertSlot && <LabelHelper label={label} hideLabel={hideLabel} badgeText={badgeText} allowMarkdown={allowMarkdown} />}\n\t\t\t<span aria-hidden={hideExpertSlot ? 'true' : undefined} class=\"kol-span__label\" hidden={hideExpertSlot}>\n\t\t\t\t{children}\n\t\t\t</span>\n\t\t\t{isString(badgeText) && badgeText.length > 0 && (\n\t\t\t\t<kbd class=\"badge-text-hint\" aria-hidden=\"true\">\n\t\t\t\t\t{badgeText}\n\t\t\t\t</kbd>\n\t\t\t)}\n\t\t</>\n\t);\n};\n\nexport default KolSpanCoreHelperFc;\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport type { JSXBase } from '@stencil/core/internal';\nimport clsx from 'clsx';\nimport { isString, isObject } from 'lodash-es';\n\nimport { type BadgeTextPropType, type HideLabelPropType, type IconOrIconClass, type KoliBriIconsProp, type LabelWithExpertSlotPropType } from '../../schema';\n\nimport IconHelper from './IconHelper';\nimport SpanCoreHelper from './SpanCoreHelper';\n\ntype IconType = IconOrIconClass | undefined | null;\n\nexport type SpanProps = JSXBase.HTMLAttributes<HTMLSpanElement> & {\n\tlabel: LabelWithExpertSlotPropType;\n\tbadgeText?: BadgeTextPropType;\n\tallowMarkdown?: boolean;\n\ticons?: KoliBriIconsProp;\n\thideLabel?: HideLabelPropType;\n};\n\nconst KolSpanFc: FC<SpanProps> = (props, children) => {\n\tconst { class: classNames, label, hideLabel = false, badgeText, allowMarkdown, icons, ...other } = props;\n\tlet topIconProps: IconType = null;\n\tlet leftIconProps: IconType = null;\n\tlet rightIconProps: IconType = null;\n\tlet bottomIconProps: IconType = null;\n\n\tif (isObject(icons)) {\n\t\ttopIconProps = icons.top;\n\t\tleftIconProps = icons.left;\n\t\trightIconProps = icons.right;\n\t\tbottomIconProps = icons.bottom;\n\t} else if (isString(icons)) {\n\t\tleftIconProps = {\n\t\t\ticon: icons,\n\t\t};\n\t}\n\n\treturn (\n\t\t<span class={clsx('kol-span', { 'kol-span--hide-label': hideLabel }, classNames)} {...other}>\n\t\t\t{isObject(topIconProps) && <IconHelper class=\"top\" {...topIconProps} />}\n\t\t\t<span class=\"kol-span__container\">\n\t\t\t\t{isObject(leftIconProps) && <IconHelper class=\"left\" {...leftIconProps} />}\n\t\t\t\t<SpanCoreHelper label={label} hideLabel={hideLabel} allowMarkdown={allowMarkdown} badgeText={badgeText}>\n\t\t\t\t\t{children}\n\t\t\t\t</SpanCoreHelper>\n\t\t\t\t{isObject(rightIconProps) && <IconHelper class=\"right\" {...rightIconProps} />}\n\t\t\t</span>\n\t\t\t{isObject(bottomIconProps) && <IconHelper class=\"bottom\" {...bottomIconProps} />}\n\t\t</span>\n\t);\n};\n\nexport default KolSpanFc;\n"],"version":3}
1
+ {"file":"Span.js","mappings":";;;;;;;;;;;;;AAMA,MAAM,UAAU,GAA+C,CAAC,KAAK,KAAI;AACxE,IAAA,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,KAAK;AAEvD,IAAA,OAAO,CAAA,CAAC,SAAS,EAAA,EAAC,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,UAAU,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAA,CAAI;AACrG,CAAC;;ACHD,MAAM,WAAW,GAAsH,CAAC,EACvI,KAAK,EACL,SAAS,EACT,aAAa,EACb,SAAS,GACT,KAAI;IACJ,IAAI,SAAS,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;AAClC,QAAA,OAAO,IAAI;;IAGZ,MAAM,cAAc,GAAG,iBAAiB;IAExC,IAAI,aAAa,EAAE;QAClB,OAAO,YAAM,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,EAAE,SAAS,EAAE,EAAE,CAAC,KAAK,CAAC,GAAI;;IAGzE,IAAI,SAAS,EAAE;AACd,QAAA,QACC,CAAM,CAAA,MAAA,EAAA,EAAA,KAAK,EAAE,IAAI,CAAC,cAAc,CAAC,EAAA,EAChC,CAAA,CAAC,gCAAgC,EAAA,EAAC,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAA,CAAI,CAClE;;AAIT,IAAA,OAAO,CAAA,CAAA,MAAA,EAAA,EAAM,KAAK,EAAE,IAAI,CAAC,cAAc,CAA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Helper"],"sources":["src/functional-components/Span/IconHelper.tsx","src/functional-components/Span/LabelHelper.tsx","src/functional-components/Span/SpanCoreHelper.tsx","src/functional-components/Span/Span.tsx"],"sourcesContent":["import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport clsx from 'clsx';\n\nimport type { KoliBriCustomIcon } from '../../schema';\nimport KolIconFc from '../Icon';\n\nconst IconHelper: FC<KoliBriCustomIcon & { class?: string }> = (props) => {\n\tconst { class: classNames, style, label, icon } = props;\n\n\treturn <KolIconFc class={clsx('icon', classNames)} style={style} label={label || ''} icons={icon} />;\n};\n\nexport default IconHelper;\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport clsx from 'clsx';\nimport { isString } from 'lodash-es';\n\nimport { md } from '../../utils/markdown';\nimport KolInternalUnderlinedBadgeTextFc from '../InternalUnderlinedBadgeText';\n\nconst LabelHelper: FC<{ label: string; hideLabel?: boolean; badgeText?: string; hideExpertSlot?: boolean; allowMarkdown?: boolean }> = ({\n\tlabel,\n\thideLabel,\n\tallowMarkdown,\n\tbadgeText,\n}) => {\n\tif (hideLabel || !isString(label)) {\n\t\treturn null;\n\t}\n\n\tconst defaultClasses = 'kol-span__label';\n\n\tif (allowMarkdown) {\n\t\treturn <span class={clsx(defaultClasses, 'md')} innerHTML={md(label)} />;\n\t}\n\n\tif (badgeText) {\n\t\treturn (\n\t\t\t<span class={clsx(defaultClasses)}>\n\t\t\t\t<KolInternalUnderlinedBadgeTextFc label={label} badgeText={badgeText} />\n\t\t\t</span>\n\t\t);\n\t}\n\n\treturn <span class={clsx(defaultClasses)}>{label}</span>;\n};\n\nexport default LabelHelper;\n","import { Fragment, h, type FunctionalComponent as FC } from '@stencil/core';\nimport { isString } from 'lodash-es';\n\nimport { showExpertSlot } from '../../schema';\nimport LabelHelper from './LabelHelper';\n\nconst KolSpanCoreHelperFc: FC<{ label: string; hideLabel?: boolean; badgeText?: string; hideExpertSlot?: boolean; allowMarkdown?: boolean }> = (\n\t{ hideLabel, label, badgeText, allowMarkdown },\n\tchildren,\n) => {\n\tconst hideExpertSlot = !showExpertSlot(label);\n\n\treturn (\n\t\t<>\n\t\t\t{hideExpertSlot && <LabelHelper label={label} hideLabel={hideLabel} badgeText={badgeText} allowMarkdown={allowMarkdown} />}\n\t\t\t<span aria-hidden={hideExpertSlot ? 'true' : undefined} class=\"kol-span__label\" hidden={hideExpertSlot}>\n\t\t\t\t{children}\n\t\t\t</span>\n\t\t\t{isString(badgeText) && badgeText.length > 0 && (\n\t\t\t\t<kbd class=\"badge-text-hint\" aria-hidden=\"true\">\n\t\t\t\t\t{badgeText}\n\t\t\t\t</kbd>\n\t\t\t)}\n\t\t</>\n\t);\n};\n\nexport default KolSpanCoreHelperFc;\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport type { JSXBase } from '@stencil/core/internal';\nimport clsx from 'clsx';\nimport { isObject, isString } from 'lodash-es';\n\nimport { type BadgeTextPropType, type HideLabelPropType, type IconOrIconClass, type KoliBriIconsProp, type LabelWithExpertSlotPropType } from '../../schema';\n\nimport IconHelper from './IconHelper';\nimport SpanCoreHelper from './SpanCoreHelper';\n\ntype IconType = IconOrIconClass | undefined | null;\n\nexport type SpanProps = JSXBase.HTMLAttributes<HTMLSpanElement> & {\n\tlabel: LabelWithExpertSlotPropType;\n\tbadgeText?: BadgeTextPropType;\n\tallowMarkdown?: boolean;\n\ticons?: KoliBriIconsProp;\n\thideLabel?: HideLabelPropType;\n};\n\nconst KolSpanFc: FC<SpanProps> = (props, children) => {\n\tconst { class: classNames, label, hideLabel = false, badgeText, allowMarkdown, icons, ...other } = props;\n\tlet topIconProps: IconType = null;\n\tlet leftIconProps: IconType = null;\n\tlet rightIconProps: IconType = null;\n\tlet bottomIconProps: IconType = null;\n\n\tif (isObject(icons)) {\n\t\ttopIconProps = icons.top;\n\t\tleftIconProps = icons.left;\n\t\trightIconProps = icons.right;\n\t\tbottomIconProps = icons.bottom;\n\t} else if (isString(icons)) {\n\t\tleftIconProps = {\n\t\t\ticon: icons,\n\t\t};\n\t}\n\n\treturn (\n\t\t<span class={clsx('kol-span', { 'kol-span--hide-label': hideLabel }, classNames)} {...other}>\n\t\t\t{isObject(topIconProps) && <IconHelper class=\"top\" {...topIconProps} />}\n\t\t\t<span class=\"kol-span__container\">\n\t\t\t\t{isObject(leftIconProps) && <IconHelper class=\"left\" {...leftIconProps} />}\n\t\t\t\t<SpanCoreHelper label={label} hideLabel={hideLabel} allowMarkdown={allowMarkdown} badgeText={badgeText}>\n\t\t\t\t\t{children}\n\t\t\t\t</SpanCoreHelper>\n\t\t\t\t{isObject(rightIconProps) && <IconHelper class=\"right\" {...rightIconProps} />}\n\t\t\t</span>\n\t\t\t{isObject(bottomIconProps) && <IconHelper class=\"bottom\" {...bottomIconProps} />}\n\t\t</span>\n\t);\n};\n\nexport default KolSpanFc;\n"],"version":3}
@@ -1 +1 @@
1
- {"file":"access-and-short-key.js","mappings":";;;;;MAea,iBAAiB,GAAG,CAAC,SAAoC,EAAE,KAAyB,KAAU;AAC1G,IAAA,WAAW,CAAC,SAAS,EAAE,YAAY,EAAE,KAAK,CAAC;AAC5C;;MCHa,gBAAgB,GAAG,CAAC,SAAoC,EAAE,KAAwB,KAAU;AACxG,IAAA,WAAW,CAAC,SAAS,EAAE,WAAW,EAAE,KAAK,CAAC;AAC3C;;ACCA,MAAM,OAAO,GAAuB;AACnC,IAAA,KAAK,EAAE;AACN,QAAA,UAAU,EAAE,CAAC,KAAK,KAAI;YACrB,IAAI,KAAK,KAAK,EAAE,IAAI,KAAK,KAAK,CAAC,EAAE;gBAChC,QAAQ,CAAC,CAA4G,0GAAA,CAAA,CAAC;;SAEvH;AACD,KAAA;CACD;MAGY,gBAAgB,GAAG,CAAC,SAAoC,EAAE,KAAwB,KAAU;IACxG,WAAW,CAAC,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,CAAC;AACpD;;MC5Ba,yBAAyB,GAAG,CAAC,SAA6B,EAAE,QAA2B,KAAI;AACvG,IAAA,IAAI,SAAS,IAAI,QAAQ,EAAE;AAC1B,QAAA,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC;;AAE1E;;;;","names":[],"sources":["src/schema/props/access-key.ts","src/schema/props/short-key.ts","src/schema/props/tab-index.ts","src/schema/validators/access-and-short-key.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\nimport { watchString } from '../utils';\n\n/* types */\nexport type AccessKeyPropType = string;\n\n/**\n * Defines the key combination that can be used to trigger or focus the components interactive element.\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/accesskey\n */\nexport type PropAccessKey = {\n\taccessKey: AccessKeyPropType;\n};\n\n/* validator */\nexport const validateAccessKey = (component: Generic.Element.Component, value?: AccessKeyPropType): void => {\n\twatchString(component, '_accessKey', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\nimport { watchString } from '../utils';\n\n/* types */\nexport type ShortKeyPropType = string;\n\n/**\n * Adds a visual short key hint to the component and sets the `aria-keyshortcuts` attribute on the focusable element.\n */\nexport type PropShortKey = {\n\tshortKey: ShortKeyPropType;\n};\n\n/* validator */\nexport const validateShortKey = (component: Generic.Element.Component, value?: ShortKeyPropType): void => {\n\twatchString(component, '_shortKey', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { WatchNumberOptions } from '../utils';\nimport { a11yHint, watchNumber } from '../utils';\n\n/* types */\nexport type TabIndexPropType = number;\n\n/**\n * Defines which tab-index the primary element of the component has.\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex\n */\nexport type PropTabIndex = {\n\ttabIndex: TabIndexPropType;\n};\n\n/* constants */\nconst options: WatchNumberOptions = {\n\thooks: {\n\t\tafterPatch: (value) => {\n\t\t\tif (value !== -1 && value !== 0) {\n\t\t\t\ta11yHint(`Don't Use Tabindex Greater than 0: https://adrianroselli.com/2014/11/dont-use-tabindex-greater-than-0.html`);\n\t\t\t}\n\t\t},\n\t},\n};\n\n/* validator */\nexport const validateTabIndex = (component: Generic.Element.Component, value?: TabIndexPropType): void => {\n\twatchNumber(component, '_tabIndex', value, options);\n};\n","import type { AccessKeyPropType, ShortKeyPropType } from '../props';\n\nexport const validateAccessAndShortKey = (accessKey?: AccessKeyPropType, shortKey?: ShortKeyPropType) => {\n\tif (accessKey && shortKey) {\n\t\tthrow new Error('AccessKey and ShortKey are used. Only one is allowed.');\n\t}\n};\n"],"version":3}
1
+ {"file":"access-and-short-key.js","mappings":";;;;;MAea,iBAAiB,GAAG,CAAC,SAAoC,EAAE,KAAyB,KAAU;AAC1G,IAAA,WAAW,CAAC,SAAS,EAAE,YAAY,EAAE,KAAK,CAAC;AAC5C;;MCHa,gBAAgB,GAAG,CAAC,SAAoC,EAAE,KAAwB,KAAU;AACxG,IAAA,WAAW,CAAC,SAAS,EAAE,WAAW,EAAE,KAAK,CAAC;AAC3C;;ACCA,MAAM,OAAO,GAAuB;AACnC,IAAA,KAAK,EAAE;AACN,QAAA,UAAU,EAAE,CAAC,KAAK,KAAI;YACrB,IAAI,KAAK,KAAK,EAAE,IAAI,KAAK,KAAK,CAAC,EAAE;gBAChC,QAAQ,CAAC,CAA4G,0GAAA,CAAA,CAAC;;SAEvH;AACD,KAAA;CACD;MAGY,gBAAgB,GAAG,CAAC,SAAoC,EAAE,KAAwB,KAAU;IACxG,WAAW,CAAC,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,OAAO,CAAC;AACpD;;MC5Ba,yBAAyB,GAAG,CAAC,SAA6B,EAAE,QAA2B,KAAI;AACvG,IAAA,IAAI,SAAS,IAAI,QAAQ,EAAE;AAC1B,QAAA,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC;;AAE1E;;;;","names":[],"sources":["src/schema/props/access-key.ts","src/schema/props/short-key.ts","src/schema/props/tab-index.ts","src/schema/validators/access-and-short-key.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\nimport { watchString } from '../utils';\n\n/* types */\nexport type AccessKeyPropType = string;\n\n/**\n * Defines the key combination that can be used to trigger or focus the component's interactive element.\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/accesskey\n */\nexport type PropAccessKey = {\n\taccessKey: AccessKeyPropType;\n};\n\n/* validator */\nexport const validateAccessKey = (component: Generic.Element.Component, value?: AccessKeyPropType): void => {\n\twatchString(component, '_accessKey', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\nimport { watchString } from '../utils';\n\n/* types */\nexport type ShortKeyPropType = string;\n\n/**\n * Adds a visual short key hint to the component and sets the `aria-keyshortcuts` attribute on the focusable element.\n */\nexport type PropShortKey = {\n\tshortKey: ShortKeyPropType;\n};\n\n/* validator */\nexport const validateShortKey = (component: Generic.Element.Component, value?: ShortKeyPropType): void => {\n\twatchString(component, '_shortKey', value);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { WatchNumberOptions } from '../utils';\nimport { a11yHint, watchNumber } from '../utils';\n\n/* types */\nexport type TabIndexPropType = number;\n\n/**\n * Defines which tab-index the primary element of the component has.\n * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex\n */\nexport type PropTabIndex = {\n\ttabIndex: TabIndexPropType;\n};\n\n/* constants */\nconst options: WatchNumberOptions = {\n\thooks: {\n\t\tafterPatch: (value) => {\n\t\t\tif (value !== -1 && value !== 0) {\n\t\t\t\ta11yHint(`Don't Use Tabindex Greater than 0: https://adrianroselli.com/2014/11/dont-use-tabindex-greater-than-0.html`);\n\t\t\t}\n\t\t},\n\t},\n};\n\n/* validator */\nexport const validateTabIndex = (component: Generic.Element.Component, value?: TabIndexPropType): void => {\n\twatchNumber(component, '_tabIndex', value, options);\n};\n","import type { AccessKeyPropType, ShortKeyPropType } from '../props';\n\nexport const validateAccessAndShortKey = (accessKey?: AccessKeyPropType, shortKey?: ShortKeyPropType) => {\n\tif (accessKey && shortKey) {\n\t\tthrow new Error('AccessKey and ShortKey are used. Only one is allowed.');\n\t}\n};\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{c}from"./browser.js";const bem=c(),BEM={"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"])}},BEM_CLASS_ALERT__CLOSER=bem("kol-alert","closer"),BEM_CLASS_ALERT__CONTENT=bem("kol-alert","content"),BEM_CLASS_ALERT__ICON=bem("kol-alert","icon");export{BEM as B,BEM_CLASS_ALERT__ICON as a,bem as b,BEM_CLASS_ALERT__CONTENT as c,BEM_CLASS_ALERT__CLOSER as d};
4
+ import{c}from"./browser.js";const bem=c(),BEM={"kol-icon":{elements:{icon:{modifiers:null}},modifiers:null}},BEM_CLASS_ICON=bem("kol-icon"),BEM_CLASS_ICON__ICON=bem("kol-icon","icon");export{BEM as B,BEM_CLASS_ICON as a,BEM_CLASS_ICON__ICON as b};
@@ -1 +1 @@
1
- {"file":"bem.js","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;;;;","names":["generateBemClassNames"],"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 genBemAlert, BEM as BEM_ALERT };\nexport { BEM_CLASS_ALERT__CLOSER, BEM_CLASS_ALERT__CONTENT, BEM_CLASS_ALERT__ICON };\n"],"version":3}
1
+ {"file":"bem.js","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;;;;","names":["generateBemClassNames"],"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"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{c}from"./browser.js";const bem=c(),BEM={"kol-icon":{elements:{icon:{modifiers:null}},modifiers:null}},BEM_CLASS_ICON=bem("kol-icon"),BEM_CLASS_ICON__ICON=bem("kol-icon","icon");export{BEM as B,BEM_CLASS_ICON as a,BEM_CLASS_ICON__ICON as b};
4
+ import{c}from"./browser.js";const bem=c(),BEM={"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"])}},BEM_CLASS_ALERT__CLOSER=bem("kol-alert","closer"),BEM_CLASS_ALERT__CONTENT=bem("kol-alert","content"),BEM_CLASS_ALERT__ICON=bem("kol-alert","icon");export{BEM as B,BEM_CLASS_ALERT__ICON as a,bem as b,BEM_CLASS_ALERT__CONTENT as c,BEM_CLASS_ALERT__CLOSER as d};
@@ -1 +1 @@
1
- {"file":"bem2.js","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;;;;","names":["generateBemClassNames"],"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 as genBemAlert, BEM as BEM_ICON };\nexport { BEM_CLASS_ICON, BEM_CLASS_ICON__ICON };\n"],"version":3}
1
+ {"file":"bem2.js","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;;;;","names":["generateBemClassNames"],"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"],"version":3}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ import{w as watchValidator,h as watchString,c as watchBoolean}from"./common.js";const alternativeButtonLinkRolePropTypeOptions=["tab","treeitem"],validateAlternativeButtonLinkRole=(t,a)=>{watchValidator(t,"_role",t=>"string"==typeof t&&alternativeButtonLinkRolePropTypeOptions.includes(t),new Set([`KoliBriAlternativeButtonLinkRole {${alternativeButtonLinkRolePropTypeOptions.join(", ")}`]),a)},validateAriaControls=(t,a)=>{watchString(t,"_ariaControls",a)},validateAriaDescription=(t,a)=>{watchString(t,"_ariaDescription",a)},validateAriaExpanded=(t,a)=>{watchBoolean(t,"_ariaExpanded",a)},buttonVariantPropTypeOptions=["primary","secondary","normal","tertiary","danger","ghost","custom"],validateButtonVariant=(t,a)=>{watchValidator(t,"_buttonVariant",t=>"string"==typeof t&&buttonVariantPropTypeOptions.includes(t),new Set([`KoliBriButtonVariant {${buttonVariantPropTypeOptions.join(", ")}`]),a,{defaultValue:"normal"})};export{validateAriaDescription as a,validateAriaExpanded as b,validateAlternativeButtonLinkRole as c,validateButtonVariant as d,validateAriaControls as v};
@@ -0,0 +1 @@
1
+ {"file":"button-variant.js","mappings":";;;;;AAIA,MAAM,wCAAwC,GAAG,CAAC,KAAK,EAAE,UAAU,CAA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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"],"version":3}
@@ -1 +1 @@
1
- {"file":"color.js","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,CAA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B,CAAC,SAAS,CAAC,KAAe,CAAC;YAClE;QACD,KAAK,WAAW,EAAE;AACjB,YAAA,MAAM,WAAW,GAAG,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;;;;","names":["hex","rgbaConvert"],"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 { Log } from '../utils';\nimport { a11yHint, createContrastColorPair, 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"],"version":3}
1
+ {"file":"color.js","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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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"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- let KolAbbrTag="kol-abbr",KolAccordionTag="kol-accordion",KolAlertTag="kol-alert",KolAlertWcTag="kol-alert-wc",KolAvatarTag="kol-avatar",KolAvatarWcTag="kol-avatar-wc",KolBadgeTag="kol-badge",KolBreadcrumbTag="kol-breadcrumb",KolButtonLinkTag="kol-button-link",KolButtonTag="kol-button",KolButtonWcTag="kol-button-wc",KolCardTag="kol-card",KolCardWcTag="kol-card-wc",KolComboboxTag="kol-combobox",KolDetailsTag="kol-details",KolDrawerTag="kol-drawer",KolFormTag="kol-form",KolHeadingTag="kol-heading",KolIconTag="kol-icon",KolImageTag="kol-image",KolInputCheckboxTag="kol-input-checkbox",KolInputColorTag="kol-input-color",KolInputDateTag="kol-input-date",KolInputEmailTag="kol-input-email",KolInputFileTag="kol-input-file",KolInputNumberTag="kol-input-number",KolInputPasswordTag="kol-input-password",KolInputRadioTag="kol-input-radio",KolInputRangeTag="kol-input-range",KolInputTag="kol-input",KolInputTextTag="kol-input-text",KolKolibriTag="kol-kolibri",KolLinkButtonTag="kol-link-button",KolLinkTag="kol-link",KolLinkWcTag="kol-link-wc",KolModalTag="kol-modal",KolNavTag="kol-nav",KolPaginationTag="kol-pagination",KolPaginationWcTag="kol-pagination-wc",KolPopoverWcTag="kol-popover-wc",KolPopoverButtonTag="kol-popover-button",KolPopoverButtonWcTag="kol-popover-button-wc",KolProgressTag="kol-progress",KolQuoteTag="kol-quote",KolSelectTag="kol-select",KolSingleSelectTag="kol-single-select",KolSkipNavTag="kol-skip-nav",KolSpinTag="kol-spin",KolSplitButtonTag="kol-split-button",KolTableSettingsWcTag="kol-table-settings-wc",KolTableStatefulTag="kol-table-stateful",KolTableStatelessTag="kol-table-stateless",KolTableStatelessWcTag="kol-table-stateless-wc",KolTabsTag="kol-tabs",KolTextareaTag="kol-textarea",KolToastContainerTag="kol-toast-container",KolTooltipWcTag="kol-tooltip-wc",KolTreeItemTag="kol-tree-item",KolTreeItemWcTag="kol-tree-item-wc",KolTreeTag="kol-tree",KolTreeWcTag="kol-tree-wc",KolVersionTag="kol-version";const setCustomTagNames=o=>{KolAbbrTag=o(KolAbbrTag),KolAccordionTag=o(KolAccordionTag),KolAlertTag=o(KolAlertTag),KolAlertWcTag=o(KolAlertWcTag),KolAvatarTag=o(KolAvatarTag),KolAvatarWcTag=o(KolAvatarWcTag),KolBadgeTag=o(KolBadgeTag),KolBreadcrumbTag=o(KolBreadcrumbTag),KolButtonLinkTag=o(KolButtonLinkTag),KolButtonTag=o(KolButtonTag),KolButtonWcTag=o(KolButtonWcTag),KolCardTag=o(KolCardTag),KolCardWcTag=o(KolCardWcTag),KolComboboxTag=o(KolComboboxTag),KolDetailsTag=o(KolDetailsTag),KolDrawerTag=o(KolDrawerTag),KolFormTag=o(KolFormTag),KolHeadingTag=o(KolHeadingTag),KolIconTag=o(KolIconTag),KolImageTag=o(KolImageTag),KolInputCheckboxTag=o(KolInputCheckboxTag),KolInputColorTag=o(KolInputColorTag),KolInputDateTag=o(KolInputDateTag),KolInputEmailTag=o(KolInputEmailTag),KolInputFileTag=o(KolInputFileTag),KolInputNumberTag=o(KolInputNumberTag),KolInputPasswordTag=o(KolInputPasswordTag),KolInputRadioTag=o(KolInputRadioTag),KolInputRangeTag=o(KolInputRangeTag),KolInputTag=o(KolInputTag),KolInputTextTag=o(KolInputTextTag),KolKolibriTag=o(KolKolibriTag),KolLinkButtonTag=o(KolLinkButtonTag),KolLinkTag=o(KolLinkTag),KolLinkWcTag=o(KolLinkWcTag),KolModalTag=o(KolModalTag),KolNavTag=o(KolNavTag),KolPaginationTag=o(KolPaginationTag),KolPaginationWcTag=o(KolPaginationWcTag),KolPopoverWcTag=o(KolPopoverWcTag),KolPopoverButtonTag=o(KolPopoverButtonTag),KolPopoverButtonWcTag=o(KolPopoverButtonWcTag),KolProgressTag=o(KolProgressTag),KolQuoteTag=o(KolQuoteTag),KolSelectTag=o(KolSelectTag),KolSingleSelectTag=o(KolSingleSelectTag),KolSkipNavTag=o(KolSkipNavTag),KolSpinTag=o(KolSpinTag),KolSplitButtonTag=o(KolSplitButtonTag),KolTableSettingsWcTag=o(KolTableSettingsWcTag),KolTableStatefulTag=o(KolTableStatefulTag),KolTableStatelessTag=o(KolTableStatelessTag),KolTableStatelessWcTag=o(KolTableStatelessWcTag),KolTabsTag=o(KolTabsTag),KolTextareaTag=o(KolTextareaTag),KolToastContainerTag=o(KolToastContainerTag),o(KolTooltipWcTag),KolTooltipWcTag=o(KolTooltipWcTag),KolTreeItemTag=o(KolTreeItemTag),KolTreeItemWcTag=o(KolTreeItemWcTag),KolTreeTag=o(KolTreeTag),KolTreeWcTag=o(KolTreeWcTag),KolVersionTag=o(KolVersionTag)};export{KolToastContainerTag as K,KolTooltipWcTag as a,KolAlertWcTag as b,KolAvatarWcTag as c,KolButtonWcTag as d,KolIconTag as e,KolLinkWcTag as f,KolCardWcTag as g,KolFormTag as h,KolPaginationWcTag as i,KolSelectTag as j,KolPopoverButtonWcTag as k,KolLinkTag as l,KolPopoverWcTag as m,KolHeadingTag as n,KolInputCheckboxTag as o,KolInputNumberTag as p,KolTableStatelessWcTag as q,KolTableSettingsWcTag as r,setCustomTagNames as s,KolButtonTag as t,KolTreeWcTag as u,KolTreeItemWcTag as v,KolTreeTag as w,KolTreeItemTag as x,KolBadgeTag as y};
4
+ let KolAbbrTag="kol-abbr",KolAccordionTag="kol-accordion",KolAlertTag="kol-alert",KolAlertWcTag="kol-alert-wc",KolAvatarTag="kol-avatar",KolAvatarWcTag="kol-avatar-wc",KolBadgeTag="kol-badge",KolBreadcrumbTag="kol-breadcrumb",KolButtonLinkTag="kol-button-link",KolButtonTag="kol-button",KolButtonWcTag="kol-button-wc",KolCardTag="kol-card",KolCardWcTag="kol-card-wc",KolComboboxTag="kol-combobox",KolDetailsTag="kol-details",KolDrawerTag="kol-drawer",KolFormTag="kol-form",KolHeadingTag="kol-heading",KolIconTag="kol-icon",KolImageTag="kol-image",KolInputCheckboxTag="kol-input-checkbox",KolInputColorTag="kol-input-color",KolInputDateTag="kol-input-date",KolInputEmailTag="kol-input-email",KolInputFileTag="kol-input-file",KolInputNumberTag="kol-input-number",KolInputPasswordTag="kol-input-password",KolInputRadioTag="kol-input-radio",KolInputRangeTag="kol-input-range",KolInputTag="kol-input",KolInputTextTag="kol-input-text",KolKolibriTag="kol-kolibri",KolLinkButtonTag="kol-link-button",KolLinkTag="kol-link",KolLinkWcTag="kol-link-wc",KolModalTag="kol-modal",KolNavTag="kol-nav",KolPaginationTag="kol-pagination",KolPaginationWcTag="kol-pagination-wc",KolPopoverWcTag="kol-popover-wc",KolPopoverButtonTag="kol-popover-button",KolPopoverButtonWcTag="kol-popover-button-wc",KolProgressTag="kol-progress",KolQuoteTag="kol-quote",KolSelectTag="kol-select",KolSelectWcTag="kol-select-wc",KolSingleSelectTag="kol-single-select",KolSkipNavTag="kol-skip-nav",KolSpinTag="kol-spin",KolSplitButtonTag="kol-split-button",KolTableSettingsWcTag="kol-table-settings-wc",KolTableStatefulTag="kol-table-stateful",KolTableStatelessTag="kol-table-stateless",KolTableStatelessWcTag="kol-table-stateless-wc",KolTabsTag="kol-tabs",KolTextareaTag="kol-textarea",KolToastContainerTag="kol-toast-container",KolTooltipWcTag="kol-tooltip-wc",KolTreeItemTag="kol-tree-item",KolTreeItemWcTag="kol-tree-item-wc",KolTreeTag="kol-tree",KolTreeWcTag="kol-tree-wc",KolVersionTag="kol-version";const setCustomTagNames=o=>{KolAbbrTag=o(KolAbbrTag),KolAccordionTag=o(KolAccordionTag),KolAlertTag=o(KolAlertTag),KolAlertWcTag=o(KolAlertWcTag),KolAvatarTag=o(KolAvatarTag),KolAvatarWcTag=o(KolAvatarWcTag),KolBadgeTag=o(KolBadgeTag),KolBreadcrumbTag=o(KolBreadcrumbTag),KolButtonLinkTag=o(KolButtonLinkTag),KolButtonTag=o(KolButtonTag),KolButtonWcTag=o(KolButtonWcTag),KolCardTag=o(KolCardTag),KolCardWcTag=o(KolCardWcTag),KolComboboxTag=o(KolComboboxTag),KolDetailsTag=o(KolDetailsTag),KolDrawerTag=o(KolDrawerTag),KolFormTag=o(KolFormTag),KolHeadingTag=o(KolHeadingTag),KolIconTag=o(KolIconTag),KolImageTag=o(KolImageTag),KolInputCheckboxTag=o(KolInputCheckboxTag),KolInputColorTag=o(KolInputColorTag),KolInputDateTag=o(KolInputDateTag),KolInputEmailTag=o(KolInputEmailTag),KolInputFileTag=o(KolInputFileTag),KolInputNumberTag=o(KolInputNumberTag),KolInputPasswordTag=o(KolInputPasswordTag),KolInputRadioTag=o(KolInputRadioTag),KolInputRangeTag=o(KolInputRangeTag),KolInputTag=o(KolInputTag),KolInputTextTag=o(KolInputTextTag),KolKolibriTag=o(KolKolibriTag),KolLinkButtonTag=o(KolLinkButtonTag),KolLinkTag=o(KolLinkTag),KolLinkWcTag=o(KolLinkWcTag),KolModalTag=o(KolModalTag),KolNavTag=o(KolNavTag),KolPaginationTag=o(KolPaginationTag),KolPaginationWcTag=o(KolPaginationWcTag),KolPopoverWcTag=o(KolPopoverWcTag),KolPopoverButtonTag=o(KolPopoverButtonTag),KolPopoverButtonWcTag=o(KolPopoverButtonWcTag),KolProgressTag=o(KolProgressTag),KolQuoteTag=o(KolQuoteTag),KolSelectTag=o(KolSelectTag),KolSelectWcTag=o(KolSelectWcTag),KolSingleSelectTag=o(KolSingleSelectTag),KolSkipNavTag=o(KolSkipNavTag),KolSpinTag=o(KolSpinTag),KolSplitButtonTag=o(KolSplitButtonTag),KolTableSettingsWcTag=o(KolTableSettingsWcTag),KolTableStatefulTag=o(KolTableStatefulTag),KolTableStatelessTag=o(KolTableStatelessTag),KolTableStatelessWcTag=o(KolTableStatelessWcTag),KolTabsTag=o(KolTabsTag),KolTextareaTag=o(KolTextareaTag),KolToastContainerTag=o(KolToastContainerTag),o(KolTooltipWcTag),KolTooltipWcTag=o(KolTooltipWcTag),KolTreeItemTag=o(KolTreeItemTag),KolTreeItemWcTag=o(KolTreeItemWcTag),KolTreeTag=o(KolTreeTag),KolTreeWcTag=o(KolTreeWcTag),KolVersionTag=o(KolVersionTag)};export{KolToastContainerTag as K,KolTooltipWcTag as a,KolAlertWcTag as b,KolAvatarWcTag as c,KolButtonWcTag as d,KolIconTag as e,KolLinkWcTag as f,KolCardWcTag as g,KolFormTag as h,KolPaginationWcTag as i,KolSelectWcTag as j,KolPopoverButtonWcTag as k,KolLinkTag as l,KolPopoverWcTag as m,KolHeadingTag as n,KolInputCheckboxTag as o,KolInputNumberTag as p,KolTableStatelessWcTag as q,KolTableSettingsWcTag as r,setCustomTagNames as s,KolButtonTag as t,KolTreeWcTag as u,KolTreeItemWcTag as v,KolTreeTag as w,KolTreeItemTag as x,KolBadgeTag as y};
@@ -1 +1 @@
1
- {"file":"component-names.js","mappings":";;;AAAO,IAAI,UAAU,GAAG,UAAmB;AACpC,IAAI,eAAe,GAAG,eAAwB;AAC9C,IAAI,WAAW,GAAG,WAAoB;AACtC,IAAI,aAAa,GAAG;AACpB,IAAI,YAAY,GAAG,YAAqB;AACxC,IAAI,cAAc,GAAG;AACrB,IAAI,WAAW,GAAG;AAClB,IAAI,gBAAgB,GAAG,gBAAyB;AAChD,IAAI,gBAAgB,GAAG,iBAA0B;AACjD,IAAI,YAAY,GAAG;AACnB,IAAI,cAAc,GAAG;AACrB,IAAI,UAAU,GAAG,UAAmB;AACpC,IAAI,YAAY,GAAG;AACnB,IAAI,cAAc,GAAG,cAAuB;AAC5C,IAAI,aAAa,GAAG,aAAsB;AAC1C,IAAI,YAAY,GAAG,YAAqB;AACxC,IAAI,UAAU,GAAG;AACjB,IAAI,aAAa,GAAG;AACpB,IAAI,UAAU,GAAG;AACjB,IAAI,WAAW,GAAG,WAAoB;AACtC,IAAI,mBAAmB,GAAG;AAC1B,IAAI,gBAAgB,GAAG,iBAA0B;AACjD,IAAI,eAAe,GAAG,gBAAyB;AAC/C,IAAI,gBAAgB,GAAG,iBAA0B;AACjD,IAAI,eAAe,GAAG,gBAAyB;AAC/C,IAAI,iBAAiB,GAAG;AACxB,IAAI,mBAAmB,GAAG,oBAA6B;AACvD,IAAI,gBAAgB,GAAG,iBAA0B;AACjD,IAAI,gBAAgB,GAAG,iBAA0B;AACjD,IAAI,WAAW,GAAG,WAAoB;AACtC,IAAI,eAAe,GAAG,gBAAyB;AAC/C,IAAI,aAAa,GAAG,aAAsB;AAC1C,IAAI,gBAAg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F,IAAA,oBAAoB,GAAG,gBAAgB,CAAC,oBAA8B,CAA0B;AAChG,IAAA,sBAAsB,GAAG,gBAAgB,CAAC,sBAAgC,CAA6B;AACvG,IAAA,UAAU,GAAG,gBAAgB,CAAC,UAAoB,CAAe;AACjE,IAAA,cAAc,GAAG,gBAAgB,CAAC,cAAwB,CAAmB;AAC7E,IAAA,oBAAoB,GAAG,gBAAgB,CAAC,oBAA8B,CAA0B;AAChG,IAAgB,gBAAgB,CAAC,eAAyB,CAAkB;AAC5E,IAAA,eAAe,GAAG,gBAAgB,CAAC,eAAyB,CAAqB;AACjF,IAAA,cAAc,GAAG,gBAAgB,CAAC,cAAwB,CAAoB;AAC9E,IAAA,gBAAgB,GAAG,gBAAgB,CAAC,gBAA0B,CAAuB;AACrF,IAAA,UAAU,GAAG,gBAAgB,CAAC,UAAoB,CAAe;AACjE,IAAA,YAAY,GAAG,gBAAgB,CAAC,YAAsB,CAAkB;AACxE,IAAA,aAAa,GAAG,gBAAgB,CAAC,aAAuB,CAAkB;AAC3E;;;;","names":[],"sources":["src/core/component-names.ts"],"sourcesContent":["export let KolAbbrTag = 'kol-abbr' as const;\nexport let KolAccordionTag = 'kol-accordion' as const;\nexport let KolAlertTag = 'kol-alert' as const;\nexport let KolAlertWcTag = 'kol-alert-wc' as const;\nexport let KolAvatarTag = 'kol-avatar' as const;\nexport let KolAvatarWcTag = 'kol-avatar-wc' as const;\nexport let KolBadgeTag = 'kol-badge' as const;\nexport let KolBreadcrumbTag = 'kol-breadcrumb' as const;\nexport let KolButtonLinkTag = 'kol-button-link' as const;\nexport let KolButtonTag = 'kol-button' as const;\nexport let KolButtonWcTag = 'kol-button-wc' as const;\nexport let KolCardTag = 'kol-card' as const;\nexport let KolCardWcTag = 'kol-card-wc' as const;\nexport let KolComboboxTag = 'kol-combobox' as const;\nexport let KolDetailsTag = 'kol-details' as const;\nexport let KolDrawerTag = 'kol-drawer' as const;\nexport let KolFormTag = 'kol-form' as const;\nexport let KolHeadingTag = 'kol-heading' as const;\nexport let KolIconTag = 'kol-icon' as const;\nexport let KolImageTag = 'kol-image' as const;\nexport let KolInputCheckboxTag = 'kol-input-checkbox' as const;\nexport let KolInputColorTag = 'kol-input-color' as const;\nexport let KolInputDateTag = 'kol-input-date' as const;\nexport let KolInputEmailTag = 'kol-input-email' as const;\nexport let KolInputFileTag = 'kol-input-file' as const;\nexport let KolInputNumberTag = 'kol-input-number' as const;\nexport let KolInputPasswordTag = 'kol-input-password' as const;\nexport let KolInputRadioTag = 'kol-input-radio' as const;\nexport let KolInputRangeTag = 'kol-input-range' as const;\nexport let KolInputTag = 'kol-input' as const;\nexport let KolInputTextTag = 'kol-input-text' as const;\nexport let KolKolibriTag = 'kol-kolibri' as const;\nexport let KolLinkButtonTag = 'kol-link-button' as const;\nexport let KolLinkTag = 'kol-link' as const;\nexport let KolLinkWcTag = 'kol-link-wc' as const;\nexport let KolModalTag = 'kol-modal' as const;\nexport let KolNavTag = 'kol-nav' as const;\nexport let KolPaginationTag = 'kol-pagination' as const;\nexport let KolPaginationWcTag = 'kol-pagination-wc' as const;\nexport let KolPopoverWcTag = 'kol-popover-wc' as const;\nexport let KolPopoverButtonTag = 'kol-popover-button' as const;\nexport let KolPopoverButtonWcTag = 'kol-popover-button-wc' as const;\nexport let KolProgressTag = 'kol-progress' as const;\nexport let KolQuoteTag = 'kol-quote' as const;\nexport let KolSelectTag = 'kol-select' as const;\nexport let KolSingleSelectTag = 'kol-single-select' as const;\nexport let KolSkipNavTag = 'kol-skip-nav' as const;\nexport let KolSpinTag = 'kol-spin' as const;\nexport let KolSplitButtonTag = 'kol-split-button' as const;\nexport let KolTableSettingsWcTag = 'kol-table-settings-wc' as const;\nexport let KolTableStatefulTag = 'kol-table-stateful';\nexport let KolTableStatelessTag = 'kol-table-stateless' as const;\nexport let KolTableStatelessWcTag = 'kol-table-stateless-wc' as const;\nexport let KolTabsTag = 'kol-tabs' as const;\nexport let KolTextareaTag = 'kol-textarea' as const;\nexport let KolToastContainerTag = 'kol-toast-container' as const;\nexport let KolToolbarTag = 'kol-toolbar' as const;\nexport let KolTooltipWcTag = 'kol-tooltip-wc' as const;\nexport let KolTreeItemTag = 'kol-tree-item' as const;\nexport let KolTreeItemWcTag = 'kol-tree-item-wc' as const;\nexport let KolTreeTag = 'kol-tree' as const;\nexport let KolTreeWcTag = 'kol-tree-wc' as const;\nexport let KolVersionTag = 'kol-version' as const;\n\nexport const setCustomTagNames = (transformTagName: (tagName: string) => string) => {\n\tKolAbbrTag = transformTagName(KolAbbrTag as string) as 'kol-abbr';\n\tKolAccordionTag = transformTagName(KolAccordionTag as string) as 'kol-accordion';\n\tKolAlertTag = transformTagName(KolAlertTag as string) as 'kol-alert';\n\tKolAlertWcTag = transformTagName(KolAlertWcTag as string) as 'kol-alert-wc';\n\tKolAvatarTag = transformTagName(KolAvatarTag as string) as 'kol-avatar';\n\tKolAvatarWcTag = transformTagName(KolAvatarWcTag as string) as 'kol-avatar-wc';\n\tKolBadgeTag = transformTagName(KolBadgeTag as string) as 'kol-badge';\n\tKolBreadcrumbTag = transformTagName(KolBreadcrumbTag as string) as 'kol-breadcrumb';\n\tKolButtonLinkTag = transformTagName(KolButtonLinkTag as string) as 'kol-button-link';\n\tKolButtonTag = transformTagName(KolButtonTag as string) as 'kol-button';\n\tKolButtonWcTag = transformTagName(KolButtonWcTag as string) as 'kol-button-wc';\n\tKolCardTag = transformTagName(KolCardTag as string) as 'kol-card';\n\tKolCardWcTag = transformTagName(KolCardWcTag as string) as 'kol-card-wc';\n\tKolComboboxTag = transformTagName(KolComboboxTag as string) as 'kol-combobox';\n\tKolDetailsTag = transformTagName(KolDetailsTag as string) as 'kol-details';\n\tKolDrawerTag = transformTagName(KolDrawerTag as string) as 'kol-drawer';\n\tKolFormTag = transformTagName(KolFormTag as string) as 'kol-form';\n\tKolHeadingTag = transformTagName(KolHeadingTag as string) as 'kol-heading';\n\tKolIconTag = transformTagName(KolIconTag as string) as 'kol-icon';\n\tKolImageTag = transformTagName(KolImageTag as string) as 'kol-image';\n\tKolInputCheckboxTag = transformTagName(KolInputCheckboxTag as string) as 'kol-input-checkbox';\n\tKolInputColorTag = transformTagName(KolInputColorTag as string) as 'kol-input-color';\n\tKolInputDateTag = transformTagName(KolInputDateTag as string) as 'kol-input-date';\n\tKolInputEmailTag = transformTagName(KolInputEmailTag as string) as 'kol-input-email';\n\tKolInputFileTag = transformTagName(KolInputFileTag as string) as 'kol-input-file';\n\tKolInputNumberTag = transformTagName(KolInputNumberTag as string) as 'kol-input-number';\n\tKolInputPasswordTag = transformTagName(KolInputPasswordTag as string) as 'kol-input-password';\n\tKolInputRadioTag = transformTagName(KolInputRadioTag as string) as 'kol-input-radio';\n\tKolInputRangeTag = transformTagName(KolInputRangeTag as string) as 'kol-input-range';\n\tKolInputTag = transformTagName(KolInputTag as string) as 'kol-input';\n\tKolInputTextTag = transformTagName(KolInputTextTag as string) as 'kol-input-text';\n\tKolKolibriTag = transformTagName(KolKolibriTag as string) as 'kol-kolibri';\n\tKolLinkButtonTag = transformTagName(KolLinkButtonTag as string) as 'kol-link-button';\n\tKolLinkTag = transformTagName(KolLinkTag as string) as 'kol-link';\n\tKolLinkWcTag = transformTagName(KolLinkWcTag as string) as 'kol-link-wc';\n\tKolModalTag = transformTagName(KolModalTag as string) as 'kol-modal';\n\tKolNavTag = transformTagName(KolNavTag as string) as 'kol-nav';\n\tKolPaginationTag = transformTagName(KolPaginationTag as string) as 'kol-pagination';\n\tKolPaginationWcTag = transformTagName(KolPaginationWcTag as string) as 'kol-pagination-wc';\n\tKolPopoverWcTag = transformTagName(KolPopoverWcTag as string) as 'kol-popover-wc';\n\tKolPopoverButtonTag = transformTagName(KolPopoverButtonTag as string) as 'kol-popover-button';\n\tKolPopoverButtonWcTag = transformTagName(KolPopoverButtonWcTag as string) as 'kol-popover-button-wc';\n\tKolProgressTag = transformTagName(KolProgressTag as string) as 'kol-progress';\n\tKolQuoteTag = transformTagName(KolQuoteTag as string) as 'kol-quote';\n\tKolSelectTag = transformTagName(KolSelectTag as string) as 'kol-select';\n\tKolSingleSelectTag = transformTagName(KolSingleSelectTag as string) as 'kol-single-select';\n\tKolSkipNavTag = transformTagName(KolSkipNavTag as string) as 'kol-skip-nav';\n\tKolSpinTag = transformTagName(KolSpinTag as string) as 'kol-spin';\n\tKolSplitButtonTag = transformTagName(KolSplitButtonTag as string) as 'kol-split-button';\n\tKolTableSettingsWcTag = transformTagName(KolTableSettingsWcTag) as 'kol-table-settings-wc';\n\tKolTableStatefulTag = transformTagName(KolTableStatefulTag) as 'kol-table-stateful';\n\tKolTableStatelessTag = transformTagName(KolTableStatelessTag as string) as 'kol-table-stateless';\n\tKolTableStatelessWcTag = transformTagName(KolTableStatelessWcTag as string) as 'kol-table-stateless-wc';\n\tKolTabsTag = transformTagName(KolTabsTag as string) as 'kol-tabs';\n\tKolTextareaTag = transformTagName(KolTextareaTag as string) as 'kol-textarea';\n\tKolToastContainerTag = transformTagName(KolToastContainerTag as string) as 'kol-toast-container';\n\tKolToolbarTag = transformTagName(KolTooltipWcTag as string) as 'kol-toolbar';\n\tKolTooltipWcTag = transformTagName(KolTooltipWcTag as string) as 'kol-tooltip-wc';\n\tKolTreeItemTag = transformTagName(KolTreeItemTag as string) as 'kol-tree-item';\n\tKolTreeItemWcTag = transformTagName(KolTreeItemWcTag as string) as 'kol-tree-item-wc';\n\tKolTreeTag = transformTagName(KolTreeTag as string) as 'kol-tree';\n\tKolTreeWcTag = transformTagName(KolTreeWcTag as string) as 'kol-tree-wc';\n\tKolVersionTag = transformTagName(KolVersionTag as string) as 'kol-version';\n};\n"],"version":3}
1
+ {"file":"component-names.js","mappings":";;;AAAO,IAAI,UAAU,GAAG,UAAmB;AACpC,IAAI,eAAe,GAAG,eAAwB;AAC9C,IAAI,WAAW,GAAG,WAAoB;AACtC,IAAI,aAAa,GAAG;AACpB,IAAI,YAAY,GAAG,YAAqB;AACxC,IAAI,cAAc,GAAG;AACrB,IAAI,WAAW,GAAG;AAClB,IAAI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,IAAA,cAAc,GAAG,gBAAgB,CAAC,cAAwB,CAAoB;AAC9E,IAAA,gBAAgB,GAAG,gBAAgB,CAAC,gBAA0B,CAAuB;AACrF,IAAA,UAAU,GAAG,gBAAgB,CAAC,UAAoB,CAAe;AACjE,IAAA,YAAY,GAAG,gBAAgB,CAAC,YAAsB,CAAkB;AACxE,IAAA,aAAa,GAAG,gBAAgB,CAAC,aAAuB,CAAkB;AAC3E;;;;","names":[],"sources":["src/core/component-names.ts"],"sourcesContent":["export let KolAbbrTag = 'kol-abbr' as const;\nexport let KolAccordionTag = 'kol-accordion' as const;\nexport let KolAlertTag = 'kol-alert' as const;\nexport let KolAlertWcTag = 'kol-alert-wc' as const;\nexport let KolAvatarTag = 'kol-avatar' as const;\nexport let KolAvatarWcTag = 'kol-avatar-wc' as const;\nexport let KolBadgeTag = 'kol-badge' as const;\nexport let KolBreadcrumbTag = 'kol-breadcrumb' as const;\nexport let KolButtonLinkTag = 'kol-button-link' as const;\nexport let KolButtonTag = 'kol-button' as const;\nexport let KolButtonWcTag = 'kol-button-wc' as const;\nexport let KolCardTag = 'kol-card' as const;\nexport let KolCardWcTag = 'kol-card-wc' as const;\nexport let KolComboboxTag = 'kol-combobox' as const;\nexport let KolDetailsTag = 'kol-details' as const;\nexport let KolDrawerTag = 'kol-drawer' as const;\nexport let KolFormTag = 'kol-form' as const;\nexport let KolHeadingTag = 'kol-heading' as const;\nexport let KolIconTag = 'kol-icon' as const;\nexport let KolImageTag = 'kol-image' as const;\nexport let KolInputCheckboxTag = 'kol-input-checkbox' as const;\nexport let KolInputColorTag = 'kol-input-color' as const;\nexport let KolInputDateTag = 'kol-input-date' as const;\nexport let KolInputEmailTag = 'kol-input-email' as const;\nexport let KolInputFileTag = 'kol-input-file' as const;\nexport let KolInputNumberTag = 'kol-input-number' as const;\nexport let KolInputPasswordTag = 'kol-input-password' as const;\nexport let KolInputRadioTag = 'kol-input-radio' as const;\nexport let KolInputRangeTag = 'kol-input-range' as const;\nexport let KolInputTag = 'kol-input' as const;\nexport let KolInputTextTag = 'kol-input-text' as const;\nexport let KolKolibriTag = 'kol-kolibri' as const;\nexport let KolLinkButtonTag = 'kol-link-button' as const;\nexport let KolLinkTag = 'kol-link' as const;\nexport let KolLinkWcTag = 'kol-link-wc' as const;\nexport let KolModalTag = 'kol-modal' as const;\nexport let KolNavTag = 'kol-nav' as const;\nexport let KolPaginationTag = 'kol-pagination' as const;\nexport let KolPaginationWcTag = 'kol-pagination-wc' as const;\nexport let KolPopoverWcTag = 'kol-popover-wc' as const;\nexport let KolPopoverButtonTag = 'kol-popover-button' as const;\nexport let KolPopoverButtonWcTag = 'kol-popover-button-wc' as const;\nexport let KolProgressTag = 'kol-progress' as const;\nexport let KolQuoteTag = 'kol-quote' as const;\nexport let KolSelectTag = 'kol-select' as const;\nexport let KolSelectWcTag = 'kol-select-wc' as const;\nexport let KolSingleSelectTag = 'kol-single-select' as const;\nexport let KolSkipNavTag = 'kol-skip-nav' as const;\nexport let KolSpinTag = 'kol-spin' as const;\nexport let KolSplitButtonTag = 'kol-split-button' as const;\nexport let KolTableSettingsWcTag = 'kol-table-settings-wc' as const;\nexport let KolTableStatefulTag = 'kol-table-stateful';\nexport let KolTableStatelessTag = 'kol-table-stateless' as const;\nexport let KolTableStatelessWcTag = 'kol-table-stateless-wc' as const;\nexport let KolTabsTag = 'kol-tabs' as const;\nexport let KolTextareaTag = 'kol-textarea' as const;\nexport let KolToastContainerTag = 'kol-toast-container' as const;\nexport let KolToolbarTag = 'kol-toolbar' as const;\nexport let KolTooltipWcTag = 'kol-tooltip-wc' as const;\nexport let KolTreeItemTag = 'kol-tree-item' as const;\nexport let KolTreeItemWcTag = 'kol-tree-item-wc' as const;\nexport let KolTreeTag = 'kol-tree' as const;\nexport let KolTreeWcTag = 'kol-tree-wc' as const;\nexport let KolVersionTag = 'kol-version' as const;\n\nexport const setCustomTagNames = (transformTagName: (tagName: string) => string) => {\n\tKolAbbrTag = transformTagName(KolAbbrTag as string) as 'kol-abbr';\n\tKolAccordionTag = transformTagName(KolAccordionTag as string) as 'kol-accordion';\n\tKolAlertTag = transformTagName(KolAlertTag as string) as 'kol-alert';\n\tKolAlertWcTag = transformTagName(KolAlertWcTag as string) as 'kol-alert-wc';\n\tKolAvatarTag = transformTagName(KolAvatarTag as string) as 'kol-avatar';\n\tKolAvatarWcTag = transformTagName(KolAvatarWcTag as string) as 'kol-avatar-wc';\n\tKolBadgeTag = transformTagName(KolBadgeTag as string) as 'kol-badge';\n\tKolBreadcrumbTag = transformTagName(KolBreadcrumbTag as string) as 'kol-breadcrumb';\n\tKolButtonLinkTag = transformTagName(KolButtonLinkTag as string) as 'kol-button-link';\n\tKolButtonTag = transformTagName(KolButtonTag as string) as 'kol-button';\n\tKolButtonWcTag = transformTagName(KolButtonWcTag as string) as 'kol-button-wc';\n\tKolCardTag = transformTagName(KolCardTag as string) as 'kol-card';\n\tKolCardWcTag = transformTagName(KolCardWcTag as string) as 'kol-card-wc';\n\tKolComboboxTag = transformTagName(KolComboboxTag as string) as 'kol-combobox';\n\tKolDetailsTag = transformTagName(KolDetailsTag as string) as 'kol-details';\n\tKolDrawerTag = transformTagName(KolDrawerTag as string) as 'kol-drawer';\n\tKolFormTag = transformTagName(KolFormTag as string) as 'kol-form';\n\tKolHeadingTag = transformTagName(KolHeadingTag as string) as 'kol-heading';\n\tKolIconTag = transformTagName(KolIconTag as string) as 'kol-icon';\n\tKolImageTag = transformTagName(KolImageTag as string) as 'kol-image';\n\tKolInputCheckboxTag = transformTagName(KolInputCheckboxTag as string) as 'kol-input-checkbox';\n\tKolInputColorTag = transformTagName(KolInputColorTag as string) as 'kol-input-color';\n\tKolInputDateTag = transformTagName(KolInputDateTag as string) as 'kol-input-date';\n\tKolInputEmailTag = transformTagName(KolInputEmailTag as string) as 'kol-input-email';\n\tKolInputFileTag = transformTagName(KolInputFileTag as string) as 'kol-input-file';\n\tKolInputNumberTag = transformTagName(KolInputNumberTag as string) as 'kol-input-number';\n\tKolInputPasswordTag = transformTagName(KolInputPasswordTag as string) as 'kol-input-password';\n\tKolInputRadioTag = transformTagName(KolInputRadioTag as string) as 'kol-input-radio';\n\tKolInputRangeTag = transformTagName(KolInputRangeTag as string) as 'kol-input-range';\n\tKolInputTag = transformTagName(KolInputTag as string) as 'kol-input';\n\tKolInputTextTag = transformTagName(KolInputTextTag as string) as 'kol-input-text';\n\tKolKolibriTag = transformTagName(KolKolibriTag as string) as 'kol-kolibri';\n\tKolLinkButtonTag = transformTagName(KolLinkButtonTag as string) as 'kol-link-button';\n\tKolLinkTag = transformTagName(KolLinkTag as string) as 'kol-link';\n\tKolLinkWcTag = transformTagName(KolLinkWcTag as string) as 'kol-link-wc';\n\tKolModalTag = transformTagName(KolModalTag as string) as 'kol-modal';\n\tKolNavTag = transformTagName(KolNavTag as string) as 'kol-nav';\n\tKolPaginationTag = transformTagName(KolPaginationTag as string) as 'kol-pagination';\n\tKolPaginationWcTag = transformTagName(KolPaginationWcTag as string) as 'kol-pagination-wc';\n\tKolPopoverWcTag = transformTagName(KolPopoverWcTag as string) as 'kol-popover-wc';\n\tKolPopoverButtonTag = transformTagName(KolPopoverButtonTag as string) as 'kol-popover-button';\n\tKolPopoverButtonWcTag = transformTagName(KolPopoverButtonWcTag as string) as 'kol-popover-button-wc';\n\tKolProgressTag = transformTagName(KolProgressTag as string) as 'kol-progress';\n\tKolQuoteTag = transformTagName(KolQuoteTag as string) as 'kol-quote';\n\tKolSelectTag = transformTagName(KolSelectTag as string) as 'kol-select';\n\tKolSelectWcTag = transformTagName(KolSelectWcTag as string) as 'kol-select-wc';\n\tKolSingleSelectTag = transformTagName(KolSingleSelectTag as string) as 'kol-single-select';\n\tKolSkipNavTag = transformTagName(KolSkipNavTag as string) as 'kol-skip-nav';\n\tKolSpinTag = transformTagName(KolSpinTag as string) as 'kol-spin';\n\tKolSplitButtonTag = transformTagName(KolSplitButtonTag as string) as 'kol-split-button';\n\tKolTableSettingsWcTag = transformTagName(KolTableSettingsWcTag) as 'kol-table-settings-wc';\n\tKolTableStatefulTag = transformTagName(KolTableStatefulTag) as 'kol-table-stateful';\n\tKolTableStatelessTag = transformTagName(KolTableStatelessTag as string) as 'kol-table-stateless';\n\tKolTableStatelessWcTag = transformTagName(KolTableStatelessWcTag as string) as 'kol-table-stateless-wc';\n\tKolTabsTag = transformTagName(KolTabsTag as string) as 'kol-tabs';\n\tKolTextareaTag = transformTagName(KolTextareaTag as string) as 'kol-textarea';\n\tKolToastContainerTag = transformTagName(KolToastContainerTag as string) as 'kol-toast-container';\n\tKolToolbarTag = transformTagName(KolTooltipWcTag as string) as 'kol-toolbar';\n\tKolTooltipWcTag = transformTagName(KolTooltipWcTag as string) as 'kol-tooltip-wc';\n\tKolTreeItemTag = transformTagName(KolTreeItemTag as string) as 'kol-tree-item';\n\tKolTreeItemWcTag = transformTagName(KolTreeItemWcTag as string) as 'kol-tree-item-wc';\n\tKolTreeTag = transformTagName(KolTreeTag as string) as 'kol-tree';\n\tKolTreeWcTag = transformTagName(KolTreeWcTag as string) as 'kol-tree-wc';\n\tKolVersionTag = transformTagName(KolVersionTag as string) as 'kol-version';\n};\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{h}from"@stencil/core/internal/client";import{_ as __rest}from"./tslib.es6.js";import{c as clsx}from"./clsx.js";import{w as watchValidator}from"./common.js";import{c as checkHasMsg,I as InputController}from"./controller2.js";import{d as KolButtonWcTag}from"./component-names.js";import{K as KolIconFc}from"./Icon.js";import{i as isString}from"./InternalUnderlinedBadgeText.js";import{i as isObject}from"./isObject.js";import{v as validateIcons}from"./icons.js";const InputAdornment=(n,t)=>{var{position:o="start",class:s}=n,e=__rest(n,["position","class"]);const r="kol-input-container__adornment",i=`${r}--${o}`;return h("div",Object.assign({class:clsx(r,i,s)},e),t)};function hasItems(n){return!!n&&(Array.isArray(n)?n.length>0:Boolean(n))}const Container=(n,t)=>{var{class:o}=n,s=__rest(n,["class"]);return h("div",Object.assign({class:clsx("kol-input-container__container",o)},s),t)},KolInputContainerFc=(n,t)=>{const{class:o,startAdornment:s,endAdornment:e,disabled:r,msg:i,touched:c,containerProps:a,startAdornmentProps:l,endAdornmentProps:u}=n,d=__rest(n,["class","startAdornment","endAdornment","disabled","msg","touched","containerProps","startAdornmentProps","endAdornmentProps"]),m=checkHasMsg(i,c),p="string"==typeof i?"error":null==i?void 0:i._type,b={"kol-input-container--disabled":r,[`kol-input-container--${p||"error"}`]:m},g=Object.assign({class:clsx("kol-input-container",b,o)},d);return hasItems(s)||hasItems(e)?h("div",Object.assign({},g),h(InputAdornment,Object.assign({},l,{position:"start"}),s),h(Container,Object.assign({},a),t),h(InputAdornment,Object.assign({},u,{position:"end"}),e)):h("div",Object.assign({},g),h(Container,Object.assign({},a),t))},KolButtonFc=n=>{const{label:t,icons:o,hideLabel:s,disabled:e,onClick:r}=n,i=__rest(n,["label","icons","hideLabel","disabled","onClick"]);return h(KolButtonWcTag,Object.assign({_label:t,_disabled:e,_icons:o,_hideLabel:s,_on:{onClick:r}},i))},KolIconButtonFc=n=>{const{componentName:t="button",label:o,icon:s,onClick:e}=n,r=__rest(n,["componentName","label","icon","onClick"]);return h("button"===t?KolButtonFc:KolIconFc,Object.assign({label:o||"",hideLabel:!0,icons:`codicon codicon-${s}`,onClick:e},r))};function getInputContainerProps(n){let t,o;return"_icons"in n&&(t=n._icons),"_smartButton"in n&&(o=n._smartButton),{icons:t,smartButton:o,disabled:n._disabled,msg:n._msg,touched:n._touched}}const InputContainerStateWrapperFc=({state:n,endAdornment:t},o)=>{const{icons:s,smartButton:e,disabled:r,msg:i,touched:c}=getInputContainerProps(n);let a=null==s?void 0:s.left;isString(a)&&(a={icon:a});let l=null==s?void 0:s.right;isString(l)&&(l={icon:l});const u=[],d=[];return t&&(Array.isArray(t)?d.push(...t):d.push(t)),a&&u.push(h(KolIconButtonFc,Object.assign({componentName:"icon",class:"kol-input-container__icon"},isObject(a)?a:{}))),isObject(e)&&d.push(h(KolIconButtonFc,Object.assign({componentName:"button",class:"kol-input-container__smart-button"},e,{hideLabel:!0,disabled:r}))),l&&d.push(h(KolIconButtonFc,Object.assign({componentName:"icon",class:"kol-input-container__icon"},isObject(l)?l:{}))),h(KolInputContainerFc,{disabled:r,msg:i,touched:c,startAdornment:u,endAdornment:d},o)};class InputIconController extends InputController{constructor(n,t,o){super(n,t,o),this.numberStringRegex=/^\d+(\.\d+)?$/,this.parseToNumber=n=>"number"==typeof n?isNaN(n)?null:n:this.isNumberString(n)?parseFloat(n):null,this.validateNumber=(n,t)=>watchValidator(this.component,n,n=>null==n||"number"==typeof n||"string"==typeof n&&this.numberStringRegex.test(n),new Set(["number","NumberString"]),t,{hooks:{beforePatch:(t,o)=>{(null==o?void 0:o.has(n))&&(null==o||o.set(n,this.parseToNumber(t)))}}}),this.component=n}validateIcons(n){validateIcons(this.component,n)}isNumberString(n){return"string"==typeof n&&this.numberStringRegex.test(n)}componentWillLoad(){super.componentWillLoad(),this.validateIcons(this.component._icons)}}export{InputIconController as I,KolIconButtonFc as K,InputContainerStateWrapperFc as a};
4
+ import{h}from"@stencil/core/internal/client";import{_ as __rest}from"./tslib.es6.js";import{d as KolButtonWcTag}from"./component-names.js";import{K as KolIconFc}from"./Icon.js";import{c as clsx}from"./clsx.js";import{w as watchValidator}from"./common.js";import{a as getMsgType,i as isMsgDefinedAndInputTouched,I as InputController}from"./controller2.js";import{i as isString}from"./InternalUnderlinedBadgeText.js";import{i as isObject}from"./isObject.js";import{v as validateIcons}from"./icons.js";const InputAdornment=(n,t)=>{var{position:o="start",class:s}=n,e=__rest(n,["position","class"]);const i="kol-input-container__adornment",r=`${i}--${o}`;return h("div",Object.assign({class:clsx(i,r,s)},e),t)};function hasItems(n){return!!n&&(Array.isArray(n)?n.length>0:Boolean(n))}const Container=(n,t)=>{var{class:o}=n,s=__rest(n,["class"]);return h("div",Object.assign({class:clsx("kol-input-container__container",o)},s),t)},KolInputContainerFc=(n,t)=>{const{class:o,startAdornment:s,endAdornment:e,disabled:i,msg:r,touched:a,containerProps:c,startAdornmentProps:l,endAdornmentProps:u}=n,d=__rest(n,["class","startAdornment","endAdornment","disabled","msg","touched","containerProps","startAdornmentProps","endAdornmentProps"]),m={"kol-input-container--disabled":i,[`kol-input-container--${getMsgType(r)}`]:isMsgDefinedAndInputTouched(r,a)},p=Object.assign({class:clsx("kol-input-container",m,o)},d);return hasItems(s)||hasItems(e)?h("div",Object.assign({},p),h(InputAdornment,Object.assign({},l,{position:"start"}),s),h(Container,Object.assign({},c),t),h(InputAdornment,Object.assign({},u,{position:"end"}),e)):h("div",Object.assign({},p),h(Container,Object.assign({},c),t))},KolButtonFc=n=>{const{label:t,icons:o,hideLabel:s,disabled:e,onClick:i}=n,r=__rest(n,["label","icons","hideLabel","disabled","onClick"]);return h(KolButtonWcTag,Object.assign({_label:t,_disabled:e,_icons:o,_hideLabel:s,_on:{onClick:i}},r))},KolIconButtonFc=n=>{const{componentName:t="button",label:o,icon:s,onClick:e}=n,i=__rest(n,["componentName","label","icon","onClick"]);return h("button"===t?KolButtonFc:KolIconFc,Object.assign({label:o||"",hideLabel:!0,icons:`${s}`,onClick:e},i))};function getInputContainerProps(n){let t,o;return"_icons"in n&&(t=n._icons),"_smartButton"in n&&(o=n._smartButton),{icons:t,smartButton:o,disabled:n._disabled,msg:n._msg,touched:n._touched}}const InputContainerStateWrapperFc=({state:n,startAdornment:t,endAdornment:o},s)=>{const{icons:e,smartButton:i,disabled:r,msg:a,touched:c}=getInputContainerProps(n);let l=null==e?void 0:e.left;isString(l)&&(l={icon:l});let u=null==e?void 0:e.right;isString(u)&&(u={icon:u});const d=[],m=[];return t&&(Array.isArray(t)?d.push(...t):d.push(t)),l&&d.push(h(KolIconButtonFc,Object.assign({componentName:"icon",class:"kol-input-container__icon"},isObject(l)?l:{}))),isObject(i)&&m.push(h(KolIconButtonFc,Object.assign({componentName:"button",class:"kol-input-container__smart-button"},i,{hideLabel:!0,disabled:r}))),u&&m.push(h(KolIconButtonFc,Object.assign({componentName:"icon",class:"kol-input-container__icon"},isObject(u)?u:{}))),o&&(Array.isArray(o)?m.push(...o):m.push(o)),h(KolInputContainerFc,{disabled:r,msg:a,touched:c,startAdornment:d,endAdornment:m},s)};class InputIconController extends InputController{constructor(n,t,o){super(n,t,o),this.numberStringRegex=/^\d+(\.\d+)?$/,this.parseToNumber=n=>"number"==typeof n?isNaN(n)?null:n:this.isNumberString(n)?parseFloat(n):null,this.validateNumber=(n,t)=>watchValidator(this.component,n,n=>null==n||"number"==typeof n||"string"==typeof n&&this.numberStringRegex.test(n),new Set(["number","NumberString"]),t,{hooks:{beforePatch:(t,o)=>{(null==o?void 0:o.has(n))&&(null==o||o.set(n,this.parseToNumber(t)))}}}),this.component=n}validateIcons(n){validateIcons(this.component,n)}isNumberString(n){return"string"==typeof n&&this.numberStringRegex.test(n)}componentWillLoad(){super.componentWillLoad(),this.validateIcons(this.component._icons)}}export{InputIconController as I,KolIconButtonFc as K,InputContainerStateWrapperFc as a};
@@ -1 +1 @@
1
- {"file":"controller-icon.js","mappings":";;;;;;;;;;;;;;AAQA,MAAM,cAAc,GAA4B,CAAC,EAAkD,EAAE,QAAQ,KAAI;IAAhE,IAAA,EAAE,QAAQ,GAAG,OAAO,EAAE,KAAK,EAAE,SAAS,EAAA,GAAA,EAAY,EAAP,KAAK,GAAhD,MAAA,CAAA,EAAA,EAAA,CAAA,UAAA,EAAA,OAAA,CAAkD,CAAF;IAChG,MAAM,aAAa,GAAG,CAAA,8BAAA,CAAgC;AACtD,IAAA,MAAM,iBAAiB,GAAG,CAAA,EAAG,aAAa,CAAK,EAAA,EAAA,QAAQ,EAAE;AAEzD,IAAA,QACC,CAAK,CAAA,KAAA,EAAA,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EAAE,IAAI,CAAC,aAAa,EAAE,iBAAiB,EAAE,SAAS,CAAC,EAAM,EAAA,KAAK,GACtE,QAAQ,CACJ;AAER,CAAC;;ACGD,SAAS,QA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AAI,GAAG,CAAC,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC,EACnC,KAAK,EACL;AACC,gBAAA,KAAK,EAAE;AACN,oBAAA,WAAW,EAAE,CAAC,KAAc,EAAE,SAAS,KAAI;wBAC1C,IAAI,SAAS,KAAT,IAAA,IAAA,SAAS,KAAT,MAAA,GAAA,MAAA,GAAA,SAAS,CAAE,GAAG,CAAC,QAAQ,CAAC,EAAE;AAC7B,4BAAA,SAAS,aAAT,SAAS,KAAA,MAAA,GAAA,MAAA,GAAT,SAAS,CAAE,GAAG,CAAC,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,KAAqC,CAAC,CAAC;;qBAEpF;AACD,iBAAA;AACD,aAAA,CACD;AACF,SAAC;AAvCA,QAAA,IAAI,CAAC,SAAS,GAAG,SAAS;;AAGpB,IAAA,aAAa,CAAC,KAA+B,EAAA;AACnD,QAAA,aAAa,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC;;AAG9B,IAAA,cAAc,CAAC,KAAc,EAAA;AACnC,QAAA,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;;IAiChE,iBAAiB,GAAA;QACvB,KAAK,CAAC,iBAAiB,EAAE;QACzB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC;;AAE1C;;;;","names":[],"sources":["src/functional-components/InputAdornment/InputAdornment.tsx","src/functional-components/InputContainer/InputContainer.tsx","src/functional-components/Button/Button.tsx","src/functional-components/IconButton/IconButton.tsx","src/functional-component-wrappers/InputContainerStateWrapper/InputContainerStateWrapper.tsx","src/components/@deprecated/input/controller-icon.ts"],"sourcesContent":["import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport type { JSXBase } from '@stencil/core/internal';\nimport clsx from 'clsx';\n\nexport type InputAdornmentProps = JSXBase.HTMLAttributes<HTMLDivElement> & {\n\tposition?: 'start' | 'end';\n};\n\nconst InputAdornment: FC<InputAdornmentProps> = ({ position = 'start', class: className, ...other }, children) => {\n\tconst rootClassName = `kol-input-container__adornment`;\n\tconst positionClassName = `${rootClassName}--${position}`;\n\n\treturn (\n\t\t<div class={clsx(rootClassName, positionClassName, className)} {...other}>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nexport default InputAdornment;\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport clsx from 'clsx';\nimport type { JSXBase, VNode } from '@stencil/core/internal';\nimport InputAdornment from '../InputAdornment';\nimport { checkHasMsg, type MsgPropType, type Stringified } from '../../schema';\n\ntype InputAdornmentType = VNode | VNode[] | null;\n\nexport type InputContainerProps = JSXBase.HTMLAttributes & {\n\tstartAdornment?: InputAdornmentType;\n\tendAdornment?: InputAdornmentType;\n\tdisabled?: boolean;\n\tmsg?: Stringified<MsgPropType>;\n\ttouched?: boolean;\n\n\tcontainerProps?: JSXBase.HTMLAttributes<HTMLDivElement>;\n\tstartAdornmentProps?: JSXBase.HTMLAttributes<HTMLDivElement>;\n\tendAdornmentProps?: JSXBase.HTMLAttributes<HTMLDivElement>;\n};\n\nfunction hasItems(items?: InputAdornmentType): boolean {\n\tif (!items) {\n\t\treturn false;\n\t}\n\n\treturn Array.isArray(items) ? items.length > 0 : Boolean(items);\n}\n\nconst Container: FC<JSXBase.HTMLAttributes<HTMLDivElement>> = ({ class: className, ...other }, children) => {\n\treturn (\n\t\t<div class={clsx('kol-input-container__container', className)} {...other}>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nconst KolInputContainerFc: FC<InputContainerProps> = (props, children) => {\n\tconst { class: classNames, startAdornment, endAdornment, disabled, msg, touched, containerProps, startAdornmentProps, endAdornmentProps, ...other } = props;\n\tconst showMsg = checkHasMsg(msg, touched);\n\tconst msgType = typeof msg === 'string' ? 'error' : msg?._type;\n\n\tconst stateCssClasses = {\n\t\t['kol-input-container--disabled']: disabled,\n\t\t[`kol-input-container--${msgType || 'error'}`]: showMsg,\n\t};\n\n\tconst baseProps: JSXBase.HTMLAttributes<HTMLDivElement> = {\n\t\tclass: clsx('kol-input-container', stateCssClasses, classNames),\n\t\t...other,\n\t};\n\n\tif (!hasItems(startAdornment) && !hasItems(endAdornment)) {\n\t\treturn (\n\t\t\t<div {...baseProps}>\n\t\t\t\t<Container {...containerProps}>{children}</Container>\n\t\t\t</div>\n\t\t);\n\t}\n\n\treturn (\n\t\t<div {...baseProps}>\n\t\t\t<InputAdornment {...startAdornmentProps} position=\"start\">\n\t\t\t\t{startAdornment}\n\t\t\t</InputAdornment>\n\t\t\t<Container {...containerProps}>{children}</Container>\n\t\t\t<InputAdornment {...endAdornmentProps} position=\"end\">\n\t\t\t\t{endAdornment}\n\t\t\t</InputAdornment>\n\t\t</div>\n\t);\n};\n\nexport default KolInputContainerFc;\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport { KolButtonWcTag } from '../../core/component-names';\nimport type { InternalButtonProps } from '../../schema';\n\nexport type ButtonProps = Partial<InternalButtonProps> & {\n\tlabel: string;\n\tclass?: string;\n\tonClick?: (event: MouseEvent) => void;\n};\n\nconst KolButtonFc: FC<ButtonProps> = (props) => {\n\tconst { label, icons, hideLabel, disabled, onClick, ...other } = props;\n\n\treturn <KolButtonWcTag _label={label} _disabled={disabled} _icons={icons} _hideLabel={hideLabel} _on={{ onClick }} {...other} />;\n};\n\nexport default KolButtonFc;\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport KolButtonFc, { type ButtonProps } from '../Button';\nimport KolIconFc, { type IconProps } from '../Icon';\nimport type { ButtonVariantPropType } from '../../schema';\n\ntype IconType = Partial<Omit<IconProps, 'icons'>> & {\n\tcomponentName: 'icon';\n\ticon?: string;\n\tclass?: string;\n\n\tonClick?: (event: MouseEvent) => void;\n};\n\ntype ButtonType = Partial<Omit<ButtonProps, 'icons'>> & {\n\tcomponentName: 'button';\n\ticon?: string;\n\tlabel?: string;\n\tclass?: string;\n\tbuttonVariant?: ButtonVariantPropType;\n\n\tonClick?: (event: MouseEvent) => void;\n};\n\nexport type IconButtonProps = IconType | ButtonType;\n\n/**\n * `KolIconButtonFc` is a functional component that renders either a Button or an Icon based on the provided props.\n *\n * Depending on the value of the `componentName` prop, either a Button (`KolButtonFc`) or an Icon (`KolIconFc`) is rendered.\n * Both components support optional `icon` props for displaying an icon and an optional `onClick` handler for user interactions.\n *\n * This component combines the flexibility of rendering either a button with an optional label or a simple icon, while ensuring that unnecessary props for the selected element are not passed.\n *\n * Supported props:\n * - `componentName`: Specifies whether a 'button' or 'icon' should be rendered. Default is 'button'.\n * - `label`: An optional label, which is only shown for Buttons.\n * - `icon`: The name of the icon (e.g., \"home\", \"edit\") or the Codicon class used for the icon display.\n * - `class`: Optional CSS class for additional styling customization.\n * - `buttonVariant`: Variant for the button component.\n * - `onClick`: Optional click handler for user interactions.\n *\n * Example usage:\n * ```tsx\n * <KolIconButtonFc componentName=\"button\" label=\"Submit\" icon=\"check\" onClick={handleClick} />\n * <KolIconButtonFc componentName=\"icon\" icon=\"alert\" onClick={handleClick} />\n * ```\n *\n * @param {IconButtonProps} props - The properties that customize the component, including the selection of the component type (Button or Icon) and other specific attributes.\n * @returns {JSX.Element} - The rendered JSX element (Button or Icon).\n */\nconst KolIconButtonFc: FC<IconButtonProps> = (props) => {\n\tconst { componentName = 'button', label, icon, onClick, ...other } = props;\n\tconst Component = componentName === 'button' ? KolButtonFc : KolIconFc;\n\n\treturn <Component label={label || ''} hideLabel icons={`codicon codicon-${icon}`} onClick={onClick} {...other} />;\n};\n\nexport default KolIconButtonFc;\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport {\n\ttype ButtonProps,\n\ttype IconOrIconClass,\n\ttype InputColorStates,\n\ttype InputEmailStates,\n\ttype InputFileStates,\n\ttype InputNumberStates,\n\ttype InputPasswordStates,\n\ttype InputRangeStates,\n\ttype InputTextStates,\n\ttype KoliBriHorizontalIcons,\n\ttype TextareaStates,\n\ttype SelectStates,\n\ttype MsgPropType,\n\ttype Stringified,\n} from '../../schema';\n\nimport KolInputContainerFc, { type InputContainerProps } from '../../functional-components/InputContainer';\nimport KolIconButtonFc from '../../functional-components/IconButton';\nimport { isObject, isString } from 'lodash-es';\n\ntype InputState =\n\t| TextareaStates\n\t| SelectStates\n\t| InputTextStates\n\t| InputEmailStates\n\t| InputPasswordStates\n\t| InputNumberStates\n\t| InputColorStates\n\t| InputFileStates\n\t| InputRangeStates;\n\nexport type InputContainerStateWrapperProps = Partial<InputContainerProps> & {\n\tstate: InputState;\n};\n\nfunction getInputContainerProps(state: InputState): {\n\ticons?: KoliBriHorizontalIcons;\n\tsmartButton?: ButtonProps;\n\tdisabled?: boolean;\n\tmsg?: Stringified<MsgPropType>;\n\ttouched?: boolean;\n} {\n\tlet icons: KoliBriHorizontalIcons | undefined = undefined;\n\tlet smartButton: ButtonProps | undefined;\n\n\tif ('_icons' in state) {\n\t\ticons = state._icons;\n\t}\n\n\tif ('_smartButton' in state) {\n\t\tsmartButton = state._smartButton;\n\t}\n\n\treturn {\n\t\ticons,\n\t\tsmartButton,\n\t\tdisabled: state._disabled,\n\t\tmsg: state._msg,\n\t\ttouched: state._touched,\n\t};\n}\n\nconst InputContainerStateWrapperFc: FC<InputContainerStateWrapperProps> = ({ state, endAdornment: defaultEndAdornment }, children) => {\n\tconst { icons, smartButton, disabled, msg, touched } = getInputContainerProps(state);\n\n\tlet leftIconProps: IconOrIconClass | undefined = icons?.left;\n\tif (isString(leftIconProps)) {\n\t\tleftIconProps = { icon: leftIconProps };\n\t}\n\n\tlet rightIconProps: IconOrIconClass | undefined = icons?.right;\n\tif (isString(rightIconProps)) {\n\t\trightIconProps = { icon: rightIconProps };\n\t}\n\n\tconst startAdornment = [];\n\tconst endAdornment = [];\n\n\tif (defaultEndAdornment) {\n\t\tif (Array.isArray(defaultEndAdornment)) {\n\t\t\tendAdornment.push(...defaultEndAdornment);\n\t\t} else {\n\t\t\tendAdornment.push(defaultEndAdornment);\n\t\t}\n\t}\n\n\tif (leftIconProps) {\n\t\tstartAdornment.push(<KolIconButtonFc componentName=\"icon\" class=\"kol-input-container__icon\" {...(isObject(leftIconProps) ? leftIconProps : {})} />);\n\t}\n\n\tif (isObject(smartButton)) {\n\t\tendAdornment.push(\n\t\t\t<KolIconButtonFc componentName=\"button\" class=\"kol-input-container__smart-button\" {...smartButton} hideLabel={true} disabled={disabled} />,\n\t\t);\n\t}\n\n\tif (rightIconProps) {\n\t\tendAdornment.push(<KolIconButtonFc componentName=\"icon\" class=\"kol-input-container__icon\" {...(isObject(rightIconProps) ? rightIconProps : {})} />);\n\t}\n\n\treturn (\n\t\t<KolInputContainerFc disabled={disabled} msg={msg} touched={touched} startAdornment={startAdornment} endAdornment={endAdornment}>\n\t\t\t{children}\n\t\t</KolInputContainerFc>\n\t);\n};\n\nexport default InputContainerStateWrapperFc;\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { IconsHorizontalPropType, NumberString } from '../../../schema';\nimport { watchValidator } from '../../../schema';\nimport { validateIcons } from '../../../schema';\n\nimport { InputController } from './controller';\n\nimport type { Props, Watches } from './types-icon';\n\nexport class InputIconController extends InputController implements Watches {\n\tprotected readonly component: Generic.Element.Component & Props;\n\tprivate readonly numberStringRegex = /^\\d+(\\.\\d+)?$/; // https://regex101.com/r/mET6Tx/1\n\n\tpublic constructor(component: Generic.Element.Component & Props, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateIcons(value?: IconsHorizontalPropType): void {\n\t\tvalidateIcons(this.component, value);\n\t}\n\n\tpublic isNumberString(value: unknown): value is NumberString {\n\t\treturn typeof value === 'string' && this.numberStringRegex.test(value);\n\t}\n\n\tprotected readonly parseToNumber = (value?: number | NumberString | null): number | null => {\n\t\tif (typeof value === 'number') {\n\t\t\treturn isNaN(value) ? null : value;\n\t\t}\n\t\tif (this.isNumberString(value)) {\n\t\t\treturn parseFloat(value);\n\t\t}\n\t\treturn null;\n\t};\n\n\tprotected readonly validateNumber = (propName: string, value?: number | NumberString | null) => {\n\t\treturn watchValidator(\n\t\t\tthis.component,\n\t\t\tpropName,\n\t\t\t(value): boolean =>\n\t\t\t\tvalue === undefined || value === null || typeof value === 'number' || (typeof value === 'string' && this.numberStringRegex.test(value)),\n\t\t\tnew Set(['number', 'NumberString']),\n\t\t\tvalue,\n\t\t\t{\n\t\t\t\thooks: {\n\t\t\t\t\tbeforePatch: (value: unknown, nextState) => {\n\t\t\t\t\t\tif (nextState?.has(propName)) {\n\t\t\t\t\t\t\tnextState?.set(propName, this.parseToNumber(value as number | NumberString | null));\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t);\n\t};\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateIcons(this.component._icons);\n\t}\n}\n"],"version":3}
1
+ {"file":"controller-icon.js","mappings":";;;;;;;;;;;;;;AAQA,MAAM,cAAc,GAA4B,CAAC,EAAkD,EAAE,QAAQ,KAAI;IAAhE,IAAA,EAAE,QAAQ,GAAG,OAAO,EAAE,KAAK,EAAE,SAAS,EAAA,GAAA,EAAY,EAAP,KAAK,GAAhD,MAAA,CAAA,EAAA,EAAA,CAAA,UAAA,EAAA,OAAA,CAAkD,CAAF;IAChG,MAAM,aAAa,GAAG,CAAA,8BAAA,CAAgC;AACtD,IAAA,MAAM,iBAAiB,GAAG,CAAA,EAAG,aAAa,CAAK,EAAA,EAAA,QAAQ,EAAE;AAEzD,IAAA,QACC,CAAK,CAAA,KAAA,EAAA,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EAAE,IAAI,CAAC,aAAa,EAAE,iBAAiB,EAAE,SAAS,CAAC,EAAM,EAAA,KAAK,GACtE,QAAQ,CACJ;AAER,CAAC;;ACGD,SAAS,QAAQ,CAAC,KAA0B,EAAA;IAC3C,IAAI,CAAC,KAAK,EAAE;AACX,QAAA,OAAO,KAAK;;IAGb,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,G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C,CAAC,EACnC,KAAK,EACL;AACC,gBAAA,KAAK,EAAE;AACN,oBAAA,WAAW,EAAE,CAAC,KAAc,EAAE,SAAS,KAAI;wBAC1C,IAAI,SAAS,KAAT,IAAA,IAAA,SAAS,KAAT,MAAA,GAAA,MAAA,GAAA,SAAS,CAAE,GAAG,CAAC,QAAQ,CAAC,EAAE;AAC7B,4BAAA,SAAS,aAAT,SAAS,KAAA,MAAA,GAAA,MAAA,GAAT,SAAS,CAAE,GAAG,CAAC,QAAQ,EAAE,IAAI,CAAC,aAAa,CAAC,KAAqC,CAAC,CAAC;;qBAEpF;AACD,iBAAA;AACD,aAAA,CACD;AACF,SAAC;AAvCA,QAAA,IAAI,CAAC,SAAS,GAAG,SAAS;;AAGpB,IAAA,aAAa,CAAC,KAA+B,EAAA;AACnD,QAAA,aAAa,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC;;AAG9B,IAAA,cAAc,CAAC,KAAc,EAAA;AACnC,QAAA,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,KAAK,CAAC;;IAiChE,iBAAiB,GAAA;QACvB,KAAK,CAAC,iBAAiB,EAAE;QACzB,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC;;AAE1C;;;;","names":[],"sources":["src/functional-components/InputAdornment/InputAdornment.tsx","src/functional-components/InputContainer/InputContainer.tsx","src/functional-components/Button/Button.tsx","src/functional-components/IconButton/IconButton.tsx","src/functional-component-wrappers/InputContainerStateWrapper/InputContainerStateWrapper.tsx","src/components/@deprecated/input/controller-icon.ts"],"sourcesContent":["import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport type { JSXBase } from '@stencil/core/internal';\nimport clsx from 'clsx';\n\nexport type InputAdornmentProps = JSXBase.HTMLAttributes<HTMLDivElement> & {\n\tposition?: 'start' | 'end';\n};\n\nconst InputAdornment: FC<InputAdornmentProps> = ({ position = 'start', class: className, ...other }, children) => {\n\tconst rootClassName = `kol-input-container__adornment`;\n\tconst positionClassName = `${rootClassName}--${position}`;\n\n\treturn (\n\t\t<div class={clsx(rootClassName, positionClassName, className)} {...other}>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nexport default InputAdornment;\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport type { JSXBase, VNode } from '@stencil/core/internal';\nimport clsx from 'clsx';\nimport { getMsgType, isMsgDefinedAndInputTouched, type MsgPropType, type Stringified } from '../../schema';\nimport InputAdornment from '../InputAdornment';\n\ntype InputAdornmentType = VNode | VNode[] | null;\n\nexport type InputContainerProps = JSXBase.HTMLAttributes & {\n\tstartAdornment?: InputAdornmentType;\n\tendAdornment?: InputAdornmentType;\n\tdisabled?: boolean;\n\tmsg?: Stringified<MsgPropType>;\n\ttouched?: boolean;\n\n\tcontainerProps?: JSXBase.HTMLAttributes<HTMLDivElement>;\n\tstartAdornmentProps?: JSXBase.HTMLAttributes<HTMLDivElement>;\n\tendAdornmentProps?: JSXBase.HTMLAttributes<HTMLDivElement>;\n};\n\nfunction hasItems(items?: InputAdornmentType): boolean {\n\tif (!items) {\n\t\treturn false;\n\t}\n\n\treturn Array.isArray(items) ? items.length > 0 : Boolean(items);\n}\n\nconst Container: FC<JSXBase.HTMLAttributes<HTMLDivElement>> = ({ class: className, ...other }, children) => {\n\treturn (\n\t\t<div class={clsx('kol-input-container__container', className)} {...other}>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\n\nconst KolInputContainerFc: FC<InputContainerProps> = (props, children) => {\n\tconst { class: classNames, startAdornment, endAdornment, disabled, msg, touched, containerProps, startAdornmentProps, endAdornmentProps, ...other } = props;\n\tconst stateCssClasses = {\n\t\t['kol-input-container--disabled']: disabled,\n\t\t[`kol-input-container--${getMsgType(msg)}`]: isMsgDefinedAndInputTouched(msg, touched),\n\t};\n\n\tconst baseProps: JSXBase.HTMLAttributes<HTMLDivElement> = {\n\t\tclass: clsx('kol-input-container', stateCssClasses, classNames),\n\t\t...other,\n\t};\n\n\tif (!hasItems(startAdornment) && !hasItems(endAdornment)) {\n\t\treturn (\n\t\t\t<div {...baseProps}>\n\t\t\t\t<Container {...containerProps}>{children}</Container>\n\t\t\t</div>\n\t\t);\n\t}\n\n\treturn (\n\t\t<div {...baseProps}>\n\t\t\t<InputAdornment {...startAdornmentProps} position=\"start\">\n\t\t\t\t{startAdornment}\n\t\t\t</InputAdornment>\n\t\t\t<Container {...containerProps}>{children}</Container>\n\t\t\t<InputAdornment {...endAdornmentProps} position=\"end\">\n\t\t\t\t{endAdornment}\n\t\t\t</InputAdornment>\n\t\t</div>\n\t);\n};\n\nexport default KolInputContainerFc;\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport { KolButtonWcTag } from '../../core/component-names';\nimport type { InternalButtonProps } from '../../schema';\n\nexport type ButtonProps = Partial<InternalButtonProps> & {\n\tlabel: string;\n\tclass?: string;\n\tonClick?: (event: MouseEvent) => void;\n};\n\nconst KolButtonFc: FC<ButtonProps> = (props) => {\n\tconst { label, icons, hideLabel, disabled, onClick, ...other } = props;\n\n\treturn <KolButtonWcTag _label={label} _disabled={disabled} _icons={icons} _hideLabel={hideLabel} _on={{ onClick }} {...other} />;\n};\n\nexport default KolButtonFc;\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport type { ButtonVariantPropType } from '../../schema';\nimport KolButtonFc, { type ButtonProps } from '../Button';\nimport KolIconFc, { type IconProps } from '../Icon';\n\ntype IconType = Partial<Omit<IconProps, 'icons'>> & {\n\tcomponentName: 'icon';\n\ticon?: string;\n\tclass?: string;\n\n\tonClick?: (event: MouseEvent) => void;\n};\n\ntype ButtonType = Partial<Omit<ButtonProps, 'icons'>> & {\n\tcomponentName: 'button';\n\ticon?: string;\n\tlabel?: string;\n\tclass?: string;\n\tbuttonVariant?: ButtonVariantPropType;\n\n\tonClick?: (event: MouseEvent) => void;\n};\n\nexport type IconButtonProps = IconType | ButtonType;\n\n/**\n * `KolIconButtonFc` is a functional component that renders either a Button or an Icon based on the provided props.\n *\n * Depending on the value of the `componentName` prop, either a Button (`KolButtonFc`) or an Icon (`KolIconFc`) is rendered.\n * Both components support optional `icon` props for displaying an icon and an optional `onClick` handler for user interactions.\n *\n * This component combines the flexibility of rendering either a button with an optional label or a simple icon, while ensuring that unnecessary props for the selected element are not passed.\n *\n * Supported props:\n * - `componentName`: Specifies whether a 'button' or 'icon' should be rendered. Default is 'button'.\n * - `label`: An optional label, which is only shown for Buttons.\n * - `icon`: The Codicon or other font classname used for the icon display.\n * - `class`: Optional CSS class for additional styling customization.\n * - `buttonVariant`: Variant for the button component.\n * - `onClick`: Optional click handler for user interactions.\n *\n * Example usage:\n * ```tsx\n * <KolIconButtonFc componentName=\"button\" label=\"Submit\" icon=\"kolicon-check\" onClick={handleClick} />\n * <KolIconButtonFc componentName=\"icon\" icon=\"alert\" onClick={handleClick} />\n * ```\n *\n * @param {IconButtonProps} props - The properties that customize the component, including the selection of the component type (Button or Icon) and other specific attributes.\n * @returns {JSX.Element} - The rendered JSX element (Button or Icon).\n */\nconst KolIconButtonFc: FC<IconButtonProps> = (props) => {\n\tconst { componentName = 'button', label, icon, onClick, ...other } = props;\n\tconst Component = componentName === 'button' ? KolButtonFc : KolIconFc;\n\n\treturn <Component label={label || ''} hideLabel icons={`${icon}`} onClick={onClick} {...other} />;\n};\n\nexport default KolIconButtonFc;\n","import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport {\n\ttype ButtonProps,\n\ttype IconOrIconClass,\n\ttype InputColorStates,\n\ttype InputEmailStates,\n\ttype InputFileStates,\n\ttype InputNumberStates,\n\ttype InputPasswordStates,\n\ttype InputRangeStates,\n\ttype InputTextStates,\n\ttype KoliBriHorizontalIcons,\n\ttype MsgPropType,\n\ttype SelectStates,\n\ttype Stringified,\n\ttype TextareaStates,\n} from '../../schema';\n\nimport { isObject, isString } from 'lodash-es';\nimport KolIconButtonFc from '../../functional-components/IconButton';\nimport KolInputContainerFc, { type InputContainerProps } from '../../functional-components/InputContainer';\n\ntype InputState =\n\t| TextareaStates\n\t| SelectStates\n\t| InputTextStates\n\t| InputEmailStates\n\t| InputPasswordStates\n\t| InputNumberStates\n\t| InputColorStates\n\t| InputFileStates\n\t| InputRangeStates;\n\nexport type InputContainerStateWrapperProps = Partial<InputContainerProps> & {\n\tstate: InputState;\n};\n\nfunction getInputContainerProps(state: InputState): {\n\ticons?: KoliBriHorizontalIcons;\n\tsmartButton?: ButtonProps;\n\tdisabled?: boolean;\n\tmsg?: Stringified<MsgPropType>;\n\ttouched?: boolean;\n} {\n\tlet icons: KoliBriHorizontalIcons | undefined = undefined;\n\tlet smartButton: ButtonProps | undefined;\n\n\tif ('_icons' in state) {\n\t\ticons = state._icons;\n\t}\n\n\tif ('_smartButton' in state) {\n\t\tsmartButton = state._smartButton;\n\t}\n\n\treturn {\n\t\ticons,\n\t\tsmartButton,\n\t\tdisabled: state._disabled,\n\t\tmsg: state._msg,\n\t\ttouched: state._touched,\n\t};\n}\n\nconst InputContainerStateWrapperFc: FC<InputContainerStateWrapperProps> = (\n\t{ state, startAdornment: defaultStartAdornment, endAdornment: defaultEndAdornment },\n\tchildren,\n) => {\n\tconst { icons, smartButton, disabled, msg, touched } = getInputContainerProps(state);\n\n\tlet leftIconProps: IconOrIconClass | undefined = icons?.left;\n\tif (isString(leftIconProps)) {\n\t\tleftIconProps = { icon: leftIconProps };\n\t}\n\n\tlet rightIconProps: IconOrIconClass | undefined = icons?.right;\n\tif (isString(rightIconProps)) {\n\t\trightIconProps = { icon: rightIconProps };\n\t}\n\n\tconst startAdornment = [];\n\tconst endAdornment = [];\n\n\tif (defaultStartAdornment) {\n\t\tif (Array.isArray(defaultStartAdornment)) {\n\t\t\tstartAdornment.push(...defaultStartAdornment);\n\t\t} else {\n\t\t\tstartAdornment.push(defaultStartAdornment);\n\t\t}\n\t}\n\n\tif (leftIconProps) {\n\t\tstartAdornment.push(<KolIconButtonFc componentName=\"icon\" class=\"kol-input-container__icon\" {...(isObject(leftIconProps) ? leftIconProps : {})} />);\n\t}\n\n\tif (isObject(smartButton)) {\n\t\tendAdornment.push(\n\t\t\t<KolIconButtonFc componentName=\"button\" class=\"kol-input-container__smart-button\" {...smartButton} hideLabel={true} disabled={disabled} />,\n\t\t);\n\t}\n\n\tif (rightIconProps) {\n\t\tendAdornment.push(<KolIconButtonFc componentName=\"icon\" class=\"kol-input-container__icon\" {...(isObject(rightIconProps) ? rightIconProps : {})} />);\n\t}\n\n\tif (defaultEndAdornment) {\n\t\tif (Array.isArray(defaultEndAdornment)) {\n\t\t\tendAdornment.push(...defaultEndAdornment);\n\t\t} else {\n\t\t\tendAdornment.push(defaultEndAdornment);\n\t\t}\n\t}\n\n\treturn (\n\t\t<KolInputContainerFc disabled={disabled} msg={msg} touched={touched} startAdornment={startAdornment} endAdornment={endAdornment}>\n\t\t\t{children}\n\t\t</KolInputContainerFc>\n\t);\n};\n\nexport default InputContainerStateWrapperFc;\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { IconsHorizontalPropType, NumberString } from '../../../schema';\nimport { validateIcons, watchValidator } from '../../../schema';\n\nimport { InputController } from './controller';\n\nimport type { Props, Watches } from './types-icon';\n\nexport class InputIconController extends InputController implements Watches {\n\tprotected readonly component: Generic.Element.Component & Props;\n\tprivate readonly numberStringRegex = /^\\d+(\\.\\d+)?$/; // https://regex101.com/r/mET6Tx/1\n\n\tpublic constructor(component: Generic.Element.Component & Props, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateIcons(value?: IconsHorizontalPropType): void {\n\t\tvalidateIcons(this.component, value);\n\t}\n\n\tpublic isNumberString(value: unknown): value is NumberString {\n\t\treturn typeof value === 'string' && this.numberStringRegex.test(value);\n\t}\n\n\tprotected readonly parseToNumber = (value?: number | NumberString | null): number | null => {\n\t\tif (typeof value === 'number') {\n\t\t\treturn isNaN(value) ? null : value;\n\t\t}\n\t\tif (this.isNumberString(value)) {\n\t\t\treturn parseFloat(value);\n\t\t}\n\t\treturn null;\n\t};\n\n\tprotected readonly validateNumber = (propName: string, value?: number | NumberString | null) => {\n\t\treturn watchValidator(\n\t\t\tthis.component,\n\t\t\tpropName,\n\t\t\t(value): boolean =>\n\t\t\t\tvalue === undefined || value === null || typeof value === 'number' || (typeof value === 'string' && this.numberStringRegex.test(value)),\n\t\t\tnew Set(['number', 'NumberString']),\n\t\t\tvalue,\n\t\t\t{\n\t\t\t\thooks: {\n\t\t\t\t\tbeforePatch: (value: unknown, nextState) => {\n\t\t\t\t\t\tif (nextState?.has(propName)) {\n\t\t\t\t\t\t\tnextState?.set(propName, this.parseToNumber(value as number | NumberString | null));\n\t\t\t\t\t\t}\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t);\n\t};\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateIcons(this.component._icons);\n\t}\n}\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- import{O as getExperimentalMode,l as devHint,g as setEventTarget,a as KoliBriDevHelper,L as Log}from"./common.js";import{h as KolFormTag}from"./component-names.js";const searchFormElement=e=>{for(getExperimentalMode()&&(devHint("↓ Search form element start."),Log.debug(e));e instanceof HTMLElement&&"FORM"!==e.tagName&&e.tagName!==KolFormTag.toUpperCase();){try{e=e.parentElement instanceof HTMLElement?e.parentElement:e.parentNode instanceof ShadowRoot?e.parentNode.host:null}catch(e){}getExperimentalMode()&&(Log.debug(e),devHint("↑ Search form element finished."))}return e},propagateResetEventToForm=(e={})=>{var t,o;const n=searchFormElement(e.form);if(n instanceof HTMLElement){const e=new Event("reset",{bubbles:!0,cancelable:!0});if("FORM"===n.tagName)setEventTarget(e,n),n.dispatchEvent(e);else if(n.tagName===KolFormTag.toUpperCase()){setEventTarget(e,KoliBriDevHelper.querySelector("form",n));const a=n;"function"==typeof(null===(t=a._on)||void 0===t?void 0:t.onReset)&&(null===(o=a._on)||void 0===o||o.onReset(e))}}},propagateSubmitEventToForm=(e={})=>{const t=searchFormElement(e.form);if(t instanceof HTMLElement){const e=new SubmitEvent("submit",{bubbles:!0,cancelable:!0,submitter:t});if("FORM"===t.tagName)getExperimentalMode()&&!1===t.noValidate&&devHint("If you have not focusable or hidden form fields in your form, you should enable noValidate for your form.",{force:!0}),setTimeout(()=>{"function"==typeof t.requestSubmit?t.requestSubmit():(setEventTarget(e,t),t.dispatchEvent(e))});else if(t.tagName===KolFormTag.toUpperCase()){setEventTarget(e,KoliBriDevHelper.querySelector("form",t));const o=t;setTimeout(()=>{var t,n;"function"==typeof(null===(t=o._on)||void 0===t?void 0:t.onSubmit)&&(null===(n=o._on)||void 0===n||n.onSubmit(e))})}}};export{propagateResetEventToForm as a,propagateSubmitEventToForm as p};
4
+ import{h as KolFormTag}from"./component-names.js";import{O as getExperimentalMode,l as devHint,g as setEventTarget,a as KoliBriDevHelper,L as Log}from"./common.js";const searchFormElement=e=>{for(getExperimentalMode()&&(devHint("↓ Search form element start."),Log.debug(e));e instanceof HTMLElement&&"FORM"!==e.tagName&&e.tagName!==KolFormTag.toUpperCase();){try{e=e.parentElement instanceof HTMLElement?e.parentElement:e.parentNode instanceof ShadowRoot?e.parentNode.host:null}catch(e){}getExperimentalMode()&&(Log.debug(e),devHint("↑ Search form element finished."))}return e},propagateResetEventToForm=(e={})=>{var t,o;const n=searchFormElement(e.form);if(n instanceof HTMLElement){const e=new Event("reset",{bubbles:!0,cancelable:!0});if("FORM"===n.tagName)setEventTarget(e,n),n.dispatchEvent(e);else if(n.tagName===KolFormTag.toUpperCase()){setEventTarget(e,KoliBriDevHelper.querySelector("form",n));const a=n;"function"==typeof(null===(t=a._on)||void 0===t?void 0:t.onReset)&&(null===(o=a._on)||void 0===o||o.onReset(e))}}},propagateSubmitEventToForm=(e={})=>{const t=searchFormElement(e.form);if(t instanceof HTMLElement){const e=new SubmitEvent("submit",{bubbles:!0,cancelable:!0,submitter:t});if("FORM"===t.tagName)getExperimentalMode()&&!1===t.noValidate&&devHint("If you have not focusable or hidden form fields in your form, you should enable noValidate for your form.",{force:!0}),setTimeout(()=>{"function"==typeof t.requestSubmit?t.requestSubmit():(setEventTarget(e,t),t.dispatchEvent(e))});else if(t.tagName===KolFormTag.toUpperCase()){setEventTarget(e,KoliBriDevHelper.querySelector("form",t));const o=t;setTimeout(()=>{var t,n;"function"==typeof(null===(t=o._on)||void 0===t?void 0:t.onSubmit)&&(null===(n=o._on)||void 0===n||n.onSubmit(e))})}}};export{propagateResetEventToForm as a,propagateSubmitEventToForm as p};