@stihl-design-system/components 1.0.0-RC.25 → 1.0.0-RC.27
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.Dw3qTPN8.js → accordion.CBaDU14g.js} +2 -2
- package/{actionbutton.wYg4A5a2.js → actionbutton.DEJsLxnQ.js} +2 -2
- package/{actionlink.BoWrs0Mo.js → actionlink.Cs6BTCA3.js} +2 -2
- package/{arialiveregions.DVsA5OTR.js → arialiveregions.Fgcshs5k.js} +1 -1
- package/assets/ActionButton.Ewi0i1hW.css +1 -0
- package/assets/ActionLink.BdPEvuGm.css +1 -0
- package/assets/CustomReactSelect.B9f_KYFg.css +1 -0
- package/assets/Icon.QeJ7TxZs.css +1 -0
- package/assets/InputFile.Dqjz53mb.css +1 -0
- package/assets/InputPassword.BuVQ9dRy.css +1 -0
- package/assets/InputSearch.Dwtb3Mhw.css +1 -0
- package/assets/InputStepper.CBt99L83.css +1 -0
- package/assets/Popover.BDTDsPAt.css +1 -0
- package/assets/Select.CghDnBUQ.css +1 -0
- package/assets/Textarea.BgtH-TTe.css +1 -0
- package/assets/banner.D9EiZqqR.css +1 -0
- package/assets/input.DFwunFjw.css +1 -0
- package/assets/radio.BCB51D_y.css +1 -0
- package/assets/scroller.Hszs1Yq4.css +1 -0
- package/banner.CgQdUb_c.js +55 -0
- package/banner.d.ts +2 -0
- package/{breadcrumb.C07HDyGp.js → breadcrumb.x78HJy5P.js} +3 -3
- package/{button.BBqDvwVm.js → button.BD_04tIG.js} +3 -3
- package/{buttonround.Vy1EygFm.js → buttonround.BT3OfowK.js} +2 -2
- package/{checkbox.CvWI1Jrx.js → checkbox.BktYXQmJ.js} +3 -3
- package/{checkboxgroup.BLpSLo9t.js → checkboxgroup.YK8H0YoX.js} +2 -2
- package/{chip.BsDriMfL.js → chip.BKtNbt4y.js} +2 -2
- package/chipgroup.BWpqUzXF.js +209 -0
- package/chunks/{Accordion.Cjc_1Bu1.js → Accordion.eVOD7J_8.js} +2 -2
- package/chunks/ActionButton.Ck1rGqgm.js +165 -0
- package/chunks/ActionLink.DnUNjoAT.js +138 -0
- package/chunks/{AriaLiveRegions.utils.zSFFD3SF.js → AriaLiveRegions.utils.Cb327d_2.js} +1 -1
- package/chunks/{Breadcrumb.QhD6byzd.js → Breadcrumb.B7g30dIO.js} +3 -3
- package/chunks/{Button.DZNUuPKC.js → Button.CC0qEsuR.js} +4 -4
- package/chunks/{Checkbox.Ch8DBzws.js → Checkbox.BIQAKBVy.js} +3 -3
- package/chunks/{CheckboxGroup.C8D6tjVI.js → CheckboxGroup.DHzpgOWp.js} +3 -3
- package/chunks/{Chip.CHy8cZJz.js → Chip.DifLxHH7.js} +3 -3
- package/chunks/{CustomReactSelect.hdDSE0ON.js → CustomReactSelect.BPnzhvw1.js} +1356 -1593
- package/chunks/{Dialog.DPeGj8-T.js → Dialog.BuEEJ199.js} +2 -2
- package/chunks/{Drawer.BMibxANc.js → Drawer.BXUGmpJI.js} +2 -2
- package/chunks/{Fieldset.DHccz6TP.js → Fieldset.BX46NuLh.js} +2 -2
- package/chunks/Header.Djs1adPW.js +361 -0
- package/chunks/{Icon.CAXZUNWo.js → Icon.C0161Glk.js} +70 -67
- package/chunks/{Input.utils.CCYTBWD_.js → Input.utils.Cnnzvuk4.js} +1 -1
- package/chunks/{InputFile.fltVIulD.js → InputFile.vkkg5Pab.js} +32 -32
- package/chunks/InputPassword.D42uUEGy.js +136 -0
- package/chunks/InputSearch.aIbUXVQU.js +174 -0
- package/chunks/InputStepper.DFEdUWm7.js +263 -0
- package/chunks/{LinkButton.DyTU9sfN.js → LinkButton.DmXVHeyZ.js} +3 -3
- package/chunks/{NavigationTabList.D2NVVTjK.js → NavigationTabList.IQM074Vb.js} +1 -1
- package/chunks/{NavigationTabs.TfdsA8GX.js → NavigationTabs.BofhX8bD.js} +2 -2
- package/chunks/{Notification.BRg1qlng.js → Notification.B-3dPVUE.js} +2 -2
- package/chunks/Popover.hXQTvwwd.js +1685 -0
- package/chunks/{RadioGroup.D9mECdMK.js → RadioGroup.c7YYJdUe.js} +3 -3
- package/chunks/{Select.DCxMPsCm.js → Select.B_EHpk22.js} +25 -25
- package/chunks/{Slider.Cljc14kS.js → Slider.DMSwmGwD.js} +2 -2
- package/chunks/{Tabs.GvcCCCFT.js → Tabs.Bl4K3Kjn.js} +2 -2
- package/chunks/{Text.TS4XdA9e.js → Text.DGWeWF1y.js} +1 -1
- package/chunks/{Textarea.Bs4-nzu8.js → Textarea.Ce26v6ht.js} +54 -54
- package/chunks/{Toast.DawJ9OSY.js → Toast.BHz0vlGz.js} +2 -2
- package/chunks/floating-ui.dom.C9TD1WpB.js +950 -0
- package/chunks/helpers.BbWkXTr3.js +37 -0
- package/chunks/is-animation-disabled.CUl4N3LI.js +20 -0
- package/{combobox.DW_ey38o.js → combobox.AaK6QjRl.js} +1 -1
- package/components/ActionButton/ActionButton.d.ts +9 -5
- package/components/ActionButton/ActionButton.utils.d.ts +4 -2
- package/components/ActionLink/ActionLink.d.ts +9 -5
- package/components/ActionLink/ActionLink.utils.d.ts +4 -2
- package/components/Banner/Banner.d.ts +32 -0
- package/components/Banner/Banner.utils.d.ts +2 -0
- package/components/Button/Button.utils.d.ts +1 -1
- package/components/Header/Header.utils.d.ts +0 -2
- package/components/Icon/Icon.d.ts +1 -1
- package/components/Icon/Icon.utils.d.ts +1 -1
- package/components/Popover/Popover.d.ts +40 -0
- package/components/Popover/Popover.test.d.ts +1 -0
- package/components/Popover/Popover.utils.d.ts +53 -0
- package/components/Popover/Popover.utils.test.d.ts +1 -0
- package/components/Scroller/Scroller.d.ts +20 -0
- package/components/Scroller/Scroller.utils.d.ts +3 -0
- package/components/Tabs/TabList/TabList.d.ts +1 -1
- package/components/Tabs/TabList/TabList.utils.d.ts +0 -4
- package/connected-icon.svg +1 -0
- package/{customreactselect.DcH7h1mb.js → customreactselect.Bu1i8wkh.js} +4 -4
- package/{dialog.D6d_WXOM.js → dialog.CGsUCqhR.js} +2 -2
- package/{drawer.BmQWFOuF.js → drawer.BcAo4TO0.js} +2 -2
- package/{fieldset.D6q9YXrO.js → fieldset.DM9ELUJa.js} +2 -2
- package/{filelist.Dnd5nOdw.js → filelist.Cj9U-Jx8.js} +3 -3
- package/{flag.BR312AU-.js → flag.BHaAfp6B.js} +1 -1
- package/{floatingactionbutton.Do6eNSHq.js → floatingactionbutton.DSZXUHB_.js} +2 -2
- package/{header.5iwPmK5V.js → header.WhQHSuB1.js} +2 -2
- package/{icon.HkVs68n_.js → icon.DwfGhFCd.js} +1 -1
- package/icon.svg +1 -1
- package/imow-icon.svg +1 -0
- package/index.d.ts +6 -0
- package/index.es.js +201 -188
- package/{input.mPceLGnf.js → input.DhxUW3zc.js} +37 -37
- package/{inputfile.CIpE9i-3.js → inputfile.Cmkxf4Vq.js} +6 -6
- package/{inputpassword.DkiyI-yo.js → inputpassword.CaJBCMA0.js} +3 -3
- package/{inputsearch.DcOp_VUd.js → inputsearch.B06DhYzo.js} +4 -4
- package/{inputstepper.D7TpDXst.js → inputstepper.DNY7nzP8.js} +4 -4
- package/{link.B5NZ1QKr.js → link.DGuYGfh2.js} +2 -2
- package/{linkbutton.CMVcQVxI.js → linkbutton.B3q0B_yb.js} +3 -3
- package/{logo.B9taqlZR.js → logo.C96KaG1P.js} +1 -1
- package/mystihl-icon.svg +1 -0
- package/{navigationtablist.BMJTC9qo.js → navigationtablist.CS9yEGdP.js} +2 -2
- package/{navigationtabs.BQeKKIFy.js → navigationtabs.DQ1kE-h4.js} +2 -2
- package/{notification.Bzli8Qlq.js → notification.D8BDaU5x.js} +3 -3
- package/{optioncheckbox.DYKRBTy0.js → optioncheckbox.CEEPAq0u.js} +1 -1
- package/package.json +4 -2
- package/partials/assets.const.js +2 -0
- package/partials/copyAssets.js +4 -2
- package/partials/index.js +109 -81
- package/partials/lib/partials.d.ts +1 -1
- package/popover.BFx99cHg.js +10 -0
- package/popover.d.ts +2 -0
- package/radio.Be4pFOLf.js +134 -0
- package/{radiogroup.BnMkpjvV.js → radiogroup.BRjwP01C.js} +3 -3
- package/scroller.CCA6kFR6.js +123 -0
- package/scroller.d.ts +2 -0
- package/{select.BSvjDIVC.js → select.3zE96eWc.js} +3 -3
- package/{skiptocontent.CQ4aARqd.js → skiptocontent.D1UkPmhD.js} +2 -2
- package/{slider.LRlFFlYL.js → slider.CTCf7Xdm.js} +2 -2
- package/{spinner.t5FHjIEK.js → spinner.CeGt8DxU.js} +1 -1
- package/{switch.QUUSE9ZF.js → switch.CtULjgZq.js} +2 -2
- package/{systemfeedback.BpKZEv4U.js → systemfeedback.CLQCbTF6.js} +1 -1
- package/tablist.Dzwe0_J4.js +256 -0
- package/{tabs.CXkSN2kd.js → tabs.yudjJk9d.js} +2 -2
- package/{text.CPwbk8Gy.js → text.ZOUuesnU.js} +2 -2
- package/{textarea.D0ADOdR6.js → textarea.B_3fPtmd.js} +3 -3
- package/{toast.CYYvK4DJ.js → toast.Bhpwj1NF.js} +3 -3
- package/{toastmanager.k9iGb7MN.js → toastmanager.BHk65ynQ.js} +3 -3
- package/topbar.2b8fjmA4.js +11 -0
- package/utils/get-rect.d.ts +4 -0
- package/utils/get-rect.test.d.ts +1 -0
- package/utils/helpers.d.ts +10 -0
- package/utils/index.d.ts +2 -1
- package/utils/is-animation-disabled.d.ts +14 -0
- package/utils/is-animation-disabled.test.d.ts +1 -0
- package/assets/ActionButton.DZVAnm-p.css +0 -1
- package/assets/ActionLink.DuklSL3c.css +0 -1
- package/assets/CustomReactSelect.B8l6al4B.css +0 -1
- package/assets/Icon.ZNrKuqgu.css +0 -1
- package/assets/InputFile.Dx_CULYq.css +0 -1
- package/assets/InputPassword.CkHF5zCh.css +0 -1
- package/assets/InputSearch.BV8Q2EUL.css +0 -1
- package/assets/InputStepper.DzzrAdma.css +0 -1
- package/assets/Select.e1fTfWmm.css +0 -1
- package/assets/Textarea.BGV7Z0Z9.css +0 -1
- package/assets/input.Cj4tF_F7.css +0 -1
- package/assets/radio.CqaNn1Gz.css +0 -1
- package/chipgroup.D1Km301k.js +0 -186
- package/chunks/ActionButton.DFI8P9-f.js +0 -159
- package/chunks/ActionLink.CLQ1yQZF.js +0 -132
- package/chunks/Header.DPafHEKw.js +0 -384
- package/chunks/InputPassword.C4QhwijC.js +0 -136
- package/chunks/InputSearch.DdWBmEmu.js +0 -174
- package/chunks/InputStepper.BRzbuEho.js +0 -263
- package/chunks/helpers.CcqWV-wZ.js +0 -8
- package/radio.Dm9bDBzM.js +0 -134
- package/tablist.DGGeFOi1.js +0 -266
- package/topbar.BPSDyH0N.js +0 -10
- package/utils/isAnimationDisabled.d.ts +0 -1
- /package/components/{Tabs/TabList/TabList.utils.test.d.ts → Banner/Banner.test.d.ts} +0 -0
|
@@ -3,9 +3,9 @@ import { jsx as F } from "react/jsx-runtime";
|
|
|
3
3
|
import { d as $ } from "./index.CgTHIF3K.js";
|
|
4
4
|
import { c as J } from "./index.CEyLAtio.js";
|
|
5
5
|
import { forwardRef as K, useState as Q } from "react";
|
|
6
|
-
import { D as W } from "./Fieldset.
|
|
7
|
-
import { DSRadio as X } from "../radio.
|
|
8
|
-
import { g as m, r as V } from "./helpers.
|
|
6
|
+
import { D as W } from "./Fieldset.BX46NuLh.js";
|
|
7
|
+
import { DSRadio as X } from "../radio.Be4pFOLf.js";
|
|
8
|
+
import { g as m, r as V } from "./helpers.BbWkXTr3.js";
|
|
9
9
|
import '../assets/RadioGroup.CM2mYOzc.css';const Y = "ds-radio-group_root_12fot_1", Z = "ds-radio-group_root--horizontal_12fot_9", oo = "ds-radio-group_root--invalid_12fot_12", B = {
|
|
10
10
|
root: Y,
|
|
11
11
|
rootHorizontal: Z,
|
|
@@ -5,10 +5,10 @@ import { c as me } from "./index.CEyLAtio.js";
|
|
|
5
5
|
import { forwardRef as Be, useRef as Fe, useState as Ie, useEffect as He } from "react";
|
|
6
6
|
import { u as Re } from "./useBreakpoint.CMOR9ZOB.js";
|
|
7
7
|
import { Asterisk as je } from "../asterisk.CR60hx8S.js";
|
|
8
|
-
import { D as We } from "./Icon.
|
|
9
|
-
import { DSSystemFeedback as ze } from "../systemfeedback.
|
|
10
|
-
import { g as pe, r as Me } from "./helpers.
|
|
11
|
-
import '../assets/Select.
|
|
8
|
+
import { D as We } from "./Icon.C0161Glk.js";
|
|
9
|
+
import { DSSystemFeedback as ze } from "../systemfeedback.CLQCbTF6.js";
|
|
10
|
+
import { g as pe, r as Me } from "./helpers.BbWkXTr3.js";
|
|
11
|
+
import '../assets/Select.CghDnBUQ.css';const Te = "ds-select_root_1c9y3_1", Oe = "ds-select_hint_1c9y3_10", Ze = "ds-select_label_1c9y3_10", Je = "ds-select_label--hidden_1c9y3_100", Ke = "ds-select_label--disabled_1c9y3_113", Qe = "ds-select_feedback_1c9y3_133", Ue = "ds-select_select-wrapper_1c9y3_138", Xe = "ds-select_select_1c9y3_138", Ye = "ds-select_select--small_1c9y3_152", Ge = "ds-select_select--invalid_1c9y3_264", el = "ds-select_select--placeholder_1c9y3_379", ll = "ds-select_chevron_1c9y3_418", tl = "ds-select_chevron--small_1c9y3_422", sl = "ds-select_chevron--disabled_1c9y3_425", t = {
|
|
12
12
|
root: Te,
|
|
13
13
|
hint: Oe,
|
|
14
14
|
label: Ze,
|
|
@@ -17,8 +17,8 @@ import '../assets/Select.e1fTfWmm.css';const Te = "ds-select_root_1g7g9_1", Oe =
|
|
|
17
17
|
feedback: Qe,
|
|
18
18
|
selectWrapper: Ue,
|
|
19
19
|
select: Xe,
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
selectSmall: Ye,
|
|
21
|
+
selectInvalid: Ge,
|
|
22
22
|
selectPlaceholder: el,
|
|
23
23
|
chevron: ll,
|
|
24
24
|
chevronSmall: tl,
|
|
@@ -38,11 +38,11 @@ import '../assets/Select.e1fTfWmm.css';const Te = "ds-select_root_1g7g9_1", Oe =
|
|
|
38
38
|
} else throw new Error(pe("DSSelect", Me("options", "DSSelect")));
|
|
39
39
|
}, cl = (n, s, e) => n === "" || s !== void 0 && s !== "" ? !1 : !(e !== void 0 && e !== ""), ol = Be((n, s) => {
|
|
40
40
|
const e = xe.c(127);
|
|
41
|
-
let i, d, r, l, f, b,
|
|
41
|
+
let i, d, r, l, f, b, S, D, a, Z, J, K, Q, U, X, o;
|
|
42
42
|
e[0] !== n ? ({
|
|
43
43
|
id: l,
|
|
44
44
|
label: f,
|
|
45
|
-
options:
|
|
45
|
+
options: S,
|
|
46
46
|
className: i,
|
|
47
47
|
defaultValue: d,
|
|
48
48
|
disabled: Z,
|
|
@@ -56,16 +56,16 @@ import '../assets/Select.e1fTfWmm.css';const Te = "ds-select_root_1g7g9_1", Oe =
|
|
|
56
56
|
value: o,
|
|
57
57
|
onChange: b,
|
|
58
58
|
...D
|
|
59
|
-
} = n, e[0] = n, e[1] = i, e[2] = d, e[3] = r, e[4] = l, e[5] = f, e[6] = b, e[7] =
|
|
60
|
-
const h = Z === void 0 ? !1 : Z, Pe = J === void 0 ? !1 : J, c = K === void 0 ? !1 : K,
|
|
59
|
+
} = n, e[0] = n, e[1] = i, e[2] = d, e[3] = r, e[4] = l, e[5] = f, e[6] = b, e[7] = S, e[8] = D, e[9] = a, e[10] = Z, e[11] = J, e[12] = K, e[13] = Q, e[14] = U, e[15] = X, e[16] = o) : (i = e[1], d = e[2], r = e[3], l = e[4], f = e[5], b = e[6], S = e[7], D = e[8], a = e[9], Z = e[10], J = e[11], K = e[12], Q = e[13], U = e[14], X = e[15], o = e[16]);
|
|
60
|
+
const h = Z === void 0 ? !1 : Z, Pe = J === void 0 ? !1 : J, c = K === void 0 ? !1 : K, y = Q === void 0 ? "Select" : Q, g = U === void 0 ? !1 : U, le = X === void 0 ? "medium" : X;
|
|
61
61
|
process.env.NODE_ENV !== "production" && al({
|
|
62
62
|
id: l,
|
|
63
63
|
label: f,
|
|
64
|
-
options:
|
|
64
|
+
options: S
|
|
65
65
|
});
|
|
66
66
|
const qe = Fe(null), [ue, Ne] = Ie(o);
|
|
67
67
|
let te;
|
|
68
|
-
e[17] !== d || e[18] !==
|
|
68
|
+
e[17] !== d || e[18] !== y || e[19] !== o ? (te = cl(y, d, o), e[17] = d, e[18] = y, e[19] = o, e[20] = te) : te = e[20];
|
|
69
69
|
const [Y, Ce] = Ie(te);
|
|
70
70
|
let se, ae;
|
|
71
71
|
e[21] !== o ? (se = () => {
|
|
@@ -78,10 +78,10 @@ import '../assets/Select.e1fTfWmm.css';const Te = "ds-select_root_1g7g9_1", Oe =
|
|
|
78
78
|
const _e = ce, G = Re(Pe), w = `${l}-label`, m = `${l}-feedback`, N = `${l}-hint`, ve = r ? ` ${N}` : "";
|
|
79
79
|
let oe;
|
|
80
80
|
e[26] !== c || e[27] !== a || e[28] !== m ? (oe = [c && a && m].filter(Boolean).join(" ") || void 0, e[26] = c, e[27] = a, e[28] = m, e[29] = oe) : oe = e[29];
|
|
81
|
-
const
|
|
81
|
+
const Se = oe;
|
|
82
82
|
let k, E, I, P, q, C, $, L, V, A, x, B, F, H, R, j, p, u, _;
|
|
83
|
-
if (e[30] !==
|
|
84
|
-
const ee = (he) => [
|
|
83
|
+
if (e[30] !== Se || e[31] !== ve || e[32] !== i || e[33] !== d || e[34] !== h || e[35] !== _e || e[36] !== G || e[37] !== r || e[38] !== N || e[39] !== l || e[40] !== c || e[41] !== Y || e[42] !== f || e[43] !== b || e[44] !== S || e[45] !== y || e[46] !== g || e[47] !== D || e[48] !== w || e[49] !== ue || e[50] !== le || e[51] !== a || e[52] !== m) {
|
|
84
|
+
const ee = (he) => [y && /* @__PURE__ */ v("option", { value: "", children: y }, `${l}-hidden-option-disabled-placeholder`), ...he.map((O) => {
|
|
85
85
|
if ("options" in O) {
|
|
86
86
|
const {
|
|
87
87
|
label: Ee,
|
|
@@ -93,25 +93,25 @@ import '../assets/Select.e1fTfWmm.css';const Te = "ds-select_root_1g7g9_1", Oe =
|
|
|
93
93
|
})], ke = il;
|
|
94
94
|
let re;
|
|
95
95
|
e[72] !== i ? (re = me(t.root, i), e[72] = i, e[73] = re) : re = e[73];
|
|
96
|
-
const $e = re,
|
|
96
|
+
const $e = re, ye = le === "small";
|
|
97
97
|
let ne;
|
|
98
|
-
e[74] !== c || e[75] !== Y || e[76] !==
|
|
99
|
-
[t.selectSmall]:
|
|
98
|
+
e[74] !== c || e[75] !== Y || e[76] !== ye ? (ne = me(t.select, {
|
|
99
|
+
[t.selectSmall]: ye,
|
|
100
100
|
[t.selectInvalid]: c,
|
|
101
101
|
[t.selectPlaceholder]: Y
|
|
102
|
-
}), e[74] = c, e[75] = Y, e[76] =
|
|
102
|
+
}), e[74] = c, e[75] = Y, e[76] = ye, e[77] = ne) : ne = e[77];
|
|
103
103
|
const Le = ne;
|
|
104
104
|
let de;
|
|
105
105
|
e[78] !== h || e[79] !== G ? (de = me(t.label, {
|
|
106
106
|
[t.labelHidden]: G,
|
|
107
107
|
[t.labelDisabled]: h
|
|
108
108
|
}), e[78] = h, e[79] = G, e[80] = de) : de = e[80];
|
|
109
|
-
const De = de,
|
|
109
|
+
const De = de, ge = le === "small";
|
|
110
110
|
let fe;
|
|
111
|
-
e[81] !== h || e[82] !==
|
|
112
|
-
[t.chevronSmall]:
|
|
111
|
+
e[81] !== h || e[82] !== ge ? (fe = me(t.chevron, {
|
|
112
|
+
[t.chevronSmall]: ge,
|
|
113
113
|
[t.chevronDisabled]: h
|
|
114
|
-
}), e[81] = h, e[82] =
|
|
114
|
+
}), e[81] = h, e[82] = ge, e[83] = fe) : fe = e[83], k = fe;
|
|
115
115
|
let be;
|
|
116
116
|
e[84] !== b ? (be = (he) => {
|
|
117
117
|
const {
|
|
@@ -122,10 +122,10 @@ import '../assets/Select.e1fTfWmm.css';const Te = "ds-select_root_1g7g9_1", Oe =
|
|
|
122
122
|
const Ve = be;
|
|
123
123
|
j = $e;
|
|
124
124
|
let T;
|
|
125
|
-
e[86] !==
|
|
125
|
+
e[86] !== g ? (T = g && /* @__PURE__ */ v(je, {}), e[86] = g, e[87] = T) : T = e[87], e[88] !== l || e[89] !== f || e[90] !== De || e[91] !== w || e[92] !== T ? (p = /* @__PURE__ */ we("label", { className: De, id: w, htmlFor: l, children: [
|
|
126
126
|
f,
|
|
127
127
|
T
|
|
128
|
-
] }), e[88] = l, e[89] = f, e[90] = De, e[91] = w, e[92] = T, e[93] = p) : p = e[93], e[94] !== r || e[95] !== N ? (u = r && /* @__PURE__ */ v("div", { className: t.hint, id: N, children: r }), e[94] = r, e[95] = N, e[96] = u) : u = e[96], e[97] !== c || e[98] !== a || e[99] !== m ? (_ = c && a && /* @__PURE__ */ v(ze, { className: t.feedback, message: a, type: "invalid", id: m, "aria-live": "assertive" }), e[97] = c, e[98] = a, e[99] = m, e[100] = _) : _ = e[100], R = t.selectWrapper, E = D, I = l, P = _e, q = Le, C = `${w}${ve}`, $ =
|
|
128
|
+
] }), e[88] = l, e[89] = f, e[90] = De, e[91] = w, e[92] = T, e[93] = p) : p = e[93], e[94] !== r || e[95] !== N ? (u = r && /* @__PURE__ */ v("div", { className: t.hint, id: N, children: r }), e[94] = r, e[95] = N, e[96] = u) : u = e[96], e[97] !== c || e[98] !== a || e[99] !== m ? (_ = c && a && /* @__PURE__ */ v(ze, { className: t.feedback, message: a, type: "invalid", id: m, "aria-live": "assertive" }), e[97] = c, e[98] = a, e[99] = m, e[100] = _) : _ = e[100], R = t.selectWrapper, E = D, I = l, P = _e, q = Le, C = `${w}${ve}`, $ = Se, L = c, V = d, A = ue, x = h, B = g, F = Ve, H = ee(S), e[30] = Se, e[31] = ve, e[32] = i, e[33] = d, e[34] = h, e[35] = _e, e[36] = G, e[37] = r, e[38] = N, e[39] = l, e[40] = c, e[41] = Y, e[42] = f, e[43] = b, e[44] = S, e[45] = y, e[46] = g, e[47] = D, e[48] = w, e[49] = ue, e[50] = le, e[51] = a, e[52] = m, e[53] = k, e[54] = E, e[55] = I, e[56] = P, e[57] = q, e[58] = C, e[59] = $, e[60] = L, e[61] = V, e[62] = A, e[63] = x, e[64] = B, e[65] = F, e[66] = H, e[67] = R, e[68] = j, e[69] = p, e[70] = u, e[71] = _;
|
|
129
129
|
} else
|
|
130
130
|
k = e[53], E = e[54], I = e[55], P = e[56], q = e[57], C = e[58], $ = e[59], L = e[60], V = e[61], A = e[62], x = e[63], B = e[64], F = e[65], H = e[66], R = e[67], j = e[68], p = e[69], u = e[70], _ = e[71];
|
|
131
131
|
let W;
|
|
@@ -4,8 +4,8 @@ import { d as nt } from "./index.CgTHIF3K.js";
|
|
|
4
4
|
import { c as T } from "./index.CEyLAtio.js";
|
|
5
5
|
import { forwardRef as ot, useState as Xe, useRef as ct } from "react";
|
|
6
6
|
import { u as dt } from "./useBreakpoint.CMOR9ZOB.js";
|
|
7
|
-
import { DSInput as ut } from "../input.
|
|
8
|
-
import { g as Je } from "./helpers.
|
|
7
|
+
import { DSInput as ut } from "../input.DhxUW3zc.js";
|
|
8
|
+
import { g as Je } from "./helpers.BbWkXTr3.js";
|
|
9
9
|
import '../assets/Slider.C8i4U4iT.css';const pt = "ds-slider_root_84q0h_1", mt = "ds-slider_hint_84q0h_10", bt = "ds-slider_label_84q0h_10", ht = "ds-slider_number-input_84q0h_13", ft = "ds-slider_label-hint-input-wrapper_84q0h_17", _t = "ds-slider_label--hidden_84q0h_37", Tt = "ds-slider_label--disabled_84q0h_50", xt = "ds-slider_number-input--small_84q0h_79", vt = "ds-slider_min-max-label-wrapper_84q0h_84", gt = "ds-slider_min-max-label-wrapper--disabled_84q0h_98", kt = "ds-slider_min-label_84q0h_103", Nt = "ds-slider_max-label_84q0h_107", St = "ds-slider_slider-wrapper_84q0h_111", yt = "ds-slider_slider_84q0h_111", Dt = "ds-slider_value-tooltip_84q0h_135", It = "ds-slider_proxy-thumb_84q0h_139", qt = "ds-slider_proxy-thumb--disabled_84q0h_206", Mt = "ds-slider_custom-track_84q0h_235", Lt = "ds-slider_custom-track--progress_84q0h_240", Vt = "ds-slider_custom-track--runnable_84q0h_252", wt = "ds-slider_custom-track--disabled_84q0h_266", Ct = "ds-slider_tick-wrapper_84q0h_286", Wt = "ds-slider_tick_84q0h_286", $t = "ds-slider_value-tooltip--visible_84q0h_358", Pt = "ds-slider_value-tooltip--disabled_84q0h_361", a = {
|
|
10
10
|
root: pt,
|
|
11
11
|
hint: mt,
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { jsx as N, jsxs as L } from "react/jsx-runtime";
|
|
3
3
|
import { d as M } from "./index.CgTHIF3K.js";
|
|
4
4
|
import { useState as $ } from "react";
|
|
5
|
-
import { TabList as j } from "../tablist.
|
|
5
|
+
import { TabList as j } from "../tablist.Dzwe0_J4.js";
|
|
6
6
|
import { TabPane as B } from "../tabpane.CB-eudyw.js";
|
|
7
7
|
import { g as C } from "./TabPane.utils.DG16Y2uD.js";
|
|
8
|
-
import { g, r as O } from "./helpers.
|
|
8
|
+
import { g, r as O } from "./helpers.BbWkXTr3.js";
|
|
9
9
|
const J = ["left", "center"], K = ["prev", "next"], _ = ({
|
|
10
10
|
id: T,
|
|
11
11
|
tabs: e,
|
|
@@ -3,7 +3,7 @@ import { jsx as $ } from "react/jsx-runtime";
|
|
|
3
3
|
import { d as z } from "./index.CgTHIF3K.js";
|
|
4
4
|
import { c as C } from "./index.CEyLAtio.js";
|
|
5
5
|
import { useRef as G, useEffect as H } from "react";
|
|
6
|
-
import { a as v, g as y } from "./helpers.
|
|
6
|
+
import { a as v, g as y } from "./helpers.BbWkXTr3.js";
|
|
7
7
|
import '../assets/Text.Dgpj61UP.css';const I = "ds-text_root_1mo26_6", P = "ds-text_root--large_1mo26_15", R = "ds-text_root--large-bold_1mo26_26", W = "ds-text_root--medium_1mo26_37", j = "ds-text_root--medium-bold_1mo26_48", q = "ds-text_root--small_1mo26_59", O = "ds-text_root--small-bold_1mo26_70", V = "ds-text_root--x-small_1mo26_81", Z = "ds-text_root--x-small-bold_1mo26_92", F = "ds-text_root--xx-small_1mo26_103", J = "ds-text_root--theme-dark_1mo26_197", o = {
|
|
8
8
|
root: I,
|
|
9
9
|
rootLarge: P,
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsxs as d, jsx as
|
|
2
|
+
import { jsxs as d, jsx as p, Fragment as le } from "react/jsx-runtime";
|
|
3
3
|
import { c as A } from "./index.CEyLAtio.js";
|
|
4
|
-
import { forwardRef as ie, useState as i, useRef as ce, useEffect as
|
|
5
|
-
import { g as
|
|
4
|
+
import { forwardRef as ie, useState as i, useRef as ce, useEffect as m } from "react";
|
|
5
|
+
import { g as q, p as z } from "./helpers.BbWkXTr3.js";
|
|
6
6
|
import { u as de } from "./useBreakpoint.CMOR9ZOB.js";
|
|
7
7
|
import "./index.CgTHIF3K.js";
|
|
8
8
|
import { Asterisk as ue } from "../asterisk.CR60hx8S.js";
|
|
9
|
-
import { DSSystemFeedback as fe } from "../systemfeedback.
|
|
10
|
-
import '../assets/Textarea.
|
|
11
|
-
textarea:
|
|
12
|
-
textareaInvalid: be,
|
|
9
|
+
import { DSSystemFeedback as fe } from "../systemfeedback.CLQCbTF6.js";
|
|
10
|
+
import '../assets/Textarea.BgtH-TTe.css';const be = "ds-textarea_textarea_1y99f_1", _e = "ds-textarea_textarea--small_1y99f_9", he = "ds-textarea_textarea--invalid_1y99f_121", pe = "ds-textarea_textarea--resize-auto_1y99f_145", me = "ds-textarea_root_1y99f_155", xe = "ds-textarea_hint_1y99f_164", ye = "ds-textarea_label_1y99f_164", ve = "ds-textarea_label--hidden_1y99f_272", Ce = "ds-textarea_label--disabled_1y99f_285", Se = "ds-textarea_feedback_1y99f_305", Ae = "ds-textarea_char-count_1y99f_310", Ie = "ds-textarea_char-count-announcer_1y99f_326", a = {
|
|
11
|
+
textarea: be,
|
|
13
12
|
textareaSmall: _e,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
textareaInvalid: he,
|
|
14
|
+
textareaResizeAuto: pe,
|
|
15
|
+
root: me,
|
|
16
|
+
hint: xe,
|
|
17
|
+
label: ye,
|
|
18
|
+
labelHidden: ve,
|
|
19
|
+
labelDisabled: Ce,
|
|
20
|
+
feedback: Se,
|
|
21
21
|
charCount: Ae,
|
|
22
22
|
charCountAnnouncer: Ie
|
|
23
|
-
},
|
|
23
|
+
}, Ve = ["medium", "small"], Te = ({
|
|
24
24
|
id: r,
|
|
25
25
|
label: u
|
|
26
26
|
}) => {
|
|
27
27
|
if (!r)
|
|
28
|
-
throw new Error(
|
|
28
|
+
throw new Error(q("DSTextarea", 'A unique "id" prop is required. Please add a unique "id" prop to the DSTextarea component.'));
|
|
29
29
|
if (!u)
|
|
30
|
-
throw new Error(
|
|
31
|
-
},
|
|
30
|
+
throw new Error(q("DSTextarea", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSTextarea component. If you don't want to display a label, set hideLabel={true}.`));
|
|
31
|
+
}, De = ie(({
|
|
32
32
|
id: r,
|
|
33
33
|
label: u,
|
|
34
34
|
charsLimitText: M = "Character limit reached",
|
|
@@ -36,41 +36,41 @@ import '../assets/Textarea.BGV7Z0Z9.css';const xe = "ds-textarea_textarea_qx67e_
|
|
|
36
36
|
className: F,
|
|
37
37
|
defaultValue: X,
|
|
38
38
|
disabled: I = !1,
|
|
39
|
-
hint:
|
|
39
|
+
hint: x,
|
|
40
40
|
hideLabel: Z = !1,
|
|
41
41
|
invalid: s = !1,
|
|
42
42
|
maxLength: e,
|
|
43
43
|
readonly: T = !1,
|
|
44
|
-
required:
|
|
44
|
+
required: D = !1,
|
|
45
45
|
resize: f = "vertical",
|
|
46
46
|
size: G = "medium",
|
|
47
47
|
systemFeedback: n,
|
|
48
|
-
value:
|
|
48
|
+
value: y,
|
|
49
49
|
wrapperClassName: J,
|
|
50
|
-
onChange:
|
|
51
|
-
onInput:
|
|
50
|
+
onChange: w,
|
|
51
|
+
onInput: R,
|
|
52
52
|
...K
|
|
53
|
-
},
|
|
53
|
+
}, b) => {
|
|
54
54
|
process.env.NODE_ENV !== "production" && Te({
|
|
55
55
|
id: r,
|
|
56
56
|
label: u
|
|
57
57
|
});
|
|
58
|
-
const [Q,
|
|
59
|
-
o.current = t, typeof
|
|
58
|
+
const [Q, N] = i(X || ""), [l, E] = i(0), [U, g] = i(0), [W, $] = i("off"), [k, v] = i(n), [C, S] = i(s), H = y !== void 0, _ = H ? y : Q, o = ce(null), Y = (t) => {
|
|
59
|
+
o.current = t, typeof b == "function" ? b(t) : b && (b.current = t);
|
|
60
60
|
}, L = de(Z);
|
|
61
|
-
|
|
61
|
+
m(() => {
|
|
62
62
|
if (!e || e <= 0)
|
|
63
63
|
return;
|
|
64
|
-
l >= e * 0.8 ?
|
|
64
|
+
l >= e * 0.8 ? $("polite") : $("off");
|
|
65
65
|
const t = setTimeout(() => {
|
|
66
|
-
|
|
66
|
+
g(e - l || 0);
|
|
67
67
|
}, 1e3);
|
|
68
68
|
return () => clearTimeout(t);
|
|
69
|
-
}, [l]),
|
|
70
|
-
|
|
71
|
-
}, [
|
|
72
|
-
s && n ? (
|
|
73
|
-
}, [s,
|
|
69
|
+
}, [l]), m(() => {
|
|
70
|
+
N(_ || ""), c(), e && e > 0 && (E(_.toString().length || 0), g(e - _.toString().length || 0));
|
|
71
|
+
}, [y]), m(() => {
|
|
72
|
+
s && n ? (v(n), S(s)) : !s && e && e >= 0 && l >= e ? (S(!0), v(M)) : (v(n), S(s));
|
|
73
|
+
}, [s, C, n, l]), m(() => {
|
|
74
74
|
if (f === "auto")
|
|
75
75
|
return c(), window.addEventListener("resize", c), () => window.removeEventListener("resize", c);
|
|
76
76
|
}, [f, o.current]);
|
|
@@ -78,53 +78,53 @@ import '../assets/Textarea.BGV7Z0Z9.css';const xe = "ds-textarea_textarea_qx67e_
|
|
|
78
78
|
// small textarea
|
|
79
79
|
[a.textareaSmall]: G === "small",
|
|
80
80
|
// invalid state
|
|
81
|
-
[a.textareaInvalid]:
|
|
81
|
+
[a.textareaInvalid]: C,
|
|
82
82
|
// resize handling
|
|
83
83
|
[a.textareaResizeAuto]: f === "auto"
|
|
84
84
|
}), ae = A(a.label, {
|
|
85
85
|
// hide label only visually to keep them available for assistive technologies
|
|
86
86
|
[a.labelHidden]: L,
|
|
87
87
|
[a.labelDisabled]: I
|
|
88
|
-
}),
|
|
88
|
+
}), V = `${r}-label`, P = `${r}-feedback`, j = `${r}-hint`, B = `${r}-char-count-announcer`, re = x ? ` ${j}` : "", c = () => {
|
|
89
89
|
if (o.current && f === "auto") {
|
|
90
90
|
o.current.style.height = "auto";
|
|
91
|
-
const t = z(o.current.scrollHeight),
|
|
91
|
+
const t = z(o.current.scrollHeight), h = z(2);
|
|
92
92
|
o.current.style.height = `${// We need to add 2px (border-top & border-bottom) to the scrollHeight to prevent the textarea
|
|
93
93
|
// from jumping as soon as the user starts typing.
|
|
94
|
-
t +
|
|
94
|
+
t + h}rem`;
|
|
95
95
|
}
|
|
96
96
|
}, se = () => {
|
|
97
97
|
const t = [];
|
|
98
|
-
return e && e > 0 && t.push(
|
|
98
|
+
return e && e > 0 && t.push(B), s && n && t.push(P), t.length > 0 ? t.join(" ") : void 0;
|
|
99
99
|
}, oe = (t) => {
|
|
100
|
-
var
|
|
101
|
-
|
|
100
|
+
var h;
|
|
101
|
+
R && R(t), e && e > 0 && E(((h = o.current) == null ? void 0 : h.value.length) || 0), c();
|
|
102
102
|
}, ne = (t) => {
|
|
103
|
-
|
|
103
|
+
w && w(t), H || N(t.target.value);
|
|
104
104
|
};
|
|
105
105
|
return /* @__PURE__ */ d("div", { className: ee, children: [
|
|
106
|
-
/* @__PURE__ */ d("label", { className: ae, id:
|
|
106
|
+
/* @__PURE__ */ d("label", { className: ae, id: V, htmlFor: r, children: [
|
|
107
107
|
u,
|
|
108
|
-
|
|
108
|
+
D && /* @__PURE__ */ p(ue, {})
|
|
109
109
|
] }),
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
/* @__PURE__ */
|
|
110
|
+
x && /* @__PURE__ */ p("div", { className: a.hint, id: j, children: x }),
|
|
111
|
+
C && k && /* @__PURE__ */ p(fe, { className: a.feedback, message: k, type: "invalid", id: P }),
|
|
112
|
+
/* @__PURE__ */ p(
|
|
113
113
|
"textarea",
|
|
114
114
|
{
|
|
115
115
|
className: te,
|
|
116
116
|
id: r,
|
|
117
117
|
...K,
|
|
118
118
|
ref: Y,
|
|
119
|
-
"aria-labelledby": `${
|
|
119
|
+
"aria-labelledby": `${V}${re}`,
|
|
120
120
|
"aria-describedby": se(),
|
|
121
121
|
"aria-invalid": s,
|
|
122
122
|
"aria-disabled": T,
|
|
123
123
|
maxLength: e,
|
|
124
124
|
readOnly: T,
|
|
125
|
-
required:
|
|
125
|
+
required: D,
|
|
126
126
|
disabled: I,
|
|
127
|
-
value:
|
|
127
|
+
value: _,
|
|
128
128
|
defaultValue: void 0,
|
|
129
129
|
rows: void 0,
|
|
130
130
|
cols: void 0,
|
|
@@ -142,7 +142,7 @@ import '../assets/Textarea.BGV7Z0Z9.css';const xe = "ds-textarea_textarea_qx67e_
|
|
|
142
142
|
"div",
|
|
143
143
|
{
|
|
144
144
|
className: a.charCountAnnouncer,
|
|
145
|
-
id:
|
|
145
|
+
id: B,
|
|
146
146
|
"aria-live": W,
|
|
147
147
|
"aria-atomic": "true",
|
|
148
148
|
children: [
|
|
@@ -155,9 +155,9 @@ import '../assets/Textarea.BGV7Z0Z9.css';const xe = "ds-textarea_textarea_qx67e_
|
|
|
155
155
|
] })
|
|
156
156
|
] });
|
|
157
157
|
});
|
|
158
|
-
|
|
158
|
+
De.displayName = "DSTextarea";
|
|
159
159
|
export {
|
|
160
|
-
|
|
161
|
-
|
|
160
|
+
De as D,
|
|
161
|
+
Ve as T,
|
|
162
162
|
Te as v
|
|
163
163
|
};
|
|
@@ -3,8 +3,8 @@ import { jsx as C, jsxs as y } from "react/jsx-runtime";
|
|
|
3
3
|
import { d as E } from "./index.CgTHIF3K.js";
|
|
4
4
|
import { c as j } from "./index.CEyLAtio.js";
|
|
5
5
|
import { forwardRef as L } from "react";
|
|
6
|
-
import { D as M } from "./Button.
|
|
7
|
-
import { D as O } from "./Icon.
|
|
6
|
+
import { D as M } from "./Button.CC0qEsuR.js";
|
|
7
|
+
import { D as O } from "./Icon.C0161Glk.js";
|
|
8
8
|
import '../assets/Toast.CJ1zhDIT.css';const P = "ds-toast_root_gamkt_5", z = "ds-toast_root--closing_gamkt_19", A = "ds-toast_root--success_gamkt_54", R = "ds-toast_root--info_gamkt_58", $ = "ds-toast_root--warning_gamkt_62", q = "ds-toast_content_gamkt_67", F = "ds-toast_content--hide-icon_gamkt_74", G = "ds-toast_icon_gamkt_78", J = "ds-toast_message_gamkt_82", s = {
|
|
9
9
|
root: P,
|
|
10
10
|
rootClosing: z,
|