@multiplatform.one/components 7.45.1 → 7.47.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 +1 -1
- package/dist/cjs/Alert/index.native.js +1 -1
- package/dist/cjs/Alert/index.native.js.map +1 -1
- package/dist/cjs/Carousel/index.cjs +1 -1
- package/dist/cjs/Carousel/index.native.js +1 -1
- package/dist/cjs/Carousel/index.native.js.map +1 -1
- package/dist/cjs/Chip/index.cjs +18 -7
- package/dist/cjs/Chip/index.native.js +20 -8
- package/dist/cjs/Chip/index.native.js.map +1 -1
- package/dist/cjs/DropdownMenu/index.cjs +5 -1
- package/dist/cjs/DropdownMenu/index.native.js +5 -1
- package/dist/cjs/DropdownMenu/index.native.js.map +1 -1
- package/dist/cjs/ErrorBoundary/index.cjs +2 -2
- package/dist/cjs/ErrorBoundary/index.native.js +2 -2
- package/dist/cjs/ErrorBoundary/index.native.js.map +1 -1
- package/dist/cjs/Heading.cjs +8 -127
- package/dist/cjs/Heading.native.js +7 -133
- package/dist/cjs/Heading.native.js.map +1 -1
- package/dist/cjs/OverflowRow/index.cjs +1 -0
- package/dist/cjs/OverflowRow/index.native.js +1 -0
- package/dist/cjs/OverflowRow/index.native.js.map +1 -1
- package/dist/cjs/Pagination.cjs +4 -1
- package/dist/cjs/Pagination.native.js +4 -1
- package/dist/cjs/Pagination.native.js.map +1 -1
- package/dist/cjs/Popover.cjs +145 -0
- package/dist/cjs/Popover.native.js +174 -0
- package/dist/cjs/Popover.native.js.map +1 -0
- package/dist/cjs/ProgressSteps/index.cjs +1 -1
- package/dist/cjs/ProgressSteps/index.native.js +1 -1
- package/dist/cjs/ProgressSteps/index.native.js.map +1 -1
- package/dist/cjs/Quote/index.cjs +1 -0
- package/dist/cjs/Quote/index.native.js +1 -0
- package/dist/cjs/Quote/index.native.js.map +1 -1
- package/dist/cjs/SkipLink/index.cjs +1 -2
- package/dist/cjs/SkipLink/index.native.js +1 -2
- package/dist/cjs/SkipLink/index.native.js.map +1 -1
- package/dist/cjs/SortableList/index.cjs +2 -1
- package/dist/cjs/SortableList/index.native.js +2 -1
- package/dist/cjs/SortableList/index.native.js.map +1 -1
- package/dist/cjs/SortableList/useSortableRows.cjs +2 -2
- package/dist/cjs/SortableList/useSortableRows.native.js +2 -2
- package/dist/cjs/SortableList/useSortableRows.native.js.map +1 -1
- package/dist/cjs/Text.cjs +5 -116
- package/dist/cjs/Text.native.js +4 -120
- package/dist/cjs/Text.native.js.map +1 -1
- package/dist/cjs/ThemePlayground/index.cjs +3 -2
- package/dist/cjs/ThemePresetPicker/index.cjs +21 -22
- package/dist/cjs/ThemePresetPicker/index.native.js +21 -22
- package/dist/cjs/ThemePresetPicker/index.native.js.map +1 -1
- package/dist/cjs/Tooltip/index.cjs +6 -0
- package/dist/cjs/TreeSelect/index.cjs +2 -1
- package/dist/cjs/TreeSelect/index.native.js +2 -1
- package/dist/cjs/TreeSelect/index.native.js.map +1 -1
- package/dist/cjs/Video/PlayerChrome.cjs +1 -1
- package/dist/cjs/Video/PlayerChrome.native.js +1 -1
- package/dist/cjs/Video/PlayerChrome.native.js.map +1 -1
- package/dist/cjs/Video/VideoFrame.cjs +2 -1
- package/dist/cjs/Video/VideoFrame.native.js +2 -1
- package/dist/cjs/Video/VideoFrame.native.js.map +1 -1
- package/dist/cjs/Video/index.cjs +3 -1
- package/dist/cjs/actions/DestructiveAction.cjs +3 -2
- package/dist/cjs/actions/DestructiveAction.native.js +3 -2
- package/dist/cjs/actions/DestructiveAction.native.js.map +1 -1
- package/dist/cjs/appShell/ScopeMenu.cjs +2 -1
- package/dist/cjs/appShell/ScopeMenu.native.js +2 -1
- package/dist/cjs/appShell/ScopeMenu.native.js.map +1 -1
- package/dist/cjs/appShell/SettingsSplit.cjs +5 -4
- package/dist/cjs/appShell/SettingsSplit.native.js +5 -4
- package/dist/cjs/appShell/SettingsSplit.native.js.map +1 -1
- package/dist/cjs/appShell/Springboard.cjs +2 -1
- package/dist/cjs/appShell/Springboard.native.js +2 -1
- package/dist/cjs/appShell/Springboard.native.js.map +1 -1
- package/dist/cjs/appShell/SystemBar.cjs +2 -1
- package/dist/cjs/appShell/SystemBar.native.js +2 -1
- package/dist/cjs/appShell/SystemBar.native.js.map +1 -1
- package/dist/cjs/feedback/ConfirmDialog.cjs +1 -1
- package/dist/cjs/feedback/ConfirmDialog.native.js +1 -1
- package/dist/cjs/feedback/ConfirmDialog.native.js.map +1 -1
- package/dist/cjs/knobImmuneExports.cjs +0 -1
- package/dist/cjs/knobImmuneExports.native.js +0 -1
- package/dist/cjs/knobImmuneExports.native.js.map +1 -1
- package/dist/cjs/layouts/attachments.cjs +11 -10
- package/dist/cjs/layouts/attachments.native.js +11 -10
- package/dist/cjs/layouts/attachments.native.js.map +1 -1
- package/dist/cjs/layouts/breadcrumbs.cjs +3 -2
- package/dist/cjs/layouts/breadcrumbs.native.js +3 -2
- package/dist/cjs/layouts/breadcrumbs.native.js.map +1 -1
- package/dist/cjs/layouts/page.cjs +80 -8
- package/dist/cjs/layouts/page.native.js +82 -8
- package/dist/cjs/layouts/page.native.js.map +1 -1
- package/dist/cjs/layouts/sidebar.cjs +3 -1
- package/dist/cjs/layouts/sidebar.native.js +3 -1
- package/dist/cjs/layouts/sidebar.native.js.map +1 -1
- package/dist/cjs/layouts/tags.cjs +2 -1
- package/dist/cjs/layouts/tags.native.js +2 -1
- package/dist/cjs/layouts/tags.native.js.map +1 -1
- package/dist/cjs/layouts/timeline.cjs +14 -13
- package/dist/cjs/layouts/timeline.native.js +14 -13
- package/dist/cjs/layouts/timeline.native.js.map +1 -1
- package/dist/cjs/layouts/toolbar.cjs +2 -1
- package/dist/cjs/layouts/toolbar.native.js +2 -1
- package/dist/cjs/layouts/toolbar.native.js.map +1 -1
- package/dist/cjs/linearGradientSetup.cjs +18 -0
- package/dist/cjs/linearGradientSetup.native.js +4 -0
- package/dist/cjs/linearGradientSetup.native.js.map +1 -0
- package/dist/cjs/tamagui.cjs +2 -1
- package/dist/cjs/tamagui.native.js +2 -1
- package/dist/cjs/tamagui.native.js.map +1 -1
- package/dist/cjs/views/Calendar.cjs +14 -13
- package/dist/cjs/views/Calendar.native.js +14 -13
- package/dist/cjs/views/Calendar.native.js.map +1 -1
- package/dist/cjs/views/Gantt.cjs +188 -55
- package/dist/cjs/views/Gantt.native.js +201 -55
- package/dist/cjs/views/Gantt.native.js.map +1 -1
- package/dist/cjs/views/GanttDateGrip.cjs +216 -0
- package/dist/cjs/views/GanttDateGrip.native.js +259 -0
- package/dist/cjs/views/GanttDateGrip.native.js.map +1 -0
- package/dist/cjs/views/Kanban.cjs +3 -2
- package/dist/cjs/views/Kanban.native.js +3 -2
- package/dist/cjs/views/Kanban.native.js.map +1 -1
- package/dist/cjs/views/List.cjs +13 -3
- package/dist/cjs/views/List.native.js +14 -3
- package/dist/cjs/views/List.native.js.map +1 -1
- package/dist/cjs/views/Matrix.cjs +2 -1
- package/dist/cjs/views/Matrix.native.js +2 -1
- package/dist/cjs/views/Matrix.native.js.map +1 -1
- package/dist/cjs/views/TreeView.cjs +3 -2
- package/dist/cjs/views/TreeView.native.js +3 -2
- package/dist/cjs/views/TreeView.native.js.map +1 -1
- package/dist/cjs/views/ganttIntervals.cjs +85 -0
- package/dist/cjs/views/ganttIntervals.native.js +92 -0
- package/dist/cjs/views/ganttIntervals.native.js.map +1 -0
- package/dist/esm/Alert/index.mjs +2 -2
- package/dist/esm/Alert/index.mjs.map +1 -1
- package/dist/esm/Alert/index.native.js +2 -2
- package/dist/esm/Alert/index.native.js.map +1 -1
- package/dist/esm/Carousel/index.mjs +1 -1
- package/dist/esm/Carousel/index.mjs.map +1 -1
- package/dist/esm/Carousel/index.native.js +1 -1
- package/dist/esm/Carousel/index.native.js.map +1 -1
- package/dist/esm/Chip/index.mjs +18 -7
- package/dist/esm/Chip/index.mjs.map +1 -1
- package/dist/esm/Chip/index.native.js +20 -8
- package/dist/esm/Chip/index.native.js.map +1 -1
- package/dist/esm/DropdownMenu/index.mjs +5 -1
- package/dist/esm/DropdownMenu/index.mjs.map +1 -1
- package/dist/esm/DropdownMenu/index.native.js +5 -1
- package/dist/esm/DropdownMenu/index.native.js.map +1 -1
- package/dist/esm/ErrorBoundary/index.mjs +1 -1
- package/dist/esm/ErrorBoundary/index.mjs.map +1 -1
- package/dist/esm/ErrorBoundary/index.native.js +1 -1
- package/dist/esm/ErrorBoundary/index.native.js.map +1 -1
- package/dist/esm/Heading.mjs +1 -120
- package/dist/esm/Heading.mjs.map +1 -1
- package/dist/esm/Heading.native.js +1 -127
- package/dist/esm/Heading.native.js.map +1 -1
- package/dist/esm/OverflowRow/index.mjs.map +1 -1
- package/dist/esm/OverflowRow/index.native.js.map +1 -1
- package/dist/esm/Pagination.mjs +4 -1
- package/dist/esm/Pagination.mjs.map +1 -1
- package/dist/esm/Pagination.native.js +4 -1
- package/dist/esm/Pagination.native.js.map +1 -1
- package/dist/esm/Popover.mjs +120 -0
- package/dist/esm/Popover.mjs.map +1 -0
- package/dist/esm/Popover.native.js +146 -0
- package/dist/esm/Popover.native.js.map +1 -0
- package/dist/esm/ProgressSteps/index.mjs +2 -2
- package/dist/esm/ProgressSteps/index.mjs.map +1 -1
- package/dist/esm/ProgressSteps/index.native.js +2 -2
- package/dist/esm/ProgressSteps/index.native.js.map +1 -1
- package/dist/esm/Quote/index.mjs +2 -1
- package/dist/esm/Quote/index.mjs.map +1 -1
- package/dist/esm/Quote/index.native.js +2 -1
- package/dist/esm/Quote/index.native.js.map +1 -1
- package/dist/esm/SkipLink/index.mjs +1 -2
- package/dist/esm/SkipLink/index.mjs.map +1 -1
- package/dist/esm/SkipLink/index.native.js +1 -2
- package/dist/esm/SkipLink/index.native.js.map +1 -1
- package/dist/esm/SortableList/index.mjs +5 -4
- package/dist/esm/SortableList/index.mjs.map +1 -1
- package/dist/esm/SortableList/index.native.js +5 -4
- package/dist/esm/SortableList/index.native.js.map +1 -1
- package/dist/esm/SortableList/useSortableRows.mjs +2 -2
- package/dist/esm/SortableList/useSortableRows.mjs.map +1 -1
- package/dist/esm/SortableList/useSortableRows.native.js +2 -2
- package/dist/esm/SortableList/useSortableRows.native.js.map +1 -1
- package/dist/esm/Text.mjs +1 -112
- package/dist/esm/Text.mjs.map +1 -1
- package/dist/esm/Text.native.js +1 -117
- package/dist/esm/Text.native.js.map +1 -1
- package/dist/esm/ThemePlayground/index.mjs +2 -1
- package/dist/esm/ThemePlayground/index.mjs.map +1 -1
- package/dist/esm/ThemePresetPicker/index.mjs +21 -22
- package/dist/esm/ThemePresetPicker/index.mjs.map +1 -1
- package/dist/esm/ThemePresetPicker/index.native.js +21 -22
- package/dist/esm/ThemePresetPicker/index.native.js.map +1 -1
- package/dist/esm/Tooltip/index.mjs +6 -0
- package/dist/esm/Tooltip/index.mjs.map +1 -1
- package/dist/esm/TreeSelect/index.mjs +6 -5
- package/dist/esm/TreeSelect/index.mjs.map +1 -1
- package/dist/esm/TreeSelect/index.native.js +6 -5
- package/dist/esm/TreeSelect/index.native.js.map +1 -1
- package/dist/esm/Video/PlayerChrome.mjs +1 -1
- package/dist/esm/Video/PlayerChrome.mjs.map +1 -1
- package/dist/esm/Video/PlayerChrome.native.js +1 -1
- package/dist/esm/Video/PlayerChrome.native.js.map +1 -1
- package/dist/esm/Video/VideoFrame.mjs +3 -2
- package/dist/esm/Video/VideoFrame.mjs.map +1 -1
- package/dist/esm/Video/VideoFrame.native.js +3 -2
- package/dist/esm/Video/VideoFrame.native.js.map +1 -1
- package/dist/esm/Video/index.mjs +3 -1
- package/dist/esm/Video/index.mjs.map +1 -1
- package/dist/esm/actions/DestructiveAction.mjs +2 -1
- package/dist/esm/actions/DestructiveAction.mjs.map +1 -1
- package/dist/esm/actions/DestructiveAction.native.js +2 -1
- package/dist/esm/actions/DestructiveAction.native.js.map +1 -1
- package/dist/esm/appShell/ScopeMenu.mjs +2 -1
- package/dist/esm/appShell/ScopeMenu.mjs.map +1 -1
- package/dist/esm/appShell/ScopeMenu.native.js +2 -1
- package/dist/esm/appShell/ScopeMenu.native.js.map +1 -1
- package/dist/esm/appShell/SettingsSplit.mjs +5 -4
- package/dist/esm/appShell/SettingsSplit.mjs.map +1 -1
- package/dist/esm/appShell/SettingsSplit.native.js +5 -4
- package/dist/esm/appShell/SettingsSplit.native.js.map +1 -1
- package/dist/esm/appShell/Springboard.mjs +3 -2
- package/dist/esm/appShell/Springboard.mjs.map +1 -1
- package/dist/esm/appShell/Springboard.native.js +3 -2
- package/dist/esm/appShell/Springboard.native.js.map +1 -1
- package/dist/esm/appShell/SystemBar.mjs +2 -1
- package/dist/esm/appShell/SystemBar.mjs.map +1 -1
- package/dist/esm/appShell/SystemBar.native.js +2 -1
- package/dist/esm/appShell/SystemBar.native.js.map +1 -1
- package/dist/esm/feedback/ConfirmDialog.mjs +1 -1
- package/dist/esm/feedback/ConfirmDialog.mjs.map +1 -1
- package/dist/esm/feedback/ConfirmDialog.native.js +1 -1
- package/dist/esm/feedback/ConfirmDialog.native.js.map +1 -1
- package/dist/esm/knobImmuneExports.mjs +0 -1
- package/dist/esm/knobImmuneExports.mjs.map +1 -1
- package/dist/esm/knobImmuneExports.native.js +0 -1
- package/dist/esm/knobImmuneExports.native.js.map +1 -1
- package/dist/esm/layouts/attachments.mjs +3 -2
- package/dist/esm/layouts/attachments.mjs.map +1 -1
- package/dist/esm/layouts/attachments.native.js +3 -2
- package/dist/esm/layouts/attachments.native.js.map +1 -1
- package/dist/esm/layouts/breadcrumbs.mjs +3 -2
- package/dist/esm/layouts/breadcrumbs.mjs.map +1 -1
- package/dist/esm/layouts/breadcrumbs.native.js +3 -2
- package/dist/esm/layouts/breadcrumbs.native.js.map +1 -1
- package/dist/esm/layouts/page.mjs +80 -10
- package/dist/esm/layouts/page.mjs.map +1 -1
- package/dist/esm/layouts/page.native.js +82 -10
- package/dist/esm/layouts/page.native.js.map +1 -1
- package/dist/esm/layouts/sidebar.mjs +5 -3
- package/dist/esm/layouts/sidebar.mjs.map +1 -1
- package/dist/esm/layouts/sidebar.native.js +5 -3
- package/dist/esm/layouts/sidebar.native.js.map +1 -1
- package/dist/esm/layouts/tags.mjs +6 -5
- package/dist/esm/layouts/tags.mjs.map +1 -1
- package/dist/esm/layouts/tags.native.js +6 -5
- package/dist/esm/layouts/tags.native.js.map +1 -1
- package/dist/esm/layouts/timeline.mjs +4 -3
- package/dist/esm/layouts/timeline.mjs.map +1 -1
- package/dist/esm/layouts/timeline.native.js +4 -3
- package/dist/esm/layouts/timeline.native.js.map +1 -1
- package/dist/esm/layouts/toolbar.mjs +2 -1
- package/dist/esm/layouts/toolbar.mjs.map +1 -1
- package/dist/esm/layouts/toolbar.native.js +2 -1
- package/dist/esm/layouts/toolbar.native.js.map +1 -1
- package/dist/esm/linearGradientSetup.mjs +2 -0
- package/dist/esm/linearGradientSetup.mjs.map +1 -0
- package/dist/esm/linearGradientSetup.native.js +2 -0
- package/dist/esm/linearGradientSetup.native.js.map +1 -0
- package/dist/esm/tamagui.mjs +2 -1
- package/dist/esm/tamagui.mjs.map +1 -1
- package/dist/esm/tamagui.native.js +2 -1
- package/dist/esm/tamagui.native.js.map +1 -1
- package/dist/esm/views/Calendar.mjs +7 -6
- package/dist/esm/views/Calendar.mjs.map +1 -1
- package/dist/esm/views/Calendar.native.js +7 -6
- package/dist/esm/views/Calendar.native.js.map +1 -1
- package/dist/esm/views/Gantt.mjs +196 -63
- package/dist/esm/views/Gantt.mjs.map +1 -1
- package/dist/esm/views/Gantt.native.js +209 -63
- package/dist/esm/views/Gantt.native.js.map +1 -1
- package/dist/esm/views/GanttDateGrip.mjs +191 -0
- package/dist/esm/views/GanttDateGrip.mjs.map +1 -0
- package/dist/esm/views/GanttDateGrip.native.js +231 -0
- package/dist/esm/views/GanttDateGrip.native.js.map +1 -0
- package/dist/esm/views/Kanban.mjs +5 -4
- package/dist/esm/views/Kanban.mjs.map +1 -1
- package/dist/esm/views/Kanban.native.js +3 -2
- package/dist/esm/views/Kanban.native.js.map +1 -1
- package/dist/esm/views/List.mjs +13 -5
- package/dist/esm/views/List.mjs.map +1 -1
- package/dist/esm/views/List.native.js +14 -5
- package/dist/esm/views/List.native.js.map +1 -1
- package/dist/esm/views/Matrix.mjs +10 -9
- package/dist/esm/views/Matrix.mjs.map +1 -1
- package/dist/esm/views/Matrix.native.js +10 -9
- package/dist/esm/views/Matrix.native.js.map +1 -1
- package/dist/esm/views/TreeView.mjs +5 -4
- package/dist/esm/views/TreeView.mjs.map +1 -1
- package/dist/esm/views/TreeView.native.js +5 -4
- package/dist/esm/views/TreeView.native.js.map +1 -1
- package/dist/esm/views/ganttIntervals.mjs +57 -0
- package/dist/esm/views/ganttIntervals.mjs.map +1 -0
- package/dist/esm/views/ganttIntervals.native.js +61 -0
- package/dist/esm/views/ganttIntervals.native.js.map +1 -0
- package/dist/jsx/Alert/index.mjs +2 -2
- package/dist/jsx/Alert/index.mjs.map +1 -1
- package/dist/jsx/Alert/index.native.js +1 -1
- package/dist/jsx/Alert/index.native.js.map +1 -1
- package/dist/jsx/Carousel/index.mjs +1 -1
- package/dist/jsx/Carousel/index.mjs.map +1 -1
- package/dist/jsx/Carousel/index.native.js +1 -1
- package/dist/jsx/Carousel/index.native.js.map +1 -1
- package/dist/jsx/Chip/index.mjs +18 -7
- package/dist/jsx/Chip/index.mjs.map +1 -1
- package/dist/jsx/Chip/index.native.js +20 -8
- package/dist/jsx/Chip/index.native.js.map +1 -1
- package/dist/jsx/DropdownMenu/index.mjs +5 -1
- package/dist/jsx/DropdownMenu/index.mjs.map +1 -1
- package/dist/jsx/DropdownMenu/index.native.js +5 -1
- package/dist/jsx/DropdownMenu/index.native.js.map +1 -1
- package/dist/jsx/ErrorBoundary/index.mjs +1 -1
- package/dist/jsx/ErrorBoundary/index.mjs.map +1 -1
- package/dist/jsx/ErrorBoundary/index.native.js +2 -2
- package/dist/jsx/ErrorBoundary/index.native.js.map +1 -1
- package/dist/jsx/Heading.mjs +1 -120
- package/dist/jsx/Heading.mjs.map +1 -1
- package/dist/jsx/Heading.native.js +7 -133
- package/dist/jsx/Heading.native.js.map +1 -1
- package/dist/jsx/OverflowRow/index.mjs.map +1 -1
- package/dist/jsx/OverflowRow/index.native.js +1 -0
- package/dist/jsx/OverflowRow/index.native.js.map +1 -1
- package/dist/jsx/Pagination.mjs +4 -1
- package/dist/jsx/Pagination.mjs.map +1 -1
- package/dist/jsx/Pagination.native.js +4 -1
- package/dist/jsx/Pagination.native.js.map +1 -1
- package/dist/jsx/Popover.mjs +120 -0
- package/dist/jsx/Popover.mjs.map +1 -0
- package/dist/jsx/Popover.native.js +174 -0
- package/dist/jsx/Popover.native.js.map +1 -0
- package/dist/jsx/ProgressSteps/index.mjs +2 -2
- package/dist/jsx/ProgressSteps/index.mjs.map +1 -1
- package/dist/jsx/ProgressSteps/index.native.js +1 -1
- package/dist/jsx/ProgressSteps/index.native.js.map +1 -1
- package/dist/jsx/Quote/index.mjs +2 -1
- package/dist/jsx/Quote/index.mjs.map +1 -1
- package/dist/jsx/Quote/index.native.js +1 -0
- package/dist/jsx/Quote/index.native.js.map +1 -1
- package/dist/jsx/SkipLink/index.mjs +1 -2
- package/dist/jsx/SkipLink/index.mjs.map +1 -1
- package/dist/jsx/SkipLink/index.native.js +1 -2
- package/dist/jsx/SkipLink/index.native.js.map +1 -1
- package/dist/jsx/SortableList/index.mjs +5 -4
- package/dist/jsx/SortableList/index.mjs.map +1 -1
- package/dist/jsx/SortableList/index.native.js +2 -1
- package/dist/jsx/SortableList/index.native.js.map +1 -1
- package/dist/jsx/SortableList/useSortableRows.mjs +2 -2
- package/dist/jsx/SortableList/useSortableRows.mjs.map +1 -1
- package/dist/jsx/SortableList/useSortableRows.native.js +2 -2
- package/dist/jsx/SortableList/useSortableRows.native.js.map +1 -1
- package/dist/jsx/Text.mjs +1 -112
- package/dist/jsx/Text.mjs.map +1 -1
- package/dist/jsx/Text.native.js +4 -120
- package/dist/jsx/Text.native.js.map +1 -1
- package/dist/jsx/ThemePlayground/index.mjs +2 -1
- package/dist/jsx/ThemePlayground/index.mjs.map +1 -1
- package/dist/jsx/ThemePresetPicker/index.mjs +21 -22
- package/dist/jsx/ThemePresetPicker/index.mjs.map +1 -1
- package/dist/jsx/ThemePresetPicker/index.native.js +21 -22
- package/dist/jsx/ThemePresetPicker/index.native.js.map +1 -1
- package/dist/jsx/Tooltip/index.mjs +6 -0
- package/dist/jsx/Tooltip/index.mjs.map +1 -1
- package/dist/jsx/TreeSelect/index.mjs +6 -5
- package/dist/jsx/TreeSelect/index.mjs.map +1 -1
- package/dist/jsx/TreeSelect/index.native.js +2 -1
- package/dist/jsx/TreeSelect/index.native.js.map +1 -1
- package/dist/jsx/Video/PlayerChrome.mjs +1 -1
- package/dist/jsx/Video/PlayerChrome.mjs.map +1 -1
- package/dist/jsx/Video/PlayerChrome.native.js +1 -1
- package/dist/jsx/Video/PlayerChrome.native.js.map +1 -1
- package/dist/jsx/Video/VideoFrame.mjs +3 -2
- package/dist/jsx/Video/VideoFrame.mjs.map +1 -1
- package/dist/jsx/Video/VideoFrame.native.js +2 -1
- package/dist/jsx/Video/VideoFrame.native.js.map +1 -1
- package/dist/jsx/Video/index.mjs +3 -1
- package/dist/jsx/Video/index.mjs.map +1 -1
- package/dist/jsx/actions/DestructiveAction.mjs +2 -1
- package/dist/jsx/actions/DestructiveAction.mjs.map +1 -1
- package/dist/jsx/actions/DestructiveAction.native.js +3 -2
- package/dist/jsx/actions/DestructiveAction.native.js.map +1 -1
- package/dist/jsx/appShell/ScopeMenu.mjs +2 -1
- package/dist/jsx/appShell/ScopeMenu.mjs.map +1 -1
- package/dist/jsx/appShell/ScopeMenu.native.js +2 -1
- package/dist/jsx/appShell/ScopeMenu.native.js.map +1 -1
- package/dist/jsx/appShell/SettingsSplit.mjs +5 -4
- package/dist/jsx/appShell/SettingsSplit.mjs.map +1 -1
- package/dist/jsx/appShell/SettingsSplit.native.js +5 -4
- package/dist/jsx/appShell/SettingsSplit.native.js.map +1 -1
- package/dist/jsx/appShell/Springboard.mjs +3 -2
- package/dist/jsx/appShell/Springboard.mjs.map +1 -1
- package/dist/jsx/appShell/Springboard.native.js +2 -1
- package/dist/jsx/appShell/Springboard.native.js.map +1 -1
- package/dist/jsx/appShell/SystemBar.mjs +2 -1
- package/dist/jsx/appShell/SystemBar.mjs.map +1 -1
- package/dist/jsx/appShell/SystemBar.native.js +2 -1
- package/dist/jsx/appShell/SystemBar.native.js.map +1 -1
- package/dist/jsx/feedback/ConfirmDialog.mjs +1 -1
- package/dist/jsx/feedback/ConfirmDialog.mjs.map +1 -1
- package/dist/jsx/feedback/ConfirmDialog.native.js +1 -1
- package/dist/jsx/feedback/ConfirmDialog.native.js.map +1 -1
- package/dist/jsx/knobImmuneExports.mjs +0 -1
- package/dist/jsx/knobImmuneExports.mjs.map +1 -1
- package/dist/jsx/knobImmuneExports.native.js +0 -1
- package/dist/jsx/knobImmuneExports.native.js.map +1 -1
- package/dist/jsx/layouts/attachments.mjs +3 -2
- package/dist/jsx/layouts/attachments.mjs.map +1 -1
- package/dist/jsx/layouts/attachments.native.js +11 -10
- package/dist/jsx/layouts/attachments.native.js.map +1 -1
- package/dist/jsx/layouts/breadcrumbs.mjs +3 -2
- package/dist/jsx/layouts/breadcrumbs.mjs.map +1 -1
- package/dist/jsx/layouts/breadcrumbs.native.js +3 -2
- package/dist/jsx/layouts/breadcrumbs.native.js.map +1 -1
- package/dist/jsx/layouts/page.mjs +80 -10
- package/dist/jsx/layouts/page.mjs.map +1 -1
- package/dist/jsx/layouts/page.native.js +82 -8
- package/dist/jsx/layouts/page.native.js.map +1 -1
- package/dist/jsx/layouts/sidebar.mjs +5 -3
- package/dist/jsx/layouts/sidebar.mjs.map +1 -1
- package/dist/jsx/layouts/sidebar.native.js +3 -1
- package/dist/jsx/layouts/sidebar.native.js.map +1 -1
- package/dist/jsx/layouts/tags.mjs +6 -5
- package/dist/jsx/layouts/tags.mjs.map +1 -1
- package/dist/jsx/layouts/tags.native.js +2 -1
- package/dist/jsx/layouts/tags.native.js.map +1 -1
- package/dist/jsx/layouts/timeline.mjs +4 -3
- package/dist/jsx/layouts/timeline.mjs.map +1 -1
- package/dist/jsx/layouts/timeline.native.js +14 -13
- package/dist/jsx/layouts/timeline.native.js.map +1 -1
- package/dist/jsx/layouts/toolbar.mjs +2 -1
- package/dist/jsx/layouts/toolbar.mjs.map +1 -1
- package/dist/jsx/layouts/toolbar.native.js +2 -1
- package/dist/jsx/layouts/toolbar.native.js.map +1 -1
- package/dist/jsx/linearGradientSetup.mjs +2 -0
- package/dist/jsx/linearGradientSetup.mjs.map +1 -0
- package/dist/jsx/linearGradientSetup.native.js +4 -0
- package/dist/jsx/linearGradientSetup.native.js.map +1 -0
- package/dist/jsx/tamagui.mjs +2 -1
- package/dist/jsx/tamagui.mjs.map +1 -1
- package/dist/jsx/tamagui.native.js +2 -1
- package/dist/jsx/tamagui.native.js.map +1 -1
- package/dist/jsx/views/Calendar.mjs +7 -6
- package/dist/jsx/views/Calendar.mjs.map +1 -1
- package/dist/jsx/views/Calendar.native.js +14 -13
- package/dist/jsx/views/Calendar.native.js.map +1 -1
- package/dist/jsx/views/Gantt.mjs +196 -63
- package/dist/jsx/views/Gantt.mjs.map +1 -1
- package/dist/jsx/views/Gantt.native.js +201 -55
- package/dist/jsx/views/Gantt.native.js.map +1 -1
- package/dist/jsx/views/GanttDateGrip.mjs +191 -0
- package/dist/jsx/views/GanttDateGrip.mjs.map +1 -0
- package/dist/jsx/views/GanttDateGrip.native.js +259 -0
- package/dist/jsx/views/GanttDateGrip.native.js.map +1 -0
- package/dist/jsx/views/Kanban.mjs +5 -4
- package/dist/jsx/views/Kanban.mjs.map +1 -1
- package/dist/jsx/views/Kanban.native.js +3 -2
- package/dist/jsx/views/Kanban.native.js.map +1 -1
- package/dist/jsx/views/List.mjs +13 -5
- package/dist/jsx/views/List.mjs.map +1 -1
- package/dist/jsx/views/List.native.js +14 -3
- package/dist/jsx/views/List.native.js.map +1 -1
- package/dist/jsx/views/Matrix.mjs +10 -9
- package/dist/jsx/views/Matrix.mjs.map +1 -1
- package/dist/jsx/views/Matrix.native.js +2 -1
- package/dist/jsx/views/Matrix.native.js.map +1 -1
- package/dist/jsx/views/TreeView.mjs +5 -4
- package/dist/jsx/views/TreeView.mjs.map +1 -1
- package/dist/jsx/views/TreeView.native.js +3 -2
- package/dist/jsx/views/TreeView.native.js.map +1 -1
- package/dist/jsx/views/ganttIntervals.mjs +57 -0
- package/dist/jsx/views/ganttIntervals.mjs.map +1 -0
- package/dist/jsx/views/ganttIntervals.native.js +92 -0
- package/dist/jsx/views/ganttIntervals.native.js.map +1 -0
- package/package.json +12 -10
- package/src/Accordion/Accordion.stories.tsx +2 -1
- package/src/Alert/Alert.stories.tsx +2 -1
- package/src/Alert/index.tsx +2 -1
- package/src/AnimateHeight/AnimateHeight.stories.tsx +2 -1
- package/src/Avatar/Avatar.stories.tsx +2 -1
- package/src/Badge/Badge.stories.tsx +2 -1
- package/src/Card.stories.tsx +2 -1
- package/src/CardFooter.stories.tsx +2 -1
- package/src/CardHeader.stories.tsx +2 -1
- package/src/Carousel/Carousel.stories.tsx +2 -1
- package/src/Carousel/index.tsx +1 -1
- package/src/Chip/Chip.borderLadder.spec.tsx +3 -3
- package/src/Chip/Chip.ink.spec.tsx +70 -2
- package/src/Chip/Chip.spec.tsx +7 -4
- package/src/Chip/Chip.stories.tsx +2 -1
- package/src/Chip/index.tsx +29 -7
- package/src/ContextMenu/ContextMenu.stories.tsx +2 -1
- package/src/DialogContent.stories.tsx +2 -1
- package/src/DotIndicator/DotIndicator.stories.tsx +2 -1
- package/src/DropdownMenu/DropdownMenu.stories.tsx +21 -1
- package/src/DropdownMenu/index.tsx +6 -0
- package/src/ErrorBoundary/ErrorBoundary.stories.tsx +2 -1
- package/src/ErrorBoundary/index.tsx +1 -1
- package/src/Heading.native.spec.tsx +13 -5
- package/src/Heading.spec.tsx +55 -11
- package/src/Heading.tsx +3 -66
- package/src/Meter/Meter.spec.tsx +4 -4
- package/src/OverflowRow/index.tsx +1 -0
- package/src/Pagination.stories.tsx +2 -1
- package/src/Pagination.tsx +9 -1
- package/src/Panel.stories.tsx +2 -1
- package/src/Popover.coverTrigger.spec.tsx +99 -0
- package/src/Popover.tsx +180 -0
- package/src/PopoverContent.stories.tsx +23 -1
- package/src/ProgressSteps/index.tsx +5 -1
- package/src/Quote/index.tsx +9 -2
- package/src/Separator/Separator.stories.tsx +2 -1
- package/src/SheetFrame.stories.tsx +2 -1
- package/src/SheetModal/SheetModal.stories.tsx +2 -1
- package/src/Skeleton/Skeleton.stories.tsx +2 -1
- package/src/SkipLink/SkipLink.stories.tsx +2 -1
- package/src/SkipLink/index.tsx +1 -2
- package/src/SortableList/index.tsx +14 -6
- package/src/SortableList/useSortableRows.ts +3 -2
- package/src/Tabs/Tabs.stories.tsx +2 -1
- package/src/Text.spec.tsx +22 -0
- package/src/Text.tsx +9 -133
- package/src/ThemePlayground/ExpoThemeColors.stories.tsx +60 -0
- package/src/ThemePlayground/index.tsx +2 -1
- package/src/ThemePresetPicker/ThemePresetPicker.spec.tsx +20 -0
- package/src/ThemePresetPicker/ThemePresetPicker.stories.spec.tsx +34 -12
- package/src/ThemePresetPicker/ThemePresetPicker.stories.tsx +11 -3
- package/src/ThemePresetPicker/index.tsx +35 -29
- package/src/Toast/Toast.stories.tsx +2 -1
- package/src/Tooltip/Tooltip.spec.tsx +14 -1
- package/src/Tooltip/index.tsx +7 -0
- package/src/TreeSelect/index.tsx +10 -9
- package/src/Video/PlayerChrome.tsx +1 -1
- package/src/Video/VideoFrame.tsx +4 -3
- package/src/Video/index.tsx +3 -1
- package/src/Wheel/Wheel.stories.tsx +2 -1
- package/src/actions/ActionBar.stories.tsx +2 -1
- package/src/actions/DestructiveAction.stories.tsx +2 -1
- package/src/actions/DestructiveAction.tsx +2 -1
- package/src/appShell/ScopeMenu.tsx +2 -1
- package/src/appShell/SettingsSplit.stories.tsx +2 -1
- package/src/appShell/SettingsSplit.tsx +6 -5
- package/src/appShell/Springboard.tsx +3 -2
- package/src/appShell/SystemBar.tsx +2 -1
- package/src/charts/Axis.stories.tsx +2 -1
- package/src/charts/ChartSurface.stories.tsx +2 -1
- package/src/charts/Charts.stories.tsx +2 -1
- package/src/code/CodeInline.stories.tsx +3 -1
- package/src/feedback/ConfirmDialog.stories.tsx +2 -1
- package/src/feedback/ConfirmDialog.tsx +1 -1
- package/src/feedback/Notify.stories.tsx +2 -1
- package/src/icons/CheckRegular.stories.tsx +2 -1
- package/src/icons/MinusRegular.stories.tsx +2 -1
- package/src/knobImmuneExports.ts +0 -1
- package/src/layouts/AsyncBoundary.stories.tsx +2 -1
- package/src/layouts/Attachments.stories.tsx +2 -1
- package/src/layouts/Debug/DebugLayout.stories.tsx +2 -1
- package/src/layouts/KeyboardAvoidingWrapper/KeyboardAvoidingWrapper.stories.tsx +2 -2
- package/src/layouts/PageHeader.stories.tsx +2 -1
- package/src/layouts/PageSection.stories.tsx +2 -1
- package/src/layouts/PageTemplates.stories.tsx +64 -2
- package/src/layouts/PaneScaffold.stories.tsx +2 -2
- package/src/layouts/SafeAreaWrapper/SafeAreaWrapper.stories.tsx +2 -2
- package/src/layouts/Screen.stories.tsx +2 -1
- package/src/layouts/Sidebar.stories.tsx +2 -1
- package/src/layouts/Tags.stories.tsx +2 -1
- package/src/layouts/Timeline.stories.tsx +2 -1
- package/src/layouts/Toolbar.stories.tsx +2 -1
- package/src/layouts/ViewSwitcher.stories.tsx +2 -1
- package/src/layouts/attachments.tsx +4 -3
- package/src/layouts/breadcrumbs.tsx +4 -3
- package/src/layouts/page.tsx +98 -9
- package/src/layouts/pageChrome.phone.spec.tsx +58 -0
- package/src/layouts/sidebar.tsx +7 -5
- package/src/layouts/tags-trigger.spec.tsx +3 -3
- package/src/layouts/tags.tsx +14 -9
- package/src/layouts/timeline.tsx +6 -5
- package/src/layouts/toolbar.tsx +2 -1
- package/src/linearGradientSetup.native.spec.ts +19 -0
- package/src/linearGradientSetup.native.ts +3 -0
- package/src/linearGradientSetup.ts +1 -0
- package/src/tamagui.spec.ts +2 -3
- package/src/tamagui.ts +2 -2
- package/src/views/Calendar.tsx +12 -11
- package/src/views/Gantt.intervals.spec.tsx +69 -0
- package/src/views/Gantt.scroll.spec.tsx +42 -0
- package/src/views/Gantt.spec.tsx +4 -5
- package/src/views/Gantt.stories.tsx +19 -0
- package/src/views/Gantt.tsx +230 -106
- package/src/views/GanttDateGrip.native.spec.tsx +118 -0
- package/src/views/GanttDateGrip.tsx +266 -0
- package/src/views/ImageGrid.stories.tsx +2 -1
- package/src/views/Kanban.native.spec.tsx +98 -0
- package/src/views/Kanban.native.tsx +3 -2
- package/src/views/Kanban.stories.tsx +2 -1
- package/src/views/Kanban.tsx +15 -6
- package/src/views/List.spec.tsx +18 -0
- package/src/views/List.tsx +17 -2
- package/src/views/Matrix.tsx +22 -17
- package/src/views/TreeView.reveal.stories.tsx +2 -1
- package/src/views/TreeView.tsx +15 -6
- package/src/views/dataIdentity.spec.tsx +5 -1
- package/src/views/ganttIntervals.spec.ts +84 -0
- package/src/views/ganttIntervals.ts +91 -0
- package/src/views/index.ts +2 -0
- package/types/Alert/index.d.ts.map +1 -1
- package/types/Chip/index.d.ts +5 -3
- package/types/Chip/index.d.ts.map +1 -1
- package/types/Collapsible.d.ts +1 -1
- package/types/DropdownMenu/index.d.ts +3 -1
- package/types/DropdownMenu/index.d.ts.map +1 -1
- package/types/Heading.d.ts +2 -9
- package/types/Heading.d.ts.map +1 -1
- package/types/OverflowRow/index.d.ts +1 -0
- package/types/OverflowRow/index.d.ts.map +1 -1
- package/types/Pagination.d.ts +6 -1
- package/types/Pagination.d.ts.map +1 -1
- package/types/Popover.d.ts +114 -0
- package/types/Popover.d.ts.map +1 -0
- package/types/ProgressSteps/index.d.ts.map +1 -1
- package/types/Quote/index.d.ts.map +1 -1
- package/types/SkipLink/index.d.ts.map +1 -1
- package/types/SortableList/index.d.ts.map +1 -1
- package/types/SortableList/useSortableRows.d.ts.map +1 -1
- package/types/Tabs/index.d.ts +1 -1
- package/types/Text.d.ts +2 -12
- package/types/Text.d.ts.map +1 -1
- package/types/ThemePlayground/index.d.ts.map +1 -1
- package/types/ThemePresetPicker/index.d.ts +3 -1
- package/types/ThemePresetPicker/index.d.ts.map +1 -1
- package/types/Tooltip/index.d.ts.map +1 -1
- package/types/TreeSelect/index.d.ts.map +1 -1
- package/types/Video/VideoFrame.d.ts.map +1 -1
- package/types/Video/index.d.ts.map +1 -1
- package/types/actions/DestructiveAction.d.ts.map +1 -1
- package/types/appShell/ScopeMenu.d.ts.map +1 -1
- package/types/appShell/SettingsSplit.d.ts.map +1 -1
- package/types/appShell/Springboard.d.ts.map +1 -1
- package/types/appShell/SystemBar.d.ts.map +1 -1
- package/types/knobImmuneExports.d.ts.map +1 -1
- package/types/layouts/attachments.d.ts.map +1 -1
- package/types/layouts/breadcrumbs.d.ts.map +1 -1
- package/types/layouts/page.d.ts +21 -3
- package/types/layouts/page.d.ts.map +1 -1
- package/types/layouts/sidebar.d.ts.map +1 -1
- package/types/layouts/tags.d.ts.map +1 -1
- package/types/layouts/timeline.d.ts.map +1 -1
- package/types/layouts/toolbar.d.ts.map +1 -1
- package/types/linearGradientSetup.d.ts +2 -0
- package/types/linearGradientSetup.d.ts.map +1 -0
- package/types/linearGradientSetup.native.d.ts +2 -0
- package/types/linearGradientSetup.native.d.ts.map +1 -0
- package/types/tamagui.d.ts +3 -2
- package/types/tamagui.d.ts.map +1 -1
- package/types/views/Calendar.d.ts.map +1 -1
- package/types/views/Gantt.d.ts +9 -21
- package/types/views/Gantt.d.ts.map +1 -1
- package/types/views/GanttDateGrip.d.ts +22 -0
- package/types/views/GanttDateGrip.d.ts.map +1 -0
- package/types/views/Kanban.d.ts.map +1 -1
- package/types/views/List.d.ts +17 -0
- package/types/views/List.d.ts.map +1 -1
- package/types/views/Matrix.d.ts.map +1 -1
- package/types/views/TreeView.d.ts.map +1 -1
- package/types/views/ganttIntervals.d.ts +11 -0
- package/types/views/ganttIntervals.d.ts.map +1 -0
- package/types/views/index.d.ts +1 -0
- package/types/views/index.d.ts.map +1 -1
package/src/Pagination.tsx
CHANGED
|
@@ -119,6 +119,11 @@ export interface PaginationProps extends Omit<XStackProps, "children" | "onChang
|
|
|
119
119
|
* governs a strip mark's size.
|
|
120
120
|
*/
|
|
121
121
|
variant?: "dots" | "bars" | "numbered" | "simple";
|
|
122
|
+
/**
|
|
123
|
+
* The last page is not known (a list without a count): `total` is only how
|
|
124
|
+
* far the pager may step, so the simple variant reads "Page 3", never "3 of 4".
|
|
125
|
+
*/
|
|
126
|
+
openEnded?: boolean;
|
|
122
127
|
/** Total number of items across all pages (numbered summary slot) */
|
|
123
128
|
totalItems?: number;
|
|
124
129
|
/** Items per page (numbered summary slot) */
|
|
@@ -152,6 +157,7 @@ export function Pagination({
|
|
|
152
157
|
siblingCount = 1,
|
|
153
158
|
boundaryCount = 1,
|
|
154
159
|
showFirstLast = false,
|
|
160
|
+
openEnded = false,
|
|
155
161
|
...stackProps
|
|
156
162
|
}: PaginationProps) {
|
|
157
163
|
const { t } = useTranslation();
|
|
@@ -324,7 +330,9 @@ export function Pagination({
|
|
|
324
330
|
flexShrink={1}
|
|
325
331
|
minWidth={0}
|
|
326
332
|
>
|
|
327
|
-
{
|
|
333
|
+
{openEnded
|
|
334
|
+
? withInterp(t("Page {{number}}"), { number: currentPage })
|
|
335
|
+
: bidiIsolate(withInterp(t("{{page}} of {{total}}"), { page: currentPage, total }))}
|
|
328
336
|
</Text>
|
|
329
337
|
) : isNumbered ? (
|
|
330
338
|
<XStack alignItems="center" {...knobProps.gap}>
|
package/src/Panel.stories.tsx
CHANGED
|
@@ -1,8 +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
3
|
import { Button, Input } from "@multiplatform.one/forms";
|
|
4
|
-
import {
|
|
4
|
+
import { XStack, YStack } from "tamagui";
|
|
5
5
|
import { Panel } from "./surfaces";
|
|
6
|
+
import { Paragraph, SizableText } from "./Text";
|
|
6
7
|
|
|
7
8
|
const meta: Meta<typeof Panel> = {
|
|
8
9
|
title: "Components/Panel",
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { afterEach, describe, expect, it, vi } from "vitest";
|
|
2
|
+
import { fireEvent, waitFor, within } from "@testing-library/react";
|
|
3
|
+
import { renderWithProviders } from "@multiplatform.one/test-utils";
|
|
4
|
+
import { Button } from "@multiplatform.one/forms";
|
|
5
|
+
import { Popover } from "./index";
|
|
6
|
+
import { PopoverContent } from "./surfaces";
|
|
7
|
+
import { Popover as TamaguiPopover } from "tamagui";
|
|
8
|
+
|
|
9
|
+
afterEach(() => vi.restoreAllMocks());
|
|
10
|
+
|
|
11
|
+
describe("Popover cover-trigger adapter", () => {
|
|
12
|
+
it("preserves all published composition helpers", () => {
|
|
13
|
+
for (const key of [
|
|
14
|
+
"Trigger",
|
|
15
|
+
"Content",
|
|
16
|
+
"Anchor",
|
|
17
|
+
"Arrow",
|
|
18
|
+
"ScrollView",
|
|
19
|
+
"Adapt",
|
|
20
|
+
"FocusScope",
|
|
21
|
+
] as const) {
|
|
22
|
+
expect(Popover[key]).toBe(TamaguiPopover[key]);
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
it("opens by pointer and lets Popover.Close dismiss a collision sheet", async () => {
|
|
27
|
+
const original = HTMLElement.prototype.getBoundingClientRect;
|
|
28
|
+
vi.spyOn(HTMLElement.prototype, "getBoundingClientRect").mockImplementation(
|
|
29
|
+
function (this: HTMLElement) {
|
|
30
|
+
if (this.hasAttribute("data-fp-reference"))
|
|
31
|
+
return {
|
|
32
|
+
x: 40,
|
|
33
|
+
y: window.innerHeight - 40,
|
|
34
|
+
left: 40,
|
|
35
|
+
top: window.innerHeight - 40,
|
|
36
|
+
right: 160,
|
|
37
|
+
bottom: window.innerHeight,
|
|
38
|
+
width: 120,
|
|
39
|
+
height: 40,
|
|
40
|
+
toJSON: () => ({}),
|
|
41
|
+
};
|
|
42
|
+
return original.call(this);
|
|
43
|
+
},
|
|
44
|
+
);
|
|
45
|
+
const result = renderWithProviders(
|
|
46
|
+
<Popover anchorMode="cover-trigger">
|
|
47
|
+
<Popover.Trigger asChild>
|
|
48
|
+
<Button>Filters</Button>
|
|
49
|
+
</Popover.Trigger>
|
|
50
|
+
<PopoverContent>
|
|
51
|
+
<Popover.Close asChild>
|
|
52
|
+
<Button>Apply</Button>
|
|
53
|
+
</Popover.Close>
|
|
54
|
+
</PopoverContent>
|
|
55
|
+
</Popover>,
|
|
56
|
+
);
|
|
57
|
+
const trigger = result.getByRole("button", { name: "Filters" });
|
|
58
|
+
fireEvent.mouseDown(trigger, { detail: 1 });
|
|
59
|
+
fireEvent.mouseUp(trigger, { detail: 1 });
|
|
60
|
+
fireEvent.click(trigger, { detail: 1 });
|
|
61
|
+
const sheet = await result.findByTestId("floating-panel-sheet");
|
|
62
|
+
expect(result.queryByTestId("floating-panel-viewport")).toBeNull();
|
|
63
|
+
fireEvent.click(within(sheet).getByRole("button", { name: "Apply" }));
|
|
64
|
+
await waitFor(() => expect(document.activeElement).toBe(trigger));
|
|
65
|
+
});
|
|
66
|
+
it("keeps ordinary Popover composition on its existing overlay", async () => {
|
|
67
|
+
const result = renderWithProviders(
|
|
68
|
+
<Popover defaultOpen>
|
|
69
|
+
<Popover.Trigger asChild>
|
|
70
|
+
<Button>Details</Button>
|
|
71
|
+
</Popover.Trigger>
|
|
72
|
+
<PopoverContent>
|
|
73
|
+
<Button>Existing content</Button>
|
|
74
|
+
</PopoverContent>
|
|
75
|
+
</Popover>,
|
|
76
|
+
);
|
|
77
|
+
expect(await result.findByRole("button", { name: "Existing content" })).toBeTruthy();
|
|
78
|
+
expect(result.queryByTestId("floating-panel-viewport")).toBeNull();
|
|
79
|
+
});
|
|
80
|
+
it("uses the shared floating panel and preserves compositional close", async () => {
|
|
81
|
+
const result = renderWithProviders(
|
|
82
|
+
<Popover anchorMode="cover-trigger" triggerRow={<Button>Filters</Button>}>
|
|
83
|
+
<Popover.Trigger asChild>
|
|
84
|
+
<Button>Filters</Button>
|
|
85
|
+
</Popover.Trigger>
|
|
86
|
+
<PopoverContent>
|
|
87
|
+
<Popover.Close asChild>
|
|
88
|
+
<Button>Apply filters</Button>
|
|
89
|
+
</Popover.Close>
|
|
90
|
+
</PopoverContent>
|
|
91
|
+
</Popover>,
|
|
92
|
+
);
|
|
93
|
+
fireEvent.click(result.getByRole("button", { name: "Filters" }), { detail: 0 });
|
|
94
|
+
const panel = await result.findByTestId("floating-panel-viewport");
|
|
95
|
+
expect(within(panel).getByRole("button", { name: "Filters" })).toBeTruthy();
|
|
96
|
+
fireEvent.click(result.getByRole("button", { name: "Apply filters" }));
|
|
97
|
+
await waitFor(() => expect(result.queryByTestId("floating-panel-viewport")).toBeNull());
|
|
98
|
+
});
|
|
99
|
+
});
|
package/src/Popover.tsx
ADDED
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Children,
|
|
3
|
+
Fragment,
|
|
4
|
+
cloneElement,
|
|
5
|
+
createContext,
|
|
6
|
+
forwardRef,
|
|
7
|
+
isValidElement,
|
|
8
|
+
useImperativeHandle,
|
|
9
|
+
useEffect,
|
|
10
|
+
useContext,
|
|
11
|
+
useState,
|
|
12
|
+
type ComponentProps,
|
|
13
|
+
type ComponentRef,
|
|
14
|
+
type ReactElement,
|
|
15
|
+
type ReactNode,
|
|
16
|
+
} from "react";
|
|
17
|
+
import { FloatingPanel } from "@multiplatform.one/forms";
|
|
18
|
+
import {
|
|
19
|
+
Popover as TamaguiPopover,
|
|
20
|
+
View,
|
|
21
|
+
useControllableState,
|
|
22
|
+
withStaticProperties,
|
|
23
|
+
} from "tamagui";
|
|
24
|
+
import type { PopoverProps as TamaguiPopoverProps } from "tamagui";
|
|
25
|
+
import { PopoverContent } from "./surfaces";
|
|
26
|
+
|
|
27
|
+
export type PopoverProps = TamaguiPopoverProps & {
|
|
28
|
+
anchorMode?: "cover-trigger" | "attach";
|
|
29
|
+
triggerRow?: ReactNode;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export type Popover = {
|
|
33
|
+
anchorTo: (rect: { x: number; y: number; width: number; height: number }) => void;
|
|
34
|
+
toggle: () => void;
|
|
35
|
+
open: () => void;
|
|
36
|
+
close: () => void;
|
|
37
|
+
setOpen: (open: boolean) => void;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
const CoverPopoverContext = createContext<(() => void) | null>(null);
|
|
41
|
+
|
|
42
|
+
const PopoverClose = forwardRef<
|
|
43
|
+
ComponentRef<typeof TamaguiPopover.Close>,
|
|
44
|
+
ComponentProps<typeof TamaguiPopover.Close>
|
|
45
|
+
>(function PopoverClose(props, ref) {
|
|
46
|
+
const close = useContext(CoverPopoverContext);
|
|
47
|
+
if (!close) return <TamaguiPopover.Close {...props} ref={ref} />;
|
|
48
|
+
return (
|
|
49
|
+
<View
|
|
50
|
+
{...props}
|
|
51
|
+
ref={ref}
|
|
52
|
+
onPress={(event) => {
|
|
53
|
+
props.onPress?.(event);
|
|
54
|
+
if (!event.defaultPrevented) close();
|
|
55
|
+
}}
|
|
56
|
+
/>
|
|
57
|
+
);
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
function parts(children: ReactNode): ReactElement<Record<string, any>>[] {
|
|
61
|
+
return Children.toArray(children).flatMap((child) => {
|
|
62
|
+
if (!isValidElement<Record<string, any>>(child)) return [];
|
|
63
|
+
return child.type === Fragment ? parts(child.props.children) : [child];
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
const CoverPopover = forwardRef<Popover, PopoverProps>(function CoverPopover(
|
|
68
|
+
{
|
|
69
|
+
children,
|
|
70
|
+
open: openProp,
|
|
71
|
+
defaultOpen = false,
|
|
72
|
+
onOpenChange,
|
|
73
|
+
triggerRow,
|
|
74
|
+
anchorMode: _anchorMode,
|
|
75
|
+
..._props
|
|
76
|
+
},
|
|
77
|
+
ref,
|
|
78
|
+
) {
|
|
79
|
+
const [open, setOpen] = useControllableState({
|
|
80
|
+
prop: openProp,
|
|
81
|
+
defaultProp: defaultOpen,
|
|
82
|
+
onChange: onOpenChange,
|
|
83
|
+
});
|
|
84
|
+
const [anchorRect, setAnchorRect] = useState<Parameters<Popover["anchorTo"]>[0]>();
|
|
85
|
+
useImperativeHandle(
|
|
86
|
+
ref,
|
|
87
|
+
() => ({
|
|
88
|
+
anchorTo: setAnchorRect,
|
|
89
|
+
toggle: () => setOpen(!open),
|
|
90
|
+
open: () => setOpen(true),
|
|
91
|
+
close: () => setOpen(false),
|
|
92
|
+
setOpen,
|
|
93
|
+
}),
|
|
94
|
+
[open, setOpen],
|
|
95
|
+
);
|
|
96
|
+
const childrenParts = parts(children);
|
|
97
|
+
const triggerPart = childrenParts.find((child) => child.type === TamaguiPopover.Trigger);
|
|
98
|
+
const content = childrenParts.filter(
|
|
99
|
+
(child) => child.type === TamaguiPopover.Content || child.type === PopoverContent,
|
|
100
|
+
);
|
|
101
|
+
const unsupported = [
|
|
102
|
+
"onOpenAutoFocus",
|
|
103
|
+
"onCloseAutoFocus",
|
|
104
|
+
"onEscapeKeyDown",
|
|
105
|
+
"onPointerDownOutside",
|
|
106
|
+
"onFocusOutside",
|
|
107
|
+
"onInteractOutside",
|
|
108
|
+
"trapFocus",
|
|
109
|
+
"disableOutsidePointerEvents",
|
|
110
|
+
"disableFocusScope",
|
|
111
|
+
"forceMount",
|
|
112
|
+
];
|
|
113
|
+
const unsupportedContent = content.some((child) =>
|
|
114
|
+
unsupported.some((key) => child.props[key] != null),
|
|
115
|
+
);
|
|
116
|
+
useEffect(() => {
|
|
117
|
+
if (process.env.NODE_ENV !== "production" && (!content.length || unsupportedContent)) {
|
|
118
|
+
console.warn(
|
|
119
|
+
"Popover cover-trigger requires a direct Popover.Content or PopoverContent child and uses FloatingPanel focus and dismissal. Content-specific focus and dismissal overrides are not supported in this mode.",
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
}, [content.length, unsupportedContent]);
|
|
123
|
+
const trigger = triggerPart?.props.children ?? triggerRow;
|
|
124
|
+
const decorated = isValidElement(trigger)
|
|
125
|
+
? cloneElement(trigger as ReactElement<Record<string, unknown>>, {
|
|
126
|
+
"aria-haspopup": "dialog",
|
|
127
|
+
"aria-expanded": open,
|
|
128
|
+
})
|
|
129
|
+
: trigger;
|
|
130
|
+
return (
|
|
131
|
+
<CoverPopoverContext.Provider value={() => setOpen(false)}>
|
|
132
|
+
<FloatingPanel
|
|
133
|
+
open={open}
|
|
134
|
+
onOpenChange={setOpen}
|
|
135
|
+
anchorMode="cover-trigger"
|
|
136
|
+
trigger={decorated}
|
|
137
|
+
triggerRow={triggerRow}
|
|
138
|
+
anchorRect={anchorRect}
|
|
139
|
+
triggerSizing="content"
|
|
140
|
+
contentPadding="none"
|
|
141
|
+
>
|
|
142
|
+
{content.map((child, index) => {
|
|
143
|
+
const { children: body, ...contentProps } = child.props;
|
|
144
|
+
const viewProps = Object.fromEntries(
|
|
145
|
+
Object.entries(contentProps).filter(([key]) => !unsupported.includes(key)),
|
|
146
|
+
);
|
|
147
|
+
return (
|
|
148
|
+
<View key={child.key ?? index} {...(viewProps as ComponentProps<typeof View>)}>
|
|
149
|
+
{body}
|
|
150
|
+
</View>
|
|
151
|
+
);
|
|
152
|
+
})}
|
|
153
|
+
</FloatingPanel>
|
|
154
|
+
</CoverPopoverContext.Provider>
|
|
155
|
+
);
|
|
156
|
+
});
|
|
157
|
+
|
|
158
|
+
const PopoverRoot = forwardRef<Popover, PopoverProps>(function PopoverRoot(
|
|
159
|
+
{ anchorMode, triggerRow, ...props },
|
|
160
|
+
ref,
|
|
161
|
+
) {
|
|
162
|
+
if (anchorMode === "cover-trigger")
|
|
163
|
+
return <CoverPopover ref={ref} {...props} anchorMode={anchorMode} triggerRow={triggerRow} />;
|
|
164
|
+
return (
|
|
165
|
+
<CoverPopoverContext.Provider value={null}>
|
|
166
|
+
<TamaguiPopover ref={ref} {...props} />
|
|
167
|
+
</CoverPopoverContext.Provider>
|
|
168
|
+
);
|
|
169
|
+
});
|
|
170
|
+
|
|
171
|
+
export const Popover = withStaticProperties(PopoverRoot, {
|
|
172
|
+
Trigger: TamaguiPopover.Trigger,
|
|
173
|
+
Content: TamaguiPopover.Content,
|
|
174
|
+
Close: PopoverClose,
|
|
175
|
+
Anchor: TamaguiPopover.Anchor,
|
|
176
|
+
Adapt: TamaguiPopover.Adapt,
|
|
177
|
+
FocusScope: TamaguiPopover.FocusScope,
|
|
178
|
+
Arrow: TamaguiPopover.Arrow,
|
|
179
|
+
ScrollView: TamaguiPopover.ScrollView,
|
|
180
|
+
});
|
|
@@ -3,8 +3,10 @@ import { useState } from "react";
|
|
|
3
3
|
// Catalog Button (G-15 story honesty / LC-18, UX-P06).
|
|
4
4
|
import { Button } from "@multiplatform.one/forms";
|
|
5
5
|
import { OVERLAY_ANCHOR_GAP, useResolvedKnobs } from "@multiplatform.one/theme";
|
|
6
|
-
import {
|
|
6
|
+
import { YStack } from "tamagui";
|
|
7
|
+
import { Popover } from "./Popover";
|
|
7
8
|
import { PopoverContent } from "./surfaces";
|
|
9
|
+
import { Paragraph, SizableText } from "./Text";
|
|
8
10
|
|
|
9
11
|
function PopoverHarness({
|
|
10
12
|
placement = "bottom" as const,
|
|
@@ -67,3 +69,23 @@ export const PlacementTop: Story = {
|
|
|
67
69
|
export const Closed: Story = {
|
|
68
70
|
render: () => <PopoverHarness startOpen={false} />,
|
|
69
71
|
};
|
|
72
|
+
|
|
73
|
+
export const CoverTrigger: Story = {
|
|
74
|
+
render: () => (
|
|
75
|
+
<YStack padding="$4" alignItems="flex-start">
|
|
76
|
+
<Popover anchorMode="cover-trigger" triggerRow={<Button>Panel filters</Button>}>
|
|
77
|
+
<Popover.Trigger asChild>
|
|
78
|
+
<Button>Panel filters</Button>
|
|
79
|
+
</Popover.Trigger>
|
|
80
|
+
<PopoverContent>
|
|
81
|
+
<YStack padding="$4" gap="$3">
|
|
82
|
+
<SizableText>Filter entries</SizableText>
|
|
83
|
+
<Popover.Close asChild>
|
|
84
|
+
<Button>Apply filters</Button>
|
|
85
|
+
</Popover.Close>
|
|
86
|
+
</YStack>
|
|
87
|
+
</PopoverContent>
|
|
88
|
+
</Popover>
|
|
89
|
+
</YStack>
|
|
90
|
+
),
|
|
91
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
+
edgeColorAt,
|
|
2
3
|
transitionProps,
|
|
3
4
|
MIN_PRESS_TARGET,
|
|
4
5
|
ensureKeyboardModalityTracking,
|
|
@@ -202,7 +203,10 @@ export function ProgressSteps({
|
|
|
202
203
|
: kind === "current"
|
|
203
204
|
? currentFill
|
|
204
205
|
: "transparent";
|
|
205
|
-
const markerBorder =
|
|
206
|
+
const markerBorder =
|
|
207
|
+
kind === "upcoming"
|
|
208
|
+
? edgeColorAt(componentColors.indicator.track, knobProps.borderWidthStop)
|
|
209
|
+
: markerBg;
|
|
206
210
|
const markerFg =
|
|
207
211
|
kind === "upcoming"
|
|
208
212
|
? knobProps.textAccentColor
|
package/src/Quote/index.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useResolvedKnobs } from "@multiplatform.one/theme";
|
|
1
|
+
import { edgeColorAt, useResolvedKnobs } from "@multiplatform.one/theme";
|
|
2
2
|
import type { ReactNode } from "react";
|
|
3
3
|
import type { GetProps } from "tamagui";
|
|
4
4
|
import { SizableText, View, XStack, YStack, styled } from "tamagui";
|
|
@@ -74,7 +74,14 @@ export function Quote({ children, cite, ...props }: QuoteProps) {
|
|
|
74
74
|
marginVertical={knobProps.gap.gap}
|
|
75
75
|
{...props}
|
|
76
76
|
>
|
|
77
|
-
{railWidth > 0 ?
|
|
77
|
+
{railWidth > 0 ? (
|
|
78
|
+
<QuoteRail
|
|
79
|
+
width={railWidth}
|
|
80
|
+
minWidth={railWidth}
|
|
81
|
+
backgroundColor={edgeColorAt(componentColors.indicator.track, knobProps.borderWidthStop)}
|
|
82
|
+
aria-hidden
|
|
83
|
+
/>
|
|
84
|
+
) : null}
|
|
78
85
|
<QuoteBody {...knobProps.panelPadding} {...knobProps.gap}>
|
|
79
86
|
<QuoteBlock render="blockquote">
|
|
80
87
|
{/* LC-82 TEXT-RIDES-TEXT: wrap ALL bare string/number children
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/react-native-web-vite";
|
|
2
|
-
import { SizableText,
|
|
2
|
+
import { SizableText, XStack, YStack } from "tamagui";
|
|
3
3
|
import { sectionHeading } from "../componentColors";
|
|
4
4
|
import { Separator } from "./index";
|
|
5
|
+
import { Text } from "../Text";
|
|
5
6
|
|
|
6
7
|
const meta: Meta<typeof Separator> = {
|
|
7
8
|
title: "Components/Separator",
|
|
@@ -2,9 +2,10 @@ import type { Meta, StoryObj } from "@storybook/react-native-web-vite";
|
|
|
2
2
|
import { useEffect, useState } from "react";
|
|
3
3
|
// Catalog Button (G-15 story honesty / LC-18, UX-P06).
|
|
4
4
|
import { Button } from "@multiplatform.one/forms";
|
|
5
|
-
import { isWeb,
|
|
5
|
+
import { isWeb, YStack } from "tamagui";
|
|
6
6
|
import { SheetModal } from "./SheetModal";
|
|
7
7
|
import { SheetFrame } from "./surfaces";
|
|
8
|
+
import { Paragraph, SizableText } from "./Text";
|
|
8
9
|
|
|
9
10
|
function SheetHarness({ long = false, startOpen = true }: { long?: boolean; startOpen?: boolean }) {
|
|
10
11
|
const [open, setOpen] = useState(startOpen);
|
|
@@ -10,9 +10,10 @@ import { Button, Input } from "@multiplatform.one/forms";
|
|
|
10
10
|
import type { Meta, StoryObj } from "@storybook/react-native-web-vite";
|
|
11
11
|
import { useRef, useState } from "react";
|
|
12
12
|
import { Platform, useWindowDimensions, type LayoutChangeEvent } from "react-native";
|
|
13
|
-
import {
|
|
13
|
+
import { YStack } from "tamagui";
|
|
14
14
|
import { ActionBar } from "../actions/ActionBar";
|
|
15
15
|
import { SheetModal } from "./index";
|
|
16
|
+
import { Paragraph, SizableText } from "../Text";
|
|
16
17
|
|
|
17
18
|
function Harness({
|
|
18
19
|
scrollable = false,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/react-native-web-vite";
|
|
2
|
-
import { XStack, YStack,
|
|
2
|
+
import { XStack, YStack, View } from "tamagui";
|
|
3
3
|
import { Card } from "../surfaces";
|
|
4
4
|
import { Skeleton, type SkeletonVariant } from "./index";
|
|
5
|
+
import { Text } from "../Text";
|
|
5
6
|
|
|
6
7
|
const meta: Meta<typeof Skeleton> = {
|
|
7
8
|
title: "Components/Skeleton",
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from "@storybook/react-native-web-vite";
|
|
2
2
|
import { Button, Input } from "@multiplatform.one/forms";
|
|
3
|
-
import {
|
|
3
|
+
import { XStack, YStack, View } from "tamagui";
|
|
4
4
|
import { SkipLink } from "./index";
|
|
5
|
+
import { SizableText } from "../Text";
|
|
5
6
|
|
|
6
7
|
const meta: Meta<typeof SkipLink> = {
|
|
7
8
|
title: "Components/SkipLink",
|
package/src/SkipLink/index.tsx
CHANGED
|
@@ -157,7 +157,7 @@ export function SkipLink({
|
|
|
157
157
|
event.preventDefault();
|
|
158
158
|
}
|
|
159
159
|
if (target) focusSkipTarget(target);
|
|
160
|
-
onSkip?.(target instanceof HTMLElement ? target : null);
|
|
160
|
+
onSkip?.(typeof HTMLElement !== "undefined" && target instanceof HTMLElement ? target : null);
|
|
161
161
|
};
|
|
162
162
|
|
|
163
163
|
return (
|
|
@@ -176,7 +176,6 @@ export function SkipLink({
|
|
|
176
176
|
>
|
|
177
177
|
<SkipLinkSurface
|
|
178
178
|
{...knobProps.elevatedSurface}
|
|
179
|
-
borderWidth={Math.max(knobProps.elevatedSurface.borderWidth, 1)}
|
|
180
179
|
elevation={knobProps.elevatedSurface.elevation ?? "$2"}
|
|
181
180
|
>
|
|
182
181
|
<SizableText
|
|
@@ -6,11 +6,19 @@ import {
|
|
|
6
6
|
wasKeyboardFocus,
|
|
7
7
|
} from "@multiplatform.one/theme";
|
|
8
8
|
import { useCallback, useId, useRef, useState, type ReactNode } from "react";
|
|
9
|
-
import {
|
|
9
|
+
import {
|
|
10
|
+
type SizeTokens,
|
|
11
|
+
Text as TamaguiText,
|
|
12
|
+
View,
|
|
13
|
+
XStack,
|
|
14
|
+
YStack,
|
|
15
|
+
type YStackProps,
|
|
16
|
+
} from "tamagui";
|
|
10
17
|
import { useTranslation } from "../shared/i18n";
|
|
11
18
|
import { LIFT_SCALE } from "../views/kanbanDnd";
|
|
12
19
|
import { SortableHandle, SortableHandleWell } from "./SortableHandle";
|
|
13
20
|
import { useSortableRows } from "./useSortableRows";
|
|
21
|
+
import { Text } from "../Text";
|
|
14
22
|
|
|
15
23
|
export { SortableHandle, SortableHandleWell } from "./SortableHandle";
|
|
16
24
|
export { SortableSessionProvider, useSortableRows } from "./useSortableRows";
|
|
@@ -100,9 +108,9 @@ export function SortableList<T>({
|
|
|
100
108
|
>
|
|
101
109
|
{items.length === 0 ? (
|
|
102
110
|
<YStack minHeight={88} alignItems="center" justifyContent="center" opacity={0.5}>
|
|
103
|
-
<
|
|
111
|
+
<TamaguiText {...knobProps.body} color="$color11">
|
|
104
112
|
{emptyMessage}
|
|
105
|
-
</
|
|
113
|
+
</TamaguiText>
|
|
106
114
|
</YStack>
|
|
107
115
|
) : (
|
|
108
116
|
items.map((item, index) => {
|
|
@@ -158,9 +166,9 @@ export function SortableList<T>({
|
|
|
158
166
|
{renderItem ? (
|
|
159
167
|
renderItem(item, index)
|
|
160
168
|
) : (
|
|
161
|
-
<
|
|
169
|
+
<TamaguiText {...knobProps.body} color="$color12" numberOfLines={1} flex={1}>
|
|
162
170
|
{label}
|
|
163
|
-
</
|
|
171
|
+
</TamaguiText>
|
|
164
172
|
)}
|
|
165
173
|
</XStack>
|
|
166
174
|
</XStack>
|
|
@@ -190,7 +198,7 @@ export function SortableList<T>({
|
|
|
190
198
|
>
|
|
191
199
|
<XStack alignItems="center" gap="$2" minHeight={MIN_PRESS_TARGET}>
|
|
192
200
|
<SortableHandle label={sortable.session.label} itemId={sortable.session.id} dragging />
|
|
193
|
-
<
|
|
201
|
+
<TamaguiText {...knobProps.body}>{sortable.session.label}</TamaguiText>
|
|
194
202
|
</XStack>
|
|
195
203
|
</View>
|
|
196
204
|
) : null}
|
|
@@ -231,7 +231,7 @@ export function useSortableRows<T>({
|
|
|
231
231
|
);
|
|
232
232
|
|
|
233
233
|
useEffect(() => {
|
|
234
|
-
if (!enabled || !canListenOnWindow()) return;
|
|
234
|
+
if (!enabled || typeof document === "undefined" || !canListenOnWindow()) return;
|
|
235
235
|
const onKey = (e: KeyboardEvent) => {
|
|
236
236
|
const current = sessionRef.current;
|
|
237
237
|
if (current) {
|
|
@@ -294,7 +294,8 @@ export function useSortableRows<T>({
|
|
|
294
294
|
index: number,
|
|
295
295
|
e: { pointerType?: string; clientY: number; pointerId?: number; preventDefault?: () => void },
|
|
296
296
|
) => {
|
|
297
|
-
if (!enabled || !rowEnabled(index) || !canListenOnWindow())
|
|
297
|
+
if (!enabled || !rowEnabled(index) || typeof document === "undefined" || !canListenOnWindow())
|
|
298
|
+
return;
|
|
298
299
|
e.preventDefault?.();
|
|
299
300
|
const pointerType = e.pointerType ?? "mouse";
|
|
300
301
|
let lifted = false;
|
|
@@ -9,10 +9,11 @@ import {
|
|
|
9
9
|
import { Button, Input } from "@multiplatform.one/forms";
|
|
10
10
|
import type { Meta, StoryObj } from "@storybook/react-native-web-vite";
|
|
11
11
|
import React from "react";
|
|
12
|
-
import { ScrollView,
|
|
12
|
+
import { ScrollView, XStack, YStack } from "tamagui";
|
|
13
13
|
import { Chip } from "../Chip";
|
|
14
14
|
import { ScrollView as PanelScrollView } from "../ScrollView";
|
|
15
15
|
import { Tabs, type TabsItem } from "./index";
|
|
16
|
+
import { Text } from "../Text";
|
|
16
17
|
|
|
17
18
|
const meta: Meta<typeof Tabs> = {
|
|
18
19
|
title: "Components/Tabs",
|
package/src/Text.spec.tsx
CHANGED
|
@@ -239,6 +239,28 @@ describe("registered body stop", () => {
|
|
|
239
239
|
expect(node.className).toContain("_lh-27px");
|
|
240
240
|
});
|
|
241
241
|
}
|
|
242
|
+
// FZ-7739: a consumer step brings its own leading, so the voices raw text
|
|
243
|
+
// swept onto keep the size's pair instead of 13/23 at `$2`.
|
|
244
|
+
for (const Voice of [Text, Paragraph]) {
|
|
245
|
+
it(`${Voice.name} leads a consumer token size on that step`, () => {
|
|
246
|
+
const { getByText } = renderWithProviders(
|
|
247
|
+
<TamaguiProvider config={bodyConfig} defaultTheme="light">
|
|
248
|
+
<Voice fontSize="$2">{LABEL}</Voice>
|
|
249
|
+
</TamaguiProvider>,
|
|
250
|
+
{ tamagui: false },
|
|
251
|
+
);
|
|
252
|
+
const style = getComputedStyle(getByText(LABEL));
|
|
253
|
+
const stop = bodyConfig.fonts.body;
|
|
254
|
+
expect(style.fontSize).toBe(`${stop.size[2]}px`);
|
|
255
|
+
expect(style.lineHeight).toBe(`${stop.lineHeight?.[2]}px`);
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
it("Text leaves a numeric consumer size on its natural leading", () => {
|
|
259
|
+
const { getByText } = renderWithProviders(<Text fontSize={19}>{LABEL}</Text>);
|
|
260
|
+
const node = getByText(LABEL);
|
|
261
|
+
expect(node.className).toContain("_fos-19px");
|
|
262
|
+
expect(node.className).not.toMatch(/(?:^| )_lh-/);
|
|
263
|
+
});
|
|
242
264
|
it("Paragraph keeps the consumer size variant", () => {
|
|
243
265
|
const { getByText } = renderWithProviders(<Paragraph size="$6">{LABEL}</Paragraph>);
|
|
244
266
|
expect(getByText(LABEL).className).toContain("_fos-f-size-6");
|