@atlaskit/task-decision 17.6.3 → 17.7.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.
- package/CHANGELOG.md +12 -0
- package/dist/cjs/components/DecisionList.js +2 -2
- package/dist/cjs/components/Item.js +6 -51
- package/dist/cjs/components/TaskItem.js +8 -31
- package/dist/cjs/components/TaskList.js +2 -2
- package/dist/cjs/components/styles.js +156 -0
- package/dist/cjs/components/theme.js +70 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/DecisionList.js +2 -2
- package/dist/es2019/components/Item.js +6 -47
- package/dist/es2019/components/TaskItem.js +7 -100
- package/dist/es2019/components/TaskList.js +2 -2
- package/dist/es2019/components/styles.js +308 -0
- package/dist/es2019/components/theme.js +64 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/DecisionList.js +2 -2
- package/dist/esm/components/Item.js +6 -51
- package/dist/esm/components/TaskItem.js +7 -31
- package/dist/esm/components/TaskList.js +2 -2
- package/dist/esm/components/styles.js +143 -0
- package/dist/esm/components/theme.js +64 -0
- package/dist/esm/version.json +1 -1
- package/dist/types/components/styles.d.ts +13 -0
- package/dist/types/components/theme.d.ts +61 -0
- package/dist/types-ts4.5/components/styles.d.ts +13 -0
- package/dist/types-ts4.5/components/theme.d.ts +61 -0
- package/package.json +9 -7
- package/tmp/api-report-tmp.d.ts +430 -0
- package/dist/cjs/components/listStyle.js +0 -19
- package/dist/es2019/components/listStyle.js +0 -12
- package/dist/esm/components/listStyle.js +0 -12
- package/dist/types/components/listStyle.d.ts +0 -2
- package/dist/types-ts4.5/components/listStyle.d.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/task-decision
|
|
2
2
|
|
|
3
|
+
## 17.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`8c026385eb8`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8c026385eb8) - [ux] ED-17434: Update TaskItem to match @atlaskit/checkbox and update to support design tokens and match spacing from bullet and numbered lists.
|
|
8
|
+
|
|
9
|
+
## 17.6.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
|
|
14
|
+
|
|
3
15
|
## 17.6.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -13,7 +13,7 @@ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime
|
|
|
13
13
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
14
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
15
|
var _react2 = require("@emotion/react");
|
|
16
|
-
var
|
|
16
|
+
var _styles = require("./styles");
|
|
17
17
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
18
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
19
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
@@ -40,7 +40,7 @@ var DecisionList = /*#__PURE__*/function (_PureComponent) {
|
|
|
40
40
|
// The value of `data-decision-local-id` should be discarded upon paste, with a
|
|
41
41
|
// a new uuid generated by the editor for the cloned content.
|
|
42
42
|
return (0, _react2.jsx)("ol", {
|
|
43
|
-
css:
|
|
43
|
+
css: _styles.listStyles,
|
|
44
44
|
"data-decision-list-local-id": "",
|
|
45
45
|
"data-node-type": "decisionList"
|
|
46
46
|
}, _react.default.Children.map(children, function (child, idx) {
|
|
@@ -14,55 +14,10 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
14
14
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
15
15
|
var _react = require("react");
|
|
16
16
|
var _react2 = require("@emotion/react");
|
|
17
|
-
var _components = require("@atlaskit/theme/components");
|
|
18
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
19
17
|
var _constants = require("@atlaskit/theme/constants");
|
|
18
|
+
var _styles = require("./styles");
|
|
20
19
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
21
20
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
22
|
-
var contentStyle = (0, _react2.css)({
|
|
23
|
-
margin: 0,
|
|
24
|
-
wordWrap: 'break-word',
|
|
25
|
-
minWidth: 0,
|
|
26
|
-
flex: '1 1 auto'
|
|
27
|
-
});
|
|
28
|
-
var taskStyles = (0, _react2.css)({
|
|
29
|
-
display: 'flex',
|
|
30
|
-
flexDirection: 'row',
|
|
31
|
-
padding: '6px 3px',
|
|
32
|
-
position: 'relative'
|
|
33
|
-
});
|
|
34
|
-
var decisionStyles = function decisionStyles(theme) {
|
|
35
|
-
return (0, _react2.css)({
|
|
36
|
-
display: 'flex',
|
|
37
|
-
flexDirection: 'row',
|
|
38
|
-
margin: "var(--ds-space-100, 8px)".concat(" 0 0 0"),
|
|
39
|
-
padding: "var(--ds-space-100, 8px)",
|
|
40
|
-
paddingLeft: "var(--ds-space-150, 12px)",
|
|
41
|
-
borderRadius: "".concat((0, _constants.borderRadius)(), "px"),
|
|
42
|
-
backgroundColor: (0, _components.themed)({
|
|
43
|
-
light: "var(--ds-background-neutral, ".concat(_colors.N20A, ")"),
|
|
44
|
-
dark: "var(--ds-background-neutral, ".concat(_colors.DN50, ")")
|
|
45
|
-
})({
|
|
46
|
-
theme: theme
|
|
47
|
-
}),
|
|
48
|
-
position: 'relative',
|
|
49
|
-
'.decision-item': {
|
|
50
|
-
cursor: 'initial'
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
};
|
|
54
|
-
var placeHolderStyles = function placeHolderStyles(offset) {
|
|
55
|
-
return (0, _react2.css)({
|
|
56
|
-
margin: "0 0 0 ".concat(offset, "px"),
|
|
57
|
-
position: 'absolute',
|
|
58
|
-
color: "var(--ds-text-subtlest, ".concat(_colors.N200, ")"),
|
|
59
|
-
pointerEvents: 'none',
|
|
60
|
-
textOverflow: 'ellipsis',
|
|
61
|
-
overflow: 'hidden',
|
|
62
|
-
whiteSpace: 'nowrap',
|
|
63
|
-
maxWidth: 'calc(100% - 50px)'
|
|
64
|
-
});
|
|
65
|
-
};
|
|
66
21
|
var Item = /*#__PURE__*/function (_PureComponent) {
|
|
67
22
|
(0, _inherits2.default)(Item, _PureComponent);
|
|
68
23
|
var _super = _createSuper(Item);
|
|
@@ -87,7 +42,7 @@ var Item = /*#__PURE__*/function (_PureComponent) {
|
|
|
87
42
|
var offset = (0, _constants.gridSize)() * (itemType === 'TASK' ? 3 : 3.5);
|
|
88
43
|
return (0, _react2.jsx)("span", {
|
|
89
44
|
"data-component": "placeholder",
|
|
90
|
-
css:
|
|
45
|
+
css: (0, _styles.placeholderStyles)(offset),
|
|
91
46
|
contentEditable: false
|
|
92
47
|
}, placeholder);
|
|
93
48
|
}
|
|
@@ -104,20 +59,20 @@ var Item = /*#__PURE__*/function (_PureComponent) {
|
|
|
104
59
|
theme = _this$props2.theme;
|
|
105
60
|
if (itemType === 'TASK') {
|
|
106
61
|
return (0, _react2.jsx)("div", {
|
|
107
|
-
css: taskStyles,
|
|
62
|
+
css: _styles.taskStyles,
|
|
108
63
|
id: "".concat(checkBoxId, "-wrapper")
|
|
109
64
|
}, icon, this.renderPlaceholder(), (0, _react2.jsx)("div", (0, _extends2.default)({
|
|
110
65
|
"data-component": "content",
|
|
111
|
-
css:
|
|
66
|
+
css: _styles.contentStyles,
|
|
112
67
|
ref: contentRef
|
|
113
68
|
}, dataAttributes), children));
|
|
114
69
|
} else if (itemType === 'DECISION') {
|
|
115
70
|
return (0, _react2.jsx)("div", {
|
|
116
|
-
css: decisionStyles(theme),
|
|
71
|
+
css: (0, _styles.decisionStyles)(theme),
|
|
117
72
|
"data-decision-wrapper": "true"
|
|
118
73
|
}, icon, this.renderPlaceholder(), (0, _react2.jsx)("div", (0, _extends2.default)({
|
|
119
74
|
"data-component": "content",
|
|
120
|
-
css:
|
|
75
|
+
css: _styles.contentStyles,
|
|
121
76
|
ref: contentRef
|
|
122
77
|
}, dataAttributes), children));
|
|
123
78
|
}
|
|
@@ -6,47 +6,22 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
10
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
10
|
var _react2 = require("@emotion/react");
|
|
11
|
+
var _checkbox = _interopRequireDefault(require("@atlaskit/icon/glyph/checkbox"));
|
|
12
12
|
var _Item = _interopRequireDefault(require("./Item"));
|
|
13
13
|
var _analyticsNext = require("@atlaskit/analytics-next");
|
|
14
14
|
var _analytics = require("../analytics");
|
|
15
15
|
var _components = require("@atlaskit/theme/components");
|
|
16
|
-
var
|
|
17
|
-
var _templateObject, _templateObject2;
|
|
18
|
-
/** @jsx jsx */
|
|
16
|
+
var _styles = require("./styles");
|
|
19
17
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
20
18
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
19
|
+
/** @jsx jsx */
|
|
20
|
+
|
|
21
21
|
var taskCount = 0;
|
|
22
22
|
var getCheckBoxId = function getCheckBoxId(localId) {
|
|
23
23
|
return "".concat(localId, "-").concat(taskCount++);
|
|
24
24
|
};
|
|
25
|
-
var checkboxStyles = function checkboxStyles(isRenderer) {
|
|
26
|
-
return function (theme) {
|
|
27
|
-
return (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n flex: 0 0 16px;\n width: 16px;\n height: 16px;\n position: relative;\n align-self: start;\n margin: ", " ", " 0 0;\n\n & > input[type='checkbox'] {\n width: 16px;\n height: 16px;\n z-index: 1;\n cursor: pointer;\n position: absolute;\n outline: none;\n margin: 0;\n opacity: 0;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n\n + div {\n box-sizing: border-box;\n display: inline;\n width: 100%;\n cursor: pointer;\n\n &::after {\n background: ", ";\n background-size: 16px;\n border-radius: 3px;\n border-style: solid;\n border-width: 1px;\n border-color: ", ";\n box-sizing: border-box;\n content: '';\n height: 16px;\n left: 50%;\n position: absolute;\n transition: border-color 0.2s ease-in-out;\n top: 8px;\n width: 16px;\n transform: translate(-50%, -50%);\n }\n }\n ", "\n\n &:not([disabled]):hover + div::after {\n background: ", ";\n transition: border 0.2s ease-in-out;\n }\n &[disabled] + div {\n opacity: 0.5;\n cursor: default;\n }\n &:checked {\n + div::after {\n background: url(data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8c3ZnIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgdmlld0JveD0iMCAwIDEyIDEyIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPg0KICA8cmVjdCB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHJ4PSIyIiBmaWxsPSIjMDA1MkNDIj48L3JlY3Q+DQogIDxwYXRoIGZpbGw9IiNGRkZGRkYiIGQ9Ik05LjM3NCA0LjkxNEw1LjQ1NiA4LjgzMmEuNzY5Ljc2OSAwIDAgMS0xLjA4OCAwTDIuNjI2IDcuMDkxYS43NjkuNzY5IDAgMSAxIDEuMDg4LTEuMDg5TDQuOTEyIDcuMmwzLjM3NC0zLjM3NGEuNzY5Ljc2OSAwIDEgMSAxLjA4OCAxLjA4OCI+PC9wYXRoPg0KPC9zdmc+)\n no-repeat 0 0;\n background-size: 16px;\n border: 0;\n border-color: transparent;\n }\n &:not([disabled]):hover + div::after {\n background: url(data:image/svg+xml;charset=utf-8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+DQo8c3ZnIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgdmlld0JveD0iMCAwIDEyIDEyIiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPg0KICA8cmVjdCB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHJ4PSIyIiBmaWxsPSIjMDc0N0E2Ij48L3JlY3Q+DQogIDxwYXRoIGZpbGw9IiNGRkZGRkYiIGQ9Ik05LjM3NCA0LjkxNEw1LjQ1NiA4LjgzMmEuNzY5Ljc2OSAwIDAgMS0xLjA4OCAwTDIuNjI2IDcuMDkxYS43NjkuNzY5IDAgMSAxIDEuMDg4LTEuMDg5TDQuOTEyIDcuMmwzLjM3NC0zLjM3NGEuNzY5Ljc2OSAwIDEgMSAxLjA4OCAxLjA4OCI+PC9wYXRoPg0KPC9zdmc+)\n no-repeat 0 0;\n background-size: 16px;\n }\n }\n }\n "])), "var(--ds-space-050, 4px)", "var(--ds-space-100, 8px)", (0, _components.themed)({
|
|
28
|
-
light: "var(--ds-background-input, ".concat(_colors.N0, ")"),
|
|
29
|
-
dark: "var(--ds-background-input, ".concat(_colors.DN100, ")")
|
|
30
|
-
})({
|
|
31
|
-
theme: theme
|
|
32
|
-
}), (0, _components.themed)({
|
|
33
|
-
light: "var(--ds-border, ".concat(_colors.N90, ")"),
|
|
34
|
-
dark: "var(--ds-border, ".concat(_colors.DN200, ")")
|
|
35
|
-
})({
|
|
36
|
-
theme: theme
|
|
37
|
-
}), isRenderer ? (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n &:focus-visible + div:after {\n outline: 2px solid\n ", ";\n }\n "])), (0, _components.themed)({
|
|
38
|
-
light: "var(--ds-border-focused, ".concat(_colors.B300, ")"),
|
|
39
|
-
dark: "var(--ds-border-focused, ".concat(_colors.B75, ")")
|
|
40
|
-
})({
|
|
41
|
-
theme: theme
|
|
42
|
-
})) : '', (0, _components.themed)({
|
|
43
|
-
light: "var(--ds-background-input, ".concat(_colors.N30, ")"),
|
|
44
|
-
dark: "var(--ds-background-input, ".concat(_colors.B75, ")")
|
|
45
|
-
})({
|
|
46
|
-
theme: theme
|
|
47
|
-
}));
|
|
48
|
-
};
|
|
49
|
-
};
|
|
50
25
|
var TaskItem = function TaskItem(props) {
|
|
51
26
|
var appearance = props.appearance,
|
|
52
27
|
isDone = props.isDone,
|
|
@@ -91,7 +66,7 @@ var TaskItem = function TaskItem(props) {
|
|
|
91
66
|
};
|
|
92
67
|
}, [handleOnChange]);
|
|
93
68
|
var icon = (0, _react2.jsx)("span", {
|
|
94
|
-
css: checkboxStyles(isRenderer)(theme),
|
|
69
|
+
css: (0, _styles.checkboxStyles)(isRenderer)(theme),
|
|
95
70
|
contentEditable: false
|
|
96
71
|
}, (0, _react2.jsx)("input", {
|
|
97
72
|
id: checkBoxId,
|
|
@@ -103,7 +78,9 @@ var TaskItem = function TaskItem(props) {
|
|
|
103
78
|
disabled: !!disabled,
|
|
104
79
|
suppressHydrationWarning: true,
|
|
105
80
|
onKeyPress: handleOnKeyPress
|
|
106
|
-
}), (0, _react2.jsx)(
|
|
81
|
+
}), (0, _react2.jsx)(_checkbox.default, {
|
|
82
|
+
label: ""
|
|
83
|
+
}));
|
|
107
84
|
return (0, _react2.jsx)(_Item.default, {
|
|
108
85
|
appearance: appearance,
|
|
109
86
|
contentRef: contentRef,
|
|
@@ -14,7 +14,7 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
14
14
|
var _react = _interopRequireWildcard(require("react"));
|
|
15
15
|
var _react2 = require("@emotion/react");
|
|
16
16
|
var _analyticsNamespacedContext = require("@atlaskit/analytics-namespaced-context");
|
|
17
|
-
var
|
|
17
|
+
var _styles = require("./styles");
|
|
18
18
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
19
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
20
20
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
@@ -44,7 +44,7 @@ var TaskList = /*#__PURE__*/function (_PureComponent) {
|
|
|
44
44
|
// The value of `data-task-local-id` should be discarded upon paste, with a
|
|
45
45
|
// a new uuid generated by the editor for the cloned content.
|
|
46
46
|
return (0, _react2.jsx)("div", {
|
|
47
|
-
css:
|
|
47
|
+
css: [_styles.listStyles, _styles.taskListStyles],
|
|
48
48
|
"data-task-list-local-id": ""
|
|
49
49
|
}, _react.default.Children.map(children, function (child, idx) {
|
|
50
50
|
var _ref = child.props,
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.taskStyles = exports.taskListStyles = exports.placeholderStyles = exports.listStyles = exports.decisionStyles = exports.contentStyles = exports.checkboxStyles = void 0;
|
|
8
|
+
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
|
+
var _react = require("@emotion/react");
|
|
10
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
11
|
+
var _components = require("@atlaskit/theme/components");
|
|
12
|
+
var _colors = require("@atlaskit/theme/colors");
|
|
13
|
+
var _theme = _interopRequireDefault(require("./theme"));
|
|
14
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
|
|
15
|
+
/*
|
|
16
|
+
Increasing specificity with double ampersand to ensure these rules take
|
|
17
|
+
priority over the global styles applied to 'ol' elements.
|
|
18
|
+
*/
|
|
19
|
+
var listStyles = (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n && {\n list-style-type: none;\n padding-left: 0;\n }\n"])));
|
|
20
|
+
exports.listStyles = listStyles;
|
|
21
|
+
var taskListStyles = (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n div + div {\n margin-top: ", ";\n }\n"])), "var(--ds-space-050, 4px)");
|
|
22
|
+
exports.taskListStyles = taskListStyles;
|
|
23
|
+
var contentStyles = (0, _react.css)(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n margin: 0;\n word-wrap: break-word;\n min-width: 0;\n flex: 1 1 auto;\n"])));
|
|
24
|
+
exports.contentStyles = contentStyles;
|
|
25
|
+
var taskStyles = (0, _react.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: row;\n position: relative;\n"])));
|
|
26
|
+
exports.taskStyles = taskStyles;
|
|
27
|
+
var decisionStyles = function decisionStyles(theme) {
|
|
28
|
+
return (0, _react.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n flex-direction: row;\n margin: ", " 0 0 0;\n padding: ", ";\n padding-left: ", ";\n border-radius: ", ";\n background-color: ", ";\n position: relative;\n\n .decision-item {\n cursor: initial;\n }\n "])), "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-space-150, 12px)", "var(--ds-border-radius-100, 3px)", (0, _components.themed)({
|
|
29
|
+
light: "var(--ds-background-neutral, ".concat(_colors.N20A, ")"),
|
|
30
|
+
dark: "var(--ds-background-neutral, ".concat(_colors.DN50, ")")
|
|
31
|
+
})({
|
|
32
|
+
theme: theme
|
|
33
|
+
}));
|
|
34
|
+
};
|
|
35
|
+
exports.decisionStyles = decisionStyles;
|
|
36
|
+
var placeholderStyles = function placeholderStyles(offset) {
|
|
37
|
+
return (0, _react.css)(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n margin: 0 0 0 ", "px;\n position: absolute;\n color: ", ";\n pointer-events: none;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n max-width: calc(100% - 50px);\n "])), offset, "var(--ds-text-subtlest, ".concat(_colors.N200, ")"));
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* References packages/design-system/checkbox/src/checkbox.tsx
|
|
42
|
+
* To be used until mobile editor does not require legacy themed() API anymore,
|
|
43
|
+
* which will allow migration to use @atlaskit/checkbox instead
|
|
44
|
+
*/
|
|
45
|
+
exports.placeholderStyles = placeholderStyles;
|
|
46
|
+
var checkboxStyles = function checkboxStyles(isRenderer) {
|
|
47
|
+
return function (theme) {
|
|
48
|
+
return (0, _react.css)(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n flex: 0 0 24px;\n width: 24px;\n height: 24px;\n position: relative;\n align-self: start;\n\n & > input[type='checkbox'] {\n width: 16px;\n height: 16px;\n z-index: 1;\n cursor: pointer;\n outline: none;\n margin: 0;\n opacity: 0;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n\n &[disabled] {\n cursor: default;\n }\n\n + span {\n width: 24px;\n height: 24px;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n\n + span > svg {\n box-sizing: border-box;\n display: inline;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n max-width: unset;\n max-height: unset;\n position: absolute;\n overflow: hidden;\n color: ", ";\n transition: color 0.2s ease-in-out, fill 0.2s ease-in-out;\n path:first-of-type {\n visibility: hidden;\n }\n rect:first-of-type {\n stroke: ", ";\n stroke-width: ", ";\n transition: stroke 0.2s ease-in-out;\n }\n }\n\n &&:focus + span > svg,\n &&:checked:focus + span > svg {\n rect:first-of-type {\n stroke: ", ";\n }\n }\n\n &:hover + span > svg {\n color: ", ";\n rect:first-of-type {\n stroke: ", ";\n }\n }\n\n &:checked:hover + span > svg {\n color: ", ";\n fill: ", ";\n rect:first-of-type {\n stroke: ", ";\n }\n }\n\n &:checked {\n + span > svg {\n path:first-of-type {\n visibility: visible;\n }\n color: ", ";\n fill: ", ";\n rect:first-of-type {\n stroke: ", ";\n }\n }\n }\n\n &:active + span > svg {\n color: ", ";\n rect:first-of-type {\n stroke: ", ";\n }\n }\n\n &:checked:active + span > svg {\n color: ", ";\n fill: ", ";\n rect:first-of-type {\n stroke: ", ";\n }\n }\n\n &:disabled + span > svg,\n &:disabled:hover + span > svg,\n &:disabled:focus + span > svg,\n &:disabled:active + span > svg {\n color: ", ";\n rect:first-of-type {\n stroke: ", ";\n }\n }\n\n &:disabled:checked + span > svg {\n fill: ", ";\n }\n\n ", "\n }\n "])), (0, _components.themed)({
|
|
49
|
+
light: _theme.default.light.boxColor.rest,
|
|
50
|
+
dark: _theme.default.dark.boxColor.rest
|
|
51
|
+
})({
|
|
52
|
+
theme: theme
|
|
53
|
+
}), (0, _components.themed)({
|
|
54
|
+
light: _theme.default.light.borderColor.rest,
|
|
55
|
+
dark: _theme.default.dark.borderColor.rest
|
|
56
|
+
})({
|
|
57
|
+
theme: theme
|
|
58
|
+
}), (0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.border-checkbox_nyoiu') ? 1 : 2, (0, _components.themed)({
|
|
59
|
+
light: _theme.default.light.borderColor.focused,
|
|
60
|
+
dark: _theme.default.dark.borderColor.focused
|
|
61
|
+
})({
|
|
62
|
+
theme: theme
|
|
63
|
+
}), (0, _components.themed)({
|
|
64
|
+
light: _theme.default.light.boxColor.hovered,
|
|
65
|
+
dark: _theme.default.dark.boxColor.hovered
|
|
66
|
+
})({
|
|
67
|
+
theme: theme
|
|
68
|
+
}), (0, _components.themed)({
|
|
69
|
+
light: _theme.default.light.borderColor.hovered,
|
|
70
|
+
dark: _theme.default.dark.borderColor.hovered
|
|
71
|
+
})({
|
|
72
|
+
theme: theme
|
|
73
|
+
}), (0, _components.themed)({
|
|
74
|
+
light: _theme.default.light.boxColor.hoveredAndChecked,
|
|
75
|
+
dark: _theme.default.dark.boxColor.hoveredAndChecked
|
|
76
|
+
})({
|
|
77
|
+
theme: theme
|
|
78
|
+
}), (0, _components.themed)({
|
|
79
|
+
light: _theme.default.light.tickColor.checked,
|
|
80
|
+
dark: _theme.default.dark.tickColor.checked
|
|
81
|
+
})({
|
|
82
|
+
theme: theme
|
|
83
|
+
}), (0, _components.themed)({
|
|
84
|
+
light: _theme.default.light.borderColor.hoveredAndChecked,
|
|
85
|
+
dark: _theme.default.dark.borderColor.hoveredAndChecked
|
|
86
|
+
})({
|
|
87
|
+
theme: theme
|
|
88
|
+
}), (0, _components.themed)({
|
|
89
|
+
light: _theme.default.light.boxColor.checked,
|
|
90
|
+
dark: _theme.default.dark.boxColor.checked
|
|
91
|
+
})({
|
|
92
|
+
theme: theme
|
|
93
|
+
}), (0, _components.themed)({
|
|
94
|
+
light: _theme.default.light.tickColor.checked,
|
|
95
|
+
dark: _theme.default.dark.tickColor.checked
|
|
96
|
+
})({
|
|
97
|
+
theme: theme
|
|
98
|
+
}), (0, _components.themed)({
|
|
99
|
+
light: _theme.default.light.borderColor.checked,
|
|
100
|
+
dark: _theme.default.dark.borderColor.checked
|
|
101
|
+
})({
|
|
102
|
+
theme: theme
|
|
103
|
+
}), (0, _components.themed)({
|
|
104
|
+
light: _theme.default.light.boxColor.active,
|
|
105
|
+
dark: _theme.default.dark.boxColor.active
|
|
106
|
+
})({
|
|
107
|
+
theme: theme
|
|
108
|
+
}), (0, _components.themed)({
|
|
109
|
+
light: _theme.default.light.borderColor.active,
|
|
110
|
+
dark: _theme.default.dark.borderColor.active
|
|
111
|
+
})({
|
|
112
|
+
theme: theme
|
|
113
|
+
}), (0, _components.themed)({
|
|
114
|
+
light: _theme.default.light.boxColor.active,
|
|
115
|
+
dark: _theme.default.dark.boxColor.active
|
|
116
|
+
})({
|
|
117
|
+
theme: theme
|
|
118
|
+
}), (0, _components.themed)({
|
|
119
|
+
light: _theme.default.light.tickColor.activeAndChecked,
|
|
120
|
+
dark: _theme.default.dark.tickColor.activeAndChecked
|
|
121
|
+
})({
|
|
122
|
+
theme: theme
|
|
123
|
+
}), (0, _components.themed)({
|
|
124
|
+
light: _theme.default.light.borderColor.active,
|
|
125
|
+
dark: _theme.default.dark.borderColor.active
|
|
126
|
+
})({
|
|
127
|
+
theme: theme
|
|
128
|
+
}), (0, _components.themed)({
|
|
129
|
+
light: _theme.default.light.boxColor.disabled,
|
|
130
|
+
dark: _theme.default.dark.boxColor.disabled
|
|
131
|
+
})({
|
|
132
|
+
theme: theme
|
|
133
|
+
}), (0, _components.themed)({
|
|
134
|
+
light: _theme.default.light.borderColor.disabled,
|
|
135
|
+
dark: _theme.default.dark.borderColor.disabled
|
|
136
|
+
})({
|
|
137
|
+
theme: theme
|
|
138
|
+
}), (0, _components.themed)({
|
|
139
|
+
light: _theme.default.light.tickColor.disabledAndChecked,
|
|
140
|
+
dark: _theme.default.dark.tickColor.disabledAndChecked
|
|
141
|
+
})({
|
|
142
|
+
theme: theme
|
|
143
|
+
}), isRenderer ? (0, _react.css)(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n &:focus + span > svg,\n &:checked:focus + span > svg {\n rect:first-of-type {\n stroke: ", ";\n }\n }\n "])), (0, _components.themed)({
|
|
144
|
+
light: _theme.default.light.borderColor.focused,
|
|
145
|
+
dark: _theme.default.dark.borderColor.focused
|
|
146
|
+
})({
|
|
147
|
+
theme: theme
|
|
148
|
+
})) : (0, _react.css)(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n &:active:focus + span > svg,\n &:checked:active:focus + span > svg {\n rect:first-of-type {\n stroke: ", ";\n }\n }\n "])), (0, _components.themed)({
|
|
149
|
+
light: _theme.default.light.borderColor.focused,
|
|
150
|
+
dark: _theme.default.dark.borderColor.focused
|
|
151
|
+
})({
|
|
152
|
+
theme: theme
|
|
153
|
+
})));
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
exports.checkboxStyles = checkboxStyles;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
8
|
+
var _colors = require("@atlaskit/theme/colors");
|
|
9
|
+
/**
|
|
10
|
+
* Styles taken from packages/design-system/checkbox/src/internal/theme.tsx
|
|
11
|
+
* To be used until mobile editor does not require legacy themed() API anymore
|
|
12
|
+
*/
|
|
13
|
+
var checkboxTheme = {
|
|
14
|
+
light: {
|
|
15
|
+
borderColor: {
|
|
16
|
+
rest: "var(--ds-border-input, ".concat((0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.border-checkbox_nyoiu') ? _colors.N100 : _colors.N40, ")"),
|
|
17
|
+
hovered: "var(--ds-border-input, ".concat((0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.border-checkbox_nyoiu') ? _colors.N100 : _colors.N40, ")"),
|
|
18
|
+
disabled: "var(--ds-background-disabled, ".concat(_colors.N20, ")"),
|
|
19
|
+
checked: "var(--ds-background-selected-bold, ".concat(_colors.B400, ")"),
|
|
20
|
+
active: "var(--ds-border, ".concat(_colors.B50, ")"),
|
|
21
|
+
focused: "var(--ds-border-focused, ".concat(_colors.B100, ")"),
|
|
22
|
+
hoveredAndChecked: "var(--ds-background-selected-bold-hovered, ".concat(_colors.B300, ")")
|
|
23
|
+
},
|
|
24
|
+
boxColor: {
|
|
25
|
+
rest: "var(--ds-background-input, ".concat(_colors.N10, ")"),
|
|
26
|
+
hovered: "var(--ds-background-input-hovered, ".concat(_colors.N30, ")"),
|
|
27
|
+
disabled: "var(--ds-background-disabled, ".concat(_colors.N20, ")"),
|
|
28
|
+
active: "var(--ds-background-input-pressed, ".concat(_colors.B50, ")"),
|
|
29
|
+
hoveredAndChecked: "var(--ds-background-selected-bold-hovered, ".concat(_colors.B300, ")"),
|
|
30
|
+
checked: "var(--ds-background-selected-bold, ".concat(_colors.B400, ")")
|
|
31
|
+
},
|
|
32
|
+
tickColor: {
|
|
33
|
+
disabledAndChecked: "var(--ds-icon-disabled, ".concat(_colors.N70, ")"),
|
|
34
|
+
activeAndChecked: "var(--ds-icon-inverse, ".concat(_colors.B400, ")"),
|
|
35
|
+
checked: "var(--ds-icon-inverse, ".concat(_colors.N10, ")")
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
/**
|
|
39
|
+
* Fallback colours for dark mode taken from
|
|
40
|
+
* packages/design-system/tokens/src/artifacts/themes/atlassian-dark.tsx
|
|
41
|
+
* To be used to keep mobile / web checkbox dark mode consistent
|
|
42
|
+
* until mobile editor does not require legacy themed() API anymore
|
|
43
|
+
*/
|
|
44
|
+
dark: {
|
|
45
|
+
borderColor: {
|
|
46
|
+
rest: "var(--ds-border-input, ".concat((0, _platformFeatureFlags.getBooleanFF)('platform.design-system-team.border-checkbox_nyoiu') ? _colors.DN200 : '#A6C5E229', ")"),
|
|
47
|
+
hovered: "var(--ds-border-input, #A6C5E229)",
|
|
48
|
+
disabled: "var(--ds-background-disabled, #BCD6F00A)",
|
|
49
|
+
checked: "var(--ds-background-selected-bold, #579DFF)",
|
|
50
|
+
active: "var(--ds-border, #A6C5E229)",
|
|
51
|
+
focused: "var(--ds-border-focused, #85B8FF)",
|
|
52
|
+
hoveredAndChecked: "var(--ds-background-selected-bold-hovered, #85B8FF)"
|
|
53
|
+
},
|
|
54
|
+
boxColor: {
|
|
55
|
+
rest: "var(--ds-background-input, #22272B)",
|
|
56
|
+
hovered: "var(--ds-background-input-hovered, #282E33)",
|
|
57
|
+
disabled: "var(--ds-background-disabled, #BCD6F00A)",
|
|
58
|
+
active: "var(--ds-background-input-pressed, #22272B)",
|
|
59
|
+
hoveredAndChecked: "var(--ds-background-selected-bold-hovered, #85B8FF)",
|
|
60
|
+
checked: "var(--ds-background-selected-bold, #579DFF)"
|
|
61
|
+
},
|
|
62
|
+
tickColor: {
|
|
63
|
+
disabledAndChecked: "var(--ds-icon-disabled, #BFDBF847)",
|
|
64
|
+
activeAndChecked: "var(--ds-icon-inverse, #1D2125)",
|
|
65
|
+
checked: "var(--ds-icon-inverse, #1D2125)"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
var _default = checkboxTheme;
|
|
70
|
+
exports.default = _default;
|
package/dist/cjs/version.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { PureComponent } from 'react';
|
|
5
5
|
import { jsx } from '@emotion/react';
|
|
6
|
-
import
|
|
6
|
+
import { listStyles } from './styles';
|
|
7
7
|
export default class DecisionList extends PureComponent {
|
|
8
8
|
render() {
|
|
9
9
|
const {
|
|
@@ -20,7 +20,7 @@ export default class DecisionList extends PureComponent {
|
|
|
20
20
|
// The value of `data-decision-local-id` should be discarded upon paste, with a
|
|
21
21
|
// a new uuid generated by the editor for the cloned content.
|
|
22
22
|
return jsx("ol", {
|
|
23
|
-
css:
|
|
23
|
+
css: listStyles,
|
|
24
24
|
"data-decision-list-local-id": "",
|
|
25
25
|
"data-node-type": "decisionList"
|
|
26
26
|
}, React.Children.map(children, (child, idx) => {
|
|
@@ -3,51 +3,10 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
3
3
|
/** @jsx jsx */
|
|
4
4
|
|
|
5
5
|
import { PureComponent } from 'react';
|
|
6
|
-
import {
|
|
7
|
-
import { themed } from '@atlaskit/theme/components';
|
|
8
|
-
import { DN50, N200, N20A } from '@atlaskit/theme/colors';
|
|
6
|
+
import { jsx } from '@emotion/react';
|
|
9
7
|
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
margin: 0,
|
|
13
|
-
wordWrap: 'break-word',
|
|
14
|
-
minWidth: 0,
|
|
15
|
-
flex: '1 1 auto'
|
|
16
|
-
});
|
|
17
|
-
const taskStyles = css({
|
|
18
|
-
display: 'flex',
|
|
19
|
-
flexDirection: 'row',
|
|
20
|
-
padding: '6px 3px',
|
|
21
|
-
position: 'relative'
|
|
22
|
-
});
|
|
23
|
-
const decisionStyles = theme => css({
|
|
24
|
-
display: 'flex',
|
|
25
|
-
flexDirection: 'row',
|
|
26
|
-
margin: `${"var(--ds-space-100, 8px)"} 0 0 0`,
|
|
27
|
-
padding: "var(--ds-space-100, 8px)",
|
|
28
|
-
paddingLeft: `${"var(--ds-space-150, 12px)"}`,
|
|
29
|
-
borderRadius: `${borderRadius()}px`,
|
|
30
|
-
backgroundColor: themed({
|
|
31
|
-
light: `var(--ds-background-neutral, ${N20A})`,
|
|
32
|
-
dark: `var(--ds-background-neutral, ${DN50})`
|
|
33
|
-
})({
|
|
34
|
-
theme
|
|
35
|
-
}),
|
|
36
|
-
position: 'relative',
|
|
37
|
-
'.decision-item': {
|
|
38
|
-
cursor: 'initial'
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
const placeHolderStyles = offset => css({
|
|
42
|
-
margin: `0 0 0 ${offset}px`,
|
|
43
|
-
position: 'absolute',
|
|
44
|
-
color: `var(--ds-text-subtlest, ${N200})`,
|
|
45
|
-
pointerEvents: 'none',
|
|
46
|
-
textOverflow: 'ellipsis',
|
|
47
|
-
overflow: 'hidden',
|
|
48
|
-
whiteSpace: 'nowrap',
|
|
49
|
-
maxWidth: 'calc(100% - 50px)'
|
|
50
|
-
});
|
|
8
|
+
import { gridSize } from '@atlaskit/theme/constants';
|
|
9
|
+
import { contentStyles, taskStyles, decisionStyles, placeholderStyles } from './styles';
|
|
51
10
|
export default class Item extends PureComponent {
|
|
52
11
|
renderPlaceholder() {
|
|
53
12
|
const {
|
|
@@ -65,7 +24,7 @@ export default class Item extends PureComponent {
|
|
|
65
24
|
const offset = gridSize() * (itemType === 'TASK' ? 3 : 3.5);
|
|
66
25
|
return jsx("span", {
|
|
67
26
|
"data-component": "placeholder",
|
|
68
|
-
css:
|
|
27
|
+
css: placeholderStyles(offset),
|
|
69
28
|
contentEditable: false
|
|
70
29
|
}, placeholder);
|
|
71
30
|
}
|
|
@@ -85,7 +44,7 @@ export default class Item extends PureComponent {
|
|
|
85
44
|
id: `${checkBoxId}-wrapper`
|
|
86
45
|
}, icon, this.renderPlaceholder(), jsx("div", _extends({
|
|
87
46
|
"data-component": "content",
|
|
88
|
-
css:
|
|
47
|
+
css: contentStyles,
|
|
89
48
|
ref: contentRef
|
|
90
49
|
}, dataAttributes), children));
|
|
91
50
|
} else if (itemType === 'DECISION') {
|
|
@@ -94,7 +53,7 @@ export default class Item extends PureComponent {
|
|
|
94
53
|
"data-decision-wrapper": "true"
|
|
95
54
|
}, icon, this.renderPlaceholder(), jsx("div", _extends({
|
|
96
55
|
"data-component": "content",
|
|
97
|
-
css:
|
|
56
|
+
css: contentStyles,
|
|
98
57
|
ref: contentRef
|
|
99
58
|
}, dataAttributes), children));
|
|
100
59
|
}
|