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

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 (161) hide show
  1. package/Placeholder.svg +1 -1
  2. package/{actionbutton.DLQJU6AV.js → actionbutton.Du5CT-Mt.js} +2 -2
  3. package/{actionlink.DEBrWfN3.js → actionlink.BK9CaQUY.js} +2 -2
  4. package/assets/Button.CmeGVEAY.css +1 -0
  5. package/assets/CustomReactSelect.BihX36Uo.css +1 -0
  6. package/assets/Fieldset.Oqu7pOBv.css +1 -0
  7. package/assets/InputFile.D7Ihod7B.css +1 -0
  8. package/assets/InputNumber.z_UqRYdv.css +1 -0
  9. package/assets/InputPassword.DZENjxJ9.css +1 -0
  10. package/assets/InputSearch.GBH9Eh6F.css +1 -0
  11. package/assets/LinkButton.88j5ckLu.css +1 -0
  12. package/assets/RadioGroup.q1lQ-HIZ.css +1 -0
  13. package/assets/Select.CL0fqx7X.css +1 -0
  14. package/assets/Slider.DWLuIsNj.css +1 -0
  15. package/assets/Textarea.B1HOakic.css +1 -0
  16. package/assets/buttonround.DBpMesfr.css +1 -0
  17. package/assets/input.RPDR8qdT.css +1 -0
  18. package/assets/radio.CsfCywxz.css +1 -0
  19. package/{banner.CI5HnDqD.js → banner.AhUeW3HM.js} +1 -1
  20. package/{breadcrumb.CtwAux3P.js → breadcrumb.DpIAQk3r.js} +3 -3
  21. package/button.CqNYOfSj.js +12 -0
  22. package/buttonround.9IS0tUqw.js +96 -0
  23. package/{checkbox.DwccD0Mp.js → checkbox.XYQI-ubx.js} +2 -2
  24. package/{checkboxgroup.ZiUFfCJ1.js → checkboxgroup.C66ZwglF.js} +2 -2
  25. package/{chip.B0s_fS8L.js → chip.B-pxhsdb.js} +2 -2
  26. package/{chipgroup.Dpu66bo5.js → chipgroup.CY3pWyLO.js} +4 -3
  27. package/chunks/{ActionButton.DOYsEHPr.js → ActionButton.BOYQYo5M.js} +1 -1
  28. package/chunks/{ActionLink.DbyciN3Y.js → ActionLink.BlwvrnPN.js} +1 -1
  29. package/chunks/{Breadcrumb.BgnpTo01.js → Breadcrumb.C_Yaz_vw.js} +2 -2
  30. package/chunks/Button.CQlIao-Z.js +139 -0
  31. package/chunks/{Checkbox.BcGXAuuP.js → Checkbox.D5X5T6Yg.js} +1 -1
  32. package/chunks/CheckboxGroup.BIspWqeW.js +74 -0
  33. package/chunks/{Chip.D6pubCZV.js → Chip.DIp5hdRH.js} +1 -1
  34. package/chunks/{CustomReactSelect.Dg3wC_VH.js → CustomReactSelect.D4kopDzX.js} +816 -800
  35. package/chunks/{Dialog.DpqSVrYR.js → Dialog.DMxHRrxo.js} +1 -1
  36. package/chunks/{Drawer.DISWybOa.js → Drawer.CatmvDHJ.js} +1 -1
  37. package/chunks/Fieldset.Bk8W5h13.js +81 -0
  38. package/chunks/{Header.7TQL_J9t.js → Header.18sOO0Gf.js} +1 -1
  39. package/chunks/{Input.utils.Dkw7gRrr.js → Input.utils.CL1u4Ctq.js} +27 -25
  40. package/chunks/InputFile.CjK3gEst.js +236 -0
  41. package/chunks/InputNumber.wfDjnz58.js +242 -0
  42. package/chunks/InputPassword.Ctb0xbwg.js +121 -0
  43. package/chunks/InputSearch.C-r5ktR8.js +149 -0
  44. package/chunks/LinkButton.CWibqvhs.js +140 -0
  45. package/chunks/{MegaMenu.CQbOeaib.js → MegaMenu.qttkjGbD.js} +7 -8
  46. package/chunks/{NavigationTabs.BwM-6CRm.js → NavigationTabs.SBNLx87A.js} +1 -1
  47. package/chunks/{Notification.CrojkJ0E.js → Notification.DYl1rcGu.js} +1 -1
  48. package/chunks/{Popover.Bb0Pjmvg.js → Popover.C9tT8xkE.js} +9 -10
  49. package/chunks/RadioGroup.BDsVAhCK.js +125 -0
  50. package/chunks/Select.BjBPN-6W.js +147 -0
  51. package/chunks/Slider.Bh2jhGKn.js +306 -0
  52. package/chunks/{Stepper.PTQdQBYf.js → Stepper.D1Yzw-gL.js} +2 -2
  53. package/chunks/{Tabs.DyP4whX0.js → Tabs.BvG-OPWa.js} +1 -1
  54. package/chunks/Textarea.DibBqiam.js +181 -0
  55. package/chunks/{Toast.ug_RjGgF.js → Toast.ldZRNpGM.js} +1 -1
  56. package/chunks/floating-ui.react.COTL3jH5.js +2984 -0
  57. package/chunks/{useBreakpoint.BzR_yaIv.js → useBreakpoint.1txsny17.js} +8 -5
  58. package/combobox.C2XUM4fM.js +67 -0
  59. package/components/Button/Button.d.ts +5 -0
  60. package/components/Button/Button.utils.d.ts +4 -5
  61. package/components/CheckboxGroup/CheckboxGroup.d.ts +14 -1
  62. package/components/Combobox/Combobox.utils.d.ts +3 -2
  63. package/components/Combobox/CustomReactSelect/CustomReactSelect.d.ts +13 -0
  64. package/components/Fieldset/Fieldset.d.ts +14 -1
  65. package/components/Input/Input.d.ts +13 -0
  66. package/components/Input/Input.utils.d.ts +2 -2
  67. package/components/InputFile/InputFile.d.ts +13 -0
  68. package/components/InputFile/InputFile.utils.d.ts +4 -2
  69. package/components/InputNumber/InputNumber.d.ts +17 -4
  70. package/components/InputNumber/InputNumber.utils.d.ts +2 -2
  71. package/components/InputPassword/InputPassword.d.ts +13 -0
  72. package/components/InputPassword/InputPassword.utils.d.ts +2 -2
  73. package/components/InputSearch/InputSearch.d.ts +13 -0
  74. package/components/InputSearch/InputSearch.utils.d.ts +2 -2
  75. package/components/LinkButton/LinkButton.d.ts +5 -0
  76. package/components/LinkButton/LinkButton.utils.d.ts +4 -5
  77. package/components/RadioGroup/RadioGroup.d.ts +13 -0
  78. package/components/RadioGroup/RadioGroup.utils.d.ts +3 -2
  79. package/components/Scroller/Scroller.test.d.ts +1 -0
  80. package/components/Select/Select.d.ts +13 -0
  81. package/components/Select/Select.utils.d.ts +2 -2
  82. package/components/Slider/Slider.d.ts +13 -0
  83. package/components/Textarea/Textarea.d.ts +13 -0
  84. package/components/Textarea/Textarea.utils.d.ts +2 -2
  85. package/{customreactselect.BFN8cYJi.js → customreactselect.BNwzk8Qi.js} +4 -3
  86. package/{dialog.CzM_Cxp0.js → dialog.D5geKDtZ.js} +2 -2
  87. package/{drawer._A9MQ8Cj.js → drawer.ucjhpIF4.js} +2 -2
  88. package/{fieldset.CId-NtI5.js → fieldset.Crx4Cb9a.js} +3 -2
  89. package/{filelist.DgVuWpR3.js → filelist.Bcu6TZRj.js} +1 -1
  90. package/{floatingactionbutton.Bsnncudt.js → floatingactionbutton.B5hJ2At2.js} +1 -1
  91. package/{header.CelAkqtp.js → header.A77yIAH3.js} +1 -1
  92. package/index.es.js +103 -102
  93. package/input.DL_M_Pg3.js +190 -0
  94. package/{inputfile.BjgJGefV.js → inputfile.iwsNHjrc.js} +6 -5
  95. package/{inputnumber.BcrxBVv0.js → inputnumber.raC_7KIP.js} +7 -6
  96. package/{inputpassword.CddmBW-T.js → inputpassword.Brte78Sr.js} +4 -4
  97. package/{inputsearch.CFOASqrd.js → inputsearch.BP0EzFcF.js} +6 -5
  98. package/{link.f8MMZo-w.js → link.BtZeNdii.js} +2 -2
  99. package/{linkbutton.BYAvi-_V.js → linkbutton.In_ROT0Z.js} +4 -4
  100. package/{logo100years.B4d_DIiB.js → logo100years.DDzCrczW.js} +10 -10
  101. package/{megamenu.Cy9Cc-mC.js → megamenu.BurL9MfF.js} +3 -3
  102. package/{navigationtabs.Dp7D2fnc.js → navigationtabs.EbmfKv1R.js} +2 -2
  103. package/{notification.B-norGiB.js → notification.tadg6lCc.js} +2 -2
  104. package/package.json +4 -3
  105. package/partials/index.js +32 -32
  106. package/{popover.DFVDZY-m.js → popover.CXq7VoZt.js} +3 -3
  107. package/radio.pyM5ma9s.js +134 -0
  108. package/{radiogroup.DaThoMfq.js → radiogroup.sdob0iPE.js} +3 -3
  109. package/{scroller.Cu7H_VCT.js → scroller.B1LijjCF.js} +1 -1
  110. package/{select.CMdKf7tC.js → select.CZ0C3yJD.js} +5 -4
  111. package/{skiptocontent.CHVh0hbr.js → skiptocontent.CAQy194o.js} +1 -1
  112. package/slider.B3u5du_Q.js +12 -0
  113. package/{step.DKf4CHGr.js → step.DaJFsafj.js} +1 -1
  114. package/{stepper.CCP_igpJ.js → stepper.DcaZESJi.js} +3 -3
  115. package/styles/scss/ds/lib/ds-internal/_input.scss +12 -3
  116. package/styles/scss/ds/lib/ds-internal/_link-button.scss +10 -2
  117. package/styles/scss/ds/lib/link-button.scss +11 -3
  118. package/{tablist.DZgo49nZ.js → tablist.mX5nQWwH.js} +1 -1
  119. package/{tabs.BkoT7feH.js → tabs.DjWfks34.js} +2 -2
  120. package/{textarea.DMn20z4p.js → textarea.69r-5faY.js} +4 -3
  121. package/{toast.Dvs8woTH.js → toast.FzO5KoiK.js} +2 -2
  122. package/{toastmanager.pi_Fhd5t.js → toastmanager.BGIYNKkT.js} +1 -1
  123. package/{tooltip.QJe_bfO-.js → tooltip.Cj3AvYgB.js} +22 -23
  124. package/{topbar.Bxwvp9Lf.js → topbar.CAujTZAE.js} +2 -2
  125. package/utils/useIsomorphicLayoutEffect.d.ts +2 -2
  126. package/assets/Button.C8sNwIeW.css +0 -1
  127. package/assets/CustomReactSelect.E_jJFVew.css +0 -1
  128. package/assets/Fieldset.CW9dBvAo.css +0 -1
  129. package/assets/InputFile.BnIvK65P.css +0 -1
  130. package/assets/InputNumber.BoiCIR1f.css +0 -1
  131. package/assets/InputPassword.Dk3_vNLV.css +0 -1
  132. package/assets/InputSearch.C1_4cVCi.css +0 -1
  133. package/assets/LinkButton.B86yacK5.css +0 -1
  134. package/assets/RadioGroup.CM2mYOzc.css +0 -1
  135. package/assets/Select.COxLltX7.css +0 -1
  136. package/assets/Slider.DPEmJ3HD.css +0 -1
  137. package/assets/Textarea.y3MW7VW0.css +0 -1
  138. package/assets/buttonround.BN3vUDc_.css +0 -1
  139. package/assets/input.DTu4g_iA.css +0 -1
  140. package/assets/radio.CgpGvYc-.css +0 -1
  141. package/button.DHuKanZP.js +0 -13
  142. package/buttonround.CMlmEDaN.js +0 -96
  143. package/chunks/Button.DCZgBNmA.js +0 -142
  144. package/chunks/CheckboxGroup.BuFd1luB.js +0 -72
  145. package/chunks/Fieldset.DiMtr6Vw.js +0 -74
  146. package/chunks/InputFile.C8nt9Fu8.js +0 -218
  147. package/chunks/InputNumber.CbH1XJfl.js +0 -267
  148. package/chunks/InputPassword.DbdjuSiJ.js +0 -136
  149. package/chunks/InputSearch.joxmugiv.js +0 -173
  150. package/chunks/LinkButton.BZgIGgc8.js +0 -132
  151. package/chunks/RadioGroup.CexC4v2Z.js +0 -104
  152. package/chunks/Select.BEIdNMML.js +0 -164
  153. package/chunks/Slider.CR0zYHeZ.js +0 -291
  154. package/chunks/Textarea.Du2RII5u.js +0 -168
  155. package/chunks/floating-ui.dom.BT8pKtCQ.js +0 -1005
  156. package/chunks/floating-ui.react.3FjeMiuN.js +0 -1999
  157. package/combobox.jG5GRA7C.js +0 -65
  158. package/input.DuEbg7d6.js +0 -206
  159. package/radio.DHUfSPai.js +0 -126
  160. package/slider.C5dK6KcG.js +0 -11
  161. /package/components/InputNumber/{InputNumberutils.test.d.ts → InputNumber.utils.test.d.ts} +0 -0
