@luxonis/depthai-pipeline-lib 3.4.0-rc.2 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1696 -2
- package/dist/src/components/BridgeEdge.js +3 -13
- package/dist/src/components/Node.js +18 -65
- package/dist/src/components/PipelineCanvas.js +1 -2
- package/dist/src/components/PipelineLegend.d.ts +1 -1
- package/dist/src/components/PipelineLegend.js +10 -24
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/package.json +3 -5
- package/dist/panda.css +0 -1342
- package/dist/src/styled-system/css/conditions.mjs +0 -36
- package/dist/src/styled-system/css/css.d.mts +0 -22
- package/dist/src/styled-system/css/css.mjs +0 -45
- package/dist/src/styled-system/css/cva.d.mts +0 -6
- package/dist/src/styled-system/css/cva.mjs +0 -87
- package/dist/src/styled-system/css/cx.d.mts +0 -5
- package/dist/src/styled-system/css/cx.mjs +0 -15
- package/dist/src/styled-system/css/index.d.mts +0 -5
- package/dist/src/styled-system/css/index.mjs +0 -4
- package/dist/src/styled-system/css/sva.d.mts +0 -4
- package/dist/src/styled-system/css/sva.mjs +0 -41
- package/dist/src/styled-system/helpers.mjs +0 -327
- package/dist/src/styled-system/patterns/aspect-ratio.d.mts +0 -21
- package/dist/src/styled-system/patterns/aspect-ratio.mjs +0 -38
- package/dist/src/styled-system/patterns/bleed.d.mts +0 -22
- package/dist/src/styled-system/patterns/bleed.mjs +0 -24
- package/dist/src/styled-system/patterns/box.d.mts +0 -21
- package/dist/src/styled-system/patterns/box.mjs +0 -15
- package/dist/src/styled-system/patterns/center.d.mts +0 -21
- package/dist/src/styled-system/patterns/center.mjs +0 -21
- package/dist/src/styled-system/patterns/circle.d.mts +0 -21
- package/dist/src/styled-system/patterns/circle.mjs +0 -25
- package/dist/src/styled-system/patterns/container.d.mts +0 -21
- package/dist/src/styled-system/patterns/container.mjs +0 -21
- package/dist/src/styled-system/patterns/cq.d.mts +0 -22
- package/dist/src/styled-system/patterns/cq.mjs +0 -21
- package/dist/src/styled-system/patterns/divider.d.mts +0 -23
- package/dist/src/styled-system/patterns/divider.mjs +0 -25
- package/dist/src/styled-system/patterns/flex.d.mts +0 -27
- package/dist/src/styled-system/patterns/flex.mjs +0 -26
- package/dist/src/styled-system/patterns/float.d.mts +0 -24
- package/dist/src/styled-system/patterns/float.mjs +0 -52
- package/dist/src/styled-system/patterns/grid-item.d.mts +0 -26
- package/dist/src/styled-system/patterns/grid-item.mjs +0 -25
- package/dist/src/styled-system/patterns/grid.d.mts +0 -25
- package/dist/src/styled-system/patterns/grid.mjs +0 -27
- package/dist/src/styled-system/patterns/hstack.d.mts +0 -22
- package/dist/src/styled-system/patterns/hstack.mjs +0 -24
- package/dist/src/styled-system/patterns/index.d.mts +0 -21
- package/dist/src/styled-system/patterns/index.mjs +0 -20
- package/dist/src/styled-system/patterns/link-overlay.d.mts +0 -21
- package/dist/src/styled-system/patterns/link-overlay.mjs +0 -24
- package/dist/src/styled-system/patterns/spacer.d.mts +0 -21
- package/dist/src/styled-system/patterns/spacer.mjs +0 -21
- package/dist/src/styled-system/patterns/square.d.mts +0 -21
- package/dist/src/styled-system/patterns/square.mjs +0 -24
- package/dist/src/styled-system/patterns/stack.d.mts +0 -24
- package/dist/src/styled-system/patterns/stack.mjs +0 -24
- package/dist/src/styled-system/patterns/visually-hidden.d.mts +0 -21
- package/dist/src/styled-system/patterns/visually-hidden.mjs +0 -18
- package/dist/src/styled-system/patterns/vstack.d.mts +0 -22
- package/dist/src/styled-system/patterns/vstack.mjs +0 -24
- package/dist/src/styled-system/patterns/wrap.d.mts +0 -25
- package/dist/src/styled-system/patterns/wrap.mjs +0 -25
- package/dist/src/styled-system/recipes/accordion.d.mts +0 -32
- package/dist/src/styled-system/recipes/accordion.mjs +0 -48
- package/dist/src/styled-system/recipes/alert-description.d.mts +0 -32
- package/dist/src/styled-system/recipes/alert-description.mjs +0 -24
- package/dist/src/styled-system/recipes/alert-dialog.d.mts +0 -32
- package/dist/src/styled-system/recipes/alert-dialog.mjs +0 -72
- package/dist/src/styled-system/recipes/alert-title.d.mts +0 -32
- package/dist/src/styled-system/recipes/alert-title.mjs +0 -24
- package/dist/src/styled-system/recipes/alert.d.mts +0 -35
- package/dist/src/styled-system/recipes/alert.mjs +0 -31
- package/dist/src/styled-system/recipes/avatar.d.mts +0 -32
- package/dist/src/styled-system/recipes/avatar.mjs +0 -40
- package/dist/src/styled-system/recipes/badge.d.mts +0 -35
- package/dist/src/styled-system/recipes/badge.mjs +0 -33
- package/dist/src/styled-system/recipes/blockquote.d.mts +0 -32
- package/dist/src/styled-system/recipes/blockquote.mjs +0 -24
- package/dist/src/styled-system/recipes/button.d.mts +0 -39
- package/dist/src/styled-system/recipes/button.mjs +0 -42
- package/dist/src/styled-system/recipes/calendar.d.mts +0 -32
- package/dist/src/styled-system/recipes/calendar.mjs +0 -120
- package/dist/src/styled-system/recipes/card-content.d.mts +0 -32
- package/dist/src/styled-system/recipes/card-content.mjs +0 -24
- package/dist/src/styled-system/recipes/card-description.d.mts +0 -32
- package/dist/src/styled-system/recipes/card-description.mjs +0 -24
- package/dist/src/styled-system/recipes/card-footer.d.mts +0 -32
- package/dist/src/styled-system/recipes/card-footer.mjs +0 -24
- package/dist/src/styled-system/recipes/card-header.d.mts +0 -32
- package/dist/src/styled-system/recipes/card-header.mjs +0 -24
- package/dist/src/styled-system/recipes/card-title.d.mts +0 -32
- package/dist/src/styled-system/recipes/card-title.mjs +0 -24
- package/dist/src/styled-system/recipes/card.d.mts +0 -32
- package/dist/src/styled-system/recipes/card.mjs +0 -24
- package/dist/src/styled-system/recipes/checkbox.d.mts +0 -32
- package/dist/src/styled-system/recipes/checkbox.mjs +0 -36
- package/dist/src/styled-system/recipes/collapsible.d.mts +0 -32
- package/dist/src/styled-system/recipes/collapsible.mjs +0 -40
- package/dist/src/styled-system/recipes/command-dialog.d.mts +0 -32
- package/dist/src/styled-system/recipes/command-dialog.mjs +0 -36
- package/dist/src/styled-system/recipes/command.d.mts +0 -32
- package/dist/src/styled-system/recipes/command.mjs +0 -68
- package/dist/src/styled-system/recipes/context-menu.d.mts +0 -35
- package/dist/src/styled-system/recipes/context-menu.mjs +0 -100
- package/dist/src/styled-system/recipes/create-recipe.mjs +0 -82
- package/dist/src/styled-system/recipes/dialog.d.mts +0 -32
- package/dist/src/styled-system/recipes/dialog.mjs +0 -68
- package/dist/src/styled-system/recipes/dropdown-menu.d.mts +0 -32
- package/dist/src/styled-system/recipes/dropdown-menu.mjs +0 -92
- package/dist/src/styled-system/recipes/form-control.d.mts +0 -32
- package/dist/src/styled-system/recipes/form-control.mjs +0 -24
- package/dist/src/styled-system/recipes/form-description.d.mts +0 -32
- package/dist/src/styled-system/recipes/form-description.mjs +0 -24
- package/dist/src/styled-system/recipes/form-item.d.mts +0 -32
- package/dist/src/styled-system/recipes/form-item.mjs +0 -24
- package/dist/src/styled-system/recipes/form-label.d.mts +0 -32
- package/dist/src/styled-system/recipes/form-label.mjs +0 -24
- package/dist/src/styled-system/recipes/form-message.d.mts +0 -32
- package/dist/src/styled-system/recipes/form-message.mjs +0 -24
- package/dist/src/styled-system/recipes/h1.d.mts +0 -32
- package/dist/src/styled-system/recipes/h1.mjs +0 -24
- package/dist/src/styled-system/recipes/h2.d.mts +0 -32
- package/dist/src/styled-system/recipes/h2.mjs +0 -24
- package/dist/src/styled-system/recipes/h3.d.mts +0 -32
- package/dist/src/styled-system/recipes/h3.mjs +0 -24
- package/dist/src/styled-system/recipes/h4.d.mts +0 -32
- package/dist/src/styled-system/recipes/h4.mjs +0 -24
- package/dist/src/styled-system/recipes/hover-card.d.mts +0 -32
- package/dist/src/styled-system/recipes/hover-card.mjs +0 -40
- package/dist/src/styled-system/recipes/icon.d.mts +0 -51
- package/dist/src/styled-system/recipes/icon.mjs +0 -54
- package/dist/src/styled-system/recipes/index.d.mts +0 -74
- package/dist/src/styled-system/recipes/index.mjs +0 -73
- package/dist/src/styled-system/recipes/inline-code.d.mts +0 -32
- package/dist/src/styled-system/recipes/inline-code.mjs +0 -24
- package/dist/src/styled-system/recipes/input.d.mts +0 -32
- package/dist/src/styled-system/recipes/input.mjs +0 -24
- package/dist/src/styled-system/recipes/label.d.mts +0 -32
- package/dist/src/styled-system/recipes/label.mjs +0 -24
- package/dist/src/styled-system/recipes/large.d.mts +0 -32
- package/dist/src/styled-system/recipes/large.mjs +0 -24
- package/dist/src/styled-system/recipes/lead.d.mts +0 -32
- package/dist/src/styled-system/recipes/lead.mjs +0 -24
- package/dist/src/styled-system/recipes/link.d.mts +0 -32
- package/dist/src/styled-system/recipes/link.mjs +0 -24
- package/dist/src/styled-system/recipes/list.d.mts +0 -32
- package/dist/src/styled-system/recipes/list.mjs +0 -24
- package/dist/src/styled-system/recipes/menubar.d.mts +0 -32
- package/dist/src/styled-system/recipes/menubar.mjs +0 -96
- package/dist/src/styled-system/recipes/muted.d.mts +0 -32
- package/dist/src/styled-system/recipes/muted.mjs +0 -24
- package/dist/src/styled-system/recipes/navigation-menu.d.mts +0 -32
- package/dist/src/styled-system/recipes/navigation-menu.mjs +0 -64
- package/dist/src/styled-system/recipes/p.d.mts +0 -32
- package/dist/src/styled-system/recipes/p.mjs +0 -24
- package/dist/src/styled-system/recipes/popover.d.mts +0 -32
- package/dist/src/styled-system/recipes/popover.mjs +0 -44
- package/dist/src/styled-system/recipes/progress.d.mts +0 -32
- package/dist/src/styled-system/recipes/progress.mjs +0 -36
- package/dist/src/styled-system/recipes/radio-group.d.mts +0 -32
- package/dist/src/styled-system/recipes/radio-group.mjs +0 -44
- package/dist/src/styled-system/recipes/scroll-area.d.mts +0 -32
- package/dist/src/styled-system/recipes/scroll-area.mjs +0 -48
- package/dist/src/styled-system/recipes/select.d.mts +0 -32
- package/dist/src/styled-system/recipes/select.mjs +0 -68
- package/dist/src/styled-system/recipes/separator.d.mts +0 -35
- package/dist/src/styled-system/recipes/separator.mjs +0 -31
- package/dist/src/styled-system/recipes/sheet.d.mts +0 -35
- package/dist/src/styled-system/recipes/sheet.mjs +0 -83
- package/dist/src/styled-system/recipes/skeleton.d.mts +0 -32
- package/dist/src/styled-system/recipes/skeleton.mjs +0 -24
- package/dist/src/styled-system/recipes/slider.d.mts +0 -32
- package/dist/src/styled-system/recipes/slider.mjs +0 -44
- package/dist/src/styled-system/recipes/small.d.mts +0 -32
- package/dist/src/styled-system/recipes/small.mjs +0 -24
- package/dist/src/styled-system/recipes/switch-recipe.d.mts +0 -32
- package/dist/src/styled-system/recipes/switch-recipe.mjs +0 -36
- package/dist/src/styled-system/recipes/table-body.d.mts +0 -32
- package/dist/src/styled-system/recipes/table-body.mjs +0 -24
- package/dist/src/styled-system/recipes/table-caption.d.mts +0 -32
- package/dist/src/styled-system/recipes/table-caption.mjs +0 -24
- package/dist/src/styled-system/recipes/table-cell.d.mts +0 -32
- package/dist/src/styled-system/recipes/table-cell.mjs +0 -24
- package/dist/src/styled-system/recipes/table-container.d.mts +0 -32
- package/dist/src/styled-system/recipes/table-container.mjs +0 -24
- package/dist/src/styled-system/recipes/table-footer.d.mts +0 -32
- package/dist/src/styled-system/recipes/table-footer.mjs +0 -24
- package/dist/src/styled-system/recipes/table-head.d.mts +0 -32
- package/dist/src/styled-system/recipes/table-head.mjs +0 -24
- package/dist/src/styled-system/recipes/table-header.d.mts +0 -32
- package/dist/src/styled-system/recipes/table-header.mjs +0 -24
- package/dist/src/styled-system/recipes/table-row.d.mts +0 -32
- package/dist/src/styled-system/recipes/table-row.mjs +0 -24
- package/dist/src/styled-system/recipes/table.d.mts +0 -32
- package/dist/src/styled-system/recipes/table.mjs +0 -24
- package/dist/src/styled-system/recipes/tabs.d.mts +0 -32
- package/dist/src/styled-system/recipes/tabs.mjs +0 -44
- package/dist/src/styled-system/recipes/textarea.d.mts +0 -32
- package/dist/src/styled-system/recipes/textarea.mjs +0 -24
- package/dist/src/styled-system/recipes/toast-viewport.d.mts +0 -32
- package/dist/src/styled-system/recipes/toast-viewport.mjs +0 -24
- package/dist/src/styled-system/recipes/toast.d.mts +0 -35
- package/dist/src/styled-system/recipes/toast.mjs +0 -61
- package/dist/src/styled-system/recipes/toggle.d.mts +0 -39
- package/dist/src/styled-system/recipes/toggle.mjs +0 -37
- package/dist/src/styled-system/recipes/tooltip.d.mts +0 -32
- package/dist/src/styled-system/recipes/tooltip.mjs +0 -40
- package/dist/src/styled-system/recipes/typography-table-container.d.mts +0 -32
- package/dist/src/styled-system/recipes/typography-table-container.mjs +0 -24
- package/dist/src/styled-system/recipes/typography-table.d.mts +0 -32
- package/dist/src/styled-system/recipes/typography-table.mjs +0 -24
- package/dist/src/styled-system/tokens/index.d.mts +0 -9
- package/dist/src/styled-system/tokens/index.mjs +0 -2732
- package/dist/src/styled-system/tokens/tokens.d.mts +0 -63
- package/dist/src/styled-system/types/composition.d.mts +0 -164
- package/dist/src/styled-system/types/conditions.d.mts +0 -322
- package/dist/src/styled-system/types/csstype.d.mts +0 -21298
- package/dist/src/styled-system/types/global.d.mts +0 -20
- package/dist/src/styled-system/types/index.d.mts +0 -7
- package/dist/src/styled-system/types/parts.d.mts +0 -8
- package/dist/src/styled-system/types/pattern.d.mts +0 -78
- package/dist/src/styled-system/types/prop-type.d.mts +0 -264
- package/dist/src/styled-system/types/recipe.d.mts +0 -181
- package/dist/src/styled-system/types/selectors.d.mts +0 -59
- package/dist/src/styled-system/types/static-css.d.mts +0 -56
- package/dist/src/styled-system/types/style-props.d.mts +0 -7549
- package/dist/src/styled-system/types/system-types.d.mts +0 -193
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
-
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
-
|
|
4
|
-
const cardFooterFn = /* @__PURE__ */ createRecipe('cardFooter', {}, [])
|
|
5
|
-
|
|
6
|
-
const cardFooterVariantMap = {}
|
|
7
|
-
|
|
8
|
-
const cardFooterVariantKeys = Object.keys(cardFooterVariantMap)
|
|
9
|
-
|
|
10
|
-
export const cardFooter = /* @__PURE__ */ Object.assign(memo(cardFooterFn.recipeFn), {
|
|
11
|
-
__recipe__: true,
|
|
12
|
-
__name__: 'cardFooter',
|
|
13
|
-
__getCompoundVariantCss__: cardFooterFn.__getCompoundVariantCss__,
|
|
14
|
-
raw: (props) => props,
|
|
15
|
-
variantKeys: cardFooterVariantKeys,
|
|
16
|
-
variantMap: cardFooterVariantMap,
|
|
17
|
-
merge(recipe) {
|
|
18
|
-
return mergeRecipes(this, recipe)
|
|
19
|
-
},
|
|
20
|
-
splitVariantProps(props) {
|
|
21
|
-
return splitProps(props, cardFooterVariantKeys)
|
|
22
|
-
},
|
|
23
|
-
getVariantProps: cardFooterFn.getVariantProps,
|
|
24
|
-
})
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types.d.mts';
|
|
4
|
-
|
|
5
|
-
interface CardHeaderVariant {
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
type CardHeaderVariantMap = {
|
|
10
|
-
[key in keyof CardHeaderVariant]: Array<CardHeaderVariant[key]>
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export type CardHeaderVariantProps = {
|
|
14
|
-
[key in keyof CardHeaderVariant]?: ConditionalValue<CardHeaderVariant[key]> | undefined
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface CardHeaderRecipe {
|
|
18
|
-
__type: CardHeaderVariantProps
|
|
19
|
-
(props?: CardHeaderVariantProps): string
|
|
20
|
-
raw: (props?: CardHeaderVariantProps) => CardHeaderVariantProps
|
|
21
|
-
variantMap: CardHeaderVariantMap
|
|
22
|
-
variantKeys: Array<keyof CardHeaderVariant>
|
|
23
|
-
splitVariantProps<Props extends CardHeaderVariantProps>(props: Props): [CardHeaderVariantProps, Pretty<DistributiveOmit<Props, keyof CardHeaderVariantProps>>]
|
|
24
|
-
getVariantProps: (props?: CardHeaderVariantProps) => CardHeaderVariantProps
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Styles for the CardHeader component
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*/
|
|
32
|
-
export declare const cardHeader: CardHeaderRecipe
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
-
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
-
|
|
4
|
-
const cardHeaderFn = /* @__PURE__ */ createRecipe('cardHeader', {}, [])
|
|
5
|
-
|
|
6
|
-
const cardHeaderVariantMap = {}
|
|
7
|
-
|
|
8
|
-
const cardHeaderVariantKeys = Object.keys(cardHeaderVariantMap)
|
|
9
|
-
|
|
10
|
-
export const cardHeader = /* @__PURE__ */ Object.assign(memo(cardHeaderFn.recipeFn), {
|
|
11
|
-
__recipe__: true,
|
|
12
|
-
__name__: 'cardHeader',
|
|
13
|
-
__getCompoundVariantCss__: cardHeaderFn.__getCompoundVariantCss__,
|
|
14
|
-
raw: (props) => props,
|
|
15
|
-
variantKeys: cardHeaderVariantKeys,
|
|
16
|
-
variantMap: cardHeaderVariantMap,
|
|
17
|
-
merge(recipe) {
|
|
18
|
-
return mergeRecipes(this, recipe)
|
|
19
|
-
},
|
|
20
|
-
splitVariantProps(props) {
|
|
21
|
-
return splitProps(props, cardHeaderVariantKeys)
|
|
22
|
-
},
|
|
23
|
-
getVariantProps: cardHeaderFn.getVariantProps,
|
|
24
|
-
})
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types.d.mts';
|
|
4
|
-
|
|
5
|
-
interface CardTitleVariant {
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
type CardTitleVariantMap = {
|
|
10
|
-
[key in keyof CardTitleVariant]: Array<CardTitleVariant[key]>
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export type CardTitleVariantProps = {
|
|
14
|
-
[key in keyof CardTitleVariant]?: ConditionalValue<CardTitleVariant[key]> | undefined
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface CardTitleRecipe {
|
|
18
|
-
__type: CardTitleVariantProps
|
|
19
|
-
(props?: CardTitleVariantProps): string
|
|
20
|
-
raw: (props?: CardTitleVariantProps) => CardTitleVariantProps
|
|
21
|
-
variantMap: CardTitleVariantMap
|
|
22
|
-
variantKeys: Array<keyof CardTitleVariant>
|
|
23
|
-
splitVariantProps<Props extends CardTitleVariantProps>(props: Props): [CardTitleVariantProps, Pretty<DistributiveOmit<Props, keyof CardTitleVariantProps>>]
|
|
24
|
-
getVariantProps: (props?: CardTitleVariantProps) => CardTitleVariantProps
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Styles for the CardTitle component
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*/
|
|
32
|
-
export declare const cardTitle: CardTitleRecipe
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
-
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
-
|
|
4
|
-
const cardTitleFn = /* @__PURE__ */ createRecipe('cardTitle', {}, [])
|
|
5
|
-
|
|
6
|
-
const cardTitleVariantMap = {}
|
|
7
|
-
|
|
8
|
-
const cardTitleVariantKeys = Object.keys(cardTitleVariantMap)
|
|
9
|
-
|
|
10
|
-
export const cardTitle = /* @__PURE__ */ Object.assign(memo(cardTitleFn.recipeFn), {
|
|
11
|
-
__recipe__: true,
|
|
12
|
-
__name__: 'cardTitle',
|
|
13
|
-
__getCompoundVariantCss__: cardTitleFn.__getCompoundVariantCss__,
|
|
14
|
-
raw: (props) => props,
|
|
15
|
-
variantKeys: cardTitleVariantKeys,
|
|
16
|
-
variantMap: cardTitleVariantMap,
|
|
17
|
-
merge(recipe) {
|
|
18
|
-
return mergeRecipes(this, recipe)
|
|
19
|
-
},
|
|
20
|
-
splitVariantProps(props) {
|
|
21
|
-
return splitProps(props, cardTitleVariantKeys)
|
|
22
|
-
},
|
|
23
|
-
getVariantProps: cardTitleFn.getVariantProps,
|
|
24
|
-
})
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types.d.mts';
|
|
4
|
-
|
|
5
|
-
interface CardVariant {
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
type CardVariantMap = {
|
|
10
|
-
[key in keyof CardVariant]: Array<CardVariant[key]>
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export type CardVariantProps = {
|
|
14
|
-
[key in keyof CardVariant]?: ConditionalValue<CardVariant[key]> | undefined
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface CardRecipe {
|
|
18
|
-
__type: CardVariantProps
|
|
19
|
-
(props?: CardVariantProps): string
|
|
20
|
-
raw: (props?: CardVariantProps) => CardVariantProps
|
|
21
|
-
variantMap: CardVariantMap
|
|
22
|
-
variantKeys: Array<keyof CardVariant>
|
|
23
|
-
splitVariantProps<Props extends CardVariantProps>(props: Props): [CardVariantProps, Pretty<DistributiveOmit<Props, keyof CardVariantProps>>]
|
|
24
|
-
getVariantProps: (props?: CardVariantProps) => CardVariantProps
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Styles for the Card component
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*/
|
|
32
|
-
export declare const card: CardRecipe
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { memo, splitProps } from '../helpers.mjs';
|
|
2
|
-
import { createRecipe, mergeRecipes } from './create-recipe.mjs';
|
|
3
|
-
|
|
4
|
-
const cardFn = /* @__PURE__ */ createRecipe('card', {}, [])
|
|
5
|
-
|
|
6
|
-
const cardVariantMap = {}
|
|
7
|
-
|
|
8
|
-
const cardVariantKeys = Object.keys(cardVariantMap)
|
|
9
|
-
|
|
10
|
-
export const card = /* @__PURE__ */ Object.assign(memo(cardFn.recipeFn), {
|
|
11
|
-
__recipe__: true,
|
|
12
|
-
__name__: 'card',
|
|
13
|
-
__getCompoundVariantCss__: cardFn.__getCompoundVariantCss__,
|
|
14
|
-
raw: (props) => props,
|
|
15
|
-
variantKeys: cardVariantKeys,
|
|
16
|
-
variantMap: cardVariantMap,
|
|
17
|
-
merge(recipe) {
|
|
18
|
-
return mergeRecipes(this, recipe)
|
|
19
|
-
},
|
|
20
|
-
splitVariantProps(props) {
|
|
21
|
-
return splitProps(props, cardVariantKeys)
|
|
22
|
-
},
|
|
23
|
-
getVariantProps: cardFn.getVariantProps,
|
|
24
|
-
})
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types.d.mts';
|
|
4
|
-
|
|
5
|
-
interface CheckboxVariant {
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
type CheckboxVariantMap = {
|
|
10
|
-
[key in keyof CheckboxVariant]: Array<CheckboxVariant[key]>
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export type CheckboxVariantProps = {
|
|
14
|
-
[key in keyof CheckboxVariant]?: ConditionalValue<CheckboxVariant[key]> | undefined
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface CheckboxRecipe {
|
|
18
|
-
__type: CheckboxVariantProps
|
|
19
|
-
(props?: CheckboxVariantProps): Pretty<Record<"root" | "indicator", string>>
|
|
20
|
-
raw: (props?: CheckboxVariantProps) => CheckboxVariantProps
|
|
21
|
-
variantMap: CheckboxVariantMap
|
|
22
|
-
variantKeys: Array<keyof CheckboxVariant>
|
|
23
|
-
splitVariantProps<Props extends CheckboxVariantProps>(props: Props): [CheckboxVariantProps, Pretty<DistributiveOmit<Props, keyof CheckboxVariantProps>>]
|
|
24
|
-
getVariantProps: (props?: CheckboxVariantProps) => CheckboxVariantProps
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Styles for the Checkbox component
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*/
|
|
32
|
-
export declare const checkbox: CheckboxRecipe
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
-
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
-
|
|
4
|
-
const checkboxDefaultVariants = {}
|
|
5
|
-
const checkboxCompoundVariants = []
|
|
6
|
-
|
|
7
|
-
const checkboxSlotNames = [
|
|
8
|
-
[
|
|
9
|
-
"root",
|
|
10
|
-
"checkbox__root"
|
|
11
|
-
],
|
|
12
|
-
[
|
|
13
|
-
"indicator",
|
|
14
|
-
"checkbox__indicator"
|
|
15
|
-
]
|
|
16
|
-
]
|
|
17
|
-
const checkboxSlotFns = /* @__PURE__ */ checkboxSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, checkboxDefaultVariants, getSlotCompoundVariant(checkboxCompoundVariants, slotName))])
|
|
18
|
-
|
|
19
|
-
const checkboxFn = memo((props = {}) => {
|
|
20
|
-
return Object.fromEntries(checkboxSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
21
|
-
})
|
|
22
|
-
|
|
23
|
-
const checkboxVariantKeys = []
|
|
24
|
-
const getVariantProps = (variants) => ({ ...checkboxDefaultVariants, ...compact(variants) })
|
|
25
|
-
|
|
26
|
-
export const checkbox = /* @__PURE__ */ Object.assign(checkboxFn, {
|
|
27
|
-
__recipe__: false,
|
|
28
|
-
__name__: 'checkbox',
|
|
29
|
-
raw: (props) => props,
|
|
30
|
-
variantKeys: checkboxVariantKeys,
|
|
31
|
-
variantMap: {},
|
|
32
|
-
splitVariantProps(props) {
|
|
33
|
-
return splitProps(props, checkboxVariantKeys)
|
|
34
|
-
},
|
|
35
|
-
getVariantProps
|
|
36
|
-
})
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types.d.mts';
|
|
4
|
-
|
|
5
|
-
interface CollapsibleVariant {
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
type CollapsibleVariantMap = {
|
|
10
|
-
[key in keyof CollapsibleVariant]: Array<CollapsibleVariant[key]>
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export type CollapsibleVariantProps = {
|
|
14
|
-
[key in keyof CollapsibleVariant]?: ConditionalValue<CollapsibleVariant[key]> | undefined
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface CollapsibleRecipe {
|
|
18
|
-
__type: CollapsibleVariantProps
|
|
19
|
-
(props?: CollapsibleVariantProps): Pretty<Record<"root" | "trigger" | "content", string>>
|
|
20
|
-
raw: (props?: CollapsibleVariantProps) => CollapsibleVariantProps
|
|
21
|
-
variantMap: CollapsibleVariantMap
|
|
22
|
-
variantKeys: Array<keyof CollapsibleVariant>
|
|
23
|
-
splitVariantProps<Props extends CollapsibleVariantProps>(props: Props): [CollapsibleVariantProps, Pretty<DistributiveOmit<Props, keyof CollapsibleVariantProps>>]
|
|
24
|
-
getVariantProps: (props?: CollapsibleVariantProps) => CollapsibleVariantProps
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Styles for the Collapsible component
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*/
|
|
32
|
-
export declare const collapsible: CollapsibleRecipe
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
-
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
-
|
|
4
|
-
const collapsibleDefaultVariants = {}
|
|
5
|
-
const collapsibleCompoundVariants = []
|
|
6
|
-
|
|
7
|
-
const collapsibleSlotNames = [
|
|
8
|
-
[
|
|
9
|
-
"root",
|
|
10
|
-
"collapsible__root"
|
|
11
|
-
],
|
|
12
|
-
[
|
|
13
|
-
"trigger",
|
|
14
|
-
"collapsible__trigger"
|
|
15
|
-
],
|
|
16
|
-
[
|
|
17
|
-
"content",
|
|
18
|
-
"collapsible__content"
|
|
19
|
-
]
|
|
20
|
-
]
|
|
21
|
-
const collapsibleSlotFns = /* @__PURE__ */ collapsibleSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, collapsibleDefaultVariants, getSlotCompoundVariant(collapsibleCompoundVariants, slotName))])
|
|
22
|
-
|
|
23
|
-
const collapsibleFn = memo((props = {}) => {
|
|
24
|
-
return Object.fromEntries(collapsibleSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
25
|
-
})
|
|
26
|
-
|
|
27
|
-
const collapsibleVariantKeys = []
|
|
28
|
-
const getVariantProps = (variants) => ({ ...collapsibleDefaultVariants, ...compact(variants) })
|
|
29
|
-
|
|
30
|
-
export const collapsible = /* @__PURE__ */ Object.assign(collapsibleFn, {
|
|
31
|
-
__recipe__: false,
|
|
32
|
-
__name__: 'collapsible',
|
|
33
|
-
raw: (props) => props,
|
|
34
|
-
variantKeys: collapsibleVariantKeys,
|
|
35
|
-
variantMap: {},
|
|
36
|
-
splitVariantProps(props) {
|
|
37
|
-
return splitProps(props, collapsibleVariantKeys)
|
|
38
|
-
},
|
|
39
|
-
getVariantProps
|
|
40
|
-
})
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types.d.mts';
|
|
4
|
-
|
|
5
|
-
interface CommandDialogVariant {
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
type CommandDialogVariantMap = {
|
|
10
|
-
[key in keyof CommandDialogVariant]: Array<CommandDialogVariant[key]>
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export type CommandDialogVariantProps = {
|
|
14
|
-
[key in keyof CommandDialogVariant]?: ConditionalValue<CommandDialogVariant[key]> | undefined
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface CommandDialogRecipe {
|
|
18
|
-
__type: CommandDialogVariantProps
|
|
19
|
-
(props?: CommandDialogVariantProps): Pretty<Record<"content" | "command", string>>
|
|
20
|
-
raw: (props?: CommandDialogVariantProps) => CommandDialogVariantProps
|
|
21
|
-
variantMap: CommandDialogVariantMap
|
|
22
|
-
variantKeys: Array<keyof CommandDialogVariant>
|
|
23
|
-
splitVariantProps<Props extends CommandDialogVariantProps>(props: Props): [CommandDialogVariantProps, Pretty<DistributiveOmit<Props, keyof CommandDialogVariantProps>>]
|
|
24
|
-
getVariantProps: (props?: CommandDialogVariantProps) => CommandDialogVariantProps
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Styles for the CommandDialog component
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*/
|
|
32
|
-
export declare const commandDialog: CommandDialogRecipe
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
-
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
-
|
|
4
|
-
const commandDialogDefaultVariants = {}
|
|
5
|
-
const commandDialogCompoundVariants = []
|
|
6
|
-
|
|
7
|
-
const commandDialogSlotNames = [
|
|
8
|
-
[
|
|
9
|
-
"content",
|
|
10
|
-
"command-dialog__content"
|
|
11
|
-
],
|
|
12
|
-
[
|
|
13
|
-
"command",
|
|
14
|
-
"command-dialog__command"
|
|
15
|
-
]
|
|
16
|
-
]
|
|
17
|
-
const commandDialogSlotFns = /* @__PURE__ */ commandDialogSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, commandDialogDefaultVariants, getSlotCompoundVariant(commandDialogCompoundVariants, slotName))])
|
|
18
|
-
|
|
19
|
-
const commandDialogFn = memo((props = {}) => {
|
|
20
|
-
return Object.fromEntries(commandDialogSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
21
|
-
})
|
|
22
|
-
|
|
23
|
-
const commandDialogVariantKeys = []
|
|
24
|
-
const getVariantProps = (variants) => ({ ...commandDialogDefaultVariants, ...compact(variants) })
|
|
25
|
-
|
|
26
|
-
export const commandDialog = /* @__PURE__ */ Object.assign(commandDialogFn, {
|
|
27
|
-
__recipe__: false,
|
|
28
|
-
__name__: 'commandDialog',
|
|
29
|
-
raw: (props) => props,
|
|
30
|
-
variantKeys: commandDialogVariantKeys,
|
|
31
|
-
variantMap: {},
|
|
32
|
-
splitVariantProps(props) {
|
|
33
|
-
return splitProps(props, commandDialogVariantKeys)
|
|
34
|
-
},
|
|
35
|
-
getVariantProps
|
|
36
|
-
})
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types.d.mts';
|
|
4
|
-
|
|
5
|
-
interface CommandVariant {
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
type CommandVariantMap = {
|
|
10
|
-
[key in keyof CommandVariant]: Array<CommandVariant[key]>
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export type CommandVariantProps = {
|
|
14
|
-
[key in keyof CommandVariant]?: ConditionalValue<CommandVariant[key]> | undefined
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface CommandRecipe {
|
|
18
|
-
__type: CommandVariantProps
|
|
19
|
-
(props?: CommandVariantProps): Pretty<Record<"root" | "inputWrapper" | "inputSearch" | "input" | "list" | "empty" | "group" | "separator" | "item" | "shortcut", string>>
|
|
20
|
-
raw: (props?: CommandVariantProps) => CommandVariantProps
|
|
21
|
-
variantMap: CommandVariantMap
|
|
22
|
-
variantKeys: Array<keyof CommandVariant>
|
|
23
|
-
splitVariantProps<Props extends CommandVariantProps>(props: Props): [CommandVariantProps, Pretty<DistributiveOmit<Props, keyof CommandVariantProps>>]
|
|
24
|
-
getVariantProps: (props?: CommandVariantProps) => CommandVariantProps
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Styles for the Command component
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
*/
|
|
32
|
-
export declare const command: CommandRecipe
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
-
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
-
|
|
4
|
-
const commandDefaultVariants = {}
|
|
5
|
-
const commandCompoundVariants = []
|
|
6
|
-
|
|
7
|
-
const commandSlotNames = [
|
|
8
|
-
[
|
|
9
|
-
"root",
|
|
10
|
-
"command__root"
|
|
11
|
-
],
|
|
12
|
-
[
|
|
13
|
-
"inputWrapper",
|
|
14
|
-
"command__inputWrapper"
|
|
15
|
-
],
|
|
16
|
-
[
|
|
17
|
-
"inputSearch",
|
|
18
|
-
"command__inputSearch"
|
|
19
|
-
],
|
|
20
|
-
[
|
|
21
|
-
"input",
|
|
22
|
-
"command__input"
|
|
23
|
-
],
|
|
24
|
-
[
|
|
25
|
-
"list",
|
|
26
|
-
"command__list"
|
|
27
|
-
],
|
|
28
|
-
[
|
|
29
|
-
"empty",
|
|
30
|
-
"command__empty"
|
|
31
|
-
],
|
|
32
|
-
[
|
|
33
|
-
"group",
|
|
34
|
-
"command__group"
|
|
35
|
-
],
|
|
36
|
-
[
|
|
37
|
-
"separator",
|
|
38
|
-
"command__separator"
|
|
39
|
-
],
|
|
40
|
-
[
|
|
41
|
-
"item",
|
|
42
|
-
"command__item"
|
|
43
|
-
],
|
|
44
|
-
[
|
|
45
|
-
"shortcut",
|
|
46
|
-
"command__shortcut"
|
|
47
|
-
]
|
|
48
|
-
]
|
|
49
|
-
const commandSlotFns = /* @__PURE__ */ commandSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, commandDefaultVariants, getSlotCompoundVariant(commandCompoundVariants, slotName))])
|
|
50
|
-
|
|
51
|
-
const commandFn = memo((props = {}) => {
|
|
52
|
-
return Object.fromEntries(commandSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
53
|
-
})
|
|
54
|
-
|
|
55
|
-
const commandVariantKeys = []
|
|
56
|
-
const getVariantProps = (variants) => ({ ...commandDefaultVariants, ...compact(variants) })
|
|
57
|
-
|
|
58
|
-
export const command = /* @__PURE__ */ Object.assign(commandFn, {
|
|
59
|
-
__recipe__: false,
|
|
60
|
-
__name__: 'command',
|
|
61
|
-
raw: (props) => props,
|
|
62
|
-
variantKeys: commandVariantKeys,
|
|
63
|
-
variantMap: {},
|
|
64
|
-
splitVariantProps(props) {
|
|
65
|
-
return splitProps(props, commandVariantKeys)
|
|
66
|
-
},
|
|
67
|
-
getVariantProps
|
|
68
|
-
})
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types.d.mts';
|
|
4
|
-
|
|
5
|
-
interface ContextMenuVariant {
|
|
6
|
-
/**
|
|
7
|
-
* @default false
|
|
8
|
-
*/
|
|
9
|
-
inset: boolean
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
type ContextMenuVariantMap = {
|
|
13
|
-
[key in keyof ContextMenuVariant]: Array<ContextMenuVariant[key]>
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export type ContextMenuVariantProps = {
|
|
17
|
-
[key in keyof ContextMenuVariant]?: ConditionalValue<ContextMenuVariant[key]> | undefined
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export interface ContextMenuRecipe {
|
|
21
|
-
__type: ContextMenuVariantProps
|
|
22
|
-
(props?: ContextMenuVariantProps): Pretty<Record<"root" | "trigger" | "group" | "portal" | "sub" | "radioGroup" | "subTrigger" | "subContent" | "content" | "item" | "checkboxItem" | "radioItem" | "label" | "separator" | "shortcut" | "itemIndicator", string>>
|
|
23
|
-
raw: (props?: ContextMenuVariantProps) => ContextMenuVariantProps
|
|
24
|
-
variantMap: ContextMenuVariantMap
|
|
25
|
-
variantKeys: Array<keyof ContextMenuVariant>
|
|
26
|
-
splitVariantProps<Props extends ContextMenuVariantProps>(props: Props): [ContextMenuVariantProps, Pretty<DistributiveOmit<Props, keyof ContextMenuVariantProps>>]
|
|
27
|
-
getVariantProps: (props?: ContextMenuVariantProps) => ContextMenuVariantProps
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Styles for the ContextMenu component
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
*/
|
|
35
|
-
export declare const contextMenu: ContextMenuRecipe
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.mjs';
|
|
2
|
-
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
-
|
|
4
|
-
const contextMenuDefaultVariants = {
|
|
5
|
-
"inset": false
|
|
6
|
-
}
|
|
7
|
-
const contextMenuCompoundVariants = []
|
|
8
|
-
|
|
9
|
-
const contextMenuSlotNames = [
|
|
10
|
-
[
|
|
11
|
-
"root",
|
|
12
|
-
"contextMenu__root"
|
|
13
|
-
],
|
|
14
|
-
[
|
|
15
|
-
"trigger",
|
|
16
|
-
"contextMenu__trigger"
|
|
17
|
-
],
|
|
18
|
-
[
|
|
19
|
-
"group",
|
|
20
|
-
"contextMenu__group"
|
|
21
|
-
],
|
|
22
|
-
[
|
|
23
|
-
"portal",
|
|
24
|
-
"contextMenu__portal"
|
|
25
|
-
],
|
|
26
|
-
[
|
|
27
|
-
"sub",
|
|
28
|
-
"contextMenu__sub"
|
|
29
|
-
],
|
|
30
|
-
[
|
|
31
|
-
"radioGroup",
|
|
32
|
-
"contextMenu__radioGroup"
|
|
33
|
-
],
|
|
34
|
-
[
|
|
35
|
-
"subTrigger",
|
|
36
|
-
"contextMenu__subTrigger"
|
|
37
|
-
],
|
|
38
|
-
[
|
|
39
|
-
"subContent",
|
|
40
|
-
"contextMenu__subContent"
|
|
41
|
-
],
|
|
42
|
-
[
|
|
43
|
-
"content",
|
|
44
|
-
"contextMenu__content"
|
|
45
|
-
],
|
|
46
|
-
[
|
|
47
|
-
"item",
|
|
48
|
-
"contextMenu__item"
|
|
49
|
-
],
|
|
50
|
-
[
|
|
51
|
-
"checkboxItem",
|
|
52
|
-
"contextMenu__checkboxItem"
|
|
53
|
-
],
|
|
54
|
-
[
|
|
55
|
-
"radioItem",
|
|
56
|
-
"contextMenu__radioItem"
|
|
57
|
-
],
|
|
58
|
-
[
|
|
59
|
-
"label",
|
|
60
|
-
"contextMenu__label"
|
|
61
|
-
],
|
|
62
|
-
[
|
|
63
|
-
"separator",
|
|
64
|
-
"contextMenu__separator"
|
|
65
|
-
],
|
|
66
|
-
[
|
|
67
|
-
"shortcut",
|
|
68
|
-
"contextMenu__shortcut"
|
|
69
|
-
],
|
|
70
|
-
[
|
|
71
|
-
"itemIndicator",
|
|
72
|
-
"contextMenu__itemIndicator"
|
|
73
|
-
]
|
|
74
|
-
]
|
|
75
|
-
const contextMenuSlotFns = /* @__PURE__ */ contextMenuSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, contextMenuDefaultVariants, getSlotCompoundVariant(contextMenuCompoundVariants, slotName))])
|
|
76
|
-
|
|
77
|
-
const contextMenuFn = memo((props = {}) => {
|
|
78
|
-
return Object.fromEntries(contextMenuSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
79
|
-
})
|
|
80
|
-
|
|
81
|
-
const contextMenuVariantKeys = [
|
|
82
|
-
"inset"
|
|
83
|
-
]
|
|
84
|
-
const getVariantProps = (variants) => ({ ...contextMenuDefaultVariants, ...compact(variants) })
|
|
85
|
-
|
|
86
|
-
export const contextMenu = /* @__PURE__ */ Object.assign(contextMenuFn, {
|
|
87
|
-
__recipe__: false,
|
|
88
|
-
__name__: 'contextMenu',
|
|
89
|
-
raw: (props) => props,
|
|
90
|
-
variantKeys: contextMenuVariantKeys,
|
|
91
|
-
variantMap: {
|
|
92
|
-
"inset": [
|
|
93
|
-
"true"
|
|
94
|
-
]
|
|
95
|
-
},
|
|
96
|
-
splitVariantProps(props) {
|
|
97
|
-
return splitProps(props, contextMenuVariantKeys)
|
|
98
|
-
},
|
|
99
|
-
getVariantProps
|
|
100
|
-
})
|