@solid-design-system/components 6.28.1 → 6.28.2

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 (662) hide show
  1. package/cdn/chunks/{chunk.A776PZ36.js → chunk.2B7TGF46.js} +1 -1
  2. package/cdn/chunks/{chunk.74L6LSOZ.js → chunk.3B6D34VK.js} +2 -2
  3. package/cdn/chunks/{chunk.HU3Y3SK3.js → chunk.4JBMIKZI.js} +1 -1
  4. package/cdn/chunks/{chunk.2BNVL3S5.js → chunk.4R4KT43K.js} +1 -1
  5. package/cdn/chunks/{chunk.YRXFRPIB.js → chunk.5PE4SXDY.js} +1 -1
  6. package/cdn/chunks/{chunk.445KVQTV.js → chunk.6PHREOUD.js} +1 -1
  7. package/cdn/chunks/{chunk.AYMFIOMD.js → chunk.6VGIL6Z5.js} +1 -1
  8. package/cdn/chunks/chunk.7BPXPQDA.js +2 -0
  9. package/cdn/chunks/{chunk.AI4FORQX.js → chunk.7VAMOKW3.js} +1 -1
  10. package/cdn/chunks/chunk.AANY3BOK.js +2 -0
  11. package/cdn/chunks/{chunk.SQLZCJI5.js → chunk.ALXM6MOP.js} +3 -3
  12. package/cdn/chunks/{chunk.LVQYEZ7C.js → chunk.AWWZTW4J.js} +1 -1
  13. package/cdn/chunks/{chunk.HA7TX6AK.js → chunk.BBWD3V6L.js} +2 -2
  14. package/cdn/chunks/{chunk.CLMQMYBJ.js → chunk.BFX742NV.js} +1 -1
  15. package/cdn/chunks/{chunk.ORTFKXUC.js → chunk.BMIAD72Q.js} +1 -1
  16. package/cdn/chunks/{chunk.3DG6UM4V.js → chunk.BXK5ZQNK.js} +1 -1
  17. package/cdn/chunks/{chunk.E3RBLJOD.js → chunk.C45254AN.js} +1 -1
  18. package/cdn/chunks/{chunk.SYJ3NI2G.js → chunk.C6DA2JLR.js} +2 -2
  19. package/cdn/chunks/{chunk.WRQSUGXO.js → chunk.CEDTN2DR.js} +1 -1
  20. package/cdn/chunks/{chunk.R2JLNR5X.js → chunk.CLDRPNX4.js} +2 -2
  21. package/cdn/chunks/chunk.DCHF5SCA.js +2 -0
  22. package/cdn/chunks/{chunk.3D2S4UWX.js → chunk.GEZM3DGL.js} +2 -2
  23. package/cdn/chunks/{chunk.PEXRRU32.js → chunk.HHXKNHXP.js} +2 -2
  24. package/cdn/chunks/{chunk.POMAZ7VY.js → chunk.INCCCJWQ.js} +2 -2
  25. package/cdn/chunks/{chunk.VIDMGLW5.js → chunk.IUSUOWDV.js} +1 -1
  26. package/cdn/chunks/{chunk.XPFDHPJ3.js → chunk.J244UHOW.js} +1 -1
  27. package/cdn/chunks/{chunk.JUT4IROE.js → chunk.JAG4C4XW.js} +1 -1
  28. package/cdn/chunks/{chunk.5L7KTIHB.js → chunk.KGSRXYI5.js} +1 -1
  29. package/cdn/chunks/{chunk.RUG72AZP.js → chunk.KUDQOQRZ.js} +1 -1
  30. package/cdn/chunks/chunk.L6FMD2VX.js +2 -0
  31. package/cdn/chunks/{chunk.3KTNKXIV.js → chunk.L6NAXN2W.js} +1 -1
  32. package/cdn/chunks/{chunk.N3CMOOUW.js → chunk.LO7UWJFY.js} +2 -2
  33. package/cdn/chunks/{chunk.YC7FRHYD.js → chunk.LU3L3Q4Y.js} +1 -1
  34. package/cdn/chunks/{chunk.FBFD65FU.js → chunk.MGRPWOOH.js} +1 -1
  35. package/cdn/chunks/{chunk.A2RFBXER.js → chunk.MWNEBW6V.js} +1 -1
  36. package/cdn/chunks/chunk.NFQGEN2R.js +26 -0
  37. package/cdn/chunks/{chunk.UL35LBVP.js → chunk.OB7D5JMR.js} +1 -1
  38. package/cdn/chunks/{chunk.CUBUWRQU.js → chunk.PG6X7SCB.js} +2 -2
  39. package/cdn/chunks/{chunk.XQREDRD4.js → chunk.POHYUACO.js} +2 -2
  40. package/cdn/chunks/{chunk.LTJNSTIW.js → chunk.QK2NFNML.js} +1 -1
  41. package/cdn/chunks/{chunk.ABSE3MII.js → chunk.QOKK4J6G.js} +1 -1
  42. package/cdn/chunks/{chunk.BOENTVN6.js → chunk.RN6RW6UG.js} +2 -2
  43. package/cdn/chunks/{chunk.BPLEXJRH.js → chunk.ROZ24VKI.js} +1 -1
  44. package/cdn/chunks/{chunk.YACICJIY.js → chunk.RP5D7SRC.js} +1 -1
  45. package/cdn/chunks/chunk.RUCLL7W4.js +2 -0
  46. package/cdn/chunks/{chunk.CL5BBT4T.js → chunk.S72OZ2OU.js} +1 -1
  47. package/cdn/chunks/{chunk.M6FP3NOQ.js → chunk.SML34CKF.js} +1 -1
  48. package/cdn/chunks/chunk.SMSYH5DO.js +2 -0
  49. package/cdn/chunks/{chunk.N3K4PTXW.js → chunk.SOENXSC4.js} +1 -1
  50. package/cdn/chunks/{chunk.NA57UOFE.js → chunk.STPVSFJJ.js} +1 -1
  51. package/cdn/chunks/{chunk.YPXOVI3T.js → chunk.T2U5X4GW.js} +1 -1
  52. package/cdn/chunks/{chunk.TDOHFUFY.js → chunk.TVJFUJWA.js} +2 -2
  53. package/cdn/chunks/{chunk.D7WXTEPH.js → chunk.UBY5IZNO.js} +1 -1
  54. package/cdn/chunks/{chunk.YU53EBA2.js → chunk.UO5VPZOW.js} +1 -1
  55. package/cdn/chunks/{chunk.EVHSBRO7.js → chunk.UPZJ3IHK.js} +1 -1
  56. package/cdn/chunks/chunk.V7RLKRRG.js +2 -0
  57. package/cdn/chunks/{chunk.RGSGVB2S.js → chunk.VAQU2IKZ.js} +2 -2
  58. package/cdn/chunks/{chunk.Z7YKR3W4.js → chunk.WP5MSHUX.js} +1 -1
  59. package/cdn/chunks/{chunk.BY3VUO6U.js → chunk.XHVNSYAC.js} +2 -2
  60. package/cdn/chunks/{chunk.UJ4C3NIO.js → chunk.XI2G4RVO.js} +1 -1
  61. package/cdn/chunks/{chunk.ADMB4AGP.js → chunk.XQEUN4FD.js} +2 -2
  62. package/cdn/chunks/{chunk.4N7OJHEJ.js → chunk.YI3VX7A3.js} +1 -1
  63. package/cdn/components/accordion/accordion.js +1 -1
  64. package/cdn/components/accordion-group/accordion-group.js +1 -1
  65. package/cdn/components/animation/animation.js +1 -1
  66. package/cdn/components/audio/audio.js +1 -1
  67. package/cdn/components/badge/badge.js +1 -1
  68. package/cdn/components/brandshape/brandshape.js +1 -1
  69. package/cdn/components/breadcrumb/breadcrumb.js +1 -1
  70. package/cdn/components/breadcrumb-item/breadcrumb-item.js +1 -1
  71. package/cdn/components/button/button.js +1 -1
  72. package/cdn/components/button-group/button-group.js +1 -1
  73. package/cdn/components/carousel/carousel.js +1 -1
  74. package/cdn/components/carousel-item/carousel-item.js +1 -1
  75. package/cdn/components/checkbox/checkbox.js +1 -1
  76. package/cdn/components/checkbox-group/checkbox-group.js +1 -1
  77. package/cdn/components/combobox/combobox.js +1 -1
  78. package/cdn/components/datepicker/datepicker.js +1 -1
  79. package/cdn/components/dialog/dialog.js +1 -1
  80. package/cdn/components/divider/divider.js +1 -1
  81. package/cdn/components/drawer/drawer.js +1 -1
  82. package/cdn/components/dropdown/dropdown.js +1 -1
  83. package/cdn/components/expandable/expandable.js +1 -1
  84. package/cdn/components/flipcard/flipcard.js +1 -1
  85. package/cdn/components/header/header.js +1 -1
  86. package/cdn/components/icon/icon.js +1 -1
  87. package/cdn/components/include/include.js +1 -1
  88. package/cdn/components/input/input.js +1 -1
  89. package/cdn/components/link/link.js +1 -1
  90. package/cdn/components/loader/loader.js +1 -1
  91. package/cdn/components/map-marker/map-marker.js +1 -1
  92. package/cdn/components/menu/menu.js +1 -1
  93. package/cdn/components/menu-item/menu-item.js +1 -1
  94. package/cdn/components/navigation-item/navigation-item.js +1 -1
  95. package/cdn/components/notification/notification.js +1 -1
  96. package/cdn/components/optgroup/optgroup.js +1 -1
  97. package/cdn/components/option/option.js +1 -1
  98. package/cdn/components/popup/popup.js +1 -1
  99. package/cdn/components/progress-bar/progress-bar.js +1 -1
  100. package/cdn/components/quickfact/quickfact.js +1 -1
  101. package/cdn/components/radio/radio.js +1 -1
  102. package/cdn/components/radio-button/radio-button.js +1 -1
  103. package/cdn/components/radio-group/radio-group.js +1 -1
  104. package/cdn/components/range/range.js +1 -1
  105. package/cdn/components/range-tick/range-tick.js +1 -1
  106. package/cdn/components/scrollable/scrollable.js +1 -1
  107. package/cdn/components/select/select.js +1 -1
  108. package/cdn/components/skeleton/skeleton.js +1 -1
  109. package/cdn/components/spinner/spinner.js +1 -1
  110. package/cdn/components/step/step.js +1 -1
  111. package/cdn/components/step-group/step-group.js +1 -1
  112. package/cdn/components/switch/switch.js +1 -1
  113. package/cdn/components/tab/tab.js +1 -1
  114. package/cdn/components/tab-group/tab-group.js +1 -1
  115. package/cdn/components/tab-panel/tab-panel.js +1 -1
  116. package/cdn/components/tag/tag.js +1 -1
  117. package/cdn/components/teaser/teaser.js +1 -1
  118. package/cdn/components/teaser-media/teaser-media.js +1 -1
  119. package/cdn/components/textarea/textarea.js +1 -1
  120. package/cdn/components/theme-listener/theme-listener.js +1 -1
  121. package/cdn/components/tooltip/tooltip.js +1 -1
  122. package/cdn/components/video/video.js +1 -1
  123. package/cdn/custom-elements.json +26 -26
  124. package/cdn/solid-components.bundle.js +84 -84
  125. package/cdn/solid-components.css +4 -4
  126. package/cdn/solid-components.iife.js +84 -84
  127. package/cdn/solid-components.js +1 -1
  128. package/cdn/utilities/autocomplete-config.js +1 -1
  129. package/cdn/vscode.html-custom-data.json +0 -12
  130. package/cdn/web-types.json +25 -25
  131. package/cdn-versioned/chunks/{chunk.A776PZ36.js → chunk.2B7TGF46.js} +2 -2
  132. package/cdn-versioned/chunks/{chunk.74L6LSOZ.js → chunk.3B6D34VK.js} +5 -5
  133. package/cdn-versioned/chunks/{chunk.HU3Y3SK3.js → chunk.4JBMIKZI.js} +2 -2
  134. package/cdn-versioned/chunks/{chunk.2BNVL3S5.js → chunk.4R4KT43K.js} +2 -2
  135. package/cdn-versioned/chunks/{chunk.YRXFRPIB.js → chunk.5PE4SXDY.js} +2 -2
  136. package/cdn-versioned/chunks/{chunk.445KVQTV.js → chunk.6PHREOUD.js} +2 -2
  137. package/cdn-versioned/chunks/{chunk.AYMFIOMD.js → chunk.6VGIL6Z5.js} +2 -2
  138. package/cdn-versioned/chunks/chunk.7BPXPQDA.js +2 -0
  139. package/cdn-versioned/chunks/{chunk.AI4FORQX.js → chunk.7VAMOKW3.js} +2 -2
  140. package/cdn-versioned/chunks/chunk.AANY3BOK.js +2 -0
  141. package/cdn-versioned/chunks/chunk.ALXM6MOP.js +12 -0
  142. package/cdn-versioned/chunks/{chunk.LVQYEZ7C.js → chunk.AWWZTW4J.js} +2 -2
  143. package/cdn-versioned/chunks/{chunk.HA7TX6AK.js → chunk.BBWD3V6L.js} +3 -3
  144. package/cdn-versioned/chunks/{chunk.CLMQMYBJ.js → chunk.BFX742NV.js} +2 -2
  145. package/cdn-versioned/chunks/{chunk.ORTFKXUC.js → chunk.BMIAD72Q.js} +2 -2
  146. package/cdn-versioned/chunks/{chunk.3DG6UM4V.js → chunk.BXK5ZQNK.js} +2 -2
  147. package/cdn-versioned/chunks/{chunk.E3RBLJOD.js → chunk.C45254AN.js} +2 -2
  148. package/cdn-versioned/chunks/{chunk.SYJ3NI2G.js → chunk.C6DA2JLR.js} +2 -2
  149. package/cdn-versioned/chunks/{chunk.WRQSUGXO.js → chunk.CEDTN2DR.js} +2 -2
  150. package/cdn-versioned/chunks/{chunk.R2JLNR5X.js → chunk.CLDRPNX4.js} +5 -5
  151. package/cdn-versioned/chunks/chunk.DCHF5SCA.js +2 -0
  152. package/cdn-versioned/chunks/chunk.DSKB3SEU.js +1 -1
  153. package/cdn-versioned/chunks/{chunk.3D2S4UWX.js → chunk.GEZM3DGL.js} +2 -2
  154. package/cdn-versioned/chunks/{chunk.PEXRRU32.js → chunk.HHXKNHXP.js} +2 -2
  155. package/cdn-versioned/chunks/{chunk.POMAZ7VY.js → chunk.INCCCJWQ.js} +2 -2
  156. package/cdn-versioned/chunks/{chunk.VIDMGLW5.js → chunk.IUSUOWDV.js} +2 -2
  157. package/cdn-versioned/chunks/{chunk.XPFDHPJ3.js → chunk.J244UHOW.js} +2 -2
  158. package/cdn-versioned/chunks/{chunk.JUT4IROE.js → chunk.JAG4C4XW.js} +2 -2
  159. package/cdn-versioned/chunks/{chunk.5L7KTIHB.js → chunk.KGSRXYI5.js} +2 -2
  160. package/cdn-versioned/chunks/{chunk.RUG72AZP.js → chunk.KUDQOQRZ.js} +2 -2
  161. package/cdn-versioned/chunks/chunk.L6FMD2VX.js +2 -0
  162. package/cdn-versioned/chunks/{chunk.3KTNKXIV.js → chunk.L6NAXN2W.js} +2 -2
  163. package/cdn-versioned/chunks/{chunk.N3CMOOUW.js → chunk.LO7UWJFY.js} +3 -3
  164. package/cdn-versioned/chunks/{chunk.YC7FRHYD.js → chunk.LU3L3Q4Y.js} +2 -2
  165. package/cdn-versioned/chunks/chunk.LZRL7OLU.js +1 -1
  166. package/cdn-versioned/chunks/{chunk.FBFD65FU.js → chunk.MGRPWOOH.js} +2 -2
  167. package/cdn-versioned/chunks/{chunk.A2RFBXER.js → chunk.MWNEBW6V.js} +2 -2
  168. package/cdn-versioned/chunks/chunk.NFQGEN2R.js +26 -0
  169. package/cdn-versioned/chunks/{chunk.UL35LBVP.js → chunk.OB7D5JMR.js} +2 -2
  170. package/cdn-versioned/chunks/{chunk.CUBUWRQU.js → chunk.PG6X7SCB.js} +3 -3
  171. package/cdn-versioned/chunks/{chunk.XQREDRD4.js → chunk.POHYUACO.js} +3 -3
  172. package/cdn-versioned/chunks/{chunk.LTJNSTIW.js → chunk.QK2NFNML.js} +2 -2
  173. package/cdn-versioned/chunks/{chunk.ABSE3MII.js → chunk.QOKK4J6G.js} +2 -2
  174. package/cdn-versioned/chunks/chunk.RN6RW6UG.js +2 -0
  175. package/cdn-versioned/chunks/{chunk.BPLEXJRH.js → chunk.ROZ24VKI.js} +2 -2
  176. package/cdn-versioned/chunks/{chunk.YACICJIY.js → chunk.RP5D7SRC.js} +2 -2
  177. package/cdn-versioned/chunks/chunk.RUCLL7W4.js +2 -0
  178. package/cdn-versioned/chunks/{chunk.CL5BBT4T.js → chunk.S72OZ2OU.js} +2 -2
  179. package/cdn-versioned/chunks/{chunk.M6FP3NOQ.js → chunk.SML34CKF.js} +2 -2
  180. package/{cdn/chunks/chunk.5QCOQ2AT.js → cdn-versioned/chunks/chunk.SMSYH5DO.js} +2 -2
  181. package/cdn-versioned/chunks/{chunk.N3K4PTXW.js → chunk.SOENXSC4.js} +2 -2
  182. package/cdn-versioned/chunks/{chunk.NA57UOFE.js → chunk.STPVSFJJ.js} +2 -2
  183. package/cdn-versioned/chunks/{chunk.YPXOVI3T.js → chunk.T2U5X4GW.js} +2 -2
  184. package/cdn-versioned/chunks/{chunk.TDOHFUFY.js → chunk.TVJFUJWA.js} +2 -2
  185. package/cdn-versioned/chunks/{chunk.D7WXTEPH.js → chunk.UBY5IZNO.js} +2 -2
  186. package/cdn-versioned/chunks/{chunk.YU53EBA2.js → chunk.UO5VPZOW.js} +2 -2
  187. package/cdn-versioned/chunks/{chunk.EVHSBRO7.js → chunk.UPZJ3IHK.js} +2 -2
  188. package/cdn-versioned/chunks/chunk.V7RLKRRG.js +2 -0
  189. package/cdn-versioned/chunks/{chunk.RGSGVB2S.js → chunk.VAQU2IKZ.js} +3 -3
  190. package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
  191. package/cdn-versioned/chunks/{chunk.Z7YKR3W4.js → chunk.WP5MSHUX.js} +2 -2
  192. package/cdn-versioned/chunks/{chunk.BY3VUO6U.js → chunk.XHVNSYAC.js} +2 -2
  193. package/cdn-versioned/chunks/{chunk.UJ4C3NIO.js → chunk.XI2G4RVO.js} +2 -2
  194. package/cdn-versioned/chunks/{chunk.ADMB4AGP.js → chunk.XQEUN4FD.js} +3 -3
  195. package/cdn-versioned/chunks/{chunk.4N7OJHEJ.js → chunk.YI3VX7A3.js} +2 -2
  196. package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
  197. package/cdn-versioned/components/accordion/accordion.js +1 -1
  198. package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  199. package/cdn-versioned/components/accordion-group/accordion-group.js +1 -1
  200. package/cdn-versioned/components/animation/animation.d.ts +1 -1
  201. package/cdn-versioned/components/animation/animation.js +1 -1
  202. package/cdn-versioned/components/audio/audio.d.ts +1 -1
  203. package/cdn-versioned/components/audio/audio.js +1 -1
  204. package/cdn-versioned/components/badge/badge.d.ts +1 -1
  205. package/cdn-versioned/components/badge/badge.js +1 -1
  206. package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
  207. package/cdn-versioned/components/brandshape/brandshape.js +1 -1
  208. package/cdn-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
  209. package/cdn-versioned/components/breadcrumb/breadcrumb.js +1 -1
  210. package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  211. package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.js +1 -1
  212. package/cdn-versioned/components/button/button.d.ts +1 -1
  213. package/cdn-versioned/components/button/button.js +1 -1
  214. package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
  215. package/cdn-versioned/components/button-group/button-group.js +1 -1
  216. package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
  217. package/cdn-versioned/components/carousel/carousel.js +1 -1
  218. package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  219. package/cdn-versioned/components/carousel-item/carousel-item.js +1 -1
  220. package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
  221. package/cdn-versioned/components/checkbox/checkbox.js +1 -1
  222. package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  223. package/cdn-versioned/components/checkbox-group/checkbox-group.js +1 -1
  224. package/cdn-versioned/components/combobox/combobox.d.ts +1 -1
  225. package/cdn-versioned/components/combobox/combobox.js +1 -1
  226. package/cdn-versioned/components/datepicker/datepicker.d.ts +1 -1
  227. package/cdn-versioned/components/datepicker/datepicker.js +1 -1
  228. package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
  229. package/cdn-versioned/components/dialog/dialog.js +1 -1
  230. package/cdn-versioned/components/divider/divider.d.ts +1 -1
  231. package/cdn-versioned/components/divider/divider.js +1 -1
  232. package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
  233. package/cdn-versioned/components/drawer/drawer.js +1 -1
  234. package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
  235. package/cdn-versioned/components/dropdown/dropdown.js +1 -1
  236. package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
  237. package/cdn-versioned/components/expandable/expandable.js +1 -1
  238. package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
  239. package/cdn-versioned/components/flipcard/flipcard.js +1 -1
  240. package/cdn-versioned/components/header/header.d.ts +1 -1
  241. package/cdn-versioned/components/header/header.js +1 -1
  242. package/cdn-versioned/components/icon/icon.d.ts +1 -1
  243. package/cdn-versioned/components/icon/icon.js +1 -1
  244. package/cdn-versioned/components/include/include.d.ts +1 -1
  245. package/cdn-versioned/components/include/include.js +1 -1
  246. package/cdn-versioned/components/input/input.d.ts +1 -1
  247. package/cdn-versioned/components/input/input.js +1 -1
  248. package/cdn-versioned/components/link/link.d.ts +1 -1
  249. package/cdn-versioned/components/link/link.js +1 -1
  250. package/cdn-versioned/components/loader/loader.d.ts +1 -1
  251. package/cdn-versioned/components/loader/loader.js +1 -1
  252. package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
  253. package/cdn-versioned/components/map-marker/map-marker.js +1 -1
  254. package/cdn-versioned/components/menu/menu.d.ts +1 -1
  255. package/cdn-versioned/components/menu/menu.js +1 -1
  256. package/cdn-versioned/components/menu-item/menu-item.d.ts +1 -1
  257. package/cdn-versioned/components/menu-item/menu-item.js +1 -1
  258. package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  259. package/cdn-versioned/components/navigation-item/navigation-item.js +1 -1
  260. package/cdn-versioned/components/notification/notification.d.ts +1 -1
  261. package/cdn-versioned/components/notification/notification.js +1 -1
  262. package/cdn-versioned/components/optgroup/optgroup.d.ts +1 -1
  263. package/cdn-versioned/components/optgroup/optgroup.js +1 -1
  264. package/cdn-versioned/components/option/option.d.ts +1 -1
  265. package/cdn-versioned/components/option/option.js +1 -1
  266. package/cdn-versioned/components/popup/popup.d.ts +1 -1
  267. package/cdn-versioned/components/popup/popup.js +1 -1
  268. package/cdn-versioned/components/progress-bar/progress-bar.d.ts +1 -1
  269. package/cdn-versioned/components/progress-bar/progress-bar.js +1 -1
  270. package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
  271. package/cdn-versioned/components/quickfact/quickfact.js +1 -1
  272. package/cdn-versioned/components/radio/radio.d.ts +1 -1
  273. package/cdn-versioned/components/radio/radio.js +1 -1
  274. package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
  275. package/cdn-versioned/components/radio-button/radio-button.js +1 -1
  276. package/cdn-versioned/components/radio-group/radio-group.d.ts +1 -1
  277. package/cdn-versioned/components/radio-group/radio-group.js +1 -1
  278. package/cdn-versioned/components/range/range.d.ts +1 -1
  279. package/cdn-versioned/components/range/range.js +1 -1
  280. package/cdn-versioned/components/range-tick/range-tick.d.ts +1 -1
  281. package/cdn-versioned/components/range-tick/range-tick.js +1 -1
  282. package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
  283. package/cdn-versioned/components/scrollable/scrollable.js +1 -1
  284. package/cdn-versioned/components/select/select.d.ts +1 -1
  285. package/cdn-versioned/components/select/select.js +1 -1
  286. package/cdn-versioned/components/skeleton/skeleton.d.ts +1 -1
  287. package/cdn-versioned/components/skeleton/skeleton.js +1 -1
  288. package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
  289. package/cdn-versioned/components/spinner/spinner.js +1 -1
  290. package/cdn-versioned/components/step/step.d.ts +1 -1
  291. package/cdn-versioned/components/step/step.js +1 -1
  292. package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
  293. package/cdn-versioned/components/step-group/step-group.js +1 -1
  294. package/cdn-versioned/components/switch/switch.d.ts +1 -1
  295. package/cdn-versioned/components/switch/switch.js +1 -1
  296. package/cdn-versioned/components/tab/tab.d.ts +1 -1
  297. package/cdn-versioned/components/tab/tab.js +1 -1
  298. package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
  299. package/cdn-versioned/components/tab-group/tab-group.js +1 -1
  300. package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  301. package/cdn-versioned/components/tab-panel/tab-panel.js +1 -1
  302. package/cdn-versioned/components/tag/tag.d.ts +1 -1
  303. package/cdn-versioned/components/tag/tag.js +1 -1
  304. package/cdn-versioned/components/teaser/teaser.js +1 -1
  305. package/cdn-versioned/components/teaser-media/teaser-media.js +1 -1
  306. package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
  307. package/cdn-versioned/components/textarea/textarea.js +1 -1
  308. package/cdn-versioned/components/theme-listener/theme-listener.d.ts +1 -1
  309. package/cdn-versioned/components/theme-listener/theme-listener.js +1 -1
  310. package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
  311. package/cdn-versioned/components/tooltip/tooltip.js +1 -1
  312. package/cdn-versioned/components/video/video.d.ts +1 -1
  313. package/cdn-versioned/components/video/video.js +1 -1
  314. package/cdn-versioned/custom-elements.json +284 -284
  315. package/cdn-versioned/internal/form.js +2 -2
  316. package/cdn-versioned/solid-components.bundle.js +90 -90
  317. package/cdn-versioned/solid-components.css +6 -6
  318. package/cdn-versioned/solid-components.iife.js +90 -90
  319. package/cdn-versioned/solid-components.js +1 -1
  320. package/cdn-versioned/utilities/autocomplete-config.js +1 -1
  321. package/cdn-versioned/vscode.html-custom-data.json +114 -126
  322. package/cdn-versioned/web-types.json +194 -194
  323. package/dist/chunks/{chunk.DDMRWVE4.js → chunk.2NNMNH53.js} +2 -2
  324. package/dist/chunks/{chunk.NBNOILK7.js → chunk.4JEQUUUR.js} +2 -2
  325. package/dist/chunks/{chunk.YFXWTHEW.js → chunk.567ETKG6.js} +2 -2
  326. package/dist/chunks/{chunk.G6Z2IN2D.js → chunk.6HFU74YX.js} +2 -2
  327. package/dist/chunks/{chunk.OUGWTLDL.js → chunk.74U5JKZE.js} +2 -2
  328. package/dist/chunks/{chunk.TR5U7MUJ.js → chunk.755PXQIA.js} +2 -2
  329. package/dist/chunks/{chunk.YJYY7JEG.js → chunk.7H7XOBSC.js} +2 -2
  330. package/dist/chunks/{chunk.3U4ODP5H.js → chunk.7LODAGP5.js} +3 -3
  331. package/dist/chunks/{chunk.75J464XK.js → chunk.7NV3LXUY.js} +3 -3
  332. package/dist/chunks/{chunk.WRK2VCOH.js → chunk.BJJ6TMNB.js} +2 -2
  333. package/dist/chunks/{chunk.QMXA2XCM.js → chunk.BRDVS66Q.js} +2 -2
  334. package/dist/chunks/{chunk.MMRX4B53.js → chunk.BSTRQDQV.js} +2 -2
  335. package/dist/chunks/chunk.DXRLWSKI.js +93 -0
  336. package/dist/chunks/{chunk.G5DZY2K5.js → chunk.EEYDDF6R.js} +2 -2
  337. package/dist/chunks/{chunk.5TPME33R.js → chunk.GGCHJ3RE.js} +3 -3
  338. package/dist/chunks/{chunk.OETQNBYV.js → chunk.GIDEWQA5.js} +3 -3
  339. package/dist/chunks/{chunk.74JKAT24.js → chunk.H2JFSSRW.js} +2 -2
  340. package/dist/chunks/{chunk.MWMW4LQ7.js → chunk.HC47LTMU.js} +2 -2
  341. package/dist/chunks/{chunk.K6IPM5Q5.js → chunk.HSAIWSZZ.js} +2 -2
  342. package/dist/chunks/{chunk.SIVFHA2I.js → chunk.HZWAYH5R.js} +2 -2
  343. package/dist/chunks/{chunk.42K4MVOD.js → chunk.IDKDUGLS.js} +2 -2
  344. package/dist/chunks/{chunk.YRIXSKF5.js → chunk.JFNUNYMU.js} +3 -3
  345. package/dist/chunks/{chunk.GJOMQWPN.js → chunk.JLR5AD3J.js} +2 -2
  346. package/dist/chunks/{chunk.CYVE4TO3.js → chunk.JTXYWF7N.js} +2 -2
  347. package/dist/chunks/{chunk.FVPGQXV3.js → chunk.JZDVCSY3.js} +3 -3
  348. package/dist/chunks/{chunk.STQUNYVC.js → chunk.KQUNEIAM.js} +2 -2
  349. package/dist/chunks/{chunk.5MXUWGL2.js → chunk.L34P53YK.js} +2 -2
  350. package/dist/chunks/{chunk.U4OTAY2R.js → chunk.LFYHG4SF.js} +3 -3
  351. package/dist/chunks/{chunk.FHECJ4KS.js → chunk.LGHUPAQ5.js} +2 -2
  352. package/dist/chunks/{chunk.CHF4IZEL.js → chunk.LMUB7ILW.js} +3 -3
  353. package/dist/chunks/{chunk.4CQ4DTTQ.js → chunk.NBC65PZK.js} +3 -3
  354. package/dist/chunks/{chunk.JB7H7F7N.js → chunk.NL7DBE47.js} +2 -2
  355. package/dist/chunks/{chunk.K3HEQZBB.js → chunk.O23ZIMK6.js} +2 -2
  356. package/dist/chunks/{chunk.XVN7ZSQA.js → chunk.OLB3TM54.js} +2 -2
  357. package/dist/chunks/{chunk.MNI2QC67.js → chunk.OMFSAQHZ.js} +2 -2
  358. package/dist/chunks/{chunk.J2JPS7BJ.js → chunk.OMNG75M4.js} +3 -3
  359. package/dist/chunks/{chunk.QNWZIY7B.js → chunk.OT5PVYBU.js} +3 -3
  360. package/dist/chunks/{chunk.BU76AGLW.js → chunk.P4OTU6XQ.js} +2 -2
  361. package/dist/chunks/{chunk.YMGWBCQA.js → chunk.Q37EUQ5P.js} +3 -3
  362. package/dist/chunks/{chunk.EAJ3CM6N.js → chunk.QGERTGJH.js} +1 -1
  363. package/dist/chunks/{chunk.NWCIUSAD.js → chunk.QOXHGCGA.js} +2 -2
  364. package/dist/chunks/{chunk.V6WWXX6H.js → chunk.QUTK63KE.js} +2 -2
  365. package/dist/chunks/{chunk.5TPOHM3K.js → chunk.RGOLCGJ4.js} +2 -2
  366. package/dist/chunks/{chunk.LRGKVW2P.js → chunk.S4GPAGEW.js} +3 -3
  367. package/dist/chunks/{chunk.BOJIAZE6.js → chunk.SBZZCZ4Z.js} +2 -2
  368. package/dist/chunks/{chunk.J4XAFRWY.js → chunk.SFM4G2VH.js} +2 -2
  369. package/dist/chunks/{chunk.MSQ4I3NU.js → chunk.TEAEYNBH.js} +2 -2
  370. package/dist/chunks/{chunk.MUSLWQLJ.js → chunk.TEQY4PKN.js} +2 -2
  371. package/dist/chunks/{chunk.MTCUCREG.js → chunk.TEUEZN5R.js} +2 -2
  372. package/dist/chunks/{chunk.NDFQVIA4.js → chunk.TN5OFWBT.js} +2 -2
  373. package/dist/chunks/{chunk.KTV4POBO.js → chunk.TRAI2A3M.js} +3 -3
  374. package/dist/chunks/{chunk.MRP3RFZG.js → chunk.UDRAHWK7.js} +2 -2
  375. package/dist/chunks/{chunk.WDWU2E2C.js → chunk.UG2CM4HI.js} +2 -2
  376. package/dist/chunks/{chunk.C2TAJMPX.js → chunk.UO53RPFR.js} +2 -2
  377. package/dist/chunks/{chunk.2MM5TDIH.js → chunk.UUSB6IKX.js} +2 -2
  378. package/dist/chunks/{chunk.66VWQMF7.js → chunk.VW2V4NLW.js} +3 -3
  379. package/dist/chunks/{chunk.ZB7VNV65.js → chunk.W3RJHGIR.js} +4 -4
  380. package/dist/chunks/{chunk.RY2XDU2W.js → chunk.WICZ7UUY.js} +3 -3
  381. package/dist/chunks/{chunk.SGXOEOMX.js → chunk.WPDX56YA.js} +2 -2
  382. package/dist/chunks/{chunk.THZZ4JA4.js → chunk.ZA4YNDFN.js} +2 -2
  383. package/dist/chunks/{chunk.K7U6QXYC.js → chunk.ZAMS4KU3.js} +2 -2
  384. package/dist/chunks/{chunk.HD76RMAH.js → chunk.ZU6ELXPY.js} +2 -2
  385. package/dist/components/accordion/accordion.js +3 -3
  386. package/dist/components/accordion-group/accordion-group.js +4 -4
  387. package/dist/components/animation/animation.js +2 -2
  388. package/dist/components/audio/audio.js +6 -6
  389. package/dist/components/badge/badge.js +2 -2
  390. package/dist/components/brandshape/brandshape.js +2 -2
  391. package/dist/components/breadcrumb/breadcrumb.js +5 -5
  392. package/dist/components/breadcrumb-item/breadcrumb-item.js +3 -3
  393. package/dist/components/button/button.js +3 -3
  394. package/dist/components/button-group/button-group.js +2 -2
  395. package/dist/components/carousel/carousel.js +4 -4
  396. package/dist/components/carousel-item/carousel-item.js +2 -2
  397. package/dist/components/checkbox/checkbox.js +3 -3
  398. package/dist/components/checkbox-group/checkbox-group.js +3 -3
  399. package/dist/components/combobox/combobox.js +5 -5
  400. package/dist/components/datepicker/datepicker.js +5 -5
  401. package/dist/components/dialog/dialog.js +5 -5
  402. package/dist/components/divider/divider.js +2 -2
  403. package/dist/components/drawer/drawer.js +5 -5
  404. package/dist/components/dropdown/dropdown.js +3 -3
  405. package/dist/components/expandable/expandable.js +3 -3
  406. package/dist/components/flipcard/flipcard.js +5 -5
  407. package/dist/components/header/header.js +2 -2
  408. package/dist/components/icon/icon.js +2 -2
  409. package/dist/components/include/include.js +2 -2
  410. package/dist/components/input/input.js +3 -3
  411. package/dist/components/link/link.js +2 -2
  412. package/dist/components/loader/loader.js +2 -2
  413. package/dist/components/map-marker/map-marker.js +2 -2
  414. package/dist/components/menu/menu.js +2 -2
  415. package/dist/components/menu-item/menu-item.js +2 -2
  416. package/dist/components/navigation-item/navigation-item.js +4 -4
  417. package/dist/components/notification/notification.js +5 -5
  418. package/dist/components/optgroup/optgroup.js +3 -3
  419. package/dist/components/option/option.js +3 -3
  420. package/dist/components/popup/popup.js +2 -2
  421. package/dist/components/progress-bar/progress-bar.js +2 -2
  422. package/dist/components/quickfact/quickfact.js +4 -4
  423. package/dist/components/radio/radio.js +2 -2
  424. package/dist/components/radio-button/radio-button.js +2 -2
  425. package/dist/components/radio-group/radio-group.js +4 -4
  426. package/dist/components/range/range.js +5 -5
  427. package/dist/components/range-tick/range-tick.js +2 -2
  428. package/dist/components/scrollable/scrollable.js +3 -3
  429. package/dist/components/select/select.js +5 -5
  430. package/dist/components/skeleton/skeleton.js +2 -2
  431. package/dist/components/spinner/spinner.js +2 -2
  432. package/dist/components/step/step.js +3 -3
  433. package/dist/components/step-group/step-group.js +2 -2
  434. package/dist/components/switch/switch.js +2 -2
  435. package/dist/components/tab/tab.js +2 -2
  436. package/dist/components/tab-group/tab-group.js +3 -3
  437. package/dist/components/tab-panel/tab-panel.js +2 -2
  438. package/dist/components/tag/tag.js +3 -3
  439. package/dist/components/teaser/teaser.js +2 -2
  440. package/dist/components/teaser-media/teaser-media.js +2 -2
  441. package/dist/components/textarea/textarea.js +3 -3
  442. package/dist/components/theme-listener/theme-listener.js +2 -2
  443. package/dist/components/tooltip/tooltip.js +4 -4
  444. package/dist/components/video/video.js +3 -3
  445. package/dist/custom-elements.json +212 -212
  446. package/dist/solid-components.css +4 -4
  447. package/dist/solid-components.js +66 -66
  448. package/dist/utilities/autocomplete-config.js +3 -3
  449. package/dist/vscode.html-custom-data.json +27 -39
  450. package/dist/web-types.json +74 -74
  451. package/dist-versioned/chunks/{chunk.DDMRWVE4.js → chunk.2NNMNH53.js} +7 -7
  452. package/dist-versioned/chunks/{chunk.NBNOILK7.js → chunk.4JEQUUUR.js} +14 -14
  453. package/dist-versioned/chunks/{chunk.YFXWTHEW.js → chunk.567ETKG6.js} +5 -5
  454. package/dist-versioned/chunks/{chunk.G6Z2IN2D.js → chunk.6HFU74YX.js} +27 -27
  455. package/dist-versioned/chunks/{chunk.OUGWTLDL.js → chunk.74U5JKZE.js} +4 -4
  456. package/dist-versioned/chunks/{chunk.TR5U7MUJ.js → chunk.755PXQIA.js} +8 -8
  457. package/dist-versioned/chunks/{chunk.YJYY7JEG.js → chunk.7H7XOBSC.js} +4 -4
  458. package/dist-versioned/chunks/{chunk.3U4ODP5H.js → chunk.7LODAGP5.js} +5 -5
  459. package/dist-versioned/chunks/{chunk.75J464XK.js → chunk.7NV3LXUY.js} +6 -6
  460. package/dist-versioned/chunks/{chunk.WRK2VCOH.js → chunk.BJJ6TMNB.js} +7 -7
  461. package/dist-versioned/chunks/{chunk.QMXA2XCM.js → chunk.BRDVS66Q.js} +7 -7
  462. package/dist-versioned/chunks/{chunk.MMRX4B53.js → chunk.BSTRQDQV.js} +3 -3
  463. package/dist-versioned/chunks/chunk.C3WIBDGG.js +2 -2
  464. package/dist-versioned/chunks/chunk.DXRLWSKI.js +93 -0
  465. package/dist-versioned/chunks/{chunk.G5DZY2K5.js → chunk.EEYDDF6R.js} +3 -3
  466. package/dist-versioned/chunks/{chunk.5TPME33R.js → chunk.GGCHJ3RE.js} +7 -7
  467. package/dist-versioned/chunks/{chunk.OETQNBYV.js → chunk.GIDEWQA5.js} +8 -8
  468. package/dist-versioned/chunks/{chunk.74JKAT24.js → chunk.H2JFSSRW.js} +7 -7
  469. package/dist-versioned/chunks/{chunk.MWMW4LQ7.js → chunk.HC47LTMU.js} +4 -4
  470. package/dist-versioned/chunks/{chunk.K6IPM5Q5.js → chunk.HSAIWSZZ.js} +9 -9
  471. package/dist-versioned/chunks/{chunk.SIVFHA2I.js → chunk.HZWAYH5R.js} +4 -4
  472. package/dist-versioned/chunks/{chunk.42K4MVOD.js → chunk.IDKDUGLS.js} +3 -3
  473. package/dist-versioned/chunks/{chunk.YRIXSKF5.js → chunk.JFNUNYMU.js} +16 -16
  474. package/dist-versioned/chunks/{chunk.GJOMQWPN.js → chunk.JLR5AD3J.js} +7 -7
  475. package/dist-versioned/chunks/{chunk.CYVE4TO3.js → chunk.JTXYWF7N.js} +12 -12
  476. package/dist-versioned/chunks/{chunk.FVPGQXV3.js → chunk.JZDVCSY3.js} +5 -5
  477. package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
  478. package/dist-versioned/chunks/{chunk.STQUNYVC.js → chunk.KQUNEIAM.js} +6 -6
  479. package/dist-versioned/chunks/{chunk.5MXUWGL2.js → chunk.L34P53YK.js} +3 -3
  480. package/dist-versioned/chunks/{chunk.U4OTAY2R.js → chunk.LFYHG4SF.js} +6 -6
  481. package/dist-versioned/chunks/{chunk.FHECJ4KS.js → chunk.LGHUPAQ5.js} +4 -4
  482. package/dist-versioned/chunks/{chunk.CHF4IZEL.js → chunk.LMUB7ILW.js} +13 -13
  483. package/dist-versioned/chunks/{chunk.4CQ4DTTQ.js → chunk.NBC65PZK.js} +9 -9
  484. package/dist-versioned/chunks/{chunk.JB7H7F7N.js → chunk.NL7DBE47.js} +10 -10
  485. package/dist-versioned/chunks/{chunk.K3HEQZBB.js → chunk.O23ZIMK6.js} +12 -12
  486. package/dist-versioned/chunks/{chunk.XVN7ZSQA.js → chunk.OLB3TM54.js} +3 -3
  487. package/dist-versioned/chunks/{chunk.MNI2QC67.js → chunk.OMFSAQHZ.js} +13 -13
  488. package/dist-versioned/chunks/{chunk.J2JPS7BJ.js → chunk.OMNG75M4.js} +5 -5
  489. package/dist-versioned/chunks/{chunk.QNWZIY7B.js → chunk.OT5PVYBU.js} +14 -14
  490. package/dist-versioned/chunks/{chunk.BU76AGLW.js → chunk.P4OTU6XQ.js} +4 -4
  491. package/dist-versioned/chunks/{chunk.YMGWBCQA.js → chunk.Q37EUQ5P.js} +35 -35
  492. package/dist-versioned/chunks/{chunk.EAJ3CM6N.js → chunk.QGERTGJH.js} +5 -5
  493. package/dist-versioned/chunks/{chunk.NWCIUSAD.js → chunk.QOXHGCGA.js} +4 -4
  494. package/dist-versioned/chunks/{chunk.V6WWXX6H.js → chunk.QUTK63KE.js} +13 -13
  495. package/dist-versioned/chunks/{chunk.5TPOHM3K.js → chunk.RGOLCGJ4.js} +9 -9
  496. package/dist-versioned/chunks/{chunk.LRGKVW2P.js → chunk.S4GPAGEW.js} +7 -7
  497. package/dist-versioned/chunks/{chunk.BOJIAZE6.js → chunk.SBZZCZ4Z.js} +5 -5
  498. package/dist-versioned/chunks/{chunk.J4XAFRWY.js → chunk.SFM4G2VH.js} +3 -3
  499. package/dist-versioned/chunks/{chunk.MSQ4I3NU.js → chunk.TEAEYNBH.js} +3 -3
  500. package/dist-versioned/chunks/{chunk.MUSLWQLJ.js → chunk.TEQY4PKN.js} +8 -8
  501. package/dist-versioned/chunks/{chunk.MTCUCREG.js → chunk.TEUEZN5R.js} +8 -8
  502. package/dist-versioned/chunks/{chunk.NDFQVIA4.js → chunk.TN5OFWBT.js} +4 -4
  503. package/dist-versioned/chunks/{chunk.KTV4POBO.js → chunk.TRAI2A3M.js} +5 -5
  504. package/dist-versioned/chunks/{chunk.MRP3RFZG.js → chunk.UDRAHWK7.js} +15 -15
  505. package/dist-versioned/chunks/{chunk.WDWU2E2C.js → chunk.UG2CM4HI.js} +12 -12
  506. package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
  507. package/dist-versioned/chunks/{chunk.C2TAJMPX.js → chunk.UO53RPFR.js} +6 -6
  508. package/dist-versioned/chunks/{chunk.2MM5TDIH.js → chunk.UUSB6IKX.js} +25 -25
  509. package/dist-versioned/chunks/{chunk.66VWQMF7.js → chunk.VW2V4NLW.js} +5 -5
  510. package/dist-versioned/chunks/{chunk.ZB7VNV65.js → chunk.W3RJHGIR.js} +15 -15
  511. package/dist-versioned/chunks/{chunk.RY2XDU2W.js → chunk.WICZ7UUY.js} +6 -6
  512. package/dist-versioned/chunks/{chunk.SGXOEOMX.js → chunk.WPDX56YA.js} +8 -8
  513. package/dist-versioned/chunks/{chunk.THZZ4JA4.js → chunk.ZA4YNDFN.js} +9 -9
  514. package/dist-versioned/chunks/{chunk.K7U6QXYC.js → chunk.ZAMS4KU3.js} +7 -7
  515. package/dist-versioned/chunks/{chunk.HD76RMAH.js → chunk.ZU6ELXPY.js} +5 -5
  516. package/dist-versioned/components/accordion/accordion.d.ts +1 -1
  517. package/dist-versioned/components/accordion/accordion.js +3 -3
  518. package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  519. package/dist-versioned/components/accordion-group/accordion-group.js +4 -4
  520. package/dist-versioned/components/animation/animation.d.ts +1 -1
  521. package/dist-versioned/components/animation/animation.js +2 -2
  522. package/dist-versioned/components/audio/audio.d.ts +1 -1
  523. package/dist-versioned/components/audio/audio.js +6 -6
  524. package/dist-versioned/components/badge/badge.d.ts +1 -1
  525. package/dist-versioned/components/badge/badge.js +2 -2
  526. package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
  527. package/dist-versioned/components/brandshape/brandshape.js +2 -2
  528. package/dist-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
  529. package/dist-versioned/components/breadcrumb/breadcrumb.js +5 -5
  530. package/dist-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  531. package/dist-versioned/components/breadcrumb-item/breadcrumb-item.js +3 -3
  532. package/dist-versioned/components/button/button.d.ts +1 -1
  533. package/dist-versioned/components/button/button.js +3 -3
  534. package/dist-versioned/components/button-group/button-group.d.ts +1 -1
  535. package/dist-versioned/components/button-group/button-group.js +2 -2
  536. package/dist-versioned/components/carousel/carousel.d.ts +1 -1
  537. package/dist-versioned/components/carousel/carousel.js +4 -4
  538. package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  539. package/dist-versioned/components/carousel-item/carousel-item.js +2 -2
  540. package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
  541. package/dist-versioned/components/checkbox/checkbox.js +3 -3
  542. package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  543. package/dist-versioned/components/checkbox-group/checkbox-group.js +3 -3
  544. package/dist-versioned/components/combobox/combobox.d.ts +1 -1
  545. package/dist-versioned/components/combobox/combobox.js +5 -5
  546. package/dist-versioned/components/datepicker/datepicker.d.ts +1 -1
  547. package/dist-versioned/components/datepicker/datepicker.js +5 -5
  548. package/dist-versioned/components/dialog/dialog.d.ts +1 -1
  549. package/dist-versioned/components/dialog/dialog.js +5 -5
  550. package/dist-versioned/components/divider/divider.d.ts +1 -1
  551. package/dist-versioned/components/divider/divider.js +2 -2
  552. package/dist-versioned/components/drawer/drawer.d.ts +1 -1
  553. package/dist-versioned/components/drawer/drawer.js +5 -5
  554. package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
  555. package/dist-versioned/components/dropdown/dropdown.js +3 -3
  556. package/dist-versioned/components/expandable/expandable.d.ts +1 -1
  557. package/dist-versioned/components/expandable/expandable.js +3 -3
  558. package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
  559. package/dist-versioned/components/flipcard/flipcard.js +5 -5
  560. package/dist-versioned/components/header/header.d.ts +1 -1
  561. package/dist-versioned/components/header/header.js +2 -2
  562. package/dist-versioned/components/icon/icon.d.ts +1 -1
  563. package/dist-versioned/components/icon/icon.js +2 -2
  564. package/dist-versioned/components/include/include.d.ts +1 -1
  565. package/dist-versioned/components/include/include.js +2 -2
  566. package/dist-versioned/components/input/input.d.ts +1 -1
  567. package/dist-versioned/components/input/input.js +3 -3
  568. package/dist-versioned/components/link/link.d.ts +1 -1
  569. package/dist-versioned/components/link/link.js +2 -2
  570. package/dist-versioned/components/loader/loader.d.ts +1 -1
  571. package/dist-versioned/components/loader/loader.js +2 -2
  572. package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
  573. package/dist-versioned/components/map-marker/map-marker.js +2 -2
  574. package/dist-versioned/components/menu/menu.d.ts +1 -1
  575. package/dist-versioned/components/menu/menu.js +2 -2
  576. package/dist-versioned/components/menu-item/menu-item.d.ts +1 -1
  577. package/dist-versioned/components/menu-item/menu-item.js +2 -2
  578. package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  579. package/dist-versioned/components/navigation-item/navigation-item.js +4 -4
  580. package/dist-versioned/components/notification/notification.d.ts +1 -1
  581. package/dist-versioned/components/notification/notification.js +5 -5
  582. package/dist-versioned/components/optgroup/optgroup.d.ts +1 -1
  583. package/dist-versioned/components/optgroup/optgroup.js +3 -3
  584. package/dist-versioned/components/option/option.d.ts +1 -1
  585. package/dist-versioned/components/option/option.js +3 -3
  586. package/dist-versioned/components/popup/popup.d.ts +1 -1
  587. package/dist-versioned/components/popup/popup.js +2 -2
  588. package/dist-versioned/components/progress-bar/progress-bar.d.ts +1 -1
  589. package/dist-versioned/components/progress-bar/progress-bar.js +2 -2
  590. package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
  591. package/dist-versioned/components/quickfact/quickfact.js +4 -4
  592. package/dist-versioned/components/radio/radio.d.ts +1 -1
  593. package/dist-versioned/components/radio/radio.js +2 -2
  594. package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
  595. package/dist-versioned/components/radio-button/radio-button.js +2 -2
  596. package/dist-versioned/components/radio-group/radio-group.d.ts +1 -1
  597. package/dist-versioned/components/radio-group/radio-group.js +4 -4
  598. package/dist-versioned/components/range/range.d.ts +1 -1
  599. package/dist-versioned/components/range/range.js +5 -5
  600. package/dist-versioned/components/range-tick/range-tick.d.ts +1 -1
  601. package/dist-versioned/components/range-tick/range-tick.js +2 -2
  602. package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
  603. package/dist-versioned/components/scrollable/scrollable.js +3 -3
  604. package/dist-versioned/components/select/select.d.ts +1 -1
  605. package/dist-versioned/components/select/select.js +5 -5
  606. package/dist-versioned/components/skeleton/skeleton.d.ts +1 -1
  607. package/dist-versioned/components/skeleton/skeleton.js +2 -2
  608. package/dist-versioned/components/spinner/spinner.d.ts +1 -1
  609. package/dist-versioned/components/spinner/spinner.js +2 -2
  610. package/dist-versioned/components/step/step.d.ts +1 -1
  611. package/dist-versioned/components/step/step.js +3 -3
  612. package/dist-versioned/components/step-group/step-group.d.ts +1 -1
  613. package/dist-versioned/components/step-group/step-group.js +2 -2
  614. package/dist-versioned/components/switch/switch.d.ts +1 -1
  615. package/dist-versioned/components/switch/switch.js +2 -2
  616. package/dist-versioned/components/tab/tab.d.ts +1 -1
  617. package/dist-versioned/components/tab/tab.js +2 -2
  618. package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
  619. package/dist-versioned/components/tab-group/tab-group.js +3 -3
  620. package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  621. package/dist-versioned/components/tab-panel/tab-panel.js +2 -2
  622. package/dist-versioned/components/tag/tag.d.ts +1 -1
  623. package/dist-versioned/components/tag/tag.js +3 -3
  624. package/dist-versioned/components/teaser/teaser.js +2 -2
  625. package/dist-versioned/components/teaser-media/teaser-media.js +2 -2
  626. package/dist-versioned/components/textarea/textarea.d.ts +1 -1
  627. package/dist-versioned/components/textarea/textarea.js +3 -3
  628. package/dist-versioned/components/theme-listener/theme-listener.d.ts +1 -1
  629. package/dist-versioned/components/theme-listener/theme-listener.js +2 -2
  630. package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
  631. package/dist-versioned/components/tooltip/tooltip.js +4 -4
  632. package/dist-versioned/components/video/video.d.ts +1 -1
  633. package/dist-versioned/components/video/video.js +3 -3
  634. package/dist-versioned/custom-elements.json +284 -284
  635. package/dist-versioned/internal/form.js +2 -2
  636. package/dist-versioned/solid-components.css +6 -6
  637. package/dist-versioned/solid-components.js +66 -66
  638. package/dist-versioned/utilities/autocomplete-config.js +3 -3
  639. package/dist-versioned/vscode.html-custom-data.json +114 -126
  640. package/dist-versioned/web-types.json +194 -194
  641. package/package.json +24 -24
  642. package/cdn/chunks/chunk.3CYHYGPU.js +0 -2
  643. package/cdn/chunks/chunk.7OMDAZQS.js +0 -2
  644. package/cdn/chunks/chunk.FSBU5AFV.js +0 -2
  645. package/cdn/chunks/chunk.HFGSJJTE.js +0 -2
  646. package/cdn/chunks/chunk.KJX5AGEN.js +0 -2
  647. package/cdn/chunks/chunk.VNLYLPEE.js +0 -2
  648. package/cdn/chunks/chunk.ZVNQOVT6.js +0 -26
  649. package/cdn-versioned/chunks/chunk.3CYHYGPU.js +0 -2
  650. package/cdn-versioned/chunks/chunk.5QCOQ2AT.js +0 -2
  651. package/cdn-versioned/chunks/chunk.7OMDAZQS.js +0 -2
  652. package/cdn-versioned/chunks/chunk.BOENTVN6.js +0 -2
  653. package/cdn-versioned/chunks/chunk.FSBU5AFV.js +0 -2
  654. package/cdn-versioned/chunks/chunk.HFGSJJTE.js +0 -2
  655. package/cdn-versioned/chunks/chunk.KJX5AGEN.js +0 -2
  656. package/cdn-versioned/chunks/chunk.SQLZCJI5.js +0 -12
  657. package/cdn-versioned/chunks/chunk.VNLYLPEE.js +0 -2
  658. package/cdn-versioned/chunks/chunk.ZVNQOVT6.js +0 -26
  659. package/dist/chunks/chunk.ORCTN6TB.js +0 -93
  660. package/dist-versioned/chunks/chunk.ORCTN6TB.js +0 -93
  661. /package/cdn/chunks/{chunk.UFTAQNZB.js → chunk.4ZZFYCXX.js} +0 -0
  662. /package/cdn-versioned/chunks/{chunk.UFTAQNZB.js → chunk.4ZZFYCXX.js} +0 -0
