@sikka/hawa 0.0.5 → 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 (69) hide show
  1. package/es/index.es.js +1 -1
  2. package/lib/index.js +1 -1
  3. package/package.json +3 -5
  4. package/src/blocks/AuthForms/NewPasswordForm.js +80 -14
  5. package/src/blocks/AuthForms/ResetPasswordForm.js +46 -3
  6. package/src/blocks/AuthForms/SignInForm.js +60 -13
  7. package/src/blocks/AuthForms/SignUpForm.js +70 -18
  8. package/src/blocks/Payment/ChargeWalletForm.js +32 -0
  9. package/src/blocks/Payment/PayWithWallet.js +35 -0
  10. package/src/blocks/Payment/SelectPayment.js +15 -16
  11. package/src/blocks/Payment/index.js +2 -0
  12. package/src/layout/Box.js +0 -1
  13. package/src/stories/BlocksStories/AuthForm.stories.js +11 -5
  14. package/src/stories/BlocksStories/PaymentForm.stories.js +12 -41
  15. package/src/stories/Introduction.stories.js +132 -110
  16. package/src/stories/{ActionButton.stories.js → UIStories/ActionButton.stories.js} +2 -2
  17. package/src/stories/{AdaptiveButton.stories.js → UIStories/AdaptiveButton.stories.js} +2 -2
  18. package/src/stories/UIStories/Alert.stories.js +55 -0
  19. package/src/stories/{CheckBox.stories.js → UIStories/CheckBox.stories.js} +3 -4
  20. package/src/stories/UIStories/InputLabel.stories.js +13 -0
  21. package/src/stories/{RadioSelector.stories.js → UIStories/RadioSelector.stories.js} +5 -6
  22. package/src/stories/{TextField.stories.js → UIStories/TextField.stories.js} +4 -5
  23. package/src/themes/HawaProvider.js +54 -2
  24. package/src/ui/ApplePayButton.js +0 -1
  25. package/src/ui/GithubButton.js +0 -1
  26. package/src/ui/GoogleButton.js +0 -1
  27. package/src/ui/GooglePayButton.js +1 -2
  28. package/src/ui/HawaAlert.js +37 -0
  29. package/src/ui/HawaButton.js +48 -0
  30. package/src/ui/{Checkbox.js → HawaCheckbox.js} +1 -1
  31. package/src/ui/HawaInputLabel.js +0 -1
  32. package/src/ui/HawaLogoButton.js +48 -0
  33. package/src/ui/{RadioSelector.js → HawaRadio.js} +1 -1
  34. package/src/ui/HawaTextField.js +52 -57
  35. package/src/ui/HawaTypography.js +29 -0
  36. package/src/ui/MadaButton.js +0 -1
  37. package/src/ui/PayPalButton.js +1 -2
  38. package/src/ui/STCPayButton.js +1 -2
  39. package/src/ui/TwitterButton.js +0 -1
  40. package/src/ui/VisaMasterButton.js +0 -1
  41. package/src/ui/WalletButton.js +4 -71
  42. package/src/ui/index.js +8 -5
  43. package/storybook-static/{1.95be85dd.iframe.bundle.js → 0.0d994c92.iframe.bundle.js} +3 -3
  44. package/storybook-static/{1.95be85dd.iframe.bundle.js.LICENSE.txt → 0.0d994c92.iframe.bundle.js.LICENSE.txt} +0 -0
  45. package/storybook-static/0.0d994c92.iframe.bundle.js.map +1 -0
  46. package/storybook-static/1.aabc3f3a.iframe.bundle.js +1 -0
  47. package/storybook-static/{3.d72f7fac.iframe.bundle.js → 2.430bf1e3.iframe.bundle.js} +1 -1
  48. package/storybook-static/{7.ffb0d84b.iframe.bundle.js → 6.704d1e8d.iframe.bundle.js} +1 -1
  49. package/storybook-static/{8.68cd1217.iframe.bundle.js → 7.9ce807e3.iframe.bundle.js} +3 -3
  50. package/storybook-static/{8.68cd1217.iframe.bundle.js.LICENSE.txt → 7.9ce807e3.iframe.bundle.js.LICENSE.txt} +0 -0
  51. package/storybook-static/7.9ce807e3.iframe.bundle.js.map +1 -0
  52. package/storybook-static/{9.488e3969.iframe.bundle.js → 8.c4cb6081.iframe.bundle.js} +1 -1
  53. package/storybook-static/iframe.html +1 -1
  54. package/storybook-static/main.e55ce615.iframe.bundle.js +1 -0
  55. package/storybook-static/runtime~main.cfefe972.iframe.bundle.js +1 -0
  56. package/storybook-static/vendors~main.30a2c5d7.iframe.bundle.js +76 -0
  57. package/storybook-static/{vendors~main.d75dc38b.iframe.bundle.js.LICENSE.txt → vendors~main.30a2c5d7.iframe.bundle.js.LICENSE.txt} +15 -0
  58. package/storybook-static/vendors~main.30a2c5d7.iframe.bundle.js.map +1 -0
  59. package/src/stories/Alert.stories.js +0 -41
  60. package/src/stories/InputLabel.stories.js +0 -92
  61. package/src/ui/StyledAlert.js +0 -30
  62. package/storybook-static/0.54f7e52e.iframe.bundle.js +0 -1
  63. package/storybook-static/1.95be85dd.iframe.bundle.js.map +0 -1
  64. package/storybook-static/2.eb601582.iframe.bundle.js +0 -1
  65. package/storybook-static/8.68cd1217.iframe.bundle.js.map +0 -1
  66. package/storybook-static/main.044648aa.iframe.bundle.js +0 -1
  67. package/storybook-static/runtime~main.3e280e98.iframe.bundle.js +0 -1
  68. package/storybook-static/vendors~main.d75dc38b.iframe.bundle.js +0 -76
  69. package/storybook-static/vendors~main.d75dc38b.iframe.bundle.js.map +0 -1
