@stihl-design-system/components 1.0.0-RC.31 → 1.0.0-RC.34

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 (286) hide show
  1. package/accordion.Dmqocj97.js +12 -0
  2. package/actionbutton.DLQJU6AV.js +12 -0
  3. package/actionlink.DEBrWfN3.js +12 -0
  4. package/{arialiveregions.Fgcshs5k.js → arialiveregions.BUVY9NpY.js} +2 -2
  5. package/assets/Accordion.CzBGud45.css +1 -0
  6. package/assets/Button.C8sNwIeW.css +1 -0
  7. package/assets/Checkbox.CyOw3rXI.css +1 -0
  8. package/assets/CustomReactSelect.E_jJFVew.css +1 -0
  9. package/assets/Dialog.DJkn65Es.css +1 -0
  10. package/assets/Drawer.x3BCQvWE.css +1 -0
  11. package/assets/InputFile.BnIvK65P.css +1 -0
  12. package/assets/InputNumber.BoiCIR1f.css +1 -0
  13. package/assets/InputPassword.Dk3_vNLV.css +1 -0
  14. package/assets/InputSearch.C1_4cVCi.css +1 -0
  15. package/assets/LinkButton.B86yacK5.css +1 -0
  16. package/assets/{MegaMenu.DX9gChtY.css → MegaMenu.D5EtjFeL.css} +1 -1
  17. package/assets/Notification.CvohYEvT.css +1 -0
  18. package/assets/Popover.CXyUaXiO.css +1 -0
  19. package/assets/Select.COxLltX7.css +1 -0
  20. package/assets/Slider.DPEmJ3HD.css +1 -0
  21. package/assets/Stepper.tXJl15yL.css +1 -0
  22. package/assets/{SystemFeedback.RcrPepSZ.css → SystemFeedback.PKzqnXUe.css} +1 -1
  23. package/assets/Textarea.y3MW7VW0.css +1 -0
  24. package/assets/Toast.CGyKXb4V.css +1 -0
  25. package/assets/buttonround.BN3vUDc_.css +1 -0
  26. package/assets/input.DTu4g_iA.css +1 -0
  27. package/assets/logo100years.CQrEg-Vo.css +1 -0
  28. package/assets/step.BeLporJO.css +1 -0
  29. package/assets/switch.B9B-n_3y.css +1 -0
  30. package/assets/tooltip.Co1gWF_0.css +1 -0
  31. package/{asterisk.CR60hx8S.js → asterisk.B2ih8VwF.js} +1 -1
  32. package/{banner.j9YpudOS.js → banner.CI5HnDqD.js} +3 -3
  33. package/breadcrumb.CtwAux3P.js +11 -0
  34. package/button.DHuKanZP.js +13 -0
  35. package/buttonround.CMlmEDaN.js +96 -0
  36. package/checkbox.DwccD0Mp.js +12 -0
  37. package/checkboxgroup.ZiUFfCJ1.js +9 -0
  38. package/chip.B0s_fS8L.js +12 -0
  39. package/chipgroup.Dpu66bo5.js +143 -0
  40. package/chunks/Accordion.CYIfNOWr.js +168 -0
  41. package/chunks/ActionButton.DOYsEHPr.js +180 -0
  42. package/chunks/ActionLink.DbyciN3Y.js +153 -0
  43. package/chunks/{AriaLiveRegions.utils.Cb327d_2.js → AriaLiveRegions.utils.CybNIBSa.js} +2 -2
  44. package/chunks/{Breadcrumb.BGzwzvh8.js → Breadcrumb.BgnpTo01.js} +35 -37
  45. package/chunks/Button.DCZgBNmA.js +142 -0
  46. package/chunks/Checkbox.BcGXAuuP.js +88 -0
  47. package/chunks/{CheckboxGroup.Dy_6tiGk.js → CheckboxGroup.BuFd1luB.js} +5 -5
  48. package/chunks/Chip.D6pubCZV.js +133 -0
  49. package/chunks/{CustomReactSelect.iE5iTdez.js → CustomReactSelect.Dg3wC_VH.js} +484 -473
  50. package/chunks/Dialog.DpqSVrYR.js +102 -0
  51. package/chunks/Drawer.DISWybOa.js +107 -0
  52. package/chunks/{Fieldset.CjIfmN_5.js → Fieldset.DiMtr6Vw.js} +6 -6
  53. package/chunks/Header.7TQL_J9t.js +370 -0
  54. package/chunks/Icon.CDLyB7Pv.js +229 -0
  55. package/chunks/{Input.utils.Cnnzvuk4.js → Input.utils.Dkw7gRrr.js} +17 -17
  56. package/chunks/InputFile.C8nt9Fu8.js +218 -0
  57. package/chunks/InputNumber.CbH1XJfl.js +267 -0
  58. package/chunks/{InputPassword.DC2POUc1.js → InputPassword.DbdjuSiJ.js} +34 -34
  59. package/chunks/InputSearch.joxmugiv.js +173 -0
  60. package/chunks/LinkButton.BZgIGgc8.js +132 -0
  61. package/chunks/MegaMenu.CQbOeaib.js +189 -0
  62. package/chunks/NavigationTabList.G_l0GiUa.js +67 -0
  63. package/chunks/{NavigationTabs.ClpVGcl0.js → NavigationTabs.BwM-6CRm.js} +13 -14
  64. package/chunks/Notification.CrojkJ0E.js +91 -0
  65. package/chunks/Popover.Bb0Pjmvg.js +215 -0
  66. package/chunks/{RadioGroup.peTeMK45.js → RadioGroup.CexC4v2Z.js} +5 -5
  67. package/chunks/Select.BEIdNMML.js +164 -0
  68. package/chunks/{Slider.kyVr7BLk.js → Slider.CR0zYHeZ.js} +70 -71
  69. package/chunks/Stepper.PTQdQBYf.js +152 -0
  70. package/chunks/{SystemFeedback.B9f67mjJ.js → SystemFeedback.CjlARKki.js} +9 -9
  71. package/chunks/Tabs.DyP4whX0.js +83 -0
  72. package/chunks/{Text.DGWeWF1y.js → Text.DpRtTpB4.js} +3 -3
  73. package/chunks/Textarea.Du2RII5u.js +168 -0
  74. package/chunks/Toast.ug_RjGgF.js +76 -0
  75. package/chunks/{arrow-clockwise.BefOjGPg.js → arrow-clockwise.C4iOgjOc.js} +1 -1
  76. package/chunks/{arrow-counterclockwise.C7Ov32BZ.js → arrow-counterclockwise.CgQAuBUe.js} +1 -1
  77. package/chunks/battery-charge-0.DxlgEAto.js +10 -0
  78. package/chunks/battery-charge-100.D0Cax7dU.js +10 -0
  79. package/chunks/{battery.YCg9lYqC.js → battery.6Idoickg.js} +3 -3
  80. package/chunks/bluetooth-off.BzZCh4Q8.js +10 -0
  81. package/chunks/{circle-check-colored.Bye_GwLy.js → circle-check-colored.qP2s3vjI.js} +1 -1
  82. package/chunks/{diamond-exclamationmark-colored.WNKYwZ8q.js → diamond-exclamationmark-colored.CzYiaTZ0.js} +1 -1
  83. package/chunks/document-s.CoOp0kBK.js +10 -0
  84. package/chunks/feather.l1E4nFBx.js +10 -0
  85. package/chunks/file-type-doc.B_RSSYbu.js +10 -0
  86. package/chunks/floating-ui.dom.BT8pKtCQ.js +1005 -0
  87. package/chunks/floating-ui.react.3FjeMiuN.js +1999 -0
  88. package/chunks/helpers.CexwVao7.js +38 -0
  89. package/chunks/{index.CgTHIF3K.js → index.D-sRdssb.js} +1 -1
  90. package/chunks/{index.CEyLAtio.js → index.DL9mof6u.js} +2 -2
  91. package/chunks/{is-animation-disabled.CUl4N3LI.js → is-animation-disabled.B-V_68K-.js} +5 -5
  92. package/chunks/{map.CXgG1iGz.js → map.DNl7PF61.js} +1 -1
  93. package/chunks/moon.5yILPYXs.js +10 -0
  94. package/chunks/muscle.DbNjWasV.js +10 -0
  95. package/chunks/petrol.BGWwCsTw.js +10 -0
  96. package/chunks/sun.CY6ttzTL.js +10 -0
  97. package/chunks/{triangle-exclamationmark-colored.CbVC3Gzi.js → triangle-exclamationmark-colored.e93zvQ6Q.js} +1 -1
  98. package/chunks/upload.BogDfonx.js +10 -0
  99. package/chunks/useBreakpoint.BzR_yaIv.js +42 -0
  100. package/chunks/variants.-R3_RCW8.js +10 -0
  101. package/chunks/weight.DUPu2UT0.js +10 -0
  102. package/combobox.jG5GRA7C.js +65 -0
  103. package/components/ActionButton/ActionButton.d.ts +2 -0
  104. package/components/Button/Button.d.ts +4 -0
  105. package/components/ChipGroup/Chip.d.ts +1 -0
  106. package/components/ChipGroup/ChipGroup.d.ts +4 -0
  107. package/components/ChipGroup/ChipGroup.utils.d.ts +10 -12
  108. package/components/Combobox/Combobox.utils.d.ts +3 -4
  109. package/components/Combobox/CustomReactSelect/CustomReactSelect.d.ts +4 -2
  110. package/components/Header/Header.d.ts +4 -5
  111. package/components/{InputStepper/InputStepper.d.ts → InputNumber/InputNumber.d.ts} +10 -4
  112. package/components/InputNumber/InputNumber.utils.d.ts +13 -0
  113. package/components/LinkButton/LinkButton.d.ts +2 -0
  114. package/components/Logo100Years/Logo100Years.d.ts +1 -0
  115. package/components/Popover/Popover.d.ts +29 -7
  116. package/components/Popover/Popover.utils.d.ts +34 -3
  117. package/components/Scroller/Scroller.d.ts +6 -2
  118. package/components/Stepper/Step.d.ts +33 -0
  119. package/components/Stepper/Step.utils.d.ts +5 -0
  120. package/components/Stepper/Stepper.d.ts +56 -0
  121. package/components/Stepper/Stepper.test.d.ts +1 -0
  122. package/components/Stepper/Stepper.utils.d.ts +30 -0
  123. package/components/Stepper/Stepper.utils.test.d.ts +1 -0
  124. package/components/Tooltip/Tooltip.d.ts +40 -0
  125. package/components/Tooltip/Tooltip.test.d.ts +1 -0
  126. package/components/Tooltip/Tooltip.utils.d.ts +70 -0
  127. package/components/Tooltip/Tooltip.utils.test.d.ts +1 -0
  128. package/components/TopBar/TopBar.d.ts +4 -4
  129. package/components/TopBar/TopBar.utils.d.ts +1 -1
  130. package/customreactselect.BFN8cYJi.js +14 -0
  131. package/dialog.CzM_Cxp0.js +9 -0
  132. package/drawer._A9MQ8Cj.js +9 -0
  133. package/fieldset.CId-NtI5.js +11 -0
  134. package/{filelist.nunJKxkv.js → filelist.DgVuWpR3.js} +23 -24
  135. package/{flag.D_iN8iD6.js → flag.CE32qHPa.js} +3 -3
  136. package/floatingactionbutton.Bsnncudt.js +87 -0
  137. package/header.CelAkqtp.js +12 -0
  138. package/{heading.BXFBZhKv.js → heading.DHLpT4dc.js} +2 -2
  139. package/icon.vzkPwgjZ.js +9 -0
  140. package/index.d.ts +4 -2
  141. package/index.es.js +217 -204
  142. package/input.DuEbg7d6.js +206 -0
  143. package/inputfile.BjgJGefV.js +17 -0
  144. package/inputnumber.BcrxBVv0.js +16 -0
  145. package/inputnumber.d.ts +2 -0
  146. package/inputpassword.CddmBW-T.js +13 -0
  147. package/inputsearch.CFOASqrd.js +14 -0
  148. package/link.f8MMZo-w.js +81 -0
  149. package/linkbutton.BYAvi-_V.js +12 -0
  150. package/{logo.C96KaG1P.js → logo.DprmD8HU.js} +3 -3
  151. package/logo100years.B4d_DIiB.js +24 -0
  152. package/logo100years.d.ts +2 -0
  153. package/megamenu.Cy9Cc-mC.js +12 -0
  154. package/navigationtablist.CkkLyHrM.js +10 -0
  155. package/navigationtabs.Dp7D2fnc.js +9 -0
  156. package/notification.B-norGiB.js +10 -0
  157. package/{numberindicator.Ddf3ESi7.js → numberindicator.BdnPMogE.js} +2 -2
  158. package/{optioncheckbox.D97W3zeW.js → optioncheckbox.nBVwGv6c.js} +3 -3
  159. package/package.json +41 -51
  160. package/partials/index.js +58 -52
  161. package/partials/lib/partials.d.ts +1 -1
  162. package/popover.DFVDZY-m.js +12 -0
  163. package/{radio.7_N_alaS.js → radio.DHUfSPai.js} +2 -2
  164. package/radiogroup.DaThoMfq.js +11 -0
  165. package/scroller.Cu7H_VCT.js +98 -0
  166. package/select.CMdKf7tC.js +13 -0
  167. package/{skiptocontent._F-d8y5b.js → skiptocontent.CHVh0hbr.js} +4 -4
  168. package/slider.C5dK6KcG.js +11 -0
  169. package/{spinner.Dht6FspZ.js → spinner.C9qCeq0R.js} +18 -18
  170. package/step.DKf4CHGr.js +82 -0
  171. package/step.d.ts +6 -0
  172. package/stepper.CCP_igpJ.js +16 -0
  173. package/stepper.d.ts +2 -0
  174. package/{switch.B37S4vfP.js → switch.Bqdyzi2E.js} +5 -5
  175. package/systemfeedback.O7tj1juR.js +10 -0
  176. package/tablist.DZgo49nZ.js +209 -0
  177. package/{tabpane.CB-eudyw.js → tabpane.C4nsUlwc.js} +2 -2
  178. package/tabs.BkoT7feH.js +11 -0
  179. package/text.cLv2PhjQ.js +10 -0
  180. package/textarea.DMn20z4p.js +13 -0
  181. package/{title.Bz_k5Vda.js → title.DuLPB-VK.js} +2 -2
  182. package/toast.Dvs8woTH.js +11 -0
  183. package/toastmanager.pi_Fhd5t.js +89 -0
  184. package/tooltip.QJe_bfO-.js +178 -0
  185. package/tooltip.d.ts +2 -0
  186. package/topbar.Bxwvp9Lf.js +12 -0
  187. package/types/icon-types.d.ts +1 -1
  188. package/types/prettier-plugin-organize-imports.d.ts +1 -0
  189. package/utils/index.d.ts +1 -0
  190. package/utils/mergeRefs.d.ts +5 -0
  191. package/utils/mergeRefs.test.d.ts +1 -0
  192. package/accordion.DkwtJy--.js +0 -12
  193. package/actionbutton.u1qp8oGC.js +0 -11
  194. package/actionlink.C7HzeIVa.js +0 -11
  195. package/assets/Accordion.BJb4TOG0.css +0 -1
  196. package/assets/Button.Dw8H5nFS.css +0 -1
  197. package/assets/Checkbox.BKHQN_tu.css +0 -1
  198. package/assets/CustomReactSelect.D0b1Hg1T.css +0 -1
  199. package/assets/Dialog.CGAg7bnN.css +0 -1
  200. package/assets/Drawer.VOvWQoEr.css +0 -1
  201. package/assets/InputFile.CCQxsulT.css +0 -1
  202. package/assets/InputPassword.124xVOiO.css +0 -1
  203. package/assets/InputSearch.Bkg-1urJ.css +0 -1
  204. package/assets/InputStepper.Dth4qZN_.css +0 -1
  205. package/assets/LinkButton.xMvg_ojf.css +0 -1
  206. package/assets/Notification.BOuaA5GT.css +0 -1
  207. package/assets/Popover.BDTDsPAt.css +0 -1
  208. package/assets/Select.CYACicZ3.css +0 -1
  209. package/assets/Slider.DzwSjDPV.css +0 -1
  210. package/assets/Textarea.BXWhXpXx.css +0 -1
  211. package/assets/Toast.CJ1zhDIT.css +0 -1
  212. package/assets/buttonround.Cw9hnUan.css +0 -1
  213. package/assets/input.ONbL-_C1.css +0 -1
  214. package/assets/switch.Bc9KIyw9.css +0 -1
  215. package/breadcrumb.BS-S3zUI.js +0 -11
  216. package/button.CPilCCUI.js +0 -12
  217. package/buttonround.C426mO4d.js +0 -81
  218. package/checkbox.BtlUvs0z.js +0 -12
  219. package/checkboxgroup.C5NgyyQF.js +0 -9
  220. package/chip.tVIG1ysH.js +0 -11
  221. package/chipgroup.CjIK0Z0x.js +0 -209
  222. package/chunks/Accordion.C5V5IcM-.js +0 -170
  223. package/chunks/ActionButton.B8zFwOrJ.js +0 -165
  224. package/chunks/ActionLink.IX6oRXU3.js +0 -138
  225. package/chunks/Button.B7xF1E19.js +0 -127
  226. package/chunks/Checkbox.DxV7-F5W.js +0 -88
  227. package/chunks/Chip.31UfPwQF.js +0 -119
  228. package/chunks/Dialog.B_2pKRnd.js +0 -135
  229. package/chunks/Drawer.HFlBTcqN.js +0 -140
  230. package/chunks/Header.DqZRryB5.js +0 -366
  231. package/chunks/Icon.DGTYCv63.js +0 -231
  232. package/chunks/InputFile.DvOatDzg.js +0 -220
  233. package/chunks/InputSearch.B0aCuPRZ.js +0 -174
  234. package/chunks/InputStepper.D_1YqlWl.js +0 -263
  235. package/chunks/LinkButton.DdTspmJz.js +0 -117
  236. package/chunks/MegaMenu.BY7eOnhj.js +0 -189
  237. package/chunks/NavigationTabList.dYFYTmWv.js +0 -57
  238. package/chunks/Notification.DIdIhGTQ.js +0 -92
  239. package/chunks/Popover.NGetxKGg.js +0 -159
  240. package/chunks/Select.BDHLJ2ma.js +0 -162
  241. package/chunks/Tabs.CkVL8Jw8.js +0 -83
  242. package/chunks/Textarea.ORkJUx-S.js +0 -163
  243. package/chunks/Toast.DHo4pLH3.js +0 -76
  244. package/chunks/file-type-doc.DlovDOBh.js +0 -10
  245. package/chunks/floating-ui.dom.C9TD1WpB.js +0 -950
  246. package/chunks/floating-ui.react.x0F9CYgn.js +0 -1637
  247. package/chunks/helpers.BbWkXTr3.js +0 -37
  248. package/chunks/petrol.Du6qAgp0.js +0 -10
  249. package/chunks/upload.ZImTAIgx.js +0 -10
  250. package/chunks/useBreakpoint.CMOR9ZOB.js +0 -44
  251. package/combobox.Bk2ycofh.js +0 -60
  252. package/components/InputStepper/InputStepper.utils.d.ts +0 -12
  253. package/customreactselect.Hnch9LGg.js +0 -14
  254. package/dialog.7sWoqGwL.js +0 -10
  255. package/drawer.DsF4KIPn.js +0 -10
  256. package/fieldset.DUFUMcT-.js +0 -11
  257. package/floatingactionbutton.DOH2k0gv.js +0 -72
  258. package/header.QpNjE3N-.js +0 -12
  259. package/icon.vMQcEBnH.js +0 -9
  260. package/input.BKHOY118.js +0 -203
  261. package/inputfile.DK8759wV.js +0 -17
  262. package/inputpassword.rV_ZZw5F.js +0 -13
  263. package/inputsearch.CmhakTpa.js +0 -14
  264. package/inputstepper.Y-YzUHhF.js +0 -16
  265. package/inputstepper.d.ts +0 -2
  266. package/link.D_FjTyoZ.js +0 -66
  267. package/linkbutton.D2C4vykc.js +0 -11
  268. package/megamenu.CdHrEeoh.js +0 -12
  269. package/navigationtablist.CVjh1k-b.js +0 -9
  270. package/navigationtabs.BGfi9AG2.js +0 -9
  271. package/notification.Dn-FZWEL.js +0 -10
  272. package/popover.DXxm1oWI.js +0 -11
  273. package/radiogroup.J8WpEEo8.js +0 -11
  274. package/scroller.BiRLQg__.js +0 -123
  275. package/select.DIzGPVx3.js +0 -13
  276. package/slider.DuJK0RdB.js +0 -11
  277. package/systemfeedback.C_2PhwKe.js +0 -10
  278. package/tablist.g_Nwu6GA.js +0 -256
  279. package/tabs.oh9-wHPp.js +0 -11
  280. package/text.ZOUuesnU.js +0 -10
  281. package/textarea.dQ12-oYB.js +0 -13
  282. package/toast.sMNbfKxi.js +0 -11
  283. package/toastmanager.CVamaS5T.js +0 -116
  284. package/topbar.Dhy_TL0U.js +0 -11
  285. /package/components/{InputStepper/InputStepper.test.d.ts → InputNumber/InputNumber.test.d.ts} +0 -0
  286. /package/components/{InputStepper/InputStepper.utils.test.d.ts → InputNumber/InputNumberutils.test.d.ts} +0 -0
