@protonradio/proton-ui 0.11.0-beta.6 → 0.11.0-beta.8
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 +5 -2
- package/dist/index.es.js +2238 -2222
- 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,7 +27,7 @@ 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;
|
|
@@ -48,6 +48,7 @@ declare interface ActionMenuProps {
|
|
|
48
48
|
}) => ReactNode);
|
|
49
49
|
showCancel?: boolean;
|
|
50
50
|
cancelButtonText?: string;
|
|
51
|
+
title?: string;
|
|
51
52
|
actions?: ActionMenuAction[];
|
|
52
53
|
id?: string;
|
|
53
54
|
onClose?: () => void;
|
|
@@ -433,6 +434,8 @@ declare interface MenuProps {
|
|
|
433
434
|
renderTrigger?: (triggerProps: TriggerProps) => ReactNode;
|
|
434
435
|
/** Size of the trigger icon */
|
|
435
436
|
size?: number;
|
|
437
|
+
/** Title of the parent menu */
|
|
438
|
+
title?: string;
|
|
436
439
|
/** Array of menu actions/items to display */
|
|
437
440
|
items: MenuItemType[];
|
|
438
441
|
/** Whether the menu is disabled */
|
|
@@ -451,7 +454,7 @@ declare interface MenuProps {
|
|
|
451
454
|
disabledKeys?: string[];
|
|
452
455
|
}
|
|
453
456
|
|
|
454
|
-
export declare function MenuTrigger({ renderTrigger, menuId, size, items, disabled, onClose, testId: triggerTestId, menuTestId, onSelectionChange, selectedKey, disabledKeys, }: MenuProps): JSX_2.Element;
|
|
457
|
+
export declare function MenuTrigger({ renderTrigger, menuId, size, title, items, disabled, onClose, testId: triggerTestId, menuTestId, onSelectionChange, selectedKey, disabledKeys, }: MenuProps): JSX_2.Element;
|
|
455
458
|
|
|
456
459
|
export declare const Modal: (({ isOpen, onClose, title, subtitle, body, children, isOverlay, "data-testid": dataTestId, }: ModalProps) => JSX_2.Element) & {
|
|
457
460
|
Title: ({ children }: {
|