@multiplatform.one/components 7.66.0 → 7.67.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.cjs +5 -0
- package/dist/cjs/Alert/index.native.js +5 -0
- 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.cjs +6 -34
- package/dist/cjs/Avatar/getInitials.native.js +8 -34
- package/dist/cjs/Avatar/getInitials.native.js.map +1 -1
- package/dist/cjs/Avatar/index.cjs +28 -23
- package/dist/cjs/Avatar/index.native.js +30 -25
- 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.cjs +67 -11
- package/dist/cjs/Card.native.js +71 -11
- 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 +3 -3
- package/dist/cjs/Carousel/index.native.js.map +1 -1
- package/dist/cjs/Chip/index.cjs +54 -8
- package/dist/cjs/Chip/index.native.js +57 -10
- 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.native.js.map +1 -1
- package/dist/cjs/DotIndicator/index.native.js.map +1 -1
- package/dist/cjs/DropdownMenu/index.cjs +5 -2
- package/dist/cjs/DropdownMenu/index.native.js +5 -2
- package/dist/cjs/DropdownMenu/index.native.js.map +1 -1
- package/dist/cjs/DropdownMenu/menuSettle.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/Kbd/index.native.js.map +1 -1
- package/dist/cjs/Kbd/keys.native.js.map +1 -1
- package/dist/cjs/Lightbox/MediaControl.native.js +1 -1
- package/dist/cjs/Lightbox/MediaControl.native.js.map +1 -1
- package/dist/cjs/Lightbox/index.gnome.native.js.map +1 -1
- package/dist/cjs/Lightbox/index.native.js +1 -1
- package/dist/cjs/Lightbox/shared.native.js.map +1 -1
- package/dist/cjs/Lightbox/useLightbox.native.js.map +1 -1
- package/dist/cjs/Material/index.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.cjs +3 -1
- package/dist/cjs/OverflowRow/index.native.js +4 -2
- package/dist/cjs/OverflowRow/index.native.js.map +1 -1
- package/dist/cjs/Pagination.cjs +4 -4
- package/dist/cjs/Pagination.native.js +4 -4
- package/dist/cjs/Pagination.native.js.map +1 -1
- 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.native.js.map +1 -1
- package/dist/cjs/SheetModal/SheetHeader.native.js.map +1 -1
- package/dist/cjs/SheetModal/SheetNavigation.cjs +104 -0
- package/dist/cjs/SheetModal/SheetNavigation.native.js +132 -0
- package/dist/cjs/SheetModal/SheetNavigation.native.js.map +1 -0
- package/dist/cjs/SheetModal/detents.native.js.map +1 -1
- package/dist/cjs/SheetModal/index.cjs +24 -16
- package/dist/cjs/SheetModal/index.native.js +86 -58
- package/dist/cjs/SheetModal/index.native.js.map +1 -1
- package/dist/cjs/SheetModal/useSheetFrameFocus.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/nativePress.native.js.map +1 -1
- package/dist/cjs/Tooltip/tooltipShared.native.js.map +1 -1
- package/dist/cjs/TreeSelect/index.native.js +1 -1
- 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/DangerSection.native.js.map +1 -1
- package/dist/cjs/actions/DestructiveAction.native.js.map +1 -1
- package/dist/cjs/actions/HeaderActions.native.js +2 -2
- package/dist/cjs/actions/HeaderActions.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/BottomAccessory.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/TabHost.cjs +51 -0
- package/dist/cjs/appShell/TabHost.native.js +151 -0
- package/dist/cjs/appShell/TabHost.native.js.map +1 -0
- package/dist/cjs/appShell/appTile.native.js +1 -1
- package/dist/cjs/appShell/appTile.native.js.map +1 -1
- package/dist/cjs/appShell/bottomChrome.native.js.map +1 -1
- package/dist/cjs/appShell/index.cjs +2 -0
- package/dist/cjs/appShell/index.native.js +2 -0
- 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.native.js +1 -1
- 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.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/formLayouts/FormLayouts.native.js +1 -1
- package/dist/cjs/formLayouts/FormLayouts.native.js.map +1 -1
- package/dist/cjs/formLayouts/PreferencePanel.native.js +2 -2
- package/dist/cjs/formLayouts/PreferencePanel.native.js.map +1 -1
- package/dist/cjs/formLayouts/index.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/hooks/useHoldCue.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/framing.native.js.map +1 -1
- package/dist/cjs/images/Image/index.native.js +1 -1
- package/dist/cjs/images/Image/mediaRadius.native.js.map +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 +35 -35
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/knobImmuneExports.native.js.map +1 -1
- package/dist/cjs/layouts/AsyncBoundary.cjs +87 -0
- package/dist/cjs/layouts/AsyncBoundary.native.js +93 -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/IdentityPlate.native.js.map +1 -1
- package/dist/cjs/layouts/KeyboardAvoidingWrapper/behavior.native.js.map +1 -1
- package/dist/cjs/layouts/PageTemplates.cjs +1 -0
- package/dist/cjs/layouts/PageTemplates.native.js +2 -0
- 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/StatusDot.native.js.map +1 -1
- package/dist/cjs/layouts/ViewSwitcher.native.js.map +1 -1
- package/dist/cjs/layouts/attachments.native.js +1 -1
- 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.cjs +2 -11
- package/dist/cjs/layouts/page.native.js +8 -17
- package/dist/cjs/layouts/page.native.js.map +1 -1
- package/dist/cjs/layouts/pageHeadingScope.native.js.map +1 -1
- package/dist/cjs/layouts/screenScroll.native.js.map +1 -1
- package/dist/cjs/layouts/shellSidebarSlot.native.js.map +1 -1
- package/dist/cjs/layouts/sidebar.cjs +51 -21
- package/dist/cjs/layouts/sidebar.native.js +54 -24
- 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.cjs +9 -6
- package/dist/cjs/layouts/toolbar.native.js +10 -7
- 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/restoreRetries.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.native.js +1 -1
- package/dist/cjs/surfaces.native.js.map +1 -1
- package/dist/cjs/tamagui.native.js +1 -1
- 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.cjs +55 -14
- package/dist/cjs/views/ImageGrid.native.js +60 -17
- 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/ListGroup.native.js.map +1 -1
- package/dist/cjs/views/ListRow.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/ShortcutCard.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.cjs +2 -0
- package/dist/cjs/views/index.native.js +3 -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/cjs/views/widgetChrome.native.js.map +1 -1
- package/dist/esm/Alert/index.mjs +5 -0
- package/dist/esm/Alert/index.mjs.map +1 -1
- package/dist/esm/Alert/index.native.js +5 -0
- package/dist/esm/Alert/index.native.js.map +1 -1
- package/dist/esm/Avatar/getInitials.mjs +7 -32
- package/dist/esm/Avatar/getInitials.mjs.map +1 -1
- package/dist/esm/Avatar/getInitials.native.js +9 -32
- package/dist/esm/Avatar/getInitials.native.js.map +1 -1
- package/dist/esm/Avatar/index.mjs +30 -24
- package/dist/esm/Avatar/index.mjs.map +1 -1
- package/dist/esm/Avatar/index.native.js +32 -26
- package/dist/esm/Avatar/index.native.js.map +1 -1
- package/dist/esm/Card.mjs +69 -13
- package/dist/esm/Card.mjs.map +1 -1
- package/dist/esm/Card.native.js +73 -13
- package/dist/esm/Card.native.js.map +1 -1
- package/dist/esm/Chip/index.mjs +54 -9
- package/dist/esm/Chip/index.mjs.map +1 -1
- package/dist/esm/Chip/index.native.js +57 -11
- package/dist/esm/Chip/index.native.js.map +1 -1
- package/dist/esm/DropdownMenu/index.mjs +5 -2
- package/dist/esm/DropdownMenu/index.mjs.map +1 -1
- package/dist/esm/DropdownMenu/index.native.js +5 -2
- package/dist/esm/DropdownMenu/index.native.js.map +1 -1
- package/dist/esm/OverflowRow/index.mjs +4 -2
- package/dist/esm/OverflowRow/index.mjs.map +1 -1
- package/dist/esm/OverflowRow/index.native.js +4 -2
- package/dist/esm/OverflowRow/index.native.js.map +1 -1
- package/dist/esm/Pagination.mjs +4 -4
- package/dist/esm/Pagination.mjs.map +1 -1
- package/dist/esm/Pagination.native.js +3 -3
- package/dist/esm/Pagination.native.js.map +1 -1
- package/dist/esm/SheetModal/SheetNavigation.mjs +79 -0
- package/dist/esm/SheetModal/SheetNavigation.mjs.map +1 -0
- package/dist/esm/SheetModal/SheetNavigation.native.js +104 -0
- package/dist/esm/SheetModal/SheetNavigation.native.js.map +1 -0
- package/dist/esm/SheetModal/index.mjs +25 -17
- package/dist/esm/SheetModal/index.mjs.map +1 -1
- package/dist/esm/SheetModal/index.native.js +88 -60
- package/dist/esm/SheetModal/index.native.js.map +1 -1
- package/dist/esm/appShell/TabBar.mjs.map +1 -1
- package/dist/esm/appShell/TabHost.mjs +25 -0
- package/dist/esm/appShell/TabHost.mjs.map +1 -0
- package/dist/esm/appShell/TabHost.native.js +118 -0
- package/dist/esm/appShell/TabHost.native.js.map +1 -0
- package/dist/esm/appShell/index.mjs +2 -1
- package/dist/esm/appShell/index.mjs.map +1 -1
- package/dist/esm/appShell/index.native.js +2 -1
- package/dist/esm/appShell/index.native.js.map +1 -1
- package/dist/esm/layouts/AsyncBoundary.mjs +87 -0
- package/dist/esm/layouts/AsyncBoundary.mjs.map +1 -1
- package/dist/esm/layouts/AsyncBoundary.native.js +91 -0
- package/dist/esm/layouts/AsyncBoundary.native.js.map +1 -1
- package/dist/esm/layouts/PageTemplates.mjs +2 -1
- package/dist/esm/layouts/PageTemplates.mjs.map +1 -1
- package/dist/esm/layouts/PageTemplates.native.js +3 -1
- package/dist/esm/layouts/PageTemplates.native.js.map +1 -1
- package/dist/esm/layouts/page.mjs +2 -11
- package/dist/esm/layouts/page.mjs.map +1 -1
- package/dist/esm/layouts/page.native.js +6 -15
- package/dist/esm/layouts/page.native.js.map +1 -1
- package/dist/esm/layouts/sidebar.mjs +51 -21
- package/dist/esm/layouts/sidebar.mjs.map +1 -1
- package/dist/esm/layouts/sidebar.native.js +53 -23
- package/dist/esm/layouts/sidebar.native.js.map +1 -1
- package/dist/esm/layouts/toolbar.mjs +9 -6
- package/dist/esm/layouts/toolbar.mjs.map +1 -1
- package/dist/esm/layouts/toolbar.native.js +9 -6
- package/dist/esm/layouts/toolbar.native.js.map +1 -1
- package/dist/esm/views/ImageGrid.mjs +53 -14
- package/dist/esm/views/ImageGrid.mjs.map +1 -1
- package/dist/esm/views/ImageGrid.native.js +56 -15
- package/dist/esm/views/ImageGrid.native.js.map +1 -1
- package/dist/esm/views/index.mjs +2 -2
- package/dist/esm/views/index.mjs.map +1 -1
- package/dist/esm/views/index.native.js +2 -2
- package/dist/esm/views/index.native.js.map +1 -1
- package/dist/jsx/Alert/index.mjs +5 -0
- package/dist/jsx/Alert/index.mjs.map +1 -1
- package/dist/jsx/Alert/index.native.js +5 -0
- package/dist/jsx/Alert/index.native.js.map +1 -1
- package/dist/jsx/Avatar/getInitials.mjs +7 -32
- package/dist/jsx/Avatar/getInitials.mjs.map +1 -1
- package/dist/jsx/Avatar/getInitials.native.js +8 -34
- package/dist/jsx/Avatar/getInitials.native.js.map +1 -1
- package/dist/jsx/Avatar/index.mjs +30 -24
- package/dist/jsx/Avatar/index.mjs.map +1 -1
- package/dist/jsx/Avatar/index.native.js +30 -25
- package/dist/jsx/Avatar/index.native.js.map +1 -1
- package/dist/jsx/Card.mjs +69 -13
- package/dist/jsx/Card.mjs.map +1 -1
- package/dist/jsx/Card.native.js +71 -11
- package/dist/jsx/Card.native.js.map +1 -1
- package/dist/jsx/Chip/index.mjs +54 -9
- package/dist/jsx/Chip/index.mjs.map +1 -1
- package/dist/jsx/Chip/index.native.js +57 -10
- package/dist/jsx/Chip/index.native.js.map +1 -1
- package/dist/jsx/DropdownMenu/index.mjs +5 -2
- package/dist/jsx/DropdownMenu/index.mjs.map +1 -1
- package/dist/jsx/DropdownMenu/index.native.js +5 -2
- package/dist/jsx/DropdownMenu/index.native.js.map +1 -1
- package/dist/jsx/OverflowRow/index.mjs +4 -2
- package/dist/jsx/OverflowRow/index.mjs.map +1 -1
- package/dist/jsx/OverflowRow/index.native.js +3 -1
- package/dist/jsx/OverflowRow/index.native.js.map +1 -1
- package/dist/jsx/Pagination.mjs +4 -4
- package/dist/jsx/Pagination.mjs.map +1 -1
- package/dist/jsx/Pagination.native.js +3 -3
- package/dist/jsx/Pagination.native.js.map +1 -1
- package/dist/jsx/SheetModal/SheetNavigation.mjs +79 -0
- package/dist/jsx/SheetModal/SheetNavigation.mjs.map +1 -0
- package/dist/jsx/SheetModal/SheetNavigation.native.js +132 -0
- package/dist/jsx/SheetModal/SheetNavigation.native.js.map +1 -0
- package/dist/jsx/SheetModal/index.mjs +25 -17
- package/dist/jsx/SheetModal/index.mjs.map +1 -1
- package/dist/jsx/SheetModal/index.native.js +86 -58
- package/dist/jsx/SheetModal/index.native.js.map +1 -1
- package/dist/jsx/appShell/TabBar.mjs.map +1 -1
- package/dist/jsx/appShell/TabBar.native.js.map +1 -1
- package/dist/jsx/appShell/TabHost.mjs +25 -0
- package/dist/jsx/appShell/TabHost.mjs.map +1 -0
- package/dist/jsx/appShell/TabHost.native.js +151 -0
- package/dist/jsx/appShell/TabHost.native.js.map +1 -0
- package/dist/jsx/appShell/index.mjs +2 -1
- package/dist/jsx/appShell/index.mjs.map +1 -1
- package/dist/jsx/appShell/index.native.js +2 -0
- package/dist/jsx/appShell/index.native.js.map +1 -1
- package/dist/jsx/layouts/AsyncBoundary.mjs +87 -0
- package/dist/jsx/layouts/AsyncBoundary.mjs.map +1 -1
- package/dist/jsx/layouts/AsyncBoundary.native.js +91 -0
- package/dist/jsx/layouts/AsyncBoundary.native.js.map +1 -1
- package/dist/jsx/layouts/PageTemplates.mjs +2 -1
- package/dist/jsx/layouts/PageTemplates.mjs.map +1 -1
- package/dist/jsx/layouts/PageTemplates.native.js +2 -0
- package/dist/jsx/layouts/PageTemplates.native.js.map +1 -1
- package/dist/jsx/layouts/page.mjs +2 -11
- package/dist/jsx/layouts/page.mjs.map +1 -1
- package/dist/jsx/layouts/page.native.js +6 -15
- package/dist/jsx/layouts/page.native.js.map +1 -1
- package/dist/jsx/layouts/sidebar.mjs +51 -21
- package/dist/jsx/layouts/sidebar.mjs.map +1 -1
- package/dist/jsx/layouts/sidebar.native.js +53 -23
- package/dist/jsx/layouts/sidebar.native.js.map +1 -1
- package/dist/jsx/layouts/toolbar.mjs +9 -6
- package/dist/jsx/layouts/toolbar.mjs.map +1 -1
- package/dist/jsx/layouts/toolbar.native.js +9 -6
- package/dist/jsx/layouts/toolbar.native.js.map +1 -1
- package/dist/jsx/views/ImageGrid.mjs +53 -14
- package/dist/jsx/views/ImageGrid.mjs.map +1 -1
- package/dist/jsx/views/ImageGrid.native.js +58 -15
- package/dist/jsx/views/ImageGrid.native.js.map +1 -1
- package/dist/jsx/views/index.mjs +2 -2
- package/dist/jsx/views/index.mjs.map +1 -1
- package/dist/jsx/views/index.native.js +2 -0
- package/dist/jsx/views/index.native.js.map +1 -1
- package/package.json +13 -9
- package/src/Alert/Alert.spec.tsx +22 -0
- package/src/Alert/index.tsx +5 -0
- package/src/Avatar/Avatar.ink.spec.tsx +74 -0
- package/src/Avatar/Avatar.spec.tsx +35 -8
- package/src/Avatar/getInitials.ts +12 -30
- package/src/Avatar/index.tsx +37 -22
- package/src/Card.spec.tsx +45 -0
- package/src/Card.tsx +57 -18
- package/src/Chip/Chip.spec.tsx +72 -1
- package/src/Chip/index.tsx +86 -7
- package/src/DropdownMenu/DropdownMenu.avatarTrigger.spec.tsx +62 -0
- package/src/DropdownMenu/DropdownMenu.stories.tsx +45 -0
- package/src/DropdownMenu/index.tsx +7 -3
- package/src/OverflowRow/OverflowRow.native.spec.tsx +17 -2
- package/src/OverflowRow/index.tsx +6 -2
- package/src/Pagination.tsx +10 -6
- package/src/SheetModal/SheetModal.fill.spec.tsx +1 -1
- package/src/SheetModal/SheetModal.menus.spec.tsx +125 -26
- package/src/SheetModal/SheetModal.native.spec.tsx +35 -0
- package/src/SheetModal/SheetModal.regularWidth.native.spec.tsx +117 -0
- package/src/SheetModal/SheetModal.stories.tsx +16 -2
- package/src/SheetModal/SheetNavigation.tsx +93 -0
- package/src/SheetModal/index.native.tsx +108 -69
- package/src/SheetModal/index.tsx +33 -20
- package/src/Tabs/Tabs.stories.tsx +2 -2
- package/src/Tooltip/Tooltip.spec.tsx +2 -2
- package/src/appShell/TabBar.tsx +5 -0
- package/src/appShell/TabHost.native.spec.tsx +188 -0
- package/src/appShell/TabHost.native.tsx +154 -0
- package/src/appShell/TabHost.tsx +36 -0
- package/src/appShell/index.ts +1 -0
- package/src/icons/nativeIconInk.dark.spec.tsx +159 -0
- package/src/layouts/AsyncBoundary.spec.tsx +24 -1
- package/src/layouts/AsyncBoundary.stories.tsx +8 -1
- package/src/layouts/AsyncBoundary.tsx +71 -2
- package/src/layouts/AsyncSkeleton.stories.tsx +9 -1
- package/src/layouts/PageTemplates.spec.tsx +28 -1
- package/src/layouts/PageTemplates.tsx +8 -1
- package/src/layouts/Sidebar.spec.tsx +48 -0
- package/src/layouts/layouts.spec.tsx +33 -0
- package/src/layouts/page.tsx +5 -12
- package/src/layouts/pageChrome.phone.spec.tsx +11 -5
- package/src/layouts/sidebar.tsx +84 -31
- package/src/layouts/toolbar.tsx +16 -2
- package/src/overlayElevation.spec.tsx +3 -4
- package/src/views/ImageGrid.photos.spec.tsx +46 -0
- package/src/views/ImageGrid.tsx +52 -27
- package/src/views/index.ts +8 -1
- package/types/Alert/index.d.ts.map +1 -1
- package/types/Avatar/getInitials.d.ts +3 -27
- package/types/Avatar/getInitials.d.ts.map +1 -1
- package/types/Avatar/index.d.ts +15 -2
- package/types/Avatar/index.d.ts.map +1 -1
- package/types/Card.d.ts +15 -1
- package/types/Card.d.ts.map +1 -1
- package/types/Chip/index.d.ts +38 -3
- package/types/Chip/index.d.ts.map +1 -1
- package/types/DropdownMenu/index.d.ts +2 -1
- package/types/DropdownMenu/index.d.ts.map +1 -1
- package/types/OverflowRow/index.d.ts.map +1 -1
- package/types/Pagination.d.ts +4 -1
- package/types/Pagination.d.ts.map +1 -1
- package/types/SheetModal/SheetNavigation.d.ts +14 -0
- package/types/SheetModal/SheetNavigation.d.ts.map +1 -0
- package/types/SheetModal/index.d.ts.map +1 -1
- package/types/SheetModal/index.native.d.ts +6 -0
- package/types/SheetModal/index.native.d.ts.map +1 -1
- package/types/appShell/TabBar.d.ts +8 -0
- package/types/appShell/TabBar.d.ts.map +1 -1
- package/types/appShell/TabHost.d.ts +23 -0
- package/types/appShell/TabHost.d.ts.map +1 -0
- package/types/appShell/TabHost.native.d.ts +56 -0
- package/types/appShell/TabHost.native.d.ts.map +1 -0
- package/types/appShell/index.d.ts +1 -0
- package/types/appShell/index.d.ts.map +1 -1
- package/types/layouts/AsyncBoundary.d.ts +13 -2
- package/types/layouts/AsyncBoundary.d.ts.map +1 -1
- package/types/layouts/PageTemplates.d.ts.map +1 -1
- package/types/layouts/page.d.ts.map +1 -1
- package/types/layouts/sidebar.d.ts +25 -3
- package/types/layouts/sidebar.d.ts.map +1 -1
- package/types/layouts/toolbar.d.ts +9 -0
- package/types/layouts/toolbar.d.ts.map +1 -1
- package/types/views/ImageGrid.d.ts +19 -1
- package/types/views/ImageGrid.d.ts.map +1 -1
- package/types/views/index.d.ts +1 -1
- package/types/views/index.d.ts.map +1 -1
|
@@ -4,6 +4,8 @@ import { act } from "@testing-library/react";
|
|
|
4
4
|
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
|
5
5
|
import { Animated, PanResponder } from "react-native";
|
|
6
6
|
import { Text } from "tamagui";
|
|
7
|
+
import { useSheetNavigation } from "@multiplatform.one/forms";
|
|
8
|
+
import { fireEvent } from "@testing-library/react";
|
|
7
9
|
import { SheetModal } from "./index.native";
|
|
8
10
|
|
|
9
11
|
const modal = vi.hoisted(() => ({ onShow: undefined as undefined | (() => void) }));
|
|
@@ -166,3 +168,36 @@ describe("SheetModal native presentation lifecycle", () => {
|
|
|
166
168
|
);
|
|
167
169
|
});
|
|
168
170
|
});
|
|
171
|
+
|
|
172
|
+
describe("SheetModal native navigation stack (FZ-7830 round 3)", () => {
|
|
173
|
+
function Pusher() {
|
|
174
|
+
const store = useSheetNavigation();
|
|
175
|
+
return (
|
|
176
|
+
<Text
|
|
177
|
+
onPress={() => store?.push({ id: "region", title: "Region", content: <Text>Tokyo</Text> })}
|
|
178
|
+
>
|
|
179
|
+
Region row
|
|
180
|
+
</Text>
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
it("shows a pushed page in place of the body with its title and Back, and Back pops it", () => {
|
|
185
|
+
const result = renderWithProviders(
|
|
186
|
+
<SheetModal open onOpenChange={onOpenChange} header={<Text>keycloak</Text>}>
|
|
187
|
+
<Pusher />
|
|
188
|
+
</SheetModal>,
|
|
189
|
+
);
|
|
190
|
+
expect(result.queryByTestId("sheet-modal-page")).toBeNull();
|
|
191
|
+
act(() => {
|
|
192
|
+
fireEvent.click(result.getByText("Region row"));
|
|
193
|
+
});
|
|
194
|
+
const page = result.getByTestId("sheet-modal-page");
|
|
195
|
+
expect(page.textContent).toContain("Region");
|
|
196
|
+
expect(page.textContent).toContain("Tokyo");
|
|
197
|
+
expect(result.getByText("Region row").closest("[aria-hidden='true']")).toBeTruthy();
|
|
198
|
+
act(() => {
|
|
199
|
+
fireEvent.click(result.getByRole("button", { name: "Back" }));
|
|
200
|
+
});
|
|
201
|
+
expect(result.queryByTestId("sheet-modal-page")).toBeNull();
|
|
202
|
+
});
|
|
203
|
+
});
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FZ-8116 (LC-266): at regular width (an iPad, a wide Android window) the
|
|
3
|
+
* native SheetModal is the compact sheet as a panel: bottom-pinned, slid up
|
|
4
|
+
* with its grabber, capped at SHEET_PANEL_WIDTH and centred, top corners
|
|
5
|
+
* rounded, on the elevated overlay surface. A tap on the scrim dismisses. At
|
|
6
|
+
* compact width (iPhone, Slide Over) it stays the full-width bottom sheet.
|
|
7
|
+
*/
|
|
8
|
+
import { SHEET_PANEL_WIDTH } from "@multiplatform.one/forms";
|
|
9
|
+
import { renderWithProviders } from "@multiplatform.one/test-utils";
|
|
10
|
+
import { OVERLAY_BREAKPOINT } from "@multiplatform.one/theme";
|
|
11
|
+
import { act, cleanup, fireEvent } from "@testing-library/react";
|
|
12
|
+
import { afterEach, describe, expect, it, vi } from "vitest";
|
|
13
|
+
import { Text } from "tamagui";
|
|
14
|
+
import type { SheetModalProps } from "./index";
|
|
15
|
+
import { SheetModal } from "./index.native";
|
|
16
|
+
|
|
17
|
+
const screen = vi.hoisted(() => ({ width: 820, height: 1180 }));
|
|
18
|
+
vi.mock("react-native-web", async (importOriginal) => ({
|
|
19
|
+
...(await importOriginal<typeof import("react-native")>()),
|
|
20
|
+
ActionSheetIOS: undefined,
|
|
21
|
+
Modal: ({ children }: { children: import("react").ReactNode }) => children,
|
|
22
|
+
useWindowDimensions: () => ({ ...screen, scale: 2, fontScale: 1 }),
|
|
23
|
+
}));
|
|
24
|
+
|
|
25
|
+
afterEach(() => {
|
|
26
|
+
cleanup();
|
|
27
|
+
screen.width = 820;
|
|
28
|
+
screen.height = 1180;
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
function open(props: Partial<SheetModalProps> = {}) {
|
|
32
|
+
const view = renderWithProviders(
|
|
33
|
+
<SheetModal open onOpenChange={() => {}} {...props}>
|
|
34
|
+
<Text>Settings</Text>
|
|
35
|
+
</SheetModal>,
|
|
36
|
+
);
|
|
37
|
+
const frame = view.getByTestId("sheet-modal-frame");
|
|
38
|
+
const surface = view.getByTestId("sheet-modal-surface");
|
|
39
|
+
const container = frame.parentElement as HTMLElement;
|
|
40
|
+
return { view, frame, surface, container };
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function px(value: string) {
|
|
44
|
+
return Number.parseFloat(value);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
describe("SheetModal native at regular width (FZ-8116)", () => {
|
|
48
|
+
it("is a bottom panel, centred and capped at the panel width", () => {
|
|
49
|
+
const { frame, container } = open();
|
|
50
|
+
expect(frame.style.width).toBe(`${SHEET_PANEL_WIDTH}px`);
|
|
51
|
+
expect(container.style.justifyContent).toBe("flex-end");
|
|
52
|
+
expect(container.style.alignItems).toBe("center");
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
it("keeps the grabber, squares its bottom corners and leaves the bottom edge open", () => {
|
|
56
|
+
const { view, surface } = open();
|
|
57
|
+
expect(view.queryByTestId("sheet-modal-grabber")).not.toBeNull();
|
|
58
|
+
expect(surface.getAttribute("data-sheet-form")).toBe("panel");
|
|
59
|
+
expect(String(surface.className)).toMatch(/\b_bbw-0px\b/);
|
|
60
|
+
expect(String(surface.className)).toMatch(/\b_bblr-0px\b/);
|
|
61
|
+
expect(String(surface.className)).toMatch(/\b_bbrr-0px\b/);
|
|
62
|
+
expect(String(surface.className)).not.toMatch(/\b_btlr-0px\b/);
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
it("keeps its shadow: an inner view clips, not the surface", () => {
|
|
66
|
+
const { view, surface } = open();
|
|
67
|
+
const clip = view.getByTestId("sheet-modal-clip");
|
|
68
|
+
expect(surface.contains(clip)).toBe(true);
|
|
69
|
+
expect(surface.className).not.toContain("_ox-hidden");
|
|
70
|
+
expect(clip.className).toContain("_ox-hidden");
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
it("grows to its content up to the large detent, not a form-sheet height", () => {
|
|
74
|
+
const { frame } = open({ fill: true });
|
|
75
|
+
expect(px(frame.style.maxHeight)).toBeGreaterThan(620);
|
|
76
|
+
expect(px(frame.style.maxHeight)).toBeLessThanOrEqual(Math.round(1180 * 0.85));
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
it("spans a regular window narrower than the cap", () => {
|
|
80
|
+
screen.width = OVERLAY_BREAKPOINT + 1;
|
|
81
|
+
const { frame } = open();
|
|
82
|
+
expect(px(frame.style.width)).toBe(Math.min(SHEET_PANEL_WIDTH, OVERLAY_BREAKPOINT + 1));
|
|
83
|
+
});
|
|
84
|
+
|
|
85
|
+
it("dismisses on a tap on the scrim beside the panel", () => {
|
|
86
|
+
vi.useFakeTimers();
|
|
87
|
+
try {
|
|
88
|
+
const onOpenChange = vi.fn();
|
|
89
|
+
const view = renderWithProviders(
|
|
90
|
+
<SheetModal open onOpenChange={onOpenChange}>
|
|
91
|
+
<Text>Settings</Text>
|
|
92
|
+
</SheetModal>,
|
|
93
|
+
);
|
|
94
|
+
act(() => {
|
|
95
|
+
vi.runAllTimers();
|
|
96
|
+
});
|
|
97
|
+
fireEvent.click(view.getByRole("button", { name: "Close" }));
|
|
98
|
+
expect(onOpenChange).toHaveBeenCalledWith(false);
|
|
99
|
+
} finally {
|
|
100
|
+
vi.useRealTimers();
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
it.each([
|
|
105
|
+
["an iPhone", 390, 844],
|
|
106
|
+
["iPad Slide Over", 320, 1180],
|
|
107
|
+
])("stays the full-width bottom sheet on %s", (_name, width, height) => {
|
|
108
|
+
screen.width = width;
|
|
109
|
+
screen.height = height;
|
|
110
|
+
const { view, frame, surface, container } = open();
|
|
111
|
+
expect(frame.style.width).toBe("");
|
|
112
|
+
expect(container.style.justifyContent).toBe("flex-end");
|
|
113
|
+
expect(container.style.alignItems).toBe("");
|
|
114
|
+
expect(view.queryByTestId("sheet-modal-grabber")).not.toBeNull();
|
|
115
|
+
expect(surface.getAttribute("data-sheet-form")).toBe("bottom");
|
|
116
|
+
});
|
|
117
|
+
});
|
|
@@ -152,6 +152,11 @@ const regionOptions = [
|
|
|
152
152
|
"Tokyo",
|
|
153
153
|
].map((label) => ({ label, value: label.toLowerCase() }));
|
|
154
154
|
|
|
155
|
+
const restartOptions = ["Always", "On failure", "Unless stopped", "Never"].map((label) => ({
|
|
156
|
+
label,
|
|
157
|
+
value: label.toLowerCase().replace(/ /g, "-"),
|
|
158
|
+
}));
|
|
159
|
+
|
|
155
160
|
const noop = () => {};
|
|
156
161
|
|
|
157
162
|
/** Stop and Restart: the stack's frequent actions, shown, never hidden (LC-262). */
|
|
@@ -172,13 +177,16 @@ const pageActions = [
|
|
|
172
177
|
* FZ-7830, LC-262 DIRECT-ACTIONS. The sheet's frequent actions are icon
|
|
173
178
|
* buttons in its header, Uninstall sits in a Danger section at the end with
|
|
174
179
|
* its confirm, and the five-option Exposure lays out inline with its glyphs.
|
|
175
|
-
*
|
|
176
|
-
*
|
|
180
|
+
* Round 3: the eight-option Region is a Settings row that pushes its
|
|
181
|
+
* checkmark list inside the sheet, and the four-option Restart policy opens a
|
|
182
|
+
* menu beside its field, never over it. On the page, past three actions "…"
|
|
183
|
+
* holds the rest, and the short Select opens over its trigger.
|
|
177
184
|
*/
|
|
178
185
|
function MenusHarness({ startOpen = false }: { startOpen?: boolean }) {
|
|
179
186
|
const [open, setOpen] = useState(startOpen);
|
|
180
187
|
const [exposure, setExposure] = useState("tailnet");
|
|
181
188
|
const [region, setRegion] = useState("helsinki");
|
|
189
|
+
const [restart, setRestart] = useState("always");
|
|
182
190
|
return (
|
|
183
191
|
<FixtureStack minHeight={480} gap="$3" padding="$4">
|
|
184
192
|
<XStack alignItems="center" justifyContent="space-between" gap="$3">
|
|
@@ -211,6 +219,12 @@ function MenusHarness({ startOpen = false }: { startOpen?: boolean }) {
|
|
|
211
219
|
value={region}
|
|
212
220
|
onValueChange={(value) => setRegion(value as string)}
|
|
213
221
|
/>
|
|
222
|
+
<Select
|
|
223
|
+
label="Restart policy"
|
|
224
|
+
options={restartOptions}
|
|
225
|
+
value={restart}
|
|
226
|
+
onValueChange={(value) => setRestart(value as string)}
|
|
227
|
+
/>
|
|
214
228
|
<DangerSection>
|
|
215
229
|
<DestructiveAction verb="Uninstall" noun="keycloak" severity="medium" onAction={noop} />
|
|
216
230
|
</DangerSection>
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createSheetNavigationStore,
|
|
3
|
+
SheetNavigationProvider,
|
|
4
|
+
useSheetPages,
|
|
5
|
+
type SheetNavigationStore,
|
|
6
|
+
} from "@multiplatform.one/forms";
|
|
7
|
+
import { transitionProps, useResolvedKnobs } from "@multiplatform.one/theme";
|
|
8
|
+
import { useEffect, useState, type ReactNode } from "react";
|
|
9
|
+
import { ScrollView, SizableText, XStack, YStack } from "tamagui";
|
|
10
|
+
import { PageBackButton } from "../layouts/page";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* The sheet's navigation stack (LC-262, FZ-7830 round 3): a pushed page, such
|
|
14
|
+
* as a long choice list, takes the sheet's place with a back control and its
|
|
15
|
+
* title, sliding in from the trailing edge. The root stays mounted beneath it,
|
|
16
|
+
* so the field that pushed the page keeps its state.
|
|
17
|
+
*/
|
|
18
|
+
export function SheetNavigation({
|
|
19
|
+
open,
|
|
20
|
+
root,
|
|
21
|
+
gap,
|
|
22
|
+
fill,
|
|
23
|
+
}: {
|
|
24
|
+
open: boolean;
|
|
25
|
+
root: ReactNode;
|
|
26
|
+
gap?: string | number;
|
|
27
|
+
fill?: boolean;
|
|
28
|
+
}) {
|
|
29
|
+
const [store] = useState<SheetNavigationStore>(createSheetNavigationStore);
|
|
30
|
+
const pages = useSheetPages(store);
|
|
31
|
+
const top = pages.at(-1);
|
|
32
|
+
|
|
33
|
+
useEffect(() => {
|
|
34
|
+
if (!open) for (const page of store.getPages()) store.remove(page.id);
|
|
35
|
+
}, [open, store]);
|
|
36
|
+
|
|
37
|
+
return (
|
|
38
|
+
<SheetNavigationProvider value={store}>
|
|
39
|
+
<YStack
|
|
40
|
+
gap={gap}
|
|
41
|
+
flexShrink={1}
|
|
42
|
+
minHeight={0}
|
|
43
|
+
{...(fill ? { flex: 1 } : null)}
|
|
44
|
+
display={top ? "none" : "flex"}
|
|
45
|
+
aria-hidden={top ? true : undefined}
|
|
46
|
+
>
|
|
47
|
+
{root}
|
|
48
|
+
</YStack>
|
|
49
|
+
{top ? (
|
|
50
|
+
<SheetPageView key={top.id} title={top.title} onBack={() => store.pop()}>
|
|
51
|
+
{top.content}
|
|
52
|
+
</SheetPageView>
|
|
53
|
+
) : null}
|
|
54
|
+
</SheetNavigationProvider>
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function SheetPageView({
|
|
59
|
+
title,
|
|
60
|
+
onBack,
|
|
61
|
+
children,
|
|
62
|
+
}: {
|
|
63
|
+
title: string;
|
|
64
|
+
onBack: () => void;
|
|
65
|
+
children: ReactNode;
|
|
66
|
+
}) {
|
|
67
|
+
const { knobProps } = useResolvedKnobs();
|
|
68
|
+
return (
|
|
69
|
+
<YStack
|
|
70
|
+
testID="sheet-modal-page"
|
|
71
|
+
gap={knobProps.gap.gap}
|
|
72
|
+
flexShrink={1}
|
|
73
|
+
minHeight={0}
|
|
74
|
+
{...transitionProps(knobProps.motion.slide)}
|
|
75
|
+
enterStyle={{ x: 16, opacity: 0 }}
|
|
76
|
+
>
|
|
77
|
+
<XStack alignItems="center" gap="$2" testID="sheet-modal-page-bar">
|
|
78
|
+
<PageBackButton onPress={onBack} />
|
|
79
|
+
<SizableText {...knobProps.heading} role="heading" flex={1} numberOfLines={1}>
|
|
80
|
+
{title}
|
|
81
|
+
</SizableText>
|
|
82
|
+
</XStack>
|
|
83
|
+
<ScrollView
|
|
84
|
+
flexShrink={1}
|
|
85
|
+
minHeight={0}
|
|
86
|
+
keyboardShouldPersistTaps="handled"
|
|
87
|
+
testID="sheet-modal-page-scroll"
|
|
88
|
+
>
|
|
89
|
+
{children}
|
|
90
|
+
</ScrollView>
|
|
91
|
+
</YStack>
|
|
92
|
+
);
|
|
93
|
+
}
|
|
@@ -8,11 +8,23 @@
|
|
|
8
8
|
* Apple / gorhom anatomy: grabber, themed surface, top-only radius, backdrop
|
|
9
9
|
* tap + Android back + VoiceOver escape dismiss, keyboard avoiding, content
|
|
10
10
|
* height with a large-detent cap. LC-71: the frame is not a control.
|
|
11
|
+
*
|
|
12
|
+
* Regular width (FZ-8116, LC-266): an iPad or any window wider than
|
|
13
|
+
* OVERLAY_BREAKPOINT gets the same sheet as a panel: it slides up from the
|
|
14
|
+
* bottom edge with its grabber and detents, capped at SHEET_PANEL_WIDTH and
|
|
15
|
+
* centred, on the elevated overlay surface. Drover's composer sheets set the
|
|
16
|
+
* shape. A tap on the scrim either side of it dismisses, as above it.
|
|
11
17
|
*/
|
|
12
18
|
|
|
13
|
-
import {
|
|
19
|
+
import {
|
|
20
|
+
OverlayWindow,
|
|
21
|
+
overlaySizeClass,
|
|
22
|
+
sheetPanelWidth,
|
|
23
|
+
useOverlayZIndex,
|
|
24
|
+
} from "@multiplatform.one/forms";
|
|
14
25
|
import {
|
|
15
26
|
motionDurationMs,
|
|
27
|
+
Surface,
|
|
16
28
|
useResolvedKnobs,
|
|
17
29
|
type MotionStop,
|
|
18
30
|
nativeAnimationConfig as animationConfig,
|
|
@@ -49,6 +61,7 @@ import { DialogRegionContext } from "../surfaces";
|
|
|
49
61
|
|
|
50
62
|
import type { SheetModalProps } from "./index";
|
|
51
63
|
import { SheetHeader } from "./SheetHeader";
|
|
64
|
+
import { SheetNavigation } from "./SheetNavigation";
|
|
52
65
|
export type { SheetModalProps } from "./index";
|
|
53
66
|
|
|
54
67
|
const bottomInset = Platform.OS === "ios" ? 24 : 16;
|
|
@@ -99,7 +112,8 @@ export function SheetModal({
|
|
|
99
112
|
typeof slideTransition === "string"
|
|
100
113
|
? animationConfig[slideTransition as MotionStop]
|
|
101
114
|
: undefined;
|
|
102
|
-
const { height: windowHeight } = useWindowDimensions();
|
|
115
|
+
const { width: windowWidth, height: windowHeight } = useWindowDimensions();
|
|
116
|
+
const regular = overlaySizeClass(windowWidth) === "regular";
|
|
103
117
|
const keyboardInset = useKeyboardInset();
|
|
104
118
|
const topInset = useContext(SafeAreaInsetsContext)?.top ?? initialWindowMetrics?.insets.top ?? 0;
|
|
105
119
|
const [backdropArmed, setBackdropArmed] = useState(false);
|
|
@@ -393,7 +407,12 @@ export function SheetModal({
|
|
|
393
407
|
>
|
|
394
408
|
<OverlayWindow zIndex={windowZIndex}>
|
|
395
409
|
<RNView
|
|
396
|
-
style={{
|
|
410
|
+
style={{
|
|
411
|
+
flex: 1,
|
|
412
|
+
justifyContent: "flex-end",
|
|
413
|
+
alignItems: regular ? "center" : undefined,
|
|
414
|
+
paddingBottom: keyboardInset,
|
|
415
|
+
}}
|
|
397
416
|
onTouchStart={stopAtModal}
|
|
398
417
|
onTouchMove={stopAtModal}
|
|
399
418
|
onTouchEnd={stopAtModal}
|
|
@@ -418,6 +437,7 @@ export function SheetModal({
|
|
|
418
437
|
}}
|
|
419
438
|
testID="sheet-modal-frame"
|
|
420
439
|
style={{
|
|
440
|
+
...(regular ? { width: sheetPanelWidth(windowWidth) } : null),
|
|
421
441
|
// MPO-64: flex children default to flexShrink 0, so without this
|
|
422
442
|
// the sheet cannot give way to the keyboard.
|
|
423
443
|
flexShrink: 1,
|
|
@@ -431,18 +451,18 @@ export function SheetModal({
|
|
|
431
451
|
>
|
|
432
452
|
<YStack
|
|
433
453
|
testID="sheet-modal-surface"
|
|
434
|
-
{
|
|
454
|
+
data-sheet-form={regular ? "panel" : "bottom"}
|
|
455
|
+
{...(regular ? knobProps.elevatedSurface : knobProps.surface)}
|
|
435
456
|
{...knobProps.borderRadius}
|
|
436
457
|
borderBottomLeftRadius={0}
|
|
437
458
|
borderBottomRightRadius={0}
|
|
438
|
-
elevation
|
|
459
|
+
{...(regular ? { borderBottomWidth: 0 } : { elevation: knobProps.elevation })}
|
|
439
460
|
maxHeight={maxHeight}
|
|
440
461
|
flexShrink={1}
|
|
441
462
|
minHeight={0}
|
|
442
463
|
{...(fill ? fillSlot : null)}
|
|
443
464
|
paddingTop="$2"
|
|
444
465
|
paddingBottom={keyboardInset > 0 ? 8 : bottomInset}
|
|
445
|
-
overflow="hidden"
|
|
446
466
|
// No focus or press pseudo on this surface: on native tamagui
|
|
447
467
|
// turns one into a touch-responder claim, and a responder here
|
|
448
468
|
// takes every drag from the ScrollView inside (MPO-299).
|
|
@@ -455,71 +475,90 @@ export function SheetModal({
|
|
|
455
475
|
it that is, so it is the only thing that takes the gesture, and
|
|
456
476
|
it never fights the ScrollView below.
|
|
457
477
|
*/}
|
|
458
|
-
<
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
paddingTop: 3,
|
|
467
|
-
paddingBottom: 11,
|
|
468
|
-
...(fill ? nonShrinking : null),
|
|
469
|
-
}}
|
|
478
|
+
<YStack
|
|
479
|
+
testID="sheet-modal-clip"
|
|
480
|
+
overflow="hidden"
|
|
481
|
+
borderTopLeftRadius={knobProps.borderRadius.borderRadius}
|
|
482
|
+
borderTopRightRadius={knobProps.borderRadius.borderRadius}
|
|
483
|
+
flexShrink={1}
|
|
484
|
+
minHeight={0}
|
|
485
|
+
{...(fill ? fillSlot : null)}
|
|
470
486
|
>
|
|
471
|
-
<
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
padding={knobProps.panelPadding.padding}
|
|
484
|
-
gap={knobProps.gap.gap}
|
|
485
|
-
flexShrink={1}
|
|
486
|
-
{...(fill ? fillSlot : null)}
|
|
487
|
+
<RNView
|
|
488
|
+
{...panResponder.panHandlers}
|
|
489
|
+
accessibilityRole="adjustable"
|
|
490
|
+
accessibilityLabel={t("Drag to resize")}
|
|
491
|
+
testID="sheet-modal-grabber"
|
|
492
|
+
style={{
|
|
493
|
+
alignSelf: "stretch",
|
|
494
|
+
alignItems: "center",
|
|
495
|
+
paddingTop: 3,
|
|
496
|
+
paddingBottom: 11,
|
|
497
|
+
...(fill ? nonShrinking : null),
|
|
498
|
+
}}
|
|
487
499
|
>
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
500
|
+
<View
|
|
501
|
+
width={36}
|
|
502
|
+
height={5}
|
|
503
|
+
borderRadius={100}
|
|
504
|
+
backgroundColor="$color8"
|
|
505
|
+
opacity={0.45}
|
|
506
|
+
accessible={false}
|
|
507
|
+
/>
|
|
508
|
+
</RNView>
|
|
509
|
+
<DialogRegionContext.Provider value={IN_DIALOG_REGION}>
|
|
510
|
+
<Surface elevated={regular || undefined}>
|
|
511
|
+
<YStack
|
|
512
|
+
testID="sheet-modal-content"
|
|
513
|
+
padding={knobProps.panelPadding.padding}
|
|
514
|
+
gap={knobProps.gap.gap}
|
|
515
|
+
flexShrink={1}
|
|
516
|
+
{...(fill ? fillSlot : null)}
|
|
517
|
+
>
|
|
518
|
+
<SheetNavigation
|
|
519
|
+
open={open}
|
|
520
|
+
gap={knobProps.gap.gap}
|
|
521
|
+
fill={fill}
|
|
522
|
+
root={
|
|
523
|
+
fill ? (
|
|
524
|
+
<>
|
|
525
|
+
{header ? <RNView style={nonShrinking}>{header}</RNView> : null}
|
|
526
|
+
<RNView testID="sheet-modal-body" style={fillSlot}>
|
|
527
|
+
{scrollable ? (
|
|
528
|
+
<RNScrollView
|
|
529
|
+
testID="sheet-modal-scroll"
|
|
530
|
+
style={fillSlot}
|
|
531
|
+
keyboardShouldPersistTaps="handled"
|
|
532
|
+
>
|
|
533
|
+
{children}
|
|
534
|
+
</RNScrollView>
|
|
535
|
+
) : (
|
|
536
|
+
children
|
|
537
|
+
)}
|
|
538
|
+
</RNView>
|
|
539
|
+
</>
|
|
540
|
+
) : (
|
|
541
|
+
<>
|
|
542
|
+
{header}
|
|
543
|
+
{scrollable ? (
|
|
544
|
+
<RNScrollView
|
|
545
|
+
testID="sheet-modal-scroll"
|
|
546
|
+
style={{ flexGrow: 0 }}
|
|
547
|
+
keyboardShouldPersistTaps="handled"
|
|
548
|
+
>
|
|
549
|
+
{children}
|
|
550
|
+
</RNScrollView>
|
|
551
|
+
) : (
|
|
552
|
+
children
|
|
553
|
+
)}
|
|
554
|
+
</>
|
|
555
|
+
)
|
|
556
|
+
}
|
|
557
|
+
/>
|
|
558
|
+
</YStack>
|
|
559
|
+
</Surface>
|
|
560
|
+
</DialogRegionContext.Provider>
|
|
561
|
+
</YStack>
|
|
523
562
|
</YStack>
|
|
524
563
|
</Animated.View>
|
|
525
564
|
</RNView>
|
package/src/SheetModal/index.tsx
CHANGED
|
@@ -16,6 +16,7 @@ import { isWeb, Sheet, View, useWindowDimensions } from "tamagui";
|
|
|
16
16
|
import { DialogRegionContext, SheetFrame } from "../surfaces";
|
|
17
17
|
import { largeDetentRatio, resolveWebSnap } from "./detents";
|
|
18
18
|
import { SheetHeader } from "./SheetHeader";
|
|
19
|
+
import { SheetNavigation } from "./SheetNavigation";
|
|
19
20
|
import { useSheetFrameFocus } from "./useSheetFrameFocus";
|
|
20
21
|
|
|
21
22
|
export interface SheetModalProps {
|
|
@@ -154,26 +155,38 @@ export function SheetModal({
|
|
|
154
155
|
>
|
|
155
156
|
<DialogRegionContext.Provider value={IN_DIALOG_REGION}>
|
|
156
157
|
<OverlayStackProvider zIndex={sheetZIndex}>
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
158
|
+
<SheetNavigation
|
|
159
|
+
open={open}
|
|
160
|
+
gap={knobProps.gap.gap}
|
|
161
|
+
fill={fill}
|
|
162
|
+
root={
|
|
163
|
+
<>
|
|
164
|
+
{header ? (
|
|
165
|
+
<View
|
|
166
|
+
id={headerActions ? undefined : titleId}
|
|
167
|
+
{...(fill ? nonShrinking : null)}
|
|
168
|
+
>
|
|
169
|
+
{header}
|
|
170
|
+
</View>
|
|
171
|
+
) : null}
|
|
172
|
+
{fill ? (
|
|
173
|
+
<View testID="sheet-modal-body" {...fillSlot}>
|
|
174
|
+
{scrollable ? (
|
|
175
|
+
<Sheet.ScrollView testID="sheet-modal-scroll" {...fillSlot}>
|
|
176
|
+
{children}
|
|
177
|
+
</Sheet.ScrollView>
|
|
178
|
+
) : (
|
|
179
|
+
children
|
|
180
|
+
)}
|
|
181
|
+
</View>
|
|
182
|
+
) : scrollable ? (
|
|
183
|
+
<Sheet.ScrollView testID="sheet-modal-scroll">{children}</Sheet.ScrollView>
|
|
184
|
+
) : (
|
|
185
|
+
children
|
|
186
|
+
)}
|
|
187
|
+
</>
|
|
188
|
+
}
|
|
189
|
+
/>
|
|
177
190
|
<View
|
|
178
191
|
style={{ height: "env(safe-area-inset-bottom)" }}
|
|
179
192
|
{...(fill ? nonShrinking : null)}
|
|
@@ -88,12 +88,12 @@ const baseItems: TabsItem[] = [
|
|
|
88
88
|
export const Underline: Story = {
|
|
89
89
|
name: "Main",
|
|
90
90
|
args: { variant: "underline" },
|
|
91
|
-
render: (args) => <Tabs items={baseItems}
|
|
91
|
+
render: (args) => <Tabs {...args} items={baseItems} />,
|
|
92
92
|
};
|
|
93
93
|
|
|
94
94
|
export const Contained: Story = {
|
|
95
95
|
args: { variant: "contained" },
|
|
96
|
-
render: (args) => <Tabs items={baseItems.slice(0, 3)}
|
|
96
|
+
render: (args) => <Tabs {...args} items={baseItems.slice(0, 3)} />,
|
|
97
97
|
};
|
|
98
98
|
|
|
99
99
|
export const Intents: Story = {
|
|
@@ -148,13 +148,13 @@ describe("Tooltip content rides the border, elevation and animation knobs", () =
|
|
|
148
148
|
return measured;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
it("follows each stop on the mounted bubble
|
|
151
|
+
it("follows each stop on the mounted bubble; none keeps only the light hairline edge (LC-85, FZ-8116)", async () => {
|
|
152
152
|
const none = await measure(stops[0]);
|
|
153
153
|
const small = await measure(stops[1]);
|
|
154
154
|
const large = await measure(stops[2]);
|
|
155
155
|
expect(none).toEqual({
|
|
156
156
|
mounted: true,
|
|
157
|
-
border: "_btw-
|
|
157
|
+
border: "_btw-1px",
|
|
158
158
|
shadow: undefined,
|
|
159
159
|
transition: undefined,
|
|
160
160
|
});
|
package/src/appShell/TabBar.tsx
CHANGED
|
@@ -39,6 +39,11 @@ export interface TabBarItem {
|
|
|
39
39
|
/** One short word. It never wraps or ellipsizes; it shrinks to 9pt at most. */
|
|
40
40
|
label: string;
|
|
41
41
|
icon: TabBarIcon;
|
|
42
|
+
/**
|
|
43
|
+
* The SF Symbols the system tab bar draws on iOS (TabHost). Without them
|
|
44
|
+
* on every item, iOS keeps the MPO TabBar.
|
|
45
|
+
*/
|
|
46
|
+
nativeIcon?: { sfSymbol: string; sfSymbolSelected?: string };
|
|
42
47
|
}
|
|
43
48
|
|
|
44
49
|
export interface TabBarProps {
|