@sikka/hawa 0.0.112 → 0.0.113
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/styles.css +10 -10
- package/es/elements/HawaAlert.d.ts +7 -0
- package/es/elements/HawaButton.d.ts +2 -1
- package/es/elements/HawaRadio.d.ts +6 -1
- package/es/elements/HawaSnackbar.d.ts +7 -0
- package/es/index.es.js +1 -1
- package/es/stories/ElementsStories/Snackbar.stories.d.ts +1 -0
- package/lib/elements/HawaAlert.d.ts +7 -0
- package/lib/elements/HawaButton.d.ts +2 -1
- package/lib/elements/HawaRadio.d.ts +6 -1
- package/lib/elements/HawaSnackbar.d.ts +7 -0
- package/lib/index.js +1 -1
- package/lib/stories/ElementsStories/Snackbar.stories.d.ts +1 -0
- package/package.json +1 -1
- package/src/blocks/Account/UserSettingsForm.tsx +0 -1
- package/src/elements/HawaAlert.tsx +21 -0
- package/src/elements/HawaButton.tsx +9 -2
- package/src/elements/HawaRadio.tsx +7 -2
- package/src/elements/HawaSnackbar.tsx +24 -2
- package/src/elements/HawaTextField.tsx +1 -1
- package/src/layout/HawaContainer.tsx +2 -3
- package/src/styles.css +10 -10
|
@@ -10,6 +10,13 @@ type AlertTypes = {
|
|
|
10
10
|
title?: any;
|
|
11
11
|
text: any;
|
|
12
12
|
hideIcon?: any;
|
|
13
|
+
actions?: [
|
|
14
|
+
{
|
|
15
|
+
label: string;
|
|
16
|
+
onClick: any;
|
|
17
|
+
variant: "contained" | "outlined";
|
|
18
|
+
}
|
|
19
|
+
];
|
|
13
20
|
};
|
|
14
21
|
export declare const HawaAlert: React.FunctionComponent<AlertTypes>;
|
|
15
22
|
export {};
|
|
@@ -4,8 +4,9 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
4
4
|
color?: "default" | "primary" | "secondary";
|
|
5
5
|
width?: "full" | "normal" | "half";
|
|
6
6
|
size?: "small" | "medium" | "large" | "noPadding";
|
|
7
|
+
margins?: "none" | "1" | "2" | "3" | "4";
|
|
7
8
|
tooltip?: string;
|
|
8
9
|
isLoading?: boolean;
|
|
9
10
|
}
|
|
10
|
-
export declare function HawaButton({ className, variant, color, size, width, disabled, isLoading, tooltip, children, ...props }: ButtonProps): JSX.Element;
|
|
11
|
+
export declare function HawaButton({ className, variant, color, size, width, disabled, isLoading, margins, tooltip, children, ...props }: ButtonProps): JSX.Element;
|
|
11
12
|
export {};
|
|
@@ -4,6 +4,13 @@ type THawaSnackBar = {
|
|
|
4
4
|
title: string;
|
|
5
5
|
description: string;
|
|
6
6
|
position?: "top-left" | "top-center" | "top-right" | "bottom-right" | "bottom-center" | "bottom-left";
|
|
7
|
+
actions?: [
|
|
8
|
+
{
|
|
9
|
+
label: string;
|
|
10
|
+
onClick: any;
|
|
11
|
+
variant: "contained" | "outlined";
|
|
12
|
+
}
|
|
13
|
+
];
|
|
7
14
|
};
|
|
8
15
|
export declare const HawaSnackbar: FC<THawaSnackBar>;
|
|
9
16
|
export {};
|