@sikka/hawa 0.0.100 → 0.0.102

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 (45) hide show
  1. package/dist/styles.css +60 -8
  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 -11
  9. package/es/elements/HawaModal.d.ts +6 -7
  10. package/es/elements/HawaRange.d.ts +2 -0
  11. package/es/elements/HawaSettingsRow.d.ts +14 -1
  12. package/es/index.es.js +1 -1
  13. package/lib/elements/DraggableCard.d.ts +2 -2
  14. package/lib/elements/HawaCheckbox.d.ts +4 -4
  15. package/lib/elements/HawaChip.d.ts +3 -3
  16. package/lib/elements/HawaColorPicker.d.ts +1 -1
  17. package/lib/elements/HawaCopyrights.d.ts +4 -2
  18. package/lib/elements/HawaDrawer.d.ts +18 -8
  19. package/lib/elements/HawaMenu.d.ts +19 -11
  20. package/lib/elements/HawaModal.d.ts +6 -7
  21. package/lib/elements/HawaRange.d.ts +2 -0
  22. package/lib/elements/HawaSettingsRow.d.ts +14 -1
  23. package/lib/index.js +1 -1
  24. package/package.json +3 -2
  25. package/rollup.config.js +4 -0
  26. package/src/elements/DragDropImages.tsx +32 -26
  27. package/src/elements/DraggableCard.tsx +2 -2
  28. package/src/elements/HawaCheckbox.tsx +11 -6
  29. package/src/elements/HawaChip.tsx +3 -3
  30. package/src/elements/HawaColorPicker.tsx +2 -2
  31. package/src/elements/HawaCopyrights.tsx +8 -15
  32. package/src/elements/HawaDrawer.tsx +42 -23
  33. package/src/elements/HawaMenu.tsx +76 -53
  34. package/src/elements/HawaModal.tsx +20 -21
  35. package/src/elements/HawaRange.tsx +2 -0
  36. package/src/elements/HawaSettingsRow.tsx +29 -38
  37. package/src/elements/HawaTabs.tsx +1 -1
  38. package/src/styles.css +60 -8
  39. package/storybook-static/{733.8d2de9f8.iframe.bundle.js → 209.3141149a.iframe.bundle.js} +2 -2
  40. package/storybook-static/{733.8d2de9f8.iframe.bundle.js.LICENSE.txt → 209.3141149a.iframe.bundle.js.LICENSE.txt} +0 -0
  41. package/storybook-static/iframe.html +1 -1
  42. package/storybook-static/main.2fac3c3c.iframe.bundle.js +1 -0
  43. package/storybook-static/project.json +1 -1
  44. package/tailwind.config.js +26 -1
  45. package/storybook-static/main.71507dcb.iframe.bundle.js +0 -1
