|
1 |
| -import { type Assign, type PolymorphicProps, ark } from '@ark-ui/solid' |
2 |
| -import type { ComponentProps } from 'solid-js' |
3 |
| -import { card } from 'styled-system/recipes' |
4 |
| -import type { HTMLStyledProps } from 'styled-system/types' |
5 |
| -import { createStyleContext } from './utils/create-style-context' |
| 1 | +import { type Assign, type PolymorphicProps, ark } from "@ark-ui/solid"; |
| 2 | +import type { ComponentProps } from "solid-js"; |
| 3 | +import { card } from "styled-system/recipes"; |
| 4 | +import type { HTMLStyledProps } from "styled-system/types"; |
| 5 | +import { createStyleContext } from "./utils/create-style-context"; |
6 | 6 |
|
7 |
| -const { withProvider, withContext } = createStyleContext(card) |
| 7 | +const { withProvider, withContext } = createStyleContext(card); |
8 | 8 |
|
9 |
| -export type RootProps = ComponentProps<typeof Root> |
10 |
| -export const Root = withProvider<Assign<HTMLStyledProps<'div'>, PolymorphicProps<'div'>>>( |
11 |
| - ark.div, |
12 |
| - 'root', |
13 |
| -) |
| 9 | +export type RootProps = ComponentProps<typeof Root>; |
| 10 | +export const Root = withProvider< |
| 11 | + Assign<HTMLStyledProps<"div">, PolymorphicProps<"div">> |
| 12 | +>(ark.div, "root"); |
14 | 13 |
|
15 |
| -export const Body = withContext<Assign<HTMLStyledProps<'div'>, PolymorphicProps<'div'>>>( |
16 |
| - ark.div, |
17 |
| - 'body', |
18 |
| -) |
| 14 | +export const Body = withContext< |
| 15 | + Assign<HTMLStyledProps<"div">, PolymorphicProps<"div">> |
| 16 | +>(ark.div, "body"); |
19 | 17 |
|
20 |
| -export const Description = withContext<Assign<HTMLStyledProps<'div'>, PolymorphicProps<'div'>>>( |
21 |
| - ark.div, |
22 |
| - 'description', |
23 |
| -) |
| 18 | +export const Description = withContext< |
| 19 | + Assign<HTMLStyledProps<"div">, PolymorphicProps<"div">> |
| 20 | +>(ark.div, "description"); |
24 | 21 |
|
25 |
| -export const Footer = withContext<Assign<HTMLStyledProps<'div'>, PolymorphicProps<'div'>>>( |
26 |
| - ark.div, |
27 |
| - 'footer', |
28 |
| -) |
| 22 | +export const Footer = withContext< |
| 23 | + Assign<HTMLStyledProps<"div">, PolymorphicProps<"div">> |
| 24 | +>(ark.div, "footer"); |
29 | 25 |
|
30 |
| -export const Header = withContext<Assign<HTMLStyledProps<'div'>, PolymorphicProps<'div'>>>( |
31 |
| - ark.div, |
32 |
| - 'header', |
33 |
| -) |
| 26 | +export const Header = withContext< |
| 27 | + Assign<HTMLStyledProps<"div">, PolymorphicProps<"div">> |
| 28 | +>(ark.div, "header"); |
34 | 29 |
|
35 |
| -export const Title = withContext<Assign<HTMLStyledProps<'h3'>, PolymorphicProps<'h3'>>>( |
36 |
| - ark.h3, |
37 |
| - 'title', |
38 |
| -) |
| 30 | +export const Title = withContext< |
| 31 | + Assign<HTMLStyledProps<"h3">, PolymorphicProps<"h3">> |
| 32 | +>(ark.h3, "title"); |
0 commit comments