forked from medusajs/medusa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(dashboard,icons): Update icons and switch icon in CategoryTree (m…
…edusajs#10961) Co-authored-by: Oli Juhl <[email protected]>
- Loading branch information
1 parent
d845adc
commit 2a25b4d
Showing
15 changed files
with
293 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
"@medusajs/icons": patch | ||
"@medusajs/dashboard": patch | ||
--- | ||
|
||
chore(icons,dashboard): Pull latest icons and update branch icon in category tree |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
packages/design-system/icons/src/components/__tests__/house-star.spec.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import * as React from "react" | ||
import { cleanup, render, screen } from "@testing-library/react" | ||
|
||
import HouseStar from "../house-star" | ||
|
||
describe("HouseStar", () => { | ||
it("should render the icon without errors", async () => { | ||
render(<HouseStar data-testid="icon" />) | ||
|
||
|
||
const svgElement = screen.getByTestId("icon") | ||
|
||
expect(svgElement).toBeInTheDocument() | ||
|
||
cleanup() | ||
}) | ||
}) |
17 changes: 17 additions & 0 deletions
17
packages/design-system/icons/src/components/__tests__/shield-check.spec.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import * as React from "react" | ||
import { cleanup, render, screen } from "@testing-library/react" | ||
|
||
import ShieldCheck from "../shield-check" | ||
|
||
describe("ShieldCheck", () => { | ||
it("should render the icon without errors", async () => { | ||
render(<ShieldCheck data-testid="icon" />) | ||
|
||
|
||
const svgElement = screen.getByTestId("icon") | ||
|
||
expect(svgElement).toBeInTheDocument() | ||
|
||
cleanup() | ||
}) | ||
}) |
17 changes: 17 additions & 0 deletions
17
packages/design-system/icons/src/components/__tests__/tag-illustration.spec.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import * as React from "react" | ||
import { cleanup, render, screen } from "@testing-library/react" | ||
|
||
import TagIllustration from "../tag-illustration" | ||
|
||
describe("TagIllustration", () => { | ||
it("should render the icon without errors", async () => { | ||
render(<TagIllustration data-testid="icon" />) | ||
|
||
|
||
const svgElement = screen.getByTestId("icon") | ||
|
||
expect(svgElement).toBeInTheDocument() | ||
|
||
cleanup() | ||
}) | ||
}) |
33 changes: 33 additions & 0 deletions
33
packages/design-system/icons/src/components/house-star.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import * as React from "react" | ||
import type { IconProps } from "../types" | ||
const HouseStar = React.forwardRef<SVGSVGElement, IconProps>( | ||
({ color = "currentColor", ...props }, ref) => { | ||
return ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width={15} | ||
height={15} | ||
fill="none" | ||
ref={ref} | ||
{...props} | ||
> | ||
<path | ||
stroke={color} | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
strokeWidth={1.5} | ||
d="M13.056 7.008v-1.29c0-.277-.13-.539-.351-.707L8.038 1.465a.89.89 0 0 0-1.076 0L2.296 5.01a.89.89 0 0 0-.352.708v6.448c0 .981.796 1.777 1.778 1.777H6.42" | ||
/> | ||
<path | ||
stroke={color} | ||
strokeLinecap="round" | ||
strokeLinejoin="round" | ||
strokeWidth={1.5} | ||
d="m10.903 8.708.892 1.808 1.997.29-1.445 1.408.341 1.989-1.785-.939-1.786.939.341-1.989-1.444-1.408 1.996-.29z" | ||
/> | ||
</svg> | ||
) | ||
} | ||
) | ||
HouseStar.displayName = "HouseStar" | ||
export default HouseStar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
packages/design-system/icons/src/components/shield-check.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import * as React from "react" | ||
import type { IconProps } from "../types" | ||
const ShieldCheck = React.forwardRef<SVGSVGElement, IconProps>( | ||
({ color = "currentColor", ...props }, ref) => { | ||
return ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width={15} | ||
height={15} | ||
fill="none" | ||
ref={ref} | ||
{...props} | ||
> | ||
<path | ||
fill={color} | ||
d="M12.64 2 7.974.507c-.31-.1-.638-.099-.948 0L2.36 2a1.55 1.55 0 0 0-1.081 1.482v5.796c0 3.118 4.396 4.781 5.742 5.217a1.56 1.56 0 0 0 .958 0c1.348-.435 5.744-2.098 5.744-5.216V3.482c0-.68-.434-1.275-1.082-1.482m-2.383 3.902-3.02 4a.67.67 0 0 1-.986.086l-1.43-1.333a.667.667 0 0 1 .908-.976l.89.829 2.574-3.41a.667.667 0 0 1 1.064.804" | ||
/> | ||
</svg> | ||
) | ||
} | ||
) | ||
ShieldCheck.displayName = "ShieldCheck" | ||
export default ShieldCheck |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.