@@ -8,7 +8,6 @@ export const TwitterButton = (props) => {
8
8
  const theme = useContext(ThemeProvider);
9
9
  let buttonStyle = {};
10
10
 
11
- console.log(Object.keys(theme.actionButton));
12
11
  let currentTheme = Object.keys(theme.actionButton).find(
13
12
  (themeName) => themeName.toLowerCase() === props.themeType?.toLowerCase()
14
13
  );
@@ -9,7 +9,6 @@ export const VisaMasterButton = (props) => {
9
9
  const theme = useContext(ThemeProvider);
10
10
  let buttonStyle = {};
11
11
 
12
- console.log(Object.keys(theme.actionButton));
13
12
  let currentTheme = Object.keys(theme.actionButton).find(
14
13
  (themeName) => themeName.toLowerCase() === props.themeType?.toLowerCase()
15
14
  );
@@ -1,77 +1,10 @@
1
- import React, { useContext } from "react";
2
- import { ThemeProvider } from "../themes/HawaProvider";
3
- import Button from "@mui/material/Button";
4
- import { styled, darken } from "@mui/material/styles";
5
-
1
+ import React from "react";
6
2
  import WalletIcon from "@mui/icons-material/AccountBalanceWallet";
3
+ import { HawaLogoButton } from "./HawaLogoButton";
7
4
 
8
5
  export const WalletButton = (props) => {
9
- const theme = useContext(ThemeProvider);
10
- let buttonStyle = {};
11
-
12
- console.log(Object.keys(theme.actionButton));
13
- let currentTheme = Object.keys(theme.actionButton).find(
14
- (themeName) => themeName.toLowerCase() === props.themeType?.toLowerCase()
15
- );
16
- if (currentTheme) {
17
- buttonStyle = {
18
- cursor: "pointer",
19
- display: "flex",
20
- flexDirection: "row",
21
- alignItems: "center",
22
- justifyContent: "center",
23
- padding: 0,
24
- marginTop: theme.actionButton[currentTheme].margin,
25
- border: props.outlined ? "2px solid black" : "none",
26
- borderRadius: theme.actionButton[currentTheme].borderRadius,
27
- backgroundColor: "white",
28
- "&:hover": {
29
- backgroundColor: darken("#ffffff", 0.1)
30
- }
31
- };
32
- } else {
33
- buttonStyle = {
34
- cursor: "pointer",
35
- display: "flex",
36
- flexDirection: "row",
37
- alignItems: "center",
38
- justifyContent: "center",
39
- marginTop: theme.margins,
40
- border: props.outlined ? "2px solid black" : "none",
41
- borderRadius: 0,
42
- backgroundColor: "white",
43
- "&:hover": {
44
- backgroundColor: darken("#ffffff", 0.1)
45
- }
46
- };
47
- }
48
-
49
- const StyledButton = styled(Button)(({ theme }) => {
50
- return {
51
- // "label + &": {
52
- // marginTop: theme.spacing(3)
53
- // },
54
-
55
- borderRadius: 4,
56
- position: "relative",
57
- border: "1px solid #ced4da",
58
- fontSize: 16,
59
- // width: "auto",
60
- height: 50,
61
- // padding: "10px 12px",
62
- ...buttonStyle,
63
- "&:focus": {
64
- // boxShadow: `${alpha(theme.palette.primary.main, 0.25)} 0 0 0 0.2rem`,
65
- borderColor: theme.palette.primary.main
66
- }
67
- };
68
- });
69
-
70
6
  return (
71
- <StyledButton
72
- // style={buttonStyle}
73
- onClick={props.handleClick}
74
- >
7
+ <HawaLogoButton {...props}>
75
8
  <WalletIcon />
76
9
  <div style={{ width: 10 }} />
77
10
  <p
@@ -86,6 +19,6 @@ export const WalletButton = (props) => {
86
19
  >
87
20
  {props.buttonText}
88
21
  </p>
89
- </StyledButton>
22
+ </HawaLogoButton>
90
23
  );
91
24
  };
package/src/ui/index.js CHANGED
@@ -1,15 +1,18 @@
1
- // export * from "./AdaptiveButton";
1
+ export * from "./AdaptiveButton";
2
2
  export * from "./ActionButton";
3
- // export * from "./Checkbox";
4
- // export * from "./RadioBox";
3
+ export * from "./HawaCheckbox";
4
+ export * from "./HawaRadio";
5
5
  // export * from "./RadioSelector";
6
6
  // export * from "./Row";
7
7
  // export * from "./SelectedField";
8
8
  // export * from "./TabPanel";
9
- // export * from "./HawaTextArea";
9
+ export * from "./HawaLogoButton";
10
+ export * from "./HawaButton";
10
11
  export * from "./HawaTextField";
11
12
  export * from "./HawaInputLabel";
12
- // export * from "./StyledAlert";
13
+ export * from "./HawaTypography";
14
+ export * from "./HawaAlert";
15
+
13
16
  export * from "./GoogleButton";
14
17
  export * from "./GithubButton";
15
18
  export * from "./TwitterButton";