@work-rjkashyap/unified-ui 0.1.2 → 0.2.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/CHANGELOG.md +93 -0
- package/bin/cli.mjs +721 -0
- package/dist/{chunk-EO4WROWH.mjs → chunk-3OZJ4JLW.mjs} +116 -2
- package/dist/chunk-B3CW2WZS.cjs +20748 -0
- package/dist/chunk-CTWNFFLB.mjs +20438 -0
- package/dist/{chunk-7ITQSRGX.cjs → chunk-FUWXGHWQ.cjs} +0 -1
- package/dist/{chunk-ZPIPKY2J.cjs → chunk-HITTFB2U.cjs} +127 -1
- package/dist/{chunk-F5S6NLOT.mjs → chunk-OHEH57BV.mjs} +0 -1
- package/dist/{chunk-PQR7C4OH.cjs → chunk-TESKVASH.cjs} +332 -99
- package/dist/{chunk-ZDB557B2.mjs → chunk-YFH5JPAA.mjs} +331 -101
- package/dist/components.cjs +780 -126
- package/dist/components.d.cts +5183 -1464
- package/dist/components.d.ts +5183 -1464
- package/dist/components.mjs +3 -1
- package/dist/index.cjs +926 -214
- package/dist/index.d.cts +9 -6
- package/dist/index.d.ts +9 -6
- package/dist/index.mjs +5 -5
- package/dist/motion.cjs +94 -46
- package/dist/motion.d.cts +53 -2
- package/dist/motion.d.ts +53 -2
- package/dist/motion.mjs +1 -1
- package/dist/primitives.cjs +13 -13
- package/dist/primitives.mjs +1 -1
- package/dist/theme.cjs +40 -28
- package/dist/theme.d.cts +100 -62
- package/dist/theme.d.ts +100 -62
- package/dist/theme.mjs +1 -1
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.ts +1 -1
- package/package.json +190 -183
- package/styles.css +636 -473
- package/dist/chunk-4NYLE2LT.cjs +0 -10042
- package/dist/chunk-A4YYJAAJ.mjs +0 -9897
package/dist/theme.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
export { COLOR_PRESETS, COLOR_PRESET_KEYS, DEFAULT_FONT_KEY, DEFAULT_RADIUS_KEY, DEFAULT_SHADOW_KEY, DEFAULT_SURFACE_STYLE_KEY, DEFAULT_THEME_CONFIG, DSThemeProvider, FONT_PRESETS, RADIUS_PRESETS, SHADOW_PRESETS, SURFACE_STYLE_PRESETS, ThemeCustomizer, ThemeCustomizerProvider, buildDarkThemeVars, buildLightThemeVars, buildThemeCSS, buildThemeOverrides, contract, cssVar, generateThemeCSS, getColorPreset, getFontPreset, getRadiusPreset, getShadowPreset, useDSTheme, useThemeCustomizer } from './chunk-
|
|
2
|
+
export { COLOR_PRESETS, COLOR_PRESET_KEYS, DEFAULT_FONT_KEY, DEFAULT_RADIUS_KEY, DEFAULT_SHADOW_KEY, DEFAULT_STYLE_KEY, DEFAULT_SURFACE_STYLE_KEY, DEFAULT_THEME_CONFIG, DSThemeProvider, FONT_PRESETS, RADIUS_PRESETS, SHADOW_PRESETS, STYLE_PRESETS, SURFACE_STYLE_PRESETS, ThemeCustomizer, ThemeCustomizerProvider, buildDarkThemeVars, buildLightThemeVars, buildThemeCSS, buildThemeOverrides, contract, cssVar, generateThemeCSS, getColorPreset, getFontPreset, getRadiusPreset, getShadowPreset, getStylePreset, useDSTheme, useThemeCustomizer } from './chunk-YFH5JPAA.mjs';
|
|
3
3
|
import './chunk-TVCJRD3S.mjs';
|
|
4
4
|
import './chunk-ITBG42M5.mjs';
|
|
5
5
|
import './chunk-EZ2L3XPS.mjs';
|
package/dist/utils.d.cts
CHANGED
|
@@ -374,7 +374,7 @@ declare const focusWithinRingClassList: readonly ["focus-within:outline-none", "
|
|
|
374
374
|
*
|
|
375
375
|
* @template Default - The default element type when `as` is not specified.
|
|
376
376
|
*/
|
|
377
|
-
type AsProp<
|
|
377
|
+
type AsProp<_Default extends ElementType = "div"> = {
|
|
378
378
|
/**
|
|
379
379
|
* The HTML element or React component to render as.
|
|
380
380
|
* @default Default (varies per component)
|
package/dist/utils.d.ts
CHANGED
|
@@ -374,7 +374,7 @@ declare const focusWithinRingClassList: readonly ["focus-within:outline-none", "
|
|
|
374
374
|
*
|
|
375
375
|
* @template Default - The default element type when `as` is not specified.
|
|
376
376
|
*/
|
|
377
|
-
type AsProp<
|
|
377
|
+
type AsProp<_Default extends ElementType = "div"> = {
|
|
378
378
|
/**
|
|
379
379
|
* The HTML element or React component to render as.
|
|
380
380
|
* @default Default (varies per component)
|
package/package.json
CHANGED
|
@@ -1,193 +1,200 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
"name": "@work-rjkashyap/unified-ui",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"description": "A scalable, token-driven React design system with 75+ components, built with Tailwind CSS v4, Radix UI, and Framer Motion.",
|
|
5
|
+
"author": "Rajeshwar Kashyap",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"homepage": "https://github.com/imrj05/unified-ui#readme",
|
|
8
|
+
"bugs": {
|
|
9
|
+
"url": "https://github.com/imrj05/unified-ui/issues"
|
|
10
|
+
},
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "https://github.com/imrj05/unified-ui.git",
|
|
14
|
+
"directory": "packages/unified-ui"
|
|
15
|
+
},
|
|
16
|
+
"funding": {
|
|
17
|
+
"type": "github",
|
|
18
|
+
"url": "https://github.com/sponsors/imrj05"
|
|
19
|
+
},
|
|
20
|
+
"type": "module",
|
|
21
|
+
"bin": {
|
|
22
|
+
"unified-ui": "./bin/cli.mjs"
|
|
23
|
+
},
|
|
24
|
+
"main": "./dist/index.cjs",
|
|
25
|
+
"module": "./dist/index.mjs",
|
|
26
|
+
"types": "./dist/index.d.ts",
|
|
27
|
+
"sideEffects": [
|
|
28
|
+
"./styles.css",
|
|
29
|
+
"./dist/**/*.css"
|
|
30
|
+
],
|
|
31
|
+
"exports": {
|
|
32
|
+
".": {
|
|
33
|
+
"import": {
|
|
34
|
+
"types": "./dist/index.d.ts",
|
|
35
|
+
"default": "./dist/index.mjs"
|
|
36
|
+
},
|
|
37
|
+
"require": {
|
|
38
|
+
"types": "./dist/index.d.cts",
|
|
39
|
+
"default": "./dist/index.cjs"
|
|
40
|
+
}
|
|
10
41
|
},
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
"
|
|
14
|
-
"
|
|
42
|
+
"./tokens": {
|
|
43
|
+
"import": {
|
|
44
|
+
"types": "./dist/tokens.d.ts",
|
|
45
|
+
"default": "./dist/tokens.mjs"
|
|
46
|
+
},
|
|
47
|
+
"require": {
|
|
48
|
+
"types": "./dist/tokens.d.cts",
|
|
49
|
+
"default": "./dist/tokens.cjs"
|
|
50
|
+
}
|
|
15
51
|
},
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
"
|
|
52
|
+
"./theme": {
|
|
53
|
+
"import": {
|
|
54
|
+
"types": "./dist/theme.d.ts",
|
|
55
|
+
"default": "./dist/theme.mjs"
|
|
56
|
+
},
|
|
57
|
+
"require": {
|
|
58
|
+
"types": "./dist/theme.d.cts",
|
|
59
|
+
"default": "./dist/theme.cjs"
|
|
60
|
+
}
|
|
19
61
|
},
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"./dist
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
".": {
|
|
30
|
-
"import": {
|
|
31
|
-
"types": "./dist/index.d.ts",
|
|
32
|
-
"default": "./dist/index.mjs"
|
|
33
|
-
},
|
|
34
|
-
"require": {
|
|
35
|
-
"types": "./dist/index.d.cts",
|
|
36
|
-
"default": "./dist/index.cjs"
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
"./tokens": {
|
|
40
|
-
"import": {
|
|
41
|
-
"types": "./dist/tokens.d.ts",
|
|
42
|
-
"default": "./dist/tokens.mjs"
|
|
43
|
-
},
|
|
44
|
-
"require": {
|
|
45
|
-
"types": "./dist/tokens.d.cts",
|
|
46
|
-
"default": "./dist/tokens.cjs"
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
"./theme": {
|
|
50
|
-
"import": {
|
|
51
|
-
"types": "./dist/theme.d.ts",
|
|
52
|
-
"default": "./dist/theme.mjs"
|
|
53
|
-
},
|
|
54
|
-
"require": {
|
|
55
|
-
"types": "./dist/theme.d.cts",
|
|
56
|
-
"default": "./dist/theme.cjs"
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
"./primitives": {
|
|
60
|
-
"import": {
|
|
61
|
-
"types": "./dist/primitives.d.ts",
|
|
62
|
-
"default": "./dist/primitives.mjs"
|
|
63
|
-
},
|
|
64
|
-
"require": {
|
|
65
|
-
"types": "./dist/primitives.d.cts",
|
|
66
|
-
"default": "./dist/primitives.cjs"
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
"./components": {
|
|
70
|
-
"import": {
|
|
71
|
-
"types": "./dist/components.d.ts",
|
|
72
|
-
"default": "./dist/components.mjs"
|
|
73
|
-
},
|
|
74
|
-
"require": {
|
|
75
|
-
"types": "./dist/components.d.cts",
|
|
76
|
-
"default": "./dist/components.cjs"
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
"./motion": {
|
|
80
|
-
"import": {
|
|
81
|
-
"types": "./dist/motion.d.ts",
|
|
82
|
-
"default": "./dist/motion.mjs"
|
|
83
|
-
},
|
|
84
|
-
"require": {
|
|
85
|
-
"types": "./dist/motion.d.cts",
|
|
86
|
-
"default": "./dist/motion.cjs"
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
"./utils": {
|
|
90
|
-
"import": {
|
|
91
|
-
"types": "./dist/utils.d.ts",
|
|
92
|
-
"default": "./dist/utils.mjs"
|
|
93
|
-
},
|
|
94
|
-
"require": {
|
|
95
|
-
"types": "./dist/utils.d.cts",
|
|
96
|
-
"default": "./dist/utils.cjs"
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
"./styles.css": "./styles.css"
|
|
62
|
+
"./primitives": {
|
|
63
|
+
"import": {
|
|
64
|
+
"types": "./dist/primitives.d.ts",
|
|
65
|
+
"default": "./dist/primitives.mjs"
|
|
66
|
+
},
|
|
67
|
+
"require": {
|
|
68
|
+
"types": "./dist/primitives.d.cts",
|
|
69
|
+
"default": "./dist/primitives.cjs"
|
|
70
|
+
}
|
|
100
71
|
},
|
|
101
|
-
"
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
"./dist/primitives.d.ts"
|
|
111
|
-
],
|
|
112
|
-
"components": [
|
|
113
|
-
"./dist/components.d.ts"
|
|
114
|
-
],
|
|
115
|
-
"motion": [
|
|
116
|
-
"./dist/motion.d.ts"
|
|
117
|
-
],
|
|
118
|
-
"utils": [
|
|
119
|
-
"./dist/utils.d.ts"
|
|
120
|
-
]
|
|
121
|
-
}
|
|
72
|
+
"./components": {
|
|
73
|
+
"import": {
|
|
74
|
+
"types": "./dist/components.d.ts",
|
|
75
|
+
"default": "./dist/components.mjs"
|
|
76
|
+
},
|
|
77
|
+
"require": {
|
|
78
|
+
"types": "./dist/components.d.cts",
|
|
79
|
+
"default": "./dist/components.cjs"
|
|
80
|
+
}
|
|
122
81
|
},
|
|
123
|
-
"
|
|
124
|
-
|
|
125
|
-
"
|
|
126
|
-
"
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
"
|
|
131
|
-
|
|
132
|
-
"dev": "tsup --watch",
|
|
133
|
-
"clean": "rm -rf dist",
|
|
134
|
-
"typecheck": "tsc --noEmit",
|
|
135
|
-
"prepublishOnly": "npm run clean && npm run build"
|
|
82
|
+
"./motion": {
|
|
83
|
+
"import": {
|
|
84
|
+
"types": "./dist/motion.d.ts",
|
|
85
|
+
"default": "./dist/motion.mjs"
|
|
86
|
+
},
|
|
87
|
+
"require": {
|
|
88
|
+
"types": "./dist/motion.d.cts",
|
|
89
|
+
"default": "./dist/motion.cjs"
|
|
90
|
+
}
|
|
136
91
|
},
|
|
137
|
-
"
|
|
138
|
-
|
|
139
|
-
"
|
|
140
|
-
"
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
|
|
146
|
-
"tokens",
|
|
147
|
-
"design-tokens",
|
|
148
|
-
"framer-motion",
|
|
149
|
-
"accessibility",
|
|
150
|
-
"radix-ui",
|
|
151
|
-
"css-variables",
|
|
152
|
-
"theming",
|
|
153
|
-
"dark-mode",
|
|
154
|
-
"typescript",
|
|
155
|
-
"tree-shakeable"
|
|
156
|
-
],
|
|
157
|
-
"peerDependencies": {
|
|
158
|
-
"react": ">=19.0.0",
|
|
159
|
-
"react-dom": ">=19.0.0",
|
|
160
|
-
"tailwindcss": ">=4.0.0"
|
|
92
|
+
"./utils": {
|
|
93
|
+
"import": {
|
|
94
|
+
"types": "./dist/utils.d.ts",
|
|
95
|
+
"default": "./dist/utils.mjs"
|
|
96
|
+
},
|
|
97
|
+
"require": {
|
|
98
|
+
"types": "./dist/utils.d.cts",
|
|
99
|
+
"default": "./dist/utils.cjs"
|
|
100
|
+
}
|
|
161
101
|
},
|
|
162
|
-
"
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
"
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
"
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
"
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
"
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
"
|
|
191
|
-
|
|
102
|
+
"./styles.css": "./styles.css"
|
|
103
|
+
},
|
|
104
|
+
"typesVersions": {
|
|
105
|
+
"*": {
|
|
106
|
+
"tokens": [
|
|
107
|
+
"./dist/tokens.d.ts"
|
|
108
|
+
],
|
|
109
|
+
"theme": [
|
|
110
|
+
"./dist/theme.d.ts"
|
|
111
|
+
],
|
|
112
|
+
"primitives": [
|
|
113
|
+
"./dist/primitives.d.ts"
|
|
114
|
+
],
|
|
115
|
+
"components": [
|
|
116
|
+
"./dist/components.d.ts"
|
|
117
|
+
],
|
|
118
|
+
"motion": [
|
|
119
|
+
"./dist/motion.d.ts"
|
|
120
|
+
],
|
|
121
|
+
"utils": [
|
|
122
|
+
"./dist/utils.d.ts"
|
|
123
|
+
]
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"files": [
|
|
127
|
+
"dist",
|
|
128
|
+
"bin",
|
|
129
|
+
"styles.css",
|
|
130
|
+
"README.md",
|
|
131
|
+
"CHANGELOG.md"
|
|
132
|
+
],
|
|
133
|
+
"scripts": {
|
|
134
|
+
"build": "tsup",
|
|
135
|
+
"build:watch": "tsup --watch",
|
|
136
|
+
"dev": "tsup --watch",
|
|
137
|
+
"clean": "rm -rf dist",
|
|
138
|
+
"typecheck": "tsc --noEmit",
|
|
139
|
+
"prepublishOnly": "npm run clean && npm run build"
|
|
140
|
+
},
|
|
141
|
+
"keywords": [
|
|
142
|
+
"react",
|
|
143
|
+
"design-system",
|
|
144
|
+
"tailwindcss",
|
|
145
|
+
"tailwind",
|
|
146
|
+
"tailwind-css-v4",
|
|
147
|
+
"components",
|
|
148
|
+
"ui",
|
|
149
|
+
"unified-ui",
|
|
150
|
+
"tokens",
|
|
151
|
+
"design-tokens",
|
|
152
|
+
"framer-motion",
|
|
153
|
+
"accessibility",
|
|
154
|
+
"radix-ui",
|
|
155
|
+
"css-variables",
|
|
156
|
+
"theming",
|
|
157
|
+
"dark-mode",
|
|
158
|
+
"typescript",
|
|
159
|
+
"tree-shakeable"
|
|
160
|
+
],
|
|
161
|
+
"peerDependencies": {
|
|
162
|
+
"react": ">=19.0.0",
|
|
163
|
+
"react-dom": ">=19.0.0",
|
|
164
|
+
"tailwindcss": ">=4.0.0"
|
|
165
|
+
},
|
|
166
|
+
"peerDependenciesMeta": {
|
|
167
|
+
"tailwindcss": {
|
|
168
|
+
"optional": true
|
|
192
169
|
}
|
|
170
|
+
},
|
|
171
|
+
"dependencies": {
|
|
172
|
+
"class-variance-authority": "^0.7.1",
|
|
173
|
+
"clsx": "^2.1.1",
|
|
174
|
+
"radix-ui": "^1.4.3",
|
|
175
|
+
"react-resizable-panels": "^4.7.1",
|
|
176
|
+
"sonner": "^2.0.7",
|
|
177
|
+
"tailwind-merge": "^3.4.0",
|
|
178
|
+
"vaul": "^1.1.2"
|
|
179
|
+
},
|
|
180
|
+
"optionalDependencies": {
|
|
181
|
+
"@tanstack/react-table": ">=8.0.0",
|
|
182
|
+
"framer-motion": ">=12.0.0"
|
|
183
|
+
},
|
|
184
|
+
"devDependencies": {
|
|
185
|
+
"@tanstack/react-table": "^8.21.3",
|
|
186
|
+
"@types/react": "^19.2.8",
|
|
187
|
+
"@types/react-dom": "^19.2.3",
|
|
188
|
+
"framer-motion": "^12.34.3",
|
|
189
|
+
"react": "^19.2.3",
|
|
190
|
+
"react-dom": "^19.2.3",
|
|
191
|
+
"tsup": "^8.5.1",
|
|
192
|
+
"typescript": "^5.9.3"
|
|
193
|
+
},
|
|
194
|
+
"publishConfig": {
|
|
195
|
+
"access": "public"
|
|
196
|
+
},
|
|
197
|
+
"engines": {
|
|
198
|
+
"node": ">=20.0.0"
|
|
199
|
+
}
|
|
193
200
|
}
|