@luxonis/depthai-pipeline-lib 1.4.13 → 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/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 ListVariant {
|
|
7
6
|
|
|
@@ -12,7 +11,7 @@ type ListVariantMap = {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export type ListVariantProps = {
|
|
15
|
-
[key in keyof ListVariant]?: ConditionalValue<ListVariant[key]>
|
|
14
|
+
[key in keyof ListVariant]?: ConditionalValue<ListVariant[key]> | undefined
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export interface ListRecipe {
|
|
@@ -22,7 +21,12 @@ export interface ListRecipe {
|
|
|
22
21
|
variantMap: ListVariantMap
|
|
23
22
|
variantKeys: Array<keyof ListVariant>
|
|
24
23
|
splitVariantProps<Props extends ListVariantProps>(props: Props): [ListVariantProps, Pretty<DistributiveOmit<Props, keyof ListVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: ListVariantProps) => ListVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Typography - list style
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const list: ListRecipe
|
|
@@ -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 listFn = /* @__PURE__ */ createRecipe('list', {}, [])
|
|
5
5
|
|
|
@@ -7,13 +7,18 @@ const listVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const listVariantKeys = Object.keys(listVariantMap)
|
|
9
9
|
|
|
10
|
-
export const list = /* @__PURE__ */ Object.assign(listFn, {
|
|
10
|
+
export const list = /* @__PURE__ */ Object.assign(memo(listFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'list',
|
|
13
|
+
__getCompoundVariantCss__: listFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: listVariantKeys,
|
|
15
16
|
variantMap: listVariantMap,
|
|
17
|
+
merge(recipe) {
|
|
18
|
+
return mergeRecipes(this, recipe)
|
|
19
|
+
},
|
|
16
20
|
splitVariantProps(props) {
|
|
17
21
|
return splitProps(props, listVariantKeys)
|
|
18
22
|
},
|
|
23
|
+
getVariantProps: listFn.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 MenubarVariant {
|
|
7
6
|
|
|
@@ -12,7 +11,7 @@ type MenubarVariantMap = {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export type MenubarVariantProps = {
|
|
15
|
-
[key in keyof MenubarVariant]?: ConditionalValue<MenubarVariant[key]>
|
|
14
|
+
[key in keyof MenubarVariant]?: ConditionalValue<MenubarVariant[key]> | undefined
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export interface MenubarRecipe {
|
|
@@ -22,7 +21,12 @@ export interface MenubarRecipe {
|
|
|
22
21
|
variantMap: MenubarVariantMap
|
|
23
22
|
variantKeys: Array<keyof MenubarVariant>
|
|
24
23
|
splitVariantProps<Props extends MenubarVariantProps>(props: Props): [MenubarVariantProps, Pretty<DistributiveOmit<Props, keyof MenubarVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: MenubarVariantProps) => MenubarVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the Menubar component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const menubar: MenubarRecipe
|
|
@@ -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 menubarDefaultVariants = {}
|
|
@@ -76,11 +76,12 @@ const menubarSlotNames = [
|
|
|
76
76
|
]
|
|
77
77
|
const menubarSlotFns = /* @__PURE__ */ menubarSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, menubarDefaultVariants, getSlotCompoundVariant(menubarCompoundVariants, slotName))])
|
|
78
78
|
|
|
79
|
-
const menubarFn = (props = {}) => {
|
|
80
|
-
return Object.fromEntries(menubarSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
81
|
-
}
|
|
79
|
+
const menubarFn = memo((props = {}) => {
|
|
80
|
+
return Object.fromEntries(menubarSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
81
|
+
})
|
|
82
82
|
|
|
83
83
|
const menubarVariantKeys = []
|
|
84
|
+
const getVariantProps = (variants) => ({ ...menubarDefaultVariants, ...compact(variants) })
|
|
84
85
|
|
|
85
86
|
export const menubar = /* @__PURE__ */ Object.assign(menubarFn, {
|
|
86
87
|
__recipe__: false,
|
|
@@ -91,4 +92,5 @@ export const menubar = /* @__PURE__ */ Object.assign(menubarFn, {
|
|
|
91
92
|
splitVariantProps(props) {
|
|
92
93
|
return splitProps(props, menubarVariantKeys)
|
|
93
94
|
},
|
|
95
|
+
getVariantProps
|
|
94
96
|
})
|
|
@@ -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 MutedVariant {
|
|
7
6
|
|
|
@@ -12,7 +11,7 @@ type MutedVariantMap = {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export type MutedVariantProps = {
|
|
15
|
-
[key in keyof MutedVariant]?: ConditionalValue<MutedVariant[key]>
|
|
14
|
+
[key in keyof MutedVariant]?: ConditionalValue<MutedVariant[key]> | undefined
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export interface MutedRecipe {
|
|
@@ -22,7 +21,12 @@ export interface MutedRecipe {
|
|
|
22
21
|
variantMap: MutedVariantMap
|
|
23
22
|
variantKeys: Array<keyof MutedVariant>
|
|
24
23
|
splitVariantProps<Props extends MutedVariantProps>(props: Props): [MutedVariantProps, Pretty<DistributiveOmit<Props, keyof MutedVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: MutedVariantProps) => MutedVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Typography - Muted style
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const muted: MutedRecipe
|
|
@@ -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 mutedFn = /* @__PURE__ */ createRecipe('muted', {}, [])
|
|
5
5
|
|
|
@@ -7,13 +7,18 @@ const mutedVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const mutedVariantKeys = Object.keys(mutedVariantMap)
|
|
9
9
|
|
|
10
|
-
export const muted = /* @__PURE__ */ Object.assign(mutedFn, {
|
|
10
|
+
export const muted = /* @__PURE__ */ Object.assign(memo(mutedFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'muted',
|
|
13
|
+
__getCompoundVariantCss__: mutedFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: mutedVariantKeys,
|
|
15
16
|
variantMap: mutedVariantMap,
|
|
17
|
+
merge(recipe) {
|
|
18
|
+
return mergeRecipes(this, recipe)
|
|
19
|
+
},
|
|
16
20
|
splitVariantProps(props) {
|
|
17
21
|
return splitProps(props, mutedVariantKeys)
|
|
18
22
|
},
|
|
23
|
+
getVariantProps: mutedFn.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 NavigationMenuVariant {
|
|
7
6
|
|
|
@@ -12,7 +11,7 @@ type NavigationMenuVariantMap = {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export type NavigationMenuVariantProps = {
|
|
15
|
-
[key in keyof NavigationMenuVariant]?: ConditionalValue<NavigationMenuVariant[key]>
|
|
14
|
+
[key in keyof NavigationMenuVariant]?: ConditionalValue<NavigationMenuVariant[key]> | undefined
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export interface NavigationMenuRecipe {
|
|
@@ -22,7 +21,12 @@ export interface NavigationMenuRecipe {
|
|
|
22
21
|
variantMap: NavigationMenuVariantMap
|
|
23
22
|
variantKeys: Array<keyof NavigationMenuVariant>
|
|
24
23
|
splitVariantProps<Props extends NavigationMenuVariantProps>(props: Props): [NavigationMenuVariantProps, Pretty<DistributiveOmit<Props, keyof NavigationMenuVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: NavigationMenuVariantProps) => NavigationMenuVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the NavigationMenu component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const navigationMenu: NavigationMenuRecipe
|
|
@@ -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 navigationMenuDefaultVariants = {}
|
|
@@ -44,11 +44,12 @@ const navigationMenuSlotNames = [
|
|
|
44
44
|
]
|
|
45
45
|
const navigationMenuSlotFns = /* @__PURE__ */ navigationMenuSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, navigationMenuDefaultVariants, getSlotCompoundVariant(navigationMenuCompoundVariants, slotName))])
|
|
46
46
|
|
|
47
|
-
const navigationMenuFn = (props = {}) => {
|
|
48
|
-
return Object.fromEntries(navigationMenuSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
49
|
-
}
|
|
47
|
+
const navigationMenuFn = memo((props = {}) => {
|
|
48
|
+
return Object.fromEntries(navigationMenuSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
49
|
+
})
|
|
50
50
|
|
|
51
51
|
const navigationMenuVariantKeys = []
|
|
52
|
+
const getVariantProps = (variants) => ({ ...navigationMenuDefaultVariants, ...compact(variants) })
|
|
52
53
|
|
|
53
54
|
export const navigationMenu = /* @__PURE__ */ Object.assign(navigationMenuFn, {
|
|
54
55
|
__recipe__: false,
|
|
@@ -59,4 +60,5 @@ export const navigationMenu = /* @__PURE__ */ Object.assign(navigationMenuFn, {
|
|
|
59
60
|
splitVariantProps(props) {
|
|
60
61
|
return splitProps(props, navigationMenuVariantKeys)
|
|
61
62
|
},
|
|
63
|
+
getVariantProps
|
|
62
64
|
})
|
|
@@ -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 PVariant {
|
|
7
6
|
|
|
@@ -12,7 +11,7 @@ type PVariantMap = {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export type PVariantProps = {
|
|
15
|
-
[key in keyof PVariant]?: ConditionalValue<PVariant[key]>
|
|
14
|
+
[key in keyof PVariant]?: ConditionalValue<PVariant[key]> | undefined
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export interface PRecipe {
|
|
@@ -22,7 +21,12 @@ export interface PRecipe {
|
|
|
22
21
|
variantMap: PVariantMap
|
|
23
22
|
variantKeys: Array<keyof PVariant>
|
|
24
23
|
splitVariantProps<Props extends PVariantProps>(props: Props): [PVariantProps, Pretty<DistributiveOmit<Props, keyof PVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: PVariantProps) => PVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Typography - p style
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const p: PRecipe
|
|
@@ -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 pFn = /* @__PURE__ */ createRecipe('p', {}, [])
|
|
5
5
|
|
|
@@ -7,13 +7,18 @@ const pVariantMap = {}
|
|
|
7
7
|
|
|
8
8
|
const pVariantKeys = Object.keys(pVariantMap)
|
|
9
9
|
|
|
10
|
-
export const p = /* @__PURE__ */ Object.assign(pFn, {
|
|
10
|
+
export const p = /* @__PURE__ */ Object.assign(memo(pFn.recipeFn), {
|
|
11
11
|
__recipe__: true,
|
|
12
12
|
__name__: 'p',
|
|
13
|
+
__getCompoundVariantCss__: pFn.__getCompoundVariantCss__,
|
|
13
14
|
raw: (props) => props,
|
|
14
15
|
variantKeys: pVariantKeys,
|
|
15
16
|
variantMap: pVariantMap,
|
|
17
|
+
merge(recipe) {
|
|
18
|
+
return mergeRecipes(this, recipe)
|
|
19
|
+
},
|
|
16
20
|
splitVariantProps(props) {
|
|
17
21
|
return splitProps(props, pVariantKeys)
|
|
18
22
|
},
|
|
23
|
+
getVariantProps: pFn.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 PopoverVariant {
|
|
7
6
|
|
|
@@ -12,7 +11,7 @@ type PopoverVariantMap = {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export type PopoverVariantProps = {
|
|
15
|
-
[key in keyof PopoverVariant]?: ConditionalValue<PopoverVariant[key]>
|
|
14
|
+
[key in keyof PopoverVariant]?: ConditionalValue<PopoverVariant[key]> | undefined
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export interface PopoverRecipe {
|
|
@@ -22,7 +21,12 @@ export interface PopoverRecipe {
|
|
|
22
21
|
variantMap: PopoverVariantMap
|
|
23
22
|
variantKeys: Array<keyof PopoverVariant>
|
|
24
23
|
splitVariantProps<Props extends PopoverVariantProps>(props: Props): [PopoverVariantProps, Pretty<DistributiveOmit<Props, keyof PopoverVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: PopoverVariantProps) => PopoverVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the Popover component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const popover: PopoverRecipe
|
|
@@ -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 popoverDefaultVariants = {}
|
|
@@ -24,11 +24,12 @@ const popoverSlotNames = [
|
|
|
24
24
|
]
|
|
25
25
|
const popoverSlotFns = /* @__PURE__ */ popoverSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, popoverDefaultVariants, getSlotCompoundVariant(popoverCompoundVariants, slotName))])
|
|
26
26
|
|
|
27
|
-
const popoverFn = (props = {}) => {
|
|
28
|
-
return Object.fromEntries(popoverSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
29
|
-
}
|
|
27
|
+
const popoverFn = memo((props = {}) => {
|
|
28
|
+
return Object.fromEntries(popoverSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
29
|
+
})
|
|
30
30
|
|
|
31
31
|
const popoverVariantKeys = []
|
|
32
|
+
const getVariantProps = (variants) => ({ ...popoverDefaultVariants, ...compact(variants) })
|
|
32
33
|
|
|
33
34
|
export const popover = /* @__PURE__ */ Object.assign(popoverFn, {
|
|
34
35
|
__recipe__: false,
|
|
@@ -39,4 +40,5 @@ export const popover = /* @__PURE__ */ Object.assign(popoverFn, {
|
|
|
39
40
|
splitVariantProps(props) {
|
|
40
41
|
return splitProps(props, popoverVariantKeys)
|
|
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 ProgressVariant {
|
|
7
6
|
|
|
@@ -12,7 +11,7 @@ type ProgressVariantMap = {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export type ProgressVariantProps = {
|
|
15
|
-
[key in keyof ProgressVariant]?: ConditionalValue<ProgressVariant[key]>
|
|
14
|
+
[key in keyof ProgressVariant]?: ConditionalValue<ProgressVariant[key]> | undefined
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export interface ProgressRecipe {
|
|
@@ -22,7 +21,12 @@ export interface ProgressRecipe {
|
|
|
22
21
|
variantMap: ProgressVariantMap
|
|
23
22
|
variantKeys: Array<keyof ProgressVariant>
|
|
24
23
|
splitVariantProps<Props extends ProgressVariantProps>(props: Props): [ProgressVariantProps, Pretty<DistributiveOmit<Props, keyof ProgressVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: ProgressVariantProps) => ProgressVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the Progress component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const progress: ProgressRecipe
|
|
@@ -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 progressDefaultVariants = {}
|
|
@@ -16,11 +16,12 @@ const progressSlotNames = [
|
|
|
16
16
|
]
|
|
17
17
|
const progressSlotFns = /* @__PURE__ */ progressSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, progressDefaultVariants, getSlotCompoundVariant(progressCompoundVariants, slotName))])
|
|
18
18
|
|
|
19
|
-
const progressFn = (props = {}) => {
|
|
20
|
-
return Object.fromEntries(progressSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
21
|
-
}
|
|
19
|
+
const progressFn = memo((props = {}) => {
|
|
20
|
+
return Object.fromEntries(progressSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
21
|
+
})
|
|
22
22
|
|
|
23
23
|
const progressVariantKeys = []
|
|
24
|
+
const getVariantProps = (variants) => ({ ...progressDefaultVariants, ...compact(variants) })
|
|
24
25
|
|
|
25
26
|
export const progress = /* @__PURE__ */ Object.assign(progressFn, {
|
|
26
27
|
__recipe__: false,
|
|
@@ -31,4 +32,5 @@ export const progress = /* @__PURE__ */ Object.assign(progressFn, {
|
|
|
31
32
|
splitVariantProps(props) {
|
|
32
33
|
return splitProps(props, progressVariantKeys)
|
|
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 RadioGroupVariant {
|
|
7
6
|
|
|
@@ -12,7 +11,7 @@ type RadioGroupVariantMap = {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export type RadioGroupVariantProps = {
|
|
15
|
-
[key in keyof RadioGroupVariant]?: ConditionalValue<RadioGroupVariant[key]>
|
|
14
|
+
[key in keyof RadioGroupVariant]?: ConditionalValue<RadioGroupVariant[key]> | undefined
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export interface RadioGroupRecipe {
|
|
@@ -22,7 +21,12 @@ export interface RadioGroupRecipe {
|
|
|
22
21
|
variantMap: RadioGroupVariantMap
|
|
23
22
|
variantKeys: Array<keyof RadioGroupVariant>
|
|
24
23
|
splitVariantProps<Props extends RadioGroupVariantProps>(props: Props): [RadioGroupVariantProps, Pretty<DistributiveOmit<Props, keyof RadioGroupVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: RadioGroupVariantProps) => RadioGroupVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the RadioGroup component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const radioGroup: RadioGroupRecipe
|
|
@@ -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 radioGroupDefaultVariants = {}
|
|
@@ -24,11 +24,12 @@ const radioGroupSlotNames = [
|
|
|
24
24
|
]
|
|
25
25
|
const radioGroupSlotFns = /* @__PURE__ */ radioGroupSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, radioGroupDefaultVariants, getSlotCompoundVariant(radioGroupCompoundVariants, slotName))])
|
|
26
26
|
|
|
27
|
-
const radioGroupFn = (props = {}) => {
|
|
28
|
-
return Object.fromEntries(radioGroupSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
29
|
-
}
|
|
27
|
+
const radioGroupFn = memo((props = {}) => {
|
|
28
|
+
return Object.fromEntries(radioGroupSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
29
|
+
})
|
|
30
30
|
|
|
31
31
|
const radioGroupVariantKeys = []
|
|
32
|
+
const getVariantProps = (variants) => ({ ...radioGroupDefaultVariants, ...compact(variants) })
|
|
32
33
|
|
|
33
34
|
export const radioGroup = /* @__PURE__ */ Object.assign(radioGroupFn, {
|
|
34
35
|
__recipe__: false,
|
|
@@ -39,4 +40,5 @@ export const radioGroup = /* @__PURE__ */ Object.assign(radioGroupFn, {
|
|
|
39
40
|
splitVariantProps(props) {
|
|
40
41
|
return splitProps(props, radioGroupVariantKeys)
|
|
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 ScrollAreaVariant {
|
|
7
6
|
|
|
@@ -12,7 +11,7 @@ type ScrollAreaVariantMap = {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export type ScrollAreaVariantProps = {
|
|
15
|
-
[key in keyof ScrollAreaVariant]?: ConditionalValue<ScrollAreaVariant[key]>
|
|
14
|
+
[key in keyof ScrollAreaVariant]?: ConditionalValue<ScrollAreaVariant[key]> | undefined
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export interface ScrollAreaRecipe {
|
|
@@ -22,7 +21,12 @@ export interface ScrollAreaRecipe {
|
|
|
22
21
|
variantMap: ScrollAreaVariantMap
|
|
23
22
|
variantKeys: Array<keyof ScrollAreaVariant>
|
|
24
23
|
splitVariantProps<Props extends ScrollAreaVariantProps>(props: Props): [ScrollAreaVariantProps, Pretty<DistributiveOmit<Props, keyof ScrollAreaVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: ScrollAreaVariantProps) => ScrollAreaVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the ScrollArea component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const scrollArea: ScrollAreaRecipe
|
|
@@ -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 scrollAreaDefaultVariants = {}
|
|
@@ -28,11 +28,12 @@ const scrollAreaSlotNames = [
|
|
|
28
28
|
]
|
|
29
29
|
const scrollAreaSlotFns = /* @__PURE__ */ scrollAreaSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, scrollAreaDefaultVariants, getSlotCompoundVariant(scrollAreaCompoundVariants, slotName))])
|
|
30
30
|
|
|
31
|
-
const scrollAreaFn = (props = {}) => {
|
|
32
|
-
return Object.fromEntries(scrollAreaSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
33
|
-
}
|
|
31
|
+
const scrollAreaFn = memo((props = {}) => {
|
|
32
|
+
return Object.fromEntries(scrollAreaSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
33
|
+
})
|
|
34
34
|
|
|
35
35
|
const scrollAreaVariantKeys = []
|
|
36
|
+
const getVariantProps = (variants) => ({ ...scrollAreaDefaultVariants, ...compact(variants) })
|
|
36
37
|
|
|
37
38
|
export const scrollArea = /* @__PURE__ */ Object.assign(scrollAreaFn, {
|
|
38
39
|
__recipe__: false,
|
|
@@ -43,4 +44,5 @@ export const scrollArea = /* @__PURE__ */ Object.assign(scrollAreaFn, {
|
|
|
43
44
|
splitVariantProps(props) {
|
|
44
45
|
return splitProps(props, scrollAreaVariantKeys)
|
|
45
46
|
},
|
|
47
|
+
getVariantProps
|
|
46
48
|
})
|
|
@@ -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 SelectVariant {
|
|
7
6
|
|
|
@@ -12,7 +11,7 @@ type SelectVariantMap = {
|
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
export type SelectVariantProps = {
|
|
15
|
-
[key in keyof SelectVariant]?: ConditionalValue<SelectVariant[key]>
|
|
14
|
+
[key in keyof SelectVariant]?: ConditionalValue<SelectVariant[key]> | undefined
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
export interface SelectRecipe {
|
|
@@ -22,7 +21,12 @@ export interface SelectRecipe {
|
|
|
22
21
|
variantMap: SelectVariantMap
|
|
23
22
|
variantKeys: Array<keyof SelectVariant>
|
|
24
23
|
splitVariantProps<Props extends SelectVariantProps>(props: Props): [SelectVariantProps, Pretty<DistributiveOmit<Props, keyof SelectVariantProps>>]
|
|
24
|
+
getVariantProps: (props?: SelectVariantProps) => SelectVariantProps
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Styles for the Select component
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
*/
|
|
28
32
|
export declare const select: SelectRecipe
|
|
@@ -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 selectDefaultVariants = {}
|
|
@@ -48,11 +48,12 @@ const selectSlotNames = [
|
|
|
48
48
|
]
|
|
49
49
|
const selectSlotFns = /* @__PURE__ */ selectSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, selectDefaultVariants, getSlotCompoundVariant(selectCompoundVariants, slotName))])
|
|
50
50
|
|
|
51
|
-
const selectFn = (props = {}) => {
|
|
52
|
-
return Object.fromEntries(selectSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
53
|
-
}
|
|
51
|
+
const selectFn = memo((props = {}) => {
|
|
52
|
+
return Object.fromEntries(selectSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
53
|
+
})
|
|
54
54
|
|
|
55
55
|
const selectVariantKeys = []
|
|
56
|
+
const getVariantProps = (variants) => ({ ...selectDefaultVariants, ...compact(variants) })
|
|
56
57
|
|
|
57
58
|
export const select = /* @__PURE__ */ Object.assign(selectFn, {
|
|
58
59
|
__recipe__: false,
|
|
@@ -63,4 +64,5 @@ export const select = /* @__PURE__ */ Object.assign(selectFn, {
|
|
|
63
64
|
splitVariantProps(props) {
|
|
64
65
|
return splitProps(props, selectVariantKeys)
|
|
65
66
|
},
|
|
67
|
+
getVariantProps
|
|
66
68
|
})
|
|
@@ -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 SeparatorVariant {
|
|
7
|
-
|
|
6
|
+
/**
|
|
7
|
+
* @default "horizontal"
|
|
8
|
+
*/
|
|
9
|
+
orientation: "horizontal" | "vertical"
|
|
8
10
|
}
|
|
9
11
|
|
|
10
12
|
type SeparatorVariantMap = {
|
|
@@ -12,7 +14,7 @@ type SeparatorVariantMap = {
|
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
export type SeparatorVariantProps = {
|
|
15
|
-
[key in keyof SeparatorVariant]?: ConditionalValue<SeparatorVariant[key]>
|
|
17
|
+
[key in keyof SeparatorVariant]?: ConditionalValue<SeparatorVariant[key]> | undefined
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
export interface SeparatorRecipe {
|
|
@@ -22,7 +24,12 @@ export interface SeparatorRecipe {
|
|
|
22
24
|
variantMap: SeparatorVariantMap
|
|
23
25
|
variantKeys: Array<keyof SeparatorVariant>
|
|
24
26
|
splitVariantProps<Props extends SeparatorVariantProps>(props: Props): [SeparatorVariantProps, Pretty<DistributiveOmit<Props, keyof SeparatorVariantProps>>]
|
|
27
|
+
getVariantProps: (props?: SeparatorVariantProps) => SeparatorVariantProps
|
|
25
28
|
}
|
|
26
29
|
|
|
27
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* Styles for the Separator component
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
*/
|
|
28
35
|
export declare const separator: SeparatorRecipe
|