From 6a9603d59d1ff6f1111e737745e3798fc29be14d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel=20Florido=20Cifuentes?= Date: Fri, 8 Nov 2024 17:12:05 +0100 Subject: [PATCH] feat: add new icons and new size to `ProgressRing` - add `cloud-download` icon - add `xxs` size to `ProgressRing` - add `UndeleteIcon` Ticket: task/Fundae-140 Reviewed-by: @MIGUELez11 Refs: #205 --- .../src/informative/ProgressRing/ProgressRing.constants.js | 2 +- .../components/src/informative/ProgressRing/ProgressRing.js | 1 + packages/icons/src/outline/cloud-download.svg | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 packages/icons/src/outline/cloud-download.svg diff --git a/packages/components/src/informative/ProgressRing/ProgressRing.constants.js b/packages/components/src/informative/ProgressRing/ProgressRing.constants.js index b5e79d623..bd74926e8 100644 --- a/packages/components/src/informative/ProgressRing/ProgressRing.constants.js +++ b/packages/components/src/informative/ProgressRing/ProgressRing.constants.js @@ -1,6 +1,6 @@ import PropTypes from 'prop-types'; -export const PROGRESSRING_SIZES = ['xs', 'sm', 'md', 'lg', 'xl']; +export const PROGRESSRING_SIZES = ['xxs', 'xs', 'sm', 'md', 'lg', 'xl']; export const PROGRESS_RING_DEFAULT_PROPS = { sections: [{ value: 10, color: '#307AE8' }], label: '', diff --git a/packages/components/src/informative/ProgressRing/ProgressRing.js b/packages/components/src/informative/ProgressRing/ProgressRing.js index ff39a3e4b..9de9b51cd 100644 --- a/packages/components/src/informative/ProgressRing/ProgressRing.js +++ b/packages/components/src/informative/ProgressRing/ProgressRing.js @@ -12,6 +12,7 @@ const ProgressRing = ({ sections, label, roundCaps, size, thickness, rootColor } const sizeValue = PROGRESSRING_SIZES.includes(size) ? size : PROGRESSRING_SIZES[2]; const sizeHandler = { + xxs: 28, xs: 56, sm: 82, md: 92, diff --git a/packages/icons/src/outline/cloud-download.svg b/packages/icons/src/outline/cloud-download.svg new file mode 100644 index 000000000..b3f820cd5 --- /dev/null +++ b/packages/icons/src/outline/cloud-download.svg @@ -0,0 +1,3 @@ + + +