@solid-design-system/components 5.13.4 → 5.13.5

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 (261) hide show
  1. package/cdn/chunks/chunk.2HJAPXID.js +1 -0
  2. package/cdn/components/expandable/expandable.js +1 -1
  3. package/cdn/custom-elements.json +186 -186
  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/chunks/chunk.2AESCEHJ.js +1 -1
  9. package/cdn-versioned/chunks/chunk.2HJAPXID.js +1 -0
  10. package/cdn-versioned/chunks/chunk.2IXCDCBI.js +1 -1
  11. package/cdn-versioned/chunks/chunk.2KNDUWBP.js +1 -1
  12. package/cdn-versioned/chunks/chunk.3ED5FZPY.js +1 -1
  13. package/cdn-versioned/chunks/chunk.3O5CSFK6.js +1 -1
  14. package/cdn-versioned/chunks/chunk.54FIHRIN.js +1 -1
  15. package/cdn-versioned/chunks/chunk.6HLS5XU2.js +1 -1
  16. package/cdn-versioned/chunks/chunk.6XXF5G5C.js +1 -1
  17. package/cdn-versioned/chunks/chunk.6YBQX3MQ.js +1 -1
  18. package/cdn-versioned/chunks/chunk.7HYHC4VH.js +1 -1
  19. package/cdn-versioned/chunks/chunk.7IH2NLBX.js +1 -1
  20. package/cdn-versioned/chunks/chunk.7INMWOUZ.js +1 -1
  21. package/cdn-versioned/chunks/chunk.7JI2ZUD5.js +1 -1
  22. package/cdn-versioned/chunks/chunk.7WMTV6I4.js +1 -1
  23. package/cdn-versioned/chunks/chunk.A25LJOFY.js +1 -1
  24. package/cdn-versioned/chunks/chunk.BBD6RMZH.js +1 -1
  25. package/cdn-versioned/chunks/chunk.BUD2EAST.js +1 -1
  26. package/cdn-versioned/chunks/chunk.C5W6LZD4.js +1 -1
  27. package/cdn-versioned/chunks/chunk.C6JGWWSD.js +1 -1
  28. package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
  29. package/cdn-versioned/chunks/chunk.CQ4QBZ5J.js +4 -4
  30. package/cdn-versioned/chunks/chunk.CQYFUSYG.js +1 -1
  31. package/cdn-versioned/chunks/chunk.CSSD2EF7.js +1 -1
  32. package/cdn-versioned/chunks/chunk.CZIBZYQR.js +1 -1
  33. package/cdn-versioned/chunks/chunk.DX3YFLMK.js +1 -1
  34. package/cdn-versioned/chunks/chunk.EAYWBCE7.js +1 -1
  35. package/cdn-versioned/chunks/chunk.EIYIMNPT.js +1 -1
  36. package/cdn-versioned/chunks/chunk.ENZOPZGC.js +1 -1
  37. package/cdn-versioned/chunks/chunk.F6VUPTBP.js +1 -1
  38. package/cdn-versioned/chunks/chunk.FZHHVY6Y.js +1 -1
  39. package/cdn-versioned/chunks/chunk.HAL2ARMM.js +1 -1
  40. package/cdn-versioned/chunks/chunk.HLGRDYA3.js +1 -1
  41. package/cdn-versioned/chunks/chunk.IP26UT3O.js +1 -1
  42. package/cdn-versioned/chunks/chunk.ITMQUAG2.js +1 -1
  43. package/cdn-versioned/chunks/chunk.IUTS4ODJ.js +1 -1
  44. package/cdn-versioned/chunks/chunk.IXHLVTCE.js +1 -1
  45. package/cdn-versioned/chunks/chunk.JEBG27AS.js +1 -1
  46. package/cdn-versioned/chunks/chunk.JECBERJ6.js +1 -1
  47. package/cdn-versioned/chunks/chunk.LD75GZVE.js +1 -1
  48. package/cdn-versioned/chunks/chunk.LOVOZACS.js +1 -1
  49. package/cdn-versioned/chunks/chunk.NHN2NTOB.js +1 -1
  50. package/cdn-versioned/chunks/chunk.NS75T6AP.js +1 -1
  51. package/cdn-versioned/chunks/chunk.OAVL5PS2.js +1 -1
  52. package/cdn-versioned/chunks/chunk.OQTFQZQD.js +1 -1
  53. package/cdn-versioned/chunks/chunk.OTZWFXC6.js +1 -1
  54. package/cdn-versioned/chunks/chunk.PEJM3PLJ.js +1 -1
  55. package/cdn-versioned/chunks/chunk.PJZCF7M2.js +1 -1
  56. package/cdn-versioned/chunks/chunk.RRVZNEFJ.js +1 -1
  57. package/cdn-versioned/chunks/chunk.RU2MXVG3.js +1 -1
  58. package/cdn-versioned/chunks/chunk.SM5KISBS.js +1 -1
  59. package/cdn-versioned/chunks/chunk.STQUP635.js +1 -1
  60. package/cdn-versioned/chunks/chunk.UBO3W67S.js +1 -1
  61. package/cdn-versioned/chunks/chunk.VMPJQLWX.js +1 -1
  62. package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
  63. package/cdn-versioned/chunks/chunk.WQU7XRRP.js +1 -1
  64. package/cdn-versioned/chunks/chunk.XGXHVRYA.js +1 -1
  65. package/cdn-versioned/chunks/chunk.Y77KMBSV.js +4 -4
  66. package/cdn-versioned/chunks/chunk.YGTSBRUS.js +1 -1
  67. package/cdn-versioned/chunks/chunk.YI3Y536X.js +1 -1
  68. package/cdn-versioned/chunks/chunk.ZWO2DZQK.js +2 -2
  69. package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
  70. package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  71. package/cdn-versioned/components/animation/animation.d.ts +1 -1
  72. package/cdn-versioned/components/audio/audio.d.ts +1 -1
  73. package/cdn-versioned/components/badge/badge.d.ts +1 -1
  74. package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
  75. package/cdn-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
  76. package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  77. package/cdn-versioned/components/button/button.d.ts +1 -1
  78. package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
  79. package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
  80. package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  81. package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
  82. package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  83. package/cdn-versioned/components/combobox/combobox.d.ts +1 -1
  84. package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
  85. package/cdn-versioned/components/divider/divider.d.ts +1 -1
  86. package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
  87. package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
  88. package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
  89. package/cdn-versioned/components/expandable/expandable.js +1 -1
  90. package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
  91. package/cdn-versioned/components/header/header.d.ts +1 -1
  92. package/cdn-versioned/components/icon/icon.d.ts +1 -1
  93. package/cdn-versioned/components/include/include.d.ts +1 -1
  94. package/cdn-versioned/components/input/input.d.ts +1 -1
  95. package/cdn-versioned/components/link/link.d.ts +1 -1
  96. package/cdn-versioned/components/loader/loader.d.ts +1 -1
  97. package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
  98. package/cdn-versioned/components/menu/menu.d.ts +1 -1
  99. package/cdn-versioned/components/menu-item/menu-item.d.ts +1 -1
  100. package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  101. package/cdn-versioned/components/notification/notification.d.ts +1 -1
  102. package/cdn-versioned/components/optgroup/optgroup.d.ts +1 -1
  103. package/cdn-versioned/components/option/option.d.ts +1 -1
  104. package/cdn-versioned/components/popup/popup.d.ts +1 -1
  105. package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
  106. package/cdn-versioned/components/radio/radio.d.ts +1 -1
  107. package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
  108. package/cdn-versioned/components/radio-group/radio-group.d.ts +1 -1
  109. package/cdn-versioned/components/range/range.d.ts +1 -1
  110. package/cdn-versioned/components/range-tick/range-tick.d.ts +1 -1
  111. package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
  112. package/cdn-versioned/components/select/select.d.ts +1 -1
  113. package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
  114. package/cdn-versioned/components/step/step.d.ts +1 -1
  115. package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
  116. package/cdn-versioned/components/switch/switch.d.ts +1 -1
  117. package/cdn-versioned/components/tab/tab.d.ts +1 -1
  118. package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
  119. package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  120. package/cdn-versioned/components/tag/tag.d.ts +1 -1
  121. package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
  122. package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
  123. package/cdn-versioned/components/video/video.d.ts +1 -1
  124. package/cdn-versioned/custom-elements.json +420 -420
  125. package/cdn-versioned/internal/form.js +3 -3
  126. package/cdn-versioned/solid-components.bundle.js +13 -13
  127. package/cdn-versioned/solid-components.css +2 -2
  128. package/cdn-versioned/solid-components.iife.js +13 -13
  129. package/cdn-versioned/solid-components.js +1 -1
  130. package/cdn-versioned/vscode.html-custom-data.json +91 -91
  131. package/cdn-versioned/web-types.json +154 -154
  132. package/dist/chunks/{chunk.3SBJ5LD6.js → chunk.VPU4YXCW.js} +1 -1
  133. package/dist/components/expandable/expandable.js +1 -1
  134. package/dist/custom-elements.json +186 -186
  135. package/dist/solid-components.js +1 -1
  136. package/dist/web-types.json +1 -1
  137. package/dist-versioned/chunks/chunk.22XVLL4U.js +1 -1
  138. package/dist-versioned/chunks/chunk.2CWYTGUF.js +26 -26
  139. package/dist-versioned/chunks/chunk.2USKLT7E.js +6 -6
  140. package/dist-versioned/chunks/chunk.33JOPIXE.js +24 -24
  141. package/dist-versioned/chunks/chunk.3H34BS4K.js +1 -1
  142. package/dist-versioned/chunks/chunk.3HHT2OQH.js +12 -12
  143. package/dist-versioned/chunks/chunk.3IWFEPZF.js +4 -4
  144. package/dist-versioned/chunks/chunk.3P4CWN6B.js +3 -3
  145. package/dist-versioned/chunks/chunk.4GOBDXSS.js +1 -1
  146. package/dist-versioned/chunks/chunk.4JS6YQGE.js +3 -3
  147. package/dist-versioned/chunks/chunk.5DBXOC2V.js +1 -1
  148. package/dist-versioned/chunks/chunk.5PBRPBRT.js +5 -5
  149. package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
  150. package/dist-versioned/chunks/chunk.6P3RKSUO.js +1 -1
  151. package/dist-versioned/chunks/chunk.7AKLVTJJ.js +3 -3
  152. package/dist-versioned/chunks/chunk.7L25CLNU.js +2 -2
  153. package/dist-versioned/chunks/chunk.A5Z4VKXC.js +2 -2
  154. package/dist-versioned/chunks/chunk.COXPSVWJ.js +3 -3
  155. package/dist-versioned/chunks/chunk.CURD6RBZ.js +6 -6
  156. package/dist-versioned/chunks/chunk.CZOZQ3VO.js +1 -1
  157. package/dist-versioned/chunks/chunk.CZXEOVSI.js +4 -4
  158. package/dist-versioned/chunks/chunk.D4DTFLNK.js +1 -1
  159. package/dist-versioned/chunks/chunk.DG2EQDME.js +2 -2
  160. package/dist-versioned/chunks/chunk.E3JOKBV7.js +2 -2
  161. package/dist-versioned/chunks/chunk.EQ6ES4D4.js +2 -2
  162. package/dist-versioned/chunks/chunk.HDOXCV5R.js +2 -2
  163. package/dist-versioned/chunks/chunk.I34ENUW2.js +2 -2
  164. package/dist-versioned/chunks/chunk.I55X5D52.js +2 -2
  165. package/dist-versioned/chunks/chunk.K2A6FAQM.js +2 -2
  166. package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
  167. package/dist-versioned/chunks/chunk.KGO6SGAI.js +2 -2
  168. package/dist-versioned/chunks/chunk.KTW4YKIN.js +2 -2
  169. package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
  170. package/dist-versioned/chunks/chunk.L3CJJWQH.js +5 -5
  171. package/dist-versioned/chunks/chunk.LJGEETGS.js +2 -2
  172. package/dist-versioned/chunks/chunk.LVKMRGF7.js +2 -2
  173. package/dist-versioned/chunks/chunk.NIOP54NF.js +1 -1
  174. package/dist-versioned/chunks/chunk.NIVOUKTJ.js +5 -5
  175. package/dist-versioned/chunks/chunk.OKJADCUF.js +3 -3
  176. package/dist-versioned/chunks/chunk.PMP3SJSG.js +4 -4
  177. package/dist-versioned/chunks/chunk.R6QYQOQJ.js +1 -1
  178. package/dist-versioned/chunks/chunk.R7SUBHGP.js +1 -1
  179. package/dist-versioned/chunks/chunk.S4BMH7I6.js +3 -3
  180. package/dist-versioned/chunks/chunk.S4W23ZFB.js +2 -2
  181. package/dist-versioned/chunks/chunk.SGY6Q5FM.js +1 -1
  182. package/dist-versioned/chunks/chunk.SLDPP5NU.js +14 -14
  183. package/dist-versioned/chunks/chunk.SVC3IWAA.js +2 -2
  184. package/dist-versioned/chunks/chunk.TB76LMSK.js +11 -11
  185. package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
  186. package/dist-versioned/chunks/chunk.UMJTGYQ7.js +3 -3
  187. package/dist-versioned/chunks/chunk.VEBQYO6P.js +1 -1
  188. package/dist-versioned/chunks/chunk.VISHTUP5.js +1 -1
  189. package/dist-versioned/chunks/chunk.VNGVFWX6.js +1 -1
  190. package/dist-versioned/chunks/chunk.VPTCQBGB.js +5 -5
  191. package/dist-versioned/chunks/{chunk.3SBJ5LD6.js → chunk.VPU4YXCW.js} +3 -3
  192. package/dist-versioned/chunks/chunk.W2L2LAQR.js +12 -12
  193. package/dist-versioned/chunks/chunk.WMLESPZB.js +8 -8
  194. package/dist-versioned/chunks/chunk.XHOP5USY.js +1 -1
  195. package/dist-versioned/chunks/chunk.YGJNZUTI.js +3 -3
  196. package/dist-versioned/chunks/chunk.YTLWADMX.js +1 -1
  197. package/dist-versioned/chunks/chunk.ZSG33GER.js +6 -6
  198. package/dist-versioned/components/accordion/accordion.d.ts +1 -1
  199. package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  200. package/dist-versioned/components/animation/animation.d.ts +1 -1
  201. package/dist-versioned/components/audio/audio.d.ts +1 -1
  202. package/dist-versioned/components/badge/badge.d.ts +1 -1
  203. package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
  204. package/dist-versioned/components/breadcrumb/breadcrumb.d.ts +1 -1
  205. package/dist-versioned/components/breadcrumb-item/breadcrumb-item.d.ts +1 -1
  206. package/dist-versioned/components/button/button.d.ts +1 -1
  207. package/dist-versioned/components/button-group/button-group.d.ts +1 -1
  208. package/dist-versioned/components/carousel/carousel.d.ts +1 -1
  209. package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  210. package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
  211. package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  212. package/dist-versioned/components/combobox/combobox.d.ts +1 -1
  213. package/dist-versioned/components/dialog/dialog.d.ts +1 -1
  214. package/dist-versioned/components/divider/divider.d.ts +1 -1
  215. package/dist-versioned/components/drawer/drawer.d.ts +1 -1
  216. package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
  217. package/dist-versioned/components/expandable/expandable.d.ts +1 -1
  218. package/dist-versioned/components/expandable/expandable.js +1 -1
  219. package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
  220. package/dist-versioned/components/header/header.d.ts +1 -1
  221. package/dist-versioned/components/icon/icon.d.ts +1 -1
  222. package/dist-versioned/components/include/include.d.ts +1 -1
  223. package/dist-versioned/components/input/input.d.ts +1 -1
  224. package/dist-versioned/components/link/link.d.ts +1 -1
  225. package/dist-versioned/components/loader/loader.d.ts +1 -1
  226. package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
  227. package/dist-versioned/components/menu/menu.d.ts +1 -1
  228. package/dist-versioned/components/menu-item/menu-item.d.ts +1 -1
  229. package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  230. package/dist-versioned/components/notification/notification.d.ts +1 -1
  231. package/dist-versioned/components/optgroup/optgroup.d.ts +1 -1
  232. package/dist-versioned/components/option/option.d.ts +1 -1
  233. package/dist-versioned/components/popup/popup.d.ts +1 -1
  234. package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
  235. package/dist-versioned/components/radio/radio.d.ts +1 -1
  236. package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
  237. package/dist-versioned/components/radio-group/radio-group.d.ts +1 -1
  238. package/dist-versioned/components/range/range.d.ts +1 -1
  239. package/dist-versioned/components/range-tick/range-tick.d.ts +1 -1
  240. package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
  241. package/dist-versioned/components/select/select.d.ts +1 -1
  242. package/dist-versioned/components/spinner/spinner.d.ts +1 -1
  243. package/dist-versioned/components/step/step.d.ts +1 -1
  244. package/dist-versioned/components/step-group/step-group.d.ts +1 -1
  245. package/dist-versioned/components/switch/switch.d.ts +1 -1
  246. package/dist-versioned/components/tab/tab.d.ts +1 -1
  247. package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
  248. package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  249. package/dist-versioned/components/tag/tag.d.ts +1 -1
  250. package/dist-versioned/components/textarea/textarea.d.ts +1 -1
  251. package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
  252. package/dist-versioned/components/video/video.d.ts +1 -1
  253. package/dist-versioned/custom-elements.json +420 -420
  254. package/dist-versioned/internal/form.js +3 -3
  255. package/dist-versioned/solid-components.css +2 -2
  256. package/dist-versioned/solid-components.js +1 -1
  257. package/dist-versioned/vscode.html-custom-data.json +91 -91
  258. package/dist-versioned/web-types.json +154 -154
  259. package/package.json +2 -2
  260. package/cdn/chunks/chunk.4Y2JE5PV.js +0 -1
  261. package/cdn-versioned/chunks/chunk.4Y2JE5PV.js +0 -1
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@solid-design-system/components",
3
3
  "description": "Solid Design System: Components",
