@stihl-design-system/components 1.0.0-RC.44 → 1.0.0-RC.45

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.fQnuIgvf.js → accordion.MzP6R77w.js} +2 -2
  2. package/{actionbutton.CrKiuo82.js → actionbutton.G5W7UVFl.js} +2 -2
  3. package/{actioncard.WFXhVqOa.js → actioncard.BwquHtM_.js} +1 -1
  4. package/{actionlink.Df17YKFt.js → actionlink.DquMiuMX.js} +2 -2
  5. package/assets/ActionCard.BG8w8xUC.css +1 -0
  6. package/assets/Dialog.BKwWy1g2.css +1 -0
  7. package/assets/Drawer.BU-fi5Hk.css +1 -0
  8. package/assets/LinkButton.CxJvjEY5.css +1 -0
  9. package/assets/LinkCard.DkQoQJxx.css +1 -0
  10. package/assets/NavigationTabList.DYjNT2Di.css +1 -0
  11. package/assets/Pagination.DZ1yCAMR.css +1 -0
  12. package/assets/buttonround.CMrJRIeW.css +1 -0
  13. package/assets/link.Dcsio57m.css +1 -0
  14. package/{banner.Zxe9epVx.js → banner.XeTbC8mq.js} +1 -1
  15. package/{breadcrumb.FfS9gDhB.js → breadcrumb.BOz3Hst7.js} +3 -3
  16. package/{button.Bq_b-jF3.js → button.I5z8VEXa.js} +5 -4
  17. package/buttonround.BX_81KOF.js +101 -0
  18. package/{checkbox.DiIxW8xI.js → checkbox.CcEypLD0.js} +3 -3
  19. package/{checkboxgroup.CN0WCDIo.js → checkboxgroup.15fvJ2SQ.js} +2 -2
  20. package/{chip.C9GLR8lU.js → chip.DZP-2LVl.js} +2 -2
  21. package/{chipgroup.DEMaFBAV.js → chipgroup.Ckvmby1Q.js} +1 -1
  22. package/chunks/{Accordion.CHgxTFzp.js → Accordion.Drq0YoeJ.js} +1 -1
  23. package/chunks/{ActionButton.CLeOd9rU.js → ActionButton.CCI5IUFy.js} +1 -1
  24. package/chunks/ActionCard.DJSGkwVG.js +227 -0
  25. package/chunks/{ActionLink.BsBKNYu5.js → ActionLink.BrJB7T0A.js} +1 -1
  26. package/chunks/{Breadcrumb.Dz3JQ2Vx.js → Breadcrumb.CNABp45n.js} +2 -2
  27. package/chunks/Button.D8U6Bs7T.js +160 -0
  28. package/chunks/{Checkbox.B3g2P15v.js → Checkbox.91fwuJ-0.js} +2 -2
  29. package/chunks/{CheckboxGroup.Bg9WSL5B.js → CheckboxGroup.DlZcoyo_.js} +2 -2
  30. package/chunks/{Chip.CfxdI4_r.js → Chip.wHEr-saO.js} +1 -1
  31. package/chunks/{CustomReactSelect.DuAr_i4b.js → CustomReactSelect.DHwRSrva.js} +4 -4
  32. package/chunks/Dialog.DNrQmu4n.js +102 -0
  33. package/chunks/Drawer.DaiiAoa8.js +107 -0
  34. package/chunks/{Fieldset.DdYeI2CZ.js → Fieldset.BB4NftRU.js} +2 -2
  35. package/chunks/{Icon.BoywkLCM.js → Icon.DCdL1Vnp.js} +1 -1
  36. package/chunks/{InputFile.CR8ucopi.js → InputFile.C-m2Hp0n.js} +5 -5
  37. package/chunks/{InputNumber.BFZFmfye.js → InputNumber.DOrbq0Hf.js} +3 -3
  38. package/chunks/{InputPassword.C311ncrv.js → InputPassword.BrQLXv_R.js} +3 -3
  39. package/chunks/{InputSearch.BxDshauv.js → InputSearch.DsT4ESbN.js} +3 -3
  40. package/chunks/LinkButton.CNLxmfVF.js +150 -0
  41. package/chunks/LinkCard.CsK31XXo.js +197 -0
  42. package/chunks/NavigationTabList.9r9_yTmR.js +68 -0
  43. package/chunks/{NavigationTabs.B57dlMSM.js → NavigationTabs.CCFAm8-N.js} +1 -1
  44. package/chunks/{Notification.C6oDyXgu.js → Notification.BlyUQinT.js} +2 -2
  45. package/chunks/Pagination.Dl8CU-yY.js +247 -0
  46. package/chunks/{Popover.BmpyqKuQ.js → Popover.BBT_kVGM.js} +1 -1
  47. package/chunks/{RadioGroup.DkBkatv7.js → RadioGroup.BWe0nG6N.js} +1 -1
  48. package/chunks/{Select.Tt9kT7fQ.js → Select.fgSB8mUs.js} +3 -3
  49. package/chunks/Slider.8H5oki70.js +307 -0
  50. package/chunks/{Stepper.BnrFN6cJ.js → Stepper.UvgTZCCb.js} +2 -2
  51. package/chunks/{SystemFeedback.D4aWwoC8.js → SystemFeedback.CZhoSxrC.js} +1 -1
  52. package/chunks/{Tabs.kCft3oEd.js → Tabs.DtfpA30P.js} +1 -1
  53. package/chunks/{Textarea.DDcx_Pdr.js → Textarea.B-Ii-p0C.js} +2 -2
  54. package/chunks/{Toast.DddHXsvZ.js → Toast.B7_VJE8V.js} +2 -2
  55. package/chunks/heart-filled.CmO7eae5.js +10 -0
  56. package/{combobox.B-BIvd5K.js → combobox.C2DBgO0t.js} +1 -1
  57. package/components/Accordion/Accordion.d.ts +2 -2
  58. package/components/ActionCard/ActionCard.d.ts +11 -4
  59. package/components/Banner/Banner.d.ts +1 -1
  60. package/components/Breadcrumb/Breadcrumb.d.ts +4 -1
  61. package/components/ButtonRound/ButtonRound.d.ts +14 -7
  62. package/components/ButtonRound/ButtonRound.utils.d.ts +3 -1
  63. package/components/FloatingActionButton/FloatingActionButton.d.ts +8 -5
  64. package/components/LinkCard/LinkCard.d.ts +13 -3
  65. package/components/MegaMenu/MegaMenu.d.ts +1 -1
  66. package/components/Pagination/Pagination.d.ts +51 -0
  67. package/components/Pagination/Pagination.responsive.test.d.ts +1 -0
  68. package/components/Pagination/Pagination.test.d.ts +1 -0
  69. package/components/Pagination/Pagination.utils.d.ts +59 -0
  70. package/components/Pagination/Pagination.utils.test.d.ts +1 -0
  71. package/components/Tooltip/Tooltip.d.ts +1 -1
  72. package/{customreactselect.B7p1pKdD.js → customreactselect.Dle5ReLL.js} +5 -5
  73. package/{dialog.BqLpjUB7.js → dialog.Br6FeS8M.js} +2 -2
  74. package/{drawer.Cd-nCvZc.js → drawer.Dyjx6fy3.js} +2 -2
  75. package/{fieldset.CZZsUwkL.js → fieldset.D6sz1Wn2.js} +3 -3
  76. package/{filelist.BhBVr4dj.js → filelist.0CUvj_hg.js} +4 -4
  77. package/{filepreview.BTWX71Xh.js → filepreview.DfYhhi7K.js} +1 -1
  78. package/{flag.B0fg5_Ly.js → flag.B61fRxrP.js} +1 -1
  79. package/{floatingactionbutton.C97oLCcd.js → floatingactionbutton.C-V33tkz.js} +2 -2
  80. package/{icon.DfDzyo8I.js → icon.pia3k1bW.js} +1 -1
  81. package/index.d.ts +7 -0
  82. package/index.es.js +231 -218
  83. package/{input.DIJfEjWf.js → input.CNC3QIQR.js} +4 -4
  84. package/{inputfile.h6E4CGVo.js → inputfile.CN9IBCM5.js} +6 -6
  85. package/{inputnumber.mm_Irbl8.js → inputnumber.DIccXoqM.js} +4 -4
  86. package/{inputpassword.C2lyKMkw.js → inputpassword.BWIKqwcK.js} +4 -4
  87. package/{inputsearch.BjkPPx6s.js → inputsearch.BQVA1P3t.js} +4 -4
  88. package/link.DFt6ae6h.js +81 -0
  89. package/{linkbutton.Brcp-b5r.js → linkbutton.DSzhpA7y.js} +3 -3
  90. package/{linkcard.COvLNYk7.js → linkcard.Azap4eIT.js} +4 -4
  91. package/{navigationtablist.BBeiLPse.js → navigationtablist.B0QFyk6c.js} +2 -2
  92. package/{navigationtabs.DzPsYusL.js → navigationtabs.drPy054A.js} +2 -2
  93. package/{notification.CliKozt4.js → notification.DT8ZQWy-.js} +3 -3
  94. package/{optioncheckbox.BOfgK3U_.js → optioncheckbox.BO9lhnF3.js} +1 -1
  95. package/package.json +1 -1
  96. package/pagination.DqHkkeMR.js +14 -0
  97. package/pagination.d.ts +2 -0
  98. package/partials/index.js +24 -18
  99. package/partials/lib/partials.d.ts +1 -1
  100. package/{popover.ChNhlQVw.js → popover.HlTN79us.js} +2 -2
  101. package/product-card-example-5.webp +0 -0
  102. package/product-card-example-6.webp +0 -0
  103. package/product-card-example-7.webp +0 -0
  104. package/{progressindicator.DIzH179H.js → progressindicator.DdaSeRcV.js} +1 -1
  105. package/{radiogroup.DL5scGbv.js → radiogroup.CtkyrkVj.js} +2 -2
  106. package/{scroller.DwhsKecL.js → scroller.BZy0pXNL.js} +1 -1
  107. package/{select.mbkkptY-.js → select.BSRwHZl9.js} +4 -4
  108. package/{skiptocontent.CAXMZlhM.js → skiptocontent.D-qA8MV6.js} +1 -1
  109. package/{slider.DvrNqhCC.js → slider.jgy1gPS-.js} +3 -3
  110. package/{spinner.CJmvEaCu.js → spinner.CioXs_gr.js} +1 -1
  111. package/{step.B-afaoZI.js → step.C8Um5fyx.js} +2 -2
  112. package/{stepper.B0euF2om.js → stepper.ChHYe3pv.js} +3 -3
  113. package/{switch.BadzT87Z.js → switch.BWByas7M.js} +2 -2
  114. package/{systemfeedback.BfGF0ENk.js → systemfeedback.Dr99Uwoi.js} +2 -2
  115. package/{tablist.CLKzkkTc.js → tablist.DuaTT6zK.js} +3 -3
  116. package/{tabs.ClFPZyaL.js → tabs.BGmxVK_3.js} +2 -2
  117. package/{textarea.B06ZGH_0.js → textarea.BoxcJ2tx.js} +3 -3
  118. package/{toast.uarxRSg4.js → toast.BJs2VWI4.js} +3 -3
  119. package/{toastmanager.ClwydHnH.js → toastmanager.Bh9XSJty.js} +1 -1
  120. package/types/icon-types.d.ts +1 -1
  121. package/assets/ActionCard.C85bSGRa.css +0 -1
  122. package/assets/Dialog.DyiHUgTp.css +0 -1
  123. package/assets/Drawer.UugEajR2.css +0 -1
  124. package/assets/LinkButton.BEbmxP7h.css +0 -1
  125. package/assets/LinkCard.z1Yjue7-.css +0 -1
  126. package/assets/NavigationTabList.CzAiHz7G.css +0 -1
  127. package/assets/buttonround.BTC-HthI.css +0 -1
  128. package/assets/link.BemYqm4d.css +0 -1
  129. package/buttonround.C2Tbq4wh.js +0 -96
  130. package/chunks/ActionCard.oi3u27DL.js +0 -242
  131. package/chunks/Button.P9uWeVnl.js +0 -139
  132. package/chunks/Dialog.C8pnDioL.js +0 -102
  133. package/chunks/Drawer.wTQvINDy.js +0 -107
  134. package/chunks/LinkButton.D20xLcuG.js +0 -140
  135. package/chunks/LinkCard.CXJLlBi2.js +0 -193
  136. package/chunks/NavigationTabList.CUFceGFf.js +0 -68
  137. package/chunks/Slider.XqqBxGnd.js +0 -306
  138. package/link.Cej-vl_K.js +0 -81
