@stihl-design-system/components 1.0.0-RC.46 → 1.0.0-RC.48

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 (311) hide show
  1. package/{accordion.Dvt4S5qg.js → accordion.D4XR2R7e.js} +3 -3
  2. package/actionbutton.C8hePX-D.js +12 -0
  3. package/{actioncard.BwquHtM_.js → actioncard.kDxu01xm.js} +1 -1
  4. package/actionlink.dccc5JQV.js +12 -0
  5. package/{arialiveregions.BF6mUlPU.js → arialiveregions.BniSDuPM.js} +9 -10
  6. package/assets/Accordion.RlqWqpGo.css +1 -0
  7. package/assets/ActionButton.Dw2FeIaW.css +1 -0
  8. package/assets/ActionCard.viEoC26n.css +1 -0
  9. package/assets/ActionLink.B1Jjaf7k.css +1 -0
  10. package/assets/Breadcrumb.BJ6sa2am.css +1 -0
  11. package/assets/Button.Bi1KUKMv.css +1 -0
  12. package/assets/Checkbox.C6RWhy0V.css +1 -0
  13. package/assets/Chip.DfamkUPw.css +1 -0
  14. package/assets/CustomReactSelect.CvWMmrAU.css +1 -0
  15. package/assets/Dialog.6AkQo8ew.css +1 -0
  16. package/assets/Drawer.CDOlX809.css +1 -0
  17. package/assets/Fieldset.BbLGXCWa.css +1 -0
  18. package/assets/Flag.qP1xbolI.css +1 -0
  19. package/assets/Header.CSPbSqR5.css +1 -0
  20. package/assets/InputFile.CDtghZtl.css +1 -0
  21. package/assets/InputNumber.BNpO9p7n.css +1 -0
  22. package/assets/InputPassword.BgZo-RUc.css +1 -0
  23. package/assets/InputSearch.BROFFTK9.css +1 -0
  24. package/assets/LinkButton.IKIlFnpH.css +1 -0
  25. package/assets/LinkCard.pJtgJRIh.css +1 -0
  26. package/assets/NavigationTabList.D5VV0C7Y.css +1 -0
  27. package/assets/Notification.2B81JHOp.css +1 -0
  28. package/assets/Pagination.DH71DZ0j.css +1 -0
  29. package/assets/Popover.58Tb0dOt.css +1 -0
  30. package/assets/Select.CfTN3CJo.css +1 -0
  31. package/assets/Slider.B4kzL60S.css +1 -0
  32. package/assets/Stepper.BCpjMiOX.css +1 -0
  33. package/assets/SystemFeedback.DVMml_h9.css +1 -0
  34. package/assets/TextUtility.BThulfyl.css +1 -0
  35. package/assets/Textarea.BO4AcRJD.css +1 -0
  36. package/assets/Toast.ChXfv24m.css +1 -0
  37. package/assets/buttonround.syTU1QSI.css +1 -0
  38. package/assets/chipgroup.DtCnsmS7.css +1 -0
  39. package/assets/filelist.B-Ru0GP_.css +1 -0
  40. package/assets/input.Dy8VS73e.css +1 -0
  41. package/assets/link.EZrauC8s.css +1 -0
  42. package/assets/numberindicator.CtbitPQ8.css +1 -0
  43. package/assets/optioncheckbox.BwkbIDOt.css +1 -0
  44. package/assets/progressindicator.tyY_RVQ9.css +1 -0
  45. package/assets/radio.9hUUyg8R.css +1 -0
  46. package/assets/step.DOAmuuEQ.css +1 -0
  47. package/assets/switch.8v7Wp1Fj.css +1 -0
  48. package/assets/tabpane.DDaeSDQb.css +1 -0
  49. package/assets/text.BwGsYzGM.css +1 -0
  50. package/assets/tooltip.C_BL2kou.css +1 -0
  51. package/{banner.CwZXWMc_.js → banner.DO7GsDL_.js} +1 -1
  52. package/{breadcrumb.DMqAgUyk.js → breadcrumb.DYov6vtt.js} +3 -3
  53. package/{button.BDCfI_fj.js → button.qxcuzbnv.js} +4 -4
  54. package/buttonround.BO7_ewzA.js +101 -0
  55. package/checkbox.C9kyIY9P.js +11 -0
  56. package/{checkboxgroup.DDWYxYzk.js → checkboxgroup.kEUxnKLf.js} +2 -2
  57. package/chip.5ktNLRYf.js +12 -0
  58. package/chipgroup.kRU3Z98U.js +226 -0
  59. package/chunks/Accordion.gih2ni1d.js +179 -0
  60. package/chunks/ActionButton.B-wm5sUy.js +194 -0
  61. package/chunks/{ActionCard.DJSGkwVG.js → ActionCard.Bm-2ewfS.js} +38 -38
  62. package/chunks/ActionLink.D0KzqbH4.js +166 -0
  63. package/chunks/{AriaLiveRegions.utils.8ofDlHnN.js → AriaLiveRegions.utils.xoETe2Ps.js} +16 -18
  64. package/chunks/{Breadcrumb.BkP2B-Vm.js → Breadcrumb.I2G-T0zc.js} +14 -14
  65. package/chunks/Button.CCol--xy.js +165 -0
  66. package/chunks/Checkbox.BxOGR1bR.js +96 -0
  67. package/chunks/CheckboxGroup.TneO0tuE.js +85 -0
  68. package/chunks/Chip.DffaXMkV.js +148 -0
  69. package/chunks/{CustomReactSelect.yVERtd4R.js → CustomReactSelect.DTAavYaz.js} +250 -245
  70. package/chunks/Dialog.guuxflWL.js +101 -0
  71. package/chunks/Drawer.CjUZu6GW.js +106 -0
  72. package/chunks/Fieldset.BBMuLKps.js +94 -0
  73. package/chunks/Flag.CbQYBzVC.js +74 -0
  74. package/chunks/{Header.DyqOlV8L.js → Header.CvcGSuhX.js} +140 -140
  75. package/chunks/{Icon.B0WqYErA.js → Icon.DYtaQgbw.js} +1 -1
  76. package/chunks/{Input.utils.D78E4MGO.js → Input.utils.Wycy2SzG.js} +23 -25
  77. package/chunks/InputFile.y71Cd5J9.js +260 -0
  78. package/chunks/InputNumber.Fn2YbF_s.js +250 -0
  79. package/chunks/InputPassword.DtT9yrlx.js +129 -0
  80. package/chunks/InputSearch.BoAfGqoH.js +157 -0
  81. package/chunks/LinkButton.BxG7fx1O.js +150 -0
  82. package/chunks/LinkCard.DM-5WrSt.js +200 -0
  83. package/chunks/{MegaMenu.CiSiMlE3.js → MegaMenu.udXR1H3W.js} +2 -2
  84. package/chunks/NavigationTabList.thzA1pU8.js +68 -0
  85. package/chunks/{NavigationTabs.BqaUbfFC.js → NavigationTabs.BWewgBch.js} +1 -1
  86. package/chunks/Notification.C_o7Ge6Q.js +91 -0
  87. package/chunks/Pagination.BrOMUJMi.js +272 -0
  88. package/chunks/Popover.CxZZ_y1Z.js +230 -0
  89. package/chunks/RadioGroup.CO91_5hA.js +136 -0
  90. package/chunks/Select.EzoMdk1u.js +157 -0
  91. package/chunks/Slider.CX38t4Sk.js +330 -0
  92. package/chunks/{Stepper.Bqnak38-.js → Stepper.Ds_aIEF8.js} +72 -73
  93. package/chunks/SystemFeedback.DhWcYjnu.js +43 -0
  94. package/chunks/{Tabs.cMCZMPCy.js → Tabs.BHVlgp7L.js} +2 -2
  95. package/chunks/Text.utils.DzlY9pJS.js +9 -0
  96. package/chunks/TextUtility.BZLwqyic.js +82 -0
  97. package/chunks/Textarea.vuJgvW6_.js +192 -0
  98. package/chunks/Toast.V_ZUAsf2.js +76 -0
  99. package/chunks/floating-ui.react.Chmq0RmI.js +3014 -0
  100. package/chunks/translate.DSb-TdWR.js +2460 -0
  101. package/{combobox.CpX-Vlyd.js → combobox.C6cPz4AJ.js} +1 -1
  102. package/components/Accordion/Accordion.d.ts +5 -0
  103. package/components/ActionButton/ActionButton.d.ts +5 -1
  104. package/components/ActionLink/ActionLink.d.ts +1 -1
  105. package/components/Button/Button.utils.d.ts +1 -1
  106. package/components/Checkbox/Checkbox.d.ts +8 -1
  107. package/components/CheckboxGroup/CheckboxGroup.d.ts +9 -1
  108. package/components/ChipGroup/Chip.d.ts +2 -0
  109. package/components/ChipGroup/ChipGroup.d.ts +12 -2
  110. package/components/ChipGroup/ChipGroup.utils.d.ts +39 -15
  111. package/components/Combobox/Combobox.utils.d.ts +66 -9
  112. package/components/Combobox/CustomReactSelect/CustomReactSelect.d.ts +5 -1
  113. package/components/Combobox/CustomReactSelect/CustomReactSelect.utils.d.ts +1 -1
  114. package/components/Fieldset/Fieldset.d.ts +9 -2
  115. package/components/Flag/Flag.d.ts +3 -3
  116. package/components/Flag/Flag.utils.d.ts +7 -2
  117. package/components/Input/Input.d.ts +8 -1
  118. package/components/InputFile/FileList/FileList.d.ts +4 -2
  119. package/components/InputFile/FileList/FilePreview/FilePreview.d.ts +8 -2
  120. package/components/InputFile/FileList/ProgressIndicator/ProgressIndicator.d.ts +8 -2
  121. package/components/InputFile/InputFile.d.ts +12 -2
  122. package/components/InputFile/InputFile.utils.d.ts +41 -23
  123. package/components/InputNumber/InputNumber.d.ts +8 -1
  124. package/components/InputPassword/InputPassword.d.ts +8 -1
  125. package/components/InputSearch/InputSearch.d.ts +8 -1
  126. package/components/LinkCard/LinkCard.d.ts +10 -4
  127. package/components/LinkCard/LinkCard.utils.d.ts +2 -2
  128. package/components/NumberIndicator/NumberIndicator.d.ts +6 -1
  129. package/components/Pagination/Pagination.d.ts +10 -3
  130. package/components/Pagination/Pagination.utils.d.ts +22 -9
  131. package/components/Popover/Popover.d.ts +9 -1
  132. package/components/Popover/Popover.utils.d.ts +3 -2
  133. package/components/Radio/Radio.d.ts +5 -0
  134. package/components/RadioGroup/RadioGroup.d.ts +8 -0
  135. package/components/Select/Select.d.ts +8 -1
  136. package/components/Slider/Slider.d.ts +8 -1
  137. package/components/Stepper/Step.d.ts +1 -1
  138. package/components/Stepper/Step.utils.d.ts +1 -1
  139. package/components/Stepper/Stepper.d.ts +4 -1
  140. package/components/Stepper/Stepper.utils.d.ts +9 -4
  141. package/components/SystemFeedback/SystemFeedback.d.ts +9 -1
  142. package/components/Textarea/Textarea.d.ts +8 -1
  143. package/{customreactselect.B1FFXsJ8.js → customreactselect.L0zSh3Tg.js} +6 -6
  144. package/{dialog.ZQ-HnvZs.js → dialog.Ddq8o8Od.js} +2 -2
  145. package/{drawer.D0-RM0WZ.js → drawer.rbbjQvqL.js} +2 -2
  146. package/{fieldset.BzOeuWjO.js → fieldset.BHf3XK2q.js} +3 -3
  147. package/filelist.GrEwoM1u.js +143 -0
  148. package/filepreview.B2Ot9SZ7.js +97 -0
  149. package/flag.fX6LAgty.js +10 -0
  150. package/{floatingactionbutton.AVc4qY0u.js → floatingactionbutton.BwCiybnc.js} +3 -3
  151. package/{header.BtGgmM59.js → header.BCeCjYfG.js} +1 -1
  152. package/{icon.DrTLVrpN.js → icon.CRr1FGOu.js} +1 -1
  153. package/index.es.js +231 -230
  154. package/input.Dh0ws-9j.js +187 -0
  155. package/inputfile.DiZh3GcT.js +17 -0
  156. package/{inputnumber.r0iVYkjd.js → inputnumber.D2cmptaH.js} +8 -9
  157. package/{inputpassword.PXBZo3f0.js → inputpassword.C53Kg4EA.js} +4 -4
  158. package/inputsearch.BrsIDUSW.js +14 -0
  159. package/link.DEZDbUgq.js +81 -0
  160. package/{linkbutton.DVFXzn-A.js → linkbutton._X50W2Md.js} +3 -3
  161. package/{linkcard.BwSMt03V.js → linkcard.BtM3KnjT.js} +4 -4
  162. package/{logo.D7LnRA1E.js → logo.D6BTxbxv.js} +0 -1
  163. package/{megamenu.CUjk3_h2.js → megamenu.odVCUm4c.js} +3 -3
  164. package/navigationtablist.n9DrtYe5.js +10 -0
  165. package/{navigationtabs.DmcYShPs.js → navigationtabs.D0mSyAtK.js} +2 -2
  166. package/{notification.BVoapVVg.js → notification._X8-8vOa.js} +3 -3
  167. package/numberindicator.DsK65Bj3.js +39 -0
  168. package/optioncheckbox.tlMEoyT0.js +48 -0
  169. package/package.json +38 -33
  170. package/pagination.B7Hrx_sk.js +14 -0
  171. package/partials/index.js +91 -91
  172. package/{popover.OcE_5SfG.js → popover.BBaqL7y9.js} +4 -4
  173. package/progressindicator.D9CfVD95.js +74 -0
  174. package/radio.DjToa2aV.js +148 -0
  175. package/{radiogroup.N06_e0b8.js → radiogroup.mc-8lw65.js} +3 -3
  176. package/{scroller.CwTXbzb8.js → scroller.CgWp2WXG.js} +10 -11
  177. package/select.DTZ6a6Ag.js +13 -0
  178. package/{skeleton.DUkBgXxO.js → skeleton.CNJdNVav.js} +10 -10
  179. package/{skiptocontent.Bujq9t3i.js → skiptocontent.BsRpWvyu.js} +4 -4
  180. package/{slider.JAKEAwOB.js → slider.BMGAihY0.js} +3 -3
  181. package/{spinner.D1W-X96t.js → spinner.DtLnsqVV.js} +1 -1
  182. package/step.DCQ6CawJ.js +82 -0
  183. package/stepper.D7-7BdSv.js +15 -0
  184. package/styles/js/index.d.ts +1 -0
  185. package/styles/js/index.es.js +24 -4
  186. package/styles/js/lib/spacing-rem.d.ts +21 -0
  187. package/styles/js/lib/spacing.d.ts +0 -1
  188. package/styles/scss/ds/index.scss +4 -1
  189. package/styles/scss/ds/lib/border-width.scss +3 -0
  190. package/styles/scss/ds/lib/ds-internal/_input.scss +71 -26
  191. package/styles/scss/ds/lib/ds-internal/_link-button.scss +7 -4
  192. package/styles/scss/ds/lib/ds-internal/_link.scss +23 -3
  193. package/styles/scss/ds/lib/ds-internal/_text.scss +3 -1
  194. package/styles/scss/ds/lib/grid-narrow.scss +1 -0
  195. package/styles/scss/ds/lib/input.scss +12 -7
  196. package/styles/scss/ds/lib/link.scss +2 -2
  197. package/styles/scss/ds/lib/radius.scss +5 -0
  198. package/styles/scss/ds/lib/spacing-rem.scss +19 -0
  199. package/styles/scss/ds/lib/spacing.scss +0 -1
  200. package/switch.tM2XBag8.js +66 -0
  201. package/{systemfeedback.B8FBckG4.js → systemfeedback.BPPOht_9.js} +2 -2
  202. package/{tablist.D3n9E4KM.js → tablist.BAm0_UIG.js} +22 -23
  203. package/{tabpane.7vMXUKFX.js → tabpane.B9rZghU6.js} +1 -1
  204. package/{tabs.IVNsM5Gn.js → tabs.BgTdWbTe.js} +3 -3
  205. package/text.BEO_ZfJq.js +72 -0
  206. package/{textarea.gjb8VGgh.js → textarea.Cki-uMkZ.js} +5 -6
  207. package/{textutility.CNWCGYOy.js → textutility.BypzssPt.js} +2 -2
  208. package/{toast.DU8Sd_4c.js → toast.s0Hfuh5i.js} +3 -3
  209. package/{toastmanager.UlkvsO5p.js → toastmanager.CPIPn4Io.js} +22 -23
  210. package/{tooltip.C6HKano9.js → tooltip.BFQG-7VR.js} +22 -22
  211. package/{topbar.Z9NNkxKU.js → topbar.Bbct-XkB.js} +3 -3
  212. package/utils/translate.d.ts +22 -6
  213. package/actionbutton.D6qmbuAA.js +0 -12
  214. package/actionlink.fWwe7J0H.js +0 -12
  215. package/assets/Accordion.Cr1dbVTH.css +0 -1
  216. package/assets/ActionButton.BLOWs6IZ.css +0 -1
  217. package/assets/ActionCard.BG8w8xUC.css +0 -1
  218. package/assets/ActionLink.BJDUVdT7.css +0 -1
  219. package/assets/Breadcrumb.BavNNzAA.css +0 -1
  220. package/assets/Button.C-UYIggc.css +0 -1
  221. package/assets/Checkbox.ZAPIO2N8.css +0 -1
  222. package/assets/Chip.D3vV0wyV.css +0 -1
  223. package/assets/CustomReactSelect.Ctze4SRN.css +0 -1
  224. package/assets/Dialog.BKwWy1g2.css +0 -1
  225. package/assets/Drawer.BU-fi5Hk.css +0 -1
  226. package/assets/Fieldset.DCmr1Yir.css +0 -1
  227. package/assets/Header.BNYL2Y78.css +0 -1
  228. package/assets/InputFile.BUMCNCrj.css +0 -1
  229. package/assets/InputNumber.Bmz8cNKg.css +0 -1
  230. package/assets/InputPassword.CutbykTm.css +0 -1
  231. package/assets/InputSearch.Sr9jVpKt.css +0 -1
  232. package/assets/LinkButton.CxJvjEY5.css +0 -1
  233. package/assets/LinkCard.DkQoQJxx.css +0 -1
  234. package/assets/NavigationTabList.DYjNT2Di.css +0 -1
  235. package/assets/Notification.DBGpHzov.css +0 -1
  236. package/assets/Pagination.DZ1yCAMR.css +0 -1
  237. package/assets/Popover.mL5g23EK.css +0 -1
  238. package/assets/Select.BZYb_HAG.css +0 -1
  239. package/assets/Slider.vnSU0ya0.css +0 -1
  240. package/assets/Stepper.tXJl15yL.css +0 -1
  241. package/assets/SystemFeedback.PKzqnXUe.css +0 -1
  242. package/assets/TextUtility.CEBJaKBG.css +0 -1
  243. package/assets/Textarea.BIgA9_fl.css +0 -1
  244. package/assets/Toast.CGl8z6mX.css +0 -1
  245. package/assets/buttonround.CMrJRIeW.css +0 -1
  246. package/assets/chipgroup.BGxjdSDX.css +0 -1
  247. package/assets/filelist.CHVupL8T.css +0 -1
  248. package/assets/flag.CyCIPu_J.css +0 -1
  249. package/assets/input.BEOus9jX.css +0 -1
  250. package/assets/link.Dcsio57m.css +0 -1
  251. package/assets/numberindicator.BYIPwkAK.css +0 -1
  252. package/assets/optioncheckbox.6zYgifUk.css +0 -1
  253. package/assets/progressindicator.Cbbzo5-b.css +0 -1
  254. package/assets/radio.l9OTraQU.css +0 -1
  255. package/assets/step.Ch508u7I.css +0 -1
  256. package/assets/switch.DYamtd9O.css +0 -1
  257. package/assets/tabpane.o34hshTz.css +0 -1
  258. package/assets/text.BA1eUihR.css +0 -1
  259. package/assets/tooltip.BPcysHGE.css +0 -1
  260. package/buttonround.DZCu35Zw.js +0 -101
  261. package/checkbox.RYvu23i4.js +0 -12
  262. package/chip.CtZK5gH7.js +0 -12
  263. package/chipgroup.C-UJt9Nb.js +0 -213
  264. package/chunks/Accordion.Tz7cWkk5.js +0 -173
  265. package/chunks/ActionButton.Dqay6Dxt.js +0 -188
  266. package/chunks/ActionLink.BgWqWSKi.js +0 -161
  267. package/chunks/Button.Dauhc5op.js +0 -160
  268. package/chunks/Checkbox.C5Jgtwho.js +0 -88
  269. package/chunks/CheckboxGroup.Df_nLGBa.js +0 -79
  270. package/chunks/Chip.DXS_ZMGD.js +0 -157
  271. package/chunks/Dialog.mP1tZEbW.js +0 -102
  272. package/chunks/Drawer.D6IG0DRe.js +0 -107
  273. package/chunks/Fieldset.DxhNhprT.js +0 -91
  274. package/chunks/InputFile.BSGunqyW.js +0 -260
  275. package/chunks/InputNumber.BsBAdxWr.js +0 -240
  276. package/chunks/InputPassword.hZYiAKYC.js +0 -121
  277. package/chunks/InputSearch.Dp3x5RE4.js +0 -149
  278. package/chunks/LinkButton.DHcfHamd.js +0 -150
  279. package/chunks/LinkCard.DV-V9qHd.js +0 -197
  280. package/chunks/NavigationTabList.BIApwNzg.js +0 -68
  281. package/chunks/Notification.DeedcinQ.js +0 -91
  282. package/chunks/Pagination.DhD8i5AV.js +0 -247
  283. package/chunks/Popover.Cyf3CbLl.js +0 -221
  284. package/chunks/RadioGroup.D3omhLuC.js +0 -130
  285. package/chunks/Select.DOeJaqzM.js +0 -147
  286. package/chunks/Slider.d3gCkWL_.js +0 -309
  287. package/chunks/SystemFeedback.Dq3ZphgG.js +0 -38
  288. package/chunks/Text.utils.D_iOyOSH.js +0 -11
  289. package/chunks/TextUtility.Wbd4oQXI.js +0 -82
  290. package/chunks/Textarea.DhRMfiWu.js +0 -181
  291. package/chunks/Toast.KMEq0p-E.js +0 -76
  292. package/chunks/floating-ui.react.CP5A99-c.js +0 -2980
  293. package/chunks/translate.nuU7uChI.js +0 -8
  294. package/filelist.BaYCDtxD.js +0 -128
  295. package/filepreview.BCslhbM5.js +0 -94
  296. package/flag.DyZLEgAw.js +0 -50
  297. package/input.DNdSFW5k.js +0 -175
  298. package/inputfile.CTXJ_ZSi.js +0 -18
  299. package/inputsearch.JLM0fNPt.js +0 -15
  300. package/link.CArLlIsR.js +0 -81
  301. package/navigationtablist.BerRIzu-.js +0 -10
  302. package/numberindicator.ZGVRSmqf.js +0 -36
  303. package/optioncheckbox.BQo8riVL.js +0 -48
  304. package/pagination.Dm1WnFhY.js +0 -14
  305. package/progressindicator.1JRFwf-H.js +0 -53
  306. package/radio.DxdVKoxe.js +0 -137
  307. package/select.DVuQMz7l.js +0 -14
  308. package/step.CDNmsF4m.js +0 -82
  309. package/stepper.D0kSuiYh.js +0 -16
  310. package/switch.pN105F5-.js +0 -66
  311. package/text.D_e3JBvf.js +0 -72
