@multiplatform.one/components 7.67.0 → 7.69.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Accordion/index.native.js +1 -1
- package/dist/cjs/Accordion/index.native.js.map +1 -1
- package/dist/cjs/Alert/index.native.js.map +1 -1
- package/dist/cjs/AnimateHeight/index.native.js.map +1 -1
- package/dist/cjs/Avatar/getInitials.native.js.map +1 -1
- package/dist/cjs/Avatar/index.native.js.map +1 -1
- package/dist/cjs/Badge/index.native.js.map +1 -1
- package/dist/cjs/Button.native.js.map +1 -1
- package/dist/cjs/Card.native.js.map +1 -1
- package/dist/cjs/CardFooter.native.js.map +1 -1
- package/dist/cjs/CardHeader.native.js.map +1 -1
- package/dist/cjs/Carousel/index.native.js +3 -3
- package/dist/cjs/Carousel/index.native.js.map +1 -1
- package/dist/cjs/Chip/index.native.js.map +1 -1
- package/dist/cjs/Collapsible.native.js.map +1 -1
- package/dist/cjs/ContextMenu/index.cjs +18 -9
- package/dist/cjs/ContextMenu/index.native.js +18 -9
- 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.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.native.js +1 -1
- package/dist/cjs/OverflowRow/index.native.js.map +1 -1
- package/dist/cjs/Pagination.cjs +0 -2
- package/dist/cjs/Pagination.native.js +2 -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/SchemeToggle/index.cjs +85 -0
- package/dist/cjs/SchemeToggle/index.native.js +95 -0
- package/dist/cjs/SchemeToggle/index.native.js.map +1 -0
- 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.cjs +8 -1
- package/dist/cjs/SheetModal/SheetHeader.native.js +8 -1
- package/dist/cjs/SheetModal/SheetHeader.native.js.map +1 -1
- package/dist/cjs/SheetModal/SheetNavigation.native.js.map +1 -1
- package/dist/cjs/SheetModal/detents.native.js.map +1 -1
- package/dist/cjs/SheetModal/index.cjs +8 -3
- 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/ThemePlayground/index.cjs +1 -2
- 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/StandardAction.cjs +131 -0
- package/dist/cjs/actions/StandardAction.native.js +136 -0
- package/dist/cjs/actions/StandardAction.native.js.map +1 -0
- package/dist/cjs/actions/devWarn.native.js.map +1 -1
- package/dist/cjs/actions/index.cjs +9 -2
- package/dist/cjs/actions/index.native.js +8 -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/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.native.js.map +1 -1
- package/dist/cjs/charts/Axis.native.js.map +1 -1
- package/dist/cjs/charts/BarChart.native.js.map +1 -1
- package/dist/cjs/charts/ChartDataView.cjs +8 -20
- package/dist/cjs/charts/ChartDataView.native.js +11 -21
- 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.cjs +3 -0
- package/dist/cjs/index.native.js +38 -35
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/knobImmuneExports.native.js.map +1 -1
- package/dist/cjs/layouts/AsyncBoundary.native.js +2 -2
- package/dist/cjs/layouts/AsyncBoundary.native.js.map +1 -1
- package/dist/cjs/layouts/Debug/index.native.js.map +1 -1
- package/dist/cjs/layouts/EmptyState.cjs +0 -1
- package/dist/cjs/layouts/EmptyState.native.js +0 -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.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 +31 -6
- package/dist/cjs/layouts/page.native.js +34 -8
- 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.native.js +1 -1
- package/dist/cjs/layouts/sidebar.native.js.map +1 -1
- package/dist/cjs/layouts/tags.native.js +2 -2
- package/dist/cjs/layouts/tags.native.js.map +1 -1
- package/dist/cjs/layouts/timeline.native.js +2 -2
- package/dist/cjs/layouts/timeline.native.js.map +1 -1
- package/dist/cjs/layouts/toolbar.native.js +1 -1
- package/dist/cjs/layouts/toolbar.native.js.map +1 -1
- package/dist/cjs/shared/actionScan.native.js.map +1 -1
- package/dist/cjs/shared/i18n.native.js.map +1 -1
- package/dist/cjs/shared/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.native.js +2 -2
- 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.cjs +19 -25
- package/dist/cjs/views/ListGroup.native.js +19 -25
- 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.cjs +3 -6
- package/dist/cjs/views/ReportBuilder.native.js +5 -8
- 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.native.js +1 -1
- package/dist/cjs/views/index.native.js.map +1 -1
- package/dist/cjs/views/kanbanDnd.native.js.map +1 -1
- package/dist/cjs/views/matrixMath.native.js.map +1 -1
- package/dist/cjs/views/treeViewDnd.native.js.map +1 -1
- package/dist/cjs/views/treeViewLayout.native.js.map +1 -1
- package/dist/cjs/views/treeViewMotion.native.js.map +1 -1
- package/dist/cjs/views/treeViewReveal.native.js.map +1 -1
- package/dist/cjs/views/widgetChrome.native.js.map +1 -1
- package/dist/esm/ContextMenu/index.mjs +19 -10
- package/dist/esm/ContextMenu/index.mjs.map +1 -1
- package/dist/esm/ContextMenu/index.native.js +19 -10
- package/dist/esm/ContextMenu/index.native.js.map +1 -1
- package/dist/esm/Pagination.mjs +0 -2
- package/dist/esm/Pagination.mjs.map +1 -1
- package/dist/esm/Pagination.native.js +1 -3
- package/dist/esm/Pagination.native.js.map +1 -1
- package/dist/esm/SchemeToggle/index.mjs +59 -0
- package/dist/esm/SchemeToggle/index.mjs.map +1 -0
- package/dist/esm/SchemeToggle/index.native.js +66 -0
- package/dist/esm/SchemeToggle/index.native.js.map +1 -0
- package/dist/esm/SheetModal/SheetHeader.mjs +8 -1
- package/dist/esm/SheetModal/SheetHeader.mjs.map +1 -1
- package/dist/esm/SheetModal/SheetHeader.native.js +8 -1
- package/dist/esm/SheetModal/SheetHeader.native.js.map +1 -1
- package/dist/esm/SheetModal/index.mjs +9 -4
- package/dist/esm/SheetModal/index.mjs.map +1 -1
- package/dist/esm/ThemePlayground/index.mjs +1 -2
- package/dist/esm/ThemePlayground/index.mjs.map +1 -1
- package/dist/esm/actions/StandardAction.mjs +104 -0
- package/dist/esm/actions/StandardAction.mjs.map +1 -0
- package/dist/esm/actions/StandardAction.native.js +106 -0
- package/dist/esm/actions/StandardAction.native.js.map +1 -0
- package/dist/esm/actions/index.mjs +3 -1
- package/dist/esm/actions/index.mjs.map +1 -1
- package/dist/esm/actions/index.native.js +3 -1
- package/dist/esm/actions/index.native.js.map +1 -1
- package/dist/esm/charts/ChartDataView.mjs +8 -20
- package/dist/esm/charts/ChartDataView.mjs.map +1 -1
- package/dist/esm/charts/ChartDataView.native.js +10 -20
- package/dist/esm/charts/ChartDataView.native.js.map +1 -1
- package/dist/esm/index.mjs +3 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm/index.native.js +3 -1
- package/dist/esm/index.native.js.map +1 -1
- package/dist/esm/layouts/EmptyState.mjs +0 -1
- package/dist/esm/layouts/EmptyState.mjs.map +1 -1
- package/dist/esm/layouts/EmptyState.native.js +0 -1
- package/dist/esm/layouts/EmptyState.native.js.map +1 -1
- package/dist/esm/layouts/page.mjs +32 -7
- package/dist/esm/layouts/page.mjs.map +1 -1
- package/dist/esm/layouts/page.native.js +33 -7
- package/dist/esm/layouts/page.native.js.map +1 -1
- package/dist/esm/views/ListGroup.mjs +20 -26
- package/dist/esm/views/ListGroup.mjs.map +1 -1
- package/dist/esm/views/ListGroup.native.js +20 -26
- package/dist/esm/views/ListGroup.native.js.map +1 -1
- package/dist/esm/views/ReportBuilder.mjs +4 -7
- package/dist/esm/views/ReportBuilder.mjs.map +1 -1
- package/dist/esm/views/ReportBuilder.native.js +4 -7
- package/dist/esm/views/ReportBuilder.native.js.map +1 -1
- package/dist/jsx/ContextMenu/index.mjs +19 -10
- package/dist/jsx/ContextMenu/index.mjs.map +1 -1
- package/dist/jsx/ContextMenu/index.native.js +18 -9
- package/dist/jsx/ContextMenu/index.native.js.map +1 -1
- package/dist/jsx/Pagination.mjs +0 -2
- package/dist/jsx/Pagination.mjs.map +1 -1
- package/dist/jsx/Pagination.native.js +1 -3
- package/dist/jsx/Pagination.native.js.map +1 -1
- package/dist/jsx/SchemeToggle/index.mjs +59 -0
- package/dist/jsx/SchemeToggle/index.mjs.map +1 -0
- package/dist/jsx/SchemeToggle/index.native.js +95 -0
- package/dist/jsx/SchemeToggle/index.native.js.map +1 -0
- package/dist/jsx/SheetModal/SheetHeader.mjs +8 -1
- package/dist/jsx/SheetModal/SheetHeader.mjs.map +1 -1
- package/dist/jsx/SheetModal/SheetHeader.native.js +8 -1
- package/dist/jsx/SheetModal/SheetHeader.native.js.map +1 -1
- package/dist/jsx/SheetModal/index.mjs +9 -4
- package/dist/jsx/SheetModal/index.mjs.map +1 -1
- package/dist/jsx/ThemePlayground/index.mjs +1 -2
- package/dist/jsx/ThemePlayground/index.mjs.map +1 -1
- package/dist/jsx/actions/StandardAction.mjs +104 -0
- package/dist/jsx/actions/StandardAction.mjs.map +1 -0
- package/dist/jsx/actions/StandardAction.native.js +136 -0
- package/dist/jsx/actions/StandardAction.native.js.map +1 -0
- package/dist/jsx/actions/index.mjs +3 -1
- package/dist/jsx/actions/index.mjs.map +1 -1
- package/dist/jsx/actions/index.native.js +8 -1
- package/dist/jsx/actions/index.native.js.map +1 -1
- package/dist/jsx/charts/ChartDataView.mjs +8 -20
- package/dist/jsx/charts/ChartDataView.mjs.map +1 -1
- package/dist/jsx/charts/ChartDataView.native.js +10 -20
- package/dist/jsx/charts/ChartDataView.native.js.map +1 -1
- package/dist/jsx/index.js +3 -1
- package/dist/jsx/index.js.map +1 -1
- package/dist/jsx/index.mjs +3 -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/EmptyState.mjs +0 -1
- package/dist/jsx/layouts/EmptyState.mjs.map +1 -1
- package/dist/jsx/layouts/EmptyState.native.js +0 -1
- package/dist/jsx/layouts/EmptyState.native.js.map +1 -1
- package/dist/jsx/layouts/page.mjs +32 -7
- package/dist/jsx/layouts/page.mjs.map +1 -1
- package/dist/jsx/layouts/page.native.js +32 -6
- package/dist/jsx/layouts/page.native.js.map +1 -1
- package/dist/jsx/views/ListGroup.mjs +20 -26
- package/dist/jsx/views/ListGroup.mjs.map +1 -1
- package/dist/jsx/views/ListGroup.native.js +19 -25
- package/dist/jsx/views/ListGroup.native.js.map +1 -1
- package/dist/jsx/views/ReportBuilder.mjs +4 -7
- package/dist/jsx/views/ReportBuilder.mjs.map +1 -1
- package/dist/jsx/views/ReportBuilder.native.js +3 -6
- package/dist/jsx/views/ReportBuilder.native.js.map +1 -1
- package/package.json +9 -9
- package/src/AlertDialogContent.stories.tsx +4 -3
- package/src/Button.stories.tsx +1 -1
- package/src/Card.stories.tsx +7 -6
- package/src/CardFooter.stories.tsx +3 -2
- package/src/CardHeader.stories.tsx +2 -1
- package/src/ContextMenu/ContextMenu.spec.tsx +4 -3
- package/src/ContextMenu/index.tsx +30 -17
- package/src/DialogContent.stories.tsx +9 -11
- package/src/DropdownMenu/DropdownMenu.stories.tsx +2 -1
- package/src/Pagination.spec.tsx +48 -15
- package/src/Pagination.tsx +1 -3
- package/src/Panel.stories.tsx +5 -6
- package/src/SchemeToggle/SchemeToggle.spec.tsx +64 -0
- package/src/SchemeToggle/index.tsx +77 -0
- package/src/SheetModal/SheetHeader.tsx +6 -2
- package/src/SheetModal/SheetModal.stories.spec.tsx +7 -3
- package/src/SheetModal/SheetModal.stories.tsx +14 -18
- package/src/SheetModal/index.tsx +8 -4
- package/src/SkipLink/SkipLink.stories.tsx +2 -2
- package/src/ThemePlayground/index.tsx +1 -2
- package/src/Tooltip/Tooltip.stories.tsx +1 -1
- package/src/actions/ActionBar.stories.spec.tsx +5 -5
- package/src/actions/ActionBar.stories.tsx +8 -25
- package/src/actions/ActionButton.spec.tsx +125 -0
- package/src/actions/ActionButton.stories.tsx +113 -0
- package/src/actions/DestructiveAction.stories.tsx +4 -3
- package/src/actions/StandardAction.tsx +185 -0
- package/src/actions/index.ts +14 -0
- package/src/charts/ChartDataView.tsx +9 -14
- package/src/index.ts +3 -0
- package/src/layouts/EmptyState.stories.tsx +3 -2
- package/src/layouts/EmptyState.tsx +0 -1
- package/src/layouts/PageHeader.stories.tsx +88 -4
- package/src/layouts/PageTemplates.stories.tsx +6 -7
- package/src/layouts/ScreenToolbar.stories.tsx +3 -2
- package/src/layouts/navBar.spec.tsx +58 -0
- package/src/layouts/page.tsx +43 -9
- package/src/surfaces.spec.tsx +60 -0
- package/src/views/ListGroup.native-press.spec.tsx +66 -0
- package/src/views/ListGroup.spec.tsx +25 -6
- package/src/views/ListGroup.tsx +20 -30
- package/src/views/ReportBuilder.tsx +2 -10
- package/types/ContextMenu/index.d.ts +13 -3
- package/types/ContextMenu/index.d.ts.map +1 -1
- package/types/Pagination.d.ts.map +1 -1
- package/types/SchemeToggle/index.d.ts +20 -0
- package/types/SchemeToggle/index.d.ts.map +1 -0
- package/types/SheetModal/SheetHeader.d.ts +1 -1
- package/types/SheetModal/SheetHeader.d.ts.map +1 -1
- package/types/SheetModal/index.d.ts.map +1 -1
- package/types/ThemePlayground/index.d.ts.map +1 -1
- package/types/actions/StandardAction.d.ts +64 -0
- package/types/actions/StandardAction.d.ts.map +1 -0
- package/types/actions/index.d.ts +2 -0
- package/types/actions/index.d.ts.map +1 -1
- package/types/charts/ChartDataView.d.ts.map +1 -1
- package/types/index.d.ts +3 -0
- package/types/index.d.ts.map +1 -1
- package/types/layouts/EmptyState.d.ts.map +1 -1
- package/types/layouts/page.d.ts.map +1 -1
- package/types/views/ListGroup.d.ts +4 -1
- package/types/views/ListGroup.d.ts.map +1 -1
- package/types/views/ReportBuilder.d.ts.map +1 -1
package/src/Card.stories.tsx
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/react-native-web-vite";
|
|
2
2
|
// Catalog Button (G-15 story honesty / LC-18, UX-P06).
|
|
3
3
|
import {
|
|
4
|
-
Button,
|
|
5
4
|
DescriptionList,
|
|
6
5
|
Form,
|
|
7
6
|
FormActions,
|
|
@@ -17,6 +16,8 @@ import {
|
|
|
17
16
|
StarIcon,
|
|
18
17
|
} from "@phosphor-icons/react";
|
|
19
18
|
import { XStack, YStack } from "tamagui";
|
|
19
|
+
import { ActionBar } from "./actions/ActionBar";
|
|
20
|
+
import { ActionButton } from "./actions/StandardAction";
|
|
20
21
|
import { Card } from "./Card";
|
|
21
22
|
import { StatusDot } from "./layouts/StatusDot";
|
|
22
23
|
import { reportCopy } from "./feedback/copy";
|
|
@@ -77,10 +78,10 @@ export const WithHeaderFooter: Story = {
|
|
|
77
78
|
</Card.Header>
|
|
78
79
|
<Paragraph>Main content between header and footer.</Paragraph>
|
|
79
80
|
<Card.Footer>
|
|
80
|
-
<
|
|
81
|
-
<
|
|
82
|
-
<
|
|
83
|
-
|
|
81
|
+
<ActionBar
|
|
82
|
+
cancel={<ActionButton kind="cancel" />}
|
|
83
|
+
primary={<ActionButton kind="confirm" />}
|
|
84
|
+
/>
|
|
84
85
|
</Card.Footer>
|
|
85
86
|
</Card>
|
|
86
87
|
),
|
|
@@ -110,7 +111,7 @@ export const WithForm: Story = {
|
|
|
110
111
|
<Input label="Username" name="username" required />
|
|
111
112
|
<Input label="Email" name="email" required />
|
|
112
113
|
<FormActions>
|
|
113
|
-
<
|
|
114
|
+
<ActionButton kind="submit" formAction="submit" />
|
|
114
115
|
</FormActions>
|
|
115
116
|
</Form>
|
|
116
117
|
</Card>
|
|
@@ -2,6 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react-native-web-vite";
|
|
|
2
2
|
// Catalog Button (G-15 story honesty / LC-18, UX-P06).
|
|
3
3
|
import { Button } from "@multiplatform.one/forms";
|
|
4
4
|
import { XStack, YStack } from "tamagui";
|
|
5
|
+
import { ActionButton } from "./actions/StandardAction";
|
|
5
6
|
import { Card } from "./Card";
|
|
6
7
|
import { Paragraph } from "./Text";
|
|
7
8
|
|
|
@@ -32,8 +33,8 @@ export const Default: Story = {
|
|
|
32
33
|
<Card.Footer>
|
|
33
34
|
Ready to submit
|
|
34
35
|
<XStack gap="$2">
|
|
35
|
-
<
|
|
36
|
-
<
|
|
36
|
+
<ActionButton kind="cancel" />
|
|
37
|
+
<ActionButton kind="confirm" />
|
|
37
38
|
</XStack>
|
|
38
39
|
</Card.Footer>
|
|
39
40
|
</Card>
|
|
@@ -2,6 +2,7 @@ import type { Meta, StoryObj } from "@storybook/react-native-web-vite";
|
|
|
2
2
|
// Catalog Button (G-15 story honesty / LC-18, UX-P06).
|
|
3
3
|
import { Button } from "@multiplatform.one/forms";
|
|
4
4
|
import { XStack, YStack } from "tamagui";
|
|
5
|
+
import { ActionButton } from "./actions/StandardAction";
|
|
5
6
|
import { Card } from "./Card";
|
|
6
7
|
import { SizableText } from "./Text";
|
|
7
8
|
|
|
@@ -41,7 +42,7 @@ export const WithActions: Story = {
|
|
|
41
42
|
<Card.Header>
|
|
42
43
|
<XStack justifyContent="space-between" alignItems="center" gap="$2" flexWrap="wrap">
|
|
43
44
|
<SizableText fontWeight="700">Header with actions</SizableText>
|
|
44
|
-
<
|
|
45
|
+
<ActionButton kind="edit" />
|
|
45
46
|
</XStack>
|
|
46
47
|
</Card.Header>
|
|
47
48
|
</Card>
|
|
@@ -61,9 +61,10 @@ describe("ContextMenu", () => {
|
|
|
61
61
|
expect(copy.getAttribute("data-mp-font-weight")).toBe("400");
|
|
62
62
|
expect(copy.className).toMatch(/_btlr-0px/);
|
|
63
63
|
|
|
64
|
-
//
|
|
65
|
-
|
|
66
|
-
expect(selected?.
|
|
64
|
+
// LC-262: the accent check alone marks the chosen row, no grey fill;
|
|
65
|
+
// hover is $color3; the check trails the label.
|
|
66
|
+
expect(selected?.hasAttribute("data-mp-selected-fill")).toBe(false);
|
|
67
|
+
expect(selected?.className).not.toMatch(/_bg-color2(?: |$)/);
|
|
67
68
|
fireEvent.focus(selected as HTMLElement);
|
|
68
69
|
expect(selected?.getAttribute("data-highlighted")).toBe("true");
|
|
69
70
|
expect(selected?.className).toMatch(/_bg-0focus-color3(?: |$)/);
|
|
@@ -12,18 +12,20 @@ import { IconSlot } from "@multiplatform.one/theme";
|
|
|
12
12
|
* content-sized, `OVERLAY_ANCHOR_GAP` from the point, and flips toward the
|
|
13
13
|
* start or up where the viewport runs out. A keyboard open opens from the
|
|
14
14
|
* target's bottom start corner. Native tablets (window > 640) open at the
|
|
15
|
-
* long-press point; phones keep the sheet.
|
|
15
|
+
* long-press point; phones keep the sheet. `anchor="trigger"` opens it on
|
|
16
|
+
* native as the pull-down under its trigger instead (a bar button, FZ-8158).
|
|
16
17
|
*
|
|
17
|
-
* Rows: 44 tall, padX 13 (`menuRowFrame` $3),
|
|
18
|
-
*
|
|
18
|
+
* Rows: 44 tall, padX 13 (`menuRowFrame` $3), leading glyph where the row has
|
|
19
|
+
* one, the chosen row marked by the accent check alone with no grey fill
|
|
20
|
+
* (LC-262), hover `$color3`, label weight 400, keyboard 2px ring offset 0.
|
|
19
21
|
* Sheet at ≤640 via FloatingPanel's overlay family pivot.
|
|
20
22
|
*/
|
|
21
23
|
|
|
22
24
|
import {
|
|
23
25
|
transitionProps,
|
|
24
26
|
hairline,
|
|
27
|
+
useIdentityInkOnSurface,
|
|
25
28
|
keyboardFocusRingProps,
|
|
26
|
-
menuRowChecked,
|
|
27
29
|
menuRowFrame,
|
|
28
30
|
useResolvedKnobs,
|
|
29
31
|
warnBareDisabled,
|
|
@@ -80,6 +82,17 @@ export interface ContextMenuProps {
|
|
|
80
82
|
onOpenChange?: (open: boolean) => void;
|
|
81
83
|
maxHeight?: number;
|
|
82
84
|
closeOnSelect?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* `"content"` hugs the trigger, so an icon button keeps its own width in a
|
|
87
|
+
* bar; `"stretch"` (default) fills the row.
|
|
88
|
+
*/
|
|
89
|
+
triggerSizing?: "stretch" | "content";
|
|
90
|
+
/**
|
|
91
|
+
* Where a native long-press opens the menu: `"point"` (default) at the press
|
|
92
|
+
* on a tablet and as a sheet on a phone, `"trigger"` as the pull-down under
|
|
93
|
+
* the trigger at every width. The web always opens at the pointer.
|
|
94
|
+
*/
|
|
95
|
+
anchor?: "point" | "trigger";
|
|
83
96
|
}
|
|
84
97
|
|
|
85
98
|
interface ContextMenuContextValue {
|
|
@@ -120,9 +133,6 @@ const ItemRow = styled(XStack, {
|
|
|
120
133
|
outlineWidth: 0,
|
|
121
134
|
},
|
|
122
135
|
variants: {
|
|
123
|
-
selected: {
|
|
124
|
-
true: menuRowChecked,
|
|
125
|
-
},
|
|
126
136
|
disabled: {
|
|
127
137
|
true: {
|
|
128
138
|
cursor: "default",
|
|
@@ -156,6 +166,8 @@ function ContextMenuRoot({
|
|
|
156
166
|
onOpenChange,
|
|
157
167
|
maxHeight,
|
|
158
168
|
closeOnSelect,
|
|
169
|
+
triggerSizing,
|
|
170
|
+
anchor = "point",
|
|
159
171
|
}: ContextMenuProps) {
|
|
160
172
|
const [open, setOpen] = useControllableState({
|
|
161
173
|
prop: openProp,
|
|
@@ -184,6 +196,7 @@ function ContextMenuRoot({
|
|
|
184
196
|
<ContextMenuCheckboxItem
|
|
185
197
|
key={(entry as ContextMenuItemSpec).key ?? index}
|
|
186
198
|
checked={(entry as ContextMenuItemSpec).checked!}
|
|
199
|
+
icon={(entry as ContextMenuItemSpec).icon}
|
|
187
200
|
onCheckedChange={(entry as ContextMenuItemSpec).onCheckedChange}
|
|
188
201
|
onSelect={(entry as ContextMenuItemSpec).onSelect}
|
|
189
202
|
closeOnSelect={(entry as ContextMenuItemSpec).closeOnSelect}
|
|
@@ -237,7 +250,11 @@ function ContextMenuRoot({
|
|
|
237
250
|
onOpenChange={setOpen}
|
|
238
251
|
trigger={trigger}
|
|
239
252
|
contentPadding="none"
|
|
253
|
+
triggerSizing={triggerSizing}
|
|
240
254
|
{...freeOverlay}
|
|
255
|
+
{...(anchor === "trigger" && !isWeb
|
|
256
|
+
? { compactFace: "menu" as const, anchorMode: "attach" as const, triggerEcho: false }
|
|
257
|
+
: null)}
|
|
241
258
|
>
|
|
242
259
|
<ContextMenuList maxHeight={maxHeight}>{body}</ContextMenuList>
|
|
243
260
|
</FloatingPanel>
|
|
@@ -395,7 +412,6 @@ export interface ContextMenuItemProps extends Omit<
|
|
|
395
412
|
interface ItemBodyProps extends ContextMenuItemProps {
|
|
396
413
|
trailing?: ReactNode;
|
|
397
414
|
closeOnSelectDefault?: boolean;
|
|
398
|
-
selected?: boolean;
|
|
399
415
|
}
|
|
400
416
|
|
|
401
417
|
const ContextMenuItemBody = forwardRef<TamaguiElement, ItemBodyProps>(function ContextMenuItemBody(
|
|
@@ -411,7 +427,6 @@ const ContextMenuItemBody = forwardRef<TamaguiElement, ItemBodyProps>(function C
|
|
|
411
427
|
closeOnSelectDefault = true,
|
|
412
428
|
role = "menuitem",
|
|
413
429
|
trailing,
|
|
414
|
-
selected = false,
|
|
415
430
|
...props
|
|
416
431
|
},
|
|
417
432
|
forwardedRef,
|
|
@@ -463,7 +478,6 @@ const ContextMenuItemBody = forwardRef<TamaguiElement, ItemBodyProps>(function C
|
|
|
463
478
|
ref={forwardedRef}
|
|
464
479
|
role={role}
|
|
465
480
|
disabled={disabled}
|
|
466
|
-
selected={selected}
|
|
467
481
|
aria-disabled={disabled || undefined}
|
|
468
482
|
aria-busy={busy || undefined}
|
|
469
483
|
data-mp-busy={busy ? "true" : undefined}
|
|
@@ -471,7 +485,6 @@ const ContextMenuItemBody = forwardRef<TamaguiElement, ItemBodyProps>(function C
|
|
|
471
485
|
{...transitionProps(knobProps.motion.control)}
|
|
472
486
|
onPress={handleSelect}
|
|
473
487
|
data-mp-hover-fill={HOVER_FILL}
|
|
474
|
-
data-mp-selected-fill={selected ? menuRowChecked.backgroundColor : undefined}
|
|
475
488
|
data-mp-pad-x={String(knobProps.menuRow.paddingHorizontal)}
|
|
476
489
|
data-mp-row-height={rowHeight}
|
|
477
490
|
data-mp-font-weight="400"
|
|
@@ -576,22 +589,19 @@ const ContextMenuItem = forwardRef<TamaguiElement, ContextMenuItemProps>(
|
|
|
576
589
|
},
|
|
577
590
|
);
|
|
578
591
|
|
|
579
|
-
export interface ContextMenuCheckboxItemProps extends Omit<
|
|
580
|
-
ContextMenuItemProps,
|
|
581
|
-
"destructive" | "icon"
|
|
582
|
-
> {
|
|
592
|
+
export interface ContextMenuCheckboxItemProps extends Omit<ContextMenuItemProps, "destructive"> {
|
|
583
593
|
checked: boolean;
|
|
584
594
|
onCheckedChange?: (checked: boolean) => void;
|
|
585
595
|
}
|
|
586
596
|
|
|
587
597
|
const ContextMenuCheckboxItem = forwardRef<TamaguiElement, ContextMenuCheckboxItemProps>(
|
|
588
598
|
function ContextMenuCheckboxItem({ checked, onCheckedChange, onSelect, ...props }, ref) {
|
|
599
|
+
const markColor = useIdentityInkOnSurface();
|
|
589
600
|
return (
|
|
590
601
|
<ContextMenuItemBody
|
|
591
602
|
ref={ref}
|
|
592
603
|
role={"menuitemcheckbox" as "menuitem"}
|
|
593
604
|
aria-checked={checked}
|
|
594
|
-
selected={checked}
|
|
595
605
|
closeOnSelectDefault={false}
|
|
596
606
|
onSelect={() => {
|
|
597
607
|
onCheckedChange?.(!checked);
|
|
@@ -605,8 +615,11 @@ const ContextMenuCheckboxItem = forwardRef<TamaguiElement, ContextMenuCheckboxIt
|
|
|
605
615
|
justifyContent="center"
|
|
606
616
|
opacity={checked ? 1 : 0}
|
|
607
617
|
data-mp-check="trailing"
|
|
618
|
+
{...(isWeb && markColor
|
|
619
|
+
? ({ style: { color: markColor } } as Record<string, unknown>)
|
|
620
|
+
: {})}
|
|
608
621
|
>
|
|
609
|
-
<IconSlot icon={<CheckIcon size={14} weight="bold" />} />
|
|
622
|
+
<IconSlot icon={<CheckIcon size={14} weight="bold" />} color={markColor} />
|
|
610
623
|
</View>
|
|
611
624
|
}
|
|
612
625
|
{...props}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/react-native-web-vite";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
// Catalog Button (G-15 story honesty / LC-18, UX-P06).
|
|
4
|
-
// DialogContent so it inherits the compact nested-scale step (LC-73);
|
|
5
|
-
// dialog frame itself does not ring (LC-71).
|
|
3
|
+
// Catalog Button (G-15 story honesty / LC-18, UX-P06). The header's close sits
|
|
4
|
+
// inside DialogContent so it inherits the compact nested-scale step (LC-73);
|
|
5
|
+
// the dialog frame itself does not ring (LC-71).
|
|
6
6
|
import { Button } from "@multiplatform.one/forms";
|
|
7
|
-
import {
|
|
7
|
+
import { YStack } from "tamagui";
|
|
8
|
+
import { OverlayHeader } from "./actions/StandardAction";
|
|
8
9
|
import { Dialog } from "./Dialog";
|
|
9
10
|
import { DialogContent, DialogOverlay } from "./surfaces";
|
|
10
11
|
import { Paragraph } from "./Text";
|
|
@@ -26,8 +27,10 @@ function DialogHarness({
|
|
|
26
27
|
<Dialog.Portal>
|
|
27
28
|
<DialogOverlay key="overlay" />
|
|
28
29
|
<DialogContent key="content" maxWidth={480} maxHeight={520}>
|
|
29
|
-
<
|
|
30
|
-
|
|
30
|
+
<OverlayHeader
|
|
31
|
+
title={<Dialog.Title size="$7">Dialog title</Dialog.Title>}
|
|
32
|
+
onClose={() => setOpen(false)}
|
|
33
|
+
/>
|
|
31
34
|
{long ? (
|
|
32
35
|
<YStack gap="$2" maxHeight={280} overflow="scroll">
|
|
33
36
|
{Array.from({ length: 30 }).map((_, i) => (
|
|
@@ -37,11 +40,6 @@ function DialogHarness({
|
|
|
37
40
|
) : (
|
|
38
41
|
<Paragraph>Short dialog body content.</Paragraph>
|
|
39
42
|
)}
|
|
40
|
-
<XStack justifyContent="flex-end">
|
|
41
|
-
<Dialog.Close asChild>
|
|
42
|
-
<Button>Close</Button>
|
|
43
|
-
</Dialog.Close>
|
|
44
|
-
</XStack>
|
|
45
43
|
</DialogContent>
|
|
46
44
|
</Dialog.Portal>
|
|
47
45
|
</Dialog>
|
|
@@ -15,6 +15,7 @@ import {
|
|
|
15
15
|
// Catalog Button (G-15 story honesty / LC-18, UX-P06).
|
|
16
16
|
import { Button } from "@multiplatform.one/forms";
|
|
17
17
|
import { XStack, YStack } from "tamagui";
|
|
18
|
+
import { ActionButton } from "../actions/StandardAction";
|
|
18
19
|
import { DropdownMenu, type DropdownMenuEntry } from "./index";
|
|
19
20
|
import { Avatar } from "../Avatar";
|
|
20
21
|
import { ListItem } from "../tamagui";
|
|
@@ -92,7 +93,7 @@ export const IconsAndShortcuts: Story = {
|
|
|
92
93
|
<YStack minHeight={380} paddingTop="$4" alignItems="center">
|
|
93
94
|
<DropdownMenu {...args}>
|
|
94
95
|
<DropdownMenu.Trigger asChild>
|
|
95
|
-
<
|
|
96
|
+
<ActionButton kind="more" />
|
|
96
97
|
</DropdownMenu.Trigger>
|
|
97
98
|
<DropdownMenu.Content>
|
|
98
99
|
<DropdownMenu.Item icon={<PencilSimpleIcon size={16} />} shortcut="⌘E">
|
package/src/Pagination.spec.tsx
CHANGED
|
@@ -38,6 +38,9 @@ const iconPaths = (el: Element | null | undefined): string =>
|
|
|
38
38
|
.map((p) => p.getAttribute("d") ?? "")
|
|
39
39
|
.join("|");
|
|
40
40
|
|
|
41
|
+
/** LC-176: an icon-only button's glyph is Phosphor bold. */
|
|
42
|
+
const iconButtonGlyph: IconProps = { weight: "bold" };
|
|
43
|
+
|
|
41
44
|
/** Reference fingerprint from a standalone render of the phosphor glyph. */
|
|
42
45
|
const refPaths = (IconComponent: Icon, props: IconProps = {}): string => {
|
|
43
46
|
const { container, unmount } = render(<IconComponent {...props} />);
|
|
@@ -60,35 +63,57 @@ describe("Pagination directional glyphs (numbered variant)", () => {
|
|
|
60
63
|
it("points prev/next carets toward their targets in LTR", () => {
|
|
61
64
|
clearDirs();
|
|
62
65
|
const { container } = renderNumbered();
|
|
63
|
-
expect(iconPaths(byLabel(container, "Go to previous page"))).toBe(
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
expect(iconPaths(byLabel(container, "Go to
|
|
66
|
+
expect(iconPaths(byLabel(container, "Go to previous page"))).toBe(
|
|
67
|
+
refPaths(CaretLeftIcon, iconButtonGlyph),
|
|
68
|
+
);
|
|
69
|
+
expect(iconPaths(byLabel(container, "Go to next page"))).toBe(
|
|
70
|
+
refPaths(CaretRightIcon, iconButtonGlyph),
|
|
71
|
+
);
|
|
72
|
+
expect(iconPaths(byLabel(container, "Go to first page"))).toBe(
|
|
73
|
+
refPaths(CaretDoubleLeftIcon, iconButtonGlyph),
|
|
74
|
+
);
|
|
75
|
+
expect(iconPaths(byLabel(container, "Go to last page"))).toBe(
|
|
76
|
+
refPaths(CaretDoubleRightIcon, iconButtonGlyph),
|
|
77
|
+
);
|
|
67
78
|
});
|
|
68
79
|
|
|
69
80
|
it("swaps all four caret pairs in RTL so they point toward their targets", () => {
|
|
70
81
|
document.documentElement.dir = "rtl";
|
|
71
82
|
const { container } = renderNumbered();
|
|
72
|
-
expect(iconPaths(byLabel(container, "Go to previous page"))).toBe(
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
expect(iconPaths(byLabel(container, "Go to
|
|
83
|
+
expect(iconPaths(byLabel(container, "Go to previous page"))).toBe(
|
|
84
|
+
refPaths(CaretRightIcon, iconButtonGlyph),
|
|
85
|
+
);
|
|
86
|
+
expect(iconPaths(byLabel(container, "Go to next page"))).toBe(
|
|
87
|
+
refPaths(CaretLeftIcon, iconButtonGlyph),
|
|
88
|
+
);
|
|
89
|
+
expect(iconPaths(byLabel(container, "Go to first page"))).toBe(
|
|
90
|
+
refPaths(CaretDoubleRightIcon, iconButtonGlyph),
|
|
91
|
+
);
|
|
92
|
+
expect(iconPaths(byLabel(container, "Go to last page"))).toBe(
|
|
93
|
+
refPaths(CaretDoubleLeftIcon, iconButtonGlyph),
|
|
94
|
+
);
|
|
76
95
|
});
|
|
77
96
|
|
|
78
97
|
it("re-mirrors live when the document direction flips (useDirection reactivity)", async () => {
|
|
79
98
|
clearDirs();
|
|
80
99
|
const { container } = renderNumbered();
|
|
81
|
-
expect(iconPaths(byLabel(container, "Go to next page"))).toBe(
|
|
100
|
+
expect(iconPaths(byLabel(container, "Go to next page"))).toBe(
|
|
101
|
+
refPaths(CaretRightIcon, iconButtonGlyph),
|
|
102
|
+
);
|
|
82
103
|
|
|
83
104
|
await act(async () => {
|
|
84
105
|
document.documentElement.dir = "rtl";
|
|
85
106
|
});
|
|
86
|
-
expect(iconPaths(byLabel(container, "Go to next page"))).toBe(
|
|
107
|
+
expect(iconPaths(byLabel(container, "Go to next page"))).toBe(
|
|
108
|
+
refPaths(CaretLeftIcon, iconButtonGlyph),
|
|
109
|
+
);
|
|
87
110
|
|
|
88
111
|
await act(async () => {
|
|
89
112
|
document.documentElement.dir = "ltr";
|
|
90
113
|
});
|
|
91
|
-
expect(iconPaths(byLabel(container, "Go to next page"))).toBe(
|
|
114
|
+
expect(iconPaths(byLabel(container, "Go to next page"))).toBe(
|
|
115
|
+
refPaths(CaretRightIcon, iconButtonGlyph),
|
|
116
|
+
);
|
|
92
117
|
});
|
|
93
118
|
});
|
|
94
119
|
|
|
@@ -96,15 +121,23 @@ describe("Pagination directional glyphs (dots variant)", () => {
|
|
|
96
121
|
it("swaps the prev/next arrows in RTL", () => {
|
|
97
122
|
document.documentElement.dir = "rtl";
|
|
98
123
|
const { container } = renderWithProviders(<Pagination total={5} activeIndex={2} />);
|
|
99
|
-
expect(iconPaths(byLabel(container, "Previous page"))).toBe(
|
|
100
|
-
|
|
124
|
+
expect(iconPaths(byLabel(container, "Previous page"))).toBe(
|
|
125
|
+
refPaths(ArrowRightIcon, iconButtonGlyph),
|
|
126
|
+
);
|
|
127
|
+
expect(iconPaths(byLabel(container, "Next page"))).toBe(
|
|
128
|
+
refPaths(ArrowLeftIcon, iconButtonGlyph),
|
|
129
|
+
);
|
|
101
130
|
});
|
|
102
131
|
|
|
103
132
|
it("keeps arrows physical in LTR", () => {
|
|
104
133
|
clearDirs();
|
|
105
134
|
const { container } = renderWithProviders(<Pagination total={5} activeIndex={2} />);
|
|
106
|
-
expect(iconPaths(byLabel(container, "Previous page"))).toBe(
|
|
107
|
-
|
|
135
|
+
expect(iconPaths(byLabel(container, "Previous page"))).toBe(
|
|
136
|
+
refPaths(ArrowLeftIcon, iconButtonGlyph),
|
|
137
|
+
);
|
|
138
|
+
expect(iconPaths(byLabel(container, "Next page"))).toBe(
|
|
139
|
+
refPaths(ArrowRightIcon, iconButtonGlyph),
|
|
140
|
+
);
|
|
108
141
|
});
|
|
109
142
|
|
|
110
143
|
it("never mirrors the direction-neutral submit checkmark", () => {
|
package/src/Pagination.tsx
CHANGED
|
@@ -311,12 +311,11 @@ export function Pagination({
|
|
|
311
311
|
|
|
312
312
|
<Button
|
|
313
313
|
size={knobProps.sizeToken}
|
|
314
|
-
circular={!isPageNavigation}
|
|
315
314
|
chromeless
|
|
316
315
|
icon={isPageNavigation ? PrevIcon : PrevArrowIcon}
|
|
317
316
|
onPress={handlePrev}
|
|
318
317
|
disabled={!canPrev}
|
|
319
|
-
// LC-40: the Button's own disabled
|
|
318
|
+
// LC-40: the Button's own disabled dim owns the treatment — the
|
|
320
319
|
// legacy opacity 0.3 dim stacked on top of it (double-dim).
|
|
321
320
|
aria-label={isPageNavigation ? t("Go to previous page") : t("Previous page")}
|
|
322
321
|
onKeyDown={activateOnEnterSpace(handlePrev, canPrev)}
|
|
@@ -401,7 +400,6 @@ export function Pagination({
|
|
|
401
400
|
|
|
402
401
|
<Button
|
|
403
402
|
size={knobProps.sizeToken}
|
|
404
|
-
circular={!isPageNavigation}
|
|
405
403
|
chromeless={!submits}
|
|
406
404
|
theme={submits ? "active" : undefined}
|
|
407
405
|
icon={isPageNavigation ? NextIcon : submits ? CheckIcon : NextArrowIcon}
|
package/src/Panel.stories.tsx
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/react-native-web-vite";
|
|
2
2
|
// Catalog Button + Input (G-15 story honesty / LC-56, UX-P06).
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { Input } from "@multiplatform.one/forms";
|
|
4
|
+
import { YStack } from "tamagui";
|
|
5
|
+
import { ActionBar } from "./actions/ActionBar";
|
|
6
|
+
import { ActionButton } from "./actions/StandardAction";
|
|
5
7
|
import { Panel } from "./surfaces";
|
|
6
8
|
import { Paragraph, SizableText } from "./Text";
|
|
7
9
|
|
|
@@ -52,10 +54,7 @@ export const InteractiveContent: Story = {
|
|
|
52
54
|
<Panel maxWidth={420}>
|
|
53
55
|
<SizableText fontWeight="600">Interactive content</SizableText>
|
|
54
56
|
<Input placeholder="Focus me" inputProps={{ "aria-label": "Focus demo" }} />
|
|
55
|
-
<
|
|
56
|
-
<Button>Cancel</Button>
|
|
57
|
-
<Button>Submit</Button>
|
|
58
|
-
</XStack>
|
|
57
|
+
<ActionBar cancel={<ActionButton kind="cancel" />} primary={<ActionButton kind="submit" />} />
|
|
59
58
|
</Panel>
|
|
60
59
|
),
|
|
61
60
|
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { CircleHalfIcon, MoonIcon, SunIcon } from "@phosphor-icons/react";
|
|
2
|
+
import { fireEvent, render, waitFor } from "@testing-library/react";
|
|
3
|
+
import { describe, expect, it, vi } from "vitest";
|
|
4
|
+
import { renderWithProviders } from "@multiplatform.one/test-utils";
|
|
5
|
+
import type { SchemePreference, ThemeScheme } from "@multiplatform.one/theme";
|
|
6
|
+
import { SchemeToggle, toggledScheme } from "./index";
|
|
7
|
+
|
|
8
|
+
function preference(setting: ThemeScheme, value: "light" | "dark") {
|
|
9
|
+
const set = vi.fn();
|
|
10
|
+
const useUserScheme = (): SchemePreference => ({ setting, value, set });
|
|
11
|
+
return { set, useUserScheme };
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
describe("SchemeToggle (FZ-8158)", () => {
|
|
15
|
+
it("a tap always flips what is on screen", () => {
|
|
16
|
+
expect(toggledScheme("light")).toBe("dark");
|
|
17
|
+
expect(toggledScheme("dark")).toBe("light");
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
it("names the current setting and flips the resolved look on a tap", () => {
|
|
21
|
+
const { set, useUserScheme } = preference("system", "dark");
|
|
22
|
+
const { getByRole } = renderWithProviders(<SchemeToggle useUserScheme={useUserScheme} />);
|
|
23
|
+
fireEvent.click(getByRole("button", { name: "Appearance: System" }));
|
|
24
|
+
expect(set).toHaveBeenCalledWith("light");
|
|
25
|
+
expect(document.querySelector('[role="menu"]')).toBeFalsy();
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
it("picks System, Light or Dark explicitly from its context menu", async () => {
|
|
29
|
+
const { set, useUserScheme } = preference("dark", "dark");
|
|
30
|
+
const { getByRole } = renderWithProviders(<SchemeToggle useUserScheme={useUserScheme} />);
|
|
31
|
+
fireEvent.contextMenu(getByRole("button", { name: "Appearance: Dark" }));
|
|
32
|
+
await waitFor(() => {
|
|
33
|
+
expect(document.querySelector('[role="menu"]')).toBeTruthy();
|
|
34
|
+
});
|
|
35
|
+
const rows = [...document.querySelectorAll('[role="menuitemcheckbox"]')];
|
|
36
|
+
expect(rows.map((row) => row.textContent)).toEqual(["System", "Light", "Dark"]);
|
|
37
|
+
expect(rows.map((row) => row.getAttribute("aria-checked"))).toEqual(["false", "false", "true"]);
|
|
38
|
+
// LC-262: every row carries its glyph; the chosen one is marked by the check, no grey fill.
|
|
39
|
+
for (const row of rows) expect(row.querySelectorAll("svg").length).toBe(2);
|
|
40
|
+
expect(rows[2]!.className).not.toMatch(/_bg-color2(?: |$)/);
|
|
41
|
+
fireEvent.click(rows[0]!);
|
|
42
|
+
expect(set).toHaveBeenCalledWith("system");
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
it("its glyph names the setting: sun for Light, moon for Dark, circle-half for System (FZ-8158 r5)", () => {
|
|
46
|
+
const pathOf = (node: ParentNode) => node.querySelector("svg path")?.getAttribute("d");
|
|
47
|
+
const cases = [
|
|
48
|
+
["light", "light", SunIcon],
|
|
49
|
+
["dark", "dark", MoonIcon],
|
|
50
|
+
["system", "dark", CircleHalfIcon],
|
|
51
|
+
] as const;
|
|
52
|
+
for (const [setting, value, Icon] of cases) {
|
|
53
|
+
const { useUserScheme } = preference(setting, value);
|
|
54
|
+
const { getByRole, unmount } = renderWithProviders(
|
|
55
|
+
<SchemeToggle useUserScheme={useUserScheme} />,
|
|
56
|
+
);
|
|
57
|
+
const name = `Appearance: ${setting[0]!.toUpperCase()}${setting.slice(1)}`;
|
|
58
|
+
const expected = render(<Icon weight="bold" />);
|
|
59
|
+
expect(pathOf(getByRole("button", { name })), setting).toBe(pathOf(expected.container));
|
|
60
|
+
expected.unmount();
|
|
61
|
+
unmount();
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
});
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { CircleHalfIcon, MoonIcon, SunIcon } from "@phosphor-icons/react";
|
|
2
|
+
import { IconButton, type IconButtonProps } from "@multiplatform.one/forms";
|
|
3
|
+
import {
|
|
4
|
+
useSchemePreference,
|
|
5
|
+
type SchemePreference,
|
|
6
|
+
type ThemeScheme,
|
|
7
|
+
} from "@multiplatform.one/theme";
|
|
8
|
+
import { useTranslation } from "react-i18next";
|
|
9
|
+
import { ContextMenu } from "../ContextMenu";
|
|
10
|
+
|
|
11
|
+
const schemes = ["system", "light", "dark"] as const;
|
|
12
|
+
const schemeNames: Record<ThemeScheme, string> = {
|
|
13
|
+
system: "System",
|
|
14
|
+
light: "Light",
|
|
15
|
+
dark: "Dark",
|
|
16
|
+
};
|
|
17
|
+
const schemeGlyphs = {
|
|
18
|
+
system: CircleHalfIcon,
|
|
19
|
+
light: SunIcon,
|
|
20
|
+
dark: MoonIcon,
|
|
21
|
+
} as const satisfies Record<ThemeScheme, unknown>;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* A tap always flips what is on screen. A three-way cycle through System
|
|
25
|
+
* would spend a tap on no visible change whenever System resolves to the
|
|
26
|
+
* current look, and on native the OS look is unreadable while an explicit
|
|
27
|
+
* choice overrides Appearance. System lives in the long-press menu.
|
|
28
|
+
*/
|
|
29
|
+
export function toggledScheme(resolved: "light" | "dark"): ThemeScheme {
|
|
30
|
+
return resolved === "dark" ? "light" : "dark";
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export interface SchemeToggleProps extends Omit<
|
|
34
|
+
IconButtonProps,
|
|
35
|
+
"icon" | "aria-label" | "onPress" | "onLongPress"
|
|
36
|
+
> {
|
|
37
|
+
useUserScheme?: () => SchemePreference;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* The appearance control for a bar. Its glyph names the setting (sun, moon,
|
|
42
|
+
* or circle-half for System); a tap flips light and dark; a long-press opens
|
|
43
|
+
* the System / Light / Dark pull-down under the button on native, and a
|
|
44
|
+
* right-click opens the same menu on the web.
|
|
45
|
+
*/
|
|
46
|
+
export function SchemeToggle({
|
|
47
|
+
useUserScheme = useSchemePreference,
|
|
48
|
+
...buttonProps
|
|
49
|
+
}: SchemeToggleProps) {
|
|
50
|
+
const { t } = useTranslation();
|
|
51
|
+
const scheme = useUserScheme();
|
|
52
|
+
const name = (value: ThemeScheme) =>
|
|
53
|
+
t(`themePresetPicker.schemes.${value}`, { defaultValue: schemeNames[value] });
|
|
54
|
+
return (
|
|
55
|
+
<ContextMenu
|
|
56
|
+
triggerSizing="content"
|
|
57
|
+
anchor="trigger"
|
|
58
|
+
closeOnSelect
|
|
59
|
+
items={schemes.map((value) => {
|
|
60
|
+
const Glyph = schemeGlyphs[value];
|
|
61
|
+
return {
|
|
62
|
+
label: name(value),
|
|
63
|
+
icon: <Glyph size={18} weight="bold" />,
|
|
64
|
+
checked: scheme.setting === value,
|
|
65
|
+
onSelect: () => scheme.set(value),
|
|
66
|
+
};
|
|
67
|
+
})}
|
|
68
|
+
>
|
|
69
|
+
<IconButton
|
|
70
|
+
icon={schemeGlyphs[scheme.setting]}
|
|
71
|
+
{...buttonProps}
|
|
72
|
+
aria-label={`${t("schemeToggle.label", { defaultValue: "Appearance" })}: ${name(scheme.setting)}`}
|
|
73
|
+
onPress={() => scheme.set(toggledScheme(scheme.value))}
|
|
74
|
+
/>
|
|
75
|
+
</ContextMenu>
|
|
76
|
+
);
|
|
77
|
+
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
+
import { IconButtonGroup } from "@multiplatform.one/forms";
|
|
2
|
+
import { Surface } from "@multiplatform.one/theme";
|
|
1
3
|
import type { ReactNode } from "react";
|
|
2
4
|
import { View, XStack } from "tamagui";
|
|
3
5
|
|
|
4
6
|
/**
|
|
5
7
|
* The sheet's header row: what the sheet is about, and its frequent actions as
|
|
6
8
|
* icon buttons in the trailing area (LC-262 DIRECT-ACTIONS), never hidden in a
|
|
7
|
-
* menu.
|
|
9
|
+
* menu. The actions are a bar (LC-153), so they take the bar tint (LC-176).
|
|
8
10
|
*/
|
|
9
11
|
export function SheetHeader({
|
|
10
12
|
header,
|
|
@@ -23,7 +25,9 @@ export function SheetHeader({
|
|
|
23
25
|
{header}
|
|
24
26
|
</View>
|
|
25
27
|
<XStack testID="sheet-modal-header-actions" flexShrink={0} alignItems="center">
|
|
26
|
-
|
|
28
|
+
<Surface bar>
|
|
29
|
+
<IconButtonGroup>{actions}</IconButtonGroup>
|
|
30
|
+
</Surface>
|
|
27
31
|
</XStack>
|
|
28
32
|
</XStack>
|
|
29
33
|
);
|
|
@@ -47,10 +47,14 @@ describe("SheetModal stories", () => {
|
|
|
47
47
|
for (const frame of frames) expect(frame.getAttribute("aria-modal")).toBe("true");
|
|
48
48
|
});
|
|
49
49
|
|
|
50
|
-
it("the
|
|
50
|
+
it("the sheet header carries cancel and the confirm as symbols (LC-260)", () => {
|
|
51
51
|
renderWithProviders(<>{OpenOnMount.render?.({} as never, {} as never)}</>);
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
const cancel = screen.getAllByRole("button", { name: "Cancel" });
|
|
53
|
+
const move = screen.getAllByRole("button", { name: "Move" });
|
|
54
|
+
expect(cancel.length).toBeGreaterThan(0);
|
|
55
|
+
expect(move.length).toBeGreaterThan(0);
|
|
56
|
+
for (const button of [...cancel, ...move]) expect(button.textContent).toBe("");
|
|
57
|
+
expect(move[0]!.getAttribute("data-mp-icon-button")).toBe("primary");
|
|
54
58
|
});
|
|
55
59
|
|
|
56
60
|
it("the scrollable story fills the body with rows", () => {
|