@solid-design-system/components 4.3.1 → 4.4.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 (251) hide show
  1. package/cdn/chunks/chunk.HT2MRC4Z.js +1 -0
  2. package/cdn/chunks/chunk.NQXQB7LN.js +1 -0
  3. package/cdn/components/step/step.d.ts +1 -0
  4. package/cdn/components/step/step.js +1 -1
  5. package/cdn/components/step-group/step-group.d.ts +1 -0
  6. package/cdn/components/step-group/step-group.js +1 -1
  7. package/cdn/custom-elements.json +20 -1
  8. package/cdn/solid-components.bundle.js +15 -15
  9. package/cdn/solid-components.iife.js +15 -15
  10. package/cdn/solid-components.js +1 -1
  11. package/cdn/vscode.html-custom-data.json +5 -0
  12. package/cdn/web-types.json +11 -1
  13. package/cdn-versioned/_components/menu/menu.js +1 -1
  14. package/cdn-versioned/_components/menu/menu.styles.js +1 -1
  15. package/cdn-versioned/_components/menu-item/menu-item.js +2 -2
  16. package/cdn-versioned/chunks/chunk.247MZWMU.js +1 -1
  17. package/cdn-versioned/chunks/chunk.2BLQ3VDT.js +4 -4
  18. package/cdn-versioned/chunks/chunk.2HJF2D4H.js +2 -2
  19. package/cdn-versioned/chunks/chunk.43NFQGWL.js +1 -1
  20. package/cdn-versioned/chunks/chunk.4QAJB6AU.js +1 -1
  21. package/cdn-versioned/chunks/chunk.5AILWWY2.js +1 -1
  22. package/cdn-versioned/chunks/chunk.5TTHL3M2.js +3 -3
  23. package/cdn-versioned/chunks/chunk.5YWPH3S7.js +2 -2
  24. package/cdn-versioned/chunks/chunk.65NSSTJE.js +1 -1
  25. package/cdn-versioned/chunks/chunk.777DWZOA.js +1 -1
  26. package/cdn-versioned/chunks/chunk.7TRFUW6U.js +1 -1
  27. package/cdn-versioned/chunks/chunk.BHWV44KN.js +1 -1
  28. package/cdn-versioned/chunks/chunk.BWMHPT4Y.js +1 -1
  29. package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
  30. package/cdn-versioned/chunks/chunk.CNGIUOE5.js +1 -1
  31. package/cdn-versioned/chunks/chunk.DDLTKNEO.js +1 -1
  32. package/cdn-versioned/chunks/chunk.DLY5AX2P.js +1 -1
  33. package/cdn-versioned/chunks/chunk.E5FCRWHS.js +1 -1
  34. package/cdn-versioned/chunks/chunk.F45IDVYA.js +1 -1
  35. package/cdn-versioned/chunks/chunk.FHU3KJ7Y.js +1 -1
  36. package/cdn-versioned/chunks/chunk.FVXID42E.js +1 -1
  37. package/cdn-versioned/chunks/chunk.HT2MRC4Z.js +1 -0
  38. package/cdn-versioned/chunks/chunk.I2WEQVU3.js +1 -1
  39. package/cdn-versioned/chunks/chunk.IUC5UQ2V.js +1 -1
  40. package/cdn-versioned/chunks/chunk.JCNKLGIS.js +1 -1
  41. package/cdn-versioned/chunks/chunk.JDSUZDP4.js +1 -1
  42. package/cdn-versioned/chunks/chunk.KLNBBP4R.js +4 -4
  43. package/cdn-versioned/chunks/chunk.KV424MMD.js +1 -1
  44. package/cdn-versioned/chunks/chunk.KWNRVZ54.js +1 -1
  45. package/cdn-versioned/chunks/chunk.LET4FMBB.js +1 -1
  46. package/cdn-versioned/chunks/chunk.LKO4ZRE7.js +1 -1
  47. package/cdn-versioned/chunks/chunk.NFQN6UG4.js +1 -1
  48. package/cdn-versioned/chunks/chunk.NOJV6ZZF.js +1 -1
  49. package/cdn-versioned/chunks/chunk.NQXQB7LN.js +1 -0
  50. package/cdn-versioned/chunks/chunk.NZT4ORYP.js +1 -1
  51. package/cdn-versioned/chunks/chunk.O3IRROA2.js +1 -1
  52. package/cdn-versioned/chunks/chunk.ONLECFTO.js +1 -1
  53. package/cdn-versioned/chunks/chunk.PDIUABFP.js +1 -1
  54. package/cdn-versioned/chunks/chunk.PGBIGG5I.js +1 -1
  55. package/cdn-versioned/chunks/chunk.QWMQJ6TF.js +1 -1
  56. package/cdn-versioned/chunks/chunk.RCLIOOS5.js +1 -1
  57. package/cdn-versioned/chunks/chunk.RGJXEMYT.js +1 -1
  58. package/cdn-versioned/chunks/chunk.SDZ6E4CH.js +1 -1
  59. package/cdn-versioned/chunks/chunk.V3YHI2G2.js +1 -1
  60. package/cdn-versioned/chunks/chunk.VZSFEHBE.js +1 -1
  61. package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
  62. package/cdn-versioned/chunks/chunk.WJ55QSS3.js +1 -1
  63. package/cdn-versioned/chunks/chunk.WMV7GLXF.js +1 -1
  64. package/cdn-versioned/chunks/chunk.WUTY672B.js +1 -1
  65. package/cdn-versioned/chunks/chunk.XYZ5DKTA.js +1 -1
  66. package/cdn-versioned/chunks/chunk.Y4PTSCEB.js +1 -1
  67. package/cdn-versioned/chunks/chunk.ZN24IDXT.js +1 -1
  68. package/cdn-versioned/chunks/chunk.ZVVSLR3B.js +1 -1
  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/button/button.d.ts +1 -1
  76. package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
  77. package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
  78. package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  79. package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
  80. package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  81. package/cdn-versioned/components/combobox/combobox.d.ts +4 -4
  82. package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
  83. package/cdn-versioned/components/divider/divider.d.ts +1 -1
  84. package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
  85. package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
  86. package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
  87. package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
  88. package/cdn-versioned/components/header/header.d.ts +1 -1
  89. package/cdn-versioned/components/icon/icon.d.ts +1 -1
  90. package/cdn-versioned/components/include/include.d.ts +1 -1
  91. package/cdn-versioned/components/input/input.d.ts +1 -1
  92. package/cdn-versioned/components/link/link.d.ts +1 -1
  93. package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
  94. package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  95. package/cdn-versioned/components/notification/notification.d.ts +1 -1
  96. package/cdn-versioned/components/optgroup/optgroup.d.ts +2 -2
  97. package/cdn-versioned/components/option/option.d.ts +1 -1
  98. package/cdn-versioned/components/popup/popup.d.ts +1 -1
  99. package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
  100. package/cdn-versioned/components/radio/radio.d.ts +1 -1
  101. package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
  102. package/cdn-versioned/components/radio-group/radio-group.d.ts +2 -2
  103. package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
  104. package/cdn-versioned/components/select/select.d.ts +4 -4
  105. package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
  106. package/cdn-versioned/components/step/step.d.ts +2 -1
  107. package/cdn-versioned/components/step/step.js +1 -1
  108. package/cdn-versioned/components/step-group/step-group.d.ts +2 -1
  109. package/cdn-versioned/components/step-group/step-group.js +1 -1
  110. package/cdn-versioned/components/switch/switch.d.ts +1 -1
  111. package/cdn-versioned/components/tab/tab.d.ts +1 -1
  112. package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
  113. package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  114. package/cdn-versioned/components/tag/tag.d.ts +1 -1
  115. package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
  116. package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
  117. package/cdn-versioned/components/video/video.d.ts +1 -1
  118. package/cdn-versioned/custom-elements.json +221 -202
  119. package/cdn-versioned/internal/form.js +3 -3
  120. package/cdn-versioned/solid-components.bundle.js +20 -20
  121. package/cdn-versioned/solid-components.css +2 -2
  122. package/cdn-versioned/solid-components.iife.js +21 -21
  123. package/cdn-versioned/solid-components.js +1 -1
  124. package/cdn-versioned/vscode.html-custom-data.json +85 -80
  125. package/cdn-versioned/web-types.json +147 -137
  126. package/dist/chunks/{chunk.RI66LCUS.js → chunk.5AX4S2QZ.js} +9 -1
  127. package/dist/chunks/{chunk.2LL4ZNH4.js → chunk.JMAPLJHF.js} +5 -1
  128. package/dist/components/step/step.d.ts +1 -0
  129. package/dist/components/step/step.js +2 -1
  130. package/dist/components/step-group/step-group.d.ts +1 -0
  131. package/dist/components/step-group/step-group.js +1 -1
  132. package/dist/custom-elements.json +20 -1
  133. package/dist/solid-components.js +2 -2
  134. package/dist/vscode.html-custom-data.json +5 -0
  135. package/dist/web-types.json +11 -1
  136. package/dist-versioned/_components/menu/menu.js +1 -1
  137. package/dist-versioned/_components/menu/menu.styles.js +1 -1
  138. package/dist-versioned/_components/menu-item/menu-item.js +2 -2
  139. package/dist-versioned/chunks/chunk.35GLHXMN.js +2 -2
  140. package/dist-versioned/chunks/chunk.3UO2LKG5.js +13 -13
  141. package/dist-versioned/chunks/chunk.3YTMF6YZ.js +2 -2
  142. package/dist-versioned/chunks/{chunk.RI66LCUS.js → chunk.5AX4S2QZ.js} +11 -3
  143. package/dist-versioned/chunks/chunk.5V7TZU4Q.js +5 -5
  144. package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
  145. package/dist-versioned/chunks/chunk.6MMBMCHF.js +9 -9
  146. package/dist-versioned/chunks/chunk.6S3CCHLZ.js +1 -1
  147. package/dist-versioned/chunks/chunk.73HAOWEX.js +2 -2
  148. package/dist-versioned/chunks/chunk.7SZFMAVT.js +1 -1
  149. package/dist-versioned/chunks/chunk.AWASHA2T.js +1 -1
  150. package/dist-versioned/chunks/chunk.BFHRLREK.js +1 -1
  151. package/dist-versioned/chunks/chunk.CVHGDRIM.js +2 -2
  152. package/dist-versioned/chunks/chunk.DI4CIT2A.js +1 -1
  153. package/dist-versioned/chunks/chunk.DNHLNGIL.js +13 -13
  154. package/dist-versioned/chunks/chunk.F4BRIYYD.js +1 -1
  155. package/dist-versioned/chunks/chunk.G6KPFA3G.js +4 -4
  156. package/dist-versioned/chunks/chunk.GQXJC6ZE.js +2 -2
  157. package/dist-versioned/chunks/chunk.GWCHNKGW.js +1 -1
  158. package/dist-versioned/chunks/chunk.H54CZFCF.js +5 -5
  159. package/dist-versioned/chunks/chunk.HJ3ZUH4A.js +1 -1
  160. package/dist-versioned/chunks/chunk.I2JBWY5C.js +2 -2
  161. package/dist-versioned/chunks/chunk.IKWY7WM6.js +3 -3
  162. package/dist-versioned/chunks/chunk.JD5XFZKL.js +2 -2
  163. package/dist-versioned/chunks/{chunk.2LL4ZNH4.js → chunk.JMAPLJHF.js} +7 -3
  164. package/dist-versioned/chunks/chunk.JPGDK3CW.js +2 -2
  165. package/dist-versioned/chunks/chunk.K5MKZJEB.js +5 -5
  166. package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
  167. package/dist-versioned/chunks/chunk.L5QYLWGO.js +6 -6
  168. package/dist-versioned/chunks/chunk.LRQ55FZL.js +1 -1
  169. package/dist-versioned/chunks/chunk.LUV3NLSJ.js +3 -3
  170. package/dist-versioned/chunks/chunk.MCUC6LS6.js +2 -2
  171. package/dist-versioned/chunks/chunk.MKZ5TRQH.js +1 -1
  172. package/dist-versioned/chunks/chunk.OENW3EQT.js +5 -5
  173. package/dist-versioned/chunks/chunk.ONBGPY5D.js +5 -5
  174. package/dist-versioned/chunks/chunk.QN2ROZHZ.js +3 -3
  175. package/dist-versioned/chunks/chunk.RFVRT5UG.js +2 -2
  176. package/dist-versioned/chunks/chunk.SH45GYZL.js +1 -1
  177. package/dist-versioned/chunks/chunk.T5VRGBLR.js +1 -1
  178. package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
  179. package/dist-versioned/chunks/chunk.UXEDWUMA.js +26 -26
  180. package/dist-versioned/chunks/chunk.WHFYHMF4.js +2 -2
  181. package/dist-versioned/chunks/chunk.WJHCLJNK.js +1 -1
  182. package/dist-versioned/chunks/chunk.WPHOQL7V.js +2 -2
  183. package/dist-versioned/chunks/chunk.WZGJQPPD.js +2 -2
  184. package/dist-versioned/chunks/chunk.X7HEAUGJ.js +2 -2
  185. package/dist-versioned/chunks/chunk.XCNH2K2U.js +5 -5
  186. package/dist-versioned/chunks/chunk.XNH47HGG.js +29 -29
  187. package/dist-versioned/chunks/chunk.Y6WJUTMM.js +6 -6
  188. package/dist-versioned/chunks/chunk.Z3T4BG2M.js +1 -1
  189. package/dist-versioned/chunks/chunk.ZH6BP5XL.js +3 -3
  190. package/dist-versioned/chunks/chunk.ZJGD23K6.js +3 -3
  191. package/dist-versioned/chunks/chunk.ZWJNBDIV.js +11 -11
  192. package/dist-versioned/components/accordion/accordion.d.ts +1 -1
  193. package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
  194. package/dist-versioned/components/animation/animation.d.ts +1 -1
  195. package/dist-versioned/components/audio/audio.d.ts +1 -1
  196. package/dist-versioned/components/badge/badge.d.ts +1 -1
  197. package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
  198. package/dist-versioned/components/button/button.d.ts +1 -1
  199. package/dist-versioned/components/button-group/button-group.d.ts +1 -1
  200. package/dist-versioned/components/carousel/carousel.d.ts +1 -1
  201. package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
  202. package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
  203. package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
  204. package/dist-versioned/components/combobox/combobox.d.ts +4 -4
  205. package/dist-versioned/components/dialog/dialog.d.ts +1 -1
  206. package/dist-versioned/components/divider/divider.d.ts +1 -1
  207. package/dist-versioned/components/drawer/drawer.d.ts +1 -1
  208. package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
  209. package/dist-versioned/components/expandable/expandable.d.ts +1 -1
  210. package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
  211. package/dist-versioned/components/header/header.d.ts +1 -1
  212. package/dist-versioned/components/icon/icon.d.ts +1 -1
  213. package/dist-versioned/components/include/include.d.ts +1 -1
  214. package/dist-versioned/components/input/input.d.ts +1 -1
  215. package/dist-versioned/components/link/link.d.ts +1 -1
  216. package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
  217. package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
  218. package/dist-versioned/components/notification/notification.d.ts +1 -1
  219. package/dist-versioned/components/optgroup/optgroup.d.ts +2 -2
  220. package/dist-versioned/components/option/option.d.ts +1 -1
  221. package/dist-versioned/components/popup/popup.d.ts +1 -1
  222. package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
  223. package/dist-versioned/components/radio/radio.d.ts +1 -1
  224. package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
  225. package/dist-versioned/components/radio-group/radio-group.d.ts +2 -2
  226. package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
  227. package/dist-versioned/components/select/select.d.ts +4 -4
  228. package/dist-versioned/components/spinner/spinner.d.ts +1 -1
  229. package/dist-versioned/components/step/step.d.ts +2 -1
  230. package/dist-versioned/components/step/step.js +2 -1
  231. package/dist-versioned/components/step-group/step-group.d.ts +2 -1
  232. package/dist-versioned/components/step-group/step-group.js +1 -1
  233. package/dist-versioned/components/switch/switch.d.ts +1 -1
  234. package/dist-versioned/components/tab/tab.d.ts +1 -1
  235. package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
  236. package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
  237. package/dist-versioned/components/tag/tag.d.ts +1 -1
  238. package/dist-versioned/components/textarea/textarea.d.ts +1 -1
  239. package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
  240. package/dist-versioned/components/video/video.d.ts +1 -1
  241. package/dist-versioned/custom-elements.json +221 -202
  242. package/dist-versioned/internal/form.js +3 -3
  243. package/dist-versioned/solid-components.css +2 -2
  244. package/dist-versioned/solid-components.js +2 -2
  245. package/dist-versioned/vscode.html-custom-data.json +85 -80
  246. package/dist-versioned/web-types.json +147 -137
  247. package/package.json +2 -2
  248. package/cdn/chunks/chunk.HKGBSLKX.js +0 -1
  249. package/cdn/chunks/chunk.NLOKZURD.js +0 -1
  250. package/cdn-versioned/chunks/chunk.HKGBSLKX.js +0 -1
  251. package/cdn-versioned/chunks/chunk.NLOKZURD.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": "4.3.1",
