Skip to content

Commit

Permalink
chore: update package dependencies (#788)
Browse files Browse the repository at this point in the history
* chore: update package dependencies

* chore: bump deps

---------

Co-authored-by: 二货机器人 <smith3816@gmail.com>
  • Loading branch information
aojunhao123 and zombieJ authored Feb 25, 2025
1 parent f65defc commit a710e47
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion docs/examples/animated.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import Tabs from '../../src';
import type { CSSMotionProps } from 'rc-motion';
import type { CSSMotionProps } from '@rc-component/motion';
import '../../assets/index.less';
import './animated.less';

Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,13 @@
"@rc-component/util": "^1.2.0",
"@rc-component/motion": "^1.1.3",
"classnames": "2.x",
"rc-dropdown": "~4.2.0",
"rc-menu": "~9.16.0",
"rc-motion": "^2.6.2"
"@rc-component/dropdown": "~1.0.0",
"@rc-component/menu": "~1.0.0"
},
"devDependencies": {
"@rc-component/father-plugin": "^2.0.0",
"@rc-component/np": "^1.0.3",
"@rc-component/trigger": "^2.0.0",
"@rc-component/trigger": "^3.0.0",
"@testing-library/jest-dom": "^6.1.4",
"@testing-library/react": "^16.0.1",
"@testing-library/user-event": "^14.5.2",
Expand Down
4 changes: 2 additions & 2 deletions src/TabNavList/OperationNode.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import classNames from 'classnames';
import Dropdown from 'rc-dropdown';
import Menu, { MenuItem } from 'rc-menu';
import Dropdown from '@rc-component/dropdown';
import Menu, { MenuItem } from '@rc-component/menu';
import KeyCode from 'rc-util/lib/KeyCode';
import * as React from 'react';
import { useEffect, useState } from 'react';
Expand Down
2 changes: 1 addition & 1 deletion src/TabPanelList/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import classNames from 'classnames';
import CSSMotion from 'rc-motion';
import CSSMotion from '@rc-component/motion';
import * as React from 'react';
import type { AnimatedConfig, TabPosition } from '../interface';
import TabContext from '../TabContext';
Expand Down
10 changes: 5 additions & 5 deletions src/interface.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import type { CSSMotionProps } from 'rc-motion';
import type { CSSMotionProps } from '@rc-component/motion';
import { DropdownProps } from '@rc-component/dropdown/lib/Dropdown';
import type React from 'react';
import type { TabNavListProps } from './TabNavList';
import type { TabPaneProps } from './TabPanelList/TabPane';
import { DropdownProps } from 'rc-dropdown/lib/Dropdown';

export type TriggerProps = {
trigger?: 'hover' | 'click';
}
};
export type moreIcon = React.ReactNode;
export type MoreProps = {
icon?: moreIcon,
icon?: moreIcon;
} & Omit<DropdownProps, 'children'>;

export type SizeInfo = [width: number, height: number];
Expand Down Expand Up @@ -45,7 +45,7 @@ type RenderTabBarProps = {
mobile: boolean;
editable: EditableConfig;
locale: TabsLocale;
more: MoreProps,
more: MoreProps;
tabBarGutter: number;
onTabClick: (key: string, e: React.MouseEvent | React.KeyboardEvent) => void;
onTabScroll: OnTabScroll;
Expand Down

0 comments on commit a710e47

Please sign in to comment.