ywana-core8 0.0.939 → 0.0.940
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 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +3 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +3 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/html/textfield.js +2 -2
package/package.json
CHANGED
package/src/html/textfield.js
CHANGED
@@ -118,7 +118,7 @@ export const TextArea = (props) => {
|
|
118
118
|
export const DropDown = (props) => {
|
119
119
|
|
120
120
|
const site = useContext(SiteContext)
|
121
|
-
const { id, options = [], value, onChange, predictive = false, readOnly = false, verbose = true, editable = false, onBlur, position="bottom"} = props
|
121
|
+
const { id, options = [], value, onChange, predictive = false, readOnly = false, verbose = true, editable = false, onBlur, position="bottom", className} = props
|
122
122
|
const [open, setOpen] = useState(false)
|
123
123
|
const [label, setLabel] = useState()
|
124
124
|
|
@@ -193,7 +193,7 @@ export const DropDown = (props) => {
|
|
193
193
|
|
194
194
|
const title = editable ? <div className='row'>{props.label}<Icon className="decorator" icon="edit" size="small" /></div> : props.label
|
195
195
|
return (
|
196
|
-
<div className=
|
196
|
+
<div className={`dropdown ${className}`}>
|
197
197
|
<TextField {...props} label={title} onClick={onFocus} value={label} onChange={change} onBlur={blur} readOnly={!predictive && !editable} />
|
198
198
|
{!readOnly ? <Icon icon="expand_more" clickable size="small" action={toggle} /> : null}
|
199
199
|
{renderOptions()}
|