@sikka/hawa 0.0.4 → 0.0.7

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 (123) hide show
  1. package/es/index.es.js +1 -1
  2. package/lib/index.js +1 -1
  3. package/package.json +9 -8
  4. package/src/blocks/Account/UserProfile.js +61 -11
  5. package/src/blocks/Account/UserSettings.js +11 -11
  6. package/src/blocks/AuthForms/NewPasswordForm.js +85 -11
  7. package/src/blocks/AuthForms/ResetPasswordForm.js +47 -8
  8. package/src/blocks/AuthForms/SignInForm.js +91 -13
  9. package/src/blocks/AuthForms/SignUpForm.js +119 -12
  10. package/src/blocks/Payment/ChargeWalletForm.js +53 -0
  11. package/src/blocks/Payment/CreditCardForm.js +60 -0
  12. package/src/blocks/Payment/Form/CForm.js +10 -8
  13. package/src/blocks/Payment/Gateway/Wallet.js +5 -5
  14. package/src/blocks/Payment/PayWithWallet.js +14 -0
  15. package/src/blocks/Payment/PaymentMethod.js +2 -2
  16. package/src/blocks/Payment/SelectPayment.js +76 -0
  17. package/src/blocks/Payment/index.js +18 -0
  18. package/src/index.js +3 -1
  19. package/src/layout/Box.js +31 -18
  20. package/src/stories/BlocksStories/AuthForm.stories.js +103 -0
  21. package/src/stories/BlocksStories/PaymentForm.stories.js +86 -0
  22. package/src/stories/BlocksStories/UserForm.stories.js +41 -0
  23. package/src/stories/GlobalVariables.stories.js +33 -90
  24. package/src/stories/HawaProvider.stories.js +0 -1
  25. package/src/stories/Introduction.stories.js +132 -110
  26. package/src/stories/LayoutStories/Box.stories.js +56 -0
  27. package/src/stories/UIStories/ActionButton.stories.js +53 -0
  28. package/src/stories/{AdaptiveButton.stories.js → UIStories/AdaptiveButton.stories.js} +3 -3
  29. package/src/stories/UIStories/Alert.stories.js +42 -0
  30. package/src/stories/{CheckBox.stories.js → UIStories/CheckBox.stories.js} +3 -4
  31. package/src/stories/UIStories/InputLabel.stories.js +13 -0
  32. package/src/stories/UIStories/RadioSelector.stories.js +53 -0
  33. package/src/stories/UIStories/SettingsRow.stories.js +64 -0
  34. package/src/stories/{TextField.stories.js → UIStories/TextField.stories.js} +4 -5
  35. package/src/themes/HawaProvider.js +151 -18
  36. package/src/ui/ActionButton.js +38 -10
  37. package/src/ui/AdaptiveButton.js +29 -29
  38. package/src/ui/ApplePayButton.js +26 -0
  39. package/src/ui/AutoCompleteField.js +0 -1
  40. package/src/ui/DragDropImages.js +2 -2
  41. package/src/ui/GithubButton.js +24 -0
  42. package/src/ui/GoogleButton.js +23 -0
  43. package/src/ui/GooglePayButton.js +26 -0
  44. package/src/ui/HawaAlert.js +37 -0
  45. package/src/ui/HawaButton.js +48 -0
  46. package/src/ui/{Checkbox.js → HawaCheckbox.js} +3 -3
  47. package/src/ui/HawaInputLabel.js +32 -0
  48. package/src/ui/HawaLogoButton.js +43 -0
  49. package/src/ui/HawaRadio.js +73 -0
  50. package/src/ui/HawaSettingsRow.js +71 -0
  51. package/src/ui/{TextArea.js → HawaTextArea.js} +2 -2
  52. package/src/ui/HawaTextField.js +110 -0
  53. package/src/ui/HawaTypography.js +29 -0
  54. package/src/ui/MadaButton.js +26 -0
  55. package/src/ui/PayPalButton.js +26 -0
  56. package/src/ui/RadioBox.js +2 -2
  57. package/src/ui/STCPayButton.js +26 -0
  58. package/src/ui/SelectedField.js +4 -4
  59. package/src/ui/StyledTooltip.js +1 -1
  60. package/src/ui/TabPanel.js +1 -1
  61. package/src/ui/TwitterButton.js +27 -0
  62. package/src/ui/VisaMasterButton.js +26 -0
  63. package/src/ui/WalletButton.js +24 -0
  64. package/src/ui/index.js +23 -11
  65. package/storybook-static/0.0d994c92.iframe.bundle.js +3 -0
  66. package/storybook-static/{1.4e43f671.iframe.bundle.js.LICENSE.txt → 0.0d994c92.iframe.bundle.js.LICENSE.txt} +0 -0
  67. package/storybook-static/0.0d994c92.iframe.bundle.js.map +1 -0
  68. package/storybook-static/0.f47eb24a4893a96ec307.manager.bundle.js +1 -0
  69. package/storybook-static/1.aabc3f3a.iframe.bundle.js +1 -0
  70. package/storybook-static/{3.c1dc7159.iframe.bundle.js → 2.430bf1e3.iframe.bundle.js} +1 -1
  71. package/storybook-static/4.0fcda1281dc1961dbe94.manager.bundle.js +2 -0
  72. package/storybook-static/{4.8c311a6b48cad9f29317.manager.bundle.js.LICENSE.txt → 4.0fcda1281dc1961dbe94.manager.bundle.js.LICENSE.txt} +0 -0
  73. package/storybook-static/{5.88fe62ee92ff5ca67829.manager.bundle.js → 5.63ab4f94d50a3acf080d.manager.bundle.js} +1 -1
  74. package/storybook-static/{7.69d2e532.iframe.bundle.js → 6.704d1e8d.iframe.bundle.js} +1 -1
  75. package/storybook-static/{6.96d184f368dea006cb52.manager.bundle.js → 6.a6d45262f7e98f3f18d3.manager.bundle.js} +2 -2
  76. package/storybook-static/{6.96d184f368dea006cb52.manager.bundle.js.LICENSE.txt → 6.a6d45262f7e98f3f18d3.manager.bundle.js.LICENSE.txt} +0 -0
  77. package/storybook-static/{7.5ec31f3702b08ab0b71c.manager.bundle.js → 7.097710753af9a1c41b80.manager.bundle.js} +1 -1
  78. package/storybook-static/{8.68cd1217.iframe.bundle.js → 7.9ce807e3.iframe.bundle.js} +3 -3
  79. package/storybook-static/{8.68cd1217.iframe.bundle.js.LICENSE.txt → 7.9ce807e3.iframe.bundle.js.LICENSE.txt} +0 -0
  80. package/storybook-static/7.9ce807e3.iframe.bundle.js.map +1 -0
  81. package/storybook-static/{8.5ce13be7612bd3a6b864.manager.bundle.js → 8.76c3cbf398692028e834.manager.bundle.js} +1 -1
  82. package/storybook-static/{9.488e3969.iframe.bundle.js → 8.c4cb6081.iframe.bundle.js} +1 -1
  83. package/storybook-static/iframe.html +1 -1
  84. package/storybook-static/index.html +1 -1
  85. package/storybook-static/main.ac6e4b72b033097dad76.manager.bundle.js +1 -0
  86. package/storybook-static/main.b7ffaed0.iframe.bundle.js +1 -0
  87. package/storybook-static/{runtime~main.cc29f4c2175f187a3707.manager.bundle.js → runtime~main.c8dac23bc753439736f0.manager.bundle.js} +1 -1
  88. package/storybook-static/runtime~main.cfefe972.iframe.bundle.js +1 -0
  89. package/storybook-static/vendors~main.8ebae370.iframe.bundle.js +76 -0
  90. package/storybook-static/{vendors~main.d144d840.iframe.bundle.js.LICENSE.txt → vendors~main.8ebae370.iframe.bundle.js.LICENSE.txt} +3 -30
  91. package/storybook-static/vendors~main.8ebae370.iframe.bundle.js.map +1 -0
  92. package/storybook-static/vendors~main.a697e07137d366f95f76.manager.bundle.js +2 -0
  93. package/storybook-static/{vendors~main.f228d62e92b69563cefb.manager.bundle.js.LICENSE.txt → vendors~main.a697e07137d366f95f76.manager.bundle.js.LICENSE.txt} +0 -0
  94. package/src/blocks/AuthForms/viaFacebook.js +0 -0
  95. package/src/blocks/AuthForms/viaGithub.js +0 -0
  96. package/src/blocks/AuthForms/viaGoogle.js +0 -0
  97. package/src/blocks/AuthForms/viaTwitter.js +0 -0
  98. package/src/blocks/index.js +0 -13
  99. package/src/stories/ActionButton.stories.js +0 -49
  100. package/src/stories/Alert.stories.js +0 -41
  101. package/src/stories/AuthForm.stories.js +0 -79
  102. package/src/stories/Box.stories.js +0 -64
  103. package/src/stories/InputLabel.stories.js +0 -92
  104. package/src/stories/RadioSelector.stories.js +0 -69
  105. package/src/stories/UserAccount.stories.js +0 -46
  106. package/src/ui/RadioSelector.js +0 -51
  107. package/src/ui/StyledAlert.js +0 -30
  108. package/src/ui/StyledInputLabel.js +0 -19
  109. package/src/ui/TextField.js +0 -62
  110. package/storybook-static/0.d3bc3395610cf5d3ee94.manager.bundle.js +0 -1
  111. package/storybook-static/0.dd3d47f5.iframe.bundle.js +0 -1
  112. package/storybook-static/1.4e43f671.iframe.bundle.js +0 -3
  113. package/storybook-static/1.4e43f671.iframe.bundle.js.map +0 -1
  114. package/storybook-static/2.9a757207.iframe.bundle.js +0 -1
  115. package/storybook-static/4.8c311a6b48cad9f29317.manager.bundle.js +0 -2
  116. package/storybook-static/8.68cd1217.iframe.bundle.js.map +0 -1
  117. package/storybook-static/main.65cb2769.iframe.bundle.js +0 -1
  118. package/storybook-static/main.7e391cf7bf72b0d18ea5.manager.bundle.js +0 -1
  119. package/storybook-static/runtime~main.6e2e1544.iframe.bundle.js +0 -1
  120. package/storybook-static/vendors~main.d144d840.iframe.bundle.js +0 -3
  121. package/storybook-static/vendors~main.d144d840.iframe.bundle.js.map +0 -1
  122. package/storybook-static/vendors~main.f228d62e92b69563cefb.manager.bundle.js +0 -2
  123. package/yarn-error.log +0 -10910
