@wistia/vhs 2.60.1-beta.c7a8b7ca.3461f4f → 2.60.1-beta.db5444cc.999be7a

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.
@@ -1,11 +1,19 @@
1
1
  import type { ReactNode, JSX } from 'react';
2
- import type { DropdownMenuProps } from '@radix-ui/react-dropdown-menu';
2
+ import type { DropdownMenuProps, DropdownMenuContentProps } from '@radix-ui/react-dropdown-menu';
3
3
  import type { ButtonProps } from '../Button';
4
- type DefaultMenuProps = DropdownMenuProps & {
5
- align?: 'center' | 'end' | 'start';
6
- children: ReactNode;
4
+ type ControlledMenuProps = {
7
5
  isOpen: boolean;
8
6
  onOpenChange: (isOpen: boolean) => void;
7
+ };
8
+ type UncontrolledMenuProps = {
9
+ isOpen?: never;
10
+ onOpenChange?: never;
11
+ };
12
+ type MenuControlProps = ControlledMenuProps | UncontrolledMenuProps;
13
+ type DefaultMenuProps = DropdownMenuProps & MenuControlProps & {
14
+ align?: 'center' | 'end' | 'start';
15
+ children: ReactNode;
16
+ onInteractOutside?: DropdownMenuContentProps['onInteractOutside'];
9
17
  triggerProps?: ButtonProps;
10
18
  };
11
19
  type MenuPropsWithLabel = DefaultMenuProps & {
@@ -30,7 +38,7 @@ export declare const MenuLabel: ({ children, ...props }: MenuLabelProps) => impo
30
38
  export declare const MenuRadioGroup: import("react").ForwardRefExoticComponent<import("@radix-ui/react-dropdown-menu").DropdownMenuRadioGroupProps & import("react").RefAttributes<HTMLDivElement>>;
31
39
  export declare const SubMenu: ({ label, icon, description, children }: SubMenuProps) => import("react/jsx-runtime").JSX.Element;
32
40
  export declare const Menu: {
33
- ({ align, children, trigger, label, isOpen, triggerProps, onOpenChange, ...props }: MenuProps): JSX.Element;
41
+ ({ align, children, trigger, label, isOpen, triggerProps, onOpenChange, onInteractOutside, ...props }: MenuProps): JSX.Element;
34
42
  displayName: string;
35
43
  };
36
44
  export {};
@@ -1 +1 @@
1
- {"version":3,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E,MAAM,CAAC;IACd,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,SAAS,CAAC;CACzB,CAAC;AAMF,KAAK,cAAc,GAAG;IACpB,QAAQ,EAAE,SAAS,GAAG,MAAM,CAAC;CAC9B,CAAC;AAMF,eAAO,MAAM,SAAS,2BAA4B,cAAc,4CAa/D,CAAC;AAEF,eAAO,MAAM,cAAc,gKAAyB,CAAC;AAErD,eAAO,MAAM,OAAO,2CAA4C,YAAY,4CA8B3E,CAAC;AAEF,eAAO,MAAM,IAAI;2GAUd,SAAS,GAAG,GAAG,CAAC,OAAO;;CAiCzB,CAAC"}
@@ -11,7 +11,7 @@ type IconThumbnailProps = {
11
11
  */
12
12
  thumbnailUrl?: never;
13
13
  /**
14
- * The type of {@link https://wistia.github.io/vhs/?path=/docs/components-icon--docs Icon} to use in place of a thumbnail image
14
+ * The type of {@link https://wistia.github.io/vhs/?path=/docs/components-icon--docs Icon} to use in place of a thumbnail image
15
15
  */
16
16
  icon: IconNameType;
17
17
  /**