Skip to content

chore: update dependencies and import paths #473

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/examples/ant-design.tsx
Original file line number Diff line number Diff line change
@@ -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 =
Expand Down Expand Up @@ -128,7 +128,7 @@ const MyControl: React.FC = () => {
use custom icon, is using icon: {(useIcon && 'true') || 'false'}.
</button>
<div style={{ height: 200 }}>
<Select dropdownStyle={{ zIndex: 9999999 }}>
<Select popupStyle={{ zIndex: 9999999 }}>
<Select.Option value="light">Light</Select.Option>
</Select>
</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/bootstrap.tsx
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
8 changes: 4 additions & 4 deletions docs/examples/draggable.tsx
Original file line number Diff line number Diff line change
@@ -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 = () => {
Expand Down Expand Up @@ -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
</div>
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/multiple-Portal.tsx
Original file line number Diff line number Diff line change
@@ -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 = () => {
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/pure.tsx
Original file line number Diff line number Diff line change
@@ -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 = () => (
Expand Down
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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}": [
Expand All @@ -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",
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion tests/portal.spec.tsx
Original file line number Diff line number Diff line change
@@ -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';

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"@@/*": [
".dumi/tmp/*"
],
"rc-dialog": [
"@rc-component/dialog": [
"src/index.ts"
]
}
Expand Down
Loading