@sikka/hawa 0.0.88 → 0.0.90
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/README.md +1 -1
- package/dist/styles.css +4 -10
- package/es/index.es.js +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/src/blocks/AuthForms/AppLanding.js +14 -10
- package/src/blocks/AuthForms/SignInForm.js +6 -1
- package/src/elements/HawaButton.js +5 -1
- package/src/elements/HawaModal.js +2 -54
- package/src/styles.css +4 -10
package/package.json
CHANGED
|
@@ -6,16 +6,20 @@ import { HawaContainer } from "../../layout/HawaContainer";
|
|
|
6
6
|
export const AppLanding = (props) => {
|
|
7
7
|
return (
|
|
8
8
|
<HawaContainer>
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
9
|
+
{props.handleSignIn && (
|
|
10
|
+
<HawaButton
|
|
11
|
+
fullWidth
|
|
12
|
+
text={props.texts.signIn}
|
|
13
|
+
onClick={props.handleSignIn}
|
|
14
|
+
/>
|
|
15
|
+
)}
|
|
16
|
+
{props.handleSignUp && (
|
|
17
|
+
<HawaButton
|
|
18
|
+
fullWidth
|
|
19
|
+
text={props.texts.signUp}
|
|
20
|
+
onClick={props.handleSignUp}
|
|
21
|
+
/>
|
|
22
|
+
)}
|
|
19
23
|
<HawaButton
|
|
20
24
|
fullWidth
|
|
21
25
|
text={props.texts.lang}
|
|
@@ -96,7 +96,12 @@ export const SignInForm = (props) => {
|
|
|
96
96
|
{props.texts.forgotPasswordText}
|
|
97
97
|
</div>
|
|
98
98
|
)}
|
|
99
|
-
<HawaButton
|
|
99
|
+
<HawaButton
|
|
100
|
+
fullWidth
|
|
101
|
+
isLoading={props.isLoading}
|
|
102
|
+
type="submit"
|
|
103
|
+
text={props.texts.signInText}
|
|
104
|
+
/>{" "}
|
|
100
105
|
{!props.withoutSignUp && (
|
|
101
106
|
<div className="dark:text-gray-300 font-semibold p-3 text-center text-sm">
|
|
102
107
|
{props.texts.newUserText}{" "}
|
|
@@ -20,6 +20,10 @@ export const HawaButton = ({
|
|
|
20
20
|
styles =
|
|
21
21
|
"my-1 w-full flex justify-center text-white bg-primary-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center inline-flex items-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800";
|
|
22
22
|
}
|
|
23
|
+
if (props.normalWidth) {
|
|
24
|
+
styles =
|
|
25
|
+
"text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800";
|
|
26
|
+
}
|
|
23
27
|
if (iconOnly) {
|
|
24
28
|
iconStyle = "flex flex-col justify-center items-center";
|
|
25
29
|
}
|
|
@@ -41,7 +45,7 @@ export const HawaButton = ({
|
|
|
41
45
|
) : (
|
|
42
46
|
<div className="flex flex-row gap-x-3">
|
|
43
47
|
<div className="border-2 border-gray-400 border-t-white animate-spin text-white rounded-full h-5 w-5"></div>
|
|
44
|
-
<div>{loadingText}</div>
|
|
48
|
+
{/* <div>{loadingText}</div> */}
|
|
45
49
|
</div>
|
|
46
50
|
)}
|
|
47
51
|
</button>
|
|
@@ -60,64 +60,12 @@ export const HawaModal = ({
|
|
|
60
60
|
<span className="sr-only">Close modal</span>
|
|
61
61
|
</button>
|
|
62
62
|
</div>
|
|
63
|
-
<div className="p-6 space-y-6">
|
|
64
|
-
<p className="text-base leading-relaxed text-gray-500 dark:text-gray-400">
|
|
65
|
-
With less than a month to go before the European Union enacts new
|
|
66
|
-
consumer privacy laws for its citizens, companies around the world
|
|
67
|
-
are updating their terms of service agreements to comply.
|
|
68
|
-
</p>
|
|
69
|
-
<p className="text-base leading-relaxed text-gray-500 dark:text-gray-400">
|
|
70
|
-
The European Union’s General Data Protection Regulation (G.D.P.R.)
|
|
71
|
-
goes into effect on May 25 and is meant to ensure a common set of
|
|
72
|
-
data rights in the European Union. It requires organizations to
|
|
73
|
-
notify users as soon as possible of high-risk data breaches that
|
|
74
|
-
could personally affect them.
|
|
75
|
-
</p>
|
|
76
|
-
</div>
|
|
63
|
+
<div className="p-6 space-y-6">{props.children}</div>
|
|
77
64
|
<div className="flex items-center p-6 space-x-2 rounded-b border-t border-gray-200 dark:border-gray-600">
|
|
78
|
-
|
|
79
|
-
data-modal-toggle="defaultModal"
|
|
80
|
-
type="button"
|
|
81
|
-
className="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"
|
|
82
|
-
>
|
|
83
|
-
I accept
|
|
84
|
-
</button>
|
|
85
|
-
<button
|
|
86
|
-
data-modal-toggle="defaultModal"
|
|
87
|
-
type="button"
|
|
88
|
-
className="text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-blue-300 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"
|
|
89
|
-
>
|
|
90
|
-
Decline
|
|
91
|
-
</button>
|
|
65
|
+
{props.actions}
|
|
92
66
|
</div>
|
|
93
67
|
</div>
|
|
94
68
|
</div>
|
|
95
69
|
</div>
|
|
96
70
|
);
|
|
97
71
|
};
|
|
98
|
-
|
|
99
|
-
export const ModalContent = ({ children, ...props }) => {
|
|
100
|
-
return <div className="p-6 space-y-6">{children}</div>;
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
export const ModalFooter = ({ children, ...props }) => {
|
|
104
|
-
return (
|
|
105
|
-
<div className="flex items-center p-6 space-x-2 rounded-b border-t border-gray-200 dark:border-gray-600">
|
|
106
|
-
{/* <button
|
|
107
|
-
data-modal-toggle="defaultModal"
|
|
108
|
-
type="button"
|
|
109
|
-
className="text-white bg-blue-700 hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 font-medium rounded-lg text-sm px-5 py-2.5 text-center dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800"
|
|
110
|
-
>
|
|
111
|
-
I accept
|
|
112
|
-
</button>
|
|
113
|
-
<button
|
|
114
|
-
data-modal-toggle="defaultModal"
|
|
115
|
-
type="button"
|
|
116
|
-
className="text-gray-500 bg-white hover:bg-gray-100 focus:ring-4 focus:outline-none focus:ring-blue-300 rounded-lg border border-gray-200 text-sm font-medium px-5 py-2.5 hover:text-gray-900 focus:z-10 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-500 dark:hover:text-white dark:hover:bg-gray-600 dark:focus:ring-gray-600"
|
|
117
|
-
>
|
|
118
|
-
Decline
|
|
119
|
-
</button> */}
|
|
120
|
-
{children}
|
|
121
|
-
</div>
|
|
122
|
-
);
|
|
123
|
-
};
|
package/src/styles.css
CHANGED
|
@@ -1274,9 +1274,6 @@ video {
|
|
|
1274
1274
|
.uppercase {
|
|
1275
1275
|
text-transform: uppercase;
|
|
1276
1276
|
}
|
|
1277
|
-
.leading-relaxed {
|
|
1278
|
-
line-height: 1.625;
|
|
1279
|
-
}
|
|
1280
1277
|
.leading-tight {
|
|
1281
1278
|
line-height: 1.25;
|
|
1282
1279
|
}
|
|
@@ -1486,9 +1483,6 @@ body {
|
|
|
1486
1483
|
-webkit-text-decoration-line: underline;
|
|
1487
1484
|
text-decoration-line: underline;
|
|
1488
1485
|
}
|
|
1489
|
-
.focus\:z-10:focus {
|
|
1490
|
-
z-index: 10;
|
|
1491
|
-
}
|
|
1492
1486
|
.focus\:border-blue-500:focus {
|
|
1493
1487
|
--tw-border-opacity: 1;
|
|
1494
1488
|
border-color: rgb(59 130 246 / var(--tw-border-opacity));
|
|
@@ -1580,14 +1574,14 @@ body {
|
|
|
1580
1574
|
--tw-border-opacity: 1;
|
|
1581
1575
|
border-color: rgb(75 85 99 / var(--tw-border-opacity));
|
|
1582
1576
|
}
|
|
1583
|
-
.dark .dark\:border-gray-500 {
|
|
1584
|
-
--tw-border-opacity: 1;
|
|
1585
|
-
border-color: rgb(107 114 128 / var(--tw-border-opacity));
|
|
1586
|
-
}
|
|
1587
1577
|
.dark .dark\:border-blue-500 {
|
|
1588
1578
|
--tw-border-opacity: 1;
|
|
1589
1579
|
border-color: rgb(59 130 246 / var(--tw-border-opacity));
|
|
1590
1580
|
}
|
|
1581
|
+
.dark .dark\:border-gray-500 {
|
|
1582
|
+
--tw-border-opacity: 1;
|
|
1583
|
+
border-color: rgb(107 114 128 / var(--tw-border-opacity));
|
|
1584
|
+
}
|
|
1591
1585
|
.dark .dark\:bg-gray-800 {
|
|
1592
1586
|
--tw-bg-opacity: 1;
|
|
1593
1587
|
background-color: rgb(31 41 55 / var(--tw-bg-opacity));
|