@multiplatform.one/components 7.48.0 → 7.49.0
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/cjs/Accordion/index.native.js +1 -1
- package/dist/cjs/Accordion/index.native.js.map +1 -1
- package/dist/cjs/Alert/index.native.js.map +1 -1
- package/dist/cjs/AnimateHeight/index.native.js.map +1 -1
- package/dist/cjs/Avatar/getInitials.native.js.map +1 -1
- package/dist/cjs/Avatar/index.native.js.map +1 -1
- package/dist/cjs/Badge/index.native.js.map +1 -1
- package/dist/cjs/Button.native.js.map +1 -1
- package/dist/cjs/Card.native.js.map +1 -1
- package/dist/cjs/CardFooter.native.js.map +1 -1
- package/dist/cjs/CardHeader.native.js.map +1 -1
- package/dist/cjs/Carousel/index.native.js +2 -2
- package/dist/cjs/Carousel/index.native.js.map +1 -1
- package/dist/cjs/Chip/index.native.js.map +1 -1
- package/dist/cjs/Collapsible.native.js.map +1 -1
- package/dist/cjs/ContextMenu/index.native.js.map +1 -1
- package/dist/cjs/CopyField/index.native.js.map +1 -1
- package/dist/cjs/Dialog.cjs +5 -2
- package/dist/cjs/Dialog.native.js +5 -2
- package/dist/cjs/Dialog.native.js.map +1 -1
- package/dist/cjs/DotIndicator/index.native.js.map +1 -1
- package/dist/cjs/DropdownMenu/index.native.js.map +1 -1
- package/dist/cjs/ErrorBoundary/index.native.js.map +1 -1
- package/dist/cjs/Heading.native.js.map +1 -1
- package/dist/cjs/Meter/index.native.js +1 -1
- package/dist/cjs/Meter/index.native.js.map +1 -1
- package/dist/cjs/Meter/meter.native.js.map +1 -1
- package/dist/cjs/OverflowRow/index.native.js +1 -1
- package/dist/cjs/OverflowRow/index.native.js.map +1 -1
- package/dist/cjs/Pagination.native.js +1 -1
- package/dist/cjs/Pagination.native.js.map +1 -1
- package/dist/cjs/Popover.cjs +6 -3
- package/dist/cjs/Popover.native.js +7 -3
- package/dist/cjs/Popover.native.js.map +1 -1
- package/dist/cjs/ProgressSteps/index.native.js.map +1 -1
- package/dist/cjs/Quote/index.native.js.map +1 -1
- package/dist/cjs/ScrollView/revealFocusedField.native.js.map +1 -1
- package/dist/cjs/Separator/index.native.js.map +1 -1
- package/dist/cjs/Sheet.cjs +59 -0
- package/dist/cjs/Sheet.native.js +63 -0
- package/dist/cjs/Sheet.native.js.map +1 -0
- package/dist/cjs/SheetModal/detents.native.js.map +1 -1
- package/dist/cjs/SheetModal/index.cjs +28 -21
- package/dist/cjs/SheetModal/index.native.js +126 -121
- package/dist/cjs/SheetModal/index.native.js.map +1 -1
- package/dist/cjs/Skeleton/index.native.js.map +1 -1
- package/dist/cjs/SkipLink/index.native.js.map +1 -1
- package/dist/cjs/SortableList/SortableHandle.native.js.map +1 -1
- package/dist/cjs/SortableList/index.native.js.map +1 -1
- package/dist/cjs/SortableList/useSortableRows.native.js.map +1 -1
- package/dist/cjs/Tabs/index.native.js +1 -1
- package/dist/cjs/Tabs/index.native.js.map +1 -1
- package/dist/cjs/Text.native.js.map +1 -1
- package/dist/cjs/ThemePresetPicker/index.native.js +2 -2
- package/dist/cjs/ThemePresetPicker/index.native.js.map +1 -1
- package/dist/cjs/Toast/index.native.js.map +1 -1
- package/dist/cjs/Toast/store.native.js.map +1 -1
- package/dist/cjs/Tooltip/index.cjs +2 -1
- package/dist/cjs/Tooltip/index.native.js +3 -2
- package/dist/cjs/Tooltip/index.native.js.map +1 -1
- package/dist/cjs/Tooltip/nativePress.native.js.map +1 -1
- package/dist/cjs/Tooltip/tooltipShared.native.js.map +1 -1
- package/dist/cjs/TreeSelect/index.cjs +2 -1
- package/dist/cjs/TreeSelect/index.native.js +3 -2
- package/dist/cjs/TreeSelect/index.native.js.map +1 -1
- package/dist/cjs/TreeSelect/treeSelectModel.native.js.map +1 -1
- package/dist/cjs/Video/PlayerChrome.native.js.map +1 -1
- package/dist/cjs/Video/VideoFrame.native.js.map +1 -1
- package/dist/cjs/Video/types.native.js.map +1 -1
- package/dist/cjs/Wheel/index.native.js.map +1 -1
- package/dist/cjs/Wizard/index.native.js +2 -2
- package/dist/cjs/Wizard/index.native.js.map +1 -1
- package/dist/cjs/actions/ActionBar.native.js.map +1 -1
- package/dist/cjs/actions/DestructiveAction.native.js.map +1 -1
- package/dist/cjs/actions/devWarn.native.js.map +1 -1
- package/dist/cjs/actions/index.native.js.map +1 -1
- package/dist/cjs/actions/severity.native.js.map +1 -1
- package/dist/cjs/appShell/Dock.native.js.map +1 -1
- package/dist/cjs/appShell/ScopeMenu.native.js.map +1 -1
- package/dist/cjs/appShell/SettingsSplit.native.js +1 -1
- package/dist/cjs/appShell/SettingsSplit.native.js.map +1 -1
- package/dist/cjs/appShell/Springboard.native.js +1 -1
- package/dist/cjs/appShell/Springboard.native.js.map +1 -1
- package/dist/cjs/appShell/SystemBar.native.js.map +1 -1
- package/dist/cjs/appShell/TabBar.native.js +1 -1
- package/dist/cjs/appShell/TabBar.native.js.map +1 -1
- package/dist/cjs/appShell/appTile.native.js +1 -1
- package/dist/cjs/appShell/appTile.native.js.map +1 -1
- package/dist/cjs/appShell/index.native.js.map +1 -1
- package/dist/cjs/charts/Axis.native.js.map +1 -1
- package/dist/cjs/charts/BarChart.native.js.map +1 -1
- package/dist/cjs/charts/ChartDataView.cjs +7 -6
- package/dist/cjs/charts/ChartDataView.native.js +8 -7
- package/dist/cjs/charts/ChartDataView.native.js.map +1 -1
- package/dist/cjs/charts/ChartSurface.native.js.map +1 -1
- package/dist/cjs/charts/LineChart.native.js.map +1 -1
- package/dist/cjs/charts/PieChart.native.js.map +1 -1
- package/dist/cjs/charts/Sparkline.native.js.map +1 -1
- package/dist/cjs/charts/accessibility.native.js.map +1 -1
- package/dist/cjs/charts/chartHeight.native.js.map +1 -1
- package/dist/cjs/charts/composeChart.native.js.map +1 -1
- package/dist/cjs/charts/index.native.js.map +1 -1
- package/dist/cjs/charts/math.native.js.map +1 -1
- package/dist/cjs/charts/series.native.js.map +1 -1
- package/dist/cjs/charts/svg.native.js.map +1 -1
- package/dist/cjs/charts/types.native.js.map +1 -1
- package/dist/cjs/charts/useChartTheme.native.js.map +1 -1
- package/dist/cjs/code/Code/index.native.js.map +1 -1
- package/dist/cjs/code/CodeBlock/index.native.js +7 -7
- package/dist/cjs/code/CodeBlock/index.native.js.map +1 -1
- package/dist/cjs/code/HighlightedCode/index.native.js.map +1 -1
- package/dist/cjs/code/Highlighter/houseSyntaxTheme.native.js.map +1 -1
- package/dist/cjs/code/Highlighter/index.native.js.map +1 -1
- package/dist/cjs/code/Highlighter/namedGroupMatchAll.native.js.map +1 -1
- package/dist/cjs/code/Pre/index.native.js.map +1 -1
- package/dist/cjs/code/index.native.js +5 -5
- package/dist/cjs/code/index.native.js.map +1 -1
- package/dist/cjs/componentColors.native.js.map +1 -1
- package/dist/cjs/feedback/ConfirmDialog.cjs +5 -4
- package/dist/cjs/feedback/ConfirmDialog.native.js +5 -4
- package/dist/cjs/feedback/ConfirmDialog.native.js.map +1 -1
- package/dist/cjs/feedback/NotifyHost.native.js +2 -2
- package/dist/cjs/feedback/NotifyHost.native.js.map +1 -1
- package/dist/cjs/feedback/copy.native.js.map +1 -1
- package/dist/cjs/feedback/index.native.js.map +1 -1
- package/dist/cjs/feedback/notify.native.js.map +1 -1
- package/dist/cjs/feedback/route.native.js.map +1 -1
- package/dist/cjs/feedback/store.native.js.map +1 -1
- package/dist/cjs/hooks/index.native.js +1 -1
- package/dist/cjs/hooks/index.native.js.map +1 -1
- package/dist/cjs/hooks/useClipboard.native.js.map +1 -1
- package/dist/cjs/hooks/useDocumentTitle.native.js.map +1 -1
- package/dist/cjs/icons/CheckRegular.native.js.map +1 -1
- package/dist/cjs/icons/MinusRegular.native.js.map +1 -1
- package/dist/cjs/icons/index.native.js.map +1 -1
- package/dist/cjs/icons/lucide.native.js.map +1 -1
- package/dist/cjs/icons/themed.native.js.map +1 -1
- package/dist/cjs/images/Image/ImageFrame.native.js +1 -1
- package/dist/cjs/images/Image/ImageFrame.native.js.map +1 -1
- package/dist/cjs/images/Image/index.native.js +1 -1
- package/dist/cjs/images/Image/shared.native.js +1 -1
- package/dist/cjs/images/Image/shared.native.js.map +1 -1
- package/dist/cjs/images/Image/types.native.js.map +1 -1
- package/dist/cjs/images/index.native.js.map +1 -1
- package/dist/cjs/index.native.js +32 -32
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/knobImmuneExports.cjs +0 -1
- package/dist/cjs/knobImmuneExports.native.js +0 -1
- package/dist/cjs/knobImmuneExports.native.js.map +1 -1
- package/dist/cjs/layouts/AsyncBoundary.native.js +2 -2
- package/dist/cjs/layouts/AsyncBoundary.native.js.map +1 -1
- package/dist/cjs/layouts/Debug/index.native.js.map +1 -1
- package/dist/cjs/layouts/EmptyState.native.js.map +1 -1
- package/dist/cjs/layouts/KeyboardAvoidingWrapper/behavior.native.js.map +1 -1
- package/dist/cjs/layouts/PageTemplates.native.js.map +1 -1
- package/dist/cjs/layouts/PaneScaffold.native.js.map +1 -1
- package/dist/cjs/layouts/SafeAreaWrapper/insets.native.js.map +1 -1
- package/dist/cjs/layouts/ViewSwitcher.native.js.map +1 -1
- package/dist/cjs/layouts/attachments.cjs +4 -3
- package/dist/cjs/layouts/attachments.native.js +5 -4
- package/dist/cjs/layouts/attachments.native.js.map +1 -1
- package/dist/cjs/layouts/breadcrumbs.native.js.map +1 -1
- package/dist/cjs/layouts/index.native.js +3 -3
- package/dist/cjs/layouts/index.native.js.map +1 -1
- package/dist/cjs/layouts/page.native.js +2 -2
- package/dist/cjs/layouts/page.native.js.map +1 -1
- package/dist/cjs/layouts/pageHeadingScope.native.js.map +1 -1
- package/dist/cjs/layouts/shellSidebarSlot.native.js.map +1 -1
- package/dist/cjs/layouts/sidebar.native.js +1 -1
- package/dist/cjs/layouts/sidebar.native.js.map +1 -1
- package/dist/cjs/layouts/tags.native.js +2 -2
- package/dist/cjs/layouts/tags.native.js.map +1 -1
- package/dist/cjs/layouts/timeline.native.js +2 -2
- package/dist/cjs/layouts/timeline.native.js.map +1 -1
- package/dist/cjs/layouts/toolbar.native.js +1 -1
- package/dist/cjs/layouts/toolbar.native.js.map +1 -1
- package/dist/cjs/shared/actionScan.native.js.map +1 -1
- package/dist/cjs/shared/i18n.native.js.map +1 -1
- package/dist/cjs/shared/t.native.js.map +1 -1
- package/dist/cjs/shared/textRidesText.native.js.map +1 -1
- package/dist/cjs/shared/useReturnFocusOnClose.native.js.map +1 -1
- package/dist/cjs/surfaces.cjs +4 -2
- package/dist/cjs/surfaces.native.js +5 -3
- package/dist/cjs/surfaces.native.js.map +1 -1
- package/dist/cjs/tamagui.cjs +2 -1
- package/dist/cjs/tamagui.native.js +3 -2
- package/dist/cjs/tamagui.native.js.map +1 -1
- package/dist/cjs/testSetup.native.js.map +1 -1
- package/dist/cjs/utils/setTinted.native.js.map +1 -1
- package/dist/cjs/utils/unwrapText.native.js.map +1 -1
- package/dist/cjs/views/Calendar.native.js +1 -1
- package/dist/cjs/views/Calendar.native.js.map +1 -1
- package/dist/cjs/views/Dashboard.native.js +2 -2
- package/dist/cjs/views/Dashboard.native.js.map +1 -1
- package/dist/cjs/views/Gantt.native.js +2 -2
- package/dist/cjs/views/Gantt.native.js.map +1 -1
- package/dist/cjs/views/GanttDateGrip.native.js.map +1 -1
- package/dist/cjs/views/ImageGrid.native.js +1 -1
- package/dist/cjs/views/ImageGrid.native.js.map +1 -1
- package/dist/cjs/views/Kanban.native.js +1 -1
- package/dist/cjs/views/List.native.js.map +1 -1
- package/dist/cjs/views/Matrix.native.js +2 -2
- package/dist/cjs/views/Matrix.native.js.map +1 -1
- package/dist/cjs/views/ReportBuilder.native.js +2 -2
- package/dist/cjs/views/ReportBuilder.native.js.map +1 -1
- package/dist/cjs/views/TreeView.native.js.map +1 -1
- package/dist/cjs/views/calendarMath.native.js.map +1 -1
- package/dist/cjs/views/ganttIntervals.native.js.map +1 -1
- package/dist/cjs/views/ganttMath.native.js.map +1 -1
- package/dist/cjs/views/index.native.js +1 -1
- package/dist/cjs/views/index.native.js.map +1 -1
- package/dist/cjs/views/kanbanDnd.native.js.map +1 -1
- package/dist/cjs/views/matrixMath.native.js.map +1 -1
- package/dist/cjs/views/treeViewDnd.native.js.map +1 -1
- package/dist/cjs/views/treeViewLayout.native.js.map +1 -1
- package/dist/cjs/views/treeViewMotion.native.js.map +1 -1
- package/dist/cjs/views/treeViewReveal.native.js.map +1 -1
- package/dist/esm/Accordion/index.native.js.map +1 -1
- package/dist/esm/AnimateHeight/index.native.js.map +1 -1
- package/dist/esm/Avatar/getInitials.native.js.map +1 -1
- package/dist/esm/Avatar/index.native.js.map +1 -1
- package/dist/esm/Badge/index.native.js.map +1 -1
- package/dist/esm/Button.native.js.map +1 -1
- package/dist/esm/Carousel/index.native.js.map +1 -1
- package/dist/esm/Chip/index.native.js.map +1 -1
- package/dist/esm/Collapsible.native.js.map +1 -1
- package/dist/esm/ContextMenu/index.native.js.map +1 -1
- package/dist/esm/CopyField/index.native.js.map +1 -1
- package/dist/esm/Dialog.mjs +5 -2
- package/dist/esm/Dialog.mjs.map +1 -1
- package/dist/esm/Dialog.native.js +5 -2
- package/dist/esm/Dialog.native.js.map +1 -1
- package/dist/esm/DotIndicator/index.native.js.map +1 -1
- package/dist/esm/DropdownMenu/index.native.js.map +1 -1
- package/dist/esm/ErrorBoundary/index.native.js.map +1 -1
- package/dist/esm/Heading.native.js.map +1 -1
- package/dist/esm/Meter/index.native.js.map +1 -1
- package/dist/esm/Meter/meter.native.js.map +1 -1
- package/dist/esm/OverflowRow/index.native.js.map +1 -1
- package/dist/esm/Pagination.native.js.map +1 -1
- package/dist/esm/Popover.mjs +7 -4
- package/dist/esm/Popover.mjs.map +1 -1
- package/dist/esm/Popover.native.js +8 -4
- package/dist/esm/Popover.native.js.map +1 -1
- package/dist/esm/ProgressSteps/index.native.js.map +1 -1
- package/dist/esm/Quote/index.native.js.map +1 -1
- package/dist/esm/ScrollView/revealFocusedField.native.js.map +1 -1
- package/dist/esm/Separator/index.native.js.map +1 -1
- package/dist/esm/Sheet.mjs +34 -0
- package/dist/esm/Sheet.mjs.map +1 -0
- package/dist/esm/Sheet.native.js +35 -0
- package/dist/esm/Sheet.native.js.map +1 -0
- package/dist/esm/SheetModal/detents.native.js.map +1 -1
- package/dist/esm/SheetModal/index.mjs +29 -22
- package/dist/esm/SheetModal/index.mjs.map +1 -1
- package/dist/esm/SheetModal/index.native.js +126 -121
- package/dist/esm/SheetModal/index.native.js.map +1 -1
- package/dist/esm/Skeleton/index.native.js.map +1 -1
- package/dist/esm/SkipLink/index.native.js.map +1 -1
- package/dist/esm/SortableList/SortableHandle.native.js.map +1 -1
- package/dist/esm/SortableList/index.native.js.map +1 -1
- package/dist/esm/SortableList/useSortableRows.native.js.map +1 -1
- package/dist/esm/Tabs/index.native.js.map +1 -1
- package/dist/esm/Text.native.js.map +1 -1
- package/dist/esm/ThemePresetPicker/index.native.js.map +1 -1
- package/dist/esm/Toast/index.native.js.map +1 -1
- package/dist/esm/Toast/store.native.js.map +1 -1
- package/dist/esm/Tooltip/index.mjs +3 -2
- package/dist/esm/Tooltip/index.mjs.map +1 -1
- package/dist/esm/Tooltip/index.native.js +4 -3
- package/dist/esm/Tooltip/index.native.js.map +1 -1
- package/dist/esm/Tooltip/nativePress.native.js.map +1 -1
- package/dist/esm/Tooltip/tooltipShared.native.js.map +1 -1
- package/dist/esm/TreeSelect/index.mjs +3 -2
- package/dist/esm/TreeSelect/index.mjs.map +1 -1
- package/dist/esm/TreeSelect/index.native.js +3 -2
- package/dist/esm/TreeSelect/index.native.js.map +1 -1
- package/dist/esm/TreeSelect/treeSelectModel.native.js.map +1 -1
- package/dist/esm/Video/PlayerChrome.native.js.map +1 -1
- package/dist/esm/Video/VideoFrame.native.js.map +1 -1
- package/dist/esm/Video/types.native.js.map +1 -1
- package/dist/esm/Wheel/index.native.js.map +1 -1
- package/dist/esm/Wizard/index.native.js.map +1 -1
- package/dist/esm/actions/ActionBar.native.js.map +1 -1
- package/dist/esm/actions/DestructiveAction.native.js.map +1 -1
- package/dist/esm/actions/devWarn.native.js.map +1 -1
- package/dist/esm/actions/index.native.js.map +1 -1
- package/dist/esm/actions/severity.native.js.map +1 -1
- package/dist/esm/appShell/Dock.native.js.map +1 -1
- package/dist/esm/appShell/ScopeMenu.native.js.map +1 -1
- package/dist/esm/appShell/SettingsSplit.native.js.map +1 -1
- package/dist/esm/appShell/Springboard.native.js.map +1 -1
- package/dist/esm/appShell/SystemBar.native.js.map +1 -1
- package/dist/esm/appShell/TabBar.native.js.map +1 -1
- package/dist/esm/appShell/appTile.native.js.map +1 -1
- package/dist/esm/appShell/index.native.js.map +1 -1
- package/dist/esm/charts/Axis.native.js.map +1 -1
- package/dist/esm/charts/BarChart.native.js.map +1 -1
- package/dist/esm/charts/ChartDataView.mjs +2 -1
- package/dist/esm/charts/ChartDataView.mjs.map +1 -1
- package/dist/esm/charts/ChartDataView.native.js +2 -1
- package/dist/esm/charts/ChartDataView.native.js.map +1 -1
- package/dist/esm/charts/ChartSurface.native.js.map +1 -1
- package/dist/esm/charts/LineChart.native.js.map +1 -1
- package/dist/esm/charts/PieChart.native.js.map +1 -1
- package/dist/esm/charts/Sparkline.native.js.map +1 -1
- package/dist/esm/charts/accessibility.native.js.map +1 -1
- package/dist/esm/charts/chartHeight.native.js.map +1 -1
- package/dist/esm/charts/composeChart.native.js.map +1 -1
- package/dist/esm/charts/index.native.js.map +1 -1
- package/dist/esm/charts/math.native.js.map +1 -1
- package/dist/esm/charts/series.native.js.map +1 -1
- package/dist/esm/charts/svg.native.js.map +1 -1
- package/dist/esm/charts/types.native.js.map +1 -1
- package/dist/esm/charts/useChartTheme.native.js.map +1 -1
- package/dist/esm/code/Code/index.native.js.map +1 -1
- package/dist/esm/code/CodeBlock/index.native.js.map +1 -1
- package/dist/esm/code/HighlightedCode/index.native.js.map +1 -1
- package/dist/esm/code/Highlighter/houseSyntaxTheme.native.js.map +1 -1
- package/dist/esm/code/Highlighter/index.native.js.map +1 -1
- package/dist/esm/code/Highlighter/namedGroupMatchAll.native.js.map +1 -1
- package/dist/esm/code/Pre/index.native.js.map +1 -1
- package/dist/esm/code/index.native.js.map +1 -1
- package/dist/esm/componentColors.native.js.map +1 -1
- package/dist/esm/feedback/ConfirmDialog.mjs +2 -1
- package/dist/esm/feedback/ConfirmDialog.mjs.map +1 -1
- package/dist/esm/feedback/ConfirmDialog.native.js +2 -1
- package/dist/esm/feedback/ConfirmDialog.native.js.map +1 -1
- package/dist/esm/feedback/NotifyHost.native.js.map +1 -1
- package/dist/esm/feedback/copy.native.js.map +1 -1
- package/dist/esm/feedback/index.native.js.map +1 -1
- package/dist/esm/feedback/notify.native.js.map +1 -1
- package/dist/esm/feedback/route.native.js.map +1 -1
- package/dist/esm/feedback/store.native.js.map +1 -1
- package/dist/esm/hooks/index.native.js.map +1 -1
- package/dist/esm/hooks/useClipboard.native.js.map +1 -1
- package/dist/esm/hooks/useDocumentTitle.native.js.map +1 -1
- package/dist/esm/icons/CheckRegular.native.js.map +1 -1
- package/dist/esm/icons/MinusRegular.native.js.map +1 -1
- package/dist/esm/icons/index.native.js.map +1 -1
- package/dist/esm/icons/lucide.native.js.map +1 -1
- package/dist/esm/icons/themed.native.js.map +1 -1
- package/dist/esm/images/Image/ImageFrame.native.js.map +1 -1
- package/dist/esm/images/Image/shared.native.js.map +1 -1
- package/dist/esm/images/Image/types.native.js.map +1 -1
- package/dist/esm/images/index.native.js.map +1 -1
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/knobImmuneExports.mjs +0 -1
- package/dist/esm/knobImmuneExports.mjs.map +1 -1
- package/dist/esm/knobImmuneExports.native.js +0 -1
- package/dist/esm/knobImmuneExports.native.js.map +1 -1
- package/dist/esm/layouts/AsyncBoundary.native.js.map +1 -1
- package/dist/esm/layouts/Debug/index.native.js.map +1 -1
- package/dist/esm/layouts/EmptyState.native.js.map +1 -1
- package/dist/esm/layouts/KeyboardAvoidingWrapper/behavior.native.js.map +1 -1
- package/dist/esm/layouts/PageTemplates.native.js.map +1 -1
- package/dist/esm/layouts/PaneScaffold.native.js.map +1 -1
- package/dist/esm/layouts/SafeAreaWrapper/insets.native.js.map +1 -1
- package/dist/esm/layouts/ViewSwitcher.native.js.map +1 -1
- package/dist/esm/layouts/attachments.mjs +2 -1
- package/dist/esm/layouts/attachments.mjs.map +1 -1
- package/dist/esm/layouts/attachments.native.js +2 -1
- package/dist/esm/layouts/attachments.native.js.map +1 -1
- package/dist/esm/layouts/breadcrumbs.native.js.map +1 -1
- package/dist/esm/layouts/index.native.js.map +1 -1
- package/dist/esm/layouts/page.native.js.map +1 -1
- package/dist/esm/layouts/pageHeadingScope.native.js.map +1 -1
- package/dist/esm/layouts/shellSidebarSlot.native.js.map +1 -1
- package/dist/esm/layouts/sidebar.native.js.map +1 -1
- package/dist/esm/layouts/tags.native.js.map +1 -1
- package/dist/esm/layouts/timeline.native.js.map +1 -1
- package/dist/esm/layouts/toolbar.native.js.map +1 -1
- package/dist/esm/shared/actionScan.native.js.map +1 -1
- package/dist/esm/shared/i18n.native.js.map +1 -1
- package/dist/esm/shared/t.native.js.map +1 -1
- package/dist/esm/shared/textRidesText.native.js.map +1 -1
- package/dist/esm/shared/useReturnFocusOnClose.native.js.map +1 -1
- package/dist/esm/surfaces.mjs +5 -3
- package/dist/esm/surfaces.mjs.map +1 -1
- package/dist/esm/surfaces.native.js +5 -3
- package/dist/esm/surfaces.native.js.map +1 -1
- package/dist/esm/tamagui.mjs +2 -1
- package/dist/esm/tamagui.mjs.map +1 -1
- package/dist/esm/tamagui.native.js +2 -1
- package/dist/esm/tamagui.native.js.map +1 -1
- package/dist/esm/testSetup.native.js.map +1 -1
- package/dist/esm/utils/setTinted.native.js.map +1 -1
- package/dist/esm/utils/unwrapText.native.js.map +1 -1
- package/dist/esm/views/Calendar.native.js.map +1 -1
- package/dist/esm/views/Dashboard.native.js.map +1 -1
- package/dist/esm/views/Gantt.native.js.map +1 -1
- package/dist/esm/views/GanttDateGrip.native.js.map +1 -1
- package/dist/esm/views/ImageGrid.native.js.map +1 -1
- package/dist/esm/views/List.native.js.map +1 -1
- package/dist/esm/views/Matrix.native.js.map +1 -1
- package/dist/esm/views/ReportBuilder.native.js.map +1 -1
- package/dist/esm/views/TreeView.native.js.map +1 -1
- package/dist/esm/views/calendarMath.native.js.map +1 -1
- package/dist/esm/views/ganttIntervals.native.js.map +1 -1
- package/dist/esm/views/ganttMath.native.js.map +1 -1
- package/dist/esm/views/index.native.js.map +1 -1
- package/dist/esm/views/kanbanDnd.native.js.map +1 -1
- package/dist/esm/views/matrixMath.native.js.map +1 -1
- package/dist/esm/views/treeViewDnd.native.js.map +1 -1
- package/dist/esm/views/treeViewLayout.native.js.map +1 -1
- package/dist/esm/views/treeViewMotion.native.js.map +1 -1
- package/dist/esm/views/treeViewReveal.native.js.map +1 -1
- package/dist/jsx/Dialog.mjs +5 -2
- package/dist/jsx/Dialog.mjs.map +1 -1
- package/dist/jsx/Dialog.native.js +5 -2
- package/dist/jsx/Dialog.native.js.map +1 -1
- package/dist/jsx/Popover.mjs +7 -4
- package/dist/jsx/Popover.mjs.map +1 -1
- package/dist/jsx/Popover.native.js +7 -3
- package/dist/jsx/Popover.native.js.map +1 -1
- package/dist/jsx/Sheet.mjs +34 -0
- package/dist/jsx/Sheet.mjs.map +1 -0
- package/dist/jsx/Sheet.native.js +63 -0
- package/dist/jsx/Sheet.native.js.map +1 -0
- package/dist/jsx/SheetModal/index.mjs +29 -22
- package/dist/jsx/SheetModal/index.mjs.map +1 -1
- package/dist/jsx/SheetModal/index.native.js +126 -121
- package/dist/jsx/SheetModal/index.native.js.map +1 -1
- package/dist/jsx/Tooltip/index.mjs +3 -2
- package/dist/jsx/Tooltip/index.mjs.map +1 -1
- package/dist/jsx/Tooltip/index.native.js +3 -2
- package/dist/jsx/Tooltip/index.native.js.map +1 -1
- package/dist/jsx/TreeSelect/index.mjs +3 -2
- package/dist/jsx/TreeSelect/index.mjs.map +1 -1
- package/dist/jsx/TreeSelect/index.native.js +2 -1
- package/dist/jsx/TreeSelect/index.native.js.map +1 -1
- package/dist/jsx/charts/ChartDataView.mjs +2 -1
- package/dist/jsx/charts/ChartDataView.mjs.map +1 -1
- package/dist/jsx/charts/ChartDataView.native.js +7 -6
- package/dist/jsx/charts/ChartDataView.native.js.map +1 -1
- package/dist/jsx/feedback/ConfirmDialog.mjs +2 -1
- package/dist/jsx/feedback/ConfirmDialog.mjs.map +1 -1
- package/dist/jsx/feedback/ConfirmDialog.native.js +5 -4
- package/dist/jsx/feedback/ConfirmDialog.native.js.map +1 -1
- package/dist/jsx/knobImmuneExports.mjs +0 -1
- package/dist/jsx/knobImmuneExports.mjs.map +1 -1
- package/dist/jsx/knobImmuneExports.native.js +0 -1
- package/dist/jsx/knobImmuneExports.native.js.map +1 -1
- package/dist/jsx/layouts/attachments.mjs +2 -1
- package/dist/jsx/layouts/attachments.mjs.map +1 -1
- package/dist/jsx/layouts/attachments.native.js +4 -3
- package/dist/jsx/layouts/attachments.native.js.map +1 -1
- package/dist/jsx/surfaces.mjs +5 -3
- package/dist/jsx/surfaces.mjs.map +1 -1
- package/dist/jsx/surfaces.native.js +4 -2
- package/dist/jsx/surfaces.native.js.map +1 -1
- package/dist/jsx/tamagui.mjs +2 -1
- package/dist/jsx/tamagui.mjs.map +1 -1
- package/dist/jsx/tamagui.native.js +2 -1
- package/dist/jsx/tamagui.native.js.map +1 -1
- package/package.json +9 -9
- package/src/Dialog.spec.tsx +6 -5
- package/src/Dialog.tsx +9 -1
- package/src/Popover.coverTrigger.spec.tsx +1 -1
- package/src/Popover.tsx +17 -4
- package/src/Sheet.tsx +35 -0
- package/src/SheetModal/index.native.tsx +117 -113
- package/src/SheetModal/index.tsx +30 -26
- package/src/Tooltip/index.native.tsx +4 -3
- package/src/Tooltip/index.tsx +3 -2
- package/src/TreeSelect/index.tsx +3 -2
- package/src/charts/ChartDataView.tsx +2 -1
- package/src/feedback/ConfirmDialog.stories.tsx +48 -0
- package/src/feedback/ConfirmDialog.tsx +2 -1
- package/src/knobImmuneExports.ts +0 -1
- package/src/layouts/attachments.tsx +1 -1
- package/src/overlayStack.native-press.spec.tsx +214 -0
- package/src/surfaces.spec.tsx +2 -1
- package/src/surfaces.tsx +5 -2
- package/src/tamagui.spec.ts +4 -4
- package/src/tamagui.ts +3 -1
- package/types/Dialog.d.ts.map +1 -1
- package/types/Popover.d.ts.map +1 -1
- package/types/Sheet.d.ts +3 -0
- package/types/Sheet.d.ts.map +1 -0
- package/types/SheetModal/index.d.ts.map +1 -1
- package/types/SheetModal/index.native.d.ts.map +1 -1
- package/types/Tooltip/index.d.ts.map +1 -1
- package/types/Tooltip/index.native.d.ts.map +1 -1
- package/types/TreeSelect/index.d.ts.map +1 -1
- package/types/charts/ChartDataView.d.ts.map +1 -1
- package/types/feedback/ConfirmDialog.d.ts.map +1 -1
- package/types/knobImmuneExports.d.ts.map +1 -1
- package/types/layouts/attachments.d.ts.map +1 -1
- package/types/surfaces.d.ts +6 -1
- package/types/surfaces.d.ts.map +1 -1
- package/types/tamagui.d.ts +2 -1
- package/types/tamagui.d.ts.map +1 -1
package/src/Popover.tsx
CHANGED
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
type ReactElement,
|
|
15
15
|
type ReactNode,
|
|
16
16
|
} from "react";
|
|
17
|
-
import { FloatingPanel } from "@multiplatform.one/forms";
|
|
17
|
+
import { FloatingPanel, useOverlayZIndex, withOverlayStack } from "@multiplatform.one/forms";
|
|
18
18
|
import {
|
|
19
19
|
Popover as TamaguiPopover,
|
|
20
20
|
View,
|
|
@@ -37,6 +37,12 @@ export type Popover = {
|
|
|
37
37
|
setOpen: (open: boolean) => void;
|
|
38
38
|
};
|
|
39
39
|
|
|
40
|
+
const StackedPopoverContent = withOverlayStack(
|
|
41
|
+
TamaguiPopover.Content,
|
|
42
|
+
"dropdown",
|
|
43
|
+
"PopoverContent",
|
|
44
|
+
);
|
|
45
|
+
|
|
40
46
|
const CoverPopoverContext = createContext<(() => void) | null>(null);
|
|
41
47
|
|
|
42
48
|
const PopoverClose = forwardRef<
|
|
@@ -96,7 +102,10 @@ const CoverPopover = forwardRef<Popover, PopoverProps>(function CoverPopover(
|
|
|
96
102
|
const childrenParts = parts(children);
|
|
97
103
|
const triggerPart = childrenParts.find((child) => child.type === TamaguiPopover.Trigger);
|
|
98
104
|
const content = childrenParts.filter(
|
|
99
|
-
(child) =>
|
|
105
|
+
(child) =>
|
|
106
|
+
child.type === TamaguiPopover.Content ||
|
|
107
|
+
child.type === StackedPopoverContent ||
|
|
108
|
+
child.type === PopoverContent,
|
|
100
109
|
);
|
|
101
110
|
const unsupported = [
|
|
102
111
|
"onOpenAutoFocus",
|
|
@@ -159,18 +168,22 @@ const PopoverRoot = forwardRef<Popover, PopoverProps>(function PopoverRoot(
|
|
|
159
168
|
{ anchorMode, triggerRow, ...props },
|
|
160
169
|
ref,
|
|
161
170
|
) {
|
|
171
|
+
const stacked = useOverlayZIndex("dropdown");
|
|
162
172
|
if (anchorMode === "cover-trigger")
|
|
163
173
|
return <CoverPopover ref={ref} {...props} anchorMode={anchorMode} triggerRow={triggerRow} />;
|
|
174
|
+
// FZ-7869: tamagui hands the root's zIndex to the content's portal, so a
|
|
175
|
+
// popover opened in a sheet or a dialog sits above it on native too. The
|
|
176
|
+
// content parts carry the stack to what opens inside them.
|
|
164
177
|
return (
|
|
165
178
|
<CoverPopoverContext.Provider value={null}>
|
|
166
|
-
<TamaguiPopover ref={ref} {...props} />
|
|
179
|
+
<TamaguiPopover ref={ref} {...props} zIndex={props.zIndex ?? stacked} />
|
|
167
180
|
</CoverPopoverContext.Provider>
|
|
168
181
|
);
|
|
169
182
|
});
|
|
170
183
|
|
|
171
184
|
export const Popover = withStaticProperties(PopoverRoot, {
|
|
172
185
|
Trigger: TamaguiPopover.Trigger,
|
|
173
|
-
Content:
|
|
186
|
+
Content: StackedPopoverContent,
|
|
174
187
|
Close: PopoverClose,
|
|
175
188
|
Anchor: TamaguiPopover.Anchor,
|
|
176
189
|
Adapt: TamaguiPopover.Adapt,
|
package/src/Sheet.tsx
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* House Sheet: the tamagui root, with a modal sheet bound to the overlay
|
|
3
|
+
* stack (FZ-7869, Axiom 14). It binds its tier, or one `$zIndex` step above
|
|
4
|
+
* the overlay it was opened from, and what it contains (a ConfirmDialog, a
|
|
5
|
+
* Popover, another sheet) opens above it. The parts are the tamagui ones.
|
|
6
|
+
*/
|
|
7
|
+
import { OverlayStackProvider, useOverlayZIndex } from "@multiplatform.one/forms";
|
|
8
|
+
import { forwardRef, type ComponentRef } from "react";
|
|
9
|
+
import { Sheet as TamaguiSheet, withStaticProperties, type SheetProps } from "tamagui";
|
|
10
|
+
|
|
11
|
+
const SheetRoot = forwardRef<ComponentRef<typeof TamaguiSheet>, SheetProps>(
|
|
12
|
+
function Sheet(props, ref) {
|
|
13
|
+
const stacked = useOverlayZIndex("sheet");
|
|
14
|
+
if (!props.modal) return <TamaguiSheet ref={ref} {...props} />;
|
|
15
|
+
const zIndex = props.zIndex ?? stacked;
|
|
16
|
+
return (
|
|
17
|
+
<TamaguiSheet
|
|
18
|
+
ref={ref}
|
|
19
|
+
{...props}
|
|
20
|
+
zIndex={zIndex}
|
|
21
|
+
portalProps={{ zIndex, ...props.portalProps }}
|
|
22
|
+
>
|
|
23
|
+
<OverlayStackProvider zIndex={zIndex}>{props.children}</OverlayStackProvider>
|
|
24
|
+
</TamaguiSheet>
|
|
25
|
+
);
|
|
26
|
+
},
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
export const Sheet: typeof TamaguiSheet = withStaticProperties(SheetRoot, {
|
|
30
|
+
Frame: TamaguiSheet.Frame,
|
|
31
|
+
Overlay: TamaguiSheet.Overlay,
|
|
32
|
+
Handle: TamaguiSheet.Handle,
|
|
33
|
+
ScrollView: TamaguiSheet.ScrollView,
|
|
34
|
+
Controlled: TamaguiSheet.Controlled,
|
|
35
|
+
}) as unknown as typeof TamaguiSheet;
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* height with a large-detent cap. LC-71: the frame is not a control.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
+
import { OverlayWindow, useOverlayZIndex } from "@multiplatform.one/forms";
|
|
13
14
|
import {
|
|
14
15
|
motionDurationMs,
|
|
15
16
|
useResolvedKnobs,
|
|
@@ -83,6 +84,7 @@ export function SheetModal({
|
|
|
83
84
|
}: SheetModalProps) {
|
|
84
85
|
const { t } = useTranslation();
|
|
85
86
|
const { knobProps } = useResolvedKnobs();
|
|
87
|
+
const windowZIndex = useOverlayZIndex("sheet");
|
|
86
88
|
const slideTransition = knobProps.motion.slide.transition;
|
|
87
89
|
const slideDuration = motionDurationMs(slideTransition);
|
|
88
90
|
const scrimDuration = motionDurationMs(knobProps.motion.scrim.transition);
|
|
@@ -384,107 +386,124 @@ export function SheetModal({
|
|
|
384
386
|
onRequestClose={close}
|
|
385
387
|
onShow={enter}
|
|
386
388
|
>
|
|
387
|
-
<
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
<Pressable
|
|
395
|
-
style={StyleSheet.absoluteFill}
|
|
396
|
-
onPress={handleBackdropPress}
|
|
397
|
-
accessibilityRole="button"
|
|
398
|
-
accessibilityLabel={t("Close")}
|
|
389
|
+
<OverlayWindow zIndex={windowZIndex}>
|
|
390
|
+
<RNView
|
|
391
|
+
style={{ flex: 1, justifyContent: "flex-end", paddingBottom: keyboardInset }}
|
|
392
|
+
onTouchStart={stopAtModal}
|
|
393
|
+
onTouchMove={stopAtModal}
|
|
394
|
+
onTouchEnd={stopAtModal}
|
|
395
|
+
onTouchCancel={stopAtModal}
|
|
399
396
|
>
|
|
400
|
-
<
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
borderBottomRightRadius={0}
|
|
430
|
-
elevation={knobProps.elevation}
|
|
431
|
-
maxHeight={maxHeight}
|
|
432
|
-
flexShrink={1}
|
|
433
|
-
minHeight={0}
|
|
434
|
-
{...(fill ? fillSlot : null)}
|
|
435
|
-
paddingTop="$2"
|
|
436
|
-
paddingBottom={keyboardInset > 0 ? 8 : bottomInset}
|
|
437
|
-
overflow="hidden"
|
|
438
|
-
// No focus or press pseudo on this surface: on native tamagui
|
|
439
|
-
// turns one into a touch-responder claim, and a responder here
|
|
440
|
-
// takes every drag from the ScrollView inside (MPO-299).
|
|
441
|
-
accessibilityViewIsModal
|
|
442
|
-
onAccessibilityEscape={close}
|
|
397
|
+
<Pressable
|
|
398
|
+
style={StyleSheet.absoluteFill}
|
|
399
|
+
onPress={handleBackdropPress}
|
|
400
|
+
accessibilityRole="button"
|
|
401
|
+
accessibilityLabel={t("Close")}
|
|
402
|
+
>
|
|
403
|
+
<View flex={1} backgroundColor="$shadow6" />
|
|
404
|
+
</Pressable>
|
|
405
|
+
<Animated.View
|
|
406
|
+
onLayout={(e) => {
|
|
407
|
+
if (restHeightRef.current !== null) return;
|
|
408
|
+
const h = Math.round(e.nativeEvent.layout.height);
|
|
409
|
+
if (h <= 0) return;
|
|
410
|
+
naturalRef.current = h;
|
|
411
|
+
filledRef.current = h >= maxHeightRef.current - 1;
|
|
412
|
+
if (h !== measuredHeight) setMeasuredHeight(h);
|
|
413
|
+
}}
|
|
414
|
+
testID="sheet-modal-frame"
|
|
415
|
+
style={{
|
|
416
|
+
// MPO-64: flex children default to flexShrink 0, so without this
|
|
417
|
+
// the sheet cannot give way to the keyboard.
|
|
418
|
+
flexShrink: 1,
|
|
419
|
+
minHeight: 0,
|
|
420
|
+
maxHeight: frameCap,
|
|
421
|
+
// The cap is already keyboard- and window-aware; fill only asks
|
|
422
|
+
// for it as a definite height rather than an upper bound.
|
|
423
|
+
...(fill ? { height: frameCap } : null),
|
|
424
|
+
transform: [{ translateY }],
|
|
425
|
+
}}
|
|
443
426
|
>
|
|
444
|
-
|
|
427
|
+
<YStack
|
|
428
|
+
testID="sheet-modal-surface"
|
|
429
|
+
{...knobProps.surface}
|
|
430
|
+
{...knobProps.borderRadius}
|
|
431
|
+
borderBottomLeftRadius={0}
|
|
432
|
+
borderBottomRightRadius={0}
|
|
433
|
+
elevation={knobProps.elevation}
|
|
434
|
+
maxHeight={maxHeight}
|
|
435
|
+
flexShrink={1}
|
|
436
|
+
minHeight={0}
|
|
437
|
+
{...(fill ? fillSlot : null)}
|
|
438
|
+
paddingTop="$2"
|
|
439
|
+
paddingBottom={keyboardInset > 0 ? 8 : bottomInset}
|
|
440
|
+
overflow="hidden"
|
|
441
|
+
// No focus or press pseudo on this surface: on native tamagui
|
|
442
|
+
// turns one into a touch-responder claim, and a responder here
|
|
443
|
+
// takes every drag from the ScrollView inside (MPO-299).
|
|
444
|
+
accessibilityViewIsModal
|
|
445
|
+
onAccessibilityEscape={close}
|
|
446
|
+
>
|
|
447
|
+
{/*
|
|
445
448
|
The grabber is the grab ZONE, not the 5pt pill inside it. LC-71
|
|
446
449
|
says the frame is not a control; the grabber is the one part of
|
|
447
450
|
it that is, so it is the only thing that takes the gesture, and
|
|
448
451
|
it never fights the ScrollView below.
|
|
449
452
|
*/}
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
>
|
|
463
|
-
<View
|
|
464
|
-
width={36}
|
|
465
|
-
height={5}
|
|
466
|
-
borderRadius={100}
|
|
467
|
-
backgroundColor="$color8"
|
|
468
|
-
opacity={0.45}
|
|
469
|
-
accessible={false}
|
|
470
|
-
/>
|
|
471
|
-
</RNView>
|
|
472
|
-
<DialogRegionContext.Provider value={IN_DIALOG_REGION}>
|
|
473
|
-
<YStack
|
|
474
|
-
testID="sheet-modal-content"
|
|
475
|
-
padding={knobProps.panelPadding.padding}
|
|
476
|
-
gap={knobProps.gap.gap}
|
|
477
|
-
flexShrink={1}
|
|
478
|
-
{...(fill ? fillSlot : null)}
|
|
453
|
+
<RNView
|
|
454
|
+
{...panResponder.panHandlers}
|
|
455
|
+
accessibilityRole="adjustable"
|
|
456
|
+
accessibilityLabel={t("Drag to resize")}
|
|
457
|
+
testID="sheet-modal-grabber"
|
|
458
|
+
style={{
|
|
459
|
+
alignSelf: "stretch",
|
|
460
|
+
alignItems: "center",
|
|
461
|
+
paddingTop: 3,
|
|
462
|
+
paddingBottom: 11,
|
|
463
|
+
...(fill ? nonShrinking : null),
|
|
464
|
+
}}
|
|
479
465
|
>
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
466
|
+
<View
|
|
467
|
+
width={36}
|
|
468
|
+
height={5}
|
|
469
|
+
borderRadius={100}
|
|
470
|
+
backgroundColor="$color8"
|
|
471
|
+
opacity={0.45}
|
|
472
|
+
accessible={false}
|
|
473
|
+
/>
|
|
474
|
+
</RNView>
|
|
475
|
+
<DialogRegionContext.Provider value={IN_DIALOG_REGION}>
|
|
476
|
+
<YStack
|
|
477
|
+
testID="sheet-modal-content"
|
|
478
|
+
padding={knobProps.panelPadding.padding}
|
|
479
|
+
gap={knobProps.gap.gap}
|
|
480
|
+
flexShrink={1}
|
|
481
|
+
{...(fill ? fillSlot : null)}
|
|
482
|
+
>
|
|
483
|
+
{fill ? (
|
|
484
|
+
<>
|
|
485
|
+
{header ? <RNView style={nonShrinking}>{header}</RNView> : null}
|
|
486
|
+
<RNView testID="sheet-modal-body" style={fillSlot}>
|
|
487
|
+
{scrollable ? (
|
|
488
|
+
<RNScrollView
|
|
489
|
+
testID="sheet-modal-scroll"
|
|
490
|
+
style={fillSlot}
|
|
491
|
+
keyboardShouldPersistTaps="handled"
|
|
492
|
+
>
|
|
493
|
+
{children}
|
|
494
|
+
</RNScrollView>
|
|
495
|
+
) : (
|
|
496
|
+
children
|
|
497
|
+
)}
|
|
498
|
+
</RNView>
|
|
499
|
+
</>
|
|
500
|
+
) : (
|
|
501
|
+
<>
|
|
502
|
+
{header}
|
|
484
503
|
{scrollable ? (
|
|
485
504
|
<RNScrollView
|
|
486
505
|
testID="sheet-modal-scroll"
|
|
487
|
-
style={
|
|
506
|
+
style={{ flexGrow: 0 }}
|
|
488
507
|
keyboardShouldPersistTaps="handled"
|
|
489
508
|
>
|
|
490
509
|
{children}
|
|
@@ -492,29 +511,14 @@ export function SheetModal({
|
|
|
492
511
|
) : (
|
|
493
512
|
children
|
|
494
513
|
)}
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
style={{ flexGrow: 0 }}
|
|
504
|
-
keyboardShouldPersistTaps="handled"
|
|
505
|
-
>
|
|
506
|
-
{children}
|
|
507
|
-
</RNScrollView>
|
|
508
|
-
) : (
|
|
509
|
-
children
|
|
510
|
-
)}
|
|
511
|
-
</>
|
|
512
|
-
)}
|
|
513
|
-
</YStack>
|
|
514
|
-
</DialogRegionContext.Provider>
|
|
515
|
-
</YStack>
|
|
516
|
-
</Animated.View>
|
|
517
|
-
</RNView>
|
|
514
|
+
</>
|
|
515
|
+
)}
|
|
516
|
+
</YStack>
|
|
517
|
+
</DialogRegionContext.Provider>
|
|
518
|
+
</YStack>
|
|
519
|
+
</Animated.View>
|
|
520
|
+
</RNView>
|
|
521
|
+
</OverlayWindow>
|
|
518
522
|
</Modal>
|
|
519
523
|
);
|
|
520
524
|
}
|
package/src/SheetModal/index.tsx
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
import { transitionProps, useResolvedKnobs, wasKeyboardFocus } from "@multiplatform.one/theme";
|
|
13
|
-
import {
|
|
13
|
+
import { OverlayStackProvider, useOverlayZIndex } from "@multiplatform.one/forms";
|
|
14
14
|
import { useEffect, useId, useRef, type ReactNode, type RefObject } from "react";
|
|
15
15
|
import { isWeb, Sheet, View } from "tamagui";
|
|
16
16
|
import { DialogRegionContext, SheetFrame } from "../surfaces";
|
|
@@ -158,6 +158,7 @@ export function SheetModal({
|
|
|
158
158
|
fill = false,
|
|
159
159
|
}: SheetModalProps) {
|
|
160
160
|
const { knobProps } = useResolvedKnobs();
|
|
161
|
+
const sheetZIndex = useOverlayZIndex("sheet");
|
|
161
162
|
const transition = knobProps.motion.slide.transition;
|
|
162
163
|
const titleId = useId();
|
|
163
164
|
const frameRef = useRef<HTMLElement | null>(null);
|
|
@@ -174,7 +175,8 @@ export function SheetModal({
|
|
|
174
175
|
snapPointsMode="percent"
|
|
175
176
|
snapPoints={[snapPoint]}
|
|
176
177
|
transition={transition}
|
|
177
|
-
zIndex={
|
|
178
|
+
zIndex={sheetZIndex}
|
|
179
|
+
portalProps={{ zIndex: sheetZIndex }}
|
|
178
180
|
>
|
|
179
181
|
<Sheet.Overlay
|
|
180
182
|
backgroundColor="$shadow6"
|
|
@@ -206,30 +208,32 @@ export function SheetModal({
|
|
|
206
208
|
{...frameRingReset}
|
|
207
209
|
>
|
|
208
210
|
<DialogRegionContext.Provider value={IN_DIALOG_REGION}>
|
|
209
|
-
{
|
|
210
|
-
|
|
211
|
-
{
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
{
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
211
|
+
<OverlayStackProvider zIndex={sheetZIndex}>
|
|
212
|
+
{header ? (
|
|
213
|
+
<View id={titleId} {...(fill ? nonShrinking : null)}>
|
|
214
|
+
{header}
|
|
215
|
+
</View>
|
|
216
|
+
) : null}
|
|
217
|
+
{fill ? (
|
|
218
|
+
<View testID="sheet-modal-body" {...fillSlot}>
|
|
219
|
+
{scrollable ? (
|
|
220
|
+
<Sheet.ScrollView testID="sheet-modal-scroll" {...fillSlot}>
|
|
221
|
+
{children}
|
|
222
|
+
</Sheet.ScrollView>
|
|
223
|
+
) : (
|
|
224
|
+
children
|
|
225
|
+
)}
|
|
226
|
+
</View>
|
|
227
|
+
) : scrollable ? (
|
|
228
|
+
<Sheet.ScrollView testID="sheet-modal-scroll">{children}</Sheet.ScrollView>
|
|
229
|
+
) : (
|
|
230
|
+
children
|
|
231
|
+
)}
|
|
232
|
+
<View
|
|
233
|
+
style={{ height: "env(safe-area-inset-bottom)" }}
|
|
234
|
+
{...(fill ? nonShrinking : null)}
|
|
235
|
+
/>
|
|
236
|
+
</OverlayStackProvider>
|
|
233
237
|
</DialogRegionContext.Provider>
|
|
234
238
|
</SheetFrame>
|
|
235
239
|
</Sheet>
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
useResolvedKnobs,
|
|
14
14
|
warnTooltipOnDisabled,
|
|
15
15
|
} from "@multiplatform.one/theme";
|
|
16
|
-
import {
|
|
16
|
+
import { useOverlayZIndex } from "@multiplatform.one/forms";
|
|
17
17
|
|
|
18
18
|
import React from "react";
|
|
19
19
|
import { Pressable, StyleSheet } from "react-native";
|
|
@@ -71,6 +71,7 @@ export function Tooltip({
|
|
|
71
71
|
open: openProp,
|
|
72
72
|
onOpenChange: onOpenChangeProp,
|
|
73
73
|
}: TooltipProps) {
|
|
74
|
+
const overlayZIndex = useOverlayZIndex("dropdown");
|
|
74
75
|
const { knobProps } = useResolvedKnobs({ component: "Tooltip", painted: false });
|
|
75
76
|
const theme = useTheme();
|
|
76
77
|
const elevated = knobProps.elevatedSurface;
|
|
@@ -153,7 +154,7 @@ export function Tooltip({
|
|
|
153
154
|
onPress={() => {
|
|
154
155
|
if (outsideArmed) press.tapOutside();
|
|
155
156
|
}}
|
|
156
|
-
style={[StyleSheet.absoluteFill, { zIndex:
|
|
157
|
+
style={[StyleSheet.absoluteFill, { zIndex: overlayZIndex - 1 }]}
|
|
157
158
|
/>
|
|
158
159
|
</Portal>
|
|
159
160
|
) : null}
|
|
@@ -162,7 +163,7 @@ export function Tooltip({
|
|
|
162
163
|
delay={0}
|
|
163
164
|
restMs={0}
|
|
164
165
|
offset={OVERLAY_ANCHOR_GAP}
|
|
165
|
-
zIndex={
|
|
166
|
+
zIndex={overlayZIndex}
|
|
166
167
|
open={open}
|
|
167
168
|
onOpenChange={setOpen}
|
|
168
169
|
>
|
package/src/Tooltip/index.tsx
CHANGED
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
useResolvedKnobs,
|
|
18
18
|
warnTooltipOnDisabled,
|
|
19
19
|
} from "@multiplatform.one/theme";
|
|
20
|
-
import {
|
|
20
|
+
import { useOverlayZIndex } from "@multiplatform.one/forms";
|
|
21
21
|
import React from "react";
|
|
22
22
|
import {
|
|
23
23
|
Tooltip as TamaguiTooltip,
|
|
@@ -73,6 +73,7 @@ export function Tooltip({
|
|
|
73
73
|
open: openProp,
|
|
74
74
|
onOpenChange: onOpenChangeProp,
|
|
75
75
|
}: TooltipProps) {
|
|
76
|
+
const overlayZIndex = useOverlayZIndex("dropdown");
|
|
76
77
|
const { knobProps } = useResolvedKnobs({ component: "Tooltip", painted: false });
|
|
77
78
|
const theme = useTheme();
|
|
78
79
|
const elevated = knobProps.elevatedSurface;
|
|
@@ -156,7 +157,7 @@ export function Tooltip({
|
|
|
156
157
|
delay={{ open: delayMs, close: 0 }}
|
|
157
158
|
restMs={100}
|
|
158
159
|
offset={OVERLAY_ANCHOR_GAP}
|
|
159
|
-
zIndex={
|
|
160
|
+
zIndex={overlayZIndex}
|
|
160
161
|
open={open}
|
|
161
162
|
onOpenChange={setOpen}
|
|
162
163
|
>
|
package/src/TreeSelect/index.tsx
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
useViewportGtSm,
|
|
10
10
|
panelTransition,
|
|
11
11
|
panelViewportPadding,
|
|
12
|
-
|
|
12
|
+
useOverlayZIndex,
|
|
13
13
|
} from "@multiplatform.one/forms";
|
|
14
14
|
import {
|
|
15
15
|
CaretDownIcon,
|
|
@@ -642,6 +642,7 @@ function FloatingTreeSelect({
|
|
|
642
642
|
loading?: boolean;
|
|
643
643
|
accessibilityLabel?: string;
|
|
644
644
|
}) {
|
|
645
|
+
const overlayZIndex = useOverlayZIndex("dropdown");
|
|
645
646
|
const treeId = useId();
|
|
646
647
|
const searchRef = useRef<HTMLInputElement | null>(null);
|
|
647
648
|
const state = useTreeSelectState({ nodes, value, open, defaultExpandedIds });
|
|
@@ -760,7 +761,7 @@ function FloatingTreeSelect({
|
|
|
760
761
|
position: "fixed",
|
|
761
762
|
top: overlayStyle.current?.top ?? 0,
|
|
762
763
|
left: 0,
|
|
763
|
-
zIndex:
|
|
764
|
+
zIndex: overlayZIndex,
|
|
764
765
|
opacity: panel.visible ? 1 : 0,
|
|
765
766
|
transform: panel.visible ? "scale(1)" : "scale(0.96)",
|
|
766
767
|
transition: panelTransition,
|
|
@@ -2,7 +2,8 @@ import { Button } from "@multiplatform.one/forms";
|
|
|
2
2
|
import { isWeb } from "@multiplatform.one/platform";
|
|
3
3
|
import { useResolvedKnobs } from "@multiplatform.one/theme";
|
|
4
4
|
import { createContext, useContext, useId, useState, type ReactNode } from "react";
|
|
5
|
-
import {
|
|
5
|
+
import { Paragraph, XStack, YStack } from "tamagui";
|
|
6
|
+
import { Dialog } from "../Dialog";
|
|
6
7
|
import { ScrollView } from "../ScrollView";
|
|
7
8
|
import { sectionHeading } from "../componentColors";
|
|
8
9
|
import { useTranslation } from "../shared/i18n";
|
|
@@ -5,6 +5,8 @@ import { useEffect, useState } from "react";
|
|
|
5
5
|
import { XStack, YStack } from "tamagui";
|
|
6
6
|
import { ConfirmDialog } from "./ConfirmDialog";
|
|
7
7
|
import { notify, NotifyHost, resetFeedback } from "./index";
|
|
8
|
+
import { Sheet } from "../Sheet";
|
|
9
|
+
import { SheetFrame } from "../surfaces";
|
|
8
10
|
import { resetToasts } from "../Toast/store";
|
|
9
11
|
import { Paragraph, SizableText } from "../Text";
|
|
10
12
|
|
|
@@ -108,6 +110,52 @@ export const Gated: Story = {
|
|
|
108
110
|
),
|
|
109
111
|
};
|
|
110
112
|
|
|
113
|
+
function ConfirmInSheetDemo() {
|
|
114
|
+
const [sheetOpen, setSheetOpen] = useState(true);
|
|
115
|
+
const [confirming, setConfirming] = useState(false);
|
|
116
|
+
const [applied, setApplied] = useState(0);
|
|
117
|
+
return (
|
|
118
|
+
<YStack minHeight={360} gap="$3" padding="$4" alignItems="flex-start">
|
|
119
|
+
<Button size="$3" onPress={() => setSheetOpen(true)}>
|
|
120
|
+
Open sheet
|
|
121
|
+
</Button>
|
|
122
|
+
<Sheet modal open={sheetOpen} onOpenChange={setSheetOpen} snapPointsMode="fit">
|
|
123
|
+
<Sheet.Overlay backgroundColor="$shadow6" />
|
|
124
|
+
<Sheet.Handle />
|
|
125
|
+
<SheetFrame>
|
|
126
|
+
<YStack gap="$3" alignItems="flex-start">
|
|
127
|
+
<SizableText>Manage stack</SizableText>
|
|
128
|
+
<Paragraph>{applied ? `Applied ${applied}×` : "One staged change"}</Paragraph>
|
|
129
|
+
<Button size="$3" accent onPress={() => setConfirming(true)}>
|
|
130
|
+
Apply
|
|
131
|
+
</Button>
|
|
132
|
+
<ConfirmDialog
|
|
133
|
+
open={confirming}
|
|
134
|
+
onOpenChange={setConfirming}
|
|
135
|
+
title="Apply changes?"
|
|
136
|
+
body="The stack restarts with the new settings."
|
|
137
|
+
confirmLabel="Apply now"
|
|
138
|
+
onConfirm={() => {
|
|
139
|
+
setApplied((n) => n + 1);
|
|
140
|
+
action("confirm")();
|
|
141
|
+
}}
|
|
142
|
+
/>
|
|
143
|
+
</YStack>
|
|
144
|
+
</SheetFrame>
|
|
145
|
+
</Sheet>
|
|
146
|
+
</YStack>
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* FZ-7869: a confirm opened from a button inside a modal sheet stacks above
|
|
152
|
+
* the sheet and takes the press, on native as on web.
|
|
153
|
+
*/
|
|
154
|
+
export const InSheet: Story = {
|
|
155
|
+
name: "In a sheet",
|
|
156
|
+
render: () => <ConfirmInSheetDemo />,
|
|
157
|
+
};
|
|
158
|
+
|
|
111
159
|
function NotifyBlockingDemo() {
|
|
112
160
|
useEffect(() => {
|
|
113
161
|
resetToasts();
|
|
@@ -27,7 +27,8 @@ import {
|
|
|
27
27
|
} from "@multiplatform.one/theme";
|
|
28
28
|
import { useCallback, useEffect, useRef, type ReactNode } from "react";
|
|
29
29
|
import { useTranslation } from "../shared/i18n";
|
|
30
|
-
import {
|
|
30
|
+
import { Paragraph, XStack, YStack, isWeb, type TamaguiElement } from "tamagui";
|
|
31
|
+
import { Dialog } from "../Dialog";
|
|
31
32
|
import { countActionsInTree } from "../shared/actionScan";
|
|
32
33
|
import { useReturnFocusOnClose } from "../shared/useReturnFocusOnClose";
|
|
33
34
|
import { useKeyboardInset } from "../shared/useKeyboardInset";
|
package/src/knobImmuneExports.ts
CHANGED
|
@@ -63,7 +63,6 @@ export const knobImmuneExports: Readonly<Record<string, string>> = {
|
|
|
63
63
|
// Logic shells with no painted frame of their own; the knob channel lands
|
|
64
64
|
// on the house content surfaces designed to fill them (DialogContent,
|
|
65
65
|
// PopoverContent, SheetFrame, ConfirmDialog).
|
|
66
|
-
Sheet: "composition root; knobs land on house SheetFrame",
|
|
67
66
|
Portal: "reparenting utility; renders children elsewhere, paints nothing",
|
|
68
67
|
PortalProvider: "provider; paints nothing",
|
|
69
68
|
|
|
@@ -26,7 +26,6 @@ import { downloadFile } from "@multiplatform.one/platform";
|
|
|
26
26
|
import React, { useCallback, useMemo, useRef, useState } from "react";
|
|
27
27
|
import { useTranslation } from "../shared/i18n";
|
|
28
28
|
import {
|
|
29
|
-
Dialog,
|
|
30
29
|
Image,
|
|
31
30
|
Label,
|
|
32
31
|
SizableText,
|
|
@@ -39,6 +38,7 @@ import {
|
|
|
39
38
|
type YStackProps,
|
|
40
39
|
} from "tamagui";
|
|
41
40
|
import { Button } from "../Button";
|
|
41
|
+
import { Dialog } from "../Dialog";
|
|
42
42
|
import { DialogContent, DialogOverlay } from "../surfaces";
|
|
43
43
|
import { componentColors, sectionHeading } from "../componentColors";
|
|
44
44
|
import { Skeleton } from "../Skeleton";
|