@stihl-design-system/components 1.0.0-RC.30 → 1.0.0-RC.32
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.DkwtJy--.js → accordion.HfUSDwQJ.js} +2 -2
- package/{actionlink.C7HzeIVa.js → actionbutton.kgd0E_xF.js} +4 -3
- package/{actionbutton.u1qp8oGC.js → actionlink.CwC42RWc.js} +4 -3
- package/assets/CustomReactSelect.DGIItWIh.css +1 -0
- package/assets/InputStepper.DvFJk1Mi.css +1 -0
- package/assets/Popover.CXyUaXiO.css +1 -0
- package/assets/Select.C1gWF32A.css +1 -0
- package/assets/Slider.Bidyhb-B.css +1 -0
- package/assets/Textarea.Dq4rH9Tg.css +1 -0
- package/assets/input.CUjGh-UM.css +1 -0
- package/assets/logo100years.CQrEg-Vo.css +1 -0
- package/assets/tooltip.Co1gWF_0.css +1 -0
- package/{banner.j9YpudOS.js → banner.o4Etkjjo.js} +1 -1
- package/{breadcrumb.BS-S3zUI.js → breadcrumb.BsQm0kUD.js} +3 -3
- package/{linkbutton.D2C4vykc.js → button.Dyy6ajX6.js} +5 -3
- package/buttonround.ChKWHzsv.js +96 -0
- package/{checkbox.BtlUvs0z.js → checkbox.BNnp4ztM.js} +3 -3
- package/{checkboxgroup.C5NgyyQF.js → checkboxgroup.BTVnKenc.js} +2 -2
- package/{chip.tVIG1ysH.js → chip.C7NstOHt.js} +4 -3
- package/chipgroup.Zo1-IOCn.js +210 -0
- package/chunks/{Accordion.C5V5IcM-.js → Accordion.CnqryAUu.js} +1 -1
- package/chunks/ActionButton.DdDesD7K.js +180 -0
- package/chunks/ActionLink.DqAsPYda.js +153 -0
- package/chunks/{Breadcrumb.BGzwzvh8.js → Breadcrumb.9KinNuyQ.js} +2 -2
- package/chunks/Button.Cf1CKq8N.js +142 -0
- package/chunks/{Checkbox.DxV7-F5W.js → Checkbox.CiwriItT.js} +2 -2
- package/chunks/{CheckboxGroup.Dy_6tiGk.js → CheckboxGroup.Cj68J6Ee.js} +2 -2
- package/chunks/Chip.BrbYu6i_.js +133 -0
- package/chunks/{CustomReactSelect.iE5iTdez.js → CustomReactSelect.Cqq70QC0.js} +152 -144
- package/chunks/{Dialog.B_2pKRnd.js → Dialog.Bv7k55He.js} +1 -1
- package/chunks/{Drawer.HFlBTcqN.js → Drawer.BVTvx276.js} +1 -1
- package/chunks/{Fieldset.CjIfmN_5.js → Fieldset.D7cLR5ze.js} +1 -1
- package/chunks/Header.um5MlziB.js +377 -0
- package/chunks/Icon.NSsVrYeq.js +231 -0
- package/chunks/{InputFile.DvOatDzg.js → InputFile.bVWWdePn.js} +4 -4
- package/chunks/{InputPassword.DC2POUc1.js → InputPassword.Da3hEKTc.js} +2 -2
- package/chunks/{InputSearch.B0aCuPRZ.js → InputSearch.GOYqFCcZ.js} +2 -2
- package/chunks/InputStepper.BuhPtfl-.js +268 -0
- package/chunks/LinkButton.59oNDwPU.js +132 -0
- package/chunks/MegaMenu._o3nNDAa.js +192 -0
- package/chunks/{NavigationTabList.dYFYTmWv.js → NavigationTabList.DuT7gzhj.js} +1 -1
- package/chunks/{NavigationTabs.ClpVGcl0.js → NavigationTabs.DspPFHPh.js} +1 -1
- package/chunks/{Notification.DIdIhGTQ.js → Notification.Pts2oh0R.js} +2 -2
- package/chunks/Popover.BRR8YZ-P.js +228 -0
- package/chunks/{RadioGroup.peTeMK45.js → RadioGroup.DeTz3c19.js} +1 -1
- package/chunks/Select.D2ehd4yN.js +162 -0
- package/chunks/{Slider.kyVr7BLk.js → Slider.84lkgq3W.js} +85 -85
- package/chunks/{SystemFeedback.B9f67mjJ.js → SystemFeedback.CyGbUCzT.js} +1 -1
- package/chunks/{Tabs.CkVL8Jw8.js → Tabs.C8ADTzJ0.js} +1 -1
- package/chunks/Textarea.Cw85sxHL.js +163 -0
- package/chunks/{Toast.DHo4pLH3.js → Toast.DG3WVvau.js} +2 -2
- package/chunks/battery-charge-0.DxlgEAto.js +10 -0
- package/chunks/battery-charge-100.D0Cax7dU.js +10 -0
- package/chunks/{battery.YCg9lYqC.js → battery.6Idoickg.js} +3 -3
- package/chunks/bluetooth-off.BzZCh4Q8.js +10 -0
- package/chunks/document-s.CoOp0kBK.js +10 -0
- package/chunks/floating-ui.dom.VgHc0h4l.js +989 -0
- package/chunks/floating-ui.react.DCyAzlZ4.js +2011 -0
- package/{combobox.Bk2ycofh.js → combobox.orZ3z8CB.js} +1 -1
- package/components/ActionButton/ActionButton.d.ts +2 -0
- package/components/Button/Button.d.ts +4 -0
- package/components/ChipGroup/Chip.d.ts +1 -0
- package/components/ChipGroup/ChipGroup.d.ts +4 -0
- package/components/ChipGroup/ChipGroup.utils.d.ts +9 -9
- package/components/Header/Header.d.ts +4 -5
- package/components/InputStepper/InputStepper.d.ts +8 -2
- package/components/InputStepper/InputStepper.utils.d.ts +1 -0
- package/components/LinkButton/LinkButton.d.ts +2 -0
- package/components/Logo100Years/Logo100Years.d.ts +1 -0
- package/components/Popover/Popover.d.ts +29 -7
- package/components/Popover/Popover.utils.d.ts +34 -3
- package/components/Tooltip/Tooltip.d.ts +40 -0
- package/components/Tooltip/Tooltip.test.d.ts +1 -0
- package/components/Tooltip/Tooltip.utils.d.ts +70 -0
- package/components/Tooltip/Tooltip.utils.test.d.ts +1 -0
- package/components/TopBar/TopBar.d.ts +4 -4
- package/components/TopBar/TopBar.utils.d.ts +1 -1
- package/{customreactselect.Hnch9LGg.js → customreactselect.Np-RpzvU.js} +4 -4
- package/{dialog.7sWoqGwL.js → dialog.D4rcbW6A.js} +2 -2
- package/{drawer.DsF4KIPn.js → drawer.BCCB3Rkj.js} +2 -2
- package/{fieldset.DUFUMcT-.js → fieldset.ZLs9IGpE.js} +2 -2
- package/{filelist.nunJKxkv.js → filelist.BiKMKCyg.js} +3 -3
- package/{flag.D_iN8iD6.js → flag.72PONA83.js} +1 -1
- package/floatingactionbutton.B2YChsNU.js +87 -0
- package/{header.QpNjE3N-.js → header.DUbn3BZt.js} +1 -1
- package/{icon.vMQcEBnH.js → icon.CHVAZr5T.js} +1 -1
- package/index.es.js +112 -111
- package/input.DG20x6gh.js +203 -0
- package/{inputfile.DK8759wV.js → inputfile.Dc56lQ4t.js} +5 -5
- package/{inputpassword.rV_ZZw5F.js → inputpassword.znFHRLsI.js} +3 -3
- package/{inputsearch.CmhakTpa.js → inputsearch.B1G6rfVk.js} +3 -3
- package/{inputstepper.5olvh4tk.js → inputstepper.o6rdM_CW.js} +3 -3
- package/link.DbnvsD3j.js +81 -0
- package/{button.CPilCCUI.js → linkbutton.DU8Ih8ZF.js} +4 -4
- package/logo100years.BcB6_c-o.js +24 -0
- package/logo100years.d.ts +2 -0
- package/{megamenu.CdHrEeoh.js → megamenu.CPH8EeFF.js} +3 -3
- package/{navigationtablist.CVjh1k-b.js → navigationtablist.C0iwsAad.js} +2 -2
- package/{navigationtabs.BGfi9AG2.js → navigationtabs.JjJtbuUe.js} +2 -2
- package/{notification.Dn-FZWEL.js → notification.Ds_Q7ifk.js} +3 -3
- package/{optioncheckbox.D97W3zeW.js → optioncheckbox.DqfXuPdi.js} +1 -1
- package/package.json +2 -3
- package/partials/index.js +14 -14
- package/{popover.DXxm1oWI.js → popover.B72W0OvU.js} +4 -3
- package/{radiogroup.J8WpEEo8.js → radiogroup.C_3IcNBq.js} +2 -2
- package/{scroller.BiRLQg__.js → scroller.CQxmQU6U.js} +1 -1
- package/{select.DIzGPVx3.js → select.Ceyt-zvu.js} +3 -3
- package/{skiptocontent._F-d8y5b.js → skiptocontent.BSCde5hT.js} +1 -1
- package/{slider.DuJK0RdB.js → slider.Dq2dcziy.js} +2 -2
- package/{spinner.Dht6FspZ.js → spinner.BUjhjAvw.js} +1 -1
- package/{switch.B37S4vfP.js → switch.D7BCfyyZ.js} +2 -2
- package/{systemfeedback.C_2PhwKe.js → systemfeedback.CSdWOWuf.js} +2 -2
- package/{tablist.g_Nwu6GA.js → tablist.V7DBklhE.js} +3 -3
- package/{tabs.oh9-wHPp.js → tabs.DQNLPAEN.js} +2 -2
- package/{textarea.dQ12-oYB.js → textarea.CixKeQBp.js} +2 -2
- package/{toast.sMNbfKxi.js → toast.D8QprMCa.js} +3 -3
- package/{toastmanager.CVamaS5T.js → toastmanager.BSVjYsg9.js} +1 -1
- package/tooltip.CUCSRXd3.js +191 -0
- package/tooltip.d.ts +2 -0
- package/{topbar.Dhy_TL0U.js → topbar.CVhJy-Br.js} +3 -2
- package/types/icon-types.d.ts +1 -1
- package/types/prettier-plugin-organize-imports.d.ts +1 -0
- package/assets/CustomReactSelect.D0b1Hg1T.css +0 -1
- package/assets/InputStepper.Dth4qZN_.css +0 -1
- package/assets/Popover.BDTDsPAt.css +0 -1
- package/assets/Select.CYACicZ3.css +0 -1
- package/assets/Slider.DzwSjDPV.css +0 -1
- package/assets/Textarea.BXWhXpXx.css +0 -1
- package/assets/input.ONbL-_C1.css +0 -1
- package/buttonround.C426mO4d.js +0 -81
- package/chipgroup.CjIK0Z0x.js +0 -209
- package/chunks/ActionButton.B8zFwOrJ.js +0 -165
- package/chunks/ActionLink.IX6oRXU3.js +0 -138
- package/chunks/Button.B7xF1E19.js +0 -127
- package/chunks/Chip.31UfPwQF.js +0 -119
- package/chunks/Header.DqZRryB5.js +0 -366
- package/chunks/Icon.DGTYCv63.js +0 -231
- package/chunks/InputStepper.B_ZjgY_f.js +0 -263
- package/chunks/LinkButton.DdTspmJz.js +0 -117
- package/chunks/MegaMenu.BY7eOnhj.js +0 -189
- package/chunks/Popover.NGetxKGg.js +0 -159
- package/chunks/Select.BDHLJ2ma.js +0 -162
- package/chunks/Textarea.ORkJUx-S.js +0 -163
- package/chunks/floating-ui.dom.C9TD1WpB.js +0 -950
- package/chunks/floating-ui.react.x0F9CYgn.js +0 -1637
- package/floatingactionbutton.DOH2k0gv.js +0 -72
- package/input.BKHOY118.js +0 -203
- package/link.D_FjTyoZ.js +0 -66
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as Z, jsx as p, Fragment as wt } from "react/jsx-runtime";
|
|
3
|
+
import { d as At } from "./index.CgTHIF3K.js";
|
|
4
|
+
import { c as S } from "./index.CEyLAtio.js";
|
|
5
|
+
import { forwardRef as yt } from "react";
|
|
6
|
+
import { D as gt } from "./Icon.NSsVrYeq.js";
|
|
7
|
+
import { NumberIndicator as Tt } from "../numberindicator.Ddf3ESi7.js";
|
|
8
|
+
import { Tooltip as It } from "../tooltip.CUCSRXd3.js";
|
|
9
|
+
import { g as C } from "./helpers.BbWkXTr3.js";
|
|
10
|
+
import '../assets/ActionButton.oGVPTS1J.css';const St = "ds-action-button_root_15ybf_1", Ct = "ds-action-button_root--indent-level-1_15ybf_75", Ot = "ds-action-button_root--active_15ybf_78", Pt = "ds-action-button_root--active--with-marker_15ybf_81", Dt = "ds-action-button_root--icon--top_15ybf_84", Bt = "ds-action-button_root--stretched_15ybf_110", kt = "ds-action-button_active-marker_15ybf_115", Lt = "ds-action-button_active-marker--with-indent_15ybf_127", Et = "ds-action-button_icon-wrapper_15ybf_131", xt = "ds-action-button_icon-wrapper--x-large_15ybf_134", Mt = "ds-action-button_icon-wrapper--with-number-indicator_15ybf_137", Ut = "ds-action-button_icon-wrapper--with-number-indicator--with-value_15ybf_145", zt = "ds-action-button_label_15ybf_149", Rt = "ds-action-button_label--bold_15ybf_160", Vt = "ds-action-button_label--active_15ybf_171", Ht = "ds-action-button_label--icon-top_15ybf_182", Xt = "ds-action-button_number-indicator_15ybf_205", jt = "ds-action-button_label-wrapper_15ybf_209", Ft = "ds-action-button_label-wrapper--icon-top_15ybf_214", Gt = "ds-action-button_chevron_15ybf_218", Zt = "ds-action-button_chevron--icon-position-top_15ybf_233", $t = "ds-action-button_chevron--up_15ybf_239", qt = "ds-action-button_chevron--right_15ybf_250", Jt = "ds-action-button_chevron--left_15ybf_261", o = {
|
|
11
|
+
root: St,
|
|
12
|
+
rootIndentLevel1: Ct,
|
|
13
|
+
rootActive: Ot,
|
|
14
|
+
rootActiveWithMarker: Pt,
|
|
15
|
+
rootIconTop: Dt,
|
|
16
|
+
rootStretched: Bt,
|
|
17
|
+
activeMarker: kt,
|
|
18
|
+
activeMarkerWithIndent: Lt,
|
|
19
|
+
iconWrapper: Et,
|
|
20
|
+
iconWrapperXLarge: xt,
|
|
21
|
+
iconWrapperWithNumberIndicator: Mt,
|
|
22
|
+
iconWrapperWithNumberIndicatorWithValue: Ut,
|
|
23
|
+
label: zt,
|
|
24
|
+
labelBold: Rt,
|
|
25
|
+
labelActive: Vt,
|
|
26
|
+
labelIconTop: Ht,
|
|
27
|
+
numberIndicator: Xt,
|
|
28
|
+
labelWrapper: jt,
|
|
29
|
+
labelWrapperIconTop: Ft,
|
|
30
|
+
chevron: Gt,
|
|
31
|
+
chevronIconPositionTop: Zt,
|
|
32
|
+
chevronUp: $t,
|
|
33
|
+
chevronRight: qt,
|
|
34
|
+
chevronLeft: Jt
|
|
35
|
+
}, ao = ["left", "top"], so = ["large", "x-large"], lo = [0, 1], po = ["normal", "bold"], ho = ["up", "down", "right", "left"], Kt = ({
|
|
36
|
+
iconName: v,
|
|
37
|
+
iconSize: u,
|
|
38
|
+
iconSource: t,
|
|
39
|
+
iconPosition: d,
|
|
40
|
+
indentLevel: r,
|
|
41
|
+
stretched: h,
|
|
42
|
+
weight: b
|
|
43
|
+
}) => {
|
|
44
|
+
if (v && !t && u === "x-large" && console.warn(C("DSActionButton", 'An "iconSize" prop set to "x-large" has no effect when "iconName" is set. Please remove the "iconSize" prop or provide a custom icon via the "iconSource" prop.')), d === "top") {
|
|
45
|
+
if (!v && !t)
|
|
46
|
+
throw new Error(C("DSActionButton", 'The "iconPosition" prop should not be set to "top", when no "iconName" or "iconSource" prop was provided. Please either remove the "iconPosition" prop or set a valid icon via the "iconName" or "iconSource" prop.'));
|
|
47
|
+
u === "x-large" && console.warn(C("DSActionButton", 'An "iconSize" prop set to "x-large" has no effect when "iconPosition" is set to "top". Please remove the "iconSize" prop.')), b === "bold" && console.warn(C("DSActionButton", 'A "weight" prop set to "bold" with "iconPosition" set to "top" has no effect. Please remove the "weight" prop.')), r === 1 && console.warn(C("DSActionButton", 'An "indentLevel" prop set to "1" with "iconPosition" set to "top" has no effect. Please remove the "indentLevel" prop.')), h && console.warn(C("DSActionButton", 'A "stretched" prop set to "true" with "iconPosition" set to "top" has no effect. Please remove the "stretched" prop.'));
|
|
48
|
+
}
|
|
49
|
+
}, Qt = yt((v, u) => {
|
|
50
|
+
const t = At.c(91);
|
|
51
|
+
let d, r, h, b, c, a, n, f, m, O, P, D, B, k, L, E, _;
|
|
52
|
+
t[0] !== v ? ({
|
|
53
|
+
children: h,
|
|
54
|
+
aria: d,
|
|
55
|
+
chevronDirection: r,
|
|
56
|
+
className: b,
|
|
57
|
+
disabled: O,
|
|
58
|
+
iconName: c,
|
|
59
|
+
iconPosition: P,
|
|
60
|
+
iconSize: D,
|
|
61
|
+
iconSource: a,
|
|
62
|
+
indentLevel: B,
|
|
63
|
+
isActive: k,
|
|
64
|
+
numberIndicatorValue: n,
|
|
65
|
+
stretched: L,
|
|
66
|
+
weight: E,
|
|
67
|
+
tooltip: _,
|
|
68
|
+
onClick: f,
|
|
69
|
+
...m
|
|
70
|
+
} = v, t[0] = v, t[1] = d, t[2] = r, t[3] = h, t[4] = b, t[5] = c, t[6] = a, t[7] = n, t[8] = f, t[9] = m, t[10] = O, t[11] = P, t[12] = D, t[13] = B, t[14] = k, t[15] = L, t[16] = E, t[17] = _) : (d = t[1], r = t[2], h = t[3], b = t[4], c = t[5], a = t[6], n = t[7], f = t[8], m = t[9], O = t[10], P = t[11], D = t[12], B = t[13], k = t[14], L = t[15], E = t[16], _ = t[17]);
|
|
71
|
+
const i = O === void 0 ? !1 : O, e = P === void 0 ? "left" : P, x = D === void 0 ? "large" : D, $ = B === void 0 ? 0 : B, I = k === void 0 ? !1 : k, Nt = L === void 0 ? !1 : L, Wt = E === void 0 ? "normal" : E;
|
|
72
|
+
process.env.NODE_ENV !== "production" && Kt({
|
|
73
|
+
iconName: c,
|
|
74
|
+
iconSize: x,
|
|
75
|
+
iconSource: a,
|
|
76
|
+
iconPosition: e,
|
|
77
|
+
indentLevel: $,
|
|
78
|
+
stretched: Nt,
|
|
79
|
+
weight: Wt
|
|
80
|
+
});
|
|
81
|
+
const s = (n == null ? void 0 : n.trim()) === "", q = e === "top", J = $ === 1, K = I && !i, Q = I && !i && e === "left", Y = Nt === !0 && e === "left";
|
|
82
|
+
let M;
|
|
83
|
+
t[18] !== b || t[19] !== K || t[20] !== Q || t[21] !== Y || t[22] !== q || t[23] !== J ? (M = S(o.root, b, {
|
|
84
|
+
[o.rootIconTop]: q,
|
|
85
|
+
[o.rootIndentLevel1]: J,
|
|
86
|
+
[o.rootActive]: K,
|
|
87
|
+
[o.rootActiveWithMarker]: Q,
|
|
88
|
+
[o.rootStretched]: Y
|
|
89
|
+
}), t[18] = b, t[19] = K, t[20] = Q, t[21] = Y, t[22] = q, t[23] = J, t[24] = M) : M = t[24];
|
|
90
|
+
const tt = M, ot = $ === 1;
|
|
91
|
+
let U;
|
|
92
|
+
t[25] !== ot ? (U = S(o.activeMarker, {
|
|
93
|
+
[o.activeMarkerWithIndent]: ot
|
|
94
|
+
}), t[25] = ot, t[26] = U) : U = t[26];
|
|
95
|
+
const et = U, nt = I && !i, it = Wt === "bold", rt = e === "top";
|
|
96
|
+
let z;
|
|
97
|
+
t[27] !== nt || t[28] !== it || t[29] !== rt ? (z = S(o.label, {
|
|
98
|
+
[o.labelActive]: nt,
|
|
99
|
+
[o.labelBold]: it,
|
|
100
|
+
[o.labelIconTop]: rt
|
|
101
|
+
}), t[27] = nt, t[28] = it, t[29] = rt, t[30] = z) : z = t[30];
|
|
102
|
+
const ct = z, at = e === "top";
|
|
103
|
+
let R;
|
|
104
|
+
t[31] !== at ? (R = S(o.labelWrapper, {
|
|
105
|
+
[o.labelWrapperIconTop]: at
|
|
106
|
+
}), t[31] = at, t[32] = R) : R = t[32];
|
|
107
|
+
const st = R, lt = e === "top", pt = r === "up", dt = r === "right", ht = r === "left";
|
|
108
|
+
let V;
|
|
109
|
+
t[33] !== lt || t[34] !== pt || t[35] !== dt || t[36] !== ht ? (V = S(o.chevron, {
|
|
110
|
+
[o.chevronIconPositionTop]: lt,
|
|
111
|
+
[o.chevronUp]: pt,
|
|
112
|
+
[o.chevronRight]: dt,
|
|
113
|
+
[o.chevronLeft]: ht
|
|
114
|
+
}), t[33] = lt, t[34] = pt, t[35] = dt, t[36] = ht, t[37] = V) : V = t[37];
|
|
115
|
+
const bt = V, ft = x === "x-large", _t = (c || a) && (n || s), vt = (c || a) && !s;
|
|
116
|
+
let H;
|
|
117
|
+
t[38] !== ft || t[39] !== _t || t[40] !== vt ? (H = S(o.iconWrapper, {
|
|
118
|
+
[o.iconWrapperXLarge]: ft,
|
|
119
|
+
[o.iconWrapperWithNumberIndicator]: _t,
|
|
120
|
+
[o.iconWrapperWithNumberIndicatorWithValue]: vt
|
|
121
|
+
}), t[38] = ft, t[39] = _t, t[40] = vt, t[41] = H) : H = t[41];
|
|
122
|
+
const ut = H;
|
|
123
|
+
let X;
|
|
124
|
+
t[42] !== i || t[43] !== f ? (X = (l) => {
|
|
125
|
+
if (i) {
|
|
126
|
+
l.preventDefault();
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
f && f(l);
|
|
130
|
+
}, t[42] = i, t[43] = f, t[44] = X) : X = t[44];
|
|
131
|
+
const mt = X;
|
|
132
|
+
let N;
|
|
133
|
+
t[45] !== et || t[46] !== e || t[47] !== I ? (N = I && e === "left" && /* @__PURE__ */ p("div", { className: et }), t[45] = et, t[46] = e, t[47] = I, t[48] = N) : N = t[48];
|
|
134
|
+
let W;
|
|
135
|
+
t[49] !== i || t[50] !== c || t[51] !== e || t[52] !== x || t[53] !== a || t[54] !== ut || t[55] !== s || t[56] !== n ? (W = (c || a) && /* @__PURE__ */ p(wt, { children: /* @__PURE__ */ Z("span", { className: ut, children: [
|
|
136
|
+
/* @__PURE__ */ p(gt, { name: c, theme: "light", source: a, "aria-hidden": "true", size: c || e === "top" ? "large" : x }),
|
|
137
|
+
!i && (e === "left" && s || e === "top" && (n || s)) && /* @__PURE__ */ p(Tt, { variant: "highlight", label: n })
|
|
138
|
+
] }) }), t[49] = i, t[50] = c, t[51] = e, t[52] = x, t[53] = a, t[54] = ut, t[55] = s, t[56] = n, t[57] = W) : W = t[57];
|
|
139
|
+
let g;
|
|
140
|
+
t[58] !== h || t[59] !== ct ? (g = /* @__PURE__ */ p("span", { className: ct, children: h }), t[58] = h, t[59] = ct, t[60] = g) : g = t[60];
|
|
141
|
+
let T;
|
|
142
|
+
t[61] !== bt || t[62] !== r ? (T = r && /* @__PURE__ */ p(gt, { name: "chevron-down", theme: "light", "aria-hidden": "true", className: bt }), t[61] = bt, t[62] = r, t[63] = T) : T = t[63];
|
|
143
|
+
let w;
|
|
144
|
+
t[64] !== st || t[65] !== g || t[66] !== T ? (w = /* @__PURE__ */ Z("div", { className: st, children: [
|
|
145
|
+
g,
|
|
146
|
+
T
|
|
147
|
+
] }), t[64] = st, t[65] = g, t[66] = T, t[67] = w) : w = t[67];
|
|
148
|
+
let A;
|
|
149
|
+
t[68] !== i || t[69] !== e || t[70] !== s || t[71] !== n ? (A = e === "left" && !i && n && !s && /* @__PURE__ */ p(Tt, { variant: "default", label: n, className: o.numberIndicator }), t[68] = i, t[69] = e, t[70] = s, t[71] = n, t[72] = A) : A = t[72];
|
|
150
|
+
let j;
|
|
151
|
+
t[73] !== d || t[74] !== i || t[75] !== mt || t[76] !== u || t[77] !== m || t[78] !== tt || t[79] !== N || t[80] !== W || t[81] !== w || t[82] !== A ? (j = /* @__PURE__ */ Z("button", { className: tt, type: "button", onClick: mt, ...d, ...m, "aria-disabled": i, ref: u, children: [
|
|
152
|
+
N,
|
|
153
|
+
W,
|
|
154
|
+
w,
|
|
155
|
+
A
|
|
156
|
+
] }), t[73] = d, t[74] = i, t[75] = mt, t[76] = u, t[77] = m, t[78] = tt, t[79] = N, t[80] = W, t[81] = w, t[82] = A, t[83] = j) : j = t[83];
|
|
157
|
+
const F = j;
|
|
158
|
+
if (_) {
|
|
159
|
+
let l;
|
|
160
|
+
t[84] !== F ? (l = /* @__PURE__ */ p(It.Anchor, { children: F }), t[84] = F, t[85] = l) : l = t[85];
|
|
161
|
+
let y;
|
|
162
|
+
t[86] !== _ ? (y = /* @__PURE__ */ p(It.Content, { children: _ }), t[86] = _, t[87] = y) : y = t[87];
|
|
163
|
+
let G;
|
|
164
|
+
return t[88] !== l || t[89] !== y ? (G = /* @__PURE__ */ Z(It, { placement: "top", tooltipOffset: 6, children: [
|
|
165
|
+
l,
|
|
166
|
+
y
|
|
167
|
+
] }), t[88] = l, t[89] = y, t[90] = G) : G = t[90], G;
|
|
168
|
+
}
|
|
169
|
+
return F;
|
|
170
|
+
});
|
|
171
|
+
Qt.displayName = "DSActionButton";
|
|
172
|
+
export {
|
|
173
|
+
ao as A,
|
|
174
|
+
Qt as D,
|
|
175
|
+
so as a,
|
|
176
|
+
lo as b,
|
|
177
|
+
po as c,
|
|
178
|
+
ho as d,
|
|
179
|
+
Kt as v
|
|
180
|
+
};
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as lt, jsx as h, Fragment as _t } from "react/jsx-runtime";
|
|
3
|
+
import { d as mt } from "./index.CgTHIF3K.js";
|
|
4
|
+
import { c as F } from "./index.CEyLAtio.js";
|
|
5
|
+
import { forwardRef as ft } from "react";
|
|
6
|
+
import { D as vt } from "./Icon.NSsVrYeq.js";
|
|
7
|
+
import { NumberIndicator as ht } from "../numberindicator.Ddf3ESi7.js";
|
|
8
|
+
import { Tooltip as st } from "../tooltip.CUCSRXd3.js";
|
|
9
|
+
import { g as S } from "./helpers.BbWkXTr3.js";
|
|
10
|
+
import '../assets/ActionLink.CTh6IXrN.css';const kt = "ds-action-link_root_1xtta_1", bt = "ds-action-link_root--indent-level-1_1xtta_75", It = "ds-action-link_root--active_1xtta_78", Nt = "ds-action-link_root--active--with-marker_1xtta_81", At = "ds-action-link_root--icon--top_1xtta_84", ut = "ds-action-link_root--stretched_1xtta_110", gt = "ds-action-link_active-marker_1xtta_115", wt = "ds-action-link_active-marker--with-indent_1xtta_127", Wt = "ds-action-link_icon-wrapper_1xtta_131", xt = "ds-action-link_icon-wrapper--x-large_1xtta_134", Lt = "ds-action-link_icon-wrapper--with-number-indicator_1xtta_137", St = "ds-action-link_icon-wrapper--with-number-indicator--with-value_1xtta_145", Pt = "ds-action-link_label_1xtta_149", Tt = "ds-action-link_label--bold_1xtta_160", Dt = "ds-action-link_label--active_1xtta_171", Ct = "ds-action-link_label--icon-top_1xtta_182", Mt = "ds-action-link_number-indicator_1xtta_205", o = {
|
|
11
|
+
root: kt,
|
|
12
|
+
rootIndentLevel1: bt,
|
|
13
|
+
rootActive: It,
|
|
14
|
+
rootActiveWithMarker: Nt,
|
|
15
|
+
rootIconTop: At,
|
|
16
|
+
rootStretched: ut,
|
|
17
|
+
activeMarker: gt,
|
|
18
|
+
activeMarkerWithIndent: wt,
|
|
19
|
+
iconWrapper: Wt,
|
|
20
|
+
iconWrapperXLarge: xt,
|
|
21
|
+
iconWrapperWithNumberIndicator: Lt,
|
|
22
|
+
iconWrapperWithNumberIndicatorWithValue: St,
|
|
23
|
+
label: Pt,
|
|
24
|
+
labelBold: Tt,
|
|
25
|
+
labelActive: Dt,
|
|
26
|
+
labelIconTop: Ct,
|
|
27
|
+
numberIndicator: Mt
|
|
28
|
+
}, Ft = ["left", "top"], Gt = ["large", "x-large"], Rt = [0, 1], Zt = ["normal", "bold"], Et = ({
|
|
29
|
+
iconName: f,
|
|
30
|
+
iconSize: v,
|
|
31
|
+
iconSource: t,
|
|
32
|
+
iconPosition: c,
|
|
33
|
+
indentLevel: l,
|
|
34
|
+
stretched: s,
|
|
35
|
+
weight: p
|
|
36
|
+
}) => {
|
|
37
|
+
if (f && !t && v === "x-large" && console.warn(S("DSActionLink", 'An "iconSize" prop set to "x-large" has no effect when "iconName" is set. Please remove the "iconSize" prop or provide a custom icon via the "iconSource" prop.')), c === "top") {
|
|
38
|
+
if (!f && !t)
|
|
39
|
+
throw new Error(S("DSActionLink", 'The "iconPosition" prop should not be set to "top", when no "iconName" or "iconSource" prop was provided. Please either remove the "iconPosition" prop or set a valid icon via the "iconName" or "iconSource" prop.'));
|
|
40
|
+
v === "x-large" && console.warn(S("DSActionLink", 'An "iconSize" prop set to "x-large" has no effect when "iconPosition" is set to "top". Please remove the "iconSize" prop.')), p === "bold" && console.warn(S("DSActionLink", 'A "weight" prop set to "bold" with "iconPosition" set to "top" has no effect. Please remove the "weight" prop.')), l === 1 && console.warn(S("DSActionLink", 'An "indentLevel" prop set to "1" with "iconPosition" set to "top" has no effect. Please remove the "indentLevel" prop.')), s && console.warn(S("DSActionLink", 'A "stretched" prop set to "true" with "iconPosition" set to "top" has no effect. Please remove the "stretched" prop.'));
|
|
41
|
+
}
|
|
42
|
+
}, Ot = ft((f, v) => {
|
|
43
|
+
const t = mt.c(81);
|
|
44
|
+
let c, l, s, p, _, n, r, i, k, b, I, P, T, D, C, M, E, O, m;
|
|
45
|
+
t[0] !== f ? ({
|
|
46
|
+
children: l,
|
|
47
|
+
aria: c,
|
|
48
|
+
className: s,
|
|
49
|
+
download: p,
|
|
50
|
+
href: _,
|
|
51
|
+
iconName: n,
|
|
52
|
+
iconPosition: P,
|
|
53
|
+
iconSize: T,
|
|
54
|
+
iconSource: r,
|
|
55
|
+
indentLevel: D,
|
|
56
|
+
isActive: C,
|
|
57
|
+
numberIndicatorValue: i,
|
|
58
|
+
referrerPolicy: k,
|
|
59
|
+
rel: b,
|
|
60
|
+
stretched: M,
|
|
61
|
+
target: E,
|
|
62
|
+
tooltip: m,
|
|
63
|
+
weight: O,
|
|
64
|
+
...I
|
|
65
|
+
} = f, t[0] = f, t[1] = c, t[2] = l, t[3] = s, t[4] = p, t[5] = _, t[6] = n, t[7] = r, t[8] = i, t[9] = k, t[10] = b, t[11] = I, t[12] = P, t[13] = T, t[14] = D, t[15] = C, t[16] = M, t[17] = E, t[18] = O, t[19] = m) : (c = t[1], l = t[2], s = t[3], p = t[4], _ = t[5], n = t[6], r = t[7], i = t[8], k = t[9], b = t[10], I = t[11], P = t[12], T = t[13], D = t[14], C = t[15], M = t[16], E = t[17], O = t[18], m = t[19]);
|
|
66
|
+
const e = P === void 0 ? "left" : P, z = T === void 0 ? "large" : T, G = D === void 0 ? 0 : D, d = C === void 0 ? !1 : C, pt = M === void 0 ? !1 : M, R = E === void 0 ? "_self" : E, dt = O === void 0 ? "normal" : O;
|
|
67
|
+
process.env.NODE_ENV !== "production" && Et({
|
|
68
|
+
iconName: n,
|
|
69
|
+
iconSize: z,
|
|
70
|
+
iconSource: r,
|
|
71
|
+
iconPosition: e,
|
|
72
|
+
indentLevel: G,
|
|
73
|
+
stretched: pt,
|
|
74
|
+
weight: dt
|
|
75
|
+
});
|
|
76
|
+
const a = (i == null ? void 0 : i.trim()) === "", Z = e === "top", $ = G === 1, q = d && e === "left", J = pt === !0 && e === "left";
|
|
77
|
+
let K;
|
|
78
|
+
t[20] !== s || t[21] !== d || t[22] !== q || t[23] !== J || t[24] !== Z || t[25] !== $ ? (K = F(o.root, s, {
|
|
79
|
+
[o.rootIconTop]: Z,
|
|
80
|
+
[o.rootIndentLevel1]: $,
|
|
81
|
+
[o.rootActive]: d,
|
|
82
|
+
[o.rootActiveWithMarker]: q,
|
|
83
|
+
[o.rootStretched]: J
|
|
84
|
+
}), t[20] = s, t[21] = d, t[22] = q, t[23] = J, t[24] = Z, t[25] = $, t[26] = K) : K = t[26];
|
|
85
|
+
const Q = K, U = G === 1;
|
|
86
|
+
let V;
|
|
87
|
+
t[27] !== U ? (V = F(o.activeMarker, {
|
|
88
|
+
[o.activeMarkerWithIndent]: U
|
|
89
|
+
}), t[27] = U, t[28] = V) : V = t[28];
|
|
90
|
+
const Y = V, tt = d && e === "left", et = dt === "bold", ot = e === "top";
|
|
91
|
+
let y;
|
|
92
|
+
t[29] !== tt || t[30] !== et || t[31] !== ot ? (y = F(o.label, {
|
|
93
|
+
[o.labelActive]: tt,
|
|
94
|
+
[o.labelBold]: et,
|
|
95
|
+
[o.labelIconTop]: ot
|
|
96
|
+
}), t[29] = tt, t[30] = et, t[31] = ot, t[32] = y) : y = t[32];
|
|
97
|
+
const it = y, nt = z === "x-large", rt = (n || r) && (i || a), at = (n || r) && !a;
|
|
98
|
+
let B;
|
|
99
|
+
t[33] !== nt || t[34] !== rt || t[35] !== at ? (B = F(o.iconWrapper, {
|
|
100
|
+
[o.iconWrapperXLarge]: nt,
|
|
101
|
+
[o.iconWrapperWithNumberIndicator]: rt,
|
|
102
|
+
[o.iconWrapperWithNumberIndicatorWithValue]: at
|
|
103
|
+
}), t[33] = nt, t[34] = rt, t[35] = at, t[36] = B) : B = t[36];
|
|
104
|
+
const ct = B, N = _ === void 0 ? "span" : "a";
|
|
105
|
+
let A;
|
|
106
|
+
t[37] !== N || t[38] !== p || t[39] !== _ || t[40] !== k || t[41] !== b || t[42] !== R ? (A = N === "a" && {
|
|
107
|
+
href: _,
|
|
108
|
+
target: R,
|
|
109
|
+
rel: b,
|
|
110
|
+
referrerPolicy: k,
|
|
111
|
+
download: p
|
|
112
|
+
}, t[37] = N, t[38] = p, t[39] = _, t[40] = k, t[41] = b, t[42] = R, t[43] = A) : A = t[43];
|
|
113
|
+
let u;
|
|
114
|
+
t[44] !== Y || t[45] !== e || t[46] !== d ? (u = d && e === "left" && /* @__PURE__ */ h("div", { className: Y }), t[44] = Y, t[45] = e, t[46] = d, t[47] = u) : u = t[47];
|
|
115
|
+
let g;
|
|
116
|
+
t[48] !== n || t[49] !== e || t[50] !== z || t[51] !== r || t[52] !== ct || t[53] !== a || t[54] !== i ? (g = (n || r) && /* @__PURE__ */ h(_t, { children: /* @__PURE__ */ lt("span", { className: ct, children: [
|
|
117
|
+
/* @__PURE__ */ h(vt, { name: n, theme: "light", source: r, "aria-hidden": "true", size: n || e === "top" ? "large" : z }),
|
|
118
|
+
(e === "left" && a || e === "top" && (i || a)) && /* @__PURE__ */ h(ht, { variant: "highlight", label: i })
|
|
119
|
+
] }) }), t[48] = n, t[49] = e, t[50] = z, t[51] = r, t[52] = ct, t[53] = a, t[54] = i, t[55] = g) : g = t[55];
|
|
120
|
+
let w;
|
|
121
|
+
t[56] !== l || t[57] !== it ? (w = /* @__PURE__ */ h("span", { className: it, children: l }), t[56] = l, t[57] = it, t[58] = w) : w = t[58];
|
|
122
|
+
let W;
|
|
123
|
+
t[59] !== e || t[60] !== a || t[61] !== i ? (W = e === "left" && i && !a && /* @__PURE__ */ h(ht, { variant: "default", label: i, className: o.numberIndicator }), t[59] = e, t[60] = a, t[61] = i, t[62] = W) : W = t[62];
|
|
124
|
+
let X;
|
|
125
|
+
t[63] !== N || t[64] !== c || t[65] !== v || t[66] !== I || t[67] !== Q || t[68] !== A || t[69] !== u || t[70] !== g || t[71] !== w || t[72] !== W ? (X = /* @__PURE__ */ lt(N, { className: Q, ...A, ...c, ...I, ref: v, children: [
|
|
126
|
+
u,
|
|
127
|
+
g,
|
|
128
|
+
w,
|
|
129
|
+
W
|
|
130
|
+
] }), t[63] = N, t[64] = c, t[65] = v, t[66] = I, t[67] = Q, t[68] = A, t[69] = u, t[70] = g, t[71] = w, t[72] = W, t[73] = X) : X = t[73];
|
|
131
|
+
const j = X;
|
|
132
|
+
if (m) {
|
|
133
|
+
let x;
|
|
134
|
+
t[74] !== j ? (x = /* @__PURE__ */ h(st.Anchor, { children: j }), t[74] = j, t[75] = x) : x = t[75];
|
|
135
|
+
let L;
|
|
136
|
+
t[76] !== m ? (L = /* @__PURE__ */ h(st.Content, { children: m }), t[76] = m, t[77] = L) : L = t[77];
|
|
137
|
+
let H;
|
|
138
|
+
return t[78] !== x || t[79] !== L ? (H = /* @__PURE__ */ lt(st, { placement: "top", tooltipOffset: 6, children: [
|
|
139
|
+
x,
|
|
140
|
+
L
|
|
141
|
+
] }), t[78] = x, t[79] = L, t[80] = H) : H = t[80], H;
|
|
142
|
+
}
|
|
143
|
+
return j;
|
|
144
|
+
});
|
|
145
|
+
Ot.displayName = "DSActionLink";
|
|
146
|
+
export {
|
|
147
|
+
Ft as A,
|
|
148
|
+
Ot as D,
|
|
149
|
+
Gt as a,
|
|
150
|
+
Rt as b,
|
|
151
|
+
Zt as c,
|
|
152
|
+
Et as v
|
|
153
|
+
};
|
|
@@ -3,8 +3,8 @@ import { jsx as w, jsxs as V } from "react/jsx-runtime";
|
|
|
3
3
|
import { d as q } from "./index.CgTHIF3K.js";
|
|
4
4
|
import { c as F } from "./index.CEyLAtio.js";
|
|
5
5
|
import { isValidElement as M, useState as I, useEffect as O, cloneElement as R } from "react";
|
|
6
|
-
import { D as K } from "./Button.
|
|
7
|
-
import { DSLink as X } from "../link.
|
|
6
|
+
import { D as K } from "./Button.Cf1CKq8N.js";
|
|
7
|
+
import { DSLink as X } from "../link.DbnvsD3j.js";
|
|
8
8
|
import { g as d, r as z } from "./helpers.BbWkXTr3.js";
|
|
9
9
|
import '../assets/Breadcrumb.BaYrwrYl.css';const G = "ds-breadcrumb_root_1e9hu_1", H = "ds-breadcrumb_show-all-button_1e9hu_30", T = {
|
|
10
10
|
root: G,
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as ut, jsx as H } from "react/jsx-runtime";
|
|
3
|
+
import { d as mt } from "./index.CgTHIF3K.js";
|
|
4
|
+
import { c as dt } from "./index.CEyLAtio.js";
|
|
5
|
+
import { forwardRef as ft } from "react";
|
|
6
|
+
import { u as ct } from "./useBreakpoint.CMOR9ZOB.js";
|
|
7
|
+
import { D as bt } from "./Icon.NSsVrYeq.js";
|
|
8
|
+
import { DSSpinner as vt } from "../spinner.BUjhjAvw.js";
|
|
9
|
+
import { Tooltip as ht } from "../tooltip.CUCSRXd3.js";
|
|
10
|
+
import { g as _t } from "./helpers.BbWkXTr3.js";
|
|
11
|
+
import '../assets/Button.Dw8H5nFS.css';const kt = "ds-button_root_94r67_1", pt = "ds-button_root--highlight_94r67_75", Dt = "ds-button_root--dark-highlight_94r67_75", Nt = "ds-button_root--filled_94r67_151", Ot = "ds-button_root--outline_94r67_179", St = "ds-button_root--ghost_94r67_206", Ft = "ds-button_root--ghost-flush_94r67_231", yt = "ds-button_root--small_94r67_237", Gt = "ds-button_root--navigation_94r67_317", Ht = "ds-button_root--dark-filled_94r67_393", It = "ds-button_root--dark-outline_94r67_450", Bt = "ds-button_root--dark-ghost_94r67_506", Lt = "ds-button_root--dark-ghost-flush_94r67_560", Ct = "ds-button_root--icon-left_94r67_635", Tt = "ds-button_root--icon-only_94r67_638", wt = "ds-button_root--icon-only-small_94r67_647", Et = "ds-button_icon--navigation_94r67_663", At = "ds-button_icon--hidden_94r67_670", Pt = "ds-button_label--hidden_94r67_674", xt = "ds-button_label--loading_94r67_686", zt = "ds-button_loader_94r67_690", o = {
|
|
12
|
+
root: kt,
|
|
13
|
+
rootHighlight: pt,
|
|
14
|
+
rootDarkHighlight: Dt,
|
|
15
|
+
rootFilled: Nt,
|
|
16
|
+
rootOutline: Ot,
|
|
17
|
+
rootGhost: St,
|
|
18
|
+
rootGhostFlush: Ft,
|
|
19
|
+
rootSmall: yt,
|
|
20
|
+
rootNavigation: Gt,
|
|
21
|
+
rootDarkFilled: Ht,
|
|
22
|
+
rootDarkOutline: It,
|
|
23
|
+
rootDarkGhost: Bt,
|
|
24
|
+
rootDarkGhostFlush: Lt,
|
|
25
|
+
rootIconLeft: Ct,
|
|
26
|
+
rootIconOnly: Tt,
|
|
27
|
+
rootIconOnlySmall: wt,
|
|
28
|
+
iconNavigation: Et,
|
|
29
|
+
iconHidden: At,
|
|
30
|
+
labelHidden: Pt,
|
|
31
|
+
labelLoading: xt,
|
|
32
|
+
loader: zt
|
|
33
|
+
}, Wt = ["medium", "small"], Xt = ["highlight", "filled", "outline", "ghost", "navigation"], Vt = ({
|
|
34
|
+
variant: v,
|
|
35
|
+
size: k,
|
|
36
|
+
theme: t
|
|
37
|
+
}) => {
|
|
38
|
+
if (v === "navigation" && (k === "small" && console.warn(_t("DSButton", 'A "size" prop should not be used in combination with variant="navigation". Please remove the "size" prop.')), t === "dark"))
|
|
39
|
+
throw new Error(_t("DSButton", 'A DSButton with variant="navigation" does not support theme="dark". Please remove the "theme" prop.'));
|
|
40
|
+
}, jt = ft((v, k) => {
|
|
41
|
+
const t = mt.c(72);
|
|
42
|
+
let c, h, u, e, r, a, _, p, D, N, O, S, F, y, G, d;
|
|
43
|
+
t[0] !== v ? ({
|
|
44
|
+
children: h,
|
|
45
|
+
aria: c,
|
|
46
|
+
className: u,
|
|
47
|
+
disabled: p,
|
|
48
|
+
hideLabel: D,
|
|
49
|
+
iconName: e,
|
|
50
|
+
iconPosition: N,
|
|
51
|
+
iconSource: r,
|
|
52
|
+
isFlush: O,
|
|
53
|
+
loading: S,
|
|
54
|
+
size: F,
|
|
55
|
+
theme: y,
|
|
56
|
+
tooltip: d,
|
|
57
|
+
variant: G,
|
|
58
|
+
onClick: a,
|
|
59
|
+
..._
|
|
60
|
+
} = v, t[0] = v, t[1] = c, t[2] = h, t[3] = u, t[4] = e, t[5] = r, t[6] = a, t[7] = _, t[8] = p, t[9] = D, t[10] = N, t[11] = O, t[12] = S, t[13] = F, t[14] = y, t[15] = G, t[16] = d) : (c = t[1], h = t[2], u = t[3], e = t[4], r = t[5], a = t[6], _ = t[7], p = t[8], D = t[9], N = t[10], O = t[11], S = t[12], F = t[13], y = t[14], G = t[15], d = t[16]);
|
|
61
|
+
const I = p === void 0 ? !1 : p, z = D === void 0 ? !1 : D, gt = N === void 0 ? "left" : N, B = O === void 0 ? !1 : O, i = S === void 0 ? !1 : S, L = F === void 0 ? "medium" : F, l = y === void 0 ? "light" : y, n = G === void 0 ? "filled" : G;
|
|
62
|
+
process.env.NODE_ENV !== "production" && Vt({
|
|
63
|
+
variant: n,
|
|
64
|
+
size: L,
|
|
65
|
+
theme: l
|
|
66
|
+
});
|
|
67
|
+
const V = n === "filled", j = n === "highlight", R = n === "outline", U = n === "ghost" && B !== !0, M = n === "navigation", Z = n === "ghost" && B === !0, $ = l === "dark" && n === "filled", q = l === "dark" && n === "highlight", J = l === "dark" && n === "outline", K = l === "dark" && n === "ghost" && B !== !0, Q = l === "dark" && n === "ghost" && B === !0, W = L === "small" || n === "navigation", X = gt === "left", Y = ct(z) && L === "medium" && n !== "navigation", tt = ct(z) && L === "small" && n !== "navigation";
|
|
68
|
+
let C;
|
|
69
|
+
t[17] !== u || t[18] !== j || t[19] !== R || t[20] !== U || t[21] !== M || t[22] !== Z || t[23] !== $ || t[24] !== q || t[25] !== J || t[26] !== K || t[27] !== Q || t[28] !== W || t[29] !== X || t[30] !== Y || t[31] !== tt || t[32] !== V ? (C = dt(o.root, u, {
|
|
70
|
+
[o.rootFilled]: V,
|
|
71
|
+
[o.rootHighlight]: j,
|
|
72
|
+
[o.rootOutline]: R,
|
|
73
|
+
[o.rootGhost]: U,
|
|
74
|
+
[o.rootNavigation]: M,
|
|
75
|
+
[o.rootGhostFlush]: Z,
|
|
76
|
+
[o.rootDarkFilled]: $,
|
|
77
|
+
[o.rootDarkHighlight]: q,
|
|
78
|
+
[o.rootDarkOutline]: J,
|
|
79
|
+
[o.rootDarkGhost]: K,
|
|
80
|
+
[o.rootDarkGhostFlush]: Q,
|
|
81
|
+
[o.rootSmall]: W,
|
|
82
|
+
[o.rootIconLeft]: X,
|
|
83
|
+
[o.rootIconOnly]: Y,
|
|
84
|
+
[o.rootIconOnlySmall]: tt
|
|
85
|
+
}), t[17] = u, t[18] = j, t[19] = R, t[20] = U, t[21] = M, t[22] = Z, t[23] = $, t[24] = q, t[25] = J, t[26] = K, t[27] = Q, t[28] = W, t[29] = X, t[30] = Y, t[31] = tt, t[32] = V, t[33] = C) : C = t[33];
|
|
86
|
+
const ot = C, nt = ct(z) && n !== "navigation";
|
|
87
|
+
let T;
|
|
88
|
+
t[34] !== i || t[35] !== nt ? (T = dt(o.label, {
|
|
89
|
+
[o.labelHidden]: nt,
|
|
90
|
+
[o.labelLoading]: i
|
|
91
|
+
}), t[34] = i, t[35] = nt, t[36] = T) : T = t[36];
|
|
92
|
+
const it = T, lt = n === "navigation";
|
|
93
|
+
let w;
|
|
94
|
+
t[37] !== i || t[38] !== lt ? (w = dt({
|
|
95
|
+
[o.iconNavigation]: lt,
|
|
96
|
+
[o.iconHidden]: i
|
|
97
|
+
}), t[37] = i, t[38] = lt, t[39] = w) : w = t[39];
|
|
98
|
+
const st = w, et = l === "light" && n === "filled" || l === "dark" && n === "outline" || l === "dark" && n === "ghost" ? "dark" : "light";
|
|
99
|
+
let E;
|
|
100
|
+
t[40] !== I || t[41] !== i || t[42] !== a ? (E = (s) => {
|
|
101
|
+
if (I || i) {
|
|
102
|
+
s.preventDefault();
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
a && a(s);
|
|
106
|
+
}, t[40] = I, t[41] = i, t[42] = a, t[43] = E) : E = t[43];
|
|
107
|
+
const rt = E, at = I || i;
|
|
108
|
+
let g;
|
|
109
|
+
t[44] !== i ? (g = i && /* @__PURE__ */ H(vt, { className: o.loader, aria: {
|
|
110
|
+
"aria-label": "Loading state"
|
|
111
|
+
} }), t[44] = i, t[45] = g) : g = t[45];
|
|
112
|
+
let m;
|
|
113
|
+
t[46] !== h || t[47] !== it ? (m = /* @__PURE__ */ H("span", { className: it, children: h }), t[46] = h, t[47] = it, t[48] = m) : m = t[48];
|
|
114
|
+
let f;
|
|
115
|
+
t[49] !== st || t[50] !== e || t[51] !== r || t[52] !== et ? (f = (e || r) && /* @__PURE__ */ H(bt, { name: e, theme: et, source: r, className: st, "aria-hidden": "true" }), t[49] = st, t[50] = e, t[51] = r, t[52] = et, t[53] = f) : f = t[53];
|
|
116
|
+
let A;
|
|
117
|
+
t[54] !== c || t[55] !== rt || t[56] !== i || t[57] !== k || t[58] !== _ || t[59] !== ot || t[60] !== at || t[61] !== g || t[62] !== m || t[63] !== f ? (A = /* @__PURE__ */ ut("button", { className: ot, type: "submit", onClick: rt, ...c, ..._, "aria-disabled": at, "aria-busy": i, ref: k, children: [
|
|
118
|
+
g,
|
|
119
|
+
m,
|
|
120
|
+
f
|
|
121
|
+
] }), t[54] = c, t[55] = rt, t[56] = i, t[57] = k, t[58] = _, t[59] = ot, t[60] = at, t[61] = g, t[62] = m, t[63] = f, t[64] = A) : A = t[64];
|
|
122
|
+
const P = A;
|
|
123
|
+
if (d) {
|
|
124
|
+
let s;
|
|
125
|
+
t[65] !== P ? (s = /* @__PURE__ */ H(ht.Anchor, { children: P }), t[65] = P, t[66] = s) : s = t[66];
|
|
126
|
+
let b;
|
|
127
|
+
t[67] !== d ? (b = /* @__PURE__ */ H(ht.Content, { children: d }), t[67] = d, t[68] = b) : b = t[68];
|
|
128
|
+
let x;
|
|
129
|
+
return t[69] !== s || t[70] !== b ? (x = /* @__PURE__ */ ut(ht, { placement: "top", tooltipOffset: 6, children: [
|
|
130
|
+
s,
|
|
131
|
+
b
|
|
132
|
+
] }), t[69] = s, t[70] = b, t[71] = x) : x = t[71], x;
|
|
133
|
+
}
|
|
134
|
+
return P;
|
|
135
|
+
});
|
|
136
|
+
jt.displayName = "DSButton";
|
|
137
|
+
export {
|
|
138
|
+
Wt as B,
|
|
139
|
+
jt as D,
|
|
140
|
+
Xt as a,
|
|
141
|
+
Vt as v
|
|
142
|
+
};
|
|
@@ -4,8 +4,8 @@ import { c as p } from "./index.CEyLAtio.js";
|
|
|
4
4
|
import { forwardRef as j, useRef as B, useState as H, useEffect as V, useCallback as $ } from "react";
|
|
5
5
|
import { u as A } from "./useBreakpoint.CMOR9ZOB.js";
|
|
6
6
|
import "./index.CgTHIF3K.js";
|
|
7
|
-
import { D as x } from "./Icon.
|
|
8
|
-
import { D as L } from "./SystemFeedback.
|
|
7
|
+
import { D as x } from "./Icon.NSsVrYeq.js";
|
|
8
|
+
import { D as L } from "./SystemFeedback.CyGbUCzT.js";
|
|
9
9
|
import { g as C } from "./helpers.BbWkXTr3.js";
|
|
10
10
|
import '../assets/Checkbox.BKHQN_tu.css';const O = "ds-checkbox_root_1tuqo_1", U = "ds-checkbox_root--disabled_1tuqo_21", z = "ds-checkbox_checkbox_1tuqo_25", F = "ds-checkbox_icon-check_1tuqo_41", J = "ds-checkbox_icon-minus_1tuqo_42", K = "ds-checkbox_checkbox--invalid_1tuqo_66", Q = "ds-checkbox_label--hidden_1tuqo_71", R = "ds-checkbox_input_1tuqo_84", T = "ds-checkbox_label_1tuqo_71", W = "ds-checkbox_feedback_1tuqo_198", e = {
|
|
11
11
|
root: O,
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { jsx as _ } from "react/jsx-runtime";
|
|
3
3
|
import { d as w } from "./index.CgTHIF3K.js";
|
|
4
4
|
import { c as G } from "./index.CEyLAtio.js";
|
|
5
|
-
import { D as q } from "./Fieldset.
|
|
5
|
+
import { D as q } from "./Fieldset.D7cLR5ze.js";
|
|
6
6
|
import S from "react";
|
|
7
7
|
import { g as x, r as N } from "./helpers.BbWkXTr3.js";
|
|
8
|
-
import { D as z } from "./Checkbox.
|
|
8
|
+
import { D as z } from "./Checkbox.CiwriItT.js";
|
|
9
9
|
import '../assets/CheckboxGroup.Dd-Huo7x.css';const F = "ds-checkbox-group_root_12fot_1", H = "ds-checkbox-group_root--horizontal_12fot_9", I = "ds-checkbox-group_root--invalid_12fot_12", g = {
|
|
10
10
|
root: F,
|
|
11
11
|
rootHorizontal: H,
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as N, jsx as k } from "react/jsx-runtime";
|
|
3
|
+
import { d as q } from "./index.CgTHIF3K.js";
|
|
4
|
+
import { c as H } from "./index.CEyLAtio.js";
|
|
5
|
+
import { forwardRef as U } from "react";
|
|
6
|
+
import { t as M } from "./translate.nuU7uChI.js";
|
|
7
|
+
import { D as x } from "./Icon.NSsVrYeq.js";
|
|
8
|
+
import { Tooltip as $ } from "../tooltip.CUCSRXd3.js";
|
|
9
|
+
import { g as E, r as z } from "./helpers.BbWkXTr3.js";
|
|
10
|
+
import { g as j } from "./AriaLiveRegions.utils.Cb327d_2.js";
|
|
11
|
+
import '../assets/Chip.dxIYIjj7.css';const B = "ds-chip-group_chip_aidwn_1", W = "ds-chip-group_chip--small_aidwn_30", L = {
|
|
12
|
+
chip: B,
|
|
13
|
+
chipSmall: W
|
|
14
|
+
}, ce = ({
|
|
15
|
+
chips: t,
|
|
16
|
+
id: s,
|
|
17
|
+
label: e
|
|
18
|
+
}) => {
|
|
19
|
+
if (!Array.isArray(t))
|
|
20
|
+
throw new Error(E("DSChipGroup", z("chips", "DSChipGroup")));
|
|
21
|
+
if (!s)
|
|
22
|
+
throw new Error(E("DSChipGroup", 'A unique "id" prop is required when providing the description or systemFeedback property. Please add a unique "id" prop to the DSChipGroup component.'));
|
|
23
|
+
if (!e)
|
|
24
|
+
throw new Error(E("DSChipGroup", z("label", "DSChipGroup")));
|
|
25
|
+
}, pe = () => {
|
|
26
|
+
if (!j())
|
|
27
|
+
throw new Error(E("DSChipGroup", 'The DSAriaLiveRegions component has to be placed at the root of your application, as close to the "body" as possible, e.g. in your "App.tsx" or "layout.tsx".'));
|
|
28
|
+
}, de = ["medium", "small"], Z = {
|
|
29
|
+
disabled: "disabled",
|
|
30
|
+
selected: "selected",
|
|
31
|
+
// {0} is the action (e.g., select/unselect)
|
|
32
|
+
selectChip: "press space to {0}",
|
|
33
|
+
unselectAction: "unselect",
|
|
34
|
+
selectAction: "select",
|
|
35
|
+
addToSelection: "add this option to selection",
|
|
36
|
+
removeFromSelection: "remove this option from selection",
|
|
37
|
+
removeChip: "press Backspace to remove the currently focused value",
|
|
38
|
+
tooltipDisabled: "Disabled",
|
|
39
|
+
tooltipRemovable: "Remove filter",
|
|
40
|
+
tooltipDeactivate: "Deactivate property",
|
|
41
|
+
tooltipActivate: "Activate property"
|
|
42
|
+
}, J = {
|
|
43
|
+
disabled: "deaktiviert",
|
|
44
|
+
selected: "ausgewählt",
|
|
45
|
+
// {0} is the action (e.g., select/unselect)
|
|
46
|
+
selectChip: "drücke Leertaste, um {0}",
|
|
47
|
+
unselectAction: "abzuwählen",
|
|
48
|
+
selectAction: "auszuwählen",
|
|
49
|
+
addToSelection: "diese Option zur Auswahl hinzuzufügen",
|
|
50
|
+
removeFromSelection: "diese Option aus der Auswahl zu entfernen",
|
|
51
|
+
removeChip: "drücke Backspace, um den aktuell fokussierten Wert zu entfernen",
|
|
52
|
+
tooltipDisabled: "Deaktiviert",
|
|
53
|
+
tooltipRemovable: "Filter entfernen",
|
|
54
|
+
tooltipDeactivate: "Eigenschaft deaktivieren",
|
|
55
|
+
tooltipActivate: "Eigenschaft aktivieren"
|
|
56
|
+
}, K = {
|
|
57
|
+
en: Z,
|
|
58
|
+
de: J
|
|
59
|
+
}, Q = (t, s, e, i, a, l) => e ? `${s}, ${t("disabled")}` : l ? `${s}, ${t("removeChip")}` : `${s}, ${i ? `${t("selected")}, ` : ""}${t("selectChip", [t(a === "single" ? i ? "unselectAction" : "selectAction" : i ? "removeFromSelection" : "addToSelection")])}`, V = (t, s, e, i) => t(i ? "tooltipRemovable" : s ? "tooltipDisabled" : e ? "tooltipDeactivate" : "tooltipActivate"), X = U((t, s) => {
|
|
60
|
+
const e = q.c(48);
|
|
61
|
+
let i, a, l, p, o, n, r, d, h, m, u, D, g, f, C;
|
|
62
|
+
e[0] !== t ? ({
|
|
63
|
+
id: p,
|
|
64
|
+
label: r,
|
|
65
|
+
disableTooltips: i,
|
|
66
|
+
groupId: a,
|
|
67
|
+
isRemovable: o,
|
|
68
|
+
selectionMode: m,
|
|
69
|
+
disabled: D,
|
|
70
|
+
iconName: l,
|
|
71
|
+
isSelected: n,
|
|
72
|
+
lang: g,
|
|
73
|
+
size: u,
|
|
74
|
+
tabIndex: f,
|
|
75
|
+
translations: C,
|
|
76
|
+
onClick: d,
|
|
77
|
+
...h
|
|
78
|
+
} = t, e[0] = t, e[1] = i, e[2] = a, e[3] = l, e[4] = p, e[5] = o, e[6] = n, e[7] = r, e[8] = d, e[9] = h, e[10] = m, e[11] = u, e[12] = D, e[13] = g, e[14] = f, e[15] = C) : (i = e[1], a = e[2], l = e[3], p = e[4], o = e[5], n = e[6], r = e[7], d = e[8], h = e[9], m = e[10], u = e[11], D = e[12], g = e[13], f = e[14], C = e[15]);
|
|
79
|
+
const A = D === void 0 ? !1 : D, G = C || K[g === void 0 ? "en" : g];
|
|
80
|
+
let c, v;
|
|
81
|
+
if (e[16] !== i || e[17] !== A || e[18] !== a || e[19] !== l || e[20] !== p || e[21] !== o || e[22] !== n || e[23] !== r || e[24] !== d || e[25] !== s || e[26] !== h || e[27] !== m || e[28] !== u || e[29] !== G || e[30] !== f) {
|
|
82
|
+
v = Symbol.for("react.early_return_sentinel");
|
|
83
|
+
e: {
|
|
84
|
+
const O = M(G), I = u === "small";
|
|
85
|
+
let _;
|
|
86
|
+
e[33] !== I ? (_ = H(L.chip, {
|
|
87
|
+
[L.chipSmall]: I
|
|
88
|
+
}), e[33] = I, e[34] = _) : _ = e[34];
|
|
89
|
+
const F = _;
|
|
90
|
+
let y;
|
|
91
|
+
e[35] === Symbol.for("react.memo_cache_sentinel") ? (y = {
|
|
92
|
+
display: "contents"
|
|
93
|
+
}, e[35] = y) : y = e[35];
|
|
94
|
+
let S;
|
|
95
|
+
e[36] !== l ? (S = l && /* @__PURE__ */ k(x, { name: l, "aria-hidden": "true" }), e[36] = l, e[37] = S) : S = e[37];
|
|
96
|
+
let w;
|
|
97
|
+
e[38] !== r || e[39] !== S ? (w = /* @__PURE__ */ N("div", { role: "gridcell", "aria-colindex": 1, style: y, children: [
|
|
98
|
+
S,
|
|
99
|
+
r
|
|
100
|
+
] }), e[38] = r, e[39] = S, e[40] = w) : w = e[40];
|
|
101
|
+
let R;
|
|
102
|
+
if (e[41] !== o ? (R = o && /* @__PURE__ */ k(x, { name: "cross" }), e[41] = o, e[42] = R) : R = e[42], c = /* @__PURE__ */ N("div", { role: "row", "aria-label": Q(O, r, A, n, m, o), "aria-selected": n && !o, "aria-disabled": A && !o, id: `${a}-chip-${p}`, className: F, tabIndex: f, onClick: d, ref: s, ...h, children: [
|
|
103
|
+
w,
|
|
104
|
+
R
|
|
105
|
+
] }), !i) {
|
|
106
|
+
let b;
|
|
107
|
+
e[43] !== c ? (b = /* @__PURE__ */ k($.Anchor, { children: c }), e[43] = c, e[44] = b) : b = e[44];
|
|
108
|
+
const P = /* @__PURE__ */ k($.Content, { children: V(O, A, n, o) });
|
|
109
|
+
let T;
|
|
110
|
+
e[45] !== b || e[46] !== P ? (T = /* @__PURE__ */ N($, { placement: "top", tooltipOffset: 6, children: [
|
|
111
|
+
b,
|
|
112
|
+
P
|
|
113
|
+
] }), e[45] = b, e[46] = P, e[47] = T) : T = e[47], v = T;
|
|
114
|
+
break e;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
e[16] = i, e[17] = A, e[18] = a, e[19] = l, e[20] = p, e[21] = o, e[22] = n, e[23] = r, e[24] = d, e[25] = s, e[26] = h, e[27] = m, e[28] = u, e[29] = G, e[30] = f, e[31] = c, e[32] = v;
|
|
118
|
+
} else
|
|
119
|
+
c = e[31], v = e[32];
|
|
120
|
+
return v !== Symbol.for("react.early_return_sentinel") ? v : c;
|
|
121
|
+
});
|
|
122
|
+
X.displayName = "DSChip";
|
|
123
|
+
export {
|
|
124
|
+
de as C,
|
|
125
|
+
Z as D,
|
|
126
|
+
pe as a,
|
|
127
|
+
J as b,
|
|
128
|
+
K as c,
|
|
129
|
+
V as d,
|
|
130
|
+
X as e,
|
|
131
|
+
Q as g,
|
|
132
|
+
ce as v
|
|
133
|
+
};
|