@@ -0,0 +1,153 @@
1
+ "use client";
2
+ import { jsxs as lt, jsx as h, Fragment as _t } from "react/jsx-runtime";
3
+ import { d as mt } from "./index.D-sRdssb.js";
4
+ import { c as F } from "./index.DL9mof6u.js";
5
+ import { forwardRef as ft } from "react";
6
+ import { D as vt } from "./Icon.CDLyB7Pv.js";
7
+ import { NumberIndicator as ht } from "../numberindicator.BdnPMogE.js";
8
+ import { Tooltip as st } from "../tooltip.QJe_bfO-.js";
9
+ import { g as S } from "./helpers.CexwVao7.js";
10
+ import '../assets/ActionLink.CTh6IXrN.css';const bt = "ds-action-link_root_1xtta_1", kt = "ds-action-link_root--indent-level-1_1xtta_75", It = "ds-action-link_root--active_1xtta_78", ut = "ds-action-link_root--active--with-marker_1xtta_81", Nt = "ds-action-link_root--icon--top_1xtta_84", At = "ds-action-link_root--stretched_1xtta_110", gt = "ds-action-link_active-marker_1xtta_115", wt = "ds-action-link_active-marker--with-indent_1xtta_127", Wt = "ds-action-link_icon-wrapper_1xtta_131", xt = "ds-action-link_icon-wrapper--x-large_1xtta_134", Lt = "ds-action-link_icon-wrapper--with-number-indicator_1xtta_137", St = "ds-action-link_icon-wrapper--with-number-indicator--with-value_1xtta_145", Pt = "ds-action-link_label_1xtta_149", Tt = "ds-action-link_label--bold_1xtta_160", Dt = "ds-action-link_label--active_1xtta_171", Ct = "ds-action-link_label--icon-top_1xtta_182", Mt = "ds-action-link_number-indicator_1xtta_205", o = {
11
+ root: bt,
12
+ rootIndentLevel1: kt,
13
+ rootActive: It,
14
+ rootActiveWithMarker: ut,
15
+ rootIconTop: Nt,
16
+ rootStretched: At,
17
+ activeMarker: gt,
18
+ activeMarkerWithIndent: wt,
19
+ iconWrapper: Wt,
20
+ iconWrapperXLarge: xt,
21
+ iconWrapperWithNumberIndicator: Lt,
22
+ iconWrapperWithNumberIndicatorWithValue: St,
23
+ label: Pt,
24
+ labelBold: Tt,
25
+ labelActive: Dt,
26
+ labelIconTop: Ct,
27
+ numberIndicator: Mt
28
+ }, Ft = ["left", "top"], Gt = ["large", "x-large"], Rt = [0, 1], Zt = ["normal", "bold"], Et = ({
29
+ iconName: f,
30
+ iconSize: v,
31
+ iconSource: t,
32
+ iconPosition: c,
33
+ indentLevel: l,
34
+ stretched: s,
35
+ weight: p
36
+ }) => {
37
+ if (f && !t && v === "x-large" && console.warn(S("DSActionLink", 'An "iconSize" prop set to "x-large" has no effect when "iconName" is set. Please remove the "iconSize" prop or provide a custom icon via the "iconSource" prop.')), c === "top") {
38
+ if (!f && !t)
39
+ throw new Error(S("DSActionLink", 'The "iconPosition" prop should not be set to "top", when no "iconName" or "iconSource" prop was provided. Please either remove the "iconPosition" prop or set a valid icon via the "iconName" or "iconSource" prop.'));
40
+ v === "x-large" && console.warn(S("DSActionLink", 'An "iconSize" prop set to "x-large" has no effect when "iconPosition" is set to "top". Please remove the "iconSize" prop.')), p === "bold" && console.warn(S("DSActionLink", 'A "weight" prop set to "bold" with "iconPosition" set to "top" has no effect. Please remove the "weight" prop.')), l === 1 && console.warn(S("DSActionLink", 'An "indentLevel" prop set to "1" with "iconPosition" set to "top" has no effect. Please remove the "indentLevel" prop.')), s && console.warn(S("DSActionLink", 'A "stretched" prop set to "true" with "iconPosition" set to "top" has no effect. Please remove the "stretched" prop.'));
41
+ }
42
+ }, Ot = ft((f, v) => {
43
+ const t = mt.c(81);
44
+ let c, l, s, p, _, n, r, i, b, k, I, P, T, D, C, M, E, O, m;
45
+ t[0] !== f ? ({
46
+ children: l,
47
+ aria: c,
48
+ className: s,
49
+ download: p,
50
+ href: _,
51
+ iconName: n,
52
+ iconPosition: P,
53
+ iconSize: T,
54
+ iconSource: r,
55
+ indentLevel: D,
56
+ isActive: C,
57
+ numberIndicatorValue: i,
58
+ referrerPolicy: b,
59
+ rel: k,
60
+ stretched: M,
61
+ target: E,
62
+ tooltip: m,
63
+ weight: O,
64
+ ...I
65
+ } = f, t[0] = f, t[1] = c, t[2] = l, t[3] = s, t[4] = p, t[5] = _, t[6] = n, t[7] = r, t[8] = i, t[9] = b, t[10] = k, t[11] = I, t[12] = P, t[13] = T, t[14] = D, t[15] = C, t[16] = M, t[17] = E, t[18] = O, t[19] = m) : (c = t[1], l = t[2], s = t[3], p = t[4], _ = t[5], n = t[6], r = t[7], i = t[8], b = t[9], k = t[10], I = t[11], P = t[12], T = t[13], D = t[14], C = t[15], M = t[16], E = t[17], O = t[18], m = t[19]);
66
+ const e = P === void 0 ? "left" : P, z = T === void 0 ? "large" : T, G = D === void 0 ? 0 : D, d = C === void 0 ? !1 : C, pt = M === void 0 ? !1 : M, R = E === void 0 ? "_self" : E, dt = O === void 0 ? "normal" : O;
67
+ process.env.NODE_ENV !== "production" && Et({
68
+ iconName: n,
69
+ iconSize: z,
70
+ iconSource: r,
71
+ iconPosition: e,
72
+ indentLevel: G,
73
+ stretched: pt,
74
+ weight: dt
75
+ });
76
+ const a = i?.trim() === "", Z = e === "top", $ = G === 1, q = d && e === "left", J = pt === !0 && e === "left";
77
+ let V;
78
+ t[20] !== s || t[21] !== d || t[22] !== q || t[23] !== J || t[24] !== Z || t[25] !== $ ? (V = F(o.root, s, {
79
+ [o.rootIconTop]: Z,
80
+ [o.rootIndentLevel1]: $,
81
+ [o.rootActive]: d,
82
+ [o.rootActiveWithMarker]: q,
83
+ [o.rootStretched]: J
84
+ }), t[20] = s, t[21] = d, t[22] = q, t[23] = J, t[24] = Z, t[25] = $, t[26] = V) : V = t[26];
85
+ const Q = V, U = G === 1;
86
+ let K;
87
+ t[27] !== U ? (K = F(o.activeMarker, {
88
+ [o.activeMarkerWithIndent]: U
89
+ }), t[27] = U, t[28] = K) : K = t[28];
90
+ const Y = K, tt = d && e === "left", et = dt === "bold", ot = e === "top";
91
+ let y;
92
+ t[29] !== tt || t[30] !== et || t[31] !== ot ? (y = F(o.label, {
93
+ [o.labelActive]: tt,
94
+ [o.labelBold]: et,
95
+ [o.labelIconTop]: ot
96
+ }), t[29] = tt, t[30] = et, t[31] = ot, t[32] = y) : y = t[32];
97
+ const it = y, nt = z === "x-large", rt = (n || r) && (i || a), at = (n || r) && !a;
98
+ let B;
99
+ t[33] !== nt || t[34] !== rt || t[35] !== at ? (B = F(o.iconWrapper, {
100
+ [o.iconWrapperXLarge]: nt,
101
+ [o.iconWrapperWithNumberIndicator]: rt,
102
+ [o.iconWrapperWithNumberIndicatorWithValue]: at
103
+ }), t[33] = nt, t[34] = rt, t[35] = at, t[36] = B) : B = t[36];
104
+ const ct = B, u = _ === void 0 ? "span" : "a";
105
+ let N;
106
+ t[37] !== u || t[38] !== p || t[39] !== _ || t[40] !== b || t[41] !== k || t[42] !== R ? (N = u === "a" && {
107
+ href: _,
108
+ target: R,
109
+ rel: k,
110
+ referrerPolicy: b,
111
+ download: p
112
+ }, t[37] = u, t[38] = p, t[39] = _, t[40] = b, t[41] = k, t[42] = R, t[43] = N) : N = t[43];
113
+ let A;
114
+ t[44] !== Y || t[45] !== e || t[46] !== d ? (A = d && e === "left" && /* @__PURE__ */ h("div", { className: Y }), t[44] = Y, t[45] = e, t[46] = d, t[47] = A) : A = t[47];
115
+ let g;
116
+ t[48] !== n || t[49] !== e || t[50] !== z || t[51] !== r || t[52] !== ct || t[53] !== a || t[54] !== i ? (g = (n || r) && /* @__PURE__ */ h(_t, { children: /* @__PURE__ */ lt("span", { className: ct, children: [
117
+ /* @__PURE__ */ h(vt, { name: n, theme: "light", source: r, "aria-hidden": "true", size: n || e === "top" ? "large" : z }),
118
+ (e === "left" && a || e === "top" && (i || a)) && /* @__PURE__ */ h(ht, { variant: "highlight", label: i })
119
+ ] }) }), t[48] = n, t[49] = e, t[50] = z, t[51] = r, t[52] = ct, t[53] = a, t[54] = i, t[55] = g) : g = t[55];
120
+ let w;
121
+ t[56] !== l || t[57] !== it ? (w = /* @__PURE__ */ h("span", { className: it, children: l }), t[56] = l, t[57] = it, t[58] = w) : w = t[58];
122
+ let W;
123
+ t[59] !== e || t[60] !== a || t[61] !== i ? (W = e === "left" && i && !a && /* @__PURE__ */ h(ht, { variant: "default", label: i, className: o.numberIndicator }), t[59] = e, t[60] = a, t[61] = i, t[62] = W) : W = t[62];
124
+ let X;
125
+ t[63] !== u || t[64] !== c || t[65] !== v || t[66] !== I || t[67] !== Q || t[68] !== N || t[69] !== A || t[70] !== g || t[71] !== w || t[72] !== W ? (X = /* @__PURE__ */ lt(u, { className: Q, ...N, ...c, ...I, ref: v, children: [
126
+ A,
127
+ g,
128
+ w,
129
+ W
130
+ ] }), t[63] = u, t[64] = c, t[65] = v, t[66] = I, t[67] = Q, t[68] = N, t[69] = A, t[70] = g, t[71] = w, t[72] = W, t[73] = X) : X = t[73];
131
+ const j = X;
132
+ if (m) {
133
+ let x;
134
+ t[74] !== j ? (x = /* @__PURE__ */ h(st.Anchor, { children: j }), t[74] = j, t[75] = x) : x = t[75];
135
+ let L;
136
+ t[76] !== m ? (L = /* @__PURE__ */ h(st.Content, { children: m }), t[76] = m, t[77] = L) : L = t[77];
137
+ let H;
138
+ return t[78] !== x || t[79] !== L ? (H = /* @__PURE__ */ lt(st, { placement: "top", tooltipOffset: 6, children: [
139
+ x,
140
+ L
141
+ ] }), t[78] = x, t[79] = L, t[80] = H) : H = t[80], H;
142
+ }
143
+ return j;
144
+ });
145
+ Ot.displayName = "DSActionLink";
146
+ export {
147
+ Ft as A,
148
+ Ot as D,
149
+ Gt as a,
150
+ Rt as b,
151
+ Zt as c,
152
+ Et as v
153
+ };
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { h as n } from "./has-window.ut_-aShB.js";
3
- import { g as r } from "./helpers.BbWkXTr3.js";
4
- import "./index.CgTHIF3K.js";
3
+ import { g as r } from "./helpers.CexwVao7.js";
5
4
  import "react";
