@solid-design-system/components 7.0.0-next.1 → 7.0.0-next.10

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 (804) hide show
  1. package/cdn/chunks/{chunk.K2LK6CUI.js → chunk.2XFIFYRX.js} +2 -2
  2. package/cdn/chunks/{chunk.ITSE6USQ.js → chunk.3RDG7HQT.js} +2 -2
  3. package/cdn/chunks/{chunk.U53W4WGD.js → chunk.3VTWQPQB.js} +1 -1
  4. package/cdn/chunks/chunk.4XZDW2BJ.js +1 -0
  5. package/cdn/chunks/{chunk.A4ICFOOO.js → chunk.55B57RXL.js} +1 -1
  6. package/cdn/chunks/chunk.5B33ZALC.js +26 -0
  7. package/cdn/chunks/{chunk.MTOCUKPI.js → chunk.6A2XPA27.js} +1 -1
  8. package/cdn/chunks/{chunk.F5X4VAKB.js → chunk.6JKZ63QX.js} +2 -2
  9. package/cdn/chunks/{chunk.CMJRYUXX.js → chunk.7O3WO7T4.js} +2 -2
  10. package/cdn/chunks/{chunk.2I5OTO4L.js → chunk.7USKB2GO.js} +2 -2
  11. package/cdn/chunks/chunk.ARA5JW32.js +2 -0
  12. package/cdn/chunks/{chunk.NYJUQAML.js → chunk.AUZKCMXB.js} +1 -1
  13. package/cdn/chunks/{chunk.SOY4RB6B.js → chunk.B4BAFEZE.js} +2 -2
  14. package/cdn/chunks/{chunk.E3RBLJOD.js → chunk.C45254AN.js} +1 -1
  15. package/cdn/chunks/{chunk.JP3WLAQM.js → chunk.CQI2RS2L.js} +1 -1
  16. package/cdn/chunks/{chunk.LRSLQHV6.js → chunk.CVB6PQL3.js} +2 -2
  17. package/cdn/chunks/{chunk.PSNO7W6D.js → chunk.CWRWVUT3.js} +1 -1
  18. package/cdn/chunks/{chunk.LQYMZEW6.js → chunk.DEC3VKXA.js} +1 -1
  19. package/cdn/chunks/chunk.DFCHDZDG.js +2 -0
  20. package/cdn/chunks/{chunk.3ZA7LK5B.js → chunk.FCBNIOWP.js} +1 -1
  21. package/cdn/chunks/{chunk.A6TJ7AAE.js → chunk.FPC4KJUF.js} +1 -1
  22. package/cdn/chunks/{chunk.MRINOSHO.js → chunk.GX5EMWG2.js} +1 -1
  23. package/cdn/chunks/{chunk.55K7D54J.js → chunk.H5ODW4DI.js} +1 -1
  24. package/cdn/chunks/chunk.HS3Q3NPY.js +2 -0
  25. package/cdn/chunks/{chunk.5DVOGKB4.js → chunk.J663MKB4.js} +1 -1
  26. package/cdn/chunks/{chunk.FFTXB7SP.js → chunk.J7SSJXR3.js} +1 -1
  27. package/cdn/chunks/{chunk.OXGNLH3H.js → chunk.JTBZGOCE.js} +1 -1
  28. package/cdn/chunks/{chunk.NLEGWO6E.js → chunk.KDTVJE37.js} +1 -1
  29. package/cdn/chunks/{chunk.YU7OA7CJ.js → chunk.KITZT7MU.js} +1 -1
  30. package/cdn/chunks/{chunk.NVY4DAHM.js → chunk.KZLMAANO.js} +1 -1
  31. package/cdn/chunks/{chunk.3WMR63OG.js → chunk.LM5SJXYL.js} +1 -1
  32. package/cdn/chunks/{chunk.VMPFVDKG.js → chunk.LPOPOGGB.js} +1 -1
  33. package/cdn/chunks/{chunk.Y4MOVPF5.js → chunk.LYJX2BW7.js} +1 -1
  34. package/cdn/chunks/{chunk.VAM5SM3O.js → chunk.MEDJPDBB.js} +1 -1
  35. package/cdn/chunks/{chunk.RQ5YPSVB.js → chunk.MIROXJW4.js} +2 -2
  36. package/cdn/chunks/{chunk.Z6RYHXBZ.js → chunk.N2PGOHWH.js} +2 -2
  37. package/cdn/chunks/{chunk.2JXJ24RQ.js → chunk.NISL6W7W.js} +1 -1
  38. package/cdn/chunks/{chunk.IPJZ5TCY.js → chunk.NOW64QHB.js} +2 -2
  39. package/cdn/chunks/chunk.NSAUFZ4I.js +4 -0
  40. package/cdn/chunks/chunk.OFLEA353.js +12 -0
  41. package/cdn/chunks/{chunk.VXSKQPYR.js → chunk.OKAUTL3G.js} +1 -1
  42. package/cdn/chunks/chunk.OKNJ5BPS.js +1 -0
  43. package/cdn/chunks/chunk.OR64TDYE.js +2 -0
  44. package/cdn/chunks/{chunk.ESL4JKQV.js → chunk.OYCIMCNH.js} +2 -2
  45. package/cdn/chunks/{chunk.JM3GQDJN.js → chunk.PUC7BGPD.js} +1 -1
  46. package/cdn/chunks/{chunk.CIVE342L.js → chunk.QXTQ4QBZ.js} +2 -2
  47. package/cdn/chunks/{chunk.D62JG5TL.js → chunk.RFVQLD5K.js} +1 -1
  48. package/cdn/chunks/{chunk.5NGQGOI5.js → chunk.RGSF2XLM.js} +1 -1
  49. package/cdn/chunks/chunk.RJIOLFBG.js +2 -0
  50. package/cdn/chunks/{chunk.BFAAJHOY.js → chunk.RSP57JUX.js} +1 -1
  51. package/cdn/chunks/{chunk.N3L4BF3D.js → chunk.S63R2AXT.js} +2 -2
  52. package/cdn/chunks/chunk.SOLVKQIM.js +1 -0
  53. package/cdn/chunks/{chunk.QIEAZQKM.js → chunk.SVZV3YHZ.js} +1 -1
  54. package/cdn/chunks/chunk.TS6S25HT.js +2 -0
  55. package/cdn/chunks/chunk.U2TVO27N.js +2 -0
  56. package/cdn/chunks/{chunk.XXGMKJBE.js → chunk.U3X6ZYRC.js} +1 -1
  57. package/cdn/chunks/{chunk.JKD6A4RA.js → chunk.UFWE6XC3.js} +1 -1
  58. package/cdn/chunks/{chunk.U4A5O7JM.js → chunk.UPV2DLDG.js} +1 -1
  59. package/cdn/chunks/chunk.V3TQLJF2.js +2 -0
  60. package/cdn/chunks/{chunk.QVGKTTLT.js → chunk.VSIBCI2V.js} +1 -1
  61. package/cdn/chunks/{chunk.SVUNO3VN.js → chunk.WHDOGCAD.js} +1 -1
  62. package/cdn/chunks/{chunk.J5RIXHGG.js → chunk.WIAQ2X73.js} +1 -1
  63. package/cdn/chunks/chunk.WWHH2NDP.js +2 -0
  64. package/cdn/chunks/chunk.WZS3PEEQ.js +2 -0
  65. package/cdn/chunks/{chunk.BKHX2CF6.js → chunk.XHWQ4DCO.js} +1 -1
  66. package/cdn/chunks/{chunk.DESBURSJ.js → chunk.YAT66EQJ.js} +2 -2
  67. package/cdn/chunks/chunk.Z7AMUW7S.js +2 -0
  68. package/{cdn-versioned/chunks/chunk.MB7SWCJ2.js → cdn/chunks/chunk.ZCLAPTH6.js} +4 -0
  69. package/cdn/components/accordion/accordion.js +1 -1
  70. package/cdn/components/accordion-group/accordion-group.js +1 -1
  71. package/cdn/components/animation/animation.js +1 -1
  72. package/cdn/components/audio/audio.js +1 -1
  73. package/cdn/components/badge/badge.js +1 -1
  74. package/cdn/components/brandshape/brandshape.js +1 -1
  75. package/cdn/components/breadcrumb/breadcrumb.js +1 -1
  76. package/cdn/components/breadcrumb-item/breadcrumb-item.js +1 -1
  77. package/cdn/components/button/button.d.ts +5 -0
  78. package/cdn/components/button/button.js +1 -1
  79. package/cdn/components/button-group/button-group.js +1 -1
  80. package/cdn/components/carousel/carousel.js +1 -1
  81. package/cdn/components/carousel-item/carousel-item.js +1 -1
  82. package/cdn/components/checkbox/checkbox.js +1 -1
  83. package/cdn/components/checkbox-group/checkbox-group.js +1 -1
  84. package/cdn/components/combobox/combobox.js +1 -1
  85. package/cdn/components/datepicker/datepicker.js +1 -1
  86. package/cdn/components/dialog/dialog.d.ts +6 -8
  87. package/cdn/components/dialog/dialog.js +1 -1
  88. package/cdn/components/divider/divider.js +1 -1
  89. package/cdn/components/drawer/drawer.d.ts +2 -10
  90. package/cdn/components/drawer/drawer.js +1 -1
  91. package/cdn/components/dropdown/dropdown.js +1 -1
  92. package/cdn/components/expandable/expandable.js +1 -1
  93. package/cdn/components/file-selector/file-selector.d.ts +72 -0
  94. package/cdn/components/file-selector/file-selector.js +1 -0
  95. package/cdn/components/flipcard/flipcard.js +1 -1
  96. package/cdn/components/header/header.d.ts +1 -0
  97. package/cdn/components/header/header.js +1 -1
  98. package/cdn/components/icon/icon.js +1 -1
  99. package/cdn/components/icon/library.internal.d.ts +1 -0
  100. package/cdn/components/icon/library.internal.js +1 -1
  101. package/cdn/components/icon/library.js +1 -1
  102. package/cdn/components/include/include.js +1 -1
  103. package/cdn/components/input/input.d.ts +1 -1
  104. package/cdn/components/input/input.js +1 -1
  105. package/cdn/components/link/link.js +1 -1
  106. package/cdn/components/loader/loader.js +1 -1
  107. package/cdn/components/map-marker/map-marker.js +1 -1
  108. package/cdn/components/menu/menu.js +1 -1
  109. package/cdn/components/menu-item/menu-item.js +1 -1
  110. package/cdn/components/navigation-item/navigation-item.js +1 -1
  111. package/cdn/components/notification/notification.js +1 -1
  112. package/cdn/components/optgroup/optgroup.js +1 -1
  113. package/cdn/components/option/option.js +1 -1
  114. package/cdn/components/popup/popup.js +1 -1
  115. package/cdn/components/progress-bar/progress-bar.js +1 -1
  116. package/cdn/components/quickfact/quickfact.js +1 -1
  117. package/cdn/components/radio/radio.js +1 -1
  118. package/cdn/components/radio-button/radio-button.js +1 -1
  119. package/cdn/components/radio-group/radio-group.js +1 -1
  120. package/cdn/components/range/range.js +1 -1
  121. package/cdn/components/range-tick/range-tick.js +1 -1
  122. package/cdn/components/scrollable/scrollable.js +1 -1
  123. package/cdn/components/select/select.js +1 -1
  124. package/cdn/components/skeleton/skeleton.js +1 -1
  125. package/cdn/components/step/step.js +1 -1
  126. package/cdn/components/step-group/step-group.js +1 -1
  127. package/cdn/components/switch/switch.js +1 -1
  128. package/cdn/components/tab/tab.js +1 -1
  129. package/cdn/components/tab-group/tab-group.js +1 -1
  130. package/cdn/components/tab-panel/tab-panel.js +1 -1
  131. package/cdn/components/tag/tag.js +1 -1
  132. package/cdn/components/teaser/teaser.js +1 -1
  133. package/cdn/components/teaser-media/teaser-media.js +1 -1
  134. package/cdn/components/textarea/textarea.d.ts +1 -1
  135. package/cdn/components/textarea/textarea.js +1 -1
  136. package/cdn/components/theme-listener/theme-listener.js +1 -1
  137. package/cdn/components/tooltip/tooltip.js +1 -1
  138. package/cdn/components/video/video.js +1 -1
  139. package/cdn/custom-elements.json +755 -258
  140. package/cdn/solid-components.bundle.js +101 -97
  141. package/cdn/solid-components.css +7 -4
  142. package/cdn/solid-components.d.ts +1 -1
  143. package/cdn/solid-components.iife.js +101 -97
  144. package/cdn/solid-components.js +1 -1
  145. package/cdn/translations/de.js +1 -1
  146. package/cdn/translations/en.js +1 -1
  147. package/cdn/utilities/autocomplete-config.js +1 -1
  148. package/cdn/utilities/icon-library.js +1 -1
  149. package/cdn/utilities/localize.d.ts +7 -0
  150. package/cdn/utilities/localize.js +1 -1
  151. package/cdn/vscode.html-custom-data.json +128 -53
  152. package/cdn/web-types.json +339 -90
  153. package/cdn-versioned/chunks/chunk.2XFIFYRX.js +4 -0
  154. package/cdn-versioned/chunks/chunk.3RDG7HQT.js +2 -0
  155. package/cdn-versioned/chunks/{chunk.U53W4WGD.js → chunk.3VTWQPQB.js} +2 -2
  156. package/cdn-versioned/chunks/chunk.4XZDW2BJ.js +1 -0
  157. package/cdn-versioned/chunks/chunk.55B57RXL.js +2 -0
  158. package/cdn-versioned/chunks/chunk.5B33ZALC.js +26 -0
  159. package/cdn-versioned/chunks/chunk.6A2XPA27.js +12 -0
  160. package/cdn-versioned/chunks/chunk.6JKZ63QX.js +5 -0
  161. package/cdn-versioned/chunks/{chunk.CMJRYUXX.js → chunk.7O3WO7T4.js} +3 -3
  162. package/cdn-versioned/chunks/chunk.7USKB2GO.js +2 -0
  163. package/cdn-versioned/chunks/chunk.ARA5JW32.js +2 -0
  164. package/cdn-versioned/chunks/{chunk.NYJUQAML.js → chunk.AUZKCMXB.js} +1 -1
  165. package/cdn-versioned/chunks/{chunk.SOY4RB6B.js → chunk.B4BAFEZE.js} +3 -3
  166. package/cdn-versioned/chunks/chunk.C45254AN.js +2 -0
  167. package/cdn-versioned/chunks/{chunk.JP3WLAQM.js → chunk.CQI2RS2L.js} +2 -2
  168. package/cdn-versioned/chunks/chunk.CVB6PQL3.js +12 -0
  169. package/cdn-versioned/chunks/chunk.CWRWVUT3.js +2 -0
  170. package/cdn-versioned/chunks/chunk.DEC3VKXA.js +2 -0
  171. package/cdn-versioned/chunks/chunk.DFCHDZDG.js +2 -0
  172. package/cdn-versioned/chunks/chunk.DSKB3SEU.js +1 -1
  173. package/cdn-versioned/chunks/chunk.FCBNIOWP.js +2 -0
  174. package/cdn-versioned/chunks/{chunk.A6TJ7AAE.js → chunk.FPC4KJUF.js} +2 -2
  175. package/cdn-versioned/chunks/chunk.GX5EMWG2.js +2 -0
  176. package/cdn-versioned/chunks/chunk.H5ODW4DI.js +2 -0
  177. package/cdn-versioned/chunks/chunk.HS3Q3NPY.js +2 -0
  178. package/cdn-versioned/chunks/{chunk.5DVOGKB4.js → chunk.J663MKB4.js} +2 -2
  179. package/cdn-versioned/chunks/{chunk.FFTXB7SP.js → chunk.J7SSJXR3.js} +2 -2
  180. package/cdn-versioned/chunks/chunk.JTBZGOCE.js +2 -0
  181. package/cdn-versioned/chunks/{chunk.NLEGWO6E.js → chunk.KDTVJE37.js} +2 -2
  182. package/cdn-versioned/chunks/{chunk.YU7OA7CJ.js → chunk.KITZT7MU.js} +2 -2
  183. package/cdn-versioned/chunks/{chunk.NVY4DAHM.js → chunk.KZLMAANO.js} +2 -2
  184. package/cdn-versioned/chunks/{chunk.3WMR63OG.js → chunk.LM5SJXYL.js} +2 -2
  185. package/cdn-versioned/chunks/{chunk.VMPFVDKG.js → chunk.LPOPOGGB.js} +2 -2
  186. package/cdn-versioned/chunks/{chunk.Y4MOVPF5.js → chunk.LYJX2BW7.js} +2 -2
  187. package/cdn-versioned/chunks/chunk.LZRL7OLU.js +1 -1
  188. package/cdn-versioned/chunks/{chunk.VAM5SM3O.js → chunk.MEDJPDBB.js} +1 -1
  189. package/cdn-versioned/chunks/chunk.MIROXJW4.js +6 -0
  190. package/cdn-versioned/chunks/chunk.N2PGOHWH.js +2 -0
  191. package/cdn-versioned/chunks/chunk.NISL6W7W.js +2 -0
  192. package/cdn-versioned/chunks/{chunk.IPJZ5TCY.js → chunk.NOW64QHB.js} +2 -2
  193. package/cdn-versioned/chunks/chunk.NSAUFZ4I.js +4 -0
  194. package/cdn-versioned/chunks/chunk.OFLEA353.js +12 -0
  195. package/cdn-versioned/chunks/chunk.OKAUTL3G.js +2 -0
  196. package/cdn-versioned/chunks/chunk.OKNJ5BPS.js +1 -0
  197. package/cdn-versioned/chunks/chunk.OR64TDYE.js +2 -0
  198. package/cdn-versioned/chunks/chunk.OYCIMCNH.js +2 -0
  199. package/cdn-versioned/chunks/{chunk.JM3GQDJN.js → chunk.PUC7BGPD.js} +2 -2
  200. package/cdn-versioned/chunks/chunk.QXTQ4QBZ.js +12 -0
  201. package/cdn-versioned/chunks/{chunk.D62JG5TL.js → chunk.RFVQLD5K.js} +2 -2
  202. package/cdn-versioned/chunks/{chunk.5NGQGOI5.js → chunk.RGSF2XLM.js} +2 -2
  203. package/cdn-versioned/chunks/chunk.RJIOLFBG.js +2 -0
  204. package/cdn-versioned/chunks/{chunk.BFAAJHOY.js → chunk.RSP57JUX.js} +2 -2
  205. package/cdn-versioned/chunks/{chunk.N3L4BF3D.js → chunk.S63R2AXT.js} +3 -3
  206. package/cdn-versioned/chunks/chunk.SOLVKQIM.js +1 -0
  207. package/cdn-versioned/chunks/{chunk.QIEAZQKM.js → chunk.SVZV3YHZ.js} +2 -2
  208. package/cdn-versioned/chunks/chunk.TS6S25HT.js +2 -0
  209. package/cdn-versioned/chunks/chunk.U2TVO27N.js +2 -0
  210. package/cdn-versioned/chunks/{chunk.XXGMKJBE.js → chunk.U3X6ZYRC.js} +2 -2
  211. package/cdn-versioned/chunks/chunk.UFWE6XC3.js +2 -0
  212. package/cdn-versioned/chunks/{chunk.U4A5O7JM.js → chunk.UPV2DLDG.js} +2 -2
  213. package/cdn-versioned/chunks/chunk.V3TQLJF2.js +2 -0
  214. package/cdn-versioned/chunks/chunk.VSIBCI2V.js +2 -0
  215. package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
  216. package/cdn-versioned/chunks/{chunk.SVUNO3VN.js → chunk.WHDOGCAD.js} +2 -2
  217. package/cdn-versioned/chunks/chunk.WIAQ2X73.js +2 -0
  218. package/cdn-versioned/chunks/chunk.WWHH2NDP.js +2 -0
  219. package/cdn-versioned/chunks/chunk.WZS3PEEQ.js +2 -0
  220. package/cdn-versioned/chunks/chunk.XHWQ4DCO.js +2 -0
  221. package/cdn-versioned/chunks/{chunk.DESBURSJ.js → chunk.YAT66EQJ.js} +3 -3
  222. package/cdn-versioned/chunks/chunk.Z7AMUW7S.js +2 -0
  223. package/{cdn/chunks/chunk.MB7SWCJ2.js → cdn-versioned/chunks/chunk.ZCLAPTH6.js} +4 -0
  224. package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
  225. package/cdn-versioned/components/accordion/accordion.js +1 -1
  226. package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  227. package/cdn-versioned/components/accordion-group/accordion-group.js +1 -1
  228. package/cdn-versioned/components/animation/animation.d.ts +1 -1
  229. package/cdn-versioned/components/animation/animation.js +1 -1
  230. package/cdn-versioned/components/audio/audio.d.ts +1 -1
  231. package/cdn-versioned/components/audio/audio.js +1 -1
  232. package/cdn-versioned/components/badge/badge.d.ts +1 -1
  233. package/cdn-versioned/components/badge/badge.js +1 -1
  234. package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
  235. package/cdn-versioned/components/brandshape/brandshape.js +1 -1
  236. package/cdn-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
  237. package/cdn-versioned/components/breadcrumb/breadcrumb.js +1 -1
  238. package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  239. package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.js +1 -1
  240. package/cdn-versioned/components/button/button.d.ts +6 -1
  241. package/cdn-versioned/components/button/button.js +1 -1
  242. package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
  243. package/cdn-versioned/components/button-group/button-group.js +1 -1
  244. package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
  245. package/cdn-versioned/components/carousel/carousel.js +1 -1
  246. package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  247. package/cdn-versioned/components/carousel-item/carousel-item.js +1 -1
  248. package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
  249. package/cdn-versioned/components/checkbox/checkbox.js +1 -1
  250. package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  251. package/cdn-versioned/components/checkbox-group/checkbox-group.js +1 -1
  252. package/cdn-versioned/components/combobox/combobox.d.ts +1 -1
  253. package/cdn-versioned/components/combobox/combobox.js +1 -1
  254. package/cdn-versioned/components/datepicker/datepicker.d.ts +1 -1
  255. package/cdn-versioned/components/datepicker/datepicker.js +1 -1
  256. package/cdn-versioned/components/dialog/dialog.d.ts +7 -9
  257. package/cdn-versioned/components/dialog/dialog.js +1 -1
  258. package/cdn-versioned/components/divider/divider.d.ts +1 -1
  259. package/cdn-versioned/components/divider/divider.js +1 -1
  260. package/cdn-versioned/components/drawer/drawer.d.ts +3 -11
  261. package/cdn-versioned/components/drawer/drawer.js +1 -1
  262. package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
  263. package/cdn-versioned/components/dropdown/dropdown.js +1 -1
  264. package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
  265. package/cdn-versioned/components/expandable/expandable.js +1 -1
  266. package/cdn-versioned/components/file-selector/file-selector.d.ts +72 -0
  267. package/cdn-versioned/components/file-selector/file-selector.js +1 -0
  268. package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
  269. package/cdn-versioned/components/flipcard/flipcard.js +1 -1
  270. package/cdn-versioned/components/header/header.d.ts +2 -1
  271. package/cdn-versioned/components/header/header.js +1 -1
  272. package/cdn-versioned/components/icon/icon.d.ts +1 -1
  273. package/cdn-versioned/components/icon/icon.js +1 -1
  274. package/cdn-versioned/components/icon/library.internal.d.ts +1 -0
  275. package/cdn-versioned/components/icon/library.internal.js +1 -1
  276. package/cdn-versioned/components/icon/library.js +1 -1
  277. package/cdn-versioned/components/include/include.d.ts +1 -1
  278. package/cdn-versioned/components/include/include.js +1 -1
  279. package/cdn-versioned/components/input/input.d.ts +2 -2
  280. package/cdn-versioned/components/input/input.js +1 -1
  281. package/cdn-versioned/components/link/link.d.ts +1 -1
  282. package/cdn-versioned/components/link/link.js +1 -1
  283. package/cdn-versioned/components/loader/loader.d.ts +1 -1
  284. package/cdn-versioned/components/loader/loader.js +1 -1
  285. package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
  286. package/cdn-versioned/components/map-marker/map-marker.js +1 -1
  287. package/cdn-versioned/components/menu/menu.d.ts +1 -1
  288. package/cdn-versioned/components/menu/menu.js +1 -1
  289. package/cdn-versioned/components/menu-item/menu-item.d.ts +1 -1
  290. package/cdn-versioned/components/menu-item/menu-item.js +1 -1
  291. package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  292. package/cdn-versioned/components/navigation-item/navigation-item.js +1 -1
  293. package/cdn-versioned/components/notification/notification.d.ts +1 -1
  294. package/cdn-versioned/components/notification/notification.js +1 -1
  295. package/cdn-versioned/components/optgroup/optgroup.d.ts +1 -1
  296. package/cdn-versioned/components/optgroup/optgroup.js +1 -1
  297. package/cdn-versioned/components/option/option.d.ts +1 -1
  298. package/cdn-versioned/components/option/option.js +1 -1
  299. package/cdn-versioned/components/popup/popup.d.ts +1 -1
  300. package/cdn-versioned/components/popup/popup.js +1 -1
  301. package/cdn-versioned/components/progress-bar/progress-bar.d.ts +1 -1
  302. package/cdn-versioned/components/progress-bar/progress-bar.js +1 -1
  303. package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
  304. package/cdn-versioned/components/quickfact/quickfact.js +1 -1
  305. package/cdn-versioned/components/radio/radio.d.ts +1 -1
  306. package/cdn-versioned/components/radio/radio.js +1 -1
  307. package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
  308. package/cdn-versioned/components/radio-button/radio-button.js +1 -1
  309. package/cdn-versioned/components/radio-group/radio-group.d.ts +1 -1
  310. package/cdn-versioned/components/radio-group/radio-group.js +1 -1
  311. package/cdn-versioned/components/range/range.d.ts +1 -1
  312. package/cdn-versioned/components/range/range.js +1 -1
  313. package/cdn-versioned/components/range-tick/range-tick.d.ts +1 -1
  314. package/cdn-versioned/components/range-tick/range-tick.js +1 -1
  315. package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
  316. package/cdn-versioned/components/scrollable/scrollable.js +1 -1
  317. package/cdn-versioned/components/select/select.d.ts +1 -1
  318. package/cdn-versioned/components/select/select.js +1 -1
  319. package/cdn-versioned/components/skeleton/skeleton.d.ts +1 -1
  320. package/cdn-versioned/components/skeleton/skeleton.js +1 -1
  321. package/cdn-versioned/components/step/step.d.ts +1 -1
  322. package/cdn-versioned/components/step/step.js +1 -1
  323. package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
  324. package/cdn-versioned/components/step-group/step-group.js +1 -1
  325. package/cdn-versioned/components/switch/switch.d.ts +1 -1
  326. package/cdn-versioned/components/switch/switch.js +1 -1
  327. package/cdn-versioned/components/tab/tab.d.ts +1 -1
  328. package/cdn-versioned/components/tab/tab.js +1 -1
  329. package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
  330. package/cdn-versioned/components/tab-group/tab-group.js +1 -1
  331. package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  332. package/cdn-versioned/components/tab-panel/tab-panel.js +1 -1
  333. package/cdn-versioned/components/tag/tag.d.ts +1 -1
  334. package/cdn-versioned/components/tag/tag.js +1 -1
  335. package/cdn-versioned/components/teaser/teaser.js +1 -1
  336. package/cdn-versioned/components/teaser-media/teaser-media.js +1 -1
  337. package/cdn-versioned/components/textarea/textarea.d.ts +2 -2
  338. package/cdn-versioned/components/textarea/textarea.js +1 -1
  339. package/cdn-versioned/components/theme-listener/theme-listener.d.ts +1 -1
  340. package/cdn-versioned/components/theme-listener/theme-listener.js +1 -1
  341. package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
  342. package/cdn-versioned/components/tooltip/tooltip.js +1 -1
  343. package/cdn-versioned/components/video/video.d.ts +1 -1
  344. package/cdn-versioned/components/video/video.js +1 -1
  345. package/cdn-versioned/custom-elements.json +1036 -539
  346. package/cdn-versioned/internal/form.js +2 -2
  347. package/cdn-versioned/solid-components.bundle.js +103 -99
  348. package/cdn-versioned/solid-components.css +9 -6
  349. package/cdn-versioned/solid-components.d.ts +1 -1
  350. package/cdn-versioned/solid-components.iife.js +103 -99
  351. package/cdn-versioned/solid-components.js +1 -1
  352. package/cdn-versioned/translations/de.js +1 -1
  353. package/cdn-versioned/translations/en.js +1 -1
  354. package/cdn-versioned/utilities/autocomplete-config.js +1 -1
  355. package/cdn-versioned/utilities/icon-library.js +1 -1
  356. package/cdn-versioned/utilities/localize.d.ts +7 -0
  357. package/cdn-versioned/utilities/localize.js +1 -1
  358. package/cdn-versioned/vscode.html-custom-data.json +240 -165
  359. package/cdn-versioned/web-types.json +506 -257
  360. package/dist/chunks/{chunk.L2IFANFY.js → chunk.266V4W27.js} +2 -2
  361. package/dist/chunks/{chunk.5K6Y7HJU.js → chunk.2ZO5TQLM.js} +3 -3
  362. package/dist/chunks/{chunk.LB3F2QDN.js → chunk.33KST4RJ.js} +2 -2
  363. package/dist/chunks/{chunk.WEGQKE7P.js → chunk.3JGMLVGL.js} +3 -3
  364. package/dist/chunks/{chunk.33BZJRJB.js → chunk.3MGF33VU.js} +2 -2
  365. package/dist/chunks/{chunk.VMQ6E5XQ.js → chunk.3Y3V2LY4.js} +3 -3
  366. package/dist/chunks/{chunk.OGTWG7PX.js → chunk.4BB4LNMY.js} +2 -2
  367. package/dist/chunks/{chunk.OMWYWBPW.js → chunk.4USTQEWG.js} +4 -4
  368. package/dist/chunks/{chunk.2QG5VVWH.js → chunk.52XEAMVX.js} +2 -2
  369. package/dist/chunks/{chunk.B3GXJSVQ.js → chunk.5R5MY3VD.js} +3 -3
  370. package/dist/chunks/{chunk.J4MQWCIP.js → chunk.5VCVDFRJ.js} +2 -2
  371. package/dist/chunks/{chunk.YZ5DZPPN.js → chunk.6A4DHVDL.js} +7 -3
  372. package/{dist-versioned/chunks/chunk.MU6BOIQP.js → dist/chunks/chunk.6DUOHFNN.js} +65 -69
  373. package/dist/chunks/{chunk.2B76SHER.js → chunk.6MSQDSJK.js} +2 -2
  374. package/dist/chunks/chunk.6OYBQ6CO.js +373 -0
  375. package/dist/chunks/{chunk.LVPWOXKT.js → chunk.77CINHAJ.js} +2 -2
  376. package/{dist-versioned/chunks/chunk.X4IYFUX6.js → dist/chunks/chunk.7D23CZ3Y.js} +9 -0
  377. package/dist/chunks/{chunk.DZT4P3QO.js → chunk.7ZKBKOS5.js} +3 -3
  378. package/dist/chunks/{chunk.3T4RF2D2.js → chunk.AFD4FHYM.js} +2 -2
  379. package/dist/chunks/{chunk.UCQEVTLR.js → chunk.AJVSDITF.js} +2 -2
  380. package/dist/chunks/{chunk.UQAZ7Y4O.js → chunk.BZO3OLK2.js} +2 -2
  381. package/dist/chunks/{chunk.YHQDUFIA.js → chunk.C4RJM5BO.js} +2 -2
  382. package/dist/chunks/{chunk.4MGAXDM2.js → chunk.CQTEYWVJ.js} +2 -2
  383. package/dist/chunks/{chunk.AI65BHXH.js → chunk.D5JLEZPO.js} +2 -2
  384. package/dist/chunks/chunk.DJJN4MJ4.js +93 -0
  385. package/dist/chunks/{chunk.XQA7WCIY.js → chunk.DKN5SHQ2.js} +2 -2
  386. package/dist/chunks/{chunk.5EDUJ62Z.js → chunk.EVGV2PWW.js} +2 -2
  387. package/dist/chunks/{chunk.I5B5QE4Q.js → chunk.F3C76UKB.js} +2 -2
  388. package/dist/chunks/{chunk.GESPTAQO.js → chunk.FQJPWM4Z.js} +3 -3
  389. package/dist/chunks/{chunk.AN3L6KYA.js → chunk.G7M7XYS3.js} +2 -2
  390. package/dist/chunks/{chunk.GVV65UCW.js → chunk.GBB73ZFE.js} +12 -4
  391. package/dist/chunks/{chunk.QELO6X62.js → chunk.GHWO5PUG.js} +6 -6
  392. package/dist/chunks/{chunk.ENTIPHXZ.js → chunk.GOZXDQTL.js} +14 -4
  393. package/dist/chunks/{chunk.INUHEU2V.js → chunk.GRRHK6BP.js} +2 -2
  394. package/dist/chunks/{chunk.LTNNVXKN.js → chunk.HIR2MKW6.js} +2 -2
  395. package/dist/chunks/{chunk.LDRHLY66.js → chunk.I57THEU4.js} +2 -2
  396. package/dist/chunks/{chunk.WKBNTZYS.js → chunk.INSUQDO7.js} +2 -2
  397. package/dist/chunks/{chunk.K6EQX5H6.js → chunk.IXJGPE6X.js} +2 -2
  398. package/dist/chunks/{chunk.TXVRZXUB.js → chunk.JAPL7DQX.js} +3 -3
  399. package/dist/chunks/{chunk.GWNXDEYS.js → chunk.JHSA2DI2.js} +6 -6
  400. package/dist/chunks/{chunk.7MA7NTM5.js → chunk.KAWDESCC.js} +2 -2
  401. package/dist/chunks/{chunk.BT6SAX2H.js → chunk.KE6F4NXN.js} +9 -0
  402. package/dist/chunks/{chunk.4BAU2OM4.js → chunk.LJ5ONJGL.js} +62 -24
  403. package/{dist-versioned/chunks/chunk.WDWV53JP.js → dist/chunks/chunk.LTZVVIB2.js} +0 -22
  404. package/dist/chunks/{chunk.QFAJOIOI.js → chunk.OUFMMO37.js} +3 -3
  405. package/dist/chunks/{chunk.SRSERHD5.js → chunk.P5V6KORX.js} +3 -3
  406. package/dist/chunks/{chunk.YFTT3BJS.js → chunk.PCB2BA7U.js} +64 -7
  407. package/dist/chunks/{chunk.AVB7EUPN.js → chunk.PMM3MDLE.js} +2 -2
  408. package/dist/chunks/{chunk.MKQMOE4O.js → chunk.QD2ZQPDB.js} +2 -2
  409. package/dist/chunks/{chunk.EAJ3CM6N.js → chunk.QGERTGJH.js} +1 -1
  410. package/dist/chunks/{chunk.UAYS6YUK.js → chunk.QOIO3YAP.js} +2 -2
  411. package/dist/chunks/{chunk.NVTCRCR2.js → chunk.RGVIOXPM.js} +3 -3
  412. package/dist/chunks/{chunk.MGLNCJH4.js → chunk.SVAL7V6Q.js} +25 -101
  413. package/dist/chunks/{chunk.SBBWYGUE.js → chunk.UOMFY7RY.js} +2 -2
  414. package/dist/chunks/{chunk.W2FPAWSD.js → chunk.UTW3WRV2.js} +2 -2
  415. package/dist/chunks/{chunk.JCAECFX2.js → chunk.UYQP3VDT.js} +3 -3
  416. package/dist/chunks/{chunk.KTAV32B3.js → chunk.VHQQB75I.js} +3 -3
  417. package/dist/chunks/{chunk.LFOMFT6A.js → chunk.WVSKCZ63.js} +3 -3
  418. package/dist/chunks/{chunk.PH4JLH76.js → chunk.WXT5HYGA.js} +2 -2
  419. package/dist/chunks/{chunk.EUECKG57.js → chunk.WYS3OZYO.js} +3 -3
  420. package/dist/chunks/{chunk.DLDMILPJ.js → chunk.WZOVHSGU.js} +2 -2
  421. package/{dist-versioned/chunks/chunk.54DGZ62W.js → dist/chunks/chunk.XBDLZTHZ.js} +1 -1
  422. package/dist/chunks/{chunk.KIY36UBP.js → chunk.Y4XJY6Y4.js} +2 -2
  423. package/dist/chunks/{chunk.RAT2NJIO.js → chunk.Y6QQUPB5.js} +2 -2
  424. package/dist/chunks/{chunk.6SPABX2F.js → chunk.Z3HEYXRX.js} +5 -0
  425. package/dist/chunks/{chunk.YTITLVWX.js → chunk.Z462LBEB.js} +2 -2
  426. package/dist/chunks/{chunk.2PSP6N2B.js → chunk.ZCG43UX7.js} +4 -4
  427. package/dist/components/accordion/accordion.js +9 -9
  428. package/dist/components/accordion-group/accordion-group.js +10 -10
  429. package/dist/components/animation/animation.js +2 -2
  430. package/dist/components/audio/audio.js +13 -15
  431. package/dist/components/badge/badge.js +2 -2
  432. package/dist/components/brandshape/brandshape.js +2 -2
  433. package/dist/components/breadcrumb/breadcrumb.js +12 -13
  434. package/dist/components/breadcrumb-item/breadcrumb-item.js +5 -5
  435. package/dist/components/button/button.d.ts +5 -0
  436. package/dist/components/button/button.js +6 -5
  437. package/dist/components/button-group/button-group.js +2 -2
  438. package/dist/components/carousel/carousel.js +10 -10
  439. package/dist/components/carousel-item/carousel-item.js +2 -2
  440. package/dist/components/checkbox/checkbox.js +7 -7
  441. package/dist/components/checkbox-group/checkbox-group.js +7 -7
  442. package/dist/components/combobox/combobox.js +12 -12
  443. package/dist/components/datepicker/datepicker.js +11 -11
  444. package/dist/components/dialog/dialog.d.ts +6 -8
  445. package/dist/components/dialog/dialog.js +12 -14
  446. package/dist/components/divider/divider.js +2 -2
  447. package/dist/components/drawer/drawer.d.ts +2 -10
  448. package/dist/components/drawer/drawer.js +12 -14
  449. package/dist/components/dropdown/dropdown.js +6 -7
  450. package/dist/components/expandable/expandable.js +9 -9
  451. package/dist/components/file-selector/file-selector.d.ts +72 -0
  452. package/dist/components/file-selector/file-selector.js +27 -0
  453. package/dist/components/flipcard/flipcard.js +12 -11
  454. package/dist/components/header/header.d.ts +1 -0
  455. package/dist/components/header/header.js +2 -2
  456. package/dist/components/icon/icon.js +6 -6
  457. package/dist/components/icon/library.internal.d.ts +1 -0
  458. package/dist/components/icon/library.internal.js +1 -1
  459. package/dist/components/icon/library.js +2 -2
  460. package/dist/components/include/include.js +2 -2
  461. package/dist/components/input/input.d.ts +1 -1
  462. package/dist/components/input/input.js +9 -9
  463. package/dist/components/link/link.js +2 -2
  464. package/dist/components/loader/loader.js +4 -4
  465. package/dist/components/map-marker/map-marker.js +2 -2
  466. package/dist/components/menu/menu.js +4 -4
  467. package/dist/components/menu-item/menu-item.js +2 -2
  468. package/dist/components/navigation-item/navigation-item.js +10 -10
  469. package/dist/components/notification/notification.js +12 -11
  470. package/dist/components/optgroup/optgroup.js +5 -5
  471. package/dist/components/option/option.js +7 -7
  472. package/dist/components/popup/popup.js +2 -2
  473. package/dist/components/progress-bar/progress-bar.js +4 -4
  474. package/dist/components/quickfact/quickfact.js +10 -10
  475. package/dist/components/radio/radio.js +2 -2
  476. package/dist/components/radio-button/radio-button.js +2 -2
  477. package/dist/components/radio-group/radio-group.js +4 -4
  478. package/dist/components/range/range.js +11 -11
  479. package/dist/components/range-tick/range-tick.js +4 -4
  480. package/dist/components/scrollable/scrollable.js +9 -9
  481. package/dist/components/select/select.js +12 -12
  482. package/dist/components/skeleton/skeleton.js +2 -2
  483. package/dist/components/step/step.js +7 -7
  484. package/dist/components/step-group/step-group.js +2 -2
  485. package/dist/components/switch/switch.js +2 -2
  486. package/dist/components/tab/tab.js +4 -4
  487. package/dist/components/tab-group/tab-group.js +10 -10
  488. package/dist/components/tab-panel/tab-panel.js +2 -2
  489. package/dist/components/tag/tag.js +9 -9
  490. package/dist/components/teaser/teaser.js +2 -2
  491. package/dist/components/teaser-media/teaser-media.js +2 -2
  492. package/dist/components/textarea/textarea.d.ts +1 -1
  493. package/dist/components/textarea/textarea.js +7 -7
  494. package/dist/components/theme-listener/theme-listener.js +2 -2
  495. package/dist/components/tooltip/tooltip.js +10 -10
  496. package/dist/components/video/video.js +9 -9
  497. package/dist/custom-elements.json +755 -258
  498. package/dist/solid-components.css +7 -4
  499. package/dist/solid-components.d.ts +1 -1
  500. package/dist/solid-components.js +80 -82
  501. package/dist/translations/de.js +1 -1
  502. package/dist/translations/en.js +1 -1
  503. package/dist/utilities/autocomplete-config.js +3 -3
  504. package/dist/utilities/icon-library.js +2 -2
  505. package/dist/utilities/localize.d.ts +7 -0
  506. package/dist/utilities/localize.js +2 -2
  507. package/dist/vscode.html-custom-data.json +128 -53
  508. package/dist/web-types.json +339 -90
  509. package/dist-versioned/chunks/{chunk.L2IFANFY.js → chunk.266V4W27.js} +13 -13
  510. package/dist-versioned/chunks/{chunk.5K6Y7HJU.js → chunk.2ZO5TQLM.js} +6 -6
  511. package/dist-versioned/chunks/{chunk.LB3F2QDN.js → chunk.33KST4RJ.js} +3 -3
  512. package/dist-versioned/chunks/{chunk.WEGQKE7P.js → chunk.3JGMLVGL.js} +6 -6
  513. package/dist-versioned/chunks/{chunk.33BZJRJB.js → chunk.3MGF33VU.js} +4 -4
  514. package/dist-versioned/chunks/{chunk.VMQ6E5XQ.js → chunk.3Y3V2LY4.js} +7 -7
  515. package/dist-versioned/chunks/{chunk.OGTWG7PX.js → chunk.4BB4LNMY.js} +10 -10
  516. package/dist-versioned/chunks/{chunk.OMWYWBPW.js → chunk.4USTQEWG.js} +15 -15
  517. package/dist-versioned/chunks/{chunk.2QG5VVWH.js → chunk.52XEAMVX.js} +8 -8
  518. package/dist-versioned/chunks/{chunk.B3GXJSVQ.js → chunk.5R5MY3VD.js} +14 -14
  519. package/dist-versioned/chunks/{chunk.J4MQWCIP.js → chunk.5VCVDFRJ.js} +3 -3
  520. package/dist-versioned/chunks/chunk.6A4DHVDL.js +84 -0
  521. package/{dist/chunks/chunk.MU6BOIQP.js → dist-versioned/chunks/chunk.6DUOHFNN.js} +65 -69
  522. package/dist-versioned/chunks/{chunk.2B76SHER.js → chunk.6MSQDSJK.js} +6 -6
  523. package/dist-versioned/chunks/chunk.6OYBQ6CO.js +373 -0
  524. package/dist-versioned/chunks/{chunk.LVPWOXKT.js → chunk.77CINHAJ.js} +3 -3
  525. package/{dist/chunks/chunk.X4IYFUX6.js → dist-versioned/chunks/chunk.7D23CZ3Y.js} +9 -0
  526. package/dist-versioned/chunks/{chunk.DZT4P3QO.js → chunk.7ZKBKOS5.js} +13 -13
  527. package/dist-versioned/chunks/{chunk.3T4RF2D2.js → chunk.AFD4FHYM.js} +12 -12
  528. package/dist-versioned/chunks/{chunk.UCQEVTLR.js → chunk.AJVSDITF.js} +5 -5
  529. package/dist-versioned/chunks/{chunk.UQAZ7Y4O.js → chunk.BZO3OLK2.js} +7 -7
  530. package/dist-versioned/chunks/chunk.C3WIBDGG.js +2 -2
  531. package/dist-versioned/chunks/{chunk.YHQDUFIA.js → chunk.C4RJM5BO.js} +3 -3
  532. package/dist-versioned/chunks/{chunk.4MGAXDM2.js → chunk.CQTEYWVJ.js} +12 -12
  533. package/dist-versioned/chunks/{chunk.AI65BHXH.js → chunk.D5JLEZPO.js} +3 -3
  534. package/dist-versioned/chunks/chunk.DJJN4MJ4.js +93 -0
  535. package/dist-versioned/chunks/{chunk.XQA7WCIY.js → chunk.DKN5SHQ2.js} +7 -7
  536. package/dist-versioned/chunks/{chunk.5EDUJ62Z.js → chunk.EVGV2PWW.js} +4 -4
  537. package/dist-versioned/chunks/{chunk.I5B5QE4Q.js → chunk.F3C76UKB.js} +4 -4
  538. package/dist-versioned/chunks/{chunk.GESPTAQO.js → chunk.FQJPWM4Z.js} +28 -28
  539. package/dist-versioned/chunks/{chunk.AN3L6KYA.js → chunk.G7M7XYS3.js} +8 -8
  540. package/dist-versioned/chunks/{chunk.GVV65UCW.js → chunk.GBB73ZFE.js} +14 -6
  541. package/dist-versioned/chunks/{chunk.QELO6X62.js → chunk.GHWO5PUG.js} +19 -19
  542. package/dist-versioned/chunks/{chunk.ENTIPHXZ.js → chunk.GOZXDQTL.js} +19 -9
  543. package/dist-versioned/chunks/{chunk.INUHEU2V.js → chunk.GRRHK6BP.js} +4 -4
  544. package/dist-versioned/chunks/{chunk.LTNNVXKN.js → chunk.HIR2MKW6.js} +4 -4
  545. package/dist-versioned/chunks/{chunk.LDRHLY66.js → chunk.I57THEU4.js} +9 -9
  546. package/dist-versioned/chunks/{chunk.WKBNTZYS.js → chunk.INSUQDO7.js} +7 -7
  547. package/dist-versioned/chunks/{chunk.K6EQX5H6.js → chunk.IXJGPE6X.js} +13 -13
  548. package/dist-versioned/chunks/{chunk.TXVRZXUB.js → chunk.JAPL7DQX.js} +8 -8
  549. package/dist-versioned/chunks/{chunk.GWNXDEYS.js → chunk.JHSA2DI2.js} +8 -8
  550. package/dist-versioned/chunks/{chunk.7MA7NTM5.js → chunk.KAWDESCC.js} +8 -8
  551. package/dist-versioned/chunks/{chunk.BT6SAX2H.js → chunk.KE6F4NXN.js} +9 -0
  552. package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
  553. package/dist-versioned/chunks/chunk.LJ5ONJGL.js +370 -0
  554. package/{dist/chunks/chunk.WDWV53JP.js → dist-versioned/chunks/chunk.LTZVVIB2.js} +0 -22
  555. package/dist-versioned/chunks/{chunk.QFAJOIOI.js → chunk.OUFMMO37.js} +9 -9
  556. package/dist-versioned/chunks/{chunk.SRSERHD5.js → chunk.P5V6KORX.js} +26 -26
  557. package/dist-versioned/chunks/{chunk.YFTT3BJS.js → chunk.PCB2BA7U.js} +77 -20
  558. package/dist-versioned/chunks/{chunk.AVB7EUPN.js → chunk.PMM3MDLE.js} +5 -5
  559. package/dist-versioned/chunks/{chunk.MKQMOE4O.js → chunk.QD2ZQPDB.js} +4 -4
  560. package/dist-versioned/chunks/chunk.QGERTGJH.js +70 -0
  561. package/dist-versioned/chunks/{chunk.UAYS6YUK.js → chunk.QOIO3YAP.js} +9 -9
  562. package/dist-versioned/chunks/{chunk.NVTCRCR2.js → chunk.RGVIOXPM.js} +5 -5
  563. package/dist-versioned/chunks/{chunk.MGLNCJH4.js → chunk.SVAL7V6Q.js} +26 -102
  564. package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
  565. package/dist-versioned/chunks/{chunk.SBBWYGUE.js → chunk.UOMFY7RY.js} +3 -3
  566. package/dist-versioned/chunks/{chunk.W2FPAWSD.js → chunk.UTW3WRV2.js} +7 -7
  567. package/dist-versioned/chunks/{chunk.JCAECFX2.js → chunk.UYQP3VDT.js} +5 -5
  568. package/dist-versioned/chunks/{chunk.KTAV32B3.js → chunk.VHQQB75I.js} +5 -5
  569. package/dist-versioned/chunks/{chunk.LFOMFT6A.js → chunk.WVSKCZ63.js} +6 -6
  570. package/dist-versioned/chunks/{chunk.PH4JLH76.js → chunk.WXT5HYGA.js} +14 -14
  571. package/dist-versioned/chunks/{chunk.EUECKG57.js → chunk.WYS3OZYO.js} +7 -7
  572. package/dist-versioned/chunks/{chunk.DLDMILPJ.js → chunk.WZOVHSGU.js} +8 -8
  573. package/{dist/chunks/chunk.54DGZ62W.js → dist-versioned/chunks/chunk.XBDLZTHZ.js} +1 -1
  574. package/dist-versioned/chunks/{chunk.KIY36UBP.js → chunk.Y4XJY6Y4.js} +7 -7
  575. package/dist-versioned/chunks/{chunk.RAT2NJIO.js → chunk.Y6QQUPB5.js} +6 -6
  576. package/dist-versioned/chunks/{chunk.6SPABX2F.js → chunk.Z3HEYXRX.js} +5 -0
  577. package/dist-versioned/chunks/{chunk.YTITLVWX.js → chunk.Z462LBEB.js} +9 -9
  578. package/dist-versioned/chunks/{chunk.2PSP6N2B.js → chunk.ZCG43UX7.js} +14 -14
  579. package/dist-versioned/components/accordion/accordion.d.ts +1 -1
  580. package/dist-versioned/components/accordion/accordion.js +9 -9
  581. package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  582. package/dist-versioned/components/accordion-group/accordion-group.js +10 -10
  583. package/dist-versioned/components/animation/animation.d.ts +1 -1
  584. package/dist-versioned/components/animation/animation.js +2 -2
  585. package/dist-versioned/components/audio/audio.d.ts +1 -1
  586. package/dist-versioned/components/audio/audio.js +13 -15
  587. package/dist-versioned/components/badge/badge.d.ts +1 -1
  588. package/dist-versioned/components/badge/badge.js +2 -2
  589. package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
  590. package/dist-versioned/components/brandshape/brandshape.js +2 -2
  591. package/dist-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
  592. package/dist-versioned/components/breadcrumb/breadcrumb.js +12 -13
  593. package/dist-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  594. package/dist-versioned/components/breadcrumb-item/breadcrumb-item.js +5 -5
  595. package/dist-versioned/components/button/button.d.ts +6 -1
  596. package/dist-versioned/components/button/button.js +6 -5
  597. package/dist-versioned/components/button-group/button-group.d.ts +1 -1
  598. package/dist-versioned/components/button-group/button-group.js +2 -2
  599. package/dist-versioned/components/carousel/carousel.d.ts +1 -1
  600. package/dist-versioned/components/carousel/carousel.js +10 -10
  601. package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  602. package/dist-versioned/components/carousel-item/carousel-item.js +2 -2
  603. package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
  604. package/dist-versioned/components/checkbox/checkbox.js +7 -7
  605. package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  606. package/dist-versioned/components/checkbox-group/checkbox-group.js +7 -7
  607. package/dist-versioned/components/combobox/combobox.d.ts +1 -1
  608. package/dist-versioned/components/combobox/combobox.js +12 -12
  609. package/dist-versioned/components/datepicker/datepicker.d.ts +1 -1
  610. package/dist-versioned/components/datepicker/datepicker.js +11 -11
  611. package/dist-versioned/components/dialog/dialog.d.ts +7 -9
  612. package/dist-versioned/components/dialog/dialog.js +12 -14
  613. package/dist-versioned/components/divider/divider.d.ts +1 -1
  614. package/dist-versioned/components/divider/divider.js +2 -2
  615. package/dist-versioned/components/drawer/drawer.d.ts +3 -11
  616. package/dist-versioned/components/drawer/drawer.js +12 -14
  617. package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
  618. package/dist-versioned/components/dropdown/dropdown.js +6 -7
  619. package/dist-versioned/components/expandable/expandable.d.ts +1 -1
  620. package/dist-versioned/components/expandable/expandable.js +9 -9
  621. package/dist-versioned/components/file-selector/file-selector.d.ts +72 -0
  622. package/dist-versioned/components/file-selector/file-selector.js +27 -0
  623. package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
  624. package/dist-versioned/components/flipcard/flipcard.js +12 -11
  625. package/dist-versioned/components/header/header.d.ts +2 -1
  626. package/dist-versioned/components/header/header.js +2 -2
  627. package/dist-versioned/components/icon/icon.d.ts +1 -1
  628. package/dist-versioned/components/icon/icon.js +6 -6
  629. package/dist-versioned/components/icon/library.internal.d.ts +1 -0
  630. package/dist-versioned/components/icon/library.internal.js +1 -1
  631. package/dist-versioned/components/icon/library.js +2 -2
  632. package/dist-versioned/components/include/include.d.ts +1 -1
  633. package/dist-versioned/components/include/include.js +2 -2
  634. package/dist-versioned/components/input/input.d.ts +2 -2
  635. package/dist-versioned/components/input/input.js +9 -9
  636. package/dist-versioned/components/link/link.d.ts +1 -1
  637. package/dist-versioned/components/link/link.js +2 -2
  638. package/dist-versioned/components/loader/loader.d.ts +1 -1
  639. package/dist-versioned/components/loader/loader.js +4 -4
  640. package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
  641. package/dist-versioned/components/map-marker/map-marker.js +2 -2
  642. package/dist-versioned/components/menu/menu.d.ts +1 -1
  643. package/dist-versioned/components/menu/menu.js +4 -4
  644. package/dist-versioned/components/menu-item/menu-item.d.ts +1 -1
  645. package/dist-versioned/components/menu-item/menu-item.js +2 -2
  646. package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  647. package/dist-versioned/components/navigation-item/navigation-item.js +10 -10
  648. package/dist-versioned/components/notification/notification.d.ts +1 -1
  649. package/dist-versioned/components/notification/notification.js +12 -11
  650. package/dist-versioned/components/optgroup/optgroup.d.ts +1 -1
  651. package/dist-versioned/components/optgroup/optgroup.js +5 -5
  652. package/dist-versioned/components/option/option.d.ts +1 -1
  653. package/dist-versioned/components/option/option.js +7 -7
  654. package/dist-versioned/components/popup/popup.d.ts +1 -1
  655. package/dist-versioned/components/popup/popup.js +2 -2
  656. package/dist-versioned/components/progress-bar/progress-bar.d.ts +1 -1
  657. package/dist-versioned/components/progress-bar/progress-bar.js +4 -4
  658. package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
  659. package/dist-versioned/components/quickfact/quickfact.js +10 -10
  660. package/dist-versioned/components/radio/radio.d.ts +1 -1
  661. package/dist-versioned/components/radio/radio.js +2 -2
  662. package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
  663. package/dist-versioned/components/radio-button/radio-button.js +2 -2
  664. package/dist-versioned/components/radio-group/radio-group.d.ts +1 -1
  665. package/dist-versioned/components/radio-group/radio-group.js +4 -4
  666. package/dist-versioned/components/range/range.d.ts +1 -1
  667. package/dist-versioned/components/range/range.js +11 -11
  668. package/dist-versioned/components/range-tick/range-tick.d.ts +1 -1
  669. package/dist-versioned/components/range-tick/range-tick.js +4 -4
  670. package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
  671. package/dist-versioned/components/scrollable/scrollable.js +9 -9
  672. package/dist-versioned/components/select/select.d.ts +1 -1
  673. package/dist-versioned/components/select/select.js +12 -12
  674. package/dist-versioned/components/skeleton/skeleton.d.ts +1 -1
  675. package/dist-versioned/components/skeleton/skeleton.js +2 -2
  676. package/dist-versioned/components/step/step.d.ts +1 -1
  677. package/dist-versioned/components/step/step.js +7 -7
  678. package/dist-versioned/components/step-group/step-group.d.ts +1 -1
  679. package/dist-versioned/components/step-group/step-group.js +2 -2
  680. package/dist-versioned/components/switch/switch.d.ts +1 -1
  681. package/dist-versioned/components/switch/switch.js +2 -2
  682. package/dist-versioned/components/tab/tab.d.ts +1 -1
  683. package/dist-versioned/components/tab/tab.js +4 -4
  684. package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
  685. package/dist-versioned/components/tab-group/tab-group.js +10 -10
  686. package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  687. package/dist-versioned/components/tab-panel/tab-panel.js +2 -2
  688. package/dist-versioned/components/tag/tag.d.ts +1 -1
  689. package/dist-versioned/components/tag/tag.js +9 -9
  690. package/dist-versioned/components/teaser/teaser.js +2 -2
  691. package/dist-versioned/components/teaser-media/teaser-media.js +2 -2
  692. package/dist-versioned/components/textarea/textarea.d.ts +2 -2
  693. package/dist-versioned/components/textarea/textarea.js +7 -7
  694. package/dist-versioned/components/theme-listener/theme-listener.d.ts +1 -1
  695. package/dist-versioned/components/theme-listener/theme-listener.js +2 -2
  696. package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
  697. package/dist-versioned/components/tooltip/tooltip.js +10 -10
  698. package/dist-versioned/components/video/video.d.ts +1 -1
  699. package/dist-versioned/components/video/video.js +9 -9
  700. package/dist-versioned/custom-elements.json +1036 -539
  701. package/dist-versioned/internal/form.js +2 -2
  702. package/dist-versioned/solid-components.css +9 -6
  703. package/dist-versioned/solid-components.d.ts +1 -1
  704. package/dist-versioned/solid-components.js +80 -82
  705. package/dist-versioned/translations/de.js +1 -1
  706. package/dist-versioned/translations/en.js +1 -1
  707. package/dist-versioned/utilities/autocomplete-config.js +3 -3
  708. package/dist-versioned/utilities/icon-library.js +2 -2
  709. package/dist-versioned/utilities/localize.d.ts +7 -0
  710. package/dist-versioned/utilities/localize.js +2 -2
  711. package/dist-versioned/vscode.html-custom-data.json +240 -165
  712. package/dist-versioned/web-types.json +506 -257
  713. package/package.json +24 -24
  714. package/cdn/chunks/chunk.2DXMRKN3.js +0 -2
  715. package/cdn/chunks/chunk.3KUBBEDF.js +0 -4
  716. package/cdn/chunks/chunk.3L472FD4.js +0 -1
  717. package/cdn/chunks/chunk.5NK5RKKZ.js +0 -12
  718. package/cdn/chunks/chunk.7SLF374G.js +0 -2
  719. package/cdn/chunks/chunk.A7AH5DNR.js +0 -2
  720. package/cdn/chunks/chunk.APZUONW2.js +0 -2
  721. package/cdn/chunks/chunk.E4KXIVE5.js +0 -2
  722. package/cdn/chunks/chunk.FFIQGZKB.js +0 -2
  723. package/cdn/chunks/chunk.GAOAOKL4.js +0 -2
  724. package/cdn/chunks/chunk.GLM2MXY3.js +0 -2
  725. package/cdn/chunks/chunk.LIJDAVU5.js +0 -2
  726. package/cdn/chunks/chunk.NADOKI3X.js +0 -1
  727. package/cdn/chunks/chunk.ND7KR2OB.js +0 -26
  728. package/cdn/chunks/chunk.O7KFGYFO.js +0 -1
  729. package/cdn/chunks/chunk.P3PSCTOG.js +0 -2
  730. package/cdn/chunks/chunk.PB7NJRWC.js +0 -1
  731. package/cdn/chunks/chunk.TXP36Z3M.js +0 -1
  732. package/cdn/chunks/chunk.XIS5S2BQ.js +0 -2
  733. package/cdn/components/spinner/spinner.d.ts +0 -13
  734. package/cdn/components/spinner/spinner.js +0 -1
  735. package/cdn/internal/modal.d.ts +0 -12
  736. package/cdn/internal/modal.js +0 -49
  737. package/cdn-versioned/chunks/chunk.2DXMRKN3.js +0 -2
  738. package/cdn-versioned/chunks/chunk.2I5OTO4L.js +0 -2
  739. package/cdn-versioned/chunks/chunk.2JXJ24RQ.js +0 -2
  740. package/cdn-versioned/chunks/chunk.3KUBBEDF.js +0 -4
  741. package/cdn-versioned/chunks/chunk.3L472FD4.js +0 -1
  742. package/cdn-versioned/chunks/chunk.3ZA7LK5B.js +0 -2
  743. package/cdn-versioned/chunks/chunk.55K7D54J.js +0 -2
  744. package/cdn-versioned/chunks/chunk.5NK5RKKZ.js +0 -12
  745. package/cdn-versioned/chunks/chunk.7SLF374G.js +0 -2
  746. package/cdn-versioned/chunks/chunk.A4ICFOOO.js +0 -2
  747. package/cdn-versioned/chunks/chunk.A7AH5DNR.js +0 -2
  748. package/cdn-versioned/chunks/chunk.APZUONW2.js +0 -2
  749. package/cdn-versioned/chunks/chunk.BKHX2CF6.js +0 -2
  750. package/cdn-versioned/chunks/chunk.CIVE342L.js +0 -12
  751. package/cdn-versioned/chunks/chunk.E3RBLJOD.js +0 -2
  752. package/cdn-versioned/chunks/chunk.E4KXIVE5.js +0 -2
  753. package/cdn-versioned/chunks/chunk.ESL4JKQV.js +0 -2
  754. package/cdn-versioned/chunks/chunk.F5X4VAKB.js +0 -5
  755. package/cdn-versioned/chunks/chunk.FFIQGZKB.js +0 -2
  756. package/cdn-versioned/chunks/chunk.GAOAOKL4.js +0 -2
  757. package/cdn-versioned/chunks/chunk.GLM2MXY3.js +0 -2
  758. package/cdn-versioned/chunks/chunk.ITSE6USQ.js +0 -2
  759. package/cdn-versioned/chunks/chunk.J5RIXHGG.js +0 -2
  760. package/cdn-versioned/chunks/chunk.JKD6A4RA.js +0 -2
  761. package/cdn-versioned/chunks/chunk.K2LK6CUI.js +0 -4
  762. package/cdn-versioned/chunks/chunk.LIJDAVU5.js +0 -2
  763. package/cdn-versioned/chunks/chunk.LQYMZEW6.js +0 -2
  764. package/cdn-versioned/chunks/chunk.LRSLQHV6.js +0 -12
  765. package/cdn-versioned/chunks/chunk.MRINOSHO.js +0 -2
  766. package/cdn-versioned/chunks/chunk.MTOCUKPI.js +0 -12
  767. package/cdn-versioned/chunks/chunk.NADOKI3X.js +0 -1
  768. package/cdn-versioned/chunks/chunk.ND7KR2OB.js +0 -26
  769. package/cdn-versioned/chunks/chunk.O7KFGYFO.js +0 -1
  770. package/cdn-versioned/chunks/chunk.OXGNLH3H.js +0 -2
  771. package/cdn-versioned/chunks/chunk.P3PSCTOG.js +0 -2
  772. package/cdn-versioned/chunks/chunk.PB7NJRWC.js +0 -1
  773. package/cdn-versioned/chunks/chunk.PSNO7W6D.js +0 -2
  774. package/cdn-versioned/chunks/chunk.QVGKTTLT.js +0 -2
  775. package/cdn-versioned/chunks/chunk.RQ5YPSVB.js +0 -6
  776. package/cdn-versioned/chunks/chunk.TXP36Z3M.js +0 -1
  777. package/cdn-versioned/chunks/chunk.VXSKQPYR.js +0 -2
  778. package/cdn-versioned/chunks/chunk.XIS5S2BQ.js +0 -2
  779. package/cdn-versioned/chunks/chunk.Z6RYHXBZ.js +0 -2
  780. package/cdn-versioned/components/spinner/spinner.d.ts +0 -13
  781. package/cdn-versioned/components/spinner/spinner.js +0 -1
  782. package/cdn-versioned/internal/modal.d.ts +0 -12
  783. package/cdn-versioned/internal/modal.js +0 -49
  784. package/dist/chunks/chunk.EDMG7C5H.js +0 -57
  785. package/dist/chunks/chunk.HNDYMCBH.js +0 -50
  786. package/dist/chunks/chunk.LB37DTSJ.js +0 -93
  787. package/dist/chunks/chunk.UMIKFOMI.js +0 -65
  788. package/dist/components/spinner/spinner.d.ts +0 -13
  789. package/dist/components/spinner/spinner.js +0 -12
  790. package/dist/internal/modal.d.ts +0 -12
  791. package/dist/internal/modal.js +0 -49
  792. package/dist-versioned/chunks/chunk.4BAU2OM4.js +0 -332
  793. package/dist-versioned/chunks/chunk.EAJ3CM6N.js +0 -70
  794. package/dist-versioned/chunks/chunk.EDMG7C5H.js +0 -57
  795. package/dist-versioned/chunks/chunk.HNDYMCBH.js +0 -50
  796. package/dist-versioned/chunks/chunk.LB37DTSJ.js +0 -93
  797. package/dist-versioned/chunks/chunk.UMIKFOMI.js +0 -65
  798. package/dist-versioned/chunks/chunk.YZ5DZPPN.js +0 -80
  799. package/dist-versioned/components/spinner/spinner.d.ts +0 -13
  800. package/dist-versioned/components/spinner/spinner.js +0 -12
  801. package/dist-versioned/internal/modal.d.ts +0 -12
  802. package/dist-versioned/internal/modal.js +0 -49
  803. /package/cdn/chunks/{chunk.UFTAQNZB.js → chunk.4ZZFYCXX.js} +0 -0
  804. /package/cdn-versioned/chunks/{chunk.UFTAQNZB.js → chunk.4ZZFYCXX.js} +0 -0
