@protonradio/proton-ui 0.1.40 → 0.1.41

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.
@@ -3,6 +3,7 @@ import type { AriaPopoverProps } from 'react-aria';
3
3
  import { AriaSelectProps } from 'react-aria';
4
4
  import { ColumnProps } from '@react-stately/table';
5
5
  import { JSX as JSX_2 } from 'react/jsx-runtime';
6
+ import { OverlayTriggerProps } from 'react-stately';
6
7
  import { OverlayTriggerState } from 'react-stately';
7
8
  import { PressEvent } from 'react-aria';
8
9
  import { default as React_2 } from 'react';
@@ -210,4 +211,15 @@ export declare const THEME_CONFIG: {
210
211
  readonly ProtonRadio: "client-theme";
211
212
  };
212
213
 
214
+ /**
215
+ * Hook for creating a popover trigger. This hook manages the state and events for the popover
216
+ * and popover trigger. For examples see Popover.stories.tsx.
217
+ */
218
+ export declare function usePopoverTrigger(props?: OverlayTriggerProps): {
219
+ buttonProps: any;
220
+ overlayProps: any;
221
+ buttonRef: React_2.MutableRefObject<HTMLButtonElement>;
222
+ state: any;
223
+ };
224
+
213
225
  export { }