@@ -0,0 +1,101 @@
1
+ "use client";
2
+ import { jsx as n, jsxs as E } from "react/jsx-runtime";
3
+ import { c as r } from "./index.DQOqod3i.js";
4
+ import { useRef as g, useState as F, useEffect as b } from "react";
5
+ import { D as W } from "./Button.CCol--xy.js";
6
+ import { g as k } from "./helpers.CexwVao7.js";
7
+ import '../assets/Dialog.6AkQo8ew.css';const x = "ds-dialog_root_12p4q_5", R = "ds-dialog_content-wrapper_12p4q_184", y = "ds-dialog_content-wrapper--no-footer_12p4q_190", z = "ds-dialog_close-button_12p4q_198", L = "ds-dialog_header_12p4q_211", M = "ds-dialog_content_12p4q_184", j = "ds-dialog_footer_12p4q_213", H = "ds-dialog_header--scrollable_12p4q_234", I = "ds-dialog_header--close-button_12p4q_243", O = "ds-dialog_content--no-footer_12p4q_256", P = "ds-dialog_footer--scrollable_12p4q_291", o = {
8
+ root: x,
9
+ contentWrapper: R,
10
+ contentWrapperNoFooter: y,
11
+ closeButton: z,
12
+ header: L,
13
+ content: M,
14
+ footer: j,
15
+ headerScrollable: H,
16
+ headerCloseButton: I,
17
+ contentNoFooter: O,
18
+ footerScrollable: P
19
+ }, T = ({
20
+ tabIndex: s
21
+ }) => {
22
+ if (s || s === 0)
23
+ throw new Error(k("DSDialog", "Do not pass the tabindex property to the DSDialog component as it is not interactive and does not receive focus. The DSDialogs contents, including the close button contained in the DSDialog, can receive focus and be interactive."));
24
+ }, Q = ({
25
+ children: s,
26
+ className: m,
27
+ closeButtonProps: D,
28
+ disableBackdropClose: S = !1,
29
+ footer: c,
30
+ header: v,
31
+ hideCloseButton: a = !1,
32
+ isOpen: i = !1,
33
+ onClose: l,
34
+ ...d
35
+ }) => {
36
+ if (process.env.NODE_ENV !== "production") {
37
+ const {
38
+ tabIndex: e
39
+ } = d;
40
+ T({
41
+ tabIndex: e
42
+ });
43
+ }
44
+ const {
45
+ label: N = "Close dialog",
46
+ ...q
47
+ } = D || {}, t = g(null), p = g(null), [u, B] = F(!1);
48
+ b(() => {
49
+ const e = p.current;
50
+ if (e) {
51
+ const _ = () => {
52
+ B(e.scrollHeight > e.clientHeight);
53
+ };
54
+ _();
55
+ const h = new ResizeObserver(_);
56
+ return h.observe(e), () => {
57
+ h.disconnect();
58
+ };
59
+ }
60
+ }, []), b(() => {
61
+ const e = t.current;
62
+ if (e)
63
+ return e.addEventListener("close", f), i ? e.showModal() : e.close(), () => {
64
+ e.removeEventListener("close", f);
65
+ };
66
+ }, [i, l]);
67
+ const f = () => {
68
+ l && l();
69
+ }, w = (e) => {
70
+ S || t.current && e.target === t.current && t.current.close();
71
+ }, C = () => {
72
+ t.current && t.current.close();
73
+ };
74
+ return /* @__PURE__ */ n("dialog", { ...d, ref: t, className: r(o.root, m), onMouseDown: (e) => w(e), "aria-modal": "true", children: /* @__PURE__ */ E("div", { className: r(o.contentWrapper, {
75
+ [o.contentWrapperNoFooter]: !c
76
+ }), children: [
77
+ !a && /* @__PURE__ */ n(W, { ...q, className: o.closeButton, hideLabel: !0, iconName: "cross", size: "small", type: "button", variant: "ghost", onClick: () => C(), children: N }),
78
+ /* @__PURE__ */ n("header", { className: r(o.header, {
79
+ [o.headerCloseButton]: !a,
80
+ [o.headerScrollable]: u
81
+ }), children: v }),
82
+ /* @__PURE__ */ n(
83
+ "div",
84
+ {
85
+ ref: p,
86
+ className: r(o.content, {
87
+ [o.contentNoFooter]: !c
88
+ }),
89
+ tabIndex: 0,
90
+ children: s
91
+ }
92
+ ),
93
+ c && /* @__PURE__ */ n("footer", { className: r(o.footer, {
94
+ [o.footerScrollable]: u
95
+ }), children: c })
96
+ ] }) });
97
+ };
98
+ export {
99
+ Q as D,
100
+ T as v
101
+ };
@@ -0,0 +1,106 @@
1
+ "use client";
2
+ import { jsx as o, jsxs as F } from "react/jsx-runtime";
3
+ import { c as n } from "./index.DQOqod3i.js";
4
+ import { useRef as w, useState as R, useEffect as m } from "react";
5
+ import { D as k } from "./Button.CCol--xy.js";
6
+ import { g as x } from "./helpers.CexwVao7.js";
7
+ import '../assets/Drawer.CDOlX809.css';const I = "ds-drawer_root_1dt5r_10", O = "ds-drawer_root--end_1dt5r_68", y = "ds-drawer_content-wrapper_1dt5r_187", z = "ds-drawer_content-wrapper--no-footer_1dt5r_193", L = "ds-drawer_close-button_1dt5r_196", M = "ds-drawer_header_1dt5r_209", P = "ds-drawer_content_1dt5r_187", j = "ds-drawer_footer_1dt5r_211", H = "ds-drawer_header--scrollable_1dt5r_232", T = "ds-drawer_header--close-button_1dt5r_241", A = "ds-drawer_content--no-footer_1dt5r_283", V = "ds-drawer_footer--scrollable_1dt5r_290", r = {
8
+ root: I,
9
+ rootEnd: O,
10
+ contentWrapper: y,
11
+ contentWrapperNoFooter: z,
12
+ closeButton: L,
13
+ header: M,
14
+ content: P,
15
+ footer: j,
16
+ headerScrollable: H,
17
+ headerCloseButton: T,
18
+ contentNoFooter: A,
19
+ footerScrollable: V
20
+ }, X = ["start", "end"], q = ({
21
+ tabIndex: s
22
+ }) => {
23
+ if (s || s === 0)
24
+ throw new Error(x("DSDrawer", "Do not pass the tabindex property to the DSDrawer component as it is not interactive and does not receive focus. The DSDrawers contents, including the close button contained in the DSDrawer, can receive focus and be interactive."));
25
+ }, Y = ({
26
+ children: s,
27
+ className: b,
28
+ closeButtonProps: D,
29
+ disableBackdropClose: S = !1,
30
+ footer: c,
31
+ header: N,
32
+ hideCloseButton: l = !1,
33
+ position: v = "start",
34
+ isOpen: d = !1,
35
+ onClose: a,
36
+ ...i
37
+ }) => {
38
+ if (process.env.NODE_ENV !== "production") {
39
+ const {
40
+ tabIndex: e
41
+ } = i;
42
+ q({
43
+ tabIndex: e
44
+ });
45
+ }
46
+ const {
47
+ label: E = "Close modal",
48
+ ...g
49
+ } = D || {}, t = w(null), _ = w(null), [u, B] = R(!1);
50
+ m(() => {
51
+ const e = _.current;
52
+ if (e) {
53
+ const h = () => {
54
+ B(e.scrollHeight > e.clientHeight);
55
+ };
56
+ h();
57
+ const p = new ResizeObserver(h);
58
+ return p.observe(e), () => {
59
+ p.disconnect();
60
+ };
61
+ }
62
+ }, []), m(() => {
63
+ const e = t.current;
64
+ if (e)
65
+ return e.addEventListener("close", f), d ? e.showModal() : e.close(), () => {
66
+ e.removeEventListener("close", f);
67
+ };
68
+ }, [d, a]);
69
+ const f = () => {
70
+ a && a();
71
+ }, C = (e) => {
72
+ S || t.current && e.target === t.current && t.current.close();
73
+ }, W = () => {
74
+ t.current && t.current.close();
75
+ };
76
+ return /* @__PURE__ */ o("dialog", { ...i, ref: t, className: n(r.root, {
77
+ [r.rootEnd]: v === "end"
78
+ }), onMouseDown: (e) => C(e), "aria-modal": "true", children: /* @__PURE__ */ F("div", { className: n(r.contentWrapper, b, {
79
+ [r.contentWrapperNoFooter]: !c
80
+ }), children: [
81
+ !l && /* @__PURE__ */ o(k, { ...g, className: r.closeButton, hideLabel: !0, iconName: "cross", size: "small", type: "button", variant: "ghost", onClick: () => W(), children: E }),
82
+ /* @__PURE__ */ o("header", { className: n(r.header, {
83
+ [r.headerCloseButton]: !l,
84
+ [r.headerScrollable]: u
85
+ }), children: N }),
86
+ /* @__PURE__ */ o(
87
+ "div",
88
+ {
89
+ ref: _,
90
+ className: n(r.content, {
91
+ [r.contentNoFooter]: !c
92
+ }),
93
+ tabIndex: 0,
94
+ children: s
95
+ }
96
+ ),
97
+ c && /* @__PURE__ */ o("footer", { className: n(r.footer, {
98
+ [r.footerScrollable]: u
99
+ }), children: c })
100
+ ] }) });
101
+ };
102
+ export {
103
+ X as D,
104
+ Y as a,
105
+ q as v
106
+ };
@@ -0,0 +1,94 @@
1
+ "use client";
2
+ import { jsxs as a, jsx as t, Fragment as H } from "react/jsx-runtime";
3
+ import { c as _ } from "./index.DQOqod3i.js";
4
+ import "react";
5
+ import { u as L } from "./useBreakpoint.1txsny17.js";
6
+ import { Asterisk as F } from "../asterisk.Dwtdwpkq.js";
7
+ import { DSHeading as M } from "../heading.BHSklXho.js";
8
+ import { D as x } from "./Popover.CxZZ_y1Z.js";
9
+ import { D as B } from "./SystemFeedback.DhWcYjnu.js";
10
+ import { g as u } from "./helpers.CexwVao7.js";
11
+ import '../assets/Fieldset.BbLGXCWa.css';const E = "ds-fieldset_root_z6gah_1", T = "ds-fieldset_root--dark_z6gah_115", A = "ds-fieldset_child-wrapper_z6gah_220", I = "ds-fieldset_legend-wrapper_z6gah_227", U = "ds-fieldset_legend_z6gah_227", O = "ds-fieldset_legend--hidden_z6gah_238", V = "ds-fieldset_legend--utility--m_z6gah_253", $ = "ds-fieldset_description_z6gah_265", G = "ds-fieldset_description--small_z6gah_279", J = "ds-fieldset_system-feedback_z6gah_283", e = {
12
+ root: E,
13
+ rootDark: T,
14
+ childWrapper: A,
15
+ legendWrapper: I,
16
+ legend: U,
17
+ legendHidden: O,
18
+ legendUtilityM: V,
19
+ description: $,
20
+ descriptionSmall: G,
21
+ systemFeedback: J
22
+ }, K = ({
23
+ description: l,
24
+ hideLegend: c,
25
+ id: s,
26
+ legend: p,
27
+ popoverContent: i,
28
+ systemFeedback: g
29
+ }) => {
30
+ if (!s && (l || g))
31
+ throw new Error(u("DSFieldset", 'A unique "id" prop is required when providing the description or systemFeedback property. Please add a unique "id" prop to the DSFieldset component.'));
32
+ if (!p)
33
+ throw new Error(u("DSFieldset", "The legend prop is required. Please add the legend prop to the DSFieldset component."));
34
+ c && i && console.warn(u("DSFieldset", 'Setting "hideLegend" and "popoverContent" at the same time is not supported. The popover info button is part of the legend and will be hidden along with it. Please remove either "hideLegend" or "popoverContent".'));
35
+ }, de = (l) => {
36
+ const {
37
+ children: c,
38
+ legend: s,
39
+ className: p,
40
+ description: i,
41
+ disabled: g = !1,
42
+ hideLegend: D = !1,
43
+ id: m,
44
+ invalid: h = !1,
45
+ popoverContent: f,
46
+ popoverInfoButtonProps: z,
47
+ required: b = !1,
48
+ systemFeedback: d,
49
+ theme: o = "light",
50
+ ...w
51
+ } = l, N = L(D);
52
+ process.env.NODE_ENV !== "production" && K({
53
+ description: i,
54
+ hideLegend: D,
55
+ id: m,
56
+ legend: s,
57
+ popoverContent: f,
58
+ systemFeedback: d
59
+ });
60
+ let r, v, y;
61
+ const n = typeof s == "object" && s !== void 0;
62
+ n && ({
63
+ headingSize: r,
64
+ headingTag: v,
65
+ headingText: y
66
+ } = s);
67
+ const S = `${m}-feedback`, k = `${m}-description`, P = [h && d && S, i && k].filter(Boolean).join(" ") || void 0, C = !n || r === "small" || r === "small-uppercase", W = _(e.root, p, {
68
+ [e.rootDark]: o === "dark"
69
+ }), j = _(e.legend, {
70
+ [e.legendHidden]: N,
71
+ [e.legendUtilityM]: !n
72
+ }), q = _(e.description, {
73
+ [e.descriptionSmall]: C
74
+ });
75
+ return /* @__PURE__ */ a("fieldset", { className: W, disabled: g, ...w, "aria-invalid": h, "aria-describedby": P, children: [
76
+ /* @__PURE__ */ a("legend", { className: j, children: [
77
+ /* @__PURE__ */ t("span", { className: e.legendWrapper, children: n ? /* @__PURE__ */ a(M, { tag: v, size: r, theme: o, children: [
78
+ y,
79
+ b && /* @__PURE__ */ t(F, {})
80
+ ] }) : /* @__PURE__ */ a(H, { children: [
81
+ s,
82
+ b && /* @__PURE__ */ t(F, {})
83
+ ] }) }),
84
+ f && /* @__PURE__ */ t(x, { placement: "top", defaultAnchorButtonProps: z, theme: o, children: f })
85
+ ] }),
86
+ i && /* @__PURE__ */ t("span", { id: k, className: q, children: i }),
87
+ h && d && /* @__PURE__ */ t(B, { id: S, variant: "error", message: d, theme: o, className: e.systemFeedback }),
88
+ /* @__PURE__ */ t("div", { className: e.childWrapper, children: c })
89
+ ] });
90
+ };
91
+ export {
92
+ de as D,
93
+ K as v
94
+ };
@@ -0,0 +1,74 @@
1
+ "use client";
2
+ import { jsxs as y, jsx as v } from "react/jsx-runtime";
3
+ import { d as L } from "./index.cKLI89Eg.js";
4
+ import { c as S } from "./index.DQOqod3i.js";
5
+ import { D as w } from "./Icon.DYtaQgbw.js";
6
+ import { g as D } from "./helpers.CexwVao7.js";
7
+ import '../assets/Flag.qP1xbolI.css';const O = "ds-flag_root_1r5js_1", P = "ds-flag_root--color-status-info_1r5js_27", R = "ds-flag_root--color-status-warning_1r5js_30", b = "ds-flag_root--color-status-negative_1r5js_33", N = "ds-flag_root--color-status-positive_1r5js_36", A = "ds-flag_root--color-promo-highlight_1r5js_39", G = "ds-flag_root--color-promo-neutral_1r5js_42", E = "ds-flag_root--color-grey-light_1r5js_46", F = "ds-flag_root--color-yellow-light_1r5js_49", x = "ds-flag_root--color-red-light_1r5js_52", $ = "ds-flag_root--color-green-light_1r5js_55", T = "ds-flag_root--color-orange-base_1r5js_58", p = {
8
+ root: O,
9
+ "root--color-status-info": "ds-flag_root--color-status-info_1r5js_27",
10
+ rootColorStatusInfo: P,
11
+ "root--color-status-warning": "ds-flag_root--color-status-warning_1r5js_30",
12
+ rootColorStatusWarning: R,
13
+ "root--color-status-negative": "ds-flag_root--color-status-negative_1r5js_33",
14
+ rootColorStatusNegative: b,
15
+ "root--color-status-positive": "ds-flag_root--color-status-positive_1r5js_36",
16
+ rootColorStatusPositive: N,
17
+ "root--color-promo-highlight": "ds-flag_root--color-promo-highlight_1r5js_39",
18
+ rootColorPromoHighlight: A,
19
+ "root--color-promo-neutral": "ds-flag_root--color-promo-neutral_1r5js_42",
20
+ rootColorPromoNeutral: G,
21
+ "root--color-grey-light": "ds-flag_root--color-grey-light_1r5js_46",
22
+ rootColorGreyLight: E,
23
+ "root--color-yellow-light": "ds-flag_root--color-yellow-light_1r5js_49",
24
+ rootColorYellowLight: F,
25
+ "root--color-red-light": "ds-flag_root--color-red-light_1r5js_52",
26
+ rootColorRedLight: x,
27
+ "root--color-green-light": "ds-flag_root--color-green-light_1r5js_55",
28
+ rootColorGreenLight: $,
29
+ "root--color-orange-base": "ds-flag_root--color-orange-base_1r5js_58",
30
+ rootColorOrangeBase: T
31
+ }, Y = ["status-info", "status-warning", "status-negative", "status-positive", "promo-highlight", "promo-neutral"], U = ["grey-light", "yellow-light", "red-light", "green-light", "orange-base"], j = {
32
+ "grey-light": "status-info",
33
+ "yellow-light": "status-warning",
34
+ "red-light": "status-negative",
35
+ "green-light": "status-positive",
36
+ "orange-base": "promo-highlight"
37
+ }, B = ["promo-neutral"], q = (d) => {
38
+ const o = L.c(24);
39
+ let l, e, r, s, a, n;
40
+ o[0] !== d ? ({
41
+ children: l,
42
+ className: e,
43
+ color: n,
44
+ iconName: r,
45
+ iconSource: s,
46
+ ...a
47
+ } = d, o[0] = d, o[1] = l, o[2] = e, o[3] = r, o[4] = s, o[5] = a, o[6] = n) : (l = o[1], e = o[2], r = o[3], s = o[4], a = o[5], n = o[6]);
48
+ const t = n === void 0 ? "status-info" : n;
49
+ typeof t == "string" && t in j && console.warn(D("DSFlag", `The color "${t}" is deprecated and will be removed in the next stable release. Please use "${j[t]}" instead.`));
50
+ const i = typeof t == "string" && p[`root--color-${t}`];
51
+ let c;
52
+ o[7] !== t || o[8] !== i ? (c = i ? {} : {
53
+ backgroundColor: t
54
+ }, o[7] = t, o[8] = i, o[9] = c) : c = o[9];
55
+ const f = c, u = p[`root--color-${t}`];
56
+ let _;
57
+ o[10] !== e || o[11] !== i || o[12] !== u ? (_ = S(p.root, e, {
58
+ [u]: i
59
+ }), o[10] = e, o[11] = i, o[12] = u, o[13] = _) : _ = o[13];
60
+ const C = _, m = B.includes(t) ? "dark" : "light";
61
+ let g;
62
+ o[14] !== r || o[15] !== s || o[16] !== m ? (g = (r || s) && /* @__PURE__ */ v(w, { name: r, theme: m, source: s, "aria-hidden": "true" }), o[14] = r, o[15] = s, o[16] = m, o[17] = g) : g = o[17];
63
+ let h;
64
+ return o[18] !== l || o[19] !== f || o[20] !== a || o[21] !== C || o[22] !== g ? (h = /* @__PURE__ */ y("span", { className: C, style: f, ...a, children: [
65
+ g,
66
+ l
67
+ ] }), o[18] = l, o[19] = f, o[20] = a, o[21] = C, o[22] = g, o[23] = h) : h = o[23], h;
68
+ };
69
+ export {
70
+ U as D,
71
+ Y as F,
72
+ j as a,
73
+ q as b
74
+ };