@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.
- package/dist/AlertDialog/AlertDialog.d.ts +7 -4
- package/dist/AlertDialog/AlertDialog.d.ts.map +1 -1
- package/dist/AlertDialog/AlertDialog.js +41 -12
- package/dist/AlertDialog/useAlertMotion.d.ts +16 -0
- package/dist/AlertDialog/useAlertMotion.d.ts.map +1 -0
- package/dist/AlertDialog/useAlertMotion.js +277 -0
- package/dist/Button/Button.d.ts.map +1 -1
- package/dist/Button/Button.js +10 -3
- package/dist/CheckboxInput/CheckboxInput.d.ts.map +1 -1
- package/dist/CheckboxInput/CheckboxInput.js +5 -2
- package/dist/ComplexSelector/ComplexSelector.d.ts.map +1 -1
- package/dist/ComplexSelector/ComplexSelector.js +10 -4
- package/dist/ContextMenu/ContextMenu.d.ts.map +1 -1
- package/dist/ContextMenu/ContextMenu.js +20 -8
- package/dist/DropdownMenu/menuItemRoles.d.ts.map +1 -1
- package/dist/DropdownMenu/menuItemRoles.js +5 -2
- package/dist/Icon/Icon.js +4 -4
- package/dist/Icon/globalIconRegistry.d.ts.map +1 -1
- package/dist/Icon/globalIconRegistry.js +16 -6
- package/dist/Icon/useIcon.js +5 -5
- package/dist/Item/Item.d.ts +49 -67
- package/dist/Item/Item.d.ts.map +1 -1
- package/dist/Item/Item.js +91 -99
- package/dist/Layer/inputHold.d.ts +9 -7
- package/dist/Layer/inputHold.d.ts.map +1 -1
- package/dist/Layer/inputHold.js +74 -24
- package/dist/Lightbox/Lightbox.d.ts.map +1 -1
- package/dist/Lightbox/Lightbox.js +129 -8
- package/dist/Link/Link.d.ts.map +1 -1
- package/dist/Link/Link.js +6 -1
- package/dist/List/ListItem.d.ts +5 -7
- package/dist/List/ListItem.d.ts.map +1 -1
- package/dist/List/ListItem.js +11 -1
- package/dist/MetadataList/MetadataListItem.d.ts +7 -2
- package/dist/MetadataList/MetadataListItem.d.ts.map +1 -1
- package/dist/MetadataList/MetadataListItem.js +3 -1
- package/dist/MobileNav/MobileNav.d.ts.map +1 -1
- package/dist/MobileNav/MobileNav.js +32 -23
- package/dist/MultiSelector/MultiSelector.d.ts.map +1 -1
- package/dist/MultiSelector/MultiSelector.js +15 -7
- package/dist/Pagination/Pagination.d.ts +25 -2
- package/dist/Pagination/Pagination.d.ts.map +1 -1
- package/dist/Pagination/Pagination.js +87 -47
- package/dist/Popover/popoverSurfaceMotion.d.ts.map +1 -1
- package/dist/Popover/popoverSurfaceMotion.js +4 -9
- package/dist/Popover/usePopover.d.ts.map +1 -1
- package/dist/Popover/usePopover.js +4 -1
- package/dist/Selector/Selector.d.ts.map +1 -1
- package/dist/Selector/Selector.js +11 -5
- package/dist/Slider/Slider.d.ts.map +1 -1
- package/dist/Slider/Slider.js +15 -4
- package/dist/Swipe/SwipeActionsLayer.d.ts +31 -0
- package/dist/Swipe/SwipeActionsLayer.d.ts.map +1 -0
- package/dist/Swipe/SwipeActionsLayer.js +358 -0
- package/dist/Swipe/createSwipe.d.ts +26 -0
- package/dist/Swipe/createSwipe.d.ts.map +1 -0
- package/dist/Swipe/createSwipe.js +97 -0
- package/dist/Swipe/index.d.ts +3 -0
- package/dist/Swipe/index.d.ts.map +1 -0
- package/dist/Swipe/index.js +5 -0
- package/dist/Swipe/swipeHost.d.ts +208 -0
- package/dist/Swipe/swipeHost.d.ts.map +1 -0
- package/dist/Swipe/swipeHost.js +122 -0
- package/dist/Swipe/swipeHost.stylex.d.ts +21 -0
- package/dist/Swipe/swipeHost.stylex.d.ts.map +1 -0
- package/dist/Swipe/swipeHost.stylex.js +27 -0
- package/dist/Swipe/useSwipeAction.d.ts +220 -0
- package/dist/Swipe/useSwipeAction.d.ts.map +1 -0
- package/dist/Swipe/useSwipeAction.js +1122 -0
- package/dist/Table/TableCell.d.ts.map +1 -1
- package/dist/Table/TableCell.js +2 -2
- package/dist/Table/TableHeaderCell.d.ts.map +1 -1
- package/dist/Table/TableHeaderCell.js +25 -3
- package/dist/Table/plugins/selection/useTableSelection.d.ts.map +1 -1
- package/dist/Table/plugins/selection/useTableSelection.js +20 -2
- package/dist/Table/tableContextMenu.d.ts +6 -0
- package/dist/Table/tableContextMenu.d.ts.map +1 -1
- package/dist/Table/tableContextMenu.js +10 -1
- package/dist/Toast/Toast.d.ts.map +1 -1
- package/dist/Toast/Toast.js +10 -5
- package/dist/Tokenizer/Tokenizer.d.ts.map +1 -1
- package/dist/Tokenizer/Tokenizer.js +6 -1
- package/dist/Tooltip/useTooltip.d.ts.map +1 -1
- package/dist/Tooltip/useTooltip.js +1 -1
- package/dist/TopNav/TopNav.d.ts.map +1 -1
- package/dist/TopNav/TopNav.js +6 -1
- package/dist/astryx.css +33 -18
- package/dist/dragToSnapPoints/compositorSettle.d.ts +38 -0
- package/dist/dragToSnapPoints/compositorSettle.d.ts.map +1 -0
- package/dist/dragToSnapPoints/compositorSettle.js +140 -0
- package/dist/dragToSnapPoints/createDragToSnapPoints.d.ts +29 -5
- package/dist/dragToSnapPoints/createDragToSnapPoints.d.ts.map +1 -1
- package/dist/dragToSnapPoints/createDragToSnapPoints.js +123 -7
- package/dist/hooks/useHotkeys.d.ts +1 -1
- package/dist/i18n/generated-locales/en.generated.d.ts.map +1 -1
- package/dist/i18n/generated-locales/en.generated.js +2 -0
- package/dist/i18n/generated-locales/pseudo.generated.d.ts.map +1 -1
- package/dist/i18n/generated-locales/pseudo.generated.js +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/motion/themeTiming.d.ts +11 -4
- package/dist/motion/themeTiming.d.ts.map +1 -1
- package/dist/motion/themeTiming.js +14 -4
- package/dist/motion/uikit/swipeActions.d.ts +148 -0
- package/dist/motion/uikit/swipeActions.d.ts.map +1 -0
- package/dist/motion/uikit/swipeActions.js +150 -0
- package/dist/privateAttributes/layerRoot.stylex.d.ts +2 -0
- package/dist/privateAttributes/layerRoot.stylex.d.ts.map +1 -1
- package/dist/privateAttributes/layerRoot.stylex.js +10 -3
- package/dist/privateAttributes/pressHeld.stylex.d.ts +5 -0
- package/dist/privateAttributes/pressHeld.stylex.d.ts.map +1 -0
- package/dist/privateAttributes/pressHeld.stylex.js +31 -0
- package/dist/reset.font.a11y.chromium.spec.d.ts.map +1 -0
- package/dist/theme/defineTheme.d.ts +18 -1
- package/dist/theme/defineTheme.d.ts.map +1 -1
- package/dist/theme/defineTheme.js +17 -0
- package/dist/theme/generateThemeRules.d.ts.map +1 -1
- package/dist/theme/generateThemeRules.js +188 -83
- package/dist/theme/index.d.ts +1 -1
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/mergeComponents.d.ts +13 -5
- package/dist/theme/mergeComponents.d.ts.map +1 -1
- package/dist/theme/mergeComponents.js +74 -6
- package/dist/theme/resolveThemeValues.js +2 -2
- package/dist/theme/themeAdaptations.d.ts.map +1 -1
- package/dist/theme/themeAdaptations.js +4 -1
- package/dist/utils/pressFeedback.d.ts.map +1 -1
- package/dist/utils/pressFeedback.js +4 -1
- package/locales/en.json +8 -0
- package/locales/pseudo.json +6 -0
- package/package.json +10 -5
- package/src/AlertDialog/AlertDialog.doc.mjs +3 -3
- package/src/AlertDialog/AlertDialog.tsx +49 -11
- package/src/AlertDialog/useAlertMotion.ts +313 -0
- package/src/Button/Button.tsx +16 -5
- package/src/Chat/useChatDictation.doc.mjs +246 -0
- package/src/CheckboxInput/CheckboxInput.tsx +5 -1
- package/src/ComplexSelector/ComplexSelector.tsx +20 -8
- package/src/ContextMenu/ContextMenu.tsx +22 -12
- package/src/DropdownMenu/menuItemRoles.ts +9 -6
- package/src/Icon/Icon.tsx +4 -4
- package/src/Icon/globalIconRegistry.tsx +27 -15
- package/src/Icon/useIcon.ts +5 -5
- package/src/Item/Item.doc.mjs +8 -2
- package/src/Item/Item.tsx +143 -158
- package/src/Layer/inputHold.ts +95 -24
- package/src/Lightbox/Lightbox.tsx +200 -11
- package/src/Link/Link.tsx +14 -6
- package/src/List/ListItem.doc.mjs +21 -6
- package/src/List/ListItem.tsx +16 -7
- package/src/MetadataList/MetadataListItem.doc.mjs +36 -1
- package/src/MetadataList/MetadataListItem.tsx +7 -2
- package/src/MobileNav/MobileNav.tsx +45 -28
- package/src/MultiSelector/MultiSelector.tsx +28 -11
- package/src/Pagination/Pagination.doc.mjs +39 -3
- package/src/Pagination/Pagination.tsx +122 -55
- package/src/Popover/popoverSurfaceMotion.ts +4 -13
- package/src/Popover/usePopover.tsx +7 -1
- package/src/Selector/Selector.tsx +21 -9
- package/src/Slider/Slider.tsx +26 -3
- package/src/Swipe/SwipeActionsLayer.tsx +438 -0
- package/src/Swipe/createSwipe.doc.mjs +118 -0
- package/src/Swipe/createSwipe.ts +112 -0
- package/src/Swipe/index.ts +6 -0
- package/src/Swipe/swipeHost.stylex.ts +27 -0
- package/src/Swipe/swipeHost.ts +255 -0
- package/src/Swipe/useSwipeAction.ts +1414 -0
- package/src/Table/Table.doc.mjs +1 -1
- package/src/Table/TableCell.tsx +5 -4
- package/src/Table/TableHeaderCell.tsx +31 -3
- package/src/Table/plugins/selection/useTableSelection.tsx +18 -2
- package/src/Table/tableContextMenu.tsx +15 -1
- package/src/Toast/Toast.tsx +28 -5
- package/src/Tokenizer/Tokenizer.tsx +18 -5
- package/src/Tooltip/useTooltip.tsx +2 -3
- package/src/TopNav/TopNav.tsx +17 -1
- package/src/dragToSnapPoints/compositorSettle.ts +175 -0
- package/src/dragToSnapPoints/createDragToSnapPoints.ts +146 -11
- package/src/hooks/useHotkeys.doc.mjs +4 -4
- package/src/hooks/useHotkeys.ts +1 -1
- package/src/i18n/generated-locales/en.generated.ts +2 -0
- package/src/i18n/generated-locales/pseudo.generated.ts +2 -0
- package/src/index.ts +1 -0
- package/src/motion/MEASUREMENTS.md +16 -0
- package/src/motion/README.md +1 -0
- package/src/motion/themeTiming.ts +20 -4
- package/src/motion/uikit/swipeActions.ts +142 -0
- package/src/privateAttributes/layerRoot.stylex.ts +10 -3
- package/src/privateAttributes/pressHeld.stylex.ts +31 -0
- package/src/reset.css +7 -0
- package/src/theme/defineTheme.ts +22 -1
- package/src/theme/generateThemeRules.ts +274 -124
- package/src/theme/index.ts +1 -0
- package/src/theme/mergeComponents.ts +86 -10
- package/src/theme/resolveThemeValues.ts +2 -2
- package/src/theme/syntax/useSyntaxTheme.doc.mjs +95 -0
- package/src/theme/themeAdaptations.ts +3 -1
- package/src/utils/pressFeedback.ts +8 -1
- package/dist/Item/ItemSwipeLayer.d.ts +0 -51
- package/dist/Item/ItemSwipeLayer.d.ts.map +0 -1
- package/dist/Item/ItemSwipeLayer.js +0 -282
- package/dist/Item/useSwipeAction.d.ts +0 -77
- package/dist/Item/useSwipeAction.d.ts.map +0 -1
- package/dist/Item/useSwipeAction.js +0 -551
- package/src/Item/ItemSwipeLayer.tsx +0 -400
- 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
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
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/
|
|
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
|
-
|
|
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
|
-
*
|
|
72
|
-
*
|
|
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
|
-
/**
|
|
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
|
-
*
|
|
98
|
-
* panel's buttons may live inside the
|
|
99
|
-
* qualifies too; `option`, the `menuitem*`
|
|
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
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
* List/ListItem.tsx raises such a row, so its touch band stays above
|
|
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
|
|
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
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
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
|
-
|
|
369
|
-
|
|
370
|
-
|
|
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 =
|
|
574
|
+
const rootRef = isDelegate || isLinkRow ? mergedRef : ref;
|
|
563
575
|
|
|
564
|
-
// The row's own primary
|
|
565
|
-
//
|
|
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
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
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(
|
|
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,
|
|
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:
|
|
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
|
-
}),
|
|
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(
|
|
661
|
-
rootRef: swipeRootRef,
|
|
653
|
+
children: /*#__PURE__*/_jsx(DeprecatedSwipeLayer, {
|
|
662
654
|
onBridge: setSwipeBridge,
|
|
663
|
-
leading:
|
|
664
|
-
trailing:
|
|
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.
|
|
5
|
-
*
|
|
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
|
|
45
|
-
* pointer but a mouse, which keeps today's
|
|
46
|
-
* every touch. So this module imports
|
|
47
|
-
* root-entry component can hold its layer
|
|
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":"
|
|
1
|
+
{"version":3,"file":"inputHold.d.ts","sourceRoot":"","sources":["../../src/Layer/inputHold.ts"],"names":[],"mappings":"AAwCA;;;;;;;GAOG;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,CAAC;AAEnE,MAAM,WAAW,gBAAgB;IAC/B,uCAAuC;IACvC,KAAK,EAAE,YAAY,CAAC;IACpB;;;OAGG;IACH,KAAK,EAAE,cAAc,CAAC;IACtB;;;;;;;;OAQG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,aAAa,CAAC;CAChC;AAqDD;;;GAGG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,OAAO,CAExD;AAED;;;;GAIG;AACH,wBAAgB,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"}
|
package/dist/Layer/inputHold.js
CHANGED
|
@@ -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.
|
|
28
|
-
*
|
|
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
|
|
82
|
-
* pointer but a mouse, which keeps today's
|
|
83
|
-
* every touch. So this module imports
|
|
84
|
-
* root-entry component can hold its layer
|
|
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
|
-
|
|
120
|
+
const isNested = state.layer > 0 && isInNestedLayer(target, node);
|
|
121
|
+
if (state.layer > 0 && !isNested) {
|
|
102
122
|
return true;
|
|
103
123
|
}
|
|
104
|
-
|
|
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
|
|
626
|
-
*
|
|
627
|
-
* page around it
|
|
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
|
-
*
|
|
875
|
-
*
|
|
876
|
-
*
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
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
|
-
|
|
884
|
-
|
|
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,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,OAAO,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,uBAAuB;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,gEAAgE;IAChE,GAAG,EAAE,MAAM,CAAC;IACZ,iDAAiD;IACjD,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,iBAAiB,CAAC;CAC1B;AAED,MAAM,WAAW,aAAc,SAAQ,SAAS,CAAC,iBAAiB,CAAC;IACjE,+CAA+C;IAC/C,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IACnC;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,YAAY,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACxC;;;OAGG;IACH,KAAK,EAAE,aAAa,GAAG,aAAa,EAAE,CAAC;IACvC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC;;;;;;;;;OASG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;
|
|
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,MAAM,MAAM,iBAAiB,GAAG,OAAO,GAAG,OAAO,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,uBAAuB;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,gEAAgE;IAChE,GAAG,EAAE,MAAM,CAAC;IACZ,iDAAiD;IACjD,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,iBAAiB,CAAC;CAC1B;AAED,MAAM,WAAW,aAAc,SAAQ,SAAS,CAAC,iBAAiB,CAAC;IACjE,+CAA+C;IAC/C,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IACnC;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;;OAGG;IACH,YAAY,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACxC;;;OAGG;IACH,KAAK,EAAE,aAAa,GAAG,aAAa,EAAE,CAAC;IACvC;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC;;;;;;;;;OASG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAwdD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,wBAAgB,QAAQ,CAAC,EACvB,MAAM,EACN,YAAY,EACZ,KAAK,EACL,KAAK,EAAE,eAAe,EACtB,YAAgB,EAChB,aAAa,EACb,OAAe,EACf,WAAmB,EACnB,MAAM,EACN,SAAS,EACT,KAAK,EACL,GAAG,EACH,OAAO,EAAE,WAAW,EACpB,SAAS,EAAE,aAAa,EACxB,GAAG,KAAK,EACT,EAAE,aAAa,sCA8gDf;yBA9hDe,QAAQ"}
|