@webstacks/ui 0.3.1 → 0.4.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/README.md +68 -25
- package/dist/Saans Bold-K6RGQSTK.otf +0 -0
- package/dist/Saans Light-Q2IR6YE7.otf +0 -0
- package/dist/Saans Medium-X7H5MZYR.otf +0 -0
- package/dist/Saans Regular-HTDDQ26K.otf +0 -0
- package/dist/Saans SemiBold-5JKBJKUE.otf +0 -0
- package/dist/TT_Interphases_Pro_Mono_Bold-NMOXJFO5.ttf +0 -0
- package/dist/TT_Interphases_Pro_Mono_Bold_Italic-PRYESDKD.ttf +0 -0
- package/dist/TT_Interphases_Pro_Mono_Italic-DBI3BSIS.ttf +0 -0
- package/dist/TT_Interphases_Pro_Mono_Regular-VPGO22AC.ttf +0 -0
- package/dist/index.cjs +698 -510
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +3669 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.cts +118 -59
- package/dist/index.d.ts +118 -59
- package/dist/index.js +694 -509
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
+
// src/components/base-styles.tsx
|
|
4
|
+
import * as React from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
function BaseStyles({ children, colorMode = "light" }) {
|
|
7
|
+
const [resolvedMode, setResolvedMode] = React.useState(
|
|
8
|
+
colorMode === "auto" ? "light" : colorMode
|
|
9
|
+
);
|
|
10
|
+
React.useEffect(() => {
|
|
11
|
+
if (colorMode !== "auto") {
|
|
12
|
+
setResolvedMode(colorMode);
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
const mq = window.matchMedia("(prefers-color-scheme: dark)");
|
|
16
|
+
setResolvedMode(mq.matches ? "dark" : "light");
|
|
17
|
+
const handler = (e) => {
|
|
18
|
+
setResolvedMode(e.matches ? "dark" : "light");
|
|
19
|
+
};
|
|
20
|
+
mq.addEventListener("change", handler);
|
|
21
|
+
return () => mq.removeEventListener("change", handler);
|
|
22
|
+
}, [colorMode]);
|
|
23
|
+
return /* @__PURE__ */ jsx(
|
|
24
|
+
"div",
|
|
25
|
+
{
|
|
26
|
+
className: resolvedMode === "dark" ? "dark" : "",
|
|
27
|
+
"data-color-mode": colorMode,
|
|
28
|
+
"data-light-theme": "light",
|
|
29
|
+
"data-dark-theme": "dark",
|
|
30
|
+
style: { colorScheme: resolvedMode },
|
|
31
|
+
children
|
|
32
|
+
}
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
|
|
3
36
|
// src/lib/utils.ts
|
|
4
37
|
import { clsx } from "clsx";
|
|
5
38
|
import { twMerge } from "tailwind-merge";
|
|
@@ -8,11 +41,11 @@ function cn(...inputs) {
|
|
|
8
41
|
}
|
|
9
42
|
|
|
10
43
|
// src/hooks/use-mobile.tsx
|
|
11
|
-
import * as
|
|
44
|
+
import * as React2 from "react";
|
|
12
45
|
var MOBILE_BREAKPOINT = 768;
|
|
13
46
|
function useIsMobile() {
|
|
14
|
-
const [isMobile, setIsMobile] =
|
|
15
|
-
|
|
47
|
+
const [isMobile, setIsMobile] = React2.useState(void 0);
|
|
48
|
+
React2.useEffect(() => {
|
|
16
49
|
const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
|
|
17
50
|
const onChange = () => {
|
|
18
51
|
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
@@ -25,7 +58,7 @@ function useIsMobile() {
|
|
|
25
58
|
}
|
|
26
59
|
|
|
27
60
|
// src/hooks/use-toast.ts
|
|
28
|
-
import * as
|
|
61
|
+
import * as React3 from "react";
|
|
29
62
|
var TOAST_LIMIT = 1;
|
|
30
63
|
var TOAST_REMOVE_DELAY = 1e6;
|
|
31
64
|
var count = 0;
|
|
@@ -126,8 +159,8 @@ function toast({ ...props }) {
|
|
|
126
159
|
};
|
|
127
160
|
}
|
|
128
161
|
function useToast() {
|
|
129
|
-
const [state, setState] =
|
|
130
|
-
|
|
162
|
+
const [state, setState] = React3.useState(memoryState);
|
|
163
|
+
React3.useEffect(() => {
|
|
131
164
|
listeners.push(setState);
|
|
132
165
|
return () => {
|
|
133
166
|
const index = listeners.indexOf(setState);
|
|
@@ -144,12 +177,12 @@ function useToast() {
|
|
|
144
177
|
}
|
|
145
178
|
|
|
146
179
|
// src/components/ui/accordion.tsx
|
|
147
|
-
import * as
|
|
180
|
+
import * as React4 from "react";
|
|
148
181
|
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
149
182
|
import { ChevronDown } from "lucide-react";
|
|
150
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
183
|
+
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
151
184
|
var Accordion = AccordionPrimitive.Root;
|
|
152
|
-
var AccordionItem =
|
|
185
|
+
var AccordionItem = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx2(
|
|
153
186
|
AccordionPrimitive.Item,
|
|
154
187
|
{
|
|
155
188
|
ref,
|
|
@@ -158,7 +191,7 @@ var AccordionItem = React3.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
158
191
|
}
|
|
159
192
|
));
|
|
160
193
|
AccordionItem.displayName = "AccordionItem";
|
|
161
|
-
var AccordionTrigger =
|
|
194
|
+
var AccordionTrigger = React4.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx2(AccordionPrimitive.Header, { className: "flex", children: /* @__PURE__ */ jsxs(
|
|
162
195
|
AccordionPrimitive.Trigger,
|
|
163
196
|
{
|
|
164
197
|
ref,
|
|
@@ -169,26 +202,26 @@ var AccordionTrigger = React3.forwardRef(({ className, children, ...props }, ref
|
|
|
169
202
|
...props,
|
|
170
203
|
children: [
|
|
171
204
|
children,
|
|
172
|
-
/* @__PURE__ */
|
|
205
|
+
/* @__PURE__ */ jsx2(ChevronDown, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
|
|
173
206
|
]
|
|
174
207
|
}
|
|
175
208
|
) }));
|
|
176
209
|
AccordionTrigger.displayName = AccordionPrimitive.Trigger.displayName;
|
|
177
|
-
var AccordionContent =
|
|
210
|
+
var AccordionContent = React4.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx2(
|
|
178
211
|
AccordionPrimitive.Content,
|
|
179
212
|
{
|
|
180
213
|
ref,
|
|
181
214
|
className: "overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",
|
|
182
215
|
...props,
|
|
183
|
-
children: /* @__PURE__ */
|
|
216
|
+
children: /* @__PURE__ */ jsx2("div", { className: cn("pb-4 pt-0", className), children })
|
|
184
217
|
}
|
|
185
218
|
));
|
|
186
219
|
AccordionContent.displayName = AccordionPrimitive.Content.displayName;
|
|
187
220
|
|
|
188
221
|
// src/components/ui/alert.tsx
|
|
189
|
-
import * as
|
|
222
|
+
import * as React5 from "react";
|
|
190
223
|
import { cva } from "class-variance-authority";
|
|
191
|
-
import { jsx as
|
|
224
|
+
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
192
225
|
var alertVariants = cva(
|
|
193
226
|
"relative w-full rounded-lg border px-4 py-3 text-sm [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground [&>svg~*]:pl-7",
|
|
194
227
|
{
|
|
@@ -203,7 +236,7 @@ var alertVariants = cva(
|
|
|
203
236
|
}
|
|
204
237
|
}
|
|
205
238
|
);
|
|
206
|
-
var Alert =
|
|
239
|
+
var Alert = React5.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx3(
|
|
207
240
|
"div",
|
|
208
241
|
{
|
|
209
242
|
ref,
|
|
@@ -213,7 +246,7 @@ var Alert = React4.forwardRef(({ className, variant, ...props }, ref) => /* @__P
|
|
|
213
246
|
}
|
|
214
247
|
));
|
|
215
248
|
Alert.displayName = "Alert";
|
|
216
|
-
var AlertTitle =
|
|
249
|
+
var AlertTitle = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx3(
|
|
217
250
|
"h5",
|
|
218
251
|
{
|
|
219
252
|
ref,
|
|
@@ -222,7 +255,7 @@ var AlertTitle = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
222
255
|
}
|
|
223
256
|
));
|
|
224
257
|
AlertTitle.displayName = "AlertTitle";
|
|
225
|
-
var AlertDescription =
|
|
258
|
+
var AlertDescription = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx3(
|
|
226
259
|
"div",
|
|
227
260
|
{
|
|
228
261
|
ref,
|
|
@@ -233,14 +266,14 @@ var AlertDescription = React4.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
233
266
|
AlertDescription.displayName = "AlertDescription";
|
|
234
267
|
|
|
235
268
|
// src/components/ui/alert-dialog.tsx
|
|
236
|
-
import * as
|
|
269
|
+
import * as React7 from "react";
|
|
237
270
|
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
238
271
|
|
|
239
272
|
// src/components/ui/button.tsx
|
|
240
|
-
import * as
|
|
273
|
+
import * as React6 from "react";
|
|
241
274
|
import { Slot } from "@radix-ui/react-slot";
|
|
242
275
|
import { cva as cva2 } from "class-variance-authority";
|
|
243
|
-
import { jsx as
|
|
276
|
+
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
244
277
|
var buttonVariants = cva2(
|
|
245
278
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-full text-sm transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
246
279
|
{
|
|
@@ -266,10 +299,10 @@ var buttonVariants = cva2(
|
|
|
266
299
|
}
|
|
267
300
|
}
|
|
268
301
|
);
|
|
269
|
-
var Button =
|
|
302
|
+
var Button = React6.forwardRef(
|
|
270
303
|
({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
271
304
|
const Comp = asChild ? Slot : "button";
|
|
272
|
-
return /* @__PURE__ */
|
|
305
|
+
return /* @__PURE__ */ jsx4(
|
|
273
306
|
Comp,
|
|
274
307
|
{
|
|
275
308
|
className: cn(buttonVariants({ variant, size, className })),
|
|
@@ -282,11 +315,11 @@ var Button = React5.forwardRef(
|
|
|
282
315
|
Button.displayName = "Button";
|
|
283
316
|
|
|
284
317
|
// src/components/ui/alert-dialog.tsx
|
|
285
|
-
import { jsx as
|
|
318
|
+
import { jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
286
319
|
var AlertDialog = AlertDialogPrimitive.Root;
|
|
287
320
|
var AlertDialogTrigger = AlertDialogPrimitive.Trigger;
|
|
288
321
|
var AlertDialogPortal = AlertDialogPrimitive.Portal;
|
|
289
|
-
var AlertDialogOverlay =
|
|
322
|
+
var AlertDialogOverlay = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx5(
|
|
290
323
|
AlertDialogPrimitive.Overlay,
|
|
291
324
|
{
|
|
292
325
|
className: cn(
|
|
@@ -298,9 +331,9 @@ var AlertDialogOverlay = React6.forwardRef(({ className, ...props }, ref) => /*
|
|
|
298
331
|
}
|
|
299
332
|
));
|
|
300
333
|
AlertDialogOverlay.displayName = AlertDialogPrimitive.Overlay.displayName;
|
|
301
|
-
var AlertDialogContent =
|
|
302
|
-
/* @__PURE__ */
|
|
303
|
-
/* @__PURE__ */
|
|
334
|
+
var AlertDialogContent = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs2(AlertDialogPortal, { children: [
|
|
335
|
+
/* @__PURE__ */ jsx5(AlertDialogOverlay, {}),
|
|
336
|
+
/* @__PURE__ */ jsx5(
|
|
304
337
|
AlertDialogPrimitive.Content,
|
|
305
338
|
{
|
|
306
339
|
ref,
|
|
@@ -316,7 +349,7 @@ AlertDialogContent.displayName = AlertDialogPrimitive.Content.displayName;
|
|
|
316
349
|
var AlertDialogHeader = ({
|
|
317
350
|
className,
|
|
318
351
|
...props
|
|
319
|
-
}) => /* @__PURE__ */
|
|
352
|
+
}) => /* @__PURE__ */ jsx5(
|
|
320
353
|
"div",
|
|
321
354
|
{
|
|
322
355
|
className: cn(
|
|
@@ -330,7 +363,7 @@ AlertDialogHeader.displayName = "AlertDialogHeader";
|
|
|
330
363
|
var AlertDialogFooter = ({
|
|
331
364
|
className,
|
|
332
365
|
...props
|
|
333
|
-
}) => /* @__PURE__ */
|
|
366
|
+
}) => /* @__PURE__ */ jsx5(
|
|
334
367
|
"div",
|
|
335
368
|
{
|
|
336
369
|
className: cn(
|
|
@@ -341,7 +374,7 @@ var AlertDialogFooter = ({
|
|
|
341
374
|
}
|
|
342
375
|
);
|
|
343
376
|
AlertDialogFooter.displayName = "AlertDialogFooter";
|
|
344
|
-
var AlertDialogTitle =
|
|
377
|
+
var AlertDialogTitle = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx5(
|
|
345
378
|
AlertDialogPrimitive.Title,
|
|
346
379
|
{
|
|
347
380
|
ref,
|
|
@@ -350,7 +383,7 @@ var AlertDialogTitle = React6.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
350
383
|
}
|
|
351
384
|
));
|
|
352
385
|
AlertDialogTitle.displayName = AlertDialogPrimitive.Title.displayName;
|
|
353
|
-
var AlertDialogDescription =
|
|
386
|
+
var AlertDialogDescription = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx5(
|
|
354
387
|
AlertDialogPrimitive.Description,
|
|
355
388
|
{
|
|
356
389
|
ref,
|
|
@@ -359,7 +392,7 @@ var AlertDialogDescription = React6.forwardRef(({ className, ...props }, ref) =>
|
|
|
359
392
|
}
|
|
360
393
|
));
|
|
361
394
|
AlertDialogDescription.displayName = AlertDialogPrimitive.Description.displayName;
|
|
362
|
-
var AlertDialogAction =
|
|
395
|
+
var AlertDialogAction = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx5(
|
|
363
396
|
AlertDialogPrimitive.Action,
|
|
364
397
|
{
|
|
365
398
|
ref,
|
|
@@ -368,7 +401,7 @@ var AlertDialogAction = React6.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
368
401
|
}
|
|
369
402
|
));
|
|
370
403
|
AlertDialogAction.displayName = AlertDialogPrimitive.Action.displayName;
|
|
371
|
-
var AlertDialogCancel =
|
|
404
|
+
var AlertDialogCancel = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx5(
|
|
372
405
|
AlertDialogPrimitive.Cancel,
|
|
373
406
|
{
|
|
374
407
|
ref,
|
|
@@ -387,10 +420,10 @@ import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
|
|
|
387
420
|
var AspectRatio = AspectRatioPrimitive.Root;
|
|
388
421
|
|
|
389
422
|
// src/components/ui/avatar.tsx
|
|
390
|
-
import * as
|
|
423
|
+
import * as React8 from "react";
|
|
391
424
|
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
392
|
-
import { jsx as
|
|
393
|
-
var Avatar =
|
|
425
|
+
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
426
|
+
var Avatar = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx6(
|
|
394
427
|
AvatarPrimitive.Root,
|
|
395
428
|
{
|
|
396
429
|
ref,
|
|
@@ -402,7 +435,7 @@ var Avatar = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
402
435
|
}
|
|
403
436
|
));
|
|
404
437
|
Avatar.displayName = AvatarPrimitive.Root.displayName;
|
|
405
|
-
var AvatarImage =
|
|
438
|
+
var AvatarImage = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx6(
|
|
406
439
|
AvatarPrimitive.Image,
|
|
407
440
|
{
|
|
408
441
|
ref,
|
|
@@ -411,7 +444,7 @@ var AvatarImage = React7.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
411
444
|
}
|
|
412
445
|
));
|
|
413
446
|
AvatarImage.displayName = AvatarPrimitive.Image.displayName;
|
|
414
|
-
var AvatarFallback =
|
|
447
|
+
var AvatarFallback = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx6(
|
|
415
448
|
AvatarPrimitive.Fallback,
|
|
416
449
|
{
|
|
417
450
|
ref,
|
|
@@ -426,7 +459,7 @@ AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
|
|
|
426
459
|
|
|
427
460
|
// src/components/ui/badge.tsx
|
|
428
461
|
import { cva as cva3 } from "class-variance-authority";
|
|
429
|
-
import { jsx as
|
|
462
|
+
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
430
463
|
var badgeVariants = cva3(
|
|
431
464
|
"inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
432
465
|
{
|
|
@@ -444,17 +477,17 @@ var badgeVariants = cva3(
|
|
|
444
477
|
}
|
|
445
478
|
);
|
|
446
479
|
function Badge({ className, variant, ...props }) {
|
|
447
|
-
return /* @__PURE__ */
|
|
480
|
+
return /* @__PURE__ */ jsx7("div", { className: cn(badgeVariants({ variant }), className), ...props });
|
|
448
481
|
}
|
|
449
482
|
|
|
450
483
|
// src/components/ui/breadcrumb.tsx
|
|
451
|
-
import * as
|
|
484
|
+
import * as React9 from "react";
|
|
452
485
|
import { Slot as Slot2 } from "@radix-ui/react-slot";
|
|
453
486
|
import { ChevronRight, MoreHorizontal } from "lucide-react";
|
|
454
|
-
import { jsx as
|
|
455
|
-
var Breadcrumb =
|
|
487
|
+
import { jsx as jsx8, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
488
|
+
var Breadcrumb = React9.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx8("nav", { ref, "aria-label": "breadcrumb", ...props }));
|
|
456
489
|
Breadcrumb.displayName = "Breadcrumb";
|
|
457
|
-
var BreadcrumbList =
|
|
490
|
+
var BreadcrumbList = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx8(
|
|
458
491
|
"ol",
|
|
459
492
|
{
|
|
460
493
|
ref,
|
|
@@ -466,7 +499,7 @@ var BreadcrumbList = React8.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
466
499
|
}
|
|
467
500
|
));
|
|
468
501
|
BreadcrumbList.displayName = "BreadcrumbList";
|
|
469
|
-
var BreadcrumbItem =
|
|
502
|
+
var BreadcrumbItem = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx8(
|
|
470
503
|
"li",
|
|
471
504
|
{
|
|
472
505
|
ref,
|
|
@@ -475,9 +508,9 @@ var BreadcrumbItem = React8.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
475
508
|
}
|
|
476
509
|
));
|
|
477
510
|
BreadcrumbItem.displayName = "BreadcrumbItem";
|
|
478
|
-
var BreadcrumbLink =
|
|
511
|
+
var BreadcrumbLink = React9.forwardRef(({ asChild, className, ...props }, ref) => {
|
|
479
512
|
const Comp = asChild ? Slot2 : "a";
|
|
480
|
-
return /* @__PURE__ */
|
|
513
|
+
return /* @__PURE__ */ jsx8(
|
|
481
514
|
Comp,
|
|
482
515
|
{
|
|
483
516
|
ref,
|
|
@@ -487,7 +520,7 @@ var BreadcrumbLink = React8.forwardRef(({ asChild, className, ...props }, ref) =
|
|
|
487
520
|
);
|
|
488
521
|
});
|
|
489
522
|
BreadcrumbLink.displayName = "BreadcrumbLink";
|
|
490
|
-
var BreadcrumbPage =
|
|
523
|
+
var BreadcrumbPage = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx8(
|
|
491
524
|
"span",
|
|
492
525
|
{
|
|
493
526
|
ref,
|
|
@@ -503,14 +536,14 @@ var BreadcrumbSeparator = ({
|
|
|
503
536
|
children,
|
|
504
537
|
className,
|
|
505
538
|
...props
|
|
506
|
-
}) => /* @__PURE__ */
|
|
539
|
+
}) => /* @__PURE__ */ jsx8(
|
|
507
540
|
"li",
|
|
508
541
|
{
|
|
509
542
|
role: "presentation",
|
|
510
543
|
"aria-hidden": "true",
|
|
511
544
|
className: cn("[&>svg]:w-3.5 [&>svg]:h-3.5", className),
|
|
512
545
|
...props,
|
|
513
|
-
children: children ?? /* @__PURE__ */
|
|
546
|
+
children: children ?? /* @__PURE__ */ jsx8(ChevronRight, {})
|
|
514
547
|
}
|
|
515
548
|
);
|
|
516
549
|
BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
|
|
@@ -525,17 +558,17 @@ var BreadcrumbEllipsis = ({
|
|
|
525
558
|
className: cn("flex h-9 w-9 items-center justify-center", className),
|
|
526
559
|
...props,
|
|
527
560
|
children: [
|
|
528
|
-
/* @__PURE__ */
|
|
529
|
-
/* @__PURE__ */
|
|
561
|
+
/* @__PURE__ */ jsx8(MoreHorizontal, { className: "h-4 w-4" }),
|
|
562
|
+
/* @__PURE__ */ jsx8("span", { className: "sr-only", children: "More" })
|
|
530
563
|
]
|
|
531
564
|
}
|
|
532
565
|
);
|
|
533
566
|
BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
|
|
534
567
|
|
|
535
568
|
// src/components/ui/box.tsx
|
|
536
|
-
import * as
|
|
569
|
+
import * as React10 from "react";
|
|
537
570
|
import { cva as cva4 } from "class-variance-authority";
|
|
538
|
-
import { jsx as
|
|
571
|
+
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
539
572
|
var boxVariants = cva4("", {
|
|
540
573
|
variants: {
|
|
541
574
|
padding: {
|
|
@@ -705,7 +738,7 @@ function resolveResponsiveClasses(prop, value) {
|
|
|
705
738
|
}
|
|
706
739
|
return classes;
|
|
707
740
|
}
|
|
708
|
-
var Box =
|
|
741
|
+
var Box = React10.forwardRef(
|
|
709
742
|
({
|
|
710
743
|
as: Comp = "div",
|
|
711
744
|
className,
|
|
@@ -745,7 +778,7 @@ var Box = React9.forwardRef(
|
|
|
745
778
|
...resolveResponsiveClasses("marginStart", marginStart),
|
|
746
779
|
...resolveResponsiveClasses("marginEnd", marginEnd)
|
|
747
780
|
];
|
|
748
|
-
return /* @__PURE__ */
|
|
781
|
+
return /* @__PURE__ */ jsx9(
|
|
749
782
|
Comp,
|
|
750
783
|
{
|
|
751
784
|
ref,
|
|
@@ -762,9 +795,9 @@ var Box = React9.forwardRef(
|
|
|
762
795
|
Box.displayName = "Box";
|
|
763
796
|
|
|
764
797
|
// src/components/ui/grid.tsx
|
|
765
|
-
import * as
|
|
798
|
+
import * as React11 from "react";
|
|
766
799
|
import { cva as cva5 } from "class-variance-authority";
|
|
767
|
-
import { jsx as
|
|
800
|
+
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
768
801
|
var gridVariants = cva5("grid", {
|
|
769
802
|
variants: {
|
|
770
803
|
columns: {
|
|
@@ -835,7 +868,7 @@ var columnMap = {
|
|
|
835
868
|
11: "grid-cols-11",
|
|
836
869
|
12: "grid-cols-12"
|
|
837
870
|
};
|
|
838
|
-
var Grid =
|
|
871
|
+
var Grid = React11.forwardRef(
|
|
839
872
|
({ as: Comp = "div", className, columns = 12, gap, gapX, gapY, align, justify, ...props }, ref) => {
|
|
840
873
|
let columnClasses;
|
|
841
874
|
if (typeof columns === "number") {
|
|
@@ -847,7 +880,7 @@ var Grid = React10.forwardRef(
|
|
|
847
880
|
if (columns.wide) classes.push(`lg:${columnMap[columns.wide]}`);
|
|
848
881
|
columnClasses = classes.join(" ");
|
|
849
882
|
}
|
|
850
|
-
return /* @__PURE__ */
|
|
883
|
+
return /* @__PURE__ */ jsx10(
|
|
851
884
|
Comp,
|
|
852
885
|
{
|
|
853
886
|
ref,
|
|
@@ -909,7 +942,7 @@ var spanMap = {
|
|
|
909
942
|
11: "col-span-11",
|
|
910
943
|
12: "col-span-12"
|
|
911
944
|
};
|
|
912
|
-
var GridColumn =
|
|
945
|
+
var GridColumn = React11.forwardRef(
|
|
913
946
|
({ as: Comp = "div", className, span, start, ...props }, ref) => {
|
|
914
947
|
let spanClasses;
|
|
915
948
|
if (typeof span === "number") {
|
|
@@ -923,7 +956,7 @@ var GridColumn = React10.forwardRef(
|
|
|
923
956
|
} else {
|
|
924
957
|
spanClasses = "";
|
|
925
958
|
}
|
|
926
|
-
return /* @__PURE__ */
|
|
959
|
+
return /* @__PURE__ */ jsx10(
|
|
927
960
|
Comp,
|
|
928
961
|
{
|
|
929
962
|
ref,
|
|
@@ -940,9 +973,9 @@ var GridColumn = React10.forwardRef(
|
|
|
940
973
|
GridColumn.displayName = "GridColumn";
|
|
941
974
|
|
|
942
975
|
// src/components/ui/heading.tsx
|
|
943
|
-
import * as
|
|
976
|
+
import * as React12 from "react";
|
|
944
977
|
import { cva as cva6 } from "class-variance-authority";
|
|
945
|
-
import { jsx as
|
|
978
|
+
import { jsx as jsx11 } from "react/jsx-runtime";
|
|
946
979
|
var headingVariants = cva6("font-heading scroll-m-24", {
|
|
947
980
|
variants: {
|
|
948
981
|
size: {
|
|
@@ -1027,7 +1060,7 @@ function resolveResponsive(value, map) {
|
|
|
1027
1060
|
}
|
|
1028
1061
|
return classes;
|
|
1029
1062
|
}
|
|
1030
|
-
var Heading =
|
|
1063
|
+
var Heading = React12.forwardRef(
|
|
1031
1064
|
({ as: Tag = "h2", className, size = 2, weight, stretch, letterSpacing, align, variant, ...props }, ref) => {
|
|
1032
1065
|
const isResponsiveSize = typeof size === "object";
|
|
1033
1066
|
const isResponsiveWeight = typeof weight === "object";
|
|
@@ -1035,7 +1068,7 @@ var Heading = React11.forwardRef(
|
|
|
1035
1068
|
...isResponsiveSize ? resolveResponsive(size, sizeMap) : [],
|
|
1036
1069
|
...isResponsiveWeight ? resolveResponsive(weight, weightMap) : []
|
|
1037
1070
|
];
|
|
1038
|
-
return /* @__PURE__ */
|
|
1071
|
+
return /* @__PURE__ */ jsx11(
|
|
1039
1072
|
Tag,
|
|
1040
1073
|
{
|
|
1041
1074
|
ref,
|
|
@@ -1060,9 +1093,9 @@ var Heading = React11.forwardRef(
|
|
|
1060
1093
|
Heading.displayName = "Heading";
|
|
1061
1094
|
|
|
1062
1095
|
// src/components/ui/text.tsx
|
|
1063
|
-
import * as
|
|
1096
|
+
import * as React13 from "react";
|
|
1064
1097
|
import { cva as cva7 } from "class-variance-authority";
|
|
1065
|
-
import { jsx as
|
|
1098
|
+
import { jsx as jsx12 } from "react/jsx-runtime";
|
|
1066
1099
|
var textVariants = cva7("font-body", {
|
|
1067
1100
|
variants: {
|
|
1068
1101
|
size: {
|
|
@@ -1133,7 +1166,7 @@ function resolveResponsive2(value, map) {
|
|
|
1133
1166
|
}
|
|
1134
1167
|
return classes;
|
|
1135
1168
|
}
|
|
1136
|
-
var Text =
|
|
1169
|
+
var Text = React13.forwardRef(
|
|
1137
1170
|
({ as: Comp = "p", className, size = 400, weight, align, variant, ...props }, ref) => {
|
|
1138
1171
|
const isResponsiveSize = typeof size === "object";
|
|
1139
1172
|
const isResponsiveWeight = typeof weight === "object";
|
|
@@ -1141,7 +1174,7 @@ var Text = React12.forwardRef(
|
|
|
1141
1174
|
...isResponsiveSize ? resolveResponsive2(size, sizeMap2) : [],
|
|
1142
1175
|
...isResponsiveWeight ? resolveResponsive2(weight, weightMap2) : []
|
|
1143
1176
|
];
|
|
1144
|
-
return /* @__PURE__ */
|
|
1177
|
+
return /* @__PURE__ */ jsx12(
|
|
1145
1178
|
Comp,
|
|
1146
1179
|
{
|
|
1147
1180
|
ref,
|
|
@@ -1163,11 +1196,160 @@ var Text = React12.forwardRef(
|
|
|
1163
1196
|
);
|
|
1164
1197
|
Text.displayName = "Text";
|
|
1165
1198
|
|
|
1166
|
-
// src/components/ui/
|
|
1167
|
-
import * as
|
|
1199
|
+
// src/components/ui/section.tsx
|
|
1200
|
+
import * as React14 from "react";
|
|
1168
1201
|
import { cva as cva8 } from "class-variance-authority";
|
|
1169
|
-
import { jsx as
|
|
1170
|
-
var
|
|
1202
|
+
import { jsx as jsx13, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1203
|
+
var paddingStartVariants = {
|
|
1204
|
+
none: "pt-0",
|
|
1205
|
+
condensed: "pt-6 md:pt-8",
|
|
1206
|
+
normal: "pt-12 md:pt-16 lg:pt-20",
|
|
1207
|
+
spacious: "pt-16 md:pt-24 lg:pt-32"
|
|
1208
|
+
};
|
|
1209
|
+
var paddingEndVariants = {
|
|
1210
|
+
none: "pb-0",
|
|
1211
|
+
condensed: "pb-6 md:pb-8",
|
|
1212
|
+
normal: "pb-12 md:pb-16 lg:pb-20",
|
|
1213
|
+
spacious: "pb-16 md:pb-24 lg:pb-32"
|
|
1214
|
+
};
|
|
1215
|
+
var backgroundColorVariants = {
|
|
1216
|
+
default: "bg-background",
|
|
1217
|
+
subtle: "bg-muted",
|
|
1218
|
+
inset: "bg-accent"
|
|
1219
|
+
};
|
|
1220
|
+
var sectionVariants = cva8("relative w-full", {
|
|
1221
|
+
variants: {
|
|
1222
|
+
rounded: {
|
|
1223
|
+
true: "rounded-xl overflow-hidden",
|
|
1224
|
+
false: ""
|
|
1225
|
+
}
|
|
1226
|
+
},
|
|
1227
|
+
defaultVariants: {
|
|
1228
|
+
rounded: false
|
|
1229
|
+
}
|
|
1230
|
+
});
|
|
1231
|
+
var responsivePrefixes4 = { narrow: "", regular: "md:", wide: "lg:" };
|
|
1232
|
+
function resolveResponsivePadding(prop, map, fallback) {
|
|
1233
|
+
if (!prop) return map[fallback] || "";
|
|
1234
|
+
if (typeof prop === "string") return map[prop] || "";
|
|
1235
|
+
const classes = [];
|
|
1236
|
+
for (const [bp, prefix] of Object.entries(responsivePrefixes4)) {
|
|
1237
|
+
const val = prop[bp];
|
|
1238
|
+
if (val && map[val]) {
|
|
1239
|
+
const base = map[val];
|
|
1240
|
+
if (prefix === "") {
|
|
1241
|
+
classes.push(base);
|
|
1242
|
+
} else {
|
|
1243
|
+
const parts = base.split(" ");
|
|
1244
|
+
for (const part of parts) {
|
|
1245
|
+
if (prefix === "md:" && part.startsWith("md:")) {
|
|
1246
|
+
classes.push(part);
|
|
1247
|
+
} else if (prefix === "lg:" && part.startsWith("lg:")) {
|
|
1248
|
+
classes.push(part);
|
|
1249
|
+
} else if (prefix === "" && !part.includes(":")) {
|
|
1250
|
+
classes.push(part);
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
return classes.join(" ");
|
|
1257
|
+
}
|
|
1258
|
+
var Section = React14.forwardRef(
|
|
1259
|
+
({
|
|
1260
|
+
as: Tag = "section",
|
|
1261
|
+
className,
|
|
1262
|
+
children,
|
|
1263
|
+
paddingBlockStart = "normal",
|
|
1264
|
+
paddingBlockEnd = "normal",
|
|
1265
|
+
backgroundColor,
|
|
1266
|
+
backgroundImageSrc,
|
|
1267
|
+
backgroundImageSize = "cover",
|
|
1268
|
+
backgroundImagePosition = "50%",
|
|
1269
|
+
rounded,
|
|
1270
|
+
fullWidth = false,
|
|
1271
|
+
sectionTitle,
|
|
1272
|
+
containerClassName,
|
|
1273
|
+
style,
|
|
1274
|
+
...props
|
|
1275
|
+
}, ref) => {
|
|
1276
|
+
const paddingStartClasses = resolveResponsivePadding(
|
|
1277
|
+
paddingBlockStart,
|
|
1278
|
+
paddingStartVariants,
|
|
1279
|
+
"normal"
|
|
1280
|
+
);
|
|
1281
|
+
const paddingEndClasses = resolveResponsivePadding(
|
|
1282
|
+
paddingBlockEnd,
|
|
1283
|
+
paddingEndVariants,
|
|
1284
|
+
"normal"
|
|
1285
|
+
);
|
|
1286
|
+
let bgColorClass = "";
|
|
1287
|
+
let bgColorStyle;
|
|
1288
|
+
if (backgroundColor) {
|
|
1289
|
+
if (typeof backgroundColor === "string") {
|
|
1290
|
+
const mapped = backgroundColorVariants[backgroundColor];
|
|
1291
|
+
if (mapped) {
|
|
1292
|
+
bgColorClass = mapped;
|
|
1293
|
+
} else {
|
|
1294
|
+
bgColorStyle = { backgroundColor };
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1298
|
+
let bgImageStyle;
|
|
1299
|
+
if (backgroundImageSrc) {
|
|
1300
|
+
const srcs = Array.isArray(backgroundImageSrc) ? backgroundImageSrc : [backgroundImageSrc];
|
|
1301
|
+
const bgImages = srcs.map((src) => `url(${src})`).join(", ");
|
|
1302
|
+
const bgSizes = Array.isArray(backgroundImageSrc) ? srcs.map(() => backgroundImageSize).join(", ") : backgroundImageSize;
|
|
1303
|
+
const bgPositions = Array.isArray(backgroundImageSrc) ? srcs.map(() => backgroundImagePosition).join(", ") : backgroundImagePosition;
|
|
1304
|
+
bgImageStyle = {
|
|
1305
|
+
backgroundImage: bgImages,
|
|
1306
|
+
backgroundSize: bgSizes,
|
|
1307
|
+
backgroundPosition: bgPositions,
|
|
1308
|
+
backgroundRepeat: "no-repeat"
|
|
1309
|
+
};
|
|
1310
|
+
}
|
|
1311
|
+
const combinedStyle = {
|
|
1312
|
+
...bgColorStyle,
|
|
1313
|
+
...bgImageStyle,
|
|
1314
|
+
...style
|
|
1315
|
+
};
|
|
1316
|
+
return /* @__PURE__ */ jsx13(
|
|
1317
|
+
Tag,
|
|
1318
|
+
{
|
|
1319
|
+
ref,
|
|
1320
|
+
className: cn(
|
|
1321
|
+
sectionVariants({ rounded }),
|
|
1322
|
+
paddingStartClasses,
|
|
1323
|
+
paddingEndClasses,
|
|
1324
|
+
bgColorClass,
|
|
1325
|
+
className
|
|
1326
|
+
),
|
|
1327
|
+
style: Object.keys(combinedStyle).length > 0 ? combinedStyle : void 0,
|
|
1328
|
+
...props,
|
|
1329
|
+
children: /* @__PURE__ */ jsxs4(
|
|
1330
|
+
"div",
|
|
1331
|
+
{
|
|
1332
|
+
className: cn(
|
|
1333
|
+
fullWidth ? "w-full" : "max-w-7xl mx-auto px-6",
|
|
1334
|
+
containerClassName
|
|
1335
|
+
),
|
|
1336
|
+
children: [
|
|
1337
|
+
sectionTitle && /* @__PURE__ */ jsx13("h2", { className: "text-2xl text-foreground border-b border-border pb-2 mb-4", children: sectionTitle }),
|
|
1338
|
+
children
|
|
1339
|
+
]
|
|
1340
|
+
}
|
|
1341
|
+
)
|
|
1342
|
+
}
|
|
1343
|
+
);
|
|
1344
|
+
}
|
|
1345
|
+
);
|
|
1346
|
+
Section.displayName = "Section";
|
|
1347
|
+
|
|
1348
|
+
// src/components/ui/stack.tsx
|
|
1349
|
+
import * as React15 from "react";
|
|
1350
|
+
import { cva as cva9 } from "class-variance-authority";
|
|
1351
|
+
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
1352
|
+
var stackVariants = cva9("flex", {
|
|
1171
1353
|
variants: {
|
|
1172
1354
|
direction: {
|
|
1173
1355
|
horizontal: "flex-row",
|
|
@@ -1253,7 +1435,7 @@ function resolveResponsive3(value, map) {
|
|
|
1253
1435
|
}
|
|
1254
1436
|
return classes;
|
|
1255
1437
|
}
|
|
1256
|
-
var Stack =
|
|
1438
|
+
var Stack = React15.forwardRef(
|
|
1257
1439
|
({
|
|
1258
1440
|
as: Comp = "div",
|
|
1259
1441
|
className,
|
|
@@ -1275,7 +1457,7 @@ var Stack = React13.forwardRef(
|
|
|
1275
1457
|
const isResponsiveGap = typeof gap === "object";
|
|
1276
1458
|
const isResponsiveAlign = typeof align === "object";
|
|
1277
1459
|
const isResponsiveJustify = typeof justify === "object";
|
|
1278
|
-
return /* @__PURE__ */
|
|
1460
|
+
return /* @__PURE__ */ jsx14(
|
|
1279
1461
|
Comp,
|
|
1280
1462
|
{
|
|
1281
1463
|
ref,
|
|
@@ -1302,14 +1484,14 @@ var Stack = React13.forwardRef(
|
|
|
1302
1484
|
Stack.displayName = "Stack";
|
|
1303
1485
|
|
|
1304
1486
|
// src/components/ui/calendar.tsx
|
|
1305
|
-
import * as
|
|
1487
|
+
import * as React16 from "react";
|
|
1306
1488
|
import {
|
|
1307
1489
|
ChevronDownIcon,
|
|
1308
1490
|
ChevronLeftIcon,
|
|
1309
1491
|
ChevronRightIcon
|
|
1310
1492
|
} from "lucide-react";
|
|
1311
1493
|
import { DayPicker, getDefaultClassNames } from "react-day-picker";
|
|
1312
|
-
import { jsx as
|
|
1494
|
+
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
1313
1495
|
function Calendar({
|
|
1314
1496
|
className,
|
|
1315
1497
|
classNames,
|
|
@@ -1321,7 +1503,7 @@ function Calendar({
|
|
|
1321
1503
|
...props
|
|
1322
1504
|
}) {
|
|
1323
1505
|
const defaultClassNames = getDefaultClassNames();
|
|
1324
|
-
return /* @__PURE__ */
|
|
1506
|
+
return /* @__PURE__ */ jsx15(
|
|
1325
1507
|
DayPicker,
|
|
1326
1508
|
{
|
|
1327
1509
|
showOutsideDays,
|
|
@@ -1420,7 +1602,7 @@ function Calendar({
|
|
|
1420
1602
|
},
|
|
1421
1603
|
components: {
|
|
1422
1604
|
Root: ({ className: className2, rootRef, ...props2 }) => {
|
|
1423
|
-
return /* @__PURE__ */
|
|
1605
|
+
return /* @__PURE__ */ jsx15(
|
|
1424
1606
|
"div",
|
|
1425
1607
|
{
|
|
1426
1608
|
"data-slot": "calendar",
|
|
@@ -1432,10 +1614,10 @@ function Calendar({
|
|
|
1432
1614
|
},
|
|
1433
1615
|
Chevron: ({ className: className2, orientation, ...props2 }) => {
|
|
1434
1616
|
if (orientation === "left") {
|
|
1435
|
-
return /* @__PURE__ */
|
|
1617
|
+
return /* @__PURE__ */ jsx15(ChevronLeftIcon, { className: cn("size-4", className2), ...props2 });
|
|
1436
1618
|
}
|
|
1437
1619
|
if (orientation === "right") {
|
|
1438
|
-
return /* @__PURE__ */
|
|
1620
|
+
return /* @__PURE__ */ jsx15(
|
|
1439
1621
|
ChevronRightIcon,
|
|
1440
1622
|
{
|
|
1441
1623
|
className: cn("size-4", className2),
|
|
@@ -1443,11 +1625,11 @@ function Calendar({
|
|
|
1443
1625
|
}
|
|
1444
1626
|
);
|
|
1445
1627
|
}
|
|
1446
|
-
return /* @__PURE__ */
|
|
1628
|
+
return /* @__PURE__ */ jsx15(ChevronDownIcon, { className: cn("size-4", className2), ...props2 });
|
|
1447
1629
|
},
|
|
1448
1630
|
DayButton: CalendarDayButton,
|
|
1449
1631
|
WeekNumber: ({ children, ...props2 }) => {
|
|
1450
|
-
return /* @__PURE__ */
|
|
1632
|
+
return /* @__PURE__ */ jsx15("td", { ...props2, children: /* @__PURE__ */ jsx15("div", { className: "flex size-[--cell-size] items-center justify-center text-center", children }) });
|
|
1451
1633
|
},
|
|
1452
1634
|
...components
|
|
1453
1635
|
},
|
|
@@ -1462,11 +1644,11 @@ function CalendarDayButton({
|
|
|
1462
1644
|
...props
|
|
1463
1645
|
}) {
|
|
1464
1646
|
const defaultClassNames = getDefaultClassNames();
|
|
1465
|
-
const ref =
|
|
1466
|
-
|
|
1647
|
+
const ref = React16.useRef(null);
|
|
1648
|
+
React16.useEffect(() => {
|
|
1467
1649
|
if (modifiers.focused) ref.current?.focus();
|
|
1468
1650
|
}, [modifiers.focused]);
|
|
1469
|
-
return /* @__PURE__ */
|
|
1651
|
+
return /* @__PURE__ */ jsx15(
|
|
1470
1652
|
Button,
|
|
1471
1653
|
{
|
|
1472
1654
|
ref,
|
|
@@ -1488,9 +1670,9 @@ function CalendarDayButton({
|
|
|
1488
1670
|
}
|
|
1489
1671
|
|
|
1490
1672
|
// src/components/ui/card.tsx
|
|
1491
|
-
import * as
|
|
1492
|
-
import { jsx as
|
|
1493
|
-
var Card =
|
|
1673
|
+
import * as React17 from "react";
|
|
1674
|
+
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
1675
|
+
var Card = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
1494
1676
|
"div",
|
|
1495
1677
|
{
|
|
1496
1678
|
ref,
|
|
@@ -1502,7 +1684,7 @@ var Card = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
1502
1684
|
}
|
|
1503
1685
|
));
|
|
1504
1686
|
Card.displayName = "Card";
|
|
1505
|
-
var CardHeader =
|
|
1687
|
+
var CardHeader = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
1506
1688
|
"div",
|
|
1507
1689
|
{
|
|
1508
1690
|
ref,
|
|
@@ -1511,7 +1693,7 @@ var CardHeader = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1511
1693
|
}
|
|
1512
1694
|
));
|
|
1513
1695
|
CardHeader.displayName = "CardHeader";
|
|
1514
|
-
var CardTitle =
|
|
1696
|
+
var CardTitle = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
1515
1697
|
"div",
|
|
1516
1698
|
{
|
|
1517
1699
|
ref,
|
|
@@ -1520,7 +1702,7 @@ var CardTitle = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
1520
1702
|
}
|
|
1521
1703
|
));
|
|
1522
1704
|
CardTitle.displayName = "CardTitle";
|
|
1523
|
-
var CardDescription =
|
|
1705
|
+
var CardDescription = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
1524
1706
|
"div",
|
|
1525
1707
|
{
|
|
1526
1708
|
ref,
|
|
@@ -1529,9 +1711,9 @@ var CardDescription = React15.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
1529
1711
|
}
|
|
1530
1712
|
));
|
|
1531
1713
|
CardDescription.displayName = "CardDescription";
|
|
1532
|
-
var CardContent =
|
|
1714
|
+
var CardContent = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16("div", { ref, className: cn("p-6 pt-0", className), ...props }));
|
|
1533
1715
|
CardContent.displayName = "CardContent";
|
|
1534
|
-
var CardFooter =
|
|
1716
|
+
var CardFooter = React17.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx16(
|
|
1535
1717
|
"div",
|
|
1536
1718
|
{
|
|
1537
1719
|
ref,
|
|
@@ -1542,19 +1724,19 @@ var CardFooter = React15.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
1542
1724
|
CardFooter.displayName = "CardFooter";
|
|
1543
1725
|
|
|
1544
1726
|
// src/components/ui/carousel.tsx
|
|
1545
|
-
import * as
|
|
1727
|
+
import * as React18 from "react";
|
|
1546
1728
|
import useEmblaCarousel from "embla-carousel-react";
|
|
1547
1729
|
import { ArrowLeft, ArrowRight } from "lucide-react";
|
|
1548
|
-
import { jsx as
|
|
1549
|
-
var CarouselContext =
|
|
1730
|
+
import { jsx as jsx17, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1731
|
+
var CarouselContext = React18.createContext(null);
|
|
1550
1732
|
function useCarousel() {
|
|
1551
|
-
const context =
|
|
1733
|
+
const context = React18.useContext(CarouselContext);
|
|
1552
1734
|
if (!context) {
|
|
1553
1735
|
throw new Error("useCarousel must be used within a <Carousel />");
|
|
1554
1736
|
}
|
|
1555
1737
|
return context;
|
|
1556
1738
|
}
|
|
1557
|
-
var Carousel =
|
|
1739
|
+
var Carousel = React18.forwardRef(
|
|
1558
1740
|
({
|
|
1559
1741
|
orientation = "horizontal",
|
|
1560
1742
|
opts,
|
|
@@ -1571,22 +1753,22 @@ var Carousel = React16.forwardRef(
|
|
|
1571
1753
|
},
|
|
1572
1754
|
plugins
|
|
1573
1755
|
);
|
|
1574
|
-
const [canScrollPrev, setCanScrollPrev] =
|
|
1575
|
-
const [canScrollNext, setCanScrollNext] =
|
|
1576
|
-
const onSelect =
|
|
1756
|
+
const [canScrollPrev, setCanScrollPrev] = React18.useState(false);
|
|
1757
|
+
const [canScrollNext, setCanScrollNext] = React18.useState(false);
|
|
1758
|
+
const onSelect = React18.useCallback((api2) => {
|
|
1577
1759
|
if (!api2) {
|
|
1578
1760
|
return;
|
|
1579
1761
|
}
|
|
1580
1762
|
setCanScrollPrev(api2.canScrollPrev());
|
|
1581
1763
|
setCanScrollNext(api2.canScrollNext());
|
|
1582
1764
|
}, []);
|
|
1583
|
-
const scrollPrev =
|
|
1765
|
+
const scrollPrev = React18.useCallback(() => {
|
|
1584
1766
|
api?.scrollPrev();
|
|
1585
1767
|
}, [api]);
|
|
1586
|
-
const scrollNext =
|
|
1768
|
+
const scrollNext = React18.useCallback(() => {
|
|
1587
1769
|
api?.scrollNext();
|
|
1588
1770
|
}, [api]);
|
|
1589
|
-
const handleKeyDown =
|
|
1771
|
+
const handleKeyDown = React18.useCallback(
|
|
1590
1772
|
(event) => {
|
|
1591
1773
|
if (event.key === "ArrowLeft") {
|
|
1592
1774
|
event.preventDefault();
|
|
@@ -1598,13 +1780,13 @@ var Carousel = React16.forwardRef(
|
|
|
1598
1780
|
},
|
|
1599
1781
|
[scrollPrev, scrollNext]
|
|
1600
1782
|
);
|
|
1601
|
-
|
|
1783
|
+
React18.useEffect(() => {
|
|
1602
1784
|
if (!api || !setApi) {
|
|
1603
1785
|
return;
|
|
1604
1786
|
}
|
|
1605
1787
|
setApi(api);
|
|
1606
1788
|
}, [api, setApi]);
|
|
1607
|
-
|
|
1789
|
+
React18.useEffect(() => {
|
|
1608
1790
|
if (!api) {
|
|
1609
1791
|
return;
|
|
1610
1792
|
}
|
|
@@ -1615,7 +1797,7 @@ var Carousel = React16.forwardRef(
|
|
|
1615
1797
|
api?.off("select", onSelect);
|
|
1616
1798
|
};
|
|
1617
1799
|
}, [api, onSelect]);
|
|
1618
|
-
return /* @__PURE__ */
|
|
1800
|
+
return /* @__PURE__ */ jsx17(
|
|
1619
1801
|
CarouselContext.Provider,
|
|
1620
1802
|
{
|
|
1621
1803
|
value: {
|
|
@@ -1628,7 +1810,7 @@ var Carousel = React16.forwardRef(
|
|
|
1628
1810
|
canScrollPrev,
|
|
1629
1811
|
canScrollNext
|
|
1630
1812
|
},
|
|
1631
|
-
children: /* @__PURE__ */
|
|
1813
|
+
children: /* @__PURE__ */ jsx17(
|
|
1632
1814
|
"div",
|
|
1633
1815
|
{
|
|
1634
1816
|
ref,
|
|
@@ -1645,9 +1827,9 @@ var Carousel = React16.forwardRef(
|
|
|
1645
1827
|
}
|
|
1646
1828
|
);
|
|
1647
1829
|
Carousel.displayName = "Carousel";
|
|
1648
|
-
var CarouselContent =
|
|
1830
|
+
var CarouselContent = React18.forwardRef(({ className, ...props }, ref) => {
|
|
1649
1831
|
const { carouselRef, orientation } = useCarousel();
|
|
1650
|
-
return /* @__PURE__ */
|
|
1832
|
+
return /* @__PURE__ */ jsx17("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ jsx17(
|
|
1651
1833
|
"div",
|
|
1652
1834
|
{
|
|
1653
1835
|
ref,
|
|
@@ -1661,9 +1843,9 @@ var CarouselContent = React16.forwardRef(({ className, ...props }, ref) => {
|
|
|
1661
1843
|
) });
|
|
1662
1844
|
});
|
|
1663
1845
|
CarouselContent.displayName = "CarouselContent";
|
|
1664
|
-
var CarouselItem =
|
|
1846
|
+
var CarouselItem = React18.forwardRef(({ className, ...props }, ref) => {
|
|
1665
1847
|
const { orientation } = useCarousel();
|
|
1666
|
-
return /* @__PURE__ */
|
|
1848
|
+
return /* @__PURE__ */ jsx17(
|
|
1667
1849
|
"div",
|
|
1668
1850
|
{
|
|
1669
1851
|
ref,
|
|
@@ -1679,9 +1861,9 @@ var CarouselItem = React16.forwardRef(({ className, ...props }, ref) => {
|
|
|
1679
1861
|
);
|
|
1680
1862
|
});
|
|
1681
1863
|
CarouselItem.displayName = "CarouselItem";
|
|
1682
|
-
var CarouselPrevious =
|
|
1864
|
+
var CarouselPrevious = React18.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
1683
1865
|
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
1684
|
-
return /* @__PURE__ */
|
|
1866
|
+
return /* @__PURE__ */ jsxs5(
|
|
1685
1867
|
Button,
|
|
1686
1868
|
{
|
|
1687
1869
|
ref,
|
|
@@ -1696,16 +1878,16 @@ var CarouselPrevious = React16.forwardRef(({ className, variant = "outline", siz
|
|
|
1696
1878
|
onClick: scrollPrev,
|
|
1697
1879
|
...props,
|
|
1698
1880
|
children: [
|
|
1699
|
-
/* @__PURE__ */
|
|
1700
|
-
/* @__PURE__ */
|
|
1881
|
+
/* @__PURE__ */ jsx17(ArrowLeft, { className: "h-4 w-4" }),
|
|
1882
|
+
/* @__PURE__ */ jsx17("span", { className: "sr-only", children: "Previous slide" })
|
|
1701
1883
|
]
|
|
1702
1884
|
}
|
|
1703
1885
|
);
|
|
1704
1886
|
});
|
|
1705
1887
|
CarouselPrevious.displayName = "CarouselPrevious";
|
|
1706
|
-
var CarouselNext =
|
|
1888
|
+
var CarouselNext = React18.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
|
|
1707
1889
|
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
1708
|
-
return /* @__PURE__ */
|
|
1890
|
+
return /* @__PURE__ */ jsxs5(
|
|
1709
1891
|
Button,
|
|
1710
1892
|
{
|
|
1711
1893
|
ref,
|
|
@@ -1720,8 +1902,8 @@ var CarouselNext = React16.forwardRef(({ className, variant = "outline", size =
|
|
|
1720
1902
|
onClick: scrollNext,
|
|
1721
1903
|
...props,
|
|
1722
1904
|
children: [
|
|
1723
|
-
/* @__PURE__ */
|
|
1724
|
-
/* @__PURE__ */
|
|
1905
|
+
/* @__PURE__ */ jsx17(ArrowRight, { className: "h-4 w-4" }),
|
|
1906
|
+
/* @__PURE__ */ jsx17("span", { className: "sr-only", children: "Next slide" })
|
|
1725
1907
|
]
|
|
1726
1908
|
}
|
|
1727
1909
|
);
|
|
@@ -1729,22 +1911,22 @@ var CarouselNext = React16.forwardRef(({ className, variant = "outline", size =
|
|
|
1729
1911
|
CarouselNext.displayName = "CarouselNext";
|
|
1730
1912
|
|
|
1731
1913
|
// src/components/ui/chart.tsx
|
|
1732
|
-
import * as
|
|
1914
|
+
import * as React19 from "react";
|
|
1733
1915
|
import * as RechartsPrimitive from "recharts";
|
|
1734
|
-
import { Fragment, jsx as
|
|
1916
|
+
import { Fragment, jsx as jsx18, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1735
1917
|
var THEMES = { light: "", dark: ".dark" };
|
|
1736
|
-
var ChartContext =
|
|
1918
|
+
var ChartContext = React19.createContext(null);
|
|
1737
1919
|
function useChart() {
|
|
1738
|
-
const context =
|
|
1920
|
+
const context = React19.useContext(ChartContext);
|
|
1739
1921
|
if (!context) {
|
|
1740
1922
|
throw new Error("useChart must be used within a <ChartContainer />");
|
|
1741
1923
|
}
|
|
1742
1924
|
return context;
|
|
1743
1925
|
}
|
|
1744
|
-
var ChartContainer =
|
|
1745
|
-
const uniqueId =
|
|
1926
|
+
var ChartContainer = React19.forwardRef(({ id, className, children, config, ...props }, ref) => {
|
|
1927
|
+
const uniqueId = React19.useId();
|
|
1746
1928
|
const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
|
|
1747
|
-
return /* @__PURE__ */
|
|
1929
|
+
return /* @__PURE__ */ jsx18(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxs6(
|
|
1748
1930
|
"div",
|
|
1749
1931
|
{
|
|
1750
1932
|
"data-chart": chartId,
|
|
@@ -1755,8 +1937,8 @@ var ChartContainer = React17.forwardRef(({ id, className, children, config, ...p
|
|
|
1755
1937
|
),
|
|
1756
1938
|
...props,
|
|
1757
1939
|
children: [
|
|
1758
|
-
/* @__PURE__ */
|
|
1759
|
-
/* @__PURE__ */
|
|
1940
|
+
/* @__PURE__ */ jsx18(ChartStyle, { id: chartId, config }),
|
|
1941
|
+
/* @__PURE__ */ jsx18(RechartsPrimitive.ResponsiveContainer, { children })
|
|
1760
1942
|
]
|
|
1761
1943
|
}
|
|
1762
1944
|
) });
|
|
@@ -1769,7 +1951,7 @@ var ChartStyle = ({ id, config }) => {
|
|
|
1769
1951
|
if (!colorConfig.length) {
|
|
1770
1952
|
return null;
|
|
1771
1953
|
}
|
|
1772
|
-
return /* @__PURE__ */
|
|
1954
|
+
return /* @__PURE__ */ jsx18(
|
|
1773
1955
|
"style",
|
|
1774
1956
|
{
|
|
1775
1957
|
dangerouslySetInnerHTML: {
|
|
@@ -1788,7 +1970,7 @@ ${colorConfig.map(([key, itemConfig]) => {
|
|
|
1788
1970
|
);
|
|
1789
1971
|
};
|
|
1790
1972
|
var ChartTooltip = RechartsPrimitive.Tooltip;
|
|
1791
|
-
var ChartTooltipContent =
|
|
1973
|
+
var ChartTooltipContent = React19.forwardRef(
|
|
1792
1974
|
({
|
|
1793
1975
|
active,
|
|
1794
1976
|
payload,
|
|
@@ -1805,7 +1987,7 @@ var ChartTooltipContent = React17.forwardRef(
|
|
|
1805
1987
|
labelKey
|
|
1806
1988
|
}, ref) => {
|
|
1807
1989
|
const { config } = useChart();
|
|
1808
|
-
const tooltipLabel =
|
|
1990
|
+
const tooltipLabel = React19.useMemo(() => {
|
|
1809
1991
|
if (hideLabel || !payload?.length) {
|
|
1810
1992
|
return null;
|
|
1811
1993
|
}
|
|
@@ -1814,12 +1996,12 @@ var ChartTooltipContent = React17.forwardRef(
|
|
|
1814
1996
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1815
1997
|
const value = !labelKey && typeof label === "string" ? config[label]?.label || label : itemConfig?.label;
|
|
1816
1998
|
if (labelFormatter) {
|
|
1817
|
-
return /* @__PURE__ */
|
|
1999
|
+
return /* @__PURE__ */ jsx18("div", { className: cn(labelClassName), children: labelFormatter(value, payload) });
|
|
1818
2000
|
}
|
|
1819
2001
|
if (!value) {
|
|
1820
2002
|
return null;
|
|
1821
2003
|
}
|
|
1822
|
-
return /* @__PURE__ */
|
|
2004
|
+
return /* @__PURE__ */ jsx18("div", { className: cn(labelClassName), children: value });
|
|
1823
2005
|
}, [
|
|
1824
2006
|
label,
|
|
1825
2007
|
labelFormatter,
|
|
@@ -1833,7 +2015,7 @@ var ChartTooltipContent = React17.forwardRef(
|
|
|
1833
2015
|
return null;
|
|
1834
2016
|
}
|
|
1835
2017
|
const nestLabel = payload.length === 1 && indicator !== "dot";
|
|
1836
|
-
return /* @__PURE__ */
|
|
2018
|
+
return /* @__PURE__ */ jsxs6(
|
|
1837
2019
|
"div",
|
|
1838
2020
|
{
|
|
1839
2021
|
ref,
|
|
@@ -1843,19 +2025,19 @@ var ChartTooltipContent = React17.forwardRef(
|
|
|
1843
2025
|
),
|
|
1844
2026
|
children: [
|
|
1845
2027
|
!nestLabel ? tooltipLabel : null,
|
|
1846
|
-
/* @__PURE__ */
|
|
2028
|
+
/* @__PURE__ */ jsx18("div", { className: "grid gap-1.5", children: payload.filter((item) => item.type !== "none").map((item, index) => {
|
|
1847
2029
|
const key = `${nameKey || item.name || item.dataKey || "value"}`;
|
|
1848
2030
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1849
2031
|
const indicatorColor = color || item.payload.fill || item.color;
|
|
1850
|
-
return /* @__PURE__ */
|
|
2032
|
+
return /* @__PURE__ */ jsx18(
|
|
1851
2033
|
"div",
|
|
1852
2034
|
{
|
|
1853
2035
|
className: cn(
|
|
1854
2036
|
"flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground",
|
|
1855
2037
|
indicator === "dot" && "items-center"
|
|
1856
2038
|
),
|
|
1857
|
-
children: formatter && item?.value !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */
|
|
1858
|
-
itemConfig?.icon ? /* @__PURE__ */
|
|
2039
|
+
children: formatter && item?.value !== void 0 && item.name ? formatter(item.value, item.name, item, index, item.payload) : /* @__PURE__ */ jsxs6(Fragment, { children: [
|
|
2040
|
+
itemConfig?.icon ? /* @__PURE__ */ jsx18(itemConfig.icon, {}) : !hideIndicator && /* @__PURE__ */ jsx18(
|
|
1859
2041
|
"div",
|
|
1860
2042
|
{
|
|
1861
2043
|
className: cn(
|
|
@@ -1873,7 +2055,7 @@ var ChartTooltipContent = React17.forwardRef(
|
|
|
1873
2055
|
}
|
|
1874
2056
|
}
|
|
1875
2057
|
),
|
|
1876
|
-
/* @__PURE__ */
|
|
2058
|
+
/* @__PURE__ */ jsxs6(
|
|
1877
2059
|
"div",
|
|
1878
2060
|
{
|
|
1879
2061
|
className: cn(
|
|
@@ -1881,11 +2063,11 @@ var ChartTooltipContent = React17.forwardRef(
|
|
|
1881
2063
|
nestLabel ? "items-end" : "items-center"
|
|
1882
2064
|
),
|
|
1883
2065
|
children: [
|
|
1884
|
-
/* @__PURE__ */
|
|
2066
|
+
/* @__PURE__ */ jsxs6("div", { className: "grid gap-1.5", children: [
|
|
1885
2067
|
nestLabel ? tooltipLabel : null,
|
|
1886
|
-
/* @__PURE__ */
|
|
2068
|
+
/* @__PURE__ */ jsx18("span", { className: "text-muted-foreground", children: itemConfig?.label || item.name })
|
|
1887
2069
|
] }),
|
|
1888
|
-
item.value && /* @__PURE__ */
|
|
2070
|
+
item.value && /* @__PURE__ */ jsx18("span", { className: "font-mono tabular-nums text-foreground", children: item.value.toLocaleString() })
|
|
1889
2071
|
]
|
|
1890
2072
|
}
|
|
1891
2073
|
)
|
|
@@ -1901,13 +2083,13 @@ var ChartTooltipContent = React17.forwardRef(
|
|
|
1901
2083
|
);
|
|
1902
2084
|
ChartTooltipContent.displayName = "ChartTooltip";
|
|
1903
2085
|
var ChartLegend = RechartsPrimitive.Legend;
|
|
1904
|
-
var ChartLegendContent =
|
|
2086
|
+
var ChartLegendContent = React19.forwardRef(
|
|
1905
2087
|
({ className, hideIcon = false, payload, verticalAlign = "bottom", nameKey }, ref) => {
|
|
1906
2088
|
const { config } = useChart();
|
|
1907
2089
|
if (!payload?.length) {
|
|
1908
2090
|
return null;
|
|
1909
2091
|
}
|
|
1910
|
-
return /* @__PURE__ */
|
|
2092
|
+
return /* @__PURE__ */ jsx18(
|
|
1911
2093
|
"div",
|
|
1912
2094
|
{
|
|
1913
2095
|
ref,
|
|
@@ -1919,14 +2101,14 @@ var ChartLegendContent = React17.forwardRef(
|
|
|
1919
2101
|
children: payload.filter((item) => item.type !== "none").map((item) => {
|
|
1920
2102
|
const key = `${nameKey || item.dataKey || "value"}`;
|
|
1921
2103
|
const itemConfig = getPayloadConfigFromPayload(config, item, key);
|
|
1922
|
-
return /* @__PURE__ */
|
|
2104
|
+
return /* @__PURE__ */ jsxs6(
|
|
1923
2105
|
"div",
|
|
1924
2106
|
{
|
|
1925
2107
|
className: cn(
|
|
1926
2108
|
"flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"
|
|
1927
2109
|
),
|
|
1928
2110
|
children: [
|
|
1929
|
-
itemConfig?.icon && !hideIcon ? /* @__PURE__ */
|
|
2111
|
+
itemConfig?.icon && !hideIcon ? /* @__PURE__ */ jsx18(itemConfig.icon, {}) : /* @__PURE__ */ jsx18(
|
|
1930
2112
|
"div",
|
|
1931
2113
|
{
|
|
1932
2114
|
className: "h-2 w-2 shrink-0 rounded-[2px]",
|
|
@@ -1961,11 +2143,11 @@ function getPayloadConfigFromPayload(config, payload, key) {
|
|
|
1961
2143
|
}
|
|
1962
2144
|
|
|
1963
2145
|
// src/components/ui/checkbox.tsx
|
|
1964
|
-
import * as
|
|
2146
|
+
import * as React20 from "react";
|
|
1965
2147
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
1966
2148
|
import { Check } from "lucide-react";
|
|
1967
|
-
import { jsx as
|
|
1968
|
-
var Checkbox =
|
|
2149
|
+
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
2150
|
+
var Checkbox = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx19(
|
|
1969
2151
|
CheckboxPrimitive.Root,
|
|
1970
2152
|
{
|
|
1971
2153
|
ref,
|
|
@@ -1974,11 +2156,11 @@ var Checkbox = React18.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
1974
2156
|
className
|
|
1975
2157
|
),
|
|
1976
2158
|
...props,
|
|
1977
|
-
children: /* @__PURE__ */
|
|
2159
|
+
children: /* @__PURE__ */ jsx19(
|
|
1978
2160
|
CheckboxPrimitive.Indicator,
|
|
1979
2161
|
{
|
|
1980
2162
|
className: cn("grid place-content-center text-current"),
|
|
1981
|
-
children: /* @__PURE__ */
|
|
2163
|
+
children: /* @__PURE__ */ jsx19(Check, { className: "h-4 w-4" })
|
|
1982
2164
|
}
|
|
1983
2165
|
)
|
|
1984
2166
|
}
|
|
@@ -1992,20 +2174,20 @@ var CollapsibleTrigger2 = CollapsiblePrimitive.CollapsibleTrigger;
|
|
|
1992
2174
|
var CollapsibleContent2 = CollapsiblePrimitive.CollapsibleContent;
|
|
1993
2175
|
|
|
1994
2176
|
// src/components/ui/command.tsx
|
|
1995
|
-
import * as
|
|
2177
|
+
import * as React22 from "react";
|
|
1996
2178
|
import { Command as CommandPrimitive } from "cmdk";
|
|
1997
2179
|
import { Search } from "lucide-react";
|
|
1998
2180
|
|
|
1999
2181
|
// src/components/ui/dialog.tsx
|
|
2000
|
-
import * as
|
|
2182
|
+
import * as React21 from "react";
|
|
2001
2183
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
2002
2184
|
import { X } from "lucide-react";
|
|
2003
|
-
import { jsx as
|
|
2185
|
+
import { jsx as jsx20, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
2004
2186
|
var Dialog = DialogPrimitive.Root;
|
|
2005
2187
|
var DialogTrigger = DialogPrimitive.Trigger;
|
|
2006
2188
|
var DialogPortal = DialogPrimitive.Portal;
|
|
2007
2189
|
var DialogClose = DialogPrimitive.Close;
|
|
2008
|
-
var DialogOverlay =
|
|
2190
|
+
var DialogOverlay = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
|
|
2009
2191
|
DialogPrimitive.Overlay,
|
|
2010
2192
|
{
|
|
2011
2193
|
ref,
|
|
@@ -2017,9 +2199,9 @@ var DialogOverlay = React19.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
2017
2199
|
}
|
|
2018
2200
|
));
|
|
2019
2201
|
DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
|
|
2020
|
-
var DialogContent =
|
|
2021
|
-
/* @__PURE__ */
|
|
2022
|
-
/* @__PURE__ */
|
|
2202
|
+
var DialogContent = React21.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs7(DialogPortal, { children: [
|
|
2203
|
+
/* @__PURE__ */ jsx20(DialogOverlay, {}),
|
|
2204
|
+
/* @__PURE__ */ jsxs7(
|
|
2023
2205
|
DialogPrimitive.Content,
|
|
2024
2206
|
{
|
|
2025
2207
|
ref,
|
|
@@ -2030,9 +2212,9 @@ var DialogContent = React19.forwardRef(({ className, children, ...props }, ref)
|
|
|
2030
2212
|
...props,
|
|
2031
2213
|
children: [
|
|
2032
2214
|
children,
|
|
2033
|
-
/* @__PURE__ */
|
|
2034
|
-
/* @__PURE__ */
|
|
2035
|
-
/* @__PURE__ */
|
|
2215
|
+
/* @__PURE__ */ jsxs7(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
2216
|
+
/* @__PURE__ */ jsx20(X, { className: "h-4 w-4" }),
|
|
2217
|
+
/* @__PURE__ */ jsx20("span", { className: "sr-only", children: "Close" })
|
|
2036
2218
|
] })
|
|
2037
2219
|
]
|
|
2038
2220
|
}
|
|
@@ -2042,7 +2224,7 @@ DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
|
2042
2224
|
var DialogHeader = ({
|
|
2043
2225
|
className,
|
|
2044
2226
|
...props
|
|
2045
|
-
}) => /* @__PURE__ */
|
|
2227
|
+
}) => /* @__PURE__ */ jsx20(
|
|
2046
2228
|
"div",
|
|
2047
2229
|
{
|
|
2048
2230
|
className: cn(
|
|
@@ -2056,7 +2238,7 @@ DialogHeader.displayName = "DialogHeader";
|
|
|
2056
2238
|
var DialogFooter = ({
|
|
2057
2239
|
className,
|
|
2058
2240
|
...props
|
|
2059
|
-
}) => /* @__PURE__ */
|
|
2241
|
+
}) => /* @__PURE__ */ jsx20(
|
|
2060
2242
|
"div",
|
|
2061
2243
|
{
|
|
2062
2244
|
className: cn(
|
|
@@ -2067,7 +2249,7 @@ var DialogFooter = ({
|
|
|
2067
2249
|
}
|
|
2068
2250
|
);
|
|
2069
2251
|
DialogFooter.displayName = "DialogFooter";
|
|
2070
|
-
var DialogTitle =
|
|
2252
|
+
var DialogTitle = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
|
|
2071
2253
|
DialogPrimitive.Title,
|
|
2072
2254
|
{
|
|
2073
2255
|
ref,
|
|
@@ -2079,7 +2261,7 @@ var DialogTitle = React19.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2079
2261
|
}
|
|
2080
2262
|
));
|
|
2081
2263
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
2082
|
-
var DialogDescription =
|
|
2264
|
+
var DialogDescription = React21.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx20(
|
|
2083
2265
|
DialogPrimitive.Description,
|
|
2084
2266
|
{
|
|
2085
2267
|
ref,
|
|
@@ -2090,8 +2272,8 @@ var DialogDescription = React19.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2090
2272
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
2091
2273
|
|
|
2092
2274
|
// src/components/ui/command.tsx
|
|
2093
|
-
import { jsx as
|
|
2094
|
-
var Command =
|
|
2275
|
+
import { jsx as jsx21, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
2276
|
+
var Command = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
2095
2277
|
CommandPrimitive,
|
|
2096
2278
|
{
|
|
2097
2279
|
ref,
|
|
@@ -2104,11 +2286,11 @@ var Command = React20.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
2104
2286
|
));
|
|
2105
2287
|
Command.displayName = CommandPrimitive.displayName;
|
|
2106
2288
|
var CommandDialog = ({ children, ...props }) => {
|
|
2107
|
-
return /* @__PURE__ */
|
|
2289
|
+
return /* @__PURE__ */ jsx21(Dialog, { ...props, children: /* @__PURE__ */ jsx21(DialogContent, { className: "overflow-hidden p-0", children: /* @__PURE__ */ jsx21(Command, { className: "[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children }) }) });
|
|
2108
2290
|
};
|
|
2109
|
-
var CommandInput =
|
|
2110
|
-
/* @__PURE__ */
|
|
2111
|
-
/* @__PURE__ */
|
|
2291
|
+
var CommandInput = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs8("div", { className: "flex items-center border-b border-border px-3", "cmdk-input-wrapper": "", children: [
|
|
2292
|
+
/* @__PURE__ */ jsx21(Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
|
|
2293
|
+
/* @__PURE__ */ jsx21(
|
|
2112
2294
|
CommandPrimitive.Input,
|
|
2113
2295
|
{
|
|
2114
2296
|
ref,
|
|
@@ -2121,7 +2303,7 @@ var CommandInput = React20.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2121
2303
|
)
|
|
2122
2304
|
] }));
|
|
2123
2305
|
CommandInput.displayName = CommandPrimitive.Input.displayName;
|
|
2124
|
-
var CommandList =
|
|
2306
|
+
var CommandList = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
2125
2307
|
CommandPrimitive.List,
|
|
2126
2308
|
{
|
|
2127
2309
|
ref,
|
|
@@ -2130,7 +2312,7 @@ var CommandList = React20.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2130
2312
|
}
|
|
2131
2313
|
));
|
|
2132
2314
|
CommandList.displayName = CommandPrimitive.List.displayName;
|
|
2133
|
-
var CommandEmpty =
|
|
2315
|
+
var CommandEmpty = React22.forwardRef((props, ref) => /* @__PURE__ */ jsx21(
|
|
2134
2316
|
CommandPrimitive.Empty,
|
|
2135
2317
|
{
|
|
2136
2318
|
ref,
|
|
@@ -2139,7 +2321,7 @@ var CommandEmpty = React20.forwardRef((props, ref) => /* @__PURE__ */ jsx19(
|
|
|
2139
2321
|
}
|
|
2140
2322
|
));
|
|
2141
2323
|
CommandEmpty.displayName = CommandPrimitive.Empty.displayName;
|
|
2142
|
-
var CommandGroup =
|
|
2324
|
+
var CommandGroup = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
2143
2325
|
CommandPrimitive.Group,
|
|
2144
2326
|
{
|
|
2145
2327
|
ref,
|
|
@@ -2151,7 +2333,7 @@ var CommandGroup = React20.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
2151
2333
|
}
|
|
2152
2334
|
));
|
|
2153
2335
|
CommandGroup.displayName = CommandPrimitive.Group.displayName;
|
|
2154
|
-
var CommandSeparator =
|
|
2336
|
+
var CommandSeparator = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
2155
2337
|
CommandPrimitive.Separator,
|
|
2156
2338
|
{
|
|
2157
2339
|
ref,
|
|
@@ -2160,7 +2342,7 @@ var CommandSeparator = React20.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
2160
2342
|
}
|
|
2161
2343
|
));
|
|
2162
2344
|
CommandSeparator.displayName = CommandPrimitive.Separator.displayName;
|
|
2163
|
-
var CommandItem =
|
|
2345
|
+
var CommandItem = React22.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx21(
|
|
2164
2346
|
CommandPrimitive.Item,
|
|
2165
2347
|
{
|
|
2166
2348
|
ref,
|
|
@@ -2176,7 +2358,7 @@ var CommandShortcut = ({
|
|
|
2176
2358
|
className,
|
|
2177
2359
|
...props
|
|
2178
2360
|
}) => {
|
|
2179
|
-
return /* @__PURE__ */
|
|
2361
|
+
return /* @__PURE__ */ jsx21(
|
|
2180
2362
|
"span",
|
|
2181
2363
|
{
|
|
2182
2364
|
className: cn(
|
|
@@ -2190,17 +2372,17 @@ var CommandShortcut = ({
|
|
|
2190
2372
|
CommandShortcut.displayName = "CommandShortcut";
|
|
2191
2373
|
|
|
2192
2374
|
// src/components/ui/context-menu.tsx
|
|
2193
|
-
import * as
|
|
2375
|
+
import * as React23 from "react";
|
|
2194
2376
|
import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
|
|
2195
2377
|
import { Check as Check2, ChevronRight as ChevronRight2, Circle } from "lucide-react";
|
|
2196
|
-
import { jsx as
|
|
2378
|
+
import { jsx as jsx22, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
2197
2379
|
var ContextMenu = ContextMenuPrimitive.Root;
|
|
2198
2380
|
var ContextMenuTrigger = ContextMenuPrimitive.Trigger;
|
|
2199
2381
|
var ContextMenuGroup = ContextMenuPrimitive.Group;
|
|
2200
2382
|
var ContextMenuPortal = ContextMenuPrimitive.Portal;
|
|
2201
2383
|
var ContextMenuSub = ContextMenuPrimitive.Sub;
|
|
2202
2384
|
var ContextMenuRadioGroup = ContextMenuPrimitive.RadioGroup;
|
|
2203
|
-
var ContextMenuSubTrigger =
|
|
2385
|
+
var ContextMenuSubTrigger = React23.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs9(
|
|
2204
2386
|
ContextMenuPrimitive.SubTrigger,
|
|
2205
2387
|
{
|
|
2206
2388
|
ref,
|
|
@@ -2212,12 +2394,12 @@ var ContextMenuSubTrigger = React21.forwardRef(({ className, inset, children, ..
|
|
|
2212
2394
|
...props,
|
|
2213
2395
|
children: [
|
|
2214
2396
|
children,
|
|
2215
|
-
/* @__PURE__ */
|
|
2397
|
+
/* @__PURE__ */ jsx22(ChevronRight2, { className: "ml-auto h-4 w-4" })
|
|
2216
2398
|
]
|
|
2217
2399
|
}
|
|
2218
2400
|
));
|
|
2219
2401
|
ContextMenuSubTrigger.displayName = ContextMenuPrimitive.SubTrigger.displayName;
|
|
2220
|
-
var ContextMenuSubContent =
|
|
2402
|
+
var ContextMenuSubContent = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
|
|
2221
2403
|
ContextMenuPrimitive.SubContent,
|
|
2222
2404
|
{
|
|
2223
2405
|
ref,
|
|
@@ -2229,7 +2411,7 @@ var ContextMenuSubContent = React21.forwardRef(({ className, ...props }, ref) =>
|
|
|
2229
2411
|
}
|
|
2230
2412
|
));
|
|
2231
2413
|
ContextMenuSubContent.displayName = ContextMenuPrimitive.SubContent.displayName;
|
|
2232
|
-
var ContextMenuContent =
|
|
2414
|
+
var ContextMenuContent = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx22(
|
|
2233
2415
|
ContextMenuPrimitive.Content,
|
|
2234
2416
|
{
|
|
2235
2417
|
ref,
|
|
@@ -2241,7 +2423,7 @@ var ContextMenuContent = React21.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2241
2423
|
}
|
|
2242
2424
|
) }));
|
|
2243
2425
|
ContextMenuContent.displayName = ContextMenuPrimitive.Content.displayName;
|
|
2244
|
-
var ContextMenuItem =
|
|
2426
|
+
var ContextMenuItem = React23.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx22(
|
|
2245
2427
|
ContextMenuPrimitive.Item,
|
|
2246
2428
|
{
|
|
2247
2429
|
ref,
|
|
@@ -2254,7 +2436,7 @@ var ContextMenuItem = React21.forwardRef(({ className, inset, ...props }, ref) =
|
|
|
2254
2436
|
}
|
|
2255
2437
|
));
|
|
2256
2438
|
ContextMenuItem.displayName = ContextMenuPrimitive.Item.displayName;
|
|
2257
|
-
var ContextMenuCheckboxItem =
|
|
2439
|
+
var ContextMenuCheckboxItem = React23.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs9(
|
|
2258
2440
|
ContextMenuPrimitive.CheckboxItem,
|
|
2259
2441
|
{
|
|
2260
2442
|
ref,
|
|
@@ -2265,13 +2447,13 @@ var ContextMenuCheckboxItem = React21.forwardRef(({ className, children, checked
|
|
|
2265
2447
|
checked,
|
|
2266
2448
|
...props,
|
|
2267
2449
|
children: [
|
|
2268
|
-
/* @__PURE__ */
|
|
2450
|
+
/* @__PURE__ */ jsx22("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx22(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx22(Check2, { className: "h-4 w-4" }) }) }),
|
|
2269
2451
|
children
|
|
2270
2452
|
]
|
|
2271
2453
|
}
|
|
2272
2454
|
));
|
|
2273
2455
|
ContextMenuCheckboxItem.displayName = ContextMenuPrimitive.CheckboxItem.displayName;
|
|
2274
|
-
var ContextMenuRadioItem =
|
|
2456
|
+
var ContextMenuRadioItem = React23.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs9(
|
|
2275
2457
|
ContextMenuPrimitive.RadioItem,
|
|
2276
2458
|
{
|
|
2277
2459
|
ref,
|
|
@@ -2281,13 +2463,13 @@ var ContextMenuRadioItem = React21.forwardRef(({ className, children, ...props }
|
|
|
2281
2463
|
),
|
|
2282
2464
|
...props,
|
|
2283
2465
|
children: [
|
|
2284
|
-
/* @__PURE__ */
|
|
2466
|
+
/* @__PURE__ */ jsx22("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx22(ContextMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx22(Circle, { className: "h-4 w-4 fill-current" }) }) }),
|
|
2285
2467
|
children
|
|
2286
2468
|
]
|
|
2287
2469
|
}
|
|
2288
2470
|
));
|
|
2289
2471
|
ContextMenuRadioItem.displayName = ContextMenuPrimitive.RadioItem.displayName;
|
|
2290
|
-
var ContextMenuLabel =
|
|
2472
|
+
var ContextMenuLabel = React23.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx22(
|
|
2291
2473
|
ContextMenuPrimitive.Label,
|
|
2292
2474
|
{
|
|
2293
2475
|
ref,
|
|
@@ -2300,7 +2482,7 @@ var ContextMenuLabel = React21.forwardRef(({ className, inset, ...props }, ref)
|
|
|
2300
2482
|
}
|
|
2301
2483
|
));
|
|
2302
2484
|
ContextMenuLabel.displayName = ContextMenuPrimitive.Label.displayName;
|
|
2303
|
-
var ContextMenuSeparator =
|
|
2485
|
+
var ContextMenuSeparator = React23.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx22(
|
|
2304
2486
|
ContextMenuPrimitive.Separator,
|
|
2305
2487
|
{
|
|
2306
2488
|
ref,
|
|
@@ -2313,7 +2495,7 @@ var ContextMenuShortcut = ({
|
|
|
2313
2495
|
className,
|
|
2314
2496
|
...props
|
|
2315
2497
|
}) => {
|
|
2316
|
-
return /* @__PURE__ */
|
|
2498
|
+
return /* @__PURE__ */ jsx22(
|
|
2317
2499
|
"span",
|
|
2318
2500
|
{
|
|
2319
2501
|
className: cn(
|
|
@@ -2327,13 +2509,13 @@ var ContextMenuShortcut = ({
|
|
|
2327
2509
|
ContextMenuShortcut.displayName = "ContextMenuShortcut";
|
|
2328
2510
|
|
|
2329
2511
|
// src/components/ui/drawer.tsx
|
|
2330
|
-
import * as
|
|
2512
|
+
import * as React24 from "react";
|
|
2331
2513
|
import { Drawer as DrawerPrimitive } from "vaul";
|
|
2332
|
-
import { jsx as
|
|
2514
|
+
import { jsx as jsx23, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
2333
2515
|
var Drawer = ({
|
|
2334
2516
|
shouldScaleBackground = true,
|
|
2335
2517
|
...props
|
|
2336
|
-
}) => /* @__PURE__ */
|
|
2518
|
+
}) => /* @__PURE__ */ jsx23(
|
|
2337
2519
|
DrawerPrimitive.Root,
|
|
2338
2520
|
{
|
|
2339
2521
|
shouldScaleBackground,
|
|
@@ -2344,7 +2526,7 @@ Drawer.displayName = "Drawer";
|
|
|
2344
2526
|
var DrawerTrigger = DrawerPrimitive.Trigger;
|
|
2345
2527
|
var DrawerPortal = DrawerPrimitive.Portal;
|
|
2346
2528
|
var DrawerClose = DrawerPrimitive.Close;
|
|
2347
|
-
var DrawerOverlay =
|
|
2529
|
+
var DrawerOverlay = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
2348
2530
|
DrawerPrimitive.Overlay,
|
|
2349
2531
|
{
|
|
2350
2532
|
ref,
|
|
@@ -2353,9 +2535,9 @@ var DrawerOverlay = React22.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
2353
2535
|
}
|
|
2354
2536
|
));
|
|
2355
2537
|
DrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName;
|
|
2356
|
-
var DrawerContent =
|
|
2357
|
-
/* @__PURE__ */
|
|
2358
|
-
/* @__PURE__ */
|
|
2538
|
+
var DrawerContent = React24.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs10(DrawerPortal, { children: [
|
|
2539
|
+
/* @__PURE__ */ jsx23(DrawerOverlay, {}),
|
|
2540
|
+
/* @__PURE__ */ jsxs10(
|
|
2359
2541
|
DrawerPrimitive.Content,
|
|
2360
2542
|
{
|
|
2361
2543
|
ref,
|
|
@@ -2365,7 +2547,7 @@ var DrawerContent = React22.forwardRef(({ className, children, ...props }, ref)
|
|
|
2365
2547
|
),
|
|
2366
2548
|
...props,
|
|
2367
2549
|
children: [
|
|
2368
|
-
/* @__PURE__ */
|
|
2550
|
+
/* @__PURE__ */ jsx23("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
|
|
2369
2551
|
children
|
|
2370
2552
|
]
|
|
2371
2553
|
}
|
|
@@ -2375,7 +2557,7 @@ DrawerContent.displayName = "DrawerContent";
|
|
|
2375
2557
|
var DrawerHeader = ({
|
|
2376
2558
|
className,
|
|
2377
2559
|
...props
|
|
2378
|
-
}) => /* @__PURE__ */
|
|
2560
|
+
}) => /* @__PURE__ */ jsx23(
|
|
2379
2561
|
"div",
|
|
2380
2562
|
{
|
|
2381
2563
|
className: cn("grid gap-1.5 p-4 text-center sm:text-left", className),
|
|
@@ -2386,7 +2568,7 @@ DrawerHeader.displayName = "DrawerHeader";
|
|
|
2386
2568
|
var DrawerFooter = ({
|
|
2387
2569
|
className,
|
|
2388
2570
|
...props
|
|
2389
|
-
}) => /* @__PURE__ */
|
|
2571
|
+
}) => /* @__PURE__ */ jsx23(
|
|
2390
2572
|
"div",
|
|
2391
2573
|
{
|
|
2392
2574
|
className: cn("mt-auto flex flex-col gap-2 p-4", className),
|
|
@@ -2394,7 +2576,7 @@ var DrawerFooter = ({
|
|
|
2394
2576
|
}
|
|
2395
2577
|
);
|
|
2396
2578
|
DrawerFooter.displayName = "DrawerFooter";
|
|
2397
|
-
var DrawerTitle =
|
|
2579
|
+
var DrawerTitle = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
2398
2580
|
DrawerPrimitive.Title,
|
|
2399
2581
|
{
|
|
2400
2582
|
ref,
|
|
@@ -2406,7 +2588,7 @@ var DrawerTitle = React22.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
2406
2588
|
}
|
|
2407
2589
|
));
|
|
2408
2590
|
DrawerTitle.displayName = DrawerPrimitive.Title.displayName;
|
|
2409
|
-
var DrawerDescription =
|
|
2591
|
+
var DrawerDescription = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx23(
|
|
2410
2592
|
DrawerPrimitive.Description,
|
|
2411
2593
|
{
|
|
2412
2594
|
ref,
|
|
@@ -2417,17 +2599,17 @@ var DrawerDescription = React22.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2417
2599
|
DrawerDescription.displayName = DrawerPrimitive.Description.displayName;
|
|
2418
2600
|
|
|
2419
2601
|
// src/components/ui/dropdown-menu.tsx
|
|
2420
|
-
import * as
|
|
2602
|
+
import * as React25 from "react";
|
|
2421
2603
|
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
|
|
2422
2604
|
import { Check as Check3, ChevronRight as ChevronRight3, Circle as Circle2 } from "lucide-react";
|
|
2423
|
-
import { jsx as
|
|
2605
|
+
import { jsx as jsx24, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2424
2606
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
2425
2607
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
2426
2608
|
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
2427
2609
|
var DropdownMenuPortal = DropdownMenuPrimitive.Portal;
|
|
2428
2610
|
var DropdownMenuSub = DropdownMenuPrimitive.Sub;
|
|
2429
2611
|
var DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;
|
|
2430
|
-
var DropdownMenuSubTrigger =
|
|
2612
|
+
var DropdownMenuSubTrigger = React25.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs11(
|
|
2431
2613
|
DropdownMenuPrimitive.SubTrigger,
|
|
2432
2614
|
{
|
|
2433
2615
|
ref,
|
|
@@ -2439,12 +2621,12 @@ var DropdownMenuSubTrigger = React23.forwardRef(({ className, inset, children, .
|
|
|
2439
2621
|
...props,
|
|
2440
2622
|
children: [
|
|
2441
2623
|
children,
|
|
2442
|
-
/* @__PURE__ */
|
|
2624
|
+
/* @__PURE__ */ jsx24(ChevronRight3, { className: "ml-auto" })
|
|
2443
2625
|
]
|
|
2444
2626
|
}
|
|
2445
2627
|
));
|
|
2446
2628
|
DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
|
|
2447
|
-
var DropdownMenuSubContent =
|
|
2629
|
+
var DropdownMenuSubContent = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
2448
2630
|
DropdownMenuPrimitive.SubContent,
|
|
2449
2631
|
{
|
|
2450
2632
|
ref,
|
|
@@ -2456,7 +2638,7 @@ var DropdownMenuSubContent = React23.forwardRef(({ className, ...props }, ref) =
|
|
|
2456
2638
|
}
|
|
2457
2639
|
));
|
|
2458
2640
|
DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
|
|
2459
|
-
var DropdownMenuContent =
|
|
2641
|
+
var DropdownMenuContent = React25.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx24(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx24(
|
|
2460
2642
|
DropdownMenuPrimitive.Content,
|
|
2461
2643
|
{
|
|
2462
2644
|
ref,
|
|
@@ -2470,7 +2652,7 @@ var DropdownMenuContent = React23.forwardRef(({ className, sideOffset = 4, ...pr
|
|
|
2470
2652
|
}
|
|
2471
2653
|
) }));
|
|
2472
2654
|
DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
2473
|
-
var DropdownMenuItem =
|
|
2655
|
+
var DropdownMenuItem = React25.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
2474
2656
|
DropdownMenuPrimitive.Item,
|
|
2475
2657
|
{
|
|
2476
2658
|
ref,
|
|
@@ -2483,7 +2665,7 @@ var DropdownMenuItem = React23.forwardRef(({ className, inset, ...props }, ref)
|
|
|
2483
2665
|
}
|
|
2484
2666
|
));
|
|
2485
2667
|
DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
|
|
2486
|
-
var DropdownMenuCheckboxItem =
|
|
2668
|
+
var DropdownMenuCheckboxItem = React25.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs11(
|
|
2487
2669
|
DropdownMenuPrimitive.CheckboxItem,
|
|
2488
2670
|
{
|
|
2489
2671
|
ref,
|
|
@@ -2494,13 +2676,13 @@ var DropdownMenuCheckboxItem = React23.forwardRef(({ className, children, checke
|
|
|
2494
2676
|
checked,
|
|
2495
2677
|
...props,
|
|
2496
2678
|
children: [
|
|
2497
|
-
/* @__PURE__ */
|
|
2679
|
+
/* @__PURE__ */ jsx24("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx24(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx24(Check3, { className: "h-4 w-4" }) }) }),
|
|
2498
2680
|
children
|
|
2499
2681
|
]
|
|
2500
2682
|
}
|
|
2501
2683
|
));
|
|
2502
2684
|
DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
|
|
2503
|
-
var DropdownMenuRadioItem =
|
|
2685
|
+
var DropdownMenuRadioItem = React25.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs11(
|
|
2504
2686
|
DropdownMenuPrimitive.RadioItem,
|
|
2505
2687
|
{
|
|
2506
2688
|
ref,
|
|
@@ -2510,13 +2692,13 @@ var DropdownMenuRadioItem = React23.forwardRef(({ className, children, ...props
|
|
|
2510
2692
|
),
|
|
2511
2693
|
...props,
|
|
2512
2694
|
children: [
|
|
2513
|
-
/* @__PURE__ */
|
|
2695
|
+
/* @__PURE__ */ jsx24("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx24(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx24(Circle2, { className: "h-2 w-2 fill-current" }) }) }),
|
|
2514
2696
|
children
|
|
2515
2697
|
]
|
|
2516
2698
|
}
|
|
2517
2699
|
));
|
|
2518
2700
|
DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
|
|
2519
|
-
var DropdownMenuLabel =
|
|
2701
|
+
var DropdownMenuLabel = React25.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
2520
2702
|
DropdownMenuPrimitive.Label,
|
|
2521
2703
|
{
|
|
2522
2704
|
ref,
|
|
@@ -2529,7 +2711,7 @@ var DropdownMenuLabel = React23.forwardRef(({ className, inset, ...props }, ref)
|
|
|
2529
2711
|
}
|
|
2530
2712
|
));
|
|
2531
2713
|
DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
|
|
2532
|
-
var DropdownMenuSeparator =
|
|
2714
|
+
var DropdownMenuSeparator = React25.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx24(
|
|
2533
2715
|
DropdownMenuPrimitive.Separator,
|
|
2534
2716
|
{
|
|
2535
2717
|
ref,
|
|
@@ -2542,7 +2724,7 @@ var DropdownMenuShortcut = ({
|
|
|
2542
2724
|
className,
|
|
2543
2725
|
...props
|
|
2544
2726
|
}) => {
|
|
2545
|
-
return /* @__PURE__ */
|
|
2727
|
+
return /* @__PURE__ */ jsx24(
|
|
2546
2728
|
"span",
|
|
2547
2729
|
{
|
|
2548
2730
|
className: cn("ml-auto text-xs tracking-widest opacity-60", className),
|
|
@@ -2553,7 +2735,7 @@ var DropdownMenuShortcut = ({
|
|
|
2553
2735
|
DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
|
|
2554
2736
|
|
|
2555
2737
|
// src/components/ui/form.tsx
|
|
2556
|
-
import * as
|
|
2738
|
+
import * as React27 from "react";
|
|
2557
2739
|
import { Slot as Slot3 } from "@radix-ui/react-slot";
|
|
2558
2740
|
import {
|
|
2559
2741
|
Controller,
|
|
@@ -2562,14 +2744,14 @@ import {
|
|
|
2562
2744
|
} from "react-hook-form";
|
|
2563
2745
|
|
|
2564
2746
|
// src/components/ui/label.tsx
|
|
2565
|
-
import * as
|
|
2747
|
+
import * as React26 from "react";
|
|
2566
2748
|
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
2567
|
-
import { cva as
|
|
2568
|
-
import { jsx as
|
|
2569
|
-
var labelVariants =
|
|
2749
|
+
import { cva as cva10 } from "class-variance-authority";
|
|
2750
|
+
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
2751
|
+
var labelVariants = cva10(
|
|
2570
2752
|
"text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
2571
2753
|
);
|
|
2572
|
-
var Label3 =
|
|
2754
|
+
var Label3 = React26.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx25(
|
|
2573
2755
|
LabelPrimitive.Root,
|
|
2574
2756
|
{
|
|
2575
2757
|
ref,
|
|
@@ -2580,17 +2762,17 @@ var Label3 = React24.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
2580
2762
|
Label3.displayName = LabelPrimitive.Root.displayName;
|
|
2581
2763
|
|
|
2582
2764
|
// src/components/ui/form.tsx
|
|
2583
|
-
import { jsx as
|
|
2765
|
+
import { jsx as jsx26 } from "react/jsx-runtime";
|
|
2584
2766
|
var Form = FormProvider;
|
|
2585
|
-
var FormFieldContext =
|
|
2767
|
+
var FormFieldContext = React27.createContext(null);
|
|
2586
2768
|
var FormField = ({
|
|
2587
2769
|
...props
|
|
2588
2770
|
}) => {
|
|
2589
|
-
return /* @__PURE__ */
|
|
2771
|
+
return /* @__PURE__ */ jsx26(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx26(Controller, { ...props }) });
|
|
2590
2772
|
};
|
|
2591
2773
|
var useFormField = () => {
|
|
2592
|
-
const fieldContext =
|
|
2593
|
-
const itemContext =
|
|
2774
|
+
const fieldContext = React27.useContext(FormFieldContext);
|
|
2775
|
+
const itemContext = React27.useContext(FormItemContext);
|
|
2594
2776
|
const { getFieldState, formState } = useFormContext();
|
|
2595
2777
|
if (!fieldContext) {
|
|
2596
2778
|
throw new Error("useFormField should be used within <FormField>");
|
|
@@ -2609,15 +2791,15 @@ var useFormField = () => {
|
|
|
2609
2791
|
...fieldState
|
|
2610
2792
|
};
|
|
2611
2793
|
};
|
|
2612
|
-
var FormItemContext =
|
|
2613
|
-
var FormItem =
|
|
2614
|
-
const id =
|
|
2615
|
-
return /* @__PURE__ */
|
|
2794
|
+
var FormItemContext = React27.createContext(null);
|
|
2795
|
+
var FormItem = React27.forwardRef(({ className, ...props }, ref) => {
|
|
2796
|
+
const id = React27.useId();
|
|
2797
|
+
return /* @__PURE__ */ jsx26(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx26("div", { ref, className: cn("space-y-2", className), ...props }) });
|
|
2616
2798
|
});
|
|
2617
2799
|
FormItem.displayName = "FormItem";
|
|
2618
|
-
var FormLabel =
|
|
2800
|
+
var FormLabel = React27.forwardRef(({ className, ...props }, ref) => {
|
|
2619
2801
|
const { error, formItemId } = useFormField();
|
|
2620
|
-
return /* @__PURE__ */
|
|
2802
|
+
return /* @__PURE__ */ jsx26(
|
|
2621
2803
|
Label3,
|
|
2622
2804
|
{
|
|
2623
2805
|
ref,
|
|
@@ -2628,9 +2810,9 @@ var FormLabel = React25.forwardRef(({ className, ...props }, ref) => {
|
|
|
2628
2810
|
);
|
|
2629
2811
|
});
|
|
2630
2812
|
FormLabel.displayName = "FormLabel";
|
|
2631
|
-
var FormControl =
|
|
2813
|
+
var FormControl = React27.forwardRef(({ ...props }, ref) => {
|
|
2632
2814
|
const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
|
|
2633
|
-
return /* @__PURE__ */
|
|
2815
|
+
return /* @__PURE__ */ jsx26(
|
|
2634
2816
|
Slot3,
|
|
2635
2817
|
{
|
|
2636
2818
|
ref,
|
|
@@ -2642,9 +2824,9 @@ var FormControl = React25.forwardRef(({ ...props }, ref) => {
|
|
|
2642
2824
|
);
|
|
2643
2825
|
});
|
|
2644
2826
|
FormControl.displayName = "FormControl";
|
|
2645
|
-
var FormDescription =
|
|
2827
|
+
var FormDescription = React27.forwardRef(({ className, ...props }, ref) => {
|
|
2646
2828
|
const { formDescriptionId } = useFormField();
|
|
2647
|
-
return /* @__PURE__ */
|
|
2829
|
+
return /* @__PURE__ */ jsx26(
|
|
2648
2830
|
"p",
|
|
2649
2831
|
{
|
|
2650
2832
|
ref,
|
|
@@ -2655,13 +2837,13 @@ var FormDescription = React25.forwardRef(({ className, ...props }, ref) => {
|
|
|
2655
2837
|
);
|
|
2656
2838
|
});
|
|
2657
2839
|
FormDescription.displayName = "FormDescription";
|
|
2658
|
-
var FormMessage =
|
|
2840
|
+
var FormMessage = React27.forwardRef(({ className, children, ...props }, ref) => {
|
|
2659
2841
|
const { error, formMessageId } = useFormField();
|
|
2660
2842
|
const body = error ? String(error?.message ?? "") : children;
|
|
2661
2843
|
if (!body) {
|
|
2662
2844
|
return null;
|
|
2663
2845
|
}
|
|
2664
|
-
return /* @__PURE__ */
|
|
2846
|
+
return /* @__PURE__ */ jsx26(
|
|
2665
2847
|
"p",
|
|
2666
2848
|
{
|
|
2667
2849
|
ref,
|
|
@@ -2675,12 +2857,12 @@ var FormMessage = React25.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
2675
2857
|
FormMessage.displayName = "FormMessage";
|
|
2676
2858
|
|
|
2677
2859
|
// src/components/ui/hover-card.tsx
|
|
2678
|
-
import * as
|
|
2860
|
+
import * as React28 from "react";
|
|
2679
2861
|
import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
|
|
2680
|
-
import { jsx as
|
|
2862
|
+
import { jsx as jsx27 } from "react/jsx-runtime";
|
|
2681
2863
|
var HoverCard = HoverCardPrimitive.Root;
|
|
2682
2864
|
var HoverCardTrigger = HoverCardPrimitive.Trigger;
|
|
2683
|
-
var HoverCardContent =
|
|
2865
|
+
var HoverCardContent = React28.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx27(
|
|
2684
2866
|
HoverCardPrimitive.Content,
|
|
2685
2867
|
{
|
|
2686
2868
|
ref,
|
|
@@ -2696,11 +2878,11 @@ var HoverCardContent = React26.forwardRef(({ className, align = "center", sideOf
|
|
|
2696
2878
|
HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
|
|
2697
2879
|
|
|
2698
2880
|
// src/components/ui/input.tsx
|
|
2699
|
-
import * as
|
|
2700
|
-
import { jsx as
|
|
2701
|
-
var Input =
|
|
2881
|
+
import * as React29 from "react";
|
|
2882
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
2883
|
+
var Input = React29.forwardRef(
|
|
2702
2884
|
({ className, type, ...props }, ref) => {
|
|
2703
|
-
return /* @__PURE__ */
|
|
2885
|
+
return /* @__PURE__ */ jsx28(
|
|
2704
2886
|
"input",
|
|
2705
2887
|
{
|
|
2706
2888
|
type,
|
|
@@ -2717,11 +2899,11 @@ var Input = React27.forwardRef(
|
|
|
2717
2899
|
Input.displayName = "Input";
|
|
2718
2900
|
|
|
2719
2901
|
// src/components/ui/input-otp.tsx
|
|
2720
|
-
import * as
|
|
2902
|
+
import * as React30 from "react";
|
|
2721
2903
|
import { OTPInput, OTPInputContext } from "input-otp";
|
|
2722
2904
|
import { Minus } from "lucide-react";
|
|
2723
|
-
import { jsx as
|
|
2724
|
-
var InputOTP =
|
|
2905
|
+
import { jsx as jsx29, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2906
|
+
var InputOTP = React30.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx29(
|
|
2725
2907
|
OTPInput,
|
|
2726
2908
|
{
|
|
2727
2909
|
ref,
|
|
@@ -2734,12 +2916,12 @@ var InputOTP = React28.forwardRef(({ className, containerClassName, ...props },
|
|
|
2734
2916
|
}
|
|
2735
2917
|
));
|
|
2736
2918
|
InputOTP.displayName = "InputOTP";
|
|
2737
|
-
var InputOTPGroup =
|
|
2919
|
+
var InputOTPGroup = React30.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx29("div", { ref, className: cn("flex items-center", className), ...props }));
|
|
2738
2920
|
InputOTPGroup.displayName = "InputOTPGroup";
|
|
2739
|
-
var InputOTPSlot =
|
|
2740
|
-
const inputOTPContext =
|
|
2921
|
+
var InputOTPSlot = React30.forwardRef(({ index, className, ...props }, ref) => {
|
|
2922
|
+
const inputOTPContext = React30.useContext(OTPInputContext);
|
|
2741
2923
|
const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
|
|
2742
|
-
return /* @__PURE__ */
|
|
2924
|
+
return /* @__PURE__ */ jsxs12(
|
|
2743
2925
|
"div",
|
|
2744
2926
|
{
|
|
2745
2927
|
ref,
|
|
@@ -2751,46 +2933,46 @@ var InputOTPSlot = React28.forwardRef(({ index, className, ...props }, ref) => {
|
|
|
2751
2933
|
...props,
|
|
2752
2934
|
children: [
|
|
2753
2935
|
char,
|
|
2754
|
-
hasFakeCaret && /* @__PURE__ */
|
|
2936
|
+
hasFakeCaret && /* @__PURE__ */ jsx29("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx29("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) })
|
|
2755
2937
|
]
|
|
2756
2938
|
}
|
|
2757
2939
|
);
|
|
2758
2940
|
});
|
|
2759
2941
|
InputOTPSlot.displayName = "InputOTPSlot";
|
|
2760
|
-
var InputOTPSeparator =
|
|
2942
|
+
var InputOTPSeparator = React30.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx29("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ jsx29(Minus, {}) }));
|
|
2761
2943
|
InputOTPSeparator.displayName = "InputOTPSeparator";
|
|
2762
2944
|
|
|
2763
2945
|
// src/components/ui/menubar.tsx
|
|
2764
|
-
import * as
|
|
2946
|
+
import * as React31 from "react";
|
|
2765
2947
|
import * as MenubarPrimitive from "@radix-ui/react-menubar";
|
|
2766
2948
|
import { Check as Check4, ChevronRight as ChevronRight4, Circle as Circle3 } from "lucide-react";
|
|
2767
|
-
import { jsx as
|
|
2949
|
+
import { jsx as jsx30, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2768
2950
|
function MenubarMenu({
|
|
2769
2951
|
...props
|
|
2770
2952
|
}) {
|
|
2771
|
-
return /* @__PURE__ */
|
|
2953
|
+
return /* @__PURE__ */ jsx30(MenubarPrimitive.Menu, { ...props });
|
|
2772
2954
|
}
|
|
2773
2955
|
function MenubarGroup({
|
|
2774
2956
|
...props
|
|
2775
2957
|
}) {
|
|
2776
|
-
return /* @__PURE__ */
|
|
2958
|
+
return /* @__PURE__ */ jsx30(MenubarPrimitive.Group, { ...props });
|
|
2777
2959
|
}
|
|
2778
2960
|
function MenubarPortal({
|
|
2779
2961
|
...props
|
|
2780
2962
|
}) {
|
|
2781
|
-
return /* @__PURE__ */
|
|
2963
|
+
return /* @__PURE__ */ jsx30(MenubarPrimitive.Portal, { ...props });
|
|
2782
2964
|
}
|
|
2783
2965
|
function MenubarRadioGroup({
|
|
2784
2966
|
...props
|
|
2785
2967
|
}) {
|
|
2786
|
-
return /* @__PURE__ */
|
|
2968
|
+
return /* @__PURE__ */ jsx30(MenubarPrimitive.RadioGroup, { ...props });
|
|
2787
2969
|
}
|
|
2788
2970
|
function MenubarSub({
|
|
2789
2971
|
...props
|
|
2790
2972
|
}) {
|
|
2791
|
-
return /* @__PURE__ */
|
|
2973
|
+
return /* @__PURE__ */ jsx30(MenubarPrimitive.Sub, { "data-slot": "menubar-sub", ...props });
|
|
2792
2974
|
}
|
|
2793
|
-
var Menubar =
|
|
2975
|
+
var Menubar = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
2794
2976
|
MenubarPrimitive.Root,
|
|
2795
2977
|
{
|
|
2796
2978
|
ref,
|
|
@@ -2802,7 +2984,7 @@ var Menubar = React29.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
2802
2984
|
}
|
|
2803
2985
|
));
|
|
2804
2986
|
Menubar.displayName = MenubarPrimitive.Root.displayName;
|
|
2805
|
-
var MenubarTrigger =
|
|
2987
|
+
var MenubarTrigger = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
2806
2988
|
MenubarPrimitive.Trigger,
|
|
2807
2989
|
{
|
|
2808
2990
|
ref,
|
|
@@ -2814,7 +2996,7 @@ var MenubarTrigger = React29.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
2814
2996
|
}
|
|
2815
2997
|
));
|
|
2816
2998
|
MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
|
|
2817
|
-
var MenubarSubTrigger =
|
|
2999
|
+
var MenubarSubTrigger = React31.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs13(
|
|
2818
3000
|
MenubarPrimitive.SubTrigger,
|
|
2819
3001
|
{
|
|
2820
3002
|
ref,
|
|
@@ -2826,12 +3008,12 @@ var MenubarSubTrigger = React29.forwardRef(({ className, inset, children, ...pro
|
|
|
2826
3008
|
...props,
|
|
2827
3009
|
children: [
|
|
2828
3010
|
children,
|
|
2829
|
-
/* @__PURE__ */
|
|
3011
|
+
/* @__PURE__ */ jsx30(ChevronRight4, { className: "ml-auto h-4 w-4" })
|
|
2830
3012
|
]
|
|
2831
3013
|
}
|
|
2832
3014
|
));
|
|
2833
3015
|
MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
|
|
2834
|
-
var MenubarSubContent =
|
|
3016
|
+
var MenubarSubContent = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
2835
3017
|
MenubarPrimitive.SubContent,
|
|
2836
3018
|
{
|
|
2837
3019
|
ref,
|
|
@@ -2843,8 +3025,8 @@ var MenubarSubContent = React29.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2843
3025
|
}
|
|
2844
3026
|
));
|
|
2845
3027
|
MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
|
|
2846
|
-
var MenubarContent =
|
|
2847
|
-
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */
|
|
3028
|
+
var MenubarContent = React31.forwardRef(
|
|
3029
|
+
({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ jsx30(MenubarPrimitive.Portal, { children: /* @__PURE__ */ jsx30(
|
|
2848
3030
|
MenubarPrimitive.Content,
|
|
2849
3031
|
{
|
|
2850
3032
|
ref,
|
|
@@ -2860,7 +3042,7 @@ var MenubarContent = React29.forwardRef(
|
|
|
2860
3042
|
) })
|
|
2861
3043
|
);
|
|
2862
3044
|
MenubarContent.displayName = MenubarPrimitive.Content.displayName;
|
|
2863
|
-
var MenubarItem =
|
|
3045
|
+
var MenubarItem = React31.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
2864
3046
|
MenubarPrimitive.Item,
|
|
2865
3047
|
{
|
|
2866
3048
|
ref,
|
|
@@ -2873,7 +3055,7 @@ var MenubarItem = React29.forwardRef(({ className, inset, ...props }, ref) => /*
|
|
|
2873
3055
|
}
|
|
2874
3056
|
));
|
|
2875
3057
|
MenubarItem.displayName = MenubarPrimitive.Item.displayName;
|
|
2876
|
-
var MenubarCheckboxItem =
|
|
3058
|
+
var MenubarCheckboxItem = React31.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs13(
|
|
2877
3059
|
MenubarPrimitive.CheckboxItem,
|
|
2878
3060
|
{
|
|
2879
3061
|
ref,
|
|
@@ -2884,13 +3066,13 @@ var MenubarCheckboxItem = React29.forwardRef(({ className, children, checked, ..
|
|
|
2884
3066
|
checked,
|
|
2885
3067
|
...props,
|
|
2886
3068
|
children: [
|
|
2887
|
-
/* @__PURE__ */
|
|
3069
|
+
/* @__PURE__ */ jsx30("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx30(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx30(Check4, { className: "h-4 w-4" }) }) }),
|
|
2888
3070
|
children
|
|
2889
3071
|
]
|
|
2890
3072
|
}
|
|
2891
3073
|
));
|
|
2892
3074
|
MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
|
|
2893
|
-
var MenubarRadioItem =
|
|
3075
|
+
var MenubarRadioItem = React31.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs13(
|
|
2894
3076
|
MenubarPrimitive.RadioItem,
|
|
2895
3077
|
{
|
|
2896
3078
|
ref,
|
|
@@ -2900,13 +3082,13 @@ var MenubarRadioItem = React29.forwardRef(({ className, children, ...props }, re
|
|
|
2900
3082
|
),
|
|
2901
3083
|
...props,
|
|
2902
3084
|
children: [
|
|
2903
|
-
/* @__PURE__ */
|
|
3085
|
+
/* @__PURE__ */ jsx30("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx30(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx30(Circle3, { className: "h-4 w-4 fill-current" }) }) }),
|
|
2904
3086
|
children
|
|
2905
3087
|
]
|
|
2906
3088
|
}
|
|
2907
3089
|
));
|
|
2908
3090
|
MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
|
|
2909
|
-
var MenubarLabel =
|
|
3091
|
+
var MenubarLabel = React31.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
2910
3092
|
MenubarPrimitive.Label,
|
|
2911
3093
|
{
|
|
2912
3094
|
ref,
|
|
@@ -2919,7 +3101,7 @@ var MenubarLabel = React29.forwardRef(({ className, inset, ...props }, ref) => /
|
|
|
2919
3101
|
}
|
|
2920
3102
|
));
|
|
2921
3103
|
MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
|
|
2922
|
-
var MenubarSeparator =
|
|
3104
|
+
var MenubarSeparator = React31.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx30(
|
|
2923
3105
|
MenubarPrimitive.Separator,
|
|
2924
3106
|
{
|
|
2925
3107
|
ref,
|
|
@@ -2932,7 +3114,7 @@ var MenubarShortcut = ({
|
|
|
2932
3114
|
className,
|
|
2933
3115
|
...props
|
|
2934
3116
|
}) => {
|
|
2935
|
-
return /* @__PURE__ */
|
|
3117
|
+
return /* @__PURE__ */ jsx30(
|
|
2936
3118
|
"span",
|
|
2937
3119
|
{
|
|
2938
3120
|
className: cn(
|
|
@@ -2946,12 +3128,12 @@ var MenubarShortcut = ({
|
|
|
2946
3128
|
MenubarShortcut.displayname = "MenubarShortcut";
|
|
2947
3129
|
|
|
2948
3130
|
// src/components/ui/navigation-menu.tsx
|
|
2949
|
-
import * as
|
|
3131
|
+
import * as React32 from "react";
|
|
2950
3132
|
import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
|
|
2951
|
-
import { cva as
|
|
3133
|
+
import { cva as cva11 } from "class-variance-authority";
|
|
2952
3134
|
import { ChevronDown as ChevronDown2 } from "lucide-react";
|
|
2953
|
-
import { jsx as
|
|
2954
|
-
var NavigationMenu =
|
|
3135
|
+
import { jsx as jsx31, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
3136
|
+
var NavigationMenu = React32.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs14(
|
|
2955
3137
|
NavigationMenuPrimitive.Root,
|
|
2956
3138
|
{
|
|
2957
3139
|
ref,
|
|
@@ -2962,12 +3144,12 @@ var NavigationMenu = React30.forwardRef(({ className, children, ...props }, ref)
|
|
|
2962
3144
|
...props,
|
|
2963
3145
|
children: [
|
|
2964
3146
|
children,
|
|
2965
|
-
/* @__PURE__ */
|
|
3147
|
+
/* @__PURE__ */ jsx31(NavigationMenuViewport, {})
|
|
2966
3148
|
]
|
|
2967
3149
|
}
|
|
2968
3150
|
));
|
|
2969
3151
|
NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
|
|
2970
|
-
var NavigationMenuList =
|
|
3152
|
+
var NavigationMenuList = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx31(
|
|
2971
3153
|
NavigationMenuPrimitive.List,
|
|
2972
3154
|
{
|
|
2973
3155
|
ref,
|
|
@@ -2980,10 +3162,10 @@ var NavigationMenuList = React30.forwardRef(({ className, ...props }, ref) => /*
|
|
|
2980
3162
|
));
|
|
2981
3163
|
NavigationMenuList.displayName = NavigationMenuPrimitive.List.displayName;
|
|
2982
3164
|
var NavigationMenuItem = NavigationMenuPrimitive.Item;
|
|
2983
|
-
var navigationMenuTriggerStyle =
|
|
3165
|
+
var navigationMenuTriggerStyle = cva11(
|
|
2984
3166
|
"group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"
|
|
2985
3167
|
);
|
|
2986
|
-
var NavigationMenuTrigger =
|
|
3168
|
+
var NavigationMenuTrigger = React32.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs14(
|
|
2987
3169
|
NavigationMenuPrimitive.Trigger,
|
|
2988
3170
|
{
|
|
2989
3171
|
ref,
|
|
@@ -2992,7 +3174,7 @@ var NavigationMenuTrigger = React30.forwardRef(({ className, children, ...props
|
|
|
2992
3174
|
children: [
|
|
2993
3175
|
children,
|
|
2994
3176
|
" ",
|
|
2995
|
-
/* @__PURE__ */
|
|
3177
|
+
/* @__PURE__ */ jsx31(
|
|
2996
3178
|
ChevronDown2,
|
|
2997
3179
|
{
|
|
2998
3180
|
className: "relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180",
|
|
@@ -3003,7 +3185,7 @@ var NavigationMenuTrigger = React30.forwardRef(({ className, children, ...props
|
|
|
3003
3185
|
}
|
|
3004
3186
|
));
|
|
3005
3187
|
NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
|
|
3006
|
-
var NavigationMenuContent =
|
|
3188
|
+
var NavigationMenuContent = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx31(
|
|
3007
3189
|
NavigationMenuPrimitive.Content,
|
|
3008
3190
|
{
|
|
3009
3191
|
ref,
|
|
@@ -3016,7 +3198,7 @@ var NavigationMenuContent = React30.forwardRef(({ className, ...props }, ref) =>
|
|
|
3016
3198
|
));
|
|
3017
3199
|
NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
|
|
3018
3200
|
var NavigationMenuLink = NavigationMenuPrimitive.Link;
|
|
3019
|
-
var NavigationMenuViewport =
|
|
3201
|
+
var NavigationMenuViewport = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx31("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsx31(
|
|
3020
3202
|
NavigationMenuPrimitive.Viewport,
|
|
3021
3203
|
{
|
|
3022
3204
|
className: cn(
|
|
@@ -3028,7 +3210,7 @@ var NavigationMenuViewport = React30.forwardRef(({ className, ...props }, ref) =
|
|
|
3028
3210
|
}
|
|
3029
3211
|
) }));
|
|
3030
3212
|
NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
|
|
3031
|
-
var NavigationMenuIndicator =
|
|
3213
|
+
var NavigationMenuIndicator = React32.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx31(
|
|
3032
3214
|
NavigationMenuPrimitive.Indicator,
|
|
3033
3215
|
{
|
|
3034
3216
|
ref,
|
|
@@ -3037,16 +3219,16 @@ var NavigationMenuIndicator = React30.forwardRef(({ className, ...props }, ref)
|
|
|
3037
3219
|
className
|
|
3038
3220
|
),
|
|
3039
3221
|
...props,
|
|
3040
|
-
children: /* @__PURE__ */
|
|
3222
|
+
children: /* @__PURE__ */ jsx31("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
3041
3223
|
}
|
|
3042
3224
|
));
|
|
3043
3225
|
NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayName;
|
|
3044
3226
|
|
|
3045
3227
|
// src/components/ui/pagination.tsx
|
|
3046
|
-
import * as
|
|
3228
|
+
import * as React33 from "react";
|
|
3047
3229
|
import { ChevronLeft, ChevronRight as ChevronRight5, MoreHorizontal as MoreHorizontal2 } from "lucide-react";
|
|
3048
|
-
import { jsx as
|
|
3049
|
-
var Pagination = ({ className, ...props }) => /* @__PURE__ */
|
|
3230
|
+
import { jsx as jsx32, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
3231
|
+
var Pagination = ({ className, ...props }) => /* @__PURE__ */ jsx32(
|
|
3050
3232
|
"nav",
|
|
3051
3233
|
{
|
|
3052
3234
|
role: "navigation",
|
|
@@ -3056,7 +3238,7 @@ var Pagination = ({ className, ...props }) => /* @__PURE__ */ jsx30(
|
|
|
3056
3238
|
}
|
|
3057
3239
|
);
|
|
3058
3240
|
Pagination.displayName = "Pagination";
|
|
3059
|
-
var PaginationContent =
|
|
3241
|
+
var PaginationContent = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx32(
|
|
3060
3242
|
"ul",
|
|
3061
3243
|
{
|
|
3062
3244
|
ref,
|
|
@@ -3065,14 +3247,14 @@ var PaginationContent = React31.forwardRef(({ className, ...props }, ref) => /*
|
|
|
3065
3247
|
}
|
|
3066
3248
|
));
|
|
3067
3249
|
PaginationContent.displayName = "PaginationContent";
|
|
3068
|
-
var PaginationItem =
|
|
3250
|
+
var PaginationItem = React33.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx32("li", { ref, className: cn("", className), ...props }));
|
|
3069
3251
|
PaginationItem.displayName = "PaginationItem";
|
|
3070
3252
|
var PaginationLink = ({
|
|
3071
3253
|
className,
|
|
3072
3254
|
isActive,
|
|
3073
3255
|
size = "icon",
|
|
3074
3256
|
...props
|
|
3075
|
-
}) => /* @__PURE__ */
|
|
3257
|
+
}) => /* @__PURE__ */ jsx32(
|
|
3076
3258
|
"a",
|
|
3077
3259
|
{
|
|
3078
3260
|
"aria-current": isActive ? "page" : void 0,
|
|
@@ -3090,7 +3272,7 @@ PaginationLink.displayName = "PaginationLink";
|
|
|
3090
3272
|
var PaginationPrevious = ({
|
|
3091
3273
|
className,
|
|
3092
3274
|
...props
|
|
3093
|
-
}) => /* @__PURE__ */
|
|
3275
|
+
}) => /* @__PURE__ */ jsxs15(
|
|
3094
3276
|
PaginationLink,
|
|
3095
3277
|
{
|
|
3096
3278
|
"aria-label": "Go to previous page",
|
|
@@ -3098,8 +3280,8 @@ var PaginationPrevious = ({
|
|
|
3098
3280
|
className: cn("gap-1 pl-2.5", className),
|
|
3099
3281
|
...props,
|
|
3100
3282
|
children: [
|
|
3101
|
-
/* @__PURE__ */
|
|
3102
|
-
/* @__PURE__ */
|
|
3283
|
+
/* @__PURE__ */ jsx32(ChevronLeft, { className: "h-4 w-4" }),
|
|
3284
|
+
/* @__PURE__ */ jsx32("span", { children: "Previous" })
|
|
3103
3285
|
]
|
|
3104
3286
|
}
|
|
3105
3287
|
);
|
|
@@ -3107,7 +3289,7 @@ PaginationPrevious.displayName = "PaginationPrevious";
|
|
|
3107
3289
|
var PaginationNext = ({
|
|
3108
3290
|
className,
|
|
3109
3291
|
...props
|
|
3110
|
-
}) => /* @__PURE__ */
|
|
3292
|
+
}) => /* @__PURE__ */ jsxs15(
|
|
3111
3293
|
PaginationLink,
|
|
3112
3294
|
{
|
|
3113
3295
|
"aria-label": "Go to next page",
|
|
@@ -3115,8 +3297,8 @@ var PaginationNext = ({
|
|
|
3115
3297
|
className: cn("gap-1 pr-2.5", className),
|
|
3116
3298
|
...props,
|
|
3117
3299
|
children: [
|
|
3118
|
-
/* @__PURE__ */
|
|
3119
|
-
/* @__PURE__ */
|
|
3300
|
+
/* @__PURE__ */ jsx32("span", { children: "Next" }),
|
|
3301
|
+
/* @__PURE__ */ jsx32(ChevronRight5, { className: "h-4 w-4" })
|
|
3120
3302
|
]
|
|
3121
3303
|
}
|
|
3122
3304
|
);
|
|
@@ -3124,28 +3306,28 @@ PaginationNext.displayName = "PaginationNext";
|
|
|
3124
3306
|
var PaginationEllipsis = ({
|
|
3125
3307
|
className,
|
|
3126
3308
|
...props
|
|
3127
|
-
}) => /* @__PURE__ */
|
|
3309
|
+
}) => /* @__PURE__ */ jsxs15(
|
|
3128
3310
|
"span",
|
|
3129
3311
|
{
|
|
3130
3312
|
"aria-hidden": true,
|
|
3131
3313
|
className: cn("flex h-9 w-9 items-center justify-center", className),
|
|
3132
3314
|
...props,
|
|
3133
3315
|
children: [
|
|
3134
|
-
/* @__PURE__ */
|
|
3135
|
-
/* @__PURE__ */
|
|
3316
|
+
/* @__PURE__ */ jsx32(MoreHorizontal2, { className: "h-4 w-4" }),
|
|
3317
|
+
/* @__PURE__ */ jsx32("span", { className: "sr-only", children: "More pages" })
|
|
3136
3318
|
]
|
|
3137
3319
|
}
|
|
3138
3320
|
);
|
|
3139
3321
|
PaginationEllipsis.displayName = "PaginationEllipsis";
|
|
3140
3322
|
|
|
3141
3323
|
// src/components/ui/popover.tsx
|
|
3142
|
-
import * as
|
|
3324
|
+
import * as React34 from "react";
|
|
3143
3325
|
import * as PopoverPrimitive from "@radix-ui/react-popover";
|
|
3144
|
-
import { jsx as
|
|
3326
|
+
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
3145
3327
|
var Popover = PopoverPrimitive.Root;
|
|
3146
3328
|
var PopoverTrigger = PopoverPrimitive.Trigger;
|
|
3147
3329
|
var PopoverAnchor = PopoverPrimitive.Anchor;
|
|
3148
|
-
var PopoverContent =
|
|
3330
|
+
var PopoverContent = React34.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx33(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx33(
|
|
3149
3331
|
PopoverPrimitive.Content,
|
|
3150
3332
|
{
|
|
3151
3333
|
ref,
|
|
@@ -3161,10 +3343,10 @@ var PopoverContent = React32.forwardRef(({ className, align = "center", sideOffs
|
|
|
3161
3343
|
PopoverContent.displayName = PopoverPrimitive.Content.displayName;
|
|
3162
3344
|
|
|
3163
3345
|
// src/components/ui/progress.tsx
|
|
3164
|
-
import * as
|
|
3346
|
+
import * as React35 from "react";
|
|
3165
3347
|
import * as ProgressPrimitive from "@radix-ui/react-progress";
|
|
3166
|
-
import { jsx as
|
|
3167
|
-
var Progress =
|
|
3348
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
3349
|
+
var Progress = React35.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsx34(
|
|
3168
3350
|
ProgressPrimitive.Root,
|
|
3169
3351
|
{
|
|
3170
3352
|
ref,
|
|
@@ -3173,7 +3355,7 @@ var Progress = React33.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
|
3173
3355
|
className
|
|
3174
3356
|
),
|
|
3175
3357
|
...props,
|
|
3176
|
-
children: /* @__PURE__ */
|
|
3358
|
+
children: /* @__PURE__ */ jsx34(
|
|
3177
3359
|
ProgressPrimitive.Indicator,
|
|
3178
3360
|
{
|
|
3179
3361
|
className: "h-full w-full flex-1 bg-primary transition-all",
|
|
@@ -3185,12 +3367,12 @@ var Progress = React33.forwardRef(({ className, value, ...props }, ref) => /* @_
|
|
|
3185
3367
|
Progress.displayName = ProgressPrimitive.Root.displayName;
|
|
3186
3368
|
|
|
3187
3369
|
// src/components/ui/radio-group.tsx
|
|
3188
|
-
import * as
|
|
3370
|
+
import * as React36 from "react";
|
|
3189
3371
|
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
3190
3372
|
import { Circle as Circle4 } from "lucide-react";
|
|
3191
|
-
import { jsx as
|
|
3192
|
-
var RadioGroup4 =
|
|
3193
|
-
return /* @__PURE__ */
|
|
3373
|
+
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
3374
|
+
var RadioGroup4 = React36.forwardRef(({ className, ...props }, ref) => {
|
|
3375
|
+
return /* @__PURE__ */ jsx35(
|
|
3194
3376
|
RadioGroupPrimitive.Root,
|
|
3195
3377
|
{
|
|
3196
3378
|
className: cn("grid gap-2", className),
|
|
@@ -3200,8 +3382,8 @@ var RadioGroup4 = React34.forwardRef(({ className, ...props }, ref) => {
|
|
|
3200
3382
|
);
|
|
3201
3383
|
});
|
|
3202
3384
|
RadioGroup4.displayName = RadioGroupPrimitive.Root.displayName;
|
|
3203
|
-
var RadioGroupItem =
|
|
3204
|
-
return /* @__PURE__ */
|
|
3385
|
+
var RadioGroupItem = React36.forwardRef(({ className, ...props }, ref) => {
|
|
3386
|
+
return /* @__PURE__ */ jsx35(
|
|
3205
3387
|
RadioGroupPrimitive.Item,
|
|
3206
3388
|
{
|
|
3207
3389
|
ref,
|
|
@@ -3210,7 +3392,7 @@ var RadioGroupItem = React34.forwardRef(({ className, ...props }, ref) => {
|
|
|
3210
3392
|
className
|
|
3211
3393
|
),
|
|
3212
3394
|
...props,
|
|
3213
|
-
children: /* @__PURE__ */
|
|
3395
|
+
children: /* @__PURE__ */ jsx35(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx35(Circle4, { className: "h-3.5 w-3.5 fill-primary" }) })
|
|
3214
3396
|
}
|
|
3215
3397
|
);
|
|
3216
3398
|
});
|
|
@@ -3223,11 +3405,11 @@ import {
|
|
|
3223
3405
|
Panel,
|
|
3224
3406
|
Separator as Separator4
|
|
3225
3407
|
} from "react-resizable-panels";
|
|
3226
|
-
import { jsx as
|
|
3408
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
3227
3409
|
var ResizablePanelGroup = ({
|
|
3228
3410
|
className,
|
|
3229
3411
|
...props
|
|
3230
|
-
}) => /* @__PURE__ */
|
|
3412
|
+
}) => /* @__PURE__ */ jsx36(
|
|
3231
3413
|
Group4,
|
|
3232
3414
|
{
|
|
3233
3415
|
className: cn(
|
|
@@ -3242,7 +3424,7 @@ var ResizableHandle = ({
|
|
|
3242
3424
|
withHandle,
|
|
3243
3425
|
className,
|
|
3244
3426
|
...props
|
|
3245
|
-
}) => /* @__PURE__ */
|
|
3427
|
+
}) => /* @__PURE__ */ jsx36(
|
|
3246
3428
|
Separator4,
|
|
3247
3429
|
{
|
|
3248
3430
|
className: cn(
|
|
@@ -3250,29 +3432,29 @@ var ResizableHandle = ({
|
|
|
3250
3432
|
className
|
|
3251
3433
|
),
|
|
3252
3434
|
...props,
|
|
3253
|
-
children: withHandle && /* @__PURE__ */
|
|
3435
|
+
children: withHandle && /* @__PURE__ */ jsx36("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ jsx36(GripVertical, { className: "h-2.5 w-2.5" }) })
|
|
3254
3436
|
}
|
|
3255
3437
|
);
|
|
3256
3438
|
|
|
3257
3439
|
// src/components/ui/scroll-area.tsx
|
|
3258
|
-
import * as
|
|
3440
|
+
import * as React37 from "react";
|
|
3259
3441
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
3260
|
-
import { jsx as
|
|
3261
|
-
var ScrollArea =
|
|
3442
|
+
import { jsx as jsx37, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
3443
|
+
var ScrollArea = React37.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs16(
|
|
3262
3444
|
ScrollAreaPrimitive.Root,
|
|
3263
3445
|
{
|
|
3264
3446
|
ref,
|
|
3265
3447
|
className: cn("relative overflow-hidden", className),
|
|
3266
3448
|
...props,
|
|
3267
3449
|
children: [
|
|
3268
|
-
/* @__PURE__ */
|
|
3269
|
-
/* @__PURE__ */
|
|
3270
|
-
/* @__PURE__ */
|
|
3450
|
+
/* @__PURE__ */ jsx37(ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
|
|
3451
|
+
/* @__PURE__ */ jsx37(ScrollBar, {}),
|
|
3452
|
+
/* @__PURE__ */ jsx37(ScrollAreaPrimitive.Corner, {})
|
|
3271
3453
|
]
|
|
3272
3454
|
}
|
|
3273
3455
|
));
|
|
3274
3456
|
ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
|
|
3275
|
-
var ScrollBar =
|
|
3457
|
+
var ScrollBar = React37.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsx37(
|
|
3276
3458
|
ScrollAreaPrimitive.ScrollAreaScrollbar,
|
|
3277
3459
|
{
|
|
3278
3460
|
ref,
|
|
@@ -3284,20 +3466,20 @@ var ScrollBar = React35.forwardRef(({ className, orientation = "vertical", ...pr
|
|
|
3284
3466
|
className
|
|
3285
3467
|
),
|
|
3286
3468
|
...props,
|
|
3287
|
-
children: /* @__PURE__ */
|
|
3469
|
+
children: /* @__PURE__ */ jsx37(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
|
|
3288
3470
|
}
|
|
3289
3471
|
));
|
|
3290
3472
|
ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
|
|
3291
3473
|
|
|
3292
3474
|
// src/components/ui/select.tsx
|
|
3293
|
-
import * as
|
|
3475
|
+
import * as React38 from "react";
|
|
3294
3476
|
import * as SelectPrimitive from "@radix-ui/react-select";
|
|
3295
3477
|
import { Check as Check5, ChevronDown as ChevronDown3, ChevronUp } from "lucide-react";
|
|
3296
|
-
import { jsx as
|
|
3478
|
+
import { jsx as jsx38, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
3297
3479
|
var Select = SelectPrimitive.Root;
|
|
3298
3480
|
var SelectGroup = SelectPrimitive.Group;
|
|
3299
3481
|
var SelectValue = SelectPrimitive.Value;
|
|
3300
|
-
var SelectTrigger =
|
|
3482
|
+
var SelectTrigger = React38.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs17(
|
|
3301
3483
|
SelectPrimitive.Trigger,
|
|
3302
3484
|
{
|
|
3303
3485
|
ref,
|
|
@@ -3308,12 +3490,12 @@ var SelectTrigger = React36.forwardRef(({ className, children, ...props }, ref)
|
|
|
3308
3490
|
...props,
|
|
3309
3491
|
children: [
|
|
3310
3492
|
children,
|
|
3311
|
-
/* @__PURE__ */
|
|
3493
|
+
/* @__PURE__ */ jsx38(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx38(ChevronDown3, { className: "h-4 w-4 opacity-50" }) })
|
|
3312
3494
|
]
|
|
3313
3495
|
}
|
|
3314
3496
|
));
|
|
3315
3497
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
3316
|
-
var SelectScrollUpButton =
|
|
3498
|
+
var SelectScrollUpButton = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx38(
|
|
3317
3499
|
SelectPrimitive.ScrollUpButton,
|
|
3318
3500
|
{
|
|
3319
3501
|
ref,
|
|
@@ -3322,11 +3504,11 @@ var SelectScrollUpButton = React36.forwardRef(({ className, ...props }, ref) =>
|
|
|
3322
3504
|
className
|
|
3323
3505
|
),
|
|
3324
3506
|
...props,
|
|
3325
|
-
children: /* @__PURE__ */
|
|
3507
|
+
children: /* @__PURE__ */ jsx38(ChevronUp, { className: "h-4 w-4" })
|
|
3326
3508
|
}
|
|
3327
3509
|
));
|
|
3328
3510
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
3329
|
-
var SelectScrollDownButton =
|
|
3511
|
+
var SelectScrollDownButton = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx38(
|
|
3330
3512
|
SelectPrimitive.ScrollDownButton,
|
|
3331
3513
|
{
|
|
3332
3514
|
ref,
|
|
@@ -3335,11 +3517,11 @@ var SelectScrollDownButton = React36.forwardRef(({ className, ...props }, ref) =
|
|
|
3335
3517
|
className
|
|
3336
3518
|
),
|
|
3337
3519
|
...props,
|
|
3338
|
-
children: /* @__PURE__ */
|
|
3520
|
+
children: /* @__PURE__ */ jsx38(ChevronDown3, { className: "h-4 w-4" })
|
|
3339
3521
|
}
|
|
3340
3522
|
));
|
|
3341
3523
|
SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
|
|
3342
|
-
var SelectContent =
|
|
3524
|
+
var SelectContent = React38.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx38(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs17(
|
|
3343
3525
|
SelectPrimitive.Content,
|
|
3344
3526
|
{
|
|
3345
3527
|
ref,
|
|
@@ -3351,8 +3533,8 @@ var SelectContent = React36.forwardRef(({ className, children, position = "poppe
|
|
|
3351
3533
|
position,
|
|
3352
3534
|
...props,
|
|
3353
3535
|
children: [
|
|
3354
|
-
/* @__PURE__ */
|
|
3355
|
-
/* @__PURE__ */
|
|
3536
|
+
/* @__PURE__ */ jsx38(SelectScrollUpButton, {}),
|
|
3537
|
+
/* @__PURE__ */ jsx38(
|
|
3356
3538
|
SelectPrimitive.Viewport,
|
|
3357
3539
|
{
|
|
3358
3540
|
className: cn(
|
|
@@ -3362,12 +3544,12 @@ var SelectContent = React36.forwardRef(({ className, children, position = "poppe
|
|
|
3362
3544
|
children
|
|
3363
3545
|
}
|
|
3364
3546
|
),
|
|
3365
|
-
/* @__PURE__ */
|
|
3547
|
+
/* @__PURE__ */ jsx38(SelectScrollDownButton, {})
|
|
3366
3548
|
]
|
|
3367
3549
|
}
|
|
3368
3550
|
) }));
|
|
3369
3551
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
3370
|
-
var SelectLabel =
|
|
3552
|
+
var SelectLabel = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx38(
|
|
3371
3553
|
SelectPrimitive.Label,
|
|
3372
3554
|
{
|
|
3373
3555
|
ref,
|
|
@@ -3376,7 +3558,7 @@ var SelectLabel = React36.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3376
3558
|
}
|
|
3377
3559
|
));
|
|
3378
3560
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
3379
|
-
var SelectItem =
|
|
3561
|
+
var SelectItem = React38.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs17(
|
|
3380
3562
|
SelectPrimitive.Item,
|
|
3381
3563
|
{
|
|
3382
3564
|
ref,
|
|
@@ -3386,13 +3568,13 @@ var SelectItem = React36.forwardRef(({ className, children, ...props }, ref) =>
|
|
|
3386
3568
|
),
|
|
3387
3569
|
...props,
|
|
3388
3570
|
children: [
|
|
3389
|
-
/* @__PURE__ */
|
|
3390
|
-
/* @__PURE__ */
|
|
3571
|
+
/* @__PURE__ */ jsx38("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx38(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx38(Check5, { className: "h-4 w-4" }) }) }),
|
|
3572
|
+
/* @__PURE__ */ jsx38(SelectPrimitive.ItemText, { children })
|
|
3391
3573
|
]
|
|
3392
3574
|
}
|
|
3393
3575
|
));
|
|
3394
3576
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
3395
|
-
var SelectSeparator =
|
|
3577
|
+
var SelectSeparator = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx38(
|
|
3396
3578
|
SelectPrimitive.Separator,
|
|
3397
3579
|
{
|
|
3398
3580
|
ref,
|
|
@@ -3403,11 +3585,11 @@ var SelectSeparator = React36.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
3403
3585
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
|
3404
3586
|
|
|
3405
3587
|
// src/components/ui/separator.tsx
|
|
3406
|
-
import * as
|
|
3588
|
+
import * as React39 from "react";
|
|
3407
3589
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
3408
|
-
import { jsx as
|
|
3409
|
-
var Separator6 =
|
|
3410
|
-
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */
|
|
3590
|
+
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
3591
|
+
var Separator6 = React39.forwardRef(
|
|
3592
|
+
({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx39(
|
|
3411
3593
|
SeparatorPrimitive.Root,
|
|
3412
3594
|
{
|
|
3413
3595
|
ref,
|
|
@@ -3425,16 +3607,16 @@ var Separator6 = React37.forwardRef(
|
|
|
3425
3607
|
Separator6.displayName = SeparatorPrimitive.Root.displayName;
|
|
3426
3608
|
|
|
3427
3609
|
// src/components/ui/sheet.tsx
|
|
3428
|
-
import * as
|
|
3610
|
+
import * as React40 from "react";
|
|
3429
3611
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
3430
|
-
import { cva as
|
|
3612
|
+
import { cva as cva12 } from "class-variance-authority";
|
|
3431
3613
|
import { X as X2 } from "lucide-react";
|
|
3432
|
-
import { jsx as
|
|
3614
|
+
import { jsx as jsx40, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3433
3615
|
var Sheet = SheetPrimitive.Root;
|
|
3434
3616
|
var SheetTrigger = SheetPrimitive.Trigger;
|
|
3435
3617
|
var SheetClose = SheetPrimitive.Close;
|
|
3436
3618
|
var SheetPortal = SheetPrimitive.Portal;
|
|
3437
|
-
var SheetOverlay =
|
|
3619
|
+
var SheetOverlay = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx40(
|
|
3438
3620
|
SheetPrimitive.Overlay,
|
|
3439
3621
|
{
|
|
3440
3622
|
className: cn(
|
|
@@ -3446,7 +3628,7 @@ var SheetOverlay = React38.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
3446
3628
|
}
|
|
3447
3629
|
));
|
|
3448
3630
|
SheetOverlay.displayName = SheetPrimitive.Overlay.displayName;
|
|
3449
|
-
var sheetVariants =
|
|
3631
|
+
var sheetVariants = cva12(
|
|
3450
3632
|
"fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
3451
3633
|
{
|
|
3452
3634
|
variants: {
|
|
@@ -3462,18 +3644,18 @@ var sheetVariants = cva11(
|
|
|
3462
3644
|
}
|
|
3463
3645
|
}
|
|
3464
3646
|
);
|
|
3465
|
-
var SheetContent =
|
|
3466
|
-
/* @__PURE__ */
|
|
3467
|
-
/* @__PURE__ */
|
|
3647
|
+
var SheetContent = React40.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxs18(SheetPortal, { children: [
|
|
3648
|
+
/* @__PURE__ */ jsx40(SheetOverlay, {}),
|
|
3649
|
+
/* @__PURE__ */ jsxs18(
|
|
3468
3650
|
SheetPrimitive.Content,
|
|
3469
3651
|
{
|
|
3470
3652
|
ref,
|
|
3471
3653
|
className: cn(sheetVariants({ side }), className),
|
|
3472
3654
|
...props,
|
|
3473
3655
|
children: [
|
|
3474
|
-
/* @__PURE__ */
|
|
3475
|
-
/* @__PURE__ */
|
|
3476
|
-
/* @__PURE__ */
|
|
3656
|
+
/* @__PURE__ */ jsxs18(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
3657
|
+
/* @__PURE__ */ jsx40(X2, { className: "h-4 w-4" }),
|
|
3658
|
+
/* @__PURE__ */ jsx40("span", { className: "sr-only", children: "Close" })
|
|
3477
3659
|
] }),
|
|
3478
3660
|
children
|
|
3479
3661
|
]
|
|
@@ -3484,7 +3666,7 @@ SheetContent.displayName = SheetPrimitive.Content.displayName;
|
|
|
3484
3666
|
var SheetHeader = ({
|
|
3485
3667
|
className,
|
|
3486
3668
|
...props
|
|
3487
|
-
}) => /* @__PURE__ */
|
|
3669
|
+
}) => /* @__PURE__ */ jsx40(
|
|
3488
3670
|
"div",
|
|
3489
3671
|
{
|
|
3490
3672
|
className: cn(
|
|
@@ -3498,7 +3680,7 @@ SheetHeader.displayName = "SheetHeader";
|
|
|
3498
3680
|
var SheetFooter = ({
|
|
3499
3681
|
className,
|
|
3500
3682
|
...props
|
|
3501
|
-
}) => /* @__PURE__ */
|
|
3683
|
+
}) => /* @__PURE__ */ jsx40(
|
|
3502
3684
|
"div",
|
|
3503
3685
|
{
|
|
3504
3686
|
className: cn(
|
|
@@ -3509,7 +3691,7 @@ var SheetFooter = ({
|
|
|
3509
3691
|
}
|
|
3510
3692
|
);
|
|
3511
3693
|
SheetFooter.displayName = "SheetFooter";
|
|
3512
|
-
var SheetTitle =
|
|
3694
|
+
var SheetTitle = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx40(
|
|
3513
3695
|
SheetPrimitive.Title,
|
|
3514
3696
|
{
|
|
3515
3697
|
ref,
|
|
@@ -3518,7 +3700,7 @@ var SheetTitle = React38.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
3518
3700
|
}
|
|
3519
3701
|
));
|
|
3520
3702
|
SheetTitle.displayName = SheetPrimitive.Title.displayName;
|
|
3521
|
-
var SheetDescription =
|
|
3703
|
+
var SheetDescription = React40.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx40(
|
|
3522
3704
|
SheetPrimitive.Description,
|
|
3523
3705
|
{
|
|
3524
3706
|
ref,
|
|
@@ -3529,18 +3711,18 @@ var SheetDescription = React38.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
3529
3711
|
SheetDescription.displayName = SheetPrimitive.Description.displayName;
|
|
3530
3712
|
|
|
3531
3713
|
// src/components/ui/sidebar.tsx
|
|
3532
|
-
import * as
|
|
3714
|
+
import * as React42 from "react";
|
|
3533
3715
|
import { Slot as Slot4 } from "@radix-ui/react-slot";
|
|
3534
|
-
import { cva as
|
|
3716
|
+
import { cva as cva13 } from "class-variance-authority";
|
|
3535
3717
|
import { PanelLeft } from "lucide-react";
|
|
3536
3718
|
|
|
3537
3719
|
// src/components/ui/skeleton.tsx
|
|
3538
|
-
import { jsx as
|
|
3720
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
3539
3721
|
function Skeleton({
|
|
3540
3722
|
className,
|
|
3541
3723
|
...props
|
|
3542
3724
|
}) {
|
|
3543
|
-
return /* @__PURE__ */
|
|
3725
|
+
return /* @__PURE__ */ jsx41(
|
|
3544
3726
|
"div",
|
|
3545
3727
|
{
|
|
3546
3728
|
className: cn("animate-pulse rounded-md bg-primary/10", className),
|
|
@@ -3550,13 +3732,13 @@ function Skeleton({
|
|
|
3550
3732
|
}
|
|
3551
3733
|
|
|
3552
3734
|
// src/components/ui/tooltip.tsx
|
|
3553
|
-
import * as
|
|
3735
|
+
import * as React41 from "react";
|
|
3554
3736
|
import * as TooltipPrimitive from "@radix-ui/react-tooltip";
|
|
3555
|
-
import { jsx as
|
|
3737
|
+
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
3556
3738
|
var TooltipProvider = TooltipPrimitive.Provider;
|
|
3557
3739
|
var Tooltip2 = TooltipPrimitive.Root;
|
|
3558
3740
|
var TooltipTrigger = TooltipPrimitive.Trigger;
|
|
3559
|
-
var TooltipContent =
|
|
3741
|
+
var TooltipContent = React41.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx42(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsx42(
|
|
3560
3742
|
TooltipPrimitive.Content,
|
|
3561
3743
|
{
|
|
3562
3744
|
ref,
|
|
@@ -3571,22 +3753,22 @@ var TooltipContent = React39.forwardRef(({ className, sideOffset = 4, ...props }
|
|
|
3571
3753
|
TooltipContent.displayName = TooltipPrimitive.Content.displayName;
|
|
3572
3754
|
|
|
3573
3755
|
// src/components/ui/sidebar.tsx
|
|
3574
|
-
import { jsx as
|
|
3756
|
+
import { jsx as jsx43, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3575
3757
|
var SIDEBAR_COOKIE_NAME = "sidebar_state";
|
|
3576
3758
|
var SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7;
|
|
3577
3759
|
var SIDEBAR_WIDTH = "16rem";
|
|
3578
3760
|
var SIDEBAR_WIDTH_MOBILE = "18rem";
|
|
3579
3761
|
var SIDEBAR_WIDTH_ICON = "3rem";
|
|
3580
3762
|
var SIDEBAR_KEYBOARD_SHORTCUT = "b";
|
|
3581
|
-
var SidebarContext =
|
|
3763
|
+
var SidebarContext = React42.createContext(null);
|
|
3582
3764
|
function useSidebar() {
|
|
3583
|
-
const context =
|
|
3765
|
+
const context = React42.useContext(SidebarContext);
|
|
3584
3766
|
if (!context) {
|
|
3585
3767
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
3586
3768
|
}
|
|
3587
3769
|
return context;
|
|
3588
3770
|
}
|
|
3589
|
-
var SidebarProvider =
|
|
3771
|
+
var SidebarProvider = React42.forwardRef(
|
|
3590
3772
|
({
|
|
3591
3773
|
defaultOpen = true,
|
|
3592
3774
|
open: openProp,
|
|
@@ -3597,10 +3779,10 @@ var SidebarProvider = React40.forwardRef(
|
|
|
3597
3779
|
...props
|
|
3598
3780
|
}, ref) => {
|
|
3599
3781
|
const isMobile = useIsMobile();
|
|
3600
|
-
const [openMobile, setOpenMobile] =
|
|
3601
|
-
const [_open, _setOpen] =
|
|
3782
|
+
const [openMobile, setOpenMobile] = React42.useState(false);
|
|
3783
|
+
const [_open, _setOpen] = React42.useState(defaultOpen);
|
|
3602
3784
|
const open = openProp ?? _open;
|
|
3603
|
-
const setOpen =
|
|
3785
|
+
const setOpen = React42.useCallback(
|
|
3604
3786
|
(value) => {
|
|
3605
3787
|
const openState = typeof value === "function" ? value(open) : value;
|
|
3606
3788
|
if (setOpenProp) {
|
|
@@ -3612,10 +3794,10 @@ var SidebarProvider = React40.forwardRef(
|
|
|
3612
3794
|
},
|
|
3613
3795
|
[setOpenProp, open]
|
|
3614
3796
|
);
|
|
3615
|
-
const toggleSidebar =
|
|
3797
|
+
const toggleSidebar = React42.useCallback(() => {
|
|
3616
3798
|
return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
|
|
3617
3799
|
}, [isMobile, setOpen, setOpenMobile]);
|
|
3618
|
-
|
|
3800
|
+
React42.useEffect(() => {
|
|
3619
3801
|
const handleKeyDown = (event) => {
|
|
3620
3802
|
if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
|
|
3621
3803
|
event.preventDefault();
|
|
@@ -3626,7 +3808,7 @@ var SidebarProvider = React40.forwardRef(
|
|
|
3626
3808
|
return () => window.removeEventListener("keydown", handleKeyDown);
|
|
3627
3809
|
}, [toggleSidebar]);
|
|
3628
3810
|
const state = open ? "expanded" : "collapsed";
|
|
3629
|
-
const contextValue =
|
|
3811
|
+
const contextValue = React42.useMemo(
|
|
3630
3812
|
() => ({
|
|
3631
3813
|
state,
|
|
3632
3814
|
open,
|
|
@@ -3638,7 +3820,7 @@ var SidebarProvider = React40.forwardRef(
|
|
|
3638
3820
|
}),
|
|
3639
3821
|
[state, open, setOpen, isMobile, openMobile, setOpenMobile, toggleSidebar]
|
|
3640
3822
|
);
|
|
3641
|
-
return /* @__PURE__ */
|
|
3823
|
+
return /* @__PURE__ */ jsx43(SidebarContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx43(TooltipProvider, { delayDuration: 0, children: /* @__PURE__ */ jsx43(
|
|
3642
3824
|
"div",
|
|
3643
3825
|
{
|
|
3644
3826
|
style: {
|
|
@@ -3658,7 +3840,7 @@ var SidebarProvider = React40.forwardRef(
|
|
|
3658
3840
|
}
|
|
3659
3841
|
);
|
|
3660
3842
|
SidebarProvider.displayName = "SidebarProvider";
|
|
3661
|
-
var Sidebar =
|
|
3843
|
+
var Sidebar = React42.forwardRef(
|
|
3662
3844
|
({
|
|
3663
3845
|
side = "left",
|
|
3664
3846
|
variant = "sidebar",
|
|
@@ -3669,7 +3851,7 @@ var Sidebar = React40.forwardRef(
|
|
|
3669
3851
|
}, ref) => {
|
|
3670
3852
|
const { isMobile, state, openMobile, setOpenMobile } = useSidebar();
|
|
3671
3853
|
if (collapsible === "none") {
|
|
3672
|
-
return /* @__PURE__ */
|
|
3854
|
+
return /* @__PURE__ */ jsx43(
|
|
3673
3855
|
"div",
|
|
3674
3856
|
{
|
|
3675
3857
|
className: cn(
|
|
@@ -3683,7 +3865,7 @@ var Sidebar = React40.forwardRef(
|
|
|
3683
3865
|
);
|
|
3684
3866
|
}
|
|
3685
3867
|
if (isMobile) {
|
|
3686
|
-
return /* @__PURE__ */
|
|
3868
|
+
return /* @__PURE__ */ jsx43(Sheet, { open: openMobile, onOpenChange: setOpenMobile, ...props, children: /* @__PURE__ */ jsxs19(
|
|
3687
3869
|
SheetContent,
|
|
3688
3870
|
{
|
|
3689
3871
|
"data-sidebar": "sidebar",
|
|
@@ -3694,16 +3876,16 @@ var Sidebar = React40.forwardRef(
|
|
|
3694
3876
|
},
|
|
3695
3877
|
side,
|
|
3696
3878
|
children: [
|
|
3697
|
-
/* @__PURE__ */
|
|
3698
|
-
/* @__PURE__ */
|
|
3699
|
-
/* @__PURE__ */
|
|
3879
|
+
/* @__PURE__ */ jsxs19(SheetHeader, { className: "sr-only", children: [
|
|
3880
|
+
/* @__PURE__ */ jsx43(SheetTitle, { children: "Sidebar" }),
|
|
3881
|
+
/* @__PURE__ */ jsx43(SheetDescription, { children: "Displays the mobile sidebar." })
|
|
3700
3882
|
] }),
|
|
3701
|
-
/* @__PURE__ */
|
|
3883
|
+
/* @__PURE__ */ jsx43("div", { className: "flex h-full w-full flex-col", children })
|
|
3702
3884
|
]
|
|
3703
3885
|
}
|
|
3704
3886
|
) });
|
|
3705
3887
|
}
|
|
3706
|
-
return /* @__PURE__ */
|
|
3888
|
+
return /* @__PURE__ */ jsxs19(
|
|
3707
3889
|
"div",
|
|
3708
3890
|
{
|
|
3709
3891
|
ref,
|
|
@@ -3713,7 +3895,7 @@ var Sidebar = React40.forwardRef(
|
|
|
3713
3895
|
"data-variant": variant,
|
|
3714
3896
|
"data-side": side,
|
|
3715
3897
|
children: [
|
|
3716
|
-
/* @__PURE__ */
|
|
3898
|
+
/* @__PURE__ */ jsx43(
|
|
3717
3899
|
"div",
|
|
3718
3900
|
{
|
|
3719
3901
|
className: cn(
|
|
@@ -3724,7 +3906,7 @@ var Sidebar = React40.forwardRef(
|
|
|
3724
3906
|
)
|
|
3725
3907
|
}
|
|
3726
3908
|
),
|
|
3727
|
-
/* @__PURE__ */
|
|
3909
|
+
/* @__PURE__ */ jsx43(
|
|
3728
3910
|
"div",
|
|
3729
3911
|
{
|
|
3730
3912
|
className: cn(
|
|
@@ -3735,7 +3917,7 @@ var Sidebar = React40.forwardRef(
|
|
|
3735
3917
|
className
|
|
3736
3918
|
),
|
|
3737
3919
|
...props,
|
|
3738
|
-
children: /* @__PURE__ */
|
|
3920
|
+
children: /* @__PURE__ */ jsx43(
|
|
3739
3921
|
"div",
|
|
3740
3922
|
{
|
|
3741
3923
|
"data-sidebar": "sidebar",
|
|
@@ -3751,9 +3933,9 @@ var Sidebar = React40.forwardRef(
|
|
|
3751
3933
|
}
|
|
3752
3934
|
);
|
|
3753
3935
|
Sidebar.displayName = "Sidebar";
|
|
3754
|
-
var SidebarTrigger =
|
|
3936
|
+
var SidebarTrigger = React42.forwardRef(({ className, onClick, ...props }, ref) => {
|
|
3755
3937
|
const { toggleSidebar } = useSidebar();
|
|
3756
|
-
return /* @__PURE__ */
|
|
3938
|
+
return /* @__PURE__ */ jsxs19(
|
|
3757
3939
|
Button,
|
|
3758
3940
|
{
|
|
3759
3941
|
ref,
|
|
@@ -3767,16 +3949,16 @@ var SidebarTrigger = React40.forwardRef(({ className, onClick, ...props }, ref)
|
|
|
3767
3949
|
},
|
|
3768
3950
|
...props,
|
|
3769
3951
|
children: [
|
|
3770
|
-
/* @__PURE__ */
|
|
3771
|
-
/* @__PURE__ */
|
|
3952
|
+
/* @__PURE__ */ jsx43(PanelLeft, {}),
|
|
3953
|
+
/* @__PURE__ */ jsx43("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
3772
3954
|
]
|
|
3773
3955
|
}
|
|
3774
3956
|
);
|
|
3775
3957
|
});
|
|
3776
3958
|
SidebarTrigger.displayName = "SidebarTrigger";
|
|
3777
|
-
var SidebarRail =
|
|
3959
|
+
var SidebarRail = React42.forwardRef(({ className, ...props }, ref) => {
|
|
3778
3960
|
const { toggleSidebar } = useSidebar();
|
|
3779
|
-
return /* @__PURE__ */
|
|
3961
|
+
return /* @__PURE__ */ jsx43(
|
|
3780
3962
|
"button",
|
|
3781
3963
|
{
|
|
3782
3964
|
ref,
|
|
@@ -3799,8 +3981,8 @@ var SidebarRail = React40.forwardRef(({ className, ...props }, ref) => {
|
|
|
3799
3981
|
);
|
|
3800
3982
|
});
|
|
3801
3983
|
SidebarRail.displayName = "SidebarRail";
|
|
3802
|
-
var SidebarInset =
|
|
3803
|
-
return /* @__PURE__ */
|
|
3984
|
+
var SidebarInset = React42.forwardRef(({ className, ...props }, ref) => {
|
|
3985
|
+
return /* @__PURE__ */ jsx43(
|
|
3804
3986
|
"main",
|
|
3805
3987
|
{
|
|
3806
3988
|
ref,
|
|
@@ -3814,8 +3996,8 @@ var SidebarInset = React40.forwardRef(({ className, ...props }, ref) => {
|
|
|
3814
3996
|
);
|
|
3815
3997
|
});
|
|
3816
3998
|
SidebarInset.displayName = "SidebarInset";
|
|
3817
|
-
var SidebarInput =
|
|
3818
|
-
return /* @__PURE__ */
|
|
3999
|
+
var SidebarInput = React42.forwardRef(({ className, ...props }, ref) => {
|
|
4000
|
+
return /* @__PURE__ */ jsx43(
|
|
3819
4001
|
Input,
|
|
3820
4002
|
{
|
|
3821
4003
|
ref,
|
|
@@ -3829,8 +4011,8 @@ var SidebarInput = React40.forwardRef(({ className, ...props }, ref) => {
|
|
|
3829
4011
|
);
|
|
3830
4012
|
});
|
|
3831
4013
|
SidebarInput.displayName = "SidebarInput";
|
|
3832
|
-
var SidebarHeader =
|
|
3833
|
-
return /* @__PURE__ */
|
|
4014
|
+
var SidebarHeader = React42.forwardRef(({ className, ...props }, ref) => {
|
|
4015
|
+
return /* @__PURE__ */ jsx43(
|
|
3834
4016
|
"div",
|
|
3835
4017
|
{
|
|
3836
4018
|
ref,
|
|
@@ -3841,8 +4023,8 @@ var SidebarHeader = React40.forwardRef(({ className, ...props }, ref) => {
|
|
|
3841
4023
|
);
|
|
3842
4024
|
});
|
|
3843
4025
|
SidebarHeader.displayName = "SidebarHeader";
|
|
3844
|
-
var SidebarFooter =
|
|
3845
|
-
return /* @__PURE__ */
|
|
4026
|
+
var SidebarFooter = React42.forwardRef(({ className, ...props }, ref) => {
|
|
4027
|
+
return /* @__PURE__ */ jsx43(
|
|
3846
4028
|
"div",
|
|
3847
4029
|
{
|
|
3848
4030
|
ref,
|
|
@@ -3853,8 +4035,8 @@ var SidebarFooter = React40.forwardRef(({ className, ...props }, ref) => {
|
|
|
3853
4035
|
);
|
|
3854
4036
|
});
|
|
3855
4037
|
SidebarFooter.displayName = "SidebarFooter";
|
|
3856
|
-
var SidebarSeparator =
|
|
3857
|
-
return /* @__PURE__ */
|
|
4038
|
+
var SidebarSeparator = React42.forwardRef(({ className, ...props }, ref) => {
|
|
4039
|
+
return /* @__PURE__ */ jsx43(
|
|
3858
4040
|
Separator6,
|
|
3859
4041
|
{
|
|
3860
4042
|
ref,
|
|
@@ -3865,8 +4047,8 @@ var SidebarSeparator = React40.forwardRef(({ className, ...props }, ref) => {
|
|
|
3865
4047
|
);
|
|
3866
4048
|
});
|
|
3867
4049
|
SidebarSeparator.displayName = "SidebarSeparator";
|
|
3868
|
-
var SidebarContent =
|
|
3869
|
-
return /* @__PURE__ */
|
|
4050
|
+
var SidebarContent = React42.forwardRef(({ className, ...props }, ref) => {
|
|
4051
|
+
return /* @__PURE__ */ jsx43(
|
|
3870
4052
|
"div",
|
|
3871
4053
|
{
|
|
3872
4054
|
ref,
|
|
@@ -3880,8 +4062,8 @@ var SidebarContent = React40.forwardRef(({ className, ...props }, ref) => {
|
|
|
3880
4062
|
);
|
|
3881
4063
|
});
|
|
3882
4064
|
SidebarContent.displayName = "SidebarContent";
|
|
3883
|
-
var SidebarGroup =
|
|
3884
|
-
return /* @__PURE__ */
|
|
4065
|
+
var SidebarGroup = React42.forwardRef(({ className, ...props }, ref) => {
|
|
4066
|
+
return /* @__PURE__ */ jsx43(
|
|
3885
4067
|
"div",
|
|
3886
4068
|
{
|
|
3887
4069
|
ref,
|
|
@@ -3892,9 +4074,9 @@ var SidebarGroup = React40.forwardRef(({ className, ...props }, ref) => {
|
|
|
3892
4074
|
);
|
|
3893
4075
|
});
|
|
3894
4076
|
SidebarGroup.displayName = "SidebarGroup";
|
|
3895
|
-
var SidebarGroupLabel =
|
|
4077
|
+
var SidebarGroupLabel = React42.forwardRef(({ className, asChild = false, ...props }, ref) => {
|
|
3896
4078
|
const Comp = asChild ? Slot4 : "div";
|
|
3897
|
-
return /* @__PURE__ */
|
|
4079
|
+
return /* @__PURE__ */ jsx43(
|
|
3898
4080
|
Comp,
|
|
3899
4081
|
{
|
|
3900
4082
|
ref,
|
|
@@ -3909,9 +4091,9 @@ var SidebarGroupLabel = React40.forwardRef(({ className, asChild = false, ...pro
|
|
|
3909
4091
|
);
|
|
3910
4092
|
});
|
|
3911
4093
|
SidebarGroupLabel.displayName = "SidebarGroupLabel";
|
|
3912
|
-
var SidebarGroupAction =
|
|
4094
|
+
var SidebarGroupAction = React42.forwardRef(({ className, asChild = false, ...props }, ref) => {
|
|
3913
4095
|
const Comp = asChild ? Slot4 : "button";
|
|
3914
|
-
return /* @__PURE__ */
|
|
4096
|
+
return /* @__PURE__ */ jsx43(
|
|
3915
4097
|
Comp,
|
|
3916
4098
|
{
|
|
3917
4099
|
ref,
|
|
@@ -3928,7 +4110,7 @@ var SidebarGroupAction = React40.forwardRef(({ className, asChild = false, ...pr
|
|
|
3928
4110
|
);
|
|
3929
4111
|
});
|
|
3930
4112
|
SidebarGroupAction.displayName = "SidebarGroupAction";
|
|
3931
|
-
var SidebarGroupContent =
|
|
4113
|
+
var SidebarGroupContent = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx43(
|
|
3932
4114
|
"div",
|
|
3933
4115
|
{
|
|
3934
4116
|
ref,
|
|
@@ -3938,7 +4120,7 @@ var SidebarGroupContent = React40.forwardRef(({ className, ...props }, ref) => /
|
|
|
3938
4120
|
}
|
|
3939
4121
|
));
|
|
3940
4122
|
SidebarGroupContent.displayName = "SidebarGroupContent";
|
|
3941
|
-
var SidebarMenu =
|
|
4123
|
+
var SidebarMenu = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx43(
|
|
3942
4124
|
"ul",
|
|
3943
4125
|
{
|
|
3944
4126
|
ref,
|
|
@@ -3948,7 +4130,7 @@ var SidebarMenu = React40.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
3948
4130
|
}
|
|
3949
4131
|
));
|
|
3950
4132
|
SidebarMenu.displayName = "SidebarMenu";
|
|
3951
|
-
var SidebarMenuItem =
|
|
4133
|
+
var SidebarMenuItem = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx43(
|
|
3952
4134
|
"li",
|
|
3953
4135
|
{
|
|
3954
4136
|
ref,
|
|
@@ -3958,7 +4140,7 @@ var SidebarMenuItem = React40.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
3958
4140
|
}
|
|
3959
4141
|
));
|
|
3960
4142
|
SidebarMenuItem.displayName = "SidebarMenuItem";
|
|
3961
|
-
var sidebarMenuButtonVariants =
|
|
4143
|
+
var sidebarMenuButtonVariants = cva13(
|
|
3962
4144
|
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
|
|
3963
4145
|
{
|
|
3964
4146
|
variants: {
|
|
@@ -3978,7 +4160,7 @@ var sidebarMenuButtonVariants = cva12(
|
|
|
3978
4160
|
}
|
|
3979
4161
|
}
|
|
3980
4162
|
);
|
|
3981
|
-
var SidebarMenuButton =
|
|
4163
|
+
var SidebarMenuButton = React42.forwardRef(
|
|
3982
4164
|
({
|
|
3983
4165
|
asChild = false,
|
|
3984
4166
|
isActive = false,
|
|
@@ -3990,7 +4172,7 @@ var SidebarMenuButton = React40.forwardRef(
|
|
|
3990
4172
|
}, ref) => {
|
|
3991
4173
|
const Comp = asChild ? Slot4 : "button";
|
|
3992
4174
|
const { isMobile, state } = useSidebar();
|
|
3993
|
-
const button = /* @__PURE__ */
|
|
4175
|
+
const button = /* @__PURE__ */ jsx43(
|
|
3994
4176
|
Comp,
|
|
3995
4177
|
{
|
|
3996
4178
|
ref,
|
|
@@ -4009,9 +4191,9 @@ var SidebarMenuButton = React40.forwardRef(
|
|
|
4009
4191
|
children: tooltip
|
|
4010
4192
|
};
|
|
4011
4193
|
}
|
|
4012
|
-
return /* @__PURE__ */
|
|
4013
|
-
/* @__PURE__ */
|
|
4014
|
-
/* @__PURE__ */
|
|
4194
|
+
return /* @__PURE__ */ jsxs19(Tooltip2, { children: [
|
|
4195
|
+
/* @__PURE__ */ jsx43(TooltipTrigger, { asChild: true, children: button }),
|
|
4196
|
+
/* @__PURE__ */ jsx43(
|
|
4015
4197
|
TooltipContent,
|
|
4016
4198
|
{
|
|
4017
4199
|
side: "right",
|
|
@@ -4024,9 +4206,9 @@ var SidebarMenuButton = React40.forwardRef(
|
|
|
4024
4206
|
}
|
|
4025
4207
|
);
|
|
4026
4208
|
SidebarMenuButton.displayName = "SidebarMenuButton";
|
|
4027
|
-
var SidebarMenuAction =
|
|
4209
|
+
var SidebarMenuAction = React42.forwardRef(({ className, asChild = false, showOnHover = false, ...props }, ref) => {
|
|
4028
4210
|
const Comp = asChild ? Slot4 : "button";
|
|
4029
|
-
return /* @__PURE__ */
|
|
4211
|
+
return /* @__PURE__ */ jsx43(
|
|
4030
4212
|
Comp,
|
|
4031
4213
|
{
|
|
4032
4214
|
ref,
|
|
@@ -4047,7 +4229,7 @@ var SidebarMenuAction = React40.forwardRef(({ className, asChild = false, showOn
|
|
|
4047
4229
|
);
|
|
4048
4230
|
});
|
|
4049
4231
|
SidebarMenuAction.displayName = "SidebarMenuAction";
|
|
4050
|
-
var SidebarMenuBadge =
|
|
4232
|
+
var SidebarMenuBadge = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx43(
|
|
4051
4233
|
"div",
|
|
4052
4234
|
{
|
|
4053
4235
|
ref,
|
|
@@ -4065,11 +4247,11 @@ var SidebarMenuBadge = React40.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
4065
4247
|
}
|
|
4066
4248
|
));
|
|
4067
4249
|
SidebarMenuBadge.displayName = "SidebarMenuBadge";
|
|
4068
|
-
var SidebarMenuSkeleton =
|
|
4069
|
-
const width =
|
|
4250
|
+
var SidebarMenuSkeleton = React42.forwardRef(({ className, showIcon = false, ...props }, ref) => {
|
|
4251
|
+
const width = React42.useMemo(() => {
|
|
4070
4252
|
return `${Math.floor(Math.random() * 40) + 50}%`;
|
|
4071
4253
|
}, []);
|
|
4072
|
-
return /* @__PURE__ */
|
|
4254
|
+
return /* @__PURE__ */ jsxs19(
|
|
4073
4255
|
"div",
|
|
4074
4256
|
{
|
|
4075
4257
|
ref,
|
|
@@ -4077,14 +4259,14 @@ var SidebarMenuSkeleton = React40.forwardRef(({ className, showIcon = false, ...
|
|
|
4077
4259
|
className: cn("flex h-8 items-center gap-2 rounded-md px-2", className),
|
|
4078
4260
|
...props,
|
|
4079
4261
|
children: [
|
|
4080
|
-
showIcon && /* @__PURE__ */
|
|
4262
|
+
showIcon && /* @__PURE__ */ jsx43(
|
|
4081
4263
|
Skeleton,
|
|
4082
4264
|
{
|
|
4083
4265
|
className: "size-4 rounded-md",
|
|
4084
4266
|
"data-sidebar": "menu-skeleton-icon"
|
|
4085
4267
|
}
|
|
4086
4268
|
),
|
|
4087
|
-
/* @__PURE__ */
|
|
4269
|
+
/* @__PURE__ */ jsx43(
|
|
4088
4270
|
Skeleton,
|
|
4089
4271
|
{
|
|
4090
4272
|
className: "h-4 max-w-[--skeleton-width] flex-1",
|
|
@@ -4099,7 +4281,7 @@ var SidebarMenuSkeleton = React40.forwardRef(({ className, showIcon = false, ...
|
|
|
4099
4281
|
);
|
|
4100
4282
|
});
|
|
4101
4283
|
SidebarMenuSkeleton.displayName = "SidebarMenuSkeleton";
|
|
4102
|
-
var SidebarMenuSub =
|
|
4284
|
+
var SidebarMenuSub = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx43(
|
|
4103
4285
|
"ul",
|
|
4104
4286
|
{
|
|
4105
4287
|
ref,
|
|
@@ -4113,11 +4295,11 @@ var SidebarMenuSub = React40.forwardRef(({ className, ...props }, ref) => /* @__
|
|
|
4113
4295
|
}
|
|
4114
4296
|
));
|
|
4115
4297
|
SidebarMenuSub.displayName = "SidebarMenuSub";
|
|
4116
|
-
var SidebarMenuSubItem =
|
|
4298
|
+
var SidebarMenuSubItem = React42.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx43("li", { ref, ...props }));
|
|
4117
4299
|
SidebarMenuSubItem.displayName = "SidebarMenuSubItem";
|
|
4118
|
-
var SidebarMenuSubButton =
|
|
4300
|
+
var SidebarMenuSubButton = React42.forwardRef(({ asChild = false, size = "md", isActive, className, ...props }, ref) => {
|
|
4119
4301
|
const Comp = asChild ? Slot4 : "a";
|
|
4120
|
-
return /* @__PURE__ */
|
|
4302
|
+
return /* @__PURE__ */ jsx43(
|
|
4121
4303
|
Comp,
|
|
4122
4304
|
{
|
|
4123
4305
|
ref,
|
|
@@ -4139,10 +4321,10 @@ var SidebarMenuSubButton = React40.forwardRef(({ asChild = false, size = "md", i
|
|
|
4139
4321
|
SidebarMenuSubButton.displayName = "SidebarMenuSubButton";
|
|
4140
4322
|
|
|
4141
4323
|
// src/components/ui/slider.tsx
|
|
4142
|
-
import * as
|
|
4324
|
+
import * as React43 from "react";
|
|
4143
4325
|
import * as SliderPrimitive from "@radix-ui/react-slider";
|
|
4144
|
-
import { jsx as
|
|
4145
|
-
var Slider =
|
|
4326
|
+
import { jsx as jsx44, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
4327
|
+
var Slider = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs20(
|
|
4146
4328
|
SliderPrimitive.Root,
|
|
4147
4329
|
{
|
|
4148
4330
|
ref,
|
|
@@ -4152,8 +4334,8 @@ var Slider = React41.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
4152
4334
|
),
|
|
4153
4335
|
...props,
|
|
4154
4336
|
children: [
|
|
4155
|
-
/* @__PURE__ */
|
|
4156
|
-
/* @__PURE__ */
|
|
4337
|
+
/* @__PURE__ */ jsx44(SliderPrimitive.Track, { className: "relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20", children: /* @__PURE__ */ jsx44(SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }),
|
|
4338
|
+
/* @__PURE__ */ jsx44(SliderPrimitive.Thumb, { className: "block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50" })
|
|
4157
4339
|
]
|
|
4158
4340
|
}
|
|
4159
4341
|
));
|
|
@@ -4162,10 +4344,10 @@ Slider.displayName = SliderPrimitive.Root.displayName;
|
|
|
4162
4344
|
// src/components/ui/sonner.tsx
|
|
4163
4345
|
import { useTheme } from "next-themes";
|
|
4164
4346
|
import { Toaster as Sonner } from "sonner";
|
|
4165
|
-
import { jsx as
|
|
4347
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
4166
4348
|
var Toaster = ({ ...props }) => {
|
|
4167
4349
|
const { theme = "system" } = useTheme();
|
|
4168
|
-
return /* @__PURE__ */
|
|
4350
|
+
return /* @__PURE__ */ jsx45(
|
|
4169
4351
|
Sonner,
|
|
4170
4352
|
{
|
|
4171
4353
|
theme,
|
|
@@ -4184,10 +4366,10 @@ var Toaster = ({ ...props }) => {
|
|
|
4184
4366
|
};
|
|
4185
4367
|
|
|
4186
4368
|
// src/components/ui/switch.tsx
|
|
4187
|
-
import * as
|
|
4369
|
+
import * as React44 from "react";
|
|
4188
4370
|
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
|
4189
|
-
import { jsx as
|
|
4190
|
-
var Switch =
|
|
4371
|
+
import { jsx as jsx46 } from "react/jsx-runtime";
|
|
4372
|
+
var Switch = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx46(
|
|
4191
4373
|
SwitchPrimitives.Root,
|
|
4192
4374
|
{
|
|
4193
4375
|
className: cn(
|
|
@@ -4196,7 +4378,7 @@ var Switch = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
4196
4378
|
),
|
|
4197
4379
|
...props,
|
|
4198
4380
|
ref,
|
|
4199
|
-
children: /* @__PURE__ */
|
|
4381
|
+
children: /* @__PURE__ */ jsx46(
|
|
4200
4382
|
SwitchPrimitives.Thumb,
|
|
4201
4383
|
{
|
|
4202
4384
|
className: cn(
|
|
@@ -4209,9 +4391,9 @@ var Switch = React42.forwardRef(({ className, ...props }, ref) => /* @__PURE__ *
|
|
|
4209
4391
|
Switch.displayName = SwitchPrimitives.Root.displayName;
|
|
4210
4392
|
|
|
4211
4393
|
// src/components/ui/table.tsx
|
|
4212
|
-
import * as
|
|
4213
|
-
import { jsx as
|
|
4214
|
-
var Table =
|
|
4394
|
+
import * as React45 from "react";
|
|
4395
|
+
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
4396
|
+
var Table = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx47("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx47(
|
|
4215
4397
|
"table",
|
|
4216
4398
|
{
|
|
4217
4399
|
ref,
|
|
@@ -4220,9 +4402,9 @@ var Table = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
|
4220
4402
|
}
|
|
4221
4403
|
) }));
|
|
4222
4404
|
Table.displayName = "Table";
|
|
4223
|
-
var TableHeader =
|
|
4405
|
+
var TableHeader = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx47("thead", { ref, className: cn("[&_tr]:border-b [&_tr]:border-border", className), ...props }));
|
|
4224
4406
|
TableHeader.displayName = "TableHeader";
|
|
4225
|
-
var TableBody =
|
|
4407
|
+
var TableBody = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx47(
|
|
4226
4408
|
"tbody",
|
|
4227
4409
|
{
|
|
4228
4410
|
ref,
|
|
@@ -4231,7 +4413,7 @@ var TableBody = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
4231
4413
|
}
|
|
4232
4414
|
));
|
|
4233
4415
|
TableBody.displayName = "TableBody";
|
|
4234
|
-
var TableFooter =
|
|
4416
|
+
var TableFooter = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx47(
|
|
4235
4417
|
"tfoot",
|
|
4236
4418
|
{
|
|
4237
4419
|
ref,
|
|
@@ -4243,7 +4425,7 @@ var TableFooter = React43.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
4243
4425
|
}
|
|
4244
4426
|
));
|
|
4245
4427
|
TableFooter.displayName = "TableFooter";
|
|
4246
|
-
var TableRow =
|
|
4428
|
+
var TableRow = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx47(
|
|
4247
4429
|
"tr",
|
|
4248
4430
|
{
|
|
4249
4431
|
ref,
|
|
@@ -4255,7 +4437,7 @@ var TableRow = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
4255
4437
|
}
|
|
4256
4438
|
));
|
|
4257
4439
|
TableRow.displayName = "TableRow";
|
|
4258
|
-
var TableHead =
|
|
4440
|
+
var TableHead = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx47(
|
|
4259
4441
|
"th",
|
|
4260
4442
|
{
|
|
4261
4443
|
ref,
|
|
@@ -4267,7 +4449,7 @@ var TableHead = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
4267
4449
|
}
|
|
4268
4450
|
));
|
|
4269
4451
|
TableHead.displayName = "TableHead";
|
|
4270
|
-
var TableCell =
|
|
4452
|
+
var TableCell = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx47(
|
|
4271
4453
|
"td",
|
|
4272
4454
|
{
|
|
4273
4455
|
ref,
|
|
@@ -4279,7 +4461,7 @@ var TableCell = React43.forwardRef(({ className, ...props }, ref) => /* @__PURE_
|
|
|
4279
4461
|
}
|
|
4280
4462
|
));
|
|
4281
4463
|
TableCell.displayName = "TableCell";
|
|
4282
|
-
var TableCaption =
|
|
4464
|
+
var TableCaption = React45.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx47(
|
|
4283
4465
|
"caption",
|
|
4284
4466
|
{
|
|
4285
4467
|
ref,
|
|
@@ -4290,11 +4472,11 @@ var TableCaption = React43.forwardRef(({ className, ...props }, ref) => /* @__PU
|
|
|
4290
4472
|
TableCaption.displayName = "TableCaption";
|
|
4291
4473
|
|
|
4292
4474
|
// src/components/ui/tabs.tsx
|
|
4293
|
-
import * as
|
|
4475
|
+
import * as React46 from "react";
|
|
4294
4476
|
import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
4295
|
-
import { jsx as
|
|
4477
|
+
import { jsx as jsx48 } from "react/jsx-runtime";
|
|
4296
4478
|
var Tabs = TabsPrimitive.Root;
|
|
4297
|
-
var TabsList =
|
|
4479
|
+
var TabsList = React46.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx48(
|
|
4298
4480
|
TabsPrimitive.List,
|
|
4299
4481
|
{
|
|
4300
4482
|
ref,
|
|
@@ -4306,7 +4488,7 @@ var TabsList = React44.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
4306
4488
|
}
|
|
4307
4489
|
));
|
|
4308
4490
|
TabsList.displayName = TabsPrimitive.List.displayName;
|
|
4309
|
-
var TabsTrigger =
|
|
4491
|
+
var TabsTrigger = React46.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx48(
|
|
4310
4492
|
TabsPrimitive.Trigger,
|
|
4311
4493
|
{
|
|
4312
4494
|
ref,
|
|
@@ -4318,7 +4500,7 @@ var TabsTrigger = React44.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
4318
4500
|
}
|
|
4319
4501
|
));
|
|
4320
4502
|
TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
4321
|
-
var TabsContent =
|
|
4503
|
+
var TabsContent = React46.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx48(
|
|
4322
4504
|
TabsPrimitive.Content,
|
|
4323
4505
|
{
|
|
4324
4506
|
ref,
|
|
@@ -4332,10 +4514,10 @@ var TabsContent = React44.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
4332
4514
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
4333
4515
|
|
|
4334
4516
|
// src/components/ui/textarea.tsx
|
|
4335
|
-
import * as
|
|
4336
|
-
import { jsx as
|
|
4337
|
-
var Textarea =
|
|
4338
|
-
return /* @__PURE__ */
|
|
4517
|
+
import * as React47 from "react";
|
|
4518
|
+
import { jsx as jsx49 } from "react/jsx-runtime";
|
|
4519
|
+
var Textarea = React47.forwardRef(({ className, ...props }, ref) => {
|
|
4520
|
+
return /* @__PURE__ */ jsx49(
|
|
4339
4521
|
"textarea",
|
|
4340
4522
|
{
|
|
4341
4523
|
className: cn(
|
|
@@ -4350,13 +4532,13 @@ var Textarea = React45.forwardRef(({ className, ...props }, ref) => {
|
|
|
4350
4532
|
Textarea.displayName = "Textarea";
|
|
4351
4533
|
|
|
4352
4534
|
// src/components/ui/toast.tsx
|
|
4353
|
-
import * as
|
|
4535
|
+
import * as React48 from "react";
|
|
4354
4536
|
import * as ToastPrimitives from "@radix-ui/react-toast";
|
|
4355
|
-
import { cva as
|
|
4537
|
+
import { cva as cva14 } from "class-variance-authority";
|
|
4356
4538
|
import { X as X3 } from "lucide-react";
|
|
4357
|
-
import { jsx as
|
|
4539
|
+
import { jsx as jsx50 } from "react/jsx-runtime";
|
|
4358
4540
|
var ToastProvider = ToastPrimitives.Provider;
|
|
4359
|
-
var ToastViewport =
|
|
4541
|
+
var ToastViewport = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx50(
|
|
4360
4542
|
ToastPrimitives.Viewport,
|
|
4361
4543
|
{
|
|
4362
4544
|
ref,
|
|
@@ -4368,7 +4550,7 @@ var ToastViewport = React46.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
4368
4550
|
}
|
|
4369
4551
|
));
|
|
4370
4552
|
ToastViewport.displayName = ToastPrimitives.Viewport.displayName;
|
|
4371
|
-
var toastVariants =
|
|
4553
|
+
var toastVariants = cva14(
|
|
4372
4554
|
"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 transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",
|
|
4373
4555
|
{
|
|
4374
4556
|
variants: {
|
|
@@ -4382,8 +4564,8 @@ var toastVariants = cva13(
|
|
|
4382
4564
|
}
|
|
4383
4565
|
}
|
|
4384
4566
|
);
|
|
4385
|
-
var Toast =
|
|
4386
|
-
return /* @__PURE__ */
|
|
4567
|
+
var Toast = React48.forwardRef(({ className, variant, ...props }, ref) => {
|
|
4568
|
+
return /* @__PURE__ */ jsx50(
|
|
4387
4569
|
ToastPrimitives.Root,
|
|
4388
4570
|
{
|
|
4389
4571
|
ref,
|
|
@@ -4393,7 +4575,7 @@ var Toast = React46.forwardRef(({ className, variant, ...props }, ref) => {
|
|
|
4393
4575
|
);
|
|
4394
4576
|
});
|
|
4395
4577
|
Toast.displayName = ToastPrimitives.Root.displayName;
|
|
4396
|
-
var ToastAction =
|
|
4578
|
+
var ToastAction = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx50(
|
|
4397
4579
|
ToastPrimitives.Action,
|
|
4398
4580
|
{
|
|
4399
4581
|
ref,
|
|
@@ -4405,7 +4587,7 @@ var ToastAction = React46.forwardRef(({ className, ...props }, ref) => /* @__PUR
|
|
|
4405
4587
|
}
|
|
4406
4588
|
));
|
|
4407
4589
|
ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
4408
|
-
var ToastClose =
|
|
4590
|
+
var ToastClose = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx50(
|
|
4409
4591
|
ToastPrimitives.Close,
|
|
4410
4592
|
{
|
|
4411
4593
|
ref,
|
|
@@ -4415,11 +4597,11 @@ var ToastClose = React46.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
4415
4597
|
),
|
|
4416
4598
|
"toast-close": "",
|
|
4417
4599
|
...props,
|
|
4418
|
-
children: /* @__PURE__ */
|
|
4600
|
+
children: /* @__PURE__ */ jsx50(X3, { className: "h-4 w-4" })
|
|
4419
4601
|
}
|
|
4420
4602
|
));
|
|
4421
4603
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
4422
|
-
var ToastTitle =
|
|
4604
|
+
var ToastTitle = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx50(
|
|
4423
4605
|
ToastPrimitives.Title,
|
|
4424
4606
|
{
|
|
4425
4607
|
ref,
|
|
@@ -4428,7 +4610,7 @@ var ToastTitle = React46.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
4428
4610
|
}
|
|
4429
4611
|
));
|
|
4430
4612
|
ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
4431
|
-
var ToastDescription =
|
|
4613
|
+
var ToastDescription = React48.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx50(
|
|
4432
4614
|
ToastPrimitives.Description,
|
|
4433
4615
|
{
|
|
4434
4616
|
ref,
|
|
@@ -4439,30 +4621,30 @@ var ToastDescription = React46.forwardRef(({ className, ...props }, ref) => /* @
|
|
|
4439
4621
|
ToastDescription.displayName = ToastPrimitives.Description.displayName;
|
|
4440
4622
|
|
|
4441
4623
|
// src/components/ui/toaster.tsx
|
|
4442
|
-
import { jsx as
|
|
4624
|
+
import { jsx as jsx51, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
4443
4625
|
function Toaster2() {
|
|
4444
4626
|
const { toasts } = useToast();
|
|
4445
|
-
return /* @__PURE__ */
|
|
4627
|
+
return /* @__PURE__ */ jsxs21(ToastProvider, { children: [
|
|
4446
4628
|
toasts.map(function({ id, title, description, action, ...props }) {
|
|
4447
|
-
return /* @__PURE__ */
|
|
4448
|
-
/* @__PURE__ */
|
|
4449
|
-
title && /* @__PURE__ */
|
|
4450
|
-
description && /* @__PURE__ */
|
|
4629
|
+
return /* @__PURE__ */ jsxs21(Toast, { ...props, children: [
|
|
4630
|
+
/* @__PURE__ */ jsxs21("div", { className: "grid gap-1", children: [
|
|
4631
|
+
title && /* @__PURE__ */ jsx51(ToastTitle, { children: title }),
|
|
4632
|
+
description && /* @__PURE__ */ jsx51(ToastDescription, { children: description })
|
|
4451
4633
|
] }),
|
|
4452
4634
|
action,
|
|
4453
|
-
/* @__PURE__ */
|
|
4635
|
+
/* @__PURE__ */ jsx51(ToastClose, {})
|
|
4454
4636
|
] }, id);
|
|
4455
4637
|
}),
|
|
4456
|
-
/* @__PURE__ */
|
|
4638
|
+
/* @__PURE__ */ jsx51(ToastViewport, {})
|
|
4457
4639
|
] });
|
|
4458
4640
|
}
|
|
4459
4641
|
|
|
4460
4642
|
// src/components/ui/toggle.tsx
|
|
4461
|
-
import * as
|
|
4643
|
+
import * as React49 from "react";
|
|
4462
4644
|
import * as TogglePrimitive from "@radix-ui/react-toggle";
|
|
4463
|
-
import { cva as
|
|
4464
|
-
import { jsx as
|
|
4465
|
-
var toggleVariants =
|
|
4645
|
+
import { cva as cva15 } from "class-variance-authority";
|
|
4646
|
+
import { jsx as jsx52 } from "react/jsx-runtime";
|
|
4647
|
+
var toggleVariants = cva15(
|
|
4466
4648
|
"inline-flex items-center justify-center gap-2 rounded-md text-sm transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
4467
4649
|
{
|
|
4468
4650
|
variants: {
|
|
@@ -4482,7 +4664,7 @@ var toggleVariants = cva14(
|
|
|
4482
4664
|
}
|
|
4483
4665
|
}
|
|
4484
4666
|
);
|
|
4485
|
-
var Toggle =
|
|
4667
|
+
var Toggle = React49.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsx52(
|
|
4486
4668
|
TogglePrimitive.Root,
|
|
4487
4669
|
{
|
|
4488
4670
|
ref,
|
|
@@ -4493,26 +4675,26 @@ var Toggle = React47.forwardRef(({ className, variant, size, ...props }, ref) =>
|
|
|
4493
4675
|
Toggle.displayName = TogglePrimitive.Root.displayName;
|
|
4494
4676
|
|
|
4495
4677
|
// src/components/ui/toggle-group.tsx
|
|
4496
|
-
import * as
|
|
4678
|
+
import * as React50 from "react";
|
|
4497
4679
|
import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
|
|
4498
|
-
import { jsx as
|
|
4499
|
-
var ToggleGroupContext =
|
|
4680
|
+
import { jsx as jsx53 } from "react/jsx-runtime";
|
|
4681
|
+
var ToggleGroupContext = React50.createContext({
|
|
4500
4682
|
size: "default",
|
|
4501
4683
|
variant: "default"
|
|
4502
4684
|
});
|
|
4503
|
-
var ToggleGroup =
|
|
4685
|
+
var ToggleGroup = React50.forwardRef(({ className, variant, size, children, ...props }, ref) => /* @__PURE__ */ jsx53(
|
|
4504
4686
|
ToggleGroupPrimitive.Root,
|
|
4505
4687
|
{
|
|
4506
4688
|
ref,
|
|
4507
4689
|
className: cn("flex items-center justify-center gap-1", className),
|
|
4508
4690
|
...props,
|
|
4509
|
-
children: /* @__PURE__ */
|
|
4691
|
+
children: /* @__PURE__ */ jsx53(ToggleGroupContext.Provider, { value: { variant, size }, children })
|
|
4510
4692
|
}
|
|
4511
4693
|
));
|
|
4512
4694
|
ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
|
|
4513
|
-
var ToggleGroupItem =
|
|
4514
|
-
const context =
|
|
4515
|
-
return /* @__PURE__ */
|
|
4695
|
+
var ToggleGroupItem = React50.forwardRef(({ className, children, variant, size, ...props }, ref) => {
|
|
4696
|
+
const context = React50.useContext(ToggleGroupContext);
|
|
4697
|
+
return /* @__PURE__ */ jsx53(
|
|
4516
4698
|
ToggleGroupPrimitive.Item,
|
|
4517
4699
|
{
|
|
4518
4700
|
ref,
|
|
@@ -4553,6 +4735,7 @@ export {
|
|
|
4553
4735
|
AvatarFallback,
|
|
4554
4736
|
AvatarImage,
|
|
4555
4737
|
Badge,
|
|
4738
|
+
BaseStyles,
|
|
4556
4739
|
Box,
|
|
4557
4740
|
Breadcrumb,
|
|
4558
4741
|
BreadcrumbEllipsis,
|
|
@@ -4706,6 +4889,7 @@ export {
|
|
|
4706
4889
|
ResizablePanelGroup,
|
|
4707
4890
|
ScrollArea,
|
|
4708
4891
|
ScrollBar,
|
|
4892
|
+
Section,
|
|
4709
4893
|
Select,
|
|
4710
4894
|
SelectContent,
|
|
4711
4895
|
SelectGroup,
|
|
@@ -4792,6 +4976,7 @@ export {
|
|
|
4792
4976
|
gridVariants,
|
|
4793
4977
|
headingVariants,
|
|
4794
4978
|
navigationMenuTriggerStyle,
|
|
4979
|
+
sectionVariants,
|
|
4795
4980
|
stackVariants,
|
|
4796
4981
|
textVariants,
|
|
4797
4982
|
toast,
|