@astryxdesign/core 0.7.16 → 0.7.17-canary.g16fe6a8

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 (207) hide show
  1. package/dist/AlertDialog/AlertDialog.d.ts +7 -4
  2. package/dist/AlertDialog/AlertDialog.d.ts.map +1 -1
  3. package/dist/AlertDialog/AlertDialog.js +41 -12
  4. package/dist/AlertDialog/useAlertMotion.d.ts +16 -0
  5. package/dist/AlertDialog/useAlertMotion.d.ts.map +1 -0
  6. package/dist/AlertDialog/useAlertMotion.js +277 -0
  7. package/dist/Button/Button.d.ts.map +1 -1
  8. package/dist/Button/Button.js +10 -3
  9. package/dist/CheckboxInput/CheckboxInput.d.ts.map +1 -1
  10. package/dist/CheckboxInput/CheckboxInput.js +5 -2
  11. package/dist/ComplexSelector/ComplexSelector.d.ts.map +1 -1
  12. package/dist/ComplexSelector/ComplexSelector.js +10 -4
  13. package/dist/ContextMenu/ContextMenu.d.ts.map +1 -1
  14. package/dist/ContextMenu/ContextMenu.js +20 -8
  15. package/dist/DropdownMenu/menuItemRoles.d.ts.map +1 -1
  16. package/dist/DropdownMenu/menuItemRoles.js +5 -2
  17. package/dist/Icon/Icon.js +4 -4
  18. package/dist/Icon/globalIconRegistry.d.ts.map +1 -1
  19. package/dist/Icon/globalIconRegistry.js +16 -6
  20. package/dist/Icon/useIcon.js +5 -5
  21. package/dist/Item/Item.d.ts +49 -67
  22. package/dist/Item/Item.d.ts.map +1 -1
  23. package/dist/Item/Item.js +91 -99
  24. package/dist/Layer/inputHold.d.ts +9 -7
  25. package/dist/Layer/inputHold.d.ts.map +1 -1
  26. package/dist/Layer/inputHold.js +74 -24
  27. package/dist/Lightbox/Lightbox.d.ts.map +1 -1
  28. package/dist/Lightbox/Lightbox.js +129 -8
  29. package/dist/Link/Link.d.ts.map +1 -1
  30. package/dist/Link/Link.js +6 -1
  31. package/dist/List/ListItem.d.ts +5 -7
  32. package/dist/List/ListItem.d.ts.map +1 -1
  33. package/dist/List/ListItem.js +11 -1
  34. package/dist/MetadataList/MetadataListItem.d.ts +7 -2
  35. package/dist/MetadataList/MetadataListItem.d.ts.map +1 -1
  36. package/dist/MetadataList/MetadataListItem.js +3 -1
  37. package/dist/MobileNav/MobileNav.d.ts.map +1 -1
  38. package/dist/MobileNav/MobileNav.js +32 -23
  39. package/dist/MultiSelector/MultiSelector.d.ts.map +1 -1
  40. package/dist/MultiSelector/MultiSelector.js +15 -7
  41. package/dist/Pagination/Pagination.d.ts +25 -2
  42. package/dist/Pagination/Pagination.d.ts.map +1 -1
  43. package/dist/Pagination/Pagination.js +87 -47
  44. package/dist/Popover/popoverSurfaceMotion.d.ts.map +1 -1
  45. package/dist/Popover/popoverSurfaceMotion.js +4 -9
  46. package/dist/Popover/usePopover.d.ts.map +1 -1
  47. package/dist/Popover/usePopover.js +4 -1
  48. package/dist/Selector/Selector.d.ts.map +1 -1
  49. package/dist/Selector/Selector.js +11 -5
  50. package/dist/Slider/Slider.d.ts.map +1 -1
  51. package/dist/Slider/Slider.js +15 -4
  52. package/dist/Swipe/SwipeActionsLayer.d.ts +31 -0
  53. package/dist/Swipe/SwipeActionsLayer.d.ts.map +1 -0
  54. package/dist/Swipe/SwipeActionsLayer.js +358 -0
  55. package/dist/Swipe/createSwipe.d.ts +26 -0
  56. package/dist/Swipe/createSwipe.d.ts.map +1 -0
  57. package/dist/Swipe/createSwipe.js +97 -0
  58. package/dist/Swipe/index.d.ts +3 -0
  59. package/dist/Swipe/index.d.ts.map +1 -0
  60. package/dist/Swipe/index.js +5 -0
  61. package/dist/Swipe/swipeHost.d.ts +208 -0
  62. package/dist/Swipe/swipeHost.d.ts.map +1 -0
  63. package/dist/Swipe/swipeHost.js +122 -0
  64. package/dist/Swipe/swipeHost.stylex.d.ts +21 -0
  65. package/dist/Swipe/swipeHost.stylex.d.ts.map +1 -0
  66. package/dist/Swipe/swipeHost.stylex.js +27 -0
  67. package/dist/Swipe/useSwipeAction.d.ts +220 -0
  68. package/dist/Swipe/useSwipeAction.d.ts.map +1 -0
  69. package/dist/Swipe/useSwipeAction.js +1122 -0
  70. package/dist/Table/TableCell.d.ts.map +1 -1
  71. package/dist/Table/TableCell.js +2 -2
  72. package/dist/Table/TableHeaderCell.d.ts.map +1 -1
  73. package/dist/Table/TableHeaderCell.js +25 -3
  74. package/dist/Table/plugins/selection/useTableSelection.d.ts.map +1 -1
  75. package/dist/Table/plugins/selection/useTableSelection.js +20 -2
  76. package/dist/Table/tableContextMenu.d.ts +6 -0
  77. package/dist/Table/tableContextMenu.d.ts.map +1 -1
  78. package/dist/Table/tableContextMenu.js +10 -1
  79. package/dist/Toast/Toast.d.ts.map +1 -1
  80. package/dist/Toast/Toast.js +10 -5
  81. package/dist/Tokenizer/Tokenizer.d.ts.map +1 -1
  82. package/dist/Tokenizer/Tokenizer.js +6 -1
  83. package/dist/Tooltip/useTooltip.d.ts.map +1 -1
  84. package/dist/Tooltip/useTooltip.js +1 -1
  85. package/dist/TopNav/TopNav.d.ts.map +1 -1
  86. package/dist/TopNav/TopNav.js +6 -1
  87. package/dist/astryx.css +33 -18
  88. package/dist/dragToSnapPoints/compositorSettle.d.ts +38 -0
  89. package/dist/dragToSnapPoints/compositorSettle.d.ts.map +1 -0
  90. package/dist/dragToSnapPoints/compositorSettle.js +140 -0
  91. package/dist/dragToSnapPoints/createDragToSnapPoints.d.ts +29 -5
  92. package/dist/dragToSnapPoints/createDragToSnapPoints.d.ts.map +1 -1
  93. package/dist/dragToSnapPoints/createDragToSnapPoints.js +123 -7
  94. package/dist/hooks/useHotkeys.d.ts +1 -1
  95. package/dist/i18n/generated-locales/en.generated.d.ts.map +1 -1
  96. package/dist/i18n/generated-locales/en.generated.js +2 -0
  97. package/dist/i18n/generated-locales/pseudo.generated.d.ts.map +1 -1
  98. package/dist/i18n/generated-locales/pseudo.generated.js +2 -0
  99. package/dist/index.d.ts +1 -0
  100. package/dist/index.d.ts.map +1 -1
  101. package/dist/index.js +1 -0
  102. package/dist/motion/themeTiming.d.ts +11 -4
  103. package/dist/motion/themeTiming.d.ts.map +1 -1
  104. package/dist/motion/themeTiming.js +14 -4
  105. package/dist/motion/uikit/swipeActions.d.ts +148 -0
  106. package/dist/motion/uikit/swipeActions.d.ts.map +1 -0
  107. package/dist/motion/uikit/swipeActions.js +150 -0
  108. package/dist/privateAttributes/layerRoot.stylex.d.ts +2 -0
  109. package/dist/privateAttributes/layerRoot.stylex.d.ts.map +1 -1
  110. package/dist/privateAttributes/layerRoot.stylex.js +10 -3
  111. package/dist/privateAttributes/pressHeld.stylex.d.ts +5 -0
  112. package/dist/privateAttributes/pressHeld.stylex.d.ts.map +1 -0
  113. package/dist/privateAttributes/pressHeld.stylex.js +31 -0
  114. package/dist/reset.font.a11y.chromium.spec.d.ts.map +1 -0
  115. package/dist/theme/defineTheme.d.ts +18 -1
  116. package/dist/theme/defineTheme.d.ts.map +1 -1
  117. package/dist/theme/defineTheme.js +17 -0
  118. package/dist/theme/generateThemeRules.d.ts.map +1 -1
  119. package/dist/theme/generateThemeRules.js +188 -83
  120. package/dist/theme/index.d.ts +1 -1
  121. package/dist/theme/index.d.ts.map +1 -1
  122. package/dist/theme/mergeComponents.d.ts +13 -5
  123. package/dist/theme/mergeComponents.d.ts.map +1 -1
  124. package/dist/theme/mergeComponents.js +74 -6
  125. package/dist/theme/resolveThemeValues.js +2 -2
  126. package/dist/theme/themeAdaptations.d.ts.map +1 -1
  127. package/dist/theme/themeAdaptations.js +4 -1
  128. package/dist/utils/pressFeedback.d.ts.map +1 -1
  129. package/dist/utils/pressFeedback.js +4 -1
  130. package/locales/en.json +8 -0
  131. package/locales/pseudo.json +6 -0
  132. package/package.json +10 -5
  133. package/src/AlertDialog/AlertDialog.doc.mjs +3 -3
  134. package/src/AlertDialog/AlertDialog.tsx +49 -11
  135. package/src/AlertDialog/useAlertMotion.ts +313 -0
  136. package/src/Button/Button.tsx +16 -5
  137. package/src/Chat/useChatDictation.doc.mjs +246 -0
  138. package/src/CheckboxInput/CheckboxInput.tsx +5 -1
  139. package/src/ComplexSelector/ComplexSelector.tsx +20 -8
  140. package/src/ContextMenu/ContextMenu.tsx +22 -12
  141. package/src/DropdownMenu/menuItemRoles.ts +9 -6
  142. package/src/Icon/Icon.tsx +4 -4
  143. package/src/Icon/globalIconRegistry.tsx +27 -15
  144. package/src/Icon/useIcon.ts +5 -5
  145. package/src/Item/Item.doc.mjs +8 -2
  146. package/src/Item/Item.tsx +143 -158
  147. package/src/Layer/inputHold.ts +95 -24
  148. package/src/Lightbox/Lightbox.tsx +200 -11
  149. package/src/Link/Link.tsx +14 -6
  150. package/src/List/ListItem.doc.mjs +21 -6
  151. package/src/List/ListItem.tsx +16 -7
  152. package/src/MetadataList/MetadataListItem.doc.mjs +36 -1
  153. package/src/MetadataList/MetadataListItem.tsx +7 -2
  154. package/src/MobileNav/MobileNav.tsx +45 -28
  155. package/src/MultiSelector/MultiSelector.tsx +28 -11
  156. package/src/Pagination/Pagination.doc.mjs +39 -3
  157. package/src/Pagination/Pagination.tsx +122 -55
  158. package/src/Popover/popoverSurfaceMotion.ts +4 -13
  159. package/src/Popover/usePopover.tsx +7 -1
  160. package/src/Selector/Selector.tsx +21 -9
  161. package/src/Slider/Slider.tsx +26 -3
  162. package/src/Swipe/SwipeActionsLayer.tsx +438 -0
  163. package/src/Swipe/createSwipe.doc.mjs +118 -0
  164. package/src/Swipe/createSwipe.ts +112 -0
  165. package/src/Swipe/index.ts +6 -0
  166. package/src/Swipe/swipeHost.stylex.ts +27 -0
  167. package/src/Swipe/swipeHost.ts +255 -0
  168. package/src/Swipe/useSwipeAction.ts +1414 -0
  169. package/src/Table/Table.doc.mjs +1 -1
  170. package/src/Table/TableCell.tsx +5 -4
  171. package/src/Table/TableHeaderCell.tsx +31 -3
  172. package/src/Table/plugins/selection/useTableSelection.tsx +18 -2
  173. package/src/Table/tableContextMenu.tsx +15 -1
  174. package/src/Toast/Toast.tsx +28 -5
  175. package/src/Tokenizer/Tokenizer.tsx +18 -5
  176. package/src/Tooltip/useTooltip.tsx +2 -3
  177. package/src/TopNav/TopNav.tsx +17 -1
  178. package/src/dragToSnapPoints/compositorSettle.ts +175 -0
  179. package/src/dragToSnapPoints/createDragToSnapPoints.ts +146 -11
  180. package/src/hooks/useHotkeys.doc.mjs +4 -4
  181. package/src/hooks/useHotkeys.ts +1 -1
  182. package/src/i18n/generated-locales/en.generated.ts +2 -0
  183. package/src/i18n/generated-locales/pseudo.generated.ts +2 -0
  184. package/src/index.ts +1 -0
  185. package/src/motion/MEASUREMENTS.md +16 -0
  186. package/src/motion/README.md +1 -0
  187. package/src/motion/themeTiming.ts +20 -4
  188. package/src/motion/uikit/swipeActions.ts +142 -0
  189. package/src/privateAttributes/layerRoot.stylex.ts +10 -3
  190. package/src/privateAttributes/pressHeld.stylex.ts +31 -0
  191. package/src/reset.css +7 -0
  192. package/src/theme/defineTheme.ts +22 -1
  193. package/src/theme/generateThemeRules.ts +274 -124
  194. package/src/theme/index.ts +1 -0
  195. package/src/theme/mergeComponents.ts +86 -10
  196. package/src/theme/resolveThemeValues.ts +2 -2
  197. package/src/theme/syntax/useSyntaxTheme.doc.mjs +95 -0
  198. package/src/theme/themeAdaptations.ts +3 -1
  199. package/src/utils/pressFeedback.ts +8 -1
  200. package/dist/Item/ItemSwipeLayer.d.ts +0 -51
  201. package/dist/Item/ItemSwipeLayer.d.ts.map +0 -1
  202. package/dist/Item/ItemSwipeLayer.js +0 -282
  203. package/dist/Item/useSwipeAction.d.ts +0 -77
  204. package/dist/Item/useSwipeAction.d.ts.map +0 -1
  205. package/dist/Item/useSwipeAction.js +0 -551
  206. package/src/Item/ItemSwipeLayer.tsx +0 -400
  207. package/src/Item/useSwipeAction.ts +0 -752
