@thebasenet/ui 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/brand/index.d.mts +55 -0
  2. package/dist/brand/index.d.ts +55 -0
  3. package/dist/brand/index.js +152 -0
  4. package/dist/brand/index.js.map +1 -0
  5. package/dist/brand/index.mjs +152 -0
  6. package/dist/brand/index.mjs.map +1 -0
  7. package/dist/components/index.d.mts +122 -0
  8. package/dist/components/index.d.ts +122 -0
  9. package/dist/components/index.js +848 -0
  10. package/dist/components/index.js.map +1 -0
  11. package/dist/components/index.mjs +7956 -0
  12. package/dist/components/index.mjs.map +1 -0
  13. package/dist/index.d.mts +32 -0
  14. package/dist/index.d.ts +32 -0
  15. package/dist/index.js +2801 -0
  16. package/dist/index.js.map +1 -0
  17. package/dist/index.mjs +32365 -0
  18. package/dist/index.mjs.map +1 -0
  19. package/dist/tokens/index.d.mts +190 -0
  20. package/dist/tokens/index.d.ts +190 -0
  21. package/dist/tokens/index.js +104 -0
  22. package/dist/tokens/index.js.map +1 -0
  23. package/dist/tokens/index.mjs +104 -0
  24. package/dist/tokens/index.mjs.map +1 -0
  25. package/dist/ui/index.d.mts +302 -0
  26. package/dist/ui/index.d.ts +302 -0
  27. package/dist/ui/index.js +2058 -0
  28. package/dist/ui/index.js.map +1 -0
  29. package/dist/ui/index.mjs +31585 -0
  30. package/dist/ui/index.mjs.map +1 -0
  31. package/dist/utils/cn.d.mts +5 -0
  32. package/dist/utils/cn.d.ts +5 -0
  33. package/dist/utils/cn.js +11 -0
  34. package/dist/utils/cn.js.map +1 -0
  35. package/dist/utils/cn.mjs +3197 -0
  36. package/dist/utils/cn.mjs.map +1 -0
  37. package/package.json +102 -0
  38. package/styles/animations.css +63 -0
  39. package/styles/globals.css +31 -0
  40. package/styles/theme.css +97 -0
  41. package/styles/variables.css +238 -0
