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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ywana-core8",
3
- "version": "0.0.939",
3
+ "version": "0.0.940",
4
4
  "description": "ywana-core8",
5
5
  "homepage": "https://ywana.github.io/workspace",
6
6
  "author": "Ernesto Roldan Garcia",
@@ -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="dropdown">
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()}