From c5e88aae4c1eef0f0d8a5fd6e247197970835ac4 Mon Sep 17 00:00:00 2001 From: Edouard Wautier <4435185+Duncid@users.noreply.github.com> Date: Mon, 7 Oct 2024 17:26:51 +0200 Subject: [PATCH] Add / update icons (#7925) * Add update icon * Fine tuning empty tree --- sparkle/src/components/Tree.tsx | 6 +++++- sparkle/src/icons/solid/Dot.tsx | 15 ++++++++++++++ sparkle/src/icons/solid/MagnifyingGlass.tsx | 8 +++++++- sparkle/src/icons/solid/index.ts | 1 + sparkle/src/icons/src/solid/dot.svg | 3 +++ .../src/icons/src/solid/magnifying-glass.svg | 3 ++- sparkle/src/icons/src/stroke/dot.svg | 3 +++ sparkle/src/icons/stroke/Dot.tsx | 20 +++++++++++++++++++ sparkle/src/icons/stroke/index.ts | 1 + sparkle/src/stories/Tree.stories.tsx | 14 +++++++++++-- 10 files changed, 69 insertions(+), 5 deletions(-) create mode 100644 sparkle/src/icons/solid/Dot.tsx create mode 100644 sparkle/src/icons/src/solid/dot.svg create mode 100644 sparkle/src/icons/src/stroke/dot.svg create mode 100644 sparkle/src/icons/stroke/Dot.tsx diff --git a/sparkle/src/components/Tree.tsx b/sparkle/src/components/Tree.tsx index 14cc50c66cf1..8745e952d9e0 100644 --- a/sparkle/src/components/Tree.tsx +++ b/sparkle/src/components/Tree.tsx @@ -222,5 +222,9 @@ interface TreeEmptyProps { } Tree.Empty = function ({ label }: TreeEmptyProps) { - return
{label}
; + return ( +
+ {label} +
+ ); }; diff --git a/sparkle/src/icons/solid/Dot.tsx b/sparkle/src/icons/solid/Dot.tsx new file mode 100644 index 000000000000..2e78d0de91ca --- /dev/null +++ b/sparkle/src/icons/solid/Dot.tsx @@ -0,0 +1,15 @@ +import type { SVGProps } from "react"; +import * as React from "react"; +const SvgDot = (props: SVGProps) => ( + + + +); +export default SvgDot; diff --git a/sparkle/src/icons/solid/MagnifyingGlass.tsx b/sparkle/src/icons/solid/MagnifyingGlass.tsx index d93b5ddd813f..10a3acc8a731 100644 --- a/sparkle/src/icons/solid/MagnifyingGlass.tsx +++ b/sparkle/src/icons/solid/MagnifyingGlass.tsx @@ -11,7 +11,13 @@ const SvgMagnifyingGlass = (props: SVGProps) => ( > + ); diff --git a/sparkle/src/icons/solid/index.ts b/sparkle/src/icons/solid/index.ts index 288f1e895195..d1e700c689fb 100644 --- a/sparkle/src/icons/solid/index.ts +++ b/sparkle/src/icons/solid/index.ts @@ -48,6 +48,7 @@ export { default as DocumentDuplicateIcon } from "./DocumentDuplicate"; export { default as DocumentPileIcon } from "./DocumentPile"; export { default as DocumentPlusIcon } from "./DocumentPlus"; export { default as DocumentTextIcon } from "./DocumentText"; +export { default as DotIcon } from "./Dot"; export { default as DustIcon } from "./Dust"; export { default as EmotionLaughIcon } from "./EmotionLaugh"; export { default as EqualizerIcon } from "./Equalizer"; diff --git a/sparkle/src/icons/src/solid/dot.svg b/sparkle/src/icons/src/solid/dot.svg new file mode 100644 index 000000000000..af4c29fd2779 --- /dev/null +++ b/sparkle/src/icons/src/solid/dot.svg @@ -0,0 +1,3 @@ + + + diff --git a/sparkle/src/icons/src/solid/magnifying-glass.svg b/sparkle/src/icons/src/solid/magnifying-glass.svg index c4cd39565b91..594a77eb82c9 100644 --- a/sparkle/src/icons/src/solid/magnifying-glass.svg +++ b/sparkle/src/icons/src/solid/magnifying-glass.svg @@ -1,3 +1,4 @@ - + + diff --git a/sparkle/src/icons/src/stroke/dot.svg b/sparkle/src/icons/src/stroke/dot.svg new file mode 100644 index 000000000000..69bb96184521 --- /dev/null +++ b/sparkle/src/icons/src/stroke/dot.svg @@ -0,0 +1,3 @@ + + + diff --git a/sparkle/src/icons/stroke/Dot.tsx b/sparkle/src/icons/stroke/Dot.tsx new file mode 100644 index 000000000000..89508013f4f2 --- /dev/null +++ b/sparkle/src/icons/stroke/Dot.tsx @@ -0,0 +1,20 @@ +import type { SVGProps } from "react"; +import * as React from "react"; +const SvgDot = (props: SVGProps) => ( + + + +); +export default SvgDot; diff --git a/sparkle/src/icons/stroke/index.ts b/sparkle/src/icons/stroke/index.ts index 211f94e78a57..5843b26b8b00 100644 --- a/sparkle/src/icons/stroke/index.ts +++ b/sparkle/src/icons/stroke/index.ts @@ -48,6 +48,7 @@ export { default as DocumentDuplicateStrokeIcon } from "./DocumentDuplicate"; export { default as DocumentPileStrokeIcon } from "./DocumentPile"; export { default as DocumentPlusStrokeIcon } from "./DocumentPlus"; export { default as DocumentTextStrokeIcon } from "./DocumentText"; +export { default as DotStrokeIcon } from "./Dot"; export { default as DustStrokeIcon } from "./Dust"; export { default as EmotionLaughStrokeIcon } from "./EmotionLaugh"; export { default as EqualizerStrokeIcon } from "./Equalizer"; diff --git a/sparkle/src/stories/Tree.stories.tsx b/sparkle/src/stories/Tree.stories.tsx index 243fa6ec1ece..fb05556170a5 100644 --- a/sparkle/src/stories/Tree.stories.tsx +++ b/sparkle/src/stories/Tree.stories.tsx @@ -1,7 +1,6 @@ import type { Meta } from "@storybook/react"; import React from "react"; -import { DustIcon } from "@sparkle/icons/solid"; import { DriveLogo, IntercomLogo, @@ -15,6 +14,7 @@ import { CloudArrowDownIcon, Cog6ToothIcon, DocumentIcon, + DustIcon, EyeIcon, FolderIcon, IconButton, @@ -89,7 +89,17 @@ export const TreeExample = () => { visual={FolderIcon} collapsed={false} > - + + +