From a710e4762801bb63e20e173802c8a59a03d12971 Mon Sep 17 00:00:00 2001 From: Jony J <1844749591@qq.com> Date: Tue, 25 Feb 2025 15:21:59 +0800 Subject: [PATCH] chore: update package dependencies (#788) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: update package dependencies * chore: bump deps --------- Co-authored-by: 二货机器人 --- docs/examples/animated.tsx | 2 +- package.json | 7 +++---- src/TabNavList/OperationNode.tsx | 4 ++-- src/TabPanelList/index.tsx | 2 +- src/interface.ts | 10 +++++----- 5 files changed, 12 insertions(+), 13 deletions(-) diff --git a/docs/examples/animated.tsx b/docs/examples/animated.tsx index c28d62fa..f6118acb 100644 --- a/docs/examples/animated.tsx +++ b/docs/examples/animated.tsx @@ -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'; diff --git a/package.json b/package.json index 09318cd5..37b125b2 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/TabNavList/OperationNode.tsx b/src/TabNavList/OperationNode.tsx index 4c29c572..5b58db4e 100644 --- a/src/TabNavList/OperationNode.tsx +++ b/src/TabNavList/OperationNode.tsx @@ -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'; diff --git a/src/TabPanelList/index.tsx b/src/TabPanelList/index.tsx index e340498d..2082c493 100644 --- a/src/TabPanelList/index.tsx +++ b/src/TabPanelList/index.tsx @@ -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'; diff --git a/src/interface.ts b/src/interface.ts index 162e1345..6c62e24e 100644 --- a/src/interface.ts +++ b/src/interface.ts @@ -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; export type SizeInfo = [width: number, height: number]; @@ -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;