@stihl-design-system/components 1.0.0-RC.32 → 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 (251) 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/Select.COxLltX7.css +1 -0
  19. package/assets/Slider.DPEmJ3HD.css +1 -0
  20. package/assets/Stepper.tXJl15yL.css +1 -0
  21. package/assets/{SystemFeedback.RcrPepSZ.css → SystemFeedback.PKzqnXUe.css} +1 -1
  22. package/assets/Textarea.y3MW7VW0.css +1 -0
  23. package/assets/Toast.CGyKXb4V.css +1 -0
  24. package/assets/buttonround.BN3vUDc_.css +1 -0
  25. package/assets/input.DTu4g_iA.css +1 -0
  26. package/assets/step.BeLporJO.css +1 -0
  27. package/assets/switch.B9B-n_3y.css +1 -0
  28. package/{asterisk.CR60hx8S.js → asterisk.B2ih8VwF.js} +1 -1
  29. package/{banner.o4Etkjjo.js → banner.CI5HnDqD.js} +3 -3
  30. package/breadcrumb.CtwAux3P.js +11 -0
  31. package/button.DHuKanZP.js +13 -0
  32. package/{buttonround.ChKWHzsv.js → buttonround.CMlmEDaN.js} +6 -6
  33. package/checkbox.DwccD0Mp.js +12 -0
  34. package/checkboxgroup.ZiUFfCJ1.js +9 -0
  35. package/chip.B0s_fS8L.js +12 -0
  36. package/chipgroup.Dpu66bo5.js +143 -0
  37. package/chunks/Accordion.CYIfNOWr.js +168 -0
  38. package/chunks/{ActionButton.DdDesD7K.js → ActionButton.DOYsEHPr.js} +37 -37
  39. package/chunks/{ActionLink.DqAsPYda.js → ActionLink.DbyciN3Y.js} +36 -36
  40. package/chunks/{AriaLiveRegions.utils.Cb327d_2.js → AriaLiveRegions.utils.CybNIBSa.js} +2 -2
  41. package/chunks/{Breadcrumb.9KinNuyQ.js → Breadcrumb.BgnpTo01.js} +35 -37
  42. package/chunks/{Button.Cf1CKq8N.js → Button.DCZgBNmA.js} +8 -8
  43. package/chunks/Checkbox.BcGXAuuP.js +88 -0
  44. package/chunks/{CheckboxGroup.Cj68J6Ee.js → CheckboxGroup.BuFd1luB.js} +5 -5
  45. package/chunks/{Chip.BrbYu6i_.js → Chip.D6pubCZV.js} +6 -6
  46. package/chunks/{CustomReactSelect.Cqq70QC0.js → CustomReactSelect.Dg3wC_VH.js} +450 -447
  47. package/chunks/Dialog.DpqSVrYR.js +102 -0
  48. package/chunks/Drawer.DISWybOa.js +107 -0
  49. package/chunks/{Fieldset.D7cLR5ze.js → Fieldset.DiMtr6Vw.js} +6 -6
  50. package/chunks/Header.7TQL_J9t.js +370 -0
  51. package/chunks/{Icon.NSsVrYeq.js → Icon.CDLyB7Pv.js} +77 -79
  52. package/chunks/{Input.utils.Cnnzvuk4.js → Input.utils.Dkw7gRrr.js} +17 -17
  53. package/chunks/InputFile.C8nt9Fu8.js +218 -0
  54. package/chunks/InputNumber.CbH1XJfl.js +267 -0
  55. package/chunks/{InputPassword.Da3hEKTc.js → InputPassword.DbdjuSiJ.js} +34 -34
  56. package/chunks/InputSearch.joxmugiv.js +173 -0
  57. package/chunks/{LinkButton.59oNDwPU.js → LinkButton.BZgIGgc8.js} +7 -7
  58. package/chunks/MegaMenu.CQbOeaib.js +189 -0
  59. package/chunks/NavigationTabList.G_l0GiUa.js +67 -0
  60. package/chunks/{NavigationTabs.DspPFHPh.js → NavigationTabs.BwM-6CRm.js} +13 -14
  61. package/chunks/Notification.CrojkJ0E.js +91 -0
  62. package/chunks/Popover.Bb0Pjmvg.js +215 -0
  63. package/chunks/{RadioGroup.DeTz3c19.js → RadioGroup.CexC4v2Z.js} +5 -5
  64. package/chunks/Select.BEIdNMML.js +164 -0
  65. package/chunks/{Slider.84lkgq3W.js → Slider.CR0zYHeZ.js} +83 -84
  66. package/chunks/Stepper.PTQdQBYf.js +152 -0
  67. package/chunks/{SystemFeedback.CyGbUCzT.js → SystemFeedback.CjlARKki.js} +9 -9
  68. package/chunks/Tabs.DyP4whX0.js +83 -0
  69. package/chunks/{Text.DGWeWF1y.js → Text.DpRtTpB4.js} +3 -3
  70. package/chunks/Textarea.Du2RII5u.js +168 -0
  71. package/chunks/Toast.ug_RjGgF.js +76 -0
  72. package/chunks/{arrow-clockwise.BefOjGPg.js → arrow-clockwise.C4iOgjOc.js} +1 -1
  73. package/chunks/{arrow-counterclockwise.C7Ov32BZ.js → arrow-counterclockwise.CgQAuBUe.js} +1 -1
  74. package/chunks/{circle-check-colored.Bye_GwLy.js → circle-check-colored.qP2s3vjI.js} +1 -1
  75. package/chunks/{diamond-exclamationmark-colored.WNKYwZ8q.js → diamond-exclamationmark-colored.CzYiaTZ0.js} +1 -1
  76. package/chunks/feather.l1E4nFBx.js +10 -0
  77. package/chunks/file-type-doc.B_RSSYbu.js +10 -0
  78. package/chunks/floating-ui.dom.BT8pKtCQ.js +1005 -0
  79. package/chunks/floating-ui.react.3FjeMiuN.js +1999 -0
  80. package/chunks/helpers.CexwVao7.js +38 -0
  81. package/chunks/{index.CgTHIF3K.js → index.D-sRdssb.js} +1 -1
  82. package/chunks/{index.CEyLAtio.js → index.DL9mof6u.js} +2 -2
  83. package/chunks/{is-animation-disabled.CUl4N3LI.js → is-animation-disabled.B-V_68K-.js} +5 -5
  84. package/chunks/{map.CXgG1iGz.js → map.DNl7PF61.js} +1 -1
  85. package/chunks/moon.5yILPYXs.js +10 -0
  86. package/chunks/muscle.DbNjWasV.js +10 -0
  87. package/chunks/petrol.BGWwCsTw.js +10 -0
  88. package/chunks/sun.CY6ttzTL.js +10 -0
  89. package/chunks/{triangle-exclamationmark-colored.CbVC3Gzi.js → triangle-exclamationmark-colored.e93zvQ6Q.js} +1 -1
  90. package/chunks/upload.BogDfonx.js +10 -0
  91. package/chunks/useBreakpoint.BzR_yaIv.js +42 -0
  92. package/chunks/variants.-R3_RCW8.js +10 -0
  93. package/chunks/weight.DUPu2UT0.js +10 -0
  94. package/combobox.jG5GRA7C.js +65 -0
  95. package/components/ChipGroup/ChipGroup.utils.d.ts +1 -3
  96. package/components/Combobox/Combobox.utils.d.ts +3 -4
  97. package/components/Combobox/CustomReactSelect/CustomReactSelect.d.ts +4 -2
  98. package/components/{InputStepper/InputStepper.d.ts → InputNumber/InputNumber.d.ts} +4 -4
  99. package/components/InputNumber/InputNumber.utils.d.ts +13 -0
  100. package/components/Scroller/Scroller.d.ts +6 -2
  101. package/components/Stepper/Step.d.ts +33 -0
  102. package/components/Stepper/Step.utils.d.ts +5 -0
  103. package/components/Stepper/Stepper.d.ts +56 -0
  104. package/components/Stepper/Stepper.test.d.ts +1 -0
  105. package/components/Stepper/Stepper.utils.d.ts +30 -0
  106. package/components/Stepper/Stepper.utils.test.d.ts +1 -0
  107. package/customreactselect.BFN8cYJi.js +14 -0
  108. package/dialog.CzM_Cxp0.js +9 -0
  109. package/drawer._A9MQ8Cj.js +9 -0
  110. package/fieldset.CId-NtI5.js +11 -0
  111. package/{filelist.BiKMKCyg.js → filelist.DgVuWpR3.js} +23 -24
  112. package/{flag.72PONA83.js → flag.CE32qHPa.js} +3 -3
  113. package/{floatingactionbutton.B2YChsNU.js → floatingactionbutton.Bsnncudt.js} +5 -5
  114. package/header.CelAkqtp.js +12 -0
  115. package/{heading.BXFBZhKv.js → heading.DHLpT4dc.js} +2 -2
  116. package/icon.vzkPwgjZ.js +9 -0
  117. package/index.d.ts +4 -2
  118. package/index.es.js +218 -206
  119. package/input.DuEbg7d6.js +206 -0
  120. package/inputfile.BjgJGefV.js +17 -0
  121. package/inputnumber.BcrxBVv0.js +16 -0
  122. package/inputnumber.d.ts +2 -0
  123. package/inputpassword.CddmBW-T.js +13 -0
  124. package/inputsearch.CFOASqrd.js +14 -0
  125. package/{link.DbnvsD3j.js → link.f8MMZo-w.js} +5 -5
  126. package/linkbutton.BYAvi-_V.js +12 -0
  127. package/{logo.C96KaG1P.js → logo.DprmD8HU.js} +3 -3
  128. package/{logo100years.BcB6_c-o.js → logo100years.B4d_DIiB.js} +1 -1
  129. package/megamenu.Cy9Cc-mC.js +12 -0
  130. package/navigationtablist.CkkLyHrM.js +10 -0
  131. package/navigationtabs.Dp7D2fnc.js +9 -0
  132. package/notification.B-norGiB.js +10 -0
  133. package/{numberindicator.Ddf3ESi7.js → numberindicator.BdnPMogE.js} +2 -2
  134. package/{optioncheckbox.DqfXuPdi.js → optioncheckbox.nBVwGv6c.js} +3 -3
  135. package/package.json +41 -50
  136. package/partials/index.js +56 -50
  137. package/partials/lib/partials.d.ts +1 -1
  138. package/popover.DFVDZY-m.js +12 -0
  139. package/{radio.7_N_alaS.js → radio.DHUfSPai.js} +2 -2
  140. package/radiogroup.DaThoMfq.js +11 -0
  141. package/scroller.Cu7H_VCT.js +98 -0
  142. package/select.CMdKf7tC.js +13 -0
  143. package/{skiptocontent.BSCde5hT.js → skiptocontent.CHVh0hbr.js} +4 -4
  144. package/slider.C5dK6KcG.js +11 -0
  145. package/{spinner.BUjhjAvw.js → spinner.C9qCeq0R.js} +18 -18
  146. package/step.DKf4CHGr.js +82 -0
  147. package/step.d.ts +6 -0
  148. package/stepper.CCP_igpJ.js +16 -0
  149. package/stepper.d.ts +2 -0
  150. package/{switch.D7BCfyyZ.js → switch.Bqdyzi2E.js} +5 -5
  151. package/systemfeedback.O7tj1juR.js +10 -0
  152. package/tablist.DZgo49nZ.js +209 -0
  153. package/{tabpane.CB-eudyw.js → tabpane.C4nsUlwc.js} +2 -2
  154. package/tabs.BkoT7feH.js +11 -0
  155. package/text.cLv2PhjQ.js +10 -0
  156. package/textarea.DMn20z4p.js +13 -0
  157. package/{title.Bz_k5Vda.js → title.DuLPB-VK.js} +2 -2
  158. package/toast.Dvs8woTH.js +11 -0
  159. package/toastmanager.pi_Fhd5t.js +89 -0
  160. package/tooltip.QJe_bfO-.js +178 -0
  161. package/topbar.Bxwvp9Lf.js +12 -0
  162. package/types/icon-types.d.ts +1 -1
  163. package/utils/index.d.ts +1 -0
  164. package/utils/mergeRefs.d.ts +5 -0
  165. package/utils/mergeRefs.test.d.ts +1 -0
  166. package/accordion.HfUSDwQJ.js +0 -12
  167. package/actionbutton.kgd0E_xF.js +0 -12
  168. package/actionlink.CwC42RWc.js +0 -12
  169. package/assets/Accordion.BJb4TOG0.css +0 -1
  170. package/assets/Button.Dw8H5nFS.css +0 -1
  171. package/assets/Checkbox.BKHQN_tu.css +0 -1
  172. package/assets/CustomReactSelect.DGIItWIh.css +0 -1
  173. package/assets/Dialog.CGAg7bnN.css +0 -1
  174. package/assets/Drawer.VOvWQoEr.css +0 -1
  175. package/assets/InputFile.CCQxsulT.css +0 -1
  176. package/assets/InputPassword.124xVOiO.css +0 -1
  177. package/assets/InputSearch.Bkg-1urJ.css +0 -1
  178. package/assets/InputStepper.DvFJk1Mi.css +0 -1
  179. package/assets/LinkButton.xMvg_ojf.css +0 -1
  180. package/assets/Notification.BOuaA5GT.css +0 -1
  181. package/assets/Select.C1gWF32A.css +0 -1
  182. package/assets/Slider.Bidyhb-B.css +0 -1
  183. package/assets/Textarea.Dq4rH9Tg.css +0 -1
  184. package/assets/Toast.CJ1zhDIT.css +0 -1
  185. package/assets/buttonround.Cw9hnUan.css +0 -1
  186. package/assets/input.CUjGh-UM.css +0 -1
  187. package/assets/switch.Bc9KIyw9.css +0 -1
  188. package/breadcrumb.BsQm0kUD.js +0 -11
  189. package/button.Dyy6ajX6.js +0 -13
  190. package/checkbox.BNnp4ztM.js +0 -12
  191. package/checkboxgroup.BTVnKenc.js +0 -9
  192. package/chip.C7NstOHt.js +0 -12
  193. package/chipgroup.Zo1-IOCn.js +0 -210
  194. package/chunks/Accordion.CnqryAUu.js +0 -170
  195. package/chunks/Checkbox.CiwriItT.js +0 -88
  196. package/chunks/Dialog.Bv7k55He.js +0 -135
  197. package/chunks/Drawer.BVTvx276.js +0 -140
  198. package/chunks/Header.um5MlziB.js +0 -377
  199. package/chunks/InputFile.bVWWdePn.js +0 -220
  200. package/chunks/InputSearch.GOYqFCcZ.js +0 -174
  201. package/chunks/InputStepper.BuhPtfl-.js +0 -268
  202. package/chunks/MegaMenu._o3nNDAa.js +0 -192
  203. package/chunks/NavigationTabList.DuT7gzhj.js +0 -57
  204. package/chunks/Notification.Pts2oh0R.js +0 -92
  205. package/chunks/Popover.BRR8YZ-P.js +0 -228
  206. package/chunks/Select.D2ehd4yN.js +0 -162
  207. package/chunks/Tabs.C8ADTzJ0.js +0 -83
  208. package/chunks/Textarea.Cw85sxHL.js +0 -163
  209. package/chunks/Toast.DG3WVvau.js +0 -76
  210. package/chunks/file-type-doc.DlovDOBh.js +0 -10
  211. package/chunks/floating-ui.dom.VgHc0h4l.js +0 -989
  212. package/chunks/floating-ui.react.DCyAzlZ4.js +0 -2011
  213. package/chunks/helpers.BbWkXTr3.js +0 -37
  214. package/chunks/petrol.Du6qAgp0.js +0 -10
  215. package/chunks/upload.ZImTAIgx.js +0 -10
  216. package/chunks/useBreakpoint.CMOR9ZOB.js +0 -44
  217. package/combobox.orZ3z8CB.js +0 -60
  218. package/components/InputStepper/InputStepper.utils.d.ts +0 -13
  219. package/customreactselect.Np-RpzvU.js +0 -14
  220. package/dialog.D4rcbW6A.js +0 -10
  221. package/drawer.BCCB3Rkj.js +0 -10
  222. package/fieldset.ZLs9IGpE.js +0 -11
  223. package/header.DUbn3BZt.js +0 -12
  224. package/icon.CHVAZr5T.js +0 -9
  225. package/input.DG20x6gh.js +0 -203
  226. package/inputfile.Dc56lQ4t.js +0 -17
  227. package/inputpassword.znFHRLsI.js +0 -13
  228. package/inputsearch.B1G6rfVk.js +0 -14
  229. package/inputstepper.d.ts +0 -2
  230. package/inputstepper.o6rdM_CW.js +0 -16
  231. package/linkbutton.DU8Ih8ZF.js +0 -12
  232. package/megamenu.CPH8EeFF.js +0 -12
  233. package/navigationtablist.C0iwsAad.js +0 -9
  234. package/navigationtabs.JjJtbuUe.js +0 -9
  235. package/notification.Ds_Q7ifk.js +0 -10
  236. package/popover.B72W0OvU.js +0 -12
  237. package/radiogroup.C_3IcNBq.js +0 -11
  238. package/scroller.CQxmQU6U.js +0 -123
  239. package/select.Ceyt-zvu.js +0 -13
  240. package/slider.Dq2dcziy.js +0 -11
  241. package/systemfeedback.CSdWOWuf.js +0 -10
  242. package/tablist.V7DBklhE.js +0 -256
  243. package/tabs.DQNLPAEN.js +0 -11
  244. package/text.ZOUuesnU.js +0 -10
  245. package/textarea.CixKeQBp.js +0 -13
  246. package/toast.D8QprMCa.js +0 -11
  247. package/toastmanager.BSVjYsg9.js +0 -116
  248. package/tooltip.CUCSRXd3.js +0 -191
  249. package/topbar.CVhJy-Br.js +0 -12
  250. /package/components/{InputStepper/InputStepper.test.d.ts → InputNumber/InputNumber.test.d.ts} +0 -0
  251. /package/components/{InputStepper/InputStepper.utils.test.d.ts → InputNumber/InputNumberutils.test.d.ts} +0 -0
