diff --git a/.changeset/strange-trainers-watch.md b/.changeset/strange-trainers-watch.md new file mode 100644 index 0000000000000..25605aacd4cca --- /dev/null +++ b/.changeset/strange-trainers-watch.md @@ -0,0 +1,6 @@ +--- +"@medusajs/ui-preset": patch +"@medusajs/icons": patch +--- + +feat(ui,icons,ui-preset): Sync with latest changes from Figma, and fix Code components diff --git a/packages/design-system/icons/src/components/__tests__/amazon.spec.tsx b/packages/design-system/icons/src/components/__tests__/amazon.spec.tsx new file mode 100644 index 0000000000000..4e79ec2c8c805 --- /dev/null +++ b/packages/design-system/icons/src/components/__tests__/amazon.spec.tsx @@ -0,0 +1,17 @@ + import * as React from "react" + import { cleanup, render, screen } from "@testing-library/react" + + import Amazon from "../amazon" + + describe("Amazon", () => { + it("should render the icon without errors", async () => { + render() + + + const svgElement = screen.getByTestId("icon") + + expect(svgElement).toBeInTheDocument() + + cleanup() + }) + }) \ No newline at end of file diff --git a/packages/design-system/icons/src/components/__tests__/arrow-right-down.spec.tsx b/packages/design-system/icons/src/components/__tests__/arrow-right-down.spec.tsx new file mode 100644 index 0000000000000..a62f3e6e7a124 --- /dev/null +++ b/packages/design-system/icons/src/components/__tests__/arrow-right-down.spec.tsx @@ -0,0 +1,17 @@ + import * as React from "react" + import { cleanup, render, screen } from "@testing-library/react" + + import ArrowRightDown from "../arrow-right-down" + + describe("ArrowRightDown", () => { + it("should render the icon without errors", async () => { + render() + + + const svgElement = screen.getByTestId("icon") + + expect(svgElement).toBeInTheDocument() + + cleanup() + }) + }) \ No newline at end of file diff --git a/packages/design-system/icons/src/components/__tests__/bell-alert-done.spec.tsx b/packages/design-system/icons/src/components/__tests__/bell-alert-done.spec.tsx index 290bf9f3d69c0..ef218b01282f3 100644 --- a/packages/design-system/icons/src/components/__tests__/bell-alert-done.spec.tsx +++ b/packages/design-system/icons/src/components/__tests__/bell-alert-done.spec.tsx @@ -1,16 +1,17 @@ -import * as React from "react" -import { cleanup, render, screen } from "@testing-library/react" + import * as React from "react" + import { cleanup, render, screen } from "@testing-library/react" -import BellAlertDone from "../bell-alert-done" + import BellAlertDone from "../bell-alert-done" -describe("BellAlertDone", () => { - it("should render the icon without errors", async () => { - render() + describe("BellAlertDone", () => { + it("should render the icon without errors", async () => { + render() - const svgElement = screen.getByTestId("icon") - expect(svgElement).toBeInTheDocument() + const svgElement = screen.getByTestId("icon") - cleanup() - }) -}) + expect(svgElement).toBeInTheDocument() + + cleanup() + }) + }) \ No newline at end of file diff --git a/packages/design-system/icons/src/components/__tests__/broom-sparkle.spec.tsx b/packages/design-system/icons/src/components/__tests__/broom-sparkle.spec.tsx new file mode 100644 index 0000000000000..ea01e96e8c19d --- /dev/null +++ b/packages/design-system/icons/src/components/__tests__/broom-sparkle.spec.tsx @@ -0,0 +1,17 @@ + import * as React from "react" + import { cleanup, render, screen } from "@testing-library/react" + + import BroomSparkle from "../broom-sparkle" + + describe("BroomSparkle", () => { + it("should render the icon without errors", async () => { + render() + + + const svgElement = screen.getByTestId("icon") + + expect(svgElement).toBeInTheDocument() + + cleanup() + }) + }) \ No newline at end of file diff --git a/packages/design-system/icons/src/components/__tests__/button.spec.tsx b/packages/design-system/icons/src/components/__tests__/button.spec.tsx new file mode 100644 index 0000000000000..b53fe0941a0ed --- /dev/null +++ b/packages/design-system/icons/src/components/__tests__/button.spec.tsx @@ -0,0 +1,17 @@ + import * as React from "react" + import { cleanup, render, screen } from "@testing-library/react" + + import Button from "../button" + + describe("Button", () => { + it("should render the icon without errors", async () => { + render(