@astryxdesign/core 0.7.5 → 0.7.6-canary.0ef60dd
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 +1 -1
- package/dist/AlertDialog/AlertDialog.d.ts.map +1 -1
- package/dist/AlertDialog/AlertDialog.js +5 -5
- package/dist/Avatar/Avatar.d.ts.map +1 -1
- package/dist/Avatar/Avatar.js +12 -3
- package/dist/Badge/Badge.d.ts.map +1 -1
- package/dist/Badge/Badge.js +7 -1
- package/dist/BottomSheet/BottomSheet.js +1 -1
- package/dist/BottomSheet/BottomSheetPanel.d.ts.map +1 -1
- package/dist/BottomSheet/BottomSheetPanel.js +2 -1
- package/dist/BottomSheet/useSheetGestures.d.ts +12 -0
- package/dist/BottomSheet/useSheetGestures.d.ts.map +1 -1
- package/dist/BottomSheet/useSheetGestures.js +30 -3
- package/dist/Button/Button.js +4 -4
- package/dist/CheckboxInput/CheckboxInput.d.ts.map +1 -1
- package/dist/CheckboxInput/CheckboxInput.js +6 -5
- package/dist/ClickableCard/ClickableCard.d.ts.map +1 -1
- package/dist/ClickableCard/ClickableCard.js +37 -4
- package/dist/DateInput/DateInput.d.ts.map +1 -1
- package/dist/DateInput/DateInput.js +12 -4
- package/dist/DateInput/MonthScroller.d.ts.map +1 -1
- package/dist/DateInput/MonthScroller.js +101 -15
- package/dist/DateInput/TouchDateField.d.ts.map +1 -1
- package/dist/DateInput/TouchDateField.js +8 -3
- package/dist/DateRangeInput/DateRangeInput.d.ts.map +1 -1
- package/dist/DateRangeInput/DateRangeInput.js +1 -1
- package/dist/DateTimeInput/DateTimeInput.d.ts +5 -2
- package/dist/DateTimeInput/DateTimeInput.d.ts.map +1 -1
- package/dist/DateTimeInput/DateTimeInput.js +23 -12
- package/dist/DateTimeInput/NativeTimeSegment.d.ts.map +1 -1
- package/dist/DateTimeInput/NativeTimeSegment.js +5 -4
- package/dist/DateTimeInput/TouchDateTimeField.d.ts.map +1 -1
- package/dist/DateTimeInput/TouchDateTimeField.js +4 -3
- package/dist/Dialog/Dialog.d.ts.map +1 -1
- package/dist/Dialog/Dialog.js +34 -9
- package/dist/Dialog/DialogHeader.d.ts.map +1 -1
- package/dist/Dialog/DialogHeader.js +5 -4
- package/dist/Divider/Divider.d.ts.map +1 -1
- package/dist/Divider/Divider.js +2 -1
- package/dist/Drawer/Drawer.d.ts +1 -0
- package/dist/Drawer/Drawer.d.ts.map +1 -1
- package/dist/Drawer/Drawer.js +7 -2
- package/dist/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/dist/DropdownMenu/DropdownMenu.js +7 -3
- package/dist/DropdownMenu/MenuBottomSheetActionList.d.ts.map +1 -1
- package/dist/DropdownMenu/MenuBottomSheetActionList.js +6 -5
- package/dist/DropdownMenu/lazyMenuBottomSheet.d.ts +20 -2
- package/dist/DropdownMenu/lazyMenuBottomSheet.d.ts.map +1 -1
- package/dist/DropdownMenu/lazyMenuBottomSheet.js +31 -3
- package/dist/DropdownMenu/renderDropdownItems.d.ts.map +1 -1
- package/dist/DropdownMenu/renderDropdownItems.js +21 -16
- package/dist/EmptyState/EmptyState.d.ts.map +1 -1
- package/dist/EmptyState/EmptyState.js +2 -1
- package/dist/Field/FieldLabel.d.ts +1 -1
- package/dist/Field/FieldLabel.d.ts.map +1 -1
- package/dist/Field/FieldLabel.js +4 -4
- package/dist/Field/InputClearButton.js +3 -3
- package/dist/Field/PanelSearchInput.js +2 -2
- package/dist/FieldStatus/FieldStatus.js +2 -2
- package/dist/FileInput/FileInput.d.ts.map +1 -1
- package/dist/FileInput/FileInput.js +7 -1
- package/dist/Heading/Heading.js +1 -1
- package/dist/Icon/Icon.js +1 -1
- package/dist/Indicator/CheckIndicator.d.ts.map +1 -1
- package/dist/Indicator/CheckIndicator.js +2 -1
- package/dist/Indicator/CheckboxIndicator.d.ts.map +1 -1
- package/dist/Indicator/CheckboxIndicator.js +3 -1
- package/dist/Indicator/RadioIndicator.d.ts.map +1 -1
- package/dist/Indicator/RadioIndicator.js +3 -1
- package/dist/Item/Item.d.ts.map +1 -1
- package/dist/Item/Item.js +2 -1
- package/dist/Item/ItemSwipeLayer.js +1 -1
- package/dist/Layer/popoverOperations.d.ts +27 -0
- package/dist/Layer/popoverOperations.d.ts.map +1 -0
- package/dist/Layer/popoverOperations.js +159 -0
- package/dist/Layer/useLayer.d.ts +1 -1
- package/dist/Layer/useLayer.d.ts.map +1 -1
- package/dist/Layer/useLayer.js +93 -59
- package/dist/Layout/Layout.js +1 -1
- package/dist/Layout/LayoutContent.js +1 -1
- package/dist/Layout/LayoutFooter.js +1 -1
- package/dist/Layout/LayoutHeader.js +1 -1
- package/dist/Lightbox/Lightbox.d.ts.map +1 -1
- package/dist/Lightbox/Lightbox.js +5 -0
- package/dist/Lightbox/LightboxViewport.a11y.browser.spec.js +5 -4
- package/dist/List/List.js +1 -1
- package/dist/List/ListItem.js +3 -3
- package/dist/MobileNav/MobileNav.d.ts.map +1 -1
- package/dist/MobileNav/MobileNav.js +7 -2
- package/dist/MultiSelector/CreateRow.a11y.chromium.spec.js +7 -6
- package/dist/MultiSelector/MultiSelector.d.ts +1 -1
- package/dist/MultiSelector/MultiSelector.d.ts.map +1 -1
- package/dist/MultiSelector/MultiSelector.js +26 -10
- package/dist/NumberInput/NumberInput.d.ts +3 -1
- package/dist/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/NumberInput/NumberInput.js +3 -3
- package/dist/NumberInput/numberParser.d.ts +3 -0
- package/dist/NumberInput/numberParser.d.ts.map +1 -1
- package/dist/NumberInput/numberParser.js +7 -44
- package/dist/ProgressBar/ProgressBar.d.ts.map +1 -1
- package/dist/ProgressBar/ProgressBar.js +16 -12
- package/dist/Resizable/useResizable.d.ts.map +1 -1
- package/dist/Resizable/useResizable.js +28 -2
- package/dist/SegmentedControl/SegmentedControlItem.d.ts.map +1 -1
- package/dist/SegmentedControl/SegmentedControlItem.js +4 -1
- package/dist/Selector/useSelectorPresentation.d.ts +8 -1
- package/dist/Selector/useSelectorPresentation.d.ts.map +1 -1
- package/dist/Selector/useSelectorPresentation.js +20 -4
- package/dist/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/Skeleton/Skeleton.js +1 -1
- package/dist/Slider/Slider.d.ts.map +1 -1
- package/dist/Slider/Slider.js +10 -2
- package/dist/Spinner/Spinner.d.ts.map +1 -1
- package/dist/Spinner/Spinner.js +3 -3
- package/dist/Stack/Stack.js +1 -1
- package/dist/Stack/StackItem.js +1 -1
- package/dist/TabList/TabList.d.ts.map +1 -1
- package/dist/TabList/TabList.js +16 -1
- package/dist/Table/plugins/columnResize/useTableColumnResize.d.ts.map +1 -1
- package/dist/Table/plugins/columnResize/useTableColumnResize.js +9 -1
- package/dist/Text/Text.js +1 -1
- package/dist/Text/useTruncation.d.ts.map +1 -1
- package/dist/Text/useTruncation.js +23 -5
- package/dist/TextArea/TextArea.d.ts +1 -1
- package/dist/TextArea/TextArea.d.ts.map +1 -1
- package/dist/TextArea/TextArea.js +13 -2
- package/dist/TextInput/TextInput.d.ts.map +1 -1
- package/dist/TextInput/TextInput.js +3 -3
- package/dist/TimeInput/TimeInput.d.ts +6 -2
- package/dist/TimeInput/TimeInput.d.ts.map +1 -1
- package/dist/TimeInput/TimeInput.js +21 -14
- package/dist/TimeInput/TouchTimeField.d.ts.map +1 -1
- package/dist/TimeInput/TouchTimeField.js +5 -4
- package/dist/Timestamp/Timestamp.d.ts.map +1 -1
- package/dist/Timestamp/Timestamp.js +2 -2
- package/dist/Timestamp/TimestampHoverCard.js +4 -4
- package/dist/Toast/Toast.d.ts.map +1 -1
- package/dist/Toast/Toast.js +60 -20
- package/dist/Toast/ToastViewport.d.ts.map +1 -1
- package/dist/Toast/ToastViewport.js +82 -51
- package/dist/Tokenizer/Tokenizer.d.ts.map +1 -1
- package/dist/Tokenizer/Tokenizer.js +13 -2
- package/dist/Tokenizer/TokenizerBottomSheet.js +3 -3
- package/dist/Toolbar/Toolbar.d.ts.map +1 -1
- package/dist/Toolbar/Toolbar.js +2 -1
- package/dist/TopNav/TopNavMegaMenu.d.ts.map +1 -1
- package/dist/TopNav/TopNavMegaMenu.js +3 -0
- package/dist/TopNav/TopNavMenu.d.ts.map +1 -1
- package/dist/TopNav/TopNavMenu.js +1 -0
- package/dist/Typeahead/Typeahead.d.ts +1 -1
- package/dist/Typeahead/Typeahead.d.ts.map +1 -1
- package/dist/Typeahead/Typeahead.js +9 -1
- package/dist/astryx.css +20 -4
- package/dist/gestures/GestureArena.d.ts +6 -0
- package/dist/gestures/GestureArena.d.ts.map +1 -1
- package/dist/gestures/GestureArena.js +39 -0
- package/dist/gestures/GestureHost.d.ts +352 -0
- package/dist/gestures/GestureHost.d.ts.map +1 -0
- package/dist/gestures/GestureHost.js +1773 -0
- package/dist/gestures/GestureRecognizer.d.ts +10 -0
- package/dist/gestures/GestureRecognizer.d.ts.map +1 -1
- package/dist/gestures/GestureRecognizer.js +16 -0
- package/dist/gestures/LongPressGestureRecognizer.d.ts +1 -0
- package/dist/gestures/LongPressGestureRecognizer.d.ts.map +1 -1
- package/dist/gestures/LongPressGestureRecognizer.js +3 -0
- package/dist/gestures/PanGestureRecognizer.d.ts +1 -0
- package/dist/gestures/PanGestureRecognizer.d.ts.map +1 -1
- package/dist/gestures/PanGestureRecognizer.js +3 -0
- package/dist/gestures/PinchGestureRecognizer.d.ts +31 -0
- package/dist/gestures/PinchGestureRecognizer.d.ts.map +1 -0
- package/dist/gestures/PinchGestureRecognizer.js +128 -0
- package/dist/gestures/ScreenEdgePanGestureRecognizer.d.ts +71 -0
- package/dist/gestures/ScreenEdgePanGestureRecognizer.d.ts.map +1 -0
- package/dist/gestures/ScreenEdgePanGestureRecognizer.js +223 -0
- package/dist/gestures/SwipeGestureRecognizer.d.ts +37 -0
- package/dist/gestures/SwipeGestureRecognizer.d.ts.map +1 -0
- package/dist/gestures/SwipeGestureRecognizer.js +148 -0
- package/dist/gestures/TapGestureRecognizer.d.ts +1 -0
- package/dist/gestures/TapGestureRecognizer.d.ts.map +1 -1
- package/dist/gestures/TapGestureRecognizer.js +3 -0
- package/dist/gestures/VelocityTracker.d.ts +6 -2
- package/dist/gestures/VelocityTracker.d.ts.map +1 -1
- package/dist/gestures/VelocityTracker.js +7 -3
- package/dist/gestures/haptics.d.ts +65 -0
- package/dist/gestures/haptics.d.ts.map +1 -0
- package/dist/gestures/haptics.js +182 -0
- package/dist/gestures/nativeScroll.d.ts +42 -0
- package/dist/gestures/nativeScroll.d.ts.map +1 -0
- package/dist/gestures/nativeScroll.js +228 -0
- package/dist/gestures/touchAction.d.ts +60 -0
- package/dist/gestures/touchAction.d.ts.map +1 -0
- package/dist/gestures/touchAction.js +157 -0
- package/dist/gestures/touchActionRule.d.ts +34 -0
- package/dist/gestures/touchActionRule.d.ts.map +1 -0
- package/dist/gestures/touchActionRule.js +140 -0
- package/dist/gestures/types.d.ts +18 -7
- package/dist/gestures/types.d.ts.map +1 -1
- package/dist/gestures/types.js +22 -2
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/modalAnnounce.d.ts.map +1 -1
- package/dist/hooks/modalAnnounce.js +107 -61
- package/dist/hooks/useAdaptivePresentation.d.ts.map +1 -1
- package/dist/hooks/useAdaptivePresentation.js +4 -1
- package/dist/hooks/useAnnounce.d.ts +101 -42
- package/dist/hooks/useAnnounce.d.ts.map +1 -1
- package/dist/hooks/useAnnounce.js +161 -75
- package/dist/hooks/useAnnounceRenderedText.d.ts +11 -3
- package/dist/hooks/useAnnounceRenderedText.d.ts.map +1 -1
- package/dist/hooks/useAnnounceRenderedText.js +5 -3
- package/dist/hooks/useBusyAnnouncement.d.ts.map +1 -1
- package/dist/hooks/useBusyAnnouncement.js +6 -12
- package/dist/hooks/useMenuHover.d.ts.map +1 -1
- package/dist/hooks/useMenuHover.js +12 -1
- package/dist/i18n/generated-locales/en.generated.d.ts.map +1 -1
- package/dist/i18n/generated-locales/en.generated.js +5 -0
- package/dist/i18n/generated-locales/pseudo.generated.d.ts.map +1 -1
- package/dist/i18n/generated-locales/pseudo.generated.js +5 -0
- package/dist/motion/animator.d.ts +7 -1
- package/dist/motion/animator.d.ts.map +1 -1
- package/dist/motion/animator.js +119 -27
- package/dist/theme/defineTheme.d.ts +19 -5
- package/dist/theme/defineTheme.d.ts.map +1 -1
- package/dist/theme/defineTheme.js +64 -4
- package/dist/theme/domainTokens/domainTokenDefaults.d.ts +3 -0
- package/dist/theme/domainTokens/domainTokenDefaults.d.ts.map +1 -0
- package/dist/theme/domainTokens/domainTokenDefaults.js +19 -0
- package/dist/theme/domainTokens/index.d.ts +5 -4
- package/dist/theme/domainTokens/index.d.ts.map +1 -1
- package/dist/theme/domainTokens/index.js +5 -9
- package/dist/theme/index.d.ts +1 -0
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/motionKnobs.d.ts +56 -0
- package/dist/theme/motionKnobs.d.ts.map +1 -0
- package/dist/theme/motionKnobs.js +48 -0
- package/dist/theme/resolveThemeValues.d.ts +11 -4
- package/dist/theme/resolveThemeValues.d.ts.map +1 -1
- package/dist/theme/resolveThemeValues.js +40 -4
- package/dist/theme/themeAdaptations.d.ts +7 -3
- package/dist/theme/themeAdaptations.d.ts.map +1 -1
- package/dist/theme/themeAdaptations.js +36 -7
- package/dist/theme/themeMotion.d.ts +96 -0
- package/dist/theme/themeMotion.d.ts.map +1 -0
- package/dist/theme/themeMotion.js +177 -0
- package/dist/theme/tokenReferences.d.ts +31 -0
- package/dist/theme/tokenReferences.d.ts.map +1 -0
- package/dist/theme/tokenReferences.js +132 -0
- package/dist/theme/tokens.d.ts +1 -0
- package/dist/theme/tokens.d.ts.map +1 -1
- package/dist/theme/tokens.js +9 -129
- package/dist/theme/tokens.stylex.d.ts +12 -0
- package/dist/theme/tokens.stylex.d.ts.map +1 -1
- package/dist/theme/tokens.stylex.js +12 -0
- package/dist/utils/focusReturn.d.ts +17 -1
- package/dist/utils/focusReturn.d.ts.map +1 -1
- package/dist/utils/focusReturn.js +11 -4
- package/dist/utils/getNodeText.d.ts +8 -0
- package/dist/utils/getNodeText.d.ts.map +1 -0
- package/dist/utils/getNodeText.js +37 -0
- package/dist/utils/interactionModality.d.ts +11 -2
- package/dist/utils/interactionModality.d.ts.map +1 -1
- package/dist/utils/interactionModality.js +58 -5
- package/dist/utils/interactionOverlay.stylex.d.ts.map +1 -1
- package/dist/utils/interactionOverlay.stylex.js +17 -8
- package/dist/utils/plainDate.d.ts +2 -0
- package/dist/utils/plainDate.d.ts.map +1 -1
- package/dist/utils/plainDate.js +46 -3
- package/dist/utils/presentation.d.ts +50 -0
- package/dist/utils/presentation.d.ts.map +1 -0
- package/dist/utils/presentation.js +125 -0
- package/dist/utils/pressFeedback.d.ts.map +1 -1
- package/dist/utils/pressFeedback.js +20 -1
- package/dist/utils/primaryClick.d.ts +11 -0
- package/dist/utils/primaryClick.d.ts.map +1 -0
- package/dist/utils/primaryClick.js +25 -0
- package/dist/utils/timeFormat.d.ts +47 -0
- package/dist/utils/timeFormat.d.ts.map +1 -0
- package/dist/utils/timeFormat.js +240 -0
- package/dist/utils/touchPresentation.d.ts.map +1 -1
- package/dist/utils/touchPresentation.js +5 -3
- package/dist/utils/touchPresentation.stylex.d.ts +15 -0
- package/dist/utils/touchPresentation.stylex.d.ts.map +1 -0
- package/dist/utils/touchPresentation.stylex.js +33 -0
- package/dist/utils/unicodeDigits.d.ts +20 -0
- package/dist/utils/unicodeDigits.d.ts.map +1 -0
- package/dist/utils/unicodeDigits.js +70 -0
- package/locales/en.json +23 -3
- package/locales/pseudo.json +15 -0
- package/package.json +5 -4
- package/src/AlertDialog/AlertDialog.tsx +6 -5
- package/src/AlertDialog/__tests__/AlertDialog.a11y.chromium.spec.ts +18 -6
- package/src/Avatar/Avatar.spec.md +22 -22
- package/src/Avatar/Avatar.tsx +18 -1
- package/src/Avatar/__tests__/AvatarForcedColors.a11y.chromium.spec.ts +126 -0
- package/src/Badge/Badge.doc.mjs +1 -1
- package/src/Badge/Badge.tsx +19 -2
- package/src/Badge/__tests__/BadgeLargerText.a11y.chromium.spec.ts +260 -0
- package/src/BottomSheet/BottomSheet.test.tsx +46 -0
- package/src/BottomSheet/BottomSheet.tsx +1 -1
- package/src/BottomSheet/BottomSheetPanel.tsx +2 -1
- package/src/BottomSheet/useSheetGestures.test.ts +52 -0
- package/src/BottomSheet/useSheetGestures.ts +37 -6
- package/src/Breadcrumbs/__tests__/Breadcrumbs.a11y.chromium.spec.ts +18 -6
- package/src/Button/Button.tsx +4 -4
- package/src/Calendar/Calendar.spec.md +87 -48
- package/src/Calendar/__tests__/Calendar.a11y.chromium.spec.ts +21 -7
- package/src/Carousel/__tests__/Carousel.a11y.chromium.spec.ts +21 -7
- package/src/CheckboxInput/CheckboxInput.tsx +6 -5
- package/src/ClickableCard/ClickableCard.test.tsx +96 -0
- package/src/ClickableCard/ClickableCard.tsx +48 -4
- package/src/Collapsible/Collapsible.spec.md +2 -0
- package/src/Collapsible/CollapsibleGroup.spec.md +57 -29
- package/src/Collapsible/__tests__/Collapsible.a11y.chromium.spec.ts +18 -7
- package/src/Collapsible/__tests__/CollapsibleGroupAccordion.a11y.chromium.spec.ts +18 -6
- package/src/ComplexSelector/ComplexSelector.test.tsx +37 -0
- package/src/ContextMenu/ContextMenu.test.tsx +35 -0
- package/src/DateInput/DateInput.test.tsx +115 -3
- package/src/DateInput/DateInput.tsx +29 -14
- package/src/DateInput/DateInputTouch.test.tsx +76 -0
- package/src/DateInput/MonthScroller.tsx +106 -20
- package/src/DateInput/MonthScrollerSettle.test.tsx +165 -0
- package/src/DateInput/TouchDateField.tsx +14 -3
- package/src/DateInput/__tests__/MonthScrollerSteps.interaction.browser.spec.ts +312 -0
- package/src/DateRangeInput/DateRangeInput.test.tsx +46 -3
- package/src/DateRangeInput/DateRangeInput.tsx +16 -12
- package/src/DateTimeInput/DateTimeInput.doc.mjs +10 -8
- package/src/DateTimeInput/DateTimeInput.spec.md +75 -51
- package/src/DateTimeInput/DateTimeInput.test.tsx +81 -0
- package/src/DateTimeInput/DateTimeInput.tsx +46 -24
- package/src/DateTimeInput/NativeTimeSegment.tsx +4 -6
- package/src/DateTimeInput/TouchDateTimeField.tsx +3 -7
- package/src/Dialog/Dialog.test.tsx +216 -2
- package/src/Dialog/Dialog.tsx +42 -9
- package/src/Dialog/DialogHeader.tsx +5 -4
- package/src/Dialog/__tests__/DialogSecondDocument.a11y.browser.spec.ts +202 -0
- package/src/Divider/Divider.tsx +2 -1
- package/src/Drawer/Drawer.spec.md +111 -80
- package/src/Drawer/Drawer.test.tsx +35 -0
- package/src/Drawer/Drawer.tsx +13 -2
- package/src/Drawer/DrawerHeader.spec.md +181 -0
- package/src/Drawer/__tests__/DrawerNonModalPageScroll.a11y.chromium.spec.ts +267 -0
- package/src/DropdownMenu/DropdownMenu.test.tsx +41 -0
- package/src/DropdownMenu/DropdownMenu.tsx +10 -3
- package/src/DropdownMenu/DropdownMenuSubMenu.test.tsx +34 -0
- package/src/DropdownMenu/MenuBottomSheetActionList.tsx +6 -5
- package/src/DropdownMenu/__tests__/Menu.a11y.chromium.spec.ts +19 -7
- package/src/DropdownMenu/__tests__/MenuButton.a11y.chromium.spec.ts +21 -9
- package/src/DropdownMenu/lazyMenuBottomSheet.test.ts +60 -0
- package/src/DropdownMenu/lazyMenuBottomSheet.ts +36 -7
- package/src/DropdownMenu/renderDropdownItems.tsx +24 -19
- package/src/EmptyState/EmptyState.tsx +2 -1
- package/src/Field/FieldLabel.tsx +5 -4
- package/src/Field/InputClearButton.tsx +3 -3
- package/src/Field/PanelSearchInput.tsx +2 -2
- package/src/FieldStatus/FieldStatus.tsx +2 -2
- package/src/FileInput/FileInput.test.tsx +21 -0
- package/src/FileInput/FileInput.tsx +4 -1
- package/src/FormLayout/FormLayout.spec.md +7 -8
- package/src/Heading/Heading.tsx +1 -1
- package/src/Icon/Icon.tsx +1 -1
- package/src/Indicator/CheckIndicator.spec.md +47 -42
- package/src/Indicator/CheckIndicator.tsx +2 -1
- package/src/Indicator/CheckboxIndicator.spec.md +40 -37
- package/src/Indicator/CheckboxIndicator.tsx +3 -1
- package/src/Indicator/Indicator.spec.md +188 -0
- package/src/Indicator/RadioIndicator.tsx +3 -1
- package/src/Item/Item.tsx +2 -1
- package/src/Item/ItemSwipeLayer.tsx +1 -1
- package/src/Kbd/Kbd.spec.md +81 -38
- package/src/Layer/__tests__/LayerBrowserHide.a11y.chromium.spec.ts +126 -0
- package/src/Layer/popoverOperations.test.ts +205 -0
- package/src/Layer/popoverOperations.ts +172 -0
- package/src/Layer/useLayer.test.tsx +348 -1
- package/src/Layer/useLayer.tsx +118 -71
- package/src/Layout/Layout.spec.md +127 -131
- package/src/Layout/Layout.tsx +1 -1
- package/src/Layout/LayoutContent.spec.md +205 -0
- package/src/Layout/LayoutContent.tsx +1 -1
- package/src/Layout/LayoutFooter.spec.md +190 -0
- package/src/Layout/LayoutFooter.tsx +1 -1
- package/src/Layout/LayoutHeader.spec.md +193 -0
- package/src/Layout/LayoutHeader.tsx +1 -1
- package/src/Layout/LayoutPanel.spec.md +194 -0
- package/src/Layout/__tests__/Layout.a11y.chromium.spec.ts +18 -6
- package/src/Lightbox/Lightbox.test.tsx +18 -0
- package/src/Lightbox/Lightbox.tsx +5 -0
- package/src/Lightbox/LightboxViewport.a11y.browser.spec.ts +8 -4
- package/src/Link/__tests__/Link.a11y.chromium.spec.ts +18 -8
- package/src/List/List.tsx +1 -1
- package/src/List/ListItem.spec.md +205 -0
- package/src/List/ListItem.tsx +3 -3
- package/src/MetadataList/MetadataList.spec.md +187 -0
- package/src/MetadataList/MetadataListItem.spec.md +165 -0
- package/src/MobileNav/MobileNav.test.tsx +15 -0
- package/src/MobileNav/MobileNav.tsx +9 -1
- package/src/MobileNav/__tests__/MobileNavHeader.a11y.chromium.spec.ts +89 -0
- package/src/MoreMenu/MoreMenu.test.tsx +11 -0
- package/src/MultiSelector/CreateRow.a11y.chromium.spec.ts +7 -8
- package/src/MultiSelector/MultiSelector.spec.md +7 -4
- package/src/MultiSelector/MultiSelector.test.tsx +270 -1
- package/src/MultiSelector/MultiSelector.tsx +25 -10
- package/src/MultiSelector/__tests__/MultiSelector.listbox.a11y.test.tsx +8 -1
- package/src/NavMenu/NavHeadingMenu.spec.md +1 -5
- package/src/NumberInput/NumberInput.doc.mjs +13 -7
- package/src/NumberInput/NumberInput.spec.md +59 -37
- package/src/NumberInput/NumberInput.tsx +13 -3
- package/src/NumberInput/__tests__/NumberInput.coarse-pointer.a11y.chromium.spec.ts +102 -0
- package/src/NumberInput/numberParser.ts +7 -45
- package/src/ProgressBar/ProgressBar.test.tsx +108 -32
- package/src/ProgressBar/ProgressBar.tsx +58 -10
- package/src/ProgressBar/__tests__/ProgressBar.a11y.chromium.spec.ts +21 -9
- package/src/ProgressBar/__tests__/ProgressBarMotion.a11y.chromium.spec.ts +831 -0
- package/src/Resizable/__tests__/ResizeHandle.a11y.chromium.spec.ts +21 -14
- package/src/Resizable/useResizable.test.ts +43 -0
- package/src/Resizable/useResizable.ts +32 -9
- package/src/SegmentedControl/SegmentedControl.test.tsx +84 -0
- package/src/SegmentedControl/SegmentedControlItem.tsx +11 -5
- package/src/Selector/Selector.test.tsx +90 -1
- package/src/Selector/__tests__/Selector.combobox.a11y.test.tsx +8 -1
- package/src/Selector/__tests__/Selector.listbox.a11y.test.tsx +8 -1
- package/src/Selector/useSelectorPresentation.ts +31 -3
- package/src/SideNav/SideNav.test.tsx +27 -0
- package/src/SideNav/__tests__/SideNavRailMotion.interaction.browser.spec.ts +176 -51
- package/src/Skeleton/Skeleton.tsx +3 -1
- package/src/Slider/Slider.test.tsx +31 -0
- package/src/Slider/Slider.tsx +8 -3
- package/src/Slider/__tests__/Slider.a11y.chromium.spec.ts +19 -7
- package/src/Spinner/Spinner.tsx +5 -3
- package/src/Stack/Stack.tsx +1 -1
- package/src/Stack/StackItem.tsx +1 -1
- package/src/TabList/TabList.test.tsx +58 -4
- package/src/TabList/TabList.tsx +16 -1
- package/src/TabList/__tests__/TabPressPointer.interaction.browser.spec.ts +163 -0
- package/src/Table/__tests__/Table.a11y.chromium.spec.ts +18 -6
- package/src/Table/plugins/columnResize/useTableColumnResize.test.tsx +22 -0
- package/src/Table/plugins/columnResize/useTableColumnResize.tsx +8 -4
- package/src/Text/Text.tsx +1 -1
- package/src/Text/useTruncation.test.tsx +128 -1
- package/src/Text/useTruncation.ts +23 -5
- package/src/TextArea/TextArea.spec.md +10 -13
- package/src/TextArea/TextArea.test.tsx +60 -0
- package/src/TextArea/TextArea.tsx +15 -1
- package/src/TextInput/TextInput.test.tsx +21 -0
- package/src/TextInput/TextInput.tsx +3 -1
- package/src/TimeInput/NativeTimeInput.test.tsx +17 -0
- package/src/TimeInput/Presentation.test.tsx +21 -0
- package/src/TimeInput/TimeInput.doc.mjs +8 -8
- package/src/TimeInput/TimeInput.spec.md +45 -48
- package/src/TimeInput/TimeInput.test.tsx +76 -0
- package/src/TimeInput/TimeInput.tsx +36 -18
- package/src/TimeInput/TouchTimeField.tsx +4 -6
- package/src/Timestamp/Timestamp.spec.md +6 -12
- package/src/Timestamp/Timestamp.test.tsx +30 -5
- package/src/Timestamp/Timestamp.tsx +6 -2
- package/src/Timestamp/TimestampHoverCard.tsx +4 -4
- package/src/Toast/Toast.spec.md +14 -20
- package/src/Toast/Toast.tsx +104 -36
- package/src/Toast/ToastViewport.test.tsx +719 -1
- package/src/Toast/ToastViewport.tsx +100 -50
- package/src/Tokenizer/Tokenizer.spec.md +5 -3
- package/src/Tokenizer/Tokenizer.test.tsx +68 -0
- package/src/Tokenizer/Tokenizer.tsx +14 -2
- package/src/Tokenizer/TokenizerBottomSheet.test.tsx +15 -4
- package/src/Tokenizer/TokenizerBottomSheet.tsx +3 -3
- package/src/Toolbar/Toolbar.spec.md +5 -6
- package/src/Toolbar/Toolbar.test.tsx +30 -0
- package/src/Toolbar/Toolbar.tsx +2 -1
- package/src/Toolbar/__tests__/Toolbar.a11y.chromium.spec.ts +18 -6
- package/src/Tooltip/__tests__/Tooltip.a11y.chromium.spec.ts +18 -7
- package/src/TopNav/TopNav.test.tsx +27 -0
- package/src/TopNav/TopNavMegaMenu.test.tsx +21 -0
- package/src/TopNav/TopNavMegaMenu.tsx +4 -1
- package/src/TopNav/TopNavMenu.test.tsx +17 -0
- package/src/TopNav/TopNavMenu.tsx +1 -0
- package/src/Typeahead/Typeahead.test.tsx +40 -0
- package/src/Typeahead/Typeahead.tsx +12 -1
- package/src/__tests__/pressState.ts +8 -4
- package/src/gestures/GestureArena.ts +35 -0
- package/src/gestures/GestureHost.ts +2065 -0
- package/src/gestures/GestureRecognizer.ts +18 -0
- package/src/gestures/LongPressGestureRecognizer.ts +4 -0
- package/src/gestures/PanGestureRecognizer.ts +4 -0
- package/src/gestures/PinchGestureRecognizer.ts +148 -0
- package/src/gestures/ScreenEdgePanGestureRecognizer.ts +256 -0
- package/src/gestures/SwipeGestureRecognizer.ts +197 -0
- package/src/gestures/TapGestureRecognizer.ts +4 -0
- package/src/gestures/VelocityTracker.ts +10 -3
- package/src/gestures/__tests__/GestureHost.test.ts +2087 -0
- package/src/gestures/__tests__/PanGestureRecognizer.test.ts +4 -4
- package/src/gestures/__tests__/PinchGestureRecognizer.test.ts +74 -0
- package/src/gestures/__tests__/ScreenEdgePanGestureRecognizer.test.ts +498 -0
- package/src/gestures/__tests__/SwipeGestureRecognizer.test.ts +108 -0
- package/src/gestures/__tests__/arena.test.ts +5 -0
- package/src/gestures/__tests__/arenaPinchSwipeEdge.test.ts +193 -0
- package/src/gestures/__tests__/browser/build-fixture.mjs +46 -0
- package/src/gestures/__tests__/browser/fixture.ts +307 -0
- package/src/gestures/__tests__/browser/gestures.interaction.browser.spec.ts +1137 -0
- package/src/gestures/__tests__/browserNegotiation.test.ts +293 -0
- package/src/gestures/__tests__/haptics.test.ts +187 -0
- package/src/gestures/__tests__/harness.ts +21 -2
- package/src/gestures/__tests__/recognizerKind.test.ts +78 -0
- package/src/gestures/__tests__/touchActionRule.test.ts +54 -0
- package/src/gestures/haptics.ts +203 -0
- package/src/gestures/nativeScroll.ts +277 -0
- package/src/gestures/touchAction.ts +191 -0
- package/src/gestures/touchActionRule.ts +157 -0
- package/src/gestures/types.ts +30 -9
- package/src/hooks/index.ts +5 -1
- package/src/hooks/modalAnnounce.ts +129 -72
- package/src/hooks/useAdaptivePresentation.ts +4 -1
- package/src/hooks/useAnnounce.doc.mjs +35 -3
- package/src/hooks/useAnnounce.replace.test.tsx +516 -0
- package/src/hooks/useAnnounce.ts +209 -102
- package/src/hooks/useAnnounceRenderedText.adopters.test.tsx +10 -1
- package/src/hooks/useAnnounceRenderedText.ts +17 -3
- package/src/hooks/useBusyAnnouncement.ts +7 -10
- package/src/hooks/useMenuHover.ts +15 -1
- package/src/i18n/generated-locales/en.generated.ts +6 -0
- package/src/i18n/generated-locales/pseudo.generated.ts +6 -0
- package/src/motion/README.md +11 -1
- package/src/motion/animator.test.ts +151 -3
- package/src/motion/animator.ts +149 -33
- package/src/theme/Theme.doc.mjs +1 -1
- package/src/theme/defineTheme.ts +117 -8
- package/src/theme/derivedVarRegistry.test.ts +4 -0
- package/src/theme/domainTokens/domainTokenDefaults.ts +19 -0
- package/src/theme/domainTokens/index.ts +6 -10
- package/src/theme/expandMotionScale.test.ts +1 -1
- package/src/theme/index.ts +5 -0
- package/src/theme/motionKnobs.ts +82 -0
- package/src/theme/resolveThemeValues.ts +68 -6
- package/src/theme/themeAdaptations.ts +52 -12
- package/src/theme/themeMotion.test.ts +620 -0
- package/src/theme/themeMotion.ts +221 -0
- package/src/theme/tokenReferences.ts +149 -0
- package/src/theme/tokens.stylex.ts +10 -0
- package/src/theme/tokens.ts +15 -158
- package/src/utils/focusReturn.ts +17 -6
- package/src/utils/getNodeText.test.ts +24 -0
- package/src/utils/getNodeText.ts +37 -0
- package/src/utils/interactionModality.test.ts +45 -1
- package/src/utils/interactionModality.ts +64 -5
- package/src/utils/interactionOverlay.stylex.ts +12 -3
- package/src/utils/plainDate.test.ts +90 -0
- package/src/utils/plainDate.ts +58 -3
- package/src/utils/presentation.test.ts +380 -0
- package/src/utils/presentation.ts +180 -0
- package/src/utils/pressFeedback.test.ts +138 -0
- package/src/utils/pressFeedback.ts +34 -11
- package/src/utils/pressPaintPriority.test.ts +80 -0
- package/src/utils/primaryClick.test.ts +38 -0
- package/src/utils/primaryClick.ts +28 -0
- package/src/utils/timeFormat.test.ts +204 -0
- package/src/utils/timeFormat.ts +314 -0
- package/src/utils/touchPresentation.stylex.ts +43 -0
- package/src/utils/touchPresentation.test.ts +140 -1
- package/src/utils/touchPresentation.ts +5 -3
- package/src/utils/unicodeDigits.test.ts +44 -0
- package/src/utils/unicodeDigits.ts +71 -0
package/dist/astryx.css
CHANGED
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
:root, .xj0fimd{--color-accent:light-dark(#0064E0, #2694FE);--color-accent-muted:light-dark(#0082FB33, #0082FB3F);--color-on-accent:light-dark(#FFFFFF, #FFFFFF);--color-neutral:light-dark(rgba(5, 54, 89, 0.1), rgba(223, 226, 229, 0.2));--color-background-surface:light-dark(#FFFFFF, #1F1F22);--color-background-body:light-dark(#F1F4F7, #111112);--color-overlay:light-dark(#01122866, #11111299);--color-overlay-hover:light-dark(#0536590C, #FFFFFF0C);--color-overlay-pressed:light-dark(#05365919, #FFFFFF19);--color-background-muted:light-dark(#0536590C, #1111127F);--color-text-primary:light-dark(#0A1317, #DFE2E5);--color-text-secondary:light-dark(#4E606F, #AAAFB5);--color-text-disabled:light-dark(#A4B0BC, #6F747C);--color-text-accent:light-dark(#0064E0, #3E9EFB);--color-on-dark:light-dark(#FFFFFF, #FFFFFF);--color-on-light:light-dark(#000000, #000000);--color-icon-accent:light-dark(#0064E0, #2694FE);--color-icon-primary:light-dark(#0A1317, #DFE2E5);--color-icon-secondary:light-dark(#4E606F, #AAAFB5);--color-icon-disabled:light-dark(#A4B0BC, #6F747C);--color-background-card:light-dark(#FFFFFF, #1F1F22);--color-background-popover:light-dark(#FFFFFF, #28292C);--color-background-inverted:light-dark(#0A1317, #FFFFFF);--color-background-error-inverted:light-dark(#AA071E, #E3193B);--color-info:light-dark(#0064E0, #0064E0);--color-info-muted:light-dark(#0082FB33, #0082FB3F);--color-on-info:light-dark(#FFFFFF, #FFFFFF);--color-success:light-dark(#0D8626, #0D8626);--color-success-muted:light-dark(#0B991F33, #0B991F3F);--color-on-success:light-dark(#FFFFFF, #FFFFFF);--color-error:light-dark(#E3193B, #F5394F);--color-error-muted:light-dark(#E3193B33, #F5394F3F);--color-on-error:light-dark(#FFFFFF, #0A1317);--color-warning:light-dark(#E9AF08, #F2C00B);--color-warning-muted:light-dark(#E2A40033, #E2A4003F);--color-on-warning:light-dark(#0A1317, #0A1317);--color-text-info:var(--color-text-blue);--color-text-success:var(--color-text-green);--color-text-warning:var(--color-text-yellow);--color-text-error:var(--color-text-red);--color-icon-info:var(--color-text-info);--color-icon-success:var(--color-text-success);--color-icon-warning:var(--color-text-warning);--color-icon-error:var(--color-text-error);--color-border-info:var(--color-text-info);--color-border-success:var(--color-text-success);--color-border-warning:var(--color-text-warning);--color-border-error:var(--color-text-error);--color-on-info-muted:var(--color-text-blue);--color-on-success-muted:var(--color-text-green);--color-on-warning-muted:var(--color-text-yellow);--color-on-error-muted:var(--color-text-red);--color-border:light-dark(#05365919, #F2F4F619);--color-border-emphasized:light-dark(#CCD3DB, #494D53);--color-skeleton:light-dark(#CCD3DB, #5A5E66);--color-track:light-dark(#CCD3DB, #5A5E66);--color-shadow:light-dark(rgba(5, 54, 89, 0.1), rgba(0, 0, 0, 0.3));--color-tint-hover:light-dark(black, white);--color-background-blue:light-dark(#0171E333, #0171E333);--color-border-blue:light-dark(#0064E0, #2694FE);--color-icon-blue:light-dark(#0064E0, #2694FE);--color-text-blue:light-dark(#042F97, #AFD7FF);--color-background-cyan:light-dark(#03A7D733, #03A7D733);--color-border-cyan:light-dark(#089DD0, #0171A4);--color-icon-cyan:light-dark(#00ACC1, #26C6DA);--color-text-cyan:light-dark(#014975, #A1EEF9);--color-background-gray:light-dark(#0A131733, #666A724C);--color-border-gray:light-dark(#647685, #748695);--color-icon-gray:light-dark(#4E606F, #AAAFB5);--color-text-gray:light-dark(#0A1317, #E7EAED);--color-background-green:light-dark(#24BB5E33, #24BB5E33);--color-border-green:light-dark(#0D8626, #0B991F);--color-icon-green:light-dark(#0D8626, #26A756);--color-text-green:light-dark(#09441F, #A5F690);--color-background-orange:light-dark(#F2790233, #F2790233);--color-border-orange:light-dark(#EB6E00, #B34A01);--color-icon-orange:light-dark(#E9690B, #FB8C00);--color-text-orange:light-dark(#6B2203, #FDB876);--color-background-pink:light-dark(#E638B333, #E638B333);--color-border-pink:light-dark(#F351C0, #C02294);--color-icon-pink:light-dark(#C2185B, #EC407A);--color-text-pink:light-dark(#650053, #FEADE3);--color-background-purple:light-dark(#7952FF33, #7952FF33);--color-border-purple:light-dark(#9081FF, #7340FE);--color-icon-purple:light-dark(#5B08D8, #7952FF);--color-text-purple:light-dark(#3E0697, #B3B0FE);--color-background-red:light-dark(#E3193B33, #E3193B33);--color-border-red:light-dark(#E3193B, #F5394F);--color-icon-red:light-dark(#D31130, #E3193B);--color-text-red:light-dark(#7B0210, #FFB2B8);--color-background-teal:light-dark(#0DB7AF33, #0DB7AF33);--color-border-teal:light-dark(#08A3A3, #08767D);--color-icon-teal:light-dark(#009688, #26A69A);--color-text-teal:light-dark(#083943, #40DCCD);--color-background-yellow:light-dark(#E2A40033, #E2A40033);--color-border-yellow:light-dark(#C58600, #B47700);--color-icon-yellow:light-dark(#FBC02D, #FFEE58);--color-text-yellow:light-dark(#753F07, #FBCE03);}
|
|
82
82
|
:root, .x7j7z01{--color-data-categorical-blue:light-dark(#0171E3, #0171E3);--color-data-categorical-orange:light-dark(#EB6E00, #EB6E00);--color-data-categorical-purple:light-dark(#6B1EFD, #6B1EFD);--color-data-categorical-green:light-dark(#0B991F, #0B991F);--color-data-categorical-pink:light-dark(#F351C0, #F351C0);--color-data-categorical-cyan:light-dark(#0171A4, #0171A4);--color-data-categorical-red:light-dark(#F5394F, #F5394F);--color-data-categorical-teal:light-dark(#08A3A3, #08A3A3);--color-data-categorical-brown:light-dark(#965E03, #965E03);--color-data-categorical-indigo:light-dark(#6F8AFF, #6F8AFF);--color-data-neutral:light-dark(#8494A3, #8C939B);--color-data-blue-5:light-dark(#02165E, #02165E);--color-data-blue-4:light-dark(#004CBC, #004CBC);--color-data-blue-3:light-dark(#2694FE, #2694FE);--color-data-blue-2:light-dark(#78BEFF, #78BEFF);--color-data-blue-1:light-dark(#DBECFF, #DBECFF);--color-data-shamrock-5:light-dark(#0B603D, #0B603D);--color-data-shamrock-4:light-dark(#138546, #138546);--color-data-shamrock-3:light-dark(#24BB5E, #24BB5E);--color-data-shamrock-2:light-dark(#8EF7AA, #8EF7AA);--color-data-shamrock-1:light-dark(#D6FEE4, #D6FEE4);--color-data-orange-5:light-dark(#A13F04, #A13F04);--color-data-orange-4:light-dark(#D66100, #D66100);--color-data-orange-3:light-dark(#FD9537, #FD9537);--color-data-orange-2:light-dark(#FDB876, #FDB876);--color-data-orange-1:light-dark(#FFE6CF, #FFE6CF);--color-data-pink-5:light-dark(#8E1073, #8E1073);--color-data-pink-4:light-dark(#D123A1, #D123A1);--color-data-pink-3:light-dark(#F989D3, #F989D3);--color-data-pink-2:light-dark(#FEADE3, #FEADE3);--color-data-pink-1:light-dark(#FCE3F4, #FCE3F4);--color-data-purple-5:light-dark(#3E0697, #3E0697);--color-data-purple-4:light-dark(#6B1EFD, #6B1EFD);--color-data-purple-3:light-dark(#9081FF, #9081FF);--color-data-purple-2:light-dark(#B3B0FE, #B3B0FE);--color-data-purple-1:light-dark(#E8E8FB, #E8E8FB);--color-data-red-5:light-dark(#9D0519, #9D0519);--color-data-red-4:light-dark(#D31130, #D31130);--color-data-red-3:light-dark(#FB7D87, #FB7D87);--color-data-red-2:light-dark(#FFB2B8, #FFB2B8);--color-data-red-1:light-dark(#FEE4E6, #FEE4E6);--color-data-teal-5:light-dark(#08767D, #08767D);--color-data-teal-4:light-dark(#0C9293, #0C9293);--color-data-teal-3:light-dark(#0DB7AF, #0DB7AF);--color-data-teal-2:light-dark(#6CE6D8, #6CE6D8);--color-data-teal-1:light-dark(#D7FCF8, #D7FCF8);--color-data-yellow-5:light-dark(#8A5001, #8A5001);--color-data-yellow-4:light-dark(#D69804, #D69804);--color-data-yellow-3:light-dark(#FBCE03, #FBCE03);--color-data-yellow-2:light-dark(#FCEC85, #FCEC85);--color-data-yellow-1:light-dark(#FDF6BA, #FDF6BA);--color-data-gray-5:light-dark(#25363F, #333338);--color-data-gray-4:light-dark(#5D6C7B, #666A72);--color-data-gray-3:light-dark(#AFB9C4, #B2B8BE);--color-data-gray-2:light-dark(#CCD3DB, #D0D3D6);--color-data-gray-1:light-dark(#F1F4F7, #F2F4F6);}
|
|
83
83
|
:root, .x14lkjui{--duration-fast-min:130ms;--duration-fast:175ms;--duration-fast-max:230ms;--duration-medium-min:310ms;--duration-medium:410ms;--duration-medium-max:550ms;--duration-slow-min:730ms;--duration-slow:975ms;--duration-slow-max:1300ms;}
|
|
84
|
-
:root, .xf09i69{--ease-standard:cubic-bezier(0.24, 1, 0.4, 1);--ease-exit:cubic-bezier(0.3, 0, 0.6, 0.6);}
|
|
84
|
+
:root, .xf09i69{--ease-standard:cubic-bezier(0.24, 1, 0.4, 1);--ease-entrance:cubic-bezier(0.24, 1, 0.4, 1);--ease-move:cubic-bezier(0.24, 1, 0.4, 1);--ease-exit:cubic-bezier(0.3, 0, 0.6, 0.6);}
|
|
85
85
|
:root, .xzxs3qz{--focus-outline-width:2px;--focus-outline-style:solid;--focus-outline-color:var(--color-accent);--focus-outline-offset:3px;}
|
|
86
86
|
:root, .x5tdzeq{--font-family-body:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--font-family-code:"SF Mono", Monaco, Consolas, monospace;--font-family-heading:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;}
|
|
87
87
|
:root, .x1q1ms06{--font-size-4xs:0.375rem;--font-size-3xs:0.4375rem;--font-size-2xs:0.5rem;--font-size-xs:0.625rem;--font-size-sm:0.75rem;--font-size-base:0.875rem;--font-size-lg:1.0625rem;--font-size-xl:1.25rem;--font-size-2xl:1.5rem;--font-size-3xl:1.8125rem;--font-size-4xl:2.1875rem;--font-size-5xl:2.625rem;}
|
|
@@ -724,11 +724,12 @@
|
|
|
724
724
|
.xjlvqhv:not(#\#):not(#\#):not(#\#){animation-duration:1ms}
|
|
725
725
|
.x1c74tu6:not(#\#):not(#\#):not(#\#){animation-duration:2s}
|
|
726
726
|
.xwms9i0:not(#\#):not(#\#):not(#\#){animation-duration:auto}
|
|
727
|
+
.xbs46m1:not(#\#):not(#\#):not(#\#){animation-duration:var(--_astryx-pre-tempo-duration-medium-max,var(--duration-medium-max))}
|
|
728
|
+
.x1qcljrn:not(#\#):not(#\#):not(#\#){animation-duration:var(--_astryx-pre-tempo-duration-slow-min,var(--duration-slow-min))}
|
|
727
729
|
.x9uej1z:not(#\#):not(#\#):not(#\#){animation-duration:var(--duration-fast-max)}
|
|
728
730
|
.xb2rp9n:not(#\#):not(#\#):not(#\#){animation-duration:var(--duration-fast)}
|
|
729
731
|
.xqgcaz:not(#\#):not(#\#):not(#\#){animation-duration:var(--duration-medium-max)}
|
|
730
732
|
.x12wqnr7:not(#\#):not(#\#):not(#\#){animation-duration:var(--duration-medium)}
|
|
731
|
-
.x14qxm4i:not(#\#):not(#\#):not(#\#){animation-duration:var(--duration-slow-min)}
|
|
732
733
|
.xskzprw:not(#\#):not(#\#):not(#\#){animation-fill-mode:backwards}
|
|
733
734
|
.x1u6ievf:not(#\#):not(#\#):not(#\#){animation-fill-mode:both}
|
|
734
735
|
.x10e4vud:not(#\#):not(#\#):not(#\#){animation-fill-mode:forwards}
|
|
@@ -1386,6 +1387,7 @@
|
|
|
1386
1387
|
.xv5t66b:not(#\#):not(#\#):not(#\#){transform:translateX(12px)}
|
|
1387
1388
|
.x15481yp:not(#\#):not(#\#):not(#\#){transform:translateX(14px)}
|
|
1388
1389
|
.xitnhlw:not(#\#):not(#\#):not(#\#){transform:translateX(50%)}
|
|
1390
|
+
.x8mk83g:not(#\#):not(#\#):not(#\#){transform:translateX(calc(var(--_progress-bar-fill,0%) - 100%))}
|
|
1389
1391
|
.x105ttfm:not(#\#):not(#\#):not(#\#){transform:translateY(-100%)}
|
|
1390
1392
|
.x19xzu86:not(#\#):not(#\#):not(#\#){transform:translateY(-3px) scale(.985)}
|
|
1391
1393
|
.x1bvilyr:not(#\#):not(#\#):not(#\#){transform:translateY(-4px)}
|
|
@@ -1465,7 +1467,6 @@
|
|
|
1465
1467
|
.x13zkoj4:not(#\#):not(#\#):not(#\#){transition-property:transform,width}
|
|
1466
1468
|
.x11xpdln:not(#\#):not(#\#):not(#\#){transition-property:transform}
|
|
1467
1469
|
.x74b7sa:not(#\#):not(#\#):not(#\#){transition-property:visibility}
|
|
1468
|
-
.xxrbq2n:not(#\#):not(#\#):not(#\#){transition-property:width}
|
|
1469
1470
|
.xn34ekc:not(#\#):not(#\#):not(#\#){transition-timing-function:ease-out,ease-out}
|
|
1470
1471
|
.x9lcvmn:not(#\#):not(#\#):not(#\#){transition-timing-function:ease-out}
|
|
1471
1472
|
.xcj1dhv:not(#\#):not(#\#):not(#\#){transition-timing-function:linear}
|
|
@@ -1486,6 +1487,7 @@
|
|
|
1486
1487
|
.x126k92a:not(#\#):not(#\#):not(#\#){white-space:pre-wrap}
|
|
1487
1488
|
.x1sdyfia:not(#\#):not(#\#):not(#\#){white-space:pre}
|
|
1488
1489
|
.x1q1rmc8:not(#\#):not(#\#):not(#\#){will-change:transform,opacity}
|
|
1490
|
+
.x1so62im:not(#\#):not(#\#):not(#\#){will-change:transform}
|
|
1489
1491
|
.x1yn0g08:not(#\#):not(#\#):not(#\#){word-break:break-all}
|
|
1490
1492
|
.x13faqbe:not(#\#):not(#\#):not(#\#){word-break:break-word}
|
|
1491
1493
|
.x1lldw8n:not(#\#):not(#\#):not(#\#){word-break:normal}
|
|
@@ -1599,6 +1601,7 @@
|
|
|
1599
1601
|
.x3x83r7:has(:focus-visible):not(#\#):not(#\#):not(#\#){z-index:2}
|
|
1600
1602
|
.xbw113y:dir(rtl):not(#\#):not(#\#):not(#\#){transform:translateX(-100%)}
|
|
1601
1603
|
.x1eqdj8u:dir(rtl):not(#\#):not(#\#):not(#\#){transform:translateX(100%)}
|
|
1604
|
+
.x13s8k5t:dir(rtl):not(#\#):not(#\#):not(#\#){transform:translateX(calc(100% - var(--_progress-bar-fill,0%)))}
|
|
1602
1605
|
.x1xrp5p4:first-child:not(#\#):not(#\#):not(#\#){border-end-start-radius:var(--radius-element)}
|
|
1603
1606
|
.xyf0ibl:first-child:not(#\#):not(#\#):not(#\#){border-inline-start-style:none}
|
|
1604
1607
|
.x1pjv70x:first-child:not(#\#):not(#\#):not(#\#){border-inline-start-width:0}
|
|
@@ -1647,11 +1650,13 @@
|
|
|
1647
1650
|
@media (forced-colors: active){.x1sir5s4.x1sir5s4:not(#\#):not(#\#):not(#\#){background-color:HighlightText}}
|
|
1648
1651
|
@media (hover: hover){.x150ydqw.x150ydqw:not(#\#):not(#\#):not(#\#){background-color:transparent}}
|
|
1649
1652
|
@media (forced-colors: active){.xs5hli.xs5hli:not(#\#):not(#\#):not(#\#){color:CanvasText}}
|
|
1653
|
+
@media (forced-colors: active){.x1xt8qih.x1xt8qih:not(#\#):not(#\#):not(#\#){color:currentColor}}
|
|
1650
1654
|
@media (forced-colors: active){.x1bhcspo.x1bhcspo:not(#\#):not(#\#):not(#\#){color:GrayText}}
|
|
1651
1655
|
@media (forced-colors: active){.x1k5gbb1.x1k5gbb1:not(#\#):not(#\#):not(#\#){color:HighlightText}}
|
|
1652
1656
|
@media (hover: hover){.x2dt3px.x2dt3px:not(#\#):not(#\#):not(#\#){cursor:zoom-in}}
|
|
1653
1657
|
@media (hover: hover){.xqwu39o.xqwu39o:not(#\#):not(#\#):not(#\#){display:flex}}
|
|
1654
1658
|
@media (max-width: 480px){.xedohl4.xedohl4:not(#\#):not(#\#):not(#\#){display:flex}}
|
|
1659
|
+
@media (pointer: coarse){.xhj50sb.xhj50sb:not(#\#):not(#\#):not(#\#){display:none}}
|
|
1655
1660
|
@media (max-width: 480px){.x1rpgqan.x1rpgqan:not(#\#):not(#\#):not(#\#){flex-direction:column}}
|
|
1656
1661
|
@media (pointer: coarse){.x1jymrmb.x1jymrmb:not(#\#):not(#\#):not(#\#){margin-inline-start:auto}}
|
|
1657
1662
|
@media (prefers-reduced-motion: reduce) and (pointer: coarse){.x1m67veq.x1m67veq:not(#\#):not(#\#):not(#\#){opacity:0}}
|
|
@@ -1663,10 +1668,12 @@
|
|
|
1663
1668
|
@media (forced-colors: active){.x815t2r.x815t2r:not(#\#):not(#\#):not(#\#){outline-style:solid}}
|
|
1664
1669
|
@media (forced-colors: active){.xcthrzx.xcthrzx:not(#\#):not(#\#):not(#\#){outline-width:1px}}
|
|
1665
1670
|
@media (forced-colors: active){.x1xvue0r.x1xvue0r:not(#\#):not(#\#):not(#\#){outline-width:var(--border-width)}}
|
|
1671
|
+
@media (pointer: coarse){.x1r3kph8.x1r3kph8:not(#\#):not(#\#):not(#\#){padding-inline-end:var(--astryx-number-input-padding-inline-end,var(--astryx-number-input-padding-inline,var(--astryx-number-input-padding,var(--spacing-2))))}}
|
|
1666
1672
|
@media (pointer: coarse){.x1bjav06.x1bjav06:not(#\#):not(#\#):not(#\#){pointer-events:none}}
|
|
1667
1673
|
@media (prefers-reduced-motion: reduce){.xg83hb1.xg83hb1:not(#\#):not(#\#):not(#\#){scroll-behavior:auto}}
|
|
1668
1674
|
@media (forced-colors: active){.xrih18v.xrih18v:not(#\#):not(#\#):not(#\#){scrollbar-color:auto}}
|
|
1669
1675
|
@media (pointer: coarse) and (not (forced-colors: active)){.xk8rjfv.xk8rjfv:not(#\#):not(#\#):not(#\#){scrollbar-color:auto}}
|
|
1676
|
+
@media (forced-colors: active){.x10rjfdt.x10rjfdt:not(#\#):not(#\#):not(#\#){transform:none}}
|
|
1670
1677
|
@media (prefers-reduced-motion: reduce){.xuupxpy.xuupxpy:not(#\#):not(#\#):not(#\#){transform:none}}
|
|
1671
1678
|
@media (prefers-reduced-motion: reduce){.x1oe9tb1.x1oe9tb1:not(#\#):not(#\#):not(#\#){transform:translateY(0)}}
|
|
1672
1679
|
@media (prefers-reduced-motion: reduce){.x1k6wr6r.x1k6wr6r:not(#\#):not(#\#):not(#\#){transition-delay:0s,0s}}
|
|
@@ -1675,12 +1682,16 @@
|
|
|
1675
1682
|
@media (prefers-reduced-motion: reduce){.xzg1mie.xzg1mie:not(#\#):not(#\#):not(#\#){transition-duration:.01s}}
|
|
1676
1683
|
@media ((prefers-reduced-motion: reduce) and (pointer: coarse) and (not (prefers-reduced-motion: reduce))) or ((prefers-reduced-motion: reduce) and (pointer: coarse) and (not ((not (pointer: coarse))))){.xh0ie4q.xh0ie4q:not(#\#):not(#\#):not(#\#){transition-duration:.2s}}
|
|
1677
1684
|
@media (prefers-reduced-motion: reduce){.xsr0bmt.xsr0bmt:not(#\#):not(#\#):not(#\#){transition-duration:0s,0s}}
|
|
1685
|
+
@media ((prefers-reduced-motion: reduce) and (not (pointer: coarse)) and (not (prefers-reduced-motion: reduce))) or ((prefers-reduced-motion: reduce) and (not (pointer: coarse)) and (not (pointer: coarse))){.xo2sced.xo2sced:not(#\#):not(#\#):not(#\#){transition-duration:0s}}
|
|
1678
1686
|
@media (prefers-reduced-motion: reduce) and (not (pointer: coarse)){.xuh6ohu.xuh6ohu:not(#\#):not(#\#):not(#\#){transition-duration:0s}}
|
|
1687
|
+
@media (prefers-reduced-motion: reduce) and (pointer: coarse){.x1r9o9eb.x1r9o9eb:not(#\#):not(#\#):not(#\#){transition-duration:0s}}
|
|
1679
1688
|
@media (prefers-reduced-motion: reduce){.x12w9bfk.x12w9bfk:not(#\#):not(#\#):not(#\#){transition-duration:0s}}
|
|
1680
1689
|
@media (prefers-reduced-motion: reduce){.x4wkmsb.x4wkmsb:not(#\#):not(#\#):not(#\#){transition-property:none}}
|
|
1681
1690
|
@media (prefers-reduced-motion: reduce){.x3ya4ca.x3ya4ca:not(#\#):not(#\#):not(#\#){transition-property:opacity,overlay,display}}
|
|
1691
|
+
@media (forced-colors: active){.x18hto2h.x18hto2h:not(#\#):not(#\#):not(#\#){transition-property:width}}
|
|
1682
1692
|
@media (pointer: coarse){.x1s1rlkj.x1s1rlkj:not(#\#):not(#\#):not(#\#){transition-timing-function:cubic-bezier(.3,0,.6,.6)}}
|
|
1683
1693
|
@media (prefers-reduced-motion: reduce) and (pointer: coarse){.x19dgjhz.x19dgjhz:not(#\#):not(#\#):not(#\#){transition-timing-function:cubic-bezier(.42,0,.58,1)}}
|
|
1694
|
+
@media (forced-colors: active){.x1mfxj9n.x1mfxj9n:not(#\#):not(#\#):not(#\#){will-change:auto}}
|
|
1684
1695
|
.x1anq1lc.x1anq1lc:active:where(:not(:disabled,[aria-disabled="true"])):not(#\#):not(#\#):not(#\#){background-color:var(--color-overlay-pressed)}
|
|
1685
1696
|
.xzmimnh.xzmimnh:active:where(:not(:disabled,[aria-disabled="true"])):not(#\#):not(#\#):not(#\#){background-image:linear-gradient(var(--color-overlay-pressed),var(--color-overlay-pressed)),linear-gradient(var(--color-neutral),var(--color-neutral))}
|
|
1686
1697
|
.x7uyq82.x7uyq82:active:where(:not(:disabled,[aria-disabled="true"])):not(#\#):not(#\#):not(#\#){background-image:linear-gradient(var(--color-overlay-pressed),var(--color-overlay-pressed))}
|
|
@@ -1724,6 +1735,7 @@
|
|
|
1724
1735
|
@media (hover: hover){.x7jm8ul.x7jm8ul.x7jm8ul:hover:where(:not(:disabled,[aria-disabled="true"])):not(#\#):not(#\#):not(#\#){color:color-mix(in srgb,var(--color-text-secondary),var(--color-tint-hover) 15%)}}
|
|
1725
1736
|
@media (hover: hover){.xo5jvnm.xo5jvnm.xo5jvnm:hover:where(:not(:disabled,[aria-disabled="true"])):not(#\#):not(#\#):not(#\#){color:var(--color-text-primary)}}
|
|
1726
1737
|
@media (pointer: coarse){.xom6oz5.xom6oz5.xom6oz5:active:where(:not(:disabled,[aria-disabled="true"])):not(#\#):not(#\#):not(#\#){transform:scale(1)}}
|
|
1738
|
+
@media (forced-colors: active){.x1xwfpud.x1xwfpud:dir(rtl):not(#\#):not(#\#):not(#\#){transform:none}}
|
|
1727
1739
|
@container (max-width: 399px){.x1alyx8p.x1alyx8p:not(#\#):not(#\#):not(#\#){flex-wrap:wrap}}
|
|
1728
1740
|
@media (forced-colors: active){.x1vo6n7o.x1vo6n7o:active:not(#\#):not(#\#):not(#\#){background-color:Highlight}}
|
|
1729
1741
|
@media (hover: hover){.x1otsd3y.x1otsd3y.x1otsd3y:hover:where(:not(:disabled,[aria-disabled="true"])):not(#\#):not(#\#):not(#\#){background-image:linear-gradient(var(--color-overlay-hover),var(--color-overlay-hover)),linear-gradient(var(--color-neutral),var(--color-neutral))}}
|
|
@@ -1920,6 +1932,7 @@
|
|
|
1920
1932
|
.x2lwn1j:not(#\#):not(#\#):not(#\#):not(#\#){min-height:0}
|
|
1921
1933
|
.x1us19tq:not(#\#):not(#\#):not(#\#):not(#\#){min-height:100%}
|
|
1922
1934
|
.x1ov3xa9:not(#\#):not(#\#):not(#\#):not(#\#){min-height:100dvh}
|
|
1935
|
+
.x1tn5z8q:not(#\#):not(#\#):not(#\#):not(#\#){min-height:1lh}
|
|
1923
1936
|
.xz65tgg:not(#\#):not(#\#):not(#\#):not(#\#){min-height:200px}
|
|
1924
1937
|
.xisnujt:not(#\#):not(#\#):not(#\#):not(#\#){min-height:20px}
|
|
1925
1938
|
.xe0957l:not(#\#):not(#\#):not(#\#):not(#\#){min-height:22px}
|
|
@@ -1931,6 +1944,7 @@
|
|
|
1931
1944
|
.x1xf4nls:not(#\#):not(#\#):not(#\#):not(#\#){min-height:var(--size-element-lg)}
|
|
1932
1945
|
.x1uogy3y:not(#\#):not(#\#):not(#\#):not(#\#){min-height:var(--size-element-md)}
|
|
1933
1946
|
.x1gdqauq:not(#\#):not(#\#):not(#\#):not(#\#){min-height:var(--size-element-sm)}
|
|
1947
|
+
.x3unnv6:not(#\#):not(#\#):not(#\#):not(#\#){min-height:var(--spacing-12)}
|
|
1934
1948
|
.x175cymr:not(#\#):not(#\#):not(#\#):not(#\#){min-height:var(--spacing-2)}
|
|
1935
1949
|
.ximsjs8:not(#\#):not(#\#):not(#\#):not(#\#){min-height:var(--spacing-7)}
|
|
1936
1950
|
.xkoleio:not(#\#):not(#\#):not(#\#):not(#\#){min-height:var(--spacing-8)}
|
|
@@ -2145,9 +2159,10 @@
|
|
|
2145
2159
|
@media (pointer: coarse){.x1xrq5m.x1xrq5m:not(#\#):not(#\#):not(#\#):not(#\#){min-width:44px}}
|
|
2146
2160
|
@media (pointer: coarse){.xngvp7v.xngvp7v:not(#\#):not(#\#):not(#\#):not(#\#){min-width:44px}}
|
|
2147
2161
|
@media (any-pointer: coarse){.x1c4064q.x1c4064q:not(#\#):not(#\#):not(#\#):not(#\#){width:24px}}
|
|
2162
|
+
@media (forced-colors: active){.xtyencx.xtyencx:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--_progress-bar-fill,0%)}}
|
|
2148
2163
|
@media (max-width: 640px){.xci7e5a.xci7e5a:not(#\#):not(#\#):not(#\#):not(#\#){width:var(--x-fqzwsx)}}
|
|
2149
2164
|
@supports (-webkit-touch-callout: none){@media (pointer: coarse){.x9w4715.x9w4715.x9w4715:not(#\#):not(#\#):not(#\#):not(#\#){height:calc(max(1rem,var(--text-body-size)) * var(--text-body-leading));height:1lh}}}
|
|
2150
|
-
.
|
|
2165
|
+
.x1heh2iz[data-astryx-press="fading"]:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){animation-duration:calc(.2s * min(var(--_astryx-motion-tempo,1),1.5))}
|
|
2151
2166
|
.xziyay6[data-astryx-press="fading"]:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){animation-fill-mode:both}
|
|
2152
2167
|
.x14e4jsf[data-astryx-press="fading"]:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){animation-name:x10jkm1t-B}
|
|
2153
2168
|
.xwkbtvz[data-astryx-press="fading"]:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){animation-timing-function:cubic-bezier(0,0,.2,1)}
|
|
@@ -2182,6 +2197,7 @@
|
|
|
2182
2197
|
@starting-style{.x14gflnl.x14gflnl:is([dir="rtl"] *):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){transform:translateX(100%)}}
|
|
2183
2198
|
@starting-style{.xrxqmjf.xrxqmjf:dir(rtl):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){transform:translateX(-100%)}}
|
|
2184
2199
|
@starting-style{.x1r0dqvm.x1r0dqvm:dir(rtl):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){transform:translateX(100%)}}
|
|
2200
|
+
@media (prefers-reduced-motion: reduce){.x1sgdaq5.x1sgdaq5[data-astryx-press="fading"]:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){animation-duration:min(.2s,calc(.2s * var(--_astryx-motion-tempo,1)))}}
|
|
2185
2201
|
@media (forced-colors: active){.x1pjcgc3.x1pjcgc3[data-astryx-press="fading"]:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){background-color:Highlight}}
|
|
2186
2202
|
@media (forced-colors: active){.x1r4mieh.x1r4mieh[data-astryx-press="on"]:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){background-color:Highlight}}
|
|
2187
2203
|
@starting-style{@media (prefers-reduced-motion: reduce) and (pointer: coarse){.xgo67oj.xgo67oj.xgo67oj:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#){opacity:0}}}
|
|
@@ -97,6 +97,12 @@ export declare class GestureArena {
|
|
|
97
97
|
get involvedRecognizers(): ReadonlyArray<GestureRecognizer>;
|
|
98
98
|
/** New contacts, each with the recognizers on its hit path. */
|
|
99
99
|
began(inputs: ReadonlyArray<ArenaBeganInput>): void;
|
|
100
|
+
/**
|
|
101
|
+
* A contact began where nothing takes part (plain page content). It is
|
|
102
|
+
* never tracked and stays the browser's; recognizers already tracking a
|
|
103
|
+
* gesture hear of it, as of any touch off their hit path.
|
|
104
|
+
*/
|
|
105
|
+
untrackedBegan(input: TouchBeganInput): void;
|
|
100
106
|
/** Contacts moved. */
|
|
101
107
|
moved(inputs: ReadonlyArray<TouchInput>): void;
|
|
102
108
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GestureArena.d.ts","sourceRoot":"","sources":["../../src/gestures/GestureArena.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEH,OAAO,EAGL,KAAK,iBAAiB,EACvB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,kBAAkB,EAElB,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,aAAa,EACb,UAAU,EAEX,MAAM,SAAS,CAAC;AAGjB,MAAM,WAAW,YAAY;IAC3B,GAAG,IAAI,MAAM,CAAC;IACd,UAAU,CAAC,QAAQ,EAAE,MAAM,IAAI,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC;IACtD,YAAY,CAAC,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;CACrC;AAED,+EAA+E;AAC/E,eAAO,MAAM,YAAY,EAAE,YAK1B,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,UAAU,GAAG,OAAO,CAAC;AAE9D,MAAM,WAAW,eAAgB,SAAQ,eAAe;IACtD,gEAAgE;IAChE,QAAQ,CAAC,WAAW,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;IACvD,iEAAiE;IACjE,QAAQ,CAAC,QAAQ,CAAC,EAAE,aAAa,GAAG,IAAI,CAAC;CAC1C;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,WAAW,CAAC,EAAE,kBAAkB,CAAC;IACjC,4EAA4E;IAC5E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AgBb;;;;OAIG;IACH,OAAO,CAAC,aAAa;IA0BrB,OAAO,CAAC,KAAK;IAyBb,OAAO,CAAC,gBAAgB;IAgBxB,qEAAqE;IACrE,OAAO,CAAC,UAAU;IAqClB,0DAA0D;IAC1D,OAAO,CAAC,UAAU;IAoClB,OAAO,CAAC,aAAa;IAUrB,OAAO,CAAC,WAAW;IAUnB,OAAO,CAAC,mBAAmB;IAW3B,OAAO,CAAC,UAAU;IAWlB,OAAO,CAAC,OAAO;IASf,OAAO,CAAC,WAAW;IAWnB,OAAO,CAAC,MAAM;IAyBd,OAAO,CAAC,SAAS;IAMjB;;;;;OAKG;IACH,OAAO,CAAC,GAAG;IAmBX,OAAO,CAAC,WAAW;IA+BnB,4EAA4E;IAC5E,OAAO,CAAC,IAAI;IAKZ,OAAO,CAAC,MAAM;IAoCd,OAAO,CAAC,iBAAiB;CAkC1B"}
|
|
@@ -195,6 +195,45 @@ export class GestureArena {
|
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
197
|
|
|
198
|
+
/**
|
|
199
|
+
* A contact began where nothing takes part (plain page content). It is
|
|
200
|
+
* never tracked and stays the browser's; recognizers already tracking a
|
|
201
|
+
* gesture hear of it, as of any touch off their hit path.
|
|
202
|
+
*/
|
|
203
|
+
untrackedBegan(input) {
|
|
204
|
+
if (!this.active.some(recognizer => recognizer.numberOfTouches > 0)) {
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
this.run(input.time, () => {
|
|
208
|
+
const time = this.clampTime(input.time);
|
|
209
|
+
const touch = {
|
|
210
|
+
id: input.id,
|
|
211
|
+
pointerType: input.pointerType,
|
|
212
|
+
phase: 'began',
|
|
213
|
+
x: input.x,
|
|
214
|
+
y: input.y,
|
|
215
|
+
time,
|
|
216
|
+
startX: input.x,
|
|
217
|
+
startY: input.y,
|
|
218
|
+
startTime: time,
|
|
219
|
+
samples: [{
|
|
220
|
+
x: input.x,
|
|
221
|
+
y: input.y,
|
|
222
|
+
time
|
|
223
|
+
}],
|
|
224
|
+
target: input.target,
|
|
225
|
+
scroll: input.scroll ?? null,
|
|
226
|
+
takenByBrowser: false
|
|
227
|
+
};
|
|
228
|
+
const context = this.context();
|
|
229
|
+
for (const recognizer of [...this.active]) {
|
|
230
|
+
if (recognizer.numberOfTouches > 0) {
|
|
231
|
+
recognizer.deliverBeganElsewhere([touch], context);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
|
|
198
237
|
/** Contacts moved. */
|
|
199
238
|
moved(inputs) {
|
|
200
239
|
if (inputs.length === 0) {
|
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
import { GestureArena, type GestureArenaOptions, type GestureClock } from './GestureArena.js';
|
|
2
|
+
import type { GestureRecognizer } from './GestureRecognizer.js';
|
|
3
|
+
import type { GestureTouch, PointerKind, TouchConsumer } from './types.js';
|
|
4
|
+
export interface GestureHostOptions {
|
|
5
|
+
/** The arena's clock; tests pass a manual one. */
|
|
6
|
+
clock?: GestureClock;
|
|
7
|
+
/**
|
|
8
|
+
* Where fingers come from: Touch Events where the browser has them
|
|
9
|
+
* (`auto`), or Pointer Events only.
|
|
10
|
+
*/
|
|
11
|
+
inputMode?: 'auto' | 'pointer-events';
|
|
12
|
+
/** Every recognizer transition, for debugging and tests. */
|
|
13
|
+
onTransition?: GestureArenaOptions['onTransition'];
|
|
14
|
+
/**
|
|
15
|
+
* Whether the primary pointer is coarse (a phone, a tablet). Gestures
|
|
16
|
+
* attach for every pointer (`spec:AST-094` FR43); where it is fine, an
|
|
17
|
+
* element that uses a gesture keeps one passive `pointerdown` listener
|
|
18
|
+
* (beside a claiming recognizer's blocking `touchmove`, FR19) and the
|
|
19
|
+
* page's listeners last only a press (FR24).
|
|
20
|
+
* @default `(pointer: coarse)` on the document's window
|
|
21
|
+
*/
|
|
22
|
+
isPrimaryPointerCoarse?: () => boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface AttachOptions {
|
|
25
|
+
/**
|
|
26
|
+
* Let the host set the element's styles: its `touch-action`, and the
|
|
27
|
+
* selection and callout lock a hold that does something keeps while it is
|
|
28
|
+
* held (`spec:AST-094` FR41). With false the caller keeps both.
|
|
29
|
+
* @default true
|
|
30
|
+
*/
|
|
31
|
+
manageStyle?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* The element is an action group, sibling actions a held pointer slides
|
|
34
|
+
* across (`family:action-groups` FR5). It is served like every
|
|
35
|
+
* attachment, for every pointer (`spec:AST-094` FR43). @default false
|
|
36
|
+
*/
|
|
37
|
+
actionGroup?: boolean;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* A kind of view-level consumer found by attribute instead of attached to
|
|
41
|
+
* each element.
|
|
42
|
+
*/
|
|
43
|
+
export interface DelegatedConsumerType {
|
|
44
|
+
/** Marks an element as this kind of consumer. */
|
|
45
|
+
readonly attribute: string;
|
|
46
|
+
/**
|
|
47
|
+
* The consumer for one contact on `element`, or null for none (a disabled
|
|
48
|
+
* control). The innermost marked element decides, even with null: a press
|
|
49
|
+
* on a disabled button does not light the row around it.
|
|
50
|
+
*/
|
|
51
|
+
create(element: Element, pointerType: PointerKind): TouchConsumer | null;
|
|
52
|
+
}
|
|
53
|
+
export declare class GestureHost {
|
|
54
|
+
readonly arena: GestureArena;
|
|
55
|
+
private readonly doc;
|
|
56
|
+
private readonly registry;
|
|
57
|
+
private readonly delegated;
|
|
58
|
+
/** Touch.identifier → arena id, for live fingers. */
|
|
59
|
+
private readonly touchIds;
|
|
60
|
+
/** Touch.identifier → the element the finger landed on. */
|
|
61
|
+
private readonly touchTargets;
|
|
62
|
+
/** Finger targets with listeners of their own, and how many fingers each. */
|
|
63
|
+
/**
|
|
64
|
+
* Finger targets with listeners of their own: how many fingers each, and
|
|
65
|
+
* how many of those a recognizer could claim while they move (only those
|
|
66
|
+
* need the blocking `touchmove` listener).
|
|
67
|
+
*/
|
|
68
|
+
private readonly watched;
|
|
69
|
+
/** Fingers whose target listener is the blocking one. */
|
|
70
|
+
private readonly blockingFingers;
|
|
71
|
+
/** Touch events already handled (the document's and the target's listeners both see one). */
|
|
72
|
+
private readonly processed;
|
|
73
|
+
/** pointerId → arena id, for live mouse and pen contacts. */
|
|
74
|
+
private readonly pointerIds;
|
|
75
|
+
/** Elements whose caller touch-action waits for a read after paint. */
|
|
76
|
+
private readonly pendingCallerReads;
|
|
77
|
+
private isCallerReadScheduled;
|
|
78
|
+
/**
|
|
79
|
+
* The boxes the host watches for screen-edge pans (syncLayoutWatch): each
|
|
80
|
+
* element with an enabled one, and the root for one whose band moves with
|
|
81
|
+
* the viewport (spec:AST-094 FR18, FR19, DEC-22), and the one observer
|
|
82
|
+
* that watches them.
|
|
83
|
+
*/
|
|
84
|
+
private readonly layoutWatched;
|
|
85
|
+
private layoutObserver;
|
|
86
|
+
/** Fingers whose first uncancelable `touchmove` was already judged. */
|
|
87
|
+
private readonly judgedUncancelable;
|
|
88
|
+
/**
|
|
89
|
+
* A finger's pointerId → its arena id, once its pointerdown and its
|
|
90
|
+
* touchstart are paired. Chromium sends no `touchmove` until a finger has
|
|
91
|
+
* travelled its slop (about 16 px), but sends every `pointermove`, so the
|
|
92
|
+
* finger's movement comes from both channels; and its `pointercancel` is
|
|
93
|
+
* the browser's claim of exactly that finger.
|
|
94
|
+
*/
|
|
95
|
+
private readonly fingerPointers;
|
|
96
|
+
/** Finger pointerdowns still waiting for their touchstart. */
|
|
97
|
+
private readonly pendingPointers;
|
|
98
|
+
/**
|
|
99
|
+
* Under `inputMode: 'pointer-events'`, where claimed fingers lifted: the
|
|
100
|
+
* `touchend` that follows their `pointerup` is cancelled (FR21).
|
|
101
|
+
*/
|
|
102
|
+
private readonly claimedLifts;
|
|
103
|
+
/** Fingers still waiting for their pointerdown, by arena id. */
|
|
104
|
+
private readonly unpairedTouches;
|
|
105
|
+
/** The last position fed per contact, so one channel's echo is dropped. */
|
|
106
|
+
/** The elements each held contact turned selection off on. */
|
|
107
|
+
private readonly heldSelectionBy;
|
|
108
|
+
private readonly isPrimaryPointerCoarse;
|
|
109
|
+
private readonly coarseQuery;
|
|
110
|
+
private isWatchingPointer;
|
|
111
|
+
private readonly onPointerKindChange;
|
|
112
|
+
private readonly lastFed;
|
|
113
|
+
/** When a finger was last down or lifted, and where it landed. */
|
|
114
|
+
private lastTouch;
|
|
115
|
+
/** The last scroll a finger drove, and when. */
|
|
116
|
+
/** Scrollers a recognizer is scrolling itself this frame (ownScroll). */
|
|
117
|
+
private readonly ownedScrolls;
|
|
118
|
+
private lastScroll;
|
|
119
|
+
private nextId;
|
|
120
|
+
private isInstalled;
|
|
121
|
+
private readonly inputMode;
|
|
122
|
+
private usesTouchEvents;
|
|
123
|
+
private swallowDeadline;
|
|
124
|
+
/**
|
|
125
|
+
* Where the primary pointer is fine: what listens for a press itself (the
|
|
126
|
+
* elements that use a gesture, and the document for delegated consumers),
|
|
127
|
+
* with its removal; whether a press one armed is held, the page's
|
|
128
|
+
* listeners lasting that long; and the pending removal of the click
|
|
129
|
+
* listener a released press kept (FR21, FR24).
|
|
130
|
+
*/
|
|
131
|
+
private readonly armed;
|
|
132
|
+
private isArmedPress;
|
|
133
|
+
private clickRemoval;
|
|
134
|
+
constructor(doc: Document, options?: GestureHostOptions);
|
|
135
|
+
/** Re-derive every element's styles and the host's listeners. */
|
|
136
|
+
private refreshAll;
|
|
137
|
+
/** Attach a recognizer to an element. Returns the detach function. */
|
|
138
|
+
attach(element: Element, recognizer: GestureRecognizer, options?: AttachOptions): () => void;
|
|
139
|
+
/**
|
|
140
|
+
* Watch the box of each element with an enabled screen-edge pan, and the
|
|
141
|
+
* root's for a pan that watches the right side, whose band moves with the
|
|
142
|
+
* viewport: a resize may move an element into or out of its edge band, and
|
|
143
|
+
* the pan then measures again and re-derives the element's touch-action
|
|
144
|
+
* (FR19). The host sets touch-action for every pointer (FR43), so it
|
|
145
|
+
* watches under any primary pointer. One ResizeObserver serves every
|
|
146
|
+
* element and goes with the last one, and no listener is added (FR24); an
|
|
147
|
+
* engine without ResizeObserver keeps each pan's first measurement.
|
|
148
|
+
*/
|
|
149
|
+
private syncLayoutWatch;
|
|
150
|
+
/** A watched box or the root resized: each enabled edge pan measures again. */
|
|
151
|
+
private readonly onLayoutChange;
|
|
152
|
+
/** Attach the view-level touch consumer of an element (a pressable control). */
|
|
153
|
+
attachConsumer(element: Element, consumer: TouchConsumer): () => void;
|
|
154
|
+
/**
|
|
155
|
+
* Find consumers of a kind by attribute, one instance per contact. Returns
|
|
156
|
+
* the function that stops it.
|
|
157
|
+
*/
|
|
158
|
+
addDelegatedConsumer(type: DelegatedConsumerType): () => void;
|
|
159
|
+
/**
|
|
160
|
+
* Re-derive an element's styles and the host's listeners after its
|
|
161
|
+
* recognizers' options or its consumer's enabled state changed.
|
|
162
|
+
*/
|
|
163
|
+
update(element: Element): void;
|
|
164
|
+
/**
|
|
165
|
+
* The Pointer Events `pointerId` of a contact the arena tracks: a mouse's
|
|
166
|
+
* or a pen's own, and for a finger driven by touch events the pointer its
|
|
167
|
+
* touch was paired with (null before the pairing, or without Pointer
|
|
168
|
+
* Events). It hands a held finger to code that follows pointers, as a
|
|
169
|
+
* menu does when a long press turns into a press-drag selection.
|
|
170
|
+
*/
|
|
171
|
+
pointerIdOf(touch: GestureTouch | number): number | null;
|
|
172
|
+
/**
|
|
173
|
+
* Whether a finger set a scroller containing `node` moving within the last
|
|
174
|
+
* `window` ms. A touch there now brakes the scroll rather than pressing
|
|
175
|
+
* whatever is under it: a native list highlights nothing for one.
|
|
176
|
+
*/
|
|
177
|
+
isScrollBraking(node: Node, window?: number): boolean;
|
|
178
|
+
private registrationFor;
|
|
179
|
+
private refresh;
|
|
180
|
+
private applyStyle;
|
|
181
|
+
/**
|
|
182
|
+
* The touch-action to write inline, if any. The author's value (a
|
|
183
|
+
* trigger's own `touch-action: none`) stays in force and the host never
|
|
184
|
+
* allows more (spec:AST-094 FR18, DEC-8):
|
|
185
|
+
* - an inline value is the style's own, read with no recalc, and the host
|
|
186
|
+
* writes what both allow, inline; a CSS-wide keyword (`initial`,
|
|
187
|
+
* `inherit`, `unset`, `revert`, `revert-layer`) names no touch-action of
|
|
188
|
+
* its own, so it is read as an author rule is, as what it resolves to;
|
|
189
|
+
* - otherwise the element is marked with the derived value, under a rule
|
|
190
|
+
* any author rule outranks, as the recognizer attaches: a subtree that
|
|
191
|
+
* mounts with it is styled once, never restyled for it in a later frame.
|
|
192
|
+
* The next frame reads what is in force, styles clean, and the host
|
|
193
|
+
* writes inline only what both allow where that is narrower than an
|
|
194
|
+
* author rule's value.
|
|
195
|
+
*/
|
|
196
|
+
private touchActionToWrite;
|
|
197
|
+
/**
|
|
198
|
+
* Read the touch-action in force on each marked element in the next frame,
|
|
199
|
+
* then apply its style again. Batched: one style read serves every pending
|
|
200
|
+
* element, and the writes follow the reads. The host has written no
|
|
201
|
+
* touch-action inline on them, so a value other than the mark is an author
|
|
202
|
+
* rule's.
|
|
203
|
+
*/
|
|
204
|
+
private readCallerTouchActionInNextFrame;
|
|
205
|
+
private cleanup;
|
|
206
|
+
/**
|
|
207
|
+
* Listen only while something could take a touch now (`spec:AST-094`
|
|
208
|
+
* FR24, FR43): where the primary pointer is coarse, while an enabled
|
|
209
|
+
* recognizer or consumer, or a delegated consumer, is attached; where it is
|
|
210
|
+
* fine, only during a press something armed (syncArmed). Otherwise no page
|
|
211
|
+
* listener is registered, so an idle page and a disabled control pay
|
|
212
|
+
* nothing.
|
|
213
|
+
*/
|
|
214
|
+
private syncListeners;
|
|
215
|
+
private shouldListen;
|
|
216
|
+
/**
|
|
217
|
+
* Where the primary pointer is fine, each element with an enabled
|
|
218
|
+
* recognizer or press consumer listens for a press itself: one passive
|
|
219
|
+
* `pointerdown` listener, in the capture phase, so the outermost one hears
|
|
220
|
+
* a press first and serves every recognizer on its path. Delegated
|
|
221
|
+
* consumer types, which have no element, arm the document once. A press
|
|
222
|
+
* installs the host's page listeners for as long as its contacts last
|
|
223
|
+
* (`spec:AST-094` FR24, FR43). Where the primary pointer is coarse the
|
|
224
|
+
* page's listeners serve every press, and nothing is armed.
|
|
225
|
+
*/
|
|
226
|
+
private syncArmed;
|
|
227
|
+
/**
|
|
228
|
+
* A press on something armed, where the primary pointer is fine: a
|
|
229
|
+
* mouse's primary button, a pen, or a finger. The page's listeners come
|
|
230
|
+
* for this press, and the press goes on to them, its capture phase on the
|
|
231
|
+
* page being over.
|
|
232
|
+
*/
|
|
233
|
+
private readonly onArmedPress;
|
|
234
|
+
/**
|
|
235
|
+
* After a contact ends: once no contact of the press that armed the page's
|
|
236
|
+
* listeners is down, they go (FR24). A recognizer still deciding after the
|
|
237
|
+
* lift needs no input; the click it may owe keeps its listener
|
|
238
|
+
* (releaseClickListener).
|
|
239
|
+
*/
|
|
240
|
+
private releaseArmedPress;
|
|
241
|
+
/**
|
|
242
|
+
* The click listener outlives the page's others while the swallower is
|
|
243
|
+
* armed: a claimed lift's click comes after its pointerup or touchend
|
|
244
|
+
* (`spec:AST-094` FR21; FR24 counts it as press work). It goes when that
|
|
245
|
+
* window closes, unless the host listens again by then.
|
|
246
|
+
*/
|
|
247
|
+
private releaseClickListener;
|
|
248
|
+
private install;
|
|
249
|
+
private uninstall;
|
|
250
|
+
/**
|
|
251
|
+
* The recognizers on the path from `target` to the document, innermost
|
|
252
|
+
* first, and (for a contact) its consumer: the innermost element with an
|
|
253
|
+
* attached consumer or a delegated consumer type's attribute.
|
|
254
|
+
*/
|
|
255
|
+
private participantsAt;
|
|
256
|
+
/** Whether this event is new to the host (and mark it handled). */
|
|
257
|
+
private takeEvent;
|
|
258
|
+
private readonly onTouchStart;
|
|
259
|
+
private readonly onTouchMove;
|
|
260
|
+
/**
|
|
261
|
+
* Under `inputMode: 'pointer-events'` a finger comes from its pointer
|
|
262
|
+
* events, so its touches carry no id of ours: the live finger it is, the
|
|
263
|
+
* nearest pointer-fed finger on the same target. Its touchmoves can then
|
|
264
|
+
* be cancelled once a recognizer claims it (`spec:AST-094` FR19, FR21).
|
|
265
|
+
*/
|
|
266
|
+
private pointerFingerAt;
|
|
267
|
+
/**
|
|
268
|
+
* Cancel the `touchend` of a finger a recognizer owned when it lifted
|
|
269
|
+
* (`inputMode: 'pointer-events'`): its `pointerup` came first, at the same
|
|
270
|
+
* place on the same target (`spec:AST-094` FR21).
|
|
271
|
+
*/
|
|
272
|
+
private cancelClaimedLift;
|
|
273
|
+
/**
|
|
274
|
+
* Cancel a `touchmove` while a recognizer owns one of its fingers. A touch
|
|
275
|
+
* no recognizer owns keeps its moves (`spec:AST-094` FR19): nothing is
|
|
276
|
+
* cancelled before a recognizer begins, or for a touch it does not track.
|
|
277
|
+
*/
|
|
278
|
+
private cancelIfClaimed;
|
|
279
|
+
private readonly onTouchEnd;
|
|
280
|
+
private readonly onTouchCancel;
|
|
281
|
+
/** The target's own listeners, for a target that left the document. */
|
|
282
|
+
private readonly onTargetTouchMove;
|
|
283
|
+
/** The same for a finger nothing could claim while it moves: never blocks. */
|
|
284
|
+
private readonly onTargetTouchMovePassive;
|
|
285
|
+
private readonly onTargetTouchEnd;
|
|
286
|
+
private readonly onTargetTouchCancel;
|
|
287
|
+
/**
|
|
288
|
+
* Cancel tracked fingers the event says are no longer down. `touches`
|
|
289
|
+
* lists every finger on the screen; one missing from it (and not lifting
|
|
290
|
+
* in this very event) ended where we could not see it.
|
|
291
|
+
*/
|
|
292
|
+
private dropFingersNotDown;
|
|
293
|
+
private watchTarget;
|
|
294
|
+
private unwatchTarget;
|
|
295
|
+
/**
|
|
296
|
+
* Keeps one `touchmove` listener on a watched target: the blocking one
|
|
297
|
+
* while a finger on it could be claimed as it moves, a passive one
|
|
298
|
+
* otherwise, so a scroll starting there never waits on the main thread
|
|
299
|
+
* (`spec:AST-094` FR19).
|
|
300
|
+
*/
|
|
301
|
+
private swapTargetTouchMove;
|
|
302
|
+
/** Stop tracking a finger by its Touch.identifier; returns its arena id. */
|
|
303
|
+
private forgetFinger;
|
|
304
|
+
private pairTouch;
|
|
305
|
+
private pairPointer;
|
|
306
|
+
/** Feed moves, dropping the echo of a move the other channel delivered. */
|
|
307
|
+
private feedMoves;
|
|
308
|
+
/**
|
|
309
|
+
* For one held press by a finger or a pen: text selection and the touch
|
|
310
|
+
* callout off on the elements whose hold does something (a long press),
|
|
311
|
+
* as `holdSelectionStyle` decides (`spec:AST-094` FR41, DEC-9).
|
|
312
|
+
* Everything else keeps the browser's long-press selection. Restored when
|
|
313
|
+
* the contact ends; refcounted across contacts on one element.
|
|
314
|
+
*/
|
|
315
|
+
private holdSelection;
|
|
316
|
+
/** Undo `holdSelection` for a contact that ended; idempotent. */
|
|
317
|
+
private releaseSelection;
|
|
318
|
+
/** Forget a contact's pairing and echo state. */
|
|
319
|
+
private forgetContact;
|
|
320
|
+
private readonly onPointerDown;
|
|
321
|
+
private readonly onPointerMove;
|
|
322
|
+
private readonly onPointerUp;
|
|
323
|
+
private readonly onPointerCancel;
|
|
324
|
+
/**
|
|
325
|
+
* Which live finger a touch `pointercancel` is about. The pointer keeps
|
|
326
|
+
* the target the finger landed on (implicit capture), as the Touch does;
|
|
327
|
+
* among fingers on that target, the nearest. WebKit also numbers the
|
|
328
|
+
* pointer like the Touch, which settles what position cannot.
|
|
329
|
+
*/
|
|
330
|
+
private touchForCancelledPointer;
|
|
331
|
+
private armSwallower;
|
|
332
|
+
private disarmSwallower;
|
|
333
|
+
private readonly onClick;
|
|
334
|
+
private replayClick;
|
|
335
|
+
private readonly onContextMenu;
|
|
336
|
+
/**
|
|
337
|
+
* A recognizer is about to scroll `scroller` itself (a menu's edge
|
|
338
|
+
* autoscroll, spec:AST-094 FR30): the scroll that write fires is not a
|
|
339
|
+
* finger's and not the browser taking one. It passes until the end of the
|
|
340
|
+
* next frame, when that event has fired; a real pan in that window still
|
|
341
|
+
* reports itself through pointercancel or touchcancel.
|
|
342
|
+
*/
|
|
343
|
+
ownScroll(scroller: Node): void;
|
|
344
|
+
private readonly onScroll;
|
|
345
|
+
private readonly onVisibilityChange;
|
|
346
|
+
private readonly onBlur;
|
|
347
|
+
/** The app lost focus: UIKit cancels every touch in flight. */
|
|
348
|
+
private cancelEverything;
|
|
349
|
+
}
|
|
350
|
+
/** The gesture host of a document, created on first use. */
|
|
351
|
+
export declare function getGestureHost(doc: Document): GestureHost;
|
|
352
|
+
//# sourceMappingURL=GestureHost.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GestureHost.d.ts","sourceRoot":"","sources":["../../src/gestures/GestureHost.ts"],"names":[],"mappings":"AA8FA,OAAO,EAEL,YAAY,EAGZ,KAAK,mBAAmB,EACxB,KAAK,YAAY,EAClB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAgB3D,OAAO,KAAK,EAEV,YAAY,EACZ,WAAW,EAEX,aAAa,EAGd,MAAM,SAAS,CAAC;AAyBjB,MAAM,WAAW,kBAAkB;IACjC,kDAAkD;IAClD,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,gBAAgB,CAAC;IACtC,4DAA4D;IAC5D,YAAY,CAAC,EAAE,mBAAmB,CAAC,cAAc,CAAC,CAAC;IACnD;;;;;;;OAOG;IACH,sBAAsB,CAAC,EAAE,MAAM,OAAO,CAAC;CACxC;AAED,MAAM,WAAW,aAAa;IAC5B;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAED;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,iDAAiD;IACjD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,GAAG,aAAa,GAAG,IAAI,CAAC;CAC1E;AAwHD,qBAAa,WAAW;IACtB,QAAQ,CAAC,KAAK,EAAE,YAAY,CAAC;IAC7B,OAAO,CAAC,QAAQ,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