Skip to content

Commit

Permalink
fix(ui,icons,ui-preset): Fix CodeBlock and Command components (#10369)
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperkristensen authored Nov 29, 2024
1 parent 5719e82 commit 94f6265
Show file tree
Hide file tree
Showing 64 changed files with 1,659 additions and 479 deletions.
6 changes: 6 additions & 0 deletions .changeset/strange-trainers-watch.md
Original file line number Diff line number Diff line change
@@ -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
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 Amazon from "../amazon"

describe("Amazon", () => {
it("should render the icon without errors", async () => {
render(<Amazon data-testid="icon" />)


const svgElement = screen.getByTestId("icon")

expect(svgElement).toBeInTheDocument()

cleanup()
})
})
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 ArrowRightDown from "../arrow-right-down"

describe("ArrowRightDown", () => {
it("should render the icon without errors", async () => {
render(<ArrowRightDown data-testid="icon" />)


const svgElement = screen.getByTestId("icon")

expect(svgElement).toBeInTheDocument()

cleanup()
})
})
Original file line number Diff line number Diff line change
@@ -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(<BellAlertDone data-testid="icon" />)
describe("BellAlertDone", () => {
it("should render the icon without errors", async () => {
render(<BellAlertDone data-testid="icon" />)

const svgElement = screen.getByTestId("icon")

expect(svgElement).toBeInTheDocument()
const svgElement = screen.getByTestId("icon")

cleanup()
})
})
expect(svgElement).toBeInTheDocument()

cleanup()
})
})
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 BroomSparkle from "../broom-sparkle"

describe("BroomSparkle", () => {
it("should render the icon without errors", async () => {
render(<BroomSparkle data-testid="icon" />)


const svgElement = screen.getByTestId("icon")

expect(svgElement).toBeInTheDocument()

cleanup()
})
})
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 Button from "../button"

describe("Button", () => {
it("should render the icon without errors", async () => {
render(<Button data-testid="icon" />)


const svgElement = screen.getByTestId("icon")

expect(svgElement).toBeInTheDocument()

cleanup()
})
})
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 CaretMaximizeDiagonal from "../caret-maximize-diagonal"

describe("CaretMaximizeDiagonal", () => {
it("should render the icon without errors", async () => {
render(<CaretMaximizeDiagonal data-testid="icon" />)


const svgElement = screen.getByTestId("icon")

expect(svgElement).toBeInTheDocument()

cleanup()
})
})
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 CaretMinimizeDiagonal from "../caret-minimize-diagonal"

describe("CaretMinimizeDiagonal", () => {
it("should render the icon without errors", async () => {
render(<CaretMinimizeDiagonal data-testid="icon" />)


const svgElement = screen.getByTestId("icon")

expect(svgElement).toBeInTheDocument()

cleanup()
})
})
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 CircleSliders from "../circle-sliders"

describe("CircleSliders", () => {
it("should render the icon without errors", async () => {
render(<CircleSliders data-testid="icon" />)


const svgElement = screen.getByTestId("icon")

expect(svgElement).toBeInTheDocument()

cleanup()
})
})
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 CloneDashed from "../clone-dashed"

describe("CloneDashed", () => {
it("should render the icon without errors", async () => {
render(<CloneDashed data-testid="icon" />)


const svgElement = screen.getByTestId("icon")

expect(svgElement).toBeInTheDocument()

cleanup()
})
})
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 DecisionProcess from "../decision-process"

describe("DecisionProcess", () => {
it("should render the icon without errors", async () => {
render(<DecisionProcess data-testid="icon" />)


const svgElement = screen.getByTestId("icon")

expect(svgElement).toBeInTheDocument()

cleanup()
})
})
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 Directions from "../directions"

describe("Directions", () => {
it("should render the icon without errors", async () => {
render(<Directions data-testid="icon" />)


const svgElement = screen.getByTestId("icon")

expect(svgElement).toBeInTheDocument()

cleanup()
})
})
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 FeaturedBadge from "../featured-badge"

describe("FeaturedBadge", () => {
it("should render the icon without errors", async () => {
render(<FeaturedBadge data-testid="icon" />)


const svgElement = screen.getByTestId("icon")

expect(svgElement).toBeInTheDocument()

cleanup()
})
})
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 HandTruck from "../hand-truck"

describe("HandTruck", () => {
it("should render the icon without errors", async () => {
render(<HandTruck data-testid="icon" />)


const svgElement = screen.getByTestId("icon")

expect(svgElement).toBeInTheDocument()

cleanup()
})
})
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 HeartBroken from "../heart-broken"

describe("HeartBroken", () => {
it("should render the icon without errors", async () => {
render(<HeartBroken data-testid="icon" />)


const svgElement = screen.getByTestId("icon")

expect(svgElement).toBeInTheDocument()

cleanup()
})
})
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 House from "../house"

describe("House", () => {
it("should render the icon without errors", async () => {
render(<House data-testid="icon" />)


const svgElement = screen.getByTestId("icon")

expect(svgElement).toBeInTheDocument()

cleanup()
})
})
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 Levels from "../levels"

describe("Levels", () => {
it("should render the icon without errors", async () => {
render(<Levels data-testid="icon" />)


const svgElement = screen.getByTestId("icon")

expect(svgElement).toBeInTheDocument()

cleanup()
})
})
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 MediaPlay from "../media-play"

describe("MediaPlay", () => {
it("should render the icon without errors", async () => {
render(<MediaPlay data-testid="icon" />)


const svgElement = screen.getByTestId("icon")

expect(svgElement).toBeInTheDocument()

cleanup()
})
})
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 ScrollText from "../scroll-text"

describe("ScrollText", () => {
it("should render the icon without errors", async () => {
render(<ScrollText data-testid="icon" />)


const svgElement = screen.getByTestId("icon")

expect(svgElement).toBeInTheDocument()

cleanup()
})
})
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 Sendgrid from "../sendgrid"

describe("Sendgrid", () => {
it("should render the icon without errors", async () => {
render(<Sendgrid data-testid="icon" />)


const svgElement = screen.getByTestId("icon")

expect(svgElement).toBeInTheDocument()

cleanup()
})
})
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 Shipbob from "../shipbob"

describe("Shipbob", () => {
it("should render the icon without errors", async () => {
render(<Shipbob data-testid="icon" />)


const svgElement = screen.getByTestId("icon")

expect(svgElement).toBeInTheDocument()

cleanup()
})
})
Loading

0 comments on commit 94f6265

Please sign in to comment.