@stihl-design-system/components 1.0.0-RC.41 → 1.0.0-RC.43
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.CiiPLwYQ.js → accordion.CJYNJWAm.js} +2 -2
- package/action-card-example-image-1.webp +0 -0
- package/{actionbutton.DKb4ph1c.js → actionbutton.BLKEsCUm.js} +3 -3
- package/actioncard.WFXhVqOa.js +9 -0
- package/actioncard.d.ts +2 -0
- package/{actionlink.DEGta2h9.js → actionlink.xJDPIikL.js} +3 -3
- package/arialiveregions.BF6mUlPU.js +23 -0
- package/assets/ActionCard.C85bSGRa.css +1 -0
- package/assets/LinkCard.fwyPSY19.css +1 -0
- package/assets/Toast.CGl8z6mX.css +1 -0
- package/assets/filelist.CHVupL8T.css +1 -0
- package/assets/filepreview.2cdH-1Xs.css +1 -0
- package/assets/progressindicator.Cbbzo5-b.css +1 -0
- package/{banner.S_c1UQJe.js → banner.CYahlug-.js} +1 -1
- package/{breadcrumb.DiuuVblR.js → breadcrumb.Bg86bTsh.js} +3 -3
- package/{button.Z7Mmvwhv.js → button.oshwTInZ.js} +4 -4
- package/{buttonround.Bqi8Ej-y.js → buttonround.CPTvQIcE.js} +3 -3
- package/{checkbox.DtSSduSH.js → checkbox.BTnK5VzM.js} +3 -3
- package/{checkboxgroup.CSP1DOCW.js → checkboxgroup.DESMv2S7.js} +2 -2
- package/{chip.CyypeY5M.js → chip.BWL_yfeA.js} +3 -3
- package/chipgroup.DvoNDnTN.js +213 -0
- package/chunks/{Accordion.Q50G9LZ3.js → Accordion.D4jj5_nA.js} +1 -1
- package/chunks/{ActionButton.BEMy35Lh.js → ActionButton.BOKt8109.js} +2 -2
- package/chunks/ActionCard.oi3u27DL.js +242 -0
- package/chunks/{ActionLink.DECHT42B.js → ActionLink.BFwVQSTh.js} +2 -2
- package/chunks/AriaLiveRegions.utils.8ofDlHnN.js +65 -0
- package/chunks/{Breadcrumb.nflDJoKs.js → Breadcrumb.ClHgevZX.js} +2 -2
- package/chunks/{Button.DpGeheky.js → Button.BdqkFovu.js} +3 -3
- package/chunks/{Checkbox.B3NeB54s.js → Checkbox.vdWpXSUh.js} +2 -2
- package/chunks/{CheckboxGroup.BYZSvqF7.js → CheckboxGroup.BtVBLux3.js} +2 -2
- package/chunks/Chip.B_zwA2qc.js +157 -0
- package/chunks/{CustomReactSelect.DBsnmMPl.js → CustomReactSelect.Dtf3mXJ_.js} +4 -4
- package/chunks/{Dialog.C-rcs_Up.js → Dialog.9tejL9sZ.js} +1 -1
- package/chunks/{Drawer.D0d557c5.js → Drawer.DIFMs4Gh.js} +1 -1
- package/chunks/{Fieldset.7WM7w62l.js → Fieldset.8jatF24R.js} +2 -2
- package/chunks/Icon.BoxUJQDT.js +232 -0
- package/chunks/InputFile.zbXRpklU.js +260 -0
- package/chunks/{InputNumber.a44HnJ9B.js → InputNumber.d7gmAHaX.js} +3 -3
- package/chunks/{InputPassword.B1E0Maub.js → InputPassword.Cz41hBCt.js} +3 -3
- package/chunks/{InputSearch.C7AvD7Eu.js → InputSearch.DPQCT8Yo.js} +3 -3
- package/chunks/{LinkButton.CMjq2FKc.js → LinkButton.BGQOwjnE.js} +2 -2
- package/chunks/LinkCard.DRATPHdd.js +178 -0
- package/chunks/{NavigationTabList.ltT6igtk.js → NavigationTabList.Cf6csU_F.js} +1 -1
- package/chunks/{NavigationTabs.DsVepb7H.js → NavigationTabs.CSTtXPxd.js} +1 -1
- package/chunks/{Notification.COwLndR0.js → Notification.ChSYPU3r.js} +2 -2
- package/chunks/Popover.BSL3AilG.js +221 -0
- package/chunks/{RadioGroup.B-qTH31u.js → RadioGroup.DauFXAk6.js} +1 -1
- package/chunks/{Select.DrDVi9lg.js → Select.CWA7DHcL.js} +3 -3
- package/chunks/{Slider.DGMrDfWv.js → Slider.2ltYhUJb.js} +2 -2
- package/chunks/Stepper.Dh69BOVR.js +146 -0
- package/chunks/{SystemFeedback.DFN6Y2cw.js → SystemFeedback.C2XFC5WN.js} +1 -1
- package/chunks/{Tabs.DfH2q9EL.js → Tabs.BvwiBlXt.js} +1 -1
- package/chunks/{Textarea.ymNCbcvH.js → Textarea.Ck0sw4SI.js} +2 -2
- package/chunks/Toast.Ck4woVuy.js +76 -0
- package/chunks/battery-return.tBu7C6Q7.js +10 -0
- package/chunks/cookie.U09gK6it.js +10 -0
- package/chunks/credit-card.BmIN7RQ3.js +10 -0
- package/chunks/legal-info.-S9gzFzc.js +10 -0
- package/chunks/legal.CVCmbA3m.js +10 -0
- package/chunks/present.B4ImIJxi.js +10 -0
- package/chunks/return-package.Bt9FUc42.js +10 -0
- package/{combobox.DzSEFo_5.js → combobox.zkQtaMOE.js} +1 -1
- package/components/ActionButton/ActionButton.d.ts +1 -1
- package/components/ActionCard/ActionCard.d.ts +75 -0
- package/components/ActionCard/ActionCard.utils.d.ts +24 -0
- package/components/AriaLiveRegions/AriaLiveRegions.d.ts +22 -1
- package/components/AriaLiveRegions/AriaLiveRegions.test.d.ts +1 -0
- package/components/AriaLiveRegions/AriaLiveRegions.utils.d.ts +106 -0
- package/components/Breadcrumb/Breadcrumb.d.ts +1 -1
- package/components/Button/Button.d.ts +1 -1
- package/components/ChipGroup/ChipGroup.utils.d.ts +14 -15
- package/components/Icon/Icon.d.ts +1 -1
- package/components/InputFile/FileList/FileList.d.ts +14 -0
- package/components/InputFile/FileList/FileList.test.d.ts +1 -0
- package/components/{FileList → InputFile/FileList}/FileList.utils.d.ts +0 -6
- package/components/InputFile/FileList/FileList.utils.test.d.ts +1 -0
- package/components/InputFile/FileList/FilePreview/FilePreview.d.ts +15 -0
- package/components/InputFile/FileList/FilePreview/FilePreview.test.d.ts +1 -0
- package/components/InputFile/FileList/FilePreview/FilePreview.utils.d.ts +11 -0
- package/components/InputFile/FileList/FilePreview/FilePreview.utils.test.d.ts +1 -0
- package/components/InputFile/FileList/ProgressIndicator/ProgressIndicator.d.ts +34 -0
- package/components/InputFile/FileList/ProgressIndicator/ProgressIndicator.test.d.ts +1 -0
- package/components/InputFile/InputFile.d.ts +49 -15
- package/components/InputFile/InputFile.utils.d.ts +14 -0
- package/components/LinkButton/LinkButton.d.ts +1 -1
- package/components/LinkCard/LinkCard.d.ts +16 -4
- package/components/Logo/Logo.d.ts +1 -1
- package/components/NavigationTabs/NavigationTabs.d.ts +1 -1
- package/components/Spinner/Spinner.d.ts +1 -1
- package/components/Stepper/Stepper.d.ts +1 -1
- package/components/Stepper/Stepper.utils.d.ts +0 -1
- package/components/Switch/Switch.d.ts +1 -1
- package/components/Tabs/TabList/TabList.d.ts +1 -1
- package/components/Toast/ToastManager.utils.d.ts +0 -1
- package/components/TopBar/TopBar.d.ts +1 -1
- package/{customreactselect.D7YraWJ7.js → customreactselect.DbPXuk-C.js} +5 -5
- package/{dialog.CBovd8em.js → dialog.wzLHG12h.js} +2 -2
- package/{drawer.D5F0KXI2.js → drawer.DnHZCC60.js} +2 -2
- package/{fieldset.DgbZ_K_l.js → fieldset.DUU39krR.js} +3 -3
- package/filelist.d.ts +1 -1
- package/filelist.zRCzEN5D.js +128 -0
- package/filepreview.CK8DA0aR.js +94 -0
- package/filepreview.d.ts +2 -0
- package/{flag.D-wrUioF.js → flag.02uD-ADh.js} +1 -1
- package/{floatingactionbutton.CE-Rz0dx.js → floatingactionbutton.BwmRfmD_.js} +3 -3
- package/{icon.ByLYRkPZ.js → icon.DFM8rDOR.js} +1 -1
- package/index.d.ts +3 -0
- package/index.es.js +233 -219
- package/{input.MZXe6rlg.js → input.yBU7wjmW.js} +4 -4
- package/inputfile.BRt_BWK8.js +18 -0
- package/{inputnumber.DevQudIX.js → inputnumber.B0yCOPU1.js} +4 -4
- package/{inputpassword.C-XYK-JP.js → inputpassword.aQxGIeyf.js} +4 -4
- package/{inputsearch.CmJdxnzX.js → inputsearch.EbZnS29c.js} +4 -4
- package/{link.R1lfD5aN.js → link.Ck9Yd2y2.js} +3 -3
- package/{linkbutton.Y-ET1tc9.js → linkbutton.DzbJ1ws2.js} +3 -3
- package/{linkcard.CayqoQNo.js → linkcard.D65tvntF.js} +3 -3
- package/{navigationtablist.Cd9hZzFQ.js → navigationtablist.BMvJp48M.js} +2 -2
- package/{navigationtabs.DHG-TeF2.js → navigationtabs.BzYhrLVd.js} +2 -2
- package/{notification.u_LLz-O0.js → notification.B80f3Sh6.js} +3 -3
- package/{optioncheckbox.v8Plcgeg.js → optioncheckbox.DvF4Vr4C.js} +1 -1
- package/package.json +2 -2
- package/partials/index.js +15 -9
- package/partials/lib/partials.d.ts +1 -1
- package/{popover.T7-imfkx.js → popover.BR8IGyhi.js} +4 -3
- package/product-card-example-1.webp +0 -0
- package/product-card-example-2.webp +0 -0
- package/product-card-example-3.webp +0 -0
- package/product-card-example-4.webp +0 -0
- package/progressindicator.DYKf69nk.js +53 -0
- package/progressindicator.d.ts +2 -0
- package/{radiogroup.CAh4wto1.js → radiogroup.Cniqm1t0.js} +2 -2
- package/{scroller.DfhhZelk.js → scroller.CSSI5khP.js} +1 -1
- package/{select.CSCc_-6d.js → select.DPfXPv-k.js} +4 -4
- package/{skiptocontent.C2HpZt5q.js → skiptocontent.C_nrEIVL.js} +1 -1
- package/{slider.B2aQwfc2.js → slider.CyRU5Kys.js} +3 -3
- package/{spinner.CRVyui04.js → spinner.ww3wgdUU.js} +1 -1
- package/{step.C-LC5sKQ.js → step.C4gOI6c3.js} +2 -2
- package/{stepper.CRljfUF8.js → stepper.Bqdr6GS-.js} +4 -4
- package/{switch.DgKgzm-j.js → switch.DpYvgNSE.js} +2 -2
- package/{systemfeedback.BKLsE5sY.js → systemfeedback.g7odUaLC.js} +2 -2
- package/{tablist.DPiNeY3_.js → tablist.DLFJGmYV.js} +3 -3
- package/{tabs.Cxzm6ZZ-.js → tabs.Bne3Z3rz.js} +2 -2
- package/{textarea.CDXY-OVz.js → textarea.DcAoKkta.js} +3 -3
- package/{toast.Bev-Rfuw.js → toast.C_O0xDYn.js} +3 -3
- package/toastmanager.w_mhIehC.js +79 -0
- package/tooltip.C6HKano9.js +184 -0
- package/types/icon-types.d.ts +1 -1
- package/arialiveregions.B0AV2JcV.js +0 -18
- package/assets/LinkCard.C6HtgbjH.css +0 -1
- package/assets/Toast.DgRXxA0s.css +0 -1
- package/assets/filelist.H_wKcSPX.css +0 -1
- package/chipgroup.CSjQHeeW.js +0 -199
- package/chunks/AriaLiveRegions.utils.CLpOaVD9.js +0 -27
- package/chunks/Chip.SiGIIHR-.js +0 -133
- package/chunks/Icon.m6sMB6vl.js +0 -232
- package/chunks/InputFile.DRGNdtY0.js +0 -236
- package/chunks/LinkCard.CJ5P0ews.js +0 -199
- package/chunks/Popover.C5wtha5l.js +0 -214
- package/chunks/Stepper.DptsFh5n.js +0 -152
- package/chunks/Toast.RUzRjojQ.js +0 -76
- package/components/FileList/FileList.d.ts +0 -13
- package/filelist.CDEBo3Pi.js +0 -160
- package/inputfile.BO4wDnzQ.js +0 -18
- package/toastmanager.DII20_9k.js +0 -89
- package/tooltip._lP4aMV2.js +0 -177
- /package/components/{FileList/FileList.test.d.ts → ActionCard/ActionCard.test.d.ts} +0 -0
- /package/components/{FileList/FileList.utils.test.d.ts → ActionCard/ActionCard.utils.test.d.ts} +0 -0
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as P, jsx as n, Fragment as be } from "react/jsx-runtime";
|
|
3
|
+
import { d as De } from "./index.cKLI89Eg.js";
|
|
4
|
+
import { c as o } from "./index.DQOqod3i.js";
|
|
5
|
+
import { isValidElement as Se, cloneElement as qe } from "react";
|
|
6
|
+
import { DSFlag as $ } from "../flag.02uD-ADh.js";
|
|
7
|
+
import { DSHeading as we } from "../heading.BHSklXho.js";
|
|
8
|
+
import { D as Fe } from "./LinkButton.BGQOwjnE.js";
|
|
9
|
+
import { g as y } from "./helpers.CexwVao7.js";
|
|
10
|
+
import '../assets/LinkCard.fwyPSY19.css';const We = "ds-link-card_root_e8szq_1", Pe = "ds-link-card_root--horizontal_e8szq_53", ye = "ds-link-card_image-wrapper_e8szq_58", Ee = "ds-link-card_content_e8szq_68", Te = "ds-link-card_content--padding-small_e8szq_72", He = "ds-link-card_header_e8szq_103", xe = "ds-link-card_footer_e8szq_104", je = "ds-link-card_heading_e8szq_115", Ve = "ds-link-card_link_e8szq_119", Be = "ds-link-card_description_e8szq_124", Ae = "ds-link-card_meta-data_e8szq_141", Ie = "ds-link-card_decorative-link_e8szq_158", Oe = "ds-link-card_flags_e8szq_162", Me = "ds-link-card_brand-flag_e8szq_171", i = {
|
|
11
|
+
root: We,
|
|
12
|
+
rootHorizontal: Pe,
|
|
13
|
+
imageWrapper: ye,
|
|
14
|
+
content: Ee,
|
|
15
|
+
contentPaddingSmall: Te,
|
|
16
|
+
header: He,
|
|
17
|
+
footer: xe,
|
|
18
|
+
heading: je,
|
|
19
|
+
link: Ve,
|
|
20
|
+
description: Be,
|
|
21
|
+
metaData: Ae,
|
|
22
|
+
decorativeLink: Ie,
|
|
23
|
+
flags: Oe,
|
|
24
|
+
brandFlag: Me
|
|
25
|
+
}, Re = ({
|
|
26
|
+
href: m,
|
|
27
|
+
linkComponent: e,
|
|
28
|
+
flags: a,
|
|
29
|
+
flagListAriaLabel: s,
|
|
30
|
+
heading: r,
|
|
31
|
+
img: g,
|
|
32
|
+
brandFlag: h
|
|
33
|
+
}) => {
|
|
34
|
+
if (!m && !e)
|
|
35
|
+
throw new Error(y("DSLinkCard", "Please provide either the 'href' prop or a custom 'linkComponent'."));
|
|
36
|
+
if (m && e)
|
|
37
|
+
throw new Error(y("DSLinkCard", "Please provide either the 'href' prop or a custom 'linkComponent', but not both."));
|
|
38
|
+
if (!r)
|
|
39
|
+
throw new Error(y("DSLinkCard", "The 'heading' prop is required and must be provided."));
|
|
40
|
+
a && a.length > 6 && console.warn(y("DSLinkCard", "It is recommended to provide a maximum of 6 flags for optimal display.")), a && a.length > 0 && !s && console.warn(y("DSLinkCard", "When providing flags, please also ensure to add the 'flagListAriaLabel' to describe the list of flags for non sighted screen reader users.")), h && g === void 0 && console.warn(y("DSLinkCard", "The 'brandFlag' prop is set to true, but no 'img' prop is provided. The 'brandFlag' will have no effect without an image."));
|
|
41
|
+
}, $e = (m) => {
|
|
42
|
+
const e = De.c(76);
|
|
43
|
+
let a, s, r, g, h, f, l, d, p, t, _, v, L, u, N;
|
|
44
|
+
e[0] !== m ? ({
|
|
45
|
+
heading: l,
|
|
46
|
+
brandFlag: a,
|
|
47
|
+
className: r,
|
|
48
|
+
cardClassNames: s,
|
|
49
|
+
decorativeLinkButtonProps: g,
|
|
50
|
+
description: h,
|
|
51
|
+
flagListAriaLabel: f,
|
|
52
|
+
flags: L,
|
|
53
|
+
href: d,
|
|
54
|
+
img: p,
|
|
55
|
+
linkComponent: t,
|
|
56
|
+
metaData: _,
|
|
57
|
+
orientation: u,
|
|
58
|
+
padding: N,
|
|
59
|
+
...v
|
|
60
|
+
} = m, e[0] = m, e[1] = a, e[2] = s, e[3] = r, e[4] = g, e[5] = h, e[6] = f, e[7] = l, e[8] = d, e[9] = p, e[10] = t, e[11] = _, e[12] = v, e[13] = L, e[14] = u, e[15] = N) : (a = e[1], s = e[2], r = e[3], g = e[4], h = e[5], f = e[6], l = e[7], d = e[8], p = e[9], t = e[10], _ = e[11], v = e[12], L = e[13], u = e[14], N = e[15]);
|
|
61
|
+
let k, z, C;
|
|
62
|
+
e[16] !== a || e[17] !== f || e[18] !== l || e[19] !== d || e[20] !== p || e[21] !== t || e[22] !== L || e[23] !== u || e[24] !== N ? (k = L === void 0 ? [] : L, z = u === void 0 ? "vertical" : u, C = N === void 0 ? "medium" : N, process.env.NODE_ENV !== "production" && Re({
|
|
63
|
+
href: d,
|
|
64
|
+
linkComponent: t,
|
|
65
|
+
heading: l,
|
|
66
|
+
flags: k,
|
|
67
|
+
flagListAriaLabel: f,
|
|
68
|
+
img: p,
|
|
69
|
+
brandFlag: a
|
|
70
|
+
}), e[16] = a, e[17] = f, e[18] = l, e[19] = d, e[20] = p, e[21] = t, e[22] = L, e[23] = u, e[24] = N, e[25] = k, e[26] = z, e[27] = C) : (k = e[25], z = e[26], C = e[27]);
|
|
71
|
+
let T;
|
|
72
|
+
e[28] !== g ? (T = g || {}, e[28] = g, e[29] = T) : T = e[29];
|
|
73
|
+
const {
|
|
74
|
+
label: E,
|
|
75
|
+
iconName: G,
|
|
76
|
+
variant: ee,
|
|
77
|
+
hideLabel: J,
|
|
78
|
+
size: Y
|
|
79
|
+
} = T, K = Y === void 0 ? "small" : Y, H = ee === "ghost" ? "ghost" : "filled", Q = _ || k.length > 0 || E;
|
|
80
|
+
let x;
|
|
81
|
+
if (e[30] !== H || e[31] !== a || e[32] !== s || e[33] !== r || e[34] !== J || e[35] !== G || e[36] !== E || e[37] !== K || e[38] !== h || e[39] !== f || e[40] !== k || e[41] !== Q || e[42] !== l || e[43] !== d || e[44] !== p || e[45] !== t || e[46] !== _ || e[47] !== z || e[48] !== C || e[49] !== v) {
|
|
82
|
+
const {
|
|
83
|
+
brandFlag: ae,
|
|
84
|
+
contentWrapper: te,
|
|
85
|
+
descriptionWrapper: ie,
|
|
86
|
+
decorativeLink: oe,
|
|
87
|
+
flagsWrapper: re,
|
|
88
|
+
footerWrapper: ne,
|
|
89
|
+
headerWrapper: se,
|
|
90
|
+
heading: le,
|
|
91
|
+
imageWrapper: de,
|
|
92
|
+
metaDataWrapper: ce
|
|
93
|
+
} = s || {}, U = z === "horizontal";
|
|
94
|
+
let j;
|
|
95
|
+
e[51] !== r || e[52] !== U ? (j = o(i.root, r, {
|
|
96
|
+
[i.rootHorizontal]: U
|
|
97
|
+
}), e[51] = r, e[52] = U, e[53] = j) : j = e[53];
|
|
98
|
+
const me = j, Z = o(i.brandFlag, ae), pe = o(i.content, te, {
|
|
99
|
+
[i.contentPaddingSmall]: C === "small"
|
|
100
|
+
}), ge = o(i.description, ie), he = o(i.decorativeLink, oe), fe = o(i.flags, re), ke = o(i.footer, ne), _e = o(i.header, se), ve = o(i.heading, le), Le = o(i.imageWrapper, de), ue = o(i.metaData, ce);
|
|
101
|
+
let V, b, D, S, q, w, F, W;
|
|
102
|
+
e[54] !== v ? ({
|
|
103
|
+
download: b,
|
|
104
|
+
hrefLang: D,
|
|
105
|
+
ping: S,
|
|
106
|
+
referrerPolicy: q,
|
|
107
|
+
rel: w,
|
|
108
|
+
target: F,
|
|
109
|
+
type: W,
|
|
110
|
+
...V
|
|
111
|
+
} = v, e[54] = v, e[55] = V, e[56] = b, e[57] = D, e[58] = S, e[59] = q, e[60] = w, e[61] = F, e[62] = W) : (V = e[55], b = e[56], D = e[57], S = e[58], q = e[59], w = e[60], F = e[61], W = e[62]);
|
|
112
|
+
let B;
|
|
113
|
+
e[63] !== b || e[64] !== d || e[65] !== D || e[66] !== t || e[67] !== S || e[68] !== q || e[69] !== w || e[70] !== F || e[71] !== W ? (B = (c) => t && Se(t) ? qe(t, {
|
|
114
|
+
...t.props,
|
|
115
|
+
className: o(i.link, t.props.className),
|
|
116
|
+
children: /* @__PURE__ */ P(be, { children: [
|
|
117
|
+
c,
|
|
118
|
+
" ",
|
|
119
|
+
t.props.children
|
|
120
|
+
] })
|
|
121
|
+
}) : /* @__PURE__ */ n("a", { href: d, className: i.link, download: b, hrefLang: D, ping: S, referrerPolicy: q, rel: w, target: F, type: W, children: c }), e[63] = b, e[64] = d, e[65] = D, e[66] = t, e[67] = S, e[68] = q, e[69] = w, e[70] = F, e[71] = W, e[72] = B) : B = e[72];
|
|
122
|
+
const Ne = B, X = (c) => {
|
|
123
|
+
const I = typeof c == "object" && c !== void 0, {
|
|
124
|
+
headingText: O,
|
|
125
|
+
headingSize: M,
|
|
126
|
+
headingTag: R
|
|
127
|
+
} = I ? c : {
|
|
128
|
+
headingText: c
|
|
129
|
+
};
|
|
130
|
+
return /* @__PURE__ */ n(we, { tag: R === void 0 ? "h3" : R, size: M === void 0 ? "medium" : M, className: ve, children: Ne(O) });
|
|
131
|
+
}, ze = (c) => {
|
|
132
|
+
if (typeof c == "string")
|
|
133
|
+
return /* @__PURE__ */ n($, { color: "orange-base", className: Z, children: c });
|
|
134
|
+
const {
|
|
135
|
+
children: I,
|
|
136
|
+
color: O,
|
|
137
|
+
className: M,
|
|
138
|
+
...R
|
|
139
|
+
} = c;
|
|
140
|
+
return /* @__PURE__ */ n($, { color: O === void 0 ? "orange-base" : O, className: o(Z, M), ...R, children: I });
|
|
141
|
+
};
|
|
142
|
+
let A;
|
|
143
|
+
e[73] !== X || e[74] !== l ? (A = X(l), e[73] = X, e[74] = l, e[75] = A) : A = e[75], x = /* @__PURE__ */ P("div", { ...V, className: me, children: [
|
|
144
|
+
/* @__PURE__ */ P("div", { className: pe, children: [
|
|
145
|
+
/* @__PURE__ */ P("div", { className: _e, children: [
|
|
146
|
+
A,
|
|
147
|
+
h && /* @__PURE__ */ n("div", { className: ge, children: h })
|
|
148
|
+
] }),
|
|
149
|
+
Q && /* @__PURE__ */ P("div", { className: ke, children: [
|
|
150
|
+
_ && /* @__PURE__ */ n("div", { className: ue, children: _ }),
|
|
151
|
+
k.length > 0 && /* @__PURE__ */ n("ul", { className: fe, "aria-label": f, children: k.map(Ge) }),
|
|
152
|
+
E && /* @__PURE__ */ n(Fe, { iconName: G, iconPosition: "right", variant: H, hideLabel: J, size: K, isFlush: H === "ghost", "aria-hidden": !0, className: he, children: E })
|
|
153
|
+
] })
|
|
154
|
+
] }),
|
|
155
|
+
p && /* @__PURE__ */ P("div", { className: Le, children: [
|
|
156
|
+
a && ze(a),
|
|
157
|
+
p
|
|
158
|
+
] })
|
|
159
|
+
] }), e[30] = H, e[31] = a, e[32] = s, e[33] = r, e[34] = J, e[35] = G, e[36] = E, e[37] = K, e[38] = h, e[39] = f, e[40] = k, e[41] = Q, e[42] = l, e[43] = d, e[44] = p, e[45] = t, e[46] = _, e[47] = z, e[48] = C, e[49] = v, e[50] = x;
|
|
160
|
+
} else
|
|
161
|
+
x = e[50];
|
|
162
|
+
return x;
|
|
163
|
+
};
|
|
164
|
+
$e.displayName = "DSLinkCard";
|
|
165
|
+
function Ge(m, e) {
|
|
166
|
+
if (typeof m == "string")
|
|
167
|
+
return /* @__PURE__ */ n("li", { children: /* @__PURE__ */ n($, { color: "grey-light", children: m }) }, e);
|
|
168
|
+
const {
|
|
169
|
+
children: a,
|
|
170
|
+
color: s,
|
|
171
|
+
...r
|
|
172
|
+
} = m;
|
|
173
|
+
return /* @__PURE__ */ n("li", { children: /* @__PURE__ */ n($, { color: s === void 0 ? "grey-light" : s, ...r, children: a }) }, e);
|
|
174
|
+
}
|
|
175
|
+
export {
|
|
176
|
+
$e as D,
|
|
177
|
+
Re as v
|
|
178
|
+
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsxs as I, Fragment as k, jsx as d } from "react/jsx-runtime";
|
|
3
3
|
import { d as w } from "./index.cKLI89Eg.js";
|
|
4
4
|
import { isValidElement as R, cloneElement as W } from "react";
|
|
5
|
-
import { D as v } from "./Icon.
|
|
5
|
+
import { D as v } from "./Icon.BoxUJQDT.js";
|
|
6
6
|
import { NumberIndicator as y } from "../numberindicator.ZGVRSmqf.js";
|
|
7
7
|
import '../assets/NavigationTabList.CzAiHz7G.css';const D = "ds-tabs_tabs-wrapper_ccgp4_1", E = "ds-tabs_scroll-wrapper_ccgp4_6", L = "ds-tabs_scroller_ccgp4_17", T = "ds-tabs_scroller--centered_ccgp4_28", j = "ds-tabs_tab_ccgp4_1", x = "ds-tabs_scroll-button_ccgp4_105", H = "ds-tabs_scroll-button--hidden_ccgp4_110", K = "ds-tabs_scroll-button--right_ccgp4_114", S = "ds-tabs_indicator_ccgp4_126", V = {
|
|
8
8
|
tabsWrapper: D,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as v } from "react/jsx-runtime";
|
|
3
3
|
import { d as N } from "./index.cKLI89Eg.js";
|
|
4
4
|
import { useState as T, useEffect as h } from "react";
|
|
5
|
-
import { TabList as y } from "../tablist.
|
|
5
|
+
import { TabList as y } from "../tablist.DLFJGmYV.js";
|
|
6
6
|
import { g as o, r as A } from "./helpers.CexwVao7.js";
|
|
7
7
|
const V = ["left", "center"], M = ["prev", "next"], I = ({
|
|
8
8
|
aria: t,
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsx as H, jsxs as F } from "react/jsx-runtime";
|
|
3
3
|
import { d as R } from "./index.cKLI89Eg.js";
|
|
4
4
|
import { c as k } from "./index.DQOqod3i.js";
|
|
5
|
-
import { D as W } from "./Button.
|
|
6
|
-
import { D as j } from "./Icon.
|
|
5
|
+
import { D as W } from "./Button.BdqkFovu.js";
|
|
6
|
+
import { D as j } from "./Icon.BoxUJQDT.js";
|
|
7
7
|
import '../assets/Notification.DBGpHzov.css';const y = "ds-notification_root_trmu0_1", L = "ds-notification_root--success_trmu0_29", P = "ds-notification_root--error_trmu0_33", V = "ds-notification_root--warning_trmu0_37", z = "ds-notification_root--hide-icon_trmu0_41", Y = "ds-notification_content_trmu0_55", $ = "ds-notification_content--hide-close-button_trmu0_62", q = "ds-notification_content--hide-icon_trmu0_65", G = "ds-notification_icon_trmu0_69", J = "ds-notification_message_trmu0_73", K = "ds-notification_custom-action-area_trmu0_170", e = {
|
|
8
8
|
root: y,
|
|
9
9
|
rootSuccess: L,
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as m, jsxs as j, Fragment as ee } from "react/jsx-runtime";
|
|
3
|
+
import { d as B } from "./index.cKLI89Eg.js";
|
|
4
|
+
import { useState as U, useRef as oe, useMemo as te, createContext as re, forwardRef as W, isValidElement as ne, cloneElement as se, useContext as ae } from "react";
|
|
5
|
+
import { u as ce, o as le, j as ie, s as pe, k as de, a as fe, b as ue, c as he, d as ve, e as me, f as $, g as ge, l as Pe, F as we, i as De } from "./floating-ui.react.CP5A99-c.js";
|
|
6
|
+
import { c as O } from "./index.DQOqod3i.js";
|
|
7
|
+
import { g as E, c as L } from "./helpers.CexwVao7.js";
|
|
8
|
+
import { u as Se } from "./useIsomorphicLayoutEffect.CnJ9AMFS.js";
|
|
9
|
+
import { D as Ae } from "./Button.BdqkFovu.js";
|
|
10
|
+
import '../assets/Popover.mL5g23EK.css';const ye = "ds-popover_popover_xg81f_5", xe = "ds-popover_popover--no-arrow_xg81f_64", _e = "ds-popover_popover--variant-grey_xg81f_67", Ce = "ds-popover_arrow_xg81f_71", Ee = "ds-popover_arrow--variant-grey_xg81f_90", be = "ds-popover_default-anchor_xg81f_107", _ = {
|
|
11
|
+
popover: ye,
|
|
12
|
+
popoverNoArrow: xe,
|
|
13
|
+
popoverVariantGrey: _e,
|
|
14
|
+
arrow: Ce,
|
|
15
|
+
arrowVariantGrey: Ee,
|
|
16
|
+
defaultAnchor: be
|
|
17
|
+
}, Ne = ({
|
|
18
|
+
initialOpen: r = !1,
|
|
19
|
+
placement: o = "bottom",
|
|
20
|
+
isOpen: e,
|
|
21
|
+
popoverOffset: n = 6,
|
|
22
|
+
showArrow: c = !0,
|
|
23
|
+
variant: p = "default",
|
|
24
|
+
defaultAnchorButtonProps: d,
|
|
25
|
+
onOpenChange: f
|
|
26
|
+
} = {}) => {
|
|
27
|
+
const [t, s] = U(r), l = e ?? t, a = f ?? s, i = oe(null), u = ce({
|
|
28
|
+
placement: o,
|
|
29
|
+
open: l,
|
|
30
|
+
strategy: "fixed",
|
|
31
|
+
onOpenChange: a,
|
|
32
|
+
whileElementsMounted: fe,
|
|
33
|
+
middleware: [le(n + (c ? 7 : 0)), ie({
|
|
34
|
+
// default configuration taken from https://floating-ui.com/docs/flip
|
|
35
|
+
crossAxis: o.includes("-"),
|
|
36
|
+
fallbackAxisSideDirection: "end",
|
|
37
|
+
padding: n
|
|
38
|
+
}), pe({
|
|
39
|
+
padding: n
|
|
40
|
+
}), ...c ? [de({
|
|
41
|
+
element: i
|
|
42
|
+
})] : []]
|
|
43
|
+
}), h = u.context, C = ue(h, {
|
|
44
|
+
enabled: !0
|
|
45
|
+
}), P = he(h), F = ve(h), w = me([C, P, F]);
|
|
46
|
+
return te(() => ({
|
|
47
|
+
open: l,
|
|
48
|
+
popoverOffset: n,
|
|
49
|
+
setOpen: a,
|
|
50
|
+
arrowRef: i,
|
|
51
|
+
showArrow: c,
|
|
52
|
+
defaultAnchorButtonProps: d,
|
|
53
|
+
variant: p,
|
|
54
|
+
...w,
|
|
55
|
+
...u
|
|
56
|
+
}), [l, n, a, i, c, d, p, w, u]);
|
|
57
|
+
}, Re = ({
|
|
58
|
+
children: r,
|
|
59
|
+
hasContent: o,
|
|
60
|
+
hasAnchor: e
|
|
61
|
+
}) => {
|
|
62
|
+
if (!r)
|
|
63
|
+
throw new Error(E("DSPopover", "A DSPopover must have children."));
|
|
64
|
+
if (!o && e)
|
|
65
|
+
throw new Error(E("DSPopover", "A DSPopover must either have no child components for its most basic usage or have both a <DSPopover.Content> and <DSPopover.Anchor> component as a child. <DSPopover.Content> is missing! Please add it to the children of DSPopover."));
|
|
66
|
+
if (!e && o)
|
|
67
|
+
throw new Error(E("DSPopover", "A DSPopover must either have no child components for its most basic usage or have both a <DSPopover.Content> and <DSPopover.Anchor> component as a child. <DSPopover.Anchor> is missing! Please add it to the children of DSPopover."));
|
|
68
|
+
}, Fe = ({
|
|
69
|
+
showArrow: r,
|
|
70
|
+
variant: o
|
|
71
|
+
}) => {
|
|
72
|
+
o === "grey" && r === !1 && console.warn(E("DSPopover", "The 'grey' variant is only available when 'showArrow' is true. To use the 'grey' variant, please ensure that 'showArrow' is set to true."));
|
|
73
|
+
}, z = re(null), q = () => {
|
|
74
|
+
const r = ae(z);
|
|
75
|
+
if (r == null)
|
|
76
|
+
throw new Error(E("DSPopover", "Components like DSPopover.Anchor or DSPopover.Content must be wrapped in <DSPopover />."));
|
|
77
|
+
return r;
|
|
78
|
+
}, v = (r) => {
|
|
79
|
+
const o = B.c(11), {
|
|
80
|
+
children: e,
|
|
81
|
+
...n
|
|
82
|
+
} = r, c = Ne({
|
|
83
|
+
...n
|
|
84
|
+
}), p = L(e, v.Content), d = L(e, v.Anchor);
|
|
85
|
+
process.env.NODE_ENV !== "production" && (Re({
|
|
86
|
+
children: e,
|
|
87
|
+
hasContent: p,
|
|
88
|
+
hasAnchor: d
|
|
89
|
+
}), Fe({
|
|
90
|
+
showArrow: n.showArrow,
|
|
91
|
+
variant: n.variant
|
|
92
|
+
}));
|
|
93
|
+
const f = !p && !d && e !== null;
|
|
94
|
+
let t;
|
|
95
|
+
o[0] !== e || o[1] !== f ? (t = f ? /* @__PURE__ */ j(ee, { children: [
|
|
96
|
+
/* @__PURE__ */ m(v.Anchor, {}),
|
|
97
|
+
/* @__PURE__ */ m(v.Content, { children: e })
|
|
98
|
+
] }) : e, o[0] = e, o[1] = f, o[2] = t) : t = o[2];
|
|
99
|
+
const s = t, l = p || f, a = d || f;
|
|
100
|
+
let i;
|
|
101
|
+
o[3] !== c || o[4] !== l || o[5] !== a ? (i = {
|
|
102
|
+
...c,
|
|
103
|
+
hasContent: l,
|
|
104
|
+
hasAnchor: a
|
|
105
|
+
}, o[3] = c, o[4] = l, o[5] = a, o[6] = i) : i = o[6];
|
|
106
|
+
const g = i;
|
|
107
|
+
let u;
|
|
108
|
+
return o[7] !== s || o[8] !== g || o[9] !== n ? (u = /* @__PURE__ */ m(z.Provider, { value: g, ...n, children: s }), o[7] = s, o[8] = g, o[9] = n, o[10] = u) : u = o[10], u;
|
|
109
|
+
}, J = W(({
|
|
110
|
+
children: r,
|
|
111
|
+
...o
|
|
112
|
+
}, e) => {
|
|
113
|
+
const {
|
|
114
|
+
context: n,
|
|
115
|
+
defaultAnchorButtonProps: c,
|
|
116
|
+
refs: p,
|
|
117
|
+
hasAnchor: d,
|
|
118
|
+
getReferenceProps: f
|
|
119
|
+
} = q(), {
|
|
120
|
+
label: t = "Toggle popover",
|
|
121
|
+
...s
|
|
122
|
+
} = c || {}, l = r ? r?.ref : null, a = $([p.setReference, e, l]);
|
|
123
|
+
return d && r && ne(r) ? se(r, f({
|
|
124
|
+
ref: a,
|
|
125
|
+
...o,
|
|
126
|
+
...r.props,
|
|
127
|
+
"data-state": n.open ? "open" : "closed"
|
|
128
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
129
|
+
})) : /* @__PURE__ */ m(
|
|
130
|
+
Ae,
|
|
131
|
+
{
|
|
132
|
+
...s,
|
|
133
|
+
ref: a,
|
|
134
|
+
type: "button",
|
|
135
|
+
"data-state": n.open ? "open" : "closed",
|
|
136
|
+
...f(o),
|
|
137
|
+
size: "small",
|
|
138
|
+
hideLabel: !0,
|
|
139
|
+
iconName: "circle-info-inverted",
|
|
140
|
+
variant: "ghost",
|
|
141
|
+
className: _.defaultAnchor,
|
|
142
|
+
children: r ?? t
|
|
143
|
+
}
|
|
144
|
+
);
|
|
145
|
+
});
|
|
146
|
+
J.displayName = "DSPopover.Anchor";
|
|
147
|
+
const K = W((r, o) => {
|
|
148
|
+
const e = B.c(39), {
|
|
149
|
+
style: n,
|
|
150
|
+
className: c,
|
|
151
|
+
classNameArrow: p,
|
|
152
|
+
children: d,
|
|
153
|
+
...f
|
|
154
|
+
} = r, {
|
|
155
|
+
context: t,
|
|
156
|
+
refs: s,
|
|
157
|
+
floatingStyles: l,
|
|
158
|
+
showArrow: a,
|
|
159
|
+
variant: i,
|
|
160
|
+
getFloatingProps: g,
|
|
161
|
+
arrowRef: u
|
|
162
|
+
} = q();
|
|
163
|
+
let h;
|
|
164
|
+
e[0] !== o || e[1] !== s.setFloating ? (h = [s.setFloating, o], e[0] = o, e[1] = s.setFloating, e[2] = h) : h = e[2];
|
|
165
|
+
const C = $(h);
|
|
166
|
+
let P;
|
|
167
|
+
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = {
|
|
168
|
+
duration: {
|
|
169
|
+
open: 250,
|
|
170
|
+
close: 250
|
|
171
|
+
}
|
|
172
|
+
}, e[3] = P) : P = e[3];
|
|
173
|
+
const {
|
|
174
|
+
isMounted: F,
|
|
175
|
+
status: w
|
|
176
|
+
} = ge(t, P), [Q, X] = U(null);
|
|
177
|
+
let b;
|
|
178
|
+
e[4] !== s.reference.current ? (b = () => {
|
|
179
|
+
const I = s.reference.current?.closest("dialog");
|
|
180
|
+
X(I instanceof HTMLDialogElement ? I : null);
|
|
181
|
+
}, e[4] = s.reference.current, e[5] = b) : b = e[5];
|
|
182
|
+
let N;
|
|
183
|
+
if (e[6] !== t.open || e[7] !== s.reference ? (N = [s.reference, t.open], e[6] = t.open, e[7] = s.reference, e[8] = N) : N = e[8], Se(b, N), !F)
|
|
184
|
+
return null;
|
|
185
|
+
const T = De, V = Q ?? void 0, G = we, Y = !1;
|
|
186
|
+
let D;
|
|
187
|
+
e[9] !== l || e[10] !== n ? (D = {
|
|
188
|
+
...l,
|
|
189
|
+
...n
|
|
190
|
+
}, e[9] = l, e[10] = n, e[11] = D) : D = e[11];
|
|
191
|
+
const k = !a, M = i === "grey" && a;
|
|
192
|
+
let S;
|
|
193
|
+
e[12] !== c || e[13] !== k || e[14] !== M ? (S = O(_.popover, c, {
|
|
194
|
+
[_.popoverNoArrow]: k,
|
|
195
|
+
[_.popoverVariantGrey]: M
|
|
196
|
+
}), e[12] = c, e[13] = k, e[14] = M, e[15] = S) : S = e[15];
|
|
197
|
+
const Z = t.placement, H = g(f);
|
|
198
|
+
let A;
|
|
199
|
+
e[16] !== u || e[17] !== p || e[18] !== t || e[19] !== a || e[20] !== i ? (A = a && /* @__PURE__ */ m(Pe, { ref: u, context: t, className: O(_.arrow, p, {
|
|
200
|
+
[_.arrowVariantGrey]: i === "grey" && a
|
|
201
|
+
}), strokeWidth: 1, tipRadius: 1, width: 16, height: 7 }), e[16] = u, e[17] = p, e[18] = t, e[19] = a, e[20] = i, e[21] = A) : A = e[21];
|
|
202
|
+
let y;
|
|
203
|
+
e[22] !== d || e[23] !== t.placement || e[24] !== C || e[25] !== w || e[26] !== S || e[27] !== H || e[28] !== A || e[29] !== D ? (y = /* @__PURE__ */ j("div", { ref: C, style: D, className: S, "data-placement": Z, "data-status": w, ...H, children: [
|
|
204
|
+
A,
|
|
205
|
+
d
|
|
206
|
+
] }), e[22] = d, e[23] = t.placement, e[24] = C, e[25] = w, e[26] = S, e[27] = H, e[28] = A, e[29] = D, e[30] = y) : y = e[30];
|
|
207
|
+
let x;
|
|
208
|
+
e[31] !== G || e[32] !== t || e[33] !== y ? (x = /* @__PURE__ */ m(G, { context: t, modal: Y, children: y }), e[31] = G, e[32] = t, e[33] = y, e[34] = x) : x = e[34];
|
|
209
|
+
let R;
|
|
210
|
+
return e[35] !== T || e[36] !== x || e[37] !== V ? (R = /* @__PURE__ */ m(T, { root: V, children: x }), e[35] = T, e[36] = x, e[37] = V, e[38] = R) : R = e[38], R;
|
|
211
|
+
});
|
|
212
|
+
K.displayName = "DSPopover.Content";
|
|
213
|
+
v.Anchor = J;
|
|
214
|
+
v.Content = K;
|
|
215
|
+
v.displayName = "DSPopover";
|
|
216
|
+
export {
|
|
217
|
+
v as D,
|
|
218
|
+
Fe as a,
|
|
219
|
+
Ne as u,
|
|
220
|
+
Re as v
|
|
221
|
+
};
|
|
@@ -3,7 +3,7 @@ import { jsx as T } from "react/jsx-runtime";
|
|
|
3
3
|
import { d as X } from "./index.cKLI89Eg.js";
|
|
4
4
|
import { c as J } from "./index.DQOqod3i.js";
|
|
5
5
|
import { forwardRef as Y, useState as Z } from "react";
|
|
6
|
-
import { D as oo } from "./Fieldset.
|
|
6
|
+
import { D as oo } from "./Fieldset.8jatF24R.js";
|
|
7
7
|
import { DSRadio as eo } from "../radio.DxdVKoxe.js";
|
|
8
8
|
import { g, r as W } from "./helpers.CexwVao7.js";
|
|
9
9
|
import '../assets/RadioGroup.q1lQ-HIZ.css';const to = "ds-radio-group_fieldset--custom-area-above_1r3gv_1", ro = "ds-radio-group_root_1r3gv_5", so = "ds-radio-group_root--horizontal_1r3gv_13", io = "ds-radio-group_root--invalid_1r3gv_16", ao = "ds-radio-group_root--custom-area-above_1r3gv_19", no = "ds-radio-group_root--custom-area-above--horizontal_1r3gv_26", H = {
|
|
@@ -5,9 +5,9 @@ import { forwardRef as X, useRef as Y, useState as $, useEffect as z } from "rea
|
|
|
5
5
|
import { u as A } from "./useBreakpoint.1txsny17.js";
|
|
6
6
|
import "./index.cKLI89Eg.js";
|
|
7
7
|
import { Asterisk as G } from "../asterisk.Dwtdwpkq.js";
|
|
8
|
-
import { D as ee } from "./Icon.
|
|
9
|
-
import { D as le } from "./Popover.
|
|
10
|
-
import { D as se } from "./SystemFeedback.
|
|
8
|
+
import { D as ee } from "./Icon.BoxUJQDT.js";
|
|
9
|
+
import { D as le } from "./Popover.BSL3AilG.js";
|
|
10
|
+
import { D as se } from "./SystemFeedback.C2XFC5WN.js";
|
|
11
11
|
import { g as n, r as te } from "./helpers.CexwVao7.js";
|
|
12
12
|
import '../assets/Select.BZYb_HAG.css';const ae = "ds-select_root_1p3qq_1", re = "ds-select_hint_1p3qq_1", ce = "ds-select_label-wrapper_1p3qq_1", oe = "ds-select_label_1p3qq_1", ne = "ds-select_label--disabled_1p3qq_123", ie = "ds-select_label-wrapper--hidden_1p3qq_135", de = "ds-select_feedback_1p3qq_163", pe = "ds-select_select-wrapper_1p3qq_167", he = "ds-select_select_1p3qq_167", me = "ds-select_select--small_1p3qq_181", be = "ds-select_select--invalid_1p3qq_293", _e = "ds-select_select--placeholder_1p3qq_401", fe = "ds-select_chevron_1p3qq_451", Se = "ds-select_chevron--small_1p3qq_455", ue = "ds-select_chevron--disabled_1p3qq_458", e = {
|
|
13
13
|
root: ae,
|
|
@@ -4,8 +4,8 @@ import { d as mt } from "./index.cKLI89Eg.js";
|
|
|
4
4
|
import { c as v } from "./index.DQOqod3i.js";
|
|
5
5
|
import { forwardRef as bt, useState as tt, useRef as ft } from "react";
|
|
6
6
|
import { u as _t } from "./useBreakpoint.1txsny17.js";
|
|
7
|
-
import { DSInput as ht } from "../input.
|
|
8
|
-
import { D as vt } from "./Popover.
|
|
7
|
+
import { DSInput as ht } from "../input.yBU7wjmW.js";
|
|
8
|
+
import { D as vt } from "./Popover.BSL3AilG.js";
|
|
9
9
|
import { g as lt } from "./helpers.CexwVao7.js";
|
|
10
10
|
import '../assets/Slider.vnSU0ya0.css';const Tt = "ds-slider_root_3zq13_1", xt = "ds-slider_hint_3zq13_4", gt = "ds-slider_label-wrapper_3zq13_4", kt = "ds-slider_label-hint-input-wrapper_3zq13_7", Nt = "ds-slider_number-input_3zq13_10", St = "ds-slider_label-wrapper--hidden_3zq13_20", Dt = "ds-slider_label_3zq13_4", yt = "ds-slider_label--disabled_3zq13_55", It = "ds-slider_number-input--small_3zq13_84", qt = "ds-slider_min-max-label-wrapper_3zq13_89", zt = "ds-slider_min-max-label-wrapper--disabled_3zq13_103", Mt = "ds-slider_min-label_3zq13_108", Lt = "ds-slider_max-label_3zq13_112", Wt = "ds-slider_slider-wrapper_3zq13_116", wt = "ds-slider_slider_3zq13_116", Vt = "ds-slider_value-tooltip_3zq13_135", Ct = "ds-slider_proxy-thumb_3zq13_139", Pt = "ds-slider_proxy-thumb--disabled_3zq13_217", $t = "ds-slider_custom-track_3zq13_246", At = "ds-slider_custom-track--progress_3zq13_251", Et = "ds-slider_custom-track--runnable_3zq13_263", Rt = "ds-slider_custom-track--disabled_3zq13_277", Ft = "ds-slider_tick-wrapper_3zq13_297", Bt = "ds-slider_tick_3zq13_297", Ht = "ds-slider_value-tooltip--visible_3zq13_356", Ot = "ds-slider_value-tooltip--disabled_3zq13_359", s = {
|
|
11
11
|
root: Tt,
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
3
|
+
import { c as u } from "./index.DQOqod3i.js";
|
|
4
|
+
import { useCallback as I, useEffect as W, useRef as S } from "react";
|
|
5
|
+
import { g as i, r as j } from "./helpers.CexwVao7.js";
|
|
6
|
+
import { i as q } from "./is-animation-disabled.B-V_68K-.js";
|
|
7
|
+
import { t as H } from "./translate.nuU7uChI.js";
|
|
8
|
+
import { u as v } from "./useIsomorphicLayoutEffect.CnJ9AMFS.js";
|
|
9
|
+
import "./index.cKLI89Eg.js";
|
|
10
|
+
import { f as G } from "./AriaLiveRegions.utils.8ofDlHnN.js";
|
|
11
|
+
import { DSScroller as F } from "../scroller.CSSI5khP.js";
|
|
12
|
+
import { StepperStep as J } from "../step.C4gOI6c3.js";
|
|
13
|
+
import '../assets/Stepper.tXJl15yL.css';const _t = ["prev", "next"], L = 48, K = "ds-stepper_root_1d1si_1", Q = "ds-stepper_root--vertical_1d1si_12", U = "ds-stepper_scroller--centered_1d1si_17", X = "ds-stepper_scroller-button_1d1si_21", Y = "ds-stepper_list_1d1si_26", Z = "ds-stepper_list--center_1d1si_35", tt = "ds-stepper_list--vertical_1d1si_38", a = {
|
|
14
|
+
root: K,
|
|
15
|
+
rootVertical: Q,
|
|
16
|
+
scrollerCentered: U,
|
|
17
|
+
scrollerButton: X,
|
|
18
|
+
list: Y,
|
|
19
|
+
listCenter: Z,
|
|
20
|
+
listVertical: tt
|
|
21
|
+
}, gt = ["left", "center"], Et = ["horizontal", "vertical"], et = ({
|
|
22
|
+
aria: e,
|
|
23
|
+
steps: n
|
|
24
|
+
}) => {
|
|
25
|
+
if (!e || typeof e != "object" || Object.keys(e).length === 0 || !e["aria-label"] && !e["aria-labelledby"] || e["aria-label"]?.trim() === "" && e["aria-labelledby"]?.trim() === "")
|
|
26
|
+
throw new Error(i("DSStepper", 'A valid "aria-label" or "aria-labelledby" property is required. Ensure the "aria" prop is a non-empty object and includes either "aria-label" or "aria-labelledby" with a non-empty string value.'));
|
|
27
|
+
if (!Array.isArray(n))
|
|
28
|
+
throw new Error(i("DSStepper", j("steps", "DSStepper")));
|
|
29
|
+
if (n.length < 2)
|
|
30
|
+
throw new Error(i("DSStepper", "The steps array must contain at least two steps."));
|
|
31
|
+
n.forEach((t, s) => {
|
|
32
|
+
if (!t.label || t.label.trim() === "")
|
|
33
|
+
throw new Error(i("DSStepper", `The step at index ${s} is missing a non-empty label. Each step requires a valid label string.`));
|
|
34
|
+
if (t?.state === "current" && t?.disabled)
|
|
35
|
+
throw new Error(i("DSStepper", `The step at index ${s} has a current state but is disabled. Please remove the disabled property if this step is the current step.`));
|
|
36
|
+
});
|
|
37
|
+
}, rt = {
|
|
38
|
+
current: "Current step",
|
|
39
|
+
completed: "completed",
|
|
40
|
+
step: "Step",
|
|
41
|
+
of: "of"
|
|
42
|
+
}, ot = {
|
|
43
|
+
current: "Aktueller Schritt",
|
|
44
|
+
completed: "abgeschlossen",
|
|
45
|
+
step: "Schritt",
|
|
46
|
+
of: "von"
|
|
47
|
+
}, st = {
|
|
48
|
+
en: rt,
|
|
49
|
+
de: ot
|
|
50
|
+
}, nt = (e) => e.find((t) => t.state === "current") || e.findLast((t) => t.state) || e[0], x = (e) => e.findIndex((n) => n.state === "current"), lt = (e, n) => !!e && e === "completed" && !n, Tt = ({
|
|
51
|
+
aria: e,
|
|
52
|
+
className: n,
|
|
53
|
+
steps: t,
|
|
54
|
+
orientation: s = "horizontal",
|
|
55
|
+
alignment: h = "left",
|
|
56
|
+
lang: w = "en",
|
|
57
|
+
translations: y,
|
|
58
|
+
onStepChange: A,
|
|
59
|
+
...P
|
|
60
|
+
}) => {
|
|
61
|
+
process.env.NODE_ENV !== "production" && et({
|
|
62
|
+
aria: e,
|
|
63
|
+
steps: t
|
|
64
|
+
});
|
|
65
|
+
const p = H(y || st[w]), m = I((o) => {
|
|
66
|
+
G(o, "DSStepper");
|
|
67
|
+
}, []), b = I(() => {
|
|
68
|
+
const o = nt(t), r = `${p("current")}: ${t.indexOf(o) + 1} ${p("of")} ${t.length} - ${o.label}`;
|
|
69
|
+
m(r);
|
|
70
|
+
}, [t, p, m]);
|
|
71
|
+
W(() => {
|
|
72
|
+
b();
|
|
73
|
+
}, [t, b]);
|
|
74
|
+
const O = (o, r) => {
|
|
75
|
+
const {
|
|
76
|
+
state: l,
|
|
77
|
+
disabled: c
|
|
78
|
+
} = t[o];
|
|
79
|
+
lt(l, c) && (t[o].onClick?.(r), A(o));
|
|
80
|
+
}, M = u(a.root, {
|
|
81
|
+
[a.rootVertical]: s === "vertical"
|
|
82
|
+
}, n), B = u(a.list, {
|
|
83
|
+
[a.listVertical]: s === "vertical",
|
|
84
|
+
[a.listCenter]: s === "horizontal" && h === "center"
|
|
85
|
+
}), $ = u({
|
|
86
|
+
[a.scrollerCentered]: s === "horizontal" && h === "center"
|
|
87
|
+
}), _ = S([]), g = /* @__PURE__ */ d("ol", { className: B, children: t.map((o, r) => /* @__PURE__ */ d(J, { step: o, index: r, stepsCount: t.length, t: p, orientation: s, onStepClick: (l) => O(r, l), buttonRef: (l) => {
|
|
88
|
+
_.current[r] = l;
|
|
89
|
+
} }, r)) }), E = S(null), T = S(!1);
|
|
90
|
+
v(() => {
|
|
91
|
+
if (s !== "horizontal")
|
|
92
|
+
return;
|
|
93
|
+
const o = [
|
|
94
|
+
"16px 'STIHL Contraface Digital Text Regular'",
|
|
95
|
+
// text-medium - label default
|
|
96
|
+
"14px 'STIHL Contraface Digital Text Bold'",
|
|
97
|
+
// text-small-bold - number
|
|
98
|
+
"16px 'STIHL Contraface Digital Text Bold'",
|
|
99
|
+
// text-medium-bold - current label
|
|
100
|
+
"14px 'STIHL Contraface Digital Text Regular'"
|
|
101
|
+
// utility-small - number/hint base (regular variant for hint)
|
|
102
|
+
];
|
|
103
|
+
Promise.all(o.map((r) => document.fonts.load(r))).then(() => {
|
|
104
|
+
T.current = !0, x(t) !== -1 && C("instant");
|
|
105
|
+
}).catch((r) => {
|
|
106
|
+
throw new Error(i("DSStepper", `The component requires the fonts to be loaded: ${r}`));
|
|
107
|
+
});
|
|
108
|
+
}, [s]);
|
|
109
|
+
const C = (o = "smooth") => {
|
|
110
|
+
if (s !== "horizontal")
|
|
111
|
+
return;
|
|
112
|
+
const r = x(t);
|
|
113
|
+
if (r === -1)
|
|
114
|
+
return;
|
|
115
|
+
const l = _.current[r], c = E.current;
|
|
116
|
+
if (!l || !c)
|
|
117
|
+
return;
|
|
118
|
+
const R = l.getBoundingClientRect(), D = c.getBoundingClientRect();
|
|
119
|
+
if (R.left - L >= D.left && R.right + L <= D.right)
|
|
120
|
+
return;
|
|
121
|
+
const k = l.offsetLeft, z = l.offsetWidth, N = c.clientWidth;
|
|
122
|
+
let f = k - Math.max(0, (N - z) / 2);
|
|
123
|
+
const V = c.scrollWidth - N;
|
|
124
|
+
f = Math.min(Math.max(0, f), V), c.scrollTo({
|
|
125
|
+
left: f,
|
|
126
|
+
behavior: q() ? "instant" : o
|
|
127
|
+
});
|
|
128
|
+
};
|
|
129
|
+
return v(() => {
|
|
130
|
+
T.current && C("smooth");
|
|
131
|
+
}, [t, s]), /* @__PURE__ */ d("nav", { className: M, ...P, ...e, children: s === "horizontal" ? /* @__PURE__ */ d(F, { ref: E, className: a.scroller, scrollerClassName: $, scrollerButtonClassName: a.scrollerButton, children: g }) : g });
|
|
132
|
+
};
|
|
133
|
+
export {
|
|
134
|
+
Tt as D,
|
|
135
|
+
_t as S,
|
|
136
|
+
L as a,
|
|
137
|
+
gt as b,
|
|
138
|
+
Et as c,
|
|
139
|
+
rt as d,
|
|
140
|
+
ot as e,
|
|
141
|
+
st as f,
|
|
142
|
+
nt as g,
|
|
143
|
+
x as h,
|
|
144
|
+
lt as i,
|
|
145
|
+
et as v
|
|
146
|
+
};
|
|
@@ -3,7 +3,7 @@ import { jsxs as f, jsx as S } from "react/jsx-runtime";
|
|
|
3
3
|
import { d as _ } from "./index.cKLI89Eg.js";
|
|
4
4
|
import { c as p } from "./index.DQOqod3i.js";
|
|
5
5
|
import "react";
|
|
6
|
-
import { D as E } from "./Icon.
|
|
6
|
+
import { D as E } from "./Icon.BoxUJQDT.js";
|
|
7
7
|
import '../assets/SystemFeedback.PKzqnXUe.css';const k = "ds-system-feedback_root_1dkn4_1", x = {
|
|
8
8
|
root: k
|
|
9
9
|
}, h = ["success", "error", "warning"], D = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as E, jsxs as M } from "react/jsx-runtime";
|
|
3
3
|
import { d as q } from "./index.cKLI89Eg.js";
|
|
4
4
|
import { useState as C } from "react";
|
|
5
|
-
import { TabList as V } from "../tablist.
|
|
5
|
+
import { TabList as V } from "../tablist.DLFJGmYV.js";
|
|
6
6
|
import { TabPane as $ } from "../tabpane.7vMXUKFX.js";
|
|
7
7
|
import { g as j } from "./TabPane.utils.DG16Y2uD.js";
|
|
8
8
|
import { g as p, r as B } from "./helpers.CexwVao7.js";
|
|
@@ -6,8 +6,8 @@ import { g as I, p as X } from "./helpers.CexwVao7.js";
|
|
|
6
6
|
import { u as Z } from "./useBreakpoint.1txsny17.js";
|
|
7
7
|
import "./index.cKLI89Eg.js";
|
|
8
8
|
import { Asterisk as me } from "../asterisk.Dwtdwpkq.js";
|
|
9
|
-
import { D as xe } from "./Popover.
|
|
10
|
-
import { D as ve } from "./SystemFeedback.
|
|
9
|
+
import { D as xe } from "./Popover.BSL3AilG.js";
|
|
10
|
+
import { D as ve } from "./SystemFeedback.C2XFC5WN.js";
|
|
11
11
|
import '../assets/Textarea.BIgA9_fl.css';const Se = "ds-textarea_textarea_19e2t_1", Ce = "ds-textarea_textarea--small_19e2t_9", we = "ds-textarea_textarea--invalid_19e2t_121", ye = "ds-textarea_textarea--resize-auto_19e2t_145", De = "ds-textarea_root_19e2t_155", Ae = "ds-textarea_hint_19e2t_155", Te = "ds-textarea_label-wrapper_19e2t_155", Ie = "ds-textarea_label_19e2t_155", Ne = "ds-textarea_label--disabled_19e2t_295", ke = "ds-textarea_label-wrapper--hidden_19e2t_307", Re = "ds-textarea_feedback_19e2t_335", Ee = "ds-textarea_footer_19e2t_339", He = "ds-textarea_footer--has-system-feedback_19e2t_344", ge = "ds-textarea_char-count_19e2t_353", $e = "ds-textarea_char-count-announcer_19e2t_366", a = {
|
|
12
12
|
textarea: Se,
|
|
13
13
|
textareaSmall: Ce,
|