@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.
Files changed (30) hide show
  1. package/dist/styles.css +7 -4
  2. package/es/elements/Breadcrumb.d.ts +11 -0
  3. package/es/elements/index.d.ts +1 -0
  4. package/es/index.es.js +1 -1
  5. package/es/stories/ElementsStories/Breadcrumb.stories.d.ts +6 -0
  6. package/lib/elements/Breadcrumb.d.ts +11 -0
  7. package/lib/elements/index.d.ts +1 -0
  8. package/lib/index.js +1 -1
  9. package/lib/stories/ElementsStories/Breadcrumb.stories.d.ts +6 -0
  10. package/package.json +1 -1
  11. package/src/blocks/AuthForms/CodeConfirmation.tsx +1 -1
  12. package/src/blocks/AuthForms/NewPasswordForm.tsx +1 -1
  13. package/src/blocks/AuthForms/ResetPasswordForm.tsx +1 -2
  14. package/src/blocks/AuthForms/SignInForm.tsx +1 -1
  15. package/src/blocks/AuthForms/SignInPhone.tsx +1 -1
  16. package/src/blocks/AuthForms/SignUpForm.tsx +1 -1
  17. package/src/blocks/Payment/CheckoutForm.tsx +1 -1
  18. package/src/blocks/Referral/ReferralAccount.tsx +1 -1
  19. package/src/blocks/Referral/ReferralSettlement.tsx +1 -1
  20. package/src/blocks/Referral/ReferralStats.tsx +1 -1
  21. package/src/elements/Breadcrumb.tsx +40 -0
  22. package/src/elements/HawaPricingCard.tsx +0 -2
  23. package/src/elements/index.ts +1 -0
  24. package/src/styles.css +7 -4
  25. package/storybook-static/{209.05314e10.iframe.bundle.js → 733.819a1db2.iframe.bundle.js} +2 -2
  26. package/storybook-static/{209.05314e10.iframe.bundle.js.LICENSE.txt → 733.819a1db2.iframe.bundle.js.LICENSE.txt} +0 -0
  27. package/storybook-static/iframe.html +1 -1
  28. package/storybook-static/main.e3c09016.iframe.bundle.js +1 -0
  29. package/storybook-static/project.json +1 -1
  30. 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sikka/hawa",
3
- "version": "0.0.108",
3
+ "version": "0.0.110",
4
4
  "description": "UI Kit",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.es.js",
@@ -26,7 +26,7 @@ export const CodeConfirmation: React.FunctionComponent<
26
26
  } = methods
27
27
 
28
28
  return (
29
- <HawaContainer maxWidth="small">
29
+ <HawaContainer>
30
30
  {" "}
31
31
  {props.showError && (
32
32
  <HawaAlert
@@ -41,7 +41,7 @@ export const NewPasswordForm: React.FunctionComponent<NewPasswordTypes> = (
41
41
  }
42
42
 
43
43
  return (
44
- <HawaContainer maxWidth="small">
44
+ <HawaContainer>
45
45
  {" "}
46
46
  {matchError && (
47
47
  <HawaAlert text={props.texts.passwordMatchError} severity="error" />
@@ -27,8 +27,7 @@ export const ResetPasswordForm: React.FunctionComponent<ResetPasswordType> = (
27
27
  control,
28
28
  } = methods
29
29
  return (
30
- <HawaContainer maxWidth="small">
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 maxWidth="small">
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 maxWidth="small">
30
+ <HawaContainer>
31
31
  <form
32
32
  onSubmit={handleSubmit(() => console.log("testing submit"))}
33
33
  // onSubmit={(e) => {
@@ -68,7 +68,7 @@ export const SignUpForm: React.FunctionComponent<SignUpFormTypes> = (props) => {
68
68
  } = methods
69
69
 
70
70
  return (
71
- <HawaContainer maxWidth="small">
71
+ <HawaContainer>
72
72
  <div>
73
73
  {props.showError && (
74
74
  <HawaAlert
@@ -60,7 +60,7 @@ export const CheckoutForm: React.FunctionComponent<CheckoutFormTypes> = (
60
60
  },
61
61
  }
62
62
  return (
63
- <HawaContainer maxWidth="full">
63
+ <HawaContainer>
64
64
  <div>
65
65
  <div className="mb-2 text-center text-xl font-semibold">
66
66
  {props.texts.orderDetails}
@@ -13,7 +13,7 @@ export const ReferralAccount: React.FunctionComponent<ReferralAccount> = ({
13
13
  referralCode,
14
14
  }) => {
15
15
  return (
16
- <HawaContainer maxWidth="normal">
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">
@@ -26,7 +26,7 @@ export const ReferralSettlement: React.FunctionComponent<
26
26
  control,
27
27
  } = methods
28
28
  return (
29
- <HawaContainer maxWidth="normal">
29
+ <HawaContainer>
30
30
  <div>
31
31
  <FormProvider {...methods}>
32
32
  <HawaTextField label={"IBAN"} />
@@ -15,7 +15,7 @@ export const ReferralStats: React.FunctionComponent<TReferralStats> = ({
15
15
  withdrawError,
16
16
  }) => {
17
17
  return (
18
- <HawaContainer maxWidth="normal">
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
@@ -23,6 +23,7 @@ export * from "./HawaMenu"
23
23
  export * from "./HawaDrawer"
24
24
  export * from "./HawaCopyrights"
25
25
  export * from "./HawaTimeline"
26
+ export * from "./Breadcrumb"
26
27
  // Inputs
27
28
  export * from "./HawaTextField"
28
29
  export * from "./HawaCardInput"
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);