@sikka/hawa 0.0.58 → 0.0.59

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 (40) hide show
  1. package/es/index.es.js +1 -1
  2. package/lib/index.js +1 -1
  3. package/package.json +3 -2
  4. package/src/blocks/Account/UserProfileForm.js +9 -5
  5. package/src/blocks/Account/UserSettingsForm.js +10 -5
  6. package/src/blocks/AuthForms/CodeConfirmation.js +5 -5
  7. package/src/blocks/AuthForms/NewPasswordForm.js +9 -5
  8. package/src/blocks/AuthForms/ResetPasswordForm.js +9 -5
  9. package/src/blocks/AuthForms/SignInForm.js +5 -10
  10. package/src/blocks/AuthForms/SignInPhone.js +4 -5
  11. package/src/blocks/AuthForms/SignUpForm.js +4 -10
  12. package/src/blocks/Misc/NotFound.js +1 -1
  13. package/src/blocks/Payment/ChargeWalletForm.js +9 -5
  14. package/src/blocks/Payment/CheckoutForm.js +6 -8
  15. package/src/blocks/Payment/Confirmation.js +19 -12
  16. package/src/blocks/Payment/CreditCardForm.js +6 -7
  17. package/src/blocks/Payment/Form/CForm.js +2 -12
  18. package/src/blocks/Payment/PayWithWallet.js +9 -5
  19. package/src/blocks/Payment/SelectPayment.js +4 -2
  20. package/src/elements/DragDropImages.js +2 -3
  21. package/src/elements/HawaButton.js +13 -6
  22. package/src/elements/HawaItemCard.js +38 -155
  23. package/src/elements/HawaPanelTabs.js +17 -69
  24. package/src/elements/HawaRadio.js +32 -0
  25. package/src/elements/HawaSettingsRow.js +2 -4
  26. package/src/elements/HawaTooltip.js +2 -41
  27. package/src/elements/index.js +0 -2
  28. package/src/layout/HawaContainer.js +12 -0
  29. package/src/layout/index.js +1 -0
  30. package/storybook-static/iframe.html +1 -1
  31. package/storybook-static/main.e6b8be7f.iframe.bundle.js +1 -0
  32. package/storybook-static/project.json +1 -1
  33. package/storybook-static/{vendors~main.8be71844.iframe.bundle.js → vendors~main.305b437b.iframe.bundle.js} +3 -3
  34. package/storybook-static/{vendors~main.8be71844.iframe.bundle.js.LICENSE.txt → vendors~main.305b437b.iframe.bundle.js.LICENSE.txt} +0 -0
  35. package/storybook-static/vendors~main.305b437b.iframe.bundle.js.map +1 -0
  36. package/src/elements/ActionButton.js +0 -14
  37. package/src/elements/RadioBox.js +0 -29
  38. package/src/elements/ResponsiveButton.js +0 -34
  39. package/storybook-static/main.89a5002b.iframe.bundle.js +0 -1
  40. package/storybook-static/vendors~main.8be71844.iframe.bundle.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.0.58",
3
+ "version": "0.0.59",
4
4
  "description": "UI Kit",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.es.js",
@@ -84,6 +84,7 @@
84
84
  "@storybook/manager-webpack4/webpack": "^5"
85
85
  },
86
86
  "dependencies": {
87
- "flowbite": "^1.5.3"
87
+ "flowbite": "^1.5.3",
88
+ "react-icons": "^4.6.0"
88
89
  }
89
90
  }
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
2
  import { HawaButton, HawaTextField } from "../../elements";
3
3
  import { Controller, FormProvider, useForm } from "react-hook-form";
4
+ import { HawaContainer } from "../../layout";
4
5
 
