@stihl-design-system/components 1.0.0-RC.27 → 1.0.0-RC.29

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 (138) hide show
  1. package/{accordion.CBaDU14g.js → accordion.DkwtJy--.js} +2 -2
  2. package/{actionbutton.DEJsLxnQ.js → actionbutton.DHt1AL7U.js} +2 -2
  3. package/{actionlink.Cs6BTCA3.js → actionlink.BML1jenE.js} +2 -2
  4. package/assets/Accordion.BJb4TOG0.css +1 -0
  5. package/assets/CustomReactSelect.D0b1Hg1T.css +1 -0
  6. package/assets/{Fieldset.Cy5r0K7n.css → Fieldset.CW9dBvAo.css} +1 -1
  7. package/assets/InputFile.CCQxsulT.css +1 -0
  8. package/assets/InputPassword.124xVOiO.css +1 -0
  9. package/assets/InputSearch.Bkg-1urJ.css +1 -0
  10. package/assets/InputStepper.Dth4qZN_.css +1 -0
  11. package/assets/Select.CYACicZ3.css +1 -0
  12. package/assets/Slider.DzwSjDPV.css +1 -0
  13. package/assets/{systemfeedback.BX2zCzSL.css → SystemFeedback.RcrPepSZ.css} +1 -1
  14. package/assets/Textarea.BXWhXpXx.css +1 -0
  15. package/assets/input.ONbL-_C1.css +1 -0
  16. package/assets/radio.CgpGvYc-.css +1 -0
  17. package/{banner.CgQdUb_c.js → banner.B2YO054K.js} +1 -1
  18. package/{breadcrumb.x78HJy5P.js → breadcrumb.BS-S3zUI.js} +3 -3
  19. package/{button.BD_04tIG.js → button.CPilCCUI.js} +3 -3
  20. package/{buttonround.BT3OfowK.js → buttonround.C426mO4d.js} +2 -2
  21. package/{checkbox.BktYXQmJ.js → checkbox.BtlUvs0z.js} +3 -3
  22. package/{checkboxgroup.YK8H0YoX.js → checkboxgroup.C5NgyyQF.js} +2 -2
  23. package/{chip.BKtNbt4y.js → chip.tVIG1ysH.js} +2 -2
  24. package/{chipgroup.BWpqUzXF.js → chipgroup.CjIK0Z0x.js} +1 -1
  25. package/chunks/Accordion.C5V5IcM-.js +170 -0
  26. package/chunks/ActionButton.CzaWZGPt.js +165 -0
  27. package/chunks/ActionLink.BlhqDEtq.js +138 -0
  28. package/chunks/{Breadcrumb.B7g30dIO.js → Breadcrumb.BGzwzvh8.js} +2 -2
  29. package/chunks/{Button.CC0qEsuR.js → Button.B7xF1E19.js} +2 -2
  30. package/chunks/{Checkbox.BIQAKBVy.js → Checkbox.DxV7-F5W.js} +14 -14
  31. package/chunks/{CheckboxGroup.DHzpgOWp.js → CheckboxGroup.Dy_6tiGk.js} +2 -2
  32. package/chunks/{Chip.DifLxHH7.js → Chip.31UfPwQF.js} +1 -1
  33. package/chunks/{CustomReactSelect.BPnzhvw1.js → CustomReactSelect.iE5iTdez.js} +380 -379
  34. package/chunks/{Dialog.BuEEJ199.js → Dialog.B_2pKRnd.js} +1 -1
  35. package/chunks/{Drawer.BXUGmpJI.js → Drawer.HFlBTcqN.js} +1 -1
  36. package/chunks/Fieldset.CjIfmN_5.js +74 -0
  37. package/chunks/Header.BSvyYrIV.js +368 -0
  38. package/chunks/Icon.DGTYCv63.js +231 -0
  39. package/chunks/{InputFile.vkkg5Pab.js → InputFile.DvOatDzg.js} +59 -59
  40. package/chunks/InputPassword.DC2POUc1.js +136 -0
  41. package/chunks/{InputSearch.aIbUXVQU.js → InputSearch.B0aCuPRZ.js} +38 -38
  42. package/chunks/InputStepper.B_ZjgY_f.js +263 -0
  43. package/chunks/{LinkButton.DmXVHeyZ.js → LinkButton.DdTspmJz.js} +1 -1
  44. package/chunks/{NavigationTabList.IQM074Vb.js → NavigationTabList.dYFYTmWv.js} +1 -1
  45. package/chunks/{NavigationTabs.BofhX8bD.js → NavigationTabs.ClpVGcl0.js} +1 -1
  46. package/chunks/{Notification.B-3dPVUE.js → Notification.DIdIhGTQ.js} +2 -2
  47. package/chunks/{RadioGroup.c7YYJdUe.js → RadioGroup.peTeMK45.js} +2 -2
  48. package/chunks/Select.BDHLJ2ma.js +162 -0
  49. package/chunks/Slider.kyVr7BLk.js +292 -0
  50. package/chunks/SystemFeedback.B9f67mjJ.js +38 -0
  51. package/chunks/{Tabs.Bl4K3Kjn.js → Tabs.CkVL8Jw8.js} +1 -1
  52. package/chunks/Textarea.ORkJUx-S.js +163 -0
  53. package/chunks/{Toast.BHz0vlGz.js → Toast.DHo4pLH3.js} +2 -2
  54. package/chunks/caret-down.CupuwAF6.js +10 -0
  55. package/chunks/caret-right.DKtu4PQe.js +10 -0
  56. package/chunks/collapse.Dvv3mgkv.js +10 -0
  57. package/combobox.Bk2ycofh.js +60 -0
  58. package/components/Accordion/Accordion.utils.d.ts +3 -1
  59. package/components/ActionButton/ActionButton.d.ts +5 -5
  60. package/components/ActionLink/ActionLink.d.ts +5 -5
  61. package/components/Combobox/Combobox.d.ts +4 -0
  62. package/components/Combobox/CustomReactSelect/CustomReactSelect.d.ts +1 -1
  63. package/components/Header/Header.d.ts +1 -1
  64. package/components/Radio/Radio.d.ts +0 -6
  65. package/components/SystemFeedback/SystemFeedback.d.ts +13 -5
  66. package/components/SystemFeedback/SystemFeedback.utils.d.ts +4 -7
  67. package/components/TopBar/TopBar.d.ts +1 -1
  68. package/{customreactselect.Bu1i8wkh.js → customreactselect.Hnch9LGg.js} +4 -4
  69. package/{dialog.CGsUCqhR.js → dialog.7sWoqGwL.js} +2 -2
  70. package/{drawer.BcAo4TO0.js → drawer.DsF4KIPn.js} +2 -2
  71. package/{fieldset.DM9ELUJa.js → fieldset.DUFUMcT-.js} +2 -2
  72. package/{filelist.Cj9U-Jx8.js → filelist.nunJKxkv.js} +7 -7
  73. package/{flag.BHaAfp6B.js → flag.D_iN8iD6.js} +1 -1
  74. package/{floatingactionbutton.DSZXUHB_.js → floatingactionbutton.DOH2k0gv.js} +2 -2
  75. package/{header.WhQHSuB1.js → header.Z4Oxj_xL.js} +1 -1
  76. package/{icon.DwfGhFCd.js → icon.vMQcEBnH.js} +1 -1
  77. package/index.d.ts +2 -0
  78. package/index.es.js +175 -170
  79. package/input.BKHOY118.js +203 -0
  80. package/{inputfile.Cmkxf4Vq.js → inputfile.DK8759wV.js} +5 -5
  81. package/{inputpassword.CaJBCMA0.js → inputpassword.rV_ZZw5F.js} +3 -3
  82. package/{inputsearch.B06DhYzo.js → inputsearch.CmhakTpa.js} +3 -3
  83. package/{inputstepper.DNY7nzP8.js → inputstepper.5olvh4tk.js} +3 -3
  84. package/{link.DGuYGfh2.js → link.D_FjTyoZ.js} +2 -2
  85. package/{linkbutton.B3q0B_yb.js → linkbutton.D2C4vykc.js} +2 -2
  86. package/{navigationtablist.CS9yEGdP.js → navigationtablist.CVjh1k-b.js} +2 -2
  87. package/{navigationtabs.DQ1kE-h4.js → navigationtabs.BGfi9AG2.js} +2 -2
  88. package/{notification.D8BDaU5x.js → notification.Dn-FZWEL.js} +3 -3
  89. package/{optioncheckbox.CEEPAq0u.js → optioncheckbox.D97W3zeW.js} +1 -1
  90. package/package.json +1 -1
  91. package/partials/index.js +30 -24
  92. package/partials/lib/partials.d.ts +1 -1
  93. package/radio.7_N_alaS.js +126 -0
  94. package/{radiogroup.BRjwP01C.js → radiogroup.J8WpEEo8.js} +3 -3
  95. package/{scroller.CCA6kFR6.js → scroller.BiRLQg__.js} +1 -1
  96. package/{select.3zE96eWc.js → select.DIzGPVx3.js} +3 -3
  97. package/{skiptocontent.D1UkPmhD.js → skiptocontent._F-d8y5b.js} +1 -1
  98. package/{slider.CTCf7Xdm.js → slider.DuJK0RdB.js} +2 -2
  99. package/{spinner.CeGt8DxU.js → spinner.Dht6FspZ.js} +1 -1
  100. package/styles/scss/ds/index.scss +1 -0
  101. package/styles/scss/ds/lib/ds-internal/_index.scss +1 -0
  102. package/styles/scss/ds/lib/ds-internal/_input.scss +187 -0
  103. package/styles/scss/ds/lib/input.scss +26 -0
  104. package/{switch.CtULjgZq.js → switch.B37S4vfP.js} +2 -2
  105. package/systemfeedback.C_2PhwKe.js +10 -0
  106. package/{tablist.Dzwe0_J4.js → tablist.g_Nwu6GA.js} +3 -3
  107. package/{tabs.yudjJk9d.js → tabs.oh9-wHPp.js} +2 -2
  108. package/{textarea.B_3fPtmd.js → textarea.dQ12-oYB.js} +2 -2
  109. package/{toast.Bhpwj1NF.js → toast.sMNbfKxi.js} +3 -3
  110. package/{toastmanager.BHk65ynQ.js → toastmanager.CVamaS5T.js} +1 -1
  111. package/{topbar.2b8fjmA4.js → topbar.Bccms0xZ.js} +1 -1
  112. package/types/icon-types.d.ts +1 -1
  113. package/assets/Accordion.DOcfZwq8.css +0 -1
  114. package/assets/CustomReactSelect.B9f_KYFg.css +0 -1
  115. package/assets/InputFile.Dqjz53mb.css +0 -1
  116. package/assets/InputPassword.BuVQ9dRy.css +0 -1
  117. package/assets/InputSearch.Dwtb3Mhw.css +0 -1
  118. package/assets/InputStepper.CBt99L83.css +0 -1
  119. package/assets/Select.CghDnBUQ.css +0 -1
  120. package/assets/Slider.C8i4U4iT.css +0 -1
  121. package/assets/Textarea.BgtH-TTe.css +0 -1
  122. package/assets/input.DFwunFjw.css +0 -1
  123. package/assets/radio.BCB51D_y.css +0 -1
  124. package/chunks/Accordion.eVOD7J_8.js +0 -154
  125. package/chunks/ActionButton.Ck1rGqgm.js +0 -165
  126. package/chunks/ActionLink.DnUNjoAT.js +0 -138
  127. package/chunks/Fieldset.BX46NuLh.js +0 -74
  128. package/chunks/Header.Djs1adPW.js +0 -361
  129. package/chunks/Icon.C0161Glk.js +0 -231
  130. package/chunks/InputPassword.D42uUEGy.js +0 -136
  131. package/chunks/InputStepper.DFEdUWm7.js +0 -263
  132. package/chunks/Select.B_EHpk22.js +0 -162
  133. package/chunks/Slider.DMSwmGwD.js +0 -292
  134. package/chunks/Textarea.Ce26v6ht.js +0 -163
  135. package/combobox.AaK6QjRl.js +0 -58
  136. package/input.DhxUW3zc.js +0 -203
  137. package/radio.Be4pFOLf.js +0 -134
  138. package/systemfeedback.CLQCbTF6.js +0 -44
