@public-ui/components 3.0.7-rc.5 → 3.0.7-rc.6

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 (780) hide show
  1. package/custom-elements.json +33 -2
  2. package/dist/cjs/{Alert-DvztE5sg.js → Alert-CQIlrqQH.js} +1 -1
  3. package/dist/cjs/Alert-CQIlrqQH.js.map +1 -0
  4. package/dist/cjs/{Collapsible-D2QsBsvn.js → Collapsible-pru13Gq6.js} +1 -1
  5. package/dist/cjs/{Collapsible-D2QsBsvn.js.map → Collapsible-pru13Gq6.js.map} +1 -1
  6. package/dist/cjs/{CustomSuggestionsToggle-B7B6ntEj.js → CustomSuggestionsToggle-Cy9GclGd.js} +1 -1
  7. package/dist/cjs/{CustomSuggestionsToggle-B7B6ntEj.js.map → CustomSuggestionsToggle-Cy9GclGd.js.map} +1 -1
  8. package/dist/cjs/{FieldControlStateWrapper-DwC6Snjc.js → FieldControlStateWrapper-DRTv94EM.js} +1 -1
  9. package/dist/cjs/{FieldControlStateWrapper-DwC6Snjc.js.map → FieldControlStateWrapper-DRTv94EM.js.map} +1 -1
  10. package/dist/cjs/{FormFieldStateWrapper-D_DZ7bhJ.js → FormFieldStateWrapper-BD3UHnBj.js} +1 -1
  11. package/dist/cjs/FormFieldStateWrapper-BD3UHnBj.js.map +1 -0
  12. package/dist/cjs/{Heading-BNXzN0YN.js → Heading-DKjDqfeX.js} +1 -1
  13. package/dist/cjs/{Heading-BNXzN0YN.js.map → Heading-DKjDqfeX.js.map} +1 -1
  14. package/dist/cjs/Icon-CLiVsvC6.js +4 -0
  15. package/dist/cjs/{Icon-DiNO3cEA.js.map → Icon-CLiVsvC6.js.map} +1 -1
  16. package/dist/cjs/{Input-DDjP-mWX.js → Input-Cc6ZdD1t.js} +1 -1
  17. package/dist/cjs/Input-Cc6ZdD1t.js.map +1 -0
  18. package/dist/cjs/{InputStateWrapper-BG2Sr2Po.js → InputStateWrapper-ezJ76Bdc.js} +1 -1
  19. package/dist/cjs/{InputStateWrapper-BG2Sr2Po.js.map → InputStateWrapper-ezJ76Bdc.js.map} +1 -1
  20. package/dist/cjs/{InternalUnderlinedBadgeText-CYAV_r9-.js → InternalUnderlinedBadgeText-ByM6-JtC.js} +1 -1
  21. package/dist/cjs/{InternalUnderlinedBadgeText-CYAV_r9-.js.map → InternalUnderlinedBadgeText-ByM6-JtC.js.map} +1 -1
  22. package/dist/cjs/{Span-DraRn9Dn.js → Span-B792jKxt.js} +1 -1
  23. package/dist/cjs/{Span-DraRn9Dn.js.map → Span-B792jKxt.js.map} +1 -1
  24. package/dist/cjs/{app-globals-Bifd0vhj.js → app-globals-DOAiX4ZQ.js} +1 -1
  25. package/dist/cjs/{app-globals-Bifd0vhj.js.map → app-globals-DOAiX4ZQ.js.map} +1 -1
  26. package/dist/cjs/bem-BVClcAVJ.js.map +1 -1
  27. package/dist/cjs/bem-Bu0VYjZa.js.map +1 -1
  28. package/dist/cjs/color-D7OxzTlF.js.map +1 -1
  29. package/dist/cjs/{controller-BF3IbQCZ.js → controller-BLXRNmNA.js} +1 -1
  30. package/dist/cjs/controller-BLXRNmNA.js.map +1 -0
  31. package/dist/cjs/{controller-B1A8W7b8.js → controller-BaayT2uj.js} +1 -1
  32. package/dist/cjs/{controller-B1A8W7b8.js.map → controller-BaayT2uj.js.map} +1 -1
  33. package/dist/cjs/{controller-C4EOo10w.js → controller-CuVgK1nk.js} +1 -1
  34. package/dist/cjs/{controller-C4EOo10w.js.map → controller-CuVgK1nk.js.map} +1 -1
  35. package/dist/cjs/{controller-icon-BvyG2-aM.js → controller-icon-BSN9Zg9Z.js} +1 -1
  36. package/dist/cjs/controller-icon-BSN9Zg9Z.js.map +1 -0
  37. package/dist/cjs/{controller-XCXRkWDG.js → controller-vLepTMZM.js} +1 -1
  38. package/dist/cjs/{controller-XCXRkWDG.js.map → controller-vLepTMZM.js.map} +1 -1
  39. package/dist/cjs/{dev.utils-D10tovQh.js → dev.utils-DECr109c.js} +1 -1
  40. package/dist/cjs/{dev.utils-D10tovQh.js.map → dev.utils-DECr109c.js.map} +1 -1
  41. package/dist/cjs/{devtools-BxG_Wlpf.js → devtools-BI2o7npG.js} +1 -1
  42. package/dist/cjs/{devtools-BxG_Wlpf.js.map → devtools-BI2o7npG.js.map} +1 -1
  43. package/dist/cjs/{index-CeweGYAX.js → index-DKNg2r8I.js} +1 -1
  44. package/dist/cjs/{index-CeweGYAX.js.map → index-DKNg2r8I.js.map} +1 -1
  45. package/dist/cjs/index.cjs.js +1 -1
  46. package/dist/cjs/index.cjs.js.map +1 -1
  47. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  48. package/dist/cjs/kol-abbr.entry.cjs.js.map +1 -1
  49. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  50. package/dist/cjs/kol-accordion.entry.cjs.js.map +1 -1
  51. package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
  52. package/dist/cjs/kol-alert-wc.entry.cjs.js.map +1 -1
  53. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  54. package/dist/cjs/kol-alert.entry.cjs.js.map +1 -1
  55. package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
  56. package/dist/cjs/kol-avatar-wc.entry.cjs.js.map +1 -1
  57. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  58. package/dist/cjs/kol-avatar.entry.cjs.js.map +1 -1
  59. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  60. package/dist/cjs/kol-badge.entry.cjs.js.map +1 -1
  61. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  62. package/dist/cjs/kol-breadcrumb.entry.cjs.js.map +1 -1
  63. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  64. package/dist/cjs/kol-button-link.entry.cjs.js.map +1 -1
  65. package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
  66. package/dist/cjs/kol-button-wc.entry.cjs.js.map +1 -1
  67. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  68. package/dist/cjs/kol-button.entry.cjs.js.map +1 -1
  69. package/dist/cjs/kol-card-wc.cjs.entry.js +1 -1
  70. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  71. package/dist/cjs/kol-combobox.cjs.entry.js +1 -1
  72. package/dist/cjs/kol-combobox.entry.cjs.js.map +1 -1
  73. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  74. package/dist/cjs/kol-details.entry.cjs.js.map +1 -1
  75. package/dist/cjs/kol-drawer.cjs.entry.js +1 -1
  76. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  77. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  78. package/dist/cjs/kol-heading.entry.cjs.js.map +1 -1
  79. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  80. package/dist/cjs/kol-icon.entry.cjs.js.map +1 -1
  81. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  82. package/dist/cjs/kol-image.entry.cjs.js.map +1 -1
  83. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  84. package/dist/cjs/kol-input-checkbox.entry.cjs.js.map +1 -1
  85. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  86. package/dist/cjs/kol-input-color.entry.cjs.js.map +1 -1
  87. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  88. package/dist/cjs/kol-input-date.entry.cjs.js.map +1 -1
  89. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  90. package/dist/cjs/kol-input-email.entry.cjs.js.map +1 -1
  91. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  92. package/dist/cjs/kol-input-file.entry.cjs.js.map +1 -1
  93. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  94. package/dist/cjs/kol-input-number.entry.cjs.js.map +1 -1
  95. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  96. package/dist/cjs/kol-input-password.entry.cjs.js.map +1 -1
  97. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  98. package/dist/cjs/kol-input-radio.entry.cjs.js.map +1 -1
  99. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  100. package/dist/cjs/kol-input-range.entry.cjs.js.map +1 -1
  101. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  102. package/dist/cjs/kol-input-text.entry.cjs.js.map +1 -1
  103. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  104. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  105. package/dist/cjs/kol-link-button.entry.cjs.js.map +1 -1
  106. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  107. package/dist/cjs/kol-link-wc.entry.cjs.js.map +1 -1
  108. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  109. package/dist/cjs/kol-link.entry.cjs.js.map +1 -1
  110. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  111. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  112. package/dist/cjs/kol-pagination-wc.cjs.entry.js +1 -1
  113. package/dist/cjs/kol-pagination-wc.entry.cjs.js.map +1 -1
  114. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  115. package/dist/cjs/kol-popover-button-wc.cjs.entry.js +1 -1
  116. package/dist/cjs/kol-popover-button-wc.entry.cjs.js.map +1 -1
  117. package/dist/cjs/kol-popover-button.cjs.entry.js +1 -1
  118. package/dist/cjs/kol-popover-button.entry.cjs.js.map +1 -1
  119. package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
  120. package/dist/cjs/kol-popover-wc.entry.cjs.js.map +1 -1
  121. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  122. package/dist/cjs/kol-progress.entry.cjs.js.map +1 -1
  123. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  124. package/dist/cjs/kol-quote.entry.cjs.js.map +1 -1
  125. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  126. package/dist/cjs/kol-select.entry.cjs.js.map +1 -1
  127. package/dist/cjs/kol-single-select.cjs.entry.js +1 -1
  128. package/dist/cjs/kol-single-select.entry.cjs.js.map +1 -1
  129. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  130. package/dist/cjs/kol-skip-nav.entry.cjs.js.map +1 -1
  131. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  132. package/dist/cjs/kol-spin.entry.cjs.js.map +1 -1
  133. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  134. package/dist/cjs/kol-split-button.entry.cjs.js.map +1 -1
  135. package/dist/cjs/kol-table-settings-wc.cjs.entry.js +1 -1
  136. package/dist/cjs/kol-table-settings-wc.entry.cjs.js.map +1 -1
  137. package/dist/cjs/kol-table-stateful.cjs.entry.js +1 -1
  138. package/dist/cjs/kol-table-stateful.entry.cjs.js.map +1 -1
  139. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +1 -1
  140. package/dist/cjs/kol-table-stateless-wc.entry.cjs.js.map +1 -1
  141. package/dist/cjs/kol-table-stateless.cjs.entry.js +1 -1
  142. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  143. package/dist/cjs/kol-tabs.entry.cjs.js.map +1 -1
  144. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  145. package/dist/cjs/kol-textarea.entry.cjs.js.map +1 -1
  146. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  147. package/dist/cjs/kol-toast-container.entry.cjs.js.map +1 -1
  148. package/dist/cjs/kol-toolbar.cjs.entry.js +1 -1
  149. package/dist/cjs/kol-toolbar.entry.cjs.js.map +1 -1
  150. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
  151. package/dist/cjs/kol-tooltip-wc.entry.cjs.js.map +1 -1
  152. package/dist/cjs/kol-tree-item-wc.cjs.entry.js +1 -1
  153. package/dist/cjs/kol-tree-item-wc.entry.cjs.js.map +1 -1
  154. package/dist/cjs/kol-tree-item.cjs.entry.js +1 -1
  155. package/dist/cjs/kol-tree-item.entry.cjs.js.map +1 -1
  156. package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
  157. package/dist/cjs/kol-tree-wc.entry.cjs.js.map +1 -1
  158. package/dist/cjs/kol-tree.cjs.entry.js +1 -1
  159. package/dist/cjs/kol-tree.entry.cjs.js.map +1 -1
  160. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  161. package/dist/cjs/kol-version.entry.cjs.js.map +1 -1
  162. package/dist/cjs/kolibri.cjs.js +1 -1
  163. package/dist/cjs/loader.cjs.js +1 -1
  164. package/dist/cjs/multiple-DRhU5nKU.js.map +1 -1
  165. package/dist/cjs/table-settings-Ct3SRuhX.js.map +1 -1
  166. package/dist/cjs/test-component.cjs.entry.js +1 -1
  167. package/dist/components/Alert.js +1 -1
  168. package/dist/components/Alert.js.map +1 -1
  169. package/dist/components/CustomSuggestionsToggle.js.map +1 -1
  170. package/dist/components/FieldControlStateWrapper.js.map +1 -1
  171. package/dist/components/Heading.js.map +1 -1
  172. package/dist/components/Input.js.map +1 -1
  173. package/dist/components/InputStateWrapper.js.map +1 -1
  174. package/dist/components/Span.js.map +1 -1
  175. package/dist/components/bem.js +1 -1
  176. package/dist/components/bem.js.map +1 -1
  177. package/dist/components/bem2.js +1 -1
  178. package/dist/components/bem2.js.map +1 -1
  179. package/dist/components/color.js.map +1 -1
  180. package/dist/components/controller-icon.js +1 -1
  181. package/dist/components/controller-icon.js.map +1 -1
  182. package/dist/components/controller.js +1 -1
  183. package/dist/components/controller.js.map +1 -1
  184. package/dist/components/controller2.js +1 -1
  185. package/dist/components/controller2.js.map +1 -1
  186. package/dist/components/controller3.js +1 -1
  187. package/dist/components/controller3.js.map +1 -1
  188. package/dist/components/controller5.js.map +1 -1
  189. package/dist/components/dev.utils.js.map +1 -1
  190. package/dist/components/devtools.js.map +1 -1
  191. package/dist/components/index.js +1 -1
  192. package/dist/components/index.js.map +1 -1
  193. package/dist/components/kol-abbr.js +1 -1
  194. package/dist/components/kol-abbr.js.map +1 -1
  195. package/dist/components/kol-accordion.js +1 -1
  196. package/dist/components/kol-accordion.js.map +1 -1
  197. package/dist/components/kol-alert-wc.js +1 -1
  198. package/dist/components/kol-alert-wc.js.map +1 -1
  199. package/dist/components/kol-alert.js +1 -1
  200. package/dist/components/kol-alert.js.map +1 -1
  201. package/dist/components/kol-avatar-wc.js +1 -1
  202. package/dist/components/kol-avatar-wc.js.map +1 -1
  203. package/dist/components/kol-avatar.js +1 -1
  204. package/dist/components/kol-avatar.js.map +1 -1
  205. package/dist/components/kol-badge.js +1 -1
  206. package/dist/components/kol-badge.js.map +1 -1
  207. package/dist/components/kol-breadcrumb.js.map +1 -1
  208. package/dist/components/kol-button-link.js +1 -1
  209. package/dist/components/kol-button-link.js.map +1 -1
  210. package/dist/components/kol-button-wc.js +1 -1
  211. package/dist/components/kol-button-wc.js.map +1 -1
  212. package/dist/components/kol-button.js +1 -1
  213. package/dist/components/kol-button.js.map +1 -1
  214. package/dist/components/kol-card-wc.js +1 -1
  215. package/dist/components/kol-combobox.js +1 -1
  216. package/dist/components/kol-combobox.js.map +1 -1
  217. package/dist/components/kol-details.js +1 -1
  218. package/dist/components/kol-details.js.map +1 -1
  219. package/dist/components/kol-heading.js +1 -1
  220. package/dist/components/kol-heading.js.map +1 -1
  221. package/dist/components/kol-icon.js +1 -1
  222. package/dist/components/kol-icon.js.map +1 -1
  223. package/dist/components/kol-image.js.map +1 -1
  224. package/dist/components/kol-input-checkbox.js +1 -1
  225. package/dist/components/kol-input-checkbox.js.map +1 -1
  226. package/dist/components/kol-input-color.js +1 -1
  227. package/dist/components/kol-input-color.js.map +1 -1
  228. package/dist/components/kol-input-date.js +1 -1
  229. package/dist/components/kol-input-date.js.map +1 -1
  230. package/dist/components/kol-input-email.js +1 -1
  231. package/dist/components/kol-input-email.js.map +1 -1
  232. package/dist/components/kol-input-file.js +1 -1
  233. package/dist/components/kol-input-file.js.map +1 -1
  234. package/dist/components/kol-input-number.js +1 -1
  235. package/dist/components/kol-input-number.js.map +1 -1
  236. package/dist/components/kol-input-password.js +1 -1
  237. package/dist/components/kol-input-password.js.map +1 -1
  238. package/dist/components/kol-input-radio.js +1 -1
  239. package/dist/components/kol-input-radio.js.map +1 -1
  240. package/dist/components/kol-input-range.js +1 -1
  241. package/dist/components/kol-input-range.js.map +1 -1
  242. package/dist/components/kol-input-text.js +1 -1
  243. package/dist/components/kol-input-text.js.map +1 -1
  244. package/dist/components/kol-link-button.js +1 -1
  245. package/dist/components/kol-link-button.js.map +1 -1
  246. package/dist/components/kol-link-wc.js +1 -1
  247. package/dist/components/kol-link-wc.js.map +1 -1
  248. package/dist/components/kol-link.js +1 -1
  249. package/dist/components/kol-link.js.map +1 -1
  250. package/dist/components/kol-pagination-wc.js +1 -1
  251. package/dist/components/kol-pagination-wc.js.map +1 -1
  252. package/dist/components/kol-popover-button-wc.js +1 -1
  253. package/dist/components/kol-popover-button-wc.js.map +1 -1
  254. package/dist/components/kol-popover-button.js +1 -1
  255. package/dist/components/kol-popover-button.js.map +1 -1
  256. package/dist/components/kol-popover-wc.js +1 -1
  257. package/dist/components/kol-popover-wc.js.map +1 -1
  258. package/dist/components/kol-progress.js +1 -1
  259. package/dist/components/kol-progress.js.map +1 -1
  260. package/dist/components/kol-quote.js +1 -1
  261. package/dist/components/kol-quote.js.map +1 -1
  262. package/dist/components/kol-select.js +1 -1
  263. package/dist/components/kol-select.js.map +1 -1
  264. package/dist/components/kol-single-select.js +1 -1
  265. package/dist/components/kol-single-select.js.map +1 -1
  266. package/dist/components/kol-skip-nav.js.map +1 -1
  267. package/dist/components/kol-spin.js +1 -1
  268. package/dist/components/kol-spin.js.map +1 -1
  269. package/dist/components/kol-split-button.js +1 -1
  270. package/dist/components/kol-split-button.js.map +1 -1
  271. package/dist/components/kol-table-settings-wc.js +1 -1
  272. package/dist/components/kol-table-settings-wc.js.map +1 -1
  273. package/dist/components/kol-table-stateful.js +1 -1
  274. package/dist/components/kol-table-stateful.js.map +1 -1
  275. package/dist/components/kol-table-stateless-wc.js +1 -1
  276. package/dist/components/kol-table-stateless-wc.js.map +1 -1
  277. package/dist/components/kol-table-stateless.js +1 -1
  278. package/dist/components/kol-tabs.js +1 -1
  279. package/dist/components/kol-tabs.js.map +1 -1
  280. package/dist/components/kol-textarea.js +1 -1
  281. package/dist/components/kol-textarea.js.map +1 -1
  282. package/dist/components/kol-toast-container.js +1 -1
  283. package/dist/components/kol-toast-container.js.map +1 -1
  284. package/dist/components/kol-toolbar.js +1 -1
  285. package/dist/components/kol-toolbar.js.map +1 -1
  286. package/dist/components/kol-tooltip-wc.js +1 -1
  287. package/dist/components/kol-tooltip-wc.js.map +1 -1
  288. package/dist/components/kol-tree-item-wc.js +1 -1
  289. package/dist/components/kol-tree-item-wc.js.map +1 -1
  290. package/dist/components/kol-tree-item.js +1 -1
  291. package/dist/components/kol-tree-item.js.map +1 -1
  292. package/dist/components/kol-tree-wc.js +1 -1
  293. package/dist/components/kol-tree-wc.js.map +1 -1
  294. package/dist/components/kol-tree.js +1 -1
  295. package/dist/components/kol-tree.js.map +1 -1
  296. package/dist/components/kol-version.js +1 -1
  297. package/dist/components/kol-version.js.map +1 -1
  298. package/dist/components/multiple.js.map +1 -1
  299. package/dist/components/table-settings.js.map +1 -1
  300. package/dist/esm/{Alert-BVf5tw8j.js → Alert-C9CYntkU.js} +1 -1
  301. package/dist/esm/Alert-C9CYntkU.js.map +1 -0
  302. package/dist/esm/{Collapsible-CCKxmIkx.js → Collapsible-Dw_Vp54h.js} +1 -1
  303. package/dist/esm/{Collapsible-CCKxmIkx.js.map → Collapsible-Dw_Vp54h.js.map} +1 -1
  304. package/dist/esm/{CustomSuggestionsToggle-Bc0yWris.js → CustomSuggestionsToggle-dQnvSA7r.js} +1 -1
  305. package/dist/esm/{CustomSuggestionsToggle-Bc0yWris.js.map → CustomSuggestionsToggle-dQnvSA7r.js.map} +1 -1
  306. package/dist/esm/{FieldControlStateWrapper-DCOhSz_b.js → FieldControlStateWrapper-CAzxBXzC.js} +1 -1
  307. package/dist/esm/{FieldControlStateWrapper-DCOhSz_b.js.map → FieldControlStateWrapper-CAzxBXzC.js.map} +1 -1
  308. package/dist/esm/{FormFieldStateWrapper-wNg0Vsby.js → FormFieldStateWrapper-CrJwhFBs.js} +1 -1
  309. package/dist/esm/FormFieldStateWrapper-CrJwhFBs.js.map +1 -0
  310. package/dist/esm/{Heading-51xMOasP.js → Heading-BABFoi4L.js} +1 -1
  311. package/dist/{kolibri/Heading-51xMOasP.js.map → esm/Heading-BABFoi4L.js.map} +1 -1
  312. package/dist/esm/Icon-CxnyTTIM.js +4 -0
  313. package/dist/esm/{Icon-DxBm_hPC.js.map → Icon-CxnyTTIM.js.map} +1 -1
  314. package/dist/esm/Input-MeXv-BCK.js +4 -0
  315. package/dist/esm/Input-MeXv-BCK.js.map +1 -0
  316. package/dist/esm/{InputStateWrapper-OV2f0hPC.js → InputStateWrapper-JMouj3OZ.js} +1 -1
  317. package/dist/esm/{InputStateWrapper-OV2f0hPC.js.map → InputStateWrapper-JMouj3OZ.js.map} +1 -1
  318. package/dist/esm/{InternalUnderlinedBadgeText-CXU0N8OZ.js → InternalUnderlinedBadgeText-CqMSlZjX.js} +1 -1
  319. package/dist/esm/{InternalUnderlinedBadgeText-CXU0N8OZ.js.map → InternalUnderlinedBadgeText-CqMSlZjX.js.map} +1 -1
  320. package/dist/esm/{Span-CGaA1xHQ.js → Span-Bv6V0zau.js} +1 -1
  321. package/dist/{kolibri/Span-CGaA1xHQ.js.map → esm/Span-Bv6V0zau.js.map} +1 -1
  322. package/dist/esm/{app-globals-C82LZBPH.js → app-globals-BD0TXaj4.js} +1 -1
  323. package/dist/esm/{app-globals-C82LZBPH.js.map → app-globals-BD0TXaj4.js.map} +1 -1
  324. package/dist/esm/bem-BiknXNcP.js.map +1 -1
  325. package/dist/esm/bem-CHTjklyp.js.map +1 -1
  326. package/dist/esm/color-C3pYZKV3.js.map +1 -1
  327. package/dist/esm/{controller-CV2y9Ae_.js → controller-B9N11jWX.js} +1 -1
  328. package/dist/esm/controller-B9N11jWX.js.map +1 -0
  329. package/dist/esm/{controller-CdHusJ6U.js → controller-B9xVciJh.js} +1 -1
  330. package/dist/esm/{controller-CdHusJ6U.js.map → controller-B9xVciJh.js.map} +1 -1
  331. package/dist/esm/{controller-D1tztx1p.js → controller-CpZ4sr7u.js} +1 -1
  332. package/dist/esm/{controller-D1tztx1p.js.map → controller-CpZ4sr7u.js.map} +1 -1
  333. package/dist/esm/{controller-DltaZeE1.js → controller-Dl-T77Mb.js} +1 -1
  334. package/dist/esm/{controller-DltaZeE1.js.map → controller-Dl-T77Mb.js.map} +1 -1
  335. package/dist/esm/{controller-icon-BITfW4zF.js → controller-icon-Bwn5cD3d.js} +1 -1
  336. package/dist/esm/controller-icon-Bwn5cD3d.js.map +1 -0
  337. package/dist/esm/{dev.utils-Bb0h4kvu.js → dev.utils-D6Xe7v8L.js} +1 -1
  338. package/dist/esm/{dev.utils-Bb0h4kvu.js.map → dev.utils-D6Xe7v8L.js.map} +1 -1
  339. package/dist/esm/{devtools-G4C8V6W_.js → devtools-C-zIBVUw.js} +1 -1
  340. package/dist/esm/{devtools-G4C8V6W_.js.map → devtools-C-zIBVUw.js.map} +1 -1
  341. package/dist/esm/{index-ChKIy9nE.js → index-k_YQEFTw.js} +1 -1
  342. package/dist/esm/{index-ChKIy9nE.js.map → index-k_YQEFTw.js.map} +1 -1
  343. package/dist/esm/index.js +1 -1
  344. package/dist/esm/index.js.map +1 -1
  345. package/dist/esm/kol-abbr.entry.js +1 -1
  346. package/dist/esm/kol-abbr.entry.js.map +1 -1
  347. package/dist/esm/kol-accordion.entry.js +1 -1
  348. package/dist/esm/kol-accordion.entry.js.map +1 -1
  349. package/dist/esm/kol-alert-wc.entry.js +1 -1
  350. package/dist/esm/kol-alert-wc.entry.js.map +1 -1
  351. package/dist/esm/kol-alert.entry.js +1 -1
  352. package/dist/esm/kol-alert.entry.js.map +1 -1
  353. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  354. package/dist/esm/kol-avatar-wc.entry.js.map +1 -1
  355. package/dist/esm/kol-avatar.entry.js +1 -1
  356. package/dist/esm/kol-avatar.entry.js.map +1 -1
  357. package/dist/esm/kol-badge.entry.js +1 -1
  358. package/dist/esm/kol-badge.entry.js.map +1 -1
  359. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  360. package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
  361. package/dist/esm/kol-button-link.entry.js +1 -1
  362. package/dist/esm/kol-button-link.entry.js.map +1 -1
  363. package/dist/esm/kol-button-wc.entry.js +1 -1
  364. package/dist/esm/kol-button-wc.entry.js.map +1 -1
  365. package/dist/esm/kol-button.entry.js +1 -1
  366. package/dist/esm/kol-button.entry.js.map +1 -1
  367. package/dist/esm/kol-card-wc.entry.js +1 -1
  368. package/dist/esm/kol-card.entry.js +1 -1
  369. package/dist/esm/kol-combobox.entry.js +1 -1
  370. package/dist/esm/kol-combobox.entry.js.map +1 -1
  371. package/dist/esm/kol-details.entry.js +1 -1
  372. package/dist/esm/kol-details.entry.js.map +1 -1
  373. package/dist/esm/kol-drawer.entry.js +1 -1
  374. package/dist/esm/kol-form.entry.js +1 -1
  375. package/dist/esm/kol-heading.entry.js +1 -1
  376. package/dist/esm/kol-heading.entry.js.map +1 -1
  377. package/dist/esm/kol-icon.entry.js +1 -1
  378. package/dist/esm/kol-icon.entry.js.map +1 -1
  379. package/dist/esm/kol-image.entry.js +1 -1
  380. package/dist/esm/kol-image.entry.js.map +1 -1
  381. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  382. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  383. package/dist/esm/kol-input-color.entry.js +1 -1
  384. package/dist/esm/kol-input-color.entry.js.map +1 -1
  385. package/dist/esm/kol-input-date.entry.js +1 -1
  386. package/dist/esm/kol-input-date.entry.js.map +1 -1
  387. package/dist/esm/kol-input-email.entry.js +1 -1
  388. package/dist/esm/kol-input-email.entry.js.map +1 -1
  389. package/dist/esm/kol-input-file.entry.js +1 -1
  390. package/dist/esm/kol-input-file.entry.js.map +1 -1
  391. package/dist/esm/kol-input-number.entry.js +1 -1
  392. package/dist/esm/kol-input-number.entry.js.map +1 -1
  393. package/dist/esm/kol-input-password.entry.js +1 -1
  394. package/dist/esm/kol-input-password.entry.js.map +1 -1
  395. package/dist/esm/kol-input-radio.entry.js +1 -1
  396. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  397. package/dist/esm/kol-input-range.entry.js +1 -1
  398. package/dist/esm/kol-input-range.entry.js.map +1 -1
  399. package/dist/esm/kol-input-text.entry.js +1 -1
  400. package/dist/esm/kol-input-text.entry.js.map +1 -1
  401. package/dist/esm/kol-kolibri.entry.js +1 -1
  402. package/dist/esm/kol-link-button.entry.js +1 -1
  403. package/dist/esm/kol-link-button.entry.js.map +1 -1
  404. package/dist/esm/kol-link-wc.entry.js +1 -1
  405. package/dist/esm/kol-link-wc.entry.js.map +1 -1
  406. package/dist/esm/kol-link.entry.js +1 -1
  407. package/dist/esm/kol-link.entry.js.map +1 -1
  408. package/dist/esm/kol-modal.entry.js +1 -1
  409. package/dist/esm/kol-nav.entry.js +1 -1
  410. package/dist/esm/kol-pagination-wc.entry.js +1 -1
  411. package/dist/esm/kol-pagination-wc.entry.js.map +1 -1
  412. package/dist/esm/kol-pagination.entry.js +1 -1
  413. package/dist/esm/kol-popover-button-wc.entry.js +1 -1
  414. package/dist/esm/kol-popover-button-wc.entry.js.map +1 -1
  415. package/dist/esm/kol-popover-button.entry.js +1 -1
  416. package/dist/esm/kol-popover-button.entry.js.map +1 -1
  417. package/dist/esm/kol-popover-wc.entry.js +1 -1
  418. package/dist/esm/kol-popover-wc.entry.js.map +1 -1
  419. package/dist/esm/kol-progress.entry.js +1 -1
  420. package/dist/esm/kol-progress.entry.js.map +1 -1
  421. package/dist/esm/kol-quote.entry.js +1 -1
  422. package/dist/esm/kol-quote.entry.js.map +1 -1
  423. package/dist/esm/kol-select.entry.js +1 -1
  424. package/dist/esm/kol-select.entry.js.map +1 -1
  425. package/dist/esm/kol-single-select.entry.js +1 -1
  426. package/dist/esm/kol-single-select.entry.js.map +1 -1
  427. package/dist/esm/kol-skip-nav.entry.js +1 -1
  428. package/dist/esm/kol-skip-nav.entry.js.map +1 -1
  429. package/dist/esm/kol-spin.entry.js +1 -1
  430. package/dist/esm/kol-spin.entry.js.map +1 -1
  431. package/dist/esm/kol-split-button.entry.js +1 -1
  432. package/dist/esm/kol-split-button.entry.js.map +1 -1
  433. package/dist/esm/kol-table-settings-wc.entry.js +1 -1
  434. package/dist/esm/kol-table-settings-wc.entry.js.map +1 -1
  435. package/dist/esm/kol-table-stateful.entry.js +1 -1
  436. package/dist/esm/kol-table-stateful.entry.js.map +1 -1
  437. package/dist/esm/kol-table-stateless-wc.entry.js +1 -1
  438. package/dist/esm/kol-table-stateless-wc.entry.js.map +1 -1
  439. package/dist/esm/kol-table-stateless.entry.js +1 -1
  440. package/dist/esm/kol-tabs.entry.js +1 -1
  441. package/dist/esm/kol-tabs.entry.js.map +1 -1
  442. package/dist/esm/kol-textarea.entry.js +1 -1
  443. package/dist/esm/kol-textarea.entry.js.map +1 -1
  444. package/dist/esm/kol-toast-container.entry.js +1 -1
  445. package/dist/esm/kol-toast-container.entry.js.map +1 -1
  446. package/dist/esm/kol-toolbar.entry.js +1 -1
  447. package/dist/esm/kol-toolbar.entry.js.map +1 -1
  448. package/dist/esm/kol-tooltip-wc.entry.js +1 -1
  449. package/dist/esm/kol-tooltip-wc.entry.js.map +1 -1
  450. package/dist/esm/kol-tree-item-wc.entry.js +1 -1
  451. package/dist/esm/kol-tree-item-wc.entry.js.map +1 -1
  452. package/dist/esm/kol-tree-item.entry.js +1 -1
  453. package/dist/esm/kol-tree-item.entry.js.map +1 -1
  454. package/dist/esm/kol-tree-wc.entry.js +1 -1
  455. package/dist/esm/kol-tree-wc.entry.js.map +1 -1
  456. package/dist/esm/kol-tree.entry.js +1 -1
  457. package/dist/esm/kol-tree.entry.js.map +1 -1
  458. package/dist/esm/kol-version.entry.js +1 -1
  459. package/dist/esm/kol-version.entry.js.map +1 -1
  460. package/dist/esm/kolibri.js +1 -1
  461. package/dist/esm/loader.js +1 -1
  462. package/dist/esm/multiple-bcm5IaCN.js.map +1 -1
  463. package/dist/esm/table-settings-DSZObo-2.js.map +1 -1
  464. package/dist/esm/test-component.entry.js +1 -1
  465. package/dist/kolibri/Alert-C9CYntkU.js +4 -0
  466. package/dist/kolibri/Alert-C9CYntkU.js.map +1 -0
  467. package/dist/kolibri/{Collapsible-CCKxmIkx.js → Collapsible-Dw_Vp54h.js} +1 -1
  468. package/dist/kolibri/{Collapsible-CCKxmIkx.js.map → Collapsible-Dw_Vp54h.js.map} +1 -1
  469. package/dist/kolibri/{CustomSuggestionsToggle-Bc0yWris.js → CustomSuggestionsToggle-dQnvSA7r.js} +1 -1
  470. package/dist/kolibri/{CustomSuggestionsToggle-Bc0yWris.js.map → CustomSuggestionsToggle-dQnvSA7r.js.map} +1 -1
  471. package/dist/kolibri/FieldControlStateWrapper-CAzxBXzC.js +4 -0
  472. package/dist/kolibri/{FieldControlStateWrapper-DCOhSz_b.js.map → FieldControlStateWrapper-CAzxBXzC.js.map} +1 -1
  473. package/dist/kolibri/FormFieldStateWrapper-CrJwhFBs.js +4 -0
  474. package/dist/kolibri/FormFieldStateWrapper-CrJwhFBs.js.map +1 -0
  475. package/dist/kolibri/Heading-BABFoi4L.js +4 -0
  476. package/dist/{esm/Heading-51xMOasP.js.map → kolibri/Heading-BABFoi4L.js.map} +1 -1
  477. package/dist/kolibri/{Icon-DxBm_hPC.js → Icon-CxnyTTIM.js} +1 -1
  478. package/dist/kolibri/{Icon-DxBm_hPC.js.map → Icon-CxnyTTIM.js.map} +1 -1
  479. package/dist/kolibri/Input-MeXv-BCK.js +4 -0
  480. package/dist/kolibri/Input-MeXv-BCK.js.map +1 -0
  481. package/dist/kolibri/{InputStateWrapper-OV2f0hPC.js → InputStateWrapper-JMouj3OZ.js} +1 -1
  482. package/dist/kolibri/{InputStateWrapper-OV2f0hPC.js.map → InputStateWrapper-JMouj3OZ.js.map} +1 -1
  483. package/dist/kolibri/InternalUnderlinedBadgeText-CqMSlZjX.js +4 -0
  484. package/dist/kolibri/{InternalUnderlinedBadgeText-CXU0N8OZ.js.map → InternalUnderlinedBadgeText-CqMSlZjX.js.map} +1 -1
  485. package/dist/kolibri/{Span-CGaA1xHQ.js → Span-Bv6V0zau.js} +1 -1
  486. package/dist/{esm/Span-CGaA1xHQ.js.map → kolibri/Span-Bv6V0zau.js.map} +1 -1
  487. package/dist/kolibri/app-globals-BD0TXaj4.js +4 -0
  488. package/dist/kolibri/{app-globals-C82LZBPH.js.map → app-globals-BD0TXaj4.js.map} +1 -1
  489. package/dist/kolibri/bem-BiknXNcP.js.map +1 -1
  490. package/dist/kolibri/bem-CHTjklyp.js.map +1 -1
  491. package/dist/kolibri/color-C3pYZKV3.js.map +1 -1
  492. package/dist/kolibri/controller-B9N11jWX.js +4 -0
  493. package/dist/kolibri/controller-B9N11jWX.js.map +1 -0
  494. package/dist/kolibri/{controller-CdHusJ6U.js → controller-B9xVciJh.js} +1 -1
  495. package/dist/kolibri/{controller-CdHusJ6U.js.map → controller-B9xVciJh.js.map} +1 -1
  496. package/dist/kolibri/{controller-D1tztx1p.js → controller-CpZ4sr7u.js} +1 -1
  497. package/dist/kolibri/{controller-D1tztx1p.js.map → controller-CpZ4sr7u.js.map} +1 -1
  498. package/dist/kolibri/{controller-DltaZeE1.js → controller-Dl-T77Mb.js} +1 -1
  499. package/dist/kolibri/{controller-DltaZeE1.js.map → controller-Dl-T77Mb.js.map} +1 -1
  500. package/dist/kolibri/controller-icon-Bwn5cD3d.js +4 -0
  501. package/dist/kolibri/controller-icon-Bwn5cD3d.js.map +1 -0
  502. package/dist/kolibri/{dev.utils-Bb0h4kvu.js → dev.utils-D6Xe7v8L.js} +1 -1
  503. package/dist/kolibri/{dev.utils-Bb0h4kvu.js.map → dev.utils-D6Xe7v8L.js.map} +1 -1
  504. package/dist/kolibri/{devtools-G4C8V6W_.js → devtools-C-zIBVUw.js} +1 -1
  505. package/dist/kolibri/{devtools-G4C8V6W_.js.map → devtools-C-zIBVUw.js.map} +1 -1
  506. package/dist/kolibri/{index-ChKIy9nE.js → index-k_YQEFTw.js} +1 -1
  507. package/dist/kolibri/{index-ChKIy9nE.js.map → index-k_YQEFTw.js.map} +1 -1
  508. package/dist/kolibri/index.esm.js +1 -1
  509. package/dist/kolibri/index.esm.js.map +1 -1
  510. package/dist/kolibri/kol-abbr.entry.esm.js.map +1 -1
  511. package/dist/kolibri/kol-abbr.entry.js +1 -1
  512. package/dist/kolibri/kol-abbr.entry.js.map +1 -1
  513. package/dist/kolibri/kol-accordion.entry.esm.js.map +1 -1
  514. package/dist/kolibri/kol-accordion.entry.js +1 -1
  515. package/dist/kolibri/kol-accordion.entry.js.map +1 -1
  516. package/dist/kolibri/kol-alert-wc.entry.esm.js.map +1 -1
  517. package/dist/kolibri/kol-alert-wc.entry.js +1 -1
  518. package/dist/kolibri/kol-alert-wc.entry.js.map +1 -1
  519. package/dist/kolibri/kol-alert.entry.esm.js.map +1 -1
  520. package/dist/kolibri/kol-alert.entry.js +1 -1
  521. package/dist/kolibri/kol-avatar-wc.entry.esm.js.map +1 -1
  522. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  523. package/dist/kolibri/kol-avatar.entry.esm.js.map +1 -1
  524. package/dist/kolibri/kol-avatar.entry.js +1 -1
  525. package/dist/kolibri/kol-badge.entry.esm.js.map +1 -1
  526. package/dist/kolibri/kol-badge.entry.js +1 -1
  527. package/dist/kolibri/kol-badge.entry.js.map +1 -1
  528. package/dist/kolibri/kol-breadcrumb.entry.esm.js.map +1 -1
  529. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  530. package/dist/kolibri/kol-button-link.entry.esm.js.map +1 -1
  531. package/dist/kolibri/kol-button-link.entry.js +1 -1
  532. package/dist/kolibri/kol-button-wc.entry.esm.js.map +1 -1
  533. package/dist/kolibri/kol-button-wc.entry.js +1 -1
  534. package/dist/kolibri/kol-button-wc.entry.js.map +1 -1
  535. package/dist/kolibri/kol-button.entry.esm.js.map +1 -1
  536. package/dist/kolibri/kol-button.entry.js +1 -1
  537. package/dist/kolibri/kol-card-wc.entry.js +1 -1
  538. package/dist/kolibri/kol-card.entry.js +1 -1
  539. package/dist/kolibri/kol-combobox.entry.esm.js.map +1 -1
  540. package/dist/kolibri/kol-combobox.entry.js +1 -1
  541. package/dist/kolibri/kol-combobox.entry.js.map +1 -1
  542. package/dist/kolibri/kol-details.entry.esm.js.map +1 -1
  543. package/dist/kolibri/kol-details.entry.js +1 -1
  544. package/dist/kolibri/kol-details.entry.js.map +1 -1
  545. package/dist/kolibri/kol-drawer.entry.js +1 -1
  546. package/dist/kolibri/kol-form.entry.js +1 -1
  547. package/dist/kolibri/kol-heading.entry.esm.js.map +1 -1
  548. package/dist/kolibri/kol-heading.entry.js +1 -1
  549. package/dist/kolibri/kol-heading.entry.js.map +1 -1
  550. package/dist/kolibri/kol-icon.entry.esm.js.map +1 -1
  551. package/dist/kolibri/kol-icon.entry.js +1 -1
  552. package/dist/kolibri/kol-image.entry.esm.js.map +1 -1
  553. package/dist/kolibri/kol-image.entry.js +1 -1
  554. package/dist/kolibri/kol-input-checkbox.entry.esm.js.map +1 -1
  555. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  556. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  557. package/dist/kolibri/kol-input-color.entry.esm.js.map +1 -1
  558. package/dist/kolibri/kol-input-color.entry.js +1 -1
  559. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  560. package/dist/kolibri/kol-input-date.entry.esm.js.map +1 -1
  561. package/dist/kolibri/kol-input-date.entry.js +1 -1
  562. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  563. package/dist/kolibri/kol-input-email.entry.esm.js.map +1 -1
  564. package/dist/kolibri/kol-input-email.entry.js +1 -1
  565. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  566. package/dist/kolibri/kol-input-file.entry.esm.js.map +1 -1
  567. package/dist/kolibri/kol-input-file.entry.js +1 -1
  568. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  569. package/dist/kolibri/kol-input-number.entry.esm.js.map +1 -1
  570. package/dist/kolibri/kol-input-number.entry.js +1 -1
  571. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  572. package/dist/kolibri/kol-input-password.entry.esm.js.map +1 -1
  573. package/dist/kolibri/kol-input-password.entry.js +1 -1
  574. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  575. package/dist/kolibri/kol-input-radio.entry.esm.js.map +1 -1
  576. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  577. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  578. package/dist/kolibri/kol-input-range.entry.esm.js.map +1 -1
  579. package/dist/kolibri/kol-input-range.entry.js +1 -1
  580. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  581. package/dist/kolibri/kol-input-text.entry.esm.js.map +1 -1
  582. package/dist/kolibri/kol-input-text.entry.js +1 -1
  583. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  584. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  585. package/dist/kolibri/kol-link-button.entry.esm.js.map +1 -1
  586. package/dist/kolibri/kol-link-button.entry.js +1 -1
  587. package/dist/kolibri/kol-link-wc.entry.esm.js.map +1 -1
  588. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  589. package/dist/kolibri/kol-link-wc.entry.js.map +1 -1
  590. package/dist/kolibri/kol-link.entry.esm.js.map +1 -1
  591. package/dist/kolibri/kol-link.entry.js +1 -1
  592. package/dist/kolibri/kol-modal.entry.js +1 -1
  593. package/dist/kolibri/kol-nav.entry.js +1 -1
  594. package/dist/kolibri/kol-pagination-wc.entry.esm.js.map +1 -1
  595. package/dist/kolibri/kol-pagination-wc.entry.js +1 -1
  596. package/dist/kolibri/kol-pagination-wc.entry.js.map +1 -1
  597. package/dist/kolibri/kol-pagination.entry.js +1 -1
  598. package/dist/kolibri/kol-popover-button-wc.entry.esm.js.map +1 -1
  599. package/dist/kolibri/kol-popover-button-wc.entry.js +1 -1
  600. package/dist/kolibri/kol-popover-button.entry.esm.js.map +1 -1
  601. package/dist/kolibri/kol-popover-button.entry.js +1 -1
  602. package/dist/kolibri/kol-popover-wc.entry.esm.js.map +1 -1
  603. package/dist/kolibri/kol-popover-wc.entry.js +1 -1
  604. package/dist/kolibri/kol-popover-wc.entry.js.map +1 -1
  605. package/dist/kolibri/kol-progress.entry.esm.js.map +1 -1
  606. package/dist/kolibri/kol-progress.entry.js +1 -1
  607. package/dist/kolibri/kol-quote.entry.esm.js.map +1 -1
  608. package/dist/kolibri/kol-quote.entry.js +1 -1
  609. package/dist/kolibri/kol-quote.entry.js.map +1 -1
  610. package/dist/kolibri/kol-select.entry.esm.js.map +1 -1
  611. package/dist/kolibri/kol-select.entry.js +1 -1
  612. package/dist/kolibri/kol-select.entry.js.map +1 -1
  613. package/dist/kolibri/kol-single-select.entry.esm.js.map +1 -1
  614. package/dist/kolibri/kol-single-select.entry.js +1 -1
  615. package/dist/kolibri/kol-single-select.entry.js.map +1 -1
  616. package/dist/kolibri/kol-skip-nav.entry.esm.js.map +1 -1
  617. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  618. package/dist/kolibri/kol-spin.entry.esm.js.map +1 -1
  619. package/dist/kolibri/kol-spin.entry.js +1 -1
  620. package/dist/kolibri/kol-spin.entry.js.map +1 -1
  621. package/dist/kolibri/kol-split-button.entry.esm.js.map +1 -1
  622. package/dist/kolibri/kol-split-button.entry.js +1 -1
  623. package/dist/kolibri/kol-split-button.entry.js.map +1 -1
  624. package/dist/kolibri/kol-table-settings-wc.entry.esm.js.map +1 -1
  625. package/dist/kolibri/kol-table-settings-wc.entry.js +1 -1
  626. package/dist/kolibri/kol-table-settings-wc.entry.js.map +1 -1
  627. package/dist/kolibri/kol-table-stateful.entry.esm.js.map +1 -1
  628. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  629. package/dist/kolibri/kol-table-stateless-wc.entry.esm.js.map +1 -1
  630. package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
  631. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  632. package/dist/kolibri/kol-tabs.entry.esm.js.map +1 -1
  633. package/dist/kolibri/kol-tabs.entry.js +1 -1
  634. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  635. package/dist/kolibri/kol-textarea.entry.esm.js.map +1 -1
  636. package/dist/kolibri/kol-textarea.entry.js +1 -1
  637. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  638. package/dist/kolibri/kol-toast-container.entry.esm.js.map +1 -1
  639. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  640. package/dist/kolibri/kol-toolbar.entry.esm.js.map +1 -1
  641. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  642. package/dist/kolibri/kol-toolbar.entry.js.map +1 -1
  643. package/dist/kolibri/kol-tooltip-wc.entry.esm.js.map +1 -1
  644. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  645. package/dist/kolibri/kol-tooltip-wc.entry.js.map +1 -1
  646. package/dist/kolibri/kol-tree-item-wc.entry.esm.js.map +1 -1
  647. package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
  648. package/dist/kolibri/kol-tree-item-wc.entry.js.map +1 -1
  649. package/dist/kolibri/kol-tree-item.entry.esm.js.map +1 -1
  650. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  651. package/dist/kolibri/kol-tree-wc.entry.esm.js.map +1 -1
  652. package/dist/kolibri/kol-tree-wc.entry.js +1 -1
  653. package/dist/kolibri/kol-tree-wc.entry.js.map +1 -1
  654. package/dist/kolibri/kol-tree.entry.esm.js.map +1 -1
  655. package/dist/kolibri/kol-tree.entry.js +1 -1
  656. package/dist/kolibri/kol-version.entry.esm.js.map +1 -1
  657. package/dist/kolibri/kol-version.entry.js +1 -1
  658. package/dist/kolibri/kolibri.esm.js +1 -1
  659. package/dist/kolibri/multiple-bcm5IaCN.js.map +1 -1
  660. package/dist/kolibri/table-settings-DSZObo-2.js.map +1 -1
  661. package/dist/kolibri/test-component.entry.js +1 -1
  662. package/dist/types/components/@deprecated/input/controller.d.ts +1 -1
  663. package/dist/types/components/@deprecated/input/types-icon.d.ts +1 -1
  664. package/dist/types/components/@deprecated/input/types.d.ts +1 -1
  665. package/dist/types/components/@else/all/component.d.ts +1 -1
  666. package/dist/types/components/accordion/shadow.d.ts +1 -1
  667. package/dist/types/components/alert/shadow.d.ts +1 -1
  668. package/dist/types/components/badge/shadow.d.ts +5 -2
  669. package/dist/types/components/button/component.d.ts +1 -1
  670. package/dist/types/components/button/shadow.d.ts +1 -1
  671. package/dist/types/components/button-link/shadow.d.ts +1 -1
  672. package/dist/types/components/component-list.d.ts +2 -2
  673. package/dist/types/components/icon/bem.d.ts +1 -2
  674. package/dist/types/components/icon/controller.d.ts +1 -1
  675. package/dist/types/components/input-color/shadow.d.ts +1 -1
  676. package/dist/types/components/input-file/shadow.d.ts +1 -1
  677. package/dist/types/components/input-radio/controller.d.ts +1 -1
  678. package/dist/types/components/input-range/shadow.d.ts +1 -1
  679. package/dist/types/components/input-text/shadow.d.ts +5 -0
  680. package/dist/types/components/link/component.d.ts +1 -1
  681. package/dist/types/components/link/shadow.d.ts +1 -1
  682. package/dist/types/components/link-button/shadow.d.ts +1 -1
  683. package/dist/types/components/pagination/component.d.ts +1 -1
  684. package/dist/types/components/popover/component.d.ts +1 -1
  685. package/dist/types/components/popover-button/component.d.ts +1 -1
  686. package/dist/types/components/popover-button/shadow.d.ts +1 -1
  687. package/dist/types/components/select/controller.d.ts +1 -1
  688. package/dist/types/components/split-button/shadow.d.ts +1 -1
  689. package/dist/types/components/tabs/shadow.d.ts +1 -1
  690. package/dist/types/components/toolbar/shadow.d.ts +1 -1
  691. package/dist/types/components/tooltip/component.d.ts +1 -1
  692. package/dist/types/components.d.ts +24 -0
  693. package/dist/types/e2e/index.d.ts +1 -1
  694. package/dist/types/e2e/input-callbacks-and-events.d.ts +2 -2
  695. package/dist/types/functional-component-wrappers/FieldControlStateWrapper/FieldControlStateWrapper.d.ts +1 -1
  696. package/dist/types/functional-component-wrappers/InputContainerStateWrapper/InputContainerStateWrapper.d.ts +1 -1
  697. package/dist/types/functional-component-wrappers/InputStateWrapper/InputStateWrapper.d.ts +1 -1
  698. package/dist/types/functional-component-wrappers/RadioStateWrapper/RadioStateWrapper.d.ts +1 -1
  699. package/dist/types/functional-components/Alert/bem.d.ts +1 -2
  700. package/dist/types/functional-components/Alert/index.d.ts +1 -1
  701. package/dist/types/functional-components/Button/index.d.ts +1 -1
  702. package/dist/types/functional-components/Collapsible/index.d.ts +1 -1
  703. package/dist/types/functional-components/CustomSuggestionsOption/index.d.ts +1 -1
  704. package/dist/types/functional-components/CustomSuggestionsOptionsGroup/index.d.ts +1 -1
  705. package/dist/types/functional-components/CustomSuggestionsToggle/index.d.ts +1 -1
  706. package/dist/types/functional-components/FieldControl/index.d.ts +1 -1
  707. package/dist/types/functional-components/FormField/FormField.d.ts +1 -1
  708. package/dist/types/functional-components/FormField/index.d.ts +1 -1
  709. package/dist/types/functional-components/Heading/index.d.ts +1 -1
  710. package/dist/types/functional-components/Icon/index.d.ts +1 -1
  711. package/dist/types/functional-components/IconButton/IconButton.d.ts +1 -1
  712. package/dist/types/functional-components/IconButton/index.d.ts +1 -1
  713. package/dist/types/functional-components/InputAdornment/index.d.ts +1 -1
  714. package/dist/types/functional-components/InputContainer/index.d.ts +1 -1
  715. package/dist/types/functional-components/InternalUnderlinedBadgeText/index.d.ts +1 -1
  716. package/dist/types/functional-components/Span/index.d.ts +1 -1
  717. package/dist/types/functional-components/Suggestions/index.d.ts +1 -1
  718. package/dist/types/functional-components/index.d.ts +1 -1
  719. package/dist/types/functional-components/inputs/Checkbox/index.d.ts +1 -1
  720. package/dist/types/functional-components/inputs/Input/index.d.ts +1 -1
  721. package/dist/types/functional-components/inputs/NativeOption/index.d.ts +1 -1
  722. package/dist/types/functional-components/inputs/NativeOptionList/NativeOptionList.d.ts +1 -1
  723. package/dist/types/functional-components/inputs/NativeOptionList/index.d.ts +1 -1
  724. package/dist/types/functional-components/inputs/NativeSelect/NativeSelect.d.ts +1 -1
  725. package/dist/types/functional-components/inputs/NativeSelect/index.d.ts +1 -1
  726. package/dist/types/functional-components/inputs/Radio/index.d.ts +1 -1
  727. package/dist/types/functional-components/inputs/TextArea/TextArea.d.ts +1 -1
  728. package/dist/types/functional-components/inputs/TextArea/index.d.ts +1 -1
  729. package/dist/types/index.d.ts +4 -4
  730. package/dist/types/schema/components/drawer.d.ts +1 -1
  731. package/dist/types/schema/components/index.d.ts +1 -1
  732. package/dist/types/schema/components/input-radio.d.ts +1 -1
  733. package/dist/types/schema/components/modal.d.ts +1 -1
  734. package/dist/types/schema/components/nav.d.ts +1 -1
  735. package/dist/types/schema/components/popover-button.d.ts +1 -1
  736. package/dist/types/schema/components/popover.d.ts +1 -1
  737. package/dist/types/schema/components/single-select.d.ts +1 -1
  738. package/dist/types/schema/components/span.d.ts +1 -1
  739. package/dist/types/schema/components/spin.d.ts +1 -1
  740. package/dist/types/schema/components/table.d.ts +1 -1
  741. package/dist/types/schema/components/tableStateless.d.ts +2 -2
  742. package/dist/types/schema/components/tabs.d.ts +1 -1
  743. package/dist/types/schema/components/toaster.d.ts +1 -2
  744. package/dist/types/schema/index.d.ts +1 -1
  745. package/dist/types/schema/props/index.d.ts +1 -1
  746. package/dist/types/schema/props/options.d.ts +1 -1
  747. package/dist/types/schema/props/table-data-foot.d.ts +1 -1
  748. package/dist/types/schema/props/table-data.d.ts +1 -1
  749. package/dist/types/schema/types/input/types.d.ts +1 -1
  750. package/dist/types/utils/testing/index.d.ts +1 -1
  751. package/doc/badge.md +13 -0
  752. package/doc/input-text.md +73 -0
  753. package/package.json +1 -1
  754. package/dist/cjs/Alert-DvztE5sg.js.map +0 -1
  755. package/dist/cjs/FormFieldStateWrapper-D_DZ7bhJ.js.map +0 -1
  756. package/dist/cjs/Icon-DiNO3cEA.js +0 -4
  757. package/dist/cjs/Input-DDjP-mWX.js.map +0 -1
  758. package/dist/cjs/controller-BF3IbQCZ.js.map +0 -1
  759. package/dist/cjs/controller-icon-BvyG2-aM.js.map +0 -1
  760. package/dist/esm/Alert-BVf5tw8j.js.map +0 -1
  761. package/dist/esm/FormFieldStateWrapper-wNg0Vsby.js.map +0 -1
  762. package/dist/esm/Icon-DxBm_hPC.js +0 -4
  763. package/dist/esm/Input-BIFTGD-P.js +0 -4
  764. package/dist/esm/Input-BIFTGD-P.js.map +0 -1
  765. package/dist/esm/controller-CV2y9Ae_.js.map +0 -1
  766. package/dist/esm/controller-icon-BITfW4zF.js.map +0 -1
  767. package/dist/kolibri/Alert-BVf5tw8j.js +0 -4
  768. package/dist/kolibri/Alert-BVf5tw8j.js.map +0 -1
  769. package/dist/kolibri/FieldControlStateWrapper-DCOhSz_b.js +0 -4
  770. package/dist/kolibri/FormFieldStateWrapper-wNg0Vsby.js +0 -4
  771. package/dist/kolibri/FormFieldStateWrapper-wNg0Vsby.js.map +0 -1
  772. package/dist/kolibri/Heading-51xMOasP.js +0 -4
  773. package/dist/kolibri/Input-BIFTGD-P.js +0 -4
  774. package/dist/kolibri/Input-BIFTGD-P.js.map +0 -1
  775. package/dist/kolibri/InternalUnderlinedBadgeText-CXU0N8OZ.js +0 -4
  776. package/dist/kolibri/app-globals-C82LZBPH.js +0 -4
  777. package/dist/kolibri/controller-CV2y9Ae_.js +0 -4
  778. package/dist/kolibri/controller-CV2y9Ae_.js.map +0 -1
  779. package/dist/kolibri/controller-icon-BITfW4zF.js +0 -4
  780. package/dist/kolibri/controller-icon-BITfW4zF.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Icon-DiNO3cEA.js","sources":["src/functional-components/Icon/Icon.tsx"],"sourcesContent":["import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport { KolIconTag } from '../../core/component-names';\nimport type { InternalIconProps } from '../../schema';\n\nexport type IconProps = InternalIconProps & {\n\tclass?: string;\n\tstyle?: { [key: string]: string };\n\tonClick?: (event: MouseEvent) => void;\n};\n\nconst KolIconFc: FC<IconProps> = (props) => {\n\tconst { class: classNames, style, icons, label, onClick } = props;\n\n\treturn <KolIconTag class={classNames} style={style} onClick={onClick} _icons={icons} _label={label} />;\n};\n\nexport default KolIconFc;\n"],"names":["h","KolIconTag"],"mappings":";;;;;;;;AAUA,MAAM,SAAS,GAAkB,CAAC,KAAK,KAAI;AAC1C,IAAA,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,KAAK;IAEjE,OAAOA,OAAA,CAACC,yBAAU,EAAC,EAAA,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAA,CAAI;AACvG;;;;"}