@@ -0,0 +1,73 @@
1
+ import { Typography } from "@mui/material";
2
+ import React, { useState, useContext } from "react";
3
+ import { Box } from "../layout";
4
+ import { ThemeProvider } from "../themes/HawaProvider";
5
+
6
+ export const HawaRadio = (props) => {
7
+ const [value, setValue] = useState(props.defaultValue);
8
+
9
+ const { hawaTheme, themeName } = useContext(ThemeProvider);
10
+ const currentTheme = Object.keys(hawaTheme.radioSelector).find(
11
+ (tName) => tName.toLowerCase() === themeName?.toLowerCase()
12
+ );
13
+ let radioSelectorStyle = {};
14
+
15
+ if (currentTheme) {
16
+ radioSelectorStyle = {
17
+ ...hawaTheme.radioSelector[currentTheme],
18
+ "-moz-user-select": "-moz-none",
19
+ "-khtml-user-select": "none",
20
+ "-webkit-user-select": "none",
21
+ "-ms-user-select": "none",
22
+ "user-select": "none"
23
+ };
24
+ } else {
25
+ radioSelectorStyle = {
26
+ display: "flex",
27
+ flexDirection: "row",
28
+ justifyContent: "space-between",
29
+ alignItems: "center",
30
+ backgroundColor: "#F5F5F5",
31
+ margin: 0,
32
+
33
+ backgroundColor: "lightGrey",
34
+ color: "black",
35
+ padding: 10
36
+ };
37
+ }
38
+
39
+ return (
40
+ <Box horizontal maxWidth={"fit-content"}>
41
+ {props.options.map((singleOption) => {
42
+ return (
43
+ <div
44
+ key={singleOption.label}
45
+ onClick={() => {
46
+ setValue(singleOption.label);
47
+ if (props.handleChange) {
48
+ props.handleChange();
49
+ }
50
+ }}
51
+ style={{
52
+ ...radioSelectorStyle,
53
+ backgroundColor:
54
+ value.toLowerCase() === singleOption.label.toLowerCase()
55
+ ? currentTheme
56
+ ? hawaTheme.actionButton[currentTheme]?.backgroundColor
57
+ : "black"
58
+ : hawaTheme.layout[currentTheme]?.backgroundColor,
59
+ color:
60
+ value.toLowerCase() === singleOption.label.toLowerCase()
61
+ ? hawaTheme.actionButton[currentTheme]?.color
62
+ : currentTheme
63
+ ? hawaTheme.layout[currentTheme]?.color
64
+ : "black"
65
+ }}
66
+ >
67
+ <Typography>{singleOption.text}</Typography>
68
+ </div>
69
+ );
70
+ })}
71
+ </Box>
72
+ );
73
+ };
@@ -0,0 +1,71 @@
1
+ import React, { useContext } from "react";
2
+
3
+ import PropTypes from "prop-types";
4
+ import { ThemeProvider } from "../themes/HawaProvider";
5
+ import { Box } from "../layout";
6
+ import Checkbox from "@mui/material/Checkbox";
7
+ import TextField from "@mui/material/TextField";
8
+
9
+ export const HawaSettingsRow = (props) => {
10
+ const { hawaTheme, themeName } = useContext(ThemeProvider);
11
+ const currentTheme = Object.keys(hawaTheme.settingsRow).find(
12
+ (tName) => tName.toLowerCase() === themeName?.toLowerCase()
13
+ );
14
+ let settingsRowStyle = {};
15
+
16
+ if (currentTheme) {
17
+ settingsRowStyle = {
18
+ ...hawaTheme.settingsRow[currentTheme],
19
+ margin: props.last ? 0 : hawaTheme.settingsRow[currentTheme].margin,
20
+ marginTop: props.last ? hawaTheme.settingsRow[currentTheme].margin * 2 : 0
21
+ };
22
+ } else {
23
+ settingsRowStyle = {
24
+ display: "flex",
25
+ flexDirection: "row",
26
+ justifyContent: "space-between",
27
+ alignItems: "center",
28
+ backgroundColor: "#F5F5F5",
29
+ margin: 0,
30
+
31
+ backgroundColor: "lightGrey",
32
+ color: "black",
33
+ padding: 10
34
+ };
35
+ }
36
+
37
+ return (
38
+ <Box noColor>
39
+ {props.settingsType === "checkbox" && (
40
+ <div style={{ ...settingsRowStyle }}>
41
+ Checkbox Label <Checkbox />
42
+ </div>
43
+ )}
44
+ {props.settingsType === "text" && (
45
+ <div style={{ ...settingsRowStyle }}>
46
+ Text Label{" "}
47
+ <TextField
48
+ InputProps={{
49
+ style: {
50
+ ...hawaTheme.inputFields[currentTheme],
51
+ // borderRadius: 0,
52
+ // padding: 0,
53
+ // backgroundColor: "white",
54
+ height: 40
55
+ }
56
+ }}
57
+ style={{
58
+ padding: 0
59
+ }}
60
+ placeholder="test"
61
+ />
62
+ </div>
63
+ )}
64
+ </Box>
65
+ );
66
+ };
67
+
68
+ HawaSettingsRow.propTypes = {
69
+ type: PropTypes.oneOf(["text", "number", "password"]),
70
+ helperText: PropTypes.string
71
+ };
@@ -1,8 +1,8 @@
1
1
  import React from "react";
