-
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.
- Loading branch information
Showing
2 changed files
with
26 additions
and
32 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 |
---|---|---|
@@ -1 +1 @@ | ||
export * as Card from './styled/card' | ||
export * as Card from "./styled/card"; |
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 |
---|---|---|
@@ -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"); |