From 0066e7e6d0f90053293a2344258ee9be04092a84 Mon Sep 17 00:00:00 2001 From: Andrey Yamanov Date: Fri, 3 Oct 2025 16:21:07 +0200 Subject: [PATCH 1/3] fix: update icons --- package.json | 2 +- src/icons/CurrencyDollarIcon.tsx | 20 ++++++++++++++++++++ src/icons/Number123Icon.tsx | 20 ++++++++++++++++++++ src/icons/PercentageIcon.tsx | 20 ++++++++++++++++++++ src/icons/add-new-icon.js | 2 +- src/icons/index.ts | 3 +++ 6 files changed, 65 insertions(+), 2 deletions(-) create mode 100644 src/icons/CurrencyDollarIcon.tsx create mode 100644 src/icons/Number123Icon.tsx create mode 100644 src/icons/PercentageIcon.tsx diff --git a/package.json b/package.json index c144dd073..0fd74e1e9 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "clear:dist": "rimraf ./dist", "release": "pnpm build && changeset publish", "postinstall": "git config blame.ignoreRevsFile .git-blame-ignore-revs", - "add-icons": "cd src/icons && node add-new-icon.js" + "add-icons": "cd src/icons && node add-new-icon.js && fix" }, "publishConfig": { "directory": "dist" diff --git a/src/icons/CurrencyDollarIcon.tsx b/src/icons/CurrencyDollarIcon.tsx new file mode 100644 index 000000000..373bc319a --- /dev/null +++ b/src/icons/CurrencyDollarIcon.tsx @@ -0,0 +1,20 @@ +import { wrapIcon } from './wrap-icon'; + +export const CurrencyDollarIcon = wrapIcon( + 'CurrencyDollarIcon', + + + , +); diff --git a/src/icons/Number123Icon.tsx b/src/icons/Number123Icon.tsx new file mode 100644 index 000000000..06f2699de --- /dev/null +++ b/src/icons/Number123Icon.tsx @@ -0,0 +1,20 @@ +import { wrapIcon } from './wrap-icon'; + +export const Number123Icon = wrapIcon( + 'Number123Icon', + + + , +); diff --git a/src/icons/PercentageIcon.tsx b/src/icons/PercentageIcon.tsx new file mode 100644 index 000000000..951cbff9b --- /dev/null +++ b/src/icons/PercentageIcon.tsx @@ -0,0 +1,20 @@ +import { wrapIcon } from './wrap-icon'; + +export const PercentageIcon = wrapIcon( + 'PercentageIcon', + + + , +); diff --git a/src/icons/add-new-icon.js b/src/icons/add-new-icon.js index 31ef5e367..ee2715651 100644 --- a/src/icons/add-new-icon.js +++ b/src/icons/add-new-icon.js @@ -27,7 +27,7 @@ import prettier from 'prettier'; let svgContent = fs.readFileSync(svgFile, 'utf8'); // Replace '#43436B' with 'currentColor' - svgContent = svgContent.replace(/#43436B/g, 'currentColor'); + svgContent = svgContent.replace(/(#43436B|#000|#000000)/g, 'currentColor'); // Ensure the tag has a viewBox attribute; if not, add one. const svgTagMatch = svgContent.match(/]*)>/); diff --git a/src/icons/index.ts b/src/icons/index.ts index 716385b77..346a21039 100644 --- a/src/icons/index.ts +++ b/src/icons/index.ts @@ -41,6 +41,7 @@ export { CodeIcon } from './CodeIcon'; export { CopyIcon } from './CopyIcon'; export { CountIcon } from './CountIcon'; export { CubeIcon } from './CubeIcon'; +export { CurrencyDollarIcon } from './CurrencyDollarIcon'; export { DangerIcon } from './DangerIcon'; export { DashboardIcon } from './DashboardIcon'; export { DatabaseIcon } from './DatabaseIcon'; @@ -72,10 +73,12 @@ export { LockFilledIcon } from './LockFilledIcon'; export { LockIcon } from './LockIcon'; export { MoreIcon } from './MoreIcon'; export { NotAllowedIcon } from './NotAllowedIcon'; +export { Number123Icon } from './Number123Icon'; export { NumberIcon } from './NumberIcon'; export { PauseCircleFilledIcon } from './PauseCircleFilledIcon'; export { PauseCircleIcon } from './PauseCircleIcon'; export { PauseIcon } from './PauseIcon'; +export { PercentageIcon } from './PercentageIcon'; export { PieChartIcon } from './PieChartIcon'; export { PlayCircleIcon } from './PlayCircleIcon'; export { PlayIcon } from './PlayIcon'; From 3f30ef8e334ba1d0a2aa886014dcdcbc2b80c54f Mon Sep 17 00:00:00 2001 From: Andrey Yamanov Date: Fri, 3 Oct 2025 16:23:24 +0200 Subject: [PATCH 2/3] chore: update changeset --- .changeset/metal-needles-beg.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/metal-needles-beg.md diff --git a/.changeset/metal-needles-beg.md b/.changeset/metal-needles-beg.md new file mode 100644 index 000000000..240df4238 --- /dev/null +++ b/.changeset/metal-needles-beg.md @@ -0,0 +1,5 @@ +--- +"@cube-dev/ui-kit": minor +--- + +Add new icons: PercentageIcon, CurrencyDollarIcon, Number123Icon. From b8eab4d8813632d8d05036b8f093c419599e49fb Mon Sep 17 00:00:00 2001 From: Andrey Yamanov Date: Fri, 3 Oct 2025 16:34:45 +0200 Subject: [PATCH 3/3] chore: update add-icons script --- package.json | 2 +- src/icons/add-new-icon.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 0fd74e1e9..5e76712ec 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "clear:dist": "rimraf ./dist", "release": "pnpm build && changeset publish", "postinstall": "git config blame.ignoreRevsFile .git-blame-ignore-revs", - "add-icons": "cd src/icons && node add-new-icon.js && fix" + "add-icons": "cd src/icons && node add-new-icon.js && pnpm fix" }, "publishConfig": { "directory": "dist" diff --git a/src/icons/add-new-icon.js b/src/icons/add-new-icon.js index ee2715651..8ad602324 100644 --- a/src/icons/add-new-icon.js +++ b/src/icons/add-new-icon.js @@ -27,7 +27,10 @@ import prettier from 'prettier'; let svgContent = fs.readFileSync(svgFile, 'utf8'); // Replace '#43436B' with 'currentColor' - svgContent = svgContent.replace(/(#43436B|#000|#000000)/g, 'currentColor'); + svgContent = svgContent.replace( + /("#43436B"|"#000"|"#000000"|"black")/g, + '"currentColor"', + ); // Ensure the tag has a viewBox attribute; if not, add one. const svgTagMatch = svgContent.match(/]*)>/);