shadcn-packaged 2025.4.14 → 2025.6.16-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -31
- package/index.css +112 -138
- package/package.json +38 -38
- package/ui/accordion.d.ts +4 -4
- package/ui/accordion.jsx +20 -15
- package/ui/alert-dialog.d.ts +11 -17
- package/ui/alert-dialog.jsx +36 -23
- package/ui/alert.d.ts +5 -4
- package/ui/alert.jsx +12 -9
- package/ui/aspect-ratio.d.ts +1 -1
- package/ui/aspect-ratio.jsx +3 -1
- package/ui/avatar.d.ts +3 -3
- package/ui/avatar.jsx +9 -6
- package/ui/badge.d.ts +3 -3
- package/ui/badge.jsx +9 -7
- package/ui/breadcrumb.d.ts +8 -16
- package/ui/breadcrumb.jsx +26 -21
- package/ui/button.d.ts +2 -3
- package/ui/button.jsx +13 -14
- package/ui/calendar.d.ts +7 -7
- package/ui/calendar.jsx +70 -30
- package/ui/card.d.ts +8 -7
- package/ui/card.jsx +22 -13
- package/ui/carousel.d.ts +6 -5
- package/ui/carousel.jsx +26 -34
- package/ui/chart.d.ts +6 -28
- package/ui/chart.jsx +37 -40
- package/ui/checkbox.d.ts +1 -1
- package/ui/checkbox.jsx +8 -7
- package/ui/collapsible.d.ts +3 -3
- package/ui/collapsible.jsx +9 -3
- package/ui/command.d.ts +16 -78
- package/ui/command.jsx +37 -27
- package/ui/context-menu.d.ts +19 -21
- package/ui/context-menu.jsx +65 -47
- package/ui/dialog.d.ts +13 -17
- package/ui/dialog.jsx +41 -27
- package/ui/drawer.d.ts +10 -19
- package/ui/drawer.jsx +36 -23
- package/ui/dropdown-menu.d.ts +20 -22
- package/ui/dropdown-menu.jsx +66 -50
- package/ui/form.d.ts +6 -5
- package/ui/form.jsx +19 -23
- package/ui/hover-card.d.ts +3 -3
- package/ui/hover-card.jsx +11 -4
- package/ui/input-otp.d.ts +7 -30
- package/ui/input-otp.jsx +17 -15
- package/ui/input.d.ts +1 -1
- package/ui/input.jsx +3 -4
- package/ui/label.d.ts +1 -2
- package/ui/label.jsx +3 -4
- package/ui/menubar.d.ts +17 -19
- package/ui/menubar.jsx +58 -49
- package/ui/navigation-menu.d.ts +11 -9
- package/ui/navigation-menu.jsx +37 -29
- package/ui/pagination.d.ts +10 -25
- package/ui/pagination.jsx +35 -28
- package/ui/popover.d.ts +5 -4
- package/ui/popover.jsx +15 -7
- package/ui/progress.d.ts +1 -1
- package/ui/progress.jsx +5 -4
- package/ui/radio-group.d.ts +2 -2
- package/ui/radio-group.jsx +9 -11
- package/ui/resizable.d.ts +5 -20
- package/ui/resizable.jsx +15 -8
- package/ui/scroll-area.d.ts +2 -2
- package/ui/scroll-area.jsx +16 -14
- package/ui/select.d.ts +13 -11
- package/ui/select.jsx +58 -47
- package/ui/separator.d.ts +1 -1
- package/ui/separator.jsx +3 -2
- package/ui/sheet.d.ts +11 -23
- package/ui/sheet.jsx +45 -41
- package/ui/sidebar.d.ts +38 -34
- package/ui/sidebar.jsx +109 -122
- package/ui/skeleton.d.ts +1 -1
- package/ui/skeleton.jsx +1 -1
- package/ui/slider.d.ts +1 -1
- package/ui/slider.jsx +13 -7
- package/ui/sonner.d.ts +1 -2
- package/ui/sonner.jsx +4 -7
- package/ui/switch.d.ts +2 -2
- package/ui/switch.jsx +6 -5
- package/ui/table.d.ts +8 -8
- package/ui/table.jsx +27 -18
- package/ui/tabs.d.ts +4 -4
- package/ui/tabs.jsx +12 -7
- package/ui/textarea.d.ts +1 -1
- package/ui/textarea.jsx +3 -4
- package/ui/toggle-group.d.ts +3 -8
- package/ui/toggle-group.jsx +11 -11
- package/ui/toggle.d.ts +1 -4
- package/ui/toggle.jsx +8 -7
- package/ui/tooltip.d.ts +4 -4
- package/ui/tooltip.jsx +19 -5
- package/tailwind.config.js +0 -89
- /package/hooks/{use-mobile.jsx → use-mobile.js} +0 -0
package/README.md
CHANGED
@@ -1,7 +1,5 @@
|
|
1
1
|
# Shadcn Packaged
|
2
2
|
|
3
|
-
> Tailwindcss V4 not tested, please use v3
|
4
|
-
|
5
3
|
This is an npm package that exports all [shadcn/ui](https://ui.shadcn.com/) components without the need for a CLI, designed for ease of use.
|
6
4
|
|
7
5
|
It simply provides all useful files along with type declarations.
|
@@ -16,25 +14,12 @@ Weekly publish latest version components to npm.
|
|
16
14
|
## Install
|
17
15
|
|
18
16
|
```shell
|
19
|
-
npm i
|
17
|
+
npm i class-variance-authority clsx tailwind-merge lucide-react tw-animate-css
|
20
18
|
npm i shadcn-packaged
|
21
19
|
```
|
22
20
|
|
23
21
|
## Configuation
|
24
22
|
|
25
|
-
tailwind.config.js
|
26
|
-
|
27
|
-
```javascript
|
28
|
-
const config = {
|
29
|
-
content: [
|
30
|
-
"...",
|
31
|
-
"./node_modules/shadcn-packaged/**/*.{jsx,js,ts,tsx}"
|
32
|
-
],
|
33
|
-
presets: [require("shadcn-packaged/tailwind.config")]
|
34
|
-
};
|
35
|
-
export default config;
|
36
|
-
```
|
37
|
-
|
38
23
|
For nextjs user, next.config.js
|
39
24
|
|
40
25
|
```javascript
|
@@ -58,12 +43,16 @@ export default defineConfig({
|
|
58
43
|
|
59
44
|
## Usage
|
60
45
|
|
61
|
-
Import style
|
46
|
+
Import default style
|
62
47
|
|
63
|
-
> If you have a fully customized style in global entry css file, you don't need to import it
|
48
|
+
> If you have a fully customized style in global entry css file, see [Custom Theme](#custom-theme), you don't need to import it
|
64
49
|
|
65
|
-
|
66
|
-
|
50
|
+
The global entry css file, `index.css` | `global.css`
|
51
|
+
|
52
|
+
```css
|
53
|
+
@import "shadcn-packaged/index.css";
|
54
|
+
/* source detection, according to the actual path specified */
|
55
|
+
@source "../node_modules/shadcn-packaged";
|
67
56
|
```
|
68
57
|
|
69
58
|
Import code
|
@@ -105,21 +94,31 @@ If the automatic code import does not take effect, please try the following meth
|
|
105
94
|
|
106
95
|
## Custom Theme
|
107
96
|
|
108
|
-
index.css | global.css
|
97
|
+
The global entry css file, `index.css` | `global.css`, more detail see [shadcn theme](https://ui.shadcn.com/docs/theming)
|
109
98
|
|
110
99
|
```css
|
111
|
-
@
|
112
|
-
@
|
113
|
-
@tailwind utilities;
|
100
|
+
@import "tailwindcss";
|
101
|
+
@import "tw-animate-css";
|
114
102
|
|
115
|
-
|
116
|
-
|
117
|
-
/* theme here */
|
118
|
-
}
|
103
|
+
/* source detection, according to the actual path specified */
|
104
|
+
@source "../node_modules/shadcn-packaged";
|
119
105
|
|
120
|
-
|
121
|
-
|
122
|
-
|
106
|
+
@custom-variant dark (&:is(.dark *));
|
107
|
+
|
108
|
+
:root {
|
109
|
+
...
|
110
|
+
}
|
111
|
+
|
112
|
+
.dark {
|
113
|
+
...
|
114
|
+
}
|
115
|
+
|
116
|
+
@theme inline {
|
117
|
+
...
|
118
|
+
}
|
119
|
+
|
120
|
+
@layer base {
|
121
|
+
...
|
123
122
|
}
|
124
123
|
```
|
125
124
|
|
package/index.css
CHANGED
@@ -1,148 +1,122 @@
|
|
1
|
-
@
|
2
|
-
@
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
--input: 0 0% 89.8%;
|
43
|
-
|
44
|
-
--ring: 0 0% 3.9%;
|
45
|
-
|
46
|
-
--chart-1: 12 76% 61%;
|
47
|
-
|
48
|
-
--chart-2: 173 58% 39%;
|
49
|
-
|
50
|
-
--chart-3: 197 37% 24%;
|
51
|
-
|
52
|
-
--chart-4: 43 74% 66%;
|
53
|
-
|
54
|
-
--chart-5: 27 87% 67%;
|
55
|
-
|
56
|
-
--radius: 0.5rem;
|
57
|
-
|
58
|
-
--sidebar-background: 0 0% 98%;
|
59
|
-
|
60
|
-
--sidebar-foreground: 240 5.3% 26.1%;
|
61
|
-
|
62
|
-
--sidebar-primary: 240 5.9% 10%;
|
63
|
-
|
64
|
-
--sidebar-primary-foreground: 0 0% 98%;
|
65
|
-
|
66
|
-
--sidebar-accent: 240 4.8% 95.9%;
|
67
|
-
|
68
|
-
--sidebar-accent-foreground: 240 5.9% 10%;
|
69
|
-
|
70
|
-
--sidebar-border: 220 13% 91%;
|
71
|
-
|
72
|
-
--sidebar-ring: 217.2 91.2% 59.8%}
|
73
|
-
|
74
|
-
.dark {
|
75
|
-
|
76
|
-
--background: 0 0% 3.9%;
|
77
|
-
|
78
|
-
--foreground: 0 0% 98%;
|
79
|
-
|
80
|
-
--card: 0 0% 3.9%;
|
81
|
-
|
82
|
-
--card-foreground: 0 0% 98%;
|
83
|
-
|
84
|
-
--popover: 0 0% 3.9%;
|
85
|
-
|
86
|
-
--popover-foreground: 0 0% 98%;
|
87
|
-
|
88
|
-
--primary: 0 0% 98%;
|
89
|
-
|
90
|
-
--primary-foreground: 0 0% 9%;
|
91
|
-
|
92
|
-
--secondary: 0 0% 14.9%;
|
93
|
-
|
94
|
-
--secondary-foreground: 0 0% 98%;
|
95
|
-
|
96
|
-
--muted: 0 0% 14.9%;
|
97
|
-
|
98
|
-
--muted-foreground: 0 0% 63.9%;
|
99
|
-
|
100
|
-
--accent: 0 0% 14.9%;
|
101
|
-
|
102
|
-
--accent-foreground: 0 0% 98%;
|
103
|
-
|
104
|
-
--destructive: 0 62.8% 30.6%;
|
105
|
-
|
106
|
-
--destructive-foreground: 0 0% 98%;
|
107
|
-
|
108
|
-
--border: 0 0% 14.9%;
|
109
|
-
|
110
|
-
--input: 0 0% 14.9%;
|
111
|
-
|
112
|
-
--ring: 0 0% 83.1%;
|
113
|
-
|
114
|
-
--chart-1: 220 70% 50%;
|
115
|
-
|
116
|
-
--chart-2: 160 60% 45%;
|
117
|
-
|
118
|
-
--chart-3: 30 80% 55%;
|
119
|
-
|
120
|
-
--chart-4: 280 65% 60%;
|
121
|
-
|
122
|
-
--chart-5: 340 75% 55%;
|
123
|
-
|
124
|
-
--sidebar-background: 240 5.9% 10%;
|
125
|
-
|
126
|
-
--sidebar-foreground: 240 4.8% 95.9%;
|
127
|
-
|
128
|
-
--sidebar-primary: 224.3 76.3% 48%;
|
129
|
-
|
130
|
-
--sidebar-primary-foreground: 0 0% 100%;
|
131
|
-
|
132
|
-
--sidebar-accent: 240 3.7% 15.9%;
|
133
|
-
|
134
|
-
--sidebar-accent-foreground: 240 4.8% 95.9%;
|
1
|
+
@import "tailwindcss";
|
2
|
+
@import "tw-animate-css";
|
3
|
+
|
4
|
+
@custom-variant dark (&:is(.dark *));
|
5
|
+
|
6
|
+
:root {
|
7
|
+
--background: oklch(1 0 0);
|
8
|
+
--foreground: oklch(0.145 0 0);
|
9
|
+
--card: oklch(1 0 0);
|
10
|
+
--card-foreground: oklch(0.145 0 0);
|
11
|
+
--popover: oklch(1 0 0);
|
12
|
+
--popover-foreground: oklch(0.145 0 0);
|
13
|
+
--primary: oklch(0.205 0 0);
|
14
|
+
--primary-foreground: oklch(0.985 0 0);
|
15
|
+
--secondary: oklch(0.97 0 0);
|
16
|
+
--secondary-foreground: oklch(0.205 0 0);
|
17
|
+
--muted: oklch(0.97 0 0);
|
18
|
+
--muted-foreground: oklch(0.556 0 0);
|
19
|
+
--accent: oklch(0.97 0 0);
|
20
|
+
--accent-foreground: oklch(0.205 0 0);
|
21
|
+
--destructive: oklch(0.577 0.245 27.325);
|
22
|
+
--destructive-foreground: oklch(0.577 0.245 27.325);
|
23
|
+
--border: oklch(0.922 0 0);
|
24
|
+
--input: oklch(0.922 0 0);
|
25
|
+
--ring: oklch(0.708 0 0);
|
26
|
+
--chart-1: oklch(0.646 0.222 41.116);
|
27
|
+
--chart-2: oklch(0.6 0.118 184.704);
|
28
|
+
--chart-3: oklch(0.398 0.07 227.392);
|
29
|
+
--chart-4: oklch(0.828 0.189 84.429);
|
30
|
+
--chart-5: oklch(0.769 0.188 70.08);
|
31
|
+
--radius: 0.625rem;
|
32
|
+
--sidebar: oklch(0.985 0 0);
|
33
|
+
--sidebar-foreground: oklch(0.145 0 0);
|
34
|
+
--sidebar-primary: oklch(0.205 0 0);
|
35
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
36
|
+
--sidebar-accent: oklch(0.97 0 0);
|
37
|
+
--sidebar-accent-foreground: oklch(0.205 0 0);
|
38
|
+
--sidebar-border: oklch(0.922 0 0);
|
39
|
+
--sidebar-ring: oklch(0.708 0 0);
|
40
|
+
}
|
135
41
|
|
136
|
-
|
42
|
+
.dark {
|
43
|
+
--background: oklch(0.145 0 0);
|
44
|
+
--foreground: oklch(0.985 0 0);
|
45
|
+
--card: oklch(0.145 0 0);
|
46
|
+
--card-foreground: oklch(0.985 0 0);
|
47
|
+
--popover: oklch(0.145 0 0);
|
48
|
+
--popover-foreground: oklch(0.985 0 0);
|
49
|
+
--primary: oklch(0.985 0 0);
|
50
|
+
--primary-foreground: oklch(0.205 0 0);
|
51
|
+
--secondary: oklch(0.269 0 0);
|
52
|
+
--secondary-foreground: oklch(0.985 0 0);
|
53
|
+
--muted: oklch(0.269 0 0);
|
54
|
+
--muted-foreground: oklch(0.708 0 0);
|
55
|
+
--accent: oklch(0.269 0 0);
|
56
|
+
--accent-foreground: oklch(0.985 0 0);
|
57
|
+
--destructive: oklch(0.396 0.141 25.723);
|
58
|
+
--destructive-foreground: oklch(0.637 0.237 25.331);
|
59
|
+
--border: oklch(0.269 0 0);
|
60
|
+
--input: oklch(0.269 0 0);
|
61
|
+
--ring: oklch(0.439 0 0);
|
62
|
+
--chart-1: oklch(0.488 0.243 264.376);
|
63
|
+
--chart-2: oklch(0.696 0.17 162.48);
|
64
|
+
--chart-3: oklch(0.769 0.188 70.08);
|
65
|
+
--chart-4: oklch(0.627 0.265 303.9);
|
66
|
+
--chart-5: oklch(0.645 0.246 16.439);
|
67
|
+
--sidebar: oklch(0.205 0 0);
|
68
|
+
--sidebar-foreground: oklch(0.985 0 0);
|
69
|
+
--sidebar-primary: oklch(0.488 0.243 264.376);
|
70
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
71
|
+
--sidebar-accent: oklch(0.269 0 0);
|
72
|
+
--sidebar-accent-foreground: oklch(0.985 0 0);
|
73
|
+
--sidebar-border: oklch(0.269 0 0);
|
74
|
+
--sidebar-ring: oklch(0.439 0 0);
|
75
|
+
}
|
137
76
|
|
138
|
-
|
77
|
+
@theme inline {
|
78
|
+
--color-background: var(--background);
|
79
|
+
--color-foreground: var(--foreground);
|
80
|
+
--color-card: var(--card);
|
81
|
+
--color-card-foreground: var(--card-foreground);
|
82
|
+
--color-popover: var(--popover);
|
83
|
+
--color-popover-foreground: var(--popover-foreground);
|
84
|
+
--color-primary: var(--primary);
|
85
|
+
--color-primary-foreground: var(--primary-foreground);
|
86
|
+
--color-secondary: var(--secondary);
|
87
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
88
|
+
--color-muted: var(--muted);
|
89
|
+
--color-muted-foreground: var(--muted-foreground);
|
90
|
+
--color-accent: var(--accent);
|
91
|
+
--color-accent-foreground: var(--accent-foreground);
|
92
|
+
--color-destructive: var(--destructive);
|
93
|
+
--color-destructive-foreground: var(--destructive-foreground);
|
94
|
+
--color-border: var(--border);
|
95
|
+
--color-input: var(--input);
|
96
|
+
--color-ring: var(--ring);
|
97
|
+
--color-chart-1: var(--chart-1);
|
98
|
+
--color-chart-2: var(--chart-2);
|
99
|
+
--color-chart-3: var(--chart-3);
|
100
|
+
--color-chart-4: var(--chart-4);
|
101
|
+
--color-chart-5: var(--chart-5);
|
102
|
+
--radius-sm: calc(var(--radius) - 4px);
|
103
|
+
--radius-md: calc(var(--radius) - 2px);
|
104
|
+
--radius-lg: var(--radius);
|
105
|
+
--radius-xl: calc(var(--radius) + 4px);
|
106
|
+
--color-sidebar: var(--sidebar);
|
107
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
108
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
109
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
110
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
111
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
112
|
+
--color-sidebar-border: var(--sidebar-border);
|
113
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
139
114
|
}
|
140
115
|
|
141
116
|
@layer base {
|
142
117
|
* {
|
143
|
-
@apply border-border;
|
118
|
+
@apply border-border outline-ring/50;
|
144
119
|
}
|
145
|
-
|
146
120
|
body {
|
147
121
|
@apply bg-background text-foreground;
|
148
122
|
}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "shadcn-packaged",
|
3
3
|
"private": false,
|
4
|
-
"version": "2025.
|
4
|
+
"version": "2025.6.16-1",
|
5
5
|
"type": "module",
|
6
6
|
"module": "index.mjs",
|
7
7
|
"scripts": {
|
@@ -10,7 +10,7 @@
|
|
10
10
|
"shadcn:clean": "rm -rf lib ui hooks dist ~shadcn-packaged/hooks ~shadcn-packaged/ui",
|
11
11
|
"shadcn:generate": "npx shadcn@latest add -a -y -o && node ./modify.mjs",
|
12
12
|
"shadcn:tsc": "npm run shadcn:tsc:preinstall && tsc -p tsconfig.json && node ./types.mjs",
|
13
|
-
"shadcn:tsc:preinstall": "npm install -D
|
13
|
+
"shadcn:tsc:preinstall": "npm install -D class-variance-authority clsx tailwind-merge lucide-react tw-animate-css",
|
14
14
|
"shadcn:move": "mv dist/* ./"
|
15
15
|
},
|
16
16
|
"types": "index.d.ts",
|
@@ -24,45 +24,45 @@
|
|
24
24
|
"index.mjs"
|
25
25
|
],
|
26
26
|
"dependencies": {
|
27
|
-
"@hookform/resolvers": "^5.
|
28
|
-
"@radix-ui/react-accordion": "^1.2.
|
29
|
-
"@radix-ui/react-alert-dialog": "^1.1.
|
30
|
-
"@radix-ui/react-aspect-ratio": "^1.1.
|
31
|
-
"@radix-ui/react-avatar": "^1.1.
|
32
|
-
"@radix-ui/react-checkbox": "^1.
|
33
|
-
"@radix-ui/react-collapsible": "^1.1.
|
34
|
-
"@radix-ui/react-context-menu": "^2.2.
|
35
|
-
"@radix-ui/react-dialog": "^1.1.
|
36
|
-
"@radix-ui/react-dropdown-menu": "^2.1.
|
37
|
-
"@radix-ui/react-hover-card": "^1.1.
|
38
|
-
"@radix-ui/react-label": "^2.1.
|
39
|
-
"@radix-ui/react-menubar": "^1.1.
|
40
|
-
"@radix-ui/react-navigation-menu": "^1.2.
|
41
|
-
"@radix-ui/react-popover": "^1.1.
|
42
|
-
"@radix-ui/react-progress": "^1.1.
|
43
|
-
"@radix-ui/react-radio-group": "^1.
|
44
|
-
"@radix-ui/react-scroll-area": "^1.2.
|
45
|
-
"@radix-ui/react-select": "^2.
|
46
|
-
"@radix-ui/react-separator": "^1.1.
|
47
|
-
"@radix-ui/react-slider": "^1.
|
48
|
-
"@radix-ui/react-slot": "^1.2.
|
49
|
-
"@radix-ui/react-switch": "^1.
|
50
|
-
"@radix-ui/react-tabs": "^1.1.
|
51
|
-
"@radix-ui/react-toggle": "^1.1.
|
52
|
-
"@radix-ui/react-toggle-group": "^1.1.
|
53
|
-
"@radix-ui/react-tooltip": "^1.2.
|
27
|
+
"@hookform/resolvers": "^5.1.1",
|
28
|
+
"@radix-ui/react-accordion": "^1.2.11",
|
29
|
+
"@radix-ui/react-alert-dialog": "^1.1.14",
|
30
|
+
"@radix-ui/react-aspect-ratio": "^1.1.7",
|
31
|
+
"@radix-ui/react-avatar": "^1.1.10",
|
32
|
+
"@radix-ui/react-checkbox": "^1.3.2",
|
33
|
+
"@radix-ui/react-collapsible": "^1.1.11",
|
34
|
+
"@radix-ui/react-context-menu": "^2.2.15",
|
35
|
+
"@radix-ui/react-dialog": "^1.1.14",
|
36
|
+
"@radix-ui/react-dropdown-menu": "^2.1.15",
|
37
|
+
"@radix-ui/react-hover-card": "^1.1.14",
|
38
|
+
"@radix-ui/react-label": "^2.1.7",
|
39
|
+
"@radix-ui/react-menubar": "^1.1.15",
|
40
|
+
"@radix-ui/react-navigation-menu": "^1.2.13",
|
41
|
+
"@radix-ui/react-popover": "^1.1.14",
|
42
|
+
"@radix-ui/react-progress": "^1.1.7",
|
43
|
+
"@radix-ui/react-radio-group": "^1.3.7",
|
44
|
+
"@radix-ui/react-scroll-area": "^1.2.9",
|
45
|
+
"@radix-ui/react-select": "^2.2.5",
|
46
|
+
"@radix-ui/react-separator": "^1.1.7",
|
47
|
+
"@radix-ui/react-slider": "^1.3.5",
|
48
|
+
"@radix-ui/react-slot": "^1.2.3",
|
49
|
+
"@radix-ui/react-switch": "^1.2.5",
|
50
|
+
"@radix-ui/react-tabs": "^1.1.12",
|
51
|
+
"@radix-ui/react-toggle": "^1.1.9",
|
52
|
+
"@radix-ui/react-toggle-group": "^1.1.10",
|
53
|
+
"@radix-ui/react-tooltip": "^1.2.7",
|
54
54
|
"cmdk": "^1.1.1",
|
55
55
|
"date-fns": "^4.1.0",
|
56
56
|
"embla-carousel-react": "^8.6.0",
|
57
57
|
"input-otp": "^1.4.2",
|
58
58
|
"next-themes": "^0.4.6",
|
59
|
-
"react-day-picker": "^
|
60
|
-
"react-hook-form": "^7.
|
61
|
-
"react-resizable-panels": "^
|
62
|
-
"recharts": "^2.15.
|
63
|
-
"sonner": "^2.0.
|
59
|
+
"react-day-picker": "^9.7.0",
|
60
|
+
"react-hook-form": "^7.58.0",
|
61
|
+
"react-resizable-panels": "^3.0.3",
|
62
|
+
"recharts": "^2.15.3",
|
63
|
+
"sonner": "^2.0.5",
|
64
64
|
"vaul": "^1.1.2",
|
65
|
-
"zod": "^3.
|
65
|
+
"zod": "^3.25.64"
|
66
66
|
},
|
67
67
|
"devDependencies": {
|
68
68
|
"@types/node": "^22.10.7",
|
@@ -71,10 +71,10 @@
|
|
71
71
|
"class-variance-authority": "^0.7.1",
|
72
72
|
"clsx": "^2.1.1",
|
73
73
|
"globals": "^15.14.0",
|
74
|
-
"lucide-react": "^0.
|
75
|
-
"tailwind-merge": "^3.
|
74
|
+
"lucide-react": "^0.515.0",
|
75
|
+
"tailwind-merge": "^3.3.1",
|
76
76
|
"tailwindcss": "^3.4.17",
|
77
|
-
"
|
77
|
+
"tw-animate-css": "^1.3.4",
|
78
78
|
"typescript": "~5.6.2"
|
79
79
|
}
|
80
80
|
}
|
package/ui/accordion.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as React from "react";
|
2
2
|
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
3
|
-
declare
|
4
|
-
declare
|
5
|
-
declare
|
6
|
-
declare
|
3
|
+
declare function Accordion({ ...props }: React.ComponentProps<typeof AccordionPrimitive.Root>): React.JSX.Element;
|
4
|
+
declare function AccordionItem({ className, ...props }: React.ComponentProps<typeof AccordionPrimitive.Item>): React.JSX.Element;
|
5
|
+
declare function AccordionTrigger({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Trigger>): React.JSX.Element;
|
6
|
+
declare function AccordionContent({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Content>): React.JSX.Element;
|
7
7
|
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
|
package/ui/accordion.jsx
CHANGED
@@ -1,20 +1,25 @@
|
|
1
1
|
"use client";
|
2
2
|
import * as React from "react";
|
3
3
|
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
4
|
-
import {
|
4
|
+
import { ChevronDownIcon } from "lucide-react";
|
5
5
|
import { cn } from "../lib/utils";
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
<AccordionPrimitive.
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
6
|
+
function Accordion({ ...props }) {
|
7
|
+
return <AccordionPrimitive.Root data-slot="accordion" {...props}/>;
|
8
|
+
}
|
9
|
+
function AccordionItem({ className, ...props }) {
|
10
|
+
return (<AccordionPrimitive.Item data-slot="accordion-item" className={cn("border-b last:border-b-0", className)} {...props}/>);
|
11
|
+
}
|
12
|
+
function AccordionTrigger({ className, children, ...props }) {
|
13
|
+
return (<AccordionPrimitive.Header className="flex">
|
14
|
+
<AccordionPrimitive.Trigger data-slot="accordion-trigger" className={cn("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180", className)} {...props}>
|
15
|
+
{children}
|
16
|
+
<ChevronDownIcon className="text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"/>
|
17
|
+
</AccordionPrimitive.Trigger>
|
18
|
+
</AccordionPrimitive.Header>);
|
19
|
+
}
|
20
|
+
function AccordionContent({ className, children, ...props }) {
|
21
|
+
return (<AccordionPrimitive.Content data-slot="accordion-content" className="data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm" {...props}>
|
22
|
+
<div className={cn("pt-0 pb-4", className)}>{children}</div>
|
23
|
+
</AccordionPrimitive.Content>);
|
24
|
+
}
|
20
25
|
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
|
package/ui/alert-dialog.d.ts
CHANGED
@@ -1,20 +1,14 @@
|
|
1
1
|
import * as React from "react";
|
2
2
|
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
3
|
-
declare
|
4
|
-
declare
|
5
|
-
declare
|
6
|
-
declare
|
7
|
-
declare
|
8
|
-
declare
|
9
|
-
|
10
|
-
|
11
|
-
};
|
12
|
-
declare
|
13
|
-
|
14
|
-
displayName: string;
|
15
|
-
};
|
16
|
-
declare const AlertDialogTitle: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
17
|
-
declare const AlertDialogDescription: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
18
|
-
declare const AlertDialogAction: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
19
|
-
declare const AlertDialogCancel: React.ForwardRefExoticComponent<Omit<AlertDialogPrimitive.AlertDialogCancelProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
3
|
+
declare function AlertDialog({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Root>): React.JSX.Element;
|
4
|
+
declare function AlertDialogTrigger({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>): React.JSX.Element;
|
5
|
+
declare function AlertDialogPortal({ ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>): React.JSX.Element;
|
6
|
+
declare function AlertDialogOverlay({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>): React.JSX.Element;
|
7
|
+
declare function AlertDialogContent({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Content>): React.JSX.Element;
|
8
|
+
declare function AlertDialogHeader({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
9
|
+
declare function AlertDialogFooter({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
10
|
+
declare function AlertDialogTitle({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Title>): React.JSX.Element;
|
11
|
+
declare function AlertDialogDescription({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Description>): React.JSX.Element;
|
12
|
+
declare function AlertDialogAction({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Action>): React.JSX.Element;
|
13
|
+
declare function AlertDialogCancel({ className, ...props }: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>): React.JSX.Element;
|
20
14
|
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
package/ui/alert-dialog.jsx
CHANGED
@@ -3,27 +3,40 @@ import * as React from "react";
|
|
3
3
|
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
4
4
|
import { cn } from "../lib/utils";
|
5
5
|
import { buttonVariants } from "../ui/button";
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
<AlertDialogPrimitive.
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
6
|
+
function AlertDialog({ ...props }) {
|
7
|
+
return <AlertDialogPrimitive.Root data-slot="alert-dialog" {...props}/>;
|
8
|
+
}
|
9
|
+
function AlertDialogTrigger({ ...props }) {
|
10
|
+
return (<AlertDialogPrimitive.Trigger data-slot="alert-dialog-trigger" {...props}/>);
|
11
|
+
}
|
12
|
+
function AlertDialogPortal({ ...props }) {
|
13
|
+
return (<AlertDialogPrimitive.Portal data-slot="alert-dialog-portal" {...props}/>);
|
14
|
+
}
|
15
|
+
function AlertDialogOverlay({ className, ...props }) {
|
16
|
+
return (<AlertDialogPrimitive.Overlay data-slot="alert-dialog-overlay" className={cn("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", className)} {...props}/>);
|
17
|
+
}
|
18
|
+
function AlertDialogContent({ className, ...props }) {
|
19
|
+
return (<AlertDialogPortal>
|
20
|
+
<AlertDialogOverlay />
|
21
|
+
<AlertDialogPrimitive.Content data-slot="alert-dialog-content" className={cn("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg", className)} {...props}/>
|
22
|
+
</AlertDialogPortal>);
|
23
|
+
}
|
24
|
+
function AlertDialogHeader({ className, ...props }) {
|
25
|
+
return (<div data-slot="alert-dialog-header" className={cn("flex flex-col gap-2 text-center sm:text-left", className)} {...props}/>);
|
26
|
+
}
|
27
|
+
function AlertDialogFooter({ className, ...props }) {
|
28
|
+
return (<div data-slot="alert-dialog-footer" className={cn("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", className)} {...props}/>);
|
29
|
+
}
|
30
|
+
function AlertDialogTitle({ className, ...props }) {
|
31
|
+
return (<AlertDialogPrimitive.Title data-slot="alert-dialog-title" className={cn("text-lg font-semibold", className)} {...props}/>);
|
32
|
+
}
|
33
|
+
function AlertDialogDescription({ className, ...props }) {
|
34
|
+
return (<AlertDialogPrimitive.Description data-slot="alert-dialog-description" className={cn("text-muted-foreground text-sm", className)} {...props}/>);
|
35
|
+
}
|
36
|
+
function AlertDialogAction({ className, ...props }) {
|
37
|
+
return (<AlertDialogPrimitive.Action className={cn(buttonVariants(), className)} {...props}/>);
|
38
|
+
}
|
39
|
+
function AlertDialogCancel({ className, ...props }) {
|
40
|
+
return (<AlertDialogPrimitive.Cancel className={cn(buttonVariants({ variant: "outline" }), className)} {...props}/>);
|
41
|
+
}
|
29
42
|
export { AlertDialog, AlertDialogPortal, AlertDialogOverlay, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, };
|
package/ui/alert.d.ts
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
import * as React from "react";
|
2
2
|
import { type VariantProps } from "class-variance-authority";
|
3
|
-
declare const
|
3
|
+
declare const alertVariants: (props?: {
|
4
4
|
variant?: "default" | "destructive";
|
5
|
-
} & import("class-variance-authority/dist/types").ClassProp) => string
|
6
|
-
declare
|
7
|
-
declare
|
5
|
+
} & import("class-variance-authority/dist/types").ClassProp) => string;
|
6
|
+
declare function Alert({ className, variant, ...props }: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>): React.JSX.Element;
|
7
|
+
declare function AlertTitle({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
8
|
+
declare function AlertDescription({ className, ...props }: React.ComponentProps<"div">): React.JSX.Element;
|
8
9
|
export { Alert, AlertTitle, AlertDescription };
|