4
- "version": "5.13.4",
4
+ "version": "5.13.5",
5
5
  "homepage": "https://solid-design-system.fe.union-investment.de/docs/",
6
6
  "author": "Union Investment",
7
7
  "license": "MIT",
@@ -111,7 +111,7 @@
111
111
  "readme": "README.md",
112
112
  "meta": {
113
113
  "bundleSizeInKb": {
114
- "uncompressed": 476,
114
+ "uncompressed": 477,
115
115
  "gzip": 112
116
116
  }
117
117
  },
@@ -1 +0,0 @@
1
- import{a as b}from"./chunk.YTG5BN3U.js";import{a as c,c as p}from"./chunk.SKUMYG4O.js";import{a as m}from"./chunk.KLRPP4NQ.js";import{a as o}from"./chunk.26V4EXHB.js";import{a as y}from"./chunk.GHC63SXL.js";import{a as v}from"./chunk.E2DRD2OX.js";import{a as f,b as a,d as n,h}from"./chunk.PJZCF7M2.js";import{b as g,e as u}from"./chunk.UWPDCU52.js";import{b as r,e as l,f as d}from"./chunk.6OTM3PE5.js";import{e as i}from"./chunk.TJOCV4DC.js";var t=class extends h{constructor(){super(...arguments);this.open=!1;this.inverted=!1;this.localize=new y(this)}updateMaxHeight(){var s;let e=(s=this.contentPreview)==null?void 0:s.scrollHeight.toString();this.style.setProperty("--max-height-pixel",`${e}px`),this.style.setProperty("--max-height",e)}onToggleClick(){this.updateMaxHeight(),this.open=!this.open}async onOpenChange(){if(this.body.classList.add("transitioning"),this.open){this.emit("sd-show"),await l(this.body);let{keyframes:e,options:s}=p(this,"expandable.show",{dir:this.localize.dir()});await r(this.body,d(e,this.body.scrollHeight),s),this.body.style.height="auto",this.updateComplete.then(()=>{this.emit("sd-after-show")})}else{this.emit("sd-hide"),await l(this.body);let{keyframes:e,options:s}=p(this,"expandable.hide",{dir:this.localize.dir()});await r(this.body,d(e,this.body.scrollHeight),s),this.body.style.height="auto",this.updateComplete.then(()=>{this.emit("sd-after-hide")})}this.details.setAttribute("open",this.open.toString()),this.body.classList.remove("transitioning")}async show(){if(!this.open)return this.onToggleClick(),m(this,"sd-after-show")}async hide(){if(this.open)return this.onToggleClick(),m(this,"sd-after-hide")}render(){return u`<div part="base" class="flex flex-col-reverse gap-4"><button part="toggle" class="${o("sd-interactive sd-interactive--reset",this.inverted&&"sd-interactive--inverted",this.inverted?"!focus-visible:focus-outline-inverted":"!focus-visible:focus-outline")}" @click="${this.onToggleClick}" aria-expanded="${this.open}"><div class="${o("h-full justify-center w-full text-base flex items-center toggle")}"><span part="toggle-icon" class="${o("flex items-center mr-2 transition-transform duration-medium ease-in-out",this.open&&"rotate-180")}"><slot name="expand-icon" class="${o(this.open&&"hidden")}"><sd-icon library="_internal" name="chevron-down" class="text-xl"></sd-icon></slot><slot name="collapse-icon" class="${o(!this.open&&"hidden")}"><sd-icon library="_internal" name="chevron-down" class="text-xl"></sd-icon></slot></span><slot name="toggle-closed" class="${o(this.open&&"hidden")}">${this.localize.term("showMore")}</slot><slot name="toggle-open" class="${o(!this.open&&"hidden")}">${this.localize.term("showLess")}</slot></div></button><details part="details" ?inert="${b(!this.open)}"><summary part="summary" aria-hidden="true" class="cursor-pointer overflow-hidden list-none"><slot name="clone"></slot></summary><div part="content" class="content content-preview overflow-hidden relative"><slot></slot></div></details></div>`}firstUpdated(){this.cloneContentToLightDOM(),this.details.setAttribute("open",this.open.toString())}cloneContentToLightDOM(){let e=document.createElement("div");e.setAttribute("slot","clone"),Array.from(this.childNodes).forEach(x=>{let w=x.cloneNode(!0);e.appendChild(w)}),this.appendChild(e)}};t.styles=[...h.styles,g`:host{--gradient-color-start:hsla(0,0%,100%,0);--gradient-color-end:#fff;--component-expandable-max-block-size:90px;--gradient-height:24px;--gradient:var(--gradient-color-start) 0%,var(--gradient-color-end) 80%,var(--gradient-color-end) 100%;display:inline-block;position:relative;width:100%}.toggle::-moz-focus-inner{border-style:none;padding:var(--sd-spacing-0,0)}details>summary::-webkit-details-marker,details[open] summary{display:none}summary{max-block-size:var(--component-expandable-max-block-size)}:host([open]) summary{max-block-size:var(--max-height-pixel,1000vh)}.content{max-block-size:var(--component-expandable-max-block-size)}:host([open]) .content,:host:has(.transitioning) .content{max-block-size:var(--max-height-pixel,1000vh)}.content:after{background:linear-gradient(180deg,var(--gradient));bottom:var(--sd-spacing-0,0);content:" ";display:block;height:var(--gradient-height);left:var(--sd-spacing-0,0);opacity:var(--sd-opacity-0,0);position:absolute;transition-duration:.15s;transition-duration:var(--sd-duration-medium,.3s);transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);width:100%}:host([inverted]) .content:after{background:var(--gradient-vertical-transparent-primary,linear-gradient(180deg,rgba(0,53,142,0) 0,#00358e 80%,#00358e 100%))}:host(:not([open])) .content:after{opacity:var(--sd-opacity-100,1)}`],i([n(".content-preview")],t.prototype,"contentPreview",2),i([n("details")],t.prototype,"details",2),i([n('[part="content"]')],t.prototype,"body",2),i([a({type:Boolean,reflect:!0})],t.prototype,"open",2),i([a({type:Boolean,reflect:!0})],t.prototype,"inverted",2),i([v("open",{waitUntilFirstUpdate:!0})],t.prototype,"onOpenChange",1),t=i([f("sd-expandable")],t);c("expandable.show",{keyframes:[{height:"var(--component-expandable-max-block-size, 90px)"},{height:"auto"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});c("expandable.hide",{keyframes:[{height:"auto"},{height:"var(--component-expandable-max-block-size, 90px)"}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});export{t as a};
@@ -1 +0,0 @@
1
- import{a as b}from"./chunk.YTG5BN3U.js";import{a as c,c as p}from"./chunk.SKUMYG4O.js";import{a as m}from"./chunk.KLRPP4NQ.js";import{a as o}from"./chunk.26V4EXHB.js";import{a as y}from"./chunk.GHC63SXL.js";import{a as v}from"./chunk.E2DRD2OX.js";import{a as f,b as a,d as n,h}from"./chunk.PJZCF7M2.js";import{b as g,e as u}from"./chunk.UWPDCU52.js";import{b as r,e as l,f as d}from"./chunk.6OTM3PE5.js";import{e as i}from"./chunk.TJOCV4DC.js";var t=class extends h{constructor(){super(...arguments);this.open=!1;this.inverted=!1;this.localize=new y(this)}updateMaxHeight(){var s;let e=(s=this.contentPreview)==null?void 0:s.scrollHeight.toString();this.style.setProperty("--max-height-pixel",`${e}px`),this.style.setProperty("--max-height",e)}onToggleClick(){this.updateMaxHeight(),this.open=!this.open}async onOpenChange(){if(this.body.classList.add("transitioning"),this.open){this.emit("sd-show"),await l(this.body);let{keyframes:e,options:s}=p(this,"expandable.show",{dir:this.localize.dir()});await r(this.body,d(e,this.body.scrollHeight),s),this.body.style.height="auto",this.updateComplete.then(()=>{this.emit("sd-after-show")})}else{this.emit("sd-hide"),await l(this.body);let{keyframes:e,options:s}=p(this,"expandable.hide",{dir:this.localize.dir()});await r(this.body,d(e,this.body.scrollHeight),s),this.body.style.height="auto",this.updateComplete.then(()=>{this.emit("sd-after-hide")})}this.details.setAttribute("open",this.open.toString()),this.body.classList.remove("transitioning")}async show(){if(!this.open)return this.onToggleClick(),m(this,"sd-after-show")}async hide(){if(this.open)return this.onToggleClick(),m(this,"sd-after-hide")}render(){return u`<div part="base" class="flex flex-col-reverse gap-4"><button part="toggle" class="${o("sd-interactive sd-interactive--reset",this.inverted&&"sd-interactive--inverted",this.inverted?"!focus-visible:focus-outline-inverted":"!focus-visible:focus-outline")}" @click="${this.onToggleClick}" aria-expanded="${this.open}"><div class="${o("h-full justify-center w-full text-base flex items-center toggle")}"><span part="toggle-icon" class="${o("flex items-center mr-2 transition-transform duration-medium ease-in-out",this.open&&"rotate-180")}"><slot name="expand-icon" class="${o(this.open&&"hidden")}"><sd-5-13-4-icon library="_internal" name="chevron-down" class="text-xl"></sd-5-13-4-icon></slot><slot name="collapse-icon" class="${o(!this.open&&"hidden")}"><sd-5-13-4-icon library="_internal" name="chevron-down" class="text-xl"></sd-5-13-4-icon></slot></span><slot name="toggle-closed" class="${o(this.open&&"hidden")}">${this.localize.term("showMore")}</slot><slot name="toggle-open" class="${o(!this.open&&"hidden")}">${this.localize.term("showLess")}</slot></div></button><details part="details" ?inert="${b(!this.open)}"><summary part="summary" aria-hidden="true" class="cursor-pointer overflow-hidden list-none"><slot name="clone"></slot></summary><div part="content" class="content content-preview overflow-hidden relative"><slot></slot></div></details></div>`}firstUpdated(){this.cloneContentToLightDOM(),this.details.setAttribute("open",this.open.toString())}cloneContentToLightDOM(){let e=document.createElement("div");e.setAttribute("slot","clone"),Array.from(this.childNodes).forEach(x=>{let w=x.cloneNode(!0);e.appendChild(w)}),this.appendChild(e)}};t.styles=[...h.styles,g`:host{--gradient-color-start:hsla(0,0%,100%,0);--gradient-color-end:#fff;--component-expandable-max-block-size:90px;--gradient-height:24px;--gradient:var(--gradient-color-start) 0%,var(--gradient-color-end) 80%,var(--gradient-color-end) 100%;display:inline-block;position:relative;width:100%}.toggle::-moz-focus-inner{border-style:none;padding:var(--sd-spacing-0,0)}details>summary::-webkit-details-marker,details[open] summary{display:none}summary{max-block-size:var(--component-expandable-max-block-size)}:host([open]) summary{max-block-size:var(--max-height-pixel,1000vh)}.content{max-block-size:var(--component-expandable-max-block-size)}:host([open]) .content,:host:has(.transitioning) .content{max-block-size:var(--max-height-pixel,1000vh)}.content:after{background:linear-gradient(180deg,var(--gradient));bottom:var(--sd-spacing-0,0);content:" ";display:block;height:var(--gradient-height);left:var(--sd-spacing-0,0);opacity:var(--sd-opacity-0,0);position:absolute;transition-duration:.15s;transition-duration:var(--sd-duration-medium,.3s);transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);width:100%}:host([inverted]) .content:after{background:var(--gradient-vertical-transparent-primary,linear-gradient(180deg,rgba(0,53,142,0) 0,#00358e 80%,#00358e 100%))}:host(:not([open])) .content:after{opacity:var(--sd-opacity-100,1)}`],i([n(".content-preview")],t.prototype,"contentPreview",2),i([n("details")],t.prototype,"details",2),i([n('[part="content"]')],t.prototype,"body",2),i([a({type:Boolean,reflect:!0})],t.prototype,"open",2),i([a({type:Boolean,reflect:!0})],t.prototype,"inverted",2),i([v("open",{waitUntilFirstUpdate:!0})],t.prototype,"onOpenChange",1),t=i([f("sd-5-13-4-expandable")],t);c("expandable.show",{keyframes:[{height:"var(--component-expandable-max-block-size, 90px)"},{height:"auto"}],options:{duration:"var(--sd-duration-medium, 300)",easing:"ease-in-out"}});c("expandable.hide",{keyframes:[{height:"auto"},{height:"var(--component-expandable-max-block-size, 90px)"}],options:{duration:"var(--sd-duration-fast, 150)",easing:"ease-in-out"}});export{t as a};