@sikka/hawa 0.0.107 → 0.0.109

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.
@@ -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.107",
3
+ "version": "0.0.109",
4
4
  "description": "UI Kit",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.es.js",
@@ -58,7 +58,7 @@ export const SignInForm: React.FunctionComponent<SignInFormTypes> = (props) => {
58
58
 
59
59
  return (
60
60
  <HawaContainer maxWidth="small">
61
- <form onSubmit={handleSubmit(props.handleSignIn)}>
61
+ <form onSubmit={handleSubmit((e) => props.handleSignIn(e))}>
62
62
  {props.showError && (
63
63
  <HawaAlert
64
64
  title={props.errorTitle}
@@ -150,6 +150,7 @@ export const SignInForm: React.FunctionComponent<SignInFormTypes> = (props) => {
150
150
  size="medium"
151
151
  width="full"
152
152
  type="submit"
153
+ // onClick={(e) => console.log("clicking")}
153
154
  >
154
155
  {props.texts.signInText}
155
156
  </HawaButton>
@@ -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
@@ -6,7 +6,7 @@ interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
6
6
  color?: "default" | "primary" | "secondary"
7
7
  width?: "full" | "normal" | "half"
8
8
  size?: "small" | "medium" | "large" | "noPadding"
9
- tooltip?: string
9
+ tooltip?: string,
10
10
  isLoading?: boolean
11
11
  }
12
12
 
@@ -95,6 +95,7 @@ export function HawaButton({
95
95
  )
96
96
  }
97
97
  disabled={disabled}
98
+ type={props.type}
98
99
  {...props}
99
100
  >
100
101
  {!isLoading ? (
@@ -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);