@contentful/field-editor-json 4.0.9-canary.8 → 4.1.0
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.
|
@@ -60,6 +60,11 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
60
60
|
return newObj;
|
|
61
61
|
}
|
|
62
62
|
const styles = {
|
|
63
|
+
arrowButton: (0, _css.css)({
|
|
64
|
+
'& > span:first-child': {
|
|
65
|
+
paddingBottom: '2px'
|
|
66
|
+
}
|
|
67
|
+
}),
|
|
63
68
|
toolbar: (0, _css.css)({
|
|
64
69
|
display: 'flex',
|
|
65
70
|
alignItems: 'center',
|
|
@@ -77,8 +82,9 @@ function JsonEditorToolbar(props) {
|
|
|
77
82
|
}, /*#__PURE__*/ _react.createElement(_f36components.Flex, {
|
|
78
83
|
alignItems: "center"
|
|
79
84
|
}, /*#__PURE__*/ _react.createElement(_f36components.Button, {
|
|
85
|
+
className: styles.arrowButton,
|
|
80
86
|
variant: "transparent",
|
|
81
|
-
startIcon: /*#__PURE__*/ _react.createElement(_f36icons.
|
|
87
|
+
startIcon: /*#__PURE__*/ _react.createElement(_f36icons.ArrowUUpLeftIcon, {
|
|
82
88
|
size: "small"
|
|
83
89
|
}),
|
|
84
90
|
size: "small",
|
|
@@ -88,9 +94,10 @@ function JsonEditorToolbar(props) {
|
|
|
88
94
|
props.onUndo();
|
|
89
95
|
}
|
|
90
96
|
}, "Undo"), /*#__PURE__*/ _react.createElement(_f36components.Button, {
|
|
97
|
+
className: styles.arrowButton,
|
|
91
98
|
variant: "transparent",
|
|
92
99
|
size: "small",
|
|
93
|
-
startIcon: /*#__PURE__*/ _react.createElement(_f36icons.
|
|
100
|
+
startIcon: /*#__PURE__*/ _react.createElement(_f36icons.ArrowUUpRightIcon, {
|
|
94
101
|
size: "small"
|
|
95
102
|
}),
|
|
96
103
|
isDisabled: props.isRedoDisabled,
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Button, Flex } from '@contentful/f36-components';
|
|
3
|
-
import {
|
|
3
|
+
import { ArrowUUpLeftIcon, ArrowUUpRightIcon } from '@contentful/f36-icons';
|
|
4
4
|
import tokens from '@contentful/f36-tokens';
|
|
5
5
|
import { css } from '@emotion/css';
|
|
6
6
|
const styles = {
|
|
7
|
+
arrowButton: css({
|
|
8
|
+
'& > span:first-child': {
|
|
9
|
+
paddingBottom: '2px'
|
|
10
|
+
}
|
|
11
|
+
}),
|
|
7
12
|
toolbar: css({
|
|
8
13
|
display: 'flex',
|
|
9
14
|
alignItems: 'center',
|
|
@@ -21,8 +26,9 @@ export function JsonEditorToolbar(props) {
|
|
|
21
26
|
}, /*#__PURE__*/ React.createElement(Flex, {
|
|
22
27
|
alignItems: "center"
|
|
23
28
|
}, /*#__PURE__*/ React.createElement(Button, {
|
|
29
|
+
className: styles.arrowButton,
|
|
24
30
|
variant: "transparent",
|
|
25
|
-
startIcon: /*#__PURE__*/ React.createElement(
|
|
31
|
+
startIcon: /*#__PURE__*/ React.createElement(ArrowUUpLeftIcon, {
|
|
26
32
|
size: "small"
|
|
27
33
|
}),
|
|
28
34
|
size: "small",
|
|
@@ -32,9 +38,10 @@ export function JsonEditorToolbar(props) {
|
|
|
32
38
|
props.onUndo();
|
|
33
39
|
}
|
|
34
40
|
}, "Undo"), /*#__PURE__*/ React.createElement(Button, {
|
|
41
|
+
className: styles.arrowButton,
|
|
35
42
|
variant: "transparent",
|
|
36
43
|
size: "small",
|
|
37
|
-
startIcon: /*#__PURE__*/ React.createElement(
|
|
44
|
+
startIcon: /*#__PURE__*/ React.createElement(ArrowUUpRightIcon, {
|
|
38
45
|
size: "small"
|
|
39
46
|
}),
|
|
40
47
|
isDisabled: props.isRedoDisabled,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/field-editor-json",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"registry": "https://npm.pkg.github.com/"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "dc9761c82167b98438341f294cef0ab5be600280"
|
|
61
61
|
}
|