@sikka/hawa 0.0.105 → 0.0.107

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 (48) hide show
  1. package/dist/styles.css +110 -30
  2. package/es/blocks/Misc/EmptyState.d.ts +4 -0
  3. package/es/blocks/Misc/index.d.ts +1 -0
  4. package/es/elements/DragDropImages.d.ts +1 -1
  5. package/es/elements/HawaCardInput.d.ts +25 -0
  6. package/es/elements/HawaMenu.d.ts +2 -1
  7. package/es/elements/HawaTimeline.d.ts +8 -0
  8. package/es/elements/index.d.ts +3 -1
  9. package/es/hooks/index.d.ts +1 -0
  10. package/es/hooks/useDiscloser.d.ts +7 -0
  11. package/es/index.d.ts +1 -0
  12. package/es/index.es.js +1 -1
  13. package/es/layout/HawaContainer.d.ts +2 -0
  14. package/lib/blocks/Misc/EmptyState.d.ts +4 -0
  15. package/lib/blocks/Misc/index.d.ts +1 -0
  16. package/lib/elements/DragDropImages.d.ts +1 -1
  17. package/lib/elements/HawaCardInput.d.ts +25 -0
  18. package/lib/elements/HawaMenu.d.ts +2 -1
  19. package/lib/elements/HawaTimeline.d.ts +8 -0
  20. package/lib/elements/index.d.ts +3 -1
  21. package/lib/hooks/index.d.ts +1 -0
  22. package/lib/hooks/useDiscloser.d.ts +7 -0
  23. package/lib/index.d.ts +1 -0
  24. package/lib/index.js +1 -1
  25. package/lib/layout/HawaContainer.d.ts +2 -0
  26. package/package.json +3 -2
  27. package/src/blocks/Misc/EmptyState.tsx +24 -0
  28. package/src/blocks/Misc/NotFound.tsx +15 -12
  29. package/src/blocks/Misc/index.ts +2 -1
  30. package/src/elements/DragDropImages.tsx +3 -3
  31. package/src/elements/HawaAccordian.tsx +21 -10
  32. package/src/elements/HawaCardInput.tsx +317 -0
  33. package/src/elements/HawaItemCard.tsx +6 -2
  34. package/src/elements/HawaMenu.tsx +10 -2
  35. package/src/elements/HawaTimeline.tsx +82 -0
  36. package/src/elements/index.ts +33 -30
  37. package/src/hooks/index.ts +1 -0
  38. package/src/hooks/useDiscloser.ts +25 -0
  39. package/src/index.ts +2 -1
  40. package/src/layout/HawaContainer.tsx +18 -2
  41. package/src/styles.css +110 -30
  42. package/storybook-static/{209.d29fd715.iframe.bundle.js → 209.05314e10.iframe.bundle.js} +2 -2
  43. package/storybook-static/{209.d29fd715.iframe.bundle.js.LICENSE.txt → 209.05314e10.iframe.bundle.js.LICENSE.txt} +0 -0
  44. package/storybook-static/iframe.html +1 -1
  45. package/storybook-static/main.7a1984b7.iframe.bundle.js +1 -0
  46. package/storybook-static/project.json +1 -1
  47. package/tsconfig.json +30 -25
  48. package/storybook-static/main.a1546405.iframe.bundle.js +0 -1
@@ -2,6 +2,8 @@ import React from "react";
2
2
  type ContainerTypes = {
3
3
  maxWidth?: "full" | "small" | "normal";
4
4
  children: React.ReactNode;
5
+ variant?: "contained" | "outlined";
6
+ centered?: boolean;
5
7
  };
6
8
  export declare const HawaContainer: React.FunctionComponent<ContainerTypes>;
7
9
  export {};
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ type TEmptyState = {};
3
+ export declare const EmptyState: React.FunctionComponent<TEmptyState>;
4
+ export {};
@@ -1 +1,2 @@
1
1
  export * from "./NotFound";
