@stihl-design-system/components 1.0.0-RC.4 → 1.0.0-RC.6
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/Klarna.svg +1 -0
- package/Mastercard.svg +2 -0
- package/PayPal.svg +2 -0
- package/Placeholder.svg +1 -0
- package/Visa.svg +2 -0
- package/arialiveregions.BvZhV6hb.js +27 -0
- package/assets/CustomReactSelect.Bsphydqt.css +1 -0
- package/assets/Fieldset.D0jHAGRL.css +1 -0
- package/assets/Icon.Duy_0R8w.css +1 -0
- package/assets/InputPassword.VCNO8ANM.css +1 -0
- package/assets/InputSearch.BMRAb95l.css +1 -0
- package/assets/InputStepper.BKjqNi-i.css +1 -0
- package/assets/Notification.Bg63cvs4.css +1 -0
- package/assets/RadioGroup.Bz3_xkZU.css +1 -0
- package/assets/Select.Bz1TImkI.css +1 -0
- package/assets/Textarea.D2h5cW_t.css +1 -0
- package/assets/Toast.BzVaebc0.css +1 -0
- package/assets/{arialiveregions.VnhjP8Gr.css → arialiveregions.GsGx2USO.css} +1 -1
- package/assets/{asterisk.C-o6rbGQ.css → asterisk.JlyPArZu.css} +1 -1
- package/assets/button.BdxtFZKx.css +1 -0
- package/assets/buttonround.pR4StXA7.css +1 -0
- package/assets/checkbox.BjIn2stV.css +1 -0
- package/assets/dialog.CKwM2EBH.css +1 -0
- package/assets/floatingactionbutton.CUvMbEMf.css +1 -0
- package/assets/heading.CCbuI4X-.css +1 -0
- package/assets/input.71tOIrpp.css +1 -0
- package/assets/link.D61tKkSK.css +1 -0
- package/assets/linkstandalone.Bx8Uvo0G.css +1 -0
- package/assets/logo.C05WqGId.css +1 -0
- package/assets/optioncheckbox.BdRJHcSw.css +1 -0
- package/assets/radio.ewRpPo4W.css +1 -0
- package/assets/skiptocontent.DGVJ77cj.css +1 -0
- package/assets/spinner.D_Nnf1ZG.css +1 -0
- package/assets/switch.Ds-I_ybT.css +1 -0
- package/assets/{systemfeedback.WE3wClZ3.css → systemfeedback.BzJATHDd.css} +1 -1
- package/assets/text.B-CTuGgI.css +1 -0
- package/assets/{title.CE0Dm7PI.css → title.DlhX9K3W.css} +1 -1
- package/asterisk.Cjbk-xZi.js +8 -0
- package/button.L1lgCuM9.js +135 -0
- package/buttonround.ddSqXjYf.js +118 -0
- package/checkbox.DNHdo6_n.js +113 -0
- package/checkboxgroup.DqWlzAeR.js +9 -0
- package/chunks/{CheckboxGroup.CS6Q_TeZ.js → CheckboxGroup.DsQ6lI5a.js} +22 -22
- package/chunks/{CustomReactSelect.DtmbYZUf.js → CustomReactSelect.5dHi6PEO.js} +909 -959
- package/chunks/Fieldset.B1vsrHNv.js +99 -0
- package/chunks/{Icon.9gDIp6p4.js → Icon.n4XZrQ4N.js} +33 -27
- package/chunks/InputPassword.a7zHKrmM.js +140 -0
- package/chunks/InputSearch.DITRiB92.js +189 -0
- package/chunks/InputStepper.BkncCNwJ.js +291 -0
- package/chunks/Notification.DVVuSOqG.js +93 -0
- package/chunks/RadioGroup.BO4pbAJw.js +132 -0
- package/chunks/RadioGroup.module.BBZwHDjW.js +11 -0
- package/chunks/Select.COdS787F.js +191 -0
- package/chunks/Textarea.oqCrSopu.js +195 -0
- package/chunks/Toast.RON4bFPY.js +89 -0
- package/chunks/{jsx-runtime.C-kxDJ4g.js → jsx-runtime.C115EyI4.js} +3 -7
- package/{combobox.BaSkiD6f.js → combobox.CRlhqmuO.js} +2 -2
- package/components/Radio/Radio.d.ts +11 -3
- package/components/RadioGroup/RadioGroup.d.ts +6 -3
- package/components/RadioGroup/RadioGroup.utils.d.ts +5 -3
- package/components/RadioGroup/RadioGroup.utils.test.d.ts +1 -0
- package/components/SkipToContent/SkipToContent.d.ts +12 -0
- package/components/SkipToContent/SkipToContent.test.d.ts +1 -0
- package/customreactselect.CD58gwtp.js +13 -0
- package/dialog.0qPUVJha.js +45 -0
- package/fieldset.aY3V2jK2.js +11 -0
- package/floatingactionbutton.D_e4vz2G.js +87 -0
- package/heading.BTNroD1E.js +50 -0
- package/icon.D3RXjzh4.js +8 -0
- package/index.d.ts +1 -0
- package/index.es.js +66 -62
- package/input.ChVISFEX.js +236 -0
- package/inputpassword.Ba9SUUIK.js +12 -0
- package/inputsearch.BK-0OTwA.js +13 -0
- package/inputstepper.CTpTeXL9.js +13 -0
- package/link.SAcKvzJ3.js +115 -0
- package/linkstandalone.DNe0Nydm.js +79 -0
- package/{logo.C_oJ8isW.js → logo.BR_CUXFl.js} +16 -16
- package/notification.Csn5QCR2.js +9 -0
- package/{optioncheckbox.CUV1MQhh.js → optioncheckbox.C4l2UIak.js} +7 -7
- package/package.json +28 -24
- package/partials/index.js +51 -79
- package/radio.epf54-sG.js +115 -0
- package/radiogroup.CiENWRos.js +11 -0
- package/select.DLYav8gw.js +12 -0
- package/skiptocontent._YZRKxnc.js +44 -0
- package/skiptocontent.d.ts +1 -0
- package/spinner.DVa112nj.js +58 -0
- package/styles/scss/lib/_animation.scss +15 -14
- package/styles/scss/lib/_container-query.scss +3 -3
- package/styles/scss/lib/_grid-sidebar.scss +14 -7
- package/styles/scss/lib/_link.scss +48 -42
- package/styles/scss/lib/_media-query.scss +3 -3
- package/styles/scss/lib/_transition.scss +26 -7
- package/switch.rd7PdLc9.js +65 -0
- package/{systemfeedback.4Hkfigi-.js → systemfeedback.CUWch42u.js} +3 -3
- package/text.CrYUewrP.js +57 -0
- package/{textarea.DPy3TJJf.js → textarea.hLgeYdsI.js} +4 -4
- package/title.Dvp8LKJt.js +36 -0
- package/toast.r_yhGYEe.js +10 -0
- package/{toastmanager.DQ_-eTrx.js → toastmanager.D-uIi-TS.js} +2 -2
- package/utils/index.d.ts +1 -0
- package/utils/remove-spaces.d.ts +6 -0
- package/utils/remove-spaces.test.d.ts +1 -0
- package/arialiveregions.49Zyf6mj.js +0 -27
- package/assets/CustomReactSelect.B0rJLjN0.css +0 -1
- package/assets/Fieldset.xazpUXJX.css +0 -1
- package/assets/Icon.CB-KQmw4.css +0 -1
- package/assets/InputPassword.C3Uyj7oA.css +0 -1
- package/assets/InputSearch.tL3e9-Ob.css +0 -1
- package/assets/InputStepper.paPJix5A.css +0 -1
- package/assets/Notification.CCCbfXEz.css +0 -1
- package/assets/RadioGroup.Ur8Ro-XL.css +0 -1
- package/assets/Select.D2qBxaHP.css +0 -1
- package/assets/Textarea.BKbocznb.css +0 -1
- package/assets/Toast.CAP_EwDX.css +0 -1
- package/assets/button.BuIpnG-S.css +0 -1
- package/assets/buttonround.C3ph5Yyu.css +0 -1
- package/assets/checkbox.BsFEWfQe.css +0 -1
- package/assets/dialog.BGK3mgk7.css +0 -1
- package/assets/floatingactionbutton.D7ywURL3.css +0 -1
- package/assets/heading.CGFucb-C.css +0 -1
- package/assets/input.BcP5kkZ2.css +0 -1
- package/assets/link.DQy_OhwC.css +0 -1
- package/assets/linkstandalone.Dh6bE5Fb.css +0 -1
- package/assets/logo.BbHYgnWo.css +0 -1
- package/assets/optioncheckbox.C-K1FLhc.css +0 -1
- package/assets/radio.CSHQGdpr.css +0 -1
- package/assets/spinner.C5rBmKiF.css +0 -1
- package/assets/switch.sqve8ApJ.css +0 -1
- package/assets/text.DDAveG7E.css +0 -1
- package/asterisk.DU8THnoC.js +0 -8
- package/button.DX_nxoJC.js +0 -135
- package/buttonround.CXsBk9nL.js +0 -118
- package/checkbox.B43oeMeC.js +0 -112
- package/checkboxgroup.C7aCjYds.js +0 -9
- package/chunks/Fieldset.BokeZzG5.js +0 -99
- package/chunks/InputPassword.jpUCijp7.js +0 -140
- package/chunks/InputSearch.BmOtAZcR.js +0 -190
- package/chunks/InputStepper.DTKjUL4U.js +0 -291
- package/chunks/Notification.CUPOlHAX.js +0 -93
- package/chunks/RadioGroup.DpwnVv7u.js +0 -110
- package/chunks/RadioGroup.module.bi3leRes.js +0 -11
- package/chunks/Select.DkDZo0ky.js +0 -193
- package/chunks/Textarea.C938p79X.js +0 -195
- package/chunks/Toast.CLYrwQVO.js +0 -89
- package/customreactselect.LTbjaBN2.js +0 -13
- package/dialog.BkXwcbUh.js +0 -45
- package/fieldset.BXOWK-B-.js +0 -11
- package/floatingactionbutton.-nDRRiXY.js +0 -87
- package/heading.DqGbFfj2.js +0 -50
- package/icon.Cpp_9L1I.js +0 -8
- package/input.BM6tyRUm.js +0 -236
- package/inputpassword.DUxH1K_k.js +0 -12
- package/inputsearch.B-vePHle.js +0 -13
- package/inputstepper.C2ypADPI.js +0 -13
- package/link.B4XZoLDj.js +0 -115
- package/linkstandalone.BSfd95Pd.js +0 -79
- package/notification.CxxAOdNV.js +0 -9
- package/radio.Bhu9OUY-.js +0 -79
- package/radiogroup.CMJ1b38q.js +0 -11
- package/select.DFJK2mHF.js +0 -12
- package/spinner.BskX4ovu.js +0 -58
- package/switch.Bx2tDKx0.js +0 -65
- package/text.CPU8IUqY.js +0 -57
- package/title.icX0VDiO.js +0 -36
- package/toast.C-Yg5EoE.js +0 -10
package/link.SAcKvzJ3.js
ADDED
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as d } from "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
|
+
import { c as g } from "./chunks/index.CvOaL64Y.js";
|
|
4
|
+
import { u as h } from "./chunks/useBreakpoint.5xBNDiCf.js";
|
|
5
|
+
import { D as H } from "./chunks/Icon.n4XZrQ4N.js";
|
|
6
|
+
import './assets/link.D61tKkSK.css';const S = "_root_rd44x_151", b = "_root--highlight_rd44x_219", j = "_root--dark-highlight_rd44x_219", L = "_root--filled_rd44x_297", C = "_root--outline_rd44x_325", N = "_root--ghost_rd44x_352", T = "_root--ghost-flush_rd44x_377", B = "_root--small_rd44x_383", E = "_root--dark-filled_rd44x_460", R = "_root--dark-outline_rd44x_519", V = "_root--dark-ghost_rd44x_577", q = "_root--dark-ghost-flush_rd44x_633", w = "_root--icon-left_rd44x_692", A = "_root--icon-only_rd44x_708", J = "_root--icon-only-small_rd44x_717", K = "_label--hidden_rd44x_728", o = {
|
|
7
|
+
root: S,
|
|
8
|
+
"root--highlight": "_root--highlight_rd44x_219",
|
|
9
|
+
rootHighlight: b,
|
|
10
|
+
"root--dark-highlight": "_root--dark-highlight_rd44x_219",
|
|
11
|
+
rootDarkHighlight: j,
|
|
12
|
+
"root--filled": "_root--filled_rd44x_297",
|
|
13
|
+
rootFilled: L,
|
|
14
|
+
"root--outline": "_root--outline_rd44x_325",
|
|
15
|
+
rootOutline: C,
|
|
16
|
+
"root--ghost": "_root--ghost_rd44x_352",
|
|
17
|
+
rootGhost: N,
|
|
18
|
+
"root--ghost-flush": "_root--ghost-flush_rd44x_377",
|
|
19
|
+
rootGhostFlush: T,
|
|
20
|
+
"root--small": "_root--small_rd44x_383",
|
|
21
|
+
rootSmall: B,
|
|
22
|
+
"root--dark-filled": "_root--dark-filled_rd44x_460",
|
|
23
|
+
rootDarkFilled: E,
|
|
24
|
+
"root--dark-outline": "_root--dark-outline_rd44x_519",
|
|
25
|
+
rootDarkOutline: R,
|
|
26
|
+
"root--dark-ghost": "_root--dark-ghost_rd44x_577",
|
|
27
|
+
rootDarkGhost: V,
|
|
28
|
+
"root--dark-ghost-flush": "_root--dark-ghost-flush_rd44x_633",
|
|
29
|
+
rootDarkGhostFlush: q,
|
|
30
|
+
"root--icon-left": "_root--icon-left_rd44x_692",
|
|
31
|
+
rootIconLeft: w,
|
|
32
|
+
"root--icon-only": "_root--icon-only_rd44x_708",
|
|
33
|
+
rootIconOnly: A,
|
|
34
|
+
"root--icon-only-small": "_root--icon-only-small_rd44x_717",
|
|
35
|
+
rootIconOnlySmall: J,
|
|
36
|
+
"label--hidden": "_label--hidden_rd44x_728",
|
|
37
|
+
labelHidden: K
|
|
38
|
+
}, W = ({
|
|
39
|
+
children: c,
|
|
40
|
+
aria: k,
|
|
41
|
+
className: u,
|
|
42
|
+
dataTrackingid: x,
|
|
43
|
+
download: f,
|
|
44
|
+
hideLabel: s = !1,
|
|
45
|
+
href: i,
|
|
46
|
+
iconName: n,
|
|
47
|
+
iconPosition: m = "left",
|
|
48
|
+
iconSource: a,
|
|
49
|
+
isFlush: l = !1,
|
|
50
|
+
referrerPolicy: D,
|
|
51
|
+
rel: y,
|
|
52
|
+
size: _ = "medium",
|
|
53
|
+
target: G = "_self",
|
|
54
|
+
theme: r = "light",
|
|
55
|
+
variant: t = "filled",
|
|
56
|
+
...O
|
|
57
|
+
}) => {
|
|
58
|
+
const I = g(o.root, u, {
|
|
59
|
+
// variant
|
|
60
|
+
[o.rootFilled]: t === "filled",
|
|
61
|
+
[o.rootHighlight]: t === "highlight",
|
|
62
|
+
[o.rootOutline]: t === "outline",
|
|
63
|
+
[o.rootGhost]: t === "ghost" && l !== !0,
|
|
64
|
+
// isFlush
|
|
65
|
+
[o.rootGhostFlush]: t === "ghost" && l === !0,
|
|
66
|
+
// dark theme
|
|
67
|
+
[o.rootDarkFilled]: r === "dark" && t === "filled",
|
|
68
|
+
[o.rootDarkHighlight]: r === "dark" && t === "highlight",
|
|
69
|
+
[o.rootDarkOutline]: r === "dark" && t === "outline",
|
|
70
|
+
[o.rootDarkGhost]: r === "dark" && t === "ghost" && l !== !0,
|
|
71
|
+
// dark isFlush
|
|
72
|
+
[o.rootDarkGhostFlush]: r === "dark" && t === "ghost" && l === !0,
|
|
73
|
+
// size
|
|
74
|
+
[o.rootSmall]: _ === "small",
|
|
75
|
+
// icon position
|
|
76
|
+
[o.rootIconLeft]: m === "left",
|
|
77
|
+
// icon only
|
|
78
|
+
[o.rootIconOnly]: h(s) && _ === "medium",
|
|
79
|
+
[o.rootIconOnlySmall]: h(s) && _ === "small"
|
|
80
|
+
}), p = g({
|
|
81
|
+
// hide label only visually to keep them available for assistive technologies
|
|
82
|
+
[o.labelHidden]: h(s)
|
|
83
|
+
}), F = r === "light" && t === "filled" || r === "dark" && t === "outline" || r === "dark" && t === "ghost" ? "dark" : "light", e = i === void 0 ? "span" : "a";
|
|
84
|
+
return /* @__PURE__ */ d.jsxs(
|
|
85
|
+
e,
|
|
86
|
+
{
|
|
87
|
+
className: I,
|
|
88
|
+
"data-trackingid": x,
|
|
89
|
+
...e === "a" && {
|
|
90
|
+
href: i,
|
|
91
|
+
target: G,
|
|
92
|
+
rel: y,
|
|
93
|
+
referrerPolicy: D,
|
|
94
|
+
download: f
|
|
95
|
+
},
|
|
96
|
+
...k,
|
|
97
|
+
...O,
|
|
98
|
+
children: [
|
|
99
|
+
/* @__PURE__ */ d.jsx("span", { className: p, children: c }),
|
|
100
|
+
(n || a) && /* @__PURE__ */ d.jsx(
|
|
101
|
+
H,
|
|
102
|
+
{
|
|
103
|
+
name: n,
|
|
104
|
+
theme: F,
|
|
105
|
+
source: a,
|
|
106
|
+
"aria-hidden": "true"
|
|
107
|
+
}
|
|
108
|
+
)
|
|
109
|
+
]
|
|
110
|
+
}
|
|
111
|
+
);
|
|
112
|
+
};
|
|
113
|
+
export {
|
|
114
|
+
W as DSLink
|
|
115
|
+
};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as i } from "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
|
+
import { c as x } from "./chunks/index.CvOaL64Y.js";
|
|
4
|
+
import { D as H } from "./chunks/Icon.n4XZrQ4N.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import './assets/linkstandalone.Bx8Uvo0G.css';const j = "_root_79ned_76", v = "_root--highlight_79ned_152", L = "_root--neutral-dark_79ned_228", N = "_root--highlight-dark_79ned_304", I = "_root--active_79ned_380", A = "_root--icon-left_79ned_386", o = {
|
|
7
|
+
root: j,
|
|
8
|
+
"root--highlight": "_root--highlight_79ned_152",
|
|
9
|
+
rootHighlight: v,
|
|
10
|
+
"root--neutral-dark": "_root--neutral-dark_79ned_228",
|
|
11
|
+
rootNeutralDark: L,
|
|
12
|
+
"root--highlight-dark": "_root--highlight-dark_79ned_304",
|
|
13
|
+
rootHighlightDark: N,
|
|
14
|
+
"root--active": "_root--active_79ned_380",
|
|
15
|
+
rootActive: I,
|
|
16
|
+
"root--icon-left": "_root--icon-left_79ned_386",
|
|
17
|
+
rootIconLeft: A
|
|
18
|
+
}, C = ({
|
|
19
|
+
children: h,
|
|
20
|
+
aria: s,
|
|
21
|
+
active: _,
|
|
22
|
+
className: g,
|
|
23
|
+
dataTrackingid: c,
|
|
24
|
+
download: d,
|
|
25
|
+
href: e,
|
|
26
|
+
iconName: a,
|
|
27
|
+
iconPosition: k = "left",
|
|
28
|
+
iconSource: n,
|
|
29
|
+
referrerPolicy: u,
|
|
30
|
+
rel: f,
|
|
31
|
+
target: m = "_self",
|
|
32
|
+
theme: t = "light",
|
|
33
|
+
variant: r = "neutral",
|
|
34
|
+
...D
|
|
35
|
+
}) => {
|
|
36
|
+
const p = x(o.root, g, {
|
|
37
|
+
// variant
|
|
38
|
+
[o.rootHighlight]: r === "highlight",
|
|
39
|
+
// theme
|
|
40
|
+
[o.rootNeutralDark]: t === "dark" && r === "neutral",
|
|
41
|
+
[o.rootHighlightDark]: t === "dark" && r === "highlight",
|
|
42
|
+
// active
|
|
43
|
+
[o.rootActive]: _,
|
|
44
|
+
// icon position
|
|
45
|
+
[o.rootIconLeft]: k === "left"
|
|
46
|
+
}), l = e === void 0 ? "span" : "a";
|
|
47
|
+
return /* @__PURE__ */ i.jsxs(
|
|
48
|
+
l,
|
|
49
|
+
{
|
|
50
|
+
className: p,
|
|
51
|
+
"data-trackingid": c,
|
|
52
|
+
...l === "a" && {
|
|
53
|
+
href: e,
|
|
54
|
+
target: m,
|
|
55
|
+
rel: f,
|
|
56
|
+
referrerPolicy: u,
|
|
57
|
+
download: d
|
|
58
|
+
},
|
|
59
|
+
...s,
|
|
60
|
+
...D,
|
|
61
|
+
children: [
|
|
62
|
+
/* @__PURE__ */ i.jsx("span", { className: o.label, children: h }),
|
|
63
|
+
(a || n) && /* @__PURE__ */ i.jsx(
|
|
64
|
+
H,
|
|
65
|
+
{
|
|
66
|
+
name: a,
|
|
67
|
+
theme: t,
|
|
68
|
+
source: n,
|
|
69
|
+
size: "medium",
|
|
70
|
+
"aria-hidden": "true"
|
|
71
|
+
}
|
|
72
|
+
)
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
};
|
|
77
|
+
export {
|
|
78
|
+
C as DSLinkStandalone
|
|
79
|
+
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { j as a } from "./chunks/jsx-runtime.
|
|
2
|
+
import { j as a } from "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
3
|
import { c as n } from "./chunks/index.CvOaL64Y.js";
|
|
4
|
-
import './assets/logo.
|
|
5
|
-
anchor:
|
|
6
|
-
svg:
|
|
7
|
-
"anchor--dark": "_anchor--
|
|
8
|
-
anchorDark:
|
|
9
|
-
"svg-background": "_svg-
|
|
10
|
-
svgBackground:
|
|
11
|
-
"svg-background--dark": "_svg-background--
|
|
12
|
-
svgBackgroundDark:
|
|
13
|
-
"svg-text": "_svg-
|
|
14
|
-
svgText:
|
|
15
|
-
"svg-text--dark": "_svg-text--
|
|
16
|
-
svgTextDark:
|
|
4
|
+
import './assets/logo.C05WqGId.css';const d = "_anchor_1z0x0_76", l = "_svg_1z0x0_77", v = "_anchor--dark_1z0x0_116", e = "_svg-background_1z0x0_147", u = "_svg-background--dark_1z0x0_150", i = "_svg-text_1z0x0_153", z = "_svg-text--dark_1z0x0_156", s = {
|
|
5
|
+
anchor: d,
|
|
6
|
+
svg: l,
|
|
7
|
+
"anchor--dark": "_anchor--dark_1z0x0_116",
|
|
8
|
+
anchorDark: v,
|
|
9
|
+
"svg-background": "_svg-background_1z0x0_147",
|
|
10
|
+
svgBackground: e,
|
|
11
|
+
"svg-background--dark": "_svg-background--dark_1z0x0_150",
|
|
12
|
+
svgBackgroundDark: u,
|
|
13
|
+
"svg-text": "_svg-text_1z0x0_153",
|
|
14
|
+
svgText: i,
|
|
15
|
+
"svg-text--dark": "_svg-text--dark_1z0x0_156",
|
|
16
|
+
svgTextDark: z
|
|
17
17
|
}, B = ({
|
|
18
18
|
aria: _,
|
|
19
19
|
className: c,
|
|
@@ -21,7 +21,7 @@ import './assets/logo.BbHYgnWo.css';const l = "_anchor_12s9w_63", v = "_svg_12s9
|
|
|
21
21
|
target: h = "_self",
|
|
22
22
|
theme: g,
|
|
23
23
|
variant: k = "standard",
|
|
24
|
-
...
|
|
24
|
+
...x
|
|
25
25
|
}) => {
|
|
26
26
|
const t = k === "background" || g === "dark", o = /* @__PURE__ */ a.jsxs(
|
|
27
27
|
"svg",
|
|
@@ -59,7 +59,7 @@ import './assets/logo.BbHYgnWo.css';const l = "_anchor_12s9w_63", v = "_svg_12s9
|
|
|
59
59
|
href: r,
|
|
60
60
|
target: h,
|
|
61
61
|
..._,
|
|
62
|
-
...
|
|
62
|
+
...x,
|
|
63
63
|
children: o
|
|
64
64
|
}
|
|
65
65
|
) : o;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
|
+
import "./chunks/index.CvOaL64Y.js";
|
|
4
|
+
import "./chunks/Icon.n4XZrQ4N.js";
|
|
5
|
+
import { D as e } from "./chunks/Notification.DVVuSOqG.js";
|
|
6
|
+
import "./button.L1lgCuM9.js";
|
|
7
|
+
export {
|
|
8
|
+
e as DSNotification
|
|
9
|
+
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { j as e } from "./chunks/jsx-runtime.
|
|
2
|
+
import { j as e } from "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
3
|
import { c as s } from "./chunks/index.CvOaL64Y.js";
|
|
4
|
-
import { D as _ } from "./chunks/Icon.
|
|
5
|
-
import './assets/optioncheckbox.
|
|
4
|
+
import { D as _ } from "./chunks/Icon.n4XZrQ4N.js";
|
|
5
|
+
import './assets/optioncheckbox.BdRJHcSw.css';const l = "_root_1v9si_151", k = "_root--disabled_1v9si_170", d = "_checkbox_1v9si_174", n = "_icon-check_1v9si_190", r = "_checkbox--checked_1v9si_211", x = "_checkbox--disabled_1v9si_214", m = "_label_1v9si_231", c = {
|
|
6
6
|
root: l,
|
|
7
|
-
"root--disabled": "_root--
|
|
7
|
+
"root--disabled": "_root--disabled_1v9si_170",
|
|
8
8
|
rootDisabled: k,
|
|
9
9
|
checkbox: d,
|
|
10
|
-
"icon-check": "_icon-
|
|
10
|
+
"icon-check": "_icon-check_1v9si_190",
|
|
11
11
|
iconCheck: n,
|
|
12
|
-
"checkbox--checked": "_checkbox--
|
|
12
|
+
"checkbox--checked": "_checkbox--checked_1v9si_211",
|
|
13
13
|
checkboxChecked: r,
|
|
14
|
-
"checkbox--disabled": "_checkbox--
|
|
14
|
+
"checkbox--disabled": "_checkbox--disabled_1v9si_214",
|
|
15
15
|
checkboxDisabled: x,
|
|
16
16
|
label: m
|
|
17
17
|
}, D = ({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stihl-design-system/components",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.0.0-RC.
|
|
4
|
+
"version": "1.0.0-RC.6",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"homepage": "https://main--63440bbb95889041542a5ba3.chromatic.com",
|
|
7
7
|
"keywords": [
|
|
@@ -74,29 +74,33 @@
|
|
|
74
74
|
"test:vrt": "npx playwright test --config=playwright.config.vrt.ts"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@babel/core": "^7.24.
|
|
77
|
+
"@babel/core": "^7.24.9",
|
|
78
78
|
"@juggle/resize-observer": "^3.4.0",
|
|
79
|
-
"@playwright/test": "^1.
|
|
79
|
+
"@playwright/test": "^1.45.2",
|
|
80
80
|
"@react-docgen/cli": "^2.0.3",
|
|
81
|
-
"@storybook/addon-a11y": "^8.
|
|
82
|
-
"@storybook/addon-actions": "^8.
|
|
83
|
-
"@storybook/addon-essentials": "^8.
|
|
84
|
-
"@storybook/addon-interactions": "^8.
|
|
85
|
-
"@storybook/addon-links": "^8.
|
|
86
|
-
"@storybook/blocks": "^8.
|
|
87
|
-
"@storybook/
|
|
88
|
-
"@storybook/
|
|
89
|
-
"@storybook/
|
|
90
|
-
"@storybook/
|
|
91
|
-
"@
|
|
92
|
-
"@
|
|
93
|
-
"@
|
|
81
|
+
"@storybook/addon-a11y": "^8.2.4",
|
|
82
|
+
"@storybook/addon-actions": "^8.2.4",
|
|
83
|
+
"@storybook/addon-essentials": "^8.2.4",
|
|
84
|
+
"@storybook/addon-interactions": "^8.2.4",
|
|
85
|
+
"@storybook/addon-links": "^8.2.4",
|
|
86
|
+
"@storybook/blocks": "^8.2.4",
|
|
87
|
+
"@storybook/core-events": "^8.2.4",
|
|
88
|
+
"@storybook/manager-api": "^8.2.4",
|
|
89
|
+
"@storybook/preview-api": "^8.2.4",
|
|
90
|
+
"@storybook/react": "^8.2.4",
|
|
91
|
+
"@storybook/react-vite": "^8.2.4",
|
|
92
|
+
"@storybook/test": "^8.2.4",
|
|
93
|
+
"@storybook/test-runner": "^0.19.1",
|
|
94
|
+
"@storybook/theming": "^8.2.4",
|
|
95
|
+
"@testing-library/jest-dom": "^6.4.6",
|
|
96
|
+
"@testing-library/react": "^16.0.0",
|
|
97
|
+
"@types/node": "^20.14.10",
|
|
94
98
|
"@types/react": "^18.3.3",
|
|
95
99
|
"@types/react-dom": "^18.3.0",
|
|
96
100
|
"@types/react-syntax-highlighter": "^15.5.13",
|
|
97
101
|
"@typescript-eslint/eslint-plugin": "^7.9.0",
|
|
98
102
|
"@typescript-eslint/parser": "^7.9.0",
|
|
99
|
-
"@vitejs/plugin-react": "^4.
|
|
103
|
+
"@vitejs/plugin-react": "^4.3.1",
|
|
100
104
|
"anima-storybook-cli": "^0.13.1",
|
|
101
105
|
"axe-playwright": "^2.0.1",
|
|
102
106
|
"babel-loader": "^9.1.3",
|
|
@@ -106,23 +110,23 @@
|
|
|
106
110
|
"eslint": "^8.57.0",
|
|
107
111
|
"eslint-plugin-react": "^7.33.2",
|
|
108
112
|
"eslint-plugin-storybook": "^0.8.0",
|
|
109
|
-
"globby": "^14.0.
|
|
113
|
+
"globby": "^14.0.2",
|
|
110
114
|
"http-server": "^14.1.1",
|
|
111
|
-
"jsdom": "^24.
|
|
115
|
+
"jsdom": "^24.1.0",
|
|
112
116
|
"react": "^18.3.1",
|
|
113
117
|
"react-docgen": "^7.0.3",
|
|
114
118
|
"react-dom": "^18.3.1",
|
|
115
|
-
"react-intersection-observer": "^9.
|
|
119
|
+
"react-intersection-observer": "^9.13.0",
|
|
116
120
|
"react-syntax-highlighter": "^15.5.0",
|
|
117
|
-
"sass": "^1.77.
|
|
118
|
-
"storybook": "^8.
|
|
121
|
+
"sass": "^1.77.8",
|
|
122
|
+
"storybook": "^8.2.4",
|
|
119
123
|
"typescript": "^5.4.5",
|
|
120
|
-
"vite": "5.
|
|
124
|
+
"vite": "^5.3.4",
|
|
121
125
|
"vite-plugin-dts": "^3.9.1",
|
|
122
126
|
"vite-plugin-eslint": "^1.8.1",
|
|
123
127
|
"vite-plugin-lib-inject-css": "^2.1.1",
|
|
124
128
|
"vite-plugin-svgr": "^4.2.0",
|
|
125
|
-
"vitest": "^
|
|
129
|
+
"vitest": "^2.0.3"
|
|
126
130
|
},
|
|
127
131
|
"peerDependencies": {
|
|
128
132
|
"classnames": "^2.5.1",
|
package/partials/index.js
CHANGED
|
@@ -10,8 +10,7 @@ var Yr = { exports: {} }, Je = {}, _r = { exports: {} }, m = {};
|
|
|
10
10
|
*/
|
|
11
11
|
var vt;
|
|
12
12
|
function Vt() {
|
|
13
|
-
if (vt)
|
|
14
|
-
return m;
|
|
13
|
+
if (vt) return m;
|
|
15
14
|
vt = 1;
|
|
16
15
|
var N = Symbol.for("react.element"), d = Symbol.for("react.portal"), J = Symbol.for("react.fragment"), H = Symbol.for("react.strict_mode"), pe = Symbol.for("react.profiler"), ne = Symbol.for("react.provider"), ae = Symbol.for("react.context"), ee = Symbol.for("react.forward_ref"), $ = Symbol.for("react.suspense"), re = Symbol.for("react.memo"), L = Symbol.for("react.lazy"), V = Symbol.iterator;
|
|
17
16
|
function te(n) {
|
|
@@ -27,8 +26,7 @@ function Vt() {
|
|
|
27
26
|
this.props = n, this.context = u, this.refs = $e, this.updater = g || X;
|
|
28
27
|
}
|
|
29
28
|
oe.prototype.isReactComponent = {}, oe.prototype.setState = function(n, u) {
|
|
30
|
-
if (typeof n != "object" && typeof n != "function" && n != null)
|
|
31
|
-
throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
29
|
+
if (typeof n != "object" && typeof n != "function" && n != null) throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");
|
|
32
30
|
this.updater.enqueueSetState(this, n, u, "setState");
|
|
33
31
|
}, oe.prototype.forceUpdate = function(n) {
|
|
34
32
|
this.updater.enqueueForceUpdate(this, n, "forceUpdate");
|
|
@@ -44,20 +42,14 @@ function Vt() {
|
|
|
44
42
|
var ue = Array.isArray, U = Object.prototype.hasOwnProperty, G = { current: null }, fe = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
45
43
|
function ve(n, u, g) {
|
|
46
44
|
var b, E = {}, P = null, O = null;
|
|
47
|
-
if (u != null)
|
|
48
|
-
for (b in u.ref !== void 0 && (O = u.ref), u.key !== void 0 && (P = "" + u.key), u)
|
|
49
|
-
U.call(u, b) && !fe.hasOwnProperty(b) && (E[b] = u[b]);
|
|
45
|
+
if (u != null) for (b in u.ref !== void 0 && (O = u.ref), u.key !== void 0 && (P = "" + u.key), u) U.call(u, b) && !fe.hasOwnProperty(b) && (E[b] = u[b]);
|
|
50
46
|
var T = arguments.length - 2;
|
|
51
|
-
if (T === 1)
|
|
52
|
-
E.children = g;
|
|
47
|
+
if (T === 1) E.children = g;
|
|
53
48
|
else if (1 < T) {
|
|
54
|
-
for (var C = Array(T), M = 0; M < T; M++)
|
|
55
|
-
C[M] = arguments[M + 2];
|
|
49
|
+
for (var C = Array(T), M = 0; M < T; M++) C[M] = arguments[M + 2];
|
|
56
50
|
E.children = C;
|
|
57
51
|
}
|
|
58
|
-
if (n && n.defaultProps)
|
|
59
|
-
for (b in T = n.defaultProps, T)
|
|
60
|
-
E[b] === void 0 && (E[b] = T[b]);
|
|
52
|
+
if (n && n.defaultProps) for (b in T = n.defaultProps, T) E[b] === void 0 && (E[b] = T[b]);
|
|
61
53
|
return { $$typeof: N, type: n, key: P, ref: O, props: E, _owner: G.current };
|
|
62
54
|
}
|
|
63
55
|
function Ce(n, u) {
|
|
@@ -80,41 +72,33 @@ function Vt() {
|
|
|
80
72
|
var P = typeof n;
|
|
81
73
|
(P === "undefined" || P === "boolean") && (n = null);
|
|
82
74
|
var O = !1;
|
|
83
|
-
if (n === null)
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
O += Q(P, u, g, C, E);
|
|
107
|
-
}
|
|
108
|
-
else if (C = te(n), typeof C == "function")
|
|
109
|
-
for (n = C.call(n), T = 0; !(P = n.next()).done; )
|
|
110
|
-
P = P.value, C = b + q(P, T++), O += Q(P, u, g, C, E);
|
|
111
|
-
else if (P === "object")
|
|
112
|
-
throw u = String(n), Error("Objects are not valid as a React child (found: " + (u === "[object Object]" ? "object with keys {" + Object.keys(n).join(", ") + "}" : u) + "). If you meant to render a collection of children, use an array instead.");
|
|
75
|
+
if (n === null) O = !0;
|
|
76
|
+
else switch (P) {
|
|
77
|
+
case "string":
|
|
78
|
+
case "number":
|
|
79
|
+
O = !0;
|
|
80
|
+
break;
|
|
81
|
+
case "object":
|
|
82
|
+
switch (n.$$typeof) {
|
|
83
|
+
case N:
|
|
84
|
+
case d:
|
|
85
|
+
O = !0;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
if (O) return O = n, E = E(O), n = b === "" ? "." + q(O, 0) : b, ue(E) ? (g = "", n != null && (g = n.replace(Te, "$&/") + "/"), Q(E, u, g, "", function(M) {
|
|
89
|
+
return M;
|
|
90
|
+
})) : E != null && (Se(E) && (E = Ce(E, g + (!E.key || O && O.key === E.key ? "" : ("" + E.key).replace(Te, "$&/") + "/") + n)), u.push(E)), 1;
|
|
91
|
+
if (O = 0, b = b === "" ? "." : b + ":", ue(n)) for (var T = 0; T < n.length; T++) {
|
|
92
|
+
P = n[T];
|
|
93
|
+
var C = b + q(P, T);
|
|
94
|
+
O += Q(P, u, g, C, E);
|
|
95
|
+
}
|
|
96
|
+
else if (C = te(n), typeof C == "function") for (n = C.call(n), T = 0; !(P = n.next()).done; ) P = P.value, C = b + q(P, T++), O += Q(P, u, g, C, E);
|
|
97
|
+
else if (P === "object") throw u = String(n), Error("Objects are not valid as a React child (found: " + (u === "[object Object]" ? "object with keys {" + Object.keys(n).join(", ") + "}" : u) + "). If you meant to render a collection of children, use an array instead.");
|
|
113
98
|
return O;
|
|
114
99
|
}
|
|
115
100
|
function Y(n, u, g) {
|
|
116
|
-
if (n == null)
|
|
117
|
-
return n;
|
|
101
|
+
if (n == null) return n;
|
|
118
102
|
var b = [], E = 0;
|
|
119
103
|
return Q(n, b, "", "", function(P) {
|
|
120
104
|
return u.call(g, P, E++);
|
|
@@ -129,8 +113,7 @@ function Vt() {
|
|
|
129
113
|
(n._status === 0 || n._status === -1) && (n._status = 2, n._result = g);
|
|
130
114
|
}), n._status === -1 && (n._status = 0, n._result = u);
|
|
131
115
|
}
|
|
132
|
-
if (n._status === 1)
|
|
133
|
-
return n._result.default;
|
|
116
|
+
if (n._status === 1) return n._result.default;
|
|
134
117
|
throw n._result;
|
|
135
118
|
}
|
|
136
119
|
var l = { current: null }, le = { transition: null }, Oe = { ReactCurrentDispatcher: l, ReactCurrentBatchConfig: le, ReactCurrentOwner: G };
|
|
@@ -151,26 +134,20 @@ function Vt() {
|
|
|
151
134
|
return u;
|
|
152
135
|
}) || [];
|
|
153
136
|
}, only: function(n) {
|
|
154
|
-
if (!Se(n))
|
|
155
|
-
throw Error("React.Children.only expected to receive a single React element child.");
|
|
137
|
+
if (!Se(n)) throw Error("React.Children.only expected to receive a single React element child.");
|
|
156
138
|
return n;
|
|
157
139
|
} }, m.Component = oe, m.Fragment = J, m.Profiler = pe, m.PureComponent = A, m.StrictMode = H, m.Suspense = $, m.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Oe, m.act = ye, m.cloneElement = function(n, u, g) {
|
|
158
|
-
if (n == null)
|
|
159
|
-
throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + n + ".");
|
|
140
|
+
if (n == null) throw Error("React.cloneElement(...): The argument must be a React element, but you passed " + n + ".");
|
|
160
141
|
var b = ce({}, n.props), E = n.key, P = n.ref, O = n._owner;
|
|
161
142
|
if (u != null) {
|
|
162
|
-
if (u.ref !== void 0 && (P = u.ref, O = G.current), u.key !== void 0 && (E = "" + u.key), n.type && n.type.defaultProps)
|
|
163
|
-
|
|
164
|
-
for (C in u)
|
|
165
|
-
U.call(u, C) && !fe.hasOwnProperty(C) && (b[C] = u[C] === void 0 && T !== void 0 ? T[C] : u[C]);
|
|
143
|
+
if (u.ref !== void 0 && (P = u.ref, O = G.current), u.key !== void 0 && (E = "" + u.key), n.type && n.type.defaultProps) var T = n.type.defaultProps;
|
|
144
|
+
for (C in u) U.call(u, C) && !fe.hasOwnProperty(C) && (b[C] = u[C] === void 0 && T !== void 0 ? T[C] : u[C]);
|
|
166
145
|
}
|
|
167
146
|
var C = arguments.length - 2;
|
|
168
|
-
if (C === 1)
|
|
169
|
-
b.children = g;
|
|
147
|
+
if (C === 1) b.children = g;
|
|
170
148
|
else if (1 < C) {
|
|
171
149
|
T = Array(C);
|
|
172
|
-
for (var M = 0; M < C; M++)
|
|
173
|
-
T[M] = arguments[M + 2];
|
|
150
|
+
for (var M = 0; M < C; M++) T[M] = arguments[M + 2];
|
|
174
151
|
b.children = T;
|
|
175
152
|
}
|
|
176
153
|
return { $$typeof: N, type: n.type, key: E, ref: P, props: b, _owner: O };
|
|
@@ -671,18 +648,17 @@ function Yt() {
|
|
|
671
648
|
k != null && (j = he(k) + "/"), Ee(R, r, j, "", function(Nt) {
|
|
672
649
|
return Nt;
|
|
673
650
|
});
|
|
674
|
-
} else
|
|
675
|
-
R
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
)), r.push(R));
|
|
651
|
+
} else R != null && (Re(R) && (R.key && (!y || y.key !== R.key) && ke(R.key), R = Cr(
|
|
652
|
+
R,
|
|
653
|
+
// Keep both the (mapped) and old keys if they differ, just as
|
|
654
|
+
// traverseAllChildren used to do for objects as children
|
|
655
|
+
a + // $FlowFixMe Flow incorrectly thinks React.Portal doesn't have a key
|
|
656
|
+
(R.key && (!y || y.key !== R.key) ? (
|
|
657
|
+
// $FlowFixMe Flow incorrectly thinks existing element's key can be a number
|
|
658
|
+
// eslint-disable-next-line react-internal/safe-string-coercion
|
|
659
|
+
he("" + R.key) + "/"
|
|
660
|
+
) : "") + k
|
|
661
|
+
)), r.push(R));
|
|
686
662
|
return 1;
|
|
687
663
|
}
|
|
688
664
|
var x, D, W = 0, z = o === "" ? or : o + Tr;
|
|
@@ -1512,18 +1488,14 @@ function _t() {
|
|
|
1512
1488
|
*/
|
|
1513
1489
|
var mt;
|
|
1514
1490
|
function Bt() {
|
|
1515
|
-
if (mt)
|
|
1516
|
-
return Je;
|
|
1491
|
+
if (mt) return Je;
|
|
1517
1492
|
mt = 1;
|
|
1518
1493
|
var N = _t(), d = Symbol.for("react.element"), J = Symbol.for("react.fragment"), H = Object.prototype.hasOwnProperty, pe = N.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, ne = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
1519
1494
|
function ae(ee, $, re) {
|
|
1520
1495
|
var L, V = {}, te = null, X = null;
|
|
1521
1496
|
re !== void 0 && (te = "" + re), $.key !== void 0 && (te = "" + $.key), $.ref !== void 0 && (X = $.ref);
|
|
1522
|
-
for (L in $)
|
|
1523
|
-
|
|
1524
|
-
if (ee && ee.defaultProps)
|
|
1525
|
-
for (L in $ = ee.defaultProps, $)
|
|
1526
|
-
V[L] === void 0 && (V[L] = $[L]);
|
|
1497
|
+
for (L in $) H.call($, L) && !ne.hasOwnProperty(L) && (V[L] = $[L]);
|
|
1498
|
+
if (ee && ee.defaultProps) for (L in $ = ee.defaultProps, $) V[L] === void 0 && (V[L] = $[L]);
|
|
1527
1499
|
return { $$typeof: d, type: ee, key: te, ref: X, props: V, _owner: pe.current };
|
|
1528
1500
|
}
|
|
1529
1501
|
return Je.Fragment = J, Je.jsx = ae, Je.jsxs = ae, Je;
|