better-auth-ui 3.2.6 → 3.2.12

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.js CHANGED
@@ -63,82 +63,69 @@ function useAuthenticate(options) {
63
63
  import { useContext as useContext8, useMemo as useMemo5, useState as useState4 } from "react";
64
64
 
65
65
  // src/components/ui/card.tsx
66
+ import * as React from "react";
66
67
  import { jsx } from "react/jsx-runtime";
67
- function Card({ className, ...props }) {
68
- return /* @__PURE__ */ jsx(
69
- "div",
70
- {
71
- "data-slot": "card",
72
- className: cn(
73
- "bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",
74
- className
75
- ),
76
- ...props
77
- }
78
- );
79
- }
80
- function CardHeader({ className, ...props }) {
81
- return /* @__PURE__ */ jsx(
82
- "div",
83
- {
84
- "data-slot": "card-header",
85
- className: cn(
86
- "@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",
87
- className
88
- ),
89
- ...props
90
- }
91
- );
92
- }
93
- function CardTitle({ className, ...props }) {
94
- return /* @__PURE__ */ jsx(
95
- "div",
96
- {
97
- "data-slot": "card-title",
98
- className: cn("leading-none font-semibold", className),
99
- ...props
100
- }
101
- );
102
- }
103
- function CardDescription({ className, ...props }) {
104
- return /* @__PURE__ */ jsx(
105
- "div",
106
- {
107
- "data-slot": "card-description",
108
- className: cn("text-muted-foreground text-sm", className),
109
- ...props
110
- }
111
- );
112
- }
113
- function CardContent({ className, ...props }) {
114
- return /* @__PURE__ */ jsx(
115
- "div",
116
- {
117
- "data-slot": "card-content",
118
- className: cn("px-6", className),
119
- ...props
120
- }
121
- );
122
- }
123
- function CardFooter({ className, ...props }) {
124
- return /* @__PURE__ */ jsx(
125
- "div",
126
- {
127
- "data-slot": "card-footer",
128
- className: cn("flex items-center px-6 [.border-t]:pt-6", className),
129
- ...props
130
- }
131
- );
132
- }
68
+ var Card = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
69
+ "div",
70
+ {
71
+ ref,
72
+ className: cn(
73
+ "rounded-xl border bg-card text-card-foreground shadow",
74
+ className
75
+ ),
76
+ ...props
77
+ }
78
+ ));
79
+ Card.displayName = "Card";
80
+ var CardHeader = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
81
+ "div",
82
+ {
83
+ ref,
84
+ className: cn("flex flex-col space-y-1.5 p-6", className),
85
+ ...props
86
+ }
87
+ ));
88
+ CardHeader.displayName = "CardHeader";
89
+ var CardTitle = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
90
+ "div",
91
+ {
92
+ ref,
93
+ className: cn("font-semibold leading-none tracking-tight", className),
94
+ ...props
95
+ }
96
+ ));
97
+ CardTitle.displayName = "CardTitle";
98
+ var CardDescription = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
99
+ "div",
100
+ {
101
+ ref,
102
+ className: cn("text-sm text-muted-foreground", className),
103
+ ...props
104
+ }
105
+ ));
106
+ CardDescription.displayName = "CardDescription";
107
+ var CardContent = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("div", { ref, className: cn("p-6 pt-0", className), ...props }));
108
+ CardContent.displayName = "CardContent";
109
+ var CardFooter = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
110
+ "div",
111
+ {
112
+ ref,
113
+ className: cn("flex items-center p-6 pt-0", className),
114
+ ...props
115
+ }
116
+ ));
117
+ CardFooter.displayName = "CardFooter";
133
118
 
134
119
  // src/components/ui/skeleton.tsx
135
120
  import { jsx as jsx2 } from "react/jsx-runtime";
