@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.cjs.js +9 -9
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +7 -7
- package/dist/index.es.js +2271 -2260
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
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
|
|
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
|
|
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
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
"aria-label": string;
|
|
900
|
+
disabled?: boolean;
|
|
901
|
+
pressProps: PressProps;
|
|
902
|
+
isOpen?: boolean;
|
|
903
|
+
triggerRef: React.RefObject<HTMLButtonElement>;
|
|
904
904
|
}
|
|
905
905
|
|
|
906
906
|
/**
|