@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
|
@@ -9,7 +9,6 @@ import { ButtonItem } from '@atlaskit/menu';
|
|
|
9
9
|
import { B100, N200 } from '@atlaskit/theme/colors';
|
|
10
10
|
import Tooltip from '@atlaskit/tooltip';
|
|
11
11
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
12
|
-
import { token } from '@atlaskit/tokens';
|
|
13
12
|
import { withAnalyticsContext } from '@atlaskit/analytics-next';
|
|
14
13
|
import { ACTION, ACTION_SUBJECT, EVENT_TYPE, fireAnalyticsEvent } from '../../../../plugins/analytics';
|
|
15
14
|
import IconFallback from '../../../../plugins/quick-insert/assets/fallback';
|
|
@@ -238,7 +237,7 @@ const elementItemsWrapper = css`
|
|
|
238
237
|
|
|
239
238
|
:focus {
|
|
240
239
|
box-shadow: 0 0 0 ${ELEMENT_LIST_PADDING}px
|
|
241
|
-
${
|
|
240
|
+
${`var(--ds-border-focused, ${B100})`};
|
|
242
241
|
}
|
|
243
242
|
}
|
|
244
243
|
.ReactVirtualized__Collection__innerScrollContainer {
|
|
@@ -281,7 +280,7 @@ const itemDescription = css`
|
|
|
281
280
|
|
|
282
281
|
overflow: hidden;
|
|
283
282
|
font-size: ${relativeFontSizeToBase16(11.67)};
|
|
284
|
-
color: ${
|
|
283
|
+
color: ${`var(--ds-text-subtle, ${N200})`};
|
|
285
284
|
margin-top: 2px;
|
|
286
285
|
`;
|
|
287
286
|
const itemText = css`
|
|
@@ -3,7 +3,6 @@ import { css, jsx } from '@emotion/react';
|
|
|
3
3
|
import { FormattedMessage } from 'react-intl-next';
|
|
4
4
|
import Button from '@atlaskit/button';
|
|
5
5
|
import NotFoundIllustration from './NotFoundIllustration';
|
|
6
|
-
import { token } from '@atlaskit/tokens';
|
|
7
6
|
export default function EmptyState({
|
|
8
7
|
onExternalLinkClick
|
|
9
8
|
}) {
|
|
@@ -37,7 +36,7 @@ export default function EmptyState({
|
|
|
37
36
|
const emptyStateHeading = css`
|
|
38
37
|
font-size: 1.42857em;
|
|
39
38
|
line-height: 1.2;
|
|
40
|
-
color: ${
|
|
39
|
+
color: ${"var(--ds-text, rgb(23, 43, 77))"};
|
|
41
40
|
font-weight: 500;
|
|
42
41
|
letter-spacing: -0.008em;
|
|
43
42
|
margin-top: 28px;
|
|
@@ -11,7 +11,6 @@ import { GRID_SIZE, SEARCH_ITEM_HEIGHT_WIDTH } from '../constants';
|
|
|
11
11
|
import useFocus from '../hooks/use-focus';
|
|
12
12
|
import { Modes } from '../types';
|
|
13
13
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
14
|
-
import { token } from '@atlaskit/tokens';
|
|
15
14
|
|
|
16
15
|
function ElementSearch({
|
|
17
16
|
onSearch,
|
|
@@ -102,7 +101,7 @@ const wrapperInline = css`
|
|
|
102
101
|
`;
|
|
103
102
|
const elementBeforeInput = css`
|
|
104
103
|
margin: 1px 6px 0 8px;
|
|
105
|
-
color: ${
|
|
104
|
+
color: ${`var(--ds-icon, ${N200})`};
|
|
106
105
|
|
|
107
106
|
// Custom SearchIcon style
|
|
108
107
|
span,
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
3
3
|
import { N0, N50A, N60A } from '@atlaskit/theme/colors';
|
|
4
|
-
import { token } from '@atlaskit/tokens';
|
|
5
4
|
export const container = height => css`
|
|
6
5
|
border-radius: ${borderRadius()}px;
|
|
7
|
-
box-shadow: ${
|
|
6
|
+
box-shadow: ${`var(--ds-shadow-overlay, ${`0 12px 24px -6px ${N50A}, 0 0 1px ${N60A}`})`};
|
|
8
7
|
display: flex;
|
|
9
8
|
align-items: center;
|
|
10
9
|
box-sizing: border-box;
|
|
11
10
|
padding: 4px 8px;
|
|
12
|
-
background-color: ${
|
|
11
|
+
background-color: ${`var(--ds-background-input, ${N0})`};
|
|
13
12
|
${height ? css`
|
|
14
13
|
height: ${height}px;
|
|
15
14
|
` : ''};
|
|
@@ -6,7 +6,6 @@ import { css, jsx } from '@emotion/react'; // AFP-2532 TODO: Fix automatic suppr
|
|
|
6
6
|
// eslint-disable-next-line @atlassian/tangerine/import/entry-points
|
|
7
7
|
|
|
8
8
|
import { fontSizeSmall } from '@atlaskit/theme';
|
|
9
|
-
import { token } from '@atlaskit/tokens';
|
|
10
9
|
import { N20, N300, N800 } from '@atlaskit/theme/colors';
|
|
11
10
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
12
11
|
import { getCorrectAltByIconUrl } from './listItemAlts';
|
|
@@ -20,20 +19,20 @@ export const container = css`
|
|
|
20
19
|
margin-top: 0;
|
|
21
20
|
`;
|
|
22
21
|
export const containerSelected = css`
|
|
23
|
-
background-color: ${
|
|
22
|
+
background-color: ${`var(--ds-background-neutral-subtle-hovered, ${N20})`};
|
|
24
23
|
`;
|
|
25
24
|
const nameWrapper = css`
|
|
26
25
|
overflow: hidden;
|
|
27
26
|
`;
|
|
28
27
|
export const nameStyle = css`
|
|
29
|
-
color: ${
|
|
28
|
+
color: ${`var(--ds-text, ${N800})`};
|
|
30
29
|
overflow: hidden;
|
|
31
30
|
text-overflow: ellipsis;
|
|
32
31
|
white-space: nowrap;
|
|
33
32
|
line-height: 20px;
|
|
34
33
|
`;
|
|
35
34
|
export const containerName = css`
|
|
36
|
-
color: ${
|
|
35
|
+
color: ${`var(--ds-text-subtlest, ${N300})`};
|
|
37
36
|
line-height: 14px;
|
|
38
37
|
font-size: ${relativeFontSizeToBase16(fontSizeSmall())};
|
|
39
38
|
`;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { N400, N100 } from '@atlaskit/theme/colors';
|
|
3
3
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
// Normal .className gets overridden by input[type=text] hence this hack to produce input.className
|
|
6
5
|
export const panelTextInput = css`
|
|
7
6
|
input& {
|
|
8
7
|
background: transparent;
|
|
9
8
|
border: 0;
|
|
10
9
|
border-radius: 0;
|
|
11
10
|
box-sizing: content-box;
|
|
12
|
-
color: ${
|
|
11
|
+
color: ${`var(--ds-text-subtle, ${N400})`};
|
|
13
12
|
flex-grow: 1;
|
|
14
13
|
font-size: ${relativeFontSizeToBase16(13)};
|
|
15
14
|
line-height: 20px;
|
|
@@ -26,7 +25,7 @@ export const panelTextInput = css`
|
|
|
26
25
|
}
|
|
27
26
|
|
|
28
27
|
&::placeholder {
|
|
29
|
-
color: ${
|
|
28
|
+
color: ${`var(--ds-text-subtlest, ${N100})`};
|
|
30
29
|
}
|
|
31
30
|
}
|
|
32
31
|
`;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
3
3
|
import { N60A, N400, P400 } from '@atlaskit/theme/colors';
|
|
4
|
-
import { token } from '@atlaskit/tokens';
|
|
5
4
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
6
5
|
export const buttonContent = css`
|
|
7
6
|
display: flex;
|
|
@@ -14,9 +13,9 @@ export const wrapper = css`
|
|
|
14
13
|
margin-right: 0;
|
|
15
14
|
`;
|
|
16
15
|
export const confirmationPopup = css`
|
|
17
|
-
background: ${
|
|
16
|
+
background: ${"var(--ds-surface-overlay, #fff)"};
|
|
18
17
|
border-radius: ${borderRadius()}px;
|
|
19
|
-
box-shadow: ${
|
|
18
|
+
box-shadow: ${`var(--ds-shadow-overlay, ${`0 4px 8px -2px ${N60A}, 0 0 1px ${N60A}`})`};
|
|
20
19
|
display: flex;
|
|
21
20
|
flex-direction: column;
|
|
22
21
|
box-sizing: border-box;
|
|
@@ -29,7 +28,7 @@ export const confirmationText = css`
|
|
|
29
28
|
font-size: ${relativeFontSizeToBase16(14)};
|
|
30
29
|
word-spacing: 4px;
|
|
31
30
|
line-height: 22px;
|
|
32
|
-
color: ${
|
|
31
|
+
color: ${`var(--ds-text-subtle, ${N400})`};
|
|
33
32
|
margin-top: 30px;
|
|
34
33
|
padding: 20px;
|
|
35
34
|
& > div {
|
|
@@ -43,7 +42,7 @@ export const confirmationText = css`
|
|
|
43
42
|
}
|
|
44
43
|
`;
|
|
45
44
|
export const confirmationHeader = css`
|
|
46
|
-
background-color: ${
|
|
45
|
+
background-color: ${`var(--ds-background-discovery-bold, ${P400})`};
|
|
47
46
|
height: 100px;
|
|
48
47
|
width: 100%;
|
|
49
48
|
display: inline-block;
|
|
@@ -4,21 +4,20 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import { css, jsx, keyframes } from '@emotion/react';
|
|
6
6
|
import { R100 } from '@atlaskit/theme/colors';
|
|
7
|
-
import { token } from '@atlaskit/tokens';
|
|
8
7
|
const pulseBackground = keyframes`
|
|
9
8
|
50% {
|
|
10
|
-
background-color: ${
|
|
9
|
+
background-color: ${`var(--ds-blanket-danger, ${R100})`};
|
|
11
10
|
}
|
|
12
11
|
`;
|
|
13
12
|
const pulseBackgroundReverse = keyframes`
|
|
14
13
|
0% {
|
|
15
|
-
background-color: ${
|
|
14
|
+
background-color: ${`var(--ds-blanket-danger, ${R100})`};
|
|
16
15
|
}
|
|
17
16
|
50% {
|
|
18
17
|
background-color: auto;
|
|
19
18
|
}
|
|
20
19
|
100% {
|
|
21
|
-
background-color: ${
|
|
20
|
+
background-color: ${`var(--ds-blanket-danger, ${R100})`};
|
|
22
21
|
}
|
|
23
22
|
`;
|
|
24
23
|
const flashWrapper = css`
|
package/dist/es2019/ui/styles.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { N30 } from '@atlaskit/theme/colors';
|
|
3
|
-
import { token } from '@atlaskit/tokens';
|
|
4
3
|
export { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
5
4
|
export { scrollbarStyles } from '@atlaskit/editor-shared-styles/scrollbar';
|
|
6
5
|
export const buttonGroupStyle = css`
|
|
@@ -12,7 +11,7 @@ export const buttonGroupStyle = css`
|
|
|
12
11
|
}
|
|
13
12
|
`;
|
|
14
13
|
export const separatorStyles = css`
|
|
15
|
-
background: ${
|
|
14
|
+
background: ${`var(--ds-border, ${N30})`};
|
|
16
15
|
width: 1px;
|
|
17
16
|
height: 24px;
|
|
18
17
|
display: inline-block;
|
|
@@ -58,8 +57,8 @@ export const buttonContentReducedSpacingStyle = css`
|
|
|
58
57
|
`; // Taken from the style of inline dialog components
|
|
59
58
|
|
|
60
59
|
export const dropShadow = css`
|
|
61
|
-
box-shadow: ${
|
|
62
|
-
0 4px 8px -2px rgba(9, 30, 66, 0.25)`)};
|
|
60
|
+
box-shadow: ${`var(--ds-shadow-overlay, ${`0 0 1px rgba(9, 30, 66, 0.31),
|
|
61
|
+
0 4px 8px -2px rgba(9, 30, 66, 0.25)`})`};
|
|
63
62
|
`;
|
|
64
63
|
export const clickSelectWrapperStyle = css`
|
|
65
64
|
user-select: all;
|
package/dist/es2019/version.json
CHANGED
|
@@ -9,7 +9,6 @@ import rafSchedule from 'raf-schd';
|
|
|
9
9
|
import React from 'react';
|
|
10
10
|
import { css, jsx } from '@emotion/react';
|
|
11
11
|
import { N30 } from '@atlaskit/theme/colors';
|
|
12
|
-
import { token } from '@atlaskit/tokens';
|
|
13
12
|
import { withAnalyticsEvents } from '@atlaskit/analytics-next';
|
|
14
13
|
import { BaseTheme } from '@atlaskit/editor-common/ui';
|
|
15
14
|
import { akEditorMenuZIndex, akEditorToolbarKeylineHeight } from '@atlaskit/editor-shared-styles';
|
|
@@ -36,8 +35,8 @@ var editorContentArea = function editorContentArea(theme) {
|
|
|
36
35
|
return css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n line-height: 24px;\n height: 100%;\n width: 100%;\n max-width: ", "px;\n padding-top: 50px;\n margin: 0 auto;\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n padding-bottom: 55px;\n\n & .ProseMirror {\n flex-grow: 1;\n box-sizing: border-box;\n }\n\n && .ProseMirror {\n & > * {\n clear: both;\n }\n > p,\n > ul,\n > ol,\n > h1,\n > h2,\n > h3,\n > h4,\n > h5,\n > h6 {\n clear: none;\n }\n }\n ", ";\n"])), theme.layoutMaxWidth + GUTTER_PADDING * 2, tableFullPageEditorStyles);
|
|
37
36
|
};
|
|
38
37
|
|
|
39
|
-
var mainToolbar = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n position: relative;\n align-items: center;\n box-shadow: 'none';\n\n transition: box-shadow 200ms;\n z-index: ", ";\n display: flex;\n height: 80px;\n flex-shrink: 0;\n background-color: ", ";\n\n & object {\n height: 0 !important;\n }\n"])), akEditorMenuZIndex,
|
|
40
|
-
var mainToolbarWithKeyline = css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n ", "\n box-shadow: 0 ", "px 0 0 ", "\n"])), mainToolbar, akEditorToolbarKeylineHeight,
|
|
38
|
+
var mainToolbar = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n position: relative;\n align-items: center;\n box-shadow: 'none';\n\n transition: box-shadow 200ms;\n z-index: ", ";\n display: flex;\n height: 80px;\n flex-shrink: 0;\n background-color: ", ";\n\n & object {\n height: 0 !important;\n }\n"])), akEditorMenuZIndex, "var(--ds-surface, white)");
|
|
39
|
+
var mainToolbarWithKeyline = css(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n ", "\n box-shadow: 0 ", "px 0 0 ", "\n"])), mainToolbar, akEditorToolbarKeylineHeight, "var(--ds-border, ".concat(N30, ")"));
|
|
41
40
|
var mainToolbarCustomComponentsSlot = css(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: flex-end;\n flex-grow: 1;\n"])));
|
|
42
41
|
var sidebarArea = css(_templateObject8 || (_templateObject8 = _taggedTemplateLiteral(["\n height: 100%;\n box-sizing: border-box;\n"])));
|
|
43
42
|
|
|
@@ -4,8 +4,7 @@ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
|
|
|
4
4
|
|
|
5
5
|
import { css } from '@emotion/react';
|
|
6
6
|
import { N30 } from '@atlaskit/theme/colors';
|
|
7
|
-
import { token } from '@atlaskit/tokens';
|
|
8
7
|
export var triggerWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n"])));
|
|
9
|
-
export var separator = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background: ", ";\n width: 1px;\n height: 24px;\n display: inline-block;\n margin: 0 8px;\n"])),
|
|
8
|
+
export var separator = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n background: ", ";\n width: 1px;\n height: 24px;\n display: inline-block;\n margin: 0 8px;\n"])), "var(--ds-border, ".concat(N30, ")"));
|
|
10
9
|
export var wrapper = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n div {\n display: flex;\n }\n"])));
|
|
11
10
|
export var expandIconWrapper = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n margin-left: -8px;\n"])));
|
|
@@ -7,13 +7,12 @@ import { css } from '@emotion/react';
|
|
|
7
7
|
import { N400 } from '@atlaskit/theme/colors';
|
|
8
8
|
import { headingsSharedStyles } from '@atlaskit/editor-common/styles';
|
|
9
9
|
import { shortcutStyle } from '../../../../ui/styles';
|
|
10
|
-
import { token } from '@atlaskit/tokens';
|
|
11
10
|
export var blockTypeMenuItemStyle = function blockTypeMenuItemStyle(tagName, selected) {
|
|
12
11
|
// TEMP FIX: See https://product-fabric.atlassian.net/browse/ED-13878
|
|
13
|
-
var selectedStyle = selected ? "".concat(tagName, " { color: "
|
|
12
|
+
var selectedStyle = selected ? "".concat(tagName, " { color: ", "var(--ds-text, white)", " !important; }") : '';
|
|
14
13
|
return function (themeProps) {
|
|
15
14
|
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", ";\n > {\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n margin-top: 0;\n }\n }\n ", ";\n "])), headingsSharedStyles(themeProps), selectedStyle);
|
|
16
15
|
};
|
|
17
16
|
};
|
|
18
17
|
export var keyboardShortcut = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n ", "\n margin-left: 16px;\n"])), shortcutStyle);
|
|
19
|
-
export var keyboardShortcutSelect = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n color: ", ";\n"])),
|
|
18
|
+
export var keyboardShortcutSelect = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n color: ", ";\n"])), "var(--ds-icon, ".concat(N400, ")"));
|
|
@@ -32,9 +32,8 @@ import { isBreakoutMarkAllowed } from '../utils/is-breakout-mark-allowed';
|
|
|
32
32
|
import { getPluginState } from '../plugin-key';
|
|
33
33
|
import { NodeSelection } from 'prosemirror-state';
|
|
34
34
|
import { isSupportedNodeForBreakout } from '../utils/is-supported-node';
|
|
35
|
-
import { token } from '@atlaskit/tokens';
|
|
36
35
|
import { layers } from '@atlaskit/theme/constants';
|
|
37
|
-
var toolbarButtonWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n && button {\n background: ", ";\n color: ", ";\n :hover {\n background: ", ";\n color: ", " !important;\n }\n }\n"])),
|
|
36
|
+
var toolbarButtonWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n && button {\n background: ", ";\n color: ", ";\n :hover {\n background: ", ";\n color: ", " !important;\n }\n }\n"])), "var(--ds-background-neutral, ".concat(N20A, ")"), "var(--ds-icon, ".concat(N300, ")"), "var(--ds-background-neutral-hovered, ".concat(B300, ")"), "var(--ds-icon, white)");
|
|
38
37
|
var BREAKOUT_MODE = {
|
|
39
38
|
FULL_WIDTH: 'full-width',
|
|
40
39
|
CENTER: 'center',
|
|
@@ -7,6 +7,5 @@ import { SelectionStyle, getSelectionStyles, akEditorDeleteBorder, akEditorDelet
|
|
|
7
7
|
import { N20 } from '@atlaskit/theme/colors';
|
|
8
8
|
import { SmartCardSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
9
9
|
import { akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
|
|
10
|
-
import { token } from '@atlaskit/tokens';
|
|
11
10
|
export var FLOATING_TOOLBAR_LINKPICKER_CLASSNAME = 'card-floating-toolbar--link-picker';
|
|
12
|
-
export var smartCardStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", " {\n max-width: calc(100% - 20px);\n vertical-align: top;\n word-break: break-all;\n\n .card {\n padding-left: 2px;\n padding-right: 2px;\n padding-top: 0.5em;\n padding-bottom: 0.5em;\n margin-bottom: -0.5em;\n\n .", " > a:focus {\n ", "\n }\n }\n\n &.", "\n .", "\n > a {\n ", "\n }\n .", " > a {\n /* EDM-1717: box-shadow Safari fix start */\n z-index: 1;\n position: relative;\n /* EDM-1717: box-shadow Safari fix end */\n }\n\n &.danger {\n .", " > a {\n box-shadow: 0 0 0 1px\n ", ";\n /* EDM-1717: box-shadow Safari fix start */\n z-index: 2;\n /* EDM-1717: box-shadow Safari fix end */\n }\n }\n }\n\n .", " {\n .", " > div {\n cursor: pointer;\n &:hover {\n background-color: ", ";\n }\n }\n\n &.", "\n .", "\n > div {\n ", "\n }\n\n &.danger {\n .", " > div {\n box-shadow: 0 0 0 1px\n ", " !important;\n }\n }\n }\n\n .", " {\n .", " > div {\n cursor: pointer;\n &::after {\n transition: box-shadow 0s;\n }\n }\n &.", "\n .", "\n > div {\n ", "\n }\n\n &.", "\n .", "\n > div::after {\n ", "\n }\n\n &.danger {\n .media-card-frame::after {\n box-shadow: 0 0 0 1px\n ", " !important;\n background: ", " !important;\n }\n .richMedia-resize-handle-right::after,\n .richMedia-resize-handle-left::after {\n background: ", ";\n }\n }\n }\n\n .", " {\n padding: 0;\n }\n"])), SmartCardSharedCssClassName.INLINE_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), SmartCardSharedCssClassName.LOADER_WRAPPER, SmartCardSharedCssClassName.LOADER_WRAPPER,
|
|
11
|
+
export var smartCardStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", " {\n max-width: calc(100% - 20px);\n vertical-align: top;\n word-break: break-all;\n\n .card {\n padding-left: 2px;\n padding-right: 2px;\n padding-top: 0.5em;\n padding-bottom: 0.5em;\n margin-bottom: -0.5em;\n\n .", " > a:focus {\n ", "\n }\n }\n\n &.", "\n .", "\n > a {\n ", "\n }\n .", " > a {\n /* EDM-1717: box-shadow Safari fix start */\n z-index: 1;\n position: relative;\n /* EDM-1717: box-shadow Safari fix end */\n }\n\n &.danger {\n .", " > a {\n box-shadow: 0 0 0 1px\n ", ";\n /* EDM-1717: box-shadow Safari fix start */\n z-index: 2;\n /* EDM-1717: box-shadow Safari fix end */\n }\n }\n }\n\n .", " {\n .", " > div {\n cursor: pointer;\n &:hover {\n background-color: ", ";\n }\n }\n\n &.", "\n .", "\n > div {\n ", "\n }\n\n &.danger {\n .", " > div {\n box-shadow: 0 0 0 1px\n ", " !important;\n }\n }\n }\n\n .", " {\n .", " > div {\n cursor: pointer;\n &::after {\n transition: box-shadow 0s;\n }\n }\n &.", "\n .", "\n > div {\n ", "\n }\n\n &.", "\n .", "\n > div::after {\n ", "\n }\n\n &.danger {\n .media-card-frame::after {\n box-shadow: 0 0 0 1px\n ", " !important;\n background: ", " !important;\n }\n .richMedia-resize-handle-right::after,\n .richMedia-resize-handle-left::after {\n background: ", ";\n }\n }\n }\n\n .", " {\n padding: 0;\n }\n"])), SmartCardSharedCssClassName.INLINE_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), SmartCardSharedCssClassName.LOADER_WRAPPER, SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-background-neutral-subtle-hovered, ".concat(N20, ")"), akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.EMBED_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER, akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), "var(--ds-background-danger, ".concat(akEditorDeleteBackground, ")"), "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), FLOATING_TOOLBAR_LINKPICKER_CLASSNAME);
|
|
@@ -5,14 +5,13 @@ var _templateObject, _templateObject2;
|
|
|
5
5
|
import { css } from '@emotion/react';
|
|
6
6
|
import { R75 } from '@atlaskit/theme/colors';
|
|
7
7
|
import { akEditorDeleteBackground, akEditorDeleteBorder, akEditorSelectedBorderSize, akEditorDeleteIconColor, SelectionStyle, getSelectionStyles, akEditorSelectedNodeClassName, blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
|
|
8
|
-
import { token } from '@atlaskit/tokens';
|
|
9
8
|
import { codeBlockClassNames } from './ui/class-names';
|
|
10
9
|
import { codeBlockSharedStyles } from '@atlaskit/editor-common/styles';
|
|
11
10
|
|
|
12
11
|
var GutterDangerOverlay = function GutterDangerOverlay() {
|
|
13
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n &::after {\n height: 100%;\n content: '';\n position: absolute;\n left: 0;\n top: 0;\n width: 24px;\n background-color: ", ";\n }\n"])),
|
|
12
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n &::after {\n height: 100%;\n content: '';\n position: absolute;\n left: 0;\n top: 0;\n width: 24px;\n background-color: ", ";\n }\n"])), "var(--ds-blanket-danger, none)");
|
|
14
13
|
};
|
|
15
14
|
|
|
16
15
|
export var codeBlockStyles = function codeBlockStyles(props) {
|
|
17
|
-
return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n .ProseMirror {\n ", "\n }\n\n .ProseMirror li {\n /* if same list item has multiple code blocks we need top margin for all but first */\n > .code-block {\n margin: ", " 0 0 0;\n }\n > .code-block:first-child,\n > .ProseMirror-gapcursor:first-child + .code-block {\n margin-top: 0;\n }\n\n > div:last-of-type.code-block {\n margin-bottom: ", ";\n }\n }\n\n .ProseMirror .code-block.", ":not(.danger) {\n ", "\n }\n\n /* Danger when top level node */\n .ProseMirror .danger.code-block {\n box-shadow: 0 0 0 ", "px\n ", ";\n\n .", " {\n background-color: ", ";\n color: ", ";\n ", ";\n }\n\n .", " {\n background-color: ", ";\n }\n }\n\n /* Danger when nested node */\n .ProseMirror .danger .code-block {\n .", " {\n background-color: ", ";\n color: ", ";\n ", ";\n }\n\n .", " {\n background-color: ", ";\n }\n }\n"])), codeBlockSharedStyles(props), blockNodesVerticalMargin, blockNodesVerticalMargin, akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.BoxShadow, SelectionStyle.Blanket]), akEditorSelectedBorderSize,
|
|
16
|
+
return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n .ProseMirror {\n ", "\n }\n\n .ProseMirror li {\n /* if same list item has multiple code blocks we need top margin for all but first */\n > .code-block {\n margin: ", " 0 0 0;\n }\n > .code-block:first-child,\n > .ProseMirror-gapcursor:first-child + .code-block {\n margin-top: 0;\n }\n\n > div:last-of-type.code-block {\n margin-bottom: ", ";\n }\n }\n\n .ProseMirror .code-block.", ":not(.danger) {\n ", "\n }\n\n /* Danger when top level node */\n .ProseMirror .danger.code-block {\n box-shadow: 0 0 0 ", "px\n ", ";\n\n .", " {\n background-color: ", ";\n color: ", ";\n ", ";\n }\n\n .", " {\n background-color: ", ";\n }\n }\n\n /* Danger when nested node */\n .ProseMirror .danger .code-block {\n .", " {\n background-color: ", ";\n color: ", ";\n ", ";\n }\n\n .", " {\n background-color: ", ";\n }\n }\n"])), codeBlockSharedStyles(props), blockNodesVerticalMargin, blockNodesVerticalMargin, akEditorSelectedNodeClassName, getSelectionStyles([SelectionStyle.BoxShadow, SelectionStyle.Blanket]), akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), codeBlockClassNames.gutter, "var(--ds-background-danger, ".concat(R75, ")"), "var(--ds-text-danger, ".concat(akEditorDeleteIconColor, ")"), GutterDangerOverlay(), codeBlockClassNames.content, "var(--ds-blanket-danger, ".concat(akEditorDeleteBackground, ")"), codeBlockClassNames.gutter, "var(--ds-background-danger, rgba(255, 143, 115, 0.5))", "var(--ds-text-danger, ".concat(akEditorDeleteIconColor, ")"), GutterDangerOverlay(), codeBlockClassNames.content, "var(--ds-blanket-danger, rgba(255, 189, 173, 0.5))");
|
|
18
17
|
};
|
|
@@ -6,12 +6,11 @@ import { css } from '@emotion/react';
|
|
|
6
6
|
import { TELEPOINTER_DIM_CLASS } from './plugin-state';
|
|
7
7
|
import { colors } from './utils';
|
|
8
8
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
9
|
-
import { token } from '@atlaskit/tokens';
|
|
10
9
|
|
|
11
10
|
var telepointerColorStyle = function telepointerColorStyle(color, index) {
|
|
12
|
-
return "\n &.color-".concat(index, " {\n background-color: ").concat(color.selection, ";\n &::after {\n background-color: ").concat(color.solid, ";\n color: "
|
|
11
|
+
return "\n &.color-".concat(index, " {\n background-color: ").concat(color.selection, ";\n &::after {\n background-color: ").concat(color.solid, ";\n color: ", "var(--ds-text-inverse, #fff)", ";\n border-color: ").concat(color.solid, ";\n }\n }\n");
|
|
13
12
|
};
|
|
14
13
|
|
|
15
|
-
export var telepointerStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror .telepointer {\n position: relative;\n transition: opacity 200ms;\n\n &.telepointer-selection {\n line-height: 1.2;\n pointer-events: none;\n user-select: none;\n }\n\n &.telepointer-selection-badge::after {\n content: attr(data-initial);\n position: absolute;\n display: block;\n top: -14px;\n font-size: ", ";\n padding: 2px;\n color: ", ";\n left: -1px;\n border-radius: 2px 2px 2px 0;\n line-height: initial;\n }\n\n &.", " {\n opacity: 0.2;\n }\n\n ", ";\n }\n"])), relativeFontSizeToBase16(9),
|
|
14
|
+
export var telepointerStyle = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ProseMirror .telepointer {\n position: relative;\n transition: opacity 200ms;\n\n &.telepointer-selection {\n line-height: 1.2;\n pointer-events: none;\n user-select: none;\n }\n\n &.telepointer-selection-badge::after {\n content: attr(data-initial);\n position: absolute;\n display: block;\n top: -14px;\n font-size: ", ";\n padding: 2px;\n color: ", ";\n left: -1px;\n border-radius: 2px 2px 2px 0;\n line-height: initial;\n }\n\n &.", " {\n opacity: 0.2;\n }\n\n ", ";\n }\n"])), relativeFontSizeToBase16(9), "var(--ds-text-inverse, white)", TELEPOINTER_DIM_CLASS, colors.map(function (color, index) {
|
|
16
15
|
return telepointerColorStyle(color, index);
|
|
17
16
|
}));
|
|
@@ -6,9 +6,8 @@ import { css } from '@emotion/react';
|
|
|
6
6
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
7
7
|
import { N20 } from '@atlaskit/theme/colors';
|
|
8
8
|
import { akEditorSmallZIndex, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
9
|
-
|
|
10
|
-
export var inviteTeamWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: ", ";\n border-radius: 50%;\n min-width: ", "px;\n margin-left: -", "px;\n"])), token('color.background.neutral', N20), gridSize() * 4, gridSize() / 2);
|
|
9
|
+
export var inviteTeamWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: ", ";\n border-radius: 50%;\n min-width: ", "px;\n margin-left: -", "px;\n"])), "var(--ds-background-neutral, ".concat(N20, ")"), gridSize() * 4, gridSize() / 2);
|
|
11
10
|
export var avatarContainer = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin-right: ", "px;\n display: flex;\n align-items: center;\n\n // ED-13102: This is to override list styles that come from the\n // .wiki-content class in Confluence that should not apply within\n // the toolbar. Has to be extra specific to override.\n && > ul {\n list-style-type: none;\n }\n\n div:last-child button.invite-to-edit {\n border-radius: 50%;\n height: 32px;\n width: 32px;\n padding: 2px;\n }\n"])), gridSize());
|
|
12
11
|
export var badge = function badge(color) {
|
|
13
|
-
return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: block;\n position: absolute;\n right: 1px;\n bottom: 1px;\n width: 13px;\n height: 13px;\n z-index: ", ";\n border-radius: 3px;\n background: ", ";\n color: ", ";\n font-size: ", ";\n line-height: 0;\n padding-top: 7px;\n text-align: center;\n box-shadow: 0 0 1px ", ";\n box-sizing: border-box;\n"])), akEditorSmallZIndex, color,
|
|
12
|
+
return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: block;\n position: absolute;\n right: 1px;\n bottom: 1px;\n width: 13px;\n height: 13px;\n z-index: ", ";\n border-radius: 3px;\n background: ", ";\n color: ", ";\n font-size: ", ";\n line-height: 0;\n padding-top: 7px;\n text-align: center;\n box-shadow: 0 0 1px ", ";\n box-sizing: border-box;\n"])), akEditorSmallZIndex, color, "var(--ds-text-inverse, #fff)", relativeFontSizeToBase16(9), "var(--ds-border-inverse, #fff)");
|
|
14
13
|
};
|
|
@@ -4,6 +4,5 @@ var _templateObject;
|
|
|
4
4
|
|
|
5
5
|
import { css } from '@emotion/react';
|
|
6
6
|
import { DateSharedCssClassName } from '@atlaskit/editor-common/styles';
|
|
7
|
-
import { token } from '@atlaskit/tokens';
|
|
8
7
|
import { SelectionStyle, getSelectionStyles, akEditorSelectedBorderSize, akEditorDeleteBorder, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
|
|
9
|
-
export var dateStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", " {\n .", " {\n line-height: initial;\n cursor: pointer;\n }\n\n &.", " {\n .", " > span {\n ", "\n }\n }\n }\n\n .danger {\n .", ".", "\n .", "\n > span {\n box-shadow: 0 0 0 ", "px\n ", ";\n }\n }\n"])), DateSharedCssClassName.DATE_CONTAINER, DateSharedCssClassName.DATE_WRAPPER, akEditorSelectedNodeClassName, DateSharedCssClassName.DATE_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), DateSharedCssClassName.DATE_CONTAINER, akEditorSelectedNodeClassName, DateSharedCssClassName.DATE_WRAPPER, akEditorSelectedBorderSize,
|
|
8
|
+
export var dateStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .", " {\n .", " {\n line-height: initial;\n cursor: pointer;\n }\n\n &.", " {\n .", " > span {\n ", "\n }\n }\n }\n\n .danger {\n .", ".", "\n .", "\n > span {\n box-shadow: 0 0 0 ", "px\n ", ";\n }\n }\n"])), DateSharedCssClassName.DATE_CONTAINER, DateSharedCssClassName.DATE_WRAPPER, akEditorSelectedNodeClassName, DateSharedCssClassName.DATE_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), DateSharedCssClassName.DATE_CONTAINER, akEditorSelectedNodeClassName, DateSharedCssClassName.DATE_WRAPPER, akEditorSelectedBorderSize, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"));
|
|
@@ -23,13 +23,12 @@ import { akEditorFloatingDialogZIndex } from '@atlaskit/editor-shared-styles';
|
|
|
23
23
|
import Calendar from '@atlaskit/calendar';
|
|
24
24
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
25
25
|
import { N60A, N0 } from '@atlaskit/theme/colors';
|
|
26
|
-
import { token } from '@atlaskit/tokens';
|
|
27
26
|
import withOuterListeners from '../../../../ui/with-outer-listeners';
|
|
28
27
|
var PopupWithListeners = withOuterListeners(Popup);
|
|
29
28
|
import { INPUT_METHOD } from '../../../analytics/types/enums';
|
|
30
29
|
import { injectIntl } from 'react-intl-next';
|
|
31
30
|
import DatePickerInput from './date-picker-input';
|
|
32
|
-
var popupContentWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: 2px;\n border-radius: ", "px;\n box-shadow: ", ";\n background-color: ", ";\n"])), borderRadius(),
|
|
31
|
+
var popupContentWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n padding: 2px;\n border-radius: ", "px;\n box-shadow: ", ";\n background-color: ", ";\n"])), borderRadius(), "var(--ds-shadow-overlay, ".concat("0 4px 8px -2px ".concat(N60A, ", 0 0 1px ").concat(N60A), ")"), "var(--ds-surface-overlay, ".concat(N0, ")"));
|
|
33
32
|
|
|
34
33
|
var DatePicker = /*#__PURE__*/function (_React$Component) {
|
|
35
34
|
_inherits(DatePicker, _React$Component);
|
|
@@ -6,41 +6,40 @@ import { css } from '@emotion/react';
|
|
|
6
6
|
import { themed } from '@atlaskit/theme/components';
|
|
7
7
|
import { gridSize } from '@atlaskit/theme/constants';
|
|
8
8
|
import { R50, R300, N40A, N50A, N80A, DN50, R200 } from '@atlaskit/theme/colors';
|
|
9
|
-
import { token } from '@atlaskit/tokens';
|
|
10
9
|
import { sharedExpandStyles } from '@atlaskit/editor-common/ui';
|
|
11
10
|
import { SelectionStyle, getSelectionStyles, akLayoutGutterOffset, akEditorSelectedNodeClassName } from '@atlaskit/editor-shared-styles';
|
|
12
11
|
import { BreakoutCssClassName } from '../../breakout/constants';
|
|
13
12
|
import { expandClassNames } from './class-names';
|
|
14
13
|
var EXPAND_SELECTED_BACKGROUND = themed({
|
|
15
|
-
light:
|
|
16
|
-
dark:
|
|
14
|
+
light: "var(--ds-background-neutral-subtle, rgba(255, 255, 255, 0.6))",
|
|
15
|
+
dark: "var(--ds-background-neutral-subtle, rgba(9, 10, 11, 0.29))"
|
|
17
16
|
});
|
|
18
17
|
|
|
19
18
|
var EXPAND_ICON_COLOR = function EXPAND_ICON_COLOR(props) {
|
|
20
19
|
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n color: ", ";\n"])), themed({
|
|
21
|
-
light:
|
|
22
|
-
dark:
|
|
20
|
+
light: "var(--ds-icon-subtle, ".concat(N80A, ")"),
|
|
21
|
+
dark: "var(--ds-icon-subtle, #d9dde3)"
|
|
23
22
|
})(props));
|
|
24
23
|
};
|
|
25
24
|
|
|
26
25
|
var ACTIVE_STATE_BACKGROUND_COLOR = themed({
|
|
27
|
-
dark:
|
|
26
|
+
dark: "var(--ds-blanket-selected, ".concat("#0C294F4B", ")")
|
|
28
27
|
});
|
|
29
28
|
var ACTIVE_STATE_BORDER = themed({
|
|
30
|
-
dark: "1px solid ".concat(
|
|
29
|
+
dark: "1px solid ".concat("var(--ds-border-selected, ".concat("#4794ff4B", ")"))
|
|
31
30
|
});
|
|
32
31
|
var ACTIVE_STATE_BORDER_RADIUS = themed({
|
|
33
32
|
dark: '3px'
|
|
34
33
|
});
|
|
35
34
|
var DANGER_STATE_BACKGROUND_COLOR = themed({
|
|
36
|
-
light:
|
|
37
|
-
dark:
|
|
35
|
+
light: "var(--ds-background-danger, ".concat(R50, ")"),
|
|
36
|
+
dark: "var(--ds-background-danger, #441C13)"
|
|
38
37
|
});
|
|
39
38
|
var DANGER_STATE_BORDER = themed({
|
|
40
|
-
dark: "1px solid ".concat(
|
|
39
|
+
dark: "1px solid ".concat("var(--ds-border-danger, ".concat(R200, ")"))
|
|
41
40
|
});
|
|
42
41
|
var DANGER_STATE_BORDER_COLOR = themed({
|
|
43
|
-
light:
|
|
42
|
+
light: "var(--ds-border-danger, ".concat(R300, ")")
|
|
44
43
|
});
|
|
45
44
|
var DANGER_STATE_BORDER_RADIUS = themed({
|
|
46
45
|
dark: '3px'
|
|
@@ -53,10 +52,10 @@ export var expandStyles = function expandStyles(props) {
|
|
|
53
52
|
expanded: false,
|
|
54
53
|
focused: false
|
|
55
54
|
})(props), expandClassNames.titleInput, sharedExpandStyles.titleInputStyles(props), expandClassNames.titleContainer, sharedExpandStyles.titleContainerStyles(props), expandClassNames.expanded, EXPAND_SELECTED_BACKGROUND(props), themed({
|
|
56
|
-
light:
|
|
57
|
-
dark:
|
|
55
|
+
light: "var(--ds-border, ".concat(N40A, ")"),
|
|
56
|
+
dark: "var(--ds-border, ".concat(DN50, ")")
|
|
58
57
|
})(props), expandClassNames.content, gridSize(), expandClassNames.inputContainer, expandClassNames.prefix, expandClassNames.expanded, expandClassNames.prefix, expandClassNames.expanded, expandClassNames.iconContainer, EXPAND_ICON_COLOR(props), akEditorSelectedNodeClassName, themed({
|
|
59
|
-
light:
|
|
60
|
-
dark:
|
|
58
|
+
light: "var(--ds-border, ".concat(N50A, ")"),
|
|
59
|
+
dark: "var(--ds-border, ".concat(DN50, ")")
|
|
61
60
|
})(props), EXPAND_SELECTED_BACKGROUND(props));
|
|
62
61
|
};
|
|
@@ -7,7 +7,6 @@ import { themed } from '@atlaskit/theme/components';
|
|
|
7
7
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
8
8
|
import { DN30, DN900, N30 } from '@atlaskit/theme/colors';
|
|
9
9
|
import { wrapperDefault, padding } from '../styles';
|
|
10
|
-
import { token } from '@atlaskit/tokens';
|
|
11
10
|
export var widerLayoutClassName = 'wider-layout';
|
|
12
11
|
export var wrapperStyle = function wrapperStyle(theme) {
|
|
13
12
|
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n\n &.without-frame {\n background: transparent;\n }\n cursor: pointer;\n width: 100%;\n\n .extension-overflow-wrapper:not(.with-body) {\n overflow-x: auto;\n }\n"])), wrapperDefault(theme));
|
|
@@ -15,10 +14,10 @@ export var wrapperStyle = function wrapperStyle(theme) {
|
|
|
15
14
|
export var header = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n padding: ", "px ", "px 0px;\n vertical-align: middle;\n\n &.with-children:not(.without-frame) {\n padding: 4px 8px 8px;\n }\n &.without-frame {\n padding: 0;\n }\n"])), padding / 2, padding / 2);
|
|
16
15
|
export var content = function content(theme) {
|
|
17
16
|
return css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n padding: ", "px;\n background: ", ";\n color: ", ";\n border: 1px solid ", ";\n border-radius: ", "px;\n cursor: initial;\n"])), padding, themed({
|
|
18
|
-
light:
|
|
19
|
-
dark:
|
|
17
|
+
light: "var(--ds-surface, white)",
|
|
18
|
+
dark: "var(--ds-surface, ".concat(DN30, ")")
|
|
20
19
|
})(theme), themed({
|
|
21
|
-
dark:
|
|
22
|
-
})(theme),
|
|
20
|
+
dark: "var(--ds-text, ".concat(DN900, ")")
|
|
21
|
+
})(theme), "var(--ds-border, ".concat(N30, ")"), borderRadius());
|
|
23
22
|
};
|
|
24
23
|
export var contentWrapper = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n padding: 0 ", "px ", "px;\n"])), padding, padding);
|
|
@@ -5,7 +5,6 @@ var _templateObject;
|
|
|
5
5
|
import { css } from '@emotion/react';
|
|
6
6
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
7
7
|
import { wrapperDefault } from '../styles';
|
|
8
|
-
import { token } from '@atlaskit/tokens';
|
|
9
8
|
export var wrapperStyle = function wrapperStyle(theme) {
|
|
10
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n\n cursor: pointer;\n display: inline-flex;\n margin: 1px 1px 4px;\n\n > img {\n border-radius: ", "px;\n }\n\n &::after,\n &::before {\n vertical-align: text-top;\n display: inline-block;\n width: 1px;\n content: '';\n }\n\n &.with-children {\n padding: 0;\n background: ", ";\n }\n"])), wrapperDefault(theme), borderRadius(),
|
|
9
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n ", "\n\n cursor: pointer;\n display: inline-flex;\n margin: 1px 1px 4px;\n\n > img {\n border-radius: ", "px;\n }\n\n &::after,\n &::before {\n vertical-align: text-top;\n display: inline-block;\n width: 1px;\n content: '';\n }\n\n &.with-children {\n padding: 0;\n background: ", ";\n }\n"])), wrapperDefault(theme), borderRadius(), "var(--ds-background-neutral-subtle, white)");
|
|
11
10
|
};
|
|
@@ -6,18 +6,17 @@ import { css } from '@emotion/react';
|
|
|
6
6
|
import { themed } from '@atlaskit/theme/components';
|
|
7
7
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
8
8
|
import { N20, DN50, DN700, B200, N20A, N70 } from '@atlaskit/theme/colors';
|
|
9
|
-
import { token } from '@atlaskit/tokens';
|
|
10
9
|
import { EXTENSION_PADDING, BODIED_EXT_PADDING } from '@atlaskit/editor-common/styles';
|
|
11
10
|
export { EXTENSION_PADDING as padding, BODIED_EXT_PADDING };
|
|
12
11
|
export var wrapperDefault = function wrapperDefault(theme) {
|
|
13
12
|
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n background: ", ";\n border-radius: ", "px;\n color: ", ";\n position: relative;\n vertical-align: middle;\n\n .ProseMirror-selectednode > span > & > .extension-overlay {\n box-shadow: inset 0px 0px 0px 2px ", ";\n opacity: 1;\n }\n\n &.with-overlay {\n .extension-overlay {\n background: ", ";\n color: transparent;\n }\n\n &:hover .extension-overlay {\n opacity: 1;\n }\n }\n"])), themed({
|
|
14
|
-
light:
|
|
15
|
-
dark:
|
|
13
|
+
light: "var(--ds-background-neutral, ".concat(N20, ")"),
|
|
14
|
+
dark: "var(--ds-background-neutral, ".concat(DN50, ")")
|
|
16
15
|
})(theme), borderRadius(), themed({
|
|
17
|
-
dark:
|
|
18
|
-
})(theme),
|
|
16
|
+
dark: "var(--ds-text, ".concat(DN700, ")")
|
|
17
|
+
})(theme), "var(--ds-border-selected, ".concat(B200, ")"), "var(--ds-background-neutral-hovered, ".concat(N20A, ")"));
|
|
19
18
|
};
|
|
20
19
|
export var overlay = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n border-radius: ", "px;\n position: absolute;\n width: 100%;\n height: 100%;\n opacity: 0;\n pointer-events: none;\n transition: opacity 0.3s;\n"])), borderRadius());
|
|
21
20
|
export var placeholderFallback = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: inline-flex;\n align-items: center;\n\n & > img {\n margin: 0 4px;\n }\n /* TODO: fix in develop: https://atlassian.slack.com/archives/CFG3PSQ9E/p1647395052443259?thread_ts=1647394572.556029&cid=CFG3PSQ9E */\n /* stylelint-disable-next-line */\n label: placeholder-fallback;\n"])));
|
|
22
|
-
export var placeholderFallbackParams = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: inline-block;\n max-width: 200px;\n margin-left: 5px;\n color: ", ";\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n"])),
|
|
21
|
+
export var placeholderFallbackParams = css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: inline-block;\n max-width: 200px;\n margin-left: 5px;\n color: ", ";\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n"])), "var(--ds-text-subtlest, ".concat(N70, ")"));
|
|
23
22
|
export var styledImage = css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n max-height: 16px;\n max-width: 16px;\n /* TODO: fix in develop: https://atlassian.slack.com/archives/CFG3PSQ9E/p1647395052443259?thread_ts=1647394572.556029&cid=CFG3PSQ9E */\n /* stylelint-disable-next-line */\n label: lozenge-image;\n"])));
|
|
@@ -10,12 +10,11 @@ import { G300, N0 } from '@atlaskit/theme/colors';
|
|
|
10
10
|
import CheckCircleIcon from '@atlaskit/icon/glyph/check-circle';
|
|
11
11
|
import { FormattedMessage } from 'react-intl-next';
|
|
12
12
|
import { messages } from './messages';
|
|
13
|
-
import { token } from '@atlaskit/tokens';
|
|
14
13
|
|
|
15
14
|
var noop = function noop() {};
|
|
16
15
|
|
|
17
16
|
var saveIndicatorWrapper = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n justify-content: center;\n"])));
|
|
18
|
-
var saveIndicatorContent = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: fixed;\n width: 256px;\n bottom: 20px;\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: 6px 12px;\n\n background: ", ";\n\n /* E300 */\n box-shadow: ", ";\n border-radius: 16px;\n"])),
|
|
17
|
+
var saveIndicatorContent = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n position: fixed;\n width: 256px;\n bottom: 20px;\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: 6px 12px;\n\n background: ", ";\n\n /* E300 */\n box-shadow: ", ";\n border-radius: 16px;\n"])), "var(--ds-surface-overlay, ".concat(N0, ")"), "var(--ds-shadow-overlay, ".concat("0px 8px 12px rgba(9, 30, 66, 0.15), 0px 0px 1px rgba(9, 30, 66, 0.31)", ")"));
|
|
19
18
|
var saveIndicatorText = css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n padding-left: 6px;\n"])));
|
|
20
19
|
export var SaveIndicator = function SaveIndicator(_ref) {
|
|
21
20
|
var children = _ref.children,
|
|
@@ -55,7 +54,7 @@ export var SaveIndicator = function SaveIndicator(_ref) {
|
|
|
55
54
|
"data-testid": "save-indicator-content"
|
|
56
55
|
}, jsx(CheckCircleIcon, {
|
|
57
56
|
label: "Saving",
|
|
58
|
-
primaryColor:
|
|
57
|
+
primaryColor: "var(--ds-icon-success, ".concat(G300, ")"),
|
|
59
58
|
size: "small"
|
|
60
59
|
}), jsx("span", {
|
|
61
60
|
css: saveIndicatorText
|