@multiplatform.one/components 7.71.0 → 7.72.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/DropdownMenu/index.cjs +4 -1
- package/dist/cjs/DropdownMenu/index.native.js +4 -1
- package/dist/cjs/DropdownMenu/index.native.js.map +1 -1
- package/dist/cjs/Popover.cjs +5 -1
- package/dist/cjs/Popover.native.js +5 -1
- package/dist/cjs/Popover.native.js.map +1 -1
- package/dist/cjs/TreeSelect/index.cjs +1 -0
- package/dist/cjs/TreeSelect/index.native.js +1 -0
- package/dist/cjs/TreeSelect/index.native.js.map +1 -1
- package/dist/cjs/appShell/ScopeMenu.cjs +13 -6
- package/dist/cjs/appShell/ScopeMenu.native.js +19 -6
- package/dist/cjs/appShell/ScopeMenu.native.js.map +1 -1
- package/dist/esm/DropdownMenu/index.mjs +4 -1
- package/dist/esm/DropdownMenu/index.mjs.map +1 -1
- package/dist/esm/DropdownMenu/index.native.js +4 -1
- package/dist/esm/DropdownMenu/index.native.js.map +1 -1
- package/dist/esm/Popover.mjs +5 -1
- package/dist/esm/Popover.mjs.map +1 -1
- package/dist/esm/Popover.native.js +5 -1
- package/dist/esm/Popover.native.js.map +1 -1
- package/dist/esm/TreeSelect/index.mjs +1 -0
- package/dist/esm/TreeSelect/index.mjs.map +1 -1
- package/dist/esm/TreeSelect/index.native.js +1 -0
- package/dist/esm/TreeSelect/index.native.js.map +1 -1
- package/dist/esm/appShell/ScopeMenu.mjs +13 -6
- package/dist/esm/appShell/ScopeMenu.mjs.map +1 -1
- package/dist/esm/appShell/ScopeMenu.native.js +19 -6
- package/dist/esm/appShell/ScopeMenu.native.js.map +1 -1
- package/dist/jsx/Accordion/index.native.js.map +1 -1
- package/dist/jsx/Alert/index.native.js.map +1 -1
- package/dist/jsx/AnimateHeight/index.native.js.map +1 -1
- package/dist/jsx/Avatar/getInitials.native.js.map +1 -1
- package/dist/jsx/Avatar/index.native.js.map +1 -1
- package/dist/jsx/Badge/index.native.js.map +1 -1
- package/dist/jsx/Button.native.js.map +1 -1
- package/dist/jsx/Card.native.js.map +1 -1
- package/dist/jsx/CardFooter.native.js.map +1 -1
- package/dist/jsx/CardHeader.native.js.map +1 -1
- package/dist/jsx/Carousel/index.native.js.map +1 -1
- package/dist/jsx/Chip/index.native.js.map +1 -1
- package/dist/jsx/Collapsible.native.js.map +1 -1
- package/dist/jsx/ContextMenu/index.native.js.map +1 -1
- package/dist/jsx/CopyField/index.native.js.map +1 -1
- package/dist/jsx/Dialog.native.js.map +1 -1
- package/dist/jsx/DotIndicator/index.native.js.map +1 -1
- package/dist/jsx/DropdownMenu/index.mjs +4 -1
- package/dist/jsx/DropdownMenu/index.mjs.map +1 -1
- package/dist/jsx/DropdownMenu/index.native.js +4 -1
- package/dist/jsx/DropdownMenu/index.native.js.map +1 -1
- package/dist/jsx/DropdownMenu/menuSettle.native.js.map +1 -1
- package/dist/jsx/ErrorBoundary/index.native.js.map +1 -1
- package/dist/jsx/Heading.native.js.map +1 -1
- package/dist/jsx/Kbd/index.native.js.map +1 -1
- package/dist/jsx/Kbd/keys.native.js.map +1 -1
- package/dist/jsx/Lightbox/MediaControl.native.js.map +1 -1
- package/dist/jsx/Lightbox/index.gnome.native.js.map +1 -1
- package/dist/jsx/Lightbox/shared.native.js.map +1 -1
- package/dist/jsx/Lightbox/useLightbox.native.js.map +1 -1
- package/dist/jsx/Material/index.native.js.map +1 -1
- package/dist/jsx/Meter/index.native.js.map +1 -1
- package/dist/jsx/Meter/meter.native.js.map +1 -1
- package/dist/jsx/OverflowRow/index.native.js.map +1 -1
- package/dist/jsx/Pagination.native.js.map +1 -1
- package/dist/jsx/Popover.mjs +5 -1
- package/dist/jsx/Popover.mjs.map +1 -1
- package/dist/jsx/Popover.native.js +5 -1
- package/dist/jsx/Popover.native.js.map +1 -1
- package/dist/jsx/ProgressSteps/index.native.js.map +1 -1
- package/dist/jsx/Quote/index.native.js.map +1 -1
- package/dist/jsx/SchemeToggle/index.native.js.map +1 -1
- package/dist/jsx/ScrollView/revealFocusedField.native.js.map +1 -1
- package/dist/jsx/Separator/index.native.js.map +1 -1
- package/dist/jsx/Sheet.native.js.map +1 -1
- package/dist/jsx/SheetModal/SheetHeader.native.js.map +1 -1
- package/dist/jsx/SheetModal/SheetNavigation.native.js.map +1 -1
- package/dist/jsx/SheetModal/detents.native.js.map +1 -1
- package/dist/jsx/SheetModal/useSheetFrameFocus.native.js.map +1 -1
- package/dist/jsx/Skeleton/index.native.js.map +1 -1
- package/dist/jsx/SkipLink/index.native.js.map +1 -1
- package/dist/jsx/SortableList/SortableHandle.native.js.map +1 -1
- package/dist/jsx/SortableList/index.native.js.map +1 -1
- package/dist/jsx/SortableList/useSortableRows.native.js.map +1 -1
- package/dist/jsx/Tabs/index.native.js.map +1 -1
- package/dist/jsx/Text.native.js.map +1 -1
- package/dist/jsx/ThemePresetPicker/index.native.js.map +1 -1
- package/dist/jsx/Toast/index.native.js.map +1 -1
- package/dist/jsx/Toast/store.native.js.map +1 -1
- package/dist/jsx/Tooltip/nativePress.native.js.map +1 -1
- package/dist/jsx/Tooltip/tooltipShared.native.js.map +1 -1
- package/dist/jsx/TreeSelect/index.mjs +1 -0
- package/dist/jsx/TreeSelect/index.mjs.map +1 -1
- package/dist/jsx/TreeSelect/index.native.js +1 -0
- package/dist/jsx/TreeSelect/index.native.js.map +1 -1
- package/dist/jsx/TreeSelect/treeSelectModel.native.js.map +1 -1
- package/dist/jsx/Video/PlayerChrome.native.js.map +1 -1
- package/dist/jsx/Video/VideoFrame.native.js.map +1 -1
- package/dist/jsx/Video/types.native.js.map +1 -1
- package/dist/jsx/Wheel/index.native.js.map +1 -1
- package/dist/jsx/Wizard/index.native.js.map +1 -1
- package/dist/jsx/actions/ActionBar.native.js.map +1 -1
- package/dist/jsx/actions/DangerSection.native.js.map +1 -1
- package/dist/jsx/actions/DestructiveAction.native.js.map +1 -1
- package/dist/jsx/actions/HeaderActions.native.js.map +1 -1
- package/dist/jsx/actions/StandardAction.native.js.map +1 -1
- package/dist/jsx/actions/devWarn.native.js.map +1 -1
- package/dist/jsx/actions/index.native.js.map +1 -1
- package/dist/jsx/actions/severity.native.js.map +1 -1
- package/dist/jsx/appShell/Dock.native.js.map +1 -1
- package/dist/jsx/appShell/MpoTabHost.native.js.map +1 -1
- package/dist/jsx/appShell/ScopeMenu.mjs +13 -6
- package/dist/jsx/appShell/ScopeMenu.mjs.map +1 -1
- package/dist/jsx/appShell/ScopeMenu.native.js +19 -6
- package/dist/jsx/appShell/ScopeMenu.native.js.map +1 -1
- package/dist/jsx/appShell/SettingsSplit.native.js.map +1 -1
- package/dist/jsx/appShell/Springboard.native.js.map +1 -1
- package/dist/jsx/appShell/SystemBar.native.js.map +1 -1
- package/dist/jsx/appShell/TabBar.native.js.map +1 -1
- package/dist/jsx/appShell/appTile.native.js.map +1 -1
- package/dist/jsx/appShell/bottomChrome.native.js.map +1 -1
- package/dist/jsx/appShell/index.native.js.map +1 -1
- package/dist/jsx/charts/Axis.native.js.map +1 -1
- package/dist/jsx/charts/BarChart.native.js.map +1 -1
- package/dist/jsx/charts/ChartDataView.native.js.map +1 -1
- package/dist/jsx/charts/ChartSurface.native.js.map +1 -1
- package/dist/jsx/charts/LineChart.native.js.map +1 -1
- package/dist/jsx/charts/PieChart.native.js.map +1 -1
- package/dist/jsx/charts/Sparkline.native.js.map +1 -1
- package/dist/jsx/charts/accessibility.native.js.map +1 -1
- package/dist/jsx/charts/chartHeight.native.js.map +1 -1
- package/dist/jsx/charts/composeChart.native.js.map +1 -1
- package/dist/jsx/charts/index.native.js.map +1 -1
- package/dist/jsx/charts/math.native.js.map +1 -1
- package/dist/jsx/charts/series.native.js.map +1 -1
- package/dist/jsx/charts/svg.native.js.map +1 -1
- package/dist/jsx/charts/types.native.js.map +1 -1
- package/dist/jsx/charts/useChartTheme.native.js.map +1 -1
- package/dist/jsx/code/Code/index.native.js.map +1 -1
- package/dist/jsx/code/CodeBlock/index.native.js.map +1 -1
- package/dist/jsx/code/HighlightedCode/index.native.js.map +1 -1
- package/dist/jsx/code/Highlighter/houseSyntaxTheme.native.js.map +1 -1
- package/dist/jsx/code/Highlighter/index.native.js.map +1 -1
- package/dist/jsx/code/Highlighter/namedGroupMatchAll.native.js.map +1 -1
- package/dist/jsx/code/Pre/index.native.js.map +1 -1
- package/dist/jsx/code/index.native.js.map +1 -1
- package/dist/jsx/componentColors.native.js.map +1 -1
- package/dist/jsx/feedback/ConfirmDialog.native.js.map +1 -1
- package/dist/jsx/feedback/NotifyHost.native.js +1 -1
- package/dist/jsx/feedback/NotifyHost.native.js.map +1 -1
- package/dist/jsx/feedback/copy.native.js.map +1 -1
- package/dist/jsx/feedback/index.native.js.map +1 -1
- package/dist/jsx/feedback/notify.native.js.map +1 -1
- package/dist/jsx/feedback/route.native.js.map +1 -1
- package/dist/jsx/feedback/store.native.js.map +1 -1
- package/dist/jsx/formLayouts/FormLayouts.native.js.map +1 -1
- package/dist/jsx/formLayouts/PreferencePanel.native.js +1 -1
- package/dist/jsx/formLayouts/PreferencePanel.native.js.map +1 -1
- package/dist/jsx/formLayouts/index.native.js.map +1 -1
- package/dist/jsx/hooks/index.native.js.map +1 -1
- package/dist/jsx/hooks/useClipboard.native.js.map +1 -1
- package/dist/jsx/hooks/useDocumentTitle.native.js.map +1 -1
- package/dist/jsx/hooks/useHoldCue.native.js.map +1 -1
- package/dist/jsx/icons/CheckRegular.native.js.map +1 -1
- package/dist/jsx/icons/MinusRegular.native.js.map +1 -1
- package/dist/jsx/icons/index.native.js.map +1 -1
- package/dist/jsx/icons/lucide.native.js.map +1 -1
- package/dist/jsx/icons/themed.native.js.map +1 -1
- package/dist/jsx/images/Image/ImageFrame.native.js.map +1 -1
- package/dist/jsx/images/Image/framing.native.js.map +1 -1
- package/dist/jsx/images/Image/mediaRadius.native.js.map +1 -1
- package/dist/jsx/images/Image/shared.native.js.map +1 -1
- package/dist/jsx/images/Image/types.native.js.map +1 -1
- package/dist/jsx/images/index.native.js.map +1 -1
- package/dist/jsx/index.native.js +1 -1
- package/dist/jsx/index.native.js.map +1 -1
- package/dist/jsx/knobImmuneExports.native.js.map +1 -1
- package/dist/jsx/layouts/AsyncBoundary.native.js +1 -1
- package/dist/jsx/layouts/AsyncBoundary.native.js.map +1 -1
- package/dist/jsx/layouts/Debug/index.native.js.map +1 -1
- package/dist/jsx/layouts/EmptyState.native.js.map +1 -1
- package/dist/jsx/layouts/IdentityPlate.native.js.map +1 -1
- package/dist/jsx/layouts/KeyboardAvoidingWrapper/behavior.native.js.map +1 -1
- package/dist/jsx/layouts/PageTemplates.native.js.map +1 -1
- package/dist/jsx/layouts/PaneScaffold.native.js.map +1 -1
- package/dist/jsx/layouts/SafeAreaWrapper/insets.native.js.map +1 -1
- package/dist/jsx/layouts/StatusDot.native.js.map +1 -1
- package/dist/jsx/layouts/ViewSwitcher.native.js.map +1 -1
- package/dist/jsx/layouts/attachments.native.js.map +1 -1
- package/dist/jsx/layouts/bottomAccessory.native.js.map +1 -1
- package/dist/jsx/layouts/breadcrumbs.native.js.map +1 -1
- package/dist/jsx/layouts/index.native.js.map +1 -1
- package/dist/jsx/layouts/page.native.js.map +1 -1
- package/dist/jsx/layouts/pageHeadingScope.native.js.map +1 -1
- package/dist/jsx/layouts/screenScroll.native.js.map +1 -1
- package/dist/jsx/layouts/shellSidebarSlot.native.js.map +1 -1
- package/dist/jsx/layouts/sidebar.native.js.map +1 -1
- package/dist/jsx/layouts/tags.native.js.map +1 -1
- package/dist/jsx/layouts/timeline.native.js.map +1 -1
- package/dist/jsx/layouts/toolbar.native.js.map +1 -1
- package/dist/jsx/shared/actionScan.native.js.map +1 -1
- package/dist/jsx/shared/i18n.native.js.map +1 -1
- package/dist/jsx/shared/restoreRetries.native.js.map +1 -1
- package/dist/jsx/shared/t.native.js.map +1 -1
- package/dist/jsx/shared/textRidesText.native.js.map +1 -1
- package/dist/jsx/shared/useReturnFocusOnClose.native.js.map +1 -1
- package/dist/jsx/surfaces.native.js.map +1 -1
- package/dist/jsx/tamagui.native.js.map +1 -1
- package/dist/jsx/testSetup.native.js.map +1 -1
- package/dist/jsx/utils/setTinted.native.js.map +1 -1
- package/dist/jsx/utils/unwrapText.native.js.map +1 -1
- package/dist/jsx/views/Calendar.native.js.map +1 -1
- package/dist/jsx/views/Dashboard.native.js.map +1 -1
- package/dist/jsx/views/Gantt.native.js.map +1 -1
- package/dist/jsx/views/GanttDateGrip.native.js.map +1 -1
- package/dist/jsx/views/ImageGrid.native.js.map +1 -1
- package/dist/jsx/views/List.native.js.map +1 -1
- package/dist/jsx/views/ListGroup.native.js.map +1 -1
- package/dist/jsx/views/ListRow.native.js.map +1 -1
- package/dist/jsx/views/Matrix.native.js.map +1 -1
- package/dist/jsx/views/ReportBuilder.native.js.map +1 -1
- package/dist/jsx/views/ShortcutCard.native.js.map +1 -1
- package/dist/jsx/views/TreeView.native.js.map +1 -1
- package/dist/jsx/views/calendarMath.native.js.map +1 -1
- package/dist/jsx/views/ganttIntervals.native.js.map +1 -1
- package/dist/jsx/views/ganttMath.native.js.map +1 -1
- package/dist/jsx/views/index.native.js.map +1 -1
- package/dist/jsx/views/kanbanDnd.native.js.map +1 -1
- package/dist/jsx/views/matrixMath.native.js.map +1 -1
- package/dist/jsx/views/treeViewDnd.native.js.map +1 -1
- package/dist/jsx/views/treeViewLayout.native.js.map +1 -1
- package/dist/jsx/views/treeViewMotion.native.js.map +1 -1
- package/dist/jsx/views/treeViewReveal.native.js.map +1 -1
- package/dist/jsx/views/widgetChrome.native.js.map +1 -1
- package/package.json +9 -9
- package/src/DropdownMenu/DropdownMenu.avatarTrigger.spec.tsx +1 -1
- package/src/DropdownMenu/DropdownMenu.stories.tsx +3 -1
- package/src/DropdownMenu/index.tsx +16 -5
- package/src/Popover.tsx +23 -3
- package/src/SheetModal/SheetModal.menus.spec.tsx +78 -0
- package/src/TreeSelect/index.tsx +1 -0
- package/src/appShell/ScopeMenu.spec.tsx +7 -0
- package/src/appShell/ScopeMenu.tsx +15 -3
- package/types/DropdownMenu/index.d.ts +9 -1
- package/types/DropdownMenu/index.d.ts.map +1 -1
- package/types/Popover.d.ts +11 -0
- package/types/Popover.d.ts.map +1 -1
- package/types/TreeSelect/index.d.ts.map +1 -1
- package/types/appShell/ScopeMenu.d.ts +22 -1
- package/types/appShell/ScopeMenu.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","widgetChrome_exports","NestedIconWell","splitNestedControl","useWidgetChrome","module","exports","import_jsx_runtime","require","import_theme","import_tamagui","nested","px","hitSlop","box","onPress","resolved","useResolvedKnobs","knobProps","control","nestedControl","interactive","cursor","hoverStyle","hoverKnobProps","pressStyle","pressKnobProps","focusVisibleStyle","focusVisibleKnobProps","role"
|
|
1
|
+
{"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","widgetChrome_exports","NestedIconWell","splitNestedControl","useWidgetChrome","module","exports","import_jsx_runtime","require","import_theme","import_tamagui","nested","px","hitSlop","box","onPress","resolved","useResolvedKnobs","knobProps","control","nestedControl","interactive","cursor","hoverStyle","hoverKnobProps","pressStyle","pressKnobProps","focusVisibleStyle","focusVisibleKnobProps","role"],"sources":["../../../src/views/widgetChrome.tsx"],"sourcesContent":[null],"mappings":"AAAA;;AAAA,IACEA,SAAA,GAAAC,MAAA,CAAAC,cAAA;AAAA,IACAC,gBAAA,GAAAF,MAAA,CAAAG,wBAAA;AAAA,IACAC,iBAAA,GAAAJ,MAAA,CAAAK,mBAAA;AAAA,IACAC,YAAA,GAAA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C;EAAA,IAAAH,MAAA;EACA;IACAC,EAAA;IAOCC,OAAA;IACDC;EACA;AACA;AACA,SACEV,gBAAAW,OAAA;EAAA,IAACC,QAAA,OAAAP,YAAA,CAAAQ,gBAAA;EAAA;IAAAC,SAAA;IAAAC;EAAA,IAAAH,QAAA;EAAA,IACEL,MAAG,GAAAR,kBAAA,CAAAe,SAAA,CAAAE,aAAA;EAAA,IACHC,WAAG,GAAAN,OAAA;IAAAO,MACJ,WAAW;IAAAC,UACX,EAAAJ,OAAe,CAAAK,cAAA;IAAAC,UACf,EAAAN,OAAiB,CAAAO,cAAA;IAAAC,iBACJ,EAAIR,OAAA,CAAAS,qBAAA;IAAAb,OACjB;IAASc,IACT;EAAgB,IAEhB;EAAsC;IACxCX,SAAA;IAEJC,OAAA","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@multiplatform.one/components",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.72.0",
|
|
4
4
|
"description": "multiplatform.one ui components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"components",
|
|
@@ -58,11 +58,11 @@
|
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@floating-ui/react": "^0.27.20",
|
|
61
|
-
"@multiplatform.one/forms": "^7.
|
|
62
|
-
"@multiplatform.one/i18n": "^7.
|
|
63
|
-
"@multiplatform.one/platform": "^7.
|
|
64
|
-
"@multiplatform.one/router": "^7.
|
|
65
|
-
"@multiplatform.one/theme": "^7.
|
|
61
|
+
"@multiplatform.one/forms": "^7.72.0",
|
|
62
|
+
"@multiplatform.one/i18n": "^7.72.0",
|
|
63
|
+
"@multiplatform.one/platform": "^7.72.0",
|
|
64
|
+
"@multiplatform.one/router": "^7.72.0",
|
|
65
|
+
"@multiplatform.one/theme": "^7.72.0",
|
|
66
66
|
"@phosphor-icons/react": "^2.1.10",
|
|
67
67
|
"@shopify/flash-list": "^2.3.1",
|
|
68
68
|
"@tamagui/colors": "2.7.6",
|
|
@@ -89,9 +89,9 @@
|
|
|
89
89
|
"tamagui": "2.7.6"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
|
-
"@multiplatform.one/config": "7.
|
|
93
|
-
"@multiplatform.one/storybook": "7.
|
|
94
|
-
"@multiplatform.one/test-utils": "7.
|
|
92
|
+
"@multiplatform.one/config": "7.72.0",
|
|
93
|
+
"@multiplatform.one/storybook": "7.72.0",
|
|
94
|
+
"@multiplatform.one/test-utils": "7.72.0",
|
|
95
95
|
"@tamagui/build": "2.7.6",
|
|
96
96
|
"@testing-library/jest-dom": "^7.0.1",
|
|
97
97
|
"@testing-library/react": "^16.3.3",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* FZ-8220, LC-112, LC-262: an avatar trigger is an icon trigger. The account
|
|
3
|
-
* menu opens
|
|
3
|
+
* menu opens on it (FZ-8438) with no echo row, the avatar alone or inside
|
|
4
4
|
* the press boxes an app wraps around it.
|
|
5
5
|
*/
|
|
6
6
|
import { renderWithProviders } from "@multiplatform.one/test-utils";
|
|
@@ -265,7 +265,9 @@ export const Controlled: Story = {
|
|
|
265
265
|
export const AccountMenu: Story = {
|
|
266
266
|
args: { defaultOpen: true },
|
|
267
267
|
render: (args) => (
|
|
268
|
-
|
|
268
|
+
// The bar spans the page, so the avatar sits in its end zone (LC-162) and
|
|
269
|
+
// its menu opens from the avatar's top trailing corner, as in an app.
|
|
270
|
+
<YStack width="100%" minHeight={360}>
|
|
269
271
|
<XStack
|
|
270
272
|
paddingHorizontal="$3"
|
|
271
273
|
paddingVertical="$2"
|
|
@@ -5,8 +5,8 @@ import { IconSlot } from "@multiplatform.one/theme";
|
|
|
5
5
|
* Trigger + elevated overlay of action rows on the FloatingPanel stack
|
|
6
6
|
* (cover contract: the panel opens OVER its trigger, top edge on the
|
|
7
7
|
* trigger's top edge, trigger label as its first row, `at-least-trigger`
|
|
8
|
-
* width — Clay 2026-10-23; an icon-only trigger
|
|
9
|
-
*
|
|
8
|
+
* width — Clay 2026-10-23; an icon-only trigger's menu also opens on its
|
|
9
|
+
* button, with no echo row, LC-262 and rv_d86cc201997dffd4). Do not fork
|
|
10
10
|
* a second overlay. SF-OVERLAY via elevatedSurface, SP-EDGE rows (container
|
|
11
11
|
* owns only its 1px border; items own ALL padding), LC-21 COMMIT/COMPOSE,
|
|
12
12
|
* and the APG keyboard layer (ArrowUp/Down + Home/End, Enter/Space, Escape,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
} from "react";
|
|
55
55
|
|
|
56
56
|
import { CheckIcon } from "@phosphor-icons/react";
|
|
57
|
-
import { FloatingPanel } from "@multiplatform.one/forms";
|
|
57
|
+
import { FloatingPanel, type PanelWidth } from "@multiplatform.one/forms";
|
|
58
58
|
import type { GetProps, SizeTokens, TamaguiElement } from "tamagui";
|
|
59
59
|
import {
|
|
60
60
|
Text,
|
|
@@ -165,6 +165,13 @@ export interface DropdownMenuProps {
|
|
|
165
165
|
* width beside other bar actions (FZ-7374); `"stretch"` fills the row.
|
|
166
166
|
*/
|
|
167
167
|
triggerSizing?: "stretch" | "content";
|
|
168
|
+
/**
|
|
169
|
+
* How wide the menu opens over its trigger (LC-112, FZ-8438 r3):
|
|
170
|
+
* `"content"`, `"trigger"`, `"screen"` or a fixed width. Unset keeps the
|
|
171
|
+
* default: at least the trigger on the web, the 250pt pull-down floor on
|
|
172
|
+
* native.
|
|
173
|
+
*/
|
|
174
|
+
panelWidth?: PanelWidth;
|
|
168
175
|
}
|
|
169
176
|
|
|
170
177
|
// ── Context ───────────────────────────────────────────────────
|
|
@@ -340,6 +347,7 @@ function DropdownMenuRoot({
|
|
|
340
347
|
closeOnSelect,
|
|
341
348
|
size,
|
|
342
349
|
triggerSizing = "content",
|
|
350
|
+
panelWidth,
|
|
343
351
|
anchorMode,
|
|
344
352
|
triggerRow,
|
|
345
353
|
}: DropdownMenuProps) {
|
|
@@ -433,9 +441,10 @@ function DropdownMenuRoot({
|
|
|
433
441
|
}
|
|
434
442
|
|
|
435
443
|
// LC-262: an icon trigger (a ⋯) is not echoed as the menu's first row, which
|
|
436
|
-
// reads as junk
|
|
444
|
+
// reads as junk. LC-112 (rv_d86cc201997dffd4): its menu still opens ON the
|
|
445
|
+
// button, a top corner on the button's, the way an iOS menu grows out of it.
|
|
437
446
|
const iconTrigger = triggerRow == null && isIconTrigger(trigger);
|
|
438
|
-
const resolvedAnchorMode = anchorMode ??
|
|
447
|
+
const resolvedAnchorMode = anchorMode ?? "cover-trigger";
|
|
439
448
|
|
|
440
449
|
return (
|
|
441
450
|
<Surface size={size}>
|
|
@@ -447,9 +456,11 @@ function DropdownMenuRoot({
|
|
|
447
456
|
trigger={decorateTrigger(trigger, open, onArrow)}
|
|
448
457
|
anchorMode={resolvedAnchorMode}
|
|
449
458
|
triggerEcho={!iconTrigger}
|
|
459
|
+
coverAlign={iconTrigger ? "auto" : "start"}
|
|
450
460
|
triggerRow={triggerRow}
|
|
451
461
|
contentPadding="none"
|
|
452
462
|
triggerSizing={triggerSizing}
|
|
463
|
+
panelWidth={panelWidth}
|
|
453
464
|
// FZ-7830, LC-112: a menu is a menu over its trigger on native, the
|
|
454
465
|
// UIMenu pull-down, never a bottom sheet. The phone-width web keeps
|
|
455
466
|
// its sheet at page level and opens the menu inside an overlay, so a
|
package/src/Popover.tsx
CHANGED
|
@@ -14,7 +14,12 @@ import {
|
|
|
14
14
|
type ReactElement,
|
|
15
15
|
type ReactNode,
|
|
16
16
|
} from "react";
|
|
17
|
-
import {
|
|
17
|
+
import {
|
|
18
|
+
FloatingPanel,
|
|
19
|
+
type PanelWidth,
|
|
20
|
+
useOverlayZIndex,
|
|
21
|
+
withOverlayStack,
|
|
22
|
+
} from "@multiplatform.one/forms";
|
|
18
23
|
import {
|
|
19
24
|
Popover as TamaguiPopover,
|
|
20
25
|
View,
|
|
@@ -27,6 +32,11 @@ import { PopoverContent } from "./surfaces";
|
|
|
27
32
|
export type PopoverProps = TamaguiPopoverProps & {
|
|
28
33
|
anchorMode?: "cover-trigger" | "attach";
|
|
29
34
|
triggerRow?: ReactNode;
|
|
35
|
+
/**
|
|
36
|
+
* Cover-trigger only (LC-112, FZ-8438 r3): how wide the popover opens over
|
|
37
|
+
* its trigger, `"content"`, `"trigger"`, `"screen"` or a fixed width.
|
|
38
|
+
*/
|
|
39
|
+
panelWidth?: PanelWidth;
|
|
30
40
|
};
|
|
31
41
|
|
|
32
42
|
export type Popover = {
|
|
@@ -78,6 +88,7 @@ const CoverPopover = forwardRef<Popover, PopoverProps>(function CoverPopover(
|
|
|
78
88
|
onOpenChange,
|
|
79
89
|
triggerRow,
|
|
80
90
|
anchorMode: _anchorMode,
|
|
91
|
+
panelWidth,
|
|
81
92
|
..._props
|
|
82
93
|
},
|
|
83
94
|
ref,
|
|
@@ -147,6 +158,7 @@ const CoverPopover = forwardRef<Popover, PopoverProps>(function CoverPopover(
|
|
|
147
158
|
anchorRect={anchorRect}
|
|
148
159
|
triggerSizing="content"
|
|
149
160
|
contentPadding="none"
|
|
161
|
+
panelWidth={panelWidth}
|
|
150
162
|
>
|
|
151
163
|
{content.map((child, index) => {
|
|
152
164
|
const { children: body, ...contentProps } = child.props;
|
|
@@ -165,12 +177,20 @@ const CoverPopover = forwardRef<Popover, PopoverProps>(function CoverPopover(
|
|
|
165
177
|
});
|
|
166
178
|
|
|
167
179
|
const PopoverRoot = forwardRef<Popover, PopoverProps>(function PopoverRoot(
|
|
168
|
-
{ anchorMode, triggerRow, ...props },
|
|
180
|
+
{ anchorMode, triggerRow, panelWidth, ...props },
|
|
169
181
|
ref,
|
|
170
182
|
) {
|
|
171
183
|
const stacked = useOverlayZIndex("dropdown");
|
|
172
184
|
if (anchorMode === "cover-trigger")
|
|
173
|
-
return
|
|
185
|
+
return (
|
|
186
|
+
<CoverPopover
|
|
187
|
+
ref={ref}
|
|
188
|
+
{...props}
|
|
189
|
+
anchorMode={anchorMode}
|
|
190
|
+
triggerRow={triggerRow}
|
|
191
|
+
panelWidth={panelWidth}
|
|
192
|
+
/>
|
|
193
|
+
);
|
|
174
194
|
// FZ-7869: tamagui hands the root's zIndex to the content's portal, so a
|
|
175
195
|
// popover opened in a sheet or a dialog sits above it on native too. The
|
|
176
196
|
// content parts carry the stack to what opens inside them.
|
|
@@ -137,6 +137,84 @@ describe("menus inside a SheetModal at 390 (FZ-7830)", () => {
|
|
|
137
137
|
expect(result.queryByTestId("select-dropdown")).toBeNull();
|
|
138
138
|
});
|
|
139
139
|
|
|
140
|
+
// FZ-8438 r3: the width setting changes how wide a menu opens, never which
|
|
141
|
+
// face it takes at phone width.
|
|
142
|
+
it.each(["content", "trigger", "screen", 300] as const)(
|
|
143
|
+
"a short Select with panelWidth %s still opens over its trigger at page level",
|
|
144
|
+
async (panelWidth) => {
|
|
145
|
+
const result = renderWithProviders(
|
|
146
|
+
<Select
|
|
147
|
+
aria-label="Region"
|
|
148
|
+
options={regions.slice(0, 7)}
|
|
149
|
+
defaultValue="helsinki"
|
|
150
|
+
panelWidth={panelWidth}
|
|
151
|
+
/>,
|
|
152
|
+
);
|
|
153
|
+
const trigger = result.getByTestId("select-trigger");
|
|
154
|
+
fireEvent.pointerDown(trigger);
|
|
155
|
+
fireEvent.mouseDown(trigger);
|
|
156
|
+
fireEvent.click(trigger);
|
|
157
|
+
await result.findByTestId("select-dropdown");
|
|
158
|
+
expect(panelSheets().length).toBe(0);
|
|
159
|
+
},
|
|
160
|
+
);
|
|
161
|
+
|
|
162
|
+
it.each(["content", "trigger", "screen", 300] as const)(
|
|
163
|
+
"a long Select with panelWidth %s keeps its sheet at page level",
|
|
164
|
+
async (panelWidth) => {
|
|
165
|
+
const result = renderWithProviders(
|
|
166
|
+
<Select
|
|
167
|
+
aria-label="Region"
|
|
168
|
+
options={regions}
|
|
169
|
+
defaultValue="helsinki"
|
|
170
|
+
panelWidth={panelWidth}
|
|
171
|
+
/>,
|
|
172
|
+
);
|
|
173
|
+
fireEvent.click(result.getByTestId("select-trigger"));
|
|
174
|
+
await waitFor(() => expect(panelSheets().length).toBeGreaterThan(0));
|
|
175
|
+
expect(result.queryByTestId("select-dropdown")).toBeNull();
|
|
176
|
+
},
|
|
177
|
+
);
|
|
178
|
+
|
|
179
|
+
it.each(["trigger", "screen"] as const)(
|
|
180
|
+
"a long Select with panelWidth %s in the sheet opens over its trigger, not a second sheet",
|
|
181
|
+
async (panelWidth) => {
|
|
182
|
+
const result = renderWithProviders(
|
|
183
|
+
<SheetModal open onOpenChange={() => {}}>
|
|
184
|
+
<Select
|
|
185
|
+
aria-label="Region"
|
|
186
|
+
options={regions}
|
|
187
|
+
defaultValue="helsinki"
|
|
188
|
+
panelWidth={panelWidth}
|
|
189
|
+
/>
|
|
190
|
+
</SheetModal>,
|
|
191
|
+
);
|
|
192
|
+
const trigger = (await result.findAllByTestId("select-trigger"))[0];
|
|
193
|
+
fireEvent.pointerDown(trigger);
|
|
194
|
+
fireEvent.mouseDown(trigger);
|
|
195
|
+
fireEvent.click(trigger);
|
|
196
|
+
await result.findByTestId("select-dropdown");
|
|
197
|
+
expect(panelSheets().length).toBe(0);
|
|
198
|
+
},
|
|
199
|
+
);
|
|
200
|
+
|
|
201
|
+
it("a DropdownMenu with panelWidth screen in the sheet opens over its trigger", async () => {
|
|
202
|
+
renderWithProviders(
|
|
203
|
+
<SheetModal open onOpenChange={() => {}}>
|
|
204
|
+
<DropdownMenu
|
|
205
|
+
defaultOpen
|
|
206
|
+
panelWidth="screen"
|
|
207
|
+
items={[{ label: "Stop" }, { label: "Restart" }]}
|
|
208
|
+
>
|
|
209
|
+
<Button>Stack actions</Button>
|
|
210
|
+
</DropdownMenu>
|
|
211
|
+
</SheetModal>,
|
|
212
|
+
);
|
|
213
|
+
await waitFor(() => expect(document.querySelector('[role="menu"]')).toBeTruthy());
|
|
214
|
+
expect(document.querySelector('[data-testid="floating-panel-viewport"]')).toBeTruthy();
|
|
215
|
+
expect(panelSheets().length).toBe(0);
|
|
216
|
+
});
|
|
217
|
+
|
|
140
218
|
it("the Menus in a sheet stories mount", () => {
|
|
141
219
|
for (const story of [MenusInSheet, MenusInOpenSheet]) {
|
|
142
220
|
const result = renderWithProviders(<>{story.render?.({} as never, {} as never)}</>);
|
package/src/TreeSelect/index.tsx
CHANGED
|
@@ -765,6 +765,7 @@ function FloatingTreeSelect({
|
|
|
765
765
|
pointerEvents={panel.visible ? "auto" : "none"}
|
|
766
766
|
{...panel.knobProps.elevatedSurface}
|
|
767
767
|
borderRadius={panel.dropdownRadius}
|
|
768
|
+
paddingBottom={panel.coverCornerInset || undefined}
|
|
768
769
|
overflow="hidden"
|
|
769
770
|
style={
|
|
770
771
|
{
|
|
@@ -71,6 +71,13 @@ describe("ScopeMenu (LC-105 COVER-TRIGGER)", () => {
|
|
|
71
71
|
spy.mockRestore();
|
|
72
72
|
});
|
|
73
73
|
|
|
74
|
+
it("rounds the bar trigger's own box, so the menu covering it is not square (FZ-8438)", () => {
|
|
75
|
+
renderWithProviders(<Tenant />);
|
|
76
|
+
const trigger = screen.getByTestId("tenant-trigger");
|
|
77
|
+
expect(trigger.className).toMatch(/_btlr-/);
|
|
78
|
+
expect(trigger.className).not.toMatch(/_btlr-0px/);
|
|
79
|
+
});
|
|
80
|
+
|
|
74
81
|
it("keeps the pressed item as the first row with its chevron flipped", async () => {
|
|
75
82
|
renderWithProviders(<Tenant />);
|
|
76
83
|
const trigger = screen.getByTestId("tenant-trigger");
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* Narrow viewports and native get FloatingPanel's sheet (phones take
|
|
17
17
|
* sheets); the first-row contract holds there too.
|
|
18
18
|
*/
|
|
19
|
-
import { FloatingPanel } from "@multiplatform.one/forms";
|
|
19
|
+
import { FloatingPanel, type PanelWidth } from "@multiplatform.one/forms";
|
|
20
20
|
import { useMenuRowCheckInk, menuRowChecked, useResolvedKnobs } from "@multiplatform.one/theme";
|
|
21
21
|
import { CaretDownIcon, CaretUpIcon, CheckIcon } from "@phosphor-icons/react";
|
|
22
22
|
import { useState } from "react";
|
|
@@ -37,6 +37,8 @@ export interface ScopeMenuProps {
|
|
|
37
37
|
/** Controlled open state (optional). */
|
|
38
38
|
open?: boolean;
|
|
39
39
|
onOpenChange?: (open: boolean) => void;
|
|
40
|
+
/** How wide the menu opens (LC-112): default `"content"`, at least the trigger. */
|
|
41
|
+
panelWidth?: PanelWidth;
|
|
40
42
|
testID?: string;
|
|
41
43
|
}
|
|
42
44
|
|
|
@@ -73,12 +75,20 @@ function ScopeRow({
|
|
|
73
75
|
paddingHorizontal="$2.5"
|
|
74
76
|
cursor="pointer"
|
|
75
77
|
onPress={onPress}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
+
// The echo row is the trigger itself, laid on the panel (LC-112): the
|
|
79
|
+
// pointer that opened the menu rests on it, and a wash there split the
|
|
80
|
+
// panel into two tones (FZ-8438 r3).
|
|
81
|
+
{...(chevron === "up"
|
|
82
|
+
? undefined
|
|
83
|
+
: { hoverStyle: { ...control.hoverKnobProps }, pressStyle: { ...control.pressKnobProps } })}
|
|
78
84
|
focusVisibleStyle={{ ...control.focusVisibleKnobProps }}
|
|
79
85
|
{...(checked ? menuRowChecked(knobProps.scheme) : undefined)}
|
|
80
86
|
data-testid={testID}
|
|
81
87
|
data-chevron={chevron}
|
|
88
|
+
// LC-112 seamless cover (FZ-8438): the bar trigger's hover wash has the
|
|
89
|
+
// theme's control arc, so the menu that covers it measures a rounded box
|
|
90
|
+
// instead of a square one. Rows inside the menu stay square.
|
|
91
|
+
{...(chevron === "down" ? { borderRadius: knobProps.borderRadius.borderRadius } : undefined)}
|
|
82
92
|
>
|
|
83
93
|
{role === "menuitemradio" ? (
|
|
84
94
|
<YStack width={iconSize} alignItems="center" aria-hidden>
|
|
@@ -100,6 +110,7 @@ export function ScopeMenu({
|
|
|
100
110
|
onChange,
|
|
101
111
|
open: openProp,
|
|
102
112
|
onOpenChange,
|
|
113
|
+
panelWidth,
|
|
103
114
|
testID = "scope-menu",
|
|
104
115
|
}: ScopeMenuProps) {
|
|
105
116
|
const [openState, setOpenState] = useState(false);
|
|
@@ -117,6 +128,7 @@ export function ScopeMenu({
|
|
|
117
128
|
onOpenChange={setOpen}
|
|
118
129
|
cover
|
|
119
130
|
widthMode="at-least-trigger"
|
|
131
|
+
panelWidth={panelWidth}
|
|
120
132
|
contentPadding="none"
|
|
121
133
|
triggerSizing="content"
|
|
122
134
|
triggerEcho={false}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
+
import { type PanelWidth } from "@multiplatform.one/forms";
|
|
2
3
|
import type { GetProps, SizeTokens, TamaguiElement } from "tamagui";
|
|
3
4
|
import { Text } from "tamagui";
|
|
4
5
|
import { type MenuSelectHandler } from "./menuSettle";
|
|
@@ -76,6 +77,13 @@ export interface DropdownMenuProps {
|
|
|
76
77
|
* width beside other bar actions (FZ-7374); `"stretch"` fills the row.
|
|
77
78
|
*/
|
|
78
79
|
triggerSizing?: "stretch" | "content";
|
|
80
|
+
/**
|
|
81
|
+
* How wide the menu opens over its trigger (LC-112, FZ-8438 r3):
|
|
82
|
+
* `"content"`, `"trigger"`, `"screen"` or a fixed width. Unset keeps the
|
|
83
|
+
* default: at least the trigger on the web, the 250pt pull-down floor on
|
|
84
|
+
* native.
|
|
85
|
+
*/
|
|
86
|
+
panelWidth?: PanelWidth;
|
|
79
87
|
}
|
|
80
88
|
declare const ItemRow: import("tamagui").TamaguiComponent<import("@tamagui/web").TamaDefer, TamaguiElement, import("@tamagui/core").RNTamaguiViewNonStyleProps, import("@tamagui/web").StackStyleBase, {
|
|
81
89
|
elevation?: number | SizeTokens | undefined;
|
|
@@ -90,7 +98,7 @@ declare const SeparatorLine: import("tamagui").TamaguiComponent<import("@tamagui
|
|
|
90
98
|
* own or as the only child of plain wrappers (a press box around an avatar).
|
|
91
99
|
*/
|
|
92
100
|
export declare function isIconTrigger(trigger: ReactNode): boolean;
|
|
93
|
-
declare function DropdownMenuRoot({ children, items, open: openProp, defaultOpen, onOpenChange, placement, maxHeight, closeOnSelect, size, triggerSizing, anchorMode, triggerRow, }: DropdownMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
101
|
+
declare function DropdownMenuRoot({ children, items, open: openProp, defaultOpen, onOpenChange, placement, maxHeight, closeOnSelect, size, triggerSizing, panelWidth, anchorMode, triggerRow, }: DropdownMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
94
102
|
export interface DropdownMenuTriggerProps {
|
|
95
103
|
children?: ReactNode;
|
|
96
104
|
asChild?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/DropdownMenu/index.tsx"],"names":[],"mappings":"AAqCA,OAAO,EAcL,KAAK,SAAS,EAEf,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/DropdownMenu/index.tsx"],"names":[],"mappings":"AAqCA,OAAO,EAcL,KAAK,SAAS,EAEf,MAAM,OAAO,CAAC;AAGf,OAAO,EAAiB,KAAK,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACpE,OAAO,EACL,IAAI,EASL,MAAM,SAAS,CAAC;AAEjB,OAAO,EAGL,KAAK,iBAAiB,EAGvB,MAAM,cAAc,CAAC;AAItB,MAAM,MAAM,qBAAqB,GAC7B,KAAK,GACL,WAAW,GACX,SAAS,GACT,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,MAAM,GACN,YAAY,GACZ,UAAU,GACV,OAAO,GACP,aAAa,GACb,WAAW,CAAC;AAEhB,MAAM,WAAW,oBAAoB;IACnC,sCAAsC;IACtC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,SAAS,CAAC;IACjB,sEAAsE;IACtE,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,yCAAyC;IACzC,QAA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yBAAyB;IACzB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,yCAAyC;IACzC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,6CAA6C;IAC7C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAsMD,MAAM,WAAW,6BAA8B,SAAQ,IAAI,CAAC,qBAAqB,EAAE,aAAa,CAAC;IAC/F,OAAO,EAAE,OAAO,CAAC;IACjB,+EAA+E;IAC/E,eAAe,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CAC9C;AAoCD,MAAM,WAAW,0BAA2B,SAAQ,QAAQ,CAAC,OAAO,aAAa,CAAC;CAAG;AAErF,iBAAS,qBAAqB,CAAC,KAAK,EAAE,0BAA0B,2CAE/D;AAED,MAAM,WAAW,sBAAuB,SAAQ,QAAQ,CAAC,OAAO,IAAI,CAAC;IACnE,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,iBAAS,iBAAiB,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,sBAAsB,2CAgBxE;AAID,eAAO,MAAM,YAAY;;;;;;;CAOvB,CAAC;AAEH,MAAM,MAAM,oBAAoB,GAAG,QAAQ,CAAC,OAAO,OAAO,CAAC,CAAC"}
|
package/types/Popover.d.ts
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
+
import { type PanelWidth } from "@multiplatform.one/forms";
|
|
2
3
|
import type { PopoverProps as TamaguiPopoverProps } from "tamagui";
|
|
3
4
|
export type PopoverProps = TamaguiPopoverProps & {
|
|
4
5
|
anchorMode?: "cover-trigger" | "attach";
|
|
5
6
|
triggerRow?: ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Cover-trigger only (LC-112, FZ-8438 r3): how wide the popover opens over
|
|
9
|
+
* its trigger, `"content"`, `"trigger"`, `"screen"` or a fixed width.
|
|
10
|
+
*/
|
|
11
|
+
panelWidth?: PanelWidth;
|
|
6
12
|
};
|
|
7
13
|
export type Popover = {
|
|
8
14
|
anchorTo: (rect: {
|
|
@@ -30,6 +36,11 @@ export declare const Popover: import("react").ForwardRefExoticComponent<Omit<imp
|
|
|
30
36
|
} & {
|
|
31
37
|
anchorMode?: "cover-trigger" | "attach";
|
|
32
38
|
triggerRow?: ReactNode;
|
|
39
|
+
/**
|
|
40
|
+
* Cover-trigger only (LC-112, FZ-8438 r3): how wide the popover opens over
|
|
41
|
+
* its trigger, `"content"`, `"trigger"`, `"screen"` or a fixed width.
|
|
42
|
+
*/
|
|
43
|
+
panelWidth?: PanelWidth;
|
|
33
44
|
} & import("react").RefAttributes<Popover>> & {
|
|
34
45
|
Trigger: import("react").NamedExoticComponent<Omit<import("tamagui").StackNonStyleProps & import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>> & import("@tamagui/web").WithPseudoProps<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase> & import("@tamagui/web").WithShorthands<import("@tamagui/web").WithThemeValues<import("@tamagui/web").StackStyleBase>>> & import("@tamagui/web").WithMediaProps<import("@tamagui/web").WithThemeShorthandsAndPseudos<import("@tamagui/web").StackStyleBase, {}>> & {
|
|
35
46
|
disablePressTrigger?: boolean;
|
package/types/Popover.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popover.d.ts","sourceRoot":"","sources":["../src/Popover.tsx"],"names":[],"mappings":"AAAA,OAAO,EAcL,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Popover.d.ts","sourceRoot":"","s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AAQ,EACR,KAAK,EACL,UAAU,EACV,QAAQ,EACR,OAAO,EACP,IAAI,EAAE,QAAQ,EACd,YAAY,EACZ,kBAAkB,EAClB,EAAE,EAAE,MAAM,EACV,kBAAkB,EAClB,YAAY,EAAE,SAAS,EACvB,GAAG,UAAU,EACd,EAAE,eAAe,2CAqFjB"}
|
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ScopeMenu — a SystemBar menu that grows out of the pressed bar item
|
|
3
|
+
* (LC-105 COVER-TRIGGER).
|
|
4
|
+
*
|
|
5
|
+
* - Built on FloatingPanel's `cover` mode: the panel's top edge sits on the
|
|
6
|
+
* trigger's top edge and the panel scales from the trigger's top start
|
|
7
|
+
* corner, so the pressed item never moves.
|
|
8
|
+
* - The pressed item is kept as the menu's FIRST row, its chevron flipped
|
|
9
|
+
* (pointing up) to show the menu is open; pressing it closes the menu.
|
|
10
|
+
* - Rows are checkable (`menuitemradio` + `aria-checked`) and carry no
|
|
11
|
+
* icons: the check mark on the checked fill (`menuRowChecked`) is the
|
|
12
|
+
* state, not decoration.
|
|
13
|
+
* - One menu per scope. Tenant and environment are two ScopeMenus side by
|
|
14
|
+
* side, never one menu with two sections.
|
|
15
|
+
*
|
|
16
|
+
* Narrow viewports and native get FloatingPanel's sheet (phones take
|
|
17
|
+
* sheets); the first-row contract holds there too.
|
|
18
|
+
*/
|
|
19
|
+
import { type PanelWidth } from "@multiplatform.one/forms";
|
|
1
20
|
export interface ScopeMenuOption {
|
|
2
21
|
value: string;
|
|
3
22
|
label: string;
|
|
@@ -11,7 +30,9 @@ export interface ScopeMenuProps {
|
|
|
11
30
|
/** Controlled open state (optional). */
|
|
12
31
|
open?: boolean;
|
|
13
32
|
onOpenChange?: (open: boolean) => void;
|
|
33
|
+
/** How wide the menu opens (LC-112): default `"content"`, at least the trigger. */
|
|
34
|
+
panelWidth?: PanelWidth;
|
|
14
35
|
testID?: string;
|
|
15
36
|
}
|
|
16
|
-
export declare function ScopeMenu({ label, options, value, onChange, open: openProp, onOpenChange, testID, }: ScopeMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
export declare function ScopeMenu({ label, options, value, onChange, open: openProp, onOpenChange, panelWidth, testID, }: ScopeMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
17
38
|
//# sourceMappingURL=ScopeMenu.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScopeMenu.d.ts","sourceRoot":"","sources":["../../src/appShell/ScopeMenu.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScopeMenu.d.ts","sourceRoot":"","sources":["../../src/appShell/ScopeMenu.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,OAAO,EAAiB,KAAK,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAO1E,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,cAAc;IAC7B,uEAAuE;IACvE,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,SAAS,eAAe,EAAE,CAAC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,wCAAwC;IACxC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC,mFAAmF;IACnF,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AA+DD,wBAAgB,SAAS,CAAC,EACxB,KAAK,EACL,OAAO,EACP,KAAK,EACL,QAAQ,EACR,IAAI,EAAE,QAAQ,EACd,YAAY,EACZ,UAAU,EACV,MAAqB,GACtB,EAAE,cAAc,2CAyDhB"}
|