ywana-core8 0.0.962 → 0.0.964

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.962",
3
+ "version": "0.0.964",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
package/src/html/table.js CHANGED
@@ -274,7 +274,7 @@ const ImageCellViewer = ({ id, value, uploadURL, onChange }) => {
274
274
  return uploadURL ? (
275
275
  <div className="image-cell">
276
276
  { value ? <img src={value} /> : <Icon icon="person" />}
277
- <Uploader icon="cloud_upload" target={uploadURL} onSuccess={success} onError={error} />
277
+ <Uploader view="icon" icon="cloud_upload" target={uploadURL} onSuccess={success} onError={error} />
278
278
  </div>
279
279
  ) : (
280
280
  <div className="image-cell">
@@ -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', label, labelPosition = 'top', placeholder, value, outlined, readOnly = false, canClear = true, onChange, onEnter, onClick, onFocus, onBlur } = props
15
+ const { id, type = 'text', className, label, labelPosition = 'top', placeholder, value, outlined, readOnly = false, canClear = true, onChange, onEnter, onClick, onFocus, onBlur } = props
16
16
 
17
17
  function onKeyPress(event) {
18
18
  var key = event.charCode ? event.charCode : event.keyCode ? event.keyCode : 0;
@@ -48,7 +48,7 @@ export const TextField = (props) => {
48
48
  const placeholderTxt = site.translate ? site.translate(placeholder) : placeholder
49
49
 
50
50
  return (
51
- <div className={`${style} ${id}`} onClick={onClick}>
51
+ <div className={`${style} ${id} ${className}`} onClick={onClick}>
52
52
  <input id={id} type={type} placeholder={placeholderTxt} value={value} required onChange={change} onKeyDown={onKeyPress} onFocus={focus} onBlur={blur} readOnly={readOnly} step="any" />
53
53
  {readOnly === false && canClear && value && value.length > 0 ? <Icon icon="close" clickable size="small" action={clear} /> : null}
54
54
  <span className="bar"></span>