@luxonis/depthai-pipeline-lib 3.4.0-rc.2 → 3.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/index.css +1696 -2
- package/dist/src/components/BridgeEdge.js +3 -13
- package/dist/src/components/Node.js +18 -65
- package/dist/src/components/PipelineCanvas.js +1 -2
- package/dist/src/components/PipelineLegend.d.ts +1 -1
- package/dist/src/components/PipelineLegend.js +10 -24
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/package.json +3 -5
- package/dist/panda.css +0 -1342
- package/dist/src/styled-system/css/conditions.mjs +0 -36
- package/dist/src/styled-system/css/css.d.mts +0 -22
- package/dist/src/styled-system/css/css.mjs +0 -45
- package/dist/src/styled-system/css/cva.d.mts +0 -6
- package/dist/src/styled-system/css/cva.mjs +0 -87
- package/dist/src/styled-system/css/cx.d.mts +0 -5
- package/dist/src/styled-system/css/cx.mjs +0 -15
- package/dist/src/styled-system/css/index.d.mts +0 -5
- package/dist/src/styled-system/css/index.mjs +0 -4
- package/dist/src/styled-system/css/sva.d.mts +0 -4
- package/dist/src/styled-system/css/sva.mjs +0 -41
- package/dist/src/styled-system/helpers.mjs +0 -327
- package/dist/src/styled-system/patterns/aspect-ratio.d.mts +0 -21
- package/dist/src/styled-system/patterns/aspect-ratio.mjs +0 -38
- package/dist/src/styled-system/patterns/bleed.d.mts +0 -22
- package/dist/src/styled-system/patterns/bleed.mjs +0 -24
- package/dist/src/styled-system/patterns/box.d.mts +0 -21
- package/dist/src/styled-system/patterns/box.mjs +0 -15
- package/dist/src/styled-system/patterns/center.d.mts +0 -21
- package/dist/src/styled-system/patterns/center.mjs +0 -21
- package/dist/src/styled-system/patterns/circle.d.mts +0 -21
- package/dist/src/styled-system/patterns/circle.mjs +0 -25
- package/dist/src/styled-system/patterns/container.d.mts +0 -21
- package/dist/src/styled-system/patterns/container.mjs +0 -21
- package/dist/src/styled-system/patterns/cq.d.mts +0 -22
- package/dist/src/styled-system/patterns/cq.mjs +0 -21
- package/dist/src/styled-system/patterns/divider.d.mts +0 -23
- package/dist/src/styled-system/patterns/divider.mjs +0 -25
- package/dist/src/styled-system/patterns/flex.d.mts +0 -27
- package/dist/src/styled-system/patterns/flex.mjs +0 -26
- package/dist/src/styled-system/patterns/float.d.mts +0 -24
- package/dist/src/styled-system/patterns/float.mjs +0 -52
- package/dist/src/styled-system/patterns/grid-item.d.mts +0 -26
- package/dist/src/styled-system/patterns/grid-item.mjs +0 -25
- package/dist/src/styled-system/patterns/grid.d.mts +0 -25
- package/dist/src/styled-system/patterns/grid.mjs +0 -27
- package/dist/src/styled-system/patterns/hstack.d.mts +0 -22
- package/dist/src/styled-system/patterns/hstack.mjs +0 -24
- package/dist/src/styled-system/patterns/index.d.mts +0 -21
- package/dist/src/styled-system/patterns/index.mjs +0 -20
- package/dist/src/styled-system/patterns/link-overlay.d.mts +0 -21
- package/dist/src/styled-system/patterns/link-overlay.mjs +0 -24
- package/dist/src/styled-system/patterns/spacer.d.mts +0 -21
- package/dist/src/styled-system/patterns/spacer.mjs +0 -21
- package/dist/src/styled-system/patterns/square.d.mts +0 -21
- package/dist/src/styled-system/patterns/square.mjs +0 -24
- package/dist/src/styled-system/patterns/stack.d.mts +0 -24
- package/dist/src/styled-system/patterns/stack.mjs +0 -24
- package/dist/src/styled-system/patterns/visually-hidden.d.mts +0 -21
- package/dist/src/styled-system/patterns/visually-hidden.mjs +0 -18
- package/dist/src/styled-system/patterns/vstack.d.mts +0 -22
- package/dist/src/styled-system/patterns/vstack.mjs +0 -24
- package/dist/src/styled-system/patterns/wrap.d.mts +0 -25
- package/dist/src/styled-system/patterns/wrap.mjs +0 -25
- package/dist/src/styled-system/recipes/accordion.d.mts +0 -32
- package/dist/src/styled-system/recipes/accordion.mjs +0 -48
- package/dist/src/styled-system/recipes/alert-description.d.mts +0 -32
- package/dist/src/styled-system/recipes/alert-description.mjs +0 -24
- package/dist/src/styled-system/recipes/alert-dialog.d.mts +0 -32
- package/dist/src/styled-system/recipes/alert-dialog.mjs +0 -72
- package/dist/src/styled-system/recipes/alert-title.d.mts +0 -32
- package/dist/src/styled-system/recipes/alert-title.mjs +0 -24
- package/dist/src/styled-system/recipes/alert.d.mts +0 -35
- package/dist/src/styled-system/recipes/alert.mjs +0 -31
- package/dist/src/styled-system/recipes/avatar.d.mts +0 -32
- package/dist/src/styled-system/recipes/avatar.mjs +0 -40
- package/dist/src/styled-system/recipes/badge.d.mts +0 -35
- package/dist/src/styled-system/recipes/badge.mjs +0 -33
- package/dist/src/styled-system/recipes/blockquote.d.mts +0 -32
- package/dist/src/styled-system/recipes/blockquote.mjs +0 -24
- package/dist/src/styled-system/recipes/button.d.mts +0 -39
- package/dist/src/styled-system/recipes/button.mjs +0 -42
- package/dist/src/styled-system/recipes/calendar.d.mts +0 -32
- package/dist/src/styled-system/recipes/calendar.mjs +0 -120
- package/dist/src/styled-system/recipes/card-content.d.mts +0 -32
- package/dist/src/styled-system/recipes/card-content.mjs +0 -24
- package/dist/src/styled-system/recipes/card-description.d.mts +0 -32
- package/dist/src/styled-system/recipes/card-description.mjs +0 -24
- package/dist/src/styled-system/recipes/card-footer.d.mts +0 -32
- package/dist/src/styled-system/recipes/card-footer.mjs +0 -24
- package/dist/src/styled-system/recipes/card-header.d.mts +0 -32
- package/dist/src/styled-system/recipes/card-header.mjs +0 -24
- package/dist/src/styled-system/recipes/card-title.d.mts +0 -32
- package/dist/src/styled-system/recipes/card-title.mjs +0 -24
- package/dist/src/styled-system/recipes/card.d.mts +0 -32
- package/dist/src/styled-system/recipes/card.mjs +0 -24
- package/dist/src/styled-system/recipes/checkbox.d.mts +0 -32
- package/dist/src/styled-system/recipes/checkbox.mjs +0 -36
- package/dist/src/styled-system/recipes/collapsible.d.mts +0 -32
- package/dist/src/styled-system/recipes/collapsible.mjs +0 -40
- package/dist/src/styled-system/recipes/command-dialog.d.mts +0 -32
- package/dist/src/styled-system/recipes/command-dialog.mjs +0 -36
- package/dist/src/styled-system/recipes/command.d.mts +0 -32
- package/dist/src/styled-system/recipes/command.mjs +0 -68
- package/dist/src/styled-system/recipes/context-menu.d.mts +0 -35
- package/dist/src/styled-system/recipes/context-menu.mjs +0 -100
- package/dist/src/styled-system/recipes/create-recipe.mjs +0 -82
- package/dist/src/styled-system/recipes/dialog.d.mts +0 -32
- package/dist/src/styled-system/recipes/dialog.mjs +0 -68
- package/dist/src/styled-system/recipes/dropdown-menu.d.mts +0 -32
- package/dist/src/styled-system/recipes/dropdown-menu.mjs +0 -92
- package/dist/src/styled-system/recipes/form-control.d.mts +0 -32
- package/dist/src/styled-system/recipes/form-control.mjs +0 -24
- package/dist/src/styled-system/recipes/form-description.d.mts +0 -32
- package/dist/src/styled-system/recipes/form-description.mjs +0 -24
- package/dist/src/styled-system/recipes/form-item.d.mts +0 -32
- package/dist/src/styled-system/recipes/form-item.mjs +0 -24
- package/dist/src/styled-system/recipes/form-label.d.mts +0 -32
- package/dist/src/styled-system/recipes/form-label.mjs +0 -24
- package/dist/src/styled-system/recipes/form-message.d.mts +0 -32
- package/dist/src/styled-system/recipes/form-message.mjs +0 -24
- package/dist/src/styled-system/recipes/h1.d.mts +0 -32
- package/dist/src/styled-system/recipes/h1.mjs +0 -24
- package/dist/src/styled-system/recipes/h2.d.mts +0 -32
- package/dist/src/styled-system/recipes/h2.mjs +0 -24
- package/dist/src/styled-system/recipes/h3.d.mts +0 -32
- package/dist/src/styled-system/recipes/h3.mjs +0 -24
- package/dist/src/styled-system/recipes/h4.d.mts +0 -32
- package/dist/src/styled-system/recipes/h4.mjs +0 -24
- package/dist/src/styled-system/recipes/hover-card.d.mts +0 -32
- package/dist/src/styled-system/recipes/hover-card.mjs +0 -40
- package/dist/src/styled-system/recipes/icon.d.mts +0 -51
- package/dist/src/styled-system/recipes/icon.mjs +0 -54
- package/dist/src/styled-system/recipes/index.d.mts +0 -74
- package/dist/src/styled-system/recipes/index.mjs +0 -73
- package/dist/src/styled-system/recipes/inline-code.d.mts +0 -32
- package/dist/src/styled-system/recipes/inline-code.mjs +0 -24
- package/dist/src/styled-system/recipes/input.d.mts +0 -32
- package/dist/src/styled-system/recipes/input.mjs +0 -24
- package/dist/src/styled-system/recipes/label.d.mts +0 -32
- package/dist/src/styled-system/recipes/label.mjs +0 -24
- package/dist/src/styled-system/recipes/large.d.mts +0 -32
- package/dist/src/styled-system/recipes/large.mjs +0 -24
- package/dist/src/styled-system/recipes/lead.d.mts +0 -32
- package/dist/src/styled-system/recipes/lead.mjs +0 -24
- package/dist/src/styled-system/recipes/link.d.mts +0 -32
- package/dist/src/styled-system/recipes/link.mjs +0 -24
- package/dist/src/styled-system/recipes/list.d.mts +0 -32
- package/dist/src/styled-system/recipes/list.mjs +0 -24
- package/dist/src/styled-system/recipes/menubar.d.mts +0 -32
- package/dist/src/styled-system/recipes/menubar.mjs +0 -96
- package/dist/src/styled-system/recipes/muted.d.mts +0 -32
- package/dist/src/styled-system/recipes/muted.mjs +0 -24
- package/dist/src/styled-system/recipes/navigation-menu.d.mts +0 -32
- package/dist/src/styled-system/recipes/navigation-menu.mjs +0 -64
- package/dist/src/styled-system/recipes/p.d.mts +0 -32
- package/dist/src/styled-system/recipes/p.mjs +0 -24
- package/dist/src/styled-system/recipes/popover.d.mts +0 -32
- package/dist/src/styled-system/recipes/popover.mjs +0 -44
- package/dist/src/styled-system/recipes/progress.d.mts +0 -32
- package/dist/src/styled-system/recipes/progress.mjs +0 -36
- package/dist/src/styled-system/recipes/radio-group.d.mts +0 -32
- package/dist/src/styled-system/recipes/radio-group.mjs +0 -44
- package/dist/src/styled-system/recipes/scroll-area.d.mts +0 -32
- package/dist/src/styled-system/recipes/scroll-area.mjs +0 -48
- package/dist/src/styled-system/recipes/select.d.mts +0 -32
- package/dist/src/styled-system/recipes/select.mjs +0 -68
- package/dist/src/styled-system/recipes/separator.d.mts +0 -35
- package/dist/src/styled-system/recipes/separator.mjs +0 -31
- package/dist/src/styled-system/recipes/sheet.d.mts +0 -35
- package/dist/src/styled-system/recipes/sheet.mjs +0 -83
- package/dist/src/styled-system/recipes/skeleton.d.mts +0 -32
- package/dist/src/styled-system/recipes/skeleton.mjs +0 -24
- package/dist/src/styled-system/recipes/slider.d.mts +0 -32
- package/dist/src/styled-system/recipes/slider.mjs +0 -44
- package/dist/src/styled-system/recipes/small.d.mts +0 -32
- package/dist/src/styled-system/recipes/small.mjs +0 -24
- package/dist/src/styled-system/recipes/switch-recipe.d.mts +0 -32
- package/dist/src/styled-system/recipes/switch-recipe.mjs +0 -36
- package/dist/src/styled-system/recipes/table-body.d.mts +0 -32
- package/dist/src/styled-system/recipes/table-body.mjs +0 -24
- package/dist/src/styled-system/recipes/table-caption.d.mts +0 -32
- package/dist/src/styled-system/recipes/table-caption.mjs +0 -24
- package/dist/src/styled-system/recipes/table-cell.d.mts +0 -32
- package/dist/src/styled-system/recipes/table-cell.mjs +0 -24
- package/dist/src/styled-system/recipes/table-container.d.mts +0 -32
- package/dist/src/styled-system/recipes/table-container.mjs +0 -24
- package/dist/src/styled-system/recipes/table-footer.d.mts +0 -32
- package/dist/src/styled-system/recipes/table-footer.mjs +0 -24
- package/dist/src/styled-system/recipes/table-head.d.mts +0 -32
- package/dist/src/styled-system/recipes/table-head.mjs +0 -24
- package/dist/src/styled-system/recipes/table-header.d.mts +0 -32
- package/dist/src/styled-system/recipes/table-header.mjs +0 -24
- package/dist/src/styled-system/recipes/table-row.d.mts +0 -32
- package/dist/src/styled-system/recipes/table-row.mjs +0 -24
- package/dist/src/styled-system/recipes/table.d.mts +0 -32
- package/dist/src/styled-system/recipes/table.mjs +0 -24
- package/dist/src/styled-system/recipes/tabs.d.mts +0 -32
- package/dist/src/styled-system/recipes/tabs.mjs +0 -44
- package/dist/src/styled-system/recipes/textarea.d.mts +0 -32
- package/dist/src/styled-system/recipes/textarea.mjs +0 -24
- package/dist/src/styled-system/recipes/toast-viewport.d.mts +0 -32
- package/dist/src/styled-system/recipes/toast-viewport.mjs +0 -24
- package/dist/src/styled-system/recipes/toast.d.mts +0 -35
- package/dist/src/styled-system/recipes/toast.mjs +0 -61
- package/dist/src/styled-system/recipes/toggle.d.mts +0 -39
- package/dist/src/styled-system/recipes/toggle.mjs +0 -37
- package/dist/src/styled-system/recipes/tooltip.d.mts +0 -32
- package/dist/src/styled-system/recipes/tooltip.mjs +0 -40
- package/dist/src/styled-system/recipes/typography-table-container.d.mts +0 -32
- package/dist/src/styled-system/recipes/typography-table-container.mjs +0 -24
- package/dist/src/styled-system/recipes/typography-table.d.mts +0 -32
- package/dist/src/styled-system/recipes/typography-table.mjs +0 -24
- package/dist/src/styled-system/tokens/index.d.mts +0 -9
- package/dist/src/styled-system/tokens/index.mjs +0 -2732
- package/dist/src/styled-system/tokens/tokens.d.mts +0 -63
- package/dist/src/styled-system/types/composition.d.mts +0 -164
- package/dist/src/styled-system/types/conditions.d.mts +0 -322
- package/dist/src/styled-system/types/csstype.d.mts +0 -21298
- package/dist/src/styled-system/types/global.d.mts +0 -20
- package/dist/src/styled-system/types/index.d.mts +0 -7
- package/dist/src/styled-system/types/parts.d.mts +0 -8
- package/dist/src/styled-system/types/pattern.d.mts +0 -78
- package/dist/src/styled-system/types/prop-type.d.mts +0 -264
- package/dist/src/styled-system/types/recipe.d.mts +0 -181
- package/dist/src/styled-system/types/selectors.d.mts +0 -59
- package/dist/src/styled-system/types/static-css.d.mts +0 -56
- package/dist/src/styled-system/types/style-props.d.mts +0 -7549
- package/dist/src/styled-system/types/system-types.d.mts +0 -193
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { finalizeConditions, sortConditions } from '../css/conditions.mjs';
|
|
2
|
-
import { css } from '../css/css.mjs';
|
|
3
|
-
import { assertCompoundVariant, getCompoundVariantCss } from '../css/cva.mjs';
|
|
4
|
-
import { cx } from '../css/cx.mjs';
|
|
5
|
-
import { compact, createCss, splitProps, uniq, withoutSpace } from '../helpers.mjs';
|
|
6
|
-
|
|
7
|
-
export const createRecipe = (name, defaultVariants, compoundVariants) => {
|
|
8
|
-
const getVariantProps = (variants) => {
|
|
9
|
-
return {
|
|
10
|
-
[name]: '__ignore__',
|
|
11
|
-
...defaultVariants,
|
|
12
|
-
...compact(variants),
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
const recipeFn = (variants, withCompoundVariants = true) => {
|
|
17
|
-
const transform = (prop, value) => {
|
|
18
|
-
assertCompoundVariant(name, compoundVariants, variants, prop)
|
|
19
|
-
|
|
20
|
-
if (value === '__ignore__') {
|
|
21
|
-
return { className: name }
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
value = withoutSpace(value)
|
|
25
|
-
return { className: `${name}--${prop}_${value}` }
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
const recipeCss = createCss({
|
|
29
|
-
|
|
30
|
-
conditions: {
|
|
31
|
-
shift: sortConditions,
|
|
32
|
-
finalize: finalizeConditions,
|
|
33
|
-
breakpoints: { keys: ["base","sm","md","lg","2lg","xl","2xl"] }
|
|
34
|
-
},
|
|
35
|
-
utility: {
|
|
36
|
-
|
|
37
|
-
toHash: (path, hashFn) => hashFn(path.join(":")),
|
|
38
|
-
transform,
|
|
39
|
-
}
|
|
40
|
-
})
|
|
41
|
-
|
|
42
|
-
const recipeStyles = getVariantProps(variants)
|
|
43
|
-
|
|
44
|
-
if (withCompoundVariants) {
|
|
45
|
-
const compoundVariantStyles = getCompoundVariantCss(compoundVariants, recipeStyles)
|
|
46
|
-
return cx(recipeCss(recipeStyles), css(compoundVariantStyles))
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
return recipeCss(recipeStyles)
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
return {
|
|
53
|
-
recipeFn,
|
|
54
|
-
getVariantProps,
|
|
55
|
-
__getCompoundVariantCss__: (variants) => {
|
|
56
|
-
return getCompoundVariantCss(compoundVariants, getVariantProps(variants));
|
|
57
|
-
},
|
|
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,32 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types.d.mts';
|
|
4
|
-
|
|
5
|
-
interface DialogVariant {
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
type DialogVariantMap = {
|
|
10
|
-
[key in keyof DialogVariant]: Array<DialogVariant[key]>
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export type DialogVariantProps = {
|
|
14
|
-
[key in keyof DialogVariant]?: ConditionalValue<DialogVariant[key]> | undefined
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface DialogRecipe {
|
|
18
|
-
__type: DialogVariantProps
|
|
19
|
-
(props?: DialogVariantProps): Pretty<Record<"root" | "trigger" | "portal" | "overlay" | "close" | "content" | "header" | "footer" | "title" | "description", string>>
|
|
20
|
-
raw: (props?: DialogVariantProps) => DialogVariantProps
|
|
21
|
-
variantMap: DialogVariantMap
|
|
22
|
-
variantKeys: Array<keyof DialogVariant>
|
|
23
|
-
splitVariantProps<Props extends DialogVariantProps>(props: Props): [DialogVariantProps, Pretty<DistributiveOmit<Props, keyof DialogVariantProps>>]
|
|
24
|
-
getVariantProps: (props?: DialogVariantProps) => DialogVariantProps
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Styles for the Dialog component
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*/
|
|
32
|
-
export declare const dialog: DialogRecipe
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
-
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
-
|
|
4
|
-
const dialogDefaultVariants = {}
|
|
5
|
-
const dialogCompoundVariants = []
|
|
6
|
-
|
|
7
|
-
const dialogSlotNames = [
|
|
8
|
-
[
|
|
9
|
-
"root",
|
|
10
|
-
"dialog__root"
|
|
11
|
-
],
|
|
12
|
-
[
|
|
13
|
-
"trigger",
|
|
14
|
-
"dialog__trigger"
|
|
15
|
-
],
|
|
16
|
-
[
|
|
17
|
-
"portal",
|
|
18
|
-
"dialog__portal"
|
|
19
|
-
],
|
|
20
|
-
[
|
|
21
|
-
"overlay",
|
|
22
|
-
"dialog__overlay"
|
|
23
|
-
],
|
|
24
|
-
[
|
|
25
|
-
"close",
|
|
26
|
-
"dialog__close"
|
|
27
|
-
],
|
|
28
|
-
[
|
|
29
|
-
"content",
|
|
30
|
-
"dialog__content"
|
|
31
|
-
],
|
|
32
|
-
[
|
|
33
|
-
"header",
|
|
34
|
-
"dialog__header"
|
|
35
|
-
],
|
|
36
|
-
[
|
|
37
|
-
"footer",
|
|
38
|
-
"dialog__footer"
|
|
39
|
-
],
|
|
40
|
-
[
|
|
41
|
-
"title",
|
|
42
|
-
"dialog__title"
|
|
43
|
-
],
|
|
44
|
-
[
|
|
45
|
-
"description",
|
|
46
|
-
"dialog__description"
|
|
47
|
-
]
|
|
48
|
-
]
|
|
49
|
-
const dialogSlotFns = /* @__PURE__ */ dialogSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, dialogDefaultVariants, getSlotCompoundVariant(dialogCompoundVariants, slotName))])
|
|
50
|
-
|
|
51
|
-
const dialogFn = memo((props = {}) => {
|
|
52
|
-
return Object.fromEntries(dialogSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
53
|
-
})
|
|
54
|
-
|
|
55
|
-
const dialogVariantKeys = []
|
|
56
|
-
const getVariantProps = (variants) => ({ ...dialogDefaultVariants, ...compact(variants) })
|
|
57
|
-
|
|
58
|
-
export const dialog = /* @__PURE__ */ Object.assign(dialogFn, {
|
|
59
|
-
__recipe__: false,
|
|
60
|
-
__name__: 'dialog',
|
|
61
|
-
raw: (props) => props,
|
|
62
|
-
variantKeys: dialogVariantKeys,
|
|
63
|
-
variantMap: {},
|
|
64
|
-
splitVariantProps(props) {
|
|
65
|
-
return splitProps(props, dialogVariantKeys)
|
|
66
|
-
},
|
|
67
|
-
getVariantProps
|
|
68
|
-
})
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types.d.mts';
|
|
4
|
-
|
|
5
|
-
interface DropdownMenuVariant {
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
type DropdownMenuVariantMap = {
|
|
10
|
-
[key in keyof DropdownMenuVariant]: Array<DropdownMenuVariant[key]>
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export type DropdownMenuVariantProps = {
|
|
14
|
-
[key in keyof DropdownMenuVariant]?: ConditionalValue<DropdownMenuVariant[key]> | undefined
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface DropdownMenuRecipe {
|
|
18
|
-
__type: DropdownMenuVariantProps
|
|
19
|
-
(props?: DropdownMenuVariantProps): Pretty<Record<"root" | "trigger" | "group" | "portal" | "sub" | "radioGroup" | "subTrigger" | "subContent" | "content" | "item" | "itemIndicator" | "checkboxItem" | "radioItem" | "label" | "separator" | "shortcut", string>>
|
|
20
|
-
raw: (props?: DropdownMenuVariantProps) => DropdownMenuVariantProps
|
|
21
|
-
variantMap: DropdownMenuVariantMap
|
|
22
|
-
variantKeys: Array<keyof DropdownMenuVariant>
|
|
23
|
-
splitVariantProps<Props extends DropdownMenuVariantProps>(props: Props): [DropdownMenuVariantProps, Pretty<DistributiveOmit<Props, keyof DropdownMenuVariantProps>>]
|
|
24
|
-
getVariantProps: (props?: DropdownMenuVariantProps) => DropdownMenuVariantProps
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Styles for the DropdownMenu component
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*/
|
|
32
|
-
export declare const dropdownMenu: DropdownMenuRecipe
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
-
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
-
|
|
4
|
-
const dropdownMenuDefaultVariants = {}
|
|
5
|
-
const dropdownMenuCompoundVariants = []
|
|
6
|
-
|
|
7
|
-
const dropdownMenuSlotNames = [
|
|
8
|
-
[
|
|
9
|
-
"root",
|
|
10
|
-
"dropdownMenu__root"
|
|
11
|
-
],
|
|
12
|
-
[
|
|
13
|
-
"trigger",
|
|
14
|
-
"dropdownMenu__trigger"
|
|
15
|
-
],
|
|
16
|
-
[
|
|
17
|
-
"group",
|
|
18
|
-
"dropdownMenu__group"
|
|
19
|
-
],
|
|
20
|
-
[
|
|
21
|
-
"portal",
|
|
22
|
-
"dropdownMenu__portal"
|
|
23
|
-
],
|
|
24
|
-
[
|
|
25
|
-
"sub",
|
|
26
|
-
"dropdownMenu__sub"
|
|
27
|
-
],
|
|
28
|
-
[
|
|
29
|
-
"radioGroup",
|
|
30
|
-
"dropdownMenu__radioGroup"
|
|
31
|
-
],
|
|
32
|
-
[
|
|
33
|
-
"subTrigger",
|
|
34
|
-
"dropdownMenu__subTrigger"
|
|
35
|
-
],
|
|
36
|
-
[
|
|
37
|
-
"subContent",
|
|
38
|
-
"dropdownMenu__subContent"
|
|
39
|
-
],
|
|
40
|
-
[
|
|
41
|
-
"content",
|
|
42
|
-
"dropdownMenu__content"
|
|
43
|
-
],
|
|
44
|
-
[
|
|
45
|
-
"item",
|
|
46
|
-
"dropdownMenu__item"
|
|
47
|
-
],
|
|
48
|
-
[
|
|
49
|
-
"itemIndicator",
|
|
50
|
-
"dropdownMenu__itemIndicator"
|
|
51
|
-
],
|
|
52
|
-
[
|
|
53
|
-
"checkboxItem",
|
|
54
|
-
"dropdownMenu__checkboxItem"
|
|
55
|
-
],
|
|
56
|
-
[
|
|
57
|
-
"radioItem",
|
|
58
|
-
"dropdownMenu__radioItem"
|
|
59
|
-
],
|
|
60
|
-
[
|
|
61
|
-
"label",
|
|
62
|
-
"dropdownMenu__label"
|
|
63
|
-
],
|
|
64
|
-
[
|
|
65
|
-
"separator",
|
|
66
|
-
"dropdownMenu__separator"
|
|
67
|
-
],
|
|
68
|
-
[
|
|
69
|
-
"shortcut",
|
|
70
|
-
"dropdownMenu__shortcut"
|
|
71
|
-
]
|
|
72
|
-
]
|
|
73
|
-
const dropdownMenuSlotFns = /* @__PURE__ */ dropdownMenuSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, dropdownMenuDefaultVariants, getSlotCompoundVariant(dropdownMenuCompoundVariants, slotName))])
|
|
74
|
-
|
|
75
|
-
const dropdownMenuFn = memo((props = {}) => {
|
|
76
|
-
return Object.fromEntries(dropdownMenuSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
77
|
-
})
|
|
78
|
-
|
|
79
|
-
const dropdownMenuVariantKeys = []
|
|
80
|
-
const getVariantProps = (variants) => ({ ...dropdownMenuDefaultVariants, ...compact(variants) })
|
|
81
|
-
|
|
82
|
-
export const dropdownMenu = /* @__PURE__ */ Object.assign(dropdownMenuFn, {
|
|
83
|
-
__recipe__: false,
|
|
84
|
-
__name__: 'dropdownMenu',
|
|
85
|
-
raw: (props) => props,
|
|
86
|
-
variantKeys: dropdownMenuVariantKeys,
|
|
87
|
-
variantMap: {},
|
|
88
|
-
splitVariantProps(props) {
|
|
89
|
-
return splitProps(props, dropdownMenuVariantKeys)
|
|
90
|
-
},
|
|
91
|
-
getVariantProps
|
|
92
|
-
})
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types.d.mts';
|
|
4
|
-
|
|
5
|
-
interface FormControlVariant {
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
type FormControlVariantMap = {
|
|
10
|
-
[key in keyof FormControlVariant]: Array<FormControlVariant[key]>
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export type FormControlVariantProps = {
|
|
14
|
-
[key in keyof FormControlVariant]?: ConditionalValue<FormControlVariant[key]> | undefined
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface FormControlRecipe {
|
|
18
|
-
__type: FormControlVariantProps
|
|
19
|
-
(props?: FormControlVariantProps): string
|
|
20
|
-
raw: (props?: FormControlVariantProps) => FormControlVariantProps
|
|
21
|
-
variantMap: FormControlVariantMap
|
|
22
|
-
variantKeys: Array<keyof FormControlVariant>
|
|
23
|
-
splitVariantProps<Props extends FormControlVariantProps>(props: Props): [FormControlVariantProps, Pretty<DistributiveOmit<Props, keyof FormControlVariantProps>>]
|
|
24
|
-
getVariantProps: (props?: FormControlVariantProps) => FormControlVariantProps
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Styles for the FormControl component
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*/
|
|
32
|
-
export declare const formControl: FormControlRecipe
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
-
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
-
|
|
4
|
-
const formControlFn = /* @__PURE__ */ createRecipe('formControl', {}, [])
|
|
5
|
-
|
|
6
|
-
const formControlVariantMap = {}
|
|
7
|
-
|
|
8
|
-
const formControlVariantKeys = Object.keys(formControlVariantMap)
|
|
9
|
-
|
|
10
|
-
export const formControl = /* @__PURE__ */ Object.assign(memo(formControlFn.recipeFn), {
|
|
11
|
-
__recipe__: true,
|
|
12
|
-
__name__: 'formControl',
|
|
13
|
-
__getCompoundVariantCss__: formControlFn.__getCompoundVariantCss__,
|
|
14
|
-
raw: (props) => props,
|
|
15
|
-
variantKeys: formControlVariantKeys,
|
|
16
|
-
variantMap: formControlVariantMap,
|
|
17
|
-
merge(recipe) {
|
|
18
|
-
return mergeRecipes(this, recipe)
|
|
19
|
-
},
|
|
20
|
-
splitVariantProps(props) {
|
|
21
|
-
return splitProps(props, formControlVariantKeys)
|
|
22
|
-
},
|
|
23
|
-
getVariantProps: formControlFn.getVariantProps,
|
|
24
|
-
})
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types.d.mts';
|
|
4
|
-
|
|
5
|
-
interface FormDescriptionVariant {
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
type FormDescriptionVariantMap = {
|
|
10
|
-
[key in keyof FormDescriptionVariant]: Array<FormDescriptionVariant[key]>
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export type FormDescriptionVariantProps = {
|
|
14
|
-
[key in keyof FormDescriptionVariant]?: ConditionalValue<FormDescriptionVariant[key]> | undefined
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface FormDescriptionRecipe {
|
|
18
|
-
__type: FormDescriptionVariantProps
|
|
19
|
-
(props?: FormDescriptionVariantProps): string
|
|
20
|
-
raw: (props?: FormDescriptionVariantProps) => FormDescriptionVariantProps
|
|
21
|
-
variantMap: FormDescriptionVariantMap
|
|
22
|
-
variantKeys: Array<keyof FormDescriptionVariant>
|
|
23
|
-
splitVariantProps<Props extends FormDescriptionVariantProps>(props: Props): [FormDescriptionVariantProps, Pretty<DistributiveOmit<Props, keyof FormDescriptionVariantProps>>]
|
|
24
|
-
getVariantProps: (props?: FormDescriptionVariantProps) => FormDescriptionVariantProps
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Styles for the FormDescription component
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*/
|
|
32
|
-
export declare const formDescription: FormDescriptionRecipe
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
-
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
-
|
|
4
|
-
const formDescriptionFn = /* @__PURE__ */ createRecipe('formDescription', {}, [])
|
|
5
|
-
|
|
6
|
-
const formDescriptionVariantMap = {}
|
|
7
|
-
|
|
8
|
-
const formDescriptionVariantKeys = Object.keys(formDescriptionVariantMap)
|
|
9
|
-
|
|
10
|
-
export const formDescription = /* @__PURE__ */ Object.assign(memo(formDescriptionFn.recipeFn), {
|
|
11
|
-
__recipe__: true,
|
|
12
|
-
__name__: 'formDescription',
|
|
13
|
-
__getCompoundVariantCss__: formDescriptionFn.__getCompoundVariantCss__,
|
|
14
|
-
raw: (props) => props,
|
|
15
|
-
variantKeys: formDescriptionVariantKeys,
|
|
16
|
-
variantMap: formDescriptionVariantMap,
|
|
17
|
-
merge(recipe) {
|
|
18
|
-
return mergeRecipes(this, recipe)
|
|
19
|
-
},
|
|
20
|
-
splitVariantProps(props) {
|
|
21
|
-
return splitProps(props, formDescriptionVariantKeys)
|
|
22
|
-
},
|
|
23
|
-
getVariantProps: formDescriptionFn.getVariantProps,
|
|
24
|
-
})
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types.d.mts';
|
|
4
|
-
|
|
5
|
-
interface FormItemVariant {
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
type FormItemVariantMap = {
|
|
10
|
-
[key in keyof FormItemVariant]: Array<FormItemVariant[key]>
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export type FormItemVariantProps = {
|
|
14
|
-
[key in keyof FormItemVariant]?: ConditionalValue<FormItemVariant[key]> | undefined
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface FormItemRecipe {
|
|
18
|
-
__type: FormItemVariantProps
|
|
19
|
-
(props?: FormItemVariantProps): string
|
|
20
|
-
raw: (props?: FormItemVariantProps) => FormItemVariantProps
|
|
21
|
-
variantMap: FormItemVariantMap
|
|
22
|
-
variantKeys: Array<keyof FormItemVariant>
|
|
23
|
-
splitVariantProps<Props extends FormItemVariantProps>(props: Props): [FormItemVariantProps, Pretty<DistributiveOmit<Props, keyof FormItemVariantProps>>]
|
|
24
|
-
getVariantProps: (props?: FormItemVariantProps) => FormItemVariantProps
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Styles for the FormItem component
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*/
|
|
32
|
-
export declare const formItem: FormItemRecipe
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
-
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
-
|
|
4
|
-
const formItemFn = /* @__PURE__ */ createRecipe('formItem', {}, [])
|
|
5
|
-
|
|
6
|
-
const formItemVariantMap = {}
|
|
7
|
-
|
|
8
|
-
const formItemVariantKeys = Object.keys(formItemVariantMap)
|
|
9
|
-
|
|
10
|
-
export const formItem = /* @__PURE__ */ Object.assign(memo(formItemFn.recipeFn), {
|
|
11
|
-
__recipe__: true,
|
|
12
|
-
__name__: 'formItem',
|
|
13
|
-
__getCompoundVariantCss__: formItemFn.__getCompoundVariantCss__,
|
|
14
|
-
raw: (props) => props,
|
|
15
|
-
variantKeys: formItemVariantKeys,
|
|
16
|
-
variantMap: formItemVariantMap,
|
|
17
|
-
merge(recipe) {
|
|
18
|
-
return mergeRecipes(this, recipe)
|
|
19
|
-
},
|
|
20
|
-
splitVariantProps(props) {
|
|
21
|
-
return splitProps(props, formItemVariantKeys)
|
|
22
|
-
},
|
|
23
|
-
getVariantProps: formItemFn.getVariantProps,
|
|
24
|
-
})
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types.d.mts';
|
|
4
|
-
|
|
5
|
-
interface FormLabelVariant {
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
type FormLabelVariantMap = {
|
|
10
|
-
[key in keyof FormLabelVariant]: Array<FormLabelVariant[key]>
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export type FormLabelVariantProps = {
|
|
14
|
-
[key in keyof FormLabelVariant]?: ConditionalValue<FormLabelVariant[key]> | undefined
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface FormLabelRecipe {
|
|
18
|
-
__type: FormLabelVariantProps
|
|
19
|
-
(props?: FormLabelVariantProps): string
|
|
20
|
-
raw: (props?: FormLabelVariantProps) => FormLabelVariantProps
|
|
21
|
-
variantMap: FormLabelVariantMap
|
|
22
|
-
variantKeys: Array<keyof FormLabelVariant>
|
|
23
|
-
splitVariantProps<Props extends FormLabelVariantProps>(props: Props): [FormLabelVariantProps, Pretty<DistributiveOmit<Props, keyof FormLabelVariantProps>>]
|
|
24
|
-
getVariantProps: (props?: FormLabelVariantProps) => FormLabelVariantProps
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Styles for the FormLabel component
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*/
|
|
32
|
-
export declare const formLabel: FormLabelRecipe
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
-
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
-
|
|
4
|
-
const formLabelFn = /* @__PURE__ */ createRecipe('formLabel', {}, [])
|
|
5
|
-
|
|
6
|
-
const formLabelVariantMap = {}
|
|
7
|
-
|
|
8
|
-
const formLabelVariantKeys = Object.keys(formLabelVariantMap)
|
|
9
|
-
|
|
10
|
-
export const formLabel = /* @__PURE__ */ Object.assign(memo(formLabelFn.recipeFn), {
|
|
11
|
-
__recipe__: true,
|
|
12
|
-
__name__: 'formLabel',
|
|
13
|
-
__getCompoundVariantCss__: formLabelFn.__getCompoundVariantCss__,
|
|
14
|
-
raw: (props) => props,
|
|
15
|
-
variantKeys: formLabelVariantKeys,
|
|
16
|
-
variantMap: formLabelVariantMap,
|
|
17
|
-
merge(recipe) {
|
|
18
|
-
return mergeRecipes(this, recipe)
|
|
19
|
-
},
|
|
20
|
-
splitVariantProps(props) {
|
|
21
|
-
return splitProps(props, formLabelVariantKeys)
|
|
22
|
-
},
|
|
23
|
-
getVariantProps: formLabelFn.getVariantProps,
|
|
24
|
-
})
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types.d.mts';
|
|
4
|
-
|
|
5
|
-
interface FormMessageVariant {
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
type FormMessageVariantMap = {
|
|
10
|
-
[key in keyof FormMessageVariant]: Array<FormMessageVariant[key]>
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export type FormMessageVariantProps = {
|
|
14
|
-
[key in keyof FormMessageVariant]?: ConditionalValue<FormMessageVariant[key]> | undefined
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface FormMessageRecipe {
|
|
18
|
-
__type: FormMessageVariantProps
|
|
19
|
-
(props?: FormMessageVariantProps): string
|
|
20
|
-
raw: (props?: FormMessageVariantProps) => FormMessageVariantProps
|
|
21
|
-
variantMap: FormMessageVariantMap
|
|
22
|
-
variantKeys: Array<keyof FormMessageVariant>
|
|
23
|
-
splitVariantProps<Props extends FormMessageVariantProps>(props: Props): [FormMessageVariantProps, Pretty<DistributiveOmit<Props, keyof FormMessageVariantProps>>]
|
|
24
|
-
getVariantProps: (props?: FormMessageVariantProps) => FormMessageVariantProps
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Styles for the FormMessage component
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*/
|
|
32
|
-
export declare const formMessage: FormMessageRecipe
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
-
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
-
|
|
4
|
-
const formMessageFn = /* @__PURE__ */ createRecipe('formMessage', {}, [])
|
|
5
|
-
|
|
6
|
-
const formMessageVariantMap = {}
|
|
7
|
-
|
|
8
|
-
const formMessageVariantKeys = Object.keys(formMessageVariantMap)
|
|
9
|
-
|
|
10
|
-
export const formMessage = /* @__PURE__ */ Object.assign(memo(formMessageFn.recipeFn), {
|
|
11
|
-
__recipe__: true,
|
|
12
|
-
__name__: 'formMessage',
|
|
13
|
-
__getCompoundVariantCss__: formMessageFn.__getCompoundVariantCss__,
|
|
14
|
-
raw: (props) => props,
|
|
15
|
-
variantKeys: formMessageVariantKeys,
|
|
16
|
-
variantMap: formMessageVariantMap,
|
|
17
|
-
merge(recipe) {
|
|
18
|
-
return mergeRecipes(this, recipe)
|
|
19
|
-
},
|
|
20
|
-
splitVariantProps(props) {
|
|
21
|
-
return splitProps(props, formMessageVariantKeys)
|
|
22
|
-
},
|
|
23
|
-
getVariantProps: formMessageFn.getVariantProps,
|
|
24
|
-
})
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types.d.mts';
|
|
4
|
-
|
|
5
|
-
interface H1Variant {
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
type H1VariantMap = {
|
|
10
|
-
[key in keyof H1Variant]: Array<H1Variant[key]>
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export type H1VariantProps = {
|
|
14
|
-
[key in keyof H1Variant]?: ConditionalValue<H1Variant[key]> | undefined
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface H1Recipe {
|
|
18
|
-
__type: H1VariantProps
|
|
19
|
-
(props?: H1VariantProps): string
|
|
20
|
-
raw: (props?: H1VariantProps) => H1VariantProps
|
|
21
|
-
variantMap: H1VariantMap
|
|
22
|
-
variantKeys: Array<keyof H1Variant>
|
|
23
|
-
splitVariantProps<Props extends H1VariantProps>(props: Props): [H1VariantProps, Pretty<DistributiveOmit<Props, keyof H1VariantProps>>]
|
|
24
|
-
getVariantProps: (props?: H1VariantProps) => H1VariantProps
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Typography - h1 style
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*/
|
|
32
|
-
export declare const h1: H1Recipe
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
-
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
-
|
|
4
|
-
const h1Fn = /* @__PURE__ */ createRecipe('h1', {}, [])
|
|
5
|
-
|
|
6
|
-
const h1VariantMap = {}
|
|
7
|
-
|
|
8
|
-
const h1VariantKeys = Object.keys(h1VariantMap)
|
|
9
|
-
|
|
10
|
-
export const h1 = /* @__PURE__ */ Object.assign(memo(h1Fn.recipeFn), {
|
|
11
|
-
__recipe__: true,
|
|
12
|
-
__name__: 'h1',
|
|
13
|
-
__getCompoundVariantCss__: h1Fn.__getCompoundVariantCss__,
|
|
14
|
-
raw: (props) => props,
|
|
15
|
-
variantKeys: h1VariantKeys,
|
|
16
|
-
variantMap: h1VariantMap,
|
|
17
|
-
merge(recipe) {
|
|
18
|
-
return mergeRecipes(this, recipe)
|
|
19
|
-
},
|
|
20
|
-
splitVariantProps(props) {
|
|
21
|
-
return splitProps(props, h1VariantKeys)
|
|
22
|
-
},
|
|
23
|
-
getVariantProps: h1Fn.getVariantProps,
|
|
24
|
-
})
|