@sikka/hawa 0.0.101 → 0.0.103

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 (53) hide show
  1. package/dist/styles.css +26 -30
  2. package/es/elements/DraggableCard.d.ts +2 -2
  3. package/es/elements/HawaCheckbox.d.ts +4 -4
  4. package/es/elements/HawaChip.d.ts +3 -3
  5. package/es/elements/HawaColorPicker.d.ts +1 -1
  6. package/es/elements/HawaCopyrights.d.ts +4 -2
  7. package/es/elements/HawaDrawer.d.ts +18 -8
  8. package/es/elements/HawaMenu.d.ts +19 -13
  9. package/es/elements/HawaModal.d.ts +6 -7
  10. package/es/elements/HawaRadio.d.ts +3 -1
  11. package/es/elements/HawaRange.d.ts +2 -0
  12. package/es/elements/HawaSettingsRow.d.ts +14 -1
  13. package/es/index.es.js +1 -1
  14. package/lib/elements/DraggableCard.d.ts +2 -2
  15. package/lib/elements/HawaCheckbox.d.ts +4 -4
  16. package/lib/elements/HawaChip.d.ts +3 -3
  17. package/lib/elements/HawaColorPicker.d.ts +1 -1
  18. package/lib/elements/HawaCopyrights.d.ts +4 -2
  19. package/lib/elements/HawaDrawer.d.ts +18 -8
  20. package/lib/elements/HawaMenu.d.ts +19 -13
  21. package/lib/elements/HawaModal.d.ts +6 -7
  22. package/lib/elements/HawaRadio.d.ts +3 -1
  23. package/lib/elements/HawaRange.d.ts +2 -0
  24. package/lib/elements/HawaSettingsRow.d.ts +14 -1
  25. package/lib/index.js +1 -1
  26. package/package.json +3 -2
  27. package/rollup.config.js +4 -0
  28. package/src/elements/DraggableCard.tsx +2 -2
  29. package/src/elements/HawaCheckbox.tsx +16 -9
  30. package/src/elements/HawaChip.tsx +3 -3
  31. package/src/elements/HawaColorPicker.tsx +2 -2
  32. package/src/elements/HawaCopyrights.tsx +8 -15
  33. package/src/elements/HawaDrawer.tsx +42 -23
  34. package/src/elements/HawaMenu.tsx +24 -17
  35. package/src/elements/HawaModal.tsx +20 -21
  36. package/src/elements/HawaRadio.tsx +27 -24
  37. package/src/elements/HawaRange.tsx +2 -0
  38. package/src/elements/HawaSettingsRow.tsx +29 -41
  39. package/src/elements/HawaTabs.tsx +16 -7
  40. package/src/styles.css +26 -30
  41. package/storybook-static/209.70afd616.iframe.bundle.js +2 -0
  42. package/storybook-static/{733.8d2de9f8.iframe.bundle.js.LICENSE.txt → 209.70afd616.iframe.bundle.js.LICENSE.txt} +15 -11
  43. package/storybook-static/745.4b81597c.iframe.bundle.js +1 -0
  44. package/storybook-static/{767.2f9c96fa3338c8d16078.manager.bundle.js → 767.888009dba401078f3f72.manager.bundle.js} +2 -2
  45. package/storybook-static/{767.2f9c96fa3338c8d16078.manager.bundle.js.LICENSE.txt → 767.888009dba401078f3f72.manager.bundle.js.LICENSE.txt} +22 -19
  46. package/storybook-static/iframe.html +1 -1
  47. package/storybook-static/index.html +1 -1
  48. package/storybook-static/main.ff0dd517.iframe.bundle.js +1 -0
  49. package/storybook-static/project.json +1 -1
  50. package/storybook-static/runtime~main.968bd8b6.iframe.bundle.js +1 -0
  51. package/storybook-static/733.8d2de9f8.iframe.bundle.js +0 -2
  52. package/storybook-static/main.71507dcb.iframe.bundle.js +0 -1
  53. package/storybook-static/runtime~main.4d0bf318.iframe.bundle.js +0 -1