136
- function Skeleton({ className, ...props }) {
121
+ function Skeleton({
122
+ className,
123
+ ...props
124
+ }) {
137
125
  return /* @__PURE__ */ jsx2(
138
126
  "div",
139
127
  {
140
- "data-slot": "skeleton",
141
- className: cn("bg-accent animate-pulse rounded-md", className),
128
+ className: cn("animate-pulse rounded-md bg-primary/10", className),
142
129
  ...props
143
130
  }
144
131
  );
@@ -149,26 +136,27 @@ import { Loader2 } from "lucide-react";
149
136
  import { useFormState } from "react-hook-form";
150
137
 
151
138
  // src/components/ui/button.tsx
139
+ import * as React2 from "react";
152
140
  import { Slot } from "@radix-ui/react-slot";
153
141
  import { cva } from "class-variance-authority";
154
142
  import { jsx as jsx3 } from "react/jsx-runtime";
155
143
  var buttonVariants = cva(
156
- "inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-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",
144
+ "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",
157
145
  {
158
146
  variants: {
159
147
  variant: {
160
- default: "bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",
161
- 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",
162
- outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
163
- secondary: "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",
164
- ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
148
+ default: "bg-primary text-primary-foreground shadow hover:bg-primary/90",
149
+ destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",
150
+ outline: "border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",
151
+ secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
152
+ ghost: "hover:bg-accent hover:text-accent-foreground",
165
153
  link: "text-primary underline-offset-4 hover:underline"
166
154
  },
167
155
  size: {
168
- default: "h-9 px-4 py-2 has-[>svg]:px-3",
169
- sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
170
- lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
171
- icon: "size-9"
156
+ default: "h-9 px-4 py-2",
157
+ sm: "h-8 rounded-md px-3 text-xs",
158
+ lg: "h-10 rounded-md px-8",
159
+ icon: "h-9 w-9"
172
160
  }
173
161
  },
174
162
  defaultVariants: {
@@ -177,23 +165,20 @@ var buttonVariants = cva(
177
165
  }
178
166
  }
179
167
  );
180
- function Button({
181
- className,
182
- variant,
183
- size,
184
- asChild = false,
185
- ...props
186
- }) {
187
- const Comp = asChild ? Slot : "button";
188
- return /* @__PURE__ */ jsx3(
189
- Comp,
190
- {
191
- "data-slot": "button",
192
- className: cn(buttonVariants({ variant, size, className })),
193
- ...props
194
- }
195
- );
196
- }
168
+ var Button = React2.forwardRef(
169
+ ({ className, variant, size, asChild = false, ...props }, ref) => {
170
+ const Comp = asChild ? Slot : "button";
171
+ return /* @__PURE__ */ jsx3(
172
+ Comp,
173
+ {
174
+ className: cn(buttonVariants({ variant, size, className })),
175
+ ref,
176
+ ...props
177
+ }
178
+ );
179
+ }
180
+ );
181
+ Button.displayName = "Button";
197
182
 
198
183
  // src/components/settings/shared/settings-action-button.tsx
199
184
  import { jsx as jsx4, jsxs } from "react/jsx-runtime";
@@ -501,242 +486,289 @@ async function fileToBase64(file) {
501
486
  }
502
487
 
503
488
  // src/components/ui/dialog.tsx
489
+ import * as React3 from "react";
504
490
  import * as DialogPrimitive from "@radix-ui/react-dialog";
505
- import { XIcon } from "lucide-react";
491
+ import { X } from "lucide-react";
506
492
  import { jsx as jsx9, jsxs as jsxs6 } from "react/jsx-runtime";
507
- function Dialog({
508
- ...props
509
- }) {
510
- return /* @__PURE__ */ jsx9(DialogPrimitive.Root, { "data-slot": "dialog", ...props });
511
- }
512
- function DialogPortal({
513
- ...props
514
- }) {
515
- return /* @__PURE__ */ jsx9(DialogPrimitive.Portal, { "data-slot": "dialog-portal", ...props });
516
- }
517
- function DialogOverlay({
518
- className,
519
- ...props
520
- }) {
521
- return /* @__PURE__ */ jsx9(
522
- DialogPrimitive.Overlay,
523
- {
524
- "data-slot": "dialog-overlay",
525
- className: cn(
526
- "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",
527
- className
528
- ),
529
- ...props
530
- }
531
- );
532
- }
533
- function DialogContent({
534
- className,
535
- children,
536
- showCloseButton = true,
537
- ...props
538
- }) {
539
- return /* @__PURE__ */ jsxs6(DialogPortal, { "data-slot": "dialog-portal", children: [
540
- /* @__PURE__ */ jsx9(DialogOverlay, {}),
541
- /* @__PURE__ */ jsxs6(
542
- DialogPrimitive.Content,
543
- {
544
- "data-slot": "dialog-content",
545
- className: cn(
546
- "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",
547
- className
548
- ),
549
- ...props,
550
- children: [
551
- children,
552
- showCloseButton && /* @__PURE__ */ jsxs6(
553
- DialogPrimitive.Close,
554
- {
555
- "data-slot": "dialog-close",
556
- 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",
557
- children: [
558
- /* @__PURE__ */ jsx9(XIcon, {}),
559
- /* @__PURE__ */ jsx9("span", { className: "sr-only", children: "Close" })
560
- ]
561
- }
562
- )
563
- ]
564
- }
565
- )
566
- ] });
567
- }
568
- function DialogHeader({ className, ...props }) {
569
- return /* @__PURE__ */ jsx9(
570
- "div",
571
- {
572
- "data-slot": "dialog-header",
573
- className: cn("flex flex-col gap-2 text-center sm:text-left", className),
574
- ...props
575
- }
576
- );
577
- }
578
- function DialogFooter({ className, ...props }) {
579
- return /* @__PURE__ */ jsx9(
580
- "div",
493
+ var Dialog = DialogPrimitive.Root;
494
+ var DialogPortal = DialogPrimitive.Portal;
495
+ var DialogOverlay = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
496
+ DialogPrimitive.Overlay,
497
+ {
498
+ ref,
499
+ className: cn(
500
+ "fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
501
+ className
502
+ ),
503
+ ...props
504
+ }
505
+ ));
506
+ DialogOverlay.displayName = DialogPrimitive.Overlay.displayName;
507
+ var DialogContent = React3.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs6(DialogPortal, { children: [
508
+ /* @__PURE__ */ jsx9(DialogOverlay, {}),
509
+ /* @__PURE__ */ jsxs6(
510
+ DialogPrimitive.Content,
581
511
  {
582
- "data-slot": "dialog-footer",
512
+ ref,
583
513
  className: cn(
584
- "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
514
+ "fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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%] sm:rounded-lg",
585
515
  className
586
516
  ),
587
- ...props
517
+ ...props,
518
+ children: [
519
+ children,
520
+ /* @__PURE__ */ jsxs6(DialogPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
521
+ /* @__PURE__ */ jsx9(X, { className: "h-4 w-4" }),
522
+ /* @__PURE__ */ jsx9("span", { className: "sr-only", children: "Close" })
523
+ ] })
524
+ ]
588
525
  }
589
- );
590
- }
591
- function DialogTitle({
526
+ )
527
+ ] }));
528
+ DialogContent.displayName = DialogPrimitive.Content.displayName;
529
+ var DialogHeader = ({
592
530
  className,
593
531
  ...props
594
- }) {
595
- return /* @__PURE__ */ jsx9(
596
- DialogPrimitive.Title,
597
- {
598
- "data-slot": "dialog-title",
599
- className: cn("text-lg leading-none font-semibold", className),
600
- ...props
601
- }
602
- );
603
- }
604
- function DialogDescription({
532
+ }) => /* @__PURE__ */ jsx9(
533
+ "div",
534
+ {
535
+ className: cn(
536
+ "flex flex-col space-y-1.5 text-center sm:text-left",
537
+ className
538
+ ),
539
+ ...props
540
+ }
541
+ );
542
+ DialogHeader.displayName = "DialogHeader";
543
+ var DialogFooter = ({
605
544
  className,
606
545
  ...props
607
- }) {
608
- return /* @__PURE__ */ jsx9(
609
- DialogPrimitive.Description,
610
- {
611
- "data-slot": "dialog-description",
612
- className: cn("text-muted-foreground text-sm", className),
613
- ...props
614
- }
615
- );
616
- }
546
+ }) => /* @__PURE__ */ jsx9(
547
+ "div",
548
+ {
549
+ className: cn(
550
+ "flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",
551
+ className
552
+ ),
553
+ ...props
554
+ }
555
+ );
556
+ DialogFooter.displayName = "DialogFooter";
557
+ var DialogTitle = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
558
+ DialogPrimitive.Title,
559
+ {
560
+ ref,
561
+ className: cn(
562
+ "text-lg font-semibold leading-none tracking-tight",
563
+ className
564
+ ),
565
+ ...props
566
+ }
567
+ ));
568
+ DialogTitle.displayName = DialogPrimitive.Title.displayName;
569
+ var DialogDescription = React3.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx9(
570
+ DialogPrimitive.Description,
571
+ {
572
+ ref,
573
+ className: cn("text-sm text-muted-foreground", className),
574
+ ...props
575
+ }
576
+ ));
577
+ DialogDescription.displayName = DialogPrimitive.Description.displayName;
617
578
 
618
579
  // src/components/ui/dropdown-menu.tsx
580
+ import * as React4 from "react";
619
581
  import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
620
- import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
582
+ import { Check, ChevronRight, Circle } from "lucide-react";
583
+ import { cva as cva2 } from "class-variance-authority";
621
584
  import { jsx as jsx10, jsxs as jsxs7 } from "react/jsx-runtime";
