@sikka/hawa 0.0.3 → 0.0.6

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 (158) hide show
  1. package/.github/workflows/hawa-publish-push.yml +45 -0
  2. package/.github/workflows/hawa-publish.yml +2 -0
  3. package/es/index.es.js +1 -0
  4. package/lib/index.js +1 -0
  5. package/package.json +24 -13
  6. package/rollup.config.js +2 -2
  7. package/src/Assets/images/card-background/1.jpeg +0 -0
  8. package/src/Assets/images/card-background/10.jpeg +0 -0
  9. package/src/Assets/images/card-background/11.jpeg +0 -0
  10. package/src/Assets/images/card-background/12.jpeg +0 -0
  11. package/src/Assets/images/card-background/13.jpeg +0 -0
  12. package/src/Assets/images/card-background/14.jpeg +0 -0
  13. package/src/Assets/images/card-background/15.jpeg +0 -0
  14. package/src/Assets/images/card-background/16.jpeg +0 -0
  15. package/src/Assets/images/card-background/17.jpeg +0 -0
  16. package/src/Assets/images/card-background/18.jpeg +0 -0
  17. package/src/Assets/images/card-background/19.jpeg +0 -0
  18. package/src/Assets/images/card-background/2.jpeg +0 -0
  19. package/src/Assets/images/card-background/20.jpeg +0 -0
  20. package/src/Assets/images/card-background/21.jpeg +0 -0
  21. package/src/Assets/images/card-background/22.jpeg +0 -0
  22. package/src/Assets/images/card-background/23.jpeg +0 -0
  23. package/src/Assets/images/card-background/24.jpeg +0 -0
  24. package/src/Assets/images/card-background/25.jpeg +0 -0
  25. package/src/Assets/images/card-background/3.jpeg +0 -0
  26. package/src/Assets/images/card-background/4.jpeg +0 -0
  27. package/src/Assets/images/card-background/5.jpeg +0 -0
  28. package/src/Assets/images/card-background/6.jpeg +0 -0
  29. package/src/Assets/images/card-background/7.jpeg +0 -0
  30. package/src/Assets/images/card-background/8.jpeg +0 -0
  31. package/src/Assets/images/card-background/9.jpeg +0 -0
  32. package/src/Assets/images/card-type/amex.png +0 -0
  33. package/src/Assets/images/card-type/diners.png +0 -0
  34. package/src/Assets/images/card-type/discover.png +0 -0
  35. package/src/Assets/images/card-type/mastercard.png +0 -0
  36. package/src/Assets/images/card-type/troy.png +0 -0
  37. package/src/Assets/images/card-type/unionpay.png +0 -0
  38. package/src/Assets/images/card-type/visa.png +0 -0
  39. package/src/blocks/Account/UserProfile.js +11 -11
  40. package/src/blocks/Account/UserSettings.js +11 -11
  41. package/src/blocks/AuthForms/NewPasswordForm.js +83 -10
  42. package/src/blocks/AuthForms/ResetPasswordForm.js +50 -8
  43. package/src/blocks/AuthForms/SignInForm.js +96 -13
  44. package/src/blocks/AuthForms/SignUpForm.js +113 -13
  45. package/src/blocks/Payment/ChargeWalletForm.js +32 -0
  46. package/src/blocks/Payment/CreditCardForm.js +31 -0
  47. package/src/blocks/Payment/Form/CForm.js +328 -0
  48. package/src/blocks/Payment/Form/Card.js +242 -0
  49. package/src/blocks/Payment/Gateway/GooglePay.js +251 -0
  50. package/src/blocks/Payment/Gateway/Payfort.js +90 -0
  51. package/src/blocks/Payment/Gateway/Paypal.js +138 -0
  52. package/src/blocks/Payment/Gateway/Wallet.js +149 -0
  53. package/src/blocks/Payment/PayWithWallet.js +35 -0
  54. package/src/blocks/Payment/PaymentMethod.js +132 -0
  55. package/src/blocks/Payment/SelectPayment.js +94 -0
  56. package/src/blocks/Payment/index.js +18 -0
  57. package/src/index.js +4 -1
  58. package/src/layout/Box.js +30 -17
  59. package/src/stories/BlocksStories/AuthForm.stories.js +105 -0
  60. package/src/stories/BlocksStories/PaymentForm.stories.js +82 -0
  61. package/src/stories/{UserAccount.stories.js → BlocksStories/UserAccount.stories.js} +2 -2
  62. package/src/stories/GlobalVariables.stories.js +33 -90
  63. package/src/stories/HawaProvider.stories.js +0 -1
  64. package/src/stories/Introduction.stories.js +132 -110
  65. package/src/stories/LayoutStories/Box.stories.js +56 -0
  66. package/src/stories/UIStories/ActionButton.stories.js +53 -0
  67. package/src/stories/{AdaptiveButton.stories.js → UIStories/AdaptiveButton.stories.js} +3 -3
  68. package/src/stories/UIStories/Alert.stories.js +55 -0
  69. package/src/stories/{CheckBox.stories.js → UIStories/CheckBox.stories.js} +3 -4
  70. package/src/stories/UIStories/InputLabel.stories.js +13 -0
  71. package/src/stories/{RadioSelector.stories.js → UIStories/RadioSelector.stories.js} +5 -6
  72. package/src/stories/{TextField.stories.js → UIStories/TextField.stories.js} +4 -5
  73. package/src/styles.scss +679 -0
  74. package/src/themes/HawaProvider.js +110 -16
  75. package/src/ui/ActionButton.js +35 -10
  76. package/src/ui/AdaptiveButton.js +29 -29
  77. package/src/ui/ApplePayButton.js +93 -0
  78. package/src/ui/AutoCompleteField.js +0 -1
  79. package/src/ui/DragDropImages.js +2 -2
  80. package/src/ui/GithubButton.js +90 -0
  81. package/src/ui/GoogleButton.js +82 -0
  82. package/src/ui/GooglePayButton.js +93 -0
  83. package/src/ui/HawaAlert.js +37 -0
  84. package/src/ui/HawaButton.js +48 -0
  85. package/src/ui/{Checkbox.js → HawaCheckbox.js} +3 -3
  86. package/src/ui/HawaInputLabel.js +32 -0
  87. package/src/ui/HawaLogoButton.js +48 -0
  88. package/src/ui/{RadioSelector.js → HawaRadio.js} +1 -1
  89. package/src/ui/{TextArea.js → HawaTextArea.js} +2 -2
  90. package/src/ui/HawaTextField.js +113 -0
  91. package/src/ui/HawaTypography.js +29 -0
  92. package/src/ui/MadaButton.js +93 -0
  93. package/src/ui/PayPalButton.js +93 -0
  94. package/src/ui/RadioBox.js +2 -2
  95. package/src/ui/STCPayButton.js +93 -0
  96. package/src/ui/SelectedField.js +4 -4
  97. package/src/ui/StyledTooltip.js +1 -1
  98. package/src/ui/TabPanel.js +1 -1
  99. package/src/ui/TwitterButton.js +83 -0
  100. package/src/ui/VisaMasterButton.js +93 -0
  101. package/src/ui/WalletButton.js +24 -0
  102. package/src/ui/index.js +23 -11
  103. package/storybook-static/0.0d994c92.iframe.bundle.js +3 -0
  104. package/storybook-static/{1.4e43f671.iframe.bundle.js.LICENSE.txt → 0.0d994c92.iframe.bundle.js.LICENSE.txt} +0 -0
  105. package/storybook-static/0.0d994c92.iframe.bundle.js.map +1 -0
  106. package/storybook-static/0.f47eb24a4893a96ec307.manager.bundle.js +1 -0
  107. package/storybook-static/1.aabc3f3a.iframe.bundle.js +1 -0
  108. package/storybook-static/{3.c1dc7159.iframe.bundle.js → 2.430bf1e3.iframe.bundle.js} +1 -1
  109. package/storybook-static/4.0fcda1281dc1961dbe94.manager.bundle.js +2 -0
  110. package/storybook-static/{4.8c311a6b48cad9f29317.manager.bundle.js.LICENSE.txt → 4.0fcda1281dc1961dbe94.manager.bundle.js.LICENSE.txt} +0 -0
  111. package/storybook-static/{5.88fe62ee92ff5ca67829.manager.bundle.js → 5.63ab4f94d50a3acf080d.manager.bundle.js} +1 -1
  112. package/storybook-static/{7.69d2e532.iframe.bundle.js → 6.704d1e8d.iframe.bundle.js} +1 -1
  113. package/storybook-static/{6.96d184f368dea006cb52.manager.bundle.js → 6.a6d45262f7e98f3f18d3.manager.bundle.js} +2 -2
  114. package/storybook-static/{6.96d184f368dea006cb52.manager.bundle.js.LICENSE.txt → 6.a6d45262f7e98f3f18d3.manager.bundle.js.LICENSE.txt} +0 -0
  115. package/storybook-static/{7.5ec31f3702b08ab0b71c.manager.bundle.js → 7.097710753af9a1c41b80.manager.bundle.js} +1 -1
  116. package/storybook-static/{8.68cd1217.iframe.bundle.js → 7.9ce807e3.iframe.bundle.js} +3 -3
  117. package/storybook-static/{8.68cd1217.iframe.bundle.js.LICENSE.txt → 7.9ce807e3.iframe.bundle.js.LICENSE.txt} +0 -0
  118. package/storybook-static/7.9ce807e3.iframe.bundle.js.map +1 -0
  119. package/storybook-static/{8.5ce13be7612bd3a6b864.manager.bundle.js → 8.76c3cbf398692028e834.manager.bundle.js} +1 -1
  120. package/storybook-static/{9.488e3969.iframe.bundle.js → 8.c4cb6081.iframe.bundle.js} +1 -1
  121. package/storybook-static/iframe.html +1 -1
  122. package/storybook-static/index.html +1 -1
  123. package/storybook-static/main.ac6e4b72b033097dad76.manager.bundle.js +1 -0
  124. package/storybook-static/main.e55ce615.iframe.bundle.js +1 -0
  125. package/storybook-static/{runtime~main.cc29f4c2175f187a3707.manager.bundle.js → runtime~main.c8dac23bc753439736f0.manager.bundle.js} +1 -1
  126. package/storybook-static/runtime~main.cfefe972.iframe.bundle.js +1 -0
  127. package/storybook-static/vendors~main.30a2c5d7.iframe.bundle.js +76 -0
  128. package/storybook-static/{vendors~main.d144d840.iframe.bundle.js.LICENSE.txt → vendors~main.30a2c5d7.iframe.bundle.js.LICENSE.txt} +3 -30
  129. package/storybook-static/vendors~main.30a2c5d7.iframe.bundle.js.map +1 -0
  130. package/storybook-static/vendors~main.a697e07137d366f95f76.manager.bundle.js +2 -0
  131. package/storybook-static/{vendors~main.f228d62e92b69563cefb.manager.bundle.js.LICENSE.txt → vendors~main.a697e07137d366f95f76.manager.bundle.js.LICENSE.txt} +0 -0
  132. package/tools/build-styles.js +17 -0
  133. package/src/blocks/AuthForms/viaFacebook.js +0 -0
  134. package/src/blocks/AuthForms/viaGithub.js +0 -0
  135. package/src/blocks/AuthForms/viaGoogle.js +0 -0
  136. package/src/blocks/AuthForms/viaTwitter.js +0 -0
  137. package/src/stories/ActionButton.stories.js +0 -49
  138. package/src/stories/Alert.stories.js +0 -41
  139. package/src/stories/AuthForm.stories.js +0 -79
  140. package/src/stories/Box.stories.js +0 -64
  141. package/src/stories/InputLabel.stories.js +0 -92
  142. package/src/ui/StyledAlert.js +0 -30
  143. package/src/ui/StyledInputLabel.js +0 -19
  144. package/src/ui/TextField.js +0 -62
  145. package/storybook-static/0.d3bc3395610cf5d3ee94.manager.bundle.js +0 -1
  146. package/storybook-static/0.dd3d47f5.iframe.bundle.js +0 -1
  147. package/storybook-static/1.4e43f671.iframe.bundle.js +0 -3
  148. package/storybook-static/1.4e43f671.iframe.bundle.js.map +0 -1
  149. package/storybook-static/2.9a757207.iframe.bundle.js +0 -1
  150. package/storybook-static/4.8c311a6b48cad9f29317.manager.bundle.js +0 -2
  151. package/storybook-static/8.68cd1217.iframe.bundle.js.map +0 -1
  152. package/storybook-static/main.65cb2769.iframe.bundle.js +0 -1
  153. package/storybook-static/main.7e391cf7bf72b0d18ea5.manager.bundle.js +0 -1
  154. package/storybook-static/runtime~main.6e2e1544.iframe.bundle.js +0 -1
  155. package/storybook-static/vendors~main.d144d840.iframe.bundle.js +0 -3
  156. package/storybook-static/vendors~main.d144d840.iframe.bundle.js.map +0 -1
  157. package/storybook-static/vendors~main.f228d62e92b69563cefb.manager.bundle.js +0 -2
  158. package/yarn-error.log +0 -10910
