@stihl-design-system/components 1.0.0-RC.44 → 1.0.0-RC.45
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.fQnuIgvf.js → accordion.MzP6R77w.js} +2 -2
- package/{actionbutton.CrKiuo82.js → actionbutton.G5W7UVFl.js} +2 -2
- package/{actioncard.WFXhVqOa.js → actioncard.BwquHtM_.js} +1 -1
- package/{actionlink.Df17YKFt.js → actionlink.DquMiuMX.js} +2 -2
- package/assets/ActionCard.BG8w8xUC.css +1 -0
- package/assets/Dialog.BKwWy1g2.css +1 -0
- package/assets/Drawer.BU-fi5Hk.css +1 -0
- package/assets/LinkButton.CxJvjEY5.css +1 -0
- package/assets/LinkCard.DkQoQJxx.css +1 -0
- package/assets/NavigationTabList.DYjNT2Di.css +1 -0
- package/assets/Pagination.DZ1yCAMR.css +1 -0
- package/assets/buttonround.CMrJRIeW.css +1 -0
- package/assets/link.Dcsio57m.css +1 -0
- package/{banner.Zxe9epVx.js → banner.XeTbC8mq.js} +1 -1
- package/{breadcrumb.FfS9gDhB.js → breadcrumb.BOz3Hst7.js} +3 -3
- package/{button.Bq_b-jF3.js → button.I5z8VEXa.js} +5 -4
- package/buttonround.BX_81KOF.js +101 -0
- package/{checkbox.DiIxW8xI.js → checkbox.CcEypLD0.js} +3 -3
- package/{checkboxgroup.CN0WCDIo.js → checkboxgroup.15fvJ2SQ.js} +2 -2
- package/{chip.C9GLR8lU.js → chip.DZP-2LVl.js} +2 -2
- package/{chipgroup.DEMaFBAV.js → chipgroup.Ckvmby1Q.js} +1 -1
- package/chunks/{Accordion.CHgxTFzp.js → Accordion.Drq0YoeJ.js} +1 -1
- package/chunks/{ActionButton.CLeOd9rU.js → ActionButton.CCI5IUFy.js} +1 -1
- package/chunks/ActionCard.DJSGkwVG.js +227 -0
- package/chunks/{ActionLink.BsBKNYu5.js → ActionLink.BrJB7T0A.js} +1 -1
- package/chunks/{Breadcrumb.Dz3JQ2Vx.js → Breadcrumb.CNABp45n.js} +2 -2
- package/chunks/Button.D8U6Bs7T.js +160 -0
- package/chunks/{Checkbox.B3g2P15v.js → Checkbox.91fwuJ-0.js} +2 -2
- package/chunks/{CheckboxGroup.Bg9WSL5B.js → CheckboxGroup.DlZcoyo_.js} +2 -2
- package/chunks/{Chip.CfxdI4_r.js → Chip.wHEr-saO.js} +1 -1
- package/chunks/{CustomReactSelect.DuAr_i4b.js → CustomReactSelect.DHwRSrva.js} +4 -4
- package/chunks/Dialog.DNrQmu4n.js +102 -0
- package/chunks/Drawer.DaiiAoa8.js +107 -0
- package/chunks/{Fieldset.DdYeI2CZ.js → Fieldset.BB4NftRU.js} +2 -2
- package/chunks/{Icon.BoywkLCM.js → Icon.DCdL1Vnp.js} +1 -1
- package/chunks/{InputFile.CR8ucopi.js → InputFile.C-m2Hp0n.js} +5 -5
- package/chunks/{InputNumber.BFZFmfye.js → InputNumber.DOrbq0Hf.js} +3 -3
- package/chunks/{InputPassword.C311ncrv.js → InputPassword.BrQLXv_R.js} +3 -3
- package/chunks/{InputSearch.BxDshauv.js → InputSearch.DsT4ESbN.js} +3 -3
- package/chunks/LinkButton.CNLxmfVF.js +150 -0
- package/chunks/LinkCard.CsK31XXo.js +197 -0
- package/chunks/NavigationTabList.9r9_yTmR.js +68 -0
- package/chunks/{NavigationTabs.B57dlMSM.js → NavigationTabs.CCFAm8-N.js} +1 -1
- package/chunks/{Notification.C6oDyXgu.js → Notification.BlyUQinT.js} +2 -2
- package/chunks/Pagination.Dl8CU-yY.js +247 -0
- package/chunks/{Popover.BmpyqKuQ.js → Popover.BBT_kVGM.js} +1 -1
- package/chunks/{RadioGroup.DkBkatv7.js → RadioGroup.BWe0nG6N.js} +1 -1
- package/chunks/{Select.Tt9kT7fQ.js → Select.fgSB8mUs.js} +3 -3
- package/chunks/Slider.8H5oki70.js +307 -0
- package/chunks/{Stepper.BnrFN6cJ.js → Stepper.UvgTZCCb.js} +2 -2
- package/chunks/{SystemFeedback.D4aWwoC8.js → SystemFeedback.CZhoSxrC.js} +1 -1
- package/chunks/{Tabs.kCft3oEd.js → Tabs.DtfpA30P.js} +1 -1
- package/chunks/{Textarea.DDcx_Pdr.js → Textarea.B-Ii-p0C.js} +2 -2
- package/chunks/{Toast.DddHXsvZ.js → Toast.B7_VJE8V.js} +2 -2
- package/chunks/heart-filled.CmO7eae5.js +10 -0
- package/{combobox.B-BIvd5K.js → combobox.C2DBgO0t.js} +1 -1
- package/components/Accordion/Accordion.d.ts +2 -2
- package/components/ActionCard/ActionCard.d.ts +11 -4
- package/components/Banner/Banner.d.ts +1 -1
- package/components/Breadcrumb/Breadcrumb.d.ts +4 -1
- package/components/ButtonRound/ButtonRound.d.ts +14 -7
- package/components/ButtonRound/ButtonRound.utils.d.ts +3 -1
- package/components/FloatingActionButton/FloatingActionButton.d.ts +8 -5
- package/components/LinkCard/LinkCard.d.ts +13 -3
- package/components/MegaMenu/MegaMenu.d.ts +1 -1
- package/components/Pagination/Pagination.d.ts +51 -0
- package/components/Pagination/Pagination.responsive.test.d.ts +1 -0
- package/components/Pagination/Pagination.test.d.ts +1 -0
- package/components/Pagination/Pagination.utils.d.ts +59 -0
- package/components/Pagination/Pagination.utils.test.d.ts +1 -0
- package/components/Tooltip/Tooltip.d.ts +1 -1
- package/{customreactselect.B7p1pKdD.js → customreactselect.Dle5ReLL.js} +5 -5
- package/{dialog.BqLpjUB7.js → dialog.Br6FeS8M.js} +2 -2
- package/{drawer.Cd-nCvZc.js → drawer.Dyjx6fy3.js} +2 -2
- package/{fieldset.CZZsUwkL.js → fieldset.D6sz1Wn2.js} +3 -3
- package/{filelist.BhBVr4dj.js → filelist.0CUvj_hg.js} +4 -4
- package/{filepreview.BTWX71Xh.js → filepreview.DfYhhi7K.js} +1 -1
- package/{flag.B0fg5_Ly.js → flag.B61fRxrP.js} +1 -1
- package/{floatingactionbutton.C97oLCcd.js → floatingactionbutton.C-V33tkz.js} +2 -2
- package/{icon.DfDzyo8I.js → icon.pia3k1bW.js} +1 -1
- package/index.d.ts +7 -0
- package/index.es.js +231 -218
- package/{input.DIJfEjWf.js → input.CNC3QIQR.js} +4 -4
- package/{inputfile.h6E4CGVo.js → inputfile.CN9IBCM5.js} +6 -6
- package/{inputnumber.mm_Irbl8.js → inputnumber.DIccXoqM.js} +4 -4
- package/{inputpassword.C2lyKMkw.js → inputpassword.BWIKqwcK.js} +4 -4
- package/{inputsearch.BjkPPx6s.js → inputsearch.BQVA1P3t.js} +4 -4
- package/link.DFt6ae6h.js +81 -0
- package/{linkbutton.Brcp-b5r.js → linkbutton.DSzhpA7y.js} +3 -3
- package/{linkcard.COvLNYk7.js → linkcard.Azap4eIT.js} +4 -4
- package/{navigationtablist.BBeiLPse.js → navigationtablist.B0QFyk6c.js} +2 -2
- package/{navigationtabs.DzPsYusL.js → navigationtabs.drPy054A.js} +2 -2
- package/{notification.CliKozt4.js → notification.DT8ZQWy-.js} +3 -3
- package/{optioncheckbox.BOfgK3U_.js → optioncheckbox.BO9lhnF3.js} +1 -1
- package/package.json +1 -1
- package/pagination.DqHkkeMR.js +14 -0
- package/pagination.d.ts +2 -0
- package/partials/index.js +24 -18
- package/partials/lib/partials.d.ts +1 -1
- package/{popover.ChNhlQVw.js → popover.HlTN79us.js} +2 -2
- package/product-card-example-5.webp +0 -0
- package/product-card-example-6.webp +0 -0
- package/product-card-example-7.webp +0 -0
- package/{progressindicator.DIzH179H.js → progressindicator.DdaSeRcV.js} +1 -1
- package/{radiogroup.DL5scGbv.js → radiogroup.CtkyrkVj.js} +2 -2
- package/{scroller.DwhsKecL.js → scroller.BZy0pXNL.js} +1 -1
- package/{select.mbkkptY-.js → select.BSRwHZl9.js} +4 -4
- package/{skiptocontent.CAXMZlhM.js → skiptocontent.D-qA8MV6.js} +1 -1
- package/{slider.DvrNqhCC.js → slider.jgy1gPS-.js} +3 -3
- package/{spinner.CJmvEaCu.js → spinner.CioXs_gr.js} +1 -1
- package/{step.B-afaoZI.js → step.C8Um5fyx.js} +2 -2
- package/{stepper.B0euF2om.js → stepper.ChHYe3pv.js} +3 -3
- package/{switch.BadzT87Z.js → switch.BWByas7M.js} +2 -2
- package/{systemfeedback.BfGF0ENk.js → systemfeedback.Dr99Uwoi.js} +2 -2
- package/{tablist.CLKzkkTc.js → tablist.DuaTT6zK.js} +3 -3
- package/{tabs.ClFPZyaL.js → tabs.BGmxVK_3.js} +2 -2
- package/{textarea.B06ZGH_0.js → textarea.BoxcJ2tx.js} +3 -3
- package/{toast.uarxRSg4.js → toast.BJs2VWI4.js} +3 -3
- package/{toastmanager.ClwydHnH.js → toastmanager.Bh9XSJty.js} +1 -1
- package/types/icon-types.d.ts +1 -1
- package/assets/ActionCard.C85bSGRa.css +0 -1
- package/assets/Dialog.DyiHUgTp.css +0 -1
- package/assets/Drawer.UugEajR2.css +0 -1
- package/assets/LinkButton.BEbmxP7h.css +0 -1
- package/assets/LinkCard.z1Yjue7-.css +0 -1
- package/assets/NavigationTabList.CzAiHz7G.css +0 -1
- package/assets/buttonround.BTC-HthI.css +0 -1
- package/assets/link.BemYqm4d.css +0 -1
- package/buttonround.C2Tbq4wh.js +0 -96
- package/chunks/ActionCard.oi3u27DL.js +0 -242
- package/chunks/Button.P9uWeVnl.js +0 -139
- package/chunks/Dialog.C8pnDioL.js +0 -102
- package/chunks/Drawer.wTQvINDy.js +0 -107
- package/chunks/LinkButton.D20xLcuG.js +0 -140
- package/chunks/LinkCard.CXJLlBi2.js +0 -193
- package/chunks/NavigationTabList.CUFceGFf.js +0 -68
- package/chunks/Slider.XqqBxGnd.js +0 -306
- package/link.Cej-vl_K.js +0 -81
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as b, jsxs as re } from "react/jsx-runtime";
|
|
3
|
+
import { d as ft } from "./index.cKLI89Eg.js";
|
|
4
|
+
import { c as v } from "./index.DQOqod3i.js";
|
|
5
|
+
import { forwardRef as _t, useState as lt, useRef as ht } from "react";
|
|
6
|
+
import { u as vt } from "./useBreakpoint.1txsny17.js";
|
|
7
|
+
import { DSInput as Tt } from "../input.CNC3QIQR.js";
|
|
8
|
+
import { D as xt } from "./Popover.BBT_kVGM.js";
|
|
9
|
+
import { g as st } from "./helpers.CexwVao7.js";
|
|
10
|
+
import '../assets/Slider.vnSU0ya0.css';const gt = "ds-slider_root_3zq13_1", kt = "ds-slider_hint_3zq13_4", Nt = "ds-slider_label-wrapper_3zq13_4", St = "ds-slider_label-hint-input-wrapper_3zq13_7", yt = "ds-slider_number-input_3zq13_10", Dt = "ds-slider_label-wrapper--hidden_3zq13_20", It = "ds-slider_label_3zq13_4", qt = "ds-slider_label--disabled_3zq13_55", zt = "ds-slider_number-input--small_3zq13_84", Lt = "ds-slider_min-max-label-wrapper_3zq13_89", Mt = "ds-slider_min-max-label-wrapper--disabled_3zq13_103", Wt = "ds-slider_min-label_3zq13_108", wt = "ds-slider_max-label_3zq13_112", Vt = "ds-slider_slider-wrapper_3zq13_116", Ct = "ds-slider_slider_3zq13_116", $t = "ds-slider_value-tooltip_3zq13_135", Pt = "ds-slider_proxy-thumb_3zq13_139", At = "ds-slider_proxy-thumb--disabled_3zq13_217", Et = "ds-slider_custom-track_3zq13_246", Rt = "ds-slider_custom-track--progress_3zq13_251", Bt = "ds-slider_custom-track--runnable_3zq13_263", Ft = "ds-slider_custom-track--disabled_3zq13_277", Ht = "ds-slider_tick-wrapper_3zq13_297", Ot = "ds-slider_tick_3zq13_297", Kt = "ds-slider_value-tooltip--visible_3zq13_356", jt = "ds-slider_value-tooltip--disabled_3zq13_359", s = {
|
|
11
|
+
root: gt,
|
|
12
|
+
hint: kt,
|
|
13
|
+
labelWrapper: Nt,
|
|
14
|
+
labelHintInputWrapper: St,
|
|
15
|
+
numberInput: yt,
|
|
16
|
+
labelWrapperHidden: Dt,
|
|
17
|
+
label: It,
|
|
18
|
+
labelDisabled: qt,
|
|
19
|
+
numberInputSmall: zt,
|
|
20
|
+
minMaxLabelWrapper: Lt,
|
|
21
|
+
minMaxLabelWrapperDisabled: Mt,
|
|
22
|
+
minLabel: Wt,
|
|
23
|
+
maxLabel: wt,
|
|
24
|
+
sliderWrapper: Vt,
|
|
25
|
+
slider: Ct,
|
|
26
|
+
valueTooltip: $t,
|
|
27
|
+
proxyThumb: Pt,
|
|
28
|
+
proxyThumbDisabled: At,
|
|
29
|
+
customTrack: Et,
|
|
30
|
+
customTrackProgress: Rt,
|
|
31
|
+
customTrackRunnable: Bt,
|
|
32
|
+
customTrackDisabled: Ft,
|
|
33
|
+
tickWrapper: Ht,
|
|
34
|
+
tick: Ot,
|
|
35
|
+
valueTooltipVisible: Kt,
|
|
36
|
+
valueTooltipDisabled: jt
|
|
37
|
+
}, Ut = 11, at = 4, it = (p) => p.toString().length, Gt = (p, r, e) => {
|
|
38
|
+
if (r === 0)
|
|
39
|
+
return !0;
|
|
40
|
+
const u = 1e-10, n = (p - e) / r;
|
|
41
|
+
return Math.abs(Math.round(n) - n) < u;
|
|
42
|
+
}, Xt = (p, r, e, u) => {
|
|
43
|
+
const n = parseFloat(r), f = e, o = Math.round((p - f) / n);
|
|
44
|
+
let c = f + o * n;
|
|
45
|
+
c = Math.min(Math.max(c, e), u);
|
|
46
|
+
const x = n.toString().split(".")[1]?.length || 0;
|
|
47
|
+
return parseFloat(c.toFixed(x));
|
|
48
|
+
}, Jt = (p, r, e) => {
|
|
49
|
+
const u = (p - r) / (e - r) * 100, n = `calc(-0.24 * ${u}px + 10px)`;
|
|
50
|
+
return `calc(${u}% + ${n})`;
|
|
51
|
+
}, Qt = ({
|
|
52
|
+
id: p,
|
|
53
|
+
label: r
|
|
54
|
+
}) => {
|
|
55
|
+
if (!p)
|
|
56
|
+
throw new Error(st("DSSlider", 'A unique "id" prop is required. Please add a unique "id" prop to the DSSlider component.'));
|
|
57
|
+
if (!r)
|
|
58
|
+
throw new Error(st("DSSlider", `A label is always required for a11y reasons. Please add a descriptive "label" prop to the DSSlider component. If you don't want to display a label, set hideLabel={true}.`));
|
|
59
|
+
}, Yt = _t((p, r) => {
|
|
60
|
+
const e = ft.c(165);
|
|
61
|
+
let u, n, f, o, c, x, m, g, y, D, Q, Y, Z, ee, te, le, se, k;
|
|
62
|
+
e[0] !== p ? ({
|
|
63
|
+
id: o,
|
|
64
|
+
label: c,
|
|
65
|
+
className: u,
|
|
66
|
+
defaultValue: n,
|
|
67
|
+
disabled: Q,
|
|
68
|
+
hideLabel: Y,
|
|
69
|
+
hideNumberInput: Z,
|
|
70
|
+
hint: f,
|
|
71
|
+
isTooltipAlwaysVisible: ee,
|
|
72
|
+
max: te,
|
|
73
|
+
min: le,
|
|
74
|
+
numberInputProps: x,
|
|
75
|
+
popoverContent: g,
|
|
76
|
+
popoverInfoButtonProps: y,
|
|
77
|
+
step: se,
|
|
78
|
+
value: k,
|
|
79
|
+
onChange: m,
|
|
80
|
+
...D
|
|
81
|
+
} = p, e[0] = p, e[1] = u, e[2] = n, e[3] = f, e[4] = o, e[5] = c, e[6] = x, e[7] = m, e[8] = g, e[9] = y, e[10] = D, e[11] = Q, e[12] = Y, e[13] = Z, e[14] = ee, e[15] = te, e[16] = le, e[17] = se, e[18] = k) : (u = e[1], n = e[2], f = e[3], o = e[4], c = e[5], x = e[6], m = e[7], g = e[8], y = e[9], D = e[10], Q = e[11], Y = e[12], Z = e[13], ee = e[14], te = e[15], le = e[16], se = e[17], k = e[18]);
|
|
82
|
+
const a = Q === void 0 ? !1 : Q, rt = Y === void 0 ? !1 : Y, I = Z === void 0 ? !1 : Z, We = ee === void 0 ? !1 : ee, nt = te === void 0 ? 100 : te, ot = le === void 0 ? 0 : le, ae = se === void 0 ? 1 : se;
|
|
83
|
+
process.env.NODE_ENV !== "production" && Qt({
|
|
84
|
+
id: o,
|
|
85
|
+
label: c
|
|
86
|
+
});
|
|
87
|
+
const i = Number(nt), t = Number(ot), d = Number(ae), q = vt(rt), ne = `${o}-label`, we = `${o}-number-input`, oe = `${o}-hint`, ct = f ? ` ${oe}` : "";
|
|
88
|
+
let ce;
|
|
89
|
+
e[19] !== n || e[20] !== t || e[21] !== k ? (ce = k || n || t.toString() || "0", e[19] = n, e[20] = t, e[21] = k, e[22] = ce) : ce = e[22];
|
|
90
|
+
const [z, de] = lt(ce), [T, pe] = lt(k || n || t || 0), dt = ht(null);
|
|
91
|
+
let ue;
|
|
92
|
+
e[23] !== r ? (ue = (l) => {
|
|
93
|
+
dt.current = l, typeof r == "function" ? r(l) : r && (r.current = l);
|
|
94
|
+
}, e[23] = r, e[24] = ue) : ue = e[24];
|
|
95
|
+
const Ve = ue;
|
|
96
|
+
let me;
|
|
97
|
+
e[25] !== x ? (me = x || {}, e[25] = x, e[26] = me) : me = e[26];
|
|
98
|
+
const {
|
|
99
|
+
size: tt,
|
|
100
|
+
suffix: Ce
|
|
101
|
+
} = me, be = tt === void 0 ? "medium" : tt;
|
|
102
|
+
let fe;
|
|
103
|
+
e[27] !== m ? (fe = (l) => {
|
|
104
|
+
const _ = parseFloat(l.target.value);
|
|
105
|
+
pe(_), de(l.target.value), m && m(l);
|
|
106
|
+
}, e[27] = m, e[28] = fe) : fe = e[28];
|
|
107
|
+
const $e = fe;
|
|
108
|
+
let _e;
|
|
109
|
+
e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_e = (l) => {
|
|
110
|
+
const _ = l.target.value;
|
|
111
|
+
if (de(_), /^-?\d+(\.\d+)?$/.test(_)) {
|
|
112
|
+
const h = parseFloat(_);
|
|
113
|
+
Number.isNaN(h) || pe(h);
|
|
114
|
+
}
|
|
115
|
+
}, e[29] = _e) : _e = e[29];
|
|
116
|
+
const pt = _e;
|
|
117
|
+
let N;
|
|
118
|
+
if (e[30] !== z || e[31] !== m || e[32] !== i || e[33] !== t || e[34] !== ae) {
|
|
119
|
+
N = (_) => {
|
|
120
|
+
const ie = parseFloat(z);
|
|
121
|
+
if (Number.isNaN(ie)) {
|
|
122
|
+
l(_);
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
let h = Math.min(Math.max(ie, t), i);
|
|
126
|
+
Gt(h, parseFloat(ae), t) || (h = Xt(h, ae, t, i)), de(h.toString()), pe(h), m && m(_);
|
|
127
|
+
};
|
|
128
|
+
const l = (_) => {
|
|
129
|
+
de(t.toString()), pe(t), m && m(_);
|
|
130
|
+
};
|
|
131
|
+
e[30] = z, e[31] = m, e[32] = i, e[33] = t, e[34] = ae, e[35] = N;
|
|
132
|
+
} else
|
|
133
|
+
N = e[35];
|
|
134
|
+
const L = (d === 0 ? !1 : (i - t) / d <= Ut) && (i - t) / d || 0;
|
|
135
|
+
let he;
|
|
136
|
+
if (e[36] !== i || e[37] !== t || e[38] !== d || e[39] !== L) {
|
|
137
|
+
let l;
|
|
138
|
+
e[41] !== i || e[42] !== t || e[43] !== d ? (l = (_, ie) => {
|
|
139
|
+
const h = t + ie * d, bt = Jt(h, t, i);
|
|
140
|
+
return /* @__PURE__ */ b("span", { className: s.tick, style: {
|
|
141
|
+
left: bt
|
|
142
|
+
} }, h);
|
|
143
|
+
}, e[41] = i, e[42] = t, e[43] = d, e[44] = l) : l = e[44], he = Array.from({
|
|
144
|
+
length: L + 1
|
|
145
|
+
}, l), e[36] = i, e[37] = t, e[38] = d, e[39] = L, e[40] = he;
|
|
146
|
+
} else
|
|
147
|
+
he = e[40];
|
|
148
|
+
const Pe = he;
|
|
149
|
+
let ve;
|
|
150
|
+
e[45] !== i || e[46] !== t || e[47] !== T ? (ve = () => {
|
|
151
|
+
if (t === i)
|
|
152
|
+
throw new Error("Min and max values cannot be the same.");
|
|
153
|
+
const l = (T - t) / (i - t) * 100;
|
|
154
|
+
return Math.max(0, Math.min(l, 100));
|
|
155
|
+
}, e[45] = i, e[46] = t, e[47] = T, e[48] = ve) : ve = e[48];
|
|
156
|
+
const S = ve;
|
|
157
|
+
let Te;
|
|
158
|
+
e[49] !== S ? (Te = () => {
|
|
159
|
+
const l = S();
|
|
160
|
+
return l < 50 ? `calc(${l}% + 4px)` : `calc(${l}% - 4px)`;
|
|
161
|
+
}, e[49] = S, e[50] = Te) : Te = e[50];
|
|
162
|
+
const ut = Te;
|
|
163
|
+
let xe;
|
|
164
|
+
e[51] !== S ? (xe = () => {
|
|
165
|
+
const l = 100 - S();
|
|
166
|
+
return l < 50 ? `calc(${l}% + 4px)` : `calc(${l}% - 4px)`;
|
|
167
|
+
}, e[51] = S, e[52] = xe) : xe = e[52];
|
|
168
|
+
const mt = xe;
|
|
169
|
+
let ge;
|
|
170
|
+
e[53] !== u ? (ge = v(s.slider, u), e[53] = u, e[54] = ge) : ge = e[54];
|
|
171
|
+
const Ae = ge;
|
|
172
|
+
let ke;
|
|
173
|
+
e[55] !== a ? (ke = v(s.label, {
|
|
174
|
+
[s.labelDisabled]: a
|
|
175
|
+
}), e[55] = a, e[56] = ke) : ke = e[56];
|
|
176
|
+
const Ee = ke;
|
|
177
|
+
let Ne;
|
|
178
|
+
e[57] !== q ? (Ne = v(s.labelWrapper, {
|
|
179
|
+
[s.labelWrapperHidden]: q
|
|
180
|
+
}), e[57] = q, e[58] = Ne) : Ne = e[58];
|
|
181
|
+
const Re = Ne, Be = be === "small";
|
|
182
|
+
let Se;
|
|
183
|
+
e[59] !== Be ? (Se = v(s.numberInput, {
|
|
184
|
+
[s.numberInputSmall]: Be
|
|
185
|
+
}), e[59] = Be, e[60] = Se) : Se = e[60];
|
|
186
|
+
const Fe = Se;
|
|
187
|
+
let ye;
|
|
188
|
+
e[61] !== a ? (ye = v(s.minMaxLabelWrapper, {
|
|
189
|
+
[s.minMaxLabelWrapperDisabled]: a
|
|
190
|
+
}), e[61] = a, e[62] = ye) : ye = e[62];
|
|
191
|
+
const He = ye;
|
|
192
|
+
let De;
|
|
193
|
+
e[63] !== a ? (De = v(s.customTrack, s.customTrackProgress, {
|
|
194
|
+
[s.customTrackDisabled]: a
|
|
195
|
+
}), e[63] = a, e[64] = De) : De = e[64];
|
|
196
|
+
const Oe = De;
|
|
197
|
+
let Ie;
|
|
198
|
+
e[65] !== a ? (Ie = v(s.customTrack, s.customTrackRunnable, {
|
|
199
|
+
[s.customTrackDisabled]: a
|
|
200
|
+
}), e[65] = a, e[66] = Ie) : Ie = e[66];
|
|
201
|
+
const Ke = Ie;
|
|
202
|
+
let qe;
|
|
203
|
+
e[67] !== a ? (qe = v(s.proxyThumb, {
|
|
204
|
+
[s.proxyThumbDisabled]: a
|
|
205
|
+
}), e[67] = a, e[68] = qe) : qe = e[68];
|
|
206
|
+
const je = qe;
|
|
207
|
+
let ze;
|
|
208
|
+
e[69] !== a || e[70] !== We ? (ze = v(s.valueTooltip, {
|
|
209
|
+
[s.valueTooltipVisible]: We,
|
|
210
|
+
[s.valueTooltipDisabled]: a
|
|
211
|
+
}), e[69] = a, e[70] = We, e[71] = ze) : ze = e[71];
|
|
212
|
+
const Ue = ze;
|
|
213
|
+
let M;
|
|
214
|
+
e[72] !== o || e[73] !== c || e[74] !== Ee || e[75] !== ne ? (M = /* @__PURE__ */ b("label", { className: Ee, htmlFor: o, id: ne, children: c }), e[72] = o, e[73] = c, e[74] = Ee, e[75] = ne, e[76] = M) : M = e[76];
|
|
215
|
+
let W;
|
|
216
|
+
e[77] !== q || e[78] !== g || e[79] !== y ? (W = g && !q && /* @__PURE__ */ b(xt, { placement: "top", defaultAnchorButtonProps: y, children: g }), e[77] = q, e[78] = g, e[79] = y, e[80] = W) : W = e[80];
|
|
217
|
+
let w;
|
|
218
|
+
e[81] !== Re || e[82] !== M || e[83] !== W ? (w = /* @__PURE__ */ re("div", { className: Re, children: [
|
|
219
|
+
M,
|
|
220
|
+
W
|
|
221
|
+
] }), e[81] = Re, e[82] = M, e[83] = W, e[84] = w) : w = e[84];
|
|
222
|
+
let V;
|
|
223
|
+
e[85] !== f || e[86] !== oe ? (V = f && /* @__PURE__ */ b("div", { className: s.hint, id: oe, children: f }), e[85] = f, e[86] = oe, e[87] = V) : V = e[87];
|
|
224
|
+
let C;
|
|
225
|
+
e[88] !== a || e[89] !== N || e[90] !== I || e[91] !== we || e[92] !== z || e[93] !== c || e[94] !== Fe || e[95] !== be || e[96] !== Ce || e[97] !== i || e[98] !== t || e[99] !== d ? (C = !I && /* @__PURE__ */ b(Tt, { id: we, className: Fe, type: "number", min: t, max: i, step: d, inputMode: "decimal", autoComplete: "off", disabled: a, hideLabel: !0, value: z, onChange: pt, onBlur: N, onKeyDown: (l) => {
|
|
226
|
+
l.key === "Enter" && (l.preventDefault(), N(l));
|
|
227
|
+
}, label: c, size: be, suffix: Ce }), e[88] = a, e[89] = N, e[90] = I, e[91] = we, e[92] = z, e[93] = c, e[94] = Fe, e[95] = be, e[96] = Ce, e[97] = i, e[98] = t, e[99] = d, e[100] = C) : C = e[100];
|
|
228
|
+
let $;
|
|
229
|
+
e[101] !== w || e[102] !== V || e[103] !== C ? ($ = /* @__PURE__ */ re("div", { className: s.labelHintInputWrapper, children: [
|
|
230
|
+
w,
|
|
231
|
+
V,
|
|
232
|
+
C
|
|
233
|
+
] }), e[101] = w, e[102] = V, e[103] = C, e[104] = $) : $ = e[104];
|
|
234
|
+
const Ge = it(t) < at;
|
|
235
|
+
let P;
|
|
236
|
+
e[105] !== Ge ? (P = v({
|
|
237
|
+
[s.minLabel]: Ge
|
|
238
|
+
}), e[105] = Ge, e[106] = P) : P = e[106];
|
|
239
|
+
let A;
|
|
240
|
+
e[107] !== t || e[108] !== P ? (A = /* @__PURE__ */ b("div", { className: P, children: t }), e[107] = t, e[108] = P, e[109] = A) : A = e[109];
|
|
241
|
+
const Xe = it(i) < at;
|
|
242
|
+
let E;
|
|
243
|
+
e[110] !== Xe ? (E = v({
|
|
244
|
+
[s.maxLabel]: Xe
|
|
245
|
+
}), e[110] = Xe, e[111] = E) : E = e[111];
|
|
246
|
+
let R;
|
|
247
|
+
e[112] !== i || e[113] !== E ? (R = /* @__PURE__ */ b("div", { className: E, children: i }), e[112] = i, e[113] = E, e[114] = R) : R = e[114];
|
|
248
|
+
let B;
|
|
249
|
+
e[115] !== He || e[116] !== A || e[117] !== R ? (B = /* @__PURE__ */ re("div", { className: He, children: [
|
|
250
|
+
A,
|
|
251
|
+
R
|
|
252
|
+
] }), e[115] = He, e[116] = A, e[117] = R, e[118] = B) : B = e[118];
|
|
253
|
+
const Je = `${S()}`;
|
|
254
|
+
let Le;
|
|
255
|
+
e[119] !== Je ? (Le = {
|
|
256
|
+
"--ds-input-slider-thumb-position": Je
|
|
257
|
+
}, e[119] = Je, e[120] = Le) : Le = e[120];
|
|
258
|
+
const Qe = Le, Ye = ut();
|
|
259
|
+
let F;
|
|
260
|
+
e[121] !== Ye ? (F = {
|
|
261
|
+
width: Ye
|
|
262
|
+
}, e[121] = Ye, e[122] = F) : F = e[122];
|
|
263
|
+
let H;
|
|
264
|
+
e[123] !== Oe || e[124] !== F ? (H = /* @__PURE__ */ b("div", { className: Oe, style: F }), e[123] = Oe, e[124] = F, e[125] = H) : H = e[125];
|
|
265
|
+
const Ze = mt();
|
|
266
|
+
let O;
|
|
267
|
+
e[126] !== Ze ? (O = {
|
|
268
|
+
width: Ze
|
|
269
|
+
}, e[126] = Ze, e[127] = O) : O = e[127];
|
|
270
|
+
let K;
|
|
271
|
+
e[128] !== Ke || e[129] !== O ? (K = /* @__PURE__ */ b("div", { className: Ke, style: O }), e[128] = Ke, e[129] = O, e[130] = K) : K = e[130];
|
|
272
|
+
const et = `${ne}${ct}`;
|
|
273
|
+
let j;
|
|
274
|
+
e[131] !== a || e[132] !== Ve || e[133] !== $e || e[134] !== o || e[135] !== i || e[136] !== t || e[137] !== d || e[138] !== D || e[139] !== Ae || e[140] !== T || e[141] !== et ? (j = /* @__PURE__ */ b("input", { ...D, id: o, type: "range", ref: Ve, className: Ae, min: t, max: i, step: d, value: T, disabled: a, "aria-labelledby": et, onChange: $e }), e[131] = a, e[132] = Ve, e[133] = $e, e[134] = o, e[135] = i, e[136] = t, e[137] = d, e[138] = D, e[139] = Ae, e[140] = T, e[141] = et, e[142] = j) : j = e[142];
|
|
275
|
+
let U;
|
|
276
|
+
e[143] !== L || e[144] !== Pe ? (U = L > 0 && /* @__PURE__ */ b("div", { className: s.tickWrapper, children: Pe }), e[143] = L, e[144] = Pe, e[145] = U) : U = e[145];
|
|
277
|
+
let G;
|
|
278
|
+
e[146] !== je ? (G = /* @__PURE__ */ b("div", { className: je }), e[146] = je, e[147] = G) : G = e[147];
|
|
279
|
+
let X;
|
|
280
|
+
e[148] !== a || e[149] !== I || e[150] !== T || e[151] !== Ue ? (X = I && /* @__PURE__ */ b("div", { className: Ue, "aria-disabled": a, children: T }), e[148] = a, e[149] = I, e[150] = T, e[151] = Ue, e[152] = X) : X = e[152];
|
|
281
|
+
let J;
|
|
282
|
+
e[153] !== Qe || e[154] !== H || e[155] !== K || e[156] !== j || e[157] !== U || e[158] !== G || e[159] !== X ? (J = /* @__PURE__ */ re("div", { className: s.sliderWrapper, style: Qe, children: [
|
|
283
|
+
H,
|
|
284
|
+
K,
|
|
285
|
+
j,
|
|
286
|
+
U,
|
|
287
|
+
G,
|
|
288
|
+
X
|
|
289
|
+
] }), e[153] = Qe, e[154] = H, e[155] = K, e[156] = j, e[157] = U, e[158] = G, e[159] = X, e[160] = J) : J = e[160];
|
|
290
|
+
let Me;
|
|
291
|
+
return e[161] !== $ || e[162] !== B || e[163] !== J ? (Me = /* @__PURE__ */ re("div", { className: s.root, children: [
|
|
292
|
+
$,
|
|
293
|
+
B,
|
|
294
|
+
J
|
|
295
|
+
] }), e[161] = $, e[162] = B, e[163] = J, e[164] = Me) : Me = e[164], Me;
|
|
296
|
+
});
|
|
297
|
+
Yt.displayName = "DSSlider";
|
|
298
|
+
export {
|
|
299
|
+
Yt as D,
|
|
300
|
+
at as L,
|
|
301
|
+
Ut as M,
|
|
302
|
+
Jt as a,
|
|
303
|
+
it as g,
|
|
304
|
+
Gt as i,
|
|
305
|
+
Xt as s,
|
|
306
|
+
Qt as v
|
|
307
|
+
};
|
|
@@ -8,8 +8,8 @@ import { t as H } from "./translate.nuU7uChI.js";
|
|
|
8
8
|
import { u as v } from "./useIsomorphicLayoutEffect.CnJ9AMFS.js";
|
|
9
9
|
import "./index.cKLI89Eg.js";
|
|
10
10
|
import { f as G } from "./AriaLiveRegions.utils.8ofDlHnN.js";
|
|
11
|
-
import { DSScroller as F } from "../scroller.
|
|
12
|
-
import { StepperStep as J } from "../step.
|
|
11
|
+
import { DSScroller as F } from "../scroller.BZy0pXNL.js";
|
|
12
|
+
import { StepperStep as J } from "../step.C8Um5fyx.js";
|
|
13
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
14
|
root: K,
|
|
15
15
|
rootVertical: Q,
|
|
@@ -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.DCdL1Vnp.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.DuaTT6zK.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.BBT_kVGM.js";
|
|
10
|
+
import { D as ve } from "./SystemFeedback.CZhoSxrC.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,
|
|
@@ -3,8 +3,8 @@ import { jsx as C, jsxs as j } from "react/jsx-runtime";
|
|
|
3
3
|
import { d as E } from "./index.cKLI89Eg.js";
|
|
4
4
|
import { c as W } from "./index.DQOqod3i.js";
|
|
5
5
|
import { forwardRef as L } from "react";
|
|
6
|
-
import { D as M } from "./Button.
|
|
7
|
-
import { D as O } from "./Icon.
|
|
6
|
+
import { D as M } from "./Button.D8U6Bs7T.js";
|
|
7
|
+
import { D as O } from "./Icon.DCdL1Vnp.js";
|
|
8
8
|
import '../assets/Toast.CGl8z6mX.css';const P = "ds-toast_root_1k9pu_5", z = "ds-toast_root--closing_1k9pu_15", A = "ds-toast_root--success_1k9pu_66", R = "ds-toast_root--info_1k9pu_70", $ = "ds-toast_root--warning_1k9pu_74", q = "ds-toast_content_1k9pu_79", F = "ds-toast_content--hide-icon_1k9pu_86", G = "ds-toast_icon_1k9pu_90", J = "ds-toast_message_1k9pu_94", s = {
|
|
9
9
|
root: P,
|
|
10
10
|
rootClosing: z,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as e from "react";
|
|
3
|
+
const c = ({
|
|
4
|
+
title: l,
|
|
5
|
+
titleId: a,
|
|
6
|
+
...t
|
|
7
|
+
}) => /* @__PURE__ */ e.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", fill: "#252525", viewBox: "0 0 16 16", focusable: "false", width: "100%", height: "100%", "aria-labelledby": a, ...t }, l ? /* @__PURE__ */ e.createElement("title", { id: a }, l) : null, /* @__PURE__ */ e.createElement("path", { fillRule: "evenodd", d: "M0 5.061C0 2.796 1.806 1 4.222 1c1.15 0 2.06.46 2.79 1.055.36.293.688.63.988.97.3-.34.628-.677.988-.97C9.718 1.46 10.628 1 11.778 1 14.196 1 16 2.796 16 5.061c0 .463-.021.946-.202 1.497-.177.54-.484 1.078-.956 1.72-.502.683-1.844 2.023-3.096 3.23a161 161 0 0 1-3.069 2.883l-.672.61-.672-.61a165 165 0 0 1-3.067-2.872c-1.25-1.203-2.592-2.54-3.105-3.237-.482-.644-.792-1.185-.967-1.73C.015 6 0 5.515 0 5.063", clipRule: "evenodd" }));
|
|
8
|
+
export {
|
|
9
|
+
c as default
|
|
10
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as z } from "react/jsx-runtime";
|
|
3
3
|
import { d as G } from "./chunks/index.cKLI89Eg.js";
|
|
4
|
-
import { v as H, c as J } from "./chunks/CustomReactSelect.
|
|
4
|
+
import { v as H, c as J } from "./chunks/CustomReactSelect.DHwRSrva.js";
|
|
5
5
|
import { forwardRef as K } from "react";
|
|
6
6
|
const Q = K((N, S) => {
|
|
7
7
|
const t = G.c(38);
|
|
@@ -18,7 +18,7 @@ export interface AccordionProps extends DetailsHTMLAttributes<HTMLDetailsElement
|
|
|
18
18
|
* @default 'right'
|
|
19
19
|
*/
|
|
20
20
|
chevronPosition?: ChevronPosition;
|
|
21
|
-
/** Custom area below the summary. **Cannot be used together with numberIndicatorValue
|
|
21
|
+
/** Custom area below the summary. **Cannot be used together with `numberIndicatorValue`**. */
|
|
22
22
|
hint?: React.ReactNode;
|
|
23
23
|
/** Aligns the accordion with text.
|
|
24
24
|
* @default false
|
|
@@ -28,7 +28,7 @@ export interface AccordionProps extends DetailsHTMLAttributes<HTMLDetailsElement
|
|
|
28
28
|
* @default false
|
|
29
29
|
*/
|
|
30
30
|
isOpen?: boolean;
|
|
31
|
-
/** Number Indicator value displayed next to the label. **Cannot be used together with hint
|
|
31
|
+
/** Number Indicator value displayed next to the label. **Cannot be used together with `hint`**. */
|
|
32
32
|
numberIndicatorValue?: string;
|
|
33
33
|
/** Adds a descriptive label for screen readers to the Number Indicator. */
|
|
34
34
|
numberIndicatorAriaLabel?: string;
|
|
@@ -22,6 +22,13 @@ export interface ActionCardProps extends HTMLAttributes<HTMLElement> {
|
|
|
22
22
|
* @default 'medium'
|
|
23
23
|
*/
|
|
24
24
|
padding?: 'small' | 'medium';
|
|
25
|
+
/**
|
|
26
|
+
* Sets the visual style of the card.
|
|
27
|
+
* - `'outlined'`: Subtle border, ideal for grids and dense layouts.
|
|
28
|
+
* - `'elevated'`: Drop shadow for visual emphasis or background separation.
|
|
29
|
+
* @default 'outlined'
|
|
30
|
+
*/
|
|
31
|
+
variant?: 'outlined' | 'elevated';
|
|
25
32
|
}
|
|
26
33
|
/** Props for any "slot" component */
|
|
27
34
|
export interface ActionCardSlotProps {
|
|
@@ -57,7 +64,6 @@ export interface PrimaryActionSlotProps extends Omit<AnchorHTMLAttributes<HTMLAn
|
|
|
57
64
|
/** Compound type for ActionCard with its static slots */
|
|
58
65
|
interface ActionCardComponent extends React.FC<ActionCardProps> {
|
|
59
66
|
Header: React.FC<ActionCardSlotProps>;
|
|
60
|
-
Content: React.FC<ActionCardSlotProps>;
|
|
61
67
|
Footer: React.FC<ActionCardSlotProps>;
|
|
62
68
|
Media: React.FC<ActionCardSlotProps>;
|
|
63
69
|
PrimaryAction: React.FC<PrimaryActionSlotProps>;
|
|
@@ -66,10 +72,11 @@ interface ActionCardComponent extends React.FC<ActionCardProps> {
|
|
|
66
72
|
/**
|
|
67
73
|
* A flexible card component that can display various types of content and media. It renders a semantic `<article>` element as non-clickable container that groups interactive and non-interactive elements.
|
|
68
74
|
*
|
|
69
|
-
* - Slot-based structure: configurable slots (media, header, footer
|
|
70
|
-
* -
|
|
75
|
+
* - Slot-based structure: configurable slots (media, header, footer, supplementary, and primary action) that can be customized.
|
|
76
|
+
* - Optional card-level interaction: use the `PrimaryAction` slot to make the entire card clickable while keeping other interactive elements (buttons, checkboxes) accessible.
|
|
77
|
+
* - Internal interactions only: interactive elements (e.g. CTAs) inside the card are clickable and focusable, even when PrimaryAction is used.
|
|
71
78
|
*
|
|
72
|
-
* Design in Figma: [Action Card](https://www.figma.com/design/qXldpLO6gxHJNLdcXIPxYt/
|
|
79
|
+
* Design in Figma: [Action Card](https://www.figma.com/design/qXldpLO6gxHJNLdcXIPxYt/Core-Components-%F0%9F%92%A0?node-id=47366-6210)
|
|
73
80
|
*/
|
|
74
81
|
export declare const DSActionCard: ActionCardComponent;
|
|
75
82
|
export {};
|
|
@@ -27,6 +27,6 @@ export interface BannerProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
27
27
|
*
|
|
28
28
|
* Avoid using it for critical updates or system messages; use notifications for those instead.
|
|
29
29
|
*
|
|
30
|
-
* Design in Figma: [Banner](https://www.figma.com/design/Ie2r0R9QwjEc7O3nrFbXhV/
|
|
30
|
+
* Design in Figma: [Banner](https://www.figma.com/design/Ie2r0R9QwjEc7O3nrFbXhV/Web-Pattern-Library?node-id=7171-9055)
|
|
31
31
|
* */
|
|
32
32
|
export declare const DSBanner: ({ className, closeButtonProps, children, variant, onClose, ...rest }: BannerProps) => JSX.Element;
|
|
@@ -19,10 +19,13 @@ export interface BreadcrumbProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
19
19
|
* */
|
|
20
20
|
aria: SelectedAriaAttributes<BreadcrumbAriaAttributes>;
|
|
21
21
|
/** Breadcrumb link array structure with optional and required parameters
|
|
22
|
+
*
|
|
22
23
|
* `{ label: string;`
|
|
23
24
|
* `href?: string;`
|
|
24
25
|
* `iconName?: IconName;`
|
|
25
|
-
* `wrapper?: React.ReactElement
|
|
26
|
+
* `wrapper?: React.ReactElement<`
|
|
27
|
+
* ` React.AnchorHTMLAttributes<HTMLAnchorElement> &`
|
|
28
|
+
* ` React.RefAttributes<HTMLAnchorElement>>;}[]`
|
|
26
29
|
*/
|
|
27
30
|
links: BreadcrumbLink[];
|
|
28
31
|
/** Show all (...) button props:
|
|
@@ -1,16 +1,23 @@
|
|
|
1
|
-
import { IconName } from '../../types';
|
|
2
1
|
import { ButtonProps } from '../Button/Button';
|
|
3
|
-
import {
|
|
4
|
-
|
|
2
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
3
|
+
import { ButtonRoundSize, ButtonRoundVariant } from './ButtonRound.utils';
|
|
4
|
+
export interface ButtonRoundProps extends ButtonHTMLAttributes<HTMLButtonElement>, Pick<ButtonProps, 'aria' | `data-${string}` | 'iconName' | 'iconSource' | 'loading' | 'theme' | 'tooltip'> {
|
|
5
|
+
/** Content within the button. */
|
|
5
6
|
children: React.ReactNode;
|
|
7
|
+
/** Disables the button, preventing user interaction.
|
|
8
|
+
* @default false
|
|
9
|
+
*/
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
/** Size of the button.
|
|
12
|
+
* @default 'small'
|
|
13
|
+
*/
|
|
14
|
+
size?: ButtonRoundSize;
|
|
6
15
|
/** Visual style variant of the button.
|
|
7
16
|
* @default 'filled'
|
|
8
17
|
*/
|
|
9
18
|
variant?: ButtonRoundVariant;
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
*/
|
|
13
|
-
iconName?: IconName;
|
|
19
|
+
/** Callback function called when the button is clicked. */
|
|
20
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
14
21
|
}
|
|
15
22
|
/**
|
|
16
23
|
* Icon only Buttons should only used for functions where visible labels are not needed to define the function e.g. modal close or pagination buttons.
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export declare const BUTTON_ROUND_VARIANT: readonly ["filled", "highlight"];
|
|
2
|
-
export type ButtonRoundVariant = typeof BUTTON_ROUND_VARIANT[number];
|
|
2
|
+
export type ButtonRoundVariant = (typeof BUTTON_ROUND_VARIANT)[number];
|
|
3
|
+
export declare const BUTTON_ROUND_SIZE: readonly ["small", "medium"];
|
|
4
|
+
export type ButtonRoundSize = (typeof BUTTON_ROUND_SIZE)[number];
|
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
import { IconName } from '../../types';
|
|
2
1
|
import { ButtonProps } from '../Button/Button';
|
|
3
|
-
|
|
2
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
3
|
+
export interface FloatingActionButtonProps extends ButtonHTMLAttributes<HTMLButtonElement>, Pick<ButtonProps, 'aria' | `data-${string}` | 'iconName' | 'iconSource' | 'loading' | 'size' | 'theme' | 'tooltip'> {
|
|
4
|
+
/** Content within the button. */
|
|
4
5
|
children: React.ReactNode;
|
|
5
|
-
/**
|
|
6
|
-
* @default
|
|
6
|
+
/** Disables the button, preventing user interaction.
|
|
7
|
+
* @default false
|
|
7
8
|
*/
|
|
8
|
-
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
/** Callback function called when the button is clicked. */
|
|
11
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
9
12
|
}
|
|
10
13
|
/**
|
|
11
14
|
* FABs are used to highlight actions by laying over the content.
|
|
@@ -22,6 +22,9 @@ type CardClassNames = {
|
|
|
22
22
|
footerWrapper?: string;
|
|
23
23
|
headerWrapper?: string;
|
|
24
24
|
heading?: string;
|
|
25
|
+
/** Class name for the media wrapper element. */
|
|
26
|
+
mediaWrapper?: string;
|
|
27
|
+
/** @deprecated Use `mediaWrapper` instead. Will be removed with stable release. */
|
|
25
28
|
imageWrapper?: string;
|
|
26
29
|
metaDataWrapper?: string;
|
|
27
30
|
graphicAreaWrapper?: string;
|
|
@@ -55,7 +58,7 @@ export interface LinkCardProps extends AnchorHTMLAttributes<HTMLAnchorElement |
|
|
|
55
58
|
* - `footerWrapper?: string` className for the footer wrapper element.
|
|
56
59
|
* - `headerWrapper?: string` className for the header wrapper element.
|
|
57
60
|
* - `heading?: string` className for the heading element.
|
|
58
|
-
* - `
|
|
61
|
+
* - `mediaWrapper?: string` className for the media wrapper element.
|
|
59
62
|
* - `metaDataWrapper?: string` className for the meta data wrapper element.
|
|
60
63
|
* - `graphicAreaWrapper?: string` className for the graphic area wrapper element.
|
|
61
64
|
*/
|
|
@@ -108,15 +111,22 @@ export interface LinkCardProps extends AnchorHTMLAttributes<HTMLAnchorElement |
|
|
|
108
111
|
* @default 'medium'
|
|
109
112
|
*/
|
|
110
113
|
padding?: 'small' | 'medium';
|
|
114
|
+
/**
|
|
115
|
+
* Sets the visual style of the card.
|
|
116
|
+
* - `'outlined'`: Subtle border, ideal for grids and dense layouts.
|
|
117
|
+
* - `'elevated'`: Drop shadow for visual emphasis or background separation.
|
|
118
|
+
* @default 'outlined'
|
|
119
|
+
*/
|
|
120
|
+
variant?: 'outlined' | 'elevated';
|
|
111
121
|
}
|
|
112
122
|
/**
|
|
113
123
|
* A simple, accessible Card component that can be used as a link to navigate to other pages.
|
|
114
124
|
* The entire card is clickable and follows accessibility best practices.
|
|
115
125
|
*
|
|
116
|
-
* Design in Figma: [Link Card](https://www.figma.com/design/qXldpLO6gxHJNLdcXIPxYt/Core-Components-%F0%9F%92%A0?node-id=
|
|
126
|
+
* Design in Figma: [Link Card](https://www.figma.com/design/qXldpLO6gxHJNLdcXIPxYt/Core-Components-%F0%9F%92%A0?node-id=43951-17695)
|
|
117
127
|
*/
|
|
118
128
|
export declare const DSLinkCard: {
|
|
119
|
-
({ heading, brandFlag, className, cardClassNames, decorativeLinkButtonProps, description, flagListAriaLabel, flags, href, img, linkComponent, metaData, orientation, padding, graphicArea, ...rest }: LinkCardProps): JSX.Element;
|
|
129
|
+
({ heading, brandFlag, className, cardClassNames, decorativeLinkButtonProps, description, flagListAriaLabel, flags, href, img, linkComponent, metaData, orientation, padding, graphicArea, variant, ...rest }: LinkCardProps): JSX.Element;
|
|
120
130
|
displayName: string;
|
|
121
131
|
};
|
|
122
132
|
export {};
|
|
@@ -17,7 +17,7 @@ export interface MegaMenuProps {
|
|
|
17
17
|
/**
|
|
18
18
|
* The MegaMenu component is used to display additional information or actions related to an anchor element. It can be positioned relative to the anchor and supports various placements and offsets.
|
|
19
19
|
*
|
|
20
|
-
* Design in Figma: [MegaMenu](https://www.figma.com/design/Ie2r0R9QwjEc7O3nrFbXhV/
|
|
20
|
+
* Design in Figma: [MegaMenu](https://www.figma.com/design/Ie2r0R9QwjEc7O3nrFbXhV/Web-Pattern-Library?node-id=6583-87264&t=1rS7ELMWTIogKb9o-4)
|
|
21
21
|
* */
|
|
22
22
|
export declare const DSMegaMenu: {
|
|
23
23
|
({ children, ...rest }: MegaMenuProps): JSX.Element;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { JSX, ReactElement } from 'react';
|
|
2
|
+
import { SelectedAriaAttributes } from '../../types';
|
|
3
|
+
import { PaginationAlignment, PaginationAriaAttributes, PaginationLanguage, PaginationTranslations } from './Pagination.utils';
|
|
4
|
+
export interface PaginationLink {
|
|
5
|
+
/** The href for the link if no framework-specific link component wrapper is provided. */
|
|
6
|
+
href?: string;
|
|
7
|
+
/** The framework-specific link component wrapper, e.g., `Link` for `next` or `react-router-dom`. */
|
|
8
|
+
wrapper?: ReactElement<React.AnchorHTMLAttributes<HTMLAnchorElement> & React.RefAttributes<HTMLAnchorElement>>;
|
|
9
|
+
}
|
|
10
|
+
export interface PaginationProps extends React.HTMLAttributes<HTMLElement> {
|
|
11
|
+
/** ARIA attributes to ensure accessibility. 'aria-label' OR 'aria-labelledby' is required.
|
|
12
|
+
*
|
|
13
|
+
* `{'aria-label'?: string;`
|
|
14
|
+
* `'aria-labelledby'?: string;}`
|
|
15
|
+
* */
|
|
16
|
+
aria: SelectedAriaAttributes<PaginationAriaAttributes>;
|
|
17
|
+
/** Sets the items per page used to derive the number of pages. */
|
|
18
|
+
itemsPerPage: number;
|
|
19
|
+
/** Sets the total amount of items in the dataset. */
|
|
20
|
+
totalItemsCount: number;
|
|
21
|
+
/** **Controlled** active page index (0-based).
|
|
22
|
+
* @default 0
|
|
23
|
+
*/
|
|
24
|
+
activePageIndex?: number;
|
|
25
|
+
/** Alignment of the DSPagination.
|
|
26
|
+
* @default 'right'
|
|
27
|
+
*/
|
|
28
|
+
alignment?: PaginationAlignment;
|
|
29
|
+
/** Sets language to use for the screen reader messages, if no translations object is provided.
|
|
30
|
+
* @default 'en'
|
|
31
|
+
*/
|
|
32
|
+
lang?: PaginationLanguage;
|
|
33
|
+
/** Pagination link array structure with optional and required parameters
|
|
34
|
+
*
|
|
35
|
+
* `{ href?: string;`
|
|
36
|
+
* `wrapper?: React.ReactElement<`
|
|
37
|
+
* ` React.AnchorHTMLAttributes<HTMLAnchorElement> &`
|
|
38
|
+
* ` React.RefAttributes<HTMLAnchorElement>>;}[]`
|
|
39
|
+
*/
|
|
40
|
+
links?: PaginationLink[];
|
|
41
|
+
/** Translations for the DSPagination. Use our [customization page](/?path=/story/components-pagination-translations--documentation) for creating custom translations. */
|
|
42
|
+
translations?: PaginationTranslations;
|
|
43
|
+
/** Callback when a new page is selected. */
|
|
44
|
+
onPageChange?: (nextPageIndex: number) => void;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* A pagination component rendering navigation controls and page links with ellipsis overflow.
|
|
48
|
+
*
|
|
49
|
+
* Design in Figma: [Pagination](https://www.figma.com/design/qXldpLO6gxHJNLdcXIPxYt/Core-Components-%F0%9F%92%A0?node-id=26075-11456)
|
|
50
|
+
*/
|
|
51
|
+
export declare const DSPagination: ({ aria, activePageIndex, itemsPerPage, totalItemsCount, className, alignment, lang, links, translations, onPageChange, ...rest }: PaginationProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|