@contentful/field-editor-checkbox 1.7.6-canary.1 → 2.0.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.
|
@@ -11,8 +11,8 @@ Object.defineProperty(exports, "CheckboxEditor", {
|
|
|
11
11
|
const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
|
|
12
12
|
const _f36components = require("@contentful/f36-components");
|
|
13
13
|
const _fieldeditorshared = require("@contentful/field-editor-shared");
|
|
14
|
+
const _css = require("@emotion/css");
|
|
14
15
|
const _core = require("@lingui/core");
|
|
15
|
-
const _emotion = require("emotion");
|
|
16
16
|
const _get = /*#__PURE__*/ _interop_require_default(require("lodash/get"));
|
|
17
17
|
const _nanoid = require("nanoid");
|
|
18
18
|
const _styles = /*#__PURE__*/ _interop_require_wildcard(require("./styles"));
|
|
@@ -134,7 +134,7 @@ function CheckboxEditor(props) {
|
|
|
134
134
|
];
|
|
135
135
|
return /*#__PURE__*/ _react.createElement(_f36components.Form, {
|
|
136
136
|
testId: "checkbox-editor",
|
|
137
|
-
className: (0,
|
|
137
|
+
className: (0, _css.cx)(_styles.form, direction === 'rtl' ? _styles.rightToLeft : '')
|
|
138
138
|
}, mergedOptions.map((item)=>/*#__PURE__*/ _react.createElement(_f36components.Box, {
|
|
139
139
|
key: item.id,
|
|
140
140
|
marginBottom: "spacingS"
|
package/dist/cjs/styles.js
CHANGED
|
@@ -23,22 +23,22 @@ _export(exports, {
|
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
25
|
const _f36tokens = /*#__PURE__*/ _interop_require_default(require("@contentful/f36-tokens"));
|
|
26
|
-
const
|
|
26
|
+
const _css = require("@emotion/css");
|
|
27
27
|
function _interop_require_default(obj) {
|
|
28
28
|
return obj && obj.__esModule ? obj : {
|
|
29
29
|
default: obj
|
|
30
30
|
};
|
|
31
31
|
}
|
|
32
|
-
const form = (0,
|
|
32
|
+
const form = (0, _css.css)({
|
|
33
33
|
marginTop: _f36tokens.default.spacingS
|
|
34
34
|
});
|
|
35
|
-
const rightToLeft = (0,
|
|
35
|
+
const rightToLeft = (0, _css.css)({
|
|
36
36
|
direction: 'rtl'
|
|
37
37
|
});
|
|
38
|
-
const invalidText = (0,
|
|
38
|
+
const invalidText = (0, _css.css)({
|
|
39
39
|
color: _f36tokens.default.red500,
|
|
40
40
|
marginLeft: _f36tokens.default.spacing2Xs
|
|
41
41
|
});
|
|
42
|
-
const removeBtn = (0,
|
|
42
|
+
const removeBtn = (0, _css.css)({
|
|
43
43
|
marginLeft: _f36tokens.default.spacingL
|
|
44
44
|
});
|
|
@@ -3,8 +3,8 @@ import { useState } from 'react';
|
|
|
3
3
|
import { Checkbox, Box } from '@contentful/f36-components';
|
|
4
4
|
import { TextLink, Form } from '@contentful/f36-components';
|
|
5
5
|
import { FieldConnector, PredefinedValuesError } from '@contentful/field-editor-shared';
|
|
6
|
+
import { cx } from '@emotion/css';
|
|
6
7
|
import { i18n as $_i18n } from "@lingui/core";
|
|
7
|
-
import { cx } from 'emotion';
|
|
8
8
|
import get from 'lodash/get';
|
|
9
9
|
import { nanoid } from 'nanoid';
|
|
10
10
|
import * as styles from './styles';
|
package/dist/esm/styles.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/field-editor-checkbox",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -36,23 +36,23 @@
|
|
|
36
36
|
"tsc": "tsc -p ./ --noEmit"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@contentful/f36-components": "^
|
|
40
|
-
"@contentful/f36-tokens": "^
|
|
41
|
-
"@contentful/field-editor-shared": "^3.0.
|
|
42
|
-
"emotion": "^
|
|
39
|
+
"@contentful/f36-components": "^6.7.1",
|
|
40
|
+
"@contentful/f36-tokens": "^6.1.2",
|
|
41
|
+
"@contentful/field-editor-shared": "^3.0.0",
|
|
42
|
+
"@emotion/css": "^11.13.5",
|
|
43
43
|
"lodash": "^4.17.15",
|
|
44
44
|
"nanoid": "^3.1.3"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@contentful/field-editor-test-utils": "^1.8.
|
|
47
|
+
"@contentful/field-editor-test-utils": "^1.8.0",
|
|
48
48
|
"@lingui/core": "5.3.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"@lingui/core": "^5.3.0",
|
|
52
|
-
"react": ">=
|
|
52
|
+
"react": ">=18.3.1"
|
|
53
53
|
},
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"registry": "https://npm.pkg.github.com/"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "edde3372ed00ed0fd6a798233284618983383869"
|
|
58
58
|
}
|