Skip to content

Commit 7570ad4

Browse files
committed
chore: update deps
1 parent d5ee44b commit 7570ad4

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@
5151
"dependencies": {
5252
"@babel/runtime": "^7.10.1",
5353
"@rc-component/portal": "^1.0.0-8",
54+
"@rc-component/util": "^1.0.1",
5455
"classnames": "^2.2.6",
55-
"rc-motion": "^2.3.0",
56-
"rc-util": "^5.21.0"
56+
"rc-motion": "^2.3.0"
5757
},
5858
"devDependencies": {
59-
"@rc-component/father-plugin": "^1.0.1",
59+
"@rc-component/father-plugin": "^2.0.1",
6060
"@testing-library/jest-dom": "^6.1.6",
6161
"@testing-library/react": "^12.0.0",
6262
"@types/enzyme": "^3.10.7",

src/Dialog/Content/Panel.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import classNames from 'classnames';
2-
import { useComposeRef } from 'rc-util/lib/ref';
2+
import { useComposeRef } from '@rc-component/util/lib/ref';
33
import React, { useMemo, useRef } from 'react';
44
import { RefContext } from '../../context';
55
import type { IDialogPropTypes } from '../../IDialogPropTypes';
66
import MemoChildren from './MemoChildren';
7-
import pickAttrs from 'rc-util/lib/pickAttrs';
7+
import pickAttrs from '@rc-component/util/lib/pickAttrs';
88

99
const sentinelStyle = { width: 0, height: 0, overflow: 'hidden', outline: 'none' };
1010
const entityStyle = { outline: 'none' };

src/Dialog/index.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import classNames from 'classnames';
2-
import contains from 'rc-util/lib/Dom/contains';
3-
import useId from 'rc-util/lib/hooks/useId';
4-
import KeyCode from 'rc-util/lib/KeyCode';
5-
import pickAttrs from 'rc-util/lib/pickAttrs';
2+
import contains from '@rc-component/util/lib/Dom/contains';
3+
import useId from '@rc-component/util/lib/hooks/useId';
4+
import KeyCode from '@rc-component/util/lib/KeyCode';
5+
import pickAttrs from '@rc-component/util/lib/pickAttrs';
66
import * as React from 'react';
77
import { useEffect, useRef } from 'react';
88
import type { IDialogPropTypes } from '../IDialogPropTypes';
99
import { getMotionName } from '../util';
1010
import Content from './Content';
1111
import type { ContentRef } from './Content/Panel';
1212
import Mask from './Mask';
13-
import { warning } from 'rc-util/lib/warning';
13+
import { warning } from '@rc-component/util/lib/warning';
1414

1515
const Dialog: React.FC<IDialogPropTypes> = (props) => {
1616
const {

src/IDialogPropTypes.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { GetContainer } from 'rc-util/lib/PortalWrapper';
1+
import type { GetContainer } from '@rc-component/util/lib/PortalWrapper';
22
import type { CSSProperties, ReactNode, SyntheticEvent } from 'react';
33

44
export type SemanticName = 'header' | 'body' | 'footer' | 'section' | 'title' | 'wrapper' | 'mask';

tests/index.spec.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { fireEvent, render } from '@testing-library/react';
33
import type { ReactWrapper } from 'enzyme';
44
import { mount } from 'enzyme';
55
import { Provider } from 'rc-motion';
6-
import KeyCode from 'rc-util/lib/KeyCode';
6+
import KeyCode from '@rc-component/util/lib/KeyCode';
77
import React, { cloneElement, useEffect } from 'react';
88
import { act } from 'react-dom/test-utils';
99
import type { DialogProps } from '../src';

0 commit comments

Comments
 (0)