@stihl-design-system/components 1.0.0-RC.31 → 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 +6 -0
- 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.Y-YzUHhF.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.D_1YqlWl.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,132 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as go, jsx as z } from "react/jsx-runtime";
|
|
3
|
+
import { d as ko } from "./index.CgTHIF3K.js";
|
|
4
|
+
import { c as ao } from "./index.CEyLAtio.js";
|
|
5
|
+
import { forwardRef as mo } from "react";
|
|
6
|
+
import { u as co } from "./useBreakpoint.CMOR9ZOB.js";
|
|
7
|
+
import { D as fo } from "./Icon.NSsVrYeq.js";
|
|
8
|
+
import { Tooltip as ho } from "../tooltip.CUCSRXd3.js";
|
|
9
|
+
import { g as uo } from "./helpers.BbWkXTr3.js";
|
|
10
|
+
import '../assets/LinkButton.xMvg_ojf.css';const bo = "ds-link-button_root_oblg9_1", vo = "ds-link-button_root--highlight_oblg9_75", po = "ds-link-button_root--dark-highlight_oblg9_75", Do = "ds-link-button_root--filled_oblg9_151", No = "ds-link-button_root--outline_oblg9_179", Oo = "ds-link-button_root--ghost_oblg9_206", Lo = "ds-link-button_root--ghost-flush_oblg9_231", So = "ds-link-button_root--small_oblg9_237", Fo = "ds-link-button_root--navigation_oblg9_317", Io = "ds-link-button_root--dark-filled_oblg9_393", Go = "ds-link-button_root--dark-outline_oblg9_450", yo = "ds-link-button_root--dark-ghost_oblg9_506", Bo = "ds-link-button_root--dark-ghost-flush_oblg9_560", Ho = "ds-link-button_root--icon-left_oblg9_635", To = "ds-link-button_root--icon-only_oblg9_638", wo = "ds-link-button_root--icon-only-small_oblg9_647", Eo = "ds-link-button_icon--navigation_oblg9_659", Po = "ds-link-button_label--hidden_oblg9_667", l = {
|
|
11
|
+
root: bo,
|
|
12
|
+
rootHighlight: vo,
|
|
13
|
+
rootDarkHighlight: po,
|
|
14
|
+
rootFilled: Do,
|
|
15
|
+
rootOutline: No,
|
|
16
|
+
rootGhost: Oo,
|
|
17
|
+
rootGhostFlush: Lo,
|
|
18
|
+
rootSmall: So,
|
|
19
|
+
rootNavigation: Fo,
|
|
20
|
+
rootDarkFilled: Io,
|
|
21
|
+
rootDarkOutline: Go,
|
|
22
|
+
rootDarkGhost: yo,
|
|
23
|
+
rootDarkGhostFlush: Bo,
|
|
24
|
+
rootIconLeft: Ho,
|
|
25
|
+
rootIconOnly: To,
|
|
26
|
+
rootIconOnlySmall: wo,
|
|
27
|
+
iconNavigation: Eo,
|
|
28
|
+
labelHidden: Po
|
|
29
|
+
}, Zo = ["medium", "small"], $o = ["filled", "highlight", "outline", "ghost", "navigation"], Ao = ({
|
|
30
|
+
variant: D,
|
|
31
|
+
size: N,
|
|
32
|
+
theme: o
|
|
33
|
+
}) => {
|
|
34
|
+
if (D === "navigation" && (N === "small" && console.warn(uo("DSLinkButton", 'A "size" prop should not be used in combination with variant="navigation". Please remove the "size" prop.')), o === "dark"))
|
|
35
|
+
throw new Error(uo("DSLinkButton", 'A DSLinkButton with variant="navigation" does not support theme="dark". Please remove the "theme" prop.'));
|
|
36
|
+
}, xo = mo((D, N) => {
|
|
37
|
+
const o = ko.c(71);
|
|
38
|
+
let a, c, d, h, i, s, e, g, u, _, O, L, S, F, I, G, y, r;
|
|
39
|
+
o[0] !== D ? ({
|
|
40
|
+
children: c,
|
|
41
|
+
aria: a,
|
|
42
|
+
className: d,
|
|
43
|
+
download: h,
|
|
44
|
+
hideLabel: O,
|
|
45
|
+
href: i,
|
|
46
|
+
iconName: s,
|
|
47
|
+
iconPosition: L,
|
|
48
|
+
iconSource: e,
|
|
49
|
+
isFlush: S,
|
|
50
|
+
referrerPolicy: g,
|
|
51
|
+
rel: u,
|
|
52
|
+
size: F,
|
|
53
|
+
target: I,
|
|
54
|
+
theme: G,
|
|
55
|
+
variant: y,
|
|
56
|
+
tooltip: r,
|
|
57
|
+
..._
|
|
58
|
+
} = D, o[0] = D, o[1] = a, o[2] = c, o[3] = d, o[4] = h, o[5] = i, o[6] = s, o[7] = e, o[8] = g, o[9] = u, o[10] = _, o[11] = O, o[12] = L, o[13] = S, o[14] = F, o[15] = I, o[16] = G, o[17] = y, o[18] = r) : (a = o[1], c = o[2], d = o[3], h = o[4], i = o[5], s = o[6], e = o[7], g = o[8], u = o[9], _ = o[10], O = o[11], L = o[12], S = o[13], F = o[14], I = o[15], G = o[16], y = o[17], r = o[18]);
|
|
59
|
+
const C = O === void 0 ? !1 : O, _o = L === void 0 ? "left" : L, B = S === void 0 ? !1 : S, H = F === void 0 ? "medium" : F, V = I === void 0 ? "_self" : I, n = G === void 0 ? "light" : G, t = y === void 0 ? "filled" : y;
|
|
60
|
+
process.env.NODE_ENV !== "production" && Ao({
|
|
61
|
+
variant: t,
|
|
62
|
+
size: H,
|
|
63
|
+
theme: n
|
|
64
|
+
});
|
|
65
|
+
const j = t === "filled", K = t === "highlight", R = t === "outline", U = t === "ghost" && B !== !0, M = t === "navigation", Z = t === "ghost" && B === !0, $ = n === "dark" && t === "filled", q = n === "dark" && t === "highlight", J = n === "dark" && t === "outline", Q = n === "dark" && t === "ghost" && B !== !0, W = n === "dark" && t === "ghost" && B === !0, X = H === "small" || t === "navigation", Y = _o === "left", oo = co(C) && H === "medium" && t !== "navigation", to = co(C) && H === "small" && t !== "navigation";
|
|
66
|
+
let T;
|
|
67
|
+
o[19] !== d || o[20] !== R || o[21] !== U || o[22] !== M || o[23] !== Z || o[24] !== $ || o[25] !== q || o[26] !== J || o[27] !== Q || o[28] !== W || o[29] !== X || o[30] !== Y || o[31] !== oo || o[32] !== to || o[33] !== j || o[34] !== K ? (T = ao(l.root, d, {
|
|
68
|
+
[l.rootFilled]: j,
|
|
69
|
+
[l.rootHighlight]: K,
|
|
70
|
+
[l.rootOutline]: R,
|
|
71
|
+
[l.rootGhost]: U,
|
|
72
|
+
[l.rootNavigation]: M,
|
|
73
|
+
[l.rootGhostFlush]: Z,
|
|
74
|
+
[l.rootDarkFilled]: $,
|
|
75
|
+
[l.rootDarkHighlight]: q,
|
|
76
|
+
[l.rootDarkOutline]: J,
|
|
77
|
+
[l.rootDarkGhost]: Q,
|
|
78
|
+
[l.rootDarkGhostFlush]: W,
|
|
79
|
+
[l.rootSmall]: X,
|
|
80
|
+
[l.rootIconLeft]: Y,
|
|
81
|
+
[l.rootIconOnly]: oo,
|
|
82
|
+
[l.rootIconOnlySmall]: to
|
|
83
|
+
}), o[19] = d, o[20] = R, o[21] = U, o[22] = M, o[23] = Z, o[24] = $, o[25] = q, o[26] = J, o[27] = Q, o[28] = W, o[29] = X, o[30] = Y, o[31] = oo, o[32] = to, o[33] = j, o[34] = K, o[35] = T) : T = o[35];
|
|
84
|
+
const lo = T, no = co(C) && t !== "navigation";
|
|
85
|
+
let w;
|
|
86
|
+
o[36] !== no ? (w = ao({
|
|
87
|
+
[l.labelHidden]: no
|
|
88
|
+
}), o[36] = no, o[37] = w) : w = o[37];
|
|
89
|
+
const io = w, so = t === "navigation";
|
|
90
|
+
let E;
|
|
91
|
+
o[38] !== so ? (E = ao({
|
|
92
|
+
[l.iconNavigation]: so
|
|
93
|
+
}), o[38] = so, o[39] = E) : E = o[39];
|
|
94
|
+
const eo = E, ro = n === "light" && t === "filled" || n === "dark" && t === "outline" || n === "dark" && t === "ghost" ? "dark" : "light", k = i === void 0 ? "span" : "a";
|
|
95
|
+
let m;
|
|
96
|
+
o[40] !== k || o[41] !== h || o[42] !== i || o[43] !== g || o[44] !== u || o[45] !== V ? (m = k === "a" && {
|
|
97
|
+
href: i,
|
|
98
|
+
target: V,
|
|
99
|
+
rel: u,
|
|
100
|
+
referrerPolicy: g,
|
|
101
|
+
download: h
|
|
102
|
+
}, o[40] = k, o[41] = h, o[42] = i, o[43] = g, o[44] = u, o[45] = V, o[46] = m) : m = o[46];
|
|
103
|
+
let f;
|
|
104
|
+
o[47] !== c || o[48] !== io ? (f = /* @__PURE__ */ z("span", { className: io, children: c }), o[47] = c, o[48] = io, o[49] = f) : f = o[49];
|
|
105
|
+
let b;
|
|
106
|
+
o[50] !== eo || o[51] !== s || o[52] !== e || o[53] !== ro ? (b = (s || e) && /* @__PURE__ */ z(fo, { name: s, theme: ro, source: e, className: eo, "aria-hidden": "true" }), o[50] = eo, o[51] = s, o[52] = e, o[53] = ro, o[54] = b) : b = o[54];
|
|
107
|
+
let P;
|
|
108
|
+
o[55] !== k || o[56] !== a || o[57] !== N || o[58] !== _ || o[59] !== lo || o[60] !== m || o[61] !== f || o[62] !== b ? (P = /* @__PURE__ */ go(k, { className: lo, ...m, ...a, ..._, ref: N, children: [
|
|
109
|
+
f,
|
|
110
|
+
b
|
|
111
|
+
] }), o[55] = k, o[56] = a, o[57] = N, o[58] = _, o[59] = lo, o[60] = m, o[61] = f, o[62] = b, o[63] = P) : P = o[63];
|
|
112
|
+
const A = P;
|
|
113
|
+
if (r) {
|
|
114
|
+
let v;
|
|
115
|
+
o[64] !== A ? (v = /* @__PURE__ */ z(ho.Anchor, { children: A }), o[64] = A, o[65] = v) : v = o[65];
|
|
116
|
+
let p;
|
|
117
|
+
o[66] !== r ? (p = /* @__PURE__ */ z(ho.Content, { children: r }), o[66] = r, o[67] = p) : p = o[67];
|
|
118
|
+
let x;
|
|
119
|
+
return o[68] !== v || o[69] !== p ? (x = /* @__PURE__ */ go(ho, { placement: "top", tooltipOffset: 6, children: [
|
|
120
|
+
v,
|
|
121
|
+
p
|
|
122
|
+
] }), o[68] = v, o[69] = p, o[70] = x) : x = o[70], x;
|
|
123
|
+
}
|
|
124
|
+
return A;
|
|
125
|
+
});
|
|
126
|
+
xo.displayName = "DSLinkButton";
|
|
127
|
+
export {
|
|
128
|
+
xo as D,
|
|
129
|
+
Zo as L,
|
|
130
|
+
$o as a,
|
|
131
|
+
Ao as v
|
|
132
|
+
};
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as k, jsxs as Y } from "react/jsx-runtime";
|
|
3
|
+
import { d as U } from "./index.CgTHIF3K.js";
|
|
4
|
+
import { isValidElement as z, useState as Z, createContext as A, forwardRef as J, cloneElement as B, useContext as K } from "react";
|
|
5
|
+
import { u as R, a as ee, b as te, c as ne, d as se, o as oe, e as L, f as le, F as ce, g as ae, h as re } from "./floating-ui.react.DCyAzlZ4.js";
|
|
6
|
+
import { c as H } from "./index.CEyLAtio.js";
|
|
7
|
+
import { g as $, c as q } from "./helpers.BbWkXTr3.js";
|
|
8
|
+
import { D as ie } from "./Header.um5MlziB.js";
|
|
9
|
+
import { a as ue } from "./floating-ui.dom.VgHc0h4l.js";
|
|
10
|
+
import '../assets/MegaMenu.DX9gChtY.css';const de = "ds-mega-menu_root_11fw1_1", fe = "ds-mega-menu_content_11fw1_109", me = "ds-mega-menu_content--variant-full_11fw1_134", Me = "ds-mega-menu_backdrop_11fw1_139", I = {
|
|
11
|
+
root: de,
|
|
12
|
+
content: fe,
|
|
13
|
+
contentVariantFull: me,
|
|
14
|
+
backdrop: Me
|
|
15
|
+
}, ge = 9, he = (s) => {
|
|
16
|
+
const t = U.c(17);
|
|
17
|
+
let e;
|
|
18
|
+
t[0] !== s ? (e = s === void 0 ? {} : s, t[0] = s, t[1] = e) : e = t[1];
|
|
19
|
+
const {
|
|
20
|
+
initialOpen: n,
|
|
21
|
+
isOpen: o,
|
|
22
|
+
onOpenChange: l
|
|
23
|
+
} = e, r = n === void 0 ? !1 : n, [M, c] = Z(r), a = o ?? M, f = l ?? c;
|
|
24
|
+
let g;
|
|
25
|
+
t[2] === Symbol.for("react.memo_cache_sentinel") ? (g = [oe(ge)], t[2] = g) : g = t[2];
|
|
26
|
+
let C;
|
|
27
|
+
t[3] !== a || t[4] !== f ? (C = {
|
|
28
|
+
placement: "bottom-start",
|
|
29
|
+
open: a,
|
|
30
|
+
onOpenChange: f,
|
|
31
|
+
whileElementsMounted: ue,
|
|
32
|
+
strategy: "absolute",
|
|
33
|
+
transform: !1,
|
|
34
|
+
middleware: g
|
|
35
|
+
}, t[3] = a, t[4] = f, t[5] = C) : C = t[5];
|
|
36
|
+
const i = R(C), m = i.context;
|
|
37
|
+
let u;
|
|
38
|
+
t[6] === Symbol.for("react.memo_cache_sentinel") ? (u = {
|
|
39
|
+
enabled: !0
|
|
40
|
+
}, t[6] = u) : u = t[6];
|
|
41
|
+
const p = ee(m, u), _ = te(m);
|
|
42
|
+
let h;
|
|
43
|
+
t[7] === Symbol.for("react.memo_cache_sentinel") ? (h = {
|
|
44
|
+
role: "menu"
|
|
45
|
+
}, t[7] = h) : h = t[7];
|
|
46
|
+
const N = ne(m, h);
|
|
47
|
+
let d;
|
|
48
|
+
t[8] !== p || t[9] !== _ || t[10] !== N ? (d = [p, _, N], t[8] = p, t[9] = _, t[10] = N, t[11] = d) : d = t[11];
|
|
49
|
+
const S = se(d);
|
|
50
|
+
let E, D;
|
|
51
|
+
return t[12] !== i || t[13] !== S || t[14] !== a || t[15] !== f ? (D = {
|
|
52
|
+
open: a,
|
|
53
|
+
setOpen: f,
|
|
54
|
+
...S,
|
|
55
|
+
...i
|
|
56
|
+
}, t[12] = i, t[13] = S, t[14] = a, t[15] = f, t[16] = D) : D = t[16], E = D, E;
|
|
57
|
+
}, pe = (s) => {
|
|
58
|
+
if (!z(s))
|
|
59
|
+
throw new Error($("DSMegaMenu", "DSMegaMenu.Anchor child must be a valid React element."));
|
|
60
|
+
}, Se = ({
|
|
61
|
+
hasContent: s,
|
|
62
|
+
hasAnchor: t
|
|
63
|
+
}) => {
|
|
64
|
+
if (!s)
|
|
65
|
+
throw new Error($("DSMegaMenu", "A DSMegaMenu must have a <DSMegaMenu.Content> component as a child. Please add it to the children of DSMegaMenu."));
|
|
66
|
+
if (!t)
|
|
67
|
+
throw new Error($("DSMegaMenu", "A DSMegaMenu must have a <DSMegaMenu.Anchor> component as a child. Please add it to the children of DSMegaMenu."));
|
|
68
|
+
}, Q = A(null), W = () => {
|
|
69
|
+
const s = K(Q);
|
|
70
|
+
if (s == null)
|
|
71
|
+
throw new Error($("DSMegaMenu", "Components like DSMegaMenu.Anchor or DSMegaMenu.Content must be wrapped in <DSMegaMenu />."));
|
|
72
|
+
return s;
|
|
73
|
+
}, j = (s) => {
|
|
74
|
+
const t = U.c(9);
|
|
75
|
+
let e, n;
|
|
76
|
+
t[0] !== s ? ({
|
|
77
|
+
children: e,
|
|
78
|
+
...n
|
|
79
|
+
} = s, t[0] = s, t[1] = e, t[2] = n) : (e = t[1], n = t[2]);
|
|
80
|
+
let o;
|
|
81
|
+
t[3] !== n ? (o = {
|
|
82
|
+
...n
|
|
83
|
+
}, t[3] = n, t[4] = o) : o = t[4];
|
|
84
|
+
const l = he(o), r = q(e, j.Content), M = q(e, G);
|
|
85
|
+
process.env.NODE_ENV !== "production" && Se({
|
|
86
|
+
hasContent: r,
|
|
87
|
+
hasAnchor: M
|
|
88
|
+
});
|
|
89
|
+
let c;
|
|
90
|
+
return t[5] !== e || t[6] !== l || t[7] !== n ? (c = /* @__PURE__ */ k(Q.Provider, { value: l, ...n, children: e }), t[5] = e, t[6] = l, t[7] = n, t[8] = c) : c = t[8], c;
|
|
91
|
+
}, G = J((s, t) => {
|
|
92
|
+
const e = U.c(12);
|
|
93
|
+
let n, o;
|
|
94
|
+
e[0] !== s ? ({
|
|
95
|
+
children: n,
|
|
96
|
+
...o
|
|
97
|
+
} = s, e[0] = s, e[1] = n, e[2] = o) : (n = e[1], o = e[2]), process.env.NODE_ENV !== "production" && pe(n);
|
|
98
|
+
const l = W(), r = n.ref;
|
|
99
|
+
let M;
|
|
100
|
+
e[3] !== r || e[4] !== l.refs.setReference || e[5] !== t ? (M = [l.refs.setReference, t, r], e[3] = r, e[4] = l.refs.setReference, e[5] = t, e[6] = M) : M = e[6];
|
|
101
|
+
const c = L(M);
|
|
102
|
+
if (z(n)) {
|
|
103
|
+
let a;
|
|
104
|
+
return e[7] !== n || e[8] !== l || e[9] !== o || e[10] !== c ? (a = B(n, l.getReferenceProps({
|
|
105
|
+
ref: c,
|
|
106
|
+
...o,
|
|
107
|
+
...n.props,
|
|
108
|
+
"data-state": l.open ? "open" : "closed"
|
|
109
|
+
})), e[7] = n, e[8] = l, e[9] = o, e[10] = c, e[11] = a) : a = e[11], a;
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
G.displayName = "DSMegaMenu.Anchor";
|
|
113
|
+
const X = J((s, t) => {
|
|
114
|
+
const e = U.c(48);
|
|
115
|
+
let n, o, l, r;
|
|
116
|
+
e[0] !== s ? ({
|
|
117
|
+
style: r,
|
|
118
|
+
className: o,
|
|
119
|
+
children: n,
|
|
120
|
+
...l
|
|
121
|
+
} = s, e[0] = s, e[1] = n, e[2] = o, e[3] = l, e[4] = r) : (n = e[1], o = e[2], l = e[3], r = e[4]);
|
|
122
|
+
const M = W();
|
|
123
|
+
let c, a, f, g;
|
|
124
|
+
e[5] !== M ? ({
|
|
125
|
+
context: c,
|
|
126
|
+
floatingStyles: a,
|
|
127
|
+
getFloatingProps: f,
|
|
128
|
+
...g
|
|
129
|
+
} = M, e[5] = M, e[6] = c, e[7] = a, e[8] = f, e[9] = g) : (c = e[6], a = e[7], f = e[8], g = e[9]);
|
|
130
|
+
const {
|
|
131
|
+
variant: C,
|
|
132
|
+
bannerAreaRef: i,
|
|
133
|
+
topBarAreaRef: m,
|
|
134
|
+
mainNavigationAreaRef: u
|
|
135
|
+
} = K(ie);
|
|
136
|
+
let p;
|
|
137
|
+
e[10] !== t || e[11] !== g.refs.setFloating ? (p = [g.refs.setFloating, t], e[10] = t, e[11] = g.refs.setFloating, e[12] = p) : p = e[12];
|
|
138
|
+
const _ = L(p);
|
|
139
|
+
let h;
|
|
140
|
+
e[13] === Symbol.for("react.memo_cache_sentinel") ? (h = {
|
|
141
|
+
duration: {
|
|
142
|
+
open: 400,
|
|
143
|
+
close: 400
|
|
144
|
+
}
|
|
145
|
+
}, e[13] = h) : h = e[13];
|
|
146
|
+
const {
|
|
147
|
+
isMounted: N,
|
|
148
|
+
status: d
|
|
149
|
+
} = le(c, h);
|
|
150
|
+
let S;
|
|
151
|
+
e[14] !== o ? (S = H(I.root, o), e[14] = o, e[15] = S) : S = e[15];
|
|
152
|
+
const E = S, D = C === "full";
|
|
153
|
+
let V;
|
|
154
|
+
e[16] !== D ? (V = H(I.content, {
|
|
155
|
+
[I.contentVariantFull]: D
|
|
156
|
+
}), e[16] = D, e[17] = V) : V = e[17];
|
|
157
|
+
const T = V;
|
|
158
|
+
if (!N)
|
|
159
|
+
return null;
|
|
160
|
+
let w;
|
|
161
|
+
e[18] !== d ? (w = /* @__PURE__ */ k("div", { className: I.backdrop, "data-status": d }), e[18] = d, e[19] = w) : w = e[19];
|
|
162
|
+
let x;
|
|
163
|
+
e[20] !== (i == null ? void 0 : i.current) || e[21] !== (u == null ? void 0 : u.current) || e[22] !== (m == null ? void 0 : m.current) ? (x = () => [u == null ? void 0 : u.current, m == null ? void 0 : m.current, i == null ? void 0 : i.current].filter(Boolean), e[20] = i == null ? void 0 : i.current, e[21] = u == null ? void 0 : u.current, e[22] = m == null ? void 0 : m.current, e[23] = x) : x = e[23];
|
|
164
|
+
let F;
|
|
165
|
+
e[24] !== a || e[25] !== r ? (F = {
|
|
166
|
+
...a,
|
|
167
|
+
...r
|
|
168
|
+
}, e[24] = a, e[25] = r, e[26] = F) : F = e[26];
|
|
169
|
+
let O;
|
|
170
|
+
e[27] !== f || e[28] !== l ? (O = f(l), e[27] = f, e[28] = l, e[29] = O) : O = e[29];
|
|
171
|
+
let v;
|
|
172
|
+
e[30] !== n || e[31] !== T || e[32] !== d ? (v = /* @__PURE__ */ k("div", { className: T, "data-status": d, children: n }), e[30] = n, e[31] = T, e[32] = d, e[33] = v) : v = e[33];
|
|
173
|
+
let y;
|
|
174
|
+
e[34] !== E || e[35] !== _ || e[36] !== d || e[37] !== O || e[38] !== v || e[39] !== F ? (y = /* @__PURE__ */ k("div", { ref: _, style: F, className: E, "data-status": d, ...O, children: v }), e[34] = E, e[35] = _, e[36] = d, e[37] = O, e[38] = v, e[39] = F, e[40] = y) : y = e[40];
|
|
175
|
+
let b;
|
|
176
|
+
e[41] !== c || e[42] !== y || e[43] !== x ? (b = /* @__PURE__ */ k(ce, { context: c, modal: !1, outsideElementsInert: !0, getInsideElements: x, children: y }), e[41] = c, e[42] = y, e[43] = x, e[44] = b) : b = e[44];
|
|
177
|
+
let P;
|
|
178
|
+
return e[45] !== b || e[46] !== w ? (P = /* @__PURE__ */ k(ae, { children: /* @__PURE__ */ Y(re, { lockScroll: !0, children: [
|
|
179
|
+
w,
|
|
180
|
+
b
|
|
181
|
+
] }) }), e[45] = b, e[46] = w, e[47] = P) : P = e[47], P;
|
|
182
|
+
});
|
|
183
|
+
X.displayName = "DSMegaMenu.Content";
|
|
184
|
+
j.Anchor = G;
|
|
185
|
+
j.Content = X;
|
|
186
|
+
j.displayName = "DSMegaMenu";
|
|
187
|
+
export {
|
|
188
|
+
j as D,
|
|
189
|
+
Se as a,
|
|
190
|
+
he as u,
|
|
191
|
+
pe as v
|
|
192
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as t, jsxs as g, Fragment as m } from "react/jsx-runtime";
|
|
3
3
|
import { isValidElement as h, cloneElement as f } from "react";
|
|
4
|
-
import { D as B } from "./Icon.
|
|
4
|
+
import { D as B } from "./Icon.NSsVrYeq.js";
|
|
5
5
|
import { NumberIndicator as N } from "../numberindicator.Ddf3ESi7.js";
|
|
6
6
|
import '../assets/NavigationTabList.CFlVhUzS.css';const W = "ds-tabs_tabs-wrapper_ccgp4_1", w = "ds-tabs_scroll-wrapper_ccgp4_6", D = "ds-tabs_scroller_ccgp4_17", j = "ds-tabs_scroller--centered_ccgp4_28", v = "ds-tabs_tab_ccgp4_1", y = "ds-tabs_scroll-button_ccgp4_105", E = "ds-tabs_scroll-button--hidden_ccgp4_110", H = "ds-tabs_scroll-button--right_ccgp4_114", L = "ds-tabs_indicator_ccgp4_126", R = {
|
|
7
7
|
tabsWrapper: W,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { jsx as v } from "react/jsx-runtime";
|
|
3
3
|
import { d as u } from "./index.CgTHIF3K.js";
|
|
4
4
|
import { useState as T, useEffect as y } from "react";
|
|
5
|
-
import { TabList as h } from "../tablist.
|
|
5
|
+
import { TabList as h } from "../tablist.V7DBklhE.js";
|
|
6
6
|
import { g as m, r as E } from "./helpers.BbWkXTr3.js";
|
|
7
7
|
const _ = ["left", "center"], j = ["prev", "next"], S = ({
|
|
8
8
|
aria: a,
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { jsx as p, jsxs as F } from "react/jsx-runtime";
|
|
3
3
|
import { d as R } from "./index.CgTHIF3K.js";
|
|
4
4
|
import { c as k } from "./index.CEyLAtio.js";
|
|
5
|
-
import { D as W } from "./Button.
|
|
6
|
-
import { D as y } from "./Icon.
|
|
5
|
+
import { D as W } from "./Button.Cf1CKq8N.js";
|
|
6
|
+
import { D as y } from "./Icon.NSsVrYeq.js";
|
|
7
7
|
import '../assets/Notification.BOuaA5GT.css';const L = "ds-notification_root_1jsx7_1", P = "ds-notification_root--success_1jsx7_26", V = "ds-notification_root--error_1jsx7_30", z = "ds-notification_root--warning_1jsx7_34", Y = "ds-notification_root--hide-icon_1jsx7_38", $ = "ds-notification_content_1jsx7_52", q = "ds-notification_content--hide-close-button_1jsx7_59", G = "ds-notification_content--hide-icon_1jsx7_62", J = "ds-notification_icon_1jsx7_66", K = "ds-notification_message_1jsx7_70", M = "ds-notification_custom-action-area_1jsx7_167", s = {
|
|
8
8
|
root: L,
|
|
9
9
|
rootSuccess: P,
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as _, jsxs as M, Fragment as U } from "react/jsx-runtime";
|
|
3
|
+
import { d as V } from "./index.CgTHIF3K.js";
|
|
4
|
+
import { useState as W, useRef as L, useMemo as z, createContext as q, forwardRef as T, isValidElement as J, cloneElement as K, useContext as Q } from "react";
|
|
5
|
+
import { u as X, o as Y, i as Z, s as ee, j as oe, a as te, b as se, c as re, d as ne, e as O, f as ae, k as le, g as ie, F as ce } from "./floating-ui.react.DCyAzlZ4.js";
|
|
6
|
+
import { c as G } from "./index.CEyLAtio.js";
|
|
7
|
+
import { g as R, c as k } from "./helpers.BbWkXTr3.js";
|
|
8
|
+
import { D as pe } from "./Button.Cf1CKq8N.js";
|
|
9
|
+
import { a as de } from "./floating-ui.dom.VgHc0h4l.js";
|
|
10
|
+
import '../assets/Popover.CXyUaXiO.css';const fe = "ds-popover_popover_xg81f_5", he = "ds-popover_popover--no-arrow_xg81f_64", ue = "ds-popover_popover--variant-grey_xg81f_67", ve = "ds-popover_arrow_xg81f_71", me = "ds-popover_arrow--variant-grey_xg81f_90", ge = "ds-popover_default-anchor_xg81f_107", E = {
|
|
11
|
+
popover: fe,
|
|
12
|
+
popoverNoArrow: he,
|
|
13
|
+
popoverVariantGrey: ue,
|
|
14
|
+
arrow: ve,
|
|
15
|
+
arrowVariantGrey: me,
|
|
16
|
+
defaultAnchor: ge
|
|
17
|
+
}, we = ({
|
|
18
|
+
initialOpen: n = !1,
|
|
19
|
+
placement: o = "bottom",
|
|
20
|
+
isOpen: e,
|
|
21
|
+
popoverOffset: t = 6,
|
|
22
|
+
showArrow: s = !0,
|
|
23
|
+
variant: h = "default",
|
|
24
|
+
defaultAnchorButtonProps: a,
|
|
25
|
+
onOpenChange: i
|
|
26
|
+
} = {}) => {
|
|
27
|
+
const [l, f] = W(n), c = e ?? l, r = i ?? f, p = L(null), u = X({
|
|
28
|
+
placement: o,
|
|
29
|
+
open: c,
|
|
30
|
+
strategy: "fixed",
|
|
31
|
+
onOpenChange: r,
|
|
32
|
+
whileElementsMounted: de,
|
|
33
|
+
middleware: [Y(t + (s ? 7 : 0)), Z({
|
|
34
|
+
// default configuration taken from https://floating-ui.com/docs/flip
|
|
35
|
+
crossAxis: o.includes("-"),
|
|
36
|
+
fallbackAxisSideDirection: "end",
|
|
37
|
+
padding: t
|
|
38
|
+
}), ee({
|
|
39
|
+
padding: t
|
|
40
|
+
}), ...s ? [oe({
|
|
41
|
+
element: p
|
|
42
|
+
})] : []]
|
|
43
|
+
}), d = u.context, v = te(d, {
|
|
44
|
+
enabled: !0
|
|
45
|
+
}), P = se(d), D = re(d), S = ne([v, P, D]);
|
|
46
|
+
return z(() => ({
|
|
47
|
+
open: c,
|
|
48
|
+
popoverOffset: t,
|
|
49
|
+
setOpen: r,
|
|
50
|
+
arrowRef: p,
|
|
51
|
+
showArrow: s,
|
|
52
|
+
defaultAnchorButtonProps: a,
|
|
53
|
+
variant: h,
|
|
54
|
+
...S,
|
|
55
|
+
...u
|
|
56
|
+
}), [c, t, r, p, s, a, h, S, u]);
|
|
57
|
+
}, Pe = ({
|
|
58
|
+
children: n,
|
|
59
|
+
hasContent: o,
|
|
60
|
+
hasAnchor: e
|
|
61
|
+
}) => {
|
|
62
|
+
if (!n)
|
|
63
|
+
throw new Error(R("DSPopover", "A DSPopover must have children."));
|
|
64
|
+
if (!o && e)
|
|
65
|
+
throw new Error(R("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(R("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
|
+
}, De = ({
|
|
69
|
+
showArrow: n,
|
|
70
|
+
variant: o
|
|
71
|
+
}) => {
|
|
72
|
+
o === "grey" && n === !1 && console.warn(R("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
|
+
}, H = q(null), I = () => {
|
|
74
|
+
const n = Q(H);
|
|
75
|
+
if (n == null)
|
|
76
|
+
throw new Error(R("DSPopover", "Components like DSPopover.Anchor or DSPopover.Content must be wrapped in <DSPopover />."));
|
|
77
|
+
return n;
|
|
78
|
+
}, y = (n) => {
|
|
79
|
+
const o = V.c(20);
|
|
80
|
+
let e, t;
|
|
81
|
+
o[0] !== n ? ({
|
|
82
|
+
children: e,
|
|
83
|
+
...t
|
|
84
|
+
} = n, o[0] = n, o[1] = e, o[2] = t) : (e = o[1], t = o[2]);
|
|
85
|
+
let s;
|
|
86
|
+
o[3] !== t ? (s = {
|
|
87
|
+
...t
|
|
88
|
+
}, o[3] = t, o[4] = s) : s = o[4];
|
|
89
|
+
const h = we(s);
|
|
90
|
+
let a, i;
|
|
91
|
+
o[5] !== e || o[6] !== t ? (i = k(e, y.Content), a = k(e, y.Anchor), process.env.NODE_ENV !== "production" && (Pe({
|
|
92
|
+
children: e,
|
|
93
|
+
hasContent: i,
|
|
94
|
+
hasAnchor: a
|
|
95
|
+
}), De({
|
|
96
|
+
showArrow: t.showArrow,
|
|
97
|
+
variant: t.variant
|
|
98
|
+
})), o[5] = e, o[6] = t, o[7] = a, o[8] = i) : (a = o[7], i = o[8]);
|
|
99
|
+
const l = !i && !a && e !== null;
|
|
100
|
+
let f;
|
|
101
|
+
o[9] !== e || o[10] !== l ? (f = l ? /* @__PURE__ */ M(U, { children: [
|
|
102
|
+
/* @__PURE__ */ _(y.Anchor, {}),
|
|
103
|
+
/* @__PURE__ */ _(y.Content, { children: e })
|
|
104
|
+
] }) : e, o[9] = e, o[10] = l, o[11] = f) : f = o[11];
|
|
105
|
+
const c = f, r = i || l, p = a || l;
|
|
106
|
+
let m;
|
|
107
|
+
o[12] !== h || o[13] !== r || o[14] !== p ? (m = {
|
|
108
|
+
...h,
|
|
109
|
+
hasContent: r,
|
|
110
|
+
hasAnchor: p
|
|
111
|
+
}, o[12] = h, o[13] = r, o[14] = p, o[15] = m) : m = o[15];
|
|
112
|
+
const u = m;
|
|
113
|
+
let d;
|
|
114
|
+
return o[16] !== c || o[17] !== u || o[18] !== t ? (d = /* @__PURE__ */ _(H.Provider, { value: u, ...t, children: c }), o[16] = c, o[17] = u, o[18] = t, o[19] = d) : d = o[19], d;
|
|
115
|
+
}, $ = T((n, o) => {
|
|
116
|
+
const e = V.c(28);
|
|
117
|
+
let t, s;
|
|
118
|
+
e[0] !== n ? ({
|
|
119
|
+
children: t,
|
|
120
|
+
...s
|
|
121
|
+
} = n, e[0] = n, e[1] = t, e[2] = s) : (t = e[1], s = e[2]);
|
|
122
|
+
const {
|
|
123
|
+
context: h,
|
|
124
|
+
defaultAnchorButtonProps: a,
|
|
125
|
+
refs: i,
|
|
126
|
+
hasAnchor: l,
|
|
127
|
+
getReferenceProps: f
|
|
128
|
+
} = I();
|
|
129
|
+
let c;
|
|
130
|
+
e[3] !== a ? (c = a || {}, e[3] = a, e[4] = c) : c = e[4];
|
|
131
|
+
let r, p;
|
|
132
|
+
e[5] !== c ? ({
|
|
133
|
+
label: p,
|
|
134
|
+
...r
|
|
135
|
+
} = c, e[5] = c, e[6] = r, e[7] = p) : (r = e[6], p = e[7]);
|
|
136
|
+
const m = p === void 0 ? "Toggle popover" : p, u = t ? t == null ? void 0 : t.ref : null;
|
|
137
|
+
let d;
|
|
138
|
+
e[8] !== u || e[9] !== o || e[10] !== i.setReference ? (d = [i.setReference, o, u], e[8] = u, e[9] = o, e[10] = i.setReference, e[11] = d) : d = e[11];
|
|
139
|
+
const v = O(d);
|
|
140
|
+
if (l && t && J(t)) {
|
|
141
|
+
const A = t.props, x = h.open ? "open" : "closed";
|
|
142
|
+
let w;
|
|
143
|
+
return e[12] !== t || e[13] !== f || e[14] !== s || e[15] !== v || e[16] !== A || e[17] !== x ? (w = K(t, f({
|
|
144
|
+
ref: v,
|
|
145
|
+
...s,
|
|
146
|
+
...A,
|
|
147
|
+
"data-state": x
|
|
148
|
+
})), e[12] = t, e[13] = f, e[14] = s, e[15] = v, e[16] = A, e[17] = x, e[18] = w) : w = e[18], w;
|
|
149
|
+
}
|
|
150
|
+
const P = h.open ? "open" : "closed";
|
|
151
|
+
let D;
|
|
152
|
+
e[19] !== f || e[20] !== s ? (D = f(s), e[19] = f, e[20] = s, e[21] = D) : D = e[21];
|
|
153
|
+
const S = t ?? m;
|
|
154
|
+
let g;
|
|
155
|
+
return e[22] !== v || e[23] !== r || e[24] !== P || e[25] !== D || e[26] !== S ? (g = /* @__PURE__ */ _(pe, { ...r, ref: v, type: "button", "data-state": P, ...D, size: "small", hideLabel: !0, iconName: "circle-info-inverted", variant: "ghost", className: E.defaultAnchor, children: S }), e[22] = v, e[23] = r, e[24] = P, e[25] = D, e[26] = S, e[27] = g) : g = e[27], g;
|
|
156
|
+
});
|
|
157
|
+
$.displayName = "DSPopover.Anchor";
|
|
158
|
+
const j = T((n, o) => {
|
|
159
|
+
const e = V.c(38);
|
|
160
|
+
let t, s, h, a, i;
|
|
161
|
+
e[0] !== n ? ({
|
|
162
|
+
style: i,
|
|
163
|
+
className: s,
|
|
164
|
+
classNameArrow: h,
|
|
165
|
+
children: t,
|
|
166
|
+
...a
|
|
167
|
+
} = n, e[0] = n, e[1] = t, e[2] = s, e[3] = h, e[4] = a, e[5] = i) : (t = e[1], s = e[2], h = e[3], a = e[4], i = e[5]);
|
|
168
|
+
const {
|
|
169
|
+
context: l,
|
|
170
|
+
refs: f,
|
|
171
|
+
floatingStyles: c,
|
|
172
|
+
showArrow: r,
|
|
173
|
+
variant: p,
|
|
174
|
+
getFloatingProps: m,
|
|
175
|
+
arrowRef: u
|
|
176
|
+
} = I();
|
|
177
|
+
let d;
|
|
178
|
+
e[6] !== o || e[7] !== f.setFloating ? (d = [f.setFloating, o], e[6] = o, e[7] = f.setFloating, e[8] = d) : d = e[8];
|
|
179
|
+
const v = O(d);
|
|
180
|
+
let P;
|
|
181
|
+
e[9] === Symbol.for("react.memo_cache_sentinel") ? (P = {
|
|
182
|
+
duration: {
|
|
183
|
+
open: 250,
|
|
184
|
+
close: 250
|
|
185
|
+
}
|
|
186
|
+
}, e[9] = P) : P = e[9];
|
|
187
|
+
const {
|
|
188
|
+
isMounted: D,
|
|
189
|
+
status: S
|
|
190
|
+
} = ae(l, P);
|
|
191
|
+
if (!D)
|
|
192
|
+
return null;
|
|
193
|
+
let g;
|
|
194
|
+
e[10] !== c || e[11] !== i ? (g = {
|
|
195
|
+
...c,
|
|
196
|
+
...i
|
|
197
|
+
}, e[10] = c, e[11] = i, e[12] = g) : g = e[12];
|
|
198
|
+
const A = !r, x = p === "grey" && r;
|
|
199
|
+
let w;
|
|
200
|
+
e[13] !== s || e[14] !== A || e[15] !== x ? (w = G(E.popover, s, {
|
|
201
|
+
[E.popoverNoArrow]: A,
|
|
202
|
+
[E.popoverVariantGrey]: x
|
|
203
|
+
}), e[13] = s, e[14] = A, e[15] = x, e[16] = w) : w = e[16];
|
|
204
|
+
const B = l.placement;
|
|
205
|
+
let C;
|
|
206
|
+
e[17] !== m || e[18] !== a ? (C = m(a), e[17] = m, e[18] = a, e[19] = C) : C = e[19];
|
|
207
|
+
let b;
|
|
208
|
+
e[20] !== u || e[21] !== h || e[22] !== l || e[23] !== r || e[24] !== p ? (b = r && /* @__PURE__ */ _(le, { ref: u, context: l, className: G(E.arrow, h, {
|
|
209
|
+
[E.arrowVariantGrey]: p === "grey" && r
|
|
210
|
+
}), strokeWidth: 1, tipRadius: 1, width: 16, height: 7 }), e[20] = u, e[21] = h, e[22] = l, e[23] = r, e[24] = p, e[25] = b) : b = e[25];
|
|
211
|
+
let N;
|
|
212
|
+
e[26] !== t || e[27] !== l.placement || e[28] !== v || e[29] !== S || e[30] !== g || e[31] !== w || e[32] !== C || e[33] !== b ? (N = /* @__PURE__ */ M("div", { ref: v, style: g, className: w, "data-placement": B, "data-status": S, ...C, children: [
|
|
213
|
+
b,
|
|
214
|
+
t
|
|
215
|
+
] }), e[26] = t, e[27] = l.placement, e[28] = v, e[29] = S, e[30] = g, e[31] = w, e[32] = C, e[33] = b, e[34] = N) : N = e[34];
|
|
216
|
+
let F;
|
|
217
|
+
return e[35] !== l || e[36] !== N ? (F = /* @__PURE__ */ _(ie, { children: /* @__PURE__ */ _(ce, { context: l, modal: !1, children: N }) }), e[35] = l, e[36] = N, e[37] = F) : F = e[37], F;
|
|
218
|
+
});
|
|
219
|
+
j.displayName = "DSPopover.Content";
|
|
220
|
+
y.Anchor = $;
|
|
221
|
+
y.Content = j;
|
|
222
|
+
y.displayName = "DSPopover";
|
|
223
|
+
export {
|
|
224
|
+
y as D,
|
|
225
|
+
De as a,
|
|
226
|
+
we as u,
|
|
227
|
+
Pe as v
|
|
228
|
+
};
|
|
@@ -3,7 +3,7 @@ import { jsx as F } from "react/jsx-runtime";
|
|
|
3
3
|
import { d as $ } from "./index.CgTHIF3K.js";
|
|
4
4
|
import { c as J } from "./index.CEyLAtio.js";
|
|
5
5
|
import { forwardRef as K, useState as Q } from "react";
|
|
6
|
-
import { D as W } from "./Fieldset.
|
|
6
|
+
import { D as W } from "./Fieldset.D7cLR5ze.js";
|
|
7
7
|
import { DSRadio as X } from "../radio.7_N_alaS.js";
|
|
8
8
|
import { g as m, r as V } from "./helpers.BbWkXTr3.js";
|
|
9
9
|
import '../assets/RadioGroup.CM2mYOzc.css';const Y = "ds-radio-group_root_12fot_1", Z = "ds-radio-group_root--horizontal_12fot_9", oo = "ds-radio-group_root--invalid_12fot_12", B = {
|