@iamfiro/design 0.3.2 → 0.3.4
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/agents/INDEX.md +1 -1
- package/agents/brand-icon/AGENTS.md +1 -1
- package/agents/social-login-button/AGENTS.md +4 -3
- package/lib/components/Accordion/Accordion2.js +87 -87
- package/lib/components/ActionBar/ActionBar2.js +42 -44
- package/lib/components/Alert/Alert2.js +61 -61
- package/lib/components/AppShell/AppShell2.js +70 -71
- package/lib/components/AreaChart/AreaChart.js +38 -40
- package/lib/components/BarChart/BarChart2.js +126 -126
- package/lib/components/BarList/BarList2.js +95 -95
- package/lib/components/Breadcrumb/Breadcrumb2.js +68 -66
- package/lib/components/Calendar/Calendar2.js +164 -164
- package/lib/components/Calendar/DatePicker2.js +103 -102
- package/lib/components/Calendar/date.js +64 -66
- package/lib/components/Card/Card2.js +67 -67
- package/lib/components/CardFrame/CardFrame2.js +43 -51
- package/lib/components/Chart/ChartParts.js +94 -94
- package/lib/components/Chart/chart2.js +52 -52
- package/lib/components/Chart/useChartInteraction.js +54 -54
- package/lib/components/ChatBubble/ChatBubble2.js +92 -92
- package/lib/components/ChatBubble/formatChatTime.js +35 -41
- package/lib/components/ChatComposer/ChatComposer2.js +63 -63
- package/lib/components/CodeBlock/CodeBlock2.js +61 -61
- package/lib/components/CodeBlock/highlight.js +84 -84
- package/lib/components/ColorPicker/ColorPicker2.js +387 -386
- package/lib/components/ColorPicker/color.js +71 -71
- package/lib/components/ColorPicker/presets.js +41 -46
- package/lib/components/Combobox/Combobox2.js +117 -118
- package/lib/components/CommandMenu/CommandMenu.js +127 -127
- package/lib/components/Comment/Comment2.js +86 -60
- package/lib/components/ContextMenu/ContextMenu2.js +77 -75
- package/lib/components/DataGrid/DataGrid2.js +1192 -1190
- package/lib/components/DataGrid/GridPopover.js +94 -94
- package/lib/components/DataGrid/anchor.js +34 -31
- package/lib/components/DataGrid/model.js +284 -283
- package/lib/components/DataGrid/panels.js +398 -399
- package/lib/components/DataGrid/typeMeta.js +51 -50
- package/lib/components/DataGrid/types.js +38 -39
- package/lib/components/DescriptionList/DescriptionList2.js +103 -103
- package/lib/components/Dialog/AlertDialog.js +79 -78
- package/lib/components/Dialog/Dialog2.js +59 -59
- package/lib/components/Dialog/modal.js +44 -46
- package/lib/components/Drawer/Drawer2.js +130 -129
- package/lib/components/DropdownMenu/DropdownMenu2.js +235 -233
- package/lib/components/DropdownMenu/menuCore.js +69 -42
- package/lib/components/Dropzone/Dropzone2.js +79 -78
- package/lib/components/EmptyState/EmptyState2.js +34 -35
- package/lib/components/FileChip/FileChip2.js +73 -73
- package/lib/components/FileUpload/FileUpload.js +159 -159
- package/lib/components/FilterChips/FilterChips2.js +61 -61
- package/lib/components/FunnelChart/FunnelChart2.js +161 -161
- package/lib/components/FunnelChart/funnel.js +48 -44
- package/lib/components/Highlight/Highlight2.js +43 -43
- package/lib/components/HoverCard/HoverCard.js +59 -84
- package/lib/components/InlineDiff/InlineDiff2.js +112 -112
- package/lib/components/InlineDiff/diff.js +90 -90
- package/lib/components/InlineDiff/useDiffReview.js +64 -63
- package/lib/components/Kanban/Kanban2.js +386 -387
- package/lib/components/Kanban/KanbanCard.js +70 -95
- package/lib/components/Kanban/move.js +50 -46
- package/lib/components/LineChart/LineChart2.js +211 -211
- package/lib/components/List/List2.js +53 -54
- package/lib/components/Listbox/Listbox2.js +115 -115
- package/lib/components/Marker/Marker2.js +56 -61
- package/lib/components/Menubar/Menubar2.js +144 -141
- package/lib/components/MultiSelect/MultiSelect2.js +108 -108
- package/lib/components/NavigationMenu/NavigationMenu2.js +298 -299
- package/lib/components/NoticeStack/NoticeStack2.js +84 -84
- package/lib/components/NumberStepper/NumberStepper2.js +65 -66
- package/lib/components/OtpInput/OtpInput2.js +70 -69
- package/lib/components/Pagination/Pagination2.js +106 -106
- package/lib/components/Pagination/paginationRange.js +37 -39
- package/lib/components/PhoneInput/PhoneInput.js +87 -88
- package/lib/components/PieChart/PieChart2.js +160 -160
- package/lib/components/PieChart/arc.js +65 -62
- package/lib/components/PieChart/useArcTween.js +53 -60
- package/lib/components/Popover/Popover2.js +62 -62
- package/lib/components/ProgressTracker/ProgressTracker2.js +121 -121
- package/lib/components/Rating/Rating2.js +82 -81
- package/lib/components/Resizable/Resizable2.js +126 -127
- package/lib/components/Resizable/layout.js +73 -73
- package/lib/components/ScaledPreview/ScaledPreview2.js +68 -67
- package/lib/components/ScatterChart/ScatterChart2.js +214 -213
- package/lib/components/ScatterChart/scatter.js +47 -49
- package/lib/components/ScrollArea/ScrollArea2.js +117 -118
- package/lib/components/Select/Select2.js +78 -79
- package/lib/components/Sidebar/Sidebar2.js +69 -69
- package/lib/components/Skeleton/Skeleton2.js +57 -57
- package/lib/components/Slider/Slider2.js +73 -74
- package/lib/components/SocialLoginButton/SocialLoginButton.js +76 -68
- package/lib/components/SparkChart/SparkChart2.js +145 -145
- package/lib/components/SparkChart/spark.js +64 -42
- package/lib/components/Sparkbar/Sparkbar2.js +60 -60
- package/lib/components/SplitView/SplitView2.js +51 -52
- package/lib/components/Stat/Stat2.js +90 -90
- package/lib/components/StepList/StepList2.js +70 -70
- package/lib/components/Table/Table2.js +70 -70
- package/lib/components/Tabs/Tabs2.js +81 -81
- package/lib/components/TagInput/TagInput2.js +220 -217
- package/lib/components/TimePicker/TimePicker2.js +187 -186
- package/lib/components/TimePicker/time.js +63 -62
- package/lib/components/Timeline/Timeline2.js +199 -199
- package/lib/components/Timeline/scale.js +67 -64
- package/lib/components/Toast/Toaster.js +100 -98
- package/lib/components/Toast/store.js +90 -94
- package/lib/components/ToggleGroup/ToggleGroup2.js +76 -76
- package/lib/components/Toolbar/Toolbar2.js +163 -161
- package/lib/components/Tracker/Tracker2.js +82 -82
- package/lib/components/TreeDiagram/TreeDiagram2.js +123 -124
- package/lib/components/TreeView/TreeView2.js +154 -152
- package/lib/hooks/timing.js +31 -30
- package/lib/hooks/useControllableState.js +37 -38
- package/lib/hooks/useCountdown.js +53 -56
- package/lib/hooks/useDigitInput.js +66 -41
- package/lib/hooks/useDismiss.js +55 -58
- package/lib/hooks/useElapsed.js +57 -55
- package/lib/hooks/useFloating.js +44 -44
- package/lib/hooks/useFocusTrap.js +70 -46
- package/lib/hooks/usePresence.js +23 -22
- package/lib/hooks/usePressToOpen.js +51 -51
- package/lib/hooks/useScrollLock.js +57 -58
- package/lib/hooks/useSelection.js +49 -52
- package/lib/index.js +65 -65
- package/lib/primitives/AspectRatio2.js +57 -57
- package/lib/primitives/BrandIcon.js +189 -158
- package/lib/primitives/ColorDot2.js +50 -45
- package/lib/primitives/CopyButton2.js +52 -50
- package/lib/primitives/CountBadge2.js +53 -55
- package/lib/primitives/Countdown2.js +28 -25
- package/lib/primitives/Delta2.js +41 -41
- package/lib/primitives/Elapsed.js +47 -47
- package/lib/primitives/FileIcon2.js +86 -86
- package/lib/primitives/Flag2.js +122 -122
- package/lib/primitives/IconStack2.js +55 -31
- package/lib/primitives/IconTile2.js +43 -43
- package/lib/primitives/Kbd2.js +55 -55
- package/lib/primitives/Layout2.js +78 -78
- package/lib/primitives/Link2.js +39 -36
- package/lib/primitives/MaskedText2.js +74 -52
- package/lib/primitives/Progress2.js +67 -66
- package/lib/primitives/RelativeTime.js +54 -61
- package/lib/primitives/SearchInput2.js +45 -45
- package/lib/primitives/SelectorButton2.js +72 -76
- package/lib/primitives/Spinner2.js +56 -56
- package/lib/primitives/StatusIcon2.js +63 -63
- package/lib/primitives/Swatch2.js +55 -61
- package/lib/primitives/Tooltip2.js +78 -78
- package/lib/primitives/Typography2.js +53 -53
- package/lib/primitives/formatCountdown.js +30 -29
- package/lib/primitives/formatElapsed.js +46 -49
- package/lib/primitives/formatRelativeTime.js +76 -50
- package/lib/primitives/hotkey.js +80 -80
- package/lib/primitives/index.js +169 -168
- package/lib/primitives/maskValue.js +55 -50
- package/lib/style.css +1 -1
- package/lib/types/components/SocialLoginButton/SocialLoginButton.d.ts +1 -1
- package/lib/types/primitives/BrandIcon.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1,480 +1,479 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
const e =
|
|
3
|
-
function
|
|
4
|
-
|
|
5
|
-
let r = j(), i = r[e];
|
|
6
|
-
t.rPOoVm === void 0 && (t.tcVfXW = function(e) {
|
|
7
|
-
let t = "", n = "";
|
|
8
|
-
for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
|
|
9
|
-
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
10
|
-
return decodeURIComponent(n);
|
|
11
|
-
}, t.pdfEfw = {}, t.rPOoVm = !0);
|
|
12
|
-
let a = r[0];
|
|
13
|
-
t.CUcgBm !== a && (t.pdfEfw = {}, t.CUcgBm = a);
|
|
14
|
-
let o = t.pdfEfw[e];
|
|
15
|
-
return o === void 0 ? (i = t.tcVfXW(i), t.pdfEfw[e] = i) : i = o, i;
|
|
16
|
-
}
|
|
17
|
-
(function(e, n) {
|
|
18
|
-
let r = t, i = e();
|
|
2
|
+
const e = D;
|
|
3
|
+
(function(e, t) {
|
|
4
|
+
let n = D, r = e();
|
|
19
5
|
for (;;) try {
|
|
20
|
-
if (parseInt(
|
|
21
|
-
|
|
6
|
+
if (parseInt(n(453)) / 1 + -parseInt(n(440)) / 2 + parseInt(n(467)) / 3 * (parseInt(n(505)) / 4) + parseInt(n(497)) / 5 + -parseInt(n(504)) / 6 + parseInt(n(433)) / 7 + -parseInt(n(524)) / 8 * (-parseInt(n(457)) / 9) == t) break;
|
|
7
|
+
r.push(r.shift());
|
|
22
8
|
} catch {
|
|
23
|
-
|
|
9
|
+
r.push(r.shift());
|
|
24
10
|
}
|
|
25
|
-
})(
|
|
26
|
-
import { TIMING as
|
|
27
|
-
import { usePresence as
|
|
28
|
-
import { Text as
|
|
29
|
-
import { Stack as
|
|
30
|
-
import { useControllableState as
|
|
31
|
-
import { cx as
|
|
32
|
-
import { useDismiss as
|
|
33
|
-
import { focusableIn as
|
|
11
|
+
})(O, 940835);
|
|
12
|
+
import { TIMING as t } from "../../hooks/timing.js";
|
|
13
|
+
import { usePresence as n } from "../../hooks/usePresence.js";
|
|
14
|
+
import { Text as r } from "../../primitives/Typography2.js";
|
|
15
|
+
import { Stack as i } from "../../primitives/Layout2.js";
|
|
16
|
+
import { useControllableState as a } from "../../hooks/useControllableState.js";
|
|
17
|
+
import { cx as o } from "../../primitives/index.js";
|
|
18
|
+
import { useDismiss as s } from "../../hooks/useDismiss.js";
|
|
19
|
+
import { focusableIn as c } from "../../hooks/useFocusTrap.js";
|
|
34
20
|
/* empty css */
|
|
35
21
|
/* empty css */
|
|
36
|
-
import { createContext as
|
|
37
|
-
import { ChevronDown as
|
|
38
|
-
import { jsx as
|
|
39
|
-
import { createPortal as
|
|
40
|
-
var
|
|
41
|
-
function E({ children:
|
|
42
|
-
let
|
|
43
|
-
|
|
44
|
-
let [
|
|
22
|
+
import { createContext as l, useContext as u, useEffect as d, useId as f, useLayoutEffect as p, useRef as m, useState as h } from "react";
|
|
23
|
+
import { ChevronDown as g } from "lucide-react";
|
|
24
|
+
import { jsx as _, jsxs as v } from "react/jsx-runtime";
|
|
25
|
+
import { createPortal as y } from "react-dom";
|
|
26
|
+
var b = 160, ee = 240, te = 8, x = 8, S = "[data-navmenu-top]:not(:disabled)", C = l(null), w = l(!1), T = (e) => [...e?.querySelectorAll(S) ?? []];
|
|
27
|
+
function E({ children: r, value: i, defaultValue: l = null, onValueChange: u, openOn: f = "hover", panelAlign: g = "stretch", viewportAnchor: S, tone: w = e(528), "aria-label": E = e(511), className: O, style: k }) {
|
|
28
|
+
let A = e, [j, M] = a(i, l, u), [N, P] = h(j);
|
|
29
|
+
j !== null && j !== N && P(j);
|
|
30
|
+
let [F, I] = h({
|
|
45
31
|
dir: 0,
|
|
46
32
|
previous: null
|
|
47
|
-
}), [
|
|
33
|
+
}), [L, ne] = h(null), [R, re] = h(null), [z, B] = h({ visibility: A(463) }), [V, H] = h({
|
|
48
34
|
left: 0,
|
|
49
35
|
width: 0,
|
|
50
36
|
visible: !1,
|
|
51
37
|
slide: !1
|
|
52
|
-
}),
|
|
53
|
-
let t =
|
|
54
|
-
if (window
|
|
55
|
-
if (
|
|
56
|
-
let n = T(
|
|
57
|
-
|
|
38
|
+
}), U = n(j !== null, b), W = m(null), G = m(null), K = m(null), q = m(!1), J = m(0), Y = m(0), X = (e) => e === null ? void 0 : T(G.current).find((t) => t.dataset[A(482)] === e), Z = (e) => {
|
|
39
|
+
let t = A;
|
|
40
|
+
if (window.clearTimeout(J.current), e !== j) {
|
|
41
|
+
if (j !== null && e !== null) {
|
|
42
|
+
let n = T(G.current), r = n[t(410)]((e) => e[t(519)][t(482)] === j), i = n[t(410)]((n) => n.dataset[t(482)] === e);
|
|
43
|
+
I({
|
|
58
44
|
dir: i > r ? 1 : -1,
|
|
59
|
-
previous:
|
|
45
|
+
previous: j
|
|
60
46
|
});
|
|
61
|
-
} else
|
|
47
|
+
} else I({
|
|
62
48
|
dir: 0,
|
|
63
49
|
previous: null
|
|
64
50
|
});
|
|
65
|
-
|
|
51
|
+
M(e);
|
|
66
52
|
}
|
|
67
|
-
},
|
|
68
|
-
let e =
|
|
69
|
-
|
|
70
|
-
},
|
|
53
|
+
}, Q = () => {
|
|
54
|
+
let e = A, t = X(N);
|
|
55
|
+
Z(null), t?.[e(474)]({ preventScroll: !0 });
|
|
56
|
+
}, $ = {
|
|
71
57
|
enter: (e) => {
|
|
72
|
-
let
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}, n[t(209)]) : (J[t(282)] = performance[t(291)](), X(e)));
|
|
58
|
+
let n = A;
|
|
59
|
+
f === n(411) && (window.clearTimeout(J.current), j === null ? J[n(451)] = window[n(420)](() => {
|
|
60
|
+
Y.current = performance[n(501)](), Z(e);
|
|
61
|
+
}, t[n(427)]) : (Y.current = performance[n(501)](), Z(e)));
|
|
77
62
|
},
|
|
78
63
|
leave: () => {
|
|
79
|
-
let e =
|
|
80
|
-
|
|
64
|
+
let e = A;
|
|
65
|
+
f === "hover" && (window[e(465)](J[e(451)]), J[e(451)] = window.setTimeout(() => Z(null), t[e(448)]));
|
|
81
66
|
},
|
|
82
|
-
stay: () => window
|
|
83
|
-
justOpened: () => performance[
|
|
84
|
-
},
|
|
85
|
-
let n =
|
|
86
|
-
a && (a[n(
|
|
87
|
-
},
|
|
88
|
-
|
|
89
|
-
let e =
|
|
90
|
-
if (
|
|
91
|
-
let t = window[e(
|
|
67
|
+
stay: () => window[A(465)](J[A(451)]),
|
|
68
|
+
justOpened: () => performance[A(501)]() - Y.current < t[A(448)]
|
|
69
|
+
}, ie = (e, t) => {
|
|
70
|
+
let n = A, r = T(G[n(451)]), i = r[n(415)](e), a = t === n(485) ? r[0] : t === n(473) ? r.at(-1) : r[(i + t + r[n(442)]) % r[n(442)]];
|
|
71
|
+
a && (a[n(474)](), j !== null && Z(a.dataset[n(466)] === void 0 ? null : a[n(519)][n(482)] ?? null));
|
|
72
|
+
}, ae = (e) => ne((t) => t && t.w === e.w && t.h === e.h ? t : e);
|
|
73
|
+
d(() => () => window[A(465)](J[A(451)]), []), d(() => {
|
|
74
|
+
let e = A;
|
|
75
|
+
if (F[e(452)] === null) return;
|
|
76
|
+
let t = window[e(420)](() => I((e) => ({
|
|
92
77
|
...e,
|
|
93
78
|
previous: null
|
|
94
|
-
})),
|
|
95
|
-
return () => window[e(
|
|
96
|
-
}, [
|
|
97
|
-
let e =
|
|
98
|
-
if (!
|
|
99
|
-
let
|
|
100
|
-
let e =
|
|
101
|
-
if (!
|
|
102
|
-
let
|
|
103
|
-
if (
|
|
104
|
-
|
|
105
|
-
top:
|
|
106
|
-
left:
|
|
107
|
-
width:
|
|
108
|
-
maxHeight:
|
|
79
|
+
})), ee);
|
|
80
|
+
return () => window[e(465)](t);
|
|
81
|
+
}, [F.previous]), s(j !== null, [G, K], () => Z(null)), p(() => {
|
|
82
|
+
let e = A;
|
|
83
|
+
if (!U.mounted) return;
|
|
84
|
+
let t = () => {
|
|
85
|
+
let e = D, t = (S?.[e(451)] ?? W[e(451)])?.[e(401)]();
|
|
86
|
+
if (!t) return;
|
|
87
|
+
let n = t.bottom + te, r = Math[e(454)](160, window[e(483)] - n - x);
|
|
88
|
+
if (g === "stretch") {
|
|
89
|
+
B({
|
|
90
|
+
top: n,
|
|
91
|
+
left: t[e(421)],
|
|
92
|
+
width: t.width,
|
|
93
|
+
maxHeight: r
|
|
109
94
|
});
|
|
110
95
|
return;
|
|
111
96
|
}
|
|
112
|
-
let
|
|
113
|
-
|
|
114
|
-
top:
|
|
115
|
-
left:
|
|
116
|
-
width:
|
|
117
|
-
maxHeight:
|
|
97
|
+
let i = X(N)?.[e(401)](), a = Math[e(403)](L?.w ?? 0, window[e(444)] - 16), o = i ? i[e(421)] + i[e(414)] / 2 : t[e(421)] + t.width / 2, s = Math[e(454)](x, Math[e(403)](o - a / 2, window[e(444)] - a - x));
|
|
98
|
+
B({
|
|
99
|
+
top: n,
|
|
100
|
+
left: s,
|
|
101
|
+
width: a,
|
|
102
|
+
maxHeight: r
|
|
118
103
|
});
|
|
119
104
|
};
|
|
120
|
-
return
|
|
121
|
-
let
|
|
122
|
-
window[
|
|
105
|
+
return t(), window[e(424)](e(468), t), window[e(424)]("scroll", t, !0), () => {
|
|
106
|
+
let n = e;
|
|
107
|
+
window[n(430)]("resize", t), window[n(430)](n(517), t, !0);
|
|
123
108
|
};
|
|
124
109
|
}, [
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
110
|
+
U[A(458)],
|
|
111
|
+
N,
|
|
112
|
+
L,
|
|
113
|
+
g,
|
|
129
114
|
S
|
|
130
|
-
]),
|
|
131
|
-
let e =
|
|
115
|
+
]), p(() => {
|
|
116
|
+
let e = A, t = G[e(451)];
|
|
132
117
|
if (!t) return;
|
|
133
118
|
let n = () => {
|
|
134
|
-
let n = e, r =
|
|
135
|
-
if (!r) return
|
|
119
|
+
let n = e, r = X(j);
|
|
120
|
+
if (!r) return H((e) => ({
|
|
136
121
|
...e,
|
|
137
122
|
visible: !1,
|
|
138
123
|
slide: !1
|
|
139
124
|
}));
|
|
140
125
|
let i = t.getBoundingClientRect(), a = r.getBoundingClientRect();
|
|
141
|
-
|
|
142
|
-
left: a.left - i[n(
|
|
143
|
-
width: a[n(
|
|
126
|
+
H((e) => ({
|
|
127
|
+
left: a.left - i[n(421)],
|
|
128
|
+
width: a[n(414)],
|
|
144
129
|
visible: !0,
|
|
145
|
-
slide: e
|
|
130
|
+
slide: e[n(422)]
|
|
146
131
|
}));
|
|
147
132
|
};
|
|
148
133
|
n();
|
|
149
134
|
let r = new ResizeObserver(n);
|
|
150
|
-
return r[e(
|
|
151
|
-
}, [
|
|
152
|
-
let
|
|
153
|
-
let t =
|
|
154
|
-
n &&
|
|
135
|
+
return r[e(515)](t), () => r[e(402)]();
|
|
136
|
+
}, [j]);
|
|
137
|
+
let oe = (e) => {
|
|
138
|
+
let t = A, n = e[t(499)];
|
|
139
|
+
n && j !== null && (G[t(451)]?.[t(418)](n) || K[t(451)]?.contains(n) || Z(null));
|
|
155
140
|
}, se = (e) => {
|
|
156
|
-
let t =
|
|
157
|
-
switch (e[t(
|
|
158
|
-
case t(
|
|
159
|
-
e[t(
|
|
141
|
+
let t = A, n = R?.querySelector(t(419)), r = n ? c(n) : [], i = r[t(415)](document[t(426)]);
|
|
142
|
+
switch (e[t(508)]) {
|
|
143
|
+
case t(526):
|
|
144
|
+
e[t(459)](), Q();
|
|
160
145
|
break;
|
|
161
|
-
case t(
|
|
162
|
-
case t(
|
|
163
|
-
e[t(
|
|
146
|
+
case t(510):
|
|
147
|
+
case t(491):
|
|
148
|
+
e[t(459)](), r[i + (e.key === t(510) ? 1 : -1)]?.focus({ preventScroll: !1 });
|
|
164
149
|
break;
|
|
165
|
-
case
|
|
166
|
-
let n =
|
|
167
|
-
if (e
|
|
168
|
-
else if (!e[t(
|
|
169
|
-
e[t(
|
|
170
|
-
let r = T(
|
|
171
|
-
|
|
150
|
+
case "Tab": {
|
|
151
|
+
let n = X(N);
|
|
152
|
+
if (e[t(423)] && i <= 0) e[t(459)](), n?.[t(474)]();
|
|
153
|
+
else if (!e[t(423)] && i === r[t(442)] - 1) {
|
|
154
|
+
e[t(459)]();
|
|
155
|
+
let r = T(G.current), i = n ? r[r.indexOf(n) + 1] : void 0;
|
|
156
|
+
Z(null), (i ?? n)?.[t(474)]();
|
|
172
157
|
}
|
|
173
158
|
break;
|
|
174
159
|
}
|
|
175
160
|
}
|
|
176
161
|
}, ce = {
|
|
177
|
-
open:
|
|
178
|
-
shown:
|
|
179
|
-
motion:
|
|
180
|
-
openOn:
|
|
181
|
-
layer:
|
|
182
|
-
wantFocus: (e) =>
|
|
162
|
+
open: j,
|
|
163
|
+
shown: N,
|
|
164
|
+
motion: F,
|
|
165
|
+
openOn: f,
|
|
166
|
+
layer: R,
|
|
167
|
+
wantFocus: (e) => q.current = e,
|
|
183
168
|
takeFocus: () => {
|
|
184
|
-
let e =
|
|
185
|
-
return
|
|
169
|
+
let e = A, t = q[e(451)];
|
|
170
|
+
return q[e(451)] = !1, t;
|
|
186
171
|
},
|
|
187
|
-
change:
|
|
188
|
-
closeToTrigger:
|
|
189
|
-
reportSize:
|
|
190
|
-
hover:
|
|
191
|
-
moveFocus:
|
|
172
|
+
change: Z,
|
|
173
|
+
closeToTrigger: Q,
|
|
174
|
+
reportSize: ae,
|
|
175
|
+
hover: $,
|
|
176
|
+
moveFocus: ie
|
|
192
177
|
};
|
|
193
|
-
return
|
|
178
|
+
return v(C[A(487)], {
|
|
194
179
|
value: ce,
|
|
195
|
-
children: [
|
|
196
|
-
ref:
|
|
180
|
+
children: [_("nav", {
|
|
181
|
+
ref: W,
|
|
197
182
|
"aria-label": E,
|
|
198
|
-
className:
|
|
183
|
+
className: o(A(405), O),
|
|
199
184
|
"data-tone": w,
|
|
200
|
-
"data-open":
|
|
201
|
-
style:
|
|
202
|
-
children:
|
|
203
|
-
ref:
|
|
204
|
-
className:
|
|
205
|
-
onBlur:
|
|
206
|
-
children: [
|
|
207
|
-
className:
|
|
185
|
+
"data-open": j !== null || void 0,
|
|
186
|
+
style: k,
|
|
187
|
+
children: v(A(469), {
|
|
188
|
+
ref: G,
|
|
189
|
+
className: "ds-navmenu__bar",
|
|
190
|
+
onBlur: oe,
|
|
191
|
+
children: [_(A(484), {
|
|
192
|
+
className: A(513),
|
|
208
193
|
"aria-hidden": !0,
|
|
209
|
-
"data-visible":
|
|
210
|
-
"data-slide":
|
|
194
|
+
"data-visible": V[A(422)] || void 0,
|
|
195
|
+
"data-slide": V.slide || void 0,
|
|
211
196
|
style: {
|
|
212
|
-
left:
|
|
213
|
-
width:
|
|
197
|
+
left: V[A(421)],
|
|
198
|
+
width: V.width
|
|
214
199
|
}
|
|
215
|
-
}),
|
|
216
|
-
className:
|
|
217
|
-
children:
|
|
200
|
+
}), _("ul", {
|
|
201
|
+
className: A(488),
|
|
202
|
+
children: r
|
|
218
203
|
})]
|
|
219
204
|
})
|
|
220
|
-
}),
|
|
221
|
-
ref:
|
|
222
|
-
className:
|
|
223
|
-
"data-state":
|
|
224
|
-
"data-align":
|
|
225
|
-
"data-morph":
|
|
205
|
+
}), U.mounted && y(_("div", {
|
|
206
|
+
ref: K,
|
|
207
|
+
className: A(438),
|
|
208
|
+
"data-state": U[A(407)] ? A(412) : A(437),
|
|
209
|
+
"data-align": g,
|
|
210
|
+
"data-morph": F[A(439)] !== 0 || void 0,
|
|
226
211
|
style: {
|
|
227
|
-
...
|
|
228
|
-
height:
|
|
229
|
-
overflowY:
|
|
212
|
+
...z,
|
|
213
|
+
height: L ? Math.min(L.h, Number(z[A(495)]) || L.h) : void 0,
|
|
214
|
+
overflowY: L && z.maxHeight !== void 0 && L.h > Number(z[A(495)]) ? A(431) : A(463)
|
|
230
215
|
},
|
|
231
|
-
onPointerEnter: (e) => e[
|
|
232
|
-
onPointerLeave: (e) => e
|
|
216
|
+
onPointerEnter: (e) => e[A(434)] === A(413) && $[A(406)](),
|
|
217
|
+
onPointerLeave: (e) => e[A(434)] === A(413) && $[A(480)](),
|
|
233
218
|
onKeyDown: se,
|
|
234
|
-
onBlur:
|
|
235
|
-
children:
|
|
236
|
-
ref:
|
|
237
|
-
className:
|
|
238
|
-
style: { height:
|
|
219
|
+
onBlur: oe,
|
|
220
|
+
children: _(A(469), {
|
|
221
|
+
ref: re,
|
|
222
|
+
className: "ds-navmenu__layer",
|
|
223
|
+
style: { height: L?.h }
|
|
239
224
|
})
|
|
240
|
-
}), document[
|
|
225
|
+
}), document[A(470)])]
|
|
241
226
|
});
|
|
242
227
|
}
|
|
243
|
-
function D(e) {
|
|
244
|
-
|
|
228
|
+
function D(e, t) {
|
|
229
|
+
e -= 401;
|
|
230
|
+
let n = O(), r = n[e];
|
|
231
|
+
D.SGjcyO === void 0 && (D.BFhNDD = function(e) {
|
|
232
|
+
let t = "", n = "";
|
|
233
|
+
for (let n = 0, r, i, a = 0; i = e.charAt(a++); ~i && (r = n % 4 ? r * 64 + i : i, n++ % 4) && (t += String.fromCharCode(255 & r >> (-2 * n & 6)))) i = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=".indexOf(i);
|
|
234
|
+
for (let e = 0, r = t.length; e < r; e++) n += "%" + ("00" + t.charCodeAt(e).toString(16)).slice(-2);
|
|
235
|
+
return decodeURIComponent(n);
|
|
236
|
+
}, D.PBrJpH = {}, D.SGjcyO = !0);
|
|
237
|
+
let i = n[0];
|
|
238
|
+
D.GTnenf !== i && (D.PBrJpH = {}, D.GTnenf = i);
|
|
239
|
+
let a = D.PBrJpH[e];
|
|
240
|
+
return a === void 0 ? (r = D.BFhNDD(r), D.PBrJpH[e] = r) : r = a, r;
|
|
241
|
+
}
|
|
242
|
+
function O() {
|
|
243
|
+
let e = /* @__PURE__ */ "z2v0qM91BMrPBMDdBgLLBNrszwn0.zgLZy29UBMvJDa.BwLU.y2vPBa.zhmTBMf2BwvUDq.C3rHEq.y2XVC2LUzW.sg9Tzq.r3jVDxa.zMLUzeLUzgv4.Ag92zxi.y2XVC2vK.Bw91C2u.D2LKDgG.Aw5KzxHpzG.y3vYCMvUDfrHCMDLDa.CxvLCNLtzwXLy3rVCG.y29UDgfPBNm.w2rHDgeTBMf2BwvUDs1JB250zw50xvTKyxrHlxn0yxrLpsjJDxjYzw50iL0.C2v0vgLTzw91Da.BgvMDa.DMLZAwjSzq.C2HPzNrlzxK.ywrKrxzLBNrmAxn0zw5LCG.DgvYDgLHCNK.ywn0AxzLrwXLBwvUDa.Ag92zxjjBNrLBNq.Bgf5zxi.yMXVy2TtAxPL.CMvTB3zLrxzLBNrmAxn0zw5LCG.yxv0BW.C2HVD24.ndK1nty2ngfqEhDpvG.Cg9PBNrLCLr5Cgu.zhmTBMf2BwvUDv9FDhjPz2DLCG.ANvZDe9Wzw5Lza.B3bLBG.zhmTzMXVyxrPBMCGzhmTBMf2BwvUDv9FDMLLD3bVCNqGzhmTC2nYB2XS.zgLY.mte2mti3oejPAMLgCW.zhmTBMf2BwvUDv9FzMvHDhvYzq.BgvUz3rO.yMfSyw5Jzq.Aw5UzxjxAwr0Aa.Aw52zxjZzq.zhmTBMf2BwvUDv9Fz3jVDxaTDgL0Bgu.rw5K.Ag92zxjhCMfJzq.y2HHBMDL.zhmTBMf2BwvUDv9Fy29UDgvUDa.y3vYCMvUDa.ChjLDMLVDxm.ntKYotC1vg1Rv09v.Bwf4.yNv0Dg9U.Bw90Aw9U.ntmXCgHzBvfI.Bw91BNrLza.ChjLDMvUDerLzMf1Bhq.BwvKAxvT.z3jVDxa.tgLUAW.AgLKzgvU.qxjYB3DsAwDODa.y2XLyxjuAw1LB3v0.BMf2BwvUDvrYAwDNzxi.mJDIzgLHv3u.CMvZAxPL.zgL2.yM9KEq.C2vTAwjVBgq.zhmTBMf2BwvUDv9FzMvHDhvYzs1IB2r5.BgfZDa.zM9JDxm.Bw92zuzVy3vZ.CgfNzq.D2fUDezVy3vZ.zw50zxi.zhmTBMf2BwvUDv9FBgLUAY1SywjLBa.BgvHDMu.yM9KEs1ZBq.DMfSDwu.Aw5UzxjizwLNAhq.C3bHBG.zMLYC3q.DgfRzuzVy3vZ.uhjVDMLKzxi.zhmTBMf2BwvUDv9FBgLZDa.lxrYAwDNzxi.CMvNAw9U.qxjYB3DvCa.B2zMC2v0sgvPz2H0.zhmTBMf2BwvUDv9FzMvHDhvYzs1LEwvICM93.Dg8TC3rHCNq.Bwf4sgvPz2H0.rMvHDhvYzq.odeZnZm1t0HHy0XW.yMv0D2vLBG.CMvSyxrLzfrHCMDLDa.CMvWB3j0u2L6zq.BM93.AgvHzgLUzY1ZBq.zgv0ywLS.otuWndKXofvTu1LezG.mtCXmJC2qvvYAxnu.tMf2AwDHDgLVBK1LBNvjDgvT.zhmTBMf2BwvUDv9Fy2HLDNjVBG.A2v5.zhmTBMf2BwvUDv9FAxrLBq.qxjYB3DeB3DU.7ko8ioUPLoUjTa.qxjYB3Dmzwz0.zhmTBMf2BwvUDv9FDgH1Bwi.sxrLBq.B2jZzxj2zq.Aw5SAw5Lu2L6zq.C2nYB2XS.BgfIzwWTC20.zgf0yxnLDa.yM9YzgvYqM94u2L6zq.zhmTBMf2BwvUDv9FzMvHDhvYzs1TzwrPyq.C2vJB25Kyxj5.zNjVBs1ZDgfYDa.mtCWmZG0rejPsM5x.zhmTBMf2BwvUDv9FBgLUAY1Py29U.rxnJyxbL.BgfIzwWTBgC.zgvMyxvSDa".split(".");
|
|
244
|
+
return O = function() {
|
|
245
|
+
return e;
|
|
246
|
+
}, O();
|
|
247
|
+
}
|
|
248
|
+
function k(e) {
|
|
249
|
+
let t = u(C);
|
|
245
250
|
if (!t) throw Error(e + " must be inside <NavigationMenu>");
|
|
246
251
|
return t;
|
|
247
252
|
}
|
|
248
|
-
function
|
|
249
|
-
let s = e, c =
|
|
250
|
-
return
|
|
251
|
-
className:
|
|
252
|
-
children: [
|
|
253
|
-
id:
|
|
253
|
+
function A({ label: t, children: n, value: r, icon: i, disabled: a, width: o }) {
|
|
254
|
+
let s = e, c = k(s(506)), l = f(), u = r ?? l, d = c[s(437)] === u, p = l + s(489), m = l + "-content", h = c[s(432)] === u ? s(451) : c[s(456)][s(452)] === u ? s(452) : null;
|
|
255
|
+
return v("li", {
|
|
256
|
+
className: "ds-navmenu__item",
|
|
257
|
+
children: [v(s(455), {
|
|
258
|
+
id: p,
|
|
254
259
|
type: "button",
|
|
255
260
|
className: "ds-navmenu__trigger",
|
|
256
261
|
"data-navmenu-top": "",
|
|
257
262
|
"data-navmenu-trigger": "",
|
|
258
263
|
"data-value": u,
|
|
259
|
-
"data-state":
|
|
264
|
+
"data-state": d ? s(437) : "closed",
|
|
260
265
|
"aria-expanded": d,
|
|
261
266
|
"aria-controls": h ? m : void 0,
|
|
262
267
|
disabled: a,
|
|
263
268
|
onClick: (e) => {
|
|
264
269
|
let t = s;
|
|
265
|
-
if (e
|
|
266
|
-
d && c[t(
|
|
270
|
+
if (e[t(503)] === 0) return c[t(477)](!d), c[t(449)](d ? null : u);
|
|
271
|
+
d && c.hover[t(436)]() || c.change(d ? null : u);
|
|
267
272
|
},
|
|
268
273
|
onKeyDown: (e) => {
|
|
269
274
|
let t = s;
|
|
270
|
-
switch (e
|
|
271
|
-
case t(
|
|
272
|
-
e
|
|
275
|
+
switch (e.key) {
|
|
276
|
+
case t(510):
|
|
277
|
+
e[t(459)](), c[t(477)](!0), d ? j(c.layer) : c[t(449)](u);
|
|
273
278
|
break;
|
|
274
|
-
case t(
|
|
275
|
-
case
|
|
276
|
-
e[t(
|
|
279
|
+
case t(464):
|
|
280
|
+
case "ArrowLeft":
|
|
281
|
+
e[t(459)](), c[t(475)](e.currentTarget, e[t(508)] === t(464) ? 1 : -1);
|
|
277
282
|
break;
|
|
278
283
|
case "Home":
|
|
279
284
|
case "End":
|
|
280
|
-
e
|
|
285
|
+
e.preventDefault(), c.moveFocus(e[t(416)], e[t(508)] === "Home" ? t(485) : t(473));
|
|
281
286
|
break;
|
|
282
|
-
case
|
|
283
|
-
d && (e[t(
|
|
287
|
+
case "Escape":
|
|
288
|
+
d && (e[t(459)](), c[t(449)](null));
|
|
284
289
|
break;
|
|
285
|
-
case
|
|
290
|
+
case "Tab": d && !e[t(423)] && j(c[t(428)]) && e.preventDefault();
|
|
286
291
|
}
|
|
287
292
|
},
|
|
288
|
-
onPointerEnter: (e) => e
|
|
289
|
-
onPointerLeave: (e) => e.pointerType === s(
|
|
293
|
+
onPointerEnter: (e) => e[s(434)] === "mouse" && !a && c.hover[s(478)](u),
|
|
294
|
+
onPointerLeave: (e) => e.pointerType === s(413) && c[s(411)][s(480)](),
|
|
290
295
|
children: [
|
|
291
296
|
i,
|
|
292
297
|
t,
|
|
293
|
-
|
|
294
|
-
className: s(
|
|
298
|
+
_(g, {
|
|
299
|
+
className: s(507),
|
|
295
300
|
"aria-hidden": !0
|
|
296
301
|
})
|
|
297
302
|
]
|
|
298
|
-
}), h && c.layer &&
|
|
303
|
+
}), h && c.layer && y(_(M, {
|
|
299
304
|
id: m,
|
|
300
|
-
labelledBy:
|
|
305
|
+
labelledBy: p,
|
|
301
306
|
state: h,
|
|
302
307
|
width: o,
|
|
303
308
|
children: n
|
|
304
|
-
}), c
|
|
309
|
+
}), c[s(428)])]
|
|
305
310
|
});
|
|
306
311
|
}
|
|
307
|
-
function
|
|
308
|
-
let n = e, r = t?.[n(
|
|
309
|
-
return i?.[n(
|
|
312
|
+
function j(t) {
|
|
313
|
+
let n = e, r = t?.[n(417)](n(419)), i = r ? c(r)[0] : void 0;
|
|
314
|
+
return i?.[n(474)]({ preventScroll: !0 }), !!i;
|
|
310
315
|
}
|
|
311
|
-
function
|
|
312
|
-
let o = e, s =
|
|
313
|
-
return
|
|
314
|
-
let e = o, t = c
|
|
315
|
-
if (r !==
|
|
316
|
-
s[e(
|
|
317
|
-
w: t
|
|
318
|
-
h: t
|
|
316
|
+
function M({ id: t, labelledBy: n, state: r, width: i, children: a }) {
|
|
317
|
+
let o = e, s = k(o(506)), c = m(null), { dir: l } = s[o(456)], u = l === 0 ? void 0 : r === o(451) ? l > 0 ? "from-end" : o(523) : l > 0 ? o(494) : "to-end";
|
|
318
|
+
return p(() => {
|
|
319
|
+
let e = o, t = c.current;
|
|
320
|
+
if (r !== "current" || !t) return;
|
|
321
|
+
s[e(500)]({
|
|
322
|
+
w: t.offsetWidth,
|
|
323
|
+
h: t[e(492)]
|
|
319
324
|
});
|
|
320
325
|
let n = new ResizeObserver(([t]) => {
|
|
321
|
-
let n = e, r = t[n(
|
|
322
|
-
s[n(
|
|
323
|
-
w: Math[n(
|
|
324
|
-
h: Math[n(
|
|
326
|
+
let n = e, r = t[n(520)][0];
|
|
327
|
+
s[n(500)]({
|
|
328
|
+
w: Math[n(404)](r[n(516)]),
|
|
329
|
+
h: Math[n(404)](r[n(429)])
|
|
325
330
|
});
|
|
326
331
|
});
|
|
327
|
-
return n[e(
|
|
328
|
-
}, [r]),
|
|
329
|
-
if (r !==
|
|
332
|
+
return n[e(515)](t), () => n[e(402)]();
|
|
333
|
+
}, [r]), d(() => {
|
|
334
|
+
if (r !== "current") return;
|
|
330
335
|
let e = requestAnimationFrame(() => {
|
|
331
|
-
|
|
336
|
+
let e = D;
|
|
337
|
+
s[e(486)]() && j(s[e(428)]);
|
|
332
338
|
});
|
|
333
339
|
return () => cancelAnimationFrame(e);
|
|
334
|
-
}, [r, s[o(
|
|
340
|
+
}, [r, s[o(428)]]), _(w[o(487)], {
|
|
335
341
|
value: !0,
|
|
336
|
-
children:
|
|
342
|
+
children: _(o(469), {
|
|
337
343
|
ref: c,
|
|
338
344
|
id: t,
|
|
339
|
-
role: o(
|
|
345
|
+
role: o(490),
|
|
340
346
|
"aria-labelledby": n,
|
|
341
|
-
className: o(
|
|
347
|
+
className: o(450),
|
|
342
348
|
"data-navmenu-content": "",
|
|
343
349
|
"data-state": r,
|
|
344
350
|
"data-motion": u,
|
|
345
|
-
inert: r === o(
|
|
351
|
+
inert: r === o(452) || void 0,
|
|
346
352
|
style: { width: i },
|
|
347
353
|
children: a
|
|
348
354
|
})
|
|
349
355
|
});
|
|
350
356
|
}
|
|
351
|
-
function
|
|
352
|
-
let
|
|
353
|
-
return
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
}
|
|
357
|
-
function M({ as: t, label: n, description: r, icon: o, active: c, badge: l, className: u, onClick: f, onPointerEnter: p, ...m }) {
|
|
358
|
-
let h = e, g = D(h(275)), _ = d(w), b = t ?? "a";
|
|
359
|
-
return _ ? y(b, {
|
|
360
|
-
className: s(h(244), u),
|
|
361
|
-
"aria-current": c ? h(205) : void 0,
|
|
357
|
+
function N({ as: t, label: n, description: a, icon: s, active: c, badge: l, className: d, onClick: f, onPointerEnter: p, ...m }) {
|
|
358
|
+
let h = e, g = k("NavigationMenuLink"), y = u(w), b = t ?? "a";
|
|
359
|
+
return y ? v(b, {
|
|
360
|
+
className: o("ds-navmenu__link", d),
|
|
361
|
+
"aria-current": c ? "page" : void 0,
|
|
362
362
|
onClick: (e) => {
|
|
363
|
-
|
|
364
|
-
f?.(e), g[t(272)](null);
|
|
363
|
+
f?.(e), g.change(null);
|
|
365
364
|
},
|
|
366
365
|
onPointerEnter: p,
|
|
367
366
|
...m,
|
|
368
|
-
children: [
|
|
369
|
-
className: h(
|
|
370
|
-
children:
|
|
371
|
-
}),
|
|
372
|
-
as:
|
|
367
|
+
children: [s && _("span", {
|
|
368
|
+
className: h(525),
|
|
369
|
+
children: s
|
|
370
|
+
}), v(i, {
|
|
371
|
+
as: h(484),
|
|
373
372
|
gap: 0,
|
|
374
373
|
style: { minWidth: 0 },
|
|
375
|
-
children: [
|
|
376
|
-
className: h(
|
|
377
|
-
children: [
|
|
378
|
-
variant: h(
|
|
379
|
-
weight: c ?
|
|
374
|
+
children: [v(h(484), {
|
|
375
|
+
className: h(479),
|
|
376
|
+
children: [_(r, {
|
|
377
|
+
variant: h(527),
|
|
378
|
+
weight: c ? h(471) : void 0,
|
|
380
379
|
children: n
|
|
381
380
|
}), l]
|
|
382
|
-
}),
|
|
383
|
-
as: h(
|
|
384
|
-
variant: h(
|
|
385
|
-
tone: h(
|
|
386
|
-
children:
|
|
381
|
+
}), a && _(r, {
|
|
382
|
+
as: h(484),
|
|
383
|
+
variant: h(481),
|
|
384
|
+
tone: h(522),
|
|
385
|
+
children: a
|
|
387
386
|
})]
|
|
388
387
|
})]
|
|
389
|
-
}) :
|
|
390
|
-
className: h(
|
|
391
|
-
children:
|
|
392
|
-
className:
|
|
388
|
+
}) : _("li", {
|
|
389
|
+
className: h(509),
|
|
390
|
+
children: v(b, {
|
|
391
|
+
className: o(h(435), d),
|
|
393
392
|
"data-navmenu-top": "",
|
|
394
|
-
"aria-current": c ? h(
|
|
393
|
+
"aria-current": c ? h(476) : void 0,
|
|
395
394
|
onPointerEnter: (e) => {
|
|
396
395
|
let t = h;
|
|
397
|
-
e
|
|
396
|
+
e.pointerType === t(413) && g.hover[t(480)](), p?.(e);
|
|
398
397
|
},
|
|
399
398
|
onKeyDown: (e) => {
|
|
400
399
|
let t = h;
|
|
401
|
-
e.key ===
|
|
400
|
+
e.key === "ArrowRight" || e.key === t(512) ? (e[t(459)](), g[t(475)](e[t(416)], e[t(508)] === t(464) ? 1 : -1)) : (e.key === t(408) || e.key === t(447)) && (e[t(459)](), g[t(475)](e[t(416)], e[t(508)] === t(408) ? t(485) : t(473)));
|
|
402
401
|
},
|
|
403
402
|
onClick: (e) => {
|
|
404
|
-
g
|
|
403
|
+
g[h(449)](null), f?.(e);
|
|
405
404
|
},
|
|
406
405
|
...m,
|
|
407
406
|
children: [
|
|
408
|
-
|
|
407
|
+
s,
|
|
409
408
|
n,
|
|
410
409
|
l
|
|
411
410
|
]
|
|
412
411
|
})
|
|
413
412
|
});
|
|
414
413
|
}
|
|
415
|
-
function
|
|
416
|
-
let o = e, s =
|
|
417
|
-
return
|
|
414
|
+
function P({ title: t, children: n, className: a }) {
|
|
415
|
+
let o = e, s = f();
|
|
416
|
+
return v(i, {
|
|
418
417
|
gap: 1,
|
|
419
|
-
className:
|
|
420
|
-
role:
|
|
418
|
+
className: a,
|
|
419
|
+
role: o(461),
|
|
421
420
|
"aria-labelledby": t ? s : void 0,
|
|
422
|
-
children: [t &&
|
|
421
|
+
children: [t && _(r, {
|
|
423
422
|
id: s,
|
|
424
|
-
variant:
|
|
425
|
-
tone: o(
|
|
426
|
-
className: o(
|
|
423
|
+
variant: "caption",
|
|
424
|
+
tone: o(425),
|
|
425
|
+
className: o(446),
|
|
427
426
|
children: t
|
|
428
|
-
}),
|
|
427
|
+
}), _(i, {
|
|
429
428
|
gap: 0,
|
|
430
429
|
children: n
|
|
431
430
|
})]
|
|
432
431
|
});
|
|
433
432
|
}
|
|
434
|
-
function
|
|
435
|
-
let p = e, m = u === p(
|
|
436
|
-
return
|
|
437
|
-
className:
|
|
433
|
+
function F({ eyebrow: t, title: n, description: a, action: s, media: c, background: l, tone: u = e(528), className: d, style: f }) {
|
|
434
|
+
let p = e, m = u === p(445);
|
|
435
|
+
return v(p(469), {
|
|
436
|
+
className: o(p(441), d),
|
|
438
437
|
"data-tone": u,
|
|
439
438
|
style: {
|
|
440
439
|
background: l,
|
|
441
440
|
...f
|
|
442
441
|
},
|
|
443
|
-
children: [c &&
|
|
444
|
-
className: p(
|
|
442
|
+
children: [c && _(p(469), {
|
|
443
|
+
className: p(521),
|
|
445
444
|
children: c
|
|
446
|
-
}),
|
|
445
|
+
}), v(i, {
|
|
447
446
|
gap: 4,
|
|
448
|
-
justify: p(
|
|
449
|
-
className: p(
|
|
450
|
-
children: [
|
|
447
|
+
justify: p(498),
|
|
448
|
+
className: p(472),
|
|
449
|
+
children: [v(i, {
|
|
451
450
|
gap: 2,
|
|
452
451
|
children: [
|
|
453
|
-
t &&
|
|
454
|
-
variant: p(
|
|
455
|
-
tone:
|
|
456
|
-
className: p(
|
|
452
|
+
t && _(r, {
|
|
453
|
+
variant: p(518),
|
|
454
|
+
tone: m ? p(445) : "secondary",
|
|
455
|
+
className: p(493),
|
|
457
456
|
children: t
|
|
458
457
|
}),
|
|
459
|
-
|
|
458
|
+
_(r, {
|
|
460
459
|
as: "p",
|
|
461
|
-
variant: p(
|
|
462
|
-
weight: p(
|
|
463
|
-
tone:
|
|
464
|
-
wrap: p(
|
|
460
|
+
variant: p(502),
|
|
461
|
+
weight: p(460),
|
|
462
|
+
tone: m ? "inverse" : "default",
|
|
463
|
+
wrap: p(443),
|
|
465
464
|
children: n
|
|
466
465
|
}),
|
|
467
|
-
|
|
466
|
+
a && _(r, {
|
|
468
467
|
as: "p",
|
|
469
|
-
variant: p(
|
|
470
|
-
tone: m ? "inverse" :
|
|
471
|
-
className:
|
|
472
|
-
children:
|
|
468
|
+
variant: p(481),
|
|
469
|
+
tone: m ? "inverse" : "secondary",
|
|
470
|
+
className: "ds-navmenu__feature-eyebrow",
|
|
471
|
+
children: a
|
|
473
472
|
})
|
|
474
473
|
]
|
|
475
|
-
}),
|
|
474
|
+
}), s && _(p(469), { children: s })]
|
|
476
475
|
})]
|
|
477
476
|
});
|
|
478
477
|
}
|
|
479
|
-
E[e(
|
|
480
|
-
export { E as NavigationMenu,
|
|
478
|
+
E[e(514)] = A, E[e(462)] = N, E[e(409)] = P, E[e(496)] = F;
|
|
479
|
+
export { E as NavigationMenu, F as NavigationMenuFeature, P as NavigationMenuGroup, A as NavigationMenuItem, N as NavigationMenuLink };
|