Skip to content

Commit 6de6f1e

Browse files
committed
feat(dependencies): update multiple dependency versions, add new dependencies, and optimize style registry and plugin structure
1 parent 231c0c3 commit 6de6f1e

File tree

8 files changed

+340
-91
lines changed

8 files changed

+340
-91
lines changed

packages/color/package.json

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,43 @@
33
"type": "module",
44
"version": "0.0.1",
55
"publishConfig": {
6-
"registry": "https://registry.npmjs.org/"
6+
"registry": "https://registry.npmjs.org/",
7+
"main": "./dist/index.cjs",
8+
"module": "./dist/index.mjs",
9+
"types": "./dist/index.d.ts",
10+
"exports": {
11+
".": {
12+
"import": {
13+
"types": "./dist/index.d.ts",
14+
"default": "./dist/index.mjs"
15+
},
16+
"require": {
17+
"types": "./dist/index.d.cts",
18+
"default": "./dist/index.cjs"
19+
}
20+
}
21+
}
722
},
823
"sideEffects": false,
924
"exports": {
1025
".": {
1126
"import": "./src/index.ts"
1227
}
1328
},
14-
"main": "./dist/index.cjs",
15-
"module": "./dist/index.mjs",
16-
"types": "./dist/index.d.ts",
17-
"typings": "./dist/index.d.ts",
29+
"main": "./src/index.ts",
30+
"module": "./src/index.ts",
31+
"types": "./src/index.ts",
32+
"typings": "./src/index.ts",
1833
"files": ["./dist"],
1934
"scripts": {
20-
"build": "tsup"
35+
"build": "tsup",
36+
"lint:pkg": "eslint ./package.json --fix"
2137
},
2238
"dependencies": {
2339
"colord": "2.9.3"
40+
},
41+
"devDependencies": {
42+
"tsup": "8.5.0",
43+
"typescript": "5.9.3"
2444
}
2545
}

packages/ui/registry.json