@@ -5,7 +5,7 @@ import { c as F } from "./index.DL9mof6u.js";
5
5
  import { forwardRef as ft } from "react";
6
6
  import { D as vt } from "./Icon.CDLyB7Pv.js";
7
7
  import { NumberIndicator as ht } from "../numberindicator.BdnPMogE.js";
8
- import { Tooltip as st } from "../tooltip.QJe_bfO-.js";
8
+ import { Tooltip as st } from "../tooltip.Cj3AvYgB.js";
9
9
  import { g as S } from "./helpers.CexwVao7.js";
10
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
11
  root: bt,
@@ -3,8 +3,8 @@ import { jsx as w, jsxs as V } from "react/jsx-runtime";
3
3
  import { d as q } from "./index.D-sRdssb.js";
4
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.DCZgBNmA.js";
7
- import { DSLink as X } from "../link.f8MMZo-w.js";
6
+ import { D as K } from "./Button.CQlIao-Z.js";
7
+ import { DSLink as X } from "../link.BtZeNdii.js";
8
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,
@@ -0,0 +1,139 @@
1
+ "use client";
2
+ import { jsxs as O, jsx as c } from "react/jsx-runtime";
3
+ import { c as p } from "./index.DL9mof6u.js";
4
+ import { forwardRef as T } from "react";
5
+ import { u as r } from "./useBreakpoint.1txsny17.js";
6
+ import { D as F } from "./Icon.CDLyB7Pv.js";
7
+ import { DSSpinner as L } from "../spinner.C9qCeq0R.js";
8
+ import { Tooltip as k } from "../tooltip.Cj3AvYgB.js";
9
+ import { g as a } from "./helpers.CexwVao7.js";
10
+ import "./index.D-sRdssb.js";
11
+ import '../assets/Button.CmeGVEAY.css';const C = "ds-button_root_146u3_1", A = "ds-button_root--highlight_146u3_75", E = "ds-button_root--dark-highlight_146u3_75", P = "ds-button_root--filled_146u3_151", x = "ds-button_root--outline_146u3_179", V = "ds-button_root--ghost_146u3_206", j = "ds-button_root--ghost-flush_146u3_231", R = "ds-button_root--small_146u3_237", U = "ds-button_root--navigation_146u3_317", M = "ds-button_root--navigation--stretched_146u3_393", Z = "ds-button_root--navigation--stretched--icon-left_146u3_396", q = "ds-button_root--dark-filled_146u3_399", J = "ds-button_root--dark-outline_146u3_456", K = "ds-button_root--dark-ghost_146u3_512", Q = "ds-button_root--dark-ghost-flush_146u3_566", W = "ds-button_root--stretched_146u3_641", X = "ds-button_root--icon-left_146u3_644", Y = "ds-button_root--icon-only_146u3_647", $ = "ds-button_root--icon-only-small_146u3_656", z = "ds-button_icon--navigation_146u3_672", oo = "ds-button_icon--hidden_146u3_679", to = "ds-button_label--hidden_146u3_683", no = "ds-button_label--loading_146u3_695", eo = "ds-button_loader_146u3_699", o = {
12
+ root: C,
13
+ rootHighlight: A,
14
+ rootDarkHighlight: E,
15
+ rootFilled: P,
16
+ rootOutline: x,
17
+ rootGhost: V,
18
+ rootGhostFlush: j,
19
+ rootSmall: R,
20
+ rootNavigation: U,
21
+ rootNavigationStretched: M,
22
+ rootNavigationStretchedIconLeft: Z,
23
+ rootDarkFilled: q,
24
+ rootDarkOutline: J,
25
+ rootDarkGhost: K,
26
+ rootDarkGhostFlush: Q,
27
+ rootStretched: W,
28
+ rootIconLeft: X,
29
+ rootIconOnly: Y,
30
+ rootIconOnlySmall: $,
31
+ iconNavigation: z,
32
+ iconHidden: oo,
33
+ labelHidden: to,
34
+ labelLoading: no,
35
+ loader: eo
36
+ }, bo = ["medium", "small"], po = ["highlight", "filled", "outline", "ghost", "navigation"], ro = ({
37
+ hideLabel: f,
38
+ iconName: m,
39
+ iconSource: b,
40
+ isFlush: d,
41
+ size: s,
42
+ stretched: l,
43
+ theme: u,
44
+ variant: e
45
+ }) => {
46
+ if (e === "navigation" && (s === "small" && console.warn(a("DSButton", 'A "size" prop should not be used in combination with variant="navigation". Please remove the "size" prop.')), u === "dark"))
47
+ throw new Error(a("DSButton", 'A DSButton with variant="navigation" does not support theme="dark". Please remove the "theme" prop.'));
48
+ e !== "ghost" && d ? console.warn(a("DSButton", 'The "isFlush" prop only has an effect when used with variant="ghost". Please remove the "isFlush" prop or set variant="ghost".')) : e === "ghost" && d && l && console.warn(a("DSButton", 'The "stretched" and "isFlush" props do not have an effect when used together. Please remove one of them.')), f && (!m && !b && console.warn(a("DSButton", 'The "hideLabel" prop is set to true but no icon is provided via "iconName" or "iconSource". Please provide an icon to ensure the button is not empty when the label is hidden.')), l && console.warn(a("DSButton", 'The "stretched" and "hideLabel" props do not have an effect when used together. Please remove one of them.')));
49
+ }, so = T(({
50
+ children: f,
51
+ aria: m,
52
+ className: b,
53
+ disabled: d = !1,
54
+ hideLabel: s = !1,
55
+ iconName: l,
56
+ iconPosition: u = "left",
57
+ iconSource: e,
58
+ isFlush: h = !1,
59
+ loading: i = !1,
60
+ size: _ = "medium",
61
+ stretched: g = !1,
62
+ theme: n = "light",
63
+ tooltip: D,
64
+ variant: t = "filled",
65
+ onClick: S,
66
+ ...w
67
+ }, I) => {
68
+ process.env.NODE_ENV !== "production" && ro({
69
+ hideLabel: r(s),
70
+ iconName: l,
71
+ iconSource: e,
72
+ isFlush: h,
73
+ size: _,
74
+ stretched: g,
75
+ theme: n,
76
+ variant: t
77
+ });
78
+ const y = p(o.root, b, {
79
+ // variant
80
+ [o.rootFilled]: t === "filled",
81
+ [o.rootHighlight]: t === "highlight",
82
+ [o.rootOutline]: t === "outline",
83
+ [o.rootGhost]: t === "ghost" && h !== !0,
84
+ [o.rootNavigation]: t === "navigation",
85
+ [o.rootNavigationStretched]: t === "navigation" && r(g) && u === "right",
86
+ [o.rootNavigationStretchedIconLeft]: t === "navigation" && r(g) && u === "left",
87
+ // isFlush
88
+ [o.rootGhostFlush]: t === "ghost" && h === !0,
89
+ // dark theme
90
+ [o.rootDarkFilled]: n === "dark" && t === "filled",
91
+ [o.rootDarkHighlight]: n === "dark" && t === "highlight",
92
+ [o.rootDarkOutline]: n === "dark" && t === "outline",
93
+ [o.rootDarkGhost]: n === "dark" && t === "ghost" && h !== !0,
94
+ // dark isFlush
95
+ [o.rootDarkGhostFlush]: n === "dark" && t === "ghost" && h === !0,
96
+ // size
97
+ [o.rootSmall]: _ === "small" || t === "navigation",
98
+ // stretched
99
+ [o.rootStretched]: r(g),
100
+ // icon position
101
+ [o.rootIconLeft]: u === "left",
102
+ // icon only
103
+ [o.rootIconOnly]: r(s) && _ === "medium" && t !== "navigation",
104
+ [o.rootIconOnlySmall]: r(s) && _ === "small" && t !== "navigation"
105
+ }), B = p({
106
+ // hide label only visually to keep them available for assistive technologies
107
+ [o.labelHidden]: r(s) && t !== "navigation",
108
+ // set label opacity to 0 when loading to prevent button size from changing
109
+ [o.labelLoading]: i
110
+ // if no label classes are set via classNames, return undefined to avoid empty class attribute
111
+ }) || void 0, G = p({
112
+ [o.iconNavigation]: t === "navigation",
113
+ // set icon opacity to 0 when loading to prevent button size from changing
114
+ [o.iconHidden]: i
115
+ }), H = n === "light" && t === "filled" || n === "dark" && t === "outline" || n === "dark" && t === "ghost" ? "dark" : "light", v = /* @__PURE__ */ O("button", { className: y, type: "submit", onClick: (N) => {
116
+ if (d || i) {
117
+ N.preventDefault();
118
+ return;
119
+ }
120
+ S && S(N);
121
+ }, ...m, ...w, "aria-disabled": d || i, "aria-busy": i, ref: I, children: [
122
+ i && /* @__PURE__ */ c(L, { className: o.loader, aria: {
123
+ "aria-label": "Loading state"
124
+ } }),
125
+ /* @__PURE__ */ c("span", { className: B, children: f }),
126
+ (l || e) && /* @__PURE__ */ c(F, { name: l, theme: H, source: e, className: G, "aria-hidden": "true" })
127
+ ] });
128
+ return D ? /* @__PURE__ */ O(k, { placement: "top", tooltipOffset: 6, children: [
129
+ /* @__PURE__ */ c(k.Anchor, { children: v }),
130
+ /* @__PURE__ */ c(k.Content, { children: D })
131
+ ] }) : v;
132
+ });
133
+ so.displayName = "DSButton";
134
+ export {
135
+ bo as B,
136
+ so as D,
137
+ po as a,
138
+ ro as v
139
+ };
@@ -2,7 +2,7 @@
2
2
  import { jsxs as u, jsx as s } from "react/jsx-runtime";