package/dist/Item/Item.js CHANGED
@@ -14,18 +14,19 @@
14
14
  * those slots' own layout.
15
15
  * @position Core layout primitive; consumed by index.ts, tested by Item.test.tsx
16
16
  *
17
- * The swipe actions live in ItemSwipeLayer, reached only through a dynamic
18
- * import when `swipeActions` is set: this module imports nothing of the
19
- * gesture, so a row without swipe actions ships none of it. The root here
20
- * still carries the swipe styles and forwards its events into the bridge the
21
- * layer fills, so a swipeable row keeps the DOM and the event model it had
22
- * when the gesture was imported here (Item.source-build.test.mjs pins the
23
- * import graph).
17
+ * Swipe actions come in through `swipe`, a value `createSwipe` makes. That
18
+ * value carries the swipe's runtime. This module hands the runtime the row's
19
+ * root and facts, then renders what it gets back. The runtime gates the row,
20
+ * routes its keys and attaches the gesture to the root. This module imports
21
+ * nothing of the gesture. Its only swipe code is the deprecated path for
22
+ * `swipeActions` and `swipeBehavior`. That path keeps the released loader,
23
+ * row style, role gate, key bridge and coexistence warning.
24
+ * Item.source-build.test.mjs pins the import graph.
24
25
  *