2
+ export * from "./EmptyState";
@@ -5,7 +5,7 @@ type DragDropImagesTypes = {
5
5
  setFiles: any;
6
6
  setDeletedFiles: any;
7
7
  maxFiles: number;
8
- accept: any;
8
+ accept: string;
9
9
  onAcceptedFiles: any;
10
10
  showPreview: any;
11
11
  onDeleteFile: any;
@@ -0,0 +1,25 @@
1
+ /// <reference types="react" />
2
+ export declare const HawaCardInput: ({ cardHolder, cardMonth, cardYear, cardCvv, rememberMe, onUpdateState, cardNumberRef, cardHolderRef, cardDateRef, cardCvvRef, rememberMeRef, onCardInputFocus, onCardInputBlur, children, handlePaymentPayfort, selectedPaymentMethod, isRegister, accessCode, shaRequestPassphrase, transaction, signature, isCheckout, }: {
3
+ cardHolder: any;
4
+ cardMonth: any;
5
+ cardYear: any;
6
+ cardCvv: any;
7
+ rememberMe: any;
8
+ onUpdateState: any;
9
+ cardNumberRef: any;
10
+ cardHolderRef: any;
11
+ cardDateRef: any;
12
+ cardCvvRef: any;
13
+ rememberMeRef: any;
14
+ onCardInputFocus: any;
15
+ onCardInputBlur: any;
16
+ children: any;
17
+ handlePaymentPayfort: any;
18
+ selectedPaymentMethod: any;
19
+ isRegister: any;
20
+ accessCode: any;
21
+ shaRequestPassphrase: any;
22
+ transaction: any;
23
+ signature: any;
24
+ isCheckout: any;
25
+ }) => JSX.Element;
@@ -6,7 +6,8 @@ interface TMenuTypes {
6
6
  headerTitle?: string;
7
7
  headerSubtitle?: string;
8
8
  open?: boolean;
9
- handleClose?: (e: boolean) => void;
9
+ handleClose?: () => void;
10
+ handleOpen: () => void;
10
11
  anchor?: any;
11
12
  children?: ReactNode;
12
13
  buttonPosition?: "top-right" | "top-left" | "bottom-right" | "bottom-left";
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ type THawaTimeline = {
3
+ steps: any[any];
4
+ currentStep: any;
5
+ orientation: "vertical" | "horizontal";
6
+ };
7
+ export declare const HawaTimeline: React.FunctionComponent<THawaTimeline>;
8
+ export {};
@@ -6,7 +6,6 @@ export * from "./HawaChip";
6
6
  export * from "./HawaSettingsRow";
7
7
  export * from "./HawaSelect";
8
8
  export * from "./HawaRange";
9
- export * from "./HawaTextField";
10
9
  export * from "./HawaTypography";
11
10
  export * from "./HawaAlert";
12
11
  export * from "./HawaTable";
@@ -23,6 +22,9 @@ export * from "./HawaModal";
23
22
  export * from "./HawaMenu";
24
23
  export * from "./HawaDrawer";
25
24
  export * from "./HawaCopyrights";
25
+ export * from "./HawaTimeline";
26
+ export * from "./HawaTextField";
27
+ export * from "./HawaCardInput";
26
28
  export * from "./HawaItemCard";
27
29
  export * from "./HawaPricingCard";
28
30
  export * from "./HawaAdCard";
@@ -0,0 +1 @@
1
+ export * from "./useDiscloser";
@@ -0,0 +1,7 @@
1
+ type TUseDiscloser = {
2
+ isOpen: boolean;
3
+ onOpen: () => void;
4
+ onClose: () => void;
5
+ };
6
+ declare const useDiscloser: (value?: boolean) => TUseDiscloser;
7
+ export default useDiscloser;
package/lib/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
1
  export * from "./elements";
2
2
  export * from "./layout";
3
3
  export * from "./blocks";
4
+ export * from "./hooks";