@foldkit/ui 0.153.0 → 0.154.0-canary.2f2a07458578

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.
Files changed (95) hide show
  1. package/README.md +1 -1
  2. package/dist/anchor/anchor.d.ts +14 -1
  3. package/dist/anchor/anchor.d.ts.map +1 -1
  4. package/dist/anchor/anchor.js +58 -5
  5. package/dist/animation/index.d.ts +5 -5
  6. package/dist/animation/schema.d.ts.map +1 -1
  7. package/dist/animation/update.d.ts.map +1 -1
  8. package/dist/button/index.d.ts.map +1 -1
  9. package/dist/calendar/index.d.ts +44 -44
  10. package/dist/calendar/index.d.ts.map +1 -1
  11. package/dist/checkbox/index.d.ts.map +1 -1
  12. package/dist/combobox/multi.d.ts +47 -47
  13. package/dist/combobox/multi.d.ts.map +1 -1
  14. package/dist/combobox/shared.d.ts +44 -44
  15. package/dist/combobox/shared.d.ts.map +1 -1
  16. package/dist/combobox/shared.js +91 -78
  17. package/dist/combobox/single.d.ts +50 -50
  18. package/dist/combobox/single.d.ts.map +1 -1
  19. package/dist/datePicker/index.d.ts +102 -102
  20. package/dist/datePicker/index.d.ts.map +1 -1
  21. package/dist/dialog/index.d.ts +38 -18
  22. package/dist/dialog/index.d.ts.map +1 -1
  23. package/dist/dialog/index.js +66 -39
  24. package/dist/dialog/public.d.ts +1 -1
  25. package/dist/dialog/public.d.ts.map +1 -1
  26. package/dist/disclosure/index.d.ts.map +1 -1
  27. package/dist/dragAndDrop/index.d.ts +191 -191
  28. package/dist/dragAndDrop/index.d.ts.map +1 -1
  29. package/dist/fieldset/index.d.ts.map +1 -1
  30. package/dist/fileDrop/index.d.ts +10 -10
  31. package/dist/fileDrop/index.d.ts.map +1 -1
  32. package/dist/group.d.ts.map +1 -1
  33. package/dist/hoverIntent/hoverIntent.d.ts +103 -0
  34. package/dist/hoverIntent/hoverIntent.d.ts.map +1 -0
  35. package/dist/hoverIntent/hoverIntent.js +210 -0
  36. package/dist/hoverIntent/index.d.ts +4 -0
  37. package/dist/hoverIntent/index.d.ts.map +1 -0
  38. package/dist/hoverIntent/index.js +2 -0
  39. package/dist/hoverIntent/message.d.ts +42 -0
  40. package/dist/hoverIntent/message.d.ts.map +1 -0
  41. package/dist/hoverIntent/message.js +23 -0
  42. package/dist/hoverIntent/public.d.ts +3 -0
  43. package/dist/hoverIntent/public.d.ts.map +1 -0
  44. package/dist/hoverIntent/public.js +1 -0
  45. package/dist/index.d.ts +1 -0
  46. package/dist/index.d.ts.map +1 -1
  47. package/dist/index.js +1 -0
  48. package/dist/input/index.d.ts.map +1 -1
  49. package/dist/internal/optionExtensions.d.ts.map +1 -1
  50. package/dist/internal/selectors.d.ts.map +1 -1
  51. package/dist/keyboard.d.ts.map +1 -1
  52. package/dist/listbox/multi.d.ts +43 -43
  53. package/dist/listbox/multi.d.ts.map +1 -1
  54. package/dist/listbox/shared.d.ts +38 -38
  55. package/dist/listbox/shared.d.ts.map +1 -1
  56. package/dist/listbox/shared.js +46 -39
  57. package/dist/listbox/single.d.ts +45 -45
  58. package/dist/listbox/single.d.ts.map +1 -1
  59. package/dist/menu/index.d.ts +70 -70
  60. package/dist/menu/index.d.ts.map +1 -1
  61. package/dist/menu/index.js +39 -32
  62. package/dist/nav/index.d.ts.map +1 -1
  63. package/dist/popover/index.d.ts +48 -33
  64. package/dist/popover/index.d.ts.map +1 -1
  65. package/dist/popover/index.js +46 -26
  66. package/dist/popover/public.d.ts +1 -1
  67. package/dist/popover/public.d.ts.map +1 -1
  68. package/dist/popover/public.js +1 -1
  69. package/dist/radioGroup/index.d.ts +6 -6
  70. package/dist/radioGroup/index.d.ts.map +1 -1
  71. package/dist/select/index.d.ts.map +1 -1
  72. package/dist/slider/index.d.ts +72 -72
  73. package/dist/slider/index.d.ts.map +1 -1
  74. package/dist/switch/index.d.ts.map +1 -1
  75. package/dist/tabs/index.d.ts +6 -6
  76. package/dist/tabs/index.d.ts.map +1 -1
  77. package/dist/test/apps/disabledButton.d.ts +18 -15
  78. package/dist/test/apps/disabledButton.d.ts.map +1 -1
  79. package/dist/textarea/index.d.ts.map +1 -1
  80. package/dist/toast/index.d.ts +224 -224
  81. package/dist/toast/index.d.ts.map +1 -1
  82. package/dist/toast/schema.d.ts +16 -16
  83. package/dist/toast/schema.d.ts.map +1 -1
  84. package/dist/toast/test.d.ts.map +1 -1
  85. package/dist/toast/update.d.ts +151 -151
  86. package/dist/toast/update.d.ts.map +1 -1
  87. package/dist/tooltip/message.d.ts +2 -2
  88. package/dist/tooltip/message.d.ts.map +1 -1
  89. package/dist/tooltip/tooltip.d.ts +7 -7
  90. package/dist/tooltip/tooltip.d.ts.map +1 -1
  91. package/dist/tooltip/tooltip.js +15 -11
  92. package/dist/typeahead.d.ts.map +1 -1
  93. package/dist/virtualList/index.d.ts +10 -10
  94. package/dist/virtualList/index.d.ts.map +1 -1
  95. package/package.json +12 -10
