@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,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 TableCaptionVariant {
|
|
7
|
+
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type TableCaptionVariantMap = {
|
|
11
|
+
[key in keyof TableCaptionVariant]: Array<TableCaptionVariant[key]>
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type TableCaptionVariantProps = {
|
|
15
|
+
[key in keyof TableCaptionVariant]?: ConditionalValue<TableCaptionVariant[key]>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface TableCaptionRecipe {
|
|
19
|
+
__type: TableCaptionVariantProps
|
|
20
|
+
(props?: TableCaptionVariantProps): string
|
|
21
|
+
raw: (props?: TableCaptionVariantProps) => TableCaptionVariantProps
|
|
22
|
+
variantMap: TableCaptionVariantMap
|
|
23
|
+
variantKeys: Array<keyof TableCaptionVariant>
|
|
24
|
+
splitVariantProps<Props extends TableCaptionVariantProps>(props: Props): [TableCaptionVariantProps, Pretty<DistributiveOmit<Props, keyof TableCaptionVariantProps>>]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Styles for the TableCaption component */
|
|
28
|
+
export declare const tableCaption: TableCaptionRecipe
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const tableCaptionFn = /* @__PURE__ */ createRecipe('tableCaption', {}, [])
|
|
5
|
+
|
|
6
|
+
const tableCaptionVariantMap = {}
|
|
7
|
+
|
|
8
|
+
const tableCaptionVariantKeys = Object.keys(tableCaptionVariantMap)
|
|
9
|
+
|
|
10
|
+
export const tableCaption = /* @__PURE__ */ Object.assign(tableCaptionFn, {
|
|
11
|
+
__recipe__: true,
|
|
12
|
+
__name__: 'tableCaption',
|
|
13
|
+
raw: (props) => props,
|
|
14
|
+
variantKeys: tableCaptionVariantKeys,
|
|
15
|
+
variantMap: tableCaptionVariantMap,
|
|
16
|
+
splitVariantProps(props) {
|
|
17
|
+
return splitProps(props, tableCaptionVariantKeys)
|
|
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 TableCellVariant {
|
|
7
|
+
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type TableCellVariantMap = {
|
|
11
|
+
[key in keyof TableCellVariant]: Array<TableCellVariant[key]>
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type TableCellVariantProps = {
|
|
15
|
+
[key in keyof TableCellVariant]?: ConditionalValue<TableCellVariant[key]>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface TableCellRecipe {
|
|
19
|
+
__type: TableCellVariantProps
|
|
20
|
+
(props?: TableCellVariantProps): string
|
|
21
|
+
raw: (props?: TableCellVariantProps) => TableCellVariantProps
|
|
22
|
+
variantMap: TableCellVariantMap
|
|
23
|
+
variantKeys: Array<keyof TableCellVariant>
|
|
24
|
+
splitVariantProps<Props extends TableCellVariantProps>(props: Props): [TableCellVariantProps, Pretty<DistributiveOmit<Props, keyof TableCellVariantProps>>]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Styles for the TableCell component */
|
|
28
|
+
export declare const tableCell: TableCellRecipe
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const tableCellFn = /* @__PURE__ */ createRecipe('tableCell', {}, [])
|
|
5
|
+
|
|
6
|
+
const tableCellVariantMap = {}
|
|
7
|
+
|
|
8
|
+
const tableCellVariantKeys = Object.keys(tableCellVariantMap)
|
|
9
|
+
|
|
10
|
+
export const tableCell = /* @__PURE__ */ Object.assign(tableCellFn, {
|
|
11
|
+
__recipe__: true,
|
|
12
|
+
__name__: 'tableCell',
|
|
13
|
+
raw: (props) => props,
|
|
14
|
+
variantKeys: tableCellVariantKeys,
|
|
15
|
+
variantMap: tableCellVariantMap,
|
|
16
|
+
splitVariantProps(props) {
|
|
17
|
+
return splitProps(props, tableCellVariantKeys)
|
|
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 TableContainerVariant {
|
|
7
|
+
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type TableContainerVariantMap = {
|
|
11
|
+
[key in keyof TableContainerVariant]: Array<TableContainerVariant[key]>
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type TableContainerVariantProps = {
|
|
15
|
+
[key in keyof TableContainerVariant]?: ConditionalValue<TableContainerVariant[key]>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface TableContainerRecipe {
|
|
19
|
+
__type: TableContainerVariantProps
|
|
20
|
+
(props?: TableContainerVariantProps): string
|
|
21
|
+
raw: (props?: TableContainerVariantProps) => TableContainerVariantProps
|
|
22
|
+
variantMap: TableContainerVariantMap
|
|
23
|
+
variantKeys: Array<keyof TableContainerVariant>
|
|
24
|
+
splitVariantProps<Props extends TableContainerVariantProps>(props: Props): [TableContainerVariantProps, Pretty<DistributiveOmit<Props, keyof TableContainerVariantProps>>]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Styles for the TableContainer component */
|
|
28
|
+
export declare const tableContainer: TableContainerRecipe
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const tableContainerFn = /* @__PURE__ */ createRecipe('tableContainer', {}, [])
|
|
5
|
+
|
|
6
|
+
const tableContainerVariantMap = {}
|
|
7
|
+
|
|
8
|
+
const tableContainerVariantKeys = Object.keys(tableContainerVariantMap)
|
|
9
|
+
|
|
10
|
+
export const tableContainer = /* @__PURE__ */ Object.assign(tableContainerFn, {
|
|
11
|
+
__recipe__: true,
|
|
12
|
+
__name__: 'tableContainer',
|
|
13
|
+
raw: (props) => props,
|
|
14
|
+
variantKeys: tableContainerVariantKeys,
|
|
15
|
+
variantMap: tableContainerVariantMap,
|
|
16
|
+
splitVariantProps(props) {
|
|
17
|
+
return splitProps(props, tableContainerVariantKeys)
|
|
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 TableFooterVariant {
|
|
7
|
+
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type TableFooterVariantMap = {
|
|
11
|
+
[key in keyof TableFooterVariant]: Array<TableFooterVariant[key]>
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type TableFooterVariantProps = {
|
|
15
|
+
[key in keyof TableFooterVariant]?: ConditionalValue<TableFooterVariant[key]>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface TableFooterRecipe {
|
|
19
|
+
__type: TableFooterVariantProps
|
|
20
|
+
(props?: TableFooterVariantProps): string
|
|
21
|
+
raw: (props?: TableFooterVariantProps) => TableFooterVariantProps
|
|
22
|
+
variantMap: TableFooterVariantMap
|
|
23
|
+
variantKeys: Array<keyof TableFooterVariant>
|
|
24
|
+
splitVariantProps<Props extends TableFooterVariantProps>(props: Props): [TableFooterVariantProps, Pretty<DistributiveOmit<Props, keyof TableFooterVariantProps>>]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Styles for the TableFooter component */
|
|
28
|
+
export declare const tableFooter: TableFooterRecipe
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const tableFooterFn = /* @__PURE__ */ createRecipe('tableFooter', {}, [])
|
|
5
|
+
|
|
6
|
+
const tableFooterVariantMap = {}
|
|
7
|
+
|
|
8
|
+
const tableFooterVariantKeys = Object.keys(tableFooterVariantMap)
|
|
9
|
+
|
|
10
|
+
export const tableFooter = /* @__PURE__ */ Object.assign(tableFooterFn, {
|
|
11
|
+
__recipe__: true,
|
|
12
|
+
__name__: 'tableFooter',
|
|
13
|
+
raw: (props) => props,
|
|
14
|
+
variantKeys: tableFooterVariantKeys,
|
|
15
|
+
variantMap: tableFooterVariantMap,
|
|
16
|
+
splitVariantProps(props) {
|
|
17
|
+
return splitProps(props, tableFooterVariantKeys)
|
|
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 TableHeadVariant {
|
|
7
|
+
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type TableHeadVariantMap = {
|
|
11
|
+
[key in keyof TableHeadVariant]: Array<TableHeadVariant[key]>
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type TableHeadVariantProps = {
|
|
15
|
+
[key in keyof TableHeadVariant]?: ConditionalValue<TableHeadVariant[key]>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface TableHeadRecipe {
|
|
19
|
+
__type: TableHeadVariantProps
|
|
20
|
+
(props?: TableHeadVariantProps): string
|
|
21
|
+
raw: (props?: TableHeadVariantProps) => TableHeadVariantProps
|
|
22
|
+
variantMap: TableHeadVariantMap
|
|
23
|
+
variantKeys: Array<keyof TableHeadVariant>
|
|
24
|
+
splitVariantProps<Props extends TableHeadVariantProps>(props: Props): [TableHeadVariantProps, Pretty<DistributiveOmit<Props, keyof TableHeadVariantProps>>]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Styles for the TableHead component */
|
|
28
|
+
export declare const tableHead: TableHeadRecipe
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const tableHeadFn = /* @__PURE__ */ createRecipe('tableHead', {}, [])
|
|
5
|
+
|
|
6
|
+
const tableHeadVariantMap = {}
|
|
7
|
+
|
|
8
|
+
const tableHeadVariantKeys = Object.keys(tableHeadVariantMap)
|
|
9
|
+
|
|
10
|
+
export const tableHead = /* @__PURE__ */ Object.assign(tableHeadFn, {
|
|
11
|
+
__recipe__: true,
|
|
12
|
+
__name__: 'tableHead',
|
|
13
|
+
raw: (props) => props,
|
|
14
|
+
variantKeys: tableHeadVariantKeys,
|
|
15
|
+
variantMap: tableHeadVariantMap,
|
|
16
|
+
splitVariantProps(props) {
|
|
17
|
+
return splitProps(props, tableHeadVariantKeys)
|
|
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 TableHeaderVariant {
|
|
7
|
+
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type TableHeaderVariantMap = {
|
|
11
|
+
[key in keyof TableHeaderVariant]: Array<TableHeaderVariant[key]>
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type TableHeaderVariantProps = {
|
|
15
|
+
[key in keyof TableHeaderVariant]?: ConditionalValue<TableHeaderVariant[key]>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface TableHeaderRecipe {
|
|
19
|
+
__type: TableHeaderVariantProps
|
|
20
|
+
(props?: TableHeaderVariantProps): string
|
|
21
|
+
raw: (props?: TableHeaderVariantProps) => TableHeaderVariantProps
|
|
22
|
+
variantMap: TableHeaderVariantMap
|
|
23
|
+
variantKeys: Array<keyof TableHeaderVariant>
|
|
24
|
+
splitVariantProps<Props extends TableHeaderVariantProps>(props: Props): [TableHeaderVariantProps, Pretty<DistributiveOmit<Props, keyof TableHeaderVariantProps>>]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Styles for the TableHeader component */
|
|
28
|
+
export declare const tableHeader: TableHeaderRecipe
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const tableHeaderFn = /* @__PURE__ */ createRecipe('tableHeader', {}, [])
|
|
5
|
+
|
|
6
|
+
const tableHeaderVariantMap = {}
|
|
7
|
+
|
|
8
|
+
const tableHeaderVariantKeys = Object.keys(tableHeaderVariantMap)
|
|
9
|
+
|
|
10
|
+
export const tableHeader = /* @__PURE__ */ Object.assign(tableHeaderFn, {
|
|
11
|
+
__recipe__: true,
|
|
12
|
+
__name__: 'tableHeader',
|
|
13
|
+
raw: (props) => props,
|
|
14
|
+
variantKeys: tableHeaderVariantKeys,
|
|
15
|
+
variantMap: tableHeaderVariantMap,
|
|
16
|
+
splitVariantProps(props) {
|
|
17
|
+
return splitProps(props, tableHeaderVariantKeys)
|
|
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 TableRowVariant {
|
|
7
|
+
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type TableRowVariantMap = {
|
|
11
|
+
[key in keyof TableRowVariant]: Array<TableRowVariant[key]>
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type TableRowVariantProps = {
|
|
15
|
+
[key in keyof TableRowVariant]?: ConditionalValue<TableRowVariant[key]>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface TableRowRecipe {
|
|
19
|
+
__type: TableRowVariantProps
|
|
20
|
+
(props?: TableRowVariantProps): string
|
|
21
|
+
raw: (props?: TableRowVariantProps) => TableRowVariantProps
|
|
22
|
+
variantMap: TableRowVariantMap
|
|
23
|
+
variantKeys: Array<keyof TableRowVariant>
|
|
24
|
+
splitVariantProps<Props extends TableRowVariantProps>(props: Props): [TableRowVariantProps, Pretty<DistributiveOmit<Props, keyof TableRowVariantProps>>]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Styles for the TableRow component */
|
|
28
|
+
export declare const tableRow: TableRowRecipe
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const tableRowFn = /* @__PURE__ */ createRecipe('tableRow', {}, [])
|
|
5
|
+
|
|
6
|
+
const tableRowVariantMap = {}
|
|
7
|
+
|
|
8
|
+
const tableRowVariantKeys = Object.keys(tableRowVariantMap)
|
|
9
|
+
|
|
10
|
+
export const tableRow = /* @__PURE__ */ Object.assign(tableRowFn, {
|
|
11
|
+
__recipe__: true,
|
|
12
|
+
__name__: 'tableRow',
|
|
13
|
+
raw: (props) => props,
|
|
14
|
+
variantKeys: tableRowVariantKeys,
|
|
15
|
+
variantMap: tableRowVariantMap,
|
|
16
|
+
splitVariantProps(props) {
|
|
17
|
+
return splitProps(props, tableRowVariantKeys)
|
|
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 TableVariant {
|
|
7
|
+
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type TableVariantMap = {
|
|
11
|
+
[key in keyof TableVariant]: Array<TableVariant[key]>
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type TableVariantProps = {
|
|
15
|
+
[key in keyof TableVariant]?: ConditionalValue<TableVariant[key]>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface TableRecipe {
|
|
19
|
+
__type: TableVariantProps
|
|
20
|
+
(props?: TableVariantProps): string
|
|
21
|
+
raw: (props?: TableVariantProps) => TableVariantProps
|
|
22
|
+
variantMap: TableVariantMap
|
|
23
|
+
variantKeys: Array<keyof TableVariant>
|
|
24
|
+
splitVariantProps<Props extends TableVariantProps>(props: Props): [TableVariantProps, Pretty<DistributiveOmit<Props, keyof TableVariantProps>>]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Styles for the Table component */
|
|
28
|
+
export declare const table: TableRecipe
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const tableFn = /* @__PURE__ */ createRecipe('table', {}, [])
|
|
5
|
+
|
|
6
|
+
const tableVariantMap = {}
|
|
7
|
+
|
|
8
|
+
const tableVariantKeys = Object.keys(tableVariantMap)
|
|
9
|
+
|
|
10
|
+
export const table = /* @__PURE__ */ Object.assign(tableFn, {
|
|
11
|
+
__recipe__: true,
|
|
12
|
+
__name__: 'table',
|
|
13
|
+
raw: (props) => props,
|
|
14
|
+
variantKeys: tableVariantKeys,
|
|
15
|
+
variantMap: tableVariantMap,
|
|
16
|
+
splitVariantProps(props) {
|
|
17
|
+
return splitProps(props, tableVariantKeys)
|
|
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 TabsVariant {
|
|
7
|
+
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type TabsVariantMap = {
|
|
11
|
+
[key in keyof TabsVariant]: Array<TabsVariant[key]>
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type TabsVariantProps = {
|
|
15
|
+
[key in keyof TabsVariant]?: ConditionalValue<TabsVariant[key]>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface TabsRecipe {
|
|
19
|
+
__type: TabsVariantProps
|
|
20
|
+
(props?: TabsVariantProps): Pretty<Record<"root" | "list" | "trigger" | "content", string>>
|
|
21
|
+
raw: (props?: TabsVariantProps) => TabsVariantProps
|
|
22
|
+
variantMap: TabsVariantMap
|
|
23
|
+
variantKeys: Array<keyof TabsVariant>
|
|
24
|
+
splitVariantProps<Props extends TabsVariantProps>(props: Props): [TabsVariantProps, Pretty<DistributiveOmit<Props, keyof TabsVariantProps>>]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Styles for the Tabs component */
|
|
28
|
+
export declare const tabs: TabsRecipe
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const tabsDefaultVariants = {}
|
|
5
|
+
const tabsCompoundVariants = []
|
|
6
|
+
|
|
7
|
+
const tabsSlotNames = [
|
|
8
|
+
[
|
|
9
|
+
"root",
|
|
10
|
+
"tabs__root"
|
|
11
|
+
],
|
|
12
|
+
[
|
|
13
|
+
"list",
|
|
14
|
+
"tabs__list"
|
|
15
|
+
],
|
|
16
|
+
[
|
|
17
|
+
"trigger",
|
|
18
|
+
"tabs__trigger"
|
|
19
|
+
],
|
|
20
|
+
[
|
|
21
|
+
"content",
|
|
22
|
+
"tabs__content"
|
|
23
|
+
]
|
|
24
|
+
]
|
|
25
|
+
const tabsSlotFns = /* @__PURE__ */ tabsSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, tabsDefaultVariants, getSlotCompoundVariant(tabsCompoundVariants, slotName))])
|
|
26
|
+
|
|
27
|
+
const tabsFn = (props = {}) => {
|
|
28
|
+
return Object.fromEntries(tabsSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const tabsVariantKeys = []
|
|
32
|
+
|
|
33
|
+
export const tabs = /* @__PURE__ */ Object.assign(tabsFn, {
|
|
34
|
+
__recipe__: false,
|
|
35
|
+
__name__: 'tabs',
|
|
36
|
+
raw: (props) => props,
|
|
37
|
+
variantKeys: tabsVariantKeys,
|
|
38
|
+
variantMap: {},
|
|
39
|
+
splitVariantProps(props) {
|
|
40
|
+
return splitProps(props, tabsVariantKeys)
|
|
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 TextareaVariant {
|
|
7
|
+
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type TextareaVariantMap = {
|
|
11
|
+
[key in keyof TextareaVariant]: Array<TextareaVariant[key]>
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type TextareaVariantProps = {
|
|
15
|
+
[key in keyof TextareaVariant]?: ConditionalValue<TextareaVariant[key]>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface TextareaRecipe {
|
|
19
|
+
__type: TextareaVariantProps
|
|
20
|
+
(props?: TextareaVariantProps): string
|
|
21
|
+
raw: (props?: TextareaVariantProps) => TextareaVariantProps
|
|
22
|
+
variantMap: TextareaVariantMap
|
|
23
|
+
variantKeys: Array<keyof TextareaVariant>
|
|
24
|
+
splitVariantProps<Props extends TextareaVariantProps>(props: Props): [TextareaVariantProps, Pretty<DistributiveOmit<Props, keyof TextareaVariantProps>>]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Styles for the Textarea component */
|
|
28
|
+
export declare const textarea: TextareaRecipe
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const textareaFn = /* @__PURE__ */ createRecipe('textarea', {}, [])
|
|
5
|
+
|
|
6
|
+
const textareaVariantMap = {}
|
|
7
|
+
|
|
8
|
+
const textareaVariantKeys = Object.keys(textareaVariantMap)
|
|
9
|
+
|
|
10
|
+
export const textarea = /* @__PURE__ */ Object.assign(textareaFn, {
|
|
11
|
+
__recipe__: true,
|
|
12
|
+
__name__: 'textarea',
|
|
13
|
+
raw: (props) => props,
|
|
14
|
+
variantKeys: textareaVariantKeys,
|
|
15
|
+
variantMap: textareaVariantMap,
|
|
16
|
+
splitVariantProps(props) {
|
|
17
|
+
return splitProps(props, textareaVariantKeys)
|
|
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 ToastViewportVariant {
|
|
7
|
+
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type ToastViewportVariantMap = {
|
|
11
|
+
[key in keyof ToastViewportVariant]: Array<ToastViewportVariant[key]>
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type ToastViewportVariantProps = {
|
|
15
|
+
[key in keyof ToastViewportVariant]?: ConditionalValue<ToastViewportVariant[key]>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface ToastViewportRecipe {
|
|
19
|
+
__type: ToastViewportVariantProps
|
|
20
|
+
(props?: ToastViewportVariantProps): string
|
|
21
|
+
raw: (props?: ToastViewportVariantProps) => ToastViewportVariantProps
|
|
22
|
+
variantMap: ToastViewportVariantMap
|
|
23
|
+
variantKeys: Array<keyof ToastViewportVariant>
|
|
24
|
+
splitVariantProps<Props extends ToastViewportVariantProps>(props: Props): [ToastViewportVariantProps, Pretty<DistributiveOmit<Props, keyof ToastViewportVariantProps>>]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Styles for the ToastViewport component */
|
|
28
|
+
export declare const toastViewport: ToastViewportRecipe
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { splitProps } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const toastViewportFn = /* @__PURE__ */ createRecipe('toastViewport', {}, [])
|
|
5
|
+
|
|
6
|
+
const toastViewportVariantMap = {}
|
|
7
|
+
|
|
8
|
+
const toastViewportVariantKeys = Object.keys(toastViewportVariantMap)
|
|
9
|
+
|
|
10
|
+
export const toastViewport = /* @__PURE__ */ Object.assign(toastViewportFn, {
|
|
11
|
+
__recipe__: true,
|
|
12
|
+
__name__: 'toastViewport',
|
|
13
|
+
raw: (props) => props,
|
|
14
|
+
variantKeys: toastViewportVariantKeys,
|
|
15
|
+
variantMap: toastViewportVariantMap,
|
|
16
|
+
splitVariantProps(props) {
|
|
17
|
+
return splitProps(props, toastViewportVariantKeys)
|
|
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 ToastVariant {
|
|
7
|
+
variant: "default" | "destructive"
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
type ToastVariantMap = {
|
|
11
|
+
[key in keyof ToastVariant]: Array<ToastVariant[key]>
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type ToastVariantProps = {
|
|
15
|
+
[key in keyof ToastVariant]?: ConditionalValue<ToastVariant[key]>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface ToastRecipe {
|
|
19
|
+
__type: ToastVariantProps
|
|
20
|
+
(props?: ToastVariantProps): Pretty<Record<"root" | "viewport" | "action" | "close" | "title" | "description", string>>
|
|
21
|
+
raw: (props?: ToastVariantProps) => ToastVariantProps
|
|
22
|
+
variantMap: ToastVariantMap
|
|
23
|
+
variantKeys: Array<keyof ToastVariant>
|
|
24
|
+
splitVariantProps<Props extends ToastVariantProps>(props: Props): [ToastVariantProps, Pretty<DistributiveOmit<Props, keyof ToastVariantProps>>]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** Styles for the Toast component */
|
|
28
|
+
export declare const toast: ToastRecipe
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { splitProps, getSlotCompoundVariant } from '../helpers.mjs';
|
|
2
|
+
import { createRecipe } from './create-recipe.mjs';
|
|
3
|
+
|
|
4
|
+
const toastDefaultVariants = {
|
|
5
|
+
"variant": "default"
|
|
6
|
+
}
|
|
7
|
+
const toastCompoundVariants = []
|
|
8
|
+
|
|
9
|
+
const toastSlotNames = [
|
|
10
|
+
[
|
|
11
|
+
"root",
|
|
12
|
+
"toast__root"
|
|
13
|
+
],
|
|
14
|
+
[
|
|
15
|
+
"viewport",
|
|
16
|
+
"toast__viewport"
|
|
17
|
+
],
|
|
18
|
+
[
|
|
19
|
+
"action",
|
|
20
|
+
"toast__action"
|
|
21
|
+
],
|
|
22
|
+
[
|
|
23
|
+
"close",
|
|
24
|
+
"toast__close"
|
|
25
|
+
],
|
|
26
|
+
[
|
|
27
|
+
"title",
|
|
28
|
+
"toast__title"
|
|
29
|
+
],
|
|
30
|
+
[
|
|
31
|
+
"description",
|
|
32
|
+
"toast__description"
|
|
33
|
+
]
|
|
34
|
+
]
|
|
35
|
+
const toastSlotFns = /* @__PURE__ */ toastSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, toastDefaultVariants, getSlotCompoundVariant(toastCompoundVariants, slotName))])
|
|
36
|
+
|
|
37
|
+
const toastFn = (props = {}) => {
|
|
38
|
+
return Object.fromEntries(toastSlotFns.map(([slotName, slotFn]) => [slotName, slotFn(props)]))
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
const toastVariantKeys = [
|
|
42
|
+
"variant"
|
|
43
|
+
]
|
|
44
|
+
|
|
45
|
+
export const toast = /* @__PURE__ */ Object.assign(toastFn, {
|
|
46
|
+
__recipe__: false,
|
|
47
|
+
__name__: 'toast',
|
|
48
|
+
raw: (props) => props,
|
|
49
|
+
variantKeys: toastVariantKeys,
|
|
50
|
+
variantMap: {
|
|
51
|
+
"variant": [
|
|
52
|
+
"default",
|
|
53
|
+
"destructive"
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
splitVariantProps(props) {
|
|
57
|
+
return splitProps(props, toastVariantKeys)
|
|
58
|
+
},
|
|
59
|
+
})
|