@sikka/hawa 0.0.78 → 0.0.80
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 +0 -3
- package/es/index.es.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/src/blocks/AuthForms/SignInForm.js +15 -10
- package/src/blocks/AuthForms/SignInPhone.js +1 -0
- package/src/elements/HawaPhoneInput.js +1 -3
- package/src/elements/HawaRange.js +3 -2
- package/src/elements/HawaTabs.js +1 -1
- package/src/elements/HawaTooltip.js +12 -7
- package/src/styles.css +0 -3
- package/storybook-static/{0.cf71f8aa82edef0a7186.manager.bundle.js → 0.60b9c65419c3ce80ab72.manager.bundle.js} +2 -2
- package/storybook-static/{0.1104ca18.iframe.bundle.js.LICENSE.txt → 0.60b9c65419c3ce80ab72.manager.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/0.e2b91f98.iframe.bundle.js +3 -0
- package/storybook-static/{0.cf71f8aa82edef0a7186.manager.bundle.js.LICENSE.txt → 0.e2b91f98.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/0.e2b91f98.iframe.bundle.js.map +1 -0
- package/storybook-static/{1.e3eafd38.iframe.bundle.js → 1.e2210f7b.iframe.bundle.js} +0 -0
- package/storybook-static/1.fcf12768b56cacc8bdd8.manager.bundle.js +1 -0
- package/storybook-static/5.c1ea708e0305a3f2690d.manager.bundle.js +2 -0
- package/storybook-static/{5.5b799f3fbf64cec8e51a.manager.bundle.js.LICENSE.txt → 5.c1ea708e0305a3f2690d.manager.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/{6.b34ce31193a7fa1dd965.manager.bundle.js → 6.aa9b5ae07e5f3bc21475.manager.bundle.js} +1 -1
- package/storybook-static/{6.6023eba1.iframe.bundle.js → 6.fadd6632.iframe.bundle.js} +2 -2
- package/storybook-static/{6.6023eba1.iframe.bundle.js.LICENSE.txt → 6.fadd6632.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/6.fadd6632.iframe.bundle.js.map +1 -0
- package/storybook-static/{7.632f8551.iframe.bundle.js → 7.12834585.iframe.bundle.js} +0 -0
- package/storybook-static/{7.72879af713f755a7aa7e.manager.bundle.js → 7.f95843e9a2777ac17dbf.manager.bundle.js} +1 -1
- package/storybook-static/{8.f9b98ef3e089be1a16d6.manager.bundle.js → 8.15e99a30b6a9bc116f34.manager.bundle.js} +2 -2
- package/storybook-static/{8.f9b98ef3e089be1a16d6.manager.bundle.js.LICENSE.txt → 8.15e99a30b6a9bc116f34.manager.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/{9.63a5cf7a.iframe.bundle.js → 9.51450e03.iframe.bundle.js} +2 -2
- package/storybook-static/{9.63a5cf7a.iframe.bundle.js.LICENSE.txt → 9.51450e03.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/9.51450e03.iframe.bundle.js.map +1 -0
- package/storybook-static/{9.1e1335092fade49cc986.manager.bundle.js → 9.78e4df0068efee922f9a.manager.bundle.js} +1 -1
- package/storybook-static/iframe.html +1 -1
- package/storybook-static/index.html +1 -1
- package/storybook-static/main.2539e901.iframe.bundle.js +1 -0
- package/storybook-static/main.3b67cd32d74b4c684f1b.manager.bundle.js +1 -0
- package/storybook-static/project.json +1 -1
- package/storybook-static/{runtime~main.67ec6e92.iframe.bundle.js → runtime~main.49eed76e.iframe.bundle.js} +1 -1
- package/storybook-static/{runtime~main.a58df7ba92d01c5088d3.manager.bundle.js → runtime~main.4d99c291be326901006a.manager.bundle.js} +1 -1
- package/storybook-static/vendors~main.86108d25403f3f41d9ea.manager.bundle.js +2 -0
- package/storybook-static/{vendors~main.d13ba71108048897ea4a.manager.bundle.js.LICENSE.txt → vendors~main.86108d25403f3f41d9ea.manager.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/vendors~main.a425b282.iframe.bundle.js +3 -0
- package/storybook-static/{vendors~main.2c1e652d.iframe.bundle.js.LICENSE.txt → vendors~main.a425b282.iframe.bundle.js.LICENSE.txt} +0 -0
- package/storybook-static/vendors~main.a425b282.iframe.bundle.js.map +1 -0
- package/tailwind.config.js +1 -1
- package/storybook-static/0.1104ca18.iframe.bundle.js +0 -3
- package/storybook-static/0.1104ca18.iframe.bundle.js.map +0 -1
- package/storybook-static/1.7e6ec5c45ae5b70c5149.manager.bundle.js +0 -1
- package/storybook-static/5.5b799f3fbf64cec8e51a.manager.bundle.js +0 -2
- package/storybook-static/6.6023eba1.iframe.bundle.js.map +0 -1
- package/storybook-static/9.63a5cf7a.iframe.bundle.js.map +0 -1
- package/storybook-static/main.4bd27e4e7faa098302d1.manager.bundle.js +0 -1
- package/storybook-static/main.ec5cf911.iframe.bundle.js +0 -1
- package/storybook-static/vendors~main.2c1e652d.iframe.bundle.js +0 -3
- package/storybook-static/vendors~main.2c1e652d.iframe.bundle.js.map +0 -1
- package/storybook-static/vendors~main.d13ba71108048897ea4a.manager.bundle.js +0 -2
package/package.json
CHANGED
|
@@ -74,15 +74,17 @@ export const SignInForm = (props) => {
|
|
|
74
74
|
{props.texts.forgotPasswordText}
|
|
75
75
|
</div>
|
|
76
76
|
<HawaButton fullWidth type="submit" text={props.texts.signInText} />{" "}
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
77
|
+
{!props.withoutSignUp && (
|
|
78
|
+
<div className="font-semibold p-3 text-center text-sm">
|
|
79
|
+
{props.texts.newUserText}{" "}
|
|
80
|
+
<span
|
|
81
|
+
onClick={props.handleRouteToSignUp}
|
|
82
|
+
className="text-blue-600 cursor-pointer"
|
|
83
|
+
>
|
|
84
|
+
{props.texts.signUpText}
|
|
85
|
+
</span>
|
|
86
|
+
</div>
|
|
87
|
+
)}
|
|
86
88
|
</form>
|
|
87
89
|
{/* <Divider /> */}
|
|
88
90
|
{/* <div className="divide-y divide-gray-900"></div> */}
|
|
@@ -141,5 +143,8 @@ SignInForm.propTypes = {
|
|
|
141
143
|
handleRouteToSignUp: PropTypes.func,
|
|
142
144
|
handleGoogleSignIn: PropTypes.func,
|
|
143
145
|
handleGithubSignIn: PropTypes.func,
|
|
144
|
-
handleTwitterSignIn: PropTypes.func
|
|
146
|
+
handleTwitterSignIn: PropTypes.func,
|
|
147
|
+
handleForgotPassword: PropTypes.func,
|
|
148
|
+
|
|
149
|
+
withoutSignUp: PropTypes.bool
|
|
145
150
|
};
|
|
@@ -85,9 +85,7 @@ export default function HawaPhoneInput({ preferredCountry }) {
|
|
|
85
85
|
setSelectedCountry(newValue);
|
|
86
86
|
}}
|
|
87
87
|
/>
|
|
88
|
-
<
|
|
89
|
-
<input className="bg-gray-50 border rounded-l-none border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 border-l-0" />
|
|
90
|
-
</div>
|
|
88
|
+
<input className="bg-gray-50 border rounded-l-none border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-full p-2.5 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500 border-l-0" />
|
|
91
89
|
</div>
|
|
92
90
|
);
|
|
93
91
|
}
|
|
@@ -6,7 +6,7 @@ export const HawaRange = (props) => {
|
|
|
6
6
|
<div>
|
|
7
7
|
{props.label && (
|
|
8
8
|
<label
|
|
9
|
-
|
|
9
|
+
htmlFor="default-range"
|
|
10
10
|
className="block mb-2 text-sm font-medium text-gray-900 dark:text-gray-300"
|
|
11
11
|
>
|
|
12
12
|
{props.label}
|
|
@@ -17,7 +17,8 @@ export const HawaRange = (props) => {
|
|
|
17
17
|
<input
|
|
18
18
|
id="default-range"
|
|
19
19
|
type="range"
|
|
20
|
-
value=
|
|
20
|
+
value={props.value}
|
|
21
|
+
onChange={props.handleChange}
|
|
21
22
|
className="w-fit h-2 bg-gray-200 rounded-lg appearance-none cursor-pointer dark:bg-gray-700"
|
|
22
23
|
/>
|
|
23
24
|
<div className="ml-2">{props.endElement}</div>{" "}
|
package/src/elements/HawaTabs.js
CHANGED
|
@@ -11,7 +11,7 @@ export const HawaTabs = (props) => {
|
|
|
11
11
|
<div>
|
|
12
12
|
<ul className="bg-gray-100 w-fit rounded-lg flex flex-wrap text-sm font-medium text-center text-gray-500 dark:text-gray-400">
|
|
13
13
|
{props.options.map((opt) => (
|
|
14
|
-
<li
|
|
14
|
+
<li >
|
|
15
15
|
<button
|
|
16
16
|
aria-current="page"
|
|
17
17
|
onClick={() => {
|
|
@@ -2,13 +2,18 @@ import React from "react";
|
|
|
2
2
|
|
|
3
3
|
export const HawaTooltip = (props) => {
|
|
4
4
|
return (
|
|
5
|
-
<div
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
<div>
|
|
6
|
+
<div
|
|
7
|
+
id={props.tooltipID}
|
|
8
|
+
role="tooltip"
|
|
9
|
+
// className="inline-block absolute py-2 px-3"
|
|
10
|
+
className="inline-block opacity-0 absolute z-10 py-2 px-3 text-sm font-medium text-white bg-gray-900 rounded-lg shadow-sm transition-opacity duration-300 tooltip dark:bg-gray-700"
|
|
11
|
+
>
|
|
12
|
+
{props.content}
|
|
13
|
+
<div className="tooltip-arrow" data-popper-arrow></div>
|
|
14
|
+
</div>
|
|
15
|
+
|
|
16
|
+
<div onMouseEnter={() => console.log("hovering")}>{props.children}</div>
|
|
12
17
|
</div>
|
|
13
18
|
);
|
|
14
19
|
};
|