@hexure/ui 1.6.3 → 1.6.4
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/cjs/index.js +9 -18
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/ActionDialog/ActionDialog.d.ts +4 -1
- package/dist/cjs/types/components/Button/Button.d.ts +2 -0
- package/dist/esm/index.js +11 -20
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/ActionDialog/ActionDialog.d.ts +4 -1
- package/dist/esm/types/components/Button/Button.d.ts +2 -0
- package/dist/index.d.ts +6 -1
- package/package.json +1 -1
|
@@ -11,9 +11,12 @@ export interface ActionDialogProps extends AccessibleProps {
|
|
|
11
11
|
title?: string;
|
|
12
12
|
/** It is used to give description. */
|
|
13
13
|
description?: string;
|
|
14
|
+
/** Set the primary action for the dialog */
|
|
14
15
|
primaryButton?: ButtonProps;
|
|
16
|
+
/** Set the secondary action for the dialog. This should only be defined after a primary action is defined */
|
|
15
17
|
secondaryButton?: ButtonProps;
|
|
16
|
-
|
|
18
|
+
/** Set the tertiary action for the dialog. This should only be defined after a secondary action is defined */
|
|
19
|
+
tertiaryButton?: ButtonProps;
|
|
17
20
|
}
|
|
18
21
|
declare const ActionDialog: FC<ActionDialogProps>;
|
|
19
22
|
export default ActionDialog;
|
|
@@ -11,6 +11,8 @@ export interface ButtonProps extends AccessibleProps {
|
|
|
11
11
|
icon?: string;
|
|
12
12
|
/** Adjust the button to work within a <form> tag. Ignores onClick, sets type='form' */
|
|
13
13
|
isForm?: boolean;
|
|
14
|
+
/** Displays a loading state for the button */
|
|
15
|
+
loading?: boolean;
|
|
14
16
|
/** Set the margin of the button as needed */
|
|
15
17
|
margin?: string;
|
|
16
18
|
/** Prop to pass a that fires when the user does a click. */
|
package/dist/index.d.ts
CHANGED
|
@@ -37,9 +37,12 @@ interface ActionDialogProps extends AccessibleProps {
|
|
|
37
37
|
title?: string;
|
|
38
38
|
/** It is used to give description. */
|
|
39
39
|
description?: string;
|
|
40
|
+
/** Set the primary action for the dialog */
|
|
40
41
|
primaryButton?: ButtonProps$4;
|
|
42
|
+
/** Set the secondary action for the dialog. This should only be defined after a primary action is defined */
|
|
41
43
|
secondaryButton?: ButtonProps$4;
|
|
42
|
-
|
|
44
|
+
/** Set the tertiary action for the dialog. This should only be defined after a secondary action is defined */
|
|
45
|
+
tertiaryButton?: ButtonProps$4;
|
|
43
46
|
}
|
|
44
47
|
declare const ActionDialog: FC<ActionDialogProps>;
|
|
45
48
|
|
|
@@ -83,6 +86,8 @@ interface ButtonProps$2 extends AccessibleProps {
|
|
|
83
86
|
icon?: string;
|
|
84
87
|
/** Adjust the button to work within a <form> tag. Ignores onClick, sets type='form' */
|
|
85
88
|
isForm?: boolean;
|
|
89
|
+
/** Displays a loading state for the button */
|
|
90
|
+
loading?: boolean;
|
|
86
91
|
/** Set the margin of the button as needed */
|
|
87
92
|
margin?: string;
|
|
88
93
|
/** Prop to pass a that fires when the user does a click. */
|