@@ -0,0 +1,53 @@
1
+ import React from "react";
2
+
3
+ import { defaultTheme, HawaProvider } from "../../themes/HawaProvider";
4
+ import { ActionButton } from "../../ui";
5
+
6
+ const Template = (args) => {
7
+ return (
8
+ <HawaProvider theme={{ ...defaultTheme }}>
9
+ <ActionButton themeType={args.theme} text={args.buttonLabel} />
10
+ </HawaProvider>
11
+ );
12
+ };
13
+ //types:
14
+ //error (red)
15
+ //warning (red)
16
+ //notice (blue)
17
+
18
+ export default {
19
+ title: "UI/ActionButton",
20
+ component: ActionButton,
21
+ argTypes: {
22
+ theme: {
23
+ description: "overwritten description",
24
+ table: {
25
+ type: {
26
+ summary: "something short"
27
+ },
28
+ defaultValue: { summary: "Hello" }
29
+ },
30
+ options: ["primary", "secondary", "default"],
31
+ control: { type: "select" }
32
+ }
33
+ }
34
+ };
35
+
36
+ Template.args = {
37
+ showText: true,
38
+ buttonLabel: "test",
39
+ theme: "primary"
40
+ };
41
+ export const Primary = Template.bind({});
42
+ Primary.args = {
43
+ showText: true,
44
+ buttonLabel: "test",
45
+ theme: "primary"
46
+ };
47
+
48
+ export const Secondary = Template.bind({});
49
+ Secondary.args = {
50
+ showText: true,
51
+ buttonLabel: "test",
52
+ theme: "secondary"
53
+ };
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
- import CastIcon from "@material-ui/icons/Cast";
3
- import { HawaProvider } from "../themes/HawaProvider";
4
- import { AdaptiveButton } from "../ui";
2
+ import CastIcon from "@mui/icons-material/Cast";
3
+ import { HawaProvider } from "../../themes/HawaProvider";
4
+ import { AdaptiveButton } from "../../ui";
5
5
 
