@radix-ui/react-menu 0.1.7-rc.35 → 0.1.7-rc.36

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/index.d.ts CHANGED
@@ -5,6 +5,7 @@ import { FocusScope } from "@radix-ui/react-focus-scope";
5
5
  import * as Radix from "@radix-ui/react-primitive";
6
6
  import { Primitive } from "@radix-ui/react-primitive";
7
7
  import * as PopperPrimitive from "@radix-ui/react-popper";
8
+ import { UnstablePortal } from "@radix-ui/react-portal";
8
9
  import * as RovingFocusGroup from "@radix-ui/react-roving-focus";
9
10
  type Direction = 'ltr' | 'rtl';
10
11
  export const createMenuScope: import("@radix-ui/react-context").CreateScope;
@@ -25,6 +26,16 @@ type PopperAnchorProps = Radix.ComponentPropsWithoutRef<typeof PopperPrimitive.A
25
26
  export interface MenuAnchorProps extends PopperAnchorProps {
26
27
  }
27
28
  export const MenuAnchor: React.ForwardRefExoticComponent<MenuAnchorProps & React.RefAttributes<HTMLDivElement>>;
29
+ type PortalProps = React.ComponentPropsWithoutRef<typeof UnstablePortal>;
30
+ export interface MenuPortalProps extends Omit<PortalProps, 'asChild'> {
31
+ children?: React.ReactNode;
32
+ /**
33
+ * Used to force mounting when more control is needed. Useful when
34
+ * controlling animation with React animation libraries.
35
+ */
36
+ forceMount?: true;
37
+ }
38
+ export const MenuPortal: React.FC<MenuPortalProps>;
28
39
  /**
29
40
  * We purposefully don't union MenuRootContent and MenuSubContent props here because
30
41
  * they have conflicting prop types. We agreed that we would allow MenuSubContent to
@@ -70,11 +81,6 @@ interface MenuContentImplProps extends MenuContentImplPrivateProps, Omit<PopperC
70
81
  * @defaultValue false
71
82
  */
72
83
  loop?: RovingFocusGroupProps['loop'];
73
- /**
74
- * Whether the `MenuContent` should render in a `Portal`
75
- * (default: `true`)
76
- */
77
- portalled?: boolean;
78
84
  onEscapeKeyDown?: DismissableLayerProps['onEscapeKeyDown'];
79
85
  onPointerDownOutside?: DismissableLayerProps['onPointerDownOutside'];
80
86
  onFocusOutside?: DismissableLayerProps['onFocusOutside'];
@@ -134,7 +140,7 @@ export const MenuSub: React.FC<MenuSubProps>;
134
140
  export interface MenuSubTriggerProps extends MenuItemImplProps {
135
141
  }
136
142
  export const MenuSubTrigger: React.ForwardRefExoticComponent<MenuSubTriggerProps & React.RefAttributes<HTMLDivElement>>;