@@ -0,0 +1,2058 @@
1
+ import { cva } from 'class-variance-authority';
2
+ import { clsx } from 'clsx';
3
+ import { twMerge } from 'tailwind-merge';
4
+ import { jsxs, jsx } from 'react/jsx-runtime';
5
+ import * as AvatarPrimitive from '@radix-ui/react-avatar';
6
+ import { Slot } from '@radix-ui/react-slot';
7
+ import { EyeIcon, EyeOffIcon, ChevronDown, ChevronUp, Check, X, ChevronRight, MoreHorizontal, ChevronLeftIcon, ChevronRightIcon, ChevronDownIcon, CheckIcon, XIcon, SearchIcon, ChevronsUpDown, CircleIcon, MoreHorizontalIcon, Search } from 'lucide-react';
8
+ import * as SeparatorPrimitive from '@radix-ui/react-separator';
9
+ import * as React10 from 'react';
10
+ import React10__default, { forwardRef, useState } from 'react';
11
+ import { getDefaultClassNames, DayPicker } from 'react-day-picker';
12
+ import * as CheckboxPrimitive from '@radix-ui/react-checkbox';
13
+ import { Command as Command$1 } from 'cmdk';
14
+ import * as DialogPrimitive from '@radix-ui/react-dialog';
15
+ import * as PopoverPrimitive from '@radix-ui/react-popover';
16
+ import { Drawer as Drawer$1 } from 'vaul';
17
+ import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
18
+ import { FormProvider, Controller, useFormContext, useFormState } from 'react-hook-form';
19
+ import * as LabelPrimitive from '@radix-ui/react-label';
20
+ import Link from 'next/link';
21
+ import { motion } from 'framer-motion';
22
+ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
23
+ import * as RadioGroupPrimitive from '@radix-ui/react-radio-group';
24
+ import * as SelectPrimitive from '@radix-ui/react-select';
25
+ import * as SliderPrimitive from '@radix-ui/react-slider';
26
+ import { useTheme } from 'next-themes';
27
+ import { Toaster as Toaster$1 } from 'sonner';
28
+ import * as SwitchPrimitives from '@radix-ui/react-switch';
29
+ import * as TabsPrimitive from '@radix-ui/react-tabs';
30
+ import * as TogglePrimitive from '@radix-ui/react-toggle';
31
+ import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
32
+
33
+ // src/ui/alert.tsx
34
+ function cn(...inputs) {
35
+ return twMerge(clsx(inputs));
36
+ }
37
+ var alertVariants = cva(
38
+ "relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",
39
+ {
40
+ variants: {
41
+ variant: {
42
+ default: "bg-card text-card-foreground",
43
+ destructive: "text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"
44
+ }
45
+ },
46
+ defaultVariants: { variant: "default" }
47
+ }
48
+ );
49
+ function Alert({
50
+ className,
51
+ variant,
52
+ ...props
53
+ }) {
54
+ return /* @__PURE__ */ jsx(
55
+ "div",
56
+ {
57
+ "data-slot": "alert",
58
+ role: "alert",
59
+ className: cn(alertVariants({ variant }), className),
60
+ ...props
61
+ }
62
+ );
63
+ }
64
+ function AlertTitle({ className, ...props }) {
65
+ return /* @__PURE__ */ jsx(
66
+ "div",
67
+ {
68
+ "data-slot": "alert-title",
69
+ className: cn("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight", className),
70
+ ...props
71
+ }
72
+ );
73
+ }
74
+ function AlertDescription({ className, ...props }) {
75
+ return /* @__PURE__ */ jsx(
76
+ "div",
77
+ {
78
+ "data-slot": "alert-description",
79
+ className: cn(
80
+ "text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",
81
+ className
82
+ ),
83
+ ...props
84
+ }
85
+ );
86
+ }
87
+ function Avatar({
88
+ className,
89
+ ...props
90
+ }) {
91
+ return /* @__PURE__ */ jsx(
92
+ AvatarPrimitive.Root,
93
+ {
94
+ "data-slot": "avatar",
95
+ className: cn("relative flex size-8 shrink-0 overflow-hidden rounded-full", className),
96
+ ...props
97
+ }
98
+ );
99
+ }
100
+ function AvatarImage({
101
+ className,
102
+ ...props
103
+ }) {
104
+ return /* @__PURE__ */ jsx(
105
+ AvatarPrimitive.Image,
106
+ {
107
+ "data-slot": "avatar-image",
108
+ className: cn("aspect-square size-full", className),
109
+ ...props
110
+ }
111
+ );
112
+ }
113
+ function AvatarFallback({
114
+ className,
115
+ ...props
116
+ }) {
117
+ return /* @__PURE__ */ jsx(
118
+ AvatarPrimitive.Fallback,
119
+ {
120
+ "data-slot": "avatar-fallback",
121
+ className: cn("bg-muted flex size-full items-center justify-center rounded-full", className),
122
+ ...props
123
+ }
124
+ );
125
+ }
126
+ var badgeVariants = cva(
127
+ "inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",
128
+ {
129
+ variants: {
130
+ variant: {
131
+ default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
132
+ secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
133
+ destructive: "border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
134
+ outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
135
+ }
136
+ },
137
+ defaultVariants: { variant: "default" }
138
+ }
139
+ );
140
+ function Badge({
141
+ className,
142
+ variant,
143
+ asChild = false,
144
+ ...props
145
+ }) {
146
+ const Comp = asChild ? Slot : "span";
147
+ return /* @__PURE__ */ jsx(Comp, { "data-slot": "badge", className: cn(badgeVariants({ variant }), className), ...props });
148
+ }
149
+ function Breadcrumb({ ...props }) {
150
+ return /* @__PURE__ */ jsx("nav", { "aria-label": "breadcrumb", "data-slot": "breadcrumb", ...props });
151
+ }
152
+ function BreadcrumbList({ className, ...props }) {
153
+ return /* @__PURE__ */ jsx(
154
+ "ol",
155
+ {
156
+ "data-slot": "breadcrumb-list",
157
+ className: cn(
158
+ "text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5",
159
+ className
160
+ ),
161
+ ...props
162
+ }
163
+ );
164
+ }
165
+ function BreadcrumbItem({ className, ...props }) {
166
+ return /* @__PURE__ */ jsx(
167
+ "li",
168
+ {
169
+ "data-slot": "breadcrumb-item",
170
+ className: cn("inline-flex items-center gap-1.5", className),
171
+ ...props
172
+ }
173
+ );
174
+ }
175
+ function BreadcrumbLink({
176
+ asChild,
177
+ className,
178
+ ...props
179
+ }) {
180
+ const Comp = asChild ? Slot : "a";
181
+ return /* @__PURE__ */ jsx(
182
+ Comp,
183
+ {
184
+ "data-slot": "breadcrumb-link",
185
+ className: cn("hover:text-foreground transition-colors", className),
186
+ ...props
187
+ }
188
+ );
189
+ }
190
+ function BreadcrumbPage({ className, ...props }) {
191
+ return /* @__PURE__ */ jsx(
192
+ "span",
193
+ {
194
+ "data-slot": "breadcrumb-page",
195
+ role: "link",
196
+ "aria-disabled": "true",
197
+ "aria-current": "page",
198
+ className: cn("text-foreground font-normal", className),
199
+ ...props
200
+ }
201
+ );
202
+ }
203
+ function BreadcrumbSeparator({
204
+ children,
205
+ className,
206
+ ...props
207
+ }) {
208
+ return /* @__PURE__ */ jsx(
209
+ "li",
210
+ {
211
+ "data-slot": "breadcrumb-separator",
212
+ role: "presentation",
213
+ "aria-hidden": "true",
214
+ className: cn("[&>svg]:size-3.5", className),
215
+ ...props,
216
+ children: children ?? /* @__PURE__ */ jsx(ChevronRight, {})
217
+ }
218
+ );
219
+ }
220
+ function BreadcrumbEllipsis({
221
+ className,
222
+ ...props
223
+ }) {
224
+ return /* @__PURE__ */ jsxs(
225
+ "span",
226
+ {
227
+ "data-slot": "breadcrumb-ellipsis",
228
+ role: "presentation",
229
+ "aria-hidden": "true",
230
+ className: cn("flex size-9 items-center justify-center", className),
231
+ ...props,
232
+ children: [
233
+ /* @__PURE__ */ jsx(MoreHorizontal, { className: "size-4" }),
234
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "More" })
235
+ ]
236
+ }
237
+ );
238
+ }
239
+ var buttonVariants = cva(
240
+ "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-90 [&_svg]:pointer-events-none shrink-0 [&_svg]:shrink-0 outline-none aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive cursor-pointer",
241
+ {
242
+ variants: {
243
+ variant: {
244
+ default: "bg-primary-500 text-primary-foreground shadow-xs hover:bg-primary-700",
245
+ destructive: "bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
246
+ outline: "border border-primary-500 text-primary-500 bg-background shadow-xs hover:bg-primary-50/50 dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
247
+ secondary: "bg-primary-50 text-primary-500 shadow-xs hover:bg-secondary/80",
248
+ ghost: "hover:bg-primary-50/50 text-primary-500",
249
+ link: "text-primary underline-offset-4 hover:underline"
250
+ },
251
+ size: {
252
+ default: "h-12 px-4 py-2 has-[>svg]:px-3",
253
+ sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
254
+ lg: "h-12 rounded-md px-6 has-[>svg]:px-4",
255
+ icon: "size-9"
256
+ }
257
+ },
258
+ defaultVariants: { variant: "default", size: "default" }
259
+ }
260
+ );
261
+ function Button({
262
+ className,
263
+ variant,
264
+ size,
265
+ asChild = false,
266
+ ...props
267
+ }) {
268
+ const Comp = asChild ? Slot : "button";
269
+ return /* @__PURE__ */ jsx(Comp, { "data-slot": "button", className: cn(buttonVariants({ variant, size, className })), ...props });
270
+ }
271
+ function Separator({
272
+ className,
273
+ orientation = "horizontal",
274
+ decorative = true,
275
+ ...props
276
+ }) {
277
+ return /* @__PURE__ */ jsx(
278
+ SeparatorPrimitive.Root,
279
+ {
280
+ "data-slot": "separator",
281
+ decorative,
282
+ orientation,
283
+ className: cn(
284
+ "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
285
+ className
286
+ ),
287
+ ...props
288
+ }
289
+ );
290
+ }
291
+ var buttonGroupVariants = cva(
292
+ "flex w-fit items-stretch [&>*]:focus-visible:z-10 [&>*]:focus-visible:relative [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md has-[>[data-slot=button-group]]:gap-2",
293
+ {
294
+ variants: {
295
+ orientation: {
296
+ horizontal: "[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",
297
+ vertical: "flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"
298
+ }
299
+ },
300
+ defaultVariants: {
301
+ orientation: "horizontal"
302
+ }
303
+ }
304
+ );
305
+ function ButtonGroup({
306
+ className,
307
+ orientation,
308
+ ...props
309
+ }) {
310
+ return /* @__PURE__ */ jsx(
311
+ "div",
312
+ {
313
+ role: "group",
314
+ "data-slot": "button-group",
315
+ "data-orientation": orientation,
316
+ className: cn(buttonGroupVariants({ orientation }), className),
317
+ ...props
318
+ }
319
+ );
320
+ }
321
+ function ButtonGroupText({
322
+ className,
323
+ asChild = false,
324
+ ...props
325
+ }) {
326
+ const Comp = asChild ? Slot : "div";
327
+ return /* @__PURE__ */ jsx(
328
+ Comp,
329
+ {
330
+ className: cn(
331
+ "bg-muted flex items-center gap-2 rounded-md border px-4 text-sm font-medium shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",
332
+ className
333
+ ),
334
+ ...props
335
+ }
336
+ );
337
+ }
338
+ function ButtonGroupSeparator({
339
+ className,
340
+ orientation = "vertical",
341
+ ...props
342
+ }) {
343
+ return /* @__PURE__ */ jsx(
344
+ Separator,
345
+ {
346
+ "data-slot": "button-group-separator",
347
+ orientation,
348
+ className: cn(
349
+ "bg-input relative !m-0 self-stretch data-[orientation=vertical]:h-auto",
350
+ className
351
+ ),
352
+ ...props
353
+ }
354
+ );
355
+ }
356
+ function Calendar({
357
+ className,
358
+ classNames,
359
+ showOutsideDays = true,
360
+ captionLayout = "label",
361
+ buttonVariant = "ghost",
362
+ formatters,
363
+ components,
364
+ ...props
365
+ }) {
366
+ const defaultClassNames = getDefaultClassNames();
367
+ return /* @__PURE__ */ jsx(
368
+ DayPicker,
369
+ {
370
+ showOutsideDays,
371
+ className: cn(
372
+ "bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent pointer-events-auto",
373
+ String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,
374
+ String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,
375
+ className
376
+ ),
377
+ captionLayout,
378
+ formatters: {
379
+ formatMonthDropdown: (date) => date.toLocaleString("default", { month: "short" }),
380
+ ...formatters
381
+ },
382
+ classNames: {
383
+ root: cn("w-fit", defaultClassNames.root),
384
+ months: cn(
385
+ "flex gap-4 flex-col md:flex-row relative",
386
+ defaultClassNames.months
387
+ ),
388
+ month: cn("flex flex-col w-full gap-4", defaultClassNames.month),
389
+ nav: cn(
390
+ "flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between",
391
+ defaultClassNames.nav
392
+ ),
393
+ button_previous: cn(
394
+ buttonVariants({ variant: buttonVariant }),
395
+ "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
396
+ defaultClassNames.button_previous
397
+ ),
398
+ button_next: cn(
399
+ buttonVariants({ variant: buttonVariant }),
400
+ "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none",
401
+ defaultClassNames.button_next
402
+ ),
403
+ month_caption: cn(
404
+ "flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)",
405
+ defaultClassNames.month_caption
406
+ ),
407
+ dropdowns: cn(
408
+ "w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5",
409
+ defaultClassNames.dropdowns
410
+ ),
411
+ dropdown_root: cn(
412
+ "relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md",
413
+ defaultClassNames.dropdown_root
414
+ ),
415
+ dropdown: cn("absolute inset-0 opacity-0", defaultClassNames.dropdown),
416
+ caption_label: cn(
417
+ "select-none font-medium",
418
+ captionLayout === "label" ? "text-sm" : "rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5",
419
+ defaultClassNames.caption_label
420
+ ),
421
+ table: "w-full border-collapse",
422
+ weekdays: cn("flex", defaultClassNames.weekdays),
423
+ weekday: cn(
424
+ "text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none",
425
+ defaultClassNames.weekday
426
+ ),
427
+ week: cn("flex w-full mt-2", defaultClassNames.week),
428
+ week_number_header: cn(
429
+ "select-none w-(--cell-size)",
430
+ defaultClassNames.week_number_header
431
+ ),
432
+ week_number: cn(
433
+ "text-[0.8rem] select-none text-muted-foreground",
434
+ defaultClassNames.week_number
435
+ ),
436
+ day: cn(
437
+ "relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",
438
+ defaultClassNames.day
439
+ ),
440
+ range_start: cn(
441
+ "rounded-l-md bg-accent",
442
+ defaultClassNames.range_start
443
+ ),
444
+ range_middle: cn("rounded-none", defaultClassNames.range_middle),
445
+ range_end: cn("rounded-r-md bg-accent", defaultClassNames.range_end),
446
+ today: cn(
447
+ "bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",
448
+ defaultClassNames.today
449
+ ),
450
+ outside: cn(
451
+ "text-muted-foreground aria-selected:text-muted-foreground",
452
+ defaultClassNames.outside
453
+ ),
454
+ disabled: cn(
455
+ "text-muted-foreground opacity-50",
456
+ defaultClassNames.disabled
457
+ ),
458
+ hidden: cn("invisible", defaultClassNames.hidden),
459
+ ...classNames
460
+ },
461
+ components: {
462
+ Root: ({ className: className2, rootRef, ...props2 }) => {
463
+ return /* @__PURE__ */ jsx(
464
+ "div",
465
+ {
466
+ "data-slot": "calendar",
467
+ ref: rootRef,
468
+ className: cn(className2),
469
+ ...props2
470
+ }
471
+ );
472
+ },
473
+ Chevron: ({ className: className2, orientation, ...props2 }) => {
474
+ if (orientation === "left") {
475
+ return /* @__PURE__ */ jsx(ChevronLeftIcon, { className: cn("size-4", className2), ...props2 });
476
+ }
477
+ if (orientation === "right") {
478
+ return /* @__PURE__ */ jsx(
479
+ ChevronRightIcon,
480
+ {
481
+ className: cn("size-4", className2),
482
+ ...props2
483
+ }
484
+ );
485
+ }
486
+ return /* @__PURE__ */ jsx(ChevronDownIcon, { className: cn("size-4", className2), ...props2 });
487
+ },
488
+ DayButton: CalendarDayButton,
489
+ WeekNumber: ({ children, ...props2 }) => {
490
+ return /* @__PURE__ */ jsx("td", { ...props2, children: /* @__PURE__ */ jsx("div", { className: "flex size-(--cell-size) items-center justify-center text-center", children }) });
491
+ },
492
+ ...components
493
+ },
494
+ ...props
495
+ }
496
+ );
497
+ }
498
+ function CalendarDayButton({
499
+ className,
500
+ day,
501
+ modifiers,
502
+ ...props
503
+ }) {
504
+ const defaultClassNames = getDefaultClassNames();
505
+ const ref = React10.useRef(null);
506
+ React10.useEffect(() => {
507
+ if (modifiers.focused) ref.current?.focus();
508
+ }, [modifiers.focused]);
509
+ return /* @__PURE__ */ jsx(
510
+ Button,
511
+ {
512
+ ref,
513
+ variant: "ghost",
514
+ size: "icon",
515
+ "data-day": day.date.toLocaleDateString(),
516
+ "data-selected-single": modifiers.selected && !modifiers.range_start && !modifiers.range_end && !modifiers.range_middle,
517
+ "data-range-start": modifiers.range_start,
518
+ "data-range-end": modifiers.range_end,
519
+ "data-range-middle": modifiers.range_middle,
520
+ className: cn(
521
+ "data-[selected-single=true]:bg-primary-600 data-[selected-single=true]:text-white 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 dark:hover:text-accent-foreground flex aspect-square size-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-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70",
522
+ defaultClassNames.day,
523
+ className
524
+ ),
525
+ ...props
526
+ }
527
+ );
528
+ }
529
+ function Card({ className, ...props }) {
530
+ return /* @__PURE__ */ jsx(
531
+ "div",
532
+ {
533
+ "data-slot": "card",
534
+ className: cn("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm", className),
535
+ ...props
536
+ }
537
+ );
538
+ }
539
+ function CardHeader({ className, ...props }) {
540
+ return /* @__PURE__ */ jsx(
541
+ "div",
542
+ {
543
+ "data-slot": "card-header",
544
+ className: cn(
545
+ "@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
546
+ className
547
+ ),
548
+ ...props
549
+ }
550
+ );
551
+ }
552
+ function CardTitle({ className, ...props }) {
553
+ return /* @__PURE__ */ jsx("div", { "data-slot": "card-title", className: cn("leading-none font-semibold", className), ...props });
554
+ }
555
+ function CardDescription({ className, ...props }) {
556
+ return /* @__PURE__ */ jsx("div", { "data-slot": "card-description", className: cn("text-muted-foreground text-sm", className), ...props });
557
+ }
558
+ function CardAction({ className, ...props }) {
559
+ return /* @__PURE__ */ jsx(
560
+ "div",
561
+ {
562
+ "data-slot": "card-action",
563
+ className: cn("col-start-2 row-span-2 row-start-1 self-start justify-self-end", className),
564
+ ...props
565
+ }
566
+ );
567
+ }
568
+ function CardContent({ className, ...props }) {
569
+ return /* @__PURE__ */ jsx("div", { "data-slot": "card-content", className: cn("px-6", className), ...props });
570
+ }
571
+ function CardFooter({ className, ...props }) {
572
+ return /* @__PURE__ */ jsx("div", { "data-slot": "card-footer", className: cn("flex items-center px-6 [.border-t]:pt-6", className), ...props });
573
+ }
574
+ function Checkbox({
575
+ className,
576
+ ...props
577
+ }) {
578
+ return /* @__PURE__ */ jsx(
579
+ CheckboxPrimitive.Root,
580
+ {
581
+ "data-slot": "checkbox",
582
+ className: cn(
583
+ "peer cursor-pointer border-primary-100 dark:bg-input/30 data-[state=checked]:bg-primary-500 data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary-800 data-[state=checked]:border-primary-600 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive size-4 shrink-0 rounded-[4px] border shadow-xs transition-shadow outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
584
+ className
585
+ ),
586
+ ...props,
587
+ children: /* @__PURE__ */ jsx(
588
+ CheckboxPrimitive.Indicator,
589
+ {
590
+ "data-slot": "checkbox-indicator",
591
+ className: "flex items-center justify-center text-current transition-none",
592
+ children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-3.5" })
593
+ }
594
+ )
595
+ }
596
+ );
597
+ }
598
+ function Dialog({ ...props }) {
599
+ return /* @__PURE__ */ jsx(DialogPrimitive.Root, { "data-slot": "dialog", ...props });
600
+ }
601
+ function DialogTrigger({ ...props }) {
602
+ return /* @__PURE__ */ jsx(DialogPrimitive.Trigger, { "data-slot": "dialog-trigger", ...props });
603
+ }
604
+ function DialogPortal({ ...props }) {
605
+ return /* @__PURE__ */ jsx(DialogPrimitive.Portal, { "data-slot": "dialog-portal", ...props });
606
+ }
607
+ function DialogClose({ ...props }) {
608
+ return /* @__PURE__ */ jsx(DialogPrimitive.Close, { "data-slot": "dialog-close", ...props });
609
+ }
610
+ function DialogOverlay({
611
+ className,
612
+ ...props
613
+ }) {
614
+ return /* @__PURE__ */ jsx(
615
+ DialogPrimitive.Overlay,
616
+ {
617
+ "data-slot": "dialog-overlay",
618
+ className: cn(
619
+ "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/50",
620
+ className
621
+ ),
622
+ ...props
623
+ }
624
+ );
625
+ }
626
+ function DialogContent({
627
+ className,
628
+ children,
629
+ showCloseButton = true,
630
+ ...props
631
+ }) {
632
+ return /* @__PURE__ */ jsxs(DialogPortal, { "data-slot": "dialog-portal", children: [
633
+ /* @__PURE__ */ jsx(DialogOverlay, {}),
634
+ /* @__PURE__ */ jsxs(
635
+ DialogPrimitive.Content,
636
+ {
637
+ "data-slot": "dialog-content",
638
+ className: cn(
639
+ "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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",
640
+ className
641
+ ),
642
+ ...props,
643
+ children: [
644
+ children,
645
+ showCloseButton && /* @__PURE__ */ jsxs(
646
+ DialogPrimitive.Close,
647
+ {
648
+ "data-slot": "dialog-close",
649
+ className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
650
+ children: [
651
+ /* @__PURE__ */ jsx(XIcon, {}),
652
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
653
+ ]
654
+ }
655
+ )
656
+ ]
657
+ }
658
+ )
659
+ ] });
660
+ }
661
+ function DialogHeader({ className, ...props }) {
662
+ return /* @__PURE__ */ jsx("div", { "data-slot": "dialog-header", className: cn("flex flex-col gap-2 text-center sm:text-left", className), ...props });
663
+ }
664
+ function DialogFooter({ className, ...props }) {
665
+ return /* @__PURE__ */ jsx("div", { "data-slot": "dialog-footer", className: cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className), ...props });
666
+ }
667
+ function DialogTitle({ className, ...props }) {
668
+ return /* @__PURE__ */ jsx(DialogPrimitive.Title, { "data-slot": "dialog-title", className: cn("text-lg leading-none font-semibold", className), ...props });
669
+ }
670
+ function DialogDescription({ className, ...props }) {
671
+ return /* @__PURE__ */ jsx(DialogPrimitive.Description, { "data-slot": "dialog-description", className: cn("text-muted-foreground text-sm", className), ...props });
672
+ }
673
+ function Command({
674
+ className,
675
+ ...props
676
+ }) {
677
+ return /* @__PURE__ */ jsx(
678
+ Command$1,
679
+ {
680
+ "data-slot": "command",
681
+ className: cn(
682
+ "bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
683
+ className
684
+ ),
685
+ ...props
686
+ }
687
+ );
688
+ }
689
+ function CommandDialog({
690
+ title = "Command Palette",
691
+ description = "Search for a command to run...",
692
+ children,
693
+ className,
694
+ showCloseButton = true,
695
+ ...props
696
+ }) {
697
+ return /* @__PURE__ */ jsxs(Dialog, { ...props, children: [
698
+ /* @__PURE__ */ jsxs(DialogHeader, { className: "sr-only", children: [
699
+ /* @__PURE__ */ jsx(DialogTitle, { children: title }),
700
+ /* @__PURE__ */ jsx(DialogDescription, { children: description })
701
+ ] }),
702
+ /* @__PURE__ */ jsx(
703
+ DialogContent,
704
+ {
705
+ className: cn("overflow-hidden p-0", className),
706
+ showCloseButton,
707
+ children: /* @__PURE__ */ jsx(Command, { className: "[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children })
708
+ }
709
+ )
710
+ ] });
711
+ }
712
+ function CommandInput({
713
+ className,
714
+ ...props
715
+ }) {
716
+ return /* @__PURE__ */ jsxs(
717
+ "div",
718
+ {
719
+ "data-slot": "command-input-wrapper",
720
+ className: "flex h-12 items-center gap-2 border-b px-3",
721
+ children: [
722
+ /* @__PURE__ */ jsx(SearchIcon, { className: "size-4 shrink-0 opacity-50" }),
723
+ /* @__PURE__ */ jsx(
724
+ Command$1.Input,
725
+ {
726
+ "data-slot": "command-input",
727
+ className: cn(
728
+ "placeholder:text-muted-foreground flex h-12 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
729
+ className
730
+ ),
731
+ ...props
732
+ }
733
+ )
734
+ ]
735
+ }
736
+ );
737
+ }
738
+ function CommandList({
739
+ className,
740
+ ...props
741
+ }) {
742
+ return /* @__PURE__ */ jsx(
743
+ Command$1.List,
744
+ {
745
+ "data-slot": "command-list",
746
+ className: cn(
747
+ "max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",
748
+ className
749
+ ),
750
+ ...props
751
+ }
752
+ );
753
+ }
754
+ function CommandEmpty({
755
+ ...props
756
+ }) {
757
+ return /* @__PURE__ */ jsx(
758
+ Command$1.Empty,
759
+ {
760
+ "data-slot": "command-empty",
761
+ className: "py-6 text-center text-sm",
762
+ ...props
763
+ }
764
+ );
765
+ }
766
+ function CommandGroup({
767
+ className,
768
+ ...props
769
+ }) {
770
+ return /* @__PURE__ */ jsx(
771
+ Command$1.Group,
772
+ {
773
+ "data-slot": "command-group",
774
+ className: cn(
775
+ "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",
776
+ className
777
+ ),
778
+ ...props
779
+ }
780
+ );
781
+ }
782
+ function CommandSeparator({
783
+ className,
784
+ ...props
785
+ }) {
786
+ return /* @__PURE__ */ jsx(
787
+ Command$1.Separator,
788
+ {
789
+ "data-slot": "command-separator",
790
+ className: cn("bg-border -mx-1 h-px", className),
791
+ ...props
792
+ }
793
+ );
794
+ }
795
+ function CommandItem({
796
+ className,
797
+ ...props
798
+ }) {
799
+ return /* @__PURE__ */ jsx(
800
+ Command$1.Item,
801
+ {
802
+ "data-slot": "command-item",
803
+ className: cn(
804
+ "data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-2.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
805
+ className
806
+ ),
807
+ ...props
808
+ }
809
+ );
810
+ }
811
+ function CommandShortcut({
812
+ className,
813
+ ...props
814
+ }) {
815
+ return /* @__PURE__ */ jsx(
816
+ "span",
817
+ {
818
+ "data-slot": "command-shortcut",
819
+ className: cn(
820
+ "text-muted-foreground ml-auto text-xs tracking-widest",
821
+ className
822
+ ),
823
+ ...props
824
+ }
825
+ );
826
+ }
827
+ function Popover({ ...props }) {
828
+ return /* @__PURE__ */ jsx(PopoverPrimitive.Root, { "data-slot": "popover", ...props });
829
+ }
830
+ function PopoverTrigger({ ...props }) {
831
+ return /* @__PURE__ */ jsx(PopoverPrimitive.Trigger, { "data-slot": "popover-trigger", ...props });
832
+ }
833
+ function PopoverContent({
834
+ className,
835
+ align = "center",
836
+ sideOffset = 4,
837
+ ...props
838
+ }) {
839
+ return /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(
840
+ PopoverPrimitive.Content,
841
+ {
842
+ "data-slot": "popover-content",
843
+ align,
844
+ sideOffset,
845
+ className: cn(
846
+ "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-hidden",
847
+ className
848
+ ),
849
+ ...props
850
+ }
851
+ ) });
852
+ }
853
+ function PopoverAnchor({ ...props }) {
854
+ return /* @__PURE__ */ jsx(PopoverPrimitive.Anchor, { "data-slot": "popover-anchor", ...props });
855
+ }
856
+ function Combobox({
857
+ options,
858
+ value,
859
+ onValueChange,
860
+ placeholder = "Select option...",
861
+ searchPlaceholder = "Search...",
862
+ emptyMessage = "No options found.",
863
+ disabled = false,
864
+ className
865
+ }) {
866
+ const [open, setOpen] = React10.useState(false);
867
+ const selectedOption = options.find((option) => option.value === value);
868
+ return /* @__PURE__ */ jsxs(Popover, { open, onOpenChange: setOpen, children: [
869
+ /* @__PURE__ */ jsx(PopoverTrigger, { asChild: true, children: /* @__PURE__ */ jsxs(
870
+ Button,
871
+ {
872
+ variant: "outline",
873
+ role: "combobox",
874
+ "aria-expanded": open,
875
+ className: cn("w-full justify-between", className),
876
+ disabled,
877
+ children: [
878
+ selectedOption ? selectedOption.label : placeholder,
879
+ /* @__PURE__ */ jsx(ChevronsUpDown, { className: "ml-2 h-4 w-4 shrink-0 opacity-50" })
880
+ ]
881
+ }
882
+ ) }),
883
+ /* @__PURE__ */ jsx(PopoverContent, { className: "w-full p-0", align: "start", children: /* @__PURE__ */ jsxs(Command, { children: [
884
+ /* @__PURE__ */ jsx(CommandInput, { placeholder: searchPlaceholder }),
885
+ /* @__PURE__ */ jsxs(CommandList, { children: [
886
+ /* @__PURE__ */ jsx(CommandEmpty, { children: emptyMessage }),
887
+ /* @__PURE__ */ jsx(CommandGroup, { children: options.map((option) => /* @__PURE__ */ jsxs(
888
+ CommandItem,
889
+ {
890
+ value: option.value,
891
+ onSelect: (currentValue) => {
892
+ onValueChange(currentValue === value ? "" : currentValue);
893
+ setOpen(false);
894
+ },
895
+ children: [
896
+ /* @__PURE__ */ jsx(
897
+ Check,
898
+ {
899
+ className: cn(
900
+ "mr-2 h-4 w-4",
901
+ value === option.value ? "opacity-100" : "opacity-0"
902
+ )
903
+ }
904
+ ),
905
+ option.label
906
+ ]
907
+ },
908
+ option.value
909
+ )) })
910
+ ] })
911
+ ] }) })
912
+ ] });
913
+ }
914
+ function Drawer({ ...props }) {
915
+ return /* @__PURE__ */ jsx(Drawer$1.Root, { "data-slot": "drawer", ...props });
916
+ }
917
+ function DrawerTrigger({ ...props }) {
918
+ return /* @__PURE__ */ jsx(Drawer$1.Trigger, { "data-slot": "drawer-trigger", ...props });
919
+ }
920
+ function DrawerPortal({ ...props }) {
921
+ return /* @__PURE__ */ jsx(Drawer$1.Portal, { "data-slot": "drawer-portal", ...props });
922
+ }
923
+ function DrawerClose({ ...props }) {
924
+ return /* @__PURE__ */ jsx(Drawer$1.Close, { "data-slot": "drawer-close", ...props });
925
+ }
926
+ function DrawerOverlay({ className, ...props }) {
927
+ return /* @__PURE__ */ jsx(
928
+ Drawer$1.Overlay,
929
+ {
930
+ "data-slot": "drawer-overlay",
931
+ className: cn(
932
+ "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/50",
933
+ className
934
+ ),
935
+ ...props
936
+ }
937
+ );
938
+ }
939
+ function DrawerContent({ className, children, ...props }) {
940
+ return /* @__PURE__ */ jsxs(DrawerPortal, { "data-slot": "drawer-portal", children: [
941
+ /* @__PURE__ */ jsx(DrawerOverlay, {}),
942
+ /* @__PURE__ */ jsxs(
943
+ Drawer$1.Content,
944
+ {
945
+ "data-slot": "drawer-content",
946
+ className: cn(
947
+ "group/drawer-content bg-background fixed z-50 flex h-auto flex-col",
948
+ "data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b",
949
+ "data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg",
950
+ "data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l data-[vaul-drawer-direction=right]:sm:max-w-sm",
951
+ "data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r data-[vaul-drawer-direction=left]:sm:max-w-sm",
952
+ className
953
+ ),
954
+ ...props,
955
+ children: [
956
+ /* @__PURE__ */ jsx("div", { className: "bg-muted mx-auto my-2.5 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }),
957
+ children
958
+ ]
959
+ }
960
+ )
961
+ ] });
962
+ }
963
+ function DrawerHeader({ className, ...props }) {
964
+ return /* @__PURE__ */ jsx(
965
+ "div",
966
+ {
967
+ "data-slot": "drawer-header",
968
+ className: cn(
969
+ "flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left",
970
+ className
971
+ ),
972
+ ...props
973
+ }
974
+ );
975
+ }
976
+ function DrawerFooter({ className, ...props }) {
977
+ return /* @__PURE__ */ jsx("div", { "data-slot": "drawer-footer", className: cn("mt-auto flex flex-col gap-2 p-4", className), ...props });
978
+ }
979
+ function DrawerTitle({ className, ...props }) {
980
+ return /* @__PURE__ */ jsx(Drawer$1.Title, { "data-slot": "drawer-title", className: cn("text-foreground font-semibold", className), ...props });
981
+ }
982
+ function DrawerDescription({ className, ...props }) {
983
+ return /* @__PURE__ */ jsx(Drawer$1.Description, { "data-slot": "drawer-description", className: cn("text-muted-foreground text-sm", className), ...props });
984
+ }
985
+ function DropdownMenu({ ...props }) {
986
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
987
+ }
988
+ function DropdownMenuPortal({ ...props }) {
989
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { "data-slot": "dropdown-menu-portal", ...props });
990
+ }
991
+ function DropdownMenuTrigger({ ...props }) {
992
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Trigger, { "data-slot": "dropdown-menu-trigger", ...props });
993
+ }
994
+ function DropdownMenuContent({
995
+ className,
996
+ sideOffset = 6,
997
+ ...props
998
+ }) {
999
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(
1000
+ DropdownMenuPrimitive.Content,
1001
+ {
1002
+ "data-slot": "dropdown-menu-content",
1003
+ sideOffset,
1004
+ side: "bottom",
1005
+ align: "start",
1006
+ alignOffset: 0,
1007
+ className: cn(
1008
+ "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-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
1009
+ className
1010
+ ),
1011
+ ...props
1012
+ }
1013
+ ) });
1014
+ }
1015
+ function DropdownMenuGroup({ ...props }) {
1016
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Group, { "data-slot": "dropdown-menu-group", ...props });
1017
+ }
1018
+ function DropdownMenuItem({
1019
+ className,
1020
+ inset,
1021
+ variant = "default",
1022
+ ...props
1023
+ }) {
1024
+ return /* @__PURE__ */ jsx(
1025
+ DropdownMenuPrimitive.Item,
1026
+ {
1027
+ "data-slot": "dropdown-menu-item",
1028
+ "data-inset": inset,
1029
+ "data-variant": variant,
1030
+ className: cn(
1031
+ "focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-pointer items-center gap-2 rounded-sm px-2 py-2.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
1032
+ className
1033
+ ),
1034
+ ...props
1035
+ }
1036
+ );
1037
+ }
1038
+ function DropdownMenuCheckboxItem({
1039
+ className,
1040
+ children,
1041
+ checked,
1042
+ ...props
1043
+ }) {
1044
+ return /* @__PURE__ */ jsxs(
1045
+ DropdownMenuPrimitive.CheckboxItem,
1046
+ {
1047
+ "data-slot": "dropdown-menu-checkbox-item",
1048
+ className: cn(
1049
+ "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
1050
+ className
1051
+ ),
1052
+ checked,
1053
+ ...props,
1054
+ children: [
1055
+ /* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-4" }) }) }),
1056
+ children
1057
+ ]
1058
+ }
1059
+ );
1060
+ }
1061
+ function DropdownMenuRadioGroup({ ...props }) {
1062
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.RadioGroup, { "data-slot": "dropdown-menu-radio-group", ...props });
1063
+ }
1064
+ function DropdownMenuRadioItem({ className, children, ...props }) {
1065
+ return /* @__PURE__ */ jsxs(
1066
+ DropdownMenuPrimitive.RadioItem,
1067
+ {
1068
+ "data-slot": "dropdown-menu-radio-item",
1069
+ className: cn(
1070
+ "focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
1071
+ className
1072
+ ),
1073
+ ...props,
1074
+ children: [
1075
+ /* @__PURE__ */ jsx("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CircleIcon, { className: "size-2 fill-current" }) }) }),
1076
+ children
1077
+ ]
1078
+ }
1079
+ );
1080
+ }
1081
+ function DropdownMenuLabel({
1082
+ className,
1083
+ inset,
1084
+ ...props
1085
+ }) {
1086
+ return /* @__PURE__ */ jsx(
1087
+ DropdownMenuPrimitive.Label,
1088
+ {
1089
+ "data-slot": "dropdown-menu-label",
1090
+ "data-inset": inset,
1091
+ className: cn("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", className),
1092
+ ...props
1093
+ }
1094
+ );
1095
+ }
1096
+ function DropdownMenuSeparator({ className, ...props }) {
1097
+ return /* @__PURE__ */ jsx(
1098
+ DropdownMenuPrimitive.Separator,
1099
+ {
1100
+ "data-slot": "dropdown-menu-separator",
1101
+ className: cn("bg-border -mx-1 my-1 h-px", className),
1102
+ ...props
1103
+ }
1104
+ );
1105
+ }
1106
+ function DropdownMenuShortcut({ className, ...props }) {
1107
+ return /* @__PURE__ */ jsx(
1108
+ "span",
1109
+ {
1110
+ "data-slot": "dropdown-menu-shortcut",
1111
+ className: cn("text-muted-foreground ml-auto text-xs tracking-widest", className),
1112
+ ...props
1113
+ }
1114
+ );
1115
+ }
1116
+ function DropdownMenuSub({ ...props }) {
1117
+ return /* @__PURE__ */ jsx(DropdownMenuPrimitive.Sub, { "data-slot": "dropdown-menu-sub", ...props });
1118
+ }
1119
+ function DropdownMenuSubTrigger({
1120
+ className,
1121
+ inset,
1122
+ children,
1123
+ ...props
1124
+ }) {
1125
+ return /* @__PURE__ */ jsxs(
1126
+ DropdownMenuPrimitive.SubTrigger,
1127
+ {
1128
+ "data-slot": "dropdown-menu-sub-trigger",
1129
+ "data-inset": inset,
1130
+ className: cn(
1131
+ "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-hidden select-none data-[inset]:pl-8",
1132
+ className
1133
+ ),
1134
+ ...props,
1135
+ children: [
1136
+ children,
1137
+ /* @__PURE__ */ jsx(ChevronRightIcon, { className: "ml-auto size-4" })
1138
+ ]
1139
+ }
1140
+ );
1141
+ }
1142
+ function DropdownMenuSubContent({ className, ...props }) {
1143
+ return /* @__PURE__ */ jsx(
1144
+ DropdownMenuPrimitive.SubContent,
1145
+ {
1146
+ "data-slot": "dropdown-menu-sub-content",
1147
+ className: cn(
1148
+ "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",
1149
+ className
1150
+ ),
1151
+ ...props
1152
+ }
1153
+ );
1154
+ }
1155
+ function Label2({
1156
+ className,
1157
+ ...props
1158
+ }) {
1159
+ return /* @__PURE__ */ jsx(
1160
+ LabelPrimitive.Root,
1161
+ {
1162
+ "data-slot": "label",
1163
+ className: cn(
1164
+ "flex items-center gap-2 text-[14px] leading-none font-normal font-onest text-neutral-400 pl-1 select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
1165
+ className
1166
+ ),
1167
+ ...props
1168
+ }
1169
+ );
1170
+ }
1171
+ var Form = FormProvider;
1172
+ var FormFieldContext = React10.createContext(
1173
+ {}
1174
+ );
1175
+ var FormField = ({
1176
+ ...props
1177
+ }) => {
1178
+ return /* @__PURE__ */ jsx(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx(Controller, { ...props }) });
1179
+ };
1180
+ var useFormField = () => {
1181
+ const fieldContext = React10.useContext(FormFieldContext);
1182
+ const itemContext = React10.useContext(FormItemContext);
1183
+ const { getFieldState } = useFormContext();
1184
+ const formState = useFormState({ name: fieldContext.name });
1185
+ const fieldState = getFieldState(fieldContext.name, formState);
1186
+ if (!fieldContext) {
1187
+ throw new Error("useFormField should be used within <FormField>");
1188
+ }
1189
+ const { id } = itemContext;
1190
+ return {
1191
+ id,
1192
+ name: fieldContext.name,
1193
+ formItemId: `${id}-form-item`,
1194
+ formDescriptionId: `${id}-form-item-description`,
1195
+ formMessageId: `${id}-form-item-message`,
1196
+ ...fieldState
1197
+ };
1198
+ };
1199
+ var FormItemContext = React10.createContext(
1200
+ {}
1201
+ );
1202
+ function FormItem({ className, ...props }) {
1203
+ const id = React10.useId();
1204
+ return /* @__PURE__ */ jsx(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx(
1205
+ "div",
1206
+ {
1207
+ "data-slot": "form-item",
1208
+ className: cn("grid gap-2", className),
1209
+ ...props
1210
+ }
1211
+ ) });
1212
+ }
1213
+ function FormLabel({
1214
+ className,
1215
+ ...props
1216
+ }) {
1217
+ const { error, formItemId } = useFormField();
1218
+ return /* @__PURE__ */ jsx(
1219
+ Label2,
1220
+ {
1221
+ "data-slot": "form-label",
1222
+ "data-error": !!error,
1223
+ className: cn("data-[error=true]:text-destructive", className),
1224
+ htmlFor: formItemId,
1225
+ ...props
1226
+ }
1227
+ );
1228
+ }
1229
+ function FormControl({ ...props }) {
1230
+ const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
1231
+ return /* @__PURE__ */ jsx(
1232
+ Slot,
1233
+ {
1234
+ "data-slot": "form-control",
1235
+ id: formItemId,
1236
+ "aria-describedby": !error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`,
1237
+ "aria-invalid": !!error,
1238
+ ...props
1239
+ }
1240
+ );
1241
+ }
1242
+ function FormDescription({ className, ...props }) {
1243
+ const { formDescriptionId } = useFormField();
1244
+ return /* @__PURE__ */ jsx(
1245
+ "p",
1246
+ {
1247
+ "data-slot": "form-description",
1248
+ id: formDescriptionId,
1249
+ className: cn("text-muted-foreground text-sm", className),
1250
+ ...props
1251
+ }
1252
+ );
1253
+ }
1254
+ function FormMessage({ className, ...props }) {
1255
+ const { error, formMessageId } = useFormField();
1256
+ const body = error ? String(error?.message ?? "") : props.children;
1257
+ if (!body) {
1258
+ return null;
1259
+ }
1260
+ return /* @__PURE__ */ jsx(
1261
+ "p",
1262
+ {
1263
+ "data-slot": "form-message",
1264
+ id: formMessageId,
1265
+ className: cn("text-destructive text-sm", className),
1266
+ ...props,
1267
+ children: body
1268
+ }
1269
+ );
1270
+ }
1271
+ function Input({ className, type, ...props }) {
1272
+ return /* @__PURE__ */ jsx(
1273
+ "input",
1274
+ {
1275
+ type,
1276
+ "data-slot": "input",
1277
+ className: cn(
1278
+ "file:text-foreground placeholder:text-neutral-200/70 selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-neutral-100/60 flex h-12 w-full min-w-0 rounded-md border-[1px] bg-transparent px-3 py-1 text-base transition-[color,box-shadow] outline-none file:hidden disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-base cursor-pointer font-golos",
1279
+ "focus-visible:border-primary-600",
1280
+ "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
1281
+ className
1282
+ ),
1283
+ ...props
1284
+ }
1285
+ );
1286
+ }
1287
+ function Pagination({ className, ...props }) {
1288
+ return /* @__PURE__ */ jsx(
1289
+ "nav",
1290
+ {
1291
+ role: "navigation",
1292
+ "aria-label": "pagination",
1293
+ "data-slot": "pagination",
1294
+ className: cn("mx-auto flex w-full justify-center", className),
1295
+ ...props
1296
+ }
1297
+ );
1298
+ }
1299
+ function PaginationContent({
1300
+ className,
1301
+ ...props
1302
+ }) {
1303
+ return /* @__PURE__ */ jsx(
1304
+ "ul",
1305
+ {
1306
+ "data-slot": "pagination-content",
1307
+ className: cn("flex flex-row items-center gap-1", className),
1308
+ ...props
1309
+ }
1310
+ );
1311
+ }
1312
+ function PaginationItem({ ...props }) {
1313
+ return /* @__PURE__ */ jsx("li", { "data-slot": "pagination-item", ...props });
1314
+ }
1315
+ function PaginationLink({
1316
+ className,
1317
+ isActive,
1318
+ size = "icon",
1319
+ ...props
1320
+ }) {
1321
+ return /* @__PURE__ */ jsx(
1322
+ Link,
1323
+ {
1324
+ "aria-current": isActive ? "page" : void 0,
1325
+ "data-slot": "pagination-link",
1326
+ "data-active": isActive,
1327
+ className: cn(
1328
+ buttonVariants({
1329
+ variant: isActive ? "outline" : "ghost",
1330
+ size
1331
+ }),
1332
+ className
1333
+ ),
1334
+ ...props
1335
+ }
1336
+ );
1337
+ }
1338
+ function PaginationPrevious({
1339
+ className,
1340
+ ...props
1341
+ }) {
1342
+ return /* @__PURE__ */ jsxs(
1343
+ PaginationLink,
1344
+ {
1345
+ "aria-label": "Go to previous page",
1346
+ size: "default",
1347
+ className: cn("gap-1 px-2.5 sm:pl-2.5", className),
1348
+ ...props,
1349
+ children: [
1350
+ /* @__PURE__ */ jsx(ChevronLeftIcon, {}),
1351
+ /* @__PURE__ */ jsx("span", { className: "hidden sm:block", children: "Previous" })
1352
+ ]
1353
+ }
1354
+ );
1355
+ }
1356
+ function PaginationNext({
1357
+ className,
1358
+ ...props
1359
+ }) {
1360
+ return /* @__PURE__ */ jsxs(
1361
+ PaginationLink,
1362
+ {
1363
+ "aria-label": "Go to next page",
1364
+ size: "default",
1365
+ className: cn("gap-1 px-2.5 sm:pr-2.5", className),
1366
+ ...props,
1367
+ children: [
1368
+ /* @__PURE__ */ jsx("span", { className: "hidden sm:block", children: "Next" }),
1369
+ /* @__PURE__ */ jsx(ChevronRightIcon, {})
1370
+ ]
1371
+ }
1372
+ );
1373
+ }
1374
+ function PaginationEllipsis({
1375
+ className,
1376
+ ...props
1377
+ }) {
1378
+ return /* @__PURE__ */ jsxs(
1379
+ "span",
1380
+ {
1381
+ "aria-hidden": true,
1382
+ "data-slot": "pagination-ellipsis",
1383
+ className: cn("flex size-9 items-center justify-center", className),
1384
+ ...props,
1385
+ children: [
1386
+ /* @__PURE__ */ jsx(MoreHorizontalIcon, { className: "size-4" }),
1387
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "More pages" })
1388
+ ]
1389
+ }
1390
+ );
1391
+ }
1392
+ function checkPassword(value) {
1393
+ return {
1394
+ length: value.length >= 8,
1395
+ letter: /[a-zA-Z]/.test(value),
1396
+ number: /[0-9]/.test(value),
1397
+ symbol: /[^a-zA-Z0-9]/.test(value)
1398
+ };
1399
+ }
1400
+ function calcStrength(rules) {
1401
+ return Object.values(rules).filter(Boolean).length;
1402
+ }
1403
+ var PasswordInput = forwardRef(({ className, ...props }, ref) => {
1404
+ const [showPassword, setShowPassword] = useState(false);
1405
+ const disabled = props.value === "" || props.value === void 0 || props.disabled;
1406
+ return /* @__PURE__ */ jsxs("div", { className: "relative", children: [
1407
+ /* @__PURE__ */ jsx(
1408
+ Input,
1409
+ {
1410
+ type: showPassword ? "text" : "password",
1411
+ className: cn("hide-password-toggle pr-10", className),
1412
+ ref,
1413
+ ...props
1414
+ }
1415
+ ),
1416
+ /* @__PURE__ */ jsxs(
1417
+ Button,
1418
+ {
1419
+ type: "button",
1420
+ variant: "ghost",
1421
+ size: "sm",
1422
+ tabIndex: -1,
1423
+ className: "absolute right-0 top-0 h-full px-3 py-2 hover:bg-transparent text-neutral-300",
1424
+ onMouseDown: (e) => e.preventDefault(),
1425
+ onClick: () => setShowPassword((prev) => !prev),
1426
+ children: [
1427
+ showPassword && !disabled ? /* @__PURE__ */ jsx(EyeIcon, { className: "h-4 w-4", "aria-hidden": "true" }) : /* @__PURE__ */ jsx(EyeOffIcon, { className: "h-4 w-4", "aria-hidden": "true" }),
1428
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: showPassword ? "Hide password" : "Show password" })
1429
+ ]
1430
+ }
1431
+ ),
1432
+ /* @__PURE__ */ jsx("style", { children: `
1433
+ .hide-password-toggle::-ms-reveal,
1434
+ .hide-password-toggle::-ms-clear {
1435
+ visibility: hidden;
1436
+ pointer-events: none;
1437
+ display: none;
1438
+ }
1439
+ ` })
1440
+ ] });
1441
+ });
1442
+ PasswordInput.displayName = "PasswordInput";
1443
+ var PasswordRule = ({
1444
+ passed,
1445
+ label
1446
+ }) => /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-sm", children: [
1447
+ passed ? /* @__PURE__ */ jsx(Check, { className: "h-4 w-4 text-primary-600" }) : /* @__PURE__ */ jsx(X, { className: "h-4 w-4 text-neutral-400" }),
1448
+ /* @__PURE__ */ jsx("span", { className: cn(passed ? "text-primary-600" : "text-neutral-300"), children: label })
1449
+ ] });
1450
+ var PasswordInput2 = forwardRef(
1451
+ ({ className, value = "", showStrength = true, showRules = true, ...props }, ref) => {
1452
+ const [showPassword, setShowPassword] = useState(false);
1453
+ const [isFocused, setIsFocused] = useState(false);
1454
+ const rules = checkPassword(String(value));
1455
+ const strength = calcStrength(rules);
1456
+ const disabled = value === "" || value === void 0;
1457
+ return /* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
1458
+ /* @__PURE__ */ jsxs("div", { className: "relative", children: [
1459
+ /* @__PURE__ */ jsx(
1460
+ Input,
1461
+ {
1462
+ type: showPassword ? "text" : "password",
1463
+ className: cn("hide-password-toggle pr-10", className),
1464
+ ref,
1465
+ value,
1466
+ onFocus: () => setIsFocused(true),
1467
+ onBlur: () => setIsFocused(false),
1468
+ ...props
1469
+ }
1470
+ ),
1471
+ /* @__PURE__ */ jsxs(
1472
+ Button,
1473
+ {
1474
+ type: "button",
1475
+ variant: "ghost",
1476
+ size: "sm",
1477
+ tabIndex: -1,
1478
+ className: "absolute right-0 top-0 h-full px-3 py-2 hover:bg-transparent text-neutral-400",
1479
+ onMouseDown: (e) => e.preventDefault(),
1480
+ onClick: () => setShowPassword((prev) => !prev),
1481
+ children: [
1482
+ showPassword && !disabled ? /* @__PURE__ */ jsx(EyeIcon, { className: "h-4 w-4", "aria-hidden": "true" }) : /* @__PURE__ */ jsx(EyeOffIcon, { className: "h-4 w-4", "aria-hidden": "true" }),
1483
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: showPassword ? "Hide password" : "Show password" })
1484
+ ]
1485
+ }
1486
+ ),
1487
+ /* @__PURE__ */ jsx("style", { children: `
1488
+ .hide-password-toggle::-ms-reveal,
1489
+ .hide-password-toggle::-ms-clear {
1490
+ visibility: hidden;
1491
+ pointer-events: none;
1492
+ display: none;
1493
+ }
1494
+ ` })
1495
+ ] }),
1496
+ showStrength && value && /* @__PURE__ */ jsx("div", { className: "w-full h-2 bg-neutral-50 rounded-full overflow-hidden", children: /* @__PURE__ */ jsx(
1497
+ motion.div,
1498
+ {
1499
+ initial: { width: 0 },
1500
+ animate: { width: `${strength / 4 * 100}%` },
1501
+ transition: { type: "spring", stiffness: 70 },
1502
+ className: cn(
1503
+ "h-full rounded-full",
1504
+ strength <= 1 && "bg-red-700",
1505
+ strength === 2 && "bg-neutral-300",
1506
+ strength === 3 && "bg-secondary-500",
1507
+ strength === 4 && "bg-primary-500"
1508
+ )
1509
+ }
1510
+ ) }),
1511
+ showRules && isFocused && /* @__PURE__ */ jsxs(
1512
+ motion.div,
1513
+ {
1514
+ initial: { opacity: 0, y: -4 },
1515
+ animate: { opacity: 1, y: 0 },
1516
+ className: "space-y-1",
1517
+ children: [
1518
+ /* @__PURE__ */ jsx(PasswordRule, { passed: rules.length, label: "At least 8 characters" }),
1519
+ /* @__PURE__ */ jsx(PasswordRule, { passed: rules.letter, label: "Contains a letter" }),
1520
+ /* @__PURE__ */ jsx(PasswordRule, { passed: rules.number, label: "Contains a number" }),
1521
+ /* @__PURE__ */ jsx(PasswordRule, { passed: rules.symbol, label: "Contains a symbol" })
1522
+ ]
1523
+ }
1524
+ )
1525
+ ] });
1526
+ }
1527
+ );
1528
+ PasswordInput2.displayName = "PasswordInput2";
1529
+ function TooltipProvider({
1530
+ delayDuration = 0,
1531
+ ...props
1532
+ }) {
1533
+ return /* @__PURE__ */ jsx(TooltipPrimitive.Provider, { "data-slot": "tooltip-provider", delayDuration, ...props });
1534
+ }
1535
+ function Tooltip({ ...props }) {
1536
+ return /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsx(TooltipPrimitive.Root, { "data-slot": "tooltip", ...props }) });
1537
+ }
1538
+ function TooltipTrigger({ ...props }) {
1539
+ return /* @__PURE__ */ jsx(TooltipPrimitive.Trigger, { "data-slot": "tooltip-trigger", ...props });
1540
+ }
1541
+ function TooltipContent({
1542
+ className,
1543
+ sideOffset = 0,
1544
+ children,
1545
+ ...props
1546
+ }) {
1547
+ return /* @__PURE__ */ jsx(TooltipPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
1548
+ TooltipPrimitive.Content,
1549
+ {
1550
+ "data-slot": "tooltip-content",
1551
+ sideOffset,
1552
+ className: cn(
1553
+ "bg-white shadow-sm text-primary-500 font-onest 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 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
1554
+ className
1555
+ ),
1556
+ ...props,
1557
+ children: [
1558
+ children,
1559
+ /* @__PURE__ */ jsx(TooltipPrimitive.Arrow, { className: "bg-white shadow-md fill-white z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]" })
1560
+ ]
1561
+ }
1562
+ ) });
1563
+ }
1564
+ var Progress = React10.forwardRef(
1565
+ ({ className, value = 0, withTooltip = false, ...props }, ref) => /* @__PURE__ */ jsx(
1566
+ "div",
1567
+ {
1568
+ ref,
1569
+ className: cn(
1570
+ "relative h-2 w-full overflow-hidden rounded-full bg-primary-50",
1571
+ className
1572
+ ),
1573
+ ...props,
1574
+ children: withTooltip ? /* @__PURE__ */ jsxs(Tooltip, { children: [
1575
+ /* @__PURE__ */ jsx(TooltipTrigger, { asChild: true, children: /* @__PURE__ */ jsx(
1576
+ "div",
1577
+ {
1578
+ className: "h-full bg-primary-500 transition-all duration-300 ease-in-out rounded-full cursor-pointer",
1579
+ style: { width: `${Math.min(100, Math.max(0, value))}%` }
1580
+ }
1581
+ ) }),
1582
+ /* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsxs("p", { children: [
1583
+ value,
1584
+ "%"
1585
+ ] }) })
1586
+ ] }) : /* @__PURE__ */ jsx(
1587
+ "div",
1588
+ {
1589
+ className: "h-full bg-primary-500 transition-all duration-300 ease-in-out rounded-full",
1590
+ style: { width: `${Math.min(100, Math.max(0, value))}%` }
1591
+ }
1592
+ )
1593
+ }
1594
+ )
1595
+ );
1596
+ Progress.displayName = "Progress";
1597
+ function RadioGroup2({
1598
+ className,
1599
+ ...props
1600
+ }) {
1601
+ return /* @__PURE__ */ jsx(
1602
+ RadioGroupPrimitive.Root,
1603
+ {
1604
+ "data-slot": "radio-group",
1605
+ className: cn("grid gap-3", className),
1606
+ ...props
1607
+ }
1608
+ );
1609
+ }
1610
+ function RadioGroupItem({
1611
+ className,
1612
+ ...props
1613
+ }) {
1614
+ return /* @__PURE__ */ jsx(
1615
+ RadioGroupPrimitive.Item,
1616
+ {
1617
+ "data-slot": "radio-group-item",
1618
+ className: cn(
1619
+ "text-primary-500 focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 aspect-square size-4 shrink-0 rounded-full border border-neutral-200 focus-visible:border-primary-700 shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 cursor-pointer",
1620
+ className
1621
+ ),
1622
+ ...props,
1623
+ children: /* @__PURE__ */ jsx(
1624
+ RadioGroupPrimitive.Indicator,
1625
+ {
1626
+ "data-slot": "radio-group-indicator",
1627
+ className: "relative flex items-center justify-center",
1628
+ children: /* @__PURE__ */ jsx(CircleIcon, { className: "fill-primary-700 text-primary-700 absolute top-1/2 left-1/2 size-3 -translate-x-1/2 -translate-y-1/2" })
1629
+ }
1630
+ )
1631
+ }
1632
+ );
1633
+ }
1634
+ function SearchInput({
1635
+ className,
1636
+ icon,
1637
+ containerClassName,
1638
+ showClearButton = false,
1639
+ onClear,
1640
+ value,
1641
+ ...props
1642
+ }) {
1643
+ const hasValue = value && String(value).length > 0;
1644
+ return /* @__PURE__ */ jsxs("div", { className: cn("relative", containerClassName), children: [
1645
+ /* @__PURE__ */ jsx("div", { className: "absolute left-3 top-1/2 transform -translate-y-1/2 !text-neutral-200/70", children: icon || /* @__PURE__ */ jsx(Search, { className: "h-4 w-4 text-neutral-200", "aria-hidden": "true" }) }),
1646
+ /* @__PURE__ */ jsx(
1647
+ Input,
1648
+ {
1649
+ className: cn(
1650
+ "w-full pl-10 border-primary-100",
1651
+ showClearButton && hasValue ? "pr-10" : "",
1652
+ className
1653
+ ),
1654
+ value,
1655
+ ...props
1656
+ }
1657
+ ),
1658
+ showClearButton && hasValue && onClear && /* @__PURE__ */ jsx(
1659
+ "button",
1660
+ {
1661
+ type: "button",
1662
+ onClick: onClear,
1663
+ className: "absolute right-3 top-1/2 transform -translate-y-1/2 !text-neutral-200 hover:text-foreground transition-colors",
1664
+ "aria-label": "Clear search",
1665
+ children: /* @__PURE__ */ jsx(X, { className: "h-4 w-4" })
1666
+ }
1667
+ )
1668
+ ] });
1669
+ }
1670
+ var Select = SelectPrimitive.Root;
1671
+ var SelectGroup = SelectPrimitive.Group;
1672
+ var SelectValue = SelectPrimitive.Value;
1673
+ var SelectTrigger = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
1674
+ SelectPrimitive.Trigger,
1675
+ {
1676
+ ref,
1677
+ className: cn(
1678
+ "flex h-12 w-full items-center justify-between rounded-md border border-neutral-100/60 bg-transparent px-3 py-2 text-sm ring-offset-background placeholder:text-neutral-200/70 data-placeholder:text-neutral-200/70 focus:outline-none focus:border-primary-500 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 cursor-pointer",
1679
+ className
1680
+ ),
1681
+ ...props,
1682
+ children: [
1683
+ children,
1684
+ /* @__PURE__ */ jsx(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx(ChevronDown, { className: "ml-2 h-4 w-4 opacity-50" }) })
1685
+ ]
1686
+ }
1687
+ ));
1688
+ SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
1689
+ var SelectScrollUpButton = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1690
+ SelectPrimitive.ScrollUpButton,
1691
+ {
1692
+ ref,
1693
+ className: cn("flex cursor-default items-center justify-center py-1", className),
1694
+ ...props,
1695
+ children: /* @__PURE__ */ jsx(ChevronUp, { className: "h-4 w-4" })
1696
+ }
1697
+ ));
1698
+ SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
1699
+ var SelectScrollDownButton = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1700
+ SelectPrimitive.ScrollDownButton,
1701
+ {
1702
+ ref,
1703
+ className: cn("flex cursor-default items-center justify-center py-1", className),
1704
+ ...props,
1705
+ children: /* @__PURE__ */ jsx(ChevronDown, { className: "h-4 w-4" })
1706
+ }
1707
+ ));
1708
+ SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
1709
+ var SelectContent = React10.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs(
1710
+ SelectPrimitive.Content,
1711
+ {
1712
+ ref,
1713
+ className: cn(
1714
+ "relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md 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",
1715
+ 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",
1716
+ className
1717
+ ),
1718
+ position,
1719
+ ...props,
1720
+ children: [
1721
+ /* @__PURE__ */ jsx(SelectScrollUpButton, {}),
1722
+ /* @__PURE__ */ jsx(
1723
+ SelectPrimitive.Viewport,
1724
+ {
1725
+ className: cn("p-1", position === "popper" && "h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)"),
1726
+ children
1727
+ }
1728
+ ),
1729
+ /* @__PURE__ */ jsx(SelectScrollDownButton, {})
1730
+ ]
1731
+ }
1732
+ ) }));
1733
+ SelectContent.displayName = SelectPrimitive.Content.displayName;
1734
+ var SelectLabel = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Label, { ref, className: cn("py-1.5 pl-8 pr-2 text-sm font-semibold", className), ...props }));
1735
+ SelectLabel.displayName = SelectPrimitive.Label.displayName;
1736
+ var SelectItem = React10.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs(
1737
+ SelectPrimitive.Item,
1738
+ {
1739
+ ref,
1740
+ className: cn(
1741
+ "relative flex w-full select-none items-center rounded-sm py-2.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 cursor-pointer",
1742
+ className
1743
+ ),
1744
+ ...props,
1745
+ children: [
1746
+ /* @__PURE__ */ jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(Check, { className: "h-4 w-4" }) }) }),
1747
+ /* @__PURE__ */ jsx(SelectPrimitive.ItemText, { children })
1748
+ ]
1749
+ }
1750
+ ));
1751
+ SelectItem.displayName = SelectPrimitive.Item.displayName;
1752
+ var SelectSeparator = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(SelectPrimitive.Separator, { ref, className: cn("-mx-1 my-1 h-px bg-muted", className), ...props }));
1753
+ SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
1754
+ function Sheet({ ...props }) {
1755
+ return /* @__PURE__ */ jsx(DialogPrimitive.Root, { "data-slot": "sheet", ...props });
1756
+ }
1757
+ function SheetTrigger({ ...props }) {
1758
+ return /* @__PURE__ */ jsx(DialogPrimitive.Trigger, { "data-slot": "sheet-trigger", ...props });
1759
+ }
1760
+ function SheetClose({ ...props }) {
1761
+ return /* @__PURE__ */ jsx(DialogPrimitive.Close, { "data-slot": "sheet-close", ...props });
1762
+ }
1763
+ function SheetPortal({ ...props }) {
1764
+ return /* @__PURE__ */ jsx(DialogPrimitive.Portal, { "data-slot": "sheet-portal", ...props });
1765
+ }
1766
+ function SheetOverlay({ className, ...props }) {
1767
+ return /* @__PURE__ */ jsx(
1768
+ DialogPrimitive.Overlay,
1769
+ {
1770
+ "data-slot": "sheet-overlay",
1771
+ className: cn(
1772
+ "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/50",
1773
+ className
1774
+ ),
1775
+ ...props
1776
+ }
1777
+ );
1778
+ }
1779
+ function SheetContent({
1780
+ className,
1781
+ children,
1782
+ side = "right",
1783
+ ...props
1784
+ }) {
1785
+ return /* @__PURE__ */ jsxs(SheetPortal, { children: [
1786
+ /* @__PURE__ */ jsx(SheetOverlay, {}),
1787
+ /* @__PURE__ */ jsxs(
1788
+ DialogPrimitive.Content,
1789
+ {
1790
+ "data-slot": "sheet-content",
1791
+ className: cn(
1792
+ "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
1793
+ side === "right" && "data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",
1794
+ side === "left" && "data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",
1795
+ side === "top" && "data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",
1796
+ side === "bottom" && "data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",
1797
+ className
1798
+ ),
1799
+ ...props,
1800
+ children: [
1801
+ children,
1802
+ /* @__PURE__ */ jsxs(DialogPrimitive.Close, { className: "ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none", children: [
1803
+ /* @__PURE__ */ jsx(XIcon, { className: "size-4" }),
1804
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
1805
+ ] })
1806
+ ]
1807
+ }
1808
+ )
1809
+ ] });
1810
+ }
1811
+ function SheetHeader({ className, ...props }) {
1812
+ return /* @__PURE__ */ jsx("div", { "data-slot": "sheet-header", className: cn("flex flex-col gap-1.5 p-4", className), ...props });
1813
+ }
1814
+ function SheetFooter({ className, ...props }) {
1815
+ return /* @__PURE__ */ jsx("div", { "data-slot": "sheet-footer", className: cn("mt-auto flex flex-col gap-2 p-4", className), ...props });
1816
+ }
1817
+ function SheetTitle({ className, ...props }) {
1818
+ return /* @__PURE__ */ jsx(DialogPrimitive.Title, { "data-slot": "sheet-title", className: cn("text-foreground font-semibold", className), ...props });
1819
+ }
1820
+ function SheetDescription({ className, ...props }) {
1821
+ return /* @__PURE__ */ jsx(DialogPrimitive.Description, { "data-slot": "sheet-description", className: cn("text-muted-foreground text-sm", className), ...props });
1822
+ }
1823
+ function Skeleton({ className, ...props }) {
1824
+ return /* @__PURE__ */ jsx(
1825
+ "div",
1826
+ {
1827
+ "data-slot": "skeleton",
1828
+ className: cn("bg-accent animate-pulse rounded-md", className),
1829
+ ...props
1830
+ }
1831
+ );
1832
+ }
1833
+ var Slider = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxs(
1834
+ SliderPrimitive.Root,
1835
+ {
1836
+ ref,
1837
+ className: cn("relative flex w-full touch-none select-none items-center", className),
1838
+ ...props,
1839
+ children: [
1840
+ /* @__PURE__ */ jsx(SliderPrimitive.Track, { className: "relative h-2 w-full grow overflow-hidden rounded-full bg-primary-100/50 cursor-pointer", children: /* @__PURE__ */ jsx(SliderPrimitive.Range, { className: "absolute h-full bg-primary-500" }) }),
1841
+ /* @__PURE__ */ jsx(SliderPrimitive.Thumb, { className: "block h-4 w-4 rounded-full border-2 border-primary-500 bg-white shadow-[0_0_0_3px_rgba(var(--color-primary-500),0.2)] ring-offset-background transition-all duration-150 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary-500 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 cursor-grab active:cursor-grabbing hover:scale-110 hover:shadow-[0_0_0_5px_rgba(var(--color-primary-500),0.15)]" })
1842
+ ]
1843
+ }
1844
+ ));
1845
+ Slider.displayName = SliderPrimitive.Root.displayName;
1846
+ var Toaster = ({ ...props }) => {
1847
+ const { theme = "system" } = useTheme();
1848
+ return /* @__PURE__ */ jsx(
1849
+ Toaster$1,
1850
+ {
1851
+ theme,
1852
+ className: "toaster group",
1853
+ style: {
1854
+ "--normal-bg": "var(--popover)",
1855
+ "--normal-text": "var(--popover-foreground)",
1856
+ "--normal-border": "var(--border)"
1857
+ },
1858
+ ...props
1859
+ }
1860
+ );
1861
+ };
1862
+ var Switch = React10.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
1863
+ SwitchPrimitives.Root,
1864
+ {
1865
+ className: cn(
1866
+ "peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary-500 data-[state=unchecked]:bg-input",
1867
+ className
1868
+ ),
1869
+ ...props,
1870
+ ref,
1871
+ children: /* @__PURE__ */ jsx(
1872
+ SwitchPrimitives.Thumb,
1873
+ {
1874
+ className: cn(
1875
+ "pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"
1876
+ )
1877
+ }
1878
+ )
1879
+ }
1880
+ ));
1881
+ Switch.displayName = SwitchPrimitives.Root.displayName;
1882
+ function Tabs({ className, ...props }) {
1883
+ return /* @__PURE__ */ jsx(TabsPrimitive.Root, { "data-slot": "tabs", className: cn("flex flex-col gap-2", className), ...props });
1884
+ }
1885
+ function TabsList({ className, ...props }) {
1886
+ return /* @__PURE__ */ jsx(
1887
+ TabsPrimitive.List,
1888
+ {
1889
+ "data-slot": "tabs-list",
1890
+ className: cn("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-[3px]", className),
1891
+ ...props
1892
+ }
1893
+ );
1894
+ }
1895
+ function TabsTrigger({ className, ...props }) {
1896
+ return /* @__PURE__ */ jsx(
1897
+ TabsPrimitive.Trigger,
1898
+ {
1899
+ "data-slot": "tabs-trigger",
1900
+ className: cn(
1901
+ "data-[state=active]:bg-background dark:data-[state=active]:text-foreground focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 text-foreground dark:text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 cursor-pointer",
1902
+ className
1903
+ ),
1904
+ ...props
1905
+ }
1906
+ );
1907
+ }
1908
+ function TabsContent({ className, ...props }) {
1909
+ return /* @__PURE__ */ jsx(TabsPrimitive.Content, { "data-slot": "tabs-content", className: cn("flex-1 outline-none", className), ...props });
1910
+ }
1911
+ var Textarea = React10.forwardRef(({ className, ...props }, ref) => {
1912
+ return /* @__PURE__ */ jsx(
1913
+ "textarea",
1914
+ {
1915
+ className: cn(
1916
+ "flex min-h-[60px] w-full rounded-md border border-input bg-background p-3.5 font-normal text-[15px] ring-offset-background focus-visible:outline-none focus-visible:border-primary-500 disabled:cursor-not-allowed disabled:opacity-50 placeholder:text-neutral-200/90",
1917
+ className
1918
+ ),
1919
+ ref,
1920
+ ...props
1921
+ }
1922
+ );
1923
+ });
1924
+ Textarea.displayName = "Textarea";
1925
+ var toggleVariants = cva(
1926
+ "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",
1927
+ {
1928
+ variants: {
1929
+ variant: {
1930
+ default: "bg-transparent",
1931
+ outline: "border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground"
1932
+ },
1933
+ size: {
1934
+ default: "h-9 px-2 min-w-9",
1935
+ sm: "h-8 px-1.5 min-w-8",
1936
+ lg: "h-10 px-2.5 min-w-10"
1937
+ }
1938
+ },
1939
+ defaultVariants: {
1940
+ variant: "default",
1941
+ size: "default"
1942
+ }
1943
+ }
1944
+ );
1945
+ function Toggle({
1946
+ className,
1947
+ variant,
1948
+ size,
1949
+ ...props
1950
+ }) {
1951
+ return /* @__PURE__ */ jsx(
1952
+ TogglePrimitive.Root,
1953
+ {
1954
+ "data-slot": "toggle",
1955
+ className: cn(toggleVariants({ variant, size, className })),
1956
+ ...props
1957
+ }
1958
+ );
1959
+ }
1960
+ var ToggleGroupContext = React10.createContext({
1961
+ size: "default",
1962
+ variant: "default",
1963
+ spacing: 0
1964
+ });
1965
+ function ToggleGroup({
1966
+ className,
1967
+ variant,
1968
+ size,
1969
+ spacing = 0,
1970
+ children,
1971
+ ...props
1972
+ }) {
1973
+ return /* @__PURE__ */ jsx(
1974
+ ToggleGroupPrimitive.Root,
1975
+ {
1976
+ "data-slot": "toggle-group",
1977
+ "data-variant": variant,
1978
+ "data-size": size,
1979
+ "data-spacing": spacing,
1980
+ style: { "--gap": spacing },
1981
+ className: cn(
1982
+ "group/toggle-group flex w-fit items-center gap-[--spacing(var(--gap))] rounded-md data-[spacing=default]:data-[variant=outline]:shadow-xs",
1983
+ className
1984
+ ),
1985
+ ...props,
1986
+ children: /* @__PURE__ */ jsx(ToggleGroupContext.Provider, { value: { variant, size, spacing }, children })
1987
+ }
1988
+ );
1989
+ }
1990
+ function ToggleGroupItem({
1991
+ className,
1992
+ children,
1993
+ variant,
1994
+ size,
1995
+ ...props
1996
+ }) {
1997
+ const context = React10.useContext(ToggleGroupContext);
1998
+ return /* @__PURE__ */ jsx(
1999
+ ToggleGroupPrimitive.Item,
2000
+ {
2001
+ "data-slot": "toggle-group-item",
2002
+ "data-variant": context.variant || variant,
2003
+ "data-size": context.size || size,
2004
+ "data-spacing": context.spacing,
2005
+ className: cn(
2006
+ toggleVariants({
2007
+ variant: context.variant || variant,
2008
+ size: context.size || size
2009
+ }),
2010
+ "w-auto min-w-0 shrink-0 px-3 focus:z-10 focus-visible:z-10",
2011
+ "data-[spacing=0]:rounded-none data-[spacing=0]:shadow-none data-[spacing=0]:first:rounded-l-md data-[spacing=0]:last:rounded-r-md data-[spacing=0]:data-[variant=outline]:border-l-0 data-[spacing=0]:data-[variant=outline]:first:border-l",
2012
+ className
2013
+ ),
2014
+ ...props,
2015
+ children
2016
+ }
2017
+ );
2018
+ }
2019
+ var Heading1 = React10__default.forwardRef(
2020
+ ({ className, children, ...props }, ref) => /* @__PURE__ */ jsx("h1", { className: cn("text-3xl font-[700] font-onest text-black dark:text-white", className), ref, ...props, children })
2021
+ );
2022
+ Heading1.displayName = "Heading1";
2023
+ var Heading2 = React10__default.forwardRef(
2024
+ ({ className, children, ...props }, ref) => /* @__PURE__ */ jsx("h2", { className: cn("text-[26px] font-[600] font-onest text-black dark:text-neutral-100", className), ref, ...props, children })
2025
+ );
2026
+ Heading2.displayName = "Heading2";
2027
+ var Heading3 = React10__default.forwardRef(
2028
+ ({ className, children, ...props }, ref) => /* @__PURE__ */ jsx("h3", { className: cn("text-2xl font-semibold font-onest text-neutral-900 dark:text-neutral-200", className), ref, ...props, children })
2029
+ );
2030
+ Heading3.displayName = "Heading3";
2031
+ var Heading4 = React10__default.forwardRef(
2032
+ ({ className, children, ...props }, ref) => /* @__PURE__ */ jsx("h4", { className: cn("text-[22px] font-semibold text-neutral-800 dark:text-neutral-200", className), ref, ...props, children })
2033
+ );
2034
+ Heading4.displayName = "Heading4";
2035
+ var Heading5 = React10__default.forwardRef(
2036
+ ({ className, children, ...props }, ref) => /* @__PURE__ */ jsx("h5", { className: cn("text-lg font-semibold text-black dark:text-neutral-300", className), ref, ...props, children })
2037
+ );
2038
+ Heading5.displayName = "Heading5";
2039
+ var Heading6 = React10__default.forwardRef(
2040
+ ({ className, children, ...props }, ref) => /* @__PURE__ */ jsx("h6", { className: cn("text-base font-[500] text-black dark:text-neutral-300", className), ref, ...props, children })
2041
+ );
2042
+ Heading6.displayName = "Heading6";
2043
+ var Body1 = React10__default.forwardRef(
2044
+ ({ className, children, ...props }, ref) => /* @__PURE__ */ jsx("p", { className: cn("text-[18px] text-neutral-700 dark:text-neutral-400 font-golos", className), ref, ...props, children })
2045
+ );
2046
+ Body1.displayName = "Body1";
2047
+ var Body2 = React10__default.forwardRef(
2048
+ ({ className, children, ...props }, ref) => /* @__PURE__ */ jsx("p", { className: cn("text-base text-neutral-700 dark:text-neutral-400 font-golos", className), ref, ...props, children })
2049
+ );
2050
+ Body2.displayName = "Body2";
2051
+ var Body3 = React10__default.forwardRef(
2052
+ ({ className, children, ...props }, ref) => /* @__PURE__ */ jsx("p", { className: cn("text-sm lg:leading-[22px] text-neutral-600 dark:text-neutral-400 font-golos", className), ref, ...props, children })
2053
+ );
2054
+ Body3.displayName = "Body3";
2055
+
2056
+ export { Alert, AlertDescription, AlertTitle, Avatar, AvatarFallback, AvatarImage, Badge, Body1, Body2, Body3, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, Combobox, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, Heading1, Heading2, Heading3, Heading4, Heading5, Heading6, Input, Label2 as Label, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PasswordInput, PasswordInput2, Popover, PopoverAnchor, PopoverContent, PopoverTrigger, Progress, RadioGroup2 as RadioGroup, RadioGroupItem, SearchInput, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Skeleton, Slider, Switch, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, badgeVariants, buttonGroupVariants, buttonVariants, toggleVariants, useFormField };
2057
+ //# sourceMappingURL=index.js.map
2058
+ //# sourceMappingURL=index.js.map