5
6
  export const UserProfileForm = (props) => {
6
7
  const methods = useForm();
@@ -12,7 +13,8 @@ export const UserProfileForm = (props) => {
12
13
  } = methods;
13
14
 
14
15
  return (
15
- <div className="flex flex-col divide-y divide-gray-300 bg-blue-300 rounded-xl p-4">
16
+ <HawaContainer>
17
+ {" "}
16
18
  <FormProvider {...methods}>
17
19
  <form onSubmit={handleSubmit(props.handleUpdateProfile)}>
18
20
  <Controller
@@ -140,12 +142,14 @@ export const UserProfileForm = (props) => {
140
142
  );
141
143
  })}
142
144
 
143
- <HawaButton fullWidth type="submit">
144
- {props.texts.updateProfile}
145
- </HawaButton>
145
+ <HawaButton
146
+ fullWidth
147
+ type="submit"
148
+ text={props.texts.updateProfile}
149
+ />
146
150
  </form>
147
151
  </FormProvider>
148
- </div>
152
+ </HawaContainer>
149
153
  );
150
154
  };
151
155
 
@@ -1,12 +1,17 @@
1
1
  import { HawaButton } from "../../elements";
2
+ import { HawaContainer } from "../../layout";
2
3
 
3
4
  export const UserSettingsForm = (props) => {
4
5
  return (
5
- <div className="flex flex-col divide-y divide-gray-300 bg-blue-300 rounded-xl p-4">
6
+ <HawaContainer>
7
+ {" "}
6
8
  {props.children}
7
- <HawaButton type="submit" fullWidth onClick={props.handleSaveSettings}>
8
- {props.saveSettingsText}
9
- </HawaButton>
10
- </div>
9
+ <HawaButton
10
+ text={props.saveSettingsText}
11
+ type="submit"
12
+ fullWidth
13
+ onClick={props.handleSaveSettings}
14
+ />
15
+ </HawaContainer>
11
16
  );
12
17
  };
@@ -2,6 +2,7 @@ import React from "react";
2
2
  import { HawaTextField, HawaAlert, HawaButton } from "../../elements";
3
3
  import { Controller, useForm } from "react-hook-form";
4
4
  import PropTypes from "prop-types";
5
+ import { HawaContainer } from "../../layout";
5
6
 
6
7
  export const CodeConfirmation = (props) => {
7
8
  const methods = useForm();
@@ -12,7 +13,8 @@ export const CodeConfirmation = (props) => {
12
13
  } = methods;
13
14
 
14
15
  return (
15
- <div className="flex flex-col divide-y divide-gray-300 bg-blue-300 rounded-xl p-4">
16
+ <HawaContainer>
17
+ {" "}
16
18
  {props.showError && (
17
19
  <HawaAlert
18
20
  title={props.errorTitle}
@@ -40,11 +42,9 @@ export const CodeConfirmation = (props) => {
40
42
  }}
41
43
  />
42
44
 
43
- <HawaButton type="submit" fullWidth>
44
- {props.texts.confirmText}
45
- </HawaButton>
45
+ <HawaButton type="submit" fullWidth text={props.texts.confirmText} />
46
46
  </form>
47
- </div>
47
+ </HawaContainer>
48
48
  );
49
49
  };
50
50
  CodeConfirmation.propTypes = {
@@ -2,6 +2,7 @@ import React, { useState } from "react";
2
2
  import { HawaTextField, HawaAlert, HawaButton } from "../../elements";
3
3
  import { Controller, FormProvider, useForm } from "react-hook-form";
4
4
  import PropTypes from "prop-types";
5
+ import { HawaContainer } from "../../layout";
5
6
 
6
7
  export const NewPasswordForm = (props) => {
7
8
  const [matchError, setMatchError] = useState(false);
@@ -22,7 +23,8 @@ export const NewPasswordForm = (props) => {
22
23
  };
23
24
 
24
25
  return (
25
- <div className="flex flex-col divide-y divide-gray-300 bg-blue-300 rounded-xl p-4">
26
+ <HawaContainer>
27
+ {" "}
26
28
  {matchError && (
27
29
  <HawaAlert text={props.texts.passwordMatchError} severity="error" />
28
30
  )}
@@ -68,13 +70,15 @@ export const NewPasswordForm = (props) => {
68
70
  }}
69
71
  />
70
72
 
71
- <HawaButton type="submit" fullWidth>
72
- {props.texts.updatePassword}
73
- </HawaButton>
73
+ <HawaButton
74
+ type="submit"
75
+ fullWidth
76
+ text={props.texts.updatePassword}
77
+ />
74
78
  </form>
75
79
  </FormProvider>
76
80
  )}
77
- </div>
81
+ </HawaContainer>
78
82
  );
