foldkit 0.51.0 → 0.53.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/devtools/overlay-styles.d.ts +1 -1
- package/dist/devtools/overlay-styles.d.ts.map +1 -1
- package/dist/devtools/overlay-styles.js +80 -0
- package/dist/devtools/overlay.d.ts.map +1 -1
- package/dist/devtools/overlay.js +166 -32
- package/dist/test/internal.js +2 -2
- package/dist/test/scene.d.ts +1 -1
- package/dist/test/scene.d.ts.map +1 -1
- package/dist/test/scene.js +1 -1
- package/dist/test/story.d.ts +1 -1
- package/dist/test/story.d.ts.map +1 -1
- package/dist/test/story.js +1 -1
- package/dist/ui/combobox/multi.d.ts +35 -35
- package/dist/ui/combobox/shared.d.ts +23 -23
- package/dist/ui/combobox/single.d.ts +35 -35
- package/dist/ui/dragAndDrop/index.d.ts +2 -2
- package/dist/ui/listbox/multi.d.ts +34 -34
- package/dist/ui/listbox/shared.d.ts +25 -25
- package/dist/ui/listbox/single.d.ts +34 -34
- package/package.json +1 -1
|
@@ -32,73 +32,55 @@ export declare const init: (config: InitConfig) => Model;
|
|
|
32
32
|
/** Processes a listbox message and returns the next model and commands. Closes the listbox on selection (single-select behavior). */
|
|
33
33
|
export declare const update: (model: {
|
|
34
34
|
readonly id: string;
|
|
35
|
-
readonly orientation: "Horizontal" | "Vertical";
|
|
36
35
|
readonly isOpen: boolean;
|
|
37
36
|
readonly isAnimated: boolean;
|
|
38
37
|
readonly isModal: boolean;
|
|
38
|
+
readonly orientation: "Vertical" | "Horizontal";
|
|
39
39
|
readonly transitionState: "Idle" | "EnterStart" | "EnterAnimating" | "LeaveStart" | "LeaveAnimating";
|
|
40
40
|
readonly maybeActiveItemIndex: Option.Option<number>;
|
|
41
41
|
readonly activationTrigger: "Pointer" | "Keyboard";
|
|
42
|
+
readonly searchQuery: string;
|
|
43
|
+
readonly searchVersion: number;
|
|
42
44
|
readonly maybeLastPointerPosition: Option.Option<{
|
|
43
45
|
readonly screenX: number;
|
|
44
46
|
readonly screenY: number;
|
|
45
47
|
}>;
|
|
46
|
-
readonly searchQuery: string;
|
|
47
|
-
readonly searchVersion: number;
|
|
48
48
|
readonly maybeLastButtonPointerType: Option.Option<string>;
|
|
49
49
|
} & {
|
|
50
50
|
readonly maybeSelectedItem: Option.Option<string>;
|
|
51
51
|
}, message: Message) => readonly [{
|
|
52
52
|
readonly id: string;
|
|
53
|
-
readonly orientation: "Horizontal" | "Vertical";
|
|
54
53
|
readonly isOpen: boolean;
|
|
55
54
|
readonly isAnimated: boolean;
|
|
56
55
|
readonly isModal: boolean;
|
|
56
|
+
readonly orientation: "Vertical" | "Horizontal";
|
|
57
57
|
readonly transitionState: "Idle" | "EnterStart" | "EnterAnimating" | "LeaveStart" | "LeaveAnimating";
|
|
58
58
|
readonly maybeActiveItemIndex: Option.Option<number>;
|
|
59
59
|
readonly activationTrigger: "Pointer" | "Keyboard";
|
|
60
|
+
readonly searchQuery: string;
|
|
61
|
+
readonly searchVersion: number;
|
|
60
62
|
readonly maybeLastPointerPosition: Option.Option<{
|
|
61
63
|
readonly screenX: number;
|
|
62
64
|
readonly screenY: number;
|
|
63
65
|
}>;
|
|
64
|
-
readonly searchQuery: string;
|
|
65
|
-
readonly searchVersion: number;
|
|
66
66
|
readonly maybeLastButtonPointerType: Option.Option<string>;
|
|
67
67
|
} & {
|
|
68
68
|
readonly maybeSelectedItem: Option.Option<string>;
|
|
69
69
|
}, readonly Readonly<{
|
|
70
70
|
name: string;
|
|
71
71
|
effect: import("effect/Effect").Effect<{
|
|
72
|
+
readonly _tag: "Opened";
|
|
73
|
+
readonly maybeActiveItemIndex: Option.Option<number>;
|
|
74
|
+
} | {
|
|
72
75
|
readonly _tag: "Closed";
|
|
73
76
|
} | {
|
|
74
77
|
readonly _tag: "ClosedByTab";
|
|
75
|
-
} | {
|
|
76
|
-
readonly _tag: "DeactivatedItem";
|
|
77
|
-
} | {
|
|
78
|
-
readonly _tag: "CompletedLockScroll";
|
|
79
|
-
} | {
|
|
80
|
-
readonly _tag: "CompletedUnlockScroll";
|
|
81
|
-
} | {
|
|
82
|
-
readonly _tag: "CompletedSetupInert";
|
|
83
|
-
} | {
|
|
84
|
-
readonly _tag: "CompletedTeardownInert";
|
|
85
|
-
} | {
|
|
86
|
-
readonly _tag: "CompletedScrollIntoView";
|
|
87
|
-
} | {
|
|
88
|
-
readonly _tag: "CompletedClickItem";
|
|
89
|
-
} | {
|
|
90
|
-
readonly _tag: "AdvancedTransitionFrame";
|
|
91
|
-
} | {
|
|
92
|
-
readonly _tag: "EndedTransition";
|
|
93
|
-
} | {
|
|
94
|
-
readonly _tag: "CompletedFocusButton";
|
|
95
|
-
} | {
|
|
96
|
-
readonly _tag: "Opened";
|
|
97
|
-
readonly maybeActiveItemIndex: Option.Option<number>;
|
|
98
78
|
} | {
|
|
99
79
|
readonly _tag: "ActivatedItem";
|
|
100
|
-
readonly index: number;
|
|
101
80
|
readonly activationTrigger: "Pointer" | "Keyboard";
|
|
81
|
+
readonly index: number;
|
|
82
|
+
} | {
|
|
83
|
+
readonly _tag: "DeactivatedItem";
|
|
102
84
|
} | {
|
|
103
85
|
readonly _tag: "SelectedItem";
|
|
104
86
|
readonly item: string;
|
|
@@ -114,15 +96,33 @@ export declare const update: (model: {
|
|
|
114
96
|
readonly version: number;
|
|
115
97
|
} | {
|
|
116
98
|
readonly _tag: "MovedPointerOverItem";
|
|
117
|
-
readonly index: number;
|
|
118
99
|
readonly screenX: number;
|
|
119
100
|
readonly screenY: number;
|
|
101
|
+
readonly index: number;
|
|
102
|
+
} | {
|
|
103
|
+
readonly _tag: "CompletedLockScroll";
|
|
104
|
+
} | {
|
|
105
|
+
readonly _tag: "CompletedUnlockScroll";
|
|
106
|
+
} | {
|
|
107
|
+
readonly _tag: "CompletedSetupInert";
|
|
108
|
+
} | {
|
|
109
|
+
readonly _tag: "CompletedTeardownInert";
|
|
110
|
+
} | {
|
|
111
|
+
readonly _tag: "CompletedFocusButton";
|
|
120
112
|
} | {
|
|
121
113
|
readonly _tag: "CompletedFocusItems";
|
|
114
|
+
} | {
|
|
115
|
+
readonly _tag: "CompletedScrollIntoView";
|
|
116
|
+
} | {
|
|
117
|
+
readonly _tag: "CompletedClickItem";
|
|
122
118
|
} | {
|
|
123
119
|
readonly _tag: "IgnoredMouseClick";
|
|
124
120
|
} | {
|
|
125
121
|
readonly _tag: "SuppressedSpaceScroll";
|
|
122
|
+
} | {
|
|
123
|
+
readonly _tag: "AdvancedTransitionFrame";
|
|
124
|
+
} | {
|
|
125
|
+
readonly _tag: "EndedTransition";
|
|
126
126
|
} | {
|
|
127
127
|
readonly _tag: "DetectedButtonMovement";
|
|
128
128
|
} | {
|
|
@@ -140,19 +140,19 @@ export type ViewConfig<Message, Item> = BaseViewConfig<Message, Item, Model>;
|
|
|
140
140
|
export declare const view: <Message, Item>(config: Readonly<{
|
|
141
141
|
model: {
|
|
142
142
|
readonly id: string;
|
|
143
|
-
readonly orientation: "Horizontal" | "Vertical";
|
|
144
143
|
readonly isOpen: boolean;
|
|
145
144
|
readonly isAnimated: boolean;
|
|
146
145
|
readonly isModal: boolean;
|
|
146
|
+
readonly orientation: "Vertical" | "Horizontal";
|
|
147
147
|
readonly transitionState: "Idle" | "EnterStart" | "EnterAnimating" | "LeaveStart" | "LeaveAnimating";
|
|
148
148
|
readonly maybeActiveItemIndex: Option.Option<number>;
|
|
149
149
|
readonly activationTrigger: "Pointer" | "Keyboard";
|
|
150
|
+
readonly searchQuery: string;
|
|
151
|
+
readonly searchVersion: number;
|
|
150
152
|
readonly maybeLastPointerPosition: Option.Option<{
|
|
151
153
|
readonly screenX: number;
|
|
152
154
|
readonly screenY: number;
|
|
153
155
|
}>;
|
|
154
|
-
readonly searchQuery: string;
|
|
155
|
-
readonly searchVersion: number;
|
|
156
156
|
readonly maybeLastButtonPointerType: Option.Option<string>;
|
|
157
157
|
} & {
|
|
158
158
|
readonly maybeSelectedItem: Option.Option<string>;
|