Skip to content

Commit 6ef2aa5

Browse files
committed
chore(skyroc-ui): 🔧 update package names and imports to 'skyroc-ui' across the playground and related files
1 parent e0702e9 commit 6ef2aa5

File tree

136 files changed

+240
-195
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

136 files changed

+240
-195
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,33 +51,33 @@ skyroc-ui/
5151

5252
```bash
5353
# 使用 npm
54-
npm install soybean-react-ui
54+
npm install skyroc-ui
5555

5656
# 使用 pnpm
57-
pnpm add soybean-react-ui
57+
pnpm add skyroc-ui
5858

5959
# 使用 yarn
60-
yarn add soybean-react-ui
60+
yarn add skyroc-ui
6161
```
6262

6363
### 配置 Tailwind CSS
6464

6565
安装 Tailwind CSS 插件:
6666

6767
```bash
68-
npm install @soybean-react-ui/tailwind-plugin
68+
npm install @skyroc-ui/tailwind-plugin
6969
```
7070

7171
`tailwind.config.js` 中配置:
7272

7373
```js
74-
import { soybeanUIPlugin } from '@soybean-react-ui/tailwind-plugin'
74+
import { soybeanUIPlugin } from '@skyroc-ui/tailwind-plugin'
7575

7676
/** @type {import('tailwindcss').Config} */
7777
export default {
7878
content: [
7979
'./src/**/*.{js,ts,jsx,tsx}',
80-
'./node_modules/soybean-react-ui/dist/**/*.{js,ts,jsx,tsx}'
80+
'./node_modules/skyroc-ui/dist/**/*.{js,ts,jsx,tsx}'
8181
],
8282
plugins: [soybeanUIPlugin()]
8383
}
@@ -86,7 +86,7 @@ export default {
8686
### 基础使用
8787

8888
```tsx
89-
import { Button, Card, Input } from 'soybean-react-ui'
89+
import { Button, Card, Input } from 'skyroc-ui'
9090

