Skip to content

Commit 8678193

Browse files
authored
Avoid util deep imports (#298)
* chore: avoid util deep imports * chore: bump util to latest
1 parent 28da2ca commit 8678193

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@
4646
]
4747
},
4848
"dependencies": {
49-
"@rc-component/util": "^1.3.0",
49+
"@rc-component/util": "^1.11.1",
5050
"clsx": "^2.1.1"
5151
},
5252
"devDependencies": {
53-
"@rc-component/father-plugin": "^2.1.3",
53+
"@rc-component/father-plugin": "^2.2.0",
5454
"@rc-component/np": "^1.0.0",
5555
"@testing-library/jest-dom": "^6.1.5",
5656
"@testing-library/react": "^14.1.2",

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import useControlledState from '@rc-component/util/lib/hooks/useControlledState';
1+
import { useControlledState } from '@rc-component/util';
22
import { clsx } from 'clsx';
33
import * as React from 'react';
44
import { forwardRef, useImperativeHandle, useRef } from 'react';

tests/index.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import KeyCode from '@rc-component/util/lib/KeyCode';
1+
import { KeyCode } from '@rc-component/util';
22
import { fireEvent, render } from '@testing-library/react';
33
import * as React from 'react';
44
import Checkbox from '../src';

0 commit comments

Comments
 (0)