crm-project-ui 0.1.6 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs DELETED
@@ -1,2662 +0,0 @@
1
- 'use strict';
2
-
3
- var lucideReact = require('lucide-react');
4
- var React9 = require('react');
5
- var clsx = require('clsx');
6
- var tailwindMerge = require('tailwind-merge');
7
- var AccordionPrimitive = require('@radix-ui/react-accordion');
8
- var jsxRuntime = require('react/jsx-runtime');
9
- var classVarianceAuthority = require('class-variance-authority');
10
- var reactSlot = require('@radix-ui/react-slot');
11
- var AlertDialogPrimitive = require('@radix-ui/react-alert-dialog');
12
- var AvatarPrimitive = require('@radix-ui/react-avatar');
13
- var reactDayPicker = require('react-day-picker');
14
- var useEmblaCarousel = require('embla-carousel-react');
15
- var CheckboxPrimitive = require('@radix-ui/react-checkbox');
16
- var CollapsiblePrimitive = require('@radix-ui/react-collapsible');
17
- var cmdk = require('cmdk');
18
- var DialogPrimitive = require('@radix-ui/react-dialog');
19
- var ContextMenuPrimitive = require('@radix-ui/react-context-menu');
20
- var vaul = require('vaul');
21
- var DropdownMenuPrimitive = require('@radix-ui/react-dropdown-menu');
22
- var reactHookForm = require('react-hook-form');
23
- var LabelPrimitive = require('@radix-ui/react-label');
24
- var HoverCardPrimitive = require('@radix-ui/react-hover-card');
25
- var MenubarPrimitive = require('@radix-ui/react-menubar');
26
- var NavigationMenuPrimitive = require('@radix-ui/react-navigation-menu');
27
- var PopoverPrimitive = require('@radix-ui/react-popover');
28
- var ProgressPrimitive = require('@radix-ui/react-progress');
29
- var RadioGroupPrimitive = require('@radix-ui/react-radio-group');
30
- var ResizablePrimitive = require('react-resizable-panels');
31
- var ScrollAreaPrimitive = require('@radix-ui/react-scroll-area');
32
- var SelectPrimitive = require('@radix-ui/react-select');
33
- var SeparatorPrimitive = require('@radix-ui/react-separator');
34
- var SliderPrimitive = require('@radix-ui/react-slider');
35
- var SwitchPrimitives = require('@radix-ui/react-switch');
36
- var TabsPrimitive = require('@radix-ui/react-tabs');
37
- var sonner = require('sonner');
38
- var TogglePrimitive = require('@radix-ui/react-toggle');
39
- var TooltipPrimitive = require('@radix-ui/react-tooltip');
40
- var usehooksTs = require('usehooks-ts');
41
-
42
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
43
-
44
- function _interopNamespace(e) {
45
- if (e && e.__esModule) return e;
46
- var n = Object.create(null);
47
- if (e) {
48
- Object.keys(e).forEach(function (k) {
49
- if (k !== 'default') {
50
- var d = Object.getOwnPropertyDescriptor(e, k);
51
- Object.defineProperty(n, k, d.get ? d : {
52
- enumerable: true,
53
- get: function () { return e[k]; }
54
- });
55
- }
56
- });
57
- }
58
- n.default = e;
59
- return Object.freeze(n);
60
- }
61
-
62
- var React9__namespace = /*#__PURE__*/_interopNamespace(React9);
63
- var AccordionPrimitive__namespace = /*#__PURE__*/_interopNamespace(AccordionPrimitive);
64
- var AlertDialogPrimitive__namespace = /*#__PURE__*/_interopNamespace(AlertDialogPrimitive);
65
- var AvatarPrimitive__namespace = /*#__PURE__*/_interopNamespace(AvatarPrimitive);
66
- var useEmblaCarousel__default = /*#__PURE__*/_interopDefault(useEmblaCarousel);
67
- var CheckboxPrimitive__namespace = /*#__PURE__*/_interopNamespace(CheckboxPrimitive);
68
- var CollapsiblePrimitive__namespace = /*#__PURE__*/_interopNamespace(CollapsiblePrimitive);
69
- var DialogPrimitive__namespace = /*#__PURE__*/_interopNamespace(DialogPrimitive);
70
- var ContextMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(ContextMenuPrimitive);
71
- var DropdownMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(DropdownMenuPrimitive);
72
- var LabelPrimitive__namespace = /*#__PURE__*/_interopNamespace(LabelPrimitive);
73
- var HoverCardPrimitive__namespace = /*#__PURE__*/_interopNamespace(HoverCardPrimitive);
74
- var MenubarPrimitive__namespace = /*#__PURE__*/_interopNamespace(MenubarPrimitive);
75
- var NavigationMenuPrimitive__namespace = /*#__PURE__*/_interopNamespace(NavigationMenuPrimitive);
76
- var PopoverPrimitive__namespace = /*#__PURE__*/_interopNamespace(PopoverPrimitive);
77
- var ProgressPrimitive__namespace = /*#__PURE__*/_interopNamespace(ProgressPrimitive);
78
- var RadioGroupPrimitive__namespace = /*#__PURE__*/_interopNamespace(RadioGroupPrimitive);
79
- var ResizablePrimitive__namespace = /*#__PURE__*/_interopNamespace(ResizablePrimitive);
80
- var ScrollAreaPrimitive__namespace = /*#__PURE__*/_interopNamespace(ScrollAreaPrimitive);
81
- var SelectPrimitive__namespace = /*#__PURE__*/_interopNamespace(SelectPrimitive);
82
- var SeparatorPrimitive__namespace = /*#__PURE__*/_interopNamespace(SeparatorPrimitive);
83
- var SliderPrimitive__namespace = /*#__PURE__*/_interopNamespace(SliderPrimitive);
84
- var SwitchPrimitives__namespace = /*#__PURE__*/_interopNamespace(SwitchPrimitives);
85
- var TabsPrimitive__namespace = /*#__PURE__*/_interopNamespace(TabsPrimitive);
86
- var TogglePrimitive__namespace = /*#__PURE__*/_interopNamespace(TogglePrimitive);
87
- var TooltipPrimitive__namespace = /*#__PURE__*/_interopNamespace(TooltipPrimitive);
88
-
89
- function cn(...inputs) {
90
- return tailwindMerge.twMerge(clsx.clsx(inputs));
91
- }
92
- var Accordion = AccordionPrimitive__namespace.Root;
93
- var AccordionItem = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
94
- AccordionPrimitive__namespace.Item,
95
- {
96
- className: cn("border-b", className),
97
- ref,
98
- ...props
99
- }
100
- ));
101
- AccordionItem.displayName = "AccordionItem";
102
- var AccordionTrigger = React9__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Header, { className: "flex", children: /* @__PURE__ */ jsxRuntime.jsxs(
103
- AccordionPrimitive__namespace.Trigger,
104
- {
105
- className: cn(
106
- "flex flex-1 items-center justify-between py-4 text-left text-sm font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",
107
- className
108
- ),
109
- ref,
110
- ...props,
111
- children: [
112
- children,
113
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: "text-muted-foreground h-4 w-4 shrink-0 transition-transform duration-200" })
114
- ]
115
- }
116
- ) }));
117
- AccordionTrigger.displayName = AccordionPrimitive__namespace.Trigger.displayName;
118
- var AccordionContent = React9__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
119
- AccordionPrimitive__namespace.Content,
120
- {
121
- className: "data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",
122
- ref,
123
- ...props,
124
- children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("pt-0 pb-4", className), children })
125
- }
126
- ));
127
- AccordionContent.displayName = AccordionPrimitive__namespace.Content.displayName;
128
- var alertVariants = classVarianceAuthority.cva(
129
- "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",
130
- {
131
- variants: {
132
- variant: {
133
- default: "bg-background text-foreground",
134
- destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
135
- }
136
- },
137
- defaultVariants: {
138
- variant: "default"
139
- }
140
- }
141
- );
142
- var Alert = React9__namespace.forwardRef(({ className, variant, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
143
- "div",
144
- {
145
- className: cn(alertVariants({ variant }), className),
146
- ref,
147
- role: "alert",
148
- ...props
149
- }
150
- ));
151
- Alert.displayName = "Alert";
152
- var AlertTitle = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
153
- "h5",
154
- {
155
- className: cn("mb-1 leading-none font-medium tracking-tight", className),
156
- ref,
157
- ...props
158
- }
159
- ));
160
- AlertTitle.displayName = "AlertTitle";
161
- var AlertDescription = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
162
- "div",
163
- {
164
- className: cn("text-sm [&_p]:leading-relaxed", className),
165
- ref,
166
- ...props
167
- }
168
- ));
169
- AlertDescription.displayName = "AlertDescription";
170
- var buttonVariants = classVarianceAuthority.cva(
171
- "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium 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",
172
- {
173
- variants: {
174
- variant: {
175
- default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
176
- destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
177
- outline: "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
178
- secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
179
- ghost: "hover:bg-accent hover:text-accent-foreground",
180
- link: "text-primary underline-offset-4 hover:underline"
181
- },
182
- size: {
183
- default: "h-9 px-4 py-2",
184
- sm: "h-8 rounded-md px-3 text-xs",
185
- lg: "h-10 rounded-md px-8",
186
- icon: "h-9 w-9"
187
- }
188
- },
189
- defaultVariants: {
190
- variant: "default",
191
- size: "default"
192
- }
193
- }
194
- );
195
- var Button = React9__namespace.forwardRef(
196
- ({ className, variant, size, asChild = false, ...props }, ref) => {
197
- const Comp = asChild ? reactSlot.Slot : "button";
198
- return /* @__PURE__ */ jsxRuntime.jsx(
199
- Comp,
200
- {
201
- className: cn(buttonVariants({ variant, size, className })),
202
- ref,
203
- ...props
204
- }
205
- );
206
- }
207
- );
208
- Button.displayName = "Button";
209
- var AlertDialog = AlertDialogPrimitive__namespace.Root;
210
- var AlertDialogTrigger = AlertDialogPrimitive__namespace.Trigger;
211
- var AlertDialogPortal = AlertDialogPrimitive__namespace.Portal;
212
- var AlertDialogOverlay = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
213
- AlertDialogPrimitive__namespace.Overlay,
214
- {
215
- className: cn(
216
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",
217
- className
218
- ),
219
- ...props,
220
- ref
221
- }
222
- ));
223
- AlertDialogOverlay.displayName = AlertDialogPrimitive__namespace.Overlay.displayName;
224
- var AlertDialogContent = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(AlertDialogPortal, { children: [
225
- /* @__PURE__ */ jsxRuntime.jsx(AlertDialogOverlay, {}),
226
- /* @__PURE__ */ jsxRuntime.jsx(
227
- AlertDialogPrimitive__namespace.Content,
228
- {
229
- className: cn(
230
- "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg",
231
- className
232
- ),
233
- ref,
234
- ...props
235
- }
236
- )
237
- ] }));
238
- AlertDialogContent.displayName = AlertDialogPrimitive__namespace.Content.displayName;
239
- var AlertDialogHeader = ({
240
- className,
241
- ...props
242
- }) => /* @__PURE__ */ jsxRuntime.jsx(
243
- "div",
244
- {
245
- className: cn(
246
- "flex flex-col space-y-2 text-center sm:text-left",
247
- className
248
- ),
249
- ...props
250
- }
251
- );
252
- AlertDialogHeader.displayName = "AlertDialogHeader";
253
- var AlertDialogFooter = ({
254
- className,
255
- ...props
256
- }) => /* @__PURE__ */ jsxRuntime.jsx(
257
- "div",
258
- {
259
- className: cn(
260
- "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
261
- className
262
- ),
263
- ...props
264
- }
265
- );
266
- AlertDialogFooter.displayName = "AlertDialogFooter";
267
- var AlertDialogTitle = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
268
- AlertDialogPrimitive__namespace.Title,
269
- {
270
- className: cn("text-lg font-semibold", className),
271
- ref,
272
- ...props
273
- }
274
- ));
275
- AlertDialogTitle.displayName = AlertDialogPrimitive__namespace.Title.displayName;
276
- var AlertDialogDescription = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
277
- AlertDialogPrimitive__namespace.Description,
278
- {
279
- className: cn("text-muted-foreground text-sm", className),
280
- ref,
281
- ...props
282
- }
283
- ));
284
- AlertDialogDescription.displayName = AlertDialogPrimitive__namespace.Description.displayName;
285
- var AlertDialogAction = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
286
- AlertDialogPrimitive__namespace.Action,
287
- {
288
- className: cn(buttonVariants(), className),
289
- ref,
290
- ...props
291
- }
292
- ));
293
- AlertDialogAction.displayName = AlertDialogPrimitive__namespace.Action.displayName;
294
- var AlertDialogCancel = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
295
- AlertDialogPrimitive__namespace.Cancel,
296
- {
297
- className: cn(
298
- buttonVariants({ variant: "outline" }),
299
- "mt-2 sm:mt-0",
300
- className
301
- ),
302
- ref,
303
- ...props
304
- }
305
- ));
306
- AlertDialogCancel.displayName = AlertDialogPrimitive__namespace.Cancel.displayName;
307
- var Avatar = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
308
- AvatarPrimitive__namespace.Root,
309
- {
310
- className: cn(
311
- "relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
312
- className
313
- ),
314
- ref,
315
- ...props
316
- }
317
- ));
318
- Avatar.displayName = AvatarPrimitive__namespace.Root.displayName;
319
- var AvatarImage = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
320
- AvatarPrimitive__namespace.Image,
321
- {
322
- className: cn("aspect-square h-full w-full", className),
323
- ref,
324
- ...props
325
- }
326
- ));
327
- AvatarImage.displayName = AvatarPrimitive__namespace.Image.displayName;
328
- var AvatarFallback = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
329
- AvatarPrimitive__namespace.Fallback,
330
- {
331
- className: cn(
332
- "bg-muted flex h-full w-full items-center justify-center rounded-full",
333
- className
334
- ),
335
- ref,
336
- ...props
337
- }
338
- ));
339
- AvatarFallback.displayName = AvatarPrimitive__namespace.Fallback.displayName;
340
- var badgeVariants = classVarianceAuthority.cva(
341
- "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
342
- {
343
- variants: {
344
- variant: {
345
- default: "border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",
346
- secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
347
- destructive: "border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",
348
- outline: "text-foreground"
349
- }
350
- },
351
- defaultVariants: {
352
- variant: "default"
353
- }
354
- }
355
- );
356
- function Badge({ className, variant, ...props }) {
357
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn(badgeVariants({ variant }), className), ...props });
358
- }
359
- var Breadcrumb = React9__namespace.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("nav", { "aria-label": "breadcrumb", ref, ...props }));
360
- Breadcrumb.displayName = "Breadcrumb";
361
- var BreadcrumbList = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
362
- "ol",
363
- {
364
- className: cn(
365
- "text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm wrap-break-word sm:gap-2.5",
366
- className
367
- ),
368
- ref,
369
- ...props
370
- }
371
- ));
372
- BreadcrumbList.displayName = "BreadcrumbList";
373
- var BreadcrumbItem = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
374
- "li",
375
- {
376
- className: cn("inline-flex items-center gap-1.5", className),
377
- ref,
378
- ...props
379
- }
380
- ));
381
- BreadcrumbItem.displayName = "BreadcrumbItem";
382
- var BreadcrumbLink = React9__namespace.forwardRef(({ asChild, className, ...props }, ref) => {
383
- const Comp = asChild ? reactSlot.Slot : "a";
384
- return /* @__PURE__ */ jsxRuntime.jsx(
385
- Comp,
386
- {
387
- className: cn("hover:text-foreground transition-colors", className),
388
- ref,
389
- ...props
390
- }
391
- );
392
- });
393
- BreadcrumbLink.displayName = "BreadcrumbLink";
394
- var BreadcrumbPage = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
395
- "span",
396
- {
397
- "aria-current": "page",
398
- "aria-disabled": "true",
399
- className: cn("text-foreground font-normal", className),
400
- ref,
401
- role: "link",
402
- ...props
403
- }
404
- ));
405
- BreadcrumbPage.displayName = "BreadcrumbPage";
406
- var BreadcrumbSeparator = ({
407
- children,
408
- className,
409
- ...props
410
- }) => /* @__PURE__ */ jsxRuntime.jsx(
411
- "li",
412
- {
413
- "aria-hidden": "true",
414
- className: cn("[&>svg]:h-3.5 [&>svg]:w-3.5", className),
415
- role: "presentation",
416
- ...props,
417
- children: children ?? /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, {})
418
- }
419
- );
420
- BreadcrumbSeparator.displayName = "BreadcrumbSeparator";
421
- var BreadcrumbEllipsis = ({
422
- className,
423
- ...props
424
- }) => /* @__PURE__ */ jsxRuntime.jsxs(
425
- "span",
426
- {
427
- "aria-hidden": "true",
428
- className: cn("flex h-9 w-9 items-center justify-center", className),
429
- role: "presentation",
430
- ...props,
431
- children: [
432
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MoreHorizontal, { className: "h-4 w-4" }),
433
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "More" })
434
- ]
435
- }
436
- );
437
- BreadcrumbEllipsis.displayName = "BreadcrumbElipssis";
438
- function Calendar({
439
- className,
440
- classNames,
441
- showOutsideDays = true,
442
- captionLayout = "label",
443
- buttonVariant = "ghost",
444
- formatters,
445
- components,
446
- ...props
447
- }) {
448
- const defaultClassNames = reactDayPicker.getDefaultClassNames();
449
- return /* @__PURE__ */ jsxRuntime.jsx(
450
- reactDayPicker.DayPicker,
451
- {
452
- className: cn(
453
- "bg-background group/calendar p-3 [--cell-size:2rem] in-data-[slot=card-content]:bg-transparent in-data-[slot=popover-content]:bg-transparent",
454
- String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
455
- String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
456
- className
457
- ),
458
- classNames: {
459
- root: cn("w-fit", defaultClassNames.root),
460
- months: cn(
461
- "relative flex flex-col gap-4 md:flex-row",
462
- defaultClassNames.months
463
- ),
464
- month: cn("flex w-full flex-col gap-4", defaultClassNames.month),
465
- nav: cn(
466
- "absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",
467
- defaultClassNames.nav
468
- ),
469
- button_previous: cn(
470
- buttonVariants({ variant: buttonVariant }),
471
- "h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50",
472
- defaultClassNames.button_previous
473
- ),
474
- button_next: cn(
475
- buttonVariants({ variant: buttonVariant }),
476
- "h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50",
477
- defaultClassNames.button_next
478
- ),
479
- month_caption: cn(
480
- "flex h-[--cell-size] w-full items-center justify-center px-[--cell-size]",
481
- defaultClassNames.month_caption
482
- ),
483
- dropdowns: cn(
484
- "flex h-[--cell-size] w-full items-center justify-center gap-1.5 text-sm font-medium",
485
- defaultClassNames.dropdowns
486
- ),
487
- dropdown_root: cn(
488
- "has-focus:border-ring border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] relative rounded-md border",
489
- defaultClassNames.dropdown_root
490
- ),
491
- dropdown: cn(
492
- "bg-popover absolute inset-0 opacity-0",
493
- defaultClassNames.dropdown
494
- ),
495
- caption_label: cn(
496
- "select-none font-medium",
497
- captionLayout === "label" ? "text-sm" : "[&>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md pl-2 pr-1 text-sm [&>svg]:size-3.5",
498
- defaultClassNames.caption_label
499
- ),
500
- table: "w-full border-collapse",
501
- weekdays: cn("flex", defaultClassNames.weekdays),
502
- weekday: cn(
503
- "text-muted-foreground flex-1 select-none rounded-md text-[0.8rem] font-normal",
504
- defaultClassNames.weekday
505
- ),
506
- week: cn("mt-2 flex w-full", defaultClassNames.week),
507
- week_number_header: cn(
508
- "w-[--cell-size] select-none",
509
- defaultClassNames.week_number_header
510
- ),
511
- week_number: cn(
512
- "text-muted-foreground select-none text-[0.8rem]",
513
- defaultClassNames.week_number
514
- ),
515
- day: cn(
516
- "group/day relative aspect-square h-full w-full select-none p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md",
517
- defaultClassNames.day
518
- ),
519
- range_start: cn(
520
- "bg-accent rounded-l-md",
521
- defaultClassNames.range_start
522
- ),
523
- range_middle: cn("rounded-none", defaultClassNames.range_middle),
524
- range_end: cn("bg-accent rounded-r-md", defaultClassNames.range_end),
525
- today: cn(
526
- "bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",
527
- defaultClassNames.today
528
- ),
529
- outside: cn(
530
- "text-muted-foreground aria-selected:text-muted-foreground",
531
- defaultClassNames.outside
532
- ),
533
- disabled: cn(
534
- "text-muted-foreground opacity-50",
535
- defaultClassNames.disabled
536
- ),
537
- hidden: cn("invisible", defaultClassNames.hidden),
538
- ...classNames
539
- },
540
- components: {
541
- Root: ({ className: className2, rootRef, ...props2 }) => {
542
- return /* @__PURE__ */ jsxRuntime.jsx(
543
- "div",
544
- {
545
- className: cn(className2),
546
- "data-slot": "calendar",
547
- ref: rootRef,
548
- ...props2
549
- }
550
- );
551
- },
552
- Chevron: ({ className: className2, orientation, ...props2 }) => {
553
- if (orientation === "left") {
554
- return /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeftIcon, { className: cn("size-4", className2), ...props2 });
555
- }
556
- if (orientation === "right") {
557
- return /* @__PURE__ */ jsxRuntime.jsx(
558
- lucideReact.ChevronRightIcon,
559
- {
560
- className: cn("size-4", className2),
561
- ...props2
562
- }
563
- );
564
- }
565
- return /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDownIcon, { className: cn("size-4", className2), ...props2 });
566
- },
567
- DayButton: CalendarDayButton,
568
- WeekNumber: ({ children, ...props2 }) => {
569
- return /* @__PURE__ */ jsxRuntime.jsx("td", { ...props2, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex size-[--cell-size] items-center justify-center text-center", children }) });
570
- },
571
- ...components
572
- },
573
- formatters: {
574
- formatMonthDropdown: (date) => date.toLocaleString("default", { month: "short" }),
575
- ...formatters
576
- },
577
- captionLayout,
578
- showOutsideDays,
579
- ...props
580
- }
581
- );
582
- }
583
- function CalendarDayButton({
584
- className,
585
- day,
586
- modifiers,
587
- ...props
588
- }) {
589
- const defaultClassNames = reactDayPicker.getDefaultClassNames();
590
- const ref = React9__namespace.useRef(null);
591
- React9__namespace.useEffect(() => {
592
- if (modifiers.focused) ref.current?.focus();
593
- }, [modifiers.focused]);
594
- return /* @__PURE__ */ jsxRuntime.jsx(
595
- Button,
596
- {
597
- className: cn(
598
- "data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 flex aspect-square h-auto w-full min-w-[--cell-size] flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md [&>span]:text-xs [&>span]:opacity-70",
599
- defaultClassNames.day,
600
- className
601
- ),
602
- "data-selected-single": modifiers.selected && !modifiers.range_start && !modifiers.range_end && !modifiers.range_middle,
603
- "data-day": day.date.toLocaleDateString(),
604
- "data-range-end": modifiers.range_end,
605
- "data-range-middle": modifiers.range_middle,
606
- "data-range-start": modifiers.range_start,
607
- ref,
608
- size: "icon",
609
- variant: "ghost",
610
- ...props
611
- }
612
- );
613
- }
614
- var Card = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
615
- "div",
616
- {
617
- className: cn(
618
- "bg-card text-card-foreground rounded-xl border shadow",
619
- className
620
- ),
621
- ref,
622
- ...props
623
- }
624
- ));
625
- Card.displayName = "Card";
626
- var CardHeader = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
627
- "div",
628
- {
629
- className: cn("flex flex-col space-y-1.5 p-6", className),
630
- ref,
631
- ...props
632
- }
633
- ));
634
- CardHeader.displayName = "CardHeader";
635
- var CardTitle = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
636
- "div",
637
- {
638
- className: cn("leading-none font-semibold tracking-tight", className),
639
- ref,
640
- ...props
641
- }
642
- ));
643
- CardTitle.displayName = "CardTitle";
644
- var CardDescription = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
645
- "div",
646
- {
647
- className: cn("text-muted-foreground text-sm", className),
648
- ref,
649
- ...props
650
- }
651
- ));
652
- CardDescription.displayName = "CardDescription";
653
- var CardContent = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("p-6 pt-0", className), ref, ...props }));
654
- CardContent.displayName = "CardContent";
655
- var CardFooter = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
656
- "div",
657
- {
658
- className: cn("flex items-center p-6 pt-0", className),
659
- ref,
660
- ...props
661
- }
662
- ));
663
- CardFooter.displayName = "CardFooter";
664
- var CarouselContext = React9__namespace.createContext(null);
665
- function useCarousel() {
666
- const context = React9__namespace.useContext(CarouselContext);
667
- if (!context) {
668
- throw new Error("useCarousel must be used within a <Carousel />");
669
- }
670
- return context;
671
- }
672
- var Carousel = React9__namespace.forwardRef(
673
- ({
674
- orientation = "horizontal",
675
- opts,
676
- setApi,
677
- plugins,
678
- className,
679
- children,
680
- ...props
681
- }, ref) => {
682
- const [carouselRef, api] = useEmblaCarousel__default.default(
683
- {
684
- ...opts,
685
- axis: orientation === "horizontal" ? "x" : "y"
686
- },
687
- plugins
688
- );
689
- const [canScrollPrev, setCanScrollPrev] = React9__namespace.useState(false);
690
- const [canScrollNext, setCanScrollNext] = React9__namespace.useState(false);
691
- const onSelect = React9__namespace.useCallback((api2) => {
692
- if (!api2) {
693
- return;
694
- }
695
- setCanScrollPrev(api2.canScrollPrev());
696
- setCanScrollNext(api2.canScrollNext());
697
- }, []);
698
- const scrollPrev = React9__namespace.useCallback(() => {
699
- api?.scrollPrev();
700
- }, [api]);
701
- const scrollNext = React9__namespace.useCallback(() => {
702
- api?.scrollNext();
703
- }, [api]);
704
- const handleKeyDown = React9__namespace.useCallback(
705
- (event) => {
706
- if (event.key === "ArrowLeft") {
707
- event.preventDefault();
708
- scrollPrev();
709
- } else if (event.key === "ArrowRight") {
710
- event.preventDefault();
711
- scrollNext();
712
- }
713
- },
714
- [scrollPrev, scrollNext]
715
- );
716
- React9__namespace.useEffect(() => {
717
- if (!api || !setApi) {
718
- return;
719
- }
720
- setApi(api);
721
- }, [api, setApi]);
722
- React9__namespace.useEffect(() => {
723
- if (!api) {
724
- return;
725
- }
726
- onSelect(api);
727
- api.on("reInit", onSelect);
728
- api.on("select", onSelect);
729
- return () => {
730
- api?.off("select", onSelect);
731
- };
732
- }, [api, onSelect]);
733
- return /* @__PURE__ */ jsxRuntime.jsx(
734
- CarouselContext.Provider,
735
- {
736
- value: {
737
- carouselRef,
738
- api,
739
- opts,
740
- orientation: orientation || (opts?.axis === "y" ? "vertical" : "horizontal"),
741
- scrollPrev,
742
- scrollNext,
743
- canScrollPrev,
744
- canScrollNext
745
- },
746
- children: /* @__PURE__ */ jsxRuntime.jsx(
747
- "div",
748
- {
749
- "aria-roledescription": "carousel",
750
- className: cn("relative", className),
751
- onKeyDownCapture: handleKeyDown,
752
- ref,
753
- role: "region",
754
- ...props,
755
- children
756
- }
757
- )
758
- }
759
- );
760
- }
761
- );
762
- Carousel.displayName = "Carousel";
763
- var CarouselContent = React9__namespace.forwardRef(({ className, ...props }, ref) => {
764
- const { carouselRef, orientation } = useCarousel();
765
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "overflow-hidden", ref: carouselRef, children: /* @__PURE__ */ jsxRuntime.jsx(
766
- "div",
767
- {
768
- className: cn(
769
- "flex",
770
- orientation === "horizontal" ? "-ml-4" : "-mt-4 flex-col",
771
- className
772
- ),
773
- ref,
774
- ...props
775
- }
776
- ) });
777
- });
778
- CarouselContent.displayName = "CarouselContent";
779
- var CarouselItem = React9__namespace.forwardRef(({ className, ...props }, ref) => {
780
- const { orientation } = useCarousel();
781
- return /* @__PURE__ */ jsxRuntime.jsx(
782
- "div",
783
- {
784
- className: cn(
785
- "min-w-0 shrink-0 grow-0 basis-full",
786
- orientation === "horizontal" ? "pl-4" : "pt-4",
787
- className
788
- ),
789
- "aria-roledescription": "slide",
790
- ref,
791
- role: "group",
792
- ...props
793
- }
794
- );
795
- });
796
- CarouselItem.displayName = "CarouselItem";
797
- var CarouselPrevious = React9__namespace.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
798
- const { orientation, scrollPrev, canScrollPrev } = useCarousel();
799
- return /* @__PURE__ */ jsxRuntime.jsxs(
800
- Button,
801
- {
802
- className: cn(
803
- "absolute h-8 w-8 rounded-full",
804
- orientation === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
805
- className
806
- ),
807
- disabled: !canScrollPrev,
808
- onClick: scrollPrev,
809
- ref,
810
- size,
811
- variant,
812
- ...props,
813
- children: [
814
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowLeft, { className: "h-4 w-4" }),
815
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Previous slide" })
816
- ]
817
- }
818
- );
819
- });
820
- CarouselPrevious.displayName = "CarouselPrevious";
821
- var CarouselNext = React9__namespace.forwardRef(({ className, variant = "outline", size = "icon", ...props }, ref) => {
822
- const { orientation, scrollNext, canScrollNext } = useCarousel();
823
- return /* @__PURE__ */ jsxRuntime.jsxs(
824
- Button,
825
- {
826
- className: cn(
827
- "absolute h-8 w-8 rounded-full",
828
- orientation === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
829
- className
830
- ),
831
- disabled: !canScrollNext,
832
- onClick: scrollNext,
833
- ref,
834
- size,
835
- variant,
836
- ...props,
837
- children: [
838
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ArrowRight, { className: "h-4 w-4" }),
839
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Next slide" })
840
- ]
841
- }
842
- );
843
- });
844
- CarouselNext.displayName = "CarouselNext";
845
- var Checkbox = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
846
- CheckboxPrimitive__namespace.Root,
847
- {
848
- className: cn(
849
- "peer border-primary focus-visible:ring-ring data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground grid h-4 w-4 shrink-0 place-content-center rounded-sm border shadow focus-visible:ring-1 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",
850
- className
851
- ),
852
- ref,
853
- ...props,
854
- children: /* @__PURE__ */ jsxRuntime.jsx(
855
- CheckboxPrimitive__namespace.Indicator,
856
- {
857
- className: cn("grid place-content-center text-current"),
858
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-4 w-4" })
859
- }
860
- )
861
- }
862
- ));
863
- Checkbox.displayName = CheckboxPrimitive__namespace.Root.displayName;
864
- var Collapsible = CollapsiblePrimitive__namespace.Root;
865
- var CollapsibleTrigger2 = CollapsiblePrimitive__namespace.CollapsibleTrigger;
866
- var CollapsibleContent2 = CollapsiblePrimitive__namespace.CollapsibleContent;
867
- var Dialog = DialogPrimitive__namespace.Root;
868
- var DialogTrigger = DialogPrimitive__namespace.Trigger;
869
- var DialogPortal = DialogPrimitive__namespace.Portal;
870
- var DialogClose = DialogPrimitive__namespace.Close;
871
- var DialogOverlay = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
872
- DialogPrimitive__namespace.Overlay,
873
- {
874
- className: cn(
875
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",
876
- className
877
- ),
878
- ref,
879
- ...props
880
- }
881
- ));
882
- DialogOverlay.displayName = DialogPrimitive__namespace.Overlay.displayName;
883
- var DialogContent = React9__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(DialogPortal, { children: [
884
- /* @__PURE__ */ jsxRuntime.jsx(DialogOverlay, {}),
885
- /* @__PURE__ */ jsxRuntime.jsxs(
886
- DialogPrimitive__namespace.Content,
887
- {
888
- className: cn(
889
- "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] fixed top-[50%] left-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border p-6 shadow-lg duration-200 sm:rounded-lg",
890
- className
891
- ),
892
- ref,
893
- ...props,
894
- children: [
895
- children,
896
- /* @__PURE__ */ jsxRuntime.jsxs(DialogPrimitive__namespace.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none", children: [
897
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-4 w-4" }),
898
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
899
- ] })
900
- ]
901
- }
902
- )
903
- ] }));
904
- DialogContent.displayName = DialogPrimitive__namespace.Content.displayName;
905
- var DialogHeader = ({
906
- className,
907
- ...props
908
- }) => /* @__PURE__ */ jsxRuntime.jsx(
909
- "div",
910
- {
911
- className: cn(
912
- "flex flex-col space-y-1.5 text-center sm:text-left",
913
- className
914
- ),
915
- ...props
916
- }
917
- );
918
- DialogHeader.displayName = "DialogHeader";
919
- var DialogFooter = ({
920
- className,
921
- ...props
922
- }) => /* @__PURE__ */ jsxRuntime.jsx(
923
- "div",
924
- {
925
- className: cn(
926
- "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
927
- className
928
- ),
929
- ...props
930
- }
931
- );
932
- DialogFooter.displayName = "DialogFooter";
933
- var DialogTitle = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
934
- DialogPrimitive__namespace.Title,
935
- {
936
- className: cn(
937
- "text-lg leading-none font-semibold tracking-tight",
938
- className
939
- ),
940
- ref,
941
- ...props
942
- }
943
- ));
944
- DialogTitle.displayName = DialogPrimitive__namespace.Title.displayName;
945
- var DialogDescription = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
946
- DialogPrimitive__namespace.Description,
947
- {
948
- className: cn("text-muted-foreground text-sm", className),
949
- ref,
950
- ...props
951
- }
952
- ));
953
- DialogDescription.displayName = DialogPrimitive__namespace.Description.displayName;
954
- var Command = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
955
- cmdk.Command,
956
- {
957
- className: cn(
958
- "bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
959
- className
960
- ),
961
- ref,
962
- ...props
963
- }
964
- ));
965
- Command.displayName = cmdk.Command.displayName;
966
- var CommandDialog = ({ children, ...props }) => {
967
- return /* @__PURE__ */ jsxRuntime.jsx(Dialog, { ...props, children: /* @__PURE__ */ jsxRuntime.jsx(DialogContent, { className: "overflow-hidden p-0", children: /* @__PURE__ */ jsxRuntime.jsx(Command, { className: "**:[[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5 **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group]]:px-2 **:[[cmdk-input]]:h-12 **:[[cmdk-item]]:px-2 **:[[cmdk-item]]:py-3", children }) }) });
968
- };
969
- var CommandInput = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center border-b px-3", children: [
970
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Search, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }),
971
- /* @__PURE__ */ jsxRuntime.jsx(
972
- cmdk.Command.Input,
973
- {
974
- className: cn(
975
- "placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-50",
976
- className
977
- ),
978
- ref,
979
- ...props
980
- }
981
- )
982
- ] }));
983
- CommandInput.displayName = cmdk.Command.Input.displayName;
984
- var CommandList = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
985
- cmdk.Command.List,
986
- {
987
- className: cn("max-h-[300px] overflow-x-hidden overflow-y-auto", className),
988
- ref,
989
- ...props
990
- }
991
- ));
992
- CommandList.displayName = cmdk.Command.List.displayName;
993
- var CommandEmpty = React9__namespace.forwardRef((props, ref) => /* @__PURE__ */ jsxRuntime.jsx(
994
- cmdk.Command.Empty,
995
- {
996
- className: "py-6 text-center text-sm",
997
- ref,
998
- ...props
999
- }
1000
- ));
1001
- CommandEmpty.displayName = cmdk.Command.Empty.displayName;
1002
- var CommandGroup = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1003
- cmdk.Command.Group,
1004
- {
1005
- className: cn(
1006
- "text-foreground **:[[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium",
1007
- className
1008
- ),
1009
- ref,
1010
- ...props
1011
- }
1012
- ));
1013
- CommandGroup.displayName = cmdk.Command.Group.displayName;
1014
- var CommandSeparator = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1015
- cmdk.Command.Separator,
1016
- {
1017
- className: cn("bg-border -mx-1 h-px", className),
1018
- ref,
1019
- ...props
1020
- }
1021
- ));
1022
- CommandSeparator.displayName = cmdk.Command.Separator.displayName;
1023
- var CommandItem = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1024
- cmdk.Command.Item,
1025
- {
1026
- className: cn(
1027
- "data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
1028
- className
1029
- ),
1030
- ref,
1031
- ...props
1032
- }
1033
- ));
1034
- CommandItem.displayName = cmdk.Command.Item.displayName;
1035
- var CommandShortcut = ({
1036
- className,
1037
- ...props
1038
- }) => {
1039
- return /* @__PURE__ */ jsxRuntime.jsx(
1040
- "span",
1041
- {
1042
- className: cn(
1043
- "text-muted-foreground ml-auto text-xs tracking-widest",
1044
- className
1045
- ),
1046
- ...props
1047
- }
1048
- );
1049
- };
1050
- CommandShortcut.displayName = "CommandShortcut";
1051
- var ContextMenu = ContextMenuPrimitive__namespace.Root;
1052
- var ContextMenuTrigger = ContextMenuPrimitive__namespace.Trigger;
1053
- var ContextMenuGroup = ContextMenuPrimitive__namespace.Group;
1054
- var ContextMenuPortal = ContextMenuPrimitive__namespace.Portal;
1055
- var ContextMenuSub = ContextMenuPrimitive__namespace.Sub;
1056
- var ContextMenuRadioGroup = ContextMenuPrimitive__namespace.RadioGroup;
1057
- var ContextMenuSubTrigger = React9__namespace.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
1058
- ContextMenuPrimitive__namespace.SubTrigger,
1059
- {
1060
- className: cn(
1061
- "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none",
1062
- inset && "pl-8",
1063
- className
1064
- ),
1065
- ref,
1066
- ...props,
1067
- children: [
1068
- children,
1069
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "ml-auto h-4 w-4" })
1070
- ]
1071
- }
1072
- ));
1073
- ContextMenuSubTrigger.displayName = ContextMenuPrimitive__namespace.SubTrigger.displayName;
1074
- var ContextMenuSubContent = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1075
- ContextMenuPrimitive__namespace.SubContent,
1076
- {
1077
- className: cn(
1078
- "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-[--radix-context-menu-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-lg",
1079
- className
1080
- ),
1081
- ref,
1082
- ...props
1083
- }
1084
- ));
1085
- ContextMenuSubContent.displayName = ContextMenuPrimitive__namespace.SubContent.displayName;
1086
- var ContextMenuContent = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
1087
- ContextMenuPrimitive__namespace.Content,
1088
- {
1089
- className: cn(
1090
- "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-[--radix-context-menu-content-available-height] min-w-[8rem] origin-[--radix-context-menu-content-transform-origin] overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
1091
- className
1092
- ),
1093
- ref,
1094
- ...props
1095
- }
1096
- ) }));
1097
- ContextMenuContent.displayName = ContextMenuPrimitive__namespace.Content.displayName;
1098
- var ContextMenuItem = React9__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1099
- ContextMenuPrimitive__namespace.Item,
1100
- {
1101
- className: cn(
1102
- "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-disabled:pointer-events-none data-disabled:opacity-50",
1103
- inset && "pl-8",
1104
- className
1105
- ),
1106
- ref,
1107
- ...props
1108
- }
1109
- ));
1110
- ContextMenuItem.displayName = ContextMenuPrimitive__namespace.Item.displayName;
1111
- var ContextMenuCheckboxItem = React9__namespace.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
1112
- ContextMenuPrimitive__namespace.CheckboxItem,
1113
- {
1114
- className: cn(
1115
- "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-disabled:pointer-events-none data-disabled:opacity-50",
1116
- className
1117
- ),
1118
- checked,
1119
- ref,
1120
- ...props,
1121
- children: [
1122
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-4 w-4" }) }) }),
1123
- children
1124
- ]
1125
- }
1126
- ));
1127
- ContextMenuCheckboxItem.displayName = ContextMenuPrimitive__namespace.CheckboxItem.displayName;
1128
- var ContextMenuRadioItem = React9__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
1129
- ContextMenuPrimitive__namespace.RadioItem,
1130
- {
1131
- className: cn(
1132
- "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-disabled:pointer-events-none data-disabled:opacity-50",
1133
- className
1134
- ),
1135
- ref,
1136
- ...props,
1137
- children: [
1138
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(ContextMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Circle, { className: "h-4 w-4 fill-current" }) }) }),
1139
- children
1140
- ]
1141
- }
1142
- ));
1143
- ContextMenuRadioItem.displayName = ContextMenuPrimitive__namespace.RadioItem.displayName;
1144
- var ContextMenuLabel = React9__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1145
- ContextMenuPrimitive__namespace.Label,
1146
- {
1147
- className: cn(
1148
- "text-foreground px-2 py-1.5 text-sm font-semibold",
1149
- inset && "pl-8",
1150
- className
1151
- ),
1152
- ref,
1153
- ...props
1154
- }
1155
- ));
1156
- ContextMenuLabel.displayName = ContextMenuPrimitive__namespace.Label.displayName;
1157
- var ContextMenuSeparator = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1158
- ContextMenuPrimitive__namespace.Separator,
1159
- {
1160
- className: cn("bg-border -mx-1 my-1 h-px", className),
1161
- ref,
1162
- ...props
1163
- }
1164
- ));
1165
- ContextMenuSeparator.displayName = ContextMenuPrimitive__namespace.Separator.displayName;
1166
- var ContextMenuShortcut = ({
1167
- className,
1168
- ...props
1169
- }) => {
1170
- return /* @__PURE__ */ jsxRuntime.jsx(
1171
- "span",
1172
- {
1173
- className: cn(
1174
- "text-muted-foreground ml-auto text-xs tracking-widest",
1175
- className
1176
- ),
1177
- ...props
1178
- }
1179
- );
1180
- };
1181
- ContextMenuShortcut.displayName = "ContextMenuShortcut";
1182
- var Drawer = ({
1183
- shouldScaleBackground = true,
1184
- ...props
1185
- }) => /* @__PURE__ */ jsxRuntime.jsx(
1186
- vaul.Drawer.Root,
1187
- {
1188
- shouldScaleBackground,
1189
- ...props
1190
- }
1191
- );
1192
- Drawer.displayName = "Drawer";
1193
- var DrawerTrigger = vaul.Drawer.Trigger;
1194
- var DrawerPortal = vaul.Drawer.Portal;
1195
- var DrawerClose = vaul.Drawer.Close;
1196
- var DrawerOverlay = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1197
- vaul.Drawer.Overlay,
1198
- {
1199
- className: cn("fixed inset-0 z-50 bg-black/80", className),
1200
- ref,
1201
- ...props
1202
- }
1203
- ));
1204
- DrawerOverlay.displayName = vaul.Drawer.Overlay.displayName;
1205
- var DrawerContent = React9__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(DrawerPortal, { children: [
1206
- /* @__PURE__ */ jsxRuntime.jsx(DrawerOverlay, {}),
1207
- /* @__PURE__ */ jsxRuntime.jsxs(
1208
- vaul.Drawer.Content,
1209
- {
1210
- className: cn(
1211
- "bg-background fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border",
1212
- className
1213
- ),
1214
- ref,
1215
- ...props,
1216
- children: [
1217
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-muted mx-auto mt-4 h-2 w-[100px] rounded-full" }),
1218
- children
1219
- ]
1220
- }
1221
- )
1222
- ] }));
1223
- DrawerContent.displayName = "DrawerContent";
1224
- var DrawerHeader = ({
1225
- className,
1226
- ...props
1227
- }) => /* @__PURE__ */ jsxRuntime.jsx(
1228
- "div",
1229
- {
1230
- className: cn("grid gap-1.5 p-4 text-center sm:text-left", className),
1231
- ...props
1232
- }
1233
- );
1234
- DrawerHeader.displayName = "DrawerHeader";
1235
- var DrawerFooter = ({
1236
- className,
1237
- ...props
1238
- }) => /* @__PURE__ */ jsxRuntime.jsx(
1239
- "div",
1240
- {
1241
- className: cn("mt-auto flex flex-col gap-2 p-4", className),
1242
- ...props
1243
- }
1244
- );
1245
- DrawerFooter.displayName = "DrawerFooter";
1246
- var DrawerTitle = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1247
- vaul.Drawer.Title,
1248
- {
1249
- className: cn(
1250
- "text-lg leading-none font-semibold tracking-tight",
1251
- className
1252
- ),
1253
- ref,
1254
- ...props
1255
- }
1256
- ));
1257
- DrawerTitle.displayName = vaul.Drawer.Title.displayName;
1258
- var DrawerDescription = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1259
- vaul.Drawer.Description,
1260
- {
1261
- className: cn("text-muted-foreground text-sm", className),
1262
- ref,
1263
- ...props
1264
- }
1265
- ));
1266
- DrawerDescription.displayName = vaul.Drawer.Description.displayName;
1267
- var DropdownMenu = DropdownMenuPrimitive__namespace.Root;
1268
- var DropdownMenuTrigger = DropdownMenuPrimitive__namespace.Trigger;
1269
- var DropdownMenuGroup = DropdownMenuPrimitive__namespace.Group;
1270
- var DropdownMenuPortal = DropdownMenuPrimitive__namespace.Portal;
1271
- var DropdownMenuSub = DropdownMenuPrimitive__namespace.Sub;
1272
- var DropdownMenuRadioGroup = DropdownMenuPrimitive__namespace.RadioGroup;
1273
- var DropdownMenuSubTrigger = React9__namespace.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
1274
- DropdownMenuPrimitive__namespace.SubTrigger,
1275
- {
1276
- className: cn(
1277
- "focus:bg-accent data-[state=open]:bg-accent flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none select-none [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
1278
- inset && "pl-8",
1279
- className
1280
- ),
1281
- ref,
1282
- ...props,
1283
- children: [
1284
- children,
1285
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "ml-auto" })
1286
- ]
1287
- }
1288
- ));
1289
- DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive__namespace.SubTrigger.displayName;
1290
- var DropdownMenuSubContent = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1291
- DropdownMenuPrimitive__namespace.SubContent,
1292
- {
1293
- className: cn(
1294
- "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-[--radix-dropdown-menu-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-lg",
1295
- className
1296
- ),
1297
- ref,
1298
- ...props
1299
- }
1300
- ));
1301
- DropdownMenuSubContent.displayName = DropdownMenuPrimitive__namespace.SubContent.displayName;
1302
- var DropdownMenuContent = React9__namespace.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
1303
- DropdownMenuPrimitive__namespace.Content,
1304
- {
1305
- className: cn(
1306
- "bg-popover text-popover-foreground z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
1307
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-dropdown-menu-content-transform-origin]",
1308
- className
1309
- ),
1310
- ref,
1311
- sideOffset,
1312
- ...props
1313
- }
1314
- ) }));
1315
- DropdownMenuContent.displayName = DropdownMenuPrimitive__namespace.Content.displayName;
1316
- var DropdownMenuItem = React9__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1317
- DropdownMenuPrimitive__namespace.Item,
1318
- {
1319
- className: cn(
1320
- "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm transition-colors outline-none select-none data-disabled:pointer-events-none data-disabled:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
1321
- inset && "pl-8",
1322
- className
1323
- ),
1324
- ref,
1325
- ...props
1326
- }
1327
- ));
1328
- DropdownMenuItem.displayName = DropdownMenuPrimitive__namespace.Item.displayName;
1329
- var DropdownMenuCheckboxItem = React9__namespace.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
1330
- DropdownMenuPrimitive__namespace.CheckboxItem,
1331
- {
1332
- className: cn(
1333
- "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-disabled:pointer-events-none data-disabled:opacity-50",
1334
- className
1335
- ),
1336
- checked,
1337
- ref,
1338
- ...props,
1339
- children: [
1340
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-4 w-4" }) }) }),
1341
- children
1342
- ]
1343
- }
1344
- ));
1345
- DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive__namespace.CheckboxItem.displayName;
1346
- var DropdownMenuRadioItem = React9__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
1347
- DropdownMenuPrimitive__namespace.RadioItem,
1348
- {
1349
- className: cn(
1350
- "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm transition-colors outline-none select-none data-disabled:pointer-events-none data-disabled:opacity-50",
1351
- className
1352
- ),
1353
- ref,
1354
- ...props,
1355
- children: [
1356
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(DropdownMenuPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Circle, { className: "h-2 w-2 fill-current" }) }) }),
1357
- children
1358
- ]
1359
- }
1360
- ));
1361
- DropdownMenuRadioItem.displayName = DropdownMenuPrimitive__namespace.RadioItem.displayName;
1362
- var DropdownMenuLabel = React9__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1363
- DropdownMenuPrimitive__namespace.Label,
1364
- {
1365
- className: cn(
1366
- "px-2 py-1.5 text-sm font-semibold",
1367
- inset && "pl-8",
1368
- className
1369
- ),
1370
- ref,
1371
- ...props
1372
- }
1373
- ));
1374
- DropdownMenuLabel.displayName = DropdownMenuPrimitive__namespace.Label.displayName;
1375
- var DropdownMenuSeparator = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1376
- DropdownMenuPrimitive__namespace.Separator,
1377
- {
1378
- className: cn("bg-muted -mx-1 my-1 h-px", className),
1379
- ref,
1380
- ...props
1381
- }
1382
- ));
1383
- DropdownMenuSeparator.displayName = DropdownMenuPrimitive__namespace.Separator.displayName;
1384
- var DropdownMenuShortcut = ({
1385
- className,
1386
- ...props
1387
- }) => {
1388
- return /* @__PURE__ */ jsxRuntime.jsx(
1389
- "span",
1390
- {
1391
- className: cn("ml-auto text-xs tracking-widest opacity-60", className),
1392
- ...props
1393
- }
1394
- );
1395
- };
1396
- DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
1397
- var labelVariants = classVarianceAuthority.cva(
1398
- "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
1399
- );
1400
- var Label3 = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1401
- LabelPrimitive__namespace.Root,
1402
- {
1403
- className: cn(labelVariants(), className),
1404
- ref,
1405
- ...props
1406
- }
1407
- ));
1408
- Label3.displayName = LabelPrimitive__namespace.Root.displayName;
1409
- var Form = reactHookForm.FormProvider;
1410
- var FormFieldContext = React9__namespace.createContext(null);
1411
- var FormField = ({
1412
- ...props
1413
- }) => {
1414
- return /* @__PURE__ */ jsxRuntime.jsx(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsxRuntime.jsx(reactHookForm.Controller, { ...props }) });
1415
- };
1416
- var useFormField = () => {
1417
- const fieldContext = React9__namespace.useContext(FormFieldContext);
1418
- const itemContext = React9__namespace.useContext(FormItemContext);
1419
- const { getFieldState, formState } = reactHookForm.useFormContext();
1420
- if (!fieldContext) {
1421
- throw new Error("useFormField should be used within <FormField>");
1422
- }
1423
- if (!itemContext) {
1424
- throw new Error("useFormField should be used within <FormItem>");
1425
- }
1426
- const fieldState = getFieldState(fieldContext.name, formState);
1427
- const { id: id2 } = itemContext;
1428
- return {
1429
- id: id2,
1430
- name: fieldContext.name,
1431
- formItemId: `${id2}-form-item`,
1432
- formDescriptionId: `${id2}-form-item-description`,
1433
- formMessageId: `${id2}-form-item-message`,
1434
- ...fieldState
1435
- };
1436
- };
1437
- var FormItemContext = React9__namespace.createContext(null);
1438
- var FormItem = React9__namespace.forwardRef(({ className, ...props }, ref) => {
1439
- const id2 = React9__namespace.useId();
1440
- return /* @__PURE__ */ jsxRuntime.jsx(FormItemContext.Provider, { value: { id: id2 }, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("space-y-2", className), ref, ...props }) });
1441
- });
1442
- FormItem.displayName = "FormItem";
1443
- var FormLabel = React9__namespace.forwardRef(({ className, ...props }, ref) => {
1444
- const { error, formItemId } = useFormField();
1445
- return /* @__PURE__ */ jsxRuntime.jsx(
1446
- Label3,
1447
- {
1448
- className: cn(error && "text-destructive", className),
1449
- htmlFor: formItemId,
1450
- ref,
1451
- ...props
1452
- }
1453
- );
1454
- });
1455
- FormLabel.displayName = "FormLabel";
1456
- var FormControl = React9__namespace.forwardRef(({ ...props }, ref) => {
1457
- const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
1458
- return /* @__PURE__ */ jsxRuntime.jsx(
1459
- reactSlot.Slot,
1460
- {
1461
- "aria-describedby": !error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`,
1462
- "aria-invalid": !!error,
1463
- id: formItemId,
1464
- ref,
1465
- ...props
1466
- }
1467
- );
1468
- });
1469
- FormControl.displayName = "FormControl";
1470
- var FormDescription = React9__namespace.forwardRef(({ className, ...props }, ref) => {
1471
- const { formDescriptionId } = useFormField();
1472
- return /* @__PURE__ */ jsxRuntime.jsx(
1473
- "p",
1474
- {
1475
- className: cn("text-muted-foreground text-[0.8rem]", className),
1476
- id: formDescriptionId,
1477
- ref,
1478
- ...props
1479
- }
1480
- );
1481
- });
1482
- FormDescription.displayName = "FormDescription";
1483
- var FormMessage = React9__namespace.forwardRef(({ className, children, ...props }, ref) => {
1484
- const { error, formMessageId } = useFormField();
1485
- const body = error ? String(error?.message ?? "") : children;
1486
- if (!body) {
1487
- return null;
1488
- }
1489
- return /* @__PURE__ */ jsxRuntime.jsx(
1490
- "p",
1491
- {
1492
- className: cn("text-destructive text-[0.8rem] font-medium", className),
1493
- id: formMessageId,
1494
- ref,
1495
- ...props,
1496
- children: body
1497
- }
1498
- );
1499
- });
1500
- FormMessage.displayName = "FormMessage";
1501
- var HoverCard = HoverCardPrimitive__namespace.Root;
1502
- var HoverCardTrigger = HoverCardPrimitive__namespace.Trigger;
1503
- var HoverCardContent = React9__namespace.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1504
- HoverCardPrimitive__namespace.Content,
1505
- {
1506
- className: cn(
1507
- "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-64 origin-[--radix-hover-card-content-transform-origin] rounded-md border p-4 shadow-md outline-none",
1508
- className
1509
- ),
1510
- align,
1511
- ref,
1512
- sideOffset,
1513
- ...props
1514
- }
1515
- ));
1516
- HoverCardContent.displayName = HoverCardPrimitive__namespace.Content.displayName;
1517
- var Input = React9__namespace.forwardRef(
1518
- ({ className, type, ...props }, ref) => {
1519
- return /* @__PURE__ */ jsxRuntime.jsx(
1520
- "input",
1521
- {
1522
- className: cn(
1523
- "border-input file:text-foreground placeholder:text-muted-foreground focus-visible:ring-ring flex h-9 w-full rounded-md border bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-1 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
1524
- className
1525
- ),
1526
- ref,
1527
- type,
1528
- ...props
1529
- }
1530
- );
1531
- }
1532
- );
1533
- Input.displayName = "Input";
1534
- function MenubarMenu({
1535
- ...props
1536
- }) {
1537
- return /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.Menu, { ...props });
1538
- }
1539
- function MenubarGroup({
1540
- ...props
1541
- }) {
1542
- return /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.Group, { ...props });
1543
- }
1544
- function MenubarPortal({
1545
- ...props
1546
- }) {
1547
- return /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.Portal, { ...props });
1548
- }
1549
- function MenubarRadioGroup({
1550
- ...props
1551
- }) {
1552
- return /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.RadioGroup, { ...props });
1553
- }
1554
- function MenubarSub({
1555
- ...props
1556
- }) {
1557
- return /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.Sub, { "data-slot": "menubar-sub", ...props });
1558
- }
1559
- var Menubar = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1560
- MenubarPrimitive__namespace.Root,
1561
- {
1562
- className: cn(
1563
- "bg-background flex h-9 items-center space-x-1 rounded-md border p-1 shadow-sm",
1564
- className
1565
- ),
1566
- ref,
1567
- ...props
1568
- }
1569
- ));
1570
- Menubar.displayName = MenubarPrimitive__namespace.Root.displayName;
1571
- var MenubarTrigger = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1572
- MenubarPrimitive__namespace.Trigger,
1573
- {
1574
- className: cn(
1575
- "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-3 py-1 text-sm font-medium outline-none select-none",
1576
- className
1577
- ),
1578
- ref,
1579
- ...props
1580
- }
1581
- ));
1582
- MenubarTrigger.displayName = MenubarPrimitive__namespace.Trigger.displayName;
1583
- var MenubarSubTrigger = React9__namespace.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
1584
- MenubarPrimitive__namespace.SubTrigger,
1585
- {
1586
- className: cn(
1587
- "focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none",
1588
- inset && "pl-8",
1589
- className
1590
- ),
1591
- ref,
1592
- ...props,
1593
- children: [
1594
- children,
1595
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "ml-auto h-4 w-4" })
1596
- ]
1597
- }
1598
- ));
1599
- MenubarSubTrigger.displayName = MenubarPrimitive__namespace.SubTrigger.displayName;
1600
- var MenubarSubContent = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1601
- MenubarPrimitive__namespace.SubContent,
1602
- {
1603
- className: cn(
1604
- "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-[--radix-menubar-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-lg",
1605
- className
1606
- ),
1607
- ref,
1608
- ...props
1609
- }
1610
- ));
1611
- MenubarSubContent.displayName = MenubarPrimitive__namespace.SubContent.displayName;
1612
- var MenubarContent = React9__namespace.forwardRef(
1613
- ({ className, align = "start", alignOffset = -4, sideOffset = 8, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
1614
- MenubarPrimitive__namespace.Content,
1615
- {
1616
- className: cn(
1617
- "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[12rem] origin-[--radix-menubar-content-transform-origin] overflow-hidden rounded-md border p-1 shadow-md",
1618
- className
1619
- ),
1620
- align,
1621
- alignOffset,
1622
- ref,
1623
- sideOffset,
1624
- ...props
1625
- }
1626
- ) })
1627
- );
1628
- MenubarContent.displayName = MenubarPrimitive__namespace.Content.displayName;
1629
- var MenubarItem = React9__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1630
- MenubarPrimitive__namespace.Item,
1631
- {
1632
- className: cn(
1633
- "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm px-2 py-1.5 text-sm outline-none select-none data-disabled:pointer-events-none data-disabled:opacity-50",
1634
- inset && "pl-8",
1635
- className
1636
- ),
1637
- ref,
1638
- ...props
1639
- }
1640
- ));
1641
- MenubarItem.displayName = MenubarPrimitive__namespace.Item.displayName;
1642
- var MenubarCheckboxItem = React9__namespace.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
1643
- MenubarPrimitive__namespace.CheckboxItem,
1644
- {
1645
- className: cn(
1646
- "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-disabled:pointer-events-none data-disabled:opacity-50",
1647
- className
1648
- ),
1649
- checked,
1650
- ref,
1651
- ...props,
1652
- children: [
1653
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-4 w-4" }) }) }),
1654
- children
1655
- ]
1656
- }
1657
- ));
1658
- MenubarCheckboxItem.displayName = MenubarPrimitive__namespace.CheckboxItem.displayName;
1659
- var MenubarRadioItem = React9__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
1660
- MenubarPrimitive__namespace.RadioItem,
1661
- {
1662
- className: cn(
1663
- "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center rounded-sm py-1.5 pr-2 pl-8 text-sm outline-none select-none data-disabled:pointer-events-none data-disabled:opacity-50",
1664
- className
1665
- ),
1666
- ref,
1667
- ...props,
1668
- children: [
1669
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(MenubarPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Circle, { className: "h-4 w-4 fill-current" }) }) }),
1670
- children
1671
- ]
1672
- }
1673
- ));
1674
- MenubarRadioItem.displayName = MenubarPrimitive__namespace.RadioItem.displayName;
1675
- var MenubarLabel = React9__namespace.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1676
- MenubarPrimitive__namespace.Label,
1677
- {
1678
- className: cn(
1679
- "px-2 py-1.5 text-sm font-semibold",
1680
- inset && "pl-8",
1681
- className
1682
- ),
1683
- ref,
1684
- ...props
1685
- }
1686
- ));
1687
- MenubarLabel.displayName = MenubarPrimitive__namespace.Label.displayName;
1688
- var MenubarSeparator = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1689
- MenubarPrimitive__namespace.Separator,
1690
- {
1691
- className: cn("bg-muted -mx-1 my-1 h-px", className),
1692
- ref,
1693
- ...props
1694
- }
1695
- ));
1696
- MenubarSeparator.displayName = MenubarPrimitive__namespace.Separator.displayName;
1697
- var MenubarShortcut = ({
1698
- className,
1699
- ...props
1700
- }) => {
1701
- return /* @__PURE__ */ jsxRuntime.jsx(
1702
- "span",
1703
- {
1704
- className: cn(
1705
- "text-muted-foreground ml-auto text-xs tracking-widest",
1706
- className
1707
- ),
1708
- ...props
1709
- }
1710
- );
1711
- };
1712
- MenubarShortcut.displayname = "MenubarShortcut";
1713
- var NavigationMenu = React9__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
1714
- NavigationMenuPrimitive__namespace.Root,
1715
- {
1716
- className: cn(
1717
- "relative z-10 flex max-w-max flex-1 items-center justify-center",
1718
- className
1719
- ),
1720
- ref,
1721
- ...props,
1722
- children: [
1723
- children,
1724
- /* @__PURE__ */ jsxRuntime.jsx(NavigationMenuViewport, {})
1725
- ]
1726
- }
1727
- ));
1728
- NavigationMenu.displayName = NavigationMenuPrimitive__namespace.Root.displayName;
1729
- var NavigationMenuList = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1730
- NavigationMenuPrimitive__namespace.List,
1731
- {
1732
- className: cn(
1733
- "group flex flex-1 list-none items-center justify-center space-x-1",
1734
- className
1735
- ),
1736
- ref,
1737
- ...props
1738
- }
1739
- ));
1740
- NavigationMenuList.displayName = NavigationMenuPrimitive__namespace.List.displayName;
1741
- var NavigationMenuItem = NavigationMenuPrimitive__namespace.Item;
1742
- var navigationMenuTriggerStyle = classVarianceAuthority.cva(
1743
- "group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=open]:text-accent-foreground data-[state=open]:bg-accent/50 data-[state=open]:hover:bg-accent data-[state=open]:focus:bg-accent"
1744
- );
1745
- var NavigationMenuTrigger = React9__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
1746
- NavigationMenuPrimitive__namespace.Trigger,
1747
- {
1748
- className: cn(navigationMenuTriggerStyle(), "group", className),
1749
- ref,
1750
- ...props,
1751
- children: [
1752
- children,
1753
- " ",
1754
- /* @__PURE__ */ jsxRuntime.jsx(
1755
- lucideReact.ChevronDown,
1756
- {
1757
- "aria-hidden": "true",
1758
- className: "relative top-px ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180"
1759
- }
1760
- )
1761
- ]
1762
- }
1763
- ));
1764
- NavigationMenuTrigger.displayName = NavigationMenuPrimitive__namespace.Trigger.displayName;
1765
- var NavigationMenuContent = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1766
- NavigationMenuPrimitive__namespace.Content,
1767
- {
1768
- className: cn(
1769
- "data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 top-0 left-0 w-full md:absolute md:w-auto",
1770
- className
1771
- ),
1772
- ref,
1773
- ...props
1774
- }
1775
- ));
1776
- NavigationMenuContent.displayName = NavigationMenuPrimitive__namespace.Content.displayName;
1777
- var NavigationMenuLink = NavigationMenuPrimitive__namespace.Link;
1778
- var NavigationMenuViewport = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("div", { className: cn("absolute top-full left-0 flex justify-center"), children: /* @__PURE__ */ jsxRuntime.jsx(
1779
- NavigationMenuPrimitive__namespace.Viewport,
1780
- {
1781
- className: cn(
1782
- "origin-top-center bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 relative mt-1.5 h-(--radix-navigation-menu-viewport-height) w-full overflow-hidden rounded-md border shadow md:w-[var(--radix-navigation-menu-viewport-width)]",
1783
- className
1784
- ),
1785
- ref,
1786
- ...props
1787
- }
1788
- ) }));
1789
- NavigationMenuViewport.displayName = NavigationMenuPrimitive__namespace.Viewport.displayName;
1790
- var NavigationMenuIndicator = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1791
- NavigationMenuPrimitive__namespace.Indicator,
1792
- {
1793
- className: cn(
1794
- "data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in top-full z-1 flex h-1.5 items-end justify-center overflow-hidden",
1795
- className
1796
- ),
1797
- ref,
1798
- ...props,
1799
- children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-border relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm shadow-md" })
1800
- }
1801
- ));
1802
- NavigationMenuIndicator.displayName = NavigationMenuPrimitive__namespace.Indicator.displayName;
1803
- var Pagination = ({ className, ...props }) => /* @__PURE__ */ jsxRuntime.jsx(
1804
- "nav",
1805
- {
1806
- "aria-label": "pagination",
1807
- className: cn("mx-auto flex w-full justify-center", className),
1808
- role: "navigation",
1809
- ...props
1810
- }
1811
- );
1812
- Pagination.displayName = "Pagination";
1813
- var PaginationContent = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1814
- "ul",
1815
- {
1816
- className: cn("flex flex-row items-center gap-1", className),
1817
- ref,
1818
- ...props
1819
- }
1820
- ));
1821
- PaginationContent.displayName = "PaginationContent";
1822
- var PaginationItem = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx("li", { className: cn("", className), ref, ...props }));
1823
- PaginationItem.displayName = "PaginationItem";
1824
- var PaginationLink = ({
1825
- className,
1826
- isActive,
1827
- size = "icon",
1828
- ...props
1829
- }) => /* @__PURE__ */ jsxRuntime.jsx(
1830
- "a",
1831
- {
1832
- className: cn(
1833
- buttonVariants({
1834
- variant: isActive ? "outline" : "ghost",
1835
- size
1836
- }),
1837
- className
1838
- ),
1839
- "aria-current": isActive ? "page" : void 0,
1840
- ...props
1841
- }
1842
- );
1843
- PaginationLink.displayName = "PaginationLink";
1844
- var PaginationPrevious = ({
1845
- className,
1846
- ...props
1847
- }) => /* @__PURE__ */ jsxRuntime.jsxs(
1848
- PaginationLink,
1849
- {
1850
- "aria-label": "Go to previous page",
1851
- className: cn("gap-1 pl-2.5", className),
1852
- size: "default",
1853
- ...props,
1854
- children: [
1855
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronLeft, { className: "h-4 w-4" }),
1856
- /* @__PURE__ */ jsxRuntime.jsx("span", { children: "Previous" })
1857
- ]
1858
- }
1859
- );
1860
- PaginationPrevious.displayName = "PaginationPrevious";
1861
- var PaginationNext = ({
1862
- className,
1863
- ...props
1864
- }) => /* @__PURE__ */ jsxRuntime.jsxs(
1865
- PaginationLink,
1866
- {
1867
- "aria-label": "Go to next page",
1868
- className: cn("gap-1 pr-2.5", className),
1869
- size: "default",
1870
- ...props,
1871
- children: [
1872
- /* @__PURE__ */ jsxRuntime.jsx("span", { children: "Next" }),
1873
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { className: "h-4 w-4" })
1874
- ]
1875
- }
1876
- );
1877
- PaginationNext.displayName = "PaginationNext";
1878
- var PaginationEllipsis = ({
1879
- className,
1880
- ...props
1881
- }) => /* @__PURE__ */ jsxRuntime.jsxs(
1882
- "span",
1883
- {
1884
- className: cn("flex h-9 w-9 items-center justify-center", className),
1885
- "aria-hidden": true,
1886
- ...props,
1887
- children: [
1888
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MoreHorizontal, { className: "h-4 w-4" }),
1889
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "More pages" })
1890
- ]
1891
- }
1892
- );
1893
- PaginationEllipsis.displayName = "PaginationEllipsis";
1894
- var Popover = PopoverPrimitive__namespace.Root;
1895
- var PopoverTrigger = PopoverPrimitive__namespace.Trigger;
1896
- var PopoverAnchor = PopoverPrimitive__namespace.Anchor;
1897
- var PopoverContent = React9__namespace.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(PopoverPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
1898
- PopoverPrimitive__namespace.Content,
1899
- {
1900
- className: cn(
1901
- "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-[--radix-popover-content-transform-origin] rounded-md border p-4 shadow-md outline-none",
1902
- className
1903
- ),
1904
- align,
1905
- ref,
1906
- sideOffset,
1907
- ...props
1908
- }
1909
- ) }));
1910
- PopoverContent.displayName = PopoverPrimitive__namespace.Content.displayName;
1911
- var Progress = React9__namespace.forwardRef(({ className, value, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
1912
- ProgressPrimitive__namespace.Root,
1913
- {
1914
- className: cn(
1915
- "bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",
1916
- className
1917
- ),
1918
- ref,
1919
- ...props,
1920
- children: /* @__PURE__ */ jsxRuntime.jsx(
1921
- ProgressPrimitive__namespace.Indicator,
1922
- {
1923
- className: "bg-primary h-full w-full flex-1 transition-all",
1924
- style: { transform: `translateX(-${100 - (value || 0)}%)` }
1925
- }
1926
- )
1927
- }
1928
- ));
1929
- Progress.displayName = ProgressPrimitive__namespace.Root.displayName;
1930
- var RadioGroup4 = React9__namespace.forwardRef(({ className, ...props }, ref) => {
1931
- return /* @__PURE__ */ jsxRuntime.jsx(
1932
- RadioGroupPrimitive__namespace.Root,
1933
- {
1934
- className: cn("grid gap-2", className),
1935
- ...props,
1936
- ref
1937
- }
1938
- );
1939
- });
1940
- RadioGroup4.displayName = RadioGroupPrimitive__namespace.Root.displayName;
1941
- var RadioGroupItem = React9__namespace.forwardRef(({ className, ...props }, ref) => {
1942
- return /* @__PURE__ */ jsxRuntime.jsx(
1943
- RadioGroupPrimitive__namespace.Item,
1944
- {
1945
- className: cn(
1946
- "border-primary text-primary focus-visible:ring-ring aspect-square h-4 w-4 rounded-full border shadow focus:outline-none focus-visible:ring-1 disabled:cursor-not-allowed disabled:opacity-50",
1947
- className
1948
- ),
1949
- ref,
1950
- ...props,
1951
- children: /* @__PURE__ */ jsxRuntime.jsx(RadioGroupPrimitive__namespace.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Circle, { className: "fill-primary h-3.5 w-3.5" }) })
1952
- }
1953
- );
1954
- });
1955
- RadioGroupItem.displayName = RadioGroupPrimitive__namespace.Item.displayName;
1956
- var ResizablePanelGroup = ({
1957
- className,
1958
- ...props
1959
- // @ts-expect-error
1960
- }) => (
1961
- // @ts-expect-error
1962
- /* @__PURE__ */ jsxRuntime.jsx(
1963
- ResizablePrimitive__namespace.PanelGroup,
1964
- {
1965
- className: cn(
1966
- "flex h-full w-full data-[panel-group-direction=vertical]:flex-col",
1967
- className
1968
- ),
1969
- ...props
1970
- }
1971
- )
1972
- );
1973
- var ResizablePanel = ResizablePrimitive__namespace.Panel;
1974
- var ResizableHandle = ({
1975
- withHandle,
1976
- className,
1977
- ...props
1978
- // @ts-expect-error
1979
- }) => (
1980
- // @ts-expect-error
1981
- /* @__PURE__ */ jsxRuntime.jsx(
1982
- ResizablePrimitive__namespace.PanelResizeHandle,
1983
- {
1984
- className: cn(
1985
- "bg-border focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:ring-offset-1 focus-visible:outline-none data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:translate-x-0 data-[panel-group-direction=vertical]:after:-translate-y-1/2 [&[data-panel-group-direction=vertical]>div]:rotate-90",
1986
- className
1987
- ),
1988
- ...props,
1989
- children: withHandle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "bg-border z-10 flex h-4 w-3 items-center justify-center rounded-sm border", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.GripVertical, { className: "h-2.5 w-2.5" }) })
1990
- }
1991
- )
1992
- );
1993
- var ScrollArea = React9__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
1994
- ScrollAreaPrimitive__namespace.Root,
1995
- {
1996
- className: cn("relative overflow-hidden", className),
1997
- ref,
1998
- ...props,
1999
- children: [
2000
- /* @__PURE__ */ jsxRuntime.jsx(ScrollAreaPrimitive__namespace.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
2001
- /* @__PURE__ */ jsxRuntime.jsx(ScrollBar, {}),
2002
- /* @__PURE__ */ jsxRuntime.jsx(ScrollAreaPrimitive__namespace.Corner, {})
2003
- ]
2004
- }
2005
- ));
2006
- ScrollArea.displayName = ScrollAreaPrimitive__namespace.Root.displayName;
2007
- var ScrollBar = React9__namespace.forwardRef(({ className, orientation = "vertical", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2008
- ScrollAreaPrimitive__namespace.ScrollAreaScrollbar,
2009
- {
2010
- className: cn(
2011
- "flex touch-none transition-colors select-none",
2012
- orientation === "vertical" && "h-full w-2.5 border-l border-l-transparent p-px",
2013
- orientation === "horizontal" && "h-2.5 flex-col border-t border-t-transparent p-px",
2014
- className
2015
- ),
2016
- orientation,
2017
- ref,
2018
- ...props,
2019
- children: /* @__PURE__ */ jsxRuntime.jsx(ScrollAreaPrimitive__namespace.ScrollAreaThumb, { className: "bg-border relative flex-1 rounded-full" })
2020
- }
2021
- ));
2022
- ScrollBar.displayName = ScrollAreaPrimitive__namespace.ScrollAreaScrollbar.displayName;
2023
- var Select = SelectPrimitive__namespace.Root;
2024
- var SelectGroup = SelectPrimitive__namespace.Group;
2025
- var SelectValue = SelectPrimitive__namespace.Value;
2026
- var SelectTrigger = React9__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
2027
- SelectPrimitive__namespace.Trigger,
2028
- {
2029
- className: cn(
2030
- "border-input ring-offset-background data-placeholder:text-muted-foreground focus:ring-ring flex h-9 w-full items-center justify-between rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-sm focus:ring-1 focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
2031
- className
2032
- ),
2033
- ref,
2034
- ...props,
2035
- children: [
2036
- children,
2037
- /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Icon, { asChild: true, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: "h-4 w-4 opacity-50" }) })
2038
- ]
2039
- }
2040
- ));
2041
- SelectTrigger.displayName = SelectPrimitive__namespace.Trigger.displayName;
2042
- var SelectScrollUpButton = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2043
- SelectPrimitive__namespace.ScrollUpButton,
2044
- {
2045
- className: cn(
2046
- "flex cursor-default items-center justify-center py-1",
2047
- className
2048
- ),
2049
- ref,
2050
- ...props,
2051
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronUp, { className: "h-4 w-4" })
2052
- }
2053
- ));
2054
- SelectScrollUpButton.displayName = SelectPrimitive__namespace.ScrollUpButton.displayName;
2055
- var SelectScrollDownButton = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2056
- SelectPrimitive__namespace.ScrollDownButton,
2057
- {
2058
- className: cn(
2059
- "flex cursor-default items-center justify-center py-1",
2060
- className
2061
- ),
2062
- ref,
2063
- ...props,
2064
- children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { className: "h-4 w-4" })
2065
- }
2066
- ));
2067
- SelectScrollDownButton.displayName = SelectPrimitive__namespace.ScrollDownButton.displayName;
2068
- var SelectContent = React9__namespace.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsxs(
2069
- SelectPrimitive__namespace.Content,
2070
- {
2071
- className: cn(
2072
- "bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] origin-[--radix-select-content-transform-origin] overflow-x-hidden overflow-y-auto rounded-md border shadow-md",
2073
- position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
2074
- className
2075
- ),
2076
- position,
2077
- ref,
2078
- ...props,
2079
- children: [
2080
- /* @__PURE__ */ jsxRuntime.jsx(SelectScrollUpButton, {}),
2081
- /* @__PURE__ */ jsxRuntime.jsx(
2082
- SelectPrimitive__namespace.Viewport,
2083
- {
2084
- className: cn(
2085
- "p-1",
2086
- position === "popper" && "h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)"
2087
- ),
2088
- children
2089
- }
2090
- ),
2091
- /* @__PURE__ */ jsxRuntime.jsx(SelectScrollDownButton, {})
2092
- ]
2093
- }
2094
- ) }));
2095
- SelectContent.displayName = SelectPrimitive__namespace.Content.displayName;
2096
- var SelectLabel = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2097
- SelectPrimitive__namespace.Label,
2098
- {
2099
- className: cn("px-2 py-1.5 text-sm font-semibold", className),
2100
- ref,
2101
- ...props
2102
- }
2103
- ));
2104
- SelectLabel.displayName = SelectPrimitive__namespace.Label.displayName;
2105
- var SelectItem = React9__namespace.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
2106
- SelectPrimitive__namespace.Item,
2107
- {
2108
- className: cn(
2109
- "focus:bg-accent focus:text-accent-foreground relative flex w-full cursor-default items-center rounded-sm py-1.5 pr-8 pl-2 text-sm outline-none select-none data-disabled:pointer-events-none data-disabled:opacity-50",
2110
- className
2111
- ),
2112
- ref,
2113
- ...props,
2114
- children: [
2115
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.ItemIndicator, { children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Check, { className: "h-4 w-4" }) }) }),
2116
- /* @__PURE__ */ jsxRuntime.jsx(SelectPrimitive__namespace.ItemText, { children })
2117
- ]
2118
- }
2119
- ));
2120
- SelectItem.displayName = SelectPrimitive__namespace.Item.displayName;
2121
- var SelectSeparator = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2122
- SelectPrimitive__namespace.Separator,
2123
- {
2124
- className: cn("bg-muted -mx-1 my-1 h-px", className),
2125
- ref,
2126
- ...props
2127
- }
2128
- ));
2129
- SelectSeparator.displayName = SelectPrimitive__namespace.Separator.displayName;
2130
- var Separator5 = React9__namespace.forwardRef(
2131
- ({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2132
- SeparatorPrimitive__namespace.Root,
2133
- {
2134
- className: cn(
2135
- "bg-border shrink-0",
2136
- orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
2137
- className
2138
- ),
2139
- decorative,
2140
- orientation,
2141
- ref,
2142
- ...props
2143
- }
2144
- )
2145
- );
2146
- Separator5.displayName = SeparatorPrimitive__namespace.Root.displayName;
2147
- var Sheet = DialogPrimitive__namespace.Root;
2148
- var SheetTrigger = DialogPrimitive__namespace.Trigger;
2149
- var SheetClose = DialogPrimitive__namespace.Close;
2150
- var SheetPortal = DialogPrimitive__namespace.Portal;
2151
- var SheetOverlay = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2152
- DialogPrimitive__namespace.Overlay,
2153
- {
2154
- className: cn(
2155
- "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",
2156
- className
2157
- ),
2158
- ...props,
2159
- ref
2160
- }
2161
- ));
2162
- SheetOverlay.displayName = DialogPrimitive__namespace.Overlay.displayName;
2163
- var sheetVariants = classVarianceAuthority.cva(
2164
- "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",
2165
- {
2166
- variants: {
2167
- side: {
2168
- top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
2169
- bottom: "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
2170
- left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
2171
- right: "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"
2172
- }
2173
- },
2174
- defaultVariants: {
2175
- side: "right"
2176
- }
2177
- }
2178
- );
2179
- var SheetContent = React9__namespace.forwardRef(({ side = "right", className, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(SheetPortal, { children: [
2180
- /* @__PURE__ */ jsxRuntime.jsx(SheetOverlay, {}),
2181
- /* @__PURE__ */ jsxRuntime.jsxs(
2182
- DialogPrimitive__namespace.Content,
2183
- {
2184
- className: cn(sheetVariants({ side }), className),
2185
- ref,
2186
- ...props,
2187
- children: [
2188
- /* @__PURE__ */ jsxRuntime.jsxs(DialogPrimitive__namespace.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-sm opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-none disabled:pointer-events-none", children: [
2189
- /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { className: "h-4 w-4" }),
2190
- /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
2191
- ] }),
2192
- children
2193
- ]
2194
- }
2195
- )
2196
- ] }));
2197
- SheetContent.displayName = DialogPrimitive__namespace.Content.displayName;
2198
- var SheetHeader = ({
2199
- className,
2200
- ...props
2201
- }) => /* @__PURE__ */ jsxRuntime.jsx(
2202
- "div",
2203
- {
2204
- className: cn(
2205
- "flex flex-col space-y-2 text-center sm:text-left",
2206
- className
2207
- ),
2208
- ...props
2209
- }
2210
- );
2211
- SheetHeader.displayName = "SheetHeader";
2212
- var SheetFooter = ({
2213
- className,
2214
- ...props
2215
- }) => /* @__PURE__ */ jsxRuntime.jsx(
2216
- "div",
2217
- {
2218
- className: cn(
2219
- "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
2220
- className
2221
- ),
2222
- ...props
2223
- }
2224
- );
2225
- SheetFooter.displayName = "SheetFooter";
2226
- var SheetTitle = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2227
- DialogPrimitive__namespace.Title,
2228
- {
2229
- className: cn("text-foreground text-lg font-semibold", className),
2230
- ref,
2231
- ...props
2232
- }
2233
- ));
2234
- SheetTitle.displayName = DialogPrimitive__namespace.Title.displayName;
2235
- var SheetDescription = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2236
- DialogPrimitive__namespace.Description,
2237
- {
2238
- className: cn("text-muted-foreground text-sm", className),
2239
- ref,
2240
- ...props
2241
- }
2242
- ));
2243
- SheetDescription.displayName = DialogPrimitive__namespace.Description.displayName;
2244
- function Skeleton({
2245
- className,
2246
- ...props
2247
- }) {
2248
- return /* @__PURE__ */ jsxRuntime.jsx(
2249
- "div",
2250
- {
2251
- className: cn("bg-primary/10 animate-pulse rounded-md", className),
2252
- ...props
2253
- }
2254
- );
2255
- }
2256
- var Slider = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsxs(
2257
- SliderPrimitive__namespace.Root,
2258
- {
2259
- className: cn(
2260
- "relative flex w-full touch-none items-center select-none",
2261
- className
2262
- ),
2263
- ref,
2264
- ...props,
2265
- children: [
2266
- /* @__PURE__ */ jsxRuntime.jsx(SliderPrimitive__namespace.Track, { className: "bg-primary/20 relative h-1.5 w-full grow overflow-hidden rounded-full", children: /* @__PURE__ */ jsxRuntime.jsx(SliderPrimitive__namespace.Range, { className: "bg-primary absolute h-full" }) }),
2267
- /* @__PURE__ */ jsxRuntime.jsx(SliderPrimitive__namespace.Thumb, { className: "border-primary/50 bg-background focus-visible:ring-ring block h-4 w-4 rounded-full border shadow transition-colors focus-visible:ring-1 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50" })
2268
- ]
2269
- }
2270
- ));
2271
- Slider.displayName = SliderPrimitive__namespace.Root.displayName;
2272
- function Spinner({ className, ...props }) {
2273
- return /* @__PURE__ */ jsxRuntime.jsx(
2274
- lucideReact.Loader2Icon,
2275
- {
2276
- "aria-label": "Loading",
2277
- className: cn("size-4 animate-spin", className),
2278
- role: "status",
2279
- ...props
2280
- }
2281
- );
2282
- }
2283
- var Switch = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2284
- SwitchPrimitives__namespace.Root,
2285
- {
2286
- className: cn(
2287
- "peer focus-visible:ring-ring focus-visible:ring-offset-background data-[state=checked]:bg-primary data-[state=unchecked]:bg-input inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50",
2288
- className
2289
- ),
2290
- ...props,
2291
- ref,
2292
- children: /* @__PURE__ */ jsxRuntime.jsx(
2293
- SwitchPrimitives__namespace.Thumb,
2294
- {
2295
- className: cn(
2296
- "bg-background pointer-events-none block h-4 w-4 rounded-full shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"
2297
- )
2298
- }
2299
- )
2300
- }
2301
- ));
2302
- Switch.displayName = SwitchPrimitives__namespace.Root.displayName;
2303
- var Tabs = TabsPrimitive__namespace.Root;
2304
- var TabsList = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2305
- TabsPrimitive__namespace.List,
2306
- {
2307
- className: cn(
2308
- "bg-muted text-muted-foreground inline-flex h-9 items-center justify-center rounded-lg p-1",
2309
- className
2310
- ),
2311
- ref,
2312
- ...props
2313
- }
2314
- ));
2315
- TabsList.displayName = TabsPrimitive__namespace.List.displayName;
2316
- var TabsTrigger = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2317
- TabsPrimitive__namespace.Trigger,
2318
- {
2319
- className: cn(
2320
- "ring-offset-background focus-visible:ring-ring data-[state=active]:bg-background data-[state=active]:text-foreground inline-flex items-center justify-center rounded-md px-3 py-1 text-sm font-medium whitespace-nowrap transition-all focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow",
2321
- className
2322
- ),
2323
- ref,
2324
- ...props
2325
- }
2326
- ));
2327
- TabsTrigger.displayName = TabsPrimitive__namespace.Trigger.displayName;
2328
- var TabsContent = React9__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2329
- TabsPrimitive__namespace.Content,
2330
- {
2331
- className: cn(
2332
- "ring-offset-background focus-visible:ring-ring mt-2 focus-visible:ring-2 focus-visible:ring-offset-2 focus-visible:outline-none",
2333
- className
2334
- ),
2335
- ref,
2336
- ...props
2337
- }
2338
- ));
2339
- TabsContent.displayName = TabsPrimitive__namespace.Content.displayName;
2340
- var Textarea = React9__namespace.forwardRef(({ className, ...props }, ref) => {
2341
- return /* @__PURE__ */ jsxRuntime.jsx(
2342
- "textarea",
2343
- {
2344
- className: cn(
2345
- "border-input placeholder:text-muted-foreground focus-visible:ring-ring flex min-h-[60px] w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-sm focus-visible:ring-1 focus-visible:outline-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
2346
- className
2347
- ),
2348
- ref,
2349
- ...props
2350
- }
2351
- );
2352
- });
2353
- Textarea.displayName = "Textarea";
2354
- var Toaster = () => {
2355
- return /* @__PURE__ */ jsxRuntime.jsx(sonner.Toaster, {});
2356
- };
2357
- var toggleVariants = classVarianceAuthority.cva(
2358
- "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium 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",
2359
- {
2360
- variants: {
2361
- variant: {
2362
- default: "bg-transparent",
2363
- outline: "border border-input bg-transparent shadow-sm hover:bg-accent hover:text-accent-foreground"
2364
- },
2365
- size: {
2366
- default: "h-9 px-2 min-w-9",
2367
- sm: "h-8 px-1.5 min-w-8",
2368
- lg: "h-10 px-2.5 min-w-10"
2369
- }
2370
- },
2371
- defaultVariants: {
2372
- variant: "default",
2373
- size: "default"
2374
- }
2375
- }
2376
- );
2377
- var Toggle = React9__namespace.forwardRef(({ className, variant, size, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
2378
- TogglePrimitive__namespace.Root,
2379
- {
2380
- className: cn(toggleVariants({ variant, size, className })),
2381
- ref,
2382
- ...props
2383
- }
2384
- ));
2385
- Toggle.displayName = TogglePrimitive__namespace.Root.displayName;
2386
- var TooltipProvider = TooltipPrimitive__namespace.Provider;
2387
- var Tooltip = TooltipPrimitive__namespace.Root;
2388
- var TooltipTrigger = TooltipPrimitive__namespace.Trigger;
2389
- var TooltipContent = React9__namespace.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TooltipPrimitive__namespace.Portal, { children: /* @__PURE__ */ jsxRuntime.jsx(
2390
- TooltipPrimitive__namespace.Content,
2391
- {
2392
- className: cn(
2393
- "bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 origin-[--radix-tooltip-content-transform-origin] overflow-hidden rounded-md px-3 py-1.5 text-xs",
2394
- className
2395
- ),
2396
- ref,
2397
- sideOffset,
2398
- ...props
2399
- }
2400
- ) }));
2401
- TooltipContent.displayName = TooltipPrimitive__namespace.Content.displayName;
2402
- function useAutoFocus({ ref, enabled = true }) {
2403
- const isMounted = usehooksTs.useIsMounted();
2404
- React9.useLayoutEffect(() => {
2405
- if (!enabled || isMounted()) return;
2406
- ref.current?.focus();
2407
- }, [ref, enabled, isMounted]);
2408
- }
2409
- var MOBILE_BREAKPOINT = 768;
2410
- function useIsMobile() {
2411
- const [isMobile, setIsMobile] = React9__namespace.useState(void 0);
2412
- React9__namespace.useEffect(() => {
2413
- const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
2414
- const onChange = () => {
2415
- setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
2416
- };
2417
- mql.addEventListener("change", onChange);
2418
- setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
2419
- return () => mql.removeEventListener("change", onChange);
2420
- }, []);
2421
- return !!isMobile;
2422
- }
2423
-
2424
- // src/hooks/use-shortcuts.ts
2425
- function isModifierMatch(event, modifiers = {}) {
2426
- if (Array.isArray(modifiers))
2427
- return modifiers.some((modifier) => isModifierMatch(event, modifier));
2428
- return event.metaKey === !!modifiers.meta && event.shiftKey === !!modifiers.shift && event.altKey === !!modifiers.alt && event.ctrlKey === !!modifiers.ctrl;
2429
- }
2430
- function isEnabled(shortcut) {
2431
- if (shortcut.enabled === void 0) return true;
2432
- return typeof shortcut.enabled === "function" ? shortcut.enabled() : shortcut.enabled;
2433
- }
2434
- function useShortcuts(definitions) {
2435
- function executeShortcut(event) {
2436
- const matchedShortcut = definitions.find(
2437
- (shortcut) => isEnabled(shortcut) && shortcut.keys.includes(event.key) && isModifierMatch(event, shortcut.modifiers)
2438
- );
2439
- if (!matchedShortcut) return false;
2440
- if (matchedShortcut.preventDefault !== false) event.preventDefault();
2441
- matchedShortcut.handler(event);
2442
- return true;
2443
- }
2444
- return {
2445
- executeShortcut
2446
- };
2447
- }
2448
- var id = 0;
2449
- function useUid(prefix) {
2450
- const [uid] = React9.useState(() => `tui-${prefix}:${++id}`);
2451
- return uid;
2452
- }
2453
-
2454
- exports.Accordion = Accordion;
2455
- exports.AccordionContent = AccordionContent;
2456
- exports.AccordionItem = AccordionItem;
2457
- exports.AccordionTrigger = AccordionTrigger;
2458
- exports.Alert = Alert;
2459
- exports.AlertDescription = AlertDescription;
2460
- exports.AlertDialog = AlertDialog;
2461
- exports.AlertDialogAction = AlertDialogAction;
2462
- exports.AlertDialogCancel = AlertDialogCancel;
2463
- exports.AlertDialogContent = AlertDialogContent;
2464
- exports.AlertDialogDescription = AlertDialogDescription;
2465
- exports.AlertDialogFooter = AlertDialogFooter;
2466
- exports.AlertDialogHeader = AlertDialogHeader;
2467
- exports.AlertDialogOverlay = AlertDialogOverlay;
2468
- exports.AlertDialogPortal = AlertDialogPortal;
2469
- exports.AlertDialogTitle = AlertDialogTitle;
2470
- exports.AlertDialogTrigger = AlertDialogTrigger;
2471
- exports.AlertTitle = AlertTitle;
2472
- exports.Avatar = Avatar;
2473
- exports.AvatarFallback = AvatarFallback;
2474
- exports.AvatarImage = AvatarImage;
2475
- exports.Badge = Badge;
2476
- exports.Breadcrumb = Breadcrumb;
2477
- exports.BreadcrumbEllipsis = BreadcrumbEllipsis;
2478
- exports.BreadcrumbItem = BreadcrumbItem;
2479
- exports.BreadcrumbLink = BreadcrumbLink;
2480
- exports.BreadcrumbList = BreadcrumbList;
2481
- exports.BreadcrumbPage = BreadcrumbPage;
2482
- exports.BreadcrumbSeparator = BreadcrumbSeparator;
2483
- exports.Button = Button;
2484
- exports.Calendar = Calendar;
2485
- exports.CalendarDayButton = CalendarDayButton;
2486
- exports.Card = Card;
2487
- exports.CardContent = CardContent;
2488
- exports.CardDescription = CardDescription;
2489
- exports.CardFooter = CardFooter;
2490
- exports.CardHeader = CardHeader;
2491
- exports.CardTitle = CardTitle;
2492
- exports.Carousel = Carousel;
2493
- exports.CarouselContent = CarouselContent;
2494
- exports.CarouselItem = CarouselItem;
2495
- exports.CarouselNext = CarouselNext;
2496
- exports.CarouselPrevious = CarouselPrevious;
2497
- exports.Checkbox = Checkbox;
2498
- exports.Collapsible = Collapsible;
2499
- exports.CollapsibleContent = CollapsibleContent2;
2500
- exports.CollapsibleTrigger = CollapsibleTrigger2;
2501
- exports.Command = Command;
2502
- exports.CommandDialog = CommandDialog;
2503
- exports.CommandEmpty = CommandEmpty;
2504
- exports.CommandGroup = CommandGroup;
2505
- exports.CommandInput = CommandInput;
2506
- exports.CommandItem = CommandItem;
2507
- exports.CommandList = CommandList;
2508
- exports.CommandSeparator = CommandSeparator;
2509
- exports.CommandShortcut = CommandShortcut;
2510
- exports.ContextMenu = ContextMenu;
2511
- exports.ContextMenuCheckboxItem = ContextMenuCheckboxItem;
2512
- exports.ContextMenuContent = ContextMenuContent;
2513
- exports.ContextMenuGroup = ContextMenuGroup;
2514
- exports.ContextMenuItem = ContextMenuItem;
2515
- exports.ContextMenuLabel = ContextMenuLabel;
2516
- exports.ContextMenuPortal = ContextMenuPortal;
2517
- exports.ContextMenuRadioGroup = ContextMenuRadioGroup;
2518
- exports.ContextMenuRadioItem = ContextMenuRadioItem;
2519
- exports.ContextMenuSeparator = ContextMenuSeparator;
2520
- exports.ContextMenuShortcut = ContextMenuShortcut;
2521
- exports.ContextMenuSub = ContextMenuSub;
2522
- exports.ContextMenuSubContent = ContextMenuSubContent;
2523
- exports.ContextMenuSubTrigger = ContextMenuSubTrigger;
2524
- exports.ContextMenuTrigger = ContextMenuTrigger;
2525
- exports.Dialog = Dialog;
2526
- exports.DialogClose = DialogClose;
2527
- exports.DialogContent = DialogContent;
2528
- exports.DialogDescription = DialogDescription;
2529
- exports.DialogFooter = DialogFooter;
2530
- exports.DialogHeader = DialogHeader;
2531
- exports.DialogOverlay = DialogOverlay;
2532
- exports.DialogPortal = DialogPortal;
2533
- exports.DialogTitle = DialogTitle;
2534
- exports.DialogTrigger = DialogTrigger;
2535
- exports.Drawer = Drawer;
2536
- exports.DrawerClose = DrawerClose;
2537
- exports.DrawerContent = DrawerContent;
2538
- exports.DrawerDescription = DrawerDescription;
2539
- exports.DrawerFooter = DrawerFooter;
2540
- exports.DrawerHeader = DrawerHeader;
2541
- exports.DrawerOverlay = DrawerOverlay;
2542
- exports.DrawerPortal = DrawerPortal;
2543
- exports.DrawerTitle = DrawerTitle;
2544
- exports.DrawerTrigger = DrawerTrigger;
2545
- exports.DropdownMenu = DropdownMenu;
2546
- exports.DropdownMenuCheckboxItem = DropdownMenuCheckboxItem;
2547
- exports.DropdownMenuContent = DropdownMenuContent;
2548
- exports.DropdownMenuGroup = DropdownMenuGroup;
2549
- exports.DropdownMenuItem = DropdownMenuItem;
2550
- exports.DropdownMenuLabel = DropdownMenuLabel;
2551
- exports.DropdownMenuPortal = DropdownMenuPortal;
2552
- exports.DropdownMenuRadioGroup = DropdownMenuRadioGroup;
2553
- exports.DropdownMenuRadioItem = DropdownMenuRadioItem;
2554
- exports.DropdownMenuSeparator = DropdownMenuSeparator;
2555
- exports.DropdownMenuShortcut = DropdownMenuShortcut;
2556
- exports.DropdownMenuSub = DropdownMenuSub;
2557
- exports.DropdownMenuSubContent = DropdownMenuSubContent;
2558
- exports.DropdownMenuSubTrigger = DropdownMenuSubTrigger;
2559
- exports.DropdownMenuTrigger = DropdownMenuTrigger;
2560
- exports.Form = Form;
2561
- exports.FormControl = FormControl;
2562
- exports.FormDescription = FormDescription;
2563
- exports.FormField = FormField;
2564
- exports.FormItem = FormItem;
2565
- exports.FormLabel = FormLabel;
2566
- exports.FormMessage = FormMessage;
2567
- exports.HoverCard = HoverCard;
2568
- exports.HoverCardContent = HoverCardContent;
2569
- exports.HoverCardTrigger = HoverCardTrigger;
2570
- exports.Input = Input;
2571
- exports.Label = Label3;
2572
- exports.Menubar = Menubar;
2573
- exports.MenubarCheckboxItem = MenubarCheckboxItem;
2574
- exports.MenubarContent = MenubarContent;
2575
- exports.MenubarGroup = MenubarGroup;
2576
- exports.MenubarItem = MenubarItem;
2577
- exports.MenubarLabel = MenubarLabel;
2578
- exports.MenubarMenu = MenubarMenu;
2579
- exports.MenubarPortal = MenubarPortal;
2580
- exports.MenubarRadioGroup = MenubarRadioGroup;
2581
- exports.MenubarRadioItem = MenubarRadioItem;
2582
- exports.MenubarSeparator = MenubarSeparator;
2583
- exports.MenubarShortcut = MenubarShortcut;
2584
- exports.MenubarSub = MenubarSub;
2585
- exports.MenubarSubContent = MenubarSubContent;
2586
- exports.MenubarSubTrigger = MenubarSubTrigger;
2587
- exports.MenubarTrigger = MenubarTrigger;
2588
- exports.NavigationMenu = NavigationMenu;
2589
- exports.NavigationMenuContent = NavigationMenuContent;
2590
- exports.NavigationMenuIndicator = NavigationMenuIndicator;
2591
- exports.NavigationMenuItem = NavigationMenuItem;
2592
- exports.NavigationMenuLink = NavigationMenuLink;
2593
- exports.NavigationMenuList = NavigationMenuList;
2594
- exports.NavigationMenuTrigger = NavigationMenuTrigger;
2595
- exports.NavigationMenuViewport = NavigationMenuViewport;
2596
- exports.Pagination = Pagination;
2597
- exports.PaginationContent = PaginationContent;
2598
- exports.PaginationEllipsis = PaginationEllipsis;
2599
- exports.PaginationItem = PaginationItem;
2600
- exports.PaginationLink = PaginationLink;
2601
- exports.PaginationNext = PaginationNext;
2602
- exports.PaginationPrevious = PaginationPrevious;
2603
- exports.Popover = Popover;
2604
- exports.PopoverAnchor = PopoverAnchor;
2605
- exports.PopoverContent = PopoverContent;
2606
- exports.PopoverTrigger = PopoverTrigger;
2607
- exports.Progress = Progress;
2608
- exports.RadioGroup = RadioGroup4;
2609
- exports.RadioGroupItem = RadioGroupItem;
2610
- exports.ResizableHandle = ResizableHandle;
2611
- exports.ResizablePanel = ResizablePanel;
2612
- exports.ResizablePanelGroup = ResizablePanelGroup;
2613
- exports.ScrollArea = ScrollArea;
2614
- exports.ScrollBar = ScrollBar;
2615
- exports.Select = Select;
2616
- exports.SelectContent = SelectContent;
2617
- exports.SelectGroup = SelectGroup;
2618
- exports.SelectItem = SelectItem;
2619
- exports.SelectLabel = SelectLabel;
2620
- exports.SelectScrollDownButton = SelectScrollDownButton;
2621
- exports.SelectScrollUpButton = SelectScrollUpButton;
2622
- exports.SelectSeparator = SelectSeparator;
2623
- exports.SelectTrigger = SelectTrigger;
2624
- exports.SelectValue = SelectValue;
2625
- exports.Separator = Separator5;
2626
- exports.Sheet = Sheet;
2627
- exports.SheetClose = SheetClose;
2628
- exports.SheetContent = SheetContent;
2629
- exports.SheetDescription = SheetDescription;
2630
- exports.SheetFooter = SheetFooter;
2631
- exports.SheetHeader = SheetHeader;
2632
- exports.SheetOverlay = SheetOverlay;
2633
- exports.SheetPortal = SheetPortal;
2634
- exports.SheetTitle = SheetTitle;
2635
- exports.SheetTrigger = SheetTrigger;
2636
- exports.Skeleton = Skeleton;
2637
- exports.Slider = Slider;
2638
- exports.Spinner = Spinner;
2639
- exports.Switch = Switch;
2640
- exports.Tabs = Tabs;
2641
- exports.TabsContent = TabsContent;
2642
- exports.TabsList = TabsList;
2643
- exports.TabsTrigger = TabsTrigger;
2644
- exports.Textarea = Textarea;
2645
- exports.Toaster = Toaster;
2646
- exports.Toggle = Toggle;
2647
- exports.Tooltip = Tooltip;
2648
- exports.TooltipContent = TooltipContent;
2649
- exports.TooltipProvider = TooltipProvider;
2650
- exports.TooltipTrigger = TooltipTrigger;
2651
- exports.badgeVariants = badgeVariants;
2652
- exports.buttonVariants = buttonVariants;
2653
- exports.cn = cn;
2654
- exports.navigationMenuTriggerStyle = navigationMenuTriggerStyle;
2655
- exports.toggleVariants = toggleVariants;
2656
- exports.useAutoFocus = useAutoFocus;
2657
- exports.useFormField = useFormField;
2658
- exports.useIsMobile = useIsMobile;
2659
- exports.useShortcuts = useShortcuts;
2660
- exports.useUid = useUid;
2661
- //# sourceMappingURL=index.cjs.map
2662
- //# sourceMappingURL=index.cjs.map