25
26
  * SYNC: When modified, update these files to stay in sync:
26
27
  * - /packages/core/src/Item/Item.doc.mjs
27
28
  * - /packages/core/src/Item/Item.test.tsx
28
- * - /packages/core/src/Item/ItemSwipeLayer.tsx
29
+ * - /packages/core/src/Swipe/swipeHost.ts
29
30
  * - /packages/core/src/Item/index.ts
30
31
  * - /apps/storybook/stories/Item.stories.tsx
31
32
  * - /packages/cli/assets/templates/blocks/components/Item/ (showcase blocks)
@@ -55,33 +56,28 @@ import { rowPressLayerStyles } from "../privateAttributes/press.stylex.js";
55
56
  import { isCoarsePointer } from "../utils/coarsePointer.js";
56
57
  import { disabledInteractionProps } from "../utils/disabledInteraction.js";
57
58
  import { usePressFeedback } from "../hooks/usePressFeedback.js";
59
+ import { swipeHostOf } from "../Swipe/swipeHost.js";
60
+ // The deprecated path's row style: a row given `swipeActions` takes it from
61
+ // its first render, as released.
62
+ import { swipeHostStyles } from "../Swipe/swipeHost.stylex.js";
63
+
64
+ // The released loader: the deprecated `swipeActions` load the gesture and the
65
+ // panels the first time a row has them. While the chunk loads the row is
66
+ // already painted and at rest. The panels show nothing at rest, so nothing
67
+ // appears or moves when the layer mounts.
58
68
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
59
- // The gesture and the panels, loaded only by a row that has swipe actions: a
60
- // row without them never bundles useSwipeAction. While the chunk loads the
61
- // row is already painted and at rest — the panels show nothing at rest, so
62
- // nothing appears or moves when the layer mounts; the gesture simply attaches
63
- // once the chunk is ready, as ProgressBar's and Timestamp's lazy affordances do.
64
- const LazyItemSwipeLayer = /*#__PURE__*/lazy(async () => import("./ItemSwipeLayer.js"));
69
+ const DeprecatedSwipeLayer = /*#__PURE__*/lazy(async () => import("../Swipe/SwipeActionsLayer.js"));
65
70
 