622
- function DropdownMenu({
623
- ...props
624
- }) {
625
- return /* @__PURE__ */ jsx10(DropdownMenuPrimitive.Root, { "data-slot": "dropdown-menu", ...props });
626
- }
627
- function DropdownMenuTrigger({
628
- ...props
629
- }) {
630
- return /* @__PURE__ */ jsx10(
631
- DropdownMenuPrimitive.Trigger,
632
- {
633
- "data-slot": "dropdown-menu-trigger",
634
- ...props
635
- }
636
- );
637
- }
638
- function DropdownMenuContent({
639
- className,
640
- sideOffset = 4,
641
- ...props
642
- }) {
643
- return /* @__PURE__ */ jsx10(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx10(
644
- DropdownMenuPrimitive.Content,
645
- {
646
- "data-slot": "dropdown-menu-content",
647
- sideOffset,
648
- className: cn(
649
- "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",
650
- className
651
- ),
652
- ...props
653
- }
654
- ) });
655
- }
656
- function DropdownMenuItem({
657
- className,
658
- inset,
659
- variant = "default",
660
- ...props
661
- }) {
662
- return /* @__PURE__ */ jsx10(
663
- DropdownMenuPrimitive.Item,
664
- {
665
- "data-slot": "dropdown-menu-item",
666
- "data-inset": inset,
667
- "data-variant": variant,
668
- className: cn(
669
- "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 data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.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",
670
- className
671
- ),
672
- ...props
585
+ var DropdownMenu = DropdownMenuPrimitive.Root;
586
+ var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
587
+ var DropdownMenuSubTrigger = React4.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs7(
588
+ DropdownMenuPrimitive.SubTrigger,
589
+ {
590
+ ref,
591
+ className: cn(
592
+ "flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
593
+ inset && "pl-8",
594
+ className
595
+ ),
596
+ ...props,
597
+ children: [
598
+ children,
599
+ /* @__PURE__ */ jsx10(ChevronRight, { className: "ml-auto" })
600
+ ]
601
+ }
602
+ ));
603
+ DropdownMenuSubTrigger.displayName = DropdownMenuPrimitive.SubTrigger.displayName;
604
+ var DropdownMenuSubContent = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx10(
605
+ DropdownMenuPrimitive.SubContent,
606
+ {
607
+ ref,
608
+ className: cn(
609
+ "z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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]",
610
+ className
611
+ ),
612
+ ...props
613
+ }
614
+ ));
615
+ DropdownMenuSubContent.displayName = DropdownMenuPrimitive.SubContent.displayName;
616
+ var DropdownMenuContent = React4.forwardRef(({ className, sideOffset = 4, ...props }, ref) => /* @__PURE__ */ jsx10(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx10(
617
+ DropdownMenuPrimitive.Content,
618
+ {
619
+ ref,
620
+ sideOffset,
621
+ className: cn(
622
+ "z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md",
623
+ "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]",
624
+ className
625
+ ),
626
+ ...props
627
+ }
628
+ ) }));
629
+ DropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
630
+ var dropdownMenuItemVariants = cva2(
631
+ "relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",
632
+ {
633
+ variants: {
634
+ variant: {
635
+ default: "",
636
+ destructive: "text-destructive focus:bg-destructive focus:text-destructive-foreground"
637
+ },
638
+ inset: {
639
+ true: "pl-8"
640
+ }
641
+ },
642
+ defaultVariants: {
643
+ variant: "default"
673
644
  }
674
- );
675
- }
676
- function DropdownMenuSeparator({
645
+ }
646
+ );
647
+ var DropdownMenuItem = React4.forwardRef(({ className, variant, inset, ...props }, ref) => /* @__PURE__ */ jsx10(
648
+ DropdownMenuPrimitive.Item,
649
+ {
650
+ ref,
651
+ className: cn(dropdownMenuItemVariants({ variant, inset, className })),
652
+ ...props
653
+ }
654
+ ));
655
+ DropdownMenuItem.displayName = DropdownMenuPrimitive.Item.displayName;
656
+ var DropdownMenuCheckboxItem = React4.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs7(
657
+ DropdownMenuPrimitive.CheckboxItem,
658
+ {
659
+ ref,
660
+ className: cn(
661
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
662
+ className
663
+ ),
664
+ checked,
665
+ ...props,
666
+ children: [
667
+ /* @__PURE__ */ jsx10("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx10(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx10(Check, { className: "h-4 w-4" }) }) }),
668
+ children
669
+ ]
670
+ }
671
+ ));
672
+ DropdownMenuCheckboxItem.displayName = DropdownMenuPrimitive.CheckboxItem.displayName;
673
+ var DropdownMenuRadioItem = React4.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs7(
674
+ DropdownMenuPrimitive.RadioItem,
675
+ {
676
+ ref,
677
+ className: cn(
678
+ "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
679
+ className
680
+ ),
681
+ ...props,
682
+ children: [
683
+ /* @__PURE__ */ jsx10("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx10(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx10(Circle, { className: "h-2 w-2 fill-current" }) }) }),
684
+ children
685
+ ]
686
+ }
687
+ ));
688
+ DropdownMenuRadioItem.displayName = DropdownMenuPrimitive.RadioItem.displayName;
689
+ var DropdownMenuLabel = React4.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx10(
690
+ DropdownMenuPrimitive.Label,
691
+ {
692
+ ref,
693
+ className: cn(
694
+ "px-2 py-1.5 text-sm font-semibold",
695
+ inset && "pl-8",
696
+ className
697
+ ),
698
+ ...props
699
+ }
700
+ ));
701
+ DropdownMenuLabel.displayName = DropdownMenuPrimitive.Label.displayName;
702
+ var DropdownMenuSeparator = React4.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx10(
703
+ DropdownMenuPrimitive.Separator,
704
+ {
705
+ ref,
706
+ className: cn("-mx-1 my-1 h-px bg-muted", className),
707
+ ...props
708
+ }
709
+ ));
710
+ DropdownMenuSeparator.displayName = DropdownMenuPrimitive.Separator.displayName;
711
+ var DropdownMenuShortcut = ({
677
712
  className,
678
713
  ...props
679
- }) {
714
+ }) => {
680
715
  return /* @__PURE__ */ jsx10(
681
- DropdownMenuPrimitive.Separator,
716
+ "span",
682
717
  {
683
- "data-slot": "dropdown-menu-separator",
684
- className: cn("bg-border -mx-1 my-1 h-px", className),
718
+ className: cn("ml-auto text-xs tracking-widest opacity-60", className),
685
719
  ...props
686
720
  }
687
721
  );
688
- }
722
+ };
723
+ DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
689
724
 
690
725
  // src/components/ui/form.tsx
691
- import * as React from "react";
726
+ import * as React6 from "react";
692
727
  import { Slot as Slot2 } from "@radix-ui/react-slot";
693
728
  import {
694
729
  Controller,
695
730
  FormProvider,
696
- useFormContext,
697
- useFormState as useFormState2
731
+ useFormContext
698
732
  } from "react-hook-form";
699
733
 
700
734
  // src/components/ui/label.tsx
735
+ import * as React5 from "react";
701
736
  import * as LabelPrimitive from "@radix-ui/react-label";
737
+ import { cva as cva3 } from "class-variance-authority";
702
738
  import { jsx as jsx11 } from "react/jsx-runtime";
703
- function Label2({
704
- className,
705
- ...props
706
- }) {
707
- return /* @__PURE__ */ jsx11(
708
- LabelPrimitive.Root,
709
- {
710
- "data-slot": "label",
711
- className: cn(
712
- "flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
713
- className
714
- ),
715
- ...props
716
- }
717
- );
718
- }
739
+ var labelVariants = cva3(
740
+ "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
741
+ );
742
+ var Label2 = React5.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx11(
743
+ LabelPrimitive.Root,
744
+ {
745
+ ref,
746
+ className: cn(labelVariants(), className),
747
+ ...props
748
+ }
749
+ ));
750
+ Label2.displayName = LabelPrimitive.Root.displayName;
719
751
 
720
752
  // src/components/ui/form.tsx
721
753
  import { jsx as jsx12 } from "react/jsx-runtime";
722
754
  var Form = FormProvider;
723
- var FormFieldContext = React.createContext(
724
- {}
725
- );
755
+ var FormFieldContext = React6.createContext(null);
726
756
  var FormField = ({
727
757
  ...props
728
758
  }) => {
729
759
  return /* @__PURE__ */ jsx12(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx12(Controller, { ...props }) });
730
760
  };
