@gv-tech/ui-web 2.9.1 → 2.12.0
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/dist/accordion.cjs.js +1 -0
- package/dist/accordion.d.ts +18 -0
- package/dist/accordion.es.js +259 -0
- package/dist/alert-dialog.cjs.js +7 -0
- package/dist/alert-dialog.d.ts +43 -0
- package/dist/alert-dialog.es.js +171 -0
- package/dist/alert.cjs.js +1 -0
- package/dist/alert.d.ts +18 -0
- package/dist/alert.es.js +32 -0
- package/dist/aspect-ratio.cjs.js +1 -0
- package/dist/aspect-ratio.d.ts +10 -0
- package/dist/aspect-ratio.es.js +43 -0
- package/dist/avatar.cjs.js +1 -0
- package/dist/avatar.d.ts +15 -0
- package/dist/avatar.es.js +205 -0
- package/dist/badge.cjs.js +1 -0
- package/dist/badge.d.ts +16 -0
- package/dist/badge.es.js +26 -0
- package/dist/breadcrumb.cjs.js +1 -0
- package/dist/breadcrumb.d.ts +35 -0
- package/dist/breadcrumb.es.js +69 -0
- package/dist/button.cjs.js +1 -0
- package/dist/button.d.ts +17 -0
- package/dist/button.es.js +40 -0
- package/dist/calendar.cjs.js +1 -0
- package/dist/calendar.d.ts +29 -0
- package/dist/calendar.es.js +2976 -0
- package/dist/card.cjs.js +1 -0
- package/dist/card.d.ts +19 -0
- package/dist/card.es.js +33 -0
- package/dist/carousel.cjs.js +1 -0
- package/dist/carousel.d.ts +50 -0
- package/dist/carousel.es.js +1403 -0
- package/dist/chart.cjs.js +16 -0
- package/dist/chart.d.ts +60 -0
- package/dist/chart.es.js +4402 -0
- package/dist/checkbox.cjs.js +1 -0
- package/dist/checkbox.d.ts +10 -0
- package/dist/checkbox.es.js +258 -0
- package/dist/collapsible.cjs.js +1 -0
- package/dist/collapsible.d.ts +20 -0
- package/dist/collapsible.es.js +7 -0
- package/dist/command.cjs.js +1 -0
- package/dist/command.d.ts +115 -0
- package/dist/command.es.js +396 -0
- package/dist/context-menu.cjs.js +1 -0
- package/dist/context-menu.d.ts +80 -0
- package/dist/context-menu.es.js +328 -0
- package/dist/dialog.cjs.js +1 -0
- package/dist/dialog.d.ts +31 -0
- package/dist/dialog.es.js +66 -0
- package/dist/drawer.cjs.js +3 -0
- package/dist/drawer.d.ts +65 -0
- package/dist/drawer.es.js +1085 -0
- package/dist/dropdown-menu.cjs.js +1 -0
- package/dist/dropdown-menu.d.ts +80 -0
- package/dist/dropdown-menu.es.js +316 -0
- package/dist/form.cjs.js +1 -0
- package/dist/form.d.ts +53 -0
- package/dist/form.es.js +355 -0
- package/dist/hover-card.cjs.js +1 -0
- package/dist/hover-card.d.ts +19 -0
- package/dist/hover-card.es.js +188 -0
- package/dist/index-0ioNhtNM.mjs +10 -0
- package/dist/index-3j-XAIXT.mjs +55 -0
- package/dist/index-B2XtpfGY.js +1 -0
- package/dist/index-B39Lzq0v.js +1 -0
- package/dist/index-B7n6fy75.js +1 -0
- package/dist/index-B8dxbSWX.js +41 -0
- package/dist/index-BGIK9FQF.js +1 -0
- package/dist/index-BZPx6jYI.mjs +8 -0
- package/dist/index-BoNjHhm4.js +1 -0
- package/dist/index-BtZvtDmp.js +1 -0
- package/dist/index-Bv7qrYW6.mjs +180 -0
- package/dist/index-ByiPJW53.js +5 -0
- package/dist/index-C0dlIQIi.js +1 -0
- package/dist/index-C1qb0595.mjs +27 -0
- package/dist/index-C7HEunrh.mjs +15 -0
- package/dist/index-C8ni3LLa.js +1 -0
- package/dist/index-CCKe-Mpx.mjs +6 -0
- package/dist/index-CD6_IrA-.mjs +10 -0
- package/dist/index-CRyCZJLa.mjs +677 -0
- package/dist/index-CVx1AgNG.mjs +615 -0
- package/dist/index-Ce5TOFAK.js +1 -0
- package/dist/index-CeSLNJ60.mjs +32 -0
- package/dist/index-CefEQe_4.js +1 -0
- package/dist/index-Cj5hzyBi.js +1 -0
- package/dist/index-Cjj_rUPu.js +1 -0
- package/dist/index-Cl3G0jzM.js +1 -0
- package/dist/index-CsjrqSSN.js +1 -0
- package/dist/index-CwfE56Ep.mjs +1545 -0
- package/dist/index-CwyAfCwY.js +1 -0
- package/dist/index-CzY-WZXL.js +1 -0
- package/dist/index-D2HnlO3y.js +1 -0
- package/dist/index-DAWHN3cH.mjs +85 -0
- package/dist/index-DFdF7K7v.mjs +50 -0
- package/dist/index-DIsg7zU7.js +1 -0
- package/dist/index-DKN_vhyX.mjs +32 -0
- package/dist/index-DLcqcWxM.mjs +29 -0
- package/dist/index-DSxf1gN6.mjs +118 -0
- package/dist/index-DYxWvftI.js +1 -0
- package/dist/index-DaILh3TV.mjs +32 -0
- package/dist/index-Dfzl8TxY.mjs +136 -0
- package/dist/index-Dko2XdTk.js +1 -0
- package/dist/index-DlY82G31.mjs +245 -0
- package/dist/index-DnFcfnA9.mjs +13 -0
- package/dist/index-IZ2gq03c.mjs +68 -0
- package/dist/index-K9FzbxYw.mjs +93 -0
- package/dist/index-Le8p9oP4.mjs +60 -0
- package/dist/index-MQ0c3ZX_.js +1 -0
- package/dist/index-_XxjJPRD.js +1 -0
- package/dist/index-_wdrnYim.js +1 -0
- package/dist/index-jv3B4mTd.js +1 -0
- package/dist/index-kaM0u2Q1.js +1 -0
- package/dist/index-p6xVFRb4.mjs +52 -0
- package/dist/index-rKs9bXHr.mjs +6 -0
- package/dist/index-vuPgkS0V.mjs +70 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.d.ts +1288 -0
- package/dist/index.es.js +289 -0
- package/dist/input.cjs.js +1 -0
- package/dist/input.d.ts +9 -0
- package/dist/input.es.js +19 -0
- package/dist/jsx-runtime-nZSsnGb7.js +6 -0
- package/dist/jsx-runtime-tc70JA_2.mjs +264 -0
- package/dist/label.cjs.js +1 -0
- package/dist/label.d.ts +11 -0
- package/dist/label.es.js +22 -0
- package/dist/menubar.cjs.js +1 -0
- package/dist/menubar.d.ts +79 -0
- package/dist/menubar.es.js +473 -0
- package/dist/navigation-menu.cjs.js +1 -0
- package/dist/navigation-menu.d.ts +47 -0
- package/dist/navigation-menu.es.js +673 -0
- package/dist/pagination.cjs.js +1 -0
- package/dist/pagination.d.ts +68 -0
- package/dist/pagination.es.js +68 -0
- package/dist/popover.cjs.js +1 -0
- package/dist/popover.d.ts +24 -0
- package/dist/popover.es.js +242 -0
- package/dist/progress.cjs.js +6 -0
- package/dist/progress.d.ts +9 -0
- package/dist/progress.es.js +99 -0
- package/dist/radio-group.cjs.js +1 -0
- package/dist/radio-group.d.ts +16 -0
- package/dist/radio-group.es.js +253 -0
- package/dist/resizable.cjs.js +1 -0
- package/dist/resizable.d.ts +22 -0
- package/dist/resizable.es.js +1990 -0
- package/dist/scroll-area.cjs.js +1 -0
- package/dist/scroll-area.d.ts +14 -0
- package/dist/scroll-area.es.js +546 -0
- package/dist/search.cjs.js +1 -0
- package/dist/search.d.ts +15 -0
- package/dist/search.es.js +51 -0
- package/dist/select.cjs.js +1 -0
- package/dist/select.d.ts +54 -0
- package/dist/select.es.js +908 -0
- package/dist/separator.cjs.js +1 -0
- package/dist/separator.d.ts +9 -0
- package/dist/separator.es.js +35 -0
- package/dist/sheet.cjs.js +1 -0
- package/dist/sheet.d.ts +68 -0
- package/dist/sheet.es.js +66 -0
- package/dist/skeleton.cjs.js +1 -0
- package/dist/skeleton.d.ts +9 -0
- package/dist/skeleton.es.js +8 -0
- package/dist/slider.cjs.js +1 -0
- package/dist/slider.d.ts +9 -0
- package/dist/slider.es.js +442 -0
- package/dist/sonner.cjs.js +1 -0
- package/dist/sonner.d.ts +10 -0
- package/dist/sonner.es.js +764 -0
- package/dist/switch.cjs.js +1 -0
- package/dist/switch.d.ts +9 -0
- package/dist/switch.es.js +149 -0
- package/dist/table.cjs.js +1 -0
- package/dist/table.d.ts +43 -0
- package/dist/table.es.js +57 -0
- package/dist/tabs.cjs.js +1 -0
- package/dist/tabs.d.ts +24 -0
- package/dist/tabs.es.js +195 -0
- package/dist/text.cjs.js +1 -0
- package/dist/text.d.ts +17 -0
- package/dist/text.es.js +42 -0
- package/dist/textarea.cjs.js +1 -0
- package/dist/textarea.d.ts +9 -0
- package/dist/textarea.es.js +18 -0
- package/dist/theme-provider.cjs.js +1 -0
- package/dist/theme-provider.d.ts +9 -0
- package/dist/theme-provider.es.js +8 -0
- package/dist/theme-toggle.cjs.js +1 -0
- package/dist/theme-toggle.d.ts +8 -0
- package/dist/theme-toggle.es.js +78 -0
- package/dist/toast.cjs.js +1 -0
- package/dist/toast.d.ts +26 -0
- package/dist/toast.es.js +494 -0
- package/dist/toaster-CIpfms4W.js +1 -0
- package/dist/toaster-jBYXAPRk.mjs +118 -0
- package/dist/toaster.cjs.js +1 -0
- package/dist/toaster.d.ts +6 -0
- package/dist/toaster.es.js +6 -0
- package/dist/toggle-group.cjs.js +1 -0
- package/dist/toggle-group.d.ts +18 -0
- package/dist/toggle-group.es.js +170 -0
- package/dist/toggle.cjs.js +1 -0
- package/dist/toggle.d.ts +14 -0
- package/dist/toggle.es.js +14 -0
- package/dist/tooltip.cjs.js +1 -0
- package/dist/tooltip.d.ts +25 -0
- package/dist/tooltip.es.js +342 -0
- package/dist/utils-B6yFEsav.mjs +8 -0
- package/dist/utils-IjLH3w2e.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,673 @@
|
|
|
1
|
+
import { j as a } from "./jsx-runtime-tc70JA_2.mjs";
|
|
2
|
+
import * as r from "react";
|
|
3
|
+
import _e from "react-dom";
|
|
4
|
+
import { c as je } from "./index-IZ2gq03c.mjs";
|
|
5
|
+
import { P as T, c as E, d as Z } from "./index-K9FzbxYw.mjs";
|
|
6
|
+
import { u as ne } from "./index-p6xVFRb4.mjs";
|
|
7
|
+
import { u as L, c as Se } from "./index-DLcqcWxM.mjs";
|
|
8
|
+
import { u as De } from "./index-CD6_IrA-.mjs";
|
|
9
|
+
import { P as K } from "./index-vuPgkS0V.mjs";
|
|
10
|
+
import { u as oe } from "./index-DnFcfnA9.mjs";
|
|
11
|
+
import { c as re } from "./index-DFdF7K7v.mjs";
|
|
12
|
+
import { D as ke } from "./index-Dfzl8TxY.mjs";
|
|
13
|
+
import { u as Ae } from "./index-BZPx6jYI.mjs";
|
|
14
|
+
import { u as z } from "./index-CCKe-Mpx.mjs";
|
|
15
|
+
import { u as S } from "./index-0ioNhtNM.mjs";
|
|
16
|
+
import { R as Le } from "./index-DKN_vhyX.mjs";
|
|
17
|
+
import { cva as Oe } from "class-variance-authority";
|
|
18
|
+
import { ChevronDown as Fe } from "lucide-react";
|
|
19
|
+
import { c as D } from "./utils-B6yFEsav.mjs";
|
|
20
|
+
var k = "NavigationMenu", [W, ae, Ke] = re(k), [$, Ve, ze] = re(k), [Y] = je(
|
|
21
|
+
k,
|
|
22
|
+
[Ke, ze]
|
|
23
|
+
), [$e, b] = Y(k), [Ge, Ue] = Y(k), ie = r.forwardRef(
|
|
24
|
+
(e, t) => {
|
|
25
|
+
const {
|
|
26
|
+
__scopeNavigationMenu: n,
|
|
27
|
+
value: o,
|
|
28
|
+
onValueChange: i,
|
|
29
|
+
defaultValue: s,
|
|
30
|
+
delayDuration: c = 200,
|
|
31
|
+
skipDelayDuration: d = 300,
|
|
32
|
+
orientation: l = "horizontal",
|
|
33
|
+
dir: N,
|
|
34
|
+
...u
|
|
35
|
+
} = e, [m, M] = r.useState(null), R = L(t, (h) => M(h)), p = De(N), w = r.useRef(0), C = r.useRef(0), y = r.useRef(0), [I, f] = r.useState(!0), [g, v] = ne({
|
|
36
|
+
prop: o,
|
|
37
|
+
onChange: (h) => {
|
|
38
|
+
const _ = h !== "", V = d > 0;
|
|
39
|
+
_ ? (window.clearTimeout(y.current), V && f(!1)) : (window.clearTimeout(y.current), y.current = window.setTimeout(
|
|
40
|
+
() => f(!0),
|
|
41
|
+
d
|
|
42
|
+
)), i?.(h);
|
|
43
|
+
},
|
|
44
|
+
defaultProp: s ?? "",
|
|
45
|
+
caller: k
|
|
46
|
+
}), x = r.useCallback(() => {
|
|
47
|
+
window.clearTimeout(C.current), C.current = window.setTimeout(() => v(""), 150);
|
|
48
|
+
}, [v]), P = r.useCallback(
|
|
49
|
+
(h) => {
|
|
50
|
+
window.clearTimeout(C.current), v(h);
|
|
51
|
+
},
|
|
52
|
+
[v]
|
|
53
|
+
), j = r.useCallback(
|
|
54
|
+
(h) => {
|
|
55
|
+
g === h ? window.clearTimeout(C.current) : w.current = window.setTimeout(() => {
|
|
56
|
+
window.clearTimeout(C.current), v(h);
|
|
57
|
+
}, c);
|
|
58
|
+
},
|
|
59
|
+
[g, v, c]
|
|
60
|
+
);
|
|
61
|
+
return r.useEffect(() => () => {
|
|
62
|
+
window.clearTimeout(w.current), window.clearTimeout(C.current), window.clearTimeout(y.current);
|
|
63
|
+
}, []), /* @__PURE__ */ a.jsx(
|
|
64
|
+
se,
|
|
65
|
+
{
|
|
66
|
+
scope: n,
|
|
67
|
+
isRootMenu: !0,
|
|
68
|
+
value: g,
|
|
69
|
+
dir: p,
|
|
70
|
+
orientation: l,
|
|
71
|
+
rootNavigationMenu: m,
|
|
72
|
+
onTriggerEnter: (h) => {
|
|
73
|
+
window.clearTimeout(w.current), I ? j(h) : P(h);
|
|
74
|
+
},
|
|
75
|
+
onTriggerLeave: () => {
|
|
76
|
+
window.clearTimeout(w.current), x();
|
|
77
|
+
},
|
|
78
|
+
onContentEnter: () => window.clearTimeout(C.current),
|
|
79
|
+
onContentLeave: x,
|
|
80
|
+
onItemSelect: (h) => {
|
|
81
|
+
v((_) => _ === h ? "" : h);
|
|
82
|
+
},
|
|
83
|
+
onItemDismiss: () => v(""),
|
|
84
|
+
children: /* @__PURE__ */ a.jsx(
|
|
85
|
+
T.nav,
|
|
86
|
+
{
|
|
87
|
+
"aria-label": "Main",
|
|
88
|
+
"data-orientation": l,
|
|
89
|
+
dir: p,
|
|
90
|
+
...u,
|
|
91
|
+
ref: R
|
|
92
|
+
}
|
|
93
|
+
)
|
|
94
|
+
}
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
);
|
|
98
|
+
ie.displayName = k;
|
|
99
|
+
var G = "NavigationMenuSub", He = r.forwardRef(
|
|
100
|
+
(e, t) => {
|
|
101
|
+
const {
|
|
102
|
+
__scopeNavigationMenu: n,
|
|
103
|
+
value: o,
|
|
104
|
+
onValueChange: i,
|
|
105
|
+
defaultValue: s,
|
|
106
|
+
orientation: c = "horizontal",
|
|
107
|
+
...d
|
|
108
|
+
} = e, l = b(G, n), [N, u] = ne({
|
|
109
|
+
prop: o,
|
|
110
|
+
onChange: i,
|
|
111
|
+
defaultProp: s ?? "",
|
|
112
|
+
caller: G
|
|
113
|
+
});
|
|
114
|
+
return /* @__PURE__ */ a.jsx(
|
|
115
|
+
se,
|
|
116
|
+
{
|
|
117
|
+
scope: n,
|
|
118
|
+
isRootMenu: !1,
|
|
119
|
+
value: N,
|
|
120
|
+
dir: l.dir,
|
|
121
|
+
orientation: c,
|
|
122
|
+
rootNavigationMenu: l.rootNavigationMenu,
|
|
123
|
+
onTriggerEnter: (m) => u(m),
|
|
124
|
+
onItemSelect: (m) => u(m),
|
|
125
|
+
onItemDismiss: () => u(""),
|
|
126
|
+
children: /* @__PURE__ */ a.jsx(T.div, { "data-orientation": c, ...d, ref: t })
|
|
127
|
+
}
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
);
|
|
131
|
+
He.displayName = G;
|
|
132
|
+
var se = (e) => {
|
|
133
|
+
const {
|
|
134
|
+
scope: t,
|
|
135
|
+
isRootMenu: n,
|
|
136
|
+
rootNavigationMenu: o,
|
|
137
|
+
dir: i,
|
|
138
|
+
orientation: s,
|
|
139
|
+
children: c,
|
|
140
|
+
value: d,
|
|
141
|
+
onItemSelect: l,
|
|
142
|
+
onItemDismiss: N,
|
|
143
|
+
onTriggerEnter: u,
|
|
144
|
+
onTriggerLeave: m,
|
|
145
|
+
onContentEnter: M,
|
|
146
|
+
onContentLeave: R
|
|
147
|
+
} = e, [p, w] = r.useState(null), [C, y] = r.useState(/* @__PURE__ */ new Map()), [I, f] = r.useState(null);
|
|
148
|
+
return /* @__PURE__ */ a.jsx(
|
|
149
|
+
$e,
|
|
150
|
+
{
|
|
151
|
+
scope: t,
|
|
152
|
+
isRootMenu: n,
|
|
153
|
+
rootNavigationMenu: o,
|
|
154
|
+
value: d,
|
|
155
|
+
previousValue: Ae(d),
|
|
156
|
+
baseId: oe(),
|
|
157
|
+
dir: i,
|
|
158
|
+
orientation: s,
|
|
159
|
+
viewport: p,
|
|
160
|
+
onViewportChange: w,
|
|
161
|
+
indicatorTrack: I,
|
|
162
|
+
onIndicatorTrackChange: f,
|
|
163
|
+
onTriggerEnter: S(u),
|
|
164
|
+
onTriggerLeave: S(m),
|
|
165
|
+
onContentEnter: S(M),
|
|
166
|
+
onContentLeave: S(R),
|
|
167
|
+
onItemSelect: S(l),
|
|
168
|
+
onItemDismiss: S(N),
|
|
169
|
+
onViewportContentChange: r.useCallback((g, v) => {
|
|
170
|
+
y((x) => (x.set(g, v), new Map(x)));
|
|
171
|
+
}, []),
|
|
172
|
+
onViewportContentRemove: r.useCallback((g) => {
|
|
173
|
+
y((v) => v.has(g) ? (v.delete(g), new Map(v)) : v);
|
|
174
|
+
}, []),
|
|
175
|
+
children: /* @__PURE__ */ a.jsx(W.Provider, { scope: t, children: /* @__PURE__ */ a.jsx(Ge, { scope: t, items: C, children: c }) })
|
|
176
|
+
}
|
|
177
|
+
);
|
|
178
|
+
}, ce = "NavigationMenuList", ue = r.forwardRef(
|
|
179
|
+
(e, t) => {
|
|
180
|
+
const { __scopeNavigationMenu: n, ...o } = e, i = b(ce, n), s = /* @__PURE__ */ a.jsx(T.ul, { "data-orientation": i.orientation, ...o, ref: t });
|
|
181
|
+
return /* @__PURE__ */ a.jsx(T.div, { style: { position: "relative" }, ref: i.onIndicatorTrackChange, children: /* @__PURE__ */ a.jsx(W.Slot, { scope: n, children: i.isRootMenu ? /* @__PURE__ */ a.jsx(Ne, { asChild: !0, children: s }) : s }) });
|
|
182
|
+
}
|
|
183
|
+
);
|
|
184
|
+
ue.displayName = ce;
|
|
185
|
+
var le = "NavigationMenuItem", [Be, de] = Y(le), fe = r.forwardRef(
|
|
186
|
+
(e, t) => {
|
|
187
|
+
const { __scopeNavigationMenu: n, value: o, ...i } = e, s = oe(), c = o || s || "LEGACY_REACT_AUTO_VALUE", d = r.useRef(null), l = r.useRef(null), N = r.useRef(null), u = r.useRef(() => {
|
|
188
|
+
}), m = r.useRef(!1), M = r.useCallback((p = "start") => {
|
|
189
|
+
if (d.current) {
|
|
190
|
+
u.current();
|
|
191
|
+
const w = H(d.current);
|
|
192
|
+
w.length && J(p === "start" ? w : w.reverse());
|
|
193
|
+
}
|
|
194
|
+
}, []), R = r.useCallback(() => {
|
|
195
|
+
if (d.current) {
|
|
196
|
+
const p = H(d.current);
|
|
197
|
+
p.length && (u.current = Ze(p));
|
|
198
|
+
}
|
|
199
|
+
}, []);
|
|
200
|
+
return /* @__PURE__ */ a.jsx(
|
|
201
|
+
Be,
|
|
202
|
+
{
|
|
203
|
+
scope: n,
|
|
204
|
+
value: c,
|
|
205
|
+
triggerRef: l,
|
|
206
|
+
contentRef: d,
|
|
207
|
+
focusProxyRef: N,
|
|
208
|
+
wasEscapeCloseRef: m,
|
|
209
|
+
onEntryKeyDown: M,
|
|
210
|
+
onFocusProxyEnter: M,
|
|
211
|
+
onRootContentClose: R,
|
|
212
|
+
onContentFocusOutside: R,
|
|
213
|
+
children: /* @__PURE__ */ a.jsx(T.li, { ...i, ref: t })
|
|
214
|
+
}
|
|
215
|
+
);
|
|
216
|
+
}
|
|
217
|
+
);
|
|
218
|
+
fe.displayName = le;
|
|
219
|
+
var U = "NavigationMenuTrigger", ve = r.forwardRef((e, t) => {
|
|
220
|
+
const { __scopeNavigationMenu: n, disabled: o, ...i } = e, s = b(U, e.__scopeNavigationMenu), c = de(U, e.__scopeNavigationMenu), d = r.useRef(null), l = L(d, c.triggerRef, t), N = Ce(s.baseId, c.value), u = Me(s.baseId, c.value), m = r.useRef(!1), M = r.useRef(!1), R = c.value === s.value;
|
|
221
|
+
return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
222
|
+
/* @__PURE__ */ a.jsx(W.ItemSlot, { scope: n, value: c.value, children: /* @__PURE__ */ a.jsx(he, { asChild: !0, children: /* @__PURE__ */ a.jsx(
|
|
223
|
+
T.button,
|
|
224
|
+
{
|
|
225
|
+
id: N,
|
|
226
|
+
disabled: o,
|
|
227
|
+
"data-disabled": o ? "" : void 0,
|
|
228
|
+
"data-state": Q(R),
|
|
229
|
+
"aria-expanded": R,
|
|
230
|
+
"aria-controls": u,
|
|
231
|
+
...i,
|
|
232
|
+
ref: l,
|
|
233
|
+
onPointerEnter: E(e.onPointerEnter, () => {
|
|
234
|
+
M.current = !1, c.wasEscapeCloseRef.current = !1;
|
|
235
|
+
}),
|
|
236
|
+
onPointerMove: E(
|
|
237
|
+
e.onPointerMove,
|
|
238
|
+
F(() => {
|
|
239
|
+
o || M.current || c.wasEscapeCloseRef.current || m.current || (s.onTriggerEnter(c.value), m.current = !0);
|
|
240
|
+
})
|
|
241
|
+
),
|
|
242
|
+
onPointerLeave: E(
|
|
243
|
+
e.onPointerLeave,
|
|
244
|
+
F(() => {
|
|
245
|
+
o || (s.onTriggerLeave(), m.current = !1);
|
|
246
|
+
})
|
|
247
|
+
),
|
|
248
|
+
onClick: E(e.onClick, () => {
|
|
249
|
+
s.onItemSelect(c.value), M.current = R;
|
|
250
|
+
}),
|
|
251
|
+
onKeyDown: E(e.onKeyDown, (p) => {
|
|
252
|
+
const C = { horizontal: "ArrowDown", vertical: s.dir === "rtl" ? "ArrowLeft" : "ArrowRight" }[s.orientation];
|
|
253
|
+
R && p.key === C && (c.onEntryKeyDown(), p.preventDefault());
|
|
254
|
+
})
|
|
255
|
+
}
|
|
256
|
+
) }) }),
|
|
257
|
+
R && /* @__PURE__ */ a.jsxs(a.Fragment, { children: [
|
|
258
|
+
/* @__PURE__ */ a.jsx(
|
|
259
|
+
Le,
|
|
260
|
+
{
|
|
261
|
+
"aria-hidden": !0,
|
|
262
|
+
tabIndex: 0,
|
|
263
|
+
ref: c.focusProxyRef,
|
|
264
|
+
onFocus: (p) => {
|
|
265
|
+
const w = c.contentRef.current, C = p.relatedTarget, y = C === d.current, I = w?.contains(C);
|
|
266
|
+
(y || !I) && c.onFocusProxyEnter(y ? "start" : "end");
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
),
|
|
270
|
+
s.viewport && /* @__PURE__ */ a.jsx("span", { "aria-owns": u })
|
|
271
|
+
] })
|
|
272
|
+
] });
|
|
273
|
+
});
|
|
274
|
+
ve.displayName = U;
|
|
275
|
+
var We = "NavigationMenuLink", ee = "navigationMenu.linkSelect", me = r.forwardRef(
|
|
276
|
+
(e, t) => {
|
|
277
|
+
const { __scopeNavigationMenu: n, active: o, onSelect: i, ...s } = e;
|
|
278
|
+
return /* @__PURE__ */ a.jsx(he, { asChild: !0, children: /* @__PURE__ */ a.jsx(
|
|
279
|
+
T.a,
|
|
280
|
+
{
|
|
281
|
+
"data-active": o ? "" : void 0,
|
|
282
|
+
"aria-current": o ? "page" : void 0,
|
|
283
|
+
...s,
|
|
284
|
+
ref: t,
|
|
285
|
+
onClick: E(
|
|
286
|
+
e.onClick,
|
|
287
|
+
(c) => {
|
|
288
|
+
const d = c.target, l = new CustomEvent(ee, {
|
|
289
|
+
bubbles: !0,
|
|
290
|
+
cancelable: !0
|
|
291
|
+
});
|
|
292
|
+
if (d.addEventListener(ee, (N) => i?.(N), { once: !0 }), Z(d, l), !l.defaultPrevented && !c.metaKey) {
|
|
293
|
+
const N = new CustomEvent(O, {
|
|
294
|
+
bubbles: !0,
|
|
295
|
+
cancelable: !0
|
|
296
|
+
});
|
|
297
|
+
Z(d, N);
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
{ checkForDefaultPrevented: !1 }
|
|
301
|
+
)
|
|
302
|
+
}
|
|
303
|
+
) });
|
|
304
|
+
}
|
|
305
|
+
);
|
|
306
|
+
me.displayName = We;
|
|
307
|
+
var q = "NavigationMenuIndicator", ge = r.forwardRef((e, t) => {
|
|
308
|
+
const { forceMount: n, ...o } = e, i = b(q, e.__scopeNavigationMenu), s = !!i.value;
|
|
309
|
+
return i.indicatorTrack ? _e.createPortal(
|
|
310
|
+
/* @__PURE__ */ a.jsx(K, { present: n || s, children: /* @__PURE__ */ a.jsx(Ye, { ...o, ref: t }) }),
|
|
311
|
+
i.indicatorTrack
|
|
312
|
+
) : null;
|
|
313
|
+
});
|
|
314
|
+
ge.displayName = q;
|
|
315
|
+
var Ye = r.forwardRef((e, t) => {
|
|
316
|
+
const { __scopeNavigationMenu: n, ...o } = e, i = b(q, n), s = ae(n), [c, d] = r.useState(
|
|
317
|
+
null
|
|
318
|
+
), [l, N] = r.useState(null), u = i.orientation === "horizontal", m = !!i.value;
|
|
319
|
+
r.useEffect(() => {
|
|
320
|
+
const p = s().find((w) => w.value === i.value)?.ref.current;
|
|
321
|
+
p && d(p);
|
|
322
|
+
}, [s, i.value]);
|
|
323
|
+
const M = () => {
|
|
324
|
+
c && N({
|
|
325
|
+
size: u ? c.offsetWidth : c.offsetHeight,
|
|
326
|
+
offset: u ? c.offsetLeft : c.offsetTop
|
|
327
|
+
});
|
|
328
|
+
};
|
|
329
|
+
return B(c, M), B(i.indicatorTrack, M), l ? /* @__PURE__ */ a.jsx(
|
|
330
|
+
T.div,
|
|
331
|
+
{
|
|
332
|
+
"aria-hidden": !0,
|
|
333
|
+
"data-state": m ? "visible" : "hidden",
|
|
334
|
+
"data-orientation": i.orientation,
|
|
335
|
+
...o,
|
|
336
|
+
ref: t,
|
|
337
|
+
style: {
|
|
338
|
+
position: "absolute",
|
|
339
|
+
...u ? {
|
|
340
|
+
left: 0,
|
|
341
|
+
width: l.size + "px",
|
|
342
|
+
transform: `translateX(${l.offset}px)`
|
|
343
|
+
} : {
|
|
344
|
+
top: 0,
|
|
345
|
+
height: l.size + "px",
|
|
346
|
+
transform: `translateY(${l.offset}px)`
|
|
347
|
+
},
|
|
348
|
+
...o.style
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
) : null;
|
|
352
|
+
}), A = "NavigationMenuContent", pe = r.forwardRef((e, t) => {
|
|
353
|
+
const { forceMount: n, ...o } = e, i = b(A, e.__scopeNavigationMenu), s = de(A, e.__scopeNavigationMenu), c = L(s.contentRef, t), d = s.value === i.value, l = {
|
|
354
|
+
value: s.value,
|
|
355
|
+
triggerRef: s.triggerRef,
|
|
356
|
+
focusProxyRef: s.focusProxyRef,
|
|
357
|
+
wasEscapeCloseRef: s.wasEscapeCloseRef,
|
|
358
|
+
onContentFocusOutside: s.onContentFocusOutside,
|
|
359
|
+
onRootContentClose: s.onRootContentClose,
|
|
360
|
+
...o
|
|
361
|
+
};
|
|
362
|
+
return i.viewport ? /* @__PURE__ */ a.jsx(qe, { forceMount: n, ...l, ref: c }) : /* @__PURE__ */ a.jsx(K, { present: n || d, children: /* @__PURE__ */ a.jsx(
|
|
363
|
+
we,
|
|
364
|
+
{
|
|
365
|
+
"data-state": Q(d),
|
|
366
|
+
...l,
|
|
367
|
+
ref: c,
|
|
368
|
+
onPointerEnter: E(e.onPointerEnter, i.onContentEnter),
|
|
369
|
+
onPointerLeave: E(
|
|
370
|
+
e.onPointerLeave,
|
|
371
|
+
F(i.onContentLeave)
|
|
372
|
+
),
|
|
373
|
+
style: {
|
|
374
|
+
// Prevent interaction when animating out
|
|
375
|
+
pointerEvents: !d && i.isRootMenu ? "none" : void 0,
|
|
376
|
+
...l.style
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
) });
|
|
380
|
+
});
|
|
381
|
+
pe.displayName = A;
|
|
382
|
+
var qe = r.forwardRef((e, t) => {
|
|
383
|
+
const n = b(A, e.__scopeNavigationMenu), { onViewportContentChange: o, onViewportContentRemove: i } = n;
|
|
384
|
+
return z(() => {
|
|
385
|
+
o(e.value, {
|
|
386
|
+
ref: t,
|
|
387
|
+
...e
|
|
388
|
+
});
|
|
389
|
+
}, [e, t, o]), z(() => () => i(e.value), [e.value, i]), null;
|
|
390
|
+
}), O = "navigationMenu.rootContentDismiss", we = r.forwardRef((e, t) => {
|
|
391
|
+
const {
|
|
392
|
+
__scopeNavigationMenu: n,
|
|
393
|
+
value: o,
|
|
394
|
+
triggerRef: i,
|
|
395
|
+
focusProxyRef: s,
|
|
396
|
+
wasEscapeCloseRef: c,
|
|
397
|
+
onRootContentClose: d,
|
|
398
|
+
onContentFocusOutside: l,
|
|
399
|
+
...N
|
|
400
|
+
} = e, u = b(A, n), m = r.useRef(null), M = L(m, t), R = Ce(u.baseId, o), p = Me(u.baseId, o), w = ae(n), C = r.useRef(null), { onItemDismiss: y } = u;
|
|
401
|
+
r.useEffect(() => {
|
|
402
|
+
const f = m.current;
|
|
403
|
+
if (u.isRootMenu && f) {
|
|
404
|
+
const g = () => {
|
|
405
|
+
y(), d(), f.contains(document.activeElement) && i.current?.focus();
|
|
406
|
+
};
|
|
407
|
+
return f.addEventListener(O, g), () => f.removeEventListener(O, g);
|
|
408
|
+
}
|
|
409
|
+
}, [u.isRootMenu, e.value, i, y, d]);
|
|
410
|
+
const I = r.useMemo(() => {
|
|
411
|
+
const g = w().map((_) => _.value);
|
|
412
|
+
u.dir === "rtl" && g.reverse();
|
|
413
|
+
const v = g.indexOf(u.value), x = g.indexOf(u.previousValue), P = o === u.value, j = x === g.indexOf(o);
|
|
414
|
+
if (!P && !j) return C.current;
|
|
415
|
+
const h = (() => {
|
|
416
|
+
if (v !== x) {
|
|
417
|
+
if (P && x !== -1) return v > x ? "from-end" : "from-start";
|
|
418
|
+
if (j && v !== -1) return v > x ? "to-start" : "to-end";
|
|
419
|
+
}
|
|
420
|
+
return null;
|
|
421
|
+
})();
|
|
422
|
+
return C.current = h, h;
|
|
423
|
+
}, [u.previousValue, u.value, u.dir, w, o]);
|
|
424
|
+
return /* @__PURE__ */ a.jsx(Ne, { asChild: !0, children: /* @__PURE__ */ a.jsx(
|
|
425
|
+
ke,
|
|
426
|
+
{
|
|
427
|
+
id: p,
|
|
428
|
+
"aria-labelledby": R,
|
|
429
|
+
"data-motion": I,
|
|
430
|
+
"data-orientation": u.orientation,
|
|
431
|
+
...N,
|
|
432
|
+
ref: M,
|
|
433
|
+
disableOutsidePointerEvents: !1,
|
|
434
|
+
onDismiss: () => {
|
|
435
|
+
const f = new Event(O, {
|
|
436
|
+
bubbles: !0,
|
|
437
|
+
cancelable: !0
|
|
438
|
+
});
|
|
439
|
+
m.current?.dispatchEvent(f);
|
|
440
|
+
},
|
|
441
|
+
onFocusOutside: E(e.onFocusOutside, (f) => {
|
|
442
|
+
l();
|
|
443
|
+
const g = f.target;
|
|
444
|
+
u.rootNavigationMenu?.contains(g) && f.preventDefault();
|
|
445
|
+
}),
|
|
446
|
+
onPointerDownOutside: E(e.onPointerDownOutside, (f) => {
|
|
447
|
+
const g = f.target, v = w().some((P) => P.ref.current?.contains(g)), x = u.isRootMenu && u.viewport?.contains(g);
|
|
448
|
+
(v || x || !u.isRootMenu) && f.preventDefault();
|
|
449
|
+
}),
|
|
450
|
+
onKeyDown: E(e.onKeyDown, (f) => {
|
|
451
|
+
const g = f.altKey || f.ctrlKey || f.metaKey;
|
|
452
|
+
if (f.key === "Tab" && !g) {
|
|
453
|
+
const x = H(f.currentTarget), P = document.activeElement, j = x.findIndex((V) => V === P), _ = f.shiftKey ? x.slice(0, j).reverse() : x.slice(j + 1, x.length);
|
|
454
|
+
J(_) ? f.preventDefault() : s.current?.focus();
|
|
455
|
+
}
|
|
456
|
+
}),
|
|
457
|
+
onEscapeKeyDown: E(e.onEscapeKeyDown, (f) => {
|
|
458
|
+
c.current = !0;
|
|
459
|
+
})
|
|
460
|
+
}
|
|
461
|
+
) });
|
|
462
|
+
}), X = "NavigationMenuViewport", xe = r.forwardRef((e, t) => {
|
|
463
|
+
const { forceMount: n, ...o } = e, s = !!b(X, e.__scopeNavigationMenu).value;
|
|
464
|
+
return /* @__PURE__ */ a.jsx(K, { present: n || s, children: /* @__PURE__ */ a.jsx(Xe, { ...o, ref: t }) });
|
|
465
|
+
});
|
|
466
|
+
xe.displayName = X;
|
|
467
|
+
var Xe = r.forwardRef((e, t) => {
|
|
468
|
+
const { __scopeNavigationMenu: n, children: o, ...i } = e, s = b(X, n), c = L(t, s.onViewportChange), d = Ue(
|
|
469
|
+
A,
|
|
470
|
+
e.__scopeNavigationMenu
|
|
471
|
+
), [l, N] = r.useState(null), [u, m] = r.useState(null), M = l ? l?.width + "px" : void 0, R = l ? l?.height + "px" : void 0, p = !!s.value, w = p ? s.value : s.previousValue;
|
|
472
|
+
return B(u, () => {
|
|
473
|
+
u && N({ width: u.offsetWidth, height: u.offsetHeight });
|
|
474
|
+
}), /* @__PURE__ */ a.jsx(
|
|
475
|
+
T.div,
|
|
476
|
+
{
|
|
477
|
+
"data-state": Q(p),
|
|
478
|
+
"data-orientation": s.orientation,
|
|
479
|
+
...i,
|
|
480
|
+
ref: c,
|
|
481
|
+
style: {
|
|
482
|
+
// Prevent interaction when animating out
|
|
483
|
+
pointerEvents: !p && s.isRootMenu ? "none" : void 0,
|
|
484
|
+
"--radix-navigation-menu-viewport-width": M,
|
|
485
|
+
"--radix-navigation-menu-viewport-height": R,
|
|
486
|
+
...i.style
|
|
487
|
+
},
|
|
488
|
+
onPointerEnter: E(e.onPointerEnter, s.onContentEnter),
|
|
489
|
+
onPointerLeave: E(e.onPointerLeave, F(s.onContentLeave)),
|
|
490
|
+
children: Array.from(d.items).map(([y, { ref: I, forceMount: f, ...g }]) => {
|
|
491
|
+
const v = w === y;
|
|
492
|
+
return /* @__PURE__ */ a.jsx(K, { present: f || v, children: /* @__PURE__ */ a.jsx(
|
|
493
|
+
we,
|
|
494
|
+
{
|
|
495
|
+
...g,
|
|
496
|
+
ref: Se(I, (x) => {
|
|
497
|
+
v && x && m(x);
|
|
498
|
+
})
|
|
499
|
+
}
|
|
500
|
+
) }, y);
|
|
501
|
+
})
|
|
502
|
+
}
|
|
503
|
+
);
|
|
504
|
+
}), Je = "FocusGroup", Ne = r.forwardRef(
|
|
505
|
+
(e, t) => {
|
|
506
|
+
const { __scopeNavigationMenu: n, ...o } = e, i = b(Je, n);
|
|
507
|
+
return /* @__PURE__ */ a.jsx($.Provider, { scope: n, children: /* @__PURE__ */ a.jsx($.Slot, { scope: n, children: /* @__PURE__ */ a.jsx(T.div, { dir: i.dir, ...o, ref: t }) }) });
|
|
508
|
+
}
|
|
509
|
+
), te = ["ArrowRight", "ArrowLeft", "ArrowUp", "ArrowDown"], Qe = "FocusGroupItem", he = r.forwardRef(
|
|
510
|
+
(e, t) => {
|
|
511
|
+
const { __scopeNavigationMenu: n, ...o } = e, i = Ve(n), s = b(Qe, n);
|
|
512
|
+
return /* @__PURE__ */ a.jsx($.ItemSlot, { scope: n, children: /* @__PURE__ */ a.jsx(
|
|
513
|
+
T.button,
|
|
514
|
+
{
|
|
515
|
+
...o,
|
|
516
|
+
ref: t,
|
|
517
|
+
onKeyDown: E(e.onKeyDown, (c) => {
|
|
518
|
+
if (["Home", "End", ...te].includes(c.key)) {
|
|
519
|
+
let l = i().map((m) => m.ref.current);
|
|
520
|
+
if ([s.dir === "rtl" ? "ArrowRight" : "ArrowLeft", "ArrowUp", "End"].includes(c.key) && l.reverse(), te.includes(c.key)) {
|
|
521
|
+
const m = l.indexOf(c.currentTarget);
|
|
522
|
+
l = l.slice(m + 1);
|
|
523
|
+
}
|
|
524
|
+
setTimeout(() => J(l)), c.preventDefault();
|
|
525
|
+
}
|
|
526
|
+
})
|
|
527
|
+
}
|
|
528
|
+
) });
|
|
529
|
+
}
|
|
530
|
+
);
|
|
531
|
+
function H(e) {
|
|
532
|
+
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
533
|
+
acceptNode: (o) => {
|
|
534
|
+
const i = o.tagName === "INPUT" && o.type === "hidden";
|
|
535
|
+
return o.disabled || o.hidden || i ? NodeFilter.FILTER_SKIP : o.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
536
|
+
}
|
|
537
|
+
});
|
|
538
|
+
for (; n.nextNode(); ) t.push(n.currentNode);
|
|
539
|
+
return t;
|
|
540
|
+
}
|
|
541
|
+
function J(e) {
|
|
542
|
+
const t = document.activeElement;
|
|
543
|
+
return e.some((n) => n === t ? !0 : (n.focus(), document.activeElement !== t));
|
|
544
|
+
}
|
|
545
|
+
function Ze(e) {
|
|
546
|
+
return e.forEach((t) => {
|
|
547
|
+
t.dataset.tabindex = t.getAttribute("tabindex") || "", t.setAttribute("tabindex", "-1");
|
|
548
|
+
}), () => {
|
|
549
|
+
e.forEach((t) => {
|
|
550
|
+
const n = t.dataset.tabindex;
|
|
551
|
+
t.setAttribute("tabindex", n);
|
|
552
|
+
});
|
|
553
|
+
};
|
|
554
|
+
}
|
|
555
|
+
function B(e, t) {
|
|
556
|
+
const n = S(t);
|
|
557
|
+
z(() => {
|
|
558
|
+
let o = 0;
|
|
559
|
+
if (e) {
|
|
560
|
+
const i = new ResizeObserver(() => {
|
|
561
|
+
cancelAnimationFrame(o), o = window.requestAnimationFrame(n);
|
|
562
|
+
});
|
|
563
|
+
return i.observe(e), () => {
|
|
564
|
+
window.cancelAnimationFrame(o), i.unobserve(e);
|
|
565
|
+
};
|
|
566
|
+
}
|
|
567
|
+
}, [e, n]);
|
|
568
|
+
}
|
|
569
|
+
function Q(e) {
|
|
570
|
+
return e ? "open" : "closed";
|
|
571
|
+
}
|
|
572
|
+
function Ce(e, t) {
|
|
573
|
+
return `${e}-trigger-${t}`;
|
|
574
|
+
}
|
|
575
|
+
function Me(e, t) {
|
|
576
|
+
return `${e}-content-${t}`;
|
|
577
|
+
}
|
|
578
|
+
function F(e) {
|
|
579
|
+
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
580
|
+
}
|
|
581
|
+
var Re = ie, ye = ue, et = fe, Ee = ve, tt = me, be = ge, Te = pe, Ie = xe;
|
|
582
|
+
const nt = r.forwardRef(({ className: e, children: t, ...n }, o) => /* @__PURE__ */ a.jsxs(
|
|
583
|
+
Re,
|
|
584
|
+
{
|
|
585
|
+
ref: o,
|
|
586
|
+
className: D("relative z-10 flex max-w-max flex-1 items-center justify-center", e),
|
|
587
|
+
...n,
|
|
588
|
+
children: [
|
|
589
|
+
t,
|
|
590
|
+
/* @__PURE__ */ a.jsx(Pe, {})
|
|
591
|
+
]
|
|
592
|
+
}
|
|
593
|
+
));
|
|
594
|
+
nt.displayName = Re.displayName;
|
|
595
|
+
const ot = r.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
|
|
596
|
+
ye,
|
|
597
|
+
{
|
|
598
|
+
ref: n,
|
|
599
|
+
className: D("group flex flex-1 list-none items-center justify-center space-x-1", e),
|
|
600
|
+
...t
|
|
601
|
+
}
|
|
602
|
+
));
|
|
603
|
+
ot.displayName = ye.displayName;
|
|
604
|
+
const bt = et, rt = Oe(
|
|
605
|
+
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"
|
|
606
|
+
), at = r.forwardRef(({ className: e, children: t, ...n }, o) => /* @__PURE__ */ a.jsxs(
|
|
607
|
+
Ee,
|
|
608
|
+
{
|
|
609
|
+
ref: o,
|
|
610
|
+
className: D(rt(), "group", e),
|
|
611
|
+
...n,
|
|
612
|
+
children: [
|
|
613
|
+
t,
|
|
614
|
+
" ",
|
|
615
|
+
/* @__PURE__ */ a.jsx(
|
|
616
|
+
Fe,
|
|
617
|
+
{
|
|
618
|
+
className: "relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180",
|
|
619
|
+
"aria-hidden": "true"
|
|
620
|
+
}
|
|
621
|
+
)
|
|
622
|
+
]
|
|
623
|
+
}
|
|
624
|
+
));
|
|
625
|
+
at.displayName = Ee.displayName;
|
|
626
|
+
const it = r.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
|
|
627
|
+
Te,
|
|
628
|
+
{
|
|
629
|
+
ref: n,
|
|
630
|
+
className: D(
|
|
631
|
+
"data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full md:absolute md:w-auto",
|
|
632
|
+
e
|
|
633
|
+
),
|
|
634
|
+
...t
|
|
635
|
+
}
|
|
636
|
+
));
|
|
637
|
+
it.displayName = Te.displayName;
|
|
638
|
+
const Tt = tt, Pe = r.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx("div", { className: D("absolute top-full left-0 flex justify-center"), children: /* @__PURE__ */ a.jsx(
|
|
639
|
+
Ie,
|
|
640
|
+
{
|
|
641
|
+
className: D(
|
|
642
|
+
"origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",
|
|
643
|
+
e
|
|
644
|
+
),
|
|
645
|
+
ref: n,
|
|
646
|
+
...t
|
|
647
|
+
}
|
|
648
|
+
) }));
|
|
649
|
+
Pe.displayName = Ie.displayName;
|
|
650
|
+
const st = r.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ a.jsx(
|
|
651
|
+
be,
|
|
652
|
+
{
|
|
653
|
+
ref: n,
|
|
654
|
+
className: D(
|
|
655
|
+
"data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden",
|
|
656
|
+
e
|
|
657
|
+
),
|
|
658
|
+
...t,
|
|
659
|
+
children: /* @__PURE__ */ a.jsx("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" })
|
|
660
|
+
}
|
|
661
|
+
));
|
|
662
|
+
st.displayName = be.displayName;
|
|
663
|
+
export {
|
|
664
|
+
nt as NavigationMenu,
|
|
665
|
+
it as NavigationMenuContent,
|
|
666
|
+
st as NavigationMenuIndicator,
|
|
667
|
+
bt as NavigationMenuItem,
|
|
668
|
+
Tt as NavigationMenuLink,
|
|
669
|
+
ot as NavigationMenuList,
|
|
670
|
+
at as NavigationMenuTrigger,
|
|
671
|
+
Pe as NavigationMenuViewport,
|
|
672
|
+
rt as navigationMenuTriggerStyle
|
|
673
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./jsx-runtime-nZSsnGb7.js"),r=require("lucide-react"),j=require("react"),d=require("./button.cjs.js"),i=require("./utils-IjLH3w2e.js");function P(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const l=P(j),c=({className:e,...t})=>a.jsxRuntimeExports.jsx("nav",{role:"navigation","aria-label":"pagination",className:i.cn("mx-auto flex w-full justify-center",e),...t});c.displayName="Pagination";const u=l.forwardRef(({className:e,...t},n)=>a.jsxRuntimeExports.jsx("ul",{ref:n,className:i.cn("flex flex-row items-center gap-1",e),...t}));u.displayName="PaginationContent";const x=l.forwardRef(({className:e,...t},n)=>a.jsxRuntimeExports.jsx("li",{ref:n,className:i.cn("",e),...t}));x.displayName="PaginationItem";const o=({className:e,isActive:t,size:n="icon",...s})=>a.jsxRuntimeExports.jsx("a",{"aria-current":t?"page":void 0,className:i.cn(d.buttonVariants({variant:t?"outline":"ghost",size:n}),e),...s});o.displayName="PaginationLink";const p=({className:e,...t})=>a.jsxRuntimeExports.jsxs(o,{"aria-label":"Go to previous page",size:"default",className:i.cn("gap-1 pl-2.5",e),...t,children:[a.jsxRuntimeExports.jsx(r.ChevronLeft,{className:"h-4 w-4"}),a.jsxRuntimeExports.jsx("span",{children:"Previous"})]});p.displayName="PaginationPrevious";const m=({className:e,...t})=>a.jsxRuntimeExports.jsxs(o,{"aria-label":"Go to next page",size:"default",className:i.cn("gap-1 pr-2.5",e),...t,children:[a.jsxRuntimeExports.jsx("span",{children:"Next"}),a.jsxRuntimeExports.jsx(r.ChevronRight,{className:"h-4 w-4"})]});m.displayName="PaginationNext";const g=({className:e,...t})=>a.jsxRuntimeExports.jsxs("span",{"aria-hidden":!0,className:i.cn("flex h-9 w-9 items-center justify-center",e),...t,children:[a.jsxRuntimeExports.jsx(r.MoreHorizontal,{className:"h-4 w-4"}),a.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"More pages"})]});g.displayName="PaginationEllipsis";exports.Pagination=c;exports.PaginationContent=u;exports.PaginationEllipsis=g;exports.PaginationItem=x;exports.PaginationLink=o;exports.PaginationNext=m;exports.PaginationPrevious=p;
|