137
- export interface MenuSubContentProps extends Omit<MenuContentImplProps, keyof MenuContentImplPrivateProps | 'onCloseAutoFocus' | 'portalled' | 'side' | 'align'> {
143
+ export interface MenuSubContentProps extends Omit<MenuContentImplProps, keyof MenuContentImplPrivateProps | 'onCloseAutoFocus' | 'side' | 'align'> {
138
144
  /**
139
145
  * Used to force mounting when more control is needed. Useful when
140
146
  * controlling animation with React animation libraries.
@@ -144,6 +150,7 @@ export interface MenuSubContentProps extends Omit<MenuContentImplProps, keyof Me
144
150
  export const MenuSubContent: React.ForwardRefExoticComponent<MenuSubContentProps & React.RefAttributes<HTMLDivElement>>;
145
151
  export const Root: React.FC<MenuProps>;
146
152
  export const Anchor: React.ForwardRefExoticComponent<MenuAnchorProps & React.RefAttributes<HTMLDivElement>>;
153
+ export const Portal: React.FC<MenuPortalProps>;
147
154
  export const Content: React.ForwardRefExoticComponent<MenuContentProps & React.RefAttributes<HTMLDivElement>>;
148
155
  export const Group: React.ForwardRefExoticComponent<MenuGroupProps & React.RefAttributes<HTMLDivElement>>;
149
156
  export const Label: React.ForwardRefExoticComponent<MenuLabelProps & React.RefAttributes<HTMLDivElement>>;
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;AAwBA,iBAAiB,KAAK,GAAG,KAAK,CAAC;AA4B/B,OAAA,sFAIE,CAAC;AAuBH,yBAAyB,MAAM,cAAc,CAAC,mBAAmB,CAAC,CAAC;AACnE;IACE,QAAQ,CAAC,EAAE,MAAM,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,CAAC,IAAI,EAAE,OAAO,GAAG,IA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oGAAyB,CAAC;AAChC,OAAA,MAAM,6GAAiC,CAAC;AACxC,OAAA,MAAM,oGAAyB,CAAC;AAChC,OAAA,MAAM,2FAAiB,CAAC;AACxB,OAAA,MAAM,2BAAa,CAAC;AACpB,OAAA,MAAM,sGAA2B,CAAC;AAClC,OAAA,MAAM,sGAA2B,CAAC","sources":["packages/react/menu/src/packages/react/menu/src/Menu.tsx","packages/react/menu/src/packages/react/menu/src/index.ts","packages/react/menu/src/index.ts"],"sourcesContent":[null,null,"export * from './Menu';\n"],"names":[],"version":3,"file":"index.d.ts.map"}
1
+ {"mappings":";;;;;;;;;AAwBA,iBAAiB,KAAK,GAAG,KAAK,CAAC;AA4B/B,OAAA,sFAIE,CAAC;AAuBH,yBAAyB,MAAM,cAAc,CAAC,mBAAmB,CAAC,CAAC;AACnE;IACE,QAAQ,CAAC,EAAE,MAAM,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IACnC,GAAG,CAAC,EAAE,SAAS,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,cAAc,CAAC,EAAE,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;CACtD;AAED,OAAA,MAAM,MAAM,MAAM,EAAE,CAAC,SAAS,CAuD7B,CAAC;AAWF,yBAAyB,MAAM,wBAAwB,CAAC,OAAO,gBAAgB,MAAM,CAAC,CAAC;AACvF,gCAA0B,SAAQ,iBAAiB;CAAG;AAEtD,OAAA,MAAM,kGAML,CAAC;AAeF,mBAAmB,MAAM,wBAAwB,CAAC,qBAAqB,CAAC,CAAC;AACzE,gCAA0B,SAAQ,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC;IAC5D,QAAQ,CAAC,EAAE,MAAM,SAAS,CAAC;IAC3B;;;OAGG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC;CACnB;AAED,OAAA,MAAM,YAAY,MAA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AO,gBAAgB,KAAK,CAAC,CAAC;AACrF,+BAAyB,SAAQ,gBAAgB;CAAG;AAEpD,OAAA,MAAM,+FAML,CAAC;AAmBF;IACE,QAAQ,CAAC,EAAE,MAAM,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,YAAY,CAAC,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;CACpC;AAED,OAAA,MAAM,SAAS,MAAM,EAAE,CAAC,YAAY,CAmCnC,CAAC;AAWF,oCAA8B,SAAQ,iBAAiB;CAAG;AAE1D,OAAA,MAAM,0GAuHL,CAAC;AAWF,oCACE,SAAQ,IAAI,CACV,oBAAoB,EACpB,MAAM,2BAA2B,GAAG,kBAAkB,GAAG,MAAM,GAAG,OAAO,CAC1E;IACD;;;OAGG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC;CACnB;AAED,OAAA,MAAM,0GAuDL,CAAC;AAgGF,OAAA,MAAM,yBAAW,CAAC;AAClB,OAAA,MAAM,8FAAmB,CAAC;AAC1B,OAAA,MAAM,iCAAmB,CAAC;AAC1B,OAAA,MAAM,gGAAqB,CAAC;AAC5B,OAAA,MAAM,4FAAiB,CAAC;AACxB,OAAA,MAAM,4FAAiB,CAAC;AACxB,OAAA,MAAM,0FAAe,CAAC;AACtB,OAAA,MAAM,0GAA+B,CAAC;AACtC,OAAA,MAAM,sGAA2B,CAAC;AAClC,OAAA,MAAM,oGAAyB,CAAC;AAChC,OAAA,MAAM,6GAAiC,CAAC;AACxC,OAAA,MAAM,oGAAyB,CAAC;AAChC,OAAA,MAAM,2FAAiB,CAAC;AACxB,OAAA,MAAM,2BAAa,CAAC;AACpB,OAAA,MAAM,sGAA2B,CAAC;AAClC,OAAA,MAAM,sGAA2B,CAAC","sources":["packages/react/menu/src/packages/react/menu/src/Menu.tsx","packages/react/menu/src/packages/react/menu/src/index.ts","packages/react/menu/src/index.ts"],"sourcesContent":[null,null,"export * from './Menu';\n"],"names":[],"version":3,"file":"index.d.ts.map"}
package/dist/index.js CHANGED
@@ -45,6 +45,7 @@ var $213e4d2df823067d$exports = {};
45
45
  $parcel$export($213e4d2df823067d$exports, "createMenuScope", () => $213e4d2df823067d$export$4027731b685e72eb);
46
46
  $parcel$export($213e4d2df823067d$exports, "Menu", () => $213e4d2df823067d$export$d9b273488cd8ce6f);
47
47
  $parcel$export($213e4d2df823067d$exports, "MenuAnchor", () => $213e4d2df823067d$export$9fa5ebd18bee4d43);
48
+ $parcel$export($213e4d2df823067d$exports, "MenuPortal", () => $213e4d2df823067d$export$793392f970497feb);
48
49
  $parcel$export($213e4d2df823067d$exports, "MenuContent", () => $213e4d2df823067d$export$479f0f2f71193efe);
49
50
  $parcel$export($213e4d2df823067d$exports, "MenuGroup", () => $213e4d2df823067d$export$22a631d1f72787bb);
50
51
  $parcel$export($213e4d2df823067d$exports, "MenuLabel", () => $213e4d2df823067d$export$dd37bec0e8a99143);
@@ -60,6 +61,7 @@ $parcel$export($213e4d2df823067d$exports, "MenuSubTrigger", () => $213e4d2df8230
60
61
  $parcel$export($213e4d2df823067d$exports, "MenuSubContent", () => $213e4d2df823067d$export$e7142ab31822bde6);
61
62
  $parcel$export($213e4d2df823067d$exports, "Root", () => $213e4d2df823067d$export$be92b6f5f03c0fe9);
62
63
  $parcel$export($213e4d2df823067d$exports, "Anchor", () => $213e4d2df823067d$export$b688253958b8dfe7);
64
+ $parcel$export($213e4d2df823067d$exports, "Portal", () => $213e4d2df823067d$export$602eac185826482c);
63
65
  $parcel$export($213e4d2df823067d$exports, "Content", () => $213e4d2df823067d$export$7c6e2c02157bb7d2);
64
66
  $parcel$export($213e4d2df823067d$exports, "Group", () => $213e4d2df823067d$export$eb2fcfdbd7ba97d4);
65
67
  $parcel$export($213e4d2df823067d$exports, "Label", () => $213e4d2df823067d$export$b04be29aa201d4f5);
@@ -215,12 +217,35 @@ const $213e4d2df823067d$export$9fa5ebd18bee4d43 = /*#__PURE__*/ $cnSS2$react.for
215
217
  /*#__PURE__*/ Object.assign($213e4d2df823067d$export$9fa5ebd18bee4d43, {
216
218
  displayName: $213e4d2df823067d$var$ANCHOR_NAME
217
219
  });
220
+ /* -------------------------------------------------------------------------------------------------
221
+ * MenuPortal
222
+ * -----------------------------------------------------------------------------------------------*/ const $213e4d2df823067d$var$PORTAL_NAME = 'MenuPortal';
223
+ const [$213e4d2df823067d$var$PortalProvider, $213e4d2df823067d$var$usePortalContext] = $213e4d2df823067d$var$createMenuContext($213e4d2df823067d$var$PORTAL_NAME, {
224
+ forceMount: undefined
225
+ });
226
+ const $213e4d2df823067d$export$793392f970497feb = (props)=>{
227
+ const { __scopeMenu: __scopeMenu , forceMount: forceMount , children: children , container: container } = props;
228
+ const context = $213e4d2df823067d$var$useMenuContext($213e4d2df823067d$var$PORTAL_NAME, __scopeMenu);
229
+ return /*#__PURE__*/ $cnSS2$react.createElement($213e4d2df823067d$var$PortalProvider, {
230
+ scope: __scopeMenu,
231
+ forceMount: forceMount
232
+ }, /*#__PURE__*/ $cnSS2$react.createElement($cnSS2$radixuireactpresence.Presence, {
233
+ present: forceMount || context.open
234
+ }, /*#__PURE__*/ $cnSS2$react.createElement($cnSS2$radixuireactportal.UnstablePortal, {
235
+ asChild: true,
236
+ container: container
237
+ }, children)));
238
+ };
239
+ /*#__PURE__*/ Object.assign($213e4d2df823067d$export$793392f970497feb, {
240
+ displayName: $213e4d2df823067d$var$PORTAL_NAME
241
+ });
218
242
  /* -------------------------------------------------------------------------------------------------
219
243
  * MenuContent
220
244
  * -----------------------------------------------------------------------------------------------*/ const $213e4d2df823067d$var$CONTENT_NAME = 'MenuContent';
221
245
  const [$213e4d2df823067d$var$MenuContentProvider, $213e4d2df823067d$var$useMenuContentContext] = $213e4d2df823067d$var$createMenuContext($213e4d2df823067d$var$CONTENT_NAME);
222
246
  const $213e4d2df823067d$export$479f0f2f71193efe = /*#__PURE__*/ $cnSS2$react.forwardRef((props, forwardedRef)=>{
223
- const { forceMount: forceMount , ...contentProps } = props;
247
+ const portalContext = $213e4d2df823067d$var$usePortalContext($213e4d2df823067d$var$CONTENT_NAME, props.__scopeMenu);
248
+ const { forceMount: forceMount = portalContext.forceMount , ...contentProps } = props;
224
249
  const context = $213e4d2df823067d$var$useMenuContext($213e4d2df823067d$var$CONTENT_NAME, props.__scopeMenu);
225
250
  const rootContext = $213e4d2df823067d$var$useMenuRootContext($213e4d2df823067d$var$CONTENT_NAME, props.__scopeMenu);
226
251
  return /*#__PURE__*/ $cnSS2$react.createElement($213e4d2df823067d$var$Collection.Provider, {
@@ -269,7 +294,7 @@ const $213e4d2df823067d$var$MenuRootContentNonModal = /*#__PURE__*/ $cnSS2$react
269
294
  }));
270
295
  });
271
296
  /* ---------------------------------------------------------------------------------------------- */ const $213e4d2df823067d$var$MenuContentImpl = /*#__PURE__*/ $cnSS2$react.forwardRef((props, forwardedRef)=>{
272
- const { __scopeMenu: __scopeMenu , loop: loop = false , trapFocus: trapFocus , onOpenAutoFocus: onOpenAutoFocus , onCloseAutoFocus: onCloseAutoFocus , disableOutsidePointerEvents: disableOutsidePointerEvents , onEscapeKeyDown: onEscapeKeyDown , onPointerDownOutside: onPointerDownOutside , onFocusOutside: onFocusOutside , onInteractOutside: onInteractOutside , onDismiss: onDismiss , disableOutsideScroll: disableOutsideScroll , portalled: portalled , ...contentProps } = props;
297
+ const { __scopeMenu: __scopeMenu , loop: loop = false , trapFocus: trapFocus , onOpenAutoFocus: onOpenAutoFocus , onCloseAutoFocus: onCloseAutoFocus , disableOutsidePointerEvents: disableOutsidePointerEvents , onEscapeKeyDown: onEscapeKeyDown , onPointerDownOutside: onPointerDownOutside , onFocusOutside: onFocusOutside , onInteractOutside: onInteractOutside , onDismiss: onDismiss , disableOutsideScroll: disableOutsideScroll , ...contentProps } = props;
273
298
  const context = $213e4d2df823067d$var$useMenuContext($213e4d2df823067d$var$CONTENT_NAME, __scopeMenu);
274
299
  const rootContext = $213e4d2df823067d$var$useMenuRootContext($213e4d2df823067d$var$CONTENT_NAME, __scopeMenu);
275
300
  const popperScope = $213e4d2df823067d$var$usePopperScope(__scopeMenu);
@@ -284,7 +309,6 @@ const $213e4d2df823067d$var$MenuRootContentNonModal = /*#__PURE__*/ $cnSS2$react
284
309
  const pointerGraceIntentRef = $cnSS2$react.useRef(null);
285
310
  const pointerDirRef = $cnSS2$react.useRef('right');
286
311
  const lastPointerXRef = $cnSS2$react.useRef(0);
287
- const PortalWrapper = portalled ? $cnSS2$radixuireactportal.Portal : $cnSS2$react.Fragment;
288
312
  const ScrollLockWrapper = disableOutsideScroll ? $cnSS2$reactremovescroll.RemoveScroll : $cnSS2$react.Fragment;
289
313
  const scrollLockWrapperProps = disableOutsideScroll ? {
290
314
  allowPinchZoom: rootContext.allowPinchZoom
@@ -325,7 +349,7 @@ const $213e4d2df823067d$var$MenuRootContentNonModal = /*#__PURE__*/ $cnSS2$react
325
349
  const isMovingTowards = pointerDirRef.current === ((_pointerGraceIntentRe = pointerGraceIntentRef.current) === null || _pointerGraceIntentRe === void 0 ? void 0 : _pointerGraceIntentRe.side);
326
350
  return isMovingTowards && $213e4d2df823067d$var$isPointerInGraceArea(event, (_pointerGraceIntentRe2 = pointerGraceIntentRef.current) === null || _pointerGraceIntentRe2 === void 0 ? void 0 : _pointerGraceIntentRe2.area);
327
351
  }, []);
328
- return /*#__PURE__*/ $cnSS2$react.createElement(PortalWrapper, null, /*#__PURE__*/ $cnSS2$react.createElement(ScrollLockWrapper, scrollLockWrapperProps, /*#__PURE__*/ $cnSS2$react.createElement($213e4d2df823067d$var$MenuContentProvider, {
352
+ return /*#__PURE__*/ $cnSS2$react.createElement(ScrollLockWrapper, scrollLockWrapperProps, /*#__PURE__*/ $cnSS2$react.createElement($213e4d2df823067d$var$MenuContentProvider, {
329
353
  scope: __scopeMenu,
330
354
  searchRef: searchRef,
331
355
  onItemEnter: $cnSS2$react.useCallback((event)=>{
@@ -431,7 +455,7 @@ const $213e4d2df823067d$var$MenuRootContentNonModal = /*#__PURE__*/ $cnSS2$react
431
455
  lastPointerXRef.current = event.clientX;
432
456
  }
433
457
  }))
434
- }))))))));
458
+ })))))));
435
459
  });