731
761
  var useFormField = () => {
732
- const fieldContext = React.useContext(FormFieldContext);
733
- const itemContext = React.useContext(FormItemContext);
734
- const { getFieldState } = useFormContext();
735
- const formState = useFormState2({ name: fieldContext.name });
736
- const fieldState = getFieldState(fieldContext.name, formState);
762
+ const fieldContext = React6.useContext(FormFieldContext);
763
+ const itemContext = React6.useContext(FormItemContext);
764
+ const { getFieldState, formState } = useFormContext();
737
765
  if (!fieldContext) {
738
766
  throw new Error("useFormField should be used within <FormField>");
739
767
  }
768
+ if (!itemContext) {
769
+ throw new Error("useFormField should be used within <FormItem>");
770
+ }
771
+ const fieldState = getFieldState(fieldContext.name, formState);
740
772
  const { id } = itemContext;
741
773
  return {
742
774
  id,
@@ -747,138 +779,133 @@ var useFormField = () => {
747
779
  ...fieldState
748
780
  };
749
781
  };
750
- var FormItemContext = React.createContext(
751
- {}
752
- );
753
- function FormItem({ className, ...props }) {
754
- const id = React.useId();
755
- return /* @__PURE__ */ jsx12(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx12(
756
- "div",
757
- {
758
- "data-slot": "form-item",
759
- className: cn("grid gap-2", className),
760
- ...props
761
- }
762
- ) });
763
- }
764
- function FormLabel({
765
- className,
766
- ...props
767
- }) {
782
+ var FormItemContext = React6.createContext(null);
783
+ var FormItem = React6.forwardRef(({ className, ...props }, ref) => {
784
+ const id = React6.useId();
785
+ return /* @__PURE__ */ jsx12(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx12("div", { ref, className: cn("space-y-2", className), ...props }) });
786
+ });
787
+ FormItem.displayName = "FormItem";
788
+ var FormLabel = React6.forwardRef(({ className, ...props }, ref) => {
768
789
  const { error, formItemId } = useFormField();
769
790
  return /* @__PURE__ */ jsx12(
770
791
  Label2,
771
792
  {
772
- "data-slot": "form-label",
773
- "data-error": !!error,
774
- className: cn("data-[error=true]:text-destructive", className),
793
+ ref,
794
+ className: cn(error && "text-destructive", className),
775
795
  htmlFor: formItemId,
776
796
  ...props
777
797
  }
778
798
  );
779
- }
780
- function FormControl({ ...props }) {
799
+ });
800
+ FormLabel.displayName = "FormLabel";
801
+ var FormControl = React6.forwardRef(({ ...props }, ref) => {
781
802
  const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
782
803
  return /* @__PURE__ */ jsx12(
783
804
  Slot2,
784
805
  {
785
- "data-slot": "form-control",
806
+ ref,
786
807
  id: formItemId,
787
808
  "aria-describedby": !error ? `${formDescriptionId}` : `${formDescriptionId} ${formMessageId}`,
788
809
  "aria-invalid": !!error,
789
810
  ...props
790
811
  }
791
812
  );
792
- }
793
- function FormMessage({ className, ...props }) {
813
+ });
814
+ FormControl.displayName = "FormControl";
815
+ var FormDescription = React6.forwardRef(({ className, ...props }, ref) => {
816
+ const { formDescriptionId } = useFormField();
817
+ return /* @__PURE__ */ jsx12(
818
+ "p",
819
+ {
820
+ ref,
821
+ id: formDescriptionId,
822
+ className: cn("text-[0.8rem] text-muted-foreground", className),
823
+ ...props
824
+ }
825
+ );
826
+ });
827
+ FormDescription.displayName = "FormDescription";
828
+ var FormMessage = React6.forwardRef(({ className, children, ...props }, ref) => {
794
829
  const { error, formMessageId } = useFormField();
795
- const body = error ? String((error == null ? void 0 : error.message) ?? "") : props.children;
830
+ const body = error ? String((error == null ? void 0 : error.message) ?? "") : children;
796
831
  if (!body) {
797
832
  return null;
798
833
  }
799
834
  return /* @__PURE__ */ jsx12(
800
835
  "p",
801
836
  {
802
- "data-slot": "form-message",
837
+ ref,
803
838
  id: formMessageId,
804
- className: cn("text-destructive text-sm", className),
839
+ className: cn("text-[0.8rem] font-medium text-destructive", className),
805
840
  ...props,
806
841
  children: body
807
842
  }
808
843
  );
809
- }
844
+ });
845
+ FormMessage.displayName = "FormMessage";
810
846
 
811
847
  // src/components/ui/input.tsx
848
+ import * as React7 from "react";
812
849
  import { jsx as jsx13 } from "react/jsx-runtime";
813
- function Input({ className, type, ...props }) {
814
- return /* @__PURE__ */ jsx13(
815
- "input",
816
- {
817
- type,
818
- "data-slot": "input",
819
- className: cn(
820
- "file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
821
- "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]",
822
- "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
823
- className
824
- ),
825
- ...props
826
- }
827
- );
828
- }
850
+ var Input = React7.forwardRef(
851
+ ({ className, type, ...props }, ref) => {
852
+ return /* @__PURE__ */ jsx13(
853
+ "input",
854
+ {
855
+ type,
856
+ className: cn(
857
+ "flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
858
+ className
859
+ ),
860
+ ref,
861
+ ...props
862
+ }
863
+ );
864
+ }
865
+ );
866
+ Input.displayName = "Input";
829
867
 
830
868
  // src/components/organization/organization-logo.tsx
831
869
  import { BuildingIcon } from "lucide-react";
832
870
  import { useContext as useContext3, useMemo } from "react";
833
871
 
834
872
  // src/components/ui/avatar.tsx
873
+ import * as React8 from "react";
835
874
  import * as AvatarPrimitive from "@radix-ui/react-avatar";
836
875
  import { jsx as jsx14 } from "react/jsx-runtime";
837
- function Avatar({
838
- className,
839
- ...props
840
- }) {
841
- return /* @__PURE__ */ jsx14(
842
- AvatarPrimitive.Root,
843
- {
844
- "data-slot": "avatar",
845
- className: cn(
846
- "relative flex size-8 shrink-0 overflow-hidden rounded-full",
847
- className
848
- ),
849
- ...props
850
- }
851
- );
852
- }
853
- function AvatarImage({
854
- className,
855
- ...props
856
- }) {
857
- return /* @__PURE__ */ jsx14(
858
- AvatarPrimitive.Image,
859
- {
860
- "data-slot": "avatar-image",
861
- className: cn("aspect-square size-full", className),
862
- ...props
863
- }
864
- );
865
- }
866
- function AvatarFallback({
867
- className,
868
- ...props
869
- }) {
870
- return /* @__PURE__ */ jsx14(
871
- AvatarPrimitive.Fallback,
872
- {
873
- "data-slot": "avatar-fallback",
874
- className: cn(
875
- "bg-muted flex size-full items-center justify-center rounded-full",
876
- className
877
- ),
878
- ...props
879
- }
880
- );
881
- }
876
+ var Avatar = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
877
+ AvatarPrimitive.Root,
878
+ {
879
+ ref,
880
+ className: cn(
881
+ "relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
882
+ className
883
+ ),
884
+ ...props
885
+ }
886
+ ));
887
+ Avatar.displayName = AvatarPrimitive.Root.displayName;
888
+ var AvatarImage = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
889
+ AvatarPrimitive.Image,
890
+ {
891
+ ref,
892
+ className: cn("aspect-square h-full w-full", className),
893
+ ...props
894
+ }
895
+ ));
896
+ AvatarImage.displayName = AvatarPrimitive.Image.displayName;
897
+ var AvatarFallback = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx14(
898
+ AvatarPrimitive.Fallback,
899
+ {
900
+ ref,
901
+ className: cn(
902
+ "flex h-full w-full items-center justify-center rounded-full bg-muted",
903
+ className
904
+ ),
905
+ ...props
906
+ }
907
+ ));
908
+ AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
882
909
 
883
910
  // src/components/organization/organization-logo.tsx
884
911
  import { jsx as jsx15, jsxs as jsxs8 } from "react/jsx-runtime";
