@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/layouts/page.tsx
CHANGED
|
@@ -17,17 +17,23 @@
|
|
|
17
17
|
|
|
18
18
|
import {
|
|
19
19
|
MIN_PRESS_TARGET,
|
|
20
|
+
PageGutter,
|
|
20
21
|
containerCapProps,
|
|
21
22
|
hairline,
|
|
22
23
|
layoutBreakpoints,
|
|
23
24
|
resolvePageTitleScale,
|
|
25
|
+
useLayoutSizeClass,
|
|
24
26
|
useResolvedKnobs,
|
|
25
27
|
type PageTitleScale,
|
|
26
28
|
} from "@multiplatform.one/theme";
|
|
29
|
+
import { Button, type ButtonProps } from "@multiplatform.one/forms";
|
|
30
|
+
import { CaretLeftIcon, CaretRightIcon, DotsThreeIcon } from "@phosphor-icons/react";
|
|
27
31
|
import type { ReactNode } from "react";
|
|
28
32
|
import type { ScrollViewProps as TamaguiScrollViewProps, XStackProps, YStackProps } from "tamagui";
|
|
29
33
|
import { H1, H2, H3, H4, H5, H6, Paragraph, Separator, XStack, YStack, isWeb } from "tamagui";
|
|
30
34
|
import { componentColors, sectionHeading } from "../componentColors";
|
|
35
|
+
import { useDirection } from "../hooks/useDirection";
|
|
36
|
+
import { useTranslation } from "../shared/i18n";
|
|
31
37
|
import { ScrollView } from "../ScrollView";
|
|
32
38
|
import { KeyboardAvoidingWrapper } from "./KeyboardAvoidingWrapper";
|
|
33
39
|
import {
|
|
@@ -112,7 +118,9 @@ export function Screen({
|
|
|
112
118
|
{/* DG-A11Y-02: one h1 budget per Screen — catalog headings register here.
|
|
113
119
|
insetToken lets PageHeader bleed its hairline to the column edges. */}
|
|
114
120
|
<PageHeadingScope insetToken={noPadding ? null : (knobProps.panelPadding.padding as string)}>
|
|
115
|
-
{
|
|
121
|
+
<PageGutter inset={noPadding ? null : (knobProps.panelPadding.padding as string)}>
|
|
122
|
+
{children}
|
|
123
|
+
</PageGutter>
|
|
116
124
|
</PageHeadingScope>
|
|
117
125
|
</YStack>
|
|
118
126
|
);
|
|
@@ -151,6 +159,8 @@ export interface PageHeaderProps extends YStackProps {
|
|
|
151
159
|
title?: string;
|
|
152
160
|
/** Smaller supporting text below the title. */
|
|
153
161
|
subtitle?: string;
|
|
162
|
+
/** The record's state (a status chip), under the title in its column (LC-145). */
|
|
163
|
+
status?: ReactNode;
|
|
154
164
|
/** Override the default H1 — pass a custom heading node. */
|
|
155
165
|
heading?: ReactNode;
|
|
156
166
|
/** Trailing actions (buttons, switchers, etc.) shown right of the title. */
|
|
@@ -188,6 +198,7 @@ export interface PageHeaderProps extends YStackProps {
|
|
|
188
198
|
export function PageHeader({
|
|
189
199
|
title,
|
|
190
200
|
subtitle,
|
|
201
|
+
status,
|
|
191
202
|
heading,
|
|
192
203
|
actions,
|
|
193
204
|
nav,
|
|
@@ -248,7 +259,7 @@ export function PageHeader({
|
|
|
248
259
|
<YStack {...contentPad} paddingBottom={nav ? 0 : (knobProps.gap.gap as "$4")}>
|
|
249
260
|
<XStack
|
|
250
261
|
justifyContent="space-between"
|
|
251
|
-
alignItems={subtitle ? "flex-start" : "center"}
|
|
262
|
+
alignItems={subtitle || status ? "flex-start" : "center"}
|
|
252
263
|
flexWrap="wrap"
|
|
253
264
|
{...knobProps.gap}
|
|
254
265
|
>
|
|
@@ -256,7 +267,7 @@ export function PageHeader({
|
|
|
256
267
|
narrow widths instead of painting past the frame. flexShrink:1 +
|
|
257
268
|
minWidth:0 lets the H1 wrap (DF-02) and each action wrap below the
|
|
258
269
|
title rather than clip off-canvas (DF-01). */}
|
|
259
|
-
{titleNode || subtitle ? (
|
|
270
|
+
{titleNode || subtitle || status ? (
|
|
260
271
|
<YStack flexGrow={1} flexShrink={1} minWidth={0} gap="$1">
|
|
261
272
|
{titleNode}
|
|
262
273
|
{subtitle ? (
|
|
@@ -265,15 +276,22 @@ export function PageHeader({
|
|
|
265
276
|
{subtitle}
|
|
266
277
|
</Paragraph>
|
|
267
278
|
) : null}
|
|
279
|
+
{status ? <XStack alignItems="center">{status}</XStack> : null}
|
|
268
280
|
</YStack>
|
|
269
281
|
) : null}
|
|
270
282
|
{actions ? (
|
|
283
|
+
// Grows into the row it lands on: beside the title it stays
|
|
284
|
+
// trailing, wrapped under it (a phone) it spans the content
|
|
285
|
+
// width, so the trailing action reaches the gutter.
|
|
271
286
|
<XStack
|
|
272
287
|
{...knobProps.gap}
|
|
273
288
|
alignItems="center"
|
|
289
|
+
justifyContent="flex-end"
|
|
274
290
|
flexWrap="wrap"
|
|
291
|
+
flexGrow={1}
|
|
275
292
|
flexShrink={1}
|
|
276
293
|
minWidth={0}
|
|
294
|
+
data-page-header-actions=""
|
|
277
295
|
>
|
|
278
296
|
{actions}
|
|
279
297
|
</XStack>
|
|
@@ -382,7 +400,7 @@ export function PageSection({
|
|
|
382
400
|
{headerBlock}
|
|
383
401
|
{surface ? (
|
|
384
402
|
<YStack {...knobProps.gap} {...surfaceProps}>
|
|
385
|
-
{children}
|
|
403
|
+
<PageGutter inset={null}>{children}</PageGutter>
|
|
386
404
|
</YStack>
|
|
387
405
|
) : (
|
|
388
406
|
children
|
|
@@ -414,26 +432,36 @@ export interface ScreenToolbarProps extends XStackProps {
|
|
|
414
432
|
*
|
|
415
433
|
* SP-PAD + SP-GAP on the bar; child actions own size/radius/A-STATE (Button
|
|
416
434
|
* contract). Nested under Screen, the bar bleeds Screen's inset then
|
|
417
|
-
* re-applies
|
|
418
|
-
* double-padding.
|
|
435
|
+
* re-applies it horizontally so the row shares the page line (LC-38) without
|
|
436
|
+
* double-padding. Screen already pads the top and spaces its children, so a
|
|
437
|
+
* nested bar adds no vertical padding: the title sits one section gap below.
|
|
419
438
|
*/
|
|
420
439
|
export function ScreenToolbar({ leading, trailing, children, ...rest }: ScreenToolbarProps) {
|
|
421
440
|
const { knobProps } = useResolvedKnobs({ component: "ScreenToolbar" });
|
|
422
441
|
const insetToken = usePageChromeInset();
|
|
423
442
|
const bleed = insetToken ? { marginHorizontal: negateSpaceToken(insetToken) as "$4" } : null;
|
|
443
|
+
// LC-145: a phone top bar is one row; the leading group shrinks first.
|
|
444
|
+
const oneRow = useLayoutSizeClass() === "compact";
|
|
424
445
|
return (
|
|
425
446
|
<XStack
|
|
426
447
|
data-testid="screen-toolbar"
|
|
427
448
|
justifyContent="space-between"
|
|
428
449
|
alignItems="center"
|
|
429
|
-
flexWrap="wrap"
|
|
450
|
+
flexWrap={oneRow ? "nowrap" : "wrap"}
|
|
430
451
|
minHeight={MIN_PRESS_TARGET}
|
|
431
452
|
{...bleed}
|
|
432
|
-
{...knobProps.panelPadding}
|
|
453
|
+
{...(insetToken ? { paddingHorizontal: insetToken as "$4" } : knobProps.panelPadding)}
|
|
433
454
|
{...knobProps.gap}
|
|
434
455
|
{...rest}
|
|
435
456
|
>
|
|
436
|
-
<XStack
|
|
457
|
+
<XStack
|
|
458
|
+
{...knobProps.gap}
|
|
459
|
+
alignItems="center"
|
|
460
|
+
flexWrap="wrap"
|
|
461
|
+
// Shrink weight, not a size: the back label gives way before the actions wrap.
|
|
462
|
+
flexShrink={oneRow ? 1000 : 1}
|
|
463
|
+
minWidth={0}
|
|
464
|
+
>
|
|
437
465
|
{leading}
|
|
438
466
|
</XStack>
|
|
439
467
|
{children}
|
|
@@ -450,3 +478,64 @@ export function ScreenToolbar({ leading, trailing, children, ...rest }: ScreenTo
|
|
|
450
478
|
</XStack>
|
|
451
479
|
);
|
|
452
480
|
}
|
|
481
|
+
|
|
482
|
+
// ---------------------------------------------------------------------------
|
|
483
|
+
// Top-bar controls — back and the "…" overflow (LC-145 BACK-IN-TOP-BAR)
|
|
484
|
+
// ---------------------------------------------------------------------------
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* One recipe for the quiet controls in a page's top bar: chromeless, at the
|
|
488
|
+
* page's control size, so back and "…" read as one row of the same weight
|
|
489
|
+
* and hit area.
|
|
490
|
+
*/
|
|
491
|
+
function useTopBarControl() {
|
|
492
|
+
const { knobProps } = useResolvedKnobs({ component: "ScreenToolbar" });
|
|
493
|
+
return { size: knobProps.sizeToken, chromeless: true } as const;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
export interface PageBackButtonProps extends Omit<ButtonProps, "children"> {
|
|
497
|
+
/** Where back goes, shown beside the caret (the list's name). */
|
|
498
|
+
label?: string;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* The page's back control. It sits in ScreenToolbar's leading slot, never on
|
|
503
|
+
* a row of its own, with its caret on the content gutter (Button `edge`).
|
|
504
|
+
*/
|
|
505
|
+
export function PageBackButton({ label, ...props }: PageBackButtonProps) {
|
|
506
|
+
const control = useTopBarControl();
|
|
507
|
+
const { t } = useTranslation();
|
|
508
|
+
const rtl = useDirection() === "rtl";
|
|
509
|
+
return (
|
|
510
|
+
<Button
|
|
511
|
+
{...control}
|
|
512
|
+
edge="start"
|
|
513
|
+
flexShrink={1}
|
|
514
|
+
minWidth={0}
|
|
515
|
+
icon={rtl ? CaretRightIcon : CaretLeftIcon}
|
|
516
|
+
aria-label={label ? undefined : t("Back")}
|
|
517
|
+
data-top-bar-control="back"
|
|
518
|
+
{...props}
|
|
519
|
+
>
|
|
520
|
+
{label}
|
|
521
|
+
</Button>
|
|
522
|
+
);
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* The page's "…" overflow trigger: the back control's recipe and size, icon
|
|
527
|
+
* only. Pass `edge="end"` when it is the bar's last control.
|
|
528
|
+
*/
|
|
529
|
+
export function PageMenuButton(props: Omit<ButtonProps, "children">) {
|
|
530
|
+
const control = useTopBarControl();
|
|
531
|
+
const { t } = useTranslation();
|
|
532
|
+
return (
|
|
533
|
+
<Button
|
|
534
|
+
{...control}
|
|
535
|
+
icon={DotsThreeIcon}
|
|
536
|
+
aria-label={t("More actions")}
|
|
537
|
+
data-top-bar-control="menu"
|
|
538
|
+
{...props}
|
|
539
|
+
/>
|
|
540
|
+
);
|
|
541
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FZ-7703: phone page chrome lines up with the content gutter.
|
|
3
|
+
*
|
|
4
|
+
* LC-141: a ScreenToolbar nested in a Screen pads only horizontally; Screen
|
|
5
|
+
* already pads the top and gaps its children, so a vertically padded bar put
|
|
6
|
+
* ~40pt between the back button and the title.
|
|
7
|
+
* LC-142: PageHeader's actions row grows into its line and aligns trailing,
|
|
8
|
+
* so wrapped under the title it spans the content width.
|
|
9
|
+
*
|
|
10
|
+
* jsdom cannot cascade Tamagui's atomic CSS; these read the atoms.
|
|
11
|
+
*/
|
|
12
|
+
import { cleanup } from "@testing-library/react";
|
|
13
|
+
import { renderWithProviders } from "@multiplatform.one/test-utils";
|
|
14
|
+
import { afterEach, describe, expect, it } from "vitest";
|
|
15
|
+
import { PageHeader, Screen, ScreenToolbar } from "./page";
|
|
16
|
+
|
|
17
|
+
afterEach(cleanup);
|
|
18
|
+
|
|
19
|
+
function atoms(el: Element | null, ...prefixes: string[]): string[] {
|
|
20
|
+
return String((el as HTMLElement | null)?.className || "")
|
|
21
|
+
.split(" ")
|
|
22
|
+
.filter((c) => prefixes.some((p) => c.startsWith(p)))
|
|
23
|
+
.sort();
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
describe("ScreenToolbar inside a Screen (LC-141)", () => {
|
|
27
|
+
it("adds no vertical padding but keeps the page gutter", () => {
|
|
28
|
+
const { container } = renderWithProviders(
|
|
29
|
+
<Screen scroll={false}>
|
|
30
|
+
<ScreenToolbar leading={<span>Back</span>} trailing={<span>Save</span>} />
|
|
31
|
+
</Screen>,
|
|
32
|
+
);
|
|
33
|
+
const bar = container.querySelector('[data-testid="screen-toolbar"]');
|
|
34
|
+
expect(atoms(bar, "_pt-", "_pb-", "_p-")).toEqual([]);
|
|
35
|
+
expect(atoms(bar, "_pl-").length).toBe(1);
|
|
36
|
+
expect(atoms(bar, "_pr-").length).toBe(1);
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
it("standalone keeps its panel padding on every side", () => {
|
|
40
|
+
const { container } = renderWithProviders(
|
|
41
|
+
<ScreenToolbar leading={<span>Back</span>} trailing={<span>Save</span>} />,
|
|
42
|
+
);
|
|
43
|
+
const bar = container.querySelector('[data-testid="screen-toolbar"]');
|
|
44
|
+
expect(atoms(bar, "_pt-", "_pb-").length).toBe(2);
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
describe("PageHeader actions (LC-142)", () => {
|
|
49
|
+
it("grow into their line and align trailing", () => {
|
|
50
|
+
const { container } = renderWithProviders(
|
|
51
|
+
<PageHeader title="Pokemon" actions={<button type="button">Add</button>} />,
|
|
52
|
+
);
|
|
53
|
+
const row = container.querySelector("[data-page-header-actions]");
|
|
54
|
+
expect(row).toBeTruthy();
|
|
55
|
+
expect(atoms(row, "_fg-")).toEqual(["_fg-1"]);
|
|
56
|
+
expect(atoms(row, "_jc-")).toEqual(["_jc-flex-end"]);
|
|
57
|
+
});
|
|
58
|
+
});
|
package/src/layouts/sidebar.tsx
CHANGED
|
@@ -12,9 +12,10 @@ import {
|
|
|
12
12
|
} from "@multiplatform.one/theme";
|
|
13
13
|
import type React from "react";
|
|
14
14
|
import { Fragment, useId, useState } from "react";
|
|
15
|
-
import { Label, Separator, Text, XStack, YStack, isWeb } from "tamagui";
|
|
15
|
+
import { Label, Separator, Text as TamaguiText, XStack, YStack, isWeb } from "tamagui";
|
|
16
16
|
import { ScrollView } from "../ScrollView";
|
|
17
17
|
import { componentColors } from "../componentColors";
|
|
18
|
+
import { Text } from "../Text";
|
|
18
19
|
|
|
19
20
|
export interface SidebarSection {
|
|
20
21
|
/**
|
|
@@ -103,6 +104,7 @@ export function Sidebar({
|
|
|
103
104
|
<Label
|
|
104
105
|
id={titleId}
|
|
105
106
|
size={knobProps.sizeToken}
|
|
107
|
+
{...knobProps.body}
|
|
106
108
|
fontSize="$2"
|
|
107
109
|
fontWeight="400"
|
|
108
110
|
textTransform="uppercase"
|
|
@@ -212,23 +214,23 @@ export function Sidebar({
|
|
|
212
214
|
</YStack>
|
|
213
215
|
) : null}
|
|
214
216
|
<YStack flex={1} minWidth={0} justifyContent="center">
|
|
215
|
-
<
|
|
217
|
+
<TamaguiText
|
|
216
218
|
{...knobProps.body}
|
|
217
219
|
color={ink}
|
|
218
220
|
fontWeight={item.active ? "600" : "400"}
|
|
219
221
|
numberOfLines={1}
|
|
220
222
|
>
|
|
221
223
|
{item.label}
|
|
222
|
-
</
|
|
224
|
+
</TamaguiText>
|
|
223
225
|
{item.subTitle ? (
|
|
224
|
-
<
|
|
226
|
+
<TamaguiText
|
|
225
227
|
{...knobProps.body}
|
|
226
228
|
color={metaInk}
|
|
227
229
|
fontSize="$2"
|
|
228
230
|
numberOfLines={1}
|
|
229
231
|
>
|
|
230
232
|
{item.subTitle}
|
|
231
|
-
</
|
|
233
|
+
</TamaguiText>
|
|
232
234
|
) : null}
|
|
233
235
|
</YStack>
|
|
234
236
|
{item.count !== undefined ? (
|
|
@@ -76,14 +76,14 @@ describe("Tags Add Tag trigger (chip-scale)", () => {
|
|
|
76
76
|
|
|
77
77
|
/**
|
|
78
78
|
* DG-BOR-01 (MPO-106 D3): the RESOLVER owns the outlined hairline floor —
|
|
79
|
-
* `outlined` + `none` draws the enumerated `small` stop,
|
|
79
|
+
* `outlined` + `none` draws the enumerated `small` stop (1px on web, LC-148) — and a
|
|
80
80
|
* component adds no second `Math.max(..., 1)` on top. A local floor made
|
|
81
81
|
* `small` measure the same as `medium` here and nowhere else, so the Tags
|
|
82
82
|
* row was the one outlined control the borderWidth knob could not thin.
|
|
83
83
|
*/
|
|
84
84
|
it.each([
|
|
85
|
-
["none", "
|
|
86
|
-
["small", "
|
|
85
|
+
["none", "1px"],
|
|
86
|
+
["small", "1px"],
|
|
87
87
|
["medium", "1px"],
|
|
88
88
|
["large", "2px"],
|
|
89
89
|
] as const)(
|
package/src/layouts/tags.tsx
CHANGED
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
Input,
|
|
20
20
|
Label,
|
|
21
21
|
Popover,
|
|
22
|
-
Text,
|
|
22
|
+
Text as TamaguiText,
|
|
23
23
|
View,
|
|
24
24
|
XStack,
|
|
25
25
|
YStack,
|
|
@@ -44,6 +44,7 @@ import {
|
|
|
44
44
|
} from "../Chip";
|
|
45
45
|
import { componentColors } from "../componentColors";
|
|
46
46
|
import { withInterp } from "../shared/t";
|
|
47
|
+
import { Text } from "../Text";
|
|
47
48
|
|
|
48
49
|
const AddTagTarget = styled(View, { name: "AddTagTarget" });
|
|
49
50
|
|
|
@@ -339,9 +340,13 @@ export function Tags({
|
|
|
339
340
|
) : (
|
|
340
341
|
<XStack alignItems="center" gap="$2" opacity={0.5}>
|
|
341
342
|
<TagIcon size={small ? 14 : 16} />
|
|
342
|
-
<
|
|
343
|
+
<TamaguiText
|
|
344
|
+
color={knobProps.textAccentColor}
|
|
345
|
+
fontSize={small ? "$1" : "$2"}
|
|
346
|
+
{...knobProps.body}
|
|
347
|
+
>
|
|
343
348
|
{noTagsLabel}
|
|
344
|
-
</
|
|
349
|
+
</TamaguiText>
|
|
345
350
|
</XStack>
|
|
346
351
|
);
|
|
347
352
|
|
|
@@ -458,9 +463,9 @@ export function Tags({
|
|
|
458
463
|
onPress={() => handleSelectOption(option)}
|
|
459
464
|
>
|
|
460
465
|
{option.kind === "create" ? <PlusIcon size={16} /> : null}
|
|
461
|
-
<
|
|
466
|
+
<TamaguiText {...knobProps.body} color={componentColors.text.primary}>
|
|
462
467
|
{option.label}
|
|
463
|
-
</
|
|
468
|
+
</TamaguiText>
|
|
464
469
|
</XStack>
|
|
465
470
|
);
|
|
466
471
|
};
|
|
@@ -490,7 +495,7 @@ export function Tags({
|
|
|
490
495
|
)}
|
|
491
496
|
{suggestionOptions.map((option, i) => renderRow(option, (createOption ? 1 : 0) + i))}
|
|
492
497
|
{showEmptyMessage && (
|
|
493
|
-
<
|
|
498
|
+
<TamaguiText
|
|
494
499
|
fontSize="$2"
|
|
495
500
|
color={knobProps.textAccentColor}
|
|
496
501
|
textAlign="center"
|
|
@@ -498,7 +503,7 @@ export function Tags({
|
|
|
498
503
|
{...knobProps.body}
|
|
499
504
|
>
|
|
500
505
|
{noAvailableTagsLabel}
|
|
501
|
-
</
|
|
506
|
+
</TamaguiText>
|
|
502
507
|
)}
|
|
503
508
|
</YStack>
|
|
504
509
|
);
|
|
@@ -658,10 +663,10 @@ export function Tags({
|
|
|
658
663
|
<Label {...knobProps.label} fontWeight="400">
|
|
659
664
|
{label}
|
|
660
665
|
{maxTags > 0 && (
|
|
661
|
-
<
|
|
666
|
+
<TamaguiText color={knobProps.textAccentColor} fontSize="$2">
|
|
662
667
|
{" "}
|
|
663
668
|
({tags.length}/{maxTags})
|
|
664
|
-
</
|
|
669
|
+
</TamaguiText>
|
|
665
670
|
)}
|
|
666
671
|
</Label>
|
|
667
672
|
</XStack>
|
package/src/layouts/timeline.tsx
CHANGED
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
H5,
|
|
38
38
|
H6,
|
|
39
39
|
Spinner,
|
|
40
|
-
Text,
|
|
40
|
+
Text as TamaguiText,
|
|
41
41
|
TextArea,
|
|
42
42
|
XStack,
|
|
43
43
|
YStack,
|
|
@@ -52,6 +52,7 @@ import { componentColors, sectionHeading } from "../componentColors";
|
|
|
52
52
|
import { bidiIsolate } from "../shared/t";
|
|
53
53
|
import { Skeleton } from "../Skeleton";
|
|
54
54
|
import { AsyncBoundary, resolveAsyncStatus } from "./AsyncBoundary";
|
|
55
|
+
import { Text } from "../Text";
|
|
55
56
|
|
|
56
57
|
const ReplyPressTarget = styled(XStack, { name: "ReplyPressTarget" });
|
|
57
58
|
|
|
@@ -623,7 +624,7 @@ export function Timeline({
|
|
|
623
624
|
};
|
|
624
625
|
|
|
625
626
|
const renderTimestamp = (entry: TimelineEntry, fontSize: string) => (
|
|
626
|
-
<
|
|
627
|
+
<TamaguiText
|
|
627
628
|
fontSize={fontSize}
|
|
628
629
|
color={mutedColor}
|
|
629
630
|
// Absolute compact timestamp in the tooltip + accessible name
|
|
@@ -631,7 +632,7 @@ export function Timeline({
|
|
|
631
632
|
aria-label={defaultFormatTimestamp(entry.timestamp)}
|
|
632
633
|
>
|
|
633
634
|
{formatVisibleTimestamp(entry)}
|
|
634
|
-
</
|
|
635
|
+
</TamaguiText>
|
|
635
636
|
);
|
|
636
637
|
|
|
637
638
|
// R-IDENTITY (D-09 / LC-60): the avatar slot inside a feed row is a
|
|
@@ -850,14 +851,14 @@ export function Timeline({
|
|
|
850
851
|
{renderTimestamp(entry, metaFontSize)}
|
|
851
852
|
</XStack>
|
|
852
853
|
{entry.content && (
|
|
853
|
-
<
|
|
854
|
+
<TamaguiText
|
|
854
855
|
{...knobProps.body}
|
|
855
856
|
fontSize={bodyFontSize}
|
|
856
857
|
color={componentColors.text.primary}
|
|
857
858
|
whiteSpace="pre-wrap"
|
|
858
859
|
>
|
|
859
860
|
{entry.content}
|
|
860
|
-
</
|
|
861
|
+
</TamaguiText>
|
|
861
862
|
)}
|
|
862
863
|
{showReplyAction && (
|
|
863
864
|
<ReplyPressTarget
|
package/src/layouts/toolbar.tsx
CHANGED
|
@@ -10,8 +10,9 @@ import {
|
|
|
10
10
|
import type React from "react";
|
|
11
11
|
import { useTranslation } from "../shared/i18n";
|
|
12
12
|
import { Button } from "@multiplatform.one/forms";
|
|
13
|
-
import { Group, Separator,
|
|
13
|
+
import { Group, Separator, XStack, isWeb, type SizeTokens } from "tamagui";
|
|
14
14
|
import { ScrollView } from "../ScrollView";
|
|
15
|
+
import { Text } from "../Text";
|
|
15
16
|
|
|
16
17
|
export interface ToolbarAction {
|
|
17
18
|
label: string;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { readFileSync } from "node:fs";
|
|
2
|
+
import { join } from "node:path";
|
|
3
|
+
import { expect, it, vi } from "vitest";
|
|
4
|
+
|
|
5
|
+
const loaded = vi.hoisted(() => ({ setup: false }));
|
|
6
|
+
vi.mock("@tamagui/native/setup-expo-linear-gradient", () => {
|
|
7
|
+
loaded.setup = true;
|
|
8
|
+
return {};
|
|
9
|
+
});
|
|
10
|
+
|
|
11
|
+
it("registers expo-linear-gradient with Tamagui so native fades draw (FZ-7713)", async () => {
|
|
12
|
+
await import("./linearGradientSetup.native");
|
|
13
|
+
expect(loaded.setup).toBe(true);
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
it("OverflowRow loads the setup before it draws a fade", () => {
|
|
17
|
+
const source = readFileSync(join(import.meta.dirname, "OverflowRow/index.tsx"), "utf8");
|
|
18
|
+
expect(source).toMatch(/^import "\.\.\/linearGradientSetup";$/m);
|
|
19
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/src/tamagui.spec.ts
CHANGED
|
@@ -78,7 +78,6 @@ const ALLOWLIST_VALUE_NAMES = [
|
|
|
78
78
|
// overlay composition roots — Adapt is dropped (R9 G8); compact vs
|
|
79
79
|
// regular overlays use useViewportGtSm / AdaptivePopup / FloatingPanel.
|
|
80
80
|
// Dialog and AlertDialog are house shadows (MPO-476).
|
|
81
|
-
"Popover",
|
|
82
81
|
"Portal",
|
|
83
82
|
"PortalProvider",
|
|
84
83
|
"Sheet",
|
|
@@ -209,8 +208,8 @@ describe("curated tamagui surface", () => {
|
|
|
209
208
|
).toBeUndefined();
|
|
210
209
|
});
|
|
211
210
|
|
|
212
|
-
it("keeps overlay composition roots Sheet
|
|
213
|
-
for (const name of ["Sheet", "
|
|
211
|
+
it("keeps overlay composition roots Sheet and Portal", () => {
|
|
212
|
+
for (const name of ["Sheet", "Portal"] as const) {
|
|
214
213
|
expect((pkg as Record<string, unknown>)[name], `barrel must keep "${name}"`).toBeDefined();
|
|
215
214
|
expect(
|
|
216
215
|
(pkg as Record<string, unknown>)[name],
|
package/src/tamagui.ts
CHANGED
|
@@ -78,7 +78,8 @@ export type { LinearGradientProps } from "tamagui/linear-gradient";
|
|
|
78
78
|
// Sheet, one shared child tree). Tamagui Menu / create-menu stay off this
|
|
79
79
|
// list (R9 G7). Tamagui Link stays off this list — house Text/Heading owns
|
|
80
80
|
// link chrome (R9 G11).
|
|
81
|
-
export {
|
|
81
|
+
export { Portal, PortalProvider, Sheet } from "tamagui";
|
|
82
|
+
export { Popover, type PopoverProps } from "./Popover";
|
|
82
83
|
// Dialog and AlertDialog are the tamagui roots with house close parts: raw
|
|
83
84
|
// Close names every button it wraps "Dialog Close" (MPO-476, ./Dialog.tsx).
|
|
84
85
|
export { AlertDialog, Dialog } from "./Dialog";
|
|
@@ -121,7 +122,6 @@ export type {
|
|
|
121
122
|
GetRef,
|
|
122
123
|
GroupProps,
|
|
123
124
|
ListItemProps,
|
|
124
|
-
PopoverProps,
|
|
125
125
|
RadiusTokens,
|
|
126
126
|
ScrollViewProps,
|
|
127
127
|
SheetProps,
|
package/src/views/Calendar.tsx
CHANGED
|
@@ -48,7 +48,7 @@ import { Button, FloatingPanel, Input, zIndex } from "@multiplatform.one/forms";
|
|
|
48
48
|
import {
|
|
49
49
|
AnimatePresence,
|
|
50
50
|
SizableText,
|
|
51
|
-
Text,
|
|
51
|
+
Text as TamaguiText,
|
|
52
52
|
XStack,
|
|
53
53
|
YStack,
|
|
54
54
|
isWeb,
|
|
@@ -57,6 +57,7 @@ import {
|
|
|
57
57
|
} from "tamagui";
|
|
58
58
|
import { ScrollView } from "../ScrollView";
|
|
59
59
|
import { useDirection } from "../hooks/useDirection";
|
|
60
|
+
import { Text } from "../Text";
|
|
60
61
|
|
|
61
62
|
/**
|
|
62
63
|
* Calendar view type.
|
|
@@ -461,14 +462,14 @@ function DayNumberDisc({
|
|
|
461
462
|
"data-calendar-day-disc": "true",
|
|
462
463
|
} as any)}
|
|
463
464
|
>
|
|
464
|
-
<
|
|
465
|
+
<TamaguiText
|
|
465
466
|
{...label}
|
|
466
467
|
fontWeight={today ? "700" : label.fontWeight}
|
|
467
468
|
color={today ? (onMark ?? "$accentColor") : inMonth ? "$color" : knobProps.textAccentColor}
|
|
468
469
|
textAlign="center"
|
|
469
470
|
>
|
|
470
471
|
{date.getDate()}
|
|
471
|
-
</
|
|
472
|
+
</TamaguiText>
|
|
472
473
|
</YStack>
|
|
473
474
|
);
|
|
474
475
|
}
|
|
@@ -1667,14 +1668,14 @@ export function Calendar({
|
|
|
1667
1668
|
}
|
|
1668
1669
|
}
|
|
1669
1670
|
>
|
|
1670
|
-
<
|
|
1671
|
+
<TamaguiText
|
|
1671
1672
|
{...knobProps.body}
|
|
1672
1673
|
fontSize={compact ? "$1" : "$2"}
|
|
1673
1674
|
numberOfLines={compact ? 1 : 2}
|
|
1674
1675
|
color={eventChipTextColor(event.color, onIdentity)}
|
|
1675
1676
|
>
|
|
1676
1677
|
{event.title}
|
|
1677
|
-
</
|
|
1678
|
+
</TamaguiText>
|
|
1678
1679
|
</YStack>
|
|
1679
1680
|
);
|
|
1680
1681
|
},
|
|
@@ -1743,9 +1744,9 @@ export function Calendar({
|
|
|
1743
1744
|
role="columnheader"
|
|
1744
1745
|
{...{ backgroundColor: componentColors.surface.background }}
|
|
1745
1746
|
>
|
|
1746
|
-
<
|
|
1747
|
+
<TamaguiText {...nestedKnobs.label} color={knobProps.textAccentColor}>
|
|
1747
1748
|
{day}
|
|
1748
|
-
</
|
|
1749
|
+
</TamaguiText>
|
|
1749
1750
|
</YStack>
|
|
1750
1751
|
))}
|
|
1751
1752
|
</XStack>
|
|
@@ -1875,9 +1876,9 @@ export function Calendar({
|
|
|
1875
1876
|
minWidth={220}
|
|
1876
1877
|
{...{ "data-calendar-overflow-panel": dayKey }}
|
|
1877
1878
|
>
|
|
1878
|
-
<
|
|
1879
|
+
<TamaguiText {...knobProps.heading} fontSize="$3">
|
|
1879
1880
|
{formatDayLong(day)}
|
|
1880
|
-
</
|
|
1881
|
+
</TamaguiText>
|
|
1881
1882
|
{dayEvents.map((event) => renderEventBadge(event, false))}
|
|
1882
1883
|
</YStack>
|
|
1883
1884
|
</FloatingPanel>
|
|
@@ -2084,9 +2085,9 @@ export function Calendar({
|
|
|
2084
2085
|
onDateSelect?.(day);
|
|
2085
2086
|
}}
|
|
2086
2087
|
>
|
|
2087
|
-
<
|
|
2088
|
+
<TamaguiText {...nestedKnobs.label} color={knobProps.textAccentColor}>
|
|
2088
2089
|
{weekdayNames[day.getDay()]}
|
|
2089
|
-
</
|
|
2090
|
+
</TamaguiText>
|
|
2090
2091
|
<DayNumberDisc
|
|
2091
2092
|
date={day}
|
|
2092
2093
|
today={isToday(day)}
|