ywana-core8 0.0.846 → 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.846",
3
+ "version": "0.0.847",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -86,6 +86,10 @@ input:read-only {
86
86
  border: 0px !important;
87
87
  }
88
88
 
89
+ input:-webkit-autofill ~ label {
90
+ top: .3rem;
91
+ }
92
+
89
93
  .textfield input[type="date"] ~ label {
90
94
  top: .3rem;
91
95
  font-size: .8rem;
@@ -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 ?", onForgot,
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
- { onForgot ? <Button label={tx(forgotLabel)} action={forgot} disabled={!canForgot()}/> : null }
63
- { loading ? <div className="load-box"><Icon icon="refresh" /></div> : <Button label={tx(loginLabel)} action={ok} disabled={!canOK()} raised /> }
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>
@@ -5,7 +5,7 @@ const LoginBoxTest = (prop) => {
5
5
 
6
6
  return (
7
7
 
8
- <LoginBox />
8
+ <LoginBox onForgot />
9
9
 
10
10
  )
11
11
  }