@sikka/hawa 0.0.101 → 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 (43) hide show
  1. package/dist/styles.css +3 -0
  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/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 -13
  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/DraggableCard.tsx +2 -2
  27. package/src/elements/HawaCheckbox.tsx +11 -6
  28. package/src/elements/HawaChip.tsx +3 -3
  29. package/src/elements/HawaColorPicker.tsx +2 -2
  30. package/src/elements/HawaCopyrights.tsx +8 -15
  31. package/src/elements/HawaDrawer.tsx +42 -23
  32. package/src/elements/HawaMenu.tsx +24 -17
  33. package/src/elements/HawaModal.tsx +20 -21
  34. package/src/elements/HawaRange.tsx +2 -0
  35. package/src/elements/HawaSettingsRow.tsx +29 -38
  36. package/src/elements/HawaTabs.tsx +1 -1
  37. package/src/styles.css +3 -0
  38. package/storybook-static/{733.8d2de9f8.iframe.bundle.js → 209.3141149a.iframe.bundle.js} +2 -2
  39. package/storybook-static/{733.8d2de9f8.iframe.bundle.js.LICENSE.txt → 209.3141149a.iframe.bundle.js.LICENSE.txt} +0 -0
  40. package/storybook-static/iframe.html +1 -1
  41. package/storybook-static/main.2fac3c3c.iframe.bundle.js +1 -0
  42. package/storybook-static/project.json +1 -1
  43. package/storybook-static/main.71507dcb.iframe.bundle.js +0 -1
package/dist/styles.css CHANGED
@@ -903,6 +903,9 @@ video {
903
903
  .justify-evenly {
904
904
  justify-content: space-evenly;
905
905
  }
906
+ .gap-1 {
907
+ gap: 0.25rem;
908
+ }
906
909
  .gap-x-3 {
907
910
  -moz-column-gap: 0.75rem;
908
911
  column-gap: 0.75rem;
@@ -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>;
@@ -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 {};