@public-ui/components 3.0.0-rc.4 → 3.0.0-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 (702) hide show
  1. package/custom-elements.json +152 -111
  2. package/dist/cjs/{Alert-d3173bbc.js → Alert-a5b198e6.js} +1 -1
  3. package/dist/cjs/{Alert-d3173bbc.js.map → Alert-a5b198e6.js.map} +1 -1
  4. package/dist/cjs/{Collapsible-4b03ba6d.js → Collapsible-844445d4.js} +1 -1
  5. package/dist/cjs/{Collapsible-4b03ba6d.js.map → Collapsible-844445d4.js.map} +1 -1
  6. package/dist/cjs/{CustomSuggestionsOptionsGroup-63905604.js → CustomSuggestionsOptionsGroup-77d600fa.js} +1 -1
  7. package/dist/cjs/{CustomSuggestionsOptionsGroup-63905604.js.map → CustomSuggestionsOptionsGroup-77d600fa.js.map} +1 -1
  8. package/dist/cjs/{FieldControlStateWrapper-6bafd228.js → FieldControlStateWrapper-07e57b91.js} +1 -1
  9. package/dist/cjs/{FieldControlStateWrapper-6bafd228.js.map → FieldControlStateWrapper-07e57b91.js.map} +1 -1
  10. package/dist/cjs/FormFieldMsg-e1ae42e0.js +4 -0
  11. package/dist/cjs/{FormFieldMsg-370f014e.js.map → FormFieldMsg-e1ae42e0.js.map} +1 -1
  12. package/dist/cjs/{Heading-f5dd89a7.js → Heading-11d92da1.js} +1 -1
  13. package/dist/cjs/{Heading-f5dd89a7.js.map → Heading-11d92da1.js.map} +1 -1
  14. package/dist/cjs/Icon-e7c8d39a.js +4 -0
  15. package/dist/cjs/{Icon-0eed071b.js.map → Icon-e7c8d39a.js.map} +1 -1
  16. package/dist/cjs/{Input-766cb8ca.js → Input-36131161.js} +1 -1
  17. package/dist/cjs/{Input-766cb8ca.js.map → Input-36131161.js.map} +1 -1
  18. package/dist/cjs/{InputStateWrapper-9e99208c.js → InputStateWrapper-e31cb78c.js} +1 -1
  19. package/dist/cjs/{InputStateWrapper-9e99208c.js.map → InputStateWrapper-e31cb78c.js.map} +1 -1
  20. package/dist/cjs/{InternalUnderlinedBadgeText-58120685.js → InternalUnderlinedBadgeText-ee3dbba6.js} +1 -1
  21. package/dist/cjs/{InternalUnderlinedBadgeText-58120685.js.map → InternalUnderlinedBadgeText-ee3dbba6.js.map} +1 -1
  22. package/dist/cjs/{Span-722fdf09.js → Span-b6b1c70b.js} +1 -1
  23. package/dist/cjs/{Span-722fdf09.js.map → Span-b6b1c70b.js.map} +1 -1
  24. package/dist/cjs/{app-globals-916df316.js → app-globals-5daba31a.js} +1 -1
  25. package/dist/cjs/{app-globals-916df316.js.map → app-globals-5daba31a.js.map} +1 -1
  26. package/dist/cjs/component-names-74abfa2e.js +4 -0
  27. package/dist/cjs/component-names-74abfa2e.js.map +1 -0
  28. package/dist/cjs/{controller-111255ac.js → controller-3383d544.js} +1 -1
  29. package/dist/cjs/{controller-111255ac.js.map → controller-3383d544.js.map} +1 -1
  30. package/dist/cjs/{controller-a9e3b9a8.js → controller-ea888e13.js} +1 -1
  31. package/dist/cjs/{controller-a9e3b9a8.js.map → controller-ea888e13.js.map} +1 -1
  32. package/dist/cjs/{controller-c17a58e8.js → controller-f5116746.js} +1 -1
  33. package/dist/cjs/{controller-c17a58e8.js.map → controller-f5116746.js.map} +1 -1
  34. package/dist/cjs/{controller-14077cbb.js → controller-fcd5edcb.js} +1 -1
  35. package/dist/cjs/{controller-14077cbb.js.map → controller-fcd5edcb.js.map} +1 -1
  36. package/dist/cjs/{controller-icon-4cb3d925.js → controller-icon-87bb43d8.js} +1 -1
  37. package/dist/cjs/{controller-icon-4cb3d925.js.map → controller-icon-87bb43d8.js.map} +1 -1
  38. package/dist/cjs/{dev.utils-c561d218.js → dev.utils-0fbf39d5.js} +1 -1
  39. package/dist/cjs/{dev.utils-c561d218.js.map → dev.utils-0fbf39d5.js.map} +1 -1
  40. package/dist/cjs/{devtools-d8ea3563.js → devtools-10797f26.js} +1 -1
  41. package/dist/cjs/{devtools-d8ea3563.js.map → devtools-10797f26.js.map} +1 -1
  42. package/dist/cjs/getRenderStates-46cbeb01.js +4 -0
  43. package/dist/cjs/getRenderStates-46cbeb01.js.map +1 -0
  44. package/dist/cjs/i18n-583e3c4b.js +4 -0
  45. package/dist/cjs/i18n-583e3c4b.js.map +1 -0
  46. package/dist/cjs/{i18n-1d085d07.js → i18n-cdacfb29.js} +1 -1
  47. package/dist/cjs/{i18n-1d085d07.js.map → i18n-cdacfb29.js.map} +1 -1
  48. package/dist/cjs/index-5eda7e82.js +4 -0
  49. package/dist/cjs/{index-07fcbac9.js.map → index-5eda7e82.js.map} +1 -1
  50. package/dist/cjs/index.cjs.js +1 -1
  51. package/dist/cjs/index.cjs.js.map +1 -1
  52. package/dist/cjs/kol-abbr.cjs.entry.js +1 -1
  53. package/dist/cjs/kol-abbr.cjs.entry.js.map +1 -1
  54. package/dist/cjs/kol-accordion.cjs.entry.js +1 -1
  55. package/dist/cjs/kol-accordion.cjs.entry.js.map +1 -1
  56. package/dist/cjs/kol-alert-wc.cjs.entry.js +1 -1
  57. package/dist/cjs/kol-alert.cjs.entry.js +1 -1
  58. package/dist/cjs/kol-alert.cjs.entry.js.map +1 -1
  59. package/dist/cjs/kol-avatar-wc.cjs.entry.js +1 -1
  60. package/dist/cjs/kol-avatar.cjs.entry.js +1 -1
  61. package/dist/cjs/kol-avatar.cjs.entry.js.map +1 -1
  62. package/dist/cjs/kol-badge.cjs.entry.js +1 -1
  63. package/dist/cjs/kol-badge.cjs.entry.js.map +1 -1
  64. package/dist/cjs/kol-breadcrumb.cjs.entry.js +1 -1
  65. package/dist/cjs/kol-breadcrumb.cjs.entry.js.map +1 -1
  66. package/dist/cjs/kol-button-link.cjs.entry.js +1 -1
  67. package/dist/cjs/kol-button-link.cjs.entry.js.map +1 -1
  68. package/dist/cjs/kol-button-wc.cjs.entry.js +1 -1
  69. package/dist/cjs/kol-button.cjs.entry.js +1 -1
  70. package/dist/cjs/kol-button.cjs.entry.js.map +1 -1
  71. package/dist/cjs/kol-card.cjs.entry.js +1 -1
  72. package/dist/cjs/kol-card.cjs.entry.js.map +1 -1
  73. package/dist/cjs/kol-combobox.cjs.entry.js +1 -1
  74. package/dist/cjs/kol-combobox.cjs.entry.js.map +1 -1
  75. package/dist/cjs/kol-details.cjs.entry.js +1 -1
  76. package/dist/cjs/kol-details.cjs.entry.js.map +1 -1
  77. package/dist/cjs/kol-drawer.cjs.entry.js +1 -1
  78. package/dist/cjs/kol-drawer.cjs.entry.js.map +1 -1
  79. package/dist/cjs/kol-form.cjs.entry.js +1 -1
  80. package/dist/cjs/kol-form.cjs.entry.js.map +1 -1
  81. package/dist/cjs/kol-heading.cjs.entry.js +1 -1
  82. package/dist/cjs/kol-heading.cjs.entry.js.map +1 -1
  83. package/dist/cjs/kol-icon.cjs.entry.js +1 -1
  84. package/dist/cjs/kol-icon.cjs.entry.js.map +1 -1
  85. package/dist/cjs/kol-image.cjs.entry.js +1 -1
  86. package/dist/cjs/kol-image.cjs.entry.js.map +1 -1
  87. package/dist/cjs/kol-input-checkbox.cjs.entry.js +1 -1
  88. package/dist/cjs/kol-input-checkbox.cjs.entry.js.map +1 -1
  89. package/dist/cjs/kol-input-color.cjs.entry.js +1 -1
  90. package/dist/cjs/kol-input-color.cjs.entry.js.map +1 -1
  91. package/dist/cjs/kol-input-date.cjs.entry.js +1 -1
  92. package/dist/cjs/kol-input-date.cjs.entry.js.map +1 -1
  93. package/dist/cjs/kol-input-email.cjs.entry.js +1 -1
  94. package/dist/cjs/kol-input-email.cjs.entry.js.map +1 -1
  95. package/dist/cjs/kol-input-file.cjs.entry.js +1 -1
  96. package/dist/cjs/kol-input-file.cjs.entry.js.map +1 -1
  97. package/dist/cjs/kol-input-number.cjs.entry.js +1 -1
  98. package/dist/cjs/kol-input-number.cjs.entry.js.map +1 -1
  99. package/dist/cjs/kol-input-password.cjs.entry.js +1 -1
  100. package/dist/cjs/kol-input-password.cjs.entry.js.map +1 -1
  101. package/dist/cjs/kol-input-radio.cjs.entry.js +1 -1
  102. package/dist/cjs/kol-input-radio.cjs.entry.js.map +1 -1
  103. package/dist/cjs/kol-input-range.cjs.entry.js +1 -1
  104. package/dist/cjs/kol-input-range.cjs.entry.js.map +1 -1
  105. package/dist/cjs/kol-input-text.cjs.entry.js +1 -1
  106. package/dist/cjs/kol-input-text.cjs.entry.js.map +1 -1
  107. package/dist/cjs/kol-input.cjs.entry.js +1 -1
  108. package/dist/cjs/kol-kolibri.cjs.entry.js +1 -1
  109. package/dist/cjs/kol-kolibri.cjs.entry.js.map +1 -1
  110. package/dist/cjs/kol-link-button.cjs.entry.js +1 -1
  111. package/dist/cjs/kol-link-button.cjs.entry.js.map +1 -1
  112. package/dist/cjs/kol-link-wc.cjs.entry.js +1 -1
  113. package/dist/cjs/kol-link.cjs.entry.js +1 -1
  114. package/dist/cjs/kol-link.cjs.entry.js.map +1 -1
  115. package/dist/cjs/kol-modal.cjs.entry.js +1 -1
  116. package/dist/cjs/kol-modal.cjs.entry.js.map +1 -1
  117. package/dist/cjs/kol-nav.cjs.entry.js +1 -1
  118. package/dist/cjs/kol-nav.cjs.entry.js.map +1 -1
  119. package/dist/cjs/kol-pagination.cjs.entry.js +1 -1
  120. package/dist/cjs/kol-pagination.cjs.entry.js.map +1 -1
  121. package/dist/cjs/kol-popover-button.cjs.entry.js +4 -0
  122. package/dist/cjs/kol-popover-button.cjs.entry.js.map +1 -0
  123. package/dist/cjs/kol-popover-wc.cjs.entry.js +1 -1
  124. package/dist/cjs/kol-popover-wc.cjs.entry.js.map +1 -1
  125. package/dist/cjs/kol-progress.cjs.entry.js +1 -1
  126. package/dist/cjs/kol-progress.cjs.entry.js.map +1 -1
  127. package/dist/cjs/kol-quote.cjs.entry.js +1 -1
  128. package/dist/cjs/kol-quote.cjs.entry.js.map +1 -1
  129. package/dist/cjs/kol-select.cjs.entry.js +1 -1
  130. package/dist/cjs/kol-select.cjs.entry.js.map +1 -1
  131. package/dist/cjs/kol-single-select.cjs.entry.js +1 -1
  132. package/dist/cjs/kol-single-select.cjs.entry.js.map +1 -1
  133. package/dist/cjs/kol-skip-nav.cjs.entry.js +1 -1
  134. package/dist/cjs/kol-skip-nav.cjs.entry.js.map +1 -1
  135. package/dist/cjs/kol-spin.cjs.entry.js +1 -1
  136. package/dist/cjs/kol-spin.cjs.entry.js.map +1 -1
  137. package/dist/cjs/kol-split-button.cjs.entry.js +1 -1
  138. package/dist/cjs/kol-split-button.cjs.entry.js.map +1 -1
  139. package/dist/cjs/kol-table-stateful.cjs.entry.js +1 -1
  140. package/dist/cjs/kol-table-stateful.cjs.entry.js.map +1 -1
  141. package/dist/cjs/kol-table-stateless-wc.cjs.entry.js +1 -1
  142. package/dist/cjs/kol-table-stateless.cjs.entry.js +1 -1
  143. package/dist/cjs/kol-table-stateless.cjs.entry.js.map +1 -1
  144. package/dist/cjs/kol-tabs.cjs.entry.js +1 -1
  145. package/dist/cjs/kol-tabs.cjs.entry.js.map +1 -1
  146. package/dist/cjs/kol-textarea.cjs.entry.js +1 -1
  147. package/dist/cjs/kol-textarea.cjs.entry.js.map +1 -1
  148. package/dist/cjs/kol-toast-container.cjs.entry.js +1 -1
  149. package/dist/cjs/kol-toast-container.cjs.entry.js.map +1 -1
  150. package/dist/cjs/kol-toolbar.cjs.entry.js +1 -1
  151. package/dist/cjs/kol-toolbar.cjs.entry.js.map +1 -1
  152. package/dist/cjs/kol-tooltip-wc.cjs.entry.js +1 -1
  153. package/dist/cjs/kol-tree-item-wc.cjs.entry.js +1 -1
  154. package/dist/cjs/kol-tree-item.cjs.entry.js +1 -1
  155. package/dist/cjs/kol-tree-item.cjs.entry.js.map +1 -1
  156. package/dist/cjs/kol-tree-wc.cjs.entry.js +1 -1
  157. package/dist/cjs/kol-tree.cjs.entry.js +1 -1
  158. package/dist/cjs/kol-tree.cjs.entry.js.map +1 -1
  159. package/dist/cjs/kol-version.cjs.entry.js +1 -1
  160. package/dist/cjs/kol-version.cjs.entry.js.map +1 -1
  161. package/dist/cjs/kolibri.cjs.js +1 -1
  162. package/dist/cjs/loader.cjs.js +1 -1
  163. package/dist/cjs/test-component.cjs.entry.js +1 -1
  164. package/dist/components/component-names.js +1 -1
  165. package/dist/components/component-names.js.map +1 -1
  166. package/dist/components/getRenderStates.js +1 -1
  167. package/dist/components/getRenderStates.js.map +1 -1
  168. package/dist/components/i18n.js +1 -1
  169. package/dist/components/i18n.js.map +1 -1
  170. package/dist/components/index.js +1 -1
  171. package/dist/components/index.js.map +1 -1
  172. package/dist/components/kol-abbr.js +1 -1
  173. package/dist/components/kol-abbr.js.map +1 -1
  174. package/dist/components/kol-accordion.js.map +1 -1
  175. package/dist/components/kol-alert-wc.js +1 -1
  176. package/dist/components/kol-alert.js +1 -1
  177. package/dist/components/kol-alert.js.map +1 -1
  178. package/dist/components/kol-avatar-wc.js +1 -1
  179. package/dist/components/kol-avatar.js +1 -1
  180. package/dist/components/kol-avatar.js.map +1 -1
  181. package/dist/components/kol-badge.js +1 -1
  182. package/dist/components/kol-badge.js.map +1 -1
  183. package/dist/components/kol-breadcrumb.js.map +1 -1
  184. package/dist/components/kol-button-link.js +1 -1
  185. package/dist/components/kol-button-link.js.map +1 -1
  186. package/dist/components/kol-button-wc.js +1 -1
  187. package/dist/components/kol-button.js +1 -1
  188. package/dist/components/kol-button.js.map +1 -1
  189. package/dist/components/kol-card.js +1 -1
  190. package/dist/components/kol-card.js.map +1 -1
  191. package/dist/components/kol-combobox.js +1 -1
  192. package/dist/components/kol-combobox.js.map +1 -1
  193. package/dist/components/kol-details.js +1 -1
  194. package/dist/components/kol-details.js.map +1 -1
  195. package/dist/components/kol-drawer.js +1 -1
  196. package/dist/components/kol-drawer.js.map +1 -1
  197. package/dist/components/kol-form.js +1 -1
  198. package/dist/components/kol-form.js.map +1 -1
  199. package/dist/components/kol-heading.js +1 -1
  200. package/dist/components/kol-heading.js.map +1 -1
  201. package/dist/components/kol-icon.js +1 -1
  202. package/dist/components/kol-icon.js.map +1 -1
  203. package/dist/components/kol-image.js +1 -1
  204. package/dist/components/kol-image.js.map +1 -1
  205. package/dist/components/kol-input-checkbox.js +1 -1
  206. package/dist/components/kol-input-checkbox.js.map +1 -1
  207. package/dist/components/kol-input-color.js +1 -1
  208. package/dist/components/kol-input-color.js.map +1 -1
  209. package/dist/components/kol-input-date.js +1 -1
  210. package/dist/components/kol-input-date.js.map +1 -1
  211. package/dist/components/kol-input-email.js +1 -1
  212. package/dist/components/kol-input-email.js.map +1 -1
  213. package/dist/components/kol-input-file.js +1 -1
  214. package/dist/components/kol-input-file.js.map +1 -1
  215. package/dist/components/kol-input-number.js +1 -1
  216. package/dist/components/kol-input-number.js.map +1 -1
  217. package/dist/components/kol-input-password.js +1 -1
  218. package/dist/components/kol-input-password.js.map +1 -1
  219. package/dist/components/kol-input-radio.js +1 -1
  220. package/dist/components/kol-input-radio.js.map +1 -1
  221. package/dist/components/kol-input-range.js +1 -1
  222. package/dist/components/kol-input-range.js.map +1 -1
  223. package/dist/components/kol-input-text.js +1 -1
  224. package/dist/components/kol-input-text.js.map +1 -1
  225. package/dist/components/kol-input.js +1 -1
  226. package/dist/components/kol-kolibri.js +1 -1
  227. package/dist/components/kol-kolibri.js.map +1 -1
  228. package/dist/components/kol-link-button.js +1 -1
  229. package/dist/components/kol-link-button.js.map +1 -1
  230. package/dist/components/kol-link-wc.js +1 -1
  231. package/dist/components/kol-link.js +1 -1
  232. package/dist/components/kol-link.js.map +1 -1
  233. package/dist/components/kol-modal.js +1 -1
  234. package/dist/components/kol-modal.js.map +1 -1
  235. package/dist/components/kol-nav.js +1 -1
  236. package/dist/components/kol-nav.js.map +1 -1
  237. package/dist/components/kol-pagination.js +1 -1
  238. package/dist/components/kol-pagination.js.map +1 -1
  239. package/dist/components/kol-popover-button.d.ts +11 -0
  240. package/dist/components/kol-popover-button.js +4 -0
  241. package/dist/components/kol-popover-button.js.map +1 -0
  242. package/dist/components/kol-popover-wc.js +1 -1
  243. package/dist/components/kol-popover-wc.js.map +1 -1
  244. package/dist/components/kol-progress.js +1 -1
  245. package/dist/components/kol-progress.js.map +1 -1
  246. package/dist/components/kol-quote.js +1 -1
  247. package/dist/components/kol-quote.js.map +1 -1
  248. package/dist/components/kol-select.js +1 -1
  249. package/dist/components/kol-select.js.map +1 -1
  250. package/dist/components/kol-single-select.js +1 -1
  251. package/dist/components/kol-single-select.js.map +1 -1
  252. package/dist/components/kol-skip-nav.js +1 -1
  253. package/dist/components/kol-skip-nav.js.map +1 -1
  254. package/dist/components/kol-spin.js +1 -1
  255. package/dist/components/kol-spin.js.map +1 -1
  256. package/dist/components/kol-split-button.js +1 -1
  257. package/dist/components/kol-split-button.js.map +1 -1
  258. package/dist/components/kol-table-stateful.js +1 -1
  259. package/dist/components/kol-table-stateful.js.map +1 -1
  260. package/dist/components/kol-table-stateless-wc.js +1 -1
  261. package/dist/components/kol-table-stateless.js +1 -1
  262. package/dist/components/kol-table-stateless.js.map +1 -1
  263. package/dist/components/kol-tabs.js +1 -1
  264. package/dist/components/kol-tabs.js.map +1 -1
  265. package/dist/components/kol-textarea.js +1 -1
  266. package/dist/components/kol-textarea.js.map +1 -1
  267. package/dist/components/kol-toast-container.js +1 -1
  268. package/dist/components/kol-toast-container.js.map +1 -1
  269. package/dist/components/kol-toolbar.js +1 -1
  270. package/dist/components/kol-toolbar.js.map +1 -1
  271. package/dist/components/kol-tooltip-wc.js +1 -1
  272. package/dist/components/kol-tree-item-wc.js +1 -1
  273. package/dist/components/kol-tree-item.js +1 -1
  274. package/dist/components/kol-tree-item.js.map +1 -1
  275. package/dist/components/kol-tree-wc.js +1 -1
  276. package/dist/components/kol-tree.js +1 -1
  277. package/dist/components/kol-tree.js.map +1 -1
  278. package/dist/components/kol-version.js +1 -1
  279. package/dist/components/kol-version.js.map +1 -1
  280. package/dist/esm/{Alert-080adf2e.js → Alert-fb4611d9.js} +1 -1
  281. package/dist/esm/{Alert-080adf2e.js.map → Alert-fb4611d9.js.map} +1 -1
  282. package/dist/esm/{Collapsible-cc9fb8f0.js → Collapsible-fb8abe4a.js} +1 -1
  283. package/dist/esm/{Collapsible-cc9fb8f0.js.map → Collapsible-fb8abe4a.js.map} +1 -1
  284. package/dist/esm/{CustomSuggestionsOptionsGroup-1505a9ba.js → CustomSuggestionsOptionsGroup-a10a4cf2.js} +1 -1
  285. package/dist/esm/{CustomSuggestionsOptionsGroup-1505a9ba.js.map → CustomSuggestionsOptionsGroup-a10a4cf2.js.map} +1 -1
  286. package/dist/esm/{FieldControlStateWrapper-5432d9b6.js → FieldControlStateWrapper-eab24f20.js} +1 -1
  287. package/dist/esm/{FieldControlStateWrapper-5432d9b6.js.map → FieldControlStateWrapper-eab24f20.js.map} +1 -1
  288. package/dist/esm/{FormFieldMsg-1ed3f51d.js → FormFieldMsg-00f6a985.js} +1 -1
  289. package/dist/esm/{FormFieldMsg-1ed3f51d.js.map → FormFieldMsg-00f6a985.js.map} +1 -1
  290. package/dist/esm/{Heading-0459992b.js → Heading-e581ac05.js} +1 -1
  291. package/dist/esm/{Heading-0459992b.js.map → Heading-e581ac05.js.map} +1 -1
  292. package/dist/esm/{Icon-936c5cfc.js → Icon-0127c9ad.js} +1 -1
  293. package/dist/esm/{Icon-936c5cfc.js.map → Icon-0127c9ad.js.map} +1 -1
  294. package/dist/esm/{Input-40160769.js → Input-3c3e229e.js} +1 -1
  295. package/dist/esm/{Input-40160769.js.map → Input-3c3e229e.js.map} +1 -1
  296. package/dist/esm/{InputStateWrapper-e1a2298b.js → InputStateWrapper-e55ca6b7.js} +1 -1
  297. package/dist/esm/{InputStateWrapper-e1a2298b.js.map → InputStateWrapper-e55ca6b7.js.map} +1 -1
  298. package/dist/esm/{InternalUnderlinedBadgeText-22278de8.js → InternalUnderlinedBadgeText-e33ead64.js} +1 -1
  299. package/dist/esm/{InternalUnderlinedBadgeText-22278de8.js.map → InternalUnderlinedBadgeText-e33ead64.js.map} +1 -1
  300. package/dist/esm/{Span-97af2595.js → Span-d5aaae43.js} +1 -1
  301. package/dist/esm/{Span-97af2595.js.map → Span-d5aaae43.js.map} +1 -1
  302. package/dist/esm/{app-globals-1242eb39.js → app-globals-1e7de5a5.js} +1 -1
  303. package/dist/esm/{app-globals-1242eb39.js.map → app-globals-1e7de5a5.js.map} +1 -1
  304. package/dist/esm/component-names-545d6582.js +4 -0
  305. package/dist/esm/component-names-545d6582.js.map +1 -0
  306. package/dist/esm/{controller-eb6f1a77.js → controller-6727a24c.js} +1 -1
  307. package/dist/esm/{controller-eb6f1a77.js.map → controller-6727a24c.js.map} +1 -1
  308. package/dist/esm/{controller-e699ee47.js → controller-7d258ad2.js} +1 -1
  309. package/dist/esm/{controller-e699ee47.js.map → controller-7d258ad2.js.map} +1 -1
  310. package/dist/esm/{controller-502cff08.js → controller-b00e9aff.js} +1 -1
  311. package/dist/esm/{controller-502cff08.js.map → controller-b00e9aff.js.map} +1 -1
  312. package/dist/esm/{controller-002a86ad.js → controller-f84a4671.js} +1 -1
  313. package/dist/esm/{controller-002a86ad.js.map → controller-f84a4671.js.map} +1 -1
  314. package/dist/esm/{controller-icon-4be72f9f.js → controller-icon-00be418c.js} +1 -1
  315. package/dist/esm/{controller-icon-4be72f9f.js.map → controller-icon-00be418c.js.map} +1 -1
  316. package/dist/esm/{dev.utils-b9e6a3e1.js → dev.utils-7a7f446c.js} +1 -1
  317. package/dist/esm/{dev.utils-b9e6a3e1.js.map → dev.utils-7a7f446c.js.map} +1 -1
  318. package/dist/esm/{devtools-5850e9b1.js → devtools-5d616428.js} +1 -1
  319. package/dist/esm/{devtools-5850e9b1.js.map → devtools-5d616428.js.map} +1 -1
  320. package/dist/esm/getRenderStates-3f00199d.js +4 -0
  321. package/dist/esm/getRenderStates-3f00199d.js.map +1 -0
  322. package/dist/esm/{i18n-5fe08f1c.js → i18n-35276313.js} +1 -1
  323. package/dist/esm/{i18n-5fe08f1c.js.map → i18n-35276313.js.map} +1 -1
  324. package/dist/esm/i18n-c120df5c.js +4 -0
  325. package/dist/esm/i18n-c120df5c.js.map +1 -0
  326. package/dist/esm/index-c4d5cf81.js +4 -0
  327. package/dist/esm/{index-91489a9f.js.map → index-c4d5cf81.js.map} +1 -1
  328. package/dist/esm/index.js +1 -1
  329. package/dist/esm/index.js.map +1 -1
  330. package/dist/esm/kol-abbr.entry.js +1 -1
  331. package/dist/esm/kol-abbr.entry.js.map +1 -1
  332. package/dist/esm/kol-accordion.entry.js +1 -1
  333. package/dist/esm/kol-accordion.entry.js.map +1 -1
  334. package/dist/esm/kol-alert-wc.entry.js +1 -1
  335. package/dist/esm/kol-alert.entry.js +1 -1
  336. package/dist/esm/kol-alert.entry.js.map +1 -1
  337. package/dist/esm/kol-avatar-wc.entry.js +1 -1
  338. package/dist/esm/kol-avatar.entry.js +1 -1
  339. package/dist/esm/kol-avatar.entry.js.map +1 -1
  340. package/dist/esm/kol-badge.entry.js +1 -1
  341. package/dist/esm/kol-badge.entry.js.map +1 -1
  342. package/dist/esm/kol-breadcrumb.entry.js +1 -1
  343. package/dist/esm/kol-breadcrumb.entry.js.map +1 -1
  344. package/dist/esm/kol-button-link.entry.js +1 -1
  345. package/dist/esm/kol-button-link.entry.js.map +1 -1
  346. package/dist/esm/kol-button-wc.entry.js +1 -1
  347. package/dist/esm/kol-button.entry.js +1 -1
  348. package/dist/esm/kol-button.entry.js.map +1 -1
  349. package/dist/esm/kol-card.entry.js +1 -1
  350. package/dist/esm/kol-card.entry.js.map +1 -1
  351. package/dist/esm/kol-combobox.entry.js +1 -1
  352. package/dist/esm/kol-combobox.entry.js.map +1 -1
  353. package/dist/esm/kol-details.entry.js +1 -1
  354. package/dist/esm/kol-details.entry.js.map +1 -1
  355. package/dist/esm/kol-drawer.entry.js +1 -1
  356. package/dist/esm/kol-drawer.entry.js.map +1 -1
  357. package/dist/esm/kol-form.entry.js +1 -1
  358. package/dist/esm/kol-form.entry.js.map +1 -1
  359. package/dist/esm/kol-heading.entry.js +1 -1
  360. package/dist/esm/kol-heading.entry.js.map +1 -1
  361. package/dist/esm/kol-icon.entry.js +1 -1
  362. package/dist/esm/kol-icon.entry.js.map +1 -1
  363. package/dist/esm/kol-image.entry.js +1 -1
  364. package/dist/esm/kol-image.entry.js.map +1 -1
  365. package/dist/esm/kol-input-checkbox.entry.js +1 -1
  366. package/dist/esm/kol-input-checkbox.entry.js.map +1 -1
  367. package/dist/esm/kol-input-color.entry.js +1 -1
  368. package/dist/esm/kol-input-color.entry.js.map +1 -1
  369. package/dist/esm/kol-input-date.entry.js +1 -1
  370. package/dist/esm/kol-input-date.entry.js.map +1 -1
  371. package/dist/esm/kol-input-email.entry.js +1 -1
  372. package/dist/esm/kol-input-email.entry.js.map +1 -1
  373. package/dist/esm/kol-input-file.entry.js +1 -1
  374. package/dist/esm/kol-input-file.entry.js.map +1 -1
  375. package/dist/esm/kol-input-number.entry.js +1 -1
  376. package/dist/esm/kol-input-number.entry.js.map +1 -1
  377. package/dist/esm/kol-input-password.entry.js +1 -1
  378. package/dist/esm/kol-input-password.entry.js.map +1 -1
  379. package/dist/esm/kol-input-radio.entry.js +1 -1
  380. package/dist/esm/kol-input-radio.entry.js.map +1 -1
  381. package/dist/esm/kol-input-range.entry.js +1 -1
  382. package/dist/esm/kol-input-range.entry.js.map +1 -1
  383. package/dist/esm/kol-input-text.entry.js +1 -1
  384. package/dist/esm/kol-input-text.entry.js.map +1 -1
  385. package/dist/esm/kol-input.entry.js +1 -1
  386. package/dist/esm/kol-kolibri.entry.js +1 -1
  387. package/dist/esm/kol-kolibri.entry.js.map +1 -1
  388. package/dist/esm/kol-link-button.entry.js +1 -1
  389. package/dist/esm/kol-link-button.entry.js.map +1 -1
  390. package/dist/esm/kol-link-wc.entry.js +1 -1
  391. package/dist/esm/kol-link.entry.js +1 -1
  392. package/dist/esm/kol-link.entry.js.map +1 -1
  393. package/dist/esm/kol-modal.entry.js +1 -1
  394. package/dist/esm/kol-modal.entry.js.map +1 -1
  395. package/dist/esm/kol-nav.entry.js +1 -1
  396. package/dist/esm/kol-nav.entry.js.map +1 -1
  397. package/dist/esm/kol-pagination.entry.js +1 -1
  398. package/dist/esm/kol-pagination.entry.js.map +1 -1
  399. package/dist/esm/kol-popover-button.entry.js +4 -0
  400. package/dist/esm/kol-popover-button.entry.js.map +1 -0
  401. package/dist/esm/kol-popover-wc.entry.js +1 -1
  402. package/dist/esm/kol-popover-wc.entry.js.map +1 -1
  403. package/dist/esm/kol-progress.entry.js +1 -1
  404. package/dist/esm/kol-progress.entry.js.map +1 -1
  405. package/dist/esm/kol-quote.entry.js +1 -1
  406. package/dist/esm/kol-quote.entry.js.map +1 -1
  407. package/dist/esm/kol-select.entry.js +1 -1
  408. package/dist/esm/kol-select.entry.js.map +1 -1
  409. package/dist/esm/kol-single-select.entry.js +1 -1
  410. package/dist/esm/kol-single-select.entry.js.map +1 -1
  411. package/dist/esm/kol-skip-nav.entry.js +1 -1
  412. package/dist/esm/kol-skip-nav.entry.js.map +1 -1
  413. package/dist/esm/kol-spin.entry.js +1 -1
  414. package/dist/esm/kol-spin.entry.js.map +1 -1
  415. package/dist/esm/kol-split-button.entry.js +1 -1
  416. package/dist/esm/kol-split-button.entry.js.map +1 -1
  417. package/dist/esm/kol-table-stateful.entry.js +1 -1
  418. package/dist/esm/kol-table-stateful.entry.js.map +1 -1
  419. package/dist/esm/kol-table-stateless-wc.entry.js +1 -1
  420. package/dist/esm/kol-table-stateless.entry.js +1 -1
  421. package/dist/esm/kol-table-stateless.entry.js.map +1 -1
  422. package/dist/esm/kol-tabs.entry.js +1 -1
  423. package/dist/esm/kol-tabs.entry.js.map +1 -1
  424. package/dist/esm/kol-textarea.entry.js +1 -1
  425. package/dist/esm/kol-textarea.entry.js.map +1 -1
  426. package/dist/esm/kol-toast-container.entry.js +1 -1
  427. package/dist/esm/kol-toast-container.entry.js.map +1 -1
  428. package/dist/esm/kol-toolbar.entry.js +1 -1
  429. package/dist/esm/kol-toolbar.entry.js.map +1 -1
  430. package/dist/esm/kol-tooltip-wc.entry.js +1 -1
  431. package/dist/esm/kol-tree-item-wc.entry.js +1 -1
  432. package/dist/esm/kol-tree-item.entry.js +1 -1
  433. package/dist/esm/kol-tree-item.entry.js.map +1 -1
  434. package/dist/esm/kol-tree-wc.entry.js +1 -1
  435. package/dist/esm/kol-tree.entry.js +1 -1
  436. package/dist/esm/kol-tree.entry.js.map +1 -1
  437. package/dist/esm/kol-version.entry.js +1 -1
  438. package/dist/esm/kol-version.entry.js.map +1 -1
  439. package/dist/esm/kolibri.js +1 -1
  440. package/dist/esm/loader.js +1 -1
  441. package/dist/esm/test-component.entry.js +1 -1
  442. package/dist/kolibri/{Alert-080adf2e.js → Alert-fb4611d9.js} +1 -1
  443. package/dist/kolibri/{Collapsible-cc9fb8f0.js → Collapsible-fb8abe4a.js} +1 -1
  444. package/dist/kolibri/{CustomSuggestionsOptionsGroup-1505a9ba.js → CustomSuggestionsOptionsGroup-a10a4cf2.js} +1 -1
  445. package/dist/kolibri/{FieldControlStateWrapper-5432d9b6.js → FieldControlStateWrapper-eab24f20.js} +1 -1
  446. package/dist/kolibri/FormFieldMsg-00f6a985.js +4 -0
  447. package/dist/kolibri/{Heading-0459992b.js → Heading-e581ac05.js} +1 -1
  448. package/dist/kolibri/Icon-0127c9ad.js +4 -0
  449. package/dist/kolibri/Input-3c3e229e.js +4 -0
  450. package/dist/kolibri/{InputStateWrapper-e1a2298b.js → InputStateWrapper-e55ca6b7.js} +1 -1
  451. package/dist/kolibri/{InternalUnderlinedBadgeText-22278de8.js → InternalUnderlinedBadgeText-e33ead64.js} +1 -1
  452. package/dist/kolibri/{Span-97af2595.js → Span-d5aaae43.js} +1 -1
  453. package/dist/kolibri/app-globals-1e7de5a5.js +4 -0
  454. package/dist/kolibri/component-names-545d6582.js +4 -0
  455. package/dist/kolibri/component-names-545d6582.js.map +1 -0
  456. package/dist/kolibri/{controller-eb6f1a77.js → controller-6727a24c.js} +1 -1
  457. package/dist/kolibri/{controller-e699ee47.js → controller-7d258ad2.js} +1 -1
  458. package/dist/kolibri/{controller-502cff08.js → controller-b00e9aff.js} +1 -1
  459. package/dist/kolibri/{controller-002a86ad.js → controller-f84a4671.js} +1 -1
  460. package/dist/kolibri/{controller-icon-4be72f9f.js → controller-icon-00be418c.js} +1 -1
  461. package/dist/kolibri/{dev.utils-b9e6a3e1.js → dev.utils-7a7f446c.js} +1 -1
  462. package/dist/kolibri/devtools-5d616428.js +4 -0
  463. package/dist/kolibri/{devtools-5850e9b1.js.map → devtools-5d616428.js.map} +1 -1
  464. package/dist/kolibri/getRenderStates-3f00199d.js +4 -0
  465. package/dist/kolibri/getRenderStates-3f00199d.js.map +1 -0
  466. package/dist/kolibri/i18n-35276313.js +4 -0
  467. package/dist/kolibri/i18n-c120df5c.js +4 -0
  468. package/dist/kolibri/i18n-c120df5c.js.map +1 -0
  469. package/dist/kolibri/{index-91489a9f.js → index-c4d5cf81.js} +1 -1
  470. package/dist/kolibri/{index-91489a9f.js.map → index-c4d5cf81.js.map} +1 -1
  471. package/dist/kolibri/index.esm.js +1 -1
  472. package/dist/kolibri/index.esm.js.map +1 -1
  473. package/dist/kolibri/kol-abbr.entry.js +1 -1
  474. package/dist/kolibri/kol-abbr.entry.js.map +1 -1
  475. package/dist/kolibri/kol-accordion.entry.js +1 -1
  476. package/dist/kolibri/kol-accordion.entry.js.map +1 -1
  477. package/dist/kolibri/kol-alert-wc.entry.js +1 -1
  478. package/dist/kolibri/kol-alert-wc.entry.js.map +1 -1
  479. package/dist/kolibri/kol-alert.entry.js +1 -1
  480. package/dist/kolibri/kol-alert.entry.js.map +1 -1
  481. package/dist/kolibri/kol-avatar-wc.entry.js +1 -1
  482. package/dist/kolibri/kol-avatar.entry.js +1 -1
  483. package/dist/kolibri/kol-avatar.entry.js.map +1 -1
  484. package/dist/kolibri/kol-badge.entry.js +1 -1
  485. package/dist/kolibri/kol-badge.entry.js.map +1 -1
  486. package/dist/kolibri/kol-breadcrumb.entry.js +1 -1
  487. package/dist/kolibri/kol-breadcrumb.entry.js.map +1 -1
  488. package/dist/kolibri/kol-button-link.entry.js +1 -1
  489. package/dist/kolibri/kol-button-link.entry.js.map +1 -1
  490. package/dist/kolibri/kol-button-wc.entry.js +1 -1
  491. package/dist/kolibri/kol-button-wc.entry.js.map +1 -1
  492. package/dist/kolibri/kol-button.entry.js +1 -1
  493. package/dist/kolibri/kol-button.entry.js.map +1 -1
  494. package/dist/kolibri/kol-card.entry.js +1 -1
  495. package/dist/kolibri/kol-card.entry.js.map +1 -1
  496. package/dist/kolibri/kol-combobox.entry.js +1 -1
  497. package/dist/kolibri/kol-combobox.entry.js.map +1 -1
  498. package/dist/kolibri/kol-details.entry.js +1 -1
  499. package/dist/kolibri/kol-details.entry.js.map +1 -1
  500. package/dist/kolibri/kol-drawer.entry.js +1 -1
  501. package/dist/kolibri/kol-drawer.entry.js.map +1 -1
  502. package/dist/kolibri/kol-form.entry.js +1 -1
  503. package/dist/kolibri/kol-form.entry.js.map +1 -1
  504. package/dist/kolibri/kol-heading.entry.js +1 -1
  505. package/dist/kolibri/kol-heading.entry.js.map +1 -1
  506. package/dist/kolibri/kol-icon.entry.js +1 -1
  507. package/dist/kolibri/kol-icon.entry.js.map +1 -1
  508. package/dist/kolibri/kol-image.entry.js +1 -1
  509. package/dist/kolibri/kol-image.entry.js.map +1 -1
  510. package/dist/kolibri/kol-input-checkbox.entry.js +1 -1
  511. package/dist/kolibri/kol-input-checkbox.entry.js.map +1 -1
  512. package/dist/kolibri/kol-input-color.entry.js +1 -1
  513. package/dist/kolibri/kol-input-color.entry.js.map +1 -1
  514. package/dist/kolibri/kol-input-date.entry.js +1 -1
  515. package/dist/kolibri/kol-input-date.entry.js.map +1 -1
  516. package/dist/kolibri/kol-input-email.entry.js +1 -1
  517. package/dist/kolibri/kol-input-email.entry.js.map +1 -1
  518. package/dist/kolibri/kol-input-file.entry.js +1 -1
  519. package/dist/kolibri/kol-input-file.entry.js.map +1 -1
  520. package/dist/kolibri/kol-input-number.entry.js +1 -1
  521. package/dist/kolibri/kol-input-number.entry.js.map +1 -1
  522. package/dist/kolibri/kol-input-password.entry.js +1 -1
  523. package/dist/kolibri/kol-input-password.entry.js.map +1 -1
  524. package/dist/kolibri/kol-input-radio.entry.js +1 -1
  525. package/dist/kolibri/kol-input-radio.entry.js.map +1 -1
  526. package/dist/kolibri/kol-input-range.entry.js +1 -1
  527. package/dist/kolibri/kol-input-range.entry.js.map +1 -1
  528. package/dist/kolibri/kol-input-text.entry.js +1 -1
  529. package/dist/kolibri/kol-input-text.entry.js.map +1 -1
  530. package/dist/kolibri/kol-input.entry.js +1 -1
  531. package/dist/kolibri/kol-kolibri.entry.js +1 -1
  532. package/dist/kolibri/kol-kolibri.entry.js.map +1 -1
  533. package/dist/kolibri/kol-link-button.entry.js +1 -1
  534. package/dist/kolibri/kol-link-button.entry.js.map +1 -1
  535. package/dist/kolibri/kol-link-wc.entry.js +1 -1
  536. package/dist/kolibri/kol-link-wc.entry.js.map +1 -1
  537. package/dist/kolibri/kol-link.entry.js +1 -1
  538. package/dist/kolibri/kol-link.entry.js.map +1 -1
  539. package/dist/kolibri/kol-modal.entry.js +1 -1
  540. package/dist/kolibri/kol-modal.entry.js.map +1 -1
  541. package/dist/kolibri/kol-nav.entry.js +1 -1
  542. package/dist/kolibri/kol-nav.entry.js.map +1 -1
  543. package/dist/kolibri/kol-pagination.entry.js +1 -1
  544. package/dist/kolibri/kol-pagination.entry.js.map +1 -1
  545. package/dist/kolibri/kol-popover-button.entry.js +4 -0
  546. package/dist/kolibri/kol-popover-button.entry.js.map +1 -0
  547. package/dist/kolibri/kol-popover-wc.entry.js +1 -1
  548. package/dist/kolibri/kol-popover-wc.entry.js.map +1 -1
  549. package/dist/kolibri/kol-progress.entry.js +1 -1
  550. package/dist/kolibri/kol-progress.entry.js.map +1 -1
  551. package/dist/kolibri/kol-quote.entry.js +1 -1
  552. package/dist/kolibri/kol-quote.entry.js.map +1 -1
  553. package/dist/kolibri/kol-select.entry.js +1 -1
  554. package/dist/kolibri/kol-select.entry.js.map +1 -1
  555. package/dist/kolibri/kol-single-select.entry.js +1 -1
  556. package/dist/kolibri/kol-single-select.entry.js.map +1 -1
  557. package/dist/kolibri/kol-skip-nav.entry.js +1 -1
  558. package/dist/kolibri/kol-skip-nav.entry.js.map +1 -1
  559. package/dist/kolibri/kol-spin.entry.js +1 -1
  560. package/dist/kolibri/kol-spin.entry.js.map +1 -1
  561. package/dist/kolibri/kol-split-button.entry.js +1 -1
  562. package/dist/kolibri/kol-split-button.entry.js.map +1 -1
  563. package/dist/kolibri/kol-table-stateful.entry.js +1 -1
  564. package/dist/kolibri/kol-table-stateful.entry.js.map +1 -1
  565. package/dist/kolibri/kol-table-stateless-wc.entry.js +1 -1
  566. package/dist/kolibri/kol-table-stateless.entry.js +1 -1
  567. package/dist/kolibri/kol-table-stateless.entry.js.map +1 -1
  568. package/dist/kolibri/kol-tabs.entry.js +1 -1
  569. package/dist/kolibri/kol-tabs.entry.js.map +1 -1
  570. package/dist/kolibri/kol-textarea.entry.js +1 -1
  571. package/dist/kolibri/kol-textarea.entry.js.map +1 -1
  572. package/dist/kolibri/kol-toast-container.entry.js +1 -1
  573. package/dist/kolibri/kol-toast-container.entry.js.map +1 -1
  574. package/dist/kolibri/kol-toolbar.entry.js +1 -1
  575. package/dist/kolibri/kol-toolbar.entry.js.map +1 -1
  576. package/dist/kolibri/kol-tooltip-wc.entry.js +1 -1
  577. package/dist/kolibri/kol-tree-item-wc.entry.js +1 -1
  578. package/dist/kolibri/kol-tree-item.entry.js +1 -1
  579. package/dist/kolibri/kol-tree-item.entry.js.map +1 -1
  580. package/dist/kolibri/kol-tree-wc.entry.js +1 -1
  581. package/dist/kolibri/kol-tree.entry.js +1 -1
  582. package/dist/kolibri/kol-tree.entry.js.map +1 -1
  583. package/dist/kolibri/kol-version.entry.js +1 -1
  584. package/dist/kolibri/kol-version.entry.js.map +1 -1
  585. package/dist/kolibri/kolibri.esm.js +1 -1
  586. package/dist/kolibri/kolibri.esm.js.map +1 -1
  587. package/dist/kolibri/test-component.entry.js +1 -1
  588. package/dist/types/components/button/shadow.d.ts +0 -1
  589. package/dist/types/components/button-link/shadow.d.ts +0 -1
  590. package/dist/types/components/combobox/shadow.d.ts +0 -2
  591. package/dist/types/components/component-list.d.ts +3 -3
  592. package/dist/types/components/input-checkbox/shadow.d.ts +0 -2
  593. package/dist/types/components/input-color/shadow.d.ts +0 -2
  594. package/dist/types/components/input-date/shadow.d.ts +0 -2
  595. package/dist/types/components/input-email/shadow.d.ts +0 -2
  596. package/dist/types/components/input-file/shadow.d.ts +5 -2
  597. package/dist/types/components/input-number/shadow.d.ts +0 -2
  598. package/dist/types/components/input-password/shadow.d.ts +0 -2
  599. package/dist/types/components/input-radio/shadow.d.ts +0 -2
  600. package/dist/types/components/input-range/shadow.d.ts +0 -2
  601. package/dist/types/components/input-text/shadow.d.ts +0 -2
  602. package/dist/types/components/link/shadow.d.ts +0 -1
  603. package/dist/types/components/link-button/shadow.d.ts +0 -1
  604. package/dist/types/components/popover-button/shadow.d.ts +39 -0
  605. package/dist/types/components/progress/shadow.d.ts +1 -1
  606. package/dist/types/components/single-select/controller.d.ts +3 -2
  607. package/dist/types/components/single-select/shadow.d.ts +6 -6
  608. package/dist/types/components/split-button/shadow.d.ts +0 -1
  609. package/dist/types/components/textarea/shadow.d.ts +0 -2
  610. package/dist/types/components.d.ts +200 -149
  611. package/dist/types/core/component-names.d.ts +1 -0
  612. package/dist/types/locales/de.d.ts +2 -0
  613. package/dist/types/locales/en.d.ts +2 -0
  614. package/dist/types/schema/components/combobox.d.ts +0 -2
  615. package/dist/types/schema/components/index.d.ts +1 -1
  616. package/dist/types/schema/components/input-checkbox.d.ts +0 -2
  617. package/dist/types/schema/components/input-color.d.ts +0 -2
  618. package/dist/types/schema/components/input-date.d.ts +0 -1
  619. package/dist/types/schema/components/input-email.d.ts +0 -2
  620. package/dist/types/schema/components/input-file.d.ts +0 -2
  621. package/dist/types/schema/components/input-number.d.ts +0 -1
  622. package/dist/types/schema/components/input-password.d.ts +0 -2
  623. package/dist/types/schema/components/input-radio.d.ts +0 -2
  624. package/dist/types/schema/components/input-range.d.ts +0 -2
  625. package/dist/types/schema/components/input-text.d.ts +0 -2
  626. package/dist/types/schema/components/popover-button.d.ts +9 -0
  627. package/dist/types/schema/components/single-select.d.ts +3 -3
  628. package/dist/types/schema/components/textarea.d.ts +0 -2
  629. package/dist/types/schema/index.d.ts +1 -1
  630. package/dist/types/schema/interfaces/EventDetail.d.ts +4 -0
  631. package/dist/types/schema/props/index.d.ts +1 -1
  632. package/dist/types/schema/props/popover-align.d.ts +7 -0
  633. package/dist/types/schema/tag-names.d.ts +18 -17
  634. package/dist/types/schema/types/input/control/number.d.ts +0 -1
  635. package/doc/button-link.md +0 -1
  636. package/doc/button.md +0 -1
  637. package/doc/combobox.md +0 -1
  638. package/doc/input-checkbox.md +0 -1
  639. package/doc/input-color.md +0 -1
  640. package/doc/input-date.md +0 -1
  641. package/doc/input-email.md +0 -1
  642. package/doc/input-file.md +0 -1
  643. package/doc/input-number.md +0 -1
  644. package/doc/input-password.md +0 -1
  645. package/doc/input-radio.md +0 -1
  646. package/doc/input-range.md +0 -1
  647. package/doc/input-text.md +0 -1
  648. package/doc/link-button.md +0 -1
  649. package/doc/link.md +0 -1
  650. package/doc/popover-button.md +42 -0
  651. package/doc/single-select.md +23 -23
  652. package/doc/split-button.md +0 -1
  653. package/doc/textarea.md +0 -1
  654. package/package.json +1 -1
  655. package/vscode-custom-data.json +169 -72
  656. package/dist/cjs/FormFieldMsg-370f014e.js +0 -4
  657. package/dist/cjs/Icon-0eed071b.js +0 -4
  658. package/dist/cjs/component-names-cf0c0d8a.js +0 -4
  659. package/dist/cjs/component-names-cf0c0d8a.js.map +0 -1
  660. package/dist/cjs/getRenderStates-3c874ec5.js +0 -4
  661. package/dist/cjs/getRenderStates-3c874ec5.js.map +0 -1
  662. package/dist/cjs/i18n-737701e2.js +0 -4
  663. package/dist/cjs/i18n-737701e2.js.map +0 -1
  664. package/dist/cjs/index-07fcbac9.js +0 -4
  665. package/dist/esm/component-names-a18a51c8.js +0 -4
  666. package/dist/esm/component-names-a18a51c8.js.map +0 -1
  667. package/dist/esm/getRenderStates-a7a33541.js +0 -4
  668. package/dist/esm/getRenderStates-a7a33541.js.map +0 -1
  669. package/dist/esm/i18n-7ea9f137.js +0 -4
  670. package/dist/esm/i18n-7ea9f137.js.map +0 -1
  671. package/dist/esm/index-91489a9f.js +0 -4
  672. package/dist/kolibri/FormFieldMsg-1ed3f51d.js +0 -4
  673. package/dist/kolibri/Icon-936c5cfc.js +0 -4
  674. package/dist/kolibri/Input-40160769.js +0 -4
  675. package/dist/kolibri/app-globals-1242eb39.js +0 -4
  676. package/dist/kolibri/component-names-a18a51c8.js +0 -4
  677. package/dist/kolibri/component-names-a18a51c8.js.map +0 -1
  678. package/dist/kolibri/devtools-5850e9b1.js +0 -4
  679. package/dist/kolibri/getRenderStates-a7a33541.js +0 -4
  680. package/dist/kolibri/getRenderStates-a7a33541.js.map +0 -1
  681. package/dist/kolibri/i18n-5fe08f1c.js +0 -4
  682. package/dist/kolibri/i18n-7ea9f137.js +0 -4
  683. package/dist/kolibri/i18n-7ea9f137.js.map +0 -1
  684. /package/dist/kolibri/{Alert-080adf2e.js.map → Alert-fb4611d9.js.map} +0 -0
  685. /package/dist/kolibri/{Collapsible-cc9fb8f0.js.map → Collapsible-fb8abe4a.js.map} +0 -0
  686. /package/dist/kolibri/{CustomSuggestionsOptionsGroup-1505a9ba.js.map → CustomSuggestionsOptionsGroup-a10a4cf2.js.map} +0 -0
  687. /package/dist/kolibri/{FieldControlStateWrapper-5432d9b6.js.map → FieldControlStateWrapper-eab24f20.js.map} +0 -0
  688. /package/dist/kolibri/{FormFieldMsg-1ed3f51d.js.map → FormFieldMsg-00f6a985.js.map} +0 -0
  689. /package/dist/kolibri/{Heading-0459992b.js.map → Heading-e581ac05.js.map} +0 -0
  690. /package/dist/kolibri/{Icon-936c5cfc.js.map → Icon-0127c9ad.js.map} +0 -0
  691. /package/dist/kolibri/{Input-40160769.js.map → Input-3c3e229e.js.map} +0 -0
  692. /package/dist/kolibri/{InputStateWrapper-e1a2298b.js.map → InputStateWrapper-e55ca6b7.js.map} +0 -0
  693. /package/dist/kolibri/{InternalUnderlinedBadgeText-22278de8.js.map → InternalUnderlinedBadgeText-e33ead64.js.map} +0 -0
  694. /package/dist/kolibri/{Span-97af2595.js.map → Span-d5aaae43.js.map} +0 -0
  695. /package/dist/kolibri/{app-globals-1242eb39.js.map → app-globals-1e7de5a5.js.map} +0 -0
  696. /package/dist/kolibri/{controller-eb6f1a77.js.map → controller-6727a24c.js.map} +0 -0
  697. /package/dist/kolibri/{controller-e699ee47.js.map → controller-7d258ad2.js.map} +0 -0
  698. /package/dist/kolibri/{controller-502cff08.js.map → controller-b00e9aff.js.map} +0 -0
  699. /package/dist/kolibri/{controller-002a86ad.js.map → controller-f84a4671.js.map} +0 -0
  700. /package/dist/kolibri/{controller-icon-4be72f9f.js.map → controller-icon-00be418c.js.map} +0 -0
  701. /package/dist/kolibri/{dev.utils-b9e6a3e1.js.map → dev.utils-7a7f446c.js.map} +0 -0
  702. /package/dist/kolibri/{i18n-5fe08f1c.js.map → i18n-35276313.js.map} +0 -0
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ "use strict";const prop_validators=require("./prop.validators-96dfedce.js"),common=require("./common-1ab929ac.js"),tslib_es6=require("./tslib.es6-5e301284.js"),clsx=require("./clsx-dd4d6dd1.js"),index=require("./index-5eda7e82.js"),Alert=require("./Alert-a5b198e6.js");function transformObjectProperties(e){return Object.entries(e).reduce(((e,[r,s])=>{const t=r.startsWith("_")?r.slice(1):r;return Object.assign(Object.assign({},e),{[t]:s})}),{})}const validateMsg=(e,r)=>{prop_validators.objectObjectHandler(r,(()=>{try{r=prop_validators.parseJson(r)}catch(e){}prop_validators.watchValidator(e,"_msg",(e=>common.isObject(e)&&"string"==typeof(null==e?void 0:e._description)),new Set(["MsgPropType"]),r,{defaultValue:{_description:"",_type:"error"}})}))};function isMsgEmpty(e){return!e||"error"===e._type&&!e._description}function convertMsgToInternMsg(e){if(e&&!isMsgEmpty(e))return transformObjectProperties(e)}function checkHasError(e,r){return Boolean((null==e?void 0:e.description)&&(null==e?void 0:e.description.length)>0)&&(!0===r||"error"!==(null==e?void 0:e.type))}const FormFieldMsgFc=e=>{var{alert:r,msg:s,hideMsg:t,id:o,class:i}=e,n=tslib_es6.__rest(e,["alert","msg","hideMsg","id","class"]);return index.h(Alert.KolAlertFc,Object.assign({id:`${o}-msg`,alert:r,type:"error",class:clsx.clsx("kol-form-field__msg",{"visually-hidden":!0===t},i)},s,n,{"aria-hidden":"true"}),(null==s?void 0:s.description)||void 0)},KolFormFieldMsgFc=FormFieldMsgFc;exports.KolFormFieldMsgFc=KolFormFieldMsgFc,exports.checkHasError=checkHasError,exports.convertMsgToInternMsg=convertMsgToInternMsg,exports.validateMsg=validateMsg;
@@ -1 +1 @@
1
- {"file":"FormFieldMsg-370f014e.js","mappings":";;;;;;;;;;;;SAuBgB,yBAAyB,CACxC,GAAM;IAIN,OAAO,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,CAChC,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,KAAK,CAAC;QACjB,MAAM,MAAM,GAAG,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC;QACxD,uCACI,GAAG,KACN,CAAC,MAAM,GAAG,KAAK,IACd;KACF,EACD,EAEC,CACD,CAAC;AACH;;MCda,WAAW,GAAG,CAAC,SAAoC,EAAE,KAAgC;IACjGA,mCAAmB,CAAC,KAAK,EAAE;QAC1B,IAAI;YACH,KAAK,GAAGC,yBAAS,CAAc,KAAK,CAAC,CAAC;SAEtC;QAAC,OAAO,CAAC,EAAE;SAEX;QACDC,8BAAc,CACb,SAAS,EACT,MAAM,EACN,CAAC,KAAK,KAAKC,eAAQ,CAAC,KAAK,CAAC,IAAI,QAAO,KAAK,aAAL,KAAK,uBAAL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AAK,EAAEC,SAAI,CAAC,qBAAqB,EAAE,EAAE,iBAAiB,EAAE,OAAO,KAAK,IAAI,EAAE,EAAE,UAAU,CAAC,IACnF,GAAG,EACH,KAAK,mBACG,MAAM,KAEjB,CAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,WAAW,KAAI,SAAS,CAClB,EACb;CAAA,CAAC;AAEF,0BAAe,cAAc;;;;;;;","names":["objectObjectHandler","parseJson","watchValidator","isObject","h","KolAlertFc","clsx"],"sources":["src/utils/transformObjectProperties.ts","src/schema/props/msg.ts","src/functional-components/FormFieldMsg/FormFieldMsg.tsx"],"sourcesContent":["/**\n * Transforms keys with leading underscores, keeping non-underscore keys unchanged.\n *\n * @template K The original key type\n * @returns Transformed key type\n */\ntype TransformKeys<K> = K extends `_${infer Rest}` ? Rest : K;\n\n/**\n * Transforms object properties by removing leading underscores from key names.\n *\n * This method is useful for converting objects from a naming convention with leading underscores\n * (often used for private or internal properties) to a standard naming format.\n *\n * @param obj The input object with potential underscore prefixes\n * @returns A new object with underscores removed from key names\n *\n * @example\n * // Converts object with underscore-prefixed keys\n * const input = { _name: 'John', _age: 30 };\n * const result = transformObjectProperties(input);\n * // result is { name: 'John', age: 30 }\n */\nexport function transformObjectProperties<T extends Record<string, unknown>>(\n\tobj: T,\n): {\n\t[K in keyof T as TransformKeys<K>]: T[K];\n} {\n\treturn Object.entries(obj).reduce(\n\t\t(acc, [key, value]) => {\n\t\t\tconst newKey = key.startsWith('_') ? key.slice(1) : key;\n\t\t\treturn {\n\t\t\t\t...acc,\n\t\t\t\t[newKey]: value,\n\t\t\t};\n\t\t},\n\t\t{} as {\n\t\t\t[K in keyof T as TransformKeys<K>]: T[K];\n\t\t},\n\t);\n}\n","import type { Generic } from 'adopted-style-sheets';\nimport type { AlertProps, InternalAlertProps } from '../components';\nimport type { Stringified } from '../types';\nimport { objectObjectHandler, parseJson, watchValidator } from '../utils';\nimport { isObject } from '../validators';\nimport { transformObjectProperties } from '../../utils/transformObjectProperties';\n\n/* types */\nexport type MsgPropType = AlertProps & {\n\t_description: string;\n};\n\nexport type InternMsgPropType = Partial<\n\tInternalAlertProps & {\n\t\tdescription: string;\n\t}\n>;\n\n/**\n * Defines the properties for a message rendered as Alert component.\n */\nexport type PropMsg = {\n\tmsg: MsgPropType;\n};\n\n/* validator */\nexport const validateMsg = (component: Generic.Element.Component, value?: Stringified<MsgPropType>): void => {\n\tobjectObjectHandler(value, () => {\n\t\ttry {\n\t\t\tvalue = parseJson<MsgPropType>(value);\n\t\t\t// eslint-disable-next-line no-empty\n\t\t} catch (e) {\n\t\t\t// value keeps original value\n\t\t}\n\t\twatchValidator<MsgPropType>(\n\t\t\tcomponent,\n\t\t\t`_msg`,\n\t\t\t(value) => isObject(value) && typeof value?._description === 'string',\n\t\t\tnew Set(['MsgPropType']),\n\t\t\tvalue as MsgPropType,\n\t\t\t{\n\t\t\t\tdefaultValue: {\n\t\t\t\t\t_description: '',\n\t\t\t\t\t_type: 'error',\n\t\t\t\t},\n\t\t\t},\n\t\t);\n\t});\n};\n\nexport function isMsgEmpty(msg?: MsgPropType): boolean {\n\tif (!msg) {\n\t\treturn true;\n\t}\n\n\treturn msg._type === 'error' && !msg._description;\n}\n\nexport function convertMsgToInternMsg(msg?: MsgPropType): InternMsgPropType | undefined {\n\tif (!msg || isMsgEmpty(msg)) {\n\t\treturn undefined;\n\t}\n\n\treturn transformObjectProperties(msg);\n}\n\nexport function checkHasError(msg?: InternMsgPropType, touched?: boolean): boolean {\n\t/**\n\t * We support 5 types of messages:\n\t * - default\n\t * - info\n\t * - success\n\t * - warning\n\t * - error\n\t *\n\t * The message is shown if:\n\t * - the message text is not an empty string\n\t * - we show only one message at a time\n\t * - by error messages the input must be touched\n\t */\n\tconst hasValidMsg = Boolean(msg?.description && msg?.description.length > 0);\n\tconst showMsg = hasValidMsg && (touched === true || msg?.type !== 'error');\n\n\treturn showMsg;\n}\n","import clsx from 'clsx';\nimport type { AlertPropType, HideMsgPropType, IdPropType, InternMsgPropType } from '../../schema';\nimport type { FunctionalComponent } from '@stencil/core';\nimport { h } from '@stencil/core';\nimport KolAlertFc from '../Alert';\nimport type { JSXBase } from '@stencil/core/internal';\n\ntype FormFieldMsgProps = JSXBase.HTMLAttributes<HTMLDivElement> & {\n\talert?: AlertPropType;\n\tmsg?: InternMsgPropType;\n\thideMsg?: HideMsgPropType;\n\tid: IdPropType;\n};\n\nconst FormFieldMsgFc: FunctionalComponent<FormFieldMsgProps> = ({ alert, msg, hideMsg, id, class: classNames, ...other }) => (\n\t<KolAlertFc\n\t\tid={`${id}-msg`}\n\t\talert={alert}\n\t\ttype=\"error\"\n\t\tclass={clsx('kol-form-field__msg', { 'visually-hidden': hideMsg === true }, classNames)}\n\t\t{...msg}\n\t\t{...other}\n\t\taria-hidden=\"true\"\n\t>\n\t\t{msg?.description || undefined}\n\t</KolAlertFc>\n);\n\nexport default FormFieldMsgFc;\n"],"version":3}
1
+ {"file":"FormFieldMsg-e1ae42e0.js","mappings":";;;;;;;;;;;;SAuBgB,yBAAyB,CACxC,GAAM;IAIN,OAAO,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,CAChC,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,KAAK,CAAC;QACjB,MAAM,MAAM,GAAG,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC;QACxD,uCACI,GAAG,KACN,CAAC,MAAM,GAAG,KAAK,IACd;KACF,EACD,EAEC,CACD,CAAC;AACH;;MCda,WAAW,GAAG,CAAC,SAAoC,EAAE,KAAgC;IACjGA,mCAAmB,CAAC,KAAK,EAAE;QAC1B,IAAI;YACH,KAAK,GAAGC,yBAAS,CAAc,KAAK,CAAC,CAAC;SAEtC;QAAC,OAAO,CAAC,EAAE;SAEX;QACDC,8BAAc,CACb,SAAS,EACT,MAAM,EACN,CAAC,KAAK,KAAKC,eAAQ,CAAC,KAA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,EAAE,KAAK,EACZ,IAAI,EAAC,OAAO,EACZ,KAAK,EAAEC,SAAI,CAAC,qBAAqB,EAAE,EAAE,iBAAiB,EAAE,OAAO,KAAK,IAAI,EAAE,EAAE,UAAU,CAAC,IACnF,GAAG,EACH,KAAK,mBACG,MAAM,KAEjB,CAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,WAAW,KAAI,SAAS,CAClB,EACb;CAAA,CAAC;AAEF,0BAAe,cAAc;;;;;;;","names":["objectObjectHandler","parseJson","watchValidator","isObject","h","KolAlertFc","clsx"],"sources":["src/utils/transformObjectProperties.ts","src/schema/props/msg.ts","src/functional-components/FormFieldMsg/FormFieldMsg.tsx"],"sourcesContent":["/**\n * Transforms keys with leading underscores, keeping non-underscore keys unchanged.\n *\n * @template K The original key type\n * @returns Transformed key type\n */\ntype TransformKeys<K> = K extends `_${infer Rest}` ? Rest : K;\n\n/**\n * Transforms object properties by removing leading underscores from key names.\n *\n * This method is useful for converting objects from a naming convention with leading underscores\n * (often used for private or internal properties) to a standard naming format.\n *\n * @param obj The input object with potential underscore prefixes\n * @returns A new object with underscores removed from key names\n *\n * @example\n * // Converts object with underscore-prefixed keys\n * const input = { _name: 'John', _age: 30 };\n * const result = transformObjectProperties(input);\n * // result is { name: 'John', age: 30 }\n */\nexport function transformObjectProperties<T extends Record<string, unknown>>(\n\tobj: T,\n): {\n\t[K in keyof T as TransformKeys<K>]: T[K];\n} {\n\treturn Object.entries(obj).reduce(\n\t\t(acc, [key, value]) => {\n\t\t\tconst newKey = key.startsWith('_') ? key.slice(1) : key;\n\t\t\treturn {\n\t\t\t\t...acc,\n\t\t\t\t[newKey]: value,\n\t\t\t};\n\t\t},\n\t\t{} as {\n\t\t\t[K in keyof T as TransformKeys<K>]: T[K];\n\t\t},\n\t);\n}\n","import type { Generic } from 'adopted-style-sheets';\nimport type { AlertProps, InternalAlertProps } from '../components';\nimport type { Stringified } from '../types';\nimport { objectObjectHandler, parseJson, watchValidator } from '../utils';\nimport { isObject } from '../validators';\nimport { transformObjectProperties } from '../../utils/transformObjectProperties';\n\n/* types */\nexport type MsgPropType = AlertProps & {\n\t_description: string;\n};\n\nexport type InternMsgPropType = Partial<\n\tInternalAlertProps & {\n\t\tdescription: string;\n\t}\n>;\n\n/**\n * Defines the properties for a message rendered as Alert component.\n */\nexport type PropMsg = {\n\tmsg: MsgPropType;\n};\n\n/* validator */\nexport const validateMsg = (component: Generic.Element.Component, value?: Stringified<MsgPropType>): void => {\n\tobjectObjectHandler(value, () => {\n\t\ttry {\n\t\t\tvalue = parseJson<MsgPropType>(value);\n\t\t\t// eslint-disable-next-line no-empty\n\t\t} catch (e) {\n\t\t\t// value keeps original value\n\t\t}\n\t\twatchValidator<MsgPropType>(\n\t\t\tcomponent,\n\t\t\t`_msg`,\n\t\t\t(value) => isObject(value) && typeof value?._description === 'string',\n\t\t\tnew Set(['MsgPropType']),\n\t\t\tvalue as MsgPropType,\n\t\t\t{\n\t\t\t\tdefaultValue: {\n\t\t\t\t\t_description: '',\n\t\t\t\t\t_type: 'error',\n\t\t\t\t},\n\t\t\t},\n\t\t);\n\t});\n};\n\nexport function isMsgEmpty(msg?: MsgPropType): boolean {\n\tif (!msg) {\n\t\treturn true;\n\t}\n\n\treturn msg._type === 'error' && !msg._description;\n}\n\nexport function convertMsgToInternMsg(msg?: MsgPropType): InternMsgPropType | undefined {\n\tif (!msg || isMsgEmpty(msg)) {\n\t\treturn undefined;\n\t}\n\n\treturn transformObjectProperties(msg);\n}\n\nexport function checkHasError(msg?: InternMsgPropType, touched?: boolean): boolean {\n\t/**\n\t * We support 5 types of messages:\n\t * - default\n\t * - info\n\t * - success\n\t * - warning\n\t * - error\n\t *\n\t * The message is shown if:\n\t * - the message text is not an empty string\n\t * - we show only one message at a time\n\t * - by error messages the input must be touched\n\t */\n\tconst hasValidMsg = Boolean(msg?.description && msg?.description.length > 0);\n\tconst showMsg = hasValidMsg && (touched === true || msg?.type !== 'error');\n\n\treturn showMsg;\n}\n","import clsx from 'clsx';\nimport type { AlertPropType, HideMsgPropType, IdPropType, InternMsgPropType } from '../../schema';\nimport type { FunctionalComponent } from '@stencil/core';\nimport { h } from '@stencil/core';\nimport KolAlertFc from '../Alert';\nimport type { JSXBase } from '@stencil/core/internal';\n\ntype FormFieldMsgProps = JSXBase.HTMLAttributes<HTMLDivElement> & {\n\talert?: AlertPropType;\n\tmsg?: InternMsgPropType;\n\thideMsg?: HideMsgPropType;\n\tid: IdPropType;\n};\n\nconst FormFieldMsgFc: FunctionalComponent<FormFieldMsgProps> = ({ alert, msg, hideMsg, id, class: classNames, ...other }) => (\n\t<KolAlertFc\n\t\tid={`${id}-msg`}\n\t\talert={alert}\n\t\ttype=\"error\"\n\t\tclass={clsx('kol-form-field__msg', { 'visually-hidden': hideMsg === true }, classNames)}\n\t\t{...msg}\n\t\t{...other}\n\t\taria-hidden=\"true\"\n\t>\n\t\t{msg?.description || undefined}\n\t</KolAlertFc>\n);\n\nexport default FormFieldMsgFc;\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";const tslib_es6=require("./tslib.es6-5e301284.js"),index=require("./index-07fcbac9.js"),clsx=require("./clsx-dd4d6dd1.js"),MIN_HEADING_LEVEL=1,MAX_HEADING_LEVEL=6;function isValidHeadingLevel(e){return e>=MIN_HEADING_LEVEL&&e<=6}function getHeadlineTag(e){return isValidHeadingLevel(e)?`h${e}`:"strong"}function getSubHeadlineTag(e){return 1===e?"span":getHeadlineTag(e)}const KolHeadlineFc=(e,s)=>{var{class:l,level:n=MIN_HEADING_LEVEL,variant:a}=e,i=tslib_es6.__rest(e,["class","level","variant"]);const c=getHeadlineTag(n),d=a||c;return index.h(c,Object.assign({class:clsx.clsx("kol-headline",`kol-headline--${d}`,l)},i),s)},KolSecondaryHeadlineFc=(e,s)=>{var{class:l,level:n=MIN_HEADING_LEVEL}=e,a=tslib_es6.__rest(e,["class","level"]);const i=getSubHeadlineTag(n+1);return index.h(i,Object.assign({class:clsx.clsx("kol-headline kol-headline--group kol-headline--secondary",l)},a),s)},KolHeadingFc=(e,s)=>{var{secondaryHeadline:l,level:n=MIN_HEADING_LEVEL,class:a,HeadingGroupProps:i={},SecondaryHeadlineProps:c={}}=e,d=tslib_es6.__rest(e,["secondaryHeadline","level","class","HeadingGroupProps","SecondaryHeadlineProps"]);const r=Object.assign({level:n},d);if(!l)return index.h(KolHeadlineFc,Object.assign({class:clsx.clsx(a,"kol-headline--single")},r),s);const{class:o}=i,t=tslib_es6.__rest(i,["class"]),g=Object.assign({class:clsx.clsx("kol-heading-group",o)},t);return index.h("hgroup",Object.assign({},g),index.h(KolHeadlineFc,Object.assign({class:clsx.clsx(a,"kol-headline--group","kol-headline--primary")},r),s),index.h(KolSecondaryHeadlineFc,Object.assign({level:n},c),l))},KolHeadingFc$1=KolHeadingFc;exports.KolHeadingFc=KolHeadingFc$1;
4
+ "use strict";const tslib_es6=require("./tslib.es6-5e301284.js"),index=require("./index-5eda7e82.js"),clsx=require("./clsx-dd4d6dd1.js"),MIN_HEADING_LEVEL=1,MAX_HEADING_LEVEL=6;function isValidHeadingLevel(e){return e>=MIN_HEADING_LEVEL&&e<=6}function getHeadlineTag(e){return isValidHeadingLevel(e)?`h${e}`:"strong"}function getSubHeadlineTag(e){return 1===e?"span":getHeadlineTag(e)}const KolHeadlineFc=(e,s)=>{var{class:l,level:n=MIN_HEADING_LEVEL,variant:a}=e,i=tslib_es6.__rest(e,["class","level","variant"]);const c=getHeadlineTag(n),d=a||c;return index.h(c,Object.assign({class:clsx.clsx("kol-headline",`kol-headline--${d}`,l)},i),s)},KolSecondaryHeadlineFc=(e,s)=>{var{class:l,level:n=MIN_HEADING_LEVEL}=e,a=tslib_es6.__rest(e,["class","level"]);const i=getSubHeadlineTag(n+1);return index.h(i,Object.assign({class:clsx.clsx("kol-headline kol-headline--group kol-headline--secondary",l)},a),s)},KolHeadingFc=(e,s)=>{var{secondaryHeadline:l,level:n=MIN_HEADING_LEVEL,class:a,HeadingGroupProps:i={},SecondaryHeadlineProps:c={}}=e,d=tslib_es6.__rest(e,["secondaryHeadline","level","class","HeadingGroupProps","SecondaryHeadlineProps"]);const r=Object.assign({level:n},d);if(!l)return index.h(KolHeadlineFc,Object.assign({class:clsx.clsx(a,"kol-headline--single")},r),s);const{class:o}=i,t=tslib_es6.__rest(i,["class"]),g=Object.assign({class:clsx.clsx("kol-heading-group",o)},t);return index.h("hgroup",Object.assign({},g),index.h(KolHeadlineFc,Object.assign({class:clsx.clsx(a,"kol-headline--group","kol-headline--primary")},r),s),index.h(KolSecondaryHeadlineFc,Object.assign({level:n},c),l))},KolHeadingFc$1=KolHeadingFc;exports.KolHeadingFc=KolHeadingFc$1;
@@ -1 +1 @@
1
- {"file":"Heading-f5dd89a7.js","mappings":";;;;;;;;;AA2BA,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAC5B,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAW5B,SAAS,mBAAmB,CAAC,KAAa;IACzC,OAAO,KAAK,IAAI,iBAAiB,IAAI,KAAK,IAAI,iBAAiB,CAAC;AACjE,CAAC;SAQe,cAAc,CAAC,KAA4B;IAC1D,OAAO,mBAAmB,CAAC,KAAK,CAAC,GAAI,IAAI,KAAK,EAAkB,GAAG,QAAQ,CAAC;AAC7E,CAAC;SAQe,iBAAiB,CAAC,KAA4B;IAC7D,OAAO,KAAK,KAAK,CAAC,GAAG,MAAM,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AACrD,CAAC;AAQD,MAAM,aAAa,GAAsB,CAAC,EAAmE,EAAE,QAAQ;QAA7E,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,GAAG,iBAAiB,EAAE,OAAO,OAAY,EAAP,KAAK,wBAAjE,6BAAmE,CAAF;IAC1G,MAAM,WAAW,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;IAC1C,MAAM,YAAY,GAAG,OAAO,IAAI,WAAW,CAAC;IAE5C,QACC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AE,qBAAqB,EAAE,uBAAuB,CAAC,IAAM,aAAa,GACvG,QAAQ,CACM;QAChBD,QAAC,sBAAsB,kBAAC,KAAK,EAAE,KAAK,IAAM,sBAAsB,GAC9D,iBAAiB,CACM,CACjB,EACR;AACH,CAAC,CAAC;AAEF,uBAAe,YAAY;;;;","names":["h","clsx"],"sources":["src/functional-components/Heading/Heading.tsx"],"sourcesContent":["import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport clsx from 'clsx';\nimport type { JSXBase } from '@stencil/core/internal';\nimport type { HeadingLevel, HeadingVariantPropType } from '../../schema';\n\ntype HGroupProps = JSXBase.HTMLAttributes<HTMLElement>;\n\n// Define a base type for common props\ntype BaseProps = JSXBase.HTMLAttributes<HTMLHeadingElement | HTMLElement> & {\n\tlevel?: HeadingLevel;\n};\n\n// Define a type for the main headline props\ntype HeadlineProps = BaseProps & {\n\tvariant?: HeadingVariantPropType;\n};\n\n// Define a type for the secondary headline props\ntype SecondaryHeadlineProps = BaseProps;\n\n// Define a type for the main Heading component props\nexport type HeadingProps = HeadlineProps & {\n\tsecondaryHeadline?: string;\n\tHeadingGroupProps?: HGroupProps;\n\tSecondaryHeadlineProps?: JSXBase.HTMLAttributes<HTMLHeadingElement | HTMLElement>;\n};\n\nconst MIN_HEADING_LEVEL = 1;\nconst MAX_HEADING_LEVEL = 6;\n\n// Define a union type for valid headline tags\ntype HeadlineTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'strong';\ntype SubHeadlineTag = 'span' | HeadlineTag;\n\n/**\n * Checks if the given level is a valid heading level.\n * @param level - The heading level to check.\n * @returns True if the level is valid, false otherwise.\n */\nfunction isValidHeadingLevel(level: number): boolean {\n\treturn level >= MIN_HEADING_LEVEL && level <= MAX_HEADING_LEVEL;\n}\n\n/**\n * Returns the appropriate headline tag based on the level.\n * If the level is invalid, returns 'strong'.\n * @param level - The heading level.\n * @returns The corresponding headline tag.\n */\nexport function getHeadlineTag(level: HeadingLevel | number): HeadlineTag {\n\treturn isValidHeadingLevel(level) ? (`h${level}` as HeadlineTag) : 'strong';\n}\n\n/**\n * Returns the appropriate sub-headline tag based on the level.\n * If the level is 1, returns 'span', otherwise returns the headline tag.\n * @param level - The heading level.\n * @returns The corresponding sub-headline tag.\n */\nexport function getSubHeadlineTag(level: HeadingLevel | number): SubHeadlineTag {\n\treturn level === 1 ? 'span' : getHeadlineTag(level);\n}\n\n/**\n * Functional component for rendering a headline.\n * @param props - The properties for the headline component.\n * @param children - The children to render inside the headline.\n * @returns A VNode representing the headline.\n */\nconst KolHeadlineFc: FC<HeadlineProps> = ({ class: classNames, level = MIN_HEADING_LEVEL, variant, ...other }, children) => {\n\tconst HeadlineTag = getHeadlineTag(level);\n\tconst finalVariant = variant || HeadlineTag;\n\n\treturn (\n\t\t<HeadlineTag class={clsx('kol-headline', `kol-headline--${finalVariant}`, classNames)} {...other}>\n\t\t\t{children}\n\t\t</HeadlineTag>\n\t);\n};\n\n/**\n * Functional component for rendering a secondary headline.\n * @param props - The properties for the secondary headline component.\n * @param children - The children to render inside the secondary headline.\n * @returns A VNode representing the secondary headline.\n */\nconst KolSecondaryHeadlineFc: FC<SecondaryHeadlineProps> = ({ class: classNames, level = MIN_HEADING_LEVEL, ...other }, children) => {\n\tconst HeadlineTag = getSubHeadlineTag(level + 1);\n\n\treturn (\n\t\t<HeadlineTag class={clsx('kol-headline kol-headline--group kol-headline--secondary', classNames)} {...other}>\n\t\t\t{children}\n\t\t</HeadlineTag>\n\t);\n};\n\n/**\n * Functional component for rendering a heading with an optional secondary headline.\n * @param props - The properties for the heading component.\n * @param children - The children to render inside the heading.\n * @returns A VNode representing the heading.\n */\nconst KolHeadingFc: FC<HeadingProps> = (\n\t{ secondaryHeadline, level = MIN_HEADING_LEVEL, class: classNames, HeadingGroupProps = {}, SecondaryHeadlineProps = {}, ...other },\n\tchildren,\n) => {\n\tconst headlineProps: HeadlineProps = {\n\t\tlevel,\n\t\t...other,\n\t};\n\n\tif (!secondaryHeadline) {\n\t\treturn (\n\t\t\t<KolHeadlineFc class={clsx(classNames, 'kol-headline--single')} {...headlineProps}>\n\t\t\t\t{children}\n\t\t\t</KolHeadlineFc>\n\t\t);\n\t}\n\n\tconst { class: groupClassNames, ...groupOthers } = HeadingGroupProps;\n\tconst headlineGroupProps: HGroupProps = {\n\t\tclass: clsx('kol-heading-group', groupClassNames),\n\t\t...groupOthers,\n\t};\n\n\treturn (\n\t\t<hgroup {...headlineGroupProps}>\n\t\t\t<KolHeadlineFc class={clsx(classNames, 'kol-headline--group', 'kol-headline--primary')} {...headlineProps}>\n\t\t\t\t{children}\n\t\t\t</KolHeadlineFc>\n\t\t\t<KolSecondaryHeadlineFc level={level} {...SecondaryHeadlineProps}>\n\t\t\t\t{secondaryHeadline}\n\t\t\t</KolSecondaryHeadlineFc>\n\t\t</hgroup>\n\t);\n};\n\nexport default KolHeadingFc;\n"],"version":3}
1
+ {"file":"Heading-11d92da1.js","mappings":";;;;;;;;;AA2BA,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAC5B,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAW5B,SAAS,mBAAmB,CAAC,KAAa;IACzC,OAAO,KAAK,IAAI,iBAAiB,IAAI,KAAK,IAAI,iBAAiB,CAAC;AACjE,CAAC;SAQe,cAAc,CAAC,KAA4B;IAC1D,OAAO,mBAAmB,CAAC,KAAK,CAAC,GAAI,IAAI,KAAK,EAAkB,GAAG,QAAQ,CAAC;AAC7E,CAAC;SAQe,iBAAiB,CAAC,KAA4B;IAC7D,OAAO,KAAK,KAAK,CAAC,GAAG,MAAM,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AACrD,CAAC;AAQD,MAAM,aAAa,GAAsB,CAAC,EAAmE,EAAE,QAAQ;QAA7E,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,GAAG,iBAAiB,EAAE,OAAO,OAAY,EAAP,KAAK,wBAAjE,6BAAmE,CAAF;IAC1G,MAAM,WAAW,GAAG,cAAc,CAA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CD,oCAAY,kBAAkB;QAC7BA,QAAC,aAAa,kBAAC,KAAK,EAAEC,SAAI,CAAC,UAAU,EAAE,qBAAqB,EAAE,uBAAuB,CAAC,IAAM,aAAa,GACvG,QAAQ,CACM;QAChBD,QAAC,sBAAsB,kBAAC,KAAK,EAAE,KAAK,IAAM,sBAAsB,GAC9D,iBAAiB,CACM,CACjB,EACR;AACH,CAAC,CAAC;AAEF,uBAAe,YAAY;;;;","names":["h","clsx"],"sources":["src/functional-components/Heading/Heading.tsx"],"sourcesContent":["import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport clsx from 'clsx';\nimport type { JSXBase } from '@stencil/core/internal';\nimport type { HeadingLevel, HeadingVariantPropType } from '../../schema';\n\ntype HGroupProps = JSXBase.HTMLAttributes<HTMLElement>;\n\n// Define a base type for common props\ntype BaseProps = JSXBase.HTMLAttributes<HTMLHeadingElement | HTMLElement> & {\n\tlevel?: HeadingLevel;\n};\n\n// Define a type for the main headline props\ntype HeadlineProps = BaseProps & {\n\tvariant?: HeadingVariantPropType;\n};\n\n// Define a type for the secondary headline props\ntype SecondaryHeadlineProps = BaseProps;\n\n// Define a type for the main Heading component props\nexport type HeadingProps = HeadlineProps & {\n\tsecondaryHeadline?: string;\n\tHeadingGroupProps?: HGroupProps;\n\tSecondaryHeadlineProps?: JSXBase.HTMLAttributes<HTMLHeadingElement | HTMLElement>;\n};\n\nconst MIN_HEADING_LEVEL = 1;\nconst MAX_HEADING_LEVEL = 6;\n\n// Define a union type for valid headline tags\ntype HeadlineTag = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'strong';\ntype SubHeadlineTag = 'span' | HeadlineTag;\n\n/**\n * Checks if the given level is a valid heading level.\n * @param level - The heading level to check.\n * @returns True if the level is valid, false otherwise.\n */\nfunction isValidHeadingLevel(level: number): boolean {\n\treturn level >= MIN_HEADING_LEVEL && level <= MAX_HEADING_LEVEL;\n}\n\n/**\n * Returns the appropriate headline tag based on the level.\n * If the level is invalid, returns 'strong'.\n * @param level - The heading level.\n * @returns The corresponding headline tag.\n */\nexport function getHeadlineTag(level: HeadingLevel | number): HeadlineTag {\n\treturn isValidHeadingLevel(level) ? (`h${level}` as HeadlineTag) : 'strong';\n}\n\n/**\n * Returns the appropriate sub-headline tag based on the level.\n * If the level is 1, returns 'span', otherwise returns the headline tag.\n * @param level - The heading level.\n * @returns The corresponding sub-headline tag.\n */\nexport function getSubHeadlineTag(level: HeadingLevel | number): SubHeadlineTag {\n\treturn level === 1 ? 'span' : getHeadlineTag(level);\n}\n\n/**\n * Functional component for rendering a headline.\n * @param props - The properties for the headline component.\n * @param children - The children to render inside the headline.\n * @returns A VNode representing the headline.\n */\nconst KolHeadlineFc: FC<HeadlineProps> = ({ class: classNames, level = MIN_HEADING_LEVEL, variant, ...other }, children) => {\n\tconst HeadlineTag = getHeadlineTag(level);\n\tconst finalVariant = variant || HeadlineTag;\n\n\treturn (\n\t\t<HeadlineTag class={clsx('kol-headline', `kol-headline--${finalVariant}`, classNames)} {...other}>\n\t\t\t{children}\n\t\t</HeadlineTag>\n\t);\n};\n\n/**\n * Functional component for rendering a secondary headline.\n * @param props - The properties for the secondary headline component.\n * @param children - The children to render inside the secondary headline.\n * @returns A VNode representing the secondary headline.\n */\nconst KolSecondaryHeadlineFc: FC<SecondaryHeadlineProps> = ({ class: classNames, level = MIN_HEADING_LEVEL, ...other }, children) => {\n\tconst HeadlineTag = getSubHeadlineTag(level + 1);\n\n\treturn (\n\t\t<HeadlineTag class={clsx('kol-headline kol-headline--group kol-headline--secondary', classNames)} {...other}>\n\t\t\t{children}\n\t\t</HeadlineTag>\n\t);\n};\n\n/**\n * Functional component for rendering a heading with an optional secondary headline.\n * @param props - The properties for the heading component.\n * @param children - The children to render inside the heading.\n * @returns A VNode representing the heading.\n */\nconst KolHeadingFc: FC<HeadingProps> = (\n\t{ secondaryHeadline, level = MIN_HEADING_LEVEL, class: classNames, HeadingGroupProps = {}, SecondaryHeadlineProps = {}, ...other },\n\tchildren,\n) => {\n\tconst headlineProps: HeadlineProps = {\n\t\tlevel,\n\t\t...other,\n\t};\n\n\tif (!secondaryHeadline) {\n\t\treturn (\n\t\t\t<KolHeadlineFc class={clsx(classNames, 'kol-headline--single')} {...headlineProps}>\n\t\t\t\t{children}\n\t\t\t</KolHeadlineFc>\n\t\t);\n\t}\n\n\tconst { class: groupClassNames, ...groupOthers } = HeadingGroupProps;\n\tconst headlineGroupProps: HGroupProps = {\n\t\tclass: clsx('kol-heading-group', groupClassNames),\n\t\t...groupOthers,\n\t};\n\n\treturn (\n\t\t<hgroup {...headlineGroupProps}>\n\t\t\t<KolHeadlineFc class={clsx(classNames, 'kol-headline--group', 'kol-headline--primary')} {...headlineProps}>\n\t\t\t\t{children}\n\t\t\t</KolHeadlineFc>\n\t\t\t<KolSecondaryHeadlineFc level={level} {...SecondaryHeadlineProps}>\n\t\t\t\t{secondaryHeadline}\n\t\t\t</KolSecondaryHeadlineFc>\n\t\t</hgroup>\n\t);\n};\n\nexport default KolHeadingFc;\n"],"version":3}
@@ -0,0 +1,4 @@
1
+ /*!
2
+ * KoliBri - The accessible HTML-Standard
3
+ */
4
+ "use strict";const index=require("./index-5eda7e82.js"),componentNames=require("./component-names-74abfa2e.js"),KolIconFc=o=>{const{class:c,style:e,icons:n,label:s,onClick:l}=o;return index.h(componentNames.KolIconTag,{class:c,style:e,onClick:l,_icons:n,_label:s})},KolIconFc$1=KolIconFc;exports.KolIconFc=KolIconFc$1;
@@ -1 +1 @@
1
- {"file":"Icon-0eed071b.js","mappings":";;;;;;;;AAUA,MAAM,SAAS,GAAkB,CAAC,KAAK;IACtC,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAElE,OAAOA,QAACC,yBAAU,IAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,GAAI,CAAC;AACxG,CAAC,CAAC;AAEF,oBAAe,SAAS;;;;","names":["h","KolIconTag"],"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"],"version":3}
1
+ {"file":"Icon-e7c8d39a.js","mappings":";;;;;;;;AAUA,MAAM,SAAS,GAAkB,CAAC,KAAK;IACtC,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAElE,OAAOA,QAACC,yBAAU,IAAC,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,GAAI,CAAC;AACxG,CAAC,CAAC;AAEF,oBAAe,SAAS;;;;","names":["h","KolIconTag"],"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"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";const tslib_es6=require("./tslib.es6-5e301284.js"),index=require("./index-07fcbac9.js"),clsx=require("./clsx-dd4d6dd1.js"),getRenderStates=require("./getRenderStates-3c874ec5.js"),FormFieldMsg=require("./FormFieldMsg-370f014e.js"),InputFc=e=>{const{class:s,msg:l,required:i,disabled:t,touched:r,readonly:d,ariaDescribedBy:a,hideLabel:n,label:o,suggestions:u,value:c}=e,b=tslib_es6.__rest(e,["class","msg","required","disabled","touched","readonly","ariaDescribedBy","hideLabel","label","suggestions","value"]),g=FormFieldMsg.checkHasError(l,r),p={"kol-input--disabled":Boolean(t),"kol-input--required":Boolean(i),"kol-input--touched":Boolean(r),"kol-input--readonly":Boolean(d),[`kol-input--${(null==l?void 0:l.type)||"error"}`]:g},F=Object.assign(Object.assign({class:clsx.clsx("kol-input",p,s),required:i,disabled:t,readonly:d,type:"text",list:u?`${b.id}-list`:void 0},getRenderStates.getDefaultProps({ariaDescribedBy:a,hideLabel:n,label:o})),b);return index.h(index.Fragment,null,index.h("input",Object.assign({},F,{value:c})),u)},KolInputFc=InputFc;exports.KolInputFc=KolInputFc;
4
+ "use strict";const tslib_es6=require("./tslib.es6-5e301284.js"),index=require("./index-5eda7e82.js"),clsx=require("./clsx-dd4d6dd1.js"),getRenderStates=require("./getRenderStates-46cbeb01.js"),FormFieldMsg=require("./FormFieldMsg-e1ae42e0.js"),InputFc=e=>{const{class:s,msg:l,required:i,disabled:t,touched:r,readonly:d,ariaDescribedBy:a,hideLabel:n,label:o,suggestions:u,value:c}=e,b=tslib_es6.__rest(e,["class","msg","required","disabled","touched","readonly","ariaDescribedBy","hideLabel","label","suggestions","value"]),g=FormFieldMsg.checkHasError(l,r),p={"kol-input--disabled":Boolean(t),"kol-input--required":Boolean(i),"kol-input--touched":Boolean(r),"kol-input--readonly":Boolean(d),[`kol-input--${(null==l?void 0:l.type)||"error"}`]:g},F=Object.assign(Object.assign({class:clsx.clsx("kol-input",p,s),required:i,disabled:t,readonly:d,type:"text",list:u?`${b.id}-list`:void 0},getRenderStates.getDefaultProps({ariaDescribedBy:a,hideLabel:n,label:o})),b);return index.h(index.Fragment,null,index.h("input",Object.assign({},F,{value:c})),u)},KolInputFc=InputFc;exports.KolInputFc=KolInputFc;
@@ -1 +1 @@
1
- {"file":"Input-766cb8ca.js","mappings":";;;;;;;;;;;AAkBA,MAAM,OAAO,GAAmB,CAAC,KAAK;IACrC,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,KAAe,KAAK,EAAf,KAAK,oBAAK,KAAK,EAA1I,gIAAkI,CAAQ,CAAC;IAEjJ,MAAM,OAAO,GAAGA,0BAAa,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IAE5C,MAAM,eAAe,GAAG;QACvB,CAAC,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC;QAC1C,CAAC,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC;QAC1C,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC;QACxC,CAAC,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC;QAC1C,CAAC,cAAc,CAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,IAAI,KAAI,OAAO,EAAE,GAAG,OAAO;KAC/C,CAAC;IAEF,MAAM,UAAU,iCACf,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,GAAG,KAAK,CAAC,EAAE,OAAO,GAAG,SAAS,IAC/CC,+BAAe,CAAC,EAAE,eAAe,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,GACtD,KAAK,CACR,CAAC;IAEF,QACCC;QACCA,mCAAW,UAAU,IAAE,KAAK,EAAE,KAAK,IAAI;QACtC,WAAW,CACV,EACF;AACH,CAAC,CAAC;AAEF,mBAAe,OAAO;;;;","names":["checkHasError","clsx","getDefaultProps","h"],"sources":["src/functional-components/inputs/Input/Input.tsx"],"sourcesContent":["import { h, Fragment, type FunctionalComponent as FC } from '@stencil/core';\nimport type { JSXBase, VNode } from '@stencil/core/internal';\nimport clsx from 'clsx';\nimport { checkHasError, type InternMsgPropType } from '../../../schema';\nimport { getDefaultProps } from '../_helpers/getDefaultProps';\nimport type { DefaultInputProps } from '../_types';\n\nexport type InputProps = DefaultInputProps<JSXBase.InputHTMLAttributes<HTMLInputElement>> & {\n\tvalue?: string | number | string[];\n\ttouched?: boolean;\n\tsuggestions?: VNode;\n\tspellcheck?: boolean;\n\tmsg?: InternMsgPropType;\n} & {\n\t[key: `data-${string}`]: unknown;\n\t[key: `aria-${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 = checkHasError(msg, touched);\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--${msg?.type || 'error'}`]: showMsg,\n\t};\n\n\tconst inputProps: JSXBase.InputHTMLAttributes<HTMLInputElement> = {\n\t\tclass: clsx('kol-input', stateCssClasses, classNames),\n\t\trequired: required,\n\t\tdisabled: disabled,\n\t\treadonly: readonly,\n\t\ttype: 'text',\n\t\tlist: suggestions ? `${other.id}-list` : undefined,\n\t\t...getDefaultProps({ ariaDescribedBy, hideLabel, label }),\n\t\t...other,\n\t};\n\n\treturn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AI;QACtC,WAAW,CACV,EACF;AACH,CAAC,CAAC;AAEF,mBAAe,OAAO;;;;","names":["checkHasError","clsx","getDefaultProps","h"],"sources":["src/functional-components/inputs/Input/Input.tsx"],"sourcesContent":["import { h, Fragment, type FunctionalComponent as FC } from '@stencil/core';\nimport type { JSXBase, VNode } from '@stencil/core/internal';\nimport clsx from 'clsx';\nimport { checkHasError, type InternMsgPropType } from '../../../schema';\nimport { getDefaultProps } from '../_helpers/getDefaultProps';\nimport type { DefaultInputProps } from '../_types';\n\nexport type InputProps = DefaultInputProps<JSXBase.InputHTMLAttributes<HTMLInputElement>> & {\n\tvalue?: string | number | string[];\n\ttouched?: boolean;\n\tsuggestions?: VNode;\n\tspellcheck?: boolean;\n\tmsg?: InternMsgPropType;\n} & {\n\t[key: `data-${string}`]: unknown;\n\t[key: `aria-${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 = checkHasError(msg, touched);\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--${msg?.type || '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"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";const tslib_es6=require("./tslib.es6-5e301284.js"),index=require("./index-07fcbac9.js"),getRenderStates=require("./getRenderStates-3c874ec5.js"),Input=require("./Input-766cb8ca.js"),FormFieldMsg=require("./FormFieldMsg-370f014e.js"),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},KolSuggestionsFc=SuggestionsFc;function getInputProps(e,t){const{ariaDescribedBy:s}=getRenderStates.getRenderStates(e),i={id:e._id,hideLabel:e._hideLabel,label:e._label,accessKey:e._accessKey,disabled:e._disabled,name:e._name,ariaDescribedBy:s};if("_type"in e&&(i.type=e._type),"_value"in e&&(i.value=e._value),"_required"in e&&(i.required=e._required),"_maxLength"in e&&(i.maxlength=e._maxLength),"_placeholder"in e&&(i.placeholder=e._placeholder),"_autoComplete"in e&&(i.autoComplete=e._autoComplete),"_spellCheck"in e&&(i.spellcheck=e._spellCheck),"_pattern"in e&&(i.pattern=e._pattern),"_readOnly"in e&&(i.readonly=e._readOnly),"_min"in e&&(i.min=e._min),"_max"in e&&(i.max=e._max),"_step"in e&&(i.step=e._step),"_multiple"in e&&(i.multiple=e._multiple),"_checked"in e&&(i.checked=e._checked),"_indeterminate"in e&&(i.indeterminate=e._indeterminate),"_touched"in e&&(i.touched=e._touched),"_msg"in e&&(i.msg=FormFieldMsg.convertMsgToInternMsg(e._msg)),"_suggestions"in e&&!t){Array.isArray(e._suggestions)&&e._suggestions.length>0&&(i.suggestions=index.h(KolSuggestionsFc,{id:e._id,suggestions:e._suggestions}))}return i}const InputStateWrapper=e=>{var{state:t,customSuggestions:s}=e,i=tslib_es6.__rest(e,["state","customSuggestions"]);return index.h(Input.KolInputFc,Object.assign({},getInputProps(t,s),i))},KolInputStateWrapperFc=InputStateWrapper;exports.KolInputStateWrapperFc=KolInputStateWrapperFc,exports.KolSuggestionsFc=KolSuggestionsFc;
4
+ "use strict";const tslib_es6=require("./tslib.es6-5e301284.js"),index=require("./index-5eda7e82.js"),getRenderStates=require("./getRenderStates-46cbeb01.js"),Input=require("./Input-36131161.js"),FormFieldMsg=require("./FormFieldMsg-e1ae42e0.js"),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},KolSuggestionsFc=SuggestionsFc;function getInputProps(e,t){const{ariaDescribedBy:s}=getRenderStates.getRenderStates(e),i={id:e._id,hideLabel:e._hideLabel,label:e._label,accessKey:e._accessKey,disabled:e._disabled,name:e._name,ariaDescribedBy:s};if("_type"in e&&(i.type=e._type),"_value"in e&&(i.value=e._value),"_required"in e&&(i.required=e._required),"_maxLength"in e&&(i.maxlength=e._maxLength),"_placeholder"in e&&(i.placeholder=e._placeholder),"_autoComplete"in e&&(i.autoComplete=e._autoComplete),"_spellCheck"in e&&(i.spellcheck=e._spellCheck),"_pattern"in e&&(i.pattern=e._pattern),"_readOnly"in e&&(i.readonly=e._readOnly),"_min"in e&&(i.min=e._min),"_max"in e&&(i.max=e._max),"_step"in e&&(i.step=e._step),"_multiple"in e&&(i.multiple=e._multiple),"_checked"in e&&(i.checked=e._checked),"_indeterminate"in e&&(i.indeterminate=e._indeterminate),"_touched"in e&&(i.touched=e._touched),"_msg"in e&&(i.msg=FormFieldMsg.convertMsgToInternMsg(e._msg)),"_suggestions"in e&&!t){Array.isArray(e._suggestions)&&e._suggestions.length>0&&(i.suggestions=index.h(KolSuggestionsFc,{id:e._id,suggestions:e._suggestions}))}return i}const InputStateWrapper=e=>{var{state:t,customSuggestions:s}=e,i=tslib_es6.__rest(e,["state","customSuggestions"]);return index.h(Input.KolInputFc,Object.assign({},getInputProps(t,s),i))},KolInputStateWrapperFc=InputStateWrapper;exports.KolInputStateWrapperFc=KolInputStateWrapperFc,exports.KolSuggest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,KAAK,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC;QAC1F,IAAI,cAAc,EAAE;YACnB,KAAK,CAAC,WAAW,IAAIF,QAACG,gBAAa,IAAC,EAAE,EAAE,KAAK,CAAC,GAAG,EAAE,WAAW,EAAE,KAAK,CAAC,YAAY,GAAI,CAAU,CAAC;SACjG;KACD;IAED,OAAO,KAAK,CAAC;AACd,CAAC;AAED,MAAM,iBAAiB,GAA+B,CAAC,EAAsC;QAAtC,EAAE,KAAK,EAAE,iBAAiB,OAAY,EAAP,KAAK,wBAApC,8BAAsC,CAAF;IAC1F,OAAOH,QAACI,gBAAU,oBAAK,aAAa,CAAC,KAAK,EAAE,iBAAiB,CAAC,EAAM,KAAK,EAAI,CAAC;AAC/E,CAAC,CAAC;AAEF,+BAAe,iBAAiB;;;;;","names":["h","getRenderStates","convertMsgToInternMsg","SuggestionsFc","KolInputFc"],"sources":["src/functional-components/Suggestions/Suggestions.tsx","src/functional-component-wrappers/InputStateWrapper/InputStateWrapper.tsx"],"sourcesContent":["import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport type { JSXBase } from '@stencil/core/internal';\nimport type { W3CInputValue } from '../../schema';\n\nexport type SuggestionsProps = JSXBase.HTMLAttributes<HTMLDataListElement> & {\n\tid: string;\n\tsuggestions: W3CInputValue[];\n};\n\nconst SuggestionsFc: FC<SuggestionsProps> = ({ id, suggestions, ...other }) => {\n\tif (!suggestions) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<datalist id={`${id}-list`} {...other}>\n\t\t\t{suggestions.map((option: W3CInputValue) => (\n\t\t\t\t<option value={option} />\n\t\t\t))}\n\t\t</datalist>\n\t);\n};\nexport default SuggestionsFc;\n","import type { VNode } from '@stencil/core';\nimport { h, type FunctionalComponent as FC } from '@stencil/core';\nimport KolInputFc, { type InputProps } from '../../functional-components/inputs/Input';\n\nimport {\n\ttype InputColorStates,\n\ttype InputEmailStates,\n\ttype InputFileStates,\n\ttype InputNumberStates,\n\ttype InputPasswordStates,\n\ttype InputRangeStates,\n\ttype InputTextStates,\n\ttype InputCheckboxStates,\n\ttype InputRadioStates,\n\tconvertMsgToInternMsg,\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 customSuggestions - Set to true when a custom implementation for _suggestions is provided. Omits the native datalist.\n */\nfunction getInputProps(state: InputState, customSuggestions?: boolean): InputProps {\n\tconst { ariaDescribedBy } = getRenderStates(state);\n\n\tconst props: InputProps = {\n\t\tid: state._id,\n\t\thideLabel: state._hideLabel,\n\t\tlabel: state._label,\n\t\taccessKey: state._accessKey,\n\t\tdisabled: state._disabled,\n\t\tname: state._name,\n\n\t\tariaDescribedBy: ariaDescribedBy,\n\t};\n\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) 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 = convertMsgToInternMsg(state._msg);\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 props;\n}\n\nconst InputStateWrapper: FC<InputStateWrapperProps> = ({ state, customSuggestions, ...other }) => {\n\treturn <KolInputFc {...getInputProps(state, customSuggestions)} {...other} />;\n};\n\nexport default InputStateWrapper;\n"],"version":3}
1
+ {"file":"InputStateWrapper-e31cb78c.js","mappings":";;;;;;;;;;;AASA,MAAM,aAAa,GAAyB,CAAC,EAA6B;QAA7B,EAAE,EAAE,EAAE,WAAW,OAAY,EAAP,KAAK,wBAA3B,qBAA6B,CAAF;IACvE,IAAI,CAAC,WAAW,EAAE;QACjB,OAAO,IAAI,CAAC;KACZ;IAED,QACCA,oCAAU,EAAE,EAAE,GAAG,EAAE,OAAO,IAAM,KAAK,GACnC,WAAW,CAAC,GAAG,CAAC,CAAC,MAAqB,MACtCA,oBAAQ,KAAK,EAAE,MAAM,GAAI,CACzB,CAAC,CACQ,EACV;AACH,CAAC,CAAC;AACF,yBAAe,aAAa;;ACiB5B,SAAS,aAAa,CAAC,KAAiB,EAAE,iBAA2B;IACpE,MAAM,EAAE,eAAe,EAAE,GAAGC,+BAAe,CAAC,KAAK,CAAC,CAAC;IAEnD,MAAM,KAAK,GAAe;QACzB,EAAE,EAAE,KAAK,CAAC,GAAG;QACb,SAAS,EAAE,KAAK,CAAC,UAAU;QAC3B,KAAK,EAAE,KAAK,CAAC,MAAM;QACnB,SAAS,EAAE,KAAK,CAAC,UAAU;QAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS;QACzB,IAAI,EAAE,KAAK,CAAC,KAAK;QAEjB,eAAe,EAAE,eAAe;KAChC,CAAC;IAEF,IAAI,OAAO,IAAI,KAAK;QAAE,KAAK,CAAC,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AC;IAC1E,IAAI,UAAU,IAAI,KAAK;QAAE,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC,QAAQ,CAAC;IACxD,IAAI,MAAM,IAAI,KAAK;QAAE,KAAK,CAAC,GAAG,GAAGC,kCAAqB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAEnE,IAAI,cAAc,IAAI,KAAK,IAAI,CAAC,iBAAiB,EAAE;QAClD,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,IAAI,KAAK,CAAC,YAAY,CAAC,MAAM,GAAG,CAAC,CAAC;QAC1F,IAAI,cAAc,EAAE;YACnB,KAAK,CAAC,WAAW,IAAIF,QAACG,gBAAa,IAAC,EAAE,EAAE,KAAK,CAAC,GAAG,EAAE,WAAW,EAAE,KAAK,CAAC,YAAY,GAAI,CAAU,CAAC;SACjG;KACD;IAED,OAAO,KAAK,CAAC;AACd,CAAC;AAED,MAAM,iBAAiB,GAA+B,CAAC,EAAsC;QAAtC,EAAE,KAAK,EAAE,iBAAiB,OAAY,EAAP,KAAK,wBAApC,8BAAsC,CAAF;IAC1F,OAAOH,QAACI,gBAAU,oBAAK,aAAa,CAAC,KAAK,EAAE,iBAAiB,CAAC,EAAM,KAAK,EAAI,CAAC;AAC/E,CAAC,CAAC;AAEF,+BAAe,iBAAiB;;;;;","names":["h","getRenderStates","convertMsgToInternMsg","SuggestionsFc","KolInputFc"],"sources":["src/functional-components/Suggestions/Suggestions.tsx","src/functional-component-wrappers/InputStateWrapper/InputStateWrapper.tsx"],"sourcesContent":["import { h, type FunctionalComponent as FC } from '@stencil/core';\nimport type { JSXBase } from '@stencil/core/internal';\nimport type { W3CInputValue } from '../../schema';\n\nexport type SuggestionsProps = JSXBase.HTMLAttributes<HTMLDataListElement> & {\n\tid: string;\n\tsuggestions: W3CInputValue[];\n};\n\nconst SuggestionsFc: FC<SuggestionsProps> = ({ id, suggestions, ...other }) => {\n\tif (!suggestions) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<datalist id={`${id}-list`} {...other}>\n\t\t\t{suggestions.map((option: W3CInputValue) => (\n\t\t\t\t<option value={option} />\n\t\t\t))}\n\t\t</datalist>\n\t);\n};\nexport default SuggestionsFc;\n","import type { VNode } from '@stencil/core';\nimport { h, type FunctionalComponent as FC } from '@stencil/core';\nimport KolInputFc, { type InputProps } from '../../functional-components/inputs/Input';\n\nimport {\n\ttype InputColorStates,\n\ttype InputEmailStates,\n\ttype InputFileStates,\n\ttype InputNumberStates,\n\ttype InputPasswordStates,\n\ttype InputRangeStates,\n\ttype InputTextStates,\n\ttype InputCheckboxStates,\n\ttype InputRadioStates,\n\tconvertMsgToInternMsg,\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 customSuggestions - Set to true when a custom implementation for _suggestions is provided. Omits the native datalist.\n */\nfunction getInputProps(state: InputState, customSuggestions?: boolean): InputProps {\n\tconst { ariaDescribedBy } = getRenderStates(state);\n\n\tconst props: InputProps = {\n\t\tid: state._id,\n\t\thideLabel: state._hideLabel,\n\t\tlabel: state._label,\n\t\taccessKey: state._accessKey,\n\t\tdisabled: state._disabled,\n\t\tname: state._name,\n\n\t\tariaDescribedBy: ariaDescribedBy,\n\t};\n\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) 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 = convertMsgToInternMsg(state._msg);\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 props;\n}\n\nconst InputStateWrapper: FC<InputStateWrapperProps> = ({ state, customSuggestions, ...other }) => {\n\treturn <KolInputFc {...getInputProps(state, customSuggestions)} {...other} />;\n};\n\nexport default InputStateWrapper;\n"],"version":3}
@@ -1,4 +1,4 @@
1
1
  /*!
2
2
  * KoliBri - The accessible HTML-Standard
3
3
  */
4
- "use strict";const index=require("./index-07fcbac9.js");var freeGlobal="object"==typeof global&&global&&global.Object===Object&&global;const freeGlobal$1=freeGlobal;var freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root=freeGlobal$1||freeSelf||Function("return this")();const root$1=root;var Symbol=root$1.Symbol;const Symbol$1=Symbol;var objectProto$1=Object.prototype,hasOwnProperty=objectProto$1.hasOwnProperty,nativeObjectToString$1=objectProto$1.toString,symToStringTag$1=Symbol$1?Symbol$1.toStringTag:void 0;function getRawTag(t){var e=hasOwnProperty.call(t,symToStringTag$1),n=t[symToStringTag$1];try{t[symToStringTag$1]=void 0;var r=!0}catch(t){}var o=nativeObjectToString$1.call(t);return r&&(e?t[symToStringTag$1]=n:delete t[symToStringTag$1]),o}var objectProto=Object.prototype,nativeObjectToString=objectProto.toString;function objectToString(t){return nativeObjectToString.call(t)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$1?Symbol$1.toStringTag:void 0;function baseGetTag(t){return null==t?void 0===t?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(t)?getRawTag(t):objectToString(t)}function isObjectLike(t){return null!=t&&"object"==typeof t}var isArray=Array.isArray;const isArray$1=isArray;var stringTag="[object String]";function isString(t){return"string"==typeof t||!isArray$1(t)&&isObjectLike(t)&&baseGetTag(t)==stringTag}const KolInternalUnderlinedBadgeTextFc=({badgeText:t,label:e})=>{const n=t;let[r,...o]=e.split(n);return 0===o.length&&(t=n.toUpperCase(),[r,...o]=e.split(n)),0===o.length&&(t=n.toLowerCase(),[r,...o]=e.split(n)),index.h(index.Fragment,null,r,o.length?index.h(index.Fragment,null,index.h("u",null,t),o.join(n)):null)},InternalUnderlinedBadgeText=KolInternalUnderlinedBadgeTextFc;exports.InternalUnderlinedBadgeText=InternalUnderlinedBadgeText,exports.isString=isString;
4
+ "use strict";const index=require("./index-5eda7e82.js");var freeGlobal="object"==typeof global&&global&&global.Object===Object&&global;const freeGlobal$1=freeGlobal;var freeSelf="object"==typeof self&&self&&self.Object===Object&&self,root=freeGlobal$1||freeSelf||Function("return this")();const root$1=root;var Symbol=root$1.Symbol;const Symbol$1=Symbol;var objectProto$1=Object.prototype,hasOwnProperty=objectProto$1.hasOwnProperty,nativeObjectToString$1=objectProto$1.toString,symToStringTag$1=Symbol$1?Symbol$1.toStringTag:void 0;function getRawTag(t){var e=hasOwnProperty.call(t,symToStringTag$1),n=t[symToStringTag$1];try{t[symToStringTag$1]=void 0;var r=!0}catch(t){}var o=nativeObjectToString$1.call(t);return r&&(e?t[symToStringTag$1]=n:delete t[symToStringTag$1]),o}var objectProto=Object.prototype,nativeObjectToString=objectProto.toString;function objectToString(t){return nativeObjectToString.call(t)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$1?Symbol$1.toStringTag:void 0;function baseGetTag(t){return null==t?void 0===t?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(t)?getRawTag(t):objectToString(t)}function isObjectLike(t){return null!=t&&"object"==typeof t}var isArray=Array.isArray;const isArray$1=isArray;var stringTag="[object String]";function isString(t){return"string"==typeof t||!isArray$1(t)&&isObjectLike(t)&&baseGetTag(t)==stringTag}const KolInternalUnderlinedBadgeTextFc=({badgeText:t,label:e})=>{const n=t;let[r,...o]=e.split(n);return 0===o.length&&(t=n.toUpperCase(),[r,...o]=e.split(n)),0===o.length&&(t=n.toLowerCase(),[r,...o]=e.split(n)),index.h(index.Fragment,null,r,o.length?index.h(index.Fragment,null,index.h("u",null,t),o.join(n)):null)},InternalUnderlinedBadgeText=KolInternalUnderlinedBadgeTextFc;exports.InternalUnderlinedBadgeText=InternalUnderlinedBadgeText,exports.isString=isString;
@@ -1 +1 @@
1
- {"file":"InternalUnderlinedBadgeText-58120685.js","mappings":";;;;;;;AAAA;AACA,IAAI,UAAU,GAAG,OAAO,MAAM,IAAI,QAAQ,IAAI,MAAM,IAAI,MAAM,CAAC,MAAM,KAAK,MAAM,IAAI,MAAM,CAAC;AAC3F;AACA,qBAAe,UAAU;;ACDzB;AACA,IAAI,QAAQ,GAAG,OAAO,IAAI,IAAI,QAAQ,IAAI,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,MAAM,IAAI,IAAI,CAAC;AACjF;AACA;AACA,IAAI,IAAI,GAAGA,YAAU,IAAI,QAAQ,IAAI,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC;AAC/D;AACA,eAAe,IAAI;;ACNnB;AACA,IAAI,MAAM,GAAGC,MAAI,CAAC,MAAM,CAAC;AACzB;AACA,iBAAe,MAAM;;ACHrB;AACA,IAAIC,aAAW,GAAG,MAAM,CAAC,SAAS,CAAC;AACnC;AACA;AACA,IAAI,cAAc,GAAGA,aAAW,CAAC,cAAc,CAAC;AAChD;AACA;AACA;AACA;AACA;AACA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E;IAEnG,MAAM,iBAAiB,GAAW,SAAS,CAAC;IAC5C,IAAI,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACtD,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;QACtB,SAAS,GAAG,iBAAiB,CAAC,WAAW,EAAE,CAAC;QAC5C,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;KAClD;IACD,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;QACtB,SAAS,GAAG,iBAAiB,CAAC,WAAW,EAAE,CAAC;QAC5C,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;KAClD;IACD,QACCC;QACE,KAAK;QACL,IAAI,CAAC,MAAM,IACXA;YACCA,mBAAI,SAAS,CAAK;YACjB,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAC3B,IACA,IAAI,CACN,EACF;AACH,CAAC,CAAC;AAEF,oCAAe,gCAAgC;;;;;","names":["freeGlobal","root","objectProto","nativeObjectToString","symToStringTag","Symbol","isArray","h"],"sources":["../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isString.js","src/functional-components/InternalUnderlinedBadgeText/InternalUnderlinedBadgeText.tsx"],"sourcesContent":["/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nexport default freeGlobal;\n","import freeGlobal from './_freeGlobal.js';\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nexport default root;\n","import root from './_root.js';\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nexport default Symbol;\n","import Symbol from './_Symbol.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nexport default getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nexport default objectToString;\n","import Symbol from './_Symbol.js';\nimport getRawTag from './_getRawTag.js';\nimport objectToString from './_objectToString.js';\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nexport default baseGetTag;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nexport default isObjectLike;\n","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nexport default isArray;\n","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"],"version":3}
1
+ {"file":"InternalUnderlinedBadgeText-ee3dbba6.js","mappings":";;;;;;;AAAA;AACA,IAAI,UAAU,GAAG,OAAO,MAAM,IAAI,QAAQ,IAAI,MAAM,IAAI,MAAM,CAAC,MAAM,KAAK,MAAM,IAAI,MAAM,CAAC;AAC3F;AACA,qBAAe,UAAU;;ACDzB;AACA,IAAI,QAAQ,GAAG,OAAO,IA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AACA,kBAAe,OAAO;;ACrBtB;AACA,IAAI,SAAS,GAAG,iBAAiB,CAAC;AAClC;AACA;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,CAACC,SAAO,CAAC,KAAK,CAAC,IAAI,YAAY,CAAC,KAAK,CAAC,IAAI,UAAU,CAAC,KAAK,CAAC,IAAI,SAAS,CAAC,CAAC;AAC/E;;ACnBA,MAAM,gCAAgC,GAAyC,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE;IAEnG,MAAM,iBAAiB,GAAW,SAAS,CAAC;IAC5C,IAAI,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACtD,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;QACtB,SAAS,GAAG,iBAAiB,CAAC,WAAW,EAAE,CAAC;QAC5C,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;KAClD;IACD,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE;QACtB,SAAS,GAAG,iBAAiB,CAAC,WAAW,EAAE,CAAC;QAC5C,CAAC,KAAK,EAAE,GAAG,IAAI,CAAC,GAAG,KAAK,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;KAClD;IACD,QACCC;QACE,KAAK;QACL,IAAI,CAAC,MAAM,IACXA;YACCA,mBAAI,SAAS,CAAK;YACjB,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAC3B,IACA,IAAI,CACN,EACF;AACH,CAAC,CAAC;AAEF,oCAAe,gCAAgC;;;;;","names":["freeGlobal","root","objectProto","nativeObjectToString","symToStringTag","Symbol","isArray","h"],"sources":["../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_freeGlobal.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_root.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_Symbol.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_getRawTag.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_objectToString.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/_baseGetTag.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isObjectLike.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isArray.js","../../node_modules/.pnpm/lodash-es@4.17.21/node_modules/lodash-es/isString.js","src/functional-components/InternalUnderlinedBadgeText/InternalUnderlinedBadgeText.tsx"],"sourcesContent":["/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nexport default freeGlobal;\n","import freeGlobal from './_freeGlobal.js';\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nexport default root;\n","import root from './_root.js';\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nexport default Symbol;\n","import Symbol from './_Symbol.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nexport default getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nexport default objectToString;\n","import Symbol from './_Symbol.js';\nimport getRawTag from './_getRawTag.js';\nimport objectToString from './_objectToString.js';\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nexport default baseGetTag;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nexport default isObjectLike;\n","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nexport default isArray;\n","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"],"version":3}