@sikka/hawa 0.0.177 → 0.0.178

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.0.177",
3
+ "version": "0.0.178",
4
4
  "description": "UI Kit",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.es.js",
@@ -142,7 +142,11 @@ export const UserProfileForm: React.FunctionComponent<UserProfileFormTypes> = (
142
142
  )
143
143
  })}
144
144
 
145
- <HawaButton color="primary" width="full" type="submit">
145
+ <HawaButton
146
+ color="primary"
147
+ width="full"
148
+ // type="submit"
149
+ >
146
150
  {props.texts.updateProfile}
147
151
  </HawaButton>
148
152
  </form>
@@ -16,7 +16,7 @@ export const UserSettingsForm: React.FunctionComponent<
16
16
  {props.children}
17
17
  <HawaButton
18
18
  color="primary"
19
- type="submit"
19
+ // type="submit"
20
20
  width="full"
21
21
  onClick={props.handleSaveSettings}
22
22
  >
@@ -55,7 +55,11 @@ export const CodeConfirmation: React.FunctionComponent<
55
55
  }}
56
56
  />
57
57
 
58
- <HawaButton color="primary" type="submit" width="full">
58
+ <HawaButton
59
+ color="primary"
60
+ // type="submit"
61
+ width="full"
62
+ >
59
63
  {props.texts.confirmText}
60
64
  </HawaButton>
61
65
  </form>
@@ -87,7 +87,11 @@ export const NewPasswordForm: React.FunctionComponent<NewPasswordTypes> = (
87
87
  }}
88
88
  />
89
89
 
90
- <HawaButton color="primary" type="submit" width="full">
90
+ <HawaButton
91
+ color="primary"
92
+ // type="submit"
93
+ width="full"
94
+ >
91
95
  {props.texts.updatePassword}
92
96
  </HawaButton>
93
97
  </form>
@@ -53,7 +53,11 @@ export const ResetPasswordForm: React.FunctionComponent<ResetPasswordType> = (
53
53
  },
54
54
  }}
55
55
  />
56
- <HawaButton color="primary" width="full" type="submit">
56
+ <HawaButton
57
+ color="primary"
58
+ width="full"
59
+ // type="submit"
60
+ >
57
61
  {props.texts.resetPassword}
58
62
  </HawaButton>
59
63
  </form>
@@ -150,7 +150,7 @@ export const SignInForm: React.FunctionComponent<SignInFormTypes> = (props) => {
150
150
  color="primary"
151
151
  size="medium"
152
152
  width="full"
153
- type="submit"
153
+ // type="submit"
154
154
  // onClick={(e) => console.log("clicking")}
155
155
  >
156
156
  {props.texts.signInText}
@@ -57,7 +57,11 @@ export const SignInPhone: React.FunctionComponent<SignInPhoneTypes> = (
57
57
  }}
58
58
  />
59
59
  <div className="mt-2"></div>
60
- <HawaButton color="primary" width="full" type="submit">
60
+ <HawaButton
61
+ color="primary"
62
+ width="full"
63
+ // type="submit"
64
+ >
61
65
  {props.SignInButtonText}
62
66
  </HawaButton>
63
67
  </form>
@@ -283,7 +283,7 @@ export const SignUpForm: React.FunctionComponent<SignUpFormTypes> = (props) => {
283
283
  isLoading={props.isLoading}
284
284
  color="primary"
285
285
  width="full"
286
- type="submit"
286
+ // type="submit"
287
287
  >
288
288
  {props.texts.signUpText}
289
289
  </HawaButton>
@@ -60,7 +60,11 @@ export const ChargeWalletForm: React.FunctionComponent<ChargeWalletTypes> = (
60
60
  }}
61
61
  />
62
62
 
63
- <HawaButton color="primary" type="submit" width="full">
63
+ <HawaButton
64
+ color="primary"
65
+ // type="submit"
66
+ width="full"
67
+ >
64
68
  {props.texts.chargeWallet}
65
69
  </HawaButton>
66
70
  </form>
@@ -253,7 +253,11 @@ export const CheckoutForm: React.FunctionComponent<CheckoutFormTypes> = (
253
253
  )}
254
254
  />
255
255
  </div>
256
- <HawaButton color="primary" type="submit" width="full">
256
+ <HawaButton
257
+ color="primary"
258
+ // type="submit"
259
+ width="full"
260
+ >
257
261
  {props.texts.payNow}
258
262
  </HawaButton>
259
263
  </form>
@@ -91,7 +91,7 @@ export const CreditCardForm: React.FunctionComponent<CreditCardFormTypes> = (
91
91
  }}
92
92
  />
93
93
  <HawaButton
94
- type="submit"
94
+ // type="submit"
95
95
  width="full"
96
96
  color="primary"
97
97
  onClick={props.handlePayWithCreditCard}
@@ -17,7 +17,7 @@ export const PayWithWallet: React.FunctionComponent<PayWithWalletTypes> = (
17
17
  <div className="text-sm font-normal">{props.currency || "SAR"}</div>
18
18
  </div>
19
19
  <HawaButton
20
- type="submit"
20
+ // type="submit"
21
21
  width="full"
22
22
  color="primary"
23
23
  onClick={props.handlePayWithWallet}
@@ -84,7 +84,7 @@ export function HawaButton({
84
84
  >
85
85
  <button
86
86
  id={buttonID}
87
- type={props.type}
87
+ // type={props.type}
88
88
  className={
89
89
  disabled
90
90
  ? clsx(