@sikka/hawa 0.0.243 → 0.0.245

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 (229) hide show
  1. package/dist/styles.css +8 -3
  2. package/es/blocks/Account/HawaApiBox.d.ts +2 -2
  3. package/es/blocks/Account/UserProfileForm.d.ts +2 -2
  4. package/es/blocks/Account/UserSettingsForm.d.ts +2 -2
  5. package/es/blocks/AuthForms/AppLanding.d.ts +2 -2
  6. package/es/blocks/AuthForms/CodeConfirmation.d.ts +3 -3
  7. package/es/blocks/AuthForms/NewPasswordForm.d.ts +2 -2
  8. package/es/blocks/AuthForms/ResetPasswordForm.d.ts +2 -2
  9. package/es/blocks/AuthForms/SignInForm.d.ts +2 -2
  10. package/es/blocks/AuthForms/SignInPhone.d.ts +2 -2
  11. package/es/blocks/AuthForms/SignUpForm.d.ts +2 -2
  12. package/es/blocks/Misc/EmptyState.d.ts +7 -2
  13. package/es/blocks/Misc/LeadGenerator.d.ts +2 -2
  14. package/es/blocks/Misc/Newsletter.d.ts +2 -2
  15. package/es/blocks/Misc/NoPermission.d.ts +6 -2
  16. package/es/blocks/Misc/NotFound.d.ts +2 -2
  17. package/es/blocks/Misc/Testimonial.d.ts +2 -2
  18. package/es/blocks/Payment/ChargeWalletForm.d.ts +2 -2
  19. package/es/blocks/Payment/CheckoutForm.d.ts +2 -2
  20. package/es/blocks/Payment/Confirmation.d.ts +2 -2
  21. package/es/blocks/Payment/CreditCardForm.d.ts +2 -2
  22. package/es/blocks/Payment/PayWithWallet.d.ts +2 -2
  23. package/es/blocks/Payment/SelectPayment.d.ts +2 -2
  24. package/es/blocks/Pricing/ComparingPlans.d.ts +2 -2
  25. package/es/blocks/Pricing/PricingPlans.d.ts +2 -2
  26. package/es/blocks/Referral/ReferralAccount.d.ts +2 -2
  27. package/es/blocks/Referral/ReferralSettlement.d.ts +2 -2
  28. package/es/blocks/Referral/ReferralStats.d.ts +2 -2
  29. package/es/elements/ArrowCarousel.d.ts +2 -2
  30. package/es/elements/AutoCompleteField.d.ts +2 -2
  31. package/es/elements/BackToTop.d.ts +3 -3
  32. package/es/elements/Breadcrumb.d.ts +2 -4
  33. package/es/elements/DragDropImages.d.ts +2 -6
  34. package/es/elements/DraggableCard.d.ts +2 -2
  35. package/es/elements/HawaAccordion.d.ts +5 -11
  36. package/es/elements/HawaAdCard.d.ts +2 -2
  37. package/es/elements/HawaCardInput.d.ts +2 -2
  38. package/es/elements/HawaCheckbox.d.ts +2 -2
  39. package/es/elements/HawaChip.d.ts +9 -3
  40. package/es/elements/HawaColorPicker.d.ts +5 -3
  41. package/es/elements/HawaCopyrights.d.ts +8 -4
  42. package/es/elements/HawaDrawer.d.ts +2 -2
  43. package/es/elements/HawaIconCount.d.ts +5 -3
  44. package/es/elements/HawaItemCard.d.ts +10 -6
  45. package/es/elements/HawaLandingCard.d.ts +2 -2
  46. package/es/elements/HawaLogoButton.d.ts +2 -2
  47. package/es/elements/HawaMenu.d.ts +2 -2
  48. package/es/elements/HawaModal.d.ts +2 -2
  49. package/es/elements/HawaPanelTabs.d.ts +2 -2
  50. package/es/elements/HawaPhoneInput.d.ts +2 -2
  51. package/es/elements/HawaPinInput.d.ts +2 -2
  52. package/es/elements/HawaPricingCard.d.ts +2 -2
  53. package/es/elements/HawaRadio.d.ts +2 -2
  54. package/es/elements/HawaRange.d.ts +2 -2
  55. package/es/elements/HawaSearchBar.d.ts +2 -2
  56. package/es/elements/HawaSelect.d.ts +2 -2
  57. package/es/elements/HawaSettingsRow.d.ts +2 -2
  58. package/es/elements/HawaSpinner.d.ts +2 -2
  59. package/es/elements/HawaStats.d.ts +2 -2
  60. package/es/elements/HawaStepper.d.ts +2 -2
  61. package/es/elements/HawaStoreButtons.d.ts +2 -2
  62. package/es/elements/HawaSwitch.d.ts +2 -2
  63. package/es/elements/HawaTable.d.ts +2 -2
  64. package/es/elements/HawaTabs.d.ts +2 -2
  65. package/es/elements/HawaTextField.d.ts +3 -3
  66. package/es/elements/HawaTooltip.d.ts +3 -3
  67. package/es/elements/HawaTypography.d.ts +2 -2
  68. package/es/elements/InvoiceAccordion.d.ts +2 -2
  69. package/es/elements/SubsectionList.d.ts +2 -2
  70. package/es/elements/TabPanel.d.ts +2 -2
  71. package/es/elements/UsageCard.d.ts +2 -2
  72. package/es/elements/UserFeedback.d.ts +2 -2
  73. package/es/index.es.js +2 -2
  74. package/es/layout/HawaAppLayout.d.ts +1 -0
  75. package/es/layout/index.d.ts +0 -1
  76. package/lib/blocks/Account/HawaApiBox.d.ts +2 -2
  77. package/lib/blocks/Account/UserProfileForm.d.ts +2 -2
  78. package/lib/blocks/Account/UserSettingsForm.d.ts +2 -2
  79. package/lib/blocks/AuthForms/AppLanding.d.ts +2 -2
  80. package/lib/blocks/AuthForms/CodeConfirmation.d.ts +3 -3
  81. package/lib/blocks/AuthForms/NewPasswordForm.d.ts +2 -2
  82. package/lib/blocks/AuthForms/ResetPasswordForm.d.ts +2 -2
  83. package/lib/blocks/AuthForms/SignInForm.d.ts +2 -2
  84. package/lib/blocks/AuthForms/SignInPhone.d.ts +2 -2
  85. package/lib/blocks/AuthForms/SignUpForm.d.ts +2 -2
  86. package/lib/blocks/Misc/EmptyState.d.ts +7 -2
  87. package/lib/blocks/Misc/LeadGenerator.d.ts +2 -2
  88. package/lib/blocks/Misc/Newsletter.d.ts +2 -2
  89. package/lib/blocks/Misc/NoPermission.d.ts +6 -2
  90. package/lib/blocks/Misc/NotFound.d.ts +2 -2
  91. package/lib/blocks/Misc/Testimonial.d.ts +2 -2
  92. package/lib/blocks/Payment/ChargeWalletForm.d.ts +2 -2
  93. package/lib/blocks/Payment/CheckoutForm.d.ts +2 -2
  94. package/lib/blocks/Payment/Confirmation.d.ts +2 -2
  95. package/lib/blocks/Payment/CreditCardForm.d.ts +2 -2
  96. package/lib/blocks/Payment/PayWithWallet.d.ts +2 -2
  97. package/lib/blocks/Payment/SelectPayment.d.ts +2 -2
  98. package/lib/blocks/Pricing/ComparingPlans.d.ts +2 -2
  99. package/lib/blocks/Pricing/PricingPlans.d.ts +2 -2
  100. package/lib/blocks/Referral/ReferralAccount.d.ts +2 -2
  101. package/lib/blocks/Referral/ReferralSettlement.d.ts +2 -2
  102. package/lib/blocks/Referral/ReferralStats.d.ts +2 -2
  103. package/lib/elements/ArrowCarousel.d.ts +2 -2
  104. package/lib/elements/AutoCompleteField.d.ts +2 -2
  105. package/lib/elements/BackToTop.d.ts +3 -3
  106. package/lib/elements/Breadcrumb.d.ts +2 -4
  107. package/lib/elements/DragDropImages.d.ts +2 -6
  108. package/lib/elements/DraggableCard.d.ts +2 -2
  109. package/lib/elements/HawaAccordion.d.ts +5 -11
  110. package/lib/elements/HawaAdCard.d.ts +2 -2
  111. package/lib/elements/HawaCardInput.d.ts +2 -2
  112. package/lib/elements/HawaCheckbox.d.ts +2 -2
  113. package/lib/elements/HawaChip.d.ts +9 -3
  114. package/lib/elements/HawaColorPicker.d.ts +5 -3
  115. package/lib/elements/HawaCopyrights.d.ts +8 -4
  116. package/lib/elements/HawaDrawer.d.ts +2 -2
  117. package/lib/elements/HawaIconCount.d.ts +5 -3
  118. package/lib/elements/HawaItemCard.d.ts +10 -6
  119. package/lib/elements/HawaLandingCard.d.ts +2 -2
  120. package/lib/elements/HawaLogoButton.d.ts +2 -2
  121. package/lib/elements/HawaMenu.d.ts +2 -2
  122. package/lib/elements/HawaModal.d.ts +2 -2
  123. package/lib/elements/HawaPanelTabs.d.ts +2 -2
  124. package/lib/elements/HawaPhoneInput.d.ts +2 -2
  125. package/lib/elements/HawaPinInput.d.ts +2 -2
  126. package/lib/elements/HawaPricingCard.d.ts +2 -2
  127. package/lib/elements/HawaRadio.d.ts +2 -2
  128. package/lib/elements/HawaRange.d.ts +2 -2
  129. package/lib/elements/HawaSearchBar.d.ts +2 -2
  130. package/lib/elements/HawaSelect.d.ts +2 -2
  131. package/lib/elements/HawaSettingsRow.d.ts +2 -2
  132. package/lib/elements/HawaSpinner.d.ts +2 -2
  133. package/lib/elements/HawaStats.d.ts +2 -2
  134. package/lib/elements/HawaStepper.d.ts +2 -2
  135. package/lib/elements/HawaStoreButtons.d.ts +2 -2
  136. package/lib/elements/HawaSwitch.d.ts +2 -2
  137. package/lib/elements/HawaTable.d.ts +2 -2
  138. package/lib/elements/HawaTabs.d.ts +2 -2
  139. package/lib/elements/HawaTextField.d.ts +3 -3
  140. package/lib/elements/HawaTooltip.d.ts +3 -3
  141. package/lib/elements/HawaTypography.d.ts +2 -2
  142. package/lib/elements/InvoiceAccordion.d.ts +2 -2
  143. package/lib/elements/SubsectionList.d.ts +2 -2
  144. package/lib/elements/TabPanel.d.ts +2 -2
  145. package/lib/elements/UsageCard.d.ts +2 -2
  146. package/lib/elements/UserFeedback.d.ts +2 -2
  147. package/lib/index.js +2 -2
  148. package/lib/layout/HawaAppLayout.d.ts +1 -0
  149. package/lib/layout/index.d.ts +0 -1
  150. package/package.json +1 -1
  151. package/src/blocks/Account/HawaApiBox.tsx +2 -4
  152. package/src/blocks/Account/UserProfileForm.tsx +2 -4
  153. package/src/blocks/Account/UserSettingsForm.tsx +2 -6
  154. package/src/blocks/AuthForms/AppLanding.tsx +2 -2
  155. package/src/blocks/AuthForms/CodeConfirmation.tsx +3 -5
  156. package/src/blocks/AuthForms/NewPasswordForm.tsx +2 -4
  157. package/src/blocks/AuthForms/ResetPasswordForm.tsx +2 -4
  158. package/src/blocks/AuthForms/SignInForm.tsx +2 -2
  159. package/src/blocks/AuthForms/SignInPhone.tsx +2 -4
  160. package/src/blocks/AuthForms/SignUpForm.tsx +2 -2
  161. package/src/blocks/Misc/EmptyState.tsx +15 -7
  162. package/src/blocks/Misc/LeadGenerator.tsx +4 -6
  163. package/src/blocks/Misc/Newsletter.tsx +3 -3
  164. package/src/blocks/Misc/NoPermission.tsx +13 -10
  165. package/src/blocks/Misc/NotFound.tsx +4 -4
  166. package/src/blocks/Misc/Testimonial.tsx +25 -33
  167. package/src/blocks/Payment/ChargeWalletForm.tsx +9 -10
  168. package/src/blocks/Payment/CheckoutForm.tsx +20 -22
  169. package/src/blocks/Payment/Confirmation.tsx +7 -9
  170. package/src/blocks/Payment/CreditCardForm.tsx +2 -4
  171. package/src/blocks/Payment/PayWithWallet.tsx +2 -4
  172. package/src/blocks/Payment/SelectPayment.tsx +2 -4
  173. package/src/blocks/Pricing/ComparingPlans.tsx +4 -6
  174. package/src/blocks/Pricing/PricingPlans.tsx +2 -4
  175. package/src/blocks/Referral/ReferralAccount.tsx +2 -2
  176. package/src/blocks/Referral/ReferralSettlement.tsx +14 -7
  177. package/src/blocks/Referral/ReferralStats.tsx +2 -2
  178. package/src/elements/ArrowCarousel.tsx +2 -2
  179. package/src/elements/AutoCompleteField.tsx +5 -7
  180. package/src/elements/BackToTop.tsx +3 -3
  181. package/src/elements/Breadcrumb.tsx +3 -6
  182. package/src/elements/DragDropImages.tsx +3 -7
  183. package/src/elements/DraggableCard.tsx +2 -4
  184. package/src/elements/HawaAccordion.tsx +6 -14
  185. package/src/elements/HawaAdCard.tsx +2 -5
  186. package/src/elements/HawaCardInput.tsx +1 -1
  187. package/src/elements/HawaCheckbox.tsx +2 -4
  188. package/src/elements/HawaChip.tsx +10 -4
  189. package/src/elements/HawaColorPicker.tsx +7 -7
  190. package/src/elements/HawaCopyrights.tsx +8 -6
  191. package/src/elements/HawaDatepicker.tsx +1 -1
  192. package/src/elements/HawaDrawer.tsx +3 -3
  193. package/src/elements/HawaIconCount.tsx +5 -5
  194. package/src/elements/HawaItemCard.tsx +10 -10
  195. package/src/elements/HawaLandingCard.tsx +3 -3
  196. package/src/elements/HawaLogoButton.tsx +2 -4
  197. package/src/elements/HawaMenu.tsx +4 -4
  198. package/src/elements/HawaModal.tsx +2 -2
  199. package/src/elements/HawaPanelTabs.tsx +2 -4
  200. package/src/elements/HawaPhoneInput.tsx +3 -5
  201. package/src/elements/HawaPinInput.tsx +2 -2
  202. package/src/elements/HawaPricingCard.tsx +2 -2
  203. package/src/elements/HawaRadio.tsx +2 -2
  204. package/src/elements/HawaRange.tsx +3 -3
  205. package/src/elements/HawaSearchBar.tsx +2 -4
  206. package/src/elements/HawaSelect.tsx +5 -5
  207. package/src/elements/HawaSettingsRow.tsx +2 -2
  208. package/src/elements/HawaSnackbar.tsx +2 -2
  209. package/src/elements/HawaSpinner.tsx +2 -5
  210. package/src/elements/HawaStats.tsx +2 -2
  211. package/src/elements/HawaStepper.tsx +2 -2
  212. package/src/elements/HawaStoreButtons.tsx +3 -5
  213. package/src/elements/HawaSwitch.tsx +2 -5
  214. package/src/elements/HawaTable.tsx +5 -3
  215. package/src/elements/HawaTabs.tsx +4 -4
  216. package/src/elements/HawaTextField.tsx +4 -4
  217. package/src/elements/HawaTooltip.tsx +3 -3
  218. package/src/elements/HawaTypography.tsx +2 -4
  219. package/src/elements/InvoiceAccordion.tsx +2 -4
  220. package/src/elements/SubsectionList.tsx +3 -5
  221. package/src/elements/TabPanel.tsx +2 -2
  222. package/src/elements/UsageCard.tsx +2 -2
  223. package/src/elements/UserFeedback.tsx +2 -4
  224. package/src/layout/HawaAppLayout.tsx +86 -58
  225. package/src/layout/index.ts +0 -1
  226. package/src/styles.css +8 -3
  227. package/es/layout/SimpleGrid.d.ts +0 -10
  228. package/lib/layout/SimpleGrid.d.ts +0 -10
  229. package/src/layout/SimpleGrid.tsx +0 -41
