@secretstache/wordpress-gutenberg 0.5.5 → 0.5.7

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/styles.css CHANGED
@@ -135,6 +135,8 @@
135
135
  .editor-styles-wrapper .block-editor-block-list__layout.is-root-container > .block-list-appender.wp-block:only-child,
136
136
  .editor-styles-wrapper .block-editor-block-list__layout.is-root-container > p.wp-block:only-child {
137
137
  margin: 2rem 0; }
138
+ .editor-styles-wrapper .block-editor-block-list__layout.is-root-container .components-notice {
139
+ color: #000; }
138
140
 
139
141
  .editor-sidebar .bc-url-input {
140
142
  min-width: 100%; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@secretstache/wordpress-gutenberg",
3
- "version": "0.5.5",
3
+ "version": "0.5.7",
4
4
  "description": "",
5
5
  "author": "Secret Stache",
6
6
  "license": "GPL-2.0-or-later",
@@ -1,5 +1,6 @@
1
1
  import { RangeControl, Tooltip } from '@wordpress/components';
2
2
  import { useCallback } from '@wordpress/element';
3
+ import { sidesBottom, sidesTop } from '@wordpress/icons';
3
4
 
4
5
  const generateMarks = (min, max) => [
5
6
  { value: min, label: min === -1 ? 'Default' : min.toString() },
@@ -76,6 +77,8 @@ export const SpacingControl = ({
76
77
  onChange={handleChange('margin', 'top')}
77
78
  disabled={disabledMargin.top}
78
79
  tooltip={marginTooltips.top}
80
+ afterIcon={sidesTop}
81
+ withInputField={false}
79
82
  />
80
83
 
81
84
  <Control
@@ -86,6 +89,8 @@ export const SpacingControl = ({
86
89
  onChange={handleChange('margin', 'bottom')}
87
90
  disabled={disabledMargin.bottom}
88
91
  tooltip={marginTooltips.bottom}
92
+ afterIcon={sidesBottom}
93
+ withInputField={false}
89
94
  />
90
95
  </>
91
96
  )}
@@ -100,6 +105,8 @@ export const SpacingControl = ({
100
105
  onChange={handleChange('padding', 'top')}
101
106
  disabled={disabledPadding.top}
102
107
  tooltip={paddingTooltips.top}
108
+ afterIcon={sidesTop}
109
+ withInputField={false}
103
110
  />
104
111
 
105
112
  <Control
@@ -110,6 +117,8 @@ export const SpacingControl = ({
110
117
  onChange={handleChange('padding', 'bottom')}
111
118
  disabled={disabledPadding.bottom}
112
119
  tooltip={paddingTooltips.bottom}
120
+ afterIcon={sidesBottom}
121
+ withInputField={false}
113
122
  />
114
123
  </>
115
124
  )}
@@ -62,6 +62,10 @@
62
62
  & > p.wp-block:only-child {
63
63
  margin: 2rem 0;
64
64
  }
65
+
66
+ .components-notice {
67
+ color: #000;
68
+ }
65
69
  }
66
70
 
67
71
  .editor-sidebar {