@luxonis/depthai-pipeline-lib 1.4.12 → 1.4.14
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/components/PipelineCanvas.js +14 -9
- 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 +3 -3
- package/dist/src/styled-system/chunks/src__components__Node.css +0 -195
- package/dist/src/styled-system/chunks/src__components__PipelineCanvas.css +0 -25
- package/dist/src/styled-system/global.css +0 -70
- package/dist/src/styled-system/patterns/link-box.d.mts +0 -21
- package/dist/src/styled-system/patterns/link-box.mjs +0 -19
- package/dist/src/styled-system/recipes/create-recipe.d.mts +0 -1
- package/dist/src/styled-system/reset.css +0 -206
- package/dist/src/styled-system/static.css +0 -320
- package/dist/src/styled-system/tokens/index.css +0 -620
- package/dist/src/styled-system/tokens/keyframes.css +0 -56
- package/dist/src/styled-system/types/helpers.d.mts +0 -2
|
@@ -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 TableHeadVariant {
|
|
7
6
|
|
|
@@ -12,7 +11,7 @@ type TableHeadVariantMap = {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export type TableHeadVariantProps = {
|
|
15
|
-
[key in keyof TableHeadVariant]?: ConditionalValue<TableHeadVariant[key]>
|
|
14
|
+
[key in keyof TableHeadVariant]?: ConditionalValue<TableHeadVariant[key]> | undefined
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export interface TableHeadRecipe {
|
|
@@ -22,7 +21,12 @@ export interface TableHeadRecipe {
|
|
|
22
21
|
variantMap: TableHeadVariantMap
|
|
23
22
|
variantKeys: Array<keyof TableHeadVariant>
|
|
24
23
|
splitVariantProps<Props extends TableHeadVariantProps>(props: Props): [TableHeadVariantProps, Pretty<DistributiveOmit<Props, keyof TableHeadVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: TableHeadVariantProps) => TableHeadVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the TableHead component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const tableHead: TableHeadRecipe
|
|
@@ -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 tableHeadFn = /* @__PURE__ */ createRecipe('tableHead', {}, [])
|
|
5
5
|
|
|
@@ -7,13 +7,18 @@ const tableHeadVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const tableHeadVariantKeys = Object.keys(tableHeadVariantMap)
|
|
9
9
|
|
|
10
|
-
export const tableHead = /* @__PURE__ */ Object.assign(tableHeadFn, {
|
|
10
|
+
export const tableHead = /* @__PURE__ */ Object.assign(memo(tableHeadFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'tableHead',
|
|
13
|
+
__getCompoundVariantCss__: tableHeadFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: tableHeadVariantKeys,
|
|
15
16
|
variantMap: tableHeadVariantMap,
|
|
17
|
+
merge(recipe) {
|
|
18
|
+
return mergeRecipes(this, recipe)
|
|
19
|
+
},
|
|
16
20
|
splitVariantProps(props) {
|
|
17
21
|
return splitProps(props, tableHeadVariantKeys)
|
|
18
22
|
},
|
|
23
|
+
getVariantProps: tableHeadFn.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 TableHeaderVariant {
|
|
7
6
|
|
|
@@ -12,7 +11,7 @@ type TableHeaderVariantMap = {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export type TableHeaderVariantProps = {
|
|
15
|
-
[key in keyof TableHeaderVariant]?: ConditionalValue<TableHeaderVariant[key]>
|
|
14
|
+
[key in keyof TableHeaderVariant]?: ConditionalValue<TableHeaderVariant[key]> | undefined
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export interface TableHeaderRecipe {
|
|
@@ -22,7 +21,12 @@ export interface TableHeaderRecipe {
|
|
|
22
21
|
variantMap: TableHeaderVariantMap
|
|
23
22
|
variantKeys: Array<keyof TableHeaderVariant>
|
|
24
23
|
splitVariantProps<Props extends TableHeaderVariantProps>(props: Props): [TableHeaderVariantProps, Pretty<DistributiveOmit<Props, keyof TableHeaderVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: TableHeaderVariantProps) => TableHeaderVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the TableHeader component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const tableHeader: TableHeaderRecipe
|
|
@@ -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 tableHeaderFn = /* @__PURE__ */ createRecipe('tableHeader', {}, [])
|
|
5
5
|
|
|
@@ -7,13 +7,18 @@ const tableHeaderVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const tableHeaderVariantKeys = Object.keys(tableHeaderVariantMap)
|
|
9
9
|
|
|
10
|
-
export const tableHeader = /* @__PURE__ */ Object.assign(tableHeaderFn, {
|
|
10
|
+
export const tableHeader = /* @__PURE__ */ Object.assign(memo(tableHeaderFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'tableHeader',
|
|
13
|
+
__getCompoundVariantCss__: tableHeaderFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: tableHeaderVariantKeys,
|
|
15
16
|
variantMap: tableHeaderVariantMap,
|
|
17
|
+
merge(recipe) {
|
|
18
|
+
return mergeRecipes(this, recipe)
|
|
19
|
+
},
|
|
16
20
|
splitVariantProps(props) {
|
|
17
21
|
return splitProps(props, tableHeaderVariantKeys)
|
|
18
22
|
},
|
|
23
|
+
getVariantProps: tableHeaderFn.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 TableRowVariant {
|
|
7
6
|
|
|
@@ -12,7 +11,7 @@ type TableRowVariantMap = {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export type TableRowVariantProps = {
|
|
15
|
-
[key in keyof TableRowVariant]?: ConditionalValue<TableRowVariant[key]>
|
|
14
|
+
[key in keyof TableRowVariant]?: ConditionalValue<TableRowVariant[key]> | undefined
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export interface TableRowRecipe {
|
|
@@ -22,7 +21,12 @@ export interface TableRowRecipe {
|
|
|
22
21
|
variantMap: TableRowVariantMap
|
|
23
22
|
variantKeys: Array<keyof TableRowVariant>
|
|
24
23
|
splitVariantProps<Props extends TableRowVariantProps>(props: Props): [TableRowVariantProps, Pretty<DistributiveOmit<Props, keyof TableRowVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: TableRowVariantProps) => TableRowVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the TableRow component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const tableRow: TableRowRecipe
|
|
@@ -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 tableRowFn = /* @__PURE__ */ createRecipe('tableRow', {}, [])
|
|
5
5
|
|
|
@@ -7,13 +7,18 @@ const tableRowVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const tableRowVariantKeys = Object.keys(tableRowVariantMap)
|
|
9
9
|
|
|
10
|
-
export const tableRow = /* @__PURE__ */ Object.assign(tableRowFn, {
|
|
10
|
+
export const tableRow = /* @__PURE__ */ Object.assign(memo(tableRowFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'tableRow',
|
|
13
|
+
__getCompoundVariantCss__: tableRowFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: tableRowVariantKeys,
|
|
15
16
|
variantMap: tableRowVariantMap,
|
|
17
|
+
merge(recipe) {
|
|
18
|
+
return mergeRecipes(this, recipe)
|
|
19
|
+
},
|
|
16
20
|
splitVariantProps(props) {
|
|
17
21
|
return splitProps(props, tableRowVariantKeys)
|
|
18
22
|
},
|
|
23
|
+
getVariantProps: tableRowFn.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 TableVariant {
|
|
7
6
|
|
|
@@ -12,7 +11,7 @@ type TableVariantMap = {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export type TableVariantProps = {
|
|
15
|
-
[key in keyof TableVariant]?: ConditionalValue<TableVariant[key]>
|
|
14
|
+
[key in keyof TableVariant]?: ConditionalValue<TableVariant[key]> | undefined
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export interface TableRecipe {
|
|
@@ -22,7 +21,12 @@ export interface TableRecipe {
|
|
|
22
21
|
variantMap: TableVariantMap
|
|
23
22
|
variantKeys: Array<keyof TableVariant>
|
|
24
23
|
splitVariantProps<Props extends TableVariantProps>(props: Props): [TableVariantProps, Pretty<DistributiveOmit<Props, keyof TableVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: TableVariantProps) => TableVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the Table component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const table: TableRecipe
|
|
@@ -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 tableFn = /* @__PURE__ */ createRecipe('table', {}, [])
|
|
5
5
|
|
|
@@ -7,13 +7,18 @@ const tableVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const tableVariantKeys = Object.keys(tableVariantMap)
|
|
9
9
|
|
|
10
|
-
export const table = /* @__PURE__ */ Object.assign(tableFn, {
|
|
10
|
+
export const table = /* @__PURE__ */ Object.assign(memo(tableFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'table',
|
|
13
|
+
__getCompoundVariantCss__: tableFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: tableVariantKeys,
|
|
15
16
|
variantMap: tableVariantMap,
|
|
17
|
+
merge(recipe) {
|
|
18
|
+
return mergeRecipes(this, recipe)
|
|
19
|
+
},
|
|
16
20
|
splitVariantProps(props) {
|
|
17
21
|
return splitProps(props, tableVariantKeys)
|
|
18
22
|
},
|
|
23
|
+
getVariantProps: tableFn.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 TabsVariant {
|
|
7
6
|
|
|
@@ -12,7 +11,7 @@ type TabsVariantMap = {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export type TabsVariantProps = {
|
|
15
|
-
[key in keyof TabsVariant]?: ConditionalValue<TabsVariant[key]>
|
|
14
|
+
[key in keyof TabsVariant]?: ConditionalValue<TabsVariant[key]> | undefined
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export interface TabsRecipe {
|
|
@@ -22,7 +21,12 @@ export interface TabsRecipe {
|
|
|
22
21
|
variantMap: TabsVariantMap
|
|
23
22
|
variantKeys: Array<keyof TabsVariant>
|
|
24
23
|
splitVariantProps<Props extends TabsVariantProps>(props: Props): [TabsVariantProps, Pretty<DistributiveOmit<Props, keyof TabsVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: TabsVariantProps) => TabsVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the Tabs component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const tabs: TabsRecipe
|
|
@@ -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 tabsDefaultVariants = {}
|
|
@@ -24,11 +24,12 @@ const tabsSlotNames = [
|
|
|
24
24
|
]
|
|
25
25
|
const tabsSlotFns = /* @__PURE__ */ tabsSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, tabsDefaultVariants, getSlotCompoundVariant(tabsCompoundVariants, slotName))])
|
|
26
26
|
|
|
27
|
-
const tabsFn = (props = {}) => {
|
|
28
|
-
return Object.fromEntries(tabsSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
29
|
-
}
|
|
27
|
+
const tabsFn = memo((props = {}) => {
|
|
28
|
+
return Object.fromEntries(tabsSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
29
|
+
})
|
|
30
30
|
|
|
31
31
|
const tabsVariantKeys = []
|
|
32
|
+
const getVariantProps = (variants) => ({ ...tabsDefaultVariants, ...compact(variants) })
|
|
32
33
|
|
|
33
34
|
export const tabs = /* @__PURE__ */ Object.assign(tabsFn, {
|
|
34
35
|
__recipe__: false,
|
|
@@ -39,4 +40,5 @@ export const tabs = /* @__PURE__ */ Object.assign(tabsFn, {
|
|
|
39
40
|
splitVariantProps(props) {
|
|
40
41
|
return splitProps(props, tabsVariantKeys)
|
|
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 TextareaVariant {
|
|
7
6
|
|
|
@@ -12,7 +11,7 @@ type TextareaVariantMap = {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export type TextareaVariantProps = {
|
|
15
|
-
[key in keyof TextareaVariant]?: ConditionalValue<TextareaVariant[key]>
|
|
14
|
+
[key in keyof TextareaVariant]?: ConditionalValue<TextareaVariant[key]> | undefined
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export interface TextareaRecipe {
|
|
@@ -22,7 +21,12 @@ export interface TextareaRecipe {
|
|
|
22
21
|
variantMap: TextareaVariantMap
|
|
23
22
|
variantKeys: Array<keyof TextareaVariant>
|
|
24
23
|
splitVariantProps<Props extends TextareaVariantProps>(props: Props): [TextareaVariantProps, Pretty<DistributiveOmit<Props, keyof TextareaVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: TextareaVariantProps) => TextareaVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the Textarea component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const textarea: TextareaRecipe
|
|
@@ -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 textareaFn = /* @__PURE__ */ createRecipe('textarea', {}, [])
|
|
5
5
|
|
|
@@ -7,13 +7,18 @@ const textareaVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const textareaVariantKeys = Object.keys(textareaVariantMap)
|
|
9
9
|
|
|
10
|
-
export const textarea = /* @__PURE__ */ Object.assign(textareaFn, {
|
|
10
|
+
export const textarea = /* @__PURE__ */ Object.assign(memo(textareaFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'textarea',
|
|
13
|
+
__getCompoundVariantCss__: textareaFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: textareaVariantKeys,
|
|
15
16
|
variantMap: textareaVariantMap,
|
|
17
|
+
merge(recipe) {
|
|
18
|
+
return mergeRecipes(this, recipe)
|
|
19
|
+
},
|
|
16
20
|
splitVariantProps(props) {
|
|
17
21
|
return splitProps(props, textareaVariantKeys)
|
|
18
22
|
},
|
|
23
|
+
getVariantProps: textareaFn.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 ToastViewportVariant {
|
|
7
6
|
|
|
@@ -12,7 +11,7 @@ type ToastViewportVariantMap = {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export type ToastViewportVariantProps = {
|
|
15
|
-
[key in keyof ToastViewportVariant]?: ConditionalValue<ToastViewportVariant[key]>
|
|
14
|
+
[key in keyof ToastViewportVariant]?: ConditionalValue<ToastViewportVariant[key]> | undefined
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export interface ToastViewportRecipe {
|
|
@@ -22,7 +21,12 @@ export interface ToastViewportRecipe {
|
|
|
22
21
|
variantMap: ToastViewportVariantMap
|
|
23
22
|
variantKeys: Array<keyof ToastViewportVariant>
|
|
24
23
|
splitVariantProps<Props extends ToastViewportVariantProps>(props: Props): [ToastViewportVariantProps, Pretty<DistributiveOmit<Props, keyof ToastViewportVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: ToastViewportVariantProps) => ToastViewportVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the ToastViewport component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const toastViewport: ToastViewportRecipe
|
|
@@ -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 toastViewportFn = /* @__PURE__ */ createRecipe('toastViewport', {}, [])
|
|
5
5
|
|
|
@@ -7,13 +7,18 @@ const toastViewportVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const toastViewportVariantKeys = Object.keys(toastViewportVariantMap)
|
|
9
9
|
|
|
10
|
-
export const toastViewport = /* @__PURE__ */ Object.assign(toastViewportFn, {
|
|
10
|
+
export const toastViewport = /* @__PURE__ */ Object.assign(memo(toastViewportFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'toastViewport',
|
|
13
|
+
__getCompoundVariantCss__: toastViewportFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: toastViewportVariantKeys,
|
|
15
16
|
variantMap: toastViewportVariantMap,
|
|
17
|
+
merge(recipe) {
|
|
18
|
+
return mergeRecipes(this, recipe)
|
|
19
|
+
},
|
|
16
20
|
splitVariantProps(props) {
|
|
17
21
|
return splitProps(props, toastViewportVariantKeys)
|
|
18
22
|
},
|
|
23
|
+
getVariantProps: toastViewportFn.getVariantProps,
|
|
19
24
|
})
|
|
@@ -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 ToastVariant {
|
|
7
|
-
|
|
6
|
+
/**
|
|
7
|
+
* @default "default"
|
|
8
|
+
*/
|
|
9
|
+
variant: "default" | "destructive"
|
|
8
10
|
}
|
|
9
11
|
|
|
10
12
|
type ToastVariantMap = {
|
|
@@ -12,7 +14,7 @@ type ToastVariantMap = {
|
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
export type ToastVariantProps = {
|
|
15
|
-
[key in keyof ToastVariant]?: ConditionalValue<ToastVariant[key]>
|
|
17
|
+
[key in keyof ToastVariant]?: ConditionalValue<ToastVariant[key]> | undefined
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
export interface ToastRecipe {
|
|
@@ -22,7 +24,12 @@ export interface ToastRecipe {
|
|
|
22
24
|
variantMap: ToastVariantMap
|
|
23
25
|
variantKeys: Array<keyof ToastVariant>
|
|
24
26
|
splitVariantProps<Props extends ToastVariantProps>(props: Props): [ToastVariantProps, Pretty<DistributiveOmit<Props, keyof ToastVariantProps>>]
|
|
27
|
+
getVariantProps: (props?: ToastVariantProps) => ToastVariantProps
|
|
25
28
|
}
|
|
26
29
|
|
|
27
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* Styles for the Toast component
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
*/
|
|
28
35
|
export declare const toast: ToastRecipe
|
|
@@ -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 toastDefaultVariants = {
|
|
@@ -34,13 +34,14 @@ const toastSlotNames = [
|
|
|
34
34
|
]
|
|
35
35
|
const toastSlotFns = /* @__PURE__ */ toastSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, toastDefaultVariants, getSlotCompoundVariant(toastCompoundVariants, slotName))])
|
|
36
36
|
|
|
37
|
-
const toastFn = (props = {}) => {
|
|
38
|
-
return Object.fromEntries(toastSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
39
|
-
}
|
|
37
|
+
const toastFn = memo((props = {}) => {
|
|
38
|
+
return Object.fromEntries(toastSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
39
|
+
})
|
|
40
40
|
|
|
41
41
|
const toastVariantKeys = [
|
|
42
42
|
"variant"
|
|
43
43
|
]
|
|
44
|
+
const getVariantProps = (variants) => ({ ...toastDefaultVariants, ...compact(variants) })
|
|
44
45
|
|
|
45
46
|
export const toast = /* @__PURE__ */ Object.assign(toastFn, {
|
|
46
47
|
__recipe__: false,
|
|
@@ -56,4 +57,5 @@ export const toast = /* @__PURE__ */ Object.assign(toastFn, {
|
|
|
56
57
|
splitVariantProps(props) {
|
|
57
58
|
return splitProps(props, toastVariantKeys)
|
|
58
59
|
},
|
|
60
|
+
getVariantProps
|
|
59
61
|
})
|
|
@@ -1,10 +1,15 @@
|
|
|
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 ToggleVariant {
|
|
7
|
-
|
|
6
|
+
/**
|
|
7
|
+
* @default "default"
|
|
8
|
+
*/
|
|
9
|
+
variant: "default" | "outline"
|
|
10
|
+
/**
|
|
11
|
+
* @default "default"
|
|
12
|
+
*/
|
|
8
13
|
size: "default" | "sm" | "lg"
|
|
9
14
|
}
|
|
10
15
|
|
|
@@ -13,7 +18,7 @@ type ToggleVariantMap = {
|
|
|
13
18
|
}
|
|
14
19
|
|
|
15
20
|
export type ToggleVariantProps = {
|
|
16
|
-
[key in keyof ToggleVariant]?: ConditionalValue<ToggleVariant[key]>
|
|
21
|
+
[key in keyof ToggleVariant]?: ConditionalValue<ToggleVariant[key]> | undefined
|
|
17
22
|
}
|
|
18
23
|
|
|
19
24
|
export interface ToggleRecipe {
|
|
@@ -23,7 +28,12 @@ export interface ToggleRecipe {
|
|
|
23
28
|
variantMap: ToggleVariantMap
|
|
24
29
|
variantKeys: Array<keyof ToggleVariant>
|
|
25
30
|
splitVariantProps<Props extends ToggleVariantProps>(props: Props): [ToggleVariantProps, Pretty<DistributiveOmit<Props, keyof ToggleVariantProps>>]
|
|
31
|
+
getVariantProps: (props?: ToggleVariantProps) => ToggleVariantProps
|
|
26
32
|
}
|
|
27
33
|
|
|
28
|
-
/**
|
|
34
|
+
/**
|
|
35
|
+
* Styles for the Toggle component
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
*/
|
|
29
39
|
export declare const toggle: ToggleRecipe
|
|
@@ -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 toggleFn = /* @__PURE__ */ createRecipe('toggle', {
|
|
5
5
|
"variant": "default",
|
|
@@ -20,13 +20,18 @@ const toggleVariantMap = {
|
|
|
20
20
|
|
|
21
21
|
const toggleVariantKeys = Object.keys(toggleVariantMap)
|
|
22
22
|
|
|
23
|
-
export const toggle = /* @__PURE__ */ Object.assign(toggleFn, {
|
|
23
|
+
export const toggle = /* @__PURE__ */ Object.assign(memo(toggleFn.recipeFn), {
|
|
24
24
|
__recipe__: true,
|
|
25
25
|
__name__: 'toggle',
|
|
26
|
+
__getCompoundVariantCss__: toggleFn.__getCompoundVariantCss__,
|
|
26
27
|
raw: (props) => props,
|
|
27
28
|
variantKeys: toggleVariantKeys,
|
|
28
29
|
variantMap: toggleVariantMap,
|
|
30
|
+
merge(recipe) {
|
|
31
|
+
return mergeRecipes(this, recipe)
|
|
32
|
+
},
|
|
29
33
|
splitVariantProps(props) {
|
|
30
34
|
return splitProps(props, toggleVariantKeys)
|
|
31
35
|
},
|
|
36
|
+
getVariantProps: toggleFn.getVariantProps,
|
|
32
37
|
})
|
|
@@ -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 TooltipVariant {
|
|
7
6
|
|
|
@@ -12,7 +11,7 @@ type TooltipVariantMap = {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export type TooltipVariantProps = {
|
|
15
|
-
[key in keyof TooltipVariant]?: ConditionalValue<TooltipVariant[key]>
|
|
14
|
+
[key in keyof TooltipVariant]?: ConditionalValue<TooltipVariant[key]> | undefined
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export interface TooltipRecipe {
|
|
@@ -22,7 +21,12 @@ export interface TooltipRecipe {
|
|
|
22
21
|
variantMap: TooltipVariantMap
|
|
23
22
|
variantKeys: Array<keyof TooltipVariant>
|
|
24
23
|
splitVariantProps<Props extends TooltipVariantProps>(props: Props): [TooltipVariantProps, Pretty<DistributiveOmit<Props, keyof TooltipVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: TooltipVariantProps) => TooltipVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the Tooltip component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const tooltip: TooltipRecipe
|
|
@@ -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 tooltipDefaultVariants = {}
|
|
@@ -20,11 +20,12 @@ const tooltipSlotNames = [
|
|
|
20
20
|
]
|
|
21
21
|
const tooltipSlotFns = /* @__PURE__ */ tooltipSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, tooltipDefaultVariants, getSlotCompoundVariant(tooltipCompoundVariants, slotName))])
|
|
22
22
|
|
|
23
|
-
const tooltipFn = (props = {}) => {
|
|
24
|
-
return Object.fromEntries(tooltipSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
25
|
-
}
|
|
23
|
+
const tooltipFn = memo((props = {}) => {
|
|
24
|
+
return Object.fromEntries(tooltipSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
25
|
+
})
|
|
26
26
|
|
|
27
27
|
const tooltipVariantKeys = []
|
|
28
|
+
const getVariantProps = (variants) => ({ ...tooltipDefaultVariants, ...compact(variants) })
|
|
28
29
|
|
|
29
30
|
export const tooltip = /* @__PURE__ */ Object.assign(tooltipFn, {
|
|
30
31
|
__recipe__: false,
|
|
@@ -35,4 +36,5 @@ export const tooltip = /* @__PURE__ */ Object.assign(tooltipFn, {
|
|
|
35
36
|
splitVariantProps(props) {
|
|
36
37
|
return splitProps(props, tooltipVariantKeys)
|
|
37
38
|
},
|
|
39
|
+
getVariantProps
|
|
38
40
|
})
|
|
@@ -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 TypographyTableContainerVariant {
|
|
7
6
|
|
|
@@ -12,7 +11,7 @@ type TypographyTableContainerVariantMap = {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export type TypographyTableContainerVariantProps = {
|
|
15
|
-
[key in keyof TypographyTableContainerVariant]?: ConditionalValue<TypographyTableContainerVariant[key]>
|
|
14
|
+
[key in keyof TypographyTableContainerVariant]?: ConditionalValue<TypographyTableContainerVariant[key]> | undefined
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export interface TypographyTableContainerRecipe {
|
|
@@ -22,7 +21,12 @@ export interface TypographyTableContainerRecipe {
|
|
|
22
21
|
variantMap: TypographyTableContainerVariantMap
|
|
23
22
|
variantKeys: Array<keyof TypographyTableContainerVariant>
|
|
24
23
|
splitVariantProps<Props extends TypographyTableContainerVariantProps>(props: Props): [TypographyTableContainerVariantProps, Pretty<DistributiveOmit<Props, keyof TypographyTableContainerVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: TypographyTableContainerVariantProps) => TypographyTableContainerVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Typography - table container style
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const typographyTableContainer: TypographyTableContainerRecipe
|