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/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +3 -1
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +3 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/table.js +1 -1
- package/src/html/textfield.js +2 -2
package/package.json
CHANGED
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">
|
package/src/html/textfield.js
CHANGED
@@ -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>
|