@protonradio/proton-ui 0.10.4 → 0.10.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 +10 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +4 -9
- package/dist/index.es.js +949 -952
- 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
|
@@ -28,7 +28,7 @@ import { TooltipTriggerComponentProps } from 'react-aria-components';
|
|
|
28
28
|
* Renders a list of actions as a focusable menu, or non-focusable children.
|
|
29
29
|
* @interface ActionMenuProps
|
|
30
30
|
*/
|
|
31
|
-
export declare const ActionMenu: ({ isOpen, selectionMode, selectedKeys, disabledKeys, children,
|
|
31
|
+
export declare const ActionMenu: ({ isOpen, selectionMode, selectedKeys, disabledKeys, children, showCancel, cancelButtonText, actions, onSelectionChange, onClose, "data-testid": testId, }: ActionMenuProps) => JSX_2.Element;
|
|
32
32
|
|
|
33
33
|
declare interface ActionMenuAction {
|
|
34
34
|
key: string;
|
|
@@ -45,15 +45,8 @@ declare interface ActionMenuProps {
|
|
|
45
45
|
children?: ReactNode | ((props: {
|
|
46
46
|
close: () => void;
|
|
47
47
|
}) => ReactNode);
|
|
48
|
-
beforeActions?: ReactNode | ((props: {
|
|
49
|
-
close: () => void;
|
|
50
|
-
}) => ReactNode);
|
|
51
|
-
afterActions?: ReactNode | ((props: {
|
|
52
|
-
close: () => void;
|
|
53
|
-
}) => ReactNode);
|
|
54
48
|
showCancel?: boolean;
|
|
55
49
|
cancelButtonText?: string;
|
|
56
|
-
closeOnNavigation?: boolean;
|
|
57
50
|
actions?: ActionMenuAction[];
|
|
58
51
|
id?: string;
|
|
59
52
|
onClose?: () => void;
|
|
@@ -297,13 +290,15 @@ export declare const Column: <T>(props: ProtonColumnProps<T>) => JSX.Element;
|
|
|
297
290
|
* Input with a button to copy value to the clipboard.
|
|
298
291
|
* @interface CopyInputProps
|
|
299
292
|
*/
|
|
300
|
-
export declare function CopyInput({ name, value, onError, onSuccess }: CopyInputProps): JSX_2.Element;
|
|
293
|
+
export declare function CopyInput({ name, value, isDisabled, onError, onSuccess, }: CopyInputProps): JSX_2.Element;
|
|
301
294
|
|
|
302
295
|
declare interface CopyInputProps {
|
|
303
296
|
/** The name of the input field */
|
|
304
297
|
name: string;
|
|
305
298
|
/** The value to display in the input and copy to clipboard */
|
|
306
299
|
value: string;
|
|
300
|
+
/** Whether the input is disabled */
|
|
301
|
+
isDisabled?: boolean;
|
|
307
302
|
/** Optional callback when copy fails, receives the error object */
|
|
308
303
|
onError?: (error: Error) => void;
|
|
309
304
|
/** Optional callback when copy succeeds */
|