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

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
@@ -10,7 +10,6 @@ import { JSX as JSX_2 } from 'react/jsx-runtime';
10
10
  import { OverlayTriggerProps } from 'react-stately';
11
11
  import { OverlayTriggerState } from 'react-stately';
12
12
  import { PressEvent } from 'react-aria';
13
- import { PressProps } from 'react-aria';
14
13
  import { ReactNode } from 'react';
15
14
  import { RefAttributes } from 'react';
16
15
  import { RowProps } from '@react-stately/table';
@@ -294,10 +293,6 @@ declare interface ButtonProps extends AriaButtonProps<"button"> {
294
293
  * @param {React.ReactNode} children
295
294
  */
296
295
  children?: React.ReactNode;
297
- /** DO NOT USE. INTERNAL USE ONLY. Will be used in calculation for the shift of the button text. Represents the # of horizontal pixels to shift.
298
- * @param {number} __textShift
299
- */
300
- __textShift?: number;
301
296
  }
302
297
 
303
298
  declare type ButtonSize = "small" | "medium" | "large" | "xlarge" | "2xlarge";
@@ -902,12 +897,9 @@ export declare interface TooltipTriggerProps extends TooltipProps, TooltipTrigge
902
897
  * @returns {JSX.Element} - The MenuTrigger component.
903
898
  */
904
899
  declare interface TriggerProps {
905
- disabled?: boolean;
906
- /** Props for handling press interactions on the trigger element */
907
- domTriggerProps: PressProps;
908
- /** Props for handling menu trigger interactions */
909
- ariaTriggerProps: AriaButtonProps<"button">;
910
- isOpen?: boolean;
900
+ disabled: boolean;
901
+ isOpen: boolean;
902
+ setIsOpen: (isOpen: boolean) => void;
911
903
  triggerRef: React.RefObject<HTMLButtonElement>;
912
904
  }
913
905