Lines changed: 46 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,58 @@
55
"css": {
66
"@import \"tailwindcss\"": {},
77
"@import \"tw-animate-css\"": {},
8-
"@plugin \"@soybean-react-ui/tailwind-plugin\"": {},
8+
"@plugin \"../plugins/tailwind-plugin\"": {},
99
"@plugin \"tailwindcss-animate\"": {},
1010
"html": {
11-
"overflowX": "hidden"
11+
"overflow-x": "hidden"
1212
},
1313
"html,body,#app": {
1414
"height": "100%"
1515
}
1616
},
17-
"dependencies": ["tailwind-variants", "lucide-react", "clsx", "tailwind-merge"],
17+
"dependencies": [
18+
"tailwind-variants",
19+
"tailwindcss-animate",
20+
"tw-animate-css",
21+
"tailwindcss",
22+
"lucide-react",
23+
"clsx",
24+
"tailwind-merge",
25+
"@tailwindcss/postcss"
26+
],
1827
"extends": "none",
19-
"files": [],
28+
"files": [
29+
{
30+
"path": "../tailwind-plugin/src/generate.ts",
31+
"target": "plugins/tailwind-plugin/generate.ts",
32+
"type": "registry:file"
33+
},
34+
{
35+
"path": "../tailwind-plugin/src/types.ts",
36+
"target": "plugins/tailwind-plugin/types.ts",
37+
"type": "registry:file"
38+
},
39+
{
40+
"path": "../tailwind-plugin/src/themePresets.ts",
41+
"target": "plugins/tailwind-plugin/themePresets.ts",
42+
"type": "registry:file"
43+
},
44+
{
45+
"path": "../tailwind-plugin/src/index.ts",
46+
"target": "plugins/tailwind-plugin/index.ts",
47+
"type": "registry:file"
48+
},
49+
{
50+
"path": "../tailwind-plugin/src/presets.ts",
51+
"target": "plugins/tailwind-plugin/presets.ts",
52+
"type": "registry:file"
53+
},
54+
{
55+
"path": "../tailwind-plugin/src/theme.json",
56+
"target": "plugins/tailwind-plugin/theme.json",
57+
"type": "registry:file"
58+
}
59+
],
2060
"name": "style",
2161
"registryDependencies": ["https://ui-play.skyroc.me/r/utils.json", "https://ui-play.skyroc.me/r/types.json"],
2262
"type": "registry:style"
@@ -1208,7 +1248,8 @@
12081248
],
12091249
"name": "icon",
12101250
"title": "Icon",
1211-
"type": "registry:block"
1251+
"type": "registry:block",
1252+
"dependencies": ["@iconify/react"]
12121253
},
12131254
{
12141255
"files": [

packages/ui/script/constants.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ export const registryComponentsDependencies: Record<
4242
divider: {
4343
dependencies: ['@radix-ui/react-separator']
4444
},
45+
icon: {
46+
dependencies: ['@iconify/react']
47+
},
4548
label: {
4649
dependencies: ['@radix-ui/react-label']
4750
},

packages/ui/script/registry.ts

Lines changed: 44 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,58 @@ const registry = {
2222
css: {
2323
'@import "tailwindcss"': {},
2424
'@import "tw-animate-css"': {},
25-
'@plugin "@soybean-react-ui/tailwind-plugin"': {},
25+
'@plugin "../plugins/tailwind-plugin"': {},
2626
'@plugin "tailwindcss-animate"': {},
2727
html: {
28-
overflowX: 'hidden'
28+
'overflow-x': 'hidden'
2929
},
3030
'html,body,#app': {
3131
height: '100%'
3232
}
3333
},
34-
dependencies: ['tailwind-variants', 'lucide-react', 'clsx', 'tailwind-merge'],
34+
dependencies: [
35+
'tailwind-variants',
36+
'tailwindcss-animate',
37+
'tw-animate-css',
38+
'tailwindcss',
39+
'lucide-react',
40+
'clsx',
41+
'tailwind-merge',
42+
'@tailwindcss/postcss'
43+
],
3544
extends: 'none',
36-
files: [],
45+
files: [
46+
{
47+
path: '../tailwind-plugin/src/generate.ts',
48+
target: 'plugins/tailwind-plugin/generate.ts',
49+
type: 'registry:file'
50+
},
51+
{
52+
path: '../tailwind-plugin/src/types.ts',
53+
target: 'plugins/tailwind-plugin/types.ts',
54+
type: 'registry:file'
55+
},
56+
{
57+
path: '../tailwind-plugin/src/themePresets.ts',
58+
target: 'plugins/tailwind-plugin/themePresets.ts',
59+
type: 'registry:file'
60+
},
61+
{
62+
path: '../tailwind-plugin/src/index.ts',
63+
target: 'plugins/tailwind-plugin/index.ts',
64+
type: 'registry:file'
65+
},
66+
{
67+
path: '../tailwind-plugin/src/presets.ts',
68+
target: 'plugins/tailwind-plugin/presets.ts',
69+
type: 'registry:file'
70+
},
71+
{
72+
path: '../tailwind-plugin/src/theme.json',
73+
target: 'plugins/tailwind-plugin/theme.json',
74+
type: 'registry:file'
75+
}
76+
],
3777
name: 'style',
3878
registryDependencies: [getSelfRegistryDependencies('utils'), getSelfRegistryDependencies('types')],
3979
type: 'registry:style'

playground/public/r/icon.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"name": "icon",
44
"type": "registry:block",
55
"title": "Icon",
6+
"dependencies": ["@iconify/react"],
67
"files": [
78
{
89
"path": "src/components/icon/Icon.tsx",

playground/public/r/registry.json

Lines changed: 46 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,58 @@
55
"css": {
66
"@import \"tailwindcss\"": {},
77
"@import \"tw-animate-css\"": {},
8-
"@plugin \"@soybean-react-ui/tailwind-plugin\"": {},
8+
"@plugin \"../plugins/tailwind-plugin\"": {},
99
"@plugin \"tailwindcss-animate\"": {},
1010
"html": {
11-
"overflowX": "hidden"
11+
"overflow-x": "hidden"
1212
},
1313
"html,body,#app": {
1414
"height": "100%"
1515
}
1616
},
17-
"dependencies": ["tailwind-variants", "lucide-react", "clsx", "tailwind-merge"],
17+
"dependencies": [
18+
"tailwind-variants",
19+
"tailwindcss-animate",
20+
"tw-animate-css",
21+
"tailwindcss",
22+
"lucide-react",
23+
"clsx",
24+
"tailwind-merge",
25+
"@tailwindcss/postcss"
26+
],
1827
"extends": "none",
19-
"files": [],
28+
"files": [
29+
{
30+
"path": "../tailwind-plugin/src/generate.ts",
31+
"target": "plugins/tailwind-plugin/generate.ts",
32+
"type": "registry:file"
33+
},
34+
{
35+
"path": "../tailwind-plugin/src/types.ts",
36+
"target": "plugins/tailwind-plugin/types.ts",
37+
"type": "registry:file"
38+
},
39+
{
40+
"path": "../tailwind-plugin/src/themePresets.ts",
41+
"target": "plugins/tailwind-plugin/themePresets.ts",
42+
"type": "registry:file"
43+
},
44+
{
45+
"path": "../tailwind-plugin/src/index.ts",
46+
"target": "plugins/tailwind-plugin/index.ts",
47+
"type": "registry:file"
48+
},
49+
{
50+
"path": "../tailwind-plugin/src/presets.ts",
51+
"target": "plugins/tailwind-plugin/presets.ts",
52+
"type": "registry:file"
53+
},
54+
{
55+
"path": "../tailwind-plugin/src/theme.json",
56+
"target": "plugins/tailwind-plugin/theme.json",
57+
"type": "registry:file"
58+
}
59+
],
2060
"name": "style",
2161
"registryDependencies": ["https://ui-play.skyroc.me/r/utils.json", "https://ui-play.skyroc.me/r/types.json"],
2262
"type": "registry:style"
@@ -1208,7 +1248,8 @@
12081248
],
12091249
"name": "icon",
12101250
"title": "Icon",
1211-
"type": "registry:block"
1251+
"type": "registry:block",
1252+
"dependencies": ["@iconify/react"]
12121253
},
12131254
{
12141255
"files": [

0 commit comments

Comments
 (0)