@atlaskit/editor-core 177.0.0 → 177.0.1
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 +6 -0
- package/dist/cjs/labs/next/full-page.js +2 -4
- package/dist/cjs/plugins/alignment/ui/ToolbarAlignment/styles.js +1 -3
- package/dist/cjs/plugins/block-type/ui/ToolbarBlockType/styled.js +2 -4
- package/dist/cjs/plugins/breakout/ui/LayoutButton.js +1 -3
- package/dist/cjs/plugins/card/styles.js +1 -3
- package/dist/cjs/plugins/code-block/styles.js +2 -4
- package/dist/cjs/plugins/collab-edit/styles.js +2 -4
- package/dist/cjs/plugins/collab-edit/ui/styles.js +2 -4
- package/dist/cjs/plugins/date/styles.js +1 -3
- package/dist/cjs/plugins/date/ui/DatePicker/index.js +1 -3
- package/dist/cjs/plugins/expand/ui/styles.js +14 -16
- package/dist/cjs/plugins/extension/ui/Extension/Extension/styles.js +4 -6
- package/dist/cjs/plugins/extension/ui/Extension/InlineExtension/styles.js +1 -3
- package/dist/cjs/plugins/extension/ui/Extension/styles.js +5 -7
- package/dist/cjs/plugins/extension/ui/SaveIndicator/SaveIndicator.js +2 -4
- package/dist/cjs/plugins/extension/ui/styles.js +1 -3
- package/dist/cjs/plugins/fake-text-cursor/styles.js +1 -3
- package/dist/cjs/plugins/find-replace/ui/styles.js +2 -4
- package/dist/cjs/plugins/floating-toolbar/ui/DropdownMenu.js +1 -3
- package/dist/cjs/plugins/floating-toolbar/ui/EditorEmojiAddIcon.js +1 -3
- package/dist/cjs/plugins/floating-toolbar/ui/ScrollButtons.js +1 -3
- package/dist/cjs/plugins/floating-toolbar/ui/Separator.js +1 -3
- package/dist/cjs/plugins/floating-toolbar/ui/Toolbar.js +3 -5
- package/dist/cjs/plugins/floating-toolbar/ui/styles.js +10 -12
- package/dist/cjs/plugins/grid/styles.js +1 -3
- package/dist/cjs/plugins/help-dialog/ui/styles.js +9 -11
- package/dist/cjs/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +3 -5
- package/dist/cjs/plugins/jira-issue/nodeviews/jira-issue.js +2 -4
- package/dist/cjs/plugins/layout/styles.js +1 -3
- package/dist/cjs/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +3 -5
- package/dist/cjs/plugins/media/styles.js +1 -3
- package/dist/cjs/plugins/media/ui/CaptionPlaceholder/index.js +1 -3
- package/dist/cjs/plugins/media/ui/Media/DropPlaceholder.js +2 -4
- package/dist/cjs/plugins/media/ui/MediaLinkingToolbar.js +1 -3
- package/dist/cjs/plugins/mentions/styles.js +1 -3
- package/dist/cjs/plugins/mentions/ui/InviteItem/index.js +1 -3
- package/dist/cjs/plugins/mentions/ui/InviteItem/styles.js +2 -4
- package/dist/cjs/plugins/panel/styles.js +1 -3
- package/dist/cjs/plugins/placeholder/styles.js +1 -3
- package/dist/cjs/plugins/placeholder-text/styles.js +1 -3
- package/dist/cjs/plugins/rule/styles.js +1 -3
- package/dist/cjs/plugins/status/ui/statusPicker.js +1 -3
- package/dist/cjs/plugins/tasks-and-decisions/styles.js +1 -3
- package/dist/cjs/plugins/type-ahead/pm-plugins/decorations.js +1 -3
- package/dist/cjs/plugins/type-ahead/ui/InputQuery.js +1 -3
- package/dist/cjs/plugins/type-ahead/ui/TypeAheadListItem.js +7 -9
- package/dist/cjs/plugins/type-ahead/ui/TypeAheadPopup.js +1 -3
- package/dist/cjs/plugins/unsupported-content/styles.js +1 -3
- package/dist/cjs/ui/Addon/Dropdown/styles.js +1 -3
- package/dist/cjs/ui/Addon/DropdownItem/styles.js +1 -3
- package/dist/cjs/ui/Appearance/Comment/Comment.js +1 -3
- package/dist/cjs/ui/Appearance/Comment/Toolbar.js +2 -4
- package/dist/cjs/ui/Appearance/FullPage/MainToolbar.js +2 -4
- package/dist/cjs/ui/ChromeCollapsed/styles.js +1 -3
- package/dist/cjs/ui/ConfigPanel/Fields/CheckboxGroup.js +1 -3
- package/dist/cjs/ui/ConfigPanel/Fields/Expand.js +1 -3
- package/dist/cjs/ui/ConfigPanel/Fields/Fieldset.js +1 -3
- package/dist/cjs/ui/ConfigPanel/Fields/common/RequiredIndicator.js +1 -3
- package/dist/cjs/ui/ConfigPanel/Header.js +2 -4
- package/dist/cjs/ui/ConfigPanel/NestedForms/RemovableField.js +1 -3
- package/dist/cjs/ui/ContentStyles/index.js +1 -3
- package/dist/cjs/ui/ContextPanel/index.js +1 -3
- package/dist/cjs/ui/ElementBrowser/InsertMenu.js +3 -5
- package/dist/cjs/ui/ElementBrowser/ModalElementBrowser.js +2 -4
- package/dist/cjs/ui/ElementBrowser/components/CategoryList.js +2 -4
- package/dist/cjs/ui/ElementBrowser/components/ElementList/ElementList.js +2 -4
- package/dist/cjs/ui/ElementBrowser/components/ElementList/EmptyState.js +1 -3
- package/dist/cjs/ui/ElementBrowser/components/ElementSearch.js +1 -3
- package/dist/cjs/ui/FloatingToolbar/styles.js +1 -3
- package/dist/cjs/ui/LinkSearch/LinkSearchListItem.js +3 -5
- package/dist/cjs/ui/PanelTextInput/styles.js +1 -3
- package/dist/cjs/ui/ToolbarFeedback/styles.js +3 -5
- package/dist/cjs/ui/WithFlash/index.js +2 -4
- package/dist/cjs/ui/styles.js +2 -4
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/labs/next/full-page.js +2 -3
- package/dist/es2019/plugins/alignment/ui/ToolbarAlignment/styles.js +1 -2
- package/dist/es2019/plugins/block-type/ui/ToolbarBlockType/styled.js +2 -3
- package/dist/es2019/plugins/breakout/ui/LayoutButton.js +4 -5
- package/dist/es2019/plugins/card/styles.js +6 -7
- package/dist/es2019/plugins/code-block/styles.js +8 -9
- package/dist/es2019/plugins/collab-edit/styles.js +2 -3
- package/dist/es2019/plugins/collab-edit/ui/styles.js +3 -4
- package/dist/es2019/plugins/date/styles.js +1 -2
- package/dist/es2019/plugins/date/ui/DatePicker/index.js +2 -3
- package/dist/es2019/plugins/expand/ui/styles.js +14 -15
- package/dist/es2019/plugins/extension/ui/Extension/Extension/styles.js +4 -5
- package/dist/es2019/plugins/extension/ui/Extension/InlineExtension/styles.js +1 -2
- package/dist/es2019/plugins/extension/ui/Extension/styles.js +6 -7
- package/dist/es2019/plugins/extension/ui/SaveIndicator/SaveIndicator.js +3 -4
- package/dist/es2019/plugins/extension/ui/styles.js +2 -3
- package/dist/es2019/plugins/fake-text-cursor/styles.js +2 -3
- package/dist/es2019/plugins/find-replace/ui/styles.js +2 -3
- package/dist/es2019/plugins/floating-toolbar/ui/DropdownMenu.js +1 -2
- package/dist/es2019/plugins/floating-toolbar/ui/EditorEmojiAddIcon.js +1 -2
- package/dist/es2019/plugins/floating-toolbar/ui/ScrollButtons.js +1 -2
- package/dist/es2019/plugins/floating-toolbar/ui/Separator.js +1 -2
- package/dist/es2019/plugins/floating-toolbar/ui/Toolbar.js +3 -4
- package/dist/es2019/plugins/floating-toolbar/ui/styles.js +10 -11
- package/dist/es2019/plugins/grid/styles.js +2 -3
- package/dist/es2019/plugins/help-dialog/ui/styles.js +11 -12
- package/dist/es2019/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +4 -5
- package/dist/es2019/plugins/jira-issue/nodeviews/jira-issue.js +5 -6
- package/dist/es2019/plugins/layout/styles.js +4 -5
- package/dist/es2019/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +4 -5
- package/dist/es2019/plugins/media/styles.js +10 -11
- package/dist/es2019/plugins/media/ui/CaptionPlaceholder/index.js +1 -2
- package/dist/es2019/plugins/media/ui/Media/DropPlaceholder.js +3 -4
- package/dist/es2019/plugins/media/ui/MediaLinkingToolbar.js +1 -2
- package/dist/es2019/plugins/mentions/styles.js +4 -5
- package/dist/es2019/plugins/mentions/ui/InviteItem/index.js +1 -2
- package/dist/es2019/plugins/mentions/ui/InviteItem/styles.js +2 -3
- package/dist/es2019/plugins/panel/styles.js +4 -5
- package/dist/es2019/plugins/placeholder/styles.js +1 -2
- package/dist/es2019/plugins/placeholder-text/styles.js +4 -5
- package/dist/es2019/plugins/rule/styles.js +1 -2
- package/dist/es2019/plugins/status/ui/statusPicker.js +2 -3
- package/dist/es2019/plugins/tasks-and-decisions/styles.js +2 -3
- package/dist/es2019/plugins/type-ahead/pm-plugins/decorations.js +1 -2
- package/dist/es2019/plugins/type-ahead/ui/InputQuery.js +1 -2
- package/dist/es2019/plugins/type-ahead/ui/TypeAheadListItem.js +8 -9
- package/dist/es2019/plugins/type-ahead/ui/TypeAheadPopup.js +2 -3
- package/dist/es2019/plugins/unsupported-content/styles.js +2 -3
- package/dist/es2019/ui/Addon/Dropdown/styles.js +2 -3
- package/dist/es2019/ui/Addon/DropdownItem/styles.js +2 -3
- package/dist/es2019/ui/Appearance/Comment/Comment.js +2 -3
- package/dist/es2019/ui/Appearance/Comment/Toolbar.js +2 -3
- package/dist/es2019/ui/Appearance/FullPage/MainToolbar.js +2 -3
- package/dist/es2019/ui/ChromeCollapsed/styles.js +5 -6
- package/dist/es2019/ui/ConfigPanel/Fields/CheckboxGroup.js +1 -2
- package/dist/es2019/ui/ConfigPanel/Fields/Expand.js +1 -2
- package/dist/es2019/ui/ConfigPanel/Fields/Fieldset.js +1 -2
- package/dist/es2019/ui/ConfigPanel/Fields/common/RequiredIndicator.js +1 -2
- package/dist/es2019/ui/ConfigPanel/Header.js +2 -3
- package/dist/es2019/ui/ConfigPanel/NestedForms/RemovableField.js +2 -3
- package/dist/es2019/ui/ContentStyles/index.js +1 -2
- package/dist/es2019/ui/ContextPanel/index.js +1 -2
- package/dist/es2019/ui/ElementBrowser/InsertMenu.js +4 -5
- package/dist/es2019/ui/ElementBrowser/ModalElementBrowser.js +2 -3
- package/dist/es2019/ui/ElementBrowser/components/CategoryList.js +2 -3
- package/dist/es2019/ui/ElementBrowser/components/ElementList/ElementList.js +2 -3
- package/dist/es2019/ui/ElementBrowser/components/ElementList/EmptyState.js +1 -2
- package/dist/es2019/ui/ElementBrowser/components/ElementSearch.js +1 -2
- package/dist/es2019/ui/FloatingToolbar/styles.js +2 -3
- package/dist/es2019/ui/LinkSearch/LinkSearchListItem.js +3 -4
- package/dist/es2019/ui/PanelTextInput/styles.js +3 -4
- package/dist/es2019/ui/ToolbarFeedback/styles.js +4 -5
- package/dist/es2019/ui/WithFlash/index.js +3 -4
- package/dist/es2019/ui/styles.js +3 -4
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/labs/next/full-page.js +2 -3
- package/dist/esm/plugins/alignment/ui/ToolbarAlignment/styles.js +1 -2
- package/dist/esm/plugins/block-type/ui/ToolbarBlockType/styled.js +2 -3
- package/dist/esm/plugins/breakout/ui/LayoutButton.js +1 -2
- package/dist/esm/plugins/card/styles.js +1 -2
- package/dist/esm/plugins/code-block/styles.js +2 -3
- package/dist/esm/plugins/collab-edit/styles.js +2 -3
- package/dist/esm/plugins/collab-edit/ui/styles.js +2 -3
- package/dist/esm/plugins/date/styles.js +1 -2
- package/dist/esm/plugins/date/ui/DatePicker/index.js +1 -2
- package/dist/esm/plugins/expand/ui/styles.js +14 -15
- package/dist/esm/plugins/extension/ui/Extension/Extension/styles.js +4 -5
- package/dist/esm/plugins/extension/ui/Extension/InlineExtension/styles.js +1 -2
- package/dist/esm/plugins/extension/ui/Extension/styles.js +5 -6
- package/dist/esm/plugins/extension/ui/SaveIndicator/SaveIndicator.js +2 -3
- package/dist/esm/plugins/extension/ui/styles.js +1 -2
- package/dist/esm/plugins/fake-text-cursor/styles.js +1 -2
- package/dist/esm/plugins/find-replace/ui/styles.js +2 -3
- package/dist/esm/plugins/floating-toolbar/ui/DropdownMenu.js +1 -2
- package/dist/esm/plugins/floating-toolbar/ui/EditorEmojiAddIcon.js +1 -2
- package/dist/esm/plugins/floating-toolbar/ui/ScrollButtons.js +1 -2
- package/dist/esm/plugins/floating-toolbar/ui/Separator.js +1 -2
- package/dist/esm/plugins/floating-toolbar/ui/Toolbar.js +3 -4
- package/dist/esm/plugins/floating-toolbar/ui/styles.js +10 -11
- package/dist/esm/plugins/grid/styles.js +1 -2
- package/dist/esm/plugins/help-dialog/ui/styles.js +9 -10
- package/dist/esm/plugins/hyperlink/ui/HyperlinkAddToolbar/HyperlinkAddToolbar.js +3 -4
- package/dist/esm/plugins/jira-issue/nodeviews/jira-issue.js +2 -3
- package/dist/esm/plugins/layout/styles.js +1 -2
- package/dist/esm/plugins/media/pm-plugins/alt-text/ui/AltTextEdit.js +3 -4
- package/dist/esm/plugins/media/styles.js +1 -2
- package/dist/esm/plugins/media/ui/CaptionPlaceholder/index.js +1 -2
- package/dist/esm/plugins/media/ui/Media/DropPlaceholder.js +2 -3
- package/dist/esm/plugins/media/ui/MediaLinkingToolbar.js +1 -2
- package/dist/esm/plugins/mentions/styles.js +1 -2
- package/dist/esm/plugins/mentions/ui/InviteItem/index.js +1 -2
- package/dist/esm/plugins/mentions/ui/InviteItem/styles.js +2 -3
- package/dist/esm/plugins/panel/styles.js +1 -2
- package/dist/esm/plugins/placeholder/styles.js +1 -2
- package/dist/esm/plugins/placeholder-text/styles.js +1 -2
- package/dist/esm/plugins/rule/styles.js +1 -2
- package/dist/esm/plugins/status/ui/statusPicker.js +1 -2
- package/dist/esm/plugins/tasks-and-decisions/styles.js +1 -2
- package/dist/esm/plugins/type-ahead/pm-plugins/decorations.js +1 -2
- package/dist/esm/plugins/type-ahead/ui/InputQuery.js +1 -2
- package/dist/esm/plugins/type-ahead/ui/TypeAheadListItem.js +7 -8
- package/dist/esm/plugins/type-ahead/ui/TypeAheadPopup.js +1 -2
- package/dist/esm/plugins/unsupported-content/styles.js +1 -2
- package/dist/esm/ui/Addon/Dropdown/styles.js +1 -2
- package/dist/esm/ui/Addon/DropdownItem/styles.js +1 -2
- package/dist/esm/ui/Appearance/Comment/Comment.js +1 -2
- package/dist/esm/ui/Appearance/Comment/Toolbar.js +2 -3
- package/dist/esm/ui/Appearance/FullPage/MainToolbar.js +2 -3
- package/dist/esm/ui/ChromeCollapsed/styles.js +1 -2
- package/dist/esm/ui/ConfigPanel/Fields/CheckboxGroup.js +1 -2
- package/dist/esm/ui/ConfigPanel/Fields/Expand.js +1 -2
- package/dist/esm/ui/ConfigPanel/Fields/Fieldset.js +1 -2
- package/dist/esm/ui/ConfigPanel/Fields/common/RequiredIndicator.js +1 -2
- package/dist/esm/ui/ConfigPanel/Header.js +2 -3
- package/dist/esm/ui/ConfigPanel/NestedForms/RemovableField.js +1 -2
- package/dist/esm/ui/ContentStyles/index.js +1 -2
- package/dist/esm/ui/ContextPanel/index.js +1 -2
- package/dist/esm/ui/ElementBrowser/InsertMenu.js +3 -4
- package/dist/esm/ui/ElementBrowser/ModalElementBrowser.js +2 -3
- package/dist/esm/ui/ElementBrowser/components/CategoryList.js +2 -3
- package/dist/esm/ui/ElementBrowser/components/ElementList/ElementList.js +2 -3
- package/dist/esm/ui/ElementBrowser/components/ElementList/EmptyState.js +1 -2
- package/dist/esm/ui/ElementBrowser/components/ElementSearch.js +1 -2
- package/dist/esm/ui/FloatingToolbar/styles.js +1 -2
- package/dist/esm/ui/LinkSearch/LinkSearchListItem.js +3 -4
- package/dist/esm/ui/PanelTextInput/styles.js +2 -3
- package/dist/esm/ui/ToolbarFeedback/styles.js +3 -4
- package/dist/esm/ui/WithFlash/index.js +2 -3
- package/dist/esm/ui/styles.js +2 -3
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +4 -4
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
import { N60, N30A } from '@atlaskit/theme/colors';
|
|
4
|
-
import { token } from '@atlaskit/tokens';
|
|
5
4
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
6
5
|
export const replaceSectionButtonStyles = css({
|
|
7
6
|
marginLeft: '4px'
|
|
@@ -9,7 +8,7 @@ export const replaceSectionButtonStyles = css({
|
|
|
9
8
|
export const ruleStyles = css({
|
|
10
9
|
width: '100%',
|
|
11
10
|
border: 'none',
|
|
12
|
-
backgroundColor: `${
|
|
11
|
+
backgroundColor: `${`var(--ds-border, ${N30A})`}`,
|
|
13
12
|
margin: '4px 0px',
|
|
14
13
|
height: '1px',
|
|
15
14
|
borderRadius: '1px'
|
|
@@ -36,7 +35,7 @@ export const sectionWrapperStyles = css`
|
|
|
36
35
|
}
|
|
37
36
|
`;
|
|
38
37
|
export const countStyles = css({
|
|
39
|
-
color: `${
|
|
38
|
+
color: `${`var(--ds-text-subtlest, ${N60})`}`,
|
|
40
39
|
fontSize: `${relativeFontSizeToBase16(12)}`,
|
|
41
40
|
flex: '0 0 auto',
|
|
42
41
|
justifyContent: 'center',
|
|
@@ -9,7 +9,6 @@ import EditorDoneIcon from '@atlaskit/icon/glyph/editor/done';
|
|
|
9
9
|
import Tooltip from '@atlaskit/tooltip';
|
|
10
10
|
import { injectIntl } from 'react-intl-next';
|
|
11
11
|
import messages from './messages';
|
|
12
|
-
import { token } from '@atlaskit/tokens';
|
|
13
12
|
export const menuItemDimensions = {
|
|
14
13
|
width: 175,
|
|
15
14
|
height: 32
|
|
@@ -151,7 +150,7 @@ class Dropdown extends Component {
|
|
|
151
150
|
|
|
152
151
|
if (showSelected && selected) {
|
|
153
152
|
return jsx(EditorDoneIcon, {
|
|
154
|
-
primaryColor:
|
|
153
|
+
primaryColor: `var(--ds-icon-selected, ${B400})`,
|
|
155
154
|
size: "small",
|
|
156
155
|
label: intl.formatMessage(messages.confirmModalOK)
|
|
157
156
|
});
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { token } from '@atlaskit/tokens';
|
|
3
2
|
export default function EditorEmojiAddIcon() {
|
|
4
3
|
return /*#__PURE__*/React.createElement("svg", {
|
|
5
4
|
width: 24,
|
|
@@ -10,7 +9,7 @@ export default function EditorEmojiAddIcon() {
|
|
|
10
9
|
}, /*#__PURE__*/React.createElement("rect", {
|
|
11
10
|
width: 24,
|
|
12
11
|
height: 24,
|
|
13
|
-
fill:
|
|
12
|
+
fill: "var(--ds-background-neutral-subtle, white)",
|
|
14
13
|
fillOpacity: "0.01"
|
|
15
14
|
}), /*#__PURE__*/React.createElement("path", {
|
|
16
15
|
fillRule: "evenodd",
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import React, { useEffect, useState, useRef } from 'react';
|
|
3
3
|
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import { N30 } from '@atlaskit/theme/colors';
|
|
5
|
-
import { token } from '@atlaskit/tokens';
|
|
6
5
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
7
6
|
import ChevronLeftLargeIcon from '@atlaskit/icon/glyph/chevron-left-large';
|
|
8
7
|
import ChevronRightLargeIcon from '@atlaskit/icon/glyph/chevron-right-large';
|
|
@@ -15,7 +14,7 @@ const toolbarScrollButtons = css`
|
|
|
15
14
|
grid-template-columns: 1fr 1fr;
|
|
16
15
|
grid-gap: ${akGridSize / 2}px;
|
|
17
16
|
padding: ${akGridSize / 2}px ${akGridSize}px;
|
|
18
|
-
border-left: solid ${
|
|
17
|
+
border-left: solid ${`var(--ds-border, ${N30})`} 1px;
|
|
19
18
|
flex-shrink: 0;
|
|
20
19
|
align-items: center;
|
|
21
20
|
`;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { css, jsx } from '@emotion/react';
|
|
3
3
|
import { N30 } from '@atlaskit/theme/colors';
|
|
4
|
-
import { token } from '@atlaskit/tokens';
|
|
5
4
|
const separator = css`
|
|
6
|
-
background: ${
|
|
5
|
+
background: ${`var(--ds-border, ${N30})`};
|
|
7
6
|
width: 1px;
|
|
8
7
|
height: 20px;
|
|
9
8
|
margin: 0 4px;
|
|
@@ -23,7 +23,6 @@ import { EmojiPickerButton } from './EmojiPickerButton';
|
|
|
23
23
|
import Announcer from '../../../utils/announcer/announcer';
|
|
24
24
|
import { injectIntl } from 'react-intl-next';
|
|
25
25
|
import messages from './messages';
|
|
26
|
-
import { token } from '@atlaskit/tokens';
|
|
27
26
|
import { decorationStateKey, ACTIONS } from '../../base/pm-plugins/decoration';
|
|
28
27
|
import ScrollButtons from './ScrollButtons';
|
|
29
28
|
import { ToolbarArrowKeyNavigationProvider } from '../../../ui/ToolbarArrowKeyNavigationProvider';
|
|
@@ -211,11 +210,11 @@ const ToolbarItems = /*#__PURE__*/React.memo(({
|
|
|
211
210
|
|
|
212
211
|
const toolbarContainer = (theme, scrollable, hasSelect, firstElementIsSelect) => css`
|
|
213
212
|
background-color: ${themed({
|
|
214
|
-
light:
|
|
215
|
-
dark:
|
|
213
|
+
light: "var(--ds-surface-overlay, white)",
|
|
214
|
+
dark: `var(--ds-surface-overlay, ${DN70})`
|
|
216
215
|
})(theme)};
|
|
217
216
|
border-radius: ${borderRadius()}px;
|
|
218
|
-
box-shadow: ${
|
|
217
|
+
box-shadow: ${`var(--ds-shadow-overlay, ${`0 0 1px rgba(9, 30, 66, 0.31), 0 4px 8px -2px rgba(9, 30, 66, 0.25)`})`};
|
|
219
218
|
display: flex;
|
|
220
219
|
line-height: 1;
|
|
221
220
|
box-sizing: border-box;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as colors from '@atlaskit/theme/colors';
|
|
2
2
|
import { hexToRgba } from '@atlaskit/adf-schema';
|
|
3
|
-
import { token } from '@atlaskit/tokens';
|
|
4
3
|
const background = {
|
|
5
4
|
danger: {
|
|
6
5
|
default: {
|
|
@@ -8,28 +7,28 @@ const background = {
|
|
|
8
7
|
dark: 'inherit'
|
|
9
8
|
},
|
|
10
9
|
hover: {
|
|
11
|
-
light:
|
|
12
|
-
dark:
|
|
10
|
+
light: `var(--ds-background-neutral-subtle-hovered, ${colors.N30A})`,
|
|
11
|
+
dark: `var(--ds-background-neutral-subtle-hovered, ${colors.N30A})`
|
|
13
12
|
},
|
|
14
13
|
active: {
|
|
15
|
-
light:
|
|
16
|
-
dark:
|
|
14
|
+
light: `var(--ds-background-neutral-pressed, ${`${hexToRgba(colors.B75, 0.6)}`})`,
|
|
15
|
+
dark: `var(--ds-background-neutral-pressed, ${`${hexToRgba(colors.B75, 0.6)}`})`
|
|
17
16
|
}
|
|
18
17
|
}
|
|
19
18
|
};
|
|
20
19
|
const color = {
|
|
21
20
|
danger: {
|
|
22
21
|
default: {
|
|
23
|
-
light:
|
|
24
|
-
dark:
|
|
22
|
+
light: `var(--ds-icon, ${colors.N400})`,
|
|
23
|
+
dark: `var(--ds-icon, ${colors.DN400})`
|
|
25
24
|
},
|
|
26
25
|
hover: {
|
|
27
|
-
light:
|
|
28
|
-
dark:
|
|
26
|
+
light: `var(--ds-icon-danger, ${colors.R400})`,
|
|
27
|
+
dark: `var(--ds-icon-danger, ${colors.R400})`
|
|
29
28
|
},
|
|
30
29
|
active: {
|
|
31
|
-
light:
|
|
32
|
-
dark:
|
|
30
|
+
light: `var(--ds-icon-danger, ${colors.R400})`,
|
|
31
|
+
dark: `var(--ds-icon-danger, ${colors.R400})`
|
|
33
32
|
}
|
|
34
33
|
}
|
|
35
34
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { N30A, B200 } from '@atlaskit/theme/colors';
|
|
3
3
|
import { akEditorGridLineZIndex } from '@atlaskit/editor-shared-styles';
|
|
4
|
-
import { token } from '@atlaskit/tokens';
|
|
5
4
|
export const GRID_GUTTER = 12;
|
|
6
5
|
export const gridStyles = css`
|
|
7
6
|
.gridParent {
|
|
@@ -21,7 +20,7 @@ export const gridStyles = css`
|
|
|
21
20
|
|
|
22
21
|
// TODO: https://product-fabric.atlassian.net/browse/DSP-4352
|
|
23
22
|
.gridLine {
|
|
24
|
-
border-left: 1px solid ${
|
|
23
|
+
border-left: 1px solid ${`var(--ds-border, ${N30A})`};
|
|
25
24
|
display: inline-block;
|
|
26
25
|
box-sizing: border-box;
|
|
27
26
|
height: 100%;
|
|
@@ -32,6 +31,6 @@ export const gridStyles = css`
|
|
|
32
31
|
}
|
|
33
32
|
|
|
34
33
|
.highlight {
|
|
35
|
-
border-left: 1px solid ${
|
|
34
|
+
border-left: 1px solid ${`var(--ds-border-focused, ${B200})`};
|
|
36
35
|
}
|
|
37
36
|
`;
|
|
@@ -2,7 +2,6 @@ import { css } from '@emotion/react';
|
|
|
2
2
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
3
3
|
import * as colors from '@atlaskit/theme/colors';
|
|
4
4
|
import { akEditorUnitZIndex, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
5
|
-
import { token } from '@atlaskit/tokens';
|
|
6
5
|
import { N400 } from '@atlaskit/theme/colors';
|
|
7
6
|
export const header = css`
|
|
8
7
|
z-index: ${akEditorUnitZIndex};
|
|
@@ -13,15 +12,15 @@ export const header = css`
|
|
|
13
12
|
justify-content: space-between;
|
|
14
13
|
align-items: center;
|
|
15
14
|
box-shadow: 'none';
|
|
16
|
-
color: ${
|
|
17
|
-
background-color: ${
|
|
15
|
+
color: ${`var(--ds-text, ${colors.N400})`};
|
|
16
|
+
background-color: ${`var(--ds-background-neutral-subtle, ${colors.N0})`};
|
|
18
17
|
border-radius: ${borderRadius()}px;
|
|
19
18
|
`;
|
|
20
19
|
export const footer = css`
|
|
21
20
|
z-index: ${akEditorUnitZIndex};
|
|
22
21
|
font-size: ${relativeFontSizeToBase16(14)};
|
|
23
22
|
line-height: 20px;
|
|
24
|
-
color: ${
|
|
23
|
+
color: ${`var(--ds-text-subtlest, ${colors.N300})`};
|
|
25
24
|
padding: 24px;
|
|
26
25
|
text-align: right;
|
|
27
26
|
box-shadow: 'none';
|
|
@@ -31,11 +30,11 @@ export const contentWrapper = css`
|
|
|
31
30
|
border-bottom-right-radius: ${borderRadius()}px;
|
|
32
31
|
overflow: auto;
|
|
33
32
|
position: relative;
|
|
34
|
-
color: ${
|
|
35
|
-
background-color: ${
|
|
33
|
+
color: ${`var(--ds-text-subtle, ${colors.N400})`};
|
|
34
|
+
background-color: ${`var(--ds-background-neutral-subtle, ${colors.N0})`};
|
|
36
35
|
`;
|
|
37
36
|
export const line = css`
|
|
38
|
-
background: ${
|
|
37
|
+
background: ${"var(--ds-background-neutral-subtle, #fff)"};
|
|
39
38
|
content: '';
|
|
40
39
|
display: block;
|
|
41
40
|
height: 2px;
|
|
@@ -68,7 +67,7 @@ export const dialogHeader = {
|
|
|
68
67
|
'&': {
|
|
69
68
|
fontSize: relativeFontSizeToBase16(24),
|
|
70
69
|
fontWeight: 400,
|
|
71
|
-
color:
|
|
70
|
+
color: `var(--ds-text-subtle, ${N400})`,
|
|
72
71
|
letterSpacing: 'normal',
|
|
73
72
|
lineHeight: 1.42857142857143
|
|
74
73
|
}
|
|
@@ -77,13 +76,13 @@ export const title = {
|
|
|
77
76
|
'&': {
|
|
78
77
|
fontSize: relativeFontSizeToBase16(18),
|
|
79
78
|
fontWeight: 400,
|
|
80
|
-
color:
|
|
79
|
+
color: `var(--ds-text-subtle, ${N400})`,
|
|
81
80
|
letterSpacing: 'normal',
|
|
82
81
|
lineHeight: 1.42857142857143
|
|
83
82
|
}
|
|
84
83
|
};
|
|
85
84
|
export const codeSm = css`
|
|
86
|
-
background-color: ${
|
|
85
|
+
background-color: ${`var(--ds-background-neutral, ${colors.N20})`};
|
|
87
86
|
border-radius: ${borderRadius()}px;
|
|
88
87
|
width: 24px;
|
|
89
88
|
display: inline-block;
|
|
@@ -92,7 +91,7 @@ export const codeSm = css`
|
|
|
92
91
|
text-align: center;
|
|
93
92
|
`;
|
|
94
93
|
export const codeMd = css`
|
|
95
|
-
background-color: ${
|
|
94
|
+
background-color: ${`var(--ds-background-neutral, ${colors.N20})`};
|
|
96
95
|
border-radius: ${borderRadius()}px;
|
|
97
96
|
display: inline-block;
|
|
98
97
|
height: 24px;
|
|
@@ -101,7 +100,7 @@ export const codeMd = css`
|
|
|
101
100
|
text-align: center;
|
|
102
101
|
`;
|
|
103
102
|
export const codeLg = css`
|
|
104
|
-
background-color: ${
|
|
103
|
+
background-color: ${`var(--ds-background-neutral, ${colors.N20})`};
|
|
105
104
|
border-radius: ${borderRadius()}px;
|
|
106
105
|
display: inline-block;
|
|
107
106
|
height: 24px;
|
|
@@ -8,7 +8,6 @@ import CrossCircleIcon from '@atlaskit/icon/glyph/cross-circle';
|
|
|
8
8
|
import EditorAlignLeftIcon from '@atlaskit/icon/glyph/editor/align-left';
|
|
9
9
|
import LinkIcon from '@atlaskit/icon/glyph/link';
|
|
10
10
|
import { N90, N80, N30 } from '@atlaskit/theme/colors';
|
|
11
|
-
import { token } from '@atlaskit/tokens';
|
|
12
11
|
import Page16Icon from '@atlaskit/icon-object/glyph/page/16';
|
|
13
12
|
import Tooltip from '@atlaskit/tooltip';
|
|
14
13
|
import { PureComponent } from 'react';
|
|
@@ -34,17 +33,17 @@ const clearText = css`
|
|
|
34
33
|
cursor: pointer;
|
|
35
34
|
padding: 0;
|
|
36
35
|
margin-right: 8px;
|
|
37
|
-
color: ${
|
|
36
|
+
color: ${`var(--ds-icon-subtle, ${N90})`};
|
|
38
37
|
background: transparent;
|
|
39
38
|
border: none;
|
|
40
39
|
`;
|
|
41
40
|
const textInputWrapper = css`
|
|
42
41
|
${inputWrapper};
|
|
43
|
-
border-top: 1px solid ${
|
|
44
|
-
border-bottom: 1px solid ${
|
|
42
|
+
border-top: 1px solid ${`var(--ds-border, ${N30})`};
|
|
43
|
+
border-bottom: 1px solid ${`var(--ds-border, ${N30})`};
|
|
45
44
|
`;
|
|
46
45
|
const iconWrapper = css`
|
|
47
|
-
color: ${
|
|
46
|
+
color: ${`var(--ds-icon-subtle, ${N80})`};
|
|
48
47
|
padding: 4px 8px;
|
|
49
48
|
width: 18px;
|
|
50
49
|
`;
|
|
@@ -4,11 +4,10 @@ import { JiraIcon } from '@atlaskit/logo/jira-icon';
|
|
|
4
4
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
5
5
|
import { N30, N50 } from '@atlaskit/theme/colors';
|
|
6
6
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
7
|
-
import { token } from '@atlaskit/tokens';
|
|
8
7
|
const wrapperNode = css`
|
|
9
8
|
align-items: center;
|
|
10
|
-
background: ${
|
|
11
|
-
border: 1px solid ${
|
|
9
|
+
background: ${`var(--ds-background-neutral, ${N30})`};
|
|
10
|
+
border: 1px solid ${`var(--ds-border, ${N50})`};
|
|
12
11
|
border-radius: ${borderRadius()}px;
|
|
13
12
|
box-sizing: border-box;
|
|
14
13
|
cursor: default;
|
|
@@ -22,18 +21,18 @@ const wrapperNode = css`
|
|
|
22
21
|
white-space: nowrap;
|
|
23
22
|
|
|
24
23
|
.ProseMirror-selectednode & {
|
|
25
|
-
background: ${
|
|
24
|
+
background: ${`var(--ds-background-selected, ${N50})`};
|
|
26
25
|
outline: none;
|
|
27
26
|
}
|
|
28
27
|
`;
|
|
29
28
|
const jiraChildNode = css`
|
|
30
29
|
display: inline-block;
|
|
31
|
-
color: ${
|
|
30
|
+
color: ${"var(--ds-text-subtlest, #707070)"};
|
|
32
31
|
line-height: 24px;
|
|
33
32
|
vertical-align: top;
|
|
34
33
|
|
|
35
34
|
&::before {
|
|
36
|
-
color: ${
|
|
35
|
+
color: ${"var(--ds-text, black)"};
|
|
37
36
|
content: 'JIRA | ';
|
|
38
37
|
}
|
|
39
38
|
`;
|
|
@@ -3,7 +3,6 @@ import { gridSize } from '@atlaskit/theme/constants';
|
|
|
3
3
|
import { N40A, N50A } from '@atlaskit/theme/colors';
|
|
4
4
|
import { columnLayoutSharedStyle, LAYOUT_SECTION_MARGIN, LAYOUT_COLUMN_PADDING } from '@atlaskit/editor-common/styles';
|
|
5
5
|
import { gridMediumMaxWidth, akEditorDeleteBackground, akEditorDeleteBorder, akEditorSelectedBorderSize, akLayoutGutterOffset, akEditorSwoopCubicBezier, SelectionStyle, getSelectionStyles, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
|
|
6
|
-
import { token } from '@atlaskit/tokens';
|
|
7
6
|
import { TableCssClassName } from '@atlaskit/editor-plugin-table/types';
|
|
8
7
|
import { tableMarginFullWidthMode } from '@atlaskit/editor-plugin-table/ui/consts';
|
|
9
8
|
export { LAYOUT_COLUMN_PADDING, LAYOUT_SECTION_MARGIN };
|
|
@@ -19,7 +18,7 @@ export const layoutStyles = css`
|
|
|
19
18
|
flex: 1;
|
|
20
19
|
min-width: 0;
|
|
21
20
|
border: ${akEditorSelectedBorderSize}px solid
|
|
22
|
-
${
|
|
21
|
+
${`var(--ds-border, ${N40A})`};
|
|
23
22
|
border-radius: 4px;
|
|
24
23
|
padding: ${LAYOUT_COLUMN_PADDING}px;
|
|
25
24
|
box-sizing: border-box;
|
|
@@ -106,12 +105,12 @@ export const layoutStyles = css`
|
|
|
106
105
|
/* Shows the border when cursor is inside a layout */
|
|
107
106
|
&.selected [data-layout-column],
|
|
108
107
|
&:hover [data-layout-column] {
|
|
109
|
-
border-color: ${
|
|
108
|
+
border-color: ${`var(--ds-border, ${N50A})`};
|
|
110
109
|
}
|
|
111
110
|
|
|
112
111
|
&.selected.danger > [data-layout-column] {
|
|
113
|
-
background-color: ${
|
|
114
|
-
border-color: ${
|
|
112
|
+
background-color: ${`var(--ds-background-danger, ${akEditorDeleteBackground})`};
|
|
113
|
+
border-color: ${`var(--ds-border-danger, ${akEditorDeleteBorder})`};
|
|
115
114
|
}
|
|
116
115
|
|
|
117
116
|
&.${akEditorSelectedNodeClassName}:not(.danger) {
|
|
@@ -18,16 +18,15 @@ import { ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, fireAnalyticsEvent, ACTI
|
|
|
18
18
|
import { RECENT_SEARCH_WIDTH_IN_PX } from '../../../../../ui/LinkSearch/ToolbarComponents';
|
|
19
19
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
20
20
|
import { ErrorMessage } from '@atlaskit/editor-common/ui';
|
|
21
|
-
import { token } from '@atlaskit/tokens';
|
|
22
21
|
export const CONTAINER_WIDTH_IN_PX = RECENT_SEARCH_WIDTH_IN_PX;
|
|
23
22
|
export const MAX_ALT_TEXT_LENGTH = 510; // double tweet length
|
|
24
23
|
|
|
25
24
|
const supportText = css`
|
|
26
|
-
color: ${
|
|
25
|
+
color: ${`var(--ds-text-subtlest, ${N100})`};
|
|
27
26
|
font-size: ${relativeFontSizeToBase16(12)};
|
|
28
27
|
padding: 12px 40px;
|
|
29
28
|
line-height: 20px;
|
|
30
|
-
border-top: 1px solid ${
|
|
29
|
+
border-top: 1px solid ${`var(--ds-border, ${N30})`};
|
|
31
30
|
margin: 0;
|
|
32
31
|
`;
|
|
33
32
|
const container = css`
|
|
@@ -48,7 +47,7 @@ const validationWrapper = css`
|
|
|
48
47
|
line-height: 0;
|
|
49
48
|
padding: 12px 24px 12px 0;
|
|
50
49
|
margin: 0 12px 0 40px;
|
|
51
|
-
border-top: 1px solid ${
|
|
50
|
+
border-top: 1px solid ${`var(--ds-border-danger, ${R400})`};
|
|
52
51
|
align-items: start;
|
|
53
52
|
flex-direction: column;
|
|
54
53
|
`;
|
|
@@ -57,7 +56,7 @@ const buttonWrapper = css`
|
|
|
57
56
|
padding: 4px 8px;
|
|
58
57
|
`;
|
|
59
58
|
const clearText = css`
|
|
60
|
-
color: ${
|
|
59
|
+
color: ${`var(--ds-icon-subtle, ${N80})`};
|
|
61
60
|
`;
|
|
62
61
|
export class AltTextEditComponent extends React.Component {
|
|
63
62
|
constructor(props) {
|
|
@@ -3,7 +3,6 @@ import { mediaSingleSharedStyle, richMediaClassName } from '@atlaskit/editor-com
|
|
|
3
3
|
import { akEditorDeleteBorder, akEditorDeleteBackground, akEditorSelectedBorderBoldSize, akEditorMediaResizeHandlerPaddingWide, akEditorMediaResizeHandlerPadding, akEditorSelectedNodeClassName, akEditorDeleteIconColor } from '@atlaskit/editor-shared-styles';
|
|
4
4
|
import { N60, B200 } from '@atlaskit/theme/colors';
|
|
5
5
|
import { fileCardImageViewSelector, fileCardImageViewSelectedSelector, inlinePlayerClassName, newFileExperienceClassName } from '@atlaskit/media-card';
|
|
6
|
-
import { token } from '@atlaskit/tokens';
|
|
7
6
|
export const mediaStyles = css`
|
|
8
7
|
.ProseMirror {
|
|
9
8
|
${mediaSingleSharedStyle} & [layout='full-width'] .${richMediaClassName},
|
|
@@ -95,7 +94,7 @@ export const mediaStyles = css`
|
|
|
95
94
|
|
|
96
95
|
.${richMediaClassName}:hover .richMedia-resize-handle-left::after,
|
|
97
96
|
.${richMediaClassName}:hover .richMedia-resize-handle-right::after {
|
|
98
|
-
background: ${
|
|
97
|
+
background: ${`var(--ds-border, ${N60})`};
|
|
99
98
|
}
|
|
100
99
|
|
|
101
100
|
.${akEditorSelectedNodeClassName} .richMedia-resize-handle-right::after,
|
|
@@ -104,7 +103,7 @@ export const mediaStyles = css`
|
|
|
104
103
|
.${richMediaClassName} .richMedia-resize-handle-left:hover::after,
|
|
105
104
|
.${richMediaClassName}.is-resizing .richMedia-resize-handle-right::after,
|
|
106
105
|
.${richMediaClassName}.is-resizing .richMedia-resize-handle-left::after {
|
|
107
|
-
background: ${
|
|
106
|
+
background: ${`var(--ds-border-focused, ${B200})`};
|
|
108
107
|
}
|
|
109
108
|
|
|
110
109
|
.__resizable_base__ {
|
|
@@ -116,42 +115,42 @@ export const mediaStyles = css`
|
|
|
116
115
|
/* Danger when top level node for smart cards / inline links */
|
|
117
116
|
.danger > div > div > .media-card-frame,
|
|
118
117
|
.danger > span > a {
|
|
119
|
-
background-color: ${
|
|
118
|
+
background-color: ${`var(--ds-background-danger, ${akEditorDeleteBackground})`};
|
|
120
119
|
box-shadow: 0px 0px 0px ${akEditorSelectedBorderBoldSize}px
|
|
121
|
-
${
|
|
120
|
+
${`var(--ds-border-danger, ${akEditorDeleteBorder})`};
|
|
122
121
|
transition: background-color 0s, box-shadow 0s;
|
|
123
122
|
}
|
|
124
123
|
.mediaGroupView-content-wrap.danger {
|
|
125
124
|
/* Media inline */
|
|
126
125
|
.${fileCardImageViewSelectedSelector}::after {
|
|
127
|
-
border: 1px solid ${
|
|
126
|
+
border: 1px solid ${`var(--ds-border-danger, ${akEditorDeleteIconColor})`};
|
|
128
127
|
}
|
|
129
128
|
}
|
|
130
129
|
/* Danger when nested node or common */
|
|
131
130
|
.danger {
|
|
132
131
|
/* Media single */
|
|
133
132
|
.${richMediaClassName} .${fileCardImageViewSelector}::after {
|
|
134
|
-
border: 1px solid ${
|
|
133
|
+
border: 1px solid ${`var(--ds-border-danger, ${akEditorDeleteIconColor})`};
|
|
135
134
|
}
|
|
136
135
|
/* Media single video player */
|
|
137
136
|
.${richMediaClassName} .${inlinePlayerClassName}::after {
|
|
138
|
-
border: 1px solid ${
|
|
137
|
+
border: 1px solid ${`var(--ds-border-danger, ${akEditorDeleteIconColor})`};
|
|
139
138
|
}
|
|
140
139
|
/* New file experience */
|
|
141
140
|
.${richMediaClassName} .${newFileExperienceClassName} {
|
|
142
141
|
box-shadow: 0 0 0 1px
|
|
143
|
-
${
|
|
142
|
+
${`var(--ds-border-danger, ${akEditorDeleteIconColor})`} !important;
|
|
144
143
|
}
|
|
145
144
|
/* Media resize handlers */
|
|
146
145
|
.richMedia-resize-handle-right::after,
|
|
147
146
|
.richMedia-resize-handle-left::after {
|
|
148
|
-
background: ${
|
|
147
|
+
background: ${`var(--ds-icon-danger, ${akEditorDeleteIconColor})`};
|
|
149
148
|
}
|
|
150
149
|
|
|
151
150
|
/* Smart cards */
|
|
152
151
|
div div .media-card-frame,
|
|
153
152
|
.inlineCardView-content-wrap > span > a {
|
|
154
|
-
background-color: ${
|
|
153
|
+
background-color: ${"var(--ds-blanket-danger, rgb(255, 189, 173, 0.5))"}; /* R75 with 50% opactiy */
|
|
155
154
|
transition: background-color 0s;
|
|
156
155
|
}
|
|
157
156
|
|
|
@@ -3,10 +3,9 @@ import React from 'react';
|
|
|
3
3
|
import { css, jsx } from '@emotion/react';
|
|
4
4
|
import { FormattedMessage } from 'react-intl-next';
|
|
5
5
|
import { N200 } from '@atlaskit/theme/colors';
|
|
6
|
-
import { token } from '@atlaskit/tokens';
|
|
7
6
|
import { messages } from './messages';
|
|
8
7
|
const placeholder = css`
|
|
9
|
-
color: ${
|
|
8
|
+
color: ${`var(--ds-text-subtlest, ${N200})`};
|
|
10
9
|
width: 100%;
|
|
11
10
|
text-align: center;
|
|
12
11
|
margin-top: 8px !important;
|
|
@@ -6,11 +6,10 @@ import DocumentFilledIcon from '@atlaskit/icon/glyph/document-filled';
|
|
|
6
6
|
import { hexToRgba } from '@atlaskit/adf-schema';
|
|
7
7
|
import { injectIntl } from 'react-intl-next';
|
|
8
8
|
import { dropPlaceholderMessages } from './drop-placeholder-messages';
|
|
9
|
-
import { token } from '@atlaskit/tokens';
|
|
10
9
|
import { MEDIA_HEIGHT, FILE_WIDTH } from '../../nodeviews/mediaNodeView/media';
|
|
11
10
|
const iconWrapper = css`
|
|
12
|
-
color: ${
|
|
13
|
-
background: ${
|
|
11
|
+
color: ${`var(--ds-icon-accent-blue, ${hexToRgba(B400, 0.4) || B400})`};
|
|
12
|
+
background: ${`var(--ds-background-accent-blue-subtle, ${hexToRgba(B300, 0.6) || B300})`};
|
|
14
13
|
border-radius: ${borderRadius()}px;
|
|
15
14
|
margin: 5px 3px 25px;
|
|
16
15
|
width: ${FILE_WIDTH}px;
|
|
@@ -20,7 +19,7 @@ const iconWrapper = css`
|
|
|
20
19
|
justify-content: center;
|
|
21
20
|
`;
|
|
22
21
|
const dropLine = css`
|
|
23
|
-
background: ${
|
|
22
|
+
background: ${`var(--ds-border-focused, ${B200})`};
|
|
24
23
|
border-radius: ${borderRadius()}px;
|
|
25
24
|
margin: 2px 0;
|
|
26
25
|
width: 100%;
|
|
@@ -17,12 +17,11 @@ import { normalizeUrl } from '../../hyperlink/utils';
|
|
|
17
17
|
import { R400 } from '@atlaskit/theme/colors';
|
|
18
18
|
import { INPUT_METHOD } from '../../analytics/types/enums';
|
|
19
19
|
import { mediaLinkToolbarMessages } from './media-linking-toolbar-messages';
|
|
20
|
-
import { token } from '@atlaskit/tokens';
|
|
21
20
|
const validationWrapper = css`
|
|
22
21
|
line-height: 0;
|
|
23
22
|
padding: 12px 24px 12px 0;
|
|
24
23
|
margin: 0 4px 0 32px;
|
|
25
|
-
border-top: 1px solid ${
|
|
24
|
+
border-top: 1px solid ${`var(--ds-border-danger, ${R400})`};
|
|
26
25
|
align-items: start;
|
|
27
26
|
display: flex;
|
|
28
27
|
flex-direction: column;
|
|
@@ -2,7 +2,6 @@ import { css } from '@emotion/react';
|
|
|
2
2
|
import { MentionSharedCssClassName } from '@atlaskit/editor-common/mention';
|
|
3
3
|
import { SelectionStyle, getSelectionStyles, akEditorSelectedBorderSize, akEditorDeleteBorder, akEditorDeleteBackgroundWithOpacity, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
|
|
4
4
|
import { N500, N30A } from '@atlaskit/theme/colors';
|
|
5
|
-
import { token } from '@atlaskit/tokens';
|
|
6
5
|
export const mentionsStyles = css`
|
|
7
6
|
.${MentionSharedCssClassName.MENTION_CONTAINER} {
|
|
8
7
|
&.${akEditorSelectedNodeClassName} [data-mention-id] > span {
|
|
@@ -10,7 +9,7 @@ export const mentionsStyles = css`
|
|
|
10
9
|
|
|
11
10
|
/* need to specify dark text colour because personal mentions
|
|
12
11
|
(in dark blue) have white text by default */
|
|
13
|
-
color: ${
|
|
12
|
+
color: ${`var(--ds-text-subtle, ${N500})`};
|
|
14
13
|
}
|
|
15
14
|
}
|
|
16
15
|
|
|
@@ -20,11 +19,11 @@ export const mentionsStyles = css`
|
|
|
20
19
|
> span
|
|
21
20
|
> span {
|
|
22
21
|
box-shadow: 0 0 0 ${akEditorSelectedBorderSize}px ${akEditorDeleteBorder};
|
|
23
|
-
background-color: ${
|
|
22
|
+
background-color: ${`var(--ds-background-danger, ${akEditorDeleteBackgroundWithOpacity})`};
|
|
24
23
|
}
|
|
25
24
|
.${MentionSharedCssClassName.MENTION_CONTAINER} > span > span > span {
|
|
26
|
-
background-color: ${
|
|
27
|
-
color: ${
|
|
25
|
+
background-color: ${`var(--ds-background-neutral, ${N30A})`};
|
|
26
|
+
color: ${`var(--ds-text-subtle, ${N500})`};
|
|
28
27
|
}
|
|
29
28
|
}
|
|
30
29
|
`;
|
|
@@ -4,7 +4,6 @@ import _extends from "@babel/runtime/helpers/extends";
|
|
|
4
4
|
import { jsx } from '@emotion/react';
|
|
5
5
|
import AddIcon from '@atlaskit/icon/glyph/add';
|
|
6
6
|
import { N300 } from '@atlaskit/theme/colors';
|
|
7
|
-
import { token } from '@atlaskit/tokens';
|
|
8
7
|
import React, { useCallback, useEffect } from 'react';
|
|
9
8
|
import { FormattedMessage, injectIntl } from 'react-intl-next';
|
|
10
9
|
import { avatarStyle, capitalizedStyle, mentionItemStyle, nameSectionStyle, rowStyle, ROW_SIDE_PADDING, AVATAR_HEIGHT, mentionItemSelectedStyle } from './styles';
|
|
@@ -54,7 +53,7 @@ const InviteItem = ({
|
|
|
54
53
|
css: avatarStyle
|
|
55
54
|
}, jsx(AddIcon, {
|
|
56
55
|
label: intl.formatMessage(messages.mentionsAddLabel),
|
|
57
|
-
primaryColor:
|
|
56
|
+
primaryColor: `var(--ds-icon-subtle, ${N300})`
|
|
58
57
|
})), jsx("div", {
|
|
59
58
|
css: nameSectionStyle,
|
|
60
59
|
"data-testid": "name-section"
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { N30, N300 } from '@atlaskit/theme/colors';
|
|
3
|
-
import { token } from '@atlaskit/tokens';
|
|
4
3
|
export const ROW_SIDE_PADDING = 14;
|
|
5
4
|
export const rowStyle = css`
|
|
6
5
|
align-items: center;
|
|
@@ -30,7 +29,7 @@ export const nameSectionStyle = css`
|
|
|
30
29
|
flex: 1;
|
|
31
30
|
min-width: 0;
|
|
32
31
|
margin-left: 14px;
|
|
33
|
-
color: ${
|
|
32
|
+
color: ${`var(--ds-text-subtle, ${N300})`};
|
|
34
33
|
opacity: inherit;
|
|
35
34
|
`;
|
|
36
35
|
export const mentionItemStyle = css`
|
|
@@ -41,7 +40,7 @@ export const mentionItemStyle = css`
|
|
|
41
40
|
cursor: pointer;
|
|
42
41
|
`;
|
|
43
42
|
export const mentionItemSelectedStyle = css`
|
|
44
|
-
background-color: ${
|
|
43
|
+
background-color: ${`var(--ds-background-neutral-subtle-hovered, ${N30})`};
|
|
45
44
|
`;
|
|
46
45
|
export const capitalizedStyle = css`
|
|
47
46
|
text-transform: capitalize;
|