@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,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 separatorFn = /* @__PURE__ */ createRecipe('separator', {
|
|
5
5
|
"orientation": "horizontal"
|
|
@@ -14,13 +14,18 @@ const separatorVariantMap = {
|
|
|
14
14
|
|
|
15
15
|
const separatorVariantKeys = Object.keys(separatorVariantMap)
|
|
16
16
|
|
|
17
|
-
export const separator = /* @__PURE__ */ Object.assign(separatorFn, {
|
|
17
|
+
export const separator = /* @__PURE__ */ Object.assign(memo(separatorFn.recipeFn), {
|
|
18
18
|
__recipe__: true,
|
|
19
19
|
__name__: 'separator',
|
|
20
|
+
__getCompoundVariantCss__: separatorFn.__getCompoundVariantCss__,
|
|
20
21
|
raw: (props) => props,
|
|
21
22
|
variantKeys: separatorVariantKeys,
|
|
22
23
|
variantMap: separatorVariantMap,
|
|
24
|
+
merge(recipe) {
|
|
25
|
+
return mergeRecipes(this, recipe)
|
|
26
|
+
},
|
|
23
27
|
splitVariantProps(props) {
|
|
24
28
|
return splitProps(props, separatorVariantKeys)
|
|
25
29
|
},
|
|
30
|
+
getVariantProps: separatorFn.getVariantProps,
|
|
26
31
|
})
|
|
@@ -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 SheetVariant {
|
|
7
|
-
|
|
6
|
+
/**
|
|
7
|
+
* @default "right"
|
|
8
|
+
*/
|
|
9
|
+
side: "top" | "bottom" | "left" | "right"
|
|
8
10
|
}
|
|
9
11
|
|
|
10
12
|
type SheetVariantMap = {
|
|
@@ -12,7 +14,7 @@ type SheetVariantMap = {
|
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
export type SheetVariantProps = {
|
|
15
|
-
[key in keyof SheetVariant]?: ConditionalValue<SheetVariant[key]>
|
|
17
|
+
[key in keyof SheetVariant]?: ConditionalValue<SheetVariant[key]> | undefined
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
export interface SheetRecipe {
|
|
@@ -22,7 +24,12 @@ export interface SheetRecipe {
|
|
|
22
24
|
variantMap: SheetVariantMap
|
|
23
25
|
variantKeys: Array<keyof SheetVariant>
|
|
24
26
|
splitVariantProps<Props extends SheetVariantProps>(props: Props): [SheetVariantProps, Pretty<DistributiveOmit<Props, keyof SheetVariantProps>>]
|
|
27
|
+
getVariantProps: (props?: SheetVariantProps) => SheetVariantProps
|
|
25
28
|
}
|
|
26
29
|
|
|
27
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* Styles for the Sheet component
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
*/
|
|
28
35
|
export declare const sheet: SheetRecipe
|
|
@@ -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 sheetDefaultVariants = {
|
|
@@ -54,13 +54,14 @@ const sheetSlotNames = [
|
|
|
54
54
|
]
|
|
55
55
|
const sheetSlotFns = /* @__PURE__ */ sheetSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, sheetDefaultVariants, getSlotCompoundVariant(sheetCompoundVariants, slotName))])
|
|
56
56
|
|
|
57
|
-
const sheetFn = (props = {}) => {
|
|
58
|
-
return Object.fromEntries(sheetSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
59
|
-
}
|
|
57
|
+
const sheetFn = memo((props = {}) => {
|
|
58
|
+
return Object.fromEntries(sheetSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
59
|
+
})
|
|
60
60
|
|
|
61
61
|
const sheetVariantKeys = [
|
|
62
62
|
"side"
|
|
63
63
|
]
|
|
64
|
+
const getVariantProps = (variants) => ({ ...sheetDefaultVariants, ...compact(variants) })
|
|
64
65
|
|
|
65
66
|
export const sheet = /* @__PURE__ */ Object.assign(sheetFn, {
|
|
66
67
|
__recipe__: false,
|
|
@@ -78,4 +79,5 @@ export const sheet = /* @__PURE__ */ Object.assign(sheetFn, {
|
|
|
78
79
|
splitVariantProps(props) {
|
|
79
80
|
return splitProps(props, sheetVariantKeys)
|
|
80
81
|
},
|
|
82
|
+
getVariantProps
|
|
81
83
|
})
|
|
@@ -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 SkeletonVariant {
|
|
7
6
|
|
|
@@ -12,7 +11,7 @@ type SkeletonVariantMap = {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export type SkeletonVariantProps = {
|
|
15
|
-
[key in keyof SkeletonVariant]?: ConditionalValue<SkeletonVariant[key]>
|
|
14
|
+
[key in keyof SkeletonVariant]?: ConditionalValue<SkeletonVariant[key]> | undefined
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export interface SkeletonRecipe {
|
|
@@ -22,7 +21,12 @@ export interface SkeletonRecipe {
|
|
|
22
21
|
variantMap: SkeletonVariantMap
|
|
23
22
|
variantKeys: Array<keyof SkeletonVariant>
|
|
24
23
|
splitVariantProps<Props extends SkeletonVariantProps>(props: Props): [SkeletonVariantProps, Pretty<DistributiveOmit<Props, keyof SkeletonVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: SkeletonVariantProps) => SkeletonVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the Skeleton component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const skeleton: SkeletonRecipe
|
|
@@ -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 skeletonFn = /* @__PURE__ */ createRecipe('skeleton', {}, [])
|
|
5
5
|
|
|
@@ -7,13 +7,18 @@ const skeletonVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const skeletonVariantKeys = Object.keys(skeletonVariantMap)
|
|
9
9
|
|
|
10
|
-
export const skeleton = /* @__PURE__ */ Object.assign(skeletonFn, {
|
|
10
|
+
export const skeleton = /* @__PURE__ */ Object.assign(memo(skeletonFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'skeleton',
|
|
13
|
+
__getCompoundVariantCss__: skeletonFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: skeletonVariantKeys,
|
|
15
16
|
variantMap: skeletonVariantMap,
|
|
17
|
+
merge(recipe) {
|
|
18
|
+
return mergeRecipes(this, recipe)
|
|
19
|
+
},
|
|
16
20
|
splitVariantProps(props) {
|
|
17
21
|
return splitProps(props, skeletonVariantKeys)
|
|
18
22
|
},
|
|
23
|
+
getVariantProps: skeletonFn.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 SliderVariant {
|
|
7
6
|
|
|
@@ -12,7 +11,7 @@ type SliderVariantMap = {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export type SliderVariantProps = {
|
|
15
|
-
[key in keyof SliderVariant]?: ConditionalValue<SliderVariant[key]>
|
|
14
|
+
[key in keyof SliderVariant]?: ConditionalValue<SliderVariant[key]> | undefined
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export interface SliderRecipe {
|
|
@@ -22,7 +21,12 @@ export interface SliderRecipe {
|
|
|
22
21
|
variantMap: SliderVariantMap
|
|
23
22
|
variantKeys: Array<keyof SliderVariant>
|
|
24
23
|
splitVariantProps<Props extends SliderVariantProps>(props: Props): [SliderVariantProps, Pretty<DistributiveOmit<Props, keyof SliderVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: SliderVariantProps) => SliderVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the Slider component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const slider: SliderRecipe
|
|
@@ -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 sliderDefaultVariants = {}
|
|
@@ -24,11 +24,12 @@ const sliderSlotNames = [
|
|
|
24
24
|
]
|
|
25
25
|
const sliderSlotFns = /* @__PURE__ */ sliderSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, sliderDefaultVariants, getSlotCompoundVariant(sliderCompoundVariants, slotName))])
|
|
26
26
|
|
|
27
|
-
const sliderFn = (props = {}) => {
|
|
28
|
-
return Object.fromEntries(sliderSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
29
|
-
}
|
|
27
|
+
const sliderFn = memo((props = {}) => {
|
|
28
|
+
return Object.fromEntries(sliderSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
29
|
+
})
|
|
30
30
|
|
|
31
31
|
const sliderVariantKeys = []
|
|
32
|
+
const getVariantProps = (variants) => ({ ...sliderDefaultVariants, ...compact(variants) })
|
|
32
33
|
|
|
33
34
|
export const slider = /* @__PURE__ */ Object.assign(sliderFn, {
|
|
34
35
|
__recipe__: false,
|
|
@@ -39,4 +40,5 @@ export const slider = /* @__PURE__ */ Object.assign(sliderFn, {
|
|
|
39
40
|
splitVariantProps(props) {
|
|
40
41
|
return splitProps(props, sliderVariantKeys)
|
|
41
42
|
},
|
|
43
|
+
getVariantProps
|
|
42
44
|
})
|
|
@@ -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 SmallVariant {
|
|
7
6
|
|
|
@@ -12,7 +11,7 @@ type SmallVariantMap = {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export type SmallVariantProps = {
|
|
15
|
-
[key in keyof SmallVariant]?: ConditionalValue<SmallVariant[key]>
|
|
14
|
+
[key in keyof SmallVariant]?: ConditionalValue<SmallVariant[key]> | undefined
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export interface SmallRecipe {
|
|
@@ -22,7 +21,12 @@ export interface SmallRecipe {
|
|
|
22
21
|
variantMap: SmallVariantMap
|
|
23
22
|
variantKeys: Array<keyof SmallVariant>
|
|
24
23
|
splitVariantProps<Props extends SmallVariantProps>(props: Props): [SmallVariantProps, Pretty<DistributiveOmit<Props, keyof SmallVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: SmallVariantProps) => SmallVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Typography - Small style
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const small: SmallRecipe
|
|
@@ -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 smallFn = /* @__PURE__ */ createRecipe('small', {}, [])
|
|
5
5
|
|
|
@@ -7,13 +7,18 @@ const smallVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const smallVariantKeys = Object.keys(smallVariantMap)
|
|
9
9
|
|
|
10
|
-
export const small = /* @__PURE__ */ Object.assign(smallFn, {
|
|
10
|
+
export const small = /* @__PURE__ */ Object.assign(memo(smallFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'small',
|
|
13
|
+
__getCompoundVariantCss__: smallFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: smallVariantKeys,
|
|
15
16
|
variantMap: smallVariantMap,
|
|
17
|
+
merge(recipe) {
|
|
18
|
+
return mergeRecipes(this, recipe)
|
|
19
|
+
},
|
|
16
20
|
splitVariantProps(props) {
|
|
17
21
|
return splitProps(props, smallVariantKeys)
|
|
18
22
|
},
|
|
23
|
+
getVariantProps: smallFn.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 SwitchRecipeVariant {
|
|
7
6
|
|
|
@@ -12,7 +11,7 @@ type SwitchRecipeVariantMap = {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export type SwitchRecipeVariantProps = {
|
|
15
|
-
[key in keyof SwitchRecipeVariant]?: ConditionalValue<SwitchRecipeVariant[key]>
|
|
14
|
+
[key in keyof SwitchRecipeVariant]?: ConditionalValue<SwitchRecipeVariant[key]> | undefined
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export interface SwitchRecipeRecipe {
|
|
@@ -22,7 +21,12 @@ export interface SwitchRecipeRecipe {
|
|
|
22
21
|
variantMap: SwitchRecipeVariantMap
|
|
23
22
|
variantKeys: Array<keyof SwitchRecipeVariant>
|
|
24
23
|
splitVariantProps<Props extends SwitchRecipeVariantProps>(props: Props): [SwitchRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof SwitchRecipeVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: SwitchRecipeVariantProps) => SwitchRecipeVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the Switch component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const switchRecipe: SwitchRecipeRecipe
|
|
@@ -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 switchRecipeDefaultVariants = {}
|
|
@@ -16,11 +16,12 @@ const switchRecipeSlotNames = [
|
|
|
16
16
|
]
|
|
17
17
|
const switchRecipeSlotFns = /* @__PURE__ */ switchRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, switchRecipeDefaultVariants, getSlotCompoundVariant(switchRecipeCompoundVariants, slotName))])
|
|
18
18
|
|
|
19
|
-
const switchRecipeFn = (props = {}) => {
|
|
20
|
-
return Object.fromEntries(switchRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
21
|
-
}
|
|
19
|
+
const switchRecipeFn = memo((props = {}) => {
|
|
20
|
+
return Object.fromEntries(switchRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
21
|
+
})
|
|
22
22
|
|
|
23
23
|
const switchRecipeVariantKeys = []
|
|
24
|
+
const getVariantProps = (variants) => ({ ...switchRecipeDefaultVariants, ...compact(variants) })
|
|
24
25
|
|
|
25
26
|
export const switchRecipe = /* @__PURE__ */ Object.assign(switchRecipeFn, {
|
|
26
27
|
__recipe__: false,
|
|
@@ -31,4 +32,5 @@ export const switchRecipe = /* @__PURE__ */ Object.assign(switchRecipeFn, {
|
|
|
31
32
|
splitVariantProps(props) {
|
|
32
33
|
return splitProps(props, switchRecipeVariantKeys)
|
|
33
34
|
},
|
|
35
|
+
getVariantProps
|
|
34
36
|
})
|
|
@@ -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 TableBodyVariant {
|
|
7
6
|
|
|
@@ -12,7 +11,7 @@ type TableBodyVariantMap = {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export type TableBodyVariantProps = {
|
|
15
|
-
[key in keyof TableBodyVariant]?: ConditionalValue<TableBodyVariant[key]>
|
|
14
|
+
[key in keyof TableBodyVariant]?: ConditionalValue<TableBodyVariant[key]> | undefined
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export interface TableBodyRecipe {
|
|
@@ -22,7 +21,12 @@ export interface TableBodyRecipe {
|
|
|
22
21
|
variantMap: TableBodyVariantMap
|
|
23
22
|
variantKeys: Array<keyof TableBodyVariant>
|
|
24
23
|
splitVariantProps<Props extends TableBodyVariantProps>(props: Props): [TableBodyVariantProps, Pretty<DistributiveOmit<Props, keyof TableBodyVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: TableBodyVariantProps) => TableBodyVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the TableBody component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const tableBody: TableBodyRecipe
|
|
@@ -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 tableBodyFn = /* @__PURE__ */ createRecipe('tableBody', {}, [])
|
|
5
5
|
|
|
@@ -7,13 +7,18 @@ const tableBodyVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const tableBodyVariantKeys = Object.keys(tableBodyVariantMap)
|
|
9
9
|
|
|
10
|
-
export const tableBody = /* @__PURE__ */ Object.assign(tableBodyFn, {
|
|
10
|
+
export const tableBody = /* @__PURE__ */ Object.assign(memo(tableBodyFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'tableBody',
|
|
13
|
+
__getCompoundVariantCss__: tableBodyFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: tableBodyVariantKeys,
|
|
15
16
|
variantMap: tableBodyVariantMap,
|
|
17
|
+
merge(recipe) {
|
|
18
|
+
return mergeRecipes(this, recipe)
|
|
19
|
+
},
|
|
16
20
|
splitVariantProps(props) {
|
|
17
21
|
return splitProps(props, tableBodyVariantKeys)
|
|
18
22
|
},
|
|
23
|
+
getVariantProps: tableBodyFn.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 TableCaptionVariant {
|
|
7
6
|
|
|
@@ -12,7 +11,7 @@ type TableCaptionVariantMap = {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export type TableCaptionVariantProps = {
|
|
15
|
-
[key in keyof TableCaptionVariant]?: ConditionalValue<TableCaptionVariant[key]>
|
|
14
|
+
[key in keyof TableCaptionVariant]?: ConditionalValue<TableCaptionVariant[key]> | undefined
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export interface TableCaptionRecipe {
|
|
@@ -22,7 +21,12 @@ export interface TableCaptionRecipe {
|
|
|
22
21
|
variantMap: TableCaptionVariantMap
|
|
23
22
|
variantKeys: Array<keyof TableCaptionVariant>
|
|
24
23
|
splitVariantProps<Props extends TableCaptionVariantProps>(props: Props): [TableCaptionVariantProps, Pretty<DistributiveOmit<Props, keyof TableCaptionVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: TableCaptionVariantProps) => TableCaptionVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the TableCaption component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const tableCaption: TableCaptionRecipe
|
|
@@ -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 tableCaptionFn = /* @__PURE__ */ createRecipe('tableCaption', {}, [])
|
|
5
5
|
|
|
@@ -7,13 +7,18 @@ const tableCaptionVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const tableCaptionVariantKeys = Object.keys(tableCaptionVariantMap)
|
|
9
9
|
|
|
10
|
-
export const tableCaption = /* @__PURE__ */ Object.assign(tableCaptionFn, {
|
|
10
|
+
export const tableCaption = /* @__PURE__ */ Object.assign(memo(tableCaptionFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'tableCaption',
|
|
13
|
+
__getCompoundVariantCss__: tableCaptionFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: tableCaptionVariantKeys,
|
|
15
16
|
variantMap: tableCaptionVariantMap,
|
|
17
|
+
merge(recipe) {
|
|
18
|
+
return mergeRecipes(this, recipe)
|
|
19
|
+
},
|
|
16
20
|
splitVariantProps(props) {
|
|
17
21
|
return splitProps(props, tableCaptionVariantKeys)
|
|
18
22
|
},
|
|
23
|
+
getVariantProps: tableCaptionFn.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 TableCellVariant {
|
|
7
6
|
|
|
@@ -12,7 +11,7 @@ type TableCellVariantMap = {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export type TableCellVariantProps = {
|
|
15
|
-
[key in keyof TableCellVariant]?: ConditionalValue<TableCellVariant[key]>
|
|
14
|
+
[key in keyof TableCellVariant]?: ConditionalValue<TableCellVariant[key]> | undefined
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export interface TableCellRecipe {
|
|
@@ -22,7 +21,12 @@ export interface TableCellRecipe {
|
|
|
22
21
|
variantMap: TableCellVariantMap
|
|
23
22
|
variantKeys: Array<keyof TableCellVariant>
|
|
24
23
|
splitVariantProps<Props extends TableCellVariantProps>(props: Props): [TableCellVariantProps, Pretty<DistributiveOmit<Props, keyof TableCellVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: TableCellVariantProps) => TableCellVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the TableCell component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const tableCell: TableCellRecipe
|
|
@@ -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 tableCellFn = /* @__PURE__ */ createRecipe('tableCell', {}, [])
|
|
5
5
|
|
|
@@ -7,13 +7,18 @@ const tableCellVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const tableCellVariantKeys = Object.keys(tableCellVariantMap)
|
|
9
9
|
|
|
10
|
-
export const tableCell = /* @__PURE__ */ Object.assign(tableCellFn, {
|
|
10
|
+
export const tableCell = /* @__PURE__ */ Object.assign(memo(tableCellFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'tableCell',
|
|
13
|
+
__getCompoundVariantCss__: tableCellFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: tableCellVariantKeys,
|
|
15
16
|
variantMap: tableCellVariantMap,
|
|
17
|
+
merge(recipe) {
|
|
18
|
+
return mergeRecipes(this, recipe)
|
|
19
|
+
},
|
|
16
20
|
splitVariantProps(props) {
|
|
17
21
|
return splitProps(props, tableCellVariantKeys)
|
|
18
22
|
},
|
|
23
|
+
getVariantProps: tableCellFn.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 TableContainerVariant {
|
|
7
6
|
|
|
@@ -12,7 +11,7 @@ type TableContainerVariantMap = {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export type TableContainerVariantProps = {
|
|
15
|
-
[key in keyof TableContainerVariant]?: ConditionalValue<TableContainerVariant[key]>
|
|
14
|
+
[key in keyof TableContainerVariant]?: ConditionalValue<TableContainerVariant[key]> | undefined
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export interface TableContainerRecipe {
|
|
@@ -22,7 +21,12 @@ export interface TableContainerRecipe {
|
|
|
22
21
|
variantMap: TableContainerVariantMap
|
|
23
22
|
variantKeys: Array<keyof TableContainerVariant>
|
|
24
23
|
splitVariantProps<Props extends TableContainerVariantProps>(props: Props): [TableContainerVariantProps, Pretty<DistributiveOmit<Props, keyof TableContainerVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: TableContainerVariantProps) => TableContainerVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the TableContainer component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const tableContainer: TableContainerRecipe
|
|
@@ -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 tableContainerFn = /* @__PURE__ */ createRecipe('tableContainer', {}, [])
|
|
5
5
|
|
|
@@ -7,13 +7,18 @@ const tableContainerVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const tableContainerVariantKeys = Object.keys(tableContainerVariantMap)
|
|
9
9
|
|
|
10
|
-
export const tableContainer = /* @__PURE__ */ Object.assign(tableContainerFn, {
|
|
10
|
+
export const tableContainer = /* @__PURE__ */ Object.assign(memo(tableContainerFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'tableContainer',
|
|
13
|
+
__getCompoundVariantCss__: tableContainerFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: tableContainerVariantKeys,
|
|
15
16
|
variantMap: tableContainerVariantMap,
|
|
17
|
+
merge(recipe) {
|
|
18
|
+
return mergeRecipes(this, recipe)
|
|
19
|
+
},
|
|
16
20
|
splitVariantProps(props) {
|
|
17
21
|
return splitProps(props, tableContainerVariantKeys)
|
|
18
22
|
},
|
|
23
|
+
getVariantProps: tableContainerFn.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 TableFooterVariant {
|
|
7
6
|
|
|
@@ -12,7 +11,7 @@ type TableFooterVariantMap = {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export type TableFooterVariantProps = {
|
|
15
|
-
[key in keyof TableFooterVariant]?: ConditionalValue<TableFooterVariant[key]>
|
|
14
|
+
[key in keyof TableFooterVariant]?: ConditionalValue<TableFooterVariant[key]> | undefined
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export interface TableFooterRecipe {
|
|
@@ -22,7 +21,12 @@ export interface TableFooterRecipe {
|
|
|
22
21
|
variantMap: TableFooterVariantMap
|
|
23
22
|
variantKeys: Array<keyof TableFooterVariant>
|
|
24
23
|
splitVariantProps<Props extends TableFooterVariantProps>(props: Props): [TableFooterVariantProps, Pretty<DistributiveOmit<Props, keyof TableFooterVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: TableFooterVariantProps) => TableFooterVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the TableFooter component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const tableFooter: TableFooterRecipe
|
|
@@ -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 tableFooterFn = /* @__PURE__ */ createRecipe('tableFooter', {}, [])
|
|
5
5
|
|
|
@@ -7,13 +7,18 @@ const tableFooterVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const tableFooterVariantKeys = Object.keys(tableFooterVariantMap)
|
|
9
9
|
|
|
10
|
-
export const tableFooter = /* @__PURE__ */ Object.assign(tableFooterFn, {
|
|
10
|
+
export const tableFooter = /* @__PURE__ */ Object.assign(memo(tableFooterFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'tableFooter',
|
|
13
|
+
__getCompoundVariantCss__: tableFooterFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: tableFooterVariantKeys,
|
|
15
16
|
variantMap: tableFooterVariantMap,
|
|
17
|
+
merge(recipe) {
|
|
18
|
+
return mergeRecipes(this, recipe)
|
|
19
|
+
},
|
|
16
20
|
splitVariantProps(props) {
|
|
17
21
|
return splitProps(props, tableFooterVariantKeys)
|
|
18
22
|
},
|
|
23
|
+
getVariantProps: tableFooterFn.getVariantProps,
|
|
19
24
|
})
|