@stihl-design-system/components 1.0.0-RC.11 → 1.0.0-RC.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/{accordion.CEKQh-7i.js → accordion.Rvtiu8Y4.js} +3 -3
- package/arialiveregions.Cyycgs8g.js +27 -0
- package/assets/Accordion.i4k5SMQM.css +1 -0
- package/assets/CheckboxGroup.BH1Br1dg.css +1 -0
- package/assets/Chip.DSdLuzoi.css +1 -0
- package/assets/CustomReactSelect.vHt8qNKC.css +1 -0
- package/assets/Dialog.BgzebVk4.css +1 -0
- package/assets/Drawer.Bauwxrk7.css +1 -0
- package/assets/Fieldset.DOdTbb7C.css +1 -0
- package/assets/Icon.DxRSBRSL.css +1 -0
- package/assets/InputPassword.CG7Ugu73.css +1 -0
- package/assets/InputSearch.CseChMc-.css +1 -0
- package/assets/InputStepper.C0eAYr7P.css +1 -0
- package/assets/Notification.DbRapUJo.css +1 -0
- package/assets/RadioGroup.BfMo157q.css +1 -0
- package/assets/Select.D4EXgIbz.css +1 -0
- package/assets/Textarea.KJGPTYMz.css +1 -0
- package/assets/Toast.CuafTAf7.css +1 -0
- package/assets/arialiveregions.DhsijBaL.css +1 -0
- package/assets/asterisk.BfVAUBO7.css +1 -0
- package/assets/button.DF4RBeC2.css +1 -0
- package/assets/buttonround.19uK_-oO.css +1 -0
- package/assets/checkbox.ByOoFouu.css +1 -0
- package/assets/chipgroup.BzfZLbkv.css +1 -0
- package/assets/flag.B-RLcMcf.css +1 -0
- package/assets/floatingactionbutton.E9HekT6S.css +1 -0
- package/assets/heading.u4f8Mz94.css +1 -0
- package/assets/input.BAkFKPW3.css +1 -0
- package/assets/link.DDJj0D1U.css +1 -0
- package/assets/linkstandalone.DIazcjIv.css +1 -0
- package/assets/logo.CnW8alZU.css +1 -0
- package/assets/optioncheckbox.BZaWtRD7.css +1 -0
- package/assets/radio.X-RTl_jo.css +1 -0
- package/assets/skiptocontent.PTL3256m.css +1 -0
- package/assets/spinner.2iWJWKyA.css +1 -0
- package/assets/switch.gw6aa3kx.css +1 -0
- package/assets/systemfeedback.BPz5YlPC.css +1 -0
- package/assets/text.DjTG_qNb.css +1 -0
- package/assets/title.rosWPEG3.css +1 -0
- package/asterisk.DpzETKdT.js +8 -0
- package/button.M4nXjcUn.js +135 -0
- package/buttonround.E56F_805.js +118 -0
- package/checkbox.Cb2_ey6U.js +111 -0
- package/{checkboxgroup.BqD5IV51.js → checkboxgroup.DBDmB-zR.js} +2 -2
- package/{chip.B92ew-hk.js → chip.C_1tGqvZ.js} +2 -2
- package/chipgroup.BvTj1ziW.js +174 -0
- package/chunks/Accordion.CB6jB3s_.js +125 -0
- package/chunks/{CheckboxGroup.M3jOjhNf.js → CheckboxGroup.S6i5EOc4.js} +40 -40
- package/chunks/{Chip.fMG8wi5K.js → Chip.CMlPUyOJ.js} +15 -15
- package/chunks/{CustomReactSelect.D3jv5-fa.js → CustomReactSelect.CQ1uexBH.js} +1321 -1321
- package/chunks/Dialog.CudsqNag.js +148 -0
- package/chunks/Drawer.ueG2Bzr9.js +154 -0
- package/chunks/{Fieldset.C9K8BYmH.js → Fieldset.Cjmkgxxk.js} +32 -32
- package/chunks/{Icon.C2o2seDb.js → Icon.BCmt_XBG.js} +45 -45
- package/chunks/InputPassword.CNLbBFjx.js +143 -0
- package/chunks/InputSearch.CHA6mkX_.js +192 -0
- package/chunks/InputStepper.xmWGU9pU.js +294 -0
- package/chunks/Notification.nx5vTamN.js +92 -0
- package/chunks/RadioGroup.Crj7NoOs.js +137 -0
- package/chunks/Select.E6gLFYLk.js +194 -0
- package/chunks/Textarea.DUBSOpNL.js +198 -0
- package/chunks/Toast.DyEi2GEP.js +89 -0
- package/{combobox.BeTnbG1m.js → combobox.CzBpi97e.js} +1 -1
- package/components/Combobox/Combobox.d.ts +1 -1
- package/components/{CustomReactSelect → Combobox/CustomReactSelect}/CustomReactSelect.d.ts +2 -2
- package/components/{CustomReactSelect → Combobox/CustomReactSelect}/CustomReactSelect.utils.d.ts +1 -1
- package/components/Notification/Notification.d.ts +2 -6
- package/components/Radio/Radio.d.ts +1 -1
- package/customreactselect.d.ts +1 -1
- package/customreactselect.qf7CIeFs.js +13 -0
- package/{dialog.lGwNQU91.js → dialog.DYlBUsOD.js} +2 -2
- package/{drawer.DNi5m8wP.js → drawer.CvhbP1ra.js} +2 -2
- package/fieldset.CtUGEdLv.js +11 -0
- package/flag.BKpsdB_-.js +43 -0
- package/floatingactionbutton.D5L0B7zI.js +87 -0
- package/heading.IPIYc5vW.js +50 -0
- package/{icon.BoMgOmC1.js → icon.Ck0BpI34.js} +1 -1
- package/index.es.js +34 -34
- package/input.BEnCFNM-.js +239 -0
- package/{inputpassword.CSjh1GU7.js → inputpassword.B-D_jB9w.js} +4 -4
- package/{inputsearch.DyznOWLK.js → inputsearch.CaSpklR1.js} +4 -4
- package/{inputstepper.3BLb7s0P.js → inputstepper.C7KD1-0S.js} +4 -4
- package/link.DREJAoPG.js +116 -0
- package/linkstandalone.BBoEniZ_.js +79 -0
- package/logo.Hul8qCFo.js +65 -0
- package/{notification.0kX1GMaB.js → notification.6M0OdGXK.js} +3 -3
- package/optioncheckbox.BRUTnQnJ.js +43 -0
- package/optioncheckbox.d.ts +1 -1
- package/package.json +8 -6
- package/partials/index.js +1 -1
- package/radio.DEILy_lV.js +114 -0
- package/{radiogroup.SYkZm2DG.js → radiogroup.DeU-HdlP.js} +3 -3
- package/{select.CYbwR3RW.js → select.BYraFJzz.js} +4 -4
- package/skiptocontent.BxvpIB7H.js +45 -0
- package/spinner.Bq97Og-6.js +58 -0
- package/styles/scss/ds/index.scss +19 -0
- package/styles/scss/ds/lib/animation.scss +21 -0
- package/styles/scss/ds/lib/breakpoints.scss +15 -0
- package/styles/scss/ds/lib/container-query.scss +54 -0
- package/styles/scss/ds/lib/ds-internal/_a11y.scss +15 -0
- package/styles/scss/{lib → ds/lib/ds-internal}/_focus.scss +13 -15
- package/styles/scss/ds/lib/ds-internal/_heading.scss +37 -0
- package/styles/scss/ds/lib/ds-internal/_helpers.scss +32 -0
- package/styles/scss/ds/lib/ds-internal/_high-contrast.scss +6 -0
- package/styles/scss/ds/lib/ds-internal/_hover.scss +6 -0
- package/styles/scss/ds/lib/ds-internal/_index.scss +9 -0
- package/styles/scss/ds/lib/ds-internal/_link.scss +62 -0
- package/styles/scss/ds/lib/ds-internal/_spacing-dynamic.scss +53 -0
- package/styles/scss/ds/lib/ds-internal/_text.scss +30 -0
- package/styles/scss/ds/lib/grid-extended.scss +11 -0
- package/styles/scss/ds/lib/grid-full.scss +6 -0
- package/styles/scss/ds/lib/grid-main.scss +119 -0
- package/styles/scss/ds/lib/grid-narrow.scss +14 -0
- package/styles/scss/ds/lib/grid-sidebar-sidebar.scss +52 -0
- package/styles/scss/{lib/_grid-sidebar.scss → ds/lib/grid-sidebar.scss} +23 -32
- package/styles/scss/{lib/_grid.scss → ds/lib/grid.scss} +15 -17
- package/styles/scss/ds/lib/heading.scss +75 -0
- package/styles/scss/ds/lib/link.scss +74 -0
- package/styles/scss/ds/lib/media-query.scss +32 -0
- package/styles/scss/{lib/_shadow.scss → ds/lib/shadow.scss} +2 -2
- package/styles/scss/ds/lib/spacing-dynamic.scss +7 -0
- package/styles/scss/ds/lib/spacing.scss +20 -0
- package/styles/scss/ds/lib/text.scss +83 -0
- package/styles/scss/ds/lib/theme.scss +162 -0
- package/styles/scss/ds/lib/transition.scss +36 -0
- package/switch.DI8YYa5G.js +65 -0
- package/{systemfeedback.ZzRUAVYX.js → systemfeedback.C3Pfxxpp.js} +6 -6
- package/text.DThvTwm8.js +57 -0
- package/{textarea.DJc527nX.js → textarea.CBvH0ljM.js} +3 -3
- package/title.DqzdB2Gq.js +36 -0
- package/{toast.D48GFmp0.js → toast.n1QUINSA.js} +3 -3
- package/{toastmanager.Dl8-Q3ED.js → toastmanager.B7EZ4JSI.js} +1 -1
- package/arialiveregions.BKpxxK7O.js +0 -27
- package/assets/Accordion.DMEFgtQm.css +0 -1
- package/assets/CheckboxGroup.Bz3_xkZU.css +0 -1
- package/assets/Chip.D10_7Q82.css +0 -1
- package/assets/CustomReactSelect.D5XKd9vg.css +0 -1
- package/assets/Dialog.B0pucIEI.css +0 -1
- package/assets/Drawer.CATBzfY7.css +0 -1
- package/assets/Fieldset.CwDhKRUL.css +0 -1
- package/assets/Icon.Duy_0R8w.css +0 -1
- package/assets/InputPassword.DOAAzj-O.css +0 -1
- package/assets/InputSearch.CxPYaQGZ.css +0 -1
- package/assets/InputStepper.CYYJUu0b.css +0 -1
- package/assets/Notification.mhVFeSGm.css +0 -1
- package/assets/Select.DZKpHV4G.css +0 -1
- package/assets/Textarea.Cp0b7oZp.css +0 -1
- package/assets/Toast.Cz6wYaBv.css +0 -1
- package/assets/arialiveregions.GsGx2USO.css +0 -1
- package/assets/asterisk.DlJ4YtSZ.css +0 -1
- package/assets/button.C9_ejpGG.css +0 -1
- package/assets/buttonround.DTCqRP-0.css +0 -1
- package/assets/checkbox.K4CVYK9g.css +0 -1
- package/assets/chipgroup.BMovtKTy.css +0 -1
- package/assets/flag.DX_lH1v7.css +0 -1
- package/assets/floatingactionbutton.Do-yEH6c.css +0 -1
- package/assets/heading.6bER-Eac.css +0 -1
- package/assets/input.Q5oKkmW2.css +0 -1
- package/assets/link.DhZqkLMP.css +0 -1
- package/assets/linkstandalone.Dwz-_O8q.css +0 -1
- package/assets/logo.pETQEsvZ.css +0 -1
- package/assets/optioncheckbox.C62HtIj5.css +0 -1
- package/assets/radio.-Xxx5wL4.css +0 -1
- package/assets/skiptocontent.CHcqLS7S.css +0 -1
- package/assets/spinner.D_Nnf1ZG.css +0 -1
- package/assets/switch.C1Ei0-z8.css +0 -1
- package/assets/systemfeedback.Sq0bAIyf.css +0 -1
- package/assets/text.DxKFcfY6.css +0 -1
- package/assets/title.f74Bosn-.css +0 -1
- package/asterisk.DDn-yX4P.js +0 -8
- package/button.C5opEJ6x.js +0 -135
- package/buttonround.CUoqRyy0.js +0 -118
- package/checkbox.DETR3e3X.js +0 -112
- package/chipgroup.BJrqEfvr.js +0 -175
- package/chunks/Accordion.DFwFN8mX.js +0 -125
- package/chunks/Dialog.Fwr6vLiK.js +0 -148
- package/chunks/Drawer.CKoYzQHd.js +0 -154
- package/chunks/InputPassword.C7pNeWGx.js +0 -143
- package/chunks/InputSearch.B24rcIJ_.js +0 -192
- package/chunks/InputStepper.CEW-bieQ.js +0 -294
- package/chunks/Notification.BXVN7_Fs.js +0 -93
- package/chunks/RadioGroup.D4UOflwr.js +0 -137
- package/chunks/Select.Ds86q4UC.js +0 -194
- package/chunks/Textarea.DcB8hKnO.js +0 -198
- package/chunks/Toast.DrzxdzVW.js +0 -89
- package/customreactselect.lYJhIeyx.js +0 -13
- package/fieldset.BqiAjeax.js +0 -11
- package/flag.XJHHSP38.js +0 -43
- package/floatingactionbutton.CMpkTdhX.js +0 -87
- package/heading.CAkraI2D.js +0 -50
- package/input.v7qB7wPJ.js +0 -239
- package/link.Clk5_BYp.js +0 -116
- package/linkstandalone.BXERmqdN.js +0 -80
- package/logo.CEO6OV7u.js +0 -65
- package/optioncheckbox.BPN3f6l_.js +0 -43
- package/radio.DTZNJzMU.js +0 -115
- package/skiptocontent.DUQWopO4.js +0 -46
- package/spinner.D-xrotcu.js +0 -58
- package/styles/scss/_index.scss +0 -24
- package/styles/scss/lib/_a11y.scss +0 -15
- package/styles/scss/lib/_animation.scss +0 -21
- package/styles/scss/lib/_breakpoints.scss +0 -15
- package/styles/scss/lib/_container-query.scss +0 -58
- package/styles/scss/lib/_grid-extended.scss +0 -11
- package/styles/scss/lib/_grid-full.scss +0 -6
- package/styles/scss/lib/_grid-main.scss +0 -117
- package/styles/scss/lib/_grid-narrow.scss +0 -16
- package/styles/scss/lib/_grid-sidebar-sidebar.scss +0 -50
- package/styles/scss/lib/_heading.scss +0 -107
- package/styles/scss/lib/_helpers.scss +0 -15
- package/styles/scss/lib/_high-contrast.scss +0 -24
- package/styles/scss/lib/_hover.scss +0 -10
- package/styles/scss/lib/_link.scss +0 -129
- package/styles/scss/lib/_media-query.scss +0 -32
- package/styles/scss/lib/_spacing-dynamic.scss +0 -61
- package/styles/scss/lib/_spacing.scss +0 -32
- package/styles/scss/lib/_text.scss +0 -110
- package/styles/scss/lib/_theme.scss +0 -162
- package/styles/scss/lib/_transition.scss +0 -45
- package/switch.CoNnIhM4.js +0 -65
- package/text.fMcHzVbH.js +0 -57
- package/title.LY1ylQsb.js +0 -36
- /package/components/{CustomReactSelect → Combobox/CustomReactSelect}/CustomReactSelect.utils.test.d.ts +0 -0
- /package/components/{CustomReactSelect → Combobox/CustomReactSelect}/OptionCheckbox.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ds-title_root_tt8l3_1{color:#252525}.ds-title_root--x-large-uppercase_tt8l3_4{font-family:STIHL Contraface Digital Display Title,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-style:normal;font-variant:normal;font-weight:400;font-size:1.625rem;line-height:1.2;font-size-adjust:cap-height .68;text-transform:uppercase}@media (min-width: 1024px){.ds-title_root--x-large-uppercase_tt8l3_4{font-size:1.875rem;line-height:1.25}}.ds-title_root--large-uppercase_tt8l3_20{font-family:STIHL Contraface Digital Display Title,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-style:normal;font-variant:normal;font-weight:400;font-size:1.375rem;line-height:1.25;font-size-adjust:cap-height .68;text-transform:uppercase}@media (min-width: 1024px){.ds-title_root--large-uppercase_tt8l3_20{font-size:1.625rem;line-height:1.2}}.ds-title_root--theme-dark_tt8l3_36{color:#fff}.ds-title_root_tt8l3_1>.ds-title_dash_tt8l3_39{display:block;text-transform:none}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as s } from "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
|
+
import './assets/asterisk.BfVAUBO7.css';const t = "ds-asterisk_root_1nm42_1", o = {
|
|
4
|
+
root: t
|
|
5
|
+
}, e = () => /* @__PURE__ */ s.jsx("span", { className: o.root, "aria-hidden": "true", children: "*" });
|
|
6
|
+
export {
|
|
7
|
+
e as Asterisk
|
|
8
|
+
};
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as n } from "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
|
+
import { c as i } from "./chunks/index.CvOaL64Y.js";
|
|
4
|
+
import { u as a } from "./chunks/useBreakpoint.5xBNDiCf.js";
|
|
5
|
+
import { D as I } from "./chunks/Icon.BCmt_XBG.js";
|
|
6
|
+
import { DSSpinner as F } from "./spinner.Bq97Og-6.js";
|
|
7
|
+
import './assets/button.DF4RBeC2.css';const S = "ds-button_root_170gw_1", x = "ds-button_root--highlight_170gw_75", j = "ds-button_root--dark-highlight_170gw_75", L = "ds-button_root--filled_170gw_151", C = "ds-button_root--outline_170gw_179", N = "ds-button_root--ghost_170gw_206", B = "ds-button_root--ghost-flush_170gw_231", E = "ds-button_root--small_170gw_237", R = "ds-button_root--dark-filled_170gw_317", T = "ds-button_root--dark-outline_170gw_374", V = "ds-button_root--dark-ghost_170gw_430", q = "ds-button_root--dark-ghost-flush_170gw_484", A = "ds-button_root--icon-left_170gw_546", J = "ds-button_root--icon-only_170gw_562", K = "ds-button_root--icon-only-small_170gw_571", M = "ds-button_loader_170gw_586", P = "ds-button_icon--hidden_170gw_598", Q = "ds-button_label--hidden_170gw_602", U = "ds-button_label--loading_170gw_614", o = {
|
|
8
|
+
root: S,
|
|
9
|
+
"root--highlight": "ds-button_root--highlight_170gw_75",
|
|
10
|
+
rootHighlight: x,
|
|
11
|
+
"root--dark-highlight": "ds-button_root--dark-highlight_170gw_75",
|
|
12
|
+
rootDarkHighlight: j,
|
|
13
|
+
"root--filled": "ds-button_root--filled_170gw_151",
|
|
14
|
+
rootFilled: L,
|
|
15
|
+
"root--outline": "ds-button_root--outline_170gw_179",
|
|
16
|
+
rootOutline: C,
|
|
17
|
+
"root--ghost": "ds-button_root--ghost_170gw_206",
|
|
18
|
+
rootGhost: N,
|
|
19
|
+
"root--ghost-flush": "ds-button_root--ghost-flush_170gw_231",
|
|
20
|
+
rootGhostFlush: B,
|
|
21
|
+
"root--small": "ds-button_root--small_170gw_237",
|
|
22
|
+
rootSmall: E,
|
|
23
|
+
"root--dark-filled": "ds-button_root--dark-filled_170gw_317",
|
|
24
|
+
rootDarkFilled: R,
|
|
25
|
+
"root--dark-outline": "ds-button_root--dark-outline_170gw_374",
|
|
26
|
+
rootDarkOutline: T,
|
|
27
|
+
"root--dark-ghost": "ds-button_root--dark-ghost_170gw_430",
|
|
28
|
+
rootDarkGhost: V,
|
|
29
|
+
"root--dark-ghost-flush": "ds-button_root--dark-ghost-flush_170gw_484",
|
|
30
|
+
rootDarkGhostFlush: q,
|
|
31
|
+
"root--icon-left": "ds-button_root--icon-left_170gw_546",
|
|
32
|
+
rootIconLeft: A,
|
|
33
|
+
"root--icon-only": "ds-button_root--icon-only_170gw_562",
|
|
34
|
+
rootIconOnly: J,
|
|
35
|
+
"root--icon-only-small": "ds-button_root--icon-only-small_170gw_571",
|
|
36
|
+
rootIconOnlySmall: K,
|
|
37
|
+
loader: M,
|
|
38
|
+
"icon--hidden": "ds-button_icon--hidden_170gw_598",
|
|
39
|
+
iconHidden: P,
|
|
40
|
+
"label--hidden": "ds-button_label--hidden_170gw_602",
|
|
41
|
+
labelHidden: Q,
|
|
42
|
+
"label--loading": "ds-button_label--loading_170gw_614",
|
|
43
|
+
labelLoading: U
|
|
44
|
+
}, z = ({
|
|
45
|
+
children: b,
|
|
46
|
+
aria: k,
|
|
47
|
+
className: f,
|
|
48
|
+
dataTrackingid: w,
|
|
49
|
+
disabled: e = !1,
|
|
50
|
+
hideLabel: d = !1,
|
|
51
|
+
iconName: g,
|
|
52
|
+
iconPosition: m = "left",
|
|
53
|
+
iconSource: h,
|
|
54
|
+
isFlush: s = !1,
|
|
55
|
+
loading: r = !1,
|
|
56
|
+
size: _ = "medium",
|
|
57
|
+
theme: l = "light",
|
|
58
|
+
variant: t = "filled",
|
|
59
|
+
onClick: u,
|
|
60
|
+
...D
|
|
61
|
+
}) => {
|
|
62
|
+
const y = i(o.root, f, {
|
|
63
|
+
// variant
|
|
64
|
+
[o.rootFilled]: t === "filled",
|
|
65
|
+
[o.rootHighlight]: t === "highlight",
|
|
66
|
+
[o.rootOutline]: t === "outline",
|
|
67
|
+
[o.rootGhost]: t === "ghost" && s !== !0,
|
|
68
|
+
// isFlush
|
|
69
|
+
[o.rootGhostFlush]: t === "ghost" && s === !0,
|
|
70
|
+
// dark theme
|
|
71
|
+
[o.rootDarkFilled]: l === "dark" && t === "filled",
|
|
72
|
+
[o.rootDarkHighlight]: l === "dark" && t === "highlight",
|
|
73
|
+
[o.rootDarkOutline]: l === "dark" && t === "outline",
|
|
74
|
+
[o.rootDarkGhost]: l === "dark" && t === "ghost" && s !== !0,
|
|
75
|
+
// dark isFlush
|
|
76
|
+
[o.rootDarkGhostFlush]: l === "dark" && t === "ghost" && s === !0,
|
|
77
|
+
// size
|
|
78
|
+
[o.rootSmall]: _ === "small",
|
|
79
|
+
// icon position
|
|
80
|
+
[o.rootIconLeft]: m === "left",
|
|
81
|
+
// icon only
|
|
82
|
+
[o.rootIconOnly]: a(d) && _ === "medium",
|
|
83
|
+
[o.rootIconOnlySmall]: a(d) && _ === "small"
|
|
84
|
+
}), O = i(o.label, {
|
|
85
|
+
// hide label only visually to keep them available for assistive technologies
|
|
86
|
+
[o.labelHidden]: a(d),
|
|
87
|
+
// set label opacity to 0 when loading to prevent button size from changing
|
|
88
|
+
[o.labelLoading]: r
|
|
89
|
+
}), p = i(o.icon, {
|
|
90
|
+
// set icon opacity to 0 when loading to prevent button size from changing
|
|
91
|
+
[o.iconHidden]: r
|
|
92
|
+
}), G = l === "light" && t === "filled" || l === "dark" && t === "outline" || l === "dark" && t === "ghost" ? "dark" : "light", H = (c) => {
|
|
93
|
+
if (e || r) {
|
|
94
|
+
c.preventDefault();
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
u && u(c);
|
|
98
|
+
};
|
|
99
|
+
return /* @__PURE__ */ n.jsxs(
|
|
100
|
+
"button",
|
|
101
|
+
{
|
|
102
|
+
className: y,
|
|
103
|
+
"data-trackingid": w,
|
|
104
|
+
type: "submit",
|
|
105
|
+
onClick: H,
|
|
106
|
+
...k,
|
|
107
|
+
...D,
|
|
108
|
+
"aria-disabled": e || r,
|
|
109
|
+
"aria-busy": r,
|
|
110
|
+
children: [
|
|
111
|
+
r && /* @__PURE__ */ n.jsx(
|
|
112
|
+
F,
|
|
113
|
+
{
|
|
114
|
+
className: o.loader,
|
|
115
|
+
aria: { "aria-label": "Loading state" }
|
|
116
|
+
}
|
|
117
|
+
),
|
|
118
|
+
/* @__PURE__ */ n.jsx("span", { className: O, children: b }),
|
|
119
|
+
(g || h) && /* @__PURE__ */ n.jsx(
|
|
120
|
+
I,
|
|
121
|
+
{
|
|
122
|
+
name: g,
|
|
123
|
+
theme: G,
|
|
124
|
+
source: h,
|
|
125
|
+
className: p,
|
|
126
|
+
"aria-hidden": "true"
|
|
127
|
+
}
|
|
128
|
+
)
|
|
129
|
+
]
|
|
130
|
+
}
|
|
131
|
+
);
|
|
132
|
+
};
|
|
133
|
+
export {
|
|
134
|
+
z as DSButton
|
|
135
|
+
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as n } from "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
|
+
import { c as d } from "./chunks/index.CvOaL64Y.js";
|
|
4
|
+
import { D as y } from "./chunks/Icon.BCmt_XBG.js";
|
|
5
|
+
import { DSSpinner as H } from "./spinner.Bq97Og-6.js";
|
|
6
|
+
import './assets/buttonround.19uK_-oO.css';const p = "ds-button-round_root_18xb6_1", F = "ds-button-round_root--highlight_18xb6_75", O = "ds-button-round_root--dark-highlight_18xb6_75", G = "ds-button-round_root--filled_18xb6_151", I = "ds-button-round_root--outline_18xb6_179", S = "ds-button-round_root--ghost_18xb6_206", j = "ds-button-round_root--ghost-flush_18xb6_231", L = "ds-button-round_root--small_18xb6_237", C = "ds-button-round_root--dark-filled_18xb6_317", N = "ds-button-round_root--dark-outline_18xb6_374", R = "ds-button-round_root--dark-ghost_18xb6_430", B = "ds-button-round_root--dark-ghost-flush_18xb6_484", E = "ds-button-round_root--icon-left_18xb6_546", T = "ds-button-round_root--icon-only_18xb6_562", q = "ds-button-round_root--icon-only-small_18xb6_571", w = "ds-button-round_loader_18xb6_588", z = "ds-button-round_icon--hidden_18xb6_600", A = "ds-button-round_label--hidden_18xb6_604", J = "ds-button-round_label--loading_18xb6_616", o = {
|
|
7
|
+
root: p,
|
|
8
|
+
"root--highlight": "ds-button-round_root--highlight_18xb6_75",
|
|
9
|
+
rootHighlight: F,
|
|
10
|
+
"root--dark-highlight": "ds-button-round_root--dark-highlight_18xb6_75",
|
|
11
|
+
rootDarkHighlight: O,
|
|
12
|
+
"root--filled": "ds-button-round_root--filled_18xb6_151",
|
|
13
|
+
rootFilled: G,
|
|
14
|
+
"root--outline": "ds-button-round_root--outline_18xb6_179",
|
|
15
|
+
rootOutline: I,
|
|
16
|
+
"root--ghost": "ds-button-round_root--ghost_18xb6_206",
|
|
17
|
+
rootGhost: S,
|
|
18
|
+
"root--ghost-flush": "ds-button-round_root--ghost-flush_18xb6_231",
|
|
19
|
+
rootGhostFlush: j,
|
|
20
|
+
"root--small": "ds-button-round_root--small_18xb6_237",
|
|
21
|
+
rootSmall: L,
|
|
22
|
+
"root--dark-filled": "ds-button-round_root--dark-filled_18xb6_317",
|
|
23
|
+
rootDarkFilled: C,
|
|
24
|
+
"root--dark-outline": "ds-button-round_root--dark-outline_18xb6_374",
|
|
25
|
+
rootDarkOutline: N,
|
|
26
|
+
"root--dark-ghost": "ds-button-round_root--dark-ghost_18xb6_430",
|
|
27
|
+
rootDarkGhost: R,
|
|
28
|
+
"root--dark-ghost-flush": "ds-button-round_root--dark-ghost-flush_18xb6_484",
|
|
29
|
+
rootDarkGhostFlush: B,
|
|
30
|
+
"root--icon-left": "ds-button-round_root--icon-left_18xb6_546",
|
|
31
|
+
rootIconLeft: E,
|
|
32
|
+
"root--icon-only": "ds-button-round_root--icon-only_18xb6_562",
|
|
33
|
+
rootIconOnly: T,
|
|
34
|
+
"root--icon-only-small": "ds-button-round_root--icon-only-small_18xb6_571",
|
|
35
|
+
rootIconOnlySmall: q,
|
|
36
|
+
loader: w,
|
|
37
|
+
"icon--hidden": "ds-button-round_icon--hidden_18xb6_600",
|
|
38
|
+
iconHidden: z,
|
|
39
|
+
"label--hidden": "ds-button-round_label--hidden_18xb6_604",
|
|
40
|
+
labelHidden: A,
|
|
41
|
+
"label--loading": "ds-button-round_label--loading_18xb6_616",
|
|
42
|
+
labelLoading: J
|
|
43
|
+
}, U = ({
|
|
44
|
+
children: b,
|
|
45
|
+
aria: e,
|
|
46
|
+
className: h,
|
|
47
|
+
dataTrackingid: c,
|
|
48
|
+
disabled: s = !1,
|
|
49
|
+
iconName: _ = "placeholder",
|
|
50
|
+
iconSource: u,
|
|
51
|
+
loading: t = !1,
|
|
52
|
+
theme: l = "light",
|
|
53
|
+
variant: r = "filled",
|
|
54
|
+
onClick: i,
|
|
55
|
+
...g
|
|
56
|
+
}) => {
|
|
57
|
+
const x = d(
|
|
58
|
+
o.root,
|
|
59
|
+
o.rootIconOnlySmall,
|
|
60
|
+
h,
|
|
61
|
+
{
|
|
62
|
+
// variant
|
|
63
|
+
[o.rootFilled]: r === "filled",
|
|
64
|
+
[o.rootHighlight]: r === "highlight",
|
|
65
|
+
// dark theme
|
|
66
|
+
[o.rootDarkFilled]: l === "dark" && r === "filled",
|
|
67
|
+
[o.rootDarkHighlight]: l === "dark" && r === "highlight"
|
|
68
|
+
}
|
|
69
|
+
), k = d(o.label, o.labelHidden, {
|
|
70
|
+
// set label opacity to 0 when loading to prevent button size from changing
|
|
71
|
+
[o.labelLoading]: t
|
|
72
|
+
}), f = d(o.icon, {
|
|
73
|
+
// set icon opacity to 0 when loading to prevent button size from changing
|
|
74
|
+
[o.iconHidden]: t
|
|
75
|
+
}), m = l === "light" && r === "filled" ? "dark" : "light", D = (a) => {
|
|
76
|
+
if (s || t) {
|
|
77
|
+
a.preventDefault();
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
i && i(a);
|
|
81
|
+
};
|
|
82
|
+
return /* @__PURE__ */ n.jsxs(
|
|
83
|
+
"button",
|
|
84
|
+
{
|
|
85
|
+
className: x,
|
|
86
|
+
"data-trackingid": c,
|
|
87
|
+
type: "button",
|
|
88
|
+
onClick: D,
|
|
89
|
+
...e,
|
|
90
|
+
...g,
|
|
91
|
+
"aria-disabled": s || t,
|
|
92
|
+
"aria-busy": t,
|
|
93
|
+
children: [
|
|
94
|
+
t && /* @__PURE__ */ n.jsx(
|
|
95
|
+
H,
|
|
96
|
+
{
|
|
97
|
+
className: o.loader,
|
|
98
|
+
aria: { "aria-label": "Loading state" }
|
|
99
|
+
}
|
|
100
|
+
),
|
|
101
|
+
/* @__PURE__ */ n.jsx("span", { className: k, children: b }),
|
|
102
|
+
(_ || u) && /* @__PURE__ */ n.jsx(
|
|
103
|
+
y,
|
|
104
|
+
{
|
|
105
|
+
name: _,
|
|
106
|
+
theme: m,
|
|
107
|
+
source: u,
|
|
108
|
+
className: f,
|
|
109
|
+
"aria-hidden": "true"
|
|
110
|
+
}
|
|
111
|
+
)
|
|
112
|
+
]
|
|
113
|
+
}
|
|
114
|
+
);
|
|
115
|
+
};
|
|
116
|
+
export {
|
|
117
|
+
U as DSButtonRound
|
|
118
|
+
};
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as e } from "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
|
+
import { c as d } from "./chunks/index.CvOaL64Y.js";
|
|
4
|
+
import { forwardRef as y, useRef as I, useState as H, useEffect as M, useCallback as g } from "react";
|
|
5
|
+
import { u as B } from "./chunks/useBreakpoint.5xBNDiCf.js";
|
|
6
|
+
import { D as k } from "./chunks/Icon.BCmt_XBG.js";
|
|
7
|
+
import { DSSystemFeedback as E } from "./systemfeedback.C3Pfxxpp.js";
|
|
8
|
+
import './assets/checkbox.ByOoFouu.css';const V = "ds-checkbox_root_1tuqo_1", w = "ds-checkbox_root--disabled_1tuqo_21", L = "ds-checkbox_checkbox_1tuqo_25", O = "ds-checkbox_icon-check_1tuqo_41", P = "ds-checkbox_icon-minus_1tuqo_42", R = "ds-checkbox_checkbox--invalid_1tuqo_66", U = "ds-checkbox_label--hidden_1tuqo_71", z = "ds-checkbox_input_1tuqo_84", A = "ds-checkbox_label_1tuqo_71", F = "ds-checkbox_feedback_1tuqo_198", c = {
|
|
9
|
+
root: V,
|
|
10
|
+
"root--disabled": "ds-checkbox_root--disabled_1tuqo_21",
|
|
11
|
+
rootDisabled: w,
|
|
12
|
+
checkbox: L,
|
|
13
|
+
"icon-check": "ds-checkbox_icon-check_1tuqo_41",
|
|
14
|
+
iconCheck: O,
|
|
15
|
+
"icon-minus": "ds-checkbox_icon-minus_1tuqo_42",
|
|
16
|
+
iconMinus: P,
|
|
17
|
+
"checkbox--invalid": "ds-checkbox_checkbox--invalid_1tuqo_66",
|
|
18
|
+
checkboxInvalid: R,
|
|
19
|
+
"label--hidden": "ds-checkbox_label--hidden_1tuqo_71",
|
|
20
|
+
labelHidden: U,
|
|
21
|
+
input: z,
|
|
22
|
+
label: A,
|
|
23
|
+
feedback: F
|
|
24
|
+
}, G = y(
|
|
25
|
+
({
|
|
26
|
+
label: r,
|
|
27
|
+
checked: h,
|
|
28
|
+
className: _,
|
|
29
|
+
defaultChecked: x = !1,
|
|
30
|
+
disabled: s = !1,
|
|
31
|
+
hideLabel: m = !1,
|
|
32
|
+
indeterminate: u = !1,
|
|
33
|
+
invalid: a = !1,
|
|
34
|
+
systemFeedback: b,
|
|
35
|
+
onChange: i,
|
|
36
|
+
...f
|
|
37
|
+
}, n) => {
|
|
38
|
+
const t = I(null), [p, q] = H(x), C = B(m);
|
|
39
|
+
M(() => {
|
|
40
|
+
t && t.current && (t.current.indeterminate = u);
|
|
41
|
+
}, [u]);
|
|
42
|
+
const l = h !== void 0, j = l ? h : p, D = d(c.root, {
|
|
43
|
+
[c.rootDisabled]: s
|
|
44
|
+
}), N = d(c.label, {
|
|
45
|
+
// hide label only visually to keep them available for assistive technologies
|
|
46
|
+
[c.labelHidden]: C
|
|
47
|
+
}), v = d(c.checkbox, {
|
|
48
|
+
[c.checkboxInvalid]: a
|
|
49
|
+
}), S = g(
|
|
50
|
+
(o) => {
|
|
51
|
+
if (s) {
|
|
52
|
+
o.preventDefault();
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
l || q(o.target.checked), i && i(o);
|
|
56
|
+
},
|
|
57
|
+
[s, l, i]
|
|
58
|
+
);
|
|
59
|
+
return /* @__PURE__ */ e.jsxs("div", { className: _, children: [
|
|
60
|
+
/* @__PURE__ */ e.jsxs("label", { className: D, children: [
|
|
61
|
+
/* @__PURE__ */ e.jsx(
|
|
62
|
+
"input",
|
|
63
|
+
{
|
|
64
|
+
type: "checkbox",
|
|
65
|
+
className: c.input,
|
|
66
|
+
ref: (o) => {
|
|
67
|
+
typeof n == "function" ? n(o) : n !== null && (n.current = o), t.current = o;
|
|
68
|
+
},
|
|
69
|
+
...f,
|
|
70
|
+
checked: j,
|
|
71
|
+
disabled: s,
|
|
72
|
+
"aria-label": r,
|
|
73
|
+
"aria-invalid": a,
|
|
74
|
+
onChange: S
|
|
75
|
+
}
|
|
76
|
+
),
|
|
77
|
+
/* @__PURE__ */ e.jsxs("div", { className: v, children: [
|
|
78
|
+
/* @__PURE__ */ e.jsx(
|
|
79
|
+
k,
|
|
80
|
+
{
|
|
81
|
+
name: "check",
|
|
82
|
+
className: c.iconCheck,
|
|
83
|
+
"aria-hidden": "true"
|
|
84
|
+
}
|
|
85
|
+
),
|
|
86
|
+
/* @__PURE__ */ e.jsx(
|
|
87
|
+
k,
|
|
88
|
+
{
|
|
89
|
+
name: "minus",
|
|
90
|
+
className: c.iconMinus,
|
|
91
|
+
"aria-hidden": "true"
|
|
92
|
+
}
|
|
93
|
+
)
|
|
94
|
+
] }),
|
|
95
|
+
/* @__PURE__ */ e.jsx("span", { className: N, children: r })
|
|
96
|
+
] }),
|
|
97
|
+
a && b && /* @__PURE__ */ e.jsx(
|
|
98
|
+
E,
|
|
99
|
+
{
|
|
100
|
+
className: c.feedback,
|
|
101
|
+
message: b,
|
|
102
|
+
type: "invalid"
|
|
103
|
+
}
|
|
104
|
+
)
|
|
105
|
+
] });
|
|
106
|
+
}
|
|
107
|
+
);
|
|
108
|
+
G.displayName = "DSCheckbox";
|
|
109
|
+
export {
|
|
110
|
+
G as DSCheckbox
|
|
111
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
3
|
import "./chunks/index.CvOaL64Y.js";
|
|
4
|
-
import "./chunks/Fieldset.
|
|
5
|
-
import { D as i } from "./chunks/CheckboxGroup.
|
|
4
|
+
import "./chunks/Fieldset.Cjmkgxxk.js";
|
|
5
|
+
import { D as i } from "./chunks/CheckboxGroup.S6i5EOc4.js";
|
|
6
6
|
export {
|
|
7
7
|
i as DSCheckboxGroup
|
|
8
8
|
};
|
|
@@ -3,8 +3,8 @@ import "./chunks/jsx-runtime.C115EyI4.js";
|
|
|
3
3
|
import "./chunks/index.CvOaL64Y.js";
|
|
4
4
|
import "react";
|
|
5
5
|
import "./chunks/translate.isa3FHb8.js";
|
|
6
|
-
import "./chunks/Icon.
|
|
7
|
-
import { e as s } from "./chunks/Chip.
|
|
6
|
+
import "./chunks/Icon.BCmt_XBG.js";
|
|
7
|
+
import { e as s } from "./chunks/Chip.CMlPUyOJ.js";
|
|
8
8
|
export {
|
|
9
9
|
s as DSChip
|
|
10
10
|
};
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as b } from "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
|
+
import { useState as S, useRef as $, useEffect as w, createElement as W } from "react";
|
|
4
|
+
import { c as _ } from "./chunks/index.CvOaL64Y.js";
|
|
5
|
+
import { h as v, u as q } from "./chunks/useBreakpoint.5xBNDiCf.js";
|
|
6
|
+
import { g as z } from "./chunks/AriaLiveRegions.utils.BGSZafnS.js";
|
|
7
|
+
import { v as J, a as P, e as Q } from "./chunks/Chip.CMlPUyOJ.js";
|
|
8
|
+
import './assets/chipgroup.BzfZLbkv.css';const X = "ds-chip-group_label--hidden_2mchd_1", Y = "ds-chip-group_root_2mchd_14", A = {
|
|
9
|
+
"label--hidden": "ds-chip-group_label--hidden_2mchd_1",
|
|
10
|
+
labelHidden: X,
|
|
11
|
+
root: Y
|
|
12
|
+
}, se = ({
|
|
13
|
+
chips: p,
|
|
14
|
+
id: h,
|
|
15
|
+
label: D,
|
|
16
|
+
className: K,
|
|
17
|
+
hideLabel: j = !1,
|
|
18
|
+
isRemovable: r = !1,
|
|
19
|
+
lang: C = "en",
|
|
20
|
+
selectionMode: i = "single",
|
|
21
|
+
size: N = "medium",
|
|
22
|
+
translations: T,
|
|
23
|
+
onChipsChange: c,
|
|
24
|
+
...B
|
|
25
|
+
}) => {
|
|
26
|
+
process.env.NODE_ENV !== "production" && J({
|
|
27
|
+
chips: p,
|
|
28
|
+
id: h,
|
|
29
|
+
label: D
|
|
30
|
+
});
|
|
31
|
+
const [l, o] = S(null), [n, a] = S(p), E = $(null), [d, k] = S(), f = $([]);
|
|
32
|
+
w(() => {
|
|
33
|
+
a(p);
|
|
34
|
+
}, [p]), w(() => {
|
|
35
|
+
P();
|
|
36
|
+
const e = () => k("keydown"), t = () => k(null), s = () => k(null);
|
|
37
|
+
return v && (document.addEventListener("keydown", e), document.addEventListener("mousedown", t), document.addEventListener("touchstart", s)), () => {
|
|
38
|
+
v && (document.removeEventListener("keydown", e), document.removeEventListener("mousedown", t), document.removeEventListener("touchstart", s));
|
|
39
|
+
};
|
|
40
|
+
}, []), w(() => {
|
|
41
|
+
var e;
|
|
42
|
+
l !== null && f.current[l] && d === "keydown" && ((e = f.current[l]) == null || e.focus());
|
|
43
|
+
}, [l]), w(() => {
|
|
44
|
+
d === "keydown" && l !== null && n.length > 0 && f.current.forEach((e, t) => {
|
|
45
|
+
e && (e.tabIndex = t === l ? 0 : -1, t === l && e.focus());
|
|
46
|
+
});
|
|
47
|
+
}, [n]);
|
|
48
|
+
const F = (e) => {
|
|
49
|
+
if (l === null) return;
|
|
50
|
+
let t = l;
|
|
51
|
+
switch (e.key) {
|
|
52
|
+
case "a":
|
|
53
|
+
(e.metaKey || e.ctrlKey) && (e.preventDefault(), G());
|
|
54
|
+
break;
|
|
55
|
+
case "ArrowRight":
|
|
56
|
+
case "ArrowDown":
|
|
57
|
+
e.shiftKey && i === "multiple" && !r ? (t = l + 1 > n.length - 1 ? n.length - 1 : l + 1, l !== t ? (u(l), u(t)) : n[l].isSelected || u(l)) : (t = (l + 1) % n.length, e.preventDefault());
|
|
58
|
+
break;
|
|
59
|
+
case "ArrowLeft":
|
|
60
|
+
case "ArrowUp":
|
|
61
|
+
e.shiftKey && i === "multiple" && !r ? (t = l - 1 < 0 ? 0 : l - 1, l !== t ? (u(l), u(t)) : n[0].isSelected || u(0)) : (t = (l - 1 + n.length) % n.length, e.preventDefault());
|
|
62
|
+
break;
|
|
63
|
+
case "Enter":
|
|
64
|
+
case " ":
|
|
65
|
+
if (e.preventDefault(), r) {
|
|
66
|
+
y(t);
|
|
67
|
+
return;
|
|
68
|
+
} else
|
|
69
|
+
I(t);
|
|
70
|
+
break;
|
|
71
|
+
case "Backspace":
|
|
72
|
+
r && y(t), e.preventDefault();
|
|
73
|
+
return;
|
|
74
|
+
default:
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
o(t);
|
|
78
|
+
}, G = () => {
|
|
79
|
+
if (i !== "multiple") return;
|
|
80
|
+
const e = n.map((t) => ({
|
|
81
|
+
...t,
|
|
82
|
+
selected: !t.disabled
|
|
83
|
+
}));
|
|
84
|
+
a(e), m(`${e.length} items selected`), c && c(e);
|
|
85
|
+
}, u = (e) => {
|
|
86
|
+
if (r) return;
|
|
87
|
+
const t = [...n];
|
|
88
|
+
t[e].disabled || (t[e].isSelected = !0, m(
|
|
89
|
+
`${t[e].label} selected, ${t.filter(({ isSelected: s }) => s).length} items selected`
|
|
90
|
+
), a(t), c && c(t));
|
|
91
|
+
}, I = (e) => {
|
|
92
|
+
if (r) return;
|
|
93
|
+
const t = [...n];
|
|
94
|
+
t[e].disabled || (i === "single" ? t.forEach((s, g) => {
|
|
95
|
+
g === e ? (s.isSelected = !s.isSelected, m(
|
|
96
|
+
`${s.label} ${s.isSelected ? "selected" : "not selected"}`
|
|
97
|
+
)) : s.isSelected = !1;
|
|
98
|
+
}) : i === "multiple" && (t[e].isSelected = !t[e].isSelected, m(
|
|
99
|
+
`${t[e].label} ${t[e].isSelected ? "selected" : "not selected"}, ${t.filter(({ isSelected: s }) => s).length} items selected`
|
|
100
|
+
)), a(t), c && c(t));
|
|
101
|
+
}, y = (e) => {
|
|
102
|
+
var g;
|
|
103
|
+
const t = n[e], s = n.filter((L, U) => U !== e);
|
|
104
|
+
if (a(s), m(
|
|
105
|
+
`${t.label} removed, ${s.length} items remaining`
|
|
106
|
+
), d === "keydown")
|
|
107
|
+
if (s.length > 0) {
|
|
108
|
+
const L = Math.min(e, s.length - 1);
|
|
109
|
+
o(L);
|
|
110
|
+
} else
|
|
111
|
+
(g = E.current) == null || g.focus(), o(null);
|
|
112
|
+
c && c(s);
|
|
113
|
+
}, H = (e) => {
|
|
114
|
+
r ? y(e) : n[e].disabled || I(e);
|
|
115
|
+
}, m = (e) => {
|
|
116
|
+
const t = z();
|
|
117
|
+
t && (t.innerText = e, setTimeout(() => {
|
|
118
|
+
t.innerText = "";
|
|
119
|
+
}, 350));
|
|
120
|
+
}, V = (e) => l === null || l === e ? 0 : -1, x = q(j), O = _(A.root, K);
|
|
121
|
+
return n.length === 0 ? null : /* @__PURE__ */ b.jsxs("div", { children: [
|
|
122
|
+
/* @__PURE__ */ b.jsx(
|
|
123
|
+
"div",
|
|
124
|
+
{
|
|
125
|
+
id: h,
|
|
126
|
+
className: _({
|
|
127
|
+
[A.labelHidden]: x
|
|
128
|
+
}),
|
|
129
|
+
children: D
|
|
130
|
+
}
|
|
131
|
+
),
|
|
132
|
+
n.length > 0 && /* @__PURE__ */ b.jsx(
|
|
133
|
+
"div",
|
|
134
|
+
{
|
|
135
|
+
ref: E,
|
|
136
|
+
role: "grid",
|
|
137
|
+
"aria-labelledby": h,
|
|
138
|
+
"aria-multiselectable": i === "multiple",
|
|
139
|
+
tabIndex: -1,
|
|
140
|
+
onKeyDown: F,
|
|
141
|
+
onFocus: () => {
|
|
142
|
+
l === null ? (f.current[0].focus(), d === "keydown" && o(0)) : d === "keydown" && o(l);
|
|
143
|
+
},
|
|
144
|
+
onBlur: () => o(null),
|
|
145
|
+
className: O,
|
|
146
|
+
...B,
|
|
147
|
+
children: n.map((e, t) => /* @__PURE__ */ W(
|
|
148
|
+
Q,
|
|
149
|
+
{
|
|
150
|
+
...e,
|
|
151
|
+
key: `${e.id}-${t}`,
|
|
152
|
+
groupId: h,
|
|
153
|
+
tabIndex: V(t),
|
|
154
|
+
onClick: (s) => {
|
|
155
|
+
H(t), e.onClick && e.onClick(s);
|
|
156
|
+
},
|
|
157
|
+
"data-focused": l === t,
|
|
158
|
+
isRemovable: r,
|
|
159
|
+
lang: C,
|
|
160
|
+
selectionMode: i,
|
|
161
|
+
size: N,
|
|
162
|
+
translations: T,
|
|
163
|
+
ref: (s) => {
|
|
164
|
+
f.current[t] = s;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
))
|
|
168
|
+
}
|
|
169
|
+
)
|
|
170
|
+
] });
|
|
171
|
+
};
|
|
172
|
+
export {
|
|
173
|
+
se as DSChipGroup
|
|
174
|
+
};
|