@@ -0,0 +1,165 @@
1
+ "use client";
2
+ import { jsxs as ut, jsx as u, Fragment as It } from "react/jsx-runtime";
3
+ import { d as Nt } from "./index.CgTHIF3K.js";
4
+ import { c as T } from "./index.CEyLAtio.js";
5
+ import { forwardRef as Wt } from "react";
6
+ import { D as ft } from "./Icon.DGTYCv63.js";
7
+ import { NumberIndicator as mt } from "../numberindicator.Ddf3ESi7.js";
8
+ import { g as A } from "./helpers.BbWkXTr3.js";
9
+ import '../assets/ActionButton.Ewi0i1hW.css';const gt = "ds-action-button_root_16ush_1", wt = "ds-action-button_root--indent-level-1_16ush_72", Tt = "ds-action-button_root--active_16ush_75", At = "ds-action-button_root--active--with-marker_16ush_78", St = "ds-action-button_root--icon--top_16ush_81", Pt = "ds-action-button_root--stretched_16ush_106", Ct = "ds-action-button_active-marker_16ush_111", Dt = "ds-action-button_active-marker--with-indent_16ush_123", Ot = "ds-action-button_icon-wrapper_16ush_127", Bt = "ds-action-button_icon-wrapper--x-large_16ush_130", kt = "ds-action-button_icon-wrapper--with-number-indicator_16ush_133", Lt = "ds-action-button_icon-wrapper--with-number-indicator--with-value_16ush_141", xt = "ds-action-button_label_16ush_145", Et = "ds-action-button_label--bold_16ush_156", Mt = "ds-action-button_label--active_16ush_167", Ut = "ds-action-button_label--icon-top_16ush_178", zt = "ds-action-button_number-indicator_16ush_201", Rt = "ds-action-button_label-wrapper_16ush_205", Vt = "ds-action-button_label-wrapper--icon-top_16ush_210", yt = "ds-action-button_chevron_16ush_214", Ht = "ds-action-button_chevron--icon-position-top_16ush_229", Xt = "ds-action-button_chevron--up_16ush_235", jt = "ds-action-button_chevron--right_16ush_246", Ft = "ds-action-button_chevron--left_16ush_257", o = {
10
+ root: gt,
11
+ rootIndentLevel1: wt,
12
+ rootActive: Tt,
13
+ rootActiveWithMarker: At,
14
+ rootIconTop: St,
15
+ rootStretched: Pt,
16
+ activeMarker: Ct,
17
+ activeMarkerWithIndent: Dt,
18
+ iconWrapper: Ot,
19
+ iconWrapperXLarge: Bt,
20
+ iconWrapperWithNumberIndicator: kt,
21
+ iconWrapperWithNumberIndicatorWithValue: Lt,
22
+ label: xt,
23
+ labelBold: Et,
24
+ labelActive: Mt,
25
+ labelIconTop: Ut,
26
+ numberIndicator: zt,
27
+ labelWrapper: Rt,
28
+ labelWrapperIconTop: Vt,
29
+ chevron: yt,
30
+ chevronIconPositionTop: Ht,
31
+ chevronUp: Xt,
32
+ chevronRight: jt,
33
+ chevronLeft: Ft
34
+ }, oo = ["left", "top"], eo = ["large", "x-large"], no = [0, 1], io = ["normal", "bold"], ro = ["up", "down", "right", "left"], Gt = ({
35
+ iconName: _,
36
+ iconSize: v,
37
+ iconSource: t,
38
+ iconPosition: l,
39
+ indentLevel: r,
40
+ stretched: p,
41
+ weight: h
42
+ }) => {
43
+ if (_ && !t && v === "x-large" && console.warn(A("DSActionButton", '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.')), l === "top") {
44
+ if (!_ && !t)
45
+ throw new Error(A("DSActionButton", '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.'));
46
+ v === "x-large" && console.warn(A("DSActionButton", 'An "iconSize" prop set to "x-large" has no effect when "iconPosition" is set to "top". Please remove the "iconSize" prop.')), h === "bold" && console.warn(A("DSActionButton", 'A "weight" prop set to "bold" with "iconPosition" set to "top" has no effect. Please remove the "weight" prop.')), r === 1 && console.warn(A("DSActionButton", 'An "indentLevel" prop set to "1" with "iconPosition" set to "top" has no effect. Please remove the "indentLevel" prop.')), p && console.warn(A("DSActionButton", 'A "stretched" prop set to "true" with "iconPosition" set to "top" has no effect. Please remove the "stretched" prop.'));
47
+ }
48
+ }, Zt = Wt((_, v) => {
49
+ const t = Nt.c(83);
50
+ let l, r, p, h, c, s, n, d, b, S, P, C, D, O, B, k;
51
+ t[0] !== _ ? ({
52
+ children: p,
53
+ aria: l,
54
+ chevronDirection: r,
55
+ className: h,
56
+ disabled: S,
57
+ iconName: c,
58
+ iconPosition: P,
59
+ iconSize: C,
60
+ iconSource: s,
61
+ indentLevel: D,
62
+ isActive: O,
63
+ numberIndicatorValue: n,
64
+ stretched: B,
65
+ weight: k,
66
+ onClick: d,
67
+ ...b
68
+ } = _, t[0] = _, t[1] = l, t[2] = r, t[3] = p, t[4] = h, t[5] = c, t[6] = s, t[7] = n, t[8] = d, t[9] = b, t[10] = S, t[11] = P, t[12] = C, t[13] = D, t[14] = O, t[15] = B, t[16] = k) : (l = t[1], r = t[2], p = t[3], h = t[4], c = t[5], s = t[6], n = t[7], d = t[8], b = t[9], S = t[10], P = t[11], C = t[12], D = t[13], O = t[14], B = t[15], k = t[16]);
69
+ const i = S === void 0 ? !1 : S, e = P === void 0 ? "left" : P, L = C === void 0 ? "large" : C, H = D === void 0 ? 0 : D, f = O === void 0 ? !1 : O, _t = B === void 0 ? !1 : B, vt = k === void 0 ? "normal" : k;
70
+ process.env.NODE_ENV !== "production" && Gt({
71
+ iconName: c,
72
+ iconSize: L,
73
+ iconSource: s,
74
+ iconPosition: e,
75
+ indentLevel: H,
76
+ stretched: _t,
77
+ weight: vt
78
+ });
79
+ const a = (n == null ? void 0 : n.trim()) === "", X = e === "top", j = H === 1, F = f && !i, G = f && !i && e === "left", Z = _t === !0 && e === "left";
80
+ let x;
81
+ t[17] !== h || t[18] !== F || t[19] !== G || t[20] !== Z || t[21] !== X || t[22] !== j ? (x = T(o.root, h, {
82
+ [o.rootIconTop]: X,
83
+ [o.rootIndentLevel1]: j,
84
+ [o.rootActive]: F,
85
+ [o.rootActiveWithMarker]: G,
86
+ [o.rootStretched]: Z
87
+ }), t[17] = h, t[18] = F, t[19] = G, t[20] = Z, t[21] = X, t[22] = j, t[23] = x) : x = t[23];
88
+ const $ = x, q = H === 1;
89
+ let E;
90
+ t[24] !== q ? (E = T(o.activeMarker, {
91
+ [o.activeMarkerWithIndent]: q
92
+ }), t[24] = q, t[25] = E) : E = t[25];
93
+ const J = E, K = f && !i, Q = vt === "bold", Y = e === "top";
94
+ let M;
95
+ t[26] !== K || t[27] !== Q || t[28] !== Y ? (M = T(o.label, {
96
+ [o.labelActive]: K,
97
+ [o.labelBold]: Q,
98
+ [o.labelIconTop]: Y
99
+ }), t[26] = K, t[27] = Q, t[28] = Y, t[29] = M) : M = t[29];
100
+ const tt = M, ot = e === "top";
101
+ let U;
102
+ t[30] !== ot ? (U = T(o.labelWrapper, {
103
+ [o.labelWrapperIconTop]: ot
104
+ }), t[30] = ot, t[31] = U) : U = t[31];
105
+ const et = U, nt = e === "top", it = r === "up", rt = r === "right", ct = r === "left";
106
+ let z;
107
+ t[32] !== nt || t[33] !== it || t[34] !== rt || t[35] !== ct ? (z = T(o.chevron, {
108
+ [o.chevronIconPositionTop]: nt,
109
+ [o.chevronUp]: it,
110
+ [o.chevronRight]: rt,
111
+ [o.chevronLeft]: ct
112
+ }), t[32] = nt, t[33] = it, t[34] = rt, t[35] = ct, t[36] = z) : z = t[36];
113
+ const st = z, at = L === "x-large", lt = (c || s) && (n || a), pt = (c || s) && !a;
114
+ let R;
115
+ t[37] !== at || t[38] !== lt || t[39] !== pt ? (R = T(o.iconWrapper, {
116
+ [o.iconWrapperXLarge]: at,
117
+ [o.iconWrapperWithNumberIndicator]: lt,
118
+ [o.iconWrapperWithNumberIndicatorWithValue]: pt
119
+ }), t[37] = at, t[38] = lt, t[39] = pt, t[40] = R) : R = t[40];
120
+ const ht = R;
121
+ let V;
122
+ t[41] !== i || t[42] !== d ? (V = (bt) => {
123
+ if (i) {
124
+ bt.preventDefault();
125
+ return;
126
+ }
127
+ d && d(bt);
128
+ }, t[41] = i, t[42] = d, t[43] = V) : V = t[43];
129
+ const dt = V;
130
+ let m;
131
+ t[44] !== J || t[45] !== e || t[46] !== f ? (m = f && e === "left" && /* @__PURE__ */ u("div", { className: J }), t[44] = J, t[45] = e, t[46] = f, t[47] = m) : m = t[47];
132
+ let I;
133
+ t[48] !== i || t[49] !== c || t[50] !== e || t[51] !== L || t[52] !== s || t[53] !== ht || t[54] !== a || t[55] !== n ? (I = (c || s) && /* @__PURE__ */ u(It, { children: /* @__PURE__ */ ut("span", { className: ht, children: [
134
+ /* @__PURE__ */ u(ft, { name: c, theme: "light", source: s, "aria-hidden": "true", size: c || e === "top" ? "large" : L }),
135
+ !i && (e === "left" && a || e === "top" && (n || a)) && /* @__PURE__ */ u(mt, { variant: "highlight", label: n })
136
+ ] }) }), t[48] = i, t[49] = c, t[50] = e, t[51] = L, t[52] = s, t[53] = ht, t[54] = a, t[55] = n, t[56] = I) : I = t[56];
137
+ let N;
138
+ t[57] !== p || t[58] !== tt ? (N = /* @__PURE__ */ u("span", { className: tt, children: p }), t[57] = p, t[58] = tt, t[59] = N) : N = t[59];
139
+ let W;
140
+ t[60] !== st || t[61] !== r ? (W = r && /* @__PURE__ */ u(ft, { name: "chevron-down", theme: "light", "aria-hidden": "true", className: st }), t[60] = st, t[61] = r, t[62] = W) : W = t[62];
141
+ let g;
142
+ t[63] !== et || t[64] !== N || t[65] !== W ? (g = /* @__PURE__ */ ut("div", { className: et, children: [
143
+ N,
144
+ W
145
+ ] }), t[63] = et, t[64] = N, t[65] = W, t[66] = g) : g = t[66];
146
+ let w;
147
+ t[67] !== i || t[68] !== e || t[69] !== a || t[70] !== n ? (w = e === "left" && !i && n && !a && /* @__PURE__ */ u(mt, { variant: "default", label: n, className: o.numberIndicator }), t[67] = i, t[68] = e, t[69] = a, t[70] = n, t[71] = w) : w = t[71];
148
+ let y;
149
+ return t[72] !== l || t[73] !== i || t[74] !== dt || t[75] !== v || t[76] !== b || t[77] !== $ || t[78] !== m || t[79] !== I || t[80] !== g || t[81] !== w ? (y = /* @__PURE__ */ ut("button", { className: $, type: "button", onClick: dt, ...l, ...b, "aria-disabled": i, ref: v, children: [
150
+ m,
151
+ I,
152
+ g,
153
+ w
154
+ ] }), t[72] = l, t[73] = i, t[74] = dt, t[75] = v, t[76] = b, t[77] = $, t[78] = m, t[79] = I, t[80] = g, t[81] = w, t[82] = y) : y = t[82], y;
155
+ });
156
+ Zt.displayName = "DSActionButton";
157
+ export {
158
+ oo as A,
159
+ Zt as D,
160
+ eo as a,
161
+ no as b,
162
+ io as c,
163
+ ro as d,
164
+ Gt as v
165
+ };
@@ -0,0 +1,138 @@
1
+ "use client";
2
+ import { jsxs as rt, jsx as w, Fragment as at } from "react/jsx-runtime";
3
+ import { d as st } from "./index.CgTHIF3K.js";
4
+ import { c as y } from "./index.CEyLAtio.js";
5
+ import { D as lt } from "./Icon.DGTYCv63.js";
6
+ import { forwardRef as pt } from "react";
7
+ import { NumberIndicator as ct } from "../numberindicator.Ddf3ESi7.js";
8
+ import { g as W } from "./helpers.BbWkXTr3.js";
9
+ import '../assets/ActionLink.BdPEvuGm.css';const dt = "ds-action-link_root_14712_1", ht = "ds-action-link_root--indent-level-1_14712_72", _t = "ds-action-link_root--active_14712_75", vt = "ds-action-link_root--active--with-marker_14712_78", mt = "ds-action-link_root--icon--top_14712_81", ft = "ds-action-link_root--stretched_14712_106", kt = "ds-action-link_active-marker_14712_111", bt = "ds-action-link_active-marker--with-indent_14712_123", It = "ds-action-link_icon-wrapper_14712_127", Nt = "ds-action-link_icon-wrapper--x-large_14712_130", At = "ds-action-link_icon-wrapper--with-number-indicator_14712_133", gt = "ds-action-link_icon-wrapper--with-number-indicator--with-value_14712_141", ut = "ds-action-link_label_14712_145", wt = "ds-action-link_label--bold_14712_156", Wt = "ds-action-link_label--active_14712_167", Lt = "ds-action-link_label--icon-top_14712_178", St = "ds-action-link_number-indicator_14712_201", o = {
10
+ root: dt,
11
+ rootIndentLevel1: ht,
12
+ rootActive: _t,
13
+ rootActiveWithMarker: vt,
14
+ rootIconTop: mt,
15
+ rootStretched: ft,
16
+ activeMarker: kt,
17
+ activeMarkerWithIndent: bt,
18
+ iconWrapper: It,
19
+ iconWrapperXLarge: Nt,
20
+ iconWrapperWithNumberIndicator: At,
21
+ iconWrapperWithNumberIndicatorWithValue: gt,
22
+ label: ut,
23
+ labelBold: wt,
24
+ labelActive: Wt,
25
+ labelIconTop: Lt,
26
+ numberIndicator: St
27
+ }, Kt = ["left", "top"], Vt = ["large", "x-large"], yt = [0, 1], Bt = ["normal", "bold"], Pt = ({
28
+ iconName: _,
29
+ iconSize: v,
30
+ iconSource: t,
31
+ iconPosition: a,
32
+ indentLevel: s,
33
+ stretched: l,
34
+ weight: p
35
+ }) => {
36
+ if (_ && !t && v === "x-large" && console.warn(W("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.')), a === "top") {
37
+ if (!_ && !t)
38
+ throw new Error(W("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.'));
39
+ v === "x-large" && console.warn(W("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(W("DSActionLink", 'A "weight" prop set to "bold" with "iconPosition" set to "top" has no effect. Please remove the "weight" prop.')), s === 1 && console.warn(W("DSActionLink", 'An "indentLevel" prop set to "1" with "iconPosition" set to "top" has no effect. Please remove the "indentLevel" prop.')), l && console.warn(W("DSActionLink", 'A "stretched" prop set to "true" with "iconPosition" set to "top" has no effect. Please remove the "stretched" prop.'));
40
+ }
41
+ }, Dt = pt((_, v) => {
42
+ const t = st.c(73);
43
+ let a, s, l, p, h, n, r, i, m, f, k, L, S, P, D, T, x, M;
44
+ t[0] !== _ ? ({
45
+ children: s,
46
+ aria: a,
47
+ className: l,
48
+ download: p,
49
+ href: h,
50
+ iconName: n,
51
+ iconPosition: L,
52
+ iconSize: S,
53
+ iconSource: r,
54
+ indentLevel: P,
55
+ isActive: D,
56
+ numberIndicatorValue: i,
57
+ referrerPolicy: m,
58
+ rel: f,
59
+ stretched: T,
60
+ target: x,
61
+ weight: M,
62
+ ...k
63
+ } = _, t[0] = _, t[1] = a, t[2] = s, t[3] = l, t[4] = p, t[5] = h, t[6] = n, t[7] = r, t[8] = i, t[9] = m, t[10] = f, t[11] = k, t[12] = L, t[13] = S, t[14] = P, t[15] = D, t[16] = T, t[17] = x, t[18] = M) : (a = t[1], s = t[2], l = t[3], p = t[4], h = t[5], n = t[6], r = t[7], i = t[8], m = t[9], f = t[10], k = t[11], L = t[12], S = t[13], P = t[14], D = t[15], T = t[16], x = t[17], M = t[18]);
64
+ const e = L === void 0 ? "left" : L, C = S === void 0 ? "large" : S, B = P === void 0 ? 0 : P, d = D === void 0 ? !1 : D, it = T === void 0 ? !1 : T, X = x === void 0 ? "_self" : x, nt = M === void 0 ? "normal" : M;
65
+ process.env.NODE_ENV !== "production" && Pt({
66
+ iconName: n,
67
+ iconSize: C,
68
+ iconSource: r,
69
+ iconPosition: e,
70
+ indentLevel: B,
71
+ stretched: it,
72
+ weight: nt
73
+ });
74
+ const c = (i == null ? void 0 : i.trim()) === "", j = e === "top", H = B === 1, F = d && e === "left", G = it === !0 && e === "left";
75
+ let E;
76
+ t[19] !== l || t[20] !== d || t[21] !== F || t[22] !== G || t[23] !== j || t[24] !== H ? (E = y(o.root, l, {
77
+ [o.rootIconTop]: j,
78
+ [o.rootIndentLevel1]: H,
79
+ [o.rootActive]: d,
80
+ [o.rootActiveWithMarker]: F,
81
+ [o.rootStretched]: G
82
+ }), t[19] = l, t[20] = d, t[21] = F, t[22] = G, t[23] = j, t[24] = H, t[25] = E) : E = t[25];
83
+ const R = E, Z = B === 1;
84
+ let O;
85
+ t[26] !== Z ? (O = y(o.activeMarker, {
86
+ [o.activeMarkerWithIndent]: Z
87
+ }), t[26] = Z, t[27] = O) : O = t[27];
88
+ const $ = O, q = d && e === "left", J = nt === "bold", Q = e === "top";
89
+ let z;
90
+ t[28] !== q || t[29] !== J || t[30] !== Q ? (z = y(o.label, {
91
+ [o.labelActive]: q,
92
+ [o.labelBold]: J,
93
+ [o.labelIconTop]: Q
94
+ }), t[28] = q, t[29] = J, t[30] = Q, t[31] = z) : z = t[31];
95
+ const U = z, Y = C === "x-large", tt = (n || r) && (i || c), et = (n || r) && !c;
96
+ let K;
97
+ t[32] !== Y || t[33] !== tt || t[34] !== et ? (K = y(o.iconWrapper, {
98
+ [o.iconWrapperXLarge]: Y,
99
+ [o.iconWrapperWithNumberIndicator]: tt,
100
+ [o.iconWrapperWithNumberIndicatorWithValue]: et
101
+ }), t[32] = Y, t[33] = tt, t[34] = et, t[35] = K) : K = t[35];
102
+ const ot = K, b = h === void 0 ? "span" : "a";
103
+ let I;
104
+ t[36] !== b || t[37] !== p || t[38] !== h || t[39] !== m || t[40] !== f || t[41] !== X ? (I = b === "a" && {
105
+ href: h,
106
+ target: X,
107
+ rel: f,
108
+ referrerPolicy: m,
109
+ download: p
110
+ }, t[36] = b, t[37] = p, t[38] = h, t[39] = m, t[40] = f, t[41] = X, t[42] = I) : I = t[42];
111
+ let N;
112
+ t[43] !== $ || t[44] !== e || t[45] !== d ? (N = d && e === "left" && /* @__PURE__ */ w("div", { className: $ }), t[43] = $, t[44] = e, t[45] = d, t[46] = N) : N = t[46];
113
+ let A;
114
+ t[47] !== n || t[48] !== e || t[49] !== C || t[50] !== r || t[51] !== ot || t[52] !== c || t[53] !== i ? (A = (n || r) && /* @__PURE__ */ w(at, { children: /* @__PURE__ */ rt("span", { className: ot, children: [
115
+ /* @__PURE__ */ w(lt, { name: n, theme: "light", source: r, "aria-hidden": "true", size: n || e === "top" ? "large" : C }),
116
+ (e === "left" && c || e === "top" && (i || c)) && /* @__PURE__ */ w(ct, { variant: "highlight", label: i })
117
+ ] }) }), t[47] = n, t[48] = e, t[49] = C, t[50] = r, t[51] = ot, t[52] = c, t[53] = i, t[54] = A) : A = t[54];
118
+ let g;
119
+ t[55] !== s || t[56] !== U ? (g = /* @__PURE__ */ w("span", { className: U, children: s }), t[55] = s, t[56] = U, t[57] = g) : g = t[57];
120
+ let u;
121
+ t[58] !== e || t[59] !== c || t[60] !== i ? (u = e === "left" && i && !c && /* @__PURE__ */ w(ct, { variant: "default", label: i, className: o.numberIndicator }), t[58] = e, t[59] = c, t[60] = i, t[61] = u) : u = t[61];
122
+ let V;
123
+ return t[62] !== b || t[63] !== a || t[64] !== v || t[65] !== k || t[66] !== R || t[67] !== I || t[68] !== N || t[69] !== A || t[70] !== g || t[71] !== u ? (V = /* @__PURE__ */ rt(b, { className: R, ...I, ...a, ...k, ref: v, children: [
124
+ N,
125
+ A,
126
+ g,
127
+ u
128
+ ] }), t[62] = b, t[63] = a, t[64] = v, t[65] = k, t[66] = R, t[67] = I, t[68] = N, t[69] = A, t[70] = g, t[71] = u, t[72] = V) : V = t[72], V;
129
+ });
130
+ Dt.displayName = "DSActionLink";
131
+ export {
132
+ Kt as A,
133
+ Dt as D,
134
+ Vt as a,
135
+ yt as b,
136
+ Bt as c,
137
+ Pt as v
138
+ };
@@ -3,8 +3,8 @@ import { jsx as w, jsxs as V } from "react/jsx-runtime";
3
3
  import { d as q } from "./index.CgTHIF3K.js";
4
4
  import { c as F } from "./index.CEyLAtio.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.CC0qEsuR.js";
7
- import { DSLink as X } from "../link.DGuYGfh2.js";
6
+ import { D as K } from "./Button.B7xF1E19.js";
7
+ import { DSLink as X } from "../link.D_FjTyoZ.js";
8
8
  import { g as d, r as z } from "./helpers.BbWkXTr3.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,
@@ -4,8 +4,8 @@ import { d as ho } from "./index.CgTHIF3K.js";
4
4
  import { c as io } from "./index.CEyLAtio.js";
5
5
  import { forwardRef as uo } from "react";
6
6
  import { u as lo } from "./useBreakpoint.CMOR9ZOB.js";
7
- import { D as _o } from "./Icon.C0161Glk.js";
8
- import { DSSpinner as go } from "../spinner.CeGt8DxU.js";
7
+ import { D as _o } from "./Icon.DGTYCv63.js";
8
+ import { DSSpinner as go } from "../spinner.Dht6FspZ.js";
9
9
  import { g as ro } from "./helpers.BbWkXTr3.js";
10
10
  import '../assets/Button.Dw8H5nFS.css';const mo = "ds-button_root_94r67_1", fo = "ds-button_root--highlight_94r67_75", bo = "ds-button_root--dark-highlight_94r67_75", vo = "ds-button_root--filled_94r67_151", ko = "ds-button_root--outline_94r67_179", po = "ds-button_root--ghost_94r67_206", Do = "ds-button_root--ghost-flush_94r67_231", No = "ds-button_root--small_94r67_237", So = "ds-button_root--navigation_94r67_317", Oo = "ds-button_root--dark-filled_94r67_393", Fo = "ds-button_root--dark-outline_94r67_450", yo = "ds-button_root--dark-ghost_94r67_506", Go = "ds-button_root--dark-ghost-flush_94r67_560", Ho = "ds-button_root--icon-left_94r67_635", Io = "ds-button_root--icon-only_94r67_638", Bo = "ds-button_root--icon-only-small_94r67_647", Lo = "ds-button_icon--navigation_94r67_663", wo = "ds-button_icon--hidden_94r67_670", Co = "ds-button_label--hidden_94r67_674", To = "ds-button_label--loading_94r67_686", Eo = "ds-button_loader_94r67_690", t = {
11
11
  root: mo,
@@ -4,8 +4,8 @@ import { c as p } from "./index.CEyLAtio.js";
4
4
  import { forwardRef as j, useRef as B, useState as H, useEffect as V, useCallback as $ } from "react";
5
5
  import { u as A } from "./useBreakpoint.CMOR9ZOB.js";
6
6
  import "./index.CgTHIF3K.js";
7
- import { D as x } from "./Icon.C0161Glk.js";
8
- import { DSSystemFeedback as L } from "../systemfeedback.CLQCbTF6.js";
7
+ import { D as x } from "./Icon.DGTYCv63.js";
8
+ import { D as L } from "./SystemFeedback.B9f67mjJ.js";
9
9
  import { g as C } from "./helpers.BbWkXTr3.js";
10
10
  import '../assets/Checkbox.BKHQN_tu.css';const O = "ds-checkbox_root_1tuqo_1", U = "ds-checkbox_root--disabled_1tuqo_21", z = "ds-checkbox_checkbox_1tuqo_25", F = "ds-checkbox_icon-check_1tuqo_41", J = "ds-checkbox_icon-minus_1tuqo_42", K = "ds-checkbox_checkbox--invalid_1tuqo_66", Q = "ds-checkbox_label--hidden_1tuqo_71", R = "ds-checkbox_input_1tuqo_84", T = "ds-checkbox_label_1tuqo_71", W = "ds-checkbox_feedback_1tuqo_198", e = {
11
11
  root: O,
@@ -34,51 +34,51 @@ import '../assets/Checkbox.BKHQN_tu.css';const O = "ds-checkbox_root_1tuqo_1", U
34
34
  checked: n,
35
35
  className: b,
36
36
  defaultChecked: D = !1,
37
- disabled: i = !1,
37
+ disabled: r = !1,
38
38
  hideLabel: q = !1,
39
39
  id: h,
40
40
  indeterminate: m = !1,
41
41
  invalid: s = !1,
42
- systemFeedback: r,
42
+ systemFeedback: i,
43
43
  onChange: u,
44
- ...y
44
+ ...N
45
45
  }, l) => {
46
46
  process.env.NODE_ENV !== "production" && X({
47
47
  label: c,
48
48
  id: h,
49
49
  invalid: s,
50
- systemFeedback: r
50
+ systemFeedback: i
51
51
  });
52
- const d = B(null), [N, S] = H(D), v = A(q);
52
+ const d = B(null), [S, y] = H(D), v = A(q);
53
53
  V(() => {
54
54
  d && d.current && (d.current.indeterminate = m);
55
55
  }, [m]);
56
- const k = n !== void 0, w = k ? n : N, _ = `${h}-feedback`, g = [s && r && _, s && a && `${a}-feedback`].filter(Boolean).join(" ") || void 0, E = p(e.root, {
57
- [e.rootDisabled]: i
56
+ const k = n !== void 0, w = k ? n : S, _ = `${h}-feedback`, g = [s && i && _, s && a && `${a}-feedback`].filter(Boolean).join(" ") || void 0, E = p(e.root, {
57
+ [e.rootDisabled]: r
58
58
  }), I = p(e.label, {
59
59
  // hide label only visually to keep them available for assistive technologies
60
60
  [e.labelHidden]: v
61
61
  }), M = p(e.checkbox, {
62
62
  [e.checkboxInvalid]: s
63
63
  }), P = $((o) => {
64
- if (i) {
64
+ if (r) {
65
65
  o.preventDefault();
66
66
  return;
67
67
  }
68
- k || S(o.target.checked), u && u(o);
69
- }, [i, k, u]);
68
+ k || y(o.target.checked), u && u(o);
69
+ }, [r, k, u]);
70
70
  return /* @__PURE__ */ f("div", { className: b, children: [
71
71
  /* @__PURE__ */ f("label", { className: E, children: [
72
72
  /* @__PURE__ */ t("input", { id: h, type: "checkbox", className: e.input, ref: (o) => {
73
73
  typeof l == "function" ? l(o) : l !== null && (l.current = o), d.current = o;
74
- }, ...y, checked: w, disabled: i, "aria-label": c, "aria-describedby": g, "aria-invalid": s, onChange: P }),
74
+ }, ...N, checked: w, disabled: r, "aria-label": c, "aria-describedby": g, "aria-invalid": s, onChange: P }),
75
75
  /* @__PURE__ */ f("div", { className: M, children: [
76
76
  /* @__PURE__ */ t(x, { name: "check", className: e.iconCheck, "aria-hidden": "true" }),
77
77
  /* @__PURE__ */ t(x, { name: "minus", className: e.iconMinus, "aria-hidden": "true" })
78
78
  ] }),
79
79
  /* @__PURE__ */ t("span", { className: I, children: c })
80
80
  ] }),
81
- s && r && /* @__PURE__ */ t(L, { id: _, type: "invalid", className: e.feedback, message: r })
81
+ s && i && /* @__PURE__ */ t(L, { id: _, variant: "error", className: e.feedback, message: i })
82
82
  ] });
83
83
  });
84
84
  Y.displayName = "DSCheckbox";
@@ -2,10 +2,10 @@
2
2
  import { jsx as _ } from "react/jsx-runtime";
3
3
  import { d as w } from "./index.CgTHIF3K.js";
4
4
  import { c as G } from "./index.CEyLAtio.js";
5
- import { D as q } from "./Fieldset.BX46NuLh.js";
5
+ import { D as q } from "./Fieldset.CjIfmN_5.js";
6
6
  import S from "react";
7
7
  import { g as x, r as N } from "./helpers.BbWkXTr3.js";
8
- import { D as z } from "./Checkbox.BIQAKBVy.js";
8
+ import { D as z } from "./Checkbox.DxV7-F5W.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,
@@ -4,7 +4,7 @@ import { d as B } from "./index.CgTHIF3K.js";
4
4
  import { c as W } from "./index.CEyLAtio.js";
5
5
  import { forwardRef as Z } from "react";
6
6
  import { t as J } from "./translate.nuU7uChI.js";
7
- import { D as H } from "./Icon.C0161Glk.js";
7
+ import { D as H } from "./Icon.DGTYCv63.js";
8
8
  import { g as x, r as U } from "./helpers.BbWkXTr3.js";
9
9
  import { g as K } from "./AriaLiveRegions.utils.Cb327d_2.js";
10
10
  import '../assets/Chip.dxIYIjj7.css';const Q = "ds-chip-group_chip_aidwn_1", V = "ds-chip-group_chip--small_aidwn_30", M = {