@protonradio/proton-ui 0.11.0-beta.4 → 0.11.0-beta.5

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
@@ -9,6 +9,7 @@ import { JSX as JSX_2 } from 'react/jsx-runtime';
9
9
  import { OverlayTriggerProps } from 'react-stately';
10
10
  import { OverlayTriggerState } from 'react-stately';
11
11
  import { PressEvent } from 'react-aria';
12
+ import { PressProps } from 'react-aria';
12
13
  import { ReactNode } from 'react';
13
14
  import { RefAttributes } from 'react';
14
15
  import { RowProps } from '@react-stately/table';
@@ -204,7 +205,7 @@ declare interface BaseInputProps {
204
205
  * A customizable button component that can render as either a button or anchor element
205
206
  * @interface ButtonProps
206
207
  */
207
- export declare function Button({ variant, size, fullWidth, icon, to, target, onPress, type, isDisabled, "data-testid": testId, children, __textShift, }: ButtonProps): JSX_2.Element;
208
+ export declare const Button: ForwardRefExoticComponent<ButtonProps & RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
208
209
 
209
210
  export declare function ButtonGroup(props: ButtonGroupProps): JSX_2.Element;
210
211
 
@@ -428,7 +429,7 @@ declare interface MenuProps {
428
429
  /** The id of the menu */
429
430
  menuId?: string;
430
431
  /** Custom trigger component. If not provided, defaults to ellipsis icon */
431
- renderTrigger?: (triggerProps: TriggerProps, isOpen: boolean) => ReactNode;
432
+ renderTrigger?: (triggerProps: TriggerProps) => ReactNode;
432
433
  /** Size of the trigger icon */
433
434
  size?: number;
434
435
  /** Array of menu actions/items to display */
@@ -896,11 +897,10 @@ export declare interface TooltipTriggerProps extends TooltipProps, TooltipTrigge
896
897
  * @returns {JSX.Element} - The MenuTrigger component.
897
898
  */
898
899
  declare interface TriggerProps {
899
- isDisabled?: boolean;
900
- "data-testid"?: string;
901
- ref?: React.RefObject<HTMLButtonElement>;
902
- onPress?: () => void;
903
- "aria-label": string;
900
+ disabled?: boolean;
901
+ pressProps: PressProps;
902
+ isOpen?: boolean;
903
+ triggerRef: React.RefObject<HTMLButtonElement>;
904
904
  }
905
905
 
906
906
  /**