@multiplatform.one/components 7.65.2 → 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.cjs +15 -2
- package/dist/cjs/Carousel/index.native.js +19 -4
- 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.cjs +6 -7
- package/dist/cjs/ContextMenu/index.native.js +6 -7
- 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 +11 -9
- package/dist/cjs/DropdownMenu/index.native.js +11 -9
- 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.cjs +59 -0
- package/dist/cjs/Lightbox/MediaControl.native.js +64 -0
- package/dist/cjs/Lightbox/MediaControl.native.js.map +1 -0
- package/dist/cjs/Lightbox/index.cjs +334 -0
- package/dist/cjs/Lightbox/index.gnome.cjs +32 -0
- package/dist/cjs/Lightbox/index.gnome.native.js +35 -0
- package/dist/cjs/Lightbox/index.gnome.native.js.map +1 -0
- package/dist/cjs/Lightbox/index.native.js +530 -0
- package/dist/cjs/Lightbox/index.native.js.map +1 -0
- package/dist/cjs/Lightbox/shared.cjs +84 -0
- package/dist/cjs/Lightbox/shared.native.js +89 -0
- package/dist/cjs/Lightbox/shared.native.js.map +1 -0
- package/dist/cjs/Lightbox/useLightbox.cjs +44 -0
- package/dist/cjs/Lightbox/useLightbox.native.js +53 -0
- package/dist/cjs/Lightbox/useLightbox.native.js.map +1 -0
- package/dist/cjs/Material/index.cjs +1 -0
- package/dist/cjs/Material/index.native.js +1 -0
- 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.cjs +1 -1
- package/dist/cjs/TreeSelect/index.native.js +2 -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/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.cjs +10 -1
- package/dist/cjs/componentColors.native.js +10 -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.cjs +2 -1
- package/dist/cjs/images/Image/index.native.js +3 -2
- package/dist/cjs/images/Image/index.native.js.map +1 -1
- package/dist/cjs/images/Image/mediaRadius.cjs +29 -0
- package/dist/cjs/images/Image/mediaRadius.native.js +32 -0
- package/dist/cjs/images/Image/mediaRadius.native.js.map +1 -0
- package/dist/cjs/images/Image/shared.cjs +2 -0
- package/dist/cjs/images/Image/shared.native.js +3 -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.cjs +3 -0
- package/dist/cjs/index.native.js +37 -34
- 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 +92 -23
- package/dist/cjs/views/ImageGrid.native.js +86 -24
- 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/Accordion/index.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/AnimateHeight/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/Badge/index.native.js.map +1 -1
- package/dist/esm/Button.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/Carousel/index.mjs +15 -2
- package/dist/esm/Carousel/index.mjs.map +1 -1
- package/dist/esm/Carousel/index.native.js +17 -2
- package/dist/esm/Carousel/index.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/Collapsible.native.js.map +1 -1
- package/dist/esm/ContextMenu/index.mjs +7 -8
- package/dist/esm/ContextMenu/index.mjs.map +1 -1
- package/dist/esm/ContextMenu/index.native.js +7 -8
- package/dist/esm/ContextMenu/index.native.js.map +1 -1
- package/dist/esm/CopyField/index.native.js.map +1 -1
- package/dist/esm/Dialog.native.js.map +1 -1
- package/dist/esm/DotIndicator/index.native.js.map +1 -1
- package/dist/esm/DropdownMenu/index.mjs +12 -10
- package/dist/esm/DropdownMenu/index.mjs.map +1 -1
- package/dist/esm/DropdownMenu/index.native.js +12 -10
- package/dist/esm/DropdownMenu/index.native.js.map +1 -1
- package/dist/esm/DropdownMenu/menuSettle.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/Kbd/index.native.js.map +1 -1
- package/dist/esm/Kbd/keys.native.js.map +1 -1
- package/dist/esm/Lightbox/MediaControl.mjs +34 -0
- package/dist/esm/Lightbox/MediaControl.mjs.map +1 -0
- package/dist/esm/Lightbox/MediaControl.native.js +36 -0
- package/dist/esm/Lightbox/MediaControl.native.js.map +1 -0
- package/dist/esm/Lightbox/index.gnome.mjs +6 -0
- package/dist/esm/Lightbox/index.gnome.mjs.map +1 -0
- package/dist/esm/Lightbox/index.gnome.native.js +6 -0
- package/dist/esm/Lightbox/index.gnome.native.js.map +1 -0
- package/dist/esm/Lightbox/index.mjs +308 -0
- package/dist/esm/Lightbox/index.mjs.map +1 -0
- package/dist/esm/Lightbox/index.native.js +501 -0
- package/dist/esm/Lightbox/index.native.js.map +1 -0
- package/dist/esm/Lightbox/shared.mjs +48 -0
- package/dist/esm/Lightbox/shared.mjs.map +1 -0
- package/dist/esm/Lightbox/shared.native.js +50 -0
- package/dist/esm/Lightbox/shared.native.js.map +1 -0
- package/dist/esm/Lightbox/useLightbox.mjs +19 -0
- package/dist/esm/Lightbox/useLightbox.mjs.map +1 -0
- package/dist/esm/Lightbox/useLightbox.native.js +25 -0
- package/dist/esm/Lightbox/useLightbox.native.js.map +1 -0
- package/dist/esm/Material/index.mjs +1 -1
- package/dist/esm/Material/index.mjs.map +1 -1
- package/dist/esm/Material/index.native.js +1 -1
- package/dist/esm/Material/index.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.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/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.native.js.map +1 -1
- package/dist/esm/SheetModal/SheetHeader.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/detents.native.js.map +1 -1
- 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/SheetModal/useSheetFrameFocus.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/nativePress.native.js.map +1 -1
- package/dist/esm/Tooltip/tooltipShared.native.js.map +1 -1
- package/dist/esm/TreeSelect/index.mjs +2 -2
- package/dist/esm/TreeSelect/index.mjs.map +1 -1
- package/dist/esm/TreeSelect/index.native.js +2 -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/DangerSection.native.js.map +1 -1
- package/dist/esm/actions/DestructiveAction.native.js.map +1 -1
- package/dist/esm/actions/HeaderActions.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/BottomAccessory.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.mjs.map +1 -1
- package/dist/esm/appShell/TabBar.native.js.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/appTile.native.js.map +1 -1
- package/dist/esm/appShell/bottomChrome.native.js.map +1 -1
- 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/charts/Axis.native.js.map +1 -1
- package/dist/esm/charts/BarChart.native.js.map +1 -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.mjs +10 -1
- package/dist/esm/componentColors.mjs.map +1 -1
- package/dist/esm/componentColors.native.js +10 -1
- package/dist/esm/componentColors.native.js.map +1 -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/formLayouts/FormLayouts.native.js.map +1 -1
- package/dist/esm/formLayouts/PreferencePanel.native.js.map +1 -1
- package/dist/esm/formLayouts/index.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/hooks/useHoldCue.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/framing.native.js.map +1 -1
- package/dist/esm/images/Image/index.mjs +3 -2
- package/dist/esm/images/Image/index.mjs.map +1 -1
- package/dist/esm/images/Image/index.native.js +3 -2
- package/dist/esm/images/Image/index.native.js.map +1 -1
- package/dist/esm/images/Image/mediaRadius.mjs +4 -0
- package/dist/esm/images/Image/mediaRadius.mjs.map +1 -0
- package/dist/esm/images/Image/mediaRadius.native.js +4 -0
- package/dist/esm/images/Image/mediaRadius.native.js.map +1 -0
- package/dist/esm/images/Image/shared.mjs +2 -1
- package/dist/esm/images/Image/shared.mjs.map +1 -1
- package/dist/esm/images/Image/shared.native.js +2 -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.mjs +2 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +2 -1
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/knobImmuneExports.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/Debug/index.native.js.map +1 -1
- package/dist/esm/layouts/EmptyState.native.js.map +1 -1
- package/dist/esm/layouts/IdentityPlate.native.js.map +1 -1
- package/dist/esm/layouts/KeyboardAvoidingWrapper/behavior.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/PaneScaffold.native.js.map +1 -1
- package/dist/esm/layouts/SafeAreaWrapper/insets.native.js.map +1 -1
- package/dist/esm/layouts/StatusDot.native.js.map +1 -1
- package/dist/esm/layouts/ViewSwitcher.native.js.map +1 -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.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/pageHeadingScope.native.js.map +1 -1
- package/dist/esm/layouts/screenScroll.native.js.map +1 -1
- package/dist/esm/layouts/shellSidebarSlot.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/tags.native.js.map +1 -1
- package/dist/esm/layouts/timeline.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/shared/actionScan.native.js.map +1 -1
- package/dist/esm/shared/i18n.native.js.map +1 -1
- package/dist/esm/shared/restoreRetries.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.native.js.map +1 -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.mjs +79 -23
- package/dist/esm/views/ImageGrid.mjs.map +1 -1
- package/dist/esm/views/ImageGrid.native.js +83 -23
- package/dist/esm/views/ImageGrid.native.js.map +1 -1
- package/dist/esm/views/List.native.js.map +1 -1
- package/dist/esm/views/ListGroup.native.js.map +1 -1
- package/dist/esm/views/ListRow.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/ShortcutCard.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.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/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/esm/views/widgetChrome.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/Carousel/index.mjs +15 -2
- package/dist/jsx/Carousel/index.mjs.map +1 -1
- package/dist/jsx/Carousel/index.native.js +17 -2
- package/dist/jsx/Carousel/index.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/ContextMenu/index.mjs +7 -8
- package/dist/jsx/ContextMenu/index.mjs.map +1 -1
- package/dist/jsx/ContextMenu/index.native.js +6 -7
- package/dist/jsx/ContextMenu/index.native.js.map +1 -1
- package/dist/jsx/DropdownMenu/index.mjs +12 -10
- package/dist/jsx/DropdownMenu/index.mjs.map +1 -1
- package/dist/jsx/DropdownMenu/index.native.js +11 -9
- package/dist/jsx/DropdownMenu/index.native.js.map +1 -1
- package/dist/jsx/Lightbox/MediaControl.mjs +34 -0
- package/dist/jsx/Lightbox/MediaControl.mjs.map +1 -0
- package/dist/jsx/Lightbox/MediaControl.native.js +64 -0
- package/dist/jsx/Lightbox/MediaControl.native.js.map +1 -0
- package/dist/jsx/Lightbox/index.gnome.mjs +6 -0
- package/dist/jsx/Lightbox/index.gnome.mjs.map +1 -0
- package/dist/jsx/Lightbox/index.gnome.native.js +35 -0
- package/dist/jsx/Lightbox/index.gnome.native.js.map +1 -0
- package/dist/jsx/Lightbox/index.mjs +308 -0
- package/dist/jsx/Lightbox/index.mjs.map +1 -0
- package/dist/jsx/Lightbox/index.native.js +530 -0
- package/dist/jsx/Lightbox/index.native.js.map +1 -0
- package/dist/jsx/Lightbox/shared.mjs +48 -0
- package/dist/jsx/Lightbox/shared.mjs.map +1 -0
- package/dist/jsx/Lightbox/shared.native.js +89 -0
- package/dist/jsx/Lightbox/shared.native.js.map +1 -0
- package/dist/jsx/Lightbox/useLightbox.mjs +19 -0
- package/dist/jsx/Lightbox/useLightbox.mjs.map +1 -0
- package/dist/jsx/Lightbox/useLightbox.native.js +53 -0
- package/dist/jsx/Lightbox/useLightbox.native.js.map +1 -0
- package/dist/jsx/Material/index.mjs +1 -1
- package/dist/jsx/Material/index.mjs.map +1 -1
- package/dist/jsx/Material/index.native.js +1 -0
- package/dist/jsx/Material/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/TreeSelect/index.mjs +2 -2
- package/dist/jsx/TreeSelect/index.mjs.map +1 -1
- package/dist/jsx/TreeSelect/index.native.js +1 -1
- package/dist/jsx/TreeSelect/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/componentColors.mjs +10 -1
- package/dist/jsx/componentColors.mjs.map +1 -1
- package/dist/jsx/componentColors.native.js +10 -1
- package/dist/jsx/componentColors.native.js.map +1 -1
- package/dist/jsx/images/Image/index.mjs +3 -2
- package/dist/jsx/images/Image/index.mjs.map +1 -1
- package/dist/jsx/images/Image/index.native.js +2 -1
- package/dist/jsx/images/Image/index.native.js.map +1 -1
- package/dist/jsx/images/Image/mediaRadius.mjs +4 -0
- package/dist/jsx/images/Image/mediaRadius.mjs.map +1 -0
- package/dist/jsx/images/Image/mediaRadius.native.js +32 -0
- package/dist/jsx/images/Image/mediaRadius.native.js.map +1 -0
- package/dist/jsx/images/Image/shared.mjs +2 -1
- package/dist/jsx/images/Image/shared.mjs.map +1 -1
- package/dist/jsx/images/Image/shared.native.js +2 -0
- package/dist/jsx/images/Image/shared.native.js.map +1 -1
- package/dist/jsx/index.js +2 -1
- package/dist/jsx/index.js.map +1 -1
- package/dist/jsx/index.mjs +2 -1
- package/dist/jsx/index.mjs.map +1 -1
- package/dist/jsx/index.native.js +3 -0
- package/dist/jsx/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 +79 -23
- package/dist/jsx/views/ImageGrid.mjs.map +1 -1
- package/dist/jsx/views/ImageGrid.native.js +85 -23
- 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/Carousel/Carousel.native.spec.tsx +4 -0
- package/src/Carousel/index.tsx +21 -0
- package/src/Chip/Chip.spec.tsx +72 -1
- package/src/Chip/index.tsx +86 -7
- package/src/ContextMenu/ContextMenu.spec.tsx +3 -2
- package/src/ContextMenu/index.tsx +13 -7
- package/src/DropdownMenu/DropdownMenu.avatarTrigger.spec.tsx +62 -0
- package/src/DropdownMenu/DropdownMenu.spec.tsx +13 -2
- package/src/DropdownMenu/DropdownMenu.stories.tsx +86 -0
- package/src/DropdownMenu/index.tsx +21 -10
- package/src/Lightbox/Lightbox.spec.tsx +127 -0
- package/src/Lightbox/Lightbox.stories.tsx +108 -0
- package/src/Lightbox/MediaControl.tsx +44 -0
- package/src/Lightbox/index.gnome.tsx +12 -0
- package/src/Lightbox/index.native.tsx +484 -0
- package/src/Lightbox/index.tsx +304 -0
- package/src/Lightbox/shared.spec.ts +78 -0
- package/src/Lightbox/shared.ts +100 -0
- package/src/Lightbox/useLightbox.ts +21 -0
- package/src/Material/index.tsx +1 -1
- 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/TreeSelect/index.tsx +2 -1
- 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/checkedRow.spec.tsx +146 -0
- package/src/code/Pre/Pre.stories.tsx +13 -0
- package/src/componentColors.ts +10 -0
- package/src/icons/nativeIconInk.dark.spec.tsx +159 -0
- package/src/images/Image/index.native.tsx +3 -1
- package/src/images/Image/index.tsx +8 -2
- package/src/images/Image/mediaRadius.ts +8 -0
- package/src/images/Image/shared.ts +2 -0
- package/src/index.ts +2 -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.spec.tsx +33 -0
- package/src/views/ImageGrid.stories.tsx +4 -13
- package/src/views/ImageGrid.tsx +83 -33
- 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/Carousel/index.d.ts +8 -1
- package/types/Carousel/index.d.ts.map +1 -1
- package/types/Chip/index.d.ts +38 -3
- package/types/Chip/index.d.ts.map +1 -1
- package/types/ContextMenu/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/Lightbox/MediaControl.d.ts +13 -0
- package/types/Lightbox/MediaControl.d.ts.map +1 -0
- package/types/Lightbox/index.d.ts +14 -0
- package/types/Lightbox/index.d.ts.map +1 -0
- package/types/Lightbox/index.gnome.d.ts +9 -0
- package/types/Lightbox/index.gnome.d.ts.map +1 -0
- package/types/Lightbox/index.native.d.ts +13 -0
- package/types/Lightbox/index.native.d.ts.map +1 -0
- package/types/Lightbox/shared.d.ts +61 -0
- package/types/Lightbox/shared.d.ts.map +1 -0
- package/types/Lightbox/useLightbox.d.ts +11 -0
- package/types/Lightbox/useLightbox.d.ts.map +1 -0
- package/types/Material/index.d.ts +1 -0
- package/types/Material/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/TreeSelect/index.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/componentColors.d.ts +9 -0
- package/types/componentColors.d.ts.map +1 -1
- package/types/images/Image/index.d.ts.map +1 -1
- package/types/images/Image/index.native.d.ts.map +1 -1
- package/types/images/Image/mediaRadius.d.ts +7 -0
- package/types/images/Image/mediaRadius.d.ts.map +1 -0
- package/types/images/Image/shared.d.ts +1 -0
- package/types/images/Image/shared.d.ts.map +1 -1
- package/types/index.d.ts +2 -0
- package/types/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 +26 -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
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TabHost, native arm (FZ-8105): the system tab bar (UITabBarController on
|
|
3
|
+
* iOS, so iOS 26 Liquid Glass) through react-native-screens' Tabs.
|
|
4
|
+
*
|
|
5
|
+
* The routed screen stays the app's own: the host only frames it. It sits
|
|
6
|
+
* in the focused tab's screen, and a tab press asks the app to navigate
|
|
7
|
+
* (controlled tabs), so routing never moves into a tab navigator and web,
|
|
8
|
+
* SSR and GNOME keep the same routes. A pushed screen keeps the last tab
|
|
9
|
+
* focused with the bar hidden, so pushing does not remount the screen.
|
|
10
|
+
*
|
|
11
|
+
* The native view ships in react-native-screens' binary half, so it is
|
|
12
|
+
* feature-detected before react-native-screens' Tabs is required: a binary
|
|
13
|
+
* without RNSTabsHost, a platform other than iOS, or an item without an SF
|
|
14
|
+
* Symbol keeps the MPO TabBar. Android stays on the MPO TabBar until the
|
|
15
|
+
* items carry image icons the Material bar can draw.
|
|
16
|
+
*/
|
|
17
|
+
import { useGlyphColor, useIdentityInkOnSurface } from "@multiplatform.one/theme";
|
|
18
|
+
import { type ComponentType, type ReactNode, useEffect, useRef, useState } from "react";
|
|
19
|
+
import { Platform, UIManager } from "react-native";
|
|
20
|
+
import { setBottomChromeInset } from "./bottomChrome";
|
|
21
|
+
import { useBottomInset } from "./bottomInset";
|
|
22
|
+
import { type TabBarItem, tabBarInactiveInk } from "./TabBar";
|
|
23
|
+
import { MpoTabHost, type TabHostProps } from "./TabHost";
|
|
24
|
+
|
|
25
|
+
export type { TabHostProps } from "./TabHost";
|
|
26
|
+
|
|
27
|
+
/** The Fabric components react-native-screens registers for its tabs. */
|
|
28
|
+
export const nativeTabsComponents = ["RNSTabsHost", "RNSTabsScreen"] as const;
|
|
29
|
+
|
|
30
|
+
/** Points the system tab bar covers above the home-indicator band. */
|
|
31
|
+
export const nativeTabBarHeight = 49;
|
|
32
|
+
|
|
33
|
+
type IconProp = { ios: { type: "sfSymbol"; name: string } };
|
|
34
|
+
|
|
35
|
+
export interface NativeTabs {
|
|
36
|
+
Host: ComponentType<{
|
|
37
|
+
children?: ReactNode;
|
|
38
|
+
tabBarHidden?: boolean;
|
|
39
|
+
tabBarTintColor?: string;
|
|
40
|
+
tabBarItemIconColor?: string;
|
|
41
|
+
tabBarItemIconColorActive?: string;
|
|
42
|
+
tabBarItemTitleFontColor?: string;
|
|
43
|
+
tabBarItemTitleFontColorActive?: string;
|
|
44
|
+
experimentalControlNavigationStateInJS?: boolean;
|
|
45
|
+
onNativeFocusChange?: (event: { nativeEvent: { tabKey: string } }) => void;
|
|
46
|
+
}>;
|
|
47
|
+
Screen: ComponentType<{
|
|
48
|
+
children?: ReactNode;
|
|
49
|
+
tabKey: string;
|
|
50
|
+
title?: string;
|
|
51
|
+
isFocused?: boolean;
|
|
52
|
+
icon?: IconProp;
|
|
53
|
+
selectedIcon?: IconProp["ios"];
|
|
54
|
+
tabBarItemAccessibilityLabel?: string;
|
|
55
|
+
tabBarItemTestID?: string;
|
|
56
|
+
}>;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export interface NativeTabsSources {
|
|
60
|
+
hasComponent: (name: string) => boolean;
|
|
61
|
+
screens: () => { Tabs?: NativeTabs };
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
const appSources: NativeTabsSources = {
|
|
65
|
+
hasComponent: (name) => UIManager.hasViewManagerConfig(name),
|
|
66
|
+
screens: () => require("react-native-screens"),
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
/** react-native-screens' Tabs, or null when this platform or binary cannot draw them. */
|
|
70
|
+
export function resolveNativeTabs(sources: NativeTabsSources, os: string): NativeTabs | null {
|
|
71
|
+
if (os !== "ios") return null;
|
|
72
|
+
try {
|
|
73
|
+
if (!nativeTabsComponents.every((name) => sources.hasComponent(name))) return null;
|
|
74
|
+
const tabs = sources.screens().Tabs;
|
|
75
|
+
return tabs?.Host && tabs.Screen ? tabs : null;
|
|
76
|
+
} catch {
|
|
77
|
+
return null;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
let cached: NativeTabs | null | undefined;
|
|
82
|
+
|
|
83
|
+
function loadNativeTabs(): NativeTabs | null {
|
|
84
|
+
if (cached === undefined) cached = resolveNativeTabs(appSources, Platform.OS);
|
|
85
|
+
return cached;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/** True when every item names the SF Symbol the system bar draws. */
|
|
89
|
+
export function itemsHaveNativeIcons(items: readonly TabBarItem[]): boolean {
|
|
90
|
+
return items.length > 0 && items.every((item) => Boolean(item.nativeIcon?.sfSymbol));
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function NativeTabHost({
|
|
94
|
+
tabs,
|
|
95
|
+
items,
|
|
96
|
+
activeKey,
|
|
97
|
+
onTabPress,
|
|
98
|
+
children,
|
|
99
|
+
}: TabHostProps & { tabs: NativeTabs }) {
|
|
100
|
+
const { Host, Screen } = tabs;
|
|
101
|
+
const accent = useIdentityInkOnSurface();
|
|
102
|
+
const ink = useGlyphColor(tabBarInactiveInk);
|
|
103
|
+
const deviceInset = useBottomInset();
|
|
104
|
+
const [id] = useState(() => Symbol("native-tab-host"));
|
|
105
|
+
const lastKey = useRef(activeKey ?? items[0]?.key);
|
|
106
|
+
if (activeKey) lastKey.current = activeKey;
|
|
107
|
+
const focusedKey = lastKey.current;
|
|
108
|
+
|
|
109
|
+
useEffect(() => {
|
|
110
|
+
setBottomChromeInset(id, activeKey ? nativeTabBarHeight + deviceInset : null);
|
|
111
|
+
}, [activeKey, deviceInset, id]);
|
|
112
|
+
useEffect(() => () => setBottomChromeInset(id, null), [id]);
|
|
113
|
+
|
|
114
|
+
return (
|
|
115
|
+
<Host
|
|
116
|
+
tabBarHidden={!activeKey}
|
|
117
|
+
tabBarTintColor={accent}
|
|
118
|
+
tabBarItemIconColor={ink}
|
|
119
|
+
tabBarItemIconColorActive={accent}
|
|
120
|
+
tabBarItemTitleFontColor={ink}
|
|
121
|
+
tabBarItemTitleFontColorActive={accent}
|
|
122
|
+
experimentalControlNavigationStateInJS
|
|
123
|
+
onNativeFocusChange={(event) => {
|
|
124
|
+
const key = event.nativeEvent.tabKey;
|
|
125
|
+
if (key !== activeKey) onTabPress(key);
|
|
126
|
+
}}
|
|
127
|
+
>
|
|
128
|
+
{items.map((item) => (
|
|
129
|
+
<Screen
|
|
130
|
+
key={item.key}
|
|
131
|
+
tabKey={item.key}
|
|
132
|
+
title={item.label}
|
|
133
|
+
isFocused={item.key === focusedKey}
|
|
134
|
+
icon={{ ios: { type: "sfSymbol", name: item.nativeIcon!.sfSymbol } }}
|
|
135
|
+
selectedIcon={
|
|
136
|
+
item.nativeIcon?.sfSymbolSelected
|
|
137
|
+
? { type: "sfSymbol", name: item.nativeIcon.sfSymbolSelected }
|
|
138
|
+
: undefined
|
|
139
|
+
}
|
|
140
|
+
tabBarItemAccessibilityLabel={item.label}
|
|
141
|
+
tabBarItemTestID={`tab-bar-item-${item.key.replace(/^\/+/, "") || "root"}`}
|
|
142
|
+
>
|
|
143
|
+
{item.key === focusedKey ? children : null}
|
|
144
|
+
</Screen>
|
|
145
|
+
))}
|
|
146
|
+
</Host>
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export function TabHost(props: TabHostProps) {
|
|
151
|
+
const tabs = loadNativeTabs();
|
|
152
|
+
if (!tabs || !itemsHaveNativeIcons(props.items)) return <MpoTabHost {...props} />;
|
|
153
|
+
return <NativeTabHost tabs={tabs} {...props} />;
|
|
154
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TabHost — an app's top-level sections, declared once (FZ-8105). The host
|
|
3
|
+
* wraps the routed screen and picks the tab bar for the platform: the
|
|
4
|
+
* phone's own tab bar where the binary has it (`TabHost.native.tsx`), the
|
|
5
|
+
* MPO floating TabBar everywhere else (web, GNOME, a binary without native
|
|
6
|
+
* tabs). An app hands over the same items on every platform and never
|
|
7
|
+
* branches on one.
|
|
8
|
+
*/
|
|
9
|
+
import type { ReactNode } from "react";
|
|
10
|
+
import { TabBar, type TabBarItem } from "./TabBar";
|
|
11
|
+
|
|
12
|
+
export interface TabHostProps {
|
|
13
|
+
items: readonly TabBarItem[];
|
|
14
|
+
/** The section the current route is the root of. Unset hides the bar (a pushed screen). */
|
|
15
|
+
activeKey?: string;
|
|
16
|
+
onTabPress: (key: string) => void;
|
|
17
|
+
/** Accessible name of the tab list. Default "Tabs". */
|
|
18
|
+
label?: string;
|
|
19
|
+
/** The routed screen. */
|
|
20
|
+
children: ReactNode;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export function MpoTabHost({ items, activeKey, onTabPress, label, children }: TabHostProps) {
|
|
24
|
+
return (
|
|
25
|
+
<>
|
|
26
|
+
{children}
|
|
27
|
+
{activeKey ? (
|
|
28
|
+
<TabBar items={items} activeKey={activeKey} onTabPress={onTabPress} label={label} />
|
|
29
|
+
) : null}
|
|
30
|
+
</>
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function TabHost(props: TabHostProps) {
|
|
35
|
+
return <MpoTabHost {...props} />;
|
|
36
|
+
}
|
package/src/appShell/index.ts
CHANGED
|
@@ -2,6 +2,7 @@ export * from "./SystemBar";
|
|
|
2
2
|
export * from "./ScopeMenu";
|
|
3
3
|
export * from "./Dock";
|
|
4
4
|
export * from "./TabBar";
|
|
5
|
+
export { TabHost, type TabHostProps } from "./TabHost";
|
|
5
6
|
export * from "./Springboard";
|
|
6
7
|
export type { AppEntry } from "./appTile";
|
|
7
8
|
export * from "./SettingsSplit";
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import type { ReactElement } from "react";
|
|
2
|
+
import { cleanup, fireEvent, waitFor } from "@testing-library/react";
|
|
3
|
+
import { afterEach, describe, expect, it } from "vitest";
|
|
4
|
+
import { renderWithProviders } from "@multiplatform.one/test-utils";
|
|
5
|
+
import { Button, Combobox, Select } from "@multiplatform.one/forms";
|
|
6
|
+
import { Theme } from "tamagui";
|
|
7
|
+
import { ContextMenu } from "./ContextMenu";
|
|
8
|
+
import { DropdownMenu } from "./DropdownMenu";
|
|
9
|
+
import { TreeSelect } from "./TreeSelect";
|
|
10
|
+
|
|
11
|
+
const schemes = ["light", "dark"] as const;
|
|
12
|
+
|
|
13
|
+
function inScheme(scheme: (typeof schemes)[number], ui: ReactElement) {
|
|
14
|
+
return renderWithProviders(<Theme name={scheme}>{ui}</Theme>);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function restFills(el: Element) {
|
|
18
|
+
return el.className
|
|
19
|
+
.toString()
|
|
20
|
+
.split(/\s+/)
|
|
21
|
+
.filter((c) => /^_bg-(?!0)/.test(c));
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function expectNoFill(el: Element | null | undefined) {
|
|
25
|
+
expect(el).toBeTruthy();
|
|
26
|
+
expect(restFills(el as Element).filter((c) => c !== "_bg-transparent")).toEqual([]);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
afterEach(cleanup);
|
|
30
|
+
|
|
31
|
+
describe("a checked menu or picker row draws no fill (LC-262, LC-172, FZ-8355)", () => {
|
|
32
|
+
for (const scheme of schemes) {
|
|
33
|
+
describe(scheme, () => {
|
|
34
|
+
it("DropdownMenu.CheckboxItem: check only, same rest surface as an unchecked row", async () => {
|
|
35
|
+
inScheme(
|
|
36
|
+
scheme,
|
|
37
|
+
<DropdownMenu defaultOpen>
|
|
38
|
+
<DropdownMenu.Trigger asChild>
|
|
39
|
+
<Button>Environment</Button>
|
|
40
|
+
</DropdownMenu.Trigger>
|
|
41
|
+
<DropdownMenu.Content aria-label="Environment">
|
|
42
|
+
<DropdownMenu.CheckboxItem checked>All</DropdownMenu.CheckboxItem>
|
|
43
|
+
<DropdownMenu.CheckboxItem checked={false}>production</DropdownMenu.CheckboxItem>
|
|
44
|
+
</DropdownMenu.Content>
|
|
45
|
+
</DropdownMenu>,
|
|
46
|
+
);
|
|
47
|
+
await waitFor(() => {
|
|
48
|
+
expect(document.querySelectorAll('[role="menuitemcheckbox"]').length).toBe(2);
|
|
49
|
+
});
|
|
50
|
+
const [checked, unchecked] = Array.from(
|
|
51
|
+
document.querySelectorAll<HTMLElement>('[role="menuitemcheckbox"]'),
|
|
52
|
+
);
|
|
53
|
+
expect(checked.getAttribute("aria-checked")).toBe("true");
|
|
54
|
+
expectNoFill(checked);
|
|
55
|
+
expectNoFill(unchecked);
|
|
56
|
+
expect(checked.getAttribute("data-mp-selected-fill")).toBe("transparent");
|
|
57
|
+
expect(checked.querySelector("[data-mp-check]")?.getAttribute("data-mp-check")).toBe(
|
|
58
|
+
"trailing",
|
|
59
|
+
);
|
|
60
|
+
expect(checked.className).toMatch(/_bg-0hover-color3/);
|
|
61
|
+
expect(checked.className).toMatch(/_bg-0active-color3/);
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
it("ContextMenu checked item", async () => {
|
|
65
|
+
inScheme(
|
|
66
|
+
scheme,
|
|
67
|
+
<ContextMenu defaultOpen items={[{ label: "Copy" }, { label: "Rename", checked: true }]}>
|
|
68
|
+
<Button>Target</Button>
|
|
69
|
+
</ContextMenu>,
|
|
70
|
+
);
|
|
71
|
+
await waitFor(() => {
|
|
72
|
+
expect(document.querySelector('[role="menuitemcheckbox"]')).toBeTruthy();
|
|
73
|
+
});
|
|
74
|
+
const checked = document.querySelector('[role="menuitemcheckbox"]');
|
|
75
|
+
expect(checked?.getAttribute("aria-checked")).toBe("true");
|
|
76
|
+
expectNoFill(checked);
|
|
77
|
+
});
|
|
78
|
+
|
|
79
|
+
it("Select chosen option", async () => {
|
|
80
|
+
const result = inScheme(
|
|
81
|
+
scheme,
|
|
82
|
+
<Select
|
|
83
|
+
aria-label="Tenant"
|
|
84
|
+
options={[
|
|
85
|
+
{ value: "corp", label: "corp" },
|
|
86
|
+
{ value: "ffx", label: "ffx" },
|
|
87
|
+
{ value: "hq", label: "hq" },
|
|
88
|
+
]}
|
|
89
|
+
defaultValue="ffx"
|
|
90
|
+
/>,
|
|
91
|
+
);
|
|
92
|
+
const trigger = result.getByTestId("select-trigger");
|
|
93
|
+
fireEvent.pointerDown(trigger);
|
|
94
|
+
fireEvent.mouseDown(trigger);
|
|
95
|
+
fireEvent.click(trigger);
|
|
96
|
+
const list = await result.findByTestId("select-dropdown");
|
|
97
|
+
const chosen = list.querySelector('[role="option"][aria-selected="true"]');
|
|
98
|
+
expect(chosen?.querySelector("svg")).toBeTruthy();
|
|
99
|
+
expectNoFill(chosen);
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
it("Combobox chosen option", async () => {
|
|
103
|
+
const result = inScheme(
|
|
104
|
+
scheme,
|
|
105
|
+
<Combobox
|
|
106
|
+
label="Environment"
|
|
107
|
+
options={[
|
|
108
|
+
{ value: "production", label: "production" },
|
|
109
|
+
{ value: "staging", label: "staging" },
|
|
110
|
+
]}
|
|
111
|
+
value="staging"
|
|
112
|
+
open
|
|
113
|
+
/>,
|
|
114
|
+
);
|
|
115
|
+
await waitFor(() => {
|
|
116
|
+
expect(
|
|
117
|
+
result.baseElement.querySelector('[role="option"][aria-selected="true"]'),
|
|
118
|
+
).toBeTruthy();
|
|
119
|
+
});
|
|
120
|
+
expectNoFill(result.baseElement.querySelector('[role="option"][aria-selected="true"]'));
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
it("TreeSelect selected node", async () => {
|
|
124
|
+
const result = inScheme(
|
|
125
|
+
scheme,
|
|
126
|
+
<TreeSelect
|
|
127
|
+
label="Account"
|
|
128
|
+
nodes={[
|
|
129
|
+
{ id: "assets", label: "Assets", children: [{ id: "cash", label: "Cash" }] },
|
|
130
|
+
{ id: "liabilities", label: "Liabilities" },
|
|
131
|
+
]}
|
|
132
|
+
value="liabilities"
|
|
133
|
+
open
|
|
134
|
+
defaultExpandedIds={["assets"]}
|
|
135
|
+
/>,
|
|
136
|
+
);
|
|
137
|
+
await waitFor(() => {
|
|
138
|
+
expect(
|
|
139
|
+
result.baseElement.querySelector('[data-treeselect-row="liabilities"]'),
|
|
140
|
+
).toBeTruthy();
|
|
141
|
+
});
|
|
142
|
+
expectNoFill(result.baseElement.querySelector('[data-treeselect-row="liabilities"]'));
|
|
143
|
+
});
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
});
|
|
@@ -29,6 +29,19 @@ export const Basic: Story = {
|
|
|
29
29
|
),
|
|
30
30
|
};
|
|
31
31
|
|
|
32
|
+
export const MonoWeights: Story = {
|
|
33
|
+
name: "Mono weights",
|
|
34
|
+
render: () => (
|
|
35
|
+
<Pre>
|
|
36
|
+
{(["400", "500", "600", "700", "800"] as const).map((weight) => (
|
|
37
|
+
<Text key={weight} fontFamily="$mono" fontWeight={weight}>
|
|
38
|
+
{weight} node-01.corp.example.com
|
|
39
|
+
</Text>
|
|
40
|
+
))}
|
|
41
|
+
</Pre>
|
|
42
|
+
),
|
|
43
|
+
};
|
|
44
|
+
|
|
32
45
|
export const MultilineCode: Story = {
|
|
33
46
|
render: () => (
|
|
34
47
|
<Pre>
|
package/src/componentColors.ts
CHANGED
|
@@ -129,6 +129,16 @@ export const componentColors = {
|
|
|
129
129
|
|
|
130
130
|
/** Debug indicator color */
|
|
131
131
|
debug: "$color9",
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* The round material plate under an icon control floating over a photo
|
|
135
|
+
* (LC-176). The fill sits steps above the viewer's dark ground so the
|
|
136
|
+
* plate reads on black as well as on a bright frame (FZ-8009 r2).
|
|
137
|
+
*/
|
|
138
|
+
mediaPlate: {
|
|
139
|
+
fill: "$color6",
|
|
140
|
+
glyph: "$color12",
|
|
141
|
+
},
|
|
132
142
|
} as const;
|
|
133
143
|
|
|
134
144
|
/**
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FZ-7680. On native a phosphor glyph has no CSS colour to inherit: given no
|
|
3
|
+
* colour, a token or `currentColor`, phosphor-react-native draws it black, and
|
|
4
|
+
* on the dark scheme that is a glyph nobody can see (the command palette's
|
|
5
|
+
* recents clocks on Clay's iPhone). The native bundle swaps phosphor's
|
|
6
|
+
* IconBase for MPO's theme-ink one; this renders the icon-bearing component
|
|
7
|
+
* stories through that same IconBase, on the dark theme, and fails on any
|
|
8
|
+
* glyph that would paint black.
|
|
9
|
+
*/
|
|
10
|
+
import { createDefaultThemeConfig } from "@multiplatform.one/theme";
|
|
11
|
+
import { isBlackPaint } from "@multiplatform.one/config/phosphor-native-probe";
|
|
12
|
+
import { ClockIcon } from "@phosphor-icons/react";
|
|
13
|
+
import { cleanup, render } from "@testing-library/react";
|
|
14
|
+
import type { ReactNode } from "react";
|
|
15
|
+
import { TamaguiProvider, useTheme } from "tamagui";
|
|
16
|
+
import { afterEach, describe, expect, it, vi } from "vitest";
|
|
17
|
+
import * as BadgeStories from "../Badge/Badge.stories";
|
|
18
|
+
import * as ChipStories from "../Chip/Chip.stories";
|
|
19
|
+
import * as DropdownMenuStories from "../DropdownMenu/DropdownMenu.stories";
|
|
20
|
+
import * as TabsStories from "../Tabs/Tabs.stories";
|
|
21
|
+
import * as TabBarStories from "../appShell/TabBar.stories";
|
|
22
|
+
import * as EmptyStateStories from "../layouts/EmptyState.stories";
|
|
23
|
+
import * as SidebarStories from "../layouts/Sidebar.stories";
|
|
24
|
+
import * as DashboardStories from "../views/Dashboard.stories";
|
|
25
|
+
import * as ListStories from "../views/List.stories";
|
|
26
|
+
import * as ShortcutCardStories from "../views/ShortcutCard.stories";
|
|
27
|
+
|
|
28
|
+
vi.mock("@phosphor-icons/react", async (importOriginal) => {
|
|
29
|
+
const [{ nativePhosphorModule }, { useTheme: useScopeTheme }] = await Promise.all([
|
|
30
|
+
import("@multiplatform.one/config/phosphor-native-probe"),
|
|
31
|
+
import("tamagui"),
|
|
32
|
+
]);
|
|
33
|
+
return nativePhosphorModule(await importOriginal<Record<string, unknown>>(), useScopeTheme);
|
|
34
|
+
});
|
|
35
|
+
vi.mock("@multiplatform.one/storybook", () => ({ action: () => () => undefined }));
|
|
36
|
+
vi.mock("tamagui", async (original) => ({
|
|
37
|
+
...(await original<typeof import("tamagui")>()),
|
|
38
|
+
isWeb: false,
|
|
39
|
+
}));
|
|
40
|
+
vi.mock("@multiplatform.one/forms", async (original) => ({
|
|
41
|
+
...(await original<typeof import("@multiplatform.one/forms")>()),
|
|
42
|
+
FloatingPanel: ({ children }: { children: ReactNode }) => <>{children}</>,
|
|
43
|
+
}));
|
|
44
|
+
|
|
45
|
+
const config = createDefaultThemeConfig();
|
|
46
|
+
afterEach(cleanup);
|
|
47
|
+
|
|
48
|
+
type StoryModule = Record<string, unknown> & {
|
|
49
|
+
default?: { component?: unknown; args?: Record<string, unknown> };
|
|
50
|
+
};
|
|
51
|
+
type Story = {
|
|
52
|
+
args?: Record<string, unknown>;
|
|
53
|
+
render?: (args: Record<string, unknown>, context: unknown) => ReactNode;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
function Dark({ children }: { children: ReactNode }) {
|
|
57
|
+
return (
|
|
58
|
+
<TamaguiProvider config={config.tamagui} defaultTheme="dark" disableInjectCSS>
|
|
59
|
+
{children}
|
|
60
|
+
</TamaguiProvider>
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function ThemeInk({ name }: { name: string }) {
|
|
65
|
+
const theme = useTheme() as unknown as Record<string, { val?: unknown } | undefined>;
|
|
66
|
+
return <span data-theme-ink={name} data-val={String(theme[name]?.val ?? "")} />;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
function storyElement(module: StoryModule, story: Story): ReactNode {
|
|
70
|
+
const args = { ...module.default?.args, ...story.args };
|
|
71
|
+
if (story.render) return story.render(args, { args, argTypes: {}, globals: {}, parameters: {} });
|
|
72
|
+
const Component = module.default?.component as ((props: object) => ReactNode) | undefined;
|
|
73
|
+
return Component ? <Component {...args} /> : null;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// Storybook mounts render() as a component, so a story's own hooks run inside one.
|
|
77
|
+
function StoryHost({ module, story }: { module: StoryModule; story: Story }) {
|
|
78
|
+
return <>{storyElement(module, story)}</>;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function glyphPaints(container: HTMLElement) {
|
|
82
|
+
return [...container.querySelectorAll<HTMLElement>("[data-native-icon]")].map((glyph) => ({
|
|
83
|
+
icon: glyph.dataset.nativeIcon,
|
|
84
|
+
paint: glyph.dataset.paint,
|
|
85
|
+
}));
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
const storyFiles: Record<string, StoryModule> = {
|
|
89
|
+
Badge: BadgeStories,
|
|
90
|
+
Chip: ChipStories,
|
|
91
|
+
DropdownMenu: DropdownMenuStories,
|
|
92
|
+
Tabs: TabsStories,
|
|
93
|
+
TabBar: TabBarStories,
|
|
94
|
+
EmptyState: EmptyStateStories,
|
|
95
|
+
Sidebar: SidebarStories,
|
|
96
|
+
Dashboard: DashboardStories,
|
|
97
|
+
List: ListStories,
|
|
98
|
+
ShortcutCard: ShortcutCardStories,
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
const stories = Object.entries(storyFiles).flatMap(([file, module]) =>
|
|
102
|
+
Object.entries(module)
|
|
103
|
+
.filter(([name, story]) => name !== "default" && story && typeof story === "object")
|
|
104
|
+
.map(([name, story]) => [`${file}/${name}`, module, story as Story] as const),
|
|
105
|
+
);
|
|
106
|
+
|
|
107
|
+
describe("no phosphor glyph paints black on native in dark mode (FZ-7680)", () => {
|
|
108
|
+
it("a glyph with no colour, a token or currentColor paints the theme's ink", () => {
|
|
109
|
+
const { container } = render(
|
|
110
|
+
<Dark>
|
|
111
|
+
<ClockIcon size={16} />
|
|
112
|
+
<ClockIcon size={16} color={undefined} />
|
|
113
|
+
<ClockIcon size={16} color="currentColor" />
|
|
114
|
+
<ClockIcon size={16} color="$color12" />
|
|
115
|
+
<ClockIcon size={16} color="$textMuted" />
|
|
116
|
+
<ClockIcon size={16} color="$notAThemeKey" />
|
|
117
|
+
<ThemeInk name="color" />
|
|
118
|
+
<ThemeInk name="color12" />
|
|
119
|
+
<ThemeInk name="textMuted" />
|
|
120
|
+
</Dark>,
|
|
121
|
+
);
|
|
122
|
+
const ink = (name: string) =>
|
|
123
|
+
container.querySelector(`[data-theme-ink="${name}"]`)?.getAttribute("data-val");
|
|
124
|
+
const paints = glyphPaints(container).map((glyph) => glyph.paint);
|
|
125
|
+
expect(paints).toEqual([
|
|
126
|
+
ink("color"),
|
|
127
|
+
ink("color"),
|
|
128
|
+
ink("color"),
|
|
129
|
+
ink("color12"),
|
|
130
|
+
ink("textMuted"),
|
|
131
|
+
ink("color"),
|
|
132
|
+
]);
|
|
133
|
+
for (const paint of paints) expect(isBlackPaint(paint), paint).toBe(false);
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
it("the icon-bearing stories render glyphs at all", () => {
|
|
137
|
+
let total = 0;
|
|
138
|
+
for (const [, module, story] of stories) {
|
|
139
|
+
const { container, unmount } = render(
|
|
140
|
+
<Dark>
|
|
141
|
+
<StoryHost module={module} story={story} />
|
|
142
|
+
</Dark>,
|
|
143
|
+
);
|
|
144
|
+
total += glyphPaints(container).length;
|
|
145
|
+
unmount();
|
|
146
|
+
}
|
|
147
|
+
expect(total).toBeGreaterThan(stories.length);
|
|
148
|
+
});
|
|
149
|
+
|
|
150
|
+
it.each(stories)("%s paints no glyph black", (_name, module, story) => {
|
|
151
|
+
const { container } = render(
|
|
152
|
+
<Dark>
|
|
153
|
+
<StoryHost module={module} story={story} />
|
|
154
|
+
</Dark>,
|
|
155
|
+
);
|
|
156
|
+
const black = glyphPaints(container).filter((glyph) => isBlackPaint(glyph.paint));
|
|
157
|
+
expect(black).toEqual([]);
|
|
158
|
+
});
|
|
159
|
+
});
|
|
@@ -5,6 +5,7 @@ import { SvgUri } from "../SvgUri";
|
|
|
5
5
|
import { ImageFrame, mediaFillProps, type ImageStatus } from "./ImageFrame";
|
|
6
6
|
import {
|
|
7
7
|
ImageFramingContext,
|
|
8
|
+
MediaRadiusContext,
|
|
8
9
|
isSvgUri,
|
|
9
10
|
isThumbnailSize,
|
|
10
11
|
objectFitToResizeMode,
|
|
@@ -81,6 +82,7 @@ export function Image({
|
|
|
81
82
|
const hasSource = Boolean(imageUriSource) || Boolean(resolvedSrc) || typeof source === "number";
|
|
82
83
|
const thumbnail = size != null && (isThumbnailSize(size) || typeof size === "number");
|
|
83
84
|
const slotFraming = useContext(ImageFramingContext);
|
|
85
|
+
const tileRadius = useContext(MediaRadiusContext);
|
|
84
86
|
const isFramed = framed ?? slotFraming ?? thumbnail;
|
|
85
87
|
const objectFit = objectFitProp ?? (fill || thumbnail ? "cover" : undefined);
|
|
86
88
|
const style = useStyle({ width, height, aspectRatio: aspectRatioProp, ...props } as ViewProps);
|
|
@@ -166,7 +168,7 @@ export function Image({
|
|
|
166
168
|
width={width}
|
|
167
169
|
height={height}
|
|
168
170
|
aspectRatio={aspectRatioProp ?? aspectRatio}
|
|
169
|
-
borderRadius={borderRadius}
|
|
171
|
+
borderRadius={borderRadius ?? tileRadius}
|
|
170
172
|
objectFit={objectFit}
|
|
171
173
|
objectPosition={objectPosition}
|
|
172
174
|
onPress={onPress}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { useCallback, useContext, useEffect, useState } from "react";
|
|
2
2
|
import { Image as TamaguiImage } from "tamagui";
|
|
3
3
|
import { ImageFrame, mediaFillProps, type ImageStatus } from "./ImageFrame";
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
ImageFramingContext,
|
|
6
|
+
MediaRadiusContext,
|
|
7
|
+
isThumbnailSize,
|
|
8
|
+
useResolvedImageSource,
|
|
9
|
+
} from "./shared";
|
|
5
10
|
import type { ImageProps } from "./types";
|
|
6
11
|
|
|
7
12
|
export type { ImageProps } from "./types";
|
|
@@ -54,6 +59,7 @@ export function Image({
|
|
|
54
59
|
const hasSource = Boolean(resolvedSrc) || typeof source === "number";
|
|
55
60
|
const thumbnail = size != null && (isThumbnailSize(size) || typeof size === "number");
|
|
56
61
|
const slotFraming = useContext(ImageFramingContext);
|
|
62
|
+
const tileRadius = useContext(MediaRadiusContext);
|
|
57
63
|
const isFramed = framed ?? slotFraming ?? thumbnail;
|
|
58
64
|
const objectFit = objectFitProp ?? (fill || thumbnail ? "cover" : undefined);
|
|
59
65
|
const loading = priority ? "eager" : (loadingProp ?? "lazy");
|
|
@@ -93,7 +99,7 @@ export function Image({
|
|
|
93
99
|
width={width}
|
|
94
100
|
height={height}
|
|
95
101
|
aspectRatio={aspectRatio}
|
|
96
|
-
borderRadius={borderRadius}
|
|
102
|
+
borderRadius={borderRadius ?? tileRadius}
|
|
97
103
|
objectFit={objectFit}
|
|
98
104
|
objectPosition={objectPosition}
|
|
99
105
|
onPress={onPress}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { createContext } from "react";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* A media tile that owns a corner radius (an ImageGrid tile) provides it, so
|
|
5
|
+
* the photo inside rounds every corner at the tile's radius even when a
|
|
6
|
+
* caption sits under it. An explicit `borderRadius` prop still wins.
|
|
7
|
+
*/
|
|
8
|
+
export const MediaRadiusContext = createContext<string | number | undefined>(undefined);
|
|
@@ -5,6 +5,8 @@ import type { ImageThumbnailSize } from "./types";
|
|
|
5
5
|
|
|
6
6
|
export { ImageFramingContext } from "./framing";
|
|
7
7
|
|
|
8
|
+
export { MediaRadiusContext } from "./mediaRadius";
|
|
9
|
+
|
|
8
10
|
export function isThumbnailSize(size: unknown): size is ImageThumbnailSize {
|
|
9
11
|
return size === "extraSmall" || size === "small" || size === "medium" || size === "large";
|
|
10
12
|
}
|
package/src/index.ts
CHANGED
|
@@ -23,6 +23,8 @@ export * from "./DropdownMenu";
|
|
|
23
23
|
export * from "./ContextMenu";
|
|
24
24
|
export * from "./Material";
|
|
25
25
|
export * from "./Meter";
|
|
26
|
+
export { Lightbox, useLightbox } from "./Lightbox";
|
|
27
|
+
export type { LightboxItem, LightboxProps } from "./Lightbox";
|
|
26
28
|
export * from "./ProgressSteps";
|
|
27
29
|
export * from "./TreeSelect";
|
|
28
30
|
export * from "./Quote";
|
|
@@ -12,6 +12,7 @@ import { Badge } from "../Badge";
|
|
|
12
12
|
import { Text as HouseText } from "../Text";
|
|
13
13
|
import {
|
|
14
14
|
AsyncBoundary,
|
|
15
|
+
AsyncSkeleton,
|
|
15
16
|
resolveAsyncStatus,
|
|
16
17
|
useAsyncCount,
|
|
17
18
|
__resetAsyncDevWarnSeen,
|
|
@@ -287,7 +288,7 @@ describe("AsyncBoundary Retry label weight (MPO-48 / R7)", () => {
|
|
|
287
288
|
});
|
|
288
289
|
|
|
289
290
|
describe("AsyncBoundary layout skeletons", () => {
|
|
290
|
-
it.each(["list", "table", "kanban", "dashboard", "generic"] as const)(
|
|
291
|
+
it.each(["list", "table", "kanban", "dashboard", "detail", "generic"] as const)(
|
|
291
292
|
"renders %s skeleton",
|
|
292
293
|
(layout) => {
|
|
293
294
|
renderWithProviders(<AsyncBoundary loading layout={layout} />);
|
|
@@ -295,3 +296,25 @@ describe("AsyncBoundary layout skeletons", () => {
|
|
|
295
296
|
},
|
|
296
297
|
);
|
|
297
298
|
});
|
|
299
|
+
|
|
300
|
+
describe("AsyncSkeleton detail layout (FZ-8000)", () => {
|
|
301
|
+
afterEach(cleanup);
|
|
302
|
+
|
|
303
|
+
it("stands in for a record page: hero band, identity, tabs and body", () => {
|
|
304
|
+
renderWithProviders(<AsyncSkeleton layout="detail" hero={{ height: 250, art: 220 }} />);
|
|
305
|
+
const root = document.querySelector('[data-async-skeleton="detail"]') as HTMLElement;
|
|
306
|
+
expect(root.getAttribute("aria-busy")).toBe("true");
|
|
307
|
+
const parts = [...root.querySelectorAll("[data-skeleton-part]")].map((node) =>
|
|
308
|
+
node.getAttribute("data-skeleton-part"),
|
|
309
|
+
);
|
|
310
|
+
expect(parts).toEqual(["hero", "identity", "tabs"]);
|
|
311
|
+
const band = root.querySelector('[data-skeleton-part="hero"]') as HTMLElement;
|
|
312
|
+
expect(getComputedStyle(band).minHeight).toBe("250px");
|
|
313
|
+
});
|
|
314
|
+
|
|
315
|
+
it("drops the hero band when the page draws none", () => {
|
|
316
|
+
renderWithProviders(<AsyncSkeleton layout="detail" hero={false} />);
|
|
317
|
+
expect(document.querySelector('[data-skeleton-part="hero"]')).toBeNull();
|
|
318
|
+
expect(document.querySelector('[data-skeleton-part="identity"]')).not.toBeNull();
|
|
319
|
+
});
|
|
320
|
+
});
|