@min98/ui 1.3.55 → 1.3.57
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 -19
- package/lib/index.cjs +7 -4
- package/lib/index.d.cts +185 -10
- package/lib/index.d.ts +185 -10
- package/lib/index.js +7 -4
- package/lib/styles.css +39 -0
- package/lib/tokens.css +61 -0
- package/package.json +18 -16
package/lib/styles.css
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* @min98/ui — Tailwind CSS v4 preset */
|
|
2
|
+
@source "./index.js";
|
|
3
|
+
@custom-variant dark (&:where(.dark, .dark *));
|
|
4
|
+
@import "tw-animate-css";
|
|
5
|
+
@import "./tokens.css";
|
|
6
|
+
|
|
7
|
+
@theme inline {
|
|
8
|
+
--color-background: var(--background);
|
|
9
|
+
--color-foreground: var(--foreground);
|
|
10
|
+
--color-card: var(--card);
|
|
11
|
+
--color-card-foreground: var(--card-foreground);
|
|
12
|
+
--color-popover: var(--popover);
|
|
13
|
+
--color-popover-foreground: var(--popover-foreground);
|
|
14
|
+
--color-primary: var(--primary);
|
|
15
|
+
--color-primary-foreground: var(--primary-foreground);
|
|
16
|
+
--color-secondary: var(--secondary);
|
|
17
|
+
--color-secondary-foreground: var(--secondary-foreground);
|
|
18
|
+
--color-muted: var(--muted);
|
|
19
|
+
--color-muted-foreground: var(--muted-foreground);
|
|
20
|
+
--color-accent: var(--accent);
|
|
21
|
+
--color-accent-foreground: var(--accent-foreground);
|
|
22
|
+
--color-destructive: var(--destructive);
|
|
23
|
+
--color-destructive-foreground: var(--destructive-foreground);
|
|
24
|
+
--color-border: var(--border);
|
|
25
|
+
--color-input: var(--input);
|
|
26
|
+
--color-ring: var(--ring);
|
|
27
|
+
--color-sidebar: var(--sidebar);
|
|
28
|
+
--color-sidebar-foreground: var(--sidebar-foreground);
|
|
29
|
+
--color-sidebar-primary: var(--sidebar-primary);
|
|
30
|
+
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
|
|
31
|
+
--color-sidebar-accent: var(--sidebar-accent);
|
|
32
|
+
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
|
|
33
|
+
--color-sidebar-border: var(--sidebar-border);
|
|
34
|
+
--color-sidebar-ring: var(--sidebar-ring);
|
|
35
|
+
--radius-sm: calc(var(--radius) - 4px);
|
|
36
|
+
--radius-md: calc(var(--radius) - 2px);
|
|
37
|
+
--radius-lg: var(--radius);
|
|
38
|
+
--radius-xl: calc(var(--radius) + 4px);
|
|
39
|
+
}
|
package/lib/tokens.css
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/* @min98/ui — Fallback semantic tokens (0 specificity via :where) */
|
|
2
|
+
:where(:root) {
|
|
3
|
+
--background: oklch(1 0 0);
|
|
4
|
+
--foreground: oklch(0.145 0.015 255);
|
|
5
|
+
--card: oklch(1 0 0);
|
|
6
|
+
--card-foreground: oklch(0.145 0.015 255);
|
|
7
|
+
--popover: oklch(1 0 0);
|
|
8
|
+
--popover-foreground: oklch(0.145 0.015 255);
|
|
9
|
+
--primary: oklch(0.205 0.02 255);
|
|
10
|
+
--primary-foreground: oklch(0.985 0 0);
|
|
11
|
+
--secondary: oklch(0.96 0.005 255);
|
|
12
|
+
--secondary-foreground: oklch(0.205 0.02 255);
|
|
13
|
+
--muted: oklch(0.96 0.005 255);
|
|
14
|
+
--muted-foreground: oklch(0.45 0.015 255);
|
|
15
|
+
--accent: oklch(0.96 0.005 255);
|
|
16
|
+
--accent-foreground: oklch(0.205 0.02 255);
|
|
17
|
+
--destructive: oklch(0.577 0.245 27.325);
|
|
18
|
+
--destructive-foreground: oklch(0.985 0 0);
|
|
19
|
+
--border: oklch(0.9 0.008 255);
|
|
20
|
+
--input: oklch(0.82 0.012 255);
|
|
21
|
+
--ring: oklch(0.55 0.14 250);
|
|
22
|
+
--radius: 0.625rem;
|
|
23
|
+
--sidebar: oklch(0.985 0.003 255);
|
|
24
|
+
--sidebar-foreground: oklch(0.145 0.015 255);
|
|
25
|
+
--sidebar-primary: oklch(0.205 0.02 255);
|
|
26
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
27
|
+
--sidebar-accent: oklch(0.96 0.005 255);
|
|
28
|
+
--sidebar-accent-foreground: oklch(0.205 0.02 255);
|
|
29
|
+
--sidebar-border: oklch(0.9 0.008 255);
|
|
30
|
+
--sidebar-ring: oklch(0.55 0.14 250);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
:where(.dark, [data-theme="dark"], [data-app-mode="dark"]) {
|
|
34
|
+
--background: oklch(0.145 0.012 255);
|
|
35
|
+
--foreground: oklch(0.96 0.006 255);
|
|
36
|
+
--card: oklch(0.185 0.014 255);
|
|
37
|
+
--card-foreground: oklch(0.96 0.006 255);
|
|
38
|
+
--popover: oklch(0.185 0.014 255);
|
|
39
|
+
--popover-foreground: oklch(0.96 0.006 255);
|
|
40
|
+
--primary: oklch(0.94 0.008 255);
|
|
41
|
+
--primary-foreground: oklch(0.15 0.014 255);
|
|
42
|
+
--secondary: oklch(0.225 0.016 255);
|
|
43
|
+
--secondary-foreground: oklch(0.96 0.006 255);
|
|
44
|
+
--muted: oklch(0.225 0.016 255);
|
|
45
|
+
--muted-foreground: oklch(0.73 0.014 255);
|
|
46
|
+
--accent: oklch(0.225 0.016 255);
|
|
47
|
+
--accent-foreground: oklch(0.96 0.006 255);
|
|
48
|
+
--destructive: oklch(0.64 0.18 18);
|
|
49
|
+
--destructive-foreground: oklch(0.96 0.01 18);
|
|
50
|
+
--border: oklch(0.275 0.014 255);
|
|
51
|
+
--input: oklch(0.38 0.018 255);
|
|
52
|
+
--ring: oklch(0.76 0.09 250);
|
|
53
|
+
--sidebar: oklch(0.185 0.014 255);
|
|
54
|
+
--sidebar-foreground: oklch(0.96 0.006 255);
|
|
55
|
+
--sidebar-primary: oklch(0.55 0.14 250);
|
|
56
|
+
--sidebar-primary-foreground: oklch(0.985 0 0);
|
|
57
|
+
--sidebar-accent: oklch(0.225 0.016 255);
|
|
58
|
+
--sidebar-accent-foreground: oklch(0.96 0.006 255);
|
|
59
|
+
--sidebar-border: oklch(0.275 0.014 255);
|
|
60
|
+
--sidebar-ring: oklch(0.76 0.09 250);
|
|
61
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@min98/ui",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.57",
|
|
4
4
|
"description": "Package UI using shadcn/ui",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -10,14 +10,18 @@
|
|
|
10
10
|
"lib"
|
|
11
11
|
],
|
|
12
12
|
"exports": {
|
|
13
|
-
"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./lib/index.d.ts",
|
|
15
|
+
"require": "./lib/index.cjs",
|
|
16
|
+
"import": "./lib/index.js",
|
|
17
|
+
"default": "./lib/index.js"
|
|
18
|
+
},
|
|
19
|
+
"./styles.css": "./lib/styles.css",
|
|
20
|
+
"./tokens.css": "./lib/tokens.css"
|
|
17
21
|
},
|
|
18
22
|
"scripts": {
|
|
19
23
|
"dev": "tsup --watch",
|
|
20
|
-
"build": "tsup"
|
|
24
|
+
"build": "tsup && node -e \"import('node:fs').then(fs => fs.cpSync('src/styles', 'lib', { recursive: true }))\""
|
|
21
25
|
},
|
|
22
26
|
"keywords": [
|
|
23
27
|
"ui",
|
|
@@ -35,19 +39,18 @@
|
|
|
35
39
|
"react-dom": ">=18.0.0"
|
|
36
40
|
},
|
|
37
41
|
"devDependencies": {
|
|
42
|
+
"@tailwindcss/postcss": "^4.3.5",
|
|
38
43
|
"@types/luxon": "^3.4.2",
|
|
39
44
|
"@types/node": "^20.6.2",
|
|
40
45
|
"@types/react": "^18.2.21",
|
|
41
46
|
"@vitejs/plugin-react": "^4.0.4",
|
|
42
|
-
"autoprefixer": "^10.4.15",
|
|
43
|
-
"copyfiles": "^2.4.1",
|
|
44
47
|
"css-loader": "^6.8.1",
|
|
45
48
|
"esbuild": "^0.28.2",
|
|
46
49
|
"postcss": "^8.4.29",
|
|
47
50
|
"react": "^18.2.0",
|
|
48
51
|
"react-dom": "^18.2.0",
|
|
49
52
|
"rimraf": "^6.1.4",
|
|
50
|
-
"tailwindcss": "^3.
|
|
53
|
+
"tailwindcss": "^4.3.5",
|
|
51
54
|
"tsup": "^8.5.1",
|
|
52
55
|
"typescript": "^5.2.2"
|
|
53
56
|
},
|
|
@@ -55,7 +58,6 @@
|
|
|
55
58
|
"@ckeditor/ckeditor5-react": "^6.2.0",
|
|
56
59
|
"@hookform/resolvers": "^3.3.1",
|
|
57
60
|
"@iconify/react": "^4.1.1",
|
|
58
|
-
"@iconify/tailwind": "^1.1.1",
|
|
59
61
|
"@internationalized/date": "^3.5.0",
|
|
60
62
|
"@min98/ckeditor5-custom": "^0.0.3",
|
|
61
63
|
"@radix-ui/react-accordion": "^1.1.2",
|
|
@@ -75,10 +77,10 @@
|
|
|
75
77
|
"@radix-ui/react-progress": "^1.0.3",
|
|
76
78
|
"@radix-ui/react-radio-group": "^1.1.3",
|
|
77
79
|
"@radix-ui/react-scroll-area": "^1.0.4",
|
|
78
|
-
"@radix-ui/react-select": "^
|
|
80
|
+
"@radix-ui/react-select": "^2.4.1",
|
|
79
81
|
"@radix-ui/react-separator": "^1.0.3",
|
|
80
82
|
"@radix-ui/react-slider": "^1.1.2",
|
|
81
|
-
"@radix-ui/react-slot": "^1.
|
|
83
|
+
"@radix-ui/react-slot": "^1.5.0",
|
|
82
84
|
"@radix-ui/react-switch": "^1.0.3",
|
|
83
85
|
"@radix-ui/react-tabs": "^1.0.4",
|
|
84
86
|
"@radix-ui/react-toast": "^1.1.4",
|
|
@@ -87,7 +89,7 @@
|
|
|
87
89
|
"@radix-ui/react-tooltip": "^1.0.6",
|
|
88
90
|
"@tanstack/react-table": "^8.13.2",
|
|
89
91
|
"clsx": "^2.0.0",
|
|
90
|
-
"cmdk": "^
|
|
92
|
+
"cmdk": "^1.1.1",
|
|
91
93
|
"date-fns": "^3.6.0",
|
|
92
94
|
"embla-carousel-auto-height": "^8.1.8",
|
|
93
95
|
"embla-carousel-autoplay": "^8.1.8",
|
|
@@ -105,8 +107,8 @@
|
|
|
105
107
|
"react-stately": "^3.27.1",
|
|
106
108
|
"recharts": "^2.12.7",
|
|
107
109
|
"sonner": "^1.5.0",
|
|
108
|
-
"tailwind-merge": "^
|
|
109
|
-
"
|
|
110
|
+
"tailwind-merge": "^3.7.1",
|
|
111
|
+
"tw-animate-css": "^1.4.0"
|
|
110
112
|
},
|
|
111
113
|
"overrides": {
|
|
112
114
|
"esbuild": "^0.28.2",
|
|
@@ -163,5 +165,5 @@
|
|
|
163
165
|
"bugs": {
|
|
164
166
|
"url": "https://github.com/MinServices/ui/issues"
|
|
165
167
|
},
|
|
166
|
-
"homepage": "https://
|
|
168
|
+
"homepage": "https://ui.min-services.com"
|
|
167
169
|
}
|