@cyberbloxai/ui-kit 0.2.2 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -0
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +118 -104
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/showcase/ComponentsShowcase.tsx +14 -11
- package/src/components/ui/badge.tsx +13 -5
- package/src/components/ui/button.tsx +10 -9
- package/src/components/ui/card.tsx +8 -1
- package/src/components/ui/checkbox.tsx +1 -1
- package/src/components/ui/dialog.tsx +1 -1
- package/src/components/ui/input.tsx +1 -1
- package/src/components/ui/popover.tsx +1 -1
- package/src/components/ui/select.tsx +2 -2
- package/src/components/ui/switch.tsx +2 -2
- package/src/components/ui/tabs.tsx +2 -2
- package/src/components/ui/textarea.tsx +1 -1
- package/src/pages/Index.tsx +3 -3
package/dist/index.mjs
CHANGED
|
@@ -16,13 +16,13 @@ import * as J from "@radix-ui/react-collapsible";
|
|
|
16
16
|
import { Command as N } from "cmdk";
|
|
17
17
|
import * as c from "@radix-ui/react-dialog";
|
|
18
18
|
import * as m from "@radix-ui/react-context-menu";
|
|
19
|
-
import { Drawer as
|
|
19
|
+
import { Drawer as x } from "vaul";
|
|
20
20
|
import * as f from "@radix-ui/react-dropdown-menu";
|
|
21
21
|
import * as H from "@radix-ui/react-hover-card";
|
|
22
22
|
import { OTPInput as Be, OTPInputContext as He } from "input-otp";
|
|
23
23
|
import * as ie from "@radix-ui/react-label";
|
|
24
24
|
import * as l from "@radix-ui/react-menubar";
|
|
25
|
-
import * as
|
|
25
|
+
import * as h from "@radix-ui/react-navigation-menu";
|
|
26
26
|
import * as _ from "@radix-ui/react-popover";
|
|
27
27
|
import * as Q from "@radix-ui/react-progress";
|
|
28
28
|
import * as A from "@radix-ui/react-radio-group";
|
|
@@ -68,22 +68,23 @@ const Ue = s.forwardRef(({ className: e, children: t, ...a }, n) => /* @__PURE__
|
|
|
68
68
|
));
|
|
69
69
|
Ue.displayName = C.Content.displayName;
|
|
70
70
|
const k = T(
|
|
71
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-
|
|
71
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-semibold ring-offset-background transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 active:scale-[0.98]",
|
|
72
72
|
{
|
|
73
73
|
variants: {
|
|
74
74
|
variant: {
|
|
75
|
-
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
76
|
-
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
|
|
77
|
-
outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
|
|
78
|
-
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
75
|
+
default: "bg-primary text-primary-foreground shadow-sm hover:bg-primary/90 hover:shadow-md",
|
|
76
|
+
destructive: "bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90 hover:shadow-md",
|
|
77
|
+
outline: "border-2 border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground hover:border-accent",
|
|
78
|
+
secondary: "bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80 hover:shadow-md",
|
|
79
79
|
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
80
|
-
link: "text-primary underline-offset-4 hover:underline"
|
|
80
|
+
link: "text-primary underline-offset-4 hover:underline",
|
|
81
|
+
shiny: "bg-primary text-primary-foreground shadow-lg hover:shadow-primary/20 hover:-translate-y-0.5 relative overflow-hidden before:absolute before:inset-0 before:bg-gradient-to-r before:from-transparent before:via-white/20 before:to-transparent before:translate-x-[-100%] hover:before:translate-x-[100%] before:transition-transform before:duration-700"
|
|
81
82
|
},
|
|
82
83
|
size: {
|
|
83
|
-
default: "h-
|
|
84
|
-
sm: "h-9 rounded-md px-
|
|
85
|
-
lg: "h-
|
|
86
|
-
icon: "h-
|
|
84
|
+
default: "h-11 px-6 py-2.5",
|
|
85
|
+
sm: "h-9 rounded-md px-4 text-xs",
|
|
86
|
+
lg: "h-13 rounded-xl px-10 text-base",
|
|
87
|
+
icon: "h-11 w-11"
|
|
87
88
|
}
|
|
88
89
|
},
|
|
89
90
|
defaultVariants: {
|
|
@@ -185,14 +186,17 @@ const st = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
|
185
186
|
));
|
|
186
187
|
st.displayName = P.Fallback.displayName;
|
|
187
188
|
const nt = T(
|
|
188
|
-
"inline-flex items-center rounded-full border px-
|
|
189
|
+
"inline-flex items-center rounded-full border px-3 py-0.5 text-xs font-semibold transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
189
190
|
{
|
|
190
191
|
variants: {
|
|
191
192
|
variant: {
|
|
192
|
-
default: "border-transparent bg-primary text-primary-foreground hover:bg-primary/
|
|
193
|
-
secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
194
|
-
destructive: "border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",
|
|
195
|
-
outline: "text-foreground"
|
|
193
|
+
default: "border-transparent bg-primary text-primary-foreground shadow-sm hover:bg-primary/90",
|
|
194
|
+
secondary: "border-transparent bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",
|
|
195
|
+
destructive: "border-transparent bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/80",
|
|
196
|
+
outline: "text-foreground border-border hover:bg-accent hover:text-accent-foreground",
|
|
197
|
+
success: "border-transparent bg-emerald-500 text-white shadow-sm hover:bg-emerald-600",
|
|
198
|
+
warning: "border-transparent bg-amber-500 text-white shadow-sm hover:bg-amber-600",
|
|
199
|
+
info: "border-transparent bg-blue-500 text-white shadow-sm hover:bg-blue-600"
|
|
196
200
|
}
|
|
197
201
|
},
|
|
198
202
|
defaultVariants: {
|
|
@@ -297,7 +301,17 @@ function pt({ className: e, classNames: t, showOutsideDays: a = !0, ...n }) {
|
|
|
297
301
|
);
|
|
298
302
|
}
|
|
299
303
|
pt.displayName = "Calendar";
|
|
300
|
-
const gt = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
304
|
+
const gt = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
305
|
+
"div",
|
|
306
|
+
{
|
|
307
|
+
ref: a,
|
|
308
|
+
className: r(
|
|
309
|
+
"rounded-xl border bg-card text-card-foreground shadow-sm transition-all duration-200 hover:shadow-md",
|
|
310
|
+
e
|
|
311
|
+
),
|
|
312
|
+
...t
|
|
313
|
+
}
|
|
314
|
+
));
|
|
301
315
|
gt.displayName = "Card";
|
|
302
316
|
const bt = s.forwardRef(
|
|
303
317
|
({ className: e, ...t }, a) => /* @__PURE__ */ o("div", { ref: a, className: r("flex flex-col space-y-1.5 p-6", e), ...t })
|
|
@@ -307,18 +321,18 @@ const Nt = s.forwardRef(
|
|
|
307
321
|
({ className: e, ...t }, a) => /* @__PURE__ */ o("h3", { ref: a, className: r("text-2xl font-semibold leading-none tracking-tight", e), ...t })
|
|
308
322
|
);
|
|
309
323
|
Nt.displayName = "CardTitle";
|
|
310
|
-
const
|
|
324
|
+
const ht = s.forwardRef(
|
|
311
325
|
({ className: e, ...t }, a) => /* @__PURE__ */ o("p", { ref: a, className: r("text-sm text-muted-foreground", e), ...t })
|
|
312
326
|
);
|
|
313
|
-
|
|
314
|
-
const
|
|
327
|
+
ht.displayName = "CardDescription";
|
|
328
|
+
const yt = s.forwardRef(
|
|
315
329
|
({ className: e, ...t }, a) => /* @__PURE__ */ o("div", { ref: a, className: r("p-6 pt-0", e), ...t })
|
|
316
330
|
);
|
|
317
|
-
|
|
318
|
-
const
|
|
331
|
+
yt.displayName = "CardContent";
|
|
332
|
+
const xt = s.forwardRef(
|
|
319
333
|
({ className: e, ...t }, a) => /* @__PURE__ */ o("div", { ref: a, className: r("flex items-center p-6 pt-0", e), ...t })
|
|
320
334
|
);
|
|
321
|
-
|
|
335
|
+
xt.displayName = "CardFooter";
|
|
322
336
|
const me = s.createContext(null);
|
|
323
337
|
function F() {
|
|
324
338
|
const e = s.useContext(me);
|
|
@@ -327,7 +341,7 @@ function F() {
|
|
|
327
341
|
return e;
|
|
328
342
|
}
|
|
329
343
|
const wt = s.forwardRef(
|
|
330
|
-
({ orientation: e = "horizontal", opts: t, setApi: a, plugins: n, className: i, children: g, ...
|
|
344
|
+
({ orientation: e = "horizontal", opts: t, setApi: a, plugins: n, className: i, children: g, ...y }, v) => {
|
|
331
345
|
const [Re, p] = Ee(
|
|
332
346
|
{
|
|
333
347
|
...t,
|
|
@@ -374,7 +388,7 @@ const wt = s.forwardRef(
|
|
|
374
388
|
className: r("relative", i),
|
|
375
389
|
role: "region",
|
|
376
390
|
"aria-roledescription": "carousel",
|
|
377
|
-
...
|
|
391
|
+
...y,
|
|
378
392
|
children: g
|
|
379
393
|
}
|
|
380
394
|
)
|
|
@@ -415,7 +429,7 @@ const Rt = s.forwardRef(
|
|
|
415
429
|
Rt.displayName = "CarouselItem";
|
|
416
430
|
const Ct = s.forwardRef(
|
|
417
431
|
({ className: e, variant: t = "outline", size: a = "icon", ...n }, i) => {
|
|
418
|
-
const { orientation: g, scrollPrev:
|
|
432
|
+
const { orientation: g, scrollPrev: y, canScrollPrev: v } = F();
|
|
419
433
|
return /* @__PURE__ */ d(
|
|
420
434
|
ee,
|
|
421
435
|
{
|
|
@@ -428,7 +442,7 @@ const Ct = s.forwardRef(
|
|
|
428
442
|
e
|
|
429
443
|
),
|
|
430
444
|
disabled: !v,
|
|
431
|
-
onClick:
|
|
445
|
+
onClick: y,
|
|
432
446
|
...n,
|
|
433
447
|
children: [
|
|
434
448
|
/* @__PURE__ */ o(Me, { className: "h-4 w-4" }),
|
|
@@ -441,7 +455,7 @@ const Ct = s.forwardRef(
|
|
|
441
455
|
Ct.displayName = "CarouselPrevious";
|
|
442
456
|
const Tt = s.forwardRef(
|
|
443
457
|
({ className: e, variant: t = "outline", size: a = "icon", ...n }, i) => {
|
|
444
|
-
const { orientation: g, scrollNext:
|
|
458
|
+
const { orientation: g, scrollNext: y, canScrollNext: v } = F();
|
|
445
459
|
return /* @__PURE__ */ d(
|
|
446
460
|
ee,
|
|
447
461
|
{
|
|
@@ -454,7 +468,7 @@ const Tt = s.forwardRef(
|
|
|
454
468
|
e
|
|
455
469
|
),
|
|
456
470
|
disabled: !v,
|
|
457
|
-
onClick:
|
|
471
|
+
onClick: y,
|
|
458
472
|
...n,
|
|
459
473
|
children: [
|
|
460
474
|
/* @__PURE__ */ o(ze, { className: "h-4 w-4" }),
|
|
@@ -470,7 +484,7 @@ const St = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
|
470
484
|
{
|
|
471
485
|
ref: a,
|
|
472
486
|
className: r(
|
|
473
|
-
"peer h-4 w-4 shrink-0 rounded
|
|
487
|
+
"peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background transition-all duration-200 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
474
488
|
e
|
|
475
489
|
),
|
|
476
490
|
...t,
|
|
@@ -497,7 +511,7 @@ const ue = s.forwardRef(({ className: e, children: t, ...a }, n) => /* @__PURE__
|
|
|
497
511
|
{
|
|
498
512
|
ref: n,
|
|
499
513
|
className: r(
|
|
500
|
-
"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-
|
|
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-xl duration-300 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-xl",
|
|
501
515
|
e
|
|
502
516
|
),
|
|
503
517
|
...a,
|
|
@@ -693,14 +707,14 @@ const Kt = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(m.Separ
|
|
|
693
707
|
Kt.displayName = m.Separator.displayName;
|
|
694
708
|
const Xt = ({ className: e, ...t }) => /* @__PURE__ */ o("span", { className: r("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
|
|
695
709
|
Xt.displayName = "ContextMenuShortcut";
|
|
696
|
-
const Wt = ({ shouldScaleBackground: e = !0, ...t }) => /* @__PURE__ */ o(
|
|
710
|
+
const Wt = ({ shouldScaleBackground: e = !0, ...t }) => /* @__PURE__ */ o(x.Root, { shouldScaleBackground: e, ...t });
|
|
697
711
|
Wt.displayName = "Drawer";
|
|
698
|
-
const rr =
|
|
699
|
-
ge.displayName =
|
|
712
|
+
const rr = x.Trigger, Qt = x.Portal, sr = x.Close, ge = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(x.Overlay, { ref: a, className: r("fixed inset-0 z-50 bg-black/80", e), ...t }));
|
|
713
|
+
ge.displayName = x.Overlay.displayName;
|
|
700
714
|
const Yt = s.forwardRef(({ className: e, children: t, ...a }, n) => /* @__PURE__ */ d(Qt, { children: [
|
|
701
715
|
/* @__PURE__ */ o(ge, {}),
|
|
702
716
|
/* @__PURE__ */ d(
|
|
703
|
-
|
|
717
|
+
x.Content,
|
|
704
718
|
{
|
|
705
719
|
ref: n,
|
|
706
720
|
className: r(
|
|
@@ -721,16 +735,16 @@ Jt.displayName = "DrawerHeader";
|
|
|
721
735
|
const Zt = ({ className: e, ...t }) => /* @__PURE__ */ o("div", { className: r("mt-auto flex flex-col gap-2 p-4", e), ...t });
|
|
722
736
|
Zt.displayName = "DrawerFooter";
|
|
723
737
|
const ea = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
724
|
-
|
|
738
|
+
x.Title,
|
|
725
739
|
{
|
|
726
740
|
ref: a,
|
|
727
741
|
className: r("text-lg font-semibold leading-none tracking-tight", e),
|
|
728
742
|
...t
|
|
729
743
|
}
|
|
730
744
|
));
|
|
731
|
-
ea.displayName =
|
|
732
|
-
const ta = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
733
|
-
ta.displayName =
|
|
745
|
+
ea.displayName = x.Title.displayName;
|
|
746
|
+
const ta = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(x.Description, { ref: a, className: r("text-sm text-muted-foreground", e), ...t }));
|
|
747
|
+
ta.displayName = x.Description.displayName;
|
|
734
748
|
const nr = f.Root, ir = f.Trigger, dr = f.Group, lr = f.Portal, cr = f.Sub, mr = f.RadioGroup, aa = s.forwardRef(({ className: e, inset: t, children: a, ...n }, i) => /* @__PURE__ */ d(
|
|
735
749
|
f.SubTrigger,
|
|
736
750
|
{
|
|
@@ -863,7 +877,7 @@ const ua = s.forwardRef(
|
|
|
863
877
|
);
|
|
864
878
|
ua.displayName = "InputOTPGroup";
|
|
865
879
|
const pa = s.forwardRef(({ index: e, className: t, ...a }, n) => {
|
|
866
|
-
const i = s.useContext(He), { char: g, hasFakeCaret:
|
|
880
|
+
const i = s.useContext(He), { char: g, hasFakeCaret: y, isActive: v } = i.slots[e];
|
|
867
881
|
return /* @__PURE__ */ d(
|
|
868
882
|
"div",
|
|
869
883
|
{
|
|
@@ -876,7 +890,7 @@ const pa = s.forwardRef(({ index: e, className: t, ...a }, n) => {
|
|
|
876
890
|
...a,
|
|
877
891
|
children: [
|
|
878
892
|
g,
|
|
879
|
-
|
|
893
|
+
y && /* @__PURE__ */ o("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ o("div", { className: "animate-caret-blink h-4 w-px bg-foreground duration-1000" }) })
|
|
880
894
|
]
|
|
881
895
|
}
|
|
882
896
|
);
|
|
@@ -892,7 +906,7 @@ const ba = s.forwardRef(
|
|
|
892
906
|
{
|
|
893
907
|
type: t,
|
|
894
908
|
className: r(
|
|
895
|
-
"flex h-
|
|
909
|
+
"flex h-11 w-full rounded-lg border border-input bg-background px-3 py-2 text-sm ring-offset-background transition-all duration-200 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground hover:border-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
896
910
|
e
|
|
897
911
|
),
|
|
898
912
|
ref: n,
|
|
@@ -901,9 +915,9 @@ const ba = s.forwardRef(
|
|
|
901
915
|
)
|
|
902
916
|
);
|
|
903
917
|
ba.displayName = "Input";
|
|
904
|
-
const Na = T("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),
|
|
905
|
-
|
|
906
|
-
const pr = l.Menu, gr = l.Group, br = l.Portal, Nr = l.Sub,
|
|
918
|
+
const Na = T("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"), ha = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(ie.Root, { ref: a, className: r(Na(), e), ...t }));
|
|
919
|
+
ha.displayName = ie.Root.displayName;
|
|
920
|
+
const pr = l.Menu, gr = l.Group, br = l.Portal, Nr = l.Sub, hr = l.RadioGroup, ya = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
907
921
|
l.Root,
|
|
908
922
|
{
|
|
909
923
|
ref: a,
|
|
@@ -911,8 +925,8 @@ const pr = l.Menu, gr = l.Group, br = l.Portal, Nr = l.Sub, yr = l.RadioGroup, x
|
|
|
911
925
|
...t
|
|
912
926
|
}
|
|
913
927
|
));
|
|
914
|
-
|
|
915
|
-
const
|
|
928
|
+
ya.displayName = l.Root.displayName;
|
|
929
|
+
const xa = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
916
930
|
l.Trigger,
|
|
917
931
|
{
|
|
918
932
|
ref: a,
|
|
@@ -923,7 +937,7 @@ const ha = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
|
923
937
|
...t
|
|
924
938
|
}
|
|
925
939
|
));
|
|
926
|
-
|
|
940
|
+
xa.displayName = l.Trigger.displayName;
|
|
927
941
|
const wa = s.forwardRef(({ className: e, inset: t, children: a, ...n }, i) => /* @__PURE__ */ d(
|
|
928
942
|
l.SubTrigger,
|
|
929
943
|
{
|
|
@@ -1028,7 +1042,7 @@ Ia.displayName = l.Separator.displayName;
|
|
|
1028
1042
|
const Pa = ({ className: e, ...t }) => /* @__PURE__ */ o("span", { className: r("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
|
|
1029
1043
|
Pa.displayname = "MenubarShortcut";
|
|
1030
1044
|
const Da = s.forwardRef(({ className: e, children: t, ...a }, n) => /* @__PURE__ */ d(
|
|
1031
|
-
|
|
1045
|
+
h.Root,
|
|
1032
1046
|
{
|
|
1033
1047
|
ref: n,
|
|
1034
1048
|
className: r("relative z-10 flex max-w-max flex-1 items-center justify-center", e),
|
|
@@ -1039,20 +1053,20 @@ const Da = s.forwardRef(({ className: e, children: t, ...a }, n) => /* @__PURE__
|
|
|
1039
1053
|
]
|
|
1040
1054
|
}
|
|
1041
1055
|
));
|
|
1042
|
-
Da.displayName =
|
|
1056
|
+
Da.displayName = h.Root.displayName;
|
|
1043
1057
|
const Ma = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
1044
|
-
|
|
1058
|
+
h.List,
|
|
1045
1059
|
{
|
|
1046
1060
|
ref: a,
|
|
1047
1061
|
className: r("group flex flex-1 list-none items-center justify-center space-x-1", e),
|
|
1048
1062
|
...t
|
|
1049
1063
|
}
|
|
1050
1064
|
));
|
|
1051
|
-
Ma.displayName =
|
|
1052
|
-
const
|
|
1065
|
+
Ma.displayName = h.List.displayName;
|
|
1066
|
+
const yr = h.Item, za = T(
|
|
1053
1067
|
"group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"
|
|
1054
1068
|
), _a = s.forwardRef(({ className: e, children: t, ...a }, n) => /* @__PURE__ */ d(
|
|
1055
|
-
|
|
1069
|
+
h.Trigger,
|
|
1056
1070
|
{
|
|
1057
1071
|
ref: n,
|
|
1058
1072
|
className: r(za(), "group", e),
|
|
@@ -1070,9 +1084,9 @@ const xr = y.Item, za = T(
|
|
|
1070
1084
|
]
|
|
1071
1085
|
}
|
|
1072
1086
|
));
|
|
1073
|
-
_a.displayName =
|
|
1087
|
+
_a.displayName = h.Trigger.displayName;
|
|
1074
1088
|
const Aa = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
1075
|
-
|
|
1089
|
+
h.Content,
|
|
1076
1090
|
{
|
|
1077
1091
|
ref: a,
|
|
1078
1092
|
className: r(
|
|
@@ -1082,9 +1096,9 @@ const Aa = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
|
1082
1096
|
...t
|
|
1083
1097
|
}
|
|
1084
1098
|
));
|
|
1085
|
-
Aa.displayName =
|
|
1086
|
-
const
|
|
1087
|
-
|
|
1099
|
+
Aa.displayName = h.Content.displayName;
|
|
1100
|
+
const xr = h.Link, be = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o("div", { className: r("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ o(
|
|
1101
|
+
h.Viewport,
|
|
1088
1102
|
{
|
|
1089
1103
|
className: r(
|
|
1090
1104
|
"origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",
|
|
@@ -1094,9 +1108,9 @@ const hr = y.Link, be = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__
|
|
|
1094
1108
|
...t
|
|
1095
1109
|
}
|
|
1096
1110
|
) }));
|
|
1097
|
-
be.displayName =
|
|
1111
|
+
be.displayName = h.Viewport.displayName;
|
|
1098
1112
|
const Oa = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
1099
|
-
|
|
1113
|
+
h.Indicator,
|
|
1100
1114
|
{
|
|
1101
1115
|
ref: a,
|
|
1102
1116
|
className: r(
|
|
@@ -1107,7 +1121,7 @@ const Oa = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
|
1107
1121
|
children: /* @__PURE__ */ o("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
|
|
1108
1122
|
}
|
|
1109
1123
|
));
|
|
1110
|
-
Oa.displayName =
|
|
1124
|
+
Oa.displayName = h.Indicator.displayName;
|
|
1111
1125
|
const La = ({ className: e, ...t }) => /* @__PURE__ */ o(
|
|
1112
1126
|
"nav",
|
|
1113
1127
|
{
|
|
@@ -1161,7 +1175,7 @@ const wr = _.Root, vr = _.Trigger, Va = s.forwardRef(({ className: e, align: t =
|
|
|
1161
1175
|
align: t,
|
|
1162
1176
|
sideOffset: a,
|
|
1163
1177
|
className: r(
|
|
1164
|
-
"z-50 w-72 rounded-
|
|
1178
|
+
"z-50 w-72 rounded-xl border bg-popover p-4 text-popover-foreground shadow-xl outline-none duration-300 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",
|
|
1165
1179
|
e
|
|
1166
1180
|
),
|
|
1167
1181
|
...n
|
|
@@ -1246,7 +1260,7 @@ const Sr = u.Root, kr = u.Group, Ir = u.Value, Ka = s.forwardRef(({ className: e
|
|
|
1246
1260
|
{
|
|
1247
1261
|
ref: n,
|
|
1248
1262
|
className: r(
|
|
1249
|
-
"flex h-
|
|
1263
|
+
"flex h-11 w-full items-center justify-between rounded-lg border border-input bg-background px-3 py-2 text-sm ring-offset-background transition-all duration-200 placeholder:text-muted-foreground hover:border-accent focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
|
|
1250
1264
|
e
|
|
1251
1265
|
),
|
|
1252
1266
|
...a,
|
|
@@ -1257,7 +1271,7 @@ const Sr = u.Root, kr = u.Group, Ir = u.Value, Ka = s.forwardRef(({ className: e
|
|
|
1257
1271
|
}
|
|
1258
1272
|
));
|
|
1259
1273
|
Ka.displayName = u.Trigger.displayName;
|
|
1260
|
-
const
|
|
1274
|
+
const he = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
1261
1275
|
u.ScrollUpButton,
|
|
1262
1276
|
{
|
|
1263
1277
|
ref: a,
|
|
@@ -1266,8 +1280,8 @@ const ye = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
|
1266
1280
|
children: /* @__PURE__ */ o(Le, { className: "h-4 w-4" })
|
|
1267
1281
|
}
|
|
1268
1282
|
));
|
|
1269
|
-
|
|
1270
|
-
const
|
|
1283
|
+
he.displayName = u.ScrollUpButton.displayName;
|
|
1284
|
+
const ye = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
1271
1285
|
u.ScrollDownButton,
|
|
1272
1286
|
{
|
|
1273
1287
|
ref: a,
|
|
@@ -1276,20 +1290,20 @@ const xe = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
|
1276
1290
|
children: /* @__PURE__ */ o(E, { className: "h-4 w-4" })
|
|
1277
1291
|
}
|
|
1278
1292
|
));
|
|
1279
|
-
|
|
1293
|
+
ye.displayName = u.ScrollDownButton.displayName;
|
|
1280
1294
|
const Xa = s.forwardRef(({ className: e, children: t, position: a = "popper", ...n }, i) => /* @__PURE__ */ o(u.Portal, { children: /* @__PURE__ */ d(
|
|
1281
1295
|
u.Content,
|
|
1282
1296
|
{
|
|
1283
1297
|
ref: i,
|
|
1284
1298
|
className: r(
|
|
1285
|
-
"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-
|
|
1299
|
+
"relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-xl border bg-popover text-popover-foreground shadow-xl 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",
|
|
1286
1300
|
a === "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",
|
|
1287
1301
|
e
|
|
1288
1302
|
),
|
|
1289
1303
|
position: a,
|
|
1290
1304
|
...n,
|
|
1291
1305
|
children: [
|
|
1292
|
-
/* @__PURE__ */ o(
|
|
1306
|
+
/* @__PURE__ */ o(he, {}),
|
|
1293
1307
|
/* @__PURE__ */ o(
|
|
1294
1308
|
u.Viewport,
|
|
1295
1309
|
{
|
|
@@ -1300,7 +1314,7 @@ const Xa = s.forwardRef(({ className: e, children: t, position: a = "popper", ..
|
|
|
1300
1314
|
children: t
|
|
1301
1315
|
}
|
|
1302
1316
|
),
|
|
1303
|
-
/* @__PURE__ */ o(
|
|
1317
|
+
/* @__PURE__ */ o(ye, {})
|
|
1304
1318
|
]
|
|
1305
1319
|
}
|
|
1306
1320
|
) }));
|
|
@@ -1336,7 +1350,7 @@ const Ja = s.forwardRef(({ className: e, orientation: t = "horizontal", decorati
|
|
|
1336
1350
|
}
|
|
1337
1351
|
));
|
|
1338
1352
|
Ja.displayName = de.Root.displayName;
|
|
1339
|
-
const Pr = c.Root, Dr = c.Trigger, Mr = c.Close, Za = c.Portal,
|
|
1353
|
+
const Pr = c.Root, Dr = c.Trigger, Mr = c.Close, Za = c.Portal, xe = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
1340
1354
|
c.Overlay,
|
|
1341
1355
|
{
|
|
1342
1356
|
className: r(
|
|
@@ -1347,7 +1361,7 @@ const Pr = c.Root, Dr = c.Trigger, Mr = c.Close, Za = c.Portal, he = s.forwardRe
|
|
|
1347
1361
|
ref: a
|
|
1348
1362
|
}
|
|
1349
1363
|
));
|
|
1350
|
-
|
|
1364
|
+
xe.displayName = c.Overlay.displayName;
|
|
1351
1365
|
const eo = T(
|
|
1352
1366
|
"fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
|
|
1353
1367
|
{
|
|
@@ -1365,7 +1379,7 @@ const eo = T(
|
|
|
1365
1379
|
}
|
|
1366
1380
|
), to = s.forwardRef(
|
|
1367
1381
|
({ side: e = "right", className: t, children: a, ...n }, i) => /* @__PURE__ */ d(Za, { children: [
|
|
1368
|
-
/* @__PURE__ */ o(
|
|
1382
|
+
/* @__PURE__ */ o(xe, {}),
|
|
1369
1383
|
/* @__PURE__ */ d(c.Content, { ref: i, className: r(eo({ side: e }), t), ...n, children: [
|
|
1370
1384
|
a,
|
|
1371
1385
|
/* @__PURE__ */ d(c.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-secondary hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none", children: [
|
|
@@ -1404,7 +1418,7 @@ const io = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
|
1404
1418
|
Y.Root,
|
|
1405
1419
|
{
|
|
1406
1420
|
className: r(
|
|
1407
|
-
"peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-
|
|
1421
|
+
"peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-all duration-300 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input 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",
|
|
1408
1422
|
e
|
|
1409
1423
|
),
|
|
1410
1424
|
...t,
|
|
@@ -1413,7 +1427,7 @@ const io = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
|
1413
1427
|
Y.Thumb,
|
|
1414
1428
|
{
|
|
1415
1429
|
className: r(
|
|
1416
|
-
"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"
|
|
1430
|
+
"pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform duration-300 data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0"
|
|
1417
1431
|
)
|
|
1418
1432
|
}
|
|
1419
1433
|
)
|
|
@@ -1474,26 +1488,26 @@ const _r = S.Root, No = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__
|
|
|
1474
1488
|
{
|
|
1475
1489
|
ref: a,
|
|
1476
1490
|
className: r(
|
|
1477
|
-
"inline-flex h-
|
|
1491
|
+
"inline-flex h-11 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",
|
|
1478
1492
|
e
|
|
1479
1493
|
),
|
|
1480
1494
|
...t
|
|
1481
1495
|
}
|
|
1482
1496
|
));
|
|
1483
1497
|
No.displayName = S.List.displayName;
|
|
1484
|
-
const
|
|
1498
|
+
const ho = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
1485
1499
|
S.Trigger,
|
|
1486
1500
|
{
|
|
1487
1501
|
ref: a,
|
|
1488
1502
|
className: r(
|
|
1489
|
-
"inline-flex items-center justify-center whitespace-nowrap rounded-
|
|
1503
|
+
"inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1.5 text-sm font-medium ring-offset-background transition-all duration-200 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
|
|
1490
1504
|
e
|
|
1491
1505
|
),
|
|
1492
1506
|
...t
|
|
1493
1507
|
}
|
|
1494
1508
|
));
|
|
1495
|
-
|
|
1496
|
-
const
|
|
1509
|
+
ho.displayName = S.Trigger.displayName;
|
|
1510
|
+
const yo = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
1497
1511
|
S.Content,
|
|
1498
1512
|
{
|
|
1499
1513
|
ref: a,
|
|
@@ -1504,19 +1518,19 @@ const xo = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
|
1504
1518
|
...t
|
|
1505
1519
|
}
|
|
1506
1520
|
));
|
|
1507
|
-
|
|
1508
|
-
const
|
|
1521
|
+
yo.displayName = S.Content.displayName;
|
|
1522
|
+
const xo = s.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o(
|
|
1509
1523
|
"textarea",
|
|
1510
1524
|
{
|
|
1511
1525
|
className: r(
|
|
1512
|
-
"flex min-h-[80px] w-full rounded-
|
|
1526
|
+
"flex min-h-[80px] w-full rounded-lg border border-input bg-background px-3 py-2 text-sm ring-offset-background transition-all duration-200 placeholder:text-muted-foreground hover:border-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
1513
1527
|
e
|
|
1514
1528
|
),
|
|
1515
1529
|
ref: a,
|
|
1516
1530
|
...t
|
|
1517
1531
|
}
|
|
1518
1532
|
));
|
|
1519
|
-
|
|
1533
|
+
xo.displayName = "Textarea";
|
|
1520
1534
|
const we = T(
|
|
1521
1535
|
"inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",
|
|
1522
1536
|
{
|
|
@@ -1544,15 +1558,15 @@ const ve = s.createContext({
|
|
|
1544
1558
|
}), vo = s.forwardRef(({ className: e, variant: t, size: a, children: n, ...i }, g) => /* @__PURE__ */ o(V.Root, { ref: g, className: r("flex items-center justify-center gap-1", e), ...i, children: /* @__PURE__ */ o(ve.Provider, { value: { variant: t, size: a }, children: n }) }));
|
|
1545
1559
|
vo.displayName = V.Root.displayName;
|
|
1546
1560
|
const Ro = s.forwardRef(({ className: e, children: t, variant: a, size: n, ...i }, g) => {
|
|
1547
|
-
const
|
|
1561
|
+
const y = s.useContext(ve);
|
|
1548
1562
|
return /* @__PURE__ */ o(
|
|
1549
1563
|
V.Item,
|
|
1550
1564
|
{
|
|
1551
1565
|
ref: g,
|
|
1552
1566
|
className: r(
|
|
1553
1567
|
we({
|
|
1554
|
-
variant:
|
|
1555
|
-
size:
|
|
1568
|
+
variant: y.variant || a,
|
|
1569
|
+
size: y.size || n
|
|
1556
1570
|
}),
|
|
1557
1571
|
e
|
|
1558
1572
|
),
|
|
@@ -1708,9 +1722,9 @@ export {
|
|
|
1708
1722
|
ee as Button,
|
|
1709
1723
|
pt as Calendar,
|
|
1710
1724
|
gt as Card,
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1725
|
+
yt as CardContent,
|
|
1726
|
+
ht as CardDescription,
|
|
1727
|
+
xt as CardFooter,
|
|
1714
1728
|
bt as CardHeader,
|
|
1715
1729
|
Nt as CardTitle,
|
|
1716
1730
|
wt as Carousel,
|
|
@@ -1789,8 +1803,8 @@ export {
|
|
|
1789
1803
|
ua as InputOTPGroup,
|
|
1790
1804
|
ga as InputOTPSeparator,
|
|
1791
1805
|
pa as InputOTPSlot,
|
|
1792
|
-
|
|
1793
|
-
|
|
1806
|
+
ha as Label,
|
|
1807
|
+
ya as Menubar,
|
|
1794
1808
|
Ta as MenubarCheckboxItem,
|
|
1795
1809
|
Ra as MenubarContent,
|
|
1796
1810
|
gr as MenubarGroup,
|
|
@@ -1798,19 +1812,19 @@ export {
|
|
|
1798
1812
|
ka as MenubarLabel,
|
|
1799
1813
|
pr as MenubarMenu,
|
|
1800
1814
|
br as MenubarPortal,
|
|
1801
|
-
|
|
1815
|
+
hr as MenubarRadioGroup,
|
|
1802
1816
|
Sa as MenubarRadioItem,
|
|
1803
1817
|
Ia as MenubarSeparator,
|
|
1804
1818
|
Pa as MenubarShortcut,
|
|
1805
1819
|
Nr as MenubarSub,
|
|
1806
1820
|
va as MenubarSubContent,
|
|
1807
1821
|
wa as MenubarSubTrigger,
|
|
1808
|
-
|
|
1822
|
+
xa as MenubarTrigger,
|
|
1809
1823
|
Da as NavigationMenu,
|
|
1810
1824
|
Aa as NavigationMenuContent,
|
|
1811
1825
|
Oa as NavigationMenuIndicator,
|
|
1812
|
-
|
|
1813
|
-
|
|
1826
|
+
yr as NavigationMenuItem,
|
|
1827
|
+
xr as NavigationMenuLink,
|
|
1814
1828
|
Ma as NavigationMenuList,
|
|
1815
1829
|
_a as NavigationMenuTrigger,
|
|
1816
1830
|
be as NavigationMenuViewport,
|
|
@@ -1837,8 +1851,8 @@ export {
|
|
|
1837
1851
|
kr as SelectGroup,
|
|
1838
1852
|
Qa as SelectItem,
|
|
1839
1853
|
Wa as SelectLabel,
|
|
1840
|
-
|
|
1841
|
-
|
|
1854
|
+
ye as SelectScrollDownButton,
|
|
1855
|
+
he as SelectScrollUpButton,
|
|
1842
1856
|
Ya as SelectSeparator,
|
|
1843
1857
|
Ka as SelectTrigger,
|
|
1844
1858
|
Ir as SelectValue,
|
|
@@ -1849,7 +1863,7 @@ export {
|
|
|
1849
1863
|
so as SheetDescription,
|
|
1850
1864
|
oo as SheetFooter,
|
|
1851
1865
|
ao as SheetHeader,
|
|
1852
|
-
|
|
1866
|
+
xe as SheetOverlay,
|
|
1853
1867
|
Za as SheetPortal,
|
|
1854
1868
|
ro as SheetTitle,
|
|
1855
1869
|
Dr as SheetTrigger,
|
|
@@ -1865,10 +1879,10 @@ export {
|
|
|
1865
1879
|
co as TableHeader,
|
|
1866
1880
|
uo as TableRow,
|
|
1867
1881
|
_r as Tabs,
|
|
1868
|
-
|
|
1882
|
+
yo as TabsContent,
|
|
1869
1883
|
No as TabsList,
|
|
1870
|
-
|
|
1871
|
-
|
|
1884
|
+
ho as TabsTrigger,
|
|
1885
|
+
xo as Textarea,
|
|
1872
1886
|
wo as Toggle,
|
|
1873
1887
|
vo as ToggleGroup,
|
|
1874
1888
|
Ro as ToggleGroupItem,
|