9191
function App() {
9292
return (
@@ -173,7 +173,7 @@ Soybean React UI 支持灵活的主题定制:
173173
### 颜色系统
174174

175175
```tsx
176-
import { ConfigProvider } from 'soybean-react-ui'
176+
import { ConfigProvider } from 'skyroc-ui'
177177

178178
function App() {
179179
return (
@@ -205,7 +205,7 @@ function App() {
205205
内置强大的表单系统,支持复杂的表单场景:
206206

207207
```tsx
208-
import { Form, useForm } from 'soybean-react-ui'
208+
import { Form, useForm } from 'skyroc-ui'
209209
import { z } from 'zod'
210210

211211
const schema = z.object({
@@ -318,7 +318,7 @@ pnpm lint
318318

319319
- 作者: Ohh
320320
- 邮箱: 15093262@qq.com
321-
- GitHub: [https://github.com/Ohh-889/soybean-react-ui](https://github.com/Ohh-889/soybean-react-ui)
321+
- GitHub: [https://github.com/Ohh-889/skyroc-ui](https://github.com/Ohh-889/skyroc-ui)
322322

323323
---
324324

internal/create-skyroc/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
"url": "https://github.com/Ohh-889"
1010
},
1111
"license": "MIT",
12-
"homepage": "https://github.com/Ohh-889/soybean-react-ui",
12+
"homepage": "https://github.com/Ohh-889/skyroc-ui",
1313
"repository": {
14-
"url": "https://github.com/Ohh-889/soybean-react-ui.git"
14+
"url": "https://github.com/Ohh-889/skyroc-ui.git"
1515
},
1616
"bugs": {
17-
"url": "https://github.com/Ohh-889/soybean-react-ui/issues"
17+
"url": "https://github.com/Ohh-889/skyroc-ui/issues"
1818
},
1919
"publishConfig": {
2020
"registry": "https://registry.npmjs.org/",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"check-types": "turbo run check-types",
1313
"commit": "sr git-commit",
1414
"cpn": "tsx script/cp.ts",
15-
"deploy:playground": "pnpm --filter soybean-react-ui-playground deploy",
15+
"deploy:playground": "pnpm --filter skyroc-ui-playground deploy",
1616
"dev": "turbo run dev",
1717
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
1818
"lint": "turbo run lint",

packages/next-docs-plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@
6060
"react-error-boundary": "^6.0.0",
6161
"react-icons": "^5.5.0",
6262
"shiki": "^3.13.0",
63+
"skyroc-ui": "workspace:*",
6364
"slash": "5.1.0",
64-
"soybean-react-ui": "workspace:*",
6565
"unist-util-visit": "5.0.0"
6666
},
6767
"devDependencies": {

packages/next-docs-plugin/src/components/Pre.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
import cn from 'clsx';
44
import { Check, Copy, WrapText } from 'lucide-react';
55
import { type FC, type HTMLAttributes, type MouseEvent, type ReactNode, useEffect, useState } from 'react';
6-
import type { ButtonProps } from 'soybean-react-ui';
7-
import { Button } from 'soybean-react-ui';
6+
import type { ButtonProps } from 'skyroc-ui';
7+
import { Button } from 'skyroc-ui';
88

99
/* -------------------- ToggleWordWrapButton -------------------- */
1010
function toggleWordWrap() {

packages/ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "soybean-react-ui",
2+
"name": "skyroc-ui",
33
"type": "module",
44
"version": "0.0.1",
55
"private": false,

packages/ui/registry.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2351,5 +2351,5 @@
23512351
"type": "registry:lib"
23522352
}
23532353
],
2354-
"name": "soybean-react-ui"
2354+
"name": "skyroc-ui"
23552355
}

packages/ui/script/registry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ const registry = {
8383
registerType,
8484
registryUtils
8585
],
86-
name: 'soybean-react-ui'
86+
name: 'skyroc-ui'
8787
};
8888

8989
const registryJson = JSON.stringify(registry, null, 2);

playground/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,22 @@
1010
"url": "https://github.com/Ohh-889"
1111
},
1212
"license": "MIT",
13-
"homepage": "https://github.com/Ohh-889/soybean-react-ui",
13+
"homepage": "https://github.com/Ohh-889/skyroc-ui",
1414
"repository": {
15-
"url": "https://github.com/Ohh-889/soybean-react-ui.git"
15+
"url": "https://github.com/Ohh-889/skyroc-ui.git"
1616
},
1717
"bugs": {
18-
"url": "https://github.com/Ohh-889/soybean-react-ui/issues"
18+
"url": "https://github.com/Ohh-889/skyroc-ui/issues"
1919
},
2020
"keywords": ["UI", "tailwind-css", "shadcn-ui", "react"],
2121
"scripts": {
2222
"build": "next build",
23-
"build:ui": "pnpm --filter soybean-react-ui build",
23+
"build:ui": "pnpm --filter skyroc-ui build",
2424
"cf-typegen": "wrangler types --env-interface CloudflareEnv cloudflare-env.d.ts",
2525
"deploy": "pnpm run build:ui && pnpm run worker:build && opennextjs-cloudflare deploy",
2626
"dev": "pnpm run dev:ui && pnpm run dev:playground",
2727
"dev:playground": "next dev --turbopack",
28-
"dev:ui": "pnpm --filter soybean-react-ui dev",
28+
"dev:ui": "pnpm --filter skyroc-ui dev",
2929
"lint": "next lint",
3030
"lint:pkg": "eslint ./package.json --fix",
3131
"preview": "opennextjs-cloudflare build && opennextjs-cloudflare preview",
@@ -43,7 +43,7 @@
4343
"react": "19.1.0",
4444
"react-dom": "19.1.0",
4545
"react-hotkeys-hook": "5.1.0",
46-
"soybean-react-ui": "workspace:*",
46+
"skyroc-ui": "workspace:*",
4747
"zod": "4.0.17"
4848
},
4949
"devDependencies": {

playground/public/r/registry.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2351,5 +2351,5 @@
23512351
"type": "registry:lib"
23522352
}
23532353
],
2354-
"name": "soybean-react-ui"
2354+
"name": "skyroc-ui"
23552355
}

0 commit comments

Comments
 (0)