@esmate/shadcn 3.3.2 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -5
- package/dist/components/ui/badge.js +1 -1
- package/dist/components/ui/button-group.d.ts +11 -0
- package/dist/components/ui/button-group.js +42 -0
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/components/ui/button.js +3 -1
- package/dist/components/ui/calendar.js +1 -1
- package/dist/components/ui/card.js +1 -1
- package/dist/components/ui/checkbox.js +1 -1
- package/dist/components/ui/context-menu.js +1 -1
- package/dist/components/ui/dropdown-menu.js +1 -1
- package/dist/components/ui/empty.d.ts +11 -0
- package/dist/components/ui/empty.js +60 -0
- package/dist/components/ui/field.d.ts +24 -0
- package/dist/components/ui/field.js +134 -0
- package/dist/components/ui/input-group.d.ts +16 -0
- package/dist/components/ui/input-group.js +89 -0
- package/dist/components/ui/item.d.ts +23 -0
- package/dist/components/ui/item.js +118 -0
- package/dist/components/ui/kbd.d.ts +3 -0
- package/dist/components/ui/kbd.js +16 -0
- package/dist/components/ui/select.d.ts +1 -1
- package/dist/components/ui/select.js +2 -1
- package/dist/components/ui/sidebar.d.ts +1 -1
- package/dist/components/ui/slider.js +1 -1
- package/dist/components/ui/sonner.d.ts +1 -1
- package/dist/components/ui/sonner.js +20 -1
- package/dist/components/ui/spinner.d.ts +2 -0
- package/dist/components/ui/spinner.js +11 -0
- package/dist/components/ui/toggle-group.d.ts +3 -1
- package/dist/components/ui/toggle-group.js +12 -5
- package/package.json +15 -15
- package/dist/ui/accordion.d.ts +0 -7
- package/dist/ui/accordion.js +0 -39
- package/dist/ui/alert-dialog.d.ts +0 -14
- package/dist/ui/alert-dialog.js +0 -80
- package/dist/ui/alert.d.ts +0 -9
- package/dist/ui/alert.js +0 -39
- package/dist/ui/aspect-ratio.d.ts +0 -3
- package/dist/ui/aspect-ratio.js +0 -9
- package/dist/ui/avatar.d.ts +0 -6
- package/dist/ui/avatar.js +0 -26
- package/dist/ui/badge.d.ts +0 -9
- package/dist/ui/badge.js +0 -28
- package/dist/ui/breadcrumb.d.ts +0 -11
- package/dist/ui/breadcrumb.js +0 -66
- package/dist/ui/button.d.ts +0 -10
- package/dist/ui/button.js +0 -39
- package/dist/ui/calendar.d.ts +0 -8
- package/dist/ui/calendar.js +0 -103
- package/dist/ui/card.d.ts +0 -9
- package/dist/ui/card.js +0 -52
- package/dist/ui/carousel.d.ts +0 -19
- package/dist/ui/carousel.js +0 -135
- package/dist/ui/chart.d.ts +0 -40
- package/dist/ui/chart.js +0 -138
- package/dist/ui/checkbox.d.ts +0 -4
- package/dist/ui/checkbox.js +0 -18
- package/dist/ui/collapsible.d.ts +0 -5
- package/dist/ui/collapsible.js +0 -21
- package/dist/ui/command.d.ts +0 -18
- package/dist/ui/command.js +0 -78
- package/dist/ui/context-menu.d.ts +0 -25
- package/dist/ui/context-menu.js +0 -120
- package/dist/ui/dialog.d.ts +0 -15
- package/dist/ui/dialog.js +0 -79
- package/dist/ui/drawer.d.ts +0 -13
- package/dist/ui/drawer.js +0 -75
- package/dist/ui/dropdown-menu.d.ts +0 -25
- package/dist/ui/dropdown-menu.js +0 -121
- package/dist/ui/form.d.ts +0 -24
- package/dist/ui/form.js +0 -86
- package/dist/ui/hover-card.d.ts +0 -6
- package/dist/ui/hover-card.js +0 -28
- package/dist/ui/input-otp.d.ts +0 -11
- package/dist/ui/input-otp.js +0 -42
- package/dist/ui/input.d.ts +0 -3
- package/dist/ui/input.js +0 -11
- package/dist/ui/label.d.ts +0 -4
- package/dist/ui/label.js +0 -12
- package/dist/ui/menubar.d.ts +0 -26
- package/dist/ui/menubar.js +0 -131
- package/dist/ui/navigation-menu.d.ts +0 -14
- package/dist/ui/navigation-menu.js +0 -71
- package/dist/ui/pagination.d.ts +0 -13
- package/dist/ui/pagination.js +0 -71
- package/dist/ui/popover.d.ts +0 -7
- package/dist/ui/popover.js +0 -32
- package/dist/ui/progress.d.ts +0 -4
- package/dist/ui/progress.js +0 -18
- package/dist/ui/radio-group.d.ts +0 -5
- package/dist/ui/radio-group.js +0 -25
- package/dist/ui/resizable.d.ts +0 -8
- package/dist/ui/resizable.js +0 -30
- package/dist/ui/scroll-area.d.ts +0 -5
- package/dist/ui/scroll-area.js +0 -26
- package/dist/ui/select.d.ts +0 -15
- package/dist/ui/select.js +0 -89
- package/dist/ui/separator.d.ts +0 -4
- package/dist/ui/separator.js +0 -14
- package/dist/ui/sheet.d.ts +0 -13
- package/dist/ui/sheet.js +0 -78
- package/dist/ui/sidebar.d.ts +0 -69
- package/dist/ui/sidebar.js +0 -368
- package/dist/ui/skeleton.d.ts +0 -2
- package/dist/ui/skeleton.js +0 -9
- package/dist/ui/slider.d.ts +0 -4
- package/dist/ui/slider.js +0 -37
- package/dist/ui/sonner.d.ts +0 -3
- package/dist/ui/sonner.js +0 -17
- package/dist/ui/switch.d.ts +0 -4
- package/dist/ui/switch.js +0 -15
- package/dist/ui/table.d.ts +0 -10
- package/dist/ui/table.js +0 -63
- package/dist/ui/tabs.d.ts +0 -7
- package/dist/ui/tabs.js +0 -33
- package/dist/ui/textarea.d.ts +0 -3
- package/dist/ui/textarea.js +0 -10
- package/dist/ui/toggle-group.d.ts +0 -7
- package/dist/ui/toggle-group.js +0 -37
- package/dist/ui/toggle.d.ts +0 -9
- package/dist/ui/toggle.js +0 -34
- package/dist/ui/tooltip.d.ts +0 -7
- package/dist/ui/tooltip.js +0 -34
package/dist/ui/avatar.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE__radix_ui_react_avatar_fe03757d__ from "@radix-ui/react-avatar";
|
|
4
|
-
import * as __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__ from "../lib/utils.js";
|
|
5
|
-
function Avatar({ className, ...props }) {
|
|
6
|
-
return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement(__WEBPACK_EXTERNAL_MODULE__radix_ui_react_avatar_fe03757d__.Root, {
|
|
7
|
-
"data-slot": "avatar",
|
|
8
|
-
className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("relative flex size-8 shrink-0 overflow-hidden rounded-full", className),
|
|
9
|
-
...props
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
function AvatarImage({ className, ...props }) {
|
|
13
|
-
return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement(__WEBPACK_EXTERNAL_MODULE__radix_ui_react_avatar_fe03757d__.Image, {
|
|
14
|
-
"data-slot": "avatar-image",
|
|
15
|
-
className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("aspect-square size-full", className),
|
|
16
|
-
...props
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
function AvatarFallback({ className, ...props }) {
|
|
20
|
-
return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement(__WEBPACK_EXTERNAL_MODULE__radix_ui_react_avatar_fe03757d__.Fallback, {
|
|
21
|
-
"data-slot": "avatar-fallback",
|
|
22
|
-
className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("bg-muted flex size-full items-center justify-center rounded-full", className),
|
|
23
|
-
...props
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
export { Avatar, AvatarFallback, AvatarImage };
|
package/dist/ui/badge.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { type VariantProps } from "class-variance-authority";
|
|
3
|
-
declare const badgeVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "destructive" | "outline" | "secondary" | null | undefined;
|
|
5
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
|
-
declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<"span"> & VariantProps<typeof badgeVariants> & {
|
|
7
|
-
asChild?: boolean;
|
|
8
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export { Badge, badgeVariants };
|
package/dist/ui/badge.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
2
|
-
import * as __WEBPACK_EXTERNAL_MODULE__radix_ui_react_slot_85c2da36__ from "@radix-ui/react-slot";
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_class_variance_authority_159ad65c__ from "class-variance-authority";
|
|
4
|
-
import * as __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__ from "../lib/utils.js";
|
|
5
|
-
const badgeVariants = (0, __WEBPACK_EXTERNAL_MODULE_class_variance_authority_159ad65c__.cva)("inline-flex items-center justify-center rounded-md border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden", {
|
|
6
|
-
variants: {
|
|
7
|
-
variant: {
|
|
8
|
-
default: "border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",
|
|
9
|
-
secondary: "border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",
|
|
10
|
-
destructive: "border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
11
|
-
outline: "text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
defaultVariants: {
|
|
15
|
-
variant: "default"
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
function Badge({ className, variant, asChild = false, ...props }) {
|
|
19
|
-
const Comp = asChild ? __WEBPACK_EXTERNAL_MODULE__radix_ui_react_slot_85c2da36__.Slot : "span";
|
|
20
|
-
return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement(Comp, {
|
|
21
|
-
"data-slot": "badge",
|
|
22
|
-
className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)(badgeVariants({
|
|
23
|
-
variant
|
|
24
|
-
}), className),
|
|
25
|
-
...props
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
export { Badge, badgeVariants };
|
package/dist/ui/breadcrumb.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
declare function Breadcrumb({ ...props }: React.ComponentProps<"nav">): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
declare function BreadcrumbList({ className, ...props }: React.ComponentProps<"ol">): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare function BreadcrumbItem({ className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare function BreadcrumbLink({ asChild, className, ...props }: React.ComponentProps<"a"> & {
|
|
6
|
-
asChild?: boolean;
|
|
7
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare function BreadcrumbPage({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
declare function BreadcrumbSeparator({ children, className, ...props }: React.ComponentProps<"li">): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
declare function BreadcrumbEllipsis({ className, ...props }: React.ComponentProps<"span">): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export { Breadcrumb, BreadcrumbList, BreadcrumbItem, BreadcrumbLink, BreadcrumbPage, BreadcrumbSeparator, BreadcrumbEllipsis, };
|
package/dist/ui/breadcrumb.js
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
2
|
-
import * as __WEBPACK_EXTERNAL_MODULE__radix_ui_react_slot_85c2da36__ from "@radix-ui/react-slot";
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_lucide_react_f128bbbb__ from "lucide-react";
|
|
4
|
-
import * as __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__ from "../lib/utils.js";
|
|
5
|
-
function Breadcrumb({ ...props }) {
|
|
6
|
-
return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement("nav", {
|
|
7
|
-
"aria-label": "breadcrumb",
|
|
8
|
-
"data-slot": "breadcrumb",
|
|
9
|
-
...props
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
function BreadcrumbList({ className, ...props }) {
|
|
13
|
-
return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement("ol", {
|
|
14
|
-
"data-slot": "breadcrumb-list",
|
|
15
|
-
className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("text-muted-foreground flex flex-wrap items-center gap-1.5 text-sm break-words sm:gap-2.5", className),
|
|
16
|
-
...props
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
function BreadcrumbItem({ className, ...props }) {
|
|
20
|
-
return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement("li", {
|
|
21
|
-
"data-slot": "breadcrumb-item",
|
|
22
|
-
className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("inline-flex items-center gap-1.5", className),
|
|
23
|
-
...props
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
function BreadcrumbLink({ asChild, className, ...props }) {
|
|
27
|
-
const Comp = asChild ? __WEBPACK_EXTERNAL_MODULE__radix_ui_react_slot_85c2da36__.Slot : "a";
|
|
28
|
-
return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement(Comp, {
|
|
29
|
-
"data-slot": "breadcrumb-link",
|
|
30
|
-
className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("hover:text-foreground transition-colors", className),
|
|
31
|
-
...props
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
function BreadcrumbPage({ className, ...props }) {
|
|
35
|
-
return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement("span", {
|
|
36
|
-
"data-slot": "breadcrumb-page",
|
|
37
|
-
role: "link",
|
|
38
|
-
"aria-disabled": "true",
|
|
39
|
-
"aria-current": "page",
|
|
40
|
-
className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("text-foreground font-normal", className),
|
|
41
|
-
...props
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
function BreadcrumbSeparator({ children, className, ...props }) {
|
|
45
|
-
return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement("li", {
|
|
46
|
-
"data-slot": "breadcrumb-separator",
|
|
47
|
-
role: "presentation",
|
|
48
|
-
"aria-hidden": "true",
|
|
49
|
-
className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("[&>svg]:size-3.5", className),
|
|
50
|
-
...props
|
|
51
|
-
}, children ?? /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement(__WEBPACK_EXTERNAL_MODULE_lucide_react_f128bbbb__.ChevronRight, null));
|
|
52
|
-
}
|
|
53
|
-
function BreadcrumbEllipsis({ className, ...props }) {
|
|
54
|
-
return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement("span", {
|
|
55
|
-
"data-slot": "breadcrumb-ellipsis",
|
|
56
|
-
role: "presentation",
|
|
57
|
-
"aria-hidden": "true",
|
|
58
|
-
className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("flex size-9 items-center justify-center", className),
|
|
59
|
-
...props
|
|
60
|
-
}, /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement(__WEBPACK_EXTERNAL_MODULE_lucide_react_f128bbbb__.MoreHorizontal, {
|
|
61
|
-
className: "size-4"
|
|
62
|
-
}), /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement("span", {
|
|
63
|
-
className: "sr-only"
|
|
64
|
-
}, "More"));
|
|
65
|
-
}
|
|
66
|
-
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator };
|
package/dist/ui/button.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { type VariantProps } from "class-variance-authority";
|
|
3
|
-
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
5
|
-
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
6
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
-
declare function Button({ className, variant, size, asChild, ...props }: React.ComponentProps<"button"> & VariantProps<typeof buttonVariants> & {
|
|
8
|
-
asChild?: boolean;
|
|
9
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export { Button, buttonVariants };
|
package/dist/ui/button.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
2
|
-
import * as __WEBPACK_EXTERNAL_MODULE__radix_ui_react_slot_85c2da36__ from "@radix-ui/react-slot";
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_class_variance_authority_159ad65c__ from "class-variance-authority";
|
|
4
|
-
import * as __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__ from "../lib/utils.js";
|
|
5
|
-
const buttonVariants = (0, __WEBPACK_EXTERNAL_MODULE_class_variance_authority_159ad65c__.cva)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", {
|
|
6
|
-
variants: {
|
|
7
|
-
variant: {
|
|
8
|
-
default: "bg-primary text-primary-foreground hover:bg-primary/90",
|
|
9
|
-
destructive: "bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",
|
|
10
|
-
outline: "border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",
|
|
11
|
-
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
12
|
-
ghost: "hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",
|
|
13
|
-
link: "text-primary underline-offset-4 hover:underline"
|
|
14
|
-
},
|
|
15
|
-
size: {
|
|
16
|
-
default: "h-9 px-4 py-2 has-[>svg]:px-3",
|
|
17
|
-
sm: "h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",
|
|
18
|
-
lg: "h-10 rounded-md px-6 has-[>svg]:px-4",
|
|
19
|
-
icon: "size-9"
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
defaultVariants: {
|
|
23
|
-
variant: "default",
|
|
24
|
-
size: "default"
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
function Button({ className, variant, size, asChild = false, ...props }) {
|
|
28
|
-
const Comp = asChild ? __WEBPACK_EXTERNAL_MODULE__radix_ui_react_slot_85c2da36__.Slot : "button";
|
|
29
|
-
return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement(Comp, {
|
|
30
|
-
"data-slot": "button",
|
|
31
|
-
className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)(buttonVariants({
|
|
32
|
-
variant,
|
|
33
|
-
size,
|
|
34
|
-
className
|
|
35
|
-
})),
|
|
36
|
-
...props
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
export { Button, buttonVariants };
|
package/dist/ui/calendar.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { DayButton, DayPicker } from "react-day-picker";
|
|
3
|
-
import { Button } from "./button";
|
|
4
|
-
declare function Calendar({ className, classNames, showOutsideDays, captionLayout, buttonVariant, formatters, components, ...props }: React.ComponentProps<typeof DayPicker> & {
|
|
5
|
-
buttonVariant?: React.ComponentProps<typeof Button>["variant"];
|
|
6
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
declare function CalendarDayButton({ className, day, modifiers, ...props }: React.ComponentProps<typeof DayButton>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export { Calendar, CalendarDayButton };
|
package/dist/ui/calendar.js
DELETED
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_lucide_react_f128bbbb__ from "lucide-react";
|
|
4
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react_day_picker_7bc423fd__ from "react-day-picker";
|
|
5
|
-
import * as __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__ from "../lib/utils.js";
|
|
6
|
-
import * as __WEBPACK_EXTERNAL_MODULE__button_js_821b8d9d__ from "./button.js";
|
|
7
|
-
function Calendar({ className, classNames, showOutsideDays = true, captionLayout = "label", buttonVariant = "ghost", formatters, components, ...props }) {
|
|
8
|
-
const defaultClassNames = (0, __WEBPACK_EXTERNAL_MODULE_react_day_picker_7bc423fd__.getDefaultClassNames)();
|
|
9
|
-
return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement(__WEBPACK_EXTERNAL_MODULE_react_day_picker_7bc423fd__.DayPicker, {
|
|
10
|
-
showOutsideDays: showOutsideDays,
|
|
11
|
-
className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("bg-background group/calendar p-3 [--cell-size:--spacing(8)] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent", String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`, String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`, className),
|
|
12
|
-
captionLayout: captionLayout,
|
|
13
|
-
formatters: {
|
|
14
|
-
formatMonthDropdown: (date)=>date.toLocaleString("default", {
|
|
15
|
-
month: "short"
|
|
16
|
-
}),
|
|
17
|
-
...formatters
|
|
18
|
-
},
|
|
19
|
-
classNames: {
|
|
20
|
-
root: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("w-fit", defaultClassNames.root),
|
|
21
|
-
months: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("flex gap-4 flex-col md:flex-row relative", defaultClassNames.months),
|
|
22
|
-
month: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("flex flex-col w-full gap-4", defaultClassNames.month),
|
|
23
|
-
nav: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("flex items-center gap-1 w-full absolute top-0 inset-x-0 justify-between", defaultClassNames.nav),
|
|
24
|
-
button_previous: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)((0, __WEBPACK_EXTERNAL_MODULE__button_js_821b8d9d__.buttonVariants)({
|
|
25
|
-
variant: buttonVariant
|
|
26
|
-
}), "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none", defaultClassNames.button_previous),
|
|
27
|
-
button_next: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)((0, __WEBPACK_EXTERNAL_MODULE__button_js_821b8d9d__.buttonVariants)({
|
|
28
|
-
variant: buttonVariant
|
|
29
|
-
}), "size-(--cell-size) aria-disabled:opacity-50 p-0 select-none", defaultClassNames.button_next),
|
|
30
|
-
month_caption: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("flex items-center justify-center h-(--cell-size) w-full px-(--cell-size)", defaultClassNames.month_caption),
|
|
31
|
-
dropdowns: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("w-full flex items-center text-sm font-medium justify-center h-(--cell-size) gap-1.5", defaultClassNames.dropdowns),
|
|
32
|
-
dropdown_root: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("relative has-focus:border-ring border border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] rounded-md", defaultClassNames.dropdown_root),
|
|
33
|
-
dropdown: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("absolute bg-popover inset-0 opacity-0", defaultClassNames.dropdown),
|
|
34
|
-
caption_label: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("select-none font-medium", "label" === captionLayout ? "text-sm" : "rounded-md pl-2 pr-1 flex items-center gap-1 text-sm h-8 [&>svg]:text-muted-foreground [&>svg]:size-3.5", defaultClassNames.caption_label),
|
|
35
|
-
table: "w-full border-collapse",
|
|
36
|
-
weekdays: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("flex", defaultClassNames.weekdays),
|
|
37
|
-
weekday: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("text-muted-foreground rounded-md flex-1 font-normal text-[0.8rem] select-none", defaultClassNames.weekday),
|
|
38
|
-
week: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("flex w-full mt-2", defaultClassNames.week),
|
|
39
|
-
week_number_header: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("select-none w-(--cell-size)", defaultClassNames.week_number_header),
|
|
40
|
-
week_number: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("text-[0.8rem] select-none text-muted-foreground", defaultClassNames.week_number),
|
|
41
|
-
day: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("relative w-full h-full p-0 text-center [&:first-child[data-selected=true]_button]:rounded-l-md [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none", defaultClassNames.day),
|
|
42
|
-
range_start: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("rounded-l-md bg-accent", defaultClassNames.range_start),
|
|
43
|
-
range_middle: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("rounded-none", defaultClassNames.range_middle),
|
|
44
|
-
range_end: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("rounded-r-md bg-accent", defaultClassNames.range_end),
|
|
45
|
-
today: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none", defaultClassNames.today),
|
|
46
|
-
outside: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("text-muted-foreground aria-selected:text-muted-foreground", defaultClassNames.outside),
|
|
47
|
-
disabled: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("text-muted-foreground opacity-50", defaultClassNames.disabled),
|
|
48
|
-
hidden: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("invisible", defaultClassNames.hidden),
|
|
49
|
-
...classNames
|
|
50
|
-
},
|
|
51
|
-
components: {
|
|
52
|
-
Root: ({ className, rootRef, ...props })=>/*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement("div", {
|
|
53
|
-
"data-slot": "calendar",
|
|
54
|
-
ref: rootRef,
|
|
55
|
-
className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)(className),
|
|
56
|
-
...props
|
|
57
|
-
}),
|
|
58
|
-
Chevron: ({ className, orientation, ...props })=>{
|
|
59
|
-
if ("left" === orientation) return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement(__WEBPACK_EXTERNAL_MODULE_lucide_react_f128bbbb__.ChevronLeftIcon, {
|
|
60
|
-
className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("size-4", className),
|
|
61
|
-
...props
|
|
62
|
-
});
|
|
63
|
-
if ("right" === orientation) return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement(__WEBPACK_EXTERNAL_MODULE_lucide_react_f128bbbb__.ChevronRightIcon, {
|
|
64
|
-
className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("size-4", className),
|
|
65
|
-
...props
|
|
66
|
-
});
|
|
67
|
-
return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement(__WEBPACK_EXTERNAL_MODULE_lucide_react_f128bbbb__.ChevronDownIcon, {
|
|
68
|
-
className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("size-4", className),
|
|
69
|
-
...props
|
|
70
|
-
});
|
|
71
|
-
},
|
|
72
|
-
DayButton: CalendarDayButton,
|
|
73
|
-
WeekNumber: ({ children, ...props })=>/*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement("td", props, /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement("div", {
|
|
74
|
-
className: "flex size-(--cell-size) items-center justify-center text-center"
|
|
75
|
-
}, children)),
|
|
76
|
-
...components
|
|
77
|
-
},
|
|
78
|
-
...props
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
function CalendarDayButton({ className, day, modifiers, ...props }) {
|
|
82
|
-
const defaultClassNames = (0, __WEBPACK_EXTERNAL_MODULE_react_day_picker_7bc423fd__.getDefaultClassNames)();
|
|
83
|
-
const ref = __WEBPACK_EXTERNAL_MODULE_react__.useRef(null);
|
|
84
|
-
__WEBPACK_EXTERNAL_MODULE_react__.useEffect(()=>{
|
|
85
|
-
var _ref_current;
|
|
86
|
-
if (modifiers.focused) null == (_ref_current = ref.current) || _ref_current.focus();
|
|
87
|
-
}, [
|
|
88
|
-
modifiers.focused
|
|
89
|
-
]);
|
|
90
|
-
return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement(__WEBPACK_EXTERNAL_MODULE__button_js_821b8d9d__.Button, {
|
|
91
|
-
ref: ref,
|
|
92
|
-
variant: "ghost",
|
|
93
|
-
size: "icon",
|
|
94
|
-
"data-day": day.date.toLocaleDateString(),
|
|
95
|
-
"data-selected-single": modifiers.selected && !modifiers.range_start && !modifiers.range_end && !modifiers.range_middle,
|
|
96
|
-
"data-range-start": modifiers.range_start,
|
|
97
|
-
"data-range-end": modifiers.range_end,
|
|
98
|
-
"data-range-middle": modifiers.range_middle,
|
|
99
|
-
className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 dark:hover:text-accent-foreground flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] data-[range-end=true]:rounded-md data-[range-end=true]:rounded-r-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md data-[range-start=true]:rounded-l-md [&>span]:text-xs [&>span]:opacity-70", defaultClassNames.day, className),
|
|
100
|
-
...props
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
export { Calendar, CalendarDayButton };
|
package/dist/ui/card.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
declare function Card({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
declare function CardHeader({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare function CardTitle({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare function CardDescription({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare function CardAction({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
declare function CardContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare function CardFooter({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
export { Card, CardHeader, CardFooter, CardTitle, CardAction, CardDescription, CardContent, };
|
package/dist/ui/card.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
2
|
-
import * as __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__ from "../lib/utils.js";
|
|
3
|
-
function Card({ className, ...props }) {
|
|
4
|
-
return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement("div", {
|
|
5
|
-
"data-slot": "card",
|
|
6
|
-
className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm", className),
|
|
7
|
-
...props
|
|
8
|
-
});
|
|
9
|
-
}
|
|
10
|
-
function CardHeader({ className, ...props }) {
|
|
11
|
-
return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement("div", {
|
|
12
|
-
"data-slot": "card-header",
|
|
13
|
-
className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6", className),
|
|
14
|
-
...props
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
function CardTitle({ className, ...props }) {
|
|
18
|
-
return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement("div", {
|
|
19
|
-
"data-slot": "card-title",
|
|
20
|
-
className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("leading-none font-semibold", className),
|
|
21
|
-
...props
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
function CardDescription({ className, ...props }) {
|
|
25
|
-
return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement("div", {
|
|
26
|
-
"data-slot": "card-description",
|
|
27
|
-
className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("text-muted-foreground text-sm", className),
|
|
28
|
-
...props
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
function CardAction({ className, ...props }) {
|
|
32
|
-
return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement("div", {
|
|
33
|
-
"data-slot": "card-action",
|
|
34
|
-
className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("col-start-2 row-span-2 row-start-1 self-start justify-self-end", className),
|
|
35
|
-
...props
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
function CardContent({ className, ...props }) {
|
|
39
|
-
return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement("div", {
|
|
40
|
-
"data-slot": "card-content",
|
|
41
|
-
className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("px-6", className),
|
|
42
|
-
...props
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
function CardFooter({ className, ...props }) {
|
|
46
|
-
return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement("div", {
|
|
47
|
-
"data-slot": "card-footer",
|
|
48
|
-
className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("flex items-center px-6 [.border-t]:pt-6", className),
|
|
49
|
-
...props
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
|
package/dist/ui/carousel.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import useEmblaCarousel, { type UseEmblaCarouselType } from "embla-carousel-react";
|
|
3
|
-
import { Button } from "./button";
|
|
4
|
-
type CarouselApi = UseEmblaCarouselType[1];
|
|
5
|
-
type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
|
|
6
|
-
type CarouselOptions = UseCarouselParameters[0];
|
|
7
|
-
type CarouselPlugin = UseCarouselParameters[1];
|
|
8
|
-
type CarouselProps = {
|
|
9
|
-
opts?: CarouselOptions;
|
|
10
|
-
plugins?: CarouselPlugin;
|
|
11
|
-
orientation?: "horizontal" | "vertical";
|
|
12
|
-
setApi?: (api: CarouselApi) => void;
|
|
13
|
-
};
|
|
14
|
-
declare function Carousel({ orientation, opts, setApi, plugins, className, children, ...props }: React.ComponentProps<"div"> & CarouselProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
declare function CarouselContent({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
declare function CarouselItem({ className, ...props }: React.ComponentProps<"div">): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
declare function CarouselPrevious({ className, variant, size, ...props }: React.ComponentProps<typeof Button>): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
declare function CarouselNext({ className, variant, size, ...props }: React.ComponentProps<typeof Button>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
export { type CarouselApi, Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, };
|
package/dist/ui/carousel.js
DELETED
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_embla_carousel_react_7f67003b__ from "embla-carousel-react";
|
|
4
|
-
import * as __WEBPACK_EXTERNAL_MODULE_lucide_react_f128bbbb__ from "lucide-react";
|
|
5
|
-
import * as __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__ from "../lib/utils.js";
|
|
6
|
-
import * as __WEBPACK_EXTERNAL_MODULE__button_js_821b8d9d__ from "./button.js";
|
|
7
|
-
const CarouselContext = /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createContext(null);
|
|
8
|
-
function useCarousel() {
|
|
9
|
-
const context = __WEBPACK_EXTERNAL_MODULE_react__.useContext(CarouselContext);
|
|
10
|
-
if (!context) throw new Error("useCarousel must be used within a <Carousel />");
|
|
11
|
-
return context;
|
|
12
|
-
}
|
|
13
|
-
function Carousel({ orientation = "horizontal", opts, setApi, plugins, className, children, ...props }) {
|
|
14
|
-
const [carouselRef, api] = (0, __WEBPACK_EXTERNAL_MODULE_embla_carousel_react_7f67003b__["default"])({
|
|
15
|
-
...opts,
|
|
16
|
-
axis: "horizontal" === orientation ? "x" : "y"
|
|
17
|
-
}, plugins);
|
|
18
|
-
const [canScrollPrev, setCanScrollPrev] = __WEBPACK_EXTERNAL_MODULE_react__.useState(false);
|
|
19
|
-
const [canScrollNext, setCanScrollNext] = __WEBPACK_EXTERNAL_MODULE_react__.useState(false);
|
|
20
|
-
const onSelect = __WEBPACK_EXTERNAL_MODULE_react__.useCallback((api)=>{
|
|
21
|
-
if (!api) return;
|
|
22
|
-
setCanScrollPrev(api.canScrollPrev());
|
|
23
|
-
setCanScrollNext(api.canScrollNext());
|
|
24
|
-
}, []);
|
|
25
|
-
const scrollPrev = __WEBPACK_EXTERNAL_MODULE_react__.useCallback(()=>{
|
|
26
|
-
null == api || api.scrollPrev();
|
|
27
|
-
}, [
|
|
28
|
-
api
|
|
29
|
-
]);
|
|
30
|
-
const scrollNext = __WEBPACK_EXTERNAL_MODULE_react__.useCallback(()=>{
|
|
31
|
-
null == api || api.scrollNext();
|
|
32
|
-
}, [
|
|
33
|
-
api
|
|
34
|
-
]);
|
|
35
|
-
const handleKeyDown = __WEBPACK_EXTERNAL_MODULE_react__.useCallback((event)=>{
|
|
36
|
-
if ("ArrowLeft" === event.key) {
|
|
37
|
-
event.preventDefault();
|
|
38
|
-
scrollPrev();
|
|
39
|
-
} else if ("ArrowRight" === event.key) {
|
|
40
|
-
event.preventDefault();
|
|
41
|
-
scrollNext();
|
|
42
|
-
}
|
|
43
|
-
}, [
|
|
44
|
-
scrollPrev,
|
|
45
|
-
scrollNext
|
|
46
|
-
]);
|
|
47
|
-
__WEBPACK_EXTERNAL_MODULE_react__.useEffect(()=>{
|
|
48
|
-
if (!api || !setApi) return;
|
|
49
|
-
setApi(api);
|
|
50
|
-
}, [
|
|
51
|
-
api,
|
|
52
|
-
setApi
|
|
53
|
-
]);
|
|
54
|
-
__WEBPACK_EXTERNAL_MODULE_react__.useEffect(()=>{
|
|
55
|
-
if (!api) return;
|
|
56
|
-
onSelect(api);
|
|
57
|
-
api.on("reInit", onSelect);
|
|
58
|
-
api.on("select", onSelect);
|
|
59
|
-
return ()=>{
|
|
60
|
-
null == api || api.off("select", onSelect);
|
|
61
|
-
};
|
|
62
|
-
}, [
|
|
63
|
-
api,
|
|
64
|
-
onSelect
|
|
65
|
-
]);
|
|
66
|
-
return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement(CarouselContext.Provider, {
|
|
67
|
-
value: {
|
|
68
|
-
carouselRef,
|
|
69
|
-
api: api,
|
|
70
|
-
opts,
|
|
71
|
-
orientation: orientation || ((null == opts ? void 0 : opts.axis) === "y" ? "vertical" : "horizontal"),
|
|
72
|
-
scrollPrev,
|
|
73
|
-
scrollNext,
|
|
74
|
-
canScrollPrev,
|
|
75
|
-
canScrollNext
|
|
76
|
-
}
|
|
77
|
-
}, /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement("div", {
|
|
78
|
-
onKeyDownCapture: handleKeyDown,
|
|
79
|
-
className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("relative", className),
|
|
80
|
-
role: "region",
|
|
81
|
-
"aria-roledescription": "carousel",
|
|
82
|
-
"data-slot": "carousel",
|
|
83
|
-
...props
|
|
84
|
-
}, children));
|
|
85
|
-
}
|
|
86
|
-
function CarouselContent({ className, ...props }) {
|
|
87
|
-
const { carouselRef, orientation } = useCarousel();
|
|
88
|
-
return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement("div", {
|
|
89
|
-
ref: carouselRef,
|
|
90
|
-
className: "overflow-hidden",
|
|
91
|
-
"data-slot": "carousel-content"
|
|
92
|
-
}, /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement("div", {
|
|
93
|
-
className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("flex", "horizontal" === orientation ? "-ml-4" : "-mt-4 flex-col", className),
|
|
94
|
-
...props
|
|
95
|
-
}));
|
|
96
|
-
}
|
|
97
|
-
function CarouselItem({ className, ...props }) {
|
|
98
|
-
const { orientation } = useCarousel();
|
|
99
|
-
return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement("div", {
|
|
100
|
-
role: "group",
|
|
101
|
-
"aria-roledescription": "slide",
|
|
102
|
-
"data-slot": "carousel-item",
|
|
103
|
-
className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("min-w-0 shrink-0 grow-0 basis-full", "horizontal" === orientation ? "pl-4" : "pt-4", className),
|
|
104
|
-
...props
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
function CarouselPrevious({ className, variant = "outline", size = "icon", ...props }) {
|
|
108
|
-
const { orientation, scrollPrev, canScrollPrev } = useCarousel();
|
|
109
|
-
return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement(__WEBPACK_EXTERNAL_MODULE__button_js_821b8d9d__.Button, {
|
|
110
|
-
"data-slot": "carousel-previous",
|
|
111
|
-
variant: variant,
|
|
112
|
-
size: size,
|
|
113
|
-
className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("absolute size-8 rounded-full", "horizontal" === orientation ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90", className),
|
|
114
|
-
disabled: !canScrollPrev,
|
|
115
|
-
onClick: scrollPrev,
|
|
116
|
-
...props
|
|
117
|
-
}, /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement(__WEBPACK_EXTERNAL_MODULE_lucide_react_f128bbbb__.ArrowLeft, null), /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement("span", {
|
|
118
|
-
className: "sr-only"
|
|
119
|
-
}, "Previous slide"));
|
|
120
|
-
}
|
|
121
|
-
function CarouselNext({ className, variant = "outline", size = "icon", ...props }) {
|
|
122
|
-
const { orientation, scrollNext, canScrollNext } = useCarousel();
|
|
123
|
-
return /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement(__WEBPACK_EXTERNAL_MODULE__button_js_821b8d9d__.Button, {
|
|
124
|
-
"data-slot": "carousel-next",
|
|
125
|
-
variant: variant,
|
|
126
|
-
size: size,
|
|
127
|
-
className: (0, __WEBPACK_EXTERNAL_MODULE__lib_utils_js_5e4c9133__.cn)("absolute size-8 rounded-full", "horizontal" === orientation ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90", className),
|
|
128
|
-
disabled: !canScrollNext,
|
|
129
|
-
onClick: scrollNext,
|
|
130
|
-
...props
|
|
131
|
-
}, /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement(__WEBPACK_EXTERNAL_MODULE_lucide_react_f128bbbb__.ArrowRight, null), /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__.createElement("span", {
|
|
132
|
-
className: "sr-only"
|
|
133
|
-
}, "Next slide"));
|
|
134
|
-
}
|
|
135
|
-
export { Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious };
|
package/dist/ui/chart.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as RechartsPrimitive from "recharts";
|
|
3
|
-
declare const THEMES: {
|
|
4
|
-
readonly light: "";
|
|
5
|
-
readonly dark: ".dark";
|
|
6
|
-
};
|
|
7
|
-
export type ChartConfig = {
|
|
8
|
-
[k in string]: {
|
|
9
|
-
label?: React.ReactNode;
|
|
10
|
-
icon?: React.ComponentType;
|
|
11
|
-
} & ({
|
|
12
|
-
color?: string;
|
|
13
|
-
theme?: never;
|
|
14
|
-
} | {
|
|
15
|
-
color?: never;
|
|
16
|
-
theme: Record<keyof typeof THEMES, string>;
|
|
17
|
-
});
|
|
18
|
-
};
|
|
19
|
-
declare function ChartContainer({ id, className, children, config, ...props }: React.ComponentProps<"div"> & {
|
|
20
|
-
config: ChartConfig;
|
|
21
|
-
children: React.ComponentProps<typeof RechartsPrimitive.ResponsiveContainer>["children"];
|
|
22
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
declare const ChartStyle: ({ id, config }: {
|
|
24
|
-
id: string;
|
|
25
|
-
config: ChartConfig;
|
|
26
|
-
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
27
|
-
declare const ChartTooltip: typeof RechartsPrimitive.Tooltip;
|
|
28
|
-
declare function ChartTooltipContent({ active, payload, className, indicator, hideLabel, hideIndicator, label, labelFormatter, labelClassName, formatter, color, nameKey, labelKey, }: React.ComponentProps<typeof RechartsPrimitive.Tooltip> & React.ComponentProps<"div"> & {
|
|
29
|
-
hideLabel?: boolean;
|
|
30
|
-
hideIndicator?: boolean;
|
|
31
|
-
indicator?: "line" | "dot" | "dashed";
|
|
32
|
-
nameKey?: string;
|
|
33
|
-
labelKey?: string;
|
|
34
|
-
}): import("react/jsx-runtime").JSX.Element | null;
|
|
35
|
-
declare const ChartLegend: typeof RechartsPrimitive.Legend;
|
|
36
|
-
declare function ChartLegendContent({ className, hideIcon, payload, verticalAlign, nameKey, }: React.ComponentProps<"div"> & Pick<RechartsPrimitive.LegendProps, "payload" | "verticalAlign"> & {
|
|
37
|
-
hideIcon?: boolean;
|
|
38
|
-
nameKey?: string;
|
|
39
|
-
}): import("react/jsx-runtime").JSX.Element | null;
|
|
40
|
-
export { ChartContainer, ChartTooltip, ChartTooltipContent, ChartLegend, ChartLegendContent, ChartStyle, };
|