@atlaskit/task-decision 19.1.1 → 19.1.3

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.
Files changed (86) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/afm-cc/tsconfig.json +0 -9
  3. package/afm-jira/tsconfig.json +0 -9
  4. package/afm-post-office/tsconfig.json +0 -9
  5. package/dist/cjs/components/DecisionItem.js +13 -27
  6. package/dist/cjs/components/DecisionList.js +22 -22
  7. package/dist/cjs/components/Item.js +39 -39
  8. package/dist/cjs/components/ResourcedTaskItem.js +0 -23
  9. package/dist/cjs/components/TaskItem.js +21 -22
  10. package/dist/cjs/components/TaskList.js +24 -26
  11. package/dist/cjs/index.js +25 -12
  12. package/dist/es2019/components/DecisionItem.js +10 -26
  13. package/dist/es2019/components/DecisionList.js +23 -27
  14. package/dist/es2019/components/Item.js +30 -40
  15. package/dist/es2019/components/ResourcedTaskItem.js +2 -25
  16. package/dist/es2019/components/TaskItem.js +18 -18
  17. package/dist/es2019/components/TaskList.js +24 -28
  18. package/dist/es2019/index.js +4 -13
  19. package/dist/esm/components/DecisionItem.js +10 -26
  20. package/dist/esm/components/DecisionList.js +22 -26
  21. package/dist/esm/components/Item.js +34 -40
  22. package/dist/esm/components/ResourcedTaskItem.js +2 -25
  23. package/dist/esm/components/TaskItem.js +21 -18
  24. package/dist/esm/components/TaskList.js +23 -27
  25. package/dist/esm/index.js +4 -13
  26. package/dist/types/components/DecisionItem.d.ts +2 -6
  27. package/dist/types/components/DecisionList.d.ts +1 -2
  28. package/dist/types/components/Item.d.ts +2 -3
  29. package/dist/types/components/TaskList.d.ts +1 -2
  30. package/dist/types/index.d.ts +4 -5
  31. package/dist/types-ts4.5/components/DecisionItem.d.ts +2 -6
  32. package/dist/types-ts4.5/components/DecisionList.d.ts +1 -2
  33. package/dist/types-ts4.5/components/Item.d.ts +2 -3
  34. package/dist/types-ts4.5/components/TaskList.d.ts +1 -2
  35. package/dist/types-ts4.5/index.d.ts +4 -5
  36. package/package.json +3 -14
  37. package/dist/cjs/components/compiled/DecisionItem.js +0 -45
  38. package/dist/cjs/components/compiled/DecisionList.js +0 -62
  39. package/dist/cjs/components/compiled/Item.js +0 -101
  40. package/dist/cjs/components/compiled/TaskItem.js +0 -134
  41. package/dist/cjs/components/compiled/TaskList.js +0 -68
  42. package/dist/cjs/components/styles.js +0 -234
  43. package/dist/cjs/components/theme.js +0 -67
  44. package/dist/es2019/components/compiled/DecisionItem.js +0 -36
  45. package/dist/es2019/components/compiled/DecisionList.js +0 -40
  46. package/dist/es2019/components/compiled/Item.js +0 -70
  47. package/dist/es2019/components/compiled/TaskItem.js +0 -117
  48. package/dist/es2019/components/compiled/TaskList.js +0 -46
  49. package/dist/es2019/components/styles.js +0 -221
  50. package/dist/es2019/components/theme.js +0 -61
  51. package/dist/esm/components/compiled/DecisionItem.js +0 -35
  52. package/dist/esm/components/compiled/DecisionList.js +0 -53
  53. package/dist/esm/components/compiled/Item.js +0 -92
  54. package/dist/esm/components/compiled/TaskItem.js +0 -126
  55. package/dist/esm/components/compiled/TaskList.js +0 -60
  56. package/dist/esm/components/styles.js +0 -227
  57. package/dist/esm/components/theme.js +0 -61
  58. package/dist/types/components/compiled/DecisionItem.d.ts +0 -14
  59. package/dist/types/components/compiled/DecisionList.d.ts +0 -11
  60. package/dist/types/components/compiled/Item.d.ts +0 -25
  61. package/dist/types/components/compiled/TaskItem.d.ts +0 -27
  62. package/dist/types/components/compiled/TaskList.d.ts +0 -8
  63. package/dist/types/components/styles.d.ts +0 -12
  64. package/dist/types/components/theme.d.ts +0 -61
  65. package/dist/types-ts4.5/components/compiled/DecisionItem.d.ts +0 -14
  66. package/dist/types-ts4.5/components/compiled/DecisionList.d.ts +0 -11
  67. package/dist/types-ts4.5/components/compiled/Item.d.ts +0 -25
  68. package/dist/types-ts4.5/components/compiled/TaskItem.d.ts +0 -27
  69. package/dist/types-ts4.5/components/compiled/TaskList.d.ts +0 -8
  70. package/dist/types-ts4.5/components/styles.d.ts +0 -12
  71. package/dist/types-ts4.5/components/theme.d.ts +0 -61
  72. /package/dist/cjs/components/{compiled/DecisionItem.compiled.css → DecisionItem.compiled.css} +0 -0
  73. /package/dist/cjs/components/{compiled/DecisionList.compiled.css → DecisionList.compiled.css} +0 -0
  74. /package/dist/cjs/components/{compiled/Item.compiled.css → Item.compiled.css} +0 -0
  75. /package/dist/cjs/components/{compiled/TaskItem.compiled.css → TaskItem.compiled.css} +0 -0
  76. /package/dist/cjs/components/{compiled/TaskList.compiled.css → TaskList.compiled.css} +0 -0
  77. /package/dist/es2019/components/{compiled/DecisionItem.compiled.css → DecisionItem.compiled.css} +0 -0
  78. /package/dist/es2019/components/{compiled/DecisionList.compiled.css → DecisionList.compiled.css} +0 -0
  79. /package/dist/es2019/components/{compiled/Item.compiled.css → Item.compiled.css} +0 -0
  80. /package/dist/es2019/components/{compiled/TaskItem.compiled.css → TaskItem.compiled.css} +0 -0
  81. /package/dist/es2019/components/{compiled/TaskList.compiled.css → TaskList.compiled.css} +0 -0
  82. /package/dist/esm/components/{compiled/DecisionItem.compiled.css → DecisionItem.compiled.css} +0 -0
  83. /package/dist/esm/components/{compiled/DecisionList.compiled.css → DecisionList.compiled.css} +0 -0
  84. /package/dist/esm/components/{compiled/Item.compiled.css → Item.compiled.css} +0 -0
  85. /package/dist/esm/components/{compiled/TaskItem.compiled.css → TaskItem.compiled.css} +0 -0
  86. /package/dist/esm/components/{compiled/TaskList.compiled.css → TaskList.compiled.css} +0 -0
