@atlaskit/editor-common 92.1.2 → 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 +26 -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/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/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/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 +3 -7
- 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,10 +1,9 @@
|
|
|
1
1
|
import { findParentNodeOfTypeClosestToPos } from '@atlaskit/editor-prosemirror/utils';
|
|
2
2
|
import { akEditorDefaultLayoutWidth, akEditorFullWidthLayoutWidth, akEditorWideLayoutWidth, akLayoutGutterOffset, gridMediumMaxWidth } from '@atlaskit/editor-shared-styles';
|
|
3
|
-
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
4
|
-
import { gridSize } from '@atlaskit/theme/constants';
|
|
5
3
|
import { BODIED_EXT_PADDING } from '../styles/shared/extension';
|
|
6
4
|
import { LAYOUT_COLUMN_PADDING, LAYOUT_SECTION_MARGIN } from '../styles/shared/layout';
|
|
7
5
|
import { absoluteBreakoutWidth } from '../utils/breakout';
|
|
6
|
+
const GRID_SIZE = 8;
|
|
8
7
|
export const layoutToWidth = {
|
|
9
8
|
default: akEditorDefaultLayoutWidth,
|
|
10
9
|
wide: akEditorWideLayoutWidth,
|
|
@@ -71,18 +70,15 @@ export const getParentNodeWidth = (pos, state, containerWidth, isFullWidthModeEn
|
|
|
71
70
|
case schema.nodes.extensionFrame:
|
|
72
71
|
parentWidth -= BODIED_EXT_PADDING * 2;
|
|
73
72
|
break;
|
|
74
|
-
|
|
75
|
-
// TODO: Migrate away from gridSize
|
|
76
|
-
// Recommendation: Replace gridSize with 8
|
|
77
73
|
case schema.nodes.expand:
|
|
78
74
|
// padding
|
|
79
|
-
parentWidth -=
|
|
75
|
+
parentWidth -= GRID_SIZE * 2;
|
|
80
76
|
// gutter offset
|
|
81
|
-
parentWidth +=
|
|
77
|
+
parentWidth += GRID_SIZE * 1.5 * 2;
|
|
82
78
|
// padding right
|
|
83
|
-
parentWidth -=
|
|
79
|
+
parentWidth -= GRID_SIZE;
|
|
84
80
|
// padding left
|
|
85
|
-
parentWidth -=
|
|
81
|
+
parentWidth -= GRID_SIZE * 4 - GRID_SIZE / 2;
|
|
86
82
|
break;
|
|
87
83
|
}
|
|
88
84
|
parentWidth -= 2; // border
|
package/dist/es2019/panel.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { getPanelTypeBackground, getPanelTypeBackgroundNoTokens, darkPanelColors,
|
|
1
|
+
export { getPanelTypeBackground, getPanelTypeBackgroundNoTokens, darkPanelColors, panelSharedStyles, panelSharedStylesWithoutPrefix, PanelSharedCssClassName, PanelSharedSelectors } from './styles/shared/panel';
|
|
@@ -1,7 +1,6 @@
|
|
|
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
3
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
4
|
-
import { N60A, Y300, Y75 } from '@atlaskit/theme/colors';
|
|
5
4
|
export const annotationPrefix = 'ak-editor-annotation';
|
|
6
5
|
export const AnnotationSharedClassNames = {
|
|
7
6
|
focus: `${annotationPrefix}-focus`,
|
|
@@ -14,8 +13,6 @@ export const BlockAnnotationSharedClassNames = {
|
|
|
14
13
|
blur: `${blockAnnotationPrefix}-blur`,
|
|
15
14
|
draft: `${blockAnnotationPrefix}-draft`
|
|
16
15
|
};
|
|
17
|
-
const Yellow100 = 'rgb(255, 247, 214)';
|
|
18
|
-
const Y200a = 'rgba(255, 196, 0, 0.82)';
|
|
19
16
|
export const AnnotationSharedCSSByState = () => {
|
|
20
17
|
if (fg('editor_inline_comments_on_inline_nodes')) {
|
|
21
18
|
// NOTE: These styles are shared between renderer and editor. Sometimes they
|
|
@@ -33,20 +30,20 @@ export const AnnotationSharedCSSByState = () => {
|
|
|
33
30
|
} : {
|
|
34
31
|
paddingTop: '4px',
|
|
35
32
|
border: 'none',
|
|
36
|
-
boxShadow: `0 2px 0 0 ${
|
|
33
|
+
boxShadow: `0 2px 0 0 ${"var(--ds-border-accent-yellow, #B38600)"}`
|
|
37
34
|
},
|
|
38
35
|
'&:has(.date-lozenger-container)': {
|
|
39
36
|
paddingTop: '2px'
|
|
40
37
|
}
|
|
41
38
|
},
|
|
42
39
|
focus: css({
|
|
43
|
-
background:
|
|
44
|
-
borderBottomColor:
|
|
45
|
-
boxShadow:
|
|
40
|
+
background: "var(--ds-background-accent-yellow-subtler, #F8E6A0)",
|
|
41
|
+
borderBottomColor: "var(--ds-border-accent-yellow, #B38600)",
|
|
42
|
+
boxShadow: "var(--ds-shadow-overlay, 0px 8px 12px #091E4226, 0px 0px 1px #091E424f)"
|
|
46
43
|
}),
|
|
47
44
|
blur: css({
|
|
48
|
-
background:
|
|
49
|
-
borderBottomColor:
|
|
45
|
+
background: "var(--ds-background-accent-yellow-subtlest, #FFF7D6)",
|
|
46
|
+
borderBottomColor: "var(--ds-border-accent-yellow, #B38600)"
|
|
50
47
|
})
|
|
51
48
|
};
|
|
52
49
|
} else {
|
|
@@ -54,15 +51,15 @@ export const AnnotationSharedCSSByState = () => {
|
|
|
54
51
|
focus: css({
|
|
55
52
|
// Background is not coming through in confluence, suspecting to be caused by some specific combination of
|
|
56
53
|
// emotion and token look up
|
|
57
|
-
background:
|
|
58
|
-
borderBottom: `2px solid ${
|
|
54
|
+
background: "var(--ds-background-accent-yellow-subtler, #F8E6A0)",
|
|
55
|
+
borderBottom: `2px solid ${"var(--ds-border-accent-yellow, #B38600)"}`,
|
|
59
56
|
// TODO: https://product-fabric.atlassian.net/browse/DSP-4147
|
|
60
|
-
boxShadow:
|
|
57
|
+
boxShadow: "var(--ds-shadow-overlay, 0px 8px 12px #091E4226, 0px 0px 1px #091E424f)",
|
|
61
58
|
cursor: 'pointer'
|
|
62
59
|
}),
|
|
63
60
|
blur: css({
|
|
64
|
-
background:
|
|
65
|
-
borderBottom: `2px solid ${
|
|
61
|
+
background: "var(--ds-background-accent-yellow-subtlest, #FFF7D6)",
|
|
62
|
+
borderBottom: `2px solid ${"var(--ds-border-accent-yellow, #B38600)"}`,
|
|
66
63
|
cursor: 'pointer'
|
|
67
64
|
})
|
|
68
65
|
};
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
4
|
import { akEditorCodeFontFamily, akEditorLineHeight, akEditorTableCellMinWidth, blockNodesVerticalMargin, overflowShadow, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
5
|
-
import { N20, N30, N400, N800 } from '@atlaskit/theme/colors';
|
|
6
|
-
import { fontSize } from '@atlaskit/theme/constants';
|
|
7
5
|
export const CodeBlockSharedCssClassName = {
|
|
8
6
|
CODEBLOCK_CONTAINER: 'code-block',
|
|
9
7
|
CODEBLOCK_START: 'code-block--start',
|
|
@@ -46,7 +44,7 @@ export const codeBlockSharedStyles = () => css`
|
|
|
46
44
|
|
|
47
45
|
.${CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER} {
|
|
48
46
|
position: relative;
|
|
49
|
-
background-color: ${"var(--ds-surface-raised,
|
|
47
|
+
background-color: ${"var(--ds-surface-raised, #FFFFFF)"};
|
|
50
48
|
border-radius: ${"var(--ds-border-radius, 3px)"};
|
|
51
49
|
margin: ${blockNodesVerticalMargin} 0 0 0;
|
|
52
50
|
font-family: ${akEditorCodeFontFamily};
|
|
@@ -76,7 +74,7 @@ export const codeBlockSharedStyles = () => css`
|
|
|
76
74
|
}
|
|
77
75
|
|
|
78
76
|
.${CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER} {
|
|
79
|
-
background-color: ${
|
|
77
|
+
background-color: ${"var(--ds-background-neutral, #091E420F)"};
|
|
80
78
|
display: flex;
|
|
81
79
|
border-radius: ${"var(--ds-border-radius, 3px)"};
|
|
82
80
|
width: 100%;
|
|
@@ -120,7 +118,7 @@ export const codeBlockSharedStyles = () => css`
|
|
|
120
118
|
.${CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER} {
|
|
121
119
|
flex-shrink: 0;
|
|
122
120
|
text-align: right;
|
|
123
|
-
background-color: ${
|
|
121
|
+
background-color: ${"var(--ds-background-neutral, #091E420F)"};
|
|
124
122
|
padding: ${"var(--ds-space-100, 8px)"};
|
|
125
123
|
position: relative;
|
|
126
124
|
|
|
@@ -133,20 +131,20 @@ export const codeBlockSharedStyles = () => css`
|
|
|
133
131
|
display: inline-block;
|
|
134
132
|
content: counter(line);
|
|
135
133
|
counter-increment: line;
|
|
136
|
-
color: ${
|
|
137
|
-
font-size: ${relativeFontSizeToBase16(
|
|
134
|
+
color: ${"var(--ds-text-subtlest, #626F86)"};
|
|
135
|
+
font-size: ${relativeFontSizeToBase16(14)};
|
|
138
136
|
line-height: 1.5rem;
|
|
139
137
|
}
|
|
140
138
|
}
|
|
141
139
|
}
|
|
142
140
|
|
|
143
141
|
.${CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER_FG} {
|
|
144
|
-
background-color: ${
|
|
142
|
+
background-color: ${"var(--ds-background-neutral, #091E420F)"};
|
|
145
143
|
position: relative;
|
|
146
144
|
width: var(--lineNumberGutterWidth, 2rem);
|
|
147
145
|
padding: 0px ${"var(--ds-space-100, 8px)"};
|
|
148
146
|
flex-shrink: 0;
|
|
149
|
-
font-size: ${relativeFontSizeToBase16(
|
|
147
|
+
font-size: ${relativeFontSizeToBase16(14)};
|
|
150
148
|
box-sizing: content-box;
|
|
151
149
|
}
|
|
152
150
|
|
|
@@ -158,11 +156,11 @@ export const codeBlockSharedStyles = () => css`
|
|
|
158
156
|
flex-grow: 1;
|
|
159
157
|
tab-size: 4;
|
|
160
158
|
cursor: text;
|
|
161
|
-
color: ${
|
|
159
|
+
color: ${"var(--ds-text, #172B4D)"};
|
|
162
160
|
border-radius: ${"var(--ds-border-radius, 3px)"};
|
|
163
161
|
margin: ${"var(--ds-space-100, 8px)"};
|
|
164
162
|
white-space: pre;
|
|
165
|
-
font-size: ${relativeFontSizeToBase16(
|
|
163
|
+
font-size: ${relativeFontSizeToBase16(14)};
|
|
166
164
|
line-height: 1.5rem;
|
|
167
165
|
}
|
|
168
166
|
}
|
|
@@ -171,10 +169,10 @@ export const codeBlockSharedStyles = () => css`
|
|
|
171
169
|
code {
|
|
172
170
|
tab-size: 4;
|
|
173
171
|
cursor: text;
|
|
174
|
-
color: ${
|
|
172
|
+
color: ${"var(--ds-text, #172B4D)"};
|
|
175
173
|
border-radius: ${"var(--ds-border-radius, 3px)"};
|
|
176
174
|
margin: ${"var(--ds-space-100, 8px)"};
|
|
177
|
-
font-size: ${relativeFontSizeToBase16(
|
|
175
|
+
font-size: ${relativeFontSizeToBase16(14)};
|
|
178
176
|
line-height: 1.5rem;
|
|
179
177
|
}
|
|
180
178
|
}
|
|
@@ -185,7 +183,7 @@ export const codeBlockSharedStyles = () => css`
|
|
|
185
183
|
width: var(--lineNumberGutterWidth, 2rem);
|
|
186
184
|
left: 0;
|
|
187
185
|
position: absolute;
|
|
188
|
-
font-size: ${relativeFontSizeToBase16(
|
|
186
|
+
font-size: ${relativeFontSizeToBase16(14)};
|
|
189
187
|
padding: 0px ${"var(--ds-space-100, 8px)"};
|
|
190
188
|
line-height: 1.5rem;
|
|
191
189
|
text-align: right;
|
|
@@ -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
3
|
import { getCodeStyles } from '@atlaskit/code/inline';
|
|
4
|
-
import { N30A } from '@atlaskit/theme/colors';
|
|
5
4
|
export const codeMarkSharedStyles = () => {
|
|
6
5
|
return css({
|
|
7
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
8
7
|
'.code': {
|
|
9
|
-
'--ds--code--bg-color':
|
|
8
|
+
'--ds--code--bg-color': "var(--ds-background-neutral, #091E420F)",
|
|
10
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
11
10
|
...getCodeStyles()
|
|
12
11
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
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
3
|
import { akEditorGridLineZIndex } from '@atlaskit/editor-shared-styles';
|
|
4
|
-
import { B200, N30A } from '@atlaskit/theme/colors';
|
|
5
4
|
export const GRID_GUTTER = 12;
|
|
6
5
|
|
|
7
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
@@ -24,7 +23,7 @@ export const gridStyles = css({
|
|
|
24
23
|
},
|
|
25
24
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
26
25
|
'.gridLine': {
|
|
27
|
-
borderLeft: `1px solid ${
|
|
26
|
+
borderLeft: `1px solid ${"var(--ds-border, #091E4224)"}`,
|
|
28
27
|
display: 'inline-block',
|
|
29
28
|
boxSizing: 'border-box',
|
|
30
29
|
height: '100%',
|
|
@@ -35,6 +34,6 @@ export const gridStyles = css({
|
|
|
35
34
|
},
|
|
36
35
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
37
36
|
'.highlight': {
|
|
38
|
-
borderLeft: `1px solid ${
|
|
37
|
+
borderLeft: `1px solid ${"var(--ds-border-focused, #388BFF)"}`
|
|
39
38
|
}
|
|
40
39
|
});
|
|
@@ -1,49 +1,76 @@
|
|
|
1
1
|
/* eslint-disable @atlaskit/design-system/use-tokens-space */
|
|
2
|
+
/* eslint-disable @atlaskit/design-system/use-tokens-typography */
|
|
2
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
4
|
import { css } from '@emotion/react';
|
|
4
|
-
import { h100, h300, h400, h500, h600, h700 } from '@atlaskit/theme/typography';
|
|
5
|
-
|
|
6
5
|
// @see typography spreadsheet: https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
|
|
7
6
|
// text sizing prototype: http://proto/fabricrender/
|
|
8
7
|
export const headingsSharedStyles = () => css({
|
|
9
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
10
9
|
'& h1': {
|
|
11
10
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
12
|
-
|
|
11
|
+
fontSize: `${24 / 14}em`,
|
|
12
|
+
fontStyle: 'inherit',
|
|
13
|
+
lineHeight: 28 / 24,
|
|
14
|
+
color: "var(--ds-text, #172B4D)",
|
|
15
|
+
fontWeight: "var(--ds-font-weight-medium, 500)",
|
|
16
|
+
letterSpacing: `-0.01em`,
|
|
13
17
|
marginBottom: 0,
|
|
14
18
|
marginTop: '1.667em'
|
|
15
19
|
},
|
|
16
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
17
21
|
'& h2': {
|
|
18
22
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
19
|
-
|
|
23
|
+
fontSize: `${20 / 14}em`,
|
|
24
|
+
fontStyle: 'inherit',
|
|
25
|
+
lineHeight: 24 / 20,
|
|
26
|
+
color: "var(--ds-text, #172B4D)",
|
|
27
|
+
fontWeight: "var(--ds-font-weight-medium, 500)",
|
|
28
|
+
letterSpacing: `-0.008em`,
|
|
20
29
|
marginTop: '1.8em',
|
|
21
30
|
marginBottom: 0
|
|
22
31
|
},
|
|
23
32
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
24
33
|
'& h3': {
|
|
25
34
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
26
|
-
|
|
35
|
+
fontSize: `${16 / 14}em`,
|
|
36
|
+
fontStyle: 'inherit',
|
|
37
|
+
lineHeight: 20 / 16,
|
|
38
|
+
color: "var(--ds-text, #172B4D)",
|
|
39
|
+
fontWeight: "var(--ds-font-weight-semibold, 600)",
|
|
40
|
+
letterSpacing: `-0.006em`,
|
|
27
41
|
marginTop: '2em',
|
|
28
42
|
marginBottom: 0
|
|
29
43
|
},
|
|
30
44
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
31
45
|
'& h4': {
|
|
32
46
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
33
|
-
|
|
47
|
+
fontSize: `${14 / 14}em`,
|
|
48
|
+
fontStyle: 'inherit',
|
|
49
|
+
lineHeight: 16 / 14,
|
|
50
|
+
color: "var(--ds-text, #172B4D)",
|
|
51
|
+
fontWeight: "var(--ds-font-weight-semibold, 600)",
|
|
52
|
+
letterSpacing: `-0.003em`,
|
|
34
53
|
marginTop: '1.357em'
|
|
35
54
|
},
|
|
36
55
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
37
56
|
'& h5': {
|
|
38
57
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
39
|
-
|
|
58
|
+
fontSize: `${12 / 14}em`,
|
|
59
|
+
fontStyle: 'inherit',
|
|
60
|
+
lineHeight: 16 / 12,
|
|
61
|
+
color: "var(--ds-text, #172B4D)",
|
|
62
|
+
fontWeight: "var(--ds-font-weight-semibold, 600)",
|
|
40
63
|
marginTop: '1.667em',
|
|
41
64
|
textTransform: 'none'
|
|
42
65
|
},
|
|
43
66
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
44
67
|
'& h6': {
|
|
45
68
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
46
|
-
|
|
69
|
+
fontSize: `${11 / 14}em`,
|
|
70
|
+
fontStyle: 'inherit',
|
|
71
|
+
lineHeight: 16 / 11,
|
|
72
|
+
color: "var(--ds-text-subtlest, #626F86)",
|
|
73
|
+
fontWeight: "var(--ds-font-weight-bold, 700)",
|
|
47
74
|
marginTop: '1.455em',
|
|
48
75
|
textTransform: 'none'
|
|
49
76
|
}
|
|
@@ -6,15 +6,14 @@ import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
|
6
6
|
import { akEditorTableCellMinWidth, blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
|
|
7
7
|
import { akEditorCustomIconSize } from '@atlaskit/editor-shared-styles/consts';
|
|
8
8
|
import { emojiImage, emojiSprite } from '@atlaskit/emoji';
|
|
9
|
-
import { B100, B400, B50, B75, G200, G400, G50, G75, N0, N20, N60, P100, P400, P50, P75, R100, R400, R50, R75, T100, T50, T75, Y200, Y400, Y50, Y75 } from '@atlaskit/theme/colors';
|
|
10
9
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
11
10
|
const lightPanelColors = {
|
|
12
|
-
info:
|
|
13
|
-
note:
|
|
14
|
-
tip:
|
|
15
|
-
success:
|
|
16
|
-
warning:
|
|
17
|
-
error:
|
|
11
|
+
info: '#DEEBFF',
|
|
12
|
+
note: '#EAE6FF',
|
|
13
|
+
tip: '#E3FCEF',
|
|
14
|
+
success: '#E3FCEF',
|
|
15
|
+
warning: '#FFFAE6',
|
|
16
|
+
error: '#FFEBE6'
|
|
18
17
|
};
|
|
19
18
|
export const darkPanelColors = {
|
|
20
19
|
// standard panels
|
|
@@ -79,30 +78,18 @@ export const darkPanelColors = {
|
|
|
79
78
|
TextColor: '#D9DDE3'
|
|
80
79
|
};
|
|
81
80
|
const lightIconColor = {
|
|
82
|
-
info:
|
|
83
|
-
note:
|
|
84
|
-
tip:
|
|
85
|
-
success:
|
|
86
|
-
warning:
|
|
87
|
-
error:
|
|
81
|
+
info: "var(--ds-icon-information, #1D7AFC)",
|
|
82
|
+
note: "var(--ds-icon-discovery, #8270DB)",
|
|
83
|
+
tip: "var(--ds-icon-success, #22A06B)",
|
|
84
|
+
success: "var(--ds-icon-success, #22A06B)",
|
|
85
|
+
warning: "var(--ds-icon-warning, #E56910)",
|
|
86
|
+
error: "var(--ds-icon-danger, #C9372C)"
|
|
88
87
|
};
|
|
89
88
|
|
|
90
89
|
// New custom icons are a little smaller than predefined icons.
|
|
91
90
|
// To fix alignment issues with custom icons, vertical alignment is updated.
|
|
92
91
|
const panelEmojiSpriteVerticalAlignment = -(8 * 3 - akEditorCustomIconSize) / 2;
|
|
93
92
|
const panelEmojiImageVerticalAlignment = panelEmojiSpriteVerticalAlignment - 1;
|
|
94
|
-
|
|
95
|
-
// TODO: https://product-fabric.atlassian.net/browse/DSP-4066
|
|
96
|
-
const panelDarkModeColors = [[B50, darkPanelColors.B1200S], [B75, darkPanelColors.B900], [B100, darkPanelColors.B800S], [N0, darkPanelColors.LightGray], [N20, darkPanelColors.Gray], [N60, darkPanelColors.DarkGray], [T50, darkPanelColors.T1200S], [T75, darkPanelColors.T900], [T100, darkPanelColors.T900S], [G50, darkPanelColors.G1200S], [G75, darkPanelColors.G900], [G200, darkPanelColors.G900S], [Y50, darkPanelColors.Y1200S], [Y75, darkPanelColors.Y900], [Y200, darkPanelColors.Y800S], [R50, darkPanelColors.R1200S], [R75, darkPanelColors.R900], [R100, darkPanelColors.R800S], [P50, darkPanelColors.P1200S], [P75, darkPanelColors.P900], [P100, darkPanelColors.P800S]];
|
|
97
|
-
|
|
98
|
-
// used for custom panels
|
|
99
|
-
export const getPanelDarkColor = panelColor => {
|
|
100
|
-
const colorObject = panelDarkModeColors.find(color => color[0] === panelColor || color[1] === panelColor);
|
|
101
|
-
return colorObject ? colorObject[1] : darkPanelColors.B1200S;
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
// used for custom panels
|
|
105
|
-
export const getPanelBackgroundDarkModeColors = panelDarkModeColors.map(([colorName, colorValue]) => getPanelDarkModeCSS(colorName, colorValue)).join('\n');
|
|
106
93
|
export function getPanelDarkModeCSS(colorName, colorValue) {
|
|
107
94
|
return `
|
|
108
95
|
&[data-panel-color="${colorName}"] {
|
|
@@ -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 } from '@atlaskit/theme/colors';
|
|
4
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
4
|
export const buttonGroupStyle = css({
|
|
6
5
|
display: 'inline-flex',
|
|
@@ -14,7 +13,7 @@ export const buttonGroupStyle = css({
|
|
|
14
13
|
// If you make change here, change in above file as well.
|
|
15
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
16
15
|
export const separatorStyles = css({
|
|
17
|
-
background:
|
|
16
|
+
background: "var(--ds-border, #091E4224)",
|
|
18
17
|
width: '1px',
|
|
19
18
|
height: '24px',
|
|
20
19
|
display: 'inline-block',
|
|
@@ -1,7 +1,6 @@
|
|
|
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
3
|
import { akEditorDeleteIconColor } from '@atlaskit/editor-shared-styles';
|
|
4
|
-
import { B200, B50, N60 } from '@atlaskit/theme/colors';
|
|
5
4
|
/*
|
|
6
5
|
Styles in this file are based on
|
|
7
6
|
packages/editor/editor-core/src/plugins/media/styles.ts
|
|
@@ -34,7 +33,7 @@ export const resizerStyles = css`
|
|
|
34
33
|
|
|
35
34
|
&.is-resizing {
|
|
36
35
|
& .${resizerHandleThumbClassName} {
|
|
37
|
-
background: ${
|
|
36
|
+
background: ${"var(--ds-border-focused, #388BFF)"};
|
|
38
37
|
}
|
|
39
38
|
}
|
|
40
39
|
|
|
@@ -115,7 +114,7 @@ export const resizerStyles = css`
|
|
|
115
114
|
|
|
116
115
|
&:hover {
|
|
117
116
|
& .${resizerHandleThumbClassName} {
|
|
118
|
-
background: ${
|
|
117
|
+
background: ${"var(--ds-border-focused, #388BFF)"};
|
|
119
118
|
}
|
|
120
119
|
|
|
121
120
|
& .${resizerHandleTrackClassName} {
|
|
@@ -138,7 +137,7 @@ export const resizerStyles = css`
|
|
|
138
137
|
z-index: 2;
|
|
139
138
|
outline: none;
|
|
140
139
|
min-height: 24px;
|
|
141
|
-
background: ${
|
|
140
|
+
background: ${"var(--ds-border, #091E4224)"};
|
|
142
141
|
|
|
143
142
|
&:hover {
|
|
144
143
|
cursor: col-resize;
|
|
@@ -178,11 +177,11 @@ export const resizerStyles = css`
|
|
|
178
177
|
}
|
|
179
178
|
|
|
180
179
|
&.shadow {
|
|
181
|
-
background: ${
|
|
180
|
+
background: ${"var(--ds-background-selected, #E9F2FF)"};
|
|
182
181
|
}
|
|
183
182
|
|
|
184
183
|
&.full-height {
|
|
185
|
-
background: ${
|
|
184
|
+
background: ${"var(--ds-background-selected, #E9F2FF)"};
|
|
186
185
|
height: 100%;
|
|
187
186
|
min-height: 36px;
|
|
188
187
|
}
|
|
@@ -190,7 +189,7 @@ export const resizerStyles = css`
|
|
|
190
189
|
|
|
191
190
|
.${akEditorSelectedNodeClassName} {
|
|
192
191
|
& .${resizerHandleThumbClassName} {
|
|
193
|
-
background: ${
|
|
192
|
+
background: ${"var(--ds-border-focused, #388BFF)"};
|
|
194
193
|
}
|
|
195
194
|
}
|
|
196
195
|
|
|
@@ -1,13 +1,12 @@
|
|
|
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
3
|
import { akEditorLineHeight } from '@atlaskit/editor-shared-styles';
|
|
4
|
-
import { N30A } from '@atlaskit/theme/colors';
|
|
5
4
|
// @see typography spreadsheet: https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
|
|
6
5
|
export const ruleSharedStyles = () => css({
|
|
7
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
8
7
|
'& hr': {
|
|
9
8
|
border: 'none',
|
|
10
|
-
backgroundColor:
|
|
9
|
+
backgroundColor: "var(--ds-border, #091E4224)",
|
|
11
10
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
12
11
|
margin: `${akEditorLineHeight}em 0`,
|
|
13
12
|
height: '2px',
|
|
@@ -3,7 +3,6 @@
|
|
|
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
5
|
import { akEditorShadowZIndex } from '@atlaskit/editor-shared-styles';
|
|
6
|
-
import { N40A } from '@atlaskit/theme/colors';
|
|
7
6
|
import { shadowClassNames } from '../../ui/OverflowShadow';
|
|
8
7
|
import { shadowObserverClassNames } from '../../ui/OverflowShadow/shadowObserver';
|
|
9
8
|
const shadowWidth = 8;
|
|
@@ -40,14 +39,14 @@ const shadowSharedStyle = css({
|
|
|
40
39
|
},
|
|
41
40
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
42
41
|
[`& .${shadowClassNames.LEFT_SHADOW}::before`]: {
|
|
43
|
-
background: `linear-gradient( to left, transparent 0, ${
|
|
42
|
+
background: `linear-gradient( to left, transparent 0, ${"var(--ds-shadow-overflow-spread, #091e4229)"} 140% ), linear-gradient( to right, ${"var(--ds-shadow-overflow-perimeter, transparent)"} 0px, transparent 1px )`,
|
|
44
43
|
top: '0px',
|
|
45
44
|
left: 0,
|
|
46
45
|
display: 'block'
|
|
47
46
|
},
|
|
48
47
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
49
48
|
[`& .${shadowClassNames.RIGHT_SHADOW}::after`]: {
|
|
50
|
-
background: `linear-gradient( to right, transparent 0, ${
|
|
49
|
+
background: `linear-gradient( to right, transparent 0, ${"var(--ds-shadow-overflow-spread, #091e4229)"} 140% ), linear-gradient( to left, ${"var(--ds-shadow-overflow-perimeter, transparent)"} 0px, transparent 1px )`,
|
|
51
50
|
right: '0px',
|
|
52
51
|
top: '0px',
|
|
53
52
|
display: 'block'
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
import { akEditorDeleteBackground, akEditorDeleteBorder, akEditorSelectedNodeClassName, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
|
|
4
4
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
5
|
-
import { N0, N40 } from '@atlaskit/theme/colors';
|
|
6
|
-
import { N60A, Y300, Y75 } from '@atlaskit/theme/colors';
|
|
7
5
|
import { SmartCardSharedCssClassName } from './smart-card';
|
|
8
6
|
export const DATASOURCE_INNER_CONTAINER_CLASSNAME = 'datasourceView-content-inner-wrap';
|
|
9
7
|
export const FLOATING_TOOLBAR_LINKPICKER_CLASSNAME = 'card-floating-toolbar--link-picker';
|
|
@@ -15,9 +13,9 @@ export const smartCardStyles = () => css`
|
|
|
15
13
|
vertical-align: top;
|
|
16
14
|
word-break: break-all;
|
|
17
15
|
${fg('editor_inline_comments_on_inline_nodes') ? `.card-with-comment {
|
|
18
|
-
background: ${
|
|
19
|
-
border-bottom: 2px solid ${
|
|
20
|
-
box-shadow: ${
|
|
16
|
+
background: ${"var(--ds-background-accent-yellow-subtler, #F8E6A0)"};
|
|
17
|
+
border-bottom: 2px solid ${"var(--ds-border-accent-yellow, #B38600)"};
|
|
18
|
+
box-shadow: ${"var(--ds-shadow-overlay, 0px 8px 12px #091E4226, 0px 0px 1px #091E424f)"};
|
|
21
19
|
}` : ''}
|
|
22
20
|
.card {
|
|
23
21
|
padding-left: ${"var(--ds-space-025, 2px)"};
|
|
@@ -83,9 +81,9 @@ fg('linking_platform_smart_links_in_live_pages') ? 'pointer' : 'auto'};
|
|
|
83
81
|
|
|
84
82
|
.${DATASOURCE_INNER_CONTAINER_CLASSNAME} {
|
|
85
83
|
cursor: pointer;
|
|
86
|
-
background-color: ${
|
|
84
|
+
background-color: ${"var(--ds-background-neutral-subtle, #00000000)"};
|
|
87
85
|
border-radius: ${"var(--ds-border-radius-200, 8px)"};
|
|
88
|
-
border: 1px solid ${
|
|
86
|
+
border: 1px solid ${"var(--ds-border, #091E4224)"};
|
|
89
87
|
}
|
|
90
88
|
|
|
91
89
|
&.${akEditorSelectedNodeClassName} {
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
import { css, jsx } from '@emotion/react';
|
|
7
7
|
import { injectIntl } from 'react-intl-next';
|
|
8
8
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
9
|
-
import { N20, N30 } from '@atlaskit/theme/colors';
|
|
10
9
|
import Tooltip from '@atlaskit/tooltip';
|
|
11
10
|
import { SortOrder } from '../types';
|
|
12
11
|
import { SORTABLE_COLUMN_ICON_CLASSNAME } from './consts';
|
|
@@ -33,13 +32,13 @@ const buttonStyles = css`
|
|
|
33
32
|
top: 0;
|
|
34
33
|
border: 2px solid ${"var(--ds-border, #fff)"};
|
|
35
34
|
border-radius: ${"var(--ds-border-radius-100, 4px)"};
|
|
36
|
-
background-color: ${
|
|
35
|
+
background-color: ${"var(--ds-surface-overlay, #FFFFFF)"};
|
|
37
36
|
justify-content: center;
|
|
38
37
|
align-items: center;
|
|
39
38
|
cursor: pointer;
|
|
40
39
|
|
|
41
40
|
&:hover {
|
|
42
|
-
background-color: ${
|
|
41
|
+
background-color: ${"var(--ds-surface-overlay-hovered, #F1F2F4)"};
|
|
43
42
|
}
|
|
44
43
|
|
|
45
44
|
&:active {
|
|
@@ -3,7 +3,6 @@ import React, { useMemo } from 'react';
|
|
|
3
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
4
|
import { ThemeProvider } from '@emotion/react';
|
|
5
5
|
import { akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
6
|
-
import { fontSize } from '@atlaskit/theme/constants';
|
|
7
6
|
import { WidthConsumer } from '../WidthProvider';
|
|
8
7
|
export function mapBreakpointToLayoutMaxWidth(breakpoint) {
|
|
9
8
|
switch (breakpoint) {
|
|
@@ -19,7 +18,7 @@ export function BaseThemeWrapper({
|
|
|
19
18
|
children
|
|
20
19
|
}) {
|
|
21
20
|
const memoizedTheme = useMemo(() => ({
|
|
22
|
-
baseFontSize: baseFontSize ||
|
|
21
|
+
baseFontSize: baseFontSize || 14,
|
|
23
22
|
layoutMaxWidth: akEditorDefaultLayoutWidth
|
|
24
23
|
}), [baseFontSize]);
|
|
25
24
|
return /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
@@ -8,16 +8,15 @@ import React 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 { injectIntl } from 'react-intl-next';
|
|
11
|
-
import { N200, N400 } from '@atlaskit/theme/colors';
|
|
12
11
|
import { messages } from './messages';
|
|
13
12
|
const captionWrapperStyle = css({
|
|
14
13
|
marginTop: "var(--ds-space-100, 8px)",
|
|
15
14
|
textAlign: 'center',
|
|
16
15
|
position: 'relative',
|
|
17
|
-
color:
|
|
16
|
+
color: "var(--ds-text-subtle, #44546F)"
|
|
18
17
|
});
|
|
19
18
|
const placeholderStyle = css({
|
|
20
|
-
color:
|
|
19
|
+
color: "var(--ds-text-subtlest, #626F86)",
|
|
21
20
|
position: 'absolute',
|
|
22
21
|
top: 0,
|
|
23
22
|
width: '100%'
|
|
@@ -11,10 +11,9 @@ import { css, jsx } from '@emotion/react';
|
|
|
11
11
|
import createAndFireEvent from '@atlaskit/analytics-next/createAndFireEvents';
|
|
12
12
|
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
13
13
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
14
|
-
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
15
14
|
import Layer from '../Layer';
|
|
16
15
|
const packageName = "@atlaskit/editor-common";
|
|
17
|
-
const packageVersion = "
|
|
16
|
+
const packageVersion = "93.0.0";
|
|
18
17
|
const halfFocusRing = 1;
|
|
19
18
|
const dropOffset = '0, 8';
|
|
20
19
|
class DropList extends Component {
|
|
@@ -39,10 +38,10 @@ class DropList extends Component {
|
|
|
39
38
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
40
39
|
_defineProperty(this, "menuWrapper", () => {
|
|
41
40
|
return css({
|
|
42
|
-
color:
|
|
43
|
-
backgroundColor:
|
|
41
|
+
color: "var(--ds-text, #172B4D)",
|
|
42
|
+
backgroundColor: "var(--ds-surface-overlay, #FFFFFF)",
|
|
44
43
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
45
|
-
boxShadow:
|
|
44
|
+
boxShadow: "var(--ds-shadow-overlay, 0px 8px 12px #091E4226, 0px 0px 1px #091E424f)",
|
|
46
45
|
boxSizing: 'border-box',
|
|
47
46
|
overflow: 'auto',
|
|
48
47
|
padding: `${"var(--ds-space-050, 4px)"} 0`,
|