@stihl-design-system/components 1.0.0-RC.11 → 1.0.0-RC.13
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.
- package/README.md +1 -1
- package/{accordion.CEKQh-7i.js → accordion.Rvtiu8Y4.js} +3 -3
- package/arialiveregions.Cyycgs8g.js +27 -0
- package/assets/Accordion.i4k5SMQM.css +1 -0
- package/assets/CheckboxGroup.BH1Br1dg.css +1 -0
- package/assets/Chip.DSdLuzoi.css +1 -0
- package/assets/CustomReactSelect.vHt8qNKC.css +1 -0
- package/assets/Dialog.BgzebVk4.css +1 -0
- package/assets/Drawer.Bauwxrk7.css +1 -0
- package/assets/Fieldset.DOdTbb7C.css +1 -0
- package/assets/Icon.DxRSBRSL.css +1 -0
- package/assets/InputPassword.CG7Ugu73.css +1 -0
- package/assets/InputSearch.CseChMc-.css +1 -0
- package/assets/InputStepper.C0eAYr7P.css +1 -0
- package/assets/Notification.DbRapUJo.css +1 -0
- package/assets/RadioGroup.BfMo157q.css +1 -0
- package/assets/Select.D4EXgIbz.css +1 -0
- package/assets/Textarea.KJGPTYMz.css +1 -0
- package/assets/Toast.CuafTAf7.css +1 -0
- package/assets/arialiveregions.DhsijBaL.css +1 -0
- package/assets/asterisk.BfVAUBO7.css +1 -0
- package/assets/button.DF4RBeC2.css +1 -0
- package/assets/buttonround.19uK_-oO.css +1 -0
- package/assets/checkbox.ByOoFouu.css +1 -0
- package/assets/chipgroup.BzfZLbkv.css +1 -0
- package/assets/flag.B-RLcMcf.css +1 -0
- package/assets/floatingactionbutton.E9HekT6S.css +1 -0
- package/assets/heading.u4f8Mz94.css +1 -0
- package/assets/input.BAkFKPW3.css +1 -0
- package/assets/link.DDJj0D1U.css +1 -0
- package/assets/linkstandalone.DIazcjIv.css +1 -0
- package/assets/logo.CnW8alZU.css +1 -0
- package/assets/optioncheckbox.BZaWtRD7.css +1 -0
- package/assets/radio.X-RTl_jo.css +1 -0
- package/assets/skiptocontent.PTL3256m.css +1 -0
- package/assets/spinner.2iWJWKyA.css +1 -0
- package/assets/switch.gw6aa3kx.css +1 -0
- package/assets/systemfeedback.BPz5YlPC.css +1 -0
- package/assets/text.DjTG_qNb.css +1 -0
- package/assets/title.rosWPEG3.css +1 -0
- package/asterisk.DpzETKdT.js +8 -0
- package/button.M4nXjcUn.js +135 -0
- package/buttonround.E56F_805.js +118 -0
- package/checkbox.Cb2_ey6U.js +111 -0
- package/{checkboxgroup.BqD5IV51.js → checkboxgroup.DBDmB-zR.js} +2 -2
- package/{chip.B92ew-hk.js → chip.C_1tGqvZ.js} +2 -2
- package/chipgroup.BvTj1ziW.js +174 -0
- package/chunks/Accordion.CB6jB3s_.js +125 -0
- package/chunks/{CheckboxGroup.M3jOjhNf.js → CheckboxGroup.S6i5EOc4.js} +40 -40
- package/chunks/{Chip.fMG8wi5K.js → Chip.CMlPUyOJ.js} +15 -15
- package/chunks/{CustomReactSelect.D3jv5-fa.js → CustomReactSelect.CQ1uexBH.js} +1321 -1321
- package/chunks/Dialog.CudsqNag.js +148 -0
- package/chunks/Drawer.ueG2Bzr9.js +154 -0
- package/chunks/{Fieldset.C9K8BYmH.js → Fieldset.Cjmkgxxk.js} +32 -32
- package/chunks/{Icon.C2o2seDb.js → Icon.BCmt_XBG.js} +45 -45
- package/chunks/InputPassword.CNLbBFjx.js +143 -0
- package/chunks/InputSearch.CHA6mkX_.js +192 -0
- package/chunks/InputStepper.xmWGU9pU.js +294 -0
- package/chunks/Notification.nx5vTamN.js +92 -0
- package/chunks/RadioGroup.Crj7NoOs.js +137 -0
- package/chunks/Select.E6gLFYLk.js +194 -0
- package/chunks/Textarea.DUBSOpNL.js +198 -0
- package/chunks/Toast.DyEi2GEP.js +89 -0
- package/{combobox.BeTnbG1m.js → combobox.CzBpi97e.js} +1 -1
- package/components/Combobox/Combobox.d.ts +1 -1
- package/components/{CustomReactSelect → Combobox/CustomReactSelect}/CustomReactSelect.d.ts +2 -2
- package/components/{CustomReactSelect → Combobox/CustomReactSelect}/CustomReactSelect.utils.d.ts +1 -1
- package/components/Notification/Notification.d.ts +2 -6
- package/components/Radio/Radio.d.ts +1 -1
- package/customreactselect.d.ts +1 -1
- package/customreactselect.qf7CIeFs.js +13 -0
- package/{dialog.lGwNQU91.js → dialog.DYlBUsOD.js} +2 -2
- package/{drawer.DNi5m8wP.js → drawer.CvhbP1ra.js} +2 -2
- package/fieldset.CtUGEdLv.js +11 -0
- package/flag.BKpsdB_-.js +43 -0
- package/floatingactionbutton.D5L0B7zI.js +87 -0
- package/heading.IPIYc5vW.js +50 -0
- package/{icon.BoMgOmC1.js → icon.Ck0BpI34.js} +1 -1
- package/index.es.js +34 -34
- package/input.BEnCFNM-.js +239 -0
- package/{inputpassword.CSjh1GU7.js → inputpassword.B-D_jB9w.js} +4 -4
- package/{inputsearch.DyznOWLK.js → inputsearch.CaSpklR1.js} +4 -4
- package/{inputstepper.3BLb7s0P.js → inputstepper.C7KD1-0S.js} +4 -4
- package/link.DREJAoPG.js +116 -0
- package/linkstandalone.BBoEniZ_.js +79 -0
- package/logo.Hul8qCFo.js +65 -0
- package/{notification.0kX1GMaB.js → notification.6M0OdGXK.js} +3 -3
- package/optioncheckbox.BRUTnQnJ.js +43 -0
- package/optioncheckbox.d.ts +1 -1
- package/package.json +8 -6
- package/partials/index.js +1 -1
- package/radio.DEILy_lV.js +114 -0
- package/{radiogroup.SYkZm2DG.js → radiogroup.DeU-HdlP.js} +3 -3
- package/{select.CYbwR3RW.js → select.BYraFJzz.js} +4 -4
- package/skiptocontent.BxvpIB7H.js +45 -0
- package/spinner.Bq97Og-6.js +58 -0
- package/styles/scss/ds/index.scss +19 -0
- package/styles/scss/ds/lib/animation.scss +21 -0
- package/styles/scss/ds/lib/breakpoints.scss +15 -0
- package/styles/scss/ds/lib/container-query.scss +54 -0
- package/styles/scss/ds/lib/ds-internal/_a11y.scss +15 -0
- package/styles/scss/{lib → ds/lib/ds-internal}/_focus.scss +13 -15
- package/styles/scss/ds/lib/ds-internal/_heading.scss +37 -0
- package/styles/scss/ds/lib/ds-internal/_helpers.scss +32 -0
- package/styles/scss/ds/lib/ds-internal/_high-contrast.scss +6 -0
- package/styles/scss/ds/lib/ds-internal/_hover.scss +6 -0
- package/styles/scss/ds/lib/ds-internal/_index.scss +9 -0
- package/styles/scss/ds/lib/ds-internal/_link.scss +62 -0
- package/styles/scss/ds/lib/ds-internal/_spacing-dynamic.scss +53 -0
- package/styles/scss/ds/lib/ds-internal/_text.scss +30 -0
- package/styles/scss/ds/lib/grid-extended.scss +11 -0
- package/styles/scss/ds/lib/grid-full.scss +6 -0
- package/styles/scss/ds/lib/grid-main.scss +119 -0
- package/styles/scss/ds/lib/grid-narrow.scss +14 -0
- package/styles/scss/ds/lib/grid-sidebar-sidebar.scss +52 -0
- package/styles/scss/{lib/_grid-sidebar.scss → ds/lib/grid-sidebar.scss} +23 -32
- package/styles/scss/{lib/_grid.scss → ds/lib/grid.scss} +15 -17
- package/styles/scss/ds/lib/heading.scss +75 -0
- package/styles/scss/ds/lib/link.scss +74 -0
- package/styles/scss/ds/lib/media-query.scss +32 -0
- package/styles/scss/{lib/_shadow.scss → ds/lib/shadow.scss} +2 -2
- package/styles/scss/ds/lib/spacing-dynamic.scss +7 -0
- package/styles/scss/ds/lib/spacing.scss +20 -0
- package/styles/scss/ds/lib/text.scss +83 -0
- package/styles/scss/ds/lib/theme.scss +162 -0
- package/styles/scss/ds/lib/transition.scss +36 -0
- package/switch.DI8YYa5G.js +65 -0
- package/{systemfeedback.ZzRUAVYX.js → systemfeedback.C3Pfxxpp.js} +6 -6
- package/text.DThvTwm8.js +57 -0
- package/{textarea.DJc527nX.js → textarea.CBvH0ljM.js} +3 -3
- package/title.DqzdB2Gq.js +36 -0
- package/{toast.D48GFmp0.js → toast.n1QUINSA.js} +3 -3
- package/{toastmanager.Dl8-Q3ED.js → toastmanager.B7EZ4JSI.js} +1 -1
- package/arialiveregions.BKpxxK7O.js +0 -27
- package/assets/Accordion.DMEFgtQm.css +0 -1
- package/assets/CheckboxGroup.Bz3_xkZU.css +0 -1
- package/assets/Chip.D10_7Q82.css +0 -1
- package/assets/CustomReactSelect.D5XKd9vg.css +0 -1
- package/assets/Dialog.B0pucIEI.css +0 -1
- package/assets/Drawer.CATBzfY7.css +0 -1
- package/assets/Fieldset.CwDhKRUL.css +0 -1
- package/assets/Icon.Duy_0R8w.css +0 -1
- package/assets/InputPassword.DOAAzj-O.css +0 -1
- package/assets/InputSearch.CxPYaQGZ.css +0 -1
- package/assets/InputStepper.CYYJUu0b.css +0 -1
- package/assets/Notification.mhVFeSGm.css +0 -1
- package/assets/Select.DZKpHV4G.css +0 -1
- package/assets/Textarea.Cp0b7oZp.css +0 -1
- package/assets/Toast.Cz6wYaBv.css +0 -1
- package/assets/arialiveregions.GsGx2USO.css +0 -1
- package/assets/asterisk.DlJ4YtSZ.css +0 -1
- package/assets/button.C9_ejpGG.css +0 -1
- package/assets/buttonround.DTCqRP-0.css +0 -1
- package/assets/checkbox.K4CVYK9g.css +0 -1
- package/assets/chipgroup.BMovtKTy.css +0 -1
- package/assets/flag.DX_lH1v7.css +0 -1
- package/assets/floatingactionbutton.Do-yEH6c.css +0 -1
- package/assets/heading.6bER-Eac.css +0 -1
- package/assets/input.Q5oKkmW2.css +0 -1
- package/assets/link.DhZqkLMP.css +0 -1
- package/assets/linkstandalone.Dwz-_O8q.css +0 -1
- package/assets/logo.pETQEsvZ.css +0 -1
- package/assets/optioncheckbox.C62HtIj5.css +0 -1
- package/assets/radio.-Xxx5wL4.css +0 -1
- package/assets/skiptocontent.CHcqLS7S.css +0 -1
- package/assets/spinner.D_Nnf1ZG.css +0 -1
- package/assets/switch.C1Ei0-z8.css +0 -1
- package/assets/systemfeedback.Sq0bAIyf.css +0 -1
- package/assets/text.DxKFcfY6.css +0 -1
- package/assets/title.f74Bosn-.css +0 -1
- package/asterisk.DDn-yX4P.js +0 -8
- package/button.C5opEJ6x.js +0 -135
- package/buttonround.CUoqRyy0.js +0 -118
- package/checkbox.DETR3e3X.js +0 -112
- package/chipgroup.BJrqEfvr.js +0 -175
- package/chunks/Accordion.DFwFN8mX.js +0 -125
- package/chunks/Dialog.Fwr6vLiK.js +0 -148
- package/chunks/Drawer.CKoYzQHd.js +0 -154
- package/chunks/InputPassword.C7pNeWGx.js +0 -143
- package/chunks/InputSearch.B24rcIJ_.js +0 -192
- package/chunks/InputStepper.CEW-bieQ.js +0 -294
- package/chunks/Notification.BXVN7_Fs.js +0 -93
- package/chunks/RadioGroup.D4UOflwr.js +0 -137
- package/chunks/Select.Ds86q4UC.js +0 -194
- package/chunks/Textarea.DcB8hKnO.js +0 -198
- package/chunks/Toast.DrzxdzVW.js +0 -89
- package/customreactselect.lYJhIeyx.js +0 -13
- package/fieldset.BqiAjeax.js +0 -11
- package/flag.XJHHSP38.js +0 -43
- package/floatingactionbutton.CMpkTdhX.js +0 -87
- package/heading.CAkraI2D.js +0 -50
- package/input.v7qB7wPJ.js +0 -239
- package/link.Clk5_BYp.js +0 -116
- package/linkstandalone.BXERmqdN.js +0 -80
- package/logo.CEO6OV7u.js +0 -65
- package/optioncheckbox.BPN3f6l_.js +0 -43
- package/radio.DTZNJzMU.js +0 -115
- package/skiptocontent.DUQWopO4.js +0 -46
- package/spinner.D-xrotcu.js +0 -58
- package/styles/scss/_index.scss +0 -24
- package/styles/scss/lib/_a11y.scss +0 -15
- package/styles/scss/lib/_animation.scss +0 -21
- package/styles/scss/lib/_breakpoints.scss +0 -15
- package/styles/scss/lib/_container-query.scss +0 -58
- package/styles/scss/lib/_grid-extended.scss +0 -11
- package/styles/scss/lib/_grid-full.scss +0 -6
- package/styles/scss/lib/_grid-main.scss +0 -117
- package/styles/scss/lib/_grid-narrow.scss +0 -16
- package/styles/scss/lib/_grid-sidebar-sidebar.scss +0 -50
- package/styles/scss/lib/_heading.scss +0 -107
- package/styles/scss/lib/_helpers.scss +0 -15
- package/styles/scss/lib/_high-contrast.scss +0 -24
- package/styles/scss/lib/_hover.scss +0 -10
- package/styles/scss/lib/_link.scss +0 -129
- package/styles/scss/lib/_media-query.scss +0 -32
- package/styles/scss/lib/_spacing-dynamic.scss +0 -61
- package/styles/scss/lib/_spacing.scss +0 -32
- package/styles/scss/lib/_text.scss +0 -110
- package/styles/scss/lib/_theme.scss +0 -162
- package/styles/scss/lib/_transition.scss +0 -45
- package/switch.CoNnIhM4.js +0 -65
- package/text.fMcHzVbH.js +0 -57
- package/title.LY1ylQsb.js +0 -36
- /package/components/{CustomReactSelect → Combobox/CustomReactSelect}/CustomReactSelect.utils.test.d.ts +0 -0
- /package/components/{CustomReactSelect → Combobox/CustomReactSelect}/OptionCheckbox.d.ts +0 -0
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { j as t } from "./jsx-runtime.C115EyI4.js";
|
|
3
|
-
import { c as s } from "./index.CvOaL64Y.js";
|
|
4
|
-
import { forwardRef as O, useRef as A, useState as F, useImperativeHandle as I, useEffect as q } from "react";
|
|
5
|
-
import { DSHeading as R } from "../heading.CAkraI2D.js";
|
|
6
|
-
import { D as T } from "./Icon.C2o2seDb.js";
|
|
7
|
-
import { g as w } from "./helpers.B1JT5ShS.js";
|
|
8
|
-
import '../assets/Accordion.DMEFgtQm.css';const L = "_details_1h0q5_76", M = "_summary_1h0q5_197", b = "_summary--utility--m_1h0q5_238", H = "_summary--flush_1h0q5_268", P = "_summary--small_1h0q5_338", U = "_summary-content-wrapper_1h0q5_343", V = "_summary-content-wrapper--flush_1h0q5_349", z = "_summary-content-wrapper--chevron-left_1h0q5_353", Z = "_heading-summary-wrapper_1h0q5_358", k = "_hint_1h0q5_362", B = "_icon_1h0q5_377", G = "_icon--open_1h0q5_388", J = "_content-wrapper_1h0q5_400", K = "_content-wrapper--flush_1h0q5_406", Q = "_content-wrapper--small_1h0q5_410", e = {
|
|
9
|
-
details: L,
|
|
10
|
-
summary: M,
|
|
11
|
-
"summary--utility--m": "_summary--utility--m_1h0q5_238",
|
|
12
|
-
summaryUtilityM: b,
|
|
13
|
-
"summary--flush": "_summary--flush_1h0q5_268",
|
|
14
|
-
summaryFlush: H,
|
|
15
|
-
"summary--small": "_summary--small_1h0q5_338",
|
|
16
|
-
summarySmall: P,
|
|
17
|
-
"summary-content-wrapper": "_summary-content-wrapper_1h0q5_343",
|
|
18
|
-
summaryContentWrapper: U,
|
|
19
|
-
"summary-content-wrapper--flush": "_summary-content-wrapper--flush_1h0q5_349",
|
|
20
|
-
summaryContentWrapperFlush: V,
|
|
21
|
-
"summary-content-wrapper--chevron-left": "_summary-content-wrapper--chevron-left_1h0q5_353",
|
|
22
|
-
summaryContentWrapperChevronLeft: z,
|
|
23
|
-
"heading-summary-wrapper": "_heading-summary-wrapper_1h0q5_358",
|
|
24
|
-
headingSummaryWrapper: Z,
|
|
25
|
-
hint: k,
|
|
26
|
-
icon: B,
|
|
27
|
-
"icon--open": "_icon--open_1h0q5_388",
|
|
28
|
-
iconOpen: G,
|
|
29
|
-
"content-wrapper": "_content-wrapper_1h0q5_400",
|
|
30
|
-
contentWrapper: J,
|
|
31
|
-
"content-wrapper--flush": "_content-wrapper--flush_1h0q5_406",
|
|
32
|
-
contentWrapperFlush: K,
|
|
33
|
-
"content-wrapper--small": "_content-wrapper--small_1h0q5_410",
|
|
34
|
-
contentWrapperSmall: Q
|
|
35
|
-
}, ae = ["medium", "small"], me = ["left", "right"], X = ({
|
|
36
|
-
children: a,
|
|
37
|
-
summary: n
|
|
38
|
-
}) => {
|
|
39
|
-
if (!a)
|
|
40
|
-
throw new Error(
|
|
41
|
-
w(
|
|
42
|
-
"DSAccordion",
|
|
43
|
-
"The component requires children to be set."
|
|
44
|
-
)
|
|
45
|
-
);
|
|
46
|
-
if (!n)
|
|
47
|
-
throw new Error(
|
|
48
|
-
w(
|
|
49
|
-
"DSAccordion",
|
|
50
|
-
"The summary prop is required. Please add the summary prop to the DSAccordion component."
|
|
51
|
-
)
|
|
52
|
-
);
|
|
53
|
-
}, Y = O(
|
|
54
|
-
({
|
|
55
|
-
children: a,
|
|
56
|
-
summary: n,
|
|
57
|
-
chevronPosition: g = "right",
|
|
58
|
-
className: C,
|
|
59
|
-
hint: p,
|
|
60
|
-
isFlush: m = !1,
|
|
61
|
-
isOpen: o = !1,
|
|
62
|
-
size: l = "medium",
|
|
63
|
-
...S
|
|
64
|
-
}, W) => {
|
|
65
|
-
process.env.NODE_ENV !== "production" && X({ children: a, summary: n });
|
|
66
|
-
const r = A(null), [v, i] = F(o);
|
|
67
|
-
I(W, () => r.current), q(() => {
|
|
68
|
-
r.current && i(r.current.open);
|
|
69
|
-
}, [o]), q(() => {
|
|
70
|
-
var d;
|
|
71
|
-
const y = () => {
|
|
72
|
-
r.current && i(r.current.open);
|
|
73
|
-
};
|
|
74
|
-
return (d = r.current) == null || d.addEventListener("toggle", y), () => {
|
|
75
|
-
var f;
|
|
76
|
-
(f = r.current) == null || f.removeEventListener("toggle", y);
|
|
77
|
-
};
|
|
78
|
-
}, []);
|
|
79
|
-
let u, _, h;
|
|
80
|
-
const c = typeof n == "object" && n !== void 0;
|
|
81
|
-
c && ({ headingSize: u, headingTag: _, headingText: h } = n);
|
|
82
|
-
const D = s(e.details, C), N = s(e.summary, {
|
|
83
|
-
[e.summaryFlush]: m,
|
|
84
|
-
[e.summarySmall]: l === "small",
|
|
85
|
-
[e.summaryUtilityM]: !c
|
|
86
|
-
}), j = s(
|
|
87
|
-
e.summaryContentWrapper,
|
|
88
|
-
{
|
|
89
|
-
[e.summaryContentWrapperFlush]: m,
|
|
90
|
-
[e.summaryContentWrapperChevronLeft]: g === "left"
|
|
91
|
-
}
|
|
92
|
-
), x = s(e.icon, {
|
|
93
|
-
[e.iconOpen]: v
|
|
94
|
-
}), E = s(e.contentWrapper, {
|
|
95
|
-
[e.contentWrapperFlush]: m,
|
|
96
|
-
[e.contentWrapperSmall]: l === "small"
|
|
97
|
-
});
|
|
98
|
-
return /* @__PURE__ */ t.jsxs(
|
|
99
|
-
"details",
|
|
100
|
-
{
|
|
101
|
-
...S,
|
|
102
|
-
ref: r,
|
|
103
|
-
className: D,
|
|
104
|
-
open: o,
|
|
105
|
-
children: [
|
|
106
|
-
/* @__PURE__ */ t.jsx("summary", { className: N, children: /* @__PURE__ */ t.jsxs("div", { className: j, children: [
|
|
107
|
-
/* @__PURE__ */ t.jsxs("div", { className: e.headingSummaryWrapper, children: [
|
|
108
|
-
c ? /* @__PURE__ */ t.jsx(R, { tag: _, size: u, children: h }) : n,
|
|
109
|
-
p && /* @__PURE__ */ t.jsx("div", { className: e.hint, children: p })
|
|
110
|
-
] }),
|
|
111
|
-
/* @__PURE__ */ t.jsx(T, { name: "chevron-down", className: x })
|
|
112
|
-
] }) }),
|
|
113
|
-
/* @__PURE__ */ t.jsx("div", { className: E, children: a })
|
|
114
|
-
]
|
|
115
|
-
}
|
|
116
|
-
);
|
|
117
|
-
}
|
|
118
|
-
);
|
|
119
|
-
Y.displayName = "DSAccordion";
|
|
120
|
-
export {
|
|
121
|
-
ae as A,
|
|
122
|
-
me as C,
|
|
123
|
-
Y as D,
|
|
124
|
-
X as v
|
|
125
|
-
};
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { j as n } from "./jsx-runtime.C115EyI4.js";
|
|
3
|
-
import { c as s } from "./index.CvOaL64Y.js";
|
|
4
|
-
import { useRef as h, useState as x, useEffect as b } from "react";
|
|
5
|
-
import { DSButton as j } from "../button.C5opEJ6x.js";
|
|
6
|
-
import { g as B } from "./helpers.B1JT5ShS.js";
|
|
7
|
-
import '../assets/Dialog.B0pucIEI.css';const E = "_dialog_17zim_80", C = "_content-wrapper_17zim_236", F = "_content-wrapper--no-footer_17zim_242", W = "_close-button_17zim_250", k = "_header_17zim_263", R = "_content_17zim_236", y = "_footer_17zim_265", L = "_header--scrollable_17zim_286", M = "_header--close-button_17zim_295", H = "_content--no-footer_17zim_308", I = "_footer--scrollable_17zim_315", o = {
|
|
8
|
-
dialog: E,
|
|
9
|
-
"content-wrapper": "_content-wrapper_17zim_236",
|
|
10
|
-
contentWrapper: C,
|
|
11
|
-
"content-wrapper--no-footer": "_content-wrapper--no-footer_17zim_242",
|
|
12
|
-
contentWrapperNoFooter: F,
|
|
13
|
-
"close-button": "_close-button_17zim_250",
|
|
14
|
-
closeButton: W,
|
|
15
|
-
header: k,
|
|
16
|
-
content: R,
|
|
17
|
-
footer: y,
|
|
18
|
-
"header--scrollable": "_header--scrollable_17zim_286",
|
|
19
|
-
headerScrollable: L,
|
|
20
|
-
"header--close-button": "_header--close-button_17zim_295",
|
|
21
|
-
headerCloseButton: M,
|
|
22
|
-
"content--no-footer": "_content--no-footer_17zim_308",
|
|
23
|
-
contentNoFooter: H,
|
|
24
|
-
"footer--scrollable": "_footer--scrollable_17zim_315",
|
|
25
|
-
footerScrollable: I
|
|
26
|
-
}, O = ({ tabIndex: r }) => {
|
|
27
|
-
if (r || r === 0)
|
|
28
|
-
throw new Error(
|
|
29
|
-
B(
|
|
30
|
-
"DSDialog",
|
|
31
|
-
"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."
|
|
32
|
-
)
|
|
33
|
-
);
|
|
34
|
-
}, G = ({
|
|
35
|
-
children: r,
|
|
36
|
-
className: g,
|
|
37
|
-
closeButtonLabel: z = "Close dialog",
|
|
38
|
-
disableBackdropClose: D = !1,
|
|
39
|
-
footer: c,
|
|
40
|
-
header: S,
|
|
41
|
-
hideCloseButton: a = !1,
|
|
42
|
-
isOpen: i = !1,
|
|
43
|
-
onClose: l,
|
|
44
|
-
..._
|
|
45
|
-
}) => {
|
|
46
|
-
if (process.env.NODE_ENV !== "production") {
|
|
47
|
-
const { tabIndex: e } = _;
|
|
48
|
-
O({
|
|
49
|
-
tabIndex: e
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
const t = h(null), d = h(null), [m, v] = x(!1);
|
|
53
|
-
b(() => {
|
|
54
|
-
const e = d.current;
|
|
55
|
-
if (e) {
|
|
56
|
-
const u = () => {
|
|
57
|
-
v(
|
|
58
|
-
e.scrollHeight > e.clientHeight
|
|
59
|
-
);
|
|
60
|
-
};
|
|
61
|
-
u();
|
|
62
|
-
const p = new ResizeObserver(u);
|
|
63
|
-
return p.observe(e), () => {
|
|
64
|
-
p.disconnect();
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
}, []), b(() => {
|
|
68
|
-
const e = t.current;
|
|
69
|
-
if (e)
|
|
70
|
-
return e.addEventListener("close", f), i ? e.showModal() : e.close(), () => {
|
|
71
|
-
e.removeEventListener("close", f);
|
|
72
|
-
};
|
|
73
|
-
}, [i, l]);
|
|
74
|
-
const f = () => {
|
|
75
|
-
l && l();
|
|
76
|
-
}, N = (e) => {
|
|
77
|
-
D || t.current && e.target === t.current && t.current.close();
|
|
78
|
-
}, w = () => {
|
|
79
|
-
t.current && t.current.close();
|
|
80
|
-
};
|
|
81
|
-
return /* @__PURE__ */ n.jsx(
|
|
82
|
-
"dialog",
|
|
83
|
-
{
|
|
84
|
-
..._,
|
|
85
|
-
ref: t,
|
|
86
|
-
className: o.dialog,
|
|
87
|
-
onMouseDown: (e) => N(e),
|
|
88
|
-
"aria-modal": "true",
|
|
89
|
-
children: /* @__PURE__ */ n.jsxs(
|
|
90
|
-
"div",
|
|
91
|
-
{
|
|
92
|
-
className: s(o.contentWrapper, g, {
|
|
93
|
-
[o.contentWrapperNoFooter]: !c
|
|
94
|
-
}),
|
|
95
|
-
children: [
|
|
96
|
-
!a && /* @__PURE__ */ n.jsx(
|
|
97
|
-
j,
|
|
98
|
-
{
|
|
99
|
-
className: o.closeButton,
|
|
100
|
-
hideLabel: !0,
|
|
101
|
-
iconName: "cross",
|
|
102
|
-
size: "small",
|
|
103
|
-
type: "button",
|
|
104
|
-
variant: "ghost",
|
|
105
|
-
onClick: () => w(),
|
|
106
|
-
children: z
|
|
107
|
-
}
|
|
108
|
-
),
|
|
109
|
-
/* @__PURE__ */ n.jsx(
|
|
110
|
-
"header",
|
|
111
|
-
{
|
|
112
|
-
className: s(o.header, {
|
|
113
|
-
[o.headerCloseButton]: !a,
|
|
114
|
-
[o.headerScrollable]: m
|
|
115
|
-
}),
|
|
116
|
-
children: S
|
|
117
|
-
}
|
|
118
|
-
),
|
|
119
|
-
/* @__PURE__ */ n.jsx(
|
|
120
|
-
"div",
|
|
121
|
-
{
|
|
122
|
-
ref: d,
|
|
123
|
-
className: s(o.content, {
|
|
124
|
-
[o.contentNoFooter]: !c
|
|
125
|
-
}),
|
|
126
|
-
tabIndex: 0,
|
|
127
|
-
children: r
|
|
128
|
-
}
|
|
129
|
-
),
|
|
130
|
-
c && /* @__PURE__ */ n.jsx(
|
|
131
|
-
"footer",
|
|
132
|
-
{
|
|
133
|
-
className: s(o.footer, {
|
|
134
|
-
[o.footerScrollable]: m
|
|
135
|
-
}),
|
|
136
|
-
children: c
|
|
137
|
-
}
|
|
138
|
-
)
|
|
139
|
-
]
|
|
140
|
-
}
|
|
141
|
-
)
|
|
142
|
-
}
|
|
143
|
-
);
|
|
144
|
-
};
|
|
145
|
-
export {
|
|
146
|
-
G as D,
|
|
147
|
-
O as v
|
|
148
|
-
};
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { j as r } from "./jsx-runtime.C115EyI4.js";
|
|
3
|
-
import { c as n } from "./index.CvOaL64Y.js";
|
|
4
|
-
import { useRef as b, useState as j, useEffect as w } from "react";
|
|
5
|
-
import { DSButton as B } from "../button.C5opEJ6x.js";
|
|
6
|
-
import { g as R } from "./helpers.B1JT5ShS.js";
|
|
7
|
-
import '../assets/Drawer.CATBzfY7.css';const W = "_drawer_1h1ai_85", C = "_drawer--end_1h1ai_143", F = "_content-wrapper_1h1ai_246", k = "_content-wrapper--no-footer_1h1ai_252", I = "_close-button_1h1ai_255", O = "_header_1h1ai_268", y = "_content_1h1ai_246", z = "_footer_1h1ai_270", L = "_header--scrollable_1h1ai_291", M = "_header--close-button_1h1ai_300", H = "_content--no-footer_1h1ai_314", P = "_footer--scrollable_1h1ai_321", o = {
|
|
8
|
-
drawer: W,
|
|
9
|
-
"drawer--end": "_drawer--end_1h1ai_143",
|
|
10
|
-
drawerEnd: C,
|
|
11
|
-
"content-wrapper": "_content-wrapper_1h1ai_246",
|
|
12
|
-
contentWrapper: F,
|
|
13
|
-
"content-wrapper--no-footer": "_content-wrapper--no-footer_1h1ai_252",
|
|
14
|
-
contentWrapperNoFooter: k,
|
|
15
|
-
"close-button": "_close-button_1h1ai_255",
|
|
16
|
-
closeButton: I,
|
|
17
|
-
header: O,
|
|
18
|
-
content: y,
|
|
19
|
-
footer: z,
|
|
20
|
-
"header--scrollable": "_header--scrollable_1h1ai_291",
|
|
21
|
-
headerScrollable: L,
|
|
22
|
-
"header--close-button": "_header--close-button_1h1ai_300",
|
|
23
|
-
headerCloseButton: M,
|
|
24
|
-
"content--no-footer": "_content--no-footer_1h1ai_314",
|
|
25
|
-
contentNoFooter: H,
|
|
26
|
-
"footer--scrollable": "_footer--scrollable_1h1ai_321",
|
|
27
|
-
footerScrollable: P
|
|
28
|
-
}, K = ["start", "end"], T = ({ tabIndex: a }) => {
|
|
29
|
-
if (a || a === 0)
|
|
30
|
-
throw new Error(
|
|
31
|
-
R(
|
|
32
|
-
"DSDrawer",
|
|
33
|
-
"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."
|
|
34
|
-
)
|
|
35
|
-
);
|
|
36
|
-
}, Q = ({
|
|
37
|
-
children: a,
|
|
38
|
-
className: m,
|
|
39
|
-
closeButtonLabel: D = "Close modal",
|
|
40
|
-
disableBackdropClose: S = !1,
|
|
41
|
-
footer: c,
|
|
42
|
-
header: N,
|
|
43
|
-
hideCloseButton: l = !1,
|
|
44
|
-
position: v = "start",
|
|
45
|
-
isOpen: i = !1,
|
|
46
|
-
onClose: s,
|
|
47
|
-
...d
|
|
48
|
-
}) => {
|
|
49
|
-
if (process.env.NODE_ENV !== "production") {
|
|
50
|
-
const { tabIndex: e } = d;
|
|
51
|
-
T({
|
|
52
|
-
tabIndex: e
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
const t = b(null), _ = b(null), [h, E] = j(!1);
|
|
56
|
-
w(() => {
|
|
57
|
-
const e = _.current;
|
|
58
|
-
if (e) {
|
|
59
|
-
const u = () => {
|
|
60
|
-
E(
|
|
61
|
-
e.scrollHeight > e.clientHeight
|
|
62
|
-
);
|
|
63
|
-
};
|
|
64
|
-
u();
|
|
65
|
-
const p = new ResizeObserver(u);
|
|
66
|
-
return p.observe(e), () => {
|
|
67
|
-
p.disconnect();
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
}, []), w(() => {
|
|
71
|
-
const e = t.current;
|
|
72
|
-
if (e)
|
|
73
|
-
return e.addEventListener("close", f), i ? e.showModal() : e.close(), () => {
|
|
74
|
-
e.removeEventListener("close", f);
|
|
75
|
-
};
|
|
76
|
-
}, [i, s]);
|
|
77
|
-
const f = () => {
|
|
78
|
-
s && s();
|
|
79
|
-
}, x = (e) => {
|
|
80
|
-
S || t.current && e.target === t.current && t.current.close();
|
|
81
|
-
}, g = () => {
|
|
82
|
-
t.current && t.current.close();
|
|
83
|
-
};
|
|
84
|
-
return /* @__PURE__ */ r.jsx(
|
|
85
|
-
"dialog",
|
|
86
|
-
{
|
|
87
|
-
...d,
|
|
88
|
-
ref: t,
|
|
89
|
-
className: n(o.drawer, {
|
|
90
|
-
[o.drawerEnd]: v === "end"
|
|
91
|
-
}),
|
|
92
|
-
onMouseDown: (e) => x(e),
|
|
93
|
-
"aria-modal": "true",
|
|
94
|
-
children: /* @__PURE__ */ r.jsxs(
|
|
95
|
-
"div",
|
|
96
|
-
{
|
|
97
|
-
className: n(o.contentWrapper, m, {
|
|
98
|
-
[o.contentWrapperNoFooter]: !c
|
|
99
|
-
}),
|
|
100
|
-
children: [
|
|
101
|
-
!l && /* @__PURE__ */ r.jsx(
|
|
102
|
-
B,
|
|
103
|
-
{
|
|
104
|
-
className: o.closeButton,
|
|
105
|
-
hideLabel: !0,
|
|
106
|
-
iconName: "cross",
|
|
107
|
-
size: "small",
|
|
108
|
-
type: "button",
|
|
109
|
-
variant: "ghost",
|
|
110
|
-
onClick: () => g(),
|
|
111
|
-
children: D
|
|
112
|
-
}
|
|
113
|
-
),
|
|
114
|
-
/* @__PURE__ */ r.jsx(
|
|
115
|
-
"header",
|
|
116
|
-
{
|
|
117
|
-
className: n(o.header, {
|
|
118
|
-
[o.headerCloseButton]: !l,
|
|
119
|
-
[o.headerScrollable]: h
|
|
120
|
-
}),
|
|
121
|
-
children: N
|
|
122
|
-
}
|
|
123
|
-
),
|
|
124
|
-
/* @__PURE__ */ r.jsx(
|
|
125
|
-
"div",
|
|
126
|
-
{
|
|
127
|
-
ref: _,
|
|
128
|
-
className: n(o.content, {
|
|
129
|
-
[o.contentNoFooter]: !c
|
|
130
|
-
}),
|
|
131
|
-
tabIndex: 0,
|
|
132
|
-
children: a
|
|
133
|
-
}
|
|
134
|
-
),
|
|
135
|
-
c && /* @__PURE__ */ r.jsx(
|
|
136
|
-
"footer",
|
|
137
|
-
{
|
|
138
|
-
className: n(o.footer, {
|
|
139
|
-
[o.footerScrollable]: h
|
|
140
|
-
}),
|
|
141
|
-
children: c
|
|
142
|
-
}
|
|
143
|
-
)
|
|
144
|
-
]
|
|
145
|
-
}
|
|
146
|
-
)
|
|
147
|
-
}
|
|
148
|
-
);
|
|
149
|
-
};
|
|
150
|
-
export {
|
|
151
|
-
Q as D,
|
|
152
|
-
K as a,
|
|
153
|
-
T as v
|
|
154
|
-
};
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { j as n } from "./jsx-runtime.C115EyI4.js";
|
|
3
|
-
import { c as e } from "./index.CvOaL64Y.js";
|
|
4
|
-
import { useState as A } from "react";
|
|
5
|
-
import { u as C } from "./useBreakpoint.5xBNDiCf.js";
|
|
6
|
-
import { Asterisk as L } from "../asterisk.DDn-yX4P.js";
|
|
7
|
-
import { DSButton as $ } from "../button.C5opEJ6x.js";
|
|
8
|
-
import { DSSystemFeedback as E } from "../systemfeedback.ZzRUAVYX.js";
|
|
9
|
-
import { g as h } from "./helpers.B1JT5ShS.js";
|
|
10
|
-
import '../assets/InputPassword.DOAAzj-O.css';const q = "_input_l9tjo_226", R = "_input--invalid_l9tjo_343", V = "_input--small_l9tjo_350", O = "_input--has-leading-icon_l9tjo_404", F = "_input--has-action-button_l9tjo_407", M = "_input--has-second-action-button_l9tjo_410", T = "_input--has-affix_l9tjo_422", G = "_input--is-ready_l9tjo_436", J = "_root_l9tjo_443", K = "_hint_l9tjo_451", Q = "_label_l9tjo_451", U = "_wrapper_l9tjo_455", W = "_action-button_l9tjo_461", X = "_label--hidden_l9tjo_480", Y = "_label--disabled_l9tjo_493", Z = "_feedback_l9tjo_514", t = {
|
|
11
|
-
input: q,
|
|
12
|
-
"input--invalid": "_input--invalid_l9tjo_343",
|
|
13
|
-
inputInvalid: R,
|
|
14
|
-
"input--small": "_input--small_l9tjo_350",
|
|
15
|
-
inputSmall: V,
|
|
16
|
-
"input--has-leading-icon": "_input--has-leading-icon_l9tjo_404",
|
|
17
|
-
inputHasLeadingIcon: O,
|
|
18
|
-
"input--has-action-button": "_input--has-action-button_l9tjo_407",
|
|
19
|
-
inputHasActionButton: F,
|
|
20
|
-
"input--has-second-action-button": "_input--has-second-action-button_l9tjo_410",
|
|
21
|
-
inputHasSecondActionButton: M,
|
|
22
|
-
"input--has-affix": "_input--has-affix_l9tjo_422",
|
|
23
|
-
inputHasAffix: T,
|
|
24
|
-
"input--is-ready": "_input--is-ready_l9tjo_436",
|
|
25
|
-
inputIsReady: G,
|
|
26
|
-
root: J,
|
|
27
|
-
hint: K,
|
|
28
|
-
label: Q,
|
|
29
|
-
wrapper: U,
|
|
30
|
-
"action-button": "_action-button_l9tjo_461",
|
|
31
|
-
actionButton: W,
|
|
32
|
-
"label--hidden": "_label--hidden_l9tjo_480",
|
|
33
|
-
labelHidden: X,
|
|
34
|
-
"label--disabled": "_label--disabled_l9tjo_493",
|
|
35
|
-
labelDisabled: Y,
|
|
36
|
-
feedback: Z
|
|
37
|
-
}, z = ({ id: a, label: o }) => {
|
|
38
|
-
if (!a)
|
|
39
|
-
throw new Error(
|
|
40
|
-
h(
|
|
41
|
-
"DSInputPassword",
|
|
42
|
-
'A unique "id" prop is required. Please add an unique "id" prop to the DSInputPassword component.'
|
|
43
|
-
)
|
|
44
|
-
);
|
|
45
|
-
if (!o)
|
|
46
|
-
throw new Error(
|
|
47
|
-
h(
|
|
48
|
-
"DSInputPassword",
|
|
49
|
-
`A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSInputPassword component. If you don't want to display a label, set hideLabel={true}.`
|
|
50
|
-
)
|
|
51
|
-
);
|
|
52
|
-
}, ut = ({
|
|
53
|
-
id: a,
|
|
54
|
-
label: o,
|
|
55
|
-
autocomplete: j = "new-password",
|
|
56
|
-
className: f,
|
|
57
|
-
disabled: i = !1,
|
|
58
|
-
hidePasswordText: w = "Hide password",
|
|
59
|
-
hint: l,
|
|
60
|
-
hideLabel: y = !1,
|
|
61
|
-
invalid: s = !1,
|
|
62
|
-
readonly: c = !1,
|
|
63
|
-
required: r = !1,
|
|
64
|
-
showPasswordText: S = "Show password",
|
|
65
|
-
size: u = "medium",
|
|
66
|
-
systemFeedback: p,
|
|
67
|
-
...x
|
|
68
|
-
}) => {
|
|
69
|
-
process.env.NODE_ENV !== "production" && z({
|
|
70
|
-
id: a,
|
|
71
|
-
label: o
|
|
72
|
-
});
|
|
73
|
-
const [d, I] = A(!1), _ = `${a}-label`, b = `${a}-feedback`, m = `${a}-hint`, v = l ? ` ${m}` : "", B = C(y), H = e(t.root, f), g = e(t.input, {
|
|
74
|
-
// small input
|
|
75
|
-
[t.inputSmall]: u === "small",
|
|
76
|
-
// invalid state
|
|
77
|
-
[t.inputInvalid]: s,
|
|
78
|
-
// action button - input password always has an action button
|
|
79
|
-
[t.inputHasActionButton]: !0
|
|
80
|
-
}), D = e(t.label, {
|
|
81
|
-
// hide label only visually to keep them available for assistive technologies
|
|
82
|
-
[t.labelHidden]: B,
|
|
83
|
-
[t.labelDisabled]: i
|
|
84
|
-
}), P = e(t.actionButton, {
|
|
85
|
-
[t.actionButtonSmall]: u === "small"
|
|
86
|
-
}), N = () => {
|
|
87
|
-
I((k) => !k);
|
|
88
|
-
};
|
|
89
|
-
return /* @__PURE__ */ n.jsxs("div", { className: H, children: [
|
|
90
|
-
/* @__PURE__ */ n.jsxs("label", { className: D, id: _, htmlFor: a, children: [
|
|
91
|
-
o,
|
|
92
|
-
r && /* @__PURE__ */ n.jsx(L, {})
|
|
93
|
-
] }),
|
|
94
|
-
l && /* @__PURE__ */ n.jsx("div", { className: t.hint, id: m, children: l }),
|
|
95
|
-
s && p && /* @__PURE__ */ n.jsx(
|
|
96
|
-
E,
|
|
97
|
-
{
|
|
98
|
-
className: t.feedback,
|
|
99
|
-
message: p,
|
|
100
|
-
type: "invalid",
|
|
101
|
-
id: b
|
|
102
|
-
}
|
|
103
|
-
),
|
|
104
|
-
/* @__PURE__ */ n.jsxs("div", { className: t.wrapper, children: [
|
|
105
|
-
/* @__PURE__ */ n.jsx(
|
|
106
|
-
"input",
|
|
107
|
-
{
|
|
108
|
-
className: g,
|
|
109
|
-
id: a,
|
|
110
|
-
...x,
|
|
111
|
-
"aria-labelledby": `${_}${v}`,
|
|
112
|
-
"aria-describedby": s && p ? b : void 0,
|
|
113
|
-
"aria-invalid": s,
|
|
114
|
-
"aria-disabled": c,
|
|
115
|
-
readOnly: c,
|
|
116
|
-
required: r,
|
|
117
|
-
disabled: i,
|
|
118
|
-
autoComplete: j,
|
|
119
|
-
type: d ? "text" : "password"
|
|
120
|
-
}
|
|
121
|
-
),
|
|
122
|
-
/* @__PURE__ */ n.jsx(
|
|
123
|
-
$,
|
|
124
|
-
{
|
|
125
|
-
hideLabel: !0,
|
|
126
|
-
theme: "light",
|
|
127
|
-
iconName: d ? "eye-closed" : "eye",
|
|
128
|
-
variant: "ghost",
|
|
129
|
-
className: P,
|
|
130
|
-
size: u,
|
|
131
|
-
onClick: N,
|
|
132
|
-
type: "button",
|
|
133
|
-
disabled: i,
|
|
134
|
-
children: d ? w : S
|
|
135
|
-
}
|
|
136
|
-
)
|
|
137
|
-
] })
|
|
138
|
-
] });
|
|
139
|
-
};
|
|
140
|
-
export {
|
|
141
|
-
ut as D,
|
|
142
|
-
z as v
|
|
143
|
-
};
|