Skip to content

Commit

Permalink
chore: update deps (#360)
Browse files Browse the repository at this point in the history
* chore: update deps

* chore: bump father plugin

* chore: clean up
  • Loading branch information
zombieJ authored Jan 9, 2025
1 parent 748ae23 commit 82fbbbf
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rc-collapse",
"version": "4.0.0",
"name": "@rc-component/collapse",
"version": "1.0.0-0",
"description": "rc-collapse ui component for react",
"keywords": [
"react",
Expand Down Expand Up @@ -46,12 +46,12 @@
},
"dependencies": {
"@babel/runtime": "^7.10.1",
"@rc-component/util": "^1.0.1",
"classnames": "2.x",
"rc-motion": "^2.3.4",
"rc-util": "^5.27.0"
"rc-motion": "^2.3.4"
},
"devDependencies": {
"@rc-component/father-plugin": "^1.0.1",
"@rc-component/father-plugin": "^2.0.1",
"@testing-library/jest-dom": "^6.1.4",
"@testing-library/react": "^14.1.2",
"@testing-library/user-event": "^14.5.2",
Expand Down
6 changes: 3 additions & 3 deletions src/Collapse.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import classNames from 'classnames';
import useMergedState from 'rc-util/lib/hooks/useMergedState';
import warning from 'rc-util/lib/warning';
import useMergedState from '@rc-component/util/lib/hooks/useMergedState';
import warning from '@rc-component/util/lib/warning';
import React from 'react';
import useItems from './hooks/useItems';
import type { CollapseProps } from './interface';
import CollapsePanel from './Panel';
import pickAttrs from 'rc-util/lib/pickAttrs';
import pickAttrs from '@rc-component/util/lib/pickAttrs';

function getActiveKeysArray(activeKey: React.Key | React.Key[]) {
let currentActiveKey = activeKey;
Expand Down
2 changes: 1 addition & 1 deletion src/Panel.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import classNames from 'classnames';
import CSSMotion from 'rc-motion';
import KeyCode from 'rc-util/lib/KeyCode';
import KeyCode from '@rc-component/util/lib/KeyCode';
import React from 'react';
import type { CollapsePanelProps } from './interface';
import PanelContent from './PanelContent';
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useItems.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import toArray from 'rc-util/lib/Children/toArray';
import toArray from '@rc-component/util/lib/Children/toArray';
import React from 'react';
import type { CollapsePanelProps, CollapseProps, ItemType } from '../interface';
import CollapsePanel from '../Panel';
Expand Down

0 comments on commit 82fbbbf

Please sign in to comment.