Skip to content

Commit dd10b63

Browse files
authored
Sprkle: fix color new icons v2 (#9007)
1 parent 8555f22 commit dd10b63

File tree

5 files changed

+17
-6
lines changed

5 files changed

+17
-6
lines changed

sparkle/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sparkle/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@dust-tt/sparkle",
3-
"version": "0.2.328",
3+
"version": "0.2.329",
44
"scripts": {
55
"build": "rm -rf dist && npm run tailwind && npm run build:esm && npm run build:cjs",
66
"tailwind": "tailwindcss -i ./src/styles/tailwind.css -o dist/sparkle.css",

sparkle/src/icons/solid/Camera.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const SvgCamera = (props: SVGProps<SVGSVGElement>) => (
1010
{...props}
1111
>
1212
<path
13-
fill="#000"
13+
fill="currentColor"
1414
d="M9.001 3h6l2 2h4.5c.553 0 .5-.052.5.5v15c0 .552.053.5-.5.5h-19c-.552 0-.5.052-.5-.5v-15c0-.552-.052-.5.5-.5h4.5l2-2Zm3 16a6 6 0 1 0 0-12 6 6 0 0 0 0 12Zm0-2a4 4 0 1 1 0-8 4 4 0 0 1 0 8Z"
1515
/>
1616
</svg>

sparkle/src/icons/stroke/TSquare.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const SvgTSquare = (props: SVGProps<SVGSVGElement>) => (
1010
{...props}
1111
>
1212
<path
13-
fill="#000"
13+
fill="currentColor"
1414
d="M2.001 3.557c0-.614-.052-.556.5-.556H21.5c.552 0 .5-.058.5.556v18.886c0 .614.052.555-.5.555H2.5c-.552 0-.5.059-.5-.555V3.557Zm2 1.666v15.554H20V5.223H4Zm3 3.333h9.998v3.333h-2v-1.11h-2v4.443h1.5v2.222H9.5v-2.222H11v-4.444H9v1.111H7V8.556Z"
1515
/>
1616
</svg>

sparkle/src/stories/SplitButton.stories.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,12 @@ import React from "react";
33

44
import { BUTTON_SIZES, BUTTON_VARIANTS } from "@sparkle/components/Button";
55

6-
import { PlusIcon, RobotIcon, SplitButton } from "../index_with_tw_base";
6+
import {
7+
CameraIcon,
8+
PlusIcon,
9+
RobotIcon,
10+
SplitButton,
11+
} from "../index_with_tw_base";
712

813
const meta: Meta<React.ComponentProps<typeof SplitButton>> = {
914
title: "Primitives/SplitButton",
@@ -46,6 +51,12 @@ export const ExampleButton: Story = {
4651
tooltip: "Disabled tooltip",
4752
disabled: true,
4853
},
54+
{
55+
label: "Photo",
56+
icon: CameraIcon,
57+
tooltip: "Disabled photo",
58+
disabled: true,
59+
},
4960
{
5061
label: "Third",
5162
tooltip: "Third tooltip",

0 commit comments

Comments
 (0)