2
2
  import { Controller, useFormContext } from "react-hook-form";
3
- import { StyledInputLabel } from "../ui";
3
+ import { StyledInputLabel } from ".";
4
4
 
5
- export const StyledTextArea = (props) => {
5
+ export const HawaTextArea = (props) => {
6
6
  const { control } = useFormContext();
7
7
  const { name, rules, shouldUnregister, inputLabel, helperText } = props;
8
8
 
@@ -0,0 +1,110 @@
1
+ import React, { useContext } from "react";
2
+ import InputBase from "@mui/material/InputBase";
3
+ import Typography from "@mui/material/Typography";
4
+ import { styled, alpha } from "@mui/material/styles";
5
+ import PropTypes from "prop-types";
6
+ import { ThemeProvider } from "../themes/HawaProvider";
7
+ import { HawaInputLabel } from "./HawaInputLabel";
8
+ import { Controller, useFormContext } from "react-hook-form";
9
+
10
+ import { InputAdornment, TextField } from "@mui/material";
11
+ import { MailOutline } from "@mui/icons-material";
12
+
13
+ export const HawaTextField = (props) => {
14
+ const { control, register } = useFormContext();
15
+
16
+ const { hawaTheme, themeName } = useContext(ThemeProvider);
17
+ const currentTheme = Object.keys(hawaTheme.inputFields).find(
18
+ (tName) => tName.toLowerCase() === themeName?.toLowerCase()
19
+ );
20
+ let textFieldStyle = {};
21
+
22
+ if (currentTheme) {
23
+ textFieldStyle = {
24
+ ...hawaTheme.inputFields[currentTheme],
25
+ margin: props.last ? 0 : hawaTheme.inputFields[currentTheme].margin,
26
+ marginTop: props.last ? hawaTheme.inputFields[currentTheme].margin * 2 : 0
27
+ };
28
+ } else {
29
+ textFieldStyle = {
30
+ backgroundColor: "white"
31
+ };
32
+ }
33
+
34
+ const StyledTextField = styled(InputBase)(({ theme }) => {
35
+ return {
36
+ // "label + &": {
37
+ // marginTop: theme.spacing(3)
38
+ // },
39
+ "& .MuiInputBase-input": {
40
+ // backgroundColor: theme.palette.mode === "light" ? "#fcfcfb" : "#2b2b2b",
41
+ transition: theme.transitions.create([
42
+ "border-color",
43
+ "background-color",
44
+ "box-shadow"
45
+ ])
46
+
47
+ // backgroundColor: "red"
48
+ },
49
+
50
+ // position: "relative",
51
+ border: "1px solid #ced4da",
52
+ fontSize: 16,
53
+ // width: "auto",
54
+ padding: "10px 12px",
55
+ marginBottom: props.helperText ? 5 : 0,
56
+ paddingLeft: 10,
57
+ paddingRight: 10,
58
+ ...textFieldStyle
59
+ // backgroundColor: "green"
60
+ };
61
+ });
62
+
63
+ return (
64
+ <Controller
65
+ render={({ field }) => (
66
+ <>
67
+ {props.inputLabel && <HawaInputLabel label={props.inputLabel} />}
68
+
69
+ <StyledTextField
70
+ fullWidth={true}
71
+ // helperText={props.helperText}
72
+ type={props.type ?? "text"}
73
+ // placeholder={props.placeholder}
74
+ // inputProps={
75
+ // props.type === "number"
76
+ // ? {
77
+ // inputMode: "numeric",
78
+ // min: "0",
79
+ // max: "9999999",
80
+ // step: "0.01"
81
+ // }
82
+ // : {}
83
+ // }
84
+
85
+ defaultValue={props.defaultValue && ""}
86
+ value={props.value && ""}
87
+ {...props}
88
+ // {...field}
89
+ {...register(props.name)}
90
+ />
91
+ <Typography
92
+ variant="caption"
93
+ style={{ margin: 5, marginBottom: 0, color: "red" }}
94
+ >
95
+ {props.helperText}
96
+ </Typography>
97
+ </>
98
+ )}
99
+ name={props.name}
100
+ rules={props.rules}
101
+ control={control}
102
+ shouldUnregister={props.shouldUnregister}
103
+ />
104
+ );
105
+ };
106
+
107
+ HawaTextField.propTypes = {
108
+ type: PropTypes.oneOf(["text", "number", "password"]),
109
+ helperText: PropTypes.string
110
+ };
@@ -0,0 +1,29 @@
1
+ import React, { useContext } from "react";
2
+ import { styled, alpha } from "@mui/material/styles";
3
+ import PropTypes from "prop-types";
4
+ import { ThemeProvider } from "../themes/HawaProvider";
5
+ import Typography from "@mui/material/Typography";
6
+
7
+ export const HawaTypography = (props) => {
8
+ const { hawaTheme, themeName } = useContext(ThemeProvider);
9
+ const currentTheme = Object.keys(hawaTheme.typography).find(
10
+ (tName) => tName.toLowerCase() === themeName?.toLowerCase()
11
+ );
12
+ let typographyStyle = {};
13
+
14
+ if (currentTheme) {
15
+ typographyStyle = { ...hawaTheme.typography[currentTheme] };
16
+ } else {
17
+ typographyStyle = {
18
+ color: "black"
19
+ };
20
+ }
21
+
22
+ const StyledTypography = styled(Typography)(({ theme }) => {
23
+ return {
24
+ ...typographyStyle
25
+ };
26
+ });
27
+
28
+ return <StyledTypography {...props}>{props.children}</StyledTypography>;
29
+ };
@@ -0,0 +1,26 @@
1
+ import React from "react";
2
+ import { HawaLogoButton } from "./HawaLogoButton";
3
+
4
+ export const MadaButton = (props) => {
5
+ return (
6
+ <HawaLogoButton {...props}>
7
+ <img
8
+ src="https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/mada.png"
9
+ height={20}
10
+ />{" "}
11
+ <div style={{ width: 10 }} />
12
+ <p
13
+ style={{
14
+ color: "black",
15
+ fontSize: 14,
16
+ textAlign: "center",
17
+ letterSpacing: 0.4,
18
+ fontFamily: "Roboto",
19
+ fontWeight: 500
20
+ }}
21
+ >
22
+ {props.buttonText}
23
+ </p>
24
+ </HawaLogoButton>
25
+ );
26
+ };
@@ -0,0 +1,26 @@
1
+ import React from "react";
2
+ import { HawaLogoButton } from "./HawaLogoButton";
3
+
4
+ export const PayPalButton = (props) => {
5
+ return (
6
+ <HawaLogoButton {...props}>
7
+ <img
8
+ src="https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/paypal.png"
9
+ height={25}
10
+ />{" "}
11
+ <div style={{ width: 10 }} />
12
+ <p
13
+ style={{
14
+ color: "black",
15
+ fontSize: 14,
16
+ textAlign: "center",
17
+ letterSpacing: 0.4,
18
+ fontFamily: "Roboto",
19
+ fontWeight: 500
20
+ }}
21
+ >
22
+ {props.buttonText}
23
+ </p>
24
+ </HawaLogoButton>
25
+ );
26
+ };
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { Controller, useFormContext } from "react-hook-form";
3
- import FormControlLabel from "@material-ui/core/FormControlLabel";
4
- import Checkbox from "@material-ui/core/Checkbox";
3
+ import FormControlLabel from "@mui/material/FormControlLabel";
4
+ import Checkbox from "@mui/material/Checkbox";
5
5
 
6
6
  export const StyledRadioBox = (props) => {
7
7
  const { control } = useFormContext();
@@ -0,0 +1,26 @@
1
+ import React from "react";
2
+ import { HawaLogoButton } from "./HawaLogoButton";
3
+
4
+ export const STCPayButton = (props) => {
5
+ return (
6
+ <HawaLogoButton {...props}>
7
+ <img
8
+ src="https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/stc-pay.png"
9
+ height={20}
10
+ />
11
+ <div style={{ width: 10 }} />
12
+ <p
13
+ style={{
14
+ color: "black",
15
+ fontSize: 14,
16
+ textAlign: "center",
17
+ letterSpacing: 0.4,
18
+ fontFamily: "Roboto",
19
+ fontWeight: 500
20
+ }}
21
+ >
22
+ {props.buttonText}
23
+ </p>
24
+ </HawaLogoButton>
25
+ );
26
+ };
@@ -1,9 +1,9 @@
1
1
  import React from "react";
2
2
  import { Controller, useFormContext } from "react-hook-form";
3
- import FormHelperText from "@material-ui/core/FormHelperText";
4
- import FormControl from "@material-ui/core/FormControl";
5
- import MenuItem from "@material-ui/core/MenuItem";
6
- import Select from "@material-ui/core/Select";
3
+ import FormHelperText from "@mui/material/FormHelperText";
4
+ import FormControl from "@mui/material/FormControl";
5
+ import MenuItem from "@mui/material/MenuItem";
6
+ import Select from "@mui/material/Select";
7
7
 
8
8
  const MuiSelect = (props) => {
9
9
  const { name, options, required, error } = props;
@@ -1,5 +1,5 @@
1
1
  import React, { useState, useContext } from "react";
2
- import Tooltip from "@material-ui/core/Tooltip";
2
+ import Tooltip from "@mui/material/Tooltip";
3
3
 
4
4
  export const StyledTooltip = (props) => {
5
5
  const screenSize = {
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { makeStyles } from "@material-ui/core";
2
+ import { makeStyles } from "@mui/material/styles";
3
3
 
4
4
  const useStyles = makeStyles((theme) => ({
5
5
  panelsContainer: {
@@ -0,0 +1,27 @@
1
+ import React, { useContext } from "react";
2
+ import { ThemeProvider } from "../themes/HawaProvider";
3
+ import TwitterIcon from "@mui/icons-material/Twitter";
4
+ import Button from "@mui/material/Button";
5
+ import { styled, alpha, darken } from "@mui/material/styles";
6
+ import { HawaLogoButton } from "./HawaLogoButton";
7
+
8
+ export const TwitterButton = (props) => {
9
+ return (
10
+ <HawaLogoButton {...props}>
11
+ <TwitterIcon />
12
+ <div style={{ width: 10 }} />
13
+ <p
14
+ style={{
15
+ color: "black",
16
+ fontSize: 14,
17
+ textAlign: "center",
18
+ letterSpacing: 0.4,
19
+ fontFamily: "Roboto",
20
+ fontWeight: 500
21
+ }}
22
+ >
23
+ {props.buttonText}
24
+ </p>
25
+ </HawaLogoButton>
26
+ );
27
+ };
@@ -0,0 +1,26 @@
1
+ import React from "react";
2
+ import { HawaLogoButton } from "./HawaLogoButton";
3
+
4
+ export const VisaMasterButton = (props) => {
5
+ return (
6
+ <HawaLogoButton {...props}>
7
+ <img
8
+ src="https://sikka-images.s3.ap-southeast-1.amazonaws.com/payments/visa-master.png"
9
+ height={30}
10
+ />{" "}
11
+ <div style={{ width: 10 }} />
12
+ <p
13
+ style={{
14
+ color: "black",
15
+ fontSize: 14,
16
+ textAlign: "center",
17
+ letterSpacing: 0.4,
18
+ fontFamily: "Roboto",
19
+ fontWeight: 500
20
+ }}
21
+ >
22
+ {props.buttonText}
23
+ </p>
24
+ </HawaLogoButton>
25
+ );
26
+ };
@@ -0,0 +1,24 @@
1
+ import React from "react";
2
+ import WalletIcon from "@mui/icons-material/AccountBalanceWallet";
3
+ import { HawaLogoButton } from "./HawaLogoButton";
4
+
5
+ export const WalletButton = (props) => {
6
+ return (
7
+ <HawaLogoButton {...props}>
8
+ <WalletIcon />
9
+ <div style={{ width: 10 }} />
10
+ <p
11
+ style={{
12
+ color: "black",
13
+ fontSize: 14,
14
+ textAlign: "center",
15
+ letterSpacing: 0.4,
16
+ fontFamily: "Roboto",
17
+ fontWeight: 500
18
+ }}
19
+ >
20
+ {props.buttonText}
21
+ </p>
22
+ </HawaLogoButton>
23
+ );
24
+ };
package/src/ui/index.js CHANGED
@@ -1,13 +1,25 @@
1
- // export * from "./HawaProvider";
2
1
  export * from "./AdaptiveButton";
3
- export * from "./Checkbox";
4
- export * from "./RadioBox";
5
- export * from "./RadioSelector";
6
- export * from "./Row";
7
- export * from "./SelectedField";
8
- export * from "./TabPanel";
9
- export * from "./TextArea";
10
- export * from "./TextField";
11
- export * from "./StyledAlert";
12
- export * from "./StyledInputLabel";
13
2
  export * from "./ActionButton";
3
+ export * from "./HawaCheckbox";
4
+ export * from "./HawaRadio";
5
+ // export * from "./RadioSelector";
6
+ // export * from "./Row";
7
+ // export * from "./SelectedField";
8
+ export * from "./HawaSettingsRow";
9
+ export * from "./HawaLogoButton";
10
+ export * from "./HawaButton";
11
+ export * from "./HawaTextField";
12
+ export * from "./HawaInputLabel";
13
+ export * from "./HawaTypography";
14
+ export * from "./HawaAlert";
15
+
16
+ export * from "./GoogleButton";
17
+ export * from "./GithubButton";
18
+ export * from "./TwitterButton";
19
+ export * from "./VisaMasterButton";
20
+ export * from "./MadaButton";
21
+ export * from "./STCPayButton";
22
+ export * from "./PayPalButton";
23
+ export * from "./ApplePayButton";
24
+ export * from "./GooglePayButton";
25
+ export * from "./WalletButton";