@arolariu/components 0.0.31 → 0.0.32
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/LICENSE +21 -0
- package/dist/cjs/components/ui/alert-dialog.cjs.map +1 -1
- package/dist/cjs/components/ui/alert.cjs +1 -1
- package/dist/cjs/components/ui/alert.cjs.map +1 -1
- package/dist/cjs/components/ui/aspect-ratio.cjs.map +1 -1
- package/dist/cjs/components/ui/avatar.cjs.map +1 -1
- package/dist/cjs/components/ui/badge.cjs.map +1 -1
- package/dist/cjs/components/ui/breadcrumb.cjs.map +1 -1
- package/dist/cjs/components/ui/button.cjs.map +1 -1
- package/dist/cjs/components/ui/calendar.cjs.map +1 -1
- package/dist/cjs/components/ui/card.cjs.map +1 -1
- package/dist/cjs/components/ui/carousel.cjs.map +1 -1
- package/dist/cjs/components/ui/chart.cjs.map +1 -1
- package/dist/cjs/components/ui/checkbox.cjs.map +1 -1
- package/dist/cjs/components/ui/collapsible.cjs.map +1 -1
- package/dist/cjs/components/ui/command.cjs.map +1 -1
- package/dist/cjs/components/ui/context-menu.cjs.map +1 -1
- package/dist/cjs/components/ui/drawer.cjs.map +1 -1
- package/dist/cjs/components/ui/dropdown-menu.cjs.map +1 -1
- package/dist/cjs/components/ui/form.cjs.map +1 -1
- package/dist/cjs/components/ui/hover-card.cjs.map +1 -1
- package/dist/cjs/components/ui/input-otp.cjs.map +1 -1
- package/dist/cjs/components/ui/input.cjs.map +1 -1
- package/dist/cjs/components/ui/label.cjs.map +1 -1
- package/dist/cjs/components/ui/menubar.cjs.map +1 -1
- package/dist/cjs/components/ui/navigation-menu.cjs.map +1 -1
- package/dist/cjs/components/ui/pagination.cjs.map +1 -1
- package/dist/cjs/components/ui/popover.cjs.map +1 -1
- package/dist/cjs/components/ui/progress.cjs.map +1 -1
- package/dist/cjs/components/ui/radio-group.cjs.map +1 -1
- package/dist/cjs/components/ui/resizable.cjs.map +1 -1
- package/dist/cjs/components/ui/scroll-area.cjs.map +1 -1
- package/dist/cjs/components/ui/select.cjs.map +1 -1
- package/dist/cjs/components/ui/separator.cjs.map +1 -1
- package/dist/cjs/components/ui/sheet.cjs.map +1 -1
- package/dist/cjs/components/ui/sidebar.cjs.map +1 -1
- package/dist/cjs/components/ui/skeleton.cjs.map +1 -1
- package/dist/cjs/components/ui/slider.cjs.map +1 -1
- package/dist/cjs/components/ui/sonner.cjs.map +1 -1
- package/dist/cjs/components/ui/switch.cjs.map +1 -1
- package/dist/cjs/components/ui/table.cjs.map +1 -1
- package/dist/cjs/components/ui/tabs.cjs.map +1 -1
- package/dist/cjs/components/ui/textarea.cjs.map +1 -1
- package/dist/cjs/components/ui/toggle-group.cjs.map +1 -1
- package/dist/cjs/components/ui/toggle.cjs.map +1 -1
- package/dist/cjs/components/ui/tooltip.cjs.map +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/index.css +1 -0
- package/dist/esm/components/ui/alert-dialog.js.map +1 -1
- package/dist/esm/components/ui/alert.js +8 -8
- package/dist/esm/components/ui/alert.js.map +1 -1
- package/dist/esm/components/ui/aspect-ratio.js.map +1 -1
- package/dist/esm/components/ui/avatar.js.map +1 -1
- package/dist/esm/components/ui/badge.js.map +1 -1
- package/dist/esm/components/ui/breadcrumb.js.map +1 -1
- package/dist/esm/components/ui/button.js.map +1 -1
- package/dist/esm/components/ui/calendar.js.map +1 -1
- package/dist/esm/components/ui/card.js.map +1 -1
- package/dist/esm/components/ui/carousel.js.map +1 -1
- package/dist/esm/components/ui/chart.js.map +1 -1
- package/dist/esm/components/ui/checkbox.js.map +1 -1
- package/dist/esm/components/ui/collapsible.js.map +1 -1
- package/dist/esm/components/ui/command.js.map +1 -1
- package/dist/esm/components/ui/context-menu.js.map +1 -1
- package/dist/esm/components/ui/drawer.js.map +1 -1
- package/dist/esm/components/ui/dropdown-menu.js.map +1 -1
- package/dist/esm/components/ui/form.js.map +1 -1
- package/dist/esm/components/ui/hover-card.js.map +1 -1
- package/dist/esm/components/ui/input-otp.js.map +1 -1
- package/dist/esm/components/ui/input.js.map +1 -1
- package/dist/esm/components/ui/label.js.map +1 -1
- package/dist/esm/components/ui/menubar.js.map +1 -1
- package/dist/esm/components/ui/navigation-menu.js.map +1 -1
- package/dist/esm/components/ui/pagination.js.map +1 -1
- package/dist/esm/components/ui/popover.js.map +1 -1
- package/dist/esm/components/ui/progress.js.map +1 -1
- package/dist/esm/components/ui/radio-group.js.map +1 -1
- package/dist/esm/components/ui/resizable.js.map +1 -1
- package/dist/esm/components/ui/scroll-area.js.map +1 -1
- package/dist/esm/components/ui/select.js.map +1 -1
- package/dist/esm/components/ui/separator.js.map +1 -1
- package/dist/esm/components/ui/sheet.js.map +1 -1
- package/dist/esm/components/ui/sidebar.js.map +1 -1
- package/dist/esm/components/ui/skeleton.js.map +1 -1
- package/dist/esm/components/ui/slider.js.map +1 -1
- package/dist/esm/components/ui/sonner.js.map +1 -1
- package/dist/esm/components/ui/switch.js.map +1 -1
- package/dist/esm/components/ui/table.js.map +1 -1
- package/dist/esm/components/ui/tabs.js.map +1 -1
- package/dist/esm/components/ui/textarea.js.map +1 -1
- package/dist/esm/components/ui/toggle-group.js.map +1 -1
- package/dist/esm/components/ui/toggle.js.map +1 -1
- package/dist/esm/components/ui/tooltip.js.map +1 -1
- package/dist/esm/index.css +1 -0
- package/dist/esm/index.js +294 -293
- package/dist/esm/index.js.map +1 -1
- package/dist/index.css +1 -0
- package/dist/index.js +298 -0
- package/dist/types/components/ui/alert.d.ts.map +1 -1
- package/dist/types/components/ui/form.d.ts.map +1 -1
- package/package.json +76 -45
- package/src/components/ui/alert-dialog.tsx +160 -160
- package/src/components/ui/alert.tsx +2 -0
- package/src/components/ui/aspect-ratio.tsx +12 -12
- package/src/components/ui/avatar.tsx +52 -52
- package/src/components/ui/badge.tsx +47 -47
- package/src/components/ui/breadcrumb.tsx +116 -116
- package/src/components/ui/button.tsx +60 -60
- package/src/components/ui/calendar.tsx +75 -75
- package/src/components/ui/card.tsx +79 -79
- package/src/components/ui/carousel.tsx +240 -240
- package/src/components/ui/chart.tsx +352 -352
- package/src/components/ui/checkbox.tsx +31 -31
- package/src/components/ui/collapsible.tsx +34 -34
- package/src/components/ui/command.tsx +176 -176
- package/src/components/ui/context-menu.tsx +254 -254
- package/src/components/ui/drawer.tsx +137 -137
- package/src/components/ui/dropdown-menu.tsx +259 -259
- package/src/components/ui/form.tsx +173 -173
- package/src/components/ui/hover-card.tsx +41 -41
- package/src/components/ui/input-otp.tsx +77 -77
- package/src/components/ui/input.tsx +22 -22
- package/src/components/ui/label.tsx +23 -23
- package/src/components/ui/menubar.tsx +278 -278
- package/src/components/ui/navigation-menu.tsx +170 -170
- package/src/components/ui/pagination.tsx +128 -128
- package/src/components/ui/popover.tsx +47 -47
- package/src/components/ui/progress.tsx +30 -30
- package/src/components/ui/radio-group.tsx +44 -44
- package/src/components/ui/resizable.tsx +55 -55
- package/src/components/ui/scroll-area.tsx +57 -57
- package/src/components/ui/select.tsx +183 -183
- package/src/components/ui/separator.tsx +27 -27
- package/src/components/ui/sheet.tsx +144 -144
- package/src/components/ui/sidebar.tsx +725 -725
- package/src/components/ui/skeleton.tsx +17 -17
- package/src/components/ui/slider.tsx +62 -62
- package/src/components/ui/sonner.tsx +30 -30
- package/src/components/ui/switch.tsx +30 -30
- package/src/components/ui/table.tsx +118 -118
- package/src/components/ui/tabs.tsx +65 -65
- package/src/components/ui/textarea.tsx +19 -19
- package/src/components/ui/toggle-group.tsx +72 -72
- package/src/components/ui/toggle.tsx +46 -46
- package/src/components/ui/tooltip.tsx +60 -60
- package/src/index.css +3 -107
- package/src/index.ts +2 -0
- package/tailwind.config.mjs +67 -0
- package/tsconfig.json +4 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arolariu/components",
|
|
3
3
|
"displayName": "@arolariu/components",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.32",
|
|
5
5
|
"description": "A collection of reusable components for React applications, built as ESM & CJS modules with tree shake, minify and bundler optimizations enabled, for the lowest bundle size (import cost)!",
|
|
6
6
|
"homepage": "https://arolariu.ro",
|
|
7
7
|
"repository": {
|
|
@@ -20,16 +20,34 @@
|
|
|
20
20
|
"source": "src/index.ts",
|
|
21
21
|
"main": "dist/cjs/index.cjs",
|
|
22
22
|
"module": "dist/esm/index.js",
|
|
23
|
+
"style": "dist/index.css",
|
|
23
24
|
"types": "dist/types/index.d.ts",
|
|
24
25
|
"typings": "dist/types/index.d.ts",
|
|
26
|
+
"typesVersions": {
|
|
27
|
+
"*": {
|
|
28
|
+
"*": [
|
|
29
|
+
"./dist/types/*"
|
|
30
|
+
],
|
|
31
|
+
".": [
|
|
32
|
+
"./dist/types/index.d.ts"
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
},
|
|
25
36
|
"files": [
|
|
26
37
|
"dist",
|
|
27
38
|
"src",
|
|
28
|
-
"
|
|
39
|
+
"LICENSE",
|
|
40
|
+
"readme.md",
|
|
41
|
+
"tsconfig.json",
|
|
42
|
+
"tailwind.config.mjs"
|
|
29
43
|
],
|
|
30
44
|
"engines": {
|
|
31
45
|
"node": ">=20"
|
|
32
46
|
},
|
|
47
|
+
"publishConfig": {
|
|
48
|
+
"access": "public",
|
|
49
|
+
"registry": "https://registry.npmjs.org/"
|
|
50
|
+
},
|
|
33
51
|
"keywords": [
|
|
34
52
|
"Component Library",
|
|
35
53
|
"ReactJS",
|
|
@@ -43,45 +61,48 @@
|
|
|
43
61
|
},
|
|
44
62
|
"packageManager": "yarn@4.6.0+sha512.5383cc12567a95f1d668fbe762dfe0075c595b4bfff433be478dbbe24e05251a8e8c3eb992a986667c1d53b6c3a9c85b8398c35a960587fbd9fa3a0915406728",
|
|
45
63
|
"scripts": {
|
|
46
|
-
"build": "npm run build:clean && npm run build:cjs && npm run build:esm && npm run build:types && npm run build:exports",
|
|
64
|
+
"build": "npm run build:clean && npm run build:cjs && npm run build:esm && npm run build:types && npm run build:exports && npm run build:copy",
|
|
47
65
|
"build:clean": "rimraf dist",
|
|
66
|
+
"build:copy": "npx tsx scripts/copy-files.ts",
|
|
48
67
|
"build:cjs": "vite build --config vite.config.cjs.ts",
|
|
49
68
|
"build:esm": "vite build --config vite.config.esm.ts",
|
|
50
69
|
"build:types": "tsc --project ./tsconfig.declarations.json && tsc-alias",
|
|
51
70
|
"build:exports": "npx tsx scripts/generate-exports.ts",
|
|
52
|
-
"dev": "vite",
|
|
53
71
|
"preview": "vite preview",
|
|
54
72
|
"storybook": "storybook dev -p 6006",
|
|
55
|
-
"build-storybook": "storybook build"
|
|
73
|
+
"build-storybook": "storybook build",
|
|
74
|
+
"//": "↓↓↓ DEPRECATED ↓↓↓ Feel free to patch the package.",
|
|
75
|
+
"dev": "vite",
|
|
76
|
+
"build:umd": "vite build --config vite.config.umd.ts"
|
|
56
77
|
},
|
|
57
78
|
"dependencies": {
|
|
58
79
|
"@hookform/resolvers": "^4.1.2",
|
|
59
|
-
"@radix-ui/react-accordion": "
|
|
60
|
-
"@radix-ui/react-alert-dialog": "
|
|
61
|
-
"@radix-ui/react-aspect-ratio": "
|
|
62
|
-
"@radix-ui/react-avatar": "
|
|
63
|
-
"@radix-ui/react-checkbox": "
|
|
64
|
-
"@radix-ui/react-collapsible": "
|
|
65
|
-
"@radix-ui/react-context-menu": "
|
|
66
|
-
"@radix-ui/react-dialog": "
|
|
67
|
-
"@radix-ui/react-dropdown-menu": "
|
|
68
|
-
"@radix-ui/react-hover-card": "
|
|
69
|
-
"@radix-ui/react-label": "
|
|
70
|
-
"@radix-ui/react-menubar": "
|
|
71
|
-
"@radix-ui/react-navigation-menu": "
|
|
72
|
-
"@radix-ui/react-popover": "
|
|
73
|
-
"@radix-ui/react-progress": "
|
|
74
|
-
"@radix-ui/react-radio-group": "
|
|
75
|
-
"@radix-ui/react-scroll-area": "
|
|
76
|
-
"@radix-ui/react-select": "
|
|
77
|
-
"@radix-ui/react-separator": "
|
|
78
|
-
"@radix-ui/react-slider": "
|
|
79
|
-
"@radix-ui/react-slot": "
|
|
80
|
-
"@radix-ui/react-switch": "
|
|
81
|
-
"@radix-ui/react-tabs": "
|
|
82
|
-
"@radix-ui/react-toggle": "
|
|
83
|
-
"@radix-ui/react-toggle-group": "
|
|
84
|
-
"@radix-ui/react-tooltip": "
|
|
80
|
+
"@radix-ui/react-accordion": "1.2.3",
|
|
81
|
+
"@radix-ui/react-alert-dialog": "1.1.6",
|
|
82
|
+
"@radix-ui/react-aspect-ratio": "1.1.2",
|
|
83
|
+
"@radix-ui/react-avatar": "1.1.3",
|
|
84
|
+
"@radix-ui/react-checkbox": "1.1.4",
|
|
85
|
+
"@radix-ui/react-collapsible": "1.1.3",
|
|
86
|
+
"@radix-ui/react-context-menu": "2.2.6",
|
|
87
|
+
"@radix-ui/react-dialog": "1.1.6",
|
|
88
|
+
"@radix-ui/react-dropdown-menu": "2.1.6",
|
|
89
|
+
"@radix-ui/react-hover-card": "1.1.6",
|
|
90
|
+
"@radix-ui/react-label": "2.1.2",
|
|
91
|
+
"@radix-ui/react-menubar": "1.1.6",
|
|
92
|
+
"@radix-ui/react-navigation-menu": "1.2.5",
|
|
93
|
+
"@radix-ui/react-popover": "1.1.6",
|
|
94
|
+
"@radix-ui/react-progress": "1.1.2",
|
|
95
|
+
"@radix-ui/react-radio-group": "1.2.3",
|
|
96
|
+
"@radix-ui/react-scroll-area": "1.2.3",
|
|
97
|
+
"@radix-ui/react-select": "2.1.6",
|
|
98
|
+
"@radix-ui/react-separator": "1.1.2",
|
|
99
|
+
"@radix-ui/react-slider": "1.2.3",
|
|
100
|
+
"@radix-ui/react-slot": "1.1.2",
|
|
101
|
+
"@radix-ui/react-switch": "1.1.3",
|
|
102
|
+
"@radix-ui/react-tabs": "1.1.3",
|
|
103
|
+
"@radix-ui/react-toggle": "1.1.2",
|
|
104
|
+
"@radix-ui/react-toggle-group": "1.1.2",
|
|
105
|
+
"@radix-ui/react-tooltip": "1.1.8",
|
|
85
106
|
"class-variance-authority": "^0.7.1",
|
|
86
107
|
"clsx": "2.1.1",
|
|
87
108
|
"cmdk": "1.0.0",
|
|
@@ -102,18 +123,19 @@
|
|
|
102
123
|
},
|
|
103
124
|
"peerDependencies": {
|
|
104
125
|
"react": "19.0.0",
|
|
105
|
-
"react-dom": "19.0.0"
|
|
126
|
+
"react-dom": "19.0.0",
|
|
127
|
+
"tailwindcss": "3"
|
|
106
128
|
},
|
|
107
129
|
"devDependencies": {
|
|
108
130
|
"@chromatic-com/storybook": "3.2.5",
|
|
109
|
-
"@storybook/addon-essentials": "8.6.
|
|
110
|
-
"@storybook/addon-onboarding": "8.6.
|
|
111
|
-
"@storybook/blocks": "8.6.
|
|
112
|
-
"@storybook/builder-vite": "8.6.
|
|
113
|
-
"@storybook/experimental-addon-test": "8.6.
|
|
114
|
-
"@storybook/react": "8.6.
|
|
115
|
-
"@storybook/react-vite": "8.6.
|
|
116
|
-
"@storybook/test": "8.6.
|
|
131
|
+
"@storybook/addon-essentials": "8.6.3",
|
|
132
|
+
"@storybook/addon-onboarding": "8.6.3",
|
|
133
|
+
"@storybook/blocks": "8.6.3",
|
|
134
|
+
"@storybook/builder-vite": "8.6.3",
|
|
135
|
+
"@storybook/experimental-addon-test": "8.6.3",
|
|
136
|
+
"@storybook/react": "8.6.3",
|
|
137
|
+
"@storybook/react-vite": "8.6.3",
|
|
138
|
+
"@storybook/test": "8.6.3",
|
|
117
139
|
"@tailwindcss/postcss": "4.0.9",
|
|
118
140
|
"@tailwindcss/vite": "4.0.9",
|
|
119
141
|
"@types/node": "22.13.8",
|
|
@@ -124,17 +146,19 @@
|
|
|
124
146
|
"@vitest/browser": "3.0.7",
|
|
125
147
|
"@vitest/coverage-v8": "3.0.7",
|
|
126
148
|
"autoprefixer": "10.4.20",
|
|
127
|
-
"
|
|
149
|
+
"cssnano": "7.0.6",
|
|
150
|
+
"daisyui": "4",
|
|
128
151
|
"playwright": "1.50.1",
|
|
129
152
|
"postcss": "8.5.3",
|
|
130
153
|
"react": "19.0.0",
|
|
131
154
|
"react-dom": "19.0.0",
|
|
132
155
|
"rimraf": "6.0.1",
|
|
156
|
+
"rollup-plugin-postcss": "4.0.2",
|
|
133
157
|
"rollup-plugin-preserve-directives": "0.4.0",
|
|
134
158
|
"rollup-plugin-visualizer": "5.14.0",
|
|
135
159
|
"rollup-preserve-directives": "1.1.3",
|
|
136
|
-
"storybook": "8.6.
|
|
137
|
-
"tailwindcss": "
|
|
160
|
+
"storybook": "8.6.3",
|
|
161
|
+
"tailwindcss": "3",
|
|
138
162
|
"tsc-alias": "1.8.11",
|
|
139
163
|
"typescript": "5.8.2",
|
|
140
164
|
"vite": "6.2.0",
|
|
@@ -146,7 +170,7 @@
|
|
|
146
170
|
"types": "./dist/types/index.d.ts",
|
|
147
171
|
"import": "./dist/esm/index.js",
|
|
148
172
|
"require": "./dist/cjs/index.cjs",
|
|
149
|
-
"default": "./dist/
|
|
173
|
+
"default": "./dist/index.js"
|
|
150
174
|
},
|
|
151
175
|
"./*": {
|
|
152
176
|
"types": "./dist/types/*.d.ts",
|
|
@@ -154,7 +178,14 @@
|
|
|
154
178
|
"require": "./dist/cjs/*.cjs",
|
|
155
179
|
"default": "./dist/esm/*.js"
|
|
156
180
|
},
|
|
181
|
+
"./tailwind": {
|
|
182
|
+
"import": "./dist/esm/tailwind.js",
|
|
183
|
+
"require": "./dist/cjs/tailwind.cjs",
|
|
184
|
+
"default": "./dist/esm/tailwind.js"
|
|
185
|
+
},
|
|
157
186
|
"./package.json": "./package.json",
|
|
187
|
+
"./styles": "./dist/index.css",
|
|
188
|
+
"./styles.css": "./dist/index.css",
|
|
158
189
|
"./accordion": {
|
|
159
190
|
"types": "./dist/types/components/ui/accordion.d.ts",
|
|
160
191
|
"import": "./dist/esm/components/ui/accordion.js",
|
|
@@ -444,4 +475,4 @@
|
|
|
444
475
|
"default": "./dist/esm/components/ui/utils.js"
|
|
445
476
|
}
|
|
446
477
|
}
|
|
447
|
-
}
|
|
478
|
+
}
|
|
@@ -1,160 +1,160 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
5
|
-
|
|
6
|
-
import { cn } from "./../../lib/utils";
|
|
7
|
-
import { buttonVariants } from "./button";
|
|
8
|
-
|
|
9
|
-
function AlertDialog({
|
|
10
|
-
...props
|
|
11
|
-
}: React.ComponentProps<typeof AlertDialogPrimitive.Root>) {
|
|
12
|
-
return <AlertDialogPrimitive.Root data-slot="alert-dialog" {...props} />;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
function AlertDialogTrigger({
|
|
16
|
-
...props
|
|
17
|
-
}: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>) {
|
|
18
|
-
return (
|
|
19
|
-
<AlertDialogPrimitive.Trigger data-slot="alert-dialog-trigger" {...props} />
|
|
20
|
-
);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
function AlertDialogPortal({
|
|
24
|
-
...props
|
|
25
|
-
}: React.ComponentProps<typeof AlertDialogPrimitive.Portal>) {
|
|
26
|
-
return (
|
|
27
|
-
<AlertDialogPrimitive.Portal data-slot="alert-dialog-portal" {...props} />
|
|
28
|
-
);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
function AlertDialogOverlay({
|
|
32
|
-
className,
|
|
33
|
-
...props
|
|
34
|
-
}: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>) {
|
|
35
|
-
return (
|
|
36
|
-
<AlertDialogPrimitive.Overlay
|
|
37
|
-
data-slot="alert-dialog-overlay"
|
|
38
|
-
className={cn(
|
|
39
|
-
"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/80",
|
|
40
|
-
className
|
|
41
|
-
)}
|
|
42
|
-
{...props}
|
|
43
|
-
/>
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
function AlertDialogContent({
|
|
48
|
-
className,
|
|
49
|
-
...props
|
|
50
|
-
}: React.ComponentProps<typeof AlertDialogPrimitive.Content>) {
|
|
51
|
-
return (
|
|
52
|
-
<AlertDialogPortal>
|
|
53
|
-
<AlertDialogOverlay />
|
|
54
|
-
<AlertDialogPrimitive.Content
|
|
55
|
-
data-slot="alert-dialog-content"
|
|
56
|
-
className={cn(
|
|
57
|
-
"bg-white 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 border-neutral-200 p-6 shadow-lg duration-200 sm:max-w-lg dark:bg-neutral-950 dark:border-neutral-800",
|
|
58
|
-
className
|
|
59
|
-
)}
|
|
60
|
-
{...props}
|
|
61
|
-
/>
|
|
62
|
-
</AlertDialogPortal>
|
|
63
|
-
);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
function AlertDialogHeader({
|
|
67
|
-
className,
|
|
68
|
-
...props
|
|
69
|
-
}: React.ComponentProps<"div">) {
|
|
70
|
-
return (
|
|
71
|
-
<div
|
|
72
|
-
data-slot="alert-dialog-header"
|
|
73
|
-
className={cn("flex flex-col gap-2 text-center sm:text-left", className)}
|
|
74
|
-
{...props}
|
|
75
|
-
/>
|
|
76
|
-
);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
function AlertDialogFooter({
|
|
80
|
-
className,
|
|
81
|
-
...props
|
|
82
|
-
}: React.ComponentProps<"div">) {
|
|
83
|
-
return (
|
|
84
|
-
<div
|
|
85
|
-
data-slot="alert-dialog-footer"
|
|
86
|
-
className={cn(
|
|
87
|
-
"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
88
|
-
className
|
|
89
|
-
)}
|
|
90
|
-
{...props}
|
|
91
|
-
/>
|
|
92
|
-
);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
function AlertDialogTitle({
|
|
96
|
-
className,
|
|
97
|
-
...props
|
|
98
|
-
}: React.ComponentProps<typeof AlertDialogPrimitive.Title>) {
|
|
99
|
-
return (
|
|
100
|
-
<AlertDialogPrimitive.Title
|
|
101
|
-
data-slot="alert-dialog-title"
|
|
102
|
-
className={cn("text-lg font-semibold", className)}
|
|
103
|
-
{...props}
|
|
104
|
-
/>
|
|
105
|
-
);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
function AlertDialogDescription({
|
|
109
|
-
className,
|
|
110
|
-
...props
|
|
111
|
-
}: React.ComponentProps<typeof AlertDialogPrimitive.Description>) {
|
|
112
|
-
return (
|
|
113
|
-
<AlertDialogPrimitive.Description
|
|
114
|
-
data-slot="alert-dialog-description"
|
|
115
|
-
className={cn(
|
|
116
|
-
"text-neutral-500 text-sm dark:text-neutral-400",
|
|
117
|
-
className
|
|
118
|
-
)}
|
|
119
|
-
{...props}
|
|
120
|
-
/>
|
|
121
|
-
);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
function AlertDialogAction({
|
|
125
|
-
className,
|
|
126
|
-
...props
|
|
127
|
-
}: React.ComponentProps<typeof AlertDialogPrimitive.Action>) {
|
|
128
|
-
return (
|
|
129
|
-
<AlertDialogPrimitive.Action
|
|
130
|
-
className={cn(buttonVariants(), className)}
|
|
131
|
-
{...props}
|
|
132
|
-
/>
|
|
133
|
-
);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
function AlertDialogCancel({
|
|
137
|
-
className,
|
|
138
|
-
...props
|
|
139
|
-
}: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>) {
|
|
140
|
-
return (
|
|
141
|
-
<AlertDialogPrimitive.Cancel
|
|
142
|
-
className={cn(buttonVariants({ variant: "outline" }), className)}
|
|
143
|
-
{...props}
|
|
144
|
-
/>
|
|
145
|
-
);
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
export {
|
|
149
|
-
AlertDialog,
|
|
150
|
-
AlertDialogPortal,
|
|
151
|
-
AlertDialogOverlay,
|
|
152
|
-
AlertDialogTrigger,
|
|
153
|
-
AlertDialogContent,
|
|
154
|
-
AlertDialogHeader,
|
|
155
|
-
AlertDialogFooter,
|
|
156
|
-
AlertDialogTitle,
|
|
157
|
-
AlertDialogDescription,
|
|
158
|
-
AlertDialogAction,
|
|
159
|
-
AlertDialogCancel,
|
|
160
|
-
};
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
5
|
+
|
|
6
|
+
import { cn } from "./../../lib/utils";
|
|
7
|
+
import { buttonVariants } from "./button";
|
|
8
|
+
|
|
9
|
+
function AlertDialog({
|
|
10
|
+
...props
|
|
11
|
+
}: React.ComponentProps<typeof AlertDialogPrimitive.Root>) {
|
|
12
|
+
return <AlertDialogPrimitive.Root data-slot="alert-dialog" {...props} />;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
function AlertDialogTrigger({
|
|
16
|
+
...props
|
|
17
|
+
}: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>) {
|
|
18
|
+
return (
|
|
19
|
+
<AlertDialogPrimitive.Trigger data-slot="alert-dialog-trigger" {...props} />
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function AlertDialogPortal({
|
|
24
|
+
...props
|
|
25
|
+
}: React.ComponentProps<typeof AlertDialogPrimitive.Portal>) {
|
|
26
|
+
return (
|
|
27
|
+
<AlertDialogPrimitive.Portal data-slot="alert-dialog-portal" {...props} />
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function AlertDialogOverlay({
|
|
32
|
+
className,
|
|
33
|
+
...props
|
|
34
|
+
}: React.ComponentProps<typeof AlertDialogPrimitive.Overlay>) {
|
|
35
|
+
return (
|
|
36
|
+
<AlertDialogPrimitive.Overlay
|
|
37
|
+
data-slot="alert-dialog-overlay"
|
|
38
|
+
className={cn(
|
|
39
|
+
"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/80",
|
|
40
|
+
className
|
|
41
|
+
)}
|
|
42
|
+
{...props}
|
|
43
|
+
/>
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function AlertDialogContent({
|
|
48
|
+
className,
|
|
49
|
+
...props
|
|
50
|
+
}: React.ComponentProps<typeof AlertDialogPrimitive.Content>) {
|
|
51
|
+
return (
|
|
52
|
+
<AlertDialogPortal>
|
|
53
|
+
<AlertDialogOverlay />
|
|
54
|
+
<AlertDialogPrimitive.Content
|
|
55
|
+
data-slot="alert-dialog-content"
|
|
56
|
+
className={cn(
|
|
57
|
+
"bg-white 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 border-neutral-200 p-6 shadow-lg duration-200 sm:max-w-lg dark:bg-neutral-950 dark:border-neutral-800",
|
|
58
|
+
className
|
|
59
|
+
)}
|
|
60
|
+
{...props}
|
|
61
|
+
/>
|
|
62
|
+
</AlertDialogPortal>
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
function AlertDialogHeader({
|
|
67
|
+
className,
|
|
68
|
+
...props
|
|
69
|
+
}: React.ComponentProps<"div">) {
|
|
70
|
+
return (
|
|
71
|
+
<div
|
|
72
|
+
data-slot="alert-dialog-header"
|
|
73
|
+
className={cn("flex flex-col gap-2 text-center sm:text-left", className)}
|
|
74
|
+
{...props}
|
|
75
|
+
/>
|
|
76
|
+
);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
function AlertDialogFooter({
|
|
80
|
+
className,
|
|
81
|
+
...props
|
|
82
|
+
}: React.ComponentProps<"div">) {
|
|
83
|
+
return (
|
|
84
|
+
<div
|
|
85
|
+
data-slot="alert-dialog-footer"
|
|
86
|
+
className={cn(
|
|
87
|
+
"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
88
|
+
className
|
|
89
|
+
)}
|
|
90
|
+
{...props}
|
|
91
|
+
/>
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
function AlertDialogTitle({
|
|
96
|
+
className,
|
|
97
|
+
...props
|
|
98
|
+
}: React.ComponentProps<typeof AlertDialogPrimitive.Title>) {
|
|
99
|
+
return (
|
|
100
|
+
<AlertDialogPrimitive.Title
|
|
101
|
+
data-slot="alert-dialog-title"
|
|
102
|
+
className={cn("text-lg font-semibold", className)}
|
|
103
|
+
{...props}
|
|
104
|
+
/>
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
function AlertDialogDescription({
|
|
109
|
+
className,
|
|
110
|
+
...props
|
|
111
|
+
}: React.ComponentProps<typeof AlertDialogPrimitive.Description>) {
|
|
112
|
+
return (
|
|
113
|
+
<AlertDialogPrimitive.Description
|
|
114
|
+
data-slot="alert-dialog-description"
|
|
115
|
+
className={cn(
|
|
116
|
+
"text-neutral-500 text-sm dark:text-neutral-400",
|
|
117
|
+
className
|
|
118
|
+
)}
|
|
119
|
+
{...props}
|
|
120
|
+
/>
|
|
121
|
+
);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
function AlertDialogAction({
|
|
125
|
+
className,
|
|
126
|
+
...props
|
|
127
|
+
}: React.ComponentProps<typeof AlertDialogPrimitive.Action>) {
|
|
128
|
+
return (
|
|
129
|
+
<AlertDialogPrimitive.Action
|
|
130
|
+
className={cn(buttonVariants(), className)}
|
|
131
|
+
{...props}
|
|
132
|
+
/>
|
|
133
|
+
);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
function AlertDialogCancel({
|
|
137
|
+
className,
|
|
138
|
+
...props
|
|
139
|
+
}: React.ComponentProps<typeof AlertDialogPrimitive.Cancel>) {
|
|
140
|
+
return (
|
|
141
|
+
<AlertDialogPrimitive.Cancel
|
|
142
|
+
className={cn(buttonVariants({ variant: "outline" }), className)}
|
|
143
|
+
{...props}
|
|
144
|
+
/>
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export {
|
|
149
|
+
AlertDialog,
|
|
150
|
+
AlertDialogPortal,
|
|
151
|
+
AlertDialogOverlay,
|
|
152
|
+
AlertDialogTrigger,
|
|
153
|
+
AlertDialogContent,
|
|
154
|
+
AlertDialogHeader,
|
|
155
|
+
AlertDialogFooter,
|
|
156
|
+
AlertDialogTitle,
|
|
157
|
+
AlertDialogDescription,
|
|
158
|
+
AlertDialogAction,
|
|
159
|
+
AlertDialogCancel,
|
|
160
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
|
|
5
|
-
|
|
6
|
-
function AspectRatio({
|
|
7
|
-
...props
|
|
8
|
-
}: React.ComponentProps<typeof AspectRatioPrimitive.Root>) {
|
|
9
|
-
return <AspectRatioPrimitive.Root data-slot="aspect-ratio" {...props} />;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export { AspectRatio };
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
|
|
5
|
+
|
|
6
|
+
function AspectRatio({
|
|
7
|
+
...props
|
|
8
|
+
}: React.ComponentProps<typeof AspectRatioPrimitive.Root>) {
|
|
9
|
+
return <AspectRatioPrimitive.Root data-slot="aspect-ratio" {...props} />;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export { AspectRatio };
|
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
5
|
-
import { cn } from "./../../lib/utils";
|
|
6
|
-
|
|
7
|
-
function Avatar({
|
|
8
|
-
className,
|
|
9
|
-
...props
|
|
10
|
-
}: React.ComponentProps<typeof AvatarPrimitive.Root>) {
|
|
11
|
-
return (
|
|
12
|
-
<AvatarPrimitive.Root
|
|
13
|
-
data-slot="avatar"
|
|
14
|
-
className={cn(
|
|
15
|
-
"relative flex size-8 shrink-0 overflow-hidden rounded-full",
|
|
16
|
-
className
|
|
17
|
-
)}
|
|
18
|
-
{...props}
|
|
19
|
-
/>
|
|
20
|
-
);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
function AvatarImage({
|
|
24
|
-
className,
|
|
25
|
-
...props
|
|
26
|
-
}: React.ComponentProps<typeof AvatarPrimitive.Image>) {
|
|
27
|
-
return (
|
|
28
|
-
<AvatarPrimitive.Image
|
|
29
|
-
data-slot="avatar-image"
|
|
30
|
-
className={cn("aspect-square size-full", className)}
|
|
31
|
-
{...props}
|
|
32
|
-
/>
|
|
33
|
-
);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
function AvatarFallback({
|
|
37
|
-
className,
|
|
38
|
-
...props
|
|
39
|
-
}: React.ComponentProps<typeof AvatarPrimitive.Fallback>) {
|
|
40
|
-
return (
|
|
41
|
-
<AvatarPrimitive.Fallback
|
|
42
|
-
data-slot="avatar-fallback"
|
|
43
|
-
className={cn(
|
|
44
|
-
"bg-neutral-100 flex size-full items-center justify-center rounded-full dark:bg-neutral-800",
|
|
45
|
-
className
|
|
46
|
-
)}
|
|
47
|
-
{...props}
|
|
48
|
-
/>
|
|
49
|
-
);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export { Avatar, AvatarImage, AvatarFallback };
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
5
|
+
import { cn } from "./../../lib/utils";
|
|
6
|
+
|
|
7
|
+
function Avatar({
|
|
8
|
+
className,
|
|
9
|
+
...props
|
|
10
|
+
}: React.ComponentProps<typeof AvatarPrimitive.Root>) {
|
|
11
|
+
return (
|
|
12
|
+
<AvatarPrimitive.Root
|
|
13
|
+
data-slot="avatar"
|
|
14
|
+
className={cn(
|
|
15
|
+
"relative flex size-8 shrink-0 overflow-hidden rounded-full",
|
|
16
|
+
className
|
|
17
|
+
)}
|
|
18
|
+
{...props}
|
|
19
|
+
/>
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function AvatarImage({
|
|
24
|
+
className,
|
|
25
|
+
...props
|
|
26
|
+
}: React.ComponentProps<typeof AvatarPrimitive.Image>) {
|
|
27
|
+
return (
|
|
28
|
+
<AvatarPrimitive.Image
|
|
29
|
+
data-slot="avatar-image"
|
|
30
|
+
className={cn("aspect-square size-full", className)}
|
|
31
|
+
{...props}
|
|
32
|
+
/>
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function AvatarFallback({
|
|
37
|
+
className,
|
|
38
|
+
...props
|
|
39
|
+
}: React.ComponentProps<typeof AvatarPrimitive.Fallback>) {
|
|
40
|
+
return (
|
|
41
|
+
<AvatarPrimitive.Fallback
|
|
42
|
+
data-slot="avatar-fallback"
|
|
43
|
+
className={cn(
|
|
44
|
+
"bg-neutral-100 flex size-full items-center justify-center rounded-full dark:bg-neutral-800",
|
|
45
|
+
className
|
|
46
|
+
)}
|
|
47
|
+
{...props}
|
|
48
|
+
/>
|
|
49
|
+
);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export { Avatar, AvatarImage, AvatarFallback };
|