@luxonis/depthai-pipeline-lib 1.4.8
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/LICENSE.md +1 -0
- package/README.md +14 -0
- package/dist/index.css +3 -0
- package/dist/panda.css +1474 -0
- package/dist/src/components/Node.d.ts +5 -0
- package/dist/src/components/Node.js +42 -0
- package/dist/src/components/PipelineCanvas.d.ts +7 -0
- package/dist/src/components/PipelineCanvas.js +56 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.js +2 -0
- package/dist/src/services/pipeline.d.ts +51 -0
- package/dist/src/services/pipeline.js +40 -0
- package/dist/src/styled-system/chunks/src__components__Node.css +195 -0
- package/dist/src/styled-system/chunks/src__components__PipelineCanvas.css +25 -0
- package/dist/src/styled-system/css/conditions.mjs +34 -0
- package/dist/src/styled-system/css/css.d.mts +9 -0
- package/dist/src/styled-system/css/css.mjs +44 -0
- package/dist/src/styled-system/css/cva.d.mts +6 -0
- package/dist/src/styled-system/css/cva.mjs +63 -0
- package/dist/src/styled-system/css/cx.d.mts +5 -0
- package/dist/src/styled-system/css/cx.mjs +15 -0
- package/dist/src/styled-system/css/index.d.mts +5 -0
- package/dist/src/styled-system/css/index.mjs +4 -0
- package/dist/src/styled-system/css/sva.d.mts +4 -0
- package/dist/src/styled-system/css/sva.mjs +35 -0
- package/dist/src/styled-system/global.css +70 -0
- package/dist/src/styled-system/helpers.mjs +282 -0
- package/dist/src/styled-system/patterns/aspect-ratio.d.mts +21 -0
- package/dist/src/styled-system/patterns/aspect-ratio.mjs +35 -0
- package/dist/src/styled-system/patterns/bleed.d.mts +22 -0
- package/dist/src/styled-system/patterns/bleed.mjs +19 -0
- package/dist/src/styled-system/patterns/box.d.mts +21 -0
- package/dist/src/styled-system/patterns/box.mjs +12 -0
- package/dist/src/styled-system/patterns/center.d.mts +21 -0
- package/dist/src/styled-system/patterns/center.mjs +18 -0
- package/dist/src/styled-system/patterns/circle.d.mts +21 -0
- package/dist/src/styled-system/patterns/circle.mjs +22 -0
- package/dist/src/styled-system/patterns/container.d.mts +21 -0
- package/dist/src/styled-system/patterns/container.mjs +18 -0
- package/dist/src/styled-system/patterns/divider.d.mts +23 -0
- package/dist/src/styled-system/patterns/divider.mjs +21 -0
- package/dist/src/styled-system/patterns/flex.d.mts +27 -0
- package/dist/src/styled-system/patterns/flex.mjs +23 -0
- package/dist/src/styled-system/patterns/float.d.mts +24 -0
- package/dist/src/styled-system/patterns/float.mjs +45 -0
- package/dist/src/styled-system/patterns/grid-item.d.mts +26 -0
- package/dist/src/styled-system/patterns/grid-item.mjs +22 -0
- package/dist/src/styled-system/patterns/grid.d.mts +25 -0
- package/dist/src/styled-system/patterns/grid.mjs +20 -0
- package/dist/src/styled-system/patterns/hstack.d.mts +22 -0
- package/dist/src/styled-system/patterns/hstack.mjs +20 -0
- package/dist/src/styled-system/patterns/index.d.mts +21 -0
- package/dist/src/styled-system/patterns/index.mjs +20 -0
- package/dist/src/styled-system/patterns/link-box.d.mts +21 -0
- package/dist/src/styled-system/patterns/link-box.mjs +19 -0
- package/dist/src/styled-system/patterns/link-overlay.d.mts +21 -0
- package/dist/src/styled-system/patterns/link-overlay.mjs +24 -0
- package/dist/src/styled-system/patterns/spacer.d.mts +21 -0
- package/dist/src/styled-system/patterns/spacer.mjs +18 -0
- package/dist/src/styled-system/patterns/square.d.mts +21 -0
- package/dist/src/styled-system/patterns/square.mjs +21 -0
- package/dist/src/styled-system/patterns/stack.d.mts +24 -0
- package/dist/src/styled-system/patterns/stack.mjs +20 -0
- package/dist/src/styled-system/patterns/visually-hidden.d.mts +21 -0
- package/dist/src/styled-system/patterns/visually-hidden.mjs +15 -0
- package/dist/src/styled-system/patterns/vstack.d.mts +22 -0
- package/dist/src/styled-system/patterns/vstack.mjs +20 -0
- package/dist/src/styled-system/patterns/wrap.d.mts +25 -0
- package/dist/src/styled-system/patterns/wrap.mjs +22 -0
- package/dist/src/styled-system/recipes/accordion.d.mts +28 -0
- package/dist/src/styled-system/recipes/accordion.mjs +46 -0
- package/dist/src/styled-system/recipes/alert-description.d.mts +28 -0
- package/dist/src/styled-system/recipes/alert-description.mjs +19 -0
- package/dist/src/styled-system/recipes/alert-dialog.d.mts +28 -0
- package/dist/src/styled-system/recipes/alert-dialog.mjs +70 -0
- package/dist/src/styled-system/recipes/alert-title.d.mts +28 -0
- package/dist/src/styled-system/recipes/alert-title.mjs +19 -0
- package/dist/src/styled-system/recipes/alert.d.mts +28 -0
- package/dist/src/styled-system/recipes/alert.mjs +26 -0
- package/dist/src/styled-system/recipes/avatar.d.mts +28 -0
- package/dist/src/styled-system/recipes/avatar.mjs +38 -0
- package/dist/src/styled-system/recipes/badge.d.mts +28 -0
- package/dist/src/styled-system/recipes/badge.mjs +28 -0
- package/dist/src/styled-system/recipes/blockquote.d.mts +28 -0
- package/dist/src/styled-system/recipes/blockquote.mjs +19 -0
- package/dist/src/styled-system/recipes/button.d.mts +29 -0
- package/dist/src/styled-system/recipes/button.mjs +37 -0
- package/dist/src/styled-system/recipes/calendar.d.mts +28 -0
- package/dist/src/styled-system/recipes/calendar.mjs +118 -0
- package/dist/src/styled-system/recipes/card-content.d.mts +28 -0
- package/dist/src/styled-system/recipes/card-content.mjs +19 -0
- package/dist/src/styled-system/recipes/card-description.d.mts +28 -0
- package/dist/src/styled-system/recipes/card-description.mjs +19 -0
- package/dist/src/styled-system/recipes/card-footer.d.mts +28 -0
- package/dist/src/styled-system/recipes/card-footer.mjs +19 -0
- package/dist/src/styled-system/recipes/card-header.d.mts +28 -0
- package/dist/src/styled-system/recipes/card-header.mjs +19 -0
- package/dist/src/styled-system/recipes/card-title.d.mts +28 -0
- package/dist/src/styled-system/recipes/card-title.mjs +19 -0
- package/dist/src/styled-system/recipes/card.d.mts +28 -0
- package/dist/src/styled-system/recipes/card.mjs +19 -0
- package/dist/src/styled-system/recipes/checkbox.d.mts +28 -0
- package/dist/src/styled-system/recipes/checkbox.mjs +34 -0
- package/dist/src/styled-system/recipes/collapsible.d.mts +28 -0
- package/dist/src/styled-system/recipes/collapsible.mjs +38 -0
- package/dist/src/styled-system/recipes/command-dialog.d.mts +28 -0
- package/dist/src/styled-system/recipes/command-dialog.mjs +34 -0
- package/dist/src/styled-system/recipes/command.d.mts +28 -0
- package/dist/src/styled-system/recipes/command.mjs +66 -0
- package/dist/src/styled-system/recipes/context-menu.d.mts +28 -0
- package/dist/src/styled-system/recipes/context-menu.mjs +98 -0
- package/dist/src/styled-system/recipes/create-recipe.d.mts +1 -0
- package/dist/src/styled-system/recipes/create-recipe.mjs +50 -0
- package/dist/src/styled-system/recipes/dialog.d.mts +28 -0
- package/dist/src/styled-system/recipes/dialog.mjs +66 -0
- package/dist/src/styled-system/recipes/dropdown-menu.d.mts +28 -0
- package/dist/src/styled-system/recipes/dropdown-menu.mjs +90 -0
- package/dist/src/styled-system/recipes/form-control.d.mts +28 -0
- package/dist/src/styled-system/recipes/form-control.mjs +19 -0
- package/dist/src/styled-system/recipes/form-description.d.mts +28 -0
- package/dist/src/styled-system/recipes/form-description.mjs +19 -0
- package/dist/src/styled-system/recipes/form-item.d.mts +28 -0
- package/dist/src/styled-system/recipes/form-item.mjs +19 -0
- package/dist/src/styled-system/recipes/form-label.d.mts +28 -0
- package/dist/src/styled-system/recipes/form-label.mjs +19 -0
- package/dist/src/styled-system/recipes/form-message.d.mts +28 -0
- package/dist/src/styled-system/recipes/form-message.mjs +19 -0
- package/dist/src/styled-system/recipes/h1.d.mts +28 -0
- package/dist/src/styled-system/recipes/h1.mjs +19 -0
- package/dist/src/styled-system/recipes/h2.d.mts +28 -0
- package/dist/src/styled-system/recipes/h2.mjs +19 -0
- package/dist/src/styled-system/recipes/h3.d.mts +28 -0
- package/dist/src/styled-system/recipes/h3.mjs +19 -0
- package/dist/src/styled-system/recipes/h4.d.mts +28 -0
- package/dist/src/styled-system/recipes/h4.mjs +19 -0
- package/dist/src/styled-system/recipes/hover-card.d.mts +28 -0
- package/dist/src/styled-system/recipes/hover-card.mjs +38 -0
- package/dist/src/styled-system/recipes/icon.d.mts +32 -0
- package/dist/src/styled-system/recipes/icon.mjs +49 -0
- package/dist/src/styled-system/recipes/index.d.mts +74 -0
- package/dist/src/styled-system/recipes/index.mjs +73 -0
- package/dist/src/styled-system/recipes/inline-code.d.mts +28 -0
- package/dist/src/styled-system/recipes/inline-code.mjs +19 -0
- package/dist/src/styled-system/recipes/input.d.mts +28 -0
- package/dist/src/styled-system/recipes/input.mjs +19 -0
- package/dist/src/styled-system/recipes/label.d.mts +28 -0
- package/dist/src/styled-system/recipes/label.mjs +19 -0
- package/dist/src/styled-system/recipes/large.d.mts +28 -0
- package/dist/src/styled-system/recipes/large.mjs +19 -0
- package/dist/src/styled-system/recipes/lead.d.mts +28 -0
- package/dist/src/styled-system/recipes/lead.mjs +19 -0
- package/dist/src/styled-system/recipes/link.d.mts +28 -0
- package/dist/src/styled-system/recipes/link.mjs +19 -0
- package/dist/src/styled-system/recipes/list.d.mts +28 -0
- package/dist/src/styled-system/recipes/list.mjs +19 -0
- package/dist/src/styled-system/recipes/menubar.d.mts +28 -0
- package/dist/src/styled-system/recipes/menubar.mjs +94 -0
- package/dist/src/styled-system/recipes/muted.d.mts +28 -0
- package/dist/src/styled-system/recipes/muted.mjs +19 -0
- package/dist/src/styled-system/recipes/navigation-menu.d.mts +28 -0
- package/dist/src/styled-system/recipes/navigation-menu.mjs +62 -0
- package/dist/src/styled-system/recipes/p.d.mts +28 -0
- package/dist/src/styled-system/recipes/p.mjs +19 -0
- package/dist/src/styled-system/recipes/popover.d.mts +28 -0
- package/dist/src/styled-system/recipes/popover.mjs +42 -0
- package/dist/src/styled-system/recipes/progress.d.mts +28 -0
- package/dist/src/styled-system/recipes/progress.mjs +34 -0
- package/dist/src/styled-system/recipes/radio-group.d.mts +28 -0
- package/dist/src/styled-system/recipes/radio-group.mjs +42 -0
- package/dist/src/styled-system/recipes/scroll-area.d.mts +28 -0
- package/dist/src/styled-system/recipes/scroll-area.mjs +46 -0
- package/dist/src/styled-system/recipes/select.d.mts +28 -0
- package/dist/src/styled-system/recipes/select.mjs +66 -0
- package/dist/src/styled-system/recipes/separator.d.mts +28 -0
- package/dist/src/styled-system/recipes/separator.mjs +26 -0
- package/dist/src/styled-system/recipes/sheet.d.mts +28 -0
- package/dist/src/styled-system/recipes/sheet.mjs +81 -0
- package/dist/src/styled-system/recipes/skeleton.d.mts +28 -0
- package/dist/src/styled-system/recipes/skeleton.mjs +19 -0
- package/dist/src/styled-system/recipes/slider.d.mts +28 -0
- package/dist/src/styled-system/recipes/slider.mjs +42 -0
- package/dist/src/styled-system/recipes/small.d.mts +28 -0
- package/dist/src/styled-system/recipes/small.mjs +19 -0
- package/dist/src/styled-system/recipes/switch-recipe.d.mts +28 -0
- package/dist/src/styled-system/recipes/switch-recipe.mjs +34 -0
- package/dist/src/styled-system/recipes/table-body.d.mts +28 -0
- package/dist/src/styled-system/recipes/table-body.mjs +19 -0
- package/dist/src/styled-system/recipes/table-caption.d.mts +28 -0
- package/dist/src/styled-system/recipes/table-caption.mjs +19 -0
- package/dist/src/styled-system/recipes/table-cell.d.mts +28 -0
- package/dist/src/styled-system/recipes/table-cell.mjs +19 -0
- package/dist/src/styled-system/recipes/table-container.d.mts +28 -0
- package/dist/src/styled-system/recipes/table-container.mjs +19 -0
- package/dist/src/styled-system/recipes/table-footer.d.mts +28 -0
- package/dist/src/styled-system/recipes/table-footer.mjs +19 -0
- package/dist/src/styled-system/recipes/table-head.d.mts +28 -0
- package/dist/src/styled-system/recipes/table-head.mjs +19 -0
- package/dist/src/styled-system/recipes/table-header.d.mts +28 -0
- package/dist/src/styled-system/recipes/table-header.mjs +19 -0
- package/dist/src/styled-system/recipes/table-row.d.mts +28 -0
- package/dist/src/styled-system/recipes/table-row.mjs +19 -0
- package/dist/src/styled-system/recipes/table.d.mts +28 -0
- package/dist/src/styled-system/recipes/table.mjs +19 -0
- package/dist/src/styled-system/recipes/tabs.d.mts +28 -0
- package/dist/src/styled-system/recipes/tabs.mjs +42 -0
- package/dist/src/styled-system/recipes/textarea.d.mts +28 -0
- package/dist/src/styled-system/recipes/textarea.mjs +19 -0
- package/dist/src/styled-system/recipes/toast-viewport.d.mts +28 -0
- package/dist/src/styled-system/recipes/toast-viewport.mjs +19 -0
- package/dist/src/styled-system/recipes/toast.d.mts +28 -0
- package/dist/src/styled-system/recipes/toast.mjs +59 -0
- package/dist/src/styled-system/recipes/toggle.d.mts +29 -0
- package/dist/src/styled-system/recipes/toggle.mjs +32 -0
- package/dist/src/styled-system/recipes/tooltip.d.mts +28 -0
- package/dist/src/styled-system/recipes/tooltip.mjs +38 -0
- package/dist/src/styled-system/recipes/typography-table-container.d.mts +28 -0
- package/dist/src/styled-system/recipes/typography-table-container.mjs +19 -0
- package/dist/src/styled-system/recipes/typography-table.d.mts +28 -0
- package/dist/src/styled-system/recipes/typography-table.mjs +19 -0
- package/dist/src/styled-system/reset.css +206 -0
- package/dist/src/styled-system/static.css +320 -0
- package/dist/src/styled-system/tokens/index.css +620 -0
- package/dist/src/styled-system/tokens/index.d.mts +9 -0
- package/dist/src/styled-system/tokens/index.mjs +2680 -0
- package/dist/src/styled-system/tokens/keyframes.css +56 -0
- package/dist/src/styled-system/tokens/tokens.d.mts +63 -0
- package/dist/src/styled-system/types/composition.d.mts +111 -0
- package/dist/src/styled-system/types/conditions.d.mts +266 -0
- package/dist/src/styled-system/types/csstype.d.mts +20749 -0
- package/dist/src/styled-system/types/global.d.mts +19 -0
- package/dist/src/styled-system/types/helpers.d.mts +2 -0
- package/dist/src/styled-system/types/index.d.mts +8 -0
- package/dist/src/styled-system/types/parts.d.mts +6 -0
- package/dist/src/styled-system/types/pattern.d.mts +61 -0
- package/dist/src/styled-system/types/prop-type.d.mts +340 -0
- package/dist/src/styled-system/types/recipe.d.mts +148 -0
- package/dist/src/styled-system/types/selectors.d.mts +59 -0
- package/dist/src/styled-system/types/style-props.d.mts +687 -0
- package/dist/src/styled-system/types/system-types.d.mts +85 -0
- package/package.json +63 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const radioGroupDefaultVariants = {}
|
|
5
|
+
const radioGroupCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const radioGroupSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"radioGroup__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"item",
|
|
14
|
+
"radioGroup__item"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"indicator",
|
|
18
|
+
"radioGroup__indicator"
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
"icon",
|
|
22
|
+
"radioGroup__icon"
|
|
23
|
+
]
|
|
24
|
+
]
|
|
25
|
+
const radioGroupSlotFns = /* @__PURE__ */ radioGroupSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, radioGroupDefaultVariants, getSlotCompoundVariant(radioGroupCompoundVariants, slotName))])
|
|
26
|
+
|
|
27
|
+
const radioGroupFn = (props = {}) => {
|
|
28
|
+
return Object.fromEntries(radioGroupSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const radioGroupVariantKeys = []
|
|
32
|
+
|
|
33
|
+
export const radioGroup = /* @__PURE__ */ Object.assign(radioGroupFn, {
|
|
34
|
+
__recipe__: false,
|
|
35
|
+
__name__: 'radioGroup',
|
|
36
|
+
raw: (props) => props,
|
|
37
|
+
variantKeys: radioGroupVariantKeys,
|
|
38
|
+
variantMap: {},
|
|
39
|
+
splitVariantProps(props) {
|
|
40
|
+
return splitProps(props, radioGroupVariantKeys)
|
|
41
|
+
},
|
|
42
|
+
})
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
+
import type { Pretty } from '../types/helpers.d.mts';
|
|
4
|
+
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
5
|
+
|
|
6
|
+
interface ScrollAreaVariant {
|
|
7
|
+
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type ScrollAreaVariantMap = {
|
|
11
|
+
[key in keyof ScrollAreaVariant]: Array<ScrollAreaVariant[key]>
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type ScrollAreaVariantProps = {
|
|
15
|
+
[key in keyof ScrollAreaVariant]?: ConditionalValue<ScrollAreaVariant[key]>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface ScrollAreaRecipe {
|
|
19
|
+
__type: ScrollAreaVariantProps
|
|
20
|
+
(props?: ScrollAreaVariantProps): Pretty<Record<"root" | "viewport" | "corner" | "scrollbar" | "thumb", string>>
|
|
21
|
+
raw: (props?: ScrollAreaVariantProps) => ScrollAreaVariantProps
|
|
22
|
+
variantMap: ScrollAreaVariantMap
|
|
23
|
+
variantKeys: Array<keyof ScrollAreaVariant>
|
|
24
|
+
splitVariantProps<Props extends ScrollAreaVariantProps>(props: Props): [ScrollAreaVariantProps, Pretty<DistributiveOmit<Props, keyof ScrollAreaVariantProps>>]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Styles for the ScrollArea component */
|
|
28
|
+
export declare const scrollArea: ScrollAreaRecipe
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const scrollAreaDefaultVariants = {}
|
|
5
|
+
const scrollAreaCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const scrollAreaSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"scrollArea__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"viewport",
|
|
14
|
+
"scrollArea__viewport"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"corner",
|
|
18
|
+
"scrollArea__corner"
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
"scrollbar",
|
|
22
|
+
"scrollArea__scrollbar"
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
"thumb",
|
|
26
|
+
"scrollArea__thumb"
|
|
27
|
+
]
|
|
28
|
+
]
|
|
29
|
+
const scrollAreaSlotFns = /* @__PURE__ */ scrollAreaSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, scrollAreaDefaultVariants, getSlotCompoundVariant(scrollAreaCompoundVariants, slotName))])
|
|
30
|
+
|
|
31
|
+
const scrollAreaFn = (props = {}) => {
|
|
32
|
+
return Object.fromEntries(scrollAreaSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
const scrollAreaVariantKeys = []
|
|
36
|
+
|
|
37
|
+
export const scrollArea = /* @__PURE__ */ Object.assign(scrollAreaFn, {
|
|
38
|
+
__recipe__: false,
|
|
39
|
+
__name__: 'scrollArea',
|
|
40
|
+
raw: (props) => props,
|
|
41
|
+
variantKeys: scrollAreaVariantKeys,
|
|
42
|
+
variantMap: {},
|
|
43
|
+
splitVariantProps(props) {
|
|
44
|
+
return splitProps(props, scrollAreaVariantKeys)
|
|
45
|
+
},
|
|
46
|
+
})
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
+
import type { Pretty } from '../types/helpers.d.mts';
|
|
4
|
+
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
5
|
+
|
|
6
|
+
interface SelectVariant {
|
|
7
|
+
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type SelectVariantMap = {
|
|
11
|
+
[key in keyof SelectVariant]: Array<SelectVariant[key]>
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type SelectVariantProps = {
|
|
15
|
+
[key in keyof SelectVariant]?: ConditionalValue<SelectVariant[key]>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface SelectRecipe {
|
|
19
|
+
__type: SelectVariantProps
|
|
20
|
+
(props?: SelectVariantProps): Pretty<Record<"root" | "group" | "value" | "trigger" | "viewport" | "content" | "label" | "item" | "itemIndicator" | "separator", string>>
|
|
21
|
+
raw: (props?: SelectVariantProps) => SelectVariantProps
|
|
22
|
+
variantMap: SelectVariantMap
|
|
23
|
+
variantKeys: Array<keyof SelectVariant>
|
|
24
|
+
splitVariantProps<Props extends SelectVariantProps>(props: Props): [SelectVariantProps, Pretty<DistributiveOmit<Props, keyof SelectVariantProps>>]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Styles for the Select component */
|
|
28
|
+
export declare const select: SelectRecipe
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const selectDefaultVariants = {}
|
|
5
|
+
const selectCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const selectSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"select__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"group",
|
|
14
|
+
"select__group"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"value",
|
|
18
|
+
"select__value"
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
"trigger",
|
|
22
|
+
"select__trigger"
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
"viewport",
|
|
26
|
+
"select__viewport"
|
|
27
|
+
],
|
|
28
|
+
[
|
|
29
|
+
"content",
|
|
30
|
+
"select__content"
|
|
31
|
+
],
|
|
32
|
+
[
|
|
33
|
+
"label",
|
|
34
|
+
"select__label"
|
|
35
|
+
],
|
|
36
|
+
[
|
|
37
|
+
"item",
|
|
38
|
+
"select__item"
|
|
39
|
+
],
|
|
40
|
+
[
|
|
41
|
+
"itemIndicator",
|
|
42
|
+
"select__itemIndicator"
|
|
43
|
+
],
|
|
44
|
+
[
|
|
45
|
+
"separator",
|
|
46
|
+
"select__separator"
|
|
47
|
+
]
|
|
48
|
+
]
|
|
49
|
+
const selectSlotFns = /* @__PURE__ */ selectSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, selectDefaultVariants, getSlotCompoundVariant(selectCompoundVariants, slotName))])
|
|
50
|
+
|
|
51
|
+
const selectFn = (props = {}) => {
|
|
52
|
+
return Object.fromEntries(selectSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
const selectVariantKeys = []
|
|
56
|
+
|
|
57
|
+
export const select = /* @__PURE__ */ Object.assign(selectFn, {
|
|
58
|
+
__recipe__: false,
|
|
59
|
+
__name__: 'select',
|
|
60
|
+
raw: (props) => props,
|
|
61
|
+
variantKeys: selectVariantKeys,
|
|
62
|
+
variantMap: {},
|
|
63
|
+
splitVariantProps(props) {
|
|
64
|
+
return splitProps(props, selectVariantKeys)
|
|
65
|
+
},
|
|
66
|
+
})
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
+
import type { Pretty } from '../types/helpers.d.mts';
|
|
4
|
+
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
5
|
+
|
|
6
|
+
interface SeparatorVariant {
|
|
7
|
+
orientation: "horizontal" | "vertical"
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type SeparatorVariantMap = {
|
|
11
|
+
[key in keyof SeparatorVariant]: Array<SeparatorVariant[key]>
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type SeparatorVariantProps = {
|
|
15
|
+
[key in keyof SeparatorVariant]?: ConditionalValue<SeparatorVariant[key]>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface SeparatorRecipe {
|
|
19
|
+
__type: SeparatorVariantProps
|
|
20
|
+
(props?: SeparatorVariantProps): string
|
|
21
|
+
raw: (props?: SeparatorVariantProps) => SeparatorVariantProps
|
|
22
|
+
variantMap: SeparatorVariantMap
|
|
23
|
+
variantKeys: Array<keyof SeparatorVariant>
|
|
24
|
+
splitVariantProps<Props extends SeparatorVariantProps>(props: Props): [SeparatorVariantProps, Pretty<DistributiveOmit<Props, keyof SeparatorVariantProps>>]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Styles for the Separator component */
|
|
28
|
+
export declare const separator: SeparatorRecipe
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const separatorFn = /* @__PURE__ */ createRecipe('separator', {
|
|
5
|
+
"orientation": "horizontal"
|
|
6
|
+
}, [])
|
|
7
|
+
|
|
8
|
+
const separatorVariantMap = {
|
|
9
|
+
"orientation": [
|
|
10
|
+
"horizontal",
|
|
11
|
+
"vertical"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
const separatorVariantKeys = Object.keys(separatorVariantMap)
|
|
16
|
+
|
|
17
|
+
export const separator = /* @__PURE__ */ Object.assign(separatorFn, {
|
|
18
|
+
__recipe__: true,
|
|
19
|
+
__name__: 'separator',
|
|
20
|
+
raw: (props) => props,
|
|
21
|
+
variantKeys: separatorVariantKeys,
|
|
22
|
+
variantMap: separatorVariantMap,
|
|
23
|
+
splitVariantProps(props) {
|
|
24
|
+
return splitProps(props, separatorVariantKeys)
|
|
25
|
+
},
|
|
26
|
+
})
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
+
import type { Pretty } from '../types/helpers.d.mts';
|
|
4
|
+
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
5
|
+
|
|
6
|
+
interface SheetVariant {
|
|
7
|
+
side: "top" | "bottom" | "left" | "right"
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type SheetVariantMap = {
|
|
11
|
+
[key in keyof SheetVariant]: Array<SheetVariant[key]>
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type SheetVariantProps = {
|
|
15
|
+
[key in keyof SheetVariant]?: ConditionalValue<SheetVariant[key]>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface SheetRecipe {
|
|
19
|
+
__type: SheetVariantProps
|
|
20
|
+
(props?: SheetVariantProps): Pretty<Record<"root" | "trigger" | "close" | "portal" | "overlay" | "header" | "footer" | "title" | "description" | "content" | "contentClose", string>>
|
|
21
|
+
raw: (props?: SheetVariantProps) => SheetVariantProps
|
|
22
|
+
variantMap: SheetVariantMap
|
|
23
|
+
variantKeys: Array<keyof SheetVariant>
|
|
24
|
+
splitVariantProps<Props extends SheetVariantProps>(props: Props): [SheetVariantProps, Pretty<DistributiveOmit<Props, keyof SheetVariantProps>>]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Styles for the Sheet component */
|
|
28
|
+
export declare const sheet: SheetRecipe
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const sheetDefaultVariants = {
|
|
5
|
+
"side": "right"
|
|
6
|
+
}
|
|
7
|
+
const sheetCompoundVariants = []
|
|
8
|
+
|
|
9
|
+
const sheetSlotNames = [
|
|
10
|
+
[
|
|
11
|
+
"root",
|
|
12
|
+
"sheet__root"
|
|
13
|
+
],
|
|
14
|
+
[
|
|
15
|
+
"trigger",
|
|
16
|
+
"sheet__trigger"
|
|
17
|
+
],
|
|
18
|
+
[
|
|
19
|
+
"close",
|
|
20
|
+
"sheet__close"
|
|
21
|
+
],
|
|
22
|
+
[
|
|
23
|
+
"portal",
|
|
24
|
+
"sheet__portal"
|
|
25
|
+
],
|
|
26
|
+
[
|
|
27
|
+
"overlay",
|
|
28
|
+
"sheet__overlay"
|
|
29
|
+
],
|
|
30
|
+
[
|
|
31
|
+
"header",
|
|
32
|
+
"sheet__header"
|
|
33
|
+
],
|
|
34
|
+
[
|
|
35
|
+
"footer",
|
|
36
|
+
"sheet__footer"
|
|
37
|
+
],
|
|
38
|
+
[
|
|
39
|
+
"title",
|
|
40
|
+
"sheet__title"
|
|
41
|
+
],
|
|
42
|
+
[
|
|
43
|
+
"description",
|
|
44
|
+
"sheet__description"
|
|
45
|
+
],
|
|
46
|
+
[
|
|
47
|
+
"content",
|
|
48
|
+
"sheet__content"
|
|
49
|
+
],
|
|
50
|
+
[
|
|
51
|
+
"contentClose",
|
|
52
|
+
"sheet__contentClose"
|
|
53
|
+
]
|
|
54
|
+
]
|
|
55
|
+
const sheetSlotFns = /* @__PURE__ */ sheetSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, sheetDefaultVariants, getSlotCompoundVariant(sheetCompoundVariants, slotName))])
|
|
56
|
+
|
|
57
|
+
const sheetFn = (props = {}) => {
|
|
58
|
+
return Object.fromEntries(sheetSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
const sheetVariantKeys = [
|
|
62
|
+
"side"
|
|
63
|
+
]
|
|
64
|
+
|
|
65
|
+
export const sheet = /* @__PURE__ */ Object.assign(sheetFn, {
|
|
66
|
+
__recipe__: false,
|
|
67
|
+
__name__: 'sheet',
|
|
68
|
+
raw: (props) => props,
|
|
69
|
+
variantKeys: sheetVariantKeys,
|
|
70
|
+
variantMap: {
|
|
71
|
+
"side": [
|
|
72
|
+
"top",
|
|
73
|
+
"bottom",
|
|
74
|
+
"left",
|
|
75
|
+
"right"
|
|
76
|
+
]
|
|
77
|
+
},
|
|
78
|
+
splitVariantProps(props) {
|
|
79
|
+
return splitProps(props, sheetVariantKeys)
|
|
80
|
+
},
|
|
81
|
+
})
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
+
import type { Pretty } from '../types/helpers.d.mts';
|
|
4
|
+
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
5
|
+
|
|
6
|
+
interface SkeletonVariant {
|
|
7
|
+
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type SkeletonVariantMap = {
|
|
11
|
+
[key in keyof SkeletonVariant]: Array<SkeletonVariant[key]>
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type SkeletonVariantProps = {
|
|
15
|
+
[key in keyof SkeletonVariant]?: ConditionalValue<SkeletonVariant[key]>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface SkeletonRecipe {
|
|
19
|
+
__type: SkeletonVariantProps
|
|
20
|
+
(props?: SkeletonVariantProps): string
|
|
21
|
+
raw: (props?: SkeletonVariantProps) => SkeletonVariantProps
|
|
22
|
+
variantMap: SkeletonVariantMap
|
|
23
|
+
variantKeys: Array<keyof SkeletonVariant>
|
|
24
|
+
splitVariantProps<Props extends SkeletonVariantProps>(props: Props): [SkeletonVariantProps, Pretty<DistributiveOmit<Props, keyof SkeletonVariantProps>>]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Styles for the Skeleton component */
|
|
28
|
+
export declare const skeleton: SkeletonRecipe
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const skeletonFn = /* @__PURE__ */ createRecipe('skeleton', {}, [])
|
|
5
|
+
|
|
6
|
+
const skeletonVariantMap = {}
|
|
7
|
+
|
|
8
|
+
const skeletonVariantKeys = Object.keys(skeletonVariantMap)
|
|
9
|
+
|
|
10
|
+
export const skeleton = /* @__PURE__ */ Object.assign(skeletonFn, {
|
|
11
|
+
__recipe__: true,
|
|
12
|
+
__name__: 'skeleton',
|
|
13
|
+
raw: (props) => props,
|
|
14
|
+
variantKeys: skeletonVariantKeys,
|
|
15
|
+
variantMap: skeletonVariantMap,
|
|
16
|
+
splitVariantProps(props) {
|
|
17
|
+
return splitProps(props, skeletonVariantKeys)
|
|
18
|
+
},
|
|
19
|
+
})
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
+
import type { Pretty } from '../types/helpers.d.mts';
|
|
4
|
+
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
5
|
+
|
|
6
|
+
interface SliderVariant {
|
|
7
|
+
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type SliderVariantMap = {
|
|
11
|
+
[key in keyof SliderVariant]: Array<SliderVariant[key]>
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type SliderVariantProps = {
|
|
15
|
+
[key in keyof SliderVariant]?: ConditionalValue<SliderVariant[key]>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface SliderRecipe {
|
|
19
|
+
__type: SliderVariantProps
|
|
20
|
+
(props?: SliderVariantProps): Pretty<Record<"root" | "track" | "range" | "thumb", string>>
|
|
21
|
+
raw: (props?: SliderVariantProps) => SliderVariantProps
|
|
22
|
+
variantMap: SliderVariantMap
|
|
23
|
+
variantKeys: Array<keyof SliderVariant>
|
|
24
|
+
splitVariantProps<Props extends SliderVariantProps>(props: Props): [SliderVariantProps, Pretty<DistributiveOmit<Props, keyof SliderVariantProps>>]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Styles for the Slider component */
|
|
28
|
+
export declare const slider: SliderRecipe
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const sliderDefaultVariants = {}
|
|
5
|
+
const sliderCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const sliderSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"slider__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"track",
|
|
14
|
+
"slider__track"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"range",
|
|
18
|
+
"slider__range"
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
"thumb",
|
|
22
|
+
"slider__thumb"
|
|
23
|
+
]
|
|
24
|
+
]
|
|
25
|
+
const sliderSlotFns = /* @__PURE__ */ sliderSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, sliderDefaultVariants, getSlotCompoundVariant(sliderCompoundVariants, slotName))])
|
|
26
|
+
|
|
27
|
+
const sliderFn = (props = {}) => {
|
|
28
|
+
return Object.fromEntries(sliderSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const sliderVariantKeys = []
|
|
32
|
+
|
|
33
|
+
export const slider = /* @__PURE__ */ Object.assign(sliderFn, {
|
|
34
|
+
__recipe__: false,
|
|
35
|
+
__name__: 'slider',
|
|
36
|
+
raw: (props) => props,
|
|
37
|
+
variantKeys: sliderVariantKeys,
|
|
38
|
+
variantMap: {},
|
|
39
|
+
splitVariantProps(props) {
|
|
40
|
+
return splitProps(props, sliderVariantKeys)
|
|
41
|
+
},
|
|
42
|
+
})
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
+
import type { Pretty } from '../types/helpers.d.mts';
|
|
4
|
+
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
5
|
+
|
|
6
|
+
interface SmallVariant {
|
|
7
|
+
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type SmallVariantMap = {
|
|
11
|
+
[key in keyof SmallVariant]: Array<SmallVariant[key]>
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type SmallVariantProps = {
|
|
15
|
+
[key in keyof SmallVariant]?: ConditionalValue<SmallVariant[key]>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface SmallRecipe {
|
|
19
|
+
__type: SmallVariantProps
|
|
20
|
+
(props?: SmallVariantProps): string
|
|
21
|
+
raw: (props?: SmallVariantProps) => SmallVariantProps
|
|
22
|
+
variantMap: SmallVariantMap
|
|
23
|
+
variantKeys: Array<keyof SmallVariant>
|
|
24
|
+
splitVariantProps<Props extends SmallVariantProps>(props: Props): [SmallVariantProps, Pretty<DistributiveOmit<Props, keyof SmallVariantProps>>]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Typography - Small style */
|
|
28
|
+
export declare const small: SmallRecipe
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const smallFn = /* @__PURE__ */ createRecipe('small', {}, [])
|
|
5
|
+
|
|
6
|
+
const smallVariantMap = {}
|
|
7
|
+
|
|
8
|
+
const smallVariantKeys = Object.keys(smallVariantMap)
|
|
9
|
+
|
|
10
|
+
export const small = /* @__PURE__ */ Object.assign(smallFn, {
|
|
11
|
+
__recipe__: true,
|
|
12
|
+
__name__: 'small',
|
|
13
|
+
raw: (props) => props,
|
|
14
|
+
variantKeys: smallVariantKeys,
|
|
15
|
+
variantMap: smallVariantMap,
|
|
16
|
+
splitVariantProps(props) {
|
|
17
|
+
return splitProps(props, smallVariantKeys)
|
|
18
|
+
},
|
|
19
|
+
})
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
+
import type { Pretty } from '../types/helpers.d.mts';
|
|
4
|
+
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
5
|
+
|
|
6
|
+
interface SwitchRecipeVariant {
|
|
7
|
+
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type SwitchRecipeVariantMap = {
|
|
11
|
+
[key in keyof SwitchRecipeVariant]: Array<SwitchRecipeVariant[key]>
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type SwitchRecipeVariantProps = {
|
|
15
|
+
[key in keyof SwitchRecipeVariant]?: ConditionalValue<SwitchRecipeVariant[key]>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface SwitchRecipeRecipe {
|
|
19
|
+
__type: SwitchRecipeVariantProps
|
|
20
|
+
(props?: SwitchRecipeVariantProps): Pretty<Record<"root" | "thumb", string>>
|
|
21
|
+
raw: (props?: SwitchRecipeVariantProps) => SwitchRecipeVariantProps
|
|
22
|
+
variantMap: SwitchRecipeVariantMap
|
|
23
|
+
variantKeys: Array<keyof SwitchRecipeVariant>
|
|
24
|
+
splitVariantProps<Props extends SwitchRecipeVariantProps>(props: Props): [SwitchRecipeVariantProps, Pretty<DistributiveOmit<Props, keyof SwitchRecipeVariantProps>>]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Styles for the Switch component */
|
|
28
|
+
export declare const switchRecipe: SwitchRecipeRecipe
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const switchRecipeDefaultVariants = {}
|
|
5
|
+
const switchRecipeCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const switchRecipeSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"switchRecipe__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"thumb",
|
|
14
|
+
"switchRecipe__thumb"
|
|
15
|
+
]
|
|
16
|
+
]
|
|
17
|
+
const switchRecipeSlotFns = /* @__PURE__ */ switchRecipeSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, switchRecipeDefaultVariants, getSlotCompoundVariant(switchRecipeCompoundVariants, slotName))])
|
|
18
|
+
|
|
19
|
+
const switchRecipeFn = (props = {}) => {
|
|
20
|
+
return Object.fromEntries(switchRecipeSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const switchRecipeVariantKeys = []
|
|
24
|
+
|
|
25
|
+
export const switchRecipe = /* @__PURE__ */ Object.assign(switchRecipeFn, {
|
|
26
|
+
__recipe__: false,
|
|
27
|
+
__name__: 'switchRecipe',
|
|
28
|
+
raw: (props) => props,
|
|
29
|
+
variantKeys: switchRecipeVariantKeys,
|
|
30
|
+
variantMap: {},
|
|
31
|
+
splitVariantProps(props) {
|
|
32
|
+
return splitProps(props, switchRecipeVariantKeys)
|
|
33
|
+
},
|
|
34
|
+
})
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import type { ConditionalValue } from '../types/index.d.mts';
|
|
3
|
+
import type { Pretty } from '../types/helpers.d.mts';
|
|
4
|
+
import type { DistributiveOmit } from '../types/system-types.d.mts';
|
|
5
|
+
|
|
6
|
+
interface TableBodyVariant {
|
|
7
|
+
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type TableBodyVariantMap = {
|
|
11
|
+
[key in keyof TableBodyVariant]: Array<TableBodyVariant[key]>
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type TableBodyVariantProps = {
|
|
15
|
+
[key in keyof TableBodyVariant]?: ConditionalValue<TableBodyVariant[key]>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface TableBodyRecipe {
|
|
19
|
+
__type: TableBodyVariantProps
|
|
20
|
+
(props?: TableBodyVariantProps): string
|
|
21
|
+
raw: (props?: TableBodyVariantProps) => TableBodyVariantProps
|
|
22
|
+
variantMap: TableBodyVariantMap
|
|
23
|
+
variantKeys: Array<keyof TableBodyVariant>
|
|
24
|
+
splitVariantProps<Props extends TableBodyVariantProps>(props: Props): [TableBodyVariantProps, Pretty<DistributiveOmit<Props, keyof TableBodyVariantProps>>]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Styles for the TableBody component */
|
|
28
|
+
export declare const tableBody: TableBodyRecipe
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const tableBodyFn = /* @__PURE__ */ createRecipe('tableBody', {}, [])
|
|
5
|
+
|
|
6
|
+
const tableBodyVariantMap = {}
|
|
7
|
+
|
|
8
|
+
const tableBodyVariantKeys = Object.keys(tableBodyVariantMap)
|
|
9
|
+
|
|
10
|
+
export const tableBody = /* @__PURE__ */ Object.assign(tableBodyFn, {
|
|
11
|
+
__recipe__: true,
|
|
12
|
+
__name__: 'tableBody',
|
|
13
|
+
raw: (props) => props,
|
|
14
|
+
variantKeys: tableBodyVariantKeys,
|
|
15
|
+
variantMap: tableBodyVariantMap,
|
|
16
|
+
splitVariantProps(props) {
|
|
17
|
+
return splitProps(props, tableBodyVariantKeys)
|
|
18
|
+
},
|
|
19
|
+
})
|