@@ -0,0 +1,215 @@
1
+ "use client";
2
+ import { jsx as m, jsxs as O, Fragment as q } from "react/jsx-runtime";
3
+ import { d as H } from "./index.D-sRdssb.js";
4
+ import { useState as J, useRef as K, useMemo as Q, createContext as X, forwardRef as I, isValidElement as Y, cloneElement as Z, useContext as ee } from "react";
5
+ import { u as oe, o as te, i as re, s as se, j as ne, a as ae, b as ce, c as ie, d as le, e as j, f as pe, k as de, F as ue, h as he } from "./floating-ui.react.3FjeMiuN.js";
6
+ import { c as k } from "./index.DL9mof6u.js";
7
+ import { g as b, c as M } from "./helpers.CexwVao7.js";
8
+ import { D as ve } from "./Button.DCZgBNmA.js";
9
+ import { a as fe } from "./floating-ui.dom.BT8pKtCQ.js";
10
+ import '../assets/Popover.CXyUaXiO.css';const me = "ds-popover_popover_xg81f_5", ge = "ds-popover_popover--no-arrow_xg81f_64", we = "ds-popover_popover--variant-grey_xg81f_67", Pe = "ds-popover_arrow_xg81f_71", De = "ds-popover_arrow--variant-grey_xg81f_90", Se = "ds-popover_default-anchor_xg81f_107", _ = {
11
+ popover: me,
12
+ popoverNoArrow: ge,
13
+ popoverVariantGrey: we,
14
+ arrow: Pe,
15
+ arrowVariantGrey: De,
16
+ defaultAnchor: Se
17
+ }, Ae = ({
18
+ initialOpen: t = !1,
19
+ placement: o = "bottom",
20
+ isOpen: e,
21
+ popoverOffset: r = 6,
22
+ showArrow: a = !0,
23
+ variant: l = "default",
24
+ defaultAnchorButtonProps: p,
25
+ onOpenChange: d
26
+ } = {}) => {
27
+ const [s, h] = J(t), c = e ?? s, n = d ?? h, i = K(null), u = oe({
28
+ placement: o,
29
+ open: c,
30
+ strategy: "fixed",
31
+ onOpenChange: n,
32
+ whileElementsMounted: fe,
33
+ middleware: [te(r + (a ? 7 : 0)), re({
34
+ // default configuration taken from https://floating-ui.com/docs/flip
35
+ crossAxis: o.includes("-"),
36
+ fallbackAxisSideDirection: "end",
37
+ padding: r
38
+ }), se({
39
+ padding: r
40
+ }), ...a ? [ne({
41
+ element: i
42
+ })] : []]
43
+ }), v = u.context, C = ae(v, {
44
+ enabled: !0
45
+ }), w = ce(v), E = ie(v), P = le([C, w, E]);
46
+ return Q(() => ({
47
+ open: c,
48
+ popoverOffset: r,
49
+ setOpen: n,
50
+ arrowRef: i,
51
+ showArrow: a,
52
+ defaultAnchorButtonProps: p,
53
+ variant: l,
54
+ ...P,
55
+ ...u
56
+ }), [c, r, n, i, a, p, l, P, u]);
57
+ }, xe = ({
58
+ children: t,
59
+ hasContent: o,
60
+ hasAnchor: e
61
+ }) => {
62
+ if (!t)
63
+ throw new Error(b("DSPopover", "A DSPopover must have children."));
64
+ if (!o && e)
65
+ throw new Error(b("DSPopover", "A DSPopover must either have no child components for its most basic usage or have both a <DSPopover.Content> and <DSPopover.Anchor> component as a child. <DSPopover.Content> is missing! Please add it to the children of DSPopover."));
66
+ if (!e && o)
67
+ throw new Error(b("DSPopover", "A DSPopover must either have no child components for its most basic usage or have both a <DSPopover.Content> and <DSPopover.Anchor> component as a child. <DSPopover.Anchor> is missing! Please add it to the children of DSPopover."));
68
+ }, ye = ({
69
+ showArrow: t,
70
+ variant: o
71
+ }) => {
72
+ o === "grey" && t === !1 && console.warn(b("DSPopover", "The 'grey' variant is only available when 'showArrow' is true. To use the 'grey' variant, please ensure that 'showArrow' is set to true."));
73
+ }, B = X(null), U = () => {
74
+ const t = ee(B);
75
+ if (t == null)
76
+ throw new Error(b("DSPopover", "Components like DSPopover.Anchor or DSPopover.Content must be wrapped in <DSPopover />."));
77
+ return t;
78
+ }, f = (t) => {
79
+ const o = H.c(11), {
80
+ children: e,
81
+ ...r
82
+ } = t, a = Ae({
83
+ ...r
84
+ }), l = M(e, f.Content), p = M(e, f.Anchor);
85
+ process.env.NODE_ENV !== "production" && (xe({
86
+ children: e,
87
+ hasContent: l,
88
+ hasAnchor: p
89
+ }), ye({
90
+ showArrow: r.showArrow,
91
+ variant: r.variant
92
+ }));
93
+ const d = !l && !p && e !== null;
94
+ let s;
95
+ o[0] !== e || o[1] !== d ? (s = d ? /* @__PURE__ */ O(q, { children: [
96
+ /* @__PURE__ */ m(f.Anchor, {}),
97
+ /* @__PURE__ */ m(f.Content, { children: e })
98
+ ] }) : e, o[0] = e, o[1] = d, o[2] = s) : s = o[2];
99
+ const h = s, c = l || d, n = p || d;
100
+ let i;
101
+ o[3] !== a || o[4] !== c || o[5] !== n ? (i = {
102
+ ...a,
103
+ hasContent: c,
104
+ hasAnchor: n
105
+ }, o[3] = a, o[4] = c, o[5] = n, o[6] = i) : i = o[6];
106
+ const g = i;
107
+ let u;
108
+ return o[7] !== h || o[8] !== g || o[9] !== r ? (u = /* @__PURE__ */ m(B.Provider, { value: g, ...r, children: h }), o[7] = h, o[8] = g, o[9] = r, o[10] = u) : u = o[10], u;
109
+ }, W = I(({
110
+ children: t,
111
+ ...o
112
+ }, e) => {
113
+ const {
114
+ context: r,
115
+ defaultAnchorButtonProps: a,
116
+ refs: l,
117
+ hasAnchor: p,
118
+ getReferenceProps: d
119
+ } = U(), {
120
+ label: s = "Toggle popover",
121
+ ...h
122
+ } = a || {}, c = t ? t?.ref : null, n = j([l.setReference, e, c]);
123
+ return p && t && Y(t) ? Z(t, d({
124
+ ref: n,
125
+ ...o,
126
+ ...t.props,
127
+ "data-state": r.open ? "open" : "closed"
128
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
129
+ })) : /* @__PURE__ */ m(
130
+ ve,
131
+ {
132
+ ...h,
133
+ ref: n,
134
+ type: "button",
135
+ "data-state": r.open ? "open" : "closed",
136
+ ...d(o),
137
+ size: "small",
138
+ hideLabel: !0,
139
+ iconName: "circle-info-inverted",
140
+ variant: "ghost",
141
+ className: _.defaultAnchor,
142
+ children: t ?? s
143
+ }
144
+ );
145
+ });
146
+ W.displayName = "DSPopover.Anchor";
147
+ const $ = I((t, o) => {
148
+ const e = H.c(33), {
149
+ style: r,
150
+ className: a,
151
+ classNameArrow: l,
152
+ children: p,
153
+ ...d
154
+ } = t, {
155
+ context: s,
156
+ refs: h,
157
+ floatingStyles: c,
158
+ showArrow: n,
159
+ variant: i,
160
+ getFloatingProps: g,
161
+ arrowRef: u
162
+ } = U();
163
+ let v;
164
+ e[0] !== o || e[1] !== h.setFloating ? (v = [h.setFloating, o], e[0] = o, e[1] = h.setFloating, e[2] = v) : v = e[2];
165
+ const C = j(v);
166
+ let w;
167
+ e[3] === Symbol.for("react.memo_cache_sentinel") ? (w = {
168
+ duration: {
169
+ open: 250,
170
+ close: 250
171
+ }
172
+ }, e[3] = w) : w = e[3];
173
+ const {
174
+ isMounted: E,
175
+ status: P
176
+ } = pe(s, w);
177
+ if (!E)
178
+ return null;
179
+ const R = he, F = ue, L = !1;
180
+ let D;
181
+ e[4] !== c || e[5] !== r ? (D = {
182
+ ...c,
183
+ ...r
184
+ }, e[4] = c, e[5] = r, e[6] = D) : D = e[6];
185
+ const V = !n, G = i === "grey" && n;
186
+ let S;
187
+ e[7] !== a || e[8] !== V || e[9] !== G ? (S = k(_.popover, a, {
188
+ [_.popoverNoArrow]: V,
189
+ [_.popoverVariantGrey]: G
190
+ }), e[7] = a, e[8] = V, e[9] = G, e[10] = S) : S = e[10];
191
+ const z = s.placement, T = g(d);
192
+ let A;
193
+ e[11] !== u || e[12] !== l || e[13] !== s || e[14] !== n || e[15] !== i ? (A = n && /* @__PURE__ */ m(de, { ref: u, context: s, className: k(_.arrow, l, {
194
+ [_.arrowVariantGrey]: i === "grey" && n
195
+ }), strokeWidth: 1, tipRadius: 1, width: 16, height: 7 }), e[11] = u, e[12] = l, e[13] = s, e[14] = n, e[15] = i, e[16] = A) : A = e[16];
196
+ let x;
197
+ e[17] !== p || e[18] !== s.placement || e[19] !== C || e[20] !== P || e[21] !== A || e[22] !== D || e[23] !== S || e[24] !== T ? (x = /* @__PURE__ */ O("div", { ref: C, style: D, className: S, "data-placement": z, "data-status": P, ...T, children: [
198
+ A,
199
+ p
200
+ ] }), e[17] = p, e[18] = s.placement, e[19] = C, e[20] = P, e[21] = A, e[22] = D, e[23] = S, e[24] = T, e[25] = x) : x = e[25];
201
+ let y;
202
+ e[26] !== F || e[27] !== s || e[28] !== x ? (y = /* @__PURE__ */ m(F, { context: s, modal: L, children: x }), e[26] = F, e[27] = s, e[28] = x, e[29] = y) : y = e[29];
203
+ let N;
204
+ return e[30] !== R || e[31] !== y ? (N = /* @__PURE__ */ m(R, { children: y }), e[30] = R, e[31] = y, e[32] = N) : N = e[32], N;
205
+ });
206
+ $.displayName = "DSPopover.Content";
207
+ f.Anchor = W;
208
+ f.Content = $;
209
+ f.displayName = "DSPopover";
210
+ export {
211
+ f as D,
212
+ ye as a,
213
+ Ae as u,
214
+ xe as v
215
+ };
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { jsx as F } from "react/jsx-runtime";
3
- import { d as $ } from "./index.CgTHIF3K.js";
4
- import { c as J } from "./index.CEyLAtio.js";
3
+ import { d as $ } from "./index.D-sRdssb.js";
4
+ import { c as J } from "./index.DL9mof6u.js";
5
5
  import { forwardRef as K, useState as Q } from "react";