66
71
  // =============================================================================
67
72
  // Types
68
73
  // =============================================================================
69
74
 
70
75
  /**
71
- * How a swipe action looks: ordinary, the one you mean, the dangerous one.
72
- * Three flavours of verb, not a status set.
76
+ * @deprecated Use `SwipeAction`, whose `id` is required and whose
77
+ * `onActivate` receives the action's `id` and the row's `itemKey`.
73
78
  */
74
79
 
75
- /** One verb a sideways drag uncovers. Every field is known before the gesture begins. */
76
-
77
- /**
78
- * `reveal`: past half the panel, or after a fling, the row rests open with
79
- * every entry a real button; a long drag fires the outermost. On a side with
80
- * two or more entries, only a drag that starts on the open row fires it.
81
- * `commit`: a release past the commit point slides the row out and fires a
82
- * side's one entry; nothing rests, and the panel is presentational. On a side
83
- * with two or more entries, `commit` fires none. A fling never fires an entry.
84
- */
80
+ /** @deprecated Use `CreateSwipeOptions`. */
85
81
 
86
82
  // =============================================================================
87
83
  // Constants
@@ -94,38 +90,44 @@ const LazyItemSwipeLayer = /*#__PURE__*/lazy(async () => import("./ItemSwipeLaye
94
90
  const ARIA_SELECTED_ROLES = new Set(['option', 'tab', 'row', 'gridcell', 'columnheader', 'rowheader', 'treeitem']);
95
91
 
96
92
  /**
97
- * Roles whose content model permits interactive descendants, so a swipe
98
- * panel's buttons may live inside the row. A row with no role at all
99
- * qualifies too; `option`, the `menuitem*` roles and the rest do not.
93
+ * The deprecated path's released role gate: roles whose content model permits
94
+ * interactive descendants, so a swipe panel's buttons may live inside the
95
+ * row. A row with no role at all qualifies too; `option`, the `menuitem*`
96
+ * roles and the rest do not. A row given `swipe` is gated by its runtime
97
+ * (Swipe/createSwipe.ts).
100
98
  */
101
99
  const SWIPE_ROLES = new Set(['listitem']);
102
100
 
103
101
  /**
104
102
  * Whether a row serves swipe actions, and so is a stacking context at rest:
105
- * its root translates (`styles.swipeRoot`). Swipe actions need a
106
- * role that permits interactive descendants, since a swipe panel holds
107
- * buttons. That is a `listitem`, or no role at all. A root that is itself a
108
- * link is not served, nor is a role that forbids interactive descendants. A
109
- * disabled row, a row with no entry on either side, and the enlarged target of
110
- * a nested control are not served either. Internal: under a finger,
111
- * List/ListItem.tsx raises such a row, so its touch band stays above the rows
112
- * after it.
103
+ * its root translates. Swipe actions need a role that permits interactive
104
+ * descendants, since a swipe panel holds buttons. That is a `listitem`, or no
105
+ * role at all. A root that is itself a link is not served, nor is a role that
106
+ * forbids interactive descendants. A disabled row, a row with no entry on
107
+ * either side, and the enlarged target of a nested control are not served
108
+ * either. `swipe` wins over the deprecated `swipeActions`. Internal: under a
109
+ * finger, List/ListItem.tsx raises such a row, so its touch band stays above
110
+ * the rows after it.
113
111
  */
114
112
  export function servesSwipeActions({
113
+ swipe,
115
114
  swipeActions,
116
115
  isDisabled,
117
116
  isDelegate,
118
117
  isLinkRoot,
119
118
  role
120
119
  }) {
120
+ if (swipe != null) {
121
+ return swipeHostOf(swipe)?.serves({
122
+ role: role ?? undefined,
123
+ isDisabled,
124
+ isDelegate,
125
+ isLinkRoot
126
+ }) ?? false;
127
+ }
121
128
  return swipeActions != null && ((swipeActions.leading?.length ?? 0) > 0 || (swipeActions.trailing?.length ?? 0) > 0) && !isDisabled && !isDelegate && !isLinkRoot && (role == null || SWIPE_ROLES.has(role));
122
129
  }
123
130
 
124
- /** The travel a drag writes on the row root, in physical px (see useSwipeAction). */
125
- const SWIPE_TRAVEL = 'var(--_item-swipe-travel, 0px)';
126
- /** The settle clock, `0s` while the finger drives the row. */
127
- const SWIPE_DURATION = 'var(--_item-swipe-duration, 0s)';
128
-
129
131
  // =============================================================================
130
132
  // Styles
131
133
  // =============================================================================
@@ -220,14 +222,6 @@ const styles = {
220
222
  k1xSpc: "x104kibb",
221
223
  kgKLqz: "x1ua5tub",
222
224
  $$css: true
223
- },
224
- swipeRoot: {
225
- kFalU9: "xge0x1e",
226
- k3aq6I: "x1kncwj0",
227
- k1ekBW: "xuo13n2",
228
- kIyJzY: "x15p14ac",
229
- kAMwcw: "x158wxwp",
230
- $$css: true
231
225
  }
232
226
  };
233
227
  const dynamicStyles = {
@@ -294,8 +288,9 @@ export function Item({
294
288
  isHighlighted = false,
295
289
  isSelected = false,
296
290
  isDisabled = false,
291
+ swipe,
297
292
  swipeActions,
298
- swipeBehavior = 'reveal',
293
+ swipeBehavior,
299
294
  xstyle,
300
295
  className,
301
296
  style,
@@ -356,23 +351,40 @@ export function Item({
356
351
  // card still treats it as part of its own surface.
357
352
  const hasOwnAction = (onClick != null || href != null) && !hasParentRole && !isLinkRoot;
358
353
  const pressOnRow = event => cancelNestedPress(event, event.currentTarget, href != null ? actionLinkRef.current : actionButtonRef.current);
359
- const leadingSwipe = swipeActions?.leading ?? [];
360
- const trailingSwipe = swipeActions?.trailing ?? [];
361
- const hasSwipe = servesSwipeActions({
362
- swipeActions,
354
+
355
+ // The bridge the swipe layer fills, on a row given `swipe` and on the
356
+ // deprecated path. It is empty until the layer has mounted, when the
357
+ // forwarder below does nothing.
358
+ const swipeBridgeRef = useRef(null);
359
+ const setSwipeBridge = useCallback(bridge => {
360
+ swipeBridgeRef.current = bridge;
361
+ }, []);
362
+ // Swipe actions given as `swipe`: the row hands the runtime its facts and its
363
+ // key bridge, and renders what it gets back. Whether the row is served, and
364
+ // everything it is served with, is the runtime's.
365
+ const swipeAttachment = swipe != null ? swipeHostOf(swipe)?.attach({
366
+ role,
367
+ isDisabled,
368
+ isDelegate,
369
+ isLinkRoot
370
+ }, setSwipeBridge) ?? null : null;
371
+
372
+ // The deprecated path, as released, for the deprecated `swipeActions` and
373
+ // `swipeBehavior`. `swipe` wins over them.
374
+ const deprecatedSwipe = swipe == null ? swipeActions : undefined;
375
+ const deprecatedLeading = deprecatedSwipe?.leading ?? [];
376
+ const deprecatedTrailing = deprecatedSwipe?.trailing ?? [];
377
+ const hasDeprecatedSwipe = servesSwipeActions({
378
+ swipe: undefined,
379
+ swipeActions: deprecatedSwipe,
363
380
  isDisabled,
364
381
  isDelegate,
365
382
  isLinkRoot,
366
383
  role
367
384
  });
368
- useDevWarning('Item', '`swipeBehavior="commit"` fires no entry on a side with two or more ' + 'entries. Give a committing side one entry, or use ' + '`swipeBehavior="reveal"`.', hasSwipe && swipeBehavior === 'commit' && (leadingSwipe.length > 1 || trailingSwipe.length > 1));
369
- const swipeRootRef = useRef(null);
370
- // Filled by the swipe layer once it has mounted; empty until then and on a
371
- // row without swipe actions, when the forwarders below do nothing.
372
- const swipeBridgeRef = useRef(null);
373
- const setSwipeBridge = useCallback(bridge => {
374
- swipeBridgeRef.current = bridge;
375
- }, []);
385
+ // The released warning for the released props.
386
+ useDevWarning('Item', '`swipeBehavior="commit"` fires no entry on a side with two or more ' + 'entries. Give a committing side one entry, or use ' + '`swipeBehavior="reveal"`.', hasDeprecatedSwipe && swipeBehavior === 'commit' && (deprecatedLeading.length > 1 || deprecatedTrailing.length > 1));
387
+ useDevWarning('Item', '`swipe` is set, so the deprecated `swipeActions` and `swipeBehavior` are ignored.', swipe != null && (swipeActions != null || swipeBehavior != null));
376
388
  const linkRootProps = isLinkRoot ? {
377
389
  // A disabled row keeps its place in the tree but goes nowhere.
378
390
  href: isDisabled ? undefined : href,
@@ -559,30 +571,16 @@ export function Item({
559
571
  }), trailing]
560
572
  });
561
573
  const mergedRef = useMergedRefs(ref, containerRef);
562
- const rootRef = useMergedRefs(isDelegate || isLinkRow ? mergedRef : ref, hasSwipe ? swipeRootRef : undefined);
574
+ const rootRef = isDelegate || isLinkRow ? mergedRef : ref;
563
575
 
564
- // The row's own primary, which the click the browser synthesizes after a
565
- // drag must not fire.
576
+ // The row's own primary. The click the browser synthesizes after a swipe
577
+ // never reaches it: the gesture system swallows it.
566
578
  const primaryOnClick = isDelegate ? containerOnClick : hasParentRole ? onClick : isInteractive ? handleContainerClick : undefined;
567
- const rootOnClick = hasSwipe && primaryOnClick != null ? event => {
568
- if (swipeBridgeRef.current?.shouldSuppressClick() === true) {
569
- return;
570
- }
571
- primaryOnClick(event);
572
- } : primaryOnClick;
573
-
574
- // The gesture's handlers, forwarded from the root into the bridge the swipe
575
- // layer fills: the root keeps the event model it had before the split — React's
576
- // own pointer, click-capture and key events on the row's root — while the
577
- // gesture itself lives in the lazily loaded layer. Until the layer has
578
- // mounted the bridge is empty and each forwarder does nothing.
579
- const swipeHandlers = hasSwipe ? {
580
- onPointerDown: event => swipeBridgeRef.current?.handlers.onPointerDown(event),
581
- onPointerMove: event => swipeBridgeRef.current?.handlers.onPointerMove(event),
582
- onPointerUp: event => swipeBridgeRef.current?.handlers.onPointerUp(event),
583
- onPointerCancel: event => swipeBridgeRef.current?.handlers.onPointerCancel(event),
584
- onClickCapture: event => swipeBridgeRef.current?.handlers.onClickCapture(event),
585
- onKeyDown: event => swipeBridgeRef.current?.handlers.onKeyDown(event)
579
+ // The root forwards its key events into the bridge the swipe layer fills, on
580
+ // both paths, as released. Until the layer has mounted the forwarder does
581
+ // nothing.
582
+ const swipeHandlers = swipeAttachment != null || hasDeprecatedSwipe ? {
583
+ onKeyDown: event => swipeBridgeRef.current?.onKeyDown(event)
586
584
  } : undefined;
587
585
  return /*#__PURE__*/_jsxs(Component, {
588
586
  ref: rootRef,
@@ -592,7 +590,7 @@ export function Item({
592
590
  ...(isDelegate ? {
593
591
  onPointerDown: chainEventHandlers(restProps.onPointerDown, delegatedOnPointerDown)
594
592
  } : hasOwnAction && !isDisabled ? {
595
- onPointerDown: chainEventHandlers(swipeHandlers?.onPointerDown ?? restProps.onPointerDown, pressOnRow)
593
+ onPointerDown: chainEventHandlers(restProps.onPointerDown, pressOnRow)
596
594
  } : null),
597
595
  ...(isDelegate ? {
598
596
  [PRESSABLE_CONTAINER_ATTRIBUTE]: 'true'
@@ -622,9 +620,9 @@ export function Item({
622
620
  isInteractive && rowPressLayerStyles.cell,
623
621
  // A highlighted row's fill is already the hover tone, so it shows
624
622
  // only its press. A selected row also shows its hover.
625
- isInteractive && hasStateFill && (isSelected ? rowPressLayerStyles.cellOnImage : rowPressLayerStyles.cellOnImagePressOnly), isLinkRoot && styles.linkRoot, isHighlighted && styles.highlighted, isSelected && styles.selected, isDisabled && !hasParentRole && styles.disabled, hasSwipe && styles.swipeRoot, xstyle), className, style),
623
+ isInteractive && hasStateFill && (isSelected ? rowPressLayerStyles.cellOnImage : rowPressLayerStyles.cellOnImagePressOnly), isLinkRoot && styles.linkRoot, isHighlighted && styles.highlighted, isSelected && styles.selected, isDisabled && !hasParentRole && styles.disabled, swipeAttachment?.rootStyle, hasDeprecatedSwipe && swipeHostStyles.root, xstyle), className, style),
626
624
  role: role,
627
- onClick: rootOnClick,
625
+ onClick: primaryOnClick,
628
626
  children: [/*#__PURE__*/_jsx(ItemTrailingContext, {
629
627
  value: null,
630
628
  children: /*#__PURE__*/_jsx(ItemDescriptionContext, {
@@ -650,19 +648,13 @@ export function Item({
650
648
  })
651
649
  })
652
650
  })
653
- }), hasSwipe &&
654
- /*#__PURE__*/
655
- // The panels: out-of-flow children of this root, so the DOM is the one
656
- // the row had before the split. Suspense and lazy add no element, and
657
- // the fallback is nothing — at rest a panel shows nothing either.
658
- _jsx(Suspense, {
651
+ }), swipeAttachment?.layer, hasDeprecatedSwipe && /*#__PURE__*/_jsx(Suspense, {
659
652
  fallback: null,
660
- children: /*#__PURE__*/_jsx(LazyItemSwipeLayer, {
661
- rootRef: swipeRootRef,
653
+ children: /*#__PURE__*/_jsx(DeprecatedSwipeLayer, {
662
654
  onBridge: setSwipeBridge,
663
- leading: leadingSwipe,
664
- trailing: trailingSwipe,
665
- behavior: swipeBehavior
655
+ leading: deprecatedLeading,
656
+ trailing: deprecatedTrailing,
657
+ behavior: swipeBehavior ?? 'reveal'
666
658
  })
667
659
  })]
668
660
  });
@@ -1,8 +1,10 @@
1
1
  /**
2
2
  * What a hold does. `'viewport'` and `'layer'` add one shield over the whole
3
3
  * viewport. `'layer'` also makes the layer's content inert and moves focus
4
- * out of it. `'surface'` shields only the layer's own box, and the page
5
- * around it stays live.
4
+ * out of it. Another layer inside it, such as the toast viewport that an open
5
+ * modal hosts, stays live under `'layer'`: it takes input, and it goes back
6
+ * above the shield. `'surface'` shields only the layer's own box, and the
7
+ * page around it stays live.
6
8
  */
7
9
  export type InputHoldScope = 'viewport' | 'layer' | 'surface';
8
10
  /** What ends a hold: a promise, or an animator handle (its `finished`). */
@@ -41,11 +43,11 @@ export declare function isInputShield(node: Node | null): boolean;
41
43
  export declare function isInHeldLayer(target: Node | null): boolean;
42
44
  /**
43
45
  * Whether the gesture host holds `target` away for the current pointer. A
44
- * dismissing layer holds every pointer. A presenting layer holds every
45
- * pointer but a mouse, which keeps today's behavior. The host asks this for
46
- * every touch. So this module imports nothing from gestures/, and a
47
- * root-entry component can hold its layer without gesture code. With nothing
48
- * held, this answers false.
46
+ * dismissing layer holds every pointer, except in another layer inside it. A
47
+ * presenting layer holds every pointer but a mouse, which keeps today's
48
+ * behavior. The host asks this for every touch. So this module imports
49
+ * nothing from gestures/, and a root-entry component can hold its layer
50
+ * without gesture code. With nothing held, this answers false.
49
51
  */
50
52
  export declare function holdsTouch(target: Node): boolean;
51
53
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"inputHold.d.ts","sourceRoot":"","sources":["../../src/Layer/inputHold.ts"],"names":[],"mappings":"AAkCA;;;;;GAKG;AACH,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,OAAO,GAAG,SAAS,CAAC;AAE9D,2EAA2E;AAC3E,MAAM,MAAM,YAAY,GACtB,WAAW,CAAC,OAAO,CAAC,GAAG;IAAC,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC,OAAO,CAAC,CAAA;CAAC,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aAAa,CAAC,MAAM,EAAE,IAAI,GAAG,IAAI,GAAG,OAAO,CAW1D;AAoBD;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,IAAI,GAAG,OAAO,CA4BhD;AAuPD;;;;;;GAMG;AACH,wBAAgB,SAAS,CACvB,KAAK,EAAE,OAAO,EACd,EAAC,KAAK,EAAE,KAAK,EAAE,KAAc,EAAC,EAAE,gBAAgB,GAC/C,MAAM,IAAI,CA4FZ"}
@@ -20,12 +20,17 @@ import { getDownPresses, getLastMousePoint, getLastPointerType, subscribeInput }
20
20
  import { isDocument, isElement, isHTMLElement, isNode } from "../utils/nodeType.js";
21
21
  import { observeMutations } from "../utils/sharedMutationObserver.js";
22
22
  import { realmValue, sharedKey } from "../utils/sharedRealm.js";
23
+ import { FOCUSABLE_SELECTOR } from "../hooks/focusableSelector.js";
24
+ import { hasLayerRootWithin, isLayerRoot } from "../privateAttributes/layerRoot.stylex.js";
25
+ import { notifyTopLayerEntry } from "./modalOutlet.js";
23
26
 
24
27
  /**
25
28
  * What a hold does. `'viewport'` and `'layer'` add one shield over the whole
26
29
  * viewport. `'layer'` also makes the layer's content inert and moves focus
27
- * out of it. `'surface'` shields only the layer's own box, and the page
28
- * around it stays live.
30
+ * out of it. Another layer inside it, such as the toast viewport that an open
31
+ * modal hosts, stays live under `'layer'`: it takes input, and it goes back
32
+ * above the shield. `'surface'` shields only the layer's own box, and the
33
+ * page around it stays live.
29
34
  */
30
35
 
31
36
  /** What ends a hold: a promise, or an animator handle (its `finished`). */
@@ -76,13 +81,27 @@ export function isInHeldLayer(target) {
76
81
  return false;
77
82
  }
78
83
 
84
+ /**
85
+ * Whether `target` is inside another layer that sits inside `layer`, such as
86
+ * the toast viewport an open modal hosts. A dismissal holds only its own
87
+ * layer's content.
88
+ */
89
+ function isInNestedLayer(target, layer) {
90
+ for (let node = target; node != null && node !== layer; node = parentAcrossShadow(node)) {
91
+ if (isElement(node) && isLayerRoot(node)) {
92
+ return true;
93
+ }
94
+ }
95
+ return false;
96
+ }
97
+
79
98
  /**
80
99
  * Whether the gesture host holds `target` away for the current pointer. A
81
- * dismissing layer holds every pointer. A presenting layer holds every
82
- * pointer but a mouse, which keeps today's behavior. The host asks this for
83
- * every touch. So this module imports nothing from gestures/, and a
84
- * root-entry component can hold its layer without gesture code. With nothing
85
- * held, this answers false.
100
+ * dismissing layer holds every pointer, except in another layer inside it. A
101
+ * presenting layer holds every pointer but a mouse, which keeps today's
102
+ * behavior. The host asks this for every touch. So this module imports
103
+ * nothing from gestures/, and a root-entry component can hold its layer
104
+ * without gesture code. With nothing held, this answers false.
86
105
  */
87
106
  export function holdsTouch(target) {
88
107
  const doc = isDocument(target) ? target : target.ownerDocument;
@@ -98,10 +117,13 @@ export function holdsTouch(target) {
98
117
  for (let node = target; node != null; node = parentAcrossShadow(node)) {
99
118
  const state = isElement(node) ? held.get(node) : undefined;
100
119
  if (state != null) {
101
- if (state.layer > 0) {
120
+ const isNested = state.layer > 0 && isInNestedLayer(target, node);
121
+ if (state.layer > 0 && !isNested) {
102
122
  return true;
103
123
  }
104
- isHeld = true;
124
+ if (!isNested || state.viewport > 0 || state.surface > 0) {
125
+ isHeld = true;
126
+ }
105
127
  }
106
128
  }
107
129
  return isHeld && !isMouseLast(doc);
@@ -385,6 +407,9 @@ export function holdInput(layer, {
385
407
  state.shield.style.pointerEvents = 'auto';
386
408
  if (state.layer === 1) {
387
409
  state.inertContent = makeContentInert(layer, state.shield);
410
+ // A layer inside this one goes back into the top layer, above the
411
+ // shield.
412
+ notifyTopLayerEntry();
388
413
  }
389
414
  }
390
415
  if (raisesFullShield) {
@@ -440,6 +465,9 @@ function holdKeptInside(layer, until) {
440
465
  const wasInert = layer.hasAttribute('inert');
441
466
  const previousAriaHidden = layer.getAttribute('aria-hidden');
442
467
  let isInert = false;
468
+ // A focus check queued before the release can run after it. A released hold
469
+ // changes the layer no more.
470
+ let isReleased = false;
443
471
  const stops = [];
444
472
  const hasFocusInside = () => {
445
473
  const focused = deepActiveElement(doc);
@@ -451,7 +479,7 @@ function holdKeptInside(layer, until) {
451
479
  }
452
480
  };
453
481
  const makeInert = () => {
454
- if (isInert) {
482
+ if (isInert || isReleased) {
455
483
  return;
456
484
  }
457
485
  isInert = true;
@@ -506,7 +534,6 @@ function holdKeptInside(layer, until) {
506
534
  attributeFilter: ['disabled', 'hidden', 'inert']
507
535
  }, makeInertIfFocusLeft));
508
536
  }
509
- let isReleased = false;
510
537
  const release = () => {
511
538
  if (isReleased) {
512
539
  return;
@@ -622,9 +649,10 @@ function createPressHold(doc) {
622
649
 
623
650
  /**
624
651
  * Whether a new press that lands on `target` is held. While a layer is held
625
- * over the viewport, a press anywhere is held. While a layer is held only
626
- * to its box (a `'surface'` hold), only a press on the layer is held. The
627
- * page around it stays live.
652
+ * over the viewport, a press anywhere is held, except one in another layer
653
+ * inside a dismissing layer. While a layer is held only to its box (a
654
+ * `'surface'` hold), only a press on the layer is held. The page around it
655
+ * stays live.
628
656
  */
629
657
  const holdsPressAt = target => {
630
658
  if (!holdsNewPress()) {
@@ -635,7 +663,7 @@ function createPressHold(doc) {
635
663
  if (state == null) {
636
664
  continue;
637
665
  }
638
- if (state.viewport > 0 || state.layer > 0) {
666
+ if (state.viewport > 0 || state.layer > 0 && !(isNode(target) && isInNestedLayer(target, layer))) {
639
667
  return true;
640
668
  }
641
669
  if (state.surface > 0 && isNode(target) && containsAlongFlatTree(layer, target)) {
@@ -871,21 +899,43 @@ function createPressHold(doc) {
871
899
  }
872
900
 
873
901
  /**
874
- * Makes the layer's content inert, except the shield, and moves focus out of
875
- * it. An element that turns inert while focused keeps its focus and its key
876
- * activation. Enter and Space still click such a button until the engine's
877
- * focus fixup runs, if it runs. Blurring it leaves focus on the document, as
878
- * that fixup does. The layer element itself stays live. An inert subtree is
879
- * no hit target, so the shield inside the layer still catches every hit.
902
+ * Whether `element` is a live region with nothing focusable in it. It takes
903
+ * no input, and inert would drop the words written to it, so a hold leaves it
904
+ * live.
905
+ */
906
+ function isTextLiveRegion(element) {
907
+ const live = element.getAttribute('aria-live');
908
+ const isLive = live != null ? live !== 'off' : ['status', 'alert', 'log'].includes(element.getAttribute('role') ?? '');
909
+ return isLive && !element.matches(FOCUSABLE_SELECTOR) && element.querySelector(FOCUSABLE_SELECTOR) == null;
910
+ }
911
+
912
+ /**
913
+ * Makes the layer's content inert and moves focus out of it. The shield, a
914
+ * child live region with nothing focusable, and another layer inside this one
915
+ * stay live. An element that holds another layer stays live, and its other
916
+ * children go inert, because inert content has no live descendant. An element
917
+ * that turns inert while focused keeps its focus and its key activation.
918
+ * Enter and Space still click such a button until the engine's focus fixup
919
+ * runs, if it runs. Blurring it leaves focus on the document, as that fixup
920
+ * does. The layer element itself stays live. An inert subtree is no hit
921
+ * target, so the shield inside the layer still catches every hit.
880
922
  */
881
923
  function makeContentInert(layer, shield) {
882
924
  const content = new Map();
883
- for (const child of layer.children) {
884
- if (child !== shield) {
925
+ const makeInertAround = (parent, isLayer) => {
926
+ for (const child of parent.children) {
927
+ if (child === shield || isLayerRoot(child) || isLayer && isTextLiveRegion(child)) {
928
+ continue;
929
+ }
930
+ if (hasLayerRootWithin(child)) {
931
+ makeInertAround(child, false);
932
+ continue;
933
+ }
885
934
  content.set(child, child.hasAttribute('inert'));
886
935
  child.setAttribute('inert', '');
887
936
  }
888
- }
937
+ };
938
+ makeInertAround(layer, true);
889
939
  const focused = deepActiveElement(layer.ownerDocument);
890
940
  if (isHTMLElement(focused) && [...content.keys()].some(child => containsAlongFlatTree(child, focused))) {
891
941
  focused.blur();
@@ -1 +1 @@
1
- {"version":3,"file":"Lightbox.d.ts","sourceRoot":"","sources":["../../src/Lightbox/Lightbox.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,EAWL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAsBf,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAgD5C;;GAEG;AACH,MAA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