79
83
  };
80
84
  NewPasswordForm.propTypes = {
@@ -2,6 +2,7 @@ import React from "react";
2
2
  import { Controller, useForm } from "react-hook-form";
3
3
  import { HawaButton, HawaTextField } from "../../elements";
4
4
  import PropTypes from "prop-types";
5
+ import { HawaContainer } from "../../layout";
5
6
 
6
7
  export const ResetPasswordForm = (props) => {
7
8
  const methods = useForm();
@@ -12,7 +13,8 @@ export const ResetPasswordForm = (props) => {
12
13
  control
13
14
  } = methods;
14
15
  return (
15
- <div className="flex flex-col divide-y divide-gray-300 bg-blue-300 rounded-xl p-4">
16
+ <HawaContainer>
17
+ {" "}
16
18
  {!props.sent ? (
17
19
  <form onSubmit={handleSubmit(props.handleResetPassword)}>
18
20
  <Controller
@@ -38,14 +40,16 @@ export const ResetPasswordForm = (props) => {
38
40
  }
39
41
  }}
40
42
  />
41
- <HawaButton fullWidth type="submit">
42
- {props.texts.resetPassword}
43
- </HawaButton>
43
+ <HawaButton
44
+ fullWidth
45
+ type="submit"
46
+ text={props.texts.resetPassword}
47
+ />{" "}
44
48
  </form>
45
49
  ) : (
46
50
  <div className="text-center">{props.texts.emailSentText}</div>
47
51
  )}
48
- </div>
52
+ </HawaContainer>
49
53
  );
50
54
  };
51
55
  ResetPasswordForm.propTypes = {
@@ -7,6 +7,7 @@ import {
7
7
  } from "../../elements";
8
8
  import { Controller, useForm } from "react-hook-form";
9
9
  import PropTypes from "prop-types";
10
+ import { HawaContainer } from "../../layout/HawaContainer";
10
11
 
11
12
  export const SignInForm = (props) => {
12
13
  const methods = useForm();
@@ -17,7 +18,7 @@ export const SignInForm = (props) => {
17
18
  } = methods;
18
19
 
19
20
  return (
20
- <div className="flex flex-col divide-y divide-gray-300 bg-blue-300 rounded-xl p-4">
21
+ <HawaContainer withDividers>
21
22
  <form onSubmit={handleSubmit(props.handleSignIn)}>
22
23
  {props.showError && (
23
24
  <HawaAlert
@@ -49,7 +50,6 @@ export const SignInForm = (props) => {
49
50
  }
50
51
  }}
51
52
  />
52
-
53
53
  <Controller
54
54
  control={control}
55
55
  name="password"
@@ -67,17 +67,13 @@ export const SignInForm = (props) => {
67
67
  )}
68
68
  rules={{ required: props.texts.passwordRequiredText }}
69
69
  />
70
-
71
70
  <div
72
- className="text-xs cursor-pointer w-fit"
71
+ className="text-xs cursor-pointer w-fit mb-3"
73
72
  onClick={props.handleForgotPassword}
74
73
  >
75
74
  {props.texts.forgotPasswordText}
76
75
  </div>
77
-
78
- <HawaButton fullWidth type="submit">
79
- {props.texts.signInText}
80
- </HawaButton>
76
+ <HawaButton fullWidth type="submit" text={props.texts.signInText} />{" "}
81
77
  <div className="font-semibold p-3 text-center text-sm">
82
78
  {props.texts.newUserText}{" "}
83
79
  <span
@@ -89,7 +85,6 @@ export const SignInForm = (props) => {
89
85
  </div>
90
86
  </form>
91
87
  {/* <Divider /> */}
92
-
93
88
  {/* <div className="divide-y divide-gray-900"></div> */}
94
89
  {props.viaGithub || props.viaGoogle || props.viaTwitter ? (
95
90
  <div className="flex flex-col ">
@@ -116,7 +111,7 @@ export const SignInForm = (props) => {
116
111
  )}
117
112
  </div>
118
113
  ) : null}
119
- </div>
114
+ </HawaContainer>
120
115
  );
121
116
  };
