ywana-core8 0.0.845 → 0.0.847
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/index.cjs +14 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +16 -0
- package/dist/index.css.map +1 -1
- package/dist/index.modern.js +12 -8
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +16 -14
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/textfield.css +4 -0
- package/src/site/site.js +2 -0
- package/src/widgets/login/LoginBox.css +13 -0
- package/src/widgets/login/LoginBox.js +3 -3
- package/src/widgets/login/LoginBox.test.js +1 -1
package/package.json
CHANGED
package/src/html/textfield.css
CHANGED
package/src/site/site.js
CHANGED
@@ -5,6 +5,8 @@ import { Header } from '../html/header'
|
|
5
5
|
import { Tooltip } from '../html/tooltip'
|
6
6
|
import { Page } from './page'
|
7
7
|
import { SiteContext } from './siteContext'
|
8
|
+
import { ReactNotifications, Store } from 'react-notifications-component'
|
9
|
+
import 'react-notifications-component/dist/theme.css'
|
8
10
|
import './site.css'
|
9
11
|
|
10
12
|
/**
|
@@ -43,6 +43,7 @@
|
|
43
43
|
}
|
44
44
|
|
45
45
|
.load-box {
|
46
|
+
width: 100%;
|
46
47
|
color: var(--primary-color-text);
|
47
48
|
background-color: var(--primary-color);
|
48
49
|
display: flex;
|
@@ -77,6 +78,7 @@
|
|
77
78
|
padding: 1rem;
|
78
79
|
display: flex;
|
79
80
|
flex-direction: column;
|
81
|
+
align-items: flex-end;
|
80
82
|
}
|
81
83
|
|
82
84
|
@keyframes fadeIn {
|
@@ -87,3 +89,14 @@
|
|
87
89
|
opacity: 1;
|
88
90
|
}
|
89
91
|
}
|
92
|
+
|
93
|
+
.login-box .login-button {
|
94
|
+
animation: fadeIn 0.5s;
|
95
|
+
width: 100%;
|
96
|
+
}
|
97
|
+
|
98
|
+
.login-box .forgot-button {
|
99
|
+
text-align: right;
|
100
|
+
font-weight: 500;
|
101
|
+
max-width: 15rem;
|
102
|
+
}
|
@@ -12,7 +12,7 @@ export const LoginBox = ({
|
|
12
12
|
passwordLabel = "Password",
|
13
13
|
passwordValue = '',
|
14
14
|
loginLabel = "Log In", onOK,
|
15
|
-
forgotLabel = "Forgot Password
|
15
|
+
forgotLabel = "Forgot Password?", onForgot,
|
16
16
|
message,
|
17
17
|
loading
|
18
18
|
}) => {
|
@@ -59,8 +59,8 @@ export const LoginBox = ({
|
|
59
59
|
<TextField label={tx(passwordLabel)} value={password} onChange={changePassword} onEnter={ok} type="password" outlined />
|
60
60
|
</main>
|
61
61
|
<footer>
|
62
|
-
{
|
63
|
-
{
|
62
|
+
{ loading ? <div className="load-box"><Icon icon="refresh" /></div> : <Button label={tx(loginLabel)} action={ok} disabled={!canOK()} raised className="login-button" /> }
|
63
|
+
{ onForgot ? <Button label={tx(forgotLabel)} action={forgot} disabled={!canForgot()} className="forgot-button"/> : null }
|
64
64
|
{ message ? <div className="message"><Text>{message}</Text></div> : null}
|
65
65
|
</footer>
|
66
66
|
</div>
|