ywana-core8 0.0.345 → 0.0.346
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
@@ -8,7 +8,7 @@ import { ContentEditor } from './ContentEditor'
|
|
8
8
|
/**
|
9
9
|
* Create Content Dialog
|
10
10
|
*/
|
11
|
-
export const CreateContentDialog = ({ label, type, value = {}, filter, validator, onOK,
|
11
|
+
export const CreateContentDialog = ({ label, type, value = {}, filter, validator, onOK, className, outlined={true} }) => {
|
12
12
|
|
13
13
|
const site = useContext(SiteContext);
|
14
14
|
const [form, setForm] = useState(value)
|
@@ -48,7 +48,7 @@ export const CreateContentDialog = ({ label, type, value = {}, filter, validator
|
|
48
48
|
const content = new Content(type, form)
|
49
49
|
return (
|
50
50
|
<Dialog title={title} open={true} onAction={onAction} actions={actions}>
|
51
|
-
<ContentEditor content={content} onChange={change} filter={filterForm} />
|
51
|
+
<ContentEditor content={content} onChange={change} filter={filterForm} className={className} outlined={outlined}/>
|
52
52
|
{errors.map(error => <Text use="overline" tag="div" className="error">{error}</Text>)}
|
53
53
|
</Dialog>
|
54
54
|
)
|