ywana-core8 0.0.802 → 0.0.804
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 +7 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +7 -4
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +7 -4
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain/EditContentDialog.js +2 -2
- package/src/site/page.js +2 -2
package/package.json
CHANGED
@@ -8,7 +8,7 @@ import { ContentEditor } from './ContentEditor'
|
|
8
8
|
/**
|
9
9
|
* Edit Content Dialog
|
10
10
|
*/
|
11
|
-
export const EditContentDialog = ({ label, type, value = {}, filter, validator, onOK, onError }) => {
|
11
|
+
export const EditContentDialog = ({ label, type, value = {}, filter, validator, onOK, className, onError }) => {
|
12
12
|
|
13
13
|
const site = useContext(SiteContext);
|
14
14
|
const [form, setForm] = useState(value)
|
@@ -48,7 +48,7 @@ export const EditContentDialog = ({ 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}/>
|
52
52
|
{errors.map(error => <Text use="overline" tag="div" className="error">{error}</Text>)}
|
53
53
|
</Dialog>
|
54
54
|
)
|
package/src/site/page.js
CHANGED
@@ -25,10 +25,10 @@ export const PageProvider = ({ context = {}, children }) => {
|
|
25
25
|
* Page
|
26
26
|
*/
|
27
27
|
export const Page = (props) => {
|
28
|
-
const { children, layout = "simple", context = {} } = props
|
28
|
+
const { children, layout = "simple", context = {}, className } = props
|
29
29
|
return (
|
30
30
|
<PageProvider context={context}>
|
31
|
-
<article className={`page6 ${layout}`}>
|
31
|
+
<article className={`page6 ${layout} ${className}`}>
|
32
32
|
{children}
|
33
33
|
</article>
|
34
34
|
</PageProvider>
|