@astryxdesign/core 0.7.15 → 0.7.16-canary.g22213fd
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/AppShell.d.ts.map +1 -1
- package/dist/AppShell/AppShell.js +8 -2
- package/dist/AppShell/useCloseMobileDrawerOnActivate.d.ts +2 -1
- package/dist/AppShell/useCloseMobileDrawerOnActivate.d.ts.map +1 -1
- package/dist/AppShell/useCloseMobileDrawerOnActivate.js +15 -2
- package/dist/BottomSheet/BottomSheet.d.ts.map +1 -1
- package/dist/BottomSheet/BottomSheet.js +49 -94
- package/dist/BottomSheet/BottomSheetPanel.d.ts +14 -6
- package/dist/BottomSheet/BottomSheetPanel.d.ts.map +1 -1
- package/dist/BottomSheet/BottomSheetPanel.js +72 -43
- package/dist/BottomSheet/useSheetGestures.d.ts.map +1 -1
- package/dist/BottomSheet/useSheetGestures.js +4 -7
- package/dist/Button/Button.d.ts.map +1 -1
- package/dist/Button/Button.js +78 -3
- package/dist/Chat/ChatComposerInput.d.ts.map +1 -1
- package/dist/Chat/ChatComposerInput.js +1 -1
- package/dist/ContextMenu/ContextMenu.d.ts.map +1 -1
- package/dist/ContextMenu/ContextMenu.js +3 -0
- package/dist/DateInput/DateInput.d.ts +27 -3
- package/dist/DateInput/DateInput.d.ts.map +1 -1
- package/dist/DateInput/DateInput.js +24 -6
- package/dist/DateInput/NativeDateField.d.ts +1 -1
- package/dist/DateInput/NativeDateField.d.ts.map +1 -1
- package/dist/DateInput/NativeDateField.js +48 -31
- package/dist/DateInput/index.d.ts +1 -1
- package/dist/DateInput/index.d.ts.map +1 -1
- package/dist/DateInput/useTypedDate.d.ts +75 -8
- package/dist/DateInput/useTypedDate.d.ts.map +1 -1
- package/dist/DateInput/useTypedDate.js +188 -133
- package/dist/DateTimeInput/DateTimeInput.d.ts +32 -3
- package/dist/DateTimeInput/DateTimeInput.d.ts.map +1 -1
- package/dist/DateTimeInput/DateTimeInput.js +99 -62
- package/dist/DateTimeInput/NativeDateSegment.d.ts +8 -1
- package/dist/DateTimeInput/NativeDateSegment.d.ts.map +1 -1
- package/dist/DateTimeInput/NativeDateSegment.js +20 -14
- package/dist/DateTimeInput/NativeTimeSegment.d.ts +13 -1
- package/dist/DateTimeInput/NativeTimeSegment.d.ts.map +1 -1
- package/dist/DateTimeInput/NativeTimeSegment.js +21 -18
- package/dist/DateTimeInput/index.d.ts +1 -1
- package/dist/DateTimeInput/index.d.ts.map +1 -1
- package/dist/Dialog/Dialog.d.ts.map +1 -1
- package/dist/Dialog/Dialog.js +3 -2
- package/dist/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/dist/DropdownMenu/DropdownMenu.js +10 -3
- package/dist/DropdownMenu/DropdownMenuSubMenu.d.ts.map +1 -1
- package/dist/DropdownMenu/DropdownMenuSubMenu.js +3 -0
- package/dist/Field/InputClearButton.d.ts.map +1 -1
- package/dist/Field/InputClearButton.js +4 -2
- package/dist/Field/useEntryErrorBehavior.d.ts +8 -0
- package/dist/Field/useEntryErrorBehavior.d.ts.map +1 -0
- package/dist/Field/useEntryErrorBehavior.js +30 -0
- package/dist/Field/useEntryErrorReport.d.ts +40 -0
- package/dist/Field/useEntryErrorReport.d.ts.map +1 -0
- package/dist/Field/useEntryErrorReport.js +157 -0
- package/dist/Field/useValueReplacesEntry.d.ts +11 -0
- package/dist/Field/useValueReplacesEntry.d.ts.map +1 -0
- package/dist/Field/useValueReplacesEntry.js +46 -0
- package/dist/FormLayout/FormLayout.d.ts +21 -2
- package/dist/FormLayout/FormLayout.d.ts.map +1 -1
- package/dist/FormLayout/FormLayout.js +5 -2
- package/dist/FormLayout/FormLayoutContext.d.ts +18 -2
- package/dist/FormLayout/FormLayoutContext.d.ts.map +1 -1
- package/dist/FormLayout/FormLayoutContext.js +22 -4
- package/dist/FormLayout/index.d.ts +1 -1
- package/dist/FormLayout/index.d.ts.map +1 -1
- package/dist/InfoTip/InfoTip.d.ts +1 -1
- package/dist/InfoTip/InfoTip.d.ts.map +1 -1
- package/dist/InfoTip/InfoTip.js +4 -1
- package/dist/Layer/gestureCounter.d.ts +14 -0
- package/dist/Layer/gestureCounter.d.ts.map +1 -1
- package/dist/Layer/gestureCounter.js +123 -4
- package/dist/Layer/inputHold.d.ts +11 -1
- package/dist/Layer/inputHold.d.ts.map +1 -1
- package/dist/Layer/inputHold.js +114 -2
- package/dist/Layer/layerAnimations.stylex.d.ts.map +1 -1
- package/dist/Layer/layerAnimations.stylex.js +17 -13
- package/dist/Layer/layerEntranceSide.d.ts +24 -10
- package/dist/Layer/layerEntranceSide.d.ts.map +1 -1
- package/dist/Layer/layerEntranceSide.js +30 -14
- package/dist/Layer/useLayer.d.ts.map +1 -1
- package/dist/Layer/useLayer.js +76 -15
- package/dist/Layer/useTouchTrigger.d.ts.map +1 -1
- package/dist/Layer/useTouchTrigger.js +14 -20
- package/dist/Lightbox/Lightbox.d.ts.map +1 -1
- package/dist/Lightbox/Lightbox.js +623 -263
- package/dist/Lightbox/useZoomCore.d.ts +2 -13
- package/dist/Lightbox/useZoomCore.d.ts.map +1 -1
- package/dist/Lightbox/useZoomCore.js +7 -33
- package/dist/Lightbox/useZoomStage.d.ts.map +1 -1
- package/dist/Lightbox/useZoomStage.js +3 -9
- package/dist/List/ListItem.d.ts +3 -2
- package/dist/List/ListItem.d.ts.map +1 -1
- package/dist/List/ListReorderHandle.d.ts +7 -0
- package/dist/List/ListReorderHandle.d.ts.map +1 -1
- package/dist/List/ListReorderHandle.js +42 -58
- package/dist/List/listReorderContext.d.ts.map +1 -1
- package/dist/List/listReorderContext.js +4 -4
- package/dist/List/listReorderEngine.d.ts +50 -2
- package/dist/List/listReorderEngine.d.ts.map +1 -1
- package/dist/List/listReorderEngine.js +205 -10
- package/dist/Markdown/Markdown.d.ts.map +1 -1
- package/dist/Markdown/Markdown.js +7 -0
- package/dist/Markdown/plugins/textTransform.d.ts.map +1 -1
- package/dist/Markdown/plugins/textTransform.js +31 -10
- package/dist/MetadataList/MetadataList.d.ts +2 -1
- package/dist/MetadataList/MetadataList.d.ts.map +1 -1
- package/dist/MetadataList/MetadataList.js +1 -1
- package/dist/MoreMenu/MoreMenu.d.ts +1 -1
- package/dist/MoreMenu/MoreMenu.d.ts.map +1 -1
- package/dist/MoreMenu/MoreMenu.js +4 -1
- package/dist/NumberInput/NumberInput.d.ts +78 -2
- package/dist/NumberInput/NumberInput.d.ts.map +1 -1
- package/dist/NumberInput/NumberInput.js +144 -40
- package/dist/NumberInput/index.d.ts +2 -2
- package/dist/NumberInput/index.d.ts.map +1 -1
- package/dist/NumberInput/index.js +1 -1
- package/dist/NumberInput/numberInputCommit.d.ts +18 -1
- package/dist/NumberInput/numberInputCommit.d.ts.map +1 -1
- package/dist/NumberInput/numberInputCommit.js +57 -3
- package/dist/Outline/useOutlineFromDOM.d.ts.map +1 -1
- package/dist/Outline/useOutlineFromDOM.js +1 -0
- package/dist/Pagination/Pagination.d.ts.map +1 -1
- package/dist/Pagination/Pagination.js +13 -3
- package/dist/Popover/popoverSurfaceFrame.d.ts +4 -16
- package/dist/Popover/popoverSurfaceFrame.d.ts.map +1 -1
- package/dist/Popover/popoverSurfaceFrame.js +16 -31
- package/dist/Popover/usePopover.d.ts.map +1 -1
- package/dist/Popover/usePopover.js +26 -15
- package/dist/PowerSearch/PowerSearch.d.ts +1 -1
- package/dist/PowerSearch/PowerSearch.d.ts.map +1 -1
- package/dist/PowerSearch/PowerSearch.js +8 -4
- package/dist/PowerSearch/PowerSearchEditPopover.d.ts +4 -1
- package/dist/PowerSearch/PowerSearchEditPopover.d.ts.map +1 -1
- package/dist/PowerSearch/PowerSearchEditPopover.js +4 -1
- package/dist/PowerSearch/PowerSearchFilterEditor.d.ts +1 -1
- package/dist/PowerSearch/PowerSearchFilterEditor.d.ts.map +1 -1
- package/dist/PowerSearch/PowerSearchFilterEditor.js +7 -3
- package/dist/PowerSearch/PowerSearchToken.d.ts +1 -1
- package/dist/PowerSearch/PowerSearchToken.d.ts.map +1 -1
- package/dist/PowerSearch/PowerSearchToken.js +4 -1
- package/dist/PowerSearch/PowerSearchValueEditor.d.ts.map +1 -1
- package/dist/PowerSearch/PowerSearchValueEditor.js +4 -0
- package/dist/SegmentedControl/useSegmentedTouchTracking.d.ts.map +1 -1
- package/dist/SegmentedControl/useSegmentedTouchTracking.js +18 -0
- package/dist/Selector/Selector.d.ts.map +1 -1
- package/dist/Selector/Selector.js +0 -2
- package/dist/Selector/useSelectorPresentation.d.ts.map +1 -1
- package/dist/Selector/useSelectorPresentation.js +13 -12
- package/dist/Slider/Slider.d.ts.map +1 -1
- package/dist/Slider/Slider.js +6 -8
- package/dist/Table/BaseTable.d.ts +1 -1
- package/dist/Table/BaseTable.d.ts.map +1 -1
- package/dist/Table/BaseTable.js +276 -198
- package/dist/Table/Table.d.ts +5 -1
- package/dist/Table/Table.d.ts.map +1 -1
- package/dist/Table/index.d.ts +5 -3
- package/dist/Table/index.d.ts.map +1 -1
- package/dist/Table/index.js +2 -1
- package/dist/Table/plugins/filtering/useTableFiltering.d.ts.map +1 -1
- package/dist/Table/plugins/filtering/useTableFiltering.js +2 -0
- package/dist/Table/plugins/infiniteScroll/TableInfiniteScrollWide.a11y.chromium.spec.d.ts.map +1 -0
- package/dist/Table/plugins/infiniteScroll/index.d.ts +9 -0
- package/dist/Table/plugins/infiniteScroll/index.d.ts.map +1 -0
- package/dist/Table/plugins/infiniteScroll/index.js +9 -0
- package/dist/Table/plugins/infiniteScroll/useTableInfiniteScroll.d.ts +29 -0
- package/dist/Table/plugins/infiniteScroll/useTableInfiniteScroll.d.ts.map +1 -0
- package/dist/Table/plugins/infiniteScroll/useTableInfiniteScroll.js +394 -0
- package/dist/Table/plugins/sortable/useTableSortableState.d.ts.map +1 -1
- package/dist/Table/plugins/sortable/useTableSortableState.js +4 -4
- package/dist/Table/plugins/stickyColumns/useTableStickyColumns.d.ts.map +1 -1
- package/dist/Table/plugins/stickyColumns/useTableStickyColumns.js +21 -1
- package/dist/Table/plugins/virtualization/TableColumnWindow.d.ts +4 -0
- package/dist/Table/plugins/virtualization/TableColumnWindow.d.ts.map +1 -0
- package/dist/Table/plugins/virtualization/TableColumnWindow.js +114 -0
- package/dist/Table/plugins/virtualization/index.d.ts +3 -1
- package/dist/Table/plugins/virtualization/index.d.ts.map +1 -1
- package/dist/Table/plugins/virtualization/index.js +3 -2
- package/dist/Table/plugins/virtualization/useTableColumnWindow.d.ts +39 -0
- package/dist/Table/plugins/virtualization/useTableColumnWindow.d.ts.map +1 -0
- package/dist/Table/plugins/virtualization/useTableColumnWindow.js +215 -0
- package/dist/Table/plugins/virtualization/useTableColumnsVirtualization.d.ts +23 -0
- package/dist/Table/plugins/virtualization/useTableColumnsVirtualization.d.ts.map +1 -0
- package/dist/Table/plugins/virtualization/useTableColumnsVirtualization.js +37 -0
- package/dist/Table/plugins/virtualization/useTableWindow.d.ts +2 -1
- package/dist/Table/plugins/virtualization/useTableWindow.d.ts.map +1 -1
- package/dist/Table/plugins/virtualization/useTableWindow.js +43 -13
- package/dist/Table/tableColumnWindowing.d.ts +107 -0
- package/dist/Table/tableColumnWindowing.d.ts.map +1 -0
- package/dist/Table/tableColumnWindowing.js +72 -0
- package/dist/Table/tablePinnedColumnRuns.d.ts +23 -0
- package/dist/Table/tablePinnedColumnRuns.d.ts.map +1 -0
- package/dist/Table/tablePinnedColumnRuns.js +41 -0
- package/dist/Table/tableRuntime.d.ts +14 -2
- package/dist/Table/tableRuntime.d.ts.map +1 -1
- package/dist/Table/tableRuntime.js +32 -11
- package/dist/Table/types.d.ts +28 -2
- package/dist/Table/types.d.ts.map +1 -1
- package/dist/Table/useBaseTablePlugins.js +2 -2
- package/dist/Text/useTruncation.d.ts +6 -1
- package/dist/Text/useTruncation.d.ts.map +1 -1
- package/dist/Text/useTruncation.js +53 -35
- package/dist/TextArea/TextArea.d.ts +10 -1
- package/dist/TextArea/TextArea.d.ts.map +1 -1
- package/dist/TextArea/TextArea.js +2 -0
- package/dist/Thumbnail/Thumbnail.d.ts +2 -2
- package/dist/TimeInput/TimeInput.d.ts +61 -0
- package/dist/TimeInput/TimeInput.d.ts.map +1 -1
- package/dist/TimeInput/TimeInput.js +97 -84
- package/dist/TimeInput/index.d.ts +1 -1
- package/dist/TimeInput/index.d.ts.map +1 -1
- package/dist/TimeInput/useTypedTime.d.ts +76 -0
- package/dist/TimeInput/useTypedTime.d.ts.map +1 -0
- package/dist/TimeInput/useTypedTime.js +258 -0
- package/dist/Toast/Toast.d.ts +6 -1
- package/dist/Toast/Toast.d.ts.map +1 -1
- package/dist/Toast/Toast.js +21 -3
- package/dist/Toast/ToastViewport.d.ts.map +1 -1
- package/dist/Toast/ToastViewport.js +10 -9
- package/dist/Tooltip/useTooltip.d.ts.map +1 -1
- package/dist/Tooltip/useTooltip.js +46 -53
- package/dist/astryx.css +58 -17
- package/dist/dragToSnapPoints/createDragToSnapPoints.d.ts +156 -0
- package/dist/dragToSnapPoints/createDragToSnapPoints.d.ts.map +1 -1
- package/dist/dragToSnapPoints/createDragToSnapPoints.js +313 -97
- package/dist/gestures/createPanGesture.d.ts +41 -0
- package/dist/gestures/createPanGesture.d.ts.map +1 -1
- package/dist/gestures/createPanGesture.js +66 -22
- package/dist/hooks/containerReveal.stylex.d.ts.map +1 -1
- package/dist/hooks/containerReveal.stylex.js +18 -15
- package/dist/hooks/useAnnounceRenderedText.d.ts +9 -3
- package/dist/hooks/useAnnounceRenderedText.d.ts.map +1 -1
- package/dist/hooks/useAnnounceRenderedText.js +9 -7
- package/dist/hooks/useContainerReveal.d.ts +8 -5
- package/dist/hooks/useContainerReveal.d.ts.map +1 -1
- package/dist/hooks/useContainerReveal.js +2 -1
- package/dist/hooks/useMenuPress.d.ts.map +1 -1
- package/dist/hooks/useMenuPress.js +36 -2
- package/dist/i18n/generated-english/DateInput/NativeDateField.generated.d.ts.map +1 -1
- package/dist/i18n/generated-english/DateInput/NativeDateField.generated.js +0 -1
- package/dist/i18n/generated-english/DateTimeInput/NativeDateSegment.generated.d.ts.map +1 -1
- package/dist/i18n/generated-english/DateTimeInput/NativeDateSegment.generated.js +0 -1
- package/dist/i18n/generated-english/Lightbox/Lightbox.generated.d.ts.map +1 -1
- package/dist/i18n/generated-english/Lightbox/Lightbox.generated.js +2 -0
- package/dist/i18n/generated-english/{DateTimeInput/NativeTimeSegment.generated.d.ts → Table/plugins/infiniteScroll/useTableInfiniteScroll.generated.d.ts} +2 -2
- package/dist/i18n/generated-english/Table/plugins/infiniteScroll/useTableInfiniteScroll.generated.d.ts.map +1 -0
- package/dist/i18n/generated-english/{DateTimeInput/NativeTimeSegment.generated.js → Table/plugins/infiniteScroll/useTableInfiniteScroll.generated.js} +2 -2
- package/dist/i18n/generated-locales/en.generated.d.ts.map +1 -1
- package/dist/i18n/generated-locales/en.generated.js +33 -0
- package/dist/i18n/generated-locales/pseudo.generated.d.ts.map +1 -1
- package/dist/i18n/generated-locales/pseudo.generated.js +33 -0
- package/dist/internal/shared-context.d.ts +15 -0
- package/dist/internal/shared-context.d.ts.map +1 -0
- package/dist/internal/shared-context.js +15 -0
- package/dist/internal/touch.d.ts +1 -1
- package/dist/internal/touch.d.ts.map +1 -1
- package/dist/internal/touch.js +1 -1
- package/dist/motion/animatedLayout.d.ts.map +1 -1
- package/dist/motion/animatedLayout.js +2 -17
- package/dist/motion/animator.d.ts +28 -1
- package/dist/motion/animator.d.ts.map +1 -1
- package/dist/motion/animator.js +99 -19
- package/dist/motion/linearEasing.d.ts +9 -0
- package/dist/motion/linearEasing.d.ts.map +1 -0
- package/dist/motion/linearEasing.js +32 -0
- package/dist/motion/resolveMotion.d.ts +16 -0
- package/dist/motion/resolveMotion.d.ts.map +1 -1
- package/dist/motion/resolveMotion.js +40 -1
- package/dist/theme/generateThemeRules.d.ts.map +1 -1
- package/dist/theme/generateThemeRules.js +14 -3
- package/dist/theme/tokenReferences.d.ts +7 -15
- package/dist/theme/tokenReferences.d.ts.map +1 -1
- package/dist/theme/tokenReferences.js +49 -7
- package/dist/utils/clickGuard.d.ts +8 -1
- package/dist/utils/clickGuard.d.ts.map +1 -1
- package/dist/utils/clickGuard.js +27 -4
- package/dist/utils/sharedResizeObserver.d.ts +18 -2
- package/dist/utils/sharedResizeObserver.d.ts.map +1 -1
- package/dist/utils/sharedResizeObserver.js +43 -2
- package/dist/utils/themeProps.d.ts +8 -0
- package/dist/utils/themeProps.d.ts.map +1 -1
- package/dist/utils/themeProps.js +17 -0
- package/dist/utils/timeFormat.d.ts +9 -1
- package/dist/utils/timeFormat.d.ts.map +1 -1
- package/dist/utils/timeFormat.js +46 -6
- package/dist/utils/timeParser.d.ts +3 -1
- package/dist/utils/timeParser.d.ts.map +1 -1
- package/dist/utils/timeParser.js +7 -3
- package/dist/utils/touchEndMark.d.ts +7 -0
- package/dist/utils/touchEndMark.d.ts.map +1 -0
- package/dist/utils/touchEndMark.js +33 -0
- package/dist/virtualization/listWindow.d.ts +28 -2
- package/dist/virtualization/listWindow.d.ts.map +1 -1
- package/dist/virtualization/listWindow.js +71 -3
- package/dist/virtualization/useInlineListWindow.d.ts +64 -0
- package/dist/virtualization/useInlineListWindow.d.ts.map +1 -0
- package/dist/virtualization/useInlineListWindow.js +135 -0
- package/dist/virtualization/useListFocusIsland.d.ts +28 -0
- package/dist/virtualization/useListFocusIsland.d.ts.map +1 -0
- package/dist/virtualization/useListFocusIsland.js +53 -0
- package/dist/virtualization/useListWindow.d.ts +6 -4
- package/dist/virtualization/useListWindow.d.ts.map +1 -1
- package/dist/virtualization/useListWindow.js +17 -29
- package/locales/en.json +144 -12
- package/locales/pseudo.json +99 -0
- package/package.json +10 -5
- package/src/AppShell/AppShell.tsx +12 -3
- package/src/AppShell/useCloseMobileDrawerOnActivate.ts +19 -2
- package/src/BottomSheet/BottomSheet.tsx +55 -109
- package/src/BottomSheet/BottomSheetPanel.tsx +93 -57
- package/src/BottomSheet/useSheetGestures.ts +18 -18
- package/src/Button/Button.tsx +132 -5
- package/src/ButtonGroup/ButtonGroup.doc.mjs +5 -0
- package/src/Chat/ChatComposerInput.tsx +4 -0
- package/src/CheckboxInput/CheckboxInput.doc.mjs +3 -0
- package/src/ContextMenu/ContextMenu.tsx +13 -0
- package/src/DateInput/DateInput.doc.mjs +21 -3
- package/src/DateInput/DateInput.tsx +61 -7
- package/src/DateInput/NativeDateField.tsx +58 -36
- package/src/DateInput/index.ts +1 -0
- package/src/DateInput/useTypedDate.ts +293 -196
- package/src/DateTimeInput/DateTimeInput.doc.mjs +21 -3
- package/src/DateTimeInput/DateTimeInput.tsx +158 -86
- package/src/DateTimeInput/NativeDateSegment.tsx +35 -13
- package/src/DateTimeInput/NativeTimeSegment.tsx +45 -22
- package/src/DateTimeInput/index.ts +1 -0
- package/src/Dialog/Dialog.tsx +13 -2
- package/src/DropdownMenu/DropdownMenu.tsx +10 -3
- package/src/DropdownMenu/DropdownMenuSubMenu.tsx +13 -0
- package/src/Field/InputClearButton.tsx +3 -1
- package/src/Field/useEntryErrorBehavior.ts +34 -0
- package/src/Field/useEntryErrorReport.ts +210 -0
- package/src/Field/useValueReplacesEntry.ts +44 -0
- package/src/FormLayout/FormLayout.doc.mjs +14 -0
- package/src/FormLayout/FormLayout.tsx +24 -2
- package/src/FormLayout/FormLayoutContext.ts +24 -4
- package/src/FormLayout/index.ts +5 -1
- package/src/InfoTip/InfoTip.doc.mjs +2 -2
- package/src/InfoTip/InfoTip.tsx +3 -0
- package/src/Layer/gestureCounter.ts +136 -4
- package/src/Layer/inputHold.ts +137 -2
- package/src/Layer/layerAnimations.stylex.ts +13 -9
- package/src/Layer/layerEntranceSide.ts +50 -12
- package/src/Layer/useLayer.tsx +89 -15
- package/src/Layer/useTouchTrigger.ts +21 -21
- package/src/Lightbox/Lightbox.doc.mjs +2 -1
- package/src/Lightbox/Lightbox.tsx +833 -357
- package/src/Lightbox/useZoomCore.ts +6 -49
- package/src/Lightbox/useZoomStage.ts +7 -17
- package/src/List/ListItem.tsx +3 -2
- package/src/List/ListReorderHandle.tsx +59 -77
- package/src/List/listReorderContext.ts +3 -4
- package/src/List/listReorderEngine.tsx +246 -11
- package/src/Markdown/Markdown.tsx +6 -0
- package/src/Markdown/plugins/textTransform.ts +46 -12
- package/src/MetadataList/MetadataList.doc.mjs +16 -0
- package/src/MetadataList/MetadataList.tsx +3 -2
- package/src/MoreMenu/MoreMenu.doc.mjs +2 -2
- package/src/MoreMenu/MoreMenu.tsx +3 -0
- package/src/NumberInput/NumberInput.doc.mjs +47 -6
- package/src/NumberInput/NumberInput.tsx +245 -52
- package/src/NumberInput/index.ts +3 -1
- package/src/NumberInput/numberInputCommit.ts +57 -13
- package/src/Outline/useOutlineFromDOM.doc.mjs +99 -0
- package/src/Outline/useOutlineFromDOM.ts +1 -0
- package/src/Pagination/Pagination.tsx +15 -4
- package/src/Popover/popoverSurfaceFrame.ts +18 -41
- package/src/Popover/usePopover.tsx +43 -22
- package/src/PowerSearch/PowerSearch.doc.mjs +2 -2
- package/src/PowerSearch/PowerSearch.tsx +7 -3
- package/src/PowerSearch/PowerSearchEditPopover.tsx +12 -2
- package/src/PowerSearch/PowerSearchFilterEditor.tsx +3 -0
- package/src/PowerSearch/PowerSearchToken.tsx +3 -0
- package/src/PowerSearch/PowerSearchValueEditor.tsx +4 -0
- package/src/ProgressBar/ProgressBar.doc.mjs +3 -0
- package/src/SegmentedControl/SegmentedControl.doc.mjs +5 -0
- package/src/SegmentedControl/useSegmentedTouchTracking.ts +15 -0
- package/src/Selector/Selector.tsx +0 -1
- package/src/Selector/useSelectorPresentation.ts +16 -12
- package/src/Slider/Slider.tsx +6 -8
- package/src/StatusDot/StatusDot.doc.mjs +3 -0
- package/src/Switch/Switch.doc.mjs +3 -0
- package/src/TabList/TabList.doc.mjs +4 -0
- package/src/Table/BaseTable.tsx +440 -289
- package/src/Table/Table.doc.mjs +2 -2
- package/src/Table/Table.tsx +5 -1
- package/src/Table/index.ts +8 -1
- package/src/Table/plugins/filtering/useTableFiltering.tsx +2 -0
- package/src/Table/plugins/infiniteScroll/index.ts +10 -0
- package/src/Table/plugins/infiniteScroll/useTableInfiniteScroll.tsx +523 -0
- package/src/Table/plugins/sortable/useTableSortableState.tsx +4 -4
- package/src/Table/plugins/stickyColumns/useTableStickyColumns.tsx +31 -1
- package/src/Table/plugins/virtualization/TableColumnWindow.tsx +160 -0
- package/src/Table/plugins/virtualization/index.ts +3 -1
- package/src/Table/plugins/virtualization/useTableColumnWindow.ts +284 -0
- package/src/Table/plugins/virtualization/useTableColumnsVirtualization.ts +53 -0
- package/src/Table/plugins/virtualization/useTableWindow.ts +49 -17
- package/src/Table/tableColumnWindowing.ts +181 -0
- package/src/Table/tablePinnedColumnRuns.ts +55 -0
- package/src/Table/tableRuntime.ts +44 -11
- package/src/Table/types.ts +25 -2
- package/src/Table/useBaseTablePlugins.ts +2 -2
- package/src/Table/useTableColumnsVirtualization.doc.mjs +29 -0
- package/src/Table/useTableInfiniteScroll.doc.mjs +58 -0
- package/src/Text/Heading.doc.mjs +3 -0
- package/src/Text/useTruncation.doc.mjs +10 -0
- package/src/Text/useTruncation.ts +53 -35
- package/src/TextArea/TextArea.doc.mjs +15 -0
- package/src/TextArea/TextArea.tsx +11 -0
- package/src/TextInput/TextInput.doc.mjs +3 -0
- package/src/Thumbnail/Thumbnail.doc.mjs +2 -2
- package/src/Thumbnail/Thumbnail.tsx +2 -2
- package/src/TimeInput/TimeInput.doc.mjs +38 -4
- package/src/TimeInput/TimeInput.tsx +176 -99
- package/src/TimeInput/index.ts +2 -0
- package/src/TimeInput/useTypedTime.ts +341 -0
- package/src/Toast/Toast.doc.mjs +2 -2
- package/src/Toast/Toast.tsx +36 -3
- package/src/Toast/ToastViewport.tsx +14 -9
- package/src/Tooltip/useTooltip.tsx +147 -136
- package/src/TopNav/TopNav.doc.mjs +4 -0
- package/src/dragToSnapPoints/createDragToSnapPoints.ts +437 -119
- package/src/gestures/createPanGesture.ts +112 -39
- package/src/hooks/containerReveal.stylex.ts +17 -15
- package/src/hooks/useAnnounceRenderedText.ts +18 -6
- package/src/hooks/useContainerReveal.doc.mjs +3 -3
- package/src/hooks/useContainerReveal.ts +8 -5
- package/src/hooks/useMenuPress.ts +39 -0
- package/src/i18n/generated-english/DateInput/NativeDateField.generated.ts +0 -1
- package/src/i18n/generated-english/DateTimeInput/NativeDateSegment.generated.ts +0 -1
- package/src/i18n/generated-english/Lightbox/Lightbox.generated.ts +2 -0
- package/src/i18n/generated-english/{DateTimeInput/NativeTimeSegment.generated.ts → Table/plugins/infiniteScroll/useTableInfiniteScroll.generated.ts} +2 -2
- package/src/i18n/generated-locales/en.generated.ts +35 -0
- package/src/i18n/generated-locales/pseudo.generated.ts +35 -0
- package/src/internal/shared-context.ts +15 -0
- package/src/internal/touch.ts +5 -1
- package/src/motion/README.md +1 -0
- package/src/motion/animatedLayout.ts +6 -21
- package/src/motion/animator.ts +181 -23
- package/src/motion/linearEasing.ts +35 -0
- package/src/motion/resolveMotion.ts +42 -1
- package/src/theme/generateThemeRules.ts +14 -3
- package/src/theme/tokenReferences.ts +48 -7
- package/src/utils/clickGuard.ts +33 -3
- package/src/utils/sharedResizeObserver.ts +46 -2
- package/src/utils/themeProps.ts +17 -0
- package/src/utils/timeFormat.ts +55 -10
- package/src/utils/timeParser.ts +7 -9
- package/src/utils/touchEndMark.ts +33 -0
- package/src/virtualization/listWindow.ts +105 -3
- package/src/virtualization/useInlineListWindow.ts +261 -0
- package/src/virtualization/useListFocusIsland.ts +87 -0
- package/src/virtualization/useListWindow.ts +14 -51
- package/dist/i18n/generated-english/DateTimeInput/NativeTimeSegment.generated.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppShell.d.ts","sourceRoot":"","sources":["../../src/AppShell/AppShell.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;;;;;;;;;;;;;GAcG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"AppShell.d.ts","sourceRoot":"","sources":["../../src/AppShell/AppShell.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EASL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AA0Cf,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAW5C,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC;AA6ChD;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,mBAAmB,GAAG,MAAM,CAAC;AAE9D;;;;;;;GAOG;AAEH;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,kBAAkB,CAAC;AAEvD;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IAEzC;;;;OAIG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IAEpB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,kBAAkB,CAAC;IAEhC;;;;;;;;;;OAUG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,aAAc,SAAQ,SAAS,CAAC,cAAc,CAAC;IAC9D,wCAAwC;IACxC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAChC;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,eAAe,CAAC;IAE1B;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;IAEnB;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IAEpB;;;;;;;OAOG;IACH,cAAc,CAAC,EAAE,WAAW,CAAC;IAE7B;;;;;OAKG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAEzB;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,SAAS,CAAC,EAAE,KAAK,GAAG,eAAe,GAAG,SAAS,CAAC;IAEhD;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IAEpB;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB;AAuQD,wBAAgB,QAAQ,CAAC,EACvB,OAAoB,EACpB,MAAM,EACN,QAAQ,EACR,cAAc,EACd,aAAa,EAAE,UAAU,EACzB,MAAe,EACf,SAAS,EACT,OAAO,EACP,MAAM,EACN,MAAM,EACN,SAAS,EACT,KAAK,EACL,GAAG,EACH,GAAG,IAAI,EACR,EAAE,aAAa,qBAizBf;yBAh0Be,QAAQ"}
|
|
@@ -20,7 +20,7 @@ import React from 'react';
|
|
|
20
20
|
* - /packages/cli/assets/templates/blocks/components/AppShell/ (showcase blocks)
|
|
21
21
|
*/
|
|
22
22
|
|
|
23
|
-
import { isValidElement, useCallback, useEffect, useId, useMemo, useRef, useState } from 'react';
|
|
23
|
+
import { isValidElement, useCallback, useDeferredValue, useEffect, useId, useMemo, useRef, useState } from 'react';
|
|
24
24
|
import * as stylex from '@stylexjs/stylex';
|
|
25
25
|
import "../theme/tokens.stylex.js";
|
|
26
26
|
import { colorVars, focusVars, fontWeightVars, radiusVars, spacingVars, typeScaleVars } from "../theme/tokens.stylex.js";
|
|
@@ -319,7 +319,13 @@ export function AppShell({
|
|
|
319
319
|
// =========================================================================
|
|
320
320
|
const activeWidthBreakpoints = activeTheme?.__adaptations?.widthBreakpoints;
|
|
321
321
|
const breakpointQuery = sideNavBreakpoint === 'none' ? '(width < 0px)' : `(width < ${activeWidthBreakpoints?.[sideNavBreakpoint] ?? DEFAULT_WIDTH_BREAKPOINTS[sideNavBreakpoint]}px)`;
|
|
322
|
-
|
|
322
|
+
// The client's first answer can differ from the server's. That correction
|
|
323
|
+
// is an urgent update, and it changes the mobile context above the page.
|
|
324
|
+
// React answers an urgent update above content it has not hydrated by
|
|
325
|
+
// rendering that content again in place of its server HTML. A deferred
|
|
326
|
+
// value takes the client's answer in a transition, which waits for that
|
|
327
|
+
// content to hydrate.
|
|
328
|
+
const isBelowBreakpoint = useDeferredValue(useMediaQuery(breakpointQuery, sideNavBreakpoint === 'none' ? false : mobileNavConfig?.defaultIsMobile));
|
|
323
329
|
const [uncontrolledMobileOpen, setUncontrolledMobileOpen] = useState(false);
|
|
324
330
|
const isMobileNavOpen = mobileNavConfig?.isOpen ?? uncontrolledMobileOpen;
|
|
325
331
|
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
* Returns a function that wraps a row's click handler. While
|
|
3
3
|
* `isInMobileDrawer` is true, the wrapped handler calls the row's handler and
|
|
4
4
|
* then closes the AppShell mobile drawer. Otherwise the row's handler comes
|
|
5
|
-
* back unchanged. Every drawer row closes the drawer through this one rule
|
|
5
|
+
* back unchanged. Every drawer row closes the drawer through this one rule,
|
|
6
|
+
* except that a modified click on a link leaves it open.
|
|
6
7
|
*/
|
|
7
8
|
export declare function useCloseMobileDrawerOnActivate(isInMobileDrawer: boolean): <Args extends unknown[]>(onClick: ((...args: Args) => void) | undefined) => ((...args: Args) => void) | undefined;
|
|
8
9
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCloseMobileDrawerOnActivate.d.ts","sourceRoot":"","sources":["../../src/AppShell/useCloseMobileDrawerOnActivate.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useCloseMobileDrawerOnActivate.d.ts","sourceRoot":"","sources":["../../src/AppShell/useCloseMobileDrawerOnActivate.ts"],"names":[],"mappings":"AAiBA;;;;;;GAMG;AACH,wBAAgB,8BAA8B,CAC5C,gBAAgB,EAAE,OAAO,GACxB,CAAC,IAAI,SAAS,OAAO,EAAE,EACxB,OAAO,EAAE,CAAC,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC,GAAG,SAAS,KAC3C,CAAC,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC,GAAG,SAAS,CAazC;AAeD;;;GAGG;AACH,wBAAgB,2BAA2B,IAAI,OAAO,CAQrD"}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* exported from the package.
|
|
11
11
|
*/
|
|
12
12
|
import { useAppShellMobile } from "./AppShellMobileContext.js";
|
|
13
|
+
import { isModifiedClick } from "../DropdownMenu/menuItemRoles.js";
|
|
13
14
|
import { useSideNavRenderMode } from "../SideNav/SideNavRenderContext.js";
|
|
14
15
|
import { useTopNavRenderMode } from "../TopNav/TopNavRenderContext.js";
|
|
15
16
|
|
|
@@ -17,7 +18,8 @@ import { useTopNavRenderMode } from "../TopNav/TopNavRenderContext.js";
|
|
|
17
18
|
* Returns a function that wraps a row's click handler. While
|
|
18
19
|
* `isInMobileDrawer` is true, the wrapped handler calls the row's handler and
|
|
19
20
|
* then closes the AppShell mobile drawer. Otherwise the row's handler comes
|
|
20
|
-
* back unchanged. Every drawer row closes the drawer through this one rule
|
|
21
|
+
* back unchanged. Every drawer row closes the drawer through this one rule,
|
|
22
|
+
* except that a modified click on a link leaves it open.
|
|
21
23
|
*/
|
|
22
24
|
export function useCloseMobileDrawerOnActivate(isInMobileDrawer) {
|
|
23
25
|
const {
|
|
@@ -29,11 +31,22 @@ export function useCloseMobileDrawerOnActivate(isInMobileDrawer) {
|
|
|
29
31
|
}
|
|
30
32
|
return (...args) => {
|
|
31
33
|
onClick?.(...args);
|
|
32
|
-
|
|
34
|
+
if (!isModifiedLinkClick(args[0])) {
|
|
35
|
+
closeMobileNav();
|
|
36
|
+
}
|
|
33
37
|
};
|
|
34
38
|
};
|
|
35
39
|
}
|
|
36
40
|
|
|
41
|
+
// A modified click on a link is the browser's (a new tab), so the drawer stays
|
|
42
|
+
// open for the next one. The clicked element decides whether it is a link, so
|
|
43
|
+
// a row whose blocked `href` renders no address still closes. A row whose
|
|
44
|
+
// `onClick` cancels the click opens nothing elsewhere, so it still closes.
|
|
45
|
+
function isModifiedLinkClick(event) {
|
|
46
|
+
const click = event;
|
|
47
|
+
return click?.currentTarget?.hasAttribute?.('href') === true && isModifiedClick(click) && !click.defaultPrevented;
|
|
48
|
+
}
|
|
49
|
+
|
|
37
50
|
/**
|
|
38
51
|
* Whether the caller renders inside the AppShell mobile drawer: in TopNav
|
|
39
52
|
* content or SideNav content shown there.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../src/BottomSheet/BottomSheet.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAuBH,OAAO,EAQL,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../src/BottomSheet/BottomSheet.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAuBH,OAAO,EAQL,KAAK,SAAS,EACd,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAKf,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AAC5C,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AA6DhD,YAAY,EAAC,iBAAiB,EAAE,oBAAoB,EAAC,MAAM,oBAAoB,CAAC;AAChF,OAAO,KAAK,EAAC,iBAAiB,EAAE,oBAAoB,EAAC,MAAM,oBAAoB,CAAC;AA+LhF,UAAU,sBAAuB,SAAQ,SAAS,CAAC,cAAc,CAAC;IAChE,qDAAqD;IACrD,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAEhC,sCAAsC;IACtC,KAAK,EAAE,MAAM,CAAC;IAEd,0EAA0E;IAC1E,QAAQ,EAAE,SAAS,CAAC;IAEpB;;;;;;;;;;OAUG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IAEtB,wGAAwG;IACxG,MAAM,CAAC,EAAE,iBAAiB,GAAG,MAAM,GAAG,MAAM,CAAC;IAE7C;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAC;IAEjD;;;;;;OAMG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED,UAAU,0BAA2B,SAAQ,sBAAsB;IACjE,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;OAMG;IACH,aAAa,CAAC,EAAE,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;IAC9C,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB;AAED,UAAU,wBAAyB,SAAQ,sBAAsB;IAC/D;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,KAAK,CAAC;IACf,YAAY,CAAC,EAAE,KAAK,CAAC;IACrB,QAAQ,CAAC,EAAE,KAAK,CAAC;CAClB;AAED,MAAM,MAAM,gBAAgB,GAC1B,0BAA0B,GAAG,wBAAwB,CAAC;AAq7BxD;;;GAGG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,+BA6BlD;yBA7Be,WAAW"}
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
// stack, but they replace each other. Each open modal sheet is an outlet for
|
|
51
51
|
// toasts (Layer/modalOutlet.ts), in stack order.
|
|
52
52
|
import { use, useCallback, useEffect, useInsertionEffect, useLayoutEffect, useRef, useState } from 'react';
|
|
53
|
+
import { useCommittedRef } from "../hooks/useCommittedRef.js";
|
|
53
54
|
import { useIsHydrating } from "../hooks/useIsHydrating.js";
|
|
54
55
|
import { useSettledOpen } from "../hooks/useSettledOpen.js";
|
|
55
56
|
import * as stylex from '@stylexjs/stylex';
|
|
@@ -58,7 +59,7 @@ import { colorVars, durationVars, easeVars, spacingVars } from "../theme/tokens.
|
|
|
58
59
|
import { useDevWarning } from "../hooks/useDevWarning.js";
|
|
59
60
|
import { useScrollLock } from "../hooks/useScrollLock.js";
|
|
60
61
|
import { useMergedRefs } from "../hooks/useMergedRefs.js";
|
|
61
|
-
import {
|
|
62
|
+
import { holdInput } from "../Layer/inputHold.js";
|
|
62
63
|
import { mergeProps } from "../utils/mergeProps.js";
|
|
63
64
|
import { LayerDepthProvider } from "../Layer/LayerDepthContext.js";
|
|
64
65
|
import { ModalAnnounceProvider } from "../hooks/ModalAnnounceProvider.js";
|
|
@@ -134,11 +135,7 @@ const styles = {
|
|
|
134
135
|
$$css: true
|
|
135
136
|
},
|
|
136
137
|
scrimClosing: {
|
|
137
|
-
kb4ib: "
|
|
138
|
-
$$css: true
|
|
139
|
-
},
|
|
140
|
-
exitHoldingFocus: {
|
|
141
|
-
kfzvcC: "x47corl",
|
|
138
|
+
kb4ib: "x1w553ls",
|
|
142
139
|
$$css: true
|
|
143
140
|
},
|
|
144
141
|
positioner: {
|
|
@@ -182,23 +179,6 @@ function stackPositionerStyles(view) {
|
|
|
182
179
|
}
|
|
183
180
|
|
|
184
181
|
/** The `data-sheet-stack` value for a host: only set while sheets stack. */
|
|
185
|
-
/** Stops a click, from any input, before it reaches its target. */
|
|
186
|
-
function ignoreActivation(event) {
|
|
187
|
-
event.preventDefault();
|
|
188
|
-
event.stopPropagation();
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* Stops every key except Tab before it reaches the focused control, so no
|
|
193
|
-
* key handler runs and no text changes (a search field's Enter, a typed
|
|
194
|
-
* letter, Backspace, an arrow that reopens a list). Tab still moves focus.
|
|
195
|
-
*/
|
|
196
|
-
function ignoreKeyDuringExit(event) {
|
|
197
|
-
if (event.key !== 'Tab') {
|
|
198
|
-
event.preventDefault();
|
|
199
|
-
event.stopPropagation();
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
182
|
function stackStateAttribute(view, isOpen) {
|
|
203
183
|
if (!view.isStacked) {
|
|
204
184
|
return undefined;
|
|
@@ -216,19 +196,20 @@ function scrimOpacityForView(view) {
|
|
|
216
196
|
|
|
217
197
|
/**
|
|
218
198
|
* Writes the fade a touch drag's close paces on `dialog`'s scrim, or clears
|
|
219
|
-
* it when `
|
|
220
|
-
* removes only that
|
|
199
|
+
* it when `fade` is null. `written` keeps the duration the host wrote, so a
|
|
200
|
+
* clear removes only that fade.
|
|
221
201
|
*/
|
|
222
|
-
function
|
|
202
|
+
function writeScrimFade(dialog, fade, written) {
|
|
223
203
|
if (dialog == null) {
|
|
224
204
|
return;
|
|
225
205
|
}
|
|
226
206
|
const current = dialog.style.getPropertyValue('--_sheet-scrim-duration');
|
|
227
|
-
if (
|
|
228
|
-
// Remove only the
|
|
207
|
+
if (fade == null) {
|
|
208
|
+
// Remove only the fade this host wrote. A stack's 0s pin written since
|
|
229
209
|
// then stays.
|
|
230
210
|
if (written.current != null && current === written.current) {
|
|
231
211
|
dialog.style.removeProperty('--_sheet-scrim-duration');
|
|
212
|
+
dialog.style.removeProperty('--_sheet-scrim-easing');
|
|
232
213
|
}
|
|
233
214
|
written.current = null;
|
|
234
215
|
return;
|
|
@@ -237,8 +218,9 @@ function writeScrimFadeDuration(dialog, ms, written) {
|
|
|
237
218
|
if (current === '0s') {
|
|
238
219
|
return;
|
|
239
220
|
}
|
|
240
|
-
written.current = `${
|
|
221
|
+
written.current = `${fade.durationMs}ms`;
|
|
241
222
|
dialog.style.setProperty('--_sheet-scrim-duration', written.current);
|
|
223
|
+
dialog.style.setProperty('--_sheet-scrim-easing', fade.easing);
|
|
242
224
|
}
|
|
243
225
|
function panelStateForSwitcherPhase(phase, alignmentOffset) {
|
|
244
226
|
switch (phase) {
|
|
@@ -294,8 +276,9 @@ function StandaloneBottomSheet({
|
|
|
294
276
|
// sheet leaves the page interactive, so it returns focus to its opener
|
|
295
277
|
// only if the person was still in the sheet; a modal sheet always does.
|
|
296
278
|
const hadFocusAtCloseRef = useRef(false);
|
|
297
|
-
|
|
298
|
-
|
|
279
|
+
// The committed `finalFocusRef`. The stack reads it when it closes the
|
|
280
|
+
// sheet, which can happen in a layout effect.
|
|
281
|
+
const finalFocusRefRef = useCommittedRef(finalFocusRef);
|
|
299
282
|
// A sheet rendered in another sheet's content is presented only while that
|
|
300
283
|
// sheet is open: it leaves with its host and, if its own state is still
|
|
301
284
|
// open, comes back when the host does (see BottomSheetHostContext). Its
|
|
@@ -351,14 +334,10 @@ function StandaloneBottomSheet({
|
|
|
351
334
|
// `isOpen` restarts the flag during render, and the layout effect below
|
|
352
335
|
// settles a close.
|
|
353
336
|
const [isCloseSettled, setIsCloseSettled] = useState(false);
|
|
354
|
-
// Whether focus was inside the sheet when it closed. Such a sheet stays out
|
|
355
|
-
// of `inert` and `aria-hidden` until its exit ends and focus has left.
|
|
356
|
-
const [isExitFocusHeld, setIsExitFocusHeld] = useState(false);
|
|
357
337
|
const [settledIsOpen, setSettledIsOpen] = useState(isOpen);
|
|
358
338
|
if (settledIsOpen !== isOpen) {
|
|
359
339
|
setSettledIsOpen(isOpen);
|
|
360
340
|
setIsCloseSettled(false);
|
|
361
|
-
setIsExitFocusHeld(false);
|
|
362
341
|
}
|
|
363
342
|
const panelState = isOpen ? {
|
|
364
343
|
kind: 'open',
|
|
@@ -391,8 +370,9 @@ function StandaloneBottomSheet({
|
|
|
391
370
|
const handlePanelElementChange = useCallback(element => {
|
|
392
371
|
panelRef.current = element;
|
|
393
372
|
}, []);
|
|
373
|
+
// The stack's view for the handlers. The registry's `onView` writes it with
|
|
374
|
+
// each view it reports, together with the state.
|
|
394
375
|
const stackViewRef = useRef(stackView);
|
|
395
|
-
stackViewRef.current = stackView;
|
|
396
376
|
const scrimWriteRef = useRef({
|
|
397
377
|
frame: null
|
|
398
378
|
});
|
|
@@ -410,12 +390,12 @@ function StandaloneBottomSheet({
|
|
|
410
390
|
}, []);
|
|
411
391
|
// The fade duration a touch drag's close wrote, until that close ends.
|
|
412
392
|
const scrimFadeRef = useRef(null);
|
|
413
|
-
const
|
|
393
|
+
const handleScrimFade = useCallback((panel, fade) => {
|
|
414
394
|
const view = stackViewRef.current;
|
|
415
395
|
if (view.isStacked && !view.ownsScrim) {
|
|
416
396
|
return;
|
|
417
397
|
}
|
|
418
|
-
|
|
398
|
+
writeScrimFade(panel.closest('dialog'), fade, scrimFadeRef);
|
|
419
399
|
}, []);
|
|
420
400
|
|
|
421
401
|
// A sheet joins the registry for as long as it is presented. For a modal
|
|
@@ -436,6 +416,8 @@ function StandaloneBottomSheet({
|
|
|
436
416
|
const repairOnRemoval = dialog == null ? null : prepareFocusRepairOnRemoval(dialog, {
|
|
437
417
|
keepRestingFocus: true
|
|
438
418
|
});
|
|
419
|
+
// Where focus returns when the sheet leaves, read when it leaves.
|
|
420
|
+
const getReturnTarget = () => finalFocusRefRef.current?.current ?? triggerRef.current;
|
|
439
421
|
const leave = registerBottomSheet({
|
|
440
422
|
key,
|
|
441
423
|
getElement: () => dialogRef.current,
|
|
@@ -456,7 +438,7 @@ function StandaloneBottomSheet({
|
|
|
456
438
|
},
|
|
457
439
|
hide: () => closeDialogKeepingFocus(dialogRef.current),
|
|
458
440
|
focus: reason => focusSheetPanel(panelRef.current, reason, hasScrim),
|
|
459
|
-
getReturnTarget
|
|
441
|
+
getReturnTarget,
|
|
460
442
|
onView: view => {
|
|
461
443
|
stackViewRef.current = view;
|
|
462
444
|
setStackView(view);
|
|
@@ -491,7 +473,7 @@ function StandaloneBottomSheet({
|
|
|
491
473
|
// person had already moved out of the sheet to the page body stays
|
|
492
474
|
// there: the removal did not lose it.
|
|
493
475
|
if (repairOnRemoval != null && isSheetHostPresented(dialog)) {
|
|
494
|
-
const returnTarget =
|
|
476
|
+
const returnTarget = getReturnTarget();
|
|
495
477
|
const revealed = hasScrim ? getBottomSheetBeneath(key) : null;
|
|
496
478
|
repairOnRemoval(() => {
|
|
497
479
|
// The sheet beneath left too. Its own repair returns focus for the
|
|
@@ -508,7 +490,7 @@ function StandaloneBottomSheet({
|
|
|
508
490
|
}
|
|
509
491
|
leave();
|
|
510
492
|
};
|
|
511
|
-
}, [hasScrim, shouldPresent, writeScrim]);
|
|
493
|
+
}, [finalFocusRefRef, hasScrim, shouldPresent, writeScrim]);
|
|
512
494
|
useLayoutEffect(() => {
|
|
513
495
|
if (!isOpen) {
|
|
514
496
|
// Where focus was when the person closed the sheet. The closing sheet
|
|
@@ -524,8 +506,6 @@ function StandaloneBottomSheet({
|
|
|
524
506
|
// that was not paired as a replace is an exit from here on.
|
|
525
507
|
// eslint-disable-next-line @eslint-react/set-state-in-effect -- settles the close once the registry has answered
|
|
526
508
|
setIsCloseSettled(true);
|
|
527
|
-
// Read with the close, before the sheet can go inert.
|
|
528
|
-
setIsExitFocusHeld(hadFocusAtCloseRef.current);
|
|
529
509
|
}
|
|
530
510
|
}, [hasScrim, isOpen, shouldPresent]);
|
|
531
511
|
|
|
@@ -611,36 +591,7 @@ function StandaloneBottomSheet({
|
|
|
611
591
|
const {
|
|
612
592
|
ref: modalityRef
|
|
613
593
|
} = useInteractionModalityTracking();
|
|
614
|
-
|
|
615
|
-
// dropped to the page because the focused control was removed or disabled.
|
|
616
|
-
// Native listeners, because React drops the `focusout` a browser sends while
|
|
617
|
-
// React removes the focused element, and Firefox and WebKit send no
|
|
618
|
-
// `focusout` for a removed element at all, so a subtree change is read too.
|
|
619
|
-
// Each reads the focus after the event. They attach only while a closing
|
|
620
|
-
// sheet holds focus, so a closed or open sheet observes nothing.
|
|
621
|
-
const isWatchingExitFocus = !isOpen && isPresented && !isReplaced && isExitFocusHeld;
|
|
622
|
-
const exitFocusRef = useCallback(dialog => {
|
|
623
|
-
if (dialog == null || !isWatchingExitFocus) {
|
|
624
|
-
return;
|
|
625
|
-
}
|
|
626
|
-
const releaseIfFocusLeft = () => {
|
|
627
|
-
if (!dialog.contains(dialog.ownerDocument.activeElement)) {
|
|
628
|
-
setIsExitFocusHeld(false);
|
|
629
|
-
}
|
|
630
|
-
};
|
|
631
|
-
const onFocusOut = () => queueMicrotask(releaseIfFocusLeft);
|
|
632
|
-
dialog.addEventListener('focusout', onFocusOut);
|
|
633
|
-
const unobserve = observeMutations(dialog, {
|
|
634
|
-
childList: true,
|
|
635
|
-
subtree: true,
|
|
636
|
-
attributeFilter: ['disabled', 'hidden', 'inert']
|
|
637
|
-
}, releaseIfFocusLeft);
|
|
638
|
-
return () => {
|
|
639
|
-
dialog.removeEventListener('focusout', onFocusOut);
|
|
640
|
-
unobserve();
|
|
641
|
-
};
|
|
642
|
-
}, [isWatchingExitFocus]);
|
|
643
|
-
const dialogComposedRef = useMergedRefs(dialogRef, modalityRef, exitFocusRef);
|
|
594
|
+
const dialogComposedRef = useMergedRefs(dialogRef, modalityRef);
|
|
644
595
|
useScrollLock(shouldPresent && hasScrim);
|
|
645
596
|
useDevWarning('BottomSheet', 'requires a non-empty `label` for an accessible name; the open sheet ' + 'has no built-in heading to derive one from.', isOpen && !label);
|
|
646
597
|
|
|
@@ -695,22 +646,32 @@ function StandaloneBottomSheet({
|
|
|
695
646
|
// makes everything outside it inert, this dialog included. A covered sheet
|
|
696
647
|
// that contains no presented sheet is marked inert and hidden as well, so
|
|
697
648
|
// the state is explicit; one that does contain the top sheet is left alone,
|
|
698
|
-
// because inert on it would reach the top sheet too.
|
|
699
|
-
// A sheet that
|
|
700
|
-
//
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
//
|
|
705
|
-
// first commit of a close never
|
|
706
|
-
|
|
707
|
-
|
|
649
|
+
// because inert on it would reach the top sheet too. A replaced sheet is
|
|
650
|
+
// inert through its handoff. A sheet that exits otherwise is held by the
|
|
651
|
+
// layer runtime's input hold below.
|
|
652
|
+
const isInert = isExiting && isReplaced || stackView.isBlocked;
|
|
653
|
+
const isExitHeld = isExiting && !isReplaced && isCloseSettled;
|
|
654
|
+
|
|
655
|
+
// Syncs the exit with the layer runtime's input hold. Until the close
|
|
656
|
+
// settles, no closing sheet is held, so the first commit of a close never
|
|
657
|
+
// hides focus.
|
|
658
|
+
useLayoutEffect(() => {
|
|
659
|
+
const dialog = dialogRef.current;
|
|
660
|
+
if (!isExitHeld || dialog == null) {
|
|
661
|
+
return;
|
|
662
|
+
}
|
|
663
|
+
return holdInput(dialog, {
|
|
664
|
+
until: new Promise(() => {}),
|
|
665
|
+
scope: 'layer',
|
|
666
|
+
focus: 'kept-inside'
|
|
667
|
+
});
|
|
668
|
+
}, [isExitHeld]);
|
|
708
669
|
return /*#__PURE__*/_jsxs("dialog", {
|
|
709
670
|
...stylex.props(styles.dialog, shouldPresent && styles.dialogOpen, shouldPresent && styles.dialogPanelHost,
|
|
710
671
|
// The dialog is the panel's positioner, so the stack's recede
|
|
711
672
|
// transforms the dialog: panel, grabber and all shrink and lift as
|
|
712
673
|
// one. The backdrop is not a descendant and stays put.
|
|
713
|
-
...stackPositionerStyles(stackView), hasScrim && styles.scrim, hasScrim && isEntrySettled && styles.scrimSettled, hasScrim && isExiting && styles.scrimClosing,
|
|
674
|
+
...stackPositionerStyles(stackView), hasScrim && styles.scrim, hasScrim && isEntrySettled && styles.scrimSettled, hasScrim && isExiting && styles.scrimClosing, !hasScrim && styles.dialogNonModal),
|
|
714
675
|
ref: dialogComposedRef
|
|
715
676
|
// A non-modal sheet is hosted in the top layer as a manual popover
|
|
716
677
|
// (no light dismiss, no backdrop), so sheets order by presentation
|
|
@@ -727,12 +688,6 @@ function StandaloneBottomSheet({
|
|
|
727
688
|
"data-sheet-stack": hasScrim ? stackStateAttribute(stackView, isOpen) : undefined,
|
|
728
689
|
"data-sheet-stack-depth": hasScrim && stackView.depth > 0 ? stackView.depth : undefined,
|
|
729
690
|
onCancel: handleCancel
|
|
730
|
-
// A closing sheet that keeps focus takes no activation during its
|
|
731
|
-
// exit: no click and no key but Tab reaches the control that has focus.
|
|
732
|
-
,
|
|
733
|
-
onClickCapture: isExitHoldingFocus ? ignoreActivation : undefined,
|
|
734
|
-
onKeyDownCapture: isExitHoldingFocus ? ignoreKeyDuringExit : undefined,
|
|
735
|
-
onKeyUpCapture: isExitHoldingFocus ? ignoreKeyDuringExit : undefined
|
|
736
691
|
// Presses inside the sheet do not reach handlers around where it is
|
|
737
692
|
// written. The dialog, not the panel, is the root, as in a switcher.
|
|
738
693
|
,
|
|
@@ -754,7 +709,7 @@ function StandaloneBottomSheet({
|
|
|
754
709
|
xstyle: xstyle,
|
|
755
710
|
onDismiss: dismissOnLightInteraction,
|
|
756
711
|
onScrimOpacity: handleScrimOpacity,
|
|
757
|
-
|
|
712
|
+
onScrimFade: handleScrimFade,
|
|
758
713
|
onElementChange: handlePanelElementChange,
|
|
759
714
|
handleRef: outletRef,
|
|
760
715
|
onMotionStart: handleMotionStart,
|
|
@@ -876,8 +831,8 @@ function SwitcherBottomSheetItem({
|
|
|
876
831
|
// close ends. The step a drag closes becomes the flow's retained step, so
|
|
877
832
|
// its backdrop is the flow's scrim.
|
|
878
833
|
const scrimFadeRef = useRef(null);
|
|
879
|
-
const
|
|
880
|
-
|
|
834
|
+
const handleScrimFade = useCallback((panel, fade) => {
|
|
835
|
+
writeScrimFade(panel.closest('dialog'), fade, scrimFadeRef);
|
|
881
836
|
}, []);
|
|
882
837
|
useLayoutEffect(() => {
|
|
883
838
|
if (!hasValidSheetId) {
|
|
@@ -1025,7 +980,7 @@ function SwitcherBottomSheetItem({
|
|
|
1025
980
|
xstyle: xstyle,
|
|
1026
981
|
onDismiss: dismissOnSwipe,
|
|
1027
982
|
onScrimOpacity: handleScrimOpacity,
|
|
1028
|
-
|
|
983
|
+
onScrimFade: handleScrimFade,
|
|
1029
984
|
onElementChange: handlePanelElementChange,
|
|
1030
985
|
onMotionStart: handleMotionStart,
|
|
1031
986
|
onMotionComplete: handleMotionComplete,
|
|
@@ -25,6 +25,14 @@ declare const HEIGHT_BUDGETS: {
|
|
|
25
25
|
};
|
|
26
26
|
export type BottomSheetHeight = keyof typeof HEIGHT_BUDGETS;
|
|
27
27
|
export type { BottomSheetSnapPoint };
|
|
28
|
+
/**
|
|
29
|
+
* The scrim's fade under a touch drag's close: the close's duration in ms,
|
|
30
|
+
* and its progress as CSS easing, so the fade follows the sheet.
|
|
31
|
+
*/
|
|
32
|
+
export interface ScrimFade {
|
|
33
|
+
readonly durationMs: number;
|
|
34
|
+
readonly easing: string;
|
|
35
|
+
}
|
|
28
36
|
export declare const REDUCED_MOTION_COARSE_QUERY = "(prefers-reduced-motion: reduce) and (pointer: coarse)";
|
|
29
37
|
export type BottomSheetPanelMotion = 'entering' | 'aligning' | 'fading' | 'exiting';
|
|
30
38
|
export type BottomSheetPanelState = {
|
|
@@ -76,12 +84,12 @@ interface BottomSheetPanelProps extends BaseProps<HTMLDivElement> {
|
|
|
76
84
|
onDismiss: () => void;
|
|
77
85
|
onScrimOpacity: (opacity: number) => void;
|
|
78
86
|
/**
|
|
79
|
-
* The scrim's fade under a touch drag's close,
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
87
|
+
* The scrim's fade under a touch drag's close, or null once that close
|
|
88
|
+
* ends or a reopen takes the sheet back. `panel` is the sheet's element:
|
|
89
|
+
* the commit that starts the close can detach the host's dialog ref while
|
|
90
|
+
* this runs.
|
|
83
91
|
*/
|
|
84
|
-
|
|
92
|
+
onScrimFade?: (panel: HTMLElement, fade: ScrimFade | null) => void;
|
|
85
93
|
onElementChange?: (element: HTMLDivElement | null) => void;
|
|
86
94
|
/**
|
|
87
95
|
* A ref for the grab handle's element. The handle stays mounted with the
|
|
@@ -92,7 +100,7 @@ interface BottomSheetPanelProps extends BaseProps<HTMLDivElement> {
|
|
|
92
100
|
onMotionComplete?: (motion: BottomSheetPanelMotion) => void;
|
|
93
101
|
}
|
|
94
102
|
/** Internal visual and gesture surface shared by every BottomSheet host. */
|
|
95
|
-
export declare function BottomSheetPanel({ ref, state, isOpenRequested, height, label, children, padding, snapPoints, className, style, tabIndex, xstyle, isEntrySettled, onEntrySettled, onTransitionEnd, isSwipeDismissAllowed, isPageScrollLocked, onDismiss, onScrimOpacity,
|
|
103
|
+
export declare function BottomSheetPanel({ ref, state, isOpenRequested, height, label, children, padding, snapPoints, className, style, tabIndex, xstyle, isEntrySettled, onEntrySettled, onTransitionEnd, isSwipeDismissAllowed, isPageScrollLocked, onDismiss, onScrimOpacity, onScrimFade, onElementChange, handleRef, onMotionStart, onMotionComplete, ...props }: BottomSheetPanelProps): import("react").JSX.Element;
|
|
96
104
|
export declare namespace BottomSheetPanel {
|
|
97
105
|
var displayName: string;
|
|
98
106
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomSheetPanel.d.ts","sourceRoot":"","sources":["../../src/BottomSheet/BottomSheetPanel.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"BottomSheetPanel.d.ts","sourceRoot":"","sources":["../../src/BottomSheet/BottomSheetPanel.tsx"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EASL,KAAK,SAAS,EACd,KAAK,GAAG,EACT,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,cAAc,CAAC;AA+B5C,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,eAAe,CAAC;AAYvB,QAAA,MAAM,cAAc;;;;CAIV,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,MAAM,OAAO,cAAc,CAAC;AAC5D,YAAY,EAAC,oBAAoB,EAAC,CAAC;AA0CnC;;;GAGG;AACH,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AA2LD,eAAO,MAAM,2BAA2B,2DACkB,CAAC;AA0O3D,MAAM,MAAM,sBAAsB,GAChC,UAAU,GAAG,UAAU,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEjD,MAAM,MAAM,qBAAqB,GAC7B;IAAC,IAAI,EAAE,QAAQ,CAAA;CAAC,GAChB;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAC,GACjC;IACE,IAAI,EAAE,UAAU,CAAC;IACjB,MAAM,EAAE,SAAS,GAAG,UAAU,GAAG,QAAQ,CAAC;IAC1C,eAAe,EAAE,MAAM,CAAC;CACzB,GACD;IAAC,IAAI,EAAE,SAAS,CAAA;CAAC,CAAC;AAEtB,UAAU,qBAAsB,SAAQ,SAAS,CAAC,cAAc,CAAC;IAC/D,+CAA+C;IAC/C,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAChC,KAAK,EAAE,qBAAqB,CAAC;IAC7B;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B;;;;;OAKG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,MAAM,EAAE,iBAAiB,GAAG,MAAM,GAAG,MAAM,CAAC;IAC5C,mEAAmE;IACnE,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,UAAU,CAAC,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAC;IACjD,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,gFAAgF;IAChF,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,cAAc,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C;;;;;OAKG;IACH,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,GAAG,IAAI,KAAK,IAAI,CAAC;IACnE,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,cAAc,GAAG,IAAI,KAAK,IAAI,CAAC;IAC3D;;;OAGG;IACH,SAAS,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;IAChC,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,sBAAsB,KAAK,IAAI,CAAC;IACzD,gBAAgB,CAAC,EAAE,CAAC,MAAM,EAAE,sBAAsB,KAAK,IAAI,CAAC;CAC7D;AAyJD,4EAA4E;AAC5E,wBAAgB,gBAAgB,CAAC,EAC/B,GAAG,EACH,KAAK,EACL,eAAe,EACf,MAAM,EACN,KAAK,EACL,QAAQ,EACR,OAAO,EACP,UAAU,EACV,SAAS,EACT,KAAK,EACL,QAAQ,EACR,MAAM,EACN,cAAsB,EACtB,cAAc,EACd,eAAe,EACf,qBAA4B,EAC5B,kBAA0B,EAC1B,SAAS,EACT,cAAc,EACd,WAAW,EACX,eAAe,EACf,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,GAAG,KAAK,EACT,EAAE,qBAAqB,+BA2iBvB;yBArkBe,gBAAgB"}
|