@astryxdesign/core 0.7.8 → 0.7.9-canary.0200dfe
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/AppShell/observeMainOverflow.d.ts.map +1 -1
- package/dist/AppShell/observeMainOverflow.js +9 -6
- package/dist/BottomSheet/BottomSheet.d.ts.map +1 -1
- package/dist/BottomSheet/BottomSheet.js +37 -3
- package/dist/BottomSheet/BottomSheetPanel.d.ts.map +1 -1
- package/dist/BottomSheet/BottomSheetPanel.js +40 -8
- package/dist/BottomSheet/bottomSheetStack.d.ts.map +1 -1
- package/dist/BottomSheet/bottomSheetStack.js +4 -3
- package/dist/BottomSheet/useSheetGestures.d.ts.map +1 -1
- package/dist/BottomSheet/useSheetGestures.js +61 -21
- package/dist/Calendar/Calendar.d.ts +14 -2
- package/dist/Calendar/Calendar.d.ts.map +1 -1
- package/dist/Calendar/Calendar.js +63 -74
- package/dist/Calendar/getInitialFocusDate.d.ts +4 -1
- package/dist/Calendar/getInitialFocusDate.d.ts.map +1 -1
- package/dist/Calendar/getInitialFocusDate.js +7 -5
- package/dist/Calendar/hooks/useCalendarDays.d.ts +19 -2
- package/dist/Calendar/hooks/useCalendarDays.d.ts.map +1 -1
- package/dist/Calendar/hooks/useCalendarDays.js +57 -64
- package/dist/Calendar/hooks/useCalendarNavigation.d.ts +28 -3
- package/dist/Calendar/hooks/useCalendarNavigation.d.ts.map +1 -1
- package/dist/Calendar/hooks/useCalendarNavigation.js +33 -22
- package/dist/Calendar/styles.d.ts +1 -1
- package/dist/CheckboxInput/CheckboxInput.d.ts +2 -1
- package/dist/CheckboxInput/CheckboxInput.d.ts.map +1 -1
- package/dist/CheckboxInput/CheckboxInput.js +74 -18
- package/dist/CheckboxInput/CheckboxRowPressContext.d.ts +2 -0
- package/dist/CheckboxInput/CheckboxRowPressContext.d.ts.map +1 -0
- package/dist/CheckboxInput/CheckboxRowPressContext.js +20 -0
- package/dist/CheckboxList/CheckboxListItem.d.ts +2 -1
- package/dist/CheckboxList/CheckboxListItem.d.ts.map +1 -1
- package/dist/CheckboxList/CheckboxListItem.js +40 -14
- package/dist/ClickableCard/ClickableCard.d.ts +1 -1
- package/dist/ClickableCard/ClickableCard.d.ts.map +1 -1
- package/dist/ClickableCard/ClickableCard.js +5 -1
- package/dist/ContextMenu/ContextMenu.d.ts.map +1 -1
- package/dist/ContextMenu/ContextMenu.js +2 -0
- package/dist/DateInput/DateInput.d.ts +37 -6
- package/dist/DateInput/DateInput.d.ts.map +1 -1
- package/dist/DateInput/DateInput.js +97 -124
- package/dist/DateInput/MonthScroller.d.ts +5 -2
- package/dist/DateInput/MonthScroller.d.ts.map +1 -1
- package/dist/DateInput/MonthScroller.js +26 -29
- package/dist/DateInput/MonthYearWheels.d.ts +10 -1
- package/dist/DateInput/MonthYearWheels.d.ts.map +1 -1
- package/dist/DateInput/MonthYearWheels.js +54 -42
- package/dist/DateInput/PickerWheel.d.ts.map +1 -1
- package/dist/DateInput/PickerWheel.js +7 -1
- package/dist/DateInput/TouchDateField.d.ts +1 -1
- package/dist/DateInput/TouchDateField.d.ts.map +1 -1
- package/dist/DateInput/TouchDateField.js +26 -21
- package/dist/DateInput/monthGeometry.d.ts +42 -8
- package/dist/DateInput/monthGeometry.d.ts.map +1 -1
- package/dist/DateInput/monthGeometry.js +81 -7
- package/dist/DateInput/useCalendarPresentation.d.ts +10 -0
- package/dist/DateInput/useCalendarPresentation.d.ts.map +1 -0
- package/dist/DateInput/useCalendarPresentation.js +32 -0
- package/dist/DateInput/useTypedDate.d.ts +92 -0
- package/dist/DateInput/useTypedDate.d.ts.map +1 -0
- package/dist/DateInput/useTypedDate.js +269 -0
- package/dist/DateInput/wheelStrip.js +2 -2
- package/dist/DateRangeInput/DateRangeInput.d.ts +17 -1
- package/dist/DateRangeInput/DateRangeInput.d.ts.map +1 -1
- package/dist/DateRangeInput/DateRangeInput.js +15 -8
- package/dist/DateTimeInput/DateTimeInput.d.ts +26 -3
- package/dist/DateTimeInput/DateTimeInput.d.ts.map +1 -1
- package/dist/DateTimeInput/DateTimeInput.js +92 -88
- package/dist/DateTimeInput/TouchDateTimeField.d.ts +1 -1
- package/dist/DateTimeInput/TouchDateTimeField.d.ts.map +1 -1
- package/dist/DateTimeInput/TouchDateTimeField.js +26 -20
- package/dist/Dialog/Dialog.d.ts +2 -1
- package/dist/Dialog/Dialog.d.ts.map +1 -1
- package/dist/Dialog/Dialog.js +14 -3
- package/dist/Drawer/useDrawerDialogPresence.d.ts +2 -1
- package/dist/Drawer/useDrawerDialogPresence.d.ts.map +1 -1
- package/dist/Drawer/useDrawerDialogPresence.js +11 -2
- package/dist/DropdownMenu/DropdownMenu.d.ts +9 -1
- package/dist/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/dist/DropdownMenu/DropdownMenu.js +11 -8
- package/dist/DropdownMenu/DropdownMenuCheckboxItem.d.ts.map +1 -1
- package/dist/DropdownMenu/DropdownMenuCheckboxItem.js +3 -2
- package/dist/DropdownMenu/DropdownMenuItem.d.ts.map +1 -1
- package/dist/DropdownMenu/DropdownMenuItem.js +3 -2
- package/dist/DropdownMenu/DropdownMenuRadioItem.d.ts.map +1 -1
- package/dist/DropdownMenu/DropdownMenuRadioItem.js +3 -2
- package/dist/DropdownMenu/DropdownMenuSubMenu.d.ts.map +1 -1
- package/dist/DropdownMenu/DropdownMenuSubMenu.js +3 -2
- package/dist/Field/inputDisabledFocus.d.ts +4 -4
- package/dist/Field/inputStyles.stylex.d.ts +1 -1
- package/dist/FileInput/FileInput.d.ts.map +1 -1
- package/dist/FileInput/FileInput.js +16 -2
- package/dist/HoverCard/useHoverCard.d.ts +3 -1
- package/dist/HoverCard/useHoverCard.d.ts.map +1 -1
- package/dist/Icon/Icon.d.ts +1 -1
- package/dist/InfoTip/InfoTip.d.ts +1 -0
- package/dist/InfoTip/InfoTip.d.ts.map +1 -1
- package/dist/InfoTip/InfoTip.js +6 -18
- package/dist/InputGroup/InputGroup.d.ts +4 -3
- package/dist/InputGroup/InputGroup.d.ts.map +1 -1
- package/dist/InputGroup/InputGroup.js +2 -2
- package/dist/InputGroup/InputGroupText.d.ts +2 -1
- package/dist/InputGroup/InputGroupText.d.ts.map +1 -1
- package/dist/InputGroup/InputGroupText.js +2 -1
- package/dist/InputGroup/groupStyles.d.ts +1 -1
- package/dist/InputGroup/groupStyles.d.ts.map +1 -1
- package/dist/InputGroup/groupStyles.js +1 -1
- package/dist/Item/Item.d.ts +20 -1
- package/dist/Item/Item.d.ts.map +1 -1
- package/dist/Item/Item.js +97 -29
- package/dist/Item/ItemListRowContext.d.ts +2 -0
- package/dist/Item/ItemListRowContext.d.ts.map +1 -0
- package/dist/Item/ItemListRowContext.js +16 -0
- package/dist/Layer/holdEntranceInput.d.ts +24 -0
- package/dist/Layer/holdEntranceInput.d.ts.map +1 -0
- package/dist/Layer/holdEntranceInput.js +65 -0
- package/dist/Layer/inputHold.d.ts +49 -0
- package/dist/Layer/inputHold.d.ts.map +1 -0
- package/dist/Layer/inputHold.js +636 -0
- package/dist/Layer/outsidePress.d.ts +4 -0
- package/dist/Layer/outsidePress.d.ts.map +1 -1
- package/dist/Layer/outsidePress.js +18 -1
- package/dist/Layer/preserveAnimations.d.ts +1 -5
- package/dist/Layer/preserveAnimations.d.ts.map +1 -1
- package/dist/Layer/preserveAnimations.js +12 -214
- package/dist/Layer/useBackdropPress.d.ts +8 -0
- package/dist/Layer/useBackdropPress.d.ts.map +1 -1
- package/dist/Layer/useBackdropPress.js +31 -2
- package/dist/Layer/useLayer.d.ts +3 -1
- package/dist/Layer/useLayer.d.ts.map +1 -1
- package/dist/Layer/useLayer.js +64 -4
- package/dist/Layer/useTouchTrigger.d.ts.map +1 -1
- package/dist/Layer/useTouchTrigger.js +4 -0
- package/dist/Layout/LayoutContent.d.ts +3 -1
- package/dist/Layout/LayoutContent.d.ts.map +1 -1
- package/dist/Layout/LayoutContent.js +12 -4
- package/dist/Layout/LayoutPanel.d.ts +13 -10
- package/dist/Layout/LayoutPanel.d.ts.map +1 -1
- package/dist/Layout/LayoutPanel.js +81 -11
- package/dist/Lightbox/Lightbox.d.ts.map +1 -1
- package/dist/Lightbox/Lightbox.js +4 -0
- package/dist/List/List.d.ts.map +1 -1
- package/dist/List/List.js +1 -0
- package/dist/List/ListItem.d.ts +5 -4
- package/dist/List/ListItem.d.ts.map +1 -1
- package/dist/List/ListItem.js +45 -9
- package/dist/Markdown/parser.d.ts.map +1 -1
- package/dist/Markdown/parser.js +56 -39
- package/dist/MetadataList/MetadataList.js +1 -1
- package/dist/MobileNav/MobileNav.d.ts +11 -1
- package/dist/MobileNav/MobileNav.d.ts.map +1 -1
- package/dist/MobileNav/MobileNav.js +39 -1
- package/dist/MoreMenu/MoreMenu.d.ts +5 -3
- package/dist/MoreMenu/MoreMenu.d.ts.map +1 -1
- package/dist/MultiSelector/MultiSelector.d.ts.map +1 -1
- package/dist/MultiSelector/MultiSelector.js +6 -9
- package/dist/NumberInput/NumberInput.d.ts +4 -2
- package/dist/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/NumberInput/NumberInput.js +244 -11
- package/dist/OverflowList/OverflowList.d.ts.map +1 -1
- package/dist/OverflowList/OverflowList.js +7 -2
- package/dist/Popover/usePopover.d.ts +1 -0
- package/dist/Popover/usePopover.d.ts.map +1 -1
- package/dist/PowerSearch/PowerSearch.d.ts.map +1 -1
- package/dist/PowerSearch/PowerSearch.js +12 -5
- package/dist/PowerSearch/PowerSearchBottomSheet.d.ts.map +1 -1
- package/dist/PowerSearch/PowerSearchBottomSheet.js +4 -2
- package/dist/PowerSearch/PowerSearchToken.d.ts.map +1 -1
- package/dist/PowerSearch/PowerSearchToken.js +3 -1
- package/dist/PowerSearch/formatFilterValue.d.ts +9 -3
- package/dist/PowerSearch/formatFilterValue.d.ts.map +1 -1
- package/dist/PowerSearch/formatFilterValue.js +14 -11
- package/dist/PowerSearch/formatTokenValue.d.ts +6 -2
- package/dist/PowerSearch/formatTokenValue.d.ts.map +1 -1
- package/dist/PowerSearch/formatTokenValue.js +6 -3
- package/dist/RadioList/RadioListItem.d.ts.map +1 -1
- package/dist/RadioList/RadioListItem.js +16 -3
- package/dist/Resizable/ResizeHandle.d.ts +5 -5
- package/dist/Resizable/ResizeHandle.d.ts.map +1 -1
- package/dist/Resizable/ResizeHandle.js +44 -5
- package/dist/Resizable/resizablePane.d.ts +58 -0
- package/dist/Resizable/resizablePane.d.ts.map +1 -0
- package/dist/Resizable/resizablePane.js +137 -0
- package/dist/Resizable/useResizable.d.ts +7 -0
- package/dist/Resizable/useResizable.d.ts.map +1 -1
- package/dist/Resizable/useResizable.js +13 -0
- package/dist/SegmentedControl/useSegmentedSelectionMotion.js +3 -3
- package/dist/SelectableCard/SelectableCard.d.ts +1 -1
- package/dist/SelectableCard/SelectableCard.d.ts.map +1 -1
- package/dist/SelectableCard/SelectableCard.js +5 -1
- package/dist/Selector/Selector.d.ts.map +1 -1
- package/dist/Selector/Selector.js +51 -10
- package/dist/SideNav/SideNav.d.ts +9 -3
- package/dist/SideNav/SideNav.d.ts.map +1 -1
- package/dist/SideNav/SideNav.js +45 -10
- package/dist/Slider/sliderTouchController.js +2 -2
- package/dist/Spinner/Spinner.d.ts.map +1 -1
- package/dist/Spinner/Spinner.js +14 -71
- package/dist/Spinner/index.d.ts +1 -1
- package/dist/Spinner/index.d.ts.map +1 -1
- package/dist/Spinner/spinnerRotor.d.ts +28 -0
- package/dist/Spinner/spinnerRotor.d.ts.map +1 -0
- package/dist/Spinner/spinnerRotor.js +98 -0
- package/dist/Stack/StackItem.d.ts +8 -4
- package/dist/Stack/StackItem.d.ts.map +1 -1
- package/dist/Stack/StackItem.js +17 -4
- package/dist/Switch/Switch.d.ts.map +1 -1
- package/dist/Switch/Switch.js +13 -10
- package/dist/Switch/useSwitchTouch.js +4 -4
- package/dist/TabList/Tab.d.ts.map +1 -1
- package/dist/TabList/Tab.js +5 -1
- package/dist/Table/plugins/sortable/useTableSortable.js +1 -1
- package/dist/Timestamp/Timestamp.d.ts.map +1 -1
- package/dist/Timestamp/Timestamp.js +14 -8
- package/dist/Timestamp/formatInstant.d.ts +10 -1
- package/dist/Timestamp/formatInstant.d.ts.map +1 -1
- package/dist/Timestamp/formatInstant.js +13 -27
- package/dist/Timestamp/tooltipEntries.d.ts +5 -3
- package/dist/Timestamp/tooltipEntries.d.ts.map +1 -1
- package/dist/Timestamp/tooltipEntries.js +6 -4
- package/dist/Token/Token.d.ts.map +1 -1
- package/dist/Token/Token.js +9 -0
- package/dist/Token/TokenLink.d.ts +1 -1
- package/dist/Token/TokenLink.d.ts.map +1 -1
- package/dist/Token/TokenLink.js +4 -1
- package/dist/Tokenizer/Tokenizer.d.ts +14 -10
- package/dist/Tokenizer/Tokenizer.d.ts.map +1 -1
- package/dist/Tokenizer/Tokenizer.js +189 -89
- package/dist/Tooltip/useTooltip.d.ts +3 -1
- package/dist/Tooltip/useTooltip.d.ts.map +1 -1
- package/dist/Tooltip/useTooltip.js +164 -59
- package/dist/TreeList/TreeListItem.d.ts +2 -1
- package/dist/TreeList/TreeListItem.d.ts.map +1 -1
- package/dist/TreeList/TreeListItem.js +27 -3
- package/dist/Typeahead/BaseTypeahead.d.ts.map +1 -1
- package/dist/Typeahead/BaseTypeahead.js +2 -1
- package/dist/animator/createAnimator.js +2 -2
- package/dist/astryx.css +362 -325
- package/dist/gestures/GestureHost.d.ts +2 -2
- package/dist/gestures/GestureHost.d.ts.map +1 -1
- package/dist/gestures/GestureHost.js +21 -6
- package/dist/gestures/PanGestureRecognizer.d.ts +11 -1
- package/dist/gestures/PanGestureRecognizer.d.ts.map +1 -1
- package/dist/gestures/PanGestureRecognizer.js +15 -1
- package/dist/gestures/ScreenEdgePanGestureRecognizer.d.ts +6 -1
- package/dist/gestures/ScreenEdgePanGestureRecognizer.d.ts.map +1 -1
- package/dist/gestures/nativeScroll.d.ts +3 -6
- package/dist/gestures/nativeScroll.d.ts.map +1 -1
- package/dist/gestures/nativeScroll.js +7 -52
- package/dist/gestures/wheelSegmenter.d.ts +68 -1
- package/dist/gestures/wheelSegmenter.d.ts.map +1 -1
- package/dist/gestures/wheelSegmenter.js +199 -10
- package/dist/hooks/StackItemScrollRegion.d.ts +31 -0
- package/dist/hooks/StackItemScrollRegion.d.ts.map +1 -0
- package/dist/hooks/StackItemScrollRegion.js +40 -0
- package/dist/hooks/computeOverflow.d.ts +2 -0
- package/dist/hooks/computeOverflow.d.ts.map +1 -1
- package/dist/hooks/computeOverflow.js +1 -1
- package/dist/hooks/menuPressGesture.d.ts +133 -21
- package/dist/hooks/menuPressGesture.d.ts.map +1 -1
- package/dist/hooks/menuPressGesture.js +155 -30
- package/dist/hooks/menuPressValues.d.ts +16 -0
- package/dist/hooks/menuPressValues.d.ts.map +1 -0
- package/dist/hooks/menuPressValues.js +18 -0
- package/dist/hooks/useClickableContainer.d.ts +36 -7
- package/dist/hooks/useClickableContainer.d.ts.map +1 -1
- package/dist/hooks/useClickableContainer.js +63 -14
- package/dist/hooks/useFocusTrap.d.ts +10 -0
- package/dist/hooks/useFocusTrap.d.ts.map +1 -1
- package/dist/hooks/useFocusTrap.js +225 -132
- package/dist/hooks/useKeyboardHighlight.d.ts +17 -0
- package/dist/hooks/useKeyboardHighlight.d.ts.map +1 -0
- package/dist/hooks/useKeyboardHighlight.js +38 -0
- package/dist/hooks/useMediaQuery.d.ts +2 -1
- package/dist/hooks/useMediaQuery.d.ts.map +1 -1
- package/dist/hooks/useMediaQuery.js +37 -12
- package/dist/hooks/useMenuPress.d.ts +34 -1
- package/dist/hooks/useMenuPress.d.ts.map +1 -1
- package/dist/hooks/useMenuPress.js +93 -5
- package/dist/hooks/useOverflow.d.ts +10 -0
- package/dist/hooks/useOverflow.d.ts.map +1 -1
- package/dist/hooks/useOverflow.js +214 -23
- package/dist/hooks/usePressFeedback.d.ts +6 -6
- package/dist/hooks/usePressFeedback.js +6 -6
- package/dist/hooks/useScrollRegionProps.d.ts +35 -0
- package/dist/hooks/useScrollRegionProps.d.ts.map +1 -0
- package/dist/hooks/useScrollRegionProps.js +51 -0
- package/dist/i18n/InternationalizationContext.d.ts +6 -0
- package/dist/i18n/InternationalizationContext.d.ts.map +1 -1
- package/dist/i18n/InternationalizationProvider.d.ts +23 -3
- package/dist/i18n/InternationalizationProvider.d.ts.map +1 -1
- package/dist/i18n/InternationalizationProvider.js +8 -3
- package/dist/i18n/generated-english/DateInput/DateInput.generated.d.ts.map +1 -1
- package/dist/i18n/generated-english/DateInput/DateInput.generated.js +0 -1
- package/dist/i18n/generated-english/DateInput/useTypedDate.generated.d.ts +8 -0
- package/dist/i18n/generated-english/DateInput/useTypedDate.generated.d.ts.map +1 -0
- package/dist/i18n/generated-english/DateInput/useTypedDate.generated.js +16 -0
- package/dist/i18n/generated-english/DateTimeInput/DateTimeInput.generated.d.ts.map +1 -1
- package/dist/i18n/generated-english/DateTimeInput/DateTimeInput.generated.js +0 -1
- package/dist/i18n/generated-english/hooks/useScrollRegionProps.generated.d.ts +8 -0
- package/dist/i18n/generated-english/hooks/useScrollRegionProps.generated.d.ts.map +1 -0
- package/dist/i18n/generated-english/hooks/useScrollRegionProps.generated.js +12 -0
- 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/i18n/index.d.ts +2 -0
- package/dist/i18n/index.d.ts.map +1 -1
- package/dist/i18n/index.js +1 -0
- package/dist/i18n/useCalendarSystem.d.ts +19 -0
- package/dist/i18n/useCalendarSystem.d.ts.map +1 -0
- package/dist/i18n/useCalendarSystem.js +61 -0
- package/dist/internal/calendar-system.d.ts +18 -0
- package/dist/internal/calendar-system.d.ts.map +1 -0
- package/dist/internal/calendar-system.js +19 -0
- package/dist/internal/spinner-rotor.d.ts +16 -0
- package/dist/internal/spinner-rotor.d.ts.map +1 -0
- package/dist/internal/spinner-rotor.js +16 -0
- package/dist/internal/touch.d.ts +20 -2
- package/dist/internal/touch.d.ts.map +1 -1
- package/dist/internal/touch.js +29 -3
- package/dist/motion/animator.d.ts +5 -5
- package/dist/motion/animator.d.ts.map +1 -1
- package/dist/motion/animator.js +7 -6
- package/dist/motion/carryAnimations.d.ts +58 -0
- package/dist/motion/carryAnimations.d.ts.map +1 -0
- package/dist/motion/carryAnimations.js +305 -0
- package/dist/motion/transientCopy.d.ts +4 -2
- package/dist/motion/transientCopy.d.ts.map +1 -1
- package/dist/motion/transientCopy.js +34 -5
- package/dist/motion/uikit/gestures.d.ts +41 -0
- package/dist/motion/uikit/gestures.d.ts.map +1 -1
- package/dist/motion/uikit/gestures.js +25 -0
- package/dist/motion/uikit/index.d.ts +1 -1
- package/dist/motion/uikit/index.d.ts.map +1 -1
- package/dist/motion/uikit/index.js +1 -1
- package/dist/motion/uikit/timing.d.ts +14 -10
- package/dist/motion/uikit/timing.d.ts.map +1 -1
- package/dist/motion/uikit/timing.js +7 -5
- package/dist/privateAttributes/menuPressLit.stylex.d.ts +52 -0
- package/dist/privateAttributes/menuPressLit.stylex.d.ts.map +1 -0
- package/dist/privateAttributes/menuPressLit.stylex.js +99 -0
- package/dist/privateAttributes/press.stylex.d.ts +142 -0
- package/dist/privateAttributes/press.stylex.d.ts.map +1 -0
- package/dist/privateAttributes/press.stylex.js +101 -0
- package/dist/theme/themeMotion.d.ts +3 -2
- package/dist/theme/themeMotion.d.ts.map +1 -1
- package/dist/theme/themeMotion.js +3 -2
- package/dist/theme/tokens.stylex.d.ts +2 -2
- package/dist/theme/tokens.stylex.js +1 -1
- package/dist/utils/calendarDateParser.d.ts +110 -0
- package/dist/utils/calendarDateParser.d.ts.map +1 -0
- package/dist/utils/calendarDateParser.js +1225 -0
- package/dist/utils/calendarSystem.d.ts +176 -0
- package/dist/utils/calendarSystem.d.ts.map +1 -0
- package/dist/utils/calendarSystem.js +569 -0
- package/dist/utils/coarsePointer.d.ts +5 -0
- package/dist/utils/coarsePointer.d.ts.map +1 -1
- package/dist/utils/coarsePointer.js +22 -13
- package/dist/utils/flatTree.d.ts +6 -3
- package/dist/utils/flatTree.d.ts.map +1 -1
- package/dist/utils/flatTree.js +13 -3
- package/dist/utils/focusReturn.d.ts +34 -13
- package/dist/utils/focusReturn.d.ts.map +1 -1
- package/dist/utils/focusReturn.js +64 -17
- package/dist/utils/hitArea.d.ts +8 -1
- package/dist/utils/hitArea.d.ts.map +1 -1
- package/dist/utils/hitArea.js +99 -9
- package/dist/utils/inputPresentation.d.ts +9 -1
- package/dist/utils/inputPresentation.d.ts.map +1 -1
- package/dist/utils/inputPresentation.js +15 -1
- package/dist/utils/inputStream.d.ts +14 -1
- package/dist/utils/inputStream.d.ts.map +1 -1
- package/dist/utils/inputStream.js +40 -9
- package/dist/utils/interactionOverlay.stylex.d.ts +5 -9
- package/dist/utils/interactionOverlay.stylex.d.ts.map +1 -1
- package/dist/utils/interactionOverlay.stylex.js +29 -31
- package/dist/utils/plainDate.d.ts +38 -7
- package/dist/utils/plainDate.d.ts.map +1 -1
- package/dist/utils/plainDate.js +92 -18
- package/dist/utils/pressFeedback.d.ts +10 -2
- package/dist/utils/pressFeedback.d.ts.map +1 -1
- package/dist/utils/pressFeedback.js +40 -15
- package/dist/utils/pressGesture.d.ts +12 -6
- package/dist/utils/pressGesture.d.ts.map +1 -1
- package/dist/utils/pressGesture.js +26 -8
- package/dist/utils/scrollView.d.ts +25 -0
- package/dist/utils/scrollView.d.ts.map +1 -0
- package/dist/utils/scrollView.js +108 -0
- package/dist/utils/selectionLock.d.ts.map +1 -1
- package/dist/utils/selectionLock.js +1 -10
- package/dist/utils/touchHitArea.d.ts +30 -0
- package/dist/utils/touchHitArea.d.ts.map +1 -0
- package/dist/utils/touchHitArea.js +167 -0
- package/dist/utils/touchHitArea.stylex.d.ts +38 -0
- package/dist/utils/touchHitArea.stylex.d.ts.map +1 -0
- package/dist/utils/touchHitArea.stylex.js +48 -0
- package/dist/utils/triggerFocus.d.ts +5 -0
- package/dist/utils/triggerFocus.d.ts.map +1 -1
- package/dist/utils/triggerFocus.js +9 -2
- package/locales/en.json +21 -1
- package/locales/pseudo.json +15 -0
- package/package.json +15 -4
- package/src/AppShell/observeMainOverflow.ts +9 -6
- package/src/BottomSheet/BottomSheet.tsx +45 -3
- package/src/BottomSheet/BottomSheetPanel.tsx +64 -7
- package/src/BottomSheet/bottomSheetStack.ts +4 -3
- package/src/BottomSheet/useSheetGestures.ts +83 -20
- package/src/Calendar/Calendar.doc.mjs +76 -6
- package/src/Calendar/Calendar.tsx +123 -104
- package/src/Calendar/getInitialFocusDate.ts +22 -8
- package/src/Calendar/hooks/useCalendarDays.ts +89 -63
- package/src/Calendar/hooks/useCalendarNavigation.ts +68 -26
- package/src/CheckboxInput/CheckboxInput.doc.mjs +5 -4
- package/src/CheckboxInput/CheckboxInput.tsx +105 -20
- package/src/CheckboxInput/CheckboxRowPressContext.ts +22 -0
- package/src/CheckboxList/CheckboxList.doc.mjs +9 -0
- package/src/CheckboxList/CheckboxListItem.doc.mjs +3 -3
- package/src/CheckboxList/CheckboxListItem.tsx +35 -14
- package/src/ClickableCard/ClickableCard.tsx +8 -1
- package/src/ContextMenu/ContextMenu.tsx +2 -0
- package/src/DateInput/DateInput.doc.mjs +45 -12
- package/src/DateInput/DateInput.tsx +165 -179
- package/src/DateInput/MonthScroller.tsx +39 -37
- package/src/DateInput/MonthYearWheels.tsx +68 -47
- package/src/DateInput/PickerWheel.tsx +7 -2
- package/src/DateInput/TouchDateField.tsx +45 -17
- package/src/DateInput/monthGeometry.ts +110 -8
- package/src/DateInput/useCalendarPresentation.ts +64 -0
- package/src/DateInput/useTypedDate.ts +469 -0
- package/src/DateInput/wheelStrip.ts +2 -2
- package/src/DateRangeInput/DateRangeInput.doc.mjs +9 -0
- package/src/DateRangeInput/DateRangeInput.tsx +43 -9
- package/src/DateTimeInput/DateTimeInput.doc.mjs +42 -9
- package/src/DateTimeInput/DateTimeInput.tsx +138 -148
- package/src/DateTimeInput/TouchDateTimeField.tsx +31 -16
- package/src/Dialog/Dialog.doc.mjs +1 -1
- package/src/Dialog/Dialog.tsx +14 -2
- package/src/Drawer/Drawer.doc.mjs +1 -1
- package/src/Drawer/useDrawerDialogPresence.ts +9 -2
- package/src/DropdownMenu/DropdownMenu.doc.mjs +1 -2
- package/src/DropdownMenu/DropdownMenu.tsx +31 -7
- package/src/DropdownMenu/DropdownMenuCheckboxItem.tsx +5 -1
- package/src/DropdownMenu/DropdownMenuItem.tsx +8 -4
- package/src/DropdownMenu/DropdownMenuRadioItem.tsx +5 -1
- package/src/DropdownMenu/DropdownMenuSubMenu.tsx +5 -1
- package/src/FileInput/FileInput.tsx +16 -2
- package/src/HoverCard/useHoverCard.tsx +3 -1
- package/src/Icon/useIcon.doc.mjs +94 -0
- package/src/InfoTip/InfoTip.doc.mjs +26 -2
- package/src/InfoTip/InfoTip.tsx +6 -27
- package/src/InputGroup/InputGroup.doc.mjs +4 -3
- package/src/InputGroup/InputGroup.tsx +4 -3
- package/src/InputGroup/InputGroupText.doc.mjs +45 -3
- package/src/InputGroup/InputGroupText.tsx +2 -1
- package/src/InputGroup/groupStyles.ts +3 -1
- package/src/Item/Item.tsx +139 -35
- package/src/Item/ItemListRowContext.tsx +18 -0
- package/src/Layer/holdEntranceInput.ts +84 -0
- package/src/Layer/inputHold.ts +734 -0
- package/src/Layer/outsidePress.ts +18 -1
- package/src/Layer/preserveAnimations.ts +12 -275
- package/src/Layer/useBackdropPress.ts +41 -1
- package/src/Layer/useLayer.tsx +77 -4
- package/src/Layer/useTouchTrigger.ts +4 -0
- package/src/Layout/LayoutContent.doc.mjs +6 -3
- package/src/Layout/LayoutContent.tsx +10 -4
- package/src/Layout/LayoutPanel.doc.mjs +14 -11
- package/src/Layout/LayoutPanel.tsx +113 -16
- package/src/Lightbox/Lightbox.tsx +4 -0
- package/src/List/List.doc.mjs +10 -1
- package/src/List/List.tsx +5 -0
- package/src/List/ListItem.tsx +63 -8
- package/src/Markdown/parser.ts +65 -42
- package/src/MetadataList/MetadataList.tsx +1 -1
- package/src/MobileNav/MobileNav.doc.mjs +3 -3
- package/src/MobileNav/MobileNav.tsx +39 -1
- package/src/MoreMenu/MoreMenu.doc.mjs +2 -4
- package/src/MoreMenu/MoreMenu.tsx +5 -3
- package/src/MultiSelector/MultiSelector.tsx +7 -17
- package/src/NumberInput/NumberInput.doc.mjs +1 -1
- package/src/NumberInput/NumberInput.tsx +259 -11
- package/src/OverflowList/OverflowList.tsx +15 -9
- package/src/Popover/usePopover.tsx +1 -0
- package/src/PowerSearch/PowerSearch.doc.mjs +3 -3
- package/src/PowerSearch/PowerSearch.tsx +20 -3
- package/src/PowerSearch/PowerSearchBottomSheet.tsx +4 -1
- package/src/PowerSearch/PowerSearchToken.tsx +3 -0
- package/src/PowerSearch/formatFilterValue.ts +21 -11
- package/src/PowerSearch/formatTokenValue.ts +7 -1
- package/src/RadioList/RadioListItem.doc.mjs +3 -2
- package/src/RadioList/RadioListItem.tsx +16 -6
- package/src/Resizable/Resizable.doc.mjs +40 -12
- package/src/Resizable/ResizeHandle.tsx +68 -6
- package/src/Resizable/resizablePane.ts +179 -0
- package/src/Resizable/useResizable.ts +15 -0
- package/src/SegmentedControl/useSegmentedSelectionMotion.ts +3 -3
- package/src/SelectableCard/SelectableCard.tsx +8 -1
- package/src/Selector/Selector.tsx +83 -8
- package/src/SideNav/SideNav.doc.mjs +2 -2
- package/src/SideNav/SideNav.tsx +87 -12
- package/src/Slider/sliderTouchController.ts +2 -2
- package/src/Spinner/Spinner.tsx +7 -89
- package/src/Spinner/index.ts +1 -5
- package/src/Spinner/spinnerRotor.ts +113 -0
- package/src/Stack/Stack.doc.mjs +1 -1
- package/src/Stack/StackItem.tsx +27 -13
- package/src/Switch/Switch.tsx +7 -6
- package/src/Switch/useSwitchTouch.ts +4 -4
- package/src/TabList/Tab.tsx +5 -1
- package/src/Table/plugins/sortable/useTableSortable.tsx +1 -1
- package/src/Timestamp/Timestamp.doc.mjs +3 -3
- package/src/Timestamp/Timestamp.tsx +13 -8
- package/src/Timestamp/formatInstant.ts +49 -28
- package/src/Timestamp/tooltipEntries.ts +7 -3
- package/src/Token/Token.tsx +18 -1
- package/src/Token/TokenLink.tsx +7 -1
- package/src/Tokenizer/Tokenizer.doc.mjs +3 -3
- package/src/Tokenizer/Tokenizer.tsx +252 -115
- package/src/Tooltip/useTooltip.tsx +180 -80
- package/src/TreeList/TreeListItem.tsx +36 -2
- package/src/Typeahead/BaseTypeahead.tsx +2 -0
- package/src/animator/createAnimator.ts +3 -3
- package/src/gestures/GestureHost.ts +21 -5
- package/src/gestures/PanGestureRecognizer.ts +19 -2
- package/src/gestures/README.md +14 -5
- package/src/gestures/ScreenEdgePanGestureRecognizer.ts +6 -1
- package/src/gestures/nativeScroll.ts +12 -68
- package/src/gestures/wheelSegmenter.ts +243 -10
- package/src/hooks/StackItemScrollRegion.tsx +57 -0
- package/src/hooks/computeOverflow.ts +1 -1
- package/src/hooks/menuPressGesture.ts +244 -38
- package/src/hooks/menuPressValues.ts +18 -0
- package/src/hooks/useClickableContainer.doc.mjs +8 -2
- package/src/hooks/useClickableContainer.ts +93 -15
- package/src/hooks/useFocusTrap.ts +268 -151
- package/src/hooks/useKeyboardHighlight.ts +71 -0
- package/src/hooks/useMediaQuery.ts +41 -12
- package/src/hooks/useMenuPress.ts +118 -11
- package/src/hooks/useOverflow.ts +321 -75
- package/src/hooks/usePressFeedback.doc.mjs +3 -3
- package/src/hooks/usePressFeedback.ts +6 -6
- package/src/hooks/useScrollRegionProps.ts +76 -0
- package/src/i18n/InternationalizationContext.ts +6 -0
- package/src/i18n/InternationalizationProvider.doc.mjs +29 -1
- package/src/i18n/InternationalizationProvider.tsx +35 -3
- package/src/i18n/generated-english/DateInput/DateInput.generated.ts +0 -1
- package/src/i18n/generated-english/DateInput/useTypedDate.generated.ts +17 -0
- package/src/i18n/generated-english/DateTimeInput/DateTimeInput.generated.ts +0 -1
- package/src/i18n/generated-english/hooks/useScrollRegionProps.generated.ts +13 -0
- package/src/i18n/generated-locales/en.generated.ts +7 -0
- package/src/i18n/generated-locales/pseudo.generated.ts +7 -0
- package/src/i18n/index.ts +2 -0
- package/src/i18n/useCalendarSystem.ts +95 -0
- package/src/internal/calendar-system.ts +26 -0
- package/src/internal/spinner-rotor.ts +20 -0
- package/src/internal/touch.ts +43 -2
- package/src/motion/MEASUREMENTS.md +11 -0
- package/src/motion/README.md +3 -3
- package/src/motion/animator.ts +7 -7
- package/src/motion/carryAnimations.ts +389 -0
- package/src/motion/transientCopy.ts +45 -5
- package/src/motion/uikit/gestures.ts +22 -0
- package/src/motion/uikit/index.ts +1 -0
- package/src/motion/uikit/timing.ts +7 -5
- package/src/privateAttributes/menuPressLit.stylex.ts +104 -0
- package/src/privateAttributes/press.stylex.ts +261 -0
- package/src/theme/themeMotion.ts +3 -2
- package/src/theme/tokens.stylex.ts +1 -1
- package/src/utils/calendarDateParser.ts +1385 -0
- package/src/utils/calendarSystem.ts +832 -0
- package/src/utils/coarsePointer.ts +27 -14
- package/src/utils/flatTree.ts +15 -3
- package/src/utils/focusReturn.ts +78 -18
- package/src/utils/hitArea.ts +138 -9
- package/src/utils/inputPresentation.ts +21 -1
- package/src/utils/inputStream.ts +47 -10
- package/src/utils/interactionOverlay.stylex.ts +19 -22
- package/src/utils/plainDate.ts +130 -19
- package/src/utils/pressFeedback.ts +46 -14
- package/src/utils/pressGesture.ts +35 -9
- package/src/utils/scrollView.ts +135 -0
- package/src/utils/selectionLock.ts +5 -10
- package/src/utils/touchHitArea.stylex.ts +56 -0
- package/src/utils/touchHitArea.ts +177 -0
- package/src/utils/triggerFocus.ts +17 -4
package/src/motion/README.md
CHANGED
|
@@ -69,7 +69,7 @@ the timings that decide who gets a touch are not roles.
|
|
|
69
69
|
## Animator
|
|
70
70
|
|
|
71
71
|
```
|
|
72
|
-
import {
|
|
72
|
+
import {createMotionEngine} from '../motion/animator';
|
|
73
73
|
import {coast} from '../motion/coast';
|
|
74
74
|
import {solveSpringTowardRamp, toSpring} from '../motion/spring';
|
|
75
75
|
import {resolveMotion} from '../motion/resolveMotion';
|
|
@@ -78,7 +78,7 @@ import {registerSpringsTable, springs} from '../motion/uikit';
|
|
|
78
78
|
// Once, so the springs are registered as their roles:
|
|
79
79
|
registerSpringsTable();
|
|
80
80
|
|
|
81
|
-
const animator =
|
|
81
|
+
const animator = createMotionEngine(sheet);
|
|
82
82
|
// The animator plays a motion role (spec:AST-094 FR4), its table value, as the
|
|
83
83
|
// per-role tables stay internal (DEC-15); math on a spring reads the role with
|
|
84
84
|
// resolveMotion.
|
|
@@ -175,7 +175,7 @@ await handle.finished; // true if it ran to the end, false if interrupted
|
|
|
175
175
|
- `animatorFor(element)` returns the one animator for an element, so code
|
|
176
176
|
that animates it from several places (a swipe on x, a removal on y)
|
|
177
177
|
composes in one `translate` track.
|
|
178
|
-
- `
|
|
178
|
+
- `createMotionEngine(dialog, {pseudoElement: '::backdrop'})` drives a
|
|
179
179
|
pseudo-element; with no inline style to hold it, a static filling animation
|
|
180
180
|
holds its end value until the next animation replaces it, while the
|
|
181
181
|
pseudo-element exists. A dialog's `::backdrop` is made again each time the
|
package/src/motion/animator.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @file animator.ts
|
|
5
5
|
* @input An element, target values, and a spring, momentum curves (coast.ts)
|
|
6
6
|
* or any closed-form curve
|
|
7
|
-
* @output Exports `
|
|
7
|
+
* @output Exports `createMotionEngine`, a compositor animator for
|
|
8
8
|
* translate, rotate, scale and opacity, and its option, handle and
|
|
9
9
|
* transition types. It reads presentation values and velocities from the
|
|
10
10
|
* analytic curves. It retargets with the velocity kept, freezes in place on
|
|
@@ -299,9 +299,6 @@ export interface MotionCurve {
|
|
|
299
299
|
readonly isTransition?: boolean;
|
|
300
300
|
}
|
|
301
301
|
|
|
302
|
-
/**
|
|
303
|
-
* Options of `createMotionAnimator`.
|
|
304
|
-
*/
|
|
305
302
|
/** How `set` puts values in place. */
|
|
306
303
|
export interface SetOptions {
|
|
307
304
|
/**
|
|
@@ -317,6 +314,9 @@ export interface SetOptions {
|
|
|
317
314
|
promote?: boolean;
|
|
318
315
|
}
|
|
319
316
|
|
|
317
|
+
/**
|
|
318
|
+
* Options of `createMotionEngine`.
|
|
319
|
+
*/
|
|
320
320
|
export interface AnimatorOptions {
|
|
321
321
|
/**
|
|
322
322
|
* Animates a pseudo-element of the element instead (`'::backdrop'` of a
|
|
@@ -811,7 +811,7 @@ export function animatorFor(
|
|
|
811
811
|
const key = options.pseudoElement ?? '';
|
|
812
812
|
let animator = byPseudo.get(key);
|
|
813
813
|
if (animator == null) {
|
|
814
|
-
animator =
|
|
814
|
+
animator = createMotionEngine(element, options);
|
|
815
815
|
byPseudo.set(key, animator);
|
|
816
816
|
}
|
|
817
817
|
return animator;
|
|
@@ -928,7 +928,7 @@ const REDUCED_TRANSITION: SpringTransition = {
|
|
|
928
928
|
*
|
|
929
929
|
* @example
|
|
930
930
|
* ```
|
|
931
|
-
* const animator =
|
|
931
|
+
* const animator = createMotionEngine(sheet);
|
|
932
932
|
* // finger lifts at 1200 px/s heading for the detent at 0 (a component
|
|
933
933
|
* // passes the spring of its motion role):
|
|
934
934
|
* animator.animate({y: 0}, {spring: {response: 0.45, dampingRatio: 0.9}, velocity: {y: 1200}});
|
|
@@ -937,7 +937,7 @@ const REDUCED_TRANSITION: SpringTransition = {
|
|
|
937
937
|
* animator.stop(['y']);
|
|
938
938
|
* ```
|
|
939
939
|
*/
|
|
940
|
-
export function
|
|
940
|
+
export function createMotionEngine(
|
|
941
941
|
element: HTMLElement | null,
|
|
942
942
|
options: AnimatorOptions = {},
|
|
943
943
|
): Animator {
|
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
// Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @file carryAnimations.ts
|
|
5
|
+
* @input The CSS animations and transitions of an element and its subtree,
|
|
6
|
+
* read before the browser starts them afresh
|
|
7
|
+
* @output Exports `saveAnimations` and `carryAnimations`, which carry them on
|
|
8
|
+
* in a clone of the element. Also `saveAnimation` and `restoreAnimations`,
|
|
9
|
+
* which put them back after a display reset
|
|
10
|
+
* @position Motion foundation; the transient copy (transientCopy.ts) and the
|
|
11
|
+
* layer runtime's re-placement (Layer/preserveAnimations.ts) use it
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Animation members written in a fixed order rather than generically: the
|
|
16
|
+
* timeline before the range that is measured on it, the rate before the
|
|
17
|
+
* time, and the start time (or, for a paused animation, the current time)
|
|
18
|
+
* last, once the play state is set. `effect` is not
|
|
19
|
+
* replaced, because a CSS animation whose effect script replaces leaves the
|
|
20
|
+
* stylesheet's control; its state is copied onto the new effect instead.
|
|
21
|
+
*/
|
|
22
|
+
const ORDERED = new Set([
|
|
23
|
+
'effect',
|
|
24
|
+
'timeline',
|
|
25
|
+
'rangeStart',
|
|
26
|
+
'rangeEnd',
|
|
27
|
+
'playbackRate',
|
|
28
|
+
'startTime',
|
|
29
|
+
'currentTime',
|
|
30
|
+
]);
|
|
31
|
+
|
|
32
|
+
type Writable = Record<string, unknown>;
|
|
33
|
+
|
|
34
|
+
/** Every accessor with a setter on `object`'s prototype chain. */
|
|
35
|
+
function writableAccessors(object: object): string[] {
|
|
36
|
+
const names = new Set<string>();
|
|
37
|
+
for (
|
|
38
|
+
let proto: object | null = Object.getPrototypeOf(object);
|
|
39
|
+
proto != null && proto !== Object.prototype;
|
|
40
|
+
proto = Object.getPrototypeOf(proto)
|
|
41
|
+
) {
|
|
42
|
+
for (const [name, descriptor] of Object.entries(
|
|
43
|
+
Object.getOwnPropertyDescriptors(proto),
|
|
44
|
+
)) {
|
|
45
|
+
if (descriptor.set != null) {
|
|
46
|
+
names.add(name);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return [...names];
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* A textual form of a value that is compared by content rather than by
|
|
55
|
+
* identity: a CSS numeric value (as in a timeline range offset) through its
|
|
56
|
+
* serialization, a plain object (a range) through its members. Anything else
|
|
57
|
+
* is compared by identity (`null`).
|
|
58
|
+
*/
|
|
59
|
+
function contentOf(value: unknown): string | null {
|
|
60
|
+
if (
|
|
61
|
+
typeof CSSNumericValue !== 'undefined' &&
|
|
62
|
+
value instanceof CSSNumericValue
|
|
63
|
+
) {
|
|
64
|
+
return value.toString();
|
|
65
|
+
}
|
|
66
|
+
if (
|
|
67
|
+
value != null &&
|
|
68
|
+
typeof value === 'object' &&
|
|
69
|
+
Object.getPrototypeOf(value) === Object.prototype
|
|
70
|
+
) {
|
|
71
|
+
return Object.entries(value)
|
|
72
|
+
.map(([key, inner]) => `${key}:${contentOf(inner) ?? String(inner)}`)
|
|
73
|
+
.join(';');
|
|
74
|
+
}
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function differs(a: unknown, b: unknown): boolean {
|
|
79
|
+
if (a === b) {
|
|
80
|
+
return false;
|
|
81
|
+
}
|
|
82
|
+
const textA = contentOf(a);
|
|
83
|
+
return textA == null || textA !== contentOf(b);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/** One animation's state, read before the browser starts it afresh. */
|
|
87
|
+
export interface SavedAnimation {
|
|
88
|
+
animation: Animation;
|
|
89
|
+
name: string;
|
|
90
|
+
target: Element | null;
|
|
91
|
+
pseudoElement: string | null;
|
|
92
|
+
values: Writable;
|
|
93
|
+
effectValues: Writable;
|
|
94
|
+
timing: EffectTiming | null;
|
|
95
|
+
keyframes: ComputedKeyframe[] | null;
|
|
96
|
+
playState: AnimationPlayState;
|
|
97
|
+
replaceState: AnimationReplaceState;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Reads one animation's state generically, from what the platform exposes.
|
|
102
|
+
* That is every accessor with a setter on the animation's and its effect's
|
|
103
|
+
* prototype chains, every field of the effect's timing, and its keyframes. Only values
|
|
104
|
+
* that differ from the recreated animation's are written back, so a value the
|
|
105
|
+
* stylesheet controls stays under its control. A few members are not plain
|
|
106
|
+
* state and are written in their own step (`ORDERED`). The Animation and
|
|
107
|
+
* effect objects themselves cannot be carried over: the old ones keep their
|
|
108
|
+
* listeners and promises.
|
|
109
|
+
*/
|
|
110
|
+
export function saveAnimation(animation: Animation): SavedAnimation {
|
|
111
|
+
const effect = animation.effect as KeyframeEffect | null;
|
|
112
|
+
const values: Writable = {};
|
|
113
|
+
for (const name of writableAccessors(animation)) {
|
|
114
|
+
values[name] = (animation as unknown as Writable)[name];
|
|
115
|
+
}
|
|
116
|
+
const effectValues: Writable = {};
|
|
117
|
+
if (effect != null) {
|
|
118
|
+
for (const name of writableAccessors(effect)) {
|
|
119
|
+
effectValues[name] = (effect as unknown as Writable)[name];
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
return {
|
|
123
|
+
animation,
|
|
124
|
+
name:
|
|
125
|
+
(animation as Animation & {animationName?: string}).animationName ?? '',
|
|
126
|
+
target: effect?.target ?? null,
|
|
127
|
+
pseudoElement: effect?.pseudoElement ?? null,
|
|
128
|
+
values,
|
|
129
|
+
effectValues,
|
|
130
|
+
timing: effect?.getTiming() ?? null,
|
|
131
|
+
keyframes: effect?.getKeyframes() ?? null,
|
|
132
|
+
playState: animation.playState,
|
|
133
|
+
replaceState: animation.replaceState,
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
function write(object: object, name: string, value: unknown): void {
|
|
138
|
+
(object as Writable)[name] = value;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/** Give `next` the effect state `saved` had: every writable member. */
|
|
142
|
+
function restoreEffect(next: KeyframeEffect, saved: SavedAnimation): void {
|
|
143
|
+
for (const name of writableAccessors(next)) {
|
|
144
|
+
if (
|
|
145
|
+
name in saved.effectValues &&
|
|
146
|
+
differs(saved.effectValues[name], (next as unknown as Writable)[name])
|
|
147
|
+
) {
|
|
148
|
+
write(next, name, saved.effectValues[name]);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
if (saved.timing != null) {
|
|
152
|
+
const timing = next.getTiming() as unknown as Writable;
|
|
153
|
+
const changed: Writable = {};
|
|
154
|
+
for (const [field, value] of Object.entries(saved.timing)) {
|
|
155
|
+
if (differs(value, timing[field])) {
|
|
156
|
+
changed[field] = value;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
if (Object.keys(changed).length > 0) {
|
|
160
|
+
next.updateTiming(changed);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
if (
|
|
164
|
+
saved.keyframes != null &&
|
|
165
|
+
JSON.stringify(saved.keyframes) !== JSON.stringify(next.getKeyframes())
|
|
166
|
+
) {
|
|
167
|
+
next.setKeyframes(saved.keyframes);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/** Give `next` the state `saved` had, member by member. */
|
|
172
|
+
function restore(next: Animation, saved: SavedAnimation): void {
|
|
173
|
+
const effect = next.effect as KeyframeEffect | null;
|
|
174
|
+
if (effect != null) {
|
|
175
|
+
restoreEffect(effect, saved);
|
|
176
|
+
}
|
|
177
|
+
const current = next as unknown as Writable;
|
|
178
|
+
for (const name of ['timeline', 'rangeStart', 'rangeEnd']) {
|
|
179
|
+
if (name in saved.values && differs(saved.values[name], current[name])) {
|
|
180
|
+
write(next, name, saved.values[name]);
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
for (const name of writableAccessors(next)) {
|
|
184
|
+
if (
|
|
185
|
+
!ORDERED.has(name) &&
|
|
186
|
+
name in saved.values &&
|
|
187
|
+
differs(saved.values[name], current[name])
|
|
188
|
+
) {
|
|
189
|
+
write(next, name, saved.values[name]);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
if (saved.replaceState === 'persisted' && next.replaceState !== 'persisted') {
|
|
193
|
+
next.persist();
|
|
194
|
+
}
|
|
195
|
+
const rate = saved.values.playbackRate;
|
|
196
|
+
if (typeof rate === 'number' && rate !== next.playbackRate) {
|
|
197
|
+
next.playbackRate = rate;
|
|
198
|
+
}
|
|
199
|
+
if (saved.playState === 'paused' && next.playState !== 'paused') {
|
|
200
|
+
next.pause();
|
|
201
|
+
} else if (saved.playState !== 'paused' && next.playState === 'paused') {
|
|
202
|
+
next.play();
|
|
203
|
+
}
|
|
204
|
+
// A running animation is anchored to its timeline by its start time, which
|
|
205
|
+
// carries its current time on exactly. A paused one has none and keeps its
|
|
206
|
+
// current time. A finished one holds its end: finishing it again holds the
|
|
207
|
+
// same time, though its start time is then counted from now, since script
|
|
208
|
+
// cannot set a start time and a held time together.
|
|
209
|
+
const start = saved.values.startTime as CSSNumberish | null | undefined;
|
|
210
|
+
const time = saved.values.currentTime as CSSNumberish | null | undefined;
|
|
211
|
+
if (saved.playState === 'finished') {
|
|
212
|
+
next.finish();
|
|
213
|
+
} else if (start != null) {
|
|
214
|
+
next.startTime = start;
|
|
215
|
+
} else if (time != null) {
|
|
216
|
+
next.currentTime = time;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/** Resume a cancelled CSS transition with a script animation in its state. */
|
|
221
|
+
function resumeTransition(saved: SavedAnimation): void {
|
|
222
|
+
if (saved.target == null || saved.keyframes == null) {
|
|
223
|
+
return;
|
|
224
|
+
}
|
|
225
|
+
const replacement = saved.target.animate(saved.keyframes, {
|
|
226
|
+
pseudoElement: saved.pseudoElement ?? undefined,
|
|
227
|
+
});
|
|
228
|
+
restore(replacement, saved);
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
function isTransition(animation: Animation): boolean {
|
|
232
|
+
return (
|
|
233
|
+
typeof CSSTransition !== 'undefined' && animation instanceof CSSTransition
|
|
234
|
+
);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
function isCssAnimation(animation: Animation): animation is CSSAnimation {
|
|
238
|
+
return (
|
|
239
|
+
typeof CSSAnimation !== 'undefined' && animation instanceof CSSAnimation
|
|
240
|
+
);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Finishes an animation that ends: an infinite one cannot be finished, and is
|
|
245
|
+
* left as it runs.
|
|
246
|
+
*/
|
|
247
|
+
function finishIfItEnds(animation: Animation): void {
|
|
248
|
+
const end = animation.effect?.getComputedTiming().endTime;
|
|
249
|
+
if (
|
|
250
|
+
end != null &&
|
|
251
|
+
Number.isFinite(Number(end)) &&
|
|
252
|
+
animation.playbackRate !== 0
|
|
253
|
+
) {
|
|
254
|
+
animation.finish();
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/** The members a copy's animation does not take: its element's keep them. */
|
|
259
|
+
const IDENTITY_MEMBERS = new Set(['id', 'onfinish', 'oncancel', 'onremove']);
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* `saved` for an animation that carries on on the copy of its element:
|
|
263
|
+
* aimed at the copy, without the element's id and event handlers.
|
|
264
|
+
*/
|
|
265
|
+
function retarget(
|
|
266
|
+
saved: SavedAnimation,
|
|
267
|
+
copyOf: (element: Element) => Element | null,
|
|
268
|
+
): SavedAnimation | null {
|
|
269
|
+
const target = saved.target == null ? null : copyOf(saved.target);
|
|
270
|
+
if (target == null) {
|
|
271
|
+
return null;
|
|
272
|
+
}
|
|
273
|
+
const values: Writable = Object.fromEntries(
|
|
274
|
+
Object.entries(saved.values).filter(
|
|
275
|
+
([name]) => !IDENTITY_MEMBERS.has(name),
|
|
276
|
+
),
|
|
277
|
+
);
|
|
278
|
+
const effectValues: Writable = {...saved.effectValues};
|
|
279
|
+
if ('target' in effectValues) {
|
|
280
|
+
effectValues.target = target;
|
|
281
|
+
}
|
|
282
|
+
return {...saved, target, values, effectValues};
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Puts each state `saved` holds on the CSS animations and transitions of
|
|
287
|
+
* `root` and its subtree that are not among `survivors`. Each CSS animation
|
|
288
|
+
* the browser started afresh takes the state of the one it replaces. It is
|
|
289
|
+
* matched by element, pseudo-element and name, in order, and then by name
|
|
290
|
+
* alone (an effect script moved to another element or pseudo-element). Each
|
|
291
|
+
* transition whose animation no longer runs resumes as a script animation in
|
|
292
|
+
* its state. One started afresh that replaces none is finished: an entrance
|
|
293
|
+
* that had played and been dropped, or a transition from `@starting-style`.
|
|
294
|
+
* Script animations are left as they are.
|
|
295
|
+
*/
|
|
296
|
+
export function restoreAnimations(
|
|
297
|
+
root: Element,
|
|
298
|
+
saved: ReadonlyArray<SavedAnimation>,
|
|
299
|
+
survivors: ReadonlySet<Animation>,
|
|
300
|
+
): void {
|
|
301
|
+
const after = root.getAnimations({subtree: true});
|
|
302
|
+
const current = new Set(after);
|
|
303
|
+
const cancelled: SavedAnimation[] = [];
|
|
304
|
+
for (const state of saved) {
|
|
305
|
+
if (current.has(state.animation)) {
|
|
306
|
+
continue;
|
|
307
|
+
}
|
|
308
|
+
if (isTransition(state.animation)) {
|
|
309
|
+
resumeTransition(state);
|
|
310
|
+
} else {
|
|
311
|
+
cancelled.push(state);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
const recreated = after.filter(
|
|
315
|
+
animation =>
|
|
316
|
+
(isCssAnimation(animation) || isTransition(animation)) &&
|
|
317
|
+
!survivors.has(animation),
|
|
318
|
+
);
|
|
319
|
+
const unmatched: Animation[] = [];
|
|
320
|
+
for (const animation of recreated) {
|
|
321
|
+
const effect = animation.effect as KeyframeEffect | null;
|
|
322
|
+
const name =
|
|
323
|
+
(animation as Animation & {animationName?: string}).animationName ?? '';
|
|
324
|
+
const index = cancelled.findIndex(
|
|
325
|
+
state =>
|
|
326
|
+
state.name === name &&
|
|
327
|
+
state.target === (effect?.target ?? null) &&
|
|
328
|
+
state.pseudoElement === (effect?.pseudoElement ?? null),
|
|
329
|
+
);
|
|
330
|
+
if (index === -1) {
|
|
331
|
+
unmatched.push(animation);
|
|
332
|
+
} else {
|
|
333
|
+
restore(animation, cancelled.splice(index, 1)[0]);
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
for (const animation of unmatched) {
|
|
337
|
+
const name =
|
|
338
|
+
(animation as Animation & {animationName?: string}).animationName ?? '';
|
|
339
|
+
const index = cancelled.findIndex(state => state.name === name);
|
|
340
|
+
if (index === -1) {
|
|
341
|
+
finishIfItEnds(animation);
|
|
342
|
+
} else {
|
|
343
|
+
restore(animation, cancelled.splice(index, 1)[0]);
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
/** The CSS animations and transitions `saveAnimations` read. */
|
|
349
|
+
export type SavedAnimations = ReadonlyArray<SavedAnimation>;
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* Reads the state of every CSS animation and transition of `root` and its
|
|
353
|
+
* subtree, for `carryAnimations` to give a copy of it.
|
|
354
|
+
*/
|
|
355
|
+
export function saveAnimations(root: Element): SavedAnimations {
|
|
356
|
+
if (typeof root.getAnimations !== 'function') {
|
|
357
|
+
return [];
|
|
358
|
+
}
|
|
359
|
+
return root
|
|
360
|
+
.getAnimations({subtree: true})
|
|
361
|
+
.filter(animation => isCssAnimation(animation) || isTransition(animation))
|
|
362
|
+
.map(saveAnimation);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* Carries on in `copy`, a clone of the root `saved` was read from, now laid
|
|
367
|
+
* out, the CSS animations and transitions its element ran. A clone starts
|
|
368
|
+
* each CSS animation again and runs no transition but a `@starting-style`
|
|
369
|
+
* one. So each CSS animation the clone started takes the state of its
|
|
370
|
+
* element's, and each transition runs on as a script animation. One the
|
|
371
|
+
* clone started that its element no longer ran is finished: an entrance that
|
|
372
|
+
* had played, or a `@starting-style` transition. `copyOf` maps each element
|
|
373
|
+
* of the cloned subtree to its copy. The element's own animations keep
|
|
374
|
+
* running, so the copy's take no id or event handler.
|
|
375
|
+
*/
|
|
376
|
+
export function carryAnimations(
|
|
377
|
+
saved: SavedAnimations,
|
|
378
|
+
copy: Element,
|
|
379
|
+
copyOf: (element: Element) => Element | null,
|
|
380
|
+
): void {
|
|
381
|
+
if (typeof copy.getAnimations !== 'function') {
|
|
382
|
+
return;
|
|
383
|
+
}
|
|
384
|
+
restoreAnimations(
|
|
385
|
+
copy,
|
|
386
|
+
saved.flatMap(state => retarget(state, copyOf) ?? []),
|
|
387
|
+
new Set(),
|
|
388
|
+
);
|
|
389
|
+
}
|
|
@@ -15,9 +15,12 @@
|
|
|
15
15
|
* technology, carries no ids or test ids, joins no form or radio group (a
|
|
16
16
|
* copied checked radio would uncheck the live one), and its frames and media
|
|
17
17
|
* load nothing. Laying it out changes no ancestor's position, and a scaled
|
|
18
|
-
* host draws it at the old size.
|
|
19
|
-
*
|
|
20
|
-
*
|
|
18
|
+
* host draws it at the old size. A clone restarts each CSS animation and runs
|
|
19
|
+
* no transition but a `@starting-style` one; the copy carries on its
|
|
20
|
+
* element's from where they were.
|
|
21
|
+
* Laid in a host outside the element's own ancestors, it keeps what it
|
|
22
|
+
* inherited from them: its inherited properties and custom properties that
|
|
23
|
+
* differ from the host's are written on it.
|
|
21
24
|
* Limits: a rule keyed on a removed `id`, or matched through an ancestor
|
|
22
25
|
* between the host and the element (`.collapsed .label`), does not style the
|
|
23
26
|
* copy as it styled the element; and content holding a canvas whose pixels read back
|
|
@@ -28,6 +31,12 @@
|
|
|
28
31
|
* SYNC: When modified, update /packages/core/src/motion/animatedLayout.ts
|
|
29
32
|
*/
|
|
30
33
|
|
|
34
|
+
import {
|
|
35
|
+
carryAnimations,
|
|
36
|
+
saveAnimations,
|
|
37
|
+
type SavedAnimations,
|
|
38
|
+
} from './carryAnimations';
|
|
39
|
+
|
|
31
40
|
/** Above this many elements, old content is not copied: the new one enters. */
|
|
32
41
|
const MAX_COPIED_ELEMENTS = 1500;
|
|
33
42
|
|
|
@@ -151,11 +160,22 @@ const scrollOffsets = new WeakMap<
|
|
|
151
160
|
ReadonlyArray<readonly [Element, number, number]>
|
|
152
161
|
>();
|
|
153
162
|
|
|
163
|
+
/**
|
|
164
|
+
* The CSS animations and transitions a copy's element ran, and the copy of
|
|
165
|
+
* each element in the copied subtree. The copy carries them on once laid out
|
|
166
|
+
* (`placeOver`).
|
|
167
|
+
*/
|
|
168
|
+
const carriedMotion = new WeakMap<
|
|
169
|
+
HTMLElement,
|
|
170
|
+
{saved: SavedAnimations; copyOf: ReadonlyMap<Element, Element>}
|
|
171
|
+
>();
|
|
172
|
+
|
|
154
173
|
/**
|
|
155
174
|
* A copy that takes no part: no ids or test ids, no form or radio group (a
|
|
156
175
|
* copied checked radio would uncheck the live one), no label for a live
|
|
157
176
|
* control, and copied frames and media load nothing. Scrolled descendants
|
|
158
|
-
* keep their offsets
|
|
177
|
+
* keep their offsets. The CSS animations and transitions running in it carry
|
|
178
|
+
* on from where they were, once the copy is laid out (`placeOver`).
|
|
159
179
|
*/
|
|
160
180
|
export function inertCopy(element: HTMLElement): HTMLElement | null {
|
|
161
181
|
const copy = element.cloneNode(true) as HTMLElement;
|
|
@@ -169,6 +189,10 @@ export function inertCopy(element: HTMLElement): HTMLElement | null {
|
|
|
169
189
|
});
|
|
170
190
|
scrollOffsets.set(copy, offsets);
|
|
171
191
|
inheritedValues.set(copy, readInherited(element));
|
|
192
|
+
carriedMotion.set(copy, {
|
|
193
|
+
saved: saveAnimations(element),
|
|
194
|
+
copyOf: new Map(sourceNodes.map((node, index) => [node, copyNodes[index]])),
|
|
195
|
+
});
|
|
172
196
|
for (const node of copyNodes) {
|
|
173
197
|
for (const name of [
|
|
174
198
|
'id',
|
|
@@ -215,7 +239,8 @@ export function paintedBackground(element: Element): string {
|
|
|
215
239
|
/**
|
|
216
240
|
* Lay `element` over `rect` (viewport coordinates), absolutely, as the last
|
|
217
241
|
* child of `host`, wherever its containing block is: no ancestor's position
|
|
218
|
-
* changes.
|
|
242
|
+
* changes. A copy's scrolled descendants then restore their offsets, and the
|
|
243
|
+
* CSS animations and transitions its element ran carry on in it.
|
|
219
244
|
*/
|
|
220
245
|
export function placeOver(
|
|
221
246
|
element: HTMLElement,
|
|
@@ -277,6 +302,15 @@ export function placeOver(
|
|
|
277
302
|
node.scrollLeft = left;
|
|
278
303
|
}
|
|
279
304
|
}
|
|
305
|
+
const carried = carriedMotion.get(element);
|
|
306
|
+
if (carried != null) {
|
|
307
|
+
carriedMotion.delete(element);
|
|
308
|
+
carryAnimations(
|
|
309
|
+
carried.saved,
|
|
310
|
+
element,
|
|
311
|
+
node => carried.copyOf.get(node) ?? null,
|
|
312
|
+
);
|
|
313
|
+
}
|
|
280
314
|
}
|
|
281
315
|
|
|
282
316
|
/**
|
|
@@ -323,6 +357,12 @@ export function visiblePartCopy(element: HTMLElement): {
|
|
|
323
357
|
if (values != null) {
|
|
324
358
|
inheritedValues.set(holder, values);
|
|
325
359
|
}
|
|
360
|
+
// The content's CSS motion carries on when the holder is laid out.
|
|
361
|
+
const carried = carriedMotion.get(content);
|
|
362
|
+
if (carried != null) {
|
|
363
|
+
carriedMotion.set(holder, carried);
|
|
364
|
+
carriedMotion.delete(content);
|
|
365
|
+
}
|
|
326
366
|
const box = element.getBoundingClientRect();
|
|
327
367
|
return {
|
|
328
368
|
copy: holder,
|
|
@@ -251,6 +251,27 @@ export const UIKIT_PRESS = {
|
|
|
251
251
|
momentumMemory: {value: 3000, unit: 'ms'},
|
|
252
252
|
} as const satisfies Record<string, GestureConstant>;
|
|
253
253
|
|
|
254
|
+
/**
|
|
255
|
+
* UIMenu presented by a button whose menu is its primary action: how far the
|
|
256
|
+
* finger that opened it travels before it picks. DropdownMenu's press model
|
|
257
|
+
* reads a copy in `hooks/menuPressValues.ts`.
|
|
258
|
+
*/
|
|
259
|
+
export const UIKIT_MENU_PRESS = {
|
|
260
|
+
/**
|
|
261
|
+
* After the menu opens under a still-held finger, the finger travels this
|
|
262
|
+
* far before it starts picking. The distance is a straight line from the
|
|
263
|
+
* first sample the menu receives after it opened. Until then nothing is
|
|
264
|
+
* lit, and lifting acts on nothing.
|
|
265
|
+
* @source measured: UIKit lab (injected host app), iOS 26.2 simulator,
|
|
266
|
+
* iPhone 17 Pro, gesture-state hook, steps 150 ms apart, Oct 23 2026
|
|
267
|
+
* (M-MN2): with the menu open under a held finger and a 1 pt first step,
|
|
268
|
+
* moves of (0, 9) and (7, 7) picked nothing; (0, 10), (0, 11), (10, 0),
|
|
269
|
+
* (9, 9) and (10, 10) picked; a 9 pt step followed by 3 pt more picked
|
|
270
|
+
* nothing
|
|
271
|
+
*/
|
|
272
|
+
handoff: {value: 10, unit: 'px'},
|
|
273
|
+
} as const satisfies Record<string, GestureConstant>;
|
|
274
|
+
|
|
254
275
|
export const UIKIT_VELOCITY = {
|
|
255
276
|
/**
|
|
256
277
|
* UIPanGestureRecognizer.velocity(in:) is this times the newest event's
|
|
@@ -318,6 +339,7 @@ export const UIKIT_GESTURES = {
|
|
|
318
339
|
screenEdgePan: UIKIT_SCREEN_EDGE_PAN,
|
|
319
340
|
control: UIKIT_CONTROL,
|
|
320
341
|
press: UIKIT_PRESS,
|
|
342
|
+
menuPress: UIKIT_MENU_PRESS,
|
|
321
343
|
velocity: UIKIT_VELOCITY,
|
|
322
344
|
} as const;
|
|
323
345
|
|
|
@@ -50,17 +50,19 @@ export const press = {
|
|
|
50
50
|
*/
|
|
51
51
|
flashMs: 100,
|
|
52
52
|
/**
|
|
53
|
-
* Highlight fade after release: UIKit's deselect cross-fade.
|
|
53
|
+
* Highlight fade after release: UIKit's deselect cross-fade. Reference
|
|
54
|
+
* only, not played: a press release plays the theme's exit motion tokens
|
|
55
|
+
* (`--duration-exit`, `--ease-exit`).
|
|
54
56
|
* @source measured: Settings and Contacts, iOS 26.2, simulator driven
|
|
55
|
-
* with real HID touches at 60 fps (
|
|
57
|
+
* with real HID touches at 60 fps (touch press model,
|
|
56
58
|
* packages/core/src/utils/pressGesture.ts, 2026-10-06)
|
|
57
59
|
*/
|
|
58
60
|
highlightOutMs: 200,
|
|
59
61
|
/**
|
|
60
62
|
* The highlight fade's curve after release: an ease-out that spends the
|
|
61
|
-
* whole clock fading (strength about 0.2 at the midpoint).
|
|
62
|
-
*
|
|
63
|
-
*
|
|
63
|
+
* whole clock fading (strength about 0.2 at the midpoint). Reference only,
|
|
64
|
+
* not played: a press release plays the theme's `--ease-exit`.
|
|
65
|
+
* @source GUESS — the release curve the touch press model shipped with,
|
|
64
66
|
* chosen to read as UIKit's deselect cross-fade, not read from UIKit
|
|
65
67
|
* @measure M-PR1
|
|
66
68
|
*/
|