5
+ import "./index.D-sRdssb.js";
6
6
  const e = "ds-alert-live-region", t = "ds-status-live-region", c = () => {
7
7
  if (n)
8
8
  return document.getElementById(e);
@@ -1,20 +1,19 @@
1
1
  "use client";
2
2
  import { jsx as w, jsxs as V } from "react/jsx-runtime";
3
- import { d as q } from "./index.CgTHIF3K.js";
4
- import { c as F } from "./index.CEyLAtio.js";
3
+ import { d as q } from "./index.D-sRdssb.js";
4
+ import { c as F } from "./index.DL9mof6u.js";
5
5
  import { isValidElement as M, useState as I, useEffect as O, cloneElement as R } from "react";
6
- import { D as K } from "./Button.B7xF1E19.js";
7
- import { DSLink as X } from "../link.D_FjTyoZ.js";
8
- import { g as d, r as z } from "./helpers.BbWkXTr3.js";
6
+ import { D as K } from "./Button.DCZgBNmA.js";
7
+ import { DSLink as X } from "../link.f8MMZo-w.js";
8
+ import { g as d, r as z } from "./helpers.CexwVao7.js";
9
9
  import '../assets/Breadcrumb.BaYrwrYl.css';const G = "ds-breadcrumb_root_1e9hu_1", H = "ds-breadcrumb_show-all-button_1e9hu_30", T = {
10
10
  root: G,
11
11
  showAllButton: H
12
12
  }, $ = 4, J = ({
13
- aria: o,
13
+ aria: r,
14
14
  links: e
15
15
  }) => {
16
- var s, a;
17
- if (!o || typeof o != "object" || Object.keys(o).length === 0 || !o["aria-label"] && !o["aria-labelledby"] || ((s = o["aria-label"]) == null ? void 0 : s.trim()) === "" && ((a = o["aria-labelledby"]) == null ? void 0 : a.trim()) === "")
16
+ if (!r || typeof r != "object" || Object.keys(r).length === 0 || !r["aria-label"] && !r["aria-labelledby"] || r["aria-label"]?.trim() === "" && r["aria-labelledby"]?.trim() === "")
18
17
  throw new Error(d("DSBreadcrumb", 'A valid "aria-label" or "aria-labelledby" property is required. Ensure the "aria" prop is a non-empty object and includes either "aria-label" or "aria-labelledby" with a non-empty string value.'));
19
18
  if (Array.isArray(e)) {
20
19
  if (e.length === 0)
@@ -23,35 +22,34 @@ import '../assets/Breadcrumb.BaYrwrYl.css';const G = "ds-breadcrumb_root_1e9hu_1
23
22
  throw new Error(d("DSBreadcrumb", "The links array must have at least two elements."));
24
23
  } else throw new Error(d("DSBreadcrumb", z("links", "DSBreadcrumb")));
25
24
  e.forEach(({
26
- href: t,
27
- label: r,
28
- wrapper: l
25
+ href: o,
26
+ label: l,
27
+ wrapper: t
29
28
  }) => {
30
- var n;
31
- if (l && !M(l))
32
- throw new Error(d("DSBreadcrumb", `The link with label "${r}" provided an invalid ReactElement as wrapper property.`));
33
- l && t && console.warn(d("DSBreadcrumb", `The link with label "${r}" has both a wrapper and an href property. Please use only one.`)), l && M(l) && ((n = l.props) != null && n.children) && console.warn(d("DSBreadcrumb", `The link with label "${r}" contains a wrapper with children. Please remove the children, as they will be replaced. For example: <Link href="#" />`));
29
+ if (t && !M(t))
30
+ throw new Error(d("DSBreadcrumb", `The link with label "${l}" provided an invalid ReactElement as wrapper property.`));
31
+ t && o && console.warn(d("DSBreadcrumb", `The link with label "${l}" has both a wrapper and an href property. Please use only one.`)), t && M(t) && t.props?.children && console.warn(d("DSBreadcrumb", `The link with label "${l}" contains a wrapper with children. Please remove the children, as they will be replaced. For example: <Link href="#" />`));
34
32
  });
35
- }, le = (o) => {
33
+ }, le = (r) => {
36
34
  const e = q.c(40);
37
- let s, a, t, r, l;
38
- e[0] !== o ? ({
39
- aria: s,
40
- className: a,
35
+ let o, l, t, s, i;
36
+ e[0] !== r ? ({
37
+ aria: o,
38
+ className: l,
41
39
  links: t,
42
- showAllButtonProps: l,
43
- ...r
44
- } = o, e[0] = o, e[1] = s, e[2] = a, e[3] = t, e[4] = r, e[5] = l) : (s = e[1], a = e[2], t = e[3], r = e[4], l = e[5]), process.env.NODE_ENV !== "production" && J({
45
- aria: s,
40
+ showAllButtonProps: i,
41
+ ...s
42
+ } = r, e[0] = r, e[1] = o, e[2] = l, e[3] = t, e[4] = s, e[5] = i) : (o = e[1], l = e[2], t = e[3], s = e[4], i = e[5]), process.env.NODE_ENV !== "production" && J({
43
+ aria: o,
46
44
  links: t
47
45
  });
48
46
  let n;
49
- e[6] !== l ? (n = l || {}, e[6] = l, e[7] = n) : n = e[7];
50
- let i, c;
47
+ e[6] !== i ? (n = i || {}, e[6] = i, e[7] = n) : n = e[7];
48
+ let a, c;
51
49
  e[8] !== n ? ({
52
50
  label: c,
53
- ...i
54
- } = n, e[8] = n, e[9] = i, e[10] = c) : (i = e[9], c = e[10]);
51
+ ...a
52
+ } = n, e[8] = n, e[9] = a, e[10] = c) : (a = e[9], c = e[10]);
55
53
  const m = c === void 0 ? "Show all links" : c, [h, P] = I(t.length <= $);
56
54
  let S;
57
55
  e[11] !== t.length ? (S = () => {
@@ -60,10 +58,10 @@ import '../assets/Breadcrumb.BaYrwrYl.css';const G = "ds-breadcrumb_root_1e9hu_1
60
58
  let g;
61
59
  e[13] !== t ? (g = [t], e[13] = t, e[14] = g) : g = e[14], O(S, g);
62
60
  let B;
63
- e[15] !== a ? (B = F(T.root, a), e[15] = a, e[16] = B) : B = e[16];
61
+ e[15] !== l ? (B = F(T.root, l), e[15] = l, e[16] = B) : B = e[16];
64
62
  const L = B;
65
63
  let k;
66
- e[17] !== m || e[18] !== i || e[19] !== h ? (k = () => h ? null : /* @__PURE__ */ w("li", { children: /* @__PURE__ */ w(K, { ...i, className: T.showAllButton, type: "button", title: m, variant: "ghost", onClick: () => P(!0), children: /* @__PURE__ */ w("span", { "aria-hidden": "true", children: "..." }) }) }), e[17] = m, e[18] = i, e[19] = h, e[20] = k) : k = e[20];
64
+ e[17] !== m || e[18] !== a || e[19] !== h ? (k = () => h ? null : /* @__PURE__ */ w("li", { children: /* @__PURE__ */ w(K, { ...a, className: T.showAllButton, type: "button", title: m, variant: "ghost", onClick: () => P(!0), children: /* @__PURE__ */ w("span", { "aria-hidden": "true", children: "..." }) }) }), e[17] = m, e[18] = a, e[19] = h, e[20] = k) : k = e[20];
67
65
  const A = k, x = Q;
68
66
  let v;
69
67
  e[21] === Symbol.for("react.memo_cache_sentinel") ? (v = (y) => y.map((C, j) => /* @__PURE__ */ w("li", { children: x(C, y.length - 1, j) }, j)), e[21] = v) : v = e[21];
@@ -84,16 +82,16 @@ import '../assets/Breadcrumb.BaYrwrYl.css';const G = "ds-breadcrumb_root_1e9hu_1
84
82
  f
85
83
  ] }), e[31] = b, e[32] = f, e[33] = u, e[34] = p) : p = e[34];