122
117
  SignInForm.propTypes = {
@@ -2,6 +2,7 @@ import { useState } from "react";
2
2
  import { Controller, useForm } from "react-hook-form";
3
3
  import { HawaButton } from "../../elements";
4
4
  import HawaPhoneInput from "../../elements/HawaPhoneInput";
5
+ import { HawaContainer } from "../../layout";
5
6
 
6
7
  export const SignInPhone = (props) => {
7
8
  const [phone, setPhone] = useState("");
@@ -12,7 +13,7 @@ export const SignInPhone = (props) => {
12
13
  control
13
14
  } = methods;
14
15
  return (
15
- <div className="flex flex-col divide-y divide-gray-300 bg-blue-300 rounded-xl p-4">
16
+ <HawaContainer>
16
17
  <form onSubmit={handleSubmit(props.onSubmit)}>
17
18
  <Controller
18
19
  control={control}
@@ -30,10 +31,8 @@ export const SignInPhone = (props) => {
30
31
  />
31
32
  )}
32
33
  />
33
- <HawaButton fullWidth type="submit">
34
- {props.SignInButtonText}
35
- </HawaButton>
34
+ <HawaButton fullWidth type="submit" text={props.SignInButtonText} />
36
35
  </form>
37
- </div>
36
+ </HawaContainer>
38
37
  );
39
38
  };
@@ -7,6 +7,7 @@ import {
7
7
  } from "../../elements";
8
8
  import PropTypes from "prop-types";
9
9
  import { Controller, FormProvider, useForm } from "react-hook-form";
10
+ import { HawaContainer } from "../../layout/HawaContainer";
10
11
 
