From 5adf080884dd6d39ebf58451d4e6974585facd80 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 2 Jan 2024 16:28:46 +0800 Subject: [PATCH 01/12] chore(deps-dev): bump the dev-dependencies group with 4 updates (#46726) * chore(deps-dev): bump the dev-dependencies group with 5 updates Updates the requirements on [@testing-library/user-event](https://github.com/testing-library/user-event), [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node), [antd-img-crop](https://github.com/nanxiaobei/antd-img-crop), [chalk](https://github.com/chalk/chalk) and [typedoc](https://github.com/TypeStrong/TypeDoc) to permit the latest version. Updates `@testing-library/user-event` to 14.5.2 - [Release notes](https://github.com/testing-library/user-event/releases) - [Changelog](https://github.com/testing-library/user-event/blob/main/CHANGELOG.md) - [Commits](https://github.com/testing-library/user-event/compare/v14.5.1...v14.5.2) Updates `@types/node` to 20.10.6 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Updates `antd-img-crop` to 4.21.0 - [Commits](https://github.com/nanxiaobei/antd-img-crop/commits) Updates `chalk` from 4.1.2 to 5.3.0 - [Release notes](https://github.com/chalk/chalk/releases) - [Commits](https://github.com/chalk/chalk/compare/v4.1.2...v5.3.0) Updates `typedoc` to 0.25.5 - [Release notes](https://github.com/TypeStrong/TypeDoc/releases) - [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md) - [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.25.4...v0.25.5) --- updated-dependencies: - dependency-name: "@testing-library/user-event" dependency-type: direct:development dependency-group: dev-dependencies - dependency-name: "@types/node" dependency-type: direct:development dependency-group: dev-dependencies - dependency-name: antd-img-crop dependency-type: direct:development dependency-group: dev-dependencies - dependency-name: chalk dependency-type: direct:development update-type: version-update:semver-major dependency-group: dev-dependencies - dependency-name: typedoc dependency-type: direct:development dependency-group: dev-dependencies ... Signed-off-by: dependabot[bot] * Update package.json Signed-off-by: lijianan <574980606@qq.com> --------- Signed-off-by: dependabot[bot] Signed-off-by: lijianan <574980606@qq.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: lijianan <574980606@qq.com> Co-authored-by: afc163 --- package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index a7a54e11b8..8f9e705c32 100644 --- a/package.json +++ b/package.json @@ -184,7 +184,7 @@ "@testing-library/dom": "^9.3.3", "@testing-library/jest-dom": "^6.1.6", "@testing-library/react": "^14.1.2", - "@testing-library/user-event": "^14.5.1", + "@testing-library/user-event": "^14.5.2", "@types/ali-oss": "^6.16.11", "@types/fs-extra": "^11.0.4", "@types/gtag.js": "^0.0.18", @@ -199,7 +199,7 @@ "@types/jsdom": "^21.1.6", "@types/lodash": "^4.14.202", "@types/minimist": "^1.2.5", - "@types/node": "^20.10.5", + "@types/node": "^20.10.6", "@types/nprogress": "^0.2.3", "@types/pixelmatch": "^5.2.6", "@types/pngjs": "^6.0.4", @@ -218,7 +218,7 @@ "@typescript-eslint/eslint-plugin": "^6.16.0", "@typescript-eslint/parser": "^6.16.0", "ali-oss": "^6.19.0", - "antd-img-crop": "^4.18.0", + "antd-img-crop": "^4.21.0", "antd-style": "^3.6.1", "antd-token-previewer": "^2.0.5", "chalk": "^4.1.0", @@ -324,7 +324,7 @@ "tar-fs": "^3.0.4", "terser": "^5.26.0", "tsx": "^4.7.0", - "typedoc": "^0.25.4", + "typedoc": "^0.25.5", "typescript": "~5.3.3", "vanilla-jsoneditor": "^0.21.1", "vanilla-tilt": "^1.8.1", From 3f4fd427c3d3ae2621c96a25b23b4f2a7feda2e9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 2 Jan 2024 16:28:57 +0800 Subject: [PATCH 02/12] chore(deps): bump the dependencies group with 2 updates (#46725) Updates the requirements on [@babel/runtime](https://github.com/babel/babel/tree/HEAD/packages/babel-runtime) and [classnames](https://github.com/JedWatson/classnames) to permit the latest version. Updates `@babel/runtime` to 7.23.7 - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.23.7/packages/babel-runtime) Updates `classnames` to 2.5.1 - [Changelog](https://github.com/JedWatson/classnames/blob/main/HISTORY.md) - [Commits](https://github.com/JedWatson/classnames/compare/v2.5.0...v2.5.1) --- updated-dependencies: - dependency-name: "@babel/runtime" dependency-type: direct:production dependency-group: dependencies - dependency-name: classnames dependency-type: direct:production dependency-group: dependencies ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: afc163 --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 8f9e705c32..0ad25fd27d 100644 --- a/package.json +++ b/package.json @@ -117,13 +117,13 @@ "@ant-design/cssinjs": "^1.18.2", "@ant-design/icons": "^5.2.6", "@ant-design/react-slick": "~1.0.2", - "@babel/runtime": "^7.23.6", + "@babel/runtime": "^7.23.7", "@ctrl/tinycolor": "^4.0.2", "@rc-component/color-picker": "~1.5.0", "@rc-component/mutate-observer": "^1.1.0", "@rc-component/tour": "~1.11.1", "@rc-component/trigger": "^1.18.2", - "classnames": "^2.5.0", + "classnames": "^2.5.1", "copy-to-clipboard": "^3.3.3", "dayjs": "^1.11.10", "qrcode.react": "^3.1.0", From 680c5123db5487829a147ef5445bf420251d64ca Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 2 Jan 2024 16:29:13 +0800 Subject: [PATCH 03/12] style: fix Mentions item height to 32px (#46737) Co-authored-by: lijianan <574980606@qq.com> --- components/mentions/style/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/mentions/style/index.ts b/components/mentions/style/index.ts index e6e820ca21..4cd88838ab 100644 --- a/components/mentions/style/index.ts +++ b/components/mentions/style/index.ts @@ -221,7 +221,7 @@ export const prepareComponentToken: GetDefaultToken<'Mentions'> = (token) => ({ dropdownHeight: 250, controlItemWidth: 100, zIndexPopup: token.zIndexPopupBase + 50, - itemPaddingVertical: token.controlHeight - token.fontHeight, + itemPaddingVertical: (token.controlHeight - token.fontHeight) / 2, }); // ============================== Export ============================== From 17a634b6a28ef8987f4c415f57c937ecbe209f03 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 2 Jan 2024 16:29:20 +0800 Subject: [PATCH 04/12] chore: move ThemeSwitch into Suspense (#46731) --- .dumi/theme/layouts/GlobalLayout.tsx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.dumi/theme/layouts/GlobalLayout.tsx b/.dumi/theme/layouts/GlobalLayout.tsx index b5849eefe1..143508ef45 100644 --- a/.dumi/theme/layouts/GlobalLayout.tsx +++ b/.dumi/theme/layouts/GlobalLayout.tsx @@ -1,4 +1,4 @@ -import React, { useCallback, useEffect, useMemo } from 'react'; +import React, { useCallback, useEffect, useMemo, Suspense } from 'react'; import dayjs from 'dayjs'; import { createCache, @@ -18,11 +18,12 @@ import { DarkContext } from '../../hooks/useDark'; import useLayoutState from '../../hooks/useLayoutState'; import useLocation from '../../hooks/useLocation'; import type { ThemeName } from '../common/ThemeSwitch'; -import ThemeSwitch from '../common/ThemeSwitch'; import SiteThemeProvider from '../SiteThemeProvider'; import type { SiteContextProps } from '../slots/SiteContext'; import SiteContext from '../slots/SiteContext'; +const ThemeSwitch = React.lazy(() => import('../common/ThemeSwitch')); + type Entries = { [K in keyof T]: [K, T[K]] }[keyof T][]; type SiteState = Partial>; @@ -174,10 +175,12 @@ const GlobalLayout: React.FC = () => { content = ( {outlet} - updateSiteConfig({ theme: nextTheme })} - /> + + updateSiteConfig({ theme: nextTheme })} + /> + ); } From 4920955741006b74cd72ef2b42f1125747d375ef Mon Sep 17 00:00:00 2001 From: MadCcc Date: Tue, 2 Jan 2024 17:01:08 +0800 Subject: [PATCH 05/12] docs: hide banner (#46730) * docs: hide banner * chore: code clean * Update GlobalLayout.tsx Signed-off-by: lijianan <574980606@qq.com> --------- Signed-off-by: lijianan <574980606@qq.com> Co-authored-by: afc163 Co-authored-by: lijianan <574980606@qq.com> --- .dumi/theme/layouts/GlobalLayout.tsx | 11 +++++------ .dumi/theme/slots/SiteContext.ts | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.dumi/theme/layouts/GlobalLayout.tsx b/.dumi/theme/layouts/GlobalLayout.tsx index 143508ef45..b32f9e7d44 100644 --- a/.dumi/theme/layouts/GlobalLayout.tsx +++ b/.dumi/theme/layouts/GlobalLayout.tsx @@ -1,5 +1,4 @@ import React, { useCallback, useEffect, useMemo, Suspense } from 'react'; -import dayjs from 'dayjs'; import { createCache, extractStyle, @@ -102,15 +101,15 @@ const GlobalLayout: React.FC = () => { useEffect(() => { const _theme = searchParams.getAll('theme') as ThemeName[]; const _direction = searchParams.get('direction') as DirectionType; - const storedBannerVisibleLastTime = - localStorage && localStorage.getItem(ANT_DESIGN_NOT_SHOW_BANNER); - const storedBannerVisible = - storedBannerVisibleLastTime && dayjs().diff(dayjs(storedBannerVisibleLastTime), 'day') >= 1; + // const storedBannerVisibleLastTime = + // localStorage && localStorage.getItem(ANT_DESIGN_NOT_SHOW_BANNER); + // const storedBannerVisible = + // storedBannerVisibleLastTime && dayjs().diff(dayjs(storedBannerVisibleLastTime), 'day') >= 1; setSiteState({ theme: _theme, direction: _direction === 'rtl' ? 'rtl' : 'ltr', - bannerVisible: storedBannerVisibleLastTime ? !!storedBannerVisible : true, + // bannerVisible: storedBannerVisibleLastTime ? !!storedBannerVisible : true, }); // Handle isMobile updateMobileMode(); diff --git a/.dumi/theme/slots/SiteContext.ts b/.dumi/theme/slots/SiteContext.ts index 3878940d84..6b29b00ea3 100644 --- a/.dumi/theme/slots/SiteContext.ts +++ b/.dumi/theme/slots/SiteContext.ts @@ -12,7 +12,7 @@ export interface SiteContextProps { const SiteContext = React.createContext({ isMobile: false, - bannerVisible: true, + bannerVisible: false, direction: 'ltr', theme: ['light'], updateSiteConfig: () => {}, From 15c20511b48c743ad6d0b0627a391e2af4868181 Mon Sep 17 00:00:00 2001 From: MadCcc Date: Tue, 2 Jan 2024 17:54:03 +0800 Subject: [PATCH 06/12] fix: rollback tinycolor version (#46744) * chore: rollback tinycolor version * chore: rollback tinycolor version * chore: bump --- package.json | 7 +++---- scripts/post-script.ts | 1 + 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 0ad25fd27d..c49cef5826 100644 --- a/package.json +++ b/package.json @@ -113,13 +113,12 @@ "not dead" ], "dependencies": { - "@ant-design/colors": "^7.0.1", + "@ant-design/colors": "^7.0.2", "@ant-design/cssinjs": "^1.18.2", "@ant-design/icons": "^5.2.6", "@ant-design/react-slick": "~1.0.2", - "@babel/runtime": "^7.23.7", - "@ctrl/tinycolor": "^4.0.2", - "@rc-component/color-picker": "~1.5.0", + "@ctrl/tinycolor": "^3.6.1", + "@rc-component/color-picker": "~1.5.1", "@rc-component/mutate-observer": "^1.1.0", "@rc-component/tour": "~1.11.1", "@rc-component/trigger": "^1.18.2", diff --git a/scripts/post-script.ts b/scripts/post-script.ts index 5b33917b6f..bca6d8df8b 100644 --- a/scripts/post-script.ts +++ b/scripts/post-script.ts @@ -53,6 +53,7 @@ const DEPRECIATED_VERSION = { '5.11.2': ['https://github.com/ant-design/ant-design/issues/46005'], '5.11.4': ['https://github.com/ant-design/ant-design/pull/46103'], '5.12.3': ['https://github.com/ant-design/ant-design/issues/46525'], + '5.12.6': ['https://github.com/ant-design/ant-design/issues/46719'], } as const; function matchDeprecated(v: string) { From 1a4e6fb634373962040c2be6caf69738588fa48c Mon Sep 17 00:00:00 2001 From: lijianan <574980606@qq.com> Date: Tue, 2 Jan 2024 18:31:33 +0800 Subject: [PATCH 07/12] site: fix code-box style with Badge (#46743) * site: fix code-box style with Badge * fix: fix * Update .dumi/theme/common/styles/Demo.tsx Co-authored-by: MadCcc Signed-off-by: lijianan <574980606@qq.com> --------- Signed-off-by: lijianan <574980606@qq.com> Co-authored-by: MadCcc --- .dumi/theme/common/styles/Demo.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.dumi/theme/common/styles/Demo.tsx b/.dumi/theme/common/styles/Demo.tsx index 9476e49a05..e70e300cfc 100644 --- a/.dumi/theme/common/styles/Demo.tsx +++ b/.dumi/theme/common/styles/Demo.tsx @@ -22,7 +22,7 @@ const GlobalDemoStyles: React.FC = () => { .code-box { position: relative; display: inline-block; - width: 100%; + width: calc(100% - ${token.lineWidth * 2}px); margin: 0 0 16px; background-color: ${token.colorBgContainer}; border: 1px solid ${token.colorSplit}; From 3fc65a0865865ef1c1f058d7758d52698c723bc2 Mon Sep 17 00:00:00 2001 From: MadCcc Date: Tue, 2 Jan 2024 19:30:42 +0800 Subject: [PATCH 08/12] docs: changelog 5.12.7 (#46750) --- CHANGELOG.en-US.md | 7 +++++++ CHANGELOG.zh-CN.md | 7 +++++++ package.json | 2 +- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.en-US.md b/CHANGELOG.en-US.md index 8aca73f99b..4114989dd5 100644 --- a/CHANGELOG.en-US.md +++ b/CHANGELOG.en-US.md @@ -16,6 +16,13 @@ tag: vVERSION --- +## 5.12.7 + +`2024-01-02` + +- 🐞 MISC: Fix error caused by upgrading `@ctrl/tinycolor@4.0.2`. [#46744](https://github.com/ant-design/ant-design/pull/46744) [@MadCcc](https://github.com/MadCcc) +- 🐞 Fix Mentions item height bug. [#46737](https://github.com/ant-design/ant-design/pull/46737) + ## 5.12.6 `2023-12-30` diff --git a/CHANGELOG.zh-CN.md b/CHANGELOG.zh-CN.md index 21f81749f6..52f4560019 100644 --- a/CHANGELOG.zh-CN.md +++ b/CHANGELOG.zh-CN.md @@ -16,6 +16,13 @@ tag: vVERSION --- +## 5.12.7 + +`2024-01-02` + +- 🐞 MISC: 修复升级 `@ctrl/tinycolor@4.0.2` 导致的错误。[#46744](https://github.com/ant-design/ant-design/pull/46744) [@MadCcc](https://github.com/MadCcc) +- 🐞 修复 Mentions 选项高度偏大的问题。[#46737](https://github.com/ant-design/ant-design/pull/46737) + ## 5.12.6 `2023-12-30` diff --git a/package.json b/package.json index c49cef5826..96dee9ef73 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "antd", - "version": "5.12.6", + "version": "5.12.7", "description": "An enterprise-class UI design language and React components implementation", "keywords": [ "ant", From fa1ca38969a87473fc4388ac2f1aec2fd0468812 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 2 Jan 2024 21:31:40 +0800 Subject: [PATCH 09/12] chore(deps-dev): bump the dev-dependencies group with 5 updates (#46752) * chore(deps-dev): bump the dev-dependencies group with 5 updates Updates the requirements on [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin), [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser), [chalk](https://github.com/chalk/chalk), [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) and [typedoc](https://github.com/TypeStrong/TypeDoc) to permit the latest version. Updates `@typescript-eslint/eslint-plugin` to 6.17.0 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.17.0/packages/eslint-plugin) Updates `@typescript-eslint/parser` to 6.17.0 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.17.0/packages/parser) Updates `chalk` from 4.1.2 to 5.3.0 - [Release notes](https://github.com/chalk/chalk/releases) - [Commits](https://github.com/chalk/chalk/compare/v4.1.2...v5.3.0) Updates `eslint-plugin-jest` to 27.6.1 - [Release notes](https://github.com/jest-community/eslint-plugin-jest/releases) - [Changelog](https://github.com/jest-community/eslint-plugin-jest/blob/main/CHANGELOG.md) - [Commits](https://github.com/jest-community/eslint-plugin-jest/compare/v27.6.0...v27.6.1) Updates `typedoc` to 0.25.6 - [Release notes](https://github.com/TypeStrong/TypeDoc/releases) - [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md) - [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.25.5...v0.25.6) --- updated-dependencies: - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development dependency-group: dev-dependencies - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development dependency-group: dev-dependencies - dependency-name: chalk dependency-type: direct:development update-type: version-update:semver-major dependency-group: dev-dependencies - dependency-name: eslint-plugin-jest dependency-type: direct:development dependency-group: dev-dependencies - dependency-name: typedoc dependency-type: direct:development dependency-group: dev-dependencies ... Signed-off-by: dependabot[bot] * Update package.json Signed-off-by: afc163 --------- Signed-off-by: dependabot[bot] Signed-off-by: afc163 Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: afc163 --- package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 96dee9ef73..0f595439f4 100644 --- a/package.json +++ b/package.json @@ -214,8 +214,8 @@ "@types/tar": "^6.1.10", "@types/throttle-debounce": "^5.0.2", "@types/warning": "^3.0.3", - "@typescript-eslint/eslint-plugin": "^6.16.0", - "@typescript-eslint/parser": "^6.16.0", + "@typescript-eslint/eslint-plugin": "^6.17.0", + "@typescript-eslint/parser": "^6.17.0", "ali-oss": "^6.19.0", "antd-img-crop": "^4.21.0", "antd-style": "^3.6.1", @@ -236,7 +236,7 @@ "eslint-import-resolver-typescript": "^3.6.1", "eslint-plugin-compat": "^4.2.0", "eslint-plugin-import": "^2.29.1", - "eslint-plugin-jest": "^27.6.0", + "eslint-plugin-jest": "^27.6.1", "eslint-plugin-jsx-a11y": "^6.8.0", "eslint-plugin-lodash": "^7.4.0", "eslint-plugin-markdown": "^3.0.1", @@ -323,7 +323,7 @@ "tar-fs": "^3.0.4", "terser": "^5.26.0", "tsx": "^4.7.0", - "typedoc": "^0.25.5", + "typedoc": "^0.25.6", "typescript": "~5.3.3", "vanilla-jsoneditor": "^0.21.1", "vanilla-tilt": "^1.8.1", From 0c97250db3260896678b726b8f0ebf9f3ce26d82 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 2 Jan 2024 21:36:10 +0800 Subject: [PATCH 10/12] style: fix Typography copyable style and update demos (#46748) * style: fix Typography copyable style and update demos * chore: update jest snapshot --- components/typography/Base/index.tsx | 9 +- .../__snapshots__/demo-extend.test.ts.snap | 1951 +++++++++-------- .../__snapshots__/demo.test.tsx.snap | 1372 ++++++------ components/typography/demo/copyable.md | 7 + components/typography/demo/copyable.tsx | 24 + components/typography/demo/editable.md | 7 + .../demo/{interactive.tsx => editable.tsx} | 16 +- components/typography/demo/interactive.md | 7 - components/typography/index.en-US.md | 3 +- components/typography/index.zh-CN.md | 3 +- components/typography/style/mixins.ts | 5 +- 11 files changed, 1759 insertions(+), 1645 deletions(-) create mode 100644 components/typography/demo/copyable.md create mode 100644 components/typography/demo/copyable.tsx create mode 100644 components/typography/demo/editable.md rename components/typography/demo/{interactive.tsx => editable.tsx} (86%) delete mode 100644 components/typography/demo/interactive.md diff --git a/components/typography/Base/index.tsx b/components/typography/Base/index.tsx index 8279c8db23..a776a8c555 100644 --- a/components/typography/Base/index.tsx +++ b/components/typography/Base/index.tsx @@ -451,7 +451,9 @@ const Base = React.forwardRef((props, ref) => { // Copy const renderCopy = () => { - if (!enableCopy) return; + if (!enableCopy) { + return null; + } const { tooltips, icon } = copyConfig; @@ -467,7 +469,10 @@ const Base = React.forwardRef((props, ref) => { return ( diff --git a/components/typography/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/typography/__tests__/__snapshots__/demo-extend.test.ts.snap index 00b33d1a46..a1cdfc273b 100644 --- a/components/typography/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/typography/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -434,799 +434,266 @@ exports[`renders components/typography/demo/componentToken-debug.tsx extend cont exports[`renders components/typography/demo/componentToken-debug.tsx extend context correctly 2`] = `[]`; -exports[`renders components/typography/demo/ellipsis.tsx extend context correctly 1`] = ` +exports[`renders components/typography/demo/copyable.tsx extend context correctly 1`] = ` Array [ - , -
- Ant Design, a design language for background applications, is refined by Ant UED Team. Ant Design, a design language for background applications, is refined by Ant UED Team. Ant Design, a design language for background applications, is refined by Ant UED Team. Ant Design, a design language for background applications, is refined by Ant UED Team. Ant Design, a design language for background applications, is refined by Ant UED Team. Ant Design, a design language for background applications, is refined by Ant UED Team. -
, -
- Ant Design, a design language for background applications, is refined by Ant UED Team. Ant Design, a design language for background applications, is refined by Ant UED Team. Ant Design, a design language for background applications, is refined by Ant UED Team. Ant Design, a design language for background applications, is refined by Ant UED Team. Ant Design, a design language for background applications, is refined by Ant UED Team. Ant Design, a design language for background applications, is refined by Ant UED Team. - - -
, - - Ant Design, a design language for background applications, is refined by Ant UED Team. - , -
+
-
+
, +
+ Replace copy text. +
+ + + +
+
+
+
+ +
+
+
, +
+ Custom Copy icon and replace tooltips text. +
+ + + +
+
+
+
+ +
+
+
, +
+ Hide Copy tooltips. +
+ + + +
+
+
+
+
, - - Ant Design, a design language for background applications, is refined by Ant UED Team. - - , -
+ aria-label="Copy" + class="ant-typography-copy ant-typography-copy-icon-only" + role="button" + style="border: 0px; background: transparent; padding: 0px; line-height: inherit; display: inline-block;" + tabindex="0" + > + + + +
-
, + , ] `; -exports[`renders components/typography/demo/ellipsis.tsx extend context correctly 2`] = `[]`; +exports[`renders components/typography/demo/copyable.tsx extend context correctly 2`] = `[]`; -exports[`renders components/typography/demo/ellipsis-debug.tsx extend context correctly 1`] = ` -Array [ - , - , - , - , -
-
-
-
-
-
-
-
- -
-
-
, -
- Ant Design, a design language for background applications, is refined by Ant UED Team. This is a nest sample - - - - - Test - - - - - case. Bnt Design, a design language for background applications, is refined by Ant UED Team. Cnt Design, a design language for background applications, is refined by Ant UED Team. Dnt Design, a design language for background applications, is refined by Ant UED Team. Ent Design, a design language for background applications, is refined by Ant UED Team. -
, - - In the process of internal desktop applications development, many different design specs and implementations would be involved, which might cause designers and developers difficulties and duplication and reduce the efficiency of development. -
- - - -
-
-
-
- -
-
- -