@atlaskit/editor-common 82.3.0 → 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 +8 -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 -2
- package/dist/cjs/extensibility/Extension/Extension/styles.js +20 -0
- package/dist/cjs/extensibility/Extension/InlineExtension/index.js +3 -1
- package/dist/cjs/extensibility/Extension/InlineExtension/styles.js +8 -0
- package/dist/cjs/extensibility/Extension/Lozenge/ExtensionLabel.js +9 -1
- 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 +12 -0
- 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 +4 -2
- package/dist/cjs/ui-color/ColorPalette/Color/styles.js +3 -0
- package/dist/cjs/ui-color/ColorPalette/Palettes/paletteMessages.js +1 -1
- package/dist/cjs/ui-color/ColorPalette/index.js +1 -0
- 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/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 -2
- package/dist/es2019/extensibility/Extension/Extension/styles.js +20 -0
- package/dist/es2019/extensibility/Extension/InlineExtension/index.js +3 -1
- package/dist/es2019/extensibility/Extension/InlineExtension/styles.js +9 -0
- package/dist/es2019/extensibility/Extension/Lozenge/ExtensionLabel.js +9 -1
- 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 +12 -0
- 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 +4 -2
- package/dist/es2019/ui-color/ColorPalette/Color/styles.js +3 -0
- package/dist/es2019/ui-color/ColorPalette/Palettes/paletteMessages.js +1 -1
- package/dist/es2019/ui-color/ColorPalette/index.js +1 -0
- 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/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 -2
- package/dist/esm/extensibility/Extension/Extension/styles.js +20 -0
- package/dist/esm/extensibility/Extension/InlineExtension/index.js +3 -1
- package/dist/esm/extensibility/Extension/InlineExtension/styles.js +9 -0
- package/dist/esm/extensibility/Extension/Lozenge/ExtensionLabel.js +9 -1
- 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 +12 -0
- 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 +4 -2
- package/dist/esm/ui-color/ColorPalette/Color/styles.js +3 -0
- package/dist/esm/ui-color/ColorPalette/Palettes/paletteMessages.js +1 -1
- package/dist/esm/ui-color/ColorPalette/index.js +1 -0
- 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/types/analytics/types/highlight-events.d.ts +4 -2
- package/dist/types/keymaps/index.d.ts +1 -0
- package/dist/types/messages/help-dialog.d.ts +5 -0
- package/dist/types-ts4.5/analytics/types/highlight-events.d.ts +4 -2
- package/dist/types-ts4.5/keymaps/index.d.ts +1 -0
- package/dist/types-ts4.5/messages/help-dialog.d.ts +5 -0
- package/package.json +1 -1
|
@@ -18,14 +18,19 @@ var errorColor = (0, _react.css)({
|
|
|
18
18
|
var validColor = (0, _react.css)({
|
|
19
19
|
color: "var(--ds-text-success, ".concat(_colors.G400, ")")
|
|
20
20
|
});
|
|
21
|
+
|
|
22
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
21
23
|
var messageStyle = function messageStyle() {
|
|
22
|
-
return (
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
return (
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
26
|
+
(0, _react.css)((0, _typography.h200)(), {
|
|
27
|
+
fontWeight: 'normal',
|
|
28
|
+
color: "var(--ds-text-subtlest, ".concat(_colors.N200, ")"),
|
|
29
|
+
marginTop: "var(--ds-space-050, 4px)",
|
|
30
|
+
display: 'flex',
|
|
31
|
+
justifyContent: 'baseline'
|
|
32
|
+
})
|
|
33
|
+
);
|
|
29
34
|
};
|
|
30
35
|
var iconWrapperStyle = (0, _react.css)({
|
|
31
36
|
display: 'flex',
|
|
@@ -9,26 +9,35 @@ var _react = require("@emotion/react");
|
|
|
9
9
|
|
|
10
10
|
// Wraps the navigation bar and extensionFrames
|
|
11
11
|
var mbeExtensionContainer = (0, _react.css)({
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
12
13
|
background: 'transparent !important',
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
13
15
|
'padding:': {
|
|
16
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
14
17
|
left: "var(--ds-space-100, 8px)".concat(" !important"),
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
15
19
|
right: "var(--ds-space-100, 8px)".concat(" !important")
|
|
16
20
|
},
|
|
17
21
|
paddingBottom: "var(--ds-space-100, 8px)",
|
|
22
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
18
23
|
'&.remove-padding': {
|
|
19
24
|
paddingBottom: 0
|
|
20
25
|
},
|
|
21
26
|
position: 'relative',
|
|
22
27
|
verticalAlign: 'middle',
|
|
23
28
|
cursor: 'pointer',
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
24
30
|
'.multiBodiedExtension-handler-result': {
|
|
25
31
|
marginLeft: "var(--ds-space-100, 8px)"
|
|
26
32
|
},
|
|
33
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
27
34
|
".multiBodiedExtension-content-dom-wrapper > [data-extension-frame='true'], .multiBodiedExtension--frames > [data-extension-frame='true']": {
|
|
28
35
|
display: 'none',
|
|
29
36
|
background: "var(--ds-surface, white)"
|
|
30
37
|
},
|
|
38
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
31
39
|
'.multiBodiedExtension-content-dom-wrapper, .multiBodiedExtension--frames': {
|
|
40
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
32
41
|
"[data-extension-frame='true'] > :not(style):first-child, [data-extension-frame='true'] > style:first-child + *": {
|
|
33
42
|
marginTop: 0
|
|
34
43
|
}
|
|
@@ -39,18 +48,22 @@ var mbeNavigation = (0, _react.css)({
|
|
|
39
48
|
borderTopRightRadius: "var(--ds-border-radius, 3px)",
|
|
40
49
|
userSelect: 'none',
|
|
41
50
|
WebkitUserModify: 'read-only',
|
|
51
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
42
52
|
borderBottom: 'none !important',
|
|
43
53
|
background: "var(--ds-surface, white)",
|
|
44
54
|
marginLeft: "var(--ds-space-100, 8px)",
|
|
45
55
|
marginRight: "var(--ds-space-100, 8px)",
|
|
56
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
46
57
|
'&.remove-margins': {
|
|
47
58
|
margin: "var(--ds-space-negative-100, -8px)"
|
|
48
59
|
},
|
|
60
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
49
61
|
'&.remove-border': {
|
|
50
62
|
border: 'none'
|
|
51
63
|
}
|
|
52
64
|
});
|
|
53
65
|
var extensionFrameContent = (0, _react.css)({
|
|
66
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
54
67
|
padding: "var(--ds-space-100, 8px)".concat(" !important"),
|
|
55
68
|
display: 'block',
|
|
56
69
|
minHeight: '100px',
|
|
@@ -60,22 +73,33 @@ var extensionFrameContent = (0, _react.css)({
|
|
|
60
73
|
marginLeft: "var(--ds-space-100, 8px)",
|
|
61
74
|
marginRight: "var(--ds-space-100, 8px)",
|
|
62
75
|
cursor: 'initial',
|
|
76
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
63
77
|
'.pm-table-with-controls': {
|
|
78
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
64
79
|
marginLeft: "var(--ds-space-150, 12px)".concat(" !important"),
|
|
80
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
65
81
|
paddingRight: "var(--ds-space-150, 12px)".concat(" !important")
|
|
66
82
|
},
|
|
83
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
67
84
|
'.bodiedExtensionView-content-wrap': {
|
|
85
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
68
86
|
marginTop: "var(--ds-space-150, 12px)".concat(" !important")
|
|
69
87
|
},
|
|
88
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
70
89
|
'.extensionView-content-wrap': {
|
|
90
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
71
91
|
marginTop: "var(--ds-space-100, 8px)".concat(" !important")
|
|
72
92
|
}
|
|
73
93
|
});
|
|
94
|
+
|
|
95
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
74
96
|
var removeMarginsAndBorder = exports.removeMarginsAndBorder = (0, _react.css)({
|
|
75
97
|
marginLeft: 0,
|
|
76
98
|
marginRight: 0,
|
|
77
99
|
border: 'none'
|
|
78
100
|
});
|
|
101
|
+
|
|
102
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
79
103
|
var sharedMultiBodiedExtensionStyles = exports.sharedMultiBodiedExtensionStyles = {
|
|
80
104
|
mbeExtensionContainer: mbeExtensionContainer,
|
|
81
105
|
mbeNavigation: mbeNavigation,
|
|
@@ -124,6 +124,7 @@ var PanelTextInput = exports.default = /*#__PURE__*/function (_PureComponent) {
|
|
|
124
124
|
inputId = _this$props2.inputId;
|
|
125
125
|
var value = this.state.value;
|
|
126
126
|
return (0, _react2.jsx)("input", {
|
|
127
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
127
128
|
css: [_styles.panelTextInput, width !== undefined && (0, _styles.panelTextInputWithCustomWidth)(width)],
|
|
128
129
|
role: role,
|
|
129
130
|
"aria-autocomplete": ariaAutoComplete ? 'list' : undefined,
|
|
@@ -8,7 +8,9 @@ var _react = require("@emotion/react");
|
|
|
8
8
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
9
9
|
var _colors = require("@atlaskit/theme/colors");
|
|
10
10
|
// Normal .className gets overridden by input[type=text] hence this hack to produce input.className
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
11
12
|
var panelTextInput = exports.panelTextInput = (0, _react.css)({
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
12
14
|
'input&': {
|
|
13
15
|
background: 'transparent',
|
|
14
16
|
border: "2px solid ".concat("var(--ds-border, ".concat(_colors.N30, ")")),
|
|
@@ -16,11 +18,13 @@ var panelTextInput = exports.panelTextInput = (0, _react.css)({
|
|
|
16
18
|
boxSizing: 'content-box',
|
|
17
19
|
color: "var(--ds-text-subtle, ".concat(_colors.N400, ")"),
|
|
18
20
|
flexGrow: 1,
|
|
21
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
19
22
|
fontSize: (0, _editorSharedStyles.relativeFontSizeToBase16)(13),
|
|
20
23
|
lineHeight: '20px',
|
|
21
24
|
padding: "var(--ds-space-075, 6px)".concat(" ", "var(--ds-space-400, 32px)", " ", "var(--ds-space-075, 6px)", " ", "var(--ds-space-100, 8px)"),
|
|
22
25
|
minWidth: '145px',
|
|
23
26
|
/* Hides IE10+ built-in [x] clear input button */
|
|
27
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
24
28
|
'&::-ms-clear': {
|
|
25
29
|
display: 'none'
|
|
26
30
|
},
|
|
@@ -35,7 +39,9 @@ var panelTextInput = exports.panelTextInput = (0, _react.css)({
|
|
|
35
39
|
});
|
|
36
40
|
var panelTextInputWithCustomWidth = exports.panelTextInputWithCustomWidth = function panelTextInputWithCustomWidth(width) {
|
|
37
41
|
return (0, _react.css)({
|
|
42
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
38
43
|
'input&': {
|
|
44
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
39
45
|
width: "".concat(width, "px")
|
|
40
46
|
}
|
|
41
47
|
});
|
|
@@ -300,6 +300,7 @@ var Popup = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
|
300
300
|
style: _objectSpread(_objectSpread({
|
|
301
301
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
302
302
|
position: 'absolute',
|
|
303
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
303
304
|
zIndex: this.props.zIndex || _editorSharedStyles.akEditorFloatingPanelZIndex
|
|
304
305
|
}, position), this.props.style),
|
|
305
306
|
"aria-label": ariaLabel,
|
|
@@ -25,10 +25,12 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
25
25
|
var blockNodeStyle = (0, _react2.css)({
|
|
26
26
|
background: "var(--ds-background-disabled, ".concat(_colors.N30, ")"),
|
|
27
27
|
border: "1px dashed ".concat("var(--ds-border-disabled, ".concat(_colors.N50, ")")),
|
|
28
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
28
29
|
borderRadius: "".concat((0, _constants.borderRadius)(), "px"),
|
|
29
30
|
boxSizing: 'border-box',
|
|
30
31
|
cursor: 'default',
|
|
31
32
|
display: 'flex',
|
|
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
|
|
32
34
|
fontSize: (0, _editorSharedStyles.relativeFontSizeToBase16)((0, _constants.fontSize)()),
|
|
33
35
|
margin: "var(--ds-space-100, 8px)".concat(" 0"),
|
|
34
36
|
minHeight: '24px',
|
|
@@ -26,10 +26,12 @@ var inlineNodeStyle = (0, _react2.css)({
|
|
|
26
26
|
alignItems: 'center',
|
|
27
27
|
background: "var(--ds-background-disabled, ".concat(_colors.N30, ")"),
|
|
28
28
|
border: "1px dashed ".concat("var(--ds-border-disabled, ".concat(_colors.N50, ")")),
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
29
30
|
borderRadius: "".concat((0, _constants.borderRadius)(), "px"),
|
|
30
31
|
boxSizing: 'border-box',
|
|
31
32
|
cursor: 'default',
|
|
32
33
|
display: 'inline-flex',
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
33
35
|
fontSize: (0, _editorSharedStyles.relativeFontSizeToBase16)((0, _constants.fontSize)()),
|
|
34
36
|
margin: "0 ".concat("var(--ds-space-025, 2px)"),
|
|
35
37
|
minHeight: '24px',
|
|
@@ -9,9 +9,11 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
// We use !important to ensure next sibling gets the margin reset no matter what
|
|
11
11
|
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
12
13
|
var clearNextSiblingMarginTopStyle = exports.clearNextSiblingMarginTopStyle = (0, _react.css)({
|
|
14
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
13
15
|
'& + *': {
|
|
14
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
16
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
15
17
|
marginTop: '0 !important'
|
|
16
18
|
}
|
|
17
19
|
});
|
|
@@ -19,7 +21,9 @@ var textElements = ['p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'];
|
|
|
19
21
|
var nextSiblingBlockMarkContentSelectors = textElements.map(function (elem) {
|
|
20
22
|
return "+ .fabric-editor-block-mark > ".concat(elem);
|
|
21
23
|
}).join(',');
|
|
24
|
+
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
22
26
|
var clearNextSiblingBlockMarkMarginTopStyle = exports.clearNextSiblingBlockMarkMarginTopStyle = (0, _react.css)((0, _defineProperty2.default)({}, "".concat(nextSiblingBlockMarkContentSelectors), {
|
|
23
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
27
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
24
28
|
marginTop: '0 !important'
|
|
25
29
|
}));
|
|
@@ -67,7 +67,7 @@ function FunctionalComponentColor(props) {
|
|
|
67
67
|
border: "1px solid ".concat(borderColor)
|
|
68
68
|
},
|
|
69
69
|
autoFocus: autoFocus
|
|
70
|
-
}, isSelected && (0, _react2.jsx)(_done.default, {
|
|
70
|
+
}, !decorator && isSelected && (0, _react2.jsx)(_done.default, {
|
|
71
71
|
primaryColor: checkMarkColor,
|
|
72
72
|
label: ""
|
|
73
73
|
}), decorator)));
|
|
@@ -114,7 +114,9 @@ var ClassComponentColor = /*#__PURE__*/function (_PureComponent) {
|
|
|
114
114
|
}, (0, _react2.jsx)("span", {
|
|
115
115
|
css: _styles.buttonWrapperStyle
|
|
116
116
|
}, (0, _react2.jsx)("button", {
|
|
117
|
-
type: "button"
|
|
117
|
+
type: "button"
|
|
118
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
119
|
+
,
|
|
118
120
|
css: _styles.buttonStyle,
|
|
119
121
|
"aria-label": label,
|
|
120
122
|
role: "radio",
|
|
@@ -8,6 +8,7 @@ var _react = require("@emotion/react");
|
|
|
8
8
|
var _colors = require("@atlaskit/theme/colors");
|
|
9
9
|
/** this is not new usage - old code extracted from editor-core */
|
|
10
10
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
11
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
11
12
|
var buttonStyle = exports.buttonStyle = (0, _react.css)({
|
|
12
13
|
height: '26px',
|
|
13
14
|
width: '26px',
|
|
@@ -22,6 +23,7 @@ var buttonStyle = exports.buttonStyle = (0, _react.css)({
|
|
|
22
23
|
|
|
23
24
|
/** this is not new usage - old code extracted from editor-core */
|
|
24
25
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
26
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
25
27
|
var buttonWrapperStyle = exports.buttonWrapperStyle = (0, _react.css)({
|
|
26
28
|
border: '1px solid transparent',
|
|
27
29
|
fontSize: 0,
|
|
@@ -30,6 +32,7 @@ var buttonWrapperStyle = exports.buttonWrapperStyle = (0, _react.css)({
|
|
|
30
32
|
padding: "var(--ds-space-025, 2px)",
|
|
31
33
|
borderRadius: '6px',
|
|
32
34
|
'&:focus-within, &:focus, &:hover': {
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-important-styles -- Ignored via go/DSP-18766
|
|
33
36
|
borderColor: "".concat("var(--ds-border, ".concat(_colors.N50, ")"), " !important")
|
|
34
37
|
}
|
|
35
38
|
});
|
|
@@ -129,7 +129,7 @@ var _default = exports.default = (0, _reactIntlNext.defineMessages)({
|
|
|
129
129
|
// Colors only used in highlight palette
|
|
130
130
|
'no-color': {
|
|
131
131
|
id: 'fabric.theme.no-color',
|
|
132
|
-
defaultMessage: '
|
|
132
|
+
defaultMessage: 'No highlight',
|
|
133
133
|
description: 'Tooltip for the no color option in the highlight color palette in the main editor toolbar'
|
|
134
134
|
},
|
|
135
135
|
lime: {
|
|
@@ -62,6 +62,7 @@ var ColorPalette = function ColorPalette(props) {
|
|
|
62
62
|
}, [palette, cols]);
|
|
63
63
|
return (0, _react2.jsx)(_react.default.Fragment, null, colorsPerRow.map(function (row) {
|
|
64
64
|
return (0, _react2.jsx)("div", {
|
|
65
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
65
66
|
css: _styles.colorPaletteWrapper
|
|
66
67
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
67
68
|
,
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.colorPaletteWrapper = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
8
9
|
var colorPaletteWrapper = exports.colorPaletteWrapper = (0, _react.css)({
|
|
9
10
|
padding: "0 ".concat("var(--ds-space-100, 8px)"),
|
|
10
11
|
/* Firefox bug fix: https://product-fabric.atlassian.net/browse/ED-1789 */
|
|
@@ -32,6 +32,7 @@ var colorPickerExpandContainer = (0, _react2.css)({
|
|
|
32
32
|
// Control the size of color picker buttons and preview
|
|
33
33
|
// TODO: https://product-fabric.atlassian.net/browse/DSP-4134
|
|
34
34
|
/* eslint-disable @atlaskit/design-system/ensure-design-token-usage */
|
|
35
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
35
36
|
var colorPickerWrapper = function colorPickerWrapper() {
|
|
36
37
|
return (0, _react2.css)({
|
|
37
38
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
@@ -175,17 +176,23 @@ var ColorPickerButton = function ColorPickerButton(props) {
|
|
|
175
176
|
return (0, _react2.css)({
|
|
176
177
|
padding: "var(--ds-space-075, 6px)".concat(" 10px"),
|
|
177
178
|
backgroundColor: "var(--ds-background-neutral-subtle, transparent)",
|
|
179
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
178
180
|
height: "".concat(!!((_props$size = props.size) !== null && _props$size !== void 0 && _props$size.height) ? 'inherit' : ''),
|
|
181
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
179
182
|
'&:before': {
|
|
180
183
|
display: 'flex',
|
|
181
184
|
justifyContent: 'center',
|
|
182
185
|
alignItems: 'center',
|
|
183
186
|
alignSelf: 'center',
|
|
184
187
|
content: "''",
|
|
188
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
185
189
|
border: "1px solid ".concat(_uiColor.DEFAULT_BORDER_COLOR),
|
|
186
190
|
borderRadius: "var(--ds-border-radius, 3px)",
|
|
191
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
187
192
|
backgroundColor: currentColor || 'transparent',
|
|
193
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
188
194
|
width: ((_props$size2 = props.size) === null || _props$size2 === void 0 ? void 0 : _props$size2.width) || '14px',
|
|
195
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
189
196
|
height: ((_props$size3 = props.size) === null || _props$size3 === void 0 ? void 0 : _props$size3.height) || '14px',
|
|
190
197
|
padding: 0,
|
|
191
198
|
margin: "0px ".concat("var(--ds-space-025, 2px)")
|
|
@@ -44,6 +44,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
44
44
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
45
45
|
var wrapper = (0, _react2.css)({
|
|
46
46
|
/* tooltip in ToolbarButton is display:block */
|
|
47
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
47
48
|
'& > div > div': {
|
|
48
49
|
display: 'flex'
|
|
49
50
|
}
|
|
@@ -145,7 +145,7 @@ export const TELEPOINTER_DIM_CLASS = 'telepointer-dim';
|
|
|
145
145
|
|
|
146
146
|
// ED-22557: Safely convert to object styling
|
|
147
147
|
// Disable top: -14px since it is necessary to align to cursor
|
|
148
|
-
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/no-exported-css
|
|
148
|
+
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview, @atlaskit/design-system/no-css-tagged-template-expression, @atlaskit/design-system/no-exported-css, @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
149
149
|
export const telepointerStyle = css`
|
|
150
150
|
.ProseMirror .telepointer {
|
|
151
151
|
position: relative;
|
|
@@ -31,6 +31,7 @@ export const ViewMore = ({
|
|
|
31
31
|
"aria-describedby": item.title,
|
|
32
32
|
"data-testid": "view-more-elements-item"
|
|
33
33
|
// @ts-ignore Overriding Menu styles is not supported
|
|
34
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
34
35
|
,
|
|
35
36
|
css: css({
|
|
36
37
|
padding: `0px ${"var(--ds-space-150, 12px)"}`
|
|
@@ -178,9 +178,12 @@ function CategoryListItem({
|
|
|
178
178
|
}, category.title));
|
|
179
179
|
}
|
|
180
180
|
const buttonWrapper = css({
|
|
181
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
181
182
|
height: `${GRID_SIZE * 4}px`,
|
|
182
183
|
margin: `${"var(--ds-space-050, 4px)"} ${"var(--ds-space-050, 4px)"} ${"var(--ds-space-050, 4px)"} 0`,
|
|
184
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
183
185
|
[`@media (min-width: ${DEVICE_BREAKPOINT_NUMBERS.medium}px)`]: {
|
|
186
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
184
187
|
':not(:last-child)': {
|
|
185
188
|
marginBottom: 0
|
|
186
189
|
}
|
|
@@ -25,16 +25,20 @@ import EmptyState from './EmptyState';
|
|
|
25
25
|
import { getColumnCount, getScrollbarWidth } from './utils';
|
|
26
26
|
export const ICON_HEIGHT = 40;
|
|
27
27
|
export const ICON_WIDTH = 40;
|
|
28
|
+
|
|
29
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
28
30
|
export const itemIcon = css({
|
|
29
31
|
width: `${ICON_WIDTH}px`,
|
|
30
32
|
height: `${ICON_HEIGHT}px`,
|
|
31
33
|
overflow: 'hidden',
|
|
32
34
|
border: `1px solid ${"var(--ds-border, rgba(223, 225, 229, 0.5))"}`,
|
|
35
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
33
36
|
borderRadius: `${borderRadius()}px`,
|
|
34
37
|
boxSizing: 'border-box',
|
|
35
38
|
display: 'flex',
|
|
36
39
|
justifyContent: 'center',
|
|
37
40
|
alignItems: 'center',
|
|
41
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
38
42
|
div: {
|
|
39
43
|
width: `${ICON_WIDTH}px`,
|
|
40
44
|
height: `${ICON_HEIGHT}px`
|
|
@@ -164,8 +168,11 @@ function ElementList({
|
|
|
164
168
|
columnIndex: columnIndex,
|
|
165
169
|
parent: parent
|
|
166
170
|
}, jsx("div", {
|
|
171
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
167
172
|
style: style,
|
|
168
|
-
key: key
|
|
173
|
+
key: key
|
|
174
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766 -- Ignored via go/DSP-18766
|
|
175
|
+
,
|
|
169
176
|
className: "element-item-wrapper",
|
|
170
177
|
css: elementItemWrapper,
|
|
171
178
|
onKeyDown: getBooleanFF('platform.editor.a11y-focus-order-for-element-browser-categories_ztiw1') ? e => {
|
|
@@ -366,21 +373,28 @@ const elementItemsWrapper = css({
|
|
|
366
373
|
justifyContent: 'flex-start',
|
|
367
374
|
overflow: 'hidden',
|
|
368
375
|
padding: "var(--ds-space-025, 2px)",
|
|
376
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
369
377
|
'.ReactVirtualized__Collection, .ReactVirtualized__Grid': {
|
|
378
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
370
379
|
borderRadius: '3px',
|
|
371
380
|
outline: 'none',
|
|
372
381
|
'&:focus': {
|
|
382
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
373
383
|
boxShadow: `0 0 0 ${ELEMENT_LIST_PADDING}px ${`var(--ds-border-focused, ${B100})`}`
|
|
374
384
|
}
|
|
375
385
|
},
|
|
386
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
376
387
|
'.ReactVirtualized__Collection__innerScrollContainer, .ReactVirtualized__Grid__innerScrollContainer': {
|
|
388
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
377
389
|
"div[class='element-item-wrapper']:last-child": {
|
|
378
390
|
paddingBottom: "var(--ds-space-050, 4px)"
|
|
379
391
|
}
|
|
380
392
|
}
|
|
381
393
|
});
|
|
382
394
|
const elementItemWrapper = css({
|
|
395
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
383
396
|
div: {
|
|
397
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
384
398
|
button: {
|
|
385
399
|
minHeight: '75px',
|
|
386
400
|
alignItems: 'flex-start',
|
|
@@ -407,8 +421,11 @@ const multilineStyle = css({
|
|
|
407
421
|
WebkitLineClamp: 2,
|
|
408
422
|
WebkitBoxOrient: 'vertical'
|
|
409
423
|
});
|
|
424
|
+
|
|
425
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
410
426
|
const itemDescription = css(multilineStyle, {
|
|
411
427
|
overflow: 'hidden',
|
|
428
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
412
429
|
fontSize: relativeFontSizeToBase16(11.67),
|
|
413
430
|
color: `var(--ds-text-subtle, ${N200})`,
|
|
414
431
|
marginTop: "var(--ds-space-025, 2px)"
|
|
@@ -433,6 +450,7 @@ const itemAfter = css({
|
|
|
433
450
|
marginBottom: "var(--ds-space-negative-025, -2px)"
|
|
434
451
|
});
|
|
435
452
|
const itemIconStyle = css({
|
|
453
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
436
454
|
img: {
|
|
437
455
|
height: '40px',
|
|
438
456
|
width: '40px',
|
|
@@ -74,67 +74,79 @@ function ElementSearch({
|
|
|
74
74
|
const assistiveMessage = getFormattedMessage(items === null || items === void 0 ? void 0 : items.length);
|
|
75
75
|
const isInputNotFocusedAndItemSelected = !inputFocused && selectedItemIndex !== undefined;
|
|
76
76
|
const ariaActiveDescendant = isInputNotFocusedAndItemSelected ? `searched-item-${selectedItemIndex}` : undefined;
|
|
77
|
-
return
|
|
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
|
-
|
|
117
|
-
|
|
118
|
-
|
|
77
|
+
return (
|
|
78
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
79
|
+
jsx("div", {
|
|
80
|
+
css: [wrapper, mode === Modes.inline && wrapperInline]
|
|
81
|
+
}, jsx(Textfield, {
|
|
82
|
+
ref: ref,
|
|
83
|
+
onChange: onChange,
|
|
84
|
+
onClick: onClick,
|
|
85
|
+
onFocus: onFocus,
|
|
86
|
+
onKeyDown: onKeyDown,
|
|
87
|
+
onBlur: onBlur,
|
|
88
|
+
elemBeforeInput: jsx("div", {
|
|
89
|
+
css: elementBeforeInput,
|
|
90
|
+
"data-testid": "element_search__element_before_input",
|
|
91
|
+
"aria-hidden": "true"
|
|
92
|
+
}, jsx(SearchIcon, {
|
|
93
|
+
size: "medium",
|
|
94
|
+
label: "Advanced search",
|
|
95
|
+
primaryColor: "inherit"
|
|
96
|
+
})),
|
|
97
|
+
elemAfterInput: jsx("div", {
|
|
98
|
+
css: elementAfterInput,
|
|
99
|
+
"data-testid": "element_search__element_after_input"
|
|
100
|
+
}, jsx("div", {
|
|
101
|
+
css: styledShortcut
|
|
102
|
+
}, "\u23CE ", formatMessage(commonMessages.elementAfterInputMessage))),
|
|
103
|
+
placeholder: formatMessage(commonMessages.placeHolderMessage),
|
|
104
|
+
"aria-label": "search",
|
|
105
|
+
"aria-labelledby": "search-assistive"
|
|
106
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
107
|
+
,
|
|
108
|
+
className: "js-search-input",
|
|
109
|
+
role: "combobox",
|
|
110
|
+
"aria-activedescendant": ariaActiveDescendant,
|
|
111
|
+
value: searchTerm
|
|
112
|
+
}), jsx("span", {
|
|
113
|
+
id: "search-assistive",
|
|
114
|
+
ref: assistiveTextRef,
|
|
115
|
+
"aria-live": "polite",
|
|
116
|
+
"aria-atomic": "true"
|
|
117
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
118
|
+
,
|
|
119
|
+
className: "assistive"
|
|
120
|
+
}, assistiveMessage))
|
|
121
|
+
);
|
|
119
122
|
}
|
|
123
|
+
|
|
124
|
+
// 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
|
|
120
125
|
const styledShortcut = css(shortcutStyle, {
|
|
121
126
|
padding: `${"var(--ds-space-050, 4px)"} ${"var(--ds-space-100, 8px)"}`,
|
|
122
127
|
width: "var(--ds-space-600, 48px)"
|
|
123
128
|
});
|
|
124
129
|
const wrapper = css({
|
|
130
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
125
131
|
'& > [data-ds--text-field--container]': {
|
|
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
|
|
126
133
|
height: `${GRID_SIZE * 6}px`,
|
|
134
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
127
135
|
borderRadius: `${GRID_SIZE}px`,
|
|
128
136
|
flex: '1 1 100%',
|
|
129
137
|
overflow: 'visible',
|
|
138
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
130
139
|
'& > [data-ds--text-field--input]': {
|
|
140
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
131
141
|
fontSize: relativeFontSizeToBase16(14),
|
|
132
142
|
padding: `${"var(--ds-space-100, 8px)"} ${"var(--ds-space-075, 6px)"} ${"var(--ds-space-100, 8px)"} 0`
|
|
133
143
|
}
|
|
134
144
|
}
|
|
135
145
|
});
|
|
136
146
|
const wrapperInline = css({
|
|
147
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
137
148
|
'& > [data-ds--text-field--container]': {
|
|
149
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
138
150
|
height: `${GRID_SIZE * 5}px`,
|
|
139
151
|
flex: 'none',
|
|
140
152
|
overflow: 'revert'
|
|
@@ -143,6 +155,7 @@ const wrapperInline = css({
|
|
|
143
155
|
const elementBeforeInput = css({
|
|
144
156
|
margin: `1px ${"var(--ds-space-075, 6px)"} 0 ${"var(--ds-space-100, 8px)"}`,
|
|
145
157
|
color: `var(--ds-icon, ${N200})`,
|
|
158
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
146
159
|
'span, svg': {
|
|
147
160
|
height: '20px',
|
|
148
161
|
width: '20px'
|
|
@@ -150,6 +163,7 @@ const elementBeforeInput = css({
|
|
|
150
163
|
});
|
|
151
164
|
const elementAfterInput = css({
|
|
152
165
|
margin: `0 ${"var(--ds-space-100, 8px)"}`,
|
|
166
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
153
167
|
height: SEARCH_ITEM_HEIGHT_WIDTH,
|
|
154
168
|
textAlign: 'center'
|
|
155
169
|
});
|