@contentful/field-editor-tags 2.0.0 → 2.0.2-canary.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/dist/cjs/TagsEditor.js +5 -5
- package/dist/esm/TagsEditor.js +1 -1
- package/package.json +4 -4
package/dist/cjs/TagsEditor.js
CHANGED
|
@@ -15,7 +15,7 @@ const _core = require("@dnd-kit/core");
|
|
|
15
15
|
const _modifiers = require("@dnd-kit/modifiers");
|
|
16
16
|
const _sortable = require("@dnd-kit/sortable");
|
|
17
17
|
const _utilities = require("@dnd-kit/utilities");
|
|
18
|
-
const
|
|
18
|
+
const _css = require("@emotion/css");
|
|
19
19
|
const _noop = /*#__PURE__*/ _interop_require_default(require("lodash/noop"));
|
|
20
20
|
const _TagsEditorConstraints = require("./TagsEditorConstraints");
|
|
21
21
|
function _interop_require_default(obj) {
|
|
@@ -65,15 +65,15 @@ function _interop_require_wildcard(obj, nodeInterop) {
|
|
|
65
65
|
return newObj;
|
|
66
66
|
}
|
|
67
67
|
const styles = {
|
|
68
|
-
input: (0,
|
|
68
|
+
input: (0, _css.css)({
|
|
69
69
|
marginTop: _f36tokens.default.spacingS,
|
|
70
70
|
marginBottom: _f36tokens.default.spacingM
|
|
71
71
|
}),
|
|
72
|
-
pill: (0,
|
|
72
|
+
pill: (0, _css.css)({
|
|
73
73
|
marginRight: _f36tokens.default.spacingS,
|
|
74
74
|
marginBottom: _f36tokens.default.spacingS
|
|
75
75
|
}),
|
|
76
|
-
pillDisabled: (0,
|
|
76
|
+
pillDisabled: (0, _css.css)({
|
|
77
77
|
cursor: 'not-allowed !important',
|
|
78
78
|
button: {
|
|
79
79
|
cursor: 'not-allowed !important',
|
|
@@ -96,7 +96,7 @@ const SortablePill = ({ id, label, index, disabled, onRemove })=>{
|
|
|
96
96
|
return /*#__PURE__*/ _react.default.createElement(_f36components.Pill, {
|
|
97
97
|
ref: setNodeRef,
|
|
98
98
|
testId: "tag-editor-pill",
|
|
99
|
-
className: (0,
|
|
99
|
+
className: (0, _css.cx)(styles.pill, {
|
|
100
100
|
[styles.pillDisabled]: disabled
|
|
101
101
|
}),
|
|
102
102
|
style: style,
|
package/dist/esm/TagsEditor.js
CHANGED
|
@@ -5,7 +5,7 @@ import { DndContext } from '@dnd-kit/core';
|
|
|
5
5
|
import { restrictToParentElement } from '@dnd-kit/modifiers';
|
|
6
6
|
import { arrayMove, SortableContext, useSortable } from '@dnd-kit/sortable';
|
|
7
7
|
import { CSS } from '@dnd-kit/utilities';
|
|
8
|
-
import { css, cx } from 'emotion';
|
|
8
|
+
import { css, cx } from '@emotion/css';
|
|
9
9
|
import noop from 'lodash/noop';
|
|
10
10
|
import { TagsEditorConstraints } from './TagsEditorConstraints';
|
|
11
11
|
const styles = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/field-editor-tags",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2-canary.12+a033ba5a",
|
|
4
4
|
"main": "dist/cjs/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@contentful/f36-components": "^6.7.1",
|
|
40
40
|
"@contentful/f36-icons": "^6.7.1",
|
|
41
41
|
"@contentful/f36-tokens": "^6.1.2",
|
|
42
|
-
"@contentful/field-editor-shared": "^3.0.
|
|
42
|
+
"@contentful/field-editor-shared": "^3.0.2-canary.12+a033ba5a",
|
|
43
43
|
"@dnd-kit/core": "^6.0.8",
|
|
44
44
|
"@dnd-kit/modifiers": "^7.0.0",
|
|
45
45
|
"@dnd-kit/sortable": "^8.0.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"lodash": "^4.17.15"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@contentful/field-editor-test-utils": "^
|
|
51
|
+
"@contentful/field-editor-test-utils": "^2.0.0",
|
|
52
52
|
"@lingui/core": "5.3.0"
|
|
53
53
|
},
|
|
54
54
|
"peerDependencies": {
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"registry": "https://npm.pkg.github.com/"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "a033ba5aa402ff68a0ee2da3dc1ca39c46795eed"
|
|
62
62
|
}
|