@solid-design-system/components 5.1.0 → 5.2.0

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 (237) hide show
  1. package/cdn/chunks/chunk.BV574DRQ.js +1 -0
  2. package/cdn/components/scrollable/scrollable.js +1 -1
  3. package/cdn/custom-elements.json +1 -1
  4. package/cdn/solid-components.bundle.js +1 -1
  5. package/cdn/solid-components.iife.js +1 -1
  6. package/cdn/solid-components.js +1 -1
  7. package/cdn/web-types.json +1 -1
  8. package/cdn-versioned/_components/menu/menu.js +1 -1
  9. package/cdn-versioned/_components/menu/menu.styles.js +1 -1
  10. package/cdn-versioned/_components/menu-item/menu-item.js +2 -2
  11. package/cdn-versioned/chunks/chunk.2SOEBGDS.js +1 -1
  12. package/cdn-versioned/chunks/chunk.3AEOVI4V.js +1 -1
  13. package/cdn-versioned/chunks/chunk.4336N4TN.js +4 -4
  14. package/cdn-versioned/chunks/chunk.466HB7MH.js +1 -1
  15. package/cdn-versioned/chunks/chunk.54XQKZNU.js +1 -1
  16. package/cdn-versioned/chunks/chunk.5I76HTXX.js +1 -1
  17. package/cdn-versioned/chunks/chunk.5SNCMR36.js +1 -1
  18. package/cdn-versioned/chunks/chunk.6HLS5XU2.js +1 -1
  19. package/cdn-versioned/chunks/chunk.6OJK4N6O.js +1 -1
  20. package/cdn-versioned/chunks/chunk.7LHKLE4G.js +1 -1
  21. package/cdn-versioned/chunks/chunk.7RCSPRWP.js +1 -1
  22. package/cdn-versioned/chunks/chunk.7SJEXZSM.js +1 -1
  23. package/cdn-versioned/chunks/chunk.AFKPYWS5.js +4 -4
  24. package/cdn-versioned/chunks/chunk.AMKBNS7H.js +1 -1
  25. package/cdn-versioned/chunks/chunk.BV574DRQ.js +1 -0
  26. package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
  27. package/cdn-versioned/chunks/chunk.EVLY2HWM.js +1 -1
  28. package/cdn-versioned/chunks/chunk.FY4ZQ25C.js +1 -1
  29. package/cdn-versioned/chunks/chunk.HAYM6MTB.js +1 -1
  30. package/cdn-versioned/chunks/chunk.I4VI7CRD.js +1 -1
  31. package/cdn-versioned/chunks/chunk.IDX4RDHZ.js +1 -1
  32. package/cdn-versioned/chunks/chunk.KINWB3R6.js +1 -1
  33. package/cdn-versioned/chunks/chunk.KYWP646O.js +1 -1
  34. package/cdn-versioned/chunks/chunk.LQ5Q73YJ.js +1 -1
  35. package/cdn-versioned/chunks/chunk.LRTBIARY.js +1 -1
  36. package/cdn-versioned/chunks/chunk.M43SHSJ7.js +3 -3
  37. package/cdn-versioned/chunks/chunk.MFSX5MIZ.js +1 -1
  38. package/cdn-versioned/chunks/chunk.MHPWICL2.js +1 -1
  39. package/cdn-versioned/chunks/chunk.MNEGNJBN.js +2 -2
  40. package/cdn-versioned/chunks/chunk.OOE73LIA.js +1 -1
  41. package/cdn-versioned/chunks/chunk.ORM6LFSP.js +1 -1
  42. package/cdn-versioned/chunks/chunk.PIYHBRRO.js +1 -1
  43. package/cdn-versioned/chunks/chunk.PKL7HSML.js +1 -1
  44. package/cdn-versioned/chunks/chunk.PM4HPYFT.js +2 -2
  45. package/cdn-versioned/chunks/chunk.QCGZSSDL.js +1 -1
  46. package/cdn-versioned/chunks/chunk.QDPTVUAW.js +1 -1
  47. package/cdn-versioned/chunks/chunk.QHURAHWP.js +1 -1
  48. package/cdn-versioned/chunks/chunk.RYR5JMPR.js +1 -1
  49. package/cdn-versioned/chunks/chunk.T25YQB27.js +1 -1
  50. package/cdn-versioned/chunks/chunk.TUVJON3T.js +1 -1
  51. package/cdn-versioned/chunks/chunk.UUQIXQII.js +1 -1
  52. package/cdn-versioned/chunks/chunk.VYFYAVQV.js +1 -1
  53. package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
  54. package/cdn-versioned/chunks/chunk.WHJMIN4O.js +1 -1
  55. package/cdn-versioned/chunks/chunk.XLPONTTF.js +1 -1
  56. package/cdn-versioned/chunks/chunk.Y63VGL2X.js +1 -1
  57. package/cdn-versioned/chunks/chunk.YBDULCI5.js +1 -1
  58. package/cdn-versioned/chunks/chunk.Z7R4W5J7.js +1 -1
  59. package/cdn-versioned/chunks/chunk.ZGWHWNN7.js +1 -1
  60. package/cdn-versioned/chunks/chunk.ZHIT75AP.js +1 -1
  61. package/cdn-versioned/chunks/chunk.ZIXORQQN.js +1 -1
  62. package/cdn-versioned/chunks/chunk.ZUSDFNOR.js +1 -1
  63. package/cdn-versioned/chunks/chunk.ZWRWVYOC.js +1 -1
  64. package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
  65. package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  66. package/cdn-versioned/components/animation/animation.d.ts +1 -1
  67. package/cdn-versioned/components/audio/audio.d.ts +1 -1
  68. package/cdn-versioned/components/badge/badge.d.ts +1 -1
  69. package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
  70. package/cdn-versioned/components/button/button.d.ts +1 -1
  71. package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
  72. package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
  73. package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  74. package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
  75. package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  76. package/cdn-versioned/components/combobox/combobox.d.ts +1 -1
  77. package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
  78. package/cdn-versioned/components/divider/divider.d.ts +1 -1
  79. package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
  80. package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
  81. package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
  82. package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
  83. package/cdn-versioned/components/header/header.d.ts +1 -1
  84. package/cdn-versioned/components/icon/icon.d.ts +1 -1
  85. package/cdn-versioned/components/include/include.d.ts +1 -1
  86. package/cdn-versioned/components/input/input.d.ts +1 -1
  87. package/cdn-versioned/components/link/link.d.ts +1 -1
  88. package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
  89. package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  90. package/cdn-versioned/components/notification/notification.d.ts +1 -1
  91. package/cdn-versioned/components/optgroup/optgroup.d.ts +2 -2
  92. package/cdn-versioned/components/option/option.d.ts +1 -1
  93. package/cdn-versioned/components/popup/popup.d.ts +1 -1
  94. package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
  95. package/cdn-versioned/components/radio/radio.d.ts +1 -1
  96. package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
  97. package/cdn-versioned/components/radio-group/radio-group.d.ts +2 -2
  98. package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
  99. package/cdn-versioned/components/scrollable/scrollable.js +1 -1
  100. package/cdn-versioned/components/select/select.d.ts +1 -1
  101. package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
  102. package/cdn-versioned/components/step/step.d.ts +1 -1
  103. package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
  104. package/cdn-versioned/components/switch/switch.d.ts +1 -1
  105. package/cdn-versioned/components/tab/tab.d.ts +1 -1
  106. package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
  107. package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  108. package/cdn-versioned/components/tag/tag.d.ts +1 -1
  109. package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
  110. package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
  111. package/cdn-versioned/components/video/video.d.ts +1 -1
  112. package/cdn-versioned/custom-elements.json +211 -211
  113. package/cdn-versioned/internal/form.js +3 -3
  114. package/cdn-versioned/solid-components.bundle.js +17 -17
  115. package/cdn-versioned/solid-components.css +2 -2
  116. package/cdn-versioned/solid-components.iife.js +17 -17
  117. package/cdn-versioned/solid-components.js +1 -1
  118. package/cdn-versioned/vscode.html-custom-data.json +80 -80
  119. package/cdn-versioned/web-types.json +137 -137
  120. package/dist/chunks/{chunk.JK7S3JAQ.js → chunk.HPEQN7OA.js} +22 -6
  121. package/dist/components/scrollable/scrollable.js +1 -1
  122. package/dist/custom-elements.json +1 -1
  123. package/dist/solid-components.js +1 -1
  124. package/dist/web-types.json +1 -1
  125. package/dist-versioned/_components/menu/menu.js +1 -1
  126. package/dist-versioned/_components/menu/menu.styles.js +1 -1
  127. package/dist-versioned/_components/menu-item/menu-item.js +2 -2
  128. package/dist-versioned/chunks/chunk.25JYDDEL.js +2 -2
  129. package/dist-versioned/chunks/chunk.2KW3OQK3.js +1 -1
  130. package/dist-versioned/chunks/chunk.2XYOJHUN.js +2 -2
  131. package/dist-versioned/chunks/chunk.4JIUFSXL.js +1 -1
  132. package/dist-versioned/chunks/chunk.4X5KLZKG.js +2 -2
  133. package/dist-versioned/chunks/chunk.57IRQB22.js +5 -5
  134. package/dist-versioned/chunks/chunk.5E7OOWFM.js +2 -2
  135. package/dist-versioned/chunks/chunk.5HB4AZFH.js +11 -11
  136. package/dist-versioned/chunks/chunk.67HGWRDC.js +3 -3
  137. package/dist-versioned/chunks/chunk.6BPYGYKJ.js +1 -1
  138. package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
  139. package/dist-versioned/chunks/chunk.6MIVTHPW.js +26 -26
  140. package/dist-versioned/chunks/chunk.7A77E2WF.js +3 -3
  141. package/dist-versioned/chunks/chunk.AD7FTSCZ.js +2 -2
  142. package/dist-versioned/chunks/chunk.ASKGMA6Q.js +1 -1
  143. package/dist-versioned/chunks/chunk.CY7STHBY.js +5 -5
  144. package/dist-versioned/chunks/chunk.DFQ36XHY.js +2 -2
  145. package/dist-versioned/chunks/chunk.DPVQIW2K.js +5 -5
  146. package/dist-versioned/chunks/chunk.EH5YMA4E.js +5 -5
  147. package/dist-versioned/chunks/chunk.EOLWJNLD.js +3 -3
  148. package/dist-versioned/chunks/chunk.EQXVKF2G.js +2 -2
  149. package/dist-versioned/chunks/chunk.FA2PSB3G.js +6 -6
  150. package/dist-versioned/chunks/chunk.FZYBHAXZ.js +14 -14
  151. package/dist-versioned/chunks/chunk.GCBWRTSA.js +4 -4
  152. package/dist-versioned/chunks/chunk.GIDPKVNI.js +1 -1
  153. package/dist-versioned/chunks/{chunk.JK7S3JAQ.js → chunk.HPEQN7OA.js} +29 -13
  154. package/dist-versioned/chunks/chunk.I5QIVC43.js +3 -3
  155. package/dist-versioned/chunks/chunk.IUBULF5H.js +1 -1
  156. package/dist-versioned/chunks/chunk.JNTYSC5E.js +1 -1
  157. package/dist-versioned/chunks/chunk.JQ4VVB6S.js +2 -2
  158. package/dist-versioned/chunks/chunk.KPGT5KTE.js +4 -4
  159. package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
  160. package/dist-versioned/chunks/chunk.LO2A6JZJ.js +2 -2
  161. package/dist-versioned/chunks/chunk.LVZUFX7G.js +1 -1
  162. package/dist-versioned/chunks/chunk.MGN6UKEO.js +5 -5
  163. package/dist-versioned/chunks/chunk.MTWZ3KVK.js +1 -1
  164. package/dist-versioned/chunks/chunk.NG6H4NIH.js +2 -2
  165. package/dist-versioned/chunks/chunk.NTCYC424.js +1 -1
  166. package/dist-versioned/chunks/chunk.QJGXEBXI.js +13 -13
  167. package/dist-versioned/chunks/chunk.TIB22UHZ.js +6 -6
  168. package/dist-versioned/chunks/chunk.TJBA6JWN.js +1 -1
  169. package/dist-versioned/chunks/chunk.TYVXH7ZW.js +9 -9
  170. package/dist-versioned/chunks/chunk.U6ZVQYN2.js +1 -1
  171. package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
  172. package/dist-versioned/chunks/chunk.UT2PBNPH.js +2 -2
  173. package/dist-versioned/chunks/chunk.UUW3B5S5.js +2 -2
  174. package/dist-versioned/chunks/chunk.W5BEGOS2.js +3 -3
  175. package/dist-versioned/chunks/chunk.XAOH7E5Y.js +2 -2
  176. package/dist-versioned/chunks/chunk.XQPSZT7C.js +2 -2
  177. package/dist-versioned/chunks/chunk.Z2TW3FW6.js +1 -1
  178. package/dist-versioned/chunks/chunk.Z7OTCKNY.js +2 -2
  179. package/dist-versioned/chunks/chunk.ZQKFSIZX.js +1 -1
  180. package/dist-versioned/chunks/chunk.ZU6B6J6V.js +24 -24
  181. package/dist-versioned/components/accordion/accordion.d.ts +1 -1
  182. package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  183. package/dist-versioned/components/animation/animation.d.ts +1 -1
  184. package/dist-versioned/components/audio/audio.d.ts +1 -1
  185. package/dist-versioned/components/badge/badge.d.ts +1 -1
  186. package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
  187. package/dist-versioned/components/button/button.d.ts +1 -1
  188. package/dist-versioned/components/button-group/button-group.d.ts +1 -1
  189. package/dist-versioned/components/carousel/carousel.d.ts +1 -1
  190. package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  191. package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
  192. package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  193. package/dist-versioned/components/combobox/combobox.d.ts +1 -1
  194. package/dist-versioned/components/dialog/dialog.d.ts +1 -1
  195. package/dist-versioned/components/divider/divider.d.ts +1 -1
  196. package/dist-versioned/components/drawer/drawer.d.ts +1 -1
  197. package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
  198. package/dist-versioned/components/expandable/expandable.d.ts +1 -1
  199. package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
  200. package/dist-versioned/components/header/header.d.ts +1 -1
  201. package/dist-versioned/components/icon/icon.d.ts +1 -1
  202. package/dist-versioned/components/include/include.d.ts +1 -1
  203. package/dist-versioned/components/input/input.d.ts +1 -1
  204. package/dist-versioned/components/link/link.d.ts +1 -1
  205. package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
  206. package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  207. package/dist-versioned/components/notification/notification.d.ts +1 -1
  208. package/dist-versioned/components/optgroup/optgroup.d.ts +2 -2
  209. package/dist-versioned/components/option/option.d.ts +1 -1
  210. package/dist-versioned/components/popup/popup.d.ts +1 -1
  211. package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
  212. package/dist-versioned/components/radio/radio.d.ts +1 -1
  213. package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
  214. package/dist-versioned/components/radio-group/radio-group.d.ts +2 -2
  215. package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
  216. package/dist-versioned/components/scrollable/scrollable.js +1 -1
  217. package/dist-versioned/components/select/select.d.ts +1 -1
  218. package/dist-versioned/components/spinner/spinner.d.ts +1 -1
  219. package/dist-versioned/components/step/step.d.ts +1 -1
  220. package/dist-versioned/components/step-group/step-group.d.ts +1 -1
  221. package/dist-versioned/components/switch/switch.d.ts +1 -1
  222. package/dist-versioned/components/tab/tab.d.ts +1 -1
  223. package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
  224. package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  225. package/dist-versioned/components/tag/tag.d.ts +1 -1
  226. package/dist-versioned/components/textarea/textarea.d.ts +1 -1
  227. package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
  228. package/dist-versioned/components/video/video.d.ts +1 -1
  229. package/dist-versioned/custom-elements.json +211 -211
  230. package/dist-versioned/internal/form.js +3 -3
  231. package/dist-versioned/solid-components.css +2 -2
  232. package/dist-versioned/solid-components.js +1 -1
  233. package/dist-versioned/vscode.html-custom-data.json +80 -80
  234. package/dist-versioned/web-types.json +137 -137
  235. package/package.json +2 -2
  236. package/cdn/chunks/chunk.66GOZEE4.js +0 -1
  237. package/cdn-versioned/chunks/chunk.66GOZEE4.js +0 -1
