@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
|
@@ -10,7 +10,6 @@ import React, { forwardRef } from 'react';
|
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
11
|
import { defineMessages } from 'react-intl-next';
|
|
12
12
|
import { akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles';
|
|
13
|
-
import { N30A, N90 } from '@atlaskit/theme/colors';
|
|
14
13
|
export const messages = defineMessages({
|
|
15
14
|
collapseNode: {
|
|
16
15
|
id: 'fabric.editor.collapseNode',
|
|
@@ -44,12 +43,12 @@ export const ExpandIconWrapper = ({
|
|
|
44
43
|
const expandIconWrapperStyle = () => css({
|
|
45
44
|
cursor: 'pointer',
|
|
46
45
|
display: 'flex',
|
|
47
|
-
color:
|
|
46
|
+
color: "var(--ds-icon, #44546F)",
|
|
48
47
|
borderRadius: "var(--ds-border-radius-100, 4px)",
|
|
49
48
|
width: '24px',
|
|
50
49
|
height: '24px',
|
|
51
50
|
'&:hover': {
|
|
52
|
-
background:
|
|
51
|
+
background: "var(--ds-background-neutral-subtle-hovered, #091E420F)"
|
|
53
52
|
},
|
|
54
53
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
55
54
|
svg: {
|
|
@@ -1,15 +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, akEditorSwoopCubicBezier, akLayoutGutterOffset, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
4
|
-
import { B300, N200, N200A, N300A, N40A, N50A } from '@atlaskit/theme/colors';
|
|
5
|
-
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
6
|
-
import { fontSize } from '@atlaskit/theme/constants';
|
|
7
4
|
const BORDER_RADIUS = "var(--ds-border-radius-100, 4px)";
|
|
8
5
|
const EXPAND_COLLAPSED_BACKGROUND = "var(--ds-background-neutral-subtle, transparent)";
|
|
9
6
|
const EXPAND_SELECTED_BACKGROUND = "var(--ds-surface, rgba(255, 255, 255, 0.6))";
|
|
10
|
-
const EXPAND_FOCUSED_BORDER_COLOR =
|
|
7
|
+
const EXPAND_FOCUSED_BORDER_COLOR = "var(--ds-border-focused, #388BFF)";
|
|
11
8
|
const EXPAND_COLLAPSED_BORDER_COLOR = 'transparent';
|
|
12
|
-
const EXPAND_EXPANDED_BORDER_COLOR =
|
|
9
|
+
const EXPAND_EXPANDED_BORDER_COLOR = "var(--ds-border, #091E4224)";
|
|
13
10
|
const containerStyles = styleProps => {
|
|
14
11
|
const {
|
|
15
12
|
expanded,
|
|
@@ -35,13 +32,6 @@ const containerStyles = styleProps => {
|
|
|
35
32
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
36
33
|
transition: `background 0.3s ${akEditorSwoopCubicBezier}, border-color 0.3s ${akEditorSwoopCubicBezier}`,
|
|
37
34
|
padding: "var(--ds-space-100, 8px)",
|
|
38
|
-
'&:hover': {
|
|
39
|
-
// TODO: Remove the border styles below once design tokens have been enabled and fallbacks are no longer triggered.
|
|
40
|
-
// This is because the default state already uses the same token and, as such, the hover style won't change anything.
|
|
41
|
-
// https://product-fabric.atlassian.net/browse/DSP-4152
|
|
42
|
-
border: `1px solid ${`var(--ds-border, ${N50A})`}`,
|
|
43
|
-
background: EXPAND_SELECTED_BACKGROUND
|
|
44
|
-
},
|
|
45
35
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
46
36
|
'td > :not(style):first-child, td > style:first-child + *': {
|
|
47
37
|
marginTop: 0
|
|
@@ -82,11 +72,11 @@ const titleInputStyles = () => css({
|
|
|
82
72
|
outline: 'none',
|
|
83
73
|
border: 'none',
|
|
84
74
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
85
|
-
fontSize: relativeFontSizeToBase16(
|
|
75
|
+
fontSize: relativeFontSizeToBase16(14),
|
|
86
76
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
87
77
|
lineHeight: akEditorLineHeight,
|
|
88
78
|
fontWeight: 'normal',
|
|
89
|
-
color:
|
|
79
|
+
color: "var(--ds-text-subtlest, #626F86)",
|
|
90
80
|
background: 'transparent',
|
|
91
81
|
display: 'flex',
|
|
92
82
|
flex: 1,
|
|
@@ -94,7 +84,7 @@ const titleInputStyles = () => css({
|
|
|
94
84
|
width: '100%',
|
|
95
85
|
'&::placeholder': {
|
|
96
86
|
opacity: 1,
|
|
97
|
-
color:
|
|
87
|
+
color: "var(--ds-text-subtlest, #626F86)"
|
|
98
88
|
}
|
|
99
89
|
});
|
|
100
90
|
const titleContainerStyles = () => css({
|
|
@@ -104,9 +94,9 @@ const titleContainerStyles = () => css({
|
|
|
104
94
|
background: 'none',
|
|
105
95
|
border: 'none',
|
|
106
96
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
107
|
-
fontSize: relativeFontSizeToBase16(
|
|
97
|
+
fontSize: relativeFontSizeToBase16(14),
|
|
108
98
|
width: '100%',
|
|
109
|
-
color:
|
|
99
|
+
color: "var(--ds-text-subtle, #44546F)",
|
|
110
100
|
overflow: 'hidden',
|
|
111
101
|
cursor: 'pointer',
|
|
112
102
|
'&:focus': {
|
|
@@ -4,9 +4,8 @@
|
|
|
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 { N30 } from '@atlaskit/theme/colors';
|
|
8
7
|
const separator = css({
|
|
9
|
-
background:
|
|
8
|
+
background: "var(--ds-border, #091E4224)",
|
|
10
9
|
width: '1px',
|
|
11
10
|
height: '20px',
|
|
12
11
|
margin: `0 ${"var(--ds-space-050, 4px)"}`,
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { hexToRgba } from '@atlaskit/adf-schema';
|
|
2
|
-
import { B75, DN400, N30A, N400, R400 } from '@atlaskit/theme/colors';
|
|
3
1
|
export const iconOnlySpacing = {
|
|
4
2
|
'&&': {
|
|
5
3
|
padding: '0px',
|
|
@@ -33,28 +31,28 @@ const background = {
|
|
|
33
31
|
dark: 'inherit'
|
|
34
32
|
},
|
|
35
33
|
hover: {
|
|
36
|
-
light:
|
|
37
|
-
dark:
|
|
34
|
+
light: "var(--ds-background-neutral-subtle-hovered, #091E420F)",
|
|
35
|
+
dark: "var(--ds-background-neutral-subtle-hovered, #091E420F)"
|
|
38
36
|
},
|
|
39
37
|
active: {
|
|
40
|
-
light:
|
|
41
|
-
dark:
|
|
38
|
+
light: "var(--ds-background-neutral-pressed, #091E424F)",
|
|
39
|
+
dark: "var(--ds-background-neutral-pressed, #091E424F)"
|
|
42
40
|
}
|
|
43
41
|
}
|
|
44
42
|
};
|
|
45
43
|
const color = {
|
|
46
44
|
danger: {
|
|
47
45
|
default: {
|
|
48
|
-
light:
|
|
49
|
-
dark:
|
|
46
|
+
light: "var(--ds-icon, #44546F)",
|
|
47
|
+
dark: "var(--ds-icon, #44546F)"
|
|
50
48
|
},
|
|
51
49
|
hover: {
|
|
52
|
-
light:
|
|
53
|
-
dark:
|
|
50
|
+
light: "var(--ds-icon-danger, #C9372C)",
|
|
51
|
+
dark: "var(--ds-icon-danger, #C9372C)"
|
|
54
52
|
},
|
|
55
53
|
active: {
|
|
56
|
-
light:
|
|
57
|
-
dark:
|
|
54
|
+
light: "var(--ds-icon-danger, #C9372C)",
|
|
55
|
+
dark: "var(--ds-icon-danger, #C9372C)"
|
|
58
56
|
}
|
|
59
57
|
}
|
|
60
58
|
};
|
|
@@ -7,21 +7,23 @@
|
|
|
7
7
|
import { css, jsx } from '@emotion/react';
|
|
8
8
|
import SuccessIcon from '@atlaskit/icon/glyph/editor/success';
|
|
9
9
|
import ErrorIcon from '@atlaskit/icon/glyph/error';
|
|
10
|
-
import { G400, N200, R400 } from '@atlaskit/theme/colors';
|
|
11
|
-
import { h200 } from '@atlaskit/theme/typography';
|
|
12
10
|
const errorColor = css({
|
|
13
|
-
color:
|
|
11
|
+
color: "var(--ds-text-danger, #AE2E24)"
|
|
14
12
|
});
|
|
15
13
|
const validColor = css({
|
|
16
|
-
color:
|
|
14
|
+
color: "var(--ds-text-success, #216E4E)"
|
|
17
15
|
});
|
|
18
16
|
|
|
19
17
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
20
18
|
const messageStyle = () =>
|
|
21
19
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
22
|
-
css(
|
|
20
|
+
css({
|
|
21
|
+
// eslint-disable-next-line @atlaskit/design-system/use-tokens-typography
|
|
22
|
+
fontSize: `${12 / 14}em`,
|
|
23
|
+
fontStyle: 'inherit',
|
|
24
|
+
lineHeight: 16 / 12,
|
|
23
25
|
fontWeight: 'normal',
|
|
24
|
-
color:
|
|
26
|
+
color: "var(--ds-text-subtlest, #626F86)",
|
|
25
27
|
marginTop: "var(--ds-space-050, 4px)",
|
|
26
28
|
display: 'flex',
|
|
27
29
|
justifyContent: 'baseline'
|
|
@@ -1,17 +1,16 @@
|
|
|
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 { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
4
|
-
import { B100, N100, N30, N400 } from '@atlaskit/theme/colors';
|
|
5
4
|
// Normal .className gets overridden by input[type=text] hence this hack to produce input.className
|
|
6
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
7
6
|
export const panelTextInput = css({
|
|
8
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
9
8
|
'input&': {
|
|
10
9
|
background: 'transparent',
|
|
11
|
-
border: `2px solid ${
|
|
10
|
+
border: `2px solid ${"var(--ds-border, #091E4224)"}`,
|
|
12
11
|
borderRadius: 0,
|
|
13
12
|
boxSizing: 'content-box',
|
|
14
|
-
color:
|
|
13
|
+
color: "var(--ds-text-subtle, #44546F)",
|
|
15
14
|
flexGrow: 1,
|
|
16
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
17
16
|
fontSize: relativeFontSizeToBase16(13),
|
|
@@ -25,10 +24,10 @@ export const panelTextInput = css({
|
|
|
25
24
|
},
|
|
26
25
|
'&:focus': {
|
|
27
26
|
outline: 'none',
|
|
28
|
-
borderColor:
|
|
27
|
+
borderColor: "var(--ds-border-focused, #388BFF)"
|
|
29
28
|
},
|
|
30
29
|
'&::placeholder': {
|
|
31
|
-
color:
|
|
30
|
+
color: "var(--ds-text-subtlest, #626F86)"
|
|
32
31
|
}
|
|
33
32
|
}
|
|
34
33
|
});
|
|
@@ -9,23 +9,21 @@ import { css, jsx } from '@emotion/react';
|
|
|
9
9
|
import { injectIntl } from 'react-intl-next';
|
|
10
10
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
11
11
|
import QuestionsIcon from '@atlaskit/icon/glyph/question-circle';
|
|
12
|
-
import { N30, N50 } from '@atlaskit/theme/colors';
|
|
13
|
-
import { borderRadius, fontSize } from '@atlaskit/theme/constants';
|
|
14
12
|
import Tooltip from '@atlaskit/tooltip';
|
|
15
13
|
import { ACTION_SUBJECT_ID } from '../../analytics';
|
|
16
14
|
import { unsupportedContentMessages } from '../../messages/unsupportedContent';
|
|
17
15
|
import { trackUnsupportedContentTooltipDisplayedFor } from '../../utils/track-unsupported-content';
|
|
18
16
|
import { getUnsupportedContent } from '../unsupported-content-helper';
|
|
19
17
|
const blockNodeStyle = css({
|
|
20
|
-
background:
|
|
21
|
-
border: `1px dashed ${
|
|
18
|
+
background: "var(--ds-background-disabled, #091E4208)",
|
|
19
|
+
border: `1px dashed ${"var(--ds-border-disabled, #091E420F)"}`,
|
|
22
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
23
|
-
borderRadius:
|
|
21
|
+
borderRadius: "var(--ds-border-radius, 3px)",
|
|
24
22
|
boxSizing: 'border-box',
|
|
25
23
|
cursor: 'default',
|
|
26
24
|
display: 'flex',
|
|
27
25
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
28
|
-
fontSize: relativeFontSizeToBase16(
|
|
26
|
+
fontSize: relativeFontSizeToBase16(14),
|
|
29
27
|
margin: `${"var(--ds-space-100, 8px)"} 0`,
|
|
30
28
|
minHeight: '24px',
|
|
31
29
|
padding: "var(--ds-space-150, 12px)",
|
|
@@ -9,8 +9,6 @@ import { css, jsx } from '@emotion/react';
|
|
|
9
9
|
import { injectIntl } from 'react-intl-next';
|
|
10
10
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
11
11
|
import QuestionsIcon from '@atlaskit/icon/glyph/question-circle';
|
|
12
|
-
import { N30, N50 } from '@atlaskit/theme/colors';
|
|
13
|
-
import { borderRadius, fontSize } from '@atlaskit/theme/constants';
|
|
14
12
|
import Tooltip from '@atlaskit/tooltip';
|
|
15
13
|
import { ACTION_SUBJECT_ID } from '../../analytics';
|
|
16
14
|
import { unsupportedContentMessages } from '../../messages/unsupportedContent';
|
|
@@ -18,15 +16,15 @@ import { trackUnsupportedContentTooltipDisplayedFor } from '../../utils/track-un
|
|
|
18
16
|
import { getUnsupportedContent } from '../unsupported-content-helper';
|
|
19
17
|
const inlineNodeStyle = css({
|
|
20
18
|
alignItems: 'center',
|
|
21
|
-
background:
|
|
22
|
-
border: `1px dashed ${
|
|
19
|
+
background: "var(--ds-background-disabled, #091E4208)",
|
|
20
|
+
border: `1px dashed ${"var(--ds-border-disabled, #091E420F)"}`,
|
|
23
21
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
24
|
-
borderRadius:
|
|
22
|
+
borderRadius: "var(--ds-border-radius, 3px)",
|
|
25
23
|
boxSizing: 'border-box',
|
|
26
24
|
cursor: 'default',
|
|
27
25
|
display: 'inline-flex',
|
|
28
26
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
29
|
-
fontSize: relativeFontSizeToBase16(
|
|
27
|
+
fontSize: relativeFontSizeToBase16(14),
|
|
30
28
|
margin: `0 ${"var(--ds-space-025, 2px)"}`,
|
|
31
29
|
minHeight: '24px',
|
|
32
30
|
padding: `0 ${"var(--ds-space-100, 8px)"}`,
|
|
@@ -8,10 +8,8 @@ import React, { Fragment, useContext, useMemo, useRef, useState } from 'react';
|
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import memoizeOne from 'memoize-one';
|
|
10
10
|
import rafSchedule from 'raf-schd';
|
|
11
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
12
11
|
import { WidthObserver } from '@atlaskit/width-detector';
|
|
13
12
|
import { isSSR } from '../../core-utils/is-ssr';
|
|
14
|
-
import { isSsrButNoBreakoutScriptObserved } from './isSsrButNoBreakoutScriptObserved';
|
|
15
13
|
const styles = css({
|
|
16
14
|
position: 'relative',
|
|
17
15
|
width: '100%'
|
|
@@ -59,10 +57,7 @@ export const WidthProvider = ({
|
|
|
59
57
|
shouldCheckExistingValue,
|
|
60
58
|
children
|
|
61
59
|
}) => {
|
|
62
|
-
const shouldFixTableResizing = Boolean(fg('platform-fix-table-ssr-resizing'));
|
|
63
|
-
const containerRef = useRef(null);
|
|
64
60
|
const existingContextValue = useContext(WidthContext);
|
|
65
|
-
const [isInitialWidthUpdated, setIsInitialWidthUpdated] = useState(false);
|
|
66
61
|
const [width, setWidth] = useState(getBodyWidth);
|
|
67
62
|
const widthRef = useRef(width);
|
|
68
63
|
const isMountedRef = useRef(true);
|
|
@@ -85,41 +80,15 @@ export const WidthProvider = ({
|
|
|
85
80
|
const skipWidthDetection = shouldCheckExistingValue && existingContextValue.width > 0;
|
|
86
81
|
React.useLayoutEffect(() => {
|
|
87
82
|
isMountedRef.current = true;
|
|
88
|
-
if (shouldFixTableResizing && !isInitialWidthUpdated) {
|
|
89
|
-
// useLayoutEffect is not run in SSR mode
|
|
90
|
-
// The visibility change for SSR is done in packages/editor/renderer/src/ui/Renderer/breakout-ssr.tsx
|
|
91
|
-
setIsInitialWidthUpdated(true);
|
|
92
|
-
if (containerRef.current) {
|
|
93
|
-
setWidth(containerRef.current.offsetWidth);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
83
|
return () => {
|
|
97
84
|
isMountedRef.current = false;
|
|
98
85
|
};
|
|
99
|
-
}, [
|
|
86
|
+
}, []);
|
|
100
87
|
return jsx("div", {
|
|
101
88
|
css: styles
|
|
102
89
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
103
90
|
,
|
|
104
|
-
className: className
|
|
105
|
-
ref: containerRef
|
|
106
|
-
// Using style not css prop because we need to also reset these style in SSR
|
|
107
|
-
// It is done in packages/editor/renderer/src/ui/Renderer/breakout-ssr.tsx
|
|
108
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Intended
|
|
109
|
-
,
|
|
110
|
-
style:
|
|
111
|
-
// The hidden visibility is relying on the observer in breakout-ssr.tsx to clear.
|
|
112
|
-
// Do not hide if the observer is not observed. This happens in editor SSR.
|
|
113
|
-
shouldFixTableResizing && !isSsrButNoBreakoutScriptObserved() && !isInitialWidthUpdated ? {
|
|
114
|
-
// Width is initialized with body width but in Confluence this is too wide as side nav takes some space.
|
|
115
|
-
// Putting the div into hidden until we can get the correct width.
|
|
116
|
-
// Only setting the visibility so children still takes space which will make scrollbar to correct appear.
|
|
117
|
-
// Scrollbar has width too it needs to be taken into account otherwise table is going to shrink after appeared.
|
|
118
|
-
visibility: 'hidden',
|
|
119
|
-
// Because the body width is too wide, the horizontal scrollbar gonna shown
|
|
120
|
-
// Temporary hide it until we get the correct width
|
|
121
|
-
overflowX: 'hidden'
|
|
122
|
-
} : {}
|
|
91
|
+
className: className
|
|
123
92
|
}, !skipWidthDetection && jsx(Fragment, null, jsx(WidthObserver, {
|
|
124
93
|
setWidth: updateWidth,
|
|
125
94
|
offscreen: true
|
|
@@ -7,7 +7,6 @@ import React from 'react';
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { jsx } from '@emotion/react';
|
|
9
9
|
import EditorDoneIcon from '@atlaskit/icon/glyph/editor/done';
|
|
10
|
-
import { N0 } from '@atlaskit/theme/colors';
|
|
11
10
|
import Tooltip from '@atlaskit/tooltip';
|
|
12
11
|
import { buttonStyle, buttonWrapperStyle } from './styles';
|
|
13
12
|
const Color = props => {
|
|
@@ -18,9 +17,7 @@ const Color = props => {
|
|
|
18
17
|
label,
|
|
19
18
|
isSelected,
|
|
20
19
|
borderColor,
|
|
21
|
-
|
|
22
|
-
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
23
|
-
checkMarkColor = N0,
|
|
20
|
+
checkMarkColor = '#FFFFFF',
|
|
24
21
|
/**
|
|
25
22
|
* When hexToPaletteColor prop is set,
|
|
26
23
|
* it will be used to get background color style based on
|
|
@@ -1,16 +1,15 @@
|
|
|
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 { N0, N50, N900 } from '@atlaskit/theme/colors';
|
|
4
3
|
/** this is not new usage - old code extracted from editor-core */
|
|
5
4
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
6
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
7
6
|
export const buttonStyle = css({
|
|
8
7
|
height: '26px',
|
|
9
8
|
width: '26px',
|
|
10
|
-
background:
|
|
9
|
+
background: "var(--ds-background-neutral, #091E420F)",
|
|
11
10
|
padding: 0,
|
|
12
11
|
borderRadius: '4px',
|
|
13
|
-
border: `1px solid ${
|
|
12
|
+
border: `1px solid ${"var(--ds-border-inverse, #FFFFFF)"}`,
|
|
14
13
|
cursor: 'pointer',
|
|
15
14
|
display: 'block'
|
|
16
15
|
});
|
|
@@ -28,7 +27,7 @@ export const buttonWrapperStyle = css({
|
|
|
28
27
|
borderRadius: '6px',
|
|
29
28
|
'&:focus-within, &:focus, &:hover': {
|
|
30
29
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
31
|
-
borderColor: `${
|
|
30
|
+
borderColor: `${"var(--ds-border, #091E4224)"} !important`
|
|
32
31
|
}
|
|
33
32
|
});
|
|
34
33
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import chromatism from 'chromatism';
|
|
2
|
-
import { N800 } from '@atlaskit/theme/colors';
|
|
3
2
|
|
|
4
3
|
/**
|
|
5
4
|
* For a given color set the alpha channel to alpha
|
|
@@ -19,5 +18,5 @@ function setAlpha(color, alpha) {
|
|
|
19
18
|
|
|
20
19
|
/** this is not new usage - old code extracted from editor-core */
|
|
21
20
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
22
|
-
export const DEFAULT_BORDER_COLOR = setAlpha(
|
|
21
|
+
export const DEFAULT_BORDER_COLOR = setAlpha('#172B4D', 0.12);
|
|
23
22
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
@@ -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]);
|