diff --git a/docs/examples/ant-design.tsx b/docs/examples/ant-design.tsx
index dd7cabe2..d1ffab74 100644
--- a/docs/examples/ant-design.tsx
+++ b/docs/examples/ant-design.tsx
@@ -1,8 +1,8 @@
/* eslint no-console:0 */
import * as React from 'react';
-import Select from 'rc-select';
-import 'rc-select/assets/index.less';
-import Dialog from 'rc-dialog';
+import Select from '@rc-component/select';
+import '@rc-component/select/assets/index.less';
+import Dialog from '@rc-component/dialog';
import '../../assets/index.less';
const clearPath =
@@ -128,7 +128,7 @@ const MyControl: React.FC = () => {
use custom icon, is using icon: {(useIcon && 'true') || 'false'}.
-
diff --git a/docs/examples/bootstrap.tsx b/docs/examples/bootstrap.tsx
index 7a57b413..8eada881 100644
--- a/docs/examples/bootstrap.tsx
+++ b/docs/examples/bootstrap.tsx
@@ -1,5 +1,5 @@
import React from 'react';
-import Dialog from 'rc-dialog';
+import Dialog from '@rc-component/dialog';
import 'bootstrap/dist/css/bootstrap.css';
import '../../assets/bootstrap.less';
diff --git a/docs/examples/draggable.tsx b/docs/examples/draggable.tsx
index 0835feb2..d5a5d2d6 100644
--- a/docs/examples/draggable.tsx
+++ b/docs/examples/draggable.tsx
@@ -1,7 +1,7 @@
import 'bootstrap/dist/css/bootstrap.css';
import * as React from 'react';
import Draggable from 'react-draggable';
-import Dialog from 'rc-dialog';
+import Dialog from '@rc-component/dialog';
import '../../assets/index.less';
const MyControl: React.FC = () => {
@@ -39,9 +39,9 @@ const MyControl: React.FC = () => {
}}
// fix eslintjsx-a11y/mouse-events-have-key-events
// https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/mouse-events-have-key-events.md
- onFocus={() => {}}
- onBlur={() => {}}
- // end
+ onFocus={() => { }}
+ onBlur={() => { }}
+ // end
>
modal
diff --git a/docs/examples/multiple-Portal.tsx b/docs/examples/multiple-Portal.tsx
index 91246734..0345601c 100644
--- a/docs/examples/multiple-Portal.tsx
+++ b/docs/examples/multiple-Portal.tsx
@@ -1,7 +1,7 @@
import * as React from 'react';
-import Drawer from 'rc-drawer';
+import Drawer from '@rc-component/drawer';
import 'rc-drawer/assets/index.css';
-import Dialog from 'rc-dialog';
+import Dialog from '@rc-component/dialog';
import '../../assets/index.less';
const Demo: React.FC = () => {
diff --git a/docs/examples/pure.tsx b/docs/examples/pure.tsx
index 9ac3dffa..bf8d650d 100644
--- a/docs/examples/pure.tsx
+++ b/docs/examples/pure.tsx
@@ -1,6 +1,6 @@
import React from 'react';
-import { Panel } from 'rc-dialog';
-import 'rc-select/assets/index.less';
+import { Panel } from '@rc-component/dialog';
+import '@rc-component/select/assets/index.less';
import '../../assets/index.less';
const Demo: React.FC = () => (
diff --git a/package.json b/package.json
index b162d3d3..4f8fb0f7 100644
--- a/package.json
+++ b/package.json
@@ -40,7 +40,8 @@
"prepublishOnly": "npm run compile && rc-np",
"prettier": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md}\"",
"start": "dumi dev",
- "test": "rc-test"
+ "test": "rc-test",
+ "tsc": "bunx tsc --noEmit"
},
"lint-staged": {
"**/*.{js,jsx,tsx,ts,md,json}": [
@@ -49,12 +50,14 @@
]
},
"dependencies": {
- "@rc-component/portal": "^1.0.0-8",
+ "@rc-component/motion": "^1.1.3",
+ "@rc-component/portal": "^2.0.0",
"@rc-component/util": "^1.0.1",
- "classnames": "^2.2.6",
- "@rc-component/motion": "^1.1.3"
+ "classnames": "^2.2.6"
},
"devDependencies": {
+ "@rc-component/drawer": "^1.0.0",
+ "@rc-component/select": "^1.0.0",
"@rc-component/father-plugin": "^2.0.2",
"@rc-component/np": "^1.0.3",
"@testing-library/jest-dom": "^6.1.6",
@@ -78,8 +81,6 @@
"less": "^4.1.3",
"lint-staged": "^15.2.0",
"prettier": "^3.2.1",
- "rc-drawer": "^7.0.0",
- "rc-select": "^14.11.0",
"rc-test": "^7.0.14",
"react": "^18.0.0",
"react-dom": "^18.0.0",
diff --git a/tests/portal.spec.tsx b/tests/portal.spec.tsx
index 4079cbc7..cdae89c8 100644
--- a/tests/portal.spec.tsx
+++ b/tests/portal.spec.tsx
@@ -1,6 +1,6 @@
/* eslint-disable react/no-render-return-value, max-classes-per-file, func-names, no-console */
import React from 'react';
-import Select from 'rc-select';
+import Select from '@rc-component/select';
import { render, fireEvent } from '@testing-library/react';
import Dialog from '../src';
diff --git a/tsconfig.json b/tsconfig.json
index a1d04229..856f494f 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -14,7 +14,7 @@
"@@/*": [
".dumi/tmp/*"
],
- "rc-dialog": [
+ "@rc-component/dialog": [
"src/index.ts"
]
}