@atlaskit/task-decision 19.1.2 → 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.
- package/CHANGELOG.md +8 -0
- package/afm-cc/tsconfig.json +0 -9
- package/afm-jira/tsconfig.json +0 -9
- package/afm-post-office/tsconfig.json +0 -9
- package/dist/cjs/components/DecisionItem.js +13 -27
- package/dist/cjs/components/DecisionList.js +22 -22
- package/dist/cjs/components/Item.js +39 -39
- package/dist/cjs/components/ResourcedTaskItem.js +0 -23
- package/dist/cjs/components/TaskItem.js +21 -22
- package/dist/cjs/components/TaskList.js +24 -26
- package/dist/cjs/index.js +25 -12
- package/dist/es2019/components/DecisionItem.js +10 -26
- package/dist/es2019/components/DecisionList.js +23 -27
- package/dist/es2019/components/Item.js +30 -40
- package/dist/es2019/components/ResourcedTaskItem.js +2 -25
- package/dist/es2019/components/TaskItem.js +18 -18
- package/dist/es2019/components/TaskList.js +24 -28
- package/dist/es2019/index.js +4 -13
- package/dist/esm/components/DecisionItem.js +10 -26
- package/dist/esm/components/DecisionList.js +22 -26
- package/dist/esm/components/Item.js +34 -40
- package/dist/esm/components/ResourcedTaskItem.js +2 -25
- package/dist/esm/components/TaskItem.js +21 -18
- package/dist/esm/components/TaskList.js +23 -27
- package/dist/esm/index.js +4 -13
- package/dist/types/components/DecisionItem.d.ts +2 -6
- package/dist/types/components/DecisionList.d.ts +1 -2
- package/dist/types/components/Item.d.ts +2 -3
- package/dist/types/components/TaskList.d.ts +1 -2
- package/dist/types/index.d.ts +4 -5
- package/dist/types-ts4.5/components/DecisionItem.d.ts +2 -6
- package/dist/types-ts4.5/components/DecisionList.d.ts +1 -2
- package/dist/types-ts4.5/components/Item.d.ts +2 -3
- package/dist/types-ts4.5/components/TaskList.d.ts +1 -2
- package/dist/types-ts4.5/index.d.ts +4 -5
- package/package.json +2 -13
- package/dist/cjs/components/compiled/DecisionItem.js +0 -45
- package/dist/cjs/components/compiled/DecisionList.js +0 -62
- package/dist/cjs/components/compiled/Item.js +0 -101
- package/dist/cjs/components/compiled/TaskItem.js +0 -134
- package/dist/cjs/components/compiled/TaskList.js +0 -68
- package/dist/cjs/components/styles.js +0 -234
- package/dist/cjs/components/theme.js +0 -67
- package/dist/es2019/components/compiled/DecisionItem.js +0 -36
- package/dist/es2019/components/compiled/DecisionList.js +0 -40
- package/dist/es2019/components/compiled/Item.js +0 -70
- package/dist/es2019/components/compiled/TaskItem.js +0 -117
- package/dist/es2019/components/compiled/TaskList.js +0 -46
- package/dist/es2019/components/styles.js +0 -221
- package/dist/es2019/components/theme.js +0 -61
- package/dist/esm/components/compiled/DecisionItem.js +0 -35
- package/dist/esm/components/compiled/DecisionList.js +0 -53
- package/dist/esm/components/compiled/Item.js +0 -92
- package/dist/esm/components/compiled/TaskItem.js +0 -126
- package/dist/esm/components/compiled/TaskList.js +0 -60
- package/dist/esm/components/styles.js +0 -227
- package/dist/esm/components/theme.js +0 -61
- package/dist/types/components/compiled/DecisionItem.d.ts +0 -14
- package/dist/types/components/compiled/DecisionList.d.ts +0 -11
- package/dist/types/components/compiled/Item.d.ts +0 -25
- package/dist/types/components/compiled/TaskItem.d.ts +0 -27
- package/dist/types/components/compiled/TaskList.d.ts +0 -8
- package/dist/types/components/styles.d.ts +0 -12
- package/dist/types/components/theme.d.ts +0 -61
- package/dist/types-ts4.5/components/compiled/DecisionItem.d.ts +0 -14
- package/dist/types-ts4.5/components/compiled/DecisionList.d.ts +0 -11
- package/dist/types-ts4.5/components/compiled/Item.d.ts +0 -25
- package/dist/types-ts4.5/components/compiled/TaskItem.d.ts +0 -27
- package/dist/types-ts4.5/components/compiled/TaskList.d.ts +0 -8
- package/dist/types-ts4.5/components/styles.d.ts +0 -12
- package/dist/types-ts4.5/components/theme.d.ts +0 -61
- /package/dist/cjs/components/{compiled/DecisionItem.compiled.css → DecisionItem.compiled.css} +0 -0
- /package/dist/cjs/components/{compiled/DecisionList.compiled.css → DecisionList.compiled.css} +0 -0
- /package/dist/cjs/components/{compiled/Item.compiled.css → Item.compiled.css} +0 -0
- /package/dist/cjs/components/{compiled/TaskItem.compiled.css → TaskItem.compiled.css} +0 -0
- /package/dist/cjs/components/{compiled/TaskList.compiled.css → TaskList.compiled.css} +0 -0
- /package/dist/es2019/components/{compiled/DecisionItem.compiled.css → DecisionItem.compiled.css} +0 -0
- /package/dist/es2019/components/{compiled/DecisionList.compiled.css → DecisionList.compiled.css} +0 -0
- /package/dist/es2019/components/{compiled/Item.compiled.css → Item.compiled.css} +0 -0
- /package/dist/es2019/components/{compiled/TaskItem.compiled.css → TaskItem.compiled.css} +0 -0
- /package/dist/es2019/components/{compiled/TaskList.compiled.css → TaskList.compiled.css} +0 -0
- /package/dist/esm/components/{compiled/DecisionItem.compiled.css → DecisionItem.compiled.css} +0 -0
- /package/dist/esm/components/{compiled/DecisionList.compiled.css → DecisionList.compiled.css} +0 -0
- /package/dist/esm/components/{compiled/Item.compiled.css → Item.compiled.css} +0 -0
- /package/dist/esm/components/{compiled/TaskItem.compiled.css → TaskItem.compiled.css} +0 -0
- /package/dist/esm/components/{compiled/TaskList.compiled.css → TaskList.compiled.css} +0 -0
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
/**
|
|
8
|
-
* Styles taken from packages/design-system/checkbox/src/internal/theme.tsx
|
|
9
|
-
* To be used until mobile editor does not require legacy themed() API anymore
|
|
10
|
-
*/
|
|
11
|
-
var checkboxTheme = {
|
|
12
|
-
light: {
|
|
13
|
-
borderColor: {
|
|
14
|
-
rest: "var(--ds-border-input, #8590A2)",
|
|
15
|
-
hovered: "var(--ds-border-input, #8590A2)",
|
|
16
|
-
disabled: "var(--ds-background-disabled, #091E4208)",
|
|
17
|
-
checked: "var(--ds-background-selected-bold, #0C66E4)",
|
|
18
|
-
active: "var(--ds-border, #091E4224)",
|
|
19
|
-
focused: "var(--ds-border-focused, #388BFF)",
|
|
20
|
-
hoveredAndChecked: "var(--ds-background-selected-bold-hovered, #0055CC)"
|
|
21
|
-
},
|
|
22
|
-
boxColor: {
|
|
23
|
-
rest: "var(--ds-background-input, #FFFFFF)",
|
|
24
|
-
hovered: "var(--ds-background-input-hovered, #F7F8F9)",
|
|
25
|
-
disabled: "var(--ds-background-disabled, #091E4208)",
|
|
26
|
-
active: "var(--ds-background-input-pressed, #FFFFFF)",
|
|
27
|
-
hoveredAndChecked: "var(--ds-background-selected-bold-hovered, #0055CC)",
|
|
28
|
-
checked: "var(--ds-background-selected-bold, #0C66E4)"
|
|
29
|
-
},
|
|
30
|
-
tickColor: {
|
|
31
|
-
disabledAndChecked: "var(--ds-icon-disabled, #091E424F)",
|
|
32
|
-
activeAndChecked: "var(--ds-icon-inverse, #FFFFFF)",
|
|
33
|
-
checked: "var(--ds-icon-inverse, #FFFFFF)"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
/**
|
|
37
|
-
* Fallback colours for dark mode taken from
|
|
38
|
-
* packages/design-system/tokens/src/artifacts/themes/atlassian-dark.tsx
|
|
39
|
-
* To be used to keep mobile / web checkbox dark mode consistent
|
|
40
|
-
* until mobile editor does not require legacy themed() API anymore
|
|
41
|
-
*/
|
|
42
|
-
dark: {
|
|
43
|
-
borderColor: {
|
|
44
|
-
rest: "var(--ds-border-input, #8590A2)",
|
|
45
|
-
hovered: "var(--ds-border-input, #8590A2)",
|
|
46
|
-
disabled: "var(--ds-background-disabled, #BCD6F00A)",
|
|
47
|
-
checked: "var(--ds-background-selected-bold, #579DFF)",
|
|
48
|
-
active: "var(--ds-border, #A6C5E229)",
|
|
49
|
-
focused: "var(--ds-border-focused, #85B8FF)",
|
|
50
|
-
hoveredAndChecked: "var(--ds-background-selected-bold-hovered, #85B8FF)"
|
|
51
|
-
},
|
|
52
|
-
boxColor: {
|
|
53
|
-
rest: "var(--ds-background-input, #22272B)",
|
|
54
|
-
hovered: "var(--ds-background-input-hovered, #282E33)",
|
|
55
|
-
disabled: "var(--ds-background-disabled, #BCD6F00A)",
|
|
56
|
-
active: "var(--ds-background-input-pressed, #22272B)",
|
|
57
|
-
hoveredAndChecked: "var(--ds-background-selected-bold-hovered, #85B8FF)",
|
|
58
|
-
checked: "var(--ds-background-selected-bold, #579DFF)"
|
|
59
|
-
},
|
|
60
|
-
tickColor: {
|
|
61
|
-
disabledAndChecked: "var(--ds-icon-disabled, #BFDBF847)",
|
|
62
|
-
activeAndChecked: "var(--ds-icon-inverse, #1D2125)",
|
|
63
|
-
checked: "var(--ds-icon-inverse, #1D2125)"
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
var _default = exports.default = checkboxTheme;
|
|
@@ -1,36 +0,0 @@
|
|
|
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";
|
|
5
|
-
import DecisionIcon from '@atlaskit/icon/core/migration/decision--editor-decision';
|
|
6
|
-
import Item from './Item';
|
|
7
|
-
const iconStyles = null;
|
|
8
|
-
const iconStylesWithPlaceholder = null;
|
|
9
|
-
const DecisionItem = ({
|
|
10
|
-
appearance,
|
|
11
|
-
children,
|
|
12
|
-
contentRef,
|
|
13
|
-
placeholder,
|
|
14
|
-
showPlaceholder,
|
|
15
|
-
dataAttributes
|
|
16
|
-
}) => {
|
|
17
|
-
const icon = /*#__PURE__*/React.createElement("span", {
|
|
18
|
-
contentEditable: false,
|
|
19
|
-
className: ax(["_16jlidpf _1o9zidpf _i0dlexct _4t3i7vkz _1bsb7vkz _19pk1b66 _2hwxutpp _otyridpf _18u0idpf _syaz1yjp _1e0c1txw _4cvr1h6o _1bah1h6o", showPlaceholder && "_syaz1oju"])
|
|
20
|
-
}, /*#__PURE__*/React.createElement(DecisionIcon, {
|
|
21
|
-
label: "Decision",
|
|
22
|
-
spacing: "spacious",
|
|
23
|
-
color: "currentColor",
|
|
24
|
-
LEGACY_size: "large"
|
|
25
|
-
}));
|
|
26
|
-
return /*#__PURE__*/React.createElement(Item, {
|
|
27
|
-
appearance: appearance,
|
|
28
|
-
contentRef: contentRef,
|
|
29
|
-
icon: icon,
|
|
30
|
-
placeholder: placeholder,
|
|
31
|
-
showPlaceholder: showPlaceholder,
|
|
32
|
-
itemType: "DECISION",
|
|
33
|
-
dataAttributes: dataAttributes
|
|
34
|
-
}, children);
|
|
35
|
-
};
|
|
36
|
-
export default DecisionItem;
|
|
@@ -1,40 +0,0 @@
|
|
|
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;
|
|
10
|
-
export default class DecisionList extends PureComponent {
|
|
11
|
-
render() {
|
|
12
|
-
const {
|
|
13
|
-
children
|
|
14
|
-
} = this.props;
|
|
15
|
-
if (!children) {
|
|
16
|
-
return null;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
// Data attributes are required for copy and paste from rendered content
|
|
20
|
-
// to the editor to preserve the decision.
|
|
21
|
-
// This allows the editor to differentiate between numbered and ordered lists,
|
|
22
|
-
// and action items, which all share the common `<li>` element.
|
|
23
|
-
// The value of `data-decision-local-id` should be discarded upon paste, with a
|
|
24
|
-
// a new uuid generated by the editor for the cloned content.
|
|
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
|
-
}));
|
|
39
|
-
}
|
|
40
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/* Item.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
|
-
import "./Item.compiled.css";
|
|
5
|
-
import * as React from 'react';
|
|
6
|
-
import { ax, ix } from "@compiled/react/runtime";
|
|
7
|
-
import { PureComponent } from 'react';
|
|
8
|
-
const placeholderStyles = null;
|
|
9
|
-
const placeholderTaskStyles = null;
|
|
10
|
-
const decisionStyles = null;
|
|
11
|
-
const contentStyles = null;
|
|
12
|
-
const taskStyles = null;
|
|
13
|
-
export default class Item extends PureComponent {
|
|
14
|
-
renderPlaceholder() {
|
|
15
|
-
const {
|
|
16
|
-
children,
|
|
17
|
-
placeholder,
|
|
18
|
-
showPlaceholder,
|
|
19
|
-
itemType
|
|
20
|
-
} = this.props;
|
|
21
|
-
if (!showPlaceholder || !placeholder || children) {
|
|
22
|
-
return null;
|
|
23
|
-
}
|
|
24
|
-
return /*#__PURE__*/React.createElement("span", {
|
|
25
|
-
"data-testid": "task-decision-item-placeholder",
|
|
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"])
|
|
29
|
-
}, placeholder);
|
|
30
|
-
}
|
|
31
|
-
renderMessageAppearance() {
|
|
32
|
-
const {
|
|
33
|
-
contentRef,
|
|
34
|
-
children,
|
|
35
|
-
icon,
|
|
36
|
-
itemType,
|
|
37
|
-
checkBoxId,
|
|
38
|
-
dataAttributes
|
|
39
|
-
} = this.props;
|
|
40
|
-
if (itemType === 'TASK') {
|
|
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));
|
|
50
|
-
} else if (itemType === 'DECISION') {
|
|
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({
|
|
56
|
-
"data-component": "content",
|
|
57
|
-
ref: contentRef
|
|
58
|
-
}, dataAttributes, {
|
|
59
|
-
className: ax(["_19pkidpf _2hwxidpf _otyridpf _18u0idpf _16jlkb7n _1o9zkb7n _i0dl1wug _slp31hna _1ul9idpf"])
|
|
60
|
-
}), children));
|
|
61
|
-
}
|
|
62
|
-
return null;
|
|
63
|
-
}
|
|
64
|
-
render() {
|
|
65
|
-
return this.renderMessageAppearance();
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
_defineProperty(Item, "defaultProps", {
|
|
69
|
-
appearance: 'inline'
|
|
70
|
-
});
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
/* TaskItem.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
-
import "./TaskItem.compiled.css";
|
|
4
|
-
import { ax, ix } from "@compiled/react/runtime";
|
|
5
|
-
import React, { useMemo, useRef } from 'react';
|
|
6
|
-
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
7
|
-
import { Icon } from '@atlaskit/icon/base-new';
|
|
8
|
-
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
9
|
-
|
|
10
|
-
import CheckboxCheckedIcon from '@atlaskit/icon/core/checkbox-checked';
|
|
11
|
-
import Item from './Item';
|
|
12
|
-
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
13
|
-
import { createAndFireEventInElementsChannel } from '../../analytics';
|
|
14
|
-
const CheckboxUncheckedIcon = props => /*#__PURE__*/React.createElement(Icon, _extends({
|
|
15
|
-
dangerouslySetGlyph: `<rect width="12.5" height="12.5" x="1.75" y="1.75" stroke="currentcolor" stroke-width="1.5" rx="1.25"/>`,
|
|
16
|
-
type: 'core'
|
|
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;
|
|
25
|
-
let taskCount = 0;
|
|
26
|
-
const getCheckBoxId = localId => `${localId}-${taskCount++}`;
|
|
27
|
-
const TaskItem = props => {
|
|
28
|
-
const {
|
|
29
|
-
appearance,
|
|
30
|
-
isDone,
|
|
31
|
-
isFocused,
|
|
32
|
-
contentRef,
|
|
33
|
-
children,
|
|
34
|
-
placeholder,
|
|
35
|
-
showPlaceholder,
|
|
36
|
-
disabled,
|
|
37
|
-
dataAttributes,
|
|
38
|
-
taskId,
|
|
39
|
-
onChange,
|
|
40
|
-
onClick,
|
|
41
|
-
createAnalyticsEvent,
|
|
42
|
-
inputRef: inputRefFromProps
|
|
43
|
-
} = props;
|
|
44
|
-
const checkBoxId = useMemo(() => getCheckBoxId(taskId), [taskId]);
|
|
45
|
-
const handleOnChange = useMemo(() => {
|
|
46
|
-
return _evt => {
|
|
47
|
-
const newIsDone = !isDone;
|
|
48
|
-
if (onChange) {
|
|
49
|
-
onChange(taskId, newIsDone);
|
|
50
|
-
}
|
|
51
|
-
const action = newIsDone ? 'checked' : 'unchecked';
|
|
52
|
-
if (createAnalyticsEvent) {
|
|
53
|
-
createAndFireEventInElementsChannel({
|
|
54
|
-
action,
|
|
55
|
-
actionSubject: 'action',
|
|
56
|
-
eventType: 'ui',
|
|
57
|
-
attributes: {
|
|
58
|
-
localId: taskId
|
|
59
|
-
}
|
|
60
|
-
})(createAnalyticsEvent);
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
}, [onChange, taskId, isDone, createAnalyticsEvent]);
|
|
64
|
-
const handleOnKeyPress = useMemo(() => event => {
|
|
65
|
-
if (event.key === 'Enter') {
|
|
66
|
-
handleOnChange(event);
|
|
67
|
-
}
|
|
68
|
-
}, [handleOnChange]);
|
|
69
|
-
const defaultInputRef = useRef(null);
|
|
70
|
-
const inputRef = inputRefFromProps !== null && inputRefFromProps !== void 0 ? inputRefFromProps : defaultInputRef;
|
|
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
|
-
id: checkBoxId,
|
|
76
|
-
"aria-labelledby": `${checkBoxId}-wrapper`,
|
|
77
|
-
name: checkBoxId,
|
|
78
|
-
type: "checkbox",
|
|
79
|
-
onChange: handleOnChange,
|
|
80
|
-
onClick: onClick,
|
|
81
|
-
checked: !!isDone,
|
|
82
|
-
disabled: !!disabled,
|
|
83
|
-
suppressHydrationWarning: true,
|
|
84
|
-
onKeyPress: handleOnKeyPress,
|
|
85
|
-
ref: inputRef
|
|
86
|
-
}), isDone ? /*#__PURE__*/React.createElement(CheckboxCheckedIcon, {
|
|
87
|
-
label: ""
|
|
88
|
-
}) : /*#__PURE__*/React.createElement(CheckboxUncheckedIcon, {
|
|
89
|
-
label: ""
|
|
90
|
-
}));
|
|
91
|
-
React.useEffect(() => {
|
|
92
|
-
if (isFocused && inputRef.current) {
|
|
93
|
-
var _inputRef$current, _inputRef$current2;
|
|
94
|
-
(_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 ? void 0 : _inputRef$current.focus();
|
|
95
|
-
(_inputRef$current2 = inputRef.current) === null || _inputRef$current2 === void 0 ? void 0 : _inputRef$current2.blur();
|
|
96
|
-
setTimeout(() => {
|
|
97
|
-
var _inputRef$current3;
|
|
98
|
-
(_inputRef$current3 = inputRef.current) === null || _inputRef$current3 === void 0 ? void 0 : _inputRef$current3.focus();
|
|
99
|
-
}, 100);
|
|
100
|
-
}
|
|
101
|
-
}, [isFocused, inputRef]);
|
|
102
|
-
return /*#__PURE__*/React.createElement(Item, {
|
|
103
|
-
appearance: appearance,
|
|
104
|
-
contentRef: contentRef,
|
|
105
|
-
icon: icon,
|
|
106
|
-
placeholder: placeholder,
|
|
107
|
-
showPlaceholder: showPlaceholder,
|
|
108
|
-
itemType: "TASK",
|
|
109
|
-
dataAttributes: dataAttributes,
|
|
110
|
-
checkBoxId: checkBoxId
|
|
111
|
-
}, children);
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
// This is to ensure that the "type" is exported, as it gets lost and not exported along with TaskItem after
|
|
115
|
-
// going through the high order component.
|
|
116
|
-
|
|
117
|
-
export default withAnalyticsEvents()(TaskItem);
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/* TaskList.tsx generated by @compiled/babel-plugin v0.36.1 */
|
|
2
|
-
import "./TaskList.compiled.css";
|
|
3
|
-
import { ax, ix } from "@compiled/react/runtime";
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { PureComponent } from 'react';
|
|
6
|
-
import { FabricElementsAnalyticsContext } from '@atlaskit/analytics-namespaced-context';
|
|
7
|
-
const listStyles = null;
|
|
8
|
-
const taskListStyles = null;
|
|
9
|
-
export default class TaskList extends PureComponent {
|
|
10
|
-
render() {
|
|
11
|
-
const {
|
|
12
|
-
listId,
|
|
13
|
-
children
|
|
14
|
-
} = this.props;
|
|
15
|
-
const listSize = React.Children.count(children);
|
|
16
|
-
if (!children) {
|
|
17
|
-
return null;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// Data attributes are required for copy and paste from rendered content
|
|
21
|
-
// to the editor to preserve the task.
|
|
22
|
-
// This allows the editor to differentiate between numbered and ordered lists,
|
|
23
|
-
// and action items, which all share the common `<li>` element.
|
|
24
|
-
// The value of `data-task-local-id` should be discarded upon paste, with a
|
|
25
|
-
// a new uuid generated by the editor for the cloned content.
|
|
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
|
-
}));
|
|
45
|
-
}
|
|
46
|
-
}
|
|
@@ -1,221 +0,0 @@
|
|
|
1
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
|
-
import { css } from '@emotion/react';
|
|
3
|
-
import checkboxTheme from './theme';
|
|
4
|
-
|
|
5
|
-
/*
|
|
6
|
-
Increasing specificity with double ampersand to ensure these rules take
|
|
7
|
-
priority over the global styles applied to 'ol' elements.
|
|
8
|
-
*/
|
|
9
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
10
|
-
export const listStyles = css({
|
|
11
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
12
|
-
'&&': {
|
|
13
|
-
listStyleType: 'none',
|
|
14
|
-
paddingLeft: 0
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
19
|
-
export const taskListStyles = css({
|
|
20
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
21
|
-
'div + div': {
|
|
22
|
-
marginTop: "var(--ds-space-050, 4px)"
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
27
|
-
export const contentStyles = css({
|
|
28
|
-
margin: 0,
|
|
29
|
-
wordWrap: 'break-word',
|
|
30
|
-
minWidth: 0,
|
|
31
|
-
flex: '1 1 auto'
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
35
|
-
export const taskStyles = css({
|
|
36
|
-
display: 'flex',
|
|
37
|
-
flexDirection: 'row',
|
|
38
|
-
position: 'relative'
|
|
39
|
-
});
|
|
40
|
-
export const decisionStyles = () => css({
|
|
41
|
-
display: 'flex',
|
|
42
|
-
flexDirection: 'row',
|
|
43
|
-
margin: `${"var(--ds-space-100, 8px)"} 0 0 0`,
|
|
44
|
-
padding: "var(--ds-space-100, 8px)",
|
|
45
|
-
paddingLeft: "var(--ds-space-150, 12px)",
|
|
46
|
-
borderRadius: "var(--ds-border-radius-100, 3px)",
|
|
47
|
-
backgroundColor: "var(--ds-background-neutral, #091E420F)",
|
|
48
|
-
position: 'relative',
|
|
49
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
50
|
-
'.decision-item': {
|
|
51
|
-
cursor: 'initial'
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
export const placeholderStyles = offset => css({
|
|
55
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
56
|
-
margin: `0 0 0 ${offset}px`,
|
|
57
|
-
position: 'absolute',
|
|
58
|
-
color: "var(--ds-text-subtlest, #626F86)",
|
|
59
|
-
pointerEvents: 'none',
|
|
60
|
-
textOverflow: 'ellipsis',
|
|
61
|
-
overflow: 'hidden',
|
|
62
|
-
whiteSpace: 'nowrap',
|
|
63
|
-
maxWidth: 'calc(100% - 50px)'
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* References packages/design-system/checkbox/src/checkbox.tsx
|
|
68
|
-
* To be used until mobile editor does not require legacy themed() API anymore,
|
|
69
|
-
* which will allow migration to use @atlaskit/checkbox instead
|
|
70
|
-
*/
|
|
71
|
-
export const checkboxStyles = isRenderer => css({
|
|
72
|
-
flex: '0 0 24px',
|
|
73
|
-
width: '24px',
|
|
74
|
-
height: '24px',
|
|
75
|
-
position: 'relative',
|
|
76
|
-
alignSelf: 'start',
|
|
77
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
78
|
-
"& > input[type='checkbox']": {
|
|
79
|
-
width: '16px',
|
|
80
|
-
height: '16px',
|
|
81
|
-
zIndex: 1,
|
|
82
|
-
cursor: 'pointer',
|
|
83
|
-
outline: 'none',
|
|
84
|
-
margin: 0,
|
|
85
|
-
opacity: 0,
|
|
86
|
-
position: 'absolute',
|
|
87
|
-
top: '50%',
|
|
88
|
-
left: '50%',
|
|
89
|
-
transform: 'translate(-50%, -50%)',
|
|
90
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
91
|
-
'&[disabled]': {
|
|
92
|
-
cursor: 'default'
|
|
93
|
-
},
|
|
94
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
95
|
-
'+ span': {
|
|
96
|
-
width: '24px',
|
|
97
|
-
height: '24px',
|
|
98
|
-
position: 'absolute',
|
|
99
|
-
top: '50%',
|
|
100
|
-
left: '50%',
|
|
101
|
-
transform: 'translate(-50%, -50%)'
|
|
102
|
-
},
|
|
103
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
104
|
-
'+ span > svg': {
|
|
105
|
-
boxSizing: 'border-box',
|
|
106
|
-
display: 'inline',
|
|
107
|
-
top: '50%',
|
|
108
|
-
left: '50%',
|
|
109
|
-
transform: 'translate(-50%, -50%)',
|
|
110
|
-
maxWidth: 'unset',
|
|
111
|
-
maxHeight: 'unset',
|
|
112
|
-
position: 'absolute',
|
|
113
|
-
overflow: 'hidden',
|
|
114
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
115
|
-
color: checkboxTheme.light.boxColor.rest,
|
|
116
|
-
transition: 'color 0.2s ease-in-out, fill 0.2s ease-in-out',
|
|
117
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
118
|
-
'path:first-of-type': {
|
|
119
|
-
visibility: 'hidden'
|
|
120
|
-
},
|
|
121
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
122
|
-
'rect:first-of-type': {
|
|
123
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
124
|
-
stroke: checkboxTheme.light.borderColor.rest,
|
|
125
|
-
strokeWidth: 1,
|
|
126
|
-
transition: 'stroke 0.2s ease-in-out'
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
130
|
-
'&:hover + span > svg': {
|
|
131
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
132
|
-
color: checkboxTheme.light.boxColor.hovered,
|
|
133
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
134
|
-
'rect:first-of-type': {
|
|
135
|
-
// 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
|
-
stroke: checkboxTheme.light.borderColor.hovered
|
|
137
|
-
}
|
|
138
|
-
},
|
|
139
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
|
|
140
|
-
'&:checked:hover + span > svg': {
|
|
141
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values
|
|
142
|
-
color: checkboxTheme.light.boxColor.hoveredAndChecked,
|
|
143
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
144
|
-
fill: checkboxTheme.light.tickColor.checked,
|
|
145
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
146
|
-
'rect:first-of-type': {
|
|
147
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
148
|
-
stroke: checkboxTheme.light.borderColor.hoveredAndChecked
|
|
149
|
-
}
|
|
150
|
-
},
|
|
151
|
-
'&:checked': {
|
|
152
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
153
|
-
'+ span > svg': {
|
|
154
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
155
|
-
'path:first-of-type': {
|
|
156
|
-
visibility: 'visible'
|
|
157
|
-
},
|
|
158
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
159
|
-
color: checkboxTheme.light.boxColor.checked,
|
|
160
|
-
// 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
|
-
fill: checkboxTheme.light.tickColor.checked,
|
|
162
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
163
|
-
'rect:first-of-type': {
|
|
164
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
165
|
-
stroke: checkboxTheme.light.borderColor.checked
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
},
|
|
169
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
170
|
-
'&:active + span > svg': {
|
|
171
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
172
|
-
color: checkboxTheme.light.boxColor.active,
|
|
173
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
174
|
-
'rect:first-of-type': {
|
|
175
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
176
|
-
stroke: checkboxTheme.light.borderColor.active
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
180
|
-
'&:checked:active + span > svg': {
|
|
181
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
182
|
-
color: checkboxTheme.light.boxColor.active,
|
|
183
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
184
|
-
fill: checkboxTheme.light.tickColor.activeAndChecked,
|
|
185
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
186
|
-
'rect:first-of-type': {
|
|
187
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
188
|
-
stroke: checkboxTheme.light.borderColor.active
|
|
189
|
-
}
|
|
190
|
-
},
|
|
191
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
192
|
-
'&:disabled + span > svg, &:disabled:hover + span > svg, &:disabled:focus + span > svg, &:disabled:active + span > svg': {
|
|
193
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
194
|
-
color: checkboxTheme.light.boxColor.disabled,
|
|
195
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
196
|
-
'rect:first-of-type': {
|
|
197
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
198
|
-
stroke: checkboxTheme.light.borderColor.disabled
|
|
199
|
-
}
|
|
200
|
-
},
|
|
201
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
202
|
-
'&:disabled:checked + span > svg': {
|
|
203
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
204
|
-
fill: checkboxTheme.light.tickColor.disabledAndChecked
|
|
205
|
-
},
|
|
206
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
207
|
-
'&:focus + span::after': {
|
|
208
|
-
position: 'absolute',
|
|
209
|
-
width: "var(--ds-space-200, 16px)",
|
|
210
|
-
height: "var(--ds-space-200, 16px)",
|
|
211
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
212
|
-
border: `2px solid ${checkboxTheme.light.borderColor.focused}`,
|
|
213
|
-
borderRadius: "var(--ds-space-050, 4px)",
|
|
214
|
-
content: "''",
|
|
215
|
-
display: 'block',
|
|
216
|
-
top: '50%',
|
|
217
|
-
left: '50%',
|
|
218
|
-
transform: 'translate(-50%, -50%)'
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
});
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Styles taken from packages/design-system/checkbox/src/internal/theme.tsx
|
|
3
|
-
* To be used until mobile editor does not require legacy themed() API anymore
|
|
4
|
-
*/
|
|
5
|
-
const checkboxTheme = {
|
|
6
|
-
light: {
|
|
7
|
-
borderColor: {
|
|
8
|
-
rest: "var(--ds-border-input, #8590A2)",
|
|
9
|
-
hovered: "var(--ds-border-input, #8590A2)",
|
|
10
|
-
disabled: "var(--ds-background-disabled, #091E4208)",
|
|
11
|
-
checked: "var(--ds-background-selected-bold, #0C66E4)",
|
|
12
|
-
active: "var(--ds-border, #091E4224)",
|
|
13
|
-
focused: "var(--ds-border-focused, #388BFF)",
|
|
14
|
-
hoveredAndChecked: "var(--ds-background-selected-bold-hovered, #0055CC)"
|
|
15
|
-
},
|
|
16
|
-
boxColor: {
|
|
17
|
-
rest: "var(--ds-background-input, #FFFFFF)",
|
|
18
|
-
hovered: "var(--ds-background-input-hovered, #F7F8F9)",
|
|
19
|
-
disabled: "var(--ds-background-disabled, #091E4208)",
|
|
20
|
-
active: "var(--ds-background-input-pressed, #FFFFFF)",
|
|
21
|
-
hoveredAndChecked: "var(--ds-background-selected-bold-hovered, #0055CC)",
|
|
22
|
-
checked: "var(--ds-background-selected-bold, #0C66E4)"
|
|
23
|
-
},
|
|
24
|
-
tickColor: {
|
|
25
|
-
disabledAndChecked: "var(--ds-icon-disabled, #091E424F)",
|
|
26
|
-
activeAndChecked: "var(--ds-icon-inverse, #FFFFFF)",
|
|
27
|
-
checked: "var(--ds-icon-inverse, #FFFFFF)"
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
/**
|
|
31
|
-
* Fallback colours for dark mode taken from
|
|
32
|
-
* packages/design-system/tokens/src/artifacts/themes/atlassian-dark.tsx
|
|
33
|
-
* To be used to keep mobile / web checkbox dark mode consistent
|
|
34
|
-
* until mobile editor does not require legacy themed() API anymore
|
|
35
|
-
*/
|
|
36
|
-
dark: {
|
|
37
|
-
borderColor: {
|
|
38
|
-
rest: "var(--ds-border-input, #8590A2)",
|
|
39
|
-
hovered: "var(--ds-border-input, #8590A2)",
|
|
40
|
-
disabled: "var(--ds-background-disabled, #BCD6F00A)",
|
|
41
|
-
checked: "var(--ds-background-selected-bold, #579DFF)",
|
|
42
|
-
active: "var(--ds-border, #A6C5E229)",
|
|
43
|
-
focused: "var(--ds-border-focused, #85B8FF)",
|
|
44
|
-
hoveredAndChecked: "var(--ds-background-selected-bold-hovered, #85B8FF)"
|
|
45
|
-
},
|
|
46
|
-
boxColor: {
|
|
47
|
-
rest: "var(--ds-background-input, #22272B)",
|
|
48
|
-
hovered: "var(--ds-background-input-hovered, #282E33)",
|
|
49
|
-
disabled: "var(--ds-background-disabled, #BCD6F00A)",
|
|
50
|
-
active: "var(--ds-background-input-pressed, #22272B)",
|
|
51
|
-
hoveredAndChecked: "var(--ds-background-selected-bold-hovered, #85B8FF)",
|
|
52
|
-
checked: "var(--ds-background-selected-bold, #579DFF)"
|
|
53
|
-
},
|
|
54
|
-
tickColor: {
|
|
55
|
-
disabledAndChecked: "var(--ds-icon-disabled, #BFDBF847)",
|
|
56
|
-
activeAndChecked: "var(--ds-icon-inverse, #1D2125)",
|
|
57
|
-
checked: "var(--ds-icon-inverse, #1D2125)"
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
export default checkboxTheme;
|