@astryxdesign/core 0.7.7-canary.fc68123 → 0.7.7
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/CHANGELOG.md +104 -0
- package/dist/AlertDialog/AlertDialog.d.ts +1 -4
- package/dist/AlertDialog/AlertDialog.d.ts.map +1 -1
- package/dist/AlertDialog/AlertDialog.js +6 -36
- package/dist/BottomSheet/BottomSheetPanel.d.ts.map +1 -1
- package/dist/BottomSheet/BottomSheetPanel.js +4 -23
- package/dist/BottomSheet/useSheetGestures.d.ts.map +1 -1
- package/dist/BottomSheet/useSheetGestures.js +1 -3
- package/dist/Button/Button.d.ts.map +1 -1
- package/dist/Button/Button.js +1 -17
- package/dist/CheckboxInput/CheckboxInput.d.ts.map +1 -1
- package/dist/CheckboxInput/CheckboxInput.js +2 -13
- package/dist/ComplexSelector/ComplexSelector.d.ts +1 -4
- package/dist/ComplexSelector/ComplexSelector.d.ts.map +1 -1
- package/dist/ComplexSelector/ComplexSelector.js +4 -14
- package/dist/ContextMenu/ContextMenu.js +2 -2
- package/dist/Dialog/Dialog.d.ts.map +1 -1
- package/dist/Dialog/Dialog.js +31 -7
- package/dist/Field/Field.js +2 -2
- package/dist/HoverCard/HoverCard.d.ts +3 -4
- package/dist/HoverCard/HoverCard.d.ts.map +1 -1
- package/dist/HoverCard/HoverCard.js +2 -27
- package/dist/HoverCard/useHoverCard.d.ts +4 -5
- package/dist/HoverCard/useHoverCard.d.ts.map +1 -1
- package/dist/HoverCard/useHoverCard.js +31 -17
- package/dist/Icon/Icon.d.ts +1 -5
- package/dist/Icon/Icon.d.ts.map +1 -1
- package/dist/Icon/Icon.js +2 -5
- package/dist/Layer/usePressPin.d.ts +5 -17
- package/dist/Layer/usePressPin.d.ts.map +1 -1
- package/dist/Layer/usePressPin.js +12 -62
- package/dist/Lightbox/Lightbox.d.ts.map +1 -1
- package/dist/Lightbox/Lightbox.js +0 -18
- package/dist/PowerSearch/PowerSearch.d.ts +3 -36
- package/dist/PowerSearch/PowerSearch.d.ts.map +1 -1
- package/dist/PowerSearch/PowerSearch.js +127 -433
- package/dist/PowerSearch/PowerSearchEditPopover.d.ts +1 -32
- package/dist/PowerSearch/PowerSearchEditPopover.d.ts.map +1 -1
- package/dist/PowerSearch/PowerSearchEditPopover.js +6 -17
- package/dist/PowerSearch/PowerSearchValueEditor.d.ts +3 -38
- package/dist/PowerSearch/PowerSearchValueEditor.d.ts.map +1 -1
- package/dist/PowerSearch/PowerSearchValueEditor.js +61 -170
- package/dist/PowerSearch/formatFilterValue.d.ts +0 -7
- package/dist/PowerSearch/formatFilterValue.d.ts.map +1 -1
- package/dist/PowerSearch/formatFilterValue.js +1 -11
- package/dist/RadioList/RadioList.d.ts.map +1 -1
- package/dist/RadioList/RadioList.js +2 -3
- package/dist/RadioList/RadioListItem.d.ts +1 -1
- package/dist/RadioList/RadioListItem.d.ts.map +1 -1
- package/dist/RadioList/RadioListItem.js +3 -5
- package/dist/Resizable/ResizeHandle.d.ts +1 -2
- package/dist/Resizable/ResizeHandle.d.ts.map +1 -1
- package/dist/Resizable/ResizeHandle.js +77 -99
- package/dist/SegmentedControl/useSegmentedSelectionMotion.d.ts.map +1 -1
- package/dist/SegmentedControl/useSegmentedSelectionMotion.js +3 -3
- package/dist/Slider/sliderTouchController.js +2 -2
- package/dist/Spinner/Spinner.d.ts +1 -1
- package/dist/Spinner/Spinner.d.ts.map +1 -1
- package/dist/Spinner/Spinner.js +58 -60
- package/dist/Switch/useSwitchTouch.js +4 -4
- package/dist/Table/BaseTable.d.ts.map +1 -1
- package/dist/Table/BaseTable.js +8 -29
- package/dist/TextInput/TextInput.d.ts +2 -2
- package/dist/TextInput/TextInput.d.ts.map +1 -1
- package/dist/TextInput/TextInput.js +7 -10
- package/dist/Toast/Toast.d.ts +1 -11
- package/dist/Toast/Toast.d.ts.map +1 -1
- package/dist/Toast/Toast.js +15 -25
- package/dist/Toast/ToastViewport.d.ts.map +1 -1
- package/dist/Toast/ToastViewport.js +34 -94
- package/dist/Toast/types.d.ts +3 -9
- package/dist/Toast/types.d.ts.map +1 -1
- package/dist/Tooltip/useTooltip.d.ts +1 -19
- package/dist/Tooltip/useTooltip.d.ts.map +1 -1
- package/dist/Tooltip/useTooltip.js +53 -34
- package/dist/Typeahead/TypeaheadItem.d.ts +1 -2
- package/dist/Typeahead/TypeaheadItem.d.ts.map +1 -1
- package/dist/astryx.css +6 -35
- package/dist/gestures/PressTracker.d.ts.map +1 -1
- package/dist/gestures/PressTracker.js +3 -4
- package/dist/hooks/actionGroupTracker.d.ts +1 -4
- package/dist/hooks/actionGroupTracker.d.ts.map +1 -1
- package/dist/hooks/actionGroupTracker.js +3 -13
- package/dist/hooks/index.d.ts +0 -1
- package/dist/hooks/index.d.ts.map +1 -1
- package/dist/hooks/index.js +0 -1
- package/dist/hooks/useAttachment.d.ts +1 -1
- package/dist/hooks/useAttachment.js +1 -1
- package/dist/hooks/useInputStatusIcon.d.ts +1 -1
- package/dist/hooks/useInputStatusIcon.d.ts.map +1 -1
- package/dist/hooks/useInputStatusIcon.js +2 -2
- package/dist/hooks/useLongPress.d.ts +2 -6
- package/dist/hooks/useLongPress.d.ts.map +1 -1
- package/dist/hooks/useLongPress.js +15 -95
- package/dist/i18n/generated-english/PowerSearch/PowerSearchValueEditor.generated.d.ts.map +1 -1
- package/dist/i18n/generated-english/PowerSearch/PowerSearchValueEditor.generated.js +0 -6
- package/dist/i18n/generated-locales/en.generated.d.ts.map +1 -1
- package/dist/i18n/generated-locales/en.generated.js +0 -30
- package/dist/i18n/generated-locales/pseudo.generated.d.ts.map +1 -1
- package/dist/i18n/generated-locales/pseudo.generated.js +0 -30
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -4
- package/dist/motion/animatedLayout.d.ts.map +1 -1
- package/dist/motion/animatedLayout.js +6 -5
- package/dist/motion/animator.d.ts +14 -14
- package/dist/motion/animator.d.ts.map +1 -1
- package/dist/motion/animator.js +18 -41
- package/dist/utils/dateParser.d.ts.map +1 -1
- package/dist/utils/dateParser.js +0 -12
- package/dist/utils/focusReturn.d.ts +0 -15
- package/dist/utils/focusReturn.d.ts.map +1 -1
- package/dist/utils/focusReturn.js +0 -28
- package/dist/utils/interactionOverlay.stylex.d.ts +2 -3
- package/dist/utils/interactionOverlay.stylex.d.ts.map +1 -1
- package/dist/utils/interactionOverlay.stylex.js +2 -3
- package/dist/utils/pressFeedback.d.ts.map +1 -1
- package/dist/utils/pressFeedback.js +6 -19
- package/locales/en.json +0 -120
- package/locales/pseudo.json +0 -90
- package/package.json +5 -10
- package/src/AlertDialog/AlertDialog.doc.mjs +2 -2
- package/src/AlertDialog/AlertDialog.tsx +5 -37
- package/src/BottomSheet/BottomSheetPanel.tsx +3 -37
- package/src/BottomSheet/useSheetGestures.ts +1 -3
- package/src/Button/Button.tsx +4 -26
- package/src/CheckboxInput/CheckboxInput.doc.mjs +0 -18
- package/src/CheckboxInput/CheckboxInput.tsx +9 -36
- package/src/ComplexSelector/ComplexSelector.tsx +5 -20
- package/src/ContextMenu/ContextMenu.tsx +2 -2
- package/src/Dialog/Dialog.tsx +31 -10
- package/src/Field/Field.tsx +2 -2
- package/src/HoverCard/HoverCard.doc.mjs +2 -4
- package/src/HoverCard/HoverCard.tsx +4 -35
- package/src/HoverCard/useHoverCard.doc.mjs +36 -178
- package/src/HoverCard/useHoverCard.tsx +52 -46
- package/src/Icon/Icon.doc.mjs +8 -49
- package/src/Icon/Icon.tsx +7 -15
- package/src/Layer/usePressPin.ts +15 -81
- package/src/Lightbox/Lightbox.tsx +0 -18
- package/src/PowerSearch/PowerSearch.doc.mjs +5 -54
- package/src/PowerSearch/PowerSearch.tsx +155 -609
- package/src/PowerSearch/PowerSearchEditPopover.tsx +6 -28
- package/src/PowerSearch/PowerSearchValueEditor.tsx +38 -203
- package/src/PowerSearch/formatFilterValue.ts +1 -18
- package/src/RadioList/RadioList.tsx +2 -3
- package/src/RadioList/RadioListItem.tsx +3 -5
- package/src/Resizable/Resizable.doc.mjs +4 -5
- package/src/Resizable/ResizeHandle.tsx +109 -167
- package/src/SegmentedControl/useSegmentedSelectionMotion.ts +3 -6
- package/src/Slider/sliderTouchController.ts +2 -2
- package/src/Spinner/Spinner.tsx +63 -77
- package/src/Switch/useSwitchTouch.ts +4 -4
- package/src/Table/BaseTable.tsx +12 -46
- package/src/TextInput/TextInput.tsx +10 -11
- package/src/Toast/Toast.doc.mjs +3 -4
- package/src/Toast/Toast.tsx +32 -52
- package/src/Toast/ToastViewport.tsx +35 -121
- package/src/Toast/types.ts +3 -9
- package/src/Tooltip/useTooltip.doc.mjs +0 -24
- package/src/Tooltip/useTooltip.tsx +56 -61
- package/src/Typeahead/TypeaheadItem.doc.mjs +3 -6
- package/src/Typeahead/TypeaheadItem.tsx +1 -2
- package/src/gestures/PressTracker.ts +3 -4
- package/src/gestures/README.md +1 -7
- package/src/hooks/actionGroupTracker.ts +5 -20
- package/src/hooks/index.ts +0 -2
- package/src/hooks/useAttachment.ts +1 -1
- package/src/hooks/useInputStatusIcon.tsx +2 -3
- package/src/hooks/useLongPress.doc.mjs +2 -2
- package/src/hooks/useLongPress.ts +15 -136
- package/src/i18n/generated-english/PowerSearch/PowerSearchValueEditor.generated.ts +0 -6
- package/src/i18n/generated-locales/en.generated.ts +0 -41
- package/src/i18n/generated-locales/pseudo.generated.ts +0 -42
- package/src/index.ts +0 -13
- package/src/motion/README.md +5 -9
- package/src/motion/animatedLayout.ts +4 -5
- package/src/motion/animator.ts +29 -61
- package/src/utils/dateParser.ts +0 -16
- package/src/utils/focusReturn.ts +0 -30
- package/src/utils/interactionOverlay.stylex.ts +2 -3
- package/src/utils/pressFeedback.ts +6 -19
- package/dist/PowerSearch/PowerSearchBottomSheet.d.ts +0 -100
- package/dist/PowerSearch/PowerSearchBottomSheet.d.ts.map +0 -1
- package/dist/PowerSearch/PowerSearchBottomSheet.js +0 -1913
- package/dist/PowerSearch/formatTokenValue.d.ts +0 -28
- package/dist/PowerSearch/formatTokenValue.d.ts.map +0 -1
- package/dist/PowerSearch/formatTokenValue.js +0 -160
- package/dist/PowerSearch/powerSearchSheetUtils.d.ts +0 -65
- package/dist/PowerSearch/powerSearchSheetUtils.d.ts.map +0 -1
- package/dist/PowerSearch/powerSearchSheetUtils.js +0 -168
- package/dist/animator/createAnimator.d.ts +0 -98
- package/dist/animator/createAnimator.d.ts.map +0 -1
- package/dist/animator/createAnimator.js +0 -259
- package/dist/hooks/pressGroupContext.d.ts +0 -6
- package/dist/hooks/pressGroupContext.d.ts.map +0 -1
- package/dist/hooks/pressGroupContext.js +0 -20
- package/dist/hooks/useActionGroupTracking.d.ts +0 -53
- package/dist/hooks/useActionGroupTracking.d.ts.map +0 -1
- package/dist/hooks/useActionGroupTracking.js +0 -174
- package/dist/hooks/useAnimator.d.ts +0 -41
- package/dist/hooks/useAnimator.d.ts.map +0 -1
- package/dist/hooks/useAnimator.js +0 -70
- package/dist/i18n/generated-english/PowerSearch/PowerSearchBottomSheet.generated.d.ts +0 -8
- package/dist/i18n/generated-english/PowerSearch/PowerSearchBottomSheet.generated.d.ts.map +0 -1
- package/dist/i18n/generated-english/PowerSearch/PowerSearchBottomSheet.generated.js +0 -42
- package/dist/i18n/generated-english/PowerSearch/formatTokenValue.generated.d.ts +0 -8
- package/dist/i18n/generated-english/PowerSearch/formatTokenValue.generated.d.ts.map +0 -1
- package/dist/i18n/generated-english/PowerSearch/formatTokenValue.generated.js +0 -14
- package/dist/internal/indicatorPress.stylex.d.ts +0 -20
- package/dist/internal/indicatorPress.stylex.d.ts.map +0 -1
- package/dist/internal/indicatorPress.stylex.js +0 -26
- package/dist/motion/progress.d.ts +0 -88
- package/dist/motion/progress.d.ts.map +0 -1
- package/dist/motion/progress.js +0 -128
- package/dist/motion/uikit/alert.d.ts +0 -41
- package/dist/motion/uikit/alert.d.ts.map +0 -1
- package/dist/motion/uikit/alert.js +0 -43
- package/dist/privateAttributes/pressGroupItem.stylex.d.ts +0 -15
- package/dist/privateAttributes/pressGroupItem.stylex.d.ts.map +0 -1
- package/dist/privateAttributes/pressGroupItem.stylex.js +0 -23
- package/dist/utils/triggerFocus.d.ts +0 -36
- package/dist/utils/triggerFocus.d.ts.map +0 -1
- package/dist/utils/triggerFocus.js +0 -65
- package/src/PowerSearch/PowerSearchBottomSheet.tsx +0 -2515
- package/src/PowerSearch/formatTokenValue.ts +0 -215
- package/src/PowerSearch/powerSearchSheetUtils.ts +0 -224
- package/src/animator/createAnimator.doc.mjs +0 -153
- package/src/animator/createAnimator.ts +0 -324
- package/src/hooks/pressGroupContext.ts +0 -21
- package/src/hooks/useActionGroupTracking.ts +0 -224
- package/src/hooks/useAnimator.doc.mjs +0 -109
- package/src/hooks/useAnimator.ts +0 -67
- package/src/i18n/generated-english/PowerSearch/PowerSearchBottomSheet.generated.ts +0 -43
- package/src/i18n/generated-english/PowerSearch/formatTokenValue.generated.ts +0 -15
- package/src/internal/indicatorPress.stylex.ts +0 -24
- package/src/motion/progress.ts +0 -155
- package/src/motion/uikit/alert.ts +0 -43
- package/src/privateAttributes/pressGroupItem.stylex.ts +0 -23
- package/src/utils/triggerFocus.ts +0 -80
|
@@ -7,12 +7,6 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
const english = {
|
|
10
|
-
"@astryx.powersearch.sheet.relativeDaysAgo": "{count, number} {count, plural, one {day} other {days}} ago",
|
|
11
|
-
"@astryx.powersearch.sheet.relativeDaysFromNow": "{count, number} {count, plural, one {day} other {days}} from now",
|
|
12
|
-
"@astryx.powersearch.sheet.relativeMonthsAgo": "{count, number} {count, plural, one {month} other {months}} ago",
|
|
13
|
-
"@astryx.powersearch.sheet.relativeMonthsFromNow": "{count, number} {count, plural, one {month} other {months}} from now",
|
|
14
|
-
"@astryx.powersearch.sheet.relativeWeeksAgo": "{count, number} {count, plural, one {week} other {weeks}} ago",
|
|
15
|
-
"@astryx.powersearch.sheet.relativeWeeksFromNow": "{count, number} {count, plural, one {week} other {weeks}} from now",
|
|
16
10
|
"@astryx.powersearch.valueEditor.addValuesPlaceholder": "Add values…",
|
|
17
11
|
"@astryx.powersearch.valueEditor.date": "Date",
|
|
18
12
|
"@astryx.powersearch.valueEditor.dateRange": "date range",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.generated.d.ts","sourceRoot":"","sources":["../../../src/i18n/generated-locales/en.generated.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH,QAAA,MAAM,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"en.generated.d.ts","sourceRoot":"","sources":["../../../src/i18n/generated-locales/en.generated.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH,QAAA,MAAM,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAonBpD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -71,36 +71,6 @@ const runtimeCatalog = {
|
|
|
71
71
|
'@astryx.powersearch.valueEditor.dateRange': 'date range',
|
|
72
72
|
'@astryx.powersearch.valueEditor.filtersCount': '{count, number} {count, plural, one {filter} other {filters}}',
|
|
73
73
|
'@astryx.powersearch.resultCount': '{count, number} {count, plural, one {result} other {results}}',
|
|
74
|
-
'@astryx.powersearch.sheet.filtersTitle': 'Filters',
|
|
75
|
-
'@astryx.powersearch.sheet.addFilter': 'Add filter',
|
|
76
|
-
'@astryx.powersearch.sheet.noFilters': 'No filters applied',
|
|
77
|
-
'@astryx.powersearch.sheet.noFiltersDescription': 'Add a filter to narrow your results and find what you need faster.',
|
|
78
|
-
'@astryx.powersearch.sheet.clearAll': 'Clear all',
|
|
79
|
-
'@astryx.powersearch.sheet.clearAllTitle': 'Clear all filters?',
|
|
80
|
-
'@astryx.powersearch.sheet.clearAllDescription': 'This removes all editable filters from this search.',
|
|
81
|
-
'@astryx.powersearch.sheet.clearAllConfirm': 'Clear filters',
|
|
82
|
-
'@astryx.powersearch.sheet.clearAllCancel': 'Keep filters',
|
|
83
|
-
'@astryx.powersearch.sheet.done': 'Done',
|
|
84
|
-
'@astryx.powersearch.sheet.search': 'Search',
|
|
85
|
-
'@astryx.powersearch.sheet.searchResults': 'Search results',
|
|
86
|
-
'@astryx.powersearch.sheet.searchFields': 'Search filters',
|
|
87
|
-
'@astryx.powersearch.sheet.searchFieldsPlaceholder': 'Search filters…',
|
|
88
|
-
'@astryx.powersearch.sheet.ungroupedFields': 'General',
|
|
89
|
-
'@astryx.powersearch.sheet.noMatchingFields': 'No filters match your search',
|
|
90
|
-
'@astryx.powersearch.sheet.tryDifferentSearch': 'Try a different search.',
|
|
91
|
-
'@astryx.powersearch.sheet.noResults': 'No results found',
|
|
92
|
-
'@astryx.powersearch.sheet.filterUnavailable': 'This filter is no longer available',
|
|
93
|
-
'@astryx.powersearch.sheet.removeFilter': 'Remove {field} filter',
|
|
94
|
-
'@astryx.powersearch.sheet.relativeDaysAgo': '{count, number} {count, plural, one {day} other {days}} ago',
|
|
95
|
-
'@astryx.powersearch.sheet.relativeDaysFromNow': '{count, number} {count, plural, one {day} other {days}} from now',
|
|
96
|
-
'@astryx.powersearch.sheet.relativeWeeksAgo': '{count, number} {count, plural, one {week} other {weeks}} ago',
|
|
97
|
-
'@astryx.powersearch.sheet.relativeWeeksFromNow': '{count, number} {count, plural, one {week} other {weeks}} from now',
|
|
98
|
-
'@astryx.powersearch.sheet.relativeMonthsAgo': '{count, number} {count, plural, one {month} other {months}} ago',
|
|
99
|
-
'@astryx.powersearch.sheet.relativeMonthsFromNow': '{count, number} {count, plural, one {month} other {months}} from now',
|
|
100
|
-
'@astryx.powersearch.sheet.fieldOperator': '{field} {operator}',
|
|
101
|
-
'@astryx.powersearch.sheet.labelValue': '{label} {value}',
|
|
102
|
-
'@astryx.powersearch.sheet.filtersClearedWithCount': 'All filters removed. {resultCount}',
|
|
103
|
-
'@astryx.powersearch.sheet.editableFiltersClearedWithCount': 'Editable filters removed. {resultCount}',
|
|
104
74
|
'@astryx.alertDialog.cancel': 'Cancel',
|
|
105
75
|
'@astryx.appShell.mobileNavigation': 'Mobile navigation',
|
|
106
76
|
'@astryx.appShell.skipToContent': 'Skip to content',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pseudo.generated.d.ts","sourceRoot":"","sources":["../../../src/i18n/generated-locales/pseudo.generated.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH,QAAA,MAAM,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"pseudo.generated.d.ts","sourceRoot":"","sources":["../../../src/i18n/generated-locales/pseudo.generated.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH,QAAA,MAAM,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA+nBpD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -71,36 +71,6 @@ const runtimeCatalog = {
|
|
|
71
71
|
'@astryx.powersearch.valueEditor.dateRange': '⟦ðàţé řàñĝé⟧',
|
|
72
72
|
'@astryx.powersearch.valueEditor.filtersCount': '⟦{count, number} {count, plural, one {filter} other {filters}}⟧',
|
|
73
73
|
'@astryx.powersearch.resultCount': '⟦{count, number} {count, plural, one {result} other {results}}⟧',
|
|
74
|
-
'@astryx.powersearch.sheet.filtersTitle': '⟦Ƒíłţéřš⟧',
|
|
75
|
-
'@astryx.powersearch.sheet.addFilter': '⟦Àðð ƒíłţéř⟧',
|
|
76
|
-
'@astryx.powersearch.sheet.noFilters': '⟦Ñó ƒíłţéřš àþþłíéð⟧',
|
|
77
|
-
'@astryx.powersearch.sheet.noFiltersDescription': '⟦Àðð à ƒíłţéř ţó ñàřřóŵ ýóúř řéšúłţš àñð ƒíñð ŵĥàţ ýóú ñééð ƒàšţéř.⟧',
|
|
78
|
-
'@astryx.powersearch.sheet.clearAll': '⟦Çłéàř àłł⟧',
|
|
79
|
-
'@astryx.powersearch.sheet.clearAllTitle': '⟦Çłéàř àłł ƒíłţéřš?⟧',
|
|
80
|
-
'@astryx.powersearch.sheet.clearAllDescription': '⟦Ţĥíš řéɱóṽéš àłł éðíţàƀłé ƒíłţéřš ƒřóɱ ţĥíš šéàřçĥ.⟧',
|
|
81
|
-
'@astryx.powersearch.sheet.clearAllConfirm': '⟦Çłéàř ƒíłţéřš⟧',
|
|
82
|
-
'@astryx.powersearch.sheet.clearAllCancel': '⟦Ķééþ ƒíłţéřš⟧',
|
|
83
|
-
'@astryx.powersearch.sheet.done': '⟦Ðóñé⟧',
|
|
84
|
-
'@astryx.powersearch.sheet.search': '⟦Šéàřçĥ⟧',
|
|
85
|
-
'@astryx.powersearch.sheet.searchResults': '⟦Šéàřçĥ řéšúłţš⟧',
|
|
86
|
-
'@astryx.powersearch.sheet.searchFields': '⟦Šéàřçĥ ƒíłţéřš⟧',
|
|
87
|
-
'@astryx.powersearch.sheet.searchFieldsPlaceholder': '⟦Šéàřçĥ ƒíłţéřš…⟧',
|
|
88
|
-
'@astryx.powersearch.sheet.ungroupedFields': '⟦Ĝéñéřàł⟧',
|
|
89
|
-
'@astryx.powersearch.sheet.noMatchingFields': '⟦Ñó ƒíłţéřš ɱàţçĥ ýóúř šéàřçĥ⟧',
|
|
90
|
-
'@astryx.powersearch.sheet.tryDifferentSearch': '⟦Ţřý à ð탃éřéñţ šéàřçĥ.⟧',
|
|
91
|
-
'@astryx.powersearch.sheet.noResults': '⟦Ñó řéšúłţš ƒóúñð⟧',
|
|
92
|
-
'@astryx.powersearch.sheet.filterUnavailable': '⟦Ţĥíš ƒíłţéř íš ñó łóñĝéř àṽàíłàƀłé⟧',
|
|
93
|
-
'@astryx.powersearch.sheet.removeFilter': '⟦Řéɱóṽé {field} ƒíłţéř⟧',
|
|
94
|
-
'@astryx.powersearch.sheet.relativeDaysAgo': '⟦{count, number} {count, plural, one {day} other {days}} àĝó⟧',
|
|
95
|
-
'@astryx.powersearch.sheet.relativeDaysFromNow': '⟦{count, number} {count, plural, one {day} other {days}} ƒřóɱ ñóŵ⟧',
|
|
96
|
-
'@astryx.powersearch.sheet.relativeWeeksAgo': '⟦{count, number} {count, plural, one {week} other {weeks}} àĝó⟧',
|
|
97
|
-
'@astryx.powersearch.sheet.relativeWeeksFromNow': '⟦{count, number} {count, plural, one {week} other {weeks}} ƒřóɱ ñóŵ⟧',
|
|
98
|
-
'@astryx.powersearch.sheet.relativeMonthsAgo': '⟦{count, number} {count, plural, one {month} other {months}} àĝó⟧',
|
|
99
|
-
'@astryx.powersearch.sheet.relativeMonthsFromNow': '⟦{count, number} {count, plural, one {month} other {months}} ƒřóɱ ñóŵ⟧',
|
|
100
|
-
'@astryx.powersearch.sheet.fieldOperator': '⟦{field} {operator}⟧',
|
|
101
|
-
'@astryx.powersearch.sheet.labelValue': '⟦{label} {value}⟧',
|
|
102
|
-
'@astryx.powersearch.sheet.filtersClearedWithCount': '⟦Àłł ƒíłţéřš řéɱóṽéð. {resultCount}⟧',
|
|
103
|
-
'@astryx.powersearch.sheet.editableFiltersClearedWithCount': '⟦Éðíţàƀłé ƒíłţéřš řéɱóṽéð. {resultCount}⟧',
|
|
104
74
|
'@astryx.alertDialog.cancel': '⟦Çàñçéł⟧',
|
|
105
75
|
'@astryx.appShell.mobileNavigation': '⟦Ṁóƀíłé ñàṽíĝàţíóñ⟧',
|
|
106
76
|
'@astryx.appShell.skipToContent': '⟦Šķíþ ţó çóñţéñţ⟧',
|
package/dist/index.d.ts
CHANGED
|
@@ -113,7 +113,6 @@ export * from './Timer/index.js';
|
|
|
113
113
|
export * from './Overlay/index.js';
|
|
114
114
|
export * from './Outline/index.js';
|
|
115
115
|
export * from './OverflowList/index.js';
|
|
116
|
-
export { createAnimator, type Animator, type AnimatorAnimateOptions, type AnimatorChannel, type AnimatorDecayVelocity, type AnimatorHandle, type AnimatorSnapshot, type AnimatorValues, } from './animator/createAnimator.js';
|
|
117
116
|
export * from './hooks/index.js';
|
|
118
117
|
export * from './utils/index.js';
|
|
119
118
|
export type { TextColorMap } from './Text/index.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AAGH,YAAY,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAG3C,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAE1B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,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ACtB,kBAAkB,EAClB,YAAY,EACZ,cAAc,EACd,WAAW,EACX,uBAAuB,EACvB,oBAAoB,GACrB,MAAM,SAAS,CAAC;AAGjB,cAAc,WAAW,CAAC;AAG1B,cAAc,aAAa,CAAC;AAG5B,cAAc,WAAW,CAAC;AAG1B,cAAc,YAAY,CAAC;AAG3B,cAAc,aAAa,CAAC;AAG5B,cAAc,WAAW,CAAC;AAG1B,cAAc,aAAa,CAAC;AAG5B,cAAc,SAAS,CAAC;AAGxB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAG1B,cAAc,gBAAgB,CAAC;AAG/B,cAAc,SAAS,CAAC;AAGxB,cAAc,SAAS,CAAC;AAGxB,YAAY,EAAC,YAAY,EAAC,MAAM,QAAQ,CAAC;AACzC,cAAc,SAAS,CAAC;AAGxB,cAAc,QAAQ,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -145,10 +145,6 @@ export * from "./Outline/index.js";
|
|
|
145
145
|
// Overflow list
|
|
146
146
|
export * from "./OverflowList/index.js";
|
|
147
147
|
|
|
148
|
-
// Animating one element: from the package root only, since one API has one
|
|
149
|
-
// entry. Its hook ships from './hooks'.
|
|
150
|
-
export { createAnimator } from "./animator/createAnimator.js";
|
|
151
|
-
|
|
152
148
|
// Hooks
|
|
153
149
|
export * from "./hooks/index.js";
|
|
154
150
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animatedLayout.d.ts","sourceRoot":"","sources":["../../src/motion/animatedLayout.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"animatedLayout.d.ts","sourceRoot":"","sources":["../../src/motion/animatedLayout.ts"],"names":[],"mappings":"AA4GA,sDAAsD;AACtD,KAAK,YAAY,GACb;IAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,cAAc,CAAA;CAAC,GAC5D;IACE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QA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AQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC1B,KAAK,CAAC,EAAE,CAAC,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,KAAK,eAAe,CAAC;CAClE,GACL,gBAAgB,CA6JlB;AAMD,mEAAmE;AACnE,MAAM,WAAW,gBAAgB;IAC/B,sEAAsE;IACtE,aAAa,IAAI,IAAI,CAAC;IACtB;;;;OAIG;IACH,OAAO,IAAI,IAAI,CAAC;IAChB,wEAAwE;IACxE,MAAM,IAAI,IAAI,CAAC;CAChB;AA8GD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,cAAc,GAAG,IAAI,GAAG,SAAS,EACzC,UAAU,EAAE,MAAM,WAAW,GAAG,IAAI,EACpC,EAAC,IAAkB,EAAC,GAAE;IAAC,IAAI,CAAC,EAAE,UAAU,CAAA;CAAM,GAC7C,gBAAgB,CA2IlB;AAED;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,cAAc,GAAG,IAAI,GAAG,SAAS,EACzC,OAAO,EAAE,WAAW,GAAG,UAAU,GAAG,IAAI,GACvC,IAAI,CAwBN;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAMtD;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,OAAO,GAAG,YAAY,CAE3D"}
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
import { motionRole } from "./roles.js";
|
|
83
83
|
import { inertCopy, isCopyable, paintedBackground, placeOver, visiblePartCopy, wrapText } from "./transientCopy.js";
|
|
84
84
|
import { isSpring } from "./roleValue.js";
|
|
85
|
-
import {
|
|
85
|
+
import { solveSpring, toSpring } from "./spring.js";
|
|
86
86
|
import { registerSpringsTable, SETTLE_SPRING } from "./uikit/springs.js";
|
|
87
87
|
import { reducedMotionCrossFade } from "./uikit/timing.js";
|
|
88
88
|
|
|
@@ -119,13 +119,14 @@ function settleSpring() {
|
|
|
119
119
|
return isSpring(value) ? value : SETTLE_SPRING;
|
|
120
120
|
}
|
|
121
121
|
function springProgress(description) {
|
|
122
|
-
const curve =
|
|
123
|
-
|
|
122
|
+
const curve = solveSpring(toSpring(description), {
|
|
123
|
+
from: 1,
|
|
124
|
+
to: 0
|
|
124
125
|
});
|
|
125
|
-
const durationMs = Math.max(1, curve.
|
|
126
|
+
const durationMs = Math.max(1, curve.settleTime(0.001) * 1000);
|
|
126
127
|
return {
|
|
127
128
|
durationMs,
|
|
128
|
-
remaining: t => t >= durationMs ? 0 :
|
|
129
|
+
remaining: t => t >= durationMs ? 0 : curve.value(t / 1000)
|
|
129
130
|
};
|
|
130
131
|
}
|
|
131
132
|
|
|
@@ -50,18 +50,18 @@ export interface AnimateOptions {
|
|
|
50
50
|
crossfadeAs?: 'entrance' | 'exit';
|
|
51
51
|
/**
|
|
52
52
|
* When the call's animations start. By default a call from rest starts
|
|
53
|
-
* when the browser commits it
|
|
54
|
-
* retarget) starts now, from the value on screen.
|
|
55
|
-
* already shows as at rest counts as rest. Ignored with `at`.
|
|
53
|
+
* when the browser commits it, and a call that continues motion on screen
|
|
54
|
+
* (a retarget) starts now, from the value on screen. Ignored with `at`.
|
|
56
55
|
* - `'commit'`: a call that continues motion also starts when the browser
|
|
57
|
-
* commits it
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
56
|
+
* commits it, dated by the browser rather than by the main thread, as a
|
|
57
|
+
* call from rest is.
|
|
58
|
+
* - `'presented'`: a call from rest leaves its element at rest and creates
|
|
59
|
+
* its animations two frames later, once the frame that carries the
|
|
60
|
+
* element at rest has been presented; they then start at their commit. A
|
|
61
|
+
* busy UI process delays the motion instead of skipping into it, for two
|
|
62
|
+
* frames more before an idle start. Any other change to the animator
|
|
63
|
+
* before then creates the animations first, in call order. A call that
|
|
64
|
+
* continues motion on screen (a retarget) starts now, as by default.
|
|
65
65
|
*/
|
|
66
66
|
start?: 'commit' | 'presented';
|
|
67
67
|
/**
|
|
@@ -101,7 +101,7 @@ export interface MotionCurve {
|
|
|
101
101
|
readonly isTransition?: boolean;
|
|
102
102
|
}
|
|
103
103
|
/**
|
|
104
|
-
* Options of `
|
|
104
|
+
* Options of `createAnimator`.
|
|
105
105
|
*/
|
|
106
106
|
/** How `set` puts values in place. */
|
|
107
107
|
export interface SetOptions {
|
|
@@ -302,7 +302,7 @@ export declare function defaultIsCoarsePointer(): boolean;
|
|
|
302
302
|
*
|
|
303
303
|
* @example
|
|
304
304
|
* ```
|
|
305
|
-
* const animator =
|
|
305
|
+
* const animator = createAnimator(sheet);
|
|
306
306
|
* // finger lifts at 1200 px/s heading for the detent at 0 (a component
|
|
307
307
|
* // passes the spring of its motion role):
|
|
308
308
|
* animator.animate({y: 0}, {spring: {response: 0.45, dampingRatio: 0.9}, velocity: {y: 1200}});
|
|
@@ -311,5 +311,5 @@ export declare function defaultIsCoarsePointer(): boolean;
|
|
|
311
311
|
* animator.stop(['y']);
|
|
312
312
|
* ```
|
|
313
313
|
*/
|
|
314
|
-
export declare function
|
|
314
|
+
export declare function createAnimator(element: HTMLElement | null, options?: AnimatorOptions): Animator;
|
|
315
315
|
//# sourceMappingURL=animator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"animator.d.ts","sourceRoot":"","sources":["../../src/motion/animator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"animator.d.ts","sourceRoot":"","sources":["../../src/motion/animator.ts"],"names":[],"mappings":"AAsLA,OAAO,EAAwB,KAAK,iBAAiB,EAAC,MAAM,UAAU,CAAC;AASvE;;GAEG;AACH,MAAM,MAAM,cAAc,GACxB,GAAG,GAAG,GAAG,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEzD;;GAEG;AACH,MAAM,MAAM,YAAY,GAA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;;GAsBG;AACH,eAAO,MAAM,WAAW,QAAS,CAAC;AAalC,oEAAoE;AACpE,eAAO,MAAM,mBAAmB,MAAM,CAAC;AA6CvC;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CACzB,OAAO,EAAE,WAAW,EACpB,OAAO,GAAE,eAAoB,GAC5B,QAAQ,CAaV;AAyED;;;;;;;;GAQG;AACH,wBAAgB,2BAA2B,IAAI,OAAO,CAMrD;AAED,kEAAkE;AAClE,wBAAgB,sBAAsB,IAAI,OAAO,CAMhD;AAWD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,CAC5B,OAAO,EAAE,WAAW,GAAG,IAAI,EAC3B,OAAO,GAAE,eAAoB,GAC5B,QAAQ,CAk9FV"}
|
package/dist/motion/animator.js
CHANGED
|
@@ -4,12 +4,11 @@
|
|
|
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 `
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* Reduced Motion substitution.
|
|
7
|
+
* @output Exports `createAnimator`: a compositor animator for translate,
|
|
8
|
+
* rotate, scale and opacity, with presentation values and velocities read
|
|
9
|
+
* from the analytic curves, velocity-preserving retargeting, freeze-in-place
|
|
10
|
+
* `stop`, completion promises, a shared clock, and UIKit's Reduced Motion
|
|
11
|
+
* substitution; plus its option, handle and transition types
|
|
13
12
|
* @position Motion foundation (DOM). Internal to core: components use it for
|
|
14
13
|
* every touch-presentation animation; not exported from the package entry
|
|
15
14
|
*
|
|
@@ -213,7 +212,7 @@ import { planReducedMotion } from "./reducedMotionPlan.js";
|
|
|
213
212
|
*/
|
|
214
213
|
|
|
215
214
|
/**
|
|
216
|
-
* Options of `
|
|
215
|
+
* Options of `createAnimator`.
|
|
217
216
|
*/
|
|
218
217
|
/** How `set` puts values in place. */
|
|
219
218
|
|
|
@@ -293,18 +292,6 @@ const SAMPLE_TOLERANCE = {
|
|
|
293
292
|
/** Keyframes start on this grid (ms) and are split where the curve needs it. */
|
|
294
293
|
const SAMPLE_GRID_MS = 1000 / 30;
|
|
295
294
|
|
|
296
|
-
/**
|
|
297
|
-
* A curve within this many sample tolerances of its target can show as at
|
|
298
|
-
* rest. A call on it then starts as one from rest does, at the browser's start.
|
|
299
|
-
*/
|
|
300
|
-
const REST_DISTANCE_TOLERANCES = 2;
|
|
301
|
-
|
|
302
|
-
/**
|
|
303
|
-
* A curve shows as at rest only while it moves at most one `SAMPLE_TOLERANCE`
|
|
304
|
-
* a frame at this rate.
|
|
305
|
-
*/
|
|
306
|
-
const REST_FRAMES_PER_SECOND = 60;
|
|
307
|
-
|
|
308
295
|
/** A curve that has not settled by then (an undamped spring) snaps. */
|
|
309
296
|
const MAX_DURATION_MS = 30_000;
|
|
310
297
|
|
|
@@ -433,7 +420,7 @@ export function animatorFor(element, options = {}) {
|
|
|
433
420
|
const key = options.pseudoElement ?? '';
|
|
434
421
|
let animator = byPseudo.get(key);
|
|
435
422
|
if (animator == null) {
|
|
436
|
-
animator =
|
|
423
|
+
animator = createAnimator(element, options);
|
|
437
424
|
byPseudo.set(key, animator);
|
|
438
425
|
}
|
|
439
426
|
return animator;
|
|
@@ -537,7 +524,7 @@ const REDUCED_TRANSITION = {
|
|
|
537
524
|
*
|
|
538
525
|
* @example
|
|
539
526
|
* ```
|
|
540
|
-
* const animator =
|
|
527
|
+
* const animator = createAnimator(sheet);
|
|
541
528
|
* // finger lifts at 1200 px/s heading for the detent at 0 (a component
|
|
542
529
|
* // passes the spring of its motion role):
|
|
543
530
|
* animator.animate({y: 0}, {spring: {response: 0.45, dampingRatio: 0.9}, velocity: {y: 1200}});
|
|
@@ -546,7 +533,7 @@ const REDUCED_TRANSITION = {
|
|
|
546
533
|
* animator.stop(['y']);
|
|
547
534
|
* ```
|
|
548
535
|
*/
|
|
549
|
-
export function
|
|
536
|
+
export function createAnimator(element, options = {}) {
|
|
550
537
|
const now = options.now ?? defaultNow;
|
|
551
538
|
const frameSource = options.requestFrame ?? (typeof requestAnimationFrame === 'function' ? callback => {
|
|
552
539
|
requestAnimationFrame(() => callback());
|
|
@@ -750,14 +737,6 @@ export function createMotionAnimator(element, options = {}) {
|
|
|
750
737
|
}
|
|
751
738
|
return curveAt(property, time);
|
|
752
739
|
};
|
|
753
|
-
|
|
754
|
-
/**
|
|
755
|
-
* Whether a curve's tail already shows as at rest at `time`. Under a
|
|
756
|
-
* starved main thread the browser commits a call late. A call that starts
|
|
757
|
-
* at its own time then skips that far into its curve. One that starts at
|
|
758
|
-
* the commit holds an element that hardly moves.
|
|
759
|
-
*/
|
|
760
|
-
const showsAtRest = (property, segment, time) => Math.abs(valueAt(property, time) - segment.target) <= REST_DISTANCE_TOLERANCES * SAMPLE_TOLERANCE[property] && Math.abs(velocityAt(property, time)) <= SAMPLE_TOLERANCE[property] * REST_FRAMES_PER_SECOND;
|
|
761
740
|
const velocityAt = (property, time) => {
|
|
762
741
|
const held = segments.get(property);
|
|
763
742
|
if (held != null && isHeld(held)) {
|
|
@@ -1527,10 +1506,10 @@ export function createMotionAnimator(element, options = {}) {
|
|
|
1527
1506
|
// -- starting from rest ---------------------------------------------------
|
|
1528
1507
|
|
|
1529
1508
|
/**
|
|
1530
|
-
* A call starts from rest when nothing on the channels it drives
|
|
1531
|
-
*
|
|
1532
|
-
*
|
|
1533
|
-
*
|
|
1509
|
+
* A call starts from rest when nothing on the channels it drives is moving
|
|
1510
|
+
* (a curve still waiting for its first frame counts as rest) and nothing
|
|
1511
|
+
* pins its clock (`at`). Returns its start group, or null for an explicit
|
|
1512
|
+
* start.
|
|
1534
1513
|
*/
|
|
1535
1514
|
const beginGroup = (time, properties, at, start) => {
|
|
1536
1515
|
if (target == null || typeof target.animate !== 'function') {
|
|
@@ -1559,18 +1538,16 @@ export function createMotionAnimator(element, options = {}) {
|
|
|
1559
1538
|
}
|
|
1560
1539
|
return null;
|
|
1561
1540
|
}
|
|
1562
|
-
// A call that continues motion starts now
|
|
1563
|
-
// browser's start (`commit`). `presented` asks only for a call from rest
|
|
1564
|
-
//
|
|
1565
|
-
//
|
|
1566
|
-
// counts as rest, so a call on it waits, under `presented` for its two
|
|
1567
|
-
// frames.
|
|
1541
|
+
// A call that continues motion starts now unless it asks for the
|
|
1542
|
+
// browser's start (`commit`). `presented` asks only for a call from rest:
|
|
1543
|
+
// an element still moving is not at rest, so a retarget starts now, from
|
|
1544
|
+
// the value and velocity on screen (spec:AST-094 FR6).
|
|
1568
1545
|
for (const channel of start === 'commit' ? [] : channels) {
|
|
1569
1546
|
for (const property of CHANNELS[channel]) {
|
|
1570
1547
|
const segment = segments.get(property);
|
|
1571
1548
|
// A call's first frame puts its channels on screen, even before the
|
|
1572
1549
|
// browser reports the start. So such a channel is not at rest either.
|
|
1573
|
-
if (segment != null && time < endOf(property, segment) && (segment.group == null || segment.group.resolved || shownSince(property, segment) != null)
|
|
1550
|
+
if (segment != null && time < endOf(property, segment) && (segment.group == null || segment.group.resolved || shownSince(property, segment) != null)) {
|
|
1574
1551
|
return null;
|
|
1575
1552
|
}
|
|
1576
1553
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dateParser.d.ts","sourceRoot":"","sources":["../../src/utils/dateParser.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AAEH,OAAO,EAAC,KAAK,SAAS,EAAqC,MAAM,aAAa,CAAC;AAC/E,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,eAAe,CAAC;AAE1C,OAAO,EACL,gBAAgB,IAAI,QAAQ,EAC5B,cAAc,IAAI,SAAS,GAC5B,MAAM,aAAa,CAAC;AAErB;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,GAAE,MAAa,GAAG,OAAO,CAO/D;
|
|
1
|
+
{"version":3,"file":"dateParser.d.ts","sourceRoot":"","sources":["../../src/utils/dateParser.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AAEH,OAAO,EAAC,KAAK,SAAS,EAAqC,MAAM,aAAa,CAAC;AAC/E,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,eAAe,CAAC;AAE1C,OAAO,EACL,gBAAgB,IAAI,QAAQ,EAC5B,cAAc,IAAI,SAAS,GAC5B,MAAM,aAAa,CAAC;AAErB;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,GAAE,MAAa,GAAG,OAAO,CAO/D;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAC5B,KAAK,EAAE,MAAM,EACb,MAAM,GAAE,MAAa,GACpB,SAAS,GAAG,IAAI,CAsGlB"}
|
package/dist/utils/dateParser.js
CHANGED
|
@@ -27,11 +27,6 @@ export function isLocaleDayFirst(locale = 'en') {
|
|
|
27
27
|
return dayIndex < monthIndex;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
// Built at run time: a Unicode property escape in a literal fails a source
|
|
31
|
-
// build whose Babel lacks the Unicode data.
|
|
32
|
-
const LETTER_FREE = new RegExp('^[^\\p{L}]+$', 'u');
|
|
33
|
-
const YEAR_FIRST = new RegExp('^\\d{4}[^\\p{L}\\d]', 'u');
|
|
34
|
-
|
|
35
30
|
/**
|
|
36
31
|
* Parses user input into a PlainDate.
|
|
37
32
|
*
|
|
@@ -127,13 +122,6 @@ export function parseDateInput(input, locale = 'en') {
|
|
|
127
122
|
if (/^\d+$/.test(trimmed)) {
|
|
128
123
|
return null;
|
|
129
124
|
}
|
|
130
|
-
// In a day-first locale, letter-free text that no form above matched is not
|
|
131
|
-
// a date. Native `Date` reads `a/b/c` month first. It also takes a year of
|
|
132
|
-
// one to three digits. So "12/01/2" gives a wrong date. A four-digit year
|
|
133
|
-
// written first is not ambiguous.
|
|
134
|
-
if (isLocaleDayFirst(locale) && LETTER_FREE.test(trimmed) && !YEAR_FIRST.test(trimmed)) {
|
|
135
|
-
return null;
|
|
136
|
-
}
|
|
137
125
|
const parsed = new Date(trimmed);
|
|
138
126
|
if (!isNaN(parsed.getTime())) {
|
|
139
127
|
const fromDate = plainDateFromDate(parsed);
|
|
@@ -75,19 +75,4 @@ export declare function moveFocusLeftBehind(note: FocusWithin | null, target: HT
|
|
|
75
75
|
* in the component that calls this.
|
|
76
76
|
*/
|
|
77
77
|
export declare function focusForLastInput(element: HTMLElement, options?: FocusOptions, modality?: InteractionModality): void;
|
|
78
|
-
/**
|
|
79
|
-
* Prepares the focus return for an open surface that may be removed while
|
|
80
|
-
* open (rendered only while open, or removed with its view). Removing a
|
|
81
|
-
* `<dialog>` runs no close and no browser focus return. Call this while the
|
|
82
|
-
* surface is mounted: it reads the frame that hosts the surface now, because a
|
|
83
|
-
* removed frame's document has no window. Call the returned function from the
|
|
84
|
-
* effect cleanup with the opener.
|
|
85
|
-
*
|
|
86
|
-
* Once the commit has finished, focus moves to the opener only when the
|
|
87
|
-
* surface really left the document (StrictMode's simulated unmount keeps it),
|
|
88
|
-
* the opener is still on the page, and the removal lost focus, both in the
|
|
89
|
-
* surface's document and in the document that hosts its frame. A control the
|
|
90
|
-
* user pressed outside the surface, or outside its frame, keeps its focus.
|
|
91
|
-
*/
|
|
92
|
-
export declare function prepareFocusReturnOnRemoval(surface: Element): (opener: Element | null) => void;
|
|
93
78
|
//# sourceMappingURL=focusReturn.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"focusReturn.d.ts","sourceRoot":"","sources":["../../src/utils/focusReturn.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,uBAAuB,CAAC;AAE/B;;;;;;;;;;;;;GAaG;AACH,wBAAgB,eAAe,CAAC,GAAG,GAAE,QAAmB,GAAG,OAAO,CAKjE;AAED;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,EAAE,GAAG,CAAC,EAAE,QAAQ,GAAG,OAAO,CAM5E;AAED,mFAAmF;AACnF,MAAM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CACjC,IAAI,EAAE,WAAW,GAAG,IAAI,EACxB,MAAM,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,EACtC,MAAM,GAAE,OAAO,GAAG,IAAW,GAC5B,OAAO,CAUT;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,WAAW,EACpB,OAAO,CAAC,EAAE,YAAY,EACtB,QAAQ,GAAE,mBAAqD,GAC9D,IAAI,CA2BN"}
|
|
@@ -126,32 +126,4 @@ export function focusForLastInput(element, options, modality = getInteractionMod
|
|
|
126
126
|
...options,
|
|
127
127
|
focusVisible: false
|
|
128
128
|
});
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
* Prepares the focus return for an open surface that may be removed while
|
|
133
|
-
* open (rendered only while open, or removed with its view). Removing a
|
|
134
|
-
* `<dialog>` runs no close and no browser focus return. Call this while the
|
|
135
|
-
* surface is mounted: it reads the frame that hosts the surface now, because a
|
|
136
|
-
* removed frame's document has no window. Call the returned function from the
|
|
137
|
-
* effect cleanup with the opener.
|
|
138
|
-
*
|
|
139
|
-
* Once the commit has finished, focus moves to the opener only when the
|
|
140
|
-
* surface really left the document (StrictMode's simulated unmount keeps it),
|
|
141
|
-
* the opener is still on the page, and the removal lost focus, both in the
|
|
142
|
-
* surface's document and in the document that hosts its frame. A control the
|
|
143
|
-
* user pressed outside the surface, or outside its frame, keeps its focus.
|
|
144
|
-
*/
|
|
145
|
-
export function prepareFocusReturnOnRemoval(surface) {
|
|
146
|
-
const host = surface.ownerDocument.defaultView?.frameElement ?? null;
|
|
147
|
-
return opener => {
|
|
148
|
-
queueMicrotask(() => {
|
|
149
|
-
if (surface.isConnected || opener == null || !opener.isConnected) {
|
|
150
|
-
return;
|
|
151
|
-
}
|
|
152
|
-
if (isFocusLost(surface) && (host == null || isFocusLost(host))) {
|
|
153
|
-
focusForLastInput(opener);
|
|
154
|
-
}
|
|
155
|
-
});
|
|
156
|
-
};
|
|
157
129
|
}
|
|
@@ -9,9 +9,8 @@
|
|
|
9
9
|
* SYNC: When modified, update pressFeedback.ts, pressGesture.ts (the fade
|
|
10
10
|
* clock), hooks/usePressFeedback.doc.mjs, the components that paint the touch
|
|
11
11
|
* press off an ancestor scope or a pseudo-element (Switch, Tab,
|
|
12
|
-
* CheckboxInput, RadioListItem, ClickableCard, SelectableCard, Thumbnail)
|
|
13
|
-
*
|
|
14
|
-
* scripts/build-css.test.mjs.
|
|
12
|
+
* CheckboxInput, RadioListItem, ClickableCard, SelectableCard, Thumbnail)
|
|
13
|
+
* and scripts/build-css.test.mjs.
|
|
15
14
|
*/
|
|
16
15
|
import * as stylex from '@stylexjs/stylex';
|
|
17
16
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interactionOverlay.stylex.d.ts","sourceRoot":"","sources":["../../src/utils/interactionOverlay.stylex.ts"],"names":[],"mappings":"AAMA
|
|
1
|
+
{"version":3,"file":"interactionOverlay.stylex.d.ts","sourceRoot":"","sources":["../../src/utils/interactionOverlay.stylex.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;GAaG;AAmCH,OAAO,KAAK,MAAM,MAAM,kBAAkB,CAAC;AAG3C;;;;;;;;;;GAUG;AACH,eAAO,MAAM,SAAS;;WAEpB,CAAC;AAEH;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW;IACtB,iEAAiE;;CAEjE,CAAC;AA8HH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8HnC,CAAC"}
|
|
@@ -15,9 +15,8 @@
|
|
|
15
15
|
* SYNC: When modified, update pressFeedback.ts, pressGesture.ts (the fade
|
|
16
16
|
* clock), hooks/usePressFeedback.doc.mjs, the components that paint the touch
|
|
17
17
|
* press off an ancestor scope or a pseudo-element (Switch, Tab,
|
|
18
|
-
* CheckboxInput, RadioListItem, ClickableCard, SelectableCard, Thumbnail)
|
|
19
|
-
*
|
|
20
|
-
* scripts/build-css.test.mjs.
|
|
18
|
+
* CheckboxInput, RadioListItem, ClickableCard, SelectableCard, Thumbnail)
|
|
19
|
+
* and scripts/build-css.test.mjs.
|
|
21
20
|
*/
|
|
22
21
|
|
|
23
22
|
// Every surface that paints a press uses one of these styles, so a change to
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pressFeedback.d.ts","sourceRoot":"","sources":["../../src/utils/pressFeedback.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pressFeedback.d.ts","sourceRoot":"","sources":["../../src/utils/pressFeedback.ts"],"names":[],"mappings":"AAiDA;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,0BAA0B,CAAC;AAE3D;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,sBAAsB,CAAC;AAErD,qDAAqD;AACrD,eAAO,MAAM,cAAc,EAAE;IAAC,QAAQ,CAAC,CAAC,mBAAmB,CAAC,EAAE,EAAE,CAAA;CAE/D,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,OAAO,CAAC;AA4nB5C;;;;;;;;;;;;GAYG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,IAAI,CA0BjD"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @file pressFeedback.ts
|
|
5
|
-
* @input The press state machine (pressGesture.ts), the menu-press
|
|
6
|
-
*
|
|
5
|
+
* @input The press state machine (pressGesture.ts), the menu-press marker
|
|
6
|
+
* (hooks/menuPressMarker.ts) and the document's pointer, keyboard, scroll and
|
|
7
7
|
* visibility events
|
|
8
8
|
* @output PRESSABLE_ATTRIBUTE, PRESSED_ATTRIBUTE, pressableProps and
|
|
9
9
|
* installPressFeedback
|
|
@@ -38,7 +38,6 @@ import { isCoarsePointer, watchCoarsePointer } from "./coarsePointer.js";
|
|
|
38
38
|
import { subscribeInput } from "./inputStream.js";
|
|
39
39
|
import { TOUCH_QUERY } from "./touchPresentation.js";
|
|
40
40
|
import { holdsPressThroughDrag } from "../privateAttributes/pressHoldsDrag.stylex.js";
|
|
41
|
-
import { isTrackedByGroup } from "../privateAttributes/pressGroupItem.stylex.js";
|
|
42
41
|
|
|
43
42
|
/**
|
|
44
43
|
* The marker the controller finds with `closest()`. Every Astryx component
|
|
@@ -289,19 +288,14 @@ function stylesheetDroppedActive() {
|
|
|
289
288
|
|
|
290
289
|
/**
|
|
291
290
|
* The surface a mouse button's or the Space key's press paints, if any: the
|
|
292
|
-
* innermost marked surface, outside a menu
|
|
293
|
-
*
|
|
294
|
-
* `:active` does.
|
|
291
|
+
* innermost marked surface, outside a menu. A key's press paints only a
|
|
292
|
+
* focused element that is itself the surface, as `:active` does.
|
|
295
293
|
*/
|
|
296
294
|
function buttonSurfaceAt(target, pointerId) {
|
|
297
295
|
const element = surfaceAt(target);
|
|
298
296
|
if (element == null || element.closest(MENU_PRESS_ROOT) != null) {
|
|
299
297
|
return null;
|
|
300
298
|
}
|
|
301
|
-
// A group's tracker follows pointers only, so a key's press stays here.
|
|
302
|
-
if (pointerId != null && isTrackedByGroup(element)) {
|
|
303
|
-
return null;
|
|
304
|
-
}
|
|
305
299
|
if (pointerId == null && element !== target) {
|
|
306
300
|
return null;
|
|
307
301
|
}
|
|
@@ -385,9 +379,7 @@ function onPointerDown(event) {
|
|
|
385
379
|
const braking = element != null && scrollerIsBraking(element);
|
|
386
380
|
lastTouchAt = Date.now();
|
|
387
381
|
lastTouchTarget = event.target instanceof Node ? event.target : null;
|
|
388
|
-
|
|
389
|
-
// other's paint. The touch still counts for the brake above.
|
|
390
|
-
if (element == null || braking || isTrackedByGroup(element)) {
|
|
382
|
+
if (element == null || braking) {
|
|
391
383
|
return;
|
|
392
384
|
}
|
|
393
385
|
takeOver(button, element);
|
|
@@ -517,11 +509,6 @@ function activatesOnSpace(target) {
|
|
|
517
509
|
return target instanceof HTMLInputElement && SPACE_ACTIVATED_INPUT_TYPES.has(target.type);
|
|
518
510
|
}
|
|
519
511
|
|
|
520
|
-
/** A tracked action takes no `:active` paint, so a key's press paints here. */
|
|
521
|
-
function isTrackedAction(target) {
|
|
522
|
-
return target instanceof Element && isTrackedByGroup(target);
|
|
523
|
-
}
|
|
524
|
-
|
|
525
512
|
/**
|
|
526
513
|
* Space went down on a focused button that is itself a pressable surface.
|
|
527
514
|
* Heard in the BUBBLE phase, after the page's own handlers, so a press the
|
|
@@ -529,7 +516,7 @@ function isTrackedAction(target) {
|
|
|
529
516
|
* not engage for one.
|
|
530
517
|
*/
|
|
531
518
|
function onKeyDown(event) {
|
|
532
|
-
if (event.key !== ' ' || event.repeat || event.isComposing || event.defaultPrevented || !activatesOnSpace(event.target) || !
|
|
519
|
+
if (event.key !== ' ' || event.repeat || event.isComposing || event.defaultPrevented || !activatesOnSpace(event.target) || !stylesheetDroppedActive()) {
|
|
533
520
|
return;
|
|
534
521
|
}
|
|
535
522
|
pressButton(event.target, null);
|