11
12
  export const SignUpForm = (props) => {
12
13
  const methods = useForm();
@@ -17,7 +18,7 @@ export const SignUpForm = (props) => {
17
18
  } = methods;
18
19
 
19
20
  return (
20
- <div className="flex flex-col divide-y divide-gray-300 bg-blue-300 rounded-xl p-4">
21
+ <HawaContainer withDividers>
21
22
  {props.showError && (
22
23
  <HawaAlert
23
24
  title={props.errorTitle}
@@ -25,7 +26,6 @@ export const SignUpForm = (props) => {
25
26
  severity="error"
26
27
  />
27
28
  )}
28
-
29
29
  <FormProvider {...methods}>
30
30
  <form onSubmit={handleSubmit(props.handleSignUp)}>
31
31
  <Controller
@@ -46,7 +46,6 @@ export const SignUpForm = (props) => {
46
46
  required: props.texts.fullNameRequiredText
47
47
  }}
48
48
  />
49
-
50
49
  <Controller
51
50
  control={control}
52
51
  name="email"
@@ -87,13 +86,9 @@ export const SignUpForm = (props) => {
87
86
  )}
88
87
  rules={{ required: props.texts.passwordRequiredText }}
89
88
  />
90
-
91
- <HawaButton fullWidth type="submit">
92
- {props.texts.signUpText}
93
- </HawaButton>
89
+ <HawaButton fullWidth type="submit" text={props.texts.signUpText} />{" "}
94
90
  </form>
95
91
  </FormProvider>
96
-
97
92
  <div className="font-semibold p-3 text-center text-sm">
98
93
  {props.texts.existingUserText}{" "}
99
94
  <span
@@ -103,7 +98,6 @@ export const SignUpForm = (props) => {
103
98
  {props.texts.signInText}
104
99
  </span>
105
100
  </div>
106
-
107
101
  {props.viaGithub || props.viaGoogle || props.viaTwitter ? (
108
102
  <div style={{ display: "flex", flexDirection: "column" }}>
109
103
  {props.viaGoogle && (
@@ -129,7 +123,7 @@ export const SignUpForm = (props) => {
129
123
  )}
130
124
  </div>
131
125
  ) : null}
132
- </div>
126
+ </HawaContainer>
133
127
  );
134
128
  };
135
129
 
@@ -17,7 +17,7 @@ export const NotFound = (props) => {
17
17
  <div className="text-center">
18
18
  If you're lost please contact us help@sikka.io{" "}
19
19
  </div>
20
- <HawaButton fullWidth>Home</HawaButton>
20
+ <HawaButton fullWidth text={"Home"} />
21
21
  </div>
22
22
  </div>
23
23
  );
@@ -2,6 +2,7 @@ import React, { useState } from "react";
2
2
  import { HawaButton, HawaTextField } from "../../elements";
3
3
  import { Controller, FormProvider, useForm } from "react-hook-form";
4
4
  import PropTypes from "prop-types";
5
+ import { HawaContainer } from "../../layout";
5
6
 
6
7
  export const ChargeWalletForm = (props) => {
7
8
  const [walletAmount, setWalletAmount] = useState(0);
@@ -13,7 +14,8 @@ export const ChargeWalletForm = (props) => {
13
14
  } = methods;
14
15
 
15
16
  return (
16
- <div className="flex flex-col bg-blue-300 rounded-xl p-4">
17
+ <HawaContainer>
18
+ {" "}
17
19
  <div className="text-5xl font-extrabold text-center">
18
20
  {Number(walletAmount).toLocaleString("en") || "0"}
19
21
  <div className="text-sm font-normal">{props.currency || "SAR"}</div>
@@ -48,12 +50,14 @@ export const ChargeWalletForm = (props) => {
48
50
  }}
49
51
  />
50
52
 
51
- <HawaButton type="submit" fullWidth>
52
- {props.texts.chargeWallet}
53
- </HawaButton>
53
+ <HawaButton
54
+ type="submit"
55
+ fullWidth
56
+ text={props.texts.chargeWallet}
57
+ ></HawaButton>
54
58
  </form>
55
59
  </FormProvider>
56
- </div>
60
+ </HawaContainer>
57
61
  );
58
62
  };
59
63
 
@@ -7,6 +7,7 @@ import {
7
7
  } from "../../elements";
8
8
  import { Controller, FormProvider, useForm } from "react-hook-form";
9
9
  import PropTypes from "prop-types";
10
+ import { HawaContainer } from "../../layout";
10
11
 
11
12
  export const CheckoutForm = (props) => {
12
13
  let isArabic = props.lang === "ar";
@@ -32,7 +33,8 @@ export const CheckoutForm = (props) => {
32
33
  }
33
34
  };
34
35
  return (
35
- <div className="flex flex-col bg-blue-300 rounded-xl p-4">
36
+ <HawaContainer withDividers>
37
+ {" "}
36
38
  <div>
37
39
  <div className="text-xl text-center font-semibold mb-2">
38
40
  {props.texts.orderDetails}
@@ -44,7 +46,6 @@ export const CheckoutForm = (props) => {
44
46
  end={["Total", props.total]}
45
47
  />
46
48
  </div>
47
-
48
49
  <div>
49
50
  <div className="text-xl text-center font-semibold my-2">
50
51
  {props.texts.billingAddress}
@@ -111,7 +112,6 @@ export const CheckoutForm = (props) => {
111
112
  }
112
113
  }}
113
114
  />
114
-
115
115
  <div sx={containerStyle}>
116
116
  <Controller
117
117
  control={control}
@@ -184,7 +184,7 @@ export const CheckoutForm = (props) => {
184
184
  )}
185
185
  />
186
186
  </div>