@@ -1,25 +1,11 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
-
6
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
- import { css, jsx } from '@emotion/react';
1
+ /* DecisionItem.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./DecisionItem.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
8
5
  import DecisionIcon from '@atlaskit/icon/core/migration/decision--editor-decision';
9
6
  import Item from './Item';
10
- const iconStyles = showPlaceholder => {
11
- return css({
12
- flex: '0 0 16px',
13
- height: '16px',
14
- width: '16px',
15
- margin: `${"var(--ds-space-050, 4px)"} ${"var(--ds-space-150, 12px)"} 0 0`,
16
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
17
- color: showPlaceholder ? "var(--ds-icon-subtle, #626F86)" : "var(--ds-icon-success, #22A06B)",
18
- display: 'flex',
19
- alignItems: 'center',
20
- justifyContent: 'center'
21
- });
22
- };
7
+ const iconStyles = null;
8
+ const iconStylesWithPlaceholder = null;
23
9
  const DecisionItem = ({
24
10
  appearance,
25
11
  children,
@@ -28,18 +14,16 @@ const DecisionItem = ({
28
14
  showPlaceholder,
29
15
  dataAttributes
30
16
  }) => {
31
- const icon =
32
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
33
- jsx("span", {
17
+ const icon = /*#__PURE__*/React.createElement("span", {
34
18
  contentEditable: false,
35
- css: iconStyles(showPlaceholder)
36
- }, jsx(DecisionIcon, {
19
+ className: ax(["_16jlidpf _1o9zidpf _i0dlexct _4t3i7vkz _1bsb7vkz _19pk1b66 _2hwxutpp _otyridpf _18u0idpf _syaz1yjp _1e0c1txw _4cvr1h6o _1bah1h6o", showPlaceholder && "_syaz1oju"])
20
+ }, /*#__PURE__*/React.createElement(DecisionIcon, {
37
21
  label: "Decision",
38
22
  spacing: "spacious",
39
23
  color: "currentColor",
40
24
  LEGACY_size: "large"
41
25
  }));
42
- return jsx(Item, {
26
+ return /*#__PURE__*/React.createElement(Item, {
43
27
  appearance: appearance,
44
28
  contentRef: contentRef,
45
29
  icon: icon,
@@ -1,13 +1,12 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
-
6
- import React from 'react';
7
- import { PureComponent } from 'react';
8
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
9
- import { jsx } from '@emotion/react';
10
- import { listStyles } from './styles';
1
+ /* DecisionList.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./DecisionList.compiled.css";
3
+ import { ax, ix } from "@compiled/react/runtime";
4
+ import React, { PureComponent } from 'react';
5
+ /*
6
+ Increasing specificity with double ampersand to ensure these rules take
7
+ priority over the global styles applied to 'ol' elements.
8
+ */
9
+ const listStyles = null;
11
10
  export default class DecisionList extends PureComponent {
12
11
  render() {
13
12
  const {
@@ -23,22 +22,19 @@ export default class DecisionList extends PureComponent {
23
22
  // and action items, which all share the common `<li>` element.
24
23
  // The value of `data-decision-local-id` should be discarded upon paste, with a
25
24
  // a new uuid generated by the editor for the cloned content.
26
- return (
27
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
28
- jsx("ol", {
29
- css: listStyles,
30
- "data-decision-list-local-id": "",
31
- "data-node-type": "decisionList"
32
- }, React.Children.map(children, (child, idx) => {
33
- const {
34
- localId
35
- } = child.props;
36
- return jsx("li", {
37
- key: idx,
38
- "data-decision-local-id": localId || '',
39
- "data-decision-state": "DECIDED"
40
- }, child);
41
- }))
42
- );
25
+ return /*#__PURE__*/React.createElement("ol", {
26
+ "data-decision-list-local-id": "",
27
+ "data-node-type": "decisionList",
28
+ className: ax(["_1braglyw _1yxxidpf"])
29
+ }, React.Children.map(children, (child, idx) => {
30
+ const {
31
+ localId
32
+ } = child.props;
33
+ return /*#__PURE__*/React.createElement("li", {
34
+ key: idx,
35
+ "data-decision-local-id": localId || '',
36
+ "data-decision-state": "DECIDED"
37
+ }, child);
38
+ }));
43
39
  }
44
40
  }
@@ -1,16 +1,15 @@
1
+ /* Item.tsx generated by @compiled/babel-plugin v0.36.1 */
1
2
  import _extends from "@babel/runtime/helpers/extends";
2
3
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
- /**
4
- * @jsxRuntime classic
5
- * @jsx jsx
6
- */
7
-
4
+ import "./Item.compiled.css";
5
+ import * as React from 'react';
6
+ import { ax, ix } from "@compiled/react/runtime";
8
7
  import { PureComponent } from 'react';
9
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
10
- import { jsx } from '@emotion/react';
11
- // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
12
- import { gridSize } from '@atlaskit/theme/constants';
13
- import { contentStyles, taskStyles, decisionStyles, placeholderStyles } from './styles';
8
+ const placeholderStyles = null;
9
+ const placeholderTaskStyles = null;
10
+ const decisionStyles = null;
11
+ const contentStyles = null;
12
+ const taskStyles = null;
14
13
  export default class Item extends PureComponent {
15
14
  renderPlaceholder() {
16
15
  const {
@@ -22,17 +21,11 @@ export default class Item extends PureComponent {
22
21
  if (!showPlaceholder || !placeholder || children) {
23
22
  return null;
24
23
  }
25
-
26
- // TODO: Migrate away from gridSize
27
- // Recommendation: Replace gridSize with 8
28
- const offset = gridSize() * (itemType === 'TASK' ? 3 : 3.5);
29
- return jsx("span", {
24
+ return /*#__PURE__*/React.createElement("span", {
30
25
  "data-testid": "task-decision-item-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
- ,
34
- css: placeholderStyles(offset),
35
- contentEditable: false
26
+ "data-component": "placeholder",
27
+ contentEditable: false,
28
+ className: ax(["_19pkidpf _2hwxidpf _otyridpf _18u0tu8f _1reo15vq _18m915vq _kqswstnw _syaz131l _lcxvglyw _1bto1l2s _o5721q9c _p12f1dza", itemType === 'TASK' && "_19pkidpf _2hwxidpf _otyridpf _18u0hwpb"])
36
29
  }, placeholder);
37
30
  }
38
31
  renderMessageAppearance() {
@@ -45,29 +38,26 @@ export default class Item extends PureComponent {
45
38
  dataAttributes
46
39
  } = this.props;
47
40
  if (itemType === 'TASK') {
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
- );
41
+ return /*#__PURE__*/React.createElement("div", {
42
+ id: `${checkBoxId}-wrapper`,
43
+ className: ax(["_1e0c1txw _2lx2vrvc _kqswh2mm"])
44
+ }, icon, this.renderPlaceholder(), /*#__PURE__*/React.createElement("div", _extends({
45
+ "data-component": "content",
46
+ ref: contentRef
47
+ }, dataAttributes, {
48
+ className: ax(["_19pkidpf _2hwxidpf _otyridpf _18u0idpf _16jlkb7n _1o9zkb7n _i0dl1wug _slp31hna _1ul9idpf"])
49
+ }), children));
59
50
  } else if (itemType === 'DECISION') {
60
- return jsx("div", {
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
- ,
64
- css: decisionStyles(),
65
- "data-decision-wrapper": "true"
66
- }, icon, this.renderPlaceholder(), jsx("div", _extends({
51
+ return /*#__PURE__*/React.createElement("div", {
52
+ "data-testid": "elements-decision-item",
53
+ "data-decision-wrapper": "true",
54
+ className: ax(["_2rkosqtm _1e0c1txw _2lx2vrvc _19pku2gc _2hwxidpf _otyridpf _18u0idpf _ca0qu2gc _u5f3u2gc _n3tdu2gc _19bvutpp _bfhkm7j4 _kqswh2mm _14hd1wug"])
55
+ }, icon, this.renderPlaceholder(), /*#__PURE__*/React.createElement("div", _extends({
67
56
  "data-component": "content",
68
- css: contentStyles,
69
57
  ref: contentRef
70
- }, dataAttributes), children));
58
+ }, dataAttributes, {
59
+ className: ax(["_19pkidpf _2hwxidpf _otyridpf _18u0idpf _16jlkb7n _1o9zkb7n _i0dl1wug _slp31hna _1ul9idpf"])
60
+ }), children));
71
61
  }
72
62
  return null;
73
63
  }
@@ -1,10 +1,8 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  import React from 'react';
3
3
  import { PureComponent } from 'react';
4
- import EmotionTaskItem from './TaskItem';
5
- import CompiledTaskItem from './compiled/TaskItem';
4
+ import TaskItem from './TaskItem';
6
5
  import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
7
- import { fg } from '@atlaskit/platform-feature-flags';
8
6
  export default class ResourcedTaskItem extends PureComponent {
9
7
  constructor(props) {
10
8
  super(props);
@@ -144,32 +142,11 @@ export default class ResourcedTaskItem extends PureComponent {
144
142
  isFocused,
145
143
  inputRef
146
144
  } = this.props;
147
- if (fg('platform_editor_css_migrate_stage_1')) {
148
- return /*#__PURE__*/React.createElement(FabricElementsAnalyticsContext, {
149
- data: {
150
- objectAri
151
- }
152
- }, /*#__PURE__*/React.createElement(CompiledTaskItem, {
153
- isDone: isDone,
154
- isRenderer: isRenderer,
155
- isFocused: isFocused,
156
- taskId: taskId,
157
- onChange: this.handleOnChange,
158
- onClick: this.handleOnClick,
159
- appearance: appearance,
160
- contentRef: contentRef,
161
- showPlaceholder: showPlaceholder,
162
- placeholder: placeholder,
163
- disabled: disabled,
164
- dataAttributes: dataAttributes,
165
- inputRef: inputRef
166
- }, children));
167
- }
168
145
  return /*#__PURE__*/React.createElement(FabricElementsAnalyticsContext, {
169
146
  data: {
170
147
  objectAri
171
148
  }
172
- }, /*#__PURE__*/React.createElement(EmotionTaskItem, {
149
+ }, /*#__PURE__*/React.createElement(TaskItem, {
173
150
  isDone: isDone,
174
151
  isRenderer: isRenderer,
175
152
  isFocused: isFocused,
@@ -1,11 +1,8 @@
1
+ /* TaskItem.tsx generated by @compiled/babel-plugin v0.36.1 */
1
2
  import _extends from "@babel/runtime/helpers/extends";
2
- /**
3
- * @jsxRuntime classic
4
- * @jsx jsx
5
- */
3
+ import "./TaskItem.compiled.css";
4
+ import { ax, ix } from "@compiled/react/runtime";
6
5
  import React, { useMemo, useRef } from 'react';
7
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
- import { jsx } from '@emotion/react';
9
6
  // eslint-disable-next-line @atlassian/tangerine/import/entry-points
10
7
  import { Icon } from '@atlaskit/icon/base-new';
11
8
  // eslint-disable-next-line @atlassian/tangerine/import/entry-points
@@ -14,11 +11,17 @@ import CheckboxCheckedIcon from '@atlaskit/icon/core/checkbox-checked';
14
11
  import Item from './Item';
15
12
  import { withAnalyticsEvents } from '@atlaskit/analytics-next';
16
13
  import { createAndFireEventInElementsChannel } from '../analytics';
17
- import { checkboxStyles } from './styles';
18
- const CheckboxUncheckedIcon = props => jsx(Icon, _extends({
14
+ const CheckboxUncheckedIcon = props => /*#__PURE__*/React.createElement(Icon, _extends({
19
15
  dangerouslySetGlyph: `<rect width="12.5" height="12.5" x="1.75" y="1.75" stroke="currentcolor" stroke-width="1.5" rx="1.25"/>`,
20
16
  type: 'core'
21
17
  }, props));
18
+
19
+ /**
20
+ * References packages/design-system/checkbox/src/checkbox.tsx
21
+ * To be used until mobile editor does not require legacy themed() API anymore,
22
+ * which will allow migration to use @atlaskit/checkbox instead
23
+ */
24
+ const checkboxStyles = null;
22
25
  let taskCount = 0;
23
26
  const getCheckBoxId = localId => `${localId}-${taskCount++}`;
24
27
  const TaskItem = props => {
@@ -26,7 +29,6 @@ const TaskItem = props => {
26
29
  appearance,
27
30
  isDone,
28
31
  isFocused,
29
- isRenderer,
30
32
  contentRef,
31
33
  children,
32
34
  placeholder,
@@ -66,12 +68,10 @@ const TaskItem = props => {
66
68
  }, [handleOnChange]);
67
69
  const defaultInputRef = useRef(null);
68
70
  const inputRef = inputRefFromProps !== null && inputRefFromProps !== void 0 ? inputRefFromProps : defaultInputRef;
69
- const icon =
70
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
71
- jsx("span", {
72
- css: checkboxStyles(isRenderer),
73
- contentEditable: false
74
- }, jsx("input", {
71
+ const icon = /*#__PURE__*/React.createElement("span", {
72
+ contentEditable: false,
73
+ className: ax(["_16jlidpf _1o9zidpf _i0dl1tcg _1bsb1tcg _4t3i1tcg _kqswh2mm _1wpzv2br _1snx1r31 _1746glyw _dx3f1o36 _1h5xidpf _sqizidpf _fs2cidpf _1smcidpf _oezm15vq _1l0615vq _1abj1mn3 _18a711so _16np1elr _a27kkb7n _q3p7usvi _qhqx1nu9 _10cr1ssb _zfav1ssb _m7eu1ooe _l9o0n7od _1efjn7od _1u2istnw _32ro1j9a _1wn015vq _den5ugt7 _zh8l1b66 _g5w3stnw _whhepxbi _1stbpxbi _18tob3bt _1awt1ule _haf81ssb _ra781ssb _cr751ooe _1q8r7vkz _9l2s7vkz _1mh7kb7n _s3uktlke _1davidpf _8bo8stnw _psnc1ssb _4k421ssb _1rvv1ooe _13vl73ad _1t711tcg _1nuz1tcg _cs4qstnw _9j2j1ssb _1mwj1ssb _19l51ooe _12yy1d5g _1miy1elr _1umo18hz _tpz25w2r _k6dg18hz _1qduewfl _q8ft1fvw _1y9t5w2r _ut031fvw _gi9hr01l _1qp6muej _wxkgr01l _wo245w2r _c8dpmuej _d2dcsyzs _1eulsyzs _1bc7syzs _16fmsyzs _bhkusyzs _czfesyzs _1gxgsyzs _19w0syzs _1x1y1lg7"])
74
+ }, /*#__PURE__*/React.createElement("input", {
75
75
  id: checkBoxId,
76
76
  "aria-labelledby": `${checkBoxId}-wrapper`,
77
77
  name: checkBoxId,
@@ -83,9 +83,9 @@ const TaskItem = props => {
83
83
  suppressHydrationWarning: true,
84
84
  onKeyPress: handleOnKeyPress,
85
85
  ref: inputRef
86
- }), isDone ? jsx(CheckboxCheckedIcon, {
86
+ }), isDone ? /*#__PURE__*/React.createElement(CheckboxCheckedIcon, {
87
87
  label: ""
88
- }) : jsx(CheckboxUncheckedIcon, {
88
+ }) : /*#__PURE__*/React.createElement(CheckboxUncheckedIcon, {
89
89
  label: ""
90
90
  }));
91
91
  React.useEffect(() => {
@@ -99,7 +99,7 @@ const TaskItem = props => {
99
99
  }, 100);
100
100
  }
101
101
  }, [isFocused, inputRef]);
102
- return jsx(Item, {
102
+ return /*#__PURE__*/React.createElement(Item, {
103
103
  appearance: appearance,
104
104
  contentRef: contentRef,
105
105
  icon: icon,
@@ -1,13 +1,11 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
1
+ /* TaskList.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./TaskList.compiled.css";
3
+ import { ax, ix } from "@compiled/react/runtime";
5
4
  import React from 'react';
6
5
  import { PureComponent } from 'react';
7
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
8
- import { jsx } from '@emotion/react';
9
6
  import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
10
- import { listStyles, taskListStyles } from './styles';
7
+ const listStyles = null;
8
+ const taskListStyles = null;
11
9
  export default class TaskList extends PureComponent {
12
10
  render() {
13
11
  const {
@@ -25,26 +23,24 @@ export default class TaskList extends PureComponent {
25
23
  // and action items, which all share the common `<li>` element.
26
24
  // The value of `data-task-local-id` should be discarded upon paste, with a
27
25
  // a new uuid generated by the editor for the cloned content.
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
- );
26
+ return /*#__PURE__*/React.createElement("div", {
27
+ "data-task-list-local-id": "",
28
+ className: ax(["_2mzuglyw _19bvidpf"])
29
+ }, React.Children.map(children, (child, idx) => {
30
+ const {
31
+ localId
32
+ } = child.props;
33
+ return /*#__PURE__*/React.createElement(FabricElementsAnalyticsContext, {
34
+ data: {
35
+ listLocalId: listId,
36
+ listSize,
37
+ position: idx
38
+ }
39
+ }, /*#__PURE__*/React.createElement("div", {
40
+ key: idx,
41
+ "data-task-local-id": localId || '',
42
+ className: ax(["_19pk1b66"])
43
+ }, child));
44
+ }));
49
45
  }
50
46
  }
@@ -1,17 +1,8 @@
1
- import EmotionDecisionItem from './components/DecisionItem';
2
- import CompiledDecisionItem from './components/compiled/DecisionItem';
3
- import EmotionDecisionList from './components/DecisionList';
4
- import CompiledDecisionList from './components/compiled/DecisionList';
1
+ import DecisionItem from './components/DecisionItem';
2
+ import DecisionList from './components/DecisionList';
5
3
  import ResourcedTaskItem from './components/ResourcedTaskItem';
6
4
  import TaskDecisionResource from './api/TaskDecisionResource';
7
- import EmotionTaskItem from './components/TaskItem';
8
- import CompiledTaskItem from './components/compiled/TaskItem';
9
- import EmotionTaskList from './components/TaskList';
10
- import CompiledTaskList from './components/compiled/TaskList';
11
- import { componentWithFG } from '@atlaskit/platform-feature-flags-react';
12
- const DecisionItem = componentWithFG('platform_editor_css_migrate_stage_1', CompiledDecisionItem, EmotionDecisionItem);
13
- const DecisionList = componentWithFG('platform_editor_css_migrate_stage_1', CompiledDecisionList, EmotionDecisionList);
14
- const TaskItem = componentWithFG('platform_editor_css_migrate_stage_1', CompiledTaskItem, EmotionTaskItem);
15
- const TaskList = componentWithFG('platform_editor_css_migrate_stage_1', CompiledTaskList, EmotionTaskList);
5
+ import TaskItem from './components/TaskItem';
6
+ import TaskList from './components/TaskList';
16
7
  export { PubSubSpecialEventType } from './types';
17
8
  export { DecisionItem, DecisionList, ResourcedTaskItem, TaskDecisionResource, TaskItem, TaskList };
@@ -1,25 +1,11 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
-
6
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
7
- import { css, jsx } from '@emotion/react';
1
+ /* DecisionItem.tsx generated by @compiled/babel-plugin v0.36.1 */
2
+ import "./DecisionItem.compiled.css";
3
+ import * as React from 'react';
4
+ import { ax, ix } from "@compiled/react/runtime";
8
5
  import DecisionIcon from '@atlaskit/icon/core/migration/decision--editor-decision';
9
6
  import Item from './Item';
10
- var iconStyles = function iconStyles(showPlaceholder) {
11
- return css({
12
- flex: '0 0 16px',
13
- height: '16px',
14
- width: '16px',
15
- margin: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-150, 12px)", " 0 0"),
16
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
17
- color: showPlaceholder ? "var(--ds-icon-subtle, #626F86)" : "var(--ds-icon-success, #22A06B)",
18
- display: 'flex',
19
- alignItems: 'center',
20
- justifyContent: 'center'
21
- });
22
- };
7
+ var iconStyles = null;
8
+ var iconStylesWithPlaceholder = null;
23
9
  var DecisionItem = function DecisionItem(_ref) {
24
10
  var appearance = _ref.appearance,
25
11
  children = _ref.children,
@@ -27,18 +13,16 @@ var DecisionItem = function DecisionItem(_ref) {
27
13
  placeholder = _ref.placeholder,
28
14
  showPlaceholder = _ref.showPlaceholder,
29
15
  dataAttributes = _ref.dataAttributes;
30
- var icon =
31
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
32
- jsx("span", {
16
+ var icon = /*#__PURE__*/React.createElement("span", {
33
17
  contentEditable: false,
34
- css: iconStyles(showPlaceholder)
35
- }, jsx(DecisionIcon, {
18
+ className: ax(["_16jlidpf _1o9zidpf _i0dlexct _4t3i7vkz _1bsb7vkz _19pk1b66 _2hwxutpp _otyridpf _18u0idpf _syaz1yjp _1e0c1txw _4cvr1h6o _1bah1h6o", showPlaceholder && "_syaz1oju"])
19
+ }, /*#__PURE__*/React.createElement(DecisionIcon, {
36
20
  label: "Decision",
37
21
  spacing: "spacious",
38
22
  color: "currentColor",
39
23
  LEGACY_size: "large"
40
24
  }));
41
- return jsx(Item, {
25
+ return /*#__PURE__*/React.createElement(Item, {
42
26
  appearance: appearance,
43
27
  contentRef: contentRef,
44
28
  icon: icon,
@@ -1,20 +1,19 @@
1
+ /* DecisionList.tsx generated by @compiled/babel-plugin v0.36.1 */
1
2
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
2
3
  import _createClass from "@babel/runtime/helpers/createClass";
3
4
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
4
5
  import _getPrototypeOf from "@babel/runtime/helpers/getPrototypeOf";
5
6
  import _inherits from "@babel/runtime/helpers/inherits";
7
+ import "./DecisionList.compiled.css";
8
+ import { ax, ix } from "@compiled/react/runtime";
6
9
  function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
7
10
  function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
8
- /**
9
- * @jsxRuntime classic
10
- * @jsx jsx
11
- */
12
-
13
- import React from 'react';
14
- import { PureComponent } from 'react';
15
- // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
16
- import { jsx } from '@emotion/react';
17
- import { listStyles } from './styles';
11
+ import React, { PureComponent } from 'react';
12
+ /*
13
+ Increasing specificity with double ampersand to ensure these rules take
14
+ priority over the global styles applied to 'ol' elements.
15
+ */
16
+ var listStyles = null;
18
17
  var DecisionList = /*#__PURE__*/function (_PureComponent) {
19
18
  function DecisionList() {
20
19
  _classCallCheck(this, DecisionList);
@@ -35,22 +34,19 @@ var DecisionList = /*#__PURE__*/function (_PureComponent) {
35
34
  // and action items, which all share the common `<li>` element.
36
35
  // The value of `data-decision-local-id` should be discarded upon paste, with a
37
36
  // a new uuid generated by the editor for the cloned content.
38
- return (
39
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
40
- jsx("ol", {
41
- css: listStyles,
42
- "data-decision-list-local-id": "",
43
- "data-node-type": "decisionList"
44
- }, React.Children.map(children, function (child, idx) {
45
- var _ref = child.props,
46
- localId = _ref.localId;
47
- return jsx("li", {
48
- key: idx,
49
- "data-decision-local-id": localId || '',
50
- "data-decision-state": "DECIDED"
51
- }, child);
52
- }))
53
- );
37
+ return /*#__PURE__*/React.createElement("ol", {
38
+ "data-decision-list-local-id": "",
39
+ "data-node-type": "decisionList",
40
+ className: ax(["_1braglyw _1yxxidpf"])
41
+ }, React.Children.map(children, function (child, idx) {
42
+ var _ref = child.props,
43
+ localId = _ref.localId;
44
+ return /*#__PURE__*/React.createElement("li", {
45
+ key: idx,
46
+ "data-decision-local-id": localId || '',
47
+ "data-decision-state": "DECIDED"
48
+ }, child);
49
+ }));
54
50
  }
55
51
  }]);
56
52
  }(PureComponent);