@@ -1 +1 @@
1
- import{a as z}from"./chunk.64UNKF45.js";import{c as I}from"./chunk.3L472FD4.js";import{a as u,c as m}from"./chunk.SKUMYG4O.js";import{a as c}from"./chunk.KLRPP4NQ.js";import{a as O}from"./chunk.DEXOQON7.js";import{a as D}from"./chunk.26V4EXHB.js";import{a as K}from"./chunk.E2DRD2OX.js";import{a as C,b as o,d as l,h as p}from"./chunk.RYR5JMPR.js";import{b as M,e as A}from"./chunk.UWPDCU52.js";import{b as d,e as h}from"./chunk.6OTM3PE5.js";import{e as i}from"./chunk.TJOCV4DC.js";var n=class extends p{constructor(){super(...arguments);this.localize=new O(this);this.open=!1;this.rounded=!1;this.placement="bottom-start";this.disabled=!1;this.stayOpenOnSelect=!1;this.distance=0;this.skidding=0;this.noAutoSize=!1;this.noFlip=!1;this.hoist=!1}connectedCallback(){super.connectedCallback(),this.handleMenuItemActivate=this.handleMenuItemActivate.bind(this),this.handlePanelSelect=this.handlePanelSelect.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.handleDocumentMouseDown=this.handleDocumentMouseDown.bind(this),this.containingElement||(this.containingElement=this)}firstUpdated(){this.panel.hidden=!this.open,this.open&&(this.addOpenListeners(),this.popup.active=!0)}disconnectedCallback(){super.disconnectedCallback(),this.removeOpenListeners(),this.hide()}getAccessibleTrigger(){let t=this.trigger.assignedElements({flatten:!0}).find(a=>z(a).start),s=null;if(t)switch(t.tagName.toLowerCase()){case"sd-5-1-0-button":case"sd-5-1-0-icon-button":s=t.button;break;case"sd-5-1-0-navigation-item":s=t.button;break;default:s=t}return s}updateAccessibleTrigger(){let e=this.getAccessibleTrigger();e&&(e.setAttribute("aria-haspopup","true"),e.setAttribute("aria-expanded",this.open?"true":"false"))}focusOnTrigger(){let e=this.getAccessibleTrigger();typeof(e==null?void 0:e.focus)=="function"&&e.focus()}getMenu(){return this.panel.assignedElements({flatten:!0}).find(e=>e.tagName.toLowerCase()==="sd-menu")}handleKeyDown(e){this.open&&e.key==="Escape"&&(e.stopPropagation(),this.hide(),this.focusOnTrigger())}handleDocumentKeyDown(e){var t;if(e.key==="Tab"){if(this.open&&((t=document.activeElement)==null?void 0:t.tagName.toLowerCase())==="sd-menu-item"){e.preventDefault(),this.hide(),this.focusOnTrigger();return}setTimeout(()=>{var a,r,f,g,y,w,b,E,v,k,T,L;let s=((y=(g=(f=(r=(a=document.activeElement)==null?void 0:a.shadowRoot)==null?void 0:r.activeElement)==null?void 0:f.shadowRoot)==null?void 0:g.activeElement)==null?void 0:y.getRootNode())instanceof ShadowRoot?(v=(E=(b=(w=document.activeElement)==null?void 0:w.shadowRoot)==null?void 0:b.activeElement)==null?void 0:E.shadowRoot)==null?void 0:v.activeElement:((k=this.containingElement)==null?void 0:k.getRootNode())instanceof ShadowRoot?(L=(T=document.activeElement)==null?void 0:T.shadowRoot)==null?void 0:L.activeElement:document.activeElement;(!this.containingElement||(s==null?void 0:s.closest(this.containingElement.tagName.toLowerCase()))!==this.containingElement)&&this.hide()})}}handleDocumentMouseDown(e){let t=e.composedPath();this.containingElement&&!t.includes(this.containingElement)&&this.hide()}handleMenuItemActivate(e){let t=e.target;I(t,this.panel)}handlePanelSelect(e){let t=e.target;!this.stayOpenOnSelect&&t.tagName.toLowerCase()==="sd-menu"&&(this.hide(),this.focusOnTrigger())}handleTriggerClick(){this.open?this.hide():this.show()}handleTriggerKeyDown(e){if(e.key==="Escape"&&this.open){e.stopPropagation(),this.focusOnTrigger(),this.hide();return}if([" ","Enter"].includes(e.key)){e.preventDefault(),this.handleTriggerClick();return}let t=this.getMenu();if(t){let s=t.defaultSlot.assignedElements({flatten:!0}),a=s[0],r=s[s.length-1];["ArrowDown","ArrowUp","Home","End"].includes(e.key)&&(e.preventDefault(),this.open||this.show(),s.length>0&&requestAnimationFrame(()=>{(e.key==="ArrowDown"||e.key==="Home")&&(t.setCurrentItem(a),a.focus()),(e.key==="ArrowUp"||e.key==="End")&&(t.setCurrentItem(r),r.focus())}))}}handleTriggerKeyUp(e){e.key===" "&&e.preventDefault()}handleTriggerSlotChange(){this.updateAccessibleTrigger()}async show(){if(!this.open)return this.open=!0,c(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,c(this,"sd-after-hide")}reposition(){this.popup.reposition()}addOpenListeners(){this.panel.addEventListener("sd-activate",this.handleMenuItemActivate),this.panel.addEventListener("sd-5-1-0-select",this.handlePanelSelect),this.panel.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){this.panel&&(this.panel.removeEventListener("sd-activate",this.handleMenuItemActivate),this.panel.removeEventListener("sd-5-1-0-select",this.handlePanelSelect),this.panel.removeEventListener("keydown",this.handleKeyDown)),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}async handleOpenChange(){if(this.disabled){this.open=!1;return}if(this.updateAccessibleTrigger(),this.open){this.emit("sd-show"),this.addOpenListeners(),await h(this),this.panel.hidden=!1,this.popup.active=!0;let{keyframes:e,options:t}=m(this,"dropdown.show",{dir:this.localize.dir()});await d(this.popup.popup,e,t),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await h(this);let{keyframes:e,options:t}=m(this,"dropdown.hide",{dir:this.localize.dir()});await d(this.popup.popup,e,t),this.panel.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}}render(){return A`<sd-5-1-0-popup part="base" id="dropdown" placement="${this.placement}" distance="${this.rounded&&this.distance<1?1:this.distance}" skidding="${this.skidding}" strategy="${this.hoist?"fixed":"absolute"}" ?flip="${!this.noFlip}" shift auto-size="vertical" auto-size-padding="10"><slot name="trigger" slot="anchor" part="trigger" class="block" @click="${this.handleTriggerClick}" @keydown="${this.handleTriggerKeyDown}" @keyup="${this.handleTriggerKeyUp}" @slotchange="${this.handleTriggerSlotChange}"></slot><slot part="panel" class="${D("shadow bg-white block",this.open?"pointer-events-auto":"pointer-events-none",this.rounded&&"rounded-md")}" aria-hidden="${this.open?"false":"true"}" aria-labelledby="dropdown"></slot></sd-5-1-0-popup>`}};n.styles=[...p.styles,M`:host{display:inline-block}#dropdown::part(popup){z-index:var(--sd-z-index-dropdown,900)}#dropdown[data-current-placement^=top]::part(popup){transform-origin:bottom}#dropdown[data-current-placement^=bottom]::part(popup){transform-origin:top}#dropdown[data-current-placement^=left]::part(popup){transform-origin:right}#dropdown[data-current-placement^=right]::part(popup){transform-origin:left}:host(:not([no-auto-size])) ::slotted(:not([slot=trigger])){max-height:var(--auto-size-available-height)!important;max-width:var(--auto-size-available-width)!important;overflow:auto}`],i([l("#dropdown")],n.prototype,"popup",2),i([l("[part=trigger]")],n.prototype,"trigger",2),i([l("[part=panel]")],n.prototype,"panel",2),i([o({type:Boolean,reflect:!0})],n.prototype,"open",2),i([o({type:Boolean,reflect:!0})],n.prototype,"rounded",2),i([o({type:String,reflect:!0})],n.prototype,"placement",2),i([o({type:Boolean,reflect:!0})],n.prototype,"disabled",2),i([o({attribute:"stay-open-on-select",type:Boolean,reflect:!0})],n.prototype,"stayOpenOnSelect",2),i([o({type:Object})],n.prototype,"containingElement",2),i([o({type:Number,reflect:!0})],n.prototype,"distance",2),i([o({type:Number,reflect:!0})],n.prototype,"skidding",2),i([o({type:Boolean,reflect:!0,attribute:"no-auto-size"})],n.prototype,"noAutoSize",2),i([o({type:Boolean,reflect:!0,attribute:"no-flip"})],n.prototype,"noFlip",2),i([o({type:Boolean,reflect:!0})],n.prototype,"hoist",2),i([K("open",{waitUntilFirstUpdate:!0})],n.prototype,"handleOpenChange",1),n=i([C("sd-5-1-0-dropdown")],n);u("dropdown.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});u("dropdown.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});export{n as a};
1
+ import{a as z}from"./chunk.64UNKF45.js";import{c as I}from"./chunk.3L472FD4.js";import{a as u,c as m}from"./chunk.SKUMYG4O.js";import{a as c}from"./chunk.KLRPP4NQ.js";import{a as O}from"./chunk.DEXOQON7.js";import{a as D}from"./chunk.26V4EXHB.js";import{a as K}from"./chunk.E2DRD2OX.js";import{a as C,b as o,d as l,h as p}from"./chunk.RYR5JMPR.js";import{b as M,e as A}from"./chunk.UWPDCU52.js";import{b as d,e as h}from"./chunk.6OTM3PE5.js";import{e as i}from"./chunk.TJOCV4DC.js";var n=class extends p{constructor(){super(...arguments);this.localize=new O(this);this.open=!1;this.rounded=!1;this.placement="bottom-start";this.disabled=!1;this.stayOpenOnSelect=!1;this.distance=0;this.skidding=0;this.noAutoSize=!1;this.noFlip=!1;this.hoist=!1}connectedCallback(){super.connectedCallback(),this.handleMenuItemActivate=this.handleMenuItemActivate.bind(this),this.handlePanelSelect=this.handlePanelSelect.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleDocumentKeyDown=this.handleDocumentKeyDown.bind(this),this.handleDocumentMouseDown=this.handleDocumentMouseDown.bind(this),this.containingElement||(this.containingElement=this)}firstUpdated(){this.panel.hidden=!this.open,this.open&&(this.addOpenListeners(),this.popup.active=!0)}disconnectedCallback(){super.disconnectedCallback(),this.removeOpenListeners(),this.hide()}getAccessibleTrigger(){let t=this.trigger.assignedElements({flatten:!0}).find(a=>z(a).start),s=null;if(t)switch(t.tagName.toLowerCase()){case"sd-5-2-0-button":case"sd-5-2-0-icon-button":s=t.button;break;case"sd-5-2-0-navigation-item":s=t.button;break;default:s=t}return s}updateAccessibleTrigger(){let e=this.getAccessibleTrigger();e&&(e.setAttribute("aria-haspopup","true"),e.setAttribute("aria-expanded",this.open?"true":"false"))}focusOnTrigger(){let e=this.getAccessibleTrigger();typeof(e==null?void 0:e.focus)=="function"&&e.focus()}getMenu(){return this.panel.assignedElements({flatten:!0}).find(e=>e.tagName.toLowerCase()==="sd-menu")}handleKeyDown(e){this.open&&e.key==="Escape"&&(e.stopPropagation(),this.hide(),this.focusOnTrigger())}handleDocumentKeyDown(e){var t;if(e.key==="Tab"){if(this.open&&((t=document.activeElement)==null?void 0:t.tagName.toLowerCase())==="sd-menu-item"){e.preventDefault(),this.hide(),this.focusOnTrigger();return}setTimeout(()=>{var a,r,f,g,y,w,b,E,v,k,T,L;let s=((y=(g=(f=(r=(a=document.activeElement)==null?void 0:a.shadowRoot)==null?void 0:r.activeElement)==null?void 0:f.shadowRoot)==null?void 0:g.activeElement)==null?void 0:y.getRootNode())instanceof ShadowRoot?(v=(E=(b=(w=document.activeElement)==null?void 0:w.shadowRoot)==null?void 0:b.activeElement)==null?void 0:E.shadowRoot)==null?void 0:v.activeElement:((k=this.containingElement)==null?void 0:k.getRootNode())instanceof ShadowRoot?(L=(T=document.activeElement)==null?void 0:T.shadowRoot)==null?void 0:L.activeElement:document.activeElement;(!this.containingElement||(s==null?void 0:s.closest(this.containingElement.tagName.toLowerCase()))!==this.containingElement)&&this.hide()})}}handleDocumentMouseDown(e){let t=e.composedPath();this.containingElement&&!t.includes(this.containingElement)&&this.hide()}handleMenuItemActivate(e){let t=e.target;I(t,this.panel)}handlePanelSelect(e){let t=e.target;!this.stayOpenOnSelect&&t.tagName.toLowerCase()==="sd-menu"&&(this.hide(),this.focusOnTrigger())}handleTriggerClick(){this.open?this.hide():this.show()}handleTriggerKeyDown(e){if(e.key==="Escape"&&this.open){e.stopPropagation(),this.focusOnTrigger(),this.hide();return}if([" ","Enter"].includes(e.key)){e.preventDefault(),this.handleTriggerClick();return}let t=this.getMenu();if(t){let s=t.defaultSlot.assignedElements({flatten:!0}),a=s[0],r=s[s.length-1];["ArrowDown","ArrowUp","Home","End"].includes(e.key)&&(e.preventDefault(),this.open||this.show(),s.length>0&&requestAnimationFrame(()=>{(e.key==="ArrowDown"||e.key==="Home")&&(t.setCurrentItem(a),a.focus()),(e.key==="ArrowUp"||e.key==="End")&&(t.setCurrentItem(r),r.focus())}))}}handleTriggerKeyUp(e){e.key===" "&&e.preventDefault()}handleTriggerSlotChange(){this.updateAccessibleTrigger()}async show(){if(!this.open)return this.open=!0,c(this,"sd-after-show")}async hide(){if(this.open)return this.open=!1,c(this,"sd-after-hide")}reposition(){this.popup.reposition()}addOpenListeners(){this.panel.addEventListener("sd-activate",this.handleMenuItemActivate),this.panel.addEventListener("sd-5-2-0-select",this.handlePanelSelect),this.panel.addEventListener("keydown",this.handleKeyDown),document.addEventListener("keydown",this.handleDocumentKeyDown),document.addEventListener("mousedown",this.handleDocumentMouseDown)}removeOpenListeners(){this.panel&&(this.panel.removeEventListener("sd-activate",this.handleMenuItemActivate),this.panel.removeEventListener("sd-5-2-0-select",this.handlePanelSelect),this.panel.removeEventListener("keydown",this.handleKeyDown)),document.removeEventListener("keydown",this.handleDocumentKeyDown),document.removeEventListener("mousedown",this.handleDocumentMouseDown)}async handleOpenChange(){if(this.disabled){this.open=!1;return}if(this.updateAccessibleTrigger(),this.open){this.emit("sd-show"),this.addOpenListeners(),await h(this),this.panel.hidden=!1,this.popup.active=!0;let{keyframes:e,options:t}=m(this,"dropdown.show",{dir:this.localize.dir()});await d(this.popup.popup,e,t),this.emit("sd-after-show")}else{this.emit("sd-hide"),this.removeOpenListeners(),await h(this);let{keyframes:e,options:t}=m(this,"dropdown.hide",{dir:this.localize.dir()});await d(this.popup.popup,e,t),this.panel.hidden=!0,this.popup.active=!1,this.emit("sd-after-hide")}}render(){return A`<sd-5-2-0-popup part="base" id="dropdown" placement="${this.placement}" distance="${this.rounded&&this.distance<1?1:this.distance}" skidding="${this.skidding}" strategy="${this.hoist?"fixed":"absolute"}" ?flip="${!this.noFlip}" shift auto-size="vertical" auto-size-padding="10"><slot name="trigger" slot="anchor" part="trigger" class="block" @click="${this.handleTriggerClick}" @keydown="${this.handleTriggerKeyDown}" @keyup="${this.handleTriggerKeyUp}" @slotchange="${this.handleTriggerSlotChange}"></slot><slot part="panel" class="${D("shadow bg-white block",this.open?"pointer-events-auto":"pointer-events-none",this.rounded&&"rounded-md")}" aria-hidden="${this.open?"false":"true"}" aria-labelledby="dropdown"></slot></sd-5-2-0-popup>`}};n.styles=[...p.styles,M`:host{display:inline-block}#dropdown::part(popup){z-index:var(--sd-z-index-dropdown,900)}#dropdown[data-current-placement^=top]::part(popup){transform-origin:bottom}#dropdown[data-current-placement^=bottom]::part(popup){transform-origin:top}#dropdown[data-current-placement^=left]::part(popup){transform-origin:right}#dropdown[data-current-placement^=right]::part(popup){transform-origin:left}:host(:not([no-auto-size])) ::slotted(:not([slot=trigger])){max-height:var(--auto-size-available-height)!important;max-width:var(--auto-size-available-width)!important;overflow:auto}`],i([l("#dropdown")],n.prototype,"popup",2),i([l("[part=trigger]")],n.prototype,"trigger",2),i([l("[part=panel]")],n.prototype,"panel",2),i([o({type:Boolean,reflect:!0})],n.prototype,"open",2),i([o({type:Boolean,reflect:!0})],n.prototype,"rounded",2),i([o({type:String,reflect:!0})],n.prototype,"placement",2),i([o({type:Boolean,reflect:!0})],n.prototype,"disabled",2),i([o({attribute:"stay-open-on-select",type:Boolean,reflect:!0})],n.prototype,"stayOpenOnSelect",2),i([o({type:Object})],n.prototype,"containingElement",2),i([o({type:Number,reflect:!0})],n.prototype,"distance",2),i([o({type:Number,reflect:!0})],n.prototype,"skidding",2),i([o({type:Boolean,reflect:!0,attribute:"no-auto-size"})],n.prototype,"noAutoSize",2),i([o({type:Boolean,reflect:!0,attribute:"no-flip"})],n.prototype,"noFlip",2),i([o({type:Boolean,reflect:!0})],n.prototype,"hoist",2),i([K("open",{waitUntilFirstUpdate:!0})],n.prototype,"handleOpenChange",1),n=i([C("sd-5-2-0-dropdown")],n);u("dropdown.show",{keyframes:[{opacity:0},{opacity:1}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});u("dropdown.hide",{keyframes:[{opacity:1},{opacity:0}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});export{n as a};
@@ -1 +1 @@
1
- import{b as $}from"./chunk.5XTSQKKL.js";import{a as C}from"./chunk.CDC46OKY.js";import{b as g}from"./chunk.6HLS5XU2.js";import{a as r}from"./chunk.YTG5BN3U.js";import{a as x}from"./chunk.6HO6CE4A.js";import{a as s}from"./chunk.26V4EXHB.js";import{a as d}from"./chunk.E2DRD2OX.js";import{a as y,b as i,c as h,d as p,h as m}from"./chunk.RYR5JMPR.js";import{b as v,e as n}from"./chunk.UWPDCU52.js";import{e}from"./chunk.TJOCV4DC.js";var t=class extends m{constructor(){super(...arguments);this.formControlController=new g(this);this.hasSlotController=new x(this,"help-text","label");this.hasFocus=!1;this.showValidStyle=!1;this.showInvalidStyle=!1;this.title="";this.name="";this.value="";this.size="lg";this.label="";this.helpText="";this.placeholder="";this.rows=4;this.disabled=!1;this.visuallyDisabled=!1;this.readonly=!1;this.form="";this.required=!1;this.styleOnValid=!1;this.spellcheck=!0;this.defaultValue=""}get validity(){return this.textarea.validity}get validationMessage(){return this.textarea.validationMessage}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.setTextareaHeight()})}firstUpdated(){this.formControlController.updateValidity()}disconnectedCallback(){super.disconnectedCallback()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.textarea.value,this.setTextareaHeight(),this.emit("sd-change")}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){if(this.visuallyDisabled){this.textarea.value=this.value;return}this.value=this.textarea.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(l){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(l),this.invalidMessage.textContent=l.target.validationMessage}setTextareaHeight(){this.textarea.style.height=void 0}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleRowsChange(){this.setTextareaHeight()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity(),this.setTextareaHeight()}focus(l){this.textarea.focus(l)}blur(){this.textarea.blur()}select(){this.textarea.select()}scrollPosition(l){if(l){typeof l.top=="number"&&(this.textarea.scrollTop=l.top),typeof l.left=="number"&&(this.textarea.scrollLeft=l.left);return}return{top:this.textarea.scrollTop,left:this.textarea.scrollTop}}setSelectionRange(l,a,o="none"){this.textarea.setSelectionRange(l,a,o)}setRangeText(l,a,o,u){this.textarea.setRangeText(l,a,o,u),this.value!==this.textarea.value&&(this.value=this.textarea.value),this.value!==this.textarea.value&&(this.value=this.textarea.value,this.setTextareaHeight())}checkValidity(){var l;return(l=this.textarea)==null?void 0:l.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.textarea.reportValidity()}setCustomValidity(l){this.textarea.setCustomValidity(l),this.formControlController.updateValidity()}render(){let l={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text"),tooltip:this.hasSlotController.test("tooltip")},a=this.label?!0:!!l.label,o=this.helpText?!0:!!l.helpText,u=!!l.tooltip,c=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"visuallyDisabled":this.readonly?"readonly":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",f=this.size==="sm"?"text-sm":"text-base",b={sm:"text-base top-1",md:"text-lg top-2",lg:"text-xl top-2"}[this.size];return n`<div part="form-control" class="flex flex-col h-full text-left">${a||u?n`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${s(a?"inline-block":"hidden",f)}" for="input" aria-hidden="${a?"false":"true"}"><slot name="label">${this.label}</slot></label> ${l.tooltip?n`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${s("relative h-full w-full",this.disabled&&"cursor-not-allowed")}"><div part="border" class="${s("absolute w-full h-full pointer-events-none border rounded-default transition-[border] duration-medium ease-in-out",{disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"border-neutral-800",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"border-neutral-800"}[c])}"></div><div part="base" class="${s("textarea h-full flex items-top rounded-default group transition-colors duration-medium hover:duration-fast ease-in-out",{sm:"textarea-sm",md:"textarea-md",lg:"textarea-lg"}[this.size],!this.disabled&&!this.readonly&&!this.visuallyDisabled?"hover:bg-neutral-200":"",this.readonly?"bg-neutral-100":"bg-white",c==="disabled"||c==="visuallyDisabled"?"text-neutral-500":"text-black")}"><textarea part="textarea" id="input" class="${s("ps-4 flex-grow focus:outline-none bg-transparent placeholder-neutral-700 resize-none group-has-[sd-5-1-0-icon]:pe-8",{sm:"py-1",md:"py-1",lg:"py-2"}[this.size],this.disabled&&"cursor-not-allowed",f)}" title="${this.title}" name="${r(this.name)}" .value="${$(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" ?visually-disabled="${this.visuallyDisabled}" placeholder="${r(this.placeholder)}" minlength="${r(this.minlength)}" maxlength="${r(this.maxlength)}" rows="${r(this.rows)}" autocapitalize="${r(this.autocapitalize)}" autocorrect="${r(this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${r(this.spellcheck)}" enterkeyhint="${r(this.enterkeyhint)}" inputmode="${r(this.inputmode)}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled||this.visuallyDisabled}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle?n`<sd-5-1-0-icon class="${s("text-error absolute right-4 pointer-events-none",b)}" library="_internal" name="risk" part="invalid-icon"></sd-5-1-0-icon>`:""} ${this.styleOnValid&&this.showValidStyle?n`<sd-5-1-0-icon class="${s("text-success absolute right-4 pointer-events-none",b)}" library="_internal" name="status-check" part="valid-icon"></sd-5-1-0-icon>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${s("text-sm text-neutral-700 mt-2",o?"block":"hidden")}" aria-hidden="${o?"false":"true"}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`}};t.styles=[...m.styles,v`:host{display:block;height:100%}:host textarea{scrollbar-gutter:stable}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([required]) #label:after{content:" *"}:host([visually-disabled]) textarea{caret-color:transparent}.no-scrollbar::-webkit-scrollbar{display:none}`],e([p("#input")],t.prototype,"textarea",2),e([p("#invalid-message")],t.prototype,"invalidMessage",2),e([h()],t.prototype,"hasFocus",2),e([h()],t.prototype,"showValidStyle",2),e([h()],t.prototype,"showInvalidStyle",2),e([i({type:String,reflect:!0})],t.prototype,"title",2),e([i({type:String,reflect:!0})],t.prototype,"name",2),e([i()],t.prototype,"value",2),e([i({type:String,reflect:!0})],t.prototype,"size",2),e([i({type:String,reflect:!0})],t.prototype,"label",2),e([i({type:String,attribute:"help-text",reflect:!0})],t.prototype,"helpText",2),e([i({type:String,reflect:!0})],t.prototype,"placeholder",2),e([i({type:Number,reflect:!0})],t.prototype,"rows",2),e([i({type:Boolean,reflect:!0})],t.prototype,"disabled",2),e([i({type:Boolean,reflect:!0,attribute:"visually-disabled"})],t.prototype,"visuallyDisabled",2),e([i({type:Boolean,reflect:!0})],t.prototype,"readonly",2),e([i({type:String,reflect:!0})],t.prototype,"form",2),e([i({type:Boolean,reflect:!0})],t.prototype,"required",2),e([i({type:Number,reflect:!0})],t.prototype,"minlength",2),e([i({type:Number,reflect:!0})],t.prototype,"maxlength",2),e([i({type:String,reflect:!0})],t.prototype,"autocapitalize",2),e([i({type:String,reflect:!0})],t.prototype,"autocorrect",2),e([i({reflect:!0})],t.prototype,"autocomplete",2),e([i({type:Boolean,reflect:!0})],t.prototype,"autofocus",2),e([i({type:String,reflect:!0})],t.prototype,"enterkeyhint",2),e([i({type:Boolean,reflect:!0,attribute:"style-on-valid"})],t.prototype,"styleOnValid",2),e([i({type:Boolean,converter:{fromAttribute:l=>!(!l||l==="false"),toAttribute:l=>l?"true":"false"}})],t.prototype,"spellcheck",2),e([i({type:String,reflect:!0})],t.prototype,"inputmode",2),e([C()],t.prototype,"defaultValue",2),e([d("disabled",{waitUntilFirstUpdate:!0})],t.prototype,"handleDisabledChange",1),e([d("rows",{waitUntilFirstUpdate:!0})],t.prototype,"handleRowsChange",1),e([d("value",{waitUntilFirstUpdate:!0})],t.prototype,"handleValueChange",1),t=e([y("sd-5-1-0-textarea")],t);export{t as a};
1
+ import{b as $}from"./chunk.5XTSQKKL.js";import{a as C}from"./chunk.CDC46OKY.js";import{b as g}from"./chunk.6HLS5XU2.js";import{a as r}from"./chunk.YTG5BN3U.js";import{a as x}from"./chunk.6HO6CE4A.js";import{a as s}from"./chunk.26V4EXHB.js";import{a as d}from"./chunk.E2DRD2OX.js";import{a as y,b as i,c as h,d as p,h as m}from"./chunk.RYR5JMPR.js";import{b as v,e as n}from"./chunk.UWPDCU52.js";import{e}from"./chunk.TJOCV4DC.js";var t=class extends m{constructor(){super(...arguments);this.formControlController=new g(this);this.hasSlotController=new x(this,"help-text","label");this.hasFocus=!1;this.showValidStyle=!1;this.showInvalidStyle=!1;this.title="";this.name="";this.value="";this.size="lg";this.label="";this.helpText="";this.placeholder="";this.rows=4;this.disabled=!1;this.visuallyDisabled=!1;this.readonly=!1;this.form="";this.required=!1;this.styleOnValid=!1;this.spellcheck=!0;this.defaultValue=""}get validity(){return this.textarea.validity}get validationMessage(){return this.textarea.validationMessage}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.setTextareaHeight()})}firstUpdated(){this.formControlController.updateValidity()}disconnectedCallback(){super.disconnectedCallback()}handleBlur(){this.hasFocus=!1,this.emit("sd-blur")}handleChange(){this.value=this.textarea.value,this.setTextareaHeight(),this.emit("sd-change")}handleFocus(){this.hasFocus=!0,this.emit("sd-focus")}handleInput(){if(this.visuallyDisabled){this.textarea.value=this.value;return}this.value=this.textarea.value,this.formControlController.updateValidity(),this.emit("sd-input")}handleInvalid(l){this.formControlController.setValidity(!1),this.formControlController.emitInvalidEvent(l),this.invalidMessage.textContent=l.target.validationMessage}setTextareaHeight(){this.textarea.style.height=void 0}handleDisabledChange(){this.formControlController.setValidity(this.disabled)}handleRowsChange(){this.setTextareaHeight()}async handleValueChange(){await this.updateComplete,this.formControlController.updateValidity(),this.setTextareaHeight()}focus(l){this.textarea.focus(l)}blur(){this.textarea.blur()}select(){this.textarea.select()}scrollPosition(l){if(l){typeof l.top=="number"&&(this.textarea.scrollTop=l.top),typeof l.left=="number"&&(this.textarea.scrollLeft=l.left);return}return{top:this.textarea.scrollTop,left:this.textarea.scrollTop}}setSelectionRange(l,a,o="none"){this.textarea.setSelectionRange(l,a,o)}setRangeText(l,a,o,u){this.textarea.setRangeText(l,a,o,u),this.value!==this.textarea.value&&(this.value=this.textarea.value),this.value!==this.textarea.value&&(this.value=this.textarea.value,this.setTextareaHeight())}checkValidity(){var l;return(l=this.textarea)==null?void 0:l.checkValidity()}getForm(){return this.formControlController.getForm()}reportValidity(){return this.formControlController.fakeUserInteraction(),this.textarea.reportValidity()}setCustomValidity(l){this.textarea.setCustomValidity(l),this.formControlController.updateValidity()}render(){let l={label:this.hasSlotController.test("label"),helpText:this.hasSlotController.test("help-text"),tooltip:this.hasSlotController.test("tooltip")},a=this.label?!0:!!l.label,o=this.helpText?!0:!!l.helpText,u=!!l.tooltip,c=this.disabled?"disabled":this.visuallyDisabled&&!this.hasFocus?"visuallyDisabled":this.readonly?"readonly":this.hasFocus&&this.showInvalidStyle?"activeInvalid":this.hasFocus&&this.styleOnValid&&this.showValidStyle?"activeValid":this.hasFocus?"active":this.showInvalidStyle?"invalid":this.styleOnValid&&this.showValidStyle?"valid":"default",f=this.size==="sm"?"text-sm":"text-base",b={sm:"text-base top-1",md:"text-lg top-2",lg:"text-xl top-2"}[this.size];return n`<div part="form-control" class="flex flex-col h-full text-left">${a||u?n`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${s(a?"inline-block":"hidden",f)}" for="input" aria-hidden="${a?"false":"true"}"><slot name="label">${this.label}</slot></label> ${l.tooltip?n`<slot name="tooltip"></slot>`:""}</div>`:null}<div part="form-control-input" class="${s("relative h-full w-full",this.disabled&&"cursor-not-allowed")}"><div part="border" class="${s("absolute w-full h-full pointer-events-none border rounded-default transition-[border] duration-medium ease-in-out",{disabled:"border-neutral-500",visuallyDisabled:"border-neutral-500",readonly:"border-neutral-800",activeInvalid:"border-error border-2",activeValid:"border-success border-2",active:"border-primary border-2",invalid:"border-error",valid:"border-success",default:"border-neutral-800"}[c])}"></div><div part="base" class="${s("textarea h-full flex items-top rounded-default group transition-colors duration-medium hover:duration-fast ease-in-out",{sm:"textarea-sm",md:"textarea-md",lg:"textarea-lg"}[this.size],!this.disabled&&!this.readonly&&!this.visuallyDisabled?"hover:bg-neutral-200":"",this.readonly?"bg-neutral-100":"bg-white",c==="disabled"||c==="visuallyDisabled"?"text-neutral-500":"text-black")}"><textarea part="textarea" id="input" class="${s("ps-4 flex-grow focus:outline-none bg-transparent placeholder-neutral-700 resize-none group-has-[sd-5-2-0-icon]:pe-8",{sm:"py-1",md:"py-1",lg:"py-2"}[this.size],this.disabled&&"cursor-not-allowed",f)}" title="${this.title}" name="${r(this.name)}" .value="${$(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" ?visually-disabled="${this.visuallyDisabled}" placeholder="${r(this.placeholder)}" minlength="${r(this.minlength)}" maxlength="${r(this.maxlength)}" rows="${r(this.rows)}" autocapitalize="${r(this.autocapitalize)}" autocorrect="${r(this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${r(this.spellcheck)}" enterkeyhint="${r(this.enterkeyhint)}" inputmode="${r(this.inputmode)}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled||this.visuallyDisabled}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle?n`<sd-5-2-0-icon class="${s("text-error absolute right-4 pointer-events-none",b)}" library="_internal" name="risk" part="invalid-icon"></sd-5-2-0-icon>`:""} ${this.styleOnValid&&this.showValidStyle?n`<sd-5-2-0-icon class="${s("text-success absolute right-4 pointer-events-none",b)}" library="_internal" name="status-check" part="valid-icon"></sd-5-2-0-icon>`:""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${s("text-sm text-neutral-700 mt-2",o?"block":"hidden")}" aria-hidden="${o?"false":"true"}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`}};t.styles=[...m.styles,v`:host{display:block;height:100%}:host textarea{scrollbar-gutter:stable}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([required]) #label:after{content:" *"}:host([visually-disabled]) textarea{caret-color:transparent}.no-scrollbar::-webkit-scrollbar{display:none}`],e([p("#input")],t.prototype,"textarea",2),e([p("#invalid-message")],t.prototype,"invalidMessage",2),e([h()],t.prototype,"hasFocus",2),e([h()],t.prototype,"showValidStyle",2),e([h()],t.prototype,"showInvalidStyle",2),e([i({type:String,reflect:!0})],t.prototype,"title",2),e([i({type:String,reflect:!0})],t.prototype,"name",2),e([i()],t.prototype,"value",2),e([i({type:String,reflect:!0})],t.prototype,"size",2),e([i({type:String,reflect:!0})],t.prototype,"label",2),e([i({type:String,attribute:"help-text",reflect:!0})],t.prototype,"helpText",2),e([i({type:String,reflect:!0})],t.prototype,"placeholder",2),e([i({type:Number,reflect:!0})],t.prototype,"rows",2),e([i({type:Boolean,reflect:!0})],t.prototype,"disabled",2),e([i({type:Boolean,reflect:!0,attribute:"visually-disabled"})],t.prototype,"visuallyDisabled",2),e([i({type:Boolean,reflect:!0})],t.prototype,"readonly",2),e([i({type:String,reflect:!0})],t.prototype,"form",2),e([i({type:Boolean,reflect:!0})],t.prototype,"required",2),e([i({type:Number,reflect:!0})],t.prototype,"minlength",2),e([i({type:Number,reflect:!0})],t.prototype,"maxlength",2),e([i({type:String,reflect:!0})],t.prototype,"autocapitalize",2),e([i({type:String,reflect:!0})],t.prototype,"autocorrect",2),e([i({reflect:!0})],t.prototype,"autocomplete",2),e([i({type:Boolean,reflect:!0})],t.prototype,"autofocus",2),e([i({type:String,reflect:!0})],t.prototype,"enterkeyhint",2),e([i({type:Boolean,reflect:!0,attribute:"style-on-valid"})],t.prototype,"styleOnValid",2),e([i({type:Boolean,converter:{fromAttribute:l=>!(!l||l==="false"),toAttribute:l=>l?"true":"false"}})],t.prototype,"spellcheck",2),e([i({type:String,reflect:!0})],t.prototype,"inputmode",2),e([C()],t.prototype,"defaultValue",2),e([d("disabled",{waitUntilFirstUpdate:!0})],t.prototype,"handleDisabledChange",1),e([d("rows",{waitUntilFirstUpdate:!0})],t.prototype,"handleRowsChange",1),e([d("value",{waitUntilFirstUpdate:!0})],t.prototype,"handleValueChange",1),t=e([y("sd-5-2-0-textarea")],t);export{t as a};
@@ -1 +1 @@
1
- import{a as s}from"./chunk.YTG5BN3U.js";import{a as f}from"./chunk.6HO6CE4A.js";import{a as n,b as a}from"./chunk.H2TKMIFR.js";import{a as i}from"./chunk.26V4EXHB.js";import{a as l}from"./chunk.E2DRD2OX.js";import{a as u,b as r,h as o}from"./chunk.RYR5JMPR.js";import{b as d}from"./chunk.UWPDCU52.js";import{e}from"./chunk.TJOCV4DC.js";var t=class extends o{constructor(){super(...arguments);this.hasSlotController=new f(this,"label","[default]");this.size="lg";this.orientation="horizontal";this.disabled=!1;this.current=!1;this.noTail=!1;this.notInteractive=!1;this.label="";this.description="";this.index=1;this.href=""}connectedCallback(){super.connectedCallback()}isLink(){return!!this.href}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleCurrentChange(){this.current&&(this.disabled=!1)}handleDisabledChange(){this.disabled&&(this.current=!1)}handleInteractivityChange(){this.notInteractive&&(this.current=!1,this.disabled=!1)}render(){let h=this.isLink(),c=this.notInteractive?n`div`:h?n`a`:n`button`,m=this.hasSlotController.test("label"),b=this.label?!0:m,p=this.hasSlotController.test("[default]"),v=this.description?!0:p;return a`<div role="listitem" part="base" class="${i("flex pt-1",this.orientation==="horizontal"?"flex-col w-full":"flex-row gap-4 items-stretch h-full w-min overflow-hidden",!this.disabled&&!this.current&&!this.notInteractive&&"group")}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"><div part="circle-and-tail-container" class="${i("flex shrink-0 gap-2",this.noTail&&"w-max",this.orientation==="horizontal"?"flex-row":"flex-col items-stretch",this.orientation==="horizontal"?this.size==="lg"?"translateLg":"translateSm":this.size==="lg"?"mt-1":"mt-3")}"><${c} part="circle" href="${s(h?this.href:void 0)}" aria-disabled="${s(this.disabled||void 0)}" aria-current="${this.current?"step":void 0}" aria-labelledby="${s(this.notInteractive||!b?void 0:"label")}" aria-describedby="${s(this.notInteractive||!v?void 0:"description")}" class="${i("border rounded-full aspect-square circle flex items-center justify-center shrink-0 font-bold select-none",this.disabled?"focus-visible:outline-none cursor-not-allowed":"focus-visible:focus-outline group-hover:cursor-pointer",this.notInteractive?this.size==="lg"?"not-interactive-lg":"w-12":this.size==="lg"?"w-12":"w-8",this.disabled&&"border-neutral-400 text-neutral-700",!this.disabled&&!this.current&&!this.notInteractive&&"border-primary group-hover:bg-primary-100 group-hover:border-primary-500",this.notInteractive&&"border-neutral-400",this.current&&"bg-accent border-none text-white")}"><slot name="circle-content" class="${i(!this.disabled&&!this.current&&!this.notInteractive&&"text-primary group-hover:text-primary-500 group-hover:fill-primary-500",this.notInteractive&&"text-primary",this.size==="lg"?"text-lg":"text-sm")}">${!this.disabled&&!this.current&&!this.notInteractive?a`<sd-5-1-0-icon name="status-check" library="_internal"></sd-5-1-0-icon>`:a`${this.index}`}</slot></${c}>${this.noTail?"":a`<div part="tail" class="${i(this.orientation==="horizontal"?"border-t w-full my-auto mr-2":"border-l flex-grow flex-shrink-0 basis-auto h-full w-[1px] mx-auto",!this.disabled&&!this.current&&!this.notInteractive?" border-primary group-hover:border-primary-500":"border-neutral-400")}"></div>`}</div><div part="text-container" class="${i("mt-4 break-words flex flex-col gap-2",this.orientation==="horizontal"?"text-center w-40":"w-max text-left",this.disabled&&"!text-neutral-700",this.notInteractive?"ml-3":"mr-4")}"><div part="label" id="label" class="${i("!font-bold sd-paragraph",this.disabled&&"!text-neutral-700",!this.disabled&&!this.current&&!this.notInteractive?"!text-primary group-hover:!text-primary-500 group-hover:cursor-pointer":"text-black")}"><slot name="label">${this.label}</slot></div><div part="description" id="description" class="${i("sd-paragraph sd-paragraph--size-sm",this.disabled&&"!text-neutral-700")}">${this.description||a`<slot></slot>`}</div></div></div>`}};t.styles=[...o.styles,d`:host{flex:1 1 0%}:host([no-tail]){flex-grow:0}.translateLg{transform:translateX(3.438rem)}.translateSm{transform:translateX(4rem)}.not-interactive-lg{width:4.5rem}`],e([r({type:String,reflect:!0})],t.prototype,"size",2),e([r({type:String,reflect:!0})],t.prototype,"orientation",2),e([r({type:Boolean,reflect:!0})],t.prototype,"disabled",2),e([r({type:Boolean,reflect:!0})],t.prototype,"current",2),e([r({reflect:!0,type:Boolean,attribute:"no-tail"})],t.prototype,"noTail",2),e([r({type:Boolean,reflect:!0,attribute:"not-interactive"})],t.prototype,"notInteractive",2),e([r({type:String,reflect:!0})],t.prototype,"label",2),e([r({type:String,reflect:!0})],t.prototype,"description",2),e([r({type:Number,reflect:!0,attribute:"index"})],t.prototype,"index",2),e([r({type:String,reflect:!0})],t.prototype,"href",2),e([l("current")],t.prototype,"handleCurrentChange",1),e([l("disabled")],t.prototype,"handleDisabledChange",1),e([l("notInteractive")],t.prototype,"handleInteractivityChange",1),t=e([u("sd-5-1-0-step")],t);export{t as a};
1
+ import{a as s}from"./chunk.YTG5BN3U.js";import{a as f}from"./chunk.6HO6CE4A.js";import{a as n,b as a}from"./chunk.H2TKMIFR.js";import{a as i}from"./chunk.26V4EXHB.js";import{a as l}from"./chunk.E2DRD2OX.js";import{a as u,b as r,h as o}from"./chunk.RYR5JMPR.js";import{b as d}from"./chunk.UWPDCU52.js";import{e}from"./chunk.TJOCV4DC.js";var t=class extends o{constructor(){super(...arguments);this.hasSlotController=new f(this,"label","[default]");this.size="lg";this.orientation="horizontal";this.disabled=!1;this.current=!1;this.noTail=!1;this.notInteractive=!1;this.label="";this.description="";this.index=1;this.href=""}connectedCallback(){super.connectedCallback()}isLink(){return!!this.href}handleBlur(){this.emit("sd-blur")}handleFocus(){this.emit("sd-focus")}handleCurrentChange(){this.current&&(this.disabled=!1)}handleDisabledChange(){this.disabled&&(this.current=!1)}handleInteractivityChange(){this.notInteractive&&(this.current=!1,this.disabled=!1)}render(){let h=this.isLink(),c=this.notInteractive?n`div`:h?n`a`:n`button`,m=this.hasSlotController.test("label"),b=this.label?!0:m,p=this.hasSlotController.test("[default]"),v=this.description?!0:p;return a`<div role="listitem" part="base" class="${i("flex pt-1",this.orientation==="horizontal"?"flex-col w-full":"flex-row gap-4 items-stretch h-full w-min overflow-hidden",!this.disabled&&!this.current&&!this.notInteractive&&"group")}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"><div part="circle-and-tail-container" class="${i("flex shrink-0 gap-2",this.noTail&&"w-max",this.orientation==="horizontal"?"flex-row":"flex-col items-stretch",this.orientation==="horizontal"?this.size==="lg"?"translateLg":"translateSm":this.size==="lg"?"mt-1":"mt-3")}"><${c} part="circle" href="${s(h?this.href:void 0)}" aria-disabled="${s(this.disabled||void 0)}" aria-current="${this.current?"step":void 0}" aria-labelledby="${s(this.notInteractive||!b?void 0:"label")}" aria-describedby="${s(this.notInteractive||!v?void 0:"description")}" class="${i("border rounded-full aspect-square circle flex items-center justify-center shrink-0 font-bold select-none",this.disabled?"focus-visible:outline-none cursor-not-allowed":"focus-visible:focus-outline group-hover:cursor-pointer",this.notInteractive?this.size==="lg"?"not-interactive-lg":"w-12":this.size==="lg"?"w-12":"w-8",this.disabled&&"border-neutral-400 text-neutral-700",!this.disabled&&!this.current&&!this.notInteractive&&"border-primary group-hover:bg-primary-100 group-hover:border-primary-500",this.notInteractive&&"border-neutral-400",this.current&&"bg-accent border-none text-white")}"><slot name="circle-content" class="${i(!this.disabled&&!this.current&&!this.notInteractive&&"text-primary group-hover:text-primary-500 group-hover:fill-primary-500",this.notInteractive&&"text-primary",this.size==="lg"?"text-lg":"text-sm")}">${!this.disabled&&!this.current&&!this.notInteractive?a`<sd-5-2-0-icon name="status-check" library="_internal"></sd-5-2-0-icon>`:a`${this.index}`}</slot></${c}>${this.noTail?"":a`<div part="tail" class="${i(this.orientation==="horizontal"?"border-t w-full my-auto mr-2":"border-l flex-grow flex-shrink-0 basis-auto h-full w-[1px] mx-auto",!this.disabled&&!this.current&&!this.notInteractive?" border-primary group-hover:border-primary-500":"border-neutral-400")}"></div>`}</div><div part="text-container" class="${i("mt-4 break-words flex flex-col gap-2",this.orientation==="horizontal"?"text-center w-40":"w-max text-left",this.disabled&&"!text-neutral-700",this.notInteractive?"ml-3":"mr-4")}"><div part="label" id="label" class="${i("!font-bold sd-paragraph",this.disabled&&"!text-neutral-700",!this.disabled&&!this.current&&!this.notInteractive?"!text-primary group-hover:!text-primary-500 group-hover:cursor-pointer":"text-black")}"><slot name="label">${this.label}</slot></div><div part="description" id="description" class="${i("sd-paragraph sd-paragraph--size-sm",this.disabled&&"!text-neutral-700")}">${this.description||a`<slot></slot>`}</div></div></div>`}};t.styles=[...o.styles,d`:host{flex:1 1 0%}:host([no-tail]){flex-grow:0}.translateLg{transform:translateX(3.438rem)}.translateSm{transform:translateX(4rem)}.not-interactive-lg{width:4.5rem}`],e([r({type:String,reflect:!0})],t.prototype,"size",2),e([r({type:String,reflect:!0})],t.prototype,"orientation",2),e([r({type:Boolean,reflect:!0})],t.prototype,"disabled",2),e([r({type:Boolean,reflect:!0})],t.prototype,"current",2),e([r({reflect:!0,type:Boolean,attribute:"no-tail"})],t.prototype,"noTail",2),e([r({type:Boolean,reflect:!0,attribute:"not-interactive"})],t.prototype,"notInteractive",2),e([r({type:String,reflect:!0})],t.prototype,"label",2),e([r({type:String,reflect:!0})],t.prototype,"description",2),e([r({type:Number,reflect:!0,attribute:"index"})],t.prototype,"index",2),e([r({type:String,reflect:!0})],t.prototype,"href",2),e([l("current")],t.prototype,"handleCurrentChange",1),e([l("disabled")],t.prototype,"handleDisabledChange",1),e([l("notInteractive")],t.prototype,"handleInteractivityChange",1),t=e([u("sd-5-2-0-step")],t);export{t as a};
@@ -21,6 +21,6 @@ export default class SdAccordion extends SolidElement {
21
21
  }
22
22
  declare global {
23
23
  interface HTMLElementTagNameMap {
24
- 'sd-5-1-0-accordion': SdAccordion;
24
+ 'sd-5-2-0-accordion': SdAccordion;
25
25
  }
26
26
  }
@@ -11,6 +11,6 @@ export default class SdAccordionGroup extends SolidElement {
11
11
  }
12
12
  declare global {
13
13
  interface HTMLElementTagNameMap {
14
- 'sd-5-1-0-accordion-group': SdAccordionGroup;
14
+ 'sd-5-2-0-accordion-group': SdAccordionGroup;
15
15
  }
16
16
  }
@@ -34,6 +34,6 @@ export default class SdAnimation extends SolidElement {
34
34
  }
35
35
  declare global {
36
36
  interface HTMLElementTagNameMap {
37
- 'sd-5-1-0-animation': SdAnimation;
37
+ 'sd-5-2-0-animation': SdAnimation;
38
38
  }
39
39
  }
@@ -53,6 +53,6 @@ export default class SdAudio extends SolidElement {
53
53
  }
54
54
  declare global {
55
55
  interface HTMLElementTagNameMap {
56
- 'sd-5-1-0-audio': SdAudio;
56
+ 'sd-5-2-0-audio': SdAudio;
57
57
  }
58
58
  }
@@ -8,6 +8,6 @@ export default class SdBadge extends SolidElement {
8
8
  }
9
9
  declare global {
10
10
  interface HTMLElementTagNameMap {
11
- 'sd-5-1-0-badge': SdBadge;
11
+ 'sd-5-2-0-badge': SdBadge;
12
12
  }
13
13
  }
@@ -25,7 +25,7 @@ export default class SdBrandshape extends SolidElement {
25
25
  }
26
26
  declare global {
27
27
  interface HTMLElementTagNameMap {
28
- 'sd-5-1-0-brandshape': SdBrandshape;
28
+ 'sd-5-2-0-brandshape': SdBrandshape;
29
29
  }
30
30
  }
31
31
  export {};
@@ -48,6 +48,6 @@ export default class SdButton extends SolidElement implements SolidFormControl {
48
48
  }
49
49
  declare global {
50
50
  interface HTMLElementTagNameMap {
51
- 'sd-5-1-0-button': SdButton;
51
+ 'sd-5-2-0-button': SdButton;
52
52
  }
53
53
  }
@@ -13,6 +13,6 @@ export default class SdButtonGroup extends SolidElement {
13
13
  }
14
14
  declare global {
15
15
  interface HTMLElementTagNameMap {
16
- 'sd-5-1-0-button-group': SdButtonGroup;
16
+ 'sd-5-2-0-button-group': SdButtonGroup;
17
17
  }
18
18
  }
@@ -55,6 +55,6 @@ export default class SdCarousel extends SolidElement {
55
55
  }
56
56
  declare global {
57
57
  interface HTMLElementTagNameMap {
58
- 'sd-5-1-0-carousel': SdCarousel;
58
+ 'sd-5-2-0-carousel': SdCarousel;
59
59
  }
60
60
  }
@@ -7,6 +7,6 @@ export default class SdCarouselItem extends SolidElement {
7
7
  }
8
8
  declare global {
9
9
  interface HTMLElementTagNameMap {
10
- 'sd-5-1-0-carousel-item': SdCarouselItem;
10
+ 'sd-5-2-0-carousel-item': SdCarouselItem;
11
11
  }
12
12
  }
@@ -38,6 +38,6 @@ export default class SdCheckbox extends SolidElement implements SolidFormControl
38
38
  }
39
39
  declare global {
40
40
  interface HTMLElementTagNameMap {
41
- 'sd-5-1-0-checkbox': SdCheckbox;
41
+ 'sd-5-2-0-checkbox': SdCheckbox;
42
42
  }
43
43
  }
@@ -16,6 +16,6 @@ export default class SdCheckboxGroup extends SolidElement {
16
16
  }
17
17
  declare global {
18
18
  interface HTMLElementTagNameMap {
19
- 'sd-5-1-0-checkbox-group': SdCheckboxGroup;
19
+ 'sd-5-2-0-checkbox-group': SdCheckboxGroup;
20
20
  }
21
21
  }
@@ -120,6 +120,6 @@ export default class SdCombobox extends SolidElement implements SolidFormControl
120
120
  }
121
121
  declare global {
122
122
  interface HTMLElementTagNameMap {
123
- 'sd-5-1-0-combobox': SdCombobox;
123
+ 'sd-5-2-0-combobox': SdCombobox;
124
124
  }
125
125
  }
@@ -29,6 +29,6 @@ export default class SdDialog extends SolidElement {
29
29
  }
30
30
  declare global {
31
31
  interface HTMLElementTagNameMap {
32
- 'sd-5-1-0-dialog': SdDialog;
32
+ 'sd-5-2-0-dialog': SdDialog;
33
33
  }
34
34
  }
@@ -8,6 +8,6 @@ export default class SdDivider extends SolidElement {
8
8
  }
9
9
  declare global {
10
10
  interface HTMLElementTagNameMap {
11
- 'sd-5-1-0-divider': SdDivider;
11
+ 'sd-5-2-0-divider': SdDivider;
12
12
  }
13
13
  }
@@ -31,6 +31,6 @@ export default class SdDrawer extends SolidElement {
31
31
  }
32
32
  declare global {
33
33
  interface HTMLElementTagNameMap {
34
- 'sd-5-1-0-drawer': SdDrawer;
34
+ 'sd-5-2-0-drawer': SdDrawer;
35
35
  }
36
36
  }
@@ -45,6 +45,6 @@ export default class SdDropdown extends SolidElement {
45
45
  }
46
46
  declare global {
47
47
  interface HTMLElementTagNameMap {
48
- 'sd-5-1-0-dropdown': SdDropdown;
48
+ 'sd-5-2-0-dropdown': SdDropdown;
49
49
  }
50
50
  }
@@ -20,6 +20,6 @@ export default class SdExpandable extends SolidElement {
20
20
  }
21
21
  declare global {
22
22
  interface HTMLElementTagNameMap {
23
- 'sd-5-1-0-expandable': SdExpandable;
23
+ 'sd-5-2-0-expandable': SdExpandable;
24
24
  }
25
25
  }
@@ -19,6 +19,6 @@ export default class SdFlipcard extends SolidElement {
19
19
  }
20
20
  declare global {
21
21
  interface HTMLElementTagNameMap {
22
- 'sd-5-1-0-flipcard': SdFlipcard;
22
+ 'sd-5-2-0-flipcard': SdFlipcard;
23
23
  }
24
24
  }
@@ -15,6 +15,6 @@ export default class SdHeader extends SolidElement {
15
15
  }
16
16
  declare global {
17
17
  interface HTMLElementTagNameMap {
18
- 'sd-5-1-0-header': SdHeader;
18
+ 'sd-5-2-0-header': SdHeader;
19
19
  }
20
20
  }
@@ -17,6 +17,6 @@ export default class SdIcon extends SolidElement {
17
17
  }
18
18
  declare global {
19
19
  interface HTMLElementTagNameMap {
20
- 'sd-5-1-0-icon': SdIcon;
20
+ 'sd-5-2-0-icon': SdIcon;
21
21
  }
22
22
  }
@@ -10,6 +10,6 @@ export default class SdInclude extends SolidElement {
10
10
  }
11
11
  declare global {
12
12
  interface HTMLElementTagNameMap {
13
- 'sd-5-1-0-include': SdInclude;
13
+ 'sd-5-2-0-include': SdInclude;
14
14
  }
15
15
  }
@@ -83,6 +83,6 @@ export default class SdInput extends SolidElement implements SolidFormControl {
83
83
  }
84
84
  declare global {
85
85
  interface HTMLElementTagNameMap {
86
- 'sd-5-1-0-input': SdInput;
86
+ 'sd-5-2-0-input': SdInput;
87
87
  }
88
88
  }
@@ -19,6 +19,6 @@ export default class SdLink extends SolidElement {
19
19
  }
20
20
  declare global {
21
21
  interface HTMLElementTagNameMap {
22
- 'sd-5-1-0-link': SdLink;
22
+ 'sd-5-2-0-link': SdLink;
23
23
  }
24
24
  }
@@ -18,6 +18,6 @@ export default class SdMapMarker extends SolidElement {
18
18
  }
19
19
  declare global {
20
20
  interface HTMLElementTagNameMap {
21
- 'sd-5-1-0-map-marker': SdMapMarker;
21
+ 'sd-5-2-0-map-marker': SdMapMarker;
22
22
  }
23
23
  }
@@ -32,6 +32,6 @@ export default class SdNavigationItem extends SolidElement {
32
32
  }
33
33
  declare global {
34
34
  interface HTMLElementTagNameMap {
35
- 'sd-5-1-0-navigation-item': SdNavigationItem;
35
+ 'sd-5-2-0-navigation-item': SdNavigationItem;
36
36
  }
37
37
  }
@@ -34,6 +34,6 @@ export default class SdNotification extends SolidElement {
34
34
  }
35
35
  declare global {
36
36
  interface HTMLElementTagNameMap {
37
- 'sd-5-1-0-notification': SdNotification;
37
+ 'sd-5-2-0-notification': SdNotification;
38
38
  }
39
39
  }
@@ -3,7 +3,7 @@ import SolidElement from '../../internal/solid-element';
3
3
  export default class SdOptgroup extends SolidElement {
4
4
  private readonly localize;
5
5
  static dependencies: {
6
- 'sd-5-1-0-divider': typeof SdDivider;
6
+ 'sd-5-2-0-divider': typeof SdDivider;
7
7
  };
8
8
  defaultSlot: HTMLSlotElement;
9
9
  private handleDisableOptions;
@@ -15,6 +15,6 @@ export default class SdOptgroup extends SolidElement {
15
15
  }
16
16
  declare global {
17
17
  interface HTMLElementTagNameMap {
18
- 'sd-5-1-0-optgroup': SdOptgroup;
18
+ 'sd-5-2-0-optgroup': SdOptgroup;
19
19
  }
20
20
  }
@@ -25,6 +25,6 @@ export default class SdOption extends SolidElement {
25
25
  }
26
26
  declare global {
27
27
  interface HTMLElementTagNameMap {
28
- 'sd-5-1-0-option': SdOption;
28
+ 'sd-5-2-0-option': SdOption;
29
29
  }
30
30
  }
@@ -40,6 +40,6 @@ export default class SdPopup extends SolidElement {
40
40
  }
41
41
  declare global {
42
42
  interface HTMLElementTagNameMap {
43
- 'sd-5-1-0-popup': SdPopup;
43
+ 'sd-5-2-0-popup': SdPopup;
44
44
  }
45
45
  }
@@ -7,6 +7,6 @@ export default class SdQuickfact extends SdAccordion {
7
7
  }
8
8
  declare global {
9
9
  interface HTMLElementTagNameMap {
10
- 'sd-5-1-0-quickfact': SdQuickfact;
10
+ 'sd-5-2-0-quickfact': SdQuickfact;
11
11
  }
12
12
  }
@@ -22,6 +22,6 @@ export default class SdRadio extends SolidElement {
22
22
  }
23
23
  declare global {
24
24
  interface HTMLElementTagNameMap {
25
- 'sd-5-1-0-radio': SdRadio;
25
+ 'sd-5-2-0-radio': SdRadio;
26
26
  }
27
27
  }
@@ -21,6 +21,6 @@ export default class SdRadioButton extends SolidElement {
21
21
  }
22
22
  declare global {
23
23
  interface HTMLElementTagNameMap {
24
- 'sd-5-1-0-radio-button': SdRadioButton;
24
+ 'sd-5-2-0-radio-button': SdRadioButton;
25
25
  }
26
26
  }
@@ -4,7 +4,7 @@ import SolidElement from '../../internal/solid-element';
4
4
  import type { SolidFormControl } from '../../internal/solid-element';
5
5
  export default class SdRadioGroup extends SolidElement implements SolidFormControl {
6
6
  static dependencies: {
7
- 'sd-5-1-0-button-group': typeof SdButtonGroup;
7
+ 'sd-5-2-0-button-group': typeof SdButtonGroup;
8
8
  };
9
9
  protected readonly formControlController: FormControlController;
10
10
  private readonly hasSlotController;
@@ -49,6 +49,6 @@ export default class SdRadioGroup extends SolidElement implements SolidFormContr
49
49
  }
50
50
  declare global {
51
51
  interface HTMLElementTagNameMap {
52
- 'sd-5-1-0-radio-group': SdRadioGroup;
52
+ 'sd-5-2-0-radio-group': SdRadioGroup;
53
53
  }
54
54
  }
@@ -32,6 +32,6 @@ export default class SdScrollable extends SolidElement {
32
32
  }
33
33
  declare global {
34
34
  interface HTMLElementTagNameMap {
35
- 'sd-5-1-0-scrollable': SdScrollable;
35
+ 'sd-5-2-0-scrollable': SdScrollable;
36
36
  }
37
37
  }
@@ -1 +1 @@
1
- import{a}from"../../chunks/chunk.66GOZEE4.js";import"../../chunks/chunk.YTG5BN3U.js";import"../../chunks/chunk.QCGZSSDL.js";import"../../chunks/chunk.D5IOD6QB.js";import"../../chunks/chunk.TWZDCIM2.js";import"../../chunks/chunk.MWDEA25W.js";import"../../chunks/chunk.N2OPZHJV.js";import"../../chunks/chunk.CDEXCMVF.js";import"../../chunks/chunk.K7HF3VBZ.js";import"../../chunks/chunk.GJFN7PBS.js";import"../../chunks/chunk.PYHYYOBE.js";import"../../chunks/chunk.DEXOQON7.js";import"../../chunks/chunk.BVJF73VY.js";import"../../chunks/chunk.E2XBRTA4.js";import"../../chunks/chunk.HJGLYEWV.js";import"../../chunks/chunk.26V4EXHB.js";import"../../chunks/chunk.E2DRD2OX.js";import"../../chunks/chunk.RYR5JMPR.js";import"../../chunks/chunk.UWPDCU52.js";import"../../chunks/chunk.6OTM3PE5.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
1
+ import{a}from"../../chunks/chunk.BV574DRQ.js";import"../../chunks/chunk.YTG5BN3U.js";import"../../chunks/chunk.QCGZSSDL.js";import"../../chunks/chunk.D5IOD6QB.js";import"../../chunks/chunk.TWZDCIM2.js";import"../../chunks/chunk.MWDEA25W.js";import"../../chunks/chunk.N2OPZHJV.js";import"../../chunks/chunk.CDEXCMVF.js";import"../../chunks/chunk.K7HF3VBZ.js";import"../../chunks/chunk.GJFN7PBS.js";import"../../chunks/chunk.PYHYYOBE.js";import"../../chunks/chunk.DEXOQON7.js";import"../../chunks/chunk.BVJF73VY.js";import"../../chunks/chunk.E2XBRTA4.js";import"../../chunks/chunk.HJGLYEWV.js";import"../../chunks/chunk.26V4EXHB.js";import"../../chunks/chunk.E2DRD2OX.js";import"../../chunks/chunk.RYR5JMPR.js";import"../../chunks/chunk.UWPDCU52.js";import"../../chunks/chunk.6OTM3PE5.js";import"../../chunks/chunk.TJOCV4DC.js";export{a as default};
@@ -97,6 +97,6 @@ export default class SdSelect extends SolidElement implements SolidFormControl {
97
97
  }
98
98
  declare global {
99
99
  interface HTMLElementTagNameMap {
100
- 'sd-5-1-0-select': SdSelect;
100
+ 'sd-5-2-0-select': SdSelect;
101
101
  }
102
102
  }
@@ -8,6 +8,6 @@ export default class SdSpinner extends SolidElement {
8
8
  }
9
9
  declare global {
10
10
  interface HTMLElementTagNameMap {
11
- 'sd-5-1-0-spinner': SdSpinner;
11
+ 'sd-5-2-0-spinner': SdSpinner;
12
12
  }
13
13
  }
@@ -24,6 +24,6 @@ export default class SdStep extends SolidElement {
24
24
  }
25
25
  declare global {
26
26
  interface HTMLElementTagNameMap {
27
- 'sd-5-1-0-step': SdStep;
27
+ 'sd-5-2-0-step': SdStep;
28
28
  }
29
29
  }
@@ -18,6 +18,6 @@ export default class SdStepGroup extends SolidElement {
18
18
  }
19
19
  declare global {
20
20
  interface HTMLElementTagNameMap {
21
- 'sd-5-1-0-step-group': SdStepGroup;
21
+ 'sd-5-2-0-step-group': SdStepGroup;
22
22
  }
23
23
  }
@@ -34,6 +34,6 @@ export default class SdSwitch extends SolidElement implements SolidFormControl {
34
34
  }
35
35
  declare global {
36
36
  interface HTMLElementTagNameMap {
37
- 'sd-5-1-0-switch': SdSwitch;
37
+ 'sd-5-2-0-switch': SdSwitch;
38
38
  }
39
39
  }
@@ -19,6 +19,6 @@ export default class SdTab extends SolidElement {
19
19
  }
20
20
  declare global {
21
21
  interface HTMLElementTagNameMap {
22
- 'sd-5-1-0-tab': SdTab;
22
+ 'sd-5-2-0-tab': SdTab;
23
23
  }
24
24
  }
@@ -33,6 +33,6 @@ export default class SdTabGroup extends SolidElement {
33
33
  }
34
34
  declare global {
35
35
  interface HTMLElementTagNameMap {
36
- 'sd-5-1-0-tab-group': SdTabGroup;
36
+ 'sd-5-2-0-tab-group': SdTabGroup;
37
37
  }
38
38
  }
@@ -11,6 +11,6 @@ export default class SdTabPanel extends SolidElement {
11
11
  }
12
12
  declare global {
13
13
  interface HTMLElementTagNameMap {
14
- 'sd-5-1-0-tab-panel': SdTabPanel;
14
+ 'sd-5-2-0-tab-panel': SdTabPanel;
15
15
  }
16
16
  }
@@ -24,6 +24,6 @@ export default class SdTag extends SolidElement {
24
24
  }
25
25
  declare global {
26
26
  interface HTMLElementTagNameMap {
27
- 'sd-5-1-0-tag': SdTag;
27
+ 'sd-5-2-0-tag': SdTag;
28
28
  }
29
29
  }
@@ -68,6 +68,6 @@ export default class SdTextarea extends SolidElement implements SolidFormControl
68
68
  }
69
69
  declare global {
70
70
  interface HTMLElementTagNameMap {
71
- 'sd-5-1-0-textarea': SdTextarea;
71
+ 'sd-5-2-0-textarea': SdTextarea;
72
72
  }
73
73
  }
@@ -40,6 +40,6 @@ export default class SdTooltip extends SolidElement {
40
40
  }
41
41
  declare global {
42
42
  interface HTMLElementTagNameMap {
43
- 'sd-5-1-0-tooltip': SdTooltip;
43
+ 'sd-5-2-0-tooltip': SdTooltip;
44
44
  }
45
45
  }
@@ -22,6 +22,6 @@ export default class SdVideo extends SolidElement {
22
22
  }
23
23
  declare global {
24
24
  interface HTMLElementTagNameMap {
25
- 'sd-5-1-0-video': SdVideo;
25
+ 'sd-5-2-0-video': SdVideo;
26
26
  }
27
27
  }