@protonradio/proton-ui 0.11.0-beta.6 → 0.11.0-beta.9
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 +11 -11
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +6 -2
- package/dist/index.es.js +3004 -2964
- package/dist/index.es.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -27,11 +27,12 @@ import { TooltipTriggerComponentProps } from 'react-aria-components';
|
|
|
27
27
|
* Renders a list of actions as a focusable menu, or non-focusable children.
|
|
28
28
|
* @interface ActionMenuProps
|
|
29
29
|
*/
|
|
30
|
-
export declare const ActionMenu: ({ isOpen, selectionMode, selectedKeys, defaultSelectedKeys, disabledKeys, children, showCancel, cancelButtonText, actions, onSelectionChange, onClose, "data-testid": testId, }: ActionMenuProps) => JSX_2.Element;
|
|
30
|
+
export declare const ActionMenu: ({ isOpen, selectionMode, selectedKeys, defaultSelectedKeys, disabledKeys, children, showCancel, cancelButtonText, actions, title, onSelectionChange, onClose, "data-testid": testId, }: ActionMenuProps) => JSX_2.Element;
|
|
31
31
|
|
|
32
32
|
declare interface ActionMenuAction {
|
|
33
33
|
key: string;
|
|
34
34
|
label?: ReactNode;
|
|
35
|
+
description?: ReactNode;
|
|
35
36
|
to?: string;
|
|
36
37
|
onAction?: (key: string) => void;
|
|
37
38
|
children?: ActionMenuAction[];
|
|
@@ -48,6 +49,7 @@ declare interface ActionMenuProps {
|
|
|
48
49
|
}) => ReactNode);
|
|
49
50
|
showCancel?: boolean;
|
|
50
51
|
cancelButtonText?: string;
|
|
52
|
+
title?: string;
|
|
51
53
|
actions?: ActionMenuAction[];
|
|
52
54
|
id?: string;
|
|
53
55
|
onClose?: () => void;
|
|
@@ -433,6 +435,8 @@ declare interface MenuProps {
|
|
|
433
435
|
renderTrigger?: (triggerProps: TriggerProps) => ReactNode;
|
|
434
436
|
/** Size of the trigger icon */
|
|
435
437
|
size?: number;
|
|
438
|
+
/** Title of the parent menu */
|
|
439
|
+
title?: string;
|
|
436
440
|
/** Array of menu actions/items to display */
|
|
437
441
|
items: MenuItemType[];
|
|
438
442
|
/** Whether the menu is disabled */
|
|
@@ -451,7 +455,7 @@ declare interface MenuProps {
|
|
|
451
455
|
disabledKeys?: string[];
|
|
452
456
|
}
|
|
453
457
|
|
|
454
|
-
export declare function MenuTrigger({ renderTrigger, menuId, size, items, disabled, onClose, testId: triggerTestId, menuTestId, onSelectionChange, selectedKey, disabledKeys, }: MenuProps): JSX_2.Element;
|
|
458
|
+
export declare function MenuTrigger({ renderTrigger, menuId, size, title, items, disabled, onClose, testId: triggerTestId, menuTestId, onSelectionChange, selectedKey, disabledKeys, }: MenuProps): JSX_2.Element;
|
|
455
459
|
|
|
456
460
|
export declare const Modal: (({ isOpen, onClose, title, subtitle, body, children, isOverlay, "data-testid": dataTestId, }: ModalProps) => JSX_2.Element) & {
|
|
457
461
|
Title: ({ children }: {
|