@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,66 @@
|
|
|
1
|
+
import { splitProps, getSlotCompoundVariant } 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 = (props = {}) => {
|
|
52
|
+
return Object.fromEntries(commandSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
const commandVariantKeys = []
|
|
56
|
+
|
|
57
|
+
export const command = /* @__PURE__ */ Object.assign(commandFn, {
|
|
58
|
+
__recipe__: false,
|
|
59
|
+
__name__: 'command',
|
|
60
|
+
raw: (props) => props,
|
|
61
|
+
variantKeys: commandVariantKeys,
|
|
62
|
+
variantMap: {},
|
|
63
|
+
splitVariantProps(props) {
|
|
64
|
+
return splitProps(props, commandVariantKeys)
|
|
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 ContextMenuVariant {
|
|
7
|
+
inset: boolean
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type ContextMenuVariantMap = {
|
|
11
|
+
[key in keyof ContextMenuVariant]: Array<ContextMenuVariant[key]>
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type ContextMenuVariantProps = {
|
|
15
|
+
[key in keyof ContextMenuVariant]?: ConditionalValue<ContextMenuVariant[key]>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface ContextMenuRecipe {
|
|
19
|
+
__type: ContextMenuVariantProps
|
|
20
|
+
(props?: ContextMenuVariantProps): Pretty<Record<"root" | "trigger" | "group" | "portal" | "sub" | "radioGroup" | "subTrigger" | "subContent" | "content" | "item" | "checkboxItem" | "radioItem" | "label" | "separator" | "shortcut" | "itemIndicator", string>>
|
|
21
|
+
raw: (props?: ContextMenuVariantProps) => ContextMenuVariantProps
|
|
22
|
+
variantMap: ContextMenuVariantMap
|
|
23
|
+
variantKeys: Array<keyof ContextMenuVariant>
|
|
24
|
+
splitVariantProps<Props extends ContextMenuVariantProps>(props: Props): [ContextMenuVariantProps, Pretty<DistributiveOmit<Props, keyof ContextMenuVariantProps>>]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Styles for the ContextMenu component */
|
|
28
|
+
export declare const contextMenu: ContextMenuRecipe
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { splitProps, getSlotCompoundVariant } 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 = (props = {}) => {
|
|
78
|
+
return Object.fromEntries(contextMenuSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
const contextMenuVariantKeys = [
|
|
82
|
+
"inset"
|
|
83
|
+
]
|
|
84
|
+
|
|
85
|
+
export const contextMenu = /* @__PURE__ */ Object.assign(contextMenuFn, {
|
|
86
|
+
__recipe__: false,
|
|
87
|
+
__name__: 'contextMenu',
|
|
88
|
+
raw: (props) => props,
|
|
89
|
+
variantKeys: contextMenuVariantKeys,
|
|
90
|
+
variantMap: {
|
|
91
|
+
"inset": [
|
|
92
|
+
"true"
|
|
93
|
+
]
|
|
94
|
+
},
|
|
95
|
+
splitVariantProps(props) {
|
|
96
|
+
return splitProps(props, contextMenuVariantKeys)
|
|
97
|
+
},
|
|
98
|
+
})
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { css } from '../css/css.mjs';
|
|
2
|
+
import { assertCompoundVariant, getCompoundVariantCss } from '../css/cva.mjs';
|
|
3
|
+
import { cx } from '../css/cx.mjs';
|
|
4
|
+
import { compact, createCss, withoutSpace } from '../helpers.mjs';
|
|
5
|
+
|
|
6
|
+
export const createRecipe = (name, defaultVariants, compoundVariants) => {
|
|
7
|
+
const getRecipeStyles = (variants) => {
|
|
8
|
+
return {
|
|
9
|
+
[name]: '__ignore__',
|
|
10
|
+
...defaultVariants,
|
|
11
|
+
...compact(variants),
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const recipeFn = (variants, withCompoundVariants = true) => {
|
|
16
|
+
const transform = (prop, value) => {
|
|
17
|
+
assertCompoundVariant(name, compoundVariants, variants, prop)
|
|
18
|
+
|
|
19
|
+
if (value === '__ignore__') {
|
|
20
|
+
return { className: name }
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
value = withoutSpace(value)
|
|
24
|
+
return { className: `${name}--${prop}_${value}` }
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const recipeCss = createCss({
|
|
28
|
+
|
|
29
|
+
utility: {
|
|
30
|
+
|
|
31
|
+
transform,
|
|
32
|
+
}
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
const recipeStyles = getRecipeStyles(variants)
|
|
36
|
+
|
|
37
|
+
if (withCompoundVariants) {
|
|
38
|
+
const compoundVariantStyles = getCompoundVariantCss(compoundVariants, recipeStyles)
|
|
39
|
+
return cx(recipeCss(recipeStyles), css(compoundVariantStyles))
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
return recipeCss(recipeStyles)
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
return Object.assign(recipeFn, {
|
|
46
|
+
__getCompoundVariantCss__: (variants) => {
|
|
47
|
+
return getCompoundVariantCss(compoundVariants, getRecipeStyles(variants));
|
|
48
|
+
},
|
|
49
|
+
})
|
|
50
|
+
}
|
|
@@ -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 DialogVariant {
|
|
7
|
+
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type DialogVariantMap = {
|
|
11
|
+
[key in keyof DialogVariant]: Array<DialogVariant[key]>
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type DialogVariantProps = {
|
|
15
|
+
[key in keyof DialogVariant]?: ConditionalValue<DialogVariant[key]>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface DialogRecipe {
|
|
19
|
+
__type: DialogVariantProps
|
|
20
|
+
(props?: DialogVariantProps): Pretty<Record<"root" | "trigger" | "portal" | "overlay" | "close" | "content" | "header" | "footer" | "title" | "description", string>>
|
|
21
|
+
raw: (props?: DialogVariantProps) => DialogVariantProps
|
|
22
|
+
variantMap: DialogVariantMap
|
|
23
|
+
variantKeys: Array<keyof DialogVariant>
|
|
24
|
+
splitVariantProps<Props extends DialogVariantProps>(props: Props): [DialogVariantProps, Pretty<DistributiveOmit<Props, keyof DialogVariantProps>>]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Styles for the Dialog component */
|
|
28
|
+
export declare const dialog: DialogRecipe
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const dialogDefaultVariants = {}
|
|
5
|
+
const dialogCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const dialogSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"dialog__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"trigger",
|
|
14
|
+
"dialog__trigger"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"portal",
|
|
18
|
+
"dialog__portal"
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
"overlay",
|
|
22
|
+
"dialog__overlay"
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
"close",
|
|
26
|
+
"dialog__close"
|
|
27
|
+
],
|
|
28
|
+
[
|
|
29
|
+
"content",
|
|
30
|
+
"dialog__content"
|
|
31
|
+
],
|
|
32
|
+
[
|
|
33
|
+
"header",
|
|
34
|
+
"dialog__header"
|
|
35
|
+
],
|
|
36
|
+
[
|
|
37
|
+
"footer",
|
|
38
|
+
"dialog__footer"
|
|
39
|
+
],
|
|
40
|
+
[
|
|
41
|
+
"title",
|
|
42
|
+
"dialog__title"
|
|
43
|
+
],
|
|
44
|
+
[
|
|
45
|
+
"description",
|
|
46
|
+
"dialog__description"
|
|
47
|
+
]
|
|
48
|
+
]
|
|
49
|
+
const dialogSlotFns = /* @__PURE__ */ dialogSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, dialogDefaultVariants, getSlotCompoundVariant(dialogCompoundVariants, slotName))])
|
|
50
|
+
|
|
51
|
+
const dialogFn = (props = {}) => {
|
|
52
|
+
return Object.fromEntries(dialogSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
const dialogVariantKeys = []
|
|
56
|
+
|
|
57
|
+
export const dialog = /* @__PURE__ */ Object.assign(dialogFn, {
|
|
58
|
+
__recipe__: false,
|
|
59
|
+
__name__: 'dialog',
|
|
60
|
+
raw: (props) => props,
|
|
61
|
+
variantKeys: dialogVariantKeys,
|
|
62
|
+
variantMap: {},
|
|
63
|
+
splitVariantProps(props) {
|
|
64
|
+
return splitProps(props, dialogVariantKeys)
|
|
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 DropdownMenuVariant {
|
|
7
|
+
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type DropdownMenuVariantMap = {
|
|
11
|
+
[key in keyof DropdownMenuVariant]: Array<DropdownMenuVariant[key]>
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type DropdownMenuVariantProps = {
|
|
15
|
+
[key in keyof DropdownMenuVariant]?: ConditionalValue<DropdownMenuVariant[key]>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface DropdownMenuRecipe {
|
|
19
|
+
__type: DropdownMenuVariantProps
|
|
20
|
+
(props?: DropdownMenuVariantProps): Pretty<Record<"root" | "trigger" | "group" | "portal" | "sub" | "radioGroup" | "subTrigger" | "subContent" | "content" | "item" | "itemIndicator" | "checkboxItem" | "radioItem" | "label" | "separator" | "shortcut", string>>
|
|
21
|
+
raw: (props?: DropdownMenuVariantProps) => DropdownMenuVariantProps
|
|
22
|
+
variantMap: DropdownMenuVariantMap
|
|
23
|
+
variantKeys: Array<keyof DropdownMenuVariant>
|
|
24
|
+
splitVariantProps<Props extends DropdownMenuVariantProps>(props: Props): [DropdownMenuVariantProps, Pretty<DistributiveOmit<Props, keyof DropdownMenuVariantProps>>]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Styles for the DropdownMenu component */
|
|
28
|
+
export declare const dropdownMenu: DropdownMenuRecipe
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const dropdownMenuDefaultVariants = {}
|
|
5
|
+
const dropdownMenuCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const dropdownMenuSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"dropdownMenu__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"trigger",
|
|
14
|
+
"dropdownMenu__trigger"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"group",
|
|
18
|
+
"dropdownMenu__group"
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
"portal",
|
|
22
|
+
"dropdownMenu__portal"
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
"sub",
|
|
26
|
+
"dropdownMenu__sub"
|
|
27
|
+
],
|
|
28
|
+
[
|
|
29
|
+
"radioGroup",
|
|
30
|
+
"dropdownMenu__radioGroup"
|
|
31
|
+
],
|
|
32
|
+
[
|
|
33
|
+
"subTrigger",
|
|
34
|
+
"dropdownMenu__subTrigger"
|
|
35
|
+
],
|
|
36
|
+
[
|
|
37
|
+
"subContent",
|
|
38
|
+
"dropdownMenu__subContent"
|
|
39
|
+
],
|
|
40
|
+
[
|
|
41
|
+
"content",
|
|
42
|
+
"dropdownMenu__content"
|
|
43
|
+
],
|
|
44
|
+
[
|
|
45
|
+
"item",
|
|
46
|
+
"dropdownMenu__item"
|
|
47
|
+
],
|
|
48
|
+
[
|
|
49
|
+
"itemIndicator",
|
|
50
|
+
"dropdownMenu__itemIndicator"
|
|
51
|
+
],
|
|
52
|
+
[
|
|
53
|
+
"checkboxItem",
|
|
54
|
+
"dropdownMenu__checkboxItem"
|
|
55
|
+
],
|
|
56
|
+
[
|
|
57
|
+
"radioItem",
|
|
58
|
+
"dropdownMenu__radioItem"
|
|
59
|
+
],
|
|
60
|
+
[
|
|
61
|
+
"label",
|
|
62
|
+
"dropdownMenu__label"
|
|
63
|
+
],
|
|
64
|
+
[
|
|
65
|
+
"separator",
|
|
66
|
+
"dropdownMenu__separator"
|
|
67
|
+
],
|
|
68
|
+
[
|
|
69
|
+
"shortcut",
|
|
70
|
+
"dropdownMenu__shortcut"
|
|
71
|
+
]
|
|
72
|
+
]
|
|
73
|
+
const dropdownMenuSlotFns = /* @__PURE__ */ dropdownMenuSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, dropdownMenuDefaultVariants, getSlotCompoundVariant(dropdownMenuCompoundVariants, slotName))])
|
|
74
|
+
|
|
75
|
+
const dropdownMenuFn = (props = {}) => {
|
|
76
|
+
return Object.fromEntries(dropdownMenuSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
const dropdownMenuVariantKeys = []
|
|
80
|
+
|
|
81
|
+
export const dropdownMenu = /* @__PURE__ */ Object.assign(dropdownMenuFn, {
|
|
82
|
+
__recipe__: false,
|
|
83
|
+
__name__: 'dropdownMenu',
|
|
84
|
+
raw: (props) => props,
|
|
85
|
+
variantKeys: dropdownMenuVariantKeys,
|
|
86
|
+
variantMap: {},
|
|
87
|
+
splitVariantProps(props) {
|
|
88
|
+
return splitProps(props, dropdownMenuVariantKeys)
|
|
89
|
+
},
|
|
90
|
+
})
|
|
@@ -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 FormControlVariant {
|
|
7
|
+
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type FormControlVariantMap = {
|
|
11
|
+
[key in keyof FormControlVariant]: Array<FormControlVariant[key]>
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type FormControlVariantProps = {
|
|
15
|
+
[key in keyof FormControlVariant]?: ConditionalValue<FormControlVariant[key]>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface FormControlRecipe {
|
|
19
|
+
__type: FormControlVariantProps
|
|
20
|
+
(props?: FormControlVariantProps): string
|
|
21
|
+
raw: (props?: FormControlVariantProps) => FormControlVariantProps
|
|
22
|
+
variantMap: FormControlVariantMap
|
|
23
|
+
variantKeys: Array<keyof FormControlVariant>
|
|
24
|
+
splitVariantProps<Props extends FormControlVariantProps>(props: Props): [FormControlVariantProps, Pretty<DistributiveOmit<Props, keyof FormControlVariantProps>>]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Styles for the FormControl component */
|
|
28
|
+
export declare const formControl: FormControlRecipe
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const formControlFn = /* @__PURE__ */ createRecipe('formControl', {}, [])
|
|
5
|
+
|
|
6
|
+
const formControlVariantMap = {}
|
|
7
|
+
|
|
8
|
+
const formControlVariantKeys = Object.keys(formControlVariantMap)
|
|
9
|
+
|
|
10
|
+
export const formControl = /* @__PURE__ */ Object.assign(formControlFn, {
|
|
11
|
+
__recipe__: true,
|
|
12
|
+
__name__: 'formControl',
|
|
13
|
+
raw: (props) => props,
|
|
14
|
+
variantKeys: formControlVariantKeys,
|
|
15
|
+
variantMap: formControlVariantMap,
|
|
16
|
+
splitVariantProps(props) {
|
|
17
|
+
return splitProps(props, formControlVariantKeys)
|
|
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 FormDescriptionVariant {
|
|
7
|
+
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type FormDescriptionVariantMap = {
|
|
11
|
+
[key in keyof FormDescriptionVariant]: Array<FormDescriptionVariant[key]>
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type FormDescriptionVariantProps = {
|
|
15
|
+
[key in keyof FormDescriptionVariant]?: ConditionalValue<FormDescriptionVariant[key]>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface FormDescriptionRecipe {
|
|
19
|
+
__type: FormDescriptionVariantProps
|
|
20
|
+
(props?: FormDescriptionVariantProps): string
|
|
21
|
+
raw: (props?: FormDescriptionVariantProps) => FormDescriptionVariantProps
|
|
22
|
+
variantMap: FormDescriptionVariantMap
|
|
23
|
+
variantKeys: Array<keyof FormDescriptionVariant>
|
|
24
|
+
splitVariantProps<Props extends FormDescriptionVariantProps>(props: Props): [FormDescriptionVariantProps, Pretty<DistributiveOmit<Props, keyof FormDescriptionVariantProps>>]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Styles for the FormDescription component */
|
|
28
|
+
export declare const formDescription: FormDescriptionRecipe
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const formDescriptionFn = /* @__PURE__ */ createRecipe('formDescription', {}, [])
|
|
5
|
+
|
|
6
|
+
const formDescriptionVariantMap = {}
|
|
7
|
+
|
|
8
|
+
const formDescriptionVariantKeys = Object.keys(formDescriptionVariantMap)
|
|
9
|
+
|
|
10
|
+
export const formDescription = /* @__PURE__ */ Object.assign(formDescriptionFn, {
|
|
11
|
+
__recipe__: true,
|
|
12
|
+
__name__: 'formDescription',
|
|
13
|
+
raw: (props) => props,
|
|
14
|
+
variantKeys: formDescriptionVariantKeys,
|
|
15
|
+
variantMap: formDescriptionVariantMap,
|
|
16
|
+
splitVariantProps(props) {
|
|
17
|
+
return splitProps(props, formDescriptionVariantKeys)
|
|
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 FormItemVariant {
|
|
7
|
+
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type FormItemVariantMap = {
|
|
11
|
+
[key in keyof FormItemVariant]: Array<FormItemVariant[key]>
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type FormItemVariantProps = {
|
|
15
|
+
[key in keyof FormItemVariant]?: ConditionalValue<FormItemVariant[key]>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface FormItemRecipe {
|
|
19
|
+
__type: FormItemVariantProps
|
|
20
|
+
(props?: FormItemVariantProps): string
|
|
21
|
+
raw: (props?: FormItemVariantProps) => FormItemVariantProps
|
|
22
|
+
variantMap: FormItemVariantMap
|
|
23
|
+
variantKeys: Array<keyof FormItemVariant>
|
|
24
|
+
splitVariantProps<Props extends FormItemVariantProps>(props: Props): [FormItemVariantProps, Pretty<DistributiveOmit<Props, keyof FormItemVariantProps>>]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Styles for the FormItem component */
|
|
28
|
+
export declare const formItem: FormItemRecipe
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const formItemFn = /* @__PURE__ */ createRecipe('formItem', {}, [])
|
|
5
|
+
|
|
6
|
+
const formItemVariantMap = {}
|
|
7
|
+
|
|
8
|
+
const formItemVariantKeys = Object.keys(formItemVariantMap)
|
|
9
|
+
|
|
10
|
+
export const formItem = /* @__PURE__ */ Object.assign(formItemFn, {
|
|
11
|
+
__recipe__: true,
|
|
12
|
+
__name__: 'formItem',
|
|
13
|
+
raw: (props) => props,
|
|
14
|
+
variantKeys: formItemVariantKeys,
|
|
15
|
+
variantMap: formItemVariantMap,
|
|
16
|
+
splitVariantProps(props) {
|
|
17
|
+
return splitProps(props, formItemVariantKeys)
|
|
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 FormLabelVariant {
|
|
7
|
+
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type FormLabelVariantMap = {
|
|
11
|
+
[key in keyof FormLabelVariant]: Array<FormLabelVariant[key]>
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type FormLabelVariantProps = {
|
|
15
|
+
[key in keyof FormLabelVariant]?: ConditionalValue<FormLabelVariant[key]>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface FormLabelRecipe {
|
|
19
|
+
__type: FormLabelVariantProps
|
|
20
|
+
(props?: FormLabelVariantProps): string
|
|
21
|
+
raw: (props?: FormLabelVariantProps) => FormLabelVariantProps
|
|
22
|
+
variantMap: FormLabelVariantMap
|
|
23
|
+
variantKeys: Array<keyof FormLabelVariant>
|
|
24
|
+
splitVariantProps<Props extends FormLabelVariantProps>(props: Props): [FormLabelVariantProps, Pretty<DistributiveOmit<Props, keyof FormLabelVariantProps>>]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Styles for the FormLabel component */
|
|
28
|
+
export declare const formLabel: FormLabelRecipe
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const formLabelFn = /* @__PURE__ */ createRecipe('formLabel', {}, [])
|
|
5
|
+
|
|
6
|
+
const formLabelVariantMap = {}
|
|
7
|
+
|
|
8
|
+
const formLabelVariantKeys = Object.keys(formLabelVariantMap)
|
|
9
|
+
|
|
10
|
+
export const formLabel = /* @__PURE__ */ Object.assign(formLabelFn, {
|
|
11
|
+
__recipe__: true,
|
|
12
|
+
__name__: 'formLabel',
|
|
13
|
+
raw: (props) => props,
|
|
14
|
+
variantKeys: formLabelVariantKeys,
|
|
15
|
+
variantMap: formLabelVariantMap,
|
|
16
|
+
splitVariantProps(props) {
|
|
17
|
+
return splitProps(props, formLabelVariantKeys)
|
|
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 FormMessageVariant {
|
|
7
|
+
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type FormMessageVariantMap = {
|
|
11
|
+
[key in keyof FormMessageVariant]: Array<FormMessageVariant[key]>
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type FormMessageVariantProps = {
|
|
15
|
+
[key in keyof FormMessageVariant]?: ConditionalValue<FormMessageVariant[key]>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface FormMessageRecipe {
|
|
19
|
+
__type: FormMessageVariantProps
|
|
20
|
+
(props?: FormMessageVariantProps): string
|
|
21
|
+
raw: (props?: FormMessageVariantProps) => FormMessageVariantProps
|
|
22
|
+
variantMap: FormMessageVariantMap
|
|
23
|
+
variantKeys: Array<keyof FormMessageVariant>
|
|
24
|
+
splitVariantProps<Props extends FormMessageVariantProps>(props: Props): [FormMessageVariantProps, Pretty<DistributiveOmit<Props, keyof FormMessageVariantProps>>]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Styles for the FormMessage component */
|
|
28
|
+
export declare const formMessage: FormMessageRecipe
|