@atlaskit/task-decision 17.10.1 → 17.10.2

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.
@@ -1,8 +1,12 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
2
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
- /** @jsx jsx */
3
+ /**
4
+ * @jsxRuntime classic
5
+ * @jsx jsx
6
+ */
4
7
 
5
8
  import { PureComponent } from 'react';
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
6
10
  import { jsx } from '@emotion/react';
7
11
  // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
8
12
  import { gridSize } from '@atlaskit/theme/constants';
@@ -24,7 +28,9 @@ export default class Item extends PureComponent {
24
28
  const offset = gridSize() * (itemType === 'TASK' ? 3 : 3.5);
25
29
  return jsx("span", {
26
30
  "data-testid": "task-decision-item-placeholder",
27
- "data-component": "placeholder",
31
+ "data-component": "placeholder"
32
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
33
+ ,
28
34
  css: placeholderStyles(offset),
29
35
  contentEditable: false
30
36
  }, placeholder);
@@ -39,17 +45,22 @@ export default class Item extends PureComponent {
39
45
  dataAttributes
40
46
  } = this.props;
41
47
  if (itemType === 'TASK') {
42
- return jsx("div", {
43
- css: taskStyles,
44
- id: `${checkBoxId}-wrapper`
45
- }, icon, this.renderPlaceholder(), jsx("div", _extends({
46
- "data-component": "content",
47
- css: contentStyles,
48
- ref: contentRef
49
- }, dataAttributes), children));
48
+ return (
49
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
50
+ jsx("div", {
51
+ css: taskStyles,
52
+ id: `${checkBoxId}-wrapper`
53
+ }, icon, this.renderPlaceholder(), jsx("div", _extends({
54
+ "data-component": "content",
55
+ css: contentStyles,
56
+ ref: contentRef
57
+ }, dataAttributes), children))
58
+ );
50
59
  } else if (itemType === 'DECISION') {
51
60
  return jsx("div", {
52
- "data-testid": "elements-decision-item",
61
+ "data-testid": "elements-decision-item"
62
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
63
+ ,
53
64
  css: decisionStyles(),
54
65
  "data-decision-wrapper": "true"
55
66
  }, icon, this.renderPlaceholder(), jsx("div", _extends({
@@ -1,5 +1,9 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React, { useMemo, useRef } from 'react';
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
7
  import { jsx } from '@emotion/react';
4
8
  import CheckboxIcon from '@atlaskit/icon/glyph/checkbox';
5
9
  import Item from './Item';
@@ -50,7 +54,9 @@ const TaskItem = props => {
50
54
  }
51
55
  }, [handleOnChange]);
52
56
  const inputRef = useRef(null);
53
- const icon = jsx("span", {
57
+ const icon =
58
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
59
+ jsx("span", {
54
60
  css: checkboxStyles(isRenderer),
55
61
  contentEditable: false
56
62
  }, jsx("input", {
@@ -1,6 +1,10 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React from 'react';
3
6
  import { PureComponent } from 'react';
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
4
8
  import { jsx } from '@emotion/react';
5
9
  import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
6
10
  import { listStyles, taskListStyles } from './styles';
@@ -21,23 +25,26 @@ export default class TaskList extends PureComponent {
21
25
  // and action items, which all share the common `<li>` element.
22
26
  // The value of `data-task-local-id` should be discarded upon paste, with a
23
27
  // a new uuid generated by the editor for the cloned content.
24
- return jsx("div", {
25
- css: [listStyles, taskListStyles],
26
- "data-task-list-local-id": ""
27
- }, React.Children.map(children, (child, idx) => {
28
- const {
29
- localId
30
- } = child.props;
31
- return jsx(FabricElementsAnalyticsContext, {
32
- data: {
33
- listLocalId: listId,
34
- listSize,
35
- position: idx
36
- }
37
- }, jsx("div", {
38
- key: idx,
39
- "data-task-local-id": localId || ''
40
- }, child));
41
- }));
28
+ return (
29
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
30
+ jsx("div", {
31
+ css: [listStyles, taskListStyles],
32
+ "data-task-list-local-id": ""
33
+ }, React.Children.map(children, (child, idx) => {
34
+ const {
35
+ localId
36
+ } = child.props;
37
+ return jsx(FabricElementsAnalyticsContext, {
38
+ data: {
39
+ listLocalId: listId,
40
+ listSize,
41
+ position: idx
42
+ }
43
+ }, jsx("div", {
44
+ key: idx,
45
+ "data-task-local-id": localId || ''
46
+ }, child));
47
+ }))
48
+ );
42
49
  }
43
50
  }
@@ -1,3 +1,4 @@
1
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
1
2
  import { css } from '@emotion/react';
2
3
  import { N200, N20A } from '@atlaskit/theme/colors';
3
4
  import checkboxTheme from './theme';
@@ -6,23 +7,32 @@ import checkboxTheme from './theme';
6
7
  Increasing specificity with double ampersand to ensure these rules take
7
8
  priority over the global styles applied to 'ol' elements.
8
9
  */
10
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
9
11
  export const listStyles = css({
12
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
10
13
  '&&': {
11
14
  listStyleType: 'none',
12
15
  paddingLeft: 0
13
16
  }
14
17
  });
18
+
19
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
15
20
  export const taskListStyles = css({
21
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
16
22
  'div + div': {
17
23
  marginTop: "var(--ds-space-050, 4px)"
18
24
  }
19
25
  });
26
+
27
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
20
28
  export const contentStyles = css({
21
29
  margin: 0,
22
30
  wordWrap: 'break-word',
23
31
  minWidth: 0,
24
32
  flex: '1 1 auto'
25
33
  });
34
+
35
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
26
36
  export const taskStyles = css({
27
37
  display: 'flex',
28
38
  flexDirection: 'row',
@@ -37,11 +47,13 @@ export const decisionStyles = () => css({
37
47
  borderRadius: "var(--ds-border-radius-100, 3px)",
38
48
  backgroundColor: `var(--ds-background-neutral, ${N20A})`,
39
49
  position: 'relative',
50
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
40
51
  '.decision-item': {
41
52
  cursor: 'initial'
42
53
  }
43
54
  });
44
55
  export const placeholderStyles = offset => css({
56
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
45
57
  margin: `0 0 0 ${offset}px`,
46
58
  position: 'absolute',
47
59
  color: `var(--ds-text-subtlest, ${N200})`,
@@ -63,6 +75,7 @@ export const checkboxStyles = isRenderer => css({
63
75
  height: '24px',
64
76
  position: 'relative',
65
77
  alignSelf: 'start',
78
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
66
79
  "& > input[type='checkbox']": {
67
80
  width: '16px',
68
81
  height: '16px',
@@ -75,9 +88,11 @@ export const checkboxStyles = isRenderer => css({
75
88
  top: '50%',
76
89
  left: '50%',
77
90
  transform: 'translate(-50%, -50%)',
91
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
78
92
  '&[disabled]': {
79
93
  cursor: 'default'
80
94
  },
95
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
81
96
  '+ span': {
82
97
  width: '24px',
83
98
  height: '24px',
@@ -86,6 +101,7 @@ export const checkboxStyles = isRenderer => css({
86
101
  left: '50%',
87
102
  transform: 'translate(-50%, -50%)'
88
103
  },
104
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
89
105
  '+ span > svg': {
90
106
  boxSizing: 'border-box',
91
107
  display: 'inline',
@@ -96,68 +112,104 @@ export const checkboxStyles = isRenderer => css({
96
112
  maxHeight: 'unset',
97
113
  position: 'absolute',
98
114
  overflow: 'hidden',
115
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
99
116
  color: checkboxTheme.light.boxColor.rest,
100
117
  transition: 'color 0.2s ease-in-out, fill 0.2s ease-in-out',
118
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
101
119
  'path:first-of-type': {
102
120
  visibility: 'hidden'
103
121
  },
122
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
104
123
  'rect:first-of-type': {
124
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
105
125
  stroke: checkboxTheme.light.borderColor.rest,
106
126
  strokeWidth: 1,
107
127
  transition: 'stroke 0.2s ease-in-out'
108
128
  }
109
129
  },
130
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
110
131
  '&:hover + span > svg': {
132
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
111
133
  color: checkboxTheme.light.boxColor.hovered,
134
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
112
135
  'rect:first-of-type': {
136
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
113
137
  stroke: checkboxTheme.light.borderColor.hovered
114
138
  }
115
139
  },
140
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
116
141
  '&:checked:hover + span > svg': {
142
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
117
143
  color: checkboxTheme.light.boxColor.hoveredAndChecked,
144
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
118
145
  fill: checkboxTheme.light.tickColor.checked,
146
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
119
147
  'rect:first-of-type': {
148
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
120
149
  stroke: checkboxTheme.light.borderColor.hoveredAndChecked
121
150
  }
122
151
  },
123
152
  '&:checked': {
153
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
124
154
  '+ span > svg': {
155
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
125
156
  'path:first-of-type': {
126
157
  visibility: 'visible'
127
158
  },
159
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
128
160
  color: checkboxTheme.light.boxColor.checked,
161
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
129
162
  fill: checkboxTheme.light.tickColor.checked,
163
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
130
164
  'rect:first-of-type': {
165
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
131
166
  stroke: checkboxTheme.light.borderColor.checked
132
167
  }
133
168
  }
134
169
  },
170
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
135
171
  '&:active + span > svg': {
172
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
136
173
  color: checkboxTheme.light.boxColor.active,
174
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
137
175
  'rect:first-of-type': {
176
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
138
177
  stroke: checkboxTheme.light.borderColor.active
139
178
  }
140
179
  },
180
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
141
181
  '&:checked:active + span > svg': {
182
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
142
183
  color: checkboxTheme.light.boxColor.active,
184
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
143
185
  fill: checkboxTheme.light.tickColor.activeAndChecked,
186
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
144
187
  'rect:first-of-type': {
188
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
145
189
  stroke: checkboxTheme.light.borderColor.active
146
190
  }
147
191
  },
192
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
148
193
  '&:disabled + span > svg, &:disabled:hover + span > svg, &:disabled:focus + span > svg, &:disabled:active + span > svg': {
194
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
149
195
  color: checkboxTheme.light.boxColor.disabled,
196
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
150
197
  'rect:first-of-type': {
198
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
151
199
  stroke: checkboxTheme.light.borderColor.disabled
152
200
  }
153
201
  },
202
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
154
203
  '&:disabled:checked + span > svg': {
204
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
155
205
  fill: checkboxTheme.light.tickColor.disabledAndChecked
156
206
  },
207
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
157
208
  '&:focus + span::after': {
158
209
  position: 'absolute',
159
210
  width: "var(--ds-space-200, 16px)",
160
211
  height: "var(--ds-space-200, 16px)",
212
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
161
213
  border: `2px solid ${checkboxTheme.light.borderColor.focused}`,
162
214
  borderRadius: "var(--ds-space-050, 4px)",
163
215
  content: "''",
@@ -1,5 +1,9 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
 
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
7
  import { css, jsx } from '@emotion/react';
4
8
  import DecisionIcon from '@atlaskit/icon/glyph/editor/decision';
5
9
  import Item from './Item';
@@ -10,7 +14,9 @@ var iconStyles = function iconStyles(showPlaceholder) {
10
14
  height: '16px',
11
15
  width: '16px',
12
16
  margin: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-150, 12px)", " 0 0"),
17
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
13
18
  color: showPlaceholder ? "var(--ds-icon-subtle, ".concat(N100, ")") : "var(--ds-icon-success, ".concat(G400, ")"),
19
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
14
20
  '> span': {
15
21
  margin: "var(--ds-space-negative-100, -8px)"
16
22
  }
@@ -23,7 +29,9 @@ var DecisionItem = function DecisionItem(_ref) {
23
29
  placeholder = _ref.placeholder,
24
30
  showPlaceholder = _ref.showPlaceholder,
25
31
  dataAttributes = _ref.dataAttributes;
26
- var icon = jsx("span", {
32
+ var icon =
33
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
34
+ jsx("span", {
27
35
  contentEditable: false,
28
36
  css: iconStyles(showPlaceholder)
29
37
  }, jsx(DecisionIcon, {
@@ -5,10 +5,14 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
5
5
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
6
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
7
7
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
8
- /** @jsx jsx */
8
+ /**
9
+ * @jsxRuntime classic
10
+ * @jsx jsx
11
+ */
9
12
 
10
13
  import React from 'react';
11
14
  import { PureComponent } from 'react';
15
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
12
16
  import { jsx } from '@emotion/react';
13
17
  import { listStyles } from './styles';
14
18
  var DecisionList = /*#__PURE__*/function (_PureComponent) {
@@ -32,19 +36,22 @@ var DecisionList = /*#__PURE__*/function (_PureComponent) {
32
36
  // and action items, which all share the common `<li>` element.
33
37
  // The value of `data-decision-local-id` should be discarded upon paste, with a
34
38
  // a new uuid generated by the editor for the cloned content.
35
- return jsx("ol", {
36
- css: listStyles,
37
- "data-decision-list-local-id": "",
38
- "data-node-type": "decisionList"
39
- }, React.Children.map(children, function (child, idx) {
40
- var _ref = child.props,
41
- localId = _ref.localId;
42
- return jsx("li", {
43
- key: idx,
44
- "data-decision-local-id": localId || '',
45
- "data-decision-state": "DECIDED"
46
- }, child);
47
- }));
39
+ return (
40
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
41
+ jsx("ol", {
42
+ css: listStyles,
43
+ "data-decision-list-local-id": "",
44
+ "data-node-type": "decisionList"
45
+ }, React.Children.map(children, function (child, idx) {
46
+ var _ref = child.props,
47
+ localId = _ref.localId;
48
+ return jsx("li", {
49
+ key: idx,
50
+ "data-decision-local-id": localId || '',
51
+ "data-decision-state": "DECIDED"
52
+ }, child);
53
+ }))
54
+ );
48
55
  }
49
56
  }]);
50
57
  return DecisionList;
@@ -7,9 +7,13 @@ import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
7
7
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
8
8
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
9
9
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
10
- /** @jsx jsx */
10
+ /**
11
+ * @jsxRuntime classic
12
+ * @jsx jsx
13
+ */
11
14
 
12
15
  import { PureComponent } from 'react';
16
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
13
17
  import { jsx } from '@emotion/react';
14
18
  // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
15
19
  import { gridSize } from '@atlaskit/theme/constants';
@@ -38,7 +42,9 @@ var Item = /*#__PURE__*/function (_PureComponent) {
38
42
  var offset = gridSize() * (itemType === 'TASK' ? 3 : 3.5);
39
43
  return jsx("span", {
40
44
  "data-testid": "task-decision-item-placeholder",
41
- "data-component": "placeholder",
45
+ "data-component": "placeholder"
46
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
47
+ ,
42
48
  css: placeholderStyles(offset),
43
49
  contentEditable: false
44
50
  }, placeholder);
@@ -54,17 +60,22 @@ var Item = /*#__PURE__*/function (_PureComponent) {
54
60
  checkBoxId = _this$props2.checkBoxId,
55
61
  dataAttributes = _this$props2.dataAttributes;
56
62
  if (itemType === 'TASK') {
57
- return jsx("div", {
58
- css: taskStyles,
59
- id: "".concat(checkBoxId, "-wrapper")
60
- }, icon, this.renderPlaceholder(), jsx("div", _extends({
61
- "data-component": "content",
62
- css: contentStyles,
63
- ref: contentRef
64
- }, dataAttributes), children));
63
+ return (
64
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
65
+ jsx("div", {
66
+ css: taskStyles,
67
+ id: "".concat(checkBoxId, "-wrapper")
68
+ }, icon, this.renderPlaceholder(), jsx("div", _extends({
69
+ "data-component": "content",
70
+ css: contentStyles,
71
+ ref: contentRef
72
+ }, dataAttributes), children))
73
+ );
65
74
  } else if (itemType === 'DECISION') {
66
75
  return jsx("div", {
67
- "data-testid": "elements-decision-item",
76
+ "data-testid": "elements-decision-item"
77
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
78
+ ,
68
79
  css: decisionStyles(),
69
80
  "data-decision-wrapper": "true"
70
81
  }, icon, this.renderPlaceholder(), jsx("div", _extends({
@@ -1,5 +1,9 @@
1
- /** @jsx jsx */
1
+ /**
2
+ * @jsxRuntime classic
3
+ * @jsx jsx
4
+ */
2
5
  import React, { useMemo, useRef } from 'react';
6
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
3
7
  import { jsx } from '@emotion/react';
4
8
  import CheckboxIcon from '@atlaskit/icon/glyph/checkbox';
5
9
  import Item from './Item';
@@ -54,7 +58,9 @@ var TaskItem = function TaskItem(props) {
54
58
  };
55
59
  }, [handleOnChange]);
56
60
  var inputRef = useRef(null);
57
- var icon = jsx("span", {
61
+ var icon =
62
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
63
+ jsx("span", {
58
64
  css: checkboxStyles(isRenderer),
59
65
  contentEditable: false
60
66
  }, jsx("input", {
@@ -5,9 +5,13 @@ import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstruct
5
5
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
6
6
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
7
7
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
8
- /** @jsx jsx */
8
+ /**
9
+ * @jsxRuntime classic
10
+ * @jsx jsx
11
+ */
9
12
  import React from 'react';
10
13
  import { PureComponent } from 'react';
14
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
11
15
  import { jsx } from '@emotion/react';
12
16
  import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
13
17
  import { listStyles, taskListStyles } from './styles';
@@ -35,23 +39,26 @@ var TaskList = /*#__PURE__*/function (_PureComponent) {
35
39
  // and action items, which all share the common `<li>` element.
36
40
  // The value of `data-task-local-id` should be discarded upon paste, with a
37
41
  // a new uuid generated by the editor for the cloned content.
38
- return jsx("div", {
39
- css: [listStyles, taskListStyles],
40
- "data-task-list-local-id": ""
41
- }, React.Children.map(children, function (child, idx) {
42
- var _ref = child.props,
43
- localId = _ref.localId;
44
- return jsx(FabricElementsAnalyticsContext, {
45
- data: {
46
- listLocalId: listId,
47
- listSize: listSize,
48
- position: idx
49
- }
50
- }, jsx("div", {
51
- key: idx,
52
- "data-task-local-id": localId || ''
53
- }, child));
54
- }));
42
+ return (
43
+ // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
44
+ jsx("div", {
45
+ css: [listStyles, taskListStyles],
46
+ "data-task-list-local-id": ""
47
+ }, React.Children.map(children, function (child, idx) {
48
+ var _ref = child.props,
49
+ localId = _ref.localId;
50
+ return jsx(FabricElementsAnalyticsContext, {
51
+ data: {
52
+ listLocalId: listId,
53
+ listSize: listSize,
54
+ position: idx
55
+ }
56
+ }, jsx("div", {
57
+ key: idx,
58
+ "data-task-local-id": localId || ''
59
+ }, child));
60
+ }))
61
+ );
55
62
  }
56
63
  }]);
57
64
  return TaskList;