cetec-design-system 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +12 -2
- package/styled-system/css/conditions.js +36 -0
- package/styled-system/css/conditions.mjs +36 -0
- package/styled-system/css/css.d.ts +22 -0
- package/styled-system/css/css.js +45 -0
- package/styled-system/css/css.mjs +45 -0
- package/styled-system/css/cva.d.ts +6 -0
- package/styled-system/css/cva.js +87 -0
- package/styled-system/css/cva.mjs +87 -0
- package/styled-system/css/cx.d.ts +5 -0
- package/styled-system/css/cx.js +15 -0
- package/styled-system/css/cx.mjs +15 -0
- package/styled-system/css/index.d.ts +5 -0
- package/styled-system/css/index.js +4 -0
- package/styled-system/css/index.mjs +4 -0
- package/styled-system/css/sva.d.ts +4 -0
- package/styled-system/css/sva.js +41 -0
- package/styled-system/css/sva.mjs +41 -0
- package/styled-system/debug/config.json +8379 -0
- package/styled-system/debug/src__App.ast.json +1291 -0
- package/styled-system/debug/src__App.css +830 -0
- package/styled-system/debug/src__components__Button__Button.stories.ast.json +244 -0
- package/styled-system/debug/src__components__Button__Button.stories.css +372 -0
- package/styled-system/debug/src__components__Code__Code.ast.json +32 -0
- package/styled-system/debug/src__components__Code__Code.css +25 -0
- package/styled-system/debug/src__components__Code__Pre.ast.json +53 -0
- package/styled-system/debug/src__components__Code__Pre.css +45 -0
- package/styled-system/debug/src__components__Code__copy-to-clipboard-button.ast.json +68 -0
- package/styled-system/debug/src__components__Code__copy-to-clipboard-button.css +167 -0
- package/styled-system/debug/src__components__Heading__Heading.ast.json +59 -0
- package/styled-system/debug/src__components__Heading__Heading.css +25 -0
- package/styled-system/debug/src__components__Icon__Icon.ast.json +28 -0
- package/styled-system/debug/src__components__Icon__Icon.css +9 -0
- package/styled-system/debug/src__components__Icon__iconStyle.ast.json +27 -0
- package/styled-system/debug/src__components__Icon__iconStyle.css +5 -0
- package/styled-system/debug/src__components__Input__Input.ast.json +50 -0
- package/styled-system/debug/src__components__Input__Input.css +79 -0
- package/styled-system/debug/src__components__Label__Label.ast.json +45 -0
- package/styled-system/debug/src__components__Label__Label.css +40 -0
- package/styled-system/debug/src__components__Link__Link.ast.json +72 -0
- package/styled-system/debug/src__components__Link__Link.css +39 -0
- package/styled-system/debug/src__components__Link__linkStyles.ast.json +59 -0
- package/styled-system/debug/src__components__Link__linkStyles.css +77 -0
- package/styled-system/debug/src__components__Spinner__spinnerStyles.ast.json +56 -0
- package/styled-system/debug/src__components__Spinner__spinnerStyles.css +69 -0
- package/styled-system/debug/src__components__Text__Text.ast.json +57 -0
- package/styled-system/debug/src__components__Text__Text.css +22 -0
- package/styled-system/debug/src__components__Text__Text.stories.ast.json +60 -0
- package/styled-system/debug/src__components__Text__Text.stories.css +40 -0
- package/styled-system/debug/src__components__Textarea__Textarea.ast.json +50 -0
- package/styled-system/debug/src__components__Textarea__Textarea.css +92 -0
- package/styled-system/debug/src__components__ThemeSwitcher__ThemeSwitcher.ast.json +42 -0
- package/styled-system/debug/src__components__ThemeSwitcher__ThemeSwitcher.css +101 -0
- package/styled-system/helpers.js +336 -0
- package/styled-system/helpers.mjs +336 -0
- package/styled-system/jsx/aspect-ratio.d.ts +10 -0
- package/styled-system/jsx/aspect-ratio.js +14 -0
- package/styled-system/jsx/aspect-ratio.mjs +14 -0
- package/styled-system/jsx/bleed.d.ts +10 -0
- package/styled-system/jsx/bleed.js +14 -0
- package/styled-system/jsx/bleed.mjs +14 -0
- package/styled-system/jsx/box.d.ts +10 -0
- package/styled-system/jsx/box.mjs +14 -0
- package/styled-system/jsx/center.d.ts +10 -0
- package/styled-system/jsx/center.js +14 -0
- package/styled-system/jsx/center.mjs +14 -0
- package/styled-system/jsx/circle.d.ts +10 -0
- package/styled-system/jsx/circle.js +14 -0
- package/styled-system/jsx/circle.mjs +14 -0
- package/styled-system/jsx/container.d.ts +10 -0
- package/styled-system/jsx/container.js +14 -0
- package/styled-system/jsx/container.mjs +14 -0
- package/styled-system/jsx/cq.d.ts +10 -0
- package/styled-system/jsx/cq.js +14 -0
- package/styled-system/jsx/cq.mjs +14 -0
- package/styled-system/jsx/divider.d.ts +10 -0
- package/styled-system/jsx/divider.mjs +14 -0
- package/styled-system/jsx/factory-helper.js +22 -0
- package/styled-system/jsx/factory-helper.mjs +22 -0
- package/styled-system/jsx/factory.d.ts +3 -0
- package/styled-system/jsx/factory.js +80 -0
- package/styled-system/jsx/factory.mjs +80 -0
- package/styled-system/jsx/flex.d.ts +10 -0
- package/styled-system/jsx/flex.js +14 -0
- package/styled-system/jsx/flex.mjs +14 -0
- package/styled-system/jsx/float.d.ts +10 -0
- package/styled-system/jsx/float.js +14 -0
- package/styled-system/jsx/float.mjs +14 -0
- package/styled-system/jsx/grid-item.d.ts +10 -0
- package/styled-system/jsx/grid-item.js +14 -0
- package/styled-system/jsx/grid-item.mjs +14 -0
- package/styled-system/jsx/grid.d.ts +10 -0
- package/styled-system/jsx/grid.js +14 -0
- package/styled-system/jsx/grid.mjs +14 -0
- package/styled-system/jsx/hstack.d.ts +10 -0
- package/styled-system/jsx/hstack.js +14 -0
- package/styled-system/jsx/hstack.mjs +14 -0
- package/styled-system/jsx/icon.d.ts +10 -0
- package/styled-system/jsx/icon.js +14 -0
- package/styled-system/jsx/icon.mjs +14 -0
- package/styled-system/jsx/index.d.ts +23 -0
- package/styled-system/jsx/index.js +21 -0
- package/styled-system/jsx/index.mjs +21 -0
- package/styled-system/jsx/is-valid-prop.d.ts +11 -0
- package/styled-system/jsx/is-valid-prop.js +17 -0
- package/styled-system/jsx/is-valid-prop.mjs +17 -0
- package/styled-system/jsx/link-overlay.d.ts +10 -0
- package/styled-system/jsx/link-overlay.js +14 -0
- package/styled-system/jsx/link-overlay.mjs +14 -0
- package/styled-system/jsx/spacer.d.ts +10 -0
- package/styled-system/jsx/spacer.js +14 -0
- package/styled-system/jsx/spacer.mjs +14 -0
- package/styled-system/jsx/square.d.ts +10 -0
- package/styled-system/jsx/square.js +14 -0
- package/styled-system/jsx/square.mjs +14 -0
- package/styled-system/jsx/stack.d.ts +10 -0
- package/styled-system/jsx/stack.js +14 -0
- package/styled-system/jsx/stack.mjs +14 -0
- package/styled-system/jsx/visually-hidden.d.ts +10 -0
- package/styled-system/jsx/visually-hidden.js +14 -0
- package/styled-system/jsx/visually-hidden.mjs +14 -0
- package/styled-system/jsx/vstack.d.ts +10 -0
- package/styled-system/jsx/vstack.js +14 -0
- package/styled-system/jsx/vstack.mjs +14 -0
- package/styled-system/jsx/wrap.d.ts +10 -0
- package/styled-system/jsx/wrap.js +14 -0
- package/styled-system/jsx/wrap.mjs +14 -0
- package/styled-system/patterns/aspect-ratio.d.ts +21 -0
- package/styled-system/patterns/aspect-ratio.js +38 -0
- package/styled-system/patterns/aspect-ratio.mjs +38 -0
- package/styled-system/patterns/bleed.d.ts +22 -0
- package/styled-system/patterns/bleed.js +24 -0
- package/styled-system/patterns/bleed.mjs +24 -0
- package/styled-system/patterns/box.d.ts +21 -0
- package/styled-system/patterns/box.mjs +15 -0
- package/styled-system/patterns/center.d.ts +21 -0
- package/styled-system/patterns/center.js +21 -0
- package/styled-system/patterns/center.mjs +21 -0
- package/styled-system/patterns/circle.d.ts +21 -0
- package/styled-system/patterns/circle.js +25 -0
- package/styled-system/patterns/circle.mjs +25 -0
- package/styled-system/patterns/container.d.ts +21 -0
- package/styled-system/patterns/container.js +24 -0
- package/styled-system/patterns/container.mjs +24 -0
- package/styled-system/patterns/cq.d.ts +22 -0
- package/styled-system/patterns/cq.js +21 -0
- package/styled-system/patterns/cq.mjs +21 -0
- package/styled-system/patterns/divider.d.ts +23 -0
- package/styled-system/patterns/divider.mjs +25 -0
- package/styled-system/patterns/flex.d.ts +27 -0
- package/styled-system/patterns/flex.js +26 -0
- package/styled-system/patterns/flex.mjs +26 -0
- package/styled-system/patterns/float.d.ts +24 -0
- package/styled-system/patterns/float.js +52 -0
- package/styled-system/patterns/float.mjs +52 -0
- package/styled-system/patterns/grid-item.d.ts +26 -0
- package/styled-system/patterns/grid-item.js +25 -0
- package/styled-system/patterns/grid-item.mjs +25 -0
- package/styled-system/patterns/grid.d.ts +25 -0
- package/styled-system/patterns/grid.js +27 -0
- package/styled-system/patterns/grid.mjs +27 -0
- package/styled-system/patterns/hstack.d.ts +22 -0
- package/styled-system/patterns/hstack.js +24 -0
- package/styled-system/patterns/hstack.mjs +24 -0
- package/styled-system/patterns/icon.d.ts +21 -0
- package/styled-system/patterns/icon.js +20 -0
- package/styled-system/patterns/icon.mjs +20 -0
- package/styled-system/patterns/index.d.ts +20 -0
- package/styled-system/patterns/index.js +19 -0
- package/styled-system/patterns/index.mjs +19 -0
- package/styled-system/patterns/link-overlay.d.ts +21 -0
- package/styled-system/patterns/link-overlay.js +24 -0
- package/styled-system/patterns/link-overlay.mjs +24 -0
- package/styled-system/patterns/spacer.d.ts +21 -0
- package/styled-system/patterns/spacer.js +21 -0
- package/styled-system/patterns/spacer.mjs +21 -0
- package/styled-system/patterns/square.d.ts +21 -0
- package/styled-system/patterns/square.js +24 -0
- package/styled-system/patterns/square.mjs +24 -0
- package/styled-system/patterns/stack.d.ts +24 -0
- package/styled-system/patterns/stack.js +24 -0
- package/styled-system/patterns/stack.mjs +24 -0
- package/styled-system/patterns/visually-hidden.d.ts +21 -0
- package/styled-system/patterns/visually-hidden.js +18 -0
- package/styled-system/patterns/visually-hidden.mjs +18 -0
- package/styled-system/patterns/vstack.d.ts +22 -0
- package/styled-system/patterns/vstack.js +24 -0
- package/styled-system/patterns/vstack.mjs +24 -0
- package/styled-system/patterns/wrap.d.ts +25 -0
- package/styled-system/patterns/wrap.js +25 -0
- package/styled-system/patterns/wrap.mjs +25 -0
- package/styled-system/recipes/box.d.ts +28 -0
- package/styled-system/recipes/box.js +24 -0
- package/styled-system/recipes/box.mjs +24 -0
- package/styled-system/recipes/button.d.ts +35 -0
- package/styled-system/recipes/button.js +41 -0
- package/styled-system/recipes/button.mjs +41 -0
- package/styled-system/recipes/checkbox.d.ts +28 -0
- package/styled-system/recipes/checkbox.js +40 -0
- package/styled-system/recipes/checkbox.mjs +40 -0
- package/styled-system/recipes/code.d.ts +28 -0
- package/styled-system/recipes/code.js +24 -0
- package/styled-system/recipes/code.mjs +24 -0
- package/styled-system/recipes/create-recipe.js +82 -0
- package/styled-system/recipes/create-recipe.mjs +82 -0
- package/styled-system/recipes/divider.d.ts +35 -0
- package/styled-system/recipes/divider.js +38 -0
- package/styled-system/recipes/divider.mjs +38 -0
- package/styled-system/recipes/heading.d.ts +31 -0
- package/styled-system/recipes/heading.js +33 -0
- package/styled-system/recipes/heading.mjs +33 -0
- package/styled-system/recipes/icon-button.d.ts +35 -0
- package/styled-system/recipes/icon-button.js +41 -0
- package/styled-system/recipes/icon-button.mjs +41 -0
- package/styled-system/recipes/index.d.ts +16 -0
- package/styled-system/recipes/index.js +15 -0
- package/styled-system/recipes/index.mjs +15 -0
- package/styled-system/recipes/input.d.ts +31 -0
- package/styled-system/recipes/input.js +31 -0
- package/styled-system/recipes/input.mjs +31 -0
- package/styled-system/recipes/label.d.ts +38 -0
- package/styled-system/recipes/label.js +83 -0
- package/styled-system/recipes/label.mjs +83 -0
- package/styled-system/recipes/link.d.ts +38 -0
- package/styled-system/recipes/link.js +83 -0
- package/styled-system/recipes/link.mjs +83 -0
- package/styled-system/recipes/pre.d.ts +28 -0
- package/styled-system/recipes/pre.js +24 -0
- package/styled-system/recipes/pre.mjs +24 -0
- package/styled-system/recipes/radio.d.ts +28 -0
- package/styled-system/recipes/radio.js +40 -0
- package/styled-system/recipes/radio.mjs +40 -0
- package/styled-system/recipes/spinner.d.ts +31 -0
- package/styled-system/recipes/spinner.js +32 -0
- package/styled-system/recipes/spinner.mjs +32 -0
- package/styled-system/recipes/switchbox.d.ts +28 -0
- package/styled-system/recipes/switchbox.mjs +40 -0
- package/styled-system/recipes/text.d.ts +37 -0
- package/styled-system/recipes/text.js +80 -0
- package/styled-system/recipes/text.mjs +80 -0
- package/styled-system/recipes/textarea.d.ts +31 -0
- package/styled-system/recipes/textarea.js +32 -0
- package/styled-system/recipes/textarea.mjs +32 -0
- package/styled-system/recipes/textinput.d.ts +32 -0
- package/styled-system/recipes/textinput.mjs +35 -0
- package/styled-system/styles.css +672 -0
- package/styled-system/tokens/index.d.ts +9 -0
- package/styled-system/tokens/index.js +1480 -0
- package/styled-system/tokens/index.mjs +1480 -0
- package/styled-system/tokens/tokens.d.ts +60 -0
- package/styled-system/types/composition.d.ts +164 -0
- package/styled-system/types/conditions.d.ts +306 -0
- package/styled-system/types/csstype.d.ts +21298 -0
- package/styled-system/types/global.d.ts +20 -0
- package/styled-system/types/index.d.ts +8 -0
- package/styled-system/types/jsx.d.ts +52 -0
- package/styled-system/types/parts.d.ts +8 -0
- package/styled-system/types/pattern.d.ts +78 -0
- package/styled-system/types/prop-type.d.ts +235 -0
- package/styled-system/types/recipe.d.ts +181 -0
- package/styled-system/types/selectors.d.ts +59 -0
- package/styled-system/types/static-css.d.ts +56 -0
- package/styled-system/types/style-props.d.ts +7468 -0
- package/styled-system/types/system-types.d.ts +109 -0
- package/.github/CODEOWNERS +0 -1
- package/.husky/task-runner.json +0 -10
- package/.nvmrc +0 -1
- package/.prettierrc +0 -8
- package/.storybook/main.ts +0 -18
- package/.storybook/preview-body.html +0 -0
- package/.storybook/preview-head.tsx +0 -1
- package/.storybook/preview.tsx +0 -21
- package/index.html +0 -13
- package/panda.config.ts +0 -201
- package/postcss.config.cjs +0 -5
- package/src/App.tsx +0 -429
- package/src/contexts/ThemeContext.tsx +0 -77
- package/src/main.tsx +0 -10
- package/src/recipes/box.ts +0 -16
- package/src/recipes/button.ts +0 -220
- package/src/recipes/checkbox.ts +0 -88
- package/src/recipes/code.ts +0 -37
- package/src/recipes/divider.ts +0 -40
- package/src/recipes/index.ts +0 -10
- package/src/recipes/input.ts +0 -56
- package/src/recipes/radio.ts +0 -71
- package/src/recipes/spinner.ts +0 -42
- package/src/recipes/text.ts +0 -185
- package/src/recipes/textarea.ts +0 -77
- package/src/styles/conditions.ts +0 -108
- package/src/styles/font-imports.css +0 -35
- package/src/styles/globalStyle.ts +0 -85
- package/src/styles/index.css +0 -3
- package/src/styles/semanticTokens.ts +0 -110
- package/src/styles/tokens.ts +0 -580
- package/src/vite-env.d.ts +0 -1
- package/tsconfig.json +0 -33
- package/vite.config.ts +0 -39
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const linkFn = /* @__PURE__ */ createRecipe('link', {
|
|
5
|
+
"family": "body"
|
|
6
|
+
}, [])
|
|
7
|
+
|
|
8
|
+
const linkVariantMap = {
|
|
9
|
+
"textStyle": [
|
|
10
|
+
"display-lg",
|
|
11
|
+
"display-md",
|
|
12
|
+
"display-sm",
|
|
13
|
+
"display-xs",
|
|
14
|
+
"heading-lg",
|
|
15
|
+
"heading-md",
|
|
16
|
+
"heading-sm",
|
|
17
|
+
"heading-xs",
|
|
18
|
+
"body-lg",
|
|
19
|
+
"body-md",
|
|
20
|
+
"body-sm",
|
|
21
|
+
"body-xs",
|
|
22
|
+
"mono-lg",
|
|
23
|
+
"mono-md",
|
|
24
|
+
"mono-sm",
|
|
25
|
+
"mono-xs"
|
|
26
|
+
],
|
|
27
|
+
"family": [
|
|
28
|
+
"heading",
|
|
29
|
+
"body",
|
|
30
|
+
"mono"
|
|
31
|
+
],
|
|
32
|
+
"bold": [
|
|
33
|
+
"true"
|
|
34
|
+
],
|
|
35
|
+
"italic": [
|
|
36
|
+
"true"
|
|
37
|
+
],
|
|
38
|
+
"underline": [
|
|
39
|
+
"true"
|
|
40
|
+
],
|
|
41
|
+
"size": [
|
|
42
|
+
"12",
|
|
43
|
+
"14",
|
|
44
|
+
"16",
|
|
45
|
+
"20",
|
|
46
|
+
"24",
|
|
47
|
+
"32",
|
|
48
|
+
"40",
|
|
49
|
+
"48",
|
|
50
|
+
"64",
|
|
51
|
+
"72",
|
|
52
|
+
"80",
|
|
53
|
+
"96"
|
|
54
|
+
],
|
|
55
|
+
"weight": [
|
|
56
|
+
"light",
|
|
57
|
+
"normal",
|
|
58
|
+
"medium",
|
|
59
|
+
"bold",
|
|
60
|
+
"black"
|
|
61
|
+
],
|
|
62
|
+
"_disabled": [
|
|
63
|
+
"true"
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
const linkVariantKeys = Object.keys(linkVariantMap)
|
|
68
|
+
|
|
69
|
+
export const link = /* @__PURE__ */ Object.assign(memo(linkFn.recipeFn), {
|
|
70
|
+
__recipe__: true,
|
|
71
|
+
__name__: 'link',
|
|
72
|
+
__getCompoundVariantCss__: linkFn.__getCompoundVariantCss__,
|
|
73
|
+
raw: (props) => props,
|
|
74
|
+
variantKeys: linkVariantKeys,
|
|
75
|
+
variantMap: linkVariantMap,
|
|
76
|
+
merge(recipe) {
|
|
77
|
+
return mergeRecipes(this, recipe)
|
|
78
|
+
},
|
|
79
|
+
splitVariantProps(props) {
|
|
80
|
+
return splitProps(props, linkVariantKeys)
|
|
81
|
+
},
|
|
82
|
+
getVariantProps: linkFn.getVariantProps,
|
|
83
|
+
})
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface PreVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type PreVariantMap = {
|
|
10
|
+
[key in keyof PreVariant]: Array<PreVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type PreVariantProps = {
|
|
14
|
+
[key in keyof PreVariant]?: ConditionalValue<PreVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface PreRecipe {
|
|
18
|
+
__type: PreVariantProps
|
|
19
|
+
(props?: PreVariantProps): string
|
|
20
|
+
raw: (props?: PreVariantProps) => PreVariantProps
|
|
21
|
+
variantMap: PreVariantMap
|
|
22
|
+
variantKeys: Array<keyof PreVariant>
|
|
23
|
+
splitVariantProps<Props extends PreVariantProps>(props: Props): [PreVariantProps, Pretty<DistributiveOmit<Props, keyof PreVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: PreVariantProps) => PreVariantProps
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export declare const pre: PreRecipe
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { memo, splitProps } from '../helpers.js';
|
|
2
|
+
import { createRecipe, mergeRecipes } from './create-recipe.js';
|
|
3
|
+
|
|
4
|
+
const preFn = /* @__PURE__ */ createRecipe('pre', {}, [])
|
|
5
|
+
|
|
6
|
+
const preVariantMap = {}
|
|
7
|
+
|
|
8
|
+
const preVariantKeys = Object.keys(preVariantMap)
|
|
9
|
+
|
|
10
|
+
export const pre = /* @__PURE__ */ Object.assign(memo(preFn.recipeFn), {
|
|
11
|
+
__recipe__: true,
|
|
12
|
+
__name__: 'pre',
|
|
13
|
+
__getCompoundVariantCss__: preFn.__getCompoundVariantCss__,
|
|
14
|
+
raw: (props) => props,
|
|
15
|
+
variantKeys: preVariantKeys,
|
|
16
|
+
variantMap: preVariantMap,
|
|
17
|
+
merge(recipe) {
|
|
18
|
+
return mergeRecipes(this, recipe)
|
|
19
|
+
},
|
|
20
|
+
splitVariantProps(props) {
|
|
21
|
+
return splitProps(props, preVariantKeys)
|
|
22
|
+
},
|
|
23
|
+
getVariantProps: preFn.getVariantProps,
|
|
24
|
+
})
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const preFn = /* @__PURE__ */ createRecipe('pre', {}, [])
|
|
5
|
+
|
|
6
|
+
const preVariantMap = {}
|
|
7
|
+
|
|
8
|
+
const preVariantKeys = Object.keys(preVariantMap)
|
|
9
|
+
|
|
10
|
+
export const pre = /* @__PURE__ */ Object.assign(memo(preFn.recipeFn), {
|
|
11
|
+
__recipe__: true,
|
|
12
|
+
__name__: 'pre',
|
|
13
|
+
__getCompoundVariantCss__: preFn.__getCompoundVariantCss__,
|
|
14
|
+
raw: (props) => props,
|
|
15
|
+
variantKeys: preVariantKeys,
|
|
16
|
+
variantMap: preVariantMap,
|
|
17
|
+
merge(recipe) {
|
|
18
|
+
return mergeRecipes(this, recipe)
|
|
19
|
+
},
|
|
20
|
+
splitVariantProps(props) {
|
|
21
|
+
return splitProps(props, preVariantKeys)
|
|
22
|
+
},
|
|
23
|
+
getVariantProps: preFn.getVariantProps,
|
|
24
|
+
})
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface RadioVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type RadioVariantMap = {
|
|
10
|
+
[key in keyof RadioVariant]: Array<RadioVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type RadioVariantProps = {
|
|
14
|
+
[key in keyof RadioVariant]?: ConditionalValue<RadioVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface RadioRecipe {
|
|
18
|
+
__type: RadioVariantProps
|
|
19
|
+
(props?: RadioVariantProps): Pretty<Record<"container" | "input" | "indicator", string>>
|
|
20
|
+
raw: (props?: RadioVariantProps) => RadioVariantProps
|
|
21
|
+
variantMap: RadioVariantMap
|
|
22
|
+
variantKeys: Array<keyof RadioVariant>
|
|
23
|
+
splitVariantProps<Props extends RadioVariantProps>(props: Props): [RadioVariantProps, Pretty<DistributiveOmit<Props, keyof RadioVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: RadioVariantProps) => RadioVariantProps
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export declare const radio: RadioRecipe
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.js';
|
|
2
|
+
import { createRecipe } from './create-recipe.js';
|
|
3
|
+
|
|
4
|
+
const radioDefaultVariants = {}
|
|
5
|
+
const radioCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const radioSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"container",
|
|
10
|
+
"radio__container"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"input",
|
|
14
|
+
"radio__input"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"indicator",
|
|
18
|
+
"radio__indicator"
|
|
19
|
+
]
|
|
20
|
+
]
|
|
21
|
+
const radioSlotFns = /* @__PURE__ */ radioSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, radioDefaultVariants, getSlotCompoundVariant(radioCompoundVariants, slotName))])
|
|
22
|
+
|
|
23
|
+
const radioFn = memo((props = {}) => {
|
|
24
|
+
return Object.fromEntries(radioSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
const radioVariantKeys = []
|
|
28
|
+
const getVariantProps = (variants) => ({ ...radioDefaultVariants, ...compact(variants) })
|
|
29
|
+
|
|
30
|
+
export const radio = /* @__PURE__ */ Object.assign(radioFn, {
|
|
31
|
+
__recipe__: false,
|
|
32
|
+
__name__: 'radio',
|
|
33
|
+
raw: (props) => props,
|
|
34
|
+
variantKeys: radioVariantKeys,
|
|
35
|
+
variantMap: {},
|
|
36
|
+
splitVariantProps(props) {
|
|
37
|
+
return splitProps(props, radioVariantKeys)
|
|
38
|
+
},
|
|
39
|
+
getVariantProps
|
|
40
|
+
})
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const radioDefaultVariants = {}
|
|
5
|
+
const radioCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const radioSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"container",
|
|
10
|
+
"radio__container"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"input",
|
|
14
|
+
"radio__input"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"indicator",
|
|
18
|
+
"radio__indicator"
|
|
19
|
+
]
|
|
20
|
+
]
|
|
21
|
+
const radioSlotFns = /* @__PURE__ */ radioSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, radioDefaultVariants, getSlotCompoundVariant(radioCompoundVariants, slotName))])
|
|
22
|
+
|
|
23
|
+
const radioFn = memo((props = {}) => {
|
|
24
|
+
return Object.fromEntries(radioSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
const radioVariantKeys = []
|
|
28
|
+
const getVariantProps = (variants) => ({ ...radioDefaultVariants, ...compact(variants) })
|
|
29
|
+
|
|
30
|
+
export const radio = /* @__PURE__ */ Object.assign(radioFn, {
|
|
31
|
+
__recipe__: false,
|
|
32
|
+
__name__: 'radio',
|
|
33
|
+
raw: (props) => props,
|
|
34
|
+
variantKeys: radioVariantKeys,
|
|
35
|
+
variantMap: {},
|
|
36
|
+
splitVariantProps(props) {
|
|
37
|
+
return splitProps(props, radioVariantKeys)
|
|
38
|
+
},
|
|
39
|
+
getVariantProps
|
|
40
|
+
})
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface SpinnerVariant {
|
|
6
|
+
/**
|
|
7
|
+
* @default "medium"
|
|
8
|
+
*/
|
|
9
|
+
size: "medium" | "small" | "large"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
type SpinnerVariantMap = {
|
|
13
|
+
[key in keyof SpinnerVariant]: Array<SpinnerVariant[key]>
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type SpinnerVariantProps = {
|
|
17
|
+
[key in keyof SpinnerVariant]?: ConditionalValue<SpinnerVariant[key]> | undefined
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface SpinnerRecipe {
|
|
21
|
+
__type: SpinnerVariantProps
|
|
22
|
+
(props?: SpinnerVariantProps): string
|
|
23
|
+
raw: (props?: SpinnerVariantProps) => SpinnerVariantProps
|
|
24
|
+
variantMap: SpinnerVariantMap
|
|
25
|
+
variantKeys: Array<keyof SpinnerVariant>
|
|
26
|
+
splitVariantProps<Props extends SpinnerVariantProps>(props: Props): [SpinnerVariantProps, Pretty<DistributiveOmit<Props, keyof SpinnerVariantProps>>]
|
|
27
|
+
getVariantProps: (props?: SpinnerVariantProps) => SpinnerVariantProps
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
export declare const spinner: SpinnerRecipe
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { memo, splitProps } from '../helpers.js';
|
|
2
|
+
import { createRecipe, mergeRecipes } from './create-recipe.js';
|
|
3
|
+
|
|
4
|
+
const spinnerFn = /* @__PURE__ */ createRecipe('spinner', {
|
|
5
|
+
"size": "medium"
|
|
6
|
+
}, [])
|
|
7
|
+
|
|
8
|
+
const spinnerVariantMap = {
|
|
9
|
+
"size": [
|
|
10
|
+
"medium",
|
|
11
|
+
"small",
|
|
12
|
+
"large"
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const spinnerVariantKeys = Object.keys(spinnerVariantMap)
|
|
17
|
+
|
|
18
|
+
export const spinner = /* @__PURE__ */ Object.assign(memo(spinnerFn.recipeFn), {
|
|
19
|
+
__recipe__: true,
|
|
20
|
+
__name__: 'spinner',
|
|
21
|
+
__getCompoundVariantCss__: spinnerFn.__getCompoundVariantCss__,
|
|
22
|
+
raw: (props) => props,
|
|
23
|
+
variantKeys: spinnerVariantKeys,
|
|
24
|
+
variantMap: spinnerVariantMap,
|
|
25
|
+
merge(recipe) {
|
|
26
|
+
return mergeRecipes(this, recipe)
|
|
27
|
+
},
|
|
28
|
+
splitVariantProps(props) {
|
|
29
|
+
return splitProps(props, spinnerVariantKeys)
|
|
30
|
+
},
|
|
31
|
+
getVariantProps: spinnerFn.getVariantProps,
|
|
32
|
+
})
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const spinnerFn = /* @__PURE__ */ createRecipe('spinner', {
|
|
5
|
+
"size": "medium"
|
|
6
|
+
}, [])
|
|
7
|
+
|
|
8
|
+
const spinnerVariantMap = {
|
|
9
|
+
"size": [
|
|
10
|
+
"medium",
|
|
11
|
+
"small",
|
|
12
|
+
"large"
|
|
13
|
+
]
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const spinnerVariantKeys = Object.keys(spinnerVariantMap)
|
|
17
|
+
|
|
18
|
+
export const spinner = /* @__PURE__ */ Object.assign(memo(spinnerFn.recipeFn), {
|
|
19
|
+
__recipe__: true,
|
|
20
|
+
__name__: 'spinner',
|
|
21
|
+
__getCompoundVariantCss__: spinnerFn.__getCompoundVariantCss__,
|
|
22
|
+
raw: (props) => props,
|
|
23
|
+
variantKeys: spinnerVariantKeys,
|
|
24
|
+
variantMap: spinnerVariantMap,
|
|
25
|
+
merge(recipe) {
|
|
26
|
+
return mergeRecipes(this, recipe)
|
|
27
|
+
},
|
|
28
|
+
splitVariantProps(props) {
|
|
29
|
+
return splitProps(props, spinnerVariantKeys)
|
|
30
|
+
},
|
|
31
|
+
getVariantProps: spinnerFn.getVariantProps,
|
|
32
|
+
})
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface SwitchboxVariant {
|
|
6
|
+
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type SwitchboxVariantMap = {
|
|
10
|
+
[key in keyof SwitchboxVariant]: Array<SwitchboxVariant[key]>
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type SwitchboxVariantProps = {
|
|
14
|
+
[key in keyof SwitchboxVariant]?: ConditionalValue<SwitchboxVariant[key]> | undefined
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface SwitchboxRecipe {
|
|
18
|
+
__type: SwitchboxVariantProps
|
|
19
|
+
(props?: SwitchboxVariantProps): Pretty<Record<"container" | "input" | "indicator", string>>
|
|
20
|
+
raw: (props?: SwitchboxVariantProps) => SwitchboxVariantProps
|
|
21
|
+
variantMap: SwitchboxVariantMap
|
|
22
|
+
variantKeys: Array<keyof SwitchboxVariant>
|
|
23
|
+
splitVariantProps<Props extends SwitchboxVariantProps>(props: Props): [SwitchboxVariantProps, Pretty<DistributiveOmit<Props, keyof SwitchboxVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: SwitchboxVariantProps) => SwitchboxVariantProps
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export declare const switchbox: SwitchboxRecipe
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const switchboxDefaultVariants = {}
|
|
5
|
+
const switchboxCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const switchboxSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"container",
|
|
10
|
+
"switchbox__container"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"input",
|
|
14
|
+
"switchbox__input"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"indicator",
|
|
18
|
+
"switchbox__indicator"
|
|
19
|
+
]
|
|
20
|
+
]
|
|
21
|
+
const switchboxSlotFns = /* @__PURE__ */ switchboxSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, switchboxDefaultVariants, getSlotCompoundVariant(switchboxCompoundVariants, slotName))])
|
|
22
|
+
|
|
23
|
+
const switchboxFn = memo((props = {}) => {
|
|
24
|
+
return Object.fromEntries(switchboxSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
const switchboxVariantKeys = []
|
|
28
|
+
const getVariantProps = (variants) => ({ ...switchboxDefaultVariants, ...compact(variants) })
|
|
29
|
+
|
|
30
|
+
export const switchbox = /* @__PURE__ */ Object.assign(switchboxFn, {
|
|
31
|
+
__recipe__: false,
|
|
32
|
+
__name__: 'switchbox',
|
|
33
|
+
raw: (props) => props,
|
|
34
|
+
variantKeys: switchboxVariantKeys,
|
|
35
|
+
variantMap: {},
|
|
36
|
+
splitVariantProps(props) {
|
|
37
|
+
return splitProps(props, switchboxVariantKeys)
|
|
38
|
+
},
|
|
39
|
+
getVariantProps
|
|
40
|
+
})
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface TextVariant {
|
|
6
|
+
/**
|
|
7
|
+
* @default "body-md"
|
|
8
|
+
*/
|
|
9
|
+
textStyle: "display-lg" | "display-md" | "display-sm" | "display-xs" | "heading-lg" | "heading-md" | "heading-sm" | "heading-xs" | "body-lg" | "body-md" | "body-sm" | "body-xs" | "mono-lg" | "mono-md" | "mono-sm" | "mono-xs"
|
|
10
|
+
family: "heading" | "body" | "mono"
|
|
11
|
+
bold: boolean
|
|
12
|
+
italic: boolean
|
|
13
|
+
underline: boolean
|
|
14
|
+
size: "12" | "14" | "16" | "20" | "24" | "32" | "40" | "48" | "64" | "72" | "80" | "96"
|
|
15
|
+
weight: "light" | "normal" | "medium" | "bold" | "black"
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
type TextVariantMap = {
|
|
19
|
+
[key in keyof TextVariant]: Array<TextVariant[key]>
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export type TextVariantProps = {
|
|
23
|
+
[key in keyof TextVariant]?: ConditionalValue<TextVariant[key]> | undefined
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export interface TextRecipe {
|
|
27
|
+
__type: TextVariantProps
|
|
28
|
+
(props?: TextVariantProps): string
|
|
29
|
+
raw: (props?: TextVariantProps) => TextVariantProps
|
|
30
|
+
variantMap: TextVariantMap
|
|
31
|
+
variantKeys: Array<keyof TextVariant>
|
|
32
|
+
splitVariantProps<Props extends TextVariantProps>(props: Props): [TextVariantProps, Pretty<DistributiveOmit<Props, keyof TextVariantProps>>]
|
|
33
|
+
getVariantProps: (props?: TextVariantProps) => TextVariantProps
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
export declare const text: TextRecipe
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { memo, splitProps } from '../helpers.js';
|
|
2
|
+
import { createRecipe, mergeRecipes } from './create-recipe.js';
|
|
3
|
+
|
|
4
|
+
const textFn = /* @__PURE__ */ createRecipe('text', {
|
|
5
|
+
"textStyle": "body-md"
|
|
6
|
+
}, [])
|
|
7
|
+
|
|
8
|
+
const textVariantMap = {
|
|
9
|
+
"textStyle": [
|
|
10
|
+
"display-lg",
|
|
11
|
+
"display-md",
|
|
12
|
+
"display-sm",
|
|
13
|
+
"display-xs",
|
|
14
|
+
"heading-lg",
|
|
15
|
+
"heading-md",
|
|
16
|
+
"heading-sm",
|
|
17
|
+
"heading-xs",
|
|
18
|
+
"body-lg",
|
|
19
|
+
"body-md",
|
|
20
|
+
"body-sm",
|
|
21
|
+
"body-xs",
|
|
22
|
+
"mono-lg",
|
|
23
|
+
"mono-md",
|
|
24
|
+
"mono-sm",
|
|
25
|
+
"mono-xs"
|
|
26
|
+
],
|
|
27
|
+
"family": [
|
|
28
|
+
"heading",
|
|
29
|
+
"body",
|
|
30
|
+
"mono"
|
|
31
|
+
],
|
|
32
|
+
"bold": [
|
|
33
|
+
"true"
|
|
34
|
+
],
|
|
35
|
+
"italic": [
|
|
36
|
+
"true"
|
|
37
|
+
],
|
|
38
|
+
"underline": [
|
|
39
|
+
"true"
|
|
40
|
+
],
|
|
41
|
+
"size": [
|
|
42
|
+
"12",
|
|
43
|
+
"14",
|
|
44
|
+
"16",
|
|
45
|
+
"20",
|
|
46
|
+
"24",
|
|
47
|
+
"32",
|
|
48
|
+
"40",
|
|
49
|
+
"48",
|
|
50
|
+
"64",
|
|
51
|
+
"72",
|
|
52
|
+
"80",
|
|
53
|
+
"96"
|
|
54
|
+
],
|
|
55
|
+
"weight": [
|
|
56
|
+
"light",
|
|
57
|
+
"normal",
|
|
58
|
+
"medium",
|
|
59
|
+
"bold",
|
|
60
|
+
"black"
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
const textVariantKeys = Object.keys(textVariantMap)
|
|
65
|
+
|
|
66
|
+
export const text = /* @__PURE__ */ Object.assign(memo(textFn.recipeFn), {
|
|
67
|
+
__recipe__: true,
|
|
68
|
+
__name__: 'text',
|
|
69
|
+
__getCompoundVariantCss__: textFn.__getCompoundVariantCss__,
|
|
70
|
+
raw: (props) => props,
|
|
71
|
+
variantKeys: textVariantKeys,
|
|
72
|
+
variantMap: textVariantMap,
|
|
73
|
+
merge(recipe) {
|
|
74
|
+
return mergeRecipes(this, recipe)
|
|
75
|
+
},
|
|
76
|
+
splitVariantProps(props) {
|
|
77
|
+
return splitProps(props, textVariantKeys)
|
|
78
|
+
},
|
|
79
|
+
getVariantProps: textFn.getVariantProps,
|
|
80
|
+
})
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const textFn = /* @__PURE__ */ createRecipe('text', {
|
|
5
|
+
"textStyle": "body-md"
|
|
6
|
+
}, [])
|
|
7
|
+
|
|
8
|
+
const textVariantMap = {
|
|
9
|
+
"textStyle": [
|
|
10
|
+
"display-lg",
|
|
11
|
+
"display-md",
|
|
12
|
+
"display-sm",
|
|
13
|
+
"display-xs",
|
|
14
|
+
"heading-lg",
|
|
15
|
+
"heading-md",
|
|
16
|
+
"heading-sm",
|
|
17
|
+
"heading-xs",
|
|
18
|
+
"body-lg",
|
|
19
|
+
"body-md",
|
|
20
|
+
"body-sm",
|
|
21
|
+
"body-xs",
|
|
22
|
+
"mono-lg",
|
|
23
|
+
"mono-md",
|
|
24
|
+
"mono-sm",
|
|
25
|
+
"mono-xs"
|
|
26
|
+
],
|
|
27
|
+
"family": [
|
|
28
|
+
"heading",
|
|
29
|
+
"body",
|
|
30
|
+
"mono"
|
|
31
|
+
],
|
|
32
|
+
"bold": [
|
|
33
|
+
"true"
|
|
34
|
+
],
|
|
35
|
+
"italic": [
|
|
36
|
+
"true"
|
|
37
|
+
],
|
|
38
|
+
"underline": [
|
|
39
|
+
"true"
|
|
40
|
+
],
|
|
41
|
+
"size": [
|
|
42
|
+
"12",
|
|
43
|
+
"14",
|
|
44
|
+
"16",
|
|
45
|
+
"20",
|
|
46
|
+
"24",
|
|
47
|
+
"32",
|
|
48
|
+
"40",
|
|
49
|
+
"48",
|
|
50
|
+
"64",
|
|
51
|
+
"72",
|
|
52
|
+
"80",
|
|
53
|
+
"96"
|
|
54
|
+
],
|
|
55
|
+
"weight": [
|
|
56
|
+
"light",
|
|
57
|
+
"normal",
|
|
58
|
+
"medium",
|
|
59
|
+
"bold",
|
|
60
|
+
"black"
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
const textVariantKeys = Object.keys(textVariantMap)
|
|
65
|
+
|
|
66
|
+
export const text = /* @__PURE__ */ Object.assign(memo(textFn.recipeFn), {
|
|
67
|
+
__recipe__: true,
|
|
68
|
+
__name__: 'text',
|
|
69
|
+
__getCompoundVariantCss__: textFn.__getCompoundVariantCss__,
|
|
70
|
+
raw: (props) => props,
|
|
71
|
+
variantKeys: textVariantKeys,
|
|
72
|
+
variantMap: textVariantMap,
|
|
73
|
+
merge(recipe) {
|
|
74
|
+
return mergeRecipes(this, recipe)
|
|
75
|
+
},
|
|
76
|
+
splitVariantProps(props) {
|
|
77
|
+
return splitProps(props, textVariantKeys)
|
|
78
|
+
},
|
|
79
|
+
getVariantProps: textFn.getVariantProps,
|
|
80
|
+
})
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
+
|
|
5
|
+
interface TextareaVariant {
|
|
6
|
+
/**
|
|
7
|
+
* @default "autoGrow"
|
|
8
|
+
*/
|
|
9
|
+
variant: "autoGrow" | "stacked" | "internalLabel"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
type TextareaVariantMap = {
|
|
13
|
+
[key in keyof TextareaVariant]: Array<TextareaVariant[key]>
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export type TextareaVariantProps = {
|
|
17
|
+
[key in keyof TextareaVariant]?: ConditionalValue<TextareaVariant[key]> | undefined
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export interface TextareaRecipe {
|
|
21
|
+
__type: TextareaVariantProps
|
|
22
|
+
(props?: TextareaVariantProps): string
|
|
23
|
+
raw: (props?: TextareaVariantProps) => TextareaVariantProps
|
|
24
|
+
variantMap: TextareaVariantMap
|
|
25
|
+
variantKeys: Array<keyof TextareaVariant>
|
|
26
|
+
splitVariantProps<Props extends TextareaVariantProps>(props: Props): [TextareaVariantProps, Pretty<DistributiveOmit<Props, keyof TextareaVariantProps>>]
|
|
27
|
+
getVariantProps: (props?: TextareaVariantProps) => TextareaVariantProps
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
export declare const textarea: TextareaRecipe
|