@vultro/ui 0.0.0-stage → 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +58 -2
- package/dist/components/alert.d.ts +16 -0
- package/dist/components/alert.js +43 -0
- package/dist/components/badge.d.ts +7 -0
- package/dist/components/badge.js +28 -0
- package/dist/components/button.d.ts +8 -0
- package/dist/components/button.js +43 -0
- package/dist/components/card.d.ts +11 -0
- package/dist/components/card.js +55 -0
- package/dist/components/chart.d.ts +44 -0
- package/dist/components/chart.js +148 -0
- package/dist/components/checkbox.d.ts +3 -0
- package/dist/components/checkbox.js +18 -0
- package/dist/components/dialog.d.ts +18 -0
- package/dist/components/dialog.js +76 -0
- package/dist/components/input.d.ts +3 -0
- package/dist/components/input.js +14 -0
- package/dist/components/label.d.ts +10 -0
- package/dist/components/label.js +19 -0
- package/dist/components/separator.d.ts +3 -0
- package/dist/components/separator.js +14 -0
- package/dist/components/sheet.d.ts +14 -0
- package/dist/components/sheet.js +88 -0
- package/dist/components/sidebar.d.ts +63 -0
- package/dist/components/sidebar.js +385 -0
- package/dist/components/skeleton.d.ts +9 -0
- package/dist/components/skeleton.js +18 -0
- package/dist/components/table.d.ts +18 -0
- package/dist/components/table.js +73 -0
- package/dist/components/textarea.d.ts +10 -0
- package/dist/components/textarea.js +19 -0
- package/dist/components/tooltip.d.ts +6 -0
- package/dist/components/tooltip.js +40 -0
- package/dist/hooks/use-mobile.d.ts +1 -0
- package/dist/hooks/use-mobile.js +17 -0
- package/dist/lib/utils.d.ts +1 -0
- package/dist/lib/utils.js +1 -0
- package/dist/styles/globals.css +135 -0
- package/package.json +35 -4
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import "react";
|
|
2
|
+
import { cn } from "cn";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
// src/components/table.tsx
|
|
5
|
+
/**
|
|
6
|
+
* 数据表格。
|
|
7
|
+
*
|
|
8
|
+
* 这里刻意使用原生 `<table>` 而不是虚拟列表:自托管 dashboard 一页最多
|
|
9
|
+
* 显示 200 行(系统 UDF 已在上限里截断),原生表格的可访问性和复制粘贴
|
|
10
|
+
* 行为更好,也不需要额外依赖。外层的 `overflow-x-auto` 容器让窄屏可以
|
|
11
|
+
* 横向滚动,而不是把侧边栏挤变形。
|
|
12
|
+
*/
|
|
13
|
+
function Table({ className, ...props }) {
|
|
14
|
+
return /* @__PURE__ */ jsx("div", {
|
|
15
|
+
"data-slot": "table-container",
|
|
16
|
+
className: "relative w-full overflow-x-auto",
|
|
17
|
+
children: /* @__PURE__ */ jsx("table", {
|
|
18
|
+
"data-slot": "table",
|
|
19
|
+
className: cn("w-full caption-bottom text-sm", className),
|
|
20
|
+
...props
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
function TableHeader({ className, ...props }) {
|
|
25
|
+
return /* @__PURE__ */ jsx("thead", {
|
|
26
|
+
"data-slot": "table-header",
|
|
27
|
+
className: cn("[&_tr]:border-b", className),
|
|
28
|
+
...props
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
function TableBody({ className, ...props }) {
|
|
32
|
+
return /* @__PURE__ */ jsx("tbody", {
|
|
33
|
+
"data-slot": "table-body",
|
|
34
|
+
className: cn("[&_tr:last-child]:border-0", className),
|
|
35
|
+
...props
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
function TableFooter({ className, ...props }) {
|
|
39
|
+
return /* @__PURE__ */ jsx("tfoot", {
|
|
40
|
+
"data-slot": "table-footer",
|
|
41
|
+
className: cn("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0", className),
|
|
42
|
+
...props
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
function TableRow({ className, ...props }) {
|
|
46
|
+
return /* @__PURE__ */ jsx("tr", {
|
|
47
|
+
"data-slot": "table-row",
|
|
48
|
+
className: cn("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted", className),
|
|
49
|
+
...props
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
function TableHead({ className, ...props }) {
|
|
53
|
+
return /* @__PURE__ */ jsx("th", {
|
|
54
|
+
"data-slot": "table-head",
|
|
55
|
+
className: cn("h-9 px-2 text-left align-middle font-medium whitespace-nowrap text-muted-foreground", className),
|
|
56
|
+
...props
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
function TableCell({ className, ...props }) {
|
|
60
|
+
return /* @__PURE__ */ jsx("td", {
|
|
61
|
+
"data-slot": "table-cell",
|
|
62
|
+
className: cn("p-2 align-middle whitespace-nowrap", className),
|
|
63
|
+
...props
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
function TableCaption({ className, ...props }) {
|
|
67
|
+
return /* @__PURE__ */ jsx("caption", {
|
|
68
|
+
"data-slot": "table-caption",
|
|
69
|
+
className: cn("mt-4 text-sm text-muted-foreground", className),
|
|
70
|
+
...props
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* 多行文本输入框。
|
|
4
|
+
*
|
|
5
|
+
* 样式与 `Input` 共用一套边框 / focus ring 变量,保证在表单里混排时高度
|
|
6
|
+
* 视觉一致。`field-sizing-content` 让高度随内容增长,编辑 JSON 时不用手动
|
|
7
|
+
* 拖拽右下角。
|
|
8
|
+
*/
|
|
9
|
+
declare function Textarea({ className, ...props }: React.ComponentProps<"textarea">): React.JSX.Element;
|
|
10
|
+
export { Textarea };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import "react";
|
|
2
|
+
import { cn } from "cn";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
// src/components/textarea.tsx
|
|
5
|
+
/**
|
|
6
|
+
* 多行文本输入框。
|
|
7
|
+
*
|
|
8
|
+
* 样式与 `Input` 共用一套边框 / focus ring 变量,保证在表单里混排时高度
|
|
9
|
+
* 视觉一致。`field-sizing-content` 让高度随内容增长,编辑 JSON 时不用手动
|
|
10
|
+
* 拖拽右下角。
|
|
11
|
+
*/
|
|
12
|
+
function Textarea({ className, ...props }) {
|
|
13
|
+
return /* @__PURE__ */ jsx("textarea", {
|
|
14
|
+
"data-slot": "textarea",
|
|
15
|
+
className: cn("flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40", className),
|
|
16
|
+
...props
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
export { Textarea };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Tooltip as TooltipPrimitive } from "@base-ui/react/tooltip";
|
|
2
|
+
declare function TooltipProvider({ delay, ...props }: TooltipPrimitive.Provider.Props): import("react").JSX.Element;
|
|
3
|
+
declare function Tooltip({ ...props }: TooltipPrimitive.Root.Props): import("react").JSX.Element;
|
|
4
|
+
declare function TooltipTrigger({ ...props }: TooltipPrimitive.Trigger.Props): import("react").JSX.Element;
|
|
5
|
+
declare function TooltipContent({ className, side, sideOffset, align, alignOffset, children, ...props }: TooltipPrimitive.Popup.Props & Pick<TooltipPrimitive.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): import("react").JSX.Element;
|
|
6
|
+
export { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Tooltip as Tooltip$1 } from "@base-ui/react/tooltip";
|
|
3
|
+
import { cn } from "cn";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
// src/components/tooltip.tsx
|
|
6
|
+
function TooltipProvider({ delay = 0, ...props }) {
|
|
7
|
+
return /* @__PURE__ */ jsx(Tooltip$1.Provider, {
|
|
8
|
+
"data-slot": "tooltip-provider",
|
|
9
|
+
delay,
|
|
10
|
+
...props
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
function Tooltip({ ...props }) {
|
|
14
|
+
return /* @__PURE__ */ jsx(Tooltip$1.Root, {
|
|
15
|
+
"data-slot": "tooltip",
|
|
16
|
+
...props
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
function TooltipTrigger({ ...props }) {
|
|
20
|
+
return /* @__PURE__ */ jsx(Tooltip$1.Trigger, {
|
|
21
|
+
"data-slot": "tooltip-trigger",
|
|
22
|
+
...props
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function TooltipContent({ className, side = "top", sideOffset = 4, align = "center", alignOffset = 0, children, ...props }) {
|
|
26
|
+
return /* @__PURE__ */ jsx(Tooltip$1.Portal, { children: /* @__PURE__ */ jsx(Tooltip$1.Positioner, {
|
|
27
|
+
align,
|
|
28
|
+
alignOffset,
|
|
29
|
+
side,
|
|
30
|
+
sideOffset,
|
|
31
|
+
className: "isolate z-50",
|
|
32
|
+
children: /* @__PURE__ */ jsxs(Tooltip$1.Popup, {
|
|
33
|
+
"data-slot": "tooltip-content",
|
|
34
|
+
className: cn("z-50 inline-flex w-fit max-w-xs origin-(--transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pr-1.5 data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 **:data-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className),
|
|
35
|
+
...props,
|
|
36
|
+
children: [children, /* @__PURE__ */ jsx(Tooltip$1.Arrow, { className: "z-50 size-2.5 translate-y-[calc(-50%-2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground data-[side=bottom]:top-1 data-[side=inline-end]:top-1/2! data-[side=inline-end]:-left-1 data-[side=inline-end]:-translate-y-1/2 data-[side=inline-start]:top-1/2! data-[side=inline-start]:-right-1 data-[side=inline-start]:-translate-y-1/2 data-[side=left]:top-1/2! data-[side=left]:-right-1 data-[side=left]:-translate-y-1/2 data-[side=right]:top-1/2! data-[side=right]:-left-1 data-[side=right]:-translate-y-1/2 data-[side=top]:-bottom-2.5" })]
|
|
37
|
+
})
|
|
38
|
+
}) });
|
|
39
|
+
}
|
|
40
|
+
export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useIsMobile(): boolean;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
// src/hooks/use-mobile.ts
|
|
3
|
+
var MOBILE_BREAKPOINT = 768;
|
|
4
|
+
function useIsMobile() {
|
|
5
|
+
const [isMobile, setIsMobile] = React.useState(void 0);
|
|
6
|
+
React.useEffect(() => {
|
|
7
|
+
const mql = window.matchMedia(`(max-width: 767px)`);
|
|
8
|
+
const onChange = () => {
|
|
9
|
+
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
10
|
+
};
|
|
11
|
+
mql.addEventListener("change", onChange);
|
|
12
|
+
setIsMobile(window.innerWidth < MOBILE_BREAKPOINT);
|
|
13
|
+
return () => mql.removeEventListener("change", onChange);
|
|
14
|
+
}, []);
|
|
15
|
+
return !!isMobile;
|
|
16
|
+
}
|
|
17
|
+
export { useIsMobile };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { cn } from "cn";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { cn } from "cn";
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
@import "tailwindcss";
|
|
2
|
+
@import "tw-animate-css";
|
|
3
|
+
@import "shadcn/tailwind.css";
|
|
4
|
+
|
|
5
|
+
@custom-variant dark (&:is(.dark *));
|
|
6
|
+
@source "../**/*.{ts,tsx}";
|
|
7
|
+
@source "../../../../plays/play-*/src/**/*.{ts,tsx}";
|
|
8
|
+
@source "../../../../plays/play-*/index.html";
|
|
9
|
+
@source "../../../../apps/dashboard-embedded/src/**/*.{ts,tsx}";
|
|
10
|
+
@source "../../../../apps/dashboard-embedded/index.html";
|
|
11
|
+
|
|
12
|
+
@theme inline {
|
|
13
|
+
--font-heading: var(--font-sans);
|
|
14
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
15
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
16
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
17
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
18
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
19
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
20
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
21
|
+
--color-sidebar: var(--sidebar);
|
|
22
|
+
--color-chart-5: var(--chart-5);
|
|
23
|
+
--color-chart-4: var(--chart-4);
|
|
24
|
+
--color-chart-3: var(--chart-3);
|
|
25
|
+
--color-chart-2: var(--chart-2);
|
|
26
|
+
--color-chart-1: var(--chart-1);
|
|
27
|
+
--color-ring: var(--ring);
|
|
28
|
+
--color-input: var(--input);
|
|
29
|
+
--color-border: var(--border);
|
|
30
|
+
--color-destructive: var(--destructive);
|
|
31
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
32
|
+
--color-accent: var(--accent);
|
|
33
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
34
|
+
--color-muted: var(--muted);
|
|
35
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
36
|
+
--color-secondary: var(--secondary);
|
|
37
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
38
|
+
--color-primary: var(--primary);
|
|
39
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
40
|
+
--color-popover: var(--popover);
|
|
41
|
+
--color-card-foreground: var(--card-foreground);
|
|
42
|
+
--color-card: var(--card);
|
|
43
|
+
--color-foreground: var(--foreground);
|
|
44
|
+
--color-background: var(--background);
|
|
45
|
+
--radius-sm: calc(var(--radius) * 0.6);
|
|
46
|
+
--radius-md: calc(var(--radius) * 0.8);
|
|
47
|
+
--radius-lg: var(--radius);
|
|
48
|
+
--radius-xl: calc(var(--radius) * 1.4);
|
|
49
|
+
--radius-2xl: calc(var(--radius) * 1.8);
|
|
50
|
+
--radius-3xl: calc(var(--radius) * 2.2);
|
|
51
|
+
--radius-4xl: calc(var(--radius) * 2.6);
|
|
52
|
+
--font-sans: var(--font-sans);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
:root {
|
|
56
|
+
--background: oklch(1 0 0);
|
|
57
|
+
--foreground: oklch(0.148 0.004 228.8);
|
|
58
|
+
--card: oklch(1 0 0);
|
|
59
|
+
--card-foreground: oklch(0.148 0.004 228.8);
|
|
60
|
+
--popover: oklch(1 0 0);
|
|
61
|
+
--popover-foreground: oklch(0.148 0.004 228.8);
|
|
62
|
+
--primary: oklch(0.488 0.243 264.376);
|
|
63
|
+
--primary-foreground: oklch(0.97 0.014 254.604);
|
|
64
|
+
--secondary: oklch(0.967 0.001 286.375);
|
|
65
|
+
--secondary-foreground: oklch(0.21 0.006 285.885);
|
|
66
|
+
--muted: oklch(0.963 0.002 197.1);
|
|
67
|
+
--muted-foreground: oklch(0.56 0.021 213.5);
|
|
68
|
+
--accent: oklch(0.963 0.002 197.1);
|
|
69
|
+
--accent-foreground: oklch(0.218 0.008 223.9);
|
|
70
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
71
|
+
--border: oklch(0.925 0.005 214.3);
|
|
72
|
+
--input: oklch(0.925 0.005 214.3);
|
|
73
|
+
--ring: oklch(0.723 0.014 214.4);
|
|
74
|
+
--chart-1: oklch(0.811 0.111 293.571);
|
|
75
|
+
--chart-2: oklch(0.606 0.25 292.717);
|
|
76
|
+
--chart-3: oklch(0.541 0.281 293.009);
|
|
77
|
+
--chart-4: oklch(0.491 0.27 292.581);
|
|
78
|
+
--chart-5: oklch(0.432 0.232 292.759);
|
|
79
|
+
--radius: 0;
|
|
80
|
+
--sidebar: oklch(0.987 0.002 197.1);
|
|
81
|
+
--sidebar-foreground: oklch(0.148 0.004 228.8);
|
|
82
|
+
--sidebar-primary: oklch(0.546 0.245 262.881);
|
|
83
|
+
--sidebar-primary-foreground: oklch(0.97 0.014 254.604);
|
|
84
|
+
--sidebar-accent: oklch(0.963 0.002 197.1);
|
|
85
|
+
--sidebar-accent-foreground: oklch(0.218 0.008 223.9);
|
|
86
|
+
--sidebar-border: oklch(0.925 0.005 214.3);
|
|
87
|
+
--sidebar-ring: oklch(0.723 0.014 214.4);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.dark {
|
|
91
|
+
--background: oklch(0.148 0.004 228.8);
|
|
92
|
+
--foreground: oklch(0.987 0.002 197.1);
|
|
93
|
+
--card: oklch(0.218 0.008 223.9);
|
|
94
|
+
--card-foreground: oklch(0.987 0.002 197.1);
|
|
95
|
+
--popover: oklch(0.218 0.008 223.9);
|
|
96
|
+
--popover-foreground: oklch(0.987 0.002 197.1);
|
|
97
|
+
--primary: oklch(0.424 0.199 265.638);
|
|
98
|
+
--primary-foreground: oklch(0.97 0.014 254.604);
|
|
99
|
+
--secondary: oklch(0.274 0.006 286.033);
|
|
100
|
+
--secondary-foreground: oklch(0.985 0 0);
|
|
101
|
+
--muted: oklch(0.275 0.011 216.9);
|
|
102
|
+
--muted-foreground: oklch(0.723 0.014 214.4);
|
|
103
|
+
--accent: oklch(0.275 0.011 216.9);
|
|
104
|
+
--accent-foreground: oklch(0.987 0.002 197.1);
|
|
105
|
+
--destructive: oklch(0.704 0.191 22.216);
|
|
106
|
+
--border: oklch(1 0 0 / 10%);
|
|
107
|
+
--input: oklch(1 0 0 / 15%);
|
|
108
|
+
--ring: oklch(0.56 0.021 213.5);
|
|
109
|
+
--chart-1: oklch(0.811 0.111 293.571);
|
|
110
|
+
--chart-2: oklch(0.606 0.25 292.717);
|
|
111
|
+
--chart-3: oklch(0.541 0.281 293.009);
|
|
112
|
+
--chart-4: oklch(0.491 0.27 292.581);
|
|
113
|
+
--chart-5: oklch(0.432 0.232 292.759);
|
|
114
|
+
--sidebar: oklch(0.218 0.008 223.9);
|
|
115
|
+
--sidebar-foreground: oklch(0.987 0.002 197.1);
|
|
116
|
+
--sidebar-primary: oklch(0.623 0.214 259.815);
|
|
117
|
+
--sidebar-primary-foreground: oklch(0.97 0.014 254.604);
|
|
118
|
+
--sidebar-accent: oklch(0.275 0.011 216.9);
|
|
119
|
+
--sidebar-accent-foreground: oklch(0.987 0.002 197.1);
|
|
120
|
+
--sidebar-border: oklch(1 0 0 / 10%);
|
|
121
|
+
--sidebar-ring: oklch(0.56 0.021 213.5);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
@layer base {
|
|
125
|
+
* {
|
|
126
|
+
@apply border-border outline-ring/50;
|
|
127
|
+
}
|
|
128
|
+
body {
|
|
129
|
+
@apply bg-background text-foreground;
|
|
130
|
+
}
|
|
131
|
+
button:not(:disabled),
|
|
132
|
+
[role="button"]:not(:disabled) {
|
|
133
|
+
cursor: pointer;
|
|
134
|
+
}
|
|
135
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vultro/ui",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"dependencies": {
|
|
6
|
+
"@base-ui/react": "^1.9.0",
|
|
7
|
+
"class-variance-authority": "^0.7.1",
|
|
8
|
+
"cn": "^0.5.2",
|
|
9
|
+
"lucide-react": "^1.87.0",
|
|
10
|
+
"react": "^19.3.1",
|
|
11
|
+
"react-dom": "^19.3.1",
|
|
12
|
+
"recharts": "3.8.0",
|
|
13
|
+
"shadcn": "^4.23.1",
|
|
14
|
+
"tw-animate-css": "^1.4.0"
|
|
15
|
+
},
|
|
16
|
+
"exports": {
|
|
17
|
+
"./globals.css": "./dist/styles/globals.css",
|
|
18
|
+
"./lib/*": {
|
|
19
|
+
"types": "./dist/lib/*.d.ts",
|
|
20
|
+
"import": "./dist/lib/*.js",
|
|
21
|
+
"default": "./dist/lib/*.js"
|
|
22
|
+
},
|
|
23
|
+
"./components/*": {
|
|
24
|
+
"types": "./dist/components/*.d.ts",
|
|
25
|
+
"import": "./dist/components/*.js",
|
|
26
|
+
"default": "./dist/components/*.js"
|
|
27
|
+
},
|
|
28
|
+
"./hooks/*": {
|
|
29
|
+
"types": "./dist/hooks/*.d.ts",
|
|
30
|
+
"import": "./dist/hooks/*.js",
|
|
31
|
+
"default": "./dist/hooks/*.js"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"publishConfig": {
|
|
35
|
+
"access": "public"
|
|
36
|
+
}
|
|
37
|
+
}
|