@sikka/hawa 0.0.111 → 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.
Files changed (49) hide show
  1. package/dist/styles.css +10 -10
  2. package/es/elements/HawaAlert.d.ts +7 -0
  3. package/es/elements/HawaButton.d.ts +2 -1
  4. package/es/elements/HawaRadio.d.ts +6 -1
  5. package/es/elements/HawaSnackbar.d.ts +7 -0
  6. package/es/index.es.js +1 -1
  7. package/es/layout/SimpleGrid.d.ts +10 -0
  8. package/es/layout/index.d.ts +1 -0
  9. package/es/stories/ElementsStories/Snackbar.stories.d.ts +1 -0
  10. package/es/stories/LayoutStories/SimpleGrid.stories.d.ts +4 -0
  11. package/lib/elements/HawaAlert.d.ts +7 -0
  12. package/lib/elements/HawaButton.d.ts +2 -1
  13. package/lib/elements/HawaRadio.d.ts +6 -1
  14. package/lib/elements/HawaSnackbar.d.ts +7 -0
  15. package/lib/index.js +1 -1
  16. package/lib/layout/SimpleGrid.d.ts +10 -0
  17. package/lib/layout/index.d.ts +1 -0
  18. package/lib/stories/ElementsStories/Snackbar.stories.d.ts +1 -0
  19. package/lib/stories/LayoutStories/SimpleGrid.stories.d.ts +4 -0
  20. package/package.json +1 -1
  21. package/src/blocks/Account/UserSettingsForm.tsx +0 -1
  22. package/src/elements/HawaAlert.tsx +21 -0
  23. package/src/elements/HawaButton.tsx +9 -2
  24. package/src/elements/HawaRadio.tsx +7 -2
  25. package/src/elements/HawaSnackbar.tsx +24 -2
  26. package/src/elements/HawaTextField.tsx +1 -1
  27. package/src/layout/HawaContainer.tsx +2 -3
  28. package/src/layout/SimpleGrid.tsx +42 -0
  29. package/src/layout/index.ts +1 -0
  30. package/src/styles.css +10 -10
  31. package/storybook-static/51.8ca217c6882b6d3971a8.manager.bundle.js +2 -0
  32. package/storybook-static/{51.786e9bbba427ee454dc0.manager.bundle.js.LICENSE.txt → 51.8ca217c6882b6d3971a8.manager.bundle.js.LICENSE.txt} +0 -0
  33. package/storybook-static/51.aeae4f67.iframe.bundle.js +2 -0
  34. package/storybook-static/{51.acbbdb95.iframe.bundle.js.LICENSE.txt → 51.aeae4f67.iframe.bundle.js.LICENSE.txt} +0 -0
  35. package/storybook-static/669.31ae8ecc.iframe.bundle.js +2 -0
  36. package/storybook-static/{733.819a1db2.iframe.bundle.js.LICENSE.txt → 669.31ae8ecc.iframe.bundle.js.LICENSE.txt} +0 -0
  37. package/storybook-static/767.294896b3de4a98c7bd38.manager.bundle.js +2 -0
  38. package/storybook-static/{767.2f9c96fa3338c8d16078.manager.bundle.js.LICENSE.txt → 767.294896b3de4a98c7bd38.manager.bundle.js.LICENSE.txt} +0 -0
  39. package/storybook-static/iframe.html +1 -1
  40. package/storybook-static/index.html +1 -1
  41. package/storybook-static/main.5ddcc678.iframe.bundle.js +1 -0
  42. package/storybook-static/project.json +1 -1
  43. package/storybook-static/{runtime~main.25eae181fe0f96887a15.manager.bundle.js → runtime~main.118c8621e276a271ad89.manager.bundle.js} +1 -1
  44. package/storybook-static/{runtime~main.4d0bf318.iframe.bundle.js → runtime~main.4a2964ac.iframe.bundle.js} +1 -1
  45. package/storybook-static/51.786e9bbba427ee454dc0.manager.bundle.js +0 -2
  46. package/storybook-static/51.acbbdb95.iframe.bundle.js +0 -2
  47. package/storybook-static/733.819a1db2.iframe.bundle.js +0 -2
  48. package/storybook-static/767.2f9c96fa3338c8d16078.manager.bundle.js +0 -2
  49. package/storybook-static/main.e3c09016.iframe.bundle.js +0 -1
package/dist/styles.css CHANGED
@@ -587,14 +587,18 @@ video {
587
587
  margin-left: 0.25rem;
588
588
  margin-right: 0.25rem;
589
589
  }
590
- .my-2 {
591
- margin-top: 0.5rem;
592
- margin-bottom: 0.5rem;
590
+ .my-0 {
591
+ margin-top: 0px;
592
+ margin-bottom: 0px;
593
593
  }
594
594
  .mx-2 {
595
595
  margin-left: 0.5rem;
596
596
  margin-right: 0.5rem;
597
597
  }
598
+ .my-2 {
599
+ margin-top: 0.5rem;
600
+ margin-bottom: 0.5rem;
601
+ }
598
602
  .my-7 {
599
603
  margin-top: 1.75rem;
600
604
  margin-bottom: 1.75rem;
@@ -603,10 +607,6 @@ video {
603
607
  margin-top: 0.125rem;
604
608
  margin-bottom: 0.125rem;
605
609
  }
606
- .my-0 {
607
- margin-top: 0px;
608
- margin-bottom: 0px;
609
- }
610
610
  .ml-auto {
611
611
  margin-left: auto;
612
612
  }
@@ -619,6 +619,9 @@ video {
619
619
  .mb-4 {
620
620
  margin-bottom: 1rem;
621
621
  }
622
+ .mt-2 {
623
+ margin-top: 0.5rem;
624
+ }
622
625
  .mb-0 {
623
626
  margin-bottom: 0px;
624
627
  }
@@ -652,9 +655,6 @@ video {
652
655
  .ml-2 {
653
656
  margin-left: 0.5rem;
654
657
  }
655
- .mt-2 {
656
- margin-top: 0.5rem;
657
- }
658
658
  .mb-5 {
659
659
  margin-bottom: 1.25rem;
660
660
  }
@@ -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 {};
@@ -1,6 +1,11 @@
1
1
  import React from "react";
2
2
  type RadioTypes = {
3
- options?: any;
3
+ options?: [
4
+ {
5
+ value: any;
6
+ label: any;
7
+ }
8
+ ];
4
9
  onChangeTab?: any;
5
10
  defaultValue?: any;
6
11
  };
@@ -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 {};