@sikka/hawa 0.0.103 → 0.0.105

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 (78) hide show
  1. package/dist/styles.css +148 -85
  2. package/es/blocks/AuthForms/AppLanding.d.ts +1 -0
  3. package/es/blocks/AuthForms/CodeConfirmation.d.ts +6 -1
  4. package/es/blocks/AuthForms/NewPasswordForm.d.ts +0 -5
  5. package/es/blocks/AuthForms/ResetPasswordForm.d.ts +0 -3
  6. package/es/blocks/Referral/ReferralAccount.d.ts +7 -0
  7. package/es/blocks/Referral/ReferralSettlement.d.ts +8 -0
  8. package/es/blocks/Referral/ReferralStats.d.ts +8 -0
  9. package/es/blocks/Referral/index.d.ts +3 -0
  10. package/es/blocks/index.d.ts +1 -0
  11. package/es/elements/HawaButton.d.ts +1 -1
  12. package/es/elements/HawaChip.d.ts +1 -0
  13. package/es/elements/HawaCopyrights.d.ts +5 -5
  14. package/es/elements/HawaItemCard.d.ts +14 -6
  15. package/es/elements/HawaMenu.d.ts +2 -3
  16. package/es/elements/HawaModal.d.ts +1 -0
  17. package/es/elements/HawaSelect.d.ts +2 -1
  18. package/es/elements/HawaTable.d.ts +3 -2
  19. package/es/index.es.js +1 -1
  20. package/lib/blocks/AuthForms/AppLanding.d.ts +1 -0
  21. package/lib/blocks/AuthForms/CodeConfirmation.d.ts +6 -1
  22. package/lib/blocks/AuthForms/NewPasswordForm.d.ts +0 -5
  23. package/lib/blocks/AuthForms/ResetPasswordForm.d.ts +0 -3
  24. package/lib/blocks/Referral/ReferralAccount.d.ts +7 -0
  25. package/lib/blocks/Referral/ReferralSettlement.d.ts +8 -0
  26. package/lib/blocks/Referral/ReferralStats.d.ts +8 -0
  27. package/lib/blocks/Referral/index.d.ts +3 -0
  28. package/lib/blocks/index.d.ts +1 -0
  29. package/lib/elements/HawaButton.d.ts +1 -1
  30. package/lib/elements/HawaChip.d.ts +1 -0
  31. package/lib/elements/HawaCopyrights.d.ts +5 -5
  32. package/lib/elements/HawaItemCard.d.ts +14 -6
  33. package/lib/elements/HawaMenu.d.ts +2 -3
  34. package/lib/elements/HawaModal.d.ts +1 -0
  35. package/lib/elements/HawaSelect.d.ts +2 -1
  36. package/lib/elements/HawaTable.d.ts +3 -2
  37. package/lib/index.js +1 -1
  38. package/package.json +1 -1
  39. package/src/blocks/AuthForms/AppLanding.tsx +2 -1
  40. package/src/blocks/AuthForms/CodeConfirmation.tsx +7 -2
  41. package/src/blocks/AuthForms/NewPasswordForm.tsx +1 -6
  42. package/src/blocks/AuthForms/ResetPasswordForm.tsx +1 -4
  43. package/src/blocks/AuthForms/SignInForm.tsx +1 -1
  44. package/src/blocks/AuthForms/SignInPhone.tsx +1 -1
  45. package/src/blocks/AuthForms/SignUpForm.tsx +1 -1
  46. package/src/blocks/Payment/CheckoutForm.tsx +9 -0
  47. package/src/blocks/Referral/ReferralAccount.tsx +49 -0
  48. package/src/blocks/Referral/ReferralSettlement.tsx +110 -0
  49. package/src/blocks/Referral/ReferralStats.tsx +94 -0
  50. package/src/blocks/Referral/index.ts +3 -0
  51. package/src/blocks/index.ts +5 -4
  52. package/src/elements/HawaButton.tsx +23 -22
  53. package/src/elements/HawaChip.tsx +17 -6
  54. package/src/elements/HawaCopyrights.tsx +5 -5
  55. package/src/elements/HawaItemCard.tsx +86 -58
  56. package/src/elements/HawaMenu.tsx +51 -56
  57. package/src/elements/HawaModal.tsx +58 -52
  58. package/src/elements/HawaRadio.tsx +12 -4
  59. package/src/elements/HawaSelect.tsx +4 -2
  60. package/src/elements/HawaSwitch.tsx +5 -3
  61. package/src/elements/HawaTable.tsx +54 -19
  62. package/src/elements/HawaTooltip.tsx +23 -16
  63. package/src/layout/HawaContainer.tsx +2 -2
  64. package/src/styles.css +148 -85
  65. package/storybook-static/209.d29fd715.iframe.bundle.js +2 -0
  66. package/storybook-static/{209.70afd616.iframe.bundle.js.LICENSE.txt → 209.d29fd715.iframe.bundle.js.LICENSE.txt} +11 -15
  67. package/storybook-static/{767.888009dba401078f3f72.manager.bundle.js → 767.2f9c96fa3338c8d16078.manager.bundle.js} +2 -2
  68. package/storybook-static/{767.888009dba401078f3f72.manager.bundle.js.LICENSE.txt → 767.2f9c96fa3338c8d16078.manager.bundle.js.LICENSE.txt} +19 -22
  69. package/storybook-static/iframe.html +1 -1
  70. package/storybook-static/index.html +1 -1
  71. package/storybook-static/main.a1546405.iframe.bundle.js +1 -0
  72. package/storybook-static/project.json +1 -1
  73. package/storybook-static/runtime~main.4d0bf318.iframe.bundle.js +1 -0
  74. package/tailwind.config.js +10 -8
  75. package/storybook-static/209.70afd616.iframe.bundle.js +0 -2
  76. package/storybook-static/745.4b81597c.iframe.bundle.js +0 -1
  77. package/storybook-static/main.ff0dd517.iframe.bundle.js +0 -1
  78. package/storybook-static/runtime~main.968bd8b6.iframe.bundle.js +0 -1
