Skip to content

Commit 82fbbbf

Browse files
authored
chore: update deps (#360)
* chore: update deps * chore: bump father plugin * chore: clean up
1 parent 748ae23 commit 82fbbbf

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "rc-collapse",
3-
"version": "4.0.0",
2+
"name": "@rc-component/collapse",
3+
"version": "1.0.0-0",
44
"description": "rc-collapse ui component for react",
55
"keywords": [
66
"react",
@@ -46,12 +46,12 @@
4646
},
4747
"dependencies": {
4848
"@babel/runtime": "^7.10.1",
49+
"@rc-component/util": "^1.0.1",
4950
"classnames": "2.x",
50-
"rc-motion": "^2.3.4",
51-
"rc-util": "^5.27.0"
51+
"rc-motion": "^2.3.4"
5252
},
5353
"devDependencies": {
54-
"@rc-component/father-plugin": "^1.0.1",
54+
"@rc-component/father-plugin": "^2.0.1",
5555
"@testing-library/jest-dom": "^6.1.4",
5656
"@testing-library/react": "^14.1.2",
5757
"@testing-library/user-event": "^14.5.2",

src/Collapse.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import classNames from 'classnames';
2-
import useMergedState from 'rc-util/lib/hooks/useMergedState';
3-
import warning from 'rc-util/lib/warning';
2+
import useMergedState from '@rc-component/util/lib/hooks/useMergedState';
3+
import warning from '@rc-component/util/lib/warning';
44
import React from 'react';
55
import useItems from './hooks/useItems';
66
import type { CollapseProps } from './interface';
77
import CollapsePanel from './Panel';
8-
import pickAttrs from 'rc-util/lib/pickAttrs';
8+
import pickAttrs from '@rc-component/util/lib/pickAttrs';
99

1010
function getActiveKeysArray(activeKey: React.Key | React.Key[]) {
1111
let currentActiveKey = activeKey;

src/Panel.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import classNames from 'classnames';
22
import CSSMotion from 'rc-motion';
3-
import KeyCode from 'rc-util/lib/KeyCode';
3+
import KeyCode from '@rc-component/util/lib/KeyCode';
44
import React from 'react';
55
import type { CollapsePanelProps } from './interface';
66
import PanelContent from './PanelContent';

src/hooks/useItems.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import toArray from 'rc-util/lib/Children/toArray';
1+
import toArray from '@rc-component/util/lib/Children/toArray';
22
import React from 'react';
33
import type { CollapsePanelProps, CollapseProps, ItemType } from '../interface';
44
import CollapsePanel from '../Panel';

0 commit comments

Comments
 (0)