ywana-core8 0.0.328 → 0.0.331

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.328",
3
+ "version": "0.0.331",
4
4
  "description": "ywana-core8",
5
5
  "author": "Ernesto Roldan Garcia",
6
6
  "license": "MIT",
@@ -10,15 +10,17 @@ import './dialog.css'
10
10
  */
11
11
  export const Dialog = (props) => {
12
12
  const site = useContext(SiteContext)
13
- const { icon, title = "Dialog", children, onAction, actions, className } = props
13
+ const { icon, title = "Dialog", children, onAction, actions, className, eventPropagation = false } = props
14
14
 
15
15
  function close() {
16
16
  site.closeDialog()
17
17
  }
18
18
 
19
19
  function prevent(e) {
20
- e.preventDefault()
21
- e.stopPropagation()
20
+ if (!eventPropagation) {
21
+ e.preventDefault()
22
+ e.stopPropagation()
23
+ }
22
24
  }
23
25
 
24
26
  return (
@@ -42,7 +42,8 @@ export const ResetPasswordBox = ({ logo, title, children, onOK, onClose }) => {
42
42
  { children }
43
43
  </header>
44
44
  <main>
45
- <Text use="headline6">Change Password</Text>
45
+ <Text use="headline6">Change Password</Text>
46
+ <TextField label={tx(userLabel)} value={user} onChange={changeUser} onEnter={ok} outlined />
46
47
  <TextField id="password1" outlined icon="lock" type="password" label="New Password" lapse={100} onChange={changeField} onEnter={ok}/>
47
48
  <TextField id="password2" outlined icon="lock" type="password" label="Confirm New Password" lapse={100} onChange={changeField} onEnter={ok}/>
48
49
  { error ? <div className="error">{error}</div> : null}
@@ -29,7 +29,7 @@ export const UploadDialog = ({ label, target, accept, onSuccess, onClose }) => {
29
29
 
30
30
  const title = <Text use="headline6">{label}</Text>
31
31
  return (
32
- <Dialog title={title} open={true} onAction={onAction} actions={actions}>
32
+ <Dialog title={title} open={true} onAction={onAction} actions={actions} eventPropagation={true}>
33
33
  <Uploader label={label} accept={accept} target={target} onComplete={onComplete} />
34
34
  </Dialog>
35
35
  )