187
- <div sx={containerStyle}>
187
+ <div className="mb-3">
188
188
  <Controller
189
189
  control={control}
190
190
  name="zipCode"
@@ -229,13 +229,11 @@ export const CheckoutForm = (props) => {
229
229
  )}
230
230
  />
231
231
  </div>
232
- <HawaButton type="submit" fullWidth>
233
- {props.texts.payNow}
234
- </HawaButton>
232
+ <HawaButton type="submit" fullWidth text={props.texts.payNow} />{" "}
235
233
  </form>
236
234
  </FormProvider>
237
235
  </div>
238
- </div>
236
+ </HawaContainer>
239
237
  );
240
238
  };
241
239
 
@@ -1,12 +1,14 @@
1
1
  import React from "react";
2
2
  import { HawaButton, HawaTable } from "../../elements";
3
3
  import PropTypes from "prop-types";
4
+ import { HawaContainer } from "../../layout";
4
5
 
5
6
  export const ConfirmationPage = (props) => {
6
7
  let isArabic = props.lang === "ar";
7
8
 
8
9
  return (
9
- <div className="flex flex-col divide-gray-300 bg-blue-300 divide-y rounded-xl p-4">
10
+ <HawaContainer withDividers>
11
+ {" "}
10
12
  <div className="text-3xl font-bold text-center py-5">
11
13
  {props.confirmationTitle}
12
14
  </div>
@@ -17,7 +19,6 @@ export const ConfirmationPage = (props) => {
17
19
  <div className="text-center">{props.texts.yourOrderNumber}</div>
18
20
  <div className="font-bold text-center">{props.orderNumber}</div>
19
21
  </div>
20
-
21
22
  <div className="py-5">
22
23
  <div className="text-xl font-semibold mb-3 text-center">
23
24
  {props.texts.orderDetails}
@@ -32,15 +33,21 @@ export const ConfirmationPage = (props) => {
32
33
  )}
33
34
  </div>
34
35
  <div className="flex flex-col py-5 justify-center items-center">
35
- <HawaButton fullWidth onClick={props.handlePrint}>
36
- {props.texts.print}
37
- </HawaButton>
38
- <HawaButton fullWidth onClick={props.handleHistory}>
39
- {props.texts.history}
40
- </HawaButton>
41
- <HawaButton fullWidth onClick={props.handleHome}>
42
- {props.texts.homePage}
43
- </HawaButton>
36
+ <HawaButton
37
+ fullWidth
38
+ onClick={props.handlePrint}
39
+ text={props.texts.print}
40
+ />{" "}
41
+ <HawaButton
42
+ fullWidth
43
+ onClick={props.handleHistory}
44
+ text={props.texts.history}
45
+ />{" "}
46
+ <HawaButton
47
+ fullWidth
48
+ onClick={props.handleHome}
49
+ text={props.texts.homePage}
50
+ />{" "}
44
51
  <div className="mt-5 mb-5 text-center text-sm">
45
52
  {props.texts.fasterPaymentNote}
46
53
  </div>
@@ -51,7 +58,7 @@ export const ConfirmationPage = (props) => {
51
58
  {props.texts.refundPolicy}
52
59
  </a>
53
60
  </div>
54
- </div>
61
+ </HawaContainer>
55
62
  );
56
63
  };
57
64
 
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
2
  import { HawaButton, HawaTextField } from "../../elements";
3
3
  import { Controller, useForm } from "react-hook-form";
4
+ import { HawaContainer } from "../../layout";
4
5
 
5
6
  export const CreditCardForm = (props) => {
6
7
  const methods = useForm();
@@ -11,7 +12,8 @@ export const CreditCardForm = (props) => {
11
12
  } = methods;
12
13
 
13
14
  return (
14
- <div className="flex flex-col bg-blue-300 rounded-xl p-4">
15
+ <HawaContainer>
16
+ {" "}
15
17
  <form onSubmit={handleSubmit(props.handle)}>
16
18
  <HawaTextField
17
19
  fullWidth
@@ -24,7 +26,6 @@ export const CreditCardForm = (props) => {
24
26
  }}
25
27
  helperText={errors.password?.message}
26
28
  />
27
-
28
29
  <Controller
29
30
  control={control}
30
31
  name="cardName"
@@ -76,15 +77,13 @@ export const CreditCardForm = (props) => {
76
77
  />
77
78
  )}
78
79
  />
79
-
80
80
  <HawaButton
81
81
  type="submit"
82
82
  fullWidth
83
83
  onClick={props.handlePayWithCreditCard}
84
- >
85
- {"Pay with Credit Card"}
86
- </HawaButton>
84
+ text={"Pay with Credit Card"}
85
+ />{" "}
87
86
  </form>
88
- </div>
87
+ </HawaContainer>
89
88
  );