86
84
  let E;
87
- return e[35] !== s || e[36] !== r || e[37] !== L || e[38] !== p ? (E = /* @__PURE__ */ w("nav", { className: L, ...r, ...s, children: p }), e[35] = s, e[36] = r, e[37] = L, e[38] = p, e[39] = E) : E = e[39], E;
85
+ return e[35] !== o || e[36] !== s || e[37] !== L || e[38] !== p ? (E = /* @__PURE__ */ w("nav", { className: L, ...s, ...o, children: p }), e[35] = o, e[36] = s, e[37] = L, e[38] = p, e[39] = E) : E = e[39], E;
88
86
  };
89
- function Q(o, e, s) {
87
+ function Q(r, e, o) {
90
88
  const {
91
- label: a,
89
+ label: l,
92
90
  href: t,
93
- wrapper: r,
94
- iconName: l
95
- } = o, n = e === 0, i = s === e, c = i && !n ? "page" : void 0, m = /* @__PURE__ */ w(X, { href: r ? void 0 : t, iconName: l, "aria-current": r ? void 0 : c, active: i && !n, children: a });
96
- return r ? R(r, {
91
+ wrapper: s,
92
+ iconName: i
93
+ } = r, n = e === 0, a = o === e, c = a && !n ? "page" : void 0, m = /* @__PURE__ */ w(X, { href: s ? void 0 : t, iconName: i, "aria-current": s ? void 0 : c, active: a && !n, children: l });
94
+ return s ? R(s, {
97
95
  "aria-current": c,
98
96
  children: m
99
97
  }) : m;
@@ -0,0 +1,142 @@
1
+ "use client";
2
+ import { jsxs as ut, jsx as H } from "react/jsx-runtime";
3
+ import { d as mt } from "./index.D-sRdssb.js";
4
+ import { c as dt } from "./index.DL9mof6u.js";
5
+ import { forwardRef as ft } from "react";
6
+ import { u as ct } from "./useBreakpoint.BzR_yaIv.js";
7
+ import { D as bt } from "./Icon.CDLyB7Pv.js";
8
+ import { DSSpinner as vt } from "../spinner.C9qCeq0R.js";
9
+ import { Tooltip as ht } from "../tooltip.QJe_bfO-.js";
10
+ import { g as _t } from "./helpers.CexwVao7.js";
11
+ import '../assets/Button.C8sNwIeW.css';const kt = "ds-button_root_94r67_1", pt = "ds-button_root--highlight_94r67_75", Dt = "ds-button_root--dark-highlight_94r67_75", Nt = "ds-button_root--filled_94r67_151", Ot = "ds-button_root--outline_94r67_179", St = "ds-button_root--ghost_94r67_206", Ft = "ds-button_root--ghost-flush_94r67_231", yt = "ds-button_root--small_94r67_237", Gt = "ds-button_root--navigation_94r67_317", Ht = "ds-button_root--dark-filled_94r67_393", It = "ds-button_root--dark-outline_94r67_450", Bt = "ds-button_root--dark-ghost_94r67_506", Lt = "ds-button_root--dark-ghost-flush_94r67_560", Ct = "ds-button_root--icon-left_94r67_635", Tt = "ds-button_root--icon-only_94r67_638", wt = "ds-button_root--icon-only-small_94r67_647", Et = "ds-button_icon--navigation_94r67_663", At = "ds-button_icon--hidden_94r67_670", Pt = "ds-button_label--hidden_94r67_674", xt = "ds-button_label--loading_94r67_686", zt = "ds-button_loader_94r67_690", o = {
12
+ root: kt,
13
+ rootHighlight: pt,
14
+ rootDarkHighlight: Dt,
15
+ rootFilled: Nt,
16
+ rootOutline: Ot,
17
+ rootGhost: St,
18
+ rootGhostFlush: Ft,
19
+ rootSmall: yt,
20
+ rootNavigation: Gt,
21
+ rootDarkFilled: Ht,
22
+ rootDarkOutline: It,
23
+ rootDarkGhost: Bt,
24
+ rootDarkGhostFlush: Lt,
25
+ rootIconLeft: Ct,
26
+ rootIconOnly: Tt,
27
+ rootIconOnlySmall: wt,
28
+ iconNavigation: Et,
29
+ iconHidden: At,
30
+ labelHidden: Pt,
31
+ labelLoading: xt,
32
+ loader: zt
33
+ }, Wt = ["medium", "small"], Xt = ["highlight", "filled", "outline", "ghost", "navigation"], Vt = ({
34
+ variant: v,
35
+ size: k,
36
+ theme: t
37
+ }) => {
38
+ if (v === "navigation" && (k === "small" && console.warn(_t("DSButton", 'A "size" prop should not be used in combination with variant="navigation". Please remove the "size" prop.')), t === "dark"))
39
+ throw new Error(_t("DSButton", 'A DSButton with variant="navigation" does not support theme="dark". Please remove the "theme" prop.'));
40
+ }, jt = ft((v, k) => {
41
+ const t = mt.c(72);
42
+ let c, h, u, e, r, a, _, p, D, N, O, S, F, y, G, d;
43
+ t[0] !== v ? ({
44
+ children: h,
45
+ aria: c,
46
+ className: u,
47
+ disabled: p,
48
+ hideLabel: D,
49
+ iconName: e,
50
+ iconPosition: N,
51
+ iconSource: r,
52
+ isFlush: O,
53
+ loading: S,
54
+ size: F,
55
+ theme: y,
56
+ tooltip: d,
57
+ variant: G,
58
+ onClick: a,
59
+ ..._
60
+ } = v, t[0] = v, t[1] = c, t[2] = h, t[3] = u, t[4] = e, t[5] = r, t[6] = a, t[7] = _, t[8] = p, t[9] = D, t[10] = N, t[11] = O, t[12] = S, t[13] = F, t[14] = y, t[15] = G, t[16] = d) : (c = t[1], h = t[2], u = t[3], e = t[4], r = t[5], a = t[6], _ = t[7], p = t[8], D = t[9], N = t[10], O = t[11], S = t[12], F = t[13], y = t[14], G = t[15], d = t[16]);
61
+ const I = p === void 0 ? !1 : p, z = D === void 0 ? !1 : D, gt = N === void 0 ? "left" : N, B = O === void 0 ? !1 : O, i = S === void 0 ? !1 : S, L = F === void 0 ? "medium" : F, l = y === void 0 ? "light" : y, n = G === void 0 ? "filled" : G;
62
+ process.env.NODE_ENV !== "production" && Vt({
63
+ variant: n,
64
+ size: L,
65
+ theme: l
66
+ });
67
+ const V = n === "filled", j = n === "highlight", R = n === "outline", U = n === "ghost" && B !== !0, M = n === "navigation", Z = n === "ghost" && B === !0, $ = l === "dark" && n === "filled", q = l === "dark" && n === "highlight", J = l === "dark" && n === "outline", K = l === "dark" && n === "ghost" && B !== !0, Q = l === "dark" && n === "ghost" && B === !0, W = L === "small" || n === "navigation", X = gt === "left", Y = ct(z) && L === "medium" && n !== "navigation", tt = ct(z) && L === "small" && n !== "navigation";
68
+ let C;
69
+ t[17] !== u || t[18] !== j || t[19] !== R || t[20] !== U || t[21] !== M || t[22] !== Z || t[23] !== $ || t[24] !== q || t[25] !== J || t[26] !== K || t[27] !== Q || t[28] !== W || t[29] !== X || t[30] !== Y || t[31] !== tt || t[32] !== V ? (C = dt(o.root, u, {
70
+ [o.rootFilled]: V,
71
+ [o.rootHighlight]: j,
72
+ [o.rootOutline]: R,
73
+ [o.rootGhost]: U,
74
+ [o.rootNavigation]: M,
75
+ [o.rootGhostFlush]: Z,
76
+ [o.rootDarkFilled]: $,
77
+ [o.rootDarkHighlight]: q,
78
+ [o.rootDarkOutline]: J,
79
+ [o.rootDarkGhost]: K,
80
+ [o.rootDarkGhostFlush]: Q,
81
+ [o.rootSmall]: W,
82
+ [o.rootIconLeft]: X,
83
+ [o.rootIconOnly]: Y,
84
+ [o.rootIconOnlySmall]: tt
85
+ }), t[17] = u, t[18] = j, t[19] = R, t[20] = U, t[21] = M, t[22] = Z, t[23] = $, t[24] = q, t[25] = J, t[26] = K, t[27] = Q, t[28] = W, t[29] = X, t[30] = Y, t[31] = tt, t[32] = V, t[33] = C) : C = t[33];
86
+ const ot = C, nt = ct(z) && n !== "navigation";
87
+ let T;
88
+ t[34] !== i || t[35] !== nt ? (T = dt(o.label, {
89
+ [o.labelHidden]: nt,
90
+ [o.labelLoading]: i
91
+ }), t[34] = i, t[35] = nt, t[36] = T) : T = t[36];
92
+ const it = T, lt = n === "navigation";
93
+ let w;
94
+ t[37] !== i || t[38] !== lt ? (w = dt({
95
+ [o.iconNavigation]: lt,
96
+ [o.iconHidden]: i
97
+ }), t[37] = i, t[38] = lt, t[39] = w) : w = t[39];
98
+ const st = w, et = l === "light" && n === "filled" || l === "dark" && n === "outline" || l === "dark" && n === "ghost" ? "dark" : "light";
99
+ let E;
100
+ t[40] !== I || t[41] !== i || t[42] !== a ? (E = (s) => {
101
+ if (I || i) {
102
+ s.preventDefault();
103
+ return;
104
+ }
105
+ a && a(s);
106
+ }, t[40] = I, t[41] = i, t[42] = a, t[43] = E) : E = t[43];
107
+ const rt = E, at = I || i;
108
+ let g;
109
+ t[44] !== i ? (g = i && /* @__PURE__ */ H(vt, { className: o.loader, aria: {
110
+ "aria-label": "Loading state"
111
+ } }), t[44] = i, t[45] = g) : g = t[45];
112
+ let m;
113
+ t[46] !== h || t[47] !== it ? (m = /* @__PURE__ */ H("span", { className: it, children: h }), t[46] = h, t[47] = it, t[48] = m) : m = t[48];
114
+ let f;
115
+ t[49] !== st || t[50] !== e || t[51] !== r || t[52] !== et ? (f = (e || r) && /* @__PURE__ */ H(bt, { name: e, theme: et, source: r, className: st, "aria-hidden": "true" }), t[49] = st, t[50] = e, t[51] = r, t[52] = et, t[53] = f) : f = t[53];
116
+ let A;
117
+ t[54] !== c || t[55] !== rt || t[56] !== i || t[57] !== k || t[58] !== _ || t[59] !== ot || t[60] !== at || t[61] !== g || t[62] !== m || t[63] !== f ? (A = /* @__PURE__ */ ut("button", { className: ot, type: "submit", onClick: rt, ...c, ..._, "aria-disabled": at, "aria-busy": i, ref: k, children: [
118
+ g,
119
+ m,
120
+ f
121
+ ] }), t[54] = c, t[55] = rt, t[56] = i, t[57] = k, t[58] = _, t[59] = ot, t[60] = at, t[61] = g, t[62] = m, t[63] = f, t[64] = A) : A = t[64];
122
+ const P = A;
123
+ if (d) {
124
+ let s;
125
+ t[65] !== P ? (s = /* @__PURE__ */ H(ht.Anchor, { children: P }), t[65] = P, t[66] = s) : s = t[66];
126
+ let b;
127
+ t[67] !== d ? (b = /* @__PURE__ */ H(ht.Content, { children: d }), t[67] = d, t[68] = b) : b = t[68];
128
+ let x;
129
+ return t[69] !== s || t[70] !== b ? (x = /* @__PURE__ */ ut(ht, { placement: "top", tooltipOffset: 6, children: [
130
+ s,
131
+ b
132
+ ] }), t[69] = s, t[70] = b, t[71] = x) : x = t[71], x;
133
+ }
134
+ return P;
135
+ });
136
+ jt.displayName = "DSButton";
137
+ export {
138
+ Wt as B,
139
+ jt as D,
140
+ Xt as a,
141
+ Vt as v
142
+ };
@@ -0,0 +1,88 @@
1
+ "use client";
2
+ import { jsxs as u, jsx as s } from "react/jsx-runtime";
3
+ import { c as x } from "./index.DL9mof6u.js";
4
+ import { forwardRef as j, useRef as B, useState as H, useEffect as V, useCallback as $ } from "react";
5
+ import { u as A } from "./useBreakpoint.BzR_yaIv.js";
6
+ import "./index.D-sRdssb.js";
7
+ import { D as _ } from "./Icon.CDLyB7Pv.js";
8
+ import { D as L } from "./SystemFeedback.CjlARKki.js";
9
+ import { g as C } from "./helpers.CexwVao7.js";
10
+ import '../assets/Checkbox.CyOw3rXI.css';const O = "ds-checkbox_root_xklfa_1", U = "ds-checkbox_root--disabled_xklfa_21", z = "ds-checkbox_checkbox_xklfa_25", F = "ds-checkbox_icon-check_xklfa_41", J = "ds-checkbox_icon-minus_xklfa_42", K = "ds-checkbox_checkbox--invalid_xklfa_66", Q = "ds-checkbox_label--hidden_xklfa_71", R = "ds-checkbox_input_xklfa_84", T = "ds-checkbox_label_xklfa_71", W = "ds-checkbox_feedback_xklfa_198", e = {
11
+ root: O,
12
+ rootDisabled: U,
13
+ checkbox: z,
14
+ iconCheck: F,
15
+ iconMinus: J,
16
+ checkboxInvalid: K,
17
+ labelHidden: Q,
18
+ input: R,
19
+ label: T,
20
+ feedback: W
21
+ }, X = ({
22
+ label: c,
23
+ id: n,
24
+ invalid: t,
25
+ systemFeedback: k
26
+ }) => {
27
+ if (!c)
28
+ throw new Error(C("DSCheckbox", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSCheckbox component. If you don't want to display a label, set hideLabel={true}.`));
29
+ if (k && t && !n)
30
+ throw new Error(C("DSCheckbox", `A unique "id" prop is required when passing in the systemFeedback prop and setting invalid to true. Please add a unique "id" prop to the DSCheckbox component with label: "${c}".`));
31
+ }, Y = j(({
32
+ label: c,
33
+ checkboxGroupId: n,
34
+ checked: t,
35
+ className: k,
36
+ defaultChecked: D = !1,
37
+ disabled: r = !1,
38
+ hideLabel: N = !1,
39
+ id: b,
40
+ indeterminate: p = !1,
41
+ invalid: a = !1,
42
+ systemFeedback: l,
43
+ onChange: h,
44
+ ...S
45
+ }, i) => {
46
+ process.env.NODE_ENV !== "production" && X({
47
+ label: c,
48
+ id: b,
49
+ invalid: a,
50
+ systemFeedback: l
51
+ });
52
+ const d = B(null), [y, v] = H(D), w = A(N);
53
+ V(() => {
54
+ d && d.current && (d.current.indeterminate = p);
55
+ }, [p]);
56
+ const f = t !== void 0, g = f ? t : y, m = `${b}-feedback`, E = [a && l && m, a && n && `${n}-feedback`].filter(Boolean).join(" ") || void 0, I = x(e.root, {
57
+ [e.rootDisabled]: r
58
+ }), q = x(e.label, {
59
+ // hide label only visually to keep them available for assistive technologies
60
+ [e.labelHidden]: w
61
+ }), M = x(e.checkbox, {
62
+ [e.checkboxInvalid]: a
63
+ }), P = $((o) => {
64
+ if (r) {
65
+ o.preventDefault();
66
+ return;
67
+ }
68
+ f || v(o.target.checked), h && h(o);
69
+ }, [r, f, h]);
70
+ return /* @__PURE__ */ u("div", { className: k, children: [
71
+ /* @__PURE__ */ u("label", { className: I, children: [
72
+ /* @__PURE__ */ s("input", { id: b, type: "checkbox", className: e.input, ref: (o) => {
73
+ typeof i == "function" ? i(o) : i !== null && (i.current = o), d.current = o;
74
+ }, ...S, checked: g, disabled: r, "aria-label": c, "aria-describedby": E, "aria-invalid": a, onChange: P }),
75
+ /* @__PURE__ */ u("div", { className: M, children: [
76
+ /* @__PURE__ */ s(_, { name: "check", className: e.iconCheck, "aria-hidden": "true" }),
77
+ /* @__PURE__ */ s(_, { name: "minus", className: e.iconMinus, "aria-hidden": "true" })
78
+ ] }),
79
+ /* @__PURE__ */ s("span", { className: q, children: c })
80
+ ] }),
81
+ a && l && /* @__PURE__ */ s(L, { id: m, variant: "error", className: e.feedback, message: l })
82
+ ] });
83
+ });
84
+ Y.displayName = "DSCheckbox";
85
+ export {
86
+ Y as D,
87
+ X as v
88
+ };
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { jsx as _ } from "react/jsx-runtime";
3
- import { d as w } from "./index.CgTHIF3K.js";
4
- import { c as G } from "./index.CEyLAtio.js";
5
- import { D as q } from "./Fieldset.CjIfmN_5.js";
3
+ import { d as w } from "./index.D-sRdssb.js";
4
+ import { c as G } from "./index.DL9mof6u.js";
5
+ import { D as q } from "./Fieldset.DiMtr6Vw.js";
6
6
  import S from "react";
7
- import { g as x, r as N } from "./helpers.BbWkXTr3.js";
8
- import { D as z } from "./Checkbox.DxV7-F5W.js";
7
+ import { g as x, r as N } from "./helpers.CexwVao7.js";
8
+ import { D as z } from "./Checkbox.BcGXAuuP.js";
9
9
  import '../assets/CheckboxGroup.Dd-Huo7x.css';const F = "ds-checkbox-group_root_12fot_1", H = "ds-checkbox-group_root--horizontal_12fot_9", I = "ds-checkbox-group_root--invalid_12fot_12", g = {
10
10
  root: F,
11
11
  rootHorizontal: H,