436
460
  /*#__PURE__*/ Object.assign($213e4d2df823067d$export$479f0f2f71193efe, {
437
461
  displayName: $213e4d2df823067d$var$CONTENT_NAME
@@ -858,7 +882,8 @@ const $213e4d2df823067d$export$5fbbb3ba7297405f = /*#__PURE__*/ $cnSS2$react.for
858
882
  * MenuSubContent
859
883
  * -----------------------------------------------------------------------------------------------*/ const $213e4d2df823067d$var$SUB_CONTENT_NAME = 'MenuSubContent';
860
884
  const $213e4d2df823067d$export$e7142ab31822bde6 = /*#__PURE__*/ $cnSS2$react.forwardRef((props, forwardedRef)=>{
861
- const { forceMount: forceMount , ...subContentProps } = props;
885
+ const portalContext = $213e4d2df823067d$var$usePortalContext($213e4d2df823067d$var$CONTENT_NAME, props.__scopeMenu);
886
+ const { forceMount: forceMount = portalContext.forceMount , ...subContentProps } = props;
862
887
  const context = $213e4d2df823067d$var$useMenuContext($213e4d2df823067d$var$CONTENT_NAME, props.__scopeMenu);
863
888
  const rootContext = $213e4d2df823067d$var$useMenuRootContext($213e4d2df823067d$var$CONTENT_NAME, props.__scopeMenu);
864
889
  const subContext = $213e4d2df823067d$var$useMenuSubContext($213e4d2df823067d$var$SUB_CONTENT_NAME, props.__scopeMenu);
@@ -877,7 +902,6 @@ const $213e4d2df823067d$export$e7142ab31822bde6 = /*#__PURE__*/ $cnSS2$react.for
877
902
  ref: composedRefs,
878
903
  align: "start",
879
904
  side: rootContext.dir === 'rtl' ? 'left' : 'right',
880
- portalled: true,
881
905
  disableOutsidePointerEvents: false,
882
906
  disableOutsideScroll: false,
883
907
  trapFocus: false,
@@ -992,6 +1016,7 @@ function $213e4d2df823067d$var$whenMouse(handler) {
992
1016
  }
993
1017
  const $213e4d2df823067d$export$be92b6f5f03c0fe9 = $213e4d2df823067d$export$d9b273488cd8ce6f;
994
1018
  const $213e4d2df823067d$export$b688253958b8dfe7 = $213e4d2df823067d$export$9fa5ebd18bee4d43;
1019
+ const $213e4d2df823067d$export$602eac185826482c = $213e4d2df823067d$export$793392f970497feb;
995
1020
  const $213e4d2df823067d$export$7c6e2c02157bb7d2 = $213e4d2df823067d$export$479f0f2f71193efe;
996
1021
  const $213e4d2df823067d$export$eb2fcfdbd7ba97d4 = $213e4d2df823067d$export$22a631d1f72787bb;
997
1022
  const $213e4d2df823067d$export$b04be29aa201d4f5 = $213e4d2df823067d$export$dd37bec0e8a99143;