@@ -1,4 +1,4 @@
1
- import{a as M,h as V}from"./chunk.ND7KR2OB.js";import{b as j}from"./chunk.OBAEIKIV.js";import{a as I,e as D,f as h,g as l,h as d,i as g,j as $}from"./chunk.6EV4YU6C.js";var p,u,v=class v{constructor({name:e,initialValue:s,detect:r}){d(this,p);d(this,u);this.name=e,this.initialValue=s!=null?s:!0,this.detect=r,v.all[e]=this,Object.defineProperty(v,e,{get(){return this.all[e].value},configurable:!0,enumerable:!0})}get valuePending(){return l(this,p)!==void 0?l(this,p):l(this,u)!==void 0?l(this,u):(g(this,u,this.detect()),l(this,u)instanceof Promise?l(this,u).then(e=>g(this,p,e)):g(this,p,l(this,u)),l(this,u))}get value(){if(l(this,p)!==void 0)return l(this,p);let e=this.valuePending;return e instanceof Promise?this.initialValue:e}static detectAll(){return Promise.all(Object.values(v.all).map(e=>e.valuePending))}};p=new WeakMap,u=new WeakMap,h(v,"all",{});var a=v;var B=new a({name:"TRANSITIONRUN_EVENT_LOOP",detect(){let i=document.createElement("div");document.body.appendChild(i);let e="--bar-"+Date.now();return i.style.cssText=`${e}: 1; transition: ${e} 1ms step-start allow-discrete`,new Promise(s=>{let r=0;requestAnimationFrame(()=>{setTimeout(t=>s(r>1),50),i.addEventListener("transitionrun",t=>r++),i.style.setProperty(e,"2")})}).finally(()=>i.remove())}});var J=new a({name:"UNREGISTERED_TRANSITION",detect(){let i=document.createElement("div");document.body.appendChild(i);let e="--foo-"+Date.now();return i.style.cssText=`${e}: 1; transition: ${e} 1ms step-start allow-discrete`,new Promise(s=>{requestAnimationFrame(()=>{setTimeout(r=>s(!0),30),i.addEventListener("transitionstart",r=>s(!1)),i.style.setProperty(e,"2")})}).finally(()=>i.remove())}});var U=new WeakMap;function C(i,e=globalThis.document){var r;e=(r=e.ownerDocument)!=null?r:e;let s=e.defaultView;if(e.adoptedStyleSheets){let t=new s.CSSStyleSheet;return t.replaceSync(i),Object.isFrozen(e.adoptedStyleSheets)?e.adoptedStyleSheets=[...e.adoptedStyleSheets,t]:e.adoptedStyleSheets.push(t),t}else{let t=U.get(e);return t||(t=e.head.appendChild(e.createElement("style")),U.set(e,t)),t.insertAdjacentText("beforeend",i),t.sheet}}function L(i,e=globalThis.document){let s=e.createElement("div");e.body.append(s);let r="foo(bar)";s.style.setProperty(i,r);let t=getComputedStyle(s).getPropertyValue(i),n=!0;if(t===r){let o=s.appendChild(e.createElement("div"));n=getComputedStyle(o).getPropertyValue(i)!==r}return s.remove(),n}var F={"<angle>":"0deg","<color>":"transparent","<custom-ident>":"none","<image>":"linear-gradient(transparent 0% 100%)","<integer>":"0","<length>":"0px","<length-percentage>":"0px","<number>":"0","<percentage>":"0%","<resolution>":"1dppx","<string>":"''","<time>":"0s","<transform-function>":"scale(1)","<transform-list>":"scale(1)","<url>":"url('')"},z=new Map;function S(i,e={},s=globalThis.document){var o;let r=z.get(s);if(!i.startsWith("--")||r&&i in r||L(i,s))return;let t={syntax:e.syntax||"*",inherits:(o=e.inherits)!=null?o:!0};e.initialValue!==void 0?t.initialValue=e.initialValue:t.syntax!=="*"&&t.syntax in F&&(t.initialValue=F[t.syntax]);let n=C(`@layer style-observer-registered-properties {
1
+ import{a as M,h as V}from"./chunk.5B33ZALC.js";import{b as j}from"./chunk.OBAEIKIV.js";import{a as I,e as D,f as h,g as l,h as d,i as g,j as $}from"./chunk.6EV4YU6C.js";var p,u,v=class v{constructor({name:e,initialValue:s,detect:r}){d(this,p);d(this,u);this.name=e,this.initialValue=s!=null?s:!0,this.detect=r,v.all[e]=this,Object.defineProperty(v,e,{get(){return this.all[e].value},configurable:!0,enumerable:!0})}get valuePending(){return l(this,p)!==void 0?l(this,p):l(this,u)!==void 0?l(this,u):(g(this,u,this.detect()),l(this,u)instanceof Promise?l(this,u).then(e=>g(this,p,e)):g(this,p,l(this,u)),l(this,u))}get value(){if(l(this,p)!==void 0)return l(this,p);let e=this.valuePending;return e instanceof Promise?this.initialValue:e}static detectAll(){return Promise.all(Object.values(v.all).map(e=>e.valuePending))}};p=new WeakMap,u=new WeakMap,h(v,"all",{});var a=v;var B=new a({name:"TRANSITIONRUN_EVENT_LOOP",detect(){let i=document.createElement("div");document.body.appendChild(i);let e="--bar-"+Date.now();return i.style.cssText=`${e}: 1; transition: ${e} 1ms step-start allow-discrete`,new Promise(s=>{let r=0;requestAnimationFrame(()=>{setTimeout(t=>s(r>1),50),i.addEventListener("transitionrun",t=>r++),i.style.setProperty(e,"2")})}).finally(()=>i.remove())}});var J=new a({name:"UNREGISTERED_TRANSITION",detect(){let i=document.createElement("div");document.body.appendChild(i);let e="--foo-"+Date.now();return i.style.cssText=`${e}: 1; transition: ${e} 1ms step-start allow-discrete`,new Promise(s=>{requestAnimationFrame(()=>{setTimeout(r=>s(!0),30),i.addEventListener("transitionstart",r=>s(!1)),i.style.setProperty(e,"2")})}).finally(()=>i.remove())}});var U=new WeakMap;function C(i,e=globalThis.document){var r;e=(r=e.ownerDocument)!=null?r:e;let s=e.defaultView;if(e.adoptedStyleSheets){let t=new s.CSSStyleSheet;return t.replaceSync(i),Object.isFrozen(e.adoptedStyleSheets)?e.adoptedStyleSheets=[...e.adoptedStyleSheets,t]:e.adoptedStyleSheets.push(t),t}else{let t=U.get(e);return t||(t=e.head.appendChild(e.createElement("style")),U.set(e,t)),t.insertAdjacentText("beforeend",i),t.sheet}}function L(i,e=globalThis.document){let s=e.createElement("div");e.body.append(s);let r="foo(bar)";s.style.setProperty(i,r);let t=getComputedStyle(s).getPropertyValue(i),n=!0;if(t===r){let o=s.appendChild(e.createElement("div"));n=getComputedStyle(o).getPropertyValue(i)!==r}return s.remove(),n}var F={"<angle>":"0deg","<color>":"transparent","<custom-ident>":"none","<image>":"linear-gradient(transparent 0% 100%)","<integer>":"0","<length>":"0px","<length-percentage>":"0px","<number>":"0","<percentage>":"0%","<resolution>":"1dppx","<string>":"''","<time>":"0s","<transform-function>":"scale(1)","<transform-list>":"scale(1)","<url>":"url('')"},z=new Map;function S(i,e={},s=globalThis.document){var o;let r=z.get(s);if(!i.startsWith("--")||r&&i in r||L(i,s))return;let t={syntax:e.syntax||"*",inherits:(o=e.inherits)!=null?o:!0};e.initialValue!==void 0?t.initialValue=e.initialValue:t.syntax!=="*"&&t.syntax in F&&(t.initialValue=F[t.syntax]);let n=C(`@layer style-observer-registered-properties {
2
2
  @property ${i} {
3
3
  syntax: "${t.syntax}";
4
4
  inherits: ${t.inherits};
@@ -9,5 +9,5 @@ import{a as M,h as V}from"./chunk.ND7KR2OB.js";import{b as j}from"./chunk.OBAEIK
9
9
  /* This declaration shouldn't be empty for the bug to trigger */
10
10
  color: transparent;
11
11
  }
12
- `),i.shadowRoot.adoptedStyleSheets.push(e);let s=e.cssRules[0].style;s.setProperty("--style-observer-adopted-style-sheet-bug","1");let r=getComputedStyle(i),t=r.getPropertyValue("--style-observer-adopted-style-sheet-bug");s.removeProperty("--style-observer-adopted-style-sheet-bug"),r=getComputedStyle(i);let n=r.getPropertyValue("--style-observer-adopted-style-sheet-bug");return i.remove(),t===n}});var E=class extends WeakMap{has(e,s){if(arguments.length===1)return super.has(e);let r=super.get(e);return(r==null?void 0:r.has(s))||!1}add(e,s){var t;let r=(t=super.get(e))!=null?t:new Set;r.add(s),super.set(e,r)}delete(e,...s){let r=super.get(e);if(r){for(let t of s)r.delete(t);r.size===0&&super.delete(e)}}};function f(i){return i==null?[]:Array.isArray(i)?i:typeof i!="string"&&typeof i[Symbol.iterator]=="function"?Array.from(i):[i]}function H(i){return i?new Promise(e=>setTimeout(e,i)):new Promise(e=>requestAnimationFrame(e))}var N;function Q(i){N!=null||(N=document.createElement("div"));let e=N.style;e[i]="inherit";let s=[...e];return s.length===0&&(s=[i]),e.cssText="",s}function X(i){let e=i.matchAll(/(?:^|\s)([+-]?(?:\d+|\d*\.\d+))\s*(ms|s)?(?=\s|$)/g),s=[];for(let r of e){let[,t,n]=r;t=parseFloat(t),n==="s"&&(t*=1e3),s.push(t)}return s}function W(i,e){e=Z(e);let s;if(i==="all")s=/\b\w+\b/g;else{let m=[...new Set([...Q(i),i,"all"])];s=RegExp(`(?:^|\\s)(${m.join("|")})\\b`)}let r=e.findLast(m=>s.test(m)),t=r?X(r):[0,0];t.length===0?t=[0,0]:t.length===1&&t.push(0);let[n,o]=t;return{duration:n,delay:o}}function Z(i){let e=[],s=0,r=[];for(let t of i.matchAll(/[,()]/g)){let n=t[0];if(n===","){if(r.length===0){let o=i.slice(s,t.index);e.push(o.trim()),s=t.index+1}}else n==="("?r.push("("):n===")"&&r.pop()}if(s<i.length){let t=i.slice(s);e.push(t.trim())}return e}var y,T,P=class{constructor(e){d(this,y,new Set);d(this,T,new WeakMap);this.callback=e}observe(e){if(l(this,y).has(e))return;let s=e.ownerDocument,r=l(this,T).get(s);r||(r=new IntersectionObserver(t=>{this.callback(t.map(({target:n})=>({target:n})))},{root:s.documentElement}),l(this,T).set(s,r)),l(this,y).add(e),r.observe(e)}unobserve(e){if(!e){for(let t of l(this,y))this.unobserve(t);return}let s=e.ownerDocument,r=l(this,T).get(s);r==null||r.unobserve(e),l(this,y).delete(e)}};y=new WeakMap,T=new WeakMap;var R,q,ee=(q=(R=globalThis.CSS)==null?void 0:R.supports)!=null&&q.call(R,"transition-behavior","allow-discrete")?" allow-discrete":"";globalThis.document&&(S("--style-observer-transition",{inherits:!1}),a.detectAll());var x,_,G,O,c=class{constructor(e,s,r={}){d(this,_);h(this,"properties");h(this,"target");h(this,"callback");h(this,"options");d(this,x,!1);d(this,O);h(this,"_shadowSheet");h(this,"_styles",{});this.constructor.all.add(e,this),this.properties=new Map,this.target=e,this.callback=s,this.options=I({properties:[]},r);let t=f(r.properties);this.renderedObserver=new P(n=>{this.propertyNames.length>0&&this.handleEvent()}),t.length>0&&this.observe(t)}get propertyNames(){return[...this.properties.keys()]}resolveOptions(e){return Object.assign(k(e),this.options)}async handleEvent(e){if(e&&!this.properties.has(e.propertyName))return;if(a.TRANSITIONRUN_EVENT_LOOP&&(e==null?void 0:e.type)==="transitionrun"||this.options.throttle>0){let t=a.TRANSITIONRUN_EVENT_LOOP?"transitionrun":"transitionstart",n=Math.max(this.options.throttle,50);if(a.TRANSITIONRUN_EVENT_LOOP){let o=W(e.propertyName,getComputedStyle(this.target).transition);n=Math.max(n,o.duration+o.delay+16)}this.target.removeEventListener(t,this),await H(n),this.target.addEventListener(t,this)}let s=getComputedStyle(this.target),r=[];for(let t of this.propertyNames){let n=s.getPropertyValue(t),o=this.properties.get(t);n!==o&&(r.push({target:this.target,property:t,value:n,oldValue:o}),this.properties.set(t,n))}r.length>0&&this.callback(r)}observe(e){var r;if(e=f(e),e=e.filter(t=>!this.properties.has(t)),e.length===0)return;$(this,_,G).call(this);let s=getComputedStyle(this.target);for(let t of e){a.UNREGISTERED_TRANSITION&&!this.constructor.properties.has(t)&&(S(t,void 0,this.target.ownerDocument),this.constructor.properties.add(t));let n=s.getPropertyValue(t);this.properties.set(t,n)}a.TRANSITIONRUN_EVENT_LOOP&&(this.target.addEventListener("transitionrun",this),(r=a.all.TRANSITIONRUN_EVENT_LOOP.valuePending)==null||r.then(t=>{t||this.target.removeEventListener("transitionrun",this)})),this.target.addEventListener("transitionstart",this),this.target.addEventListener("transitionend",this),this.updateTransitionProperties(),this.renderedObserver.observe(this.target)}updateTransitionProperties(){this.setProperty("--style-observer-transition","");let e=new Set(getComputedStyle(this.target).transitionProperty.split(", ")),s=[];for(let t of this.constructor.all.get(this.target))s.push(...t.propertyNames);s=[...new Set(s)];let r=s.filter(t=>!e.has(t)).map(t=>`${t} 1ms step-start${ee}`).join(", ");this.setProperty("--style-observer-transition",r)}updateTransition({firstTime:e}={}){let s="var(--style-observer-transition, --style-observer-noop)",r=this.getProperty("transition"),t;(e?r:!r.includes(s))&&(t=g(this,O,r)),t===void 0&&(e||!l(this,O))&&(r.includes(s)&&this.setProperty("transition",""),t=getComputedStyle(this.target).transition),t==="all"?t="":t=t.replace(/^none\b/,"");let n=t?t+", ":"";this.setProperty("transition",n+s),this.updateTransitionProperties()}get _isHost(){return this.target.shadowRoot&&!a.ADOPTED_STYLE_SHEET&&!Object.isFrozen(this.target.shadowRoot.adoptedStyleSheets)}setProperty(e,s,r){let t=this.target.style,n=t;if(this._isHost){if(!this._shadowSheet&&(this._shadowSheet=new CSSStyleSheet,this._shadowSheet.insertRule(":host { }"),this.target.shadowRoot.adoptedStyleSheets.push(this._shadowSheet),Object.keys(this._styles).length>0))for(let o in this._styles){let m=this._styles[o];this.setProperty(o,m),t.getPropertyValue(o)===m&&t.removeProperty(o)}n=this._shadowSheet.cssRules[0].style}n.setProperty(e,s,r),this._styles[e]=this.getProperty(e)}getProperty(e){var r,t,n;return((n=(t=(r=this._shadowSheet)==null?void 0:r.cssRules[0])==null?void 0:t.style)!=null?n:this.target.style).getPropertyValue(e)}unobserve(e){e=f(e),e=e.filter(s=>this.properties.has(s));for(let s of e)this.properties.delete(s);this.properties.size===0&&(this.target.removeEventListener("transitionrun",this),this.target.removeEventListener("transitionstart",this),this.target.removeEventListener("transitionend",this),this.renderedObserver.unobserve(this.target)),this.updateTransitionProperties()}};x=new WeakMap,_=new WeakSet,G=function(){if(l(this,x))return;let e=this.constructor.all.get(this.target).size===1;this.updateTransition({firstTime:e}),g(this,x,!0)},O=new WeakMap,h(c,"properties",new Set),h(c,"all",new E);function k(i){return i?(typeof i=="string"||Array.isArray(i)?i={properties:f(i)}:typeof i=="object"&&(i=I({properties:[]},i)),i):{}}var b=class{constructor(e,s){h(this,"elementObservers",new WeakMap);var r;this.callback=e,s=k(s),(r=s.targets)!=null||(s.targets=[]),s.target&&s.targets.push(s.target),this.options=s,this.options.targets.length>0&&this.options.properties.length>0&&this.observe(this.options.targets,this.options.properties)}changed(e){this.callback(e)}observe(...e){let{targets:s,properties:r}=Y(...e);if(s.length===0&&(s=this.options.targets),s.length!==0)for(let t of s){let n=this.elementObservers.get(t);n||(n=new c(t,o=>this.changed(o),this.options),this.elementObservers.set(t,n)),n.observe(r)}}unobserve(...e){let{targets:s,properties:r}=Y(...e);if(s.length===0&&(s=this.options.targets),s.length!==0){r.length===0&&(r=this.options.properties);for(let t of s){let n=this.elementObservers.get(t);n&&n.unobserve(r)}}}updateTransition(e){for(let s of f(e)){let r=this.elementObservers.get(s);r&&r.updateTransition()}}};function Y(i,e){let s=[...f(i),...f(e)];i=[],e=[];for(let r of s)(typeof r=="string"||r instanceof String?e:i).push(r);return{targets:i,properties:e}}var A=class{constructor(e,s){this.host=e,this.callback=s}connect(){this.observer=new b(e=>{var r,t;let s=(t=(r=e==null?void 0:e[0])==null?void 0:r.value)==null?void 0:t.replaceAll("'","");s&&this.callback(s)}),this.observer.observe(this.host,"--sd-theme")}disconnect(){var e;(e=this.observer)==null||e.unobserve(this.host)}};var w=class extends V{handleThemeChange(e){this.emit("sd-theme-change",{detail:{theme:e},bubbles:!0})}connectedCallback(){super.connectedCallback(),this.themeObserver=new A(this,this.handleThemeChange.bind(this)),this.themeObserver.connect()}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.themeObserver)==null||e.disconnect()}};w.styles=[...V.styles,j`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
12
+ `),i.shadowRoot.adoptedStyleSheets.push(e);let s=e.cssRules[0].style;s.setProperty("--style-observer-adopted-style-sheet-bug","1");let r=getComputedStyle(i),t=r.getPropertyValue("--style-observer-adopted-style-sheet-bug");s.removeProperty("--style-observer-adopted-style-sheet-bug"),r=getComputedStyle(i);let n=r.getPropertyValue("--style-observer-adopted-style-sheet-bug");return i.remove(),t===n}});var E=class extends WeakMap{has(e,s){if(arguments.length===1)return super.has(e);let r=super.get(e);return(r==null?void 0:r.has(s))||!1}add(e,s){var t;let r=(t=super.get(e))!=null?t:new Set;r.add(s),super.set(e,r)}delete(e,...s){let r=super.get(e);if(r){for(let t of s)r.delete(t);r.size===0&&super.delete(e)}}};function f(i){return i==null?[]:Array.isArray(i)?i:typeof i!="string"&&typeof i[Symbol.iterator]=="function"?Array.from(i):[i]}function H(i){return i?new Promise(e=>setTimeout(e,i)):new Promise(e=>requestAnimationFrame(e))}var N;function Q(i){N!=null||(N=document.createElement("div"));let e=N.style;e[i]="inherit";let s=[...e];return s.length===0&&(s=[i]),e.cssText="",s}function X(i){let e=i.matchAll(/(?:^|\s)([+-]?(?:\d+|\d*\.\d+))\s*(ms|s)?(?=\s|$)/g),s=[];for(let r of e){let[,t,n]=r;t=parseFloat(t),n==="s"&&(t*=1e3),s.push(t)}return s}function W(i,e){e=Z(e);let s;if(i==="all")s=/\b\w+\b/g;else{let m=[...new Set([...Q(i),i,"all"])];s=RegExp(`(?:^|\\s)(${m.join("|")})\\b`)}let r=e.findLast(m=>s.test(m)),t=r?X(r):[0,0];t.length===0?t=[0,0]:t.length===1&&t.push(0);let[n,o]=t;return{duration:n,delay:o}}function Z(i){let e=[],s=0,r=[];for(let t of i.matchAll(/[,()]/g)){let n=t[0];if(n===","){if(r.length===0){let o=i.slice(s,t.index);e.push(o.trim()),s=t.index+1}}else n==="("?r.push("("):n===")"&&r.pop()}if(s<i.length){let t=i.slice(s);e.push(t.trim())}return e}var y,T,P=class{constructor(e){d(this,y,new Set);d(this,T,new WeakMap);this.callback=e}observe(e){if(l(this,y).has(e))return;let s=e.ownerDocument,r=l(this,T).get(s);r||(r=new IntersectionObserver(t=>{this.callback(t.map(({target:n})=>({target:n})))},{root:s.documentElement}),l(this,T).set(s,r)),l(this,y).add(e),r.observe(e)}unobserve(e){if(!e){for(let t of l(this,y))this.unobserve(t);return}let s=e.ownerDocument,r=l(this,T).get(s);r==null||r.unobserve(e),l(this,y).delete(e)}};y=new WeakMap,T=new WeakMap;var R,q,ee=(q=(R=globalThis.CSS)==null?void 0:R.supports)!=null&&q.call(R,"transition-behavior","allow-discrete")?" allow-discrete":"";globalThis.document&&(S("--style-observer-transition",{inherits:!1}),a.detectAll());var x,_,G,O,c=class{constructor(e,s,r={}){d(this,_);h(this,"properties");h(this,"target");h(this,"callback");h(this,"options");d(this,x,!1);d(this,O);h(this,"_shadowSheet");h(this,"_styles",{});this.constructor.all.add(e,this),this.properties=new Map,this.target=e,this.callback=s,this.options=I({properties:[]},r);let t=f(r.properties);this.renderedObserver=new P(n=>{this.propertyNames.length>0&&this.handleEvent()}),t.length>0&&this.observe(t)}get propertyNames(){return[...this.properties.keys()]}resolveOptions(e){return Object.assign(k(e),this.options)}async handleEvent(e){if(e&&!this.properties.has(e.propertyName))return;if(a.TRANSITIONRUN_EVENT_LOOP&&(e==null?void 0:e.type)==="transitionrun"||this.options.throttle>0){let t=a.TRANSITIONRUN_EVENT_LOOP?"transitionrun":"transitionstart",n=Math.max(this.options.throttle,50);if(a.TRANSITIONRUN_EVENT_LOOP){let o=W(e.propertyName,getComputedStyle(this.target).transition);n=Math.max(n,o.duration+o.delay+16)}this.target.removeEventListener(t,this),await H(n),this.target.addEventListener(t,this)}let s=getComputedStyle(this.target),r=[];for(let t of this.propertyNames){let n=s.getPropertyValue(t),o=this.properties.get(t);n!==o&&(r.push({target:this.target,property:t,value:n,oldValue:o}),this.properties.set(t,n))}r.length>0&&this.callback(r)}observe(e){var r;if(e=f(e),e=e.filter(t=>!this.properties.has(t)),e.length===0)return;$(this,_,G).call(this);let s=getComputedStyle(this.target);for(let t of e){a.UNREGISTERED_TRANSITION&&!this.constructor.properties.has(t)&&(S(t,void 0,this.target.ownerDocument),this.constructor.properties.add(t));let n=s.getPropertyValue(t);this.properties.set(t,n)}a.TRANSITIONRUN_EVENT_LOOP&&(this.target.addEventListener("transitionrun",this),(r=a.all.TRANSITIONRUN_EVENT_LOOP.valuePending)==null||r.then(t=>{t||this.target.removeEventListener("transitionrun",this)})),this.target.addEventListener("transitionstart",this),this.target.addEventListener("transitionend",this),this.updateTransitionProperties(),this.renderedObserver.observe(this.target)}updateTransitionProperties(){this.setProperty("--style-observer-transition","");let e=new Set(getComputedStyle(this.target).transitionProperty.split(", ")),s=[];for(let t of this.constructor.all.get(this.target))s.push(...t.propertyNames);s=[...new Set(s)];let r=s.filter(t=>!e.has(t)).map(t=>`${t} 1ms step-start${ee}`).join(", ");this.setProperty("--style-observer-transition",r)}updateTransition({firstTime:e}={}){let s="var(--style-observer-transition, --style-observer-noop)",r=this.getProperty("transition"),t;(e?r:!r.includes(s))&&(t=g(this,O,r)),t===void 0&&(e||!l(this,O))&&(r.includes(s)&&this.setProperty("transition",""),t=getComputedStyle(this.target).transition),t==="all"?t="":t=t.replace(/^none\b/,"");let n=t?t+", ":"";this.setProperty("transition",n+s),this.updateTransitionProperties()}get _isHost(){return this.target.shadowRoot&&!a.ADOPTED_STYLE_SHEET&&!Object.isFrozen(this.target.shadowRoot.adoptedStyleSheets)}setProperty(e,s,r){let t=this.target.style,n=t;if(this._isHost){if(!this._shadowSheet&&(this._shadowSheet=new CSSStyleSheet,this._shadowSheet.insertRule(":host { }"),this.target.shadowRoot.adoptedStyleSheets.push(this._shadowSheet),Object.keys(this._styles).length>0))for(let o in this._styles){let m=this._styles[o];this.setProperty(o,m),t.getPropertyValue(o)===m&&t.removeProperty(o)}n=this._shadowSheet.cssRules[0].style}n.setProperty(e,s,r),this._styles[e]=this.getProperty(e)}getProperty(e){var r,t,n;return((n=(t=(r=this._shadowSheet)==null?void 0:r.cssRules[0])==null?void 0:t.style)!=null?n:this.target.style).getPropertyValue(e)}unobserve(e){e=f(e),e=e.filter(s=>this.properties.has(s));for(let s of e)this.properties.delete(s);this.properties.size===0&&(this.target.removeEventListener("transitionrun",this),this.target.removeEventListener("transitionstart",this),this.target.removeEventListener("transitionend",this),this.renderedObserver.unobserve(this.target)),this.updateTransitionProperties()}};x=new WeakMap,_=new WeakSet,G=function(){if(l(this,x))return;let e=this.constructor.all.get(this.target).size===1;this.updateTransition({firstTime:e}),g(this,x,!0)},O=new WeakMap,h(c,"properties",new Set),h(c,"all",new E);function k(i){return i?(typeof i=="string"||Array.isArray(i)?i={properties:f(i)}:typeof i=="object"&&(i=I({properties:[]},i)),i):{}}var b=class{constructor(e,s){h(this,"elementObservers",new WeakMap);var r;this.callback=e,s=k(s),(r=s.targets)!=null||(s.targets=[]),s.target&&s.targets.push(s.target),this.options=s,this.options.targets.length>0&&this.options.properties.length>0&&this.observe(this.options.targets,this.options.properties)}changed(e){this.callback(e)}observe(...e){let{targets:s,properties:r}=Y(...e);if(s.length===0&&(s=this.options.targets),s.length!==0)for(let t of s){let n=this.elementObservers.get(t);n||(n=new c(t,o=>this.changed(o),this.options),this.elementObservers.set(t,n)),n.observe(r)}}unobserve(...e){let{targets:s,properties:r}=Y(...e);if(s.length===0&&(s=this.options.targets),s.length!==0){r.length===0&&(r=this.options.properties);for(let t of s){let n=this.elementObservers.get(t);n&&n.unobserve(r)}}}updateTransition(e){for(let s of f(e)){let r=this.elementObservers.get(s);r&&r.updateTransition()}}};function Y(i,e){let s=[...f(i),...f(e)];i=[],e=[];for(let r of s)(typeof r=="string"||r instanceof String?e:i).push(r);return{targets:i,properties:e}}var A=class{constructor(e,s){this.host=e,this.callback=s}connect(){this.observer=new b(e=>{var r,t;let s=(t=(r=e==null?void 0:e[0])==null?void 0:r.value)==null?void 0:t.replaceAll("'","");s&&this.callback(s)}),this.observer.observe(this.host,"--sd-theme")}disconnect(){var e;(e=this.observer)==null||e.unobserve(this.host)}};var w=class extends V{handleThemeChange(e){this.emit("sd-theme-change",{detail:{theme:e},bubbles:!0})}connectedCallback(){super.connectedCallback(),this.themeObserver=new A(this,this.handleThemeChange.bind(this)),this.themeObserver.connect()}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.themeObserver)==null||e.disconnect()}};w.styles=[...V.styles,j`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
13
13
  :host{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border-width:0}`],w=D([M("sd-theme-listener")],w);export{w as a};
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk.LHSR56PH.js";import{a as g}from"./chunk.CGQ2BPPZ.js";import{a as h,b as s}from"./chunk.NL7YFV4O.js";import{a as e}from"./chunk.UFTAQNZB.js";import{a as l}from"./chunk.NYKJXI3Q.js";import{a as v,b as r,h as d}from"./chunk.ND7KR2OB.js";import{b as p,i as m}from"./chunk.OBAEIKIV.js";import{e as i}from"./chunk.6EV4YU6C.js";var t=class extends d{constructor(){super(...arguments);this.hasSlotController=new g(this,"label","[default]");this.size="lg";this.orientation="horizontal";this.horizontalInline=!1;this.waiting=!1;this.disabled=!1;this.current=!1;this.noTail=!1;this.notInteractive=!1;this.label="";this.description="";this.index=1;this.href=""}connectedCallback(){super.connectedCallback()}isLink(){return!!this.href}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleCurrentChange(){this.current&&(this.disabled=!1,this.waiting=!1)}handleDisabledChange(){this.disabled&&(this.current=!1,this.waiting=!1)}handleWaitingChange(){this.waiting&&(this.current=!1,this.disabled=!1)}handleInteractivityChange(){this.notInteractive&&(this.current=!1,this.disabled=!1,this.waiting=!1)}render(){if(this.size==="xs"&&this.orientation!=="vertical")return console.warn('Size "xs" is only supported when orientation is "vertical". The element will not be rendered.'),m;let u=this.isLink(),f=this.notInteractive||this.waiting?h`div`:u?h`a`:h`button`,w=this.hasSlotController.test("label"),c=this.label?!0:w,x=this.hasSlotController.test("[default]"),a=this.description?!0:x,o=this.horizontalInline&&this.orientation==="horizontal",y=e("flex shrink-0 gap-2 group",this.noTail&&!o&&"w-max",this.orientation==="horizontal"?"flex-row":"flex-col items-stretch",o&&"items-start",this.orientation==="horizontal"&&!this.horizontalInline?this.size==="lg"?"translateLg":"translateSm":this.size==="lg"||this.size==="xs"?"mt-1":"mt-3"),z=e("border sd-step__circle-border-width rounded-full aspect-square circle flex items-center justify-center shrink-0 font-bold select-none",this.disabled?"focus-visible:outline-none cursor-not-allowed":!this.notInteractive&&!this.waiting?"focus-visible:focus-outline hover:cursor-pointer":"",this.notInteractive?this.size==="lg"?"not-interactive-lg":this.size==="xs"?"w-2":"w-12":this.size==="lg"?"w-12":this.size==="xs"?"w-2":"w-8 h-8",this.disabled&&"border-neutral-500 text-neutral-500",this.waiting&&"border-neutral-400 text-neutral-700",this.waiting&&this.size==="xs"&&"border-neutral-700",!this.disabled&&!this.current&&!this.notInteractive&&!this.waiting&&"border-primary hover:bg-primary-100 hover:border-primary-500",this.notInteractive&&(this.size==="xs"?"border-primary":"border-neutral-400"),this.current&&"bg-accent border-none text-white"),b="flex-row items-stretch h-full w-full overflow-hidden";return s`<div role="listitem" part="base" class="${e("flex pt-1",this.orientation==="horizontal"?"flex-col w-full":this.size==="xs"?`${b} gap-2`:`${b} gap-4`,!this.disabled&&!this.current&&!this.notInteractive&&!this.waiting&&"group")}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"><div part="circle-and-tail-container" class="${y}"><${f} part="circle" href="${n(u?this.href:void 0)}" aria-disabled="${n(this.disabled||this.waiting||void 0)}" aria-current="${this.current?"step":void 0}" aria-labelledby="${n(this.notInteractive||this.waiting||!c?void 0:"label")}" aria-describedby="${n(this.notInteractive||this.waiting||!a?void 0:"description")}" class="${z}"><slot name="circle-content" class="${e("text-lg",!this.disabled&&!this.current&&!this.notInteractive&&!this.waiting&&"text-primary hover:text-primary-500 hover:fill-primary-500",this.notInteractive&&"sd-step-color-text")}">${!this.disabled&&!this.current&&!this.notInteractive&&!this.waiting&&this.size!=="xs"?s`<sd-icon name="status-check" library="_internal" class="${e(this.size==="sm"&&"text-sm")}"></sd-icon>`:this.size==="xs"?"":s`${this.index}`}</slot></${f}>${o?s`<div class="${e(!this.noTail&&"flex-1","flex flex-col gap-1")}"><div class="${e("flex w-full",c&&"gap-2",this.size==="sm"&&!a?"mt-1":"mt-3")}">${c&&s`<div part="label" id="label" class="${e("font-bold whitespace-nowrap",this.disabled&&"text-neutral-500",this.waiting&&"text-neutral-700",!this.disabled&&!this.current&&!this.notInteractive&&!this.waiting&&"text-black")}"><slot name="label">${this.label}</slot></div>`} ${this.noTail?"":s`<div part="tail" class="${e("border-t flex-1 mr-2 mt-3",!this.disabled&&!this.current&&!this.notInteractive&&!this.waiting?"border-primary group-hover:border-primary-500":"border-neutral-400")}"></div>`}</div>${a?s`<div part="description" id="description" class="${e("sd-paragraph sd-paragraph--size-sm wrap-break-word",a?"flex-1":"w-0 h-0 overflow-hidden",a&&!this.noTail&&"pr-4",(this.disabled||this.waiting)&&"!text-neutral-700")}">${this.description||s`<slot></slot>`}</div>`:""}</div>`:this.noTail?"":s`<div part="tail" class="${e(this.orientation==="horizontal"?"border-t w-full my-auto mr-2":"border-l grow shrink-0 basis-auto h-full w-[1px] mx-auto",!this.disabled&&!this.current&&!this.notInteractive&&!this.waiting?"border-primary group-hover:border-primary-500":"border-neutral-400")}"></div>`}</div>${o?"":s`<div part="text-container" class="${e("wrap-break-word flex flex-col gap-2",this.size==="xs"?"-mt-1 mb-4":"mt-4",this.orientation==="horizontal"?"text-center w-40":"text-left",this.disabled&&"text-neutral-500",this.waiting&&"text-neutral-700",this.notInteractive?this.size==="xs"?"ml-0":"ml-2":"mr-4")}"><div part="label" id="label" class="${e("font-bold",this.disabled&&"text-neutral-500",this.waiting&&"text-neutral-700",!this.disabled&&!this.current&&!this.notInteractive&&!this.waiting&&"text-black")}"><slot name="label">${this.label}</slot></div><div part="description" id="description" class="${e("sd-paragraph sd-paragraph--size-sm",(this.disabled||this.waiting)&&"text-neutral-700")}">${this.description||s`<slot></slot>`}</div></div>`}</div>`}};t.styles=[...d.styles,p`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- :host{flex:1}:host([orientation=horizontal]) [part=tail]{border-top-width:var(--sd-step__tail-border-width)}:host([orientation=vertical]) [part=tail]{border-left-width:var(--sd-step__tail-border-width)}:host([no-tail]){flex-grow:0}:host(:not([current])) (:not([notInteractive])) slot[name=circle-content]{color:rgba(var(--sd-color-text-neutral-700))}slot[name=circle-content] sd-icon,slot[name=circle-content]::slotted(sd-icon){color:rgba(var(--sd-color-icon-fill-primary))}[part=circle]:hover slot[name=circle-content] sd-icon,[part=circle]:hover slot[name=circle-content]::slotted(sd-icon){color:rgba(var(--sd-color-icon-fill-primary-500))}:host([horizontal-inline]):has([part=description]){min-width:calc(var(--sd-spacing-1) * 0);flex:1}.translateLg{transform:translateX(3.438rem)}.translateSm{transform:translateX(4rem)}.not-interactive-lg{width:4.5rem}`],i([r({type:String,reflect:!0})],t.prototype,"size",2),i([r({type:String,reflect:!0})],t.prototype,"orientation",2),i([r({type:Boolean,reflect:!0,attribute:"horizontal-inline"})],t.prototype,"horizontalInline",2),i([r({type:Boolean,reflect:!0})],t.prototype,"waiting",2),i([r({type:Boolean,reflect:!0})],t.prototype,"disabled",2),i([r({type:Boolean,reflect:!0})],t.prototype,"current",2),i([r({reflect:!0,type:Boolean,attribute:"no-tail"})],t.prototype,"noTail",2),i([r({type:Boolean,reflect:!0,attribute:"not-interactive"})],t.prototype,"notInteractive",2),i([r({type:String,reflect:!0})],t.prototype,"label",2),i([r({type:String,reflect:!0})],t.prototype,"description",2),i([r({type:Number,reflect:!0,attribute:"index"})],t.prototype,"index",2),i([r({type:String,reflect:!0})],t.prototype,"href",2),i([l("current")],t.prototype,"handleCurrentChange",1),i([l("disabled")],t.prototype,"handleDisabledChange",1),i([l("waiting")],t.prototype,"handleWaitingChange",1),i([l("notInteractive")],t.prototype,"handleInteractivityChange",1),t=i([v("sd-step")],t);export{t as a};
1
+ import{a as n}from"./chunk.LHSR56PH.js";import{a as g}from"./chunk.CGQ2BPPZ.js";import{a as h,b as s}from"./chunk.NL7YFV4O.js";import{a as e}from"./chunk.4ZZFYCXX.js";import{a as l}from"./chunk.NYKJXI3Q.js";import{a as v,b as r,h as d}from"./chunk.5B33ZALC.js";import{b as m,i as p}from"./chunk.OBAEIKIV.js";import{e as i}from"./chunk.6EV4YU6C.js";var t=class extends d{constructor(){super(...arguments);this.hasSlotController=new g(this,"label","[default]");this.size="lg";this.orientation="horizontal";this.horizontalInline=!1;this.waiting=!1;this.disabled=!1;this.current=!1;this.noTail=!1;this.notInteractive=!1;this.label="";this.description="";this.index=1;this.href=""}connectedCallback(){super.connectedCallback()}isLink(){return!!this.href}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleCurrentChange(){this.current&&(this.disabled=!1,this.waiting=!1)}handleDisabledChange(){this.disabled&&(this.current=!1,this.waiting=!1)}handleWaitingChange(){this.waiting&&(this.current=!1,this.disabled=!1)}handleInteractivityChange(){this.notInteractive&&(this.current=!1,this.disabled=!1,this.waiting=!1)}render(){if(this.size==="xs"&&this.orientation!=="vertical")return console.warn('Size "xs" is only supported when orientation is "vertical". The element will not be rendered.'),p;let u=this.isLink(),f=this.notInteractive||this.waiting?h`div`:u?h`a`:h`button`,w=this.hasSlotController.test("label"),c=this.label?!0:w,x=this.hasSlotController.test("[default]"),a=this.description?!0:x,o=this.horizontalInline&&this.orientation==="horizontal",y=e("flex shrink-0 gap-2 group",this.noTail&&!o&&"w-max",this.orientation==="horizontal"?"flex-row":"flex-col items-stretch",o&&"items-start",this.orientation==="horizontal"&&!this.horizontalInline?this.size==="lg"?"translateLg":"translateSm":this.size==="lg"||this.size==="xs"?"mt-1":"mt-3"),z=e("border sd-step__circle-border-width rounded-full aspect-square circle flex items-center justify-center shrink-0 font-bold select-none",this.disabled?"focus-visible:outline-none cursor-not-allowed":!this.notInteractive&&!this.waiting?"focus-visible:focus-outline hover:cursor-pointer":"",this.notInteractive?this.size==="lg"?"not-interactive-lg":this.size==="xs"?"w-2":"w-12":this.size==="lg"?"w-12":this.size==="xs"?"w-2":"w-8 h-8",this.disabled&&"border-neutral-500 text-neutral-500",this.waiting&&"border-neutral-400 text-neutral-700",this.waiting&&this.size==="xs"&&"border-neutral-700",!this.disabled&&!this.current&&!this.notInteractive&&!this.waiting&&"border-primary hover:bg-primary-100 hover:border-primary-500",this.notInteractive&&(this.size==="xs"?"border-primary":"border-neutral-400"),this.current&&"bg-accent border-none text-white"),b="flex-row items-stretch h-full w-full overflow-hidden";return s`<div role="listitem" part="base" class="${e("flex pt-1",this.orientation==="horizontal"?"flex-col w-full":this.size==="xs"?`${b} gap-2`:`${b} gap-4`,!this.disabled&&!this.current&&!this.notInteractive&&!this.waiting&&"group")}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"><div part="circle-and-tail-container" class="${y}"><${f} part="circle" href="${n(u?this.href:void 0)}" aria-disabled="${n(this.disabled||this.waiting||void 0)}" aria-current="${this.current?"step":void 0}" aria-labelledby="${n(this.notInteractive||this.waiting||!c?void 0:"label")}" aria-describedby="${n(this.notInteractive||this.waiting||!a?void 0:"description")}" class="${z}"><slot name="circle-content" class="${e("text-lg",!this.disabled&&!this.current&&!this.notInteractive&&!this.waiting&&"text-primary hover:text-primary-500 hover:fill-primary-500",this.notInteractive&&"sd-step-color-text")}">${!this.disabled&&!this.current&&!this.notInteractive&&!this.waiting&&this.size!=="xs"?s`<sd-icon name="status-check" library="_internal" class="${e(this.size==="sm"&&"text-sm")}"></sd-icon>`:this.size==="xs"?"":s`${this.index}`}</slot></${f}>${o?s`<div class="${e(!this.noTail&&"flex-1","flex flex-col gap-1")}"><div class="${e("flex w-full",c&&"gap-2",this.size==="sm"&&!a?"mt-1":"mt-3")}">${c&&s`<div part="label" id="label" class="${e("font-bold whitespace-nowrap",this.disabled&&"text-neutral-500",this.waiting&&"text-neutral-700",!this.disabled&&!this.current&&!this.notInteractive&&!this.waiting&&"text-black")}"><slot name="label">${this.label}</slot></div>`} ${this.noTail?"":s`<div part="tail" class="${e("border-t flex-1 mr-2 mt-3",!this.disabled&&!this.current&&!this.notInteractive&&!this.waiting?"border-primary group-hover:border-primary-500":"border-neutral-400")}"></div>`}</div>${a?s`<div part="description" id="description" class="${e("sd-paragraph sd-paragraph--size-sm wrap-break-word",a?"flex-1":"w-0 h-0 overflow-hidden",a&&!this.noTail&&"pr-4",(this.disabled||this.waiting)&&"!text-neutral-700")}">${this.description||s`<slot></slot>`}</div>`:""}</div>`:this.noTail?"":s`<div part="tail" class="${e(this.orientation==="horizontal"?"border-t w-full my-auto mr-2":"border-l grow shrink-0 basis-auto h-full w-[1px] mx-auto",!this.disabled&&!this.current&&!this.notInteractive&&!this.waiting?"border-primary group-hover:border-primary-500":"border-neutral-400")}"></div>`}</div>${o?"":s`<div part="text-container" class="${e("wrap-break-word flex flex-col gap-2",this.size==="xs"?"-mt-1 mb-4":"mt-4",this.orientation==="horizontal"?"text-center w-40":"text-left",this.disabled&&"text-neutral-500",this.waiting&&"text-neutral-700",this.notInteractive?this.size==="xs"?"ml-0":"ml-2":"mr-4")}"><div part="label" id="label" class="${e("font-bold",this.disabled&&"text-neutral-500",this.waiting&&"text-neutral-700",!this.disabled&&!this.current&&!this.notInteractive&&!this.waiting&&"text-black")}"><slot name="label">${this.label}</slot></div><div part="description" id="description" class="${e("sd-paragraph sd-paragraph--size-sm",(this.disabled||this.waiting)&&"text-neutral-700")}">${this.description||s`<slot></slot>`}</div></div>`}</div>`}};t.styles=[...d.styles,m`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ :host{flex:1}:host([orientation=horizontal]) [part=tail]{border-top-width:var(--sd-step__tail-border-width)}:host([orientation=vertical]) [part=tail]{border-left-width:var(--sd-step__tail-border-width)}:host([no-tail]){flex-grow:0}:host(:not([current])) (:not([notInteractive])) slot[name=circle-content]{color:rgba(var(--sd-color-text-neutral-700))}slot[name=circle-content] sd-icon,slot[name=circle-content]::slotted(sd-icon){color:rgba(var(--sd-color-icon-fill-primary))}[part=circle]:hover slot[name=circle-content] sd-icon,[part=circle]:hover slot[name=circle-content]::slotted(sd-icon){color:rgba(var(--sd-color-icon-fill-primary-500))}:host([horizontal-inline]):has([part=description]){min-width:0;flex:1}.translateLg{transform:translateX(3.438rem)}.translateSm{transform:translateX(4rem)}.not-interactive-lg{width:4.5rem}`],i([r({type:String,reflect:!0})],t.prototype,"size",2),i([r({type:String,reflect:!0})],t.prototype,"orientation",2),i([r({type:Boolean,reflect:!0,attribute:"horizontal-inline"})],t.prototype,"horizontalInline",2),i([r({type:Boolean,reflect:!0})],t.prototype,"waiting",2),i([r({type:Boolean,reflect:!0})],t.prototype,"disabled",2),i([r({type:Boolean,reflect:!0})],t.prototype,"current",2),i([r({reflect:!0,type:Boolean,attribute:"no-tail"})],t.prototype,"noTail",2),i([r({type:Boolean,reflect:!0,attribute:"not-interactive"})],t.prototype,"notInteractive",2),i([r({type:String,reflect:!0})],t.prototype,"label",2),i([r({type:String,reflect:!0})],t.prototype,"description",2),i([r({type:Number,reflect:!0,attribute:"index"})],t.prototype,"index",2),i([r({type:String,reflect:!0})],t.prototype,"href",2),i([l("current")],t.prototype,"handleCurrentChange",1),i([l("disabled")],t.prototype,"handleDisabledChange",1),i([l("waiting")],t.prototype,"handleWaitingChange",1),i([l("notInteractive")],t.prototype,"handleInteractivityChange",1),t=i([v("sd-step")],t);export{t as a};
@@ -0,0 +1,2 @@
1
+ import{a as E}from"./chunk.KDTVJE37.js";import{b,c as C,d as x,e as w}from"./chunk.LZRL7OLU.js";import{a as k}from"./chunk.CGQ2BPPZ.js";import{a as u}from"./chunk.4ZZFYCXX.js";import{a as p}from"./chunk.NYKJXI3Q.js";import{a as y,b as r,c,d as m,h as f}from"./chunk.5B33ZALC.js";import{b as v,e as d}from"./chunk.OBAEIKIV.js";import{e as o}from"./chunk.6EV4YU6C.js";var s=class extends f{constructor(){super(...arguments);this.formControlController=new b(this);this.hasSlotController=new k(this,"label","error-text");this.customValidityMessage="";this.hasButtonGroup=!1;this.defaultValue="";this.showInvalidStyle=!1;this.size="lg";this.required=!1;this.orientation="vertical";this.label="";this.helpText="";this.name="option";this.value="";this.form=""}get validity(){let t=this.required&&!this.value;return this.customValidityMessage!==""?w:t?x:C}get validationMessage(){let t=this.required&&!this.value;return this.customValidityMessage!==""?this.customValidityMessage:t?this.validationInput.validationMessage:""}connectedCallback(){super.connectedCallback(),this.defaultValue=this.value}firstUpdated(){this.formControlController.updateValidity()}updated(t){super.updated(t),this.syncAriaDescription()}syncAriaDescription(){var l;let t=(l=this.shadowRoot)==null?void 0:l.querySelector("fieldset"),e=this.showInvalidStyle?this.validationMessage:"";e?t==null||t.setAttribute("aria-description",e):t==null||t.removeAttribute("aria-description")}getAllRadios(){let t=[...this.querySelectorAll("sd-radio, sd-radio-button")];return t.length===0&&console.warn("No radios found in the radio group."),t}handleRadioClick(t){let e=t.target.closest("sd-radio, sd-radio-button"),l=this.value,i=this.getAllRadios();i.length!==0&&(e.disabled||(this.value=e.value,i.forEach(n=>n.checked=n===e),this.value!==l&&(this.emit("sd-change"),this.emit("sd-input"))))}handleKeyDown(t){var g;if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(t.key))return;let e=this.getAllRadios().filter(h=>!h.disabled);if(e.length===0)return;let l=(g=e.find(h=>h.checked))!=null?g:e[0],i=t.key===" "?0:["ArrowUp","ArrowLeft"].includes(t.key)?-1:1,n=this.value,a=e.indexOf(l)+i;a<0&&(a=e.length-1),a>e.length-1&&(a=0),this.getAllRadios().forEach(h=>{h.checked=!1,this.hasButtonGroup||(h.tabIndex=-1)}),this.value=e[a].value,e[a].checked=!0,this.hasButtonGroup?e[a].shadowRoot.querySelector("button").focus():(e[a].tabIndex=0,e[a].focus()),this.value!==n&&(this.emit("sd-change"),this.emit("sd-input")),t.preventDefault()}focus(){let t=this.getAllRadios();if(t.length===0)return;let l=t.find(i=>i.checked)||t[0];l&&l.focus()}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}async syncRadioElements(){var e,l;let t=this.getAllRadios();if(t.length===0){this.hasButtonGroup=!1;return}if(await Promise.all(t.map(async i=>{await i.updateComplete,i.checked=i.value===this.value,i.size=this.size,i instanceof E&&(i.invalid=this.showInvalidStyle)})),this.hasButtonGroup=t.some(i=>i.tagName.toLowerCase()==="sd-radio-button"),!t.some(i=>i.checked))if(this.hasButtonGroup){let i=(e=t[0].shadowRoot)==null?void 0:e.querySelector("button");i&&(i.tabIndex=0)}else t[0].tabIndex=0;if(this.hasButtonGroup){let i=(l=this.shadowRoot)==null?void 0:l.querySelector("sd-button-group");i&&(i.disableRole=!0)}}syncRadios(){if(customElements.get("sd-radio")&&customElements.get("sd-radio-button")){this.syncRadioElements();return}customElements.get("sd-radio")?this.syncRadioElements():customElements.whenDefined("sd-radio").then(()=>this.syncRadios()),customElements.get("sd-radio-button")?this.syncRadioElements():customElements.whenDefined("sd-radio-button").then(()=>this.syncRadios())}updateCheckedRadio(){let t=this.getAllRadios();t.length!==0&&(t.forEach(e=>e.checked=e.value===this.value),this.formControlController.setValidity(this.validity.valid))}handleSizeChange(){this.syncRadios()}handleInvalidChange(){this.syncRadios()}handleValueChange(){this.hasUpdated&&(this.updateCheckedRadio(),this.reportValidity())}checkValidity(){let t=this.required&&!this.value,e=this.customValidityMessage!=="";return t||e?(this.formControlController.emitInvalidEvent(),!1):!0}getForm(){return this.formControlController.getForm()}reportValidity(){let t=this.validity.valid;return this.formControlController.setValidity(t),this.validationInput.hidden=!0,clearTimeout(this.validationTimeout),this.formControlController.fakeUserInteraction(),t||(this.validationInput.hidden=!1,this.validationInput.reportValidity(),this.validationTimeout=setTimeout(()=>this.validationInput.hidden=!0,1e4)),t}setCustomValidity(t=""){this.customValidityMessage=t,this.validationInput.setCustomValidity(t),this.formControlController.updateValidity()}render(){let t=this.hasSlotController.test("label"),e=this.label?!0:t,l=this.hasSlotController.test("help-text"),i=this.helpText?!0:!!l,n=this.hasSlotController.test("tooltip"),a=d`<slot @slotchange="${this.syncRadios}" @click="${this.handleRadioClick}" @keydown="${this.handleKeyDown}"></slot>`;return d`<fieldset part="form-control" class="${u("border-0 p-0 m-0 flex flex-col",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}" role="radiogroup" aria-describedby="invalid-message" aria-labelledby="label">${e||n?d`<div class="flex items-center gap-1 mb-2"><legend part="form-control-label" id="label" class="${u("p-0 font-bold leading-normal text-black text-left",e?"inline-block":"hidden")}" @click="${this.focus}" aria-hidden="${e?"false":"true"}"><slot name="label">${this.label}</slot></legend>${n?d`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${u("flex",{vertical:"flex-col",horizontal:"flex-row"}[this.orientation])}"><div class="sr-only"><label><input id="validation-input" type="text" ?required="${this.required}" aria-labelledby="label" tabindex="-1" hidden @invalid="${this.handleInvalid}"></label></div>${this.hasButtonGroup?d`<sd-button-group class="border border-primary sd-radio-button-group-border-radius sd-radio-button-group-border-width sd-radio-button-group-padding" part="button-group" exportparts="base:button-group__base" role="presentation">${a}</sd-button-group>`:a}</div></fieldset><slot name="help-text" part="form-control-help-text" id="help-text" class="${u("text-sm text-neutral-700 mt-2",i?"block":"hidden")}" aria-hidden="${!i}">${this.helpText}</slot><div part="invalid-icon-message" class="flex items-center gap-2 mt-2">${this.showInvalidStyle?d`<sd-icon part="invalid-icon" class="${u("text-error")}" library="_internal" name="risk"></sd-icon>`:""} ${this.formControlController.renderInvalidMessage(this.size)}</div>`}};s.styles=[...f.styles,v`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ :host{display:block}:host([orientation=vertical]) ::slotted(sd-radio){margin-bottom:var(--sd-spacing-2);display:flex}:host([orientation=vertical]) ::slotted(sd-radio:last-of-type){margin-bottom:0}:host([orientation=horizontal]) ::slotted(sd-radio){margin-right:var(--sd-spacing-6)}:host([orientation=horizontal]) ::slotted(sd-radio:last-of-type){margin-right:0}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-radio){margin-right:var(--sd-spacing-4)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-radio:last-of-type){margin-right:0}:host([required]) #label::after{content:' *'}:host:has(sd-button-group){display:inline-flex}`],o([m("slot:not([name])")],s.prototype,"defaultSlot",2),o([m("#validation-input")],s.prototype,"validationInput",2),o([m("#invalid-message")],s.prototype,"invalidMessage",2),o([c()],s.prototype,"hasButtonGroup",2),o([c()],s.prototype,"defaultValue",2),o([c()],s.prototype,"showInvalidStyle",2),o([r({type:String,reflect:!0})],s.prototype,"size",2),o([r({type:Boolean,reflect:!0})],s.prototype,"required",2),o([r({type:String,reflect:!0})],s.prototype,"orientation",2),o([r({type:String,reflect:!0})],s.prototype,"label",2),o([r({type:String,attribute:"help-text",reflect:!0})],s.prototype,"helpText",2),o([r({type:String,reflect:!0})],s.prototype,"name",2),o([r()],s.prototype,"value",2),o([r({type:String,reflect:!0})],s.prototype,"form",2),o([p("size",{waitUntilFirstUpdate:!0})],s.prototype,"handleSizeChange",1),o([p("showInvalidStyle",{waitUntilFirstUpdate:!0})],s.prototype,"handleInvalidChange",1),o([p("value")],s.prototype,"handleValueChange",1),s=o([y("sd-radio-group")],s);export{s as a};
@@ -1 +1 @@
1
- import{a as i}from"./chunk.TRGIF57L.js";import{b as a}from"./chunk.MB7SWCJ2.js";import{a as s}from"./chunk.U7TS5SGA.js";import{b as c}from"./chunk.PYHYYOBE.js";var o=[a,i,c,s],e=[];function f(r){e.push(r)}function p(r){e=e.filter(t=>t!==r)}function b(r){return o.find(t=>t.name===r)}function L(r,t){m(r),o.push({name:r,resolver:t.resolver,mutator:t.mutator}),e.forEach(n=>{n.library===r&&n.setIcon()})}function m(r){o=o.filter(t=>t.name!==r)}export{f as a,p as b,b as c,L as d,m as e};
1
+ import{a as i}from"./chunk.TRGIF57L.js";import{b as a}from"./chunk.ZCLAPTH6.js";import{a as s}from"./chunk.U7TS5SGA.js";import{b as c}from"./chunk.PYHYYOBE.js";var o=[a,i,c,s],e=[];function f(r){e.push(r)}function p(r){e=e.filter(t=>t!==r)}function b(r){return o.find(t=>t.name===r)}function L(r,t){m(r),o.push({name:r,resolver:t.resolver,mutator:t.mutator}),e.forEach(n=>{n.library===r&&n.setIcon()})}function m(r){o=o.filter(t=>t.name!==r)}export{f as a,p as b,b as c,L as d,m as e};
@@ -1,4 +1,4 @@
1
- import{a as s}from"./chunk.LHSR56PH.js";import{a as n,b as o}from"./chunk.NL7YFV4O.js";import{b as d}from"./chunk.W5O4FM6B.js";import{a as r}from"./chunk.UFTAQNZB.js";import{a as v,b as a,h as l}from"./chunk.ND7KR2OB.js";import{b as m}from"./chunk.OBAEIKIV.js";import{e}from"./chunk.6EV4YU6C.js";var t=class extends l{constructor(){super(...arguments);this.variant="main";this.state="default";this.animated=!1;this.notInteractive=!1;this.href="";this.label="";this.marker={cluster:`
1
+ import{a as s}from"./chunk.LHSR56PH.js";import{a as n,b as o}from"./chunk.NL7YFV4O.js";import{b as d}from"./chunk.W5O4FM6B.js";import{a as r}from"./chunk.4ZZFYCXX.js";import{a as v,b as a,h as l}from"./chunk.5B33ZALC.js";import{b as m}from"./chunk.OBAEIKIV.js";import{e}from"./chunk.6EV4YU6C.js";var t=class extends l{constructor(){super(...arguments);this.variant="main";this.state="default";this.animated=!1;this.notInteractive=!1;this.href="";this.label="";this.marker={cluster:`
2
2
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50">
3
3
  <circle cx="25" cy="25" opacity="1" r="20" />
4
4
  </svg>`,main:`
@@ -7,5 +7,5 @@ import{a as s}from"./chunk.LHSR56PH.js";import{a as n,b as o}from"./chunk.NL7YFV
7
7
  </svg> `,place:`
8
8
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 75">
9
9
  <path fill-rule="evenodd" d="M51 49A29 29 0 0 0 30 0 29 29 0 0 0 9 49l21 22 21-22Z" clip-rule="evenodd" />
10
- </svg>`}}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}isLink(){return!!this.href}render(){let i=this.isLink(),c=this.notInteractive?n`div`:i?n`a`:n`button`,h=d(this.marker[this.variant]),p=`url("data:image/svg+xml;utf8,${encodeURIComponent(this.marker[this.variant]).replace(/#/g,"%23")}")`;return o`<${c} part="base" class="${r("relative flex justify-center",!this.notInteractive&&"group focus-visible:focus-outline")}" href="${s(i?this.href:void 0)}" target="${s(i?this.target:void 0)}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" role="${s(this.notInteractive||i?void 0:"button")}" aria-label="${s(!this.notInteractive&&this.label?this.label:void 0)}" aria-labelledby="${s(!this.notInteractive&&!this.label?"content":void 0)}"><div part="marker" class="${r("relative inline-flex",this.animated&&(this.variant==="main"||this.variant==="place")&&"animate-bounce-once",this.variant==="cluster"&&this.state==="hover"&&"scale-110",this.variant==="cluster"&&!this.notInteractive&&"transition-transform duration-fast ease-in-out hover:scale-110",{cluster:"sd-map-marker--cluster-color-text",main:"sd-color-fill-accent",place:"sd-map-marker--pin-color-text"}[this.variant])}"><div id="motion-wrapper" part="motion-wrapper" class="${r("absolute inset-0 overflow-hidden pointer-events-none",{cluster:"sd-map-marker--cluster--default-color-background group-hover:sd-map-marker--cluster--hover-color-background",main:"sd-map-marker--main-color-background",place:"sd-map-marker--pin--default-color-background"}[this.variant])}" style="mask-image:${p};-webkit-mask-image:${p}"><div class="${r("absolute inset-0 transition-transform ease-in-out duration-fast translate-y-full group-hover:translate-y-0 group-active:translate-y-0",["hover","active"].includes(this.state)&&"!translate-y-0")}"><div class="${r("min-w-full min-h-full skew-y-[-11deg]",{cluster:"",main:this.state==="active"?"bg-accent-700":this.state==="hover"?"bg-accent-550":"group-hover:bg-accent-550 group-active:bg-accent-700",place:this.state==="active"||this.state==="hover"?"sd-map-marker--pin--hover-color-background":"group-active:bg-primary-200"}[this.variant])}"></div></div>${this.variant==="main"?o`<div id="marker-circle" class="absolute rounded-full"></div>`:""}</div>${h} ${this.variant==="cluster"?o`<div id="cluster-border" class="${r("absolute inset-0 sd-map-marker--cluster--default-color-background rounded-full opacity-30 hover:sd-map-marker--cluster--hover-color-background",this.state==="hover"&&"sd-map-marker--cluster--hover-color-background")}"></div>`:""}</div><div id="content" part="content" class="${r("absolute self-center pointer-events-none",this.variant==="cluster"&&"font-bold sd-map-marker--cluster-color-text",this.variant==="place"&&"font-bold sd-map-marker--pin-color-text")}"><slot></slot></div></${c}>`}};t.styles=[...l.styles,m`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
10
+ </svg>`}}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}isLink(){return!!this.href}render(){let i=this.isLink(),c=this.notInteractive?n`div`:i?n`a`:n`button`,h=d(this.marker[this.variant]),p=`url("data:image/svg+xml;utf8,${encodeURIComponent(this.marker[this.variant]).replace(/#/g,"%23")}")`;return o`<${c} part="base" class="${r("relative flex justify-center",!this.notInteractive&&"group focus-visible:focus-outline")}" href="${s(i?this.href:void 0)}" target="${s(i?this.target:void 0)}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" role="${s(this.notInteractive||i?void 0:"button")}" aria-label="${s(!this.notInteractive&&this.label?this.label:void 0)}" aria-labelledby="${s(!this.notInteractive&&!this.label?"content":void 0)}"><div part="marker" class="${r("relative inline-flex",this.animated&&(this.variant==="main"||this.variant==="place")&&"animate-bounce-once",this.variant==="cluster"&&this.state==="hover"&&"scale-110",this.variant==="cluster"&&!this.notInteractive&&"transition-transform duration-fast ease-in-out hover:scale-110",{cluster:"sd-map-marker--cluster-color-text",main:"sd-color-fill-accent",place:"sd-map-marker--pin-color-text"}[this.variant])}"><div id="motion-wrapper" part="motion-wrapper" class="${r("absolute inset-0 overflow-hidden pointer-events-none",{cluster:"sd-map-marker--cluster--default-color-background group-hover:sd-map-marker--cluster--hover-color-background",main:"sd-map-marker--main-color-background",place:"sd-map-marker--pin--default-color-background"}[this.variant])}" style="mask-image:${p};-webkit-mask-image:${p}"><div class="${r("absolute inset-0 transition-transform ease-in-out duration-fast translate-y-full group-hover:translate-y-0 group-active:translate-y-0",["hover","active"].includes(this.state)&&"!translate-y-0")}"><div class="${r("min-w-full min-h-full skew-y-[-11deg]",{cluster:"",main:this.state==="active"?"bg-accent-700":this.state==="hover"?"bg-accent-550":"group-hover:bg-accent-550 group-active:bg-accent-700",place:this.state==="active"||this.state==="hover"?"sd-map-marker--pin--hover-color-background":"group-active:bg-primary-200"}[this.variant])}"></div></div>${this.variant==="main"?o`<div id="marker-circle" class="absolute rounded-full"></div>`:""}</div>${h} ${this.variant==="cluster"?o`<div id="cluster-border" class="${r("absolute inset-0 sd-map-marker--cluster--default-color-background rounded-full opacity-30 hover:sd-map-marker--cluster--hover-color-background",this.state==="hover"&&"sd-map-marker--cluster--hover-color-background")}"></div>`:""}</div><div id="content" part="content" class="${r("absolute self-center pointer-events-none",this.variant==="cluster"&&"font-bold sd-map-marker--cluster-color-text",this.variant==="place"&&"font-bold sd-map-marker--pin-color-text")}"><slot></slot></div></${c}>`}};t.styles=[...l.styles,m`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
11
11
  :host{display:block}#motion-wrapper{mask-repeat:no-repeat;-webkit-mask-repeat:no-repeat;mask-position:center;-webkit-mask-position:center;mask-size:contain;-webkit-mask-size:contain}:host([variant=cluster]) [part=base],svg{width:calc(var(--sd-spacing-12,3rem) * var(--map-marker-scaling,1))}:host([variant=cluster]) [part=base]{height:calc(var(--sd-spacing-12,3rem) * var(--map-marker-scaling,1))}:host(:not([variant=cluster])) [part=base]{height:calc(var(--sd-spacing-16,4rem) * var(--map-marker-scaling,1))}:host([variant=cluster]) [part=content]{font-size:calc(var(--sd-font-size-sm,.875rem) * var(--map-marker-scaling,1))}:host([variant=place]) [part=content]{margin-top:calc(var(--sd-spacing-2) * -1);font-size:calc(var(--sd-font-size-3xl,2rem) * var(--map-marker-scaling,1))}:host([variant=cluster]) [part=motion-wrapper]>div>div{background-color:rgba(var(--sd-map-marker--cluster--hover-color-background))}:host([variant=main]) [part=marker],:host([variant=place]) [part=marker]{--tw-drop-shadow-size:drop-shadow(var(--sd-drop-shadow));--tw-drop-shadow:drop-shadow(var(--sd-drop-shadow));filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}:host([variant=main]) #marker-circle{width:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));height:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));left:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));right:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1));top:calc(var(--sd-spacing-4,1rem) * var(--map-marker-scaling,1))}#marker-circle{background-color:rgba(var(--sd-color-icon-fill-white,rgba(var(--sd-color-white))))}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}`],e([a({type:String,reflect:!0})],t.prototype,"variant",2),e([a({type:String,reflect:!0})],t.prototype,"state",2),e([a({type:Boolean,reflect:!0})],t.prototype,"animated",2),e([a({type:Boolean,reflect:!0,attribute:"not-interactive"})],t.prototype,"notInteractive",2),e([a({type:String,reflect:!0})],t.prototype,"href",2),e([a({type:String,reflect:!0})],t.prototype,"target",2),e([a({reflect:!0})],t.prototype,"label",2),t=e([v("sd-map-marker")],t);export{t as a};
@@ -1,2 +1,2 @@
1
- function h(d,{setValueOnSelection:l,scrollSelectionIntoView:p}={setValueOnSelection:!0,scrollSelectionIntoView:!0}){let r=d?typeof d=="string"?document.querySelector(d):d:document.querySelector("#autoComplete"),n=r.shadowRoot.querySelector("input"),c=e=>e[0];return n.addEventListener("init",()=>{var a,s;let e=(a=r.shadowRoot)==null?void 0:a.querySelector("ul");e==null||e.setAttribute("part","listbox");let t=document.createElement("sd-popup");t.appendChild(e),(s=r.shadowRoot)==null||s.appendChild(t),t==null||t.setAttribute("exportparts","popup__content"),t&&(t.active=!1,t.autoSize="vertical",t.autoSizePadding=16,t.placement="bottom-start",t.anchor=r,t.sync="width");let i=c`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
1
+ function h(d,{setValueOnSelection:l,scrollSelectionIntoView:p}={setValueOnSelection:!0,scrollSelectionIntoView:!0}){let r=d?typeof d=="string"?document.querySelector(d):d:document.querySelector("#autoComplete"),n=r.shadowRoot.querySelector("input"),c=e=>e[0];return n.addEventListener("init",()=>{var a,s;let e=(a=r.shadowRoot)==null?void 0:a.querySelector("ul");e==null||e.setAttribute("part","listbox");let t=document.createElement("sd-popup");t.appendChild(e),(s=r.shadowRoot)==null||s.appendChild(t),t==null||t.setAttribute("exportparts","popup__content"),t&&(t.active=!1,t.autoSize="vertical",t.autoSizePadding=16,t.placement="bottom-start",t.anchor=r,t.sync="width");let i=c`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
2
2
  sd-popup::part(popup){z-index:var(--sd-z-index-dropdown,900);overflow-y:scroll;border-bottom-right-radius:var(--sd-radius);border-bottom-left-radius:var(--sd-radius);border-style:var(--tw-border-style);border-width:var(--sd-border-width-2);border-top-style:var(--tw-border-style);border-top-width:0;border-color:rgba(var(--sd-color-border-primary));background-color:rgba(var(--sd-color-background-white));padding-inline:var(--sd-spacing-2);padding-block:var(--sd-spacing-3);--tw-shadow:var(--sd-shadow);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}sd-popup li{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,150ms))}sd-popup li:hover:not([disabled]){background-color:rgba(var(--sd-color-background-neutral-100))}sd-popup li{list-style-type:''}sd-popup li mark{background-color:transparent;--tw-font-weight:var(--sd-font-weight-bold);font-weight:var(--sd-font-weight-bold)}sd-popup li:not(:has(sd-option)){cursor:pointer;padding-inline:var(--sd-spacing-4);padding-block:var(--sd-spacing-3);font-size:var(--sd-text-base);line-height:var(--tw-leading,var(--text-base--line-height,calc(1.5 / 1)));color:rgba(var(--sd-color-text-black))}sd-popup li:not(:has(sd-option)):hover{background-color:rgba(var(--sd-color-background-neutral-200))}sd-popup li[aria-selected=true]{background-color:rgba(var(--sd-color-background-neutral-200))}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-font-weight{syntax:"*";inherits:false}`,o=new CSSStyleSheet;o.replaceSync(i),r.shadowRoot.adoptedStyleSheets=[...r.shadowRoot.adoptedStyleSheets,o]}),l&&n.addEventListener("selection",e=>{var t;r.value=(t=e==null?void 0:e.detail)==null?void 0:t.selection.value}),n.addEventListener("open",()=>{var e,t,i,o,a,s;(t=(e=r.shadowRoot)==null?void 0:e.querySelector("sd-popup"))==null||t.setAttribute("active","true"),(o=(i=r.shadowRoot)==null?void 0:i.querySelector('[part="border"]'))==null||o.classList.add("rounded-b-none"),(s=(a=r.shadowRoot)==null?void 0:a.querySelector('[part="form-control"]'))==null||s.classList.add("z-50")}),n.addEventListener("close",()=>{var e,t,i,o,a,s;(t=(e=r.shadowRoot)==null?void 0:e.querySelector("sd-popup"))==null||t.removeAttribute("active"),(o=(i=r.shadowRoot)==null?void 0:i.querySelector('[part="border"]'))==null||o.classList.remove("rounded-b-none"),(s=(a=r.shadowRoot)==null?void 0:a.querySelector('[part="form-control"]'))==null||s.classList.remove("z-50")}),p&&n.addEventListener("navigate",()=>{let e=r.shadowRoot.querySelector('[aria-selected="true"]');e==null||e.scrollIntoView({block:"nearest"})}),{config:{selector:()=>n,resultsList:{tag:"ul"},wrapper:!1}}}export{h as a};
@@ -1,2 +1,2 @@
1
- import{a as u}from"./chunk.CGQ2BPPZ.js";import{a as i}from"./chunk.UFTAQNZB.js";import{a as o}from"./chunk.NYKJXI3Q.js";import{a as h,b as a,c as r,d,h as n}from"./chunk.ND7KR2OB.js";import{b as c,e as l}from"./chunk.OBAEIKIV.js";import{e as t}from"./chunk.6EV4YU6C.js";var e=class extends n{constructor(){super(...arguments);this.hasSlotController=new u(this,"default","left","right");this.current=!1;this.selected=!1;this.hasHover=!1;this.isKeyboardFocus=!1;this.size="lg";this.checkbox=!1;this.disabled=!1;this.value=""}connectedCallback(){super.connectedCallback(),this.setAttribute("role","option"),this.setAttribute("aria-selected","false")}handleDefaultSlotChange(){let s=this.getTextLabel();if(typeof this.cachedTextLabel=="undefined"){this.cachedTextLabel=s;return}s!==this.cachedTextLabel&&(this.cachedTextLabel=s,this.emit("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleSelectedChange(){this.setAttribute("aria-selected",this.selected?"true":"false")}handleValueChange(){this.value.includes(" ")&&(console.error("Option values cannot include a space. All spaces have been replaced with underscores.",this),this.value=this.value.replace(/ /g,"_"))}getTextLabel(){var s;return((s=this.textContent)!=null?s:"").trim()}render(){let s={default:this.hasSlotController.test("default"),left:this.hasSlotController.test("left"),right:this.hasSlotController.test("right")};return l`<div part="base" style="word-break:break-word" class="${i("px-4 flex items-start w-full transition-colors duration-fast ease-in-out text-left text-base relative",{sm:"text-base py-1",md:"text-base py-2",lg:"text-base py-3"}[this.size],this.disabled?"text-neutral-500 cursor-not-allowed":"text-black cursor-pointer",this.hasHover&&!this.disabled?"bg-neutral-200":"",this.isKeyboardFocus?"focus-outline focus-outline-offset":"",this.current&&"bg-neutral-200")}" @mouseenter="${this.handleMouseEnter}" @mouseleave="${this.handleMouseLeave}"><span class="${i("absolute w-full left-0 top-0 pointer-events-none transition-[height,top] duration-fast ease-in-out border-l-4 h-[calc(100%-8px)]",this.selected&&!this.checkbox?"border-accent":"border-transparent",this.disabled&&"border-neutral-500 top-1",!this.disabled&&this.hasHover?"h-full top-0":"top-1")}"></span> ${this.checkbox?l`<span id="control" part="control ${this.selected?" control--checked":"control--unchecked"}" class="${i("relative flex flex-shrink-0 items-center justify-center border sd-checkbox-border-width rounded-sm h-4 w-4 mr-2",{sm:"mt-0.5",md:"mt-1",lg:"mt-1"}[this.size],this.disabled?"sd-option--disabled-color-border":this.selected?"bg-accent border-accent":"bg-white form-control-color-border")}">${this.selected?l`<sd-icon part="checked-icon" class="text-white w-3 h-3" library="_internal" name="status-check"></sd-icon>`:""}</span>`:""} ${s.left?l`<slot name="left" part="left" class="inline-flex mr-2"></slot>`:""}<slot part="label" class="inline-block flex-grow" @slotchange="${this.handleDefaultSlotChange}"></slot>${s.right?l`<slot name="right" part="right" class="inline-flex ml-2"></slot>`:""}</div>`}};e.styles=[...n.styles,c`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
1
+ import{a as u}from"./chunk.CGQ2BPPZ.js";import{a as i}from"./chunk.4ZZFYCXX.js";import{a as o}from"./chunk.NYKJXI3Q.js";import{a as h,b as a,c as r,d,h as n}from"./chunk.5B33ZALC.js";import{b as c,e as l}from"./chunk.OBAEIKIV.js";import{e as t}from"./chunk.6EV4YU6C.js";var e=class extends n{constructor(){super(...arguments);this.hasSlotController=new u(this,"default","left","right");this.current=!1;this.selected=!1;this.hasHover=!1;this.isKeyboardFocus=!1;this.size="lg";this.checkbox=!1;this.disabled=!1;this.value=""}connectedCallback(){super.connectedCallback(),this.setAttribute("role","option"),this.setAttribute("aria-selected","false")}handleDefaultSlotChange(){let s=this.getTextLabel();if(typeof this.cachedTextLabel=="undefined"){this.cachedTextLabel=s;return}s!==this.cachedTextLabel&&(this.cachedTextLabel=s,this.emit("slotchange",{bubbles:!0,composed:!1,cancelable:!1}))}handleMouseEnter(){this.hasHover=!0}handleMouseLeave(){this.hasHover=!1}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}handleSelectedChange(){this.setAttribute("aria-selected",this.selected?"true":"false")}handleValueChange(){this.value.includes(" ")&&(console.error("Option values cannot include a space. All spaces have been replaced with underscores.",this),this.value=this.value.replace(/ /g,"_"))}getTextLabel(){var s;return((s=this.textContent)!=null?s:"").trim()}render(){let s={default:this.hasSlotController.test("default"),left:this.hasSlotController.test("left"),right:this.hasSlotController.test("right")};return l`<div part="base" style="word-break:break-word" class="${i("px-4 flex items-start w-full transition-colors duration-fast ease-in-out text-left text-base relative",{sm:"text-base py-1",md:"text-base py-2",lg:"text-base py-3"}[this.size],this.disabled?"text-neutral-500 cursor-not-allowed":"text-black cursor-pointer",this.hasHover&&!this.disabled?"bg-neutral-200":"",this.isKeyboardFocus?"focus-outline focus-outline-offset":"",this.current&&"bg-neutral-200")}" @mouseenter="${this.handleMouseEnter}" @mouseleave="${this.handleMouseLeave}"><span class="${i("absolute w-full left-0 top-0 pointer-events-none transition-[height,top] duration-fast ease-in-out border-l-4 h-[calc(100%-8px)]",this.selected&&!this.checkbox?"border-accent":"border-transparent",this.disabled&&"border-neutral-500 top-1",!this.disabled&&this.hasHover?"h-full top-0":"top-1")}"></span> ${this.checkbox?l`<span id="control" part="control ${this.selected?" control--checked":"control--unchecked"}" class="${i("relative flex flex-shrink-0 items-center justify-center border sd-checkbox-border-width rounded-sm h-4 w-4 mr-2",{sm:"mt-0.5",md:"mt-1",lg:"mt-1"}[this.size],this.disabled?"sd-option--disabled-color-border":this.selected?"bg-accent border-accent":"bg-white form-control-color-border")}">${this.selected?l`<sd-icon part="checked-icon" class="text-white w-3 h-3" library="_internal" name="status-check"></sd-icon>`:""}</span>`:""} ${s.left?l`<slot name="left" part="left" class="inline-flex mr-2"></slot>`:""}<slot part="label" class="inline-block flex-grow" @slotchange="${this.handleDefaultSlotChange}"></slot>${s.right?l`<slot name="right" part="right" class="inline-flex ml-2"></slot>`:""}</div>`}};e.styles=[...n.styles,c`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
2
  :host{position:relative;display:block;width:100%;--tw-outline-style:none!important;outline-style:none!important}.focus-outline-offset{outline-offset:-2px}.sd-option--disabled-color-border{border-color:rgb(var(--sd-option--disabled-color-border))}`],t([d('[part="base"]')],e.prototype,"defaultSlot",2),t([r()],e.prototype,"current",2),t([r()],e.prototype,"selected",2),t([r()],e.prototype,"hasHover",2),t([r()],e.prototype,"isKeyboardFocus",2),t([a({type:String,reflect:!0})],e.prototype,"size",2),t([a({type:Boolean,reflect:!0})],e.prototype,"checkbox",2),t([a({type:Boolean,reflect:!0})],e.prototype,"disabled",2),t([a({type:String,reflect:!0})],e.prototype,"value",2),t([o("disabled")],e.prototype,"handleDisabledChange",1),t([o("selected")],e.prototype,"handleSelectedChange",1),t([o("value")],e.prototype,"handleValueChange",1),e=t([h("sd-option")],e);export{e as a};
@@ -1,4 +1,4 @@
1
- import{a as R}from"./chunk.ERP45OHF.js";import{a as B}from"./chunk.X2GM34WQ.js";import{a as D,d as K,e as U,f as $}from"./chunk.W7A3TU2Z.js";import{c as H}from"./chunk.3L472FD4.js";import{b as A}from"./chunk.LZRL7OLU.js";import{a as P}from"./chunk.LHSR56PH.js";import{a as _}from"./chunk.CGQ2BPPZ.js";import{a as T,c as k}from"./chunk.B2NUKX6G.js";import{a as w}from"./chunk.KLRPP4NQ.js";import{a as I}from"./chunk.W5O4FM6B.js";import{a as M}from"./chunk.VAM5SM3O.js";import{a as d}from"./chunk.UFTAQNZB.js";import{a as f}from"./chunk.NYKJXI3Q.js";import{a as F,b as r,c as u,d as m,h as E}from"./chunk.ND7KR2OB.js";import{b as V,e as p}from"./chunk.OBAEIKIV.js";import{b as S,e as C}from"./chunk.W4QBFD6E.js";import{e as l}from"./chunk.6EV4YU6C.js";var s=class extends E{constructor(){super(...arguments);this.formControlController=new A(this,{assumeInteractionOn:["sd-blur","sd-input"]});this.hasSlotController=new _(this,"help-text","label");this.localize=new M(this);this.hasFocus=!1;this.displayInputValue="";this.selectedTextLabel="";this.selectedOptions=[];this.filteredOptions=[];this.allOptions=[];this.showValidStyle=!1;this.showInvalidStyle=!1;this.deletedTagLabel="";this.name="";this.value="";this.defaultValue="";this.size="lg";this.placeholder="";this.maxOptionsTagLabel="";this.disabled=!1;this.visuallyDisabled=!1;this.clearable=!1;this.open=!1;this.hoist=!1;this.label="";this.placement="bottom";this.helpText="";this.form="";this.required=!1;this.floatingLabel=!1;this.type="text";this.currentPlacement=this.placement;this.getOption=B;this.multiple=!1;this.useTags=!0;this.maxOptionsVisible=3;this.styleOnValid=!1;this.filter=(t,e)=>{let i=$(t.value),a=$(t.getTextLabel()),o=$(e);return i.includes(o)||a.includes(o)};this.getTag=t=>p`<sd-tag class="min-w-0 max-w-full" ?disabled="${this.disabled}" part="tag" exportparts="
1
+ import{a as R}from"./chunk.ERP45OHF.js";import{a as B}from"./chunk.X2GM34WQ.js";import{a as D,d as K,e as U,f as $}from"./chunk.W7A3TU2Z.js";import{a as H}from"./chunk.OKNJ5BPS.js";import{b as A}from"./chunk.LZRL7OLU.js";import{a as P}from"./chunk.LHSR56PH.js";import{a as _}from"./chunk.CGQ2BPPZ.js";import{a as T,c as k}from"./chunk.B2NUKX6G.js";import{a as w}from"./chunk.KLRPP4NQ.js";import{a as I}from"./chunk.W5O4FM6B.js";import{a as M}from"./chunk.MEDJPDBB.js";import{a as d}from"./chunk.4ZZFYCXX.js";import{a as f}from"./chunk.NYKJXI3Q.js";import{a as F,b as r,c as u,d as m,h as E}from"./chunk.5B33ZALC.js";import{b as V,e as p}from"./chunk.OBAEIKIV.js";import{b as S,e as C}from"./chunk.W4QBFD6E.js";import{e as l}from"./chunk.6EV4YU6C.js";var s=class extends E{constructor(){super(...arguments);this.formControlController=new A(this,{assumeInteractionOn:["sd-blur","sd-input"]});this.hasSlotController=new _(this,"help-text","label");this.localize=new M(this);this.hasFocus=!1;this.displayInputValue="";this.selectedTextLabel="";this.selectedOptions=[];this.filteredOptions=[];this.allOptions=[];this.showValidStyle=!1;this.showInvalidStyle=!1;this.deletedTagLabel="";this.name="";this.value="";this.defaultValue="";this.size="lg";this.placeholder="";this.maxOptionsTagLabel="";this.disabled=!1;this.visuallyDisabled=!1;this.clearable=!1;this.open=!1;this.hoist=!1;this.label="";this.placement="bottom";this.helpText="";this.form="";this.required=!1;this.floatingLabel=!1;this.type="text";this.currentPlacement=this.placement;this.getOption=B;this.multiple=!1;this.useTags=!0;this.maxOptionsVisible=3;this.styleOnValid=!1;this.filter=(t,e)=>{let i=$(t.value),a=$(t.getTextLabel()),o=$(e);return i.includes(o)||a.includes(o)};this.getTag=t=>p`<sd-tag class="min-w-0 max-w-full" ?disabled="${this.disabled}" part="tag" exportparts="
2
2
  base:tag__base,
3
3
  content:tag__content,
4
4
  removable-indicator:tag__removable-indicator,
@@ -8,5 +8,5 @@ import{a as R}from"./chunk.ERP45OHF.js";import{a as B}from"./chunk.X2GM34WQ.js";
8
8
  removable-indicator:tag__removable-indicator,
9
9
  " size="${this.size==="sm"?"sm":"lg"}" removable @keydown="${t=>this.handleTagMaxOptionsKeyDown(t)}" @sd-remove="${t=>this.handleTagRemove(t)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-tag>`]}addOpenListeners(){document.addEventListener("focusin",this.handleDocumentFocusIn),document.addEventListener("mousedown",this.handleDocumentMouseDown),this.getRootNode()!==document&&this.getRootNode().addEventListener("focusin",this.handleDocumentFocusIn)}removeOpenListeners(){document.removeEventListener("focusin",this.handleDocumentFocusIn),document.removeEventListener("mousedown",this.handleDocumentMouseDown),this.getRootNode()!==document&&this.getRootNode().removeEventListener("focusin",this.handleDocumentFocusIn)}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleTagKeyDown(t,e){(t.key==="Backspace"||t.key==="Enter"||t.key===" ")&&this.multiple&&(t.preventDefault(),t.stopPropagation(),this.handleTagRemove(new CustomEvent("sd-remove"),e),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0})))}handleTagMaxOptionsKeyDown(t){(t.key==="Backspace"||t.key==="Enter"||t.key===" ")&&this.multiple&&(t.preventDefault(),t.stopPropagation(),this.handleTagRemove(new CustomEvent("sd-remove"),this.selectedOptions[this.selectedOptions.length-1]),this.updateComplete.then(()=>this.displayInput.focus({preventScroll:!0})))}handleLabelClick(){this.visuallyDisabled||this.displayInput.focus()}handleTagRemove(t,e){t.stopPropagation(),e||this.clearCombobox(),e&&!this.disabled&&(this.toggleOptionSelection(e,!1),this.setOrderedSelectedOptions(e),this.deletedTagLabel="",this.deletedTagLabel=this.localize.term("removed",e.textContent),this.updateComplete.then(()=>{this.selectionChanged(),this.emit("sd-input"),this.emit("sd-change")}))}handleComboboxMouseDown(t){if(this.visuallyDisabled){t.preventDefault(),t.stopPropagation();return}let i=t.composedPath().some(o=>o instanceof HTMLSlotElement&&o.name==="removable-indicator");if(this.disabled||i)return;(this.open?this.hide():this.show()).then(()=>{setTimeout(()=>this.displayInput.focus({preventScroll:!0}))})}async handleComboboxKeyDown(t){var e;if(t.key==="Tab"){if(this.displayInputValue="",this.displayInput.value="",this.open&&((e=this.shadowRoot)==null?void 0:e.activeElement)===this.displayInput){t.preventDefault(),this.open=!1,await this.updateComplete,this.displayInput.focus();return}return}this.handleDocumentKeyDown(t)}handleClearClick(t){t.stopPropagation(),this.clearCombobox()}handleSearchClick(t){t.stopPropagation(),!(this.disabled||this.visuallyDisabled)&&this.emit("sd-search")}handleNoResultsClick(t){t.preventDefault(),this.hide()}clearCombobox(){this.value!==""&&(this.value="",this.displayInputValue="",this.selectedTextLabel="",this.lastOption=void 0,this.selectedOptions=[],this.getSlottedOptions().forEach(t=>{t.selected=!1}),this.displayInput.focus({preventScroll:!0}),this.updateComplete.then(()=>{this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change")}))}preventLoosingFocus(t){t.stopPropagation(),t.preventDefault()}handleOptionClick(t){let i=t.target.closest("sd-option"),a=this.value;i&&!i.disabled&&(this.multiple?(this.toggleOptionSelection(i),this.lastOption=i,this.setOrderedSelectedOptions(i),this.updateComplete.then(()=>{this.selectionChanged()})):(this.setOrderedSelectedOptions(i),this.setSelectedOptions(i)),this.updateComplete.then(()=>{this.displayInput.focus({preventScroll:!0}),this.value!==a&&(this.emit("sd-input"),this.emit("sd-change"))}),this.multiple||(this.hide(),this.displayInput.focus({preventScroll:!0})))}selectNextOption(t){let e=this.getAllFilteredOptions();if(e.length===0)return;let i=this.getCurrentOption(),a=e.indexOf(i),o=Math.max(0,a);if(t){let n=a+1;o=n>e.length-1?0:n}else{let n=a-1;o=n<0?e.length-1:n}this.setCurrentOption(e[o],new KeyboardEvent("keydown")),H(this.getCurrentOption(),this.listbox,"vertical","auto")}getAllFilteredOptions(){return[...this.filteredWrapper.querySelectorAll("sd-option")]}getCurrentOption(){return this.getAllFilteredOptions().find(t=>t.current)}setCurrentOption(t,e){let i=this.getAllFilteredOptions();this.displayInput.removeAttribute("aria-activedescendant"),i.forEach(a=>{a.current=!1,a.setAttribute("aria-selected","false"),a.isKeyboardFocus=!1}),t&&(t.current=!0,t.setAttribute("aria-selected","true"),this.displayInput.setAttribute("aria-activedescendant",t.id)),t&&(e==null?void 0:e.type)==="keydown"&&(t.isKeyboardFocus=!0)}toggleOptionSelection(t,e){let a=this.getSlottedOptions().find(o=>o.value&&t.value?o.value===t.value:o.getTextLabel()===t.getTextLabel());a&&(a.selected=e!=null?e:!a.selected)}findOptionByValue(t,e){if(e)return Array.isArray(e)?t.find(i=>e.includes(i.value)):t.find(i=>i.value===e)}selectedOptionsAndValueSynced(){var t;return!this.value&&this.selectedOptions.length===0?!0:Array.isArray(this.value)?this.value.length===this.selectedOptions.length:this.value===((t=this.selectedOptions[0])==null?void 0:t.value)}isOptionSelected(t){return t.value?this.value.includes(t.value):this.value.includes(t.getTextLabel())}syncSelectedOptionsAndValue(){return this.selectedOptionsAndValueSynced()?void 0:(this.getSlottedOptions().forEach(e=>{e.selected=!1}),this.selectedOptions=this.getSlottedOptions().filter(e=>this.isOptionSelected(e)),this.selectedOptions.forEach(e=>{e&&(e.selected=!0)}),Promise.resolve())}compareOptions(t,e){return t.value&&e.value?t.value===e.value:t.getTextLabel()===e.getTextLabel()}setSelectedOptions(t){this.getSlottedOptions().forEach(i=>{i.selected=this.compareOptions(i,t)}),this.selectionChanged()}setOrderedSelectedOptions(t){let e=this.getSlottedOptions().find(i=>this.compareOptions(i,t));this.multiple?this.selectedOptions.length>0&&e&&this.selectedOptions.find(i=>this.compareOptions(i,e))?this.selectedOptions=this.selectedOptions.filter(i=>!this.compareOptions(i,e)):this.selectedOptions=[...this.selectedOptions,e]:this.selectedOptions=[e]}selectionChanged(){var e,i,a;let t=this.selectedOptions.some(o=>o?this.isOptionSelected(o):!1);this.multiple?(!t&&this.selectedOptions.length>0?this.value=[...this.value,...this.selectedOptions.map(o=>o.value||o.getTextLabel())]:this.value=this.selectedOptions.map(o=>(o==null?void 0:o.value)||(o==null?void 0:o.getTextLabel())||""),this.displayInputValue=""):(this.value=((e=this.selectedOptions[0])==null?void 0:e.value)||((i=this.selectedOptions[0])==null?void 0:i.getTextLabel())||"",this.selectedTextLabel=((a=this.selectedOptions[0])==null?void 0:a.getTextLabel())||"",this.displayInputValue=""),this.updateComplete.then(()=>{this.formControlController.updateValidity()})}createComboboxOptionsFromQuery(t){let e=[];this.filteredOptions=this.getSlottedOptions().filter(i=>this.filter(i,t)||t==="").map(i=>{var O,v,x;let a=i.cloneNode(!0);if(a.current=a.value===((O=this.lastOption)==null?void 0:O.value),a.selected=i.selected,a.checkbox=i.checkbox,a.size=i.size,!(((v=i.parentElement)==null?void 0:v.tagName.toLowerCase())==="sd-optgroup"))return a;let n=i.parentElement,g=(x=n.querySelector('[slot="label"]'))==null?void 0:x.cloneNode(!0),c=e.find(b=>b.id===n.id);if(c){c==null||c.appendChild(a),g&&(c==null||c.appendChild(g));return}let h=n.cloneNode();return h.appendChild(a),g&&h.appendChild(g),e.push(h),h}).filter(Boolean)}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t),this.invalidMessage.textContent=t.target.validationMessage}handleCurrentPlacement(t){let e=t.detail;e&&(this.currentPlacement=e)}handleFilterChange(){this.createComboboxOptionsFromQuery(this.displayInputValue)}handleUseTagsChange(){let t=this.getAllFilteredOptions();customElements.get("sd-option")&&t.forEach(e=>{e.checkbox=this.multiple})}applySizeToOptions(){this.getSlottedOptions().forEach(t=>{t.size=this.size})}handleDisabledChange(){this.formControlController.setValidity(this.disabled),(this.disabled||this.visuallyDisabled)&&(this.open=!1,this.handleOpenChange())}handleValueChange(){this.syncSelectedOptionsAndValue(),this.multiple?this.createComboboxOptionsFromQuery(this.displayInput.value):this.createComboboxOptionsFromQuery("")}handleDisplayInputValueChange(){this.createComboboxOptionsFromQuery(this.displayInputValue)}async handleOpenChange(){if(this.open&&(!this.disabled||!this.visuallyDisabled)){this.emit("sd-show"),this.addOpenListeners(),await C(this),this.listbox.hidden=!1,this.popup.active=!0;let{keyframes:i,options:a}=k(this,"combobox.show",{dir:this.localize.dir()});await S(this.popup.popup,i,a),this.emit("sd-after-show"),this.filteredOptions.length===0&&this.emit("sd-error");return}this.setCurrentOption(null),this.displayInput.removeAttribute("aria-activedescendant"),this.emit("sd-hide"),this.removeOpenListeners(),await C(this);let{keyframes:t,options:e}=k(this,"combobox.hide",{dir:this.localize.dir()});await S(this.popup.popup,t,e),this.listbox.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}handleSizeChange(){this.size=this.floatingLabel&&this.size==="sm"?"md":this.size}async show(){if(this.open||this.disabled||this.visuallyDisabled){this.open=!1;return}return this.open=!0,Promise.race([w(this,"sd-after-show"),w(this,"sd-error")])}async hide(){if(!this.open||this.disabled){this.open=!1;return}return this.displayInputValue="",this.open=!1,w(this,"sd-after-hide")}checkValidity(){return this.valueInput.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.valueInput.reportValidity()}setCustomValidity(t){this.valueInput.setCustomValidity(t),this.formControlController.updateValidity()}focus(t){this.displayInput.focus(t)}blur(){this.displayInput.blur()}async handleInput(){let t=this.displayInput.value;this.displayInputValue=t,await this.updateComplete,this.open=this.filteredWrapper.children.length>0,this.formControlController.updateValidity(),this.emit("sd-input")}handleChange(){(!this.selectedOptions||!this.multiple)&&(this.selectedTextLabel=this.displayInput.value,this.updateComplete.then(()=>{this.formControlController.updateValidity()}),this.emit("sd-change"))}getSlottedOptions(){return K(D(this.defaultSlot)).flat()}getSlottedOptGroups(){return U(D(this.defaultSlot))}async handleDefaultSlotChange(){if(!customElements.get("sd-option")){customElements.whenDefined("sd-option").then(()=>this.handleDefaultSlotChange());return}let t=this.getSlottedOptions(),e=this.getSlottedOptGroups();this.applySizeToOptions();let i=this.findOptionByValue(t,this.value);this.selectedTextLabel=(i==null?void 0:i.getTextLabel())||"",t.forEach((a,o)=>{this.multiple&&(a.checkbox=!0),a.id=a.id||`sd-combobox-option-${o}`}),e.forEach((a,o)=>{a.id=a.id||`sd-combobox-optgroup-${o}`}),await this.syncSelectedOptionsAndValue(),this.multiple?this.createComboboxOptionsFromQuery(this.displayInputValue):this.createComboboxOptionsFromQuery("")}render(){let t={left:this.hasSlotController.test("left"),right:this.hasSlotController.test("right")},e=this.hasSlotController.test("label"),i=this.hasSlotController.test("help-text"),a=this.label?!0:!!e,o=this.helpText?!0:!!i,n=this.clearable&&!this.disabled&&!this.visuallyDisabled,g=t.left,c=this.value!==null&&String(this.value).length>0,h=this.floatingLabel&&a&&(this.hasFocus||c),O=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"visuallyDisabled":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus||this.open?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",v=this.disabled||this.visuallyDisabled?"cursor-not-allowed":"cursor-pointer",x=this.disabled||this.visuallyDisabled?"text-neutral-500":"form-control-color-icon-fill",b={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],z={sm:"mr-1",md:"mr-2",lg:"mr-2"}[this.size],y={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size],N=this.size==="lg"?this.floatingLabel?"py-3":"py-2":this.floatingLabel?h?"py-2":"py-3":"py-1",q={sm:"left-[36px]",md:"left-[44px]",lg:"left-12"}[this.size];return p`<div part="form-control" class="${d("relative text-left",v,this.size==="sm"?"text-sm":"text-base",this.open&&"z-50")}">${a&&!this.floatingLabel?p`<div class="flex items-center gap-1 mb-2"><label id="label" part="form-control-label" class="${d(a&&"inline-block",a&&(this.visuallyDisabled||this.disabled)?"text-neutral-500":"form-control-color-text")}" aria-hidden="${a?"false":"true"}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label></div>`:null} <span aria-live="polite" class="sr-only">${this.deletedTagLabel}</span><div part="form-control-input" class="relative w-full bg-white text-black">${a&&this.floatingLabel?p`<label id="label" part="form-control-floating-label" class="${d("absolute left-4 z-20 pointer-events-none transition-all duration-200",g?q:"left-4",h?this.size==="lg"?"top-2 text-xs":"top-1 text-xs":"top-1/2 -translate-y-1/2 form-control-color-text",h&&"mt-1")}" for="input"><span class="${d("leading-none",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",h&&!this.visuallyDisabled&&!this.disabled&&"form-control--filled__floating-label-color-text")}">${this.label}</span></label>`:null}<div part="border" class="${d("absolute top-0 w-full h-full pointer-events-none border form-control-border-radius z-10 transition-[border] duration-medium ease-in-out",{disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"form-control-color-border",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"form-control-color-border"}[O],this.open&&(this.currentPlacement==="bottom"?"rounded-bl-none rounded-br-none":"rounded-tl-none rounded-tr-none"))}"></div><sd-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${d("inline-flex relative w-full",this.currentPlacement==="bottom"?"origin-top":"origin-bottom")}" placement="${this.placement}" strategy="${this.hoist?"fixed":"absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
10
10
  popup:popup__content,
11
- "><div part="combobox" class="${d("relative w-full px-4 flex flex-row items-center form-control-border-radius transition-colors hover:duration-fast ease-in-out",this.visuallyDisabled||this.disabled?"hover:bg-transparent":"hover:[@media(hover:hover)]:form-control--hover-color-background",this.open&&"shadow transition-shadow duration-medium ease-in-out",["invalid","activeInvalid"].includes(O)&&"form-control--invalid-color-background",{sm:"py-1 min-h-[32px]",md:"py-1 min-h-[40px]",lg:"py-2 min-h-[48px]"}[this.size],N)}" slot="anchor" @keydown="${this.handleComboboxKeyDown}" @mousedown="${this.handleComboboxMouseDown}">${t.left?p`<slot part="left" name="left" class="${d("inline-flex",z,x,y)}"></slot>`:""}<div class="${d("flex flex-wrap items-center gap-1 w-full min-w-0 relative",this.floatingLabel&&h&&"mt-4",this.floatingLabel&&!h&&this.size==="lg"&&"mt-2")}">${this.multiple&&this.useTags&&this.tags&&this.tags.length>0?p`<div part="tags" class="${d("flex flex-wrap items-center gap-1 min-w-0",z)}">${this.tags}</div>`:null} <input id="display-input" name="${this.name}" form="${this.form}" part="display-input" class="${d("appearance-none outline-none bg-transparent flex-auto min-w-0",v,this.selectedTextLabel&&!this.multiple?"placeholder:text-black":"placeholder:text-neutral-700",this.size==="sm"?h?"h-4":"h-6":h?"h-6":"h-8")}" type="text" placeholder="${!this.floatingLabel||h?this.selectedTextLabel&&!this.multiple?this.selectedTextLabel:this.placeholder||this.localize.term("comboboxDefaultPlaceholder"):""}" .disabled="${this.disabled}" .value="${this.displayInputValue}" autocomplete="off" spellcheck="false" autocapitalize="off" aria-controls="listbox" aria-expanded="${this.open}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled||this.visuallyDisabled}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}" aria-autocomplete="list" aria-owns="listbox" @input="${this.handleInput}" @change="${this.handleChange}"></div><div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map(L=>L==null?void 0:L.getTextLabel()).join(", ")}</div><input class="${d("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",v)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value)?this.value.join(", "):this.value}" tabindex="-1" aria-controls="control-value" aria-hidden="true" @focus="${()=>this.focus()}" @invalid="${this.handleInvalid}"> ${n?p`<button part="clear-button" class="${d("flex justify-center",b,this.value.length>0?"visible":"invisible")}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${d("text-neutral-700",y)}" name="closing-round" library="_internal"></sd-icon></slot></button>`:""} ${this.showInvalidStyle?p`<sd-icon part="invalid-icon" class="${d(b,y,"text-error")}" library="_internal" name="risk"></sd-icon>`:""} ${this.styleOnValid&&this.showValidStyle?p`<sd-icon part="valid-icon" class="${d("flex-shrink-0 text-success",b,y)}" library="_internal" name="confirm-circle"></sd-icon>`:""}<slot name="right" part="right" class="${d("inline-flex ml-2 leading-[0]",this.disabled||this.visuallyDisabled?"text-neutral-500":"form-control-color-icon-fill",y)}">${this.type!=="search"?p`<sd-icon class="${d("transition-transform duration-medium ease-in-out",this.open?"rotate-180":"rotate-0")}" name="chevron-down" part="chevron" library="_internal" color="currentColor" label="${this.localize.term("open")}"></sd-icon>`:""}</slot>${this.type==="search"?p`<button class="${d("flex items-center",b)}" type="button" @mousedown="${this.preventLoosingFocus}" @click="${this.handleSearchClick}"><sd-icon class="${d(x,y)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-icon></button>`:p`<button class="combobox-button absolute top-2" tabindex="-1" aria-hidden="true" @keydown="${this.handleComboboxMouseDown}" type="button"><span class="sr-only">${this.localize.term("open")}</span></button>`}</div><div id="listbox" role="${P(this.multiple?void 0:"listbox")}" aria-expanded="${this.open}" aria-multiselectable="${this.multiple}" aria-labelledby="label" part="listbox" class="${d("bg-white px-2 py-3 relative border-primary overflow-y-auto",this.open&&"shadow-listbox transition-shadow duration-medium ease-in-out",this.currentPlacement==="bottom"?"border-r-2 border-b-2 border-l-2 form-control__listbox-border-bottom-right-radius form-control__listbox-border-bottom-left-radius":"border-r-2 border-t-2 border-l-2 form-control__listbox-border-top-right-radius form-control__listbox-border-top-left-radius")}" tabindex="-1" @mousedown="${this.preventLoosingFocus}" @mouseup="${this.handleOptionClick}"><div part="filtered-listbox">${this.filteredOptions.length===0?p`<span id="noResults" class="px-4 flex items-center w-full transition-all text-left text-base relative text-black py-3" aria-hidden="true" @click="${this.handleNoResultsClick}">${this.localize.term("noResults")}</span>`:this.options}</div><slot id="defaultOptionsSlot" class="hidden" @slotchange="${this.handleDefaultSlotChange}"></slot></div></sd-popup></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${d("text-sm mt-1",o?"block":"hidden",this.visuallyDisabled||this.disabled?"text-neutral-500":"text-neutral-700")}" aria-hidden="${!o}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};s.styles=[...E.styles,V`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
11
+ "><div part="combobox" class="${d("relative w-full px-4 flex flex-row items-center form-control-border-radius transition-colors hover:duration-fast ease-in-out",this.visuallyDisabled||this.disabled?"hover:bg-transparent":"hover:[@media(hover:hover)]:form-control--hover-color-background",this.open&&"shadow transition-shadow duration-medium ease-in-out",["invalid","activeInvalid"].includes(O)&&"form-control--invalid-color-background",{sm:"py-1 min-h-[32px]",md:"py-1 min-h-[40px]",lg:"py-2 min-h-[48px]"}[this.size],N)}" slot="anchor" @keydown="${this.handleComboboxKeyDown}" @mousedown="${this.handleComboboxMouseDown}">${t.left?p`<slot part="left" name="left" class="${d("inline-flex",z,x,y)}"></slot>`:""}<div class="${d("flex flex-wrap items-center gap-1 w-full min-w-0 relative",this.floatingLabel&&h&&"mt-4",this.floatingLabel&&!h&&this.size==="lg"&&"mt-2")}">${this.multiple&&this.useTags&&this.tags&&this.tags.length>0?p`<div part="tags" class="${d("flex flex-wrap items-center gap-1 min-w-0",z)}">${this.tags}</div>`:null} <input id="display-input" name="${this.name}" form="${this.form}" part="display-input" class="${d("appearance-none outline-none bg-transparent flex-auto min-w-0",v,this.selectedTextLabel&&!this.multiple?"placeholder:text-black":"placeholder:text-neutral-700",this.size==="sm"?h?"h-4":"h-6":h?"h-6":"h-8")}" type="text" placeholder="${!this.floatingLabel||h?this.selectedTextLabel&&!this.multiple?this.selectedTextLabel:this.placeholder||this.localize.term("comboboxDefaultPlaceholder"):""}" .disabled="${this.disabled}" .value="${this.displayInputValue}" autocomplete="off" spellcheck="false" autocapitalize="off" aria-controls="listbox" aria-expanded="${this.open}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled||this.visuallyDisabled}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}" aria-autocomplete="list" aria-owns="listbox" @input="${this.handleInput}" @change="${this.handleChange}"></div><div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map(L=>L==null?void 0:L.getTextLabel()).join(", ")}</div><input class="${d("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10",v)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value)?this.value.join(", "):this.value}" tabindex="-1" aria-controls="control-value" aria-hidden="true" @focus="${()=>this.focus()}" @invalid="${this.handleInvalid}"> ${n?p`<button part="clear-button" class="${d("flex justify-center",b,this.value.length>0?"visible":"invisible")}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${d("text-neutral-700",y)}" name="closing-round" library="_internal"></sd-icon></slot></button>`:""} ${this.showInvalidStyle?p`<sd-icon part="invalid-icon" class="${d(b,y,"text-error")}" library="_internal" name="risk"></sd-icon>`:""} ${this.styleOnValid&&this.showValidStyle?p`<sd-icon part="valid-icon" class="${d("flex-shrink-0 text-success",b,y)}" library="_internal" name="confirm-circle"></sd-icon>`:""}<slot name="right" part="right" class="${d("inline-flex ml-2 leading-[0]",this.disabled||this.visuallyDisabled?"text-neutral-500":"form-control-color-icon-fill",y)}">${this.type!=="search"?p`<sd-icon class="${d("transition-transform duration-medium ease-in-out",this.open?"rotate-180":"rotate-0")}" name="chevron-down" part="chevron" library="_internal" color="currentColor" label="${this.localize.term("open")}"></sd-icon>`:""}</slot>${this.type==="search"?p`<button class="${d("flex items-center",b)}" type="button" @mousedown="${this.preventLoosingFocus}" @click="${this.handleSearchClick}"><sd-icon class="${d(x,y)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-icon></button>`:p`<button class="combobox-button absolute top-2" tabindex="-1" aria-hidden="true" @keydown="${this.handleComboboxMouseDown}" type="button"><span class="sr-only">${this.localize.term("open")}</span></button>`}</div><div id="listbox" role="${P(this.multiple?void 0:"listbox")}" aria-expanded="${this.open}" aria-multiselectable="${this.multiple}" aria-labelledby="label" part="listbox" class="${d("bg-white px-2 py-3 relative border-primary overflow-y-auto",this.open&&"shadow-listbox transition-shadow duration-medium ease-in-out",this.currentPlacement==="bottom"?"border-r-2 border-b-2 border-l-2 form-control__listbox-border-bottom-right-radius form-control__listbox-border-bottom-left-radius":"border-r-2 border-t-2 border-l-2 form-control__listbox-border-top-right-radius form-control__listbox-border-top-left-radius")}" tabindex="-1" @mousedown="${this.preventLoosingFocus}" @mouseup="${this.handleOptionClick}"><div part="filtered-listbox">${this.filteredOptions.length===0?p`<span id="noResults" class="px-4 flex items-center w-full transition-all text-left text-base relative text-black py-3" aria-hidden="true" @click="${this.handleNoResultsClick}">${this.localize.term("noResults")}</span>`:this.options}</div><slot id="defaultOptionsSlot" class="hidden" @slotchange="${this.handleDefaultSlotChange}"></slot></div></sd-popup></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${d("text-sm mt-1",o?"block":"hidden",this.visuallyDisabled||this.disabled?"text-neutral-500":"text-neutral-700")}" aria-hidden="${!o}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};s.styles=[...E.styles,V`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
12
12
  :host{position:relative;display:block;width:100%}:host([required]) #label::after{content:' *'}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([visually-disabled]) input{caret-color:transparent}:host([size=sm]) .combobox-button{right:var(--sd-spacing-4);height:var(--sd-spacing-4);width:var(--sd-spacing-4)}:host([size=md]) .combobox-button{right:.85rem;height:var(--sd-spacing-6);width:var(--sd-spacing-6)}:host([size=lg]) .combobox-button{right:var(--sd-spacing-3);height:var(--sd-spacing-8);width:var(--sd-spacing-8)}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-tag::part(base){border-radius:var(--sd-radius);border-width:var(--sd-combobox__tag-border-width,var(--sd-spacing-0\\.25));padding-inline:var(--sd-spacing-1)}sd-tag::part(content){display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:var(--tag-max-width,15ch)}sd-tag[size=lg]::part(base){padding-inline:var(--sd-spacing-2)}sd-tag[disabled=false]::part(base):hover{background-color:rgba(var(--sd-color-background-primary-100))}[part=filtered-listbox] sd-optgroup:first-of-type{--display-divider:none}mark{background-color:transparent;--tw-font-weight:var(--sd-font-weight-bold);font-weight:var(--sd-font-weight-bold);color:inherit}:host([type=search]) sd-icon[name=magnifying-glass],[part=chevron]{color:rgba(var(--sd-form-control-color-icon-fill))}:host([disabled])::part(chevron),:host([type=search][disabled]) sd-icon[name=magnifying-glass],:host([type=search][visually-disabled]) sd-icon[name=magnifying-glass],:host([visually-disabled])::part(chevron){color:rgba(var(--sd-color-icon-fill-neutral-500,--sd-color-neutral-500))}@property --tw-font-weight{syntax:"*";inherits:false}`],l([m("sd-popup")],s.prototype,"popup",2),l([m('[part="combobox"]')],s.prototype,"combobox",2),l([m('[part="display-input"]')],s.prototype,"displayInput",2),l([m(".value-input")],s.prototype,"valueInput",2),l([m('[part="listbox"]')],s.prototype,"listbox",2),l([m('[part="tags"]')],s.prototype,"tagWrapper",2),l([m('[part="filtered-listbox"]')],s.prototype,"filteredWrapper",2),l([m("slot:not([name])")],s.prototype,"defaultSlot",2),l([m("#invalid-message")],s.prototype,"invalidMessage",2),l([u()],s.prototype,"hasFocus",2),l([u()],s.prototype,"displayInputValue",2),l([u()],s.prototype,"selectedTextLabel",2),l([u()],s.prototype,"selectedOptions",2),l([u()],s.prototype,"filteredOptions",2),l([u()],s.prototype,"allOptions",2),l([u()],s.prototype,"lastOption",2),l([u()],s.prototype,"showValidStyle",2),l([u()],s.prototype,"showInvalidStyle",2),l([u()],s.prototype,"deletedTagLabel",2),l([r({reflect:!0})],s.prototype,"name",2),l([r({converter:{fromAttribute:t=>t.split(" "),toAttribute:t=>t.join(" ")}})],s.prototype,"value",2),l([R()],s.prototype,"defaultValue",2),l([r({type:String,reflect:!0})],s.prototype,"size",2),l([r({type:String,reflect:!0})],s.prototype,"placeholder",2),l([r({type:String,attribute:"max-options-tag-label",reflect:!0})],s.prototype,"maxOptionsTagLabel",2),l([r({type:Boolean,reflect:!0})],s.prototype,"disabled",2),l([r({type:Boolean,reflect:!0,attribute:"visually-disabled"})],s.prototype,"visuallyDisabled",2),l([r({type:Boolean,reflect:!0})],s.prototype,"clearable",2),l([r({type:Boolean,reflect:!0})],s.prototype,"open",2),l([r({type:Boolean,reflect:!0})],s.prototype,"hoist",2),l([r({type:String,reflect:!0})],s.prototype,"label",2),l([r({type:String,reflect:!0})],s.prototype,"placement",2),l([r({type:String,attribute:"help-text",reflect:!0})],s.prototype,"helpText",2),l([r({type:String,reflect:!0})],s.prototype,"form",2),l([r({type:Boolean,reflect:!0})],s.prototype,"required",2),l([r({attribute:"floating-label",type:Boolean,reflect:!0})],s.prototype,"floatingLabel",2),l([r({type:String,reflect:!0})],s.prototype,"type",2),l([u()],s.prototype,"currentPlacement",2),l([r()],s.prototype,"getOption",2),l([r({type:Boolean,reflect:!0})],s.prototype,"multiple",2),l([r({type:Boolean,reflect:!0})],s.prototype,"useTags",2),l([r({type:Number,reflect:!0,attribute:"max-options-visible"})],s.prototype,"maxOptionsVisible",2),l([r({type:Boolean,reflect:!0,attribute:"style-on-valid"})],s.prototype,"styleOnValid",2),l([r()],s.prototype,"filter",2),l([r()],s.prototype,"getTag",2),l([f("filter",{waitUntilFirstUpdate:!0})],s.prototype,"handleFilterChange",1),l([f("useTags",{waitUntilFirstUpdate:!0})],s.prototype,"handleUseTagsChange",1),l([f("size",{waitUntilFirstUpdate:!0})],s.prototype,"applySizeToOptions",1),l([f(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],s.prototype,"handleDisabledChange",1),l([f("value",{waitUntilFirstUpdate:!0})],s.prototype,"handleValueChange",1),l([f("displayInputValue",{waitUntilFirstUpdate:!0})],s.prototype,"handleDisplayInputValueChange",1),l([f("open",{waitUntilFirstUpdate:!0})],s.prototype,"handleOpenChange",1),l([f(["size","floatingLabel"])],s.prototype,"handleSizeChange",1),s=l([F("sd-combobox")],s);T("combobox.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});T("combobox.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});export{s as a};
@@ -1,2 +1,2 @@
1
- import{a as p,b,c as _}from"./chunk.IVHEBGOY.js";import{a as A}from"./chunk.ERP45OHF.js";import{b as D}from"./chunk.LZRL7OLU.js";import{a as d}from"./chunk.LHSR56PH.js";import{a as M}from"./chunk.CGQ2BPPZ.js";import{a as w}from"./chunk.VAM5SM3O.js";import{a as c}from"./chunk.UFTAQNZB.js";import{a as C,b as h,d as f,e as I,h as T}from"./chunk.ND7KR2OB.js";import{b as E,e as v}from"./chunk.OBAEIKIV.js";import{e as o}from"./chunk.6EV4YU6C.js";var l=class extends T{constructor(){super();this.formControlController=new D(this);this.hasSlotController=new M(this,"label","help-text");this.localize=new w(this);this.name="";this.label="";this.helpText="";this.min=0;this.max=100;this.step=1;this.disabled=!1;this.visuallyDisabled=!1;this.noTrackBar=!1;this.tooltip="on-interaction";this.defaultValue="";this._value=[0];this._rangeValues=new Map;this._lastChangeValue=[];this._hasFocus=!1;this._dragStyleElement=null;this._preventSelectStart=t=>t.preventDefault();this.tooltipFormatter=this.localize.number.bind(this.localize)}set value(t){this._value=t?t.split(" ").map(Number).sort(p):[]}get value(){return this._value.slice().sort(p).join(" ")}set valueAsArray(t){let e=this._value;this._value=Array.isArray(t)?t.slice().sort(p):t||[],b(e,this._value)&&this.requestUpdate("value",e.join(" "))}get valueAsArray(){return[...this._value].sort(p)}get rtl(){return this.localize.dir()==="rtl"}disconnectedCallback(){super.disconnectedCallback(),this._restoreTextSelection()}firstUpdated(){this.formControlController.updateValidity(),this._lastChangeValue=Array.from(this._value),this.thumbs.forEach(async t=>{var i,a;let e=t.parentElement;await e.updateComplete,(a=(i=e.shadowRoot)==null?void 0:i.querySelector("sd-popup"))==null||a.setAttribute("distance","14")})}willUpdate(t){super.willUpdate(t),this.min>this.max&&([this.min,this.max]=[this.max,this.min]),this.step>this.max-this.min&&(this.step=this.max-this.min),this.step<=0&&(this.step=1);let e=this._value.map(i=>{if(i<=this.min)return this.min;if(i>=this.max)return this.max;let a=this.min+this.step*Math.round((i-this.min)/this.step);return a>this.max?this.max:a});b(this._value,e)&&(this._value=e)}updated(t){super.updated(t);for(let e of this.thumbs){let i=+e.dataset.rangeId;this._rangeValues.has(i)&&(this.moveThumb(e,this._rangeValues.get(i)),this.tooltip==="always-visible"&&(e.parentElement.closeTrigger="manual",e.parentElement.show()))}this.updateActiveTrack()}focus(t){let e=this.thumbs.item(0);e?e.focus(t):super.focus(t)}get validity(){return this.input.validity}checkValidity(){var t;return(t=this.input)==null?void 0:t.checkValidity()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}updateTooltip(t){let e=+t.dataset.rangeId;if(!this._rangeValues.has(e))return;let i=this._rangeValues.get(e),a=t.parentElement;a.content=this.tooltipFormatter(i)}updateActiveTrack(){let{activeTrack:t}=this;if(!t)return;if(this.min===this.max){t.style.insetInlineStart="0%",t.style.insetInlineEnd="0%";return}if(this._value.length===1){let s=getComputedStyle(this).getPropertyValue("--track-active-offset")||"0%",n=100*(this._value[0]-this.min)/(this.max-this.min);t.style.insetInlineStart=`min(${s}, ${n}%)`,t.style.insetInlineEnd=`min(calc(100% - ${s}), calc(100% - ${n}%))`;return}let e=this._value.slice().sort(p),i=100*(e[0]-this.min)/(this.max-this.min),a=100*(e[e.length-1]-this.min)/(this.max-this.min);t.style.insetInlineStart=`${i}%`,t.style.insetInlineEnd=`calc(100% - ${a}%)`}moveThumb(t,e){t.setAttribute("aria-valuenow",e.toString()),t.setAttribute("aria-valuetext",this.tooltipFormatter(e));let i=(e-this.min)/(this.max-this.min);t.style.insetInlineStart=`calc(${100*i}% - 8px)`,this.updateTooltip(t)}movementBoundariesForThumb(t,e){let i=this.valueAsArray,s=Array.from(this.thumbs).indexOf(t),n=i[s-1]||this.min,r=i[s+1]||this.max,u=e<n||e>r;return{finalValue:Math.max(n,Math.min(r,e)),isRestricted:u,nextValue:r,prevValue:n}}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}onClickTrack(t,e=!0){if(this.disabled||this.visuallyDisabled)return;let{clientX:i}=t,a=Array.from(this.thumbs),s=_(this.inputWrapper,i),n=this.step/(this.max-this.min),r=this.min+this.step*Math.round(s/n),u=a.reduce((g,x)=>{let k=this._rangeValues.get(+x.dataset.rangeId),L=this._rangeValues.get(+g.dataset.rangeId),V=Math.abs(k-r),$=Math.abs(L-r);return V===$?k<r?x:g:V<$?x:g}),m=+u.dataset.rangeId;if(!m)return;this._rangeValues.set(m,r),this.moveThumb(u,r);let y=this._value;this._value=Array.from(this._rangeValues.values()),this.updateActiveTrack(),b(y,this._value)&&(this._lastChangeValue=Array.from(this._value),this.emit("sd-input"),this.emit("sd-change"));let F=new PointerEvent("pointerdown",t);e&&u.dispatchEvent(F)&&this.updateTooltip(u)}onClickTrackItem(t){this.onClickTrack(t,!1)}_preventTextSelection(){if(!this._dragStyleElement){let t=document.createElement("style");t.setAttribute("data-sd-range-drag",""),t.textContent="*, *::before, *::after { user-select: none !important; -webkit-user-select: none !important; }",document.head.appendChild(t),this._dragStyleElement=t}document.addEventListener("selectstart",this._preventSelectStart)}_restoreTextSelection(){this._dragStyleElement&&(this._dragStyleElement.remove(),this._dragStyleElement=null),document.removeEventListener("selectstart",this._preventSelectStart)}async onClickThumb(t){if(this.disabled||this.visuallyDisabled)return;let e=t.target;if(this.updateTooltip(e),e.dataset.pointerId)try{e.releasePointerCapture(+e.dataset.pointerId)}catch(i){}e.dataset.pointerId=t.pointerId.toString(),e.setPointerCapture(t.pointerId),this._preventTextSelection(),e.classList.add("grabbed"),this.tooltip==="on-interaction"&&await e.parentElement.show()}onDragThumb(t){if(this.disabled||this.visuallyDisabled)return;let e=t.target,i=+e.dataset.rangeId;if(!this._rangeValues.has(i)||(e.dataset.pointerId?+e.dataset.pointerId:null)!==t.pointerId)return;let s=_(this.inputWrapper,t.clientX),n=this.step/(this.max-this.min),r=this.min+this.step*Math.round(s/n);if(this.emit("sd-move",{cancelable:!0,detail:{element:e,value:r}}).defaultPrevented)return;let m=this.movementBoundariesForThumb(e,r);m.isRestricted?(r=m.finalValue,e.style.zIndex=(3+this.thumbs.length).toFixed(0)):e.style.zIndex="3",this._rangeValues.set(i,r),this.moveThumb(e,r);let y=this._value;this._value=Array.from(this._rangeValues.values()),this.updateActiveTrack(),b(y,this._value)&&this.emit("sd-input")}async onReleaseThumb(t){let e=t.target;!e.dataset.pointerId||t.pointerId!==+e.dataset.pointerId||(e.classList.remove("grabbed"),e.releasePointerCapture(t.pointerId),this._restoreTextSelection(),delete e.dataset.pointerId,b(this._lastChangeValue,this._value)&&(this._lastChangeValue=Array.from(this._value),this.emit("sd-change")),this.tooltip==="on-interaction"&&await e.parentElement.hide())}onKeyPress(t){let e=t.target,i=+e.dataset.rangeId,a=this._rangeValues.get(i);if(a===void 0)return;let s=a;switch(t.key){case"ArrowUp":case"Up":s=Math.min(a+this.step,this.max);break;case"ArrowDown":case"Down":s=Math.max(a-this.step,this.min);break;case"ArrowLeft":case"Left":s=this.rtl?Math.min(a+this.step,this.max):Math.max(a-this.step,this.min);break;case"ArrowRight":case"Right":s=this.rtl?Math.max(a-this.step,this.min):Math.min(a+this.step,this.max);break;case"PageUp":s=Math.min(a+(this.max-this.min)/5,this.max);break;case"PageDown":s=Math.max(a-(this.max-this.min)/5,this.min);break;case"Home":s=this.min;break;case"End":s=this.max;break;default:return}if(s!==a){if(this.emit("sd-move",{cancelable:!0,detail:{element:e,value:s}}).defaultPrevented)return;let r=this.movementBoundariesForThumb(e,s);r.isRestricted&&(s=r.finalValue),this.moveThumb(e,s),this._rangeValues.set(i,s),this._value=Array.from(this._rangeValues.values()),this.updateActiveTrack(),this.updateTooltip(e),this._lastChangeValue=Array.from(this._value),this.emit("sd-input"),this.emit("sd-change")}t.preventDefault()}onBlur(t){var e;t.relatedTarget&&((e=this.shadowRoot)!=null&&e.contains(t.relatedTarget))||(this.emit("sd-blur"),this._hasFocus=!1)}onFocusThumb(t){var i;if(this.disabled||this.visuallyDisabled)return;this._hasFocus||(this._hasFocus=!0,this.emit("sd-focus"));let e=t.target;(i=e==null?void 0:e.dataset)!=null&&i.rangeId&&this.updateTooltip(e)}renderThumbs(t){let e=this._value.length>1;return this._rangeValues.clear(),this._value.map((i,a)=>{let s=a+1;this._rangeValues.set(s,i);let n=`thumb-${s}`,r="",u="";return e?(u=t?`label aria-label-hidden ${n}`:`aria-label-hidden ${n}`,a===0?r=`${this.localize.term("minimum")} (${this.tooltipFormatter(i)})`:a===this._value.length-1?r=`${this.localize.term("maximum")} (${this.tooltipFormatter(i)})`:r=this.tooltipFormatter(i)):u=t?"label aria-label-hidden":"",v`<sd-tooltip trigger="${this.tooltip==="on-interaction"?"focus":"manual"}" disabled="${d(this.disabled||this.visuallyDisabled||this.tooltip==="hidden"?!0:void 0)}"><div id="${n}" part="thumb" role="slider" tabindex="${this.disabled||this.visuallyDisabled?-1:0}" aria-disabled="${d(this.disabled||this.visuallyDisabled?"true":void 0)}" aria-labelledby="${u}" aria-label="${r}" aria-valuemax="${this.max}" aria-valuemin="${this.min}" aria-valuenow="${i}" aria-valuetext="${this.tooltipFormatter(i)}" data-range-id="${s}" data-disabled="${d(this.disabled||this.visuallyDisabled||void 0)}" @pointerdown="${this.onClickThumb}" @pointermove="${this.onDragThumb}" @pointerup="${this.onReleaseThumb}" @pointercancel="${this.onReleaseThumb}" @keydown="${this.onKeyPress}" @focus="${this.onFocusThumb}" class="${c("rounded-full absolute top-0 size-4 hover:cursor-grab after:-inset-2",this.disabled||this.visuallyDisabled?"outline-none":"cursor-pointer focus-visible:focus-outline")}"></div></sd-tooltip>`})}render(){let t={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text")},e=!!(this.label||t.label),i=!!(this.helpText||t.helpText);return v`<div part="form-control" @focusout="${this.onBlur}" class="flex flex-col">${e?v`<div class="flex items-center gap-1"><label id="label" part="form-control-label" aria-hidden="${e?"false":"true"}" class="${c("w-full text-start",e?"inline-block":"hidden")}" @click="${this.focus}"><slot name="label">${this.label}</slot></label></div>`:null} <label id="aria-label-hidden" class="sr-only">(${this._value.map(this.tooltipFormatter).join(" - ")})</label><div part="base" class="${c("inline-flex w-full",this.visuallyDisabled&&"focus-visible:focus-outline")}" tabindex="${d(this.visuallyDisabled?"0":void 0)}"><div part="input-wrapper" class="relative flex-1 mx-2 mb-[10px]"><input id="input" tabindex="-1" hidden @invalid="${this.handleInvalid}"><div part="track-wrapper" role="presentation" @pointerdown="${this.onClickTrack}" class="relative cursor-pointer -mx-2"><div part="track-click-helper" class="absolute -inset-y-2 inset-x-0"></div><div part="track" data-disabled="${d(this.disabled||this.visuallyDisabled||void 0)}" class="${c("h-1 my-[6px]")}"></div><div part="active-track" hidden="${d(this.noTrackBar?!0:void 0)}" data-disabled="${d(this.disabled||this.visuallyDisabled||void 0)}" class="${c("absolute top-0 h-1")}"></div></div>${this.renderThumbs(e)}<div class="-mt-[10px]" part="scale-ticks" @pointerdown="${this.onClickTrackItem}" role="presentation"><slot name="scale-ticks"></slot></div></div></div><slot></slot><slot name="help-text" part="form-control-help-text" id="help-text" class="${c("text-sm text-neutral-700 mt-1",i?"block":"hidden")}" aria-hidden="${!i}">${this.helpText}</slot></div>`}};l.styles=[...T.styles,E`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
1
+ import{a as p,b,c as _}from"./chunk.IVHEBGOY.js";import{a as A}from"./chunk.ERP45OHF.js";import{b as D}from"./chunk.LZRL7OLU.js";import{a as d}from"./chunk.LHSR56PH.js";import{a as M}from"./chunk.CGQ2BPPZ.js";import{a as w}from"./chunk.MEDJPDBB.js";import{a as c}from"./chunk.4ZZFYCXX.js";import{a as C,b as h,d as f,e as I,h as T}from"./chunk.5B33ZALC.js";import{b as E,e as v}from"./chunk.OBAEIKIV.js";import{e as o}from"./chunk.6EV4YU6C.js";var l=class extends T{constructor(){super();this.formControlController=new D(this);this.hasSlotController=new M(this,"label","help-text");this.localize=new w(this);this.name="";this.label="";this.helpText="";this.min=0;this.max=100;this.step=1;this.disabled=!1;this.visuallyDisabled=!1;this.noTrackBar=!1;this.tooltip="on-interaction";this.defaultValue="";this._value=[0];this._rangeValues=new Map;this._lastChangeValue=[];this._hasFocus=!1;this._dragStyleElement=null;this._preventSelectStart=t=>t.preventDefault();this.tooltipFormatter=this.localize.number.bind(this.localize)}set value(t){this._value=t?t.split(" ").map(Number).sort(p):[]}get value(){return this._value.slice().sort(p).join(" ")}set valueAsArray(t){let e=this._value;this._value=Array.isArray(t)?t.slice().sort(p):t||[],b(e,this._value)&&this.requestUpdate("value",e.join(" "))}get valueAsArray(){return[...this._value].sort(p)}get rtl(){return this.localize.dir()==="rtl"}disconnectedCallback(){super.disconnectedCallback(),this._restoreTextSelection()}firstUpdated(){this.formControlController.updateValidity(),this._lastChangeValue=Array.from(this._value),this.thumbs.forEach(async t=>{var i,a;let e=t.parentElement;await e.updateComplete,(a=(i=e.shadowRoot)==null?void 0:i.querySelector("sd-popup"))==null||a.setAttribute("distance","14")})}willUpdate(t){super.willUpdate(t),this.min>this.max&&([this.min,this.max]=[this.max,this.min]),this.step>this.max-this.min&&(this.step=this.max-this.min),this.step<=0&&(this.step=1);let e=this._value.map(i=>{if(i<=this.min)return this.min;if(i>=this.max)return this.max;let a=this.min+this.step*Math.round((i-this.min)/this.step);return a>this.max?this.max:a});b(this._value,e)&&(this._value=e)}updated(t){super.updated(t);for(let e of this.thumbs){let i=+e.dataset.rangeId;this._rangeValues.has(i)&&(this.moveThumb(e,this._rangeValues.get(i)),this.tooltip==="always-visible"&&(e.parentElement.closeTrigger="manual",e.parentElement.show()))}this.updateActiveTrack()}focus(t){let e=this.thumbs.item(0);e?e.focus(t):super.focus(t)}get validity(){return this.input.validity}checkValidity(){var t;return(t=this.input)==null?void 0:t.checkValidity()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(t){this.input.setCustomValidity(t),this.formControlController.updateValidity()}updateTooltip(t){let e=+t.dataset.rangeId;if(!this._rangeValues.has(e))return;let i=this._rangeValues.get(e),a=t.parentElement;a.content=this.tooltipFormatter(i)}updateActiveTrack(){let{activeTrack:t}=this;if(!t)return;if(this.min===this.max){t.style.insetInlineStart="0%",t.style.insetInlineEnd="0%";return}if(this._value.length===1){let s=getComputedStyle(this).getPropertyValue("--track-active-offset")||"0%",n=100*(this._value[0]-this.min)/(this.max-this.min);t.style.insetInlineStart=`min(${s}, ${n}%)`,t.style.insetInlineEnd=`min(calc(100% - ${s}), calc(100% - ${n}%))`;return}let e=this._value.slice().sort(p),i=100*(e[0]-this.min)/(this.max-this.min),a=100*(e[e.length-1]-this.min)/(this.max-this.min);t.style.insetInlineStart=`${i}%`,t.style.insetInlineEnd=`calc(100% - ${a}%)`}moveThumb(t,e){t.setAttribute("aria-valuenow",e.toString()),t.setAttribute("aria-valuetext",this.tooltipFormatter(e));let i=(e-this.min)/(this.max-this.min);t.style.insetInlineStart=`calc(${100*i}% - 8px)`,this.updateTooltip(t)}movementBoundariesForThumb(t,e){let i=this.valueAsArray,s=Array.from(this.thumbs).indexOf(t),n=i[s-1]||this.min,r=i[s+1]||this.max,u=e<n||e>r;return{finalValue:Math.max(n,Math.min(r,e)),isRestricted:u,nextValue:r,prevValue:n}}handleInvalid(t){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(t)}onClickTrack(t,e=!0){if(this.disabled||this.visuallyDisabled)return;let{clientX:i}=t,a=Array.from(this.thumbs),s=_(this.inputWrapper,i),n=this.step/(this.max-this.min),r=this.min+this.step*Math.round(s/n),u=a.reduce((g,x)=>{let k=this._rangeValues.get(+x.dataset.rangeId),L=this._rangeValues.get(+g.dataset.rangeId),V=Math.abs(k-r),$=Math.abs(L-r);return V===$?k<r?x:g:V<$?x:g}),m=+u.dataset.rangeId;if(!m)return;this._rangeValues.set(m,r),this.moveThumb(u,r);let y=this._value;this._value=Array.from(this._rangeValues.values()),this.updateActiveTrack(),b(y,this._value)&&(this._lastChangeValue=Array.from(this._value),this.emit("sd-input"),this.emit("sd-change"));let F=new PointerEvent("pointerdown",t);e&&u.dispatchEvent(F)&&this.updateTooltip(u)}onClickTrackItem(t){this.onClickTrack(t,!1)}_preventTextSelection(){if(!this._dragStyleElement){let t=document.createElement("style");t.setAttribute("data-sd-range-drag",""),t.textContent="*, *::before, *::after { user-select: none !important; -webkit-user-select: none !important; }",document.head.appendChild(t),this._dragStyleElement=t}document.addEventListener("selectstart",this._preventSelectStart)}_restoreTextSelection(){this._dragStyleElement&&(this._dragStyleElement.remove(),this._dragStyleElement=null),document.removeEventListener("selectstart",this._preventSelectStart)}async onClickThumb(t){if(this.disabled||this.visuallyDisabled)return;let e=t.target;if(this.updateTooltip(e),e.dataset.pointerId)try{e.releasePointerCapture(+e.dataset.pointerId)}catch(i){}e.dataset.pointerId=t.pointerId.toString(),e.setPointerCapture(t.pointerId),this._preventTextSelection(),e.classList.add("grabbed"),this.tooltip==="on-interaction"&&await e.parentElement.show()}onDragThumb(t){if(this.disabled||this.visuallyDisabled)return;let e=t.target,i=+e.dataset.rangeId;if(!this._rangeValues.has(i)||(e.dataset.pointerId?+e.dataset.pointerId:null)!==t.pointerId)return;let s=_(this.inputWrapper,t.clientX),n=this.step/(this.max-this.min),r=this.min+this.step*Math.round(s/n);if(this.emit("sd-move",{cancelable:!0,detail:{element:e,value:r}}).defaultPrevented)return;let m=this.movementBoundariesForThumb(e,r);m.isRestricted?(r=m.finalValue,e.style.zIndex=(3+this.thumbs.length).toFixed(0)):e.style.zIndex="3",this._rangeValues.set(i,r),this.moveThumb(e,r);let y=this._value;this._value=Array.from(this._rangeValues.values()),this.updateActiveTrack(),b(y,this._value)&&this.emit("sd-input")}async onReleaseThumb(t){let e=t.target;!e.dataset.pointerId||t.pointerId!==+e.dataset.pointerId||(e.classList.remove("grabbed"),e.releasePointerCapture(t.pointerId),this._restoreTextSelection(),delete e.dataset.pointerId,b(this._lastChangeValue,this._value)&&(this._lastChangeValue=Array.from(this._value),this.emit("sd-change")),this.tooltip==="on-interaction"&&await e.parentElement.hide())}onKeyPress(t){let e=t.target,i=+e.dataset.rangeId,a=this._rangeValues.get(i);if(a===void 0)return;let s=a;switch(t.key){case"ArrowUp":case"Up":s=Math.min(a+this.step,this.max);break;case"ArrowDown":case"Down":s=Math.max(a-this.step,this.min);break;case"ArrowLeft":case"Left":s=this.rtl?Math.min(a+this.step,this.max):Math.max(a-this.step,this.min);break;case"ArrowRight":case"Right":s=this.rtl?Math.max(a-this.step,this.min):Math.min(a+this.step,this.max);break;case"PageUp":s=Math.min(a+(this.max-this.min)/5,this.max);break;case"PageDown":s=Math.max(a-(this.max-this.min)/5,this.min);break;case"Home":s=this.min;break;case"End":s=this.max;break;default:return}if(s!==a){if(this.emit("sd-move",{cancelable:!0,detail:{element:e,value:s}}).defaultPrevented)return;let r=this.movementBoundariesForThumb(e,s);r.isRestricted&&(s=r.finalValue),this.moveThumb(e,s),this._rangeValues.set(i,s),this._value=Array.from(this._rangeValues.values()),this.updateActiveTrack(),this.updateTooltip(e),this._lastChangeValue=Array.from(this._value),this.emit("sd-input"),this.emit("sd-change")}t.preventDefault()}onBlur(t){var e;t.relatedTarget&&((e=this.shadowRoot)!=null&&e.contains(t.relatedTarget))||(this.emit("sd-blur"),this._hasFocus=!1)}onFocusThumb(t){var i;if(this.disabled||this.visuallyDisabled)return;this._hasFocus||(this._hasFocus=!0,this.emit("sd-focus"));let e=t.target;(i=e==null?void 0:e.dataset)!=null&&i.rangeId&&this.updateTooltip(e)}renderThumbs(t){let e=this._value.length>1;return this._rangeValues.clear(),this._value.map((i,a)=>{let s=a+1;this._rangeValues.set(s,i);let n=`thumb-${s}`,r="",u="";return e?(u=t?`label aria-label-hidden ${n}`:`aria-label-hidden ${n}`,a===0?r=`${this.localize.term("minimum")} (${this.tooltipFormatter(i)})`:a===this._value.length-1?r=`${this.localize.term("maximum")} (${this.tooltipFormatter(i)})`:r=this.tooltipFormatter(i)):u=t?"label aria-label-hidden":"",v`<sd-tooltip trigger="${this.tooltip==="on-interaction"?"focus":"manual"}" disabled="${d(this.disabled||this.visuallyDisabled||this.tooltip==="hidden"?!0:void 0)}"><div id="${n}" part="thumb" role="slider" tabindex="${this.disabled||this.visuallyDisabled?-1:0}" aria-disabled="${d(this.disabled||this.visuallyDisabled?"true":void 0)}" aria-labelledby="${u}" aria-label="${r}" aria-valuemax="${this.max}" aria-valuemin="${this.min}" aria-valuenow="${i}" aria-valuetext="${this.tooltipFormatter(i)}" data-range-id="${s}" data-disabled="${d(this.disabled||this.visuallyDisabled||void 0)}" @pointerdown="${this.onClickThumb}" @pointermove="${this.onDragThumb}" @pointerup="${this.onReleaseThumb}" @pointercancel="${this.onReleaseThumb}" @keydown="${this.onKeyPress}" @focus="${this.onFocusThumb}" class="${c("rounded-full absolute top-0 size-4 hover:cursor-grab after:-inset-2",this.disabled||this.visuallyDisabled?"outline-none":"cursor-pointer focus-visible:focus-outline")}"></div></sd-tooltip>`})}render(){let t={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text")},e=!!(this.label||t.label),i=!!(this.helpText||t.helpText);return v`<div part="form-control" @focusout="${this.onBlur}" class="flex flex-col">${e?v`<div class="flex items-center gap-1"><label id="label" part="form-control-label" aria-hidden="${e?"false":"true"}" class="${c("w-full text-start",e?"inline-block":"hidden")}" @click="${this.focus}"><slot name="label">${this.label}</slot></label></div>`:null} <label id="aria-label-hidden" class="sr-only">(${this._value.map(this.tooltipFormatter).join(" - ")})</label><div part="base" class="${c("inline-flex w-full",this.visuallyDisabled&&"focus-visible:focus-outline")}" tabindex="${d(this.visuallyDisabled?"0":void 0)}"><div part="input-wrapper" class="relative flex-1 mx-2 mb-[10px]"><input id="input" tabindex="-1" hidden @invalid="${this.handleInvalid}"><div part="track-wrapper" role="presentation" @pointerdown="${this.onClickTrack}" class="relative cursor-pointer -mx-2"><div part="track-click-helper" class="absolute -inset-y-2 inset-x-0"></div><div part="track" data-disabled="${d(this.disabled||this.visuallyDisabled||void 0)}" class="${c("h-1 my-[6px]")}"></div><div part="active-track" hidden="${d(this.noTrackBar?!0:void 0)}" data-disabled="${d(this.disabled||this.visuallyDisabled||void 0)}" class="${c("absolute top-0 h-1")}"></div></div>${this.renderThumbs(e)}<div class="-mt-[10px]" part="scale-ticks" @pointerdown="${this.onClickTrackItem}" role="presentation"><slot name="scale-ticks"></slot></div></div></div><slot></slot><slot name="help-text" part="form-control-help-text" id="help-text" class="${c("text-sm text-neutral-700 mt-1",i?"block":"hidden")}" aria-hidden="${!i}">${this.helpText}</slot></div>`}};l.styles=[...T.styles,E`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
2
  [part='base']{touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}[part=thumb]{background-color:rgba(var(--sd-color-icon-fill-primary,rgba(var(--sd-color-primary))))}[part=thumb]:hover{background-color:rgba(var(--sd-color-icon-fill-primary-500,rgba(var(--sd-color-primary-500))))}[part=thumb].grabbed{background-color:rgba(var(--sd-color-icon-fill-primary-800,rgba(var(--sd-color-primary-800))))}[part=thumb][data-disabled]{background-color:rgba(var(--sd-color-background-neutral-500,rgba(var(--sd-color-neutral-500))))}[part=track]{background-color:rgba(var(--sd-color-border-neutral-400,rgba(var(--sd-color-neutral-400))))}[part=track][data-disabled]{background-color:rgba(var(--sd-color-background-neutral-500,rgba(var(--sd-color-neutral-500))))}[part=active-track]{background-color:rgba(var(--sd-color-icon-fill-primary,rgba(var(--sd-color-primary))))}[part=active-track][data-disabled]{background-color:rgba(var(--sd-color-background-neutral-500,rgba(var(--sd-color-neutral-500))))}`],o([f("#input")],l.prototype,"input",2),o([f('[part="active-track"]')],l.prototype,"activeTrack",2),o([f('[part="input-wrapper"]')],l.prototype,"inputWrapper",2),o([I('[part="thumb"]')],l.prototype,"thumbs",2),o([h({attribute:!1})],l.prototype,"tooltipFormatter",2),o([h({type:String,reflect:!0})],l.prototype,"name",2),o([h({type:String,reflect:!0})],l.prototype,"label",2),o([h({attribute:"help-text",reflect:!0})],l.prototype,"helpText",2),o([h({type:Number,reflect:!0})],l.prototype,"min",2),o([h({type:Number,reflect:!0})],l.prototype,"max",2),o([h({type:Number,reflect:!0})],l.prototype,"step",2),o([h({type:Boolean,reflect:!0})],l.prototype,"disabled",2),o([h({attribute:"visually-disabled",type:Boolean,reflect:!0})],l.prototype,"visuallyDisabled",2),o([h({attribute:"no-track-bar",type:Boolean,reflect:!0})],l.prototype,"noTrackBar",2),o([h({attribute:"tooltip",type:String,reflect:!0})],l.prototype,"tooltip",2),o([A()],l.prototype,"defaultValue",2),o([h({type:String})],l.prototype,"value",1),l=o([C("sd-range")],l);export{l as a};
@@ -1,2 +1,2 @@
1
- import{a as m,b as g,c as b,d as h,h as u}from"./chunk.ND7KR2OB.js";import{b as d,e as c}from"./chunk.OBAEIKIV.js";import{e as l}from"./chunk.6EV4YU6C.js";var s=class extends u{constructor(){super(...arguments);this.disableRole=!1;this.label=""}handleFocus(e){let t=a(e.target);t==null||t.classList.add("sd-button-group__button--focus")}handleBlur(e){let t=a(e.target);t==null||t.classList.remove("sd-button-group__button--focus")}handleMouseOver(e){let t=a(e.target);t==null||t.classList.add("sd-button-group__button--hover")}handleMouseOut(e){let t=a(e.target);t==null||t.classList.remove("sd-button-group__button--hover")}handleSlotChange(){let e=[...this.defaultSlot.assignedElements({flatten:!0})];e.forEach(t=>{let n=e.indexOf(t),o=a(t);o!==null&&(o.classList.add("sd-button-group__button"),o.classList.toggle("sd-button-group__button--first",n===0),o.classList.toggle("sd-button-group__button--inner",n>0&&n<e.length-1),o.classList.toggle("sd-button-group__button--last",n===e.length-1),o.classList.toggle("sd-button-group__button--radio",o.tagName.toLowerCase()==="sd-radio-button"))})}render(){return c`<slot part="base" role="${this.disableRole?"presentation":"group"}" aria-label="${this.label}" @focusout="${this.handleBlur}" @focusin="${this.handleFocus}" @mouseover="${this.handleMouseOver}" @mouseout="${this.handleMouseOut}" @slotchange="${this.handleSlotChange}"></slot>`}};s.styles=[...u.styles,d`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
1
+ import{a as m,b as g,c as b,d as h,h as u}from"./chunk.5B33ZALC.js";import{b as d,e as c}from"./chunk.OBAEIKIV.js";import{e as l}from"./chunk.6EV4YU6C.js";var s=class extends u{constructor(){super(...arguments);this.disableRole=!1;this.label=""}handleFocus(e){let t=a(e.target);t==null||t.classList.add("sd-button-group__button--focus")}handleBlur(e){let t=a(e.target);t==null||t.classList.remove("sd-button-group__button--focus")}handleMouseOver(e){let t=a(e.target);t==null||t.classList.add("sd-button-group__button--hover")}handleMouseOut(e){let t=a(e.target);t==null||t.classList.remove("sd-button-group__button--hover")}handleSlotChange(){let e=[...this.defaultSlot.assignedElements({flatten:!0})];e.forEach(t=>{let n=e.indexOf(t),o=a(t);o!==null&&(o.classList.add("sd-button-group__button"),o.classList.toggle("sd-button-group__button--first",n===0),o.classList.toggle("sd-button-group__button--inner",n>0&&n<e.length-1),o.classList.toggle("sd-button-group__button--last",n===e.length-1),o.classList.toggle("sd-button-group__button--radio",o.tagName.toLowerCase()==="sd-radio-button"))})}render(){return c`<slot part="base" role="${this.disableRole?"presentation":"group"}" aria-label="${this.label}" @focusout="${this.handleBlur}" @focusin="${this.handleFocus}" @mouseover="${this.handleMouseOver}" @mouseout="${this.handleMouseOut}" @slotchange="${this.handleSlotChange}"></slot>`}};s.styles=[...u.styles,d`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
2
  :host{display:inline-block}[part=base]{display:flex;flex-wrap:nowrap}`],l([h("slot")],s.prototype,"defaultSlot",2),l([b()],s.prototype,"disableRole",2),l([g({type:String,reflect:!0})],s.prototype,"label",2),s=l([m("sd-button-group")],s);function a(r){var e;let i="sd-button, sd-radio-button";return(e=r.closest(i))!=null?e:r.querySelector(i)}export{s as a};
@@ -0,0 +1,2 @@
1
+ import{a as w}from"./chunk.SAEYIL5V.js";import{a as $}from"./chunk.ERP45OHF.js";import{b as x}from"./chunk.LZRL7OLU.js";import{a as r}from"./chunk.LHSR56PH.js";import{a as C}from"./chunk.CGQ2BPPZ.js";import{a as s}from"./chunk.4ZZFYCXX.js";import{a as d}from"./chunk.NYKJXI3Q.js";import{a as g,b as i,c,d as b,h as m}from"./chunk.5B33ZALC.js";import{b as y,e as o}from"./chunk.OBAEIKIV.js";import{e}from"./chunk.6EV4YU6C.js";var t=class extends m{constructor(){super(...arguments);this.formControlController=new x(this);this.hasSlotController=new C(this,"help-text","label");this.hasFocus=!1;this.showValidStyle=!1;this.showInvalidStyle=!1;this.title="";this.name="";this.value="";this.size="lg";this.label="";this.helpText="";this.placeholder="";this.rows=4;this.disabled=!1;this.visuallyDisabled=!1;this.readonly=!1;this.form="";this.required=!1;this.floatingLabel=!1;this.styleOnValid=!1;this.spellcheck=!0;this.defaultValue=""}get validity(){return this.textarea.validity}get validationMessage(){return this.textarea.validationMessage}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.setTextareaHeight()})}firstUpdated(){this.formControlController.updateValidity()}disconnectedCallback(){super.disconnectedCallback()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.textarea.value,this.setTextareaHeight(),this.emit("sd-change")}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){if(this.visuallyDisabled){this.textarea.value=this.value;return}this.value=this.textarea.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(l){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(l),this.invalidMessage.textContent=l.target.validationMessage}setTextareaHeight(){this.textarea.style.height=void 0}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleRowsChange(){this.setTextareaHeight()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity(),this.setTextareaHeight()}handleSizeChange(){this.size=this.floatingLabel&&this.size==="sm"?"md":this.size}focus(l){this.textarea.focus(l)}blur(){this.textarea.blur()}select(){this.textarea.select()}scrollPosition(l){if(l){typeof l.top=="number"&&(this.textarea.scrollTop=l.top),typeof l.left=="number"&&(this.textarea.scrollLeft=l.left);return}return{top:this.textarea.scrollTop,left:this.textarea.scrollTop}}setSelectionRange(l,a,n="none"){this.textarea.setSelectionRange(l,a,n)}setRangeText(l,a,n,p){this.textarea.setRangeText(l,a,n,p),this.value!==this.textarea.value&&(this.value=this.textarea.value),this.value!==this.textarea.value&&(this.value=this.textarea.value,this.setTextareaHeight())}checkValidity(){var l;return(l=this.textarea)==null?void 0:l.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.textarea.reportValidity()}setCustomValidity(l){this.textarea.setCustomValidity(l),this.formControlController.updateValidity()}render(){let l={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text"),tooltip:this.hasSlotController.test("tooltip")},a=this.label?!0:!!l.label,n=this.helpText?!0:!!l.helpText,p=!!l.tooltip,V=this.value!==null&&String(this.value).length>0,h=this.floatingLabel&&a&&(this.hasFocus&&!this.visuallyDisabled||V),u=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"visuallyDisabled":this.readonly?"readonly":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",f=this.size==="sm"?"text-sm":"text-base",v={sm:"text-base top-1",md:"text-lg top-2",lg:"text-xl top-2"}[this.size];return o`<div part="form-control" class="flex flex-col h-full text-left">${a&&!this.floatingLabel||p?o`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${s(a?"inline-block":"hidden",f,this.visuallyDisabled||this.disabled?"text-neutral-500":" form-control-color-text")}" for="input" aria-hidden="${a?"false":"true"}"><slot name="label">${this.label}</slot></label> ${l.tooltip?o`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${s("relative h-full w-full",this.disabled&&"cursor-not-allowed")}">${a&&this.floatingLabel?o`<label id="label" part="form-control-floating-label" class="${s("absolute left-4 z-20 transition-all duration-200 cursor-text",f,h?"top-2 text-xs":"top-2.5 form-control-color-text")}" for="input"><span class="${s("leading-none",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",h&&!this.visuallyDisabled&&!this.disabled&&"form-control--filled__floating-label-color-text")}">${this.label}</span></label>`:null}<div part="border" class="${s("absolute w-full h-full pointer-events-none border form-control-border-radius transition-[border] duration-medium ease-in-out",{disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"form-control-color-border",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"form-control-color-border"}[u])}"></div><div part="base" class="${s("textarea h-full flex items-top form-control-border-radius group transition-colors duration-medium hover:duration-fast ease-in-out",this.floatingLabel&&"pt-6",{sm:"textarea-sm",md:"textarea-md",lg:"textarea-lg"}[this.size],!this.disabled&&!this.readonly&&!this.visuallyDisabled?"hover:[@media(hover:hover)]:form-control--hover-color-background":"",this.readonly?"form-control--read-only-color-background":"bg-white",u==="disabled"||u==="visuallyDisabled"?"text-neutral-500":"text-black",["invalid","activeInvalid"].includes(u)&&"form-control--invalid-color-background")}"><textarea part="textarea" id="input" class="${s("ps-4 flex-grow focus:outline-none bg-transparent placeholder:text-neutral-700 resize-none group-has-[sd-icon]:pe-8",{sm:h?"pb-1":"py-2",md:h?"pb-1":"py-2",lg:h?"pb-2":"py-2"}[this.size],this.disabled&&"cursor-not-allowed",f)}" title="${this.title}" name="${r(this.name)}" .value="${w(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" ?visually-disabled="${this.visuallyDisabled}" placeholder="${!this.floatingLabel||h?r(this.placeholder):""}" minlength="${r(this.minlength)}" maxlength="${r(this.maxlength)}" rows="${r(this.rows)}" autocapitalize="${r(this.autocapitalize)}" autocorrect="${r(this.autocorrect===void 0?void 0:this.autocorrect?"on":"off")}" ?autofocus="${this.autofocus}" spellcheck="${r(this.spellcheck)}" enterkeyhint="${r(this.enterkeyhint)}" inputmode="${r(this.inputmode)}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled||this.visuallyDisabled}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle?o`<sd-icon class="${s("text-error absolute right-4 pointer-events-none",v)}" library="_internal" name="risk" part="invalid-icon"></sd-icon>`:""} ${this.styleOnValid&&this.showValidStyle?o`<sd-icon class="${s("text-success absolute right-4 pointer-events-none",v)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-icon>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${s("text-sm mt-1",n&&!this.showInvalidStyle?"block":"hidden",this.visuallyDisabled||this.disabled?"text-neutral-500":"text-neutral-700")}" aria-hidden="${!n||this.showInvalidStyle}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};t.styles=[...m.styles,y`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ :host{display:block;height:100%}:host textarea{scrollbar-gutter:stable}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([required]) #label::after{content:' *'}:host([visually-disabled]) textarea{caret-color:transparent}.no-scrollbar::-webkit-scrollbar{display:none}`],e([b("#input")],t.prototype,"textarea",2),e([b("#invalid-message")],t.prototype,"invalidMessage",2),e([c()],t.prototype,"hasFocus",2),e([c()],t.prototype,"showValidStyle",2),e([c()],t.prototype,"showInvalidStyle",2),e([i({type:String,reflect:!0})],t.prototype,"title",2),e([i({type:String,reflect:!0})],t.prototype,"name",2),e([i()],t.prototype,"value",2),e([i({type:String,reflect:!0})],t.prototype,"size",2),e([i({type:String,reflect:!0})],t.prototype,"label",2),e([i({type:String,attribute:"help-text",reflect:!0})],t.prototype,"helpText",2),e([i({type:String,reflect:!0})],t.prototype,"placeholder",2),e([i({type:Number,reflect:!0})],t.prototype,"rows",2),e([i({type:Boolean,reflect:!0})],t.prototype,"disabled",2),e([i({type:Boolean,reflect:!0,attribute:"visually-disabled"})],t.prototype,"visuallyDisabled",2),e([i({type:Boolean,reflect:!0})],t.prototype,"readonly",2),e([i({type:String,reflect:!0})],t.prototype,"form",2),e([i({type:Boolean,reflect:!0})],t.prototype,"required",2),e([i({attribute:"floating-label",type:Boolean,reflect:!0})],t.prototype,"floatingLabel",2),e([i({type:Number,reflect:!0})],t.prototype,"minlength",2),e([i({type:Number,reflect:!0})],t.prototype,"maxlength",2),e([i({type:String,reflect:!0})],t.prototype,"autocapitalize",2),e([i({type:Boolean,reflect:!0,converter:{fromAttribute:l=>l!=="off",toAttribute:l=>l?"on":"off"}})],t.prototype,"autocorrect",2),e([i({reflect:!0})],t.prototype,"autocomplete",2),e([i({type:Boolean,reflect:!0})],t.prototype,"autofocus",2),e([i({type:String,reflect:!0})],t.prototype,"enterkeyhint",2),e([i({type:Boolean,reflect:!0,attribute:"style-on-valid"})],t.prototype,"styleOnValid",2),e([i({type:Boolean,converter:{fromAttribute:l=>!(!l||l==="false"),toAttribute:l=>l?"true":"false"}})],t.prototype,"spellcheck",2),e([i({type:String,reflect:!0})],t.prototype,"inputmode",2),e([$()],t.prototype,"defaultValue",2),e([d("disabled",{waitUntilFirstUpdate:!0})],t.prototype,"handleDisabledChange",1),e([d("rows",{waitUntilFirstUpdate:!0})],t.prototype,"handleRowsChange",1),e([d("value",{waitUntilFirstUpdate:!0})],t.prototype,"handleValueChange",1),e([d(["size","floatingLabel"])],t.prototype,"handleSizeChange",1),t=e([g("sd-textarea")],t);export{t as a};
@@ -1,2 +1,2 @@
1
- import{a as d}from"./chunk.SAEYIL5V.js";import{a as b}from"./chunk.ERP45OHF.js";import{b as m}from"./chunk.LZRL7OLU.js";import{a as p}from"./chunk.LHSR56PH.js";import{a as l}from"./chunk.UFTAQNZB.js";import{a as n}from"./chunk.NYKJXI3Q.js";import{a as u,b as r,c as h,d as a,h as o}from"./chunk.ND7KR2OB.js";import{b as c,e as s}from"./chunk.OBAEIKIV.js";import{e as i}from"./chunk.6EV4YU6C.js";var t=class extends o{constructor(){super(...arguments);this.formControlController=new m(this,{value:e=>e.checked?e.value||"on":void 0,defaultValue:e=>e.defaultChecked,setValue:(e,v)=>e.checked=v});this.title="";this.name="";this.size="lg";this.disabled=!1;this.visuallyDisabled=!1;this.checked=!1;this.indeterminate=!1;this.defaultChecked=!1;this.form="";this.required=!1;this.showInvalidStyle=!1}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleClick(e){if(this.visuallyDisabled){e.preventDefault(),e.stopPropagation();return}this.checked=!this.checked,this.indeterminate=!1,this.emit("sd-change")}handleBlur(){this.emit("sd-blur")}handleInput(){this.emit("sd-input")}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e),this.invalidMessage.textContent=e.target.validationMessage}handleFocus(){this.emit("sd-focus")}handleDisabledChange(){let e=this.disabled||this.visuallyDisabled;this.setAttribute("aria-disabled",e?"true":"false"),this.formControlController.setValidity(e)}handleStateChange(){this.input.checked=this.checked,this.input.indeterminate=this.indeterminate,this.formControlController.updateValidity()}click(){this.input.click()}focus(e){this.input.focus(e)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){let e=this.disabled&&this.indeterminate?"disabledIndeterminate":this.disabled&&this.checked?"disabledChecked":this.disabled?"disabled":this.visuallyDisabled?"visuallyDisabled":this.showInvalidStyle&&this.indeterminate?"invalidIndeterminate":this.showInvalidStyle?"invalid":this.checked||this.indeterminate?"filled":"default";return s`<div class="flex flex-col"><label part="base" class="${l("sd-checkbox group flex items-start text-base leading-normal text-black cursor-pointer",(this.disabled||this.visuallyDisabled)&&"hover:cursor-not-allowed",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}"><input class="peer absolute opacity-0 p-0 m-0 pointer-events-none" type="checkbox" title="${this.title}" name="${this.name}" value="${p(this.value)}" .indeterminate="${d(this.indeterminate)}" .checked="${d(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.indeterminate?"mixed":this.checked}" aria-describedby="invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled||this.visuallyDisabled?"true":"false"}" @click="${this.handleClick}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @blur="${this.handleBlur}" @focus="${this.handleFocus}"> <span id="control" part="control ${this.checked?" control--checked":"control--unchecked"} ${this.indeterminate?" control--indeterminate":""}" class="${l("relative flex shrink-0 items-center justify-center border sd-checkbox-border-width rounded-sm h-4 w-4","transition-colors ease-in-out duration-medium group-hover:duration-fast","peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-primary outline-transparent",{sm:"mt-[2px]",md:"mt-[3px]",lg:"mt-[3px]"}[this.size],{disabledIndeterminate:"border-neutral-500 bg-neutral-500",disabledChecked:"border-neutral-500 bg-neutral-500",disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",invalidIndeterminate:"border-error bg-error group-hover:bg-error-400 group-hover:border-error-400",invalid:"border-error group-hover:border-error-400 sd-checkbox--invalid-color-background group-hover:bg-transparent",filled:"border-accent hover:border-accent-550 group-hover:border-accent-550 bg-accent group-hover:bg-accent-550",default:"form-control-color-border hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"}[e])}"><div part="checkbox" class="${l("absolute h-3 transition-[width] right-0 duration-medium",this.checked||this.indeterminate?"w-0":"w-3")}"><div class="${l("w-full h-full transition-colors duration-medium ease-in-out group-hover:duration-fast",{disabledIndeterminate:"bg-neutral-500",disabledChecked:" bg-neutral-500",disabled:"",visuallyDisabled:"",invalidIndeterminate:" bg-error group-hover:bg-error-400",invalid:"sd-checkbox--invalid-color-background",filled:"bg-accent group-hover:bg-accent-550",default:"hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"}[e])}"></div></div>${this.checked?s`<sd-icon part="checked-icon" class="text-white w-3 h-3" library="sd-status-assets" name="status-check"></sd-icon>`:""} ${!this.checked&&this.indeterminate?s`<sd-icon part="indeterminate-icon" class="text-white w-3 h-3" library="sd-status-assets" name="status-minus"></sd-icon>`:""} </span><span part="label" id="label" class="${l("select-none inline-block ml-2",this.disabled||this.visuallyDisabled?"text-neutral-500":"text-black")}"><slot></slot></span></label><div id="invalid-icon-message" part="invalid-icon-message" class="${l("flex items-center gap-2",this.showInvalidStyle&&"mt-2")}">${this.showInvalidStyle?s`<sd-icon id="invalid-icon" part="invalid-icon" library="_internal" name="risk"></sd-icon>`:""} ${this.formControlController.renderInvalidMessage(this.size)}</div></div>`}};t.styles=[...o.styles,c`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
1
+ import{a as d}from"./chunk.SAEYIL5V.js";import{a as b}from"./chunk.ERP45OHF.js";import{b as m}from"./chunk.LZRL7OLU.js";import{a as p}from"./chunk.LHSR56PH.js";import{a as l}from"./chunk.4ZZFYCXX.js";import{a as n}from"./chunk.NYKJXI3Q.js";import{a as u,b as r,c as h,d as a,h as o}from"./chunk.5B33ZALC.js";import{b as c,e as s}from"./chunk.OBAEIKIV.js";import{e as i}from"./chunk.6EV4YU6C.js";var t=class extends o{constructor(){super(...arguments);this.formControlController=new m(this,{value:e=>e.checked?e.value||"on":void 0,defaultValue:e=>e.defaultChecked,setValue:(e,v)=>e.checked=v});this.title="";this.name="";this.size="lg";this.disabled=!1;this.visuallyDisabled=!1;this.checked=!1;this.indeterminate=!1;this.defaultChecked=!1;this.form="";this.required=!1;this.showInvalidStyle=!1}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleClick(e){if(this.visuallyDisabled){e.preventDefault(),e.stopPropagation();return}this.checked=!this.checked,this.indeterminate=!1,this.emit("sd-change")}handleBlur(){this.emit("sd-blur")}handleInput(){this.emit("sd-input")}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e),this.invalidMessage.textContent=e.target.validationMessage}handleFocus(){this.emit("sd-focus")}handleDisabledChange(){let e=this.disabled||this.visuallyDisabled;this.setAttribute("aria-disabled",e?"true":"false"),this.formControlController.setValidity(e)}handleStateChange(){this.input.checked=this.checked,this.input.indeterminate=this.indeterminate,this.formControlController.updateValidity()}click(){this.input.click()}focus(e){this.input.focus(e)}blur(){this.input.blur()}checkValidity(){return this.input.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){let e=this.disabled&&this.indeterminate?"disabledIndeterminate":this.disabled&&this.checked?"disabledChecked":this.disabled?"disabled":this.visuallyDisabled?"visuallyDisabled":this.showInvalidStyle&&this.indeterminate?"invalidIndeterminate":this.showInvalidStyle?"invalid":this.checked||this.indeterminate?"filled":"default";return s`<div class="flex flex-col"><label part="base" class="${l("sd-checkbox group flex items-start text-base leading-normal text-black cursor-pointer",(this.disabled||this.visuallyDisabled)&&"hover:cursor-not-allowed",{sm:"text-sm",md:"text-base",lg:"text-base"}[this.size])}"><input class="peer absolute opacity-0 p-0 m-0 pointer-events-none" type="checkbox" title="${this.title}" name="${this.name}" value="${p(this.value)}" .indeterminate="${d(this.indeterminate)}" .checked="${d(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.indeterminate?"mixed":this.checked}" aria-describedby="invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled||this.visuallyDisabled?"true":"false"}" @click="${this.handleClick}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @blur="${this.handleBlur}" @focus="${this.handleFocus}"> <span id="control" part="control ${this.checked?" control--checked":"control--unchecked"} ${this.indeterminate?" control--indeterminate":""}" class="${l("relative flex shrink-0 items-center justify-center border sd-checkbox-border-width rounded-sm h-4 w-4","transition-colors ease-in-out duration-medium group-hover:duration-fast","peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-primary outline-transparent",{sm:"mt-[2px]",md:"mt-[3px]",lg:"mt-[3px]"}[this.size],{disabledIndeterminate:"border-neutral-500 bg-neutral-500",disabledChecked:"border-neutral-500 bg-neutral-500",disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",invalidIndeterminate:"border-error bg-error group-hover:bg-error-400 group-hover:border-error-400",invalid:"border-error group-hover:border-error-400 sd-checkbox--invalid-color-background group-hover:bg-transparent",filled:"border-accent hover:border-accent-550 group-hover:border-accent-550 bg-accent group-hover:bg-accent-550",default:"form-control-color-border hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"}[e])}"><div part="checkbox" class="${l("absolute h-3 transition-[width] right-0 duration-medium",this.checked||this.indeterminate?"w-0":"w-3")}"><div class="${l("w-full h-full transition-colors duration-medium ease-in-out group-hover:duration-fast",{disabledIndeterminate:"bg-neutral-500",disabledChecked:" bg-neutral-500",disabled:"",visuallyDisabled:"",invalidIndeterminate:" bg-error group-hover:bg-error-400",invalid:"sd-checkbox--invalid-color-background",filled:"bg-accent group-hover:bg-accent-550",default:"hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"}[e])}"></div></div>${this.checked?s`<sd-icon part="checked-icon" class="text-white w-3 h-3" library="sd-status-assets" name="status-check"></sd-icon>`:""} ${!this.checked&&this.indeterminate?s`<sd-icon part="indeterminate-icon" class="text-white w-3 h-3" library="sd-status-assets" name="status-minus"></sd-icon>`:""} </span><span part="label" id="label" class="${l("select-none inline-block ml-2",this.disabled||this.visuallyDisabled?"text-neutral-500":"text-black")}"><slot></slot></span></label><div id="invalid-icon-message" part="invalid-icon-message" class="${l("flex items-center gap-2",this.showInvalidStyle&&"mt-2")}">${this.showInvalidStyle?s`<sd-icon id="invalid-icon" part="invalid-icon" library="_internal" name="risk"></sd-icon>`:""} ${this.formControlController.renderInvalidMessage(this.size)}</div></div>`}};t.styles=[...o.styles,c`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
2
2
  :host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline-style:var(--tw-outline-style);outline-width:0}:host([required]) #label::after{content:' *'}[part=invalid-icon]{color:rgb(var(--sd-color-icon-fill-error))}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}`],i([a('input[type="checkbox"]')],t.prototype,"input",2),i([a("#invalid-message")],t.prototype,"invalidMessage",2),i([r({type:String,reflect:!0})],t.prototype,"title",2),i([r({type:String,reflect:!0})],t.prototype,"name",2),i([r()],t.prototype,"value",2),i([r({type:String,reflect:!0})],t.prototype,"size",2),i([r({type:Boolean,reflect:!0})],t.prototype,"disabled",2),i([r({type:Boolean,reflect:!0,attribute:"visually-disabled"})],t.prototype,"visuallyDisabled",2),i([r({type:Boolean,reflect:!0})],t.prototype,"checked",2),i([r({type:Boolean,reflect:!0})],t.prototype,"indeterminate",2),i([b("checked")],t.prototype,"defaultChecked",2),i([r({type:String,reflect:!0})],t.prototype,"form",2),i([r({type:Boolean,reflect:!0})],t.prototype,"required",2),i([h()],t.prototype,"showInvalidStyle",2),i([n(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],t.prototype,"handleDisabledChange",1),i([n(["checked","indeterminate"],{waitUntilFirstUpdate:!0})],t.prototype,"handleStateChange",1),t=i([u("sd-checkbox")],t);export{t as a};
@@ -1,2 +1,2 @@
1
- import{a as m}from"./chunk.MWDEA25W.js";import{a as p}from"./chunk.NYKJXI3Q.js";import{a as n,b as o,h as a}from"./chunk.ND7KR2OB.js";import{b as c,e as l}from"./chunk.OBAEIKIV.js";import{e as s}from"./chunk.6EV4YU6C.js";var t=class extends a{constructor(){super(...arguments);this.mode="cors";this.allowScripts=!1}executeScript(e){let r=document.createElement("script");[...e.attributes].forEach(i=>r.setAttribute(i.name,i.value)),r.textContent=e.textContent,e.parentNode.replaceChild(r,e)}async handleSrcChange(){try{let e=this.src,r=await m(e,this.mode);if(e!==this.src)return;if(!r.ok){this.emit("sd-error",{detail:{status:r.status}});return}this.innerHTML=r.html,this.allowScripts&&[...this.querySelectorAll("script")].forEach(i=>this.executeScript(i)),this.emit("sd-load")}catch(e){this.emit("sd-error",{detail:{status:-1}})}}render(){return l`<slot></slot>`}};t.styles=[...a.styles,c`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
1
+ import{a as m}from"./chunk.MWDEA25W.js";import{a as p}from"./chunk.NYKJXI3Q.js";import{a as n,b as o,h as a}from"./chunk.5B33ZALC.js";import{b as c,e as l}from"./chunk.OBAEIKIV.js";import{e as s}from"./chunk.6EV4YU6C.js";var t=class extends a{constructor(){super(...arguments);this.mode="cors";this.allowScripts=!1}executeScript(e){let r=document.createElement("script");[...e.attributes].forEach(i=>r.setAttribute(i.name,i.value)),r.textContent=e.textContent,e.parentNode.replaceChild(r,e)}async handleSrcChange(){try{let e=this.src,r=await m(e,this.mode);if(e!==this.src)return;if(!r.ok){this.emit("sd-error",{detail:{status:r.status}});return}this.innerHTML=r.html,this.allowScripts&&[...this.querySelectorAll("script")].forEach(i=>this.executeScript(i)),this.emit("sd-load")}catch(e){this.emit("sd-error",{detail:{status:-1}})}}render(){return l`<slot></slot>`}};t.styles=[...a.styles,c`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
2
  :host{display:block}`],s([o({reflect:!0})],t.prototype,"src",2),s([o({type:String,reflect:!0})],t.prototype,"mode",2),s([o({attribute:"allow-scripts",type:Boolean,reflect:!0})],t.prototype,"allowScripts",2),s([p("src")],t.prototype,"handleSrcChange",1),t=s([n("sd-include")],t);export{t as a};