1
+ {"version":3,"file":"Icon-CLiVsvC6.js","sources":["src/functional-components/Icon/Icon.tsx"],"sourcesContent":["import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport { KolIconTag } from '../../core/component-names';\nimport type { InternalIconProps } from '../../schema';\n\nexport type IconProps = InternalIconProps & {\n\tclass?: string;\n\tstyle?: { [key: string]: string };\n\tonClick?: (event: MouseEvent) => void;\n};\n\nconst KolIconFc: FC<IconProps> = (props) => {\n\tconst { class: classNames, style, icons, label, onClick } = props;\n\n\treturn <KolIconTag class={classNames} style={style} onClick={onClick} _icons={icons} _label={label} />;\n};\n\nexport default KolIconFc;\n"],"names":["h","KolIconTag"],"mappings":";;;;;;;;AAUA,MAAM,SAAS,GAAkB,CAAC,KAAK,KAAI;AAC1C,IAAA,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,KAAK;IAEjE,OAAOA,OAAA,CAACC,yBAAU,EAAC,EAAA,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAA,CAAI;AACvG;;;;"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";var tslib_es6=require("./tslib.es6-7DbU_BSw.js"),index=require("./index-CeweGYAX.js"),clsx=require("./clsx-CkZlkaek.js");require("./common-Cd2qH809.js");var FormFieldStateWrapper=require("./FormFieldStateWrapper-D_DZ7bhJ.js");const InputFc=e=>{const{class:r,msg:s,required:i,disabled:l,touched:a,readonly:t,ariaDescribedBy:d,hideLabel:o,label:n,suggestions:u,value:c}=e,p=tslib_es6.__rest(e,["class","msg","required","disabled","touched","readonly","ariaDescribedBy","hideLabel","label","suggestions","value"]),b=FormFieldStateWrapper.checkHasMsg(s,a),g="string"==typeof s?"error":null==s?void 0:s._type,F={"kol-input--disabled":Boolean(l),"kol-input--required":Boolean(i),"kol-input--touched":Boolean(a),"kol-input--readonly":Boolean(t),[`kol-input--${g||"error"}`]:b},x=Object.assign(Object.assign({class:clsx.clsx("kol-input",F,r),required:i,disabled:l,readonly:t,type:"text",list:u?`${p.id}-list`:void 0},FormFieldStateWrapper.getDefaultProps({ariaDescribedBy:d,hideLabel:o,label:n})),p);return index.h(index.Fragment,null,index.h("input",Object.assign({},x,{value:c})),u)};exports.InputFc=InputFc;
4
+ "use strict";var tslib_es6=require("./tslib.es6-7DbU_BSw.js"),index=require("./index-DKNg2r8I.js"),clsx=require("./clsx-CkZlkaek.js");require("./common-Cd2qH809.js");var FormFieldStateWrapper=require("./FormFieldStateWrapper-BD3UHnBj.js");const InputFc=e=>{const{class:r,msg:s,required:i,disabled:l,touched:a,readonly:t,ariaDescribedBy:d,hideLabel:o,label:n,suggestions:u,value:c}=e,p=tslib_es6.__rest(e,["class","msg","required","disabled","touched","readonly","ariaDescribedBy","hideLabel","label","suggestions","value"]),b=FormFieldStateWrapper.checkHasMsg(s,a),g="string"==typeof s?"error":null==s?void 0:s._type,F={"kol-input--disabled":Boolean(l),"kol-input--required":Boolean(i),"kol-input--touched":Boolean(a),"kol-input--readonly":Boolean(t),[`kol-input--${g||"error"}`]:b},x=Object.assign(Object.assign({class:clsx.clsx("kol-input",F,r),required:i,disabled:l,readonly:t,type:"text",list:u?`${p.id}-list`:void 0},FormFieldStateWrapper.getDefaultProps({ariaDescribedBy:d,hideLabel:o,label:n})),p);return index.h(index.Fragment,null,index.h("input",Object.assign({},x,{value:c})),u)};exports.InputFc=InputFc;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Input-Cc6ZdD1t.js","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 { 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 (\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"],"names":["__rest","checkHasMsg","clsx","getDefaultProps","h","Fragment"],"mappings":";;;;;;;;;;;AAmBA,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,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAA,GAAe,KAAK,EAAf,KAAK,GAAKA,gBAAA,CAAA,KAAK,EAA1I,CAAA,OAAA,EAAA,KAAA,EAAA,UAAA,EAAA,UAAA,EAAA,SAAA,EAAA,UAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,OAAA,EAAA,aAAA,EAAA,OAAA,CAAkI,CAAQ;IAEhJ,MAAM,OAAO,GAAGC,iCAAW,CAAC,GAAG,EAAE,OAAO,CAAC;AACzC,IAAA,MAAM,OAAO,GAAG,OAAO,GAAG,KAAK,QAAQ,GAAG,OAAO,GAAG,GAAG,KAAH,IAAA,IAAA,GAAG,uBAAH,GAAG,CAAE,KAAK;AAE9D,IAAA,MAAM,eAAe,GAAG;AACvB,QAAA,CAAC,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC;AAC1C,QAAA,CAAC,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC;AAC1C,QAAA,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC;AACxC,QAAA,CAAC,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC;AAC1C,QAAA,CAAC,cAAc,OAAO,IAAI,OAAO,CAAE,CAAA,GAAG,OAAO;KAC7C;AAED,IAAA,MAAM,UAAU,GACf,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EAAEC,SAAI,CAAC,WAAW,EAAE,eAAe,EAAE,UAAU,CAAC,EACrD,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,WAAW,GAAG,CAAA,EAAG,KAAK,CAAC,EAAE,CAAA,KAAA,CAAO,GAAG,SAAS,EAC/C,EAAAC,qCAAe,CAAC,EAAE,eAAe,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,CAAA,EACtD,KAAK,CACR;AAED,IAAA,QACCC,OAAA,CAAAC,cAAA,EAAA,IAAA,EACCD,OAAA,CAAA,OAAA,EAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAW,UAAU,EAAA,EAAE,KAAK,EAAE,KAAK,EAAI,CAAA,CAAA,EACtC,WAAW,CACV;AAEL;;;;"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";var tslib_es6=require("./tslib.es6-7DbU_BSw.js"),index=require("./index-CeweGYAX.js"),Input=require("./Input-DDjP-mWX.js"),FormFieldStateWrapper=require("./FormFieldStateWrapper-D_DZ7bhJ.js");const SuggestionsFc=e=>{var{id:t,suggestions:s}=e,i=tslib_es6.__rest(e,["id","suggestions"]);return s?index.h("datalist",Object.assign({id:`${t}-list`},i),s.map(e=>index.h("option",{value:e}))):null};function getInputProps(e,t,s){var i;const n=[...FormFieldStateWrapper.getRenderStates(e).ariaDescribedBy,...null!==(i=t.ariaDescribedBy)&&void 0!==i?i:[]],a={id:e._id,hideLabel:e._hideLabel,label:e._label,disabled:e._disabled,name:e._name};if("_accessKey"in e&&(a.accessKey=e._accessKey),"_type"in e&&(a.type=e._type),"_value"in e&&(a.value=e._value),"_required"in e&&(a.required=e._required),"_maxLength"in e&&"_maxLengthBehavior"in e&&"hard"===e._maxLengthBehavior&&(a.maxlength=e._maxLength),"_placeholder"in e&&(a.placeholder=e._placeholder),"_autoComplete"in e&&(a.autoComplete=e._autoComplete),"_spellCheck"in e&&(a.spellcheck=e._spellCheck),"_pattern"in e&&(a.pattern=e._pattern),"_readOnly"in e&&(a.readonly=e._readOnly),"_min"in e&&(a.min=e._min),"_max"in e&&(a.max=e._max),"_step"in e&&(a.step=e._step),"_multiple"in e&&(a.multiple=e._multiple),"_checked"in e&&(a.checked=e._checked),"_indeterminate"in e&&(a.indeterminate=e._indeterminate),"_touched"in e&&(a.touched=e._touched),"_msg"in e&&(a.msg=e._msg),"_shortKey"in e&&(a["aria-keyshortcuts"]=e._shortKey),"_suggestions"in e&&!s){Array.isArray(e._suggestions)&&e._suggestions.length>0&&(a.suggestions=index.h(SuggestionsFc,{id:e._id,suggestions:e._suggestions}))}return Object.assign(Object.assign(Object.assign({},a),t),{ariaDescribedBy:n})}const InputStateWrapper=e=>{var{state:t,customSuggestions:s}=e,i=tslib_es6.__rest(e,["state","customSuggestions"]);return index.h(Input.InputFc,Object.assign({},getInputProps(t,i,s)))};exports.InputStateWrapper=InputStateWrapper,exports.SuggestionsFc=SuggestionsFc;
4
+ "use strict";var tslib_es6=require("./tslib.es6-7DbU_BSw.js"),index=require("./index-DKNg2r8I.js"),Input=require("./Input-Cc6ZdD1t.js"),FormFieldStateWrapper=require("./FormFieldStateWrapper-BD3UHnBj.js");const SuggestionsFc=e=>{var{id:t,suggestions:s}=e,i=tslib_es6.__rest(e,["id","suggestions"]);return s?index.h("datalist",Object.assign({id:`${t}-list`},i),s.map(e=>index.h("option",{value:e}))):null};function getInputProps(e,t,s){var i;const n=[...FormFieldStateWrapper.getRenderStates(e).ariaDescribedBy,...null!==(i=t.ariaDescribedBy)&&void 0!==i?i:[]],a={id:e._id,hideLabel:e._hideLabel,label:e._label,disabled:e._disabled,name:e._name};if("_accessKey"in e&&(a.accessKey=e._accessKey),"_type"in e&&(a.type=e._type),"_value"in e&&(a.value=e._value),"_required"in e&&(a.required=e._required),"_maxLength"in e&&"_maxLengthBehavior"in e&&"hard"===e._maxLengthBehavior&&(a.maxlength=e._maxLength),"_placeholder"in e&&(a.placeholder=e._placeholder),"_autoComplete"in e&&(a.autoComplete=e._autoComplete),"_spellCheck"in e&&(a.spellcheck=e._spellCheck),"_pattern"in e&&(a.pattern=e._pattern),"_readOnly"in e&&(a.readonly=e._readOnly),"_min"in e&&(a.min=e._min),"_max"in e&&(a.max=e._max),"_step"in e&&(a.step=e._step),"_multiple"in e&&(a.multiple=e._multiple),"_checked"in e&&(a.checked=e._checked),"_indeterminate"in e&&(a.indeterminate=e._indeterminate),"_touched"in e&&(a.touched=e._touched),"_msg"in e&&(a.msg=e._msg),"_shortKey"in e&&(a["aria-keyshortcuts"]=e._shortKey),"_suggestions"in e&&!s){Array.isArray(e._suggestions)&&e._suggestions.length>0&&(a.suggestions=index.h(SuggestionsFc,{id:e._id,suggestions:e._suggestions}))}return Object.assign(Object.assign(Object.assign({},a),t),{ariaDescribedBy:n})}const InputStateWrapper=e=>{var{state:t,customSuggestions:s}=e,i=tslib_es6.__rest(e,["state","customSuggestions"]);return index.h(Input.InputFc,Object.assign({},getInputProps(t,i,s)))};exports.InputStateWrapper=InputStateWrapper,exports.SuggestionsFc=SuggestionsFc;
@@ -1 +1 @@
1
- {"version":3,"file":"InputStateWrapper-BG2Sr2Po.js","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 <KolInputFc {...getInputProps(state, other, customSuggestions)} />;\n};\n\nexport default InputStateWrapper;\n"],"names":["__rest","h","getRenderStates","KolInputFc"],"mappings":";;;;;;;;;;AASA,MAAM,aAAa,GAAyB,CAAC,EAA6B,KAAI;QAAjC,EAAE,EAAE,EAAE,WAAW,EAAA,GAAA,EAAY,EAAP,KAAK,GAAAA,gBAAA,CAAA,EAAA,EAA3B,qBAA6B,CAAF;IACvE,IAAI,CAAC,WAAW,EAAE;AACjB,QAAA,OAAO,IAAI;;IAGZ,QACCC,OAAA,CAAA,UAAA,EAAA,MAAA,CAAA,MAAA,CAAA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ClD,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,IAAID,QAAC,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,GAAAD,gBAAA,CAAA,EAAA,EAApC,8BAAsC,CAAF;IAC1F,OAAOC,OAAC,CAAAE,aAAU,EAAK,MAAA,CAAA,MAAA,CAAA,EAAA,EAAA,aAAa,CAAC,KAAK,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAAA,CAAI;AAC1E;;;;;"}
1
+ {"version":3,"file":"InputStateWrapper-ezJ76Bdc.js","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"],"names":["__rest","h","getRenderStates","KolInputFc"],"mappings":";;;;;;;;;;AASA,MAAM,aAAa,GAAyB,CAAC,EAA6B,KAAI;QAAjC,EAAE,EAAE,EAAE,WAAW,EAAA,GAAA,EAAY,EAAP,KAAK,GAAAA,gBAAA,CAAA,EAAA,EAA3B,qBAA6B,CAAF;IACvE,IAAI,CAAC,WAAW,EAAE;AACjB,QAAA,OAAO,IAAI;;IAGZ,QACCC,OAAA,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,MACtCA,OAAQ,CAAA,QAA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;YACnB,KAAK,CAAC,WAAW,IAAID,QAAC,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,GAAAD,gBAAA,CAAA,EAAA,EAApC,8BAAsC,CAAF;IAC1F,OAAOC,OAAC,CAAAE,aAAU,EAAK,MAAA,CAAA,MAAA,CAAA,EAAA,EAAA,aAAa,CAAC,KAAK,EAAE,KAAK,EAAE,iBAAiB,CAAC,CAAA,CAAI;AAC1E;;;;;"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";var isObject=require("./isObject-DMA85Fq4.js"),index=require("./index-CeweGYAX.js"),stringTag="[object String]";function isString(e){return"string"==typeof e||!isObject.isArray(e)&&isObject.isObjectLike(e)&&isObject.baseGetTag(e)==stringTag}const KolInternalUnderlinedBadgeTextFc=({badgeText:e,label:t})=>{const n=e;let[i,...r]=t.split(n);return 0===r.length&&(e=n.toUpperCase(),[i,...r]=t.split(n)),0===r.length&&(e=n.toLowerCase(),[i,...r]=t.split(n)),index.h(index.Fragment,null,i,r.length?index.h(index.Fragment,null,index.h("u",null,e),r.join(n)):null)};exports.KolInternalUnderlinedBadgeTextFc=KolInternalUnderlinedBadgeTextFc,exports.isString=isString;
4
+ "use strict";var isObject=require("./isObject-DMA85Fq4.js"),index=require("./index-DKNg2r8I.js"),stringTag="[object String]";function isString(e){return"string"==typeof e||!isObject.isArray(e)&&isObject.isObjectLike(e)&&isObject.baseGetTag(e)==stringTag}const KolInternalUnderlinedBadgeTextFc=({badgeText:e,label:t})=>{const n=e;let[i,...r]=t.split(n);return 0===r.length&&(e=n.toUpperCase(),[i,...r]=t.split(n)),0===r.length&&(e=n.toLowerCase(),[i,...r]=t.split(n)),index.h(index.Fragment,null,i,r.length?index.h(index.Fragment,null,index.h("u",null,e),r.join(n)):null)};exports.KolInternalUnderlinedBadgeTextFc=KolInternalUnderlinedBadgeTextFc,exports.isString=isString;
@@ -1 +1 @@
1
- {"version":3,"file":"InternalUnderlinedBadgeText-CYAV_r9-.js","sources":["../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isString.js","src/functional-components/InternalUnderlinedBadgeText/InternalUnderlinedBadgeText.tsx"],"sourcesContent":["import baseGetTag from './_baseGetTag.js';\nimport isArray from './isArray.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar stringTag = '[object String]';\n\n/**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\nfunction isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n}\n\nexport default isString;\n","import { Fragment, h, type FunctionalComponent as FC } from '@stencil/core';\nimport type { BadgeTextPropType } from '../../schema';\n\ntype InternalUnderlinedBadgeTextProps = {\n\tbadgeText: BadgeTextPropType;\n\tlabel: string;\n};\n\nconst KolInternalUnderlinedBadgeTextFc: FC<InternalUnderlinedBadgeTextProps> = ({ badgeText, label }) => {\n\t/* Prefer capitalization as defined in the badge Text, try uppercase/lowercase when there's no match. */\n\tconst badgeTextAsString: string = badgeText;\n\tlet [first, ...rest] = label.split(badgeTextAsString);\n\tif (rest.length === 0) {\n\t\tbadgeText = badgeTextAsString.toUpperCase();\n\t\t[first, ...rest] = label.split(badgeTextAsString);\n\t}\n\tif (rest.length === 0) {\n\t\tbadgeText = badgeTextAsString.toLowerCase();\n\t\t[first, ...rest] = label.split(badgeTextAsString);\n\t}\n\treturn (\n\t\t<>\n\t\t\t{first}\n\t\t\t{rest.length ? (\n\t\t\t\t<>\n\t\t\t\t\t<u>{badgeText}</u>\n\t\t\t\t\t{rest.join(badgeTextAsString)}\n\t\t\t\t</>\n\t\t\t) : null}\n\t\t</>\n\t);\n};\n\nexport default KolInternalUnderlinedBadgeTextFc;\n"],"names":["isArray","isObjectLike","baseGetTag","h","Fragment"],"mappings":";;;;;;;;AAIA;AACA,IAAI,SAAS,GAAG,iBAAiB;;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,QAAQ,CAAC,KAAK,EAAE;AACzB,EAAE,OAAO,OAAO,KAAK,IAAI,QAAQ;AACjC,KAAK,CAACA,gBAAO,CAAC,KAAK,CAAC,IAAIC,qBAAY,CAAC,KAAK,CAAC,IAAIC,mBAAU,CAAC,KAAK,CAAC,IAAI,SAAS,CAAC;AAC9E;;ACnBM,MAAA,gCAAgC,GAAyC,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAI;IAEvG,MAAM,iBAAiB,GAAW,SAAS;AAC3C,IAAA,IAAI,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,iBAAiB,CAAC;AACrD,IAAA,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;AACtB,QAAA,SAAS,GAAG,iBAAiB,CAAC,WAAW,EAAE;AAC3C,QAAA,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,iBAAiB,CAAC;;AAElD,IAAA,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;AACtB,QAAA,SAAS,GAAG,iBAAiB,CAAC,WAAW,EAAE;AAC3C,QAAA,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,iBAAiB,CAAC;;IAElD,QACCC,OAAA,CAAAC,cAAA,EAAA,IAAA,EACE,KAAK,EACL,IAAI,CAAC,MAAM,IACXD,OAAA,CAAAC,cAAA,EAAA,IAAA,EACCD,OAAA,CAAA,GAAA,EAAA,IAAA,EAAI,SAAS,CAAK,EACjB,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAC3B,IACA,IAAI,CACN;AAEL;;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"InternalUnderlinedBadgeText-ByM6-JtC.js","sources":["../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isString.js","src/functional-components/InternalUnderlinedBadgeText/InternalUnderlinedBadgeText.tsx"],"sourcesContent":["import baseGetTag from './_baseGetTag.js';\nimport isArray from './isArray.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar stringTag = '[object String]';\n\n/**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\nfunction isString(value) {\n return typeof value == 'string' ||\n (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n}\n\nexport default isString;\n","import { Fragment, h, type FunctionalComponent as FC } from '@stencil/core';\nimport type { BadgeTextPropType } from '../../schema';\n\ntype InternalUnderlinedBadgeTextProps = {\n\tbadgeText: BadgeTextPropType;\n\tlabel: string;\n};\n\nconst KolInternalUnderlinedBadgeTextFc: FC<InternalUnderlinedBadgeTextProps> = ({ badgeText, label }) => {\n\t/* Prefer capitalization as defined in the badge Text, try uppercase/lowercase when there's no match. */\n\tconst badgeTextAsString: string = badgeText;\n\tlet [first, ...rest] = label.split(badgeTextAsString);\n\tif (rest.length === 0) {\n\t\tbadgeText = badgeTextAsString.toUpperCase();\n\t\t[first, ...rest] = label.split(badgeTextAsString);\n\t}\n\tif (rest.length === 0) {\n\t\tbadgeText = badgeTextAsString.toLowerCase();\n\t\t[first, ...rest] = label.split(badgeTextAsString);\n\t}\n\treturn (\n\t\t<>\n\t\t\t{first}\n\t\t\t{rest.length ? (\n\t\t\t\t<>\n\t\t\t\t\t<u>{badgeText}</u>\n\t\t\t\t\t{rest.join(badgeTextAsString)}\n\t\t\t\t</>\n\t\t\t) : null}\n\t\t</>\n\t);\n};\n\nexport default KolInternalUnderlinedBadgeTextFc;\n"],"names":["isArray","isObjectLike","baseGetTag","h","Fragment"],"mappings":";;;;;;;;AAIA;AACA,IAAI,SAAS,GAAG,iBAAiB;;AAEjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,QAAQ,CAAC,KAAK,EAAE;AACzB,EAAE,OAAO,OAAO,KAAK,IAAI,QAAQ;AACjC,KAAK,CAACA,gBAAO,CAAC,KAAK,CAAC,IAAIC,qBAAY,CAAC,KAAK,CAAC,IAAIC,mBAAU,CAAC,KAAK,CAAC,IAAI,SAAS,CAAC;AAC9E;;ACnBM,MAAA,gCAAgC,GAAyC,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,KAAI;IAEvG,MAAM,iBAAiB,GAAW,SAAS;AAC3C,IAAA,IAAI,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,iBAAiB,CAAC;AACrD,IAAA,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;AACtB,QAAA,SAAS,GAAG,iBAAiB,CAAC,WAAW,EAAE;AAC3C,QAAA,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,iBAAiB,CAAC;;AAElD,IAAA,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;AACtB,QAAA,SAAS,GAAG,iBAAiB,CAAC,WAAW,EAAE;AAC3C,QAAA,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,iBAAiB,CAAC;;IAElD,QACCC,OAAA,CAAAC,cAAA,EAAA,IAAA,EACE,KAAK,EACL,IAAI,CAAC,MAAM,IACXD,OAAA,CAAAC,cAAA,EAAA,IAAA,EACCD,OAAA,CAAA,GAAA,EAAA,IAAA,EAAI,SAAS,CAAK,EACjB,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAC3B,IACA,IAAI,CACN;AAEL;;;;;","x_google_ignoreList":[0]}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";var tslib_es6=require("./tslib.es6-7DbU_BSw.js"),index=require("./index-CeweGYAX.js"),clsx=require("./clsx-CkZlkaek.js"),Icon=require("./Icon-DiNO3cEA.js");require("./common-Cd2qH809.js");var reuse=require("./reuse-Cs36Ddzu.js"),markdown=require("./markdown-1dxeA2q6.js"),InternalUnderlinedBadgeText=require("./InternalUnderlinedBadgeText-CYAV_r9-.js"),isObject=require("./isObject-DMA85Fq4.js");const IconHelper=e=>{const{class:l,style:n,label:s,icon:a}=e;return index.h(Icon.KolIconFc,{class:clsx.clsx("icon",l),style:n,label:s||"",icons:a})},LabelHelper=({label:e,hideLabel:l,allowMarkdown:n,badgeText:s})=>{if(l||!InternalUnderlinedBadgeText.isString(e))return null;const a="kol-span__label";return n?index.h("span",{class:clsx.clsx(a,"md"),innerHTML:markdown.md(e)}):s?index.h("span",{class:clsx.clsx(a)},index.h(InternalUnderlinedBadgeText.KolInternalUnderlinedBadgeTextFc,{label:e,badgeText:s})):index.h("span",{class:clsx.clsx(a)},e)},KolSpanCoreHelperFc=({hideLabel:e,label:l,badgeText:n,allowMarkdown:s},a)=>{const i=!reuse.showExpertSlot(l);return index.h(index.Fragment,null,i&&index.h(LabelHelper,{label:l,hideLabel:e,badgeText:n,allowMarkdown:s}),index.h("span",{"aria-hidden":i?"true":void 0,class:"kol-span__label",hidden:i},a),InternalUnderlinedBadgeText.isString(n)&&n.length>0&&index.h("kbd",{class:"badge-text-hint","aria-hidden":"true"},n))},KolSpanFc=(e,l)=>{const{class:n,label:s,hideLabel:a=!1,badgeText:i,allowMarkdown:r,icons:t}=e,d=tslib_es6.__rest(e,["class","label","hideLabel","badgeText","allowMarkdown","icons"]);let c=null,o=null,b=null,x=null;return isObject.isObject(t)?(c=t.top,o=t.left,b=t.right,x=t.bottom):InternalUnderlinedBadgeText.isString(t)&&(o={icon:t}),index.h("span",Object.assign({class:clsx.clsx("kol-span",{"kol-span--hide-label":a},n)},d),isObject.isObject(c)&&index.h(IconHelper,Object.assign({class:"top"},c)),index.h("span",{class:"kol-span__container"},isObject.isObject(o)&&index.h(IconHelper,Object.assign({class:"left"},o)),index.h(KolSpanCoreHelperFc,{label:s,hideLabel:a,allowMarkdown:r,badgeText:i},l),isObject.isObject(b)&&index.h(IconHelper,Object.assign({class:"right"},b))),isObject.isObject(x)&&index.h(IconHelper,Object.assign({class:"bottom"},x)))};exports.KolSpanFc=KolSpanFc;
4
+ "use strict";var tslib_es6=require("./tslib.es6-7DbU_BSw.js"),index=require("./index-DKNg2r8I.js"),clsx=require("./clsx-CkZlkaek.js"),Icon=require("./Icon-CLiVsvC6.js");require("./common-Cd2qH809.js");var reuse=require("./reuse-Cs36Ddzu.js"),markdown=require("./markdown-1dxeA2q6.js"),InternalUnderlinedBadgeText=require("./InternalUnderlinedBadgeText-ByM6-JtC.js"),isObject=require("./isObject-DMA85Fq4.js");const IconHelper=e=>{const{class:l,style:n,label:s,icon:a}=e;return index.h(Icon.KolIconFc,{class:clsx.clsx("icon",l),style:n,label:s||"",icons:a})},LabelHelper=({label:e,hideLabel:l,allowMarkdown:n,badgeText:s})=>{if(l||!InternalUnderlinedBadgeText.isString(e))return null;const a="kol-span__label";return n?index.h("span",{class:clsx.clsx(a,"md"),innerHTML:markdown.md(e)}):s?index.h("span",{class:clsx.clsx(a)},index.h(InternalUnderlinedBadgeText.KolInternalUnderlinedBadgeTextFc,{label:e,badgeText:s})):index.h("span",{class:clsx.clsx(a)},e)},KolSpanCoreHelperFc=({hideLabel:e,label:l,badgeText:n,allowMarkdown:s},a)=>{const i=!reuse.showExpertSlot(l);return index.h(index.Fragment,null,i&&index.h(LabelHelper,{label:l,hideLabel:e,badgeText:n,allowMarkdown:s}),index.h("span",{"aria-hidden":i?"true":void 0,class:"kol-span__label",hidden:i},a),InternalUnderlinedBadgeText.isString(n)&&n.length>0&&index.h("kbd",{class:"badge-text-hint","aria-hidden":"true"},n))},KolSpanFc=(e,l)=>{const{class:n,label:s,hideLabel:a=!1,badgeText:i,allowMarkdown:r,icons:t}=e,d=tslib_es6.__rest(e,["class","label","hideLabel","badgeText","allowMarkdown","icons"]);let c=null,o=null,b=null,x=null;return isObject.isObject(t)?(c=t.top,o=t.left,b=t.right,x=t.bottom):InternalUnderlinedBadgeText.isString(t)&&(o={icon:t}),index.h("span",Object.assign({class:clsx.clsx("kol-span",{"kol-span--hide-label":a},n)},d),isObject.isObject(c)&&index.h(IconHelper,Object.assign({class:"top"},c)),index.h("span",{class:"kol-span__container"},isObject.isObject(o)&&index.h(IconHelper,Object.assign({class:"left"},o)),index.h(KolSpanCoreHelperFc,{label:s,hideLabel:a,allowMarkdown:r,badgeText:i},l),isObject.isObject(b)&&index.h(IconHelper,Object.assign({class:"right"},b))),isObject.isObject(x)&&index.h(IconHelper,Object.assign({class:"bottom"},x)))};exports.KolSpanFc=KolSpanFc;
@@ -1 +1 @@
1
- {"version":3,"file":"Span-DraRn9Dn.js","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"],"names":["h","KolIconFc","clsx","isString","md","KolInternalUnderlinedBadgeTextFc","showExpertSlot","Fragment","__rest","isObject","SpanCoreHelper"],"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,OAAOA,OAAA,CAACC,cAAS,EAAA,EAAC,KAAK,EAAEC,SAAI,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,CAACC,oCAAQ,CAAC,KAAK,CAAC,EAAE;AAClC,QAAA,OAAO,IAAI;;IAGZ,MAAM,cAAc,GAAG,iBAAiB;IAExC,IAAI,aAAa,EAAE;QAClB,OAAOH,kBAAM,KAAK,EAAEE,SAAI,CAAC,cAAc,EAAE,IAAI,CAAC,EAAE,SAAS,EAAEE,WAAE,CAAC,KAAK,CAAC,GAAI;;IAGzE,IAAI,SAAS,EAAE;AACd,QAAA,QACCJ,OAAM,CAAA,MAAA,EAAA,EAAA,KAAK,EA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AA,UAAU,EAAC,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EAAC,OAAO,EAAK,EAAA,cAAc,EAAI,CACvE,EACNS,iBAAQ,CAAC,eAAe,CAAC,IAAIT,QAAC,UAAU,EAAA,MAAA,CAAA,MAAA,CAAA,EAAC,KAAK,EAAC,QAAQ,EAAK,EAAA,eAAe,CAAI,CAAA,CAC1E;AAET;;;;"}
1
+ {"version":3,"file":"Span-B792jKxt.js","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"],"names":["h","KolIconFc","clsx","isString","md","KolInternalUnderlinedBadgeTextFc","showExpertSlot","Fragment","__rest","isObject","SpanCoreHelper"],"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,OAAOA,OAAA,CAACC,cAAS,EAAA,EAAC,KAAK,EAAEC,SAAI,CAAC,MAAM,EAAE,UAAU,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EA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AK,EAAC,KAAK,EAAK,EAAA,YAAY,CAAI,CAAA,EACvEA,OAAM,CAAA,MAAA,EAAA,EAAA,KAAK,EAAC,qBAAqB,EAAA,EAC/BS,iBAAQ,CAAC,aAAa,CAAC,IAAIT,OAAC,CAAA,UAAU,EAAC,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EAAC,MAAM,EAAK,EAAA,aAAa,CAAI,CAAA,EAC1EA,OAAA,CAACU,mBAAc,EAAC,EAAA,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,aAAa,EAAE,aAAa,EAAE,SAAS,EAAE,SAAS,EAAA,EACpG,QAAQ,CACO,EAChBD,iBAAQ,CAAC,cAAc,CAAC,IAAIT,OAAC,CAAA,UAAU,EAAC,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EAAC,OAAO,EAAK,EAAA,cAAc,EAAI,CACvE,EACNS,iBAAQ,CAAC,eAAe,CAAC,IAAIT,QAAC,UAAU,EAAA,MAAA,CAAA,MAAA,CAAA,EAAC,KAAK,EAAC,QAAQ,EAAK,EAAA,eAAe,CAAI,CAAA,CAC1E;AAET;;;;"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";var common=require("./common-Cd2qH809.js"),index=require("./index-CeweGYAX.js"),appGlobalScript=()=>{index.setMode(o=>{try{o.shadowRoot instanceof ShadowRoot&&common.ne(o,common.b(o))}catch(o){}return"default"}),Promise.resolve().then(function(){return require("./devtools-BxG_Wlpf.js")}).then(o=>{"object"==typeof o&&null!==o&&"function"==typeof o.initialize&&o.initialize()}).catch(o=>{common.Log.error(o)})};const globalScripts=appGlobalScript;exports.globalScripts=globalScripts;
4
+ "use strict";var common=require("./common-Cd2qH809.js"),index=require("./index-DKNg2r8I.js"),appGlobalScript=()=>{index.setMode(o=>{try{o.shadowRoot instanceof ShadowRoot&&common.ne(o,common.b(o))}catch(o){}return"default"}),Promise.resolve().then(function(){return require("./devtools-BI2o7npG.js")}).then(o=>{"object"==typeof o&&null!==o&&"function"==typeof o.initialize&&o.initialize()}).catch(o=>{common.Log.error(o)})};const globalScripts=appGlobalScript;exports.globalScripts=globalScripts;
@@ -1 +1 @@
1
- {"version":3,"file":"app-globals-Bifd0vhj.js","sources":["src/global/script.ts","@stencil/core/internal/app-globals"],"sourcesContent":["import { getThemeDetails, setThemeStyle } from 'adopted-style-sheets';\n\nimport { Log } from '../schema';\nimport { setMode } from '@stencil/core';\n\nexport default () => {\n\tsetMode((elm) => {\n\t\ttry {\n\t\t\tif (elm.shadowRoot instanceof ShadowRoot) {\n\t\t\t\tsetThemeStyle(elm, getThemeDetails(elm));\n\t\t\t}\n\t\t} catch (error) {\n\t\t\t/**\n\t\t\t * Try is needed for SSR.\n\t\t\t * - no HTMLElement is available\n\t\t\t * - no ShadowRoot is available\n\t\t\t */\n\t\t}\n\t\treturn 'default';\n\t});\n\n\timport('./devtools')\n\t\t.then((devTools) => {\n\t\t\tif (typeof devTools === 'object' && devTools !== null && typeof devTools.initialize === 'function') {\n\t\t\t\tdevTools.initialize();\n\t\t\t}\n\t\t})\n\t\t.catch((error) => {\n\t\t\tLog.error(error);\n\t\t});\n};\n","import appGlobalScript from '/home/runner/work/kolibri/kolibri/packages/components/src/global/script.ts';\nexport const globalScripts = appGlobalScript;\nexport const globalStyles = \"\";\n"],"names":["setMode","setThemeStyle","getThemeDetails","Log"],"mappings":";;;;;;;;AAKA,sBAAe,MAAK;AACnB,IAAAA,aAAO,CAAC,CAAC,GAAG,KAAI;AACf,QAAA,IAAI;AACH,YAAA,IAAI,GAAG,CAAC,UAAU,YAAY,UAAU,EAAE;gBACzCC,SAAa,CAAC,GAAG,EAAEC,QAAe,CAAC,GAAG,CAAC,CAAC;;;QAExC,OAAO,KAAK,EAAE;;AAOhB,QAAA,OAAO,SAAS;AACjB,KAAC,CAAC;IAEF,oDAAO,wBAAY;AACjB,SAAA,IAAI,CAAC,CAAC,QAAQ,KAAI;AAClB,QAAA,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,KAAK,IAAI,IAAI,OAAO,QAAQ,CAAC,UAAU,KAAK,UAAU,EAAE;YACnG,QAAQ,CAAC,UAAU,EAAE;;AAEvB,KAAC;AACA,SAAA,KAAK,CAAC,CAAC,KAAK,KAAI;AAChB,QAAAC,UAAG,CAAC,KAAK,CAAC,KAAK,CAAC;AACjB,KAAC,CAAC;AACJ,CAAC;;AC7BW,MAAC,aAAa,GAAG;;;;"}
1
+ {"version":3,"file":"app-globals-DOAiX4ZQ.js","sources":["src/global/script.ts","@stencil/core/internal/app-globals"],"sourcesContent":["import { getThemeDetails, setThemeStyle } from 'adopted-style-sheets';\n\nimport { setMode } from '@stencil/core';\nimport { Log } from '../schema';\n\nexport default () => {\n\tsetMode((elm) => {\n\t\ttry {\n\t\t\tif (elm.shadowRoot instanceof ShadowRoot) {\n\t\t\t\tsetThemeStyle(elm, getThemeDetails(elm));\n\t\t\t}\n\t\t} catch (error) {\n\t\t\t/**\n\t\t\t * Try is needed for SSR.\n\t\t\t * - no HTMLElement is available\n\t\t\t * - no ShadowRoot is available\n\t\t\t */\n\t\t}\n\t\treturn 'default';\n\t});\n\n\timport('./devtools')\n\t\t.then((devTools) => {\n\t\t\tif (typeof devTools === 'object' && devTools !== null && typeof devTools.initialize === 'function') {\n\t\t\t\tdevTools.initialize();\n\t\t\t}\n\t\t})\n\t\t.catch((error) => {\n\t\t\tLog.error(error);\n\t\t});\n};\n","import appGlobalScript from '/home/runner/work/kolibri/kolibri/packages/components/src/global/script.ts';\nexport const globalScripts = appGlobalScript;\nexport const globalStyles = \"\";\n"],"names":["setMode","setThemeStyle","getThemeDetails","Log"],"mappings":";;;;;;;;AAKA,sBAAe,MAAK;AACnB,IAAAA,aAAO,CAAC,CAAC,GAAG,KAAI;AACf,QAAA,IAAI;AACH,YAAA,IAAI,GAAG,CAAC,UAAU,YAAY,UAAU,EAAE;gBACzCC,SAAa,CAAC,GAAG,EAAEC,QAAe,CAAC,GAAG,CAAC,CAAC;;;QAExC,OAAO,KAAK,EAAE;;AAOhB,QAAA,OAAO,SAAS;AACjB,KAAC,CAAC;IAEF,oDAAO,wBAAY;AACjB,SAAA,IAAI,CAAC,CAAC,QAAQ,KAAI;AAClB,QAAA,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,KAAK,IAAI,IAAI,OAAO,QAAQ,CAAC,UAAU,KAAK,UAAU,EAAE;YACnG,QAAQ,CAAC,UAAU,EAAE;;AAEvB,KAAC;AACA,SAAA,KAAK,CAAC,CAAC,KAAK,KAAI;AAChB,QAAAC,UAAG,CAAC,KAAK,CAAC,KAAK,CAAC;AACjB,KAAC,CAAC;AACJ,CAAC;;AC7BW,MAAC,aAAa,GAAG;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"bem-BVClcAVJ.js","sources":["src/components/icon/bem.ts"],"sourcesContent":["import { generateBemClassNames } from 'typed-bem';\n\ntype SCHEMA = {\n\t'kol-icon': {\n\t\telements: {\n\t\t\ticon: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t};\n\t\tmodifiers: null;\n\t};\n};\n\nconst bem = generateBemClassNames<SCHEMA>();\n\nconst BEM: SCHEMA = {\n\t'kol-icon': {\n\t\telements: {\n\t\t\ticon: { modifiers: null },\n\t\t},\n\t\tmodifiers: null,\n\t},\n};\n\n/**\n * Define the static BEM class names for the alert component.\n */\nconst BEM_CLASS_ICON = bem('kol-icon');\nconst BEM_CLASS_ICON__ICON = bem('kol-icon', 'icon');\n\nexport { bem as genBemAlert, BEM as BEM_ICON };\nexport { BEM_CLASS_ICON, BEM_CLASS_ICON__ICON };\n"],"names":["generateBemClassNames"],"mappings":";;;;;;;AAaA,MAAM,GAAG,GAAGA,SAAqB,EAAU;AAE3C,MAAM,GAAG,GAAW;AACnB,IAAA,UAAU,EAAE;AACX,QAAA,QAAQ,EAAE;AACT,YAAA,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AACzB,SAAA;AACD,QAAA,SAAS,EAAE,IAAI;AACf,KAAA;;AAMF,MAAM,cAAc,GAAG,GAAG,CAAC,UAAU;AAC/B,MAAA,oBAAoB,GAAG,GAAG,CAAC,UAAU,EAAE,MAAM;;;;;;"}
1
+ {"version":3,"file":"bem-BVClcAVJ.js","sources":["src/components/icon/bem.ts"],"sourcesContent":["import { generateBemClassNames } from 'typed-bem';\n\ntype SCHEMA = {\n\t'kol-icon': {\n\t\telements: {\n\t\t\ticon: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t};\n\t\tmodifiers: null;\n\t};\n};\n\nconst bem = generateBemClassNames<SCHEMA>();\n\nconst BEM: SCHEMA = {\n\t'kol-icon': {\n\t\telements: {\n\t\t\ticon: { modifiers: null },\n\t\t},\n\t\tmodifiers: null,\n\t},\n};\n\n/**\n * Define the static BEM class names for the alert component.\n */\nconst BEM_CLASS_ICON = bem('kol-icon');\nconst BEM_CLASS_ICON__ICON = bem('kol-icon', 'icon');\n\nexport { BEM_CLASS_ICON, BEM_CLASS_ICON__ICON, BEM as BEM_ICON, bem as genBemAlert };\n"],"names":["generateBemClassNames"],"mappings":";;;;;;;AAaA,MAAM,GAAG,GAAGA,SAAqB,EAAU;AAE3C,MAAM,GAAG,GAAW;AACnB,IAAA,UAAU,EAAE;AACX,QAAA,QAAQ,EAAE;AACT,YAAA,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AACzB,SAAA;AACD,QAAA,SAAS,EAAE,IAAI;AACf,KAAA;;AAMF,MAAM,cAAc,GAAG,GAAG,CAAC,UAAU;AAC/B,MAAA,oBAAoB,GAAG,GAAG,CAAC,UAAU,EAAE,MAAM;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"bem-Bu0VYjZa.js","sources":["src/functional-components/Alert/bem.ts"],"sourcesContent":["import { generateBemClassNames } from 'typed-bem';\n\n/**\n * This file defines the BEM schema for the kol-alert component.\n */\n\n/**\n * The schema defines the structure of the BEM class names\n */\ntype SCHEMA = {\n\t'kol-alert': {\n\t\t/**\n\t\t * Here we define the elements we needed\n\t\t * to realize a minimal full featured alert\n\t\t * component (DOM).\n\t\t */\n\t\telements: {\n\t\t\tcontainer: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\ticon: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\theading: {\n\t\t\t\t/**\n\t\t\t\t * Some elements needs modifiers to\n\t\t\t\t * style them properly.\n\t\t\t\t */\n\t\t\t\tmodifiers: Set<'h0' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'>;\n\t\t\t};\n\t\t\tcontent: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\tcloser: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t};\n\t\t/**\n\t\t * Here we define the modifiers related to the\n\t\t * kol-alert component properties.\n\t\t */\n\t\tmodifiers: Set<'hasCloser' | 'type-default' | 'type-error' | 'type-info' | 'type-success' | 'type-warning' | 'variant-card' | 'variant-msg'>;\n\t};\n};\n\n/**\n * Define the generator function for the BEM class names.\n */\nconst bem = generateBemClassNames<SCHEMA>();\n\n/**\n * Define a constants object that contains the BEM schema for\n * reuse to generate SCSS files in themes.\n */\nconst BEM: SCHEMA = {\n\t'kol-alert': {\n\t\telements: {\n\t\t\tcloser: { modifiers: null },\n\t\t\theading: { modifiers: new Set(['h0', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6']) },\n\t\t\ticon: { modifiers: null },\n\t\t\tcontent: { modifiers: null },\n\t\t\tcontainer: { modifiers: null },\n\t\t},\n\t\tmodifiers: new Set(['hasCloser', 'type-default', 'type-error', 'type-info', 'type-success', 'type-warning', 'variant-card', 'variant-msg']),\n\t},\n};\n\n/**\n * Define the static BEM class names for the alert component.\n */\nconst BEM_CLASS_ALERT__CLOSER = bem('kol-alert', 'closer');\nconst BEM_CLASS_ALERT__CONTENT = bem('kol-alert', 'content');\nconst BEM_CLASS_ALERT__ICON = bem('kol-alert', 'icon');\n\nexport { bem as genBemAlert, BEM as BEM_ALERT };\nexport { BEM_CLASS_ALERT__CLOSER, BEM_CLASS_ALERT__CONTENT, BEM_CLASS_ALERT__ICON };\n"],"names":["generateBemClassNames"],"mappings":";;;;;;;AAgDA,MAAM,GAAG,GAAGA,SAAqB;AAMjC,MAAM,GAAG,GAAW;AACnB,IAAA,WAAW,EAAE;AACZ,QAAA,QAAQ,EAAE;AACT,YAAA,MAAM,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;YAC3B,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,EAAE;AAC3E,YAAA,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AACzB,YAAA,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AAC5B,YAAA,SAAS,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AAC9B,SAAA;QACD,SAAS,EAAE,IAAI,GAAG,CAAC,CAAC,WAAW,EAAE,cAAc,EAAE,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,CAAC,CAAC;AAC3I,KAAA;;AAMI,MAAA,uBAAuB,GAAG,GAAG,CAAC,WAAW,EAAE,QAAQ;AACnD,MAAA,wBAAwB,GAAG,GAAG,CAAC,WAAW,EAAE,SAAS;AACrD,MAAA,qBAAqB,GAAG,GAAG,CAAC,WAAW,EAAE,MAAM;;;;;;;;"}
1
+ {"version":3,"file":"bem-Bu0VYjZa.js","sources":["src/functional-components/Alert/bem.ts"],"sourcesContent":["import { generateBemClassNames } from 'typed-bem';\n\n/**\n * This file defines the BEM schema for the kol-alert component.\n */\n\n/**\n * The schema defines the structure of the BEM class names\n */\ntype SCHEMA = {\n\t'kol-alert': {\n\t\t/**\n\t\t * Here we define the elements we needed\n\t\t * to realize a minimal full featured alert\n\t\t * component (DOM).\n\t\t */\n\t\telements: {\n\t\t\tcontainer: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\ticon: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\theading: {\n\t\t\t\t/**\n\t\t\t\t * Some elements needs modifiers to\n\t\t\t\t * style them properly.\n\t\t\t\t */\n\t\t\t\tmodifiers: Set<'h0' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6'>;\n\t\t\t};\n\t\t\tcontent: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t\tcloser: {\n\t\t\t\tmodifiers: null;\n\t\t\t};\n\t\t};\n\t\t/**\n\t\t * Here we define the modifiers related to the\n\t\t * kol-alert component properties.\n\t\t */\n\t\tmodifiers: Set<'hasCloser' | 'type-default' | 'type-error' | 'type-info' | 'type-success' | 'type-warning' | 'variant-card' | 'variant-msg'>;\n\t};\n};\n\n/**\n * Define the generator function for the BEM class names.\n */\nconst bem = generateBemClassNames<SCHEMA>();\n\n/**\n * Define a constants object that contains the BEM schema for\n * reuse to generate SCSS files in themes.\n */\nconst BEM: SCHEMA = {\n\t'kol-alert': {\n\t\telements: {\n\t\t\tcloser: { modifiers: null },\n\t\t\theading: { modifiers: new Set(['h0', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6']) },\n\t\t\ticon: { modifiers: null },\n\t\t\tcontent: { modifiers: null },\n\t\t\tcontainer: { modifiers: null },\n\t\t},\n\t\tmodifiers: new Set(['hasCloser', 'type-default', 'type-error', 'type-info', 'type-success', 'type-warning', 'variant-card', 'variant-msg']),\n\t},\n};\n\n/**\n * Define the static BEM class names for the alert component.\n */\nconst BEM_CLASS_ALERT__CLOSER = bem('kol-alert', 'closer');\nconst BEM_CLASS_ALERT__CONTENT = bem('kol-alert', 'content');\nconst BEM_CLASS_ALERT__ICON = bem('kol-alert', 'icon');\n\nexport { BEM as BEM_ALERT, BEM_CLASS_ALERT__CLOSER, BEM_CLASS_ALERT__CONTENT, BEM_CLASS_ALERT__ICON, bem as genBemAlert };\n"],"names":["generateBemClassNames"],"mappings":";;;;;;;AAgDA,MAAM,GAAG,GAAGA,SAAqB;AAMjC,MAAM,GAAG,GAAW;AACnB,IAAA,WAAW,EAAE;AACZ,QAAA,QAAQ,EAAE;AACT,YAAA,MAAM,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;YAC3B,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,GAAG,CAAC,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,EAAE;AAC3E,YAAA,IAAI,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AACzB,YAAA,OAAO,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AAC5B,YAAA,SAAS,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE;AAC9B,SAAA;QACD,SAAS,EAAE,IAAI,GAAG,CAAC,CAAC,WAAW,EAAE,cAAc,EAAE,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,aAAa,CAAC,CAAC;AAC3I,KAAA;;AAMI,MAAA,uBAAuB,GAAG,GAAG,CAAC,WAAW,EAAE,QAAQ;AACnD,MAAA,wBAAwB,GAAG,GAAG,CAAC,WAAW,EAAE,SAAS;AACrD,MAAA,qBAAqB,GAAG,GAAG,CAAC,WAAW,EAAE,MAAM;;;;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"color-D7OxzTlF.js","sources":["../../node_modules/.pnpm/color-rgba@2.4.0/node_modules/color-rgba/index.mjs","src/schema/utils/contrast.ts","src/schema/props/color.ts"],"sourcesContent":["/** @module color-rgba */\r\nimport parse from 'color-parse'\r\nimport rgb from 'color-space/rgb.js'\r\nimport hsl from 'color-space/hsl.js'\r\n\r\nexport default function rgba (color) {\r\n\t// template literals\r\n\tif (Array.isArray(color) && color.raw) color = String.raw(...arguments)\r\n\r\n\tvar values, i, l\r\n\r\n\t//attempt to parse non-array arguments\r\n\tvar parsed = parse(color)\r\n\r\n\tif (!parsed.space) return []\r\n\r\n\tconst min = parsed.space[0] === 'h' ? hsl.min : rgb.min\r\n\tconst max = parsed.space[0] === 'h' ? hsl.max : rgb.max\r\n\r\n\tvalues = Array(3)\r\n\tvalues[0] = Math.min(Math.max(parsed.values[0], min[0]), max[0])\r\n\tvalues[1] = Math.min(Math.max(parsed.values[1], min[1]), max[1])\r\n\tvalues[2] = Math.min(Math.max(parsed.values[2], min[2]), max[2])\r\n\r\n\tif (parsed.space[0] === 'h') {\r\n\t\tvalues = hsl.rgb(values)\r\n\t}\r\n\r\n\tvalues.push(Math.min(Math.max(parsed.alpha, 0), 1))\r\n\r\n\treturn values\r\n}\r\n","import type { RGB } from 'color-convert/conversions';\nimport { hex } from 'wcag-contrast';\n\nimport rgba from 'color-rgba';\nimport rgbaConvert from 'rgba-convert';\n\ntype RGBA = [number, number, number, number];\n\n// const calcColor = (color: RGBA, diff: number): RGBA => [\n// Math.max(Math.min(Math.round(color[0] + (color[0] / 100 + 1) * diff), 255), 0),\n// Math.max(Math.min(Math.round(color[1] + (color[1] / 100 + 1) * diff), 255), 0),\n// Math.max(Math.min(Math.round(color[2] + (color[2] / 100 + 1) * diff), 255), 0),\n// color[3],\n// ];\n\n// const relativeLuminanceFormel = (c: number): number => {\n// if (c <= 0.03928) {\n// return c / 12.92;\n// } else {\n// return ((c + 0.055) / 1.055) ** 2.4;\n// }\n// };\n// // https://www.w3.org/TR/WCAG20/#contrast-ratiodef\n// const relativeLuminance = (r: number, g: number, b: number): number => {\n// return (\n// 0.2126 * relativeLuminanceFormel(r) + 0.7152 * relativeLuminanceFormel(g) + 0.0722 * relativeLuminanceFormel(b)\n// );\n// };\n\n// https://css-tricks.com/snippets/javascript/random-hex-color/\n// const randomColor = () => Math.floor(Math.random() * 16777215).toString(16);\n\n// https://24ways.org/2010/calculating-color-contrast/\nexport const getContrastYIQ = (r: number, g: number, b: number): number => {\n\tconst yiq = (r * 299 + g * 587 + b * 114) / 1000;\n\treturn yiq >= 128 ? -1 : 1;\n};\n\ntype ColorPair<T> = {\n\tbackground: T;\n\tforeground: T;\n};\n\nexport type ColorContrast<T> = ColorPair<T> & {\n\tcontrast: number;\n};\n\nexport const calcColorContrast = (baseColor: RGB, contrastColor: RGB, ratio: number, dir = 1): ColorContrast<RGB> => {\n\tconst color: RGB = [\n\t\tMath.max(Math.min(Math.round(contrastColor[0] + dir * Math.max(1, contrastColor[0] / 100)), 255), 0),\n\t\tMath.max(Math.min(Math.round(contrastColor[1] + dir * Math.max(1, contrastColor[1] / 100)), 255), 0),\n\t\tMath.max(Math.min(Math.round(contrastColor[2] + dir * Math.max(1, contrastColor[2] / 100)), 255), 0),\n\t];\n\tconst contrast = hex(rgbaConvert.hex(`rgba(${baseColor.join(',')},1)`), rgbaConvert.hex(`rgba(${color.join(',')},1)`));\n\tconst summe = color[0] + color[1] + color[2];\n\tif (summe === 0 || summe === 765 || contrast > ratio) {\n\t\treturn {\n\t\t\tbackground: baseColor,\n\t\t\tforeground: color,\n\t\t\tcontrast,\n\t\t};\n\t} else {\n\t\treturn calcColorContrast(baseColor, color, ratio, dir);\n\t}\n};\n\nconst cache: Map<unknown, ColorContrast<RGB>> = new Map();\n\nexport const getColorContrast = (baseColor: RGB, contrastColor: RGB, ratio: number, dir = 1): ColorContrast<RGB> => {\n\tif (cache.has(baseColor)) {\n\t\treturn cache.get(baseColor) as ColorContrast<RGB>;\n\t}\n\tconst color = calcColorContrast(baseColor, contrastColor, ratio, dir);\n\tcache.set(baseColor, color);\n\treturn color;\n};\n\nexport const createContrastColorPair = (color: string | ColorPair<string>, contrastRatio = 7): ColorContrast<string> => {\n\tlet baseColor: RGBA = [0, 0, 0, 1];\n\tlet contrastColor: RGBA = [255, 255, 255, 1];\n\tif (typeof color === 'string') {\n\t\tbaseColor = rgba(color);\n\t\tcontrastColor = baseColor;\n\t} else if (typeof color === 'object' && color !== null && typeof color.background === 'string' && typeof color.foreground === 'string') {\n\t\tbaseColor = rgba(color.background);\n\t\tif (typeof color.foreground === 'string') {\n\t\t\tcontrastColor = rgba(color.foreground);\n\t\t} else {\n\t\t\tcontrastColor = baseColor;\n\t\t}\n\t}\n\tconst yiq = getContrastYIQ(baseColor[0], baseColor[1], baseColor[2]);\n\tconst colorContrast = getColorContrast(\n\t\t[baseColor[0], baseColor[1], baseColor[2]],\n\t\t[contrastColor[0], contrastColor[1], contrastColor[2]],\n\t\tcontrastRatio,\n\t\tyiq,\n\t);\n\tcontrastColor = [...colorContrast.foreground, 1];\n\n\treturn {\n\t\tbackground: rgbaConvert.hex(`rgba(${baseColor.join(',')})`),\n\t\tforeground: rgbaConvert.hex(`rgba(${contrastColor.join(',')})`),\n\t\tcontrast: colorContrast.contrast,\n\t};\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { Stringified } from '../types';\nimport type { ColorContrast, WatchOptions } from '../utils';\nimport { 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"],"names":["parse","hsl","rgb","hex","rgbaConvert","watchValidator","Log","a11yHint"],"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,GAAGA,YAAK,CAAC,KAAK,EAAC;AAC1B;AACA,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE;AAC7B;AACA,CAAC,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,G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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,YAAAC,UAAG,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,QAAAC,eAAQ,CACP,CAAA,2BAAA,EAA8B,aAAa,CAAC,QAAQ,CAAgD,6CAAA,EAAA,aAAa,CAAC,UAAU,QAAQ,aAAa,CAAC,UAAU,CAAA,CAAA,CAAG,CAC/J;;IAEF,OAAO;QACN,eAAe,EAAE,aAAa,CAAC,UAAU;QACzC,eAAe,EAAE,aAAa,CAAC,UAAU;KACzC;AACF;;;;;;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"color-D7OxzTlF.js","sources":["../../node_modules/.pnpm/color-rgba@2.4.0/node_modules/color-rgba/index.mjs","src/schema/utils/contrast.ts","src/schema/props/color.ts"],"sourcesContent":["/** @module color-rgba */\r\nimport parse from 'color-parse'\r\nimport rgb from 'color-space/rgb.js'\r\nimport hsl from 'color-space/hsl.js'\r\n\r\nexport default function rgba (color) {\r\n\t// template literals\r\n\tif (Array.isArray(color) && color.raw) color = String.raw(...arguments)\r\n\r\n\tvar values, i, l\r\n\r\n\t//attempt to parse non-array arguments\r\n\tvar parsed = parse(color)\r\n\r\n\tif (!parsed.space) return []\r\n\r\n\tconst min = parsed.space[0] === 'h' ? hsl.min : rgb.min\r\n\tconst max = parsed.space[0] === 'h' ? hsl.max : rgb.max\r\n\r\n\tvalues = Array(3)\r\n\tvalues[0] = Math.min(Math.max(parsed.values[0], min[0]), max[0])\r\n\tvalues[1] = Math.min(Math.max(parsed.values[1], min[1]), max[1])\r\n\tvalues[2] = Math.min(Math.max(parsed.values[2], min[2]), max[2])\r\n\r\n\tif (parsed.space[0] === 'h') {\r\n\t\tvalues = hsl.rgb(values)\r\n\t}\r\n\r\n\tvalues.push(Math.min(Math.max(parsed.alpha, 0), 1))\r\n\r\n\treturn values\r\n}\r\n","import type { RGB } from 'color-convert/conversions';\nimport { hex } from 'wcag-contrast';\n\nimport rgba from 'color-rgba';\nimport rgbaConvert from 'rgba-convert';\n\ntype RGBA = [number, number, number, number];\n\n// const calcColor = (color: RGBA, diff: number): RGBA => [\n// Math.max(Math.min(Math.round(color[0] + (color[0] / 100 + 1) * diff), 255), 0),\n// Math.max(Math.min(Math.round(color[1] + (color[1] / 100 + 1) * diff), 255), 0),\n// Math.max(Math.min(Math.round(color[2] + (color[2] / 100 + 1) * diff), 255), 0),\n// color[3],\n// ];\n\n// const relativeLuminanceFormel = (c: number): number => {\n// if (c <= 0.03928) {\n// return c / 12.92;\n// } else {\n// return ((c + 0.055) / 1.055) ** 2.4;\n// }\n// };\n// // https://www.w3.org/TR/WCAG20/#contrast-ratiodef\n// const relativeLuminance = (r: number, g: number, b: number): number => {\n// return (\n// 0.2126 * relativeLuminanceFormel(r) + 0.7152 * relativeLuminanceFormel(g) + 0.0722 * relativeLuminanceFormel(b)\n// );\n// };\n\n// https://css-tricks.com/snippets/javascript/random-hex-color/\n// const randomColor = () => Math.floor(Math.random() * 16777215).toString(16);\n\n// https://24ways.org/2010/calculating-color-contrast/\nexport const getContrastYIQ = (r: number, g: number, b: number): number => {\n\tconst yiq = (r * 299 + g * 587 + b * 114) / 1000;\n\treturn yiq >= 128 ? -1 : 1;\n};\n\ntype ColorPair<T> = {\n\tbackground: T;\n\tforeground: T;\n};\n\nexport type ColorContrast<T> = ColorPair<T> & {\n\tcontrast: number;\n};\n\nexport const calcColorContrast = (baseColor: RGB, contrastColor: RGB, ratio: number, dir = 1): ColorContrast<RGB> => {\n\tconst color: RGB = [\n\t\tMath.max(Math.min(Math.round(contrastColor[0] + dir * Math.max(1, contrastColor[0] / 100)), 255), 0),\n\t\tMath.max(Math.min(Math.round(contrastColor[1] + dir * Math.max(1, contrastColor[1] / 100)), 255), 0),\n\t\tMath.max(Math.min(Math.round(contrastColor[2] + dir * Math.max(1, contrastColor[2] / 100)), 255), 0),\n\t];\n\tconst contrast = hex(rgbaConvert.hex(`rgba(${baseColor.join(',')},1)`), rgbaConvert.hex(`rgba(${color.join(',')},1)`));\n\tconst summe = color[0] + color[1] + color[2];\n\tif (summe === 0 || summe === 765 || contrast > ratio) {\n\t\treturn {\n\t\t\tbackground: baseColor,\n\t\t\tforeground: color,\n\t\t\tcontrast,\n\t\t};\n\t} else {\n\t\treturn calcColorContrast(baseColor, color, ratio, dir);\n\t}\n};\n\nconst cache: Map<unknown, ColorContrast<RGB>> = new Map();\n\nexport const getColorContrast = (baseColor: RGB, contrastColor: RGB, ratio: number, dir = 1): ColorContrast<RGB> => {\n\tif (cache.has(baseColor)) {\n\t\treturn cache.get(baseColor) as ColorContrast<RGB>;\n\t}\n\tconst color = calcColorContrast(baseColor, contrastColor, ratio, dir);\n\tcache.set(baseColor, color);\n\treturn color;\n};\n\nexport const createContrastColorPair = (color: string | ColorPair<string>, contrastRatio = 7): ColorContrast<string> => {\n\tlet baseColor: RGBA = [0, 0, 0, 1];\n\tlet contrastColor: RGBA = [255, 255, 255, 1];\n\tif (typeof color === 'string') {\n\t\tbaseColor = rgba(color);\n\t\tcontrastColor = baseColor;\n\t} else if (typeof color === 'object' && color !== null && typeof color.background === 'string' && typeof color.foreground === 'string') {\n\t\tbaseColor = rgba(color.background);\n\t\tif (typeof color.foreground === 'string') {\n\t\t\tcontrastColor = rgba(color.foreground);\n\t\t} else {\n\t\t\tcontrastColor = baseColor;\n\t\t}\n\t}\n\tconst yiq = getContrastYIQ(baseColor[0], baseColor[1], baseColor[2]);\n\tconst colorContrast = getColorContrast(\n\t\t[baseColor[0], baseColor[1], baseColor[2]],\n\t\t[contrastColor[0], contrastColor[1], contrastColor[2]],\n\t\tcontrastRatio,\n\t\tyiq,\n\t);\n\tcontrastColor = [...colorContrast.foreground, 1];\n\n\treturn {\n\t\tbackground: rgbaConvert.hex(`rgba(${baseColor.join(',')})`),\n\t\tforeground: rgbaConvert.hex(`rgba(${contrastColor.join(',')})`),\n\t\tcontrast: colorContrast.contrast,\n\t};\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { Stringified } from '../types';\nimport type { ColorContrast, WatchOptions } from '../utils';\nimport { a11yHint, createContrastColorPair, Log, watchValidator } from '../utils';\n\n/**\n * Defines the colors for primary, secondary and neutral.\n */\ntype CharacteristicColors = {\n\tprimary: string;\n\tsecondary: string;\n\tneutral: string;\n};\n\n/**\n * Defines the backgroundColor and foregroundColor.\n */\nexport type ColorPair = {\n\tbackgroundColor: string;\n\tforegroundColor: Stringified<CharacteristicColors>;\n};\n\nexport type PropColor = ColorPair;\n\ntype typeOfColorType = 'string' | 'ColorPair' | null;\n\nconst HEX_REGEX = /^#((\\d|[a-f]){8}|(\\d|[a-f]){6}|(\\d|[a-f]){3,4})$/i;\nfunction isHexString(value: string): boolean {\n\treturn HEX_REGEX.test(value);\n}\n/* checks if the string is valid JSON and if the resulting object is a valid ColorPair and returns it, or null if invalid. */\nfunction isColorObjectString(value: string): { type: typeOfColorType; value: PropColor | null } {\n\tif (value.startsWith('{')) {\n\t\ttry {\n\t\t\tconst parsed = JSON.parse(value) as unknown;\n\t\t\tif (isValidColorPair(parsed as ColorPair)) return { type: 'ColorPair', value: parsed as ColorPair };\n\t\t} catch (error) {\n\t\t\treturn { type: null, value: null };\n\t\t}\n\t}\n\treturn { type: null, value: null };\n}\n\nfunction typeOfColor(value?: unknown): { type: typeOfColorType; valid: boolean; value: PropColor | string } {\n\tif (value) {\n\t\tif (typeof value === 'string') {\n\t\t\tif (isHexString(value)) return { type: 'string', valid: true, value: value };\n\t\t\telse {\n\t\t\t\tconst colorObject = isColorObjectString(value);\n\t\t\t\tif (colorObject.value) return { type: colorObject.type, valid: true, value: colorObject.value };\n\t\t\t}\n\t\t} else {\n\t\t\tconst asColorPair = value as ColorPair;\n\t\t\tif (isValidColorPair(asColorPair)) return { type: 'ColorPair', valid: true, value: asColorPair };\n\t\t}\n\t}\n\treturn { type: null, valid: false, value: '' };\n}\n\n/* validate different color options */\nfunction isValidColorPair(value: ColorPair): boolean {\n\treturn !!(\n\t\ttypeof value === 'object' &&\n\t\tvalue &&\n\t\ttypeof value.backgroundColor === 'string' &&\n\t\t(typeof value.foregroundColor === 'string' ||\n\t\t\t(value.foregroundColor &&\n\t\t\t\ttypeof value.foregroundColor.primary === 'string' &&\n\t\t\t\ttypeof value.foregroundColor.secondary === 'string' &&\n\t\t\t\ttypeof value.foregroundColor.neutral === 'string'))\n\t);\n}\n\nfunction validatorFunction(value?: Stringified<PropColor>): boolean {\n\tconst valueType = typeOfColor(value);\n\tswitch (valueType.type) {\n\t\tcase null:\n\t\t\treturn false;\n\t\tcase 'string':\n\t\tcase 'ColorPair':\n\t\t\treturn valueType.valid;\n\t}\n}\n\nexport const validateColor = (component: Generic.Element.Component, value?: Stringified<PropColor>, options?: WatchOptions): void => {\n\twatchValidator(component, '_color', validatorFunction, new Set(['rgb in hex', 'ColorPair']), value, options);\n};\n\nexport const handleColorChange = (value: unknown): ColorPair => {\n\tlet colorContrast: ColorContrast<string>;\n\tconst valueType = typeOfColor(value);\n\tswitch (valueType.type) {\n\t\tcase 'string':\n\t\t\tcolorContrast = createContrastColorPair(valueType.value as string);\n\t\t\tbreak;\n\t\tcase 'ColorPair': {\n\t\t\tconst asColorPair = valueType.value as ColorPair;\n\t\t\tlet foreground = '';\n\t\t\tif (typeof asColorPair.foregroundColor === 'string') foreground = asColorPair.foregroundColor;\n\t\t\telse if (asColorPair.foregroundColor?.primary) foreground = asColorPair.foregroundColor.primary;\n\t\t\tif (!foreground || typeof foreground !== 'string') foreground = '#fff';\n\t\t\tcolorContrast = createContrastColorPair({\n\t\t\t\tbackground: asColorPair.backgroundColor,\n\t\t\t\tforeground,\n\t\t\t});\n\t\t\tbreak;\n\t\t}\n\t\tcase null:\n\t\t\tLog.warn(`_color was empty or invalid (${JSON.stringify(value)})`);\n\t\t\tcolorContrast = createContrastColorPair({\n\t\t\t\tbackground: '#000',\n\t\t\t\tforeground: '#000',\n\t\t\t});\n\t}\n\n\tif (colorContrast.contrast < 7) {\n\t\ta11yHint(\n\t\t\t`[KolBadge] The contrast of ${colorContrast.contrast} (≥7, AAA) is to low, between the color pair ${colorContrast.background} and ${colorContrast.foreground}.`,\n\t\t);\n\t}\n\treturn {\n\t\tbackgroundColor: colorContrast.background,\n\t\tforegroundColor: colorContrast.foreground,\n\t};\n};\n"],"names":["parse","hsl","rgb","hex","rgbaConvert","watchValidator","Log","a11yHint"],"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,GAAGA,YAAK,CAAC,KAAK,EAAC;AAC1B;AACA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@@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";var common=require("./common-Cd2qH809.js"),componentNames=require("./component-names-D7MwtuB7.js");const searchFormElement=e=>{for(common.getExperimentalMode()&&(common.devHint("↓ Search form element start."),common.Log.debug(e));e instanceof HTMLElement&&"FORM"!==e.tagName&&e.tagName!==componentNames.KolFormTag.toUpperCase();){try{e=e.parentElement instanceof HTMLElement?e.parentElement:e.parentNode instanceof ShadowRoot?e.parentNode.host:null}catch(e){}common.getExperimentalMode()&&(common.Log.debug(e),common.devHint("↑ Search form element finished."))}return e},propagateResetEventToForm=(e={})=>{var o,t;const n=searchFormElement(e.form);if(n instanceof HTMLElement){const e=new Event("reset",{bubbles:!0,cancelable:!0});if("FORM"===n.tagName)common.setEventTarget(e,n),n.dispatchEvent(e);else if(n.tagName===componentNames.KolFormTag.toUpperCase()){common.setEventTarget(e,common.KoliBriDevHelper.querySelector("form",n));const m=n;"function"==typeof(null===(o=m._on)||void 0===o?void 0:o.onReset)&&(null===(t=m._on)||void 0===t||t.onReset(e))}}},propagateSubmitEventToForm=(e={})=>{const o=searchFormElement(e.form);if(o instanceof HTMLElement){const e=new SubmitEvent("submit",{bubbles:!0,cancelable:!0,submitter:o});if("FORM"===o.tagName)common.getExperimentalMode()&&!1===o.noValidate&&common.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 o.requestSubmit?o.requestSubmit():(common.setEventTarget(e,o),o.dispatchEvent(e))});else if(o.tagName===componentNames.KolFormTag.toUpperCase()){common.setEventTarget(e,common.KoliBriDevHelper.querySelector("form",o));const t=o;setTimeout(()=>{var o,n;"function"==typeof(null===(o=t._on)||void 0===o?void 0:o.onSubmit)&&(null===(n=t._on)||void 0===n||n.onSubmit(e))})}}};exports.propagateResetEventToForm=propagateResetEventToForm,exports.propagateSubmitEventToForm=propagateSubmitEventToForm;
4
+ "use strict";var componentNames=require("./component-names-D7MwtuB7.js"),common=require("./common-Cd2qH809.js");const searchFormElement=e=>{for(common.getExperimentalMode()&&(common.devHint("↓ Search form element start."),common.Log.debug(e));e instanceof HTMLElement&&"FORM"!==e.tagName&&e.tagName!==componentNames.KolFormTag.toUpperCase();){try{e=e.parentElement instanceof HTMLElement?e.parentElement:e.parentNode instanceof ShadowRoot?e.parentNode.host:null}catch(e){}common.getExperimentalMode()&&(common.Log.debug(e),common.devHint("↑ Search form element finished."))}return e},propagateResetEventToForm=(e={})=>{var o,t;const n=searchFormElement(e.form);if(n instanceof HTMLElement){const e=new Event("reset",{bubbles:!0,cancelable:!0});if("FORM"===n.tagName)common.setEventTarget(e,n),n.dispatchEvent(e);else if(n.tagName===componentNames.KolFormTag.toUpperCase()){common.setEventTarget(e,common.KoliBriDevHelper.querySelector("form",n));const m=n;"function"==typeof(null===(o=m._on)||void 0===o?void 0:o.onReset)&&(null===(t=m._on)||void 0===t||t.onReset(e))}}},propagateSubmitEventToForm=(e={})=>{const o=searchFormElement(e.form);if(o instanceof HTMLElement){const e=new SubmitEvent("submit",{bubbles:!0,cancelable:!0,submitter:o});if("FORM"===o.tagName)common.getExperimentalMode()&&!1===o.noValidate&&common.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 o.requestSubmit?o.requestSubmit():(common.setEventTarget(e,o),o.dispatchEvent(e))});else if(o.tagName===componentNames.KolFormTag.toUpperCase()){common.setEventTarget(e,common.KoliBriDevHelper.querySelector("form",o));const t=o;setTimeout(()=>{var o,n;"function"==typeof(null===(o=t._on)||void 0===o?void 0:o.onSubmit)&&(null===(n=t._on)||void 0===n||n.onSubmit(e))})}}};exports.propagateResetEventToForm=propagateResetEventToForm,exports.propagateSubmitEventToForm=propagateSubmitEventToForm;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"controller-BLXRNmNA.js","sources":["src/components/form/controller.ts"],"sourcesContent":["import { KolFormTag } from '../../core/component-names';\nimport type { FormProps } from '../../schema';\nimport { devHint, getExperimentalMode, KoliBriDevHelper, Log, setEventTarget } from '../../schema';\n\nconst searchFormElement = (el?: HTMLElement | ParentNode | null): HTMLElement | ParentNode | null | undefined => {\n\tif (getExperimentalMode()) {\n\t\tdevHint(`↓ Search form element start.`);\n\t\tLog.debug(el);\n\t}\n\twhile (el instanceof HTMLElement && el.tagName !== 'FORM' && el.tagName !== KolFormTag.toUpperCase()) {\n\t\ttry {\n\t\t\tif (el.parentElement instanceof HTMLElement) {\n\t\t\t\tel = el.parentElement;\n\t\t\t} else if (el.parentNode instanceof ShadowRoot) {\n\t\t\t\tel = el.parentNode.host;\n\t\t\t} else {\n\t\t\t\tel = null;\n\t\t\t}\n\t\t} catch (error) {\n\t\t\t/**\n\t\t\t * Try is needed for SSR.\n\t\t\t * - no HTMLElement is available\n\t\t\t * - no ShadowRoot is available\n\t\t\t */\n\t\t}\n\t\tif (getExperimentalMode()) {\n\t\t\tLog.debug(el);\n\t\t\tdevHint(`↑ Search form element finished.`);\n\t\t}\n\t}\n\treturn el;\n};\n\nexport const propagateResetEventToForm = (\n\toptions: {\n\t\tform?: HTMLElement | ParentNode | null;\n\t\tref?: HTMLElement;\n\t} = {},\n): void => {\n\tconst form = searchFormElement(options.form);\n\tif (form instanceof HTMLElement) {\n\t\tconst event = new Event('reset', {\n\t\t\tbubbles: true,\n\t\t\tcancelable: true,\n\t\t});\n\t\tif (form.tagName === 'FORM') {\n\t\t\tsetEventTarget(event, form);\n\t\t\tform.dispatchEvent(event);\n\t\t} else if (form.tagName === KolFormTag.toUpperCase()) {\n\t\t\tsetEventTarget(event, KoliBriDevHelper.querySelector('form', form) as HTMLFormElement);\n\t\t\tconst kolForm = form as FormProps;\n\t\t\tif (typeof kolForm._on?.onReset === 'function') {\n\t\t\t\ttypeof kolForm._on?.onReset(event);\n\t\t\t}\n\t\t}\n\t}\n};\n\nexport const propagateSubmitEventToForm = (\n\toptions: {\n\t\tform?: HTMLElement | ParentNode | null;\n\t\tref?: HTMLElement;\n\t} = {},\n): void => {\n\tconst form = searchFormElement(options.form);\n\tif (form instanceof HTMLElement) {\n\t\tconst event = new SubmitEvent('submit', {\n\t\t\tbubbles: true,\n\t\t\tcancelable: true,\n\t\t\tsubmitter: form,\n\t\t});\n\t\t/**\n\t\t * TODO: Wenn Formular-Action (nicht Ajax oder JS) verwendet wird,\n\t\t * dann müssen wir das Event an das HTMLFormElement innerhalb\n\t\t * der HTMLKolFormElements propagieren, wenn kein onSubmit\n\t\t * gesetzt wurde.\n\t\t *\n\t\t * TODO: Form-associated custom elements:\n\t\t * - https://web.dev/more-capable-form-controls/\n\t\t * - https://github.com/public-ui/kolibri/issues/946\n\t\t */\n\t\tif (form.tagName === 'FORM') {\n\t\t\tif (getExperimentalMode() && (form as HTMLFormElement).noValidate === false) {\n\t\t\t\tdevHint(`If you have not focusable or hidden form fields in your form, you should enable noValidate for your form.`, {\n\t\t\t\t\tforce: true,\n\t\t\t\t});\n\t\t\t\t// (form as HTMLFormElement).noValidate = true; do not make this implicit\n\t\t\t}\n\t\t\t// Use setTimeout to ensure onChange has been called first\n\t\t\tsetTimeout(() => {\n\t\t\t\t// See https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/requestSubmit\n\t\t\t\tif (typeof (form as HTMLFormElement).requestSubmit === 'function') {\n\t\t\t\t\t(form as HTMLFormElement).requestSubmit();\n\t\t\t\t} else {\n\t\t\t\t\tsetEventTarget(event, form);\n\t\t\t\t\tform.dispatchEvent(event);\n\t\t\t\t}\n\t\t\t});\n\t\t} else if (form.tagName === KolFormTag.toUpperCase()) {\n\t\t\tsetEventTarget(event, KoliBriDevHelper.querySelector('form', form) as HTMLFormElement);\n\t\t\tconst kolForm = form as FormProps;\n\t\t\t// Use setTimeout to ensure onChange has been called first\n\t\t\tsetTimeout(() => {\n\t\t\t\tif (typeof kolForm._on?.onSubmit === 'function') {\n\t\t\t\t\tkolForm._on?.onSubmit(event);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n};\n"],"names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AACN,oBAAAG,qBAAc,CAAC,KAAK,EAAE,IAAI,CAAC;AAC3B,oBAAA,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC;;AAE3B,aAAC,CAAC;;aACI,IAAI,IAAI,CAAC,OAAO,KAAKD,yBAAU,CAAC,WAAW,EAAE,EAAE;AACrD,YAAAC,qBAAc,CAAC,KAAK,EAAEC,uBAAgB,CAAC,aAAa,CAAC,MAAM,EAAE,IAAI,CAAoB,CAAC;YACtF,MAAM,OAAO,GAAG,IAAiB;YAEjC,UAAU,CAAC,MAAK;;AACf,gBAAA,IAAI,QAAO,CAAA,EAAA,GAAA,OAAO,CAAC,GAAG,MAAE,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAA,QAAQ,CAAA,KAAK,UAAU,EAAE;oBAChD,CAAA,EAAA,GAAA,OAAO,CAAC,GAAG,MAAA,IAAA,IAAA,EAAA,KAAA,MAAA,GAAA,MAAA,GAAA,EAAA,CAAE,QAAQ,CAAC,KAAK,CAAC;;AAE9B,aAAC,CAAC;;;AAGL;;;;;"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";var common=require("./common-Cd2qH809.js"),spellCheck=require("./spell-check-Bkq4G9L7.js"),suggestions=require("./suggestions-BjiW0xio.js"),controller=require("./controller-XCXRkWDG.js");const inputTextTypeOptions=["text","search","url","tel"],isInputTextTypePropType=e=>"string"==typeof e&&inputTextTypeOptions.includes(e),validateTypeInputText=(e,t)=>{common.watchValidator(e,"_type",isInputTextTypePropType,new Set(inputTextTypeOptions),t)};class InputTextEmailController extends controller.InputPasswordController{constructor(e,t,o){super(e,t,o),this.component=e}validateSuggestions(e){suggestions.validateSuggestions(this.component,e)}componentWillLoad(){super.componentWillLoad(),this.validateSuggestions(this.component._suggestions)}}class InputTextController extends InputTextEmailController{constructor(e,t,o){super(e,t,o),this.hasError=!1,this.component=e}validateSpellCheck(e){spellCheck.validateSpellCheck(this.component,e)}validateType(e){validateTypeInputText(this.component,e)}componentWillLoad(){super.componentWillLoad(),this.validateSpellCheck(this.component._spellCheck),this.validateType(this.component._type)}}exports.InputTextController=InputTextController,exports.InputTextEmailController=InputTextEmailController;
4
+ "use strict";var common=require("./common-Cd2qH809.js"),spellCheck=require("./spell-check-Bkq4G9L7.js"),suggestions=require("./suggestions-BjiW0xio.js"),controller=require("./controller-vLepTMZM.js");const inputTextTypeOptions=["text","search","url","tel"],isInputTextTypePropType=e=>"string"==typeof e&&inputTextTypeOptions.includes(e),validateTypeInputText=(e,t)=>{common.watchValidator(e,"_type",isInputTextTypePropType,new Set(inputTextTypeOptions),t)};class InputTextEmailController extends controller.InputPasswordController{constructor(e,t,o){super(e,t,o),this.component=e}validateSuggestions(e){suggestions.validateSuggestions(this.component,e)}componentWillLoad(){super.componentWillLoad(),this.validateSuggestions(this.component._suggestions)}}class InputTextController extends InputTextEmailController{constructor(e,t,o){super(e,t,o),this.hasError=!1,this.component=e}validateSpellCheck(e){spellCheck.validateSpellCheck(this.component,e)}validateType(e){validateTypeInputText(this.component,e)}componentWillLoad(){super.componentWillLoad(),this.validateSpellCheck(this.component._spellCheck),this.validateType(this.component._type)}}exports.InputTextController=InputTextController,exports.InputTextEmailController=InputTextEmailController;
@@ -1 +1 @@
1
- {"version":3,"file":"controller-B1A8W7b8.js","sources":["src/schema/props/type-input-text.ts","src/components/input-text/controller.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { watchValidator } from '../utils';\n\nexport const inputTextTypeOptions = ['text', 'search', 'url', 'tel'] as const;\nexport type InputTextTypePropType = (typeof inputTextTypeOptions)[number];\n\n/**\n * Defines the type of the input-text component.\n */\nexport type PropTypeInputText = {\n\ttype: InputTextTypePropType;\n};\n\nconst isInputTextTypePropType = (value: unknown): value is InputTextTypePropType => {\n\treturn typeof value === 'string' && inputTextTypeOptions.includes(value as InputTextTypePropType);\n};\n\nexport const validateTypeInputText = (component: Generic.Element.Component, value?: InputTextTypePropType): void => {\n\twatchValidator(component, '_type', isInputTextTypePropType, new Set(inputTextTypeOptions), value);\n};\n","import type {\n\tInputTextProps,\n\tInputTextTypePropType,\n\tInputTextWatches,\n\tPropLabelWithExpertSlot,\n\tPropSuggestions,\n\tSpellCheckPropType,\n\tSuggestionsPropType,\n} from '../../schema';\nimport { validateSpellCheck, validateSuggestions, validateTypeInputText } from '../../schema';\n\nimport { InputPasswordController } from '../input-password/controller';\n\nimport type { Generic } from 'adopted-style-sheets';\n\ntype RequiredProps = PropLabelWithExpertSlot;\ntype OptionalProps = {\n\tid: string;\n} & PropSuggestions;\ntype InputTextEmailProps = Generic.Element.Members<RequiredProps, OptionalProps>;\ntype InputTextEmailWatches = Generic.Element.Watchers<RequiredProps, OptionalProps>;\n\nexport class InputTextEmailController extends InputPasswordController implements InputTextEmailWatches {\n\tprotected readonly component: Generic.Element.Component & InputTextEmailProps;\n\n\tpublic constructor(component: Generic.Element.Component & InputTextEmailProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateSuggestions(value?: SuggestionsPropType): void {\n\t\tvalidateSuggestions(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateSuggestions(this.component._suggestions);\n\t}\n}\n\nexport class InputTextController extends InputTextEmailController implements InputTextWatches {\n\tprotected readonly component: Generic.Element.Component & InputTextProps;\n\n\tpublic hasError = false;\n\n\tpublic constructor(component: Generic.Element.Component & InputTextProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateSpellCheck(value?: SpellCheckPropType): void {\n\t\tvalidateSpellCheck(this.component, value);\n\t}\n\n\tpublic validateType(value?: InputTextTypePropType): void {\n\t\tvalidateTypeInputText(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateSpellCheck(this.component._spellCheck);\n\t\tthis.validateType(this.component._type);\n\t}\n}\n"],"names":["watchValidator","InputPasswordController","validateSuggestions","validateSpellCheck"],"mappings":";;;;;;;;;;AAIO,MAAM,oBAAoB,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,CAAU;AAU7E,MAAM,uBAAuB,GAAG,CAAC,KAAc,KAAoC;IAClF,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,oBAAoB,CAAC,QAAQ,CAAC,KAA8B,CAAC;AAClG,CAAC;AAEM,MAAM,qBAAqB,GAAG,CAAC,SAAoC,EAAE,KAA6B,KAAU;AAClH,IAAAA,qBAAc,CAAC,SAAS,EAAE,OAAO,EAAE,uBAAuB,EAAE,IAAI,GAAG,CAAC,oBAAoB,CAAC,EAAE,KAAK,CAAC;AAClG,CAAC;;ACEK,MAAO,wBAAyB,SAAQC,kCAAuB,CAAA;AAGpE,IAAA,WAAA,CAAmB,SAA0D,EAAE,IAAY,EAAE,IAAkB,EAAA;AAC9G,QAAA,KAAK,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC;AAC5B,QAAA,IAAI,CAAC,SAAS,GAAG,SAAS;;AAGpB,IAAA,mBAAmB,CAAC,KAA2B,EAAA;AACrD,QAAAC,+BAAmB,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC;;IAGpC,iBAAiB,GAAA;QACvB,KAAK,CAAC,iBAAiB,EAAE;QACzB,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC;;AAEtD;AAEK,MAAO,mBAAoB,SAAQ,wBAAwB,CAAA;AAKhE,IAAA,WAAA,CAAmB,SAAqD,EAAE,IAAY,EAAE,IAAkB,EAAA;AACzG,QAAA,KAAK,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,CAAC;AAHtB,QAAA,IAAQ,CAAA,QAAA,GAAG,KAAK;AAItB,QAAA,IAAI,CAAC,SAAS,GAAG,SAAS;;AAGpB,IAAA,kBAAkB,CAAC,KAA0B,EAAA;AACnD,QAAAC,6BAAkB,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC;;AAGnC,IAAA,YAAY,CAAC,KAA6B,EAAA;AAChD,QAAA,qBAAqB,CAAC,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC;;IAGtC,iBAAiB,GAAA;QACvB,KAAK,CAAC,iBAAiB,EAAE;QACzB,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,CAAC;QACnD,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC;;AAExC;;;;;"}
1
+ {"version":3,"file":"controller-BaayT2uj.js","sources":["src/schema/props/type-input-text.ts","src/components/input-text/controller.ts"],"sourcesContent":["import type { Generic } from 'adopted-style-sheets';\n\nimport { watchValidator } from '../utils';\n\nexport const inputTextTypeOptions = ['text', 'search', 'url', 'tel'] as const;\nexport type InputTextTypePropType = (typeof inputTextTypeOptions)[number];\n\n/**\n * Defines the type of the input-text component.\n */\nexport type PropTypeInputText = {\n\ttype: InputTextTypePropType;\n};\n\nconst isInputTextTypePropType = (value: unknown): value is InputTextTypePropType => {\n\treturn typeof value === 'string' && inputTextTypeOptions.includes(value as InputTextTypePropType);\n};\n\nexport const validateTypeInputText = (component: Generic.Element.Component, value?: InputTextTypePropType): void => {\n\twatchValidator(component, '_type', isInputTextTypePropType, new Set(inputTextTypeOptions), value);\n};\n","import type {\n\tInputTextProps,\n\tInputTextTypePropType,\n\tInputTextWatches,\n\tPropLabelWithExpertSlot,\n\tPropSuggestions,\n\tSpellCheckPropType,\n\tSuggestionsPropType,\n} from '../../schema';\nimport { validateSpellCheck, validateSuggestions, validateTypeInputText } from '../../schema';\n\nimport { InputPasswordController } from '../input-password/controller';\n\nimport type { Generic } from 'adopted-style-sheets';\n\ntype RequiredProps = PropLabelWithExpertSlot;\ntype OptionalProps = {\n\tid: string;\n} & PropSuggestions;\ntype InputTextEmailProps = Generic.Element.Members<RequiredProps, OptionalProps>;\ntype InputTextEmailWatches = Generic.Element.Watchers<RequiredProps, OptionalProps>;\n\nexport class InputTextEmailController extends InputPasswordController implements InputTextEmailWatches {\n\tprotected readonly component: Generic.Element.Component & InputTextEmailProps;\n\n\tpublic constructor(component: Generic.Element.Component & InputTextEmailProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateSuggestions(value?: SuggestionsPropType): void {\n\t\tvalidateSuggestions(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateSuggestions(this.component._suggestions);\n\t}\n}\n\nexport class InputTextController extends InputTextEmailController implements InputTextWatches {\n\tprotected readonly component: Generic.Element.Component & InputTextProps;\n\n\tpublic hasError = false;\n\n\tpublic constructor(component: Generic.Element.Component & InputTextProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateSpellCheck(value?: SpellCheckPropType): void {\n\t\tvalidateSpellCheck(this.component, value);\n\t}\n\n\tpublic validateType(value?: InputTextTypePropType): void {\n\t\tvalidateTypeInputText(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateSpellCheck(this.component._spellCheck);\n\t\tthis.validateType(this.component._type);\n\t}\n}\n"],"names":["watchValidator","InputPasswordController","validateSuggestions","validateSpellCheck"],"mappings":";;;;;;;;;;AAIO,MAAM,oBAAoB,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,CAAU;AAU7E,MAAM,uBAAuB,GAAG,CAAC,KAAc,KAAoC;IAClF,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,oBAAoB,CAAC,QAAQ,CAAC,KAA8B,CAAC;AAClG,CAAC;AAEM,MAAM,qBAAqB,GAAG,CAAC,SAAoC,EAAE,KAA6B,KAAU;AAClH,IAAAA,qBAAc,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,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";var common=require("./common-Cd2qH809.js"),label=require("./label-Nicf9N_T.js"),required=require("./required-CXU7vdyH.js"),FormFieldStateWrapper=require("./FormFieldStateWrapper-D_DZ7bhJ.js"),orientation=require("./orientation-BGODo_Ua.js");const validateInputSelectOptions=t=>{if("object"==typeof t&&null!==t){if("string"==typeof t.label&&t.label.length>0)return t.disabled=!0===t.disabled,t.label=`${t.label}`.trim(),!1===label.hasEnoughReadableChars(t.label,3)&&!1===label.containsOnlyNumbers(t.label)&&common.a11yHint(`A differing Aria-Label (${t.label}) is inaccessible. A differing Aria-Label should consist of at least three readable characters.`),!Array.isArray(t.options)||void 0===t.options.find(t=>!1===validateInputSelectOptions(t));if("number"==typeof t.label)return!0}return!1},validateOptions=(t,e,o={})=>{common.watchJsonArrayString(t,"_options",t=>"object"==typeof t&&null!==t&&"string"==typeof t.label&&t.label.length>0,e,void 0,o)},validateOptionsWithOptgroup=(t,e,o={})=>{common.watchJsonArrayString(t,"_options",validateInputSelectOptions,e,void 0,o)},fillKeyOptionMap=(t,e,o="")=>{e.forEach((e,i)=>{const a=`${o}-${i}`;"object"==typeof e&&null!==e&&"string"==typeof e.label&&e.label.length>0&&(Array.isArray(e.options)?fillKeyOptionMap(t,e.options,a):t.set(a,e))})};class InputCheckboxRadioController extends FormFieldStateWrapper.InputController{constructor(t,e,o){super(t,e,o),this.component=t}validateRequired(t){required.validateRequired(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateRequired(this.component._required)}}class InputRadioController extends InputCheckboxRadioController{constructor(t,e,o){super(t,e,o),this.keyOptionMap=new Map,this.getOptionByKey=t=>this.keyOptionMap.get(t),this.afterPatchOptions=(t,e,o,i)=>{"_value"===i&&this.setFormAssociatedValue(t)},this.beforePatchOptions=(t,e)=>{const o=e.has("_options")?e.get("_options"):this.component.state._options;if(Array.isArray(o)&&o.length>0){this.keyOptionMap.clear();const t=o.map(t=>{var e;return"object"==typeof t&&null!==t&&"string"==typeof t.label?Object.assign(Object.assign({},t),{value:null!==(e=t.value)&&void 0!==e?e:t.label}):t});fillKeyOptionMap(this.keyOptionMap,t)}},this.component=t}validateOrientation(t){orientation.validateOrientation(this.component,t,"vertical")}validateOptions(t){validateOptions(this.component,t,{hooks:{afterPatch:this.afterPatchOptions,beforePatch:this.beforePatchOptions}})}validateValue(t){t=Array.isArray(t)?t[0]:t,common.setState(this.component,"_value",t,{afterPatch:this.afterPatchOptions,beforePatch:this.beforePatchOptions})}componentWillLoad(){super.componentWillLoad(),this.validateOrientation(this.component._orientation),this.validateOptions(this.component._options),this.validateValue(this.component._value)}}exports.InputCheckboxRadioController=InputCheckboxRadioController,exports.InputRadioController=InputRadioController,exports.fillKeyOptionMap=fillKeyOptionMap,exports.validateOptions=validateOptions,exports.validateOptionsWithOptgroup=validateOptionsWithOptgroup;
4
+ "use strict";var common=require("./common-Cd2qH809.js"),label=require("./label-Nicf9N_T.js"),required=require("./required-CXU7vdyH.js"),orientation=require("./orientation-BGODo_Ua.js"),FormFieldStateWrapper=require("./FormFieldStateWrapper-BD3UHnBj.js");const validateInputSelectOptions=t=>{if("object"==typeof t&&null!==t){if("string"==typeof t.label&&t.label.length>0)return t.disabled=!0===t.disabled,t.label=`${t.label}`.trim(),!1===label.hasEnoughReadableChars(t.label,3)&&!1===label.containsOnlyNumbers(t.label)&&common.a11yHint(`A differing Aria-Label (${t.label}) is inaccessible. A differing Aria-Label should consist of at least three readable characters.`),!Array.isArray(t.options)||void 0===t.options.find(t=>!1===validateInputSelectOptions(t));if("number"==typeof t.label)return!0}return!1},validateOptions=(t,e,o={})=>{common.watchJsonArrayString(t,"_options",t=>"object"==typeof t&&null!==t&&"string"==typeof t.label&&t.label.length>0,e,void 0,o)},validateOptionsWithOptgroup=(t,e,o={})=>{common.watchJsonArrayString(t,"_options",validateInputSelectOptions,e,void 0,o)},fillKeyOptionMap=(t,e,o="")=>{e.forEach((e,i)=>{const a=`${o}-${i}`;"object"==typeof e&&null!==e&&"string"==typeof e.label&&e.label.length>0&&(Array.isArray(e.options)?fillKeyOptionMap(t,e.options,a):t.set(a,e))})};class InputCheckboxRadioController extends FormFieldStateWrapper.InputController{constructor(t,e,o){super(t,e,o),this.component=t}validateRequired(t){required.validateRequired(this.component,t)}componentWillLoad(){super.componentWillLoad(),this.validateRequired(this.component._required)}}class InputRadioController extends InputCheckboxRadioController{constructor(t,e,o){super(t,e,o),this.keyOptionMap=new Map,this.getOptionByKey=t=>this.keyOptionMap.get(t),this.afterPatchOptions=(t,e,o,i)=>{"_value"===i&&this.setFormAssociatedValue(t)},this.beforePatchOptions=(t,e)=>{const o=e.has("_options")?e.get("_options"):this.component.state._options;if(Array.isArray(o)&&o.length>0){this.keyOptionMap.clear();const t=o.map(t=>{var e;return"object"==typeof t&&null!==t&&"string"==typeof t.label?Object.assign(Object.assign({},t),{value:null!==(e=t.value)&&void 0!==e?e:t.label}):t});fillKeyOptionMap(this.keyOptionMap,t)}},this.component=t}validateOrientation(t){orientation.validateOrientation(this.component,t,"vertical")}validateOptions(t){validateOptions(this.component,t,{hooks:{afterPatch:this.afterPatchOptions,beforePatch:this.beforePatchOptions}})}validateValue(t){t=Array.isArray(t)?t[0]:t,common.setState(this.component,"_value",t,{afterPatch:this.afterPatchOptions,beforePatch:this.beforePatchOptions})}componentWillLoad(){super.componentWillLoad(),this.validateOrientation(this.component._orientation),this.validateOptions(this.component._options),this.validateValue(this.component._value)}}exports.InputCheckboxRadioController=InputCheckboxRadioController,exports.InputRadioController=InputRadioController,exports.fillKeyOptionMap=fillKeyOptionMap,exports.validateOptions=validateOptions,exports.validateOptionsWithOptgroup=validateOptionsWithOptgroup;
@@ -1 +1 @@
1
- {"version":3,"file":"controller-C4EOo10w.js","sources":["src/schema/validators/options.ts","src/schema/props/options.ts","src/components/input-radio/controller.ts"],"sourcesContent":["import { containsOnlyNumbers, hasEnoughReadableChars } from '../props';\nimport { a11yHint } from '../utils';\n\nimport type { Optgroup, SelectOption } from '../types';\nexport const validateInputSelectOptions = <T>(option: SelectOption<T>): boolean => {\n\tif (typeof option === 'object' && option !== null) {\n\t\tif (typeof option.label === 'string' && option.label.length > 0) {\n\t\t\toption.disabled = option.disabled === true;\n\t\t\toption.label = `${option.label}`.trim();\n\t\t\tif (hasEnoughReadableChars(option.label, 3) === false && containsOnlyNumbers(option.label) === false) {\n\t\t\t\ta11yHint(`A differing Aria-Label (${option.label}) is inaccessible. A differing Aria-Label should consist of at least three readable characters.`);\n\t\t\t}\n\t\t\tif (Array.isArray((option as Optgroup<T>).options)) {\n\t\t\t\treturn (\n\t\t\t\t\t(option as Optgroup<T>).options.find((item) => {\n\t\t\t\t\t\treturn validateInputSelectOptions(item) === false;\n\t\t\t\t\t}) === undefined\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn true;\n\t\t} else if (typeof option.label === 'number') {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { RadioOption, Optgroup, Option, StencilUnknown } from '../types';\nimport type { Stringified } from '../types/common';\nimport type { WatchOptions } from '../utils';\nimport { watchJsonArrayString } from '../utils';\nimport { validateInputSelectOptions } from '../validators';\n\n/* types */\n\nexport type OptionsPropType = Stringified<Option<StencilUnknown>[]>;\nexport type OptionsWithOptgroupPropType = Stringified<(Option<StencilUnknown> | Optgroup<StencilUnknown>)[]>;\nexport type RadioOptionsPropType = Stringified<RadioOption<StencilUnknown>[]>;\n\n/**\n * Options the user can choose from.\n */\nexport type PropOptions = {\n\toptions: OptionsPropType;\n};\n\nexport type PropRadioOptions = {\n\toptions: RadioOptionsPropType;\n};\n\n/**\n * Options the user can choose from, also supporting Optgroup.\n */\nexport type PropOptionsWithOptgroup = {\n\toptions: OptionsWithOptgroupPropType;\n};\n\n/* validators */\n\nexport const validateOptions = (component: Generic.Element.Component, value: OptionsPropType | undefined, options: WatchOptions = {}): void => {\n\twatchJsonArrayString(\n\t\tcomponent,\n\t\t'_options',\n\t\t(item: Option<StencilUnknown>) => typeof item === 'object' && item !== null && typeof item.label === 'string' && item.label.length > 0,\n\t\tvalue,\n\t\tundefined,\n\t\toptions,\n\t);\n};\n\nexport const validateOptionsWithOptgroup = (\n\tcomponent: Generic.Element.Component,\n\tvalue: OptionsWithOptgroupPropType | undefined,\n\toptions: WatchOptions = {},\n) => {\n\twatchJsonArrayString(component, '_options', validateInputSelectOptions, value, undefined, options);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type {\n\tInputRadioProps,\n\tInputRadioWatches,\n\tOptgroup,\n\tOptionsPropType,\n\tPropLabelWithExpertSlot,\n\tRadioOption,\n\tRequiredPropType,\n\tSelectOption,\n\tStencilUnknown,\n} from '../../schema';\nimport { setState, validateOptions, validateRequired } from '../../schema';\n\nimport { InputController } from '../@deprecated/input/controller';\nimport type { OrientationPropType } from '../../schema/props/orientation';\nimport { validateOrientation } from '../../schema/props/orientation';\n\nexport const fillKeyOptionMap = <T>(keyOptionMap: Map<string, RadioOption<T>>, options: SelectOption<T>[], preKey = ''): void => {\n\toptions.forEach((option, index) => {\n\t\tconst key = `${preKey}-${index}`;\n\t\tif (typeof option === 'object' && option !== null && typeof option.label === 'string' && option.label.length > 0) {\n\t\t\tif (Array.isArray((option as Optgroup<T>).options)) {\n\t\t\t\tfillKeyOptionMap(keyOptionMap, (option as Optgroup<T>).options, key);\n\t\t\t} else {\n\t\t\t\tkeyOptionMap.set(key, option as RadioOption<T>);\n\t\t\t}\n\t\t}\n\t});\n};\n\ntype RequiredProps = PropLabelWithExpertSlot;\ntype OptionalProps = {\n\trequired: boolean;\n};\ntype InputCheckboxRadioProps = Generic.Element.Members<RequiredProps, OptionalProps>;\ntype InputCheckboxRadioWatches = Generic.Element.Watchers<RequiredProps, OptionalProps>;\n\nexport class InputCheckboxRadioController extends InputController implements InputCheckboxRadioWatches {\n\tprotected readonly component: Generic.Element.Component & InputCheckboxRadioProps;\n\n\tpublic constructor(component: Generic.Element.Component & InputCheckboxRadioProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateRequired(value?: RequiredPropType): void {\n\t\tvalidateRequired(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateRequired(this.component._required);\n\t}\n}\n\nexport class InputRadioController extends InputCheckboxRadioController implements InputRadioWatches {\n\tprotected readonly component: Generic.Element.Component & InputRadioProps;\n\tprivate readonly keyOptionMap = new Map<string, RadioOption<StencilUnknown>>();\n\n\tpublic constructor(component: Generic.Element.Component & InputRadioProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic readonly getOptionByKey = (key: string): RadioOption<StencilUnknown> | undefined => this.keyOptionMap.get(key);\n\n\tprotected readonly afterPatchOptions = (value: unknown, _state: Record<string, unknown>, _component: Generic.Element.Component, key: string): void => {\n\t\tif (key === '_value') {\n\t\t\tthis.setFormAssociatedValue(value as string);\n\t\t}\n\t};\n\n\tpublic validateOrientation(value?: OrientationPropType): void {\n\t\tvalidateOrientation(this.component, value, 'vertical');\n\t}\n\n\tprotected readonly beforePatchOptions = (_value: unknown, nextState: Map<string, unknown>): void => {\n\t\tconst options = nextState.has('_options') ? nextState.get('_options') : this.component.state._options;\n\t\tif (Array.isArray(options) && options.length > 0) {\n\t\t\tthis.keyOptionMap.clear();\n\n\t\t\tconst normalizedOptions = options.map((option: RadioOption<StencilUnknown> | string) => {\n\t\t\t\tif (typeof option === 'object' && option !== null && typeof option.label === 'string') {\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...option,\n\t\t\t\t\t\tvalue: option.value ?? option.label,\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\treturn option;\n\t\t\t});\n\n\t\t\tfillKeyOptionMap(this.keyOptionMap, normalizedOptions as SelectOption<StencilUnknown>[]);\n\t\t}\n\t};\n\n\tpublic validateOptions(value?: OptionsPropType): void {\n\t\tvalidateOptions(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: this.afterPatchOptions,\n\t\t\t\tbeforePatch: this.beforePatchOptions,\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic validateValue(value?: StencilUnknown): void {\n\t\tvalue = Array.isArray(value) ? (value[0] as StencilUnknown) : value;\n\t\tsetState(this.component, '_value', value, {\n\t\t\tafterPatch: this.afterPatchOptions,\n\t\t\tbeforePatch: this.beforePatchOptions,\n\t\t});\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateOrientation(this.component._orientation);\n\t\tthis.validateOptions(this.component._options);\n\t\tthis.validateValue(this.component._value);\n\t}\n}\n"],"names":["hasEnoughReadableChars","containsOnlyNumbers","a11yHint","watchJsonArrayString","InputController","validateRequired","validateOrientation","setState"],"mappings":";;;;;;;;;;;AAIO,MAAM,0BAA0B,GAAG,CAAI,MAAuB,KAAa;IACjF,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,IAAI,EAAE;AAClD,QAAA,IAAI,OAAO,MAAM,CAAC,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;YAChE,MAAM,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,KAAK,IAAI;YAC1C,MAAM,CAAC,KAAK,GAAG,CAAG,EAAA,MAAM,CAAC,KAAK,CAAE,CAAA,CAAC,IAAI,EAAE;YACvC,IAAIA,4BAAsB,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,KAAK,IAAIC,yBAAmB,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,KAAK,EAAE;AACrG,gBAAAC,eAAQ,CAAC,CAA2B,wBAAA,EAAA,MAAM,CAAC,KAAK,CAAA,+FAAA,CAAiG,CAAC;;YAEnJ,IAAI,KAAK,CAAC,OAAO,CAAE,MAAsB,CAAC,OAAO,CAAC,EAAE;gB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AAC,kBAAkB;AACpC,aAAA;AACD,SAAA,CAAC;;AAGI,IAAA,aAAa,CAAC,KAAsB,EAAA;AAC1C,QAAA,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,GAAI,KAAK,CAAC,CAAC,CAAoB,GAAG,KAAK;QACnEC,eAAQ,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE;YACzC,UAAU,EAAE,IAAI,CAAC,iBAAiB;YAClC,WAAW,EAAE,IAAI,CAAC,kBAAkB;AACpC,SAAA,CAAC;;IAGI,iBAAiB,GAAA;QACvB,KAAK,CAAC,iBAAiB,EAAE;QACzB,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC;QACrD,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC;QAC7C,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC;;AAE1C;;;;;;;;"}
1
+ {"version":3,"file":"controller-CuVgK1nk.js","sources":["src/schema/validators/options.ts","src/schema/props/options.ts","src/components/input-radio/controller.ts"],"sourcesContent":["import { containsOnlyNumbers, hasEnoughReadableChars } from '../props';\nimport { a11yHint } from '../utils';\n\nimport type { Optgroup, SelectOption } from '../types';\nexport const validateInputSelectOptions = <T>(option: SelectOption<T>): boolean => {\n\tif (typeof option === 'object' && option !== null) {\n\t\tif (typeof option.label === 'string' && option.label.length > 0) {\n\t\t\toption.disabled = option.disabled === true;\n\t\t\toption.label = `${option.label}`.trim();\n\t\t\tif (hasEnoughReadableChars(option.label, 3) === false && containsOnlyNumbers(option.label) === false) {\n\t\t\t\ta11yHint(`A differing Aria-Label (${option.label}) is inaccessible. A differing Aria-Label should consist of at least three readable characters.`);\n\t\t\t}\n\t\t\tif (Array.isArray((option as Optgroup<T>).options)) {\n\t\t\t\treturn (\n\t\t\t\t\t(option as Optgroup<T>).options.find((item) => {\n\t\t\t\t\t\treturn validateInputSelectOptions(item) === false;\n\t\t\t\t\t}) === undefined\n\t\t\t\t);\n\t\t\t}\n\t\t\treturn true;\n\t\t} else if (typeof option.label === 'number') {\n\t\t\treturn true;\n\t\t}\n\t}\n\treturn false;\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type { Optgroup, Option, RadioOption, StencilUnknown } from '../types';\nimport type { Stringified } from '../types/common';\nimport type { WatchOptions } from '../utils';\nimport { watchJsonArrayString } from '../utils';\nimport { validateInputSelectOptions } from '../validators';\n\n/* types */\n\nexport type OptionsPropType = Stringified<Option<StencilUnknown>[]>;\nexport type OptionsWithOptgroupPropType = Stringified<(Option<StencilUnknown> | Optgroup<StencilUnknown>)[]>;\nexport type RadioOptionsPropType = Stringified<RadioOption<StencilUnknown>[]>;\n\n/**\n * Options the user can choose from.\n */\nexport type PropOptions = {\n\toptions: OptionsPropType;\n};\n\nexport type PropRadioOptions = {\n\toptions: RadioOptionsPropType;\n};\n\n/**\n * Options the user can choose from, also supporting Optgroup.\n */\nexport type PropOptionsWithOptgroup = {\n\toptions: OptionsWithOptgroupPropType;\n};\n\n/* validators */\n\nexport const validateOptions = (component: Generic.Element.Component, value: OptionsPropType | undefined, options: WatchOptions = {}): void => {\n\twatchJsonArrayString(\n\t\tcomponent,\n\t\t'_options',\n\t\t(item: Option<StencilUnknown>) => typeof item === 'object' && item !== null && typeof item.label === 'string' && item.label.length > 0,\n\t\tvalue,\n\t\tundefined,\n\t\toptions,\n\t);\n};\n\nexport const validateOptionsWithOptgroup = (\n\tcomponent: Generic.Element.Component,\n\tvalue: OptionsWithOptgroupPropType | undefined,\n\toptions: WatchOptions = {},\n) => {\n\twatchJsonArrayString(component, '_options', validateInputSelectOptions, value, undefined, options);\n};\n","import type { Generic } from 'adopted-style-sheets';\n\nimport type {\n\tInputRadioProps,\n\tInputRadioWatches,\n\tOptgroup,\n\tOptionsPropType,\n\tPropLabelWithExpertSlot,\n\tRadioOption,\n\tRequiredPropType,\n\tSelectOption,\n\tStencilUnknown,\n} from '../../schema';\nimport { setState, validateOptions, validateRequired } from '../../schema';\n\nimport type { OrientationPropType } from '../../schema/props/orientation';\nimport { validateOrientation } from '../../schema/props/orientation';\nimport { InputController } from '../@deprecated/input/controller';\n\nexport const fillKeyOptionMap = <T>(keyOptionMap: Map<string, RadioOption<T>>, options: SelectOption<T>[], preKey = ''): void => {\n\toptions.forEach((option, index) => {\n\t\tconst key = `${preKey}-${index}`;\n\t\tif (typeof option === 'object' && option !== null && typeof option.label === 'string' && option.label.length > 0) {\n\t\t\tif (Array.isArray((option as Optgroup<T>).options)) {\n\t\t\t\tfillKeyOptionMap(keyOptionMap, (option as Optgroup<T>).options, key);\n\t\t\t} else {\n\t\t\t\tkeyOptionMap.set(key, option as RadioOption<T>);\n\t\t\t}\n\t\t}\n\t});\n};\n\ntype RequiredProps = PropLabelWithExpertSlot;\ntype OptionalProps = {\n\trequired: boolean;\n};\ntype InputCheckboxRadioProps = Generic.Element.Members<RequiredProps, OptionalProps>;\ntype InputCheckboxRadioWatches = Generic.Element.Watchers<RequiredProps, OptionalProps>;\n\nexport class InputCheckboxRadioController extends InputController implements InputCheckboxRadioWatches {\n\tprotected readonly component: Generic.Element.Component & InputCheckboxRadioProps;\n\n\tpublic constructor(component: Generic.Element.Component & InputCheckboxRadioProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic validateRequired(value?: RequiredPropType): void {\n\t\tvalidateRequired(this.component, value);\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateRequired(this.component._required);\n\t}\n}\n\nexport class InputRadioController extends InputCheckboxRadioController implements InputRadioWatches {\n\tprotected readonly component: Generic.Element.Component & InputRadioProps;\n\tprivate readonly keyOptionMap = new Map<string, RadioOption<StencilUnknown>>();\n\n\tpublic constructor(component: Generic.Element.Component & InputRadioProps, name: string, host?: HTMLElement) {\n\t\tsuper(component, name, host);\n\t\tthis.component = component;\n\t}\n\n\tpublic readonly getOptionByKey = (key: string): RadioOption<StencilUnknown> | undefined => this.keyOptionMap.get(key);\n\n\tprotected readonly afterPatchOptions = (value: unknown, _state: Record<string, unknown>, _component: Generic.Element.Component, key: string): void => {\n\t\tif (key === '_value') {\n\t\t\tthis.setFormAssociatedValue(value as string);\n\t\t}\n\t};\n\n\tpublic validateOrientation(value?: OrientationPropType): void {\n\t\tvalidateOrientation(this.component, value, 'vertical');\n\t}\n\n\tprotected readonly beforePatchOptions = (_value: unknown, nextState: Map<string, unknown>): void => {\n\t\tconst options = nextState.has('_options') ? nextState.get('_options') : this.component.state._options;\n\t\tif (Array.isArray(options) && options.length > 0) {\n\t\t\tthis.keyOptionMap.clear();\n\n\t\t\tconst normalizedOptions = options.map((option: RadioOption<StencilUnknown> | string) => {\n\t\t\t\tif (typeof option === 'object' && option !== null && typeof option.label === 'string') {\n\t\t\t\t\treturn {\n\t\t\t\t\t\t...option,\n\t\t\t\t\t\tvalue: option.value ?? option.label,\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\treturn option;\n\t\t\t});\n\n\t\t\tfillKeyOptionMap(this.keyOptionMap, normalizedOptions as SelectOption<StencilUnknown>[]);\n\t\t}\n\t};\n\n\tpublic validateOptions(value?: OptionsPropType): void {\n\t\tvalidateOptions(this.component, value, {\n\t\t\thooks: {\n\t\t\t\tafterPatch: this.afterPatchOptions,\n\t\t\t\tbeforePatch: this.beforePatchOptions,\n\t\t\t},\n\t\t});\n\t}\n\n\tpublic validateValue(value?: StencilUnknown): void {\n\t\tvalue = Array.isArray(value) ? (value[0] as StencilUnknown) : value;\n\t\tsetState(this.component, '_value', value, {\n\t\t\tafterPatch: this.afterPatchOptions,\n\t\t\tbeforePatch: this.beforePatchOptions,\n\t\t});\n\t}\n\n\tpublic componentWillLoad(): void {\n\t\tsuper.componentWillLoad();\n\t\tthis.validateOrientation(this.component._orientation);\n\t\tthis.validateOptions(this.component._options);\n\t\tthis.validateValue(this.component._value);\n\t}\n}\n"],"names":["hasEnoughReadableChars","containsOnlyNumbers","a11yHint","watchJsonArrayString","InputController","validateRequired","validateOrientation","setState"],"mappings":";;;;;;;;;;;AAIO,MAAM,0BAA0B,GAAG,CAAI,MAAuB,KAAa;IACjF,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,IAAI,EAAE;AAClD,QAAA,IAAI,OAAO,MAAM,CAAC,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE;YAChE,MAAM,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,KAAK,IAAI;YAC1C,MAAM,CAAC,KAAK,GAAG,CAAG,EAAA,MAAM,CAAC,KAAK,CAAE,CAAA,CAAC,IAAI,EAAE;YACvC,IAAIA,4BAAsB,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,KAAK,KAAK,IAAIC,yBAAmB,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,KAAK,EAAE;AACrG,gBAAAC,eAAQ,CAAC,CAA2B,wBAAA,EAAA,MAAM,CAAC,KAAK,CAAA,+FAAA,CAAiG,CAAC;;YAEnJ,IAAI,KAAK,CAAC,OAAO,CAAE,MAAsB,CAAC,OAAO,CAAC,EAAE;gBACnD,QACE,MAAsB,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,IAAI,KAAI;AAC7C,oBAAA,OAAO,0BAA0B,CAAC,IAAI,CAAC,KAAK,KAAK;AAClD,iBAAC,CAAC,KAAK,SAAS;;AAGlB,YAAA,OAAO,IAAI;;AACL,aAAA,IAAI,OAAO,MAAM,CAAC,KAAK,KAAK,QAAQ,EAAE;AAC5C,YAAA,OAAO,IAAI;;;AAGb,IAAA,OAAO,KAAK;AACb,CAAC;;ACSM,MAAM,eAAe,GAAG,CAAC,SAAoC,EAAE,KAAkC,EAAE,OAAA,GAAwB,EAAE,KAAU;AAC7I,IAAAC,2BAAoB,CACnB,SAAS,EACT,UAAU,EACV,CAAC,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AC,SAAS,CAAC,YAAY,CAAC;QACrD,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC;QAC7C,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC;;AAE1C;;;;;;;;"}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";var index=require("./index-CeweGYAX.js"),tslib_es6=require("./tslib.es6-7DbU_BSw.js"),clsx=require("./clsx-CkZlkaek.js"),common=require("./common-Cd2qH809.js"),FormFieldStateWrapper=require("./FormFieldStateWrapper-D_DZ7bhJ.js"),componentNames=require("./component-names-D7MwtuB7.js"),Icon=require("./Icon-DiNO3cEA.js"),InternalUnderlinedBadgeText=require("./InternalUnderlinedBadgeText-CYAV_r9-.js"),isObject=require("./isObject-DMA85Fq4.js"),icons=require("./icons-CvKgcv20.js");const InputAdornment=(n,e)=>{var{position:t="start",class:o}=n,s=tslib_es6.__rest(n,["position","class"]);const i="kol-input-container__adornment",r=`${i}--${t}`;return index.h("div",Object.assign({class:clsx.clsx(i,r,o)},s),e)};function hasItems(n){return!!n&&(Array.isArray(n)?n.length>0:Boolean(n))}const Container=(n,e)=>{var{class:t}=n,o=tslib_es6.__rest(n,["class"]);return index.h("div",Object.assign({class:clsx.clsx("kol-input-container__container",t)},o),e)},KolInputContainerFc=(n,e)=>{const{class:t,startAdornment:o,endAdornment:s,disabled:i,msg:r,touched:c,containerProps:a,startAdornmentProps:l,endAdornmentProps:d}=n,u=tslib_es6.__rest(n,["class","startAdornment","endAdornment","disabled","msg","touched","containerProps","startAdornmentProps","endAdornmentProps"]),p=FormFieldStateWrapper.checkHasMsg(r,c),m="string"==typeof r?"error":null==r?void 0:r._type,b={"kol-input-container--disabled":i,[`kol-input-container--${m||"error"}`]:p},h=Object.assign({class:clsx.clsx("kol-input-container",b,t)},u);return hasItems(o)||hasItems(s)?index.h("div",Object.assign({},h),index.h(InputAdornment,Object.assign({},l,{position:"start"}),o),index.h(Container,Object.assign({},a),e),index.h(InputAdornment,Object.assign({},d,{position:"end"}),s)):index.h("div",Object.assign({},h),index.h(Container,Object.assign({},a),e))},KolButtonFc=n=>{const{label:e,icons:t,hideLabel:o,disabled:s,onClick:i}=n,r=tslib_es6.__rest(n,["label","icons","hideLabel","disabled","onClick"]);return index.h(componentNames.KolButtonWcTag,Object.assign({_label:e,_disabled:s,_icons:t,_hideLabel:o,_on:{onClick:i}},r))},KolIconButtonFc=n=>{const{componentName:e="button",label:t,icon:o,onClick:s}=n,i=tslib_es6.__rest(n,["componentName","label","icon","onClick"]),r="button"===e?KolButtonFc:Icon.KolIconFc;return index.h(r,Object.assign({label:t||"",hideLabel:!0,icons:`codicon codicon-${o}`,onClick:s},i))};function getInputContainerProps(n){let e,t;return"_icons"in n&&(e=n._icons),"_smartButton"in n&&(t=n._smartButton),{icons:e,smartButton:t,disabled:n._disabled,msg:n._msg,touched:n._touched}}const InputContainerStateWrapperFc=({state:n,endAdornment:e},t)=>{const{icons:o,smartButton:s,disabled:i,msg:r,touched:c}=getInputContainerProps(n);let a=null==o?void 0:o.left;InternalUnderlinedBadgeText.isString(a)&&(a={icon:a});let l=null==o?void 0:o.right;InternalUnderlinedBadgeText.isString(l)&&(l={icon:l});const d=[],u=[];return e&&(Array.isArray(e)?u.push(...e):u.push(e)),a&&d.push(index.h(KolIconButtonFc,Object.assign({componentName:"icon",class:"kol-input-container__icon"},isObject.isObject(a)?a:{}))),isObject.isObject(s)&&u.push(index.h(KolIconButtonFc,Object.assign({componentName:"button",class:"kol-input-container__smart-button"},s,{hideLabel:!0,disabled:i}))),l&&u.push(index.h(KolIconButtonFc,Object.assign({componentName:"icon",class:"kol-input-container__icon"},isObject.isObject(l)?l:{}))),index.h(KolInputContainerFc,{disabled:i,msg:r,touched:c,startAdornment:d,endAdornment:u},t)};class InputIconController extends FormFieldStateWrapper.InputController{constructor(n,e,t){super(n,e,t),this.numberStringRegex=/^\d+(\.\d+)?$/,this.parseToNumber=n=>"number"==typeof n?isNaN(n)?null:n:this.isNumberString(n)?parseFloat(n):null,this.validateNumber=(n,e)=>common.watchValidator(this.component,n,n=>null==n||"number"==typeof n||"string"==typeof n&&this.numberStringRegex.test(n),new Set(["number","NumberString"]),e,{hooks:{beforePatch:(e,t)=>{(null==t?void 0:t.has(n))&&(null==t||t.set(n,this.parseToNumber(e)))}}}),this.component=n}validateIcons(n){icons.validateIcons(this.component,n)}isNumberString(n){return"string"==typeof n&&this.numberStringRegex.test(n)}componentWillLoad(){super.componentWillLoad(),this.validateIcons(this.component._icons)}}exports.InputContainerStateWrapperFc=InputContainerStateWrapperFc,exports.InputIconController=InputIconController,exports.KolIconButtonFc=KolIconButtonFc;
4
+ "use strict";var index=require("./index-DKNg2r8I.js"),tslib_es6=require("./tslib.es6-7DbU_BSw.js"),componentNames=require("./component-names-D7MwtuB7.js"),Icon=require("./Icon-CLiVsvC6.js"),clsx=require("./clsx-CkZlkaek.js"),common=require("./common-Cd2qH809.js"),FormFieldStateWrapper=require("./FormFieldStateWrapper-BD3UHnBj.js"),InternalUnderlinedBadgeText=require("./InternalUnderlinedBadgeText-ByM6-JtC.js"),isObject=require("./isObject-DMA85Fq4.js"),icons=require("./icons-CvKgcv20.js");const InputAdornment=(n,e)=>{var{position:t="start",class:o}=n,s=tslib_es6.__rest(n,["position","class"]);const i="kol-input-container__adornment",r=`${i}--${t}`;return index.h("div",Object.assign({class:clsx.clsx(i,r,o)},s),e)};function hasItems(n){return!!n&&(Array.isArray(n)?n.length>0:Boolean(n))}const Container=(n,e)=>{var{class:t}=n,o=tslib_es6.__rest(n,["class"]);return index.h("div",Object.assign({class:clsx.clsx("kol-input-container__container",t)},o),e)},KolInputContainerFc=(n,e)=>{const{class:t,startAdornment:o,endAdornment:s,disabled:i,msg:r,touched:c,containerProps:a,startAdornmentProps:l,endAdornmentProps:d}=n,u=tslib_es6.__rest(n,["class","startAdornment","endAdornment","disabled","msg","touched","containerProps","startAdornmentProps","endAdornmentProps"]),p=FormFieldStateWrapper.checkHasMsg(r,c),m="string"==typeof r?"error":null==r?void 0:r._type,b={"kol-input-container--disabled":i,[`kol-input-container--${m||"error"}`]:p},h=Object.assign({class:clsx.clsx("kol-input-container",b,t)},u);return hasItems(o)||hasItems(s)?index.h("div",Object.assign({},h),index.h(InputAdornment,Object.assign({},l,{position:"start"}),o),index.h(Container,Object.assign({},a),e),index.h(InputAdornment,Object.assign({},d,{position:"end"}),s)):index.h("div",Object.assign({},h),index.h(Container,Object.assign({},a),e))},KolButtonFc=n=>{const{label:e,icons:t,hideLabel:o,disabled:s,onClick:i}=n,r=tslib_es6.__rest(n,["label","icons","hideLabel","disabled","onClick"]);return index.h(componentNames.KolButtonWcTag,Object.assign({_label:e,_disabled:s,_icons:t,_hideLabel:o,_on:{onClick:i}},r))},KolIconButtonFc=n=>{const{componentName:e="button",label:t,icon:o,onClick:s}=n,i=tslib_es6.__rest(n,["componentName","label","icon","onClick"]),r="button"===e?KolButtonFc:Icon.KolIconFc;return index.h(r,Object.assign({label:t||"",hideLabel:!0,icons:`codicon codicon-${o}`,onClick:s},i))};function getInputContainerProps(n){let e,t;return"_icons"in n&&(e=n._icons),"_smartButton"in n&&(t=n._smartButton),{icons:e,smartButton:t,disabled:n._disabled,msg:n._msg,touched:n._touched}}const InputContainerStateWrapperFc=({state:n,endAdornment:e},t)=>{const{icons:o,smartButton:s,disabled:i,msg:r,touched:c}=getInputContainerProps(n);let a=null==o?void 0:o.left;InternalUnderlinedBadgeText.isString(a)&&(a={icon:a});let l=null==o?void 0:o.right;InternalUnderlinedBadgeText.isString(l)&&(l={icon:l});const d=[],u=[];return e&&(Array.isArray(e)?u.push(...e):u.push(e)),a&&d.push(index.h(KolIconButtonFc,Object.assign({componentName:"icon",class:"kol-input-container__icon"},isObject.isObject(a)?a:{}))),isObject.isObject(s)&&u.push(index.h(KolIconButtonFc,Object.assign({componentName:"button",class:"kol-input-container__smart-button"},s,{hideLabel:!0,disabled:i}))),l&&u.push(index.h(KolIconButtonFc,Object.assign({componentName:"icon",class:"kol-input-container__icon"},isObject.isObject(l)?l:{}))),index.h(KolInputContainerFc,{disabled:i,msg:r,touched:c,startAdornment:d,endAdornment:u},t)};class InputIconController extends FormFieldStateWrapper.InputController{constructor(n,e,t){super(n,e,t),this.numberStringRegex=/^\d+(\.\d+)?$/,this.parseToNumber=n=>"number"==typeof n?isNaN(n)?null:n:this.isNumberString(n)?parseFloat(n):null,this.validateNumber=(n,e)=>common.watchValidator(this.component,n,n=>null==n||"number"==typeof n||"string"==typeof n&&this.numberStringRegex.test(n),new Set(["number","NumberString"]),e,{hooks:{beforePatch:(e,t)=>{(null==t?void 0:t.has(n))&&(null==t||t.set(n,this.parseToNumber(e)))}}}),this.component=n}validateIcons(n){icons.validateIcons(this.component,n)}isNumberString(n){return"string"==typeof n&&this.numberStringRegex.test(n)}componentWillLoad(){super.componentWillLoad(),this.validateIcons(this.component._icons)}}exports.InputContainerStateWrapperFc=InputContainerStateWrapperFc,exports.InputIconController=InputIconController,exports.KolIconButtonFc=KolIconButtonFc;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"controller-icon-BSN9Zg9Z.js","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 { checkHasMsg, 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 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 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 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 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> = ({ 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 { 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"],"names":["__rest","h","clsx","checkHasMsg","KolButtonWcTag","KolIconFc","isString","isObject","InputController","watchValidator","validateIcons"],"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,GAAhDA,gBAAA,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,QACCC,OAAK,CAAA,KAAA,EAAA,MAAA,CAAA,MAAA,CAAA,EAAA,KAAK,EAAEC,SAAI,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,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,GAAG,OAAO,CAAC,KAAK,CAAC;AAChE;AAEA,MAAM,SAAS,GAA+C,CAAC,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