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

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
@@ -1,3 +1,4 @@
1
+ import { AriaButtonProps } from 'react-aria';
1
2
  import { AriaDialogProps } from 'react-aria';
2
3
  import { AriaPopoverProps } from 'react-aria';
3
4
  import { AriaTableProps } from 'react-aria';
@@ -245,7 +246,7 @@ declare interface ButtonGroupProps {
245
246
  children?: React.ReactNode;
246
247
  }
247
248
 
248
- declare interface ButtonProps {
249
+ declare interface ButtonProps extends AriaButtonProps<"button"> {
249
250
  /** The button's visual aesthetic
250
251
  * @param {ButtonVariant} variant
251
252
  */
@@ -274,7 +275,7 @@ declare interface ButtonProps {
274
275
  /** The target attribute for the link. Defaults to `_blank` if the URL is external.
275
276
  * @param {string} target
276
277
  */
277
- target?: "_blank" | "_self" | "_parent" | "_top";
278
+ target?: "_blank" | "_self" | "_parent" | "_top" | string;
278
279
  /** Called when the button is pressed (on release, not keydown)
279
280
  * @param {(e: PressEvent) => void} onPress
280
281
  */
@@ -898,7 +899,10 @@ export declare interface TooltipTriggerProps extends TooltipProps, TooltipTrigge
898
899
  */
899
900
  declare interface TriggerProps {
900
901
  disabled?: boolean;
901
- pressProps: PressProps;
902
+ /** Props for handling press interactions on the trigger element */
903
+ domTriggerProps: PressProps;
904
+ /** Props for handling menu trigger interactions */
905
+ ariaTriggerProps: AriaButtonProps<"button">;
902
906
  isOpen?: boolean;
903
907
  triggerRef: React.RefObject<HTMLButtonElement>;
904
908
  }