@atlaskit/editor-common 92.1.2 → 93.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/afm-cc/tsconfig.json +0 -3
- package/afm-jira/tsconfig.json +0 -3
- package/afm-post-office/tsconfig.json +0 -3
- package/dist/cjs/element-browser/components/CategoryList.js +2 -3
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +11 -13
- package/dist/cjs/element-browser/components/ElementSearch.js +1 -2
- package/dist/cjs/element-browser/constants.js +1 -6
- package/dist/cjs/extensibility/Extension/Extension/styles.js +3 -4
- package/dist/cjs/extensibility/Extension/InlineExtension/styles.js +1 -2
- package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +6 -7
- package/dist/cjs/extensibility/Extension/styles.js +3 -4
- package/dist/cjs/extensibility/MultiBodiedExtension/styles.js +2 -3
- package/dist/cjs/icons/shared/SteppedRainbowIconDecoration.js +2 -3
- package/dist/cjs/keymaps/index.js +1 -2
- package/dist/cjs/link/ConfigureLinkOverlay/StyledButton.js +4 -5
- package/dist/cjs/link/ConfigureLinkOverlay/index.js +2 -4
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -2
- package/dist/cjs/link/LinkSearch/LinkSearchList.js +1 -2
- package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +4 -6
- package/dist/cjs/media-inline/constants.js +10 -8
- package/dist/cjs/media-inline/styles.js +1 -2
- package/dist/cjs/media-inline/views/error-view.js +1 -2
- package/dist/cjs/media-inline/views/wrapper.js +3 -4
- package/dist/cjs/media-single/CommentBadge.js +1 -2
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/node-width/index.js +5 -10
- package/dist/cjs/panel.js +0 -12
- package/dist/cjs/styles/shared/annotation.js +11 -14
- package/dist/cjs/styles/shared/code-block.js +2 -4
- package/dist/cjs/styles/shared/code-mark.js +1 -2
- package/dist/cjs/styles/shared/grid.js +2 -3
- package/dist/cjs/styles/shared/headings.js +56 -17
- package/dist/cjs/styles/shared/panel.js +13 -34
- package/dist/cjs/styles/shared/plugins.js +1 -2
- package/dist/cjs/styles/shared/resizer.js +1 -2
- package/dist/cjs/styles/shared/rule.js +1 -2
- package/dist/cjs/styles/shared/shadow.js +2 -3
- package/dist/cjs/styles/shared/smartCard.js +2 -3
- package/dist/cjs/table/SortingIcon.js +1 -2
- package/dist/cjs/ui/BaseTheme/index.js +1 -2
- package/dist/cjs/ui/Caption/index.js +2 -3
- package/dist/cjs/ui/DropList/index.js +4 -5
- package/dist/cjs/ui/Expand/index.js +2 -3
- package/dist/cjs/ui/Expand/sharedStyles.js +7 -17
- package/dist/cjs/ui/FloatingToolbar/Separator.js +1 -2
- package/dist/cjs/ui/FloatingToolbar/styles.js +10 -12
- package/dist/cjs/ui/Messages/index.js +8 -6
- package/dist/cjs/ui/PanelTextInput/styles.js +4 -5
- package/dist/cjs/ui/UnsupportedBlock/index.js +4 -6
- package/dist/cjs/ui/UnsupportedInline/index.js +4 -6
- package/dist/cjs/ui/WidthProvider/index.js +5 -39
- package/dist/cjs/ui-color/ColorPalette/Color/index.js +1 -2
- package/dist/cjs/ui-color/ColorPalette/Color/styles.js +3 -4
- package/dist/cjs/ui-color/ColorPalette/Palettes/common.js +1 -2
- package/dist/cjs/ui-color/ColorPalette/Palettes/panelBackgroundPalette.js +22 -24
- package/dist/cjs/ui-color/ColorPalette/index.js +2 -3
- package/dist/cjs/ui-color/index.js +0 -13
- package/dist/cjs/ui-menu/ColorPickerButton/index.js +3 -4
- package/dist/cjs/ui-menu/DropdownMenu/index.js +2 -3
- package/dist/es2019/element-browser/components/CategoryList.js +2 -3
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +3 -5
- package/dist/es2019/element-browser/components/ElementSearch.js +1 -2
- package/dist/es2019/element-browser/constants.js +1 -5
- package/dist/es2019/extensibility/Extension/Extension/styles.js +3 -4
- package/dist/es2019/extensibility/Extension/InlineExtension/styles.js +1 -2
- package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +6 -7
- package/dist/es2019/extensibility/Extension/styles.js +3 -4
- package/dist/es2019/extensibility/MultiBodiedExtension/styles.js +2 -3
- package/dist/es2019/icons/shared/SteppedRainbowIconDecoration.js +2 -3
- package/dist/es2019/keymaps/index.js +1 -2
- package/dist/es2019/link/ConfigureLinkOverlay/StyledButton.js +4 -5
- package/dist/es2019/link/ConfigureLinkOverlay/index.js +2 -4
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -2
- package/dist/es2019/link/LinkSearch/LinkSearchList.js +1 -2
- package/dist/es2019/link/LinkSearch/LinkSearchListItem.js +4 -6
- package/dist/es2019/media-inline/constants.js +10 -8
- package/dist/es2019/media-inline/styles.js +1 -2
- package/dist/es2019/media-inline/views/error-view.js +1 -2
- package/dist/es2019/media-inline/views/wrapper.js +3 -4
- package/dist/es2019/media-single/CommentBadge.js +1 -2
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/node-width/index.js +5 -9
- package/dist/es2019/panel.js +1 -1
- package/dist/es2019/styles/shared/annotation.js +11 -14
- package/dist/es2019/styles/shared/code-block.js +12 -14
- package/dist/es2019/styles/shared/code-mark.js +1 -2
- package/dist/es2019/styles/shared/grid.js +2 -3
- package/dist/es2019/styles/shared/headings.js +35 -8
- package/dist/es2019/styles/shared/panel.js +12 -25
- package/dist/es2019/styles/shared/plugins.js +1 -2
- package/dist/es2019/styles/shared/resizer.js +6 -7
- package/dist/es2019/styles/shared/rule.js +1 -2
- package/dist/es2019/styles/shared/shadow.js +2 -3
- package/dist/es2019/styles/shared/smartCard.js +5 -7
- package/dist/es2019/table/SortingIcon.js +2 -3
- package/dist/es2019/ui/BaseTheme/index.js +1 -2
- package/dist/es2019/ui/Caption/index.js +2 -3
- package/dist/es2019/ui/DropList/index.js +4 -5
- package/dist/es2019/ui/Expand/index.js +2 -3
- package/dist/es2019/ui/Expand/sharedStyles.js +7 -17
- package/dist/es2019/ui/FloatingToolbar/Separator.js +1 -2
- package/dist/es2019/ui/FloatingToolbar/styles.js +10 -12
- package/dist/es2019/ui/Messages/index.js +8 -6
- package/dist/es2019/ui/PanelTextInput/styles.js +4 -5
- package/dist/es2019/ui/UnsupportedBlock/index.js +4 -6
- package/dist/es2019/ui/UnsupportedInline/index.js +4 -6
- package/dist/es2019/ui/WidthProvider/index.js +2 -33
- package/dist/es2019/ui-color/ColorPalette/Color/index.js +1 -4
- package/dist/es2019/ui-color/ColorPalette/Color/styles.js +3 -4
- package/dist/es2019/ui-color/ColorPalette/Palettes/common.js +1 -2
- package/dist/es2019/ui-color/ColorPalette/Palettes/panelBackgroundPalette.js +21 -24
- package/dist/es2019/ui-color/ColorPalette/index.js +2 -3
- package/dist/es2019/ui-color/index.js +0 -1
- package/dist/es2019/ui-menu/ColorPickerButton/index.js +3 -4
- package/dist/es2019/ui-menu/DropdownMenu/index.js +3 -4
- package/dist/esm/element-browser/components/CategoryList.js +2 -3
- package/dist/esm/element-browser/components/ElementList/ElementList.js +3 -5
- package/dist/esm/element-browser/components/ElementSearch.js +1 -2
- package/dist/esm/element-browser/constants.js +1 -5
- package/dist/esm/extensibility/Extension/Extension/styles.js +3 -4
- package/dist/esm/extensibility/Extension/InlineExtension/styles.js +1 -2
- package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +6 -7
- package/dist/esm/extensibility/Extension/styles.js +3 -4
- package/dist/esm/extensibility/MultiBodiedExtension/styles.js +2 -3
- package/dist/esm/icons/shared/SteppedRainbowIconDecoration.js +2 -3
- package/dist/esm/keymaps/index.js +1 -2
- package/dist/esm/link/ConfigureLinkOverlay/StyledButton.js +4 -5
- package/dist/esm/link/ConfigureLinkOverlay/index.js +2 -4
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +1 -2
- package/dist/esm/link/LinkSearch/LinkSearchList.js +1 -2
- package/dist/esm/link/LinkSearch/LinkSearchListItem.js +4 -6
- package/dist/esm/media-inline/constants.js +10 -8
- package/dist/esm/media-inline/styles.js +1 -2
- package/dist/esm/media-inline/views/error-view.js +1 -2
- package/dist/esm/media-inline/views/wrapper.js +3 -4
- package/dist/esm/media-single/CommentBadge.js +1 -2
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/node-width/index.js +5 -9
- package/dist/esm/panel.js +1 -1
- package/dist/esm/styles/shared/annotation.js +11 -14
- package/dist/esm/styles/shared/code-block.js +2 -4
- package/dist/esm/styles/shared/code-mark.js +1 -2
- package/dist/esm/styles/shared/grid.js +2 -3
- package/dist/esm/styles/shared/headings.js +53 -17
- package/dist/esm/styles/shared/panel.js +12 -33
- package/dist/esm/styles/shared/plugins.js +1 -2
- package/dist/esm/styles/shared/resizer.js +1 -2
- package/dist/esm/styles/shared/rule.js +1 -2
- package/dist/esm/styles/shared/shadow.js +2 -3
- package/dist/esm/styles/shared/smartCard.js +2 -4
- package/dist/esm/table/SortingIcon.js +1 -2
- package/dist/esm/ui/BaseTheme/index.js +1 -2
- package/dist/esm/ui/Caption/index.js +2 -3
- package/dist/esm/ui/DropList/index.js +4 -5
- package/dist/esm/ui/Expand/index.js +2 -3
- package/dist/esm/ui/Expand/sharedStyles.js +7 -17
- package/dist/esm/ui/FloatingToolbar/Separator.js +1 -2
- package/dist/esm/ui/FloatingToolbar/styles.js +10 -12
- package/dist/esm/ui/Messages/index.js +8 -6
- package/dist/esm/ui/PanelTextInput/styles.js +4 -5
- package/dist/esm/ui/UnsupportedBlock/index.js +4 -6
- package/dist/esm/ui/UnsupportedInline/index.js +4 -6
- package/dist/esm/ui/WidthProvider/index.js +5 -39
- package/dist/esm/ui-color/ColorPalette/Color/index.js +1 -2
- package/dist/esm/ui-color/ColorPalette/Color/styles.js +3 -4
- package/dist/esm/ui-color/ColorPalette/Palettes/common.js +1 -2
- package/dist/esm/ui-color/ColorPalette/Palettes/panelBackgroundPalette.js +21 -24
- package/dist/esm/ui-color/ColorPalette/index.js +2 -3
- package/dist/esm/ui-color/index.js +0 -1
- package/dist/esm/ui-menu/ColorPickerButton/index.js +3 -4
- package/dist/esm/ui-menu/DropdownMenu/index.js +2 -3
- package/dist/types/element-browser/constants.d.ts +3 -3
- package/dist/types/media-inline/constants.d.ts +3 -0
- package/dist/types/panel.d.ts +1 -1
- package/dist/types/styles/shared/panel.d.ts +0 -2
- package/dist/types/ui/WidthProvider/index.d.ts +0 -5
- package/dist/types/ui-color/index.d.ts +0 -1
- package/dist/types-ts4.5/element-browser/constants.d.ts +3 -3
- package/dist/types-ts4.5/media-inline/constants.d.ts +3 -0
- package/dist/types-ts4.5/panel.d.ts +1 -1
- package/dist/types-ts4.5/styles/shared/panel.d.ts +0 -2
- package/dist/types-ts4.5/ui/WidthProvider/index.d.ts +0 -5
- package/dist/types-ts4.5/ui-color/index.d.ts +0 -1
- package/package.json +3 -7
- package/dist/cjs/ui/WidthProvider/isSsrButNoBreakoutScriptObserved.js +0 -11
- package/dist/cjs/ui-color/ColorPalette/Palettes/statusColorPalette.js +0 -60
- package/dist/es2019/ui/WidthProvider/isSsrButNoBreakoutScriptObserved.js +0 -6
- package/dist/es2019/ui-color/ColorPalette/Palettes/statusColorPalette.js +0 -54
- package/dist/esm/ui/WidthProvider/isSsrButNoBreakoutScriptObserved.js +0 -6
- package/dist/esm/ui-color/ColorPalette/Palettes/statusColorPalette.js +0 -54
- package/dist/types/ui/WidthProvider/isSsrButNoBreakoutScriptObserved.d.ts +0 -1
- package/dist/types/ui-color/ColorPalette/Palettes/statusColorPalette.d.ts +0 -4
- package/dist/types-ts4.5/ui/WidthProvider/isSsrButNoBreakoutScriptObserved.d.ts +0 -1
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/statusColorPalette.d.ts +0 -4
|
@@ -4,8 +4,6 @@ var _templateObject, _templateObject2;
|
|
|
4
4
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
5
|
import { css } from '@emotion/react';
|
|
6
6
|
import { akEditorCodeFontFamily, akEditorLineHeight, akEditorTableCellMinWidth, blockNodesVerticalMargin, overflowShadow, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
7
|
-
import { N20, N30, N400, N800 } from '@atlaskit/theme/colors';
|
|
8
|
-
import { fontSize } from '@atlaskit/theme/constants';
|
|
9
7
|
export var CodeBlockSharedCssClassName = {
|
|
10
8
|
CODEBLOCK_CONTAINER: 'code-block',
|
|
11
9
|
CODEBLOCK_START: 'code-block--start',
|
|
@@ -22,9 +20,9 @@ export var CodeBlockSharedCssClassName = {
|
|
|
22
20
|
CODEBLOCK_LINE_NUMBER_GUTTER_FG: 'line-number-gutter--fg'
|
|
23
21
|
};
|
|
24
22
|
export var codeBlockSharedStyles = function codeBlockSharedStyles() {
|
|
25
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", "\n\t\t> .", "\n\t\t> .", " {\n\t\tmargin-right: ", ";\n\n\t\tcode {\n\t\t\tdisplay: block;\n\t\t\tword-break: break-word;\n\t\t\twhite-space: pre-wrap;\n\t\t}\n\t}\n\n\t.", "\n\t\t> .", " {\n\t\tdisplay: flex;\n\t\tflex: 1;\n\n\t\tcode {\n\t\t\tflex-grow: 1;\n\n\t\t\twhite-space: pre;\n\t\t}\n\t}\n\n\t.", " {\n\t\tposition: relative;\n\t\tbackground-color: ", ";\n\t\tborder-radius: ", ";\n\t\tmargin: ", " 0 0 0;\n\t\tfont-family: ", ";\n\t\tmin-width: ", "px;\n\t\tcursor: pointer;\n\t\tclear: both;\n\n\t\t--ds--code--bg-color: transparent;\n\n\t\t/* This is necessary to allow for arrow key navigation in/out of code blocks in Firefox. */\n\t\twhite-space: normal;\n\n\t\t.", " {\n\t\t\tposition: absolute;\n\t\t\tvisibility: hidden;\n\t\t\theight: 1.5rem;\n\t\t\ttop: 0px;\n\t\t\tleft: 0px;\n\t\t}\n\n\t\t.", " {\n\t\t\tposition: absolute;\n\t\t\tvisibility: hidden;\n\t\t\theight: 1.5rem;\n\t\t\tbottom: 0px;\n\t\t\tright: 0px;\n\t\t}\n\n\t\t.", " {\n\t\t\tbackground-color: ", ";\n\t\t\tdisplay: flex;\n\t\t\tborder-radius: ", ";\n\t\t\twidth: 100%;\n\t\t\tcounter-reset: line;\n\t\t\toverflow-x: auto;\n\n\t\t\tbackground-image: ", ";\n\n\t\t\tbackground-repeat: no-repeat;\n\t\t\tbackground-attachment: local, local, local, local, scroll, scroll, scroll, scroll;\n\t\t\tbackground-size:\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t1px 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t1px 100%;\n\t\t\tbackground-position:\n\t\t\t\t0 0,\n\t\t\t\t0 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t0 0,\n\t\t\t\t0 0;\n\n\t\t\t/* Be careful if refactoring this; it is needed to keep arrow key navigation in Firefox consistent with other browsers. */\n\t\t\toverflow-y: hidden;\n\t\t}\n\n\t\t.", " {\n\t\t\t// relative position set so number gutter remains absolute on horizontal scroll.\n\t\t\tposition: relative;\n\t\t}\n\n\t\t.", " {\n\t\t\tflex-shrink: 0;\n\t\t\ttext-align: right;\n\t\t\tbackground-color: ", ";\n\t\t\tpadding: ", ";\n\t\t\tposition: relative;\n\n\t\t\tspan {\n\t\t\t\tdisplay: block;\n\t\t\t\tline-height: 0;\n\t\t\t\tfont-size: 0;\n\n\t\t\t\t::before {\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\tcontent: counter(line);\n\t\t\t\t\tcounter-increment: line;\n\t\t\t\t\tcolor: ", ";\n\t\t\t\t\tfont-size: ", ";\n\t\t\t\t\tline-height: 1.5rem;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tbackground-color: ", ";\n\t\t\tposition: relative;\n\t\t\twidth: var(--lineNumberGutterWidth, 2rem);\n\t\t\tpadding: 0px ", ";\n\t\t\tflex-shrink: 0;\n\t\t\tfont-size: ", ";\n\t\t\tbox-sizing: content-box;\n\t\t}\n\n\t\t.", " {\n\t\t\tdisplay: flex;\n\t\t\tflex: 1;\n\n\t\t\tcode {\n\t\t\t\tflex-grow: 1;\n\t\t\t\ttab-size: 4;\n\t\t\t\tcursor: text;\n\t\t\t\tcolor: ", ";\n\t\t\t\tborder-radius: ", ";\n\t\t\t\tmargin: ", ";\n\t\t\t\twhite-space: pre;\n\t\t\t\tfont-size: ", ";\n\t\t\t\tline-height: 1.5rem;\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tcode {\n\t\t\t\ttab-size: 4;\n\t\t\t\tcursor: text;\n\t\t\t\tcolor: ", ";\n\t\t\t\tborder-radius: ", ";\n\t\t\t\tmargin: ", ";\n\t\t\t\tfont-size: ", ";\n\t\t\t\tline-height: 1.5rem;\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tpointer-events: none;\n\t\t\tuser-select: none;\n\t\t\twidth: var(--lineNumberGutterWidth, 2rem);\n\t\t\tleft: 0;\n\t\t\tposition: absolute;\n\t\t\tfont-size: ", ";\n\t\t\tpadding: 0px ", ";\n\t\t\tline-height: 1.5rem;\n\t\t\ttext-align: right;\n\t\t\tcolor: ", ";\n\t\t\tbox-sizing: content-box;\n\t\t}\n\t}\n"])), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_FG_WRAPPED, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER_FG, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_FG, "var(--ds-space-100, 8px)", CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER_FG, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_FG, CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised,
|
|
23
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", "\n\t\t> .", "\n\t\t> .", " {\n\t\tmargin-right: ", ";\n\n\t\tcode {\n\t\t\tdisplay: block;\n\t\t\tword-break: break-word;\n\t\t\twhite-space: pre-wrap;\n\t\t}\n\t}\n\n\t.", "\n\t\t> .", " {\n\t\tdisplay: flex;\n\t\tflex: 1;\n\n\t\tcode {\n\t\t\tflex-grow: 1;\n\n\t\t\twhite-space: pre;\n\t\t}\n\t}\n\n\t.", " {\n\t\tposition: relative;\n\t\tbackground-color: ", ";\n\t\tborder-radius: ", ";\n\t\tmargin: ", " 0 0 0;\n\t\tfont-family: ", ";\n\t\tmin-width: ", "px;\n\t\tcursor: pointer;\n\t\tclear: both;\n\n\t\t--ds--code--bg-color: transparent;\n\n\t\t/* This is necessary to allow for arrow key navigation in/out of code blocks in Firefox. */\n\t\twhite-space: normal;\n\n\t\t.", " {\n\t\t\tposition: absolute;\n\t\t\tvisibility: hidden;\n\t\t\theight: 1.5rem;\n\t\t\ttop: 0px;\n\t\t\tleft: 0px;\n\t\t}\n\n\t\t.", " {\n\t\t\tposition: absolute;\n\t\t\tvisibility: hidden;\n\t\t\theight: 1.5rem;\n\t\t\tbottom: 0px;\n\t\t\tright: 0px;\n\t\t}\n\n\t\t.", " {\n\t\t\tbackground-color: ", ";\n\t\t\tdisplay: flex;\n\t\t\tborder-radius: ", ";\n\t\t\twidth: 100%;\n\t\t\tcounter-reset: line;\n\t\t\toverflow-x: auto;\n\n\t\t\tbackground-image: ", ";\n\n\t\t\tbackground-repeat: no-repeat;\n\t\t\tbackground-attachment: local, local, local, local, scroll, scroll, scroll, scroll;\n\t\t\tbackground-size:\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t1px 100%,\n\t\t\t\t", " 100%,\n\t\t\t\t1px 100%;\n\t\t\tbackground-position:\n\t\t\t\t0 0,\n\t\t\t\t0 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t100% 0,\n\t\t\t\t0 0,\n\t\t\t\t0 0;\n\n\t\t\t/* Be careful if refactoring this; it is needed to keep arrow key navigation in Firefox consistent with other browsers. */\n\t\t\toverflow-y: hidden;\n\t\t}\n\n\t\t.", " {\n\t\t\t// relative position set so number gutter remains absolute on horizontal scroll.\n\t\t\tposition: relative;\n\t\t}\n\n\t\t.", " {\n\t\t\tflex-shrink: 0;\n\t\t\ttext-align: right;\n\t\t\tbackground-color: ", ";\n\t\t\tpadding: ", ";\n\t\t\tposition: relative;\n\n\t\t\tspan {\n\t\t\t\tdisplay: block;\n\t\t\t\tline-height: 0;\n\t\t\t\tfont-size: 0;\n\n\t\t\t\t::before {\n\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\tcontent: counter(line);\n\t\t\t\t\tcounter-increment: line;\n\t\t\t\t\tcolor: ", ";\n\t\t\t\t\tfont-size: ", ";\n\t\t\t\t\tline-height: 1.5rem;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tbackground-color: ", ";\n\t\t\tposition: relative;\n\t\t\twidth: var(--lineNumberGutterWidth, 2rem);\n\t\t\tpadding: 0px ", ";\n\t\t\tflex-shrink: 0;\n\t\t\tfont-size: ", ";\n\t\t\tbox-sizing: content-box;\n\t\t}\n\n\t\t.", " {\n\t\t\tdisplay: flex;\n\t\t\tflex: 1;\n\n\t\t\tcode {\n\t\t\t\tflex-grow: 1;\n\t\t\t\ttab-size: 4;\n\t\t\t\tcursor: text;\n\t\t\t\tcolor: ", ";\n\t\t\t\tborder-radius: ", ";\n\t\t\t\tmargin: ", ";\n\t\t\t\twhite-space: pre;\n\t\t\t\tfont-size: ", ";\n\t\t\t\tline-height: 1.5rem;\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tcode {\n\t\t\t\ttab-size: 4;\n\t\t\t\tcursor: text;\n\t\t\t\tcolor: ", ";\n\t\t\t\tborder-radius: ", ";\n\t\t\t\tmargin: ", ";\n\t\t\t\tfont-size: ", ";\n\t\t\t\tline-height: 1.5rem;\n\t\t\t}\n\t\t}\n\n\t\t.", " {\n\t\t\tpointer-events: none;\n\t\t\tuser-select: none;\n\t\t\twidth: var(--lineNumberGutterWidth, 2rem);\n\t\t\tleft: 0;\n\t\t\tposition: absolute;\n\t\t\tfont-size: ", ";\n\t\t\tpadding: 0px ", ";\n\t\t\tline-height: 1.5rem;\n\t\t\ttext-align: right;\n\t\t\tcolor: ", ";\n\t\t\tbox-sizing: content-box;\n\t\t}\n\t}\n"])), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_FG_WRAPPED, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER_FG, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_FG, "var(--ds-space-100, 8px)", CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER_FG, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_FG, CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER, "var(--ds-surface-raised, #FFFFFF)", "var(--ds-border-radius, 3px)", blockNodesVerticalMargin, akEditorCodeFontFamily, akEditorTableCellMinWidth, CodeBlockSharedCssClassName.CODEBLOCK_START, CodeBlockSharedCssClassName.CODEBLOCK_END, CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER, "var(--ds-background-neutral, #091E420F)", "var(--ds-border-radius, 3px)", overflowShadow({
|
|
26
24
|
leftCoverWidth: "var(--ds-space-300, 24px)"
|
|
27
|
-
}), "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER_FG, CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER, "var(--ds-background-neutral,
|
|
25
|
+
}), "var(--ds-space-300, 24px)", "var(--ds-space-300, 24px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", "var(--ds-space-100, 8px)", CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_WRAPPER_FG, CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER, "var(--ds-background-neutral, #091E420F)", "var(--ds-space-100, 8px)", "var(--ds-text-subtlest, #626F86)", relativeFontSizeToBase16(14), CodeBlockSharedCssClassName.CODEBLOCK_LINE_NUMBER_GUTTER_FG, "var(--ds-background-neutral, #091E420F)", "var(--ds-space-100, 8px)", relativeFontSizeToBase16(14), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT, "var(--ds-text, #172B4D)", "var(--ds-border-radius, 3px)", "var(--ds-space-100, 8px)", relativeFontSizeToBase16(14), CodeBlockSharedCssClassName.CODEBLOCK_CONTENT_FG, "var(--ds-text, #172B4D)", "var(--ds-border-radius, 3px)", "var(--ds-space-100, 8px)", relativeFontSizeToBase16(14), CodeBlockSharedCssClassName.CODEBLOCK_CONTAINER_LINE_NUMBER_WIDGET, relativeFontSizeToBase16(14), "var(--ds-space-100, 8px)", "var(--ds-text-subtlest, #505F79)");
|
|
28
26
|
};
|
|
29
27
|
|
|
30
28
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
@@ -4,12 +4,11 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
5
5
|
import { css } from '@emotion/react';
|
|
6
6
|
import { getCodeStyles } from '@atlaskit/code/inline';
|
|
7
|
-
import { N30A } from '@atlaskit/theme/colors';
|
|
8
7
|
export var codeMarkSharedStyles = function codeMarkSharedStyles() {
|
|
9
8
|
return css({
|
|
10
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
11
10
|
'.code': _objectSpread({
|
|
12
|
-
'--ds--code--bg-color': "var(--ds-background-neutral,
|
|
11
|
+
'--ds--code--bg-color': "var(--ds-background-neutral, #091E420F)"
|
|
13
12
|
}, getCodeStyles())
|
|
14
13
|
});
|
|
15
14
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
import { akEditorGridLineZIndex } from '@atlaskit/editor-shared-styles';
|
|
4
|
-
import { B200, N30A } from '@atlaskit/theme/colors';
|
|
5
4
|
export var GRID_GUTTER = 12;
|
|
6
5
|
|
|
7
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
@@ -24,7 +23,7 @@ export var gridStyles = css({
|
|
|
24
23
|
},
|
|
25
24
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
26
25
|
'.gridLine': {
|
|
27
|
-
borderLeft: "1px solid ".concat("var(--ds-border,
|
|
26
|
+
borderLeft: "1px solid ".concat("var(--ds-border, #091E4224)"),
|
|
28
27
|
display: 'inline-block',
|
|
29
28
|
boxSizing: 'border-box',
|
|
30
29
|
height: '100%',
|
|
@@ -35,6 +34,6 @@ export var gridStyles = css({
|
|
|
35
34
|
},
|
|
36
35
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
37
36
|
'.highlight': {
|
|
38
|
-
borderLeft: "1px solid ".concat("var(--ds-border-focused,
|
|
37
|
+
borderLeft: "1px solid ".concat("var(--ds-border-focused, #388BFF)")
|
|
39
38
|
}
|
|
40
39
|
});
|
|
@@ -1,43 +1,79 @@
|
|
|
1
|
-
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
1
|
/* eslint-disable @atlaskit/design-system/use-tokens-space */
|
|
2
|
+
/* eslint-disable @atlaskit/design-system/use-tokens-typography */
|
|
5
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
4
|
import { css } from '@emotion/react';
|
|
7
|
-
import { h100, h300, h400, h500, h600, h700 } from '@atlaskit/theme/typography';
|
|
8
|
-
|
|
9
5
|
// @see typography spreadsheet: https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
|
|
10
6
|
// text sizing prototype: http://proto/fabricrender/
|
|
11
7
|
export var headingsSharedStyles = function headingsSharedStyles() {
|
|
12
8
|
return css({
|
|
13
9
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
14
|
-
'& h1':
|
|
10
|
+
'& h1': {
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
12
|
+
fontSize: "".concat(24 / 14, "em"),
|
|
13
|
+
fontStyle: 'inherit',
|
|
14
|
+
lineHeight: 28 / 24,
|
|
15
|
+
color: "var(--ds-text, #172B4D)",
|
|
16
|
+
fontWeight: "var(--ds-font-weight-medium, 500)",
|
|
17
|
+
letterSpacing: "-0.01em",
|
|
15
18
|
marginBottom: 0,
|
|
16
19
|
marginTop: '1.667em'
|
|
17
|
-
}
|
|
20
|
+
},
|
|
18
21
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
19
|
-
'& h2':
|
|
22
|
+
'& h2': {
|
|
23
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
24
|
+
fontSize: "".concat(20 / 14, "em"),
|
|
25
|
+
fontStyle: 'inherit',
|
|
26
|
+
lineHeight: 24 / 20,
|
|
27
|
+
color: "var(--ds-text, #172B4D)",
|
|
28
|
+
fontWeight: "var(--ds-font-weight-medium, 500)",
|
|
29
|
+
letterSpacing: "-0.008em",
|
|
20
30
|
marginTop: '1.8em',
|
|
21
31
|
marginBottom: 0
|
|
22
|
-
}
|
|
32
|
+
},
|
|
23
33
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
24
|
-
'& h3':
|
|
34
|
+
'& h3': {
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
36
|
+
fontSize: "".concat(16 / 14, "em"),
|
|
37
|
+
fontStyle: 'inherit',
|
|
38
|
+
lineHeight: 20 / 16,
|
|
39
|
+
color: "var(--ds-text, #172B4D)",
|
|
40
|
+
fontWeight: "var(--ds-font-weight-semibold, 600)",
|
|
41
|
+
letterSpacing: "-0.006em",
|
|
25
42
|
marginTop: '2em',
|
|
26
43
|
marginBottom: 0
|
|
27
|
-
}
|
|
44
|
+
},
|
|
28
45
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
29
|
-
'& h4':
|
|
46
|
+
'& h4': {
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
48
|
+
fontSize: "".concat(14 / 14, "em"),
|
|
49
|
+
fontStyle: 'inherit',
|
|
50
|
+
lineHeight: 16 / 14,
|
|
51
|
+
color: "var(--ds-text, #172B4D)",
|
|
52
|
+
fontWeight: "var(--ds-font-weight-semibold, 600)",
|
|
53
|
+
letterSpacing: "-0.003em",
|
|
30
54
|
marginTop: '1.357em'
|
|
31
|
-
}
|
|
55
|
+
},
|
|
32
56
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
33
|
-
'& h5':
|
|
57
|
+
'& h5': {
|
|
58
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
59
|
+
fontSize: "".concat(12 / 14, "em"),
|
|
60
|
+
fontStyle: 'inherit',
|
|
61
|
+
lineHeight: 16 / 12,
|
|
62
|
+
color: "var(--ds-text, #172B4D)",
|
|
63
|
+
fontWeight: "var(--ds-font-weight-semibold, 600)",
|
|
34
64
|
marginTop: '1.667em',
|
|
35
65
|
textTransform: 'none'
|
|
36
|
-
}
|
|
66
|
+
},
|
|
37
67
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
38
|
-
'& h6':
|
|
68
|
+
'& h6': {
|
|
69
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
70
|
+
fontSize: "".concat(11 / 14, "em"),
|
|
71
|
+
fontStyle: 'inherit',
|
|
72
|
+
lineHeight: 16 / 11,
|
|
73
|
+
color: "var(--ds-text-subtlest, #626F86)",
|
|
74
|
+
fontWeight: "var(--ds-font-weight-bold, 700)",
|
|
39
75
|
marginTop: '1.455em',
|
|
40
76
|
textTransform: 'none'
|
|
41
|
-
}
|
|
77
|
+
}
|
|
42
78
|
});
|
|
43
79
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
3
|
-
import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
|
|
4
3
|
var _templateObject;
|
|
5
4
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
6
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
@@ -10,15 +9,14 @@ import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
|
|
|
10
9
|
import { akEditorTableCellMinWidth, blockNodesVerticalMargin } from '@atlaskit/editor-shared-styles';
|
|
11
10
|
import { akEditorCustomIconSize } from '@atlaskit/editor-shared-styles/consts';
|
|
12
11
|
import { emojiImage, emojiSprite } from '@atlaskit/emoji';
|
|
13
|
-
import { B100, B400, B50, B75, G200, G400, G50, G75, N0, N20, N60, P100, P400, P50, P75, R100, R400, R50, R75, T100, T50, T75, Y200, Y400, Y50, Y75 } from '@atlaskit/theme/colors';
|
|
14
12
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
15
13
|
var lightPanelColors = {
|
|
16
|
-
info:
|
|
17
|
-
note:
|
|
18
|
-
tip:
|
|
19
|
-
success:
|
|
20
|
-
warning:
|
|
21
|
-
error:
|
|
14
|
+
info: '#DEEBFF',
|
|
15
|
+
note: '#EAE6FF',
|
|
16
|
+
tip: '#E3FCEF',
|
|
17
|
+
success: '#E3FCEF',
|
|
18
|
+
warning: '#FFFAE6',
|
|
19
|
+
error: '#FFEBE6'
|
|
22
20
|
};
|
|
23
21
|
export var darkPanelColors = {
|
|
24
22
|
// standard panels
|
|
@@ -83,37 +81,18 @@ export var darkPanelColors = {
|
|
|
83
81
|
TextColor: '#D9DDE3'
|
|
84
82
|
};
|
|
85
83
|
var lightIconColor = {
|
|
86
|
-
info: "var(--ds-icon-information,
|
|
87
|
-
note: "var(--ds-icon-discovery,
|
|
88
|
-
tip: "var(--ds-icon-success,
|
|
89
|
-
success: "var(--ds-icon-success,
|
|
90
|
-
warning: "var(--ds-icon-warning,
|
|
91
|
-
error: "var(--ds-icon-danger,
|
|
84
|
+
info: "var(--ds-icon-information, #1D7AFC)",
|
|
85
|
+
note: "var(--ds-icon-discovery, #8270DB)",
|
|
86
|
+
tip: "var(--ds-icon-success, #22A06B)",
|
|
87
|
+
success: "var(--ds-icon-success, #22A06B)",
|
|
88
|
+
warning: "var(--ds-icon-warning, #E56910)",
|
|
89
|
+
error: "var(--ds-icon-danger, #C9372C)"
|
|
92
90
|
};
|
|
93
91
|
|
|
94
92
|
// New custom icons are a little smaller than predefined icons.
|
|
95
93
|
// To fix alignment issues with custom icons, vertical alignment is updated.
|
|
96
94
|
var panelEmojiSpriteVerticalAlignment = -(8 * 3 - akEditorCustomIconSize) / 2;
|
|
97
95
|
var panelEmojiImageVerticalAlignment = panelEmojiSpriteVerticalAlignment - 1;
|
|
98
|
-
|
|
99
|
-
// TODO: https://product-fabric.atlassian.net/browse/DSP-4066
|
|
100
|
-
var panelDarkModeColors = [[B50, darkPanelColors.B1200S], [B75, darkPanelColors.B900], [B100, darkPanelColors.B800S], [N0, darkPanelColors.LightGray], [N20, darkPanelColors.Gray], [N60, darkPanelColors.DarkGray], [T50, darkPanelColors.T1200S], [T75, darkPanelColors.T900], [T100, darkPanelColors.T900S], [G50, darkPanelColors.G1200S], [G75, darkPanelColors.G900], [G200, darkPanelColors.G900S], [Y50, darkPanelColors.Y1200S], [Y75, darkPanelColors.Y900], [Y200, darkPanelColors.Y800S], [R50, darkPanelColors.R1200S], [R75, darkPanelColors.R900], [R100, darkPanelColors.R800S], [P50, darkPanelColors.P1200S], [P75, darkPanelColors.P900], [P100, darkPanelColors.P800S]];
|
|
101
|
-
|
|
102
|
-
// used for custom panels
|
|
103
|
-
export var getPanelDarkColor = function getPanelDarkColor(panelColor) {
|
|
104
|
-
var colorObject = panelDarkModeColors.find(function (color) {
|
|
105
|
-
return color[0] === panelColor || color[1] === panelColor;
|
|
106
|
-
});
|
|
107
|
-
return colorObject ? colorObject[1] : darkPanelColors.B1200S;
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
// used for custom panels
|
|
111
|
-
export var getPanelBackgroundDarkModeColors = panelDarkModeColors.map(function (_ref) {
|
|
112
|
-
var _ref2 = _slicedToArray(_ref, 2),
|
|
113
|
-
colorName = _ref2[0],
|
|
114
|
-
colorValue = _ref2[1];
|
|
115
|
-
return getPanelDarkModeCSS(colorName, colorValue);
|
|
116
|
-
}).join('\n');
|
|
117
96
|
export function getPanelDarkModeCSS(colorName, colorValue) {
|
|
118
97
|
return "\n &[data-panel-color=\"".concat(colorName, "\"] {\n background-color: ").concat(colorValue, " !important; // !important to override default style color\n color: ").concat(darkPanelColors.TextColor, ";\n }\n ");
|
|
119
98
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
-
import { N30 } from '@atlaskit/theme/colors';
|
|
4
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
5
4
|
export var buttonGroupStyle = css({
|
|
6
5
|
display: 'inline-flex',
|
|
@@ -14,7 +13,7 @@ export var buttonGroupStyle = css({
|
|
|
14
13
|
// If you make change here, change in above file as well.
|
|
15
14
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
16
15
|
export var separatorStyles = css({
|
|
17
|
-
background: "var(--ds-border,
|
|
16
|
+
background: "var(--ds-border, #091E4224)",
|
|
18
17
|
width: '1px',
|
|
19
18
|
height: '24px',
|
|
20
19
|
display: 'inline-block',
|
|
@@ -3,7 +3,6 @@ var _templateObject;
|
|
|
3
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
4
|
import { css } from '@emotion/react';
|
|
5
5
|
import { akEditorDeleteIconColor } from '@atlaskit/editor-shared-styles';
|
|
6
|
-
import { B200, B50, N60 } from '@atlaskit/theme/colors';
|
|
7
6
|
/*
|
|
8
7
|
Styles in this file are based on
|
|
9
8
|
packages/editor/editor-core/src/plugins/media/styles.ts
|
|
@@ -22,4 +21,4 @@ export var handleWrapperClass = 'resizer-handle-wrapper';
|
|
|
22
21
|
export var resizerHandleZIndex = 1;
|
|
23
22
|
|
|
24
23
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766, Seems perfectly safe to autofix, but comments would be lost…
|
|
25
|
-
export var resizerStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", " {\n\t\twill-change: width;\n\n\t\t&:hover,\n\t\t&.display-handle {\n\t\t\t& > .", " > .", " {\n\t\t\t\tvisibility: visible;\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\n\t\t&.is-resizing {\n\t\t\t& .", " {\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\t\t}\n\n\t\t&.", " {\n\t\t\t& .", " {\n\t\t\t\ttransition: none;\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tdisplay: flex;\n\t\tvisibility: hidden;\n\t\topacity: 0;\n\t\tflex-direction: column;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\twidth: 7px;\n\t\ttransition:\n\t\t\tvisibility 0.2s,\n\t\t\topacity 0.2s;\n\n\t\t/*\n NOTE: The below style is targeted at the div element added by the tooltip. We don't have any means of injecting styles\n into the tooltip\n */\n\t\t& div[role='presentation'] {\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\tjustify-content: center;\n\t\t\talign-items: center;\n\t\t\tmargin-top: ", ";\n\t\t\twhite-space: normal;\n\t\t}\n\n\t\t/*\n Handle Positions\n */\n\t\t&.left {\n\t\t\talign-items: flex-start;\n\t\t}\n\t\t&.right {\n\t\t\talign-items: flex-end;\n\t\t}\n\n\t\t/*\n Handle Sizing\n */\n\t\t&.small {\n\t\t\t& .", " {\n\t\t\t\theight: 43px;\n\t\t\t}\n\t\t}\n\t\t&.medium {\n\t\t\t& .", " {\n\t\t\t\theight: 64px;\n\t\t\t}\n\t\t}\n\t\t&.large {\n\t\t\t& .", " {\n\t\t\t\theight: 96px;\n\t\t\t}\n\t\t}\n\n\t\t/*\n Handle Alignment\n */\n\t\t&.sticky {\n\t\t\t& .", " {\n\t\t\t\tposition: sticky;\n\t\t\t\ttop: ", ";\n\t\t\t\tbottom: ", ";\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\t& .", " {\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\n\t\t\t& .", " {\n\t\t\t\tvisibility: visible;\n\t\t\t\topacity: 0.5;\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tcontent: ' ';\n\t\tdisplay: flex;\n\t\twidth: 3px;\n\t\tmargin: 0 ", ";\n\t\theight: 64px;\n\t\ttransition: background-color 0.2s;\n\t\tborder-radius: 6px;\n\t\tborder: 0;\n\t\tpadding: 0;\n\t\tz-index: 2;\n\t\toutline: none;\n\t\tmin-height: 24px;\n\t\tbackground: ", ";\n\n\t\t&:hover {\n\t\t\tcursor: col-resize;\n\t\t}\n\n\t\t&:focus {\n\t\t\tbackground: ", ";\n\n\t\t\t&::after {\n\t\t\t\tcontent: '';\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: ", ";\n\t\t\t\tright: ", ";\n\t\t\t\tbottom: ", ";\n\t\t\t\tleft: ", ";\n\t\t\t\tborder: 2px solid ", ";\n\t\t\t\tborder-radius: inherit;\n\t\t\t\tz-index: -1;\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tvisibility: hidden;\n\t\tposition: absolute;\n\t\twidth: 7px;\n\t\theight: calc(100% - 40px);\n\t\tborder-radius: 4px;\n\t\topacity: 0;\n\t\ttransition:\n\t\t\tbackground-color 0.2s,\n\t\t\tvisibility 0.2s,\n\t\t\topacity 0.2s;\n\n\t\t&.none {\n\t\t\tbackground: none;\n\t\t}\n\n\t\t&.shadow {\n\t\t\tbackground: ", ";\n\t\t}\n\n\t\t&.full-height {\n\t\t\tbackground: ", ";\n\t\t\theight: 100%;\n\t\t\tmin-height: 36px;\n\t\t}\n\t}\n\n\t.", " {\n\t\t& .", " {\n\t\t\tbackground: ", ";\n\t\t}\n\t}\n\n\t.", " {\n\t\tposition: relative;\n\t\tdisplay: inline-block;\n\t\twidth: 100%;\n\n\t\t&.", " {\n\t\t\tpadding: 0 ", ";\n\t\t\tleft: ", ";\n\t\t}\n\t}\n\n\t// This below style is here to make sure the image width is correct when nested in a table\n\ttable .", ", table .", ".", " {\n\t\tpadding: unset;\n\t\tleft: unset;\n\t}\n"])), resizerItemClassName, handleWrapperClass, resizerHandleClassName, resizerHandleThumbClassName, "var(--ds-border-focused,
|
|
24
|
+
export var resizerStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", " {\n\t\twill-change: width;\n\n\t\t&:hover,\n\t\t&.display-handle {\n\t\t\t& > .", " > .", " {\n\t\t\t\tvisibility: visible;\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\n\t\t&.is-resizing {\n\t\t\t& .", " {\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\t\t}\n\n\t\t&.", " {\n\t\t\t& .", " {\n\t\t\t\ttransition: none;\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tdisplay: flex;\n\t\tvisibility: hidden;\n\t\topacity: 0;\n\t\tflex-direction: column;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\twidth: 7px;\n\t\ttransition:\n\t\t\tvisibility 0.2s,\n\t\t\topacity 0.2s;\n\n\t\t/*\n NOTE: The below style is targeted at the div element added by the tooltip. We don't have any means of injecting styles\n into the tooltip\n */\n\t\t& div[role='presentation'] {\n\t\t\twidth: 100%;\n\t\t\theight: 100%;\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: column;\n\t\t\tjustify-content: center;\n\t\t\talign-items: center;\n\t\t\tmargin-top: ", ";\n\t\t\twhite-space: normal;\n\t\t}\n\n\t\t/*\n Handle Positions\n */\n\t\t&.left {\n\t\t\talign-items: flex-start;\n\t\t}\n\t\t&.right {\n\t\t\talign-items: flex-end;\n\t\t}\n\n\t\t/*\n Handle Sizing\n */\n\t\t&.small {\n\t\t\t& .", " {\n\t\t\t\theight: 43px;\n\t\t\t}\n\t\t}\n\t\t&.medium {\n\t\t\t& .", " {\n\t\t\t\theight: 64px;\n\t\t\t}\n\t\t}\n\t\t&.large {\n\t\t\t& .", " {\n\t\t\t\theight: 96px;\n\t\t\t}\n\t\t}\n\n\t\t/*\n Handle Alignment\n */\n\t\t&.sticky {\n\t\t\t& .", " {\n\t\t\t\tposition: sticky;\n\t\t\t\ttop: ", ";\n\t\t\t\tbottom: ", ";\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\t& .", " {\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\n\t\t\t& .", " {\n\t\t\t\tvisibility: visible;\n\t\t\t\topacity: 0.5;\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tcontent: ' ';\n\t\tdisplay: flex;\n\t\twidth: 3px;\n\t\tmargin: 0 ", ";\n\t\theight: 64px;\n\t\ttransition: background-color 0.2s;\n\t\tborder-radius: 6px;\n\t\tborder: 0;\n\t\tpadding: 0;\n\t\tz-index: 2;\n\t\toutline: none;\n\t\tmin-height: 24px;\n\t\tbackground: ", ";\n\n\t\t&:hover {\n\t\t\tcursor: col-resize;\n\t\t}\n\n\t\t&:focus {\n\t\t\tbackground: ", ";\n\n\t\t\t&::after {\n\t\t\t\tcontent: '';\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: ", ";\n\t\t\t\tright: ", ";\n\t\t\t\tbottom: ", ";\n\t\t\t\tleft: ", ";\n\t\t\t\tborder: 2px solid ", ";\n\t\t\t\tborder-radius: inherit;\n\t\t\t\tz-index: -1;\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tvisibility: hidden;\n\t\tposition: absolute;\n\t\twidth: 7px;\n\t\theight: calc(100% - 40px);\n\t\tborder-radius: 4px;\n\t\topacity: 0;\n\t\ttransition:\n\t\t\tbackground-color 0.2s,\n\t\t\tvisibility 0.2s,\n\t\t\topacity 0.2s;\n\n\t\t&.none {\n\t\t\tbackground: none;\n\t\t}\n\n\t\t&.shadow {\n\t\t\tbackground: ", ";\n\t\t}\n\n\t\t&.full-height {\n\t\t\tbackground: ", ";\n\t\t\theight: 100%;\n\t\t\tmin-height: 36px;\n\t\t}\n\t}\n\n\t.", " {\n\t\t& .", " {\n\t\t\tbackground: ", ";\n\t\t}\n\t}\n\n\t.", " {\n\t\tposition: relative;\n\t\tdisplay: inline-block;\n\t\twidth: 100%;\n\n\t\t&.", " {\n\t\t\tpadding: 0 ", ";\n\t\t\tleft: ", ";\n\t\t}\n\t}\n\n\t// This below style is here to make sure the image width is correct when nested in a table\n\ttable .", ", table .", ".", " {\n\t\tpadding: unset;\n\t\tleft: unset;\n\t}\n"])), resizerItemClassName, handleWrapperClass, resizerHandleClassName, resizerHandleThumbClassName, "var(--ds-border-focused, #388BFF)", resizerDangerClassName, resizerHandleThumbClassName, "var(--ds-icon-danger, ".concat(akEditorDeleteIconColor, ")"), resizerHandleClassName, "var(--ds-space-negative-200, -16px)", resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, resizerHandleThumbClassName, "var(--ds-space-150, 12px)", "var(--ds-space-150, 12px)", resizerHandleThumbClassName, "var(--ds-border-focused, #388BFF)", resizerHandleTrackClassName, resizerHandleThumbClassName, "var(--ds-space-025, 2px)", "var(--ds-border, #091E4224)", "var(--ds-border-selected, #0C66E4)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-space-negative-050, -4px)", "var(--ds-border-focused, #388BFF)", resizerHandleTrackClassName, "var(--ds-background-selected, #E9F2FF)", "var(--ds-background-selected, #E9F2FF)", akEditorSelectedNodeClassName, resizerHandleThumbClassName, "var(--ds-border-focused, #388BFF)", resizerHoverZoneClassName, resizerExtendedZone, "var(--ds-space-150, 12px)", "var(--ds-space-negative-150, -12px)", resizerHoverZoneClassName, resizerHoverZoneClassName, resizerExtendedZone);
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
import { akEditorLineHeight } from '@atlaskit/editor-shared-styles';
|
|
4
|
-
import { N30A } from '@atlaskit/theme/colors';
|
|
5
4
|
// @see typography spreadsheet: https://docs.google.com/spreadsheets/d/1iYusRGCT4PoPfvxbJ8NrgjtfFgXLm5lpDWXzjua1W2E/edit#gid=93913128
|
|
6
5
|
export var ruleSharedStyles = function ruleSharedStyles() {
|
|
7
6
|
return css({
|
|
8
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
9
8
|
'& hr': {
|
|
10
9
|
border: 'none',
|
|
11
|
-
backgroundColor: "var(--ds-border,
|
|
10
|
+
backgroundColor: "var(--ds-border, #091E4224)",
|
|
12
11
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
13
12
|
margin: "".concat(akEditorLineHeight, "em 0"),
|
|
14
13
|
height: '2px',
|
|
@@ -5,7 +5,6 @@ var _css;
|
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
6
|
import { css } from '@emotion/react';
|
|
7
7
|
import { akEditorShadowZIndex } from '@atlaskit/editor-shared-styles';
|
|
8
|
-
import { N40A } from '@atlaskit/theme/colors';
|
|
9
8
|
import { shadowClassNames } from '../../ui/OverflowShadow';
|
|
10
9
|
import { shadowObserverClassNames } from '../../ui/OverflowShadow/shadowObserver';
|
|
11
10
|
var shadowWidth = 8;
|
|
@@ -36,12 +35,12 @@ var shadowSharedStyle = css((_css = {}, _defineProperty(_css, "& .".concat(shado
|
|
|
36
35
|
}), _defineProperty(_css, "& .".concat(shadowClassNames.RIGHT_SHADOW, ", .").concat(shadowClassNames.LEFT_SHADOW), {
|
|
37
36
|
position: 'relative'
|
|
38
37
|
}), _defineProperty(_css, "& .".concat(shadowClassNames.LEFT_SHADOW, "::before"), {
|
|
39
|
-
background: "linear-gradient( to left, transparent 0, ".concat("var(--ds-shadow-overflow-spread,
|
|
38
|
+
background: "linear-gradient( to left, transparent 0, ".concat("var(--ds-shadow-overflow-spread, #091e4229)", " 140% ), linear-gradient( to right, ", "var(--ds-shadow-overflow-perimeter, transparent)", " 0px, transparent 1px )"),
|
|
40
39
|
top: '0px',
|
|
41
40
|
left: 0,
|
|
42
41
|
display: 'block'
|
|
43
42
|
}), _defineProperty(_css, "& .".concat(shadowClassNames.RIGHT_SHADOW, "::after"), {
|
|
44
|
-
background: "linear-gradient( to right, transparent 0, ".concat("var(--ds-shadow-overflow-spread,
|
|
43
|
+
background: "linear-gradient( to right, transparent 0, ".concat("var(--ds-shadow-overflow-spread, #091e4229)", " 140% ), linear-gradient( to left, ", "var(--ds-shadow-overflow-perimeter, transparent)", " 0px, transparent 1px )"),
|
|
45
44
|
right: '0px',
|
|
46
45
|
top: '0px',
|
|
47
46
|
display: 'block'
|
|
@@ -4,19 +4,17 @@ var _templateObject;
|
|
|
4
4
|
import { css } from '@emotion/react';
|
|
5
5
|
import { akEditorDeleteBackground, akEditorDeleteBorder, akEditorSelectedNodeClassName, getSelectionStyles, SelectionStyle } from '@atlaskit/editor-shared-styles';
|
|
6
6
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
7
|
-
import { N0, N40 } from '@atlaskit/theme/colors';
|
|
8
|
-
import { N60A, Y300, Y75 } from '@atlaskit/theme/colors';
|
|
9
7
|
import { SmartCardSharedCssClassName } from './smart-card';
|
|
10
8
|
export var DATASOURCE_INNER_CONTAINER_CLASSNAME = 'datasourceView-content-inner-wrap';
|
|
11
9
|
export var FLOATING_TOOLBAR_LINKPICKER_CLASSNAME = 'card-floating-toolbar--link-picker';
|
|
12
10
|
|
|
13
11
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
14
12
|
export var smartCardStyles = function smartCardStyles() {
|
|
15
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", " {\n\t\tmax-width: calc(100% - 20px);\n\t\tvertical-align: top;\n\t\tword-break: break-all;\n\t\t", "\n\t\t.card {\n\t\t\tpadding-left: ", ";\n\t\t\tpadding-right: ", ";\n\t\t\tpadding-top: 0.5em;\n\t\t\tpadding-bottom: 0.5em;\n\t\t\tmargin-bottom: -0.5em;\n\n\t\t\t.", " > a:focus {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&.", " .", " > a {\n\t\t\t", "\n\t\t}\n\t\t.", " > a {\n\t\t\t/* EDM-1717: box-shadow Safari fix start */\n\t\t\tz-index: 1;\n\t\t\tposition: relative;\n\t\t\t/* EDM-1717: box-shadow Safari fix end */\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " > a {\n\t\t\t\tbox-shadow: 0 0 0 1px ", ";\n\t\t\t\t/* EDM-1717: box-shadow Safari fix start */\n\t\t\t\tz-index: 2;\n\t\t\t\t/* EDM-1717: box-shadow Safari fix end */\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\t.", " > div {\n\t\t\tcursor: ", ";\n\n\t\t\ta {\n\t\t\t\tcursor: ", ";\n\t\t\t}\n\t\t}\n\n\t\t&.", " .", " > div {\n\t\t\t", "\n\t\t\tborder-radius: ", ";\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " > div {\n\t\t\t\tbox-shadow: 0 0 0 1px ", " !important;\n\t\t\t}\n\t\t}\n\t}\n\n\t.", ".", " {\n\t\tmax-width: 100%;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\n\t\t.", " {\n\t\t\tcursor: pointer;\n\t\t\tbackground-color: ", ";\n\t\t\tborder-radius: ", ";\n\t\t\tborder: 1px solid ", ";\n\t\t}\n\n\t\t&.", " {\n\t\t\t.", " {\n\t\t\t\t", "\n\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " {\n\t\t\t\tbox-shadow: 0 0 0 1px ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\t.", " > div {\n\t\t\tcursor: pointer;\n\t\t\ta {\n\t\t\t\tcursor: ", ";\n\t\t\t}\n\t\t\t&::after {\n\t\t\t\ttransition: box-shadow 0s;\n\t\t\t}\n\t\t}\n\n\t\t&.", " .", " > div::after {\n\t\t\t", "\n\t\t}\n\n\t\t&.danger {\n\t\t\t.media-card-frame::after {\n\t\t\t\tbox-shadow: 0 0 0 1px ", " !important;\n\t\t\t\tbackground: ", " !important;\n\t\t\t}\n\t\t\t.richMedia-resize-handle-right::after,\n\t\t\t.richMedia-resize-handle-left::after {\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tpadding: 0;\n\t}\n"])), SmartCardSharedCssClassName.INLINE_CARD_CONTAINER, fg('editor_inline_comments_on_inline_nodes') ? ".card-with-comment {\n background: ".concat("var(--ds-background-accent-yellow-subtler,
|
|
13
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", " {\n\t\tmax-width: calc(100% - 20px);\n\t\tvertical-align: top;\n\t\tword-break: break-all;\n\t\t", "\n\t\t.card {\n\t\t\tpadding-left: ", ";\n\t\t\tpadding-right: ", ";\n\t\t\tpadding-top: 0.5em;\n\t\t\tpadding-bottom: 0.5em;\n\t\t\tmargin-bottom: -0.5em;\n\n\t\t\t.", " > a:focus {\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&.", " .", " > a {\n\t\t\t", "\n\t\t}\n\t\t.", " > a {\n\t\t\t/* EDM-1717: box-shadow Safari fix start */\n\t\t\tz-index: 1;\n\t\t\tposition: relative;\n\t\t\t/* EDM-1717: box-shadow Safari fix end */\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " > a {\n\t\t\t\tbox-shadow: 0 0 0 1px ", ";\n\t\t\t\t/* EDM-1717: box-shadow Safari fix start */\n\t\t\t\tz-index: 2;\n\t\t\t\t/* EDM-1717: box-shadow Safari fix end */\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\t.", " > div {\n\t\t\tcursor: ", ";\n\n\t\t\ta {\n\t\t\t\tcursor: ", ";\n\t\t\t}\n\t\t}\n\n\t\t&.", " .", " > div {\n\t\t\t", "\n\t\t\tborder-radius: ", ";\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " > div {\n\t\t\t\tbox-shadow: 0 0 0 1px ", " !important;\n\t\t\t}\n\t\t}\n\t}\n\n\t.", ".", " {\n\t\tmax-width: 100%;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\n\t\t.", " {\n\t\t\tcursor: pointer;\n\t\t\tbackground-color: ", ";\n\t\t\tborder-radius: ", ";\n\t\t\tborder: 1px solid ", ";\n\t\t}\n\n\t\t&.", " {\n\t\t\t.", " {\n\t\t\t\t", "\n\n\t\t\t\t", "\n\t\t\t}\n\t\t}\n\n\t\t&.danger {\n\t\t\t.", " {\n\t\t\t\tbox-shadow: 0 0 0 1px ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\t.", " > div {\n\t\t\tcursor: pointer;\n\t\t\ta {\n\t\t\t\tcursor: ", ";\n\t\t\t}\n\t\t\t&::after {\n\t\t\t\ttransition: box-shadow 0s;\n\t\t\t}\n\t\t}\n\n\t\t&.", " .", " > div::after {\n\t\t\t", "\n\t\t}\n\n\t\t&.danger {\n\t\t\t.media-card-frame::after {\n\t\t\t\tbox-shadow: 0 0 0 1px ", " !important;\n\t\t\t\tbackground: ", " !important;\n\t\t\t}\n\t\t\t.richMedia-resize-handle-right::after,\n\t\t\t.richMedia-resize-handle-left::after {\n\t\t\t\tbackground: ", ";\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tpadding: 0;\n\t}\n"])), SmartCardSharedCssClassName.INLINE_CARD_CONTAINER, fg('editor_inline_comments_on_inline_nodes') ? ".card-with-comment {\n background: ".concat("var(--ds-background-accent-yellow-subtler, #F8E6A0)", ";\n border-bottom: 2px solid ", "var(--ds-border-accent-yellow, #B38600)", ";\n box-shadow: ", "var(--ds-shadow-overlay, 0px 8px 12px #091E4226, 0px 0px 1px #091E424f)", ";\n }") : '', "var(--ds-space-025, 2px)", "var(--ds-space-025, 2px)", 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,
|
|
16
14
|
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
|
|
17
15
|
fg('linking_platform_smart_links_in_live_pages') ? 'text' : 'pointer',
|
|
18
16
|
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
|
|
19
|
-
fg('linking_platform_smart_links_in_live_pages') ? 'pointer' : 'auto', akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), "var(--ds-border-radius-200, 8px)", SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.DATASOURCE_CONTAINER, SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, DATASOURCE_INNER_CONTAINER_CLASSNAME, "var(--ds-background-neutral-subtle,
|
|
17
|
+
fg('linking_platform_smart_links_in_live_pages') ? 'pointer' : 'auto', akEditorSelectedNodeClassName, SmartCardSharedCssClassName.LOADER_WRAPPER, getSelectionStyles([SelectionStyle.BoxShadow]), "var(--ds-border-radius-200, 8px)", SmartCardSharedCssClassName.LOADER_WRAPPER, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.DATASOURCE_CONTAINER, SmartCardSharedCssClassName.BLOCK_CARD_CONTAINER, DATASOURCE_INNER_CONTAINER_CLASSNAME, "var(--ds-background-neutral-subtle, #00000000)", "var(--ds-border-radius-200, 8px)", "var(--ds-border, #091E4224)", akEditorSelectedNodeClassName, DATASOURCE_INNER_CONTAINER_CLASSNAME, getSelectionStyles([SelectionStyle.BoxShadow]), fg('platform-datasources-enable-two-way-sync') ? "\n\t\t\t\t\tinput::selection {\n\t\t\t\t\t\tbackground-color: ".concat("var(--ds-background-selected-hovered, #CCE0FF)", ";\n\t\t\t\t\t}\n\t\t\t\t\tinput::-moz-selection {\n\t\t\t\t\t\tbackground-color: ", "var(--ds-background-selected-hovered, #CCE0FF)", ";\n\t\t\t\t\t}\n\t\t\t\t") : '', DATASOURCE_INNER_CONTAINER_CLASSNAME, "var(--ds-border-danger, ".concat(akEditorDeleteBorder, ")"), SmartCardSharedCssClassName.EMBED_CARD_CONTAINER, SmartCardSharedCssClassName.LOADER_WRAPPER,
|
|
20
18
|
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
|
|
21
19
|
fg('linking_platform_smart_links_in_live_pages') ? 'pointer' : 'auto', 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);
|
|
22
20
|
};
|
|
@@ -8,7 +8,6 @@ var _templateObject, _templateObject2;
|
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { injectIntl } from 'react-intl-next';
|
|
10
10
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
11
|
-
import { N20, N30 } from '@atlaskit/theme/colors';
|
|
12
11
|
import Tooltip from '@atlaskit/tooltip';
|
|
13
12
|
import { SortOrder } from '../types';
|
|
14
13
|
import { SORTABLE_COLUMN_ICON_CLASSNAME } from './consts';
|
|
@@ -25,7 +24,7 @@ export var StatusClassNames = /*#__PURE__*/function (StatusClassNames) {
|
|
|
25
24
|
}({});
|
|
26
25
|
|
|
27
26
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
28
|
-
var buttonStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tposition: absolute;\n\tdisplay: flex;\n\theight: 28px;\n\twidth: 28px;\n\tmargin: ", ";\n\tright: 0;\n\ttop: 0;\n\tborder: 2px solid ", ";\n\tborder-radius: ", ";\n\tbackground-color: ", ";\n\tjustify-content: center;\n\talign-items: center;\n\tcursor: pointer;\n\n\t&:hover {\n\t\tbackground-color: ", ";\n\t}\n\n\t&:active {\n\t\tbackground-color: ", ";\n\t}\n\n\t&.", "__not-allowed {\n\t\tcursor: not-allowed;\n\t}\n"])), "var(--ds-space-075, 6px)", "var(--ds-border, #fff)", "var(--ds-border-radius-100, 4px)", "var(--ds-surface-overlay,
|
|
27
|
+
var buttonStyles = css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\tposition: absolute;\n\tdisplay: flex;\n\theight: 28px;\n\twidth: 28px;\n\tmargin: ", ";\n\tright: 0;\n\ttop: 0;\n\tborder: 2px solid ", ";\n\tborder-radius: ", ";\n\tbackground-color: ", ";\n\tjustify-content: center;\n\talign-items: center;\n\tcursor: pointer;\n\n\t&:hover {\n\t\tbackground-color: ", ";\n\t}\n\n\t&:active {\n\t\tbackground-color: ", ";\n\t}\n\n\t&.", "__not-allowed {\n\t\tcursor: not-allowed;\n\t}\n"])), "var(--ds-space-075, 6px)", "var(--ds-border, #fff)", "var(--ds-border-radius-100, 4px)", "var(--ds-surface-overlay, #FFFFFF)", "var(--ds-surface-overlay-hovered, #F1F2F4)", "var(--ds-surface-overlay-pressed, rgba(179, 212, 255, 0.6))", SORTABLE_COLUMN_ICON_CLASSNAME);
|
|
29
28
|
|
|
30
29
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
31
30
|
var iconWrapperStyles = css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n\twidth: 8px;\n\theight: 12px;\n\ttransition: transform 0.3s cubic-bezier(0.15, 1, 0.3, 1);\n\ttransform-origin: 50% 50%;\n\tdisplay: flex;\n\tjustify-content: center;\n\n\t&.", " {\n\t\ttransform: rotate(-180deg);\n\t}\n\n\t&.", "-inactive {\n\t\topacity: 0.7;\n\t}\n"])), StatusClassNames.DESC, SORTABLE_COLUMN_ICON_CLASSNAME);
|
|
@@ -3,7 +3,6 @@ import React, { useMemo } from 'react';
|
|
|
3
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
4
|
import { ThemeProvider } from '@emotion/react';
|
|
5
5
|
import { akEditorDefaultLayoutWidth } from '@atlaskit/editor-shared-styles';
|
|
6
|
-
import { fontSize } from '@atlaskit/theme/constants';
|
|
7
6
|
import { WidthConsumer } from '../WidthProvider';
|
|
8
7
|
export function mapBreakpointToLayoutMaxWidth(breakpoint) {
|
|
9
8
|
switch (breakpoint) {
|
|
@@ -19,7 +18,7 @@ export function BaseThemeWrapper(_ref) {
|
|
|
19
18
|
children = _ref.children;
|
|
20
19
|
var memoizedTheme = useMemo(function () {
|
|
21
20
|
return {
|
|
22
|
-
baseFontSize: baseFontSize ||
|
|
21
|
+
baseFontSize: baseFontSize || 14,
|
|
23
22
|
layoutMaxWidth: akEditorDefaultLayoutWidth
|
|
24
23
|
};
|
|
25
24
|
}, [baseFontSize]);
|
|
@@ -15,16 +15,15 @@ import React from 'react';
|
|
|
15
15
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
16
16
|
import { css, jsx } from '@emotion/react';
|
|
17
17
|
import { injectIntl } from 'react-intl-next';
|
|
18
|
-
import { N200, N400 } from '@atlaskit/theme/colors';
|
|
19
18
|
import { messages } from './messages';
|
|
20
19
|
var captionWrapperStyle = css({
|
|
21
20
|
marginTop: "var(--ds-space-100, 8px)",
|
|
22
21
|
textAlign: 'center',
|
|
23
22
|
position: 'relative',
|
|
24
|
-
color: "var(--ds-text-subtle,
|
|
23
|
+
color: "var(--ds-text-subtle, #44546F)"
|
|
25
24
|
});
|
|
26
25
|
var placeholderStyle = css({
|
|
27
|
-
color: "var(--ds-text-subtlest,
|
|
26
|
+
color: "var(--ds-text-subtlest, #626F86)",
|
|
28
27
|
position: 'absolute',
|
|
29
28
|
top: 0,
|
|
30
29
|
width: '100%'
|
|
@@ -19,10 +19,9 @@ import { css, jsx } from '@emotion/react';
|
|
|
19
19
|
import createAndFireEvent from '@atlaskit/analytics-next/createAndFireEvents';
|
|
20
20
|
import withAnalyticsContext from '@atlaskit/analytics-next/withAnalyticsContext';
|
|
21
21
|
import withAnalyticsEvents from '@atlaskit/analytics-next/withAnalyticsEvents';
|
|
22
|
-
import { N0, N50A, N60A, N900 } from '@atlaskit/theme/colors';
|
|
23
22
|
import Layer from '../Layer';
|
|
24
23
|
var packageName = "@atlaskit/editor-common";
|
|
25
|
-
var packageVersion = "
|
|
24
|
+
var packageVersion = "93.0.0";
|
|
26
25
|
var halfFocusRing = 1;
|
|
27
26
|
var dropOffset = '0, 8';
|
|
28
27
|
var DropList = /*#__PURE__*/function (_Component) {
|
|
@@ -54,10 +53,10 @@ var DropList = /*#__PURE__*/function (_Component) {
|
|
|
54
53
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
55
54
|
_defineProperty(_assertThisInitialized(_this), "menuWrapper", function () {
|
|
56
55
|
return css({
|
|
57
|
-
color: "var(--ds-text,
|
|
58
|
-
backgroundColor: "var(--ds-surface-overlay,
|
|
56
|
+
color: "var(--ds-text, #172B4D)",
|
|
57
|
+
backgroundColor: "var(--ds-surface-overlay, #FFFFFF)",
|
|
59
58
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
60
|
-
boxShadow: "var(--ds-shadow-overlay,
|
|
59
|
+
boxShadow: "var(--ds-shadow-overlay, 0px 8px 12px #091E4226, 0px 0px 1px #091E424f)",
|
|
61
60
|
boxSizing: 'border-box',
|
|
62
61
|
overflow: 'auto',
|
|
63
62
|
padding: "var(--ds-space-050, 4px)".concat(" 0"),
|
|
@@ -12,7 +12,6 @@ import React, { forwardRef } from 'react';
|
|
|
12
12
|
import { css, jsx } from '@emotion/react';
|
|
13
13
|
import { defineMessages } from 'react-intl-next';
|
|
14
14
|
import { akEditorSwoopCubicBezier } from '@atlaskit/editor-shared-styles';
|
|
15
|
-
import { N30A, N90 } from '@atlaskit/theme/colors';
|
|
16
15
|
export var messages = defineMessages({
|
|
17
16
|
collapseNode: {
|
|
18
17
|
id: 'fabric.editor.collapseNode',
|
|
@@ -48,12 +47,12 @@ var expandIconWrapperStyle = function expandIconWrapperStyle() {
|
|
|
48
47
|
return css({
|
|
49
48
|
cursor: 'pointer',
|
|
50
49
|
display: 'flex',
|
|
51
|
-
color: "var(--ds-icon,
|
|
50
|
+
color: "var(--ds-icon, #44546F)",
|
|
52
51
|
borderRadius: "var(--ds-border-radius-100, 4px)",
|
|
53
52
|
width: '24px',
|
|
54
53
|
height: '24px',
|
|
55
54
|
'&:hover': {
|
|
56
|
-
background: "var(--ds-background-neutral-subtle-hovered,
|
|
55
|
+
background: "var(--ds-background-neutral-subtle-hovered, #091E420F)"
|
|
57
56
|
},
|
|
58
57
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
59
58
|
svg: {
|
|
@@ -3,15 +3,12 @@ var _templateObject;
|
|
|
3
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
4
|
import { css } from '@emotion/react';
|
|
5
5
|
import { akEditorLineHeight, akEditorSwoopCubicBezier, akLayoutGutterOffset, relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
6
|
-
import { B300, N200, N200A, N300A, N40A, N50A } from '@atlaskit/theme/colors';
|
|
7
|
-
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
8
|
-
import { fontSize } from '@atlaskit/theme/constants';
|
|
9
6
|
var BORDER_RADIUS = "var(--ds-border-radius-100, 4px)";
|
|
10
7
|
var EXPAND_COLLAPSED_BACKGROUND = "var(--ds-background-neutral-subtle, transparent)";
|
|
11
8
|
var EXPAND_SELECTED_BACKGROUND = "var(--ds-surface, rgba(255, 255, 255, 0.6))";
|
|
12
|
-
var EXPAND_FOCUSED_BORDER_COLOR = "var(--ds-border-focused,
|
|
9
|
+
var EXPAND_FOCUSED_BORDER_COLOR = "var(--ds-border-focused, #388BFF)";
|
|
13
10
|
var EXPAND_COLLAPSED_BORDER_COLOR = 'transparent';
|
|
14
|
-
var EXPAND_EXPANDED_BORDER_COLOR = "var(--ds-border,
|
|
11
|
+
var EXPAND_EXPANDED_BORDER_COLOR = "var(--ds-border, #091E4224)";
|
|
15
12
|
var containerStyles = function containerStyles(styleProps) {
|
|
16
13
|
var expanded = styleProps.expanded,
|
|
17
14
|
focused = styleProps.focused;
|
|
@@ -36,13 +33,6 @@ var containerStyles = function containerStyles(styleProps) {
|
|
|
36
33
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
37
34
|
transition: "background 0.3s ".concat(akEditorSwoopCubicBezier, ", border-color 0.3s ").concat(akEditorSwoopCubicBezier),
|
|
38
35
|
padding: "var(--ds-space-100, 8px)",
|
|
39
|
-
'&:hover': {
|
|
40
|
-
// TODO: Remove the border styles below once design tokens have been enabled and fallbacks are no longer triggered.
|
|
41
|
-
// This is because the default state already uses the same token and, as such, the hover style won't change anything.
|
|
42
|
-
// https://product-fabric.atlassian.net/browse/DSP-4152
|
|
43
|
-
border: "1px solid ".concat("var(--ds-border, ".concat(N50A, ")")),
|
|
44
|
-
background: EXPAND_SELECTED_BACKGROUND
|
|
45
|
-
},
|
|
46
36
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
47
37
|
'td > :not(style):first-child, td > style:first-child + *': {
|
|
48
38
|
marginTop: 0
|
|
@@ -62,11 +52,11 @@ var titleInputStyles = function titleInputStyles() {
|
|
|
62
52
|
outline: 'none',
|
|
63
53
|
border: 'none',
|
|
64
54
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
65
|
-
fontSize: relativeFontSizeToBase16(
|
|
55
|
+
fontSize: relativeFontSizeToBase16(14),
|
|
66
56
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
67
57
|
lineHeight: akEditorLineHeight,
|
|
68
58
|
fontWeight: 'normal',
|
|
69
|
-
color: "var(--ds-text-subtlest,
|
|
59
|
+
color: "var(--ds-text-subtlest, #626F86)",
|
|
70
60
|
background: 'transparent',
|
|
71
61
|
display: 'flex',
|
|
72
62
|
flex: 1,
|
|
@@ -74,7 +64,7 @@ var titleInputStyles = function titleInputStyles() {
|
|
|
74
64
|
width: '100%',
|
|
75
65
|
'&::placeholder': {
|
|
76
66
|
opacity: 1,
|
|
77
|
-
color: "var(--ds-text-subtlest,
|
|
67
|
+
color: "var(--ds-text-subtlest, #626F86)"
|
|
78
68
|
}
|
|
79
69
|
});
|
|
80
70
|
};
|
|
@@ -86,9 +76,9 @@ var titleContainerStyles = function titleContainerStyles() {
|
|
|
86
76
|
background: 'none',
|
|
87
77
|
border: 'none',
|
|
88
78
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
89
|
-
fontSize: relativeFontSizeToBase16(
|
|
79
|
+
fontSize: relativeFontSizeToBase16(14),
|
|
90
80
|
width: '100%',
|
|
91
|
-
color: "var(--ds-text-subtle,
|
|
81
|
+
color: "var(--ds-text-subtle, #44546F)",
|
|
92
82
|
overflow: 'hidden',
|
|
93
83
|
cursor: 'pointer',
|
|
94
84
|
'&:focus': {
|
|
@@ -4,9 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
6
6
|
import { css, jsx } from '@emotion/react';
|
|
7
|
-
import { N30 } from '@atlaskit/theme/colors';
|
|
8
7
|
var separator = css({
|
|
9
|
-
background: "var(--ds-border,
|
|
8
|
+
background: "var(--ds-border, #091E4224)",
|
|
10
9
|
width: '1px',
|
|
11
10
|
height: '20px',
|
|
12
11
|
margin: "0 ".concat("var(--ds-space-050, 4px)"),
|