@capy-vn/ui 0.1.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 +299 -0
- package/dist/index.browser.js +51746 -0
- package/dist/index.cjs +5682 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +1391 -0
- package/dist/index.d.ts +1391 -0
- package/dist/index.js +5435 -0
- package/dist/index.js.map +1 -0
- package/package.json +82 -0
- package/src/styles/globals.css +99 -0
package/package.json
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@capy-vn/ui",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Capy shared component library — shadcn/ui + Tailwind CSS",
|
|
5
|
+
"author": "Tâm Nguyễn",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"private": false,
|
|
8
|
+
"type": "module",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.mjs",
|
|
13
|
+
"require": "./dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./styles": "./src/styles/globals.css"
|
|
16
|
+
},
|
|
17
|
+
"main": "./dist/index.js",
|
|
18
|
+
"module": "./dist/index.mjs",
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"files": [
|
|
21
|
+
"dist",
|
|
22
|
+
"src/styles"
|
|
23
|
+
],
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "tsup",
|
|
26
|
+
"dev": "tsup --watch",
|
|
27
|
+
"type-check": "tsc --noEmit",
|
|
28
|
+
"lint": "eslint src --ext .ts,.tsx --report-unused-disable-directives --max-warnings 0",
|
|
29
|
+
"clean": "rimraf dist"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@radix-ui/react-alert-dialog": "^1.1.17",
|
|
33
|
+
"@radix-ui/react-avatar": "^1.2.0",
|
|
34
|
+
"@radix-ui/react-checkbox": "^1.3.5",
|
|
35
|
+
"@radix-ui/react-dialog": "^1.1.17",
|
|
36
|
+
"@radix-ui/react-dropdown-menu": "^2.1.18",
|
|
37
|
+
"@radix-ui/react-label": "^2.1.10",
|
|
38
|
+
"@radix-ui/react-popover": "^1.1.17",
|
|
39
|
+
"@radix-ui/react-progress": "^1.1.10",
|
|
40
|
+
"@radix-ui/react-radio-group": "^1.4.1",
|
|
41
|
+
"@radix-ui/react-scroll-area": "^1.2.12",
|
|
42
|
+
"@radix-ui/react-select": "^2.3.1",
|
|
43
|
+
"@radix-ui/react-separator": "^1.1.10",
|
|
44
|
+
"@radix-ui/react-slot": "^1.3.0",
|
|
45
|
+
"@radix-ui/react-switch": "^1.3.1",
|
|
46
|
+
"@radix-ui/react-tabs": "^1.1.15",
|
|
47
|
+
"@radix-ui/react-tooltip": "^1.2.10",
|
|
48
|
+
"@tanstack/react-table": "^8.21.3",
|
|
49
|
+
"class-variance-authority": "^0.7.1",
|
|
50
|
+
"clsx": "^2.1.1",
|
|
51
|
+
"lucide-react": "^0.469.0",
|
|
52
|
+
"date-fns": "^3.6.0",
|
|
53
|
+
"react-day-picker": "^8.10.1",
|
|
54
|
+
"react-hook-form": "^7.80.0",
|
|
55
|
+
"sonner": "^2.0.7",
|
|
56
|
+
"tailwind-merge": "^2.6.0"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@types/node": "^22.0.0",
|
|
60
|
+
"@types/react": "^18.3.18",
|
|
61
|
+
"@types/react-dom": "^18.3.5",
|
|
62
|
+
"autoprefixer": "^10.4.20",
|
|
63
|
+
"rimraf": "^6.0.1",
|
|
64
|
+
"tailwindcss": "^3.4.17",
|
|
65
|
+
"tsup": "^8.3.5",
|
|
66
|
+
"typescript": "^5.7.3"
|
|
67
|
+
},
|
|
68
|
+
"peerDependencies": {
|
|
69
|
+
"next": ">=14.0.0",
|
|
70
|
+
"react": "^18.0.0",
|
|
71
|
+
"react-dom": "^18.0.0",
|
|
72
|
+
"tailwindcss": "^3.0.0"
|
|
73
|
+
},
|
|
74
|
+
"peerDependenciesMeta": {
|
|
75
|
+
"next": {
|
|
76
|
+
"optional": true
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
"publishConfig": {
|
|
80
|
+
"access": "public"
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
@tailwind base;
|
|
2
|
+
@tailwind components;
|
|
3
|
+
@tailwind utilities;
|
|
4
|
+
|
|
5
|
+
@layer base {
|
|
6
|
+
:root {
|
|
7
|
+
--background: 0 0% 100%;
|
|
8
|
+
--foreground: 222.2 84% 4.9%;
|
|
9
|
+
|
|
10
|
+
--card: 0 0% 100%;
|
|
11
|
+
--card-foreground: 222.2 84% 4.9%;
|
|
12
|
+
|
|
13
|
+
--popover: 0 0% 100%;
|
|
14
|
+
--popover-foreground: 222.2 84% 4.9%;
|
|
15
|
+
|
|
16
|
+
--primary: 222.2 47.4% 11.2%;
|
|
17
|
+
--primary-foreground: 210 40% 98%;
|
|
18
|
+
|
|
19
|
+
--secondary: 210 40% 96.1%;
|
|
20
|
+
--secondary-foreground: 222.2 47.4% 11.2%;
|
|
21
|
+
|
|
22
|
+
--muted: 210 40% 96.1%;
|
|
23
|
+
--muted-foreground: 215.4 16.3% 46.9%;
|
|
24
|
+
|
|
25
|
+
--accent: 210 40% 96.1%;
|
|
26
|
+
--accent-foreground: 222.2 47.4% 11.2%;
|
|
27
|
+
|
|
28
|
+
--destructive: 0 84.2% 60.2%;
|
|
29
|
+
--destructive-foreground: 210 40% 98%;
|
|
30
|
+
|
|
31
|
+
--border: 214.3 31.8% 91.4%;
|
|
32
|
+
--input: 214.3 31.8% 91.4%;
|
|
33
|
+
--ring: 221.2 83.2% 53.3%;
|
|
34
|
+
|
|
35
|
+
--radius: 0.5rem;
|
|
36
|
+
|
|
37
|
+
--font-sans: '';
|
|
38
|
+
--font-mono: '';
|
|
39
|
+
|
|
40
|
+
/* Sidebar */
|
|
41
|
+
--sidebar-background: 0 0% 98%;
|
|
42
|
+
--sidebar-foreground: 240 5.3% 26.1%;
|
|
43
|
+
--sidebar-primary: 240 5.9% 10%;
|
|
44
|
+
--sidebar-primary-foreground: 0 0% 98%;
|
|
45
|
+
--sidebar-accent: 240 4.8% 95.9%;
|
|
46
|
+
--sidebar-accent-foreground: 240 5.9% 10%;
|
|
47
|
+
--sidebar-border: 220 13% 91%;
|
|
48
|
+
--sidebar-ring: 217.2 91.2% 59.8%;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.dark {
|
|
52
|
+
--background: 222.2 84% 4.9%;
|
|
53
|
+
--foreground: 210 40% 98%;
|
|
54
|
+
|
|
55
|
+
--card: 222.2 84% 4.9%;
|
|
56
|
+
--card-foreground: 210 40% 98%;
|
|
57
|
+
|
|
58
|
+
--popover: 222.2 84% 4.9%;
|
|
59
|
+
--popover-foreground: 210 40% 98%;
|
|
60
|
+
|
|
61
|
+
--primary: 210 40% 98%;
|
|
62
|
+
--primary-foreground: 222.2 47.4% 11.2%;
|
|
63
|
+
|
|
64
|
+
--secondary: 217.2 32.6% 17.5%;
|
|
65
|
+
--secondary-foreground: 210 40% 98%;
|
|
66
|
+
|
|
67
|
+
--muted: 217.2 32.6% 17.5%;
|
|
68
|
+
--muted-foreground: 215 20.2% 65.1%;
|
|
69
|
+
|
|
70
|
+
--accent: 217.2 32.6% 17.5%;
|
|
71
|
+
--accent-foreground: 210 40% 98%;
|
|
72
|
+
|
|
73
|
+
--destructive: 0 62.8% 30.6%;
|
|
74
|
+
--destructive-foreground: 210 40% 98%;
|
|
75
|
+
|
|
76
|
+
--border: 217.2 32.6% 17.5%;
|
|
77
|
+
--input: 217.2 32.6% 17.5%;
|
|
78
|
+
--ring: 212.7 26.8% 83.9%;
|
|
79
|
+
|
|
80
|
+
/* Sidebar */
|
|
81
|
+
--sidebar-background: 240 5.9% 10%;
|
|
82
|
+
--sidebar-foreground: 240 4.8% 95.9%;
|
|
83
|
+
--sidebar-primary: 224.3 76.3% 48%;
|
|
84
|
+
--sidebar-primary-foreground: 0 0% 100%;
|
|
85
|
+
--sidebar-accent: 240 3.7% 15.9%;
|
|
86
|
+
--sidebar-accent-foreground: 240 4.8% 95.9%;
|
|
87
|
+
--sidebar-border: 240 3.7% 15.9%;
|
|
88
|
+
--sidebar-ring: 217.2 91.2% 59.8%;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@layer base {
|
|
93
|
+
* {
|
|
94
|
+
@apply border-border outline-none;
|
|
95
|
+
}
|
|
96
|
+
body {
|
|
97
|
+
@apply bg-background text-foreground;
|
|
98
|
+
}
|
|
99
|
+
}
|