@secretstache/wordpress-gutenberg 0.5.6 → 0.5.8
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,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
|
)}
|