@@ -8,6 +8,7 @@ type AppLandingTypes = {
8
8
  signUp: string;
9
9
  lang: string;
10
10
  };
11
+ size: "small" | "normal" | "full";
11
12
  };
12
13
  export declare const AppLanding: React.FunctionComponent<AppLandingTypes>;
13
14
  export {};
@@ -3,7 +3,12 @@ type CodeConfirmationTypes = {
3
3
  showError: any;
4
4
  errorTitle: any;
5
5
  errorText: any;
6
- texts: any;
6
+ texts: {
7
+ codeLabel: string;
8
+ codePlaceholder: string;
9
+ codeRequiredText: string;
10
+ confirmText: string;
11
+ };
7
12
  handleSignIn: any;
8
13
  };
9
14
  export declare const CodeConfirmation: React.FunctionComponent<CodeConfirmationTypes>;
@@ -2,11 +2,7 @@ import React from "react";
2
2
  type NewPasswordTypes = {
3
3
  handleNewPassword: any;
4
4
  passwordChanged: any;
5
- errorText: any;
6
5
  texts: {
7
- emailLabel: string;
8
- emailPlaceholder: string;
9
- emailRequiredText: string;
10
6
  passwordPlaceholder: string;
11
7
  updatePassword: string;
12
8
  passwordRequiredText: string;
@@ -15,7 +11,6 @@ type NewPasswordTypes = {
15
11
  confirmPasswordLabel: string;
16
12
  confirmPasswordRequiredText: string;
17
13
  passwordMatchError: string;
18
- forgotPasswordText: string;
19
14
  passwordChanged: string;
20
15
  };
21
16
  handleSignIn: any;
@@ -1,10 +1,7 @@
1
1
  import React from "react";
2
2
  type ResetPasswordType = {
3
3
  handleResetPassword: any;
4
- passwordChanged: any;
5
- errorText: any;
6
4
  sent: any;
7
- handleSignIn: any;
8
5
  texts: {
9
6
  emailLabel: string;
10
7
  emailPlaceholder: string;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ type ReferralAccount = {
3
+ referralLink: string;
4
+ referralCode: string;
5
+ };
6
+ export declare const ReferralAccount: React.FunctionComponent<ReferralAccount>;
7
+ export {};
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ type TReferralSettlement = {
3
+ referralLink: string;
4
+ referralCode: string;
5
+ withdrawError?: string;
6
+ };
7
+ export declare const ReferralSettlement: React.FunctionComponent<TReferralSettlement>;
8
+ export {};
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ type TReferralStats = {
3
+ referralLink: string;
4
+ referralCode: string;
5
+ withdrawError?: string;
6
+ };
7
+ export declare const ReferralStats: React.FunctionComponent<TReferralStats>;
8
+ export {};
@@ -0,0 +1,3 @@
1
+ export * from "./ReferralAccount";
2
+ export * from "./ReferralSettlement";
3
+ export * from "./ReferralStats";
@@ -2,3 +2,4 @@ export * from "./Account";
2
2
  export * from "./AuthForms";
3
3
  export * from "./Payment";
4
4
  export * from "./Pricing";
5
+ export * from "./Referral";
@@ -3,7 +3,7 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
3
3
  variant?: "contained" | "outlined";
4
4
  color?: "default" | "primary" | "secondary";
5
5
  width?: "full" | "normal" | "half";
6
- size?: "small" | "medium" | "large";
6
+ size?: "small" | "medium" | "large" | "noPadding";
7
7
  tooltip?: string;
8
8
  isLoading?: boolean;
9
9
  }
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
2
  type TChipTypes = {
3
3
  label: string;
4
+ size: "small" | "normal" | "large";
4
5
  };
5
6
  export declare const HawaChip: React.FunctionComponent<TChipTypes>;
6
7
  export {};
@@ -1,10 +1,10 @@
1
1
  import React from "react";
2
2
  type CopyRightsTypes = {
3
- withLogo: boolean;
4
- lang: any;
5
- version: string;
6
- credits: string;
7
- logoURL: string;
3
+ withLogo?: boolean;
4
+ lang?: any;
5
+ version?: string;
6
+ credits?: string;
7
+ logoURL?: string;
8
8
  };
9
9
  export declare const HawaCopyrights: React.FunctionComponent<CopyRightsTypes>;
10
10
  export {};
@@ -1,11 +1,19 @@
1
1
  import React from "react";
2
- type ItemCardTypes = {
3
- actions: any;
4
- content: any;
5
- headerActions: any;
6
- header: any;
7
- lang: string;
2
+ interface ItemCardTypes {
3
+ actions?: any;
4
+ content?: any;
5
+ headerActions?: THeaderActions[][];
6
+ header?: any;
7
+ lang?: string;
8
+ cardImage?: string;
8
9
  onCardClick?: any;
10
+ orientation?: "horizontal" | "vertical";
11
+ }
12
+ type THeaderActions = {
13
+ icon?: JSX.Element;
14
+ label: string;
15
+ action?: (e: React.MouseEvent<HTMLLIElement, MouseEvent>, item: string) => void;
16
+ isButton?: boolean;
9
17
  };
10
18
  export declare const HawaItemCard: React.FunctionComponent<ItemCardTypes>;
11
19
  export {};
@@ -1,13 +1,12 @@
1
1
  import React, { ReactNode } from "react";
2
2
  interface TMenuTypes {
3
- popMenuID: any;
4
3
  menuItems: MenuItems[][];
5
4
  withHeader?: boolean;
6
5
  withIcons?: boolean;
7
6
  headerTitle?: string;
8
7
  headerSubtitle?: string;
9
- open: boolean;
10
- handleClose: (e: boolean) => void;
8
+ open?: boolean;
9
+ handleClose?: (e: boolean) => void;
11
10
  anchor?: any;
12
11
  children?: ReactNode;
13
12
  buttonPosition?: "top-right" | "top-left" | "bottom-right" | "bottom-left";
@@ -3,6 +3,7 @@ type ModalTypes = {
3
3
  open: boolean;
4
4
  title: string;
5
5
  onClose: () => void;
6
+ closeOnClickOutside?: boolean;
6
7
  modalID?: string;
7
8
  children: ReactElement;
8
9
  actions: any;
@@ -2,7 +2,7 @@ import React from "react";
2
2
  type SelectTypes = {
3
3
  label?: any;
4
4
  isCreatable?: any;
5
- options?: any;
5
+ options?: any[any];
6
6
  isClearable?: any;
7
7
  isMulti?: any;
8
8
  isSearchable?: any;
@@ -13,6 +13,7 @@ type SelectTypes = {
13
13
  fullWidth?: any;
14
14
  value?: any;
15
15
  children?: any;
16
+ getOptionLabel?: any;
16
17
  };
17
18
  export declare const HawaSelect: React.FunctionComponent<SelectTypes>;
18
19
  export {};
@@ -1,12 +1,13 @@
1
1
  import React from "react";
2
2
  type TableTypes = {
3
3
  lang?: any;
4
- columns?: any;
4
+ columns: any[string];
5
5
  actions?: any;
6
- rows?: any;
6
+ rows?: any[any];
7
7
  noDataText?: any;
8
8
  handleActionClick?: any;
9
9
  end?: any;
10
+ size?: "normal" | "small";
10
11
  };
11
12
  export declare const HawaTable: React.FunctionComponent<TableTypes>;
12
13
  export {};