ywana-core8 0.0.346 → 0.0.349

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.346",
3
+ "version": "0.0.349",
4
4
  "description": "ywana-core8",
5
5
  "author": "Ernesto Roldan Garcia",
6
6
  "license": "MIT",
@@ -8,7 +8,7 @@ import { ContentEditor } from './ContentEditor'
8
8
  /**
9
9
  * Create Content Dialog
10
10
  */
11
- export const CreateContentDialog = ({ label, type, value = {}, filter, validator, onOK, className, outlined={true} }) => {
11
+ export const CreateContentDialog = ({ label, type, value = {}, filter, validator, onOK, className, outlined=true }) => {
12
12
 
13
13
  const site = useContext(SiteContext);
14
14
  const [form, setForm] = useState(value)
@@ -9,6 +9,7 @@ export const LoginBox = ({
9
9
  logo, title,
10
10
  userLabel = "User",
11
11
  passwordLabel = "Password",
12
+ passwordValue = '',
12
13
  loginLabel = "Log In", onOK,
13
14
  forgotLabel = "Forgot Password ?", onForgot,
14
15
  message,
@@ -16,7 +17,7 @@ export const LoginBox = ({
16
17
  }) => {
17
18
 
18
19
  const [user, setUser] = useState('')
19
- const [password, setPassword] = useState('')
20
+ const [password, setPassword] = useState(passwordValue)
20
21
 
21
22
  function canOK() {
22
23
  return user && user.length > 0 && password && password.length > 0