@stihl-design-system/components 1.0.0-RC.13 → 1.0.0-RC.14
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/{accordion.Rvtiu8Y4.js → accordion.C6_sqiW2.js} +1 -1
- package/{arialiveregions.Cyycgs8g.js → arialiveregions.2dxodwBP.js} +1 -1
- package/assets/TabPane.zywjfwo8.css +1 -0
- package/assets/Tabs.DUqlqP6R.css +1 -0
- package/assets/numberindicator.BJ9vFpnd.css +1 -0
- package/{button.M4nXjcUn.js → button.BfcWQZhx.js} +1 -1
- package/{checkbox.Cb2_ey6U.js → checkbox.Dt0OWryN.js} +1 -1
- package/{checkboxgroup.DBDmB-zR.js → checkboxgroup.je32bRPr.js} +2 -2
- package/{chip.C_1tGqvZ.js → chip.CpnDX4Ro.js} +1 -1
- package/{chipgroup.BvTj1ziW.js → chipgroup.Cy76KMWu.js} +17 -16
- package/chunks/{Accordion.CB6jB3s_.js → Accordion.Bza3TO4Y.js} +1 -1
- package/chunks/AriaLiveRegions.utils.Bq6Mp2bE.js +40 -0
- package/chunks/{CheckboxGroup.S6i5EOc4.js → CheckboxGroup.C_2ZwEQJ.js} +38 -35
- package/chunks/{Chip.CMlPUyOJ.js → Chip.BvlKC503.js} +30 -24
- package/chunks/{CustomReactSelect.CQ1uexBH.js → CustomReactSelect.CB41lklE.js} +3 -3
- package/chunks/{Dialog.CudsqNag.js → Dialog.ClBjJWOh.js} +2 -2
- package/chunks/{Drawer.ueG2Bzr9.js → Drawer.ReDW3ohH.js} +2 -2
- package/chunks/{Fieldset.Cjmkgxxk.js → Fieldset.Ct_JFRs9.js} +2 -2
- package/chunks/{Input.utils.ChV6RJsh.js → Input.utils.DYbmWlx6.js} +19 -21
- package/chunks/{InputPassword.CNLbBFjx.js → InputPassword.Cvk5J8w1.js} +18 -18
- package/chunks/{InputSearch.CHA6mkX_.js → InputSearch.BIIW-ERk.js} +4 -4
- package/chunks/{InputStepper.xmWGU9pU.js → InputStepper.DGzR3KY6.js} +49 -47
- package/chunks/{Notification.nx5vTamN.js → Notification.uAEjPywP.js} +1 -1
- package/chunks/RadioGroup.D10-pe9H.js +146 -0
- package/chunks/{Select.E6gLFYLk.js → Select.DsLnW29U.js} +3 -3
- package/chunks/TabPane.CYuUi0oL.js +51 -0
- package/chunks/Tabs.D_JAsvoh.js +270 -0
- package/chunks/{Textarea.DUBSOpNL.js → Textarea.Dh9R9YdZ.js} +19 -18
- package/chunks/{Toast.DyEi2GEP.js → Toast.j7LPnQ36.js} +1 -1
- package/chunks/has-window.ut_-aShB.js +5 -0
- package/chunks/helpers.CcqWV-wZ.js +8 -0
- package/chunks/{useBreakpoint.5xBNDiCf.js → useBreakpoint.B8XxjSVJ.js} +9 -9
- package/chunks/useIsomorphicLayoutEffect.CnJ9AMFS.js +7 -0
- package/{combobox.CzBpi97e.js → combobox.D6zXg976.js} +1 -1
- package/components/AriaLiveRegions/AriaLiveRegions.utils.d.ts +2 -2
- package/components/Combobox/CustomReactSelect/CustomReactSelect.d.ts +1 -1
- package/components/Input/Input.d.ts +6 -0
- package/components/InputPassword/InputPassword.d.ts +3 -3
- package/components/NumberIndicator/NumberIndicator.d.ts +12 -0
- package/components/NumberIndicator/NumberIndicator.test.d.ts +1 -0
- package/components/NumberIndicator/NumberIndicator.utils.d.ts +2 -0
- package/components/Tabs/TabPane/TabPane.d.ts +10 -0
- package/components/Tabs/TabPane/TabPane.utils.d.ts +3 -0
- package/components/Tabs/TabPane/TabPane.utils.test.d.ts +1 -0
- package/components/Tabs/Tabs.d.ts +42 -0
- package/components/Tabs/Tabs.test.d.ts +1 -0
- package/components/Tabs/Tabs.utils.d.ts +11 -0
- package/components/Tabs/Tabs.utils.test.d.ts +1 -0
- package/{customreactselect.qf7CIeFs.js → customreactselect.BcjDvZG6.js} +2 -2
- package/{dialog.DYlBUsOD.js → dialog.BkVOgeWY.js} +2 -2
- package/{drawer.CvhbP1ra.js → drawer.DM_NKGTQ.js} +2 -2
- package/{fieldset.CtUGEdLv.js → fieldset.CSNoVbL1.js} +1 -1
- package/index.d.ts +4 -2
- package/index.es.js +134 -127
- package/{input.BEnCFNM-.js → input.BbnmbMCI.js} +49 -47
- package/{inputpassword.B-D_jB9w.js → inputpassword.KnZRwWCQ.js} +3 -3
- package/{inputsearch.CaSpklR1.js → inputsearch.DgYJPZ2v.js} +4 -4
- package/inputstepper.T_of1Gz0.js +15 -0
- package/{link.DREJAoPG.js → link.L8O_InKe.js} +1 -1
- package/{notification.6M0OdGXK.js → notification.Bt9TbAAt.js} +2 -2
- package/numberindicator.UU7FSouT.js +26 -0
- package/numberindicator.d.ts +2 -0
- package/package.json +3 -3
- package/{radio.DEILy_lV.js → radio.B-2uuWHq.js} +1 -1
- package/{radiogroup.DeU-HdlP.js → radiogroup.DM_lF4hI.js} +3 -3
- package/{select.BYraFJzz.js → select.COLuwr89.js} +2 -2
- package/{skiptocontent.BxvpIB7H.js → skiptocontent.DxogCFvU.js} +2 -2
- package/styles/scss/ds/lib/theme.scss +2 -0
- package/tabpane.BnQBzVXw.js +8 -0
- package/tabpane.d.ts +2 -0
- package/tabs.BaELlVri.js +15 -0
- package/tabs.d.ts +2 -0
- package/textarea.Wcl_pVBb.js +13 -0
- package/{toast.n1QUINSA.js → toast.DQlMWU6I.js} +2 -2
- package/{toastmanager.B7EZ4JSI.js → toastmanager.DxHFtr5C.js} +17 -17
- package/utils/helpers.d.ts +7 -0
- package/utils/index.d.ts +1 -0
- package/utils/isAnimationDisabled.d.ts +1 -0
- package/chunks/AriaLiveRegions.utils.BGSZafnS.js +0 -34
- package/chunks/RadioGroup.Crj7NoOs.js +0 -137
- package/chunks/has-document.r9i9TxKV.js +0 -5
- package/chunks/helpers.B1JT5ShS.js +0 -7
- package/inputstepper.C7KD1-0S.js +0 -13
- package/textarea.CBvH0ljM.js +0 -12
- package/utils/has-document.d.ts +0 -1
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { j as a } from "./jsx-runtime.C115EyI4.js";
|
|
3
3
|
import { c as i } from "./index.CvOaL64Y.js";
|
|
4
4
|
import { useState as A } from "react";
|
|
5
|
-
import { u as
|
|
6
|
-
import { Asterisk as
|
|
7
|
-
import { DSButton as $ } from "../button.
|
|
5
|
+
import { u as L } from "./useBreakpoint.B8XxjSVJ.js";
|
|
6
|
+
import { Asterisk as C } from "../asterisk.DpzETKdT.js";
|
|
7
|
+
import { DSButton as $ } from "../button.BfcWQZhx.js";
|
|
8
8
|
import { DSSystemFeedback as E } from "../systemfeedback.C3Pfxxpp.js";
|
|
9
|
-
import { g as m } from "./helpers.
|
|
9
|
+
import { g as m } from "./helpers.CcqWV-wZ.js";
|
|
10
10
|
import '../assets/InputPassword.CG7Ugu73.css';const q = "ds-input-password_input_1842u_1", R = "ds-input-password_input--invalid_1842u_113", V = "ds-input-password_input--small_1842u_120", O = "ds-input-password_input--has-leading-icon_1842u_173", F = "ds-input-password_input--has-action-button_1842u_176", M = "ds-input-password_input--has-second-action-button_1842u_179", T = "ds-input-password_input--has-affix_1842u_191", G = "ds-input-password_input--is-ready_1842u_205", J = "ds-input-password_root_1842u_212", K = "ds-input-password_hint_1842u_220", Q = "ds-input-password_label_1842u_220", U = "ds-input-password_wrapper_1842u_224", W = "ds-input-password_action-button_1842u_230", X = "ds-input-password_label--hidden_1842u_248", Y = "ds-input-password_label--disabled_1842u_261", Z = "ds-input-password_feedback_1842u_281", s = {
|
|
11
11
|
input: q,
|
|
12
12
|
"input--invalid": "ds-input-password_input--invalid_1842u_113",
|
|
@@ -39,7 +39,7 @@ import '../assets/InputPassword.CG7Ugu73.css';const q = "ds-input-password_input
|
|
|
39
39
|
throw new Error(
|
|
40
40
|
m(
|
|
41
41
|
"DSInputPassword",
|
|
42
|
-
'A unique "id" prop is required. Please add
|
|
42
|
+
'A unique "id" prop is required. Please add a unique "id" prop to the DSInputPassword component.'
|
|
43
43
|
)
|
|
44
44
|
);
|
|
45
45
|
if (!n)
|
|
@@ -49,10 +49,10 @@ import '../assets/InputPassword.CG7Ugu73.css';const q = "ds-input-password_input
|
|
|
49
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
50
|
)
|
|
51
51
|
);
|
|
52
|
-
},
|
|
52
|
+
}, ds = ({
|
|
53
53
|
id: t,
|
|
54
54
|
label: n,
|
|
55
|
-
|
|
55
|
+
autoComplete: h = "new-password",
|
|
56
56
|
className: f,
|
|
57
57
|
disabled: e = !1,
|
|
58
58
|
hidePasswordText: y = "Hide password",
|
|
@@ -62,17 +62,17 @@ import '../assets/InputPassword.CG7Ugu73.css';const q = "ds-input-password_input
|
|
|
62
62
|
readonly: r = !1,
|
|
63
63
|
required: c = !1,
|
|
64
64
|
showPasswordText: x = "Show password",
|
|
65
|
-
size:
|
|
66
|
-
systemFeedback:
|
|
65
|
+
size: d = "medium",
|
|
66
|
+
systemFeedback: p,
|
|
67
67
|
...I
|
|
68
68
|
}) => {
|
|
69
69
|
process.env.NODE_ENV !== "production" && z({
|
|
70
70
|
id: t,
|
|
71
71
|
label: n
|
|
72
72
|
});
|
|
73
|
-
const [l, v] = A(!1), _ = `${t}-label`, w = `${t}-feedback`, b = `${t}-hint`, B = u ? ` ${b}` : "", H =
|
|
73
|
+
const [l, v] = A(!1), _ = `${t}-label`, w = `${t}-feedback`, b = `${t}-hint`, B = u ? ` ${b}` : "", H = L(S), g = i(s.root, f), D = i(s.input, {
|
|
74
74
|
// small input
|
|
75
|
-
[s.inputSmall]:
|
|
75
|
+
[s.inputSmall]: d === "small",
|
|
76
76
|
// invalid state
|
|
77
77
|
[s.inputInvalid]: o,
|
|
78
78
|
// action button - input password always has an action button
|
|
@@ -82,21 +82,21 @@ import '../assets/InputPassword.CG7Ugu73.css';const q = "ds-input-password_input
|
|
|
82
82
|
[s.labelHidden]: H,
|
|
83
83
|
[s.labelDisabled]: e
|
|
84
84
|
}), N = i(s.actionButton, {
|
|
85
|
-
[s.actionButtonSmall]:
|
|
85
|
+
[s.actionButtonSmall]: d === "small"
|
|
86
86
|
}), j = () => {
|
|
87
87
|
v((k) => !k);
|
|
88
88
|
};
|
|
89
89
|
return /* @__PURE__ */ a.jsxs("div", { className: g, children: [
|
|
90
90
|
/* @__PURE__ */ a.jsxs("label", { className: P, id: _, htmlFor: t, children: [
|
|
91
91
|
n,
|
|
92
|
-
c && /* @__PURE__ */ a.jsx(
|
|
92
|
+
c && /* @__PURE__ */ a.jsx(C, {})
|
|
93
93
|
] }),
|
|
94
94
|
u && /* @__PURE__ */ a.jsx("div", { className: s.hint, id: b, children: u }),
|
|
95
|
-
o &&
|
|
95
|
+
o && p && /* @__PURE__ */ a.jsx(
|
|
96
96
|
E,
|
|
97
97
|
{
|
|
98
98
|
className: s.feedback,
|
|
99
|
-
message:
|
|
99
|
+
message: p,
|
|
100
100
|
type: "invalid",
|
|
101
101
|
id: w
|
|
102
102
|
}
|
|
@@ -109,7 +109,7 @@ import '../assets/InputPassword.CG7Ugu73.css';const q = "ds-input-password_input
|
|
|
109
109
|
id: t,
|
|
110
110
|
...I,
|
|
111
111
|
"aria-labelledby": `${_}${B}`,
|
|
112
|
-
"aria-describedby": o &&
|
|
112
|
+
"aria-describedby": o && p ? w : void 0,
|
|
113
113
|
"aria-invalid": o,
|
|
114
114
|
"aria-disabled": r,
|
|
115
115
|
readOnly: r,
|
|
@@ -127,7 +127,7 @@ import '../assets/InputPassword.CG7Ugu73.css';const q = "ds-input-password_input
|
|
|
127
127
|
iconName: l ? "eye-closed" : "eye",
|
|
128
128
|
variant: "ghost",
|
|
129
129
|
className: N,
|
|
130
|
-
size:
|
|
130
|
+
size: d,
|
|
131
131
|
onClick: j,
|
|
132
132
|
type: "button",
|
|
133
133
|
disabled: e,
|
|
@@ -138,6 +138,6 @@ import '../assets/InputPassword.CG7Ugu73.css';const q = "ds-input-password_input
|
|
|
138
138
|
] });
|
|
139
139
|
};
|
|
140
140
|
export {
|
|
141
|
-
|
|
141
|
+
ds as D,
|
|
142
142
|
z as v
|
|
143
143
|
};
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { j as e } from "./jsx-runtime.C115EyI4.js";
|
|
3
3
|
import { c as u } from "./index.CvOaL64Y.js";
|
|
4
4
|
import { useState as J, useRef as D, useEffect as x } from "react";
|
|
5
|
-
import { g as w, a as K } from "./helpers.
|
|
6
|
-
import { u as Q } from "./useBreakpoint.
|
|
5
|
+
import { g as w, a as K } from "./helpers.CcqWV-wZ.js";
|
|
6
|
+
import { u as Q } from "./useBreakpoint.B8XxjSVJ.js";
|
|
7
7
|
import { Asterisk as U } from "../asterisk.DpzETKdT.js";
|
|
8
|
-
import { DSButton as N } from "../button.
|
|
8
|
+
import { DSButton as N } from "../button.BfcWQZhx.js";
|
|
9
9
|
import { DSSystemFeedback as X } from "../systemfeedback.C3Pfxxpp.js";
|
|
10
10
|
import '../assets/InputSearch.CseChMc-.css';const Y = "ds-input-search_input_wn1tk_1", Z = "ds-input-search_input--invalid_wn1tk_113", z = "ds-input-search_input--small_wn1tk_120", tt = "ds-input-search_input--has-leading-icon_wn1tk_173", nt = "ds-input-search_input--has-action-button_wn1tk_176", et = "ds-input-search_input--has-second-action-button_wn1tk_179", st = "ds-input-search_input--has-affix_wn1tk_191", at = "ds-input-search_input--is-ready_wn1tk_205", it = "ds-input-search_root_wn1tk_212", ot = "ds-input-search_hint_wn1tk_220", ct = "ds-input-search_label_wn1tk_220", ut = "ds-input-search_wrapper_wn1tk_224", rt = "ds-input-search_action-button_wn1tk_230", lt = "ds-input-search_second-action-button_wn1tk_234", pt = "ds-input-search_label--hidden_wn1tk_252", dt = "ds-input-search_label--disabled_wn1tk_265", ht = "ds-input-search_feedback_wn1tk_285", t = {
|
|
11
11
|
input: Y,
|
|
@@ -41,7 +41,7 @@ import '../assets/InputSearch.CseChMc-.css';const Y = "ds-input-search_input_wn1
|
|
|
41
41
|
throw new Error(
|
|
42
42
|
w(
|
|
43
43
|
"DSInputSearch",
|
|
44
|
-
'A unique "id" prop is required. Please add
|
|
44
|
+
'A unique "id" prop is required. Please add a unique "id" prop to the DSInputSearch component.'
|
|
45
45
|
)
|
|
46
46
|
);
|
|
47
47
|
if (!r)
|
|
@@ -1,54 +1,56 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as n } from "./jsx-runtime.C115EyI4.js";
|
|
3
3
|
import { c as u } from "./index.CvOaL64Y.js";
|
|
4
|
-
import { useState as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
|
|
4
|
+
import { useState as _, useRef as N, useEffect as w } from "react";
|
|
5
|
+
import { h as _t } from "./has-window.ut_-aShB.js";
|
|
6
|
+
import { u as ft } from "./useBreakpoint.B8XxjSVJ.js";
|
|
7
|
+
import { u as M } from "./useIsomorphicLayoutEffect.CnJ9AMFS.js";
|
|
8
|
+
import { Asterisk as bt } from "../asterisk.DpzETKdT.js";
|
|
9
|
+
import { DSButton as X } from "../button.BfcWQZhx.js";
|
|
10
|
+
import { M as E, a as H } from "./Input.utils.DYbmWlx6.js";
|
|
11
|
+
import { DSSystemFeedback as gt } from "../systemfeedback.C3Pfxxpp.js";
|
|
12
|
+
import { g as S } from "./helpers.CcqWV-wZ.js";
|
|
13
|
+
import '../assets/InputStepper.C0eAYr7P.css';const ht = "ds-input-stepper_input_1pm8g_1", xt = "ds-input-stepper_input--invalid_1pm8g_113", St = "ds-input-stepper_input--small_1pm8g_120", yt = "ds-input-stepper_input--has-leading-icon_1pm8g_173", It = "ds-input-stepper_input--has-action-button_1pm8g_176", vt = "ds-input-stepper_input--has-second-action-button_1pm8g_179", At = "ds-input-stepper_input--has-affix_1pm8g_191", Dt = "ds-input-stepper_input--is-ready_1pm8g_205", Bt = "ds-input-stepper_root_1pm8g_215", Nt = "ds-input-stepper_hint_1pm8g_223", wt = "ds-input-stepper_label_1pm8g_223", Et = "ds-input-stepper_wrapper_1pm8g_227", Ht = "ds-input-stepper_affix_1pm8g_233", Lt = "ds-input-stepper_affix--small_1pm8g_254", jt = "ds-input-stepper_affix--disabled_1pm8g_267", Rt = "ds-input-stepper_prefix_1pm8g_275", kt = "ds-input-stepper_affix--readonly_1pm8g_278", Ct = "ds-input-stepper_suffix_1pm8g_288", $t = "ds-input-stepper_action-button_1pm8g_295", Ft = "ds-input-stepper_label--hidden_1pm8g_313", Vt = "ds-input-stepper_label--disabled_1pm8g_326", Pt = "ds-input-stepper_feedback_1pm8g_346", Tt = "ds-input-stepper_second-action-button_1pm8g_360", Wt = "ds-input-stepper_value-announcer_1pm8g_364", e = {
|
|
14
|
+
input: ht,
|
|
13
15
|
"input--invalid": "ds-input-stepper_input--invalid_1pm8g_113",
|
|
14
|
-
inputInvalid:
|
|
16
|
+
inputInvalid: xt,
|
|
15
17
|
"input--small": "ds-input-stepper_input--small_1pm8g_120",
|
|
16
|
-
inputSmall:
|
|
18
|
+
inputSmall: St,
|
|
17
19
|
"input--has-leading-icon": "ds-input-stepper_input--has-leading-icon_1pm8g_173",
|
|
18
|
-
inputHasLeadingIcon:
|
|
20
|
+
inputHasLeadingIcon: yt,
|
|
19
21
|
"input--has-action-button": "ds-input-stepper_input--has-action-button_1pm8g_176",
|
|
20
|
-
inputHasActionButton:
|
|
22
|
+
inputHasActionButton: It,
|
|
21
23
|
"input--has-second-action-button": "ds-input-stepper_input--has-second-action-button_1pm8g_179",
|
|
22
|
-
inputHasSecondActionButton:
|
|
24
|
+
inputHasSecondActionButton: vt,
|
|
23
25
|
"input--has-affix": "ds-input-stepper_input--has-affix_1pm8g_191",
|
|
24
|
-
inputHasAffix:
|
|
26
|
+
inputHasAffix: At,
|
|
25
27
|
"input--is-ready": "ds-input-stepper_input--is-ready_1pm8g_205",
|
|
26
|
-
inputIsReady:
|
|
27
|
-
root:
|
|
28
|
-
hint:
|
|
29
|
-
label:
|
|
30
|
-
wrapper:
|
|
31
|
-
affix:
|
|
28
|
+
inputIsReady: Dt,
|
|
29
|
+
root: Bt,
|
|
30
|
+
hint: Nt,
|
|
31
|
+
label: wt,
|
|
32
|
+
wrapper: Et,
|
|
33
|
+
affix: Ht,
|
|
32
34
|
"affix--small": "ds-input-stepper_affix--small_1pm8g_254",
|
|
33
|
-
affixSmall:
|
|
35
|
+
affixSmall: Lt,
|
|
34
36
|
"affix--disabled": "ds-input-stepper_affix--disabled_1pm8g_267",
|
|
35
|
-
affixDisabled:
|
|
36
|
-
prefix:
|
|
37
|
+
affixDisabled: jt,
|
|
38
|
+
prefix: Rt,
|
|
37
39
|
"affix--readonly": "ds-input-stepper_affix--readonly_1pm8g_278",
|
|
38
|
-
affixReadonly:
|
|
39
|
-
suffix:
|
|
40
|
+
affixReadonly: kt,
|
|
41
|
+
suffix: Ct,
|
|
40
42
|
"action-button": "ds-input-stepper_action-button_1pm8g_295",
|
|
41
|
-
actionButton:
|
|
43
|
+
actionButton: $t,
|
|
42
44
|
"label--hidden": "ds-input-stepper_label--hidden_1pm8g_313",
|
|
43
|
-
labelHidden:
|
|
45
|
+
labelHidden: Ft,
|
|
44
46
|
"label--disabled": "ds-input-stepper_label--disabled_1pm8g_326",
|
|
45
|
-
labelDisabled:
|
|
46
|
-
feedback:
|
|
47
|
+
labelDisabled: Vt,
|
|
48
|
+
feedback: Pt,
|
|
47
49
|
"second-action-button": "ds-input-stepper_second-action-button_1pm8g_360",
|
|
48
|
-
secondActionButton:
|
|
50
|
+
secondActionButton: Tt,
|
|
49
51
|
"value-announcer": "ds-input-stepper_value-announcer_1pm8g_364",
|
|
50
|
-
valueAnnouncer:
|
|
51
|
-
},
|
|
52
|
+
valueAnnouncer: Wt
|
|
53
|
+
}, Mt = ({
|
|
52
54
|
id: s,
|
|
53
55
|
label: f,
|
|
54
56
|
prefix: b,
|
|
@@ -58,7 +60,7 @@ import '../assets/InputStepper.C0eAYr7P.css';const gt = "ds-input-stepper_input_
|
|
|
58
60
|
throw new Error(
|
|
59
61
|
S(
|
|
60
62
|
"DSInputStepper",
|
|
61
|
-
'A unique "id" prop is required. Please add
|
|
63
|
+
'A unique "id" prop is required. Please add a unique "id" prop to the DSInputStepper component.'
|
|
62
64
|
)
|
|
63
65
|
);
|
|
64
66
|
if (!f)
|
|
@@ -79,7 +81,7 @@ import '../assets/InputStepper.C0eAYr7P.css';const gt = "ds-input-stepper_input_
|
|
|
79
81
|
`Suffix length must not exceed ${H} characters.`
|
|
80
82
|
)
|
|
81
83
|
);
|
|
82
|
-
},
|
|
84
|
+
}, te = ({
|
|
83
85
|
id: s,
|
|
84
86
|
label: f,
|
|
85
87
|
announcementText: b = "Value changed to",
|
|
@@ -103,13 +105,13 @@ import '../assets/InputStepper.C0eAYr7P.css';const gt = "ds-input-stepper_input_
|
|
|
103
105
|
onChange: k,
|
|
104
106
|
...J
|
|
105
107
|
}) => {
|
|
106
|
-
process.env.NODE_ENV !== "production" &&
|
|
108
|
+
process.env.NODE_ENV !== "production" && Mt({
|
|
107
109
|
id: s,
|
|
108
110
|
label: f,
|
|
109
111
|
prefix: r,
|
|
110
112
|
suffix: c
|
|
111
113
|
});
|
|
112
|
-
const [K, Q] =
|
|
114
|
+
const [K, Q] = _(!1), [m, v] = _(x), [A, C] = _(""), [Y, Z] = _(!1), [z, tt] = _({}), a = N(null), et = r == null ? void 0 : r.substring(0, E), D = N(null), nt = c == null ? void 0 : c.substring(0, H), B = N(null), st = ft(G);
|
|
113
115
|
w(() => {
|
|
114
116
|
x && v(x);
|
|
115
117
|
}, [x]), w(() => {
|
|
@@ -143,7 +145,7 @@ import '../assets/InputStepper.C0eAYr7P.css';const gt = "ds-input-stepper_input_
|
|
|
143
145
|
}
|
|
144
146
|
tt(i), Q(!0);
|
|
145
147
|
}, [r, c, p, Y]), M(() => {
|
|
146
|
-
(async () => {
|
|
148
|
+
_t && (async () => {
|
|
147
149
|
"fonts" in document && (await document.fonts.load(
|
|
148
150
|
'1em "STIHL Contraface Digital Text Regular"'
|
|
149
151
|
), Z(!0));
|
|
@@ -185,13 +187,13 @@ import '../assets/InputStepper.C0eAYr7P.css';const gt = "ds-input-stepper_input_
|
|
|
185
187
|
}, dt = () => {
|
|
186
188
|
var t;
|
|
187
189
|
(t = a.current) == null || t.stepUp(), W();
|
|
188
|
-
},
|
|
190
|
+
}, mt = (t) => {
|
|
189
191
|
v(t.target.value), k && k(t);
|
|
190
192
|
};
|
|
191
193
|
return /* @__PURE__ */ n.jsxs("div", { className: pt, children: [
|
|
192
194
|
/* @__PURE__ */ n.jsxs("label", { className: ot, id: F, htmlFor: s, children: [
|
|
193
195
|
f,
|
|
194
|
-
R && /* @__PURE__ */ n.jsx(
|
|
196
|
+
R && /* @__PURE__ */ n.jsx(bt, {})
|
|
195
197
|
] }),
|
|
196
198
|
y && /* @__PURE__ */ n.jsx("div", { className: e.hint, id: P, children: y }),
|
|
197
199
|
/* @__PURE__ */ n.jsx(
|
|
@@ -205,7 +207,7 @@ import '../assets/InputStepper.C0eAYr7P.css';const gt = "ds-input-stepper_input_
|
|
|
205
207
|
}
|
|
206
208
|
),
|
|
207
209
|
h && I && /* @__PURE__ */ n.jsx(
|
|
208
|
-
|
|
210
|
+
gt,
|
|
209
211
|
{
|
|
210
212
|
className: e.feedback,
|
|
211
213
|
message: I,
|
|
@@ -242,8 +244,8 @@ import '../assets/InputStepper.C0eAYr7P.css';const gt = "ds-input-stepper_input_
|
|
|
242
244
|
required: R,
|
|
243
245
|
step: U,
|
|
244
246
|
type: "number",
|
|
245
|
-
value:
|
|
246
|
-
onChange:
|
|
247
|
+
value: m,
|
|
248
|
+
onChange: mt
|
|
247
249
|
}
|
|
248
250
|
),
|
|
249
251
|
c && /* @__PURE__ */ n.jsx(
|
|
@@ -265,7 +267,7 @@ import '../assets/InputStepper.C0eAYr7P.css';const gt = "ds-input-stepper_input_
|
|
|
265
267
|
className: ut,
|
|
266
268
|
size: p,
|
|
267
269
|
onClick: ct,
|
|
268
|
-
disabled: l || d || !!
|
|
270
|
+
disabled: l || d || !!m && Number(m) <= j,
|
|
269
271
|
type: "button",
|
|
270
272
|
children: q
|
|
271
273
|
}
|
|
@@ -280,7 +282,7 @@ import '../assets/InputStepper.C0eAYr7P.css';const gt = "ds-input-stepper_input_
|
|
|
280
282
|
className: lt,
|
|
281
283
|
size: p,
|
|
282
284
|
onClick: dt,
|
|
283
|
-
disabled: l || d || !!
|
|
285
|
+
disabled: l || d || !!m && Number(m) >= L,
|
|
284
286
|
type: "button",
|
|
285
287
|
children: O
|
|
286
288
|
}
|
|
@@ -289,6 +291,6 @@ import '../assets/InputStepper.C0eAYr7P.css';const gt = "ds-input-stepper_input_
|
|
|
289
291
|
] });
|
|
290
292
|
};
|
|
291
293
|
export {
|
|
292
|
-
|
|
293
|
-
|
|
294
|
+
te as D,
|
|
295
|
+
Mt as v
|
|
294
296
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as n } from "./jsx-runtime.C115EyI4.js";
|
|
3
3
|
import { c as s } from "./index.CvOaL64Y.js";
|
|
4
|
-
import { DSButton as f } from "../button.
|
|
4
|
+
import { DSButton as f } from "../button.BfcWQZhx.js";
|
|
5
5
|
import { D as u } from "./Icon.BCmt_XBG.js";
|
|
6
6
|
import '../assets/Notification.DbRapUJo.css';const j = "ds-notification_root_1cajm_1", g = "ds-notification_root--success_1cajm_26", N = "ds-notification_root--error_1cajm_30", h = "ds-notification_root--warning_1cajm_34", I = "ds-notification_root--hide-icon_1cajm_38", x = "ds-notification_content_1cajm_52", A = "ds-notification_content--hide-close-button_1cajm_59", H = "ds-notification_content--hide-icon_1cajm_62", C = "ds-notification_icon_1cajm_66", S = "ds-notification_message_1cajm_70", p = "ds-notification_custom-action-area_1cajm_167", o = {
|
|
7
7
|
root: j,
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as f } from "./jsx-runtime.C115EyI4.js";
|
|
3
|
+
import { c as y } from "./index.CvOaL64Y.js";
|
|
4
|
+
import { forwardRef as C, useState as q } from "react";
|
|
5
|
+
import { D as I } from "./Fieldset.Ct_JFRs9.js";
|
|
6
|
+
import { DSRadio as A } from "../radio.B-2uuWHq.js";
|
|
7
|
+
import { g as a, r as h } from "./helpers.CcqWV-wZ.js";
|
|
8
|
+
import '../assets/RadioGroup.BfMo157q.css';const B = "ds-radio-group_root_12fot_1", M = "ds-radio-group_root--horizontal_12fot_9", O = "ds-radio-group_root--invalid_12fot_12", m = {
|
|
9
|
+
root: B,
|
|
10
|
+
"root--horizontal": "ds-radio-group_root--horizontal_12fot_9",
|
|
11
|
+
rootHorizontal: M,
|
|
12
|
+
"root--invalid": "ds-radio-group_root--invalid_12fot_12",
|
|
13
|
+
rootInvalid: O
|
|
14
|
+
}, v = (t) => t.some(({ hint: e }) => !!e), G = (t) => t.some(({ customArea: e }) => !!e), V = ({
|
|
15
|
+
legend: t,
|
|
16
|
+
name: e,
|
|
17
|
+
options: r,
|
|
18
|
+
description: l,
|
|
19
|
+
direction: i,
|
|
20
|
+
id: s,
|
|
21
|
+
systemFeedback: n
|
|
22
|
+
}) => {
|
|
23
|
+
if (!s && (l || n))
|
|
24
|
+
throw new Error(
|
|
25
|
+
a(
|
|
26
|
+
"DSRadioGroup",
|
|
27
|
+
'A unique "id" prop is required when providing the description or systemFeedback property. Please add a unique "id" prop to the DSRadioGroup component.'
|
|
28
|
+
)
|
|
29
|
+
);
|
|
30
|
+
if (!t)
|
|
31
|
+
throw new Error(
|
|
32
|
+
a(
|
|
33
|
+
"DSRadioGroup",
|
|
34
|
+
h("legend", "DSRadioGroup")
|
|
35
|
+
)
|
|
36
|
+
);
|
|
37
|
+
if (!e)
|
|
38
|
+
throw new Error(
|
|
39
|
+
a(
|
|
40
|
+
"DSRadioGroup",
|
|
41
|
+
h("name", "DSRadioGroup")
|
|
42
|
+
)
|
|
43
|
+
);
|
|
44
|
+
if (!r)
|
|
45
|
+
throw new Error(
|
|
46
|
+
a(
|
|
47
|
+
"DSRadioGroup",
|
|
48
|
+
h("options", "DSRadioGroup")
|
|
49
|
+
)
|
|
50
|
+
);
|
|
51
|
+
if (i === "horizontal" && v(r))
|
|
52
|
+
throw new Error(
|
|
53
|
+
a(
|
|
54
|
+
"DSRadioGroup",
|
|
55
|
+
"Horizontal direction is not possible when options contain a hint. Please remove hints or change direction property to 'vertical'."
|
|
56
|
+
)
|
|
57
|
+
);
|
|
58
|
+
if (i === "horizontal" && G(r))
|
|
59
|
+
throw new Error(
|
|
60
|
+
a(
|
|
61
|
+
"DSRadioGroup",
|
|
62
|
+
"Horizontal direction is not possible when options contain a custom area. Please remove custom areas or change direction property to 'vertical'."
|
|
63
|
+
)
|
|
64
|
+
);
|
|
65
|
+
}, b = C(
|
|
66
|
+
({
|
|
67
|
+
legend: t,
|
|
68
|
+
name: e,
|
|
69
|
+
options: r,
|
|
70
|
+
className: l,
|
|
71
|
+
defaultValue: i,
|
|
72
|
+
description: s,
|
|
73
|
+
direction: n = "vertical",
|
|
74
|
+
disabled: d = !1,
|
|
75
|
+
hideUncheckedHints: D = !1,
|
|
76
|
+
id: p,
|
|
77
|
+
invalid: u = !1,
|
|
78
|
+
required: S = !1,
|
|
79
|
+
systemFeedback: c,
|
|
80
|
+
value: w,
|
|
81
|
+
onChange: R,
|
|
82
|
+
...z
|
|
83
|
+
}, E) => {
|
|
84
|
+
process.env.NODE_ENV !== "production" && V({
|
|
85
|
+
legend: t,
|
|
86
|
+
name: e,
|
|
87
|
+
options: r,
|
|
88
|
+
description: s,
|
|
89
|
+
direction: n,
|
|
90
|
+
id: p,
|
|
91
|
+
systemFeedback: c
|
|
92
|
+
});
|
|
93
|
+
const [H, x] = q(i), _ = w !== void 0, g = _ ? w : H, j = y(m.root, {
|
|
94
|
+
// In case of longer copy, use vertical direction
|
|
95
|
+
[m.rootHorizontal]: n === "horizontal" && !v(r) && !G(r),
|
|
96
|
+
[m.rootInvalid]: u && !!c
|
|
97
|
+
}), N = (o) => {
|
|
98
|
+
if (d) {
|
|
99
|
+
o.preventDefault();
|
|
100
|
+
return;
|
|
101
|
+
}
|
|
102
|
+
_ || x(
|
|
103
|
+
o.target.value
|
|
104
|
+
), R && R(o);
|
|
105
|
+
}, P = v(r) && !D;
|
|
106
|
+
return /* @__PURE__ */ f.jsx(
|
|
107
|
+
I,
|
|
108
|
+
{
|
|
109
|
+
id: p,
|
|
110
|
+
legend: t,
|
|
111
|
+
className: l,
|
|
112
|
+
description: s,
|
|
113
|
+
disabled: d,
|
|
114
|
+
required: S,
|
|
115
|
+
invalid: u,
|
|
116
|
+
systemFeedback: c,
|
|
117
|
+
...z,
|
|
118
|
+
role: "radiogroup",
|
|
119
|
+
onChange: N,
|
|
120
|
+
children: /* @__PURE__ */ f.jsx("div", { className: j, children: r.map((o) => /* @__PURE__ */ f.jsx(
|
|
121
|
+
A,
|
|
122
|
+
{
|
|
123
|
+
name: e,
|
|
124
|
+
checked: o.value === g,
|
|
125
|
+
disabled: d,
|
|
126
|
+
hideUncheckedHint: D,
|
|
127
|
+
hint: o.hint,
|
|
128
|
+
invalid: u,
|
|
129
|
+
isBold: P,
|
|
130
|
+
required: S,
|
|
131
|
+
ref: o.value === g ? E : null,
|
|
132
|
+
...o
|
|
133
|
+
},
|
|
134
|
+
p + o.label + o.value + o.hint
|
|
135
|
+
)) })
|
|
136
|
+
}
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
);
|
|
140
|
+
b.displayName = "DSRadioGroup";
|
|
141
|
+
export {
|
|
142
|
+
b as D,
|
|
143
|
+
G as a,
|
|
144
|
+
v as o,
|
|
145
|
+
V as v
|
|
146
|
+
};
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
import { j as t } from "./jsx-runtime.C115EyI4.js";
|
|
3
3
|
import { c as r } from "./index.CvOaL64Y.js";
|
|
4
4
|
import { useRef as C, useState as q, useEffect as W } from "react";
|
|
5
|
-
import { u as F } from "./useBreakpoint.
|
|
5
|
+
import { u as F } from "./useBreakpoint.B8XxjSVJ.js";
|
|
6
6
|
import { Asterisk as M } from "../asterisk.DpzETKdT.js";
|
|
7
7
|
import { D as O } from "./Icon.BCmt_XBG.js";
|
|
8
8
|
import { DSSystemFeedback as T } from "../systemfeedback.C3Pfxxpp.js";
|
|
9
|
-
import { g as p } from "./helpers.
|
|
9
|
+
import { g as p } from "./helpers.CcqWV-wZ.js";
|
|
10
10
|
import '../assets/Select.D4EXgIbz.css';const V = "ds-select_root_1ui0h_1", Z = "ds-select_hint_1ui0h_9", J = "ds-select_label_1ui0h_9", K = "ds-select_wrapper_1ui0h_13", Q = "ds-select_affix_1ui0h_19", U = "ds-select_affix--small_1ui0h_40", X = "ds-select_affix--disabled_1ui0h_53", Y = "ds-select_prefix_1ui0h_61", z = "ds-select_affix--readonly_1ui0h_64", G = "ds-select_suffix_1ui0h_74", ee = "ds-select_action-button_1ui0h_81", se = "ds-select_label--hidden_1ui0h_99", te = "ds-select_label--disabled_1ui0h_112", le = "ds-select_feedback_1ui0h_132", ce = "ds-select_select-wrapper_1ui0h_137", ae = "ds-select_select_1ui0h_137", ne = "ds-select_select--invalid_1ui0h_262", ie = "ds-select_select--small_1ui0h_269", oe = "ds-select_input--has-leading-icon_1ui0h_322", de = "ds-select_input--has-action-button_1ui0h_325", re = "ds-select_input--has-second-action-button_1ui0h_328", _e = "ds-select_select--has-leading-icon_1ui0h_331", ue = "ds-select_select--has-action-button_1ui0h_334", he = "ds-select_select--has-second-action-button_1ui0h_337", fe = "ds-select_select--has-affix_1ui0h_340", pe = "ds-select_select--is-ready_1ui0h_354", be = "ds-select_select--placeholder_1ui0h_371", me = "ds-select_chevron_1ui0h_410", xe = "ds-select_chevron--small_1ui0h_414", ve = "ds-select_chevron--disabled_1ui0h_417", e = {
|
|
11
11
|
root: V,
|
|
12
12
|
hint: Z,
|
|
@@ -67,7 +67,7 @@ import '../assets/Select.D4EXgIbz.css';const V = "ds-select_root_1ui0h_1", Z = "
|
|
|
67
67
|
throw new Error(
|
|
68
68
|
p(
|
|
69
69
|
"DSSelect",
|
|
70
|
-
'A unique "id" prop is required. Please add
|
|
70
|
+
'A unique "id" prop is required. Please add a unique "id" prop to the DSSelect component.'
|
|
71
71
|
)
|
|
72
72
|
);
|
|
73
73
|
if (!a)
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as u } from "./jsx-runtime.C115EyI4.js";
|
|
3
|
+
import { c as i } from "./index.CvOaL64Y.js";
|
|
4
|
+
import { useRef as f, useState as m, useEffect as p } from "react";
|
|
5
|
+
import '../assets/TabPane.zywjfwo8.css';const T = "ds-tabs_tabpane_30tnb_1", d = {
|
|
6
|
+
tabpane: T
|
|
7
|
+
}, E = (e) => [
|
|
8
|
+
"A",
|
|
9
|
+
"BUTTON",
|
|
10
|
+
"INPUT",
|
|
11
|
+
"SELECT",
|
|
12
|
+
"TEXTAREA",
|
|
13
|
+
"AUDIO",
|
|
14
|
+
"VIDEO"
|
|
15
|
+
].includes(e.tagName) || e.hasAttribute("contenteditable"), g = (e) => {
|
|
16
|
+
const t = (a) => E(a) ? !0 : Array.from(a.children).some(
|
|
17
|
+
(s) => t(s)
|
|
18
|
+
);
|
|
19
|
+
return t(e);
|
|
20
|
+
}, A = (e, t) => `tabs-${e}-tabbutton-${t}`, h = (e, t, a) => `tabs-${e}-tabpanel-${t}-${a}`, x = ({
|
|
21
|
+
id: e,
|
|
22
|
+
content: t,
|
|
23
|
+
index: a,
|
|
24
|
+
selectedTabIndex: s,
|
|
25
|
+
tabListId: r,
|
|
26
|
+
className: o
|
|
27
|
+
}) => {
|
|
28
|
+
const n = f(null), [c, l] = m(!1);
|
|
29
|
+
p(() => {
|
|
30
|
+
n.current && l(g(n.current));
|
|
31
|
+
}, [t]);
|
|
32
|
+
const b = i(d.tabpane, o);
|
|
33
|
+
return /* @__PURE__ */ u.jsx(
|
|
34
|
+
"div",
|
|
35
|
+
{
|
|
36
|
+
id: h(r, e, a),
|
|
37
|
+
role: "tabpanel",
|
|
38
|
+
"aria-labelledby": A(r, e),
|
|
39
|
+
hidden: s !== a,
|
|
40
|
+
tabIndex: c ? void 0 : 0,
|
|
41
|
+
ref: n,
|
|
42
|
+
className: b,
|
|
43
|
+
children: t
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
};
|
|
47
|
+
export {
|
|
48
|
+
x as T,
|
|
49
|
+
h as a,
|
|
50
|
+
A as g
|
|
51
|
+
};
|