@@ -1676,7 +1703,7 @@ function OrganizationsCard({
1676
1703
  }
1677
1704
 
1678
1705
  // src/components/organization/user-invitations-card.tsx
1679
- import { CheckIcon as CheckIcon2, EllipsisIcon as EllipsisIcon2, Loader2 as Loader25, XIcon as XIcon2 } from "lucide-react";
1706
+ import { CheckIcon, EllipsisIcon as EllipsisIcon2, Loader2 as Loader25, XIcon } from "lucide-react";
1680
1707
  import { useContext as useContext10, useMemo as useMemo6, useState as useState5 } from "react";
1681
1708
 
1682
1709
  // src/components/user-avatar.tsx
@@ -1964,7 +1991,7 @@ function UserInvitationRow({
1964
1991
  onClick: handleAccept,
1965
1992
  disabled: isLoading,
1966
1993
  children: [
1967
- /* @__PURE__ */ jsx22(CheckIcon2, { className: classNames == null ? void 0 : classNames.icon }),
1994
+ /* @__PURE__ */ jsx22(CheckIcon, { className: classNames == null ? void 0 : classNames.icon }),
1968
1995
  localization.ACCEPT
1969
1996
  ]
1970
1997
  }
@@ -1976,7 +2003,7 @@ function UserInvitationRow({
1976
2003
  disabled: isLoading,
1977
2004
  variant: "destructive",
1978
2005
  children: [
1979
- /* @__PURE__ */ jsx22(XIcon2, { className: classNames == null ? void 0 : classNames.icon }),
2006
+ /* @__PURE__ */ jsx22(XIcon, { className: classNames == null ? void 0 : classNames.icon }),
1980
2007
  localization.REJECT
1981
2008
  ]
1982
2009
  }
@@ -2441,49 +2468,47 @@ import { useForm as useForm2 } from "react-hook-form";
2441
2468
  import * as z2 from "zod";
2442
2469
 
2443
2470
  // src/components/ui/checkbox.tsx
2471
+ import * as React9 from "react";
2444
2472
  import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
2445
- import { CheckIcon as CheckIcon3 } from "lucide-react";
2473
+ import { Check as Check2 } from "lucide-react";
2446
2474
  import { jsx as jsx27 } from "react/jsx-runtime";
2447
- function Checkbox({
2448
- className,
2449
- ...props
2450
- }) {
2451
- return /* @__PURE__ */ jsx27(
2452
- CheckboxPrimitive.Root,
2453
- {
2454
- "data-slot": "checkbox",
2455
- className: cn(
2456
- "peer border-input dark:bg-input/30 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground dark:data-[state=checked]:bg-primary data-[state=checked]:border-primary 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",
2457
- className
2458
- ),
2459
- ...props,
2460
- children: /* @__PURE__ */ jsx27(
2461
- CheckboxPrimitive.Indicator,
2462
- {
2463
- "data-slot": "checkbox-indicator",
2464
- className: "flex items-center justify-center text-current transition-none",
2465
- children: /* @__PURE__ */ jsx27(CheckIcon3, { className: "size-3.5" })
2466
- }
2467
- )
2468
- }
2469
- );
2470
- }
2475
+ var Checkbox = React9.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx27(
2476
+ CheckboxPrimitive.Root,
2477
+ {
2478
+ ref,
2479
+ className: cn(
2480
+ "grid place-content-center peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
2481
+ className
2482
+ ),
2483
+ ...props,
2484
+ children: /* @__PURE__ */ jsx27(
2485
+ CheckboxPrimitive.Indicator,
2486
+ {
2487
+ className: cn("grid place-content-center text-current"),
2488
+ children: /* @__PURE__ */ jsx27(Check2, { className: "h-4 w-4" })
2489
+ }
2490
+ )
2491
+ }
2492
+ ));
2493
+ Checkbox.displayName = CheckboxPrimitive.Root.displayName;
2471
2494
 
2472
2495
  // src/components/ui/textarea.tsx
2496
+ import * as React10 from "react";
2473
2497
  import { jsx as jsx28 } from "react/jsx-runtime";
2474
- function Textarea({ className, ...props }) {
2498
+ var Textarea = React10.forwardRef(({ className, ...props }, ref) => {
2475
2499
  return /* @__PURE__ */ jsx28(
2476
2500
  "textarea",
2477
2501
  {
2478
- "data-slot": "textarea",
2479
2502
  className: cn(
2480
- "border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
2503
+ "flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
2481
2504
  className
2482
2505
  ),
2506
+ ref,
2483
2507
  ...props
2484
2508
  }
2485
2509
  );
2486
- }
2510
+ });
2511
+ Textarea.displayName = "Textarea";
2487
2512
 
2488
2513
  // src/components/settings/account/update-field-card.tsx
2489
2514
  import { jsx as jsx29, jsxs as jsxs20 } from "react/jsx-runtime";
@@ -3223,7 +3248,7 @@ function ApiKeyCell({
3223
3248
  }
3224
3249
 
3225
3250
  // src/components/settings/api-key/api-key-display-dialog.tsx
3226
- import { CheckIcon as CheckIcon4, CopyIcon } from "lucide-react";
3251
+ import { CheckIcon as CheckIcon2, CopyIcon } from "lucide-react";
3227
3252
  import { useContext as useContext22, useState as useState11 } from "react";
3228
3253
  import { Fragment as Fragment9, jsx as jsx36, jsxs as jsxs25 } from "react/jsx-runtime";
3229
3254
  function ApiKeyDisplayDialog({
@@ -3281,7 +3306,7 @@ function ApiKeyDisplayDialog({
3281
3306
  classNames == null ? void 0 : classNames.outlineButton
3282
3307
  ),
3283
3308
  children: copied ? /* @__PURE__ */ jsxs25(Fragment9, { children: [
3284
- /* @__PURE__ */ jsx36(CheckIcon4, { className: classNames == null ? void 0 : classNames.icon }),
3309
+ /* @__PURE__ */ jsx36(CheckIcon2, { className: classNames == null ? void 0 : classNames.icon }),
3285
3310
  localization.COPIED_TO_CLIPBOARD
3286
3311
  ] }) : /* @__PURE__ */ jsxs25(Fragment9, { children: [
3287
3312
  /* @__PURE__ */ jsx36(CopyIcon, { className: classNames == null ? void 0 : classNames.icon }),
@@ -3413,131 +3438,116 @@ function PersonalAccountView({
3413
3438
  }
3414
3439
 
3415
3440
  // src/components/ui/select.tsx
3441
+ import * as React11 from "react";
3416
3442
  import * as SelectPrimitive from "@radix-ui/react-select";
3417
- import { CheckIcon as CheckIcon5, ChevronDownIcon, ChevronUpIcon } from "lucide-react";
3443
+ import { Check as Check3, ChevronDown, ChevronUp } from "lucide-react";
3418
3444
  import { jsx as jsx38, jsxs as jsxs27 } from "react/jsx-runtime";
3419
- function Select({
3420
- ...props
3421
- }) {
3422
- return /* @__PURE__ */ jsx38(SelectPrimitive.Root, { "data-slot": "select", ...props });
3423
- }
3424
- function SelectValue({
3425
- ...props
3426
- }) {
3427
- return /* @__PURE__ */ jsx38(SelectPrimitive.Value, { "data-slot": "select-value", ...props });
3428
- }
3429
- function SelectTrigger({
3430
- className,
3431
- size = "default",
3432
- children,
3433
- ...props
3434
- }) {
3435
- return /* @__PURE__ */ jsxs27(
3436
- SelectPrimitive.Trigger,
3437
- {
3438
- "data-slot": "select-trigger",
3439
- "data-size": size,
3440
- className: cn(
3441
- "border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
3442
- className
3443
- ),
3444
- ...props,
3445
- children: [
3446
- children,
3447
- /* @__PURE__ */ jsx38(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx38(ChevronDownIcon, { className: "size-4 opacity-50" }) })
3448
- ]
3449
- }
3450
- );
3451
- }
3452
- function SelectContent({
3453
- className,
3454
- children,
3455
- position = "popper",
3456
- ...props
3457
- }) {
3458
- return /* @__PURE__ */ jsx38(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs27(
3459
- SelectPrimitive.Content,
3460
- {
3461
- "data-slot": "select-content",
3462
- className: cn(
3463
- "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",
3464
- 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",
3465
- className
3466
- ),
3467
- position,
3468
- ...props,
3469
- children: [
3470
- /* @__PURE__ */ jsx38(SelectScrollUpButton, {}),
3471
- /* @__PURE__ */ jsx38(
3472
- SelectPrimitive.Viewport,
3473
- {
3474
- className: cn(
3475
- "p-1",
3476
- position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"
3477
- ),
3478
- children
3479
- }
3480
- ),
3481
- /* @__PURE__ */ jsx38(SelectScrollDownButton, {})
3482
- ]
3483
- }
3484
- ) });
3485
- }
3486
- function SelectItem({
3487
- className,
3488
- children,
3489
- ...props
3490
- }) {
3491
- return /* @__PURE__ */ jsxs27(
3492
- SelectPrimitive.Item,
3493
- {
3494
- "data-slot": "select-item",
3495
- className: cn(
3496
- "focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 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 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",
3497
- className
3498
- ),
3499
- ...props,
3500
- children: [
3501
- /* @__PURE__ */ jsx38("span", { className: "absolute right-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ jsx38(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx38(CheckIcon5, { className: "size-4" }) }) }),
3502
- /* @__PURE__ */ jsx38(SelectPrimitive.ItemText, { children })
3503
- ]
3504
- }
3505
- );
3506
- }
3507
- function SelectScrollUpButton({
3508
- className,
3509
- ...props
3510
- }) {
3511
- return /* @__PURE__ */ jsx38(
3512
- SelectPrimitive.ScrollUpButton,
3513
- {
3514
- "data-slot": "select-scroll-up-button",
3515
- className: cn(
3516
- "flex cursor-default items-center justify-center py-1",
3517
- className
3518
- ),
3519
- ...props,
3520
- children: /* @__PURE__ */ jsx38(ChevronUpIcon, { className: "size-4" })
3521
- }
3522
- );
3523
- }
3524
- function SelectScrollDownButton({
3525
- className,
3526
- ...props
3527
- }) {
3528
- return /* @__PURE__ */ jsx38(
3529
- SelectPrimitive.ScrollDownButton,
3530
- {
3531
- "data-slot": "select-scroll-down-button",
3532
- className: cn(
3533
- "flex cursor-default items-center justify-center py-1",
3534
- className
3445
+ var Select = SelectPrimitive.Root;
3446
+ var SelectValue = SelectPrimitive.Value;
3447
+ var SelectTrigger = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs27(
3448
+ SelectPrimitive.Trigger,
3449
+ {
3450
+ ref,
3451
+ className: cn(
3452
+ "flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
3453
+ className
3454
+ ),
3455
+ ...props,
3456
+ children: [
3457
+ children,
3458
+ /* @__PURE__ */ jsx38(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx38(ChevronDown, { className: "h-4 w-4 opacity-50" }) })
3459
+ ]
3460
+ }
3461
+ ));
3462
+ SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
3463
+ var SelectScrollUpButton = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx38(
3464
+ SelectPrimitive.ScrollUpButton,
3465
+ {
3466
+ ref,
3467
+ className: cn(
3468
+ "flex cursor-default items-center justify-center py-1",
3469
+ className
3470
+ ),
3471
+ ...props,
3472
+ children: /* @__PURE__ */ jsx38(ChevronUp, { className: "h-4 w-4" })
3473
+ }
3474
+ ));
3475
+ SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
3476
+ var SelectScrollDownButton = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx38(
3477
+ SelectPrimitive.ScrollDownButton,
3478
+ {
3479
+ ref,
3480
+ className: cn(
3481
+ "flex cursor-default items-center justify-center py-1",
3482
+ className
3483
+ ),
3484
+ ...props,
3485
+ children: /* @__PURE__ */ jsx38(ChevronDown, { className: "h-4 w-4" })
3486
+ }
3487
+ ));
3488
+ SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
3489
+ var SelectContent = React11.forwardRef(({ className, children, position = "popper", ...props }, ref) => /* @__PURE__ */ jsx38(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs27(
3490
+ SelectPrimitive.Content,
3491
+ {
3492
+ ref,
3493
+ className: cn(
3494
+ "relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-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 origin-[--radix-select-content-transform-origin]",
3495
+ 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",
3496
+ className
3497
+ ),
3498
+ position,
3499
+ ...props,
3500
+ children: [
3501
+ /* @__PURE__ */ jsx38(SelectScrollUpButton, {}),
3502
+ /* @__PURE__ */ jsx38(
3503
+ SelectPrimitive.Viewport,
3504
+ {
3505
+ className: cn(
3506
+ "p-1",
3507
+ position === "popper" && "h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"
3508
+ ),
3509
+ children
3510
+ }
3535
3511
  ),
3536
- ...props,
3537
- children: /* @__PURE__ */ jsx38(ChevronDownIcon, { className: "size-4" })
3538
- }
3539
- );
3540
- }
3512
+ /* @__PURE__ */ jsx38(SelectScrollDownButton, {})
3513
+ ]
3514
+ }
3515
+ ) }));
3516
+ SelectContent.displayName = SelectPrimitive.Content.displayName;
3517
+ var SelectLabel = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx38(
3518
+ SelectPrimitive.Label,
3519
+ {
3520
+ ref,
3521
+ className: cn("px-2 py-1.5 text-sm font-semibold", className),
3522
+ ...props
3523
+ }
3524
+ ));
3525
+ SelectLabel.displayName = SelectPrimitive.Label.displayName;
3526
+ var SelectItem = React11.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs27(
3527
+ SelectPrimitive.Item,
3528
+ {
3529
+ ref,
3530
+ className: cn(
3531
+ "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
3532
+ className
3533
+ ),
3534
+ ...props,
3535
+ children: [
3536
+ /* @__PURE__ */ jsx38("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx38(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx38(Check3, { className: "h-4 w-4" }) }) }),
3537
+ /* @__PURE__ */ jsx38(SelectPrimitive.ItemText, { children })
3538
+ ]
3539
+ }
3540
+ ));
3541
+ SelectItem.displayName = SelectPrimitive.Item.displayName;
3542
+ var SelectSeparator = React11.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx38(
3543
+ SelectPrimitive.Separator,
3544
+ {
3545
+ ref,
3546
+ className: cn("-mx-1 my-1 h-px bg-muted", className),
3547
+ ...props
3548
+ }
3549
+ ));
3550
+ SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
3541
3551
 
3542
3552
  // src/components/settings/api-key/create-api-key-dialog.tsx
3543
3553
  import { jsx as jsx39, jsxs as jsxs28 } from "react/jsx-runtime";
@@ -4863,7 +4873,7 @@ var VKIcon = ({ className }) => /* @__PURE__ */ jsx46(
4863
4873
  )
4864
4874
  }
4865
4875
  );
4866
- var XIcon3 = ({ className }) => /* @__PURE__ */ jsx46(
4876
+ var XIcon2 = ({ className }) => /* @__PURE__ */ jsx46(
4867
4877
  "svg",
4868
4878
  {
4869
4879
  className,
@@ -5001,7 +5011,7 @@ var socialProviders = [
5001
5011
  {
5002
5012
  provider: "twitter",
5003
5013
  name: "X",
5004
- icon: XIcon3
5014
+ icon: XIcon2
5005
5015
  },
5006
5016
  {
5007
5017
  provider: "zoom",
@@ -5649,7 +5659,7 @@ import { useForm as useForm8 } from "react-hook-form";
5649
5659
  import * as z7 from "zod";
5650
5660
 
5651
5661
  // src/components/settings/two-factor/backup-codes-dialog.tsx
5652
- import { CheckIcon as CheckIcon6, CopyIcon as CopyIcon2 } from "lucide-react";
5662
+ import { CheckIcon as CheckIcon3, CopyIcon as CopyIcon2 } from "lucide-react";
5653
5663
  import { useContext as useContext36, useState as useState19 } from "react";
5654
5664
  import { Fragment as Fragment17, jsx as jsx54, jsxs as jsxs42 } from "react/jsx-runtime";
5655
5665
  function BackupCodesDialog({
@@ -5713,7 +5723,7 @@ function BackupCodesDialog({
5713
5723
  classNames == null ? void 0 : classNames.outlineButton
5714
5724
  ),
5715
5725
  children: copied ? /* @__PURE__ */ jsxs42(Fragment17, { children: [
5716
- /* @__PURE__ */ jsx54(CheckIcon6, { className: classNames == null ? void 0 : classNames.icon }),
5726
+ /* @__PURE__ */ jsx54(CheckIcon3, { className: classNames == null ? void 0 : classNames.icon }),
5717
5727
  localization.COPIED_TO_CLIPBOARD
5718
5728
  ] }) : /* @__PURE__ */ jsxs42(Fragment17, { children: [
5719
5729
  /* @__PURE__ */ jsx54(CopyIcon2, { className: classNames == null ? void 0 : classNames.icon }),
@@ -6058,93 +6068,94 @@ function SecuritySettingsCards({
6058
6068
  }
6059
6069
 
6060
6070
  // src/components/ui/drawer.tsx
6071
+ import * as React12 from "react";
6061
6072
  import { Drawer as DrawerPrimitive } from "vaul";
6062
6073
  import { jsx as jsx58, jsxs as jsxs46 } from "react/jsx-runtime";
6063
- function Drawer({
6064
- ...props
6065
- }) {
6066
- return /* @__PURE__ */ jsx58(DrawerPrimitive.Root, { "data-slot": "drawer", ...props });
6067
- }
6068
- function DrawerTrigger({
6069
- ...props
6070
- }) {
6071
- return /* @__PURE__ */ jsx58(DrawerPrimitive.Trigger, { "data-slot": "drawer-trigger", ...props });
6072
- }
6073
- function DrawerPortal({
6074
- ...props
6075
- }) {
6076
- return /* @__PURE__ */ jsx58(DrawerPrimitive.Portal, { "data-slot": "drawer-portal", ...props });
6077
- }
6078
- function DrawerOverlay({
6079
- className,
6074
+ var Drawer = ({
6075
+ shouldScaleBackground = true,
6080
6076
  ...props
6081
- }) {
6082
- return /* @__PURE__ */ jsx58(
6083
- DrawerPrimitive.Overlay,
6077
+ }) => /* @__PURE__ */ jsx58(
6078
+ DrawerPrimitive.Root,
6079
+ {
6080
+ shouldScaleBackground,
6081
+ ...props
6082
+ }
6083
+ );
6084
+ Drawer.displayName = "Drawer";
6085
+ var DrawerTrigger = DrawerPrimitive.Trigger;
6086
+ var DrawerPortal = DrawerPrimitive.Portal;
6087
+ var DrawerClose = DrawerPrimitive.Close;
6088
+ var DrawerOverlay = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx58(
6089
+ DrawerPrimitive.Overlay,
6090
+ {
6091
+ ref,
6092
+ className: cn("fixed inset-0 z-50 bg-black/80", className),
6093
+ ...props
6094
+ }
6095
+ ));
6096
+ DrawerOverlay.displayName = DrawerPrimitive.Overlay.displayName;
6097
+ var DrawerContent = React12.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs46(DrawerPortal, { children: [
6098
+ /* @__PURE__ */ jsx58(DrawerOverlay, {}),
6099
+ /* @__PURE__ */ jsxs46(
6100
+ DrawerPrimitive.Content,
6084
6101
  {
6085
- "data-slot": "drawer-overlay",
6102
+ ref,
6086
6103
  className: cn(
6087
- "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",
6104
+ "fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",
6088
6105
  className
6089
6106
  ),
6090
- ...props
6107
+ ...props,
6108
+ children: [
6109
+ /* @__PURE__ */ jsx58("div", { className: "mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted" }),
6110
+ children
6111
+ ]
6091
6112
  }
6092
- );
6093
- }
6094
- function DrawerContent({
6113
+ )
6114
+ ] }));
6115
+ DrawerContent.displayName = "DrawerContent";
6116
+ var DrawerHeader = ({
6095
6117
  className,
6096
- children,
6097
6118
  ...props
6098
- }) {
6099
- return /* @__PURE__ */ jsxs46(DrawerPortal, { "data-slot": "drawer-portal", children: [
6100
- /* @__PURE__ */ jsx58(DrawerOverlay, {}),
6101
- /* @__PURE__ */ jsxs46(
6102
- DrawerPrimitive.Content,
6103
- {
6104
- "data-slot": "drawer-content",
6105
- className: cn(
6106
- "group/drawer-content bg-background fixed z-50 flex h-auto flex-col",
6107
- "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",
6108
- "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 data-[vaul-drawer-direction=bottom]:border-t",
6109
- "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",
6110
- "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",
6111
- className
6112
- ),
6113
- ...props,
6114
- children: [
6115
- /* @__PURE__ */ jsx58("div", { className: "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full group-data-[vaul-drawer-direction=bottom]/drawer-content:block" }),
6116
- children
6117
- ]
6118
- }
6119
- )
6120
- ] });
6121
- }
6122
- function DrawerHeader({ className, ...props }) {
6123
- return /* @__PURE__ */ jsx58(
6124
- "div",
6125
- {
6126
- "data-slot": "drawer-header",
6127
- className: cn(
6128
- "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",
6129
- className
6130
- ),
6131
- ...props
6132
- }
6133
- );
6134
- }
6135
- function DrawerTitle({
6119
+ }) => /* @__PURE__ */ jsx58(
6120
+ "div",
6121
+ {
6122
+ className: cn("grid gap-1.5 p-4 text-center sm:text-left", className),
6123
+ ...props
6124
+ }
6125
+ );
6126
+ DrawerHeader.displayName = "DrawerHeader";
6127
+ var DrawerFooter = ({
6136
6128
  className,
6137
6129
  ...props
6138
- }) {
6139
- return /* @__PURE__ */ jsx58(
6140
- DrawerPrimitive.Title,
6141
- {
6142
- "data-slot": "drawer-title",
6143
- className: cn("text-foreground font-semibold", className),
6144
- ...props
6145
- }
6146
- );
6147
- }
6130
+ }) => /* @__PURE__ */ jsx58(
6131
+ "div",
6132
+ {
6133
+ className: cn("mt-auto flex flex-col gap-2 p-4", className),
6134
+ ...props
6135
+ }
6136
+ );
6137
+ DrawerFooter.displayName = "DrawerFooter";
6138
+ var DrawerTitle = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx58(
6139
+ DrawerPrimitive.Title,
6140
+ {
6141
+ ref,
6142
+ className: cn(
6143
+ "text-lg font-semibold leading-none tracking-tight",
6144
+ className
6145
+ ),
6146
+ ...props
6147
+ }
6148
+ ));
6149
+ DrawerTitle.displayName = DrawerPrimitive.Title.displayName;
6150
+ var DrawerDescription = React12.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx58(
6151
+ DrawerPrimitive.Description,
6152
+ {
6153
+ ref,
6154
+ className: cn("text-sm text-muted-foreground", className),
6155
+ ...props
6156
+ }
6157
+ ));
6158
+ DrawerDescription.displayName = DrawerPrimitive.Description.displayName;
6148
6159
 
6149
6160
  // src/components/account/account-view.tsx
6150
6161
  import { jsx as jsx59, jsxs as jsxs47 } from "react/jsx-runtime";
@@ -6384,65 +6395,48 @@ import { useForm as useForm9 } from "react-hook-form";
6384
6395
  import * as z8 from "zod";
6385
6396
 
6386
6397
  // src/components/ui/input-otp.tsx
6387
- import * as React2 from "react";
6398
+ import * as React13 from "react";
6388
6399
  import { OTPInput, OTPInputContext } from "input-otp";
6389
- import { MinusIcon } from "lucide-react";
6400
+ import { Minus } from "lucide-react";
6390
6401
  import { jsx as jsx61, jsxs as jsxs48 } from "react/jsx-runtime";
6391
- function InputOTP({
6392
- className,
6393
- containerClassName,
6394
- ...props
6395
- }) {
6396
- return /* @__PURE__ */ jsx61(
6397
- OTPInput,
6398
- {
6399
- "data-slot": "input-otp",
6400
- containerClassName: cn(
6401
- "flex items-center gap-2 has-disabled:opacity-50",
6402
- containerClassName
6403
- ),
6404
- className: cn("disabled:cursor-not-allowed", className),
6405
- ...props
6406
- }
6407
- );
6408
- }
6409
- function InputOTPGroup({ className, ...props }) {
6410
- return /* @__PURE__ */ jsx61(
6411
- "div",
6412
- {
6413
- "data-slot": "input-otp-group",
6414
- className: cn("flex items-center", className),
6415
- ...props
6416
- }
6417
- );
6418
- }
6419
- function InputOTPSlot({
6420
- index,
6421
- className,
6422
- ...props
6423
- }) {
6424
- const inputOTPContext = React2.useContext(OTPInputContext);
6425
- const { char, hasFakeCaret, isActive } = (inputOTPContext == null ? void 0 : inputOTPContext.slots[index]) ?? {};
6402
+ var InputOTP = React13.forwardRef(({ className, containerClassName, ...props }, ref) => /* @__PURE__ */ jsx61(
6403
+ OTPInput,
6404
+ {
6405
+ ref,
6406
+ containerClassName: cn(
6407
+ "flex items-center gap-2 has-[:disabled]:opacity-50",
6408
+ containerClassName
6409
+ ),
6410
+ className: cn("disabled:cursor-not-allowed", className),
6411
+ ...props
6412
+ }
6413
+ ));
6414
+ InputOTP.displayName = "InputOTP";
6415
+ var InputOTPGroup = React13.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx61("div", { ref, className: cn("flex items-center", className), ...props }));
6416
+ InputOTPGroup.displayName = "InputOTPGroup";
6417
+ var InputOTPSlot = React13.forwardRef(({ index, className, ...props }, ref) => {
6418
+ const inputOTPContext = React13.useContext(OTPInputContext);
6419
+ const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
6426
6420
  return /* @__PURE__ */ jsxs48(
6427
6421
  "div",
6428
6422
  {
6429
- "data-slot": "input-otp-slot",
6430
- "data-active": isActive,
6423
+ ref,
6431
6424
  className: cn(
6432
- "data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 dark:data-[active=true]:aria-invalid:ring-destructive/40 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive dark:bg-input/30 border-input relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]",
6425
+ "relative flex h-9 w-9 items-center justify-center border-y border-r border-input text-sm shadow-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",
6426
+ isActive && "z-10 ring-1 ring-ring",
6433
6427
  className
6434
6428
  ),
6435
6429
  ...props,
6436
6430
  children: [
6437
6431
  char,
6438
- hasFakeCaret && /* @__PURE__ */ jsx61("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx61("div", { className: "animate-caret-blink bg-foreground h-4 w-px duration-1000" }) })
6432
+ hasFakeCaret && /* @__PURE__ */ jsx61("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx61("div", { className: "h-4 w-px animate-caret-blink bg-foreground duration-1000" }) })
6439
6433
  ]
6440
6434
  }
6441
6435
  );
6442
- }
6443
- function InputOTPSeparator({ ...props }) {
6444
- return /* @__PURE__ */ jsx61("div", { "data-slot": "input-otp-separator", role: "separator", ...props, children: /* @__PURE__ */ jsx61(MinusIcon, {}) });
6445
- }
6436
+ });
6437
+ InputOTPSlot.displayName = "InputOTPSlot";
6438
+ var InputOTPSeparator = React13.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx61("div", { ref, role: "separator", ...props, children: /* @__PURE__ */ jsx61(Minus, {}) }));
6439
+ InputOTPSeparator.displayName = "InputOTPSeparator";
6446
6440
 
6447
6441
  // src/components/auth/otp-input-group.tsx
6448
6442
  import { Fragment as Fragment19, jsx as jsx62, jsxs as jsxs49 } from "react/jsx-runtime";
@@ -8793,7 +8787,7 @@ import { ArrowLeftIcon } from "lucide-react";
8793
8787
  import { useContext as useContext64, useEffect as useEffect17, useState as useState27 } from "react";
8794
8788
 
8795
8789
  // src/components/organization/accept-invitation-card.tsx
8796
- import { CheckIcon as CheckIcon7, Loader2 as Loader224, XIcon as XIcon4 } from "lucide-react";
8790
+ import { CheckIcon as CheckIcon4, Loader2 as Loader224, XIcon as XIcon3 } from "lucide-react";
8797
8791
  import { useCallback as useCallback5, useContext as useContext58, useEffect as useEffect15, useMemo as useMemo12, useState as useState26 } from "react";
8798
8792
  import { jsx as jsx76, jsxs as jsxs61 } from "react/jsx-runtime";
8799
8793
  function AcceptInvitationCard({
@@ -9022,7 +9016,7 @@ function AcceptInvitationContent({
9022
9016
  onClick: rejectInvitation,
9023
9017
  disabled: isProcessing,
9024
9018
  children: [
9025
- isRejecting ? /* @__PURE__ */ jsx76(Loader224, { className: "animate-spin" }) : /* @__PURE__ */ jsx76(XIcon4, {}),
9019
+ isRejecting ? /* @__PURE__ */ jsx76(Loader224, { className: "animate-spin" }) : /* @__PURE__ */ jsx76(XIcon3, {}),
9026
9020
  localization.REJECT
9027
9021
  ]
9028
9022
  }
@@ -9037,7 +9031,7 @@ function AcceptInvitationContent({
9037
9031
  onClick: acceptInvitation,
9038
9032
  disabled: isProcessing,
9039
9033
  children: [
9040
- isAccepting ? /* @__PURE__ */ jsx76(Loader224, { className: "animate-spin" }) : /* @__PURE__ */ jsx76(CheckIcon7, {}),
9034
+ isAccepting ? /* @__PURE__ */ jsx76(Loader224, { className: "animate-spin" }) : /* @__PURE__ */ jsx76(CheckIcon4, {}),
9041
9035
  localization.ACCEPT
9042
9036
  ]
9043
9037
  }
@@ -9109,28 +9103,26 @@ var AcceptInvitationSkeleton = ({
9109
9103
  };
9110
9104
 
9111
9105
  // src/components/ui/separator.tsx
9106
+ import * as React14 from "react";
9112
9107
  import * as SeparatorPrimitive from "@radix-ui/react-separator";
9113
9108
  import { jsx as jsx77 } from "react/jsx-runtime";
9114
- function Separator3({
9115
- className,
9116
- orientation = "horizontal",
9117
- decorative = true,
9118
- ...props
9119
- }) {
9120
- return /* @__PURE__ */ jsx77(
9109
+ var Separator3 = React14.forwardRef(
9110
+ ({ className, orientation = "horizontal", decorative = true, ...props }, ref) => /* @__PURE__ */ jsx77(
9121
9111
  SeparatorPrimitive.Root,
9122
9112
  {
9123
- "data-slot": "separator",
9113
+ ref,
9124
9114
  decorative,
9125
9115
  orientation,
9126
9116
  className: cn(
9127
- "bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",
9117
+ "shrink-0 bg-border",
9118
+ orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
9128
9119
  className
9129
9120
  ),
9130
9121
  ...props
9131
9122
  }
9132
- );
9133
- }
9123
+ )
9124
+ );
9125
+ Separator3.displayName = SeparatorPrimitive.Root.displayName;
9134
9126
 
9135
9127
  // src/components/auth/email-otp-button.tsx
9136
9128
  import { LockIcon, MailIcon } from "lucide-react";
@@ -9964,7 +9956,7 @@ function DeleteOrganizationForm({
9964
9956
  import { useContext as useContext69, useMemo as useMemo17 } from "react";
9965
9957
 
9966
9958
  // src/components/organization/invitation-cell.tsx
9967
- import { EllipsisIcon as EllipsisIcon4, Loader2 as Loader226, XIcon as XIcon5 } from "lucide-react";
9959
+ import { EllipsisIcon as EllipsisIcon4, Loader2 as Loader226, XIcon as XIcon4 } from "lucide-react";
9968
9960
  import { useContext as useContext68, useMemo as useMemo16, useState as useState29 } from "react";
9969
9961
  import { jsx as jsx85, jsxs as jsxs69 } from "react/jsx-runtime";
9970
9962
  function InvitationCell({
@@ -10071,7 +10063,7 @@ function InvitationCell({
10071
10063
  disabled: isLoading,
10072
10064
  variant: "destructive",
10073
10065
  children: [
10074
- /* @__PURE__ */ jsx85(XIcon5, { className: classNames == null ? void 0 : classNames.icon }),
10066
+ /* @__PURE__ */ jsx85(XIcon4, { className: classNames == null ? void 0 : classNames.icon }),
10075
10067
  localization.CANCEL_INVITATION
10076
10068
  ]
10077
10069
  }
@@ -12604,7 +12596,7 @@ export {
12604
12596
  UserInvitationsCard,
12605
12597
  UserView,
12606
12598
  VKIcon,
12607
- XIcon3 as XIcon,
12599
+ XIcon2 as XIcon,
12608
12600
  ZoomIcon,
12609
12601
  accountViewPaths,
12610
12602
  authLocalization,