@@ -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
- readonly pointerType: S.String;
29
- readonly button: S.Number;
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
- readonly message: import("foldkit/message").MessageUnion<{
42
+ message: import("foldkit/message").MessageUnion<{
43
43
  readonly Showed: {};
44
44
  readonly Hid: {};
45
45
  readonly CompletedWaitForPaint: {};
@@ -78,6 +78,11 @@ export declare const init: (config: InitConfig) => Model;
78
78
  * trigger via a native `<label for={Popover.buttonId(id)}>` or an
79
79
  * `aria-labelledby` reference. */
80
80
  export declare const buttonId: (id: string) => string;
81
+ /** Returns the bare DOM id of the popover arrow, derived from the popover's
82
+ * base id. The `arrow` bundle already carries this id, so reach for this when
83
+ * you need the id on its own, such as asserting the panel Mount's `arrowId`
84
+ * argument in a Scene test. */
85
+ export declare const arrowId: (id: string) => string;
81
86
  type UpdateReturn = Update.ReturnWithOutMessage<Model, Message, OutMessage>;
82
87
  /** Prevents page scrolling while the popover is open in modal mode. */
83
88
  export declare const LockScroll: Command.CommandDefinitionNoArgs<"LockScroll", Effect.Effect<{
@@ -117,13 +122,13 @@ export declare const DetectMovementOrAnimationEnd: Command.CommandDefinitionWith
117
122
  }, Effect.Effect<{
118
123
  readonly _tag: "GotAnimationMessage";
119
124
  readonly message: {
120
- readonly _tag: "Showed";
121
- } | {
122
- readonly _tag: "Hid";
123
- } | {
124
125
  readonly _tag: "CompletedWaitForPaint";
125
126
  } | {
126
127
  readonly _tag: "EndedAnimation";
128
+ } | {
129
+ readonly _tag: "Hid";
130
+ } | {
131
+ readonly _tag: "Showed";
127
132
  };
128
133
  }, never, never>>;
129
134
  /** Processes a Popover Message and returns the next Model, optional Commands,
@@ -138,7 +143,7 @@ export declare const update: (model: Model, message: Message) => Readonly<{
138
143
  readonly animation: {
139
144
  readonly id: string;
140
145
  readonly isShowing: boolean;
141
- readonly transitionState: "Idle" | "EnterStart" | "EnterAnimating" | "LeaveStart" | "LeaveAnimating";
146
+ readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
142
147
  };
143
148
  readonly maybeLastButtonPointerType: Option.Option<string>;
144
149
  };
@@ -157,37 +162,37 @@ export declare const update: (model: Model, message: Message) => Readonly<{
157
162
  } | {
158
163
  readonly _tag: "SuppressedSpaceScroll";
159
164
  } | {
160
- readonly _tag: "CompletedFocusPanel";
165
+ readonly _tag: "CompletedAnchorPopover";
161
166
  } | {
162
167
  readonly _tag: "CompletedFocusButton";
163
168
  } | {
164
- readonly _tag: "CompletedLockScroll";
165
- } | {
166
- readonly _tag: "CompletedUnlockScroll";
169
+ readonly _tag: "CompletedFocusPanel";
167
170
  } | {
168
171
  readonly _tag: "CompletedInertOthers";
169
172
  } | {
170
- readonly _tag: "CompletedRestoreInert";
171
- } | {
172
- readonly _tag: "CompletedAnchorPopover";
173
+ readonly _tag: "CompletedLockScroll";
173
174
  } | {
174
175
  readonly _tag: "CompletedPortalPopoverBackdrop";
176
+ } | {
177
+ readonly _tag: "CompletedRestoreInert";
178
+ } | {
179
+ readonly _tag: "CompletedUnlockScroll";
175
180
  } | {
176
181
  readonly _tag: "GotAnimationMessage";
177
182
  readonly message: {
178
- readonly _tag: "Showed";
179
- } | {
180
- readonly _tag: "Hid";
181
- } | {
182
183
  readonly _tag: "CompletedWaitForPaint";
183
184
  } | {
184
185
  readonly _tag: "EndedAnimation";
186
+ } | {
187
+ readonly _tag: "Hid";
188
+ } | {
189
+ readonly _tag: "Showed";
185
190
  };
186
191
  }, never>;
187
192
  outMessage?: {
188
- readonly _tag: "Opened";
189
- } | {
190
193
  readonly _tag: "Closed";
194
+ } | {
195
+ readonly _tag: "Opened";
191
196
  };
192
197
  }>;
193
198
  /** The anchor-positioning Mount this Popover renders on its panel. Exposed so
@@ -209,6 +214,8 @@ export declare const AnchorPopover: Mount.MountDefinitionWithArgs<"AnchorPopover
209
214
  readonly isPlacementLocked: S.optional<S.Boolean>;
210
215
  }>;
211
216
  focusSelector: S.optional<S.String>;
217
+ arrowId: S.optional<S.String>;
218
+ arrowPadding: S.optional<S.Number>;
212
219
  }, {
213
220
  readonly _tag: "CompletedAnchorPopover";
214
221
  }>;
@@ -234,6 +241,11 @@ export declare const close: (model: Model) => UpdateReturn;
234
241
  * - `backdrop`: attribute bundle for the modal backdrop. Includes the
235
242
  * portal Mount that moves the backdrop to document.body. The
236
243
  * backdrop's OnClick closes the popover.
244
+ * - `arrow`: attribute bundle for an arrow element inside the panel.
245
+ * Carries the id the anchor Mount resolves and hides the element from
246
+ * assistive technology. Spread it onto your own element and place it
247
+ * with the `--arrow-x` and `--arrow-y` custom properties Anchor
248
+ * publishes on the panel. Nothing renders until you do.
237
249
  * - `isVisible`: derived from `isOpen` and the Animation
238
250
  * `transitionState`. The consumer renders the panel + backdrop only
239
251
  * while this is true. */
@@ -241,6 +253,7 @@ export type RenderInfo = Readonly<{
241
253
  button: ReadonlyArray<ChildAttribute>;
242
254
  panel: ReadonlyArray<ChildAttribute>;
243
255
  backdrop: ReadonlyArray<ChildAttribute>;
256
+ arrow: ReadonlyArray<ChildAttribute>;
244
257
  isVisible: boolean;
245
258
  }>;
246
259
  /** Per-render view inputs passed to `view` via `h.submodel`'s `viewInputs` field. */
@@ -249,6 +262,7 @@ export type ViewInputs = Readonly<{
249
262
  toView: (render: RenderInfo) => Html;
250
263
  isDisabled?: boolean;
251
264
  focusSelector?: string;
265
+ arrowPadding?: number;
252
266
  ariaLabel?: string;
253
267
  ariaLabelledBy?: string;
254
268
  }>;
@@ -262,7 +276,7 @@ export declare const view: import("foldkit/submodel").View<{
262
276
  readonly animation: {
263
277
  readonly id: string;
264
278
  readonly isShowing: boolean;
265
- readonly transitionState: "Idle" | "EnterStart" | "EnterAnimating" | "LeaveStart" | "LeaveAnimating";
279
+ readonly transitionState: "EnterAnimating" | "EnterStart" | "Idle" | "LeaveAnimating" | "LeaveStart";
266
280
  };
267
281
  readonly maybeLastButtonPointerType: Option.Option<string>;
268
282
  }, {
@@ -280,37 +294,38 @@ export declare const view: import("foldkit/submodel").View<{
280
294
  } | {
281
295
  readonly _tag: "SuppressedSpaceScroll";
282
296
  } | {
283
- readonly _tag: "CompletedFocusPanel";
297
+ readonly _tag: "CompletedAnchorPopover";
284
298
  } | {
285
299
  readonly _tag: "CompletedFocusButton";
286
300
  } | {
287
- readonly _tag: "CompletedLockScroll";
288
- } | {
289
- readonly _tag: "CompletedUnlockScroll";
301
+ readonly _tag: "CompletedFocusPanel";
290
302
  } | {
291
303
  readonly _tag: "CompletedInertOthers";
292
304
  } | {
293
- readonly _tag: "CompletedRestoreInert";
294
- } | {
295
- readonly _tag: "CompletedAnchorPopover";
305
+ readonly _tag: "CompletedLockScroll";
296
306
  } | {
297
307
  readonly _tag: "CompletedPortalPopoverBackdrop";
308
+ } | {
309
+ readonly _tag: "CompletedRestoreInert";
310
+ } | {
311
+ readonly _tag: "CompletedUnlockScroll";
298
312
  } | {
299
313
  readonly _tag: "GotAnimationMessage";
300
314
  readonly message: {
301
- readonly _tag: "Showed";
302
- } | {
303
- readonly _tag: "Hid";
304
- } | {
305
315
  readonly _tag: "CompletedWaitForPaint";
306
316
  } | {
307
317
  readonly _tag: "EndedAnimation";
318
+ } | {
319
+ readonly _tag: "Hid";
320
+ } | {
321
+ readonly _tag: "Showed";
308
322
  };
309
323
  }, Readonly<{
310
324
  anchor: AnchorConfig;
311
325
  toView: (render: RenderInfo) => Html;
312
326
  isDisabled?: boolean;
313
327
  focusSelector?: string;
328
+ arrowPadding?: number;
314
329
  ariaLabel?: string;
315
330
  ariaLabelledBy?: string;
316
331
  }>>;
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBlB,CAAA;AAEF,MAAM,MAAM,aAAa,GA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,CAAC,EAAE,MAAM,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB,CAAC,CAAA;AAEF,6EAA6E;AAC7E,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAVP,YAAY;YACZ,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI;iBACvB,OAAO;oBACJ,MAAM;mBACP,MAAM;gBACT,MAAM;qBACD,MAAM;GAwKxB,CAAA"}
@@ -81,6 +81,11 @@ const panelSelector = (id) => __foldkitBrandViewResult((idSelector(`${id}-panel`
81
81
  * trigger via a native `<label for={Popover.buttonId(id)}>` or an
82
82
  * `aria-labelledby` reference. */
83
83
  export const buttonId = (id) => __foldkitBrandViewResult((`${id}-button`), "@foldkit/ui/popover/index.js#buttonId");
84
+ /** Returns the bare DOM id of the popover arrow, derived from the popover's
85
+ * base id. The `arrow` bundle already carries this id, so reach for this when
86
+ * you need the id on its own, such as asserting the panel Mount's `arrowId`
87
+ * argument in a Scene test. */
88
+ export const arrowId = (id) => __foldkitBrandViewResult((`${id}-arrow`), "@foldkit/ui/popover/index.js#arrowId");
84
89
  /** Prevents page scrolling while the popover is open in modal mode. */
85
90
  export const LockScroll = Command.define('LockScroll', {
86
91
  messages: [Message.CompletedLockScroll],
@@ -240,26 +245,37 @@ export const update = (model, message) => {
240
245
  * Scene tests can call `Scene.Mount.resolve(AnchorPopover, CompletedAnchorPopover())`
241
246
  * to acknowledge the mount produced by the rendered panel. */
242
247
  export const AnchorPopover = Mount.define('AnchorPopover', {
243
- buttonId: S.String,
244
- anchor: AnchorConfig,
245
- focusSelector: S.optional(S.String),
246
- }, Message.CompletedAnchorPopover)(({ buttonId, anchor, focusSelector }) => __foldkitBrandViewResult((element => __foldkitBrandViewResult((Effect.gen(function* () {
247
- yield* Effect.acquireRelease(Effect.sync(() => __foldkitBrandViewResult((anchorSetup(element, {
248
- buttonId,
249
- anchor,
250
- interceptTab: false,
251
- focusAfterPosition: true,
252
- ...(focusSelector !== undefined && { focusSelector }),
253
- })), "@foldkit/ui/popover/index.js#anonymous~11")), cleanup => __foldkitBrandViewResult((Effect.sync(cleanup)), "@foldkit/ui/popover/index.js#anonymous~12"));
254
- return __foldkitBrandViewResult((Message.CompletedAnchorPopover()), "@foldkit/ui/popover/index.js#anonymous~10");
255
- })), "@foldkit/ui/popover/index.js#anonymous~9")), "@foldkit/ui/popover/index.js#anonymous~8"));
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
+ });
256
269
  /** The backdrop-portaling Mount this Popover renders. Exposed so Scene tests can
257
270
  * call `Scene.Mount.resolve(PortalPopoverBackdrop, CompletedPortalPopoverBackdrop())` to
258
271
  * acknowledge the mount produced by the rendered backdrop. */
259
- export const PortalPopoverBackdrop = Mount.define('PortalPopoverBackdrop', Message.CompletedPortalPopoverBackdrop)(element => __foldkitBrandViewResult((Effect.gen(function* () {
260
- yield* Effect.acquireRelease(Effect.sync(() => __foldkitBrandViewResult((portalToContainingRoot(element)), "@foldkit/ui/popover/index.js#anonymous~15")), cleanup => __foldkitBrandViewResult((Effect.sync(cleanup)), "@foldkit/ui/popover/index.js#anonymous~16"));
261
- return __foldkitBrandViewResult((Message.CompletedPortalPopoverBackdrop()), "@foldkit/ui/popover/index.js#anonymous~14");
262
- })), "@foldkit/ui/popover/index.js#anonymous~13"));
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
+ });
263
279
  /** Programmatically opens the Popover, updating the Model and returning
264
280
  * focus and modal Commands plus an `Opened` OutMessage. */
265
281
  export const open = (model) => __foldkitBrandViewResult((update(model, Message.RequestedOpen())), "@foldkit/ui/popover/index.js#open");
@@ -270,28 +286,28 @@ export const close = (model) => __foldkitBrandViewResult((update(model, Message.
270
286
  /** Renders a headless popover with a trigger button and a floating panel. */
271
287
  export const view = defineView((model, viewInputs, h) => {
272
288
  const { id, isOpen, contentFocus, animation: { transitionState }, maybeLastButtonPointerType, } = model;
273
- const { anchor, toView, isDisabled, focusSelector, ariaLabel, ariaLabelledBy, } = viewInputs;
289
+ const { anchor, toView, isDisabled, focusSelector, arrowPadding, ariaLabel, ariaLabelledBy, } = viewInputs;
274
290
  const isLeaving = transitionState === 'LeaveStart' || transitionState === 'LeaveAnimating';
275
291
  const isVisible = isOpen || isLeaving;
276
292
  const animationAttributes = M.value(transitionState).pipe(M.when('EnterStart', () => __foldkitBrandViewResult(([
277
293
  h.DataAttribute('closed', ''),
278
294
  h.DataAttribute('enter', ''),
279
295
  h.DataAttribute('transition', ''),
280
- ]), "@foldkit/ui/popover/index.js#anonymous~18")), M.when('EnterAnimating', () => __foldkitBrandViewResult(([
296
+ ]), "@foldkit/ui/popover/index.js#anonymous~15")), M.when('EnterAnimating', () => __foldkitBrandViewResult(([
281
297
  h.DataAttribute('enter', ''),
282
298
  h.DataAttribute('transition', ''),
283
- ]), "@foldkit/ui/popover/index.js#anonymous~19")), M.when('LeaveStart', () => __foldkitBrandViewResult(([
299
+ ]), "@foldkit/ui/popover/index.js#anonymous~16")), M.when('LeaveStart', () => __foldkitBrandViewResult(([
284
300
  h.DataAttribute('leave', ''),
285
301
  h.DataAttribute('transition', ''),
286
- ]), "@foldkit/ui/popover/index.js#anonymous~20")), M.when('LeaveAnimating', () => __foldkitBrandViewResult(([
302
+ ]), "@foldkit/ui/popover/index.js#anonymous~17")), M.when('LeaveAnimating', () => __foldkitBrandViewResult(([
287
303
  h.DataAttribute('closed', ''),
288
304
  h.DataAttribute('leave', ''),
289
305
  h.DataAttribute('transition', ''),
290
- ]), "@foldkit/ui/popover/index.js#anonymous~21")), M.orElse(() => __foldkitBrandViewResult(([]), "@foldkit/ui/popover/index.js#anonymous~22")));
291
- 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~23")), M.when('Escape', () => __foldkitBrandViewResult((OptionExt.when(isOpen, 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#handleButtonKeyDown");
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");
292
308
  const handleButtonPointerDown = (pointerType, button) => __foldkitBrandViewResult((Option.some(Message.PressedPointerOnButton({ pointerType, button }))), "@foldkit/ui/popover/index.js#handleButtonPointerDown");
293
309
  const handleButtonClick = () => {
294
- const isMouse = Option.exists(maybeLastButtonPointerType, type => __foldkitBrandViewResult((type === 'mouse'), "@foldkit/ui/popover/index.js#anonymous~26"));
310
+ const isMouse = Option.exists(maybeLastButtonPointerType, type => __foldkitBrandViewResult((type === 'mouse'), "@foldkit/ui/popover/index.js#anonymous~23"));
295
311
  if (isMouse) {
296
312
  return __foldkitBrandViewResult((Message.IgnoredMouseClick()), "@foldkit/ui/popover/index.js#handleButtonClick");
297
313
  }
@@ -303,7 +319,7 @@ export const view = defineView((model, viewInputs, h) => {
303
319
  }
304
320
  };
305
321
  const handleSpaceKeyUp = (key) => __foldkitBrandViewResult((OptionExt.when(key === ' ', Message.SuppressedSpaceScroll())), "@foldkit/ui/popover/index.js#handleSpaceKeyUp");
306
- const handlePanelKeyDown = (key) => __foldkitBrandViewResult((M.value(key).pipe(M.when('Escape', () => __foldkitBrandViewResult((Option.some(Message.RequestedClose())), "@foldkit/ui/popover/index.js#anonymous~27")), M.orElse(() => __foldkitBrandViewResult((Option.none()), "@foldkit/ui/popover/index.js#anonymous~28")))), "@foldkit/ui/popover/index.js#handlePanelKeyDown");
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");
307
323
  const resolveButtonLabel = () => {
308
324
  if (Predicate.isNotUndefined(ariaLabel)) {
309
325
  return __foldkitBrandViewResult(([h.AriaLabel(ariaLabel)]), "@foldkit/ui/popover/index.js#resolveButtonLabel");
@@ -345,6 +361,8 @@ export const view = defineView((model, viewInputs, h) => {
345
361
  buttonId: `${id}-button`,
346
362
  anchor,
347
363
  ...(focusSelector !== undefined && { focusSelector }),
364
+ arrowId: arrowId(id),
365
+ ...(arrowPadding !== undefined && { arrowPadding }),
348
366
  })),
349
367
  ...animationAttributes,
350
368
  ...(isLeaving
@@ -358,10 +376,12 @@ export const view = defineView((model, viewInputs, h) => {
358
376
  h.OnMount(PortalPopoverBackdrop()),
359
377
  ...(isLeaving ? [] : [h.OnClick(Message.RequestedClose())]),
360
378
  ];
379
+ const arrowAttributes = [h.Id(arrowId(id)), h.AriaHidden(true)];
361
380
  return __foldkitBrandViewResult((toView({
362
381
  button: childAttributes(buttonAttributes),
363
382
  panel: childAttributes(panelAttributes),
364
383
  backdrop: childAttributes(backdropAttributes),
384
+ arrow: childAttributes(arrowAttributes),
365
385
  isVisible,
366
- })), "@foldkit/ui/popover/index.js#anonymous~17");
386
+ })), "@foldkit/ui/popover/index.js#anonymous~14");
367
387
  });
@@ -1,4 +1,4 @@
1
- export { init, update, open, close, view, buttonId, Model, Message, OutMessage, type Opened, type Closed, type RequestedOpen, type RequestedClose, AnchorPopover, PortalPopoverBackdrop, LockScroll, UnlockScroll, InertOthers, RestoreInert, FocusPanel, FocusButton, DetectMovementOrAnimationEnd, type BlurredPanel, type PressedPointerOnButton, type IgnoredMouseClick, type SuppressedSpaceScroll, } from './index.js';
1
+ export { init, update, open, close, view, buttonId, arrowId, Model, Message, OutMessage, type Opened, type Closed, type RequestedOpen, type RequestedClose, AnchorPopover, PortalPopoverBackdrop, LockScroll, UnlockScroll, InertOthers, RestoreInert, FocusPanel, FocusButton, DetectMovementOrAnimationEnd, type BlurredPanel, type PressedPointerOnButton, type IgnoredMouseClick, type SuppressedSpaceScroll, } from './index.js';
2
2
  export type { InitConfig, ViewInputs, RenderInfo } from './index.js';
3
3
  export type { AnchorConfig } from '../anchor/index.js';
4
4
  //# sourceMappingURL=public.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../src/popover/public.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,KAAK,EACL,OAAO,EACP,UAAU,EACV,KAAK,MAAM,EACX,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,aAAa,EACb,qBAAqB,EACrB,UAAU,EACV,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,UAAU,EACV,WAAW,EACX,4BAA4B,EAC5B,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,GAC3B,MAAM,YAAY,CAAA;AAEnB,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAEpE,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA"}
1
+ {"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../src/popover/public.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACJ,MAAM,EACN,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,KAAK,EACL,OAAO,EACP,UAAU,EACV,KAAK,MAAM,EACX,KAAK,MAAM,EACX,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,aAAa,EACb,qBAAqB,EACrB,UAAU,EACV,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,UAAU,EACV,WAAW,EACX,4BAA4B,EAC5B,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,GAC3B,MAAM,YAAY,CAAA;AAEnB,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAEpE,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA"}
@@ -1 +1 @@
1
- export { init, update, open, close, view, buttonId, Model, Message, OutMessage, AnchorPopover, PortalPopoverBackdrop, LockScroll, UnlockScroll, InertOthers, RestoreInert, FocusPanel, FocusButton, DetectMovementOrAnimationEnd, } from './index.js';
1
+ export { init, update, open, close, view, buttonId, arrowId, Model, Message, OutMessage, AnchorPopover, PortalPopoverBackdrop, LockScroll, UnlockScroll, InertOthers, RestoreInert, FocusPanel, FocusButton, DetectMovementOrAnimationEnd, } from './index.js';
@@ -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
- readonly index: S.Number;
23
- readonly value: S.String;
22
+ index: S.Number;
23
+ value: S.String;
24
24
  };
25
25
  readonly FocusedOption: {
26
- readonly index: S.Number;
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
- readonly value: S.String;
43
- readonly index: S.Number;
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: "Selected";
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,KAAK,cAAc,EAAE,KAAK,IAAI,EAAmB,MAAM,cAAc,CAAA;AAG9E,OAAO,EAAE,KAAK,IAAI,IAAI,YAAY,EAAc,MAAM,kBAAkB,CAAA;AAOxE,+FAA+F;AAC/F,eAAO,MAAM,WAAW,iDAAyC,CAAA;AACjE,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC,IAAI,CAAA;AAEjD;;;;+DAI+D;AAC/D,eAAO,MAAM,KAAK;;;EAGhB,CAAA;AAEF,MAAM,MAAM,KAAK,GAAG,OAAO,KAAK,CAAC,IAAI,CAAA;AAIrC,yDAAyD;AACzD,eAAO,MAAM,OAAO;;;;;;;;;EAOlB,CAAA;AAEF,MAAM,MAAM,cAAc,GAAG,OAAO,OAAO,CAAC,cAAc,CAAC,IAAI,CAAA;AAC/D,MAAM,MAAM,aAAa,GAAG,OAAO,OAAO,CAAC,aAAa,CAAC,IAAI,CAAA;AAE7D,MAAM,MAAM,OAAO,GAAG,OAAO,OAAO,CAAC,IAAI,CAAA;AAIzC,MAAM,MAAM,QAAQ,CAAC,KAAK,SAAS,MAAM,GAAG,MAAM,IAAI,QAAQ,CAAC;IAC7D,QAAQ,CAAC,IAAI,EAAE,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@@
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,GAAI,IAAI,MAAM,KAAG,MAA6B,CAAA;AAExE,gIAAgI;AAChI,eAAO,MAAM,IAAI,GAAI,OAAO,EAC1B,QAAQ,UAAU,CAAC,OAAO,CAAC,EAC3B,GAAG,WAAW,CAAC,OAAO,CAAC,KACtB,IAqDF,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/select/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,E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