From fbcc30a3aea7f253070f8cd4146d6252f00b9098 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E8=89=B3=E5=85=B5?= Date: Wed, 20 May 2026 08:49:51 +0800 Subject: [PATCH 1/2] chore: avoid util deep imports --- package.json | 4 ++-- src/Step.tsx | 2 +- src/StepIcon.tsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 9ffc790..35efc28 100644 --- a/package.json +++ b/package.json @@ -51,11 +51,11 @@ ] }, "dependencies": { - "@rc-component/util": "^1.2.1", + "@rc-component/util": "^1.11.1", "clsx": "^2.1.1" }, "devDependencies": { - "@rc-component/father-plugin": "^2.0.2", + "@rc-component/father-plugin": "^2.2.0", "@rc-component/np": "^1.0.0", "@testing-library/jest-dom": "^6.4.5", "@testing-library/react": "^15.0.6", diff --git a/src/Step.tsx b/src/Step.tsx index 2d2cd00..1eb9122 100644 --- a/src/Step.tsx +++ b/src/Step.tsx @@ -1,7 +1,7 @@ /* eslint react/prop-types: 0 */ import * as React from 'react'; import { clsx } from 'clsx'; -import KeyCode from '@rc-component/util/lib/KeyCode'; +import { KeyCode } from '@rc-component/util'; import type { Status, StepItem, StepsProps } from './Steps'; import Rail from './Rail'; import { UnstableContext } from './UnstableContext'; diff --git a/src/StepIcon.tsx b/src/StepIcon.tsx index fce6a63..7de939e 100644 --- a/src/StepIcon.tsx +++ b/src/StepIcon.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { clsx } from 'clsx'; import { StepsContext } from './Context'; -import pickAttrs from '@rc-component/util/lib/pickAttrs'; +import { pickAttrs } from '@rc-component/util'; export interface StepIconSemanticContextProps { className?: string; From 10750d992533fff15bb0d1a322553066b40298ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E8=89=B3=E5=85=B5?= Date: Wed, 20 May 2026 11:41:47 +0800 Subject: [PATCH 2/2] chore: address review comments --- src/StepIcon.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/StepIcon.tsx b/src/StepIcon.tsx index 7de939e..83b16f8 100644 --- a/src/StepIcon.tsx +++ b/src/StepIcon.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { clsx } from 'clsx'; -import { StepsContext } from './Context'; import { pickAttrs } from '@rc-component/util'; +import { StepsContext } from './Context'; export interface StepIconSemanticContextProps { className?: string;