@atlaskit/editor-plugin-table 18.1.3 → 18.1.5
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 +14 -0
- package/dist/cjs/nodeviews/TableComponent.js +9 -3
- package/dist/cjs/nodeviews/TableComponentWithSharedState.js +4 -1
- package/dist/cjs/nodeviews/TableContainer.js +3 -1
- package/dist/cjs/nodeviews/TableResizer.js +3 -1
- package/dist/cjs/ui/ContentComponent.js +3 -1
- package/dist/cjs/ui/DragPreview/index.js +6 -2
- package/dist/cjs/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +3 -1
- package/dist/cjs/ui/FloatingContextualButton/index.js +3 -1
- package/dist/cjs/ui/FloatingContextualButton/styles.js +8 -9
- package/dist/cjs/ui/FloatingContextualMenu/ContextualMenu.js +10 -3
- package/dist/cjs/ui/FloatingContextualMenu/index.js +6 -2
- package/dist/cjs/ui/FloatingContextualMenu/styles.js +1 -2
- package/dist/cjs/ui/FloatingDragMenu/DragMenu.js +12 -4
- package/dist/cjs/ui/FloatingDragMenu/DropdownMenu.js +15 -5
- package/dist/cjs/ui/FloatingDragMenu/styles.js +1 -2
- package/dist/cjs/ui/SizeSelector/index.js +3 -1
- package/dist/cjs/ui/TableFloatingControls/RowControls/DragControls.js +3 -1
- package/dist/cjs/ui/common-styles.js +2 -3
- package/dist/cjs/ui/consts.js +17 -18
- package/dist/cjs/ui/icons/DragInMotionIcon.js +1 -1
- package/dist/cjs/ui/toolbar.js +6 -2
- package/dist/cjs/ui/ui-styles.js +10 -11
- package/dist/es2019/nodeviews/TableComponent.js +9 -3
- package/dist/es2019/nodeviews/TableComponentWithSharedState.js +4 -1
- package/dist/es2019/nodeviews/TableContainer.js +3 -1
- package/dist/es2019/nodeviews/TableResizer.js +3 -1
- package/dist/es2019/ui/ContentComponent.js +3 -1
- package/dist/es2019/ui/DragPreview/index.js +6 -2
- package/dist/es2019/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +3 -1
- package/dist/es2019/ui/FloatingContextualButton/index.js +3 -1
- package/dist/es2019/ui/FloatingContextualButton/styles.js +8 -9
- package/dist/es2019/ui/FloatingContextualMenu/ContextualMenu.js +10 -3
- package/dist/es2019/ui/FloatingContextualMenu/index.js +6 -2
- package/dist/es2019/ui/FloatingContextualMenu/styles.js +4 -5
- package/dist/es2019/ui/FloatingDragMenu/DragMenu.js +12 -4
- package/dist/es2019/ui/FloatingDragMenu/DropdownMenu.js +15 -5
- package/dist/es2019/ui/FloatingDragMenu/styles.js +3 -4
- package/dist/es2019/ui/SizeSelector/index.js +3 -1
- package/dist/es2019/ui/TableFloatingControls/RowControls/DragControls.js +3 -1
- package/dist/es2019/ui/common-styles.js +26 -28
- package/dist/es2019/ui/consts.js +18 -19
- package/dist/es2019/ui/icons/DragInMotionIcon.js +1 -1
- package/dist/es2019/ui/toolbar.js +6 -2
- package/dist/es2019/ui/ui-styles.js +25 -38
- package/dist/esm/nodeviews/TableComponent.js +9 -3
- package/dist/esm/nodeviews/TableComponentWithSharedState.js +4 -1
- package/dist/esm/nodeviews/TableContainer.js +3 -1
- package/dist/esm/nodeviews/TableResizer.js +3 -1
- package/dist/esm/ui/ContentComponent.js +3 -1
- package/dist/esm/ui/DragPreview/index.js +6 -2
- package/dist/esm/ui/FloatingAlignmentButtons/FloatingAlignmentButtons.js +3 -1
- package/dist/esm/ui/FloatingContextualButton/index.js +3 -1
- package/dist/esm/ui/FloatingContextualButton/styles.js +8 -9
- package/dist/esm/ui/FloatingContextualMenu/ContextualMenu.js +10 -3
- package/dist/esm/ui/FloatingContextualMenu/index.js +6 -2
- package/dist/esm/ui/FloatingContextualMenu/styles.js +1 -2
- package/dist/esm/ui/FloatingDragMenu/DragMenu.js +12 -4
- package/dist/esm/ui/FloatingDragMenu/DropdownMenu.js +15 -5
- package/dist/esm/ui/FloatingDragMenu/styles.js +1 -2
- package/dist/esm/ui/SizeSelector/index.js +3 -1
- package/dist/esm/ui/TableFloatingControls/RowControls/DragControls.js +3 -1
- package/dist/esm/ui/common-styles.js +2 -3
- package/dist/esm/ui/consts.js +18 -19
- package/dist/esm/ui/icons/DragInMotionIcon.js +1 -1
- package/dist/esm/ui/toolbar.js +6 -2
- package/dist/esm/ui/ui-styles.js +11 -12
- package/package.json +3 -4
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
3
3
|
import { css } from '@emotion/react';
|
|
4
4
|
import { tableCellBorderWidth, tableMarginTop, tableMarginTopWithControl } from '@atlaskit/editor-common/styles';
|
|
5
|
-
import { akEditorShadowZIndex,
|
|
6
|
-
import { B300, N0, N300, N40A, N60A, Y200, Y50 } from '@atlaskit/theme/colors';
|
|
5
|
+
import { akEditorShadowZIndex, akEditorTableNumberColumnWidth, akEditorUnitZIndex } from '@atlaskit/editor-shared-styles';
|
|
7
6
|
import { TableCssClassName as ClassName } from '../types';
|
|
8
7
|
import { columnControlsDecorationHeight, columnControlsSelectedZIndex, columnControlsZIndex, dragTableInsertColumnButtonSize, insertLineWidth, lineMarkerSize, resizeHandlerAreaWidth, resizeHandlerZIndex, resizeLineWidth, tableBorderColor, tableBorderDeleteColor, tableBorderSelectedColor, tableCellDeleteColor, tableCellHoverDeleteIconBackground, tableCellHoverDeleteIconColor, tableCellSelectedDeleteIconBackground, tableCellSelectedDeleteIconColor, tableDeleteButtonSize, tableHeaderCellBackgroundColor, tableInsertColumnButtonSize, tableOverflowShadowWidthWide, tableToolbarDeleteColor, tableToolbarSelectedColor, tableToolbarSize } from './consts';
|
|
9
8
|
const InsertLine = cssString => css`
|
|
@@ -83,14 +82,14 @@ export const HeaderButton = cssString => css`
|
|
|
83
82
|
}
|
|
84
83
|
|
|
85
84
|
.active .${ClassName.CONTROLS_BUTTON} {
|
|
86
|
-
color: ${
|
|
85
|
+
color: ${"var(--ds-icon-inverse, #FFFFFF)"};
|
|
87
86
|
background-color: ${tableToolbarSelectedColor};
|
|
88
87
|
border-color: ${tableBorderSelectedColor};
|
|
89
88
|
}
|
|
90
89
|
`;
|
|
91
90
|
export const HeaderButtonHover = () => css`
|
|
92
91
|
.${ClassName.CONTROLS_BUTTON}:hover {
|
|
93
|
-
color: ${
|
|
92
|
+
color: ${"var(--ds-icon-inverse, #FFFFFF)"};
|
|
94
93
|
background-color: ${tableToolbarSelectedColor};
|
|
95
94
|
border-color: ${tableBorderSelectedColor};
|
|
96
95
|
cursor: pointer;
|
|
@@ -116,9 +115,9 @@ const InsertButton = () => css`
|
|
|
116
115
|
}
|
|
117
116
|
.${ClassName.CONTROLS_INSERT_BUTTON} {
|
|
118
117
|
${Button(`
|
|
119
|
-
background: ${"var(--ds-surface-overlay,
|
|
120
|
-
box-shadow: ${
|
|
121
|
-
color: ${
|
|
118
|
+
background: ${"var(--ds-surface-overlay, #FFFFFF)"};
|
|
119
|
+
box-shadow: ${"var(--ds-shadow-overlay, 0px 8px 12px #1E1F2126, 0px 0px 1px #1E1F214f)"};
|
|
120
|
+
color: ${"var(--ds-icon, #292A2E)"};
|
|
122
121
|
`)}
|
|
123
122
|
}
|
|
124
123
|
.${ClassName.CONTROLS_INSERT_LINE} {
|
|
@@ -130,8 +129,8 @@ const InsertButton = () => css`
|
|
|
130
129
|
`;
|
|
131
130
|
const InsertButtonHover = () => css`
|
|
132
131
|
.${ClassName.CONTROLS_INSERT_BUTTON}:hover {
|
|
133
|
-
background: ${
|
|
134
|
-
color: ${"var(--ds-icon-inverse,
|
|
132
|
+
background: ${"var(--ds-background-brand-bold, #1868DB)"};
|
|
133
|
+
color: ${"var(--ds-icon-inverse, #FFFFFF)"};
|
|
135
134
|
cursor: pointer;
|
|
136
135
|
}
|
|
137
136
|
`;
|
|
@@ -157,9 +156,9 @@ export const dragInsertButtonWrapper = () => css`
|
|
|
157
156
|
|
|
158
157
|
.${ClassName.DRAG_CONTROLS_INSERT_BUTTON} {
|
|
159
158
|
${Button(`
|
|
160
|
-
background: ${"var(--ds-surface-overlay,
|
|
161
|
-
color: ${
|
|
162
|
-
border: 1px solid ${"var(--ds-background-accent-gray-subtler, #
|
|
159
|
+
background: ${"var(--ds-surface-overlay, #FFFFFF)"};
|
|
160
|
+
color: ${"var(--ds-icon, #292A2E)"};
|
|
161
|
+
border: 1px solid ${"var(--ds-background-accent-gray-subtler, #DDDEE1)"};
|
|
163
162
|
border-radius: 50%;
|
|
164
163
|
height: ${dragTableInsertColumnButtonSize}px;
|
|
165
164
|
width: ${dragTableInsertColumnButtonSize}px;
|
|
@@ -167,9 +166,9 @@ export const dragInsertButtonWrapper = () => css`
|
|
|
167
166
|
}
|
|
168
167
|
|
|
169
168
|
.${ClassName.DRAG_CONTROLS_INSERT_BUTTON}:hover {
|
|
170
|
-
background: ${
|
|
171
|
-
border: 1px solid ${
|
|
172
|
-
color: ${"var(--ds-icon-inverse,
|
|
169
|
+
background: ${"var(--ds-background-brand-bold, #1868DB)"};
|
|
170
|
+
border: 1px solid ${"var(--ds-background-brand-bold, #1868DB)"};
|
|
171
|
+
color: ${"var(--ds-icon-inverse, #FFFFFF)"};
|
|
173
172
|
cursor: pointer;
|
|
174
173
|
}
|
|
175
174
|
`;
|
|
@@ -193,7 +192,7 @@ export const dragCornerControlButton = () => css`
|
|
|
193
192
|
z-index: ${akEditorUnitZIndex * 99};
|
|
194
193
|
|
|
195
194
|
&.active .${ClassName.DRAG_CORNER_BUTTON_INNER} {
|
|
196
|
-
background-color: ${"var(--ds-border-selected, #
|
|
195
|
+
background-color: ${"var(--ds-border-selected, #1868DB)"};
|
|
197
196
|
width: 10px;
|
|
198
197
|
height: 10px;
|
|
199
198
|
border-width: 2px;
|
|
@@ -217,8 +216,8 @@ export const dragCornerControlButton = () => css`
|
|
|
217
216
|
}
|
|
218
217
|
|
|
219
218
|
.${ClassName.DRAG_CORNER_BUTTON_INNER} {
|
|
220
|
-
border: 1px solid ${"var(--ds-border-inverse, #
|
|
221
|
-
background-color: ${"var(--ds-background-accent-gray-subtler, #
|
|
219
|
+
border: 1px solid ${"var(--ds-border-inverse, #FFFFFF)"};
|
|
220
|
+
background-color: ${"var(--ds-background-accent-gray-subtler, #DDDEE1)"};
|
|
222
221
|
border-radius: 2px;
|
|
223
222
|
width: 5px;
|
|
224
223
|
height: 5px;
|
|
@@ -285,14 +284,10 @@ export const OverflowShadow = isDragAndDropEnabled => css`
|
|
|
285
284
|
}
|
|
286
285
|
.${ClassName.TABLE_LEFT_SHADOW} {
|
|
287
286
|
background:
|
|
288
|
-
linear-gradient(
|
|
289
|
-
to left,
|
|
290
|
-
transparent 0,
|
|
291
|
-
${`var(--ds-shadow-overflow-spread, ${N40A})`} 140%
|
|
292
|
-
),
|
|
287
|
+
linear-gradient(to left, transparent 0, ${"var(--ds-shadow-overflow-spread, #1E1F2129)"} 140%),
|
|
293
288
|
linear-gradient(
|
|
294
289
|
to right,
|
|
295
|
-
${"var(--ds-shadow-overflow-perimeter,
|
|
290
|
+
${"var(--ds-shadow-overflow-perimeter, #1E1F211f)"} 0px,
|
|
296
291
|
transparent 1px
|
|
297
292
|
);
|
|
298
293
|
left: 0px;
|
|
@@ -302,16 +297,8 @@ export const OverflowShadow = isDragAndDropEnabled => css`
|
|
|
302
297
|
}
|
|
303
298
|
.${ClassName.TABLE_RIGHT_SHADOW} {
|
|
304
299
|
background:
|
|
305
|
-
linear-gradient(
|
|
306
|
-
|
|
307
|
-
transparent 0,
|
|
308
|
-
${`var(--ds-shadow-overflow-spread, ${N40A})`} 140%
|
|
309
|
-
),
|
|
310
|
-
linear-gradient(
|
|
311
|
-
to left,
|
|
312
|
-
${"var(--ds-shadow-overflow-perimeter, transparent)"} 0px,
|
|
313
|
-
transparent 1px
|
|
314
|
-
);
|
|
300
|
+
linear-gradient(to right, transparent 0, ${"var(--ds-shadow-overflow-spread, #1E1F2129)"} 140%),
|
|
301
|
+
linear-gradient(to left, ${"var(--ds-shadow-overflow-perimeter, #1E1F211f)"} 0px, transparent 1px);
|
|
315
302
|
left: calc(100% - ${tableOverflowShadowWidthWide}px);
|
|
316
303
|
}
|
|
317
304
|
.${ClassName.WITH_CONTROLS} {
|
|
@@ -366,7 +353,7 @@ const columnHeaderButton = cssString => {
|
|
|
366
353
|
cssString);
|
|
367
354
|
};
|
|
368
355
|
const columnHeaderButtonSelected = () => css({
|
|
369
|
-
color:
|
|
356
|
+
color: "var(--ds-text-inverse, #FFFFFF)",
|
|
370
357
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
371
358
|
backgroundColor: tableToolbarSelectedColor,
|
|
372
359
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
@@ -595,8 +582,8 @@ export const hoveredWarningCell = css`
|
|
|
595
582
|
:not(.${ClassName.IS_RESIZING})
|
|
596
583
|
.${ClassName.TABLE_CONTAINER}:not(.${ClassName.HOVERED_DELETE_BUTTON}) {
|
|
597
584
|
td.${ClassName.HOVERED_CELL_WARNING} {
|
|
598
|
-
background-color: ${
|
|
599
|
-
border: 1px solid ${
|
|
585
|
+
background-color: ${"var(--ds-background-warning, #FFF5DB)"} !important; /* We need to override the background-color added to the cell */
|
|
586
|
+
border: 1px solid ${"var(--ds-border-warning, #E06C00)"};
|
|
600
587
|
}
|
|
601
588
|
}
|
|
602
589
|
`;
|
|
@@ -756,7 +743,7 @@ const insertLineActiveColor = css({
|
|
|
756
743
|
});
|
|
757
744
|
const insertLineInactiveColor = css({
|
|
758
745
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
759
|
-
backgroundColor:
|
|
746
|
+
backgroundColor: "var(--ds-background-accent-gray-subtler, #DDDEE1)"
|
|
760
747
|
});
|
|
761
748
|
|
|
762
749
|
// Explicit pixel values required here to ensure correct positioning of line that is show on row
|
|
@@ -837,7 +837,9 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
837
837
|
stickyHeader: !this.props.limitedMode ? this.state.stickyHeader : undefined,
|
|
838
838
|
getEditorFeatureFlags: getEditorFeatureFlags,
|
|
839
839
|
tableContainerWidth: tableContainerWidth,
|
|
840
|
-
isNumberColumnEnabled: node.attrs.isNumberColumnEnabled
|
|
840
|
+
isNumberColumnEnabled: node.attrs.isNumberColumnEnabled
|
|
841
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
842
|
+
,
|
|
841
843
|
getScrollOffset: function getScrollOffset() {
|
|
842
844
|
var _this5$wrapper;
|
|
843
845
|
return ((_this5$wrapper = _this5.wrapper) === null || _this5$wrapper === void 0 ? void 0 : _this5$wrapper.scrollLeft) || 0;
|
|
@@ -899,11 +901,15 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
|
|
|
899
901
|
"data-testid": "sticky-scrollbar-sentinel-top"
|
|
900
902
|
}), allowControls && rowControls, isDragAndDropEnabled && /*#__PURE__*/React.createElement(ExternalDropTargets, {
|
|
901
903
|
editorView: view,
|
|
902
|
-
node: node
|
|
904
|
+
node: node
|
|
905
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
906
|
+
,
|
|
903
907
|
getScrollOffset: function getScrollOffset() {
|
|
904
908
|
var _this5$wrapper2;
|
|
905
909
|
return ((_this5$wrapper2 = _this5.wrapper) === null || _this5$wrapper2 === void 0 ? void 0 : _this5$wrapper2.scrollLeft) || 0;
|
|
906
|
-
}
|
|
910
|
+
}
|
|
911
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
912
|
+
,
|
|
907
913
|
getTableWrapperWidth: function getTableWrapperWidth() {
|
|
908
914
|
var _this5$wrapper3;
|
|
909
915
|
return ((_this5$wrapper3 = _this5.wrapper) === null || _this5$wrapper3 === void 0 ? void 0 : _this5$wrapper3.clientWidth) || 760;
|
|
@@ -80,6 +80,7 @@ export var TableComponentWithSharedState = function TableComponentWithSharedStat
|
|
|
80
80
|
try {
|
|
81
81
|
currentTablePos = getPos ? getPos() : undefined;
|
|
82
82
|
} catch (e) {
|
|
83
|
+
// eslint-disable-line no-unused-vars
|
|
83
84
|
currentTablePos = undefined;
|
|
84
85
|
}
|
|
85
86
|
var selectedTable = findTable(view.state.selection);
|
|
@@ -103,7 +104,9 @@ export var TableComponentWithSharedState = function TableComponentWithSharedStat
|
|
|
103
104
|
tableActive: tableActive && !isLivePageViewMode && interaction !== 'hasNotHadInteraction',
|
|
104
105
|
ordering: ordering,
|
|
105
106
|
isResizing: isResizing,
|
|
106
|
-
getNode: getNode
|
|
107
|
+
getNode: getNode
|
|
108
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
109
|
+
,
|
|
107
110
|
containerWidth: {
|
|
108
111
|
width: width !== null && width !== void 0 ? width : 0,
|
|
109
112
|
lineLength: lineLength
|
|
@@ -398,7 +398,9 @@ export var TableContainer = function TableContainer(_ref5) {
|
|
|
398
398
|
className: classNames(className, {
|
|
399
399
|
'less-padding': editorWidth < akEditorMobileBreakoutPoint && !isNested && !(isChromelessEditor && isDragAndDropEnabled)
|
|
400
400
|
}),
|
|
401
|
-
style:
|
|
401
|
+
style:
|
|
402
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
403
|
+
{
|
|
402
404
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
403
405
|
width: 'inherit',
|
|
404
406
|
marginLeft: isChromelessEditor ? 18 : undefined,
|
|
@@ -510,7 +510,9 @@ export var TableResizer = function TableResizer(_ref) {
|
|
|
510
510
|
isHandleVisible: isTableSelected,
|
|
511
511
|
needExtendedResizeZone: expValEquals('platform_editor_table_resizer_extended_zone', 'isEnabled', true) ? true : !isTableSelected,
|
|
512
512
|
appearance: isTableSelected && isWholeTableInDanger ? 'danger' : undefined,
|
|
513
|
-
handleHighlight: "shadow"
|
|
513
|
+
handleHighlight: "shadow"
|
|
514
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
515
|
+
,
|
|
514
516
|
handleTooltipContent: function handleTooltipContent(_ref3) {
|
|
515
517
|
var update = _ref3.update;
|
|
516
518
|
updateTooltip.current = update;
|
|
@@ -180,7 +180,9 @@ var ContentComponentInternal = function ContentComponentInternal(_ref) {
|
|
|
180
180
|
alignY: 'bottom',
|
|
181
181
|
stick: true,
|
|
182
182
|
forcePlacement: true,
|
|
183
|
-
zIndex: akEditorFloatingPanelZIndex
|
|
183
|
+
zIndex: akEditorFloatingPanelZIndex
|
|
184
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
185
|
+
,
|
|
184
186
|
offset: [0, 10]
|
|
185
187
|
}), isTableSelectorEnabled && isSizeSelectorOpen && /*#__PURE__*/React.createElement(SizeSelector, {
|
|
186
188
|
api: api,
|
|
@@ -18,12 +18,16 @@ export var DragPreview = function DragPreview(_ref) {
|
|
|
18
18
|
var marginTop = direction === 'row' ? height / 2 - 14 : -10;
|
|
19
19
|
var transform = direction === 'row' ? 'rotate(90deg)' : 'none';
|
|
20
20
|
return /*#__PURE__*/React.createElement(Box, {
|
|
21
|
-
xcss: boxStyles
|
|
21
|
+
xcss: boxStyles
|
|
22
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
23
|
+
,
|
|
22
24
|
style: {
|
|
23
25
|
width: "".concat(width, "px"),
|
|
24
26
|
height: "".concat(height, "px")
|
|
25
27
|
}
|
|
26
|
-
}, /*#__PURE__*/React.createElement(DragInMotionIcon
|
|
28
|
+
}, /*#__PURE__*/React.createElement(DragInMotionIcon
|
|
29
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
30
|
+
, {
|
|
27
31
|
style: {
|
|
28
32
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
29
33
|
position: 'absolute',
|
|
@@ -41,7 +41,9 @@ export var FloatingAlignmentButtons = function FloatingAlignmentButtons(_ref) {
|
|
|
41
41
|
}) : undefined,
|
|
42
42
|
title: item.title,
|
|
43
43
|
selected: item.selected,
|
|
44
|
-
disabled: item.disabled
|
|
44
|
+
disabled: item.disabled
|
|
45
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
46
|
+
,
|
|
45
47
|
onClick: function onClick() {
|
|
46
48
|
dispatchCommand(item.onClick);
|
|
47
49
|
},
|
|
@@ -155,7 +155,9 @@ var FloatingContextualButtonInner = /*#__PURE__*/React.memo(function (props) {
|
|
|
155
155
|
target: targetCellRef,
|
|
156
156
|
mountTo: tableWrapper || mountPoint,
|
|
157
157
|
boundariesElement: targetCellRef,
|
|
158
|
-
scrollableElement: scrollableElement
|
|
158
|
+
scrollableElement: scrollableElement
|
|
159
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
160
|
+
,
|
|
159
161
|
offset: [BUTTON_OFFSET, -BUTTON_OFFSET],
|
|
160
162
|
forcePlacement: true,
|
|
161
163
|
allowOutOfBounds: true,
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
-
import { N0, N20, N30A, N700 } from '@atlaskit/theme/colors';
|
|
4
3
|
import { contextualMenuTriggerSize } from '../consts';
|
|
5
4
|
export var tableFloatingCellButtonStyles = function tableFloatingCellButtonStyles() {
|
|
6
5
|
return css({
|
|
7
6
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
8
7
|
'> div': {
|
|
9
8
|
// Sits behind button to provide surface-color background
|
|
10
|
-
background: "var(--ds-surface,
|
|
9
|
+
background: "var(--ds-surface, #FFFFFF)",
|
|
11
10
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
12
11
|
display: 'flex',
|
|
13
12
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
@@ -17,10 +16,10 @@ export var tableFloatingCellButtonStyles = function tableFloatingCellButtonStyle
|
|
|
17
16
|
},
|
|
18
17
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
19
18
|
'&& button': {
|
|
20
|
-
background: "var(--ds-background-neutral,
|
|
19
|
+
background: "var(--ds-background-neutral, #0515240F)",
|
|
21
20
|
flexDirection: 'column',
|
|
22
21
|
margin: "var(--ds-space-025, 2px)",
|
|
23
|
-
outline: "2px solid ".concat("var(--ds-surface,
|
|
22
|
+
outline: "2px solid ".concat("var(--ds-surface, #FFFFFF)"),
|
|
24
23
|
borderRadius: '1px',
|
|
25
24
|
padding: 0,
|
|
26
25
|
height: 'calc(100% - 4px)',
|
|
@@ -28,11 +27,11 @@ export var tableFloatingCellButtonStyles = function tableFloatingCellButtonStyle
|
|
|
28
27
|
},
|
|
29
28
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
30
29
|
'&& button:hover': {
|
|
31
|
-
background: "var(--ds-background-neutral-hovered,
|
|
30
|
+
background: "var(--ds-background-neutral-hovered, #0B120E24)"
|
|
32
31
|
},
|
|
33
32
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
34
33
|
'&& button:active': {
|
|
35
|
-
background: "var(--ds-background-neutral-pressed,
|
|
34
|
+
background: "var(--ds-background-neutral-pressed, #080F214A)"
|
|
36
35
|
},
|
|
37
36
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
38
37
|
'&& button > span': {
|
|
@@ -48,15 +47,15 @@ export var tableFloatingCellButtonSelectedStyles = function tableFloatingCellBut
|
|
|
48
47
|
return css({
|
|
49
48
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
50
49
|
'&& button': {
|
|
51
|
-
background: "var(--ds-background-selected,
|
|
50
|
+
background: "var(--ds-background-selected, #E9F2FE)"
|
|
52
51
|
},
|
|
53
52
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
54
53
|
'&& button:hover': {
|
|
55
|
-
background: "var(--ds-background-selected-hovered,
|
|
54
|
+
background: "var(--ds-background-selected-hovered, #CFE1FD)"
|
|
56
55
|
},
|
|
57
56
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
58
57
|
'&& button:active': {
|
|
59
|
-
background: "var(--ds-background-selected-pressed,
|
|
58
|
+
background: "var(--ds-background-selected-pressed, #8FB8F6)"
|
|
60
59
|
}
|
|
61
60
|
});
|
|
62
61
|
};
|
|
@@ -157,7 +157,9 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
|
|
|
157
157
|
}, jsx(ArrowKeyNavigationProvider, {
|
|
158
158
|
type: ArrowKeyNavigationType.COLOR,
|
|
159
159
|
selectedRowIndex: selectedRowIndex || 0,
|
|
160
|
-
selectedColumnIndex: selectedColumnIndex || 0
|
|
160
|
+
selectedColumnIndex: selectedColumnIndex || 0
|
|
161
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
162
|
+
,
|
|
161
163
|
handleClose: function handleClose() {
|
|
162
164
|
_this.setState({
|
|
163
165
|
isSubmenuOpen: false
|
|
@@ -177,7 +179,9 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
|
|
|
177
179
|
}, jsx(ColorPalette, {
|
|
178
180
|
cols: 7,
|
|
179
181
|
onClick: _this.setColor,
|
|
180
|
-
selectedColor: (node === null || node === void 0 || (_node$attrs2 = node.attrs) === null || _node$attrs2 === void 0 ? void 0 : _node$attrs2.background) || '#ffffff'
|
|
182
|
+
selectedColor: (node === null || node === void 0 || (_node$attrs2 = node.attrs) === null || _node$attrs2 === void 0 ? void 0 : _node$attrs2.background) || '#ffffff'
|
|
183
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
184
|
+
,
|
|
181
185
|
paletteOptions: {
|
|
182
186
|
palette: cellBackgroundColorPalette,
|
|
183
187
|
paletteColorTooltipMessages: backgroundPaletteTooltipMessages,
|
|
@@ -782,6 +786,7 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
|
|
|
782
786
|
}, jsx(DropdownMenu
|
|
783
787
|
//This needs be removed when the a11y is completely handled
|
|
784
788
|
//Disabling key navigation now as it works only partially
|
|
789
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
785
790
|
, {
|
|
786
791
|
arrowKeyNavigationProviderOptions: {
|
|
787
792
|
type: ArrowKeyNavigationType.MENU,
|
|
@@ -794,7 +799,9 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
|
|
|
794
799
|
onMouseEnter: this.handleItemMouseEnter,
|
|
795
800
|
onMouseLeave: this.handleItemMouseLeave,
|
|
796
801
|
fitHeight: 188,
|
|
797
|
-
fitWidth: isDragAndDropEnabled ? contextualMenuDropdownWidthDnD : contextualMenuDropdownWidth
|
|
802
|
+
fitWidth: isDragAndDropEnabled ? contextualMenuDropdownWidthDnD : contextualMenuDropdownWidth
|
|
803
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
804
|
+
,
|
|
798
805
|
shouldFocusFirstItem: function shouldFocusFirstItem() {
|
|
799
806
|
return Boolean(isCellMenuOpenByKeyboard);
|
|
800
807
|
},
|
|
@@ -80,7 +80,9 @@ var FloatingContextualMenu = function FloatingContextualMenu(_ref) {
|
|
|
80
80
|
// in table, but below floating dialogs like typeaheads, pickers, etc.
|
|
81
81
|
,
|
|
82
82
|
zIndex: parentSticky ? akEditorFloatingDialogZIndex : akEditorFloatingOverlapPanelZIndex,
|
|
83
|
-
forcePlacement: true
|
|
83
|
+
forcePlacement: true
|
|
84
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
85
|
+
,
|
|
84
86
|
offset: [-7, 0],
|
|
85
87
|
stick: true
|
|
86
88
|
}, jsx("div", {
|
|
@@ -89,7 +91,9 @@ var FloatingContextualMenu = function FloatingContextualMenu(_ref) {
|
|
|
89
91
|
// Remove ! during platform_editor_hydratable_ui cleanup
|
|
90
92
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
91
93
|
, {
|
|
92
|
-
editorView: editorView
|
|
94
|
+
editorView: editorView
|
|
95
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
96
|
+
,
|
|
93
97
|
offset: [contextualMenuTriggerSize / 2, -contextualMenuTriggerSize],
|
|
94
98
|
isOpen: isOpen,
|
|
95
99
|
targetCellPosition: targetCellPosition,
|
|
@@ -3,7 +3,6 @@ var _templateObject;
|
|
|
3
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
4
|
import { css } from '@emotion/react';
|
|
5
5
|
import { tableBackgroundBorderColor } from '@atlaskit/adf-schema';
|
|
6
|
-
import { N60A, N90 } from '@atlaskit/theme/colors';
|
|
7
6
|
import { TableCssClassName as ClassName } from '../../types';
|
|
8
7
|
import { contextualMenuDropdownWidth, contextualMenuDropdownWidthDnD } from '../consts';
|
|
9
8
|
export var cellColourPreviewStyles = function cellColourPreviewStyles(selectedColor) {
|
|
@@ -17,5 +16,5 @@ export var cellColourPreviewStyles = function cellColourPreviewStyles(selectedCo
|
|
|
17
16
|
export var tablePopupStyles = function tablePopupStyles(isDragAndDropEnabled
|
|
18
17
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
19
18
|
) {
|
|
20
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", " {\n\t\tborder-radius: ", ";\n\t\tbackground: ", ";\n\t\tbox-shadow: ", ";\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: ", "px;\n\t\tpadding: ", ";\n\n\t\t> div {\n\t\t\tpadding: 0;\n\t\t}\n\t}\n\n\t.", " {\n\t\tdisplay: flex;\n\n\t\t&::before {\n\t\t\tcontent: '';\n\t\t\tdisplay: block;\n\t\t\tborder: 1px solid ", ";\n\t\t\tborder-radius: ", ";\n\t\t\twidth: 20px;\n\t\t\theight: 20px;\n\t\t}\n\n\t\t&::after {\n\t\t\tcontent: '\u203A';\n\t\t\tmargin-left: ", ";\n\t\t\tline-height: 20px;\n\t\t\tcolor: ", ";\n\t\t}\n\t}\n\n\t.", " {\n\t\tdisplay: flex;\n\n\t\t&::before {\n\t\t\tcontent: '';\n\t\t\tdisplay: block;\n\t\t\tborder: 1px solid ", ";\n\t\t\tborder-radius: ", ";\n\t\t\twidth: 14px;\n\t\t\theight: 14px;\n\t\t}\n\n\t\t&::after {\n\t\t\tcontent: '\u203A';\n\t\t\tmargin-left: ", ";\n\t\t\tline-height: 14px;\n\t\t\tcolor: ", ";\n\t\t}\n\t}\n"])), ClassName.CONTEXTUAL_SUBMENU, "var(--ds-radius-small, 3px)", "var(--ds-surface-overlay,
|
|
19
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", " {\n\t\tborder-radius: ", ";\n\t\tbackground: ", ";\n\t\tbox-shadow: ", ";\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: ", "px;\n\t\tpadding: ", ";\n\n\t\t> div {\n\t\t\tpadding: 0;\n\t\t}\n\t}\n\n\t.", " {\n\t\tdisplay: flex;\n\n\t\t&::before {\n\t\t\tcontent: '';\n\t\t\tdisplay: block;\n\t\t\tborder: 1px solid ", ";\n\t\t\tborder-radius: ", ";\n\t\t\twidth: 20px;\n\t\t\theight: 20px;\n\t\t}\n\n\t\t&::after {\n\t\t\tcontent: '\u203A';\n\t\t\tmargin-left: ", ";\n\t\t\tline-height: 20px;\n\t\t\tcolor: ", ";\n\t\t}\n\t}\n\n\t.", " {\n\t\tdisplay: flex;\n\n\t\t&::before {\n\t\t\tcontent: '';\n\t\t\tdisplay: block;\n\t\t\tborder: 1px solid ", ";\n\t\t\tborder-radius: ", ";\n\t\t\twidth: 14px;\n\t\t\theight: 14px;\n\t\t}\n\n\t\t&::after {\n\t\t\tcontent: '\u203A';\n\t\t\tmargin-left: ", ";\n\t\t\tline-height: 14px;\n\t\t\tcolor: ", ";\n\t\t}\n\t}\n"])), ClassName.CONTEXTUAL_SUBMENU, "var(--ds-radius-small, 3px)", "var(--ds-surface-overlay, #FFFFFF)", "var(--ds-shadow-overlay, 0px 8px 12px #1E1F2126, 0px 0px 1px #1E1F214f)", isDragAndDropEnabled ? contextualMenuDropdownWidthDnD : contextualMenuDropdownWidth, "var(--ds-space-100, 8px)", ClassName.CONTEXTUAL_MENU_ICON, tableBackgroundBorderColor, "var(--ds-radius-small, 3px)", "var(--ds-space-050, 4px)", "var(--ds-icon, #292A2E)", ClassName.CONTEXTUAL_MENU_ICON_SMALL, tableBackgroundBorderColor, "var(--ds-radius-small, 3px)", "var(--ds-space-050, 4px)", "var(--ds-icon, #292A2E)");
|
|
21
20
|
};
|
|
@@ -308,7 +308,9 @@ var DragMenu = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
308
308
|
}, jsx(ArrowKeyNavigationProvider, {
|
|
309
309
|
type: ArrowKeyNavigationType.COLOR,
|
|
310
310
|
selectedRowIndex: selectedRowIndex,
|
|
311
|
-
selectedColumnIndex: selectedColumnIndex
|
|
311
|
+
selectedColumnIndex: selectedColumnIndex
|
|
312
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
313
|
+
,
|
|
312
314
|
handleClose: function handleClose() {
|
|
313
315
|
var keyboardEvent = new KeyboardEvent('keydown', {
|
|
314
316
|
key: 'ArrowDown',
|
|
@@ -323,11 +325,15 @@ var DragMenu = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
323
325
|
isPopupPositioned: true,
|
|
324
326
|
isOpenedByKeyboard: isKeyboardModeActive
|
|
325
327
|
}, jsx(ColorPalette, {
|
|
326
|
-
cols: colorPalletteColumns
|
|
328
|
+
cols: colorPalletteColumns
|
|
329
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
330
|
+
,
|
|
327
331
|
onClick: function onClick(color) {
|
|
328
332
|
setColor(color);
|
|
329
333
|
},
|
|
330
|
-
selectedColor: background
|
|
334
|
+
selectedColor: background
|
|
335
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
336
|
+
,
|
|
331
337
|
paletteOptions: {
|
|
332
338
|
palette: cellBackgroundColorPalette,
|
|
333
339
|
paletteColorTooltipMessages: backgroundPaletteTooltipMessages,
|
|
@@ -557,7 +563,9 @@ var DragMenu = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
557
563
|
api: api,
|
|
558
564
|
userIntent: "tableDragMenuPopupOpen"
|
|
559
565
|
}, jsx(DropdownMenu, {
|
|
560
|
-
disableKeyboardHandling: isSubmenuOpen
|
|
566
|
+
disableKeyboardHandling: isSubmenuOpen
|
|
567
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
568
|
+
,
|
|
561
569
|
section: {
|
|
562
570
|
hasSeparator: true
|
|
563
571
|
},
|
|
@@ -50,15 +50,21 @@ export var DropdownMenu = function DropdownMenu(_ref) {
|
|
|
50
50
|
return /*#__PURE__*/React.createElement(DropListWithOutsideListeners, {
|
|
51
51
|
isOpen: true,
|
|
52
52
|
shouldFitContainer: true,
|
|
53
|
-
position: popupPlacement.join(' ')
|
|
53
|
+
position: popupPlacement.join(' ')
|
|
54
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
55
|
+
,
|
|
54
56
|
handleClickOutside: function handleClickOutside() {
|
|
55
57
|
return handleClose('editor');
|
|
56
|
-
}
|
|
58
|
+
}
|
|
59
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
60
|
+
,
|
|
57
61
|
handleEscapeKeydown: function handleEscapeKeydown() {
|
|
58
62
|
if (!disableKeyboardHandling) {
|
|
59
63
|
handleClose('handle');
|
|
60
64
|
}
|
|
61
|
-
}
|
|
65
|
+
}
|
|
66
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
67
|
+
,
|
|
62
68
|
handleEnterKeydown: function handleEnterKeydown(e) {
|
|
63
69
|
if (!disableKeyboardHandling) {
|
|
64
70
|
e.preventDefault();
|
|
@@ -154,13 +160,17 @@ export var DropdownMenu = function DropdownMenu(_ref) {
|
|
|
154
160
|
target: targetRefDiv,
|
|
155
161
|
mountTo: mountPoint,
|
|
156
162
|
boundariesElement: boundariesElement,
|
|
157
|
-
scrollableElement: scrollableElement
|
|
163
|
+
scrollableElement: scrollableElement
|
|
164
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
165
|
+
,
|
|
158
166
|
onPlacementChanged: function onPlacementChanged(placement) {
|
|
159
167
|
setPopupPlacement(placement);
|
|
160
168
|
},
|
|
161
169
|
fitHeight: fitHeight,
|
|
162
170
|
fitWidth: fitWidth,
|
|
163
|
-
zIndex: akEditorFloatingPanelZIndex
|
|
171
|
+
zIndex: akEditorFloatingPanelZIndex
|
|
172
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
173
|
+
,
|
|
164
174
|
offset: [offsetX, offsetY],
|
|
165
175
|
allowOutOfBounds: true // required as this popup is child of a parent popup, should be allowed to be out of bound of the parent popup, otherwise horizontal offset is not right
|
|
166
176
|
}, /*#__PURE__*/React.createElement(ArrowKeyNavigationProvider, {
|
|
@@ -3,7 +3,6 @@ var _templateObject;
|
|
|
3
3
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
4
|
import { css } from '@emotion/react';
|
|
5
5
|
import { tableBackgroundBorderColor } from '@atlaskit/adf-schema';
|
|
6
|
-
import { N60A, N90 } from '@atlaskit/theme/colors';
|
|
7
6
|
import { TableCssClassName as ClassName } from '../../types';
|
|
8
7
|
import { dragMenuDropdownWidth, TABLE_DRAG_MENU_MENU_GROUP_BEFORE_HEIGHT, TABLE_DRAG_MENU_PADDING_TOP, TABLE_DRAG_MENU_SORT_GROUP_HEIGHT } from '../consts';
|
|
9
8
|
export var cellColourPreviewStyles = function cellColourPreviewStyles(selectedColor) {
|
|
@@ -17,7 +16,7 @@ export var cellColourPreviewStyles = function cellColourPreviewStyles(selectedCo
|
|
|
17
16
|
|
|
18
17
|
// eslint-disable-next-line @atlaskit/design-system/no-css-tagged-template-expression -- needs manual remediation
|
|
19
18
|
export var dragMenuBackgroundColorStyles = function dragMenuBackgroundColorStyles() {
|
|
20
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", " {\n\t\tborder-radius: ", ";\n\t\tbackground: ", ";\n\t\tbox-shadow: ", ";\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\ttop: ", "px; /* move the submenu down when 'sort increasing/decreasing' appear before background color picker */\n\t\tleft: ", "px;\n\t\tpadding: ", ";\n\n\t\t> div {\n\t\t\tpadding: 0;\n\t\t}\n\t}\n\n\t.", " {\n\t\tdisplay: flex;\n\n\t\t&::before {\n\t\t\tcontent: '';\n\t\t\tdisplay: block;\n\t\t\tborder: 1px solid ", ";\n\t\t\tborder-radius: ", ";\n\t\t\twidth: 14px;\n\t\t\theight: 14px;\n\t\t}\n\n\t\t&::after {\n\t\t\tcontent: '\u203A';\n\t\t\tmargin-left: ", ";\n\t\t\tline-height: 14px;\n\t\t\tcolor: ", ";\n\t\t}\n\t}\n"])), ClassName.DRAG_SUBMENU, "var(--ds-radius-small, 3px)", "var(--ds-surface-overlay,
|
|
19
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n\t.", " {\n\t\tborder-radius: ", ";\n\t\tbackground: ", ";\n\t\tbox-shadow: ", ";\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\ttop: ", "px; /* move the submenu down when 'sort increasing/decreasing' appear before background color picker */\n\t\tleft: ", "px;\n\t\tpadding: ", ";\n\n\t\t> div {\n\t\t\tpadding: 0;\n\t\t}\n\t}\n\n\t.", " {\n\t\tdisplay: flex;\n\n\t\t&::before {\n\t\t\tcontent: '';\n\t\t\tdisplay: block;\n\t\t\tborder: 1px solid ", ";\n\t\t\tborder-radius: ", ";\n\t\t\twidth: 14px;\n\t\t\theight: 14px;\n\t\t}\n\n\t\t&::after {\n\t\t\tcontent: '\u203A';\n\t\t\tmargin-left: ", ";\n\t\t\tline-height: 14px;\n\t\t\tcolor: ", ";\n\t\t}\n\t}\n"])), ClassName.DRAG_SUBMENU, "var(--ds-radius-small, 3px)", "var(--ds-surface-overlay, #FFFFFF)", "var(--ds-shadow-overlay, 0px 8px 12px #1E1F2126, 0px 0px 1px #1E1F214f)", TABLE_DRAG_MENU_PADDING_TOP + TABLE_DRAG_MENU_SORT_GROUP_HEIGHT + TABLE_DRAG_MENU_MENU_GROUP_BEFORE_HEIGHT, dragMenuDropdownWidth, "var(--ds-space-100, 8px)", ClassName.DRAG_SUBMENU_ICON, tableBackgroundBorderColor, "var(--ds-radius-small, 3px)", "var(--ds-space-050, 4px)", "var(--ds-icon, #292A2E)");
|
|
21
20
|
};
|
|
22
21
|
|
|
23
22
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
@@ -40,7 +40,9 @@ export var SizeSelector = function SizeSelector(_ref) {
|
|
|
40
40
|
var onUnmount = function onUnmount() {
|
|
41
41
|
api === null || api === void 0 || api.core.actions.focus();
|
|
42
42
|
};
|
|
43
|
-
return jsx(TableSelectorPopup
|
|
43
|
+
return jsx(TableSelectorPopup
|
|
44
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
45
|
+
, {
|
|
44
46
|
defaultSize: {
|
|
45
47
|
row: DEFAULT_TABLE_SELECTOR_ROWS,
|
|
46
48
|
col: DEFAULT_TABLE_SELECTOR_COLS
|
|
@@ -249,7 +249,9 @@ export var DragControls = function DragControls(_ref) {
|
|
|
249
249
|
, {
|
|
250
250
|
key: "drop-target-".concat(index),
|
|
251
251
|
index: index,
|
|
252
|
-
localId: currentNodeLocalId
|
|
252
|
+
localId: currentNodeLocalId
|
|
253
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
254
|
+
,
|
|
253
255
|
style: {
|
|
254
256
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
255
257
|
gridColumn: '1 / span 3',
|