package/dist/styles.css CHANGED
@@ -559,6 +559,9 @@ video {
559
559
  .z-40 {
560
560
  z-index: 40;
561
561
  }
562
+ .m-3 {
563
+ margin: 0.75rem;
564
+ }
562
565
  .m-2 {
563
566
  margin: 0.5rem;
564
567
  }
@@ -702,6 +705,15 @@ video {
702
705
  .h-12 {
703
706
  height: 3rem;
704
707
  }
708
+ .h-96 {
709
+ height: 24rem;
710
+ }
711
+ .max-h-72 {
712
+ max-height: 18rem;
713
+ }
714
+ .max-h-0 {
715
+ max-height: 0px;
716
+ }
705
717
  .max-h-fit {
706
718
  max-height: -moz-fit-content;
707
719
  max-height: fit-content;
@@ -813,6 +825,34 @@ video {
813
825
  .animate-spin {
814
826
  animation: spin 1s linear infinite;
815
827
  }
828
+ @keyframes expandDown {
829
+
830
+ 0% {
831
+ max-height: 0;
832
+ height: 0;
833
+ }
834
+
835
+ 100% {
836
+ max-height: 100px;
837
+ }
838
+ }
839
+ .animate-expandDown {
840
+ animation: expandDown 100ms linear;
841
+ }
842
+ @keyframes expandUp {
843
+
844
+ 0% {
845
+ max-height: 100px;
846
+ }
847
+
848
+ 100% {
849
+ max-height: 0;
850
+ height: 0;
851
+ }
852
+ }
853
+ .animate-expandUp {
854
+ animation: expandUp 100ms linear;
855
+ }
816
856
  .cursor-default {
817
857
  cursor: default;
818
858
  }
@@ -863,6 +903,9 @@ video {
863
903
  .justify-evenly {
864
904
  justify-content: space-evenly;
865
905
  }
906
+ .gap-1 {
907
+ gap: 0.25rem;
908
+ }
866
909
  .gap-x-3 {
867
910
  -moz-column-gap: 0.75rem;
868
911
  column-gap: 0.75rem;
@@ -924,6 +967,9 @@ video {
924
967
  .overflow-x-hidden {
925
968
  overflow-x: hidden;
926
969
  }
970
+ .overflow-y-clip {
971
+ overflow-y: clip;
972
+ }
927
973
  .truncate {
928
974
  overflow: hidden;
929
975
  text-overflow: ellipsis;
@@ -972,6 +1018,12 @@ video {
972
1018
  border-top-left-radius: 0px;
973
1019
  border-bottom-left-radius: 0px;
974
1020
  }
1021
+ .rounded-tr-none {
1022
+ border-top-right-radius: 0px;
1023
+ }
1024
+ .rounded-bl-none {
1025
+ border-bottom-left-radius: 0px;
1026
+ }
975
1027
  .rounded-bl-lg {
976
1028
  border-bottom-left-radius: 0.5rem;
977
1029
  }
@@ -1021,6 +1073,10 @@ video {
1021
1073
  --tw-border-opacity: 1;
1022
1074
  border-color: rgb(0 0 0 / var(--tw-border-opacity));
1023
1075
  }
1076
+ .border-red-500 {
1077
+ --tw-border-opacity: 1;
1078
+ border-color: rgb(239 68 68 / var(--tw-border-opacity));
1079
+ }
1024
1080
  .border-gray-200 {
1025
1081
  --tw-border-opacity: 1;
1026
1082
  border-color: rgb(229 231 235 / var(--tw-border-opacity));
@@ -1099,10 +1155,6 @@ video {
1099
1155
  --tw-bg-opacity: 1;
1100
1156
  background-color: rgb(163 208 57 / var(--tw-bg-opacity));
1101
1157
  }
1102
- .bg-blue-700 {
1103
- --tw-bg-opacity: 1;
1104
- background-color: rgb(29 78 216 / var(--tw-bg-opacity));
1105
- }
1106
1158
  .bg-primary-500 {
1107
1159
  --tw-bg-opacity: 1;
1108
1160
  background-color: rgb(61 147 249 / var(--tw-bg-opacity));
@@ -1149,6 +1201,10 @@ video {
1149
1201
  .p-10 {
1150
1202
  padding: 2.5rem;
1151
1203
  }
1204
+ .px-2 {
1205
+ padding-left: 0.5rem;
1206
+ padding-right: 0.5rem;
1207
+ }
1152
1208
  .px-2\.5 {
1153
1209
  padding-left: 0.625rem;
1154
1210
  padding-right: 0.625rem;
@@ -1157,10 +1213,6 @@ video {
1157
1213
  padding-top: 0.125rem;
1158
1214
  padding-bottom: 0.125rem;
1159
1215
  }
1160
- .px-2 {
1161
- padding-left: 0.5rem;
1162
- padding-right: 0.5rem;
1163
- }
1164
1216
  .py-0 {
1165
1217
  padding-top: 0px;
1166
1218
  padding-bottom: 0px;
@@ -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,14 +1,22 @@
1
- /// <reference types="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;
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;
12
20
  };
13
- export declare const HawaMenu: React.FunctionComponent<MenuTypes>;
21
+ export declare const HawaMenu: React.FunctionComponent<TMenuTypes>;
14
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>;
@@ -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: "checkbox" | "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 {};