From 1f51c815641d61974b6bbe891631b1cc10ac4d28 Mon Sep 17 00:00:00 2001 From: landluck Date: Fri, 14 Jun 2024 16:20:31 +0800 Subject: [PATCH] feat(icon): update zenticons version to 3.7.6 (#2058) Co-authored-by: landluck --- .npmrc | 1 + packages/zent/.npmrc | 1 + packages/zent/package.json | 2 +- packages/zent/src/icon/Icon.tsx | 16 ++ packages/zent/src/icon/demos/all.md | 260 ++++++++++++++++++++++++---- yarn.lock | 8 +- 6 files changed, 249 insertions(+), 39 deletions(-) create mode 100644 .npmrc create mode 100644 packages/zent/.npmrc diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000000..38f11c645a --- /dev/null +++ b/.npmrc @@ -0,0 +1 @@ +registry=https://registry.npmjs.org diff --git a/packages/zent/.npmrc b/packages/zent/.npmrc new file mode 100644 index 0000000000..38f11c645a --- /dev/null +++ b/packages/zent/.npmrc @@ -0,0 +1 @@ +registry=https://registry.npmjs.org diff --git a/packages/zent/package.json b/packages/zent/package.json index 6a8800a0b0..09db69ea60 100644 --- a/packages/zent/package.json +++ b/packages/zent/package.json @@ -54,7 +54,7 @@ "tslib": "^2.3.0", "utility-types": "^3.4.1", "warning": "^4.0.3", - "zenticons": "3.7.4" + "zenticons": "3.7.6" }, "peerDependencies": { "react": "^17.0.0", diff --git a/packages/zent/src/icon/Icon.tsx b/packages/zent/src/icon/Icon.tsx index 6f36501ae5..c04893e041 100644 --- a/packages/zent/src/icon/Icon.tsx +++ b/packages/zent/src/icon/Icon.tsx @@ -20,11 +20,17 @@ export type IconType = | 'brush' | 'brush-o' | 'business' + | 'business-manage' + | 'business-manage-o' | 'business-o' | 'calendar' | 'calendar-o' + | 'canvas' + | 'canvas-o' | 'capital' | 'capital-o' + | 'care' + | 'care-o' | 'caret-down' | 'caret-up' | 'casher' @@ -52,6 +58,8 @@ export type IconType = | 'course' | 'course-o' | 'customer' + | 'customer-manage' + | 'customer-manage-o' | 'customer-o' | 'customer-service' | 'customer-service-o' @@ -120,6 +128,8 @@ export type IconType = | 'mini-apps' | 'mini-apps-o' | 'more' + | 'nameplate' + | 'nameplate-o' | 'nav-grid' | 'nav-line' | 'open-folder-o' @@ -137,6 +147,8 @@ export type IconType = | 'present-o' | 'procurement' | 'procurement-o' + | 'purchase' + | 'purchase-o' | 'qa-o' | 'qrcode' | 'refresh' @@ -155,6 +167,8 @@ export type IconType = | 'save' | 'save-o' | 'scan-code-o' + | 'scrm-smile' + | 'scrm-smile-o' | 'search' | 'settings' | 'settings-o' @@ -176,6 +190,8 @@ export type IconType = | 'summary-o' | 'table-compact' | 'table-loose' + | 'target' + | 'target-o' | 'tendency-o' | 'text-guide-o' | 'thumbnail' diff --git a/packages/zent/src/icon/demos/all.md b/packages/zent/src/icon/demos/all.md index 0359680b6e..6207326c93 100644 --- a/packages/zent/src/icon/demos/all.md +++ b/packages/zent/src/icon/demos/all.md @@ -81,7 +81,7 @@ class IconGrid extends Component {
{i18n.x-cat-operation}
- +
- +
{i18n.x-cat-business}
- + hotel_fill
+ +
+ + customer-manage +
+
+ +
+ + customer-manage_fill +
+
+ +
+ + purchase +
+
+ +
+ + purchase_fill +
+
+ +
+ + target +
+
+ +
+ + target_fill +
+
+ +
+ + care +
+
+ +
+ + care_fill +
+
+ +
+ + nameplate +
+
+ +
+ + nameplate_fill +
+
+ +
+ + scrm-smile +
+
+ +
+ + scrm-smile_fill +
+
+ +
+ + canvas +
+
+ +
+ + canvas_fill +
+
+ +
+ + business-manage +
+
+ +
+ + business-manage_fill +
+
- +
{i18n.x-cat-status}
- + error_circle_fill
- - -
- - warning -
-
- -
- - warning_fill -
check
+ +
+ + warning +
+
+ +
+ + warning_fill +
+
- +
{i18n.x-cat-logo}
- +
- +
{i18n.x-cat-base}
- +
- + ); } diff --git a/yarn.lock b/yarn.lock index c2b274c4b8..35923ce085 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12512,10 +12512,10 @@ yocto-queue@^0.1.0: resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== -zenticons@3.7.4: - version "3.7.4" - resolved "https://registry.yarnpkg.com/zenticons/-/zenticons-3.7.4.tgz#90eaf8b20efb3d39100dfb311399424801c93db7" - integrity sha512-IJw0vS3F/MKdT+ueiupr6jPfQoDpf2p3Ia+F1+IOa/Z0AtTT/uqkAm/xKZoVUYOmL/BObMbYA1tUQULx2Rpa3w== +zenticons@3.7.6: + version "3.7.6" + resolved "https://registry.npmjs.org/zenticons/-/zenticons-3.7.6.tgz#934d964f2da43b67c251123076f948331b122316" + integrity sha512-5ojXJEe00dGWDswZbbd4JO4bBjDJc1EIYfVASC7zdjRB3lXf1eDPQ9T2I/L/b35LV1DEPsAMxOFdlsCxc6b86w== zwitch@^1.0.0: version "1.0.5"