@vireo-ai/trellis-ui 0.1.8 → 0.1.10
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/package.json +8 -4
- package/packages/client/src/components/app/styles.css +1 -30
- package/packages/client/src/components/button/styles.css +1 -122
- package/packages/client/src/components/date-picker/styles.css +47 -77
- package/packages/client/src/components/field/styles.css +10 -0
- package/packages/client/src/components/file-upload/styles.css +0 -28
- package/packages/client/src/components/panels/styles.css +43 -0
- package/packages/client/src/components/radio/styles.css +26 -21
- package/packages/client/src/components/scroll-area/styles.css +0 -4
- package/packages/client/src/components/select/styles.css +0 -30
- package/packages/client/src/components/sidebar/styles.css +8 -0
- package/packages/client/src/components/toast/styles.css +14 -7
- package/packages/client/src/styles/components.css +1 -0
- package/packages/client/src/styles/generated/theme-fonts.css +5 -0
- package/packages/client/src/styles/generated/theme-palette.css +2656 -0
- package/packages/client/src/styles/generated/theme-runtime.css +2966 -0
- package/packages/client/src/styles/generated-sources.css +1 -1
- package/packages/client/src/styles/static.css +1 -0
- package/packages/client/src/styles/theme.css +777 -738
- package/packages/client/types/cdn.d.ts +1 -4
- package/packages/client/types/component-api.d.ts +21 -0
- package/packages/client/types/components/accordion/contract.d.ts +3 -2
- package/packages/client/types/components/accordion/index.d.ts +28 -42
- package/packages/client/types/components/accordion/machine.d.ts +131 -0
- package/packages/client/types/components/accordion/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/action/contract.d.ts +3 -3
- package/packages/client/types/components/app/contract.d.ts +25 -12
- package/packages/client/types/components/app/index.d.ts +2 -2
- package/packages/client/types/components/badge/contract.d.ts +5 -5
- package/packages/client/types/components/box/contract.d.ts +25 -28
- package/packages/client/types/components/brand/contract.d.ts +2 -2
- package/packages/client/types/components/button/contract.d.ts +5 -5
- package/packages/client/types/components/card/contract.d.ts +28 -31
- package/packages/client/types/components/checkbox/contract.d.ts +17 -17
- package/packages/client/types/components/checkbox/index.d.ts +20 -26
- package/packages/client/types/components/checkbox/machine.d.ts +41 -0
- package/packages/client/types/components/checkbox/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/common.d.ts +53 -235
- package/packages/client/types/components/container/contract.d.ts +11 -12
- package/packages/client/types/components/date-picker/contract.d.ts +21 -16
- package/packages/client/types/components/date-picker/index.d.ts +38 -60
- package/packages/client/types/components/date-picker/machine.d.ts +529 -0
- package/packages/client/types/components/date-picker/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/date-picker/value.d.ts +28 -0
- package/packages/client/types/components/dropdown/contract.d.ts +4 -4
- package/packages/client/types/components/dropdown/index.d.ts +20 -45
- package/packages/client/types/components/dropdown/machine.d.ts +93 -0
- package/packages/client/types/components/dropdown/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/field/contract.d.ts +10 -6
- package/packages/client/types/components/field/index.d.ts +6 -6
- package/packages/client/types/components/field/machine.d.ts +13 -0
- package/packages/client/types/components/field/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/file-upload/contract.d.ts +7 -4
- package/packages/client/types/components/file-upload/index.d.ts +34 -31
- package/packages/client/types/components/file-upload/machine.d.ts +127 -0
- package/packages/client/types/components/file-upload/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/flex/contract.d.ts +16 -17
- package/packages/client/types/components/frame/contract.d.ts +41 -47
- package/packages/client/types/components/frame/index.d.ts +2 -2
- package/packages/client/types/components/grid/contract.d.ts +20 -21
- package/packages/client/types/components/heading/contract.d.ts +1 -1
- package/packages/client/types/components/image/contract.d.ts +3 -3
- package/packages/client/types/components/input/contract.d.ts +2 -2
- package/packages/client/types/components/input/index.d.ts +15 -12
- package/packages/client/types/components/input/machine.d.ts +20 -0
- package/packages/client/types/components/layout.d.ts +44 -225
- package/packages/client/types/components/menu/contract.d.ts +14 -8
- package/packages/client/types/components/modal/contract.d.ts +12 -12
- package/packages/client/types/components/modal/index.d.ts +41 -75
- package/packages/client/types/components/modal/machine.d.ts +129 -0
- package/packages/client/types/components/modal/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/overlay/contract.d.ts +3 -3
- package/packages/client/types/components/panels/contract.d.ts +39 -0
- package/packages/client/types/components/panels/index.d.ts +54 -0
- package/packages/client/types/components/panels/machine.d.ts +151 -0
- package/packages/client/types/components/panels/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/radio/contract.d.ts +11 -11
- package/packages/client/types/components/radio/index.d.ts +19 -23
- package/packages/client/types/components/radio/machine.d.ts +40 -0
- package/packages/client/types/components/radio/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/runtime.d.ts +16 -19
- package/packages/client/types/components/scroll-area/contract.d.ts +4 -7
- package/packages/client/types/components/scroll-area/index.d.ts +23 -49
- package/packages/client/types/components/scroll-area/machine.d.ts +21 -0
- package/packages/client/types/components/scroll-area/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/section/contract.d.ts +12 -13
- package/packages/client/types/components/select/contract.d.ts +19 -15
- package/packages/client/types/components/select/index.d.ts +42 -89
- package/packages/client/types/components/select/machine.d.ts +476 -0
- package/packages/client/types/components/select/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/shared/controlled-open.d.ts +11 -0
- package/packages/client/types/components/sidebar/contract.d.ts +19 -12
- package/packages/client/types/components/sidebar/index.d.ts +51 -88
- package/packages/client/types/components/sidebar/machine.d.ts +100 -0
- package/packages/client/types/components/sidebar/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/slider/contract.d.ts +3 -3
- package/packages/client/types/components/slider/index.d.ts +17 -21
- package/packages/client/types/components/slider/machine.d.ts +37 -0
- package/packages/client/types/components/slider/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/stack/contract.d.ts +16 -17
- package/packages/client/types/components/surface-manifest.d.ts +9 -0
- package/packages/client/types/components/switch/contract.d.ts +11 -11
- package/packages/client/types/components/switch/index.d.ts +13 -18
- package/packages/client/types/components/switch/machine.d.ts +19 -0
- package/packages/client/types/components/switch/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/table/contract.d.ts +18 -18
- package/packages/client/types/components/tabs/contract.d.ts +10 -5
- package/packages/client/types/components/tabs/index.d.ts +33 -51
- package/packages/client/types/components/tabs/machine.d.ts +84 -0
- package/packages/client/types/components/tabs/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/text/contract.d.ts +1 -1
- package/packages/client/types/components/textarea/contract.d.ts +2 -2
- package/packages/client/types/components/toast/contract.d.ts +5 -4
- package/packages/client/types/components/toast/index.d.ts +38 -12
- package/packages/client/types/components/toast/machine.d.ts +115 -0
- package/packages/client/types/components/toast/runtime-docs.d.ts +2 -0
- package/packages/client/types/directives/index.d.ts +3 -1
- package/packages/client/types/directives/layout.d.ts +3 -0
- package/packages/client/types/directives/request.d.ts +1 -2
- package/packages/client/types/directives/transition.d.ts +3 -0
- package/packages/client/types/docs/transition-docs.d.ts +30 -0
- package/packages/client/types/index.d.ts +8 -40
- package/packages/client/types/motion/animate.d.ts +5 -44
- package/packages/client/types/motion/controller.d.ts +33 -0
- package/packages/client/types/motion/index.d.ts +43 -20
- package/packages/client/types/motion/owned.d.ts +5 -0
- package/packages/client/types/motion/plan.d.ts +46 -0
- package/packages/client/types/motion/recipe.d.ts +56 -0
- package/packages/client/types/motion/registry.d.ts +12 -0
- package/packages/client/types/motion/resize.d.ts +15 -0
- package/packages/client/types/motion/subject.d.ts +10 -0
- package/packages/client/types/motion/targets.d.ts +2 -5
- package/packages/client/types/motion/view.d.ts +7 -2
- package/packages/client/types/runtime/alpine-machine.d.ts +68 -0
- package/packages/client/types/runtime/anchored-popover.d.ts +10 -2
- package/packages/client/types/runtime/codecs.d.ts +16 -2
- package/packages/client/types/runtime/{resizable.d.ts → drag-and-drop/index.d.ts} +4 -2
- package/packages/client/types/runtime/engine/request.d.ts +2 -2
- package/packages/client/types/runtime/engine/stream.d.ts +11 -5
- package/packages/client/types/runtime/focus-scope.d.ts +7 -0
- package/packages/client/types/runtime/identity.d.ts +3 -0
- package/packages/client/types/runtime/index.d.ts +9 -75
- package/packages/client/types/runtime/merge-bindings.d.ts +1 -1
- package/packages/client/types/runtime/semantic-observer.d.ts +10 -0
- package/packages/client/types/runtime/state-machine/index.d.ts +4 -0
- package/packages/client/types/runtime/state-machine/machine.d.ts +83 -0
- package/packages/client/types/runtime/state-machine/props-change.d.ts +12 -0
- package/packages/client/types/runtime/transition-coordinator.d.ts +52 -0
- package/packages/client/types/runtime/ui.d.ts +15 -0
- package/packages/client/types/utils/index.d.ts +2 -1
- package/packages/client/types/utils/number.d.ts +2 -0
- package/packages/client/types/utils/object.d.ts +4 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/css/trellis.css +9097 -2595
- package/packages/server/trellis_ui/static/trellis_ui/assets/css/trellis.min.css +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/index.js +17313 -13281
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/index.js.map +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/trellis.js +8 -15
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/trellis.min.js +8 -15
- package/packages/client/types/bindings/disclosure.d.ts +0 -3
- package/packages/client/types/bindings/index.d.ts +0 -7
- package/packages/client/types/bindings/motion.d.ts +0 -3
- package/packages/client/types/bindings/state.d.ts +0 -3
- package/packages/client/types/bindings/types.d.ts +0 -33
- package/packages/client/types/components/combobox/contract.d.ts +0 -60
- package/packages/client/types/components/combobox/index.d.ts +0 -80
- package/packages/client/types/components/textarea/index.d.ts +0 -13
- package/packages/client/types/motion/presence.d.ts +0 -34
- package/packages/client/types/runtime/class-name.d.ts +0 -9
- package/packages/client/types/runtime/create.d.ts +0 -8
- package/packages/client/types/runtime/machine.d.ts +0 -55
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/cally-TZl4LpyH.js +0 -1134
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/cally-TZl4LpyH.js.map +0 -1
|
@@ -0,0 +1,476 @@
|
|
|
1
|
+
import { type Machine, type MachineScope } from '../../runtime/state-machine';
|
|
2
|
+
import type { SelectProps } from './contract';
|
|
3
|
+
type SelectContext = {
|
|
4
|
+
selection: {
|
|
5
|
+
values: string[];
|
|
6
|
+
labels: string[];
|
|
7
|
+
};
|
|
8
|
+
search: {
|
|
9
|
+
query: string;
|
|
10
|
+
};
|
|
11
|
+
navigation: {
|
|
12
|
+
activeValue: string;
|
|
13
|
+
};
|
|
14
|
+
creation: {
|
|
15
|
+
value: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
type SelectMachineEffects = {
|
|
19
|
+
prepareOpen(scope: MachineScope<SelectContext, SelectProps>): void;
|
|
20
|
+
finishOpen(scope: MachineScope<SelectContext, SelectProps>): void;
|
|
21
|
+
prepareClose(scope: MachineScope<SelectContext, SelectProps>): void;
|
|
22
|
+
finishClose(scope: MachineScope<SelectContext, SelectProps>): void;
|
|
23
|
+
commitSelection(scope: MachineScope<SelectContext, SelectProps>): void;
|
|
24
|
+
commitSearch(scope: MachineScope<SelectContext, SelectProps>): void;
|
|
25
|
+
prepareCreate(scope: MachineScope<SelectContext, SelectProps>): void;
|
|
26
|
+
syncProps(scope: MachineScope<SelectContext, SelectProps>): void;
|
|
27
|
+
syncOptions(scope: MachineScope<SelectContext, SelectProps>): void;
|
|
28
|
+
syncActive(scope: MachineScope<SelectContext, SelectProps>): void;
|
|
29
|
+
};
|
|
30
|
+
type CreateSelectMachineOptions = {
|
|
31
|
+
props: SelectProps;
|
|
32
|
+
context: SelectContext;
|
|
33
|
+
effects: SelectMachineEffects;
|
|
34
|
+
};
|
|
35
|
+
declare const selectHooks: readonly [Readonly<{
|
|
36
|
+
name: "opening";
|
|
37
|
+
state: string;
|
|
38
|
+
onDone: string;
|
|
39
|
+
onError: string;
|
|
40
|
+
required?: boolean;
|
|
41
|
+
sends?: Record<string, import("../..").TransitionEventCreator>;
|
|
42
|
+
project?: (snapshot: Readonly<{
|
|
43
|
+
value: import("../..").MachineStateValue;
|
|
44
|
+
tags: readonly string[];
|
|
45
|
+
context: Readonly<SelectContext>;
|
|
46
|
+
props: Readonly<import("../..").SchemaToProps<{
|
|
47
|
+
name: import("../../runtime/codecs").StringCodec;
|
|
48
|
+
value: import("../../runtime/codecs").StringCodec;
|
|
49
|
+
values: import("../../runtime/codecs").JsonCodec<string[]>;
|
|
50
|
+
placeholder: import("../../runtime/codecs").StringCodec;
|
|
51
|
+
mode: import("../../runtime/codecs").OneOfCodec<"native" | "listbox" | "combobox" | "pillbox">;
|
|
52
|
+
multiple: import("../../runtime/codecs").BoolCodec;
|
|
53
|
+
searchable: import("../../runtime/codecs").BoolCodec;
|
|
54
|
+
creatable: import("../../runtime/codecs").BoolCodec;
|
|
55
|
+
filter: import("../../runtime/codecs").BoolCodec;
|
|
56
|
+
clearable: import("../../runtime/codecs").BoolCodec;
|
|
57
|
+
clear: import("../../runtime/codecs").OneOfCodec<"close" | "stay">;
|
|
58
|
+
suffix: import("../../runtime/codecs").StringCodec;
|
|
59
|
+
mark: import("../../runtime/codecs").OneOfCodec<"none" | "check" | "checkbox">;
|
|
60
|
+
open: import("../../runtime/codecs").BoolCodec;
|
|
61
|
+
disabled: import("../../runtime/codecs").BoolCodec;
|
|
62
|
+
readonly: import("../../runtime/codecs").BoolCodec;
|
|
63
|
+
required: import("../../runtime/codecs").BoolCodec;
|
|
64
|
+
invalid: import("../../runtime/codecs").BoolCodec;
|
|
65
|
+
autoHighlight: import("../../runtime/codecs").BoolCodec;
|
|
66
|
+
loop: import("../../runtime/codecs").BoolCodec;
|
|
67
|
+
path: import("../../runtime/codecs").StringCodec;
|
|
68
|
+
size: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "xlg">;
|
|
69
|
+
variant: import("../../runtime/codecs").OneOfCodec<"outline" | "filled">;
|
|
70
|
+
radius: import("../../runtime/codecs").OneOfCodec<"none" | "xs" | "sm" | "md" | "lg" | "full">;
|
|
71
|
+
surface: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "inherit" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
|
|
72
|
+
elevation: import("../../runtime/codecs").OneOfCodec<"1" | "match" | "2" | "none" | "3" | "4" | "5" | "6" | "7" | "8">;
|
|
73
|
+
side: import("../../runtime/codecs").OneOfCodec<"top" | "bottom" | "left" | "right">;
|
|
74
|
+
align: import("../../runtime/codecs").OneOfCodec<"start" | "center" | "end">;
|
|
75
|
+
offset: import("../../runtime/codecs").NumberCodec;
|
|
76
|
+
gap: import("../../runtime/codecs").NumberCodec;
|
|
77
|
+
empty: import("../../runtime/codecs").StringCodec;
|
|
78
|
+
icon: import("../../runtime/codecs").StringCodec;
|
|
79
|
+
iconTrailing: import("../../runtime/codecs").StringCodec;
|
|
80
|
+
iconVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "mini" | "micro">;
|
|
81
|
+
buttonClass: import("../../runtime/codecs").StringCodec;
|
|
82
|
+
inputClass: import("../../runtime/codecs").StringCodec;
|
|
83
|
+
listboxClass: import("../../runtime/codecs").StringCodec;
|
|
84
|
+
optionClass: import("../../runtime/codecs").StringCodec;
|
|
85
|
+
chipVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "soft" | "surface">;
|
|
86
|
+
chipColor: import("../../runtime/codecs").OneOfCodec<"accent" | "danger" | "neutral" | "success" | "warning">;
|
|
87
|
+
chipClass: import("../../runtime/codecs").StringCodec;
|
|
88
|
+
class: import("../../runtime/codecs").StringCodec;
|
|
89
|
+
}>>;
|
|
90
|
+
generations: Readonly<Record<string, number>>;
|
|
91
|
+
}>) => Record<string, never>;
|
|
92
|
+
projectEach?: (snapshot: Readonly<{
|
|
93
|
+
value: import("../..").MachineStateValue;
|
|
94
|
+
tags: readonly string[];
|
|
95
|
+
context: Readonly<SelectContext>;
|
|
96
|
+
props: Readonly<import("../..").SchemaToProps<{
|
|
97
|
+
name: import("../../runtime/codecs").StringCodec;
|
|
98
|
+
value: import("../../runtime/codecs").StringCodec;
|
|
99
|
+
values: import("../../runtime/codecs").JsonCodec<string[]>;
|
|
100
|
+
placeholder: import("../../runtime/codecs").StringCodec;
|
|
101
|
+
mode: import("../../runtime/codecs").OneOfCodec<"native" | "listbox" | "combobox" | "pillbox">;
|
|
102
|
+
multiple: import("../../runtime/codecs").BoolCodec;
|
|
103
|
+
searchable: import("../../runtime/codecs").BoolCodec;
|
|
104
|
+
creatable: import("../../runtime/codecs").BoolCodec;
|
|
105
|
+
filter: import("../../runtime/codecs").BoolCodec;
|
|
106
|
+
clearable: import("../../runtime/codecs").BoolCodec;
|
|
107
|
+
clear: import("../../runtime/codecs").OneOfCodec<"close" | "stay">;
|
|
108
|
+
suffix: import("../../runtime/codecs").StringCodec;
|
|
109
|
+
mark: import("../../runtime/codecs").OneOfCodec<"none" | "check" | "checkbox">;
|
|
110
|
+
open: import("../../runtime/codecs").BoolCodec;
|
|
111
|
+
disabled: import("../../runtime/codecs").BoolCodec;
|
|
112
|
+
readonly: import("../../runtime/codecs").BoolCodec;
|
|
113
|
+
required: import("../../runtime/codecs").BoolCodec;
|
|
114
|
+
invalid: import("../../runtime/codecs").BoolCodec;
|
|
115
|
+
autoHighlight: import("../../runtime/codecs").BoolCodec;
|
|
116
|
+
loop: import("../../runtime/codecs").BoolCodec;
|
|
117
|
+
path: import("../../runtime/codecs").StringCodec;
|
|
118
|
+
size: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "xlg">;
|
|
119
|
+
variant: import("../../runtime/codecs").OneOfCodec<"outline" | "filled">;
|
|
120
|
+
radius: import("../../runtime/codecs").OneOfCodec<"none" | "xs" | "sm" | "md" | "lg" | "full">;
|
|
121
|
+
surface: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "inherit" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
|
|
122
|
+
elevation: import("../../runtime/codecs").OneOfCodec<"1" | "match" | "2" | "none" | "3" | "4" | "5" | "6" | "7" | "8">;
|
|
123
|
+
side: import("../../runtime/codecs").OneOfCodec<"top" | "bottom" | "left" | "right">;
|
|
124
|
+
align: import("../../runtime/codecs").OneOfCodec<"start" | "center" | "end">;
|
|
125
|
+
offset: import("../../runtime/codecs").NumberCodec;
|
|
126
|
+
gap: import("../../runtime/codecs").NumberCodec;
|
|
127
|
+
empty: import("../../runtime/codecs").StringCodec;
|
|
128
|
+
icon: import("../../runtime/codecs").StringCodec;
|
|
129
|
+
iconTrailing: import("../../runtime/codecs").StringCodec;
|
|
130
|
+
iconVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "mini" | "micro">;
|
|
131
|
+
buttonClass: import("../../runtime/codecs").StringCodec;
|
|
132
|
+
inputClass: import("../../runtime/codecs").StringCodec;
|
|
133
|
+
listboxClass: import("../../runtime/codecs").StringCodec;
|
|
134
|
+
optionClass: import("../../runtime/codecs").StringCodec;
|
|
135
|
+
chipVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "soft" | "surface">;
|
|
136
|
+
chipColor: import("../../runtime/codecs").OneOfCodec<"accent" | "danger" | "neutral" | "success" | "warning">;
|
|
137
|
+
chipClass: import("../../runtime/codecs").StringCodec;
|
|
138
|
+
class: import("../../runtime/codecs").StringCodec;
|
|
139
|
+
}>>;
|
|
140
|
+
generations: Readonly<Record<string, number>>;
|
|
141
|
+
}>) => readonly Record<string, never>[];
|
|
142
|
+
}>, Readonly<{
|
|
143
|
+
name: "closing";
|
|
144
|
+
state: string;
|
|
145
|
+
onDone: string;
|
|
146
|
+
onError: string;
|
|
147
|
+
required?: boolean;
|
|
148
|
+
sends?: Record<string, import("../..").TransitionEventCreator>;
|
|
149
|
+
project?: (snapshot: Readonly<{
|
|
150
|
+
value: import("../..").MachineStateValue;
|
|
151
|
+
tags: readonly string[];
|
|
152
|
+
context: Readonly<SelectContext>;
|
|
153
|
+
props: Readonly<import("../..").SchemaToProps<{
|
|
154
|
+
name: import("../../runtime/codecs").StringCodec;
|
|
155
|
+
value: import("../../runtime/codecs").StringCodec;
|
|
156
|
+
values: import("../../runtime/codecs").JsonCodec<string[]>;
|
|
157
|
+
placeholder: import("../../runtime/codecs").StringCodec;
|
|
158
|
+
mode: import("../../runtime/codecs").OneOfCodec<"native" | "listbox" | "combobox" | "pillbox">;
|
|
159
|
+
multiple: import("../../runtime/codecs").BoolCodec;
|
|
160
|
+
searchable: import("../../runtime/codecs").BoolCodec;
|
|
161
|
+
creatable: import("../../runtime/codecs").BoolCodec;
|
|
162
|
+
filter: import("../../runtime/codecs").BoolCodec;
|
|
163
|
+
clearable: import("../../runtime/codecs").BoolCodec;
|
|
164
|
+
clear: import("../../runtime/codecs").OneOfCodec<"close" | "stay">;
|
|
165
|
+
suffix: import("../../runtime/codecs").StringCodec;
|
|
166
|
+
mark: import("../../runtime/codecs").OneOfCodec<"none" | "check" | "checkbox">;
|
|
167
|
+
open: import("../../runtime/codecs").BoolCodec;
|
|
168
|
+
disabled: import("../../runtime/codecs").BoolCodec;
|
|
169
|
+
readonly: import("../../runtime/codecs").BoolCodec;
|
|
170
|
+
required: import("../../runtime/codecs").BoolCodec;
|
|
171
|
+
invalid: import("../../runtime/codecs").BoolCodec;
|
|
172
|
+
autoHighlight: import("../../runtime/codecs").BoolCodec;
|
|
173
|
+
loop: import("../../runtime/codecs").BoolCodec;
|
|
174
|
+
path: import("../../runtime/codecs").StringCodec;
|
|
175
|
+
size: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "xlg">;
|
|
176
|
+
variant: import("../../runtime/codecs").OneOfCodec<"outline" | "filled">;
|
|
177
|
+
radius: import("../../runtime/codecs").OneOfCodec<"none" | "xs" | "sm" | "md" | "lg" | "full">;
|
|
178
|
+
surface: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "inherit" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
|
|
179
|
+
elevation: import("../../runtime/codecs").OneOfCodec<"1" | "match" | "2" | "none" | "3" | "4" | "5" | "6" | "7" | "8">;
|
|
180
|
+
side: import("../../runtime/codecs").OneOfCodec<"top" | "bottom" | "left" | "right">;
|
|
181
|
+
align: import("../../runtime/codecs").OneOfCodec<"start" | "center" | "end">;
|
|
182
|
+
offset: import("../../runtime/codecs").NumberCodec;
|
|
183
|
+
gap: import("../../runtime/codecs").NumberCodec;
|
|
184
|
+
empty: import("../../runtime/codecs").StringCodec;
|
|
185
|
+
icon: import("../../runtime/codecs").StringCodec;
|
|
186
|
+
iconTrailing: import("../../runtime/codecs").StringCodec;
|
|
187
|
+
iconVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "mini" | "micro">;
|
|
188
|
+
buttonClass: import("../../runtime/codecs").StringCodec;
|
|
189
|
+
inputClass: import("../../runtime/codecs").StringCodec;
|
|
190
|
+
listboxClass: import("../../runtime/codecs").StringCodec;
|
|
191
|
+
optionClass: import("../../runtime/codecs").StringCodec;
|
|
192
|
+
chipVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "soft" | "surface">;
|
|
193
|
+
chipColor: import("../../runtime/codecs").OneOfCodec<"accent" | "danger" | "neutral" | "success" | "warning">;
|
|
194
|
+
chipClass: import("../../runtime/codecs").StringCodec;
|
|
195
|
+
class: import("../../runtime/codecs").StringCodec;
|
|
196
|
+
}>>;
|
|
197
|
+
generations: Readonly<Record<string, number>>;
|
|
198
|
+
}>) => Record<string, never>;
|
|
199
|
+
projectEach?: (snapshot: Readonly<{
|
|
200
|
+
value: import("../..").MachineStateValue;
|
|
201
|
+
tags: readonly string[];
|
|
202
|
+
context: Readonly<SelectContext>;
|
|
203
|
+
props: Readonly<import("../..").SchemaToProps<{
|
|
204
|
+
name: import("../../runtime/codecs").StringCodec;
|
|
205
|
+
value: import("../../runtime/codecs").StringCodec;
|
|
206
|
+
values: import("../../runtime/codecs").JsonCodec<string[]>;
|
|
207
|
+
placeholder: import("../../runtime/codecs").StringCodec;
|
|
208
|
+
mode: import("../../runtime/codecs").OneOfCodec<"native" | "listbox" | "combobox" | "pillbox">;
|
|
209
|
+
multiple: import("../../runtime/codecs").BoolCodec;
|
|
210
|
+
searchable: import("../../runtime/codecs").BoolCodec;
|
|
211
|
+
creatable: import("../../runtime/codecs").BoolCodec;
|
|
212
|
+
filter: import("../../runtime/codecs").BoolCodec;
|
|
213
|
+
clearable: import("../../runtime/codecs").BoolCodec;
|
|
214
|
+
clear: import("../../runtime/codecs").OneOfCodec<"close" | "stay">;
|
|
215
|
+
suffix: import("../../runtime/codecs").StringCodec;
|
|
216
|
+
mark: import("../../runtime/codecs").OneOfCodec<"none" | "check" | "checkbox">;
|
|
217
|
+
open: import("../../runtime/codecs").BoolCodec;
|
|
218
|
+
disabled: import("../../runtime/codecs").BoolCodec;
|
|
219
|
+
readonly: import("../../runtime/codecs").BoolCodec;
|
|
220
|
+
required: import("../../runtime/codecs").BoolCodec;
|
|
221
|
+
invalid: import("../../runtime/codecs").BoolCodec;
|
|
222
|
+
autoHighlight: import("../../runtime/codecs").BoolCodec;
|
|
223
|
+
loop: import("../../runtime/codecs").BoolCodec;
|
|
224
|
+
path: import("../../runtime/codecs").StringCodec;
|
|
225
|
+
size: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "xlg">;
|
|
226
|
+
variant: import("../../runtime/codecs").OneOfCodec<"outline" | "filled">;
|
|
227
|
+
radius: import("../../runtime/codecs").OneOfCodec<"none" | "xs" | "sm" | "md" | "lg" | "full">;
|
|
228
|
+
surface: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "inherit" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
|
|
229
|
+
elevation: import("../../runtime/codecs").OneOfCodec<"1" | "match" | "2" | "none" | "3" | "4" | "5" | "6" | "7" | "8">;
|
|
230
|
+
side: import("../../runtime/codecs").OneOfCodec<"top" | "bottom" | "left" | "right">;
|
|
231
|
+
align: import("../../runtime/codecs").OneOfCodec<"start" | "center" | "end">;
|
|
232
|
+
offset: import("../../runtime/codecs").NumberCodec;
|
|
233
|
+
gap: import("../../runtime/codecs").NumberCodec;
|
|
234
|
+
empty: import("../../runtime/codecs").StringCodec;
|
|
235
|
+
icon: import("../../runtime/codecs").StringCodec;
|
|
236
|
+
iconTrailing: import("../../runtime/codecs").StringCodec;
|
|
237
|
+
iconVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "mini" | "micro">;
|
|
238
|
+
buttonClass: import("../../runtime/codecs").StringCodec;
|
|
239
|
+
inputClass: import("../../runtime/codecs").StringCodec;
|
|
240
|
+
listboxClass: import("../../runtime/codecs").StringCodec;
|
|
241
|
+
optionClass: import("../../runtime/codecs").StringCodec;
|
|
242
|
+
chipVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "soft" | "surface">;
|
|
243
|
+
chipColor: import("../../runtime/codecs").OneOfCodec<"accent" | "danger" | "neutral" | "success" | "warning">;
|
|
244
|
+
chipClass: import("../../runtime/codecs").StringCodec;
|
|
245
|
+
class: import("../../runtime/codecs").StringCodec;
|
|
246
|
+
}>>;
|
|
247
|
+
generations: Readonly<Record<string, number>>;
|
|
248
|
+
}>) => readonly Record<string, never>[];
|
|
249
|
+
}>, Readonly<{
|
|
250
|
+
name: "searching";
|
|
251
|
+
state: string;
|
|
252
|
+
onDone: string;
|
|
253
|
+
onError: string;
|
|
254
|
+
required?: boolean;
|
|
255
|
+
sends?: Record<string, import("../..").TransitionEventCreator>;
|
|
256
|
+
project?: (snapshot: Readonly<{
|
|
257
|
+
value: import("../..").MachineStateValue;
|
|
258
|
+
tags: readonly string[];
|
|
259
|
+
context: Readonly<SelectContext>;
|
|
260
|
+
props: Readonly<import("../..").SchemaToProps<{
|
|
261
|
+
name: import("../../runtime/codecs").StringCodec;
|
|
262
|
+
value: import("../../runtime/codecs").StringCodec;
|
|
263
|
+
values: import("../../runtime/codecs").JsonCodec<string[]>;
|
|
264
|
+
placeholder: import("../../runtime/codecs").StringCodec;
|
|
265
|
+
mode: import("../../runtime/codecs").OneOfCodec<"native" | "listbox" | "combobox" | "pillbox">;
|
|
266
|
+
multiple: import("../../runtime/codecs").BoolCodec;
|
|
267
|
+
searchable: import("../../runtime/codecs").BoolCodec;
|
|
268
|
+
creatable: import("../../runtime/codecs").BoolCodec;
|
|
269
|
+
filter: import("../../runtime/codecs").BoolCodec;
|
|
270
|
+
clearable: import("../../runtime/codecs").BoolCodec;
|
|
271
|
+
clear: import("../../runtime/codecs").OneOfCodec<"close" | "stay">;
|
|
272
|
+
suffix: import("../../runtime/codecs").StringCodec;
|
|
273
|
+
mark: import("../../runtime/codecs").OneOfCodec<"none" | "check" | "checkbox">;
|
|
274
|
+
open: import("../../runtime/codecs").BoolCodec;
|
|
275
|
+
disabled: import("../../runtime/codecs").BoolCodec;
|
|
276
|
+
readonly: import("../../runtime/codecs").BoolCodec;
|
|
277
|
+
required: import("../../runtime/codecs").BoolCodec;
|
|
278
|
+
invalid: import("../../runtime/codecs").BoolCodec;
|
|
279
|
+
autoHighlight: import("../../runtime/codecs").BoolCodec;
|
|
280
|
+
loop: import("../../runtime/codecs").BoolCodec;
|
|
281
|
+
path: import("../../runtime/codecs").StringCodec;
|
|
282
|
+
size: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "xlg">;
|
|
283
|
+
variant: import("../../runtime/codecs").OneOfCodec<"outline" | "filled">;
|
|
284
|
+
radius: import("../../runtime/codecs").OneOfCodec<"none" | "xs" | "sm" | "md" | "lg" | "full">;
|
|
285
|
+
surface: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "inherit" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
|
|
286
|
+
elevation: import("../../runtime/codecs").OneOfCodec<"1" | "match" | "2" | "none" | "3" | "4" | "5" | "6" | "7" | "8">;
|
|
287
|
+
side: import("../../runtime/codecs").OneOfCodec<"top" | "bottom" | "left" | "right">;
|
|
288
|
+
align: import("../../runtime/codecs").OneOfCodec<"start" | "center" | "end">;
|
|
289
|
+
offset: import("../../runtime/codecs").NumberCodec;
|
|
290
|
+
gap: import("../../runtime/codecs").NumberCodec;
|
|
291
|
+
empty: import("../../runtime/codecs").StringCodec;
|
|
292
|
+
icon: import("../../runtime/codecs").StringCodec;
|
|
293
|
+
iconTrailing: import("../../runtime/codecs").StringCodec;
|
|
294
|
+
iconVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "mini" | "micro">;
|
|
295
|
+
buttonClass: import("../../runtime/codecs").StringCodec;
|
|
296
|
+
inputClass: import("../../runtime/codecs").StringCodec;
|
|
297
|
+
listboxClass: import("../../runtime/codecs").StringCodec;
|
|
298
|
+
optionClass: import("../../runtime/codecs").StringCodec;
|
|
299
|
+
chipVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "soft" | "surface">;
|
|
300
|
+
chipColor: import("../../runtime/codecs").OneOfCodec<"accent" | "danger" | "neutral" | "success" | "warning">;
|
|
301
|
+
chipClass: import("../../runtime/codecs").StringCodec;
|
|
302
|
+
class: import("../../runtime/codecs").StringCodec;
|
|
303
|
+
}>>;
|
|
304
|
+
generations: Readonly<Record<string, number>>;
|
|
305
|
+
}>) => {
|
|
306
|
+
query: string;
|
|
307
|
+
};
|
|
308
|
+
projectEach?: (snapshot: Readonly<{
|
|
309
|
+
value: import("../..").MachineStateValue;
|
|
310
|
+
tags: readonly string[];
|
|
311
|
+
context: Readonly<SelectContext>;
|
|
312
|
+
props: Readonly<import("../..").SchemaToProps<{
|
|
313
|
+
name: import("../../runtime/codecs").StringCodec;
|
|
314
|
+
value: import("../../runtime/codecs").StringCodec;
|
|
315
|
+
values: import("../../runtime/codecs").JsonCodec<string[]>;
|
|
316
|
+
placeholder: import("../../runtime/codecs").StringCodec;
|
|
317
|
+
mode: import("../../runtime/codecs").OneOfCodec<"native" | "listbox" | "combobox" | "pillbox">;
|
|
318
|
+
multiple: import("../../runtime/codecs").BoolCodec;
|
|
319
|
+
searchable: import("../../runtime/codecs").BoolCodec;
|
|
320
|
+
creatable: import("../../runtime/codecs").BoolCodec;
|
|
321
|
+
filter: import("../../runtime/codecs").BoolCodec;
|
|
322
|
+
clearable: import("../../runtime/codecs").BoolCodec;
|
|
323
|
+
clear: import("../../runtime/codecs").OneOfCodec<"close" | "stay">;
|
|
324
|
+
suffix: import("../../runtime/codecs").StringCodec;
|
|
325
|
+
mark: import("../../runtime/codecs").OneOfCodec<"none" | "check" | "checkbox">;
|
|
326
|
+
open: import("../../runtime/codecs").BoolCodec;
|
|
327
|
+
disabled: import("../../runtime/codecs").BoolCodec;
|
|
328
|
+
readonly: import("../../runtime/codecs").BoolCodec;
|
|
329
|
+
required: import("../../runtime/codecs").BoolCodec;
|
|
330
|
+
invalid: import("../../runtime/codecs").BoolCodec;
|
|
331
|
+
autoHighlight: import("../../runtime/codecs").BoolCodec;
|
|
332
|
+
loop: import("../../runtime/codecs").BoolCodec;
|
|
333
|
+
path: import("../../runtime/codecs").StringCodec;
|
|
334
|
+
size: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "xlg">;
|
|
335
|
+
variant: import("../../runtime/codecs").OneOfCodec<"outline" | "filled">;
|
|
336
|
+
radius: import("../../runtime/codecs").OneOfCodec<"none" | "xs" | "sm" | "md" | "lg" | "full">;
|
|
337
|
+
surface: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "inherit" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
|
|
338
|
+
elevation: import("../../runtime/codecs").OneOfCodec<"1" | "match" | "2" | "none" | "3" | "4" | "5" | "6" | "7" | "8">;
|
|
339
|
+
side: import("../../runtime/codecs").OneOfCodec<"top" | "bottom" | "left" | "right">;
|
|
340
|
+
align: import("../../runtime/codecs").OneOfCodec<"start" | "center" | "end">;
|
|
341
|
+
offset: import("../../runtime/codecs").NumberCodec;
|
|
342
|
+
gap: import("../../runtime/codecs").NumberCodec;
|
|
343
|
+
empty: import("../../runtime/codecs").StringCodec;
|
|
344
|
+
icon: import("../../runtime/codecs").StringCodec;
|
|
345
|
+
iconTrailing: import("../../runtime/codecs").StringCodec;
|
|
346
|
+
iconVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "mini" | "micro">;
|
|
347
|
+
buttonClass: import("../../runtime/codecs").StringCodec;
|
|
348
|
+
inputClass: import("../../runtime/codecs").StringCodec;
|
|
349
|
+
listboxClass: import("../../runtime/codecs").StringCodec;
|
|
350
|
+
optionClass: import("../../runtime/codecs").StringCodec;
|
|
351
|
+
chipVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "soft" | "surface">;
|
|
352
|
+
chipColor: import("../../runtime/codecs").OneOfCodec<"accent" | "danger" | "neutral" | "success" | "warning">;
|
|
353
|
+
chipClass: import("../../runtime/codecs").StringCodec;
|
|
354
|
+
class: import("../../runtime/codecs").StringCodec;
|
|
355
|
+
}>>;
|
|
356
|
+
generations: Readonly<Record<string, number>>;
|
|
357
|
+
}>) => readonly {
|
|
358
|
+
query: string;
|
|
359
|
+
}[];
|
|
360
|
+
}>, Readonly<{
|
|
361
|
+
name: "creating";
|
|
362
|
+
state: string;
|
|
363
|
+
onDone: string;
|
|
364
|
+
onError: string;
|
|
365
|
+
required?: boolean;
|
|
366
|
+
sends?: Record<string, import("../..").TransitionEventCreator>;
|
|
367
|
+
project?: (snapshot: Readonly<{
|
|
368
|
+
value: import("../..").MachineStateValue;
|
|
369
|
+
tags: readonly string[];
|
|
370
|
+
context: Readonly<SelectContext>;
|
|
371
|
+
props: Readonly<import("../..").SchemaToProps<{
|
|
372
|
+
name: import("../../runtime/codecs").StringCodec;
|
|
373
|
+
value: import("../../runtime/codecs").StringCodec;
|
|
374
|
+
values: import("../../runtime/codecs").JsonCodec<string[]>;
|
|
375
|
+
placeholder: import("../../runtime/codecs").StringCodec;
|
|
376
|
+
mode: import("../../runtime/codecs").OneOfCodec<"native" | "listbox" | "combobox" | "pillbox">;
|
|
377
|
+
multiple: import("../../runtime/codecs").BoolCodec;
|
|
378
|
+
searchable: import("../../runtime/codecs").BoolCodec;
|
|
379
|
+
creatable: import("../../runtime/codecs").BoolCodec;
|
|
380
|
+
filter: import("../../runtime/codecs").BoolCodec;
|
|
381
|
+
clearable: import("../../runtime/codecs").BoolCodec;
|
|
382
|
+
clear: import("../../runtime/codecs").OneOfCodec<"close" | "stay">;
|
|
383
|
+
suffix: import("../../runtime/codecs").StringCodec;
|
|
384
|
+
mark: import("../../runtime/codecs").OneOfCodec<"none" | "check" | "checkbox">;
|
|
385
|
+
open: import("../../runtime/codecs").BoolCodec;
|
|
386
|
+
disabled: import("../../runtime/codecs").BoolCodec;
|
|
387
|
+
readonly: import("../../runtime/codecs").BoolCodec;
|
|
388
|
+
required: import("../../runtime/codecs").BoolCodec;
|
|
389
|
+
invalid: import("../../runtime/codecs").BoolCodec;
|
|
390
|
+
autoHighlight: import("../../runtime/codecs").BoolCodec;
|
|
391
|
+
loop: import("../../runtime/codecs").BoolCodec;
|
|
392
|
+
path: import("../../runtime/codecs").StringCodec;
|
|
393
|
+
size: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "xlg">;
|
|
394
|
+
variant: import("../../runtime/codecs").OneOfCodec<"outline" | "filled">;
|
|
395
|
+
radius: import("../../runtime/codecs").OneOfCodec<"none" | "xs" | "sm" | "md" | "lg" | "full">;
|
|
396
|
+
surface: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "inherit" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
|
|
397
|
+
elevation: import("../../runtime/codecs").OneOfCodec<"1" | "match" | "2" | "none" | "3" | "4" | "5" | "6" | "7" | "8">;
|
|
398
|
+
side: import("../../runtime/codecs").OneOfCodec<"top" | "bottom" | "left" | "right">;
|
|
399
|
+
align: import("../../runtime/codecs").OneOfCodec<"start" | "center" | "end">;
|
|
400
|
+
offset: import("../../runtime/codecs").NumberCodec;
|
|
401
|
+
gap: import("../../runtime/codecs").NumberCodec;
|
|
402
|
+
empty: import("../../runtime/codecs").StringCodec;
|
|
403
|
+
icon: import("../../runtime/codecs").StringCodec;
|
|
404
|
+
iconTrailing: import("../../runtime/codecs").StringCodec;
|
|
405
|
+
iconVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "mini" | "micro">;
|
|
406
|
+
buttonClass: import("../../runtime/codecs").StringCodec;
|
|
407
|
+
inputClass: import("../../runtime/codecs").StringCodec;
|
|
408
|
+
listboxClass: import("../../runtime/codecs").StringCodec;
|
|
409
|
+
optionClass: import("../../runtime/codecs").StringCodec;
|
|
410
|
+
chipVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "soft" | "surface">;
|
|
411
|
+
chipColor: import("../../runtime/codecs").OneOfCodec<"accent" | "danger" | "neutral" | "success" | "warning">;
|
|
412
|
+
chipClass: import("../../runtime/codecs").StringCodec;
|
|
413
|
+
class: import("../../runtime/codecs").StringCodec;
|
|
414
|
+
}>>;
|
|
415
|
+
generations: Readonly<Record<string, number>>;
|
|
416
|
+
}>) => {
|
|
417
|
+
query: string;
|
|
418
|
+
value: string;
|
|
419
|
+
};
|
|
420
|
+
projectEach?: (snapshot: Readonly<{
|
|
421
|
+
value: import("../..").MachineStateValue;
|
|
422
|
+
tags: readonly string[];
|
|
423
|
+
context: Readonly<SelectContext>;
|
|
424
|
+
props: Readonly<import("../..").SchemaToProps<{
|
|
425
|
+
name: import("../../runtime/codecs").StringCodec;
|
|
426
|
+
value: import("../../runtime/codecs").StringCodec;
|
|
427
|
+
values: import("../../runtime/codecs").JsonCodec<string[]>;
|
|
428
|
+
placeholder: import("../../runtime/codecs").StringCodec;
|
|
429
|
+
mode: import("../../runtime/codecs").OneOfCodec<"native" | "listbox" | "combobox" | "pillbox">;
|
|
430
|
+
multiple: import("../../runtime/codecs").BoolCodec;
|
|
431
|
+
searchable: import("../../runtime/codecs").BoolCodec;
|
|
432
|
+
creatable: import("../../runtime/codecs").BoolCodec;
|
|
433
|
+
filter: import("../../runtime/codecs").BoolCodec;
|
|
434
|
+
clearable: import("../../runtime/codecs").BoolCodec;
|
|
435
|
+
clear: import("../../runtime/codecs").OneOfCodec<"close" | "stay">;
|
|
436
|
+
suffix: import("../../runtime/codecs").StringCodec;
|
|
437
|
+
mark: import("../../runtime/codecs").OneOfCodec<"none" | "check" | "checkbox">;
|
|
438
|
+
open: import("../../runtime/codecs").BoolCodec;
|
|
439
|
+
disabled: import("../../runtime/codecs").BoolCodec;
|
|
440
|
+
readonly: import("../../runtime/codecs").BoolCodec;
|
|
441
|
+
required: import("../../runtime/codecs").BoolCodec;
|
|
442
|
+
invalid: import("../../runtime/codecs").BoolCodec;
|
|
443
|
+
autoHighlight: import("../../runtime/codecs").BoolCodec;
|
|
444
|
+
loop: import("../../runtime/codecs").BoolCodec;
|
|
445
|
+
path: import("../../runtime/codecs").StringCodec;
|
|
446
|
+
size: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "xlg">;
|
|
447
|
+
variant: import("../../runtime/codecs").OneOfCodec<"outline" | "filled">;
|
|
448
|
+
radius: import("../../runtime/codecs").OneOfCodec<"none" | "xs" | "sm" | "md" | "lg" | "full">;
|
|
449
|
+
surface: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "inherit" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
|
|
450
|
+
elevation: import("../../runtime/codecs").OneOfCodec<"1" | "match" | "2" | "none" | "3" | "4" | "5" | "6" | "7" | "8">;
|
|
451
|
+
side: import("../../runtime/codecs").OneOfCodec<"top" | "bottom" | "left" | "right">;
|
|
452
|
+
align: import("../../runtime/codecs").OneOfCodec<"start" | "center" | "end">;
|
|
453
|
+
offset: import("../../runtime/codecs").NumberCodec;
|
|
454
|
+
gap: import("../../runtime/codecs").NumberCodec;
|
|
455
|
+
empty: import("../../runtime/codecs").StringCodec;
|
|
456
|
+
icon: import("../../runtime/codecs").StringCodec;
|
|
457
|
+
iconTrailing: import("../../runtime/codecs").StringCodec;
|
|
458
|
+
iconVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "mini" | "micro">;
|
|
459
|
+
buttonClass: import("../../runtime/codecs").StringCodec;
|
|
460
|
+
inputClass: import("../../runtime/codecs").StringCodec;
|
|
461
|
+
listboxClass: import("../../runtime/codecs").StringCodec;
|
|
462
|
+
optionClass: import("../../runtime/codecs").StringCodec;
|
|
463
|
+
chipVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "soft" | "surface">;
|
|
464
|
+
chipColor: import("../../runtime/codecs").OneOfCodec<"accent" | "danger" | "neutral" | "success" | "warning">;
|
|
465
|
+
chipClass: import("../../runtime/codecs").StringCodec;
|
|
466
|
+
class: import("../../runtime/codecs").StringCodec;
|
|
467
|
+
}>>;
|
|
468
|
+
generations: Readonly<Record<string, number>>;
|
|
469
|
+
}>) => readonly {
|
|
470
|
+
query: string;
|
|
471
|
+
value: string;
|
|
472
|
+
}[];
|
|
473
|
+
}>];
|
|
474
|
+
declare const createSelectMachine: ({ props, context, effects, }: CreateSelectMachineOptions) => Machine<SelectContext, SelectProps>;
|
|
475
|
+
export { createSelectMachine, selectHooks };
|
|
476
|
+
export type { CreateSelectMachineOptions, SelectContext, SelectMachineEffects, };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { MachineScope, MachineUpdate } from '../../runtime/state-machine';
|
|
2
|
+
type ControlledOpenProps = {
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
open: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const defineControlledOpenProps: <TContext, TProps extends ControlledOpenProps>() => {
|
|
7
|
+
shouldOpen({ event }: MachineScope<TContext, TProps>): boolean;
|
|
8
|
+
shouldClose({ event }: MachineScope<TContext, TProps>): boolean;
|
|
9
|
+
replace({ event }: MachineScope<TContext, TProps>): MachineUpdate<TContext, TProps> | undefined;
|
|
10
|
+
};
|
|
11
|
+
export { defineControlledOpenProps };
|
|
@@ -1,29 +1,33 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type SchemaToProps } from '../../runtime';
|
|
2
|
+
import { type ElevationReference, type SurfaceReference } from '../common';
|
|
2
3
|
declare const SIDEBAR_SIDES: readonly ["left", "right"];
|
|
4
|
+
declare const SIDEBAR_PLACEMENTS: readonly ["side", "top"];
|
|
3
5
|
declare const SIDEBAR_COLLAPSES: readonly ["none", "mobile", "desktop", "both"];
|
|
4
6
|
declare const SIDEBAR_TOGGLE_ACTIONS: readonly ["toggle", "open", "close", "stash", "expand"];
|
|
5
7
|
declare const SIDEBAR_ITEM_AS: readonly ["a", "button"];
|
|
6
8
|
declare const SIDEBAR_ITEM_VARIANTS: readonly ["ghost", "surface"];
|
|
7
9
|
declare const SIDEBAR_ITEM_COLORS: readonly ["neutral", "accent"];
|
|
10
|
+
declare const SIDEBAR_SURFACES: readonly ["inherit", "0", "1", "2", "3", "4", "5", "6", "7", "8", "+1", "+2", "+3", "+4", "+5", "+6", "+7", "+8"];
|
|
11
|
+
declare const SIDEBAR_ELEVATIONS: readonly ["none", "match", "1", "2", "3", "4", "5", "6", "7", "8"];
|
|
8
12
|
declare const sidebarSchema: {
|
|
9
13
|
id: import("../../runtime/codecs").StringCodec;
|
|
14
|
+
placement: import("../../runtime/codecs").OneOfCodec<"top" | "side">;
|
|
10
15
|
side: import("../../runtime/codecs").OneOfCodec<"left" | "right">;
|
|
16
|
+
surface: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "inherit" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
|
|
17
|
+
elevation: import("../../runtime/codecs").OneOfCodec<"1" | "match" | "2" | "none" | "3" | "4" | "5" | "6" | "7" | "8">;
|
|
18
|
+
drawerElevation: import("../../runtime/codecs").OneOfCodec<"1" | "match" | "2" | "none" | "3" | "4" | "5" | "6" | "7" | "8">;
|
|
19
|
+
divider: import("../../runtime/codecs").BoolCodec;
|
|
11
20
|
sticky: import("../../runtime/codecs").BoolCodec;
|
|
12
|
-
collapse: import("../../runtime/codecs").OneOfCodec<"
|
|
21
|
+
collapse: import("../../runtime/codecs").OneOfCodec<"mobile" | "none" | "both" | "desktop">;
|
|
13
22
|
open: import("../../runtime/codecs").BoolCodec;
|
|
14
23
|
stashed: import("../../runtime/codecs").BoolCodec;
|
|
15
24
|
persist: import("../../runtime/codecs").BoolCodec;
|
|
16
|
-
width: import("../../runtime/codecs").StringCodec;
|
|
17
|
-
minWidth: import("../../runtime/codecs").StringCodec;
|
|
18
|
-
maxWidth: import("../../runtime/codecs").StringCodec;
|
|
19
|
-
mobile: import("../../runtime/codecs").StringCodec;
|
|
20
|
-
breakpoint: import("../../runtime/codecs").StringCodec;
|
|
21
25
|
edgeReveal: import("../../runtime/codecs").BoolCodec;
|
|
22
26
|
resizable: import("../../runtime/codecs").BoolCodec;
|
|
23
27
|
class: import("../../runtime/codecs").StringCodec;
|
|
24
28
|
};
|
|
25
29
|
declare const sidebarItemSchema: {
|
|
26
|
-
as: import("../../runtime/codecs").OneOfCodec<"
|
|
30
|
+
as: import("../../runtime/codecs").OneOfCodec<"a" | "button">;
|
|
27
31
|
variant: import("../../runtime/codecs").OneOfCodec<"ghost" | "surface">;
|
|
28
32
|
color: import("../../runtime/codecs").OneOfCodec<"accent" | "neutral">;
|
|
29
33
|
href: import("../../runtime/codecs").StringCodec;
|
|
@@ -45,7 +49,7 @@ declare const sidebarToggleSchema: {
|
|
|
45
49
|
target: import("../../runtime/codecs").StringCodec;
|
|
46
50
|
icon: import("../../runtime/codecs").StringCodec;
|
|
47
51
|
label: import("../../runtime/codecs").StringCodec;
|
|
48
|
-
action: import("../../runtime/codecs").OneOfCodec<"close" | "toggle" | "open" | "
|
|
52
|
+
action: import("../../runtime/codecs").OneOfCodec<"close" | "toggle" | "open" | "expand" | "stash">;
|
|
49
53
|
class: import("../../runtime/codecs").StringCodec;
|
|
50
54
|
};
|
|
51
55
|
declare const sidebarPanelSchema: {
|
|
@@ -56,11 +60,14 @@ declare const sidebarNavSchema: {
|
|
|
56
60
|
labelled: import("../../runtime/codecs").StringCodec;
|
|
57
61
|
class: import("../../runtime/codecs").StringCodec;
|
|
58
62
|
};
|
|
59
|
-
type SidebarProps =
|
|
63
|
+
type SidebarProps = SchemaToProps<typeof sidebarSchema>;
|
|
60
64
|
type SidebarToggleAction = typeof SIDEBAR_TOGGLE_ACTIONS[number];
|
|
61
65
|
type SidebarCollapse = typeof SIDEBAR_COLLAPSES[number];
|
|
62
66
|
type SidebarItemColor = typeof SIDEBAR_ITEM_COLORS[number];
|
|
63
67
|
type SidebarItemVariant = typeof SIDEBAR_ITEM_VARIANTS[number];
|
|
64
68
|
type SidebarSide = typeof SIDEBAR_SIDES[number];
|
|
65
|
-
|
|
66
|
-
|
|
69
|
+
type SidebarPlacement = typeof SIDEBAR_PLACEMENTS[number];
|
|
70
|
+
type SidebarSurface = SurfaceReference;
|
|
71
|
+
type SidebarElevation = ElevationReference;
|
|
72
|
+
export { SIDEBAR_COLLAPSES, SIDEBAR_ITEM_AS, SIDEBAR_ITEM_COLORS, SIDEBAR_ITEM_VARIANTS, SIDEBAR_ELEVATIONS, SIDEBAR_SIDES, SIDEBAR_PLACEMENTS, SIDEBAR_TOGGLE_ACTIONS, SIDEBAR_SURFACES, sidebarGroupSchema, sidebarItemSchema, sidebarNavSchema, sidebarPanelSchema, sidebarSchema, sidebarToggleSchema, };
|
|
73
|
+
export type { SidebarCollapse, SidebarElevation, SidebarItemColor, SidebarItemVariant, SidebarPlacement, SidebarProps, SidebarSide, SidebarSurface, SidebarToggleAction, };
|