@multiplatform.one/components 7.66.0 → 7.68.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/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/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/Card.cjs +67 -11
- package/dist/cjs/Card.native.js +71 -11
- package/dist/cjs/Card.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/DropdownMenu/index.cjs +5 -2
- package/dist/cjs/DropdownMenu/index.native.js +5 -2
- package/dist/cjs/DropdownMenu/index.native.js.map +1 -1
- package/dist/cjs/OverflowRow/index.cjs +3 -1
- package/dist/cjs/OverflowRow/index.native.js +3 -1
- package/dist/cjs/OverflowRow/index.native.js.map +1 -1
- package/dist/cjs/Pagination.cjs +4 -6
- package/dist/cjs/Pagination.native.js +4 -6
- package/dist/cjs/Pagination.native.js.map +1 -1
- package/dist/cjs/SheetModal/SheetHeader.cjs +5 -1
- package/dist/cjs/SheetModal/SheetHeader.native.js +5 -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/index.cjs +30 -17
- package/dist/cjs/SheetModal/index.native.js +86 -58
- package/dist/cjs/SheetModal/index.native.js.map +1 -1
- package/dist/cjs/ThemePlayground/index.cjs +1 -2
- 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/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/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/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/ChartDataView.cjs +8 -20
- package/dist/cjs/charts/ChartDataView.native.js +10 -20
- package/dist/cjs/charts/ChartDataView.native.js.map +1 -1
- package/dist/cjs/index.cjs +2 -0
- package/dist/cjs/index.native.js +2 -0
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/layouts/AsyncBoundary.cjs +87 -0
- package/dist/cjs/layouts/AsyncBoundary.native.js +91 -0
- package/dist/cjs/layouts/AsyncBoundary.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/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/page.cjs +22 -12
- package/dist/cjs/layouts/page.native.js +27 -16
- package/dist/cjs/layouts/page.native.js.map +1 -1
- package/dist/cjs/layouts/sidebar.cjs +51 -21
- package/dist/cjs/layouts/sidebar.native.js +53 -23
- package/dist/cjs/layouts/sidebar.native.js.map +1 -1
- package/dist/cjs/layouts/toolbar.cjs +9 -6
- package/dist/cjs/layouts/toolbar.native.js +9 -6
- package/dist/cjs/layouts/toolbar.native.js.map +1 -1
- package/dist/cjs/views/ImageGrid.cjs +55 -14
- package/dist/cjs/views/ImageGrid.native.js +58 -15
- package/dist/cjs/views/ImageGrid.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/ReportBuilder.cjs +3 -6
- package/dist/cjs/views/ReportBuilder.native.js +3 -6
- package/dist/cjs/views/ReportBuilder.native.js.map +1 -1
- package/dist/cjs/views/index.cjs +2 -0
- package/dist/cjs/views/index.native.js +2 -0
- package/dist/cjs/views/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/Avatar/getInitials.mjs +7 -32
- package/dist/esm/Avatar/getInitials.mjs.map +1 -1
- package/dist/esm/Avatar/getInitials.native.js +9 -32
- package/dist/esm/Avatar/getInitials.native.js.map +1 -1
- package/dist/esm/Avatar/index.mjs +30 -24
- package/dist/esm/Avatar/index.mjs.map +1 -1
- package/dist/esm/Avatar/index.native.js +32 -26
- package/dist/esm/Avatar/index.native.js.map +1 -1
- package/dist/esm/Card.mjs +69 -13
- package/dist/esm/Card.mjs.map +1 -1
- package/dist/esm/Card.native.js +73 -13
- package/dist/esm/Card.native.js.map +1 -1
- package/dist/esm/Chip/index.mjs +54 -9
- package/dist/esm/Chip/index.mjs.map +1 -1
- package/dist/esm/Chip/index.native.js +57 -11
- package/dist/esm/Chip/index.native.js.map +1 -1
- package/dist/esm/DropdownMenu/index.mjs +5 -2
- package/dist/esm/DropdownMenu/index.mjs.map +1 -1
- package/dist/esm/DropdownMenu/index.native.js +5 -2
- package/dist/esm/DropdownMenu/index.native.js.map +1 -1
- package/dist/esm/OverflowRow/index.mjs +4 -2
- package/dist/esm/OverflowRow/index.mjs.map +1 -1
- package/dist/esm/OverflowRow/index.native.js +4 -2
- package/dist/esm/OverflowRow/index.native.js.map +1 -1
- package/dist/esm/Pagination.mjs +4 -6
- package/dist/esm/Pagination.mjs.map +1 -1
- package/dist/esm/Pagination.native.js +4 -6
- package/dist/esm/Pagination.native.js.map +1 -1
- package/dist/esm/SheetModal/SheetHeader.mjs +5 -1
- package/dist/esm/SheetModal/SheetHeader.mjs.map +1 -1
- package/dist/esm/SheetModal/SheetHeader.native.js +5 -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/index.mjs +32 -19
- 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/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/appShell/TabBar.mjs.map +1 -1
- package/dist/esm/appShell/TabHost.mjs +25 -0
- package/dist/esm/appShell/TabHost.mjs.map +1 -0
- package/dist/esm/appShell/TabHost.native.js +118 -0
- package/dist/esm/appShell/TabHost.native.js.map +1 -0
- package/dist/esm/appShell/index.mjs +2 -1
- package/dist/esm/appShell/index.mjs.map +1 -1
- package/dist/esm/appShell/index.native.js +2 -1
- package/dist/esm/appShell/index.native.js.map +1 -1
- package/dist/esm/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 +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/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/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/PageTemplates.mjs +2 -1
- package/dist/esm/layouts/PageTemplates.mjs.map +1 -1
- package/dist/esm/layouts/PageTemplates.native.js +3 -1
- package/dist/esm/layouts/PageTemplates.native.js.map +1 -1
- package/dist/esm/layouts/page.mjs +22 -12
- package/dist/esm/layouts/page.mjs.map +1 -1
- package/dist/esm/layouts/page.native.js +27 -16
- package/dist/esm/layouts/page.native.js.map +1 -1
- package/dist/esm/layouts/sidebar.mjs +51 -21
- package/dist/esm/layouts/sidebar.mjs.map +1 -1
- package/dist/esm/layouts/sidebar.native.js +53 -23
- package/dist/esm/layouts/sidebar.native.js.map +1 -1
- package/dist/esm/layouts/toolbar.mjs +9 -6
- package/dist/esm/layouts/toolbar.mjs.map +1 -1
- package/dist/esm/layouts/toolbar.native.js +9 -6
- package/dist/esm/layouts/toolbar.native.js.map +1 -1
- package/dist/esm/views/ImageGrid.mjs +53 -14
- package/dist/esm/views/ImageGrid.mjs.map +1 -1
- package/dist/esm/views/ImageGrid.native.js +56 -15
- package/dist/esm/views/ImageGrid.native.js.map +1 -1
- package/dist/esm/views/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/esm/views/index.mjs +2 -2
- package/dist/esm/views/index.mjs.map +1 -1
- package/dist/esm/views/index.native.js +2 -2
- package/dist/esm/views/index.native.js.map +1 -1
- package/dist/jsx/Accordion/index.native.js +1 -1
- package/dist/jsx/Accordion/index.native.js.map +1 -1
- package/dist/jsx/Alert/index.mjs +5 -0
- package/dist/jsx/Alert/index.mjs.map +1 -1
- package/dist/jsx/Alert/index.native.js +5 -0
- package/dist/jsx/Alert/index.native.js.map +1 -1
- package/dist/jsx/AnimateHeight/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/Badge/index.native.js.map +1 -1
- package/dist/jsx/Button.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/CardFooter.native.js.map +1 -1
- package/dist/jsx/CardHeader.native.js.map +1 -1
- package/dist/jsx/Carousel/index.native.js +3 -3
- 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/Collapsible.native.js.map +1 -1
- package/dist/jsx/ContextMenu/index.native.js.map +1 -1
- package/dist/jsx/CopyField/index.native.js.map +1 -1
- package/dist/jsx/Dialog.native.js.map +1 -1
- package/dist/jsx/DotIndicator/index.native.js.map +1 -1
- package/dist/jsx/DropdownMenu/index.mjs +5 -2
- package/dist/jsx/DropdownMenu/index.mjs.map +1 -1
- package/dist/jsx/DropdownMenu/index.native.js +5 -2
- package/dist/jsx/DropdownMenu/index.native.js.map +1 -1
- package/dist/jsx/DropdownMenu/menuSettle.native.js.map +1 -1
- package/dist/jsx/ErrorBoundary/index.native.js.map +1 -1
- package/dist/jsx/Heading.native.js.map +1 -1
- package/dist/jsx/Kbd/index.native.js.map +1 -1
- package/dist/jsx/Kbd/keys.native.js.map +1 -1
- package/dist/jsx/Lightbox/MediaControl.native.js +1 -1
- package/dist/jsx/Lightbox/MediaControl.native.js.map +1 -1
- package/dist/jsx/Lightbox/index.gnome.native.js.map +1 -1
- package/dist/jsx/Lightbox/index.native.js +1 -1
- package/dist/jsx/Lightbox/shared.native.js.map +1 -1
- package/dist/jsx/Lightbox/useLightbox.native.js.map +1 -1
- package/dist/jsx/Material/index.native.js.map +1 -1
- package/dist/jsx/Meter/index.native.js +1 -1
- package/dist/jsx/Meter/index.native.js.map +1 -1
- package/dist/jsx/Meter/meter.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 +4 -2
- package/dist/jsx/OverflowRow/index.native.js.map +1 -1
- package/dist/jsx/Pagination.mjs +4 -6
- package/dist/jsx/Pagination.mjs.map +1 -1
- package/dist/jsx/Pagination.native.js +5 -7
- package/dist/jsx/Pagination.native.js.map +1 -1
- package/dist/jsx/Popover.native.js.map +1 -1
- package/dist/jsx/ProgressSteps/index.native.js.map +1 -1
- package/dist/jsx/Quote/index.native.js.map +1 -1
- package/dist/jsx/ScrollView/revealFocusedField.native.js.map +1 -1
- package/dist/jsx/Separator/index.native.js.map +1 -1
- package/dist/jsx/Sheet.native.js.map +1 -1
- package/dist/jsx/SheetModal/SheetHeader.mjs +5 -1
- package/dist/jsx/SheetModal/SheetHeader.mjs.map +1 -1
- package/dist/jsx/SheetModal/SheetHeader.native.js +5 -1
- package/dist/jsx/SheetModal/SheetHeader.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/detents.native.js.map +1 -1
- package/dist/jsx/SheetModal/index.mjs +32 -19
- 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/SheetModal/useSheetFrameFocus.native.js.map +1 -1
- package/dist/jsx/Skeleton/index.native.js.map +1 -1
- package/dist/jsx/SkipLink/index.native.js.map +1 -1
- package/dist/jsx/SortableList/SortableHandle.native.js.map +1 -1
- package/dist/jsx/SortableList/index.native.js.map +1 -1
- package/dist/jsx/SortableList/useSortableRows.native.js.map +1 -1
- package/dist/jsx/Tabs/index.native.js +1 -1
- package/dist/jsx/Tabs/index.native.js.map +1 -1
- package/dist/jsx/Text.native.js.map +1 -1
- package/dist/jsx/ThemePlayground/index.mjs +1 -2
- package/dist/jsx/ThemePlayground/index.mjs.map +1 -1
- package/dist/jsx/ThemePresetPicker/index.native.js +2 -2
- package/dist/jsx/ThemePresetPicker/index.native.js.map +1 -1
- package/dist/jsx/Toast/index.native.js.map +1 -1
- package/dist/jsx/Toast/store.native.js.map +1 -1
- package/dist/jsx/Tooltip/nativePress.native.js.map +1 -1
- package/dist/jsx/Tooltip/tooltipShared.native.js.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/TreeSelect/treeSelectModel.native.js.map +1 -1
- package/dist/jsx/Video/PlayerChrome.native.js.map +1 -1
- package/dist/jsx/Video/VideoFrame.native.js.map +1 -1
- package/dist/jsx/Video/types.native.js.map +1 -1
- package/dist/jsx/Wheel/index.native.js.map +1 -1
- package/dist/jsx/Wizard/index.native.js +2 -2
- package/dist/jsx/Wizard/index.native.js.map +1 -1
- package/dist/jsx/actions/ActionBar.native.js.map +1 -1
- package/dist/jsx/actions/DangerSection.native.js.map +1 -1
- package/dist/jsx/actions/DestructiveAction.native.js.map +1 -1
- package/dist/jsx/actions/HeaderActions.native.js +2 -2
- package/dist/jsx/actions/HeaderActions.native.js.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/devWarn.native.js.map +1 -1
- 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/actions/severity.native.js.map +1 -1
- package/dist/jsx/appShell/BottomAccessory.native.js.map +1 -1
- package/dist/jsx/appShell/Dock.native.js.map +1 -1
- package/dist/jsx/appShell/ScopeMenu.native.js.map +1 -1
- package/dist/jsx/appShell/SettingsSplit.native.js +1 -1
- package/dist/jsx/appShell/SettingsSplit.native.js.map +1 -1
- package/dist/jsx/appShell/Springboard.native.js +1 -1
- package/dist/jsx/appShell/Springboard.native.js.map +1 -1
- package/dist/jsx/appShell/SystemBar.native.js.map +1 -1
- package/dist/jsx/appShell/TabBar.mjs.map +1 -1
- package/dist/jsx/appShell/TabBar.native.js +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/appTile.native.js +1 -1
- package/dist/jsx/appShell/appTile.native.js.map +1 -1
- package/dist/jsx/appShell/bottomChrome.native.js.map +1 -1
- 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/charts/Axis.native.js.map +1 -1
- package/dist/jsx/charts/BarChart.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 +11 -21
- package/dist/jsx/charts/ChartDataView.native.js.map +1 -1
- package/dist/jsx/charts/ChartSurface.native.js.map +1 -1
- package/dist/jsx/charts/LineChart.native.js.map +1 -1
- package/dist/jsx/charts/PieChart.native.js.map +1 -1
- package/dist/jsx/charts/Sparkline.native.js.map +1 -1
- package/dist/jsx/charts/accessibility.native.js.map +1 -1
- package/dist/jsx/charts/chartHeight.native.js.map +1 -1
- package/dist/jsx/charts/composeChart.native.js.map +1 -1
- package/dist/jsx/charts/index.native.js.map +1 -1
- package/dist/jsx/charts/math.native.js.map +1 -1
- package/dist/jsx/charts/series.native.js.map +1 -1
- package/dist/jsx/charts/svg.native.js.map +1 -1
- package/dist/jsx/charts/types.native.js.map +1 -1
- package/dist/jsx/charts/useChartTheme.native.js.map +1 -1
- package/dist/jsx/code/Code/index.native.js.map +1 -1
- package/dist/jsx/code/CodeBlock/index.native.js +7 -7
- package/dist/jsx/code/CodeBlock/index.native.js.map +1 -1
- package/dist/jsx/code/HighlightedCode/index.native.js.map +1 -1
- package/dist/jsx/code/Highlighter/houseSyntaxTheme.native.js.map +1 -1
- package/dist/jsx/code/Highlighter/index.native.js.map +1 -1
- package/dist/jsx/code/Highlighter/namedGroupMatchAll.native.js.map +1 -1
- package/dist/jsx/code/Pre/index.native.js.map +1 -1
- package/dist/jsx/code/index.native.js +5 -5
- package/dist/jsx/code/index.native.js.map +1 -1
- package/dist/jsx/componentColors.native.js.map +1 -1
- package/dist/jsx/feedback/ConfirmDialog.native.js.map +1 -1
- package/dist/jsx/feedback/NotifyHost.native.js +2 -2
- package/dist/jsx/feedback/NotifyHost.native.js.map +1 -1
- package/dist/jsx/feedback/copy.native.js.map +1 -1
- package/dist/jsx/feedback/index.native.js.map +1 -1
- package/dist/jsx/feedback/notify.native.js.map +1 -1
- package/dist/jsx/feedback/route.native.js.map +1 -1
- package/dist/jsx/feedback/store.native.js.map +1 -1
- package/dist/jsx/formLayouts/FormLayouts.native.js +1 -1
- package/dist/jsx/formLayouts/FormLayouts.native.js.map +1 -1
- package/dist/jsx/formLayouts/PreferencePanel.native.js +2 -2
- package/dist/jsx/formLayouts/PreferencePanel.native.js.map +1 -1
- package/dist/jsx/formLayouts/index.native.js.map +1 -1
- package/dist/jsx/hooks/index.native.js +1 -1
- package/dist/jsx/hooks/index.native.js.map +1 -1
- package/dist/jsx/hooks/useClipboard.native.js.map +1 -1
- package/dist/jsx/hooks/useDocumentTitle.native.js.map +1 -1
- package/dist/jsx/hooks/useHoldCue.native.js.map +1 -1
- package/dist/jsx/icons/CheckRegular.native.js.map +1 -1
- package/dist/jsx/icons/MinusRegular.native.js.map +1 -1
- package/dist/jsx/icons/index.native.js.map +1 -1
- package/dist/jsx/icons/lucide.native.js.map +1 -1
- package/dist/jsx/icons/themed.native.js.map +1 -1
- package/dist/jsx/images/Image/ImageFrame.native.js +1 -1
- package/dist/jsx/images/Image/ImageFrame.native.js.map +1 -1
- package/dist/jsx/images/Image/framing.native.js.map +1 -1
- package/dist/jsx/images/Image/index.native.js +1 -1
- package/dist/jsx/images/Image/mediaRadius.native.js.map +1 -1
- package/dist/jsx/images/Image/shared.native.js +1 -1
- package/dist/jsx/images/Image/shared.native.js.map +1 -1
- package/dist/jsx/images/Image/types.native.js.map +1 -1
- package/dist/jsx/images/index.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 +37 -35
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/knobImmuneExports.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 +93 -2
- package/dist/jsx/layouts/AsyncBoundary.native.js.map +1 -1
- package/dist/jsx/layouts/Debug/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/IdentityPlate.native.js.map +1 -1
- package/dist/jsx/layouts/KeyboardAvoidingWrapper/behavior.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/PaneScaffold.native.js.map +1 -1
- package/dist/jsx/layouts/SafeAreaWrapper/insets.native.js.map +1 -1
- package/dist/jsx/layouts/StatusDot.native.js.map +1 -1
- package/dist/jsx/layouts/ViewSwitcher.native.js.map +1 -1
- package/dist/jsx/layouts/attachments.native.js +1 -1
- package/dist/jsx/layouts/attachments.native.js.map +1 -1
- package/dist/jsx/layouts/breadcrumbs.native.js.map +1 -1
- package/dist/jsx/layouts/index.native.js +3 -3
- package/dist/jsx/layouts/index.native.js.map +1 -1
- package/dist/jsx/layouts/page.mjs +22 -12
- package/dist/jsx/layouts/page.mjs.map +1 -1
- package/dist/jsx/layouts/page.native.js +29 -18
- package/dist/jsx/layouts/page.native.js.map +1 -1
- package/dist/jsx/layouts/pageHeadingScope.native.js.map +1 -1
- package/dist/jsx/layouts/screenScroll.native.js.map +1 -1
- package/dist/jsx/layouts/shellSidebarSlot.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 +54 -24
- package/dist/jsx/layouts/sidebar.native.js.map +1 -1
- package/dist/jsx/layouts/tags.native.js +2 -2
- package/dist/jsx/layouts/tags.native.js.map +1 -1
- package/dist/jsx/layouts/timeline.native.js +2 -2
- package/dist/jsx/layouts/timeline.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 +10 -7
- package/dist/jsx/layouts/toolbar.native.js.map +1 -1
- package/dist/jsx/shared/actionScan.native.js.map +1 -1
- package/dist/jsx/shared/i18n.native.js.map +1 -1
- package/dist/jsx/shared/restoreRetries.native.js.map +1 -1
- package/dist/jsx/shared/t.native.js.map +1 -1
- package/dist/jsx/shared/textRidesText.native.js.map +1 -1
- package/dist/jsx/shared/useReturnFocusOnClose.native.js.map +1 -1
- package/dist/jsx/surfaces.native.js +1 -1
- package/dist/jsx/surfaces.native.js.map +1 -1
- package/dist/jsx/tamagui.native.js +1 -1
- package/dist/jsx/tamagui.native.js.map +1 -1
- package/dist/jsx/testSetup.native.js.map +1 -1
- package/dist/jsx/utils/setTinted.native.js.map +1 -1
- package/dist/jsx/utils/unwrapText.native.js.map +1 -1
- package/dist/jsx/views/Calendar.native.js +1 -1
- package/dist/jsx/views/Calendar.native.js.map +1 -1
- package/dist/jsx/views/Dashboard.native.js +2 -2
- package/dist/jsx/views/Dashboard.native.js.map +1 -1
- package/dist/jsx/views/Gantt.native.js +2 -2
- package/dist/jsx/views/Gantt.native.js.map +1 -1
- package/dist/jsx/views/GanttDateGrip.native.js.map +1 -1
- package/dist/jsx/views/ImageGrid.mjs +53 -14
- package/dist/jsx/views/ImageGrid.mjs.map +1 -1
- package/dist/jsx/views/ImageGrid.native.js +60 -17
- package/dist/jsx/views/ImageGrid.native.js.map +1 -1
- package/dist/jsx/views/Kanban.native.js +1 -1
- package/dist/jsx/views/List.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/ListRow.native.js.map +1 -1
- package/dist/jsx/views/Matrix.native.js +2 -2
- package/dist/jsx/views/Matrix.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 +5 -8
- package/dist/jsx/views/ReportBuilder.native.js.map +1 -1
- package/dist/jsx/views/ShortcutCard.native.js.map +1 -1
- package/dist/jsx/views/TreeView.native.js.map +1 -1
- package/dist/jsx/views/calendarMath.native.js.map +1 -1
- package/dist/jsx/views/ganttIntervals.native.js.map +1 -1
- package/dist/jsx/views/ganttMath.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 +3 -1
- package/dist/jsx/views/index.native.js.map +1 -1
- package/dist/jsx/views/kanbanDnd.native.js.map +1 -1
- package/dist/jsx/views/matrixMath.native.js.map +1 -1
- package/dist/jsx/views/treeViewDnd.native.js.map +1 -1
- package/dist/jsx/views/treeViewLayout.native.js.map +1 -1
- package/dist/jsx/views/treeViewMotion.native.js.map +1 -1
- package/dist/jsx/views/treeViewReveal.native.js.map +1 -1
- package/dist/jsx/views/widgetChrome.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/AlertDialogContent.stories.tsx +4 -3
- 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/Button.stories.tsx +1 -1
- package/src/Card.spec.tsx +45 -0
- package/src/Card.stories.tsx +7 -6
- package/src/Card.tsx +57 -18
- package/src/CardFooter.stories.tsx +3 -2
- package/src/CardHeader.stories.tsx +2 -1
- package/src/Chip/Chip.spec.tsx +72 -1
- package/src/Chip/index.tsx +86 -7
- package/src/DialogContent.stories.tsx +9 -11
- package/src/DropdownMenu/DropdownMenu.avatarTrigger.spec.tsx +62 -0
- package/src/DropdownMenu/DropdownMenu.stories.tsx +47 -1
- package/src/DropdownMenu/index.tsx +7 -3
- package/src/OverflowRow/OverflowRow.native.spec.tsx +17 -2
- package/src/OverflowRow/index.tsx +6 -2
- package/src/Pagination.spec.tsx +43 -15
- package/src/Pagination.tsx +11 -9
- package/src/Panel.stories.tsx +5 -6
- package/src/SheetModal/SheetHeader.tsx +3 -2
- 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.spec.tsx +7 -3
- package/src/SheetModal/SheetModal.stories.tsx +30 -20
- package/src/SheetModal/SheetNavigation.tsx +93 -0
- package/src/SheetModal/index.native.tsx +108 -69
- package/src/SheetModal/index.tsx +39 -22
- package/src/SkipLink/SkipLink.stories.tsx +2 -2
- package/src/Tabs/Tabs.stories.tsx +2 -2
- package/src/ThemePlayground/index.tsx +1 -2
- package/src/Tooltip/Tooltip.spec.tsx +2 -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/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/charts/ChartDataView.tsx +9 -14
- package/src/icons/nativeIconInk.dark.spec.tsx +159 -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/EmptyState.stories.tsx +3 -2
- package/src/layouts/EmptyState.tsx +0 -1
- package/src/layouts/PageHeader.stories.tsx +88 -4
- package/src/layouts/PageTemplates.spec.tsx +28 -1
- package/src/layouts/PageTemplates.stories.tsx +6 -7
- package/src/layouts/PageTemplates.tsx +8 -1
- package/src/layouts/ScreenToolbar.stories.tsx +3 -2
- package/src/layouts/Sidebar.spec.tsx +48 -0
- package/src/layouts/layouts.spec.tsx +33 -0
- package/src/layouts/navBar.spec.tsx +22 -0
- package/src/layouts/page.tsx +31 -13
- 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/surfaces.spec.tsx +60 -0
- package/src/views/ImageGrid.photos.spec.tsx +46 -0
- package/src/views/ImageGrid.tsx +52 -27
- 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/src/views/index.ts +8 -1
- package/types/Alert/index.d.ts.map +1 -1
- package/types/Avatar/getInitials.d.ts +3 -27
- package/types/Avatar/getInitials.d.ts.map +1 -1
- package/types/Avatar/index.d.ts +15 -2
- package/types/Avatar/index.d.ts.map +1 -1
- package/types/Card.d.ts +15 -1
- package/types/Card.d.ts.map +1 -1
- package/types/Chip/index.d.ts +38 -3
- package/types/Chip/index.d.ts.map +1 -1
- package/types/DropdownMenu/index.d.ts +2 -1
- package/types/DropdownMenu/index.d.ts.map +1 -1
- package/types/OverflowRow/index.d.ts.map +1 -1
- package/types/Pagination.d.ts +4 -1
- package/types/Pagination.d.ts.map +1 -1
- package/types/SheetModal/SheetHeader.d.ts +1 -1
- package/types/SheetModal/SheetHeader.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/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/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/charts/ChartDataView.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/EmptyState.d.ts.map +1 -1
- package/types/layouts/PageTemplates.d.ts.map +1 -1
- package/types/layouts/page.d.ts.map +1 -1
- package/types/layouts/sidebar.d.ts +25 -3
- package/types/layouts/sidebar.d.ts.map +1 -1
- package/types/layouts/toolbar.d.ts +9 -0
- package/types/layouts/toolbar.d.ts.map +1 -1
- package/types/views/ImageGrid.d.ts +19 -1
- package/types/views/ImageGrid.d.ts.map +1 -1
- package/types/views/ListGroup.d.ts +4 -1
- package/types/views/ListGroup.d.ts.map +1 -1
- package/types/views/ReportBuilder.d.ts.map +1 -1
- package/types/views/index.d.ts +1 -1
- package/types/views/index.d.ts.map +1 -1
|
@@ -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", () => {
|
|
@@ -23,10 +23,10 @@ import type { Meta, StoryObj } from "@storybook/react-native-web-vite";
|
|
|
23
23
|
import { useRef, useState } from "react";
|
|
24
24
|
import { Platform, useWindowDimensions, type LayoutChangeEvent } from "react-native";
|
|
25
25
|
import { YStack } from "tamagui";
|
|
26
|
-
import { ActionBar } from "../actions/ActionBar";
|
|
27
26
|
import { DangerSection } from "../actions/DangerSection";
|
|
28
27
|
import { DestructiveAction } from "../actions/DestructiveAction";
|
|
29
28
|
import { HeaderActions } from "../actions/HeaderActions";
|
|
29
|
+
import { OverlayHeader } from "../actions/StandardAction";
|
|
30
30
|
import { SheetModal } from "./index";
|
|
31
31
|
import { Paragraph, SizableText } from "../Text";
|
|
32
32
|
|
|
@@ -51,7 +51,15 @@ function Harness({
|
|
|
51
51
|
onOpenChange={setOpen}
|
|
52
52
|
scrollable={scrollable}
|
|
53
53
|
{...(snapPoint === undefined ? {} : { snapPoint })}
|
|
54
|
-
header={
|
|
54
|
+
header={
|
|
55
|
+
<OverlayHeader
|
|
56
|
+
title="Move to project"
|
|
57
|
+
closeKind="cancel"
|
|
58
|
+
onClose={() => setOpen(false)}
|
|
59
|
+
onConfirm={() => setOpen(false)}
|
|
60
|
+
confirmLabel="Move"
|
|
61
|
+
/>
|
|
62
|
+
}
|
|
55
63
|
>
|
|
56
64
|
{scrollable ? (
|
|
57
65
|
<YStack gap="$2">
|
|
@@ -60,22 +68,10 @@ function Harness({
|
|
|
60
68
|
))}
|
|
61
69
|
</YStack>
|
|
62
70
|
) : (
|
|
63
|
-
<YStack gap="$
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
<ActionBar
|
|
68
|
-
cancel={
|
|
69
|
-
<Button chromeless onPress={() => setOpen(false)}>
|
|
70
|
-
Cancel
|
|
71
|
-
</Button>
|
|
72
|
-
}
|
|
73
|
-
primary={
|
|
74
|
-
<Button accent onPress={() => setOpen(false)}>
|
|
75
|
-
Move
|
|
76
|
-
</Button>
|
|
77
|
-
}
|
|
78
|
-
/>
|
|
71
|
+
<YStack gap="$2">
|
|
72
|
+
{["Inbox", "Launch", "Backlog"].map((project) => (
|
|
73
|
+
<Paragraph key={project}>{project}</Paragraph>
|
|
74
|
+
))}
|
|
79
75
|
</YStack>
|
|
80
76
|
)}
|
|
81
77
|
</SheetModal>
|
|
@@ -152,6 +148,11 @@ const regionOptions = [
|
|
|
152
148
|
"Tokyo",
|
|
153
149
|
].map((label) => ({ label, value: label.toLowerCase() }));
|
|
154
150
|
|
|
151
|
+
const restartOptions = ["Always", "On failure", "Unless stopped", "Never"].map((label) => ({
|
|
152
|
+
label,
|
|
153
|
+
value: label.toLowerCase().replace(/ /g, "-"),
|
|
154
|
+
}));
|
|
155
|
+
|
|
155
156
|
const noop = () => {};
|
|
156
157
|
|
|
157
158
|
/** Stop and Restart: the stack's frequent actions, shown, never hidden (LC-262). */
|
|
@@ -172,13 +173,16 @@ const pageActions = [
|
|
|
172
173
|
* FZ-7830, LC-262 DIRECT-ACTIONS. The sheet's frequent actions are icon
|
|
173
174
|
* buttons in its header, Uninstall sits in a Danger section at the end with
|
|
174
175
|
* its confirm, and the five-option Exposure lays out inline with its glyphs.
|
|
175
|
-
*
|
|
176
|
-
*
|
|
176
|
+
* Round 3: the eight-option Region is a Settings row that pushes its
|
|
177
|
+
* checkmark list inside the sheet, and the four-option Restart policy opens a
|
|
178
|
+
* menu beside its field, never over it. On the page, past three actions "…"
|
|
179
|
+
* holds the rest, and the short Select opens over its trigger.
|
|
177
180
|
*/
|
|
178
181
|
function MenusHarness({ startOpen = false }: { startOpen?: boolean }) {
|
|
179
182
|
const [open, setOpen] = useState(startOpen);
|
|
180
183
|
const [exposure, setExposure] = useState("tailnet");
|
|
181
184
|
const [region, setRegion] = useState("helsinki");
|
|
185
|
+
const [restart, setRestart] = useState("always");
|
|
182
186
|
return (
|
|
183
187
|
<FixtureStack minHeight={480} gap="$3" padding="$4">
|
|
184
188
|
<XStack alignItems="center" justifyContent="space-between" gap="$3">
|
|
@@ -211,6 +215,12 @@ function MenusHarness({ startOpen = false }: { startOpen?: boolean }) {
|
|
|
211
215
|
value={region}
|
|
212
216
|
onValueChange={(value) => setRegion(value as string)}
|
|
213
217
|
/>
|
|
218
|
+
<Select
|
|
219
|
+
label="Restart policy"
|
|
220
|
+
options={restartOptions}
|
|
221
|
+
value={restart}
|
|
222
|
+
onValueChange={(value) => setRestart(value as string)}
|
|
223
|
+
/>
|
|
214
224
|
<DangerSection>
|
|
215
225
|
<DestructiveAction verb="Uninstall" noun="keycloak" severity="medium" onAction={noop} />
|
|
216
226
|
</DangerSection>
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createSheetNavigationStore,
|
|
3
|
+
SheetNavigationProvider,
|
|
4
|
+
useSheetPages,
|
|
5
|
+
type SheetNavigationStore,
|
|
6
|
+
} from "@multiplatform.one/forms";
|
|
7
|
+
import { transitionProps, useResolvedKnobs } from "@multiplatform.one/theme";
|
|
8
|
+
import { useEffect, useState, type ReactNode } from "react";
|
|
9
|
+
import { ScrollView, SizableText, XStack, YStack } from "tamagui";
|
|
10
|
+
import { PageBackButton } from "../layouts/page";
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* The sheet's navigation stack (LC-262, FZ-7830 round 3): a pushed page, such
|
|
14
|
+
* as a long choice list, takes the sheet's place with a back control and its
|
|
15
|
+
* title, sliding in from the trailing edge. The root stays mounted beneath it,
|
|
16
|
+
* so the field that pushed the page keeps its state.
|
|
17
|
+
*/
|
|
18
|
+
export function SheetNavigation({
|
|
19
|
+
open,
|
|
20
|
+
root,
|
|
21
|
+
gap,
|
|
22
|
+
fill,
|
|
23
|
+
}: {
|
|
24
|
+
open: boolean;
|
|
25
|
+
root: ReactNode;
|
|
26
|
+
gap?: string | number;
|
|
27
|
+
fill?: boolean;
|
|
28
|
+
}) {
|
|
29
|
+
const [store] = useState<SheetNavigationStore>(createSheetNavigationStore);
|
|
30
|
+
const pages = useSheetPages(store);
|
|
31
|
+
const top = pages.at(-1);
|
|
32
|
+
|
|
33
|
+
useEffect(() => {
|
|
34
|
+
if (!open) for (const page of store.getPages()) store.remove(page.id);
|
|
35
|
+
}, [open, store]);
|
|
36
|
+
|
|
37
|
+
return (
|
|
38
|
+
<SheetNavigationProvider value={store}>
|
|
39
|
+
<YStack
|
|
40
|
+
gap={gap}
|
|
41
|
+
flexShrink={1}
|
|
42
|
+
minHeight={0}
|
|
43
|
+
{...(fill ? { flex: 1 } : null)}
|
|
44
|
+
display={top ? "none" : "flex"}
|
|
45
|
+
aria-hidden={top ? true : undefined}
|
|
46
|
+
>
|
|
47
|
+
{root}
|
|
48
|
+
</YStack>
|
|
49
|
+
{top ? (
|
|
50
|
+
<SheetPageView key={top.id} title={top.title} onBack={() => store.pop()}>
|
|
51
|
+
{top.content}
|
|
52
|
+
</SheetPageView>
|
|
53
|
+
) : null}
|
|
54
|
+
</SheetNavigationProvider>
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function SheetPageView({
|
|
59
|
+
title,
|
|
60
|
+
onBack,
|
|
61
|
+
children,
|
|
62
|
+
}: {
|
|
63
|
+
title: string;
|
|
64
|
+
onBack: () => void;
|
|
65
|
+
children: ReactNode;
|
|
66
|
+
}) {
|
|
67
|
+
const { knobProps } = useResolvedKnobs();
|
|
68
|
+
return (
|
|
69
|
+
<YStack
|
|
70
|
+
testID="sheet-modal-page"
|
|
71
|
+
gap={knobProps.gap.gap}
|
|
72
|
+
flexShrink={1}
|
|
73
|
+
minHeight={0}
|
|
74
|
+
{...transitionProps(knobProps.motion.slide)}
|
|
75
|
+
enterStyle={{ x: 16, opacity: 0 }}
|
|
76
|
+
>
|
|
77
|
+
<XStack alignItems="center" gap="$2" testID="sheet-modal-page-bar">
|
|
78
|
+
<PageBackButton onPress={onBack} />
|
|
79
|
+
<SizableText {...knobProps.heading} role="heading" flex={1} numberOfLines={1}>
|
|
80
|
+
{title}
|
|
81
|
+
</SizableText>
|
|
82
|
+
</XStack>
|
|
83
|
+
<ScrollView
|
|
84
|
+
flexShrink={1}
|
|
85
|
+
minHeight={0}
|
|
86
|
+
keyboardShouldPersistTaps="handled"
|
|
87
|
+
testID="sheet-modal-page-scroll"
|
|
88
|
+
>
|
|
89
|
+
{children}
|
|
90
|
+
</ScrollView>
|
|
91
|
+
</YStack>
|
|
92
|
+
);
|
|
93
|
+
}
|
|
@@ -8,11 +8,23 @@
|
|
|
8
8
|
* Apple / gorhom anatomy: grabber, themed surface, top-only radius, backdrop
|
|
9
9
|
* tap + Android back + VoiceOver escape dismiss, keyboard avoiding, content
|
|
10
10
|
* height with a large-detent cap. LC-71: the frame is not a control.
|
|
11
|
+
*
|
|
12
|
+
* Regular width (FZ-8116, LC-266): an iPad or any window wider than
|
|
13
|
+
* OVERLAY_BREAKPOINT gets the same sheet as a panel: it slides up from the
|
|
14
|
+
* bottom edge with its grabber and detents, capped at SHEET_PANEL_WIDTH and
|
|
15
|
+
* centred, on the elevated overlay surface. Drover's composer sheets set the
|
|
16
|
+
* shape. A tap on the scrim either side of it dismisses, as above it.
|
|
11
17
|
*/
|
|
12
18
|
|
|
13
|
-
import {
|
|
19
|
+
import {
|
|
20
|
+
OverlayWindow,
|
|
21
|
+
overlaySizeClass,
|
|
22
|
+
sheetPanelWidth,
|
|
23
|
+
useOverlayZIndex,
|
|
24
|
+
} from "@multiplatform.one/forms";
|
|
14
25
|
import {
|
|
15
26
|
motionDurationMs,
|
|
27
|
+
Surface,
|
|
16
28
|
useResolvedKnobs,
|
|
17
29
|
type MotionStop,
|
|
18
30
|
nativeAnimationConfig as animationConfig,
|
|
@@ -49,6 +61,7 @@ import { DialogRegionContext } from "../surfaces";
|
|
|
49
61
|
|
|
50
62
|
import type { SheetModalProps } from "./index";
|
|
51
63
|
import { SheetHeader } from "./SheetHeader";
|
|
64
|
+
import { SheetNavigation } from "./SheetNavigation";
|
|
52
65
|
export type { SheetModalProps } from "./index";
|
|
53
66
|
|
|
54
67
|
const bottomInset = Platform.OS === "ios" ? 24 : 16;
|
|
@@ -99,7 +112,8 @@ export function SheetModal({
|
|
|
99
112
|
typeof slideTransition === "string"
|
|
100
113
|
? animationConfig[slideTransition as MotionStop]
|
|
101
114
|
: undefined;
|
|
102
|
-
const { height: windowHeight } = useWindowDimensions();
|
|
115
|
+
const { width: windowWidth, height: windowHeight } = useWindowDimensions();
|
|
116
|
+
const regular = overlaySizeClass(windowWidth) === "regular";
|
|
103
117
|
const keyboardInset = useKeyboardInset();
|
|
104
118
|
const topInset = useContext(SafeAreaInsetsContext)?.top ?? initialWindowMetrics?.insets.top ?? 0;
|
|
105
119
|
const [backdropArmed, setBackdropArmed] = useState(false);
|
|
@@ -393,7 +407,12 @@ export function SheetModal({
|
|
|
393
407
|
>
|
|
394
408
|
<OverlayWindow zIndex={windowZIndex}>
|
|
395
409
|
<RNView
|
|
396
|
-
style={{
|
|
410
|
+
style={{
|
|
411
|
+
flex: 1,
|
|
412
|
+
justifyContent: "flex-end",
|
|
413
|
+
alignItems: regular ? "center" : undefined,
|
|
414
|
+
paddingBottom: keyboardInset,
|
|
415
|
+
}}
|
|
397
416
|
onTouchStart={stopAtModal}
|
|
398
417
|
onTouchMove={stopAtModal}
|
|
399
418
|
onTouchEnd={stopAtModal}
|
|
@@ -418,6 +437,7 @@ export function SheetModal({
|
|
|
418
437
|
}}
|
|
419
438
|
testID="sheet-modal-frame"
|
|
420
439
|
style={{
|
|
440
|
+
...(regular ? { width: sheetPanelWidth(windowWidth) } : null),
|
|
421
441
|
// MPO-64: flex children default to flexShrink 0, so without this
|
|
422
442
|
// the sheet cannot give way to the keyboard.
|
|
423
443
|
flexShrink: 1,
|
|
@@ -431,18 +451,18 @@ export function SheetModal({
|
|
|
431
451
|
>
|
|
432
452
|
<YStack
|
|
433
453
|
testID="sheet-modal-surface"
|
|
434
|
-
{
|
|
454
|
+
data-sheet-form={regular ? "panel" : "bottom"}
|
|
455
|
+
{...(regular ? knobProps.elevatedSurface : knobProps.surface)}
|
|
435
456
|
{...knobProps.borderRadius}
|
|
436
457
|
borderBottomLeftRadius={0}
|
|
437
458
|
borderBottomRightRadius={0}
|
|
438
|
-
elevation
|
|
459
|
+
{...(regular ? { borderBottomWidth: 0 } : { elevation: knobProps.elevation })}
|
|
439
460
|
maxHeight={maxHeight}
|
|
440
461
|
flexShrink={1}
|
|
441
462
|
minHeight={0}
|
|
442
463
|
{...(fill ? fillSlot : null)}
|
|
443
464
|
paddingTop="$2"
|
|
444
465
|
paddingBottom={keyboardInset > 0 ? 8 : bottomInset}
|
|
445
|
-
overflow="hidden"
|
|
446
466
|
// No focus or press pseudo on this surface: on native tamagui
|
|
447
467
|
// turns one into a touch-responder claim, and a responder here
|
|
448
468
|
// takes every drag from the ScrollView inside (MPO-299).
|
|
@@ -455,71 +475,90 @@ export function SheetModal({
|
|
|
455
475
|
it that is, so it is the only thing that takes the gesture, and
|
|
456
476
|
it never fights the ScrollView below.
|
|
457
477
|
*/}
|
|
458
|
-
<
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
paddingTop: 3,
|
|
467
|
-
paddingBottom: 11,
|
|
468
|
-
...(fill ? nonShrinking : null),
|
|
469
|
-
}}
|
|
478
|
+
<YStack
|
|
479
|
+
testID="sheet-modal-clip"
|
|
480
|
+
overflow="hidden"
|
|
481
|
+
borderTopLeftRadius={knobProps.borderRadius.borderRadius}
|
|
482
|
+
borderTopRightRadius={knobProps.borderRadius.borderRadius}
|
|
483
|
+
flexShrink={1}
|
|
484
|
+
minHeight={0}
|
|
485
|
+
{...(fill ? fillSlot : null)}
|
|
470
486
|
>
|
|
471
|
-
<
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
padding={knobProps.panelPadding.padding}
|
|
484
|
-
gap={knobProps.gap.gap}
|
|
485
|
-
flexShrink={1}
|
|
486
|
-
{...(fill ? fillSlot : null)}
|
|
487
|
+
<RNView
|
|
488
|
+
{...panResponder.panHandlers}
|
|
489
|
+
accessibilityRole="adjustable"
|
|
490
|
+
accessibilityLabel={t("Drag to resize")}
|
|
491
|
+
testID="sheet-modal-grabber"
|
|
492
|
+
style={{
|
|
493
|
+
alignSelf: "stretch",
|
|
494
|
+
alignItems: "center",
|
|
495
|
+
paddingTop: 3,
|
|
496
|
+
paddingBottom: 11,
|
|
497
|
+
...(fill ? nonShrinking : null),
|
|
498
|
+
}}
|
|
487
499
|
>
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
500
|
+
<View
|
|
501
|
+
width={36}
|
|
502
|
+
height={5}
|
|
503
|
+
borderRadius={100}
|
|
504
|
+
backgroundColor="$color8"
|
|
505
|
+
opacity={0.45}
|
|
506
|
+
accessible={false}
|
|
507
|
+
/>
|
|
508
|
+
</RNView>
|
|
509
|
+
<DialogRegionContext.Provider value={IN_DIALOG_REGION}>
|
|
510
|
+
<Surface elevated={regular || undefined}>
|
|
511
|
+
<YStack
|
|
512
|
+
testID="sheet-modal-content"
|
|
513
|
+
padding={knobProps.panelPadding.padding}
|
|
514
|
+
gap={knobProps.gap.gap}
|
|
515
|
+
flexShrink={1}
|
|
516
|
+
{...(fill ? fillSlot : null)}
|
|
517
|
+
>
|
|
518
|
+
<SheetNavigation
|
|
519
|
+
open={open}
|
|
520
|
+
gap={knobProps.gap.gap}
|
|
521
|
+
fill={fill}
|
|
522
|
+
root={
|
|
523
|
+
fill ? (
|
|
524
|
+
<>
|
|
525
|
+
{header ? <RNView style={nonShrinking}>{header}</RNView> : null}
|
|
526
|
+
<RNView testID="sheet-modal-body" style={fillSlot}>
|
|
527
|
+
{scrollable ? (
|
|
528
|
+
<RNScrollView
|
|
529
|
+
testID="sheet-modal-scroll"
|
|
530
|
+
style={fillSlot}
|
|
531
|
+
keyboardShouldPersistTaps="handled"
|
|
532
|
+
>
|
|
533
|
+
{children}
|
|
534
|
+
</RNScrollView>
|
|
535
|
+
) : (
|
|
536
|
+
children
|
|
537
|
+
)}
|
|
538
|
+
</RNView>
|
|
539
|
+
</>
|
|
540
|
+
) : (
|
|
541
|
+
<>
|
|
542
|
+
{header}
|
|
543
|
+
{scrollable ? (
|
|
544
|
+
<RNScrollView
|
|
545
|
+
testID="sheet-modal-scroll"
|
|
546
|
+
style={{ flexGrow: 0 }}
|
|
547
|
+
keyboardShouldPersistTaps="handled"
|
|
548
|
+
>
|
|
549
|
+
{children}
|
|
550
|
+
</RNScrollView>
|
|
551
|
+
) : (
|
|
552
|
+
children
|
|
553
|
+
)}
|
|
554
|
+
</>
|
|
555
|
+
)
|
|
556
|
+
}
|
|
557
|
+
/>
|
|
558
|
+
</YStack>
|
|
559
|
+
</Surface>
|
|
560
|
+
</DialogRegionContext.Provider>
|
|
561
|
+
</YStack>
|
|
523
562
|
</YStack>
|
|
524
563
|
</Animated.View>
|
|
525
564
|
</RNView>
|
package/src/SheetModal/index.tsx
CHANGED
|
@@ -11,11 +11,13 @@
|
|
|
11
11
|
|
|
12
12
|
import { transitionProps, useResolvedKnobs } from "@multiplatform.one/theme";
|
|
13
13
|
import { OverlayStackProvider, useOverlayZIndex } from "@multiplatform.one/forms";
|
|
14
|
-
import { useEffect, useId, useRef, type ReactNode } from "react";
|
|
14
|
+
import { isValidElement, useEffect, useId, useRef, type ReactNode } from "react";
|
|
15
15
|
import { isWeb, Sheet, View, useWindowDimensions } from "tamagui";
|
|
16
|
+
import { OverlayHeader, OverlayTitleIdContext } from "../actions/StandardAction";
|
|
16
17
|
import { DialogRegionContext, SheetFrame } from "../surfaces";
|
|
17
18
|
import { largeDetentRatio, resolveWebSnap } from "./detents";
|
|
18
19
|
import { SheetHeader } from "./SheetHeader";
|
|
20
|
+
import { SheetNavigation } from "./SheetNavigation";
|
|
19
21
|
import { useSheetFrameFocus } from "./useSheetFrameFocus";
|
|
20
22
|
|
|
21
23
|
export interface SheetModalProps {
|
|
@@ -91,12 +93,13 @@ export function SheetModal({
|
|
|
91
93
|
fill = false,
|
|
92
94
|
}: SheetModalProps) {
|
|
93
95
|
const titleId = useId();
|
|
96
|
+
const overlayHeader = isValidElement(headerContent) && headerContent.type === OverlayHeader;
|
|
94
97
|
const header =
|
|
95
98
|
headerContent || headerActions ? (
|
|
96
99
|
<SheetHeader
|
|
97
100
|
header={headerContent}
|
|
98
101
|
actions={headerActions}
|
|
99
|
-
titleId={headerActions ? titleId : undefined}
|
|
102
|
+
titleId={headerActions && !overlayHeader ? titleId : undefined}
|
|
100
103
|
/>
|
|
101
104
|
) : null;
|
|
102
105
|
const snap = resolveWebSnap({ snapPoint, fill });
|
|
@@ -154,26 +157,40 @@ export function SheetModal({
|
|
|
154
157
|
>
|
|
155
158
|
<DialogRegionContext.Provider value={IN_DIALOG_REGION}>
|
|
156
159
|
<OverlayStackProvider zIndex={sheetZIndex}>
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
160
|
+
<SheetNavigation
|
|
161
|
+
open={open}
|
|
162
|
+
gap={knobProps.gap.gap}
|
|
163
|
+
fill={fill}
|
|
164
|
+
root={
|
|
165
|
+
<>
|
|
166
|
+
{header ? (
|
|
167
|
+
<View
|
|
168
|
+
id={overlayHeader || headerActions ? undefined : titleId}
|
|
169
|
+
{...(fill ? nonShrinking : null)}
|
|
170
|
+
>
|
|
171
|
+
<OverlayTitleIdContext.Provider value={overlayHeader ? titleId : undefined}>
|
|
172
|
+
{header}
|
|
173
|
+
</OverlayTitleIdContext.Provider>
|
|
174
|
+
</View>
|
|
175
|
+
) : null}
|
|
176
|
+
{fill ? (
|
|
177
|
+
<View testID="sheet-modal-body" {...fillSlot}>
|
|
178
|
+
{scrollable ? (
|
|
179
|
+
<Sheet.ScrollView testID="sheet-modal-scroll" {...fillSlot}>
|
|
180
|
+
{children}
|
|
181
|
+
</Sheet.ScrollView>
|
|
182
|
+
) : (
|
|
183
|
+
children
|
|
184
|
+
)}
|
|
185
|
+
</View>
|
|
186
|
+
) : scrollable ? (
|
|
187
|
+
<Sheet.ScrollView testID="sheet-modal-scroll">{children}</Sheet.ScrollView>
|
|
188
|
+
) : (
|
|
189
|
+
children
|
|
190
|
+
)}
|
|
191
|
+
</>
|
|
192
|
+
}
|
|
193
|
+
/>
|
|
177
194
|
<View
|
|
178
195
|
style={{ height: "env(safe-area-inset-bottom)" }}
|
|
179
196
|
{...(fill ? nonShrinking : null)}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/react-native-web-vite";
|
|
2
2
|
import { Button, Input } from "@multiplatform.one/forms";
|
|
3
3
|
import { XStack, YStack, View } from "tamagui";
|
|
4
|
+
import { ActionButton } from "../actions/StandardAction";
|
|
4
5
|
import { SkipLink } from "./index";
|
|
5
6
|
import { SizableText } from "../Text";
|
|
6
7
|
|
|
@@ -39,7 +40,6 @@ export const Default: Story = {
|
|
|
39
40
|
</SizableText>
|
|
40
41
|
<XStack gap="$2" alignItems="center" flexWrap="wrap">
|
|
41
42
|
<Button size="$3">File</Button>
|
|
42
|
-
<Button size="$3">Edit</Button>
|
|
43
43
|
<Button size="$3">View</Button>
|
|
44
44
|
<Button size="$3">Workspace</Button>
|
|
45
45
|
<Button size="$3">Help</Button>
|
|
@@ -64,7 +64,7 @@ export const Default: Story = {
|
|
|
64
64
|
<Input label="Full name" placeholder="Ada Lovelace" />
|
|
65
65
|
<Input label="Email" placeholder="ada@example.com" />
|
|
66
66
|
<XStack>
|
|
67
|
-
<
|
|
67
|
+
<ActionButton kind="save" />
|
|
68
68
|
</XStack>
|
|
69
69
|
</YStack>
|
|
70
70
|
</View>
|
|
@@ -88,12 +88,12 @@ const baseItems: TabsItem[] = [
|
|
|
88
88
|
export const Underline: Story = {
|
|
89
89
|
name: "Main",
|
|
90
90
|
args: { variant: "underline" },
|
|
91
|
-
render: (args) => <Tabs items={baseItems}
|
|
91
|
+
render: (args) => <Tabs {...args} items={baseItems} />,
|
|
92
92
|
};
|
|
93
93
|
|
|
94
94
|
export const Contained: Story = {
|
|
95
95
|
args: { variant: "contained" },
|
|
96
|
-
render: (args) => <Tabs items={baseItems.slice(0, 3)}
|
|
96
|
+
render: (args) => <Tabs {...args} items={baseItems.slice(0, 3)} />,
|
|
97
97
|
};
|
|
98
98
|
|
|
99
99
|
export const Intents: Story = {
|
|
@@ -46,8 +46,7 @@ export function ThemePlayground({ testID }: ThemePlaygroundProps) {
|
|
|
46
46
|
<>
|
|
47
47
|
<Tooltip content={t("Restyle the page live: scheme, preset and style knobs")}>
|
|
48
48
|
<Button
|
|
49
|
-
|
|
50
|
-
theme={open ? "accent" : undefined}
|
|
49
|
+
selected={open}
|
|
51
50
|
onPress={() => change(true)}
|
|
52
51
|
icon={<PaletteIcon size={16} />}
|
|
53
52
|
aria-label={t("Theme")}
|
|
@@ -148,13 +148,13 @@ describe("Tooltip content rides the border, elevation and animation knobs", () =
|
|
|
148
148
|
return measured;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
-
it("follows each stop on the mounted bubble
|
|
151
|
+
it("follows each stop on the mounted bubble; none keeps only the light hairline edge (LC-85, FZ-8116)", async () => {
|
|
152
152
|
const none = await measure(stops[0]);
|
|
153
153
|
const small = await measure(stops[1]);
|
|
154
154
|
const large = await measure(stops[2]);
|
|
155
155
|
expect(none).toEqual({
|
|
156
156
|
mounted: true,
|
|
157
|
-
border: "_btw-
|
|
157
|
+
border: "_btw-1px",
|
|
158
158
|
shadow: undefined,
|
|
159
159
|
transition: undefined,
|
|
160
160
|
});
|
|
@@ -54,7 +54,7 @@ export const LongContent: Story = {
|
|
|
54
54
|
render: () => (
|
|
55
55
|
<YStack padding="$8" alignItems="center">
|
|
56
56
|
<Tooltip content="Saving applies your new settings right away. You can change them later from Preferences.">
|
|
57
|
-
<Button>
|
|
57
|
+
<Button>Apply settings</Button>
|
|
58
58
|
</Tooltip>
|
|
59
59
|
</YStack>
|
|
60
60
|
),
|
|
@@ -20,13 +20,13 @@ describe("ActionBar stories", () => {
|
|
|
20
20
|
renderWithProviders(
|
|
21
21
|
<>{Default.render?.(Default.args as never, { args: Default.args } as never)}</>,
|
|
22
22
|
);
|
|
23
|
-
expect(screen.
|
|
24
|
-
expect(screen.
|
|
23
|
+
expect(screen.getByRole("button", { name: "Cancel" }).textContent).toBe("");
|
|
24
|
+
expect(screen.getByRole("button", { name: "Save changes" }).textContent).toBe("");
|
|
25
25
|
});
|
|
26
26
|
|
|
27
27
|
it("Cancel + secondary + primary renders every slot", () => {
|
|
28
28
|
renderWithProviders(<>{WithSecondary.render?.({} as never, {} as never)}</>);
|
|
29
|
-
expect(screen.
|
|
29
|
+
expect(screen.getByRole("button", { name: "Cancel" })).toBeTruthy();
|
|
30
30
|
expect(screen.getByText("Save draft")).toBeTruthy();
|
|
31
31
|
expect(screen.getByText("Preview")).toBeTruthy();
|
|
32
32
|
expect(screen.getByText("Publish")).toBeTruthy();
|
|
@@ -34,12 +34,12 @@ describe("ActionBar stories", () => {
|
|
|
34
34
|
|
|
35
35
|
it("Alignments renders one bar per align value", () => {
|
|
36
36
|
renderWithProviders(<>{Alignments.render?.({} as never, {} as never)}</>);
|
|
37
|
-
expect(screen.
|
|
37
|
+
expect(screen.getAllByRole("button", { name: "Confirm" })).toHaveLength(3);
|
|
38
38
|
expect(screen.getByText('align="between"')).toBeTruthy();
|
|
39
39
|
});
|
|
40
40
|
|
|
41
41
|
it("the cancel-disabled story still paints a reachable cancel", () => {
|
|
42
42
|
renderWithProviders(<>{CancelNeverDisabled.render?.({} as never, {} as never)}</>);
|
|
43
|
-
expect(screen.
|
|
43
|
+
expect(screen.getByRole("button", { name: "Cancel" })).toBeTruthy();
|
|
44
44
|
});
|
|
45
45
|
});
|