shadcn-ui-react 0.0.3 → 0.0.5
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 +76 -4
- package/{lib → dist}/index.cjs +4040 -2040
- package/{lib → dist}/index.d.cts +73 -73
- package/dist/index.d.ts +654 -0
- package/dist/index.js +9017 -0
- package/{lib/index.css → dist/style.css} +0 -67
- package/package.json +31 -9
- package/.env +0 -1
- package/.gitattributes +0 -2
- package/components.json +0 -17
- package/postcss.config.js +0 -6
- package/tailwind.config.js +0 -74
- package/tsconfig.json +0 -24
|
@@ -26,9 +26,6 @@
|
|
|
26
26
|
--color-red-300: oklch(0.808 0.114 19.571);
|
|
27
27
|
--color-red-400: oklch(0.704 0.191 22.216);
|
|
28
28
|
--color-red-600: oklch(0.577 0.245 27.325);
|
|
29
|
-
--color-gray-100: oklch(0.967 0.003 264.542);
|
|
30
|
-
--color-gray-300: oklch(0.872 0.01 258.338);
|
|
31
|
-
--color-gray-900: oklch(0.21 0.034 264.665);
|
|
32
29
|
--color-black: #000;
|
|
33
30
|
--spacing: 0.25rem;
|
|
34
31
|
--container-sm: 24rem;
|
|
@@ -1845,70 +1842,6 @@
|
|
|
1845
1842
|
}
|
|
1846
1843
|
}
|
|
1847
1844
|
}
|
|
1848
|
-
@layer base {
|
|
1849
|
-
:root {
|
|
1850
|
-
--background: 0 0% 100%;
|
|
1851
|
-
--foreground: 222.2 84% 4.9%;
|
|
1852
|
-
--card: 0 0% 100%;
|
|
1853
|
-
--card-foreground: 222.2 84% 4.9%;
|
|
1854
|
-
--popover: 0 0% 100%;
|
|
1855
|
-
--popover-foreground: 222.2 84% 4.9%;
|
|
1856
|
-
--primary: 222.2 47.4% 11.2%;
|
|
1857
|
-
--primary-foreground: 210 40% 98%;
|
|
1858
|
-
--secondary: 210 40% 96.1%;
|
|
1859
|
-
--secondary-foreground: 222.2 47.4% 11.2%;
|
|
1860
|
-
--muted: 210 40% 96.1%;
|
|
1861
|
-
--muted-foreground: 215.4 16.3% 46.9%;
|
|
1862
|
-
--accent: 210 40% 96.1%;
|
|
1863
|
-
--accent-foreground: 222.2 47.4% 11.2%;
|
|
1864
|
-
--destructive: 0 84.2% 60.2%;
|
|
1865
|
-
--destructive-foreground: 210 40% 98%;
|
|
1866
|
-
--border: 214.3 31.8% 91.4%;
|
|
1867
|
-
--input: 214.3 31.8% 91.4%;
|
|
1868
|
-
--ring: 222.2 84% 4.9%;
|
|
1869
|
-
--radius: 0.5rem;
|
|
1870
|
-
--chart-1: 12 76% 61%;
|
|
1871
|
-
--chart-2: 173 58% 39%;
|
|
1872
|
-
--chart-3: 197 37% 24%;
|
|
1873
|
-
--chart-4: 43 74% 66%;
|
|
1874
|
-
--chart-5: 27 87% 67%;
|
|
1875
|
-
}
|
|
1876
|
-
.dark {
|
|
1877
|
-
--background: 222.2 84% 4.9%;
|
|
1878
|
-
--foreground: 210 40% 98%;
|
|
1879
|
-
--card: 222.2 84% 4.9%;
|
|
1880
|
-
--card-foreground: 210 40% 98%;
|
|
1881
|
-
--popover: 222.2 84% 4.9%;
|
|
1882
|
-
--popover-foreground: 210 40% 98%;
|
|
1883
|
-
--primary: 210 40% 98%;
|
|
1884
|
-
--primary-foreground: 222.2 47.4% 11.2%;
|
|
1885
|
-
--secondary: 217.2 32.6% 17.5%;
|
|
1886
|
-
--secondary-foreground: 210 40% 98%;
|
|
1887
|
-
--muted: 217.2 32.6% 17.5%;
|
|
1888
|
-
--muted-foreground: 215 20.2% 65.1%;
|
|
1889
|
-
--accent: 217.2 32.6% 17.5%;
|
|
1890
|
-
--accent-foreground: 210 40% 98%;
|
|
1891
|
-
--destructive: 0 62.8% 30.6%;
|
|
1892
|
-
--destructive-foreground: 210 40% 98%;
|
|
1893
|
-
--border: 217.2 32.6% 17.5%;
|
|
1894
|
-
--input: 217.2 32.6% 17.5%;
|
|
1895
|
-
--ring: 212.7 26.8% 83.9;
|
|
1896
|
-
--chart-1: 220 70% 50%;
|
|
1897
|
-
--chart-2: 160 60% 45%;
|
|
1898
|
-
--chart-3: 30 80% 55%;
|
|
1899
|
-
--chart-4: 280 65% 60%;
|
|
1900
|
-
--chart-5: 340 75% 55%;
|
|
1901
|
-
}
|
|
1902
|
-
}
|
|
1903
|
-
@layer base {
|
|
1904
|
-
* {
|
|
1905
|
-
border-color: var(--color-gray-300);
|
|
1906
|
-
}
|
|
1907
|
-
body {
|
|
1908
|
-
background-color: var(--color-gray-100);
|
|
1909
|
-
color: var(--color-gray-900);
|
|
1910
|
-
}
|
|
1911
|
-
}
|
|
1912
1845
|
@layer base {
|
|
1913
1846
|
html {
|
|
1914
1847
|
font-family: "Montserrat", sans-serif;
|
package/package.json
CHANGED
|
@@ -1,16 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shadcn-ui-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Blencm",
|
|
6
6
|
"description": "React UI library for ShadCN",
|
|
7
|
+
"sideEffect": [
|
|
8
|
+
"**/*.css"
|
|
9
|
+
],
|
|
7
10
|
"type": "module",
|
|
8
|
-
"main": "
|
|
9
|
-
"module": "
|
|
10
|
-
"types": "
|
|
11
|
+
"main": "dist/index.js",
|
|
12
|
+
"module": "dist/index.js",
|
|
13
|
+
"types": "dist/index.d.ts",
|
|
14
|
+
"style": "dist/style.css",
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"dist/style.css"
|
|
18
|
+
],
|
|
19
|
+
"sideEffects": [
|
|
20
|
+
"dist/*.css"
|
|
21
|
+
],
|
|
22
|
+
"lint-staged": {
|
|
23
|
+
"*.{js,jsx,ts,tsx}": "eslint --fix"
|
|
24
|
+
},
|
|
11
25
|
"keywords": [
|
|
12
26
|
"react",
|
|
13
27
|
"react-component",
|
|
28
|
+
"ui",
|
|
14
29
|
"shadcn",
|
|
15
30
|
"shadcn-ui",
|
|
16
31
|
"shadcn-ui-react"
|
|
@@ -25,16 +40,16 @@
|
|
|
25
40
|
},
|
|
26
41
|
"homepage": "https://github.com/blencm/shadcn-ui-react#readme",
|
|
27
42
|
"scripts": {
|
|
28
|
-
"
|
|
29
|
-
"
|
|
43
|
+
"dev": "vite",
|
|
44
|
+
"build": "rimraf ./dist && vite build && tsup && node scripts/postbuild.js",
|
|
30
45
|
"test": "cross-env NODE_ENV=test && jest",
|
|
31
46
|
"test:watch": "jest --watch"
|
|
32
47
|
},
|
|
33
|
-
"sideEffects": false,
|
|
34
48
|
"devDependencies": {
|
|
35
49
|
"@eslint/config-array": "^0.19.2",
|
|
36
50
|
"@eslint/object-schema": "^2.1.6",
|
|
37
51
|
"@tailwindcss/postcss": "^4.0.8",
|
|
52
|
+
"@tailwindcss/vite": "^4.0.8",
|
|
38
53
|
"@types/node": "^22.13.5",
|
|
39
54
|
"@types/react": "^19.0.10",
|
|
40
55
|
"@types/react-dom": "^19.0.4",
|
|
@@ -46,8 +61,13 @@
|
|
|
46
61
|
"react-test-renderer": "^19.0.0",
|
|
47
62
|
"rimraf": "^6.0.1",
|
|
48
63
|
"tailwindcss": "^4.0.8",
|
|
64
|
+
"tailwindcss-animate": "^1.0.7",
|
|
49
65
|
"tsup": "^8.3.6",
|
|
50
|
-
"
|
|
66
|
+
"vite-plugin-dts": "^4.5.0",
|
|
67
|
+
"vite-plugin-ts-alias": "^0.1.1",
|
|
68
|
+
"typescript": "^5.7.3",
|
|
69
|
+
"vaul": "^1.1.2",
|
|
70
|
+
"vite": "^6.1.1"
|
|
51
71
|
},
|
|
52
72
|
"peerDependencies": {
|
|
53
73
|
"react": "^17.0.0 || ^18.3.1 || ^19.0.0",
|
|
@@ -86,6 +106,8 @@
|
|
|
86
106
|
"@radix-ui/react-toggle": "^1.1.2",
|
|
87
107
|
"@radix-ui/react-toggle-group": "^1.1.2",
|
|
88
108
|
"@radix-ui/react-tooltip": "^1.1.8",
|
|
109
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
110
|
+
"@vitejs/plugin-react-swc": "^3.8.0",
|
|
89
111
|
"class-variance-authority": "^0.7.1",
|
|
90
112
|
"clsx": "^2.1.1",
|
|
91
113
|
"cmdk": "^1.0.4",
|
|
@@ -96,6 +118,6 @@
|
|
|
96
118
|
"react-resizable-panels": "^2.1.7",
|
|
97
119
|
"sonner": "^2.0.1",
|
|
98
120
|
"tailwind-merge": "^3.0.2",
|
|
99
|
-
"
|
|
121
|
+
"tailwind-variants": "^0.3.1"
|
|
100
122
|
}
|
|
101
123
|
}
|
package/.env
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
NODE_ENV=production
|
package/.gitattributes
DELETED
package/components.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "https://ui.shadcn.com/schema.json",
|
|
3
|
-
"style": "new-york",
|
|
4
|
-
"rsc": false,
|
|
5
|
-
"tsx": true,
|
|
6
|
-
"tailwind": {
|
|
7
|
-
"config": "tailwind.config.js",
|
|
8
|
-
"css": "src/index.css",
|
|
9
|
-
"baseColor": "stone",
|
|
10
|
-
"cssVariables": true,
|
|
11
|
-
"prefix": ""
|
|
12
|
-
},
|
|
13
|
-
"aliases": {
|
|
14
|
-
"components": "@/components",
|
|
15
|
-
"utils": "@/lib/utils"
|
|
16
|
-
}
|
|
17
|
-
}
|
package/postcss.config.js
DELETED
package/tailwind.config.js
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/** @type {import('tailwindcss').Config} */
|
|
2
|
-
module.exports = {
|
|
3
|
-
darkMode: ['class'],
|
|
4
|
-
content: [
|
|
5
|
-
'./src/**/*.{ts,tsx}'
|
|
6
|
-
],
|
|
7
|
-
prefix: '',
|
|
8
|
-
theme: {
|
|
9
|
-
container: {
|
|
10
|
-
center: true,
|
|
11
|
-
padding: '2rem',
|
|
12
|
-
screens: {
|
|
13
|
-
'2xl': '1400px'
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
extend: {
|
|
17
|
-
colors: {
|
|
18
|
-
border: 'hsl(var(--border))',
|
|
19
|
-
input: 'hsl(var(--input))',
|
|
20
|
-
ring: 'hsl(var(--ring))',
|
|
21
|
-
background: 'hsl(var(--background))',
|
|
22
|
-
foreground: 'hsl(var(--foreground))',
|
|
23
|
-
primary: {
|
|
24
|
-
DEFAULT: 'hsl(var(--primary))',
|
|
25
|
-
foreground: 'hsl(var(--primary-foreground))'
|
|
26
|
-
},
|
|
27
|
-
secondary: {
|
|
28
|
-
DEFAULT: 'hsl(var(--secondary))',
|
|
29
|
-
foreground: 'hsl(var(--secondary-foreground))'
|
|
30
|
-
},
|
|
31
|
-
destructive: {
|
|
32
|
-
DEFAULT: 'hsl(var(--destructive))',
|
|
33
|
-
foreground: 'hsl(var(--destructive-foreground))'
|
|
34
|
-
},
|
|
35
|
-
muted: {
|
|
36
|
-
DEFAULT: 'hsl(var(--muted))',
|
|
37
|
-
foreground: 'hsl(var(--muted-foreground))'
|
|
38
|
-
},
|
|
39
|
-
accent: {
|
|
40
|
-
DEFAULT: 'hsl(var(--accent))',
|
|
41
|
-
foreground: 'hsl(var(--accent-foreground))'
|
|
42
|
-
},
|
|
43
|
-
popover: {
|
|
44
|
-
DEFAULT: 'hsl(var(--popover))',
|
|
45
|
-
foreground: 'hsl(var(--popover-foreground))'
|
|
46
|
-
},
|
|
47
|
-
card: {
|
|
48
|
-
DEFAULT: 'hsl(var(--card))',
|
|
49
|
-
foreground: 'hsl(var(--card-foreground))'
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
borderRadius: {
|
|
53
|
-
lg: 'var(--radius)',
|
|
54
|
-
md: 'calc(var(--radius) - 2px)',
|
|
55
|
-
sm: 'calc(var(--radius) - 4px)'
|
|
56
|
-
},
|
|
57
|
-
keyframes: {
|
|
58
|
-
'accordion-down': {
|
|
59
|
-
from: { height: '0' },
|
|
60
|
-
to: { height: 'var(--radix-accordion-content-height)' }
|
|
61
|
-
},
|
|
62
|
-
'accordion-up': {
|
|
63
|
-
from: { height: 'var(--radix-accordion-content-height)' },
|
|
64
|
-
to: { height: '0' }
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
animation: {
|
|
68
|
-
'accordion-down': 'accordion-down 0.2s ease-out',
|
|
69
|
-
'accordion-up': 'accordion-up 0.2s ease-out'
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
plugins: [require('tailwindcss-animate')]
|
|
74
|
-
};
|
package/tsconfig.json
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"module": "ESNext",
|
|
4
|
-
|
|
5
|
-
"strict": true,
|
|
6
|
-
"esModuleInterop": true,
|
|
7
|
-
"skipLibCheck": true,
|
|
8
|
-
"forceConsistentCasingInFileNames": true,
|
|
9
|
-
"target": "ESNext",
|
|
10
|
-
"lib": ["DOM", "DOM.Iterable", "ESNext"],
|
|
11
|
-
"allowJs": true,
|
|
12
|
-
"allowSyntheticDefaultImports": true,
|
|
13
|
-
"noFallthroughCasesInSwitch": true,
|
|
14
|
-
|
|
15
|
-
"declaration": true,
|
|
16
|
-
"moduleResolution": "bundler",
|
|
17
|
-
"resolveJsonModule": true,
|
|
18
|
-
"isolatedModules": true,
|
|
19
|
-
"noEmit": true,
|
|
20
|
-
"jsx": "react"
|
|
21
|
-
},
|
|
22
|
-
|
|
23
|
-
"include": ["src"],
|
|
24
|
-
}
|