@atlaskit/editor-common 82.2.2 → 82.4.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 +31 -0
- package/dist/cjs/collab/index.js +1 -1
- package/dist/cjs/element-browser/ViewMore.js +1 -0
- package/dist/cjs/element-browser/components/CategoryList.js +2 -0
- package/dist/cjs/element-browser/components/ElementList/ElementList.js +19 -1
- package/dist/cjs/element-browser/components/ElementSearch.js +56 -42
- package/dist/cjs/element-browser/components/StatelessElementBrowser.js +18 -0
- package/dist/cjs/extensibility/Extension/Extension/index.js +6 -3
- package/dist/cjs/extensibility/Extension/Extension/styles.js +24 -9
- package/dist/cjs/extensibility/Extension/InlineExtension/index.js +3 -2
- package/dist/cjs/extensibility/Extension/InlineExtension/styles.js +9 -4
- package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +11 -6
- package/dist/cjs/extensibility/Extension/Lozenge/LozengeComponent.js +20 -15
- package/dist/cjs/extensibility/Extension/Lozenge/index.js +1 -0
- package/dist/cjs/extensibility/Extension/styles.js +13 -0
- package/dist/cjs/extensibility/ExtensionNodeWrapper.js +2 -0
- package/dist/cjs/extensibility/MultiBodiedExtension/index.js +20 -4
- package/dist/cjs/extensibility/MultiBodiedExtension/styles.js +14 -2
- package/dist/cjs/keymaps/index.js +2 -1
- package/dist/cjs/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +2 -0
- package/dist/cjs/link/LinkSearch/LinkSearchList.js +2 -0
- package/dist/cjs/link/LinkSearch/LinkSearchListItem.js +9 -0
- package/dist/cjs/link/LinkSearch/ToolbarComponents.js +7 -0
- package/dist/cjs/media-inline/inline-image-wrapper.js +9 -1
- package/dist/cjs/media-inline/styles.js +12 -1
- package/dist/cjs/media-inline/views/frame.js +7 -4
- package/dist/cjs/media-inline/views/icon-wrapper.js +1 -0
- package/dist/cjs/media-inline/views/wrapper.js +1 -0
- package/dist/cjs/media-single/CommentBadge.js +5 -1
- package/dist/cjs/messages/help-dialog.js +5 -0
- package/dist/cjs/monitoring/error.js +1 -1
- package/dist/cjs/rank.js +1 -1
- package/dist/cjs/selection/gap-cursor/styles.js +1 -1
- package/dist/cjs/styles/shared/annotation.js +6 -0
- package/dist/cjs/styles/shared/background-color.js +4 -0
- package/dist/cjs/styles/shared/block-marks.js +1 -0
- package/dist/cjs/styles/shared/blockquote.js +8 -1
- package/dist/cjs/styles/shared/code-block.js +2 -0
- package/dist/cjs/styles/shared/code-mark.js +1 -0
- package/dist/cjs/styles/shared/column-layout.js +6 -1
- package/dist/cjs/styles/shared/date.js +2 -0
- package/dist/cjs/styles/shared/embedCard.js +8 -0
- package/dist/cjs/styles/shared/expand.js +1 -0
- package/dist/cjs/styles/shared/grid.js +7 -0
- package/dist/cjs/styles/shared/headings.js +6 -0
- package/dist/cjs/styles/shared/indentation.js +8 -0
- package/dist/cjs/styles/shared/link.js +4 -1
- package/dist/cjs/styles/shared/lists.js +1 -1
- package/dist/cjs/styles/shared/media-single.js +8 -1
- package/dist/cjs/styles/shared/paragraph.js +4 -1
- package/dist/cjs/styles/shared/plugins.js +8 -0
- package/dist/cjs/styles/shared/resizer.js +1 -1
- package/dist/cjs/styles/shared/rule.js +2 -1
- package/dist/cjs/styles/shared/shadow.js +4 -1
- package/dist/cjs/styles/shared/smartCard.js +1 -1
- package/dist/cjs/styles/shared/tableCell.js +1 -0
- package/dist/cjs/styles/shared/task-decision.js +2 -0
- package/dist/cjs/styles/shared/text-color.js +3 -0
- package/dist/cjs/styles/shared/unsupported-content.js +1 -1
- package/dist/cjs/styles/shared/whitespace.js +3 -1
- package/dist/cjs/table/SortingIcon.js +2 -2
- package/dist/cjs/ui/DropList/index.js +5 -1
- package/dist/cjs/ui/Expand/index.js +13 -0
- package/dist/cjs/ui/MediaSingle/index.js +3 -1
- package/dist/cjs/ui/MediaSingle/link.js +1 -0
- package/dist/cjs/ui/MediaSingle/styled.js +6 -3
- package/dist/cjs/ui/Messages/index.js +12 -7
- package/dist/cjs/ui/MultiBodiedExtension/index.js +24 -0
- package/dist/cjs/ui/PanelTextInput/index.js +1 -0
- package/dist/cjs/ui/PanelTextInput/styles.js +6 -0
- package/dist/cjs/ui/Popup/index.js +1 -0
- package/dist/cjs/ui/UnsupportedBlock/index.js +2 -0
- package/dist/cjs/ui/UnsupportedInline/index.js +2 -0
- package/dist/cjs/ui/clear-next-sibling-margin-top.js +6 -2
- package/dist/cjs/ui-color/ColorPalette/Color/index.js +60 -8
- package/dist/cjs/ui-color/ColorPalette/Color/styles.js +3 -0
- package/dist/cjs/ui-color/ColorPalette/Palettes/highlightColorPalette.js +38 -2
- package/dist/cjs/ui-color/ColorPalette/Palettes/paletteMessages.js +1 -1
- package/dist/cjs/ui-color/ColorPalette/index.js +5 -2
- package/dist/cjs/ui-color/ColorPalette/styles.js +1 -0
- package/dist/cjs/ui-menu/ColorPickerButton/index.js +7 -0
- package/dist/cjs/ui-menu/DropdownMenu/index.js +1 -0
- package/dist/cjs/utils/annotation/index.js +24 -0
- package/dist/cjs/utils/index.js +6 -0
- package/dist/es2019/collab/index.js +1 -1
- package/dist/es2019/element-browser/ViewMore.js +1 -0
- package/dist/es2019/element-browser/components/CategoryList.js +3 -0
- package/dist/es2019/element-browser/components/ElementList/ElementList.js +19 -1
- package/dist/es2019/element-browser/components/ElementSearch.js +56 -42
- package/dist/es2019/element-browser/components/StatelessElementBrowser.js +18 -0
- package/dist/es2019/extensibility/Extension/Extension/index.js +6 -3
- package/dist/es2019/extensibility/Extension/Extension/styles.js +24 -9
- package/dist/es2019/extensibility/Extension/InlineExtension/index.js +3 -2
- package/dist/es2019/extensibility/Extension/InlineExtension/styles.js +10 -4
- package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +11 -6
- package/dist/es2019/extensibility/Extension/Lozenge/LozengeComponent.js +19 -14
- package/dist/es2019/extensibility/Extension/Lozenge/index.js +1 -0
- package/dist/es2019/extensibility/Extension/styles.js +14 -0
- package/dist/es2019/extensibility/ExtensionNodeWrapper.js +2 -0
- package/dist/es2019/extensibility/MultiBodiedExtension/index.js +21 -5
- package/dist/es2019/extensibility/MultiBodiedExtension/styles.js +14 -2
- package/dist/es2019/keymaps/index.js +1 -0
- package/dist/es2019/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +2 -0
- package/dist/es2019/link/LinkSearch/LinkSearchList.js +2 -0
- package/dist/es2019/link/LinkSearch/LinkSearchListItem.js +9 -0
- package/dist/es2019/link/LinkSearch/ToolbarComponents.js +8 -0
- package/dist/es2019/media-inline/inline-image-wrapper.js +9 -1
- package/dist/es2019/media-inline/styles.js +12 -1
- package/dist/es2019/media-inline/views/frame.js +3 -1
- package/dist/es2019/media-inline/views/icon-wrapper.js +1 -0
- package/dist/es2019/media-inline/views/wrapper.js +1 -0
- package/dist/es2019/media-single/CommentBadge.js +5 -1
- package/dist/es2019/messages/help-dialog.js +5 -0
- package/dist/es2019/monitoring/error.js +1 -1
- package/dist/es2019/rank.js +1 -1
- package/dist/es2019/selection/gap-cursor/styles.js +1 -1
- package/dist/es2019/styles/shared/annotation.js +6 -0
- package/dist/es2019/styles/shared/background-color.js +5 -0
- package/dist/es2019/styles/shared/block-marks.js +2 -0
- package/dist/es2019/styles/shared/blockquote.js +8 -1
- package/dist/es2019/styles/shared/code-block.js +2 -0
- package/dist/es2019/styles/shared/code-mark.js +2 -0
- package/dist/es2019/styles/shared/column-layout.js +6 -0
- package/dist/es2019/styles/shared/date.js +3 -0
- package/dist/es2019/styles/shared/embedCard.js +8 -0
- package/dist/es2019/styles/shared/expand.js +1 -0
- package/dist/es2019/styles/shared/grid.js +7 -0
- package/dist/es2019/styles/shared/headings.js +12 -0
- package/dist/es2019/styles/shared/indentation.js +9 -0
- package/dist/es2019/styles/shared/link.js +3 -0
- package/dist/es2019/styles/shared/lists.js +1 -1
- package/dist/es2019/styles/shared/media-single.js +15 -0
- package/dist/es2019/styles/shared/panel.js +1 -0
- package/dist/es2019/styles/shared/paragraph.js +4 -1
- package/dist/es2019/styles/shared/plugins.js +8 -0
- package/dist/es2019/styles/shared/resizer.js +1 -1
- package/dist/es2019/styles/shared/rule.js +2 -1
- package/dist/es2019/styles/shared/shadow.js +9 -0
- package/dist/es2019/styles/shared/smartCard.js +1 -1
- package/dist/es2019/styles/shared/tableCell.js +1 -0
- package/dist/es2019/styles/shared/task-decision.js +2 -0
- package/dist/es2019/styles/shared/text-color.js +4 -0
- package/dist/es2019/styles/shared/unsupported-content.js +1 -1
- package/dist/es2019/styles/shared/whitespace.js +2 -0
- package/dist/es2019/table/SortingIcon.js +2 -2
- package/dist/es2019/ui/DropList/index.js +5 -1
- package/dist/es2019/ui/Expand/index.js +13 -0
- package/dist/es2019/ui/MediaSingle/index.js +3 -1
- package/dist/es2019/ui/MediaSingle/link.js +2 -0
- package/dist/es2019/ui/MediaSingle/styled.js +3 -1
- package/dist/es2019/ui/Messages/index.js +5 -1
- package/dist/es2019/ui/MultiBodiedExtension/index.js +24 -0
- package/dist/es2019/ui/PanelTextInput/index.js +1 -0
- package/dist/es2019/ui/PanelTextInput/styles.js +6 -0
- package/dist/es2019/ui/Popup/index.js +1 -0
- package/dist/es2019/ui/UnsupportedBlock/index.js +2 -0
- package/dist/es2019/ui/UnsupportedInline/index.js +2 -0
- package/dist/es2019/ui/clear-next-sibling-margin-top.js +7 -2
- package/dist/es2019/ui-color/ColorPalette/Color/index.js +64 -2
- package/dist/es2019/ui-color/ColorPalette/Color/styles.js +3 -0
- package/dist/es2019/ui-color/ColorPalette/Palettes/highlightColorPalette.js +36 -1
- package/dist/es2019/ui-color/ColorPalette/Palettes/paletteMessages.js +1 -1
- package/dist/es2019/ui-color/ColorPalette/index.js +5 -2
- package/dist/es2019/ui-color/ColorPalette/styles.js +1 -0
- package/dist/es2019/ui-menu/ColorPickerButton/index.js +7 -0
- package/dist/es2019/ui-menu/DropdownMenu/index.js +1 -0
- package/dist/es2019/utils/annotation/index.js +22 -0
- package/dist/es2019/utils/index.js +1 -1
- package/dist/esm/collab/index.js +1 -1
- package/dist/esm/element-browser/ViewMore.js +1 -0
- package/dist/esm/element-browser/components/CategoryList.js +2 -0
- package/dist/esm/element-browser/components/ElementList/ElementList.js +19 -1
- package/dist/esm/element-browser/components/ElementSearch.js +56 -42
- package/dist/esm/element-browser/components/StatelessElementBrowser.js +18 -0
- package/dist/esm/extensibility/Extension/Extension/index.js +6 -3
- package/dist/esm/extensibility/Extension/Extension/styles.js +24 -9
- package/dist/esm/extensibility/Extension/InlineExtension/index.js +3 -2
- package/dist/esm/extensibility/Extension/InlineExtension/styles.js +10 -4
- package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +11 -6
- package/dist/esm/extensibility/Extension/Lozenge/LozengeComponent.js +20 -15
- package/dist/esm/extensibility/Extension/Lozenge/index.js +1 -0
- package/dist/esm/extensibility/Extension/styles.js +14 -0
- package/dist/esm/extensibility/ExtensionNodeWrapper.js +2 -0
- package/dist/esm/extensibility/MultiBodiedExtension/index.js +20 -4
- package/dist/esm/extensibility/MultiBodiedExtension/styles.js +14 -2
- package/dist/esm/keymaps/index.js +1 -0
- package/dist/esm/link/LinkPicker/HyperlinkAddToolbar/HyperlinkAddToolbar.js +2 -0
- package/dist/esm/link/LinkSearch/LinkSearchList.js +2 -0
- package/dist/esm/link/LinkSearch/LinkSearchListItem.js +9 -0
- package/dist/esm/link/LinkSearch/ToolbarComponents.js +8 -0
- package/dist/esm/media-inline/inline-image-wrapper.js +9 -1
- package/dist/esm/media-inline/styles.js +12 -1
- package/dist/esm/media-inline/views/frame.js +7 -4
- package/dist/esm/media-inline/views/icon-wrapper.js +1 -0
- package/dist/esm/media-inline/views/wrapper.js +1 -0
- package/dist/esm/media-single/CommentBadge.js +5 -1
- package/dist/esm/messages/help-dialog.js +5 -0
- package/dist/esm/monitoring/error.js +1 -1
- package/dist/esm/rank.js +1 -1
- package/dist/esm/selection/gap-cursor/styles.js +1 -1
- package/dist/esm/styles/shared/annotation.js +6 -0
- package/dist/esm/styles/shared/background-color.js +5 -0
- package/dist/esm/styles/shared/block-marks.js +2 -0
- package/dist/esm/styles/shared/blockquote.js +8 -1
- package/dist/esm/styles/shared/code-block.js +2 -0
- package/dist/esm/styles/shared/code-mark.js +1 -0
- package/dist/esm/styles/shared/column-layout.js +5 -0
- package/dist/esm/styles/shared/date.js +2 -0
- package/dist/esm/styles/shared/embedCard.js +8 -0
- package/dist/esm/styles/shared/expand.js +1 -0
- package/dist/esm/styles/shared/grid.js +7 -0
- package/dist/esm/styles/shared/headings.js +6 -0
- package/dist/esm/styles/shared/indentation.js +9 -0
- package/dist/esm/styles/shared/link.js +3 -0
- package/dist/esm/styles/shared/lists.js +1 -1
- package/dist/esm/styles/shared/media-single.js +7 -0
- package/dist/esm/styles/shared/paragraph.js +4 -1
- package/dist/esm/styles/shared/plugins.js +8 -0
- package/dist/esm/styles/shared/resizer.js +1 -1
- package/dist/esm/styles/shared/rule.js +2 -1
- package/dist/esm/styles/shared/shadow.js +3 -0
- package/dist/esm/styles/shared/smartCard.js +1 -1
- package/dist/esm/styles/shared/tableCell.js +1 -0
- package/dist/esm/styles/shared/task-decision.js +2 -0
- package/dist/esm/styles/shared/text-color.js +4 -0
- package/dist/esm/styles/shared/unsupported-content.js +1 -1
- package/dist/esm/styles/shared/whitespace.js +2 -0
- package/dist/esm/table/SortingIcon.js +2 -2
- package/dist/esm/ui/DropList/index.js +5 -1
- package/dist/esm/ui/Expand/index.js +13 -0
- package/dist/esm/ui/MediaSingle/index.js +3 -1
- package/dist/esm/ui/MediaSingle/link.js +2 -0
- package/dist/esm/ui/MediaSingle/styled.js +6 -3
- package/dist/esm/ui/Messages/index.js +12 -7
- package/dist/esm/ui/MultiBodiedExtension/index.js +24 -0
- package/dist/esm/ui/PanelTextInput/index.js +1 -0
- package/dist/esm/ui/PanelTextInput/styles.js +6 -0
- package/dist/esm/ui/Popup/index.js +1 -0
- package/dist/esm/ui/UnsupportedBlock/index.js +2 -0
- package/dist/esm/ui/UnsupportedInline/index.js +2 -0
- package/dist/esm/ui/clear-next-sibling-margin-top.js +6 -2
- package/dist/esm/ui-color/ColorPalette/Color/index.js +60 -8
- package/dist/esm/ui-color/ColorPalette/Color/styles.js +3 -0
- package/dist/esm/ui-color/ColorPalette/Palettes/highlightColorPalette.js +37 -1
- package/dist/esm/ui-color/ColorPalette/Palettes/paletteMessages.js +1 -1
- package/dist/esm/ui-color/ColorPalette/index.js +5 -2
- package/dist/esm/ui-color/ColorPalette/styles.js +1 -0
- package/dist/esm/ui-menu/ColorPickerButton/index.js +7 -0
- package/dist/esm/ui-menu/DropdownMenu/index.js +1 -0
- package/dist/esm/utils/annotation/index.js +22 -0
- package/dist/esm/utils/index.js +1 -1
- package/dist/types/analytics/types/highlight-events.d.ts +4 -2
- package/dist/types/analytics/types/inline-comment-events.d.ts +1 -0
- package/dist/types/keymaps/index.d.ts +1 -0
- package/dist/types/messages/help-dialog.d.ts +5 -0
- package/dist/types/types/feature-flags.d.ts +8 -0
- package/dist/types/ui-color/ColorPalette/Color/index.d.ts +5 -2
- package/dist/types/ui-color/ColorPalette/Palettes/highlightColorPalette.d.ts +3 -0
- package/dist/types/ui-color/ColorPalette/Palettes/type.d.ts +2 -0
- package/dist/types/utils/annotation/index.d.ts +10 -0
- package/dist/types/utils/index.d.ts +1 -1
- package/dist/types-ts4.5/analytics/types/highlight-events.d.ts +4 -2
- package/dist/types-ts4.5/analytics/types/inline-comment-events.d.ts +1 -0
- package/dist/types-ts4.5/keymaps/index.d.ts +1 -0
- package/dist/types-ts4.5/messages/help-dialog.d.ts +5 -0
- package/dist/types-ts4.5/types/feature-flags.d.ts +8 -0
- package/dist/types-ts4.5/ui-color/ColorPalette/Color/index.d.ts +5 -2
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/highlightColorPalette.d.ts +3 -0
- package/dist/types-ts4.5/ui-color/ColorPalette/Palettes/type.d.ts +2 -0
- package/dist/types-ts4.5/utils/annotation/index.d.ts +10 -0
- package/dist/types-ts4.5/utils/index.d.ts +1 -1
- package/package.json +5 -2
|
@@ -72,67 +72,79 @@ function ElementSearch(_ref) {
|
|
|
72
72
|
var assistiveMessage = getFormattedMessage(items === null || items === void 0 ? void 0 : items.length);
|
|
73
73
|
var isInputNotFocusedAndItemSelected = !inputFocused && selectedItemIndex !== undefined;
|
|
74
74
|
var ariaActiveDescendant = isInputNotFocusedAndItemSelected ? "searched-item-".concat(selectedItemIndex) : undefined;
|
|
75
|
-
return
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
75
|
+
return (
|
|
76
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
77
|
+
jsx("div", {
|
|
78
|
+
css: [wrapper, mode === Modes.inline && wrapperInline]
|
|
79
|
+
}, jsx(Textfield, {
|
|
80
|
+
ref: ref,
|
|
81
|
+
onChange: onChange,
|
|
82
|
+
onClick: onClick,
|
|
83
|
+
onFocus: onFocus,
|
|
84
|
+
onKeyDown: onKeyDown,
|
|
85
|
+
onBlur: onBlur,
|
|
86
|
+
elemBeforeInput: jsx("div", {
|
|
87
|
+
css: elementBeforeInput,
|
|
88
|
+
"data-testid": "element_search__element_before_input",
|
|
89
|
+
"aria-hidden": "true"
|
|
90
|
+
}, jsx(SearchIcon, {
|
|
91
|
+
size: "medium",
|
|
92
|
+
label: "Advanced search",
|
|
93
|
+
primaryColor: "inherit"
|
|
94
|
+
})),
|
|
95
|
+
elemAfterInput: jsx("div", {
|
|
96
|
+
css: elementAfterInput,
|
|
97
|
+
"data-testid": "element_search__element_after_input"
|
|
98
|
+
}, jsx("div", {
|
|
99
|
+
css: styledShortcut
|
|
100
|
+
}, "\u23CE ", formatMessage(commonMessages.elementAfterInputMessage))),
|
|
101
|
+
placeholder: formatMessage(commonMessages.placeHolderMessage),
|
|
102
|
+
"aria-label": "search",
|
|
103
|
+
"aria-labelledby": "search-assistive"
|
|
104
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
105
|
+
,
|
|
106
|
+
className: "js-search-input",
|
|
107
|
+
role: "combobox",
|
|
108
|
+
"aria-activedescendant": ariaActiveDescendant,
|
|
109
|
+
value: searchTerm
|
|
110
|
+
}), jsx("span", {
|
|
111
|
+
id: "search-assistive",
|
|
112
|
+
ref: assistiveTextRef,
|
|
113
|
+
"aria-live": "polite",
|
|
114
|
+
"aria-atomic": "true"
|
|
115
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
116
|
+
,
|
|
117
|
+
className: "assistive"
|
|
118
|
+
}, assistiveMessage))
|
|
119
|
+
);
|
|
117
120
|
}
|
|
121
|
+
|
|
122
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
118
123
|
var styledShortcut = css(shortcutStyle, {
|
|
119
124
|
padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-100, 8px)"),
|
|
120
125
|
width: "var(--ds-space-600, 48px)"
|
|
121
126
|
});
|
|
122
127
|
var wrapper = css({
|
|
128
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
123
129
|
'& > [data-ds--text-field--container]': {
|
|
130
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
124
131
|
height: "".concat(GRID_SIZE * 6, "px"),
|
|
132
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
125
133
|
borderRadius: "".concat(GRID_SIZE, "px"),
|
|
126
134
|
flex: '1 1 100%',
|
|
127
135
|
overflow: 'visible',
|
|
136
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
128
137
|
'& > [data-ds--text-field--input]': {
|
|
138
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
129
139
|
fontSize: relativeFontSizeToBase16(14),
|
|
130
140
|
padding: "var(--ds-space-100, 8px)".concat(" ", "var(--ds-space-075, 6px)", " ", "var(--ds-space-100, 8px)", " 0")
|
|
131
141
|
}
|
|
132
142
|
}
|
|
133
143
|
});
|
|
134
144
|
var wrapperInline = css({
|
|
145
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
135
146
|
'& > [data-ds--text-field--container]': {
|
|
147
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
136
148
|
height: "".concat(GRID_SIZE * 5, "px"),
|
|
137
149
|
flex: 'none',
|
|
138
150
|
overflow: 'revert'
|
|
@@ -141,6 +153,7 @@ var wrapperInline = css({
|
|
|
141
153
|
var elementBeforeInput = css({
|
|
142
154
|
margin: "1px ".concat("var(--ds-space-075, 6px)", " 0 ", "var(--ds-space-100, 8px)"),
|
|
143
155
|
color: "var(--ds-icon, ".concat(N200, ")"),
|
|
156
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
144
157
|
'span, svg': {
|
|
145
158
|
height: '20px',
|
|
146
159
|
width: '20px'
|
|
@@ -148,6 +161,7 @@ var elementBeforeInput = css({
|
|
|
148
161
|
});
|
|
149
162
|
var elementAfterInput = css({
|
|
150
163
|
margin: "0 ".concat("var(--ds-space-100, 8px)"),
|
|
164
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
151
165
|
height: SEARCH_ITEM_HEIGHT_WIDTH,
|
|
152
166
|
textAlign: 'center'
|
|
153
167
|
});
|
|
@@ -24,9 +24,13 @@ var baseBrowserContainerStyles = css({
|
|
|
24
24
|
height: '100%',
|
|
25
25
|
minHeight: '-webkit-fill-available'
|
|
26
26
|
});
|
|
27
|
+
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
27
29
|
var mobileElementBrowserContainer = css(baseBrowserContainerStyles, {
|
|
28
30
|
flexDirection: 'column'
|
|
29
31
|
});
|
|
32
|
+
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
30
34
|
var elementBrowserContainer = css(baseBrowserContainerStyles, {
|
|
31
35
|
flexDirection: 'row'
|
|
32
36
|
});
|
|
@@ -36,20 +40,28 @@ var baseSidebarStyles = css({
|
|
|
36
40
|
overflowX: 'auto',
|
|
37
41
|
overflowY: 'hidden'
|
|
38
42
|
});
|
|
43
|
+
|
|
44
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
39
45
|
var mobileSideBar = css(baseSidebarStyles, {
|
|
46
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
40
47
|
flex: "0 0 ".concat(INLINE_SIDEBAR_HEIGHT),
|
|
41
48
|
padding: "var(--ds-space-150, 12px)".concat(" ", "var(--ds-space-150, 12px)", " 0 ", "var(--ds-space-150, 12px)")
|
|
42
49
|
});
|
|
43
50
|
var mobileSideBarShowCategories = css({
|
|
44
51
|
flex: '0 0 auto'
|
|
45
52
|
});
|
|
53
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
46
54
|
var sideBar = css(baseSidebarStyles, {
|
|
47
55
|
flex: "0 0 'auto'"
|
|
48
56
|
});
|
|
57
|
+
|
|
58
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
49
59
|
var sideBarShowCategories = css(baseSidebarStyles, {
|
|
60
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
50
61
|
flex: "0 0 ".concat(SIDEBAR_WIDTH)
|
|
51
62
|
});
|
|
52
63
|
var sidebarHeading = css({
|
|
64
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
53
65
|
flex: "0 0 ".concat(SIDEBAR_HEADING_WRAPPER_HEIGHT),
|
|
54
66
|
display: 'inline-flex',
|
|
55
67
|
alignItems: 'center',
|
|
@@ -63,6 +75,8 @@ var mobileMainContent = css({
|
|
|
63
75
|
overflowY: 'auto',
|
|
64
76
|
height: '100%'
|
|
65
77
|
});
|
|
78
|
+
|
|
79
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
66
80
|
var mainContent = css(mobileMainContent, {
|
|
67
81
|
marginLeft: "var(--ds-space-200, 16px)",
|
|
68
82
|
height: 'auto'
|
|
@@ -74,14 +88,18 @@ var mobileCategoryListWrapper = css({
|
|
|
74
88
|
display: 'flex',
|
|
75
89
|
overflowX: 'auto',
|
|
76
90
|
padding: "var(--ds-space-200, 8px)".concat(" 0 ", "var(--ds-space-200, 16px)", " 0"),
|
|
91
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
77
92
|
minHeight: "".concat(GRID_SIZE * 4, "px"),
|
|
78
93
|
overflow: '-moz-scrollbars-none',
|
|
94
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
79
95
|
'&::-webkit-scrollbar': {
|
|
80
96
|
display: 'none'
|
|
81
97
|
},
|
|
82
98
|
scrollbarWidth: 'none',
|
|
83
99
|
MsOverflowStyle: 'none'
|
|
84
100
|
});
|
|
101
|
+
|
|
102
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
85
103
|
var categoryListWrapper = css(mobileCategoryListWrapper, {
|
|
86
104
|
padding: 0,
|
|
87
105
|
marginTop: "var(--ds-space-200, 24px)",
|
|
@@ -53,7 +53,6 @@ function ExtensionWithPluginState(props) {
|
|
|
53
53
|
editorAppearance !== 'full-width';
|
|
54
54
|
var classNames = classnames('extension-container', 'block', shadowClassNames, _defineProperty({
|
|
55
55
|
'with-overlay': !hasBody && !showMacroInteractionDesignUpdates,
|
|
56
|
-
'with-border': showMacroInteractionDesignUpdates,
|
|
57
56
|
'with-bodied-border': showMacroInteractionDesignUpdates && hasBody,
|
|
58
57
|
'with-margin-styles': showMacroInteractionDesignUpdates && !isNodeNested,
|
|
59
58
|
'with-hover-border': showMacroInteractionDesignUpdates && isNodeHovered,
|
|
@@ -109,7 +108,9 @@ function ExtensionWithPluginState(props) {
|
|
|
109
108
|
"data-layout": node.attrs.layout
|
|
110
109
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
111
110
|
,
|
|
112
|
-
className: classNames
|
|
111
|
+
className: classNames
|
|
112
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
113
|
+
,
|
|
113
114
|
css: wrapperStyle
|
|
114
115
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
115
116
|
,
|
|
@@ -127,6 +128,7 @@ function ExtensionWithPluginState(props) {
|
|
|
127
128
|
className: 'extension-overlay',
|
|
128
129
|
css: overlay
|
|
129
130
|
}), jsx("div", {
|
|
131
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
130
132
|
css: header,
|
|
131
133
|
contentEditable: false
|
|
132
134
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -137,11 +139,12 @@ function ExtensionWithPluginState(props) {
|
|
|
137
139
|
node: node,
|
|
138
140
|
showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates
|
|
139
141
|
}), children), hasBody &&
|
|
140
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
142
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
141
143
|
jsx("div", {
|
|
142
144
|
css: newContentStyles,
|
|
143
145
|
className: newContentClassNames
|
|
144
146
|
}, jsx("div", {
|
|
147
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
145
148
|
css: content,
|
|
146
149
|
ref: handleContentDOMRef
|
|
147
150
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -2,40 +2,49 @@ import { css } from '@emotion/react';
|
|
|
2
2
|
import { N30, N500 } from '@atlaskit/theme/colors';
|
|
3
3
|
import { wrapperDefault } from '../styles';
|
|
4
4
|
export var widerLayoutClassName = 'wider-layout';
|
|
5
|
+
|
|
6
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
5
7
|
export var wrapperStyle = css(wrapperDefault, {
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
6
9
|
'&.without-frame': {
|
|
7
10
|
background: 'transparent'
|
|
8
11
|
},
|
|
9
12
|
cursor: 'pointer',
|
|
10
13
|
width: '100%',
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
11
15
|
'.extension-overflow-wrapper:not(.with-body)': {
|
|
12
16
|
overflowX: 'auto'
|
|
13
17
|
},
|
|
14
|
-
|
|
15
|
-
border: "1px solid transparent" // adding this so macro doesn't jump when hover border is shown
|
|
16
|
-
},
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
17
19
|
'&.with-bodied-border': {
|
|
18
|
-
|
|
20
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border, ".concat(N30, ")"))
|
|
19
21
|
},
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
20
23
|
'&.with-hover-border': {
|
|
21
|
-
|
|
24
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-input, ".concat(N500, ")"))
|
|
22
25
|
},
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
23
27
|
'&.with-margin-styles': {
|
|
24
28
|
margin: "0 ".concat("var(--ds-space-negative-150, -12px)"),
|
|
25
|
-
|
|
26
|
-
padding: '0 10px' // need exact number here to match editor elements' width
|
|
29
|
+
padding: "0 ".concat("var(--ds-space-150, 12px)")
|
|
27
30
|
}
|
|
28
31
|
});
|
|
32
|
+
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
29
34
|
export var header = css({
|
|
30
35
|
padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-050, 4px)", " 0px"),
|
|
31
36
|
verticalAlign: 'middle',
|
|
37
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
32
38
|
'&.with-children:not(.without-frame)': {
|
|
33
39
|
padding: "var(--ds-space-050, 4px)".concat(" ", "var(--ds-space-100, 8px)", " ", "var(--ds-space-100, 8px)")
|
|
34
40
|
},
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
35
42
|
'&.without-frame': {
|
|
36
43
|
padding: 0
|
|
37
44
|
}
|
|
38
45
|
});
|
|
46
|
+
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
39
48
|
export var content = css({
|
|
40
49
|
padding: "var(--ds-space-100, 8px)",
|
|
41
50
|
background: "var(--ds-surface, white)",
|
|
@@ -43,21 +52,27 @@ export var content = css({
|
|
|
43
52
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
44
53
|
cursor: 'initial',
|
|
45
54
|
width: '100%',
|
|
55
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
46
56
|
'&.remove-border': {
|
|
47
57
|
border: 'none'
|
|
48
58
|
}
|
|
49
59
|
});
|
|
60
|
+
|
|
61
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
50
62
|
export var contentWrapper = css({
|
|
51
63
|
padding: "0 ".concat("var(--ds-space-100, 8px)", " ", "var(--ds-space-100, 8px)"),
|
|
52
64
|
display: 'flex',
|
|
53
65
|
justifyContent: 'center',
|
|
66
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
54
67
|
'&.with-padding-styles': {
|
|
55
68
|
padding: "var(--ds-space-100, 8px)"
|
|
56
69
|
}
|
|
57
70
|
});
|
|
71
|
+
|
|
72
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
58
73
|
export var overflowWrapperStyles = css({
|
|
74
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
59
75
|
'&.with-margin-styles': {
|
|
60
|
-
|
|
61
|
-
margin: "0 -10px" // need exact number here to match editor elements' width
|
|
76
|
+
margin: "0 ".concat("var(--ds-space-negative-150, -12px)")
|
|
62
77
|
}
|
|
63
78
|
});
|
|
@@ -24,7 +24,6 @@ var InlineExtension = function InlineExtension(props) {
|
|
|
24
24
|
'with-overlay': !showMacroInteractionDesignUpdates,
|
|
25
25
|
'with-children': hasChildren,
|
|
26
26
|
'with-danger-overlay': showMacroInteractionDesignUpdates,
|
|
27
|
-
'with-border': showMacroInteractionDesignUpdates,
|
|
28
27
|
'with-hover-border': showMacroInteractionDesignUpdates && isNodeHovered
|
|
29
28
|
});
|
|
30
29
|
var rendererContainerWidth = widthState ? widthState.width - akEditorGutterPaddingDynamic() * 2 : 0;
|
|
@@ -41,7 +40,9 @@ var InlineExtension = function InlineExtension(props) {
|
|
|
41
40
|
showMacroInteractionDesignUpdates: showMacroInteractionDesignUpdates,
|
|
42
41
|
setIsNodeHovered: setIsNodeHovered
|
|
43
42
|
}), jsx("div", {
|
|
44
|
-
"data-testid": "inline-extension-wrapper"
|
|
43
|
+
"data-testid": "inline-extension-wrapper"
|
|
44
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
45
|
+
,
|
|
45
46
|
css: [wrapperStyle, extendedInlineExtension && inlineWrapperStyles]
|
|
46
47
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
47
48
|
,
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { css } from '@emotion/react';
|
|
2
2
|
import { N500 } from '@atlaskit/theme/colors';
|
|
3
3
|
import { wrapperDefault } from '../styles';
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css, @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
4
6
|
export var wrapperStyle = css(wrapperDefault, {
|
|
5
7
|
cursor: 'pointer',
|
|
6
8
|
display: 'inline-flex',
|
|
7
9
|
margin: "1px 1px ".concat("var(--ds-space-050, 4px)"),
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
8
11
|
'> img': {
|
|
9
12
|
borderRadius: "var(--ds-border-radius, 3px)"
|
|
10
13
|
},
|
|
@@ -14,22 +17,25 @@ export var wrapperStyle = css(wrapperDefault, {
|
|
|
14
17
|
width: '1px',
|
|
15
18
|
content: "''"
|
|
16
19
|
},
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
17
21
|
'&.with-children': {
|
|
18
22
|
padding: 0,
|
|
19
23
|
background: "var(--ds-background-neutral-subtle, white)"
|
|
20
24
|
},
|
|
21
|
-
|
|
22
|
-
border: "1px solid transparent" // adding this so macro doesn't jump when hover border is shown
|
|
23
|
-
},
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
24
26
|
'&.with-hover-border': {
|
|
25
|
-
|
|
27
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border-input, ".concat(N500, ")"))
|
|
26
28
|
}
|
|
27
29
|
});
|
|
30
|
+
|
|
31
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
28
32
|
export var inlineWrapperStyles = css({
|
|
29
33
|
maxWidth: '100%',
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
30
35
|
'tr &': {
|
|
31
36
|
maxWidth: 'inherit'
|
|
32
37
|
},
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
33
39
|
'.rich-media-item': {
|
|
34
40
|
maxWidth: '100%'
|
|
35
41
|
}
|
|
@@ -12,11 +12,13 @@ var labelStyles = css({
|
|
|
12
12
|
// Unfortunately, these need to be these exact numbers - otherwise there will be a noticeable gap/overlap
|
|
13
13
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
14
14
|
top: '-19px',
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
15
16
|
'&.inline': {
|
|
16
17
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
17
18
|
top: '-18px',
|
|
18
19
|
marginLeft: "var(--ds-space-150, 12px)"
|
|
19
20
|
},
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
20
22
|
'&.show-label': {
|
|
21
23
|
cursor: 'pointer',
|
|
22
24
|
background: "var(--ds-background-accent-gray-subtle-pressed, ".concat(N40, ")"),
|
|
@@ -25,20 +27,20 @@ var labelStyles = css({
|
|
|
25
27
|
},
|
|
26
28
|
borderRadius: "var(--ds-border-radius, 3px)".concat(" ", "var(--ds-border-radius, 3px)", " 0 0"),
|
|
27
29
|
lineHeight: 1,
|
|
30
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
28
31
|
'&.nested': {
|
|
29
32
|
// Need to add indent if the node is nested since we removed previous indentation styles to make it fit properly
|
|
30
33
|
// in the nested component
|
|
31
34
|
marginLeft: "var(--ds-space-150, 12px)"
|
|
32
35
|
},
|
|
36
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
33
37
|
'&.bodied-background': {
|
|
34
38
|
background: "var(--ds-surface, ".concat(N0, ")")
|
|
35
39
|
},
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
36
41
|
'&.bodied-border': {
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
// to account for bodied having borders now - adding this to help with less conditional styling
|
|
40
|
-
border: '1px solid transparent',
|
|
41
|
-
borderBottom: 'none'
|
|
42
|
+
boxShadow: "0 0 0 1px ".concat("var(--ds-border, ".concat(N30, ")"))
|
|
43
|
+
}
|
|
42
44
|
});
|
|
43
45
|
var textStyles = css({
|
|
44
46
|
fontSize: '14px',
|
|
@@ -49,6 +51,7 @@ var containerStyles = css({
|
|
|
49
51
|
textAlign: 'left',
|
|
50
52
|
zIndex: 1,
|
|
51
53
|
position: 'relative',
|
|
54
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
52
55
|
'&.bodied': {
|
|
53
56
|
marginTop: "var(--ds-space-300, 24px)"
|
|
54
57
|
}
|
|
@@ -84,7 +87,9 @@ export var ExtensionLabel = function ExtensionLabel(_ref) {
|
|
|
84
87
|
}, [setIsNodeHovered]);
|
|
85
88
|
return jsx("div", {
|
|
86
89
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
87
|
-
css: containerStyles
|
|
90
|
+
css: containerStyles
|
|
91
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
92
|
+
,
|
|
88
93
|
className: containerClassNames
|
|
89
94
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
90
95
|
,
|
|
@@ -36,19 +36,24 @@ export var LozengeComponent = function LozengeComponent(_ref) {
|
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
var isBlockExtension = extensionName === 'extension';
|
|
39
|
-
return
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
39
|
+
return (
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
41
|
+
jsx("div", {
|
|
42
|
+
"data-testid": "lozenge-fallback",
|
|
43
|
+
css: placeholderFallback
|
|
44
|
+
}, lozengeData && !isBlockExtension ? renderImage(_objectSpread({
|
|
45
|
+
height: ICON_SIZE,
|
|
46
|
+
width: ICON_SIZE
|
|
47
|
+
}, lozengeData)) : jsx(EditorFileIcon, {
|
|
48
|
+
label: title
|
|
49
|
+
}), jsx("span", {
|
|
50
|
+
className: "extension-title"
|
|
51
|
+
}, capitalizedTitle), params && !isBlockExtension &&
|
|
52
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
53
|
+
jsx("span", {
|
|
54
|
+
css: placeholderFallbackParams
|
|
55
|
+
}, Object.keys(params).map(function (key) {
|
|
56
|
+
return key && " | ".concat(key, " = ").concat(params[key].value);
|
|
57
|
+
})))
|
|
58
|
+
);
|
|
54
59
|
};
|
|
@@ -30,6 +30,7 @@ var ExtensionLozenge = /*#__PURE__*/function (_Component) {
|
|
|
30
30
|
var extensionKey = _this.props.node.attrs.extensionKey;
|
|
31
31
|
var url = lozengeData.url,
|
|
32
32
|
rest = _objectWithoutProperties(lozengeData, _excluded);
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
33
34
|
return jsx("img", _extends({
|
|
34
35
|
css: styledImage,
|
|
35
36
|
src: url
|
|
@@ -3,21 +3,28 @@ import { css } from '@emotion/react';
|
|
|
3
3
|
import { N20, N20A, N70 } from '@atlaskit/theme/colors';
|
|
4
4
|
import { BODIED_EXT_PADDING, EXTENSION_PADDING } from '../../styles';
|
|
5
5
|
export { EXTENSION_PADDING as padding, BODIED_EXT_PADDING };
|
|
6
|
+
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
6
8
|
export var wrapperDefault = css({
|
|
7
9
|
background: "var(--ds-background-neutral, ".concat(N20, ")"),
|
|
8
10
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
9
11
|
position: 'relative',
|
|
10
12
|
verticalAlign: 'middle',
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
11
14
|
'&.with-overlay': {
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
12
16
|
'.extension-overlay': {
|
|
13
17
|
background: "var(--ds-background-neutral-hovered, ".concat(N20A, ")"),
|
|
14
18
|
color: 'transparent'
|
|
15
19
|
},
|
|
20
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
16
21
|
'&:hover .extension-overlay': {
|
|
17
22
|
opacity: 1
|
|
18
23
|
}
|
|
19
24
|
}
|
|
20
25
|
});
|
|
26
|
+
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
21
28
|
export var overlay = css({
|
|
22
29
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
23
30
|
position: 'absolute',
|
|
@@ -27,9 +34,12 @@ export var overlay = css({
|
|
|
27
34
|
pointerEvents: 'none',
|
|
28
35
|
transition: 'opacity 0.3s'
|
|
29
36
|
});
|
|
37
|
+
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
30
39
|
export var placeholderFallback = css({
|
|
31
40
|
display: 'inline-flex',
|
|
32
41
|
alignItems: 'center',
|
|
42
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
33
43
|
'& > img': {
|
|
34
44
|
margin: "0 ".concat("var(--ds-space-050, 4px)")
|
|
35
45
|
},
|
|
@@ -37,6 +47,8 @@ export var placeholderFallback = css({
|
|
|
37
47
|
/* stylelint-disable-next-line */
|
|
38
48
|
label: 'placeholder-fallback'
|
|
39
49
|
});
|
|
50
|
+
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
40
52
|
export var placeholderFallbackParams = css({
|
|
41
53
|
display: 'inline-block',
|
|
42
54
|
maxWidth: '200px',
|
|
@@ -46,6 +58,8 @@ export var placeholderFallbackParams = css({
|
|
|
46
58
|
whiteSpace: 'nowrap',
|
|
47
59
|
overflow: 'hidden'
|
|
48
60
|
});
|
|
61
|
+
|
|
62
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
49
63
|
export var styledImage = css({
|
|
50
64
|
maxHeight: '16px',
|
|
51
65
|
maxWidth: '16px',
|
|
@@ -4,9 +4,11 @@ import { css, jsx } from '@emotion/react';
|
|
|
4
4
|
import classnames from 'classnames';
|
|
5
5
|
import { ZERO_WIDTH_SPACE } from '../utils';
|
|
6
6
|
var styles = css({
|
|
7
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
7
8
|
'&.inline-extension': {
|
|
8
9
|
display: 'inline-block'
|
|
9
10
|
},
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
10
12
|
'&.relative': {
|
|
11
13
|
position: 'relative'
|
|
12
14
|
}
|