@secretstache/wordpress-gutenberg 0.5.11 → 0.5.12
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/build/index.js +1 -1
- package/build/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/EmptyBlockAppender.js +11 -4
package/package.json
CHANGED
@@ -1,14 +1,17 @@
|
|
1
1
|
import { InnerBlocks } from '@wordpress/block-editor';
|
2
|
+
import classNames from 'classnames';
|
2
3
|
|
3
4
|
export const EmptyBlockAppender = (props) => {
|
4
5
|
const {
|
5
6
|
showIcon = true,
|
7
|
+
showAppender = true,
|
6
8
|
title = 'This block is empty',
|
7
9
|
text = 'Use the "+" button below to add content blocks',
|
10
|
+
className,
|
8
11
|
} = props;
|
9
12
|
|
10
13
|
return (
|
11
|
-
<div className=
|
14
|
+
<div className={classNames('empty-block-appender', className)}>
|
12
15
|
<div className="empty-block-appender__content">
|
13
16
|
{
|
14
17
|
showIcon && (
|
@@ -22,9 +25,13 @@ export const EmptyBlockAppender = (props) => {
|
|
22
25
|
<p className="empty-block-appender__text">{text}</p>
|
23
26
|
</div>
|
24
27
|
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
+
{
|
29
|
+
showAppender && (
|
30
|
+
<div className="empty-block-appender__button">
|
31
|
+
<InnerBlocks.ButtonBlockAppender />
|
32
|
+
</div>
|
33
|
+
)
|
34
|
+
}
|
28
35
|
</div>
|
29
36
|
);
|
30
37
|
};
|