@protonradio/proton-ui 0.11.0-beta.15 → 0.11.0-beta.17

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
@@ -50,7 +50,6 @@ declare interface ActionMenuProps {
50
50
  cancelButtonText?: string;
51
51
  title?: string;
52
52
  actions?: ActionMenuAction[];
53
- id?: string;
54
53
  onClose?: () => void;
55
54
  onSelectionChange?: (keys: Selection_2) => void;
56
55
  "data-testid"?: string;
@@ -424,11 +423,11 @@ export declare const Input: default_2.ForwardRefExoticComponent<BaseInputProps &
424
423
  declare type MenuItemType = ActionMenuAction;
425
424
 
426
425
  declare interface MenuProps {
427
- /** The id of the menu */
428
- menuId?: string;
429
426
  /** Custom trigger component. If not provided, defaults to ellipsis icon */
430
427
  renderTrigger?: (triggerProps: TriggerProps) => ReactNode;
431
- /** Size of the trigger icon */
428
+ /** Size of the trigger icon
429
+ * @default 24
430
+ */
432
431
  size?: number;
433
432
  /** Title of the parent menu */
434
433
  title?: string;
@@ -439,7 +438,7 @@ declare interface MenuProps {
439
438
  /** Callback when menu closes */
440
439
  onClose?: () => void;
441
440
  /** Test ID for the trigger component */
442
- testId?: string;
441
+ triggerTestId?: string;
443
442
  /** Test ID for the menu */
444
443
  menuTestId?: string;
445
444
  /** Callback when a menu item is selected */
@@ -450,7 +449,7 @@ declare interface MenuProps {
450
449
  disabledKeys?: string[];
451
450
  }
452
451
 
453
- export declare function MenuTrigger({ renderTrigger, menuId, size, title, items, disabled, onClose, testId: triggerTestId, menuTestId, onSelectionChange, selectedKey, disabledKeys, }: MenuProps): JSX_2.Element;
452
+ export declare function MenuTrigger({ renderTrigger, size, title, items, disabled, onClose, triggerTestId, menuTestId, onSelectionChange, selectedKey, disabledKeys, }: MenuProps): JSX_2.Element;
454
453
 
455
454
  export declare const Modal: (({ isOpen, onClose, title, subtitle, body, children, isOverlay, "data-testid": dataTestId, }: ModalProps) => JSX_2.Element) & {
456
455
  Title: ({ children }: {
@@ -897,9 +896,9 @@ export declare interface TooltipTriggerProps extends TooltipProps, TooltipTrigge
897
896
  * @returns {JSX.Element} - The MenuTrigger component.
898
897
  */
899
898
  declare interface TriggerProps {
900
- disabled: boolean;
901
- isOpen: boolean;
902
- setIsOpen: (isOpen: boolean) => void;
899
+ disabled?: boolean;
900
+ isOpen?: boolean;
901
+ setIsOpen?: (isOpen: boolean) => void;
903
902
  triggerRef: React.RefObject<HTMLButtonElement>;
904
903
  }
905
904