@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.
- 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/SignInForm.tsx +2 -1
- package/src/elements/Breadcrumb.tsx +40 -0
- package/src/elements/HawaButton.tsx +2 -1
- 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.7a1984b7.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
|
@@ -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 ? (
|
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);
|