Skip to content

Commit

Permalink
run biome oops
Browse files Browse the repository at this point in the history
  • Loading branch information
dtemkin1 committed Jan 20, 2025
1 parent 4b2a7e3 commit 4861d4b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 32 deletions.
2 changes: 1 addition & 1 deletion src/components/ui/card.tsx
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * as Card from './styled/card'
export * as Card from "./styled/card";
56 changes: 25 additions & 31 deletions src/components/ui/styled/card.tsx
Original file line number Diff line number Diff line change
@@ -1,38 +1,32 @@
import { type Assign, type PolymorphicProps, ark } from '@ark-ui/solid'
import type { ComponentProps } from 'solid-js'
import { card } from 'styled-system/recipes'
import type { HTMLStyledProps } from 'styled-system/types'
import { createStyleContext } from './utils/create-style-context'
import { type Assign, type PolymorphicProps, ark } from "@ark-ui/solid";
import type { ComponentProps } from "solid-js";
import { card } from "styled-system/recipes";
import type { HTMLStyledProps } from "styled-system/types";
import { createStyleContext } from "./utils/create-style-context";

const { withProvider, withContext } = createStyleContext(card)
const { withProvider, withContext } = createStyleContext(card);

export type RootProps = ComponentProps<typeof Root>
export const Root = withProvider<Assign<HTMLStyledProps<'div'>, PolymorphicProps<'div'>>>(
ark.div,
'root',
)
export type RootProps = ComponentProps<typeof Root>;
export const Root = withProvider<
Assign<HTMLStyledProps<"div">, PolymorphicProps<"div">>
>(ark.div, "root");

export const Body = withContext<Assign<HTMLStyledProps<'div'>, PolymorphicProps<'div'>>>(
ark.div,
'body',
)
export const Body = withContext<
Assign<HTMLStyledProps<"div">, PolymorphicProps<"div">>
>(ark.div, "body");

export const Description = withContext<Assign<HTMLStyledProps<'div'>, PolymorphicProps<'div'>>>(
ark.div,
'description',
)
export const Description = withContext<
Assign<HTMLStyledProps<"div">, PolymorphicProps<"div">>
>(ark.div, "description");

export const Footer = withContext<Assign<HTMLStyledProps<'div'>, PolymorphicProps<'div'>>>(
ark.div,
'footer',
)
export const Footer = withContext<
Assign<HTMLStyledProps<"div">, PolymorphicProps<"div">>
>(ark.div, "footer");

export const Header = withContext<Assign<HTMLStyledProps<'div'>, PolymorphicProps<'div'>>>(
ark.div,
'header',
)
export const Header = withContext<
Assign<HTMLStyledProps<"div">, PolymorphicProps<"div">>
>(ark.div, "header");

export const Title = withContext<Assign<HTMLStyledProps<'h3'>, PolymorphicProps<'h3'>>>(
ark.h3,
'title',
)
export const Title = withContext<
Assign<HTMLStyledProps<"h3">, PolymorphicProps<"h3">>
>(ark.h3, "title");

0 comments on commit 4861d4b

Please sign in to comment.