@@ -19,6 +19,7 @@ type HawaAppLayoutTypes = {
19
19
  email?: string;
20
20
  drawerSize?: "sm" | "md" | "large";
21
21
  profileMenuItems?: MenuItems[][];
22
+ onSettingsClick?: () => void;
22
23
  };
23
24
  type MenuItems = {
24
25
  icon?: JSX.Element;
@@ -3,6 +3,5 @@ export * from "./HawaBottomAppBar";
3
3
  export * from "./HawaSiteLayout";
4
4
  export * from "./HawaAppLayout";
5
5
  export * from "./HawaContainer";
6
- export * from "./SimpleGrid";
7
6
  export * from "./AppSidebar";
8
7
  export * from "./Footer";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.0.243",
3
+ "version": "0.0.245",
4
4
  "description": "SaaS Oriented UI Kit",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.es.js",
@@ -1,13 +1,11 @@
1
- import React from "react"
1
+ import { FC } from "react"
2
2
 
3
3
  type HawaApiBoxTypes = {
4
4
  lang?: any
5
5
  onClick?: any
6
6
  buttonText?: any
7
7
  }
8
- export const HawaApiBox: React.FunctionComponent<HawaApiBoxTypes> = (
9
- props
10
- ) => {
8
+ export const HawaApiBox: FC<HawaApiBoxTypes> = (props) => {
11
9
  let isArabic = props.lang === "ar"
12
10
  let logoElement: any = ""
13
11
  return <div>test</div>
@@ -1,4 +1,4 @@
1
- import React from "react"
1
+ import { FC } from "react"
2
2
  import { HawaButton, HawaPhoneInput, HawaTextField } from "../../elements"
3
3
  import { Controller, FormProvider, useForm } from "react-hook-form"
4
4
  import { HawaContainer } from "../../layout"
@@ -9,9 +9,7 @@ type UserProfileFormTypes = {
9
9
  handleUpdateProfile: any
10
10
  }
11
11
 
12
- export const UserProfileForm: React.FunctionComponent<UserProfileFormTypes> = (
13
- props
14
- ) => {
12
+ export const UserProfileForm: FC<UserProfileFormTypes> = (props) => {
15
13
  const methods = useForm()
16
14
  const { inputs } = props
17
15
  const {
@@ -1,6 +1,4 @@
1
- import React from "react"
2
- import { HawaButton } from "../../elements"
3
- import { HawaContainer } from "../../layout"
1
+ import { FC } from "react"
4
2
 
5
3
  type UserSettingsFormTypes = {
6
4
  children: any
@@ -9,9 +7,7 @@ type UserSettingsFormTypes = {
9
7
  blockTitle?: string
10
8
  }
11
9
 
12
- export const UserSettingsForm: React.FunctionComponent<
13
- UserSettingsFormTypes
14
- > = (props) => {
10
+ export const UserSettingsForm: FC<UserSettingsFormTypes> = (props) => {
15
11
  return (
16
12
  <div>
17
13
  <div className="mb-2 text-sm font-bold">{props.blockTitle}</div>
@@ -1,4 +1,4 @@
1
- import React from "react"
1
+ import { FC } from "react"
2
2
  import { HawaButton } from "../../elements"
3
3
  import { HawaContainer } from "../../layout/HawaContainer"
4
4
 
@@ -13,7 +13,7 @@ type AppLandingTypes = {
13
13
  }
14
14
  size: "small" | "normal" | "full"
15
15
  }
16
- export const AppLanding: React.FunctionComponent<AppLandingTypes> = (props) => {
16
+ export const AppLanding: FC<AppLandingTypes> = (props) => {
17
17
  return (
18
18
  <HawaContainer maxWidth={props.size}>
19
19
  {props.handleSignIn && (
@@ -1,4 +1,4 @@
1
- import React, { useState } from "react"
1
+ import { useState, FC } from "react"
2
2
  import { HawaAlert, HawaButton, HawaPinInput } from "../../elements"
3
3
  import { HawaContainer } from "../../layout"
4
4
 
@@ -15,16 +15,14 @@ type TConfirmation = {
15
15
  codePlaceholder: string
16
16
  codeRequiredText: string
17
17
  confirm: string
18
- cancel
18
+ cancel: string
19
19
  }
20
20
  phoneNumber?: string
21
21
  submitConfirmation?: any
22
22
  handleSignIn?: any
23
23
  }
24
24
 
25
- export const CodeConfirmation: React.FunctionComponent<TConfirmation> = (
26
- props
27
- ) => {
25
+ export const CodeConfirmation: FC<TConfirmation> = (props) => {
28
26
  const [pins, setPins] = useState(null)
29
27
  return (
30
28
  <HawaContainer>
@@ -1,4 +1,4 @@
1
- import React, { useState } from "react"
1
+ import { useState, FC } from "react"
2
2
  import { HawaTextField, HawaAlert, HawaButton } from "../../elements"
3
3
  import { Controller, FormProvider, useForm } from "react-hook-form"
4
4
  import { HawaContainer } from "../../layout"
@@ -19,9 +19,7 @@ type NewPasswordTypes = {
19
19
  }
20
20
  }
21
21
 
22
- export const NewPasswordForm: React.FunctionComponent<NewPasswordTypes> = (
23
- props
24
- ) => {
22
+ export const NewPasswordForm: FC<NewPasswordTypes> = (props) => {
25
23
  const [matchError, setMatchError] = useState(false)
26
24
  const methods = useForm()
27
25
  const {
@@ -1,4 +1,4 @@
1
- import React from "react"
1
+ import { FC } from "react"
2
2
  import { Controller, useForm } from "react-hook-form"
3
3
  import { HawaButton, HawaTextField } from "../../elements"
4
4
  import { HawaContainer } from "../../layout"
@@ -19,9 +19,7 @@ type ResetPasswordType = {
19
19
  }
20
20
  }
21
21
 
22
- export const ResetPasswordForm: React.FunctionComponent<ResetPasswordType> = (
23
- props
24
- ) => {
22
+ export const ResetPasswordForm: FC<ResetPasswordType> = (props) => {
25
23
  const methods = useForm()
26
24
  const {
27
25
  formState: { errors },
@@ -1,4 +1,4 @@
1
- import React from "react"
1
+ import { FC } from "react"
2
2
  import {
3
3
  HawaTextField,
4
4
  HawaLogoButton,
@@ -9,7 +9,7 @@ import {
9
9
  import { Controller, useForm } from "react-hook-form"
10
10
  import { HawaContainer } from "../../layout"
11
11
 
12
- export const SignInForm: React.FunctionComponent<SignInFormTypes> = (props) => {
12
+ export const SignInForm: FC<SignInFormTypes> = (props) => {
13
13
  const {
14
14
  formState: { errors },
15
15
  handleSubmit,
@@ -1,4 +1,4 @@
1
- import React, { useState } from "react"
1
+ import { useState, FC } from "react"
2
2
  import { Controller, useForm } from "react-hook-form"
3
3
  import { HawaButton, HawaPhoneInput } from "../../elements"
4
4
  import { HawaContainer } from "../../layout"
@@ -14,9 +14,7 @@ type SignInPhoneTypes = {
14
14
  handleSignIn: any
15
15
  }
16
16
 
17
- export const SignInPhone: React.FunctionComponent<SignInPhoneTypes> = (
18
- props
19
- ) => {
17
+ export const SignInPhone: FC<SignInPhoneTypes> = (props) => {
20
18
  const methods = useForm()
21
19
  const {
22
20
  formState: { errors },
@@ -1,4 +1,4 @@
1
- import React from "react"
1
+ import { FC } from "react"
2
2
  import {
3
3
  HawaTextField,
4
4
  HawaLogoButton,
@@ -63,7 +63,7 @@ type SignUpFormTypes = {
63
63
  isLoading?: boolean
64
64
  }
65
65
 
66
- export const SignUpForm: React.FunctionComponent<SignUpFormTypes> = (props) => {
66
+ export const SignUpForm: FC<SignUpFormTypes> = (props) => {
67
67
  const methods = useForm()
68
68
  const {
69
69
  formState: { errors },
@@ -1,26 +1,34 @@
1
- import React from "react"
1
+ import { FC } from "react"
2
2
  import { HawaButton } from "../../elements"
3
3
  import { HawaContainer } from "../../layout"
4
4
  import { FaCheck } from "react-icons/fa"
5
5
 
6
6
  type TEmptyState = {
7
7
  variant?: "outlined" | "contained" | "neobrutalism"
8
+ onActionClick: () => void
9
+ texts: {
10
+ youreCaughtUp?: string
11
+ actionText?: string
12
+ }
8
13
  }
9
14
 
10
- export const EmptyState: React.FunctionComponent<TEmptyState> = ({
15
+ export const EmptyState: FC<TEmptyState> = ({
11
16
  variant = "contained",
17
+ texts,
18
+ onActionClick,
12
19
  }) => {
13
20
  return (
14
- <HawaContainer variant={variant} centered={true}>
21
+ <HawaContainer variant={variant} centered={true} maxWidth="small">
15
22
  <div className="flex flex-col items-center justify-center text-center dark:text-white">
16
23
  <div className="flex h-10 w-10 flex-col items-center justify-center rounded-3xl bg-buttonPrimary-300 text-6xl font-bold">
17
24
  <FaCheck size={20} color="white" />
18
25
  </div>
19
- <div className="m-2 text-xl font-bold">You're all caught up</div>
20
- <div>If you're lost, please contact us help@sikka.io </div>
26
+ <div className="m-2 text-xl font-bold">
27
+ {texts?.youreCaughtUp ?? "You're all caught up"}
28
+ </div>
21
29
  </div>
22
- <HawaButton color="primary" width="full">
23
- Action
30
+ <HawaButton color="primary" width="half" onClick={() => onActionClick()}>
31
+ {texts?.actionText ?? "Go Home"}
24
32
  </HawaButton>
25
33
  </HawaContainer>
26
34
  )
@@ -1,4 +1,4 @@
1
- import React from "react"
1
+ import { FC } from "react"
2
2
  import { HawaButton, HawaTextField } from "../../elements"
3
3
  import { HawaContainer } from "../../layout"
4
4
 
@@ -12,14 +12,14 @@ type TLeadGenerator = {
12
12
  handleNewsletterSub: (e: string) => void
13
13
  }
14
14
 
15
- export const LeadGenerator: React.FunctionComponent<TLeadGenerator> = ({
15
+ export const LeadGenerator: FC<TLeadGenerator> = ({
16
16
  variant = "contained",
17
17
  texts,
18
18
  handleNewsletterSub,
19
19
  }) => {
20
20
  return (
21
21
  <HawaContainer variant={variant}>
22
- <div className="p-0 mb-4 pt-0">
22
+ <div className="mb-4 p-0 pt-0">
23
23
  <h1 className="font-bold">{texts?.title}</h1>
24
24
  <span>{texts?.subtitle}</span>
25
25
  </div>
@@ -37,9 +37,7 @@ export const LeadGenerator: React.FunctionComponent<TLeadGenerator> = ({
37
37
  placeholder={"example@sikka.io"}
38
38
  margin="none"
39
39
  />
40
- <HawaButton size="full" margins="none">
41
- {texts?.submit ?? "Submit"}
42
- </HawaButton>
40
+ <HawaButton margins="none">{texts?.submit ?? "Submit"}</HawaButton>
43
41
  </form>
44
42
  </HawaContainer>
45
43
  )
@@ -1,4 +1,4 @@
1
- import React from "react"
1
+ import { FC } from "react"
2
2
  import { HawaButton, HawaTextField } from "../../elements"
3
3
  import { HawaContainer } from "../../layout"
4
4
 
@@ -12,7 +12,7 @@ type TNewsletter = {
12
12
  handleNewsletterSub: (e: string) => void
13
13
  }
14
14
 
15
- export const Newsletter: React.FunctionComponent<TNewsletter> = ({
15
+ export const Newsletter: FC<TNewsletter> = ({
16
16
  variant = "contained",
17
17
  texts,
18
18
  handleNewsletterSub,
@@ -41,7 +41,7 @@ export const Newsletter: React.FunctionComponent<TNewsletter> = ({
41
41
  placeholder={"example@sikka.io"}
42
42
  margin="none"
43
43
  />
44
- <HawaButton size="full" margins="none">
44
+ <HawaButton margins="none">
45
45
  {texts?.submit ?? "Submit"}
46
46
  </HawaButton>
47
47
  </form>
@@ -1,14 +1,18 @@
1
- import React from "react"
2
- import { HawaButton } from "../../elements"
1
+ import { FC } from "react"
3
2
  import { HawaContainer } from "../../layout"
4
- import { FaLock } from "react-icons/fa"
3
+ import { FaLock } from "react-icons/fa"
5
4
 
6
5
  type TNoPermission = {
7
6
  variant?: "outlined" | "contained" | "neobrutalism"
7
+ texts?: {
8
+ title: string
9
+ subtitle: string
10
+ }
8
11
  }
9
12
 
10
- export const NoPermission: React.FunctionComponent<TNoPermission> = ({
13
+ export const NoPermission: FC<TNoPermission> = ({
11
14
  variant = "contained",
15
+ texts,
12
16
  }) => {
13
17
  return (
14
18
  <HawaContainer variant={variant} centered={true}>
@@ -16,15 +20,14 @@ export const NoPermission: React.FunctionComponent<TNoPermission> = ({
16
20
  <div className="flex h-10 w-10 flex-col items-center justify-center rounded-3xl bg-buttonPrimary-300 text-6xl font-bold">
17
21
  <FaLock size={20} color="white" />
18
22
  </div>
19
- <div className="m-2 text-xl font-bold">You don't have permission</div>
23
+ <div className="m-2 text-xl font-bold">
24
+ {texts?.title ?? "You don't have permission"}
25
+ </div>
20
26
  <div>
21
- If you think this is a problem please contact your administrator or
22
- our customer support
27
+ {texts?.subtitle ??
28
+ "If you think this is a problem please contact your administrator or our customer support"}
23
29
  </div>
24
30
  </div>
25
- {/* <HawaButton color="primary" width="full">
26
- Action
27
- </HawaButton> */}
28
31
  </HawaContainer>
29
32
  )
30
33
  }
@@ -1,4 +1,4 @@
1
- import React from "react"
1
+ import { FC } from "react"
2
2
  import { HawaButton } from "../../elements"
3
3
  import { HawaContainer } from "../../layout"
4
4
 
@@ -11,7 +11,7 @@ type NotFoundTypes = {
11
11
  }
12
12
  }
13
13
 
14
- export const NotFound: React.FunctionComponent<NotFoundTypes> = ({
14
+ export const NotFound: FC<NotFoundTypes> = ({
15
15
  variant = "contained",
16
16
  texts,
17
17
  }) => {
@@ -22,10 +22,10 @@ export const NotFound: React.FunctionComponent<NotFoundTypes> = ({
22
22
  <div className="m-2 text-center text-xl font-bold ">
23
23
  {texts?.pageNotFound ?? "Page Not Found"}
24
24
  </div>
25
- <div className="text-center ">
25
+ <div className="text-center mb-4">
26
26
  {texts?.ifLost ?? "If you're lost please contact us help@sikka.io"}
27
27
  </div>
28
- <HawaButton color="primary" width="full">
28
+ <HawaButton color="primary" width="full" margins="none">
29
29
  {texts?.home ?? "Home"}
30
30
  </HawaButton>
31
31
  </div>
@@ -1,52 +1,44 @@
1
- import React from "react"
2
- import { HawaButton } from "../../elements"
3
- import { HawaContainer } from "../../layout"
4
- import { FaCheck } from "react-icons/fa"
1
+ import { FC } from "react"
2
+
5
3
  type TEmptyState = {
6
4
  variant?: "outlined" | "contained" | "neobrutalism"
7
5
  }
8
6
 
9
- export const Testimonial: React.FunctionComponent<TEmptyState> = ({
10
- variant = "contained",
11
- }) => {
7
+ export const Testimonial: FC<TEmptyState> = (props) => {
12
8
  return (
13
- <div
14
- className="flex flex-col gap-2 rounded border-2 border-gray-200 bg-white p-4"
15
- // style={{ width: "249.708px", marginRight: "24px" }}
16
- >
17
- <svg width="48" height="48" viewBox="0 0 48 48" fill="none">
18
- <rect width="48" height="48" rx="24" fill="#45BE8B"></rect>
19
- <path
20
- d="M14.1412 22.4427L17.5803 16.5199C17.7671 16.1981 18.1112 16 18.4834 16H20.8581C21.653 16 22.1565 16.8528 21.7725 17.5488L19.3042 22.0225C19.2202 22.1747 19.1762 22.3458 19.1762 22.5196C19.1762 23.0879 19.6369 23.5486 20.2052 23.5486H21.5827C22.1594 23.5486 22.627 24.0162 22.627 24.5929V31.347C22.627 31.9237 22.1594 32.3913 21.5827 32.3913H15.0443C14.4676 32.3913 14 31.9237 14 31.347V22.9671C14 22.7829 14.0487 22.602 14.1412 22.4427Z"
21
- fill="#FFFFFF"
22
- ></path>
23
- <path
24
- d="M25.356 22.4427L28.7951 16.5199C28.982 16.1981 29.326 16 29.6982 16H32.0729C32.8679 16 33.3713 16.8528 32.9873 17.5488L30.5191 22.0225C30.4351 22.1747 30.391 22.3458 30.391 22.5196C30.391 23.0879 30.8518 23.5486 31.4201 23.5486H32.7975C33.3743 23.5486 33.8418 24.0162 33.8418 24.5929V31.347C33.8418 31.9237 33.3743 32.3913 32.7975 32.3913H26.2592C25.6824 32.3913 25.2148 31.9237 25.2148 31.347V22.9671C25.2148 22.7829 25.2636 22.602 25.356 22.4427Z"
25
- fill="#FFFFFF"
26
- ></path>
27
- </svg>
9
+ <div className="flex w-fit flex-col gap-2 rounded border-2 border-gray-200 bg-white p-4">
28
10
  <div>
29
- <p>
30
- The team at Tines is simply amazing. The tech is easy to follow, easy
31
- to work with, and infinitely flexible. The solution opportunities
32
- created by Tines are endless.
11
+ <p className="mb-4 max-w-sm">
12
+ The team at Sikka Software is simply amazing. The tech is easy to
13
+ follow, easy to work with, and infinitely flexible. The solution
14
+ opportunities created by Tines are endless.
33
15
  </p>
34
16
  </div>
35
- <cite>
17
+ <div className="flex flex-row gap-4">
18
+ <svg width="48" height="48" viewBox="0 0 48 48" fill="none">
19
+ <rect width="48" height="48" rx="24" fill="#45BE8B"></rect>
20
+ <path
21
+ d="M14.1412 22.4427L17.5803 16.5199C17.7671 16.1981 18.1112 16 18.4834 16H20.8581C21.653 16 22.1565 16.8528 21.7725 17.5488L19.3042 22.0225C19.2202 22.1747 19.1762 22.3458 19.1762 22.5196C19.1762 23.0879 19.6369 23.5486 20.2052 23.5486H21.5827C22.1594 23.5486 22.627 24.0162 22.627 24.5929V31.347C22.627 31.9237 22.1594 32.3913 21.5827 32.3913H15.0443C14.4676 32.3913 14 31.9237 14 31.347V22.9671C14 22.7829 14.0487 22.602 14.1412 22.4427Z"
22
+ fill="#FFFFFF"
23
+ ></path>
24
+ <path
25
+ d="M25.356 22.4427L28.7951 16.5199C28.982 16.1981 29.326 16 29.6982 16H32.0729C32.8679 16 33.3713 16.8528 32.9873 17.5488L30.5191 22.0225C30.4351 22.1747 30.391 22.3458 30.391 22.5196C30.391 23.0879 30.8518 23.5486 31.4201 23.5486H32.7975C33.3743 23.5486 33.8418 24.0162 33.8418 24.5929V31.347C33.8418 31.9237 33.3743 32.3913 32.7975 32.3913H26.2592C25.6824 32.3913 25.2148 31.9237 25.2148 31.347V22.9671C25.2148 22.7829 25.2636 22.602 25.356 22.4427Z"
26
+ fill="#FFFFFF"
27
+ ></path>
28
+ </svg>
29
+ <span className="border border-l "></span>{" "}
36
30
  <div>
37
- <div>
38
- <strong style={{ color: "#45BE8B" }}>Brent Lassi</strong>
39
- </div>
31
+ <strong>Brent Lassi</strong>
40
32
  <div> Chief Information Security Officer</div>
41
33
  </div>
42
- <div>
34
+ {/* <div>
43
35
  <img
44
36
  src="https://www.datocms-assets.com/55802/1636449069-bluecore-logo-dark.svg"
45
37
  title="Logo of Brent Lassi"
46
38
  alt="Logo of Brent Lassi"
47
39
  />
48
- </div>
49
- </cite>
40
+ </div> */}
41
+ </div>
50
42
  </div>
51
43
  )
52
44
  }
@@ -1,4 +1,4 @@
1
- import React, { useState } from "react"
1
+ import { useState, FC } from "react"
2
2
  import { HawaButton } from "../../elements"
3
3
  import { HawaContainer } from "../../layout"
4
4
 
@@ -11,9 +11,7 @@ type ChargeWalletTypes = {
11
11
  chargeWallet: string
12
12
  }
13
13
  }
14
- export const ChargeWalletForm: React.FunctionComponent<ChargeWalletTypes> = (
15
- props
16
- ) => {
14
+ export const ChargeWalletForm: FC<ChargeWalletTypes> = (props) => {
17
15
  const [walletAmount, setWalletAmount] = useState(0)
18
16
 
19
17
  return (
@@ -24,16 +22,17 @@ export const ChargeWalletForm: React.FunctionComponent<ChargeWalletTypes> = (
24
22
  </div>
25
23
  <div className="text-sm font-normal">{props.currency || "SAR"}</div>
26
24
  </div>
27
- <div className="mb-2 flex w-full flex-row gap-2 text-center">
28
- <div className="w-40 whitespace-nowrap rounded bg-gray-100 p-4">
25
+ <div className="mb-2 flex w-full flex-row gap-4 text-center">
26
+ <HawaButton variant="outlined" margins="none" className="h-full">
29
27
  10 SAR
30
- </div>
31
- <div className="w-40 whitespace-nowrap rounded bg-gray-100 p-4">
28
+ </HawaButton>
29
+ <HawaButton variant="outlined" margins="none" className="h-full">
32
30
  100 SAR
33
- </div>
31
+ </HawaButton>
32
+
34
33
  <input
35
34
  placeholder="Custom"
36
- className="h-auto rounded bg-gray-100 p-4"
35
+ className="h-auto w-full rounded bg-gray-100 p-4"
37
36
  />
38
37
  </div>
39
38
  {/* <FormProvider {...methods}>
@@ -1,4 +1,4 @@
1
- import React from "react"
1
+ import { FC } from "react"
2
2
  import {
3
3
  HawaTextField,
4
4
  HawaTable,
@@ -34,9 +34,7 @@ type CheckoutFormTypes = {
34
34
  }
35
35
  }
36
36
 
37
- export const CheckoutForm: React.FunctionComponent<CheckoutFormTypes> = (
38
- props
39
- ) => {
37
+ export const CheckoutForm: FC<CheckoutFormTypes> = (props) => {
40
38
  let isArabic = props.lang === "ar"
41
39
  const methods = useForm()
42
40
  const {
@@ -158,60 +156,59 @@ export const CheckoutForm: React.FunctionComponent<CheckoutFormTypes> = (
158
156
  />
159
157
  )}
160
158
  />
161
- <div style={{ width: 20 }} />
159
+ </div>
162
160
 
161
+ <div className="flex flex-col md:flex-row">
163
162
  <Controller
164
163
  control={control}
165
- name="buildingNumber"
164
+ name="province"
166
165
  rules={{ required: props.texts?.required }}
167
166
  render={({ field }) => (
168
167
  <HawaTextField
169
168
  width="full"
170
169
  type="text"
171
- label={props.texts?.buildingNumberLabel + " *"}
172
- helperText={errors.buildingNumber?.message}
170
+ label={props.texts?.stateLabel + " *"}
171
+ helperText={errors.province?.message}
173
172
  {...field}
174
173
  value={field.value ?? ""}
175
174
  />
176
175
  )}
177
176
  />
178
- </div>
177
+ <div style={{ width: 20 }} />
179
178
 
180
- <div className="flex flex-col md:flex-row">
181
179
  <Controller
182
180
  control={control}
183
- name="province"
181
+ name="city"
184
182
  rules={{ required: props.texts?.required }}
185
183
  render={({ field }) => (
186
184
  <HawaTextField
187
185
  width="full"
188
186
  type="text"
189
- label={props.texts?.stateLabel + " *"}
190
- helperText={errors.province?.message}
187
+ label={props.texts?.cityLabel + " *"}
188
+ helperText={errors.city?.message}
191
189
  {...field}
192
190
  value={field.value ?? ""}
193
191
  />
194
192
  )}
195
193
  />
196
- <div style={{ width: 20 }} />
197
-
194
+ </div>
195
+ <div className="flex flex-col md:flex-row">
198
196
  <Controller
199
197
  control={control}
200
- name="city"
198
+ name="buildingNumber"
201
199
  rules={{ required: props.texts?.required }}
202
200
  render={({ field }) => (
203
201
  <HawaTextField
204
202
  width="full"
205
203
  type="text"
206
- label={props.texts?.cityLabel + " *"}
207
- helperText={errors.city?.message}
204
+ label={props.texts?.buildingNumberLabel + " *"}
205
+ helperText={errors.buildingNumber?.message}
208
206
  {...field}
209
207
  value={field.value ?? ""}
210
208
  />
211
209
  )}
212
210
  />
213
- </div>
214
- <div className="mb-3">
211
+ <div style={{ width: 20 }} />
215
212
  <Controller
216
213
  control={control}
217
214
  name="zipCode"
@@ -227,8 +224,9 @@ export const CheckoutForm: React.FunctionComponent<CheckoutFormTypes> = (
227
224
  />
228
225
  )}
229
226
  />
230
- <div style={{ width: 20 }} />
231
-
227
+ {/* <div style={{ width: 20 }} /> */}
228
+ </div>
229
+ <div className="mb-3">
232
230
  <Controller
233
231
  control={control}
234
232
  name="country"
@@ -1,4 +1,4 @@
1
- import React from "react"
1
+ import { FC } from "react"
2
2
  import { HawaButton, HawaTable } from "../../elements"
3
3
  import { HawaContainer } from "../../layout"
4
4
 
@@ -40,9 +40,7 @@ type ConfirmationPageTypes = {
40
40
  handleRefundPolicyLink: any
41
41
  }
42
42
 
43
- export const ConfirmationPage: React.FunctionComponent<
44
- ConfirmationPageTypes
45
- > = (props) => {
43
+ export const ConfirmationPage: FC<ConfirmationPageTypes> = (props) => {
46
44
  let isArabic = props.lang === "ar"
47
45
 
48
46
  return (
@@ -58,7 +56,7 @@ export const ConfirmationPage: React.FunctionComponent<
58
56
  <div className="text-center">{props.texts.yourOrderNumber}</div>
59
57
  <div className="text-center font-bold">{props.orderNumber}</div>
60
58
  </div>
61
- <div className="py-5">
59
+ {/* <div className="py-5">
62
60
  <div className="mb-3 text-center text-xl font-semibold">
63
61
  {props.texts.orderDetails}
64
62
  </div>
@@ -72,8 +70,8 @@ export const ConfirmationPage: React.FunctionComponent<
72
70
  rows={props.products}
73
71
  />
74
72
  )}
75
- </div>
76
- <div className="flex flex-col justify-center py-5 pt-0">
73
+ </div> */}
74
+ <div className="flex flex-col items-center justify-center py-5 pt-0">
77
75
  <HawaButton color="primary" width="full" onClick={props.handlePrint}>
78
76
  {props.texts.print}
79
77
  </HawaButton>
@@ -83,11 +81,11 @@ export const ConfirmationPage: React.FunctionComponent<
83
81
  <HawaButton color="primary" width="full" onClick={props.handleHome}>
84
82
  {props.texts.homePage}
85
83
  </HawaButton>
86
- <div className="mt-5 mb-5 text-center text-sm">
84
+ <div className="mb-5 mt-5 text-center text-sm">
87
85
  {props.texts.fasterPaymentNote}
88
86
  </div>
89
87
  <a
90
- className="w-fit cursor-pointer text-center text-xs font-normal"
88
+ className="w-fit cursor-pointer text-center text-xs font-normal"
91
89
  onClick={props.handleRefundPolicyLink}
92
90
  >
93
91
  {props.texts.refundPolicy}