6
- import { D as W } from "./Fieldset.D7cLR5ze.js";
7
- import { DSRadio as X } from "../radio.7_N_alaS.js";
8
- import { g as m, r as V } from "./helpers.BbWkXTr3.js";
6
+ import { D as W } from "./Fieldset.DiMtr6Vw.js";
7
+ import { DSRadio as X } from "../radio.DHUfSPai.js";
8
+ import { g as m, r as V } from "./helpers.CexwVao7.js";
9
9
  import '../assets/RadioGroup.CM2mYOzc.css';const Y = "ds-radio-group_root_12fot_1", Z = "ds-radio-group_root--horizontal_12fot_9", oo = "ds-radio-group_root--invalid_12fot_12", B = {
10
10
  root: Y,
11
11
  rootHorizontal: Z,
@@ -0,0 +1,164 @@
1
+ "use client";
2
+ import { jsx as u, jsxs as ye } from "react/jsx-runtime";
3
+ import { d as Ae } from "./index.D-sRdssb.js";
4
+ import { c as me } from "./index.DL9mof6u.js";
5
+ import { forwardRef as xe, useRef as Be, useState as ke, useEffect as Fe } from "react";
6
+ import { u as He } from "./useBreakpoint.BzR_yaIv.js";
7
+ import { Asterisk as Re } from "../asterisk.B2ih8VwF.js";
8
+ import { D as je } from "./Icon.CDLyB7Pv.js";
9
+ import { D as We } from "./SystemFeedback.CjlARKki.js";
10
+ import { g as pe, r as Me } from "./helpers.CexwVao7.js";
11
+ import '../assets/Select.COxLltX7.css';const Te = "ds-select_root_1qg6z_1", Oe = "ds-select_hint_1qg6z_1", Ze = "ds-select_label_1qg6z_1", Je = "ds-select_label--hidden_1qg6z_122", Ke = "ds-select_label--disabled_1qg6z_135", Qe = "ds-select_feedback_1qg6z_155", Ue = "ds-select_select-wrapper_1qg6z_159", Xe = "ds-select_select_1qg6z_159", Ye = "ds-select_select--small_1qg6z_173", Ge = "ds-select_select--invalid_1qg6z_285", el = "ds-select_select--placeholder_1qg6z_393", ll = "ds-select_chevron_1qg6z_443", tl = "ds-select_chevron--small_1qg6z_447", sl = "ds-select_chevron--disabled_1qg6z_450", t = {
12
+ root: Te,
13
+ hint: Oe,
14
+ label: Ze,
15
+ labelHidden: Je,
16
+ labelDisabled: Ke,
17
+ feedback: Qe,
18
+ selectWrapper: Ue,
19
+ select: Xe,
20
+ selectSmall: Ye,
21
+ selectInvalid: Ge,
22
+ selectPlaceholder: el,
23
+ chevron: ll,
24
+ chevronSmall: tl,
25
+ chevronDisabled: sl
26
+ }, _l = ["medium", "small"], al = ({
27
+ id: n,
28
+ label: s,
29
+ options: e
30
+ }) => {
31
+ if (!n)
32
+ throw new Error(pe("DSSelect", 'A unique "id" prop is required. Please add a unique "id" prop to the DSSelect component.'));
33
+ if (!s)
34
+ throw new Error(pe("DSSelect", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSSelect component. If you don't want to display a label, set hideLabel={true}.`));
35
+ if (Array.isArray(e)) {
36
+ if (e.length === 0)
37
+ throw new Error(pe("DSSelect", "The options array must not be empty."));
38
+ } else throw new Error(pe("DSSelect", Me("options", "DSSelect")));
39
+ }, ol = (n, s, e) => n === "" || s !== void 0 && s !== "" ? !1 : !(e !== void 0 && e !== ""), cl = xe((n, s) => {
40
+ const e = Ae.c(124);
41
+ let c, d, i, l, f, b, _, S, r, Z, J, K, Q, U, X, o;
42
+ e[0] !== n ? ({
43
+ id: l,
44
+ label: f,
45
+ options: _,
46
+ className: c,
47
+ defaultValue: d,
48
+ disabled: Z,
49
+ hideLabel: J,
50
+ hint: i,
51
+ invalid: K,
52
+ placeholder: Q,
53
+ required: U,
54
+ size: X,
55
+ systemFeedback: r,
56
+ value: o,
57
+ onChange: b,
58
+ ...S
59
+ } = n, e[0] = n, e[1] = c, e[2] = d, e[3] = i, e[4] = l, e[5] = f, e[6] = b, e[7] = _, e[8] = S, e[9] = r, e[10] = Z, e[11] = J, e[12] = K, e[13] = Q, e[14] = U, e[15] = X, e[16] = o) : (c = e[1], d = e[2], i = e[3], l = e[4], f = e[5], b = e[6], _ = e[7], S = e[8], r = e[9], Z = e[10], J = e[11], K = e[12], Q = e[13], U = e[14], X = e[15], o = e[16]);
60
+ const h = Z === void 0 ? !1 : Z, Ee = J === void 0 ? !1 : J, a = K === void 0 ? !1 : K, v = Q === void 0 ? "Select" : Q, g = U === void 0 ? !1 : U, le = X === void 0 ? "medium" : X;
61
+ process.env.NODE_ENV !== "production" && al({
62
+ id: l,
63
+ label: f,
64
+ options: _
65
+ });
66
+ const Ie = Be(null), [ue, ze] = ke(o);
67
+ let te;
68
+ e[17] !== d || e[18] !== v || e[19] !== o ? (te = ol(v, d, o), e[17] = d, e[18] = v, e[19] = o, e[20] = te) : te = e[20];
69
+ const [Y, Pe] = ke(te);
70
+ let se, ae;
71
+ e[21] !== o ? (se = () => {
72
+ ze(o);
73
+ }, ae = [o], e[21] = o, e[22] = se, e[23] = ae) : (se = e[22], ae = e[23]), Fe(se, ae);
74
+ let oe;
75
+ e[24] !== s ? (oe = (ee) => {
76
+ Ie.current = ee, typeof s == "function" ? s(ee) : s && (s.current = ee);
77
+ }, e[24] = s, e[25] = oe) : oe = e[25];
78
+ const _e = oe, G = He(Ee), D = `${l}-label`, q = `${l}-feedback`, y = `${l}-hint`, ve = i ? ` ${y}` : "";
79
+ let ce;
80
+ e[26] !== a || e[27] !== r || e[28] !== q ? (ce = [a && r && q].filter(Boolean).join(" ") || void 0, e[26] = a, e[27] = r, e[28] = q, e[29] = ce) : ce = e[29];
81
+ const Se = ce;
82
+ let z, w, N, k, E, I, P, C, $, L, V, A, x, B, F, H, m, p;
83
+ if (e[30] !== Se || e[31] !== ve || e[32] !== c || e[33] !== d || e[34] !== h || e[35] !== _e || e[36] !== G || e[37] !== i || e[38] !== y || e[39] !== l || e[40] !== a || e[41] !== Y || e[42] !== f || e[43] !== b || e[44] !== _ || e[45] !== v || e[46] !== g || e[47] !== S || e[48] !== D || e[49] !== ue || e[50] !== le) {
84
+ const ee = (he) => [v && /* @__PURE__ */ u("option", { value: "", children: v }, `${l}-hidden-option-disabled-placeholder`), ...he.map((O) => {
85
+ if ("options" in O) {
86
+ const {
87
+ label: Ne,
88
+ options: Ve
89
+ } = O;
90
+ return /* @__PURE__ */ u("optgroup", { label: Ne, children: Ve.map(we) }, Ne);
91
+ } else
92
+ return we(O);
93
+ })], we = il;
94
+ let re;
95
+ e[69] !== c ? (re = me(t.root, c), e[69] = c, e[70] = re) : re = e[70];
96
+ const Ce = re, ge = le === "small";
97
+ let ne;
98
+ e[71] !== a || e[72] !== Y || e[73] !== ge ? (ne = me(t.select, {
99
+ [t.selectSmall]: ge,
100
+ [t.selectInvalid]: a,
101
+ [t.selectPlaceholder]: Y
102
+ }), e[71] = a, e[72] = Y, e[73] = ge, e[74] = ne) : ne = e[74];
103
+ const $e = ne;
104
+ let de;
105
+ e[75] !== h || e[76] !== G ? (de = me(t.label, {
106
+ [t.labelHidden]: G,
107
+ [t.labelDisabled]: h
108
+ }), e[75] = h, e[76] = G, e[77] = de) : de = e[77];
109
+ const De = de, qe = le === "small";
110
+ let fe;
111
+ e[78] !== h || e[79] !== qe ? (fe = me(t.chevron, {
112
+ [t.chevronSmall]: qe,
113
+ [t.chevronDisabled]: h
114
+ }), e[78] = h, e[79] = qe, e[80] = fe) : fe = e[80], z = fe;
115
+ let be;
116
+ e[81] !== b ? (be = (he) => {
117
+ const {
118
+ value: O
119
+ } = he.target;
120
+ Pe(O === ""), ze(O), b && b(he);
121
+ }, e[81] = b, e[82] = be) : be = e[82];
122
+ const Le = be;
123
+ H = Ce;
124
+ let T;
125
+ e[83] !== g ? (T = g && /* @__PURE__ */ u(Re, {}), e[83] = g, e[84] = T) : T = e[84], e[85] !== l || e[86] !== f || e[87] !== De || e[88] !== D || e[89] !== T ? (m = /* @__PURE__ */ ye("label", { className: De, id: D, htmlFor: l, children: [
126
+ f,
127
+ T
128
+ ] }), e[85] = l, e[86] = f, e[87] = De, e[88] = D, e[89] = T, e[90] = m) : m = e[90], e[91] !== i || e[92] !== y ? (p = i && /* @__PURE__ */ u("div", { className: t.hint, id: y, children: i }), e[91] = i, e[92] = y, e[93] = p) : p = e[93], F = t.selectWrapper, w = S, N = l, k = _e, E = $e, I = `${D}${ve}`, P = Se, C = a, $ = d, L = ue, V = h, A = g, x = Le, B = ee(_), e[30] = Se, e[31] = ve, e[32] = c, e[33] = d, e[34] = h, e[35] = _e, e[36] = G, e[37] = i, e[38] = y, e[39] = l, e[40] = a, e[41] = Y, e[42] = f, e[43] = b, e[44] = _, e[45] = v, e[46] = g, e[47] = S, e[48] = D, e[49] = ue, e[50] = le, e[51] = z, e[52] = w, e[53] = N, e[54] = k, e[55] = E, e[56] = I, e[57] = P, e[58] = C, e[59] = $, e[60] = L, e[61] = V, e[62] = A, e[63] = x, e[64] = B, e[65] = F, e[66] = H, e[67] = m, e[68] = p;
129
+ } else
130
+ z = e[51], w = e[52], N = e[53], k = e[54], E = e[55], I = e[56], P = e[57], C = e[58], $ = e[59], L = e[60], V = e[61], A = e[62], x = e[63], B = e[64], F = e[65], H = e[66], m = e[67], p = e[68];
131
+ let R;
132
+ e[94] !== w || e[95] !== N || e[96] !== k || e[97] !== E || e[98] !== I || e[99] !== P || e[100] !== C || e[101] !== $ || e[102] !== L || e[103] !== V || e[104] !== A || e[105] !== x || e[106] !== B ? (R = /* @__PURE__ */ u("select", { ...w, id: N, ref: k, className: E, "aria-labelledby": I, "aria-describedby": P, "aria-invalid": C, defaultValue: $, value: L, disabled: V, required: A, onChange: x, children: B }), e[94] = w, e[95] = N, e[96] = k, e[97] = E, e[98] = I, e[99] = P, e[100] = C, e[101] = $, e[102] = L, e[103] = V, e[104] = A, e[105] = x, e[106] = B, e[107] = R) : R = e[107];
133
+ let j;
134
+ e[108] !== z ? (j = /* @__PURE__ */ u(je, { name: "chevron-down", className: z, "aria-hidden": "true" }), e[108] = z, e[109] = j) : j = e[109];
135
+ let W;
136
+ e[110] !== F || e[111] !== R || e[112] !== j ? (W = /* @__PURE__ */ ye("div", { className: F, children: [
137
+ R,
138
+ j
139
+ ] }), e[110] = F, e[111] = R, e[112] = j, e[113] = W) : W = e[113];
140
+ let M;
141
+ e[114] !== a || e[115] !== r || e[116] !== q ? (M = a && r && /* @__PURE__ */ u(We, { className: t.feedback, message: r, variant: "error", id: q }), e[114] = a, e[115] = r, e[116] = q, e[117] = M) : M = e[117];
142
+ let ie;
143
+ return e[118] !== H || e[119] !== m || e[120] !== p || e[121] !== W || e[122] !== M ? (ie = /* @__PURE__ */ ye("div", { className: H, children: [
144
+ m,
145
+ p,
146
+ W,
147
+ M
148
+ ] }), e[118] = H, e[119] = m, e[120] = p, e[121] = W, e[122] = M, e[123] = ie) : ie = e[123], ie;
149
+ });
150
+ cl.displayName = "DSSelect";
151
+ function il(n) {
152
+ const {
153
+ label: s,
154
+ value: e,
155
+ isDisabled: c
156
+ } = n;
157
+ return /* @__PURE__ */ u("option", { value: e, disabled: c, children: s }, e);
158
+ }
159
+ export {
160
+ cl as D,
161
+ _l as S,
162
+ ol as g,
163
+ al as v
164
+ };