@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
|
@@ -1,73 +1,70 @@
|
|
|
1
|
-
// AFP-2532 TODO: Fix automatic suppressions below
|
|
2
|
-
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
3
|
-
import { colors } from '@atlaskit/theme';
|
|
4
1
|
import { darkPanelColors } from '../../../panel';
|
|
5
2
|
import { DEFAULT_BORDER_COLOR } from './common';
|
|
6
3
|
/** this is not new usage - old code extracted from editor-core */
|
|
7
4
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
8
5
|
export const panelBackgroundPalette = [{
|
|
9
6
|
label: 'White',
|
|
10
|
-
value:
|
|
7
|
+
value: '#FFFFFF'
|
|
11
8
|
}, {
|
|
12
9
|
label: 'Light blue',
|
|
13
|
-
value:
|
|
10
|
+
value: '#DEEBFF'
|
|
14
11
|
}, {
|
|
15
12
|
label: 'Light teal',
|
|
16
|
-
value:
|
|
13
|
+
value: '#E6FCFF'
|
|
17
14
|
}, {
|
|
18
15
|
label: 'Light green',
|
|
19
|
-
value:
|
|
16
|
+
value: '#E3FCEF'
|
|
20
17
|
}, {
|
|
21
18
|
label: 'Light yellow',
|
|
22
|
-
value:
|
|
19
|
+
value: '#FFFAE6'
|
|
23
20
|
}, {
|
|
24
21
|
label: 'Light red',
|
|
25
|
-
value:
|
|
22
|
+
value: '#FFEBE6'
|
|
26
23
|
}, {
|
|
27
24
|
label: 'Light purple',
|
|
28
|
-
value:
|
|
25
|
+
value: '#EAE6FF'
|
|
29
26
|
}, {
|
|
30
27
|
label: 'Light gray',
|
|
31
|
-
value:
|
|
28
|
+
value: '#F4F5F7'
|
|
32
29
|
}, {
|
|
33
30
|
label: 'Blue',
|
|
34
|
-
value:
|
|
31
|
+
value: '#B3D4FF'
|
|
35
32
|
}, {
|
|
36
33
|
label: 'Teal',
|
|
37
|
-
value:
|
|
34
|
+
value: '#B3F5FF'
|
|
38
35
|
}, {
|
|
39
36
|
label: 'Green',
|
|
40
|
-
value:
|
|
37
|
+
value: '#ABF5D1'
|
|
41
38
|
}, {
|
|
42
39
|
label: 'Yellow',
|
|
43
|
-
value:
|
|
40
|
+
value: '#FFF0B3'
|
|
44
41
|
}, {
|
|
45
42
|
label: 'Red',
|
|
46
|
-
value:
|
|
43
|
+
value: '#FFBDAD'
|
|
47
44
|
}, {
|
|
48
45
|
label: 'Purple',
|
|
49
|
-
value:
|
|
46
|
+
value: '#C0B6F2'
|
|
50
47
|
}, {
|
|
51
48
|
label: 'Gray',
|
|
52
|
-
value:
|
|
49
|
+
value: '#B3BAC5'
|
|
53
50
|
}, {
|
|
54
51
|
label: 'Dark blue',
|
|
55
|
-
value:
|
|
52
|
+
value: '#4C9AFF'
|
|
56
53
|
}, {
|
|
57
54
|
label: 'Dark teal',
|
|
58
|
-
value:
|
|
55
|
+
value: '#79E2F2'
|
|
59
56
|
}, {
|
|
60
57
|
label: 'Dark green',
|
|
61
|
-
value:
|
|
58
|
+
value: '#57D9A3'
|
|
62
59
|
}, {
|
|
63
60
|
label: 'Dark yellow',
|
|
64
|
-
value:
|
|
61
|
+
value: '#FFC400'
|
|
65
62
|
}, {
|
|
66
63
|
label: 'Dark red',
|
|
67
|
-
value:
|
|
64
|
+
value: '#FF8F73'
|
|
68
65
|
}, {
|
|
69
66
|
label: 'Dark purple',
|
|
70
|
-
value:
|
|
67
|
+
value: '#998DD9'
|
|
71
68
|
}].map(color => ({
|
|
72
69
|
...color,
|
|
73
70
|
border: `var(--ds-border, ${DEFAULT_BORDER_COLOR})`
|
|
@@ -8,7 +8,6 @@ import React from 'react';
|
|
|
8
8
|
import { jsx } from '@emotion/react';
|
|
9
9
|
import chromatism from 'chromatism';
|
|
10
10
|
import { injectIntl } from 'react-intl-next';
|
|
11
|
-
import { N0, N500 } from '@atlaskit/theme/colors';
|
|
12
11
|
import { useThemeObserver } from '@atlaskit/tokens';
|
|
13
12
|
import Color from './Color';
|
|
14
13
|
import getColorMessage from './Palettes/getColorMessage';
|
|
@@ -27,7 +26,7 @@ function getCheckMarkColor(color, useIconToken) {
|
|
|
27
26
|
const colorValue = !!tokenVal ? tokenVal : color;
|
|
28
27
|
|
|
29
28
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
30
|
-
const contrastColor = [
|
|
29
|
+
const contrastColor = ['#FFFFFF', '#42526E'].sort((a, b) => chromatism.difference(b, colorValue) - chromatism.difference(a, colorValue))[0];
|
|
31
30
|
if (!useIconToken) {
|
|
32
31
|
return contrastColor;
|
|
33
32
|
}
|
|
@@ -36,7 +35,7 @@ function getCheckMarkColor(color, useIconToken) {
|
|
|
36
35
|
// they are only intended for use with text colors (and there are different tokens
|
|
37
36
|
// planned to be used when this extended to be used with other palettes).
|
|
38
37
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage
|
|
39
|
-
return contrastColor ===
|
|
38
|
+
return contrastColor === '#FFFFFF' ? "var(--ds-icon-inverse, #FFFFFF)" : "var(--ds-icon, #44546F)";
|
|
40
39
|
}
|
|
41
40
|
const ColorPalette = props => {
|
|
42
41
|
const {
|
|
@@ -4,7 +4,6 @@ export { DEFAULT_COLOR_PICKER_COLUMNS, getColorsPerRowFromPalette, getSelectedRo
|
|
|
4
4
|
export { default as cellBackgroundColorPalette } from './ColorPalette/Palettes/cellBackgroundColorPalette';
|
|
5
5
|
export { default as colorPaletteMessages } from './ColorPalette/Palettes/paletteMessages';
|
|
6
6
|
export { panelBackgroundPalette, panelDarkModeBackgroundPalette } from './ColorPalette/Palettes/panelBackgroundPalette';
|
|
7
|
-
export { lightModeStatusColorPalette, darkModeStatusColorPalette } from './ColorPalette/Palettes/statusColorPalette';
|
|
8
7
|
export { textColorPalette } from './ColorPalette/Palettes/textColorPalette';
|
|
9
8
|
export { highlightColorPalette, REMOVE_HIGHLIGHT_COLOR } from './ColorPalette/Palettes/highlightColorPalette';
|
|
10
9
|
export { backgroundPaletteTooltipMessages, borderPaletteTooltipMessages, chartsColorPaletteTooltipMessages, textPaletteTooltipMessages } from './ColorPalette/Palettes';
|
|
@@ -10,7 +10,6 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
10
10
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
11
11
|
import Button from '@atlaskit/button/standard-button';
|
|
12
12
|
import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
|
|
13
|
-
import { N0, N30A, N60A } from '@atlaskit/theme/colors';
|
|
14
13
|
import Tooltip from '@atlaskit/tooltip';
|
|
15
14
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, editorAnalyticsChannel, EVENT_TYPE } from '../../analytics';
|
|
16
15
|
import { ColorPalette, DEFAULT_BORDER_COLOR, getSelectedRowAndColumnFromPalette } from '../../ui-color';
|
|
@@ -33,8 +32,8 @@ const colorPickerExpandContainer = css({
|
|
|
33
32
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
34
33
|
const colorPickerWrapper = () => css({
|
|
35
34
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
36
|
-
backgroundColor:
|
|
37
|
-
boxShadow:
|
|
35
|
+
backgroundColor: "var(--ds-surface-overlay, #FFFFFF)",
|
|
36
|
+
boxShadow: "var(--ds-shadow-overlay, 0px 8px 12px #091E4226, 0px 0px 1px #091E424f)",
|
|
38
37
|
padding: `${"var(--ds-space-100, 8px)"} 0px`
|
|
39
38
|
});
|
|
40
39
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
@@ -184,7 +183,7 @@ const ColorPickerButton = props => {
|
|
|
184
183
|
margin: `0px ${"var(--ds-space-025, 2px)"}`
|
|
185
184
|
},
|
|
186
185
|
'&:hover': {
|
|
187
|
-
background:
|
|
186
|
+
background: "var(--ds-background-neutral-subtle-hovered, #091E420F)"
|
|
188
187
|
}
|
|
189
188
|
});
|
|
190
189
|
};
|
|
@@ -10,7 +10,6 @@ import { css, jsx } from '@emotion/react';
|
|
|
10
10
|
import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
|
|
11
11
|
import { CustomItem, MenuGroup, Section } from '@atlaskit/menu';
|
|
12
12
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
|
-
import { B100, N70, N900 } from '@atlaskit/theme/colors';
|
|
14
13
|
import Tooltip from '@atlaskit/tooltip';
|
|
15
14
|
import { DropdownMenuSharedCssClassName } from '../../styles';
|
|
16
15
|
import { KeyDownHandlerContext } from '../../ui-menu/ToolbarArrowKeyNavigationProvider';
|
|
@@ -27,7 +26,7 @@ const wrapper = css({
|
|
|
27
26
|
}
|
|
28
27
|
});
|
|
29
28
|
const focusedMenuItemStyle = css({
|
|
30
|
-
boxShadow: `inset 0px 0px 0px 2px ${
|
|
29
|
+
boxShadow: `inset 0px 0px 0px 2px ${"var(--ds-border-focused, #388BFF)"}`,
|
|
31
30
|
outline: 'none'
|
|
32
31
|
});
|
|
33
32
|
const buttonStyles = (isActive, submenuActive) => {
|
|
@@ -55,7 +54,7 @@ const buttonStyles = (isActive, submenuActive) => {
|
|
|
55
54
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
56
55
|
return css`
|
|
57
56
|
> span:hover[aria-disabled='false'] {
|
|
58
|
-
color: ${
|
|
57
|
+
color: ${"var(--ds-text, #172B4D)"};
|
|
59
58
|
background-color: ${"var(--ds-background-neutral-subtle-hovered, rgb(244, 245, 247))"};
|
|
60
59
|
}
|
|
61
60
|
${!submenuActive && `
|
|
@@ -63,7 +62,7 @@ const buttonStyles = (isActive, submenuActive) => {
|
|
|
63
62
|
background-color: ${"var(--ds-background-neutral-subtle-pressed, rgb(179, 212, 255))"};
|
|
64
63
|
}`}
|
|
65
64
|
> span[aria-disabled='true'] {
|
|
66
|
-
color: ${
|
|
65
|
+
color: ${"var(--ds-text-disabled, #091E424F)"};
|
|
67
66
|
}
|
|
68
67
|
:focus > span[aria-disabled='false'] {
|
|
69
68
|
${focusedMenuItemStyle};
|
|
@@ -15,7 +15,6 @@ import React, { Fragment, memo, useCallback } from 'react';
|
|
|
15
15
|
import { css, jsx } from '@emotion/react';
|
|
16
16
|
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
17
17
|
import Button from '@atlaskit/button/custom-theme-button';
|
|
18
|
-
import { B400, B50, N800 } from '@atlaskit/theme/colors';
|
|
19
18
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, fireAnalyticsEvent } from '../../analytics';
|
|
20
19
|
import { DEVICE_BREAKPOINT_NUMBERS, GRID_SIZE } from '../constants';
|
|
21
20
|
import useFocus from '../hooks/use-focus';
|
|
@@ -112,9 +111,9 @@ function CategoryListItem(_ref2) {
|
|
|
112
111
|
marginLeft: "var(--ds-space-025, 2px)",
|
|
113
112
|
height: '100%',
|
|
114
113
|
width: '100%',
|
|
115
|
-
color: category.name !== selectedCategory ? "var(--ds-text,
|
|
114
|
+
color: category.name !== selectedCategory ? "var(--ds-text, #172B4D)" : "var(--ds-text-selected, #0C66E4)"
|
|
116
115
|
}, category.name === selectedCategory && {
|
|
117
|
-
background: "var(--ds-background-selected,
|
|
116
|
+
background: "var(--ds-background-selected, #E9F2FF)"
|
|
118
117
|
})
|
|
119
118
|
}, rest);
|
|
120
119
|
}, [category.name, selectedCategory]);
|
|
@@ -17,8 +17,6 @@ import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext'
|
|
|
17
17
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
18
18
|
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
19
19
|
import { ButtonItem } from '@atlaskit/menu';
|
|
20
|
-
import { B100, N200 } from '@atlaskit/theme/colors';
|
|
21
|
-
import { borderRadius } from '@atlaskit/theme/constants';
|
|
22
20
|
import Tooltip from '@atlaskit/tooltip';
|
|
23
21
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent } from '../../../analytics';
|
|
24
22
|
import { IconFallback } from '../../../quick-insert';
|
|
@@ -38,7 +36,7 @@ export var itemIcon = css({
|
|
|
38
36
|
overflow: 'hidden',
|
|
39
37
|
border: "1px solid ".concat("var(--ds-border, rgba(223, 225, 229, 0.5))"),
|
|
40
38
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
41
|
-
borderRadius: "
|
|
39
|
+
borderRadius: "var(--ds-border-radius, 3px)",
|
|
42
40
|
boxSizing: 'border-box',
|
|
43
41
|
display: 'flex',
|
|
44
42
|
justifyContent: 'center',
|
|
@@ -326,7 +324,7 @@ var elementItemsWrapper = css({
|
|
|
326
324
|
outline: 'none',
|
|
327
325
|
'&:focus': {
|
|
328
326
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
329
|
-
boxShadow: "0 0 0 ".concat(ELEMENT_LIST_PADDING, "px ", "var(--ds-border-focused,
|
|
327
|
+
boxShadow: "0 0 0 ".concat(ELEMENT_LIST_PADDING, "px ", "var(--ds-border-focused, #388BFF)")
|
|
330
328
|
}
|
|
331
329
|
},
|
|
332
330
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
@@ -373,7 +371,7 @@ var itemDescription = css(multilineStyle, {
|
|
|
373
371
|
overflow: 'hidden',
|
|
374
372
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
375
373
|
fontSize: relativeFontSizeToBase16(11.67),
|
|
376
|
-
color: "var(--ds-text-subtle,
|
|
374
|
+
color: "var(--ds-text-subtle, #44546F)",
|
|
377
375
|
marginTop: "var(--ds-space-025, 2px)"
|
|
378
376
|
});
|
|
379
377
|
var itemText = css({
|
|
@@ -13,7 +13,6 @@ import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
|
13
13
|
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
14
14
|
import SearchIcon from '@atlaskit/icon/glyph/search';
|
|
15
15
|
import Textfield from '@atlaskit/textfield';
|
|
16
|
-
import { N200 } from '@atlaskit/theme/colors';
|
|
17
16
|
import { GRID_SIZE, SEARCH_ITEM_HEIGHT_WIDTH } from '../constants';
|
|
18
17
|
import useFocus from '../hooks/use-focus';
|
|
19
18
|
import commonMessages from '../messages';
|
|
@@ -157,7 +156,7 @@ var wrapperInline = css({
|
|
|
157
156
|
});
|
|
158
157
|
var elementBeforeInput = css({
|
|
159
158
|
margin: "1px ".concat("var(--ds-space-075, 6px)", " 0 ", "var(--ds-space-100, 8px)"),
|
|
160
|
-
color: "var(--ds-icon,
|
|
159
|
+
color: "var(--ds-icon, #44546F)",
|
|
161
160
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
162
161
|
'span, svg': {
|
|
163
162
|
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 var GRID_SIZE = gridSize();
|
|
1
|
+
export var GRID_SIZE = 8;
|
|
6
2
|
export var 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 var widerLayoutClassName = 'wider-layout';
|
|
6
5
|
|
|
@@ -18,11 +17,11 @@ export var 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 ".concat("var(--ds-border,
|
|
20
|
+
boxShadow: "0 0 0 1px ".concat("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 ".concat("var(--ds-border-input,
|
|
24
|
+
boxShadow: "0 0 0 1px ".concat("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 var header = css({
|
|
|
49
48
|
export var content = css({
|
|
50
49
|
padding: "var(--ds-space-100, 8px)",
|
|
51
50
|
background: "var(--ds-surface, white)",
|
|
52
|
-
border: "1px solid ".concat("var(--ds-border,
|
|
51
|
+
border: "1px solid ".concat("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 var 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 ".concat("var(--ds-border-input,
|
|
26
|
+
boxShadow: "0 0 0 1px ".concat("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
|
var containerStyles = css({
|
|
15
14
|
textAlign: 'left',
|
|
@@ -47,11 +46,11 @@ var 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: "var(--ds-surface,
|
|
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 ".concat("var(--ds-border,
|
|
53
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border, #091E4224)")
|
|
55
54
|
}
|
|
56
55
|
});
|
|
57
56
|
var buttonLabelStyles = css({
|
|
@@ -60,8 +59,8 @@ var 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: "var(--ds-text-subtle,
|
|
64
|
-
backgroundColor: "var(--ds-background-accent-gray-subtlest,
|
|
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 @@ var textStyles = css({
|
|
|
83
82
|
padding: "var(--ds-space-025, 2px)".concat(" ", "var(--ds-space-050, 4px)")
|
|
84
83
|
});
|
|
85
84
|
var originalLabelStyles = css({
|
|
86
|
-
background: "var(--ds-background-accent-gray-subtle-pressed,
|
|
85
|
+
background: "var(--ds-background-accent-gray-subtle-pressed, #DCDFE4)",
|
|
87
86
|
borderRadius: "var(--ds-border-radius, 3px)".concat(" ", "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: "var(--ds-text-subtle,
|
|
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 var wrapperDefault = css({
|
|
9
|
-
background: "var(--ds-background-neutral,
|
|
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 var 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: "var(--ds-background-neutral-hovered,
|
|
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 var placeholderFallbackParams = css({
|
|
|
53
52
|
display: 'inline-block',
|
|
54
53
|
maxWidth: '200px',
|
|
55
54
|
marginLeft: "var(--ds-space-050, 4px)",
|
|
56
|
-
color: "var(--ds-text-subtlest,
|
|
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 var 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 ".concat("var(--ds-border,
|
|
32
|
+
boxShadow: "0 0 0 1px ".concat("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 ".concat("var(--ds-border-input,
|
|
36
|
+
boxShadow: "0 0 0 1px ".concat("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
|
var createSteppedRainbow = function createSteppedRainbow(colors) {
|
|
9
8
|
return "\n linear-gradient(\n to right,\n ".concat(colors.map(function (color, i) {
|
|
10
9
|
var inc = 100 / colors.length;
|
|
@@ -18,8 +17,8 @@ var createSteppedRainbow = function createSteppedRainbow(colors) {
|
|
|
18
17
|
return "\n ".concat(color, " ").concat((pos - 1) * inc, "%,\n ").concat(color, " ").concat(pos * inc, "%,\n ");
|
|
19
18
|
}).join('\n'), "\n )");
|
|
20
19
|
};
|
|
21
|
-
var rainbow = createSteppedRainbow([
|
|
22
|
-
var disabledRainbow = createSteppedRainbow([
|
|
20
|
+
var 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)"]);
|
|
21
|
+
var 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)"]);
|
|
23
22
|
var barStyles = css({
|
|
24
23
|
position: 'absolute',
|
|
25
24
|
left: 0,
|
|
@@ -8,7 +8,6 @@ import React, { Fragment } from 'react';
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
10
|
import { base, keyName } from 'w3c-keyname';
|
|
11
|
-
import { N400 } from '@atlaskit/theme/colors';
|
|
12
11
|
import { editorCommandToPMCommand } from '../preset/editor-commands';
|
|
13
12
|
import { browser } from '../utils';
|
|
14
13
|
export var addAltText = makeKeyMapWithCommon('Add Alt Text', 'Mod-Alt-y');
|
|
@@ -113,7 +112,7 @@ var arrowKeysMap = {
|
|
|
113
112
|
};
|
|
114
113
|
var tooltipShortcutStyle = css({
|
|
115
114
|
borderRadius: '2px',
|
|
116
|
-
backgroundColor: "var(--ds-background-inverse-subtle,
|
|
115
|
+
backgroundColor: "var(--ds-background-inverse-subtle, #00000029)",
|
|
117
116
|
padding: "0 ".concat("var(--ds-space-025, 2px)"),
|
|
118
117
|
// NOTE: This might not actually do anything: https://atlassian.slack.com/archives/CFG3PSQ9E/p1647395052443259?thread_ts=1647394572.556029&cid=CFG3PSQ9E
|
|
119
118
|
label: 'tooltip-shortcut'
|
|
@@ -8,16 +8,15 @@ var _excluded = ["innerRef"];
|
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
import { css, jsx } from '@emotion/react';
|
|
10
10
|
import Button from '@atlaskit/button';
|
|
11
|
-
import { N30A, N40A, N60A, N700 } from '@atlaskit/theme/colors';
|
|
12
11
|
var buttonStyles = css({
|
|
13
12
|
display: 'flex',
|
|
14
|
-
background: "var(--ds-background-neutral,
|
|
15
|
-
color: "var(--ds-icon,
|
|
13
|
+
background: "var(--ds-background-neutral, #091E420F)",
|
|
14
|
+
color: "var(--ds-icon, #44546F)",
|
|
16
15
|
'&:hover': {
|
|
17
|
-
background: "var(--ds-background-neutral-hovered,
|
|
16
|
+
background: "var(--ds-background-neutral-hovered, #091E4224)"
|
|
18
17
|
},
|
|
19
18
|
'&:active': {
|
|
20
|
-
background: "var(--ds-background-neutral-pressed,
|
|
19
|
+
background: "var(--ds-background-neutral-pressed, #091E424F)"
|
|
21
20
|
},
|
|
22
21
|
width: '1.375rem',
|
|
23
22
|
height: '1.25rem'
|
|
@@ -11,8 +11,6 @@ import { useIntl } from 'react-intl-next';
|
|
|
11
11
|
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
12
12
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
13
13
|
import PreferencesIcon from '@atlaskit/icon/glyph/preferences';
|
|
14
|
-
import { N0 } from '@atlaskit/theme/colors';
|
|
15
|
-
import { layers } from '@atlaskit/theme/constants';
|
|
16
14
|
import Tooltip from '@atlaskit/tooltip';
|
|
17
15
|
import { cardMessages } from '../../messages';
|
|
18
16
|
import Dropdown from './Dropdown';
|
|
@@ -20,11 +18,11 @@ import { StyledButton } from './StyledButton';
|
|
|
20
18
|
import { useLinkOverlayAnalyticsEvents } from './useLinkOverlayAnalyticsEvents';
|
|
21
19
|
var buttonWrapperStyles = css({
|
|
22
20
|
position: 'absolute',
|
|
23
|
-
zIndex:
|
|
21
|
+
zIndex: 100,
|
|
24
22
|
display: 'inline-flex',
|
|
25
23
|
top: '50%',
|
|
26
24
|
transform: 'translateY(-50%)',
|
|
27
|
-
background: "var(--ds-surface-raised,
|
|
25
|
+
background: "var(--ds-surface-raised, #FFFFFF)",
|
|
28
26
|
borderRadius: "var(--ds-border-radius, 3px)"
|
|
29
27
|
});
|
|
30
28
|
var showDropdownThresholdPx = 50;
|
|
@@ -28,7 +28,6 @@ import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
|
28
28
|
import Page16Icon from '@atlaskit/icon-object/glyph/page/16';
|
|
29
29
|
import CrossCircleIcon from '@atlaskit/icon/glyph/cross-circle';
|
|
30
30
|
import { Pressable, xcss } from '@atlaskit/primitives';
|
|
31
|
-
import { N200 } from '@atlaskit/theme/colors';
|
|
32
31
|
import Tooltip from '@atlaskit/tooltip';
|
|
33
32
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, fireAnalyticsEvent, INPUT_METHOD } from '../../../analytics';
|
|
34
33
|
import { Announcer, PanelTextInput } from '../../../ui';
|
|
@@ -71,7 +70,7 @@ var textLabelMargin = css({
|
|
|
71
70
|
marginTop: "var(--ds-space-150, 12px)"
|
|
72
71
|
});
|
|
73
72
|
var inputLabel = css({
|
|
74
|
-
color: "var(--ds-text-subtlest,
|
|
73
|
+
color: "var(--ds-text-subtlest, #626F86)",
|
|
75
74
|
paddingBottom: "var(--ds-space-050, 4px)",
|
|
76
75
|
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)",
|
|
77
76
|
fontWeight: "var(--ds-font-weight-medium, 500)"
|
|
@@ -14,12 +14,11 @@ import { PureComponent } from 'react';
|
|
|
14
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
15
15
|
import { css, jsx } from '@emotion/react';
|
|
16
16
|
import Spinner from '@atlaskit/spinner';
|
|
17
|
-
import { N30 } from '@atlaskit/theme/colors';
|
|
18
17
|
import LinkSearchListItem from './LinkSearchListItem';
|
|
19
18
|
var listContainer = css({
|
|
20
19
|
paddingTop: 0,
|
|
21
20
|
marginTop: "var(--ds-space-150, 12px)",
|
|
22
|
-
borderTop: "1px solid ".concat("var(--ds-border,
|
|
21
|
+
borderTop: "1px solid ".concat("var(--ds-border, #091E4224)")
|
|
23
22
|
});
|
|
24
23
|
var spinnerContainer = css({
|
|
25
24
|
textAlign: 'center',
|
|
@@ -20,8 +20,6 @@ import { css, jsx } from '@emotion/react';
|
|
|
20
20
|
|
|
21
21
|
import { injectIntl } from 'react-intl-next';
|
|
22
22
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
23
|
-
import { N20, N300, N800 } from '@atlaskit/theme/colors';
|
|
24
|
-
import { fontSizeSmall } from '@atlaskit/theme/constants';
|
|
25
23
|
import { getCorrectAltByIconUrl } from './listItemAlts';
|
|
26
24
|
import { transformTimeStamp } from './transformTimeStamp';
|
|
27
25
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
@@ -35,7 +33,7 @@ export var container = css({
|
|
|
35
33
|
|
|
36
34
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
37
35
|
export var containerSelected = css({
|
|
38
|
-
backgroundColor: "var(--ds-background-neutral-subtle-hovered,
|
|
36
|
+
backgroundColor: "var(--ds-background-neutral-subtle-hovered, #091E420F)"
|
|
39
37
|
});
|
|
40
38
|
var nameWrapper = css({
|
|
41
39
|
overflow: 'hidden'
|
|
@@ -43,7 +41,7 @@ var nameWrapper = css({
|
|
|
43
41
|
|
|
44
42
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
45
43
|
export var nameStyle = css({
|
|
46
|
-
color: "var(--ds-text,
|
|
44
|
+
color: "var(--ds-text, #172B4D)",
|
|
47
45
|
overflow: 'hidden',
|
|
48
46
|
textOverflow: 'ellipsis',
|
|
49
47
|
whiteSpace: 'nowrap',
|
|
@@ -52,10 +50,10 @@ export var nameStyle = css({
|
|
|
52
50
|
|
|
53
51
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
54
52
|
export var containerName = css({
|
|
55
|
-
color: "var(--ds-text-subtlest,
|
|
53
|
+
color: "var(--ds-text-subtlest, #626F86)",
|
|
56
54
|
lineHeight: '14px',
|
|
57
55
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
58
|
-
fontSize: relativeFontSizeToBase16(
|
|
56
|
+
fontSize: relativeFontSizeToBase16(11)
|
|
59
57
|
});
|
|
60
58
|
var iconStyle = css({
|
|
61
59
|
minWidth: '16px',
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { headingSizes } from '@atlaskit/theme/typography';
|
|
2
1
|
export var DEFAULT_IMAGE_WIDTH = 250;
|
|
3
2
|
export var DEFAULT_IMAGE_HEIGHT = 200;
|
|
4
3
|
export var DEFAULT_INLINE_IMAGE_ASPECT_RATIO = DEFAULT_IMAGE_WIDTH / DEFAULT_IMAGE_HEIGHT;
|
|
@@ -12,13 +11,16 @@ export var DEFAULT_INLINE_IMAGE_BORDER_SIZE = 0;
|
|
|
12
11
|
*
|
|
13
12
|
* There is conversation about refactoring media inline nodes to conform to
|
|
14
13
|
* aligning correctly with the surrounding text.
|
|
14
|
+
*
|
|
15
|
+
* These constants originally came from `headingSizes` from the `theme` package
|
|
16
|
+
* and have been copied here to remove this package.
|
|
15
17
|
*/
|
|
16
18
|
export var referenceHeights = {
|
|
17
|
-
p:
|
|
18
|
-
h1:
|
|
19
|
-
h2:
|
|
20
|
-
h3:
|
|
21
|
-
h4:
|
|
22
|
-
h5:
|
|
23
|
-
h6:
|
|
19
|
+
p: 24 - 2,
|
|
20
|
+
h1: 32 + 4,
|
|
21
|
+
h2: 28 + 3,
|
|
22
|
+
h3: 24 + 1,
|
|
23
|
+
h4: 20 + 3,
|
|
24
|
+
h5: 16 + 4,
|
|
25
|
+
h6: 16 + 2
|
|
24
26
|
};
|
|
@@ -2,7 +2,6 @@ import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral
|
|
|
2
2
|
var _templateObject, _templateObject2;
|
|
3
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
4
|
import { css } from '@emotion/react';
|
|
5
|
-
import { B300 } from '@atlaskit/theme/colors';
|
|
6
5
|
import { DEFAULT_INLINE_IMAGE_ASPECT_RATIO, DEFAULT_INLINE_IMAGE_BORDER_SIZE, referenceHeights } from './constants';
|
|
7
6
|
export var INLINE_IMAGE_WRAPPER_CLASS_NAME = 'media-inline-image-wrapper';
|
|
8
7
|
export var INLINE_IMAGE_ASPECT_RATIO_CSS_VAR_KEY = '--editor-media-inline-image-aspect-ratio';
|
|
@@ -41,7 +40,7 @@ export var wrapperStyle = css({
|
|
|
41
40
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
42
41
|
export var selectedStyle = css({
|
|
43
42
|
cursor: 'pointer',
|
|
44
|
-
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected,
|
|
43
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-selected, #0C66E4)"),
|
|
45
44
|
outline: 'none'
|
|
46
45
|
});
|
|
47
46
|
|