From 1ca5aefa54ccfb1fe089ad2afd7a9d7700971d7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E7=88=B1=E5=90=83=E7=99=BD=E8=90=9D?= =?UTF-8?q?=E5=8D=9C?= Date: Mon, 6 Mar 2023 11:48:49 +0800 Subject: [PATCH] refactor: bump `@rc-component/trigger` version (#602) * chore: bump trigger version * test: update snapshot --- package.json | 2 +- src/Picker.tsx | 2 +- src/PickerTrigger.tsx | 4 +-- tests/__snapshots__/range.spec.tsx.snap | 36 +++++++++++-------------- 4 files changed, 20 insertions(+), 24 deletions(-) diff --git a/package.json b/package.json index 7f925ba8b..7e2c3f7d4 100644 --- a/package.json +++ b/package.json @@ -39,8 +39,8 @@ }, "dependencies": { "@babel/runtime": "^7.10.1", + "@rc-component/trigger": "^1.5.0", "classnames": "^2.2.1", - "rc-trigger": "^5.0.4", "rc-util": "^5.27.0" }, "engines": { diff --git a/src/Picker.tsx b/src/Picker.tsx index 7557223f4..d4a63b610 100644 --- a/src/Picker.tsx +++ b/src/Picker.tsx @@ -12,7 +12,7 @@ */ import classNames from 'classnames'; -import type { AlignType } from 'rc-trigger/lib/interface'; +import type { AlignType } from '@rc-component/trigger/lib/interface'; import useMergedState from 'rc-util/lib/hooks/useMergedState'; import warning from 'rc-util/lib/warning'; import * as React from 'react'; diff --git a/src/PickerTrigger.tsx b/src/PickerTrigger.tsx index d942442e1..37d328333 100644 --- a/src/PickerTrigger.tsx +++ b/src/PickerTrigger.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import classNames from 'classnames'; -import Trigger from 'rc-trigger'; -import type { AlignType } from 'rc-trigger/lib/interface'; +import Trigger from '@rc-component/trigger'; +import type { AlignType } from '@rc-component/trigger/lib/interface'; const BUILT_IN_PLACEMENTS = { bottomLeft: { diff --git a/tests/__snapshots__/range.spec.tsx.snap b/tests/__snapshots__/range.spec.tsx.snap index 858484553..08f5f5c27 100644 --- a/tests/__snapshots__/range.spec.tsx.snap +++ b/tests/__snapshots__/range.spec.tsx.snap @@ -133,30 +133,26 @@ exports[`Picker.Range panelRender 1`] = ` /> -
-
+
+
+
-
-
-

- Light -

-
+

+ Light +