@atlaskit/editor-common 92.1.1 → 93.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/afm-cc/tsconfig.json +0 -3
- package/afm-jira/tsconfig.json +0 -3
- package/afm-post-office/tsconfig.json +0 -3
- package/dist/cjs/element-browser/components/CategoryList.js +2 -3
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +11 -13
- package/dist/cjs/element-browser/components/ElementSearch.js +1 -2
- package/dist/cjs/element-browser/constants.js +1 -6
- package/dist/cjs/extensibility/Extension/Extension/styles.js +3 -4
- package/dist/cjs/extensibility/Extension/InlineExtension/styles.js +1 -2
- package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +6 -7
- package/dist/cjs/extensibility/Extension/styles.js +3 -4
- package/dist/cjs/extensibility/MultiBodiedExtension/styles.js +2 -3
- package/dist/cjs/icons/shared/SteppedRainbowIconDecoration.js +2 -3
- package/dist/cjs/keymaps/index.js +1 -2
- package/dist/cjs/link/ConfigureLinkOverlay/StyledButton.js +4 -5
- package/dist/cjs/link/ConfigureLinkOverlay/index.js +2 -4
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -2
- package/dist/cjs/link/LinkSearch/LinkSearchList.js +1 -2
- package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +4 -6
- package/dist/cjs/media-inline/constants.js +10 -8
- package/dist/cjs/media-inline/styles.js +1 -2
- package/dist/cjs/media-inline/views/error-view.js +1 -2
- package/dist/cjs/media-inline/views/wrapper.js +3 -4
- package/dist/cjs/media-single/CommentBadge.js +1 -2
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/node-width/index.js +5 -10
- package/dist/cjs/panel.js +0 -12
- package/dist/cjs/react-node-view/index.js +32 -37
- package/dist/cjs/styles/shared/annotation.js +11 -14
- package/dist/cjs/styles/shared/code-block.js +2 -4
- package/dist/cjs/styles/shared/code-mark.js +1 -2
- package/dist/cjs/styles/shared/grid.js +2 -3
- package/dist/cjs/styles/shared/headings.js +56 -17
- package/dist/cjs/styles/shared/panel.js +13 -34
- package/dist/cjs/styles/shared/plugins.js +1 -2
- package/dist/cjs/styles/shared/resizer.js +1 -2
- package/dist/cjs/styles/shared/rule.js +1 -2
- package/dist/cjs/styles/shared/shadow.js +2 -3
- package/dist/cjs/styles/shared/smartCard.js +2 -3
- package/dist/cjs/table/SortingIcon.js +1 -2
- package/dist/cjs/ui/BaseTheme/index.js +1 -2
- package/dist/cjs/ui/Caption/index.js +2 -3
- package/dist/cjs/ui/DropList/index.js +4 -5
- package/dist/cjs/ui/Expand/index.js +2 -3
- package/dist/cjs/ui/Expand/sharedStyles.js +7 -17
- package/dist/cjs/ui/FloatingToolbar/Separator.js +1 -2
- package/dist/cjs/ui/FloatingToolbar/styles.js +10 -12
- package/dist/cjs/ui/Messages/index.js +8 -6
- package/dist/cjs/ui/PanelTextInput/styles.js +4 -5
- package/dist/cjs/ui/UnsupportedBlock/index.js +4 -6
- package/dist/cjs/ui/UnsupportedInline/index.js +4 -6
- package/dist/cjs/ui/WidthProvider/index.js +5 -39
- package/dist/cjs/ui-color/ColorPalette/Color/index.js +1 -2
- package/dist/cjs/ui-color/ColorPalette/Color/styles.js +3 -4
- package/dist/cjs/ui-color/ColorPalette/Palettes/common.js +1 -2
- package/dist/cjs/ui-color/ColorPalette/Palettes/panelBackgroundPalette.js +22 -24
- package/dist/cjs/ui-color/ColorPalette/index.js +2 -3
- package/dist/cjs/ui-color/index.js +0 -13
- package/dist/cjs/ui-menu/ColorPickerButton/index.js +3 -4
- package/dist/cjs/ui-menu/DropdownMenu/index.js +2 -3
- package/dist/es2019/element-browser/components/CategoryList.js +2 -3
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +3 -5
- package/dist/es2019/element-browser/components/ElementSearch.js +1 -2
- package/dist/es2019/element-browser/constants.js +1 -5
- package/dist/es2019/extensibility/Extension/Extension/styles.js +3 -4
- package/dist/es2019/extensibility/Extension/InlineExtension/styles.js +1 -2
- package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +6 -7
- package/dist/es2019/extensibility/Extension/styles.js +3 -4
- package/dist/es2019/extensibility/MultiBodiedExtension/styles.js +2 -3
- package/dist/es2019/icons/shared/SteppedRainbowIconDecoration.js +2 -3
- package/dist/es2019/keymaps/index.js +1 -2
- package/dist/es2019/link/ConfigureLinkOverlay/StyledButton.js +4 -5
- package/dist/es2019/link/ConfigureLinkOverlay/index.js +2 -4
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -2
- package/dist/es2019/link/LinkSearch/LinkSearchList.js +1 -2
- package/dist/es2019/link/LinkSearch/LinkSearchListItem.js +4 -6
- package/dist/es2019/media-inline/constants.js +10 -8
- package/dist/es2019/media-inline/styles.js +1 -2
- package/dist/es2019/media-inline/views/error-view.js +1 -2
- package/dist/es2019/media-inline/views/wrapper.js +3 -4
- package/dist/es2019/media-single/CommentBadge.js +1 -2
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/node-width/index.js +5 -9
- package/dist/es2019/panel.js +1 -1
- package/dist/es2019/react-node-view/index.js +32 -37
- package/dist/es2019/styles/shared/annotation.js +11 -14
- package/dist/es2019/styles/shared/code-block.js +12 -14
- package/dist/es2019/styles/shared/code-mark.js +1 -2
- package/dist/es2019/styles/shared/grid.js +2 -3
- package/dist/es2019/styles/shared/headings.js +35 -8
- package/dist/es2019/styles/shared/panel.js +12 -25
- package/dist/es2019/styles/shared/plugins.js +1 -2
- package/dist/es2019/styles/shared/resizer.js +6 -7
- package/dist/es2019/styles/shared/rule.js +1 -2
- package/dist/es2019/styles/shared/shadow.js +2 -3
- package/dist/es2019/styles/shared/smartCard.js +5 -7
- package/dist/es2019/table/SortingIcon.js +2 -3
- package/dist/es2019/ui/BaseTheme/index.js +1 -2
- package/dist/es2019/ui/Caption/index.js +2 -3
- package/dist/es2019/ui/DropList/index.js +4 -5
- package/dist/es2019/ui/Expand/index.js +2 -3
- package/dist/es2019/ui/Expand/sharedStyles.js +7 -17
- package/dist/es2019/ui/FloatingToolbar/Separator.js +1 -2
- package/dist/es2019/ui/FloatingToolbar/styles.js +10 -12
- package/dist/es2019/ui/Messages/index.js +8 -6
- package/dist/es2019/ui/PanelTextInput/styles.js +4 -5
- package/dist/es2019/ui/UnsupportedBlock/index.js +4 -6
- package/dist/es2019/ui/UnsupportedInline/index.js +4 -6
- package/dist/es2019/ui/WidthProvider/index.js +2 -33
- package/dist/es2019/ui-color/ColorPalette/Color/index.js +1 -4
- package/dist/es2019/ui-color/ColorPalette/Color/styles.js +3 -4
- package/dist/es2019/ui-color/ColorPalette/Palettes/common.js +1 -2
- package/dist/es2019/ui-color/ColorPalette/Palettes/panelBackgroundPalette.js +21 -24
- package/dist/es2019/ui-color/ColorPalette/index.js +2 -3
- package/dist/es2019/ui-color/index.js +0 -1
- package/dist/es2019/ui-menu/ColorPickerButton/index.js +3 -4
- package/dist/es2019/ui-menu/DropdownMenu/index.js +3 -4
- package/dist/esm/element-browser/components/CategoryList.js +2 -3
- package/dist/esm/element-browser/components/ElementList/ElementList.js +3 -5
- package/dist/esm/element-browser/components/ElementSearch.js +1 -2
- package/dist/esm/element-browser/constants.js +1 -5
- package/dist/esm/extensibility/Extension/Extension/styles.js +3 -4
- package/dist/esm/extensibility/Extension/InlineExtension/styles.js +1 -2
- package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +6 -7
- package/dist/esm/extensibility/Extension/styles.js +3 -4
- package/dist/esm/extensibility/MultiBodiedExtension/styles.js +2 -3
- package/dist/esm/icons/shared/SteppedRainbowIconDecoration.js +2 -3
- package/dist/esm/keymaps/index.js +1 -2
- package/dist/esm/link/ConfigureLinkOverlay/StyledButton.js +4 -5
- package/dist/esm/link/ConfigureLinkOverlay/index.js +2 -4
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -2
- package/dist/esm/link/LinkSearch/LinkSearchList.js +1 -2
- package/dist/esm/link/LinkSearch/LinkSearchListItem.js +4 -6
- package/dist/esm/media-inline/constants.js +10 -8
- package/dist/esm/media-inline/styles.js +1 -2
- package/dist/esm/media-inline/views/error-view.js +1 -2
- package/dist/esm/media-inline/views/wrapper.js +3 -4
- package/dist/esm/media-single/CommentBadge.js +1 -2
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/node-width/index.js +5 -9
- package/dist/esm/panel.js +1 -1
- package/dist/esm/react-node-view/index.js +32 -37
- package/dist/esm/styles/shared/annotation.js +11 -14
- package/dist/esm/styles/shared/code-block.js +2 -4
- package/dist/esm/styles/shared/code-mark.js +1 -2
- package/dist/esm/styles/shared/grid.js +2 -3
- package/dist/esm/styles/shared/headings.js +53 -17
- package/dist/esm/styles/shared/panel.js +12 -33
- package/dist/esm/styles/shared/plugins.js +1 -2
- package/dist/esm/styles/shared/resizer.js +1 -2
- package/dist/esm/styles/shared/rule.js +1 -2
- package/dist/esm/styles/shared/shadow.js +2 -3
- package/dist/esm/styles/shared/smartCard.js +2 -4
- package/dist/esm/table/SortingIcon.js +1 -2
- package/dist/esm/ui/BaseTheme/index.js +1 -2
- package/dist/esm/ui/Caption/index.js +2 -3
- package/dist/esm/ui/DropList/index.js +4 -5
- package/dist/esm/ui/Expand/index.js +2 -3
- package/dist/esm/ui/Expand/sharedStyles.js +7 -17
- package/dist/esm/ui/FloatingToolbar/Separator.js +1 -2
- package/dist/esm/ui/FloatingToolbar/styles.js +10 -12
- package/dist/esm/ui/Messages/index.js +8 -6
- package/dist/esm/ui/PanelTextInput/styles.js +4 -5
- package/dist/esm/ui/UnsupportedBlock/index.js +4 -6
- package/dist/esm/ui/UnsupportedInline/index.js +4 -6
- package/dist/esm/ui/WidthProvider/index.js +5 -39
- package/dist/esm/ui-color/ColorPalette/Color/index.js +1 -2
- package/dist/esm/ui-color/ColorPalette/Color/styles.js +3 -4
- package/dist/esm/ui-color/ColorPalette/Palettes/common.js +1 -2
- package/dist/esm/ui-color/ColorPalette/Palettes/panelBackgroundPalette.js +21 -24
- package/dist/esm/ui-color/ColorPalette/index.js +2 -3
- package/dist/esm/ui-color/index.js +0 -1
- package/dist/esm/ui-menu/ColorPickerButton/index.js +3 -4
- package/dist/esm/ui-menu/DropdownMenu/index.js +2 -3
- package/dist/types/element-browser/constants.d.ts +3 -3
- package/dist/types/media-inline/constants.d.ts +3 -0
- package/dist/types/panel.d.ts +1 -1
- package/dist/types/styles/shared/panel.d.ts +0 -2
- package/dist/types/ui/WidthProvider/index.d.ts +0 -5
- package/dist/types/ui-color/index.d.ts +0 -1
- package/dist/types-ts4.5/element-browser/constants.d.ts +3 -3
- package/dist/types-ts4.5/media-inline/constants.d.ts +3 -0
- package/dist/types-ts4.5/panel.d.ts +1 -1
- package/dist/types-ts4.5/styles/shared/panel.d.ts +0 -2
- package/dist/types-ts4.5/ui/WidthProvider/index.d.ts +0 -5
- package/dist/types-ts4.5/ui-color/index.d.ts +0 -1
- package/package.json +4 -11
- package/dist/cjs/ui/WidthProvider/isSsrButNoBreakoutScriptObserved.js +0 -11
- package/dist/cjs/ui-color/ColorPalette/Palettes/statusColorPalette.js +0 -60
- package/dist/es2019/ui/WidthProvider/isSsrButNoBreakoutScriptObserved.js +0 -6
- package/dist/es2019/ui-color/ColorPalette/Palettes/statusColorPalette.js +0 -54
- package/dist/esm/ui/WidthProvider/isSsrButNoBreakoutScriptObserved.js +0 -6
- package/dist/esm/ui-color/ColorPalette/Palettes/statusColorPalette.js +0 -54
- package/dist/types/ui/WidthProvider/isSsrButNoBreakoutScriptObserved.d.ts +0 -1
- package/dist/types/ui-color/ColorPalette/Palettes/statusColorPalette.d.ts +0 -4
- package/dist/types-ts4.5/ui/WidthProvider/isSsrButNoBreakoutScriptObserved.d.ts +0 -1
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/statusColorPalette.d.ts +0 -4
|
@@ -6,77 +6,75 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.panelDarkModeBackgroundPalette = exports.panelBackgroundPalette = void 0;
|
|
8
8
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
-
var _theme = require("@atlaskit/theme");
|
|
10
9
|
var _panel = require("../../../panel");
|
|
11
10
|
var _common = require("./common");
|
|
12
11
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
13
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
14
|
-
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
12
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
15
13
|
/** this is not new usage - old code extracted from editor-core */
|
|
16
14
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
17
15
|
var panelBackgroundPalette = exports.panelBackgroundPalette = [{
|
|
18
16
|
label: 'White',
|
|
19
|
-
value:
|
|
17
|
+
value: '#FFFFFF'
|
|
20
18
|
}, {
|
|
21
19
|
label: 'Light blue',
|
|
22
|
-
value:
|
|
20
|
+
value: '#DEEBFF'
|
|
23
21
|
}, {
|
|
24
22
|
label: 'Light teal',
|
|
25
|
-
value:
|
|
23
|
+
value: '#E6FCFF'
|
|
26
24
|
}, {
|
|
27
25
|
label: 'Light green',
|
|
28
|
-
value:
|
|
26
|
+
value: '#E3FCEF'
|
|
29
27
|
}, {
|
|
30
28
|
label: 'Light yellow',
|
|
31
|
-
value:
|
|
29
|
+
value: '#FFFAE6'
|
|
32
30
|
}, {
|
|
33
31
|
label: 'Light red',
|
|
34
|
-
value:
|
|
32
|
+
value: '#FFEBE6'
|
|
35
33
|
}, {
|
|
36
34
|
label: 'Light purple',
|
|
37
|
-
value:
|
|
35
|
+
value: '#EAE6FF'
|
|
38
36
|
}, {
|
|
39
37
|
label: 'Light gray',
|
|
40
|
-
value:
|
|
38
|
+
value: '#F4F5F7'
|
|
41
39
|
}, {
|
|
42
40
|
label: 'Blue',
|
|
43
|
-
value:
|
|
41
|
+
value: '#B3D4FF'
|
|
44
42
|
}, {
|
|
45
43
|
label: 'Teal',
|
|
46
|
-
value:
|
|
44
|
+
value: '#B3F5FF'
|
|
47
45
|
}, {
|
|
48
46
|
label: 'Green',
|
|
49
|
-
value:
|
|
47
|
+
value: '#ABF5D1'
|
|
50
48
|
}, {
|
|
51
49
|
label: 'Yellow',
|
|
52
|
-
value:
|
|
50
|
+
value: '#FFF0B3'
|
|
53
51
|
}, {
|
|
54
52
|
label: 'Red',
|
|
55
|
-
value:
|
|
53
|
+
value: '#FFBDAD'
|
|
56
54
|
}, {
|
|
57
55
|
label: 'Purple',
|
|
58
|
-
value:
|
|
56
|
+
value: '#C0B6F2'
|
|
59
57
|
}, {
|
|
60
58
|
label: 'Gray',
|
|
61
|
-
value:
|
|
59
|
+
value: '#B3BAC5'
|
|
62
60
|
}, {
|
|
63
61
|
label: 'Dark blue',
|
|
64
|
-
value:
|
|
62
|
+
value: '#4C9AFF'
|
|
65
63
|
}, {
|
|
66
64
|
label: 'Dark teal',
|
|
67
|
-
value:
|
|
65
|
+
value: '#79E2F2'
|
|
68
66
|
}, {
|
|
69
67
|
label: 'Dark green',
|
|
70
|
-
value:
|
|
68
|
+
value: '#57D9A3'
|
|
71
69
|
}, {
|
|
72
70
|
label: 'Dark yellow',
|
|
73
|
-
value:
|
|
71
|
+
value: '#FFC400'
|
|
74
72
|
}, {
|
|
75
73
|
label: 'Dark red',
|
|
76
|
-
value:
|
|
74
|
+
value: '#FF8F73'
|
|
77
75
|
}, {
|
|
78
76
|
label: 'Dark purple',
|
|
79
|
-
value:
|
|
77
|
+
value: '#998DD9'
|
|
80
78
|
}].map(function (color) {
|
|
81
79
|
return _objectSpread(_objectSpread({}, color), {}, {
|
|
82
80
|
border: "var(--ds-border, ".concat(_common.DEFAULT_BORDER_COLOR, ")")
|
|
@@ -9,7 +9,6 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _react2 = require("@emotion/react");
|
|
10
10
|
var _chromatism = _interopRequireDefault(require("chromatism"));
|
|
11
11
|
var _reactIntlNext = require("react-intl-next");
|
|
12
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
13
12
|
var _tokens = require("@atlaskit/tokens");
|
|
14
13
|
var _Color = _interopRequireDefault(require("./Color"));
|
|
15
14
|
var _getColorMessage = _interopRequireDefault(require("./Palettes/getColorMessage"));
|
|
@@ -35,7 +34,7 @@ function getCheckMarkColor(color, useIconToken) {
|
|
|
35
34
|
var colorValue = !!tokenVal ? tokenVal : color;
|
|
36
35
|
|
|
37
36
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
38
|
-
var contrastColor = [
|
|
37
|
+
var contrastColor = ['#FFFFFF', '#42526E'].sort(function (a, b) {
|
|
39
38
|
return _chromatism.default.difference(b, colorValue) - _chromatism.default.difference(a, colorValue);
|
|
40
39
|
})[0];
|
|
41
40
|
if (!useIconToken) {
|
|
@@ -46,7 +45,7 @@ function getCheckMarkColor(color, useIconToken) {
|
|
|
46
45
|
// they are only intended for use with text colors (and there are different tokens
|
|
47
46
|
// planned to be used when this extended to be used with other palettes).
|
|
48
47
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
49
|
-
return contrastColor ===
|
|
48
|
+
return contrastColor === '#FFFFFF' ? "var(--ds-icon-inverse, #FFFFFF)" : "var(--ds-icon, #44546F)";
|
|
50
49
|
}
|
|
51
50
|
var ColorPalette = function ColorPalette(props) {
|
|
52
51
|
var _props$cols = props.cols,
|
|
@@ -70,12 +70,6 @@ Object.defineProperty(exports, "colorPaletteMessages", {
|
|
|
70
70
|
return _paletteMessages.default;
|
|
71
71
|
}
|
|
72
72
|
});
|
|
73
|
-
Object.defineProperty(exports, "darkModeStatusColorPalette", {
|
|
74
|
-
enumerable: true,
|
|
75
|
-
get: function get() {
|
|
76
|
-
return _statusColorPalette.darkModeStatusColorPalette;
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
73
|
Object.defineProperty(exports, "getColorsPerRowFromPalette", {
|
|
80
74
|
enumerable: true,
|
|
81
75
|
get: function get() {
|
|
@@ -100,12 +94,6 @@ Object.defineProperty(exports, "highlightColorPalette", {
|
|
|
100
94
|
return _highlightColorPalette.highlightColorPalette;
|
|
101
95
|
}
|
|
102
96
|
});
|
|
103
|
-
Object.defineProperty(exports, "lightModeStatusColorPalette", {
|
|
104
|
-
enumerable: true,
|
|
105
|
-
get: function get() {
|
|
106
|
-
return _statusColorPalette.lightModeStatusColorPalette;
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
97
|
Object.defineProperty(exports, "panelBackgroundPalette", {
|
|
110
98
|
enumerable: true,
|
|
111
99
|
get: function get() {
|
|
@@ -136,7 +124,6 @@ var _utils = require("./ColorPalette/utils");
|
|
|
136
124
|
var _cellBackgroundColorPalette = _interopRequireDefault(require("./ColorPalette/Palettes/cellBackgroundColorPalette"));
|
|
137
125
|
var _paletteMessages = _interopRequireDefault(require("./ColorPalette/Palettes/paletteMessages"));
|
|
138
126
|
var _panelBackgroundPalette = require("./ColorPalette/Palettes/panelBackgroundPalette");
|
|
139
|
-
var _statusColorPalette = require("./ColorPalette/Palettes/statusColorPalette");
|
|
140
127
|
var _textColorPalette = require("./ColorPalette/Palettes/textColorPalette");
|
|
141
128
|
var _highlightColorPalette = require("./ColorPalette/Palettes/highlightColorPalette");
|
|
142
129
|
var _Palettes = require("./ColorPalette/Palettes");
|
|
@@ -12,7 +12,6 @@ var _withAnalyticsContext = _interopRequireDefault(require("@atlaskit/analytics-
|
|
|
12
12
|
var _withAnalyticsEvents = _interopRequireDefault(require("@atlaskit/analytics-next/withAnalyticsEvents"));
|
|
13
13
|
var _standardButton = _interopRequireDefault(require("@atlaskit/button/standard-button"));
|
|
14
14
|
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-down"));
|
|
15
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
16
15
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
17
16
|
var _analytics = require("../../analytics");
|
|
18
17
|
var _uiColor = require("../../ui-color");
|
|
@@ -42,8 +41,8 @@ var colorPickerExpandContainer = (0, _react2.css)({
|
|
|
42
41
|
var colorPickerWrapper = function colorPickerWrapper() {
|
|
43
42
|
return (0, _react2.css)({
|
|
44
43
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
45
|
-
backgroundColor: "var(--ds-surface-overlay,
|
|
46
|
-
boxShadow: "var(--ds-shadow-overlay,
|
|
44
|
+
backgroundColor: "var(--ds-surface-overlay, #FFFFFF)",
|
|
45
|
+
boxShadow: "var(--ds-shadow-overlay, 0px 8px 12px #091E4226, 0px 0px 1px #091E424f)",
|
|
47
46
|
padding: "var(--ds-space-100, 8px)".concat(" 0px")
|
|
48
47
|
});
|
|
49
48
|
};
|
|
@@ -204,7 +203,7 @@ var ColorPickerButton = function ColorPickerButton(props) {
|
|
|
204
203
|
margin: "0px ".concat("var(--ds-space-025, 2px)")
|
|
205
204
|
},
|
|
206
205
|
'&:hover': {
|
|
207
|
-
background: "var(--ds-background-neutral-subtle-hovered,
|
|
206
|
+
background: "var(--ds-background-neutral-subtle-hovered, #091E420F)"
|
|
208
207
|
}
|
|
209
208
|
});
|
|
210
209
|
};
|
|
@@ -24,7 +24,6 @@ var _react2 = require("@emotion/react");
|
|
|
24
24
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
25
25
|
var _menu = require("@atlaskit/menu");
|
|
26
26
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
27
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
28
27
|
var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
|
|
29
28
|
var _styles = require("../../styles");
|
|
30
29
|
var _ToolbarArrowKeyNavigationProvider = require("../../ui-menu/ToolbarArrowKeyNavigationProvider");
|
|
@@ -54,7 +53,7 @@ var wrapper = (0, _react2.css)({
|
|
|
54
53
|
}
|
|
55
54
|
});
|
|
56
55
|
var focusedMenuItemStyle = (0, _react2.css)({
|
|
57
|
-
boxShadow: "inset 0px 0px 0px 2px ".concat("var(--ds-border-focused,
|
|
56
|
+
boxShadow: "inset 0px 0px 0px 2px ".concat("var(--ds-border-focused, #388BFF)"),
|
|
58
57
|
outline: 'none'
|
|
59
58
|
});
|
|
60
59
|
var buttonStyles = function buttonStyles(isActive, submenuActive) {
|
|
@@ -66,7 +65,7 @@ var buttonStyles = function buttonStyles(isActive, submenuActive) {
|
|
|
66
65
|
return (0, _react2.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t> span,\n\t\t\t> span:hover,\n\t\t\t> span:active {\n\t\t\t\tbackground: ", ";\n\t\t\t\tcolor: ", ";\n\t\t\t}\n\t\t\t:focus > span[aria-disabled='false'] {\n\t\t\t\t", ";\n\t\t\t}\n\t\t\t:focus-visible,\n\t\t\t:focus-visible > span[aria-disabled='false'] {\n\t\t\t\toutline: none;\n\t\t\t}\n\t\t"])), "var(--ds-background-selected, #6c798f)", "var(--ds-text, #fff)", focusedMenuItemStyle);
|
|
67
66
|
} else {
|
|
68
67
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
69
|
-
return (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t> span:hover[aria-disabled='false'] {\n\t\t\t\tcolor: ", ";\n\t\t\t\tbackground-color: ", ";\n\t\t\t}\n\t\t\t", "\n\t\t\t> span[aria-disabled='true'] {\n\t\t\t\tcolor: ", ";\n\t\t\t}\n\t\t\t:focus > span[aria-disabled='false'] {\n\t\t\t\t", ";\n\t\t\t}\n\t\t\t:focus-visible,\n\t\t\t:focus-visible > span[aria-disabled='false'] {\n\t\t\t\toutline: none;\n\t\t\t}\n\t\t"])), "var(--ds-text,
|
|
68
|
+
return (0, _react2.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n\t\t\t> span:hover[aria-disabled='false'] {\n\t\t\t\tcolor: ", ";\n\t\t\t\tbackground-color: ", ";\n\t\t\t}\n\t\t\t", "\n\t\t\t> span[aria-disabled='true'] {\n\t\t\t\tcolor: ", ";\n\t\t\t}\n\t\t\t:focus > span[aria-disabled='false'] {\n\t\t\t\t", ";\n\t\t\t}\n\t\t\t:focus-visible,\n\t\t\t:focus-visible > span[aria-disabled='false'] {\n\t\t\t\toutline: none;\n\t\t\t}\n\t\t"])), "var(--ds-text, #172B4D)", "var(--ds-background-neutral-subtle-hovered, rgb(244, 245, 247))", !submenuActive && "\n\t\t\t\t\t> span:active[aria-disabled='false'] {\n\t\t\t\t\t\tbackground-color: ".concat("var(--ds-background-neutral-subtle-pressed, rgb(179, 212, 255))", ";\n\t\t\t\t\t}"), "var(--ds-text-disabled, #091E424F)", focusedMenuItemStyle); // The default focus-visible style is removed to ensure consistency across browsers
|
|
70
69
|
}
|
|
71
70
|
};
|
|
72
71
|
var DropListWithOutsideListeners = (0, _uiReact.withReactEditorViewOuterListeners)(_DropList.default);
|
|
@@ -9,7 +9,6 @@ import React, { Fragment, memo, useCallback } from 'react';
|
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
10
|
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
11
11
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
12
|
-
import { B400, B50, N800 } from '@atlaskit/theme/colors';
|
|
13
12
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, fireAnalyticsEvent } from '../../analytics';
|
|
14
13
|
import { DEVICE_BREAKPOINT_NUMBERS, GRID_SIZE } from '../constants';
|
|
15
14
|
import useFocus from '../hooks/use-focus';
|
|
@@ -111,9 +110,9 @@ function CategoryListItem({
|
|
|
111
110
|
marginLeft: "var(--ds-space-025, 2px)",
|
|
112
111
|
height: '100%',
|
|
113
112
|
width: '100%',
|
|
114
|
-
color: category.name !== selectedCategory ?
|
|
113
|
+
color: category.name !== selectedCategory ? "var(--ds-text, #172B4D)" : "var(--ds-text-selected, #0C66E4)",
|
|
115
114
|
...(category.name === selectedCategory && {
|
|
116
|
-
background:
|
|
115
|
+
background: "var(--ds-background-selected, #E9F2FF)"
|
|
117
116
|
})
|
|
118
117
|
},
|
|
119
118
|
...rest
|
|
@@ -14,8 +14,6 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
14
14
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
15
15
|
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
16
16
|
import { ButtonItem } from '@atlaskit/menu';
|
|
17
|
-
import { B100, N200 } from '@atlaskit/theme/colors';
|
|
18
|
-
import { borderRadius } from '@atlaskit/theme/constants';
|
|
19
17
|
import Tooltip from '@atlaskit/tooltip';
|
|
20
18
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent } from '../../../analytics';
|
|
21
19
|
import { IconFallback } from '../../../quick-insert';
|
|
@@ -35,7 +33,7 @@ export const itemIcon = css({
|
|
|
35
33
|
overflow: 'hidden',
|
|
36
34
|
border: `1px solid ${"var(--ds-border, rgba(223, 225, 229, 0.5))"}`,
|
|
37
35
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
38
|
-
borderRadius:
|
|
36
|
+
borderRadius: "var(--ds-border-radius, 3px)",
|
|
39
37
|
boxSizing: 'border-box',
|
|
40
38
|
display: 'flex',
|
|
41
39
|
justifyContent: 'center',
|
|
@@ -319,7 +317,7 @@ const elementItemsWrapper = css({
|
|
|
319
317
|
outline: 'none',
|
|
320
318
|
'&:focus': {
|
|
321
319
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
322
|
-
boxShadow: `0 0 0 ${ELEMENT_LIST_PADDING}px ${
|
|
320
|
+
boxShadow: `0 0 0 ${ELEMENT_LIST_PADDING}px ${"var(--ds-border-focused, #388BFF)"}`
|
|
323
321
|
}
|
|
324
322
|
},
|
|
325
323
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
@@ -366,7 +364,7 @@ const itemDescription = css(multilineStyle, {
|
|
|
366
364
|
overflow: 'hidden',
|
|
367
365
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
368
366
|
fontSize: relativeFontSizeToBase16(11.67),
|
|
369
|
-
color:
|
|
367
|
+
color: "var(--ds-text-subtle, #44546F)",
|
|
370
368
|
marginTop: "var(--ds-space-025, 2px)"
|
|
371
369
|
});
|
|
372
370
|
const itemText = css({
|
|
@@ -12,7 +12,6 @@ import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
|
12
12
|
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
13
13
|
import SearchIcon from '@atlaskit/icon/glyph/search';
|
|
14
14
|
import Textfield from '@atlaskit/textfield';
|
|
15
|
-
import { N200 } from '@atlaskit/theme/colors';
|
|
16
15
|
import { GRID_SIZE, SEARCH_ITEM_HEIGHT_WIDTH } from '../constants';
|
|
17
16
|
import useFocus from '../hooks/use-focus';
|
|
18
17
|
import commonMessages from '../messages';
|
|
@@ -159,7 +158,7 @@ const wrapperInline = css({
|
|
|
159
158
|
});
|
|
160
159
|
const elementBeforeInput = css({
|
|
161
160
|
margin: `1px ${"var(--ds-space-075, 6px)"} 0 ${"var(--ds-space-100, 8px)"}`,
|
|
162
|
-
color:
|
|
161
|
+
color: "var(--ds-icon, #44546F)",
|
|
163
162
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
164
163
|
'span, svg': {
|
|
165
164
|
height: '20px',
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import { gridSize } from '@atlaskit/theme/constants';
|
|
3
|
-
// TODO: Migrate away from deprecated gridSize
|
|
4
|
-
// Recommendation: Replace gridSize with 8
|
|
5
|
-
export const GRID_SIZE = gridSize();
|
|
1
|
+
export const GRID_SIZE = 8;
|
|
6
2
|
export const DEVICE_BREAKPOINT_NUMBERS = {
|
|
7
3
|
small: GRID_SIZE * 40,
|
|
8
4
|
medium: GRID_SIZE * 75,
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
-
import { N30, N500 } from '@atlaskit/theme/colors';
|
|
4
3
|
import { wrapperDefault } from '../styles';
|
|
5
4
|
export const widerLayoutClassName = 'wider-layout';
|
|
6
5
|
|
|
@@ -18,11 +17,11 @@ export const wrapperStyle = css(wrapperDefault, {
|
|
|
18
17
|
},
|
|
19
18
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
20
19
|
'&.with-bodied-border': {
|
|
21
|
-
boxShadow: `0 0 0 1px ${
|
|
20
|
+
boxShadow: `0 0 0 1px ${"var(--ds-border, #091E4224)"}`
|
|
22
21
|
},
|
|
23
22
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
24
23
|
'&.with-hover-border': {
|
|
25
|
-
boxShadow: `0 0 0 1px ${
|
|
24
|
+
boxShadow: `0 0 0 1px ${"var(--ds-border-input, #8590A2)"}`
|
|
26
25
|
},
|
|
27
26
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
28
27
|
'&.with-margin-styles': {
|
|
@@ -49,7 +48,7 @@ export const header = css({
|
|
|
49
48
|
export const content = css({
|
|
50
49
|
padding: "var(--ds-space-100, 8px)",
|
|
51
50
|
background: "var(--ds-surface, white)",
|
|
52
|
-
border: `1px solid ${
|
|
51
|
+
border: `1px solid ${"var(--ds-border, #091E4224)"}`,
|
|
53
52
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
54
53
|
cursor: 'initial',
|
|
55
54
|
width: '100%',
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
-
import { N500 } from '@atlaskit/theme/colors';
|
|
4
3
|
import { wrapperDefault } from '../styles';
|
|
5
4
|
|
|
6
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
@@ -24,7 +23,7 @@ export const wrapperStyle = css(wrapperDefault, {
|
|
|
24
23
|
},
|
|
25
24
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
26
25
|
'&.with-hover-border': {
|
|
27
|
-
boxShadow: `0 0 0 1px ${
|
|
26
|
+
boxShadow: `0 0 0 1px ${"var(--ds-border-input, #8590A2)"}`
|
|
28
27
|
}
|
|
29
28
|
});
|
|
30
29
|
|
|
@@ -9,7 +9,6 @@ import { css, jsx } from '@emotion/react';
|
|
|
9
9
|
import classnames from 'classnames';
|
|
10
10
|
import { defineMessages, FormattedMessage } from 'react-intl-next';
|
|
11
11
|
import PreferencesIcon from '@atlaskit/icon/glyph/preferences';
|
|
12
|
-
import { N0, N30, N40, N500, N800 } from '@atlaskit/theme/colors';
|
|
13
12
|
import Tooltip from '@atlaskit/tooltip';
|
|
14
13
|
const containerStyles = css({
|
|
15
14
|
textAlign: 'left',
|
|
@@ -47,11 +46,11 @@ const sharedLabelStyles = css({
|
|
|
47
46
|
},
|
|
48
47
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
49
48
|
'&.bodied-background': {
|
|
50
|
-
background:
|
|
49
|
+
background: "var(--ds-surface, #FFFFFF)"
|
|
51
50
|
},
|
|
52
51
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
53
52
|
'&.bodied-border': {
|
|
54
|
-
boxShadow: `0 0 0 1px ${
|
|
53
|
+
boxShadow: `0 0 0 1px ${"var(--ds-border, #091E4224)"}`
|
|
55
54
|
}
|
|
56
55
|
});
|
|
57
56
|
const buttonLabelStyles = css({
|
|
@@ -60,8 +59,8 @@ const buttonLabelStyles = css({
|
|
|
60
59
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
61
60
|
paddingLeft: "var(--ds-space-100, 8px)",
|
|
62
61
|
paddingRight: "var(--ds-space-100, 8px)",
|
|
63
|
-
color:
|
|
64
|
-
backgroundColor:
|
|
62
|
+
color: "var(--ds-text-subtle, #44546F)",
|
|
63
|
+
backgroundColor: "var(--ds-background-accent-gray-subtlest, #F1F2F4)",
|
|
65
64
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
66
65
|
'&.remove-left-margin': {
|
|
67
66
|
marginLeft: "var(--ds-space-negative-150, -12px)"
|
|
@@ -83,11 +82,11 @@ const textStyles = css({
|
|
|
83
82
|
padding: `${"var(--ds-space-025, 2px)"} ${"var(--ds-space-050, 4px)"}`
|
|
84
83
|
});
|
|
85
84
|
const originalLabelStyles = css({
|
|
86
|
-
background:
|
|
85
|
+
background: "var(--ds-background-accent-gray-subtle-pressed, #DCDFE4)",
|
|
87
86
|
borderRadius: `${"var(--ds-border-radius, 3px)"} ${"var(--ds-border-radius, 3px)"} 0 0`,
|
|
88
87
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
89
88
|
'&.show-label': {
|
|
90
|
-
color:
|
|
89
|
+
color: "var(--ds-text-subtle, #44546F)"
|
|
91
90
|
},
|
|
92
91
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
93
92
|
'&.inline': {
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
-
import { N20, N20A, N70 } from '@atlaskit/theme/colors';
|
|
4
3
|
import { BODIED_EXT_PADDING, EXTENSION_PADDING } from '../../styles';
|
|
5
4
|
export { EXTENSION_PADDING as padding, BODIED_EXT_PADDING };
|
|
6
5
|
|
|
7
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
8
7
|
export const wrapperDefault = css({
|
|
9
|
-
background:
|
|
8
|
+
background: "var(--ds-background-neutral, #091E420F)",
|
|
10
9
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
11
10
|
position: 'relative',
|
|
12
11
|
verticalAlign: 'middle',
|
|
@@ -14,7 +13,7 @@ export const wrapperDefault = css({
|
|
|
14
13
|
'&.with-overlay': {
|
|
15
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
16
15
|
'.extension-overlay': {
|
|
17
|
-
background:
|
|
16
|
+
background: "var(--ds-background-neutral-hovered, #091E4224)",
|
|
18
17
|
color: 'transparent'
|
|
19
18
|
},
|
|
20
19
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
@@ -53,7 +52,7 @@ export const placeholderFallbackParams = css({
|
|
|
53
52
|
display: 'inline-block',
|
|
54
53
|
maxWidth: '200px',
|
|
55
54
|
marginLeft: "var(--ds-space-050, 4px)",
|
|
56
|
-
color:
|
|
55
|
+
color: "var(--ds-text-subtlest, #626F86)",
|
|
57
56
|
textOverflow: 'ellipsis',
|
|
58
57
|
whiteSpace: 'nowrap',
|
|
59
58
|
overflow: 'hidden'
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
-
import { N30, N500 } from '@atlaskit/theme/colors';
|
|
4
3
|
import { wrapperDefault } from '../Extension/styles';
|
|
5
4
|
|
|
6
5
|
// Wrapper the extension title and extensionContainer
|
|
@@ -30,11 +29,11 @@ export const mbeExtensionWrapperCSSStyles = css(wrapperDefault, {
|
|
|
30
29
|
},
|
|
31
30
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
32
31
|
'&.with-border': {
|
|
33
|
-
boxShadow: `0 0 0 1px ${
|
|
32
|
+
boxShadow: `0 0 0 1px ${"var(--ds-border, #091E4224)"}`
|
|
34
33
|
},
|
|
35
34
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
36
35
|
'&.with-hover-border': {
|
|
37
|
-
boxShadow: `0 0 0 1px ${
|
|
36
|
+
boxShadow: `0 0 0 1px ${"var(--ds-border-input, #8590A2)"}`
|
|
38
37
|
},
|
|
39
38
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
40
39
|
'&.with-padding-background-styles': {
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
6
|
import { css, jsx } from '@emotion/react';
|
|
7
|
-
import { N40, N60, N80, P300, R400, T300, Y400 } from '@atlaskit/theme/colors';
|
|
8
7
|
const createSteppedRainbow = colors => {
|
|
9
8
|
return `
|
|
10
9
|
linear-gradient(
|
|
@@ -25,8 +24,8 @@ const createSteppedRainbow = colors => {
|
|
|
25
24
|
}).join('\n')}
|
|
26
25
|
)`;
|
|
27
26
|
};
|
|
28
|
-
const rainbow = createSteppedRainbow([
|
|
29
|
-
const disabledRainbow = createSteppedRainbow([
|
|
27
|
+
const rainbow = createSteppedRainbow(["var(--ds-background-accent-purple-bolder, #6E5DC6)", "var(--ds-background-accent-teal-subtle, #6CC3E0)", "var(--ds-background-accent-orange-subtle, #FEA362)", "var(--ds-background-accent-red-bolder, #C9372C)"]);
|
|
28
|
+
const disabledRainbow = createSteppedRainbow(["var(--ds-background-accent-gray-subtle, #8590A2)", "var(--ds-background-accent-gray-subtle-hovered, #B3B9C4)", "var(--ds-background-accent-gray-subtle-pressed, #DCDFE4)", "var(--ds-background-accent-gray-subtle-hovered, #B3B9C4)"]);
|
|
30
29
|
const barStyles = css({
|
|
31
30
|
position: 'absolute',
|
|
32
31
|
left: 0,
|
|
@@ -7,7 +7,6 @@ import React, { Fragment } from 'react';
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { base, keyName } from 'w3c-keyname';
|
|
10
|
-
import { N400 } from '@atlaskit/theme/colors';
|
|
11
10
|
import { editorCommandToPMCommand } from '../preset/editor-commands';
|
|
12
11
|
import { browser } from '../utils';
|
|
13
12
|
export const addAltText = makeKeyMapWithCommon('Add Alt Text', 'Mod-Alt-y');
|
|
@@ -112,7 +111,7 @@ const arrowKeysMap = {
|
|
|
112
111
|
};
|
|
113
112
|
const tooltipShortcutStyle = css({
|
|
114
113
|
borderRadius: '2px',
|
|
115
|
-
backgroundColor:
|
|
114
|
+
backgroundColor: "var(--ds-background-inverse-subtle, #00000029)",
|
|
116
115
|
padding: `0 ${"var(--ds-space-025, 2px)"}`,
|
|
117
116
|
// NOTE: This might not actually do anything: https://atlassian.slack.com/archives/CFG3PSQ9E/p1647395052443259?thread_ts=1647394572.556029&cid=CFG3PSQ9E
|
|
118
117
|
label: 'tooltip-shortcut'
|
|
@@ -6,16 +6,15 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
6
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import Button from '@atlaskit/button';
|
|
9
|
-
import { N30A, N40A, N60A, N700 } from '@atlaskit/theme/colors';
|
|
10
9
|
const buttonStyles = css({
|
|
11
10
|
display: 'flex',
|
|
12
|
-
background:
|
|
13
|
-
color:
|
|
11
|
+
background: "var(--ds-background-neutral, #091E420F)",
|
|
12
|
+
color: "var(--ds-icon, #44546F)",
|
|
14
13
|
'&:hover': {
|
|
15
|
-
background:
|
|
14
|
+
background: "var(--ds-background-neutral-hovered, #091E4224)"
|
|
16
15
|
},
|
|
17
16
|
'&:active': {
|
|
18
|
-
background:
|
|
17
|
+
background: "var(--ds-background-neutral-pressed, #091E424F)"
|
|
19
18
|
},
|
|
20
19
|
width: '1.375rem',
|
|
21
20
|
height: '1.25rem'
|
|
@@ -10,8 +10,6 @@ import { useIntl } from 'react-intl-next';
|
|
|
10
10
|
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
11
11
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
12
12
|
import PreferencesIcon from '@atlaskit/icon/glyph/preferences';
|
|
13
|
-
import { N0 } from '@atlaskit/theme/colors';
|
|
14
|
-
import { layers } from '@atlaskit/theme/constants';
|
|
15
13
|
import Tooltip from '@atlaskit/tooltip';
|
|
16
14
|
import { cardMessages } from '../../messages';
|
|
17
15
|
import Dropdown from './Dropdown';
|
|
@@ -19,11 +17,11 @@ import { StyledButton } from './StyledButton';
|
|
|
19
17
|
import { useLinkOverlayAnalyticsEvents } from './useLinkOverlayAnalyticsEvents';
|
|
20
18
|
const buttonWrapperStyles = css({
|
|
21
19
|
position: 'absolute',
|
|
22
|
-
zIndex:
|
|
20
|
+
zIndex: 100,
|
|
23
21
|
display: 'inline-flex',
|
|
24
22
|
top: '50%',
|
|
25
23
|
transform: 'translateY(-50%)',
|
|
26
|
-
background:
|
|
24
|
+
background: "var(--ds-surface-raised, #FFFFFF)",
|
|
27
25
|
borderRadius: "var(--ds-border-radius, 3px)"
|
|
28
26
|
});
|
|
29
27
|
const showDropdownThresholdPx = 50;
|
|
@@ -16,7 +16,6 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
16
16
|
import Page16Icon from '@atlaskit/icon-object/glyph/page/16';
|
|
17
17
|
import CrossCircleIcon from '@atlaskit/icon/glyph/cross-circle';
|
|
18
18
|
import { Pressable, xcss } from '@atlaskit/primitives';
|
|
19
|
-
import { N200 } from '@atlaskit/theme/colors';
|
|
20
19
|
import Tooltip from '@atlaskit/tooltip';
|
|
21
20
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, fireAnalyticsEvent, INPUT_METHOD } from '../../../analytics';
|
|
22
21
|
import { Announcer, PanelTextInput } from '../../../ui';
|
|
@@ -59,7 +58,7 @@ const textLabelMargin = css({
|
|
|
59
58
|
marginTop: "var(--ds-space-150, 12px)"
|
|
60
59
|
});
|
|
61
60
|
const inputLabel = css({
|
|
62
|
-
color:
|
|
61
|
+
color: "var(--ds-text-subtlest, #626F86)",
|
|
63
62
|
paddingBottom: "var(--ds-space-050, 4px)",
|
|
64
63
|
font: "var(--ds-font-body-small, normal 400 11px/16px ui-sans-serif, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Ubuntu, system-ui, \"Helvetica Neue\", sans-serif)",
|
|
65
64
|
fontWeight: "var(--ds-font-weight-medium, 500)"
|
|
@@ -7,12 +7,11 @@ import { PureComponent } from 'react';
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import Spinner from '@atlaskit/spinner';
|
|
10
|
-
import { N30 } from '@atlaskit/theme/colors';
|
|
11
10
|
import LinkSearchListItem from './LinkSearchListItem';
|
|
12
11
|
const listContainer = css({
|
|
13
12
|
paddingTop: 0,
|
|
14
13
|
marginTop: "var(--ds-space-150, 12px)",
|
|
15
|
-
borderTop: `1px solid ${
|
|
14
|
+
borderTop: `1px solid ${"var(--ds-border, #091E4224)"}`
|
|
16
15
|
});
|
|
17
16
|
const spinnerContainer = css({
|
|
18
17
|
textAlign: 'center',
|
|
@@ -12,8 +12,6 @@ import { css, jsx } from '@emotion/react';
|
|
|
12
12
|
|
|
13
13
|
import { injectIntl } from 'react-intl-next';
|
|
14
14
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
15
|
-
import { N20, N300, N800 } from '@atlaskit/theme/colors';
|
|
16
|
-
import { fontSizeSmall } from '@atlaskit/theme/constants';
|
|
17
15
|
import { getCorrectAltByIconUrl } from './listItemAlts';
|
|
18
16
|
import { transformTimeStamp } from './transformTimeStamp';
|
|
19
17
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
@@ -27,7 +25,7 @@ export const container = css({
|
|
|
27
25
|
|
|
28
26
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
29
27
|
export const containerSelected = css({
|
|
30
|
-
backgroundColor:
|
|
28
|
+
backgroundColor: "var(--ds-background-neutral-subtle-hovered, #091E420F)"
|
|
31
29
|
});
|
|
32
30
|
const nameWrapper = css({
|
|
33
31
|
overflow: 'hidden'
|
|
@@ -35,7 +33,7 @@ const nameWrapper = css({
|
|
|
35
33
|
|
|
36
34
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
37
35
|
export const nameStyle = css({
|
|
38
|
-
color:
|
|
36
|
+
color: "var(--ds-text, #172B4D)",
|
|
39
37
|
overflow: 'hidden',
|
|
40
38
|
textOverflow: 'ellipsis',
|
|
41
39
|
whiteSpace: 'nowrap',
|
|
@@ -44,10 +42,10 @@ export const nameStyle = css({
|
|
|
44
42
|
|
|
45
43
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
46
44
|
export const containerName = css({
|
|
47
|
-
color:
|
|
45
|
+
color: "var(--ds-text-subtlest, #626F86)",
|
|
48
46
|
lineHeight: '14px',
|
|
49
47
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
50
|
-
fontSize: relativeFontSizeToBase16(
|
|
48
|
+
fontSize: relativeFontSizeToBase16(11)
|
|
51
49
|
});
|
|
52
50
|
const iconStyle = css({
|
|
53
51
|
minWidth: '16px',
|