@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.
- package/dist/styles.css +8 -3
- package/es/blocks/Account/HawaApiBox.d.ts +2 -2
- package/es/blocks/Account/UserProfileForm.d.ts +2 -2
- package/es/blocks/Account/UserSettingsForm.d.ts +2 -2
- package/es/blocks/AuthForms/AppLanding.d.ts +2 -2
- package/es/blocks/AuthForms/CodeConfirmation.d.ts +3 -3
- package/es/blocks/AuthForms/NewPasswordForm.d.ts +2 -2
- package/es/blocks/AuthForms/ResetPasswordForm.d.ts +2 -2
- package/es/blocks/AuthForms/SignInForm.d.ts +2 -2
- package/es/blocks/AuthForms/SignInPhone.d.ts +2 -2
- package/es/blocks/AuthForms/SignUpForm.d.ts +2 -2
- package/es/blocks/Misc/EmptyState.d.ts +7 -2
- package/es/blocks/Misc/LeadGenerator.d.ts +2 -2
- package/es/blocks/Misc/Newsletter.d.ts +2 -2
- package/es/blocks/Misc/NoPermission.d.ts +6 -2
- package/es/blocks/Misc/NotFound.d.ts +2 -2
- package/es/blocks/Misc/Testimonial.d.ts +2 -2
- package/es/blocks/Payment/ChargeWalletForm.d.ts +2 -2
- package/es/blocks/Payment/CheckoutForm.d.ts +2 -2
- package/es/blocks/Payment/Confirmation.d.ts +2 -2
- package/es/blocks/Payment/CreditCardForm.d.ts +2 -2
- package/es/blocks/Payment/PayWithWallet.d.ts +2 -2
- package/es/blocks/Payment/SelectPayment.d.ts +2 -2
- package/es/blocks/Pricing/ComparingPlans.d.ts +2 -2
- package/es/blocks/Pricing/PricingPlans.d.ts +2 -2
- package/es/blocks/Referral/ReferralAccount.d.ts +2 -2
- package/es/blocks/Referral/ReferralSettlement.d.ts +2 -2
- package/es/blocks/Referral/ReferralStats.d.ts +2 -2
- package/es/elements/ArrowCarousel.d.ts +2 -2
- package/es/elements/AutoCompleteField.d.ts +2 -2
- package/es/elements/BackToTop.d.ts +3 -3
- package/es/elements/Breadcrumb.d.ts +2 -4
- package/es/elements/DragDropImages.d.ts +2 -6
- package/es/elements/DraggableCard.d.ts +2 -2
- package/es/elements/HawaAccordion.d.ts +5 -11
- package/es/elements/HawaAdCard.d.ts +2 -2
- package/es/elements/HawaCardInput.d.ts +2 -2
- package/es/elements/HawaCheckbox.d.ts +2 -2
- package/es/elements/HawaChip.d.ts +9 -3
- package/es/elements/HawaColorPicker.d.ts +5 -3
- package/es/elements/HawaCopyrights.d.ts +8 -4
- package/es/elements/HawaDrawer.d.ts +2 -2
- package/es/elements/HawaIconCount.d.ts +5 -3
- package/es/elements/HawaItemCard.d.ts +10 -6
- package/es/elements/HawaLandingCard.d.ts +2 -2
- package/es/elements/HawaLogoButton.d.ts +2 -2
- package/es/elements/HawaMenu.d.ts +2 -2
- package/es/elements/HawaModal.d.ts +2 -2
- package/es/elements/HawaPanelTabs.d.ts +2 -2
- package/es/elements/HawaPhoneInput.d.ts +2 -2
- package/es/elements/HawaPinInput.d.ts +2 -2
- package/es/elements/HawaPricingCard.d.ts +2 -2
- package/es/elements/HawaRadio.d.ts +2 -2
- package/es/elements/HawaRange.d.ts +2 -2
- package/es/elements/HawaSearchBar.d.ts +2 -2
- package/es/elements/HawaSelect.d.ts +2 -2
- package/es/elements/HawaSettingsRow.d.ts +2 -2
- package/es/elements/HawaSpinner.d.ts +2 -2
- package/es/elements/HawaStats.d.ts +2 -2
- package/es/elements/HawaStepper.d.ts +2 -2
- package/es/elements/HawaStoreButtons.d.ts +2 -2
- package/es/elements/HawaSwitch.d.ts +2 -2
- package/es/elements/HawaTable.d.ts +2 -2
- package/es/elements/HawaTabs.d.ts +2 -2
- package/es/elements/HawaTextField.d.ts +3 -3
- package/es/elements/HawaTooltip.d.ts +3 -3
- package/es/elements/HawaTypography.d.ts +2 -2
- package/es/elements/InvoiceAccordion.d.ts +2 -2
- package/es/elements/SubsectionList.d.ts +2 -2
- package/es/elements/TabPanel.d.ts +2 -2
- package/es/elements/UsageCard.d.ts +2 -2
- package/es/elements/UserFeedback.d.ts +2 -2
- package/es/index.es.js +2 -2
- package/es/layout/HawaAppLayout.d.ts +1 -0
- package/es/layout/index.d.ts +0 -1
- package/lib/blocks/Account/HawaApiBox.d.ts +2 -2
- package/lib/blocks/Account/UserProfileForm.d.ts +2 -2
- package/lib/blocks/Account/UserSettingsForm.d.ts +2 -2
- package/lib/blocks/AuthForms/AppLanding.d.ts +2 -2
- package/lib/blocks/AuthForms/CodeConfirmation.d.ts +3 -3
- package/lib/blocks/AuthForms/NewPasswordForm.d.ts +2 -2
- package/lib/blocks/AuthForms/ResetPasswordForm.d.ts +2 -2
- package/lib/blocks/AuthForms/SignInForm.d.ts +2 -2
- package/lib/blocks/AuthForms/SignInPhone.d.ts +2 -2
- package/lib/blocks/AuthForms/SignUpForm.d.ts +2 -2
- package/lib/blocks/Misc/EmptyState.d.ts +7 -2
- package/lib/blocks/Misc/LeadGenerator.d.ts +2 -2
- package/lib/blocks/Misc/Newsletter.d.ts +2 -2
- package/lib/blocks/Misc/NoPermission.d.ts +6 -2
- package/lib/blocks/Misc/NotFound.d.ts +2 -2
- package/lib/blocks/Misc/Testimonial.d.ts +2 -2
- package/lib/blocks/Payment/ChargeWalletForm.d.ts +2 -2
- package/lib/blocks/Payment/CheckoutForm.d.ts +2 -2
- package/lib/blocks/Payment/Confirmation.d.ts +2 -2
- package/lib/blocks/Payment/CreditCardForm.d.ts +2 -2
- package/lib/blocks/Payment/PayWithWallet.d.ts +2 -2
- package/lib/blocks/Payment/SelectPayment.d.ts +2 -2
- package/lib/blocks/Pricing/ComparingPlans.d.ts +2 -2
- package/lib/blocks/Pricing/PricingPlans.d.ts +2 -2
- package/lib/blocks/Referral/ReferralAccount.d.ts +2 -2
- package/lib/blocks/Referral/ReferralSettlement.d.ts +2 -2
- package/lib/blocks/Referral/ReferralStats.d.ts +2 -2
- package/lib/elements/ArrowCarousel.d.ts +2 -2
- package/lib/elements/AutoCompleteField.d.ts +2 -2
- package/lib/elements/BackToTop.d.ts +3 -3
- package/lib/elements/Breadcrumb.d.ts +2 -4
- package/lib/elements/DragDropImages.d.ts +2 -6
- package/lib/elements/DraggableCard.d.ts +2 -2
- package/lib/elements/HawaAccordion.d.ts +5 -11
- package/lib/elements/HawaAdCard.d.ts +2 -2
- package/lib/elements/HawaCardInput.d.ts +2 -2
- package/lib/elements/HawaCheckbox.d.ts +2 -2
- package/lib/elements/HawaChip.d.ts +9 -3
- package/lib/elements/HawaColorPicker.d.ts +5 -3
- package/lib/elements/HawaCopyrights.d.ts +8 -4
- package/lib/elements/HawaDrawer.d.ts +2 -2
- package/lib/elements/HawaIconCount.d.ts +5 -3
- package/lib/elements/HawaItemCard.d.ts +10 -6
- package/lib/elements/HawaLandingCard.d.ts +2 -2
- package/lib/elements/HawaLogoButton.d.ts +2 -2
- package/lib/elements/HawaMenu.d.ts +2 -2
- package/lib/elements/HawaModal.d.ts +2 -2
- package/lib/elements/HawaPanelTabs.d.ts +2 -2
- package/lib/elements/HawaPhoneInput.d.ts +2 -2
- package/lib/elements/HawaPinInput.d.ts +2 -2
- package/lib/elements/HawaPricingCard.d.ts +2 -2
- package/lib/elements/HawaRadio.d.ts +2 -2
- package/lib/elements/HawaRange.d.ts +2 -2
- package/lib/elements/HawaSearchBar.d.ts +2 -2
- package/lib/elements/HawaSelect.d.ts +2 -2
- package/lib/elements/HawaSettingsRow.d.ts +2 -2
- package/lib/elements/HawaSpinner.d.ts +2 -2
- package/lib/elements/HawaStats.d.ts +2 -2
- package/lib/elements/HawaStepper.d.ts +2 -2
- package/lib/elements/HawaStoreButtons.d.ts +2 -2
- package/lib/elements/HawaSwitch.d.ts +2 -2
- package/lib/elements/HawaTable.d.ts +2 -2
- package/lib/elements/HawaTabs.d.ts +2 -2
- package/lib/elements/HawaTextField.d.ts +3 -3
- package/lib/elements/HawaTooltip.d.ts +3 -3
- package/lib/elements/HawaTypography.d.ts +2 -2
- package/lib/elements/InvoiceAccordion.d.ts +2 -2
- package/lib/elements/SubsectionList.d.ts +2 -2
- package/lib/elements/TabPanel.d.ts +2 -2
- package/lib/elements/UsageCard.d.ts +2 -2
- package/lib/elements/UserFeedback.d.ts +2 -2
- package/lib/index.js +2 -2
- package/lib/layout/HawaAppLayout.d.ts +1 -0
- package/lib/layout/index.d.ts +0 -1
- package/package.json +1 -1
- package/src/blocks/Account/HawaApiBox.tsx +2 -4
- package/src/blocks/Account/UserProfileForm.tsx +2 -4
- package/src/blocks/Account/UserSettingsForm.tsx +2 -6
- package/src/blocks/AuthForms/AppLanding.tsx +2 -2
- package/src/blocks/AuthForms/CodeConfirmation.tsx +3 -5
- package/src/blocks/AuthForms/NewPasswordForm.tsx +2 -4
- package/src/blocks/AuthForms/ResetPasswordForm.tsx +2 -4
- package/src/blocks/AuthForms/SignInForm.tsx +2 -2
- package/src/blocks/AuthForms/SignInPhone.tsx +2 -4
- package/src/blocks/AuthForms/SignUpForm.tsx +2 -2
- package/src/blocks/Misc/EmptyState.tsx +15 -7
- package/src/blocks/Misc/LeadGenerator.tsx +4 -6
- package/src/blocks/Misc/Newsletter.tsx +3 -3
- package/src/blocks/Misc/NoPermission.tsx +13 -10
- package/src/blocks/Misc/NotFound.tsx +4 -4
- package/src/blocks/Misc/Testimonial.tsx +25 -33
- package/src/blocks/Payment/ChargeWalletForm.tsx +9 -10
- package/src/blocks/Payment/CheckoutForm.tsx +20 -22
- package/src/blocks/Payment/Confirmation.tsx +7 -9
- package/src/blocks/Payment/CreditCardForm.tsx +2 -4
- package/src/blocks/Payment/PayWithWallet.tsx +2 -4
- package/src/blocks/Payment/SelectPayment.tsx +2 -4
- package/src/blocks/Pricing/ComparingPlans.tsx +4 -6
- package/src/blocks/Pricing/PricingPlans.tsx +2 -4
- package/src/blocks/Referral/ReferralAccount.tsx +2 -2
- package/src/blocks/Referral/ReferralSettlement.tsx +14 -7
- package/src/blocks/Referral/ReferralStats.tsx +2 -2
- package/src/elements/ArrowCarousel.tsx +2 -2
- package/src/elements/AutoCompleteField.tsx +5 -7
- package/src/elements/BackToTop.tsx +3 -3
- package/src/elements/Breadcrumb.tsx +3 -6
- package/src/elements/DragDropImages.tsx +3 -7
- package/src/elements/DraggableCard.tsx +2 -4
- package/src/elements/HawaAccordion.tsx +6 -14
- package/src/elements/HawaAdCard.tsx +2 -5
- package/src/elements/HawaCardInput.tsx +1 -1
- package/src/elements/HawaCheckbox.tsx +2 -4
- package/src/elements/HawaChip.tsx +10 -4
- package/src/elements/HawaColorPicker.tsx +7 -7
- package/src/elements/HawaCopyrights.tsx +8 -6
- package/src/elements/HawaDatepicker.tsx +1 -1
- package/src/elements/HawaDrawer.tsx +3 -3
- package/src/elements/HawaIconCount.tsx +5 -5
- package/src/elements/HawaItemCard.tsx +10 -10
- package/src/elements/HawaLandingCard.tsx +3 -3
- package/src/elements/HawaLogoButton.tsx +2 -4
- package/src/elements/HawaMenu.tsx +4 -4
- package/src/elements/HawaModal.tsx +2 -2
- package/src/elements/HawaPanelTabs.tsx +2 -4
- package/src/elements/HawaPhoneInput.tsx +3 -5
- package/src/elements/HawaPinInput.tsx +2 -2
- package/src/elements/HawaPricingCard.tsx +2 -2
- package/src/elements/HawaRadio.tsx +2 -2
- package/src/elements/HawaRange.tsx +3 -3
- package/src/elements/HawaSearchBar.tsx +2 -4
- package/src/elements/HawaSelect.tsx +5 -5
- package/src/elements/HawaSettingsRow.tsx +2 -2
- package/src/elements/HawaSnackbar.tsx +2 -2
- package/src/elements/HawaSpinner.tsx +2 -5
- package/src/elements/HawaStats.tsx +2 -2
- package/src/elements/HawaStepper.tsx +2 -2
- package/src/elements/HawaStoreButtons.tsx +3 -5
- package/src/elements/HawaSwitch.tsx +2 -5
- package/src/elements/HawaTable.tsx +5 -3
- package/src/elements/HawaTabs.tsx +4 -4
- package/src/elements/HawaTextField.tsx +4 -4
- package/src/elements/HawaTooltip.tsx +3 -3
- package/src/elements/HawaTypography.tsx +2 -4
- package/src/elements/InvoiceAccordion.tsx +2 -4
- package/src/elements/SubsectionList.tsx +3 -5
- package/src/elements/TabPanel.tsx +2 -2
- package/src/elements/UsageCard.tsx +2 -2
- package/src/elements/UserFeedback.tsx +2 -4
- package/src/layout/HawaAppLayout.tsx +86 -58
- package/src/layout/index.ts +0 -1
- package/src/styles.css +8 -3
- package/es/layout/SimpleGrid.d.ts +0 -10
- package/lib/layout/SimpleGrid.d.ts +0 -10
- package/src/layout/SimpleGrid.tsx +0 -41
package/lib/layout/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
12
|
+
export const SignInForm: FC<SignInFormTypes> = (props) => {
|
|
13
13
|
const {
|
|
14
14
|
formState: { errors },
|
|
15
15
|
handleSubmit,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
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">
|
|
20
|
-
|
|
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="
|
|
23
|
-
|
|
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
|
|
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:
|
|
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
|
|
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
|
|
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
|
|
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:
|
|
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
|
|
44
|
+
<HawaButton margins="none">
|
|
45
45
|
{texts?.submit ?? "Submit"}
|
|
46
46
|
</HawaButton>
|
|
47
47
|
</form>
|
|
@@ -1,14 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { HawaButton } from "../../elements"
|
|
1
|
+
import { FC } from "react"
|
|
3
2
|
import { HawaContainer } from "../../layout"
|
|
4
|
-
import {
|
|
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:
|
|
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">
|
|
23
|
+
<div className="m-2 text-xl font-bold">
|
|
24
|
+
{texts?.title ?? "You don't have permission"}
|
|
25
|
+
</div>
|
|
20
26
|
<div>
|
|
21
|
-
|
|
22
|
-
|
|
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
|
|
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:
|
|
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
|
|
2
|
-
|
|
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:
|
|
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
|
|
31
|
-
to work with, and infinitely flexible. The solution
|
|
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
|
-
<
|
|
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
|
-
<
|
|
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
|
-
</
|
|
40
|
+
</div> */}
|
|
41
|
+
</div>
|
|
50
42
|
</div>
|
|
51
43
|
)
|
|
52
44
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
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:
|
|
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-
|
|
28
|
-
<
|
|
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
|
-
</
|
|
31
|
-
<
|
|
28
|
+
</HawaButton>
|
|
29
|
+
<HawaButton variant="outlined" margins="none" className="h-full">
|
|
32
30
|
100 SAR
|
|
33
|
-
</
|
|
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
|
|
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:
|
|
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
|
-
|
|
159
|
+
</div>
|
|
162
160
|
|
|
161
|
+
<div className="flex flex-col md:flex-row">
|
|
163
162
|
<Controller
|
|
164
163
|
control={control}
|
|
165
|
-
name="
|
|
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?.
|
|
172
|
-
helperText={errors.
|
|
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
|
-
|
|
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="
|
|
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?.
|
|
190
|
-
helperText={errors.
|
|
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
|
-
|
|
197
|
-
|
|
194
|
+
</div>
|
|
195
|
+
<div className="flex flex-col md:flex-row">
|
|
198
196
|
<Controller
|
|
199
197
|
control={control}
|
|
200
|
-
name="
|
|
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?.
|
|
207
|
-
helperText={errors.
|
|
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
|
-
|
|
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
|
|
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:
|
|
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="
|
|
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
|
|
88
|
+
className="w-fit cursor-pointer text-center text-xs font-normal"
|
|
91
89
|
onClick={props.handleRefundPolicyLink}
|
|
92
90
|
>
|
|
93
91
|
{props.texts.refundPolicy}
|