From ffedddb211bac4df253f4fafb4153ffb980d0947 Mon Sep 17 00:00:00 2001 From: muxin <434980373@qq.com> Date: Fri, 19 May 2023 14:58:40 +0800 Subject: [PATCH] feat: migrate less to token for Carousel (#42157) * feat: rename Carousel token * docs: add component-token demo * fix: use dotActiveWidth instead of dotWidthActive * fix: use deprecatedTokens option --- .../__snapshots__/demo-extend.test.ts.snap | 234 ++++++++++++++++++ .../__tests__/__snapshots__/demo.test.ts.snap | 234 ++++++++++++++++++ components/carousel/demo/component-token.md | 7 + components/carousel/demo/component-token.tsx | 41 +++ components/carousel/index.en-US.md | 1 + components/carousel/index.zh-CN.md | 1 + components/carousel/style/index.ts | 20 +- docs/react/migrate-less-variables.en-US.md | 9 +- docs/react/migrate-less-variables.zh-CN.md | 9 +- 9 files changed, 549 insertions(+), 7 deletions(-) create mode 100644 components/carousel/demo/component-token.md create mode 100644 components/carousel/demo/component-token.tsx diff --git a/components/carousel/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/carousel/__tests__/__snapshots__/demo-extend.test.ts.snap index 481fc4b933..1d0e8f2008 100644 --- a/components/carousel/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/carousel/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -468,6 +468,240 @@ exports[`renders components/carousel/demo/basic.tsx extend context correctly 1`] `; +exports[`renders components/carousel/demo/component-token.tsx extend context correctly 1`] = ` + +`; + exports[`renders components/carousel/demo/fade.tsx extend context correctly 1`] = `