90
89
  };
@@ -305,20 +305,10 @@ export default function CForm({
305
305
  )}
306
306
  </form>
307
307
  <HawaButton
308
- // color="primary"
309
308
  fullWidth
310
309
  onClick={handlePayfortForm}
311
- >
312
- {/* {loading ? (
313
- <CircularProgress
314
- variant="indeterminate"
315
- style={{ color: "white", display: "none" }}
316
- size={25}
317
- />
318
- ) : ( */}
319
- <span className="pay-new-btn-txt">{t("pay-now")}</span>
320
- {/* )} */}
321
- </HawaButton>
310
+ text={<span className="pay-new-btn-txt">{t("pay-now")}</span>}
311
+ />{" "}
322
312
  </div>
323
313
  </div>
324
314
  </div>
@@ -1,16 +1,20 @@
1
1
  import React from "react";
2
2
  import { HawaButton } from "../../elements";
3
+ import { HawaContainer } from "../../layout";
3
4
 
4
5
  export const PayWithWallet = (props) => {
5
6
  return (
6
- <div className="flex flex-col bg-blue-300 rounded-xl p-4">
7
+ <HawaContainer>
7
8
  <div className="text-5xl font-extrabold text-center">
8
9
  {props.walletBalance || "0"}
9
10
  <div className="text-sm font-normal">{props.currency || "SAR"}</div>
10
11
  </div>
11
- <HawaButton type="submit" fullWidth onClick={props.handlePayWithWallet}>
12
- {"Pay Now"}
13
- </HawaButton>
14
- </div>
12
+ <HawaButton
13
+ type="submit"
14
+ fullWidth
15
+ onClick={props.handlePayWithWallet}
16
+ text={"Pay Now"}
17
+ />
18
+ </HawaContainer>
15
19
  );
16
20
  };
@@ -1,10 +1,12 @@
1
1
  import React from "react";
2
2
  import PropTypes from "prop-types";
3
3
  import { HawaTypography, HawaLogoButton } from "../../elements";
4
+ import { HawaContainer } from "../../layout";
4
5
 
5
6
  export const SelectPayment = (props) => {
6
7
  return (
7
- <div className="flex flex-col w-1/3 bg-blue-300 rounded-xl p-4">
8
+ <HawaContainer>
9
+ {/* // <div className="flex flex-col w-1/3 bg-blue-300 rounded-xl p-4"> */}
8
10
  <HawaTypography align="center">Choose Payment Method</HawaTypography>
9
11
  {props.viaWallet && (
10
12
  <HawaLogoButton
@@ -55,7 +57,7 @@ export const SelectPayment = (props) => {
55
57
  onClick={props.handleApplePay}
56
58
  />
57
59
  )}
58
- </div>
60
+ </HawaContainer>
59
61
  );
60
62
  };
61
63
 
@@ -157,9 +157,8 @@ export const DragDropImages = ({
157
157
  e.stopPropagation();
158
158
  onClearFiles(acceptedFiles);
159
159
  }}
160
- >
161
- Clear All
162
- </HawaButton>
160
+ text={"Clear All"}
161
+ />
163
162
  )}
164
163
 
165
164
  {thumbs && showPreview ? (