@luxonis/depthai-pipeline-lib 3.4.0-rc.2 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1696 -2
- package/dist/src/components/BridgeEdge.js +3 -13
- package/dist/src/components/Node.js +18 -65
- package/dist/src/components/PipelineCanvas.js +1 -2
- package/dist/src/components/PipelineLegend.d.ts +1 -1
- package/dist/src/components/PipelineLegend.js +10 -24
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/package.json +3 -5
- package/dist/panda.css +0 -1342
- package/dist/src/styled-system/css/conditions.mjs +0 -36
- package/dist/src/styled-system/css/css.d.mts +0 -22
- package/dist/src/styled-system/css/css.mjs +0 -45
- package/dist/src/styled-system/css/cva.d.mts +0 -6
- package/dist/src/styled-system/css/cva.mjs +0 -87
- package/dist/src/styled-system/css/cx.d.mts +0 -5
- package/dist/src/styled-system/css/cx.mjs +0 -15
- package/dist/src/styled-system/css/index.d.mts +0 -5
- package/dist/src/styled-system/css/index.mjs +0 -4
- package/dist/src/styled-system/css/sva.d.mts +0 -4
- package/dist/src/styled-system/css/sva.mjs +0 -41
- package/dist/src/styled-system/helpers.mjs +0 -327
- package/dist/src/styled-system/patterns/aspect-ratio.d.mts +0 -21
- package/dist/src/styled-system/patterns/aspect-ratio.mjs +0 -38
- package/dist/src/styled-system/patterns/bleed.d.mts +0 -22
- package/dist/src/styled-system/patterns/bleed.mjs +0 -24
- package/dist/src/styled-system/patterns/box.d.mts +0 -21
- package/dist/src/styled-system/patterns/box.mjs +0 -15
- package/dist/src/styled-system/patterns/center.d.mts +0 -21
- package/dist/src/styled-system/patterns/center.mjs +0 -21
- package/dist/src/styled-system/patterns/circle.d.mts +0 -21
- package/dist/src/styled-system/patterns/circle.mjs +0 -25
- package/dist/src/styled-system/patterns/container.d.mts +0 -21
- package/dist/src/styled-system/patterns/container.mjs +0 -21
- package/dist/src/styled-system/patterns/cq.d.mts +0 -22
- package/dist/src/styled-system/patterns/cq.mjs +0 -21
- package/dist/src/styled-system/patterns/divider.d.mts +0 -23
- package/dist/src/styled-system/patterns/divider.mjs +0 -25
- package/dist/src/styled-system/patterns/flex.d.mts +0 -27
- package/dist/src/styled-system/patterns/flex.mjs +0 -26
- package/dist/src/styled-system/patterns/float.d.mts +0 -24
- package/dist/src/styled-system/patterns/float.mjs +0 -52
- package/dist/src/styled-system/patterns/grid-item.d.mts +0 -26
- package/dist/src/styled-system/patterns/grid-item.mjs +0 -25
- package/dist/src/styled-system/patterns/grid.d.mts +0 -25
- package/dist/src/styled-system/patterns/grid.mjs +0 -27
- package/dist/src/styled-system/patterns/hstack.d.mts +0 -22
- package/dist/src/styled-system/patterns/hstack.mjs +0 -24
- package/dist/src/styled-system/patterns/index.d.mts +0 -21
- package/dist/src/styled-system/patterns/index.mjs +0 -20
- package/dist/src/styled-system/patterns/link-overlay.d.mts +0 -21
- package/dist/src/styled-system/patterns/link-overlay.mjs +0 -24
- package/dist/src/styled-system/patterns/spacer.d.mts +0 -21
- package/dist/src/styled-system/patterns/spacer.mjs +0 -21
- package/dist/src/styled-system/patterns/square.d.mts +0 -21
- package/dist/src/styled-system/patterns/square.mjs +0 -24
- package/dist/src/styled-system/patterns/stack.d.mts +0 -24
- package/dist/src/styled-system/patterns/stack.mjs +0 -24
- package/dist/src/styled-system/patterns/visually-hidden.d.mts +0 -21
- package/dist/src/styled-system/patterns/visually-hidden.mjs +0 -18
- package/dist/src/styled-system/patterns/vstack.d.mts +0 -22
- package/dist/src/styled-system/patterns/vstack.mjs +0 -24
- package/dist/src/styled-system/patterns/wrap.d.mts +0 -25
- package/dist/src/styled-system/patterns/wrap.mjs +0 -25
- package/dist/src/styled-system/recipes/accordion.d.mts +0 -32
- package/dist/src/styled-system/recipes/accordion.mjs +0 -48
- package/dist/src/styled-system/recipes/alert-description.d.mts +0 -32
- package/dist/src/styled-system/recipes/alert-description.mjs +0 -24
- package/dist/src/styled-system/recipes/alert-dialog.d.mts +0 -32
- package/dist/src/styled-system/recipes/alert-dialog.mjs +0 -72
- package/dist/src/styled-system/recipes/alert-title.d.mts +0 -32
- package/dist/src/styled-system/recipes/alert-title.mjs +0 -24
- package/dist/src/styled-system/recipes/alert.d.mts +0 -35
- package/dist/src/styled-system/recipes/alert.mjs +0 -31
- package/dist/src/styled-system/recipes/avatar.d.mts +0 -32
- package/dist/src/styled-system/recipes/avatar.mjs +0 -40
- package/dist/src/styled-system/recipes/badge.d.mts +0 -35
- package/dist/src/styled-system/recipes/badge.mjs +0 -33
- package/dist/src/styled-system/recipes/blockquote.d.mts +0 -32
- package/dist/src/styled-system/recipes/blockquote.mjs +0 -24
- package/dist/src/styled-system/recipes/button.d.mts +0 -39
- package/dist/src/styled-system/recipes/button.mjs +0 -42
- package/dist/src/styled-system/recipes/calendar.d.mts +0 -32
- package/dist/src/styled-system/recipes/calendar.mjs +0 -120
- package/dist/src/styled-system/recipes/card-content.d.mts +0 -32
- package/dist/src/styled-system/recipes/card-content.mjs +0 -24
- package/dist/src/styled-system/recipes/card-description.d.mts +0 -32
- package/dist/src/styled-system/recipes/card-description.mjs +0 -24
- package/dist/src/styled-system/recipes/card-footer.d.mts +0 -32
- package/dist/src/styled-system/recipes/card-footer.mjs +0 -24
- package/dist/src/styled-system/recipes/card-header.d.mts +0 -32
- package/dist/src/styled-system/recipes/card-header.mjs +0 -24
- package/dist/src/styled-system/recipes/card-title.d.mts +0 -32
- package/dist/src/styled-system/recipes/card-title.mjs +0 -24
- package/dist/src/styled-system/recipes/card.d.mts +0 -32
- package/dist/src/styled-system/recipes/card.mjs +0 -24
- package/dist/src/styled-system/recipes/checkbox.d.mts +0 -32
- package/dist/src/styled-system/recipes/checkbox.mjs +0 -36
- package/dist/src/styled-system/recipes/collapsible.d.mts +0 -32
- package/dist/src/styled-system/recipes/collapsible.mjs +0 -40
- package/dist/src/styled-system/recipes/command-dialog.d.mts +0 -32
- package/dist/src/styled-system/recipes/command-dialog.mjs +0 -36
- package/dist/src/styled-system/recipes/command.d.mts +0 -32
- package/dist/src/styled-system/recipes/command.mjs +0 -68
- package/dist/src/styled-system/recipes/context-menu.d.mts +0 -35
- package/dist/src/styled-system/recipes/context-menu.mjs +0 -100
- package/dist/src/styled-system/recipes/create-recipe.mjs +0 -82
- package/dist/src/styled-system/recipes/dialog.d.mts +0 -32
- package/dist/src/styled-system/recipes/dialog.mjs +0 -68
- package/dist/src/styled-system/recipes/dropdown-menu.d.mts +0 -32
- package/dist/src/styled-system/recipes/dropdown-menu.mjs +0 -92
- package/dist/src/styled-system/recipes/form-control.d.mts +0 -32
- package/dist/src/styled-system/recipes/form-control.mjs +0 -24
- package/dist/src/styled-system/recipes/form-description.d.mts +0 -32
- package/dist/src/styled-system/recipes/form-description.mjs +0 -24
- package/dist/src/styled-system/recipes/form-item.d.mts +0 -32
- package/dist/src/styled-system/recipes/form-item.mjs +0 -24
- package/dist/src/styled-system/recipes/form-label.d.mts +0 -32
- package/dist/src/styled-system/recipes/form-label.mjs +0 -24
- package/dist/src/styled-system/recipes/form-message.d.mts +0 -32
- package/dist/src/styled-system/recipes/form-message.mjs +0 -24
- package/dist/src/styled-system/recipes/h1.d.mts +0 -32
- package/dist/src/styled-system/recipes/h1.mjs +0 -24
- package/dist/src/styled-system/recipes/h2.d.mts +0 -32
- package/dist/src/styled-system/recipes/h2.mjs +0 -24
- package/dist/src/styled-system/recipes/h3.d.mts +0 -32
- package/dist/src/styled-system/recipes/h3.mjs +0 -24
- package/dist/src/styled-system/recipes/h4.d.mts +0 -32
- package/dist/src/styled-system/recipes/h4.mjs +0 -24
- package/dist/src/styled-system/recipes/hover-card.d.mts +0 -32
- package/dist/src/styled-system/recipes/hover-card.mjs +0 -40
- package/dist/src/styled-system/recipes/icon.d.mts +0 -51
- package/dist/src/styled-system/recipes/icon.mjs +0 -54
- package/dist/src/styled-system/recipes/index.d.mts +0 -74
- package/dist/src/styled-system/recipes/index.mjs +0 -73
- package/dist/src/styled-system/recipes/inline-code.d.mts +0 -32
- package/dist/src/styled-system/recipes/inline-code.mjs +0 -24
- package/dist/src/styled-system/recipes/input.d.mts +0 -32
- package/dist/src/styled-system/recipes/input.mjs +0 -24
- package/dist/src/styled-system/recipes/label.d.mts +0 -32
- package/dist/src/styled-system/recipes/label.mjs +0 -24
- package/dist/src/styled-system/recipes/large.d.mts +0 -32
- package/dist/src/styled-system/recipes/large.mjs +0 -24
- package/dist/src/styled-system/recipes/lead.d.mts +0 -32
- package/dist/src/styled-system/recipes/lead.mjs +0 -24
- package/dist/src/styled-system/recipes/link.d.mts +0 -32
- package/dist/src/styled-system/recipes/link.mjs +0 -24
- package/dist/src/styled-system/recipes/list.d.mts +0 -32
- package/dist/src/styled-system/recipes/list.mjs +0 -24
- package/dist/src/styled-system/recipes/menubar.d.mts +0 -32
- package/dist/src/styled-system/recipes/menubar.mjs +0 -96
- package/dist/src/styled-system/recipes/muted.d.mts +0 -32
- package/dist/src/styled-system/recipes/muted.mjs +0 -24
- package/dist/src/styled-system/recipes/navigation-menu.d.mts +0 -32
- package/dist/src/styled-system/recipes/navigation-menu.mjs +0 -64
- package/dist/src/styled-system/recipes/p.d.mts +0 -32
- package/dist/src/styled-system/recipes/p.mjs +0 -24
- package/dist/src/styled-system/recipes/popover.d.mts +0 -32
- package/dist/src/styled-system/recipes/popover.mjs +0 -44
- package/dist/src/styled-system/recipes/progress.d.mts +0 -32
- package/dist/src/styled-system/recipes/progress.mjs +0 -36
- package/dist/src/styled-system/recipes/radio-group.d.mts +0 -32
- package/dist/src/styled-system/recipes/radio-group.mjs +0 -44
- package/dist/src/styled-system/recipes/scroll-area.d.mts +0 -32
- package/dist/src/styled-system/recipes/scroll-area.mjs +0 -48
- package/dist/src/styled-system/recipes/select.d.mts +0 -32
- package/dist/src/styled-system/recipes/select.mjs +0 -68
- package/dist/src/styled-system/recipes/separator.d.mts +0 -35
- package/dist/src/styled-system/recipes/separator.mjs +0 -31
- package/dist/src/styled-system/recipes/sheet.d.mts +0 -35
- package/dist/src/styled-system/recipes/sheet.mjs +0 -83
- package/dist/src/styled-system/recipes/skeleton.d.mts +0 -32
- package/dist/src/styled-system/recipes/skeleton.mjs +0 -24
- package/dist/src/styled-system/recipes/slider.d.mts +0 -32
- package/dist/src/styled-system/recipes/slider.mjs +0 -44
- package/dist/src/styled-system/recipes/small.d.mts +0 -32
- package/dist/src/styled-system/recipes/small.mjs +0 -24
- package/dist/src/styled-system/recipes/switch-recipe.d.mts +0 -32
- package/dist/src/styled-system/recipes/switch-recipe.mjs +0 -36
- package/dist/src/styled-system/recipes/table-body.d.mts +0 -32
- package/dist/src/styled-system/recipes/table-body.mjs +0 -24
- package/dist/src/styled-system/recipes/table-caption.d.mts +0 -32
- package/dist/src/styled-system/recipes/table-caption.mjs +0 -24
- package/dist/src/styled-system/recipes/table-cell.d.mts +0 -32
- package/dist/src/styled-system/recipes/table-cell.mjs +0 -24
- package/dist/src/styled-system/recipes/table-container.d.mts +0 -32
- package/dist/src/styled-system/recipes/table-container.mjs +0 -24
- package/dist/src/styled-system/recipes/table-footer.d.mts +0 -32
- package/dist/src/styled-system/recipes/table-footer.mjs +0 -24
- package/dist/src/styled-system/recipes/table-head.d.mts +0 -32
- package/dist/src/styled-system/recipes/table-head.mjs +0 -24
- package/dist/src/styled-system/recipes/table-header.d.mts +0 -32
- package/dist/src/styled-system/recipes/table-header.mjs +0 -24
- package/dist/src/styled-system/recipes/table-row.d.mts +0 -32
- package/dist/src/styled-system/recipes/table-row.mjs +0 -24
- package/dist/src/styled-system/recipes/table.d.mts +0 -32
- package/dist/src/styled-system/recipes/table.mjs +0 -24
- package/dist/src/styled-system/recipes/tabs.d.mts +0 -32
- package/dist/src/styled-system/recipes/tabs.mjs +0 -44
- package/dist/src/styled-system/recipes/textarea.d.mts +0 -32
- package/dist/src/styled-system/recipes/textarea.mjs +0 -24
- package/dist/src/styled-system/recipes/toast-viewport.d.mts +0 -32
- package/dist/src/styled-system/recipes/toast-viewport.mjs +0 -24
- package/dist/src/styled-system/recipes/toast.d.mts +0 -35
- package/dist/src/styled-system/recipes/toast.mjs +0 -61
- package/dist/src/styled-system/recipes/toggle.d.mts +0 -39
- package/dist/src/styled-system/recipes/toggle.mjs +0 -37
- package/dist/src/styled-system/recipes/tooltip.d.mts +0 -32
- package/dist/src/styled-system/recipes/tooltip.mjs +0 -40
- package/dist/src/styled-system/recipes/typography-table-container.d.mts +0 -32
- package/dist/src/styled-system/recipes/typography-table-container.mjs +0 -24
- package/dist/src/styled-system/recipes/typography-table.d.mts +0 -32
- package/dist/src/styled-system/recipes/typography-table.mjs +0 -24
- package/dist/src/styled-system/tokens/index.d.mts +0 -9
- package/dist/src/styled-system/tokens/index.mjs +0 -2732
- package/dist/src/styled-system/tokens/tokens.d.mts +0 -63
- package/dist/src/styled-system/types/composition.d.mts +0 -164
- package/dist/src/styled-system/types/conditions.d.mts +0 -322
- package/dist/src/styled-system/types/csstype.d.mts +0 -21298
- package/dist/src/styled-system/types/global.d.mts +0 -20
- package/dist/src/styled-system/types/index.d.mts +0 -7
- package/dist/src/styled-system/types/parts.d.mts +0 -8
- package/dist/src/styled-system/types/pattern.d.mts +0 -78
- package/dist/src/styled-system/types/prop-type.d.mts +0 -264
- package/dist/src/styled-system/types/recipe.d.mts +0 -181
- package/dist/src/styled-system/types/selectors.d.mts +0 -59
- package/dist/src/styled-system/types/static-css.d.mts +0 -56
- package/dist/src/styled-system/types/style-props.d.mts +0 -7549
- package/dist/src/styled-system/types/system-types.d.mts +0 -193
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { ConditionalValue, Nested } from './conditions.d.mts';
|
|
3
|
-
import type { AtRule, Globals, PropertiesFallback } from './csstype.d.mts';
|
|
4
|
-
import type { SystemProperties, CssVarProperties } from './style-props.d.mts';
|
|
5
|
-
|
|
6
|
-
type String = string & {}
|
|
7
|
-
type Number = number & {}
|
|
8
|
-
|
|
9
|
-
export type Pretty<T> = { [K in keyof T]: T[K] } & {}
|
|
10
|
-
|
|
11
|
-
export type DistributiveOmit<T, K extends keyof any> = T extends unknown ? Omit<T, K> : never
|
|
12
|
-
|
|
13
|
-
export type DistributiveUnion<T, U> = {
|
|
14
|
-
[K in keyof T]: K extends keyof U ? U[K] | T[K] : T[K]
|
|
15
|
-
} & DistributiveOmit<U, keyof T>
|
|
16
|
-
|
|
17
|
-
export type Assign<T, U> = {
|
|
18
|
-
[K in keyof T]: K extends keyof U ? U[K] : T[K]
|
|
19
|
-
} & U
|
|
20
|
-
|
|
21
|
-
/* -----------------------------------------------------------------------------
|
|
22
|
-
* Native css properties
|
|
23
|
-
* -----------------------------------------------------------------------------*/
|
|
24
|
-
|
|
25
|
-
type DashedIdent = `--${string}`
|
|
26
|
-
|
|
27
|
-
type StringToMultiple<T extends string> = T | `${T}, ${T}`
|
|
28
|
-
|
|
29
|
-
export type PositionAreaAxis =
|
|
30
|
-
| 'left'
|
|
31
|
-
| 'center'
|
|
32
|
-
| 'right'
|
|
33
|
-
| 'x-start'
|
|
34
|
-
| 'x-end'
|
|
35
|
-
| 'span-x-start'
|
|
36
|
-
| 'span-x-end'
|
|
37
|
-
| 'x-self-start'
|
|
38
|
-
| 'x-self-end'
|
|
39
|
-
| 'span-x-self-start'
|
|
40
|
-
| 'span-x-self-end'
|
|
41
|
-
| 'span-all'
|
|
42
|
-
| 'top'
|
|
43
|
-
| 'bottom'
|
|
44
|
-
| 'span-top'
|
|
45
|
-
| 'span-bottom'
|
|
46
|
-
| 'y-start'
|
|
47
|
-
| 'y-end'
|
|
48
|
-
| 'span-y-start'
|
|
49
|
-
| 'span-y-end'
|
|
50
|
-
| 'y-self-start'
|
|
51
|
-
| 'y-self-end'
|
|
52
|
-
| 'span-y-self-start'
|
|
53
|
-
| 'span-y-self-end'
|
|
54
|
-
| 'block-start'
|
|
55
|
-
| 'block-end'
|
|
56
|
-
| 'span-block-start'
|
|
57
|
-
| 'span-block-end'
|
|
58
|
-
| 'inline-start'
|
|
59
|
-
| 'inline-end'
|
|
60
|
-
| 'span-inline-start'
|
|
61
|
-
| 'span-inline-end'
|
|
62
|
-
| 'self-block-start'
|
|
63
|
-
| 'self-block-end'
|
|
64
|
-
| 'span-self-block-start'
|
|
65
|
-
| 'span-self-block-end'
|
|
66
|
-
| 'self-inline-start'
|
|
67
|
-
| 'self-inline-end'
|
|
68
|
-
| 'span-self-inline-start'
|
|
69
|
-
| 'span-self-inline-end'
|
|
70
|
-
| 'start'
|
|
71
|
-
| 'end'
|
|
72
|
-
| 'span-start'
|
|
73
|
-
| 'span-end'
|
|
74
|
-
| 'self-start'
|
|
75
|
-
| 'self-end'
|
|
76
|
-
| 'span-self-start'
|
|
77
|
-
| 'span-self-end'
|
|
78
|
-
|
|
79
|
-
type PositionTry =
|
|
80
|
-
| 'normal'
|
|
81
|
-
| 'flip-block'
|
|
82
|
-
| 'flip-inline'
|
|
83
|
-
| 'top'
|
|
84
|
-
| 'bottom'
|
|
85
|
-
| 'left'
|
|
86
|
-
| 'right'
|
|
87
|
-
| 'block-start'
|
|
88
|
-
| 'block-end'
|
|
89
|
-
| 'inline-start'
|
|
90
|
-
| 'inline-end'
|
|
91
|
-
| DashedIdent
|
|
92
|
-
|
|
93
|
-
export interface ModernCssProperties {
|
|
94
|
-
anchorName?: Globals | 'none' | DashedIdent | StringToMultiple<DashedIdent>
|
|
95
|
-
anchorScope?: Globals | 'none' | 'all' | DashedIdent | StringToMultiple<DashedIdent>
|
|
96
|
-
fieldSizing?: Globals | 'fixed' | 'content'
|
|
97
|
-
interpolateSize?: Globals | 'allow-keywords' | 'numeric-only'
|
|
98
|
-
positionAnchor?: Globals | 'auto' | DashedIdent
|
|
99
|
-
positionArea?: Globals | 'auto' | PositionAreaAxis | `${PositionAreaAxis} ${PositionAreaAxis}` | String
|
|
100
|
-
positionTry?: Globals | StringToMultiple<PositionTry> | String
|
|
101
|
-
positionTryFallback?: Globals | 'none' | StringToMultiple<PositionTry> | String
|
|
102
|
-
positionTryOrder?: Globals | 'normal' | 'most-width' | 'most-height' | 'most-block-size' | 'most-inline-size'
|
|
103
|
-
positionVisibility?: Globals | 'always' | 'anchors-visible' | 'no-overflow'
|
|
104
|
-
textWrapMode?: Globals | 'wrap' | 'nowrap'
|
|
105
|
-
textSpacingTrim?: Globals | 'normal' | 'space-all' | 'space-first' | 'trim-start'
|
|
106
|
-
textWrapStyle?: Globals | 'auto' | 'balance' | 'pretty' | 'stable'
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
export type CssProperty = keyof PropertiesFallback
|
|
110
|
-
|
|
111
|
-
export interface CssProperties extends PropertiesFallback<String | Number>, CssVarProperties, ModernCssProperties {}
|
|
112
|
-
|
|
113
|
-
export interface CssKeyframes {
|
|
114
|
-
[name: string]: {
|
|
115
|
-
[time: string]: CssProperties
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/* -----------------------------------------------------------------------------
|
|
120
|
-
* Conditional css properties
|
|
121
|
-
* -----------------------------------------------------------------------------*/
|
|
122
|
-
|
|
123
|
-
interface GenericProperties {
|
|
124
|
-
[key: string]: ConditionalValue<String | Number | boolean>
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
/* -----------------------------------------------------------------------------
|
|
128
|
-
* Native css props
|
|
129
|
-
* -----------------------------------------------------------------------------*/
|
|
130
|
-
|
|
131
|
-
export type NestedCssProperties = Nested<CssProperties>
|
|
132
|
-
|
|
133
|
-
export type SystemStyleObject = Omit<Nested<SystemProperties & CssVarProperties>, 'base'>
|
|
134
|
-
|
|
135
|
-
export interface GlobalStyleObject {
|
|
136
|
-
[selector: string]: SystemStyleObject
|
|
137
|
-
}
|
|
138
|
-
export interface ExtendableGlobalStyleObject {
|
|
139
|
-
[selector: string]: SystemStyleObject | undefined
|
|
140
|
-
extend?: GlobalStyleObject | undefined
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
/* -----------------------------------------------------------------------------
|
|
144
|
-
* Composition (text styles, layer styles)
|
|
145
|
-
* -----------------------------------------------------------------------------*/
|
|
146
|
-
|
|
147
|
-
type FilterStyleObject<P extends string> = {
|
|
148
|
-
[K in P]?: K extends keyof SystemStyleObject ? SystemStyleObject[K] : unknown
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
export type CompositionStyleObject<Property extends string> = Nested<FilterStyleObject<Property> & CssVarProperties>
|
|
152
|
-
|
|
153
|
-
/* -----------------------------------------------------------------------------
|
|
154
|
-
* Font face
|
|
155
|
-
* -----------------------------------------------------------------------------*/
|
|
156
|
-
|
|
157
|
-
export type GlobalFontfaceRule = Omit<AtRule.FontFaceFallback, 'src'> & Required<Pick<AtRule.FontFaceFallback, 'src'>>
|
|
158
|
-
|
|
159
|
-
export type FontfaceRule = Omit<GlobalFontfaceRule, 'fontFamily'>
|
|
160
|
-
|
|
161
|
-
export interface GlobalFontface {
|
|
162
|
-
[name: string]: FontfaceRule | FontfaceRule[]
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
export interface ExtendableGlobalFontface {
|
|
166
|
-
[name: string]: FontfaceRule | FontfaceRule[] | GlobalFontface | undefined
|
|
167
|
-
extend?: GlobalFontface | undefined
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
/* -----------------------------------------------------------------------------
|
|
171
|
-
* Jsx style props
|
|
172
|
-
* -----------------------------------------------------------------------------*/
|
|
173
|
-
interface WithCss {
|
|
174
|
-
css?: SystemStyleObject | SystemStyleObject[]
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
export type JsxStyleProps = SystemStyleObject & WithCss
|
|
178
|
-
|
|
179
|
-
export interface PatchedHTMLProps {
|
|
180
|
-
htmlWidth?: string | number
|
|
181
|
-
htmlHeight?: string | number
|
|
182
|
-
htmlTranslate?: 'yes' | 'no' | undefined
|
|
183
|
-
htmlContent?: string
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
export type OmittedHTMLProps = 'color' | 'translate' | 'transition' | 'width' | 'height' | 'content'
|
|
187
|
-
|
|
188
|
-
type WithHTMLProps<T> = DistributiveOmit<T, OmittedHTMLProps> & PatchedHTMLProps
|
|
189
|
-
|
|
190
|
-
export type JsxHTMLProps<T extends Record<string, any>, P extends Record<string, any> = {}> = Assign<
|
|
191
|
-
WithHTMLProps<T>,
|
|
192
|
-
P
|
|
193
|
-
>
|