@foldkit/ui 0.154.0 → 0.155.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/README.md +1 -1
- package/dist/anchor/anchor.d.ts.map +1 -1
- package/dist/animation/index.d.ts +5 -5
- package/dist/animation/schema.d.ts.map +1 -1
- package/dist/animation/update.d.ts.map +1 -1
- package/dist/button/index.d.ts.map +1 -1
- package/dist/calendar/index.d.ts +44 -44
- package/dist/calendar/index.d.ts.map +1 -1
- package/dist/checkbox/index.d.ts.map +1 -1
- package/dist/combobox/multi.d.ts +47 -47
- package/dist/combobox/multi.d.ts.map +1 -1
- package/dist/combobox/shared.d.ts +44 -44
- package/dist/combobox/shared.d.ts.map +1 -1
- package/dist/combobox/shared.js +91 -78
- package/dist/combobox/single.d.ts +50 -50
- package/dist/combobox/single.d.ts.map +1 -1
- package/dist/datePicker/index.d.ts +102 -102
- package/dist/datePicker/index.d.ts.map +1 -1
- package/dist/dialog/index.d.ts +38 -18
- package/dist/dialog/index.d.ts.map +1 -1
- package/dist/dialog/index.js +66 -39
- package/dist/dialog/public.d.ts +1 -1
- package/dist/dialog/public.d.ts.map +1 -1
- package/dist/disclosure/index.d.ts.map +1 -1
- package/dist/dragAndDrop/index.d.ts +191 -191
- package/dist/dragAndDrop/index.d.ts.map +1 -1
- package/dist/fieldset/index.d.ts.map +1 -1
- package/dist/fileDrop/index.d.ts +10 -10
- package/dist/fileDrop/index.d.ts.map +1 -1
- package/dist/group.d.ts.map +1 -1
- package/dist/hoverIntent/hoverIntent.d.ts +103 -0
- package/dist/hoverIntent/hoverIntent.d.ts.map +1 -0
- package/dist/hoverIntent/hoverIntent.js +210 -0
- package/dist/hoverIntent/index.d.ts +4 -0
- package/dist/hoverIntent/index.d.ts.map +1 -0
- package/dist/hoverIntent/index.js +2 -0
- package/dist/hoverIntent/message.d.ts +42 -0
- package/dist/hoverIntent/message.d.ts.map +1 -0
- package/dist/hoverIntent/message.js +23 -0
- package/dist/hoverIntent/public.d.ts +3 -0
- package/dist/hoverIntent/public.d.ts.map +1 -0
- package/dist/hoverIntent/public.js +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/input/index.d.ts.map +1 -1
- package/dist/internal/optionExtensions.d.ts.map +1 -1
- package/dist/internal/selectors.d.ts.map +1 -1
- package/dist/keyboard.d.ts.map +1 -1
- package/dist/listbox/multi.d.ts +43 -43
- package/dist/listbox/multi.d.ts.map +1 -1
- package/dist/listbox/shared.d.ts +38 -38
- package/dist/listbox/shared.d.ts.map +1 -1
- package/dist/listbox/shared.js +46 -39
- package/dist/listbox/single.d.ts +45 -45
- package/dist/listbox/single.d.ts.map +1 -1
- package/dist/menu/index.d.ts +70 -70
- package/dist/menu/index.d.ts.map +1 -1
- package/dist/menu/index.js +39 -32
- package/dist/nav/index.d.ts.map +1 -1
- package/dist/popover/index.d.ts +33 -33
- package/dist/popover/index.d.ts.map +1 -1
- package/dist/popover/index.js +36 -29
- package/dist/radioGroup/index.d.ts +6 -6
- package/dist/radioGroup/index.d.ts.map +1 -1
- package/dist/select/index.d.ts.map +1 -1
- package/dist/slider/index.d.ts +72 -72
- package/dist/slider/index.d.ts.map +1 -1
- package/dist/switch/index.d.ts.map +1 -1
- package/dist/tabs/index.d.ts +6 -6
- package/dist/tabs/index.d.ts.map +1 -1
- package/dist/test/apps/disabledButton.d.ts +18 -15
- package/dist/test/apps/disabledButton.d.ts.map +1 -1
- package/dist/textarea/index.d.ts.map +1 -1
- package/dist/toast/index.d.ts +224 -224
- package/dist/toast/index.d.ts.map +1 -1
- package/dist/toast/schema.d.ts +16 -16
- package/dist/toast/schema.d.ts.map +1 -1
- package/dist/toast/test.d.ts.map +1 -1
- package/dist/toast/update.d.ts +151 -151
- package/dist/toast/update.d.ts.map +1 -1
- package/dist/tooltip/message.d.ts +2 -2
- package/dist/tooltip/message.d.ts.map +1 -1
- package/dist/tooltip/tooltip.d.ts +7 -7
- package/dist/tooltip/tooltip.d.ts.map +1 -1
- package/dist/tooltip/tooltip.js +15 -11
- package/dist/typeahead.d.ts.map +1 -1
- package/dist/virtualList/index.d.ts +10 -10
- package/dist/virtualList/index.d.ts.map +1 -1
- package/dist/virtualList/index.js +5 -5
- package/package.json +12 -10
package/dist/popover/index.d.ts
CHANGED
|
@@ -25,8 +25,8 @@ export declare const Message: import("foldkit/message").MessageUnion<{
|
|
|
25
25
|
readonly RequestedClose: {};
|
|
26
26
|
readonly BlurredPanel: {};
|
|
27
27
|
readonly PressedPointerOnButton: {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
pointerType: S.String;
|
|
29
|
+
button: S.Number;
|
|
30
30
|
};
|
|
31
31
|
readonly CompletedFocusPanel: {};
|
|
32
32
|
readonly CompletedFocusButton: {};
|
|
@@ -39,7 +39,7 @@ export declare const Message: import("foldkit/message").MessageUnion<{
|
|
|
39
39
|
readonly CompletedAnchorPopover: {};
|
|
40
40
|
readonly CompletedPortalPopoverBackdrop: {};
|
|
41
41
|
readonly GotAnimationMessage: {
|
|
42
|
-
|
|
42
|
+
message: import("foldkit/message").MessageUnion<{
|
|
43
43
|
readonly Showed: {};
|
|
44
44
|
readonly Hid: {};
|
|
45
45
|
readonly CompletedWaitForPaint: {};
|
|
@@ -122,13 +122,13 @@ export declare const DetectMovementOrAnimationEnd: Command.CommandDefinitionWith
|
|
|
122
122
|
}, Effect.Effect<{
|
|
123
123
|
readonly _tag: "GotAnimationMessage";
|
|
124
124
|
readonly message: {
|
|
125
|
-
readonly _tag: "Showed";
|
|
126
|
-
} | {
|
|
127
|
-
readonly _tag: "Hid";
|
|
128
|
-
} | {
|
|
129
125
|
readonly _tag: "CompletedWaitForPaint";
|
|
130
126
|
} | {
|
|
131
127
|
readonly _tag: "EndedAnimation";
|
|
128
|
+
} | {
|
|
129
|
+
readonly _tag: "Hid";
|
|
130
|
+
} | {
|
|
131
|
+
readonly _tag: "Showed";
|
|
132
132
|
};
|
|
133
133
|
}, never, never>>;
|
|
134
134
|
/** Processes a Popover Message and returns the next Model, optional Commands,
|
|
@@ -143,7 +143,7 @@ export declare const update: (model: Model, message: Message) => Readonly<{
|
|
|
143
143
|
readonly animation: {
|
|
144
144
|
readonly id: string;
|
|
145
145
|
readonly isShowing: boolean;
|
|
146
|
-
readonly transitionState: "
|
|
146
|
+
readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
|
|
147
147
|
};
|
|
148
148
|
readonly maybeLastButtonPointerType: Option.Option<string>;
|
|
149
149
|
};
|
|
@@ -162,37 +162,37 @@ export declare const update: (model: Model, message: Message) => Readonly<{
|
|
|
162
162
|
} | {
|
|
163
163
|
readonly _tag: "SuppressedSpaceScroll";
|
|
164
164
|
} | {
|
|
165
|
-
readonly _tag: "
|
|
165
|
+
readonly _tag: "CompletedAnchorPopover";
|
|
166
166
|
} | {
|
|
167
167
|
readonly _tag: "CompletedFocusButton";
|
|
168
168
|
} | {
|
|
169
|
-
readonly _tag: "
|
|
170
|
-
} | {
|
|
171
|
-
readonly _tag: "CompletedUnlockScroll";
|
|
169
|
+
readonly _tag: "CompletedFocusPanel";
|
|
172
170
|
} | {
|
|
173
171
|
readonly _tag: "CompletedInertOthers";
|
|
174
172
|
} | {
|
|
175
|
-
readonly _tag: "
|
|
176
|
-
} | {
|
|
177
|
-
readonly _tag: "CompletedAnchorPopover";
|
|
173
|
+
readonly _tag: "CompletedLockScroll";
|
|
178
174
|
} | {
|
|
179
175
|
readonly _tag: "CompletedPortalPopoverBackdrop";
|
|
176
|
+
} | {
|
|
177
|
+
readonly _tag: "CompletedRestoreInert";
|
|
178
|
+
} | {
|
|
179
|
+
readonly _tag: "CompletedUnlockScroll";
|
|
180
180
|
} | {
|
|
181
181
|
readonly _tag: "GotAnimationMessage";
|
|
182
182
|
readonly message: {
|
|
183
|
-
readonly _tag: "Showed";
|
|
184
|
-
} | {
|
|
185
|
-
readonly _tag: "Hid";
|
|
186
|
-
} | {
|
|
187
183
|
readonly _tag: "CompletedWaitForPaint";
|
|
188
184
|
} | {
|
|
189
185
|
readonly _tag: "EndedAnimation";
|
|
186
|
+
} | {
|
|
187
|
+
readonly _tag: "Hid";
|
|
188
|
+
} | {
|
|
189
|
+
readonly _tag: "Showed";
|
|
190
190
|
};
|
|
191
191
|
}, never>;
|
|
192
192
|
outMessage?: {
|
|
193
|
-
readonly _tag: "Opened";
|
|
194
|
-
} | {
|
|
195
193
|
readonly _tag: "Closed";
|
|
194
|
+
} | {
|
|
195
|
+
readonly _tag: "Opened";
|
|
196
196
|
};
|
|
197
197
|
}>;
|
|
198
198
|
/** The anchor-positioning Mount this Popover renders on its panel. Exposed so
|
|
@@ -276,7 +276,7 @@ export declare const view: import("foldkit/submodel").View<{
|
|
|
276
276
|
readonly animation: {
|
|
277
277
|
readonly id: string;
|
|
278
278
|
readonly isShowing: boolean;
|
|
279
|
-
readonly transitionState: "
|
|
279
|
+
readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
|
|
280
280
|
};
|
|
281
281
|
readonly maybeLastButtonPointerType: Option.Option<string>;
|
|
282
282
|
}, {
|
|
@@ -294,31 +294,31 @@ export declare const view: import("foldkit/submodel").View<{
|
|
|
294
294
|
} | {
|
|
295
295
|
readonly _tag: "SuppressedSpaceScroll";
|
|
296
296
|
} | {
|
|
297
|
-
readonly _tag: "
|
|
297
|
+
readonly _tag: "CompletedAnchorPopover";
|
|
298
298
|
} | {
|
|
299
299
|
readonly _tag: "CompletedFocusButton";
|
|
300
300
|
} | {
|
|
301
|
-
readonly _tag: "
|
|
302
|
-
} | {
|
|
303
|
-
readonly _tag: "CompletedUnlockScroll";
|
|
301
|
+
readonly _tag: "CompletedFocusPanel";
|
|
304
302
|
} | {
|
|
305
303
|
readonly _tag: "CompletedInertOthers";
|
|
306
304
|
} | {
|
|
307
|
-
readonly _tag: "
|
|
308
|
-
} | {
|
|
309
|
-
readonly _tag: "CompletedAnchorPopover";
|
|
305
|
+
readonly _tag: "CompletedLockScroll";
|
|
310
306
|
} | {
|
|
311
307
|
readonly _tag: "CompletedPortalPopoverBackdrop";
|
|
308
|
+
} | {
|
|
309
|
+
readonly _tag: "CompletedRestoreInert";
|
|
310
|
+
} | {
|
|
311
|
+
readonly _tag: "CompletedUnlockScroll";
|
|
312
312
|
} | {
|
|
313
313
|
readonly _tag: "GotAnimationMessage";
|
|
314
314
|
readonly message: {
|
|
315
|
-
readonly _tag: "Showed";
|
|
316
|
-
} | {
|
|
317
|
-
readonly _tag: "Hid";
|
|
318
|
-
} | {
|
|
319
315
|
readonly _tag: "CompletedWaitForPaint";
|
|
320
316
|
} | {
|
|
321
317
|
readonly _tag: "EndedAnimation";
|
|
318
|
+
} | {
|
|
319
|
+
readonly _tag: "Hid";
|
|
320
|
+
} | {
|
|
321
|
+
readonly _tag: "Showed";
|
|
322
322
|
};
|
|
323
323
|
}, Readonly<{
|
|
324
324
|
anchor: AnchorConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/popover/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,MAAM,EAGN,MAAM,EAEN,MAAM,IAAI,CAAC,EAEZ,MAAM,QAAQ,CAAA;AACf,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAA;AAE1C,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,IAAI,EAAmB,MAAM,cAAc,CAAA;AAE9E,OAAO,KAAK,KAAK,MAAM,eAAe,CAAA;AAGtC,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAA;AAExC,OAAO,EACL,YAAY,EAGb,MAAM,oBAAoB,CAAA;AAgB3B,qGAAqG;AACrG,eAAO,MAAM,KAAK;;;;;;;;;;;;EAQhB,CAAA;AAEF,MAAM,MAAM,KAAK,GAAG,OAAO,KAAK,CAAC,IAAI,CAAA;AAIrC,+DAA+D;AAC/D,eAAO,MAAM,OAAO
|
|
1
|
+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over/index.js
CHANGED
|
@@ -245,30 +245,37 @@ export const update = (model, message) => {
|
|
|
245
245
|
* Scene tests can call `Scene.Mount.resolve(AnchorPopover, CompletedAnchorPopover())`
|
|
246
246
|
* to acknowledge the mount produced by the rendered panel. */
|
|
247
247
|
export const AnchorPopover = Mount.define('AnchorPopover', {
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
})
|
|
248
|
+
args: {
|
|
249
|
+
buttonId: S.String,
|
|
250
|
+
anchor: AnchorConfig,
|
|
251
|
+
focusSelector: S.optional(S.String),
|
|
252
|
+
arrowId: S.optional(S.String),
|
|
253
|
+
arrowPadding: S.optional(S.Number),
|
|
254
|
+
},
|
|
255
|
+
messages: [Message.CompletedAnchorPopover],
|
|
256
|
+
execute: ({ element, buttonId, anchor, focusSelector, arrowId, arrowPadding, }) => __foldkitBrandViewResult((Effect.gen(function* () {
|
|
257
|
+
yield* Effect.acquireRelease(Effect.sync(() => __foldkitBrandViewResult((anchorSetup(element, {
|
|
258
|
+
buttonId,
|
|
259
|
+
anchor,
|
|
260
|
+
interceptTab: false,
|
|
261
|
+
focusAfterPosition: true,
|
|
262
|
+
...(focusSelector !== undefined && { focusSelector }),
|
|
263
|
+
...(arrowId !== undefined && { arrowId }),
|
|
264
|
+
...(arrowPadding !== undefined && { arrowPadding }),
|
|
265
|
+
})), "@foldkit/ui/popover/index.js#anonymous~9")), cleanup => __foldkitBrandViewResult((Effect.sync(cleanup)), "@foldkit/ui/popover/index.js#anonymous~10"));
|
|
266
|
+
return __foldkitBrandViewResult((Message.CompletedAnchorPopover()), "@foldkit/ui/popover/index.js#anonymous~8");
|
|
267
|
+
})), "@foldkit/ui/popover/index.js#execute~6"),
|
|
268
|
+
});
|
|
265
269
|
/** The backdrop-portaling Mount this Popover renders. Exposed so Scene tests can
|
|
266
270
|
* call `Scene.Mount.resolve(PortalPopoverBackdrop, CompletedPortalPopoverBackdrop())` to
|
|
267
271
|
* acknowledge the mount produced by the rendered backdrop. */
|
|
268
|
-
export const PortalPopoverBackdrop = Mount.define('PortalPopoverBackdrop',
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
+
export const PortalPopoverBackdrop = Mount.define('PortalPopoverBackdrop', {
|
|
273
|
+
messages: [Message.CompletedPortalPopoverBackdrop],
|
|
274
|
+
execute: ({ element }) => __foldkitBrandViewResult((Effect.gen(function* () {
|
|
275
|
+
yield* Effect.acquireRelease(Effect.sync(() => __foldkitBrandViewResult((portalToContainingRoot(element)), "@foldkit/ui/popover/index.js#anonymous~12")), cleanup => __foldkitBrandViewResult((Effect.sync(cleanup)), "@foldkit/ui/popover/index.js#anonymous~13"));
|
|
276
|
+
return __foldkitBrandViewResult((Message.CompletedPortalPopoverBackdrop()), "@foldkit/ui/popover/index.js#anonymous~11");
|
|
277
|
+
})), "@foldkit/ui/popover/index.js#execute~7"),
|
|
278
|
+
});
|
|
272
279
|
/** Programmatically opens the Popover, updating the Model and returning
|
|
273
280
|
* focus and modal Commands plus an `Opened` OutMessage. */
|
|
274
281
|
export const open = (model) => __foldkitBrandViewResult((update(model, Message.RequestedOpen())), "@foldkit/ui/popover/index.js#open");
|
|
@@ -286,21 +293,21 @@ export const view = defineView((model, viewInputs, h) => {
|
|
|
286
293
|
h.DataAttribute('closed', ''),
|
|
287
294
|
h.DataAttribute('enter', ''),
|
|
288
295
|
h.DataAttribute('transition', ''),
|
|
289
|
-
]), "@foldkit/ui/popover/index.js#anonymous~
|
|
296
|
+
]), "@foldkit/ui/popover/index.js#anonymous~15")), M.when('EnterAnimating', () => __foldkitBrandViewResult(([
|
|
290
297
|
h.DataAttribute('enter', ''),
|
|
291
298
|
h.DataAttribute('transition', ''),
|
|
292
|
-
]), "@foldkit/ui/popover/index.js#anonymous~
|
|
299
|
+
]), "@foldkit/ui/popover/index.js#anonymous~16")), M.when('LeaveStart', () => __foldkitBrandViewResult(([
|
|
293
300
|
h.DataAttribute('leave', ''),
|
|
294
301
|
h.DataAttribute('transition', ''),
|
|
295
|
-
]), "@foldkit/ui/popover/index.js#anonymous~
|
|
302
|
+
]), "@foldkit/ui/popover/index.js#anonymous~17")), M.when('LeaveAnimating', () => __foldkitBrandViewResult(([
|
|
296
303
|
h.DataAttribute('closed', ''),
|
|
297
304
|
h.DataAttribute('leave', ''),
|
|
298
305
|
h.DataAttribute('transition', ''),
|
|
299
|
-
]), "@foldkit/ui/popover/index.js#anonymous~
|
|
300
|
-
const handleButtonKeyDown = (key) => __foldkitBrandViewResult((M.value(key).pipe(M.whenOr('Enter', ' ', 'ArrowDown', () => __foldkitBrandViewResult((Option.some(isOpen ? Message.RequestedClose() : Message.RequestedOpen())), "@foldkit/ui/popover/index.js#anonymous~
|
|
306
|
+
]), "@foldkit/ui/popover/index.js#anonymous~18")), M.orElse(() => __foldkitBrandViewResult(([]), "@foldkit/ui/popover/index.js#anonymous~19")));
|
|
307
|
+
const handleButtonKeyDown = (key) => __foldkitBrandViewResult((M.value(key).pipe(M.whenOr('Enter', ' ', 'ArrowDown', () => __foldkitBrandViewResult((Option.some(isOpen ? Message.RequestedClose() : Message.RequestedOpen())), "@foldkit/ui/popover/index.js#anonymous~20")), M.when('Escape', () => __foldkitBrandViewResult((OptionExt.when(isOpen, Message.RequestedClose())), "@foldkit/ui/popover/index.js#anonymous~21")), M.orElse(() => __foldkitBrandViewResult((Option.none()), "@foldkit/ui/popover/index.js#anonymous~22")))), "@foldkit/ui/popover/index.js#handleButtonKeyDown");
|
|
301
308
|
const handleButtonPointerDown = (pointerType, button) => __foldkitBrandViewResult((Option.some(Message.PressedPointerOnButton({ pointerType, button }))), "@foldkit/ui/popover/index.js#handleButtonPointerDown");
|
|
302
309
|
const handleButtonClick = () => {
|
|
303
|
-
const isMouse = Option.exists(maybeLastButtonPointerType, type => __foldkitBrandViewResult((type === 'mouse'), "@foldkit/ui/popover/index.js#anonymous~
|
|
310
|
+
const isMouse = Option.exists(maybeLastButtonPointerType, type => __foldkitBrandViewResult((type === 'mouse'), "@foldkit/ui/popover/index.js#anonymous~23"));
|
|
304
311
|
if (isMouse) {
|
|
305
312
|
return __foldkitBrandViewResult((Message.IgnoredMouseClick()), "@foldkit/ui/popover/index.js#handleButtonClick");
|
|
306
313
|
}
|
|
@@ -312,7 +319,7 @@ export const view = defineView((model, viewInputs, h) => {
|
|
|
312
319
|
}
|
|
313
320
|
};
|
|
314
321
|
const handleSpaceKeyUp = (key) => __foldkitBrandViewResult((OptionExt.when(key === ' ', Message.SuppressedSpaceScroll())), "@foldkit/ui/popover/index.js#handleSpaceKeyUp");
|
|
315
|
-
const handlePanelKeyDown = (key) => __foldkitBrandViewResult((M.value(key).pipe(M.when('Escape', () => __foldkitBrandViewResult((Option.some(Message.RequestedClose())), "@foldkit/ui/popover/index.js#anonymous~
|
|
322
|
+
const handlePanelKeyDown = (key) => __foldkitBrandViewResult((M.value(key).pipe(M.when('Escape', () => __foldkitBrandViewResult((Option.some(Message.RequestedClose())), "@foldkit/ui/popover/index.js#anonymous~24")), M.orElse(() => __foldkitBrandViewResult((Option.none()), "@foldkit/ui/popover/index.js#anonymous~25")))), "@foldkit/ui/popover/index.js#handlePanelKeyDown");
|
|
316
323
|
const resolveButtonLabel = () => {
|
|
317
324
|
if (Predicate.isNotUndefined(ariaLabel)) {
|
|
318
325
|
return __foldkitBrandViewResult(([h.AriaLabel(ariaLabel)]), "@foldkit/ui/popover/index.js#resolveButtonLabel");
|
|
@@ -376,5 +383,5 @@ export const view = defineView((model, viewInputs, h) => {
|
|
|
376
383
|
backdrop: childAttributes(backdropAttributes),
|
|
377
384
|
arrow: childAttributes(arrowAttributes),
|
|
378
385
|
isVisible,
|
|
379
|
-
})), "@foldkit/ui/popover/index.js#anonymous~
|
|
386
|
+
})), "@foldkit/ui/popover/index.js#anonymous~14");
|
|
380
387
|
});
|
|
@@ -19,11 +19,11 @@ export type Model = typeof Model.Type;
|
|
|
19
19
|
/** Union of all messages the radio group can produce. */
|
|
20
20
|
export declare const Message: import("foldkit/message").MessageUnion<{
|
|
21
21
|
readonly SelectedOption: {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
index: S.Number;
|
|
23
|
+
value: S.String;
|
|
24
24
|
};
|
|
25
25
|
readonly FocusedOption: {
|
|
26
|
-
|
|
26
|
+
index: S.Number;
|
|
27
27
|
};
|
|
28
28
|
readonly CompletedFocusOption: {};
|
|
29
29
|
}>;
|
|
@@ -39,8 +39,8 @@ export type Selected<Value extends string = string> = Readonly<{
|
|
|
39
39
|
* `Update.foldChild` config handles them through `foldOutMessage`. */
|
|
40
40
|
export declare const OutMessage: import("foldkit/message").MessageUnion<{
|
|
41
41
|
readonly Selected: {
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
value: S.String;
|
|
43
|
+
index: S.Number;
|
|
44
44
|
};
|
|
45
45
|
}>;
|
|
46
46
|
/** Generic over `Value extends string` so consumers using
|
|
@@ -82,7 +82,7 @@ export declare const update: (model: Model, message: Message) => Readonly<{
|
|
|
82
82
|
readonly _tag: "CompletedFocusOption";
|
|
83
83
|
}, never>;
|
|
84
84
|
outMessage?: Readonly<{
|
|
85
|
-
readonly _tag:
|
|
85
|
+
readonly _tag: 'Selected';
|
|
86
86
|
readonly value: string;
|
|
87
87
|
readonly index: number;
|
|
88
88
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/radioGroup/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,MAAM,EAEN,MAAM,EAEN,MAAM,IAAI,CAAC,EAGZ,MAAM,QAAQ,CAAA;AACf,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAA;AACrC,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAA;AAE1C,OAAO,EAAE,KA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A6E;AAC7E,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/select/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAIhE,0FAA0F;AAC1F,MAAM,MAAM,gBAAgB,CAAC,OAAO,IAAI,QAAQ,CAAC;IAC/C,MAAM,EAAE,aAAa,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAA;IACzC,KAAK,EAAE,aAAa,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAA;IACxC,WAAW,EAAE,aAAa,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAA;CAC/C,CAAC,CAAA;AAEF,wDAAwD;AACxD,MAAM,MAAM,UAAU,CAAC,OAAO,IAAI,QAAQ,CAAC;IACzC,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,CAAC,UAAU,EAAE,gBAAgB,CAAC,OAAO,CAAC,KAAK,IAAI,CAAA;IACvD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAA;IACrC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,IAAI,CAAC,EAAE,MAAM,CAAA;CACd,CAAC,CAAA;AAEF,6EAA6E;AAC7E,eAAO,MAAM,aAAa,OAAQ,MAAM,KAAG,MAA6B,CAAA;AAExE,gIAAgI;AAChI,eAAO,MAAM,IAAI,GAAI,OAAO,UAClB,UAAU,CAAC,OAAO,CAAC,KACxB,WAAW,CAAC,OAAO,CAAC,KACtB,IAqDF,CAAA"}
|
package/dist/slider/index.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export declare const Model: S.Struct<{
|
|
|
16
16
|
readonly dragState: import("foldkit/schema").TaggedUnion<{
|
|
17
17
|
readonly Idle: {};
|
|
18
18
|
readonly Dragging: {
|
|
19
|
-
|
|
19
|
+
originValue: S.Number;
|
|
20
20
|
};
|
|
21
21
|
}>;
|
|
22
22
|
}>;
|
|
@@ -24,20 +24,20 @@ export type Model = typeof Model.Type;
|
|
|
24
24
|
/** Union of all messages the slider component can produce. */
|
|
25
25
|
export declare const Message: import("foldkit/message").MessageUnion<{
|
|
26
26
|
readonly PressedThumb: {
|
|
27
|
-
|
|
27
|
+
originValue: S.Number;
|
|
28
28
|
};
|
|
29
29
|
readonly PressedPointer: {
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
value: S.Number;
|
|
31
|
+
originValue: S.Number;
|
|
32
32
|
};
|
|
33
33
|
readonly MovedDragPointer: {
|
|
34
|
-
|
|
34
|
+
value: S.Number;
|
|
35
35
|
};
|
|
36
36
|
readonly ReleasedDragPointer: {};
|
|
37
37
|
readonly CancelledDrag: {};
|
|
38
38
|
readonly PressedKeyboardNavigation: {
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
direction: S.Literals<readonly ["StepDecrement", "StepIncrement", "PageDecrement", "PageIncrement", "Min", "Max"]>;
|
|
40
|
+
value: S.Number;
|
|
41
41
|
};
|
|
42
42
|
}>;
|
|
43
43
|
export type Message = typeof Message.Type;
|
|
@@ -50,7 +50,7 @@ export type PressedKeyboardNavigation = typeof Message.PressedKeyboardNavigation
|
|
|
50
50
|
/** Union of all out-messages the slider component can emit to its parent. */
|
|
51
51
|
export declare const OutMessage: import("foldkit/message").MessageUnion<{
|
|
52
52
|
readonly ChangedValue: {
|
|
53
|
-
|
|
53
|
+
value: S.Number;
|
|
54
54
|
};
|
|
55
55
|
}>;
|
|
56
56
|
export type OutMessage = typeof OutMessage.Type;
|
|
@@ -83,30 +83,30 @@ export declare const update: (model: Model, message: Message) => Readonly<{
|
|
|
83
83
|
readonly max: number;
|
|
84
84
|
readonly step: number;
|
|
85
85
|
readonly dragState: {
|
|
86
|
-
readonly _tag: "Idle";
|
|
87
|
-
} | {
|
|
88
86
|
readonly _tag: "Dragging";
|
|
89
87
|
readonly originValue: number;
|
|
88
|
+
} | {
|
|
89
|
+
readonly _tag: "Idle";
|
|
90
90
|
};
|
|
91
91
|
};
|
|
92
92
|
commands?: Update.Commands<{
|
|
93
93
|
readonly _tag: "CancelledDrag";
|
|
94
94
|
} | {
|
|
95
|
-
readonly _tag: "
|
|
96
|
-
readonly
|
|
95
|
+
readonly _tag: "MovedDragPointer";
|
|
96
|
+
readonly value: number;
|
|
97
|
+
} | {
|
|
98
|
+
readonly _tag: "PressedKeyboardNavigation";
|
|
99
|
+
readonly direction: "Max" | "Min" | "PageDecrement" | "PageIncrement" | "StepDecrement" | "StepIncrement";
|
|
100
|
+
readonly value: number;
|
|
97
101
|
} | {
|
|
98
102
|
readonly _tag: "PressedPointer";
|
|
99
103
|
readonly value: number;
|
|
100
104
|
readonly originValue: number;
|
|
101
105
|
} | {
|
|
102
|
-
readonly _tag: "
|
|
103
|
-
readonly
|
|
106
|
+
readonly _tag: "PressedThumb";
|
|
107
|
+
readonly originValue: number;
|
|
104
108
|
} | {
|
|
105
109
|
readonly _tag: "ReleasedDragPointer";
|
|
106
|
-
} | {
|
|
107
|
-
readonly _tag: "PressedKeyboardNavigation";
|
|
108
|
-
readonly direction: "Max" | "Min" | "StepDecrement" | "StepIncrement" | "PageDecrement" | "PageIncrement";
|
|
109
|
-
readonly value: number;
|
|
110
110
|
}, never>;
|
|
111
111
|
outMessage?: {
|
|
112
112
|
readonly _tag: "ChangedValue";
|
|
@@ -132,31 +132,31 @@ export declare const subscriptionsForRoot: (getTrackRoot: () => Document | Shado
|
|
|
132
132
|
readonly max: number;
|
|
133
133
|
readonly step: number;
|
|
134
134
|
readonly dragState: {
|
|
135
|
-
readonly _tag: "Idle";
|
|
136
|
-
} | {
|
|
137
135
|
readonly _tag: "Dragging";
|
|
138
136
|
readonly originValue: number;
|
|
137
|
+
} | {
|
|
138
|
+
readonly _tag: "Idle";
|
|
139
139
|
};
|
|
140
140
|
}, {
|
|
141
141
|
readonly _tag: "CancelledDrag";
|
|
142
142
|
} | {
|
|
143
|
-
readonly _tag: "
|
|
144
|
-
readonly
|
|
143
|
+
readonly _tag: "MovedDragPointer";
|
|
144
|
+
readonly value: number;
|
|
145
|
+
} | {
|
|
146
|
+
readonly _tag: "PressedKeyboardNavigation";
|
|
147
|
+
readonly direction: "Max" | "Min" | "PageDecrement" | "PageIncrement" | "StepDecrement" | "StepIncrement";
|
|
148
|
+
readonly value: number;
|
|
145
149
|
} | {
|
|
146
150
|
readonly _tag: "PressedPointer";
|
|
147
151
|
readonly value: number;
|
|
148
152
|
readonly originValue: number;
|
|
149
153
|
} | {
|
|
150
|
-
readonly _tag: "
|
|
151
|
-
readonly
|
|
154
|
+
readonly _tag: "PressedThumb";
|
|
155
|
+
readonly originValue: number;
|
|
152
156
|
} | {
|
|
153
157
|
readonly _tag: "ReleasedDragPointer";
|
|
154
|
-
} | {
|
|
155
|
-
readonly _tag: "PressedKeyboardNavigation";
|
|
156
|
-
readonly direction: "Max" | "Min" | "StepDecrement" | "StepIncrement" | "PageDecrement" | "PageIncrement";
|
|
157
|
-
readonly value: number;
|
|
158
158
|
}, {
|
|
159
|
-
readonly dragActivity: "
|
|
159
|
+
readonly dragActivity: "Active" | "Idle";
|
|
160
160
|
readonly id: string;
|
|
161
161
|
readonly min: number;
|
|
162
162
|
readonly max: number;
|
|
@@ -169,31 +169,31 @@ export declare const subscriptionsForRoot: (getTrackRoot: () => Document | Shado
|
|
|
169
169
|
readonly max: number;
|
|
170
170
|
readonly step: number;
|
|
171
171
|
readonly dragState: {
|
|
172
|
-
readonly _tag: "Idle";
|
|
173
|
-
} | {
|
|
174
172
|
readonly _tag: "Dragging";
|
|
175
173
|
readonly originValue: number;
|
|
174
|
+
} | {
|
|
175
|
+
readonly _tag: "Idle";
|
|
176
176
|
};
|
|
177
177
|
}, {
|
|
178
178
|
readonly _tag: "CancelledDrag";
|
|
179
179
|
} | {
|
|
180
|
-
readonly _tag: "
|
|
181
|
-
readonly
|
|
180
|
+
readonly _tag: "MovedDragPointer";
|
|
181
|
+
readonly value: number;
|
|
182
|
+
} | {
|
|
183
|
+
readonly _tag: "PressedKeyboardNavigation";
|
|
184
|
+
readonly direction: "Max" | "Min" | "PageDecrement" | "PageIncrement" | "StepDecrement" | "StepIncrement";
|
|
185
|
+
readonly value: number;
|
|
182
186
|
} | {
|
|
183
187
|
readonly _tag: "PressedPointer";
|
|
184
188
|
readonly value: number;
|
|
185
189
|
readonly originValue: number;
|
|
186
190
|
} | {
|
|
187
|
-
readonly _tag: "
|
|
188
|
-
readonly
|
|
191
|
+
readonly _tag: "PressedThumb";
|
|
192
|
+
readonly originValue: number;
|
|
189
193
|
} | {
|
|
190
194
|
readonly _tag: "ReleasedDragPointer";
|
|
191
|
-
} | {
|
|
192
|
-
readonly _tag: "PressedKeyboardNavigation";
|
|
193
|
-
readonly direction: "Max" | "Min" | "StepDecrement" | "StepIncrement" | "PageDecrement" | "PageIncrement";
|
|
194
|
-
readonly value: number;
|
|
195
195
|
}, {
|
|
196
|
-
readonly dragActivity: "
|
|
196
|
+
readonly dragActivity: "Active" | "Idle";
|
|
197
197
|
}, never> & {
|
|
198
198
|
readonly __subscription: never;
|
|
199
199
|
};
|
|
@@ -206,31 +206,31 @@ export declare const subscriptions: {
|
|
|
206
206
|
readonly max: number;
|
|
207
207
|
readonly step: number;
|
|
208
208
|
readonly dragState: {
|
|
209
|
-
readonly _tag: "Idle";
|
|
210
|
-
} | {
|
|
211
209
|
readonly _tag: "Dragging";
|
|
212
210
|
readonly originValue: number;
|
|
211
|
+
} | {
|
|
212
|
+
readonly _tag: "Idle";
|
|
213
213
|
};
|
|
214
214
|
}, {
|
|
215
215
|
readonly _tag: "CancelledDrag";
|
|
216
216
|
} | {
|
|
217
|
-
readonly _tag: "
|
|
218
|
-
readonly
|
|
217
|
+
readonly _tag: "MovedDragPointer";
|
|
218
|
+
readonly value: number;
|
|
219
|
+
} | {
|
|
220
|
+
readonly _tag: "PressedKeyboardNavigation";
|
|
221
|
+
readonly direction: "Max" | "Min" | "PageDecrement" | "PageIncrement" | "StepDecrement" | "StepIncrement";
|
|
222
|
+
readonly value: number;
|
|
219
223
|
} | {
|
|
220
224
|
readonly _tag: "PressedPointer";
|
|
221
225
|
readonly value: number;
|
|
222
226
|
readonly originValue: number;
|
|
223
227
|
} | {
|
|
224
|
-
readonly _tag: "
|
|
225
|
-
readonly
|
|
228
|
+
readonly _tag: "PressedThumb";
|
|
229
|
+
readonly originValue: number;
|
|
226
230
|
} | {
|
|
227
231
|
readonly _tag: "ReleasedDragPointer";
|
|
228
|
-
} | {
|
|
229
|
-
readonly _tag: "PressedKeyboardNavigation";
|
|
230
|
-
readonly direction: "Max" | "Min" | "StepDecrement" | "StepIncrement" | "PageDecrement" | "PageIncrement";
|
|
231
|
-
readonly value: number;
|
|
232
232
|
}, {
|
|
233
|
-
readonly dragActivity: "
|
|
233
|
+
readonly dragActivity: "Active" | "Idle";
|
|
234
234
|
readonly id: string;
|
|
235
235
|
readonly min: number;
|
|
236
236
|
readonly max: number;
|
|
@@ -243,31 +243,31 @@ export declare const subscriptions: {
|
|
|
243
243
|
readonly max: number;
|
|
244
244
|
readonly step: number;
|
|
245
245
|
readonly dragState: {
|
|
246
|
-
readonly _tag: "Idle";
|
|
247
|
-
} | {
|
|
248
246
|
readonly _tag: "Dragging";
|
|
249
247
|
readonly originValue: number;
|
|
248
|
+
} | {
|
|
249
|
+
readonly _tag: "Idle";
|
|
250
250
|
};
|
|
251
251
|
}, {
|
|
252
252
|
readonly _tag: "CancelledDrag";
|
|
253
253
|
} | {
|
|
254
|
-
readonly _tag: "
|
|
255
|
-
readonly
|
|
254
|
+
readonly _tag: "MovedDragPointer";
|
|
255
|
+
readonly value: number;
|
|
256
|
+
} | {
|
|
257
|
+
readonly _tag: "PressedKeyboardNavigation";
|
|
258
|
+
readonly direction: "Max" | "Min" | "PageDecrement" | "PageIncrement" | "StepDecrement" | "StepIncrement";
|
|
259
|
+
readonly value: number;
|
|
256
260
|
} | {
|
|
257
261
|
readonly _tag: "PressedPointer";
|
|
258
262
|
readonly value: number;
|
|
259
263
|
readonly originValue: number;
|
|
260
264
|
} | {
|
|
261
|
-
readonly _tag: "
|
|
262
|
-
readonly
|
|
265
|
+
readonly _tag: "PressedThumb";
|
|
266
|
+
readonly originValue: number;
|
|
263
267
|
} | {
|
|
264
268
|
readonly _tag: "ReleasedDragPointer";
|
|
265
|
-
} | {
|
|
266
|
-
readonly _tag: "PressedKeyboardNavigation";
|
|
267
|
-
readonly direction: "Max" | "Min" | "StepDecrement" | "StepIncrement" | "PageDecrement" | "PageIncrement";
|
|
268
|
-
readonly value: number;
|
|
269
269
|
}, {
|
|
270
|
-
readonly dragActivity: "
|
|
270
|
+
readonly dragActivity: "Active" | "Idle";
|
|
271
271
|
}, never> & {
|
|
272
272
|
readonly __subscription: never;
|
|
273
273
|
};
|
|
@@ -326,29 +326,29 @@ export declare const view: import("foldkit/submodel").View<{
|
|
|
326
326
|
readonly max: number;
|
|
327
327
|
readonly step: number;
|
|
328
328
|
readonly dragState: {
|
|
329
|
-
readonly _tag: "Idle";
|
|
330
|
-
} | {
|
|
331
329
|
readonly _tag: "Dragging";
|
|
332
330
|
readonly originValue: number;
|
|
331
|
+
} | {
|
|
332
|
+
readonly _tag: "Idle";
|
|
333
333
|
};
|
|
334
334
|
}, {
|
|
335
335
|
readonly _tag: "CancelledDrag";
|
|
336
336
|
} | {
|
|
337
|
-
readonly _tag: "
|
|
338
|
-
readonly
|
|
337
|
+
readonly _tag: "MovedDragPointer";
|
|
338
|
+
readonly value: number;
|
|
339
|
+
} | {
|
|
340
|
+
readonly _tag: "PressedKeyboardNavigation";
|
|
341
|
+
readonly direction: "Max" | "Min" | "PageDecrement" | "PageIncrement" | "StepDecrement" | "StepIncrement";
|
|
342
|
+
readonly value: number;
|
|
339
343
|
} | {
|
|
340
344
|
readonly _tag: "PressedPointer";
|
|
341
345
|
readonly value: number;
|
|
342
346
|
readonly originValue: number;
|
|
343
347
|
} | {
|
|
344
|
-
readonly _tag: "
|
|
345
|
-
readonly
|
|
348
|
+
readonly _tag: "PressedThumb";
|
|
349
|
+
readonly originValue: number;
|
|
346
350
|
} | {
|
|
347
351
|
readonly _tag: "ReleasedDragPointer";
|
|
348
|
-
} | {
|
|
349
|
-
readonly _tag: "PressedKeyboardNavigation";
|
|
350
|
-
readonly direction: "Max" | "Min" | "StepDecrement" | "StepIncrement" | "PageDecrement" | "PageIncrement";
|
|
351
|
-
readonly value: number;
|
|
352
352
|
}, Readonly<{
|
|
353
353
|
/** The current value, read straight from the parent Model. The thumb
|
|
354
354
|
* position, `aria-valuenow`, and the filled track all derive from it. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/slider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,MAAM,IAAI,CAAC,EAIZ,MAAM,QAAQ,CAAA;AACf,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAA;AACrC,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,IAAI,EAAmB,MAAM,cAAc,CAAA;AAI9E,OAAO,EAAE,KAAK,OAAO,EAAc,MAAM,kBAAkB,CAAA;AAC3D,OAAO,KAAK,YAAY,MAAM,sBAAsB,CAAA;AAWpD;;;;2EAI2E;AAC3E,eAAO,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/slider/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAML,MAAM,IAAI,CAAC,EAIZ,MAAM,QAAQ,CAAA;AACf,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,SAAS,CAAA;AACrC,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,IAAI,EAAmB,MAAM,cAAc,CAAA;AAI9E,OAAO,EAAE,KAAK,OAAO,EAAc,MAAM,kBAAkB,CAAA;AAC3D,OAAO,KAA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