3
3
  import { c as x } from "./index.DL9mof6u.js";
4
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";
5
+ import { u as A } from "./useBreakpoint.1txsny17.js";
6
6
  import "./index.D-sRdssb.js";
7
7
  import { D as _ } from "./Icon.CDLyB7Pv.js";
8
8
  import { D as L } from "./SystemFeedback.CjlARKki.js";
@@ -0,0 +1,74 @@
1
+ "use client";
2
+ import { jsx as w } from "react/jsx-runtime";
3
+ import { d as q } from "./index.D-sRdssb.js";
4
+ import { c as N } from "./index.DL9mof6u.js";
5
+ import { D as z } from "./Fieldset.Bk8W5h13.js";
6
+ import _ from "react";
7
+ import { g as v, r as I } from "./helpers.CexwVao7.js";
8
+ import { D as P } from "./Checkbox.D5X5T6Yg.js";
9
+ import '../assets/CheckboxGroup.Dd-Huo7x.css';const F = "ds-checkbox-group_root_12fot_1", H = "ds-checkbox-group_root--horizontal_12fot_9", O = "ds-checkbox-group_root--invalid_12fot_12", E = {
10
+ root: F,
11
+ rootHorizontal: H,
12
+ rootInvalid: O
13
+ }, V = ({
14
+ children: c,
15
+ description: e,
16
+ id: t,
17
+ legend: s,
18
+ systemFeedback: r
19
+ }) => {
20
+ if (!t && (e || r))
21
+ throw new Error(v("DSCheckboxGroup", 'A unique "id" prop is required when providing the description or systemFeedback property. Please add a unique "id" prop to the DSCheckboxGroup component.'));
22
+ if (!s)
23
+ throw new Error(v("DSCheckboxGroup", I("legend", "DSCheckboxGroup")));
24
+ if (!c)
25
+ throw new Error(v("DSCheckboxGroup", "The component requires DSCheckbox components to be explicitly set as its children. Ensure that you include individual DSCheckbox components within the DSCheckboxGroup to create a cohesive checkbox group."));
26
+ _.Children.forEach(c, (o) => {
27
+ if (!_.isValidElement(o) || // Object.keys(child.type)[1] !== '_payload' checks if the object is currently in a hydration phase
28
+ o.type !== P && Object.keys(o.type)[1] !== "_payload") {
29
+ const i = _.isValidElement(o) ? `Currently you are passing a child of type: ${JSON.stringify(o.type)}.` : "Currently you are passing an invalid React element.";
30
+ throw new Error(v("DSCheckboxGroup", `The component requires the children to be DSCheckbox elements. ${i} Ensure that you include individual DSCheckbox components within the DSCheckboxGroup to create a cohesive checkbox group.`));
31
+ }
32
+ });
33
+ }, J = (c) => {
34
+ const e = q.c(33);
35
+ let t, s, r, o, i, a, l, p, n, h, u, m, b;
36
+ e[0] !== c ? ({
37
+ children: t,
38
+ legend: i,
39
+ className: s,
40
+ description: r,
41
+ direction: h,
42
+ disabled: u,
43
+ id: o,
44
+ invalid: m,
45
+ popoverContent: a,
46
+ popoverInfoButtonProps: l,
47
+ required: b,
48
+ systemFeedback: n,
49
+ ...p
50
+ } = c, e[0] = c, e[1] = t, e[2] = s, e[3] = r, e[4] = o, e[5] = i, e[6] = a, e[7] = l, e[8] = p, e[9] = n, e[10] = h, e[11] = u, e[12] = m, e[13] = b) : (t = e[1], s = e[2], r = e[3], o = e[4], i = e[5], a = e[6], l = e[7], p = e[8], n = e[9], h = e[10], u = e[11], m = e[12], b = e[13]);
51
+ const G = h === void 0 ? "vertical" : h, C = u === void 0 ? !1 : u, f = m === void 0 ? !1 : m, D = b === void 0 ? !1 : b;
52
+ process.env.NODE_ENV !== "production" && V({
53
+ children: t,
54
+ description: r,
55
+ id: o,
56
+ legend: i,
57
+ systemFeedback: n
58
+ });
59
+ const y = G === "horizontal", S = f && !!n;
60
+ let x;
61
+ e[14] !== y || e[15] !== S ? (x = N(E.root, {
62
+ [E.rootHorizontal]: y,
63
+ [E.rootInvalid]: S
64
+ }), e[14] = y, e[15] = S, e[16] = x) : x = e[16];
65
+ const g = x;
66
+ let d;
67
+ e[17] !== t || e[18] !== g ? (d = /* @__PURE__ */ w("div", { className: g, children: t }), e[17] = t, e[18] = g, e[19] = d) : d = e[19];
68
+ let k;
69
+ return e[20] !== s || e[21] !== r || e[22] !== C || e[23] !== o || e[24] !== f || e[25] !== i || e[26] !== a || e[27] !== l || e[28] !== D || e[29] !== p || e[30] !== n || e[31] !== d ? (k = /* @__PURE__ */ w(z, { id: o, legend: i, className: s, description: r, disabled: C, required: D, invalid: f, systemFeedback: n, popoverContent: a, popoverInfoButtonProps: l, ...p, children: d }), e[20] = s, e[21] = r, e[22] = C, e[23] = o, e[24] = f, e[25] = i, e[26] = a, e[27] = l, e[28] = D, e[29] = p, e[30] = n, e[31] = d, e[32] = k) : k = e[32], k;
70
+ };
71
+ export {
72
+ J as D,
73
+ V as v
74
+ };
@@ -5,7 +5,7 @@ import { c as H } from "./index.DL9mof6u.js";
5
5
  import { forwardRef as U } from "react";
6
6
  import { t as M } from "./translate.nuU7uChI.js";
7
7
  import { D as x } from "./Icon.CDLyB7Pv.js";
8
- import { Tooltip as $ } from "../tooltip.QJe_bfO-.js";
8
+ import { Tooltip as $ } from "../tooltip.Cj3AvYgB.js";
9
9
  import { g as E, r as z } from "./helpers.CexwVao7.js";
10
10
  import { g as j } from "./AriaLiveRegions.utils.CybNIBSa.js";
11
11
  import '../assets/Chip.dxIYIjj7.css';const B = "ds-chip-group_chip_aidwn_1", W = "ds-chip-group_chip--small_aidwn_30", L = {