@stihl-design-system/components 1.0.0-RC.10 → 1.0.0-RC.11
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 +0 -9
- package/{accordion.B3UkxlAZ.js → accordion.CEKQh-7i.js} +1 -1
- package/accordion.d.ts +1 -0
- package/{arialiveregions.BK4T7Vhk.js → arialiveregions.BKpxxK7O.js} +1 -1
- package/arialiveregions.d.ts +1 -0
- package/assets/Accordion.DMEFgtQm.css +1 -0
- package/assets/Chip.D10_7Q82.css +1 -0
- package/assets/CustomReactSelect.D5XKd9vg.css +1 -0
- package/assets/Dialog.B0pucIEI.css +1 -0
- package/assets/Drawer.CATBzfY7.css +1 -0
- package/assets/Fieldset.CwDhKRUL.css +1 -0
- package/assets/InputPassword.DOAAzj-O.css +1 -0
- package/assets/InputSearch.CxPYaQGZ.css +1 -0
- package/assets/InputStepper.CYYJUu0b.css +1 -0
- package/assets/Notification.mhVFeSGm.css +1 -0
- package/assets/Select.DZKpHV4G.css +1 -0
- package/assets/Textarea.Cp0b7oZp.css +1 -0
- package/assets/Toast.Cz6wYaBv.css +1 -0
- package/assets/button.C9_ejpGG.css +1 -0
- package/assets/buttonround.DTCqRP-0.css +1 -0
- package/assets/chipgroup.BMovtKTy.css +1 -0
- package/assets/flag.DX_lH1v7.css +1 -0
- package/assets/floatingactionbutton.Do-yEH6c.css +1 -0
- package/assets/input.Q5oKkmW2.css +1 -0
- package/assets/link.DhZqkLMP.css +1 -0
- package/assets/linkstandalone.Dwz-_O8q.css +1 -0
- package/assets/optioncheckbox.C62HtIj5.css +1 -0
- package/assets/radio.-Xxx5wL4.css +1 -0
- package/assets/switch.C1Ei0-z8.css +1 -0
- package/assets/text.DxKFcfY6.css +1 -0
- package/asterisk.d.ts +1 -0
- package/button.C5opEJ6x.js +135 -0
- package/button.d.ts +1 -0
- package/buttonround.CUoqRyy0.js +118 -0
- package/buttonround.d.ts +1 -0
- package/checkbox.d.ts +1 -0
- package/checkboxgroup.BqD5IV51.js +8 -0
- package/checkboxgroup.d.ts +1 -0
- package/chip.B92ew-hk.js +10 -0
- package/chip.d.ts +2 -0
- package/chipgroup.BJrqEfvr.js +175 -0
- package/chipgroup.d.ts +2 -0
- package/chunks/Accordion.DFwFN8mX.js +125 -0
- package/chunks/{AriaLiveRegions.utils.D2ni4Yrf.js → AriaLiveRegions.utils.BGSZafnS.js} +2 -2
- package/chunks/CheckboxGroup.M3jOjhNf.js +92 -0
- package/chunks/Chip.fMG8wi5K.js +142 -0
- package/chunks/{CustomReactSelect.ChAtL6fu.js → CustomReactSelect.D3jv5-fa.js} +883 -876
- package/chunks/{Dialog.Z5ESJQMi.js → Dialog.Fwr6vLiK.js} +47 -47
- package/chunks/{Drawer.BdowMqE0.js → Drawer.CKoYzQHd.js} +32 -32
- package/chunks/Fieldset.C9K8BYmH.js +99 -0
- package/chunks/InputPassword.C7pNeWGx.js +143 -0
- package/chunks/InputSearch.B24rcIJ_.js +192 -0
- package/chunks/InputStepper.CEW-bieQ.js +294 -0
- package/chunks/Notification.BXVN7_Fs.js +93 -0
- package/chunks/RadioGroup.D4UOflwr.js +137 -0
- package/chunks/Select.Ds86q4UC.js +194 -0
- package/chunks/Textarea.DcB8hKnO.js +198 -0
- package/chunks/Toast.DrzxdzVW.js +89 -0
- package/chunks/translate.isa3FHb8.js +11 -0
- package/{combobox.JL1Dsn3E.js → combobox.BeTnbG1m.js} +1 -1
- package/combobox.d.ts +1 -0
- package/components/Accordion/Accordion.d.ts +0 -1
- package/components/Accordion/Accordion.utils.d.ts +0 -1
- package/components/Button/Button.d.ts +0 -1
- package/components/ButtonRound/ButtonRound.d.ts +0 -1
- package/components/Checkbox/Checkbox.d.ts +0 -1
- package/components/CheckboxGroup/CheckboxGroup.d.ts +6 -7
- package/components/CheckboxGroup/CheckboxGroup.utils.d.ts +0 -1
- package/components/ChipGroup/Chip.d.ts +12 -0
- package/components/ChipGroup/ChipGroup.d.ts +42 -0
- package/components/ChipGroup/ChipGroup.test.d.ts +1 -0
- package/components/ChipGroup/ChipGroup.utils.d.ts +60 -0
- package/components/ChipGroup/ChipGroup.utils.test.d.ts +1 -0
- package/components/Combobox/Combobox.d.ts +0 -1
- package/components/Combobox/Combobox.utils.d.ts +6 -1
- package/components/CustomReactSelect/CustomReactSelect.d.ts +0 -1
- package/components/CustomReactSelect/CustomReactSelect.utils.d.ts +0 -13
- package/components/CustomReactSelect/OptionCheckbox.d.ts +0 -1
- package/components/Dialog/Dialog.d.ts +0 -1
- package/components/Dialog/Dialog.utils.d.ts +0 -1
- package/components/Drawer/Drawer.d.ts +0 -1
- package/components/Drawer/Drawer.utils.d.ts +0 -1
- package/components/Fieldset/Fieldset.d.ts +0 -1
- package/components/Fieldset/Fieldset.utils.d.ts +7 -1
- package/components/Flag/Flag.d.ts +23 -0
- package/components/Flag/Flag.test.d.ts +1 -0
- package/components/Flag/Flag.utils.d.ts +2 -0
- package/components/FloatingActionButton/FloatingActionButton.d.ts +0 -1
- package/components/Heading/Heading.d.ts +0 -1
- package/components/Icon/Icon.d.ts +0 -1
- package/components/Icon/Icon.utils.d.ts +0 -1
- package/components/Input/Input.d.ts +0 -1
- package/components/Input/Input.utils.d.ts +0 -1
- package/components/InputPassword/InputPassword.d.ts +0 -1
- package/components/InputPassword/InputPassword.utils.d.ts +0 -1
- package/components/InputSearch/InputSearch.d.ts +0 -1
- package/components/InputSearch/InputSearch.utils.d.ts +0 -1
- package/components/InputStepper/InputStepper.d.ts +0 -1
- package/components/InputStepper/InputStepper.utils.d.ts +0 -1
- package/components/Link/Link.d.ts +0 -1
- package/components/LinkStandalone/LinkStandalone.d.ts +0 -1
- package/components/Logo/Logo.d.ts +1 -2
- package/components/Logo/Logo.utils.d.ts +0 -1
- package/components/Notification/Notification.d.ts +0 -1
- package/components/Notification/Notification.utils.d.ts +0 -1
- package/components/Radio/Radio.d.ts +0 -1
- package/components/RadioGroup/RadioGroup.d.ts +7 -8
- package/components/RadioGroup/RadioGroup.utils.d.ts +2 -3
- package/components/Select/Select.d.ts +0 -1
- package/components/Select/Select.utils.d.ts +0 -1
- package/components/SkipToContent/SkipToContent.d.ts +0 -1
- package/components/Spinner/Spinner.d.ts +0 -1
- package/components/Switch/Switch.d.ts +0 -1
- package/components/SystemFeedback/SystemFeedback.d.ts +0 -1
- package/components/Text/Text.d.ts +0 -1
- package/components/Textarea/Textarea.d.ts +0 -1
- package/components/Textarea/Textarea.utils.d.ts +0 -1
- package/components/Title/Title.d.ts +0 -1
- package/components/Toast/Toast.d.ts +0 -1
- package/components/Toast/Toast.utils.d.ts +0 -1
- package/components/Toast/ToastManager.d.ts +0 -1
- package/customreactselect.d.ts +1 -0
- package/{customreactselect.Dg8Kgq3e.js → customreactselect.lYJhIeyx.js} +2 -2
- package/dialog.d.ts +1 -0
- package/{dialog.D3bJ0rsW.js → dialog.lGwNQU91.js} +2 -2
- package/{drawer.CNPF1-Kc.js → drawer.DNi5m8wP.js} +2 -2
- package/drawer.d.ts +1 -0
- package/{fieldset.CTshPWYX.js → fieldset.BqiAjeax.js} +1 -1
- package/fieldset.d.ts +1 -0
- package/flag.XJHHSP38.js +43 -0
- package/flag.d.ts +2 -0
- package/floatingactionbutton.CMpkTdhX.js +87 -0
- package/floatingactionbutton.d.ts +1 -0
- package/heading.d.ts +1 -0
- package/icon.d.ts +1 -0
- package/index.d.ts +4 -0
- package/index.es.js +133 -113
- package/input.d.ts +1 -0
- package/input.v7qB7wPJ.js +239 -0
- package/{inputpassword.nsYu6YeB.js → inputpassword.CSjh1GU7.js} +2 -2
- package/inputpassword.d.ts +1 -0
- package/{inputsearch.ZGIrDrcv.js → inputsearch.DyznOWLK.js} +2 -2
- package/inputsearch.d.ts +1 -0
- package/{inputstepper.BvY36hA1.js → inputstepper.3BLb7s0P.js} +2 -2
- package/inputstepper.d.ts +1 -0
- package/link.Clk5_BYp.js +116 -0
- package/link.d.ts +1 -0
- package/linkstandalone.BXERmqdN.js +80 -0
- package/linkstandalone.d.ts +1 -0
- package/logo.d.ts +1 -0
- package/{notification.BAS13UQ6.js → notification.0kX1GMaB.js} +2 -2
- package/notification.d.ts +1 -0
- package/{optioncheckbox.DZWwtx6f.js → optioncheckbox.BPN3f6l_.js} +13 -13
- package/optioncheckbox.d.ts +1 -0
- package/package.json +44 -39
- package/partials/index.js +407 -407
- package/partials/lib/partials.d.ts +0 -1
- package/radio.DTZNJzMU.js +115 -0
- package/radio.d.ts +1 -0
- package/radiogroup.SYkZm2DG.js +10 -0
- package/radiogroup.d.ts +1 -0
- package/{select.C4OZMB-V.js → select.CYbwR3RW.js} +1 -1
- package/select.d.ts +1 -0
- package/{skiptocontent.C4yQfWr2.js → skiptocontent.DUQWopO4.js} +1 -1
- package/skiptocontent.d.ts +1 -0
- package/spinner.d.ts +1 -0
- package/styles/fonts/STIHLContrafaceDigitalTextDemi.woff +0 -0
- package/styles/fonts/STIHLContrafaceDigitalTextDemi.woff2 +0 -0
- package/styles/fonts/font-face.min.css +1 -1
- package/styles/scss/_index.scss +1 -0
- package/styles/scss/lib/_breakpoints.scss +0 -1
- package/styles/scss/lib/_link.scss +3 -0
- package/styles/scss/lib/_spacing-dynamic.scss +61 -0
- package/switch.CoNnIhM4.js +65 -0
- package/switch.d.ts +1 -0
- package/systemfeedback.d.ts +1 -0
- package/text.d.ts +1 -0
- package/text.fMcHzVbH.js +57 -0
- package/{textarea.CtQtGqn5.js → textarea.DJc527nX.js} +1 -1
- package/textarea.d.ts +1 -0
- package/title.d.ts +1 -0
- package/{toast.DVd9dLs2.js → toast.D48GFmp0.js} +2 -2
- package/toast.d.ts +1 -0
- package/{toastmanager.Dh0gzFkM.js → toastmanager.Dl8-Q3ED.js} +2 -2
- package/toastmanager.d.ts +1 -0
- package/utils/index.d.ts +1 -0
- package/utils/translate.d.ts +11 -0
- package/utils/translate.test.d.ts +1 -0
- package/utils/useBreakpoint.d.ts +0 -1
- package/utils/useIsomorphicLayoutEffect.d.ts +0 -1
- package/utils/vitest.setup.d.ts +0 -1
- package/assets/Accordion.lFv7Q_RG.css +0 -1
- package/assets/CustomReactSelect.CMkn-EGK.css +0 -1
- package/assets/Dialog.fiQvxJg_.css +0 -1
- package/assets/Drawer.BqBgbSuP.css +0 -1
- package/assets/Fieldset.qHYeUFZt.css +0 -1
- package/assets/InputPassword.Cf394z47.css +0 -1
- package/assets/InputSearch.eCRQoxjN.css +0 -1
- package/assets/InputStepper.B80KulYE.css +0 -1
- package/assets/Notification.DK6agBGS.css +0 -1
- package/assets/Select.BptsMxz4.css +0 -1
- package/assets/Textarea.CIIVh03G.css +0 -1
- package/assets/Toast.Dsvs1zdM.css +0 -1
- package/assets/button.B1O7Yw3Q.css +0 -1
- package/assets/buttonround.DlH_ipDo.css +0 -1
- package/assets/floatingactionbutton.DRYentYC.css +0 -1
- package/assets/input.C0MrSbQu.css +0 -1
- package/assets/link.vtTST2ki.css +0 -1
- package/assets/linkstandalone.BtAcziZ7.css +0 -1
- package/assets/optioncheckbox.BJJAph5_.css +0 -1
- package/assets/radio.9kpIO3HC.css +0 -1
- package/assets/switch.2DQF2zH-.css +0 -1
- package/assets/text.Dhb_l50R.css +0 -1
- package/button.DH0h6uPs.js +0 -135
- package/buttonround.0mw4zzlU.js +0 -118
- package/checkboxgroup.CZqrlF-x.js +0 -9
- package/chunks/Accordion.pI3JyHJL.js +0 -125
- package/chunks/CheckboxGroup.4J_gZ_XJ.js +0 -87
- package/chunks/Fieldset.COGbZwry.js +0 -99
- package/chunks/InputPassword.Dgo95-PU.js +0 -140
- package/chunks/InputSearch.BFof0pBn.js +0 -189
- package/chunks/InputStepper.4IqLa5tX.js +0 -291
- package/chunks/Notification.BhwbaXqk.js +0 -93
- package/chunks/RadioGroup.C5jbCJM4.js +0 -132
- package/chunks/RadioGroup.module.BBZwHDjW.js +0 -11
- package/chunks/Select.fXeQJXtz.js +0 -191
- package/chunks/Textarea.Bewrp0Za.js +0 -195
- package/chunks/Toast.DA_CQ9J-.js +0 -89
- package/floatingactionbutton.CCIj9Fjr.js +0 -87
- package/input.CTgeAYdu.js +0 -236
- package/link.DAZNwQ0a.js +0 -116
- package/linkstandalone.C9X3er7g.js +0 -80
- package/radio.CWGJtmKl.js +0 -115
- package/radiogroup.BhffFqN3.js +0 -11
- package/switch.CmpNUC7s.js +0 -65
- package/text.rgDKQBrU.js +0 -57
- package/utils/render-in-iframe.d.ts +0 -15
- /package/assets/{RadioGroup.Bz3_xkZU.css → CheckboxGroup.Bz3_xkZU.css} +0 -0
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as s } from "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
|
+
import { c as l } from "./chunks/index.CvOaL64Y.js";
|
|
4
|
+
import { useState as h, useRef as D, useEffect as ta } from "react";
|
|
5
|
+
import { u as ia } from "./chunks/useBreakpoint.5xBNDiCf.js";
|
|
6
|
+
import { v as ea, b as la, M as oa, a as ca, u as B, s as da, c as pa, i as k } from "./chunks/Input.utils.ChV6RJsh.js";
|
|
7
|
+
import { Asterisk as _a } from "./asterisk.DDn-yX4P.js";
|
|
8
|
+
import { DSButton as E } from "./button.C5opEJ6x.js";
|
|
9
|
+
import { D as ua } from "./chunks/Icon.C2o2seDb.js";
|
|
10
|
+
import { DSSystemFeedback as fa } from "./systemfeedback.ZzRUAVYX.js";
|
|
11
|
+
import './assets/input.Q5oKkmW2.css';const ra = "_input_7spwh_226", ha = "_input--invalid_7spwh_343", ma = "_input--small_7spwh_350", ba = "_input--has-leading-icon_7spwh_404", wa = "_input--has-action-button_7spwh_407", xa = "_input--has-second-action-button_7spwh_410", ga = "_input--has-affix_7spwh_422", Ia = "_input--is-ready_7spwh_436", Sa = "_root_7spwh_443", ya = "_hint_7spwh_451", Ha = "_label_7spwh_451", Da = "_wrapper_7spwh_455", ka = "_affix_7spwh_461", va = "_affix--small_7spwh_483", Ca = "_affix--disabled_7spwh_497", Ra = "_prefix_7spwh_505", ja = "_affix--readonly_7spwh_508", La = "_suffix_7spwh_518", Aa = "_leading-icon_7spwh_525", Na = "_leading-icon--small_7spwh_537", Ba = "_leading-icon--disabled_7spwh_540", Ea = "_action-button_7spwh_549", Ta = "_label--hidden_7spwh_568", Fa = "_label--disabled_7spwh_581", Pa = "_feedback_7spwh_602", a = {
|
|
12
|
+
input: ra,
|
|
13
|
+
"input--invalid": "_input--invalid_7spwh_343",
|
|
14
|
+
inputInvalid: ha,
|
|
15
|
+
"input--small": "_input--small_7spwh_350",
|
|
16
|
+
inputSmall: ma,
|
|
17
|
+
"input--has-leading-icon": "_input--has-leading-icon_7spwh_404",
|
|
18
|
+
inputHasLeadingIcon: ba,
|
|
19
|
+
"input--has-action-button": "_input--has-action-button_7spwh_407",
|
|
20
|
+
inputHasActionButton: wa,
|
|
21
|
+
"input--has-second-action-button": "_input--has-second-action-button_7spwh_410",
|
|
22
|
+
inputHasSecondActionButton: xa,
|
|
23
|
+
"input--has-affix": "_input--has-affix_7spwh_422",
|
|
24
|
+
inputHasAffix: ga,
|
|
25
|
+
"input--is-ready": "_input--is-ready_7spwh_436",
|
|
26
|
+
inputIsReady: Ia,
|
|
27
|
+
root: Sa,
|
|
28
|
+
hint: ya,
|
|
29
|
+
label: Ha,
|
|
30
|
+
wrapper: Da,
|
|
31
|
+
affix: ka,
|
|
32
|
+
"affix--small": "_affix--small_7spwh_483",
|
|
33
|
+
affixSmall: va,
|
|
34
|
+
"affix--disabled": "_affix--disabled_7spwh_497",
|
|
35
|
+
affixDisabled: Ca,
|
|
36
|
+
prefix: Ra,
|
|
37
|
+
"affix--readonly": "_affix--readonly_7spwh_508",
|
|
38
|
+
affixReadonly: ja,
|
|
39
|
+
suffix: La,
|
|
40
|
+
"leading-icon": "_leading-icon_7spwh_525",
|
|
41
|
+
leadingIcon: Aa,
|
|
42
|
+
"leading-icon--small": "_leading-icon--small_7spwh_537",
|
|
43
|
+
leadingIconSmall: Na,
|
|
44
|
+
"leading-icon--disabled": "_leading-icon--disabled_7spwh_540",
|
|
45
|
+
leadingIconDisabled: Ba,
|
|
46
|
+
"action-button": "_action-button_7spwh_549",
|
|
47
|
+
actionButton: Ea,
|
|
48
|
+
"label--hidden": "_label--hidden_7spwh_568",
|
|
49
|
+
labelHidden: Ta,
|
|
50
|
+
"label--disabled": "_label--disabled_7spwh_581",
|
|
51
|
+
labelDisabled: Fa,
|
|
52
|
+
feedback: Pa
|
|
53
|
+
}, Ka = ({
|
|
54
|
+
id: d,
|
|
55
|
+
label: v,
|
|
56
|
+
actionButtonLabel: T,
|
|
57
|
+
actionButtonIconName: _,
|
|
58
|
+
actionButtonIconSource: m,
|
|
59
|
+
actionButtonOnClick: F,
|
|
60
|
+
className: P,
|
|
61
|
+
disabled: n = !1,
|
|
62
|
+
hint: b,
|
|
63
|
+
hideLabel: O = !1,
|
|
64
|
+
invalid: u = !1,
|
|
65
|
+
leadingIconName: f,
|
|
66
|
+
leadingIconSource: r,
|
|
67
|
+
prefix: i,
|
|
68
|
+
readonly: p = !1,
|
|
69
|
+
required: C = !1,
|
|
70
|
+
size: e = "medium",
|
|
71
|
+
suffix: t,
|
|
72
|
+
systemFeedback: w,
|
|
73
|
+
type: o = "text",
|
|
74
|
+
...$
|
|
75
|
+
}) => {
|
|
76
|
+
process.env.NODE_ENV !== "production" && (ea({
|
|
77
|
+
id: d,
|
|
78
|
+
label: v,
|
|
79
|
+
prefix: i,
|
|
80
|
+
suffix: t,
|
|
81
|
+
leadingIconName: f,
|
|
82
|
+
leadingIconSource: r,
|
|
83
|
+
actionButtonIconName: _,
|
|
84
|
+
actionButtonIconSource: m
|
|
85
|
+
}), la(o));
|
|
86
|
+
const [W, X] = h(!1), [M, V] = h(!1), [x, G] = h(!1), [U, J] = h({}), g = D(null), K = i == null ? void 0 : i.substring(0, oa), I = D(null), Q = t == null ? void 0 : t.substring(0, ca), S = D(null), Y = ia(O);
|
|
87
|
+
B(() => {
|
|
88
|
+
const c = e === "medium" ? 16 : 8, y = {};
|
|
89
|
+
if (I.current) {
|
|
90
|
+
const H = I.current.offsetWidth;
|
|
91
|
+
y.paddingInlineStart = c + H + "px";
|
|
92
|
+
}
|
|
93
|
+
if (S.current) {
|
|
94
|
+
const H = S.current.offsetWidth;
|
|
95
|
+
y.paddingInlineEnd = c + H + "px";
|
|
96
|
+
}
|
|
97
|
+
J(y), X(!0);
|
|
98
|
+
}, [i, t, e, M]), B(() => {
|
|
99
|
+
(async () => {
|
|
100
|
+
"fonts" in document && (await document.fonts.load(
|
|
101
|
+
'1em "STIHL Contraface Digital Text Regular"'
|
|
102
|
+
), V(!0));
|
|
103
|
+
})();
|
|
104
|
+
}, []), ta(() => {
|
|
105
|
+
const c = da(
|
|
106
|
+
k(o),
|
|
107
|
+
pa(o)
|
|
108
|
+
);
|
|
109
|
+
G(c);
|
|
110
|
+
}, [o]);
|
|
111
|
+
const R = l(a.affix, {
|
|
112
|
+
[a.affixSmall]: e === "small",
|
|
113
|
+
[a.affixDisabled]: n,
|
|
114
|
+
[a.affixReadonly]: p
|
|
115
|
+
}), j = `${d}-label`, L = `${d}-feedback`, A = `${d}-hint`, Z = b ? ` ${A}` : "", q = l(a.root, P), z = l(a.input, {
|
|
116
|
+
// small input
|
|
117
|
+
[a.inputSmall]: e === "small",
|
|
118
|
+
// invalid state
|
|
119
|
+
[a.inputInvalid]: u,
|
|
120
|
+
// leading icon
|
|
121
|
+
[a.inputHasLeadingIcon]: f || r,
|
|
122
|
+
// prefix/suffix
|
|
123
|
+
[a.inputHasAffix]: i || t,
|
|
124
|
+
// action button
|
|
125
|
+
[a.inputHasActionButton]: _ || m || x,
|
|
126
|
+
[a.inputIsReady]: W
|
|
127
|
+
}), aa = l(a.label, {
|
|
128
|
+
// hide label only visually to keep them available for assistive technologies
|
|
129
|
+
[a.labelHidden]: Y,
|
|
130
|
+
[a.labelDisabled]: n
|
|
131
|
+
}), sa = l(a.leadingIcon, {
|
|
132
|
+
[a.leadingIconSmall]: e === "small",
|
|
133
|
+
[a.leadingIconDisabled]: n
|
|
134
|
+
}), N = l(a.actionButton, {
|
|
135
|
+
[a.actionButtonSmall]: e === "small"
|
|
136
|
+
}), na = (c) => {
|
|
137
|
+
g.current && !n && !p && g.current.showPicker(), c.preventDefault();
|
|
138
|
+
};
|
|
139
|
+
return /* @__PURE__ */ s.jsxs("div", { className: q, children: [
|
|
140
|
+
/* @__PURE__ */ s.jsxs("label", { className: aa, id: j, htmlFor: d, children: [
|
|
141
|
+
v,
|
|
142
|
+
C && /* @__PURE__ */ s.jsx(_a, {})
|
|
143
|
+
] }),
|
|
144
|
+
b && /* @__PURE__ */ s.jsx("div", { className: a.hint, id: A, children: b }),
|
|
145
|
+
u && w && /* @__PURE__ */ s.jsx(
|
|
146
|
+
fa,
|
|
147
|
+
{
|
|
148
|
+
className: a.feedback,
|
|
149
|
+
message: w,
|
|
150
|
+
type: "invalid",
|
|
151
|
+
id: L
|
|
152
|
+
}
|
|
153
|
+
),
|
|
154
|
+
/* @__PURE__ */ s.jsxs("div", { className: a.wrapper, children: [
|
|
155
|
+
i && /* @__PURE__ */ s.jsx(
|
|
156
|
+
"span",
|
|
157
|
+
{
|
|
158
|
+
className: l(R, a.prefix),
|
|
159
|
+
ref: I,
|
|
160
|
+
"aria-disabled": n,
|
|
161
|
+
children: K
|
|
162
|
+
}
|
|
163
|
+
),
|
|
164
|
+
!i && (f || r) && /* @__PURE__ */ s.jsx(
|
|
165
|
+
ua,
|
|
166
|
+
{
|
|
167
|
+
name: f,
|
|
168
|
+
theme: "light",
|
|
169
|
+
source: r,
|
|
170
|
+
className: sa,
|
|
171
|
+
"aria-hidden": "true"
|
|
172
|
+
}
|
|
173
|
+
),
|
|
174
|
+
/* @__PURE__ */ s.jsx(
|
|
175
|
+
"input",
|
|
176
|
+
{
|
|
177
|
+
type: o,
|
|
178
|
+
className: z,
|
|
179
|
+
id: d,
|
|
180
|
+
ref: g,
|
|
181
|
+
...$,
|
|
182
|
+
style: U,
|
|
183
|
+
"aria-labelledby": `${j}${Z}`,
|
|
184
|
+
"aria-describedby": u && w ? L : void 0,
|
|
185
|
+
"aria-invalid": u,
|
|
186
|
+
"aria-disabled": p,
|
|
187
|
+
readOnly: p,
|
|
188
|
+
required: C,
|
|
189
|
+
disabled: n
|
|
190
|
+
}
|
|
191
|
+
),
|
|
192
|
+
t && /* @__PURE__ */ s.jsx(
|
|
193
|
+
"span",
|
|
194
|
+
{
|
|
195
|
+
className: l(R, a.suffix),
|
|
196
|
+
ref: S,
|
|
197
|
+
"aria-disabled": n,
|
|
198
|
+
children: Q
|
|
199
|
+
}
|
|
200
|
+
),
|
|
201
|
+
!t && !x && (_ || m) && /* @__PURE__ */ s.jsx(
|
|
202
|
+
E,
|
|
203
|
+
{
|
|
204
|
+
hideLabel: !0,
|
|
205
|
+
theme: "light",
|
|
206
|
+
iconName: _,
|
|
207
|
+
variant: "ghost",
|
|
208
|
+
className: N,
|
|
209
|
+
size: e,
|
|
210
|
+
onClick: F,
|
|
211
|
+
type: "button",
|
|
212
|
+
disabled: n || p,
|
|
213
|
+
children: T
|
|
214
|
+
}
|
|
215
|
+
),
|
|
216
|
+
!t && x && !p && !n && /* @__PURE__ */ s.jsxs(
|
|
217
|
+
E,
|
|
218
|
+
{
|
|
219
|
+
hideLabel: !0,
|
|
220
|
+
theme: "light",
|
|
221
|
+
iconName: k(o) ? "calendar" : "clock",
|
|
222
|
+
variant: "ghost",
|
|
223
|
+
className: N,
|
|
224
|
+
size: e,
|
|
225
|
+
onClick: na,
|
|
226
|
+
type: "button",
|
|
227
|
+
children: [
|
|
228
|
+
"Open ",
|
|
229
|
+
k(o) ? "date" : "time",
|
|
230
|
+
" picker"
|
|
231
|
+
]
|
|
232
|
+
}
|
|
233
|
+
)
|
|
234
|
+
] })
|
|
235
|
+
] });
|
|
236
|
+
};
|
|
237
|
+
export {
|
|
238
|
+
Ka as DSInput
|
|
239
|
+
};
|
|
@@ -4,9 +4,9 @@ import "./chunks/index.CvOaL64Y.js";
|
|
|
4
4
|
import "react";
|
|
5
5
|
import "./chunks/useBreakpoint.5xBNDiCf.js";
|
|
6
6
|
import "./asterisk.DDn-yX4P.js";
|
|
7
|
-
import "./button.
|
|
7
|
+
import "./button.C5opEJ6x.js";
|
|
8
8
|
import "./systemfeedback.ZzRUAVYX.js";
|
|
9
|
-
import { D as n } from "./chunks/InputPassword.
|
|
9
|
+
import { D as n } from "./chunks/InputPassword.C7pNeWGx.js";
|
|
10
10
|
export {
|
|
11
11
|
n as DSInputPassword
|
|
12
12
|
};
|
package/inputpassword.d.ts
CHANGED
|
@@ -5,9 +5,9 @@ import "react";
|
|
|
5
5
|
import "./chunks/helpers.B1JT5ShS.js";
|
|
6
6
|
import "./chunks/useBreakpoint.5xBNDiCf.js";
|
|
7
7
|
import "./asterisk.DDn-yX4P.js";
|
|
8
|
-
import "./button.
|
|
8
|
+
import "./button.C5opEJ6x.js";
|
|
9
9
|
import "./systemfeedback.ZzRUAVYX.js";
|
|
10
|
-
import { D as s } from "./chunks/InputSearch.
|
|
10
|
+
import { D as s } from "./chunks/InputSearch.B24rcIJ_.js";
|
|
11
11
|
export {
|
|
12
12
|
s as DSInputSearch
|
|
13
13
|
};
|
package/inputsearch.d.ts
CHANGED
|
@@ -5,9 +5,9 @@ import "react";
|
|
|
5
5
|
import "./chunks/useBreakpoint.5xBNDiCf.js";
|
|
6
6
|
import "./chunks/Input.utils.ChV6RJsh.js";
|
|
7
7
|
import "./asterisk.DDn-yX4P.js";
|
|
8
|
-
import "./button.
|
|
8
|
+
import "./button.C5opEJ6x.js";
|
|
9
9
|
import "./systemfeedback.ZzRUAVYX.js";
|
|
10
|
-
import { D } from "./chunks/InputStepper.
|
|
10
|
+
import { D } from "./chunks/InputStepper.CEW-bieQ.js";
|
|
11
11
|
export {
|
|
12
12
|
D as DSInputStepper
|
|
13
13
|
};
|
package/inputstepper.d.ts
CHANGED
package/link.Clk5_BYp.js
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as i } from "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
|
+
import { c as g } from "./chunks/index.CvOaL64Y.js";
|
|
4
|
+
import { u as h } from "./chunks/useBreakpoint.5xBNDiCf.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import { D as H } from "./chunks/Icon.C2o2seDb.js";
|
|
7
|
+
import './assets/link.DhZqkLMP.css';const S = "_root_18w5p_151", x = "_root--highlight_18w5p_228", b = "_root--dark-highlight_18w5p_228", j = "_root--filled_18w5p_306", L = "_root--outline_18w5p_334", C = "_root--ghost_18w5p_361", N = "_root--ghost-flush_18w5p_386", T = "_root--small_18w5p_392", B = "_root--dark-filled_18w5p_474", E = "_root--dark-outline_18w5p_533", R = "_root--dark-ghost_18w5p_591", V = "_root--dark-ghost-flush_18w5p_647", q = "_root--icon-left_18w5p_711", A = "_root--icon-only_18w5p_727", J = "_root--icon-only-small_18w5p_736", K = "_label--hidden_18w5p_747", o = {
|
|
8
|
+
root: S,
|
|
9
|
+
"root--highlight": "_root--highlight_18w5p_228",
|
|
10
|
+
rootHighlight: x,
|
|
11
|
+
"root--dark-highlight": "_root--dark-highlight_18w5p_228",
|
|
12
|
+
rootDarkHighlight: b,
|
|
13
|
+
"root--filled": "_root--filled_18w5p_306",
|
|
14
|
+
rootFilled: j,
|
|
15
|
+
"root--outline": "_root--outline_18w5p_334",
|
|
16
|
+
rootOutline: L,
|
|
17
|
+
"root--ghost": "_root--ghost_18w5p_361",
|
|
18
|
+
rootGhost: C,
|
|
19
|
+
"root--ghost-flush": "_root--ghost-flush_18w5p_386",
|
|
20
|
+
rootGhostFlush: N,
|
|
21
|
+
"root--small": "_root--small_18w5p_392",
|
|
22
|
+
rootSmall: T,
|
|
23
|
+
"root--dark-filled": "_root--dark-filled_18w5p_474",
|
|
24
|
+
rootDarkFilled: B,
|
|
25
|
+
"root--dark-outline": "_root--dark-outline_18w5p_533",
|
|
26
|
+
rootDarkOutline: E,
|
|
27
|
+
"root--dark-ghost": "_root--dark-ghost_18w5p_591",
|
|
28
|
+
rootDarkGhost: R,
|
|
29
|
+
"root--dark-ghost-flush": "_root--dark-ghost-flush_18w5p_647",
|
|
30
|
+
rootDarkGhostFlush: V,
|
|
31
|
+
"root--icon-left": "_root--icon-left_18w5p_711",
|
|
32
|
+
rootIconLeft: q,
|
|
33
|
+
"root--icon-only": "_root--icon-only_18w5p_727",
|
|
34
|
+
rootIconOnly: A,
|
|
35
|
+
"root--icon-only-small": "_root--icon-only-small_18w5p_736",
|
|
36
|
+
rootIconOnlySmall: J,
|
|
37
|
+
"label--hidden": "_label--hidden_18w5p_747",
|
|
38
|
+
labelHidden: K
|
|
39
|
+
}, X = ({
|
|
40
|
+
children: c,
|
|
41
|
+
aria: k,
|
|
42
|
+
className: p,
|
|
43
|
+
dataTrackingid: u,
|
|
44
|
+
download: w,
|
|
45
|
+
hideLabel: s = !1,
|
|
46
|
+
href: n,
|
|
47
|
+
iconName: a,
|
|
48
|
+
iconPosition: f = "left",
|
|
49
|
+
iconSource: e,
|
|
50
|
+
isFlush: r = !1,
|
|
51
|
+
referrerPolicy: m,
|
|
52
|
+
rel: D,
|
|
53
|
+
size: _ = "medium",
|
|
54
|
+
target: y = "_self",
|
|
55
|
+
theme: l = "light",
|
|
56
|
+
variant: t = "filled",
|
|
57
|
+
...G
|
|
58
|
+
}) => {
|
|
59
|
+
const O = g(o.root, p, {
|
|
60
|
+
// variant
|
|
61
|
+
[o.rootFilled]: t === "filled",
|
|
62
|
+
[o.rootHighlight]: t === "highlight",
|
|
63
|
+
[o.rootOutline]: t === "outline",
|
|
64
|
+
[o.rootGhost]: t === "ghost" && r !== !0,
|
|
65
|
+
// isFlush
|
|
66
|
+
[o.rootGhostFlush]: t === "ghost" && r === !0,
|
|
67
|
+
// dark theme
|
|
68
|
+
[o.rootDarkFilled]: l === "dark" && t === "filled",
|
|
69
|
+
[o.rootDarkHighlight]: l === "dark" && t === "highlight",
|
|
70
|
+
[o.rootDarkOutline]: l === "dark" && t === "outline",
|
|
71
|
+
[o.rootDarkGhost]: l === "dark" && t === "ghost" && r !== !0,
|
|
72
|
+
// dark isFlush
|
|
73
|
+
[o.rootDarkGhostFlush]: l === "dark" && t === "ghost" && r === !0,
|
|
74
|
+
// size
|
|
75
|
+
[o.rootSmall]: _ === "small",
|
|
76
|
+
// icon position
|
|
77
|
+
[o.rootIconLeft]: f === "left",
|
|
78
|
+
// icon only
|
|
79
|
+
[o.rootIconOnly]: h(s) && _ === "medium",
|
|
80
|
+
[o.rootIconOnlySmall]: h(s) && _ === "small"
|
|
81
|
+
}), I = g({
|
|
82
|
+
// hide label only visually to keep them available for assistive technologies
|
|
83
|
+
[o.labelHidden]: h(s)
|
|
84
|
+
}), F = l === "light" && t === "filled" || l === "dark" && t === "outline" || l === "dark" && t === "ghost" ? "dark" : "light", d = n === void 0 ? "span" : "a";
|
|
85
|
+
return /* @__PURE__ */ i.jsxs(
|
|
86
|
+
d,
|
|
87
|
+
{
|
|
88
|
+
className: O,
|
|
89
|
+
"data-trackingid": u,
|
|
90
|
+
...d === "a" && {
|
|
91
|
+
href: n,
|
|
92
|
+
target: y,
|
|
93
|
+
rel: D,
|
|
94
|
+
referrerPolicy: m,
|
|
95
|
+
download: w
|
|
96
|
+
},
|
|
97
|
+
...k,
|
|
98
|
+
...G,
|
|
99
|
+
children: [
|
|
100
|
+
/* @__PURE__ */ i.jsx("span", { className: I, children: c }),
|
|
101
|
+
(a || e) && /* @__PURE__ */ i.jsx(
|
|
102
|
+
H,
|
|
103
|
+
{
|
|
104
|
+
name: a,
|
|
105
|
+
theme: F,
|
|
106
|
+
source: e,
|
|
107
|
+
"aria-hidden": "true"
|
|
108
|
+
}
|
|
109
|
+
)
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
);
|
|
113
|
+
};
|
|
114
|
+
export {
|
|
115
|
+
X as DSLink
|
|
116
|
+
};
|
package/link.d.ts
CHANGED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as t } from "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
|
+
import { c as p } from "./chunks/index.CvOaL64Y.js";
|
|
4
|
+
import { D as x } from "./chunks/Icon.C2o2seDb.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import './assets/linkstandalone.Dwz-_O8q.css';const H = "_link-standalone_auko9_76", j = "_link-standalone--highlight_auko9_146", v = "_link-standalone--neutral-dark_auko9_160", L = "_link-standalone--highlight-dark_auko9_211", N = "_link-standalone--active_auko9_262", I = "_link-standalone--icon-left_auko9_269", n = {
|
|
7
|
+
"link-standalone": "_link-standalone_auko9_76",
|
|
8
|
+
linkStandalone: H,
|
|
9
|
+
"link-standalone--highlight": "_link-standalone--highlight_auko9_146",
|
|
10
|
+
linkStandaloneHighlight: j,
|
|
11
|
+
"link-standalone--neutral-dark": "_link-standalone--neutral-dark_auko9_160",
|
|
12
|
+
linkStandaloneNeutralDark: v,
|
|
13
|
+
"link-standalone--highlight-dark": "_link-standalone--highlight-dark_auko9_211",
|
|
14
|
+
linkStandaloneHighlightDark: L,
|
|
15
|
+
"link-standalone--active": "_link-standalone--active_auko9_262",
|
|
16
|
+
linkStandaloneActive: N,
|
|
17
|
+
"link-standalone--icon-left": "_link-standalone--icon-left_auko9_269",
|
|
18
|
+
linkStandaloneIconLeft: I
|
|
19
|
+
}, C = ({
|
|
20
|
+
children: s,
|
|
21
|
+
aria: d,
|
|
22
|
+
active: _,
|
|
23
|
+
className: h,
|
|
24
|
+
dataTrackingid: r,
|
|
25
|
+
download: g,
|
|
26
|
+
href: i,
|
|
27
|
+
iconName: o,
|
|
28
|
+
iconPosition: c = "left",
|
|
29
|
+
iconSource: e,
|
|
30
|
+
referrerPolicy: u,
|
|
31
|
+
rel: S,
|
|
32
|
+
target: f = "_self",
|
|
33
|
+
theme: a = "light",
|
|
34
|
+
variant: l = "neutral",
|
|
35
|
+
...m
|
|
36
|
+
}) => {
|
|
37
|
+
const D = p(n.linkStandalone, h, {
|
|
38
|
+
// variant
|
|
39
|
+
[n.linkStandaloneHighlight]: l === "highlight",
|
|
40
|
+
// theme
|
|
41
|
+
[n.linkStandaloneNeutralDark]: a === "dark" && l === "neutral",
|
|
42
|
+
[n.linkStandaloneHighlightDark]: a === "dark" && l === "highlight",
|
|
43
|
+
// active
|
|
44
|
+
[n.linkStandaloneActive]: _,
|
|
45
|
+
// icon position
|
|
46
|
+
[n.linkStandaloneIconLeft]: c === "left"
|
|
47
|
+
}), k = i === void 0 ? "span" : "a";
|
|
48
|
+
return /* @__PURE__ */ t.jsxs(
|
|
49
|
+
k,
|
|
50
|
+
{
|
|
51
|
+
className: D,
|
|
52
|
+
"data-trackingid": r,
|
|
53
|
+
...k === "a" && {
|
|
54
|
+
href: i,
|
|
55
|
+
target: f,
|
|
56
|
+
rel: S,
|
|
57
|
+
referrerPolicy: u,
|
|
58
|
+
download: g
|
|
59
|
+
},
|
|
60
|
+
...d,
|
|
61
|
+
...m,
|
|
62
|
+
children: [
|
|
63
|
+
/* @__PURE__ */ t.jsx("span", { className: n.label, children: s }),
|
|
64
|
+
(o || e) && /* @__PURE__ */ t.jsx(
|
|
65
|
+
x,
|
|
66
|
+
{
|
|
67
|
+
name: o,
|
|
68
|
+
theme: a,
|
|
69
|
+
source: e,
|
|
70
|
+
size: "medium",
|
|
71
|
+
"aria-hidden": "true"
|
|
72
|
+
}
|
|
73
|
+
)
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
);
|
|
77
|
+
};
|
|
78
|
+
export {
|
|
79
|
+
C as DSLinkStandalone
|
|
80
|
+
};
|
package/linkstandalone.d.ts
CHANGED
package/logo.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
3
|
import "./chunks/index.CvOaL64Y.js";
|
|
4
|
-
import "./button.
|
|
4
|
+
import "./button.C5opEJ6x.js";
|
|
5
5
|
import "./chunks/Icon.C2o2seDb.js";
|
|
6
|
-
import { D as e } from "./chunks/Notification.
|
|
6
|
+
import { D as e } from "./chunks/Notification.BXVN7_Fs.js";
|
|
7
7
|
export {
|
|
8
8
|
e as DSNotification
|
|
9
9
|
};
|
package/notification.d.ts
CHANGED
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
import { j as o } from "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
3
|
import { c as s } from "./chunks/index.CvOaL64Y.js";
|
|
4
4
|
import { D as _ } from "./chunks/Icon.C2o2seDb.js";
|
|
5
|
-
import './assets/optioncheckbox.
|
|
5
|
+
import './assets/optioncheckbox.C62HtIj5.css';const l = "_root_o64ji_151", k = "_root--disabled_o64ji_172", d = "_checkbox_o64ji_176", n = "_icon-check_o64ji_192", r = "_checkbox--checked_o64ji_213", x = "_checkbox--disabled_o64ji_216", j = "_label_o64ji_233", c = {
|
|
6
6
|
root: l,
|
|
7
|
-
"root--disabled": "_root--
|
|
8
|
-
rootDisabled:
|
|
9
|
-
checkbox:
|
|
10
|
-
"icon-check": "_icon-
|
|
11
|
-
iconCheck:
|
|
12
|
-
"checkbox--checked": "_checkbox--
|
|
13
|
-
checkboxChecked:
|
|
14
|
-
"checkbox--disabled": "_checkbox--
|
|
15
|
-
checkboxDisabled:
|
|
16
|
-
label:
|
|
7
|
+
"root--disabled": "_root--disabled_o64ji_172",
|
|
8
|
+
rootDisabled: k,
|
|
9
|
+
checkbox: d,
|
|
10
|
+
"icon-check": "_icon-check_o64ji_192",
|
|
11
|
+
iconCheck: n,
|
|
12
|
+
"checkbox--checked": "_checkbox--checked_o64ji_213",
|
|
13
|
+
checkboxChecked: r,
|
|
14
|
+
"checkbox--disabled": "_checkbox--disabled_o64ji_216",
|
|
15
|
+
checkboxDisabled: x,
|
|
16
|
+
label: j
|
|
17
17
|
}, D = ({
|
|
18
|
-
label:
|
|
18
|
+
label: i,
|
|
19
19
|
checked: h,
|
|
20
20
|
className: a,
|
|
21
21
|
disabled: e
|
|
@@ -35,7 +35,7 @@ import './assets/optioncheckbox.BJJAph5_.css';const l = "_root_oj6mx_151", i = "
|
|
|
35
35
|
"aria-hidden": "true"
|
|
36
36
|
}
|
|
37
37
|
) }),
|
|
38
|
-
/* @__PURE__ */ o.jsx("span", { className: c.label, children:
|
|
38
|
+
/* @__PURE__ */ o.jsx("span", { className: c.label, children: i })
|
|
39
39
|
] }) });
|
|
40
40
|
};
|
|
41
41
|
export {
|
package/optioncheckbox.d.ts
CHANGED