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/dist/index.cjs +10 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +10 -3
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +10 -3
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/CreateContentDialog.js +1 -1
- package/src/widgets/login/LoginBox.js +2 -1
package/package.json
CHANGED
@@ -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=
|
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
|