@@ -0,0 +1,227 @@
1
+ "use client";
2
+ import { jsxs as K, Fragment as oe, jsx as C } from "react/jsx-runtime";
3
+ import { d as D } from "./index.cKLI89Eg.js";
4
+ import { c as v } from "./index.DQOqod3i.js";
5
+ import le, { isValidElement as te, useRef as re, useEffect as ne, cloneElement as se } from "react";
6
+ import { g as ee } from "./helpers.CexwVao7.js";
7
+ import '../assets/ActionCard.BG8w8xUC.css';const ie = "ds-action-card_root_19077_1", ce = "ds-action-card_root--elevated_19077_24", de = "ds-action-card_root--clickable_19077_27", me = "ds-action-card_primary-action_19077_36", pe = "ds-action-card_media-wrapper_19077_50", fe = "ds-action-card_header_19077_50", ye = "ds-action-card_footer_19077_50", _e = "ds-action-card_supplementary_19077_50", ue = "ds-action-card_root--horizontal_19077_59", he = "ds-action-card_content_19077_78", Ne = "ds-action-card_content--padding-small_19077_83", be = "ds-action-card_root--horizontal-has-supplementary_19077_91", ge = "ds-action-card_root--padding-small_19077_94", Se = "ds-action-card_primary-action-label_19077_174", d = {
8
+ root: ie,
9
+ rootElevated: ce,
10
+ rootClickable: de,
11
+ primaryAction: me,
12
+ mediaWrapper: pe,
13
+ header: fe,
14
+ footer: ye,
15
+ supplementary: _e,
16
+ rootHorizontal: ue,
17
+ content: he,
18
+ contentPaddingSmall: Ne,
19
+ rootHorizontalHasSupplementary: be,
20
+ rootPaddingSmall: ge,
21
+ primaryActionLabel: Se
22
+ }, Ce = ({
23
+ aria: i,
24
+ cardElement: e
25
+ }) => {
26
+ const t = i?.["aria-labelledby"], a = i?.["aria-label"];
27
+ if (e) {
28
+ if (!t && !a)
29
+ throw new Error(ee("DSActionCard", "The 'aria' prop is required and must include either 'aria-labelledby' or 'aria-label'."));
30
+ if (t && !e.querySelector("#" + t))
31
+ throw new Error(ee("DSActionCard", `The provided 'aria-labelledby' value '${t}' does not match any element ID within the card.`));
32
+ }
33
+ }, P = (i, e) => {
34
+ const t = [];
35
+ return le.Children.forEach(i, (a) => {
36
+ if (!te(a))
37
+ return;
38
+ const l = a.type, o = e, r = o.displayName || o.name, m = l.displayName || l.name;
39
+ (a.type === e || m === r) && t.push(a);
40
+ }), t;
41
+ }, E = (i) => {
42
+ const e = D.c(47);
43
+ let t, a, l, o, r, m, c, p;
44
+ e[0] !== i ? ({
45
+ aria: t,
46
+ className: l,
47
+ classNameContentWrapper: o,
48
+ children: a,
49
+ orientation: m,
50
+ padding: c,
51
+ variant: p,
52
+ ...r
53
+ } = i, e[0] = i, e[1] = t, e[2] = a, e[3] = l, e[4] = o, e[5] = r, e[6] = m, e[7] = c, e[8] = p) : (t = e[1], a = e[2], l = e[3], o = e[4], r = e[5], m = e[6], c = e[7], p = e[8]);
54
+ const h = m === void 0 ? "vertical" : m, f = c === void 0 ? "medium" : c, b = p === void 0 ? "outlined" : p, N = re(null);
55
+ let y;
56
+ e[9] !== a ? (y = P(a, Q), e[9] = a, e[10] = y) : y = e[10];
57
+ const g = y;
58
+ let _;
59
+ e[11] !== a ? (_ = P(a, U), e[11] = a, e[12] = _) : _ = e[12];
60
+ const u = _;
61
+ let n;
62
+ e[13] !== a ? (n = P(a, Y), e[13] = a, e[14] = n) : n = e[14];
63
+ const s = n;
64
+ let S;
65
+ e[15] !== a ? (S = P(a, X), e[15] = a, e[16] = S) : S = e[16];
66
+ const H = S;
67
+ let z;
68
+ e[17] !== a ? (z = P(a, Z), e[17] = a, e[18] = z) : z = e[18];
69
+ const k = z, F = k.length > 0, M = h === "horizontal", W = f === "small", R = h === "horizontal" && s.length > 0, j = b === "elevated";
70
+ let L;
71
+ e[19] !== l || e[20] !== F || e[21] !== W || e[22] !== R || e[23] !== j || e[24] !== M ? (L = v(d.root, l, {
72
+ [d.rootHorizontal]: M,
73
+ [d.rootPaddingSmall]: W,
74
+ [d.rootHorizontalHasSupplementary]: R,
75
+ [d.rootClickable]: F,
76
+ [d.rootElevated]: j
77
+ }), e[19] = l, e[20] = F, e[21] = W, e[22] = R, e[23] = j, e[24] = M, e[25] = L) : L = e[25];
78
+ const q = L, O = f === "small";
79
+ let w;
80
+ e[26] !== o || e[27] !== O ? (w = v(d.content, o, {
81
+ [d.contentPaddingSmall]: O
82
+ }), e[26] = o, e[27] = O, e[28] = w) : w = e[28];
83
+ const V = w;
84
+ let $;
85
+ e[29] !== t ? ($ = () => {
86
+ const ae = N.current;
87
+ process.env.NODE_ENV !== "production" && Ce({
88
+ aria: t,
89
+ cardElement: ae
90
+ });
91
+ }, e[29] = t, e[30] = $) : $ = e[30];
92
+ const B = t?.["aria-labelledby"], I = t?.["aria-label"];
93
+ let T;
94
+ e[31] !== B || e[32] !== I ? (T = [B, I], e[31] = B, e[32] = I, e[33] = T) : T = e[33], ne($, T);
95
+ const G = t?.["aria-labelledby"], J = t?.["aria-label"];
96
+ let A;
97
+ e[34] !== V || e[35] !== u || e[36] !== g ? (A = /* @__PURE__ */ K("div", { className: V, children: [
98
+ g,
99
+ u
100
+ ] }), e[34] = V, e[35] = u, e[36] = g, e[37] = A) : A = e[37];
101
+ let x;
102
+ return e[38] !== H || e[39] !== k || e[40] !== r || e[41] !== q || e[42] !== s || e[43] !== G || e[44] !== J || e[45] !== A ? (x = /* @__PURE__ */ K("article", { ...r, "aria-labelledby": G, "aria-label": J, ref: N, className: q, children: [
103
+ k,
104
+ A,
105
+ s,
106
+ H
107
+ ] }), e[38] = H, e[39] = k, e[40] = r, e[41] = q, e[42] = s, e[43] = G, e[44] = J, e[45] = A, e[46] = x) : x = e[46], x;
108
+ }, Q = (i) => {
109
+ const e = D.c(5), {
110
+ children: t,
111
+ className: a
112
+ } = i;
113
+ let l;
114
+ e[0] !== a ? (l = v(d.header, a) || void 0, e[0] = a, e[1] = l) : l = e[1];
115
+ const o = l;
116
+ let r;
117
+ return e[2] !== t || e[3] !== o ? (r = /* @__PURE__ */ C("header", { className: o, children: t }), e[2] = t, e[3] = o, e[4] = r) : r = e[4], r;
118
+ };
119
+ Q.displayName = "DSActionCard.Header";
120
+ const U = (i) => {
121
+ const e = D.c(5), {
122
+ children: t,
123
+ className: a
124
+ } = i;
125
+ let l;
126
+ e[0] !== a ? (l = v(d.footer, a) || void 0, e[0] = a, e[1] = l) : l = e[1];
127
+ const o = l;
128
+ let r;
129
+ return e[2] !== t || e[3] !== o ? (r = /* @__PURE__ */ C("footer", { className: o, children: t }), e[2] = t, e[3] = o, e[4] = r) : r = e[4], r;
130
+ };
131
+ U.displayName = "DSActionCard.Footer";
132
+ const X = (i) => {
133
+ const e = D.c(5), {
134
+ children: t,
135
+ className: a
136
+ } = i;
137
+ let l;
138
+ e[0] !== a ? (l = v(d.mediaWrapper, a) || void 0, e[0] = a, e[1] = l) : l = e[1];
139
+ const o = l;
140
+ let r;
141
+ return e[2] !== t || e[3] !== o ? (r = /* @__PURE__ */ C("div", { className: o, children: t }), e[2] = t, e[3] = o, e[4] = r) : r = e[4], r;
142
+ };
143
+ X.displayName = "DSActionCard.Media";
144
+ const Y = (i) => {
145
+ const e = D.c(5), {
146
+ children: t,
147
+ className: a
148
+ } = i;
149
+ let l;
150
+ e[0] !== a ? (l = v(d.supplementary, a) || void 0, e[0] = a, e[1] = l) : l = e[1];
151
+ const o = l;
152
+ let r;
153
+ return e[2] !== t || e[3] !== o ? (r = /* @__PURE__ */ C("div", { className: o, children: t }), e[2] = t, e[3] = o, e[4] = r) : r = e[4], r;
154
+ };
155
+ Y.displayName = "DSActionCard.Supplementary";
156
+ const Z = (i) => {
157
+ const e = D.c(56);
158
+ let t, a, l, o, r, m;
159
+ e[0] !== i ? ({
160
+ children: t,
161
+ className: a,
162
+ href: l,
163
+ linkComponent: o,
164
+ onClick: r,
165
+ ...m
166
+ } = i, e[0] = i, e[1] = t, e[2] = a, e[3] = l, e[4] = o, e[5] = r, e[6] = m) : (t = e[1], a = e[2], l = e[3], o = e[4], r = e[5], m = e[6]);
167
+ let c, p, h, f, b, N, y, g, _, u;
168
+ if (e[7] !== t || e[8] !== a || e[9] !== o || e[10] !== m) {
169
+ g = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
170
+ e: {
171
+ f = v(d.primaryAction, a) || void 0;
172
+ const n = m;
173
+ if (e[21] !== n ? ({
174
+ download: p,
175
+ hrefLang: h,
176
+ ping: b,
177
+ referrerPolicy: N,
178
+ rel: y,
179
+ target: _,
180
+ type: u,
181
+ ...c
182
+ } = n, e[21] = n, e[22] = c, e[23] = p, e[24] = h, e[25] = b, e[26] = N, e[27] = y, e[28] = _, e[29] = u) : (c = e[22], p = e[23], h = e[24], b = e[25], N = e[26], y = e[27], _ = e[28], u = e[29]), o && te(o)) {
183
+ let s;
184
+ e[30] !== t ? (s = /* @__PURE__ */ C("span", { className: d.primaryActionLabel, children: t }), e[30] = t, e[31] = s) : s = e[31];
185
+ let S;
186
+ e[32] !== o.props.children || e[33] !== s ? (S = /* @__PURE__ */ K(oe, { children: [
187
+ s,
188
+ o.props.children
189
+ ] }), e[32] = o.props.children, e[33] = s, e[34] = S) : S = e[34], g = se(o, {
190
+ ...o.props,
191
+ className: v(f, o.props.className),
192
+ children: S
193
+ });
194
+ break e;
195
+ }
196
+ }
197
+ e[7] = t, e[8] = a, e[9] = o, e[10] = m, e[11] = c, e[12] = p, e[13] = h, e[14] = f, e[15] = b, e[16] = N, e[17] = y, e[18] = g, e[19] = _, e[20] = u;
198
+ } else
199
+ c = e[11], p = e[12], h = e[13], f = e[14], b = e[15], N = e[16], y = e[17], g = e[18], _ = e[19], u = e[20];
200
+ if (g !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel"))
201
+ return g;
202
+ if (l) {
203
+ let n;
204
+ e[35] !== t ? (n = /* @__PURE__ */ C("span", { className: d.primaryActionLabel, children: t }), e[35] = t, e[36] = n) : n = e[36];
205
+ let s;
206
+ return e[37] !== c || e[38] !== p || e[39] !== l || e[40] !== h || e[41] !== f || e[42] !== b || e[43] !== N || e[44] !== y || e[45] !== n || e[46] !== _ || e[47] !== u ? (s = /* @__PURE__ */ C("a", { href: l, className: f, download: p, hrefLang: h, ping: b, referrerPolicy: N, rel: y, target: _, type: u, ...c, children: n }), e[37] = c, e[38] = p, e[39] = l, e[40] = h, e[41] = f, e[42] = b, e[43] = N, e[44] = y, e[45] = n, e[46] = _, e[47] = u, e[48] = s) : s = e[48], s;
207
+ }
208
+ if (r) {
209
+ let n;
210
+ e[49] !== t ? (n = /* @__PURE__ */ C("span", { className: d.primaryActionLabel, children: t }), e[49] = t, e[50] = n) : n = e[50];
211
+ let s;
212
+ return e[51] !== c || e[52] !== f || e[53] !== r || e[54] !== n ? (s = /* @__PURE__ */ C("button", { type: "button", className: f, onClick: r, ...c, children: n }), e[51] = c, e[52] = f, e[53] = r, e[54] = n, e[55] = s) : s = e[55], s;
213
+ }
214
+ return null;
215
+ };
216
+ Z.displayName = "DSActionCard.PrimaryAction";
217
+ E.Header = Q;
218
+ E.Footer = U;
219
+ E.Media = X;
220
+ E.PrimaryAction = Z;
221
+ E.Supplementary = Y;
222
+ E.displayName = "DSActionCard";
223
+ export {
224
+ E as D,
225
+ P as g,
226
+ Ce as v
227
+ };
@@ -3,7 +3,7 @@ import { jsxs as pt, jsx as b, Fragment as _t } from "react/jsx-runtime";
3
3
  import { d as mt } from "./index.cKLI89Eg.js";
4
4
  import { c as R } from "./index.DQOqod3i.js";
5
5
  import { forwardRef as vt } from "react";
6
- import { D as kt } from "./Icon.BoywkLCM.js";
6
+ import { D as kt } from "./Icon.DCdL1Vnp.js";
7
7
  import { NumberIndicator as bt } from "../numberindicator.ZGVRSmqf.js";
8
8
  import { Tooltip as dt } from "../tooltip.C6HKano9.js";
9
9
  import { g as m } from "./helpers.CexwVao7.js";
@@ -3,8 +3,8 @@ import { jsx as w, jsxs as V } from "react/jsx-runtime";
3
3
  import { d as q } from "./index.cKLI89Eg.js";
4
4
  import { c as F } from "./index.DQOqod3i.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.P9uWeVnl.js";
7
- import { DSLink as X } from "../link.Cej-vl_K.js";
6
+ import { D as K } from "./Button.D8U6Bs7T.js";
7
+ import { DSLink as X } from "../link.DFt6ae6h.js";
8
8
  import { g as d, r as z } from "./helpers.CexwVao7.js";
9
9
  import '../assets/Breadcrumb.BavNNzAA.css';const G = "ds-breadcrumb_root_1e9hu_1", H = "ds-breadcrumb_show-all-button_1e9hu_30", T = {
10
10
  root: G,
@@ -0,0 +1,160 @@
1
+ "use client";
2
+ import { jsxs as vt, jsx as T } from "react/jsx-runtime";
3
+ import { d as kt } from "./index.cKLI89Eg.js";
4
+ import { c as _t } from "./index.DQOqod3i.js";
5
+ import { forwardRef as St } from "react";
6
+ import { u as bt } from "./useBreakpoint.1txsny17.js";
7
+ import { D as Dt } from "./Icon.DCdL1Vnp.js";
8
+ import { DSSpinner as Nt } from "../spinner.CioXs_gr.js";
9
+ import { Tooltip as ft } from "../tooltip.C6HKano9.js";
10
+ import { g as p } from "./helpers.CexwVao7.js";
11
+ import '../assets/Button.C-UYIggc.css';const Ot = "ds-button_root_146u3_1", Ft = "ds-button_root--highlight_146u3_75", Lt = "ds-button_root--dark-highlight_146u3_75", wt = "ds-button_root--filled_146u3_151", It = "ds-button_root--outline_146u3_179", yt = "ds-button_root--ghost_146u3_206", Bt = "ds-button_root--ghost-flush_146u3_231", Ht = "ds-button_root--small_146u3_237", Gt = "ds-button_root--navigation_146u3_317", Tt = "ds-button_root--navigation--stretched_146u3_393", Pt = "ds-button_root--navigation--stretched--icon-left_146u3_396", Ct = "ds-button_root--dark-filled_146u3_399", Et = "ds-button_root--dark-outline_146u3_456", At = "ds-button_root--dark-ghost_146u3_512", xt = "ds-button_root--dark-ghost-flush_146u3_566", zt = "ds-button_root--stretched_146u3_641", Vt = "ds-button_root--icon-left_146u3_644", jt = "ds-button_root--icon-only_146u3_647", Rt = "ds-button_root--icon-only-small_146u3_656", Ut = "ds-button_icon--navigation_146u3_672", Mt = "ds-button_icon--hidden_146u3_679", Zt = "ds-button_label--hidden_146u3_683", $t = "ds-button_label--loading_146u3_695", qt = "ds-button_loader_146u3_699", e = {
12
+ root: Ot,
13
+ rootHighlight: Ft,
14
+ rootDarkHighlight: Lt,
15
+ rootFilled: wt,
16
+ rootOutline: It,
17
+ rootGhost: yt,
18
+ rootGhostFlush: Bt,
19
+ rootSmall: Ht,
20
+ rootNavigation: Gt,
21
+ rootNavigationStretched: Tt,
22
+ rootNavigationStretchedIconLeft: Pt,
23
+ rootDarkFilled: Ct,
24
+ rootDarkOutline: Et,
25
+ rootDarkGhost: At,
26
+ rootDarkGhostFlush: xt,
27
+ rootStretched: zt,
28
+ rootIconLeft: Vt,
29
+ rootIconOnly: jt,
30
+ rootIconOnlySmall: Rt,
31
+ iconNavigation: Ut,
32
+ iconHidden: Mt,
33
+ labelHidden: Zt,
34
+ labelLoading: $t,
35
+ loader: qt
36
+ }, so = ["medium", "small"], lo = ["highlight", "filled", "outline", "ghost", "navigation"], Jt = ({
37
+ hideLabel: k,
38
+ iconName: S,
39
+ iconSource: t,
40
+ isFlush: l,
41
+ size: c,
42
+ stretched: r,
43
+ theme: s,
44
+ variant: i
45
+ }) => {
46
+ if (i === "navigation" && (c === "small" && console.warn(p("DSButton", 'A "size" prop should not be used in combination with variant="navigation". Please remove the "size" prop.')), s === "dark"))
47
+ throw new Error(p("DSButton", 'A DSButton with variant="navigation" does not support theme="dark". Please remove the "theme" prop.'));
48
+ i !== "ghost" && l ? console.warn(p("DSButton", 'The "isFlush" prop only has an effect when used with variant="ghost". Please remove the "isFlush" prop or set variant="ghost".')) : i === "ghost" && l && r && console.warn(p("DSButton", 'The "stretched" and "isFlush" props do not have an effect when used together. Please remove one of them.')), k && (!S && !t && console.warn(p("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.')), r && console.warn(p("DSButton", 'The "stretched" and "hideLabel" props do not have an effect when used together. Please remove one of them.')));
49
+ }, Kt = St((k, S) => {
50
+ const t = kt.c(77);
51
+ let l, c, r, s, i, h, g, D, N, O, F, L, w, I, y, B, u;
52
+ t[0] !== k ? ({
53
+ children: c,
54
+ aria: l,
55
+ className: r,
56
+ disabled: D,
57
+ hideLabel: N,
58
+ iconName: s,
59
+ iconPosition: O,
60
+ iconSource: i,
61
+ isFlush: F,
62
+ loading: L,
63
+ size: w,
64
+ stretched: I,
65
+ theme: y,
66
+ tooltip: u,
67
+ variant: B,
68
+ onClick: h,
69
+ ...g
70
+ } = k, t[0] = k, t[1] = l, t[2] = c, t[3] = r, t[4] = s, t[5] = i, t[6] = h, t[7] = g, t[8] = D, t[9] = N, t[10] = O, t[11] = F, t[12] = L, t[13] = w, t[14] = I, t[15] = y, t[16] = B, t[17] = u) : (l = t[1], c = t[2], r = t[3], s = t[4], i = t[5], h = t[6], g = t[7], D = t[8], N = t[9], O = t[10], F = t[11], L = t[12], w = t[13], I = t[14], y = t[15], B = t[16], u = t[17]);
71
+ const P = D === void 0 ? !1 : D, pt = N === void 0 ? !1 : N, U = O === void 0 ? "left" : O, H = F === void 0 ? !1 : F, n = L === void 0 ? !1 : L, C = w === void 0 ? "medium" : w, mt = I === void 0 ? !1 : I, a = y === void 0 ? "light" : y, o = B === void 0 ? "filled" : B, _ = bt(pt), G = bt(mt);
72
+ process.env.NODE_ENV !== "production" && Jt({
73
+ hideLabel: _,
74
+ iconName: s,
75
+ iconSource: i,
76
+ isFlush: H,
77
+ size: C,
78
+ stretched: mt,
79
+ theme: a,
80
+ variant: o
81
+ });
82
+ const M = o === "filled", Z = o === "highlight", $ = o === "outline", q = o === "ghost" && H !== !0, J = o === "navigation", K = o === "navigation" && G && U === "right", Q = o === "navigation" && G && U === "left", W = o === "ghost" && H === !0, X = a === "dark" && o === "filled", Y = a === "dark" && o === "highlight", tt = a === "dark" && o === "outline", ot = a === "dark" && o === "ghost" && H !== !0, et = a === "dark" && o === "ghost" && H === !0, nt = C === "small" || o === "navigation", it = U === "left", st = _ && C === "medium" && o !== "navigation", lt = _ && C === "small" && o !== "navigation";
83
+ let E;
84
+ t[18] !== r || t[19] !== G || t[20] !== M || t[21] !== Z || t[22] !== $ || t[23] !== q || t[24] !== J || t[25] !== K || t[26] !== Q || t[27] !== W || t[28] !== X || t[29] !== Y || t[30] !== tt || t[31] !== ot || t[32] !== et || t[33] !== nt || t[34] !== it || t[35] !== st || t[36] !== lt ? (E = _t(e.root, r, {
85
+ [e.rootFilled]: M,
86
+ [e.rootHighlight]: Z,
87
+ [e.rootOutline]: $,
88
+ [e.rootGhost]: q,
89
+ [e.rootNavigation]: J,
90
+ [e.rootNavigationStretched]: K,
91
+ [e.rootNavigationStretchedIconLeft]: Q,
92
+ [e.rootGhostFlush]: W,
93
+ [e.rootDarkFilled]: X,
94
+ [e.rootDarkHighlight]: Y,
95
+ [e.rootDarkOutline]: tt,
96
+ [e.rootDarkGhost]: ot,
97
+ [e.rootDarkGhostFlush]: et,
98
+ [e.rootSmall]: nt,
99
+ [e.rootStretched]: G,
100
+ [e.rootIconLeft]: it,
101
+ [e.rootIconOnly]: st,
102
+ [e.rootIconOnlySmall]: lt
103
+ }), t[18] = r, t[19] = G, t[20] = M, t[21] = Z, t[22] = $, t[23] = q, t[24] = J, t[25] = K, t[26] = Q, t[27] = W, t[28] = X, t[29] = Y, t[30] = tt, t[31] = ot, t[32] = et, t[33] = nt, t[34] = it, t[35] = st, t[36] = lt, t[37] = E) : E = t[37];
104
+ const rt = E;
105
+ let A;
106
+ t[38] !== n || t[39] !== _ || t[40] !== o ? (A = _t({
107
+ [e.labelHidden]: _ && o !== "navigation",
108
+ [e.labelLoading]: n
109
+ }) || void 0, t[38] = n, t[39] = _, t[40] = o, t[41] = A) : A = t[41];
110
+ const at = A, dt = o === "navigation";
111
+ let x;
112
+ t[42] !== n || t[43] !== dt ? (x = _t({
113
+ [e.iconNavigation]: dt,
114
+ [e.iconHidden]: n
115
+ }), t[42] = n, t[43] = dt, t[44] = x) : x = t[44];
116
+ const ct = x, ht = a === "light" && o === "filled" || a === "dark" && o === "outline" || a === "dark" && o === "ghost" ? "dark" : "light";
117
+ let z;
118
+ t[45] !== P || t[46] !== n || t[47] !== h ? (z = (d) => {
119
+ if (P || n) {
120
+ d.preventDefault();
121
+ return;
122
+ }
123
+ h && h(d);
124
+ }, t[45] = P, t[46] = n, t[47] = h, t[48] = z) : z = t[48];
125
+ const ut = z, gt = P || n;
126
+ let f;
127
+ t[49] !== n ? (f = n && /* @__PURE__ */ T(Nt, { className: e.loader, aria: {
128
+ "aria-label": "Loading state"
129
+ } }), t[49] = n, t[50] = f) : f = t[50];
130
+ let m;
131
+ t[51] !== c || t[52] !== at ? (m = /* @__PURE__ */ T("span", { className: at, children: c }), t[51] = c, t[52] = at, t[53] = m) : m = t[53];
132
+ let v;
133
+ t[54] !== ct || t[55] !== s || t[56] !== i || t[57] !== ht ? (v = (s || i) && /* @__PURE__ */ T(Dt, { name: s, theme: ht, source: i, className: ct, "aria-hidden": "true" }), t[54] = ct, t[55] = s, t[56] = i, t[57] = ht, t[58] = v) : v = t[58];
134
+ let V;
135
+ t[59] !== l || t[60] !== ut || t[61] !== n || t[62] !== S || t[63] !== g || t[64] !== rt || t[65] !== gt || t[66] !== f || t[67] !== m || t[68] !== v ? (V = /* @__PURE__ */ vt("button", { className: rt, type: "submit", onClick: ut, ...l, ...g, "aria-disabled": gt, "aria-busy": n, ref: S, children: [
136
+ f,
137
+ m,
138
+ v
139
+ ] }), t[59] = l, t[60] = ut, t[61] = n, t[62] = S, t[63] = g, t[64] = rt, t[65] = gt, t[66] = f, t[67] = m, t[68] = v, t[69] = V) : V = t[69];
140
+ const j = V;
141
+ if (u) {
142
+ let d;
143
+ t[70] !== j ? (d = /* @__PURE__ */ T(ft.Anchor, { children: j }), t[70] = j, t[71] = d) : d = t[71];
144
+ let b;
145
+ t[72] !== u ? (b = /* @__PURE__ */ T(ft.Content, { children: u }), t[72] = u, t[73] = b) : b = t[73];
146
+ let R;
147
+ return t[74] !== d || t[75] !== b ? (R = /* @__PURE__ */ vt(ft, { placement: "top", tooltipOffset: 6, children: [
148
+ d,
149
+ b
150
+ ] }), t[74] = d, t[75] = b, t[76] = R) : R = t[76], R;
151
+ }
152
+ return j;
153
+ });
154
+ Kt.displayName = "DSButton";
155
+ export {
156
+ so as B,
157
+ Kt as D,
158
+ lo as a,
159
+ Jt as v
160
+ };
@@ -4,8 +4,8 @@ import { c as x } from "./index.DQOqod3i.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.1txsny17.js";
6
6
  import "./index.cKLI89Eg.js";
7
- import { D as _ } from "./Icon.BoywkLCM.js";
8
- import { D as L } from "./SystemFeedback.D4aWwoC8.js";
7
+ import { D as _ } from "./Icon.DCdL1Vnp.js";
8
+ import { D as L } from "./SystemFeedback.CZhoSxrC.js";
9
9
  import { g as C } from "./helpers.CexwVao7.js";
10
10
  import '../assets/Checkbox.ZAPIO2N8.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
11
  root: O,
@@ -2,10 +2,10 @@
2
2
  import { jsx as w } from "react/jsx-runtime";
3
3
  import { d as q } from "./index.cKLI89Eg.js";
4
4
  import { c as N } from "./index.DQOqod3i.js";
5
- import { D as z } from "./Fieldset.DdYeI2CZ.js";
5
+ import { D as z } from "./Fieldset.BB4NftRU.js";
6
6
  import _ from "react";
7
7
  import { g as v, r as I } from "./helpers.CexwVao7.js";
8
- import { D as P } from "./Checkbox.B3g2P15v.js";
8
+ import { D as P } from "./Checkbox.91fwuJ-0.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", O = "ds-checkbox-group_root--invalid_12fot_12", E = {
10
10
  root: F,
11
11
  rootHorizontal: H,
@@ -4,7 +4,7 @@ import { d as q } from "./index.cKLI89Eg.js";
4
4
  import { c as H } from "./index.DQOqod3i.js";
5
5
  import { forwardRef as U } from "react";
6
6
  import { t as M } from "./translate.nuU7uChI.js";
7
- import { D as z } from "./Icon.BoywkLCM.js";
7
+ import { D as z } from "./Icon.DCdL1Vnp.js";
8
8
  import { Tooltip as N } from "../tooltip.C6HKano9.js";
9
9
  import { g as $, r as x } from "./helpers.CexwVao7.js";
10
10
  import '../assets/Chip.D3vV0wyV.css';const j = "ds-chip-group_chip_aidwn_1", B = "ds-chip-group_chip--small_aidwn_30", F = {
@@ -11,10 +11,10 @@ import { t as zt } from "./translate.nuU7uChI.js";
11
11
  import { g as ce, r as kt } from "./helpers.CexwVao7.js";
12
12
  import { u as jt } from "./useBreakpoint.1txsny17.js";
13
13
  import { Asterisk as Ut } from "../asterisk.Dwtdwpkq.js";
14
- import { D as ge } from "./Icon.BoywkLCM.js";
15
- import { D as Qt } from "./Popover.BmpyqKuQ.js";
16
- import { D as _t } from "./SystemFeedback.D4aWwoC8.js";
17
- import { OptionCheckbox as $t } from "../optioncheckbox.BOfgK3U_.js";
14
+ import { D as ge } from "./Icon.DCdL1Vnp.js";
15
+ import { D as Qt } from "./Popover.BBT_kVGM.js";
16
+ import { D as _t } from "./SystemFeedback.CZhoSxrC.js";
17
+ import { OptionCheckbox as $t } from "../optioncheckbox.BO9lhnF3.js";
18
18
  import '../assets/CustomReactSelect.Ctze4SRN.css';const qo = ({
19
19
  id: n,
20
20
  label: e,
@@ -0,0 +1,102 @@
1
+ "use client";
2
+ import { jsx as n, jsxs as E } from "react/jsx-runtime";
3
+ import { c as r } from "./index.DQOqod3i.js";
4
+ import { useRef as g, useState as F, useEffect as m } from "react";
5
+ import { D as W } from "./Button.D8U6Bs7T.js";
6
+ import { g as x } from "./helpers.CexwVao7.js";
7
+ import "./index.cKLI89Eg.js";
8
+ import '../assets/Dialog.BKwWy1g2.css';const R = "ds-dialog_root_11kdc_5", y = "ds-dialog_content-wrapper_11kdc_166", z = "ds-dialog_content-wrapper--no-footer_11kdc_172", L = "ds-dialog_close-button_11kdc_180", M = "ds-dialog_header_11kdc_193", j = "ds-dialog_content_11kdc_166", H = "ds-dialog_footer_11kdc_195", I = "ds-dialog_header--scrollable_11kdc_216", O = "ds-dialog_header--close-button_11kdc_225", P = "ds-dialog_content--no-footer_11kdc_238", T = "ds-dialog_footer--scrollable_11kdc_273", o = {
9
+ root: R,
10
+ contentWrapper: y,
11
+ contentWrapperNoFooter: z,
12
+ closeButton: L,
13
+ header: M,
14
+ content: j,
15
+ footer: H,
16
+ headerScrollable: I,
17
+ headerCloseButton: O,
18
+ contentNoFooter: P,
19
+ footerScrollable: T
20
+ }, V = ({
21
+ tabIndex: c
22
+ }) => {
23
+ if (c || c === 0)
24
+ throw new Error(x("DSDialog", "Do not pass the tabindex property to the DSDialog component as it is not interactive and does not receive focus. The DSDialogs contents, including the close button contained in the DSDialog, can receive focus and be interactive."));
25
+ }, U = ({
26
+ children: c,
27
+ className: b,
28
+ closeButtonProps: D,
29
+ disableBackdropClose: S = !1,
30
+ footer: s,
31
+ header: k,
32
+ hideCloseButton: a = !1,
33
+ isOpen: d = !1,
34
+ onClose: l,
35
+ ...i
36
+ }) => {
37
+ if (process.env.NODE_ENV !== "production") {
38
+ const {
39
+ tabIndex: e
40
+ } = i;
41
+ V({
42
+ tabIndex: e
43
+ });
44
+ }
45
+ const {
46
+ label: v = "Close dialog",
47
+ ...N
48
+ } = D || {}, t = g(null), u = g(null), [f, B] = F(!1);
49
+ m(() => {
50
+ const e = u.current;
51
+ if (e) {
52
+ const h = () => {
53
+ B(e.scrollHeight > e.clientHeight);
54
+ };
55
+ h();
56
+ const p = new ResizeObserver(h);
57
+ return p.observe(e), () => {
58
+ p.disconnect();
59
+ };
60
+ }
61
+ }, []), m(() => {
62
+ const e = t.current;
63
+ if (e)
64
+ return e.addEventListener("close", _), d ? e.showModal() : e.close(), () => {
65
+ e.removeEventListener("close", _);
66
+ };
67
+ }, [d, l]);
68
+ const _ = () => {
69
+ l && l();
70
+ }, w = (e) => {
71
+ S || t.current && e.target === t.current && t.current.close();
72
+ }, C = () => {
73
+ t.current && t.current.close();
74
+ };
75
+ return /* @__PURE__ */ n("dialog", { ...i, ref: t, className: r(o.root, b), onMouseDown: (e) => w(e), "aria-modal": "true", children: /* @__PURE__ */ E("div", { className: r(o.contentWrapper, {
76
+ [o.contentWrapperNoFooter]: !s
77
+ }), children: [
78
+ !a && /* @__PURE__ */ n(W, { ...N, className: o.closeButton, hideLabel: !0, iconName: "cross", size: "small", type: "button", variant: "ghost", onClick: () => C(), children: v }),
79
+ /* @__PURE__ */ n("header", { className: r(o.header, {
80
+ [o.headerCloseButton]: !a,
81
+ [o.headerScrollable]: f
82
+ }), children: k }),
83
+ /* @__PURE__ */ n(
84
+ "div",
85
+ {
86
+ ref: u,
87
+ className: r(o.content, {
88
+ [o.contentNoFooter]: !s
89
+ }),
90
+ tabIndex: 0,
91
+ children: c
92
+ }
93
+ ),
94
+ s && /* @__PURE__ */ n("footer", { className: r(o.footer, {
95
+ [o.footerScrollable]: f
96
+ }), children: s })
97
+ ] }) });
98
+ };
99
+ export {
100
+ U as D,
101
+ V as v
102
+ };
@@ -0,0 +1,107 @@
1
+ "use client";
2
+ import { jsx as t, jsxs as W } from "react/jsx-runtime";
3
+ import { c as n } from "./index.DQOqod3i.js";
4
+ import { useRef as w, useState as F, useEffect as m } from "react";
5
+ import { D as R } from "./Button.D8U6Bs7T.js";
6
+ import { g as k } from "./helpers.CexwVao7.js";
7
+ import "./index.cKLI89Eg.js";
8
+ import '../assets/Drawer.BU-fi5Hk.css';const x = "ds-drawer_root_1fyfp_10", I = "ds-drawer_root--end_1fyfp_68", O = "ds-drawer_content-wrapper_1fyfp_169", z = "ds-drawer_content-wrapper--no-footer_1fyfp_175", L = "ds-drawer_close-button_1fyfp_178", M = "ds-drawer_header_1fyfp_191", P = "ds-drawer_content_1fyfp_169", j = "ds-drawer_footer_1fyfp_193", H = "ds-drawer_header--scrollable_1fyfp_214", T = "ds-drawer_header--close-button_1fyfp_223", A = "ds-drawer_content--no-footer_1fyfp_265", V = "ds-drawer_footer--scrollable_1fyfp_272", o = {
9
+ root: x,
10
+ rootEnd: I,
11
+ contentWrapper: O,
12
+ contentWrapperNoFooter: z,
13
+ closeButton: L,
14
+ header: M,
15
+ content: P,
16
+ footer: j,
17
+ headerScrollable: H,
18
+ headerCloseButton: T,
19
+ contentNoFooter: A,
20
+ footerScrollable: V
21
+ }, Y = ["start", "end"], q = ({
22
+ tabIndex: s
23
+ }) => {
24
+ if (s || s === 0)
25
+ throw new Error(k("DSDrawer", "Do not pass the tabindex property to the DSDrawer component as it is not interactive and does not receive focus. The DSDrawers contents, including the close button contained in the DSDrawer, can receive focus and be interactive."));
26
+ }, Z = ({
27
+ children: s,
28
+ className: b,
29
+ closeButtonProps: D,
30
+ disableBackdropClose: S = !1,
31
+ footer: c,
32
+ header: N,
33
+ hideCloseButton: l = !1,
34
+ position: v = "start",
35
+ isOpen: d = !1,
36
+ onClose: a,
37
+ ...f
38
+ }) => {
39
+ if (process.env.NODE_ENV !== "production") {
40
+ const {
41
+ tabIndex: e
42
+ } = f;
43
+ q({
44
+ tabIndex: e
45
+ });
46
+ }
47
+ const {
48
+ label: y = "Close modal",
49
+ ...E
50
+ } = D || {}, r = w(null), i = w(null), [p, g] = F(!1);
51
+ m(() => {
52
+ const e = i.current;
53
+ if (e) {
54
+ const u = () => {
55
+ g(e.scrollHeight > e.clientHeight);
56
+ };
57
+ u();
58
+ const h = new ResizeObserver(u);
59
+ return h.observe(e), () => {
60
+ h.disconnect();
61
+ };
62
+ }
63
+ }, []), m(() => {
64
+ const e = r.current;
65
+ if (e)
66
+ return e.addEventListener("close", _), d ? e.showModal() : e.close(), () => {
67
+ e.removeEventListener("close", _);
68
+ };
69
+ }, [d, a]);
70
+ const _ = () => {
71
+ a && a();
72
+ }, B = (e) => {
73
+ S || r.current && e.target === r.current && r.current.close();
74
+ }, C = () => {
75
+ r.current && r.current.close();
76
+ };
77
+ return /* @__PURE__ */ t("dialog", { ...f, ref: r, className: n(o.root, {
78
+ [o.rootEnd]: v === "end"
79
+ }), onMouseDown: (e) => B(e), "aria-modal": "true", children: /* @__PURE__ */ W("div", { className: n(o.contentWrapper, b, {
80
+ [o.contentWrapperNoFooter]: !c
81
+ }), children: [
82
+ !l && /* @__PURE__ */ t(R, { ...E, className: o.closeButton, hideLabel: !0, iconName: "cross", size: "small", type: "button", variant: "ghost", onClick: () => C(), children: y }),
83
+ /* @__PURE__ */ t("header", { className: n(o.header, {
84
+ [o.headerCloseButton]: !l,
85
+ [o.headerScrollable]: p
86
+ }), children: N }),
87
+ /* @__PURE__ */ t(
88
+ "div",
89
+ {
90
+ ref: i,
91
+ className: n(o.content, {
92
+ [o.contentNoFooter]: !c
93
+ }),
94
+ tabIndex: 0,
95
+ children: s
96
+ }
97
+ ),
98
+ c && /* @__PURE__ */ t("footer", { className: n(o.footer, {
99
+ [o.footerScrollable]: p
100
+ }), children: c })
101
+ ] }) });
102
+ };
103
+ export {
104
+ Z as D,
105
+ Y as a,
106
+ q as v
107
+ };