4
+ "version": "4.4.0",
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": 413,
114
+ "uncompressed": 414,
115
115
  "gzip": 97
116
116
  }
117
117
  },
@@ -1 +0,0 @@
1
- import{a}from"./chunk.HE2LNCWW.js";import{a as n,b as s}from"./chunk.5ZILM4TA.js";import{a as l}from"./chunk.E2DRD2OX.js";import{a as i}from"./chunk.26V4EXHB.js";import{a as u,b as r,h as o}from"./chunk.5AILWWY2.js";import{b as d}from"./chunk.IRWHG2Q4.js";import{e}from"./chunk.TJOCV4DC.js";var t=class extends o{constructor(){super(...arguments);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 c=this.isLink(),h=this.notInteractive?n`div`:c?n`a`:n`button`;return s`<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")}"><${h} part="circle" href="${a(c?this.href:void 0)}" aria-disabled="${a(this.disabled||void 0)}" aria-current="${this.current?"step":void 0}" aria-labelledby="${a("label")}" aria-describedby="${a("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"?"w-[72px]":"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?s`<sd-icon name="status-check" library="system"></sd-icon>`:s`${this.index}`}</slot></${h}>${this.noTail?"":s`<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||s`<slot></slot>`}</div></div></div>`}};t.styles=[...o.styles,d`:host{flex:1 1 0%}:host([no-tail]){flex-grow:0}.translateLg{transform:translateX(55px)}.translateSm{transform:translateX(64px)}`],e([r({reflect:!0})],t.prototype,"size",2),e([r({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()],t.prototype,"label",2),e([r()],t.prototype,"description",2),e([r({type:Number,reflect:!0,attribute:"index"})],t.prototype,"index",2),e([r()],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-step")],t);export{t as a};
@@ -1 +0,0 @@
1
- import{a as l}from"./chunk.E2DRD2OX.js";import{a as m}from"./chunk.26V4EXHB.js";import{a as h,b as a,d as f,h as n}from"./chunk.5AILWWY2.js";import{b as o,e as c}from"./chunk.IRWHG2Q4.js";import{e as s}from"./chunk.TJOCV4DC.js";var e=class extends n{constructor(){super(...arguments);this.steps=[];this.size="lg";this.orientation="horizontal";this.activeStep=0;this.notInteractive=!1}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.steps=this.getAllSteps(),this.steps[this.steps.length-1].noTail=!0;let t;this.steps.forEach((i,r)=>{i.index=r+1,i.size=this.size,i.orientation=this.orientation,this.notInteractive?(i.current=!1,i.disabled=!1,i.notInteractive=!0):i.current&&(t=r)}),this.setActiveStep(t||this.activeStep)})}updateSize(){this.steps.forEach(t=>{t.size=this.size})}updateOrientation(){this.steps.forEach(t=>{t.orientation=this.orientation})}getAllSteps(){return[...this.body.assignedElements()].filter(t=>t.tagName.toLowerCase()==="sd-step")}setActiveStep(t){t>=0&&t<this.steps.length&&!this.notInteractive&&(this.activeStep=t,this.steps.forEach((i,r)=>{r===t?i.current=!0:r>t?i.disabled=!0:i.current=!1}))}handleInteractivityChange(){this.notInteractive&&this.steps.forEach(t=>{t.current=!1,t.disabled=!1,t.notInteractive=!0})}render(){return c`<div role="${this.notInteractive?"group":"navigation"}" class="h-full"><div role="list" part="base" class="${m("flex",this.orientation==="vertical"&&"flex-col h-full")}"><slot part="body"></slot></div></div>`}};e.styles=[...n.styles,o`:host{width:-moz-max-content;width:max-content}`],s([f("[part=body]")],e.prototype,"body",2),s([a({reflect:!0})],e.prototype,"size",2),s([a({reflect:!0})],e.prototype,"orientation",2),s([a({type:Number,reflect:!0,attribute:"active-step"})],e.prototype,"activeStep",2),s([a({type:Boolean,reflect:!0,attribute:"not-interactive"})],e.prototype,"notInteractive",2),s([l("size",{waitUntilFirstUpdate:!0})],e.prototype,"updateSize",1),s([l("orientation",{waitUntilFirstUpdate:!0})],e.prototype,"updateOrientation",1),s([l("notInteractive")],e.prototype,"handleInteractivityChange",1),e=s([h("sd-step-group")],e);export{e as a};
@@ -1 +0,0 @@
1
- import{a}from"./chunk.HE2LNCWW.js";import{a as n,b as s}from"./chunk.5ZILM4TA.js";import{a as l}from"./chunk.E2DRD2OX.js";import{a as i}from"./chunk.26V4EXHB.js";import{a as u,b as r,h as o}from"./chunk.5AILWWY2.js";import{b as d}from"./chunk.IRWHG2Q4.js";import{e}from"./chunk.TJOCV4DC.js";var t=class extends o{constructor(){super(...arguments);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 c=this.isLink(),h=this.notInteractive?n`div`:c?n`a`:n`button`;return s`<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")}"><${h} part="circle" href="${a(c?this.href:void 0)}" aria-disabled="${a(this.disabled||void 0)}" aria-current="${this.current?"step":void 0}" aria-labelledby="${a("label")}" aria-describedby="${a("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"?"w-[72px]":"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?s`<sd-4-3-1-icon name="status-check" library="system"></sd-4-3-1-icon>`:s`${this.index}`}</slot></${h}>${this.noTail?"":s`<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||s`<slot></slot>`}</div></div></div>`}};t.styles=[...o.styles,d`:host{flex:1 1 0%}:host([no-tail]){flex-grow:0}.translateLg{transform:translateX(55px)}.translateSm{transform:translateX(64px)}`],e([r({reflect:!0})],t.prototype,"size",2),e([r({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()],t.prototype,"label",2),e([r()],t.prototype,"description",2),e([r({type:Number,reflect:!0,attribute:"index"})],t.prototype,"index",2),e([r()],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-4-3-1-step")],t);export{t as a};
@@ -1 +0,0 @@
1
- import{a as l}from"./chunk.E2DRD2OX.js";import{a as m}from"./chunk.26V4EXHB.js";import{a as h,b as a,d as f,h as n}from"./chunk.5AILWWY2.js";import{b as o,e as c}from"./chunk.IRWHG2Q4.js";import{e as s}from"./chunk.TJOCV4DC.js";var e=class extends n{constructor(){super(...arguments);this.steps=[];this.size="lg";this.orientation="horizontal";this.activeStep=0;this.notInteractive=!1}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.steps=this.getAllSteps(),this.steps[this.steps.length-1].noTail=!0;let t;this.steps.forEach((i,r)=>{i.index=r+1,i.size=this.size,i.orientation=this.orientation,this.notInteractive?(i.current=!1,i.disabled=!1,i.notInteractive=!0):i.current&&(t=r)}),this.setActiveStep(t||this.activeStep)})}updateSize(){this.steps.forEach(t=>{t.size=this.size})}updateOrientation(){this.steps.forEach(t=>{t.orientation=this.orientation})}getAllSteps(){return[...this.body.assignedElements()].filter(t=>t.tagName.toLowerCase()==="sd-4-3-1-step")}setActiveStep(t){t>=0&&t<this.steps.length&&!this.notInteractive&&(this.activeStep=t,this.steps.forEach((i,r)=>{r===t?i.current=!0:r>t?i.disabled=!0:i.current=!1}))}handleInteractivityChange(){this.notInteractive&&this.steps.forEach(t=>{t.current=!1,t.disabled=!1,t.notInteractive=!0})}render(){return c`<div role="${this.notInteractive?"group":"navigation"}" class="h-full"><div role="list" part="base" class="${m("flex",this.orientation==="vertical"&&"flex-col h-full")}"><slot part="body"></slot></div></div>`}};e.styles=[...n.styles,o`:host{width:-moz-max-content;width:max-content}`],s([f("[part=body]")],e.prototype,"body",2),s([a({reflect:!0})],e.prototype,"size",2),s([a({reflect:!0})],e.prototype,"orientation",2),s([a({type:Number,reflect:!0,attribute:"active-step"})],e.prototype,"activeStep",2),s([a({type:Boolean,reflect:!0,attribute:"not-interactive"})],e.prototype,"notInteractive",2),s([l("size",{waitUntilFirstUpdate:!0})],e.prototype,"updateSize",1),s([l("orientation",{waitUntilFirstUpdate:!0})],e.prototype,"updateOrientation",1),s([l("notInteractive")],e.prototype,"handleInteractivityChange",1),e=s([h("sd-4-3-1-step-group")],e);export{e as a};