@gv-tech/ui-native 2.22.0 → 2.22.1
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/dropdown-menu.d.ts.map +1 -1
- package/dist/hooks/use-theme.d.ts +49 -0
- package/dist/hooks/use-theme.d.ts.map +1 -0
- package/dist/hooks/use-theme.test.d.ts +2 -0
- package/dist/hooks/use-theme.test.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/theme-toggle.d.ts.map +1 -1
- package/dist/ui-native.cjs +2 -2
- package/dist/ui-native.mjs +409 -396
- package/package.json +1 -1
- package/src/dropdown-menu.tsx +2 -1
- package/src/hooks/use-theme.ts +18 -0
- package/src/index.ts +1 -0
- package/src/theme-toggle.tsx +10 -9
package/dist/ui-native.mjs
CHANGED
|
@@ -32,6 +32,7 @@ import * as V from "@rn-primitives/toggle-group";
|
|
|
32
32
|
import * as H from "@rn-primitives/tooltip";
|
|
33
33
|
import * as U from "@rn-primitives/toast";
|
|
34
34
|
import { useColorScheme as Me } from "nativewind";
|
|
35
|
+
import { theme as Ne } from "@gv-tech/design-tokens";
|
|
35
36
|
//#region src/lib/render-native.tsx
|
|
36
37
|
function W(t, n = l, r = {}) {
|
|
37
38
|
return e.Children.map(t, (e) => typeof e == "string" || typeof e == "number" ? /* @__PURE__ */ m(n, {
|
|
@@ -44,30 +45,30 @@ function W(t, n = l, r = {}) {
|
|
|
44
45
|
function G(...e) {
|
|
45
46
|
return _(g(e));
|
|
46
47
|
}
|
|
47
|
-
function
|
|
48
|
+
function Pe(e) {
|
|
48
49
|
return e.toString().toLowerCase().trim().replace(/\s+/g, "-").replace(/[^\w-]+/g, "").replace(/--+/g, "-");
|
|
49
50
|
}
|
|
50
51
|
//#endregion
|
|
51
52
|
//#region src/accordion.tsx
|
|
52
|
-
var
|
|
53
|
+
var Fe = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(v.Root, {
|
|
53
54
|
ref: n,
|
|
54
55
|
className: G("web:gap-0", e),
|
|
55
56
|
...t
|
|
56
57
|
}));
|
|
57
|
-
|
|
58
|
-
var
|
|
58
|
+
Fe.displayName = v.Root?.displayName || "Accordion";
|
|
59
|
+
var Ie = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(v.Item, {
|
|
59
60
|
ref: n,
|
|
60
61
|
className: G("border-border overflow-hidden border-b", e),
|
|
61
62
|
...t
|
|
62
63
|
}));
|
|
63
|
-
|
|
64
|
-
var
|
|
64
|
+
Ie.displayName = v.Item?.displayName || "AccordionItem";
|
|
65
|
+
var Le = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(v.Header, {
|
|
65
66
|
ref: n,
|
|
66
67
|
className: G("flex flex-row", e),
|
|
67
68
|
...t
|
|
68
69
|
}));
|
|
69
|
-
|
|
70
|
-
var
|
|
70
|
+
Le.displayName = v.Header?.displayName || "AccordionHeader";
|
|
71
|
+
var Re = e.forwardRef(({ className: e, children: t, ...n }, r) => {
|
|
71
72
|
let { isExpanded: i } = v.useItemContext(), a = ye(() => i ? D(1, { duration: 250 }) : D(0, { duration: 200 })), o = ve(() => ({
|
|
72
73
|
transform: [{ rotate: `${a.value * 180}deg` }],
|
|
73
74
|
opacity: _e(a.value, [0, 1], [1, .8], le.CLAMP)
|
|
@@ -85,8 +86,8 @@ var Le = e.forwardRef(({ className: e, children: t, ...n }, r) => {
|
|
|
85
86
|
})
|
|
86
87
|
});
|
|
87
88
|
});
|
|
88
|
-
|
|
89
|
-
var
|
|
89
|
+
Re.displayName = v.Trigger?.displayName || "AccordionTrigger";
|
|
90
|
+
var ze = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ m(v.Content, {
|
|
90
91
|
ref: r,
|
|
91
92
|
className: G("data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm transition-all", e),
|
|
92
93
|
...n,
|
|
@@ -95,10 +96,10 @@ var Re = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ *
|
|
|
95
96
|
children: t
|
|
96
97
|
})
|
|
97
98
|
}));
|
|
98
|
-
|
|
99
|
+
ze.displayName = v.Content?.displayName || "AccordionContent";
|
|
99
100
|
//#endregion
|
|
100
101
|
//#region src/alert.tsx
|
|
101
|
-
var
|
|
102
|
+
var Be = O("relative w-full rounded-lg border p-4", {
|
|
102
103
|
variants: { variant: {
|
|
103
104
|
default: "bg-background border-border",
|
|
104
105
|
destructive: "border-destructive/50 bg-destructive/10",
|
|
@@ -106,25 +107,25 @@ var ze = O("relative w-full rounded-lg border p-4", {
|
|
|
106
107
|
info: "border-blue-500/50 bg-blue-500/10"
|
|
107
108
|
} },
|
|
108
109
|
defaultVariants: { variant: "default" }
|
|
109
|
-
}),
|
|
110
|
+
}), Ve = e.forwardRef(({ className: e, variant: t, children: n, ...r }, i) => /* @__PURE__ */ m(f, {
|
|
110
111
|
ref: i,
|
|
111
|
-
className: G(
|
|
112
|
+
className: G(Be({ variant: t }), e),
|
|
112
113
|
...r,
|
|
113
114
|
children: W(n)
|
|
114
115
|
}));
|
|
115
|
-
|
|
116
|
-
var
|
|
116
|
+
Ve.displayName = "Alert";
|
|
117
|
+
var He = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(l, {
|
|
117
118
|
ref: n,
|
|
118
119
|
className: G("text-foreground mb-1 leading-none font-medium tracking-tight", e),
|
|
119
120
|
...t
|
|
120
121
|
}));
|
|
121
|
-
|
|
122
|
-
var
|
|
122
|
+
He.displayName = "AlertTitle";
|
|
123
|
+
var Ue = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(l, {
|
|
123
124
|
ref: n,
|
|
124
125
|
className: G("text-muted-foreground text-sm leading-relaxed", e),
|
|
125
126
|
...t
|
|
126
127
|
}));
|
|
127
|
-
|
|
128
|
+
Ue.displayName = "AlertDescription";
|
|
128
129
|
//#endregion
|
|
129
130
|
//#region src/button.tsx
|
|
130
131
|
var K = O("flex-row items-center justify-center gap-2 rounded-md transition-colors active:opacity-80", {
|
|
@@ -148,7 +149,7 @@ var K = O("flex-row items-center justify-center gap-2 rounded-md transition-colo
|
|
|
148
149
|
variant: "default",
|
|
149
150
|
size: "default"
|
|
150
151
|
}
|
|
151
|
-
}),
|
|
152
|
+
}), We = O("text-sm font-medium", {
|
|
152
153
|
variants: { variant: {
|
|
153
154
|
default: "text-primary-foreground",
|
|
154
155
|
destructive: "text-destructive-foreground",
|
|
@@ -168,12 +169,12 @@ var K = O("flex-row items-center justify-center gap-2 rounded-md transition-colo
|
|
|
168
169
|
className: e
|
|
169
170
|
}), a && "opacity-50"),
|
|
170
171
|
...s,
|
|
171
|
-
children: W(i, l, { className: G(
|
|
172
|
+
children: W(i, l, { className: G(We({ variant: t })) })
|
|
172
173
|
}));
|
|
173
174
|
q.displayName = "Button";
|
|
174
175
|
//#endregion
|
|
175
176
|
//#region src/alert-dialog.tsx
|
|
176
|
-
var
|
|
177
|
+
var Ge = k.Root, Ke = k.Trigger, qe = k.Portal, Je = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(k.Overlay, {
|
|
177
178
|
style: c.absoluteFill,
|
|
178
179
|
asChild: !0,
|
|
179
180
|
ref: n,
|
|
@@ -184,10 +185,10 @@ var We = k.Root, Ge = k.Trigger, Ke = k.Portal, qe = e.forwardRef(({ className:
|
|
|
184
185
|
className: G("z-50 flex items-center justify-center bg-black/80 p-2", e)
|
|
185
186
|
})
|
|
186
187
|
}));
|
|
187
|
-
|
|
188
|
-
var
|
|
188
|
+
Je.displayName = k.Overlay?.displayName || "AlertDialogOverlay";
|
|
189
|
+
var Ye = e.forwardRef(({ className: e, portalHost: t, overlayClassName: n, overlayStyle: r, ...i }, a) => /* @__PURE__ */ h(qe, {
|
|
189
190
|
hostName: t,
|
|
190
|
-
children: [/* @__PURE__ */ m(
|
|
191
|
+
children: [/* @__PURE__ */ m(Je, {
|
|
191
192
|
className: n,
|
|
192
193
|
style: r
|
|
193
194
|
}), /* @__PURE__ */ m(k.Content, {
|
|
@@ -201,72 +202,72 @@ var Je = e.forwardRef(({ className: e, portalHost: t, overlayClassName: n, overl
|
|
|
201
202
|
})
|
|
202
203
|
})]
|
|
203
204
|
}));
|
|
204
|
-
|
|
205
|
-
var
|
|
205
|
+
Ye.displayName = k.Content?.displayName || "AlertDialogContent";
|
|
206
|
+
var Xe = ({ className: e, ...t }) => /* @__PURE__ */ m(f, {
|
|
206
207
|
className: G("flex flex-col gap-2 text-center sm:text-left", e),
|
|
207
208
|
...t
|
|
208
209
|
});
|
|
209
|
-
|
|
210
|
-
var
|
|
210
|
+
Xe.displayName = "AlertDialogHeader";
|
|
211
|
+
var Ze = ({ className: e, ...t }) => /* @__PURE__ */ m(f, {
|
|
211
212
|
className: G("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", e),
|
|
212
213
|
...t
|
|
213
214
|
});
|
|
214
|
-
|
|
215
|
-
var
|
|
215
|
+
Ze.displayName = "AlertDialogFooter";
|
|
216
|
+
var Qe = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(k.Title, {
|
|
216
217
|
ref: n,
|
|
217
218
|
className: G("native:text-xl text-foreground text-lg font-semibold", e),
|
|
218
219
|
...t
|
|
219
220
|
}));
|
|
220
|
-
|
|
221
|
-
var
|
|
221
|
+
Qe.displayName = k.Title?.displayName || "AlertDialogTitle";
|
|
222
|
+
var $e = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(k.Description, {
|
|
222
223
|
ref: n,
|
|
223
224
|
className: G("native:text-base text-muted-foreground text-sm", e),
|
|
224
225
|
...t
|
|
225
226
|
}));
|
|
226
|
-
|
|
227
|
-
var
|
|
227
|
+
$e.displayName = k.Description?.displayName || "AlertDialogDescription";
|
|
228
|
+
var et = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(k.Action, {
|
|
228
229
|
ref: n,
|
|
229
230
|
className: G(K(), e),
|
|
230
231
|
...t
|
|
231
232
|
}));
|
|
232
|
-
|
|
233
|
-
var
|
|
233
|
+
et.displayName = k.Action?.displayName || "AlertDialogAction";
|
|
234
|
+
var tt = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(k.Cancel, {
|
|
234
235
|
ref: n,
|
|
235
236
|
className: G(K({ variant: "outline" }), "mt-2 sm:mt-0", e),
|
|
236
237
|
...t
|
|
237
238
|
}));
|
|
238
|
-
|
|
239
|
+
tt.displayName = k.Cancel?.displayName || "AlertDialogCancel";
|
|
239
240
|
//#endregion
|
|
240
241
|
//#region src/aspect-ratio.tsx
|
|
241
|
-
var
|
|
242
|
+
var nt = ({ children: e, className: t, ratio: n = 1 }) => /* @__PURE__ */ m(Ce.Root, {
|
|
242
243
|
ratio: n,
|
|
243
244
|
className: G("w-full", t),
|
|
244
245
|
children: e
|
|
245
246
|
});
|
|
246
|
-
|
|
247
|
+
nt.displayName = "AspectRatio";
|
|
247
248
|
//#endregion
|
|
248
249
|
//#region src/avatar.tsx
|
|
249
|
-
var
|
|
250
|
+
var rt = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(A.Root, {
|
|
250
251
|
ref: n,
|
|
251
252
|
className: G("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full", e),
|
|
252
253
|
...t
|
|
253
254
|
}));
|
|
254
|
-
|
|
255
|
-
var
|
|
255
|
+
rt.displayName = A.Root?.displayName || "Avatar";
|
|
256
|
+
var it = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(A.Image, {
|
|
256
257
|
ref: n,
|
|
257
258
|
className: G("aspect-square h-full w-full", e),
|
|
258
259
|
...t
|
|
259
260
|
}));
|
|
260
|
-
|
|
261
|
-
var
|
|
261
|
+
it.displayName = A.Image?.displayName || "AvatarImage";
|
|
262
|
+
var at = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(A.Fallback, {
|
|
262
263
|
ref: n,
|
|
263
264
|
className: G("bg-muted flex h-full w-full items-center justify-center rounded-full", e),
|
|
264
265
|
...t
|
|
265
266
|
}));
|
|
266
|
-
|
|
267
|
+
at.displayName = A.Fallback?.displayName || "AvatarFallback";
|
|
267
268
|
//#endregion
|
|
268
269
|
//#region src/badge.tsx
|
|
269
|
-
var
|
|
270
|
+
var ot = O("flex-row items-center rounded-md border px-2 py-0.5", {
|
|
270
271
|
variants: { variant: {
|
|
271
272
|
default: "border-transparent bg-primary",
|
|
272
273
|
secondary: "border-transparent bg-secondary",
|
|
@@ -274,7 +275,7 @@ var at = O("flex-row items-center rounded-md border px-2 py-0.5", {
|
|
|
274
275
|
outline: "border-border bg-transparent"
|
|
275
276
|
} },
|
|
276
277
|
defaultVariants: { variant: "default" }
|
|
277
|
-
}),
|
|
278
|
+
}), st = O("text-xs font-semibold", {
|
|
278
279
|
variants: { variant: {
|
|
279
280
|
default: "text-primary-foreground",
|
|
280
281
|
secondary: "text-secondary-foreground",
|
|
@@ -283,16 +284,16 @@ var at = O("flex-row items-center rounded-md border px-2 py-0.5", {
|
|
|
283
284
|
} },
|
|
284
285
|
defaultVariants: { variant: "default" }
|
|
285
286
|
});
|
|
286
|
-
function
|
|
287
|
+
function ct({ className: e, textClassName: t, variant: n, children: r, ...i }) {
|
|
287
288
|
return /* @__PURE__ */ m(f, {
|
|
288
|
-
className: G(
|
|
289
|
+
className: G(ot({ variant: n }), e),
|
|
289
290
|
...i,
|
|
290
|
-
children: W(r, l, { className: G(
|
|
291
|
+
children: W(r, l, { className: G(st({ variant: n }), t) })
|
|
291
292
|
});
|
|
292
293
|
}
|
|
293
294
|
//#endregion
|
|
294
295
|
//#region src/text.tsx
|
|
295
|
-
var
|
|
296
|
+
var lt = e.createContext(void 0), ut = O("text-foreground", {
|
|
296
297
|
variants: { variant: {
|
|
297
298
|
h1: "text-4xl font-extrabold tracking-tight",
|
|
298
299
|
h2: "text-3xl font-semibold tracking-tight",
|
|
@@ -307,7 +308,7 @@ var ct = e.createContext(void 0), lt = O("text-foreground", {
|
|
|
307
308
|
defaultVariants: { variant: "body" }
|
|
308
309
|
}), J = e.forwardRef(({ className: e, variant: t = "body", children: n, ...r }, i) => /* @__PURE__ */ m(l, {
|
|
309
310
|
ref: i,
|
|
310
|
-
className: G(
|
|
311
|
+
className: G(ut({
|
|
311
312
|
variant: t,
|
|
312
313
|
className: e
|
|
313
314
|
})),
|
|
@@ -317,37 +318,37 @@ var ct = e.createContext(void 0), lt = O("text-foreground", {
|
|
|
317
318
|
J.displayName = "Text";
|
|
318
319
|
//#endregion
|
|
319
320
|
//#region src/breadcrumb.tsx
|
|
320
|
-
var
|
|
321
|
+
var dt = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ m(f, {
|
|
321
322
|
ref: r,
|
|
322
323
|
"aria-label": "breadcrumb",
|
|
323
324
|
className: G("flex flex-row", e),
|
|
324
325
|
...n,
|
|
325
326
|
children: t
|
|
326
327
|
}));
|
|
327
|
-
|
|
328
|
-
var
|
|
328
|
+
dt.displayName = "Breadcrumb";
|
|
329
|
+
var ft = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ m(f, {
|
|
329
330
|
ref: r,
|
|
330
331
|
className: G("text-muted-foreground flex flex-row flex-wrap items-center gap-1.5 break-words sm:gap-2.5", e),
|
|
331
332
|
...n,
|
|
332
333
|
children: t
|
|
333
334
|
}));
|
|
334
|
-
|
|
335
|
-
var
|
|
335
|
+
ft.displayName = "BreadcrumbList";
|
|
336
|
+
var pt = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ m(f, {
|
|
336
337
|
ref: r,
|
|
337
338
|
className: G("flex flex-row items-center gap-1.5", e),
|
|
338
339
|
...n,
|
|
339
340
|
children: t
|
|
340
341
|
}));
|
|
341
|
-
|
|
342
|
-
var
|
|
342
|
+
pt.displayName = "BreadcrumbItem";
|
|
343
|
+
var mt = e.forwardRef(({ asChild: e, className: t, children: n, onPress: r, ...i }, a) => /* @__PURE__ */ m(e ? we : o, {
|
|
343
344
|
ref: a,
|
|
344
345
|
onPress: r,
|
|
345
346
|
className: G("hover:text-foreground active:text-foreground flex flex-row items-center transition-colors", t),
|
|
346
347
|
...i,
|
|
347
348
|
children: W(n, J, { className: "text-muted-foreground hover:text-foreground text-sm font-medium" })
|
|
348
349
|
}));
|
|
349
|
-
|
|
350
|
-
var
|
|
350
|
+
mt.displayName = "BreadcrumbLink";
|
|
351
|
+
var ht = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ m(f, {
|
|
351
352
|
ref: r,
|
|
352
353
|
role: "link",
|
|
353
354
|
"aria-disabled": !0,
|
|
@@ -356,8 +357,8 @@ var mt = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ *
|
|
|
356
357
|
...n,
|
|
357
358
|
children: W(t, J, { className: "text-foreground text-sm font-normal" })
|
|
358
359
|
}));
|
|
359
|
-
|
|
360
|
-
var
|
|
360
|
+
ht.displayName = "BreadcrumbPage";
|
|
361
|
+
var gt = ({ children: e, className: t, ...n }) => /* @__PURE__ */ m(f, {
|
|
361
362
|
role: "presentation",
|
|
362
363
|
"aria-hidden": !0,
|
|
363
364
|
className: G("flex flex-row items-center justify-center", t),
|
|
@@ -367,8 +368,8 @@ var ht = ({ children: e, className: t, ...n }) => /* @__PURE__ */ m(f, {
|
|
|
367
368
|
className: "text-muted-foreground"
|
|
368
369
|
})
|
|
369
370
|
});
|
|
370
|
-
|
|
371
|
-
var
|
|
371
|
+
gt.displayName = "BreadcrumbSeparator";
|
|
372
|
+
var _t = ({ className: e, children: t, ...n }) => /* @__PURE__ */ m(f, {
|
|
372
373
|
role: "presentation",
|
|
373
374
|
"aria-hidden": !0,
|
|
374
375
|
className: G("flex h-9 w-9 flex-row items-center justify-center", e),
|
|
@@ -378,61 +379,61 @@ var gt = ({ className: e, children: t, ...n }) => /* @__PURE__ */ m(f, {
|
|
|
378
379
|
className: "text-muted-foreground"
|
|
379
380
|
})
|
|
380
381
|
});
|
|
381
|
-
|
|
382
|
+
_t.displayName = "BreadcrumbEllipsis";
|
|
382
383
|
//#endregion
|
|
383
384
|
//#region src/calendar.tsx
|
|
384
|
-
var
|
|
385
|
+
var vt = ({ className: e }) => /* @__PURE__ */ m(f, { className: e }), yt = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(f, {
|
|
385
386
|
ref: n,
|
|
386
387
|
className: G("border-border bg-card rounded-xl border shadow-sm", e),
|
|
387
388
|
...t
|
|
388
389
|
}));
|
|
389
|
-
|
|
390
|
-
var
|
|
390
|
+
yt.displayName = "Card";
|
|
391
|
+
var bt = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(f, {
|
|
391
392
|
ref: n,
|
|
392
393
|
className: G("flex flex-col space-y-1.5 p-6", e),
|
|
393
394
|
...t
|
|
394
395
|
}));
|
|
395
|
-
|
|
396
|
-
var
|
|
396
|
+
bt.displayName = "CardHeader";
|
|
397
|
+
var xt = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(l, {
|
|
397
398
|
ref: n,
|
|
398
399
|
className: G("text-card-foreground text-lg leading-none font-semibold tracking-tight", e),
|
|
399
400
|
...t
|
|
400
401
|
}));
|
|
401
|
-
|
|
402
|
-
var
|
|
402
|
+
xt.displayName = "CardTitle";
|
|
403
|
+
var St = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(l, {
|
|
403
404
|
ref: n,
|
|
404
405
|
className: G("text-muted-foreground text-sm", e),
|
|
405
406
|
...t
|
|
406
407
|
}));
|
|
407
|
-
|
|
408
|
-
var
|
|
408
|
+
St.displayName = "CardDescription";
|
|
409
|
+
var Ct = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(f, {
|
|
409
410
|
ref: n,
|
|
410
411
|
className: G("p-6 pt-0", e),
|
|
411
412
|
...t,
|
|
412
413
|
children: W(t.children, l, { className: "text-sm text-card-foreground" })
|
|
413
414
|
}));
|
|
414
|
-
|
|
415
|
-
var
|
|
415
|
+
Ct.displayName = "CardContent";
|
|
416
|
+
var wt = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(f, {
|
|
416
417
|
ref: n,
|
|
417
418
|
className: G("flex flex-row items-center p-6 pt-0", e),
|
|
418
419
|
...t
|
|
419
420
|
}));
|
|
420
|
-
|
|
421
|
+
wt.displayName = "CardFooter";
|
|
421
422
|
//#endregion
|
|
422
423
|
//#region src/carousel.tsx
|
|
423
|
-
var
|
|
424
|
+
var Tt = ({ children: e, className: t }) => /* @__PURE__ */ m(f, {
|
|
424
425
|
className: t,
|
|
425
426
|
children: e
|
|
426
|
-
}),
|
|
427
|
+
}), Et = ({ children: e, className: t }) => /* @__PURE__ */ m(f, {
|
|
427
428
|
className: t,
|
|
428
429
|
children: e
|
|
429
|
-
}),
|
|
430
|
+
}), Dt = ({ children: e, className: t }) => /* @__PURE__ */ m(f, {
|
|
430
431
|
className: t,
|
|
431
432
|
children: e
|
|
432
|
-
}),
|
|
433
|
+
}), Ot = ({ className: e }) => /* @__PURE__ */ m(f, { className: e }), kt = ({ className: e }) => /* @__PURE__ */ m(f, { className: e }), At = ({ children: e, className: t }) => /* @__PURE__ */ m(f, {
|
|
433
434
|
className: t,
|
|
434
435
|
children: e
|
|
435
|
-
}),
|
|
436
|
+
}), jt = ({ className: e }) => /* @__PURE__ */ m(f, { className: e }), Mt = ({ className: e }) => /* @__PURE__ */ m(f, { className: e }), Nt = ({ children: e }) => /* @__PURE__ */ m(p, { children: e }), Pt = ({ children: e }) => /* @__PURE__ */ m(p, { children: e }), Ft = () => null, It = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(Te.Root, {
|
|
436
437
|
ref: n,
|
|
437
438
|
className: G("web:peer native:h-[20] native:w-[20] native:rounded border-primary web:ring-offset-background web:focus-visible:outline-none web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2 h-4 w-4 shrink-0 rounded-sm border disabled:cursor-not-allowed disabled:opacity-50", t.checked && "bg-primary", e),
|
|
438
439
|
...t,
|
|
@@ -445,16 +446,13 @@ var wt = ({ children: e, className: t }) => /* @__PURE__ */ m(f, {
|
|
|
445
446
|
})
|
|
446
447
|
})
|
|
447
448
|
}));
|
|
448
|
-
|
|
449
|
+
It.displayName = Te.Root?.displayName || "Checkbox";
|
|
449
450
|
//#endregion
|
|
450
451
|
//#region src/collapsible.tsx
|
|
451
|
-
var
|
|
452
|
-
className: t,
|
|
453
|
-
children: W(e)
|
|
454
|
-
}), Bt = ({ children: e }) => /* @__PURE__ */ m(p, { children: e }), Vt = ({ className: e }) => /* @__PURE__ */ m(f, { className: e }), Ht = ({ children: e, className: t }) => /* @__PURE__ */ m(f, {
|
|
452
|
+
var Lt = Ee.Root, Rt = Ee.Trigger, zt = Ee.Content, Bt = ({ children: e, className: t }) => /* @__PURE__ */ m(f, {
|
|
455
453
|
className: t,
|
|
456
454
|
children: W(e)
|
|
457
|
-
}), Ut = ({ children: e, className: t }) => /* @__PURE__ */ m(f, {
|
|
455
|
+
}), Vt = ({ children: e }) => /* @__PURE__ */ m(p, { children: e }), Ht = ({ className: e }) => /* @__PURE__ */ m(f, { className: e }), Ut = ({ children: e, className: t }) => /* @__PURE__ */ m(f, {
|
|
458
456
|
className: t,
|
|
459
457
|
children: W(e)
|
|
460
458
|
}), Wt = ({ children: e, className: t }) => /* @__PURE__ */ m(f, {
|
|
@@ -463,10 +461,13 @@ var It = Ee.Root, Lt = Ee.Trigger, Rt = Ee.Content, zt = ({ children: e, classNa
|
|
|
463
461
|
}), Gt = ({ children: e, className: t }) => /* @__PURE__ */ m(f, {
|
|
464
462
|
className: t,
|
|
465
463
|
children: W(e)
|
|
466
|
-
}), Kt = ({
|
|
464
|
+
}), Kt = ({ children: e, className: t }) => /* @__PURE__ */ m(f, {
|
|
465
|
+
className: t,
|
|
466
|
+
children: W(e)
|
|
467
|
+
}), qt = ({ className: e }) => /* @__PURE__ */ m(f, { className: e }), Jt = ({ children: e, className: t }) => /* @__PURE__ */ m(f, {
|
|
467
468
|
className: t,
|
|
468
469
|
children: W(e)
|
|
469
|
-
}),
|
|
470
|
+
}), Yt = j.Root, Xt = j.Trigger, Zt = j.Portal, Qt = j.Group, $t = j.RadioGroup, en = j.Sub, tn = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(j.Overlay, {
|
|
470
471
|
style: a.OS === "web" ? void 0 : c.absoluteFill,
|
|
471
472
|
ref: n,
|
|
472
473
|
...t,
|
|
@@ -476,22 +477,22 @@ var It = Ee.Root, Lt = Ee.Trigger, Rt = Ee.Content, zt = ({ children: e, classNa
|
|
|
476
477
|
className: G("absolute inset-0 z-50 bg-black/30", e)
|
|
477
478
|
})
|
|
478
479
|
}));
|
|
479
|
-
|
|
480
|
-
var
|
|
480
|
+
tn.displayName = "ContextMenuOverlay";
|
|
481
|
+
var nn = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ h(Zt, { children: [/* @__PURE__ */ m(tn, {}), /* @__PURE__ */ m(j.Content, {
|
|
481
482
|
ref: r,
|
|
482
483
|
className: G("bg-popover border-border z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md", e),
|
|
483
484
|
...n,
|
|
484
485
|
children: t
|
|
485
486
|
})] }));
|
|
486
|
-
|
|
487
|
-
var
|
|
487
|
+
nn.displayName = "ContextMenuContent";
|
|
488
|
+
var rn = e.forwardRef(({ className: e, children: t, inset: n, ...r }, i) => /* @__PURE__ */ m(j.Item, {
|
|
488
489
|
ref: i,
|
|
489
490
|
className: G("focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground relative flex flex-row items-center rounded-sm px-2 py-1.5 text-sm outline-none", n && "pl-8", e),
|
|
490
491
|
...r,
|
|
491
492
|
children: W(t, J)
|
|
492
493
|
}));
|
|
493
|
-
|
|
494
|
-
var
|
|
494
|
+
rn.displayName = "ContextMenuItem";
|
|
495
|
+
var an = e.forwardRef(({ className: e, children: t, checked: n, onCheckedChange: r, ...i }, a) => /* @__PURE__ */ h(j.CheckboxItem, {
|
|
495
496
|
ref: a,
|
|
496
497
|
checked: !!n,
|
|
497
498
|
onCheckedChange: r || (() => {}),
|
|
@@ -505,8 +506,8 @@ var rn = e.forwardRef(({ className: e, children: t, checked: n, onCheckedChange:
|
|
|
505
506
|
}) })
|
|
506
507
|
}), W(t, J)]
|
|
507
508
|
}));
|
|
508
|
-
|
|
509
|
-
var
|
|
509
|
+
an.displayName = "ContextMenuCheckboxItem";
|
|
510
|
+
var on = e.forwardRef(({ className: e, children: t, value: n, ...r }, i) => /* @__PURE__ */ h(j.RadioItem, {
|
|
510
511
|
ref: i,
|
|
511
512
|
value: n,
|
|
512
513
|
className: G("focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground relative flex flex-row items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none", e),
|
|
@@ -519,27 +520,27 @@ var an = e.forwardRef(({ className: e, children: t, value: n, ...r }, i) => /* @
|
|
|
519
520
|
}) })
|
|
520
521
|
}), W(t, J)]
|
|
521
522
|
}));
|
|
522
|
-
|
|
523
|
-
var
|
|
523
|
+
on.displayName = "ContextMenuRadioItem";
|
|
524
|
+
var sn = e.forwardRef(({ className: e, children: t, inset: n, ...r }, i) => /* @__PURE__ */ m(j.Label, {
|
|
524
525
|
ref: i,
|
|
525
526
|
className: G("text-foreground px-2 py-1.5 text-sm font-semibold", n && "pl-8", e),
|
|
526
527
|
...r,
|
|
527
528
|
children: W(t, J)
|
|
528
529
|
}));
|
|
529
|
-
|
|
530
|
-
var
|
|
530
|
+
sn.displayName = "ContextMenuLabel";
|
|
531
|
+
var cn = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(j.Separator, {
|
|
531
532
|
ref: n,
|
|
532
533
|
className: G("bg-border -mx-1 my-1 h-px", e),
|
|
533
534
|
...t
|
|
534
535
|
}));
|
|
535
|
-
|
|
536
|
-
var
|
|
536
|
+
cn.displayName = "ContextMenuSeparator";
|
|
537
|
+
var ln = ({ className: e, children: t, ...n }) => /* @__PURE__ */ m(J, {
|
|
537
538
|
className: G("text-muted-foreground ml-auto text-xs tracking-widest", e),
|
|
538
539
|
...n,
|
|
539
540
|
children: t
|
|
540
541
|
});
|
|
541
|
-
|
|
542
|
-
var
|
|
542
|
+
ln.displayName = "ContextMenuShortcut";
|
|
543
|
+
var un = e.forwardRef(({ className: e, children: t, inset: n, ...r }, i) => /* @__PURE__ */ h(j.SubTrigger, {
|
|
543
544
|
ref: i,
|
|
544
545
|
className: G("focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground flex flex-row items-center rounded-sm px-2 py-1.5 text-sm outline-none", n && "pl-8", e),
|
|
545
546
|
...r,
|
|
@@ -551,17 +552,17 @@ var ln = e.forwardRef(({ className: e, children: t, inset: n, ...r }, i) => /* @
|
|
|
551
552
|
className: "text-foreground ml-auto"
|
|
552
553
|
})]
|
|
553
554
|
}));
|
|
554
|
-
|
|
555
|
-
var
|
|
555
|
+
un.displayName = "ContextMenuSubTrigger";
|
|
556
|
+
var dn = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ m(j.SubContent, {
|
|
556
557
|
ref: r,
|
|
557
558
|
className: G("bg-popover border-border z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md", e),
|
|
558
559
|
...n,
|
|
559
560
|
children: t
|
|
560
561
|
}));
|
|
561
|
-
|
|
562
|
+
dn.displayName = "ContextMenuSubContent";
|
|
562
563
|
//#endregion
|
|
563
564
|
//#region src/dialog.tsx
|
|
564
|
-
var
|
|
565
|
+
var fn = M.Root, pn = M.Trigger, mn = M.Portal, hn = M.Close, gn = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(M.Overlay, {
|
|
565
566
|
style: c.absoluteFill,
|
|
566
567
|
asChild: !0,
|
|
567
568
|
ref: n,
|
|
@@ -572,10 +573,10 @@ var dn = M.Root, fn = M.Trigger, pn = M.Portal, mn = M.Close, hn = e.forwardRef(
|
|
|
572
573
|
className: G("z-50 flex items-center justify-center bg-black/80 p-2", e)
|
|
573
574
|
})
|
|
574
575
|
}));
|
|
575
|
-
|
|
576
|
-
var
|
|
576
|
+
gn.displayName = M.Overlay?.displayName || "DialogOverlay";
|
|
577
|
+
var _n = e.forwardRef(({ className: e, children: t, portalHost: n, overlayClassName: r, overlayStyle: i, ...a }, o) => /* @__PURE__ */ h(mn, {
|
|
577
578
|
hostName: n,
|
|
578
|
-
children: [/* @__PURE__ */ m(
|
|
579
|
+
children: [/* @__PURE__ */ m(gn, {
|
|
579
580
|
className: r,
|
|
580
581
|
style: i
|
|
581
582
|
}), /* @__PURE__ */ m(M.Content, {
|
|
@@ -599,41 +600,41 @@ var gn = e.forwardRef(({ className: e, children: t, portalHost: n, overlayClassN
|
|
|
599
600
|
})
|
|
600
601
|
})]
|
|
601
602
|
}));
|
|
602
|
-
|
|
603
|
-
var
|
|
603
|
+
_n.displayName = M.Content?.displayName || "DialogContent";
|
|
604
|
+
var vn = ({ className: e, ...t }) => /* @__PURE__ */ m(f, {
|
|
604
605
|
className: G("flex flex-col gap-1.5 text-center sm:text-left", e),
|
|
605
606
|
...t
|
|
606
607
|
});
|
|
607
|
-
|
|
608
|
-
var
|
|
608
|
+
vn.displayName = "DialogHeader";
|
|
609
|
+
var yn = ({ className: e, ...t }) => /* @__PURE__ */ m(f, {
|
|
609
610
|
className: G("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", e),
|
|
610
611
|
...t
|
|
611
612
|
});
|
|
612
|
-
|
|
613
|
-
var
|
|
613
|
+
yn.displayName = "DialogFooter";
|
|
614
|
+
var bn = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(M.Title, {
|
|
614
615
|
ref: n,
|
|
615
616
|
className: G("native:text-xl text-foreground text-lg leading-none font-semibold tracking-tight", e),
|
|
616
617
|
...t
|
|
617
618
|
}));
|
|
618
|
-
|
|
619
|
-
var
|
|
619
|
+
bn.displayName = M.Title?.displayName || "DialogTitle";
|
|
620
|
+
var xn = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(M.Description, {
|
|
620
621
|
ref: n,
|
|
621
622
|
className: G("native:text-base text-muted-foreground text-sm", e),
|
|
622
623
|
...t
|
|
623
624
|
}));
|
|
624
|
-
|
|
625
|
+
xn.displayName = M.Description?.displayName || "DialogDescription";
|
|
625
626
|
//#endregion
|
|
626
627
|
//#region src/drawer.tsx
|
|
627
|
-
var
|
|
628
|
-
|
|
629
|
-
var
|
|
628
|
+
var Sn = ({ children: e }) => /* @__PURE__ */ m(M.Root, { children: e });
|
|
629
|
+
Sn.displayName = "Drawer";
|
|
630
|
+
var Cn = e.forwardRef(({ children: e, className: t, ...n }, r) => /* @__PURE__ */ m(M.Trigger, {
|
|
630
631
|
ref: r,
|
|
631
632
|
className: t,
|
|
632
633
|
...n,
|
|
633
634
|
children: W(e)
|
|
634
635
|
}));
|
|
635
|
-
|
|
636
|
-
var
|
|
636
|
+
Cn.displayName = "DrawerTrigger";
|
|
637
|
+
var wn = M.Portal, Tn = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(M.Overlay, {
|
|
637
638
|
style: c.absoluteFill,
|
|
638
639
|
asChild: !0,
|
|
639
640
|
ref: n,
|
|
@@ -644,10 +645,10 @@ var Cn = M.Portal, wn = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__
|
|
|
644
645
|
className: G("z-50 bg-black/80", e)
|
|
645
646
|
})
|
|
646
647
|
}));
|
|
647
|
-
|
|
648
|
-
var
|
|
648
|
+
Tn.displayName = "DrawerOverlay";
|
|
649
|
+
var En = e.forwardRef(({ className: e, children: t, portalHost: n, overlayClassName: r, overlayStyle: i, ...a }, o) => /* @__PURE__ */ h(wn, {
|
|
649
650
|
hostName: n,
|
|
650
|
-
children: [/* @__PURE__ */ m(
|
|
651
|
+
children: [/* @__PURE__ */ m(Tn, {
|
|
651
652
|
className: r,
|
|
652
653
|
style: i
|
|
653
654
|
}), /* @__PURE__ */ m(M.Content, {
|
|
@@ -662,43 +663,43 @@ var Tn = e.forwardRef(({ className: e, children: t, portalHost: n, overlayClassN
|
|
|
662
663
|
})
|
|
663
664
|
})]
|
|
664
665
|
}));
|
|
665
|
-
|
|
666
|
-
var
|
|
666
|
+
En.displayName = "DrawerContent";
|
|
667
|
+
var Dn = ({ className: e, children: t, ...n }) => /* @__PURE__ */ m(f, {
|
|
667
668
|
className: G("flex flex-col gap-1.5 text-center sm:text-left", e),
|
|
668
669
|
...n,
|
|
669
670
|
children: W(t)
|
|
670
671
|
});
|
|
671
|
-
|
|
672
|
-
var
|
|
672
|
+
Dn.displayName = "DrawerHeader";
|
|
673
|
+
var On = ({ className: e, children: t, ...n }) => /* @__PURE__ */ m(f, {
|
|
673
674
|
className: G("mt-auto flex flex-col gap-2", e),
|
|
674
675
|
...n,
|
|
675
676
|
children: W(t)
|
|
676
677
|
});
|
|
677
|
-
|
|
678
|
-
var
|
|
678
|
+
On.displayName = "DrawerFooter";
|
|
679
|
+
var kn = e.forwardRef(({ children: e, className: t, ...n }, r) => /* @__PURE__ */ m(M.Close, {
|
|
679
680
|
ref: r,
|
|
680
681
|
className: t,
|
|
681
682
|
...n,
|
|
682
683
|
children: W(e)
|
|
683
684
|
}));
|
|
684
|
-
|
|
685
|
-
var
|
|
685
|
+
kn.displayName = "DrawerClose";
|
|
686
|
+
var An = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ m(M.Title, {
|
|
686
687
|
ref: r,
|
|
687
688
|
className: G("text-foreground text-lg leading-none font-semibold tracking-tight", e),
|
|
688
689
|
...n,
|
|
689
690
|
children: W(t)
|
|
690
691
|
}));
|
|
691
|
-
|
|
692
|
-
var
|
|
692
|
+
An.displayName = "DrawerTitle";
|
|
693
|
+
var jn = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ m(M.Description, {
|
|
693
694
|
ref: r,
|
|
694
695
|
className: G("text-muted-foreground text-sm", e),
|
|
695
696
|
...n,
|
|
696
697
|
children: W(t)
|
|
697
698
|
}));
|
|
698
|
-
|
|
699
|
+
jn.displayName = "DrawerDescription";
|
|
699
700
|
//#endregion
|
|
700
701
|
//#region src/dropdown-menu.tsx
|
|
701
|
-
var
|
|
702
|
+
var Mn = N.Root, Nn = N.Trigger, Pn = N.Portal, Fn = N.Group, In = N.RadioGroup, Ln = N.Sub, Rn = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(N.Overlay, {
|
|
702
703
|
style: a.OS === "web" ? void 0 : c.absoluteFill,
|
|
703
704
|
ref: n,
|
|
704
705
|
...t,
|
|
@@ -708,10 +709,10 @@ var jn = N.Root, Mn = N.Trigger, Nn = N.Portal, Pn = N.Group, Fn = N.RadioGroup,
|
|
|
708
709
|
className: G("absolute inset-0 z-50 bg-black/30", e)
|
|
709
710
|
})
|
|
710
711
|
}));
|
|
711
|
-
|
|
712
|
-
var
|
|
712
|
+
Rn.displayName = "DropdownMenuOverlay";
|
|
713
|
+
var zn = e.forwardRef(({ className: e, children: t, side: n, ...r }, i) => {
|
|
713
714
|
let a = n === "left" || n === "right" ? "bottom" : n;
|
|
714
|
-
return /* @__PURE__ */ h(
|
|
715
|
+
return /* @__PURE__ */ h(Pn, { children: [/* @__PURE__ */ m(Rn, {}), /* @__PURE__ */ m(N.Content, {
|
|
715
716
|
ref: i,
|
|
716
717
|
side: a,
|
|
717
718
|
className: G("bg-popover border-border z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md", e),
|
|
@@ -719,15 +720,16 @@ var Rn = e.forwardRef(({ className: e, children: t, side: n, ...r }, i) => {
|
|
|
719
720
|
children: t
|
|
720
721
|
})] });
|
|
721
722
|
});
|
|
722
|
-
|
|
723
|
-
var Y = e.forwardRef(({ className: e, children: t, inset: n,
|
|
724
|
-
ref:
|
|
723
|
+
zn.displayName = "DropdownMenuContent";
|
|
724
|
+
var Y = e.forwardRef(({ className: e, children: t, inset: n, onSelect: r, ...i }, a) => /* @__PURE__ */ m(N.Item, {
|
|
725
|
+
ref: a,
|
|
726
|
+
onPress: () => r?.(new Event("select")),
|
|
725
727
|
className: G("focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground relative flex flex-row items-center rounded-sm px-2 py-1.5 text-sm outline-none", n && "pl-8", e),
|
|
726
|
-
...
|
|
728
|
+
...i,
|
|
727
729
|
children: W(t, J)
|
|
728
730
|
}));
|
|
729
731
|
Y.displayName = "DropdownMenuItem";
|
|
730
|
-
var
|
|
732
|
+
var Bn = e.forwardRef(({ className: e, children: t, checked: n, onCheckedChange: r, ...i }, a) => /* @__PURE__ */ h(N.CheckboxItem, {
|
|
731
733
|
ref: a,
|
|
732
734
|
checked: !!n,
|
|
733
735
|
onCheckedChange: r || (() => {}),
|
|
@@ -741,8 +743,8 @@ var zn = e.forwardRef(({ className: e, children: t, checked: n, onCheckedChange:
|
|
|
741
743
|
}) })
|
|
742
744
|
}), W(t, J)]
|
|
743
745
|
}));
|
|
744
|
-
|
|
745
|
-
var
|
|
746
|
+
Bn.displayName = "DropdownMenuCheckboxItem";
|
|
747
|
+
var Vn = e.forwardRef(({ className: e, children: t, value: n, ...r }, i) => /* @__PURE__ */ h(N.RadioItem, {
|
|
746
748
|
ref: i,
|
|
747
749
|
value: n,
|
|
748
750
|
className: G("focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground relative flex flex-row items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none", e),
|
|
@@ -755,27 +757,27 @@ var Bn = e.forwardRef(({ className: e, children: t, value: n, ...r }, i) => /* @
|
|
|
755
757
|
}) })
|
|
756
758
|
}), W(t, J)]
|
|
757
759
|
}));
|
|
758
|
-
|
|
759
|
-
var
|
|
760
|
+
Vn.displayName = "DropdownMenuRadioItem";
|
|
761
|
+
var Hn = e.forwardRef(({ className: e, children: t, inset: n, ...r }, i) => /* @__PURE__ */ m(N.Label, {
|
|
760
762
|
ref: i,
|
|
761
763
|
className: G("text-foreground px-2 py-1.5 text-sm font-semibold", n && "pl-8", e),
|
|
762
764
|
...r,
|
|
763
765
|
children: W(t, J)
|
|
764
766
|
}));
|
|
765
|
-
|
|
766
|
-
var
|
|
767
|
+
Hn.displayName = "DropdownMenuLabel";
|
|
768
|
+
var Un = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(N.Separator, {
|
|
767
769
|
ref: n,
|
|
768
770
|
className: G("bg-border -mx-1 my-1 h-px", e),
|
|
769
771
|
...t
|
|
770
772
|
}));
|
|
771
|
-
|
|
772
|
-
var
|
|
773
|
+
Un.displayName = "DropdownMenuSeparator";
|
|
774
|
+
var Wn = ({ className: e, children: t, ...n }) => /* @__PURE__ */ m(J, {
|
|
773
775
|
className: G("text-muted-foreground ml-auto text-xs tracking-widest", e),
|
|
774
776
|
...n,
|
|
775
777
|
children: t
|
|
776
778
|
});
|
|
777
|
-
|
|
778
|
-
var
|
|
779
|
+
Wn.displayName = "DropdownMenuShortcut";
|
|
780
|
+
var Gn = e.forwardRef(({ className: e, children: t, inset: n, ...r }, i) => /* @__PURE__ */ h(N.SubTrigger, {
|
|
779
781
|
ref: i,
|
|
780
782
|
className: G("focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground flex flex-row items-center rounded-sm px-2 py-1.5 text-sm outline-none", n && "pl-8", e),
|
|
781
783
|
...r,
|
|
@@ -787,35 +789,35 @@ var Wn = e.forwardRef(({ className: e, children: t, inset: n, ...r }, i) => /* @
|
|
|
787
789
|
className: "text-foreground ml-auto"
|
|
788
790
|
})]
|
|
789
791
|
}));
|
|
790
|
-
|
|
791
|
-
var
|
|
792
|
+
Gn.displayName = "DropdownMenuSubTrigger";
|
|
793
|
+
var Kn = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ m(N.SubContent, {
|
|
792
794
|
ref: r,
|
|
793
795
|
className: G("bg-popover border-border z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md", e),
|
|
794
796
|
...n,
|
|
795
797
|
children: t
|
|
796
798
|
}));
|
|
797
|
-
|
|
799
|
+
Kn.displayName = "DropdownMenuSubContent";
|
|
798
800
|
//#endregion
|
|
799
801
|
//#region src/form.tsx
|
|
800
|
-
var
|
|
802
|
+
var qn = () => /* @__PURE__ */ m(f, { children: /* @__PURE__ */ m(l, { children: "form is not yet implemented for React Native" }) }), Jn = P.Root, Yn = P.Trigger, Xn = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ m(P.Portal, { children: /* @__PURE__ */ m(P.Content, {
|
|
801
803
|
ref: r,
|
|
802
804
|
className: G("bg-popover text-popover-foreground border-border z-50 w-64 rounded-md border p-4 shadow-md", e),
|
|
803
805
|
...n,
|
|
804
806
|
children: t
|
|
805
807
|
}) }));
|
|
806
|
-
|
|
808
|
+
Xn.displayName = P.Content?.displayName || "HoverCardContent";
|
|
807
809
|
//#endregion
|
|
808
810
|
//#region src/input.tsx
|
|
809
|
-
var
|
|
811
|
+
var Zn = e.forwardRef(({ className: e, placeholderClassName: t, ...n }, r) => /* @__PURE__ */ m(u, {
|
|
810
812
|
ref: r,
|
|
811
813
|
className: G("border-input text-foreground placeholder:text-muted-foreground focus:border-ring flex h-10 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-sm transition-colors disabled:opacity-50", e),
|
|
812
814
|
placeholderClassName: G("text-muted-foreground", t),
|
|
813
815
|
...n
|
|
814
816
|
}));
|
|
815
|
-
|
|
817
|
+
Zn.displayName = "Input";
|
|
816
818
|
//#endregion
|
|
817
819
|
//#region src/label.tsx
|
|
818
|
-
var
|
|
820
|
+
var Qn = e.forwardRef(({ className: e, onPress: t, onLongPress: n, onPressIn: r, onPressOut: i, ...a }, o) => /* @__PURE__ */ m(De.Root, {
|
|
819
821
|
className: "web:cursor-default",
|
|
820
822
|
onPress: t,
|
|
821
823
|
onLongPress: n,
|
|
@@ -827,10 +829,10 @@ var Zn = e.forwardRef(({ className: e, onPress: t, onLongPress: n, onPressIn: r,
|
|
|
827
829
|
...a
|
|
828
830
|
})
|
|
829
831
|
}));
|
|
830
|
-
|
|
832
|
+
Qn.displayName = De.Root?.displayName || "Label";
|
|
831
833
|
//#endregion
|
|
832
834
|
//#region src/menubar.tsx
|
|
833
|
-
var
|
|
835
|
+
var $n = e.forwardRef(({ className: t, children: n, value: r, onValueChange: i, ...a }, o) => {
|
|
834
836
|
let [s, c] = e.useState(r || ""), l = r === void 0 ? s : r;
|
|
835
837
|
return /* @__PURE__ */ m(F.Root, {
|
|
836
838
|
ref: o,
|
|
@@ -843,8 +845,8 @@ var Qn = e.forwardRef(({ className: t, children: n, value: r, onValueChange: i,
|
|
|
843
845
|
children: n
|
|
844
846
|
});
|
|
845
847
|
});
|
|
846
|
-
|
|
847
|
-
var
|
|
848
|
+
$n.displayName = "Menubar";
|
|
849
|
+
var er = F.Menu, tr = F.Portal, nr = F.Group, rr = F.RadioGroup, ir = F.Sub, ar = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(F.Overlay, {
|
|
848
850
|
style: a.OS === "web" ? void 0 : c.absoluteFill,
|
|
849
851
|
ref: n,
|
|
850
852
|
...t,
|
|
@@ -854,29 +856,29 @@ var $n = F.Menu, er = F.Portal, tr = F.Group, nr = F.RadioGroup, rr = F.Sub, ir
|
|
|
854
856
|
className: G("absolute inset-0 z-50 bg-black/30", e)
|
|
855
857
|
})
|
|
856
858
|
}));
|
|
857
|
-
|
|
858
|
-
var
|
|
859
|
+
ar.displayName = "MenubarOverlay";
|
|
860
|
+
var or = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ m(F.Trigger, {
|
|
859
861
|
ref: r,
|
|
860
862
|
className: G("focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground flex flex-row items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none", e),
|
|
861
863
|
...n,
|
|
862
864
|
children: W(t, J)
|
|
863
865
|
}));
|
|
864
|
-
|
|
865
|
-
var
|
|
866
|
+
or.displayName = "MenubarTrigger";
|
|
867
|
+
var sr = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ h(tr, { children: [/* @__PURE__ */ m(ar, {}), /* @__PURE__ */ m(F.Content, {
|
|
866
868
|
ref: r,
|
|
867
869
|
className: G("bg-popover border-border z-50 min-w-[12rem] overflow-hidden rounded-md border p-1 shadow-md", e),
|
|
868
870
|
...n,
|
|
869
871
|
children: t
|
|
870
872
|
})] }));
|
|
871
|
-
|
|
872
|
-
var
|
|
873
|
+
sr.displayName = "MenubarContent";
|
|
874
|
+
var cr = e.forwardRef(({ className: e, children: t, inset: n, ...r }, i) => /* @__PURE__ */ m(F.Item, {
|
|
873
875
|
ref: i,
|
|
874
876
|
className: G("focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground relative flex flex-row items-center rounded-sm px-2 py-1.5 text-sm outline-none", n && "pl-8", e),
|
|
875
877
|
...r,
|
|
876
878
|
children: W(t, J)
|
|
877
879
|
}));
|
|
878
|
-
|
|
879
|
-
var
|
|
880
|
+
cr.displayName = "MenubarItem";
|
|
881
|
+
var lr = e.forwardRef(({ className: e, children: t, checked: n, onCheckedChange: r, ...i }, a) => /* @__PURE__ */ h(F.CheckboxItem, {
|
|
880
882
|
ref: a,
|
|
881
883
|
checked: !!n,
|
|
882
884
|
onCheckedChange: r || (() => {}),
|
|
@@ -890,8 +892,8 @@ var cr = e.forwardRef(({ className: e, children: t, checked: n, onCheckedChange:
|
|
|
890
892
|
}) })
|
|
891
893
|
}), W(t, J)]
|
|
892
894
|
}));
|
|
893
|
-
|
|
894
|
-
var
|
|
895
|
+
lr.displayName = "MenubarCheckboxItem";
|
|
896
|
+
var ur = e.forwardRef(({ className: e, children: t, value: n, ...r }, i) => /* @__PURE__ */ h(F.RadioItem, {
|
|
895
897
|
ref: i,
|
|
896
898
|
value: n,
|
|
897
899
|
className: G("focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground relative flex flex-row items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none", e),
|
|
@@ -904,27 +906,27 @@ var lr = e.forwardRef(({ className: e, children: t, value: n, ...r }, i) => /* @
|
|
|
904
906
|
}) })
|
|
905
907
|
}), W(t, J)]
|
|
906
908
|
}));
|
|
907
|
-
|
|
908
|
-
var
|
|
909
|
+
ur.displayName = "MenubarRadioItem";
|
|
910
|
+
var dr = e.forwardRef(({ className: e, children: t, inset: n, ...r }, i) => /* @__PURE__ */ m(F.Label, {
|
|
909
911
|
ref: i,
|
|
910
912
|
className: G("text-foreground px-2 py-1.5 text-sm font-semibold", n && "pl-8", e),
|
|
911
913
|
...r,
|
|
912
914
|
children: W(t, J)
|
|
913
915
|
}));
|
|
914
|
-
|
|
915
|
-
var
|
|
916
|
+
dr.displayName = "MenubarLabel";
|
|
917
|
+
var fr = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(F.Separator, {
|
|
916
918
|
ref: n,
|
|
917
919
|
className: G("bg-border -mx-1 my-1 h-px", e),
|
|
918
920
|
...t
|
|
919
921
|
}));
|
|
920
|
-
|
|
921
|
-
var
|
|
922
|
+
fr.displayName = "MenubarSeparator";
|
|
923
|
+
var pr = ({ className: e, children: t, ...n }) => /* @__PURE__ */ m(J, {
|
|
922
924
|
className: G("text-muted-foreground ml-auto text-xs tracking-widest", e),
|
|
923
925
|
...n,
|
|
924
926
|
children: t
|
|
925
927
|
});
|
|
926
|
-
|
|
927
|
-
var
|
|
928
|
+
pr.displayName = "MenubarShortcut";
|
|
929
|
+
var mr = e.forwardRef(({ className: e, children: t, inset: n, ...r }, i) => /* @__PURE__ */ h(F.SubTrigger, {
|
|
928
930
|
ref: i,
|
|
929
931
|
className: G("focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground flex flex-row items-center rounded-sm px-2 py-1.5 text-sm outline-none", n && "pl-8", e),
|
|
930
932
|
...r,
|
|
@@ -936,17 +938,17 @@ var pr = e.forwardRef(({ className: e, children: t, inset: n, ...r }, i) => /* @
|
|
|
936
938
|
className: "text-foreground ml-auto"
|
|
937
939
|
})]
|
|
938
940
|
}));
|
|
939
|
-
|
|
940
|
-
var
|
|
941
|
+
mr.displayName = "MenubarSubTrigger";
|
|
942
|
+
var hr = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ m(F.SubContent, {
|
|
941
943
|
ref: r,
|
|
942
944
|
className: G("bg-popover border-border z-50 min-w-[8rem] overflow-hidden rounded-md border p-1 shadow-md", e),
|
|
943
945
|
...n,
|
|
944
946
|
children: t
|
|
945
947
|
}));
|
|
946
|
-
|
|
948
|
+
hr.displayName = "MenubarSubContent";
|
|
947
949
|
//#endregion
|
|
948
950
|
//#region src/navigation-menu.tsx
|
|
949
|
-
var
|
|
951
|
+
var gr = e.forwardRef(({ className: e, children: t, value: n, onValueChange: r, dir: i, orientation: a, delayDuration: o, skipDelayDuration: s, ...c }, l) => /* @__PURE__ */ m(I.Root, {
|
|
950
952
|
ref: l,
|
|
951
953
|
value: n,
|
|
952
954
|
onValueChange: r ? (e) => r(e || "") : () => {},
|
|
@@ -956,23 +958,23 @@ var hr = e.forwardRef(({ className: e, children: t, value: n, onValueChange: r,
|
|
|
956
958
|
...c,
|
|
957
959
|
children: t
|
|
958
960
|
}));
|
|
959
|
-
|
|
960
|
-
var
|
|
961
|
+
gr.displayName = "NavigationMenu";
|
|
962
|
+
var _r = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ m(I.List, {
|
|
961
963
|
ref: r,
|
|
962
964
|
className: G("group flex flex-1 list-none flex-row items-center justify-center gap-1", e),
|
|
963
965
|
...n,
|
|
964
966
|
children: t
|
|
965
967
|
}));
|
|
966
|
-
|
|
967
|
-
var
|
|
968
|
+
_r.displayName = "NavigationMenuList";
|
|
969
|
+
var vr = e.forwardRef(({ className: e, children: t, value: n, ...r }, i) => /* @__PURE__ */ m(I.Item, {
|
|
968
970
|
ref: i,
|
|
969
971
|
value: n || "",
|
|
970
972
|
className: G("relative", e),
|
|
971
973
|
...r,
|
|
972
974
|
children: t
|
|
973
975
|
}));
|
|
974
|
-
|
|
975
|
-
var
|
|
976
|
+
vr.displayName = "NavigationMenuItem";
|
|
977
|
+
var yr = e.forwardRef(({ className: e, children: t, disabled: n, ...r }, i) => /* @__PURE__ */ h(I.Trigger, {
|
|
976
978
|
ref: i,
|
|
977
979
|
disabled: n,
|
|
978
980
|
className: G("group bg-background hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground active:bg-accent active:text-accent-foreground flex flex-row items-center justify-center gap-1 rounded-md px-4 py-2 text-sm font-medium transition-colors disabled:opacity-50", e),
|
|
@@ -982,8 +984,8 @@ var vr = e.forwardRef(({ className: e, children: t, disabled: n, ...r }, i) => /
|
|
|
982
984
|
className: "text-muted-foreground transition-transform duration-200 group-data-[state=open]:rotate-180"
|
|
983
985
|
})]
|
|
984
986
|
}));
|
|
985
|
-
|
|
986
|
-
var
|
|
987
|
+
yr.displayName = "NavigationMenuTrigger";
|
|
988
|
+
var br = e.forwardRef(({ className: e, children: t, forceMount: n, ...r }, i) => /* @__PURE__ */ m(I.Portal, { children: /* @__PURE__ */ m(I.Content, {
|
|
987
989
|
ref: i,
|
|
988
990
|
...r,
|
|
989
991
|
children: /* @__PURE__ */ m(w.View, {
|
|
@@ -993,8 +995,8 @@ var yr = e.forwardRef(({ className: e, children: t, forceMount: n, ...r }, i) =>
|
|
|
993
995
|
children: t
|
|
994
996
|
})
|
|
995
997
|
}) }));
|
|
996
|
-
|
|
997
|
-
var
|
|
998
|
+
br.displayName = "NavigationMenuContent";
|
|
999
|
+
var xr = e.forwardRef(({ className: e, children: t, active: n, onSelect: r, onPress: i, href: a, ...o }, s) => /* @__PURE__ */ m(I.Link, {
|
|
998
1000
|
ref: s,
|
|
999
1001
|
active: n,
|
|
1000
1002
|
onPress: (e) => {
|
|
@@ -1004,8 +1006,8 @@ var br = e.forwardRef(({ className: e, children: t, active: n, onSelect: r, onPr
|
|
|
1004
1006
|
...o,
|
|
1005
1007
|
children: t
|
|
1006
1008
|
}));
|
|
1007
|
-
|
|
1008
|
-
var
|
|
1009
|
+
xr.displayName = "NavigationMenuLink";
|
|
1010
|
+
var Sr = e.forwardRef(({ className: e, forceMount: t, ...n }, r) => /* @__PURE__ */ m(f, {
|
|
1009
1011
|
className: "absolute top-full left-0 flex justify-center",
|
|
1010
1012
|
children: /* @__PURE__ */ m(I.Viewport, {
|
|
1011
1013
|
ref: r,
|
|
@@ -1013,38 +1015,38 @@ var xr = e.forwardRef(({ className: e, forceMount: t, ...n }, r) => /* @__PURE__
|
|
|
1013
1015
|
...n
|
|
1014
1016
|
})
|
|
1015
1017
|
}));
|
|
1016
|
-
|
|
1017
|
-
var
|
|
1018
|
+
Sr.displayName = "NavigationMenuViewport";
|
|
1019
|
+
var Cr = e.forwardRef(({ className: e, forceMount: t, ...n }, r) => /* @__PURE__ */ m(I.Indicator, {
|
|
1018
1020
|
ref: r,
|
|
1019
1021
|
className: G("z-10 flex h-1.5 items-end justify-center overflow-hidden transition-all duration-200", e),
|
|
1020
1022
|
...n,
|
|
1021
1023
|
children: /* @__PURE__ */ m(f, { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" })
|
|
1022
1024
|
}));
|
|
1023
|
-
|
|
1025
|
+
Cr.displayName = "NavigationMenuIndicator";
|
|
1024
1026
|
//#endregion
|
|
1025
1027
|
//#region src/pagination.tsx
|
|
1026
|
-
var
|
|
1028
|
+
var wr = ({ className: e, children: t, ...n }) => /* @__PURE__ */ m(f, {
|
|
1027
1029
|
role: "navigation",
|
|
1028
1030
|
"aria-label": "pagination",
|
|
1029
1031
|
className: G("mx-auto flex w-full flex-row justify-center", e),
|
|
1030
1032
|
...n,
|
|
1031
1033
|
children: t
|
|
1032
1034
|
});
|
|
1033
|
-
|
|
1034
|
-
var
|
|
1035
|
+
wr.displayName = "Pagination";
|
|
1036
|
+
var Tr = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ m(f, {
|
|
1035
1037
|
ref: r,
|
|
1036
1038
|
className: G("flex flex-row items-center gap-1", e),
|
|
1037
1039
|
...n,
|
|
1038
1040
|
children: t
|
|
1039
1041
|
}));
|
|
1040
|
-
|
|
1041
|
-
var
|
|
1042
|
+
Tr.displayName = "PaginationContent";
|
|
1043
|
+
var Er = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ m(f, {
|
|
1042
1044
|
ref: r,
|
|
1043
1045
|
className: G("", e),
|
|
1044
1046
|
...n,
|
|
1045
1047
|
children: t
|
|
1046
1048
|
}));
|
|
1047
|
-
|
|
1049
|
+
Er.displayName = "PaginationItem";
|
|
1048
1050
|
var X = ({ className: e, isActive: t, size: n = "icon", children: r, onPress: i, ...a }) => /* @__PURE__ */ m(q, {
|
|
1049
1051
|
variant: t ? "outline" : "ghost",
|
|
1050
1052
|
size: n,
|
|
@@ -1054,7 +1056,7 @@ var X = ({ className: e, isActive: t, size: n = "icon", children: r, onPress: i,
|
|
|
1054
1056
|
children: r
|
|
1055
1057
|
});
|
|
1056
1058
|
X.displayName = "PaginationLink";
|
|
1057
|
-
var
|
|
1059
|
+
var Dr = ({ className: e, children: t, onPress: n, ...r }) => /* @__PURE__ */ h(X, {
|
|
1058
1060
|
"aria-label": "Go to previous page",
|
|
1059
1061
|
size: "default",
|
|
1060
1062
|
className: G("flex flex-row items-center gap-1 pl-2.5", e),
|
|
@@ -1068,8 +1070,8 @@ var Er = ({ className: e, children: t, onPress: n, ...r }) => /* @__PURE__ */ h(
|
|
|
1068
1070
|
children: "Previous"
|
|
1069
1071
|
})]
|
|
1070
1072
|
});
|
|
1071
|
-
|
|
1072
|
-
var
|
|
1073
|
+
Dr.displayName = "PaginationPrevious";
|
|
1074
|
+
var Or = ({ className: e, children: t, onPress: n, ...r }) => /* @__PURE__ */ h(X, {
|
|
1073
1075
|
"aria-label": "Go to next page",
|
|
1074
1076
|
size: "default",
|
|
1075
1077
|
className: G("flex flex-row items-center gap-1 pr-2.5", e),
|
|
@@ -1083,8 +1085,8 @@ var Dr = ({ className: e, children: t, onPress: n, ...r }) => /* @__PURE__ */ h(
|
|
|
1083
1085
|
className: "text-foreground"
|
|
1084
1086
|
})]
|
|
1085
1087
|
});
|
|
1086
|
-
|
|
1087
|
-
var
|
|
1088
|
+
Or.displayName = "PaginationNext";
|
|
1089
|
+
var kr = ({ className: e, ...t }) => /* @__PURE__ */ m(f, {
|
|
1088
1090
|
"aria-hidden": !0,
|
|
1089
1091
|
className: G("flex h-9 w-9 flex-row items-center justify-center", e),
|
|
1090
1092
|
...t,
|
|
@@ -1093,15 +1095,15 @@ var Or = ({ className: e, ...t }) => /* @__PURE__ */ m(f, {
|
|
|
1093
1095
|
className: "text-foreground"
|
|
1094
1096
|
})
|
|
1095
1097
|
});
|
|
1096
|
-
|
|
1098
|
+
kr.displayName = "PaginationEllipsis";
|
|
1097
1099
|
//#endregion
|
|
1098
1100
|
//#region src/popover.tsx
|
|
1099
|
-
var
|
|
1101
|
+
var Ar = e.createContext({
|
|
1100
1102
|
open: !1,
|
|
1101
1103
|
setOpen: () => {}
|
|
1102
|
-
}),
|
|
1104
|
+
}), jr = e.forwardRef(({ children: t, open: n, onOpenChange: r, ...i }, a) => {
|
|
1103
1105
|
let [o, s] = e.useState(!1), c = n !== void 0, l = c ? n : o, u = c ? r || (() => {}) : s;
|
|
1104
|
-
return /* @__PURE__ */ m(
|
|
1106
|
+
return /* @__PURE__ */ m(Ar.Provider, {
|
|
1105
1107
|
value: {
|
|
1106
1108
|
open: l,
|
|
1107
1109
|
setOpen: u
|
|
@@ -1113,9 +1115,9 @@ var kr = e.createContext({
|
|
|
1113
1115
|
})
|
|
1114
1116
|
});
|
|
1115
1117
|
});
|
|
1116
|
-
|
|
1117
|
-
var
|
|
1118
|
-
let { setOpen: i } = e.useContext(
|
|
1118
|
+
jr.displayName = "Popover";
|
|
1119
|
+
var Mr = e.forwardRef(({ children: t, ...n }, r) => {
|
|
1120
|
+
let { setOpen: i } = e.useContext(Ar);
|
|
1119
1121
|
return /* @__PURE__ */ m(o, {
|
|
1120
1122
|
ref: r,
|
|
1121
1123
|
onPress: () => i(!0),
|
|
@@ -1123,14 +1125,14 @@ var jr = e.forwardRef(({ children: t, ...n }, r) => {
|
|
|
1123
1125
|
children: t
|
|
1124
1126
|
});
|
|
1125
1127
|
});
|
|
1126
|
-
|
|
1127
|
-
var
|
|
1128
|
+
Mr.displayName = "PopoverTrigger";
|
|
1129
|
+
var Nr = e.forwardRef(({ ...e }, t) => /* @__PURE__ */ m(f, {
|
|
1128
1130
|
ref: t,
|
|
1129
1131
|
...e
|
|
1130
1132
|
}));
|
|
1131
|
-
|
|
1132
|
-
var
|
|
1133
|
-
let { open: s, setOpen: c } = e.useContext(
|
|
1133
|
+
Nr.displayName = "PopoverAnchor";
|
|
1134
|
+
var Pr = e.forwardRef(({ className: t, children: n, ...r }, a) => {
|
|
1135
|
+
let { open: s, setOpen: c } = e.useContext(Ar);
|
|
1134
1136
|
return /* @__PURE__ */ m(i, {
|
|
1135
1137
|
visible: s,
|
|
1136
1138
|
transparent: !0,
|
|
@@ -1154,10 +1156,10 @@ var Nr = e.forwardRef(({ className: t, children: n, ...r }, a) => {
|
|
|
1154
1156
|
})
|
|
1155
1157
|
});
|
|
1156
1158
|
});
|
|
1157
|
-
|
|
1159
|
+
Pr.displayName = "PopoverContent";
|
|
1158
1160
|
//#endregion
|
|
1159
1161
|
//#region src/progress.tsx
|
|
1160
|
-
var
|
|
1162
|
+
var Fr = e.forwardRef(({ className: e, value: t, ...n }, r) => /* @__PURE__ */ m(f, {
|
|
1161
1163
|
ref: r,
|
|
1162
1164
|
className: G("bg-muted relative h-2 w-full overflow-hidden rounded-full", e),
|
|
1163
1165
|
accessibilityRole: "progressbar",
|
|
@@ -1168,16 +1170,16 @@ var Pr = e.forwardRef(({ className: e, value: t, ...n }, r) => /* @__PURE__ */ m
|
|
|
1168
1170
|
style: { width: `${t || 0}%` }
|
|
1169
1171
|
})
|
|
1170
1172
|
}));
|
|
1171
|
-
|
|
1173
|
+
Fr.displayName = "Progress";
|
|
1172
1174
|
//#endregion
|
|
1173
1175
|
//#region src/radio-group.tsx
|
|
1174
|
-
var
|
|
1176
|
+
var Ir = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(L.Root, {
|
|
1175
1177
|
className: G("web:grid gap-2", e),
|
|
1176
1178
|
...t,
|
|
1177
1179
|
ref: n
|
|
1178
1180
|
}));
|
|
1179
|
-
|
|
1180
|
-
var
|
|
1181
|
+
Ir.displayName = L.Root?.displayName || "RadioGroup";
|
|
1182
|
+
var Lr = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(L.Item, {
|
|
1181
1183
|
ref: n,
|
|
1182
1184
|
className: G("native:h-5 native:w-5 border-primary text-primary web:ring-offset-background web:focus:outline-none web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2 aspect-square h-4 w-4 rounded-full border", t.disabled && "web:cursor-not-allowed opacity-50", e),
|
|
1183
1185
|
...t,
|
|
@@ -1186,16 +1188,16 @@ var Ir = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(L.Item, {
|
|
|
1186
1188
|
children: /* @__PURE__ */ m(C, { className: "h-2.5 w-2.5 fill-current text-current" })
|
|
1187
1189
|
})
|
|
1188
1190
|
}));
|
|
1189
|
-
|
|
1191
|
+
Lr.displayName = L.Item?.displayName || "RadioGroupItem";
|
|
1190
1192
|
//#endregion
|
|
1191
1193
|
//#region src/resizable.tsx
|
|
1192
|
-
var
|
|
1194
|
+
var Rr = ({ children: e, className: t }) => /* @__PURE__ */ m(f, {
|
|
1193
1195
|
className: t,
|
|
1194
1196
|
children: e
|
|
1195
|
-
}),
|
|
1197
|
+
}), zr = ({ children: e, className: t }) => /* @__PURE__ */ m(f, {
|
|
1196
1198
|
className: t,
|
|
1197
1199
|
children: e
|
|
1198
|
-
}),
|
|
1200
|
+
}), Br = ({ className: e }) => /* @__PURE__ */ m(f, { className: e }), Vr = e.forwardRef(({ children: e, className: t, ...n }, r) => /* @__PURE__ */ m(s, {
|
|
1199
1201
|
ref: r,
|
|
1200
1202
|
className: G("flex-1", t),
|
|
1201
1203
|
showsVerticalScrollIndicator: !1,
|
|
@@ -1203,12 +1205,12 @@ var Lr = ({ children: e, className: t }) => /* @__PURE__ */ m(f, {
|
|
|
1203
1205
|
...n,
|
|
1204
1206
|
children: /* @__PURE__ */ m(f, { children: e })
|
|
1205
1207
|
}));
|
|
1206
|
-
|
|
1207
|
-
var
|
|
1208
|
-
|
|
1208
|
+
Vr.displayName = "ScrollArea";
|
|
1209
|
+
var Hr = () => null;
|
|
1210
|
+
Hr.displayName = "ScrollBar";
|
|
1209
1211
|
//#endregion
|
|
1210
1212
|
//#region src/search.tsx
|
|
1211
|
-
var
|
|
1213
|
+
var Ur = () => /* @__PURE__ */ m(f, { children: /* @__PURE__ */ m(l, { children: "Search is not yet implemented for React Native" }) }), Wr = R.Root, Gr = R.Group, Kr = R.Value, qr = e.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ h(R.Trigger, {
|
|
1212
1214
|
ref: r,
|
|
1213
1215
|
className: G("native:h-12 border-input bg-background text-muted-foreground web:ring-offset-background web:focus:outline-none web:focus:ring-2 web:focus:ring-ring web:focus:ring-offset-2 flex h-10 flex-row items-center justify-between rounded-md border px-3 py-2 text-sm [&>span]:line-clamp-1", n.disabled && "web:cursor-not-allowed opacity-50", e),
|
|
1214
1216
|
...n,
|
|
@@ -1218,8 +1220,8 @@ var Hr = () => /* @__PURE__ */ m(f, { children: /* @__PURE__ */ m(l, { children:
|
|
|
1218
1220
|
className: "text-foreground opacity-50"
|
|
1219
1221
|
})]
|
|
1220
1222
|
}));
|
|
1221
|
-
|
|
1222
|
-
var
|
|
1223
|
+
qr.displayName = R.Trigger?.displayName || "SelectTrigger";
|
|
1224
|
+
var Jr = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(R.ScrollUpButton, {
|
|
1223
1225
|
ref: n,
|
|
1224
1226
|
className: G("flex cursor-default items-center justify-center py-1", e),
|
|
1225
1227
|
...t,
|
|
@@ -1228,8 +1230,8 @@ var qr = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(R.ScrollU
|
|
|
1228
1230
|
className: "text-foreground"
|
|
1229
1231
|
})
|
|
1230
1232
|
}));
|
|
1231
|
-
|
|
1232
|
-
var
|
|
1233
|
+
Jr.displayName = R.ScrollUpButton?.displayName || "SelectScrollUpButton";
|
|
1234
|
+
var Yr = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(R.ScrollDownButton, {
|
|
1233
1235
|
ref: n,
|
|
1234
1236
|
className: G("flex cursor-default items-center justify-center py-1", e),
|
|
1235
1237
|
...t,
|
|
@@ -1238,8 +1240,8 @@ var Jr = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(R.ScrollD
|
|
|
1238
1240
|
className: "text-foreground"
|
|
1239
1241
|
})
|
|
1240
1242
|
}));
|
|
1241
|
-
|
|
1242
|
-
var
|
|
1243
|
+
Yr.displayName = R.ScrollDownButton?.displayName || "SelectScrollDownButton";
|
|
1244
|
+
var Xr = e.forwardRef(({ className: e, children: t, position: n = "popper", portalHost: r, overlayClassName: i, overlayStyle: o, ...s }, l) => {
|
|
1243
1245
|
let { open: u } = R.useRootContext();
|
|
1244
1246
|
return /* @__PURE__ */ h(R.Portal, {
|
|
1245
1247
|
hostName: r,
|
|
@@ -1256,24 +1258,24 @@ var Yr = e.forwardRef(({ className: e, children: t, position: n = "popper", port
|
|
|
1256
1258
|
position: n,
|
|
1257
1259
|
...s,
|
|
1258
1260
|
children: [
|
|
1259
|
-
/* @__PURE__ */ m(
|
|
1261
|
+
/* @__PURE__ */ m(Jr, {}),
|
|
1260
1262
|
/* @__PURE__ */ m(R.Viewport, {
|
|
1261
1263
|
className: G("p-1", n === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),
|
|
1262
1264
|
children: t
|
|
1263
1265
|
}),
|
|
1264
|
-
/* @__PURE__ */ m(
|
|
1266
|
+
/* @__PURE__ */ m(Yr, {})
|
|
1265
1267
|
]
|
|
1266
1268
|
})]
|
|
1267
1269
|
});
|
|
1268
1270
|
});
|
|
1269
|
-
|
|
1270
|
-
var
|
|
1271
|
+
Xr.displayName = R.Content?.displayName || "SelectContent";
|
|
1272
|
+
var Zr = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(R.Label, {
|
|
1271
1273
|
ref: n,
|
|
1272
1274
|
className: G("text-popover-foreground py-1.5 pr-2 pl-8 text-sm font-semibold", e),
|
|
1273
1275
|
...t
|
|
1274
1276
|
}));
|
|
1275
|
-
|
|
1276
|
-
var
|
|
1277
|
+
Zr.displayName = R.Label?.displayName || "SelectLabel";
|
|
1278
|
+
var Qr = e.forwardRef(({ className: e, children: t, label: n, ...r }, i) => {
|
|
1277
1279
|
let a = n || (typeof t == "string" ? t : "");
|
|
1278
1280
|
return /* @__PURE__ */ h(R.Item, {
|
|
1279
1281
|
ref: i,
|
|
@@ -1293,16 +1295,16 @@ var Zr = e.forwardRef(({ className: e, children: t, label: n, ...r }, i) => {
|
|
|
1293
1295
|
})]
|
|
1294
1296
|
});
|
|
1295
1297
|
});
|
|
1296
|
-
|
|
1297
|
-
var
|
|
1298
|
+
Qr.displayName = R.Item?.displayName || "SelectItem";
|
|
1299
|
+
var $r = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(R.Separator, {
|
|
1298
1300
|
ref: n,
|
|
1299
1301
|
className: G("bg-muted -mx-1 my-1 h-px", e),
|
|
1300
1302
|
...t
|
|
1301
1303
|
}));
|
|
1302
|
-
|
|
1304
|
+
$r.displayName = R.Separator?.displayName || "SelectSeparator";
|
|
1303
1305
|
//#endregion
|
|
1304
1306
|
//#region src/scroll-to-top.tsx
|
|
1305
|
-
var
|
|
1307
|
+
var ei = e.forwardRef(({ threshold: r = 240, exitDuration: i = 450, behavior: o, label: s = "Scroll to top", className: c, scrollRef: l, animationDuration: u = 300, ...d }, p) => {
|
|
1306
1308
|
let [h, g] = e.useState(!1), [_, v] = e.useState(!1), y = e.useRef(new n.Value(0)).current, b = e.useRef(new n.Value(20)).current, x = () => {
|
|
1307
1309
|
n.parallel([n.timing(y, {
|
|
1308
1310
|
toValue: 1,
|
|
@@ -1378,17 +1380,17 @@ var $r = e.forwardRef(({ threshold: r = 240, exitDuration: i = 450, behavior: o,
|
|
|
1378
1380
|
})
|
|
1379
1381
|
});
|
|
1380
1382
|
});
|
|
1381
|
-
|
|
1383
|
+
ei.displayName = "ScrollToTop";
|
|
1382
1384
|
//#endregion
|
|
1383
1385
|
//#region src/support-fab.tsx
|
|
1384
|
-
var
|
|
1386
|
+
var ti = (e) => {
|
|
1385
1387
|
let t = e.trim();
|
|
1386
1388
|
return t.endsWith("/") ? t.slice(0, -1) : t;
|
|
1387
|
-
},
|
|
1388
|
-
function
|
|
1389
|
+
}, ni = (e) => e.trim().replace(/^@+/, ""), ri = (e, t) => `${ti(e)}/${encodeURIComponent(ni(t))}`;
|
|
1390
|
+
function ii({ supportUrl: t = "https://www.buymeacoffee.com", creatorId: n, title: i = "Buy me a coffee", description: a = "Support the project directly from this panel.", open: o, defaultOpen: s = !1, onOpenChange: c, positionClassName: l, buttonClassName: u, panelClassName: d, className: g, ..._ }) {
|
|
1389
1391
|
let v = o !== void 0, [ee, y] = e.useState(s), b = v ? o : ee, x = e.useCallback((e) => {
|
|
1390
1392
|
v || y(e), c?.(e);
|
|
1391
|
-
}, [v, c]), S = e.useMemo(() =>
|
|
1393
|
+
}, [v, c]), S = e.useMemo(() => ri(t, n), [n, t]), te = e.useCallback(async () => {
|
|
1392
1394
|
try {
|
|
1393
1395
|
await r.openURL(S);
|
|
1394
1396
|
} catch (e) {
|
|
@@ -1415,12 +1417,12 @@ function ri({ supportUrl: t = "https://www.buymeacoffee.com", creatorId: n, titl
|
|
|
1415
1417
|
className: "text-black"
|
|
1416
1418
|
})
|
|
1417
1419
|
})
|
|
1418
|
-
}), /* @__PURE__ */ m(
|
|
1420
|
+
}), /* @__PURE__ */ m(fn, {
|
|
1419
1421
|
open: b,
|
|
1420
1422
|
onOpenChange: x,
|
|
1421
|
-
children: /* @__PURE__ */ h(
|
|
1423
|
+
children: /* @__PURE__ */ h(_n, {
|
|
1422
1424
|
className: G("max-w-sm", d),
|
|
1423
|
-
children: [/* @__PURE__ */ h(
|
|
1425
|
+
children: [/* @__PURE__ */ h(vn, { children: [/* @__PURE__ */ m(bn, { children: i }), /* @__PURE__ */ m(xn, { children: a })] }), /* @__PURE__ */ h(f, {
|
|
1424
1426
|
className: "flex flex-col gap-4",
|
|
1425
1427
|
children: [/* @__PURE__ */ m(f, {
|
|
1426
1428
|
className: "overflow-hidden rounded-md border",
|
|
@@ -1460,17 +1462,17 @@ function ri({ supportUrl: t = "https://www.buymeacoffee.com", creatorId: n, titl
|
|
|
1460
1462
|
}
|
|
1461
1463
|
//#endregion
|
|
1462
1464
|
//#region src/separator.tsx
|
|
1463
|
-
var
|
|
1465
|
+
var ai = e.forwardRef(({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }, i) => /* @__PURE__ */ m(Oe.Root, {
|
|
1464
1466
|
ref: i,
|
|
1465
1467
|
decorative: n,
|
|
1466
1468
|
orientation: t,
|
|
1467
1469
|
className: G("bg-border shrink-0", t === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]", e),
|
|
1468
1470
|
...r
|
|
1469
1471
|
}));
|
|
1470
|
-
|
|
1472
|
+
ai.displayName = Oe.Root?.displayName || "Separator";
|
|
1471
1473
|
//#endregion
|
|
1472
1474
|
//#region src/sheet.tsx
|
|
1473
|
-
var
|
|
1475
|
+
var oi = M.Root, si = M.Trigger, ci = M.Close, li = M.Portal, ui = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(M.Overlay, {
|
|
1474
1476
|
style: a.OS === "web" ? void 0 : c.absoluteFill,
|
|
1475
1477
|
asChild: !0,
|
|
1476
1478
|
ref: n,
|
|
@@ -1481,10 +1483,10 @@ var ai = M.Root, oi = M.Trigger, si = M.Close, ci = M.Portal, li = e.forwardRef(
|
|
|
1481
1483
|
className: G("web:cursor-default absolute inset-0 z-50 bg-black/80", e)
|
|
1482
1484
|
})
|
|
1483
1485
|
}));
|
|
1484
|
-
|
|
1485
|
-
var
|
|
1486
|
+
ui.displayName = M.Overlay?.displayName || "SheetOverlay";
|
|
1487
|
+
var di = e.forwardRef(({ className: e, children: t, side: n = "right", overlayClassName: r, overlayStyle: i, ...o }, s) => {
|
|
1486
1488
|
let c = a.OS === "web", l = c ? void 0 : me, u = c ? void 0 : ge;
|
|
1487
|
-
return /* @__PURE__ */ h(
|
|
1489
|
+
return /* @__PURE__ */ h(li, { children: [/* @__PURE__ */ m(ui, {
|
|
1488
1490
|
className: r,
|
|
1489
1491
|
style: i
|
|
1490
1492
|
}), /* @__PURE__ */ m(M.Content, {
|
|
@@ -1508,32 +1510,32 @@ var ui = e.forwardRef(({ className: e, children: t, side: n = "right", overlayCl
|
|
|
1508
1510
|
})
|
|
1509
1511
|
})] });
|
|
1510
1512
|
});
|
|
1511
|
-
|
|
1512
|
-
var
|
|
1513
|
+
di.displayName = M.Content?.displayName || "SheetContent";
|
|
1514
|
+
var fi = ({ className: e, ...t }) => /* @__PURE__ */ m(f, {
|
|
1513
1515
|
className: G("flex flex-col space-y-2 text-center sm:text-left", e),
|
|
1514
1516
|
...t
|
|
1515
1517
|
});
|
|
1516
|
-
|
|
1517
|
-
var
|
|
1518
|
+
fi.displayName = "SheetHeader";
|
|
1519
|
+
var pi = ({ className: e, ...t }) => /* @__PURE__ */ m(f, {
|
|
1518
1520
|
className: G("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e),
|
|
1519
1521
|
...t
|
|
1520
1522
|
});
|
|
1521
|
-
|
|
1522
|
-
var
|
|
1523
|
+
pi.displayName = "SheetFooter";
|
|
1524
|
+
var mi = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(M.Title, {
|
|
1523
1525
|
ref: n,
|
|
1524
1526
|
className: G("text-foreground text-lg font-semibold", e),
|
|
1525
1527
|
...t
|
|
1526
1528
|
}));
|
|
1527
|
-
|
|
1528
|
-
var
|
|
1529
|
+
mi.displayName = M.Title?.displayName || "SheetTitle";
|
|
1530
|
+
var hi = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(M.Description, {
|
|
1529
1531
|
ref: n,
|
|
1530
1532
|
className: G("text-muted-foreground text-sm", e),
|
|
1531
1533
|
...t
|
|
1532
1534
|
}));
|
|
1533
|
-
|
|
1535
|
+
hi.displayName = M.Description?.displayName || "SheetDescription";
|
|
1534
1536
|
//#endregion
|
|
1535
1537
|
//#region src/skeleton.tsx
|
|
1536
|
-
function
|
|
1538
|
+
function gi({ className: t, ...n }) {
|
|
1537
1539
|
let r = be(.5);
|
|
1538
1540
|
e.useEffect(() => {
|
|
1539
1541
|
r.value = xe(Se(D(.2, { duration: 500 }), D(.5, { duration: 500 })), -1, !0);
|
|
@@ -1547,7 +1549,7 @@ function hi({ className: t, ...n }) {
|
|
|
1547
1549
|
}
|
|
1548
1550
|
//#endregion
|
|
1549
1551
|
//#region src/slider.tsx
|
|
1550
|
-
var
|
|
1552
|
+
var _i = ({ className: e, value: t, onValueChange: n, defaultValue: r, min: i = 0, max: a = 100, step: o = 1, disabled: s = !1, ...c }) => {
|
|
1551
1553
|
let l = t === void 0 ? i : t[0];
|
|
1552
1554
|
return /* @__PURE__ */ h(z.Root, {
|
|
1553
1555
|
value: l,
|
|
@@ -1566,10 +1568,10 @@ var gi = ({ className: e, value: t, onValueChange: n, defaultValue: r, min: i =
|
|
|
1566
1568
|
}), /* @__PURE__ */ m(z.Thumb, { className: "border-primary bg-background focus-visible:ring-ring block h-5 w-5 rounded-full border-2 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none" })]
|
|
1567
1569
|
});
|
|
1568
1570
|
};
|
|
1569
|
-
|
|
1571
|
+
_i.displayName = "Slider";
|
|
1570
1572
|
//#endregion
|
|
1571
1573
|
//#region src/sonner.tsx
|
|
1572
|
-
var
|
|
1574
|
+
var vi = ({ className: e }) => /* @__PURE__ */ m(f, { className: e }), yi = e.forwardRef(({ className: e, checked: t, onCheckedChange: n, ...r }, i) => /* @__PURE__ */ m(ke.Root, {
|
|
1573
1575
|
className: G("peer focus-visible:ring-ring focus-visible:ring-offset-background data-[state=checked]:bg-primary data-[state=unchecked]:bg-input inline-flex h-6 w-11 shrink-0 cursor-pointer flex-row items-center rounded-full border-2 border-transparent transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50", e),
|
|
1574
1576
|
...r,
|
|
1575
1577
|
checked: t ?? !1,
|
|
@@ -1577,73 +1579,73 @@ var _i = ({ className: e }) => /* @__PURE__ */ m(f, { className: e }), vi = e.fo
|
|
|
1577
1579
|
ref: i,
|
|
1578
1580
|
children: /* @__PURE__ */ m(ke.Thumb, { className: G("bg-background pointer-events-none block h-5 w-5 rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0") })
|
|
1579
1581
|
}));
|
|
1580
|
-
|
|
1582
|
+
yi.displayName = ke.Root?.displayName || "Switch";
|
|
1581
1583
|
//#endregion
|
|
1582
1584
|
//#region src/table.tsx
|
|
1583
|
-
var
|
|
1585
|
+
var bi = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(f, {
|
|
1584
1586
|
ref: n,
|
|
1585
1587
|
className: G("w-full caption-bottom text-sm", e),
|
|
1586
1588
|
...t
|
|
1587
1589
|
}));
|
|
1588
|
-
|
|
1589
|
-
var
|
|
1590
|
+
bi.displayName = "Table";
|
|
1591
|
+
var xi = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(f, {
|
|
1590
1592
|
ref: n,
|
|
1591
1593
|
className: G("border-border border-b", e),
|
|
1592
1594
|
...t
|
|
1593
1595
|
}));
|
|
1594
|
-
|
|
1595
|
-
var
|
|
1596
|
+
xi.displayName = "TableHeader";
|
|
1597
|
+
var Si = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(f, {
|
|
1596
1598
|
ref: n,
|
|
1597
1599
|
className: G("flex-1", e),
|
|
1598
1600
|
...t
|
|
1599
1601
|
}));
|
|
1600
|
-
|
|
1601
|
-
var
|
|
1602
|
+
Si.displayName = "TableBody";
|
|
1603
|
+
var Ci = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(f, {
|
|
1602
1604
|
ref: n,
|
|
1603
1605
|
className: G("bg-muted/50 font-medium [&>tr]:last:border-b-0", e),
|
|
1604
1606
|
...t
|
|
1605
1607
|
}));
|
|
1606
|
-
|
|
1607
|
-
var
|
|
1608
|
+
Ci.displayName = "TableFooter";
|
|
1609
|
+
var wi = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(f, {
|
|
1608
1610
|
ref: n,
|
|
1609
1611
|
className: G("border-border hover:bg-muted/50 data-[state=selected]:bg-muted flex-row border-b transition-colors", e),
|
|
1610
1612
|
...t
|
|
1611
1613
|
}));
|
|
1612
|
-
|
|
1613
|
-
var
|
|
1614
|
+
wi.displayName = "TableRow";
|
|
1615
|
+
var Ti = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(J, {
|
|
1614
1616
|
ref: n,
|
|
1615
1617
|
className: G("text-muted-foreground h-12 px-4 text-left align-middle font-medium [&:has([role=checkbox])]:pr-0", e),
|
|
1616
1618
|
...t
|
|
1617
1619
|
}));
|
|
1618
|
-
|
|
1619
|
-
var
|
|
1620
|
+
Ti.displayName = "TableHead";
|
|
1621
|
+
var Ei = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(J, {
|
|
1620
1622
|
ref: n,
|
|
1621
1623
|
className: G("p-4 align-middle [&:has([role=checkbox])]:pr-0", e),
|
|
1622
1624
|
...t
|
|
1623
1625
|
}));
|
|
1624
|
-
|
|
1625
|
-
var
|
|
1626
|
+
Ei.displayName = "TableCell";
|
|
1627
|
+
var Di = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(J, {
|
|
1626
1628
|
ref: n,
|
|
1627
1629
|
className: G("text-muted-foreground mt-4 text-sm", e),
|
|
1628
1630
|
...t
|
|
1629
1631
|
}));
|
|
1630
|
-
|
|
1632
|
+
Di.displayName = "TableCaption";
|
|
1631
1633
|
//#endregion
|
|
1632
1634
|
//#region src/tabs.tsx
|
|
1633
|
-
var
|
|
1635
|
+
var Oi = e.forwardRef((e, t) => /* @__PURE__ */ m(B.Root, {
|
|
1634
1636
|
ref: t,
|
|
1635
1637
|
...e
|
|
1636
1638
|
}));
|
|
1637
|
-
|
|
1638
|
-
var
|
|
1639
|
+
Oi.displayName = "Tabs";
|
|
1640
|
+
var ki = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(B.List, {
|
|
1639
1641
|
ref: n,
|
|
1640
1642
|
className: G("bg-muted text-muted-foreground inline-flex h-10 flex-row items-center justify-center rounded-md p-1", e),
|
|
1641
1643
|
...t
|
|
1642
1644
|
}));
|
|
1643
|
-
|
|
1644
|
-
var
|
|
1645
|
+
ki.displayName = B.List?.displayName || "TabsList";
|
|
1646
|
+
var Ai = e.forwardRef(({ className: e, ...t }, n) => {
|
|
1645
1647
|
let { value: r } = B.useRootContext();
|
|
1646
|
-
return /* @__PURE__ */ m(
|
|
1648
|
+
return /* @__PURE__ */ m(lt.Provider, {
|
|
1647
1649
|
value: G("text-sm native:text-base font-medium text-muted-foreground web:transition-all", r === t.value && "text-foreground"),
|
|
1648
1650
|
children: /* @__PURE__ */ m(B.Trigger, {
|
|
1649
1651
|
ref: n,
|
|
@@ -1652,16 +1654,16 @@ var ki = e.forwardRef(({ className: e, ...t }, n) => {
|
|
|
1652
1654
|
})
|
|
1653
1655
|
});
|
|
1654
1656
|
});
|
|
1655
|
-
|
|
1656
|
-
var
|
|
1657
|
+
Ai.displayName = B.Trigger?.displayName || "TabsTrigger";
|
|
1658
|
+
var ji = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(B.Content, {
|
|
1657
1659
|
ref: n,
|
|
1658
1660
|
className: G("ring-offset-background focus-visible:ring-ring mt-2 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none", e),
|
|
1659
1661
|
...t
|
|
1660
1662
|
}));
|
|
1661
|
-
|
|
1663
|
+
ji.displayName = B.Content?.displayName || "TabsContent";
|
|
1662
1664
|
//#endregion
|
|
1663
1665
|
//#region src/textarea.tsx
|
|
1664
|
-
var
|
|
1666
|
+
var Mi = e.forwardRef(({ className: e, placeholderClassName: t, ...n }, r) => /* @__PURE__ */ m(u, {
|
|
1665
1667
|
ref: r,
|
|
1666
1668
|
multiline: !0,
|
|
1667
1669
|
numberOfLines: n.numberOfLines || 3,
|
|
@@ -1670,10 +1672,10 @@ var ji = e.forwardRef(({ className: e, placeholderClassName: t, ...n }, r) => /*
|
|
|
1670
1672
|
textAlignVertical: "top",
|
|
1671
1673
|
...n
|
|
1672
1674
|
}));
|
|
1673
|
-
|
|
1675
|
+
Mi.displayName = "Textarea";
|
|
1674
1676
|
//#endregion
|
|
1675
1677
|
//#region src/toggle.tsx
|
|
1676
|
-
var
|
|
1678
|
+
var Ni = e.forwardRef(({ className: e, variant: t, size: n, ...r }, i) => /* @__PURE__ */ m(lt.Provider, {
|
|
1677
1679
|
value: G("text-sm native:text-base text-foreground font-medium", r.pressed && "text-accent-foreground", e),
|
|
1678
1680
|
children: /* @__PURE__ */ m(je.Root, {
|
|
1679
1681
|
ref: i,
|
|
@@ -1687,20 +1689,20 @@ var Mi = e.forwardRef(({ className: e, variant: t, size: n, ...r }, i) => /* @__
|
|
|
1687
1689
|
onPressedChange: r.onPressedChange || (() => {})
|
|
1688
1690
|
})
|
|
1689
1691
|
}));
|
|
1690
|
-
|
|
1692
|
+
Ni.displayName = je.Root?.displayName || "Toggle";
|
|
1691
1693
|
//#endregion
|
|
1692
1694
|
//#region src/toggle-group.tsx
|
|
1693
|
-
var
|
|
1695
|
+
var Pi = e.createContext({
|
|
1694
1696
|
size: "default",
|
|
1695
1697
|
variant: "default"
|
|
1696
|
-
}),
|
|
1698
|
+
}), Fi = e.forwardRef(({ className: e, variant: t, size: n, children: r, type: i, value: a, onValueChange: o, ...s }, c) => /* @__PURE__ */ m(V.Root, {
|
|
1697
1699
|
ref: c,
|
|
1698
1700
|
type: i,
|
|
1699
1701
|
value: a,
|
|
1700
1702
|
onValueChange: o,
|
|
1701
1703
|
className: G("flex flex-row items-center justify-center gap-1", e),
|
|
1702
1704
|
...s,
|
|
1703
|
-
children: /* @__PURE__ */ m(
|
|
1705
|
+
children: /* @__PURE__ */ m(Pi.Provider, {
|
|
1704
1706
|
value: {
|
|
1705
1707
|
variant: t,
|
|
1706
1708
|
size: n
|
|
@@ -1708,10 +1710,10 @@ var Ni = e.createContext({
|
|
|
1708
1710
|
children: r
|
|
1709
1711
|
})
|
|
1710
1712
|
}));
|
|
1711
|
-
|
|
1712
|
-
var
|
|
1713
|
-
let c = e.useContext(
|
|
1714
|
-
return /* @__PURE__ */ m(
|
|
1713
|
+
Fi.displayName = V.Root?.displayName || "ToggleGroup";
|
|
1714
|
+
var Ii = e.forwardRef(({ className: t, children: n, variant: r, size: i, value: a, ...o }, s) => {
|
|
1715
|
+
let c = e.useContext(Pi);
|
|
1716
|
+
return /* @__PURE__ */ m(lt.Provider, {
|
|
1715
1717
|
value: G("text-sm native:text-base text-foreground font-medium", o.disabled && "web:cursor-not-allowed opacity-50", a === "" && "text-accent-foreground", t),
|
|
1716
1718
|
children: /* @__PURE__ */ m(V.Item, {
|
|
1717
1719
|
ref: s,
|
|
@@ -1725,10 +1727,10 @@ var Fi = e.forwardRef(({ className: t, children: n, variant: r, size: i, value:
|
|
|
1725
1727
|
})
|
|
1726
1728
|
});
|
|
1727
1729
|
});
|
|
1728
|
-
|
|
1730
|
+
Ii.displayName = V.Item?.displayName || "ToggleGroupItem";
|
|
1729
1731
|
//#endregion
|
|
1730
1732
|
//#region src/tooltip.tsx
|
|
1731
|
-
var
|
|
1733
|
+
var Li = H.Root, Ri = H.Trigger, zi = e.forwardRef(({ className: e, portalHost: t, ...n }, r) => /* @__PURE__ */ m(H.Portal, {
|
|
1732
1734
|
hostName: t,
|
|
1733
1735
|
children: /* @__PURE__ */ m(H.Overlay, {
|
|
1734
1736
|
style: a.OS === "web" ? void 0 : c.absoluteFill,
|
|
@@ -1743,30 +1745,30 @@ var Ii = H.Root, Li = H.Trigger, Ri = e.forwardRef(({ className: e, portalHost:
|
|
|
1743
1745
|
})
|
|
1744
1746
|
})
|
|
1745
1747
|
}));
|
|
1746
|
-
|
|
1747
|
-
var
|
|
1748
|
+
zi.displayName = H.Content?.displayName || "TooltipContent";
|
|
1749
|
+
var Bi = ({ children: e }) => /* @__PURE__ */ m(p, { children: e }), Vi = 5, Hi = 1e6, Z = {
|
|
1748
1750
|
ADD_TOAST: "ADD_TOAST",
|
|
1749
1751
|
UPDATE_TOAST: "UPDATE_TOAST",
|
|
1750
1752
|
DISMISS_TOAST: "DISMISS_TOAST",
|
|
1751
1753
|
REMOVE_TOAST: "REMOVE_TOAST"
|
|
1752
|
-
},
|
|
1753
|
-
function
|
|
1754
|
-
return
|
|
1754
|
+
}, Ui = 0;
|
|
1755
|
+
function Wi() {
|
|
1756
|
+
return Ui = (Ui + 1) % (2 ** 53 - 1), Ui.toString();
|
|
1755
1757
|
}
|
|
1756
|
-
var
|
|
1757
|
-
if (
|
|
1758
|
+
var Gi = /* @__PURE__ */ new Map(), Ki = (e) => {
|
|
1759
|
+
if (Gi.has(e)) return;
|
|
1758
1760
|
let t = setTimeout(() => {
|
|
1759
|
-
|
|
1761
|
+
Gi.delete(e), $({
|
|
1760
1762
|
type: "REMOVE_TOAST",
|
|
1761
1763
|
toastId: e
|
|
1762
1764
|
});
|
|
1763
|
-
},
|
|
1764
|
-
|
|
1765
|
-
},
|
|
1765
|
+
}, Hi);
|
|
1766
|
+
Gi.set(e, t);
|
|
1767
|
+
}, qi = (e, t) => {
|
|
1766
1768
|
switch (t.type) {
|
|
1767
1769
|
case Z.ADD_TOAST: return {
|
|
1768
1770
|
...e,
|
|
1769
|
-
toasts: [t.toast, ...e.toasts].slice(0,
|
|
1771
|
+
toasts: [t.toast, ...e.toasts].slice(0, Vi)
|
|
1770
1772
|
};
|
|
1771
1773
|
case Z.UPDATE_TOAST: return {
|
|
1772
1774
|
...e,
|
|
@@ -1777,8 +1779,8 @@ var Wi = /* @__PURE__ */ new Map(), Gi = (e) => {
|
|
|
1777
1779
|
};
|
|
1778
1780
|
case Z.DISMISS_TOAST: {
|
|
1779
1781
|
let { toastId: n } = t;
|
|
1780
|
-
return n ?
|
|
1781
|
-
|
|
1782
|
+
return n ? Ki(n) : e.toasts.forEach((e) => {
|
|
1783
|
+
Ki(e.id);
|
|
1782
1784
|
}), {
|
|
1783
1785
|
...e,
|
|
1784
1786
|
toasts: e.toasts.map((e) => e.id === n || n === void 0 ? {
|
|
@@ -1795,14 +1797,14 @@ var Wi = /* @__PURE__ */ new Map(), Gi = (e) => {
|
|
|
1795
1797
|
toasts: e.toasts.filter((e) => e.id !== t.toastId)
|
|
1796
1798
|
};
|
|
1797
1799
|
}
|
|
1798
|
-
}, Q = [],
|
|
1800
|
+
}, Q = [], Ji = { toasts: [] };
|
|
1799
1801
|
function $(e) {
|
|
1800
|
-
|
|
1801
|
-
e(
|
|
1802
|
+
Ji = qi(Ji, e), Q.forEach((e) => {
|
|
1803
|
+
e(Ji);
|
|
1802
1804
|
});
|
|
1803
1805
|
}
|
|
1804
|
-
function
|
|
1805
|
-
let t =
|
|
1806
|
+
function Yi({ ...e }) {
|
|
1807
|
+
let t = Wi(), n = (e) => $({
|
|
1806
1808
|
type: "UPDATE_TOAST",
|
|
1807
1809
|
toast: {
|
|
1808
1810
|
...e,
|
|
@@ -1828,14 +1830,14 @@ function Ji({ ...e }) {
|
|
|
1828
1830
|
update: n
|
|
1829
1831
|
};
|
|
1830
1832
|
}
|
|
1831
|
-
function
|
|
1832
|
-
let [t, n] = e.useState(
|
|
1833
|
+
function Xi() {
|
|
1834
|
+
let [t, n] = e.useState(Ji);
|
|
1833
1835
|
return e.useEffect(() => (Q.push(n), () => {
|
|
1834
1836
|
let e = Q.indexOf(n);
|
|
1835
1837
|
e > -1 && Q.splice(e, 1);
|
|
1836
1838
|
}), []), {
|
|
1837
1839
|
...t,
|
|
1838
|
-
toast:
|
|
1840
|
+
toast: Yi,
|
|
1839
1841
|
dismiss: (e) => $({
|
|
1840
1842
|
type: "DISMISS_TOAST",
|
|
1841
1843
|
toastId: e
|
|
@@ -1844,7 +1846,7 @@ function Yi() {
|
|
|
1844
1846
|
}
|
|
1845
1847
|
//#endregion
|
|
1846
1848
|
//#region src/toast.tsx
|
|
1847
|
-
var
|
|
1849
|
+
var Zi = ({ children: e }) => /* @__PURE__ */ m(p, { children: e }), Qi = e.forwardRef(({ className: e, variant: t = "default", ...n }, r) => /* @__PURE__ */ m(U.Root, {
|
|
1848
1850
|
ref: r,
|
|
1849
1851
|
className: G("group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg", t === "default" ? "border-border bg-background" : "border-destructive bg-destructive", e),
|
|
1850
1852
|
...n,
|
|
@@ -1856,20 +1858,20 @@ var Xi = ({ children: e }) => /* @__PURE__ */ m(p, { children: e }), Zi = e.forw
|
|
|
1856
1858
|
children: n.children
|
|
1857
1859
|
})
|
|
1858
1860
|
}));
|
|
1859
|
-
|
|
1860
|
-
var
|
|
1861
|
+
Qi.displayName = U.Root?.displayName || "Toast";
|
|
1862
|
+
var $i = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(U.Title, {
|
|
1861
1863
|
ref: n,
|
|
1862
1864
|
className: G("text-foreground text-sm font-semibold", e),
|
|
1863
1865
|
...t
|
|
1864
1866
|
}));
|
|
1865
|
-
|
|
1866
|
-
var
|
|
1867
|
+
$i.displayName = U.Title?.displayName || "ToastTitle";
|
|
1868
|
+
var ea = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(U.Description, {
|
|
1867
1869
|
ref: n,
|
|
1868
1870
|
className: G("text-muted-foreground text-sm opacity-90", e),
|
|
1869
1871
|
...t
|
|
1870
1872
|
}));
|
|
1871
|
-
|
|
1872
|
-
var
|
|
1873
|
+
ea.displayName = U.Description?.displayName || "ToastDescription";
|
|
1874
|
+
var ta = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(U.Close, {
|
|
1873
1875
|
ref: n,
|
|
1874
1876
|
className: G("text-foreground/50 hover:text-foreground absolute top-1 right-1 rounded-md p-1 opacity-0 transition-opacity group-hover:opacity-100 focus:opacity-100 focus:ring-1 focus:outline-none", e),
|
|
1875
1877
|
...t,
|
|
@@ -1878,16 +1880,16 @@ var ea = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(U.Close,
|
|
|
1878
1880
|
className: "text-muted-foreground"
|
|
1879
1881
|
})
|
|
1880
1882
|
}));
|
|
1881
|
-
|
|
1882
|
-
var
|
|
1883
|
+
ta.displayName = U.Close?.displayName || "ToastClose";
|
|
1884
|
+
var na = e.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(U.Action, {
|
|
1883
1885
|
ref: n,
|
|
1884
1886
|
className: G("hover:bg-secondary focus:ring-ring inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors focus:ring-1 focus:outline-none disabled:pointer-events-none disabled:opacity-50", e),
|
|
1885
1887
|
...t
|
|
1886
1888
|
}));
|
|
1887
|
-
|
|
1889
|
+
na.displayName = U.Action?.displayName || "ToastAction";
|
|
1888
1890
|
//#endregion
|
|
1889
1891
|
//#region src/theme-provider.tsx
|
|
1890
|
-
function
|
|
1892
|
+
function ra({ children: e, className: t }) {
|
|
1891
1893
|
let { colorScheme: n } = Me();
|
|
1892
1894
|
return /* @__PURE__ */ m(f, {
|
|
1893
1895
|
className: G("flex-1", n === "dark" ? "dark" : "", t),
|
|
@@ -1895,54 +1897,65 @@ function na({ children: e, className: t }) {
|
|
|
1895
1897
|
});
|
|
1896
1898
|
}
|
|
1897
1899
|
//#endregion
|
|
1900
|
+
//#region src/hooks/use-theme.ts
|
|
1901
|
+
function ia() {
|
|
1902
|
+
let { colorScheme: e, setColorScheme: t } = Me(), n = e;
|
|
1903
|
+
return {
|
|
1904
|
+
theme: e,
|
|
1905
|
+
setTheme: t,
|
|
1906
|
+
resolvedTheme: n,
|
|
1907
|
+
tokens: n === "dark" ? Ne.dark : Ne.light
|
|
1908
|
+
};
|
|
1909
|
+
}
|
|
1910
|
+
//#endregion
|
|
1898
1911
|
//#region src/theme-toggle.tsx
|
|
1899
|
-
function
|
|
1900
|
-
let {
|
|
1912
|
+
function aa({ variant: e = "binary", onThemeChange: t, customTheme: n, className: r }) {
|
|
1913
|
+
let { theme: i, setTheme: a, resolvedTheme: o } = ia(), s = n ?? i, c = (n || o) === "dark", l = s === "system", u = (e) => {
|
|
1901
1914
|
t ? t(e) : a(e);
|
|
1902
|
-
},
|
|
1915
|
+
}, d = () => /* @__PURE__ */ h(f, {
|
|
1903
1916
|
className: "flex items-center justify-center",
|
|
1904
1917
|
children: [
|
|
1905
1918
|
/* @__PURE__ */ m(oe, {
|
|
1906
1919
|
size: 18,
|
|
1907
|
-
className: G("text-foreground transition-all", !
|
|
1920
|
+
className: G("text-foreground transition-all", !l && !c ? "scale-100 rotate-0 opacity-100" : "absolute scale-0 -rotate-90 opacity-0")
|
|
1908
1921
|
}),
|
|
1909
1922
|
/* @__PURE__ */ m(ie, {
|
|
1910
1923
|
size: 18,
|
|
1911
|
-
className: G("text-foreground transition-all", !
|
|
1924
|
+
className: G("text-foreground transition-all", !l && c ? "scale-100 rotate-0 opacity-100" : "absolute scale-0 rotate-90 opacity-0")
|
|
1912
1925
|
}),
|
|
1913
1926
|
/* @__PURE__ */ m(se, {
|
|
1914
1927
|
size: 18,
|
|
1915
|
-
className: G("text-foreground transition-all",
|
|
1928
|
+
className: G("text-foreground transition-all", l ? "scale-100 rotate-0 opacity-100" : "absolute scale-0 rotate-90 opacity-0")
|
|
1916
1929
|
})
|
|
1917
1930
|
]
|
|
1918
1931
|
});
|
|
1919
|
-
return e === "ternary" ? /* @__PURE__ */ h(
|
|
1932
|
+
return e === "ternary" ? /* @__PURE__ */ h(Mn, { children: [/* @__PURE__ */ m(Nn, {
|
|
1920
1933
|
asChild: !0,
|
|
1921
1934
|
children: /* @__PURE__ */ m(q, {
|
|
1922
1935
|
variant: "ghost",
|
|
1923
1936
|
size: "icon",
|
|
1924
1937
|
className: G("relative h-9 w-9", r),
|
|
1925
|
-
children: /* @__PURE__ */ m(
|
|
1938
|
+
children: /* @__PURE__ */ m(d, {})
|
|
1926
1939
|
})
|
|
1927
|
-
}), /* @__PURE__ */ h(
|
|
1940
|
+
}), /* @__PURE__ */ h(zn, {
|
|
1928
1941
|
align: "end",
|
|
1929
1942
|
children: [
|
|
1930
1943
|
/* @__PURE__ */ h(Y, {
|
|
1931
|
-
|
|
1944
|
+
onSelect: () => u("light"),
|
|
1932
1945
|
children: [/* @__PURE__ */ m(oe, {
|
|
1933
1946
|
size: 14,
|
|
1934
1947
|
className: "text-foreground mr-2"
|
|
1935
1948
|
}), /* @__PURE__ */ m(J, { children: "Light" })]
|
|
1936
1949
|
}),
|
|
1937
1950
|
/* @__PURE__ */ h(Y, {
|
|
1938
|
-
|
|
1951
|
+
onSelect: () => u("dark"),
|
|
1939
1952
|
children: [/* @__PURE__ */ m(ie, {
|
|
1940
1953
|
size: 14,
|
|
1941
1954
|
className: "text-foreground mr-2"
|
|
1942
1955
|
}), /* @__PURE__ */ m(J, { children: "Dark" })]
|
|
1943
1956
|
}),
|
|
1944
1957
|
/* @__PURE__ */ h(Y, {
|
|
1945
|
-
|
|
1958
|
+
onSelect: () => u("system"),
|
|
1946
1959
|
children: [/* @__PURE__ */ m(se, {
|
|
1947
1960
|
size: 14,
|
|
1948
1961
|
className: "text-foreground mr-2"
|
|
@@ -1953,36 +1966,36 @@ function ra({ variant: e = "binary", onThemeChange: t, customTheme: n, className
|
|
|
1953
1966
|
variant: "ghost",
|
|
1954
1967
|
size: "icon",
|
|
1955
1968
|
className: G("relative h-9 w-9", r),
|
|
1956
|
-
onPress: () =>
|
|
1957
|
-
children: /* @__PURE__ */ m(
|
|
1969
|
+
onPress: () => u(s === "dark" ? "light" : "dark"),
|
|
1970
|
+
children: /* @__PURE__ */ m(d, {})
|
|
1958
1971
|
});
|
|
1959
1972
|
}
|
|
1960
1973
|
//#endregion
|
|
1961
1974
|
//#region src/toaster.tsx
|
|
1962
|
-
var
|
|
1963
|
-
let { toasts: e } =
|
|
1964
|
-
return /* @__PURE__ */ m(
|
|
1975
|
+
var oa = () => {
|
|
1976
|
+
let { toasts: e } = Xi();
|
|
1977
|
+
return /* @__PURE__ */ m(Zi, { children: /* @__PURE__ */ m(f, {
|
|
1965
1978
|
className: "pointer-events-none absolute right-6 bottom-6 left-6 z-50 flex flex-col gap-2",
|
|
1966
|
-
children: e.map(({ id: e, title: t, description: n, action: r, ...i }) => /* @__PURE__ */ h(
|
|
1979
|
+
children: e.map(({ id: e, title: t, description: n, action: r, ...i }) => /* @__PURE__ */ h(Qi, {
|
|
1967
1980
|
...i,
|
|
1968
1981
|
className: "pointer-events-auto",
|
|
1969
1982
|
children: [
|
|
1970
1983
|
/* @__PURE__ */ h(f, {
|
|
1971
1984
|
className: "flex flex-1 flex-col gap-1",
|
|
1972
|
-
children: [t && /* @__PURE__ */ m(
|
|
1985
|
+
children: [t && /* @__PURE__ */ m($i, { children: t }), n && /* @__PURE__ */ m(ea, { children: n })]
|
|
1973
1986
|
}),
|
|
1974
1987
|
r,
|
|
1975
|
-
/* @__PURE__ */ m(
|
|
1988
|
+
/* @__PURE__ */ m(ta, {})
|
|
1976
1989
|
]
|
|
1977
1990
|
}, e))
|
|
1978
1991
|
}) });
|
|
1979
|
-
},
|
|
1980
|
-
function
|
|
1981
|
-
let t = e.useContext(
|
|
1992
|
+
}, sa = e.createContext(void 0);
|
|
1993
|
+
function ca() {
|
|
1994
|
+
let t = e.useContext(sa);
|
|
1982
1995
|
if (!t) throw Error("useTOC must be used within a TableOfContents provider");
|
|
1983
1996
|
return t;
|
|
1984
1997
|
}
|
|
1985
|
-
function
|
|
1998
|
+
function la({ children: t, activeId: n }) {
|
|
1986
1999
|
let [r, i] = e.useState([]), [a, o] = e.useState(null), s = e.useRef(null), c = e.useMemo(() => {
|
|
1987
2000
|
let e = n || a;
|
|
1988
2001
|
return r.find((t) => t.id === e)?.text || null;
|
|
@@ -2039,7 +2052,7 @@ function sa({ children: t, activeId: n }) {
|
|
|
2039
2052
|
d,
|
|
2040
2053
|
p
|
|
2041
2054
|
]);
|
|
2042
|
-
return /* @__PURE__ */ m(
|
|
2055
|
+
return /* @__PURE__ */ m(sa.Provider, {
|
|
2043
2056
|
value: h,
|
|
2044
2057
|
children: /* @__PURE__ */ m(f, {
|
|
2045
2058
|
className: "flex-1",
|
|
@@ -2047,8 +2060,8 @@ function sa({ children: t, activeId: n }) {
|
|
|
2047
2060
|
})
|
|
2048
2061
|
});
|
|
2049
2062
|
}
|
|
2050
|
-
function
|
|
2051
|
-
let { registerHeading: a, unregisterHeading: o } =
|
|
2063
|
+
function ua({ children: t, level: n = 2, id: r, className: i }) {
|
|
2064
|
+
let { registerHeading: a, unregisterHeading: o } = ca(), s = r || Pe(t), c = e.useCallback((e) => {
|
|
2052
2065
|
let { y: r } = e.nativeEvent.layout;
|
|
2053
2066
|
a(s, t, n, r);
|
|
2054
2067
|
}, [
|
|
@@ -2066,8 +2079,8 @@ function ca({ children: t, level: n = 2, id: r, className: i }) {
|
|
|
2066
2079
|
})
|
|
2067
2080
|
});
|
|
2068
2081
|
}
|
|
2069
|
-
function
|
|
2070
|
-
let { headings: t, activeId: n, scrollToHeading: r } =
|
|
2082
|
+
function da({ className: e }) {
|
|
2083
|
+
let { headings: t, activeId: n, scrollToHeading: r } = ca();
|
|
2071
2084
|
if (t.length === 0) return null;
|
|
2072
2085
|
let i = Math.min(...t.map((e) => e.level));
|
|
2073
2086
|
return /* @__PURE__ */ h(f, {
|
|
@@ -2090,8 +2103,8 @@ function la({ className: e }) {
|
|
|
2090
2103
|
})]
|
|
2091
2104
|
});
|
|
2092
2105
|
}
|
|
2093
|
-
function
|
|
2094
|
-
let { scrollViewRef: n, onScroll: r } =
|
|
2106
|
+
function fa({ children: e, className: t }) {
|
|
2107
|
+
let { scrollViewRef: n, onScroll: r } = ca();
|
|
2095
2108
|
return /* @__PURE__ */ m(s, {
|
|
2096
2109
|
ref: n,
|
|
2097
2110
|
onScroll: r,
|
|
@@ -2103,6 +2116,6 @@ function ua({ children: e, className: t }) {
|
|
|
2103
2116
|
children: e
|
|
2104
2117
|
});
|
|
2105
2118
|
}
|
|
2106
|
-
|
|
2119
|
+
la.List = da, la.Content = fa, la.Heading = ua;
|
|
2107
2120
|
//#endregion
|
|
2108
|
-
export {
|
|
2121
|
+
export { Fe as Accordion, ze as AccordionContent, Ie as AccordionItem, Re as AccordionTrigger, Ve as Alert, Ue as AlertDescription, Ge as AlertDialog, et as AlertDialogAction, tt as AlertDialogCancel, Ye as AlertDialogContent, $e as AlertDialogDescription, Ze as AlertDialogFooter, Xe as AlertDialogHeader, Je as AlertDialogOverlay, qe as AlertDialogPortal, Qe as AlertDialogTitle, Ke as AlertDialogTrigger, He as AlertTitle, nt as AspectRatio, rt as Avatar, at as AvatarFallback, it as AvatarImage, ct as Badge, dt as Breadcrumb, _t as BreadcrumbEllipsis, pt as BreadcrumbItem, mt as BreadcrumbLink, ft as BreadcrumbList, ht as BreadcrumbPage, gt as BreadcrumbSeparator, q as Button, vt as Calendar, yt as Card, Ct as CardContent, St as CardDescription, wt as CardFooter, bt as CardHeader, xt as CardTitle, Tt as Carousel, Et as CarouselContent, Dt as CarouselItem, kt as CarouselNext, Ot as CarouselPrevious, At as ChartContainer, Pt as ChartLegend, Mt as ChartLegendContent, Ft as ChartStyle, Nt as ChartTooltip, jt as ChartTooltipContent, It as Checkbox, Lt as Collapsible, zt as CollapsibleContent, Rt as CollapsibleTrigger, Bt as Command, Vt as CommandDialog, Wt as CommandEmpty, Gt as CommandGroup, Ht as CommandInput, Kt as CommandItem, Ut as CommandList, qt as CommandSeparator, Jt as CommandShortcut, Yt as ContextMenu, an as ContextMenuCheckboxItem, nn as ContextMenuContent, Qt as ContextMenuGroup, rn as ContextMenuItem, sn as ContextMenuLabel, Zt as ContextMenuPortal, $t as ContextMenuRadioGroup, on as ContextMenuRadioItem, cn as ContextMenuSeparator, ln as ContextMenuShortcut, en as ContextMenuSub, dn as ContextMenuSubContent, un as ContextMenuSubTrigger, Xt as ContextMenuTrigger, fn as Dialog, hn as DialogClose, _n as DialogContent, xn as DialogDescription, yn as DialogFooter, vn as DialogHeader, bn as DialogTitle, pn as DialogTrigger, Sn as Drawer, kn as DrawerClose, En as DrawerContent, jn as DrawerDescription, On as DrawerFooter, Dn as DrawerHeader, Tn as DrawerOverlay, wn as DrawerPortal, An as DrawerTitle, Cn as DrawerTrigger, Mn as DropdownMenu, Bn as DropdownMenuCheckboxItem, zn as DropdownMenuContent, Fn as DropdownMenuGroup, Y as DropdownMenuItem, Hn as DropdownMenuLabel, Pn as DropdownMenuPortal, In as DropdownMenuRadioGroup, Vn as DropdownMenuRadioItem, Un as DropdownMenuSeparator, Wn as DropdownMenuShortcut, Ln as DropdownMenuSub, Kn as DropdownMenuSubContent, Gn as DropdownMenuSubTrigger, Nn as DropdownMenuTrigger, qn as Form, Jn as HoverCard, Xn as HoverCardContent, Yn as HoverCardTrigger, Zn as Input, Qn as Label, $n as Menubar, lr as MenubarCheckboxItem, sr as MenubarContent, nr as MenubarGroup, cr as MenubarItem, dr as MenubarLabel, er as MenubarMenu, tr as MenubarPortal, rr as MenubarRadioGroup, ur as MenubarRadioItem, fr as MenubarSeparator, pr as MenubarShortcut, ir as MenubarSub, hr as MenubarSubContent, mr as MenubarSubTrigger, or as MenubarTrigger, gr as NavigationMenu, br as NavigationMenuContent, Cr as NavigationMenuIndicator, vr as NavigationMenuItem, xr as NavigationMenuLink, _r as NavigationMenuList, yr as NavigationMenuTrigger, Sr as NavigationMenuViewport, wr as Pagination, Tr as PaginationContent, kr as PaginationEllipsis, Er as PaginationItem, X as PaginationLink, Or as PaginationNext, Dr as PaginationPrevious, jr as Popover, Nr as PopoverAnchor, Pr as PopoverContent, Mr as PopoverTrigger, Fr as Progress, Ir as RadioGroup, Lr as RadioGroupItem, Br as ResizableHandle, zr as ResizablePanel, Rr as ResizablePanelGroup, Vr as ScrollArea, ei as ScrollToTop, Ur as Search, Wr as Select, Xr as SelectContent, Gr as SelectGroup, Qr as SelectItem, Zr as SelectLabel, Yr as SelectScrollDownButton, Jr as SelectScrollUpButton, $r as SelectSeparator, qr as SelectTrigger, Kr as SelectValue, ai as Separator, oi as Sheet, ci as SheetClose, di as SheetContent, hi as SheetDescription, pi as SheetFooter, fi as SheetHeader, ui as SheetOverlay, li as SheetPortal, mi as SheetTitle, si as SheetTrigger, gi as Skeleton, _i as Slider, vi as Sonner, ii as SupportFab, yi as Switch, bi as Table, Si as TableBody, Di as TableCaption, Ei as TableCell, Ci as TableFooter, Ti as TableHead, xi as TableHeader, la as TableOfContents, fa as TableOfContentsContent, ua as TableOfContentsHeading, da as TableOfContentsList, wi as TableRow, Oi as Tabs, ji as TabsContent, ki as TabsList, Ai as TabsTrigger, J as Text, Mi as Textarea, ra as ThemeProvider, aa as ThemeToggle, Qi as Toast, oa as Toaster, Ni as Toggle, Fi as ToggleGroup, Ii as ToggleGroupItem, Li as Tooltip, zi as TooltipContent, Bi as TooltipProvider, Ri as TooltipTrigger, ot as badgeVariants, K as buttonVariants, G as cn, ut as textVariants, Yi as toast, Ae as toggleVariants, ia as useTheme, Xi as useToast, W as wrapTextChildren };
|