6
6
  const Template = (args) => {
7
7
  const theme = {
@@ -0,0 +1,55 @@
1
+ import React from "react";
2
+
3
+ import { defaultTheme, HawaProvider } from "../../themes/HawaProvider";
4
+ import { HawaAlert } from "../../ui";
5
+
6
+ const Template = (args) => {
7
+ return (
8
+ <HawaProvider theme={{ ...defaultTheme }}>
9
+ <HawaAlert
10
+ themeType={args.theme}
11
+ title="What?"
12
+ text="This is a success alert"
13
+ severity="success"
14
+ />
15
+ <HawaAlert
16
+ themeType={args.theme}
17
+ text="This is an info alert"
18
+ severity="info"
19
+ />
20
+ <HawaAlert
21
+ themeType={args.theme}
22
+ text="This is a warning alert"
23
+ severity="warning"
24
+ />
25
+ <HawaAlert
26
+ themeType={args.theme}
27
+ text="This is an error alert"
28
+ severity="error"
29
+ />
30
+ </HawaProvider>
31
+ );
32
+ };
33
+ //types:
34
+ //error (red)
35
+ //warning (red)
36
+ //notice (blue)
37
+
38
+ export default {
39
+ title: "UI/Alert",
40
+ component: HawaAlert,
41
+ argTypes: {
42
+ theme: {
43
+ options: ["primary", "secondary", "default"],
44
+ control: { type: "select" }
45
+ }
46
+ },
47
+ args: {
48
+ theme: "primary"
49
+ }
50
+ };
51
+
52
+ export const Default = Template.bind({});
53
+ Default.args = {
54
+ theme: "primary"
55
+ };
@@ -1,14 +1,13 @@
1
1
  import React from "react";
2
- import { StyledCheckbox } from "../ui";
3
- import "../styles.css";
2
+ import { HawaCheckbox } from "../../ui";
4
3
 
5
4
  const Template = (args) => {
6
- return <StyledCheckbox {...args} />;
5
+ return <HawaCheckbox {...args} />;
7
6
  };
8
7
 
9
8
  export default {
10
9
  title: "UI/Checkbox",
11
- component: Light,
10
+ component: HawaCheckbox,
12
11
  argsTypes: {
13
12
  defaultValue: {
14
13
  options: [true, false],
@@ -0,0 +1,13 @@
1
+ import { storiesOf } from "@storybook/react";
2
+ import { HawaInputLabel } from "../../ui";
3
+
4
+ export default {
5
+ title: "Components/InputLabel",
6
+ component: [HawaInputLabel],
7
+ argTypes: {
8
+ resize: {
9
+ options: ["vertical", "horizontal", "both"],
10
+ control: { type: "radio" }
11
+ }
12
+ }
13
+ };
@@ -1,7 +1,6 @@
1
1
  import React from "react";
2
- import { StyledRadioSelector } from "../ui";
3
- import { HawaProvider } from "../themes/HawaProvider";
4
- import "../styles.css";
2
+ import { HawaProvider } from "../../themes/HawaProvider";
3
+ import { HawaRadio } from "../../ui";
5
4
 
6
5
  const Template = (args) => {
7
6
  const theme = {
@@ -13,13 +12,13 @@ const Template = (args) => {
13
12
  };
14
13
  return (
15
14
  <HawaProvider theme={theme}>
16
- <StyledRadioSelector {...args} />
15
+ <HawaRadio {...args} />
17
16
  </HawaProvider>
18
17
  );
19
18
  };
20
19
  export default {
21
- title: "Components/RadioSelector",
22
- component: Light,
20
+ title: "UI/RadioSelector",
21
+ component: HawaRadio,
23
22
  argTypes: {
24
23
  options: {
25
24
  control: "array"
@@ -1,14 +1,13 @@
1
1
  import React from "react";
2
- import { StyledTextField } from "../ui";
3
- import "../styles.css";
2
+ import { HawaTextField } from "../../ui";
4
3
 
5
4
  const Template = (args) => {
6
- return <StyledTextField {...args} />;
5
+ return <HawaTextField {...args} />;
7
6
  };
8
7
 
9
8
  export default {
10
- title: "Components/TextField",
11
- component: StyledTextField,
9
+ title: "UI/TextField",
10
+ component: HawaTextField,
12
11
  argsTypes: {
13
12
  type: {
14
13
  name: "type",