From 0984341000710a7170c9e61c020f6b25fe4bf36d Mon Sep 17 00:00:00 2001 From: Bobby <8290615@qq.com> Date: Wed, 25 Oct 2023 19:05:07 +0800 Subject: [PATCH 1/2] feat: add some icons --- packages/icons/src/chevron-left.tsx | 14 ++++++------- packages/icons/src/chevron-right.tsx | 4 ++-- packages/icons/src/clock.tsx | 21 +++++++++++++++++++ packages/icons/src/close-filled.tsx | 18 ---------------- packages/icons/src/cloud-arrow-up-filled.tsx | 21 +++++++++++++++++++ packages/icons/src/cloud-arrow-up.tsx | 22 ++++++++++++++++++++ packages/icons/src/copy.tsx | 19 +++++++++++++++++ packages/icons/src/home.tsx | 16 ++++++++++++++ packages/icons/src/index.ts | 21 +++++++++++++++---- packages/icons/src/map-pin.tsx | 18 ++++++++++++++++ packages/icons/src/{close.tsx => minus.tsx} | 10 ++++----- packages/icons/src/order-list.tsx | 17 +++++++++++++++ packages/icons/src/pencil-line.tsx | 22 ++++++++++++++++++++ packages/icons/src/plus-circle-filled.tsx | 19 +++++++++++++++++ packages/icons/src/plus-circle.tsx | 21 +++++++++++++++++++ packages/icons/src/plus.tsx | 21 +++++++++++++++++++ packages/icons/src/trash.tsx | 21 +++++++++++++++++++ packages/icons/src/user.tsx | 16 ++++++++++++++ packages/icons/src/x-circle-filled.tsx | 19 +++++++++++++++++ packages/icons/src/x-circle.tsx | 22 ++++++++++++++++++++ packages/icons/src/x-mark.tsx | 21 +++++++++++++++++++ packages/react/src/alert/alert-icon.tsx | 6 +++--- packages/react/src/chip/chip.tsx | 4 ++-- packages/react/src/input/input.tsx | 4 ++-- packages/react/src/input/textarea.tsx | 4 ++-- packages/react/stories/checkbox.stories.tsx | 6 +++--- 26 files changed, 358 insertions(+), 49 deletions(-) create mode 100644 packages/icons/src/clock.tsx delete mode 100644 packages/icons/src/close-filled.tsx create mode 100644 packages/icons/src/cloud-arrow-up-filled.tsx create mode 100644 packages/icons/src/cloud-arrow-up.tsx create mode 100644 packages/icons/src/copy.tsx create mode 100644 packages/icons/src/home.tsx create mode 100644 packages/icons/src/map-pin.tsx rename packages/icons/src/{close.tsx => minus.tsx} (78%) create mode 100644 packages/icons/src/order-list.tsx create mode 100644 packages/icons/src/pencil-line.tsx create mode 100644 packages/icons/src/plus-circle-filled.tsx create mode 100644 packages/icons/src/plus-circle.tsx create mode 100644 packages/icons/src/plus.tsx create mode 100644 packages/icons/src/trash.tsx create mode 100644 packages/icons/src/user.tsx create mode 100644 packages/icons/src/x-circle-filled.tsx create mode 100644 packages/icons/src/x-circle.tsx create mode 100644 packages/icons/src/x-mark.tsx diff --git a/packages/icons/src/chevron-left.tsx b/packages/icons/src/chevron-left.tsx index 84f6ac7..74bfa6c 100644 --- a/packages/icons/src/chevron-left.tsx +++ b/packages/icons/src/chevron-left.tsx @@ -1,6 +1,6 @@ import { IconProps } from './types'; -export const ChevronIcon = (props: IconProps) => ( +export const ChevronLeftIcon = ({ strokeWidth = 1.5, ...props }: IconProps) => ( ); diff --git a/packages/icons/src/chevron-right.tsx b/packages/icons/src/chevron-right.tsx index 6f78e5a..389f846 100644 --- a/packages/icons/src/chevron-right.tsx +++ b/packages/icons/src/chevron-right.tsx @@ -1,6 +1,6 @@ import { IconProps } from './types'; -export const ChevronRightIcon = (props: IconProps) => ( +export const ChevronRightIcon = ({ strokeWidth = 1.5, ...props }: IconProps) => (