@goopti/ui 1.0.0 → 1.0.2
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 +183 -183
- package/dist/assets/index-gWZidFXq.js +203 -0
- package/dist/assets/index-p3H2VfDS.css +1 -0
- package/dist/assets/logo-opti-D621QI7V.png +0 -0
- package/dist/index.html +15 -0
- package/package.json +12 -9
- package/dist/components/alert-dialog.d.ts +0 -14
- package/dist/components/alert-dialog.d.ts.map +0 -1
- package/dist/components/alert-dialog.js +0 -25
- package/dist/components/alert-dialog.js.map +0 -1
- package/dist/components/avatar.d.ts +0 -8
- package/dist/components/avatar.d.ts.map +0 -1
- package/dist/components/avatar.js +0 -10
- package/dist/components/avatar.js.map +0 -1
- package/dist/components/badge.d.ts +0 -10
- package/dist/components/badge.d.ts.map +0 -1
- package/dist/components/badge.js +0 -22
- package/dist/components/badge.js.map +0 -1
- package/dist/components/button.d.ts +0 -11
- package/dist/components/button.d.ts.map +0 -1
- package/dist/components/button.js +0 -30
- package/dist/components/button.js.map +0 -1
- package/dist/components/calendar.d.ts +0 -8
- package/dist/components/calendar.d.ts.map +0 -1
- package/dist/components/calendar.js +0 -50
- package/dist/components/calendar.js.map +0 -1
- package/dist/components/card.d.ts +0 -21
- package/dist/components/card.d.ts.map +0 -1
- package/dist/components/card.js +0 -17
- package/dist/components/card.js.map +0 -1
- package/dist/components/carousel.d.ts +0 -10
- package/dist/components/carousel.d.ts.map +0 -1
- package/dist/components/carousel.js +0 -12
- package/dist/components/carousel.js.map +0 -1
- package/dist/components/checkbox.d.ts +0 -8
- package/dist/components/checkbox.d.ts.map +0 -1
- package/dist/components/checkbox.js +0 -8
- package/dist/components/checkbox.js.map +0 -1
- package/dist/components/collapsible.d.ts +0 -9
- package/dist/components/collapsible.d.ts.map +0 -1
- package/dist/components/collapsible.js +0 -11
- package/dist/components/collapsible.js.map +0 -1
- package/dist/components/date-picker.d.ts +0 -9
- package/dist/components/date-picker.d.ts.map +0 -1
- package/dist/components/date-picker.js +0 -29
- package/dist/components/date-picker.js.map +0 -1
- package/dist/components/dialog.d.ts +0 -20
- package/dist/components/dialog.d.ts.map +0 -1
- package/dist/components/dialog.js +0 -29
- package/dist/components/dialog.js.map +0 -1
- package/dist/components/dropdown-menu.d.ts +0 -15
- package/dist/components/dropdown-menu.d.ts.map +0 -1
- package/dist/components/dropdown-menu.js +0 -26
- package/dist/components/dropdown-menu.js.map +0 -1
- package/dist/components/hover-card.d.ts +0 -8
- package/dist/components/hover-card.d.ts.map +0 -1
- package/dist/components/hover-card.js +0 -10
- package/dist/components/hover-card.js.map +0 -1
- package/dist/components/icon.d.ts +0 -8
- package/dist/components/icon.d.ts.map +0 -1
- package/dist/components/icon.js +0 -11
- package/dist/components/icon.js.map +0 -1
- package/dist/components/input-otp.d.ts +0 -9
- package/dist/components/input-otp.d.ts.map +0 -1
- package/dist/components/input-otp.js +0 -22
- package/dist/components/input-otp.js.map +0 -1
- package/dist/components/input.d.ts +0 -6
- package/dist/components/input.d.ts.map +0 -1
- package/dist/components/input.js +0 -7
- package/dist/components/input.js.map +0 -1
- package/dist/components/label.d.ts +0 -6
- package/dist/components/label.d.ts.map +0 -1
- package/dist/components/label.js +0 -7
- package/dist/components/label.js.map +0 -1
- package/dist/components/popover.d.ts +0 -9
- package/dist/components/popover.d.ts.map +0 -1
- package/dist/components/popover.js +0 -21
- package/dist/components/popover.js.map +0 -1
- package/dist/components/progress.d.ts +0 -7
- package/dist/components/progress.d.ts.map +0 -1
- package/dist/components/progress.js +0 -7
- package/dist/components/progress.js.map +0 -1
- package/dist/components/radio-group.d.ts +0 -12
- package/dist/components/radio-group.d.ts.map +0 -1
- package/dist/components/radio-group.js +0 -7
- package/dist/components/radio-group.js.map +0 -1
- package/dist/components/scroll-area.d.ts +0 -7
- package/dist/components/scroll-area.d.ts.map +0 -1
- package/dist/components/scroll-area.js +0 -7
- package/dist/components/scroll-area.js.map +0 -1
- package/dist/components/select.d.ts +0 -13
- package/dist/components/select.d.ts.map +0 -1
- package/dist/components/select.js +0 -26
- package/dist/components/select.js.map +0 -1
- package/dist/components/separator.d.ts +0 -7
- package/dist/components/separator.d.ts.map +0 -1
- package/dist/components/separator.js +0 -7
- package/dist/components/separator.js.map +0 -1
- package/dist/components/sheet.d.ts +0 -10
- package/dist/components/sheet.d.ts.map +0 -1
- package/dist/components/sheet.js +0 -20
- package/dist/components/sheet.js.map +0 -1
- package/dist/components/skeleton.d.ts +0 -6
- package/dist/components/skeleton.d.ts.map +0 -1
- package/dist/components/skeleton.js +0 -7
- package/dist/components/skeleton.js.map +0 -1
- package/dist/components/slider.d.ts +0 -11
- package/dist/components/slider.d.ts.map +0 -1
- package/dist/components/slider.js +0 -31
- package/dist/components/slider.js.map +0 -1
- package/dist/components/switch.d.ts +0 -8
- package/dist/components/switch.d.ts.map +0 -1
- package/dist/components/switch.js +0 -7
- package/dist/components/switch.js.map +0 -1
- package/dist/components/textarea.d.ts +0 -6
- package/dist/components/textarea.d.ts.map +0 -1
- package/dist/components/textarea.js +0 -7
- package/dist/components/textarea.js.map +0 -1
- package/dist/components/toast.d.ts +0 -19
- package/dist/components/toast.d.ts.map +0 -1
- package/dist/components/toast.js +0 -25
- package/dist/components/toast.js.map +0 -1
- package/dist/components/tooltip.d.ts +0 -9
- package/dist/components/tooltip.d.ts.map +0 -1
- package/dist/components/tooltip.js +0 -16
- package/dist/components/tooltip.js.map +0 -1
- package/dist/hooks/use-toast.d.ts +0 -4
- package/dist/hooks/use-toast.d.ts.map +0 -1
- package/dist/hooks/use-toast.js +0 -9
- package/dist/hooks/use-toast.js.map +0 -1
- package/dist/index.d.ts +0 -62
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -36
- package/dist/index.js.map +0 -1
- package/dist/lib/utils.d.ts +0 -3
- package/dist/lib/utils.d.ts.map +0 -1
- package/dist/lib/utils.js +0 -6
- package/dist/lib/utils.js.map +0 -1
- package/dist/theme.css +0 -140
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export interface DialogProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
open?: boolean;
|
|
4
|
-
onClose?: () => void;
|
|
5
|
-
}
|
|
6
|
-
declare const Dialog: React.ForwardRefExoticComponent<DialogProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
-
export interface DialogHeaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
8
|
-
}
|
|
9
|
-
declare const DialogHeader: React.ForwardRefExoticComponent<DialogHeaderProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
-
export interface DialogTitleProps extends React.HTMLAttributes<HTMLHeadingElement> {
|
|
11
|
-
}
|
|
12
|
-
declare const DialogTitle: React.ForwardRefExoticComponent<DialogTitleProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
13
|
-
export interface DialogDescriptionProps extends React.HTMLAttributes<HTMLParagraphElement> {
|
|
14
|
-
}
|
|
15
|
-
declare const DialogDescription: React.ForwardRefExoticComponent<DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>>;
|
|
16
|
-
export interface DialogFooterProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
17
|
-
}
|
|
18
|
-
declare const DialogFooter: React.ForwardRefExoticComponent<DialogFooterProps & React.RefAttributes<HTMLDivElement>>;
|
|
19
|
-
export { Dialog, DialogHeader, DialogTitle, DialogDescription, DialogFooter, };
|
|
20
|
-
//# sourceMappingURL=dialog.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../src/components/dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,WAAY,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACvE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,QAAA,MAAM,MAAM,oFAkCX,CAAC;AAGF,MAAM,WAAW,iBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAEjD,QAAA,MAAM,YAAY,0FAQjB,CAAC;AAGF,MAAM,WAAW,gBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,kBAAkB,CAAC;CAAG;AAErD,QAAA,MAAM,WAAW,6FAWhB,CAAC;AAGF,MAAM,WAAW,sBACf,SAAQ,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC;CAAG;AAEvD,QAAA,MAAM,iBAAiB,qGASrB,CAAC;AAGH,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAElF,QAAA,MAAM,YAAY,0FAQjB,CAAC;AAGF,OAAO,EACL,MAAM,EACN,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,YAAY,GACb,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import { cn } from "../lib/utils";
|
|
4
|
-
import { Icon } from "./icon";
|
|
5
|
-
const Dialog = React.forwardRef(({ open = false, onClose, children, ...props }, ref) => {
|
|
6
|
-
React.useEffect(() => {
|
|
7
|
-
const onKey = (e) => {
|
|
8
|
-
if (e.key === "Escape")
|
|
9
|
-
onClose?.();
|
|
10
|
-
};
|
|
11
|
-
if (open)
|
|
12
|
-
document.addEventListener("keydown", onKey);
|
|
13
|
-
return () => document.removeEventListener("keydown", onKey);
|
|
14
|
-
}, [open, onClose]);
|
|
15
|
-
if (!open)
|
|
16
|
-
return null;
|
|
17
|
-
return (_jsxs("div", { className: "fixed inset-0 z-50 flex items-center justify-center p-4", children: [_jsx("div", { className: "animate-overlay absolute inset-0 bg-black/50 backdrop-blur-[2px]", onClick: onClose }), _jsxs("div", { ref: ref, className: "animate-content relative z-10 w-full max-w-lg rounded-xl border bg-card p-6 shadow-lg", ...props, children: [children, _jsx("button", { onClick: onClose, className: "absolute right-4 top-4 rounded-md p-1 text-muted-foreground opacity-70 transition hover:opacity-100 hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", children: _jsx(Icon, { name: "x", size: 18 }) })] })] }));
|
|
18
|
-
});
|
|
19
|
-
Dialog.displayName = "Dialog";
|
|
20
|
-
const DialogHeader = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("flex flex-col space-y-1.5 text-left mb-4", className), ...props })));
|
|
21
|
-
DialogHeader.displayName = "DialogHeader";
|
|
22
|
-
const DialogTitle = React.forwardRef(({ className, ...props }, ref) => (_jsx("h2", { ref: ref, className: cn("font-display text-xl font-semibold tracking-tight text-foreground", className), ...props })));
|
|
23
|
-
DialogTitle.displayName = "DialogTitle";
|
|
24
|
-
const DialogDescription = React.forwardRef(({ className, ...props }, ref) => (_jsx("p", { ref: ref, className: cn("text-sm text-muted-foreground", className), ...props })));
|
|
25
|
-
DialogDescription.displayName = "DialogDescription";
|
|
26
|
-
const DialogFooter = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("mt-6 flex justify-end gap-2", className), ...props })));
|
|
27
|
-
DialogFooter.displayName = "DialogFooter";
|
|
28
|
-
export { Dialog, DialogHeader, DialogTitle, DialogDescription, DialogFooter, };
|
|
29
|
-
//# sourceMappingURL=dialog.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.js","sourceRoot":"","sources":["../../src/components/dialog.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAO9B,MAAM,MAAM,GAAG,KAAK,CAAC,UAAU,CAC7B,CAAC,EAAE,IAAI,GAAG,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,GA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ClC,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAChC,aACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CACX,mEAAmE,EACnE,SAAS,CACV,KACG,KAAK,GACT,CACH,CACF,CAAC;AACF,WAAW,CAAC,WAAW,GAAG,aAAa,CAAC;AAKxC,MAAM,iBAAiB,GAAG,KAAK,CAAC,UAAU,CAGxC,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClC,YACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,+BAA+B,EAAE,SAAS,CAAC,KACrD,KAAK,GACT,CACH,CAAC,CAAC;AACH,iBAAiB,CAAC,WAAW,GAAG,mBAAmB,CAAC;AAIpD,MAAM,YAAY,GAAG,KAAK,CAAC,UAAU,CACnC,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAChC,cACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,6BAA6B,EAAE,SAAS,CAAC,KACnD,KAAK,GACT,CACH,CACF,CAAC;AACF,YAAY,CAAC,WAAW,GAAG,cAAc,CAAC;AAE1C,OAAO,EACL,MAAM,EACN,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,YAAY,GACb,CAAC"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export interface DropdownMenuProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
trigger: React.ReactNode;
|
|
4
|
-
items: Array<{
|
|
5
|
-
label: string;
|
|
6
|
-
icon?: string;
|
|
7
|
-
onClick?: () => void;
|
|
8
|
-
destructive?: boolean;
|
|
9
|
-
separator?: boolean;
|
|
10
|
-
}>;
|
|
11
|
-
align?: "start" | "end";
|
|
12
|
-
}
|
|
13
|
-
declare const DropdownMenu: React.ForwardRefExoticComponent<DropdownMenuProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
-
export { DropdownMenu };
|
|
15
|
-
//# sourceMappingURL=dropdown-menu.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-menu.d.ts","sourceRoot":"","sources":["../../src/components/dropdown-menu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,iBAAkB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC7E,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,KAAK,EAAE,KAAK,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;QACrB,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,SAAS,CAAC,EAAE,OAAO,CAAC;KACrB,CAAC,CAAC;IACH,KAAK,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;CACzB;AAED,QAAA,MAAM,YAAY,0FA4DjB,CAAC;AAGF,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import { cn } from "../lib/utils";
|
|
4
|
-
import { Icon } from "./icon";
|
|
5
|
-
const DropdownMenu = React.forwardRef(({ trigger, items, align = "start", className, ...props }, ref) => {
|
|
6
|
-
const [open, setOpen] = React.useState(false);
|
|
7
|
-
const containerRef = React.useRef(null);
|
|
8
|
-
React.useEffect(() => {
|
|
9
|
-
const fn = (e) => {
|
|
10
|
-
if (containerRef.current &&
|
|
11
|
-
!containerRef.current.contains(e.target)) {
|
|
12
|
-
setOpen(false);
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
document.addEventListener("mousedown", fn);
|
|
16
|
-
return () => document.removeEventListener("mousedown", fn);
|
|
17
|
-
}, []);
|
|
18
|
-
return (_jsxs("div", { ref: containerRef, className: "relative inline-block", children: [_jsx("span", { onClick: () => setOpen(!open), children: trigger }), open && (_jsx("div", { ref: ref, className: cn("animate-pop absolute z-50 mt-1.5 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md", align === "end" ? "right-0" : "left-0", className), ...props, children: items.map((it, i) => it.separator ? (_jsx("div", { className: "-mx-1 my-1 h-px bg-border" }, i)) : (_jsxs("button", { onClick: () => {
|
|
19
|
-
it.onClick?.();
|
|
20
|
-
setOpen(false);
|
|
21
|
-
}, className: cn("flex w-full items-center gap-2 rounded-[6px] px-2 py-1.5 text-sm transition-colors hover:bg-accent hover:text-accent-foreground", it.destructive &&
|
|
22
|
-
"text-destructive hover:bg-destructive/10 hover:text-destructive"), children: [it.icon && _jsx(Icon, { name: it.icon, size: 15 }), _jsx("span", { className: "flex-1 text-left", children: it.label })] }, i))) }))] }));
|
|
23
|
-
});
|
|
24
|
-
DropdownMenu.displayName = "DropdownMenu";
|
|
25
|
-
export { DropdownMenu };
|
|
26
|
-
//# sourceMappingURL=dropdown-menu.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown-menu.js","sourceRoot":"","sources":["../../src/components/dropdown-menu.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAc9B,MAAM,YAAY,GAAG,KAAK,CAAC,UAAU,CACnC,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IAChE,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,KAAK,CAAC,QAAQ,C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AiI,EACjI,EAAE,CAAC,WAAW;wBACZ,iEAAiE,CACpE,aAEA,EAAE,CAAC,IAAI,IAAI,KAAC,IAAI,IAAC,IAAI,EAAE,EAAE,CAAC,IAAI,EAAE,IAAI,EAAE,EAAE,GAAI,EAC7C,eAAM,SAAS,EAAC,kBAAkB,YAAE,EAAE,CAAC,KAAK,GAAQ,KAZ/C,CAAC,CAaC,CACV,CACF,GACG,CACP,IACG,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AACF,YAAY,CAAC,WAAW,GAAG,cAAc,CAAC;AAE1C,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export interface HoverCardProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
3
|
-
trigger: React.ReactNode;
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
}
|
|
6
|
-
declare const HoverCard: React.ForwardRefExoticComponent<HoverCardProps & React.RefAttributes<HTMLSpanElement>>;
|
|
7
|
-
export { HoverCard };
|
|
8
|
-
//# sourceMappingURL=hover-card.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hover-card.d.ts","sourceRoot":"","sources":["../../src/components/hover-card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC;IAC3E,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,QAAA,MAAM,SAAS,wFAwBd,CAAC;AAGF,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import { cn } from "../lib/utils";
|
|
4
|
-
const HoverCard = React.forwardRef(({ trigger, children, className, ...props }, ref) => {
|
|
5
|
-
const [show, setShow] = React.useState(false);
|
|
6
|
-
return (_jsxs("span", { ref: ref, className: "relative inline-flex", onMouseEnter: () => setShow(true), onMouseLeave: () => setShow(false), ...props, children: [trigger, show && (_jsx("div", { className: cn("animate-pop absolute left-0 top-full z-50 mt-2 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md", className), children: children }))] }));
|
|
7
|
-
});
|
|
8
|
-
HoverCard.displayName = "HoverCard";
|
|
9
|
-
export { HoverCard };
|
|
10
|
-
//# sourceMappingURL=hover-card.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hover-card.js","sourceRoot":"","sources":["../../src/components/hover-card.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAOlC,MAAM,SAAS,GAAG,KAAK,CAAC,UAAU,CAChC,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IAClD,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE9C,OAAO,CACL,gBACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAC,sBAAsB,EAChC,YAAY,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,EACjC,YAAY,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,KAC9B,KAAK,aAER,OAAO,EACP,IAAI,IAAI,CACP,cAAK,SAAS,EAAE,EAAE,CAChB,wHAAwH,EACxH,SAAS,CACV,YACE,QAAQ,GACL,CACP,IACI,CACR,CAAC;AACJ,CAAC,CACF,CAAC;AACF,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC;AAEpC,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export interface IconProps extends React.HTMLAttributes<HTMLElement> {
|
|
3
|
-
name: string;
|
|
4
|
-
size?: number;
|
|
5
|
-
}
|
|
6
|
-
declare const Icon: React.ForwardRefExoticComponent<IconProps & React.RefAttributes<HTMLElement>>;
|
|
7
|
-
export { Icon };
|
|
8
|
-
//# sourceMappingURL=icon.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../src/components/icon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,WAAW,SAAU,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAClE,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,QAAA,MAAM,IAAI,+EAeT,CAAC;AAGF,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
package/dist/components/icon.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
const Icon = React.forwardRef(({ name, size = 16, className = "", ...props }, ref) => (_jsx("i", { ref: ref, "data-lucide": name, className: className, style: {
|
|
4
|
-
width: size,
|
|
5
|
-
height: size,
|
|
6
|
-
display: "inline-flex",
|
|
7
|
-
flex: "none",
|
|
8
|
-
}, ...props })));
|
|
9
|
-
Icon.displayName = "Icon";
|
|
10
|
-
export { Icon };
|
|
11
|
-
//# sourceMappingURL=icon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"icon.js","sourceRoot":"","sources":["../../src/components/icon.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,MAAM,IAAI,GAAG,KAAK,CAAC,UAAU,CAC3B,CAAC,EAAE,IAAI,EAAE,IAAI,GAAG,EAAE,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACtD,YACE,GAAG,EAAE,GAAU,iBACF,IAAI,EACjB,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE;QACL,KAAK,EAAE,IAAI;QACX,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,aAAa;QACtB,IAAI,EAAE,MAAM;KACb,KACG,KAAK,GACT,CACH,CACF,CAAC;AACF,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC;AAE1B,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export interface InputOTPProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
3
|
-
length?: number;
|
|
4
|
-
value?: string;
|
|
5
|
-
onChange?: (value: string) => void;
|
|
6
|
-
}
|
|
7
|
-
declare const InputOTP: React.ForwardRefExoticComponent<InputOTPProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
-
export { InputOTP };
|
|
9
|
-
//# sourceMappingURL=input-otp.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-otp.d.ts","sourceRoot":"","sources":["../../src/components/input-otp.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IAC3F,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACpC;AAED,QAAA,MAAM,QAAQ,sFA2Cb,CAAC;AAGF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import { cn } from "../lib/utils";
|
|
4
|
-
const InputOTP = React.forwardRef(({ length = 6, value = "", onChange, className, ...props }, ref) => {
|
|
5
|
-
const refs = React.useRef([]);
|
|
6
|
-
const chars = value.padEnd(length, " ").slice(0, length).split("");
|
|
7
|
-
const setChar = (i, ch) => {
|
|
8
|
-
const arr = value.padEnd(length, " ").split("");
|
|
9
|
-
arr[i] = ch || " ";
|
|
10
|
-
onChange?.(arr.join("").trimEnd());
|
|
11
|
-
if (ch && i < length - 1)
|
|
12
|
-
refs.current[i + 1]?.focus();
|
|
13
|
-
};
|
|
14
|
-
return (_jsx("div", { ref: ref, className: cn("flex items-center gap-2", className), ...props, children: chars.map((c, i) => (_jsxs(React.Fragment, { children: [_jsx("input", { ref: (el) => (refs.current[i] = el), inputMode: "numeric", maxLength: 1, value: c.trim(), onChange: (e) => setChar(i, e.target.value.replace(/[^0-9]/g, "")), onKeyDown: (e) => {
|
|
15
|
-
if (e.key === "Backspace" && !c.trim() && i > 0) {
|
|
16
|
-
refs.current[i - 1]?.focus();
|
|
17
|
-
}
|
|
18
|
-
}, className: "h-12 w-11 rounded-md border border-input bg-background text-center text-lg font-semibold text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:border-ring" }), i === Math.floor(length / 2) - 1 && length % 2 === 0 && (_jsx("span", { className: "text-muted-foreground", children: "-" }))] }, i))) }));
|
|
19
|
-
});
|
|
20
|
-
InputOTP.displayName = "InputOTP";
|
|
21
|
-
export { InputOTP };
|
|
22
|
-
//# sourceMappingURL=input-otp.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input-otp.js","sourceRoot":"","sources":["../../src/components/input-otp.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,EAAE,EAAE,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AS,EACnB,SAAS,EAAE,CAAC,EACZ,KAAK,EAAE,CAAC,CAAC,IAAI,EAAE,EACf,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CACd,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC,EAEnD,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE;wBACf,IAAI,CAAC,CAAC,GAAG,KAAK,WAAW,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;4BAChD,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC;wBAC/B,CAAC;oBACH,CAAC,EACD,SAAS,EAAC,4MAA4M,GACtN,EACD,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,IAAI,MAAM,GAAG,CAAC,KAAK,CAAC,IAAI,CACvD,eAAM,SAAS,EAAC,uBAAuB,kBAAS,CACjD,KAlBkB,CAAC,CAmBL,CAClB,CAAC,GACE,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AACF,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAC;AAElC,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
3
|
-
}
|
|
4
|
-
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
5
|
-
export { Input };
|
|
6
|
-
//# sourceMappingURL=input.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../src/components/input.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,UACf,SAAQ,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC;CAAG;AAExD,QAAA,MAAM,KAAK,qFAYV,CAAC;AAGF,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
package/dist/components/input.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import { cn } from "../lib/utils";
|
|
4
|
-
const Input = React.forwardRef(({ className, type, ...props }, ref) => (_jsx("input", { type: type, className: cn("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-sm text-foreground transition-colors placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:border-ring disabled:cursor-not-allowed disabled:opacity-50", className), ref: ref, ...props })));
|
|
5
|
-
Input.displayName = "Input";
|
|
6
|
-
export { Input };
|
|
7
|
-
//# sourceMappingURL=input.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"input.js","sourceRoot":"","sources":["../../src/components/input.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAKlC,MAAM,KAAK,GAAG,KAAK,CAAC,UAAU,CAC5B,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CACtC,gBACE,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,EAAE,CACX,uSAAuS,EACvS,SAAS,CACV,EACD,GAAG,EAAE,GAAG,KACJ,KAAK,GACT,CACH,CACF,CAAC;AACF,KAAK,CAAC,WAAW,GAAG,OAAO,CAAC;AAE5B,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export interface LabelProps extends React.LabelHTMLAttributes<HTMLLabelElement> {
|
|
3
|
-
}
|
|
4
|
-
declare const Label: React.ForwardRefExoticComponent<LabelProps & React.RefAttributes<HTMLLabelElement>>;
|
|
5
|
-
export { Label };
|
|
6
|
-
//# sourceMappingURL=label.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../src/components/label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC;CAAG;AAElF,QAAA,MAAM,KAAK,qFAWV,CAAC;AAGF,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
package/dist/components/label.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import { cn } from "../lib/utils";
|
|
4
|
-
const Label = React.forwardRef(({ className, ...props }, ref) => (_jsx("label", { ref: ref, className: cn("text-sm font-medium leading-none text-foreground peer-disabled:opacity-70", className), ...props })));
|
|
5
|
-
Label.displayName = "Label";
|
|
6
|
-
export { Label };
|
|
7
|
-
//# sourceMappingURL=label.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"label.js","sourceRoot":"","sources":["../../src/components/label.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAIlC,MAAM,KAAK,GAAG,KAAK,CAAC,UAAU,CAC5B,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAChC,gBACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CACX,2EAA2E,EAC3E,SAAS,CACV,KACG,KAAK,GACT,CACH,CACF,CAAC;AACF,KAAK,CAAC,WAAW,GAAG,OAAO,CAAC;AAE5B,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export interface PopoverProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
trigger: React.ReactNode;
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
align?: "start" | "end";
|
|
6
|
-
}
|
|
7
|
-
declare const Popover: React.ForwardRefExoticComponent<PopoverProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
-
export { Popover };
|
|
9
|
-
//# sourceMappingURL=popover.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../src/components/popover.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,YAAa,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACxE,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;CACzB;AAED,QAAA,MAAM,OAAO,qFAqCZ,CAAC;AAGF,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import { cn } from "../lib/utils";
|
|
4
|
-
const Popover = React.forwardRef(({ trigger, children, align = "start", className, ...props }, ref) => {
|
|
5
|
-
const [open, setOpen] = React.useState(false);
|
|
6
|
-
const containerRef = React.useRef(null);
|
|
7
|
-
React.useEffect(() => {
|
|
8
|
-
const fn = (e) => {
|
|
9
|
-
if (containerRef.current &&
|
|
10
|
-
!containerRef.current.contains(e.target)) {
|
|
11
|
-
setOpen(false);
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
document.addEventListener("mousedown", fn);
|
|
15
|
-
return () => document.removeEventListener("mousedown", fn);
|
|
16
|
-
}, []);
|
|
17
|
-
return (_jsxs("div", { ref: containerRef, className: "relative inline-block", children: [_jsx("span", { onClick: () => setOpen(!open), children: trigger }), open && (_jsx("div", { ref: ref, className: cn("animate-pop absolute z-50 mt-2 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md", align === "end" ? "right-0" : "left-0", className), ...props, children: children }))] }));
|
|
18
|
-
});
|
|
19
|
-
Popover.displayName = "Popover";
|
|
20
|
-
export { Popover };
|
|
21
|
-
//# sourceMappingURL=popover.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"popover.js","sourceRoot":"","sources":["../../src/components/popover.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AASlC,MAAM,OAAO,GAAG,KAAK,CAAC,UAAU,CAC9B,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,KAAK,GAAG,OAAO,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IACnE,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9C,MAAM,YAAY,GAAG,KAAK,CAAC,MAAM,CAAiB,IAAI,CAAC,CAAC;IAExD,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,MAAM,EAAE,GAAG,CAAC,CAAa,EAAE,EAAE;YAC3B,IACE,YAAY,CAAC,OAAO;gBACpB,CAAC,YAAY,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAc,CAAC,EAChD,CAAC;gBACD,OAAO,CAAC,KAAK,CAAC,CAAC;YACjB,CAAC;QACH,CAAC,CAAC;QACF,QAAQ,CAAC,gBAAgB,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;QAC3C,OAAO,GAAG,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC,WAAW,EAAE,EAAE,CAAC,CAAC;IAC7D,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,eAAK,GAAG,EAAE,YAAY,EAAE,SAAS,EAAC,uBAAuB,aACvD,eAAM,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,YAAG,OAAO,GAAQ,EACpD,IAAI,IAAI,CACP,cACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CACX,wGAAwG,EACxG,KAAK,KAAK,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,EACtC,SAAS,CACV,KACG,KAAK,YAER,QAAQ,GACL,CACP,IACG,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AACF,OAAO,CAAC,WAAW,GAAG,SAAS,CAAC;AAEhC,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export interface ProgressProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
value?: number;
|
|
4
|
-
}
|
|
5
|
-
declare const Progress: React.ForwardRefExoticComponent<ProgressProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
-
export { Progress };
|
|
7
|
-
//# sourceMappingURL=progress.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../src/components/progress.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACzE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,QAAA,MAAM,QAAQ,sFAgBb,CAAC;AAGF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import { cn } from "../lib/utils";
|
|
4
|
-
const Progress = React.forwardRef(({ className, value = 0, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("relative h-2.5 w-full overflow-hidden rounded-full bg-secondary", className), ...props, children: _jsx("div", { className: "h-full rounded-full bg-primary transition-all duration-500", style: { width: `${value}%` } }) })));
|
|
5
|
-
Progress.displayName = "Progress";
|
|
6
|
-
export { Progress };
|
|
7
|
-
//# sourceMappingURL=progress.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"progress.js","sourceRoot":"","sources":["../../src/components/progress.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAMlC,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAC/B,CAAC,EAAE,SAAS,EAAE,KAAK,GAAG,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAC3C,cACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CACX,iEAAiE,EACjE,SAAS,CACV,KACG,KAAK,YAET,cACE,SAAS,EAAC,4DAA4D,EACtE,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,KAAK,GAAG,EAAE,GACxB,GACH,CACP,CACF,CAAC;AACF,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAC;AAElC,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export interface RadioGroupProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
3
|
-
value?: string;
|
|
4
|
-
onChange?: (value: string) => void;
|
|
5
|
-
options: Array<{
|
|
6
|
-
value: string;
|
|
7
|
-
label: string;
|
|
8
|
-
}>;
|
|
9
|
-
}
|
|
10
|
-
declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
-
export { RadioGroup };
|
|
12
|
-
//# sourceMappingURL=radio-group.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["../../src/components/radio-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,eAAgB,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IAC7F,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,OAAO,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAClD;AAED,QAAA,MAAM,UAAU,wFA+Bf,CAAC;AAGF,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import { cn } from "../lib/utils";
|
|
4
|
-
const RadioGroup = React.forwardRef(({ className, value, onChange, options, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("grid gap-3", className), role: "radiogroup", ...props, children: options.map((o) => (_jsxs("label", { className: "flex items-center gap-3 cursor-pointer text-sm text-foreground", children: [_jsx("button", { role: "radio", "aria-checked": value === o.value, onClick: () => onChange?.(o.value), className: cn("h-5 w-5 rounded-full border ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring flex items-center justify-center transition-colors", value === o.value ? "border-primary" : "border-input"), children: value === o.value && (_jsx("span", { className: "h-2.5 w-2.5 rounded-full bg-primary" })) }), o.label] }, o.value))) })));
|
|
5
|
-
RadioGroup.displayName = "RadioGroup";
|
|
6
|
-
export { RadioGroup };
|
|
7
|
-
//# sourceMappingURL=radio-group.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"radio-group.js","sourceRoot":"","sources":["../../src/components/radio-group.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AASlC,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CACjC,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAC1D,cACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,YAAY,EAAE,SAAS,CAAC,EACtC,IAAI,EAAC,YAAY,KACb,KAAK,YAER,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAClB,iBAEE,SAAS,EAAC,gEAAgE,aAE1E,iBACE,IAAI,EAAC,OAAO,kBACE,KAAK,KAAK,CAAC,CAAC,KAAK,EAC/B,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,EAClC,SAAS,EAAE,EAAE,CACX,+KAA+K,EAC/K,KAAK,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,cAAc,CACtD,YAEA,KAAK,KAAK,CAAC,CAAC,KAAK,IAAI,CACpB,eAAM,SAAS,EAAC,qCAAqC,GAAQ,CAC9D,GACM,EACR,CAAC,CAAC,KAAK,KAhBH,CAAC,CAAC,KAAK,CAiBN,CACT,CAAC,GACE,CACP,CACF,CAAC;AACF,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC;AAEtC,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export interface ScrollAreaProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
}
|
|
5
|
-
declare const ScrollArea: React.ForwardRefExoticComponent<ScrollAreaProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
-
export { ScrollArea };
|
|
7
|
-
//# sourceMappingURL=scroll-area.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scroll-area.d.ts","sourceRoot":"","sources":["../../src/components/scroll-area.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,eAAgB,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC3E,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,QAAA,MAAM,UAAU,wFAaf,CAAC;AAGF,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import { cn } from "../lib/utils";
|
|
4
|
-
const ScrollArea = React.forwardRef(({ className, children, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("opti-scroll overflow-y-auto rounded-md border", className), ...props, children: children })));
|
|
5
|
-
ScrollArea.displayName = "ScrollArea";
|
|
6
|
-
export { ScrollArea };
|
|
7
|
-
//# sourceMappingURL=scroll-area.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scroll-area.js","sourceRoot":"","sources":["../../src/components/scroll-area.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAOlC,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CACjC,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAC1C,cACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CACX,+CAA+C,EAC/C,SAAS,CACV,KACG,KAAK,YAER,QAAQ,GACL,CACP,CACF,CAAC;AACF,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC;AAEtC,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export interface SelectProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
3
|
-
value?: string;
|
|
4
|
-
onChange?: (value: string) => void;
|
|
5
|
-
options: Array<{
|
|
6
|
-
value: string;
|
|
7
|
-
label: string;
|
|
8
|
-
}>;
|
|
9
|
-
placeholder?: string;
|
|
10
|
-
}
|
|
11
|
-
declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
-
export { Select };
|
|
13
|
-
//# sourceMappingURL=select.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../src/components/select.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IACzF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,OAAO,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACjD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,QAAA,MAAM,MAAM,oFA6DX,CAAC;AAGF,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import { cn } from "../lib/utils";
|
|
4
|
-
import { Icon } from "./icon";
|
|
5
|
-
const Select = React.forwardRef(({ className, value, onChange, options, placeholder = "Selecione…", ...props }, ref) => {
|
|
6
|
-
const [open, setOpen] = React.useState(false);
|
|
7
|
-
const containerRef = React.useRef(null);
|
|
8
|
-
React.useEffect(() => {
|
|
9
|
-
const fn = (e) => {
|
|
10
|
-
if (containerRef.current &&
|
|
11
|
-
!containerRef.current.contains(e.target)) {
|
|
12
|
-
setOpen(false);
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
document.addEventListener("mousedown", fn);
|
|
16
|
-
return () => document.removeEventListener("mousedown", fn);
|
|
17
|
-
}, []);
|
|
18
|
-
const sel = options.find((o) => o.value === value);
|
|
19
|
-
return (_jsxs("div", { ref: containerRef, className: cn("relative", className), ...props, children: [_jsxs("button", { onClick: () => setOpen(!open), className: "flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring", children: [_jsx("span", { className: sel ? "text-foreground" : "text-muted-foreground", children: sel ? sel.label : placeholder }), _jsx(Icon, { name: "chevron-down", size: 16, className: "opacity-60" })] }), open && (_jsx("div", { className: "animate-pop absolute z-50 mt-1.5 w-full overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md", children: options.map((o) => (_jsxs("button", { onClick: () => {
|
|
20
|
-
onChange?.(o.value);
|
|
21
|
-
setOpen(false);
|
|
22
|
-
}, className: cn("flex w-full items-center justify-between rounded-[6px] px-2 py-1.5 text-sm hover:bg-accent hover:text-accent-foreground", value === o.value && "bg-accent/60"), children: [o.label, value === o.value && _jsx(Icon, { name: "check", size: 15 })] }, o.value))) }))] }));
|
|
23
|
-
});
|
|
24
|
-
Select.displayName = "Select";
|
|
25
|
-
export { Select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ACjB,SAAS,EAAE,EAAE,CAAC,UAAU,EAAE,SAAS,CAAC,KAChC,KAAK,aAET,kBACE,OAAO,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,EAC7B,SAAS,EAAC,sLAAsL,aAEhM,eAAM,SAAS,EAAE,GAAG,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,uBAAuB,YAC/D,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,WAAW,GACzB,EACP,KAAC,IAAI,IAAC,IAAI,EAAC,cAAc,EAAC,IAAI,EAAE,EAAE,EAAE,SAAS,EAAC,YAAY,GAAG,IACtD,EACR,IAAI,IAAI,CACP,cAAK,SAAS,EAAC,4HAA4H,YACxI,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAClB,kBAEE,OAAO,EAAE,GAAG,EAAE;wBACZ,QAAQ,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;wBACpB,OAAO,CAAC,KAAK,CAAC,CAAC;oBACjB,CAAC,EACD,SAAS,EAAE,EAAE,CACX,yHAAyH,EACzH,KAAK,KAAK,CAAC,CAAC,KAAK,IAAI,cAAc,CACpC,aAEA,CAAC,CAAC,KAAK,EACP,KAAK,KAAK,CAAC,CAAC,KAAK,IAAI,KAAC,IAAI,IAAC,IAAI,EAAC,OAAO,EAAC,IAAI,EAAE,EAAE,GAAI,KAXhD,CAAC,CAAC,KAAK,CAYL,CACV,CAAC,GACE,CACP,IACG,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AACF,MAAM,CAAC,WAAW,GAAG,QAAQ,CAAC;AAE9B,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export interface SeparatorProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
orientation?: "horizontal" | "vertical";
|
|
4
|
-
}
|
|
5
|
-
declare const Separator: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
-
export { Separator };
|
|
7
|
-
//# sourceMappingURL=separator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"separator.d.ts","sourceRoot":"","sources":["../../src/components/separator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IAC1E,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;CACzC;AAED,QAAA,MAAM,SAAS,uFAYd,CAAC;AAGF,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import { cn } from "../lib/utils";
|
|
4
|
-
const Separator = React.forwardRef(({ className, orientation = "horizontal", ...props }, ref) => (_jsx("div", { ref: ref, className: cn("shrink-0 bg-border", orientation === "horizontal" ? "h-px w-full" : "h-full w-px", className), ...props })));
|
|
5
|
-
Separator.displayName = "Separator";
|
|
6
|
-
export { Separator };
|
|
7
|
-
//# sourceMappingURL=separator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"separator.js","sourceRoot":"","sources":["../../src/components/separator.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAMlC,MAAM,SAAS,GAAG,KAAK,CAAC,UAAU,CAChC,CAAC,EAAE,SAAS,EAAE,WAAW,GAAG,YAAY,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAC5D,cACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CACX,oBAAoB,EACpB,WAAW,KAAK,YAAY,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,aAAa,EAC5D,SAAS,CACV,KACG,KAAK,GACT,CACH,CACF,CAAC;AACF,SAAS,CAAC,WAAW,GAAG,WAAW,CAAC;AAEpC,OAAO,EAAE,SAAS,EAAE,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export interface SheetProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
open?: boolean;
|
|
4
|
-
onClose?: () => void;
|
|
5
|
-
title?: string;
|
|
6
|
-
description?: string;
|
|
7
|
-
}
|
|
8
|
-
declare const Sheet: React.ForwardRefExoticComponent<SheetProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
-
export { Sheet };
|
|
10
|
-
//# sourceMappingURL=sheet.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sheet.d.ts","sourceRoot":"","sources":["../../src/components/sheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACtE,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,QAAA,MAAM,KAAK,mFA8CV,CAAC;AAGF,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
package/dist/components/sheet.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import { Icon } from "./icon";
|
|
4
|
-
const Sheet = React.forwardRef(({ open = false, onClose, title, description, children, ...props }, ref) => {
|
|
5
|
-
React.useEffect(() => {
|
|
6
|
-
const onKey = (e) => {
|
|
7
|
-
if (e.key === "Escape")
|
|
8
|
-
onClose?.();
|
|
9
|
-
};
|
|
10
|
-
if (open)
|
|
11
|
-
document.addEventListener("keydown", onKey);
|
|
12
|
-
return () => document.removeEventListener("keydown", onKey);
|
|
13
|
-
}, [open, onClose]);
|
|
14
|
-
if (!open)
|
|
15
|
-
return null;
|
|
16
|
-
return (_jsxs("div", { className: "fixed inset-0 z-50", children: [_jsx("div", { className: "animate-overlay absolute inset-0 bg-black/50 backdrop-blur-[2px]", onClick: onClose }), _jsxs("div", { ref: ref, className: "animate-sheet absolute right-0 top-0 h-full w-full max-w-sm border-l bg-card p-6 shadow-lg flex flex-col", ...props, children: [_jsxs("div", { className: "mb-4", children: [title && (_jsx("h2", { className: "font-display text-lg font-semibold text-foreground", children: title })), description && (_jsx("p", { className: "text-sm text-muted-foreground mt-1", children: description }))] }), _jsx("div", { className: "flex-1 overflow-y-auto opti-scroll -mr-2 pr-2", children: children }), _jsx("button", { onClick: onClose, className: "absolute right-4 top-4 rounded-md p-1 text-muted-foreground opacity-70 hover:opacity-100", children: _jsx(Icon, { name: "x", size: 18 }) })] })] }));
|
|
17
|
-
});
|
|
18
|
-
Sheet.displayName = "Sheet";
|
|
19
|
-
export { Sheet };
|
|
20
|
-
//# sourceMappingURL=sheet.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sheet.js","sourceRoot":"","sources":["../../src/components/sheet.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAS9B,MAAM,KAAK,GAAG,KAAK,CAAC,UAAU,CAC5B,CAAC,EAAE,IAAI,GAAG,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IACzE,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,MAAM,KAAK,GAAG,CAAC,CAAgB,EAAE,EAAE;YACjC,IAAI,CAAC,CAAC,GAAG,KAAK,QAAQ;gBAAE,OAAO,EAAE,EAAE,CAAC;QACtC,CAAC,CAAC;QACF,IAAI,IAAI;YAAE,QAAQ,CAAC,gBAAgB,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QACtD,OAAO,GAAG,EAAE,CAAC,QAAQ,CAAC,mBAAmB,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;IAC9D,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IAEpB,IAAI,CAAC,IAAI;QAAE,OAAO,IAAI,CAAC;IAEvB,OAAO,CACL,eAAK,SAAS,EAAC,oBAAoB,aACjC,cACE,SAAS,EAAC,kEAAkE,EAC5E,OAAO,EAAE,OAAO,GACX,EACP,eACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAC,0GAA0G,KAChH,KAAK,aAET,eAAK,SAAS,EAAC,MAAM,aAClB,KAAK,IAAI,CACR,aAAI,SAAS,EAAC,oDAAoD,YAC/D,KAAK,GACH,CACN,EACA,WAAW,IAAI,CACd,YAAG,SAAS,EAAC,oCAAoC,YAAE,WAAW,GAAK,CACpE,IACG,EACN,cAAK,SAAS,EAAC,+CAA+C,YAC3D,QAAQ,GACL,EACN,iBACE,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,0FAA0F,YAEpG,KAAC,IAAI,IAAC,IAAI,EAAC,GAAG,EAAC,IAAI,EAAE,EAAE,GAAI,GACpB,IACL,IACF,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AACF,KAAK,CAAC,WAAW,GAAG,OAAO,CAAC;AAE5B,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
|
-
}
|
|
4
|
-
declare const Skeleton: React.ForwardRefExoticComponent<SkeletonProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
-
export { Skeleton };
|
|
6
|
-
//# sourceMappingURL=skeleton.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../src/components/skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;CAAG;AAE9E,QAAA,MAAM,QAAQ,sFAQb,CAAC;AAGF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import { cn } from "../lib/utils";
|
|
4
|
-
const Skeleton = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("animate-skeleton rounded-md bg-muted", className), ...props })));
|
|
5
|
-
Skeleton.displayName = "Skeleton";
|
|
6
|
-
export { Skeleton };
|
|
7
|
-
//# sourceMappingURL=skeleton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"skeleton.js","sourceRoot":"","sources":["../../src/components/skeleton.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAIlC,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAC/B,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAChC,cACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,sCAAsC,EAAE,SAAS,CAAC,KAC5D,KAAK,GACT,CACH,CACF,CAAC;AACF,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAC;AAElC,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
export interface SliderProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'onChange'> {
|
|
3
|
-
value?: number;
|
|
4
|
-
onChange?: (value: number) => void;
|
|
5
|
-
min?: number;
|
|
6
|
-
max?: number;
|
|
7
|
-
step?: number;
|
|
8
|
-
}
|
|
9
|
-
declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
-
export { Slider };
|
|
11
|
-
//# sourceMappingURL=slider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../src/components/slider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC;IACzF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,QAAA,MAAM,MAAM,oFAoDX,CAAC;AAGF,OAAO,EAAE,MAAM,EAAE,CAAC"}
|