@luxonis/depthai-pipeline-lib 1.4.13 → 1.5.0
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/dist/panda.css +670 -809
- package/dist/src/styled-system/chunks/src__components__Node.css +1 -0
- package/dist/src/styled-system/chunks/src__components__PipelineCanvas.css +1 -0
- package/dist/src/styled-system/css/conditions.mjs +4 -2
- package/dist/src/styled-system/css/css.d.mts +15 -2
- package/dist/src/styled-system/css/css.mjs +2 -1
- package/dist/src/styled-system/css/cva.d.mts +1 -1
- package/dist/src/styled-system/css/cva.mjs +28 -4
- package/dist/src/styled-system/css/sva.mjs +9 -3
- package/dist/src/styled-system/helpers.mjs +109 -64
- package/dist/src/styled-system/patterns/aspect-ratio.d.mts +1 -1
- package/dist/src/styled-system/patterns/aspect-ratio.mjs +5 -2
- package/dist/src/styled-system/patterns/bleed.d.mts +3 -3
- package/dist/src/styled-system/patterns/bleed.mjs +12 -7
- package/dist/src/styled-system/patterns/box.d.mts +1 -1
- package/dist/src/styled-system/patterns/box.mjs +5 -2
- package/dist/src/styled-system/patterns/center.d.mts +1 -1
- package/dist/src/styled-system/patterns/center.mjs +5 -2
- package/dist/src/styled-system/patterns/circle.d.mts +2 -2
- package/dist/src/styled-system/patterns/circle.mjs +5 -2
- package/dist/src/styled-system/patterns/container.d.mts +1 -1
- package/dist/src/styled-system/patterns/container.mjs +5 -2
- package/dist/src/styled-system/patterns/cq.d.mts +22 -0
- package/dist/src/styled-system/patterns/cq.mjs +21 -0
- package/dist/src/styled-system/patterns/divider.d.mts +1 -1
- package/dist/src/styled-system/patterns/divider.mjs +8 -4
- package/dist/src/styled-system/patterns/flex.d.mts +8 -8
- package/dist/src/styled-system/patterns/flex.mjs +5 -2
- package/dist/src/styled-system/patterns/float.d.mts +1 -1
- package/dist/src/styled-system/patterns/float.mjs +10 -3
- package/dist/src/styled-system/patterns/grid-item.d.mts +1 -1
- package/dist/src/styled-system/patterns/grid-item.mjs +5 -2
- package/dist/src/styled-system/patterns/grid.d.mts +4 -4
- package/dist/src/styled-system/patterns/grid.mjs +12 -5
- package/dist/src/styled-system/patterns/hstack.d.mts +3 -3
- package/dist/src/styled-system/patterns/hstack.mjs +8 -4
- package/dist/src/styled-system/patterns/index.d.mts +2 -2
- package/dist/src/styled-system/patterns/index.mjs +2 -2
- package/dist/src/styled-system/patterns/link-overlay.d.mts +1 -1
- package/dist/src/styled-system/patterns/link-overlay.mjs +5 -5
- package/dist/src/styled-system/patterns/spacer.d.mts +1 -1
- package/dist/src/styled-system/patterns/spacer.mjs +5 -2
- package/dist/src/styled-system/patterns/square.d.mts +2 -2
- package/dist/src/styled-system/patterns/square.mjs +5 -2
- package/dist/src/styled-system/patterns/stack.d.mts +5 -5
- package/dist/src/styled-system/patterns/stack.mjs +8 -4
- package/dist/src/styled-system/patterns/visually-hidden.d.mts +1 -1
- package/dist/src/styled-system/patterns/visually-hidden.mjs +5 -2
- package/dist/src/styled-system/patterns/vstack.d.mts +3 -3
- package/dist/src/styled-system/patterns/vstack.mjs +8 -4
- package/dist/src/styled-system/patterns/wrap.d.mts +6 -6
- package/dist/src/styled-system/patterns/wrap.mjs +5 -2
- package/dist/src/styled-system/recipes/accordion.d.mts +8 -4
- package/dist/src/styled-system/recipes/accordion.mjs +6 -4
- package/dist/src/styled-system/recipes/alert-description.d.mts +8 -4
- package/dist/src/styled-system/recipes/alert-description.mjs +8 -3
- package/dist/src/styled-system/recipes/alert-dialog.d.mts +8 -4
- package/dist/src/styled-system/recipes/alert-dialog.mjs +6 -4
- package/dist/src/styled-system/recipes/alert-title.d.mts +8 -4
- package/dist/src/styled-system/recipes/alert-title.mjs +8 -3
- package/dist/src/styled-system/recipes/alert.d.mts +12 -5
- package/dist/src/styled-system/recipes/alert.mjs +8 -3
- package/dist/src/styled-system/recipes/avatar.d.mts +8 -4
- package/dist/src/styled-system/recipes/avatar.mjs +6 -4
- package/dist/src/styled-system/recipes/badge.d.mts +12 -5
- package/dist/src/styled-system/recipes/badge.mjs +8 -3
- package/dist/src/styled-system/recipes/blockquote.d.mts +8 -4
- package/dist/src/styled-system/recipes/blockquote.mjs +8 -3
- package/dist/src/styled-system/recipes/button.d.mts +15 -5
- package/dist/src/styled-system/recipes/button.mjs +8 -3
- package/dist/src/styled-system/recipes/calendar.d.mts +8 -4
- package/dist/src/styled-system/recipes/calendar.mjs +6 -4
- package/dist/src/styled-system/recipes/card-content.d.mts +8 -4
- package/dist/src/styled-system/recipes/card-content.mjs +8 -3
- package/dist/src/styled-system/recipes/card-description.d.mts +8 -4
- package/dist/src/styled-system/recipes/card-description.mjs +8 -3
- package/dist/src/styled-system/recipes/card-footer.d.mts +8 -4
- package/dist/src/styled-system/recipes/card-footer.mjs +8 -3
- package/dist/src/styled-system/recipes/card-header.d.mts +8 -4
- package/dist/src/styled-system/recipes/card-header.mjs +8 -3
- package/dist/src/styled-system/recipes/card-title.d.mts +8 -4
- package/dist/src/styled-system/recipes/card-title.mjs +8 -3
- package/dist/src/styled-system/recipes/card.d.mts +8 -4
- package/dist/src/styled-system/recipes/card.mjs +8 -3
- package/dist/src/styled-system/recipes/checkbox.d.mts +8 -4
- package/dist/src/styled-system/recipes/checkbox.mjs +6 -4
- package/dist/src/styled-system/recipes/collapsible.d.mts +8 -4
- package/dist/src/styled-system/recipes/collapsible.mjs +6 -4
- package/dist/src/styled-system/recipes/command-dialog.d.mts +8 -4
- package/dist/src/styled-system/recipes/command-dialog.mjs +6 -4
- package/dist/src/styled-system/recipes/command.d.mts +8 -4
- package/dist/src/styled-system/recipes/command.mjs +6 -4
- package/dist/src/styled-system/recipes/context-menu.d.mts +12 -5
- package/dist/src/styled-system/recipes/context-menu.mjs +6 -4
- package/dist/src/styled-system/recipes/create-recipe.mjs +39 -7
- package/dist/src/styled-system/recipes/dialog.d.mts +8 -4
- package/dist/src/styled-system/recipes/dialog.mjs +6 -4
- package/dist/src/styled-system/recipes/dropdown-menu.d.mts +8 -4
- package/dist/src/styled-system/recipes/dropdown-menu.mjs +6 -4
- package/dist/src/styled-system/recipes/form-control.d.mts +8 -4
- package/dist/src/styled-system/recipes/form-control.mjs +8 -3
- package/dist/src/styled-system/recipes/form-description.d.mts +8 -4
- package/dist/src/styled-system/recipes/form-description.mjs +8 -3
- package/dist/src/styled-system/recipes/form-item.d.mts +8 -4
- package/dist/src/styled-system/recipes/form-item.mjs +8 -3
- package/dist/src/styled-system/recipes/form-label.d.mts +8 -4
- package/dist/src/styled-system/recipes/form-label.mjs +8 -3
- package/dist/src/styled-system/recipes/form-message.d.mts +8 -4
- package/dist/src/styled-system/recipes/form-message.mjs +8 -3
- package/dist/src/styled-system/recipes/h1.d.mts +8 -4
- package/dist/src/styled-system/recipes/h1.mjs +8 -3
- package/dist/src/styled-system/recipes/h2.d.mts +8 -4
- package/dist/src/styled-system/recipes/h2.mjs +8 -3
- package/dist/src/styled-system/recipes/h3.d.mts +8 -4
- package/dist/src/styled-system/recipes/h3.mjs +8 -3
- package/dist/src/styled-system/recipes/h4.d.mts +8 -4
- package/dist/src/styled-system/recipes/h4.mjs +8 -3
- package/dist/src/styled-system/recipes/hover-card.d.mts +8 -4
- package/dist/src/styled-system/recipes/hover-card.mjs +6 -4
- package/dist/src/styled-system/recipes/icon.d.mts +24 -5
- package/dist/src/styled-system/recipes/icon.mjs +8 -3
- package/dist/src/styled-system/recipes/inline-code.d.mts +8 -4
- package/dist/src/styled-system/recipes/inline-code.mjs +8 -3
- package/dist/src/styled-system/recipes/input.d.mts +8 -4
- package/dist/src/styled-system/recipes/input.mjs +8 -3
- package/dist/src/styled-system/recipes/label.d.mts +8 -4
- package/dist/src/styled-system/recipes/label.mjs +8 -3
- package/dist/src/styled-system/recipes/large.d.mts +8 -4
- package/dist/src/styled-system/recipes/large.mjs +8 -3
- package/dist/src/styled-system/recipes/lead.d.mts +8 -4
- package/dist/src/styled-system/recipes/lead.mjs +8 -3
- package/dist/src/styled-system/recipes/link.d.mts +8 -4
- package/dist/src/styled-system/recipes/link.mjs +8 -3
- package/dist/src/styled-system/recipes/list.d.mts +8 -4
- package/dist/src/styled-system/recipes/list.mjs +8 -3
- package/dist/src/styled-system/recipes/menubar.d.mts +8 -4
- package/dist/src/styled-system/recipes/menubar.mjs +6 -4
- package/dist/src/styled-system/recipes/muted.d.mts +8 -4
- package/dist/src/styled-system/recipes/muted.mjs +8 -3
- package/dist/src/styled-system/recipes/navigation-menu.d.mts +8 -4
- package/dist/src/styled-system/recipes/navigation-menu.mjs +6 -4
- package/dist/src/styled-system/recipes/p.d.mts +8 -4
- package/dist/src/styled-system/recipes/p.mjs +8 -3
- package/dist/src/styled-system/recipes/popover.d.mts +8 -4
- package/dist/src/styled-system/recipes/popover.mjs +6 -4
- package/dist/src/styled-system/recipes/progress.d.mts +8 -4
- package/dist/src/styled-system/recipes/progress.mjs +6 -4
- package/dist/src/styled-system/recipes/radio-group.d.mts +8 -4
- package/dist/src/styled-system/recipes/radio-group.mjs +6 -4
- package/dist/src/styled-system/recipes/scroll-area.d.mts +8 -4
- package/dist/src/styled-system/recipes/scroll-area.mjs +6 -4
- package/dist/src/styled-system/recipes/select.d.mts +8 -4
- package/dist/src/styled-system/recipes/select.mjs +6 -4
- package/dist/src/styled-system/recipes/separator.d.mts +12 -5
- package/dist/src/styled-system/recipes/separator.mjs +8 -3
- package/dist/src/styled-system/recipes/sheet.d.mts +12 -5
- package/dist/src/styled-system/recipes/sheet.mjs +6 -4
- package/dist/src/styled-system/recipes/skeleton.d.mts +8 -4
- package/dist/src/styled-system/recipes/skeleton.mjs +8 -3
- package/dist/src/styled-system/recipes/slider.d.mts +8 -4
- package/dist/src/styled-system/recipes/slider.mjs +6 -4
- package/dist/src/styled-system/recipes/small.d.mts +8 -4
- package/dist/src/styled-system/recipes/small.mjs +8 -3
- package/dist/src/styled-system/recipes/switch-recipe.d.mts +8 -4
- package/dist/src/styled-system/recipes/switch-recipe.mjs +6 -4
- package/dist/src/styled-system/recipes/table-body.d.mts +8 -4
- package/dist/src/styled-system/recipes/table-body.mjs +8 -3
- package/dist/src/styled-system/recipes/table-caption.d.mts +8 -4
- package/dist/src/styled-system/recipes/table-caption.mjs +8 -3
- package/dist/src/styled-system/recipes/table-cell.d.mts +8 -4
- package/dist/src/styled-system/recipes/table-cell.mjs +8 -3
- package/dist/src/styled-system/recipes/table-container.d.mts +8 -4
- package/dist/src/styled-system/recipes/table-container.mjs +8 -3
- package/dist/src/styled-system/recipes/table-footer.d.mts +8 -4
- package/dist/src/styled-system/recipes/table-footer.mjs +8 -3
- package/dist/src/styled-system/recipes/table-head.d.mts +8 -4
- package/dist/src/styled-system/recipes/table-head.mjs +8 -3
- package/dist/src/styled-system/recipes/table-header.d.mts +8 -4
- package/dist/src/styled-system/recipes/table-header.mjs +8 -3
- package/dist/src/styled-system/recipes/table-row.d.mts +8 -4
- package/dist/src/styled-system/recipes/table-row.mjs +8 -3
- package/dist/src/styled-system/recipes/table.d.mts +8 -4
- package/dist/src/styled-system/recipes/table.mjs +8 -3
- package/dist/src/styled-system/recipes/tabs.d.mts +8 -4
- package/dist/src/styled-system/recipes/tabs.mjs +6 -4
- package/dist/src/styled-system/recipes/textarea.d.mts +8 -4
- package/dist/src/styled-system/recipes/textarea.mjs +8 -3
- package/dist/src/styled-system/recipes/toast-viewport.d.mts +8 -4
- package/dist/src/styled-system/recipes/toast-viewport.mjs +8 -3
- package/dist/src/styled-system/recipes/toast.d.mts +12 -5
- package/dist/src/styled-system/recipes/toast.mjs +6 -4
- package/dist/src/styled-system/recipes/toggle.d.mts +15 -5
- package/dist/src/styled-system/recipes/toggle.mjs +8 -3
- package/dist/src/styled-system/recipes/tooltip.d.mts +8 -4
- package/dist/src/styled-system/recipes/tooltip.mjs +6 -4
- package/dist/src/styled-system/recipes/typography-table-container.d.mts +8 -4
- package/dist/src/styled-system/recipes/typography-table-container.mjs +8 -3
- package/dist/src/styled-system/recipes/typography-table.d.mts +8 -4
- package/dist/src/styled-system/recipes/typography-table.mjs +8 -3
- package/dist/src/styled-system/tokens/index.mjs +271 -219
- package/dist/src/styled-system/tokens/tokens.d.mts +18 -18
- package/dist/src/styled-system/types/composition.d.mts +70 -17
- package/dist/src/styled-system/types/conditions.d.mts +105 -49
- package/dist/src/styled-system/types/csstype.d.mts +1270 -721
- package/dist/src/styled-system/types/global.d.mts +1 -0
- package/dist/src/styled-system/types/index.d.mts +1 -2
- package/dist/src/styled-system/types/parts.d.mts +3 -1
- package/dist/src/styled-system/types/pattern.d.mts +20 -3
- package/dist/src/styled-system/types/prop-type.d.mts +59 -135
- package/dist/src/styled-system/types/recipe.d.mts +42 -9
- package/dist/src/styled-system/types/selectors.d.mts +1 -1
- package/dist/src/styled-system/types/static-css.d.mts +56 -0
- package/dist/src/styled-system/types/style-props.d.mts +7540 -678
- package/dist/src/styled-system/types/system-types.d.mts +128 -20
- package/package.json +8 -8
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
-
import type { Pretty } from '../types/
|
|
4
|
-
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types.d.mts';
|
|
5
4
|
|
|
6
5
|
interface ContextMenuVariant {
|
|
7
|
-
|
|
6
|
+
/**
|
|
7
|
+
* @default false
|
|
8
|
+
*/
|
|
9
|
+
inset: boolean
|
|
8
10
|
}
|
|
9
11
|
|
|
10
12
|
type ContextMenuVariantMap = {
|
|
@@ -12,7 +14,7 @@ type ContextMenuVariantMap = {
|
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
export type ContextMenuVariantProps = {
|
|
15
|
-
[key in keyof ContextMenuVariant]?: ConditionalValue<ContextMenuVariant[key]>
|
|
17
|
+
[key in keyof ContextMenuVariant]?: ConditionalValue<ContextMenuVariant[key]> | undefined
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
export interface ContextMenuRecipe {
|
|
@@ -22,7 +24,12 @@ export interface ContextMenuRecipe {
|
|
|
22
24
|
variantMap: ContextMenuVariantMap
|
|
23
25
|
variantKeys: Array<keyof ContextMenuVariant>
|
|
24
26
|
splitVariantProps<Props extends ContextMenuVariantProps>(props: Props): [ContextMenuVariantProps, Pretty<DistributiveOmit<Props, keyof ContextMenuVariantProps>>]
|
|
27
|
+
getVariantProps: (props?: ContextMenuVariantProps) => ContextMenuVariantProps
|
|
25
28
|
}
|
|
26
29
|
|
|
27
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* Styles for the ContextMenu component
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
*/
|
|
28
35
|
export declare const contextMenu: ContextMenuRecipe
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
2
|
import { createRecipe } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const contextMenuDefaultVariants = {
|
|
@@ -74,13 +74,14 @@ const contextMenuSlotNames = [
|
|
|
74
74
|
]
|
|
75
75
|
const contextMenuSlotFns = /* @__PURE__ */ contextMenuSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, contextMenuDefaultVariants, getSlotCompoundVariant(contextMenuCompoundVariants, slotName))])
|
|
76
76
|
|
|
77
|
-
const contextMenuFn = (props = {}) => {
|
|
78
|
-
return Object.fromEntries(contextMenuSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
79
|
-
}
|
|
77
|
+
const contextMenuFn = memo((props = {}) => {
|
|
78
|
+
return Object.fromEntries(contextMenuSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
79
|
+
})
|
|
80
80
|
|
|
81
81
|
const contextMenuVariantKeys = [
|
|
82
82
|
"inset"
|
|
83
83
|
]
|
|
84
|
+
const getVariantProps = (variants) => ({ ...contextMenuDefaultVariants, ...compact(variants) })
|
|
84
85
|
|
|
85
86
|
export const contextMenu = /* @__PURE__ */ Object.assign(contextMenuFn, {
|
|
86
87
|
__recipe__: false,
|
|
@@ -95,4 +96,5 @@ export const contextMenu = /* @__PURE__ */ Object.assign(contextMenuFn, {
|
|
|
95
96
|
splitVariantProps(props) {
|
|
96
97
|
return splitProps(props, contextMenuVariantKeys)
|
|
97
98
|
},
|
|
99
|
+
getVariantProps
|
|
98
100
|
})
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import { finalizeConditions, sortConditions } from '../css/conditions.mjs';
|
|
1
2
|
import { css } from '../css/css.mjs';
|
|
2
3
|
import { assertCompoundVariant, getCompoundVariantCss } from '../css/cva.mjs';
|
|
3
4
|
import { cx } from '../css/cx.mjs';
|
|
4
|
-
import { compact, createCss, withoutSpace } from '../helpers.mjs';
|
|
5
|
+
import { compact, createCss, splitProps, uniq, withoutSpace } from '../helpers.mjs';
|
|
5
6
|
|
|
6
7
|
export const createRecipe = (name, defaultVariants, compoundVariants) => {
|
|
7
|
-
const
|
|
8
|
+
const getVariantProps = (variants) => {
|
|
8
9
|
return {
|
|
9
10
|
[name]: '__ignore__',
|
|
10
11
|
...defaultVariants,
|
|
@@ -26,13 +27,19 @@ export const createRecipe = (name, defaultVariants, compoundVariants) => {
|
|
|
26
27
|
|
|
27
28
|
const recipeCss = createCss({
|
|
28
29
|
|
|
30
|
+
conditions: {
|
|
31
|
+
shift: sortConditions,
|
|
32
|
+
finalize: finalizeConditions,
|
|
33
|
+
breakpoints: { keys: ["base","sm","md","lg","2lg","xl","2xl"] }
|
|
34
|
+
},
|
|
29
35
|
utility: {
|
|
30
36
|
|
|
37
|
+
toHash: (path, hashFn) => hashFn(path.join(":")),
|
|
31
38
|
transform,
|
|
32
39
|
}
|
|
33
40
|
})
|
|
34
41
|
|
|
35
|
-
const recipeStyles =
|
|
42
|
+
const recipeStyles = getVariantProps(variants)
|
|
36
43
|
|
|
37
44
|
if (withCompoundVariants) {
|
|
38
45
|
const compoundVariantStyles = getCompoundVariantCss(compoundVariants, recipeStyles)
|
|
@@ -42,9 +49,34 @@ export const createRecipe = (name, defaultVariants, compoundVariants) => {
|
|
|
42
49
|
return recipeCss(recipeStyles)
|
|
43
50
|
}
|
|
44
51
|
|
|
45
|
-
return
|
|
52
|
+
return {
|
|
53
|
+
recipeFn,
|
|
54
|
+
getVariantProps,
|
|
46
55
|
__getCompoundVariantCss__: (variants) => {
|
|
47
|
-
return getCompoundVariantCss(compoundVariants,
|
|
56
|
+
return getCompoundVariantCss(compoundVariants, getVariantProps(variants));
|
|
48
57
|
},
|
|
49
|
-
}
|
|
50
|
-
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export const mergeRecipes = (recipeA, recipeB) => {
|
|
62
|
+
if (recipeA && !recipeB) return recipeA
|
|
63
|
+
if (!recipeA && recipeB) return recipeB
|
|
64
|
+
|
|
65
|
+
const recipeFn = (...args) => cx(recipeA(...args), recipeB(...args))
|
|
66
|
+
const variantKeys = uniq(recipeA.variantKeys, recipeB.variantKeys)
|
|
67
|
+
const variantMap = variantKeys.reduce((acc, key) => {
|
|
68
|
+
acc[key] = uniq(recipeA.variantMap[key], recipeB.variantMap[key])
|
|
69
|
+
return acc
|
|
70
|
+
}, {})
|
|
71
|
+
|
|
72
|
+
return Object.assign(recipeFn, {
|
|
73
|
+
__recipe__: true,
|
|
74
|
+
__name__: `${recipeA.__name__} ${recipeB.__name__}`,
|
|
75
|
+
raw: (props) => props,
|
|
76
|
+
variantKeys,
|
|
77
|
+
variantMap,
|
|
78
|
+
splitVariantProps(props) {
|
|
79
|
+
return splitProps(props, variantKeys)
|
|
80
|
+
},
|
|
81
|
+
})
|
|
82
|
+
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
-
import type { Pretty } from '../types/
|
|
4
|
-
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types.d.mts';
|
|
5
4
|
|
|
6
5
|
interface DialogVariant {
|
|
7
6
|
|
|
@@ -12,7 +11,7 @@ type DialogVariantMap = {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export type DialogVariantProps = {
|
|
15
|
-
[key in keyof DialogVariant]?: ConditionalValue<DialogVariant[key]>
|
|
14
|
+
[key in keyof DialogVariant]?: ConditionalValue<DialogVariant[key]> | undefined
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export interface DialogRecipe {
|
|
@@ -22,7 +21,12 @@ export interface DialogRecipe {
|
|
|
22
21
|
variantMap: DialogVariantMap
|
|
23
22
|
variantKeys: Array<keyof DialogVariant>
|
|
24
23
|
splitVariantProps<Props extends DialogVariantProps>(props: Props): [DialogVariantProps, Pretty<DistributiveOmit<Props, keyof DialogVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: DialogVariantProps) => DialogVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the Dialog component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const dialog: DialogRecipe
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
2
|
import { createRecipe } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const dialogDefaultVariants = {}
|
|
@@ -48,11 +48,12 @@ const dialogSlotNames = [
|
|
|
48
48
|
]
|
|
49
49
|
const dialogSlotFns = /* @__PURE__ */ dialogSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, dialogDefaultVariants, getSlotCompoundVariant(dialogCompoundVariants, slotName))])
|
|
50
50
|
|
|
51
|
-
const dialogFn = (props = {}) => {
|
|
52
|
-
return Object.fromEntries(dialogSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
53
|
-
}
|
|
51
|
+
const dialogFn = memo((props = {}) => {
|
|
52
|
+
return Object.fromEntries(dialogSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
53
|
+
})
|
|
54
54
|
|
|
55
55
|
const dialogVariantKeys = []
|
|
56
|
+
const getVariantProps = (variants) => ({ ...dialogDefaultVariants, ...compact(variants) })
|
|
56
57
|
|
|
57
58
|
export const dialog = /* @__PURE__ */ Object.assign(dialogFn, {
|
|
58
59
|
__recipe__: false,
|
|
@@ -63,4 +64,5 @@ export const dialog = /* @__PURE__ */ Object.assign(dialogFn, {
|
|
|
63
64
|
splitVariantProps(props) {
|
|
64
65
|
return splitProps(props, dialogVariantKeys)
|
|
65
66
|
},
|
|
67
|
+
getVariantProps
|
|
66
68
|
})
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
-
import type { Pretty } from '../types/
|
|
4
|
-
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types.d.mts';
|
|
5
4
|
|
|
6
5
|
interface DropdownMenuVariant {
|
|
7
6
|
|
|
@@ -12,7 +11,7 @@ type DropdownMenuVariantMap = {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export type DropdownMenuVariantProps = {
|
|
15
|
-
[key in keyof DropdownMenuVariant]?: ConditionalValue<DropdownMenuVariant[key]>
|
|
14
|
+
[key in keyof DropdownMenuVariant]?: ConditionalValue<DropdownMenuVariant[key]> | undefined
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export interface DropdownMenuRecipe {
|
|
@@ -22,7 +21,12 @@ export interface DropdownMenuRecipe {
|
|
|
22
21
|
variantMap: DropdownMenuVariantMap
|
|
23
22
|
variantKeys: Array<keyof DropdownMenuVariant>
|
|
24
23
|
splitVariantProps<Props extends DropdownMenuVariantProps>(props: Props): [DropdownMenuVariantProps, Pretty<DistributiveOmit<Props, keyof DropdownMenuVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: DropdownMenuVariantProps) => DropdownMenuVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the DropdownMenu component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const dropdownMenu: DropdownMenuRecipe
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
2
|
import { createRecipe } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const dropdownMenuDefaultVariants = {}
|
|
@@ -72,11 +72,12 @@ const dropdownMenuSlotNames = [
|
|
|
72
72
|
]
|
|
73
73
|
const dropdownMenuSlotFns = /* @__PURE__ */ dropdownMenuSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, dropdownMenuDefaultVariants, getSlotCompoundVariant(dropdownMenuCompoundVariants, slotName))])
|
|
74
74
|
|
|
75
|
-
const dropdownMenuFn = (props = {}) => {
|
|
76
|
-
return Object.fromEntries(dropdownMenuSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
77
|
-
}
|
|
75
|
+
const dropdownMenuFn = memo((props = {}) => {
|
|
76
|
+
return Object.fromEntries(dropdownMenuSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
77
|
+
})
|
|
78
78
|
|
|
79
79
|
const dropdownMenuVariantKeys = []
|
|
80
|
+
const getVariantProps = (variants) => ({ ...dropdownMenuDefaultVariants, ...compact(variants) })
|
|
80
81
|
|
|
81
82
|
export const dropdownMenu = /* @__PURE__ */ Object.assign(dropdownMenuFn, {
|
|
82
83
|
__recipe__: false,
|
|
@@ -87,4 +88,5 @@ export const dropdownMenu = /* @__PURE__ */ Object.assign(dropdownMenuFn, {
|
|
|
87
88
|
splitVariantProps(props) {
|
|
88
89
|
return splitProps(props, dropdownMenuVariantKeys)
|
|
89
90
|
},
|
|
91
|
+
getVariantProps
|
|
90
92
|
})
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
-
import type { Pretty } from '../types/
|
|
4
|
-
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types.d.mts';
|
|
5
4
|
|
|
6
5
|
interface FormControlVariant {
|
|
7
6
|
|
|
@@ -12,7 +11,7 @@ type FormControlVariantMap = {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export type FormControlVariantProps = {
|
|
15
|
-
[key in keyof FormControlVariant]?: ConditionalValue<FormControlVariant[key]>
|
|
14
|
+
[key in keyof FormControlVariant]?: ConditionalValue<FormControlVariant[key]> | undefined
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export interface FormControlRecipe {
|
|
@@ -22,7 +21,12 @@ export interface FormControlRecipe {
|
|
|
22
21
|
variantMap: FormControlVariantMap
|
|
23
22
|
variantKeys: Array<keyof FormControlVariant>
|
|
24
23
|
splitVariantProps<Props extends FormControlVariantProps>(props: Props): [FormControlVariantProps, Pretty<DistributiveOmit<Props, keyof FormControlVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: FormControlVariantProps) => FormControlVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the FormControl component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const formControl: FormControlRecipe
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { splitProps } from '../helpers.mjs';
|
|
2
|
-
import { createRecipe } from './create-recipe.mjs';
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const formControlFn = /* @__PURE__ */ createRecipe('formControl', {}, [])
|
|
5
5
|
|
|
@@ -7,13 +7,18 @@ const formControlVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const formControlVariantKeys = Object.keys(formControlVariantMap)
|
|
9
9
|
|
|
10
|
-
export const formControl = /* @__PURE__ */ Object.assign(formControlFn, {
|
|
10
|
+
export const formControl = /* @__PURE__ */ Object.assign(memo(formControlFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'formControl',
|
|
13
|
+
__getCompoundVariantCss__: formControlFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: formControlVariantKeys,
|
|
15
16
|
variantMap: formControlVariantMap,
|
|
17
|
+
merge(recipe) {
|
|
18
|
+
return mergeRecipes(this, recipe)
|
|
19
|
+
},
|
|
16
20
|
splitVariantProps(props) {
|
|
17
21
|
return splitProps(props, formControlVariantKeys)
|
|
18
22
|
},
|
|
23
|
+
getVariantProps: formControlFn.getVariantProps,
|
|
19
24
|
})
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
-
import type { Pretty } from '../types/
|
|
4
|
-
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types.d.mts';
|
|
5
4
|
|
|
6
5
|
interface FormDescriptionVariant {
|
|
7
6
|
|
|
@@ -12,7 +11,7 @@ type FormDescriptionVariantMap = {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export type FormDescriptionVariantProps = {
|
|
15
|
-
[key in keyof FormDescriptionVariant]?: ConditionalValue<FormDescriptionVariant[key]>
|
|
14
|
+
[key in keyof FormDescriptionVariant]?: ConditionalValue<FormDescriptionVariant[key]> | undefined
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export interface FormDescriptionRecipe {
|
|
@@ -22,7 +21,12 @@ export interface FormDescriptionRecipe {
|
|
|
22
21
|
variantMap: FormDescriptionVariantMap
|
|
23
22
|
variantKeys: Array<keyof FormDescriptionVariant>
|
|
24
23
|
splitVariantProps<Props extends FormDescriptionVariantProps>(props: Props): [FormDescriptionVariantProps, Pretty<DistributiveOmit<Props, keyof FormDescriptionVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: FormDescriptionVariantProps) => FormDescriptionVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the FormDescription component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const formDescription: FormDescriptionRecipe
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { splitProps } from '../helpers.mjs';
|
|
2
|
-
import { createRecipe } from './create-recipe.mjs';
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const formDescriptionFn = /* @__PURE__ */ createRecipe('formDescription', {}, [])
|
|
5
5
|
|
|
@@ -7,13 +7,18 @@ const formDescriptionVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const formDescriptionVariantKeys = Object.keys(formDescriptionVariantMap)
|
|
9
9
|
|
|
10
|
-
export const formDescription = /* @__PURE__ */ Object.assign(formDescriptionFn, {
|
|
10
|
+
export const formDescription = /* @__PURE__ */ Object.assign(memo(formDescriptionFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'formDescription',
|
|
13
|
+
__getCompoundVariantCss__: formDescriptionFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: formDescriptionVariantKeys,
|
|
15
16
|
variantMap: formDescriptionVariantMap,
|
|
17
|
+
merge(recipe) {
|
|
18
|
+
return mergeRecipes(this, recipe)
|
|
19
|
+
},
|
|
16
20
|
splitVariantProps(props) {
|
|
17
21
|
return splitProps(props, formDescriptionVariantKeys)
|
|
18
22
|
},
|
|
23
|
+
getVariantProps: formDescriptionFn.getVariantProps,
|
|
19
24
|
})
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
-
import type { Pretty } from '../types/
|
|
4
|
-
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types.d.mts';
|
|
5
4
|
|
|
6
5
|
interface FormItemVariant {
|
|
7
6
|
|
|
@@ -12,7 +11,7 @@ type FormItemVariantMap = {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export type FormItemVariantProps = {
|
|
15
|
-
[key in keyof FormItemVariant]?: ConditionalValue<FormItemVariant[key]>
|
|
14
|
+
[key in keyof FormItemVariant]?: ConditionalValue<FormItemVariant[key]> | undefined
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export interface FormItemRecipe {
|
|
@@ -22,7 +21,12 @@ export interface FormItemRecipe {
|
|
|
22
21
|
variantMap: FormItemVariantMap
|
|
23
22
|
variantKeys: Array<keyof FormItemVariant>
|
|
24
23
|
splitVariantProps<Props extends FormItemVariantProps>(props: Props): [FormItemVariantProps, Pretty<DistributiveOmit<Props, keyof FormItemVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: FormItemVariantProps) => FormItemVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the FormItem component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const formItem: FormItemRecipe
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { splitProps } from '../helpers.mjs';
|
|
2
|
-
import { createRecipe } from './create-recipe.mjs';
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const formItemFn = /* @__PURE__ */ createRecipe('formItem', {}, [])
|
|
5
5
|
|
|
@@ -7,13 +7,18 @@ const formItemVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const formItemVariantKeys = Object.keys(formItemVariantMap)
|
|
9
9
|
|
|
10
|
-
export const formItem = /* @__PURE__ */ Object.assign(formItemFn, {
|
|
10
|
+
export const formItem = /* @__PURE__ */ Object.assign(memo(formItemFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'formItem',
|
|
13
|
+
__getCompoundVariantCss__: formItemFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: formItemVariantKeys,
|
|
15
16
|
variantMap: formItemVariantMap,
|
|
17
|
+
merge(recipe) {
|
|
18
|
+
return mergeRecipes(this, recipe)
|
|
19
|
+
},
|
|
16
20
|
splitVariantProps(props) {
|
|
17
21
|
return splitProps(props, formItemVariantKeys)
|
|
18
22
|
},
|
|
23
|
+
getVariantProps: formItemFn.getVariantProps,
|
|
19
24
|
})
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
-
import type { Pretty } from '../types/
|
|
4
|
-
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types.d.mts';
|
|
5
4
|
|
|
6
5
|
interface FormLabelVariant {
|
|
7
6
|
|
|
@@ -12,7 +11,7 @@ type FormLabelVariantMap = {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export type FormLabelVariantProps = {
|
|
15
|
-
[key in keyof FormLabelVariant]?: ConditionalValue<FormLabelVariant[key]>
|
|
14
|
+
[key in keyof FormLabelVariant]?: ConditionalValue<FormLabelVariant[key]> | undefined
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export interface FormLabelRecipe {
|
|
@@ -22,7 +21,12 @@ export interface FormLabelRecipe {
|
|
|
22
21
|
variantMap: FormLabelVariantMap
|
|
23
22
|
variantKeys: Array<keyof FormLabelVariant>
|
|
24
23
|
splitVariantProps<Props extends FormLabelVariantProps>(props: Props): [FormLabelVariantProps, Pretty<DistributiveOmit<Props, keyof FormLabelVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: FormLabelVariantProps) => FormLabelVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the FormLabel component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const formLabel: FormLabelRecipe
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { splitProps } from '../helpers.mjs';
|
|
2
|
-
import { createRecipe } from './create-recipe.mjs';
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const formLabelFn = /* @__PURE__ */ createRecipe('formLabel', {}, [])
|
|
5
5
|
|
|
@@ -7,13 +7,18 @@ const formLabelVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const formLabelVariantKeys = Object.keys(formLabelVariantMap)
|
|
9
9
|
|
|
10
|
-
export const formLabel = /* @__PURE__ */ Object.assign(formLabelFn, {
|
|
10
|
+
export const formLabel = /* @__PURE__ */ Object.assign(memo(formLabelFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'formLabel',
|
|
13
|
+
__getCompoundVariantCss__: formLabelFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: formLabelVariantKeys,
|
|
15
16
|
variantMap: formLabelVariantMap,
|
|
17
|
+
merge(recipe) {
|
|
18
|
+
return mergeRecipes(this, recipe)
|
|
19
|
+
},
|
|
16
20
|
splitVariantProps(props) {
|
|
17
21
|
return splitProps(props, formLabelVariantKeys)
|
|
18
22
|
},
|
|
23
|
+
getVariantProps: formLabelFn.getVariantProps,
|
|
19
24
|
})
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
-
import type { Pretty } from '../types/
|
|
4
|
-
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types.d.mts';
|
|
5
4
|
|
|
6
5
|
interface FormMessageVariant {
|
|
7
6
|
|
|
@@ -12,7 +11,7 @@ type FormMessageVariantMap = {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export type FormMessageVariantProps = {
|
|
15
|
-
[key in keyof FormMessageVariant]?: ConditionalValue<FormMessageVariant[key]>
|
|
14
|
+
[key in keyof FormMessageVariant]?: ConditionalValue<FormMessageVariant[key]> | undefined
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export interface FormMessageRecipe {
|
|
@@ -22,7 +21,12 @@ export interface FormMessageRecipe {
|
|
|
22
21
|
variantMap: FormMessageVariantMap
|
|
23
22
|
variantKeys: Array<keyof FormMessageVariant>
|
|
24
23
|
splitVariantProps<Props extends FormMessageVariantProps>(props: Props): [FormMessageVariantProps, Pretty<DistributiveOmit<Props, keyof FormMessageVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: FormMessageVariantProps) => FormMessageVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the FormMessage component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const formMessage: FormMessageRecipe
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { splitProps } from '../helpers.mjs';
|
|
2
|
-
import { createRecipe } from './create-recipe.mjs';
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const formMessageFn = /* @__PURE__ */ createRecipe('formMessage', {}, [])
|
|
5
5
|
|
|
@@ -7,13 +7,18 @@ const formMessageVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const formMessageVariantKeys = Object.keys(formMessageVariantMap)
|
|
9
9
|
|
|
10
|
-
export const formMessage = /* @__PURE__ */ Object.assign(formMessageFn, {
|
|
10
|
+
export const formMessage = /* @__PURE__ */ Object.assign(memo(formMessageFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'formMessage',
|
|
13
|
+
__getCompoundVariantCss__: formMessageFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: formMessageVariantKeys,
|
|
15
16
|
variantMap: formMessageVariantMap,
|
|
17
|
+
merge(recipe) {
|
|
18
|
+
return mergeRecipes(this, recipe)
|
|
19
|
+
},
|
|
16
20
|
splitVariantProps(props) {
|
|
17
21
|
return splitProps(props, formMessageVariantKeys)
|
|
18
22
|
},
|
|
23
|
+
getVariantProps: formMessageFn.getVariantProps,
|
|
19
24
|
})
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
-
import type { Pretty } from '../types/
|
|
4
|
-
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types.d.mts';
|
|
5
4
|
|
|
6
5
|
interface H1Variant {
|
|
7
6
|
|
|
@@ -12,7 +11,7 @@ type H1VariantMap = {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export type H1VariantProps = {
|
|
15
|
-
[key in keyof H1Variant]?: ConditionalValue<H1Variant[key]>
|
|
14
|
+
[key in keyof H1Variant]?: ConditionalValue<H1Variant[key]> | undefined
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export interface H1Recipe {
|
|
@@ -22,7 +21,12 @@ export interface H1Recipe {
|
|
|
22
21
|
variantMap: H1VariantMap
|
|
23
22
|
variantKeys: Array<keyof H1Variant>
|
|
24
23
|
splitVariantProps<Props extends H1VariantProps>(props: Props): [H1VariantProps, Pretty<DistributiveOmit<Props, keyof H1VariantProps>>]
|
|
24
|
+
getVariantProps: (props?: H1VariantProps) => H1VariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Typography - h1 style
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const h1: H1Recipe
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { splitProps } from '../helpers.mjs';
|
|
2
|
-
import { createRecipe } from './create-recipe.mjs';
|
|
1
|
+
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
3
|
|
|
4
4
|
const h1Fn = /* @__PURE__ */ createRecipe('h1', {}, [])
|
|
5
5
|
|
|
@@ -7,13 +7,18 @@ const h1VariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const h1VariantKeys = Object.keys(h1VariantMap)
|
|
9
9
|
|
|
10
|
-
export const h1 = /* @__PURE__ */ Object.assign(h1Fn, {
|
|
10
|
+
export const h1 = /* @__PURE__ */ Object.assign(memo(h1Fn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'h1',
|
|
13
|
+
__getCompoundVariantCss__: h1Fn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: h1VariantKeys,
|
|
15
16
|
variantMap: h1VariantMap,
|
|
17
|
+
merge(recipe) {
|
|
18
|
+
return mergeRecipes(this, recipe)
|
|
19
|
+
},
|
|
16
20
|
splitVariantProps(props) {
|
|
17
21
|
return splitProps(props, h1VariantKeys)
|
|
18
22
|
},
|
|
23
|
+
getVariantProps: h1Fn.getVariantProps,
|
|
19
24
|
})
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
-
import type { Pretty } from '../types/
|
|
4
|
-
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
3
|
+
import type { DistributiveOmit, Pretty } from '../types/system-types.d.mts';
|
|
5
4
|
|
|
6
5
|
interface H2Variant {
|
|
7
6
|
|
|
@@ -12,7 +11,7 @@ type H2VariantMap = {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export type H2VariantProps = {
|
|
15
|
-
[key in keyof H2Variant]?: ConditionalValue<H2Variant[key]>
|
|
14
|
+
[key in keyof H2Variant]?: ConditionalValue<H2Variant[key]> | undefined
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export interface H2Recipe {
|
|
@@ -22,7 +21,12 @@ export interface H2Recipe {
|
|
|
22
21
|
variantMap: H2VariantMap
|
|
23
22
|
variantKeys: Array<keyof H2Variant>
|
|
24
23
|
splitVariantProps<Props extends H2VariantProps>(props: Props): [H2VariantProps, Pretty<DistributiveOmit<Props, keyof H2VariantProps>>]
|
|
24
|
+
getVariantProps: (props?: H2VariantProps) => H2VariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Typography - h2 style
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const h2: H2Recipe
|