@gv-tech/ui-web 2.14.0 → 2.15.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/dist/{alert-dialog.cjs.js → alert-dialog.cjs} +1 -1
- package/dist/{alert-dialog.es.js → alert-dialog.mjs} +1 -1
- package/dist/calendar.cjs +1 -0
- package/dist/{calendar.es.js → calendar.mjs} +1 -1
- package/dist/carousel.cjs +1 -0
- package/dist/{carousel.es.js → carousel.mjs} +1 -1
- package/dist/chart.cjs +7 -0
- package/dist/chart.mjs +188 -0
- package/dist/command.cjs +1 -0
- package/dist/{command.es.js → command.mjs} +1 -1
- package/dist/drawer.cjs +1 -0
- package/dist/drawer.mjs +55 -0
- package/dist/form.cjs +1 -0
- package/dist/form.mjs +72 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +52 -0
- package/dist/{index.es.js → index.mjs} +66 -65
- package/dist/pagination.cjs +1 -0
- package/dist/{pagination.es.js → pagination.mjs} +1 -1
- package/dist/search.cjs +1 -0
- package/dist/{search.es.js → search.mjs} +2 -2
- package/dist/sonner.cjs +1 -0
- package/dist/sonner.mjs +26 -0
- package/dist/theme-provider.cjs +1 -0
- package/dist/theme-provider.mjs +9 -0
- package/dist/theme-toggle-B4VZTDpe.js +1 -0
- package/dist/{theme-toggle.es.js → theme-toggle-WtPW9UZi.mjs} +21 -21
- package/dist/theme-toggle.cjs +1 -0
- package/dist/theme-toggle.mjs +10 -0
- package/dist/toaster-C_S9hnXa.js +1 -0
- package/dist/{toaster-jBYXAPRk.mjs → toaster-k5DnQSsh.mjs} +1 -1
- package/dist/{toaster.cjs.js → toaster.cjs} +1 -1
- package/dist/{toaster.es.js → toaster.mjs} +2 -2
- package/package.json +10 -9
- package/src/index.ts +3 -0
- package/dist/calendar.cjs.js +0 -1
- package/dist/carousel.cjs.js +0 -1
- package/dist/chart.cjs.js +0 -16
- package/dist/chart.es.js +0 -4403
- package/dist/command.cjs.js +0 -1
- package/dist/drawer.cjs.js +0 -3
- package/dist/drawer.es.js +0 -1086
- package/dist/form.cjs.js +0 -1
- package/dist/form.es.js +0 -356
- package/dist/index-CsjrqSSN.js +0 -1
- package/dist/index-DAWHN3cH.mjs +0 -85
- package/dist/index.cjs.js +0 -1
- package/dist/pagination.cjs.js +0 -1
- package/dist/search.cjs.js +0 -1
- package/dist/sonner.cjs.js +0 -1
- package/dist/sonner.es.js +0 -765
- package/dist/theme-provider.cjs.js +0 -1
- package/dist/theme-provider.es.js +0 -9
- package/dist/theme-toggle.cjs.js +0 -1
- package/dist/toaster-CIpfms4W.js +0 -1
- /package/dist/{accordion.cjs.js → accordion.cjs} +0 -0
- /package/dist/{accordion.es.js → accordion.mjs} +0 -0
- /package/dist/{alert.cjs.js → alert.cjs} +0 -0
- /package/dist/{alert.es.js → alert.mjs} +0 -0
- /package/dist/{aspect-ratio.cjs.js → aspect-ratio.cjs} +0 -0
- /package/dist/{aspect-ratio.es.js → aspect-ratio.mjs} +0 -0
- /package/dist/{avatar.cjs.js → avatar.cjs} +0 -0
- /package/dist/{avatar.es.js → avatar.mjs} +0 -0
- /package/dist/{badge.cjs.js → badge.cjs} +0 -0
- /package/dist/{badge.es.js → badge.mjs} +0 -0
- /package/dist/{breadcrumb.cjs.js → breadcrumb.cjs} +0 -0
- /package/dist/{breadcrumb.es.js → breadcrumb.mjs} +0 -0
- /package/dist/{button.cjs.js → button.cjs} +0 -0
- /package/dist/{button.es.js → button.mjs} +0 -0
- /package/dist/{card.cjs.js → card.cjs} +0 -0
- /package/dist/{card.es.js → card.mjs} +0 -0
- /package/dist/{checkbox.cjs.js → checkbox.cjs} +0 -0
- /package/dist/{checkbox.es.js → checkbox.mjs} +0 -0
- /package/dist/{collapsible.cjs.js → collapsible.cjs} +0 -0
- /package/dist/{collapsible.es.js → collapsible.mjs} +0 -0
- /package/dist/{context-menu.cjs.js → context-menu.cjs} +0 -0
- /package/dist/{context-menu.es.js → context-menu.mjs} +0 -0
- /package/dist/{dialog.cjs.js → dialog.cjs} +0 -0
- /package/dist/{dialog.es.js → dialog.mjs} +0 -0
- /package/dist/{dropdown-menu.cjs.js → dropdown-menu.cjs} +0 -0
- /package/dist/{dropdown-menu.es.js → dropdown-menu.mjs} +0 -0
- /package/dist/{hover-card.cjs.js → hover-card.cjs} +0 -0
- /package/dist/{hover-card.es.js → hover-card.mjs} +0 -0
- /package/dist/{input.cjs.js → input.cjs} +0 -0
- /package/dist/{input.es.js → input.mjs} +0 -0
- /package/dist/{label.cjs.js → label.cjs} +0 -0
- /package/dist/{label.es.js → label.mjs} +0 -0
- /package/dist/{menubar.cjs.js → menubar.cjs} +0 -0
- /package/dist/{menubar.es.js → menubar.mjs} +0 -0
- /package/dist/{navigation-menu.cjs.js → navigation-menu.cjs} +0 -0
- /package/dist/{navigation-menu.es.js → navigation-menu.mjs} +0 -0
- /package/dist/{popover.cjs.js → popover.cjs} +0 -0
- /package/dist/{popover.es.js → popover.mjs} +0 -0
- /package/dist/{progress.cjs.js → progress.cjs} +0 -0
- /package/dist/{progress.es.js → progress.mjs} +0 -0
- /package/dist/{radio-group.cjs.js → radio-group.cjs} +0 -0
- /package/dist/{radio-group.es.js → radio-group.mjs} +0 -0
- /package/dist/{resizable.cjs.js → resizable.cjs} +0 -0
- /package/dist/{resizable.es.js → resizable.mjs} +0 -0
- /package/dist/{scroll-area.cjs.js → scroll-area.cjs} +0 -0
- /package/dist/{scroll-area.es.js → scroll-area.mjs} +0 -0
- /package/dist/{select.cjs.js → select.cjs} +0 -0
- /package/dist/{select.es.js → select.mjs} +0 -0
- /package/dist/{separator.cjs.js → separator.cjs} +0 -0
- /package/dist/{separator.es.js → separator.mjs} +0 -0
- /package/dist/{sheet.cjs.js → sheet.cjs} +0 -0
- /package/dist/{sheet.es.js → sheet.mjs} +0 -0
- /package/dist/{skeleton.cjs.js → skeleton.cjs} +0 -0
- /package/dist/{skeleton.es.js → skeleton.mjs} +0 -0
- /package/dist/{slider.cjs.js → slider.cjs} +0 -0
- /package/dist/{slider.es.js → slider.mjs} +0 -0
- /package/dist/{switch.cjs.js → switch.cjs} +0 -0
- /package/dist/{switch.es.js → switch.mjs} +0 -0
- /package/dist/{table.cjs.js → table.cjs} +0 -0
- /package/dist/{table.es.js → table.mjs} +0 -0
- /package/dist/{tabs.cjs.js → tabs.cjs} +0 -0
- /package/dist/{tabs.es.js → tabs.mjs} +0 -0
- /package/dist/{text.cjs.js → text.cjs} +0 -0
- /package/dist/{text.es.js → text.mjs} +0 -0
- /package/dist/{textarea.cjs.js → textarea.cjs} +0 -0
- /package/dist/{textarea.es.js → textarea.mjs} +0 -0
- /package/dist/{toast.cjs.js → toast.cjs} +0 -0
- /package/dist/{toast.es.js → toast.mjs} +0 -0
- /package/dist/{toggle-group.cjs.js → toggle-group.cjs} +0 -0
- /package/dist/{toggle-group.es.js → toggle-group.mjs} +0 -0
- /package/dist/{toggle.cjs.js → toggle.cjs} +0 -0
- /package/dist/{toggle.es.js → toggle.mjs} +0 -0
- /package/dist/{tooltip.cjs.js → tooltip.cjs} +0 -0
- /package/dist/{tooltip.es.js → tooltip.mjs} +0 -0
package/dist/drawer.mjs
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as t } from "./jsx-runtime-tc70JA_2.mjs";
|
|
3
|
+
import * as l from "react";
|
|
4
|
+
import { Drawer as a } from "vaul";
|
|
5
|
+
import { c as o } from "./utils-B6yFEsav.mjs";
|
|
6
|
+
const n = ({ shouldScaleBackground: e = !0, ...r }) => /* @__PURE__ */ t.jsx(a.Root, { shouldScaleBackground: e, ...r });
|
|
7
|
+
n.displayName = "Drawer";
|
|
8
|
+
const u = a.Trigger, d = a.Portal, y = a.Close, i = l.forwardRef(({ className: e, ...r }, s) => /* @__PURE__ */ t.jsx(a.Overlay, { ref: s, className: o("fixed inset-0 z-50 bg-black/80", e), ...r }));
|
|
9
|
+
i.displayName = a.Overlay.displayName;
|
|
10
|
+
const c = l.forwardRef(({ className: e, children: r, ...s }, m) => /* @__PURE__ */ t.jsxs(d, { children: [
|
|
11
|
+
/* @__PURE__ */ t.jsx(i, {}),
|
|
12
|
+
/* @__PURE__ */ t.jsxs(
|
|
13
|
+
a.Content,
|
|
14
|
+
{
|
|
15
|
+
ref: m,
|
|
16
|
+
className: o(
|
|
17
|
+
"bg-background fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border",
|
|
18
|
+
e
|
|
19
|
+
),
|
|
20
|
+
...s,
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ t.jsx("div", { className: "bg-muted mx-auto mt-4 h-2 w-[100px] rounded-full" }),
|
|
23
|
+
r
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
)
|
|
27
|
+
] }));
|
|
28
|
+
c.displayName = "DrawerContent";
|
|
29
|
+
const x = ({ className: e, ...r }) => /* @__PURE__ */ t.jsx("div", { className: o("grid gap-1.5 p-4 text-center sm:text-left", e), ...r });
|
|
30
|
+
x.displayName = "DrawerHeader";
|
|
31
|
+
const p = ({ className: e, ...r }) => /* @__PURE__ */ t.jsx("div", { className: o("mt-auto flex flex-col gap-2 p-4", e), ...r });
|
|
32
|
+
p.displayName = "DrawerFooter";
|
|
33
|
+
const f = l.forwardRef(({ className: e, ...r }, s) => /* @__PURE__ */ t.jsx(
|
|
34
|
+
a.Title,
|
|
35
|
+
{
|
|
36
|
+
ref: s,
|
|
37
|
+
className: o("text-lg leading-none font-semibold tracking-tight", e),
|
|
38
|
+
...r
|
|
39
|
+
}
|
|
40
|
+
));
|
|
41
|
+
f.displayName = a.Title.displayName;
|
|
42
|
+
const w = l.forwardRef(({ className: e, ...r }, s) => /* @__PURE__ */ t.jsx(a.Description, { ref: s, className: o("text-muted-foreground text-sm", e), ...r }));
|
|
43
|
+
w.displayName = a.Description.displayName;
|
|
44
|
+
export {
|
|
45
|
+
n as Drawer,
|
|
46
|
+
y as DrawerClose,
|
|
47
|
+
c as DrawerContent,
|
|
48
|
+
w as DrawerDescription,
|
|
49
|
+
p as DrawerFooter,
|
|
50
|
+
x as DrawerHeader,
|
|
51
|
+
i as DrawerOverlay,
|
|
52
|
+
d as DrawerPortal,
|
|
53
|
+
f as DrawerTitle,
|
|
54
|
+
u as DrawerTrigger
|
|
55
|
+
};
|
package/dist/form.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./jsx-runtime-nZSsnGb7.js"),g=require("./index-Cj5hzyBi.js"),I=require("react"),d=require("react-hook-form"),R=require("./label.cjs"),c=require("./utils-IjLH3w2e.js");function y(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const s=y(I),C=d.FormProvider,u=s.createContext(null),w=({...e})=>m.jsxRuntimeExports.jsx(u.Provider,{value:{name:e.name},children:m.jsxRuntimeExports.jsx(d.Controller,{...e})}),a=()=>{const e=s.useContext(u),r=s.useContext(f),{getFieldState:t,formState:o}=d.useFormContext();if(!e)throw new Error("useFormField should be used within <FormField>");if(!r)throw new Error("useFormField should be used within <FormItem>");const n=t(e.name,o),{id:i}=r;return{id:i,name:e.name,formItemId:`${i}-form-item`,formDescriptionId:`${i}-form-item-description`,formMessageId:`${i}-form-item-message`,...n}},f=s.createContext(null),x=s.forwardRef(({className:e,...r},t)=>{const o=s.useId();return m.jsxRuntimeExports.jsx(f.Provider,{value:{id:o},children:m.jsxRuntimeExports.jsx("div",{ref:t,className:c.cn("space-y-2",e),...r})})});x.displayName="FormItem";const F=s.forwardRef(({className:e,...r},t)=>{const{error:o,formItemId:n}=a();return m.jsxRuntimeExports.jsx(R.Label,{ref:t,className:c.cn(o&&"text-destructive",e),htmlFor:n,...r})});F.displayName="FormLabel";const p=s.forwardRef(({...e},r)=>{const{error:t,formItemId:o,formDescriptionId:n,formMessageId:i}=a();return m.jsxRuntimeExports.jsx(g.Slot,{ref:r,id:o,"aria-describedby":t?`${n} ${i}`:`${n}`,"aria-invalid":!!t,...e})});p.displayName="FormControl";const j=s.forwardRef(({className:e,...r},t)=>{const{formDescriptionId:o}=a();return m.jsxRuntimeExports.jsx("p",{ref:t,id:o,className:c.cn("text-muted-foreground text-[0.8rem]",e),...r})});j.displayName="FormDescription";const b=s.forwardRef(({className:e,children:r,...t},o)=>{const{error:n,formMessageId:i}=a(),l=n?String(n?.message??""):r;return l?m.jsxRuntimeExports.jsx("p",{ref:o,id:i,className:c.cn("text-destructive text-[0.8rem] font-medium",e),...t,children:l}):null});b.displayName="FormMessage";exports.Form=C;exports.FormControl=p;exports.FormDescription=j;exports.FormField=w;exports.FormItem=x;exports.FormLabel=F;exports.FormMessage=b;exports.useFormField=a;
|
package/dist/form.mjs
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as i } from "./jsx-runtime-tc70JA_2.mjs";
|
|
3
|
+
import { S as u } from "./index-Le8p9oP4.mjs";
|
|
4
|
+
import * as s from "react";
|
|
5
|
+
import { useFormContext as F, FormProvider as x, Controller as p } from "react-hook-form";
|
|
6
|
+
import { Label as I } from "./label.mjs";
|
|
7
|
+
import { c as a } from "./utils-B6yFEsav.mjs";
|
|
8
|
+
const S = x, l = s.createContext(null), $ = ({
|
|
9
|
+
...e
|
|
10
|
+
}) => /* @__PURE__ */ i.jsx(l.Provider, { value: { name: e.name }, children: /* @__PURE__ */ i.jsx(p, { ...e }) }), d = () => {
|
|
11
|
+
const e = s.useContext(l), r = s.useContext(f), { getFieldState: o, formState: t } = F();
|
|
12
|
+
if (!e)
|
|
13
|
+
throw new Error("useFormField should be used within <FormField>");
|
|
14
|
+
if (!r)
|
|
15
|
+
throw new Error("useFormField should be used within <FormItem>");
|
|
16
|
+
const m = o(e.name, t), { id: n } = r;
|
|
17
|
+
return {
|
|
18
|
+
id: n,
|
|
19
|
+
name: e.name,
|
|
20
|
+
formItemId: `${n}-form-item`,
|
|
21
|
+
formDescriptionId: `${n}-form-item-description`,
|
|
22
|
+
formMessageId: `${n}-form-item-message`,
|
|
23
|
+
...m
|
|
24
|
+
};
|
|
25
|
+
}, f = s.createContext(null), C = s.forwardRef(
|
|
26
|
+
({ className: e, ...r }, o) => {
|
|
27
|
+
const t = s.useId();
|
|
28
|
+
return /* @__PURE__ */ i.jsx(f.Provider, { value: { id: t }, children: /* @__PURE__ */ i.jsx("div", { ref: o, className: a("space-y-2", e), ...r }) });
|
|
29
|
+
}
|
|
30
|
+
);
|
|
31
|
+
C.displayName = "FormItem";
|
|
32
|
+
const w = s.forwardRef(({ className: e, ...r }, o) => {
|
|
33
|
+
const { error: t, formItemId: m } = d();
|
|
34
|
+
return /* @__PURE__ */ i.jsx(I, { ref: o, className: a(t && "text-destructive", e), htmlFor: m, ...r });
|
|
35
|
+
});
|
|
36
|
+
w.displayName = "FormLabel";
|
|
37
|
+
const g = s.forwardRef(
|
|
38
|
+
({ ...e }, r) => {
|
|
39
|
+
const { error: o, formItemId: t, formDescriptionId: m, formMessageId: n } = d();
|
|
40
|
+
return /* @__PURE__ */ i.jsx(
|
|
41
|
+
u,
|
|
42
|
+
{
|
|
43
|
+
ref: r,
|
|
44
|
+
id: t,
|
|
45
|
+
"aria-describedby": o ? `${m} ${n}` : `${m}`,
|
|
46
|
+
"aria-invalid": !!o,
|
|
47
|
+
...e
|
|
48
|
+
}
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
g.displayName = "FormControl";
|
|
53
|
+
const h = s.forwardRef(({ className: e, ...r }, o) => {
|
|
54
|
+
const { formDescriptionId: t } = d();
|
|
55
|
+
return /* @__PURE__ */ i.jsx("p", { ref: o, id: t, className: a("text-muted-foreground text-[0.8rem]", e), ...r });
|
|
56
|
+
});
|
|
57
|
+
h.displayName = "FormDescription";
|
|
58
|
+
const j = s.forwardRef(({ className: e, children: r, ...o }, t) => {
|
|
59
|
+
const { error: m, formMessageId: n } = d(), c = m ? String(m?.message ?? "") : r;
|
|
60
|
+
return c ? /* @__PURE__ */ i.jsx("p", { ref: t, id: n, className: a("text-destructive text-[0.8rem] font-medium", e), ...o, children: c }) : null;
|
|
61
|
+
});
|
|
62
|
+
j.displayName = "FormMessage";
|
|
63
|
+
export {
|
|
64
|
+
S as Form,
|
|
65
|
+
g as FormControl,
|
|
66
|
+
h as FormDescription,
|
|
67
|
+
$ as FormField,
|
|
68
|
+
C as FormItem,
|
|
69
|
+
w as FormLabel,
|
|
70
|
+
j as FormMessage,
|
|
71
|
+
d as useFormField
|
|
72
|
+
};
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const N=require("./utils-IjLH3w2e.js"),M=require("./accordion.cjs"),w=require("./alert.cjs"),t=require("./alert-dialog.cjs"),V=require("./aspect-ratio.cjs"),v=require("./avatar.cjs"),I=require("./badge.cjs"),C=require("./breadcrumb.cjs"),F=require("./button.cjs"),L=require("./calendar.cjs"),b=require("./card.cjs"),m=require("./carousel.cjs"),T=require("./chart.cjs"),O=require("./checkbox.cjs"),P=require("./collapsible.cjs"),u=require("./command.cjs"),r=require("./context-menu.cjs"),a=require("./dialog.cjs"),n=require("./drawer.cjs"),o=require("./dropdown-menu.cjs"),s=require("./form.cjs"),A=require("./hover-card.cjs"),z=require("./input.cjs"),E=require("./label.cjs"),e=require("./menubar.cjs"),g=require("./navigation-menu.cjs"),d=require("./pagination.cjs"),D=require("./popover.cjs"),f=require("./progress.cjs"),B=require("./radio-group.cjs"),q=require("./resizable.cjs"),G=require("./scroll-area.cjs"),R=require("./search.cjs"),i=require("./select.cjs"),j=require("./separator.cjs"),l=require("./sheet.cjs"),U=require("./skeleton.cjs"),_=require("./slider.cjs"),J=require("./sonner.cjs"),K=require("./switch.cjs"),c=require("./table.cjs"),S=require("./tabs.cjs"),H=require("./text.cjs"),Q=require("./textarea.cjs"),W=require("./toggle.cjs"),y=require("./toggle-group.cjs"),h=require("./tooltip.cjs"),p=require("./toast.cjs"),X=require("./theme-provider.cjs"),k=require("./theme-toggle-B4VZTDpe.js"),x=require("./toaster-C_S9hnXa.js"),Y=require("@gv-tech/ui-core");exports.cn=N.cn;exports.Accordion=M.Accordion;exports.AccordionContent=M.AccordionContent;exports.AccordionItem=M.AccordionItem;exports.AccordionTrigger=M.AccordionTrigger;exports.Alert=w.Alert;exports.AlertDescription=w.AlertDescription;exports.AlertTitle=w.AlertTitle;exports.AlertDialog=t.AlertDialog;exports.AlertDialogAction=t.AlertDialogAction;exports.AlertDialogCancel=t.AlertDialogCancel;exports.AlertDialogContent=t.AlertDialogContent;exports.AlertDialogDescription=t.AlertDialogDescription;exports.AlertDialogFooter=t.AlertDialogFooter;exports.AlertDialogHeader=t.AlertDialogHeader;exports.AlertDialogOverlay=t.AlertDialogOverlay;exports.AlertDialogPortal=t.AlertDialogPortal;exports.AlertDialogTitle=t.AlertDialogTitle;exports.AlertDialogTrigger=t.AlertDialogTrigger;exports.AspectRatio=V.AspectRatio;exports.Avatar=v.Avatar;exports.AvatarFallback=v.AvatarFallback;exports.AvatarImage=v.AvatarImage;exports.Badge=I.Badge;exports.badgeVariants=I.badgeVariants;exports.Breadcrumb=C.Breadcrumb;exports.BreadcrumbEllipsis=C.BreadcrumbEllipsis;exports.BreadcrumbItem=C.BreadcrumbItem;exports.BreadcrumbLink=C.BreadcrumbLink;exports.BreadcrumbList=C.BreadcrumbList;exports.BreadcrumbPage=C.BreadcrumbPage;exports.BreadcrumbSeparator=C.BreadcrumbSeparator;exports.Button=F.Button;exports.buttonVariants=F.buttonVariants;exports.Calendar=L.Calendar;exports.CalendarDayButton=L.CalendarDayButton;exports.Card=b.Card;exports.CardContent=b.CardContent;exports.CardDescription=b.CardDescription;exports.CardFooter=b.CardFooter;exports.CardHeader=b.CardHeader;exports.CardTitle=b.CardTitle;exports.Carousel=m.Carousel;exports.CarouselContent=m.CarouselContent;exports.CarouselItem=m.CarouselItem;exports.CarouselNext=m.CarouselNext;exports.CarouselPrevious=m.CarouselPrevious;exports.ChartContainer=T.ChartContainer;exports.ChartLegend=T.ChartLegend;exports.ChartLegendContent=T.ChartLegendContent;exports.ChartStyle=T.ChartStyle;exports.ChartTooltip=T.ChartTooltip;exports.ChartTooltipContent=T.ChartTooltipContent;exports.Checkbox=O.Checkbox;exports.Collapsible=P.Collapsible;exports.CollapsibleContent=P.CollapsibleContent;exports.CollapsibleTrigger=P.CollapsibleTrigger;exports.Command=u.Command;exports.CommandDialog=u.CommandDialog;exports.CommandEmpty=u.CommandEmpty;exports.CommandGroup=u.CommandGroup;exports.CommandInput=u.CommandInput;exports.CommandItem=u.CommandItem;exports.CommandList=u.CommandList;exports.CommandSeparator=u.CommandSeparator;exports.CommandShortcut=u.CommandShortcut;exports.ContextMenu=r.ContextMenu;exports.ContextMenuCheckboxItem=r.ContextMenuCheckboxItem;exports.ContextMenuContent=r.ContextMenuContent;exports.ContextMenuGroup=r.ContextMenuGroup;exports.ContextMenuItem=r.ContextMenuItem;exports.ContextMenuLabel=r.ContextMenuLabel;exports.ContextMenuPortal=r.ContextMenuPortal;exports.ContextMenuRadioGroup=r.ContextMenuRadioGroup;exports.ContextMenuRadioItem=r.ContextMenuRadioItem;exports.ContextMenuSeparator=r.ContextMenuSeparator;exports.ContextMenuShortcut=r.ContextMenuShortcut;exports.ContextMenuSub=r.ContextMenuSub;exports.ContextMenuSubContent=r.ContextMenuSubContent;exports.ContextMenuSubTrigger=r.ContextMenuSubTrigger;exports.ContextMenuTrigger=r.ContextMenuTrigger;exports.Dialog=a.Dialog;exports.DialogClose=a.DialogClose;exports.DialogContent=a.DialogContent;exports.DialogDescription=a.DialogDescription;exports.DialogFooter=a.DialogFooter;exports.DialogHeader=a.DialogHeader;exports.DialogOverlay=a.DialogOverlay;exports.DialogPortal=a.DialogPortal;exports.DialogTitle=a.DialogTitle;exports.DialogTrigger=a.DialogTrigger;exports.Drawer=n.Drawer;exports.DrawerClose=n.DrawerClose;exports.DrawerContent=n.DrawerContent;exports.DrawerDescription=n.DrawerDescription;exports.DrawerFooter=n.DrawerFooter;exports.DrawerHeader=n.DrawerHeader;exports.DrawerOverlay=n.DrawerOverlay;exports.DrawerPortal=n.DrawerPortal;exports.DrawerTitle=n.DrawerTitle;exports.DrawerTrigger=n.DrawerTrigger;exports.DropdownMenu=o.DropdownMenu;exports.DropdownMenuCheckboxItem=o.DropdownMenuCheckboxItem;exports.DropdownMenuContent=o.DropdownMenuContent;exports.DropdownMenuGroup=o.DropdownMenuGroup;exports.DropdownMenuItem=o.DropdownMenuItem;exports.DropdownMenuLabel=o.DropdownMenuLabel;exports.DropdownMenuPortal=o.DropdownMenuPortal;exports.DropdownMenuRadioGroup=o.DropdownMenuRadioGroup;exports.DropdownMenuRadioItem=o.DropdownMenuRadioItem;exports.DropdownMenuSeparator=o.DropdownMenuSeparator;exports.DropdownMenuShortcut=o.DropdownMenuShortcut;exports.DropdownMenuSub=o.DropdownMenuSub;exports.DropdownMenuSubContent=o.DropdownMenuSubContent;exports.DropdownMenuSubTrigger=o.DropdownMenuSubTrigger;exports.DropdownMenuTrigger=o.DropdownMenuTrigger;exports.Form=s.Form;exports.FormControl=s.FormControl;exports.FormDescription=s.FormDescription;exports.FormField=s.FormField;exports.FormItem=s.FormItem;exports.FormLabel=s.FormLabel;exports.FormMessage=s.FormMessage;exports.useFormField=s.useFormField;exports.HoverCard=A.HoverCard;exports.HoverCardContent=A.HoverCardContent;exports.HoverCardTrigger=A.HoverCardTrigger;exports.Input=z.Input;exports.Label=E.Label;exports.Menubar=e.Menubar;exports.MenubarCheckboxItem=e.MenubarCheckboxItem;exports.MenubarContent=e.MenubarContent;exports.MenubarGroup=e.MenubarGroup;exports.MenubarItem=e.MenubarItem;exports.MenubarLabel=e.MenubarLabel;exports.MenubarMenu=e.MenubarMenu;exports.MenubarPortal=e.MenubarPortal;exports.MenubarRadioGroup=e.MenubarRadioGroup;exports.MenubarRadioItem=e.MenubarRadioItem;exports.MenubarSeparator=e.MenubarSeparator;exports.MenubarShortcut=e.MenubarShortcut;exports.MenubarSub=e.MenubarSub;exports.MenubarSubContent=e.MenubarSubContent;exports.MenubarSubTrigger=e.MenubarSubTrigger;exports.MenubarTrigger=e.MenubarTrigger;exports.NavigationMenu=g.NavigationMenu;exports.NavigationMenuContent=g.NavigationMenuContent;exports.NavigationMenuIndicator=g.NavigationMenuIndicator;exports.NavigationMenuItem=g.NavigationMenuItem;exports.NavigationMenuLink=g.NavigationMenuLink;exports.NavigationMenuList=g.NavigationMenuList;exports.NavigationMenuTrigger=g.NavigationMenuTrigger;exports.NavigationMenuViewport=g.NavigationMenuViewport;exports.navigationMenuTriggerStyle=g.navigationMenuTriggerStyle;exports.Pagination=d.Pagination;exports.PaginationContent=d.PaginationContent;exports.PaginationEllipsis=d.PaginationEllipsis;exports.PaginationItem=d.PaginationItem;exports.PaginationLink=d.PaginationLink;exports.PaginationNext=d.PaginationNext;exports.PaginationPrevious=d.PaginationPrevious;exports.Popover=D.Popover;exports.PopoverAnchor=D.PopoverAnchor;exports.PopoverContent=D.PopoverContent;exports.PopoverTrigger=D.PopoverTrigger;exports.Progress=f.Progress;exports.RadioGroup=B.RadioGroup;exports.RadioGroupItem=B.RadioGroupItem;exports.ResizableHandle=q.ResizableHandle;exports.ResizablePanel=q.ResizablePanel;exports.ResizablePanelGroup=q.ResizablePanelGroup;exports.ScrollArea=G.ScrollArea;exports.ScrollBar=G.ScrollBar;exports.Search=R.Search;exports.SearchTrigger=R.SearchTrigger;exports.Select=i.Select;exports.SelectContent=i.SelectContent;exports.SelectGroup=i.SelectGroup;exports.SelectItem=i.SelectItem;exports.SelectLabel=i.SelectLabel;exports.SelectScrollDownButton=i.SelectScrollDownButton;exports.SelectScrollUpButton=i.SelectScrollUpButton;exports.SelectSeparator=i.SelectSeparator;exports.SelectTrigger=i.SelectTrigger;exports.SelectValue=i.SelectValue;exports.Separator=j.Separator;exports.Sheet=l.Sheet;exports.SheetClose=l.SheetClose;exports.SheetContent=l.SheetContent;exports.SheetDescription=l.SheetDescription;exports.SheetFooter=l.SheetFooter;exports.SheetHeader=l.SheetHeader;exports.SheetOverlay=l.SheetOverlay;exports.SheetPortal=l.SheetPortal;exports.SheetTitle=l.SheetTitle;exports.SheetTrigger=l.SheetTrigger;exports.Skeleton=U.Skeleton;exports.Slider=_.Slider;exports.SonnerToaster=J.Toaster;exports.Switch=K.Switch;exports.Table=c.Table;exports.TableBody=c.TableBody;exports.TableCaption=c.TableCaption;exports.TableCell=c.TableCell;exports.TableFooter=c.TableFooter;exports.TableHead=c.TableHead;exports.TableHeader=c.TableHeader;exports.TableRow=c.TableRow;exports.Tabs=S.Tabs;exports.TabsContent=S.TabsContent;exports.TabsList=S.TabsList;exports.TabsTrigger=S.TabsTrigger;exports.Text=H.Text;exports.textVariants=H.textVariants;exports.Textarea=Q.Textarea;exports.Toggle=W.Toggle;exports.ToggleGroup=y.ToggleGroup;exports.ToggleGroupItem=y.ToggleGroupItem;exports.Tooltip=h.Tooltip;exports.TooltipContent=h.TooltipContent;exports.TooltipProvider=h.TooltipProvider;exports.TooltipTrigger=h.TooltipTrigger;exports.Toast=p.Toast;exports.ToastAction=p.ToastAction;exports.ToastClose=p.ToastClose;exports.ToastDescription=p.ToastDescription;exports.ToastProvider=p.ToastProvider;exports.ToastTitle=p.ToastTitle;exports.ToastViewport=p.ToastViewport;exports.ThemeProvider=X.ThemeProvider;exports.ThemeToggle=k.ThemeToggle;exports.useTheme=k.useTheme;exports.Toaster=x.Toaster;exports.toast=x.toast;exports.useToast=x.useToast;Object.defineProperty(exports,"toggleVariants",{enumerable:!0,get:()=>Y.toggleVariants});
|
package/dist/index.d.ts
CHANGED
|
@@ -1279,6 +1279,58 @@ export declare const useFormField: () => {
|
|
|
1279
1279
|
formMessageId: string;
|
|
1280
1280
|
};
|
|
1281
1281
|
|
|
1282
|
+
export declare function useTheme(): {
|
|
1283
|
+
tokens: {
|
|
1284
|
+
readonly background: "hsl(0 0% 96%)";
|
|
1285
|
+
readonly foreground: "hsl(222 47% 11%)";
|
|
1286
|
+
readonly card: "hsl(0 0% 100%)";
|
|
1287
|
+
readonly cardForeground: "hsl(222 47% 11%)";
|
|
1288
|
+
readonly popover: "hsl(0 0% 100%)";
|
|
1289
|
+
readonly popoverForeground: "hsl(222 47% 11%)";
|
|
1290
|
+
readonly primary: "hsl(225 73% 57%)";
|
|
1291
|
+
readonly primaryForeground: "hsl(0 0% 100%)";
|
|
1292
|
+
readonly secondary: "hsl(93 28% 54%)";
|
|
1293
|
+
readonly secondaryForeground: "hsl(0 0% 100%)";
|
|
1294
|
+
readonly muted: "hsl(0 0% 92%)";
|
|
1295
|
+
readonly mutedForeground: "hsl(215 16% 47%)";
|
|
1296
|
+
readonly accent: "hsl(0 0% 88%)";
|
|
1297
|
+
readonly accentForeground: "hsl(222 47% 11%)";
|
|
1298
|
+
readonly destructive: "hsl(0 84.2% 60.2%)";
|
|
1299
|
+
readonly destructiveForeground: "hsl(0 0% 100%)";
|
|
1300
|
+
readonly border: "hsl(0 0% 89%)";
|
|
1301
|
+
readonly input: "hsl(0 0% 89%)";
|
|
1302
|
+
readonly ring: "hsl(222 47% 11%)";
|
|
1303
|
+
readonly radius: "0.5rem";
|
|
1304
|
+
} | {
|
|
1305
|
+
readonly background: "hsl(0 0% 9%)";
|
|
1306
|
+
readonly foreground: "hsl(0 0% 100%)";
|
|
1307
|
+
readonly card: "hsl(0 0% 14%)";
|
|
1308
|
+
readonly cardForeground: "hsl(0 0% 100%)";
|
|
1309
|
+
readonly popover: "hsl(0 0% 11%)";
|
|
1310
|
+
readonly popoverForeground: "hsl(0 0% 100%)";
|
|
1311
|
+
readonly primary: "hsl(227 96% 71%)";
|
|
1312
|
+
readonly primaryForeground: "hsl(0 0% 9%)";
|
|
1313
|
+
readonly secondary: "hsl(96 44% 61%)";
|
|
1314
|
+
readonly secondaryForeground: "hsl(0 0% 9%)";
|
|
1315
|
+
readonly muted: "hsl(0 0% 6%)";
|
|
1316
|
+
readonly mutedForeground: "hsl(0 0% 70%)";
|
|
1317
|
+
readonly accent: "hsl(0 0% 15%)";
|
|
1318
|
+
readonly accentForeground: "hsl(0 0% 100%)";
|
|
1319
|
+
readonly destructive: "hsl(0 62.8% 30.6%)";
|
|
1320
|
+
readonly destructiveForeground: "hsl(0 0% 100%)";
|
|
1321
|
+
readonly border: "hsl(0 0% 18%)";
|
|
1322
|
+
readonly input: "hsl(0 0% 18%)";
|
|
1323
|
+
readonly ring: "hsl(0 0% 90%)";
|
|
1324
|
+
readonly radius: "0.5rem";
|
|
1325
|
+
};
|
|
1326
|
+
themes: string[];
|
|
1327
|
+
forcedTheme?: string | undefined;
|
|
1328
|
+
setTheme: React.Dispatch<React.SetStateAction<string>>;
|
|
1329
|
+
theme?: string | undefined;
|
|
1330
|
+
resolvedTheme?: string | undefined;
|
|
1331
|
+
systemTheme?: "dark" | "light" | undefined;
|
|
1332
|
+
};
|
|
1333
|
+
|
|
1282
1334
|
export declare function useToast(): {
|
|
1283
1335
|
toast: typeof toast;
|
|
1284
1336
|
dismiss: (toastId?: string) => void;
|
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { c as r } from "./utils-B6yFEsav.mjs";
|
|
3
|
-
import { Accordion as a, AccordionContent as n, AccordionItem as i, AccordionTrigger as l } from "./accordion.
|
|
4
|
-
import { Alert as
|
|
5
|
-
import { AlertDialog as x, AlertDialogAction as d, AlertDialogCancel as s, AlertDialogContent as T, AlertDialogDescription as b, AlertDialogFooter as c, AlertDialogHeader as D, AlertDialogOverlay as M, AlertDialogPortal as f, AlertDialogTitle as S, AlertDialogTrigger as h } from "./alert-dialog.
|
|
6
|
-
import { AspectRatio as v } from "./aspect-ratio.
|
|
7
|
-
import { Avatar as A, AvatarFallback as I, AvatarImage as F } from "./avatar.
|
|
8
|
-
import { Badge as B, badgeVariants as G } from "./badge.
|
|
9
|
-
import { Breadcrumb as H, BreadcrumbEllipsis as N, BreadcrumbItem as k, BreadcrumbLink as y, BreadcrumbList as V, BreadcrumbPage as O, BreadcrumbSeparator as z } from "./breadcrumb.
|
|
10
|
-
import { Button as U, buttonVariants as j } from "./button.
|
|
11
|
-
import { Calendar as J, CalendarDayButton as K } from "./calendar.
|
|
12
|
-
import { Card as W, CardContent as X, CardDescription as Y, CardFooter as Z, CardHeader as _, CardTitle as $ } from "./card.
|
|
13
|
-
import { Carousel as oe, CarouselContent as re, CarouselItem as te, CarouselNext as ae, CarouselPrevious as ne } from "./carousel.
|
|
14
|
-
import { ChartContainer as le, ChartLegend as pe, ChartLegendContent as
|
|
15
|
-
import { Checkbox as de } from "./checkbox.
|
|
16
|
-
import { Collapsible as Te, CollapsibleContent as be, CollapsibleTrigger as ce } from "./collapsible.
|
|
17
|
-
import { Command as Me, CommandDialog as fe, CommandEmpty as Se, CommandGroup as he, CommandInput as we, CommandItem as ve, CommandList as Pe, CommandSeparator as Ae, CommandShortcut as Ie } from "./command.
|
|
18
|
-
import { ContextMenu as Le, ContextMenuCheckboxItem as Be, ContextMenuContent as Ge, ContextMenuGroup as Re, ContextMenuItem as He, ContextMenuLabel as Ne, ContextMenuPortal as ke, ContextMenuRadioGroup as ye, ContextMenuRadioItem as Ve, ContextMenuSeparator as Oe, ContextMenuShortcut as ze, ContextMenuSub as Ee, ContextMenuSubContent as Ue, ContextMenuSubTrigger as je, ContextMenuTrigger as qe } from "./context-menu.
|
|
19
|
-
import { Dialog as Ke, DialogClose as Qe, DialogContent as We, DialogDescription as Xe, DialogFooter as Ye, DialogHeader as Ze, DialogOverlay as _e, DialogPortal as $e, DialogTitle as eo, DialogTrigger as oo } from "./dialog.
|
|
20
|
-
import { Drawer as to, DrawerClose as ao, DrawerContent as no, DrawerDescription as io, DrawerFooter as lo, DrawerHeader as po, DrawerOverlay as
|
|
21
|
-
import { DropdownMenu as so, DropdownMenuCheckboxItem as To, DropdownMenuContent as bo, DropdownMenuGroup as co, DropdownMenuItem as Do, DropdownMenuLabel as Mo, DropdownMenuPortal as fo, DropdownMenuRadioGroup as So, DropdownMenuRadioItem as ho, DropdownMenuSeparator as wo, DropdownMenuShortcut as vo, DropdownMenuSub as Po, DropdownMenuSubContent as Ao, DropdownMenuSubTrigger as Io, DropdownMenuTrigger as Fo } from "./dropdown-menu.
|
|
22
|
-
import { Form as Bo, FormControl as Go, FormDescription as Ro, FormField as Ho, FormItem as No, FormLabel as ko, FormMessage as yo, useFormField as Vo } from "./form.
|
|
23
|
-
import { HoverCard as zo, HoverCardContent as Eo, HoverCardTrigger as Uo } from "./hover-card.
|
|
24
|
-
import { Input as qo } from "./input.
|
|
25
|
-
import { Label as Ko } from "./label.
|
|
26
|
-
import { Menubar as Wo, MenubarCheckboxItem as Xo, MenubarContent as Yo, MenubarGroup as Zo, MenubarItem as _o, MenubarLabel as $o, MenubarMenu as er, MenubarPortal as or, MenubarRadioGroup as rr, MenubarRadioItem as tr, MenubarSeparator as ar, MenubarShortcut as nr, MenubarSub as ir, MenubarSubContent as lr, MenubarSubTrigger as pr, MenubarTrigger as
|
|
27
|
-
import { NavigationMenu as gr, NavigationMenuContent as Cr, NavigationMenuIndicator as xr, NavigationMenuItem as dr, NavigationMenuLink as sr, NavigationMenuList as Tr, NavigationMenuTrigger as br, NavigationMenuViewport as cr, navigationMenuTriggerStyle as Dr } from "./navigation-menu.
|
|
28
|
-
import { Pagination as fr, PaginationContent as Sr, PaginationEllipsis as hr, PaginationItem as wr, PaginationLink as vr, PaginationNext as Pr, PaginationPrevious as Ar } from "./pagination.
|
|
29
|
-
import { Popover as Fr, PopoverAnchor as Lr, PopoverContent as Br, PopoverTrigger as Gr } from "./popover.
|
|
30
|
-
import { Progress as Hr } from "./progress.
|
|
31
|
-
import { RadioGroup as kr, RadioGroupItem as yr } from "./radio-group.
|
|
32
|
-
import { ResizableHandle as Or, ResizablePanel as zr, ResizablePanelGroup as Er } from "./resizable.
|
|
33
|
-
import { ScrollArea as jr, ScrollBar as qr } from "./scroll-area.
|
|
34
|
-
import { Search as Kr, SearchTrigger as Qr } from "./search.
|
|
35
|
-
import { Select as Xr, SelectContent as Yr, SelectGroup as Zr, SelectItem as _r, SelectLabel as $r, SelectScrollDownButton as et, SelectScrollUpButton as ot, SelectSeparator as rt, SelectTrigger as tt, SelectValue as at } from "./select.
|
|
36
|
-
import { Separator as it } from "./separator.
|
|
37
|
-
import { Sheet as pt, SheetClose as
|
|
38
|
-
import { Skeleton as Dt } from "./skeleton.
|
|
39
|
-
import { Slider as ft } from "./slider.
|
|
40
|
-
import { Toaster as ht } from "./sonner.
|
|
41
|
-
import { Switch as vt } from "./switch.
|
|
42
|
-
import { Table as At, TableBody as It, TableCaption as Ft, TableCell as Lt, TableFooter as Bt, TableHead as Gt, TableHeader as Rt, TableRow as Ht } from "./table.
|
|
43
|
-
import { Tabs as kt, TabsContent as yt, TabsList as Vt, TabsTrigger as Ot } from "./tabs.
|
|
44
|
-
import { Text as Et, textVariants as Ut } from "./text.
|
|
45
|
-
import { Textarea as qt } from "./textarea.
|
|
46
|
-
import { Toggle as Kt } from "./toggle.
|
|
47
|
-
import { ToggleGroup as Wt, ToggleGroupItem as Xt } from "./toggle-group.
|
|
48
|
-
import { Tooltip as Zt, TooltipContent as _t, TooltipProvider as $t, TooltipTrigger as ea } from "./tooltip.
|
|
49
|
-
import { Toast as ra, ToastAction as ta, ToastClose as aa, ToastDescription as na, ToastProvider as ia, ToastTitle as la, ToastViewport as pa } from "./toast.
|
|
50
|
-
import { ThemeProvider as
|
|
51
|
-
import {
|
|
52
|
-
import { T as
|
|
53
|
-
import { toggleVariants as
|
|
3
|
+
import { Accordion as a, AccordionContent as n, AccordionItem as i, AccordionTrigger as l } from "./accordion.mjs";
|
|
4
|
+
import { Alert as u, AlertDescription as m, AlertTitle as g } from "./alert.mjs";
|
|
5
|
+
import { AlertDialog as x, AlertDialogAction as d, AlertDialogCancel as s, AlertDialogContent as T, AlertDialogDescription as b, AlertDialogFooter as c, AlertDialogHeader as D, AlertDialogOverlay as M, AlertDialogPortal as f, AlertDialogTitle as S, AlertDialogTrigger as h } from "./alert-dialog.mjs";
|
|
6
|
+
import { AspectRatio as v } from "./aspect-ratio.mjs";
|
|
7
|
+
import { Avatar as A, AvatarFallback as I, AvatarImage as F } from "./avatar.mjs";
|
|
8
|
+
import { Badge as B, badgeVariants as G } from "./badge.mjs";
|
|
9
|
+
import { Breadcrumb as H, BreadcrumbEllipsis as N, BreadcrumbItem as k, BreadcrumbLink as y, BreadcrumbList as V, BreadcrumbPage as O, BreadcrumbSeparator as z } from "./breadcrumb.mjs";
|
|
10
|
+
import { Button as U, buttonVariants as j } from "./button.mjs";
|
|
11
|
+
import { Calendar as J, CalendarDayButton as K } from "./calendar.mjs";
|
|
12
|
+
import { Card as W, CardContent as X, CardDescription as Y, CardFooter as Z, CardHeader as _, CardTitle as $ } from "./card.mjs";
|
|
13
|
+
import { Carousel as oe, CarouselContent as re, CarouselItem as te, CarouselNext as ae, CarouselPrevious as ne } from "./carousel.mjs";
|
|
14
|
+
import { ChartContainer as le, ChartLegend as pe, ChartLegendContent as ue, ChartStyle as me, ChartTooltip as ge, ChartTooltipContent as Ce } from "./chart.mjs";
|
|
15
|
+
import { Checkbox as de } from "./checkbox.mjs";
|
|
16
|
+
import { Collapsible as Te, CollapsibleContent as be, CollapsibleTrigger as ce } from "./collapsible.mjs";
|
|
17
|
+
import { Command as Me, CommandDialog as fe, CommandEmpty as Se, CommandGroup as he, CommandInput as we, CommandItem as ve, CommandList as Pe, CommandSeparator as Ae, CommandShortcut as Ie } from "./command.mjs";
|
|
18
|
+
import { ContextMenu as Le, ContextMenuCheckboxItem as Be, ContextMenuContent as Ge, ContextMenuGroup as Re, ContextMenuItem as He, ContextMenuLabel as Ne, ContextMenuPortal as ke, ContextMenuRadioGroup as ye, ContextMenuRadioItem as Ve, ContextMenuSeparator as Oe, ContextMenuShortcut as ze, ContextMenuSub as Ee, ContextMenuSubContent as Ue, ContextMenuSubTrigger as je, ContextMenuTrigger as qe } from "./context-menu.mjs";
|
|
19
|
+
import { Dialog as Ke, DialogClose as Qe, DialogContent as We, DialogDescription as Xe, DialogFooter as Ye, DialogHeader as Ze, DialogOverlay as _e, DialogPortal as $e, DialogTitle as eo, DialogTrigger as oo } from "./dialog.mjs";
|
|
20
|
+
import { Drawer as to, DrawerClose as ao, DrawerContent as no, DrawerDescription as io, DrawerFooter as lo, DrawerHeader as po, DrawerOverlay as uo, DrawerPortal as mo, DrawerTitle as go, DrawerTrigger as Co } from "./drawer.mjs";
|
|
21
|
+
import { DropdownMenu as so, DropdownMenuCheckboxItem as To, DropdownMenuContent as bo, DropdownMenuGroup as co, DropdownMenuItem as Do, DropdownMenuLabel as Mo, DropdownMenuPortal as fo, DropdownMenuRadioGroup as So, DropdownMenuRadioItem as ho, DropdownMenuSeparator as wo, DropdownMenuShortcut as vo, DropdownMenuSub as Po, DropdownMenuSubContent as Ao, DropdownMenuSubTrigger as Io, DropdownMenuTrigger as Fo } from "./dropdown-menu.mjs";
|
|
22
|
+
import { Form as Bo, FormControl as Go, FormDescription as Ro, FormField as Ho, FormItem as No, FormLabel as ko, FormMessage as yo, useFormField as Vo } from "./form.mjs";
|
|
23
|
+
import { HoverCard as zo, HoverCardContent as Eo, HoverCardTrigger as Uo } from "./hover-card.mjs";
|
|
24
|
+
import { Input as qo } from "./input.mjs";
|
|
25
|
+
import { Label as Ko } from "./label.mjs";
|
|
26
|
+
import { Menubar as Wo, MenubarCheckboxItem as Xo, MenubarContent as Yo, MenubarGroup as Zo, MenubarItem as _o, MenubarLabel as $o, MenubarMenu as er, MenubarPortal as or, MenubarRadioGroup as rr, MenubarRadioItem as tr, MenubarSeparator as ar, MenubarShortcut as nr, MenubarSub as ir, MenubarSubContent as lr, MenubarSubTrigger as pr, MenubarTrigger as ur } from "./menubar.mjs";
|
|
27
|
+
import { NavigationMenu as gr, NavigationMenuContent as Cr, NavigationMenuIndicator as xr, NavigationMenuItem as dr, NavigationMenuLink as sr, NavigationMenuList as Tr, NavigationMenuTrigger as br, NavigationMenuViewport as cr, navigationMenuTriggerStyle as Dr } from "./navigation-menu.mjs";
|
|
28
|
+
import { Pagination as fr, PaginationContent as Sr, PaginationEllipsis as hr, PaginationItem as wr, PaginationLink as vr, PaginationNext as Pr, PaginationPrevious as Ar } from "./pagination.mjs";
|
|
29
|
+
import { Popover as Fr, PopoverAnchor as Lr, PopoverContent as Br, PopoverTrigger as Gr } from "./popover.mjs";
|
|
30
|
+
import { Progress as Hr } from "./progress.mjs";
|
|
31
|
+
import { RadioGroup as kr, RadioGroupItem as yr } from "./radio-group.mjs";
|
|
32
|
+
import { ResizableHandle as Or, ResizablePanel as zr, ResizablePanelGroup as Er } from "./resizable.mjs";
|
|
33
|
+
import { ScrollArea as jr, ScrollBar as qr } from "./scroll-area.mjs";
|
|
34
|
+
import { Search as Kr, SearchTrigger as Qr } from "./search.mjs";
|
|
35
|
+
import { Select as Xr, SelectContent as Yr, SelectGroup as Zr, SelectItem as _r, SelectLabel as $r, SelectScrollDownButton as et, SelectScrollUpButton as ot, SelectSeparator as rt, SelectTrigger as tt, SelectValue as at } from "./select.mjs";
|
|
36
|
+
import { Separator as it } from "./separator.mjs";
|
|
37
|
+
import { Sheet as pt, SheetClose as ut, SheetContent as mt, SheetDescription as gt, SheetFooter as Ct, SheetHeader as xt, SheetOverlay as dt, SheetPortal as st, SheetTitle as Tt, SheetTrigger as bt } from "./sheet.mjs";
|
|
38
|
+
import { Skeleton as Dt } from "./skeleton.mjs";
|
|
39
|
+
import { Slider as ft } from "./slider.mjs";
|
|
40
|
+
import { Toaster as ht } from "./sonner.mjs";
|
|
41
|
+
import { Switch as vt } from "./switch.mjs";
|
|
42
|
+
import { Table as At, TableBody as It, TableCaption as Ft, TableCell as Lt, TableFooter as Bt, TableHead as Gt, TableHeader as Rt, TableRow as Ht } from "./table.mjs";
|
|
43
|
+
import { Tabs as kt, TabsContent as yt, TabsList as Vt, TabsTrigger as Ot } from "./tabs.mjs";
|
|
44
|
+
import { Text as Et, textVariants as Ut } from "./text.mjs";
|
|
45
|
+
import { Textarea as qt } from "./textarea.mjs";
|
|
46
|
+
import { Toggle as Kt } from "./toggle.mjs";
|
|
47
|
+
import { ToggleGroup as Wt, ToggleGroupItem as Xt } from "./toggle-group.mjs";
|
|
48
|
+
import { Tooltip as Zt, TooltipContent as _t, TooltipProvider as $t, TooltipTrigger as ea } from "./tooltip.mjs";
|
|
49
|
+
import { Toast as ra, ToastAction as ta, ToastClose as aa, ToastDescription as na, ToastProvider as ia, ToastTitle as la, ToastViewport as pa } from "./toast.mjs";
|
|
50
|
+
import { ThemeProvider as ma } from "./theme-provider.mjs";
|
|
51
|
+
import { T as Ca, u as xa } from "./theme-toggle-WtPW9UZi.mjs";
|
|
52
|
+
import { T as sa, t as Ta, u as ba } from "./toaster-k5DnQSsh.mjs";
|
|
53
|
+
import { toggleVariants as Da } from "@gv-tech/ui-core";
|
|
54
54
|
export {
|
|
55
55
|
a as Accordion,
|
|
56
56
|
n as AccordionContent,
|
|
57
57
|
i as AccordionItem,
|
|
58
58
|
l as AccordionTrigger,
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
u as Alert,
|
|
60
|
+
m as AlertDescription,
|
|
61
61
|
x as AlertDialog,
|
|
62
62
|
d as AlertDialogAction,
|
|
63
63
|
s as AlertDialogCancel,
|
|
@@ -98,8 +98,8 @@ export {
|
|
|
98
98
|
ne as CarouselPrevious,
|
|
99
99
|
le as ChartContainer,
|
|
100
100
|
pe as ChartLegend,
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
ue as ChartLegendContent,
|
|
102
|
+
me as ChartStyle,
|
|
103
103
|
ge as ChartTooltip,
|
|
104
104
|
Ce as ChartTooltipContent,
|
|
105
105
|
de as Checkbox,
|
|
@@ -146,8 +146,8 @@ export {
|
|
|
146
146
|
io as DrawerDescription,
|
|
147
147
|
lo as DrawerFooter,
|
|
148
148
|
po as DrawerHeader,
|
|
149
|
-
|
|
150
|
-
|
|
149
|
+
uo as DrawerOverlay,
|
|
150
|
+
mo as DrawerPortal,
|
|
151
151
|
go as DrawerTitle,
|
|
152
152
|
Co as DrawerTrigger,
|
|
153
153
|
so as DropdownMenu,
|
|
@@ -192,7 +192,7 @@ export {
|
|
|
192
192
|
ir as MenubarSub,
|
|
193
193
|
lr as MenubarSubContent,
|
|
194
194
|
pr as MenubarSubTrigger,
|
|
195
|
-
|
|
195
|
+
ur as MenubarTrigger,
|
|
196
196
|
gr as NavigationMenu,
|
|
197
197
|
Cr as NavigationMenuContent,
|
|
198
198
|
xr as NavigationMenuIndicator,
|
|
@@ -234,8 +234,8 @@ export {
|
|
|
234
234
|
at as SelectValue,
|
|
235
235
|
it as Separator,
|
|
236
236
|
pt as Sheet,
|
|
237
|
-
|
|
238
|
-
|
|
237
|
+
ut as SheetClose,
|
|
238
|
+
mt as SheetContent,
|
|
239
239
|
gt as SheetDescription,
|
|
240
240
|
Ct as SheetFooter,
|
|
241
241
|
xt as SheetHeader,
|
|
@@ -261,7 +261,7 @@ export {
|
|
|
261
261
|
Ot as TabsTrigger,
|
|
262
262
|
Et as Text,
|
|
263
263
|
qt as Textarea,
|
|
264
|
-
|
|
264
|
+
ma as ThemeProvider,
|
|
265
265
|
Ca as ThemeToggle,
|
|
266
266
|
ra as Toast,
|
|
267
267
|
ta as ToastAction,
|
|
@@ -270,7 +270,7 @@ export {
|
|
|
270
270
|
ia as ToastProvider,
|
|
271
271
|
la as ToastTitle,
|
|
272
272
|
pa as ToastViewport,
|
|
273
|
-
|
|
273
|
+
sa as Toaster,
|
|
274
274
|
Kt as Toggle,
|
|
275
275
|
Wt as ToggleGroup,
|
|
276
276
|
Xt as ToggleGroupItem,
|
|
@@ -283,8 +283,9 @@ export {
|
|
|
283
283
|
r as cn,
|
|
284
284
|
Dr as navigationMenuTriggerStyle,
|
|
285
285
|
Ut as textVariants,
|
|
286
|
-
|
|
287
|
-
|
|
286
|
+
Ta as toast,
|
|
287
|
+
Da as toggleVariants,
|
|
288
288
|
Vo as useFormField,
|
|
289
|
-
|
|
289
|
+
xa as useTheme,
|
|
290
|
+
ba as useToast
|
|
290
291
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./jsx-runtime-nZSsnGb7.js"),r=require("lucide-react"),j=require("react"),d=require("./button.cjs"),i=require("./utils-IjLH3w2e.js");function P(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const s=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,s.get?s:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const l=P(j),c=({className:e,...t})=>n.jsxRuntimeExports.jsx("nav",{role:"navigation","aria-label":"pagination",className:i.cn("mx-auto flex w-full justify-center",e),...t});c.displayName="Pagination";const u=l.forwardRef(({className:e,...t},a)=>n.jsxRuntimeExports.jsx("ul",{ref:a,className:i.cn("flex flex-row items-center gap-1",e),...t}));u.displayName="PaginationContent";const x=l.forwardRef(({className:e,...t},a)=>n.jsxRuntimeExports.jsx("li",{ref:a,className:i.cn("",e),...t}));x.displayName="PaginationItem";const o=({className:e,isActive:t,size:a="icon",...s})=>n.jsxRuntimeExports.jsx("a",{"aria-current":t?"page":void 0,className:i.cn(d.buttonVariants({variant:t?"outline":"ghost",size:a}),e),...s});o.displayName="PaginationLink";const p=({className:e,...t})=>n.jsxRuntimeExports.jsxs(o,{"aria-label":"Go to previous page",size:"default",className:i.cn("gap-1 pl-2.5",e),...t,children:[n.jsxRuntimeExports.jsx(r.ChevronLeft,{className:"h-4 w-4"}),n.jsxRuntimeExports.jsx("span",{children:"Previous"})]});p.displayName="PaginationPrevious";const m=({className:e,...t})=>n.jsxRuntimeExports.jsxs(o,{"aria-label":"Go to next page",size:"default",className:i.cn("gap-1 pr-2.5",e),...t,children:[n.jsxRuntimeExports.jsx("span",{children:"Next"}),n.jsxRuntimeExports.jsx(r.ChevronRight,{className:"h-4 w-4"})]});m.displayName="PaginationNext";const g=({className:e,...t})=>n.jsxRuntimeExports.jsxs("span",{"aria-hidden":!0,className:i.cn("flex h-9 w-9 items-center justify-center",e),...t,children:[n.jsxRuntimeExports.jsx(r.MoreHorizontal,{className:"h-4 w-4"}),n.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"More pages"})]});g.displayName="PaginationEllipsis";exports.Pagination=c;exports.PaginationContent=u;exports.PaginationEllipsis=g;exports.PaginationItem=x;exports.PaginationLink=o;exports.PaginationNext=m;exports.PaginationPrevious=p;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { j as s } from "./jsx-runtime-tc70JA_2.mjs";
|
|
3
3
|
import { MoreHorizontal as r, ChevronRight as m, ChevronLeft as c } from "lucide-react";
|
|
4
4
|
import * as o from "react";
|
|
5
|
-
import { buttonVariants as p } from "./button.
|
|
5
|
+
import { buttonVariants as p } from "./button.mjs";
|
|
6
6
|
import { c as e } from "./utils-B6yFEsav.mjs";
|
|
7
7
|
const g = ({ className: i, ...a }) => /* @__PURE__ */ s.jsx(
|
|
8
8
|
"nav",
|
package/dist/search.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./jsx-runtime-nZSsnGb7.js"),f=require("lucide-react"),j=require("react"),g=require("./button.cjs"),h=require("./command.cjs"),m=require("./utils-IjLH3w2e.js");function y(t){const s=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const o=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(s,e,o.get?o:{enumerable:!0,get:()=>t[e]})}}return s.default=t,Object.freeze(s)}const c=y(j);function b({children:t,open:s,onOpenChange:e}){const[o,a]=c.useState(!1),u=s!==void 0,l=u?s:o,d=c.useCallback(i=>{let n;typeof i=="function"?n=i(l):n=i,u?e?.(n):a(n)},[u,l,e]);return c.useEffect(()=>{const i=n=>{n.key==="k"&&(n.metaKey||n.ctrlKey)&&(n.preventDefault(),d(x=>!x))};return document.addEventListener("keydown",i),()=>document.removeEventListener("keydown",i)},[d]),r.jsxRuntimeExports.jsx(h.CommandDialog,{open:l,onOpenChange:d,children:t})}const p=c.forwardRef(({className:t,placeholder:s="Search docs...",variant:e="default",...o},a)=>r.jsxRuntimeExports.jsxs(g.Button,{variant:"outline",className:m.cn("text-muted-foreground relative h-9 text-sm transition-all transition-colors",e==="default"?"w-full justify-start pr-12":"w-9 justify-center px-0 md:w-40 md:justify-start md:px-3 md:pr-12 lg:w-64",t),ref:a,...o,children:[r.jsxRuntimeExports.jsxs("span",{className:"inline-flex items-center gap-2",children:[r.jsxRuntimeExports.jsx(f.Search,{className:"h-4 w-4 shrink-0"}),r.jsxRuntimeExports.jsx("span",{className:m.cn("truncate",e==="compact"&&"hidden md:inline"),children:s})]}),r.jsxRuntimeExports.jsxs("kbd",{className:"bg-muted pointer-events-none absolute top-1.5 right-1.5 hidden h-6 items-center gap-1 rounded border px-1.5 font-mono text-[10px] font-medium opacity-100 select-none sm:flex",children:[r.jsxRuntimeExports.jsx("span",{className:"text-xs",children:"⌘"}),"K"]})]}));p.displayName="SearchTrigger";exports.Search=b;exports.SearchTrigger=p;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import { j as t } from "./jsx-runtime-tc70JA_2.mjs";
|
|
3
3
|
import { Search as u } from "lucide-react";
|
|
4
4
|
import * as o from "react";
|
|
5
|
-
import { Button as x } from "./button.
|
|
6
|
-
import { CommandDialog as h } from "./command.
|
|
5
|
+
import { Button as x } from "./button.mjs";
|
|
6
|
+
import { CommandDialog as h } from "./command.mjs";
|
|
7
7
|
import { c as p } from "./utils-B6yFEsav.mjs";
|
|
8
8
|
function S({ children: a, open: r, onOpenChange: s }) {
|
|
9
9
|
const [i, c] = o.useState(!1), m = r !== void 0, l = m ? r : i, d = o.useCallback(
|
package/dist/sonner.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-nZSsnGb7.js"),r=require("next-themes"),s=require("sonner"),u=({...t})=>{const{theme:o="system"}=r.useTheme();return e.jsxRuntimeExports.jsx(s.Toaster,{theme:o,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...t})};exports.Toaster=u;
|
package/dist/sonner.mjs
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as r } from "./jsx-runtime-tc70JA_2.mjs";
|
|
3
|
+
import { useTheme as e } from "next-themes";
|
|
4
|
+
import { Toaster as s } from "sonner";
|
|
5
|
+
const p = ({ ...t }) => {
|
|
6
|
+
const { theme: o = "system" } = e();
|
|
7
|
+
return /* @__PURE__ */ r.jsx(
|
|
8
|
+
s,
|
|
9
|
+
{
|
|
10
|
+
theme: o,
|
|
11
|
+
className: "toaster group",
|
|
12
|
+
toastOptions: {
|
|
13
|
+
classNames: {
|
|
14
|
+
toast: "group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",
|
|
15
|
+
description: "group-[.toast]:text-muted-foreground",
|
|
16
|
+
actionButton: "group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",
|
|
17
|
+
cancelButton: "group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
...t
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
};
|
|
24
|
+
export {
|
|
25
|
+
p as Toaster
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./jsx-runtime-nZSsnGb7.js"),s=require("next-themes");function i({children:e,...t}){return r.jsxRuntimeExports.jsx(s.ThemeProvider,{attribute:"class",defaultTheme:"system",enableSystem:!0,...t,children:e})}exports.ThemeProvider=i;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as t } from "./jsx-runtime-tc70JA_2.mjs";
|
|
3
|
+
import { ThemeProvider as m } from "next-themes";
|
|
4
|
+
function i({ children: e, ...r }) {
|
|
5
|
+
return /* @__PURE__ */ t.jsx(m, { attribute: "class", defaultTheme: "system", enableSystem: !0, ...r, children: e });
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
i as ThemeProvider
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("./jsx-runtime-nZSsnGb7.js"),s=require("lucide-react"),j=require("./button.cjs"),t=require("./dropdown-menu.cjs"),d=require("@gv-tech/design-tokens"),T=require("next-themes"),r=require("./utils-IjLH3w2e.js");function p(){const o=T.useTheme(),{resolvedTheme:i}=o,n=i==="dark"?d.theme.dark:d.theme.light;return{...o,tokens:n}}function k({variant:o="binary",onThemeChange:i,customTheme:n,className:c}){const{theme:R,setTheme:E,resolvedTheme:g}=p(),m=n??R,l=(n||g)==="dark",a=m==="system",x=h=>{i?i(h):E(h)},u=()=>e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(s.Sun,{className:r.cn("h-[1.2rem] w-[1.2rem] transition-all",!a&&!l?"scale-100 rotate-0":"scale-0 -rotate-90")}),e.jsxRuntimeExports.jsx(s.Moon,{className:r.cn("absolute h-[1.2rem] w-[1.2rem] transition-all",!a&&l?"scale-100 rotate-0":"scale-0 rotate-90")}),e.jsxRuntimeExports.jsx(s.SunMoon,{className:r.cn("absolute h-[1.2rem] w-[1.2rem] transition-all",a?"scale-100 rotate-0":"scale-0 rotate-90")}),e.jsxRuntimeExports.jsx("span",{className:"sr-only",children:"Toggle theme"})]});return o==="ternary"?e.jsxRuntimeExports.jsxs(t.DropdownMenu,{children:[e.jsxRuntimeExports.jsx(t.DropdownMenuTrigger,{asChild:!0,children:e.jsxRuntimeExports.jsx(j.Button,{variant:"ghost",size:"icon",className:r.cn("relative h-9 w-9",c),children:e.jsxRuntimeExports.jsx(u,{})})}),e.jsxRuntimeExports.jsxs(t.DropdownMenuContent,{align:"end",children:[e.jsxRuntimeExports.jsxs(t.DropdownMenuItem,{onClick:()=>x("light"),children:[e.jsxRuntimeExports.jsx(s.Sun,{className:"mr-2 h-4 w-4"}),e.jsxRuntimeExports.jsx("span",{children:"Light"})]}),e.jsxRuntimeExports.jsxs(t.DropdownMenuItem,{onClick:()=>x("dark"),children:[e.jsxRuntimeExports.jsx(s.Moon,{className:"mr-2 h-4 w-4"}),e.jsxRuntimeExports.jsx("span",{children:"Dark"})]}),e.jsxRuntimeExports.jsxs(t.DropdownMenuItem,{onClick:()=>x("system"),children:[e.jsxRuntimeExports.jsx(s.SunMoon,{className:"mr-2 h-4 w-4"}),e.jsxRuntimeExports.jsx("span",{children:"System"})]})]})]}):e.jsxRuntimeExports.jsx(j.Button,{variant:"ghost",size:"icon",className:r.cn("relative h-9 w-9",c),onClick:()=>x(m==="dark"?"light":"dark"),"aria-label":"Toggle theme",children:e.jsxRuntimeExports.jsx(u,{})})}exports.ThemeToggle=k;exports.useTheme=p;
|
|
@@ -1,28 +1,27 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
import { j as e } from "./jsx-runtime-tc70JA_2.mjs";
|
|
3
|
-
import { Sun as x, Moon as j, SunMoon as
|
|
4
|
-
import { Button as
|
|
5
|
-
import { DropdownMenu as w, DropdownMenuTrigger as v, DropdownMenuContent as N, DropdownMenuItem as i } from "./dropdown-menu.
|
|
6
|
-
import { theme as
|
|
7
|
-
import {
|
|
2
|
+
import { Sun as x, Moon as j, SunMoon as u } from "lucide-react";
|
|
3
|
+
import { Button as g } from "./button.mjs";
|
|
4
|
+
import { DropdownMenu as w, DropdownMenuTrigger as v, DropdownMenuContent as N, DropdownMenuItem as i } from "./dropdown-menu.mjs";
|
|
5
|
+
import { theme as p } from "@gv-tech/design-tokens";
|
|
6
|
+
import { useTheme as y } from "next-themes";
|
|
8
7
|
import { c as r } from "./utils-B6yFEsav.mjs";
|
|
9
8
|
function C() {
|
|
10
|
-
const t = y(), { resolvedTheme: n } = t, s = n === "dark" ?
|
|
9
|
+
const t = y(), { resolvedTheme: n } = t, s = n === "dark" ? p.dark : p.light;
|
|
11
10
|
return {
|
|
12
11
|
...t,
|
|
13
12
|
tokens: s
|
|
14
13
|
};
|
|
15
14
|
}
|
|
16
15
|
function F({ variant: t = "binary", onThemeChange: n, customTheme: s, className: l }) {
|
|
17
|
-
const { theme:
|
|
18
|
-
n ? n(d) :
|
|
16
|
+
const { theme: T, setTheme: f, resolvedTheme: k } = C(), c = s ?? T, m = (s || k) === "dark", o = c === "system", a = (d) => {
|
|
17
|
+
n ? n(d) : f(d);
|
|
19
18
|
}, h = () => /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
20
19
|
/* @__PURE__ */ e.jsx(
|
|
21
20
|
x,
|
|
22
21
|
{
|
|
23
22
|
className: r(
|
|
24
23
|
"h-[1.2rem] w-[1.2rem] transition-all",
|
|
25
|
-
!
|
|
24
|
+
!o && !m ? "scale-100 rotate-0" : "scale-0 -rotate-90"
|
|
26
25
|
)
|
|
27
26
|
}
|
|
28
27
|
),
|
|
@@ -31,49 +30,50 @@ function F({ variant: t = "binary", onThemeChange: n, customTheme: s, className:
|
|
|
31
30
|
{
|
|
32
31
|
className: r(
|
|
33
32
|
"absolute h-[1.2rem] w-[1.2rem] transition-all",
|
|
34
|
-
!
|
|
33
|
+
!o && m ? "scale-100 rotate-0" : "scale-0 rotate-90"
|
|
35
34
|
)
|
|
36
35
|
}
|
|
37
36
|
),
|
|
38
37
|
/* @__PURE__ */ e.jsx(
|
|
39
|
-
|
|
38
|
+
u,
|
|
40
39
|
{
|
|
41
40
|
className: r(
|
|
42
41
|
"absolute h-[1.2rem] w-[1.2rem] transition-all",
|
|
43
|
-
|
|
42
|
+
o ? "scale-100 rotate-0" : "scale-0 rotate-90"
|
|
44
43
|
)
|
|
45
44
|
}
|
|
46
45
|
),
|
|
47
46
|
/* @__PURE__ */ e.jsx("span", { className: "sr-only", children: "Toggle theme" })
|
|
48
47
|
] });
|
|
49
48
|
return t === "ternary" ? /* @__PURE__ */ e.jsxs(w, { children: [
|
|
50
|
-
/* @__PURE__ */ e.jsx(v, { asChild: !0, children: /* @__PURE__ */ e.jsx(
|
|
49
|
+
/* @__PURE__ */ e.jsx(v, { asChild: !0, children: /* @__PURE__ */ e.jsx(g, { variant: "ghost", size: "icon", className: r("relative h-9 w-9", l), children: /* @__PURE__ */ e.jsx(h, {}) }) }),
|
|
51
50
|
/* @__PURE__ */ e.jsxs(N, { align: "end", children: [
|
|
52
|
-
/* @__PURE__ */ e.jsxs(i, { onClick: () =>
|
|
51
|
+
/* @__PURE__ */ e.jsxs(i, { onClick: () => a("light"), children: [
|
|
53
52
|
/* @__PURE__ */ e.jsx(x, { className: "mr-2 h-4 w-4" }),
|
|
54
53
|
/* @__PURE__ */ e.jsx("span", { children: "Light" })
|
|
55
54
|
] }),
|
|
56
|
-
/* @__PURE__ */ e.jsxs(i, { onClick: () =>
|
|
55
|
+
/* @__PURE__ */ e.jsxs(i, { onClick: () => a("dark"), children: [
|
|
57
56
|
/* @__PURE__ */ e.jsx(j, { className: "mr-2 h-4 w-4" }),
|
|
58
57
|
/* @__PURE__ */ e.jsx("span", { children: "Dark" })
|
|
59
58
|
] }),
|
|
60
|
-
/* @__PURE__ */ e.jsxs(i, { onClick: () =>
|
|
61
|
-
/* @__PURE__ */ e.jsx(
|
|
59
|
+
/* @__PURE__ */ e.jsxs(i, { onClick: () => a("system"), children: [
|
|
60
|
+
/* @__PURE__ */ e.jsx(u, { className: "mr-2 h-4 w-4" }),
|
|
62
61
|
/* @__PURE__ */ e.jsx("span", { children: "System" })
|
|
63
62
|
] })
|
|
64
63
|
] })
|
|
65
64
|
] }) : /* @__PURE__ */ e.jsx(
|
|
66
|
-
|
|
65
|
+
g,
|
|
67
66
|
{
|
|
68
67
|
variant: "ghost",
|
|
69
68
|
size: "icon",
|
|
70
69
|
className: r("relative h-9 w-9", l),
|
|
71
|
-
onClick: () =>
|
|
70
|
+
onClick: () => a(c === "dark" ? "light" : "dark"),
|
|
72
71
|
"aria-label": "Toggle theme",
|
|
73
72
|
children: /* @__PURE__ */ e.jsx(h, {})
|
|
74
73
|
}
|
|
75
74
|
);
|
|
76
75
|
}
|
|
77
76
|
export {
|
|
78
|
-
F as
|
|
77
|
+
F as T,
|
|
78
|
+
C as u
|
|
79
79
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("./jsx-runtime-nZSsnGb7.js");require("lucide-react");require("./button.cjs");require("./dropdown-menu.cjs");const e=require("./theme-toggle-B4VZTDpe.js");require("./utils-IjLH3w2e.js");exports.ThemeToggle=e.ThemeToggle;
|