@sikka/hawa 0.0.108 → 0.0.110
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 +7 -4
- package/es/elements/Breadcrumb.d.ts +11 -0
- package/es/elements/index.d.ts +1 -0
- package/es/index.es.js +1 -1
- package/es/stories/ElementsStories/Breadcrumb.stories.d.ts +6 -0
- package/lib/elements/Breadcrumb.d.ts +11 -0
- package/lib/elements/index.d.ts +1 -0
- package/lib/index.js +1 -1
- package/lib/stories/ElementsStories/Breadcrumb.stories.d.ts +6 -0
- package/package.json +1 -1
- package/src/blocks/AuthForms/CodeConfirmation.tsx +1 -1
- package/src/blocks/AuthForms/NewPasswordForm.tsx +1 -1
- package/src/blocks/AuthForms/ResetPasswordForm.tsx +1 -2
- package/src/blocks/AuthForms/SignInForm.tsx +1 -1
- package/src/blocks/AuthForms/SignInPhone.tsx +1 -1
- package/src/blocks/AuthForms/SignUpForm.tsx +1 -1
- package/src/blocks/Payment/CheckoutForm.tsx +1 -1
- package/src/blocks/Referral/ReferralAccount.tsx +1 -1
- package/src/blocks/Referral/ReferralSettlement.tsx +1 -1
- package/src/blocks/Referral/ReferralStats.tsx +1 -1
- package/src/elements/Breadcrumb.tsx +40 -0
- package/src/elements/HawaPricingCard.tsx +0 -2
- package/src/elements/index.ts +1 -0
- package/src/styles.css +7 -4
- package/storybook-static/{209.05314e10.iframe.bundle.js → 733.819a1db2.iframe.bundle.js} +2 -2
- package/storybook-static/{209.05314e10.iframe.bundle.js.LICENSE.txt → 733.819a1db2.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/main.e3c09016.iframe.bundle.js +1 -0
- package/storybook-static/project.json +1 -1
- package/storybook-static/main.277f1328.iframe.bundle.js +0 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Meta } from "@storybook/react";
|
|
2
|
+
declare const _default: Meta<import("@storybook/react").Args>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const BreadCrumb: any;
|
|
5
|
+
export declare const BreadCrumWithSeparator: any;
|
|
6
|
+
export declare const BreadcrumbIconSeparator: any;
|
package/package.json
CHANGED
|
@@ -27,8 +27,7 @@ export const ResetPasswordForm: React.FunctionComponent<ResetPasswordType> = (
|
|
|
27
27
|
control,
|
|
28
28
|
} = methods
|
|
29
29
|
return (
|
|
30
|
-
<HawaContainer
|
|
31
|
-
{" "}
|
|
30
|
+
<HawaContainer>
|
|
32
31
|
{!props.sent ? (
|
|
33
32
|
<form onSubmit={handleSubmit(props.handleResetPassword)}>
|
|
34
33
|
<Controller
|
|
@@ -57,7 +57,7 @@ export const SignInForm: React.FunctionComponent<SignInFormTypes> = (props) => {
|
|
|
57
57
|
} = useForm()
|
|
58
58
|
|
|
59
59
|
return (
|
|
60
|
-
<HawaContainer
|
|
60
|
+
<HawaContainer>
|
|
61
61
|
<form onSubmit={handleSubmit((e) => props.handleSignIn(e))}>
|
|
62
62
|
{props.showError && (
|
|
63
63
|
<HawaAlert
|
|
@@ -27,7 +27,7 @@ export const SignInPhone: React.FunctionComponent<SignInPhoneTypes> = (
|
|
|
27
27
|
console.log("submitting ", userPhone)
|
|
28
28
|
}
|
|
29
29
|
return (
|
|
30
|
-
<HawaContainer
|
|
30
|
+
<HawaContainer>
|
|
31
31
|
<form
|
|
32
32
|
onSubmit={handleSubmit(() => console.log("testing submit"))}
|
|
33
33
|
// onSubmit={(e) => {
|
|
@@ -13,7 +13,7 @@ export const ReferralAccount: React.FunctionComponent<ReferralAccount> = ({
|
|
|
13
13
|
referralCode,
|
|
14
14
|
}) => {
|
|
15
15
|
return (
|
|
16
|
-
<HawaContainer
|
|
16
|
+
<HawaContainer>
|
|
17
17
|
<div className="my-2 mt-0">
|
|
18
18
|
<div className="mb-1">Referral Code</div>
|
|
19
19
|
<div className="flex flex-row items-center justify-between rounded-lg bg-white">
|
|
@@ -15,7 +15,7 @@ export const ReferralStats: React.FunctionComponent<TReferralStats> = ({
|
|
|
15
15
|
withdrawError,
|
|
16
16
|
}) => {
|
|
17
17
|
return (
|
|
18
|
-
<HawaContainer
|
|
18
|
+
<HawaContainer>
|
|
19
19
|
<div className="mb-1">Stats</div>
|
|
20
20
|
<div className="justi flex flex-row gap-1">
|
|
21
21
|
<NumberCard title="Clicks" number={22} />
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import React, { FC, ReactNode } from "react"
|
|
2
|
+
import { IconType } from "react-icons"
|
|
3
|
+
|
|
4
|
+
type TBreadcrumItem = {
|
|
5
|
+
label: string
|
|
6
|
+
href: string
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
type TBreadcrumb = {
|
|
10
|
+
breadcrumbLink: TBreadcrumItem[]
|
|
11
|
+
separator?: string | ReactNode
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const Breadcrumb: FC<TBreadcrumb> = ({
|
|
15
|
+
breadcrumbLink,
|
|
16
|
+
separator = "/",
|
|
17
|
+
...props
|
|
18
|
+
}) => {
|
|
19
|
+
return (
|
|
20
|
+
<div className="flex flex-row items-center">
|
|
21
|
+
{breadcrumbLink.map((singleBreadcrumbLink, index) => (
|
|
22
|
+
<div className="flex flex-row items-center justify-center mx-1">
|
|
23
|
+
<a
|
|
24
|
+
href={singleBreadcrumbLink.href}
|
|
25
|
+
className="mx-1 hover:underline hover:decoration-2"
|
|
26
|
+
>
|
|
27
|
+
{singleBreadcrumbLink.label}
|
|
28
|
+
</a>
|
|
29
|
+
{index != breadcrumbLink.length - 1
|
|
30
|
+
? typeof separator == "string"
|
|
31
|
+
? separator
|
|
32
|
+
: <div>{separator}</div>
|
|
33
|
+
: null}
|
|
34
|
+
</div>
|
|
35
|
+
))}
|
|
36
|
+
</div>
|
|
37
|
+
)
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export default Breadcrumb
|
|
@@ -148,7 +148,6 @@ export const HawaPricingCard: React.FunctionComponent<PricingCardTypes> = (
|
|
|
148
148
|
</div>
|
|
149
149
|
|
|
150
150
|
// <Container
|
|
151
|
-
// maxWidth="xs"
|
|
152
151
|
// variant={props.selectedPlan ? "selected-plan-card" : "plan-card"}
|
|
153
152
|
// style={{ direction: isArabic ? "rtl" : "ltr" }}
|
|
154
153
|
// >
|
|
@@ -157,7 +156,6 @@ export const HawaPricingCard: React.FunctionComponent<PricingCardTypes> = (
|
|
|
157
156
|
// label={props.discount}
|
|
158
157
|
// variant="standard"
|
|
159
158
|
// style={{
|
|
160
|
-
// maxWidth: "fit-content",
|
|
161
159
|
// position: "absolute",
|
|
162
160
|
// bottom: 10,
|
|
163
161
|
// ...chipSpacing
|
package/src/elements/index.ts
CHANGED
package/src/styles.css
CHANGED
|
@@ -583,6 +583,10 @@ video {
|
|
|
583
583
|
.m-1 {
|
|
584
584
|
margin: 0.25rem;
|
|
585
585
|
}
|
|
586
|
+
.mx-1 {
|
|
587
|
+
margin-left: 0.25rem;
|
|
588
|
+
margin-right: 0.25rem;
|
|
589
|
+
}
|
|
586
590
|
.my-2 {
|
|
587
591
|
margin-top: 0.5rem;
|
|
588
592
|
margin-bottom: 0.5rem;
|
|
@@ -591,10 +595,6 @@ video {
|
|
|
591
595
|
margin-left: 0.5rem;
|
|
592
596
|
margin-right: 0.5rem;
|
|
593
597
|
}
|
|
594
|
-
.mx-1 {
|
|
595
|
-
margin-left: 0.25rem;
|
|
596
|
-
margin-right: 0.25rem;
|
|
597
|
-
}
|
|
598
598
|
.my-7 {
|
|
599
599
|
margin-top: 1.75rem;
|
|
600
600
|
margin-bottom: 1.75rem;
|
|
@@ -1755,6 +1755,9 @@ body {
|
|
|
1755
1755
|
-webkit-text-decoration-line: underline;
|
|
1756
1756
|
text-decoration-line: underline;
|
|
1757
1757
|
}
|
|
1758
|
+
.hover\:decoration-2:hover {
|
|
1759
|
+
text-decoration-thickness: 2px;
|
|
1760
|
+
}
|
|
1758
1761
|
.hover\:shadow-lg:hover {
|
|
1759
1762
|
--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
1760
1763
|
--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
|