@@ -1,2 +1,2 @@
1
- import{a as c,h as e}from"./chunk.ZVNQOVT6.js";import{b as l,e as o}from"./chunk.OBAEIKIV.js";import{e as i}from"./chunk.6EV4YU6C.js";var t=class extends e{static isCarouselItem(s){return s instanceof Element&&s.getAttribute("aria-roledescription")==="slide"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","group")}render(){return o`<slot></slot>`}};t.styles=[...e.styles,l`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- :host{aspect-ratio:var(--aspect-ratio);scroll-snap-align:start;scroll-snap-stop:always;display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center}::slotted(img){height:100%;width:100%;-o-object-fit:cover;object-fit:cover}`],t=i([c("sd-6-28-1-carousel-item")],t);export{t as a};
1
+ import{a as c,h as e}from"./chunk.NFQGEN2R.js";import{b as l,e as o}from"./chunk.OBAEIKIV.js";import{e as i}from"./chunk.6EV4YU6C.js";var t=class extends e{static isCarouselItem(s){return s instanceof Element&&s.getAttribute("aria-roledescription")==="slide"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","group")}render(){return o`<slot></slot>`}};t.styles=[...e.styles,l`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ :host{aspect-ratio:var(--aspect-ratio);scroll-snap-align:start;scroll-snap-stop:always;display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center}::slotted(img){height:100%;width:100%;-o-object-fit:cover;object-fit:cover}`],t=i([c("sd-6-28-2-carousel-item")],t);export{t 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.ZVNQOVT6.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-6-28-1-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-6-28-1-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-6-28-1-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-6-28-1-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;
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-6-28-1-range")],l);export{l as a};
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.4ZZFYCXX.js";import{a as C,b as h,d as f,e as I,h as T}from"./chunk.NFQGEN2R.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-6-28-2-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-6-28-2-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-6-28-2-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-6-28-2-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
+ [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-6-28-2-range")],l);export{l as a};
@@ -1,2 +1,2 @@
1
- import{a as i}from"./chunk.UFTAQNZB.js";import{a,b as r,h as s}from"./chunk.ZVNQOVT6.js";import{b as n,e as d}from"./chunk.OBAEIKIV.js";import{e as t}from"./chunk.6EV4YU6C.js";var e=class extends s{constructor(){super(...arguments);this.size="lg";this.variant="blue";this.inverted=!1}render(){return d`<span part="base" aria-labelledby="content" class="${i("inline-flex items-center justify-center gap-x-[1px] text-center font-bold whitespace-nowrap border rounded-full select-none cursor-[inherit]",{blue:this.inverted?"sd-6-28-1-badge--blue--inverted-color-text sd-6-28-1-badge--blue--inverted-color-background sd-6-28-1-badge--inverted-color-border":"text-white sd-6-28-1-badge--blue-color-background border-white",green:this.inverted?"sd-6-28-1-badge--green-color--inverted-text sd-6-28-1-badge--green-color--inverted-background sd-6-28-1-badge--inverted-color-border":"text-white sd-6-28-1-badge--green-color-background border-white",red:this.inverted?"sd-6-28-1-badge--red--inverted-text sd-6-28-1-badge--red--inverted-background sd-6-28-1-badge--inverted-color-border":"text-white sd-6-28-1-badge--red-color-background border-white"}[this.variant])}"><span id="content" part="content" class="${i(this.size==="sm"&&"sr-only")}"><slot></slot></span></span>`}};e.styles=[...s.styles,n`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- :host{display:inline-flex;align-items:center;justify-content:center}:host([size=md]){height:var(--sd-spacing-4);min-width:var(--sd-spacing-4);font-size:.625rem}:host([size=lg]){height:calc(var(--sd-spacing-1) * 5);min-width:calc(var(--sd-spacing-1) * 5);font-size:.75rem}:host([size=sm])::part(base){height:var(--sd-spacing-2);min-width:var(--sd-spacing-2)}:host([size=md])::part(base){padding-inline:var(--sd-spacing-1)}:host([size=lg])::part(base){padding-left:.313rem;padding-right:.313rem}`],t([r({type:String,reflect:!0})],e.prototype,"size",2),t([r({type:String,reflect:!0})],e.prototype,"variant",2),t([r({type:Boolean,reflect:!0})],e.prototype,"inverted",2),e=t([a("sd-6-28-1-badge")],e);export{e as a};
1
+ import{a as i}from"./chunk.4ZZFYCXX.js";import{a,b as r,h as s}from"./chunk.NFQGEN2R.js";import{b as n,e as d}from"./chunk.OBAEIKIV.js";import{e as t}from"./chunk.6EV4YU6C.js";var e=class extends s{constructor(){super(...arguments);this.size="lg";this.variant="blue";this.inverted=!1}render(){return d`<span part="base" aria-labelledby="content" class="${i("inline-flex items-center justify-center gap-x-[1px] text-center font-bold whitespace-nowrap border rounded-full select-none cursor-[inherit]",{blue:this.inverted?"sd-6-28-2-badge--blue--inverted-color-text sd-6-28-2-badge--blue--inverted-color-background sd-6-28-2-badge--inverted-color-border":"text-white sd-6-28-2-badge--blue-color-background border-white",green:this.inverted?"sd-6-28-2-badge--green-color--inverted-text sd-6-28-2-badge--green-color--inverted-background sd-6-28-2-badge--inverted-color-border":"text-white sd-6-28-2-badge--green-color-background border-white",red:this.inverted?"sd-6-28-2-badge--red--inverted-text sd-6-28-2-badge--red--inverted-background sd-6-28-2-badge--inverted-color-border":"text-white sd-6-28-2-badge--red-color-background border-white"}[this.variant])}"><span id="content" part="content" class="${i(this.size==="sm"&&"sr-only")}"><slot></slot></span></span>`}};e.styles=[...s.styles,n`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ :host{display:inline-flex;align-items:center;justify-content:center}:host([size=md]){height:var(--sd-spacing-4);min-width:var(--sd-spacing-4);font-size:.625rem}:host([size=lg]){height:calc(var(--sd-spacing-1) * 5);min-width:calc(var(--sd-spacing-1) * 5);font-size:.75rem}:host([size=sm])::part(base){height:var(--sd-spacing-2);min-width:var(--sd-spacing-2)}:host([size=md])::part(base){padding-inline:var(--sd-spacing-1)}:host([size=lg])::part(base){padding-left:.313rem;padding-right:.313rem}`],t([r({type:String,reflect:!0})],e.prototype,"size",2),t([r({type:String,reflect:!0})],e.prototype,"variant",2),t([r({type:Boolean,reflect:!0})],e.prototype,"inverted",2),e=t([a("sd-6-28-2-badge")],e);export{e as a};
@@ -0,0 +1,2 @@
1
+ import{a as E}from"./chunk.L6NAXN2W.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.NFQGEN2R.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-6-28-2-radio, sd-6-28-2-radio-button")];return t.length===0&&console.warn("No radios found in the radio group."),t}handleRadioClick(t){let e=t.target.closest("sd-6-28-2-radio, sd-6-28-2-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-6-28-2-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-6-28-2-button-group");i&&(i.disableRole=!0)}}syncRadios(){if(customElements.get("sd-6-28-2-radio")&&customElements.get("sd-6-28-2-radio-button")){this.syncRadioElements();return}customElements.get("sd-6-28-2-radio")?this.syncRadioElements():customElements.whenDefined("sd-6-28-2-radio").then(()=>this.syncRadios()),customElements.get("sd-6-28-2-radio-button")?this.syncRadioElements():customElements.whenDefined("sd-6-28-2-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-6-28-2-button-group class="border border-primary sd-6-28-2-radio-button-group-border-radius sd-6-28-2-radio-button-group-border-width sd-6-28-2-radio-button-group-padding" part="button-group" exportparts="base:button-group__base" role="presentation">${a}</sd-6-28-2-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-6-28-2-icon part="invalid-icon" class="${u("text-error")}" library="_internal" name="risk"></sd-6-28-2-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-6-28-2-radio){margin-bottom:var(--sd-spacing-2);display:flex}:host([orientation=vertical]) ::slotted(sd-6-28-2-radio:last-of-type){margin-bottom:0}:host([orientation=horizontal]) ::slotted(sd-6-28-2-radio){margin-right:var(--sd-spacing-6)}:host([orientation=horizontal]) ::slotted(sd-6-28-2-radio:last-of-type){margin-right:0}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-6-28-2-radio){margin-right:var(--sd-spacing-4)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-6-28-2-radio:last-of-type){margin-right:0}:host([required]) #label::after{content:' *'}:host:has(sd-6-28-2-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-6-28-2-radio-group")],s);export{s as a};
@@ -1,2 +1,2 @@
1
- import{a as r}from"./chunk.UFTAQNZB.js";import{a as l}from"./chunk.NYKJXI3Q.js";import{a as d,b as s,c as i,h as o}from"./chunk.ZVNQOVT6.js";import{b as a,e as c}from"./chunk.OBAEIKIV.js";import{e as t}from"./chunk.6EV4YU6C.js";var e=class extends o{constructor(){super(...arguments);this.checked=!1;this.hasFocus=!1;this.size="lg";this.disabled=!1;this.visuallyDisabled=!1;this.invalid=!1}connectedCallback(){super.connectedCallback(),this.handleBlur=this.handleBlur.bind(this),this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.setInitialAttributes(),this.addEventListeners()}disconnectedCallback(){this.removeEventListeners()}addEventListeners(){this.addEventListener("blur",this.handleBlur),this.addEventListener("click",this.handleClick),this.addEventListener("focus",this.handleFocus)}removeEventListeners(){this.removeEventListener("blur",this.handleBlur),this.removeEventListener("click",this.handleClick),this.removeEventListener("focus",this.handleFocus)}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleClick(){!this.disabled&&!this.visuallyDisabled&&(this.checked=!0)}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}setInitialAttributes(){this.setAttribute("role","radio"),this.setAttribute("tabindex","-1"),this.setAttribute("aria-disabled",this.disabled||this.visuallyDisabled?"true":"false")}handleCheckedChange(){this.setAttribute("aria-checked",this.checked?"true":"false"),this.setAttribute("tabindex",this.checked?"0":"-1")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}render(){return c`<span part="base" class="${r("sd-6-28-1-radio group flex items-start text-base leading-normal text-black cursor-pointer",(this.disabled||this.visuallyDisabled)&&"hover:cursor-not-allowed",{sm:"small-size text-sm",md:"text-base",lg:"text-base"}[this.size])}"><span part="${`${this.checked?"control--checked":"control--unchecked"}`}" class="${r("flex-initial shrink-0 relative inline-flex items-center justify-center border sd-6-28-1-radio-border-width rounded-full bg-white h-4 w-4 duration-fast ease-in-out",this.disabled||this.visuallyDisabled?"border-neutral-500":this.invalid?r("border-error hover:border-error-400 group-hover:border-error-400",this.checked?"sd-6-28-1-radio--checked--invalid--default-color-background":"sd-6-28-1-radio--default--invalid-color-background"):this.checked?"sd-6-28-1-radio--checked--default-color-background hover:sd-6-28-1-radio--checked--hover-color-background group-hover:sd-6-28-1-radio--checked--hover-color-background border-accent hover:border-accent-550 group-hover:border-accent-550":"form-control-color-border hover:bg-neutral-200 group-hover:bg-neutral-200")}"><span part="checked" class="${r("rounded-full inline-flex text-white sd-6-28-1-radio__checked-height sd-6-28-1-radio__checked-width transition-[transform, colors] duration-medium ease-in-out",this.checked?"scale-100":"scale-0",this.disabled?"sd-6-28-1-radio--checked--disabled__icon-color-background":this.visuallyDisabled?"bg-white":this.invalid?"sd-6-28-1-radio--checked--invalid--default__icon-color-background hover:sd-6-28-1-radio--checked--invalid--hover__icon-color-background group-hover:sd-6-28-1-radio--checked--invalid--hover__icon-color-background":this.checked?"sd-6-28-1-radio--checked--default__icon-color-background hover:sd-6-28-1-radio--checked--hover__icon-color-background group-hover:sd-6-28-1-radio--checked--hover__icon-color-background":"bg-neutral-800")}"></span></span><slot part="label" class="${r("ml-2 select-none inline-block",this.disabled||this.visuallyDisabled?"text-neutral-500":"text-black")}"></slot></span>`}};e.styles=[...o.styles,a`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
2
- :host{display:block}:host(:focus-visible){--tw-outline-style:none;outline-style:none}[part=control--checked],[part=control--unchecked]{outline-color:transparent}:host(:focus-visible) [part=control--checked],:host(:focus-visible) [part=control--unchecked]{outline-width:1px;outline-style:var(--tw-outline-style);outline-width:2px;outline-offset:2px;outline-color:rgba(var(--sd-color-border-primary,var(--sd-color-primary)))}[part=control--checked],[part=control--unchecked]{margin-top:.23em}:host([size=sm]) [part=control--checked],:host([size=sm]) [part=control--unchecked]{margin-top:.15em}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}`],t([i()],e.prototype,"checked",2),t([i()],e.prototype,"hasFocus",2),t([s({type:String,reflect:!0})],e.prototype,"size",2),t([s({type:Boolean,reflect:!0})],e.prototype,"disabled",2),t([s({type:Boolean,reflect:!0,attribute:"visually-disabled"})],e.prototype,"visuallyDisabled",2),t([s()],e.prototype,"value",2),t([s({type:Boolean,reflect:!0})],e.prototype,"invalid",2),t([l("checked")],e.prototype,"handleCheckedChange",1),t([l(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],e.prototype,"handleDisabledChange",1),e=t([d("sd-6-28-1-radio")],e);export{e as a};
1
+ import{a as r}from"./chunk.4ZZFYCXX.js";import{a as l}from"./chunk.NYKJXI3Q.js";import{a as d,b as s,c as i,h as o}from"./chunk.NFQGEN2R.js";import{b as a,e as c}from"./chunk.OBAEIKIV.js";import{e as t}from"./chunk.6EV4YU6C.js";var e=class extends o{constructor(){super(...arguments);this.checked=!1;this.hasFocus=!1;this.size="lg";this.disabled=!1;this.visuallyDisabled=!1;this.invalid=!1}connectedCallback(){super.connectedCallback(),this.handleBlur=this.handleBlur.bind(this),this.handleClick=this.handleClick.bind(this),this.handleFocus=this.handleFocus.bind(this),this.setInitialAttributes(),this.addEventListeners()}disconnectedCallback(){this.removeEventListeners()}addEventListeners(){this.addEventListener("blur",this.handleBlur),this.addEventListener("click",this.handleClick),this.addEventListener("focus",this.handleFocus)}removeEventListeners(){this.removeEventListener("blur",this.handleBlur),this.removeEventListener("click",this.handleClick),this.removeEventListener("focus",this.handleFocus)}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleClick(){!this.disabled&&!this.visuallyDisabled&&(this.checked=!0)}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}setInitialAttributes(){this.setAttribute("role","radio"),this.setAttribute("tabindex","-1"),this.setAttribute("aria-disabled",this.disabled||this.visuallyDisabled?"true":"false")}handleCheckedChange(){this.setAttribute("aria-checked",this.checked?"true":"false"),this.setAttribute("tabindex",this.checked?"0":"-1")}handleDisabledChange(){this.setAttribute("aria-disabled",this.disabled?"true":"false")}render(){return c`<span part="base" class="${r("sd-6-28-2-radio group flex items-start text-base leading-normal text-black cursor-pointer",(this.disabled||this.visuallyDisabled)&&"hover:cursor-not-allowed",{sm:"small-size text-sm",md:"text-base",lg:"text-base"}[this.size])}"><span part="${`${this.checked?"control--checked":"control--unchecked"}`}" class="${r("flex-initial shrink-0 relative inline-flex items-center justify-center border sd-6-28-2-radio-border-width rounded-full bg-white h-4 w-4 duration-fast ease-in-out",this.disabled||this.visuallyDisabled?"border-neutral-500":this.invalid?r("border-error hover:border-error-400 group-hover:border-error-400",this.checked?"sd-6-28-2-radio--checked--invalid--default-color-background":"sd-6-28-2-radio--default--invalid-color-background"):this.checked?"sd-6-28-2-radio--checked--default-color-background hover:sd-6-28-2-radio--checked--hover-color-background group-hover:sd-6-28-2-radio--checked--hover-color-background border-accent hover:border-accent-550 group-hover:border-accent-550":"form-control-color-border hover:bg-neutral-200 group-hover:bg-neutral-200")}"><span part="checked" class="${r("rounded-full inline-flex text-white sd-6-28-2-radio__checked-height sd-6-28-2-radio__checked-width transition-[transform, colors] duration-medium ease-in-out",this.checked?"scale-100":"scale-0",this.disabled?"sd-6-28-2-radio--checked--disabled__icon-color-background":this.visuallyDisabled?"bg-white":this.invalid?"sd-6-28-2-radio--checked--invalid--default__icon-color-background hover:sd-6-28-2-radio--checked--invalid--hover__icon-color-background group-hover:sd-6-28-2-radio--checked--invalid--hover__icon-color-background":this.checked?"sd-6-28-2-radio--checked--default__icon-color-background hover:sd-6-28-2-radio--checked--hover__icon-color-background group-hover:sd-6-28-2-radio--checked--hover__icon-color-background":"bg-neutral-800")}"></span></span><slot part="label" class="${r("ml-2 select-none inline-block",this.disabled||this.visuallyDisabled?"text-neutral-500":"text-black")}"></slot></span>`}};e.styles=[...o.styles,a`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
2
+ :host{display:block}:host(:focus-visible){--tw-outline-style:none;outline-style:none}[part=control--checked],[part=control--unchecked]{outline-color:transparent}:host(:focus-visible) [part=control--checked],:host(:focus-visible) [part=control--unchecked]{outline-width:1px;outline-style:var(--tw-outline-style);outline-width:2px;outline-offset:2px;outline-color:rgba(var(--sd-color-border-primary,var(--sd-color-primary)))}[part=control--checked],[part=control--unchecked]{margin-top:.23em}:host([size=sm]) [part=control--checked],:host([size=sm]) [part=control--unchecked]{margin-top:.15em}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}`],t([i()],e.prototype,"checked",2),t([i()],e.prototype,"hasFocus",2),t([s({type:String,reflect:!0})],e.prototype,"size",2),t([s({type:Boolean,reflect:!0})],e.prototype,"disabled",2),t([s({type:Boolean,reflect:!0,attribute:"visually-disabled"})],e.prototype,"visuallyDisabled",2),t([s()],e.prototype,"value",2),t([s({type:Boolean,reflect:!0})],e.prototype,"invalid",2),t([l("checked")],e.prototype,"handleCheckedChange",1),t([l(["disabled","visually-disabled"],{waitUntilFirstUpdate:!0})],e.prototype,"handleDisabledChange",1),e=t([d("sd-6-28-2-radio")],e);export{e as a};
@@ -1,4 +1,4 @@
1
- import{a as M,h as V}from"./chunk.ZVNQOVT6.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.NFQGEN2R.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.ZVNQOVT6.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;
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-6-28-1-theme-listener")],w);export{w as a};
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
+ :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-6-28-2-theme-listener")],w);export{w as a};
@@ -1,2 +1,2 @@
1
- import{a as s}from"./chunk.LHSR56PH.js";import{a as d}from"./chunk.CGQ2BPPZ.js";import{a as r}from"./chunk.UFTAQNZB.js";import{a as h,b as l,d as c,h as a}from"./chunk.ZVNQOVT6.js";import{b as o,e as n}from"./chunk.OBAEIKIV.js";import{e as t}from"./chunk.6EV4YU6C.js";var e=class extends a{constructor(){super(...arguments);this.hasSlotController=new d(this,"[default]","icon-left","icon-right");this.standalone=!1;this.size="inherit";this.inverted=!1;this.href="";this.visuallyDisabled=!1}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleClick(i){this.visuallyDisabled&&(i.preventDefault(),i.stopPropagation())}focus(i){this.button.focus(i)}blur(){this.button.blur()}render(){let i={label:this.hasSlotController.test("[default]"),"icon-left":this.hasSlotController.test("icon-left"),"icon-right":this.hasSlotController.test("icon-right")};return n`<a part="base" class="${r(this.standalone?"flex items-start":"inline",this.href&&!this.visuallyDisabled?"cursor-pointer":"",this.visuallyDisabled?"cursor-not-allowed focus-visible:focus-outline":"",{sm:"text-sm",lg:"text-base",inherit:""}[this.size],{disabled:this.inverted?"text-neutral-600":"text-neutral-500",enabled:this.inverted?"text-white hover:text-primary-200 active:text-primary-400 focus-visible:focus-outline-inverted":"interactive--default-color-text hover:text-primary-500 active:interactive--active-color-text focus-visible:focus-outline",visuallyDisabled:this.inverted?"text-neutral-600":"text-neutral-500"}[this.href&&!this.visuallyDisabled?"enabled":this.visuallyDisabled?"visuallyDisabled":"disabled"])}" href="${s(this.href||void 0)}" target="${s(this.target||void 0)}" download="${s(this.download)}" rel="${s(this.target?"noreferrer noopener":void 0)}" aria-disabled="${!this.href||this.visuallyDisabled?"true":"false"}" tabindex="${this.href?"0":"-1"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @click="${this.handleClick}"><slot name="icon-left" part="icon-left" class="${r("inline",i["icon-left"]&&(this.standalone?{sm:"mr-1",lg:"mr-2",inherit:"mr-[0.5em]"}[this.size]:"mr-[0.25em]"))}"></slot><span part="label" class="inline underline underline-offset-2"><slot></slot></span><slot name="icon-right" part="icon-right" class="${r("inline",i["icon-right"]&&(this.standalone?{sm:"ml-1",lg:"ml-2",inherit:"ml-[0.5em]"}[this.size]:"ml-[0.25em]"))}"></slot></a>`}};e.styles=[...a.styles,o`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- ::slotted(sd-6-28-1-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-6-28-1-icon){font-size:var(--sd-text-base);line-height:var(--tw-leading,var(--text-base--line-height,calc(1.5 / 1)))}:host([size=lg][standalone]) ::slotted(sd-6-28-1-icon){font-size:var(--sd-text-xl);line-height:var(--tw-leading,var(--text-xl--line-height,calc(1.75 / 1.25)))}`],t([c("a")],e.prototype,"button",2),t([l({type:Boolean,reflect:!0})],e.prototype,"standalone",2),t([l({type:String,reflect:!0})],e.prototype,"size",2),t([l({type:Boolean,reflect:!0})],e.prototype,"inverted",2),t([l({type:String,reflect:!0})],e.prototype,"href",2),t([l({type:Boolean,attribute:"visually-disabled",reflect:!0})],e.prototype,"visuallyDisabled",2),t([l({type:String,reflect:!0})],e.prototype,"target",2),t([l({reflect:!0})],e.prototype,"download",2),e=t([h("sd-6-28-1-link")],e);export{e as a};
1
+ import{a as s}from"./chunk.LHSR56PH.js";import{a as d}from"./chunk.CGQ2BPPZ.js";import{a as r}from"./chunk.4ZZFYCXX.js";import{a as h,b as l,d as c,h as a}from"./chunk.NFQGEN2R.js";import{b as o,e as n}from"./chunk.OBAEIKIV.js";import{e as t}from"./chunk.6EV4YU6C.js";var e=class extends a{constructor(){super(...arguments);this.hasSlotController=new d(this,"[default]","icon-left","icon-right");this.standalone=!1;this.size="inherit";this.inverted=!1;this.href="";this.visuallyDisabled=!1}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleClick(i){this.visuallyDisabled&&(i.preventDefault(),i.stopPropagation())}focus(i){this.button.focus(i)}blur(){this.button.blur()}render(){let i={label:this.hasSlotController.test("[default]"),"icon-left":this.hasSlotController.test("icon-left"),"icon-right":this.hasSlotController.test("icon-right")};return n`<a part="base" class="${r(this.standalone?"flex items-start":"inline",this.href&&!this.visuallyDisabled?"cursor-pointer":"",this.visuallyDisabled?"cursor-not-allowed focus-visible:focus-outline":"",{sm:"text-sm",lg:"text-base",inherit:""}[this.size],{disabled:this.inverted?"text-neutral-600":"text-neutral-500",enabled:this.inverted?"text-white hover:text-primary-200 active:text-primary-400 focus-visible:focus-outline-inverted":"interactive--default-color-text hover:text-primary-500 active:interactive--active-color-text focus-visible:focus-outline",visuallyDisabled:this.inverted?"text-neutral-600":"text-neutral-500"}[this.href&&!this.visuallyDisabled?"enabled":this.visuallyDisabled?"visuallyDisabled":"disabled"])}" href="${s(this.href||void 0)}" target="${s(this.target||void 0)}" download="${s(this.download)}" rel="${s(this.target?"noreferrer noopener":void 0)}" aria-disabled="${!this.href||this.visuallyDisabled?"true":"false"}" tabindex="${this.href?"0":"-1"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @click="${this.handleClick}"><slot name="icon-left" part="icon-left" class="${r("inline",i["icon-left"]&&(this.standalone?{sm:"mr-1",lg:"mr-2",inherit:"mr-[0.5em]"}[this.size]:"mr-[0.25em]"))}"></slot><span part="label" class="inline underline underline-offset-2"><slot></slot></span><slot name="icon-right" part="icon-right" class="${r("inline",i["icon-right"]&&(this.standalone?{sm:"ml-1",lg:"ml-2",inherit:"ml-[0.5em]"}[this.size]:"ml-[0.25em]"))}"></slot></a>`}};e.styles=[...a.styles,o`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ ::slotted(sd-6-28-2-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-6-28-2-icon){font-size:var(--sd-text-base);line-height:var(--tw-leading,var(--text-base--line-height,calc(1.5 / 1)))}:host([size=lg][standalone]) ::slotted(sd-6-28-2-icon){font-size:var(--sd-text-xl);line-height:var(--tw-leading,var(--text-xl--line-height,calc(1.75 / 1.25)))}`],t([c("a")],e.prototype,"button",2),t([l({type:Boolean,reflect:!0})],e.prototype,"standalone",2),t([l({type:String,reflect:!0})],e.prototype,"size",2),t([l({type:Boolean,reflect:!0})],e.prototype,"inverted",2),t([l({type:String,reflect:!0})],e.prototype,"href",2),t([l({type:Boolean,attribute:"visually-disabled",reflect:!0})],e.prototype,"visuallyDisabled",2),t([l({type:String,reflect:!0})],e.prototype,"target",2),t([l({reflect:!0})],e.prototype,"download",2),e=t([h("sd-6-28-2-link")],e);export{e as a};
@@ -1 +1 @@
1
- import{e as p}from"./chunk.OBAEIKIV.js";import{a as l,b as m}from"./chunk.6EV4YU6C.js";var a=new WeakMap,n=new WeakMap,c=new WeakMap,d=new WeakMap,v=class{constructor(t,e){this.handleFormData=t=>{let e=this.options.disabled(this.host),o=this.options.name(this.host),i=this.options.value(this.host),s=this.host.tagName.toLowerCase()==="sd-6-28-1-button";!e&&!s&&typeof o=="string"&&o.length>0&&typeof i!="undefined"&&(Array.isArray(i)?i.forEach(r=>{t.formData.append(o,r.toString())}):t.formData.append(o,i.toString()))};this.handleFormSubmit=t=>{var i,s;let e=this.options.disabled(this.host),o=this.options.reportValidity;if(this.form&&!this.form.noValidate&&((i=a.get(this.form))==null||i.forEach(r=>{this.setUserInteracted(r,!0)})),this.form&&!this.form.noValidate&&!e&&!o(this.host)){t.preventDefault(),t.stopImmediatePropagation();let r=(s=this.form)==null?void 0:s.querySelectorAll("[data-invalid]");Array.from(r).filter(h=>h.tagName.toLowerCase()==="sd-6-28-1-radio-group").forEach(h=>{var f,u;(u=(f=h.shadowRoot)==null?void 0:f.querySelector("input"))==null||u.dispatchEvent(new Event("invalid"))}),r!=null&&r.length&&r[0].focus()}};this.handleFormReset=()=>{this.options.setValue(this.host,this.options.defaultValue(this.host)),this.setUserInteracted(this.host,!1),d.set(this.host,[])};this.handleInteraction=t=>{let e=d.get(this.host);e.includes(t.type)||e.push(t.type),e.length===this.options.assumeInteractionOn.length&&this.setUserInteracted(this.host,!0)};this.fakeUserInteraction=()=>{this.setUserInteracted(this.host,!0)};(this.host=t).addController(this),this.options=l({form:o=>{if(o.hasAttribute("form")&&o.getAttribute("form")!==""){let i=o.getRootNode(),s=o.getAttribute("form");if(s)return i.getElementById(s)}return o.closest("form")},name:o=>o.name,value:o=>o.value,defaultValue:o=>o.defaultValue,disabled:o=>{var i;return(i=o.disabled)!=null?i:!1},reportValidity:o=>typeof o.reportValidity=="function"?o.reportValidity():!0,setValue:(o,i)=>o.value=i,assumeInteractionOn:["sd-input"]},e)}hostConnected(){let t=this.options.form(this.host);t&&this.attachForm(t),d.set(this.host,[]),this.options.assumeInteractionOn.forEach(e=>{this.host.addEventListener(e,this.handleInteraction)})}hostDisconnected(){this.detachForm(),d.delete(this.host),this.options.assumeInteractionOn.forEach(t=>{this.host.removeEventListener(t,this.handleInteraction)})}hostUpdated(){var e;let t=this.options.form(this.host);t||this.detachForm(),t&&this.form!==t&&(this.detachForm(),this.attachForm(t)),this.host.hasUpdated&&(this.setValidity((e=this.host)==null?void 0:e.validity.valid),this.updateValidityStyle())}attachForm(t){t?(this.form=t,a.has(this.form)?a.get(this.form).add(this.host):a.set(this.form,new Set([this.host])),this.form.addEventListener("formdata",this.handleFormData),this.form.addEventListener("submit",this.handleFormSubmit),this.form.addEventListener("reset",this.handleFormReset),n.has(this.form)||(n.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity())):this.form=void 0}detachForm(){var t;this.form&&((t=a.get(this.form))==null||t.delete(this.host),this.form.removeEventListener("formdata",this.handleFormData),this.form.removeEventListener("submit",this.handleFormSubmit),this.form.removeEventListener("reset",this.handleFormReset),n.has(this.form)&&(this.form.reportValidity=n.get(this.form),n.delete(this.form))),this.form=void 0}reportFormValidity(){if(this.form&&!this.form.noValidate){let t=this.form.querySelectorAll("*");for(let e of t)if(typeof e.reportValidity=="function"&&!e.reportValidity())return!1}return!0}setUserInteracted(t,e){c.set(t,e),t.requestUpdate()}doAction(t,e){if(this.form){let o=document.createElement("button");o.type=t,o.style.position="absolute",o.style.width="0",o.style.height="0",o.style.clipPath="inset(50%)",o.style.overflow="hidden",o.style.whiteSpace="nowrap",e&&(o.name=e.name,o.value=e.value,["formaction","formenctype","formmethod","formnovalidate","formtarget"].forEach(i=>{e.hasAttribute(i)&&o.setAttribute(i,e.getAttribute(i))})),this.form.append(o),o.click(),o.remove()}}updateValidityStyle(){this.host.hasAttribute("data-user-valid")&&this.host.checkValidity()?(this.host.showValidStyle!==void 0&&(this.host.showValidStyle=!0),this.host.showInvalidStyle=!1):this.host.hasAttribute("data-user-invalid")&&!this.host.checkValidity()?(this.host.showValidStyle!==void 0&&(this.host.showValidStyle=!1),this.host.showInvalidStyle=!0):(this.host.showValidStyle!==void 0&&(this.host.showValidStyle=!1),this.host.showInvalidStyle=!1)}getForm(){var t;return(t=this.form)!=null?t:null}renderInvalidMessage(t){let e={sm:"text-sm",md:"text-base",lg:"text-base"}[t];return p`<div id="invalid-message" class="text-error text-left ${e}" part="invalid-message" aria-live="polite" ?hidden="${!this.host.showInvalidStyle}"></div>`}reset(t){this.doAction("reset",t)}submit(t){this.doAction("submit",t)}setValidity(t){var s;let e=this.host,o=!!c.get(e),i=!!e.required;(s=this.form)!=null&&s.noValidate?(e.removeAttribute("data-required"),e.removeAttribute("data-optional"),e.removeAttribute("data-invalid"),e.removeAttribute("data-valid"),e.removeAttribute("data-user-invalid"),e.removeAttribute("data-user-valid"),e.removeAttribute("aria-invalid")):(e.toggleAttribute("data-required",i),e.toggleAttribute("data-optional",!i),e.toggleAttribute("data-invalid",!t),e.toggleAttribute("data-valid",t),e.toggleAttribute("data-user-invalid",!t&&o),e.toggleAttribute("data-user-valid",t&&o),e.setAttribute("aria-invalid",(!t).toString()))}updateValidity(){let t=this.host;this.setValidity(t==null?void 0:t.validity.valid)}emitInvalidEvent(t){t==null||t.preventDefault();let e=new CustomEvent("sd-invalid",{bubbles:!1,composed:!1,cancelable:!0,detail:{}});t||e.preventDefault()}},y=Object.freeze({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1}),F=Object.freeze(m(l({},y),{valid:!1,valueMissing:!0})),V=Object.freeze(m(l({},y),{valid:!1,customError:!0}));export{a,v as b,y as c,F as d,V as e};
1
+ import{e as p}from"./chunk.OBAEIKIV.js";import{a as l,b as m}from"./chunk.6EV4YU6C.js";var a=new WeakMap,n=new WeakMap,c=new WeakMap,d=new WeakMap,v=class{constructor(t,e){this.handleFormData=t=>{let e=this.options.disabled(this.host),o=this.options.name(this.host),i=this.options.value(this.host),s=this.host.tagName.toLowerCase()==="sd-6-28-2-button";!e&&!s&&typeof o=="string"&&o.length>0&&typeof i!="undefined"&&(Array.isArray(i)?i.forEach(r=>{t.formData.append(o,r.toString())}):t.formData.append(o,i.toString()))};this.handleFormSubmit=t=>{var i,s;let e=this.options.disabled(this.host),o=this.options.reportValidity;if(this.form&&!this.form.noValidate&&((i=a.get(this.form))==null||i.forEach(r=>{this.setUserInteracted(r,!0)})),this.form&&!this.form.noValidate&&!e&&!o(this.host)){t.preventDefault(),t.stopImmediatePropagation();let r=(s=this.form)==null?void 0:s.querySelectorAll("[data-invalid]");Array.from(r).filter(h=>h.tagName.toLowerCase()==="sd-6-28-2-radio-group").forEach(h=>{var f,u;(u=(f=h.shadowRoot)==null?void 0:f.querySelector("input"))==null||u.dispatchEvent(new Event("invalid"))}),r!=null&&r.length&&r[0].focus()}};this.handleFormReset=()=>{this.options.setValue(this.host,this.options.defaultValue(this.host)),this.setUserInteracted(this.host,!1),d.set(this.host,[])};this.handleInteraction=t=>{let e=d.get(this.host);e.includes(t.type)||e.push(t.type),e.length===this.options.assumeInteractionOn.length&&this.setUserInteracted(this.host,!0)};this.fakeUserInteraction=()=>{this.setUserInteracted(this.host,!0)};(this.host=t).addController(this),this.options=l({form:o=>{if(o.hasAttribute("form")&&o.getAttribute("form")!==""){let i=o.getRootNode(),s=o.getAttribute("form");if(s)return i.getElementById(s)}return o.closest("form")},name:o=>o.name,value:o=>o.value,defaultValue:o=>o.defaultValue,disabled:o=>{var i;return(i=o.disabled)!=null?i:!1},reportValidity:o=>typeof o.reportValidity=="function"?o.reportValidity():!0,setValue:(o,i)=>o.value=i,assumeInteractionOn:["sd-input"]},e)}hostConnected(){let t=this.options.form(this.host);t&&this.attachForm(t),d.set(this.host,[]),this.options.assumeInteractionOn.forEach(e=>{this.host.addEventListener(e,this.handleInteraction)})}hostDisconnected(){this.detachForm(),d.delete(this.host),this.options.assumeInteractionOn.forEach(t=>{this.host.removeEventListener(t,this.handleInteraction)})}hostUpdated(){var e;let t=this.options.form(this.host);t||this.detachForm(),t&&this.form!==t&&(this.detachForm(),this.attachForm(t)),this.host.hasUpdated&&(this.setValidity((e=this.host)==null?void 0:e.validity.valid),this.updateValidityStyle())}attachForm(t){t?(this.form=t,a.has(this.form)?a.get(this.form).add(this.host):a.set(this.form,new Set([this.host])),this.form.addEventListener("formdata",this.handleFormData),this.form.addEventListener("submit",this.handleFormSubmit),this.form.addEventListener("reset",this.handleFormReset),n.has(this.form)||(n.set(this.form,this.form.reportValidity),this.form.reportValidity=()=>this.reportFormValidity())):this.form=void 0}detachForm(){var t;this.form&&((t=a.get(this.form))==null||t.delete(this.host),this.form.removeEventListener("formdata",this.handleFormData),this.form.removeEventListener("submit",this.handleFormSubmit),this.form.removeEventListener("reset",this.handleFormReset),n.has(this.form)&&(this.form.reportValidity=n.get(this.form),n.delete(this.form))),this.form=void 0}reportFormValidity(){if(this.form&&!this.form.noValidate){let t=this.form.querySelectorAll("*");for(let e of t)if(typeof e.reportValidity=="function"&&!e.reportValidity())return!1}return!0}setUserInteracted(t,e){c.set(t,e),t.requestUpdate()}doAction(t,e){if(this.form){let o=document.createElement("button");o.type=t,o.style.position="absolute",o.style.width="0",o.style.height="0",o.style.clipPath="inset(50%)",o.style.overflow="hidden",o.style.whiteSpace="nowrap",e&&(o.name=e.name,o.value=e.value,["formaction","formenctype","formmethod","formnovalidate","formtarget"].forEach(i=>{e.hasAttribute(i)&&o.setAttribute(i,e.getAttribute(i))})),this.form.append(o),o.click(),o.remove()}}updateValidityStyle(){this.host.hasAttribute("data-user-valid")&&this.host.checkValidity()?(this.host.showValidStyle!==void 0&&(this.host.showValidStyle=!0),this.host.showInvalidStyle=!1):this.host.hasAttribute("data-user-invalid")&&!this.host.checkValidity()?(this.host.showValidStyle!==void 0&&(this.host.showValidStyle=!1),this.host.showInvalidStyle=!0):(this.host.showValidStyle!==void 0&&(this.host.showValidStyle=!1),this.host.showInvalidStyle=!1)}getForm(){var t;return(t=this.form)!=null?t:null}renderInvalidMessage(t){let e={sm:"text-sm",md:"text-base",lg:"text-base"}[t];return p`<div id="invalid-message" class="text-error text-left ${e}" part="invalid-message" aria-live="polite" ?hidden="${!this.host.showInvalidStyle}"></div>`}reset(t){this.doAction("reset",t)}submit(t){this.doAction("submit",t)}setValidity(t){var s;let e=this.host,o=!!c.get(e),i=!!e.required;(s=this.form)!=null&&s.noValidate?(e.removeAttribute("data-required"),e.removeAttribute("data-optional"),e.removeAttribute("data-invalid"),e.removeAttribute("data-valid"),e.removeAttribute("data-user-invalid"),e.removeAttribute("data-user-valid"),e.removeAttribute("aria-invalid")):(e.toggleAttribute("data-required",i),e.toggleAttribute("data-optional",!i),e.toggleAttribute("data-invalid",!t),e.toggleAttribute("data-valid",t),e.toggleAttribute("data-user-invalid",!t&&o),e.toggleAttribute("data-user-valid",t&&o),e.setAttribute("aria-invalid",(!t).toString()))}updateValidity(){let t=this.host;this.setValidity(t==null?void 0:t.validity.valid)}emitInvalidEvent(t){t==null||t.preventDefault();let e=new CustomEvent("sd-invalid",{bubbles:!1,composed:!1,cancelable:!0,detail:{}});t||e.preventDefault()}},y=Object.freeze({badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:!0,valueMissing:!1}),F=Object.freeze(m(l({},y),{valid:!1,valueMissing:!0})),V=Object.freeze(m(l({},y),{valid:!1,customError:!0}));export{a,v as b,y as c,F as d,V as e};
@@ -1,2 +1,2 @@
1
- import{a as y,b as k}from"./chunk.I2H6CZK5.js";import{a as $}from"./chunk.LHSR56PH.js";import{a as c,c as d}from"./chunk.B2NUKX6G.js";import{a as g}from"./chunk.KLRPP4NQ.js";import{a as H}from"./chunk.VAM5SM3O.js";import{a as o}from"./chunk.UFTAQNZB.js";import{a as f}from"./chunk.NYKJXI3Q.js";import{a as T,b as s,d as p,h as w}from"./chunk.ZVNQOVT6.js";import{b as v,e as u}from"./chunk.OBAEIKIV.js";import{b as n,e as l,f as b}from"./chunk.W4QBFD6E.js";import{e}from"./chunk.6EV4YU6C.js";var m={"top-right":null,"bottom-center":null},E=()=>{Object.entries(m).forEach(([a])=>{let h=document.querySelector(`#sd-toast-stack--${a}`);if(h){h.setAttribute("role","region"),m[a]=h;return}m[a]=Object.assign(document.createElement("div"),{role:"region",id:`sd-toast-stack--${a}`,className:`sd-toast-stack sd-toast-stack--${a}`})})};E();var t=class extends w{constructor(){super(...arguments);this.localize=new H(this);this.variant="info";this.open=!1;this.closable=!1;this.duration=1/0;this.durationIndicator=!1;this.toastStack="top-right";this.remainingDuration=this.duration;this.startTime=Date.now()}get stack(){return m[this.toastStack]}connectedCallback(){super.connectedCallback(),this.stack.parentElement||(document.body.append(this.stack),this.stack.ariaLabel=this.localize.term("notifications"))}disconnectedCallback(){super.disconnectedCallback()}firstUpdated(){this.wrapper.hidden=!this.open}startAutoHide(){clearTimeout(this.autoHideTimeout),this.startTime=Date.now(),this.remainingDuration=this.duration,this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout(()=>this.hide(),this.duration))}onHover(){clearTimeout(this.autoHideTimeout),this.duration<1/0&&(this.remainingDuration-=Date.now()-this.startTime)}onHoverEnd(){this.startTime=Date.now(),clearTimeout(this.autoHideTimeout),this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout(()=>{this.hide()},this.remainingDuration))}handleCloseClick(){this.hide()}handleKeyDown(i){this.closable&&i.key==="Escape"&&this.hide()}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.duration<1/0&&this.startAutoHide(),await Promise.all([l(this.base),l(this.wrapper)]),this.wrapper.hidden=!1;let i=d(this,"notification.show",{dir:this.localize.dir()}),r=d(this,`notification.wrapper.show${y(k(this.toastStack))}`,{dir:this.localize.dir()});await Promise.all([n(this.base,b(i.keyframes,this.base.scrollHeight),i.options),n(this.wrapper,r.keyframes,r.options)]),this.emit("sd-after-show")}else{this.emit("sd-hide"),clearTimeout(this.autoHideTimeout),await Promise.all([l(this.base),l(this.wrapper)]);let i=d(this,"notification.hide",{dir:this.localize.dir()}),r=d(this,`notification.wrapper.hide${y(k(this.toastStack))}`,{dir:this.localize.dir()});await Promise.all([n(this.base,b(i.keyframes,this.base.scrollHeight),i.options),n(this.wrapper,r.keyframes,r.options)]),this.wrapper.hidden=!0,this.emit("sd-after-hide")}}handleDurationChange(){this.startAutoHide()}async show(){if(!this.open)return this.open=!0,g(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,g(this,"sd-after-hide")}async toast(){return new Promise(i=>{this.stack.parentElement===null&&document.body.append(this.stack),this.stack.appendChild(this),requestAnimationFrame(()=>{this.clientWidth,this.show()}),this.addEventListener("sd-after-hide",()=>{this.stack.removeChild(this),i()},{once:!0})})}render(){return u`<div part="base" class="${o("w-full flex items-stretch m-2 focus-visible:focus-outline")}" id="notification" tabindex="${$(this.closable?"0":void 0)}" role="alert" aria-labelledby="message" aria-hidden="${this.open?"false":"true"}" @mouseenter="${this.onHover}" @mouseleave="${this.onHoverEnd}" @keydown="${this.handleKeyDown}"><div part="wrapper" class="${o("w-full h-fit overflow-hidden flex items-stretch relative")}"><slot name="icon" part="icon" class="${o("min-w-min flex items-center px-3 justify-center",{info:"bg-info",success:"bg-success",warning:"bg-warning",error:"bg-error"}[this.variant])}"><sd-6-28-1-icon name="${{info:"info-circle",success:"confirm-circle",warning:"exclamation-circle",error:"warning"}[this.variant]||""}" library="_internal" class="h-6 w-6 text-white"></sd-6-28-1-icon></slot><div part="content" class="${o("h-full w-full p-1 gap-2 flex items-center justify-stretch bg-white","border-solid border-[1px] border-l-0 sd-6-28-1-notification-color-border",{info:"sd-6-28-1-notification--info-color-background",success:"sd-6-28-1-notification--success-color-background",warning:"sd-6-28-1-notification--warning-color-background",error:"sd-6-28-1-notification--error-color-background"}[this.variant])}"><slot id="message" part="message" class="block w-full pl-3 py-2"></slot>${this.closable?u`<sd-6-28-1-button size="md" variant="tertiary" part="close-button" class="ml-auto flex flex-[0_0_auto] items-stretch" @click="${this.handleCloseClick}"><sd-6-28-1-icon label="${this.localize.term("close")}" name="close" library="_internal" color="currentColor"></sd-6-28-1-icon></sd-6-28-1-button>`:""}</div>${this.durationIndicator?u`<div part="duration-indicator__elapsed" id="duration-indicator__elapsed" style="${`animation-duration: ${this.duration}ms`}" class="${o("absolute w-0 h-[2px] bottom-0 sd-6-28-1-notification__duration-indicator-color-background z-10 animate-grow")}"></div><div part="duration-indicator__total" class="w-full h-[2px] bottom-0 absolute border border-neutral-400"></div>`:""}</div></div>`}};t.styles=[...w.styles,v`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- :host{display:contents}#notification:hover #duration-indicator__elapsed{animation-play-state:paused!important}`],e([p('[part~="base"]')],t.prototype,"base",2),e([p('[part~="wrapper"]')],t.prototype,"wrapper",2),e([p('[part~="close-button"]')],t.prototype,"close",2),e([s({type:String,reflect:!0})],t.prototype,"variant",2),e([s({type:Boolean,reflect:!0})],t.prototype,"open",2),e([s({type:Boolean,reflect:!0})],t.prototype,"closable",2),e([s({type:Number,reflect:!0})],t.prototype,"duration",2),e([s({type:Boolean,reflect:!0,attribute:"duration-indicator"})],t.prototype,"durationIndicator",2),e([s({type:String,reflect:!0,attribute:"toast-stack"})],t.prototype,"toastStack",2),e([f("open",{waitUntilFirstUpdate:!0})],t.prototype,"handleOpenChange",1),e([f("duration")],t.prototype,"handleDurationChange",1),t=e([T("sd-6-28-1-notification")],t);c("notification.show",{keyframes:[{opacity:0,height:0},{opacity:1,height:"auto"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});c("notification.hide",{keyframes:[{opacity:1,height:"auto"},{opacity:0,height:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});c("notification.wrapper.showTopRight",{keyframes:[{bottom:"32px"},{bottom:"0"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});c("notification.wrapper.hideTopRight",{keyframes:[{bottom:"0"},{bottom:"32px"}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});export{t as a};
1
+ import{a as y,b as k}from"./chunk.I2H6CZK5.js";import{a as $}from"./chunk.LHSR56PH.js";import{a as c,c as d}from"./chunk.B2NUKX6G.js";import{a as g}from"./chunk.KLRPP4NQ.js";import{a as H}from"./chunk.VAM5SM3O.js";import{a as o}from"./chunk.4ZZFYCXX.js";import{a as f}from"./chunk.NYKJXI3Q.js";import{a as T,b as s,d as p,h as w}from"./chunk.NFQGEN2R.js";import{b as v,e as u}from"./chunk.OBAEIKIV.js";import{b as n,e as l,f as b}from"./chunk.W4QBFD6E.js";import{e}from"./chunk.6EV4YU6C.js";var m={"top-right":null,"bottom-center":null},E=()=>{Object.entries(m).forEach(([a])=>{let h=document.querySelector(`#sd-toast-stack--${a}`);if(h){h.setAttribute("role","region"),m[a]=h;return}m[a]=Object.assign(document.createElement("div"),{role:"region",id:`sd-toast-stack--${a}`,className:`sd-toast-stack sd-toast-stack--${a}`})})};E();var t=class extends w{constructor(){super(...arguments);this.localize=new H(this);this.variant="info";this.open=!1;this.closable=!1;this.duration=1/0;this.durationIndicator=!1;this.toastStack="top-right";this.remainingDuration=this.duration;this.startTime=Date.now()}get stack(){return m[this.toastStack]}connectedCallback(){super.connectedCallback(),this.stack.parentElement||(document.body.append(this.stack),this.stack.ariaLabel=this.localize.term("notifications"))}disconnectedCallback(){super.disconnectedCallback()}firstUpdated(){this.wrapper.hidden=!this.open}startAutoHide(){clearTimeout(this.autoHideTimeout),this.startTime=Date.now(),this.remainingDuration=this.duration,this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout(()=>this.hide(),this.duration))}onHover(){clearTimeout(this.autoHideTimeout),this.duration<1/0&&(this.remainingDuration-=Date.now()-this.startTime)}onHoverEnd(){this.startTime=Date.now(),clearTimeout(this.autoHideTimeout),this.open&&this.duration<1/0&&(this.autoHideTimeout=window.setTimeout(()=>{this.hide()},this.remainingDuration))}handleCloseClick(){this.hide()}handleKeyDown(i){this.closable&&i.key==="Escape"&&this.hide()}async handleOpenChange(){if(this.open){this.emit("sd-show"),this.duration<1/0&&this.startAutoHide(),await Promise.all([l(this.base),l(this.wrapper)]),this.wrapper.hidden=!1;let i=d(this,"notification.show",{dir:this.localize.dir()}),r=d(this,`notification.wrapper.show${y(k(this.toastStack))}`,{dir:this.localize.dir()});await Promise.all([n(this.base,b(i.keyframes,this.base.scrollHeight),i.options),n(this.wrapper,r.keyframes,r.options)]),this.emit("sd-after-show")}else{this.emit("sd-hide"),clearTimeout(this.autoHideTimeout),await Promise.all([l(this.base),l(this.wrapper)]);let i=d(this,"notification.hide",{dir:this.localize.dir()}),r=d(this,`notification.wrapper.hide${y(k(this.toastStack))}`,{dir:this.localize.dir()});await Promise.all([n(this.base,b(i.keyframes,this.base.scrollHeight),i.options),n(this.wrapper,r.keyframes,r.options)]),this.wrapper.hidden=!0,this.emit("sd-after-hide")}}handleDurationChange(){this.startAutoHide()}async show(){if(!this.open)return this.open=!0,g(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,g(this,"sd-after-hide")}async toast(){return new Promise(i=>{this.stack.parentElement===null&&document.body.append(this.stack),this.stack.appendChild(this),requestAnimationFrame(()=>{this.clientWidth,this.show()}),this.addEventListener("sd-after-hide",()=>{this.stack.removeChild(this),i()},{once:!0})})}render(){return u`<div part="base" class="${o("w-full flex items-stretch m-2 focus-visible:focus-outline")}" id="notification" tabindex="${$(this.closable?"0":void 0)}" role="alert" aria-labelledby="message" aria-hidden="${this.open?"false":"true"}" @mouseenter="${this.onHover}" @mouseleave="${this.onHoverEnd}" @keydown="${this.handleKeyDown}"><div part="wrapper" class="${o("w-full h-fit overflow-hidden flex items-stretch relative")}"><slot name="icon" part="icon" class="${o("min-w-min flex items-center px-3 justify-center",{info:"bg-info",success:"bg-success",warning:"bg-warning",error:"bg-error"}[this.variant])}"><sd-6-28-2-icon name="${{info:"info-circle",success:"confirm-circle",warning:"exclamation-circle",error:"warning"}[this.variant]||""}" library="_internal" class="h-6 w-6 text-white"></sd-6-28-2-icon></slot><div part="content" class="${o("h-full w-full p-1 gap-2 flex items-center justify-stretch bg-white","border-solid border-[1px] border-l-0 sd-6-28-2-notification-color-border",{info:"sd-6-28-2-notification--info-color-background",success:"sd-6-28-2-notification--success-color-background",warning:"sd-6-28-2-notification--warning-color-background",error:"sd-6-28-2-notification--error-color-background"}[this.variant])}"><slot id="message" part="message" class="block w-full pl-3 py-2"></slot>${this.closable?u`<sd-6-28-2-button size="md" variant="tertiary" part="close-button" class="ml-auto flex flex-[0_0_auto] items-stretch" @click="${this.handleCloseClick}"><sd-6-28-2-icon label="${this.localize.term("close")}" name="close" library="_internal" color="currentColor"></sd-6-28-2-icon></sd-6-28-2-button>`:""}</div>${this.durationIndicator?u`<div part="duration-indicator__elapsed" id="duration-indicator__elapsed" style="${`animation-duration: ${this.duration}ms`}" class="${o("absolute w-0 h-[2px] bottom-0 sd-6-28-2-notification__duration-indicator-color-background z-10 animate-grow")}"></div><div part="duration-indicator__total" class="w-full h-[2px] bottom-0 absolute border border-neutral-400"></div>`:""}</div></div>`}};t.styles=[...w.styles,v`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ :host{display:contents}#notification:hover #duration-indicator__elapsed{animation-play-state:paused!important}`],e([p('[part~="base"]')],t.prototype,"base",2),e([p('[part~="wrapper"]')],t.prototype,"wrapper",2),e([p('[part~="close-button"]')],t.prototype,"close",2),e([s({type:String,reflect:!0})],t.prototype,"variant",2),e([s({type:Boolean,reflect:!0})],t.prototype,"open",2),e([s({type:Boolean,reflect:!0})],t.prototype,"closable",2),e([s({type:Number,reflect:!0})],t.prototype,"duration",2),e([s({type:Boolean,reflect:!0,attribute:"duration-indicator"})],t.prototype,"durationIndicator",2),e([s({type:String,reflect:!0,attribute:"toast-stack"})],t.prototype,"toastStack",2),e([f("open",{waitUntilFirstUpdate:!0})],t.prototype,"handleOpenChange",1),e([f("duration")],t.prototype,"handleDurationChange",1),t=e([T("sd-6-28-2-notification")],t);c("notification.show",{keyframes:[{opacity:0,height:0},{opacity:1,height:"auto"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});c("notification.hide",{keyframes:[{opacity:1,height:"auto"},{opacity:0,height:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});c("notification.wrapper.showTopRight",{keyframes:[{bottom:"32px"},{bottom:"0"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});c("notification.wrapper.hideTopRight",{keyframes:[{bottom:"0"},{bottom:"32px"}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});export{t as a};
@@ -1,2 +1,2 @@
1
- import{a as N}from"./chunk.ICEC5PGK.js";import{a as B}from"./chunk.SAEYIL5V.js";import{a as A}from"./chunk.ERP45OHF.js";import{b as z}from"./chunk.LZRL7OLU.js";import{a as n}from"./chunk.LHSR56PH.js";import{a as M}from"./chunk.CGQ2BPPZ.js";import{a as P,b as V}from"./chunk.QQD62QOV.js";import{a as T}from"./chunk.VAM5SM3O.js";import{a}from"./chunk.UFTAQNZB.js";import{a as b}from"./chunk.NYKJXI3Q.js";import{a as E,b as l,c as m,d as w,h as x}from"./chunk.ZVNQOVT6.js";import{b as D,e as r,h as F,i as L}from"./chunk.OBAEIKIV.js";import{a as k,e as i}from"./chunk.6EV4YU6C.js";var $=class extends N{constructor(e){super(e);this.handlePointerDown=e=>{e.button!==0||this.host.disabled||this.spinOnLongPressCallback(e)};this.handlePointerUp=e=>{e==null||e.preventDefault(),e==null||e.stopPropagation(),this.timeout&&this.callbacks.start(),this.stopSpinningAndCleanUp(),this.callbacks.end(),document.removeEventListener("pointerup",this.handlePointerUp)};if(e.type!==P.ELEMENT||!(e.element instanceof HTMLButtonElement))throw new Error("The `longPress` directive must be used on an HTMLButtonElement.")}render(e){return L}update(e,[s]){return this.callbacks===void 0&&this.host===void 0&&(this.host=e.element,this.callbacks=k({},s),this.host.addEventListener("pointerdown",this.handlePointerDown)),F}disconnected(){this.stopSpinningAndCleanUp(),this.host.removeEventListener("pointerdown",this.handlePointerDown),document.removeEventListener("pointerup",this.handlePointerUp)}spinOnLongPressCallback(e){var s;e.preventDefault(),e.stopPropagation(),this.timeout=setTimeout(()=>{this.timeout=void 0,this.interval=setInterval(()=>{this.callbacks.start()},50)},500),document.addEventListener("pointerup",this.handlePointerUp),(s=this.observer)==null||s.disconnect(),this.observer=new MutationObserver(u=>{u.forEach(p=>{p.attributeName==="disabled"&&this.stopSpinningAndCleanUp()})}),this.observer.observe(this.host,{attributes:!0})}stopSpinningAndCleanUp(){var e;clearInterval(this.interval),clearTimeout(this.timeout),(e=this.observer)==null||e.disconnect()}},C=V($);var _,R=(_=navigator.userAgentData)==null?void 0:_.brands.some(f=>f.brand.includes("Chromium")),J=R?!1:navigator.userAgent.includes("Firefox"),t=class extends x{constructor(){super(...arguments);this.formControlController=new z(this);this.hasSlotController=new M(this,"help-text","label","left","right","message","placeholder");this.localize=new T(this);this.hasFocus=!1;this.showValidStyle=!1;this.showInvalidStyle=!1;this.isClickableIconFocused=!1;this.type="text";this.size="lg";this.value="";this.defaultValue="";this.placeholder="";this.label="";this.helpText="";this.clearable=!1;this.disabled=!1;this.visuallyDisabled=!1;this.readonly=!1;this.passwordToggle=!1;this.passwordVisible=!1;this.spinButtons=!1;this.form="";this.name="";this.title="";this.required=!1;this.floatingLabel=!1;this.styleOnValid=!1;this.spellcheck=!0}get valueAsDate(){var e,s;return(s=(e=this.input)==null?void 0:e.valueAsDate)!=null?s:null}set valueAsDate(e){let s=document.createElement("input");s.type="date",s.valueAsDate=e,this.value=s.value}get valueAsNumber(){var e,s;return(s=(e=this.input)==null?void 0:e.valueAsNumber)!=null?s:parseFloat(this.value)}set valueAsNumber(e){let s=document.createElement("input");s.type="number",s.valueAsNumber=e,this.value=s.value}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.input.value,this.emit("sd-change")}handleClearClick(e){this.value="",this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change"),this.input.focus(),e.stopPropagation()}handleSearchClick(e){this.emit("sd-search"),e.stopPropagation()}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){if(this.visuallyDisabled){this.input.value=this.value;return}this.value=this.input.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e),this.invalidMessage.textContent=e.target.validationMessage}handleKeyDown(e){let s=e.metaKey||e.ctrlKey||e.shiftKey||e.altKey;e.key==="Enter"&&!s&&setTimeout(()=>{!e.defaultPrevented&&!e.isComposing&&this.formControlController.submit()})}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}handleClickableIconFocusIn(){this.isClickableIconFocused=!0}handleClickableIconFocusOut(){this.isClickableIconFocused=!1}isDecrementDisabled(){if(this.disabled||this.readonly)return!0;if(this.min===void 0||this.min===null)return!1;let e=typeof this.min=="string"?parseFloat(this.min):this.min;return this.valueAsNumber<=e}isIncrementDisabled(){if(this.disabled||this.readonly)return!0;if(this.max===void 0||this.max===null)return!1;let e=typeof this.max=="string"?parseFloat(this.max):this.max;return this.valueAsNumber>=e}handleStep(){this.handleInput(),this.input.focus()}handleStepUp(){this.stepUp(),this.handleStep()}handleStepDown(){this.stepDown(),this.handleStep()}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStepChange(){this.input.step=String(this.step),this.formControlController.updateValidity()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}handleSizeChange(){this.size=this.floatingLabel&&this.size==="sm"?"md":this.size}focus(e){this.input.focus(e)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(e,s,u="none"){this.input.setSelectionRange(e,s,u)}setRangeText(e,s,u,p){this.input.setRangeText(e,s,u,p),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){"showPicker"in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}checkValidity(){var e;return(e=this.input)==null?void 0:e.checkValidity()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){let e={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text"),description:this.hasSlotController.test("description"),left:this.hasSlotController.test("left"),right:this.hasSlotController.test("right"),tooltip:this.hasSlotController.test("tooltip")},s=this.label?!0:!!e.label,u=this.helpText?!0:!!e.helpText,p=this.clearable&&!this.readonly&&(typeof this.value=="number"||this.value.length>0),O=!!e.tooltip,S=e.left,v=this.value!==null&&String(this.value).length>0,h=this.floatingLabel&&s&&(this.hasFocus||v||this.isClickableIconFocused),y=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",g=this.size==="sm"?"text-sm":"text-base",U={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"}[y],c=this.disabled||this.visuallyDisabled?"text-neutral-500":"icon-color",d={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],o={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size],K=this.size==="lg"?this.floatingLabel?h?"py-3":"py-4":"py-2":this.floatingLabel?h?"py-2":"py-3":"py-1",q={sm:"left-[36px]",md:"left-[44px]",lg:"left-12"}[this.size];return r`<div part="form-control" class="${a((this.disabled||this.visuallyDisabled)&&"cursor-not-allowed")}">${(s||O)&&!this.floatingLabel?r`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${a(s?"inline-block":"hidden",g,this.visuallyDisabled||this.disabled?"text-neutral-500":" form-control-color-text")}" for="input" aria-hidden="${s?"false":"true"}"><slot name="label">${this.label}</slot></label> ${e.tooltip?r`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${a("relative w-full",this.disabled&&"pointer-events-none",this.visuallyDisabled&&"cursor-not-allowed")}"><div part="border" class="${a("absolute w-full h-full pointer-events-none border form-control-border-radius transition-[border] ease-in-out duration-medium hover:duration-fast",U)}"></div><div part="base" class="${a("px-4 flex flex-row items-center form-control-border-radius transition-colors ease-in-out duration-medium hover:duration-fast",this.floatingLabel&&"has-floating-label",!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",["disabled","visuallyDisabled"].includes(y)?"text-neutral-500":"text-black",["invalid","activeInvalid"].includes(y)&&"form-control--invalid-color-background",K)}">${e.left?r`<slot name="left" part="left" class="${a("inline-flex",this.size==="sm"?"mr-1":"mr-2",c,o)}"></slot>`:""} <input part="input" id="input" class="${a("min-w-0 flex-grow focus:outline-none bg-transparent",this.visuallyDisabled||this.disabled?"placeholder:text-neutral-500 cursor-not-allowed":"placeholder:text-neutral-700",this.size==="sm"?h?"h-4":"h-6":h?"h-6":"h-8",g,h&&"leading-none mt-4")}" type="${this.type==="password"&&this.passwordVisible?"text":this.type}" title="${this.title}" name="${n(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${!this.floatingLabel||h?n(this.placeholder):""}" minlength="${n(this.minlength)}" maxlength="${n(this.maxlength)}" min="${n(this.min)}" max="${n(this.max)}" step="${n(this.step)}" .value="${B(this.value)}" autocapitalize="${n(this.type==="password"?"off":this.autocapitalize)}" autocomplete="${n(this.autocomplete)}" autocorrect="${n(this.type==="password"?"off":this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${n(this.pattern)}" enterkeyhint="${n(this.enterkeyhint)}" inputmode="${n(this.inputmode)}" aria-describedby="help-text invalid-message" aria-disabled="${this.visuallyDisabled||this.disabled?"true":"false"}" aria-invalid="${this.showInvalidStyle}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${s&&this.floatingLabel?r`<label part="form-control-floating-label" class="${a("pointer-events-none absolute",S?q:"left-4",!this.readonly&&"transition-all duration-medium ease-out",!h||!v&&(this.readonly||this.visuallyDisabled)?"top-1/2 -translate-y-1/2 form-control-color-text":this.size==="lg"?"top-2":"top-1")}" for="input" aria-hidden="${s?"false":"true"}"><span id="floating-label" class="${a("pointer-events-none leading-none",!this.readonly&&"transition-all duration-medium ease-out",!h||!v&&(this.readonly||this.visuallyDisabled)?g:"text-xs",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",h&&!this.visuallyDisabled&&!this.disabled&&"form-control--filled__floating-label-color-text")}">${this.label}</span></label>`:null} ${p?r`<button part="clear-button" class="${a("flex justify-center",d)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-6-28-1-icon class="${a(this.disabled||this.visuallyDisabled?"text-neutral-500":"text-neutral-700",o)}" library="_internal" name="closing-round"></sd-6-28-1-icon></slot></button>`:""} ${this.passwordToggle&&this.type==="password"?r`<button aria-label="${this.localize.term(this.passwordVisible?"hidePassword":"showPassword")}" part="password-toggle-button" class="${a("flex items-center sd-interactive",d,this.floatingLabel&&!h&&"hide-password-toggle")}" type="button" @click="${this.handlePasswordToggle}" @mousedown="${this.handleClickableIconFocusIn}" @focus="${()=>this.handleClickableIconFocusIn()}" @blur="${this.handleClickableIconFocusOut}">${this.passwordVisible?r`<slot name="show-password-icon"><sd-6-28-1-icon class="${a(c,o)}" library="_internal" name="eye"></sd-6-28-1-icon></slot>`:r`<slot name="hide-password-icon"><sd-6-28-1-icon class="${a(c,o)}" library="_internal" name="eye-crossed-out"></sd-6-28-1-icon></slot>`}</button>`:""} ${(this.type==="date"||this.type==="datetime-local")&&!J?r`<sd-6-28-1-icon class="${a(c,d,o)}" library="_internal" name="calendar"></sd-6-28-1-icon>`:""} ${this.type==="time"?r`<sd-6-28-1-icon class="${a(c,d,o)}" library="_internal" name="clock"></sd-6-28-1-icon>`:""} ${this.type==="search"?r`<button class="${a("flex items-center sd-interactive",d)}" type="button" @click="${this.handleSearchClick}"><sd-6-28-1-icon class="${a(c,o)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-6-28-1-icon></button>`:""} ${this.showInvalidStyle?r`<sd-6-28-1-icon part="invalid-icon" class="${a("text-error",d,o)}" library="_internal" name="risk"></sd-6-28-1-icon>`:""} ${this.showValidStyle&&this.styleOnValid?r`<sd-6-28-1-icon class="${a("text-success flex-shrink-0",d,o)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-6-28-1-icon>`:""} ${e.right?r`<slot name="right" part="right" class="${a("inline-flex",c,d,o)}"></slot>`:""} ${this.type==="number"&&this.spinButtons?r`<div part="stepper" class="flex items-center"><button part="decrement-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isDecrementDisabled()}" aria-hidden="true" ${C({start:()=>this.handleStepDown(),end:()=>this.handleChange()})} tabindex="-1" @mousedown="${this.handleClickableIconFocusIn}" @focus="${()=>this.handleClickableIconFocusIn()}" @blur="${this.handleClickableIconFocusOut}"><slot name="decrement-number-stepper"><sd-6-28-1-icon library="_internal" name="minus-circle" label="Decrease value" class="${a(c,d,o)}"></sd-6-28-1-icon></slot></button> <button part="increment-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isIncrementDisabled()}" aria-hidden="true" ${C({start:()=>this.handleStepUp(),end:()=>this.handleChange()})} tabindex="-1"><slot name="increment-number-stepper"><sd-6-28-1-icon library="_internal" name="plus-circle" label="Decrease value" class="${a(c,d,o)}"></sd-6-28-1-icon></slot></button></div>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${a("text-sm mt-1",u&&!this.showInvalidStyle?"block":"hidden",this.visuallyDisabled||this.disabled?"text-neutral-500":"text-neutral-700")}" aria-hidden="${!u||this.showInvalidStyle}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};t.styles=[...x.styles,D`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
- :host{position:relative;box-sizing:border-box;display:inline-block;width:100%;text-align:left}:host([vertical]){display:block}:host([required]) :is(#label,#floating-label)::after{content:' *'}:host([visually-disabled]) input{caret-color:transparent}details summary::-webkit-details-marker{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=time]::-webkit-calendar-picker-indicator{background:0 0;display:none;-webkit-appearance:none}details summary::-webkit-details-marker,input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}.stepper-button[disabled] sd-6-28-1-icon{color:rgba(var(--sd-color-text-neutral-500))}.hide-password-toggle{display:none}.has-floating-label input[type=date]:not(.has-value),.has-floating-label input[type=datetime-local]:not(.has-value),.has-floating-label input[type=time]:not(.has-value){color:transparent}.has-floating-label input[type=date]:focus,.has-floating-label input[type=datetime-local]:focus,.has-floating-label input[type=time]:focus{color:inherit}.icon-color{color:rgba(var(--sd-form-control-color-icon-fill))}`],i([w("#input")],t.prototype,"input",2),i([w("#invalid-message")],t.prototype,"invalidMessage",2),i([m()],t.prototype,"hasFocus",2),i([m()],t.prototype,"showValidStyle",2),i([m()],t.prototype,"showInvalidStyle",2),i([m()],t.prototype,"isClickableIconFocused",2),i([l({type:String,reflect:!0})],t.prototype,"type",2),i([l({type:String,reflect:!0})],t.prototype,"size",2),i([l({type:String,reflect:!0})],t.prototype,"inputmode",2),i([l()],t.prototype,"value",2),i([A()],t.prototype,"defaultValue",2),i([l({type:String,reflect:!0})],t.prototype,"placeholder",2),i([l({type:String,reflect:!0})],t.prototype,"label",2),i([l({type:String,attribute:"help-text",reflect:!0})],t.prototype,"helpText",2),i([l({type:Boolean,reflect:!0})],t.prototype,"clearable",2),i([l({type:Boolean,reflect:!0})],t.prototype,"disabled",2),i([l({type:Boolean,reflect:!0,attribute:"visually-disabled"})],t.prototype,"visuallyDisabled",2),i([l({type:Boolean,reflect:!0})],t.prototype,"readonly",2),i([l({attribute:"password-toggle",type:Boolean,reflect:!0})],t.prototype,"passwordToggle",2),i([l({attribute:"password-visible",type:Boolean,reflect:!0})],t.prototype,"passwordVisible",2),i([l({attribute:"spin-buttons",type:Boolean,reflect:!0})],t.prototype,"spinButtons",2),i([l({type:Number,reflect:!0})],t.prototype,"minlength",2),i([l({type:Number,reflect:!0})],t.prototype,"maxlength",2),i([l({reflect:!0})],t.prototype,"min",2),i([l({reflect:!0})],t.prototype,"max",2),i([l({type:String,reflect:!0})],t.prototype,"form",2),i([l({type:String,reflect:!0})],t.prototype,"name",2),i([l({type:String,reflect:!0})],t.prototype,"title",2),i([l({type:Boolean,reflect:!0})],t.prototype,"required",2),i([l({attribute:"floating-label",type:Boolean,reflect:!0})],t.prototype,"floatingLabel",2),i([l()],t.prototype,"pattern",2),i([l({reflect:!0})],t.prototype,"step",2),i([l({type:String,reflect:!0})],t.prototype,"autocapitalize",2),i([l({type:String,reflect:!0})],t.prototype,"autocorrect",2),i([l({reflect:!0})],t.prototype,"autocomplete",2),i([l({type:Boolean,reflect:!0})],t.prototype,"autofocus",2),i([l({type:String,reflect:!0})],t.prototype,"enterkeyhint",2),i([l({type:Boolean,reflect:!0,attribute:"style-on-valid"})],t.prototype,"styleOnValid",2),i([l({type:Boolean,converter:{fromAttribute:e=>!(!e||e==="false"),toAttribute:e=>e?"true":"false"}})],t.prototype,"spellcheck",2),i([b("disabled",{waitUntilFirstUpdate:!0})],t.prototype,"handleDisabledChange",1),i([b("step",{waitUntilFirstUpdate:!0})],t.prototype,"handleStepChange",1),i([b("value",{waitUntilFirstUpdate:!0})],t.prototype,"handleValueChange",1),i([b(["size","floatingLabel"])],t.prototype,"handleSizeChange",1),t=i([E("sd-6-28-1-input")],t);export{t as a};
1
+ import{a as N}from"./chunk.ICEC5PGK.js";import{a as B}from"./chunk.SAEYIL5V.js";import{a as A}from"./chunk.ERP45OHF.js";import{b as z}from"./chunk.LZRL7OLU.js";import{a as n}from"./chunk.LHSR56PH.js";import{a as M}from"./chunk.CGQ2BPPZ.js";import{a as P,b as V}from"./chunk.QQD62QOV.js";import{a as T}from"./chunk.VAM5SM3O.js";import{a}from"./chunk.4ZZFYCXX.js";import{a as b}from"./chunk.NYKJXI3Q.js";import{a as E,b as l,c as m,d as w,h as x}from"./chunk.NFQGEN2R.js";import{b as D,e as r,h as F,i as L}from"./chunk.OBAEIKIV.js";import{a as k,e as i}from"./chunk.6EV4YU6C.js";var $=class extends N{constructor(e){super(e);this.handlePointerDown=e=>{e.button!==0||this.host.disabled||this.spinOnLongPressCallback(e)};this.handlePointerUp=e=>{e==null||e.preventDefault(),e==null||e.stopPropagation(),this.timeout&&this.callbacks.start(),this.stopSpinningAndCleanUp(),this.callbacks.end(),document.removeEventListener("pointerup",this.handlePointerUp)};if(e.type!==P.ELEMENT||!(e.element instanceof HTMLButtonElement))throw new Error("The `longPress` directive must be used on an HTMLButtonElement.")}render(e){return L}update(e,[s]){return this.callbacks===void 0&&this.host===void 0&&(this.host=e.element,this.callbacks=k({},s),this.host.addEventListener("pointerdown",this.handlePointerDown)),F}disconnected(){this.stopSpinningAndCleanUp(),this.host.removeEventListener("pointerdown",this.handlePointerDown),document.removeEventListener("pointerup",this.handlePointerUp)}spinOnLongPressCallback(e){var s;e.preventDefault(),e.stopPropagation(),this.timeout=setTimeout(()=>{this.timeout=void 0,this.interval=setInterval(()=>{this.callbacks.start()},50)},500),document.addEventListener("pointerup",this.handlePointerUp),(s=this.observer)==null||s.disconnect(),this.observer=new MutationObserver(u=>{u.forEach(p=>{p.attributeName==="disabled"&&this.stopSpinningAndCleanUp()})}),this.observer.observe(this.host,{attributes:!0})}stopSpinningAndCleanUp(){var e;clearInterval(this.interval),clearTimeout(this.timeout),(e=this.observer)==null||e.disconnect()}},C=V($);var _,R=(_=navigator.userAgentData)==null?void 0:_.brands.some(f=>f.brand.includes("Chromium")),J=R?!1:navigator.userAgent.includes("Firefox"),t=class extends x{constructor(){super(...arguments);this.formControlController=new z(this);this.hasSlotController=new M(this,"help-text","label","left","right","message","placeholder");this.localize=new T(this);this.hasFocus=!1;this.showValidStyle=!1;this.showInvalidStyle=!1;this.isClickableIconFocused=!1;this.type="text";this.size="lg";this.value="";this.defaultValue="";this.placeholder="";this.label="";this.helpText="";this.clearable=!1;this.disabled=!1;this.visuallyDisabled=!1;this.readonly=!1;this.passwordToggle=!1;this.passwordVisible=!1;this.spinButtons=!1;this.form="";this.name="";this.title="";this.required=!1;this.floatingLabel=!1;this.styleOnValid=!1;this.spellcheck=!0}get valueAsDate(){var e,s;return(s=(e=this.input)==null?void 0:e.valueAsDate)!=null?s:null}set valueAsDate(e){let s=document.createElement("input");s.type="date",s.valueAsDate=e,this.value=s.value}get valueAsNumber(){var e,s;return(s=(e=this.input)==null?void 0:e.valueAsNumber)!=null?s:parseFloat(this.value)}set valueAsNumber(e){let s=document.createElement("input");s.type="number",s.valueAsNumber=e,this.value=s.value}get validity(){return this.input.validity}firstUpdated(){this.formControlController.updateValidity()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.input.value,this.emit("sd-change")}handleClearClick(e){this.value="",this.emit("sd-clear"),this.emit("sd-input"),this.emit("sd-change"),this.input.focus(),e.stopPropagation()}handleSearchClick(e){this.emit("sd-search"),e.stopPropagation()}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){if(this.visuallyDisabled){this.input.value=this.value;return}this.value=this.input.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(e){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(e),this.invalidMessage.textContent=e.target.validationMessage}handleKeyDown(e){let s=e.metaKey||e.ctrlKey||e.shiftKey||e.altKey;e.key==="Enter"&&!s&&setTimeout(()=>{!e.defaultPrevented&&!e.isComposing&&this.formControlController.submit()})}handlePasswordToggle(){this.passwordVisible=!this.passwordVisible}handleClickableIconFocusIn(){this.isClickableIconFocused=!0}handleClickableIconFocusOut(){this.isClickableIconFocused=!1}isDecrementDisabled(){if(this.disabled||this.readonly)return!0;if(this.min===void 0||this.min===null)return!1;let e=typeof this.min=="string"?parseFloat(this.min):this.min;return this.valueAsNumber<=e}isIncrementDisabled(){if(this.disabled||this.readonly)return!0;if(this.max===void 0||this.max===null)return!1;let e=typeof this.max=="string"?parseFloat(this.max):this.max;return this.valueAsNumber>=e}handleStep(){this.handleInput(),this.input.focus()}handleStepUp(){this.stepUp(),this.handleStep()}handleStepDown(){this.stepDown(),this.handleStep()}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleStepChange(){this.input.step=String(this.step),this.formControlController.updateValidity()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity()}handleSizeChange(){this.size=this.floatingLabel&&this.size==="sm"?"md":this.size}focus(e){this.input.focus(e)}blur(){this.input.blur()}select(){this.input.select()}setSelectionRange(e,s,u="none"){this.input.setSelectionRange(e,s,u)}setRangeText(e,s,u,p){this.input.setRangeText(e,s,u,p),this.value!==this.input.value&&(this.value=this.input.value)}showPicker(){"showPicker"in HTMLInputElement.prototype&&this.input.showPicker()}stepUp(){this.input.stepUp(),this.value!==this.input.value&&(this.value=this.input.value)}stepDown(){this.input.stepDown(),this.value!==this.input.value&&(this.value=this.input.value)}checkValidity(){var e;return(e=this.input)==null?void 0:e.checkValidity()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.input.reportValidity()}setCustomValidity(e){this.input.setCustomValidity(e),this.formControlController.updateValidity()}render(){let e={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text"),description:this.hasSlotController.test("description"),left:this.hasSlotController.test("left"),right:this.hasSlotController.test("right"),tooltip:this.hasSlotController.test("tooltip")},s=this.label?!0:!!e.label,u=this.helpText?!0:!!e.helpText,p=this.clearable&&!this.readonly&&(typeof this.value=="number"||this.value.length>0),O=!!e.tooltip,S=e.left,v=this.value!==null&&String(this.value).length>0,h=this.floatingLabel&&s&&(this.hasFocus||v||this.isClickableIconFocused),y=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",g=this.size==="sm"?"text-sm":"text-base",U={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"}[y],c=this.disabled||this.visuallyDisabled?"text-neutral-500":"icon-color",d={sm:"ml-1",md:"ml-2",lg:"ml-2"}[this.size],o={sm:"text-base",md:"text-lg",lg:"text-xl"}[this.size],K=this.size==="lg"?this.floatingLabel?h?"py-3":"py-4":"py-2":this.floatingLabel?h?"py-2":"py-3":"py-1",q={sm:"left-[36px]",md:"left-[44px]",lg:"left-12"}[this.size];return r`<div part="form-control" class="${a((this.disabled||this.visuallyDisabled)&&"cursor-not-allowed")}">${(s||O)&&!this.floatingLabel?r`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${a(s?"inline-block":"hidden",g,this.visuallyDisabled||this.disabled?"text-neutral-500":" form-control-color-text")}" for="input" aria-hidden="${s?"false":"true"}"><slot name="label">${this.label}</slot></label> ${e.tooltip?r`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${a("relative w-full",this.disabled&&"pointer-events-none",this.visuallyDisabled&&"cursor-not-allowed")}"><div part="border" class="${a("absolute w-full h-full pointer-events-none border form-control-border-radius transition-[border] ease-in-out duration-medium hover:duration-fast",U)}"></div><div part="base" class="${a("px-4 flex flex-row items-center form-control-border-radius transition-colors ease-in-out duration-medium hover:duration-fast",this.floatingLabel&&"has-floating-label",!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",["disabled","visuallyDisabled"].includes(y)?"text-neutral-500":"text-black",["invalid","activeInvalid"].includes(y)&&"form-control--invalid-color-background",K)}">${e.left?r`<slot name="left" part="left" class="${a("inline-flex",this.size==="sm"?"mr-1":"mr-2",c,o)}"></slot>`:""} <input part="input" id="input" class="${a("min-w-0 flex-grow focus:outline-none bg-transparent",this.visuallyDisabled||this.disabled?"placeholder:text-neutral-500 cursor-not-allowed":"placeholder:text-neutral-700",this.size==="sm"?h?"h-4":"h-6":h?"h-6":"h-8",g,h&&"leading-none mt-4")}" type="${this.type==="password"&&this.passwordVisible?"text":this.type}" title="${this.title}" name="${n(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${!this.floatingLabel||h?n(this.placeholder):""}" minlength="${n(this.minlength)}" maxlength="${n(this.maxlength)}" min="${n(this.min)}" max="${n(this.max)}" step="${n(this.step)}" .value="${B(this.value)}" autocapitalize="${n(this.type==="password"?"off":this.autocapitalize)}" autocomplete="${n(this.autocomplete)}" autocorrect="${n(this.type==="password"?"off":this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${n(this.pattern)}" enterkeyhint="${n(this.enterkeyhint)}" inputmode="${n(this.inputmode)}" aria-describedby="help-text invalid-message" aria-disabled="${this.visuallyDisabled||this.disabled?"true":"false"}" aria-invalid="${this.showInvalidStyle}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${s&&this.floatingLabel?r`<label part="form-control-floating-label" class="${a("pointer-events-none absolute",S?q:"left-4",!this.readonly&&"transition-all duration-medium ease-out",!h||!v&&(this.readonly||this.visuallyDisabled)?"top-1/2 -translate-y-1/2 form-control-color-text":this.size==="lg"?"top-2":"top-1")}" for="input" aria-hidden="${s?"false":"true"}"><span id="floating-label" class="${a("pointer-events-none leading-none",!this.readonly&&"transition-all duration-medium ease-out",!h||!v&&(this.readonly||this.visuallyDisabled)?g:"text-xs",(this.visuallyDisabled||this.disabled)&&"text-neutral-500",h&&!this.visuallyDisabled&&!this.disabled&&"form-control--filled__floating-label-color-text")}">${this.label}</span></label>`:null} ${p?r`<button part="clear-button" class="${a("flex justify-center",d)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-6-28-2-icon class="${a(this.disabled||this.visuallyDisabled?"text-neutral-500":"text-neutral-700",o)}" library="_internal" name="closing-round"></sd-6-28-2-icon></slot></button>`:""} ${this.passwordToggle&&this.type==="password"?r`<button aria-label="${this.localize.term(this.passwordVisible?"hidePassword":"showPassword")}" part="password-toggle-button" class="${a("flex items-center sd-interactive",d,this.floatingLabel&&!h&&"hide-password-toggle")}" type="button" @click="${this.handlePasswordToggle}" @mousedown="${this.handleClickableIconFocusIn}" @focus="${()=>this.handleClickableIconFocusIn()}" @blur="${this.handleClickableIconFocusOut}">${this.passwordVisible?r`<slot name="show-password-icon"><sd-6-28-2-icon class="${a(c,o)}" library="_internal" name="eye"></sd-6-28-2-icon></slot>`:r`<slot name="hide-password-icon"><sd-6-28-2-icon class="${a(c,o)}" library="_internal" name="eye-crossed-out"></sd-6-28-2-icon></slot>`}</button>`:""} ${(this.type==="date"||this.type==="datetime-local")&&!J?r`<sd-6-28-2-icon class="${a(c,d,o)}" library="_internal" name="calendar"></sd-6-28-2-icon>`:""} ${this.type==="time"?r`<sd-6-28-2-icon class="${a(c,d,o)}" library="_internal" name="clock"></sd-6-28-2-icon>`:""} ${this.type==="search"?r`<button class="${a("flex items-center sd-interactive",d)}" type="button" @click="${this.handleSearchClick}"><sd-6-28-2-icon class="${a(c,o)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-6-28-2-icon></button>`:""} ${this.showInvalidStyle?r`<sd-6-28-2-icon part="invalid-icon" class="${a("text-error",d,o)}" library="_internal" name="risk"></sd-6-28-2-icon>`:""} ${this.showValidStyle&&this.styleOnValid?r`<sd-6-28-2-icon class="${a("text-success flex-shrink-0",d,o)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-6-28-2-icon>`:""} ${e.right?r`<slot name="right" part="right" class="${a("inline-flex",c,d,o)}"></slot>`:""} ${this.type==="number"&&this.spinButtons?r`<div part="stepper" class="flex items-center"><button part="decrement-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isDecrementDisabled()}" aria-hidden="true" ${C({start:()=>this.handleStepDown(),end:()=>this.handleChange()})} tabindex="-1" @mousedown="${this.handleClickableIconFocusIn}" @focus="${()=>this.handleClickableIconFocusIn()}" @blur="${this.handleClickableIconFocusOut}"><slot name="decrement-number-stepper"><sd-6-28-2-icon library="_internal" name="minus-circle" label="Decrease value" class="${a(c,d,o)}"></sd-6-28-2-icon></slot></button> <button part="increment-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isIncrementDisabled()}" aria-hidden="true" ${C({start:()=>this.handleStepUp(),end:()=>this.handleChange()})} tabindex="-1"><slot name="increment-number-stepper"><sd-6-28-2-icon library="_internal" name="plus-circle" label="Decrease value" class="${a(c,d,o)}"></sd-6-28-2-icon></slot></button></div>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${a("text-sm mt-1",u&&!this.showInvalidStyle?"block":"hidden",this.visuallyDisabled||this.disabled?"text-neutral-500":"text-neutral-700")}" aria-hidden="${!u||this.showInvalidStyle}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`}};t.styles=[...x.styles,D`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
2
+ :host{position:relative;box-sizing:border-box;display:inline-block;width:100%;text-align:left}:host([vertical]){display:block}:host([required]) :is(#label,#floating-label)::after{content:' *'}:host([visually-disabled]) input{caret-color:transparent}details summary::-webkit-details-marker{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=time]::-webkit-calendar-picker-indicator{background:0 0;display:none;-webkit-appearance:none}details summary::-webkit-details-marker,input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}.stepper-button[disabled] sd-6-28-2-icon{color:rgba(var(--sd-color-text-neutral-500))}.hide-password-toggle{display:none}.has-floating-label input[type=date]:not(.has-value),.has-floating-label input[type=datetime-local]:not(.has-value),.has-floating-label input[type=time]:not(.has-value){color:transparent}.has-floating-label input[type=date]:focus,.has-floating-label input[type=datetime-local]:focus,.has-floating-label input[type=time]:focus{color:inherit}.icon-color{color:rgba(var(--sd-form-control-color-icon-fill))}`],i([w("#input")],t.prototype,"input",2),i([w("#invalid-message")],t.prototype,"invalidMessage",2),i([m()],t.prototype,"hasFocus",2),i([m()],t.prototype,"showValidStyle",2),i([m()],t.prototype,"showInvalidStyle",2),i([m()],t.prototype,"isClickableIconFocused",2),i([l({type:String,reflect:!0})],t.prototype,"type",2),i([l({type:String,reflect:!0})],t.prototype,"size",2),i([l({type:String,reflect:!0})],t.prototype,"inputmode",2),i([l()],t.prototype,"value",2),i([A()],t.prototype,"defaultValue",2),i([l({type:String,reflect:!0})],t.prototype,"placeholder",2),i([l({type:String,reflect:!0})],t.prototype,"label",2),i([l({type:String,attribute:"help-text",reflect:!0})],t.prototype,"helpText",2),i([l({type:Boolean,reflect:!0})],t.prototype,"clearable",2),i([l({type:Boolean,reflect:!0})],t.prototype,"disabled",2),i([l({type:Boolean,reflect:!0,attribute:"visually-disabled"})],t.prototype,"visuallyDisabled",2),i([l({type:Boolean,reflect:!0})],t.prototype,"readonly",2),i([l({attribute:"password-toggle",type:Boolean,reflect:!0})],t.prototype,"passwordToggle",2),i([l({attribute:"password-visible",type:Boolean,reflect:!0})],t.prototype,"passwordVisible",2),i([l({attribute:"spin-buttons",type:Boolean,reflect:!0})],t.prototype,"spinButtons",2),i([l({type:Number,reflect:!0})],t.prototype,"minlength",2),i([l({type:Number,reflect:!0})],t.prototype,"maxlength",2),i([l({reflect:!0})],t.prototype,"min",2),i([l({reflect:!0})],t.prototype,"max",2),i([l({type:String,reflect:!0})],t.prototype,"form",2),i([l({type:String,reflect:!0})],t.prototype,"name",2),i([l({type:String,reflect:!0})],t.prototype,"title",2),i([l({type:Boolean,reflect:!0})],t.prototype,"required",2),i([l({attribute:"floating-label",type:Boolean,reflect:!0})],t.prototype,"floatingLabel",2),i([l()],t.prototype,"pattern",2),i([l({reflect:!0})],t.prototype,"step",2),i([l({type:String,reflect:!0})],t.prototype,"autocapitalize",2),i([l({type:String,reflect:!0})],t.prototype,"autocorrect",2),i([l({reflect:!0})],t.prototype,"autocomplete",2),i([l({type:Boolean,reflect:!0})],t.prototype,"autofocus",2),i([l({type:String,reflect:!0})],t.prototype,"enterkeyhint",2),i([l({type:Boolean,reflect:!0,attribute:"style-on-valid"})],t.prototype,"styleOnValid",2),i([l({type:Boolean,converter:{fromAttribute:e=>!(!e||e==="false"),toAttribute:e=>e?"true":"false"}})],t.prototype,"spellcheck",2),i([b("disabled",{waitUntilFirstUpdate:!0})],t.prototype,"handleDisabledChange",1),i([b("step",{waitUntilFirstUpdate:!0})],t.prototype,"handleStepChange",1),i([b("value",{waitUntilFirstUpdate:!0})],t.prototype,"handleValueChange",1),i([b(["size","floatingLabel"])],t.prototype,"handleSizeChange",1),t=i([E("sd-6-28-2-input")],t);export{t as a};