ywana-core8 0.1.19 → 0.1.21

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.1.19",
3
+ "version": "0.1.21",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -12,7 +12,7 @@ import './textarea.css'
12
12
  export const TextField = (props) => {
13
13
 
14
14
  const site = useContext(SiteContext)
15
- const { id, type = 'text', className, label, labelPosition = 'top', placeholder, value, outlined, readOnly = false, canClear = true, onChange, onEnter, onClick, onFocus, onBlur, autoComplete="off" } = props
15
+ const { id, type = 'text', className, label, labelPosition = 'top', placeholder, value, outlined, readOnly = false, canClear = true, onChange, onEnter, onClick, onFocus, onBlur, autoComplete="new-password" } = props
16
16
 
17
17
  function onKeyPress(event) {
18
18
  var key = event.charCode ? event.charCode : event.keyCode ? event.keyCode : 0;
@@ -64,7 +64,7 @@ export const TextField = (props) => {
64
64
 
65
65
  return (
66
66
  <div className={`${style} ${id} ${className}`} onClick={onClick}>
67
- <input id={id} type={type} placeholder={placeholderTxt} value={value} required onChange={change} onKeyDown={onKeyPress} onFocus={focus} onBlur={blur} readOnly={readOnly} step="any" autocomplete={autoComplete} />
67
+ <input id={id} type={type} placeholder={placeholderTxt} value={value} required onChange={change} onKeyDown={onKeyPress} onFocus={focus} onBlur={blur} readOnly={readOnly} step="any" autoComplete={autoComplete} />
68
68
  {readOnly === false && canClear && value && value.length > 0 ? <Icon icon="close" clickable size="small" action={clear} /> : null}
69
69
  {type === "password" ? <Icon id={`${id}-visibility`} icon="visibility_off" clickable size="small" action={toggle} /> : null}
70
70
  <span className="bar"></span>
@@ -132,7 +132,7 @@ export const FilesSearchBox = (props) => {
132
132
 
133
133
  return (
134
134
  <div className="file-searchbox">
135
- <TextField id="files-search-box" type="search" placeholder="Search..." onChange={searchChanged} outlined />
135
+ <TextField id="files-search-box" placeholder="Search..." onChange={searchChanged} outlined />
136
136
  </div>
137
137
  )
138
138
  }