package/dist/styles.css CHANGED
@@ -587,6 +587,14 @@ video {
587
587
  margin-top: 1.75rem;
588
588
  margin-bottom: 1.75rem;
589
589
  }
590
+ .my-0\.5 {
591
+ margin-top: 0.125rem;
592
+ margin-bottom: 0.125rem;
593
+ }
594
+ .my-0 {
595
+ margin-top: 0px;
596
+ margin-bottom: 0px;
597
+ }
590
598
  .ml-auto {
591
599
  margin-left: auto;
592
600
  }
@@ -599,8 +607,11 @@ video {
599
607
  .mb-4 {
600
608
  margin-bottom: 1rem;
601
609
  }
602
- .ml-2 {
603
- margin-left: 0.5rem;
610
+ .mt-0\.5 {
611
+ margin-top: 0.125rem;
612
+ }
613
+ .mt-0 {
614
+ margin-top: 0px;
604
615
  }
605
616
  .mt-1 {
606
617
  margin-top: 0.25rem;
@@ -626,6 +637,9 @@ video {
626
637
  .ml-1 {
627
638
  margin-left: 0.25rem;
628
639
  }
640
+ .ml-2 {
641
+ margin-left: 0.5rem;
642
+ }
629
643
  .mt-2 {
630
644
  margin-top: 0.5rem;
631
645
  }
@@ -687,9 +701,6 @@ video {
687
701
  .h-11 {
688
702
  height: 2.75rem;
689
703
  }
690
- .h-4 {
691
- height: 1rem;
692
- }
693
704
  .h-2 {
694
705
  height: 0.5rem;
695
706
  }
@@ -740,9 +751,6 @@ video {
740
751
  .w-1\/2 {
741
752
  width: 50%;
742
753
  }
743
- .w-4 {
744
- width: 1rem;
745
- }
746
754
  .w-24 {
747
755
  width: 6rem;
748
756
  }
@@ -903,6 +911,9 @@ video {
903
911
  .justify-evenly {
904
912
  justify-content: space-evenly;
905
913
  }
914
+ .gap-1 {
915
+ gap: 0.25rem;
916
+ }
906
917
  .gap-x-3 {
907
918
  -moz-column-gap: 0.75rem;
908
919
  column-gap: 0.75rem;
@@ -1033,6 +1044,9 @@ video {
1033
1044
  .rounded-br-lg {
1034
1045
  border-bottom-right-radius: 0.5rem;
1035
1046
  }
1047
+ .rounded-br-none {
1048
+ border-bottom-right-radius: 0px;
1049
+ }
1036
1050
  .border {
1037
1051
  border-width: 1px;
1038
1052
  }
@@ -1105,6 +1119,10 @@ video {
1105
1119
  --tw-border-opacity: 1;
1106
1120
  border-top-color: rgb(255 255 255 / var(--tw-border-opacity));
1107
1121
  }
1122
+ .border-b-primary-500 {
1123
+ --tw-border-opacity: 1;
1124
+ border-bottom-color: rgb(61 147 249 / var(--tw-border-opacity));
1125
+ }
1108
1126
  .bg-gray-900 {
1109
1127
  --tw-bg-opacity: 1;
1110
1128
  background-color: rgb(17 24 39 / var(--tw-bg-opacity));
@@ -1277,9 +1295,6 @@ video {
1277
1295
  .pr-3 {
1278
1296
  padding-right: 0.75rem;
1279
1297
  }
1280
- .pl-3 {
1281
- padding-left: 0.75rem;
1282
- }
1283
1298
  .pt-0 {
1284
1299
  padding-top: 0px;
1285
1300
  }
@@ -1705,10 +1720,6 @@ body {
1705
1720
  --tw-border-opacity: 1;
1706
1721
  border-color: rgb(59 130 246 / var(--tw-border-opacity));
1707
1722
  }
1708
- .dark .dark\:border-gray-500 {
1709
- --tw-border-opacity: 1;
1710
- border-color: rgb(107 114 128 / var(--tw-border-opacity));
1711
- }
1712
1723
  .dark .dark\:bg-gray-800 {
1713
1724
  --tw-bg-opacity: 1;
1714
1725
  background-color: rgb(31 41 55 / var(--tw-bg-opacity));
@@ -1804,9 +1815,6 @@ body {
1804
1815
  .dark .dark\:ring-offset-gray-800 {
1805
1816
  --tw-ring-offset-color: #1f2937;
1806
1817
  }
1807
- .dark .dark\:ring-offset-gray-700 {
1808
- --tw-ring-offset-color: #374151;
1809
- }
1810
1818
  .dark .dark\:hover\:bg-gray-600:hover {
1811
1819
  --tw-bg-opacity: 1;
1812
1820
  background-color: rgb(75 85 99 / var(--tw-bg-opacity));
@@ -1877,18 +1885,6 @@ body {
1877
1885
  }
1878
1886
  @media (min-width: 640px) {
1879
1887
 
1880
- .sm\:flex {
1881
- display: flex;
1882
- }
1883
-
1884
- .sm\:border-b-0 {
1885
- border-bottom-width: 0px;
1886
- }
1887
-
1888
- .sm\:border-r {
1889
- border-right-width: 1px;
1890
- }
1891
-
1892
1888
  .sm\:p-8 {
1893
1889
  padding: 2rem;
1894
1890
  }
@@ -1,6 +1,6 @@
1
- import React from "react";
1
+ import React, { ReactElement } from "react";
2
2
  type DraggableCardTypes = {
3
- children: any;
3
+ children: ReactElement;
4
4
  };
5
5
  export declare const DraggableCard: React.FunctionComponent<DraggableCardTypes>;
6
6
  export {};
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
- type CheckoutTypes = {
3
- centered?: any;
2
+ type TCheckBoxTypes = {
3
+ centered?: boolean;
4
4
  label?: any;
5
5
  helperText?: any;
6
- onChange?: any;
6
+ onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
7
7
  };
8
- export declare const HawaCheckbox: React.FunctionComponent<CheckoutTypes>;
8
+ export declare const HawaCheckbox: React.FunctionComponent<TCheckBoxTypes>;
9
9
  export {};
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
- type ChipTypes = {
3
- label: any;
2
+ type TChipTypes = {
3
+ label: string;
4
4
  };
5
- export declare const HawaChip: React.FunctionComponent<ChipTypes>;
5
+ export declare const HawaChip: React.FunctionComponent<TChipTypes>;
6
6
  export {};
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  type ColorPickerTypes = {
3
3
  color?: any;
4
- handleChange?: any;
4
+ handleChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
5
5
  };
6
6
  export declare const HawaColorPicker: React.FunctionComponent<ColorPickerTypes>;
7
7
  export {};
@@ -1,8 +1,10 @@
1
1
  import React from "react";
2
2
  type CopyRightsTypes = {
3
- withLogo: any;
3
+ withLogo: boolean;
4
4
  lang: any;
5
- version: any;
5
+ version: string;
6
+ credits: string;
7
+ logoURL: string;
6
8
  };
7
9
  export declare const HawaCopyrights: React.FunctionComponent<CopyRightsTypes>;
8
10
  export {};
@@ -1,13 +1,23 @@
1
- import React from "react";
2
- type DrawerTypes = {
3
- open: any;
1
+ import React, { FC, ReactElement, ReactNode } from "react";
2
+ type TDrawerTypes = {
3
+ open: boolean;
4
4
  setOpen: any;
5
5
  position: any;
6
6
  heading: any;
7
- children: any;
7
+ children?: ReactNode;
8
8
  };
9
- export declare const HawaDrawer: React.FunctionComponent<DrawerTypes>;
10
- export declare const DrawerHeader: (props: any) => JSX.Element;
11
- export declare const DrawerBody: (props: any) => JSX.Element;
12
- export declare const DrawerFooter: (props: any) => JSX.Element;
9
+ export declare const HawaDrawer: React.FunctionComponent<TDrawerTypes>;
10
+ type TDrawerHeader = {
11
+ setOpen: any;
12
+ children: ReactElement;
13
+ };
14
+ export declare const DrawerHeader: FC<TDrawerHeader>;
15
+ type TDrawerBody = {
16
+ children: ReactElement;
17
+ };
18
+ export declare const DrawerBody: (props: TDrawerBody) => JSX.Element;
19
+ type TDrawerFooter = {
20
+ children: ReactElement;
21
+ };
22
+ export declare const DrawerFooter: (props: TDrawerFooter) => JSX.Element;
13
23
  export {};
@@ -1,16 +1,22 @@
1
- import React from "react";
2
- type MenuTypes = {
1
+ import React, { ReactNode } from "react";
2
+ interface TMenuTypes {
3
3
  popMenuID: any;
4
- menuItems: any;
5
- withHeader: any;
6
- withIcons: any;
7
- headerTitle: any;
8
- headerSubtitle: any;
9
- open: any;
10
- handleClose: any;
11
- anchor: any;
12
- children: any;
13
- buttonPosition: "top-right" | "top-left" | "bottom-right" | "bottom-left";
4
+ menuItems: MenuItems[][];
5
+ withHeader?: boolean;
6
+ withIcons?: boolean;
7
+ headerTitle?: string;
8
+ headerSubtitle?: string;
9
+ open: boolean;
10
+ handleClose: (e: boolean) => void;
11
+ anchor?: any;
12
+ children?: ReactNode;
13
+ buttonPosition?: "top-right" | "top-left" | "bottom-right" | "bottom-left";
14
+ }
15
+ type MenuItems = {
16
+ icon?: JSX.Element;
17
+ label: string;
18
+ action?: (e: React.MouseEvent<HTMLLIElement, MouseEvent>, item: string) => void;
19
+ isButton?: boolean;
14
20
  };
15
- export declare const HawaMenu: React.FunctionComponent<MenuTypes>;
21
+ export declare const HawaMenu: React.FunctionComponent<TMenuTypes>;
16
22
  export {};
@@ -1,11 +1,10 @@
1
- import React from "react";
1
+ import React, { ReactElement } from "react";
2
2
  type ModalTypes = {
3
- open: any;
4
- title: any;
5
- onClose: any;
6
- closeOnClickOutside: any;
7
- modalID: any;
8
- children: any;
3
+ open: boolean;
4
+ title: string;
5
+ onClose: () => void;
6
+ modalID?: string;
7
+ children: ReactElement;
9
8
  actions: any;
10
9
  };
11
10
  export declare const HawaModal: React.FunctionComponent<ModalTypes>;
@@ -1,6 +1,8 @@
1
1
  import React from "react";
2
2
  type RadioTypes = {
3
- options: any;
3
+ options?: any;
4
+ onChangeTab?: any;
5
+ defaultValue?: any;
4
6
  };
5
7
  export declare const HawaRadio: React.FunctionComponent<RadioTypes>;
6
8
  export {};
@@ -5,6 +5,8 @@ type RangeTypes = {
5
5
  startElement?: any;
6
6
  endElement?: any;
7
7
  label?: any;
8
+ min?: any;
9
+ max?: any;
8
10
  };
9
11
  export declare const HawaRange: React.FunctionComponent<RangeTypes>;
10
12
  export {};
@@ -1,7 +1,20 @@
1
1
  import React from "react";
2
2
  type SettingsRowTypes = {
3
3
  settingsLabel: any;
4
- settingsType: any;
4
+ settingsType: "text" | "radio" | "boolean" | "color" | "range";
5
+ radioProps: {
6
+ defaultValue: any;
7
+ onChangeTab: any;
8
+ options: any;
9
+ };
10
+ colorProps: {
11
+ color?: any;
12
+ handleChange?: any;
13
+ };
14
+ rangeProps: {
15
+ min?: any;
16
+ max?: any;
17
+ };
5
18
  };
6
19
  export declare const HawaSettingsRow: React.FunctionComponent<SettingsRowTypes>;
7
20
  export {};