@atlaskit/editor-plugin-table 7.16.8 → 7.16.9

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.
Files changed (121) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/cjs/nodeviews/ExternalDropTargets.js +4 -0
  3. package/dist/cjs/nodeviews/TableComponent.js +28 -5
  4. package/dist/cjs/nodeviews/TableContainer.js +32 -11
  5. package/dist/cjs/toolbar.js +17 -7
  6. package/dist/cjs/ui/ColumnResizeWidget/index.js +2 -0
  7. package/dist/cjs/ui/DragHandle/index.js +10 -3
  8. package/dist/cjs/ui/DragPreview/index.js +1 -0
  9. package/dist/cjs/ui/FloatingContextualButton/FixedButton.js +12 -1
  10. package/dist/cjs/ui/FloatingContextualButton/index.js +3 -1
  11. package/dist/cjs/ui/FloatingContextualMenu/ContextualMenu.js +7 -2
  12. package/dist/cjs/ui/FloatingDeleteButton/DeleteButton.js +7 -2
  13. package/dist/cjs/ui/FloatingDeleteButton/index.js +2 -0
  14. package/dist/cjs/ui/FloatingDragMenu/DragMenu.js +7 -2
  15. package/dist/cjs/ui/FloatingDragMenu/DropdownMenu.js +61 -57
  16. package/dist/cjs/ui/FloatingInsertButton/InsertButton.js +36 -14
  17. package/dist/cjs/ui/TableFloatingColumnControls/ColumnControls/index.js +22 -4
  18. package/dist/cjs/ui/TableFloatingColumnControls/ColumnDropTargets/ColumnDropTarget.js +2 -0
  19. package/dist/cjs/ui/TableFloatingColumnControls/ColumnDropTargets/index.js +4 -1
  20. package/dist/cjs/ui/TableFloatingColumnControls/index.js +3 -1
  21. package/dist/cjs/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +12 -3
  22. package/dist/cjs/ui/TableFloatingControls/CornerControls/DragCornerControls.js +2 -0
  23. package/dist/cjs/ui/TableFloatingControls/NumberColumn/index.js +13 -4
  24. package/dist/cjs/ui/TableFloatingControls/RowControls/ClassicControls.js +50 -43
  25. package/dist/cjs/ui/TableFloatingControls/RowControls/DragControls.js +16 -2
  26. package/dist/cjs/ui/TableFloatingControls/RowDropTarget/index.js +3 -1
  27. package/dist/cjs/ui/TableFloatingControls/index.js +80 -76
  28. package/dist/cjs/ui/icons/DragHandleDisabledIcon.js +3 -1
  29. package/dist/cjs/ui/icons/DragInMotionIcon.js +3 -1
  30. package/dist/cjs/ui/icons/MinimisedHandle.js +1 -0
  31. package/dist/es2019/nodeviews/ExternalDropTargets.js +4 -0
  32. package/dist/es2019/nodeviews/TableComponent.js +28 -5
  33. package/dist/es2019/nodeviews/TableContainer.js +32 -11
  34. package/dist/es2019/toolbar.js +13 -3
  35. package/dist/es2019/ui/ColumnResizeWidget/index.js +2 -0
  36. package/dist/es2019/ui/DragHandle/index.js +10 -3
  37. package/dist/es2019/ui/DragPreview/index.js +1 -0
  38. package/dist/es2019/ui/FloatingContextualButton/FixedButton.js +12 -1
  39. package/dist/es2019/ui/FloatingContextualButton/index.js +3 -1
  40. package/dist/es2019/ui/FloatingContextualMenu/ContextualMenu.js +7 -2
  41. package/dist/es2019/ui/FloatingDeleteButton/DeleteButton.js +7 -2
  42. package/dist/es2019/ui/FloatingDeleteButton/index.js +2 -0
  43. package/dist/es2019/ui/FloatingDragMenu/DragMenu.js +7 -2
  44. package/dist/es2019/ui/FloatingDragMenu/DropdownMenu.js +56 -52
  45. package/dist/es2019/ui/FloatingInsertButton/InsertButton.js +36 -14
  46. package/dist/es2019/ui/TableFloatingColumnControls/ColumnControls/index.js +22 -4
  47. package/dist/es2019/ui/TableFloatingColumnControls/ColumnDropTargets/ColumnDropTarget.js +2 -0
  48. package/dist/es2019/ui/TableFloatingColumnControls/ColumnDropTargets/index.js +4 -1
  49. package/dist/es2019/ui/TableFloatingColumnControls/index.js +3 -1
  50. package/dist/es2019/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +12 -3
  51. package/dist/es2019/ui/TableFloatingControls/CornerControls/DragCornerControls.js +2 -0
  52. package/dist/es2019/ui/TableFloatingControls/NumberColumn/index.js +13 -4
  53. package/dist/es2019/ui/TableFloatingControls/RowControls/ClassicControls.js +47 -40
  54. package/dist/es2019/ui/TableFloatingControls/RowControls/DragControls.js +16 -2
  55. package/dist/es2019/ui/TableFloatingControls/RowDropTarget/index.js +3 -1
  56. package/dist/es2019/ui/TableFloatingControls/index.js +78 -74
  57. package/dist/es2019/ui/icons/DragHandleDisabledIcon.js +3 -1
  58. package/dist/es2019/ui/icons/DragInMotionIcon.js +3 -1
  59. package/dist/es2019/ui/icons/MinimisedHandle.js +1 -0
  60. package/dist/esm/nodeviews/ExternalDropTargets.js +4 -0
  61. package/dist/esm/nodeviews/TableComponent.js +28 -5
  62. package/dist/esm/nodeviews/TableContainer.js +32 -11
  63. package/dist/esm/toolbar.js +16 -4
  64. package/dist/esm/ui/ColumnResizeWidget/index.js +2 -0
  65. package/dist/esm/ui/DragHandle/index.js +10 -3
  66. package/dist/esm/ui/DragPreview/index.js +1 -0
  67. package/dist/esm/ui/FloatingContextualButton/FixedButton.js +12 -1
  68. package/dist/esm/ui/FloatingContextualButton/index.js +3 -1
  69. package/dist/esm/ui/FloatingContextualMenu/ContextualMenu.js +7 -2
  70. package/dist/esm/ui/FloatingDeleteButton/DeleteButton.js +7 -2
  71. package/dist/esm/ui/FloatingDeleteButton/index.js +2 -0
  72. package/dist/esm/ui/FloatingDragMenu/DragMenu.js +7 -2
  73. package/dist/esm/ui/FloatingDragMenu/DropdownMenu.js +61 -57
  74. package/dist/esm/ui/FloatingInsertButton/InsertButton.js +36 -14
  75. package/dist/esm/ui/TableFloatingColumnControls/ColumnControls/index.js +22 -4
  76. package/dist/esm/ui/TableFloatingColumnControls/ColumnDropTargets/ColumnDropTarget.js +2 -0
  77. package/dist/esm/ui/TableFloatingColumnControls/ColumnDropTargets/index.js +4 -1
  78. package/dist/esm/ui/TableFloatingColumnControls/index.js +3 -1
  79. package/dist/esm/ui/TableFloatingControls/CornerControls/ClassicCornerControls.js +12 -3
  80. package/dist/esm/ui/TableFloatingControls/CornerControls/DragCornerControls.js +2 -0
  81. package/dist/esm/ui/TableFloatingControls/NumberColumn/index.js +13 -4
  82. package/dist/esm/ui/TableFloatingControls/RowControls/ClassicControls.js +50 -43
  83. package/dist/esm/ui/TableFloatingControls/RowControls/DragControls.js +16 -2
  84. package/dist/esm/ui/TableFloatingControls/RowDropTarget/index.js +3 -1
  85. package/dist/esm/ui/TableFloatingControls/index.js +80 -76
  86. package/dist/esm/ui/icons/DragHandleDisabledIcon.js +3 -1
  87. package/dist/esm/ui/icons/DragInMotionIcon.js +3 -1
  88. package/dist/esm/ui/icons/MinimisedHandle.js +1 -0
  89. package/dist/types/toolbar.d.ts +2 -1
  90. package/dist/types-ts4.5/toolbar.d.ts +2 -1
  91. package/docs/0-intro.tsx +1 -0
  92. package/package.json +1 -1
  93. package/src/nodeviews/ExternalDropTargets.tsx +4 -0
  94. package/src/nodeviews/TableComponent.tsx +18 -0
  95. package/src/nodeviews/TableContainer.tsx +12 -0
  96. package/src/toolbar.tsx +20 -1
  97. package/src/ui/ColumnResizeWidget/index.tsx +2 -0
  98. package/src/ui/DragHandle/index.tsx +3 -0
  99. package/src/ui/DragPreview/index.tsx +1 -0
  100. package/src/ui/FloatingContextualButton/FixedButton.tsx +10 -0
  101. package/src/ui/FloatingContextualButton/index.tsx +1 -0
  102. package/src/ui/FloatingContextualMenu/ContextualMenu.tsx +3 -0
  103. package/src/ui/FloatingDeleteButton/DeleteButton.tsx +4 -0
  104. package/src/ui/FloatingDeleteButton/index.tsx +2 -0
  105. package/src/ui/FloatingDragMenu/DragMenu.tsx +3 -0
  106. package/src/ui/FloatingDragMenu/DropdownMenu.tsx +3 -0
  107. package/src/ui/FloatingInsertButton/InsertButton.tsx +14 -0
  108. package/src/ui/TableFloatingColumnControls/ColumnControls/index.tsx +16 -1
  109. package/src/ui/TableFloatingColumnControls/ColumnDropTargets/ColumnDropTarget.tsx +2 -0
  110. package/src/ui/TableFloatingColumnControls/ColumnDropTargets/index.tsx +2 -0
  111. package/src/ui/TableFloatingColumnControls/index.tsx +1 -0
  112. package/src/ui/TableFloatingControls/CornerControls/ClassicCornerControls.tsx +6 -0
  113. package/src/ui/TableFloatingControls/CornerControls/DragCornerControls.tsx +4 -0
  114. package/src/ui/TableFloatingControls/NumberColumn/index.tsx +5 -0
  115. package/src/ui/TableFloatingControls/RowControls/ClassicControls.tsx +5 -0
  116. package/src/ui/TableFloatingControls/RowControls/DragControls.tsx +15 -1
  117. package/src/ui/TableFloatingControls/RowDropTarget/index.tsx +1 -0
  118. package/src/ui/TableFloatingControls/index.tsx +1 -0
  119. package/src/ui/icons/DragHandleDisabledIcon.tsx +1 -0
  120. package/src/ui/icons/DragInMotionIcon.tsx +1 -0
  121. package/src/ui/icons/MinimisedHandle.tsx +1 -0
@@ -75,79 +75,83 @@ export const TableFloatingControls = ({
75
75
  }
76
76
  const stickyTop = stickyHeader && stickyHeader.sticky && hasHeaderRow ? stickyHeader.top : undefined;
77
77
  const wrapperClassName = isDragAndDropEnabled ? ClassName.DRAG_ROW_CONTROLS_WRAPPER : ClassName.ROW_CONTROLS_WRAPPER;
78
- return /*#__PURE__*/React.createElement("div", {
79
- className: wrapperClassName
80
- }, /*#__PURE__*/React.createElement("div", {
81
- onMouseDown: e => !isDragAndDropEnabled && e.preventDefault()
82
- }, isNumberColumnEnabled ? /*#__PURE__*/React.createElement(NumberColumn, {
83
- editorView: editorView,
84
- hoverRows: _hoverRows,
85
- tableRef: tableRef,
86
- tableActive: tableActive,
87
- hoveredRows: hoveredRows,
88
- hasHeaderRow: hasHeaderRow,
89
- isInDanger: isInDanger,
90
- isResizing: isResizing,
91
- selectRow: _selectRow,
92
- updateCellHoverLocation: updateCellHoverLocation,
93
- stickyTop: stickyTop,
94
- isDragAndDropEnabled: isDragAndDropEnabled
95
- }) : null, tableActive && /*#__PURE__*/React.createElement(React.Fragment, null, isDragAndDropEnabled ? /*#__PURE__*/React.createElement(React.Fragment, null, getBooleanFF('platform.editor.table.use-shared-state-hook') ? /*#__PURE__*/React.createElement(DragCornerControlsWithSelection, {
96
- editorView: editorView,
97
- tableRef: tableRef,
98
- isInDanger: isInDanger,
99
- isResizing: isResizing,
100
- api: api
101
- }) : /*#__PURE__*/React.createElement(DragCornerControls, {
102
- editorView: editorView,
103
- tableRef: tableRef,
104
- isInDanger: isInDanger,
105
- isResizing: isResizing
106
- }), /*#__PURE__*/React.createElement(DragControls, {
107
- tableRef: tableRef,
108
- tableNode: tableNode,
109
- hoveredCell: hoveredCell,
110
- isTableHovered: isTableHovered,
111
- editorView: editorView,
112
- tableActive: tableActive,
113
- isInDanger: isInDanger,
114
- isResizing: isResizing,
115
- tableWidth: tableWrapperWidth,
116
- hoverRows: _hoverRows,
117
- selectRow: _selectRow,
118
- selectRows: _selectRows,
119
- updateCellHoverLocation: updateCellHoverLocation
120
- })) : getBooleanFF('platform.editor.table.use-shared-state-hook') ? /*#__PURE__*/React.createElement(FloatingControlsWithSelection, {
121
- editorView: editorView,
122
- tableRef: tableRef,
123
- isInDanger: isInDanger,
124
- isResizing: isResizing,
125
- isHeaderRowEnabled: isHeaderRowEnabled,
126
- isHeaderColumnEnabled: isHeaderColumnEnabled,
127
- hoveredRows: hoveredRows,
128
- stickyTop: tableActive ? stickyTop : undefined,
129
- tableActive: tableActive,
130
- hoverRows: _hoverRows,
131
- selectRow: _selectRow,
132
- api: api
133
- }) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CornerControls, {
134
- editorView: editorView,
135
- tableRef: tableRef,
136
- isInDanger: isInDanger,
137
- isResizing: isResizing,
138
- isHeaderRowEnabled: isHeaderRowEnabled,
139
- isHeaderColumnEnabled: isHeaderColumnEnabled,
140
- hoveredRows: hoveredRows,
141
- stickyTop: tableActive ? stickyTop : undefined
142
- }), /*#__PURE__*/React.createElement(RowControls, {
143
- editorView: editorView,
144
- tableRef: tableRef,
145
- hoverRows: _hoverRows,
146
- hoveredRows: hoveredRows,
147
- isInDanger: isInDanger,
148
- isResizing: isResizing,
149
- selectRow: _selectRow,
150
- stickyTop: tableActive ? stickyTop : undefined
151
- })))));
78
+ return (
79
+ /*#__PURE__*/
80
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
81
+ React.createElement("div", {
82
+ className: wrapperClassName
83
+ }, /*#__PURE__*/React.createElement("div", {
84
+ onMouseDown: e => !isDragAndDropEnabled && e.preventDefault()
85
+ }, isNumberColumnEnabled ? /*#__PURE__*/React.createElement(NumberColumn, {
86
+ editorView: editorView,
87
+ hoverRows: _hoverRows,
88
+ tableRef: tableRef,
89
+ tableActive: tableActive,
90
+ hoveredRows: hoveredRows,
91
+ hasHeaderRow: hasHeaderRow,
92
+ isInDanger: isInDanger,
93
+ isResizing: isResizing,
94
+ selectRow: _selectRow,
95
+ updateCellHoverLocation: updateCellHoverLocation,
96
+ stickyTop: stickyTop,
97
+ isDragAndDropEnabled: isDragAndDropEnabled
98
+ }) : null, tableActive && /*#__PURE__*/React.createElement(React.Fragment, null, isDragAndDropEnabled ? /*#__PURE__*/React.createElement(React.Fragment, null, getBooleanFF('platform.editor.table.use-shared-state-hook') ? /*#__PURE__*/React.createElement(DragCornerControlsWithSelection, {
99
+ editorView: editorView,
100
+ tableRef: tableRef,
101
+ isInDanger: isInDanger,
102
+ isResizing: isResizing,
103
+ api: api
104
+ }) : /*#__PURE__*/React.createElement(DragCornerControls, {
105
+ editorView: editorView,
106
+ tableRef: tableRef,
107
+ isInDanger: isInDanger,
108
+ isResizing: isResizing
109
+ }), /*#__PURE__*/React.createElement(DragControls, {
110
+ tableRef: tableRef,
111
+ tableNode: tableNode,
112
+ hoveredCell: hoveredCell,
113
+ isTableHovered: isTableHovered,
114
+ editorView: editorView,
115
+ tableActive: tableActive,
116
+ isInDanger: isInDanger,
117
+ isResizing: isResizing,
118
+ tableWidth: tableWrapperWidth,
119
+ hoverRows: _hoverRows,
120
+ selectRow: _selectRow,
121
+ selectRows: _selectRows,
122
+ updateCellHoverLocation: updateCellHoverLocation
123
+ })) : getBooleanFF('platform.editor.table.use-shared-state-hook') ? /*#__PURE__*/React.createElement(FloatingControlsWithSelection, {
124
+ editorView: editorView,
125
+ tableRef: tableRef,
126
+ isInDanger: isInDanger,
127
+ isResizing: isResizing,
128
+ isHeaderRowEnabled: isHeaderRowEnabled,
129
+ isHeaderColumnEnabled: isHeaderColumnEnabled,
130
+ hoveredRows: hoveredRows,
131
+ stickyTop: tableActive ? stickyTop : undefined,
132
+ tableActive: tableActive,
133
+ hoverRows: _hoverRows,
134
+ selectRow: _selectRow,
135
+ api: api
136
+ }) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CornerControls, {
137
+ editorView: editorView,
138
+ tableRef: tableRef,
139
+ isInDanger: isInDanger,
140
+ isResizing: isResizing,
141
+ isHeaderRowEnabled: isHeaderRowEnabled,
142
+ isHeaderColumnEnabled: isHeaderColumnEnabled,
143
+ hoveredRows: hoveredRows,
144
+ stickyTop: tableActive ? stickyTop : undefined
145
+ }), /*#__PURE__*/React.createElement(RowControls, {
146
+ editorView: editorView,
147
+ tableRef: tableRef,
148
+ hoverRows: _hoverRows,
149
+ hoveredRows: hoveredRows,
150
+ isInDanger: isInDanger,
151
+ isResizing: isResizing,
152
+ selectRow: _selectRow,
153
+ stickyTop: tableActive ? stickyTop : undefined
154
+ })))))
155
+ );
152
156
  };
153
157
  export default TableFloatingControls;
@@ -6,7 +6,9 @@ export const DragHandleDisabledIcon = ({
6
6
  height: "16",
7
7
  viewBox: "0 0 24 16",
8
8
  fill: "none",
9
- xmlns: "http://www.w3.org/2000/svg",
9
+ xmlns: "http://www.w3.org/2000/svg"
10
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
11
+ ,
10
12
  style: style,
11
13
  "data-testid": "drag-icon-disabled"
12
14
  }, /*#__PURE__*/React.createElement("rect", {
@@ -6,7 +6,9 @@ export const DragInMotionIcon = ({
6
6
  height: "20",
7
7
  viewBox: "0 0 28 20",
8
8
  fill: "none",
9
- xmlns: "http://www.w3.org/2000/svg",
9
+ xmlns: "http://www.w3.org/2000/svg"
10
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
11
+ ,
10
12
  style: style
11
13
  }, /*#__PURE__*/React.createElement("rect", {
12
14
  x: "1",
@@ -6,6 +6,7 @@ export const MinimisedHandleIcon = () => /*#__PURE__*/React.createElement("svg",
6
6
  height: "5",
7
7
  fill: "none"
8
8
  }, /*#__PURE__*/React.createElement("rect", {
9
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
9
10
  className: ClassName.DRAG_HANDLE_MINIMISED,
10
11
  width: "24",
11
12
  height: "5",
@@ -40,16 +40,20 @@ export var ExternalDropTargets = function ExternalDropTargets(_ref) {
40
40
  return /*#__PURE__*/React.createElement("div", {
41
41
  style: {
42
42
  width: getTableWrapperWidth(),
43
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
43
44
  overflow: 'hidden',
45
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
44
46
  position: 'absolute',
45
47
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
46
48
  top: "-".concat(dropTargetExtendedWidth - tableMarginTop, "px"),
49
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
47
50
  pointerEvents: 'auto',
48
51
  zIndex: "".concat(dropTargetsZIndex)
49
52
  },
50
53
  "data-testid": "table-floating-column-extended-drop-targets"
51
54
  }, /*#__PURE__*/React.createElement("div", {
52
55
  style: {
56
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
53
57
  display: 'flex',
54
58
  // move drop targets based on table wrapper scroll
55
59
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
@@ -742,7 +742,9 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
742
742
  var topStickyShadowPosition = isDragAndDropEnabled ? this.state.stickyHeader && this.state.stickyHeader.top + this.state.stickyHeader.padding + 2 : this.state.stickyHeader && this.state.stickyHeader.top + this.state.stickyHeader.padding + shadowPadding + 2;
743
743
  var _getEditorFeatureFlag3 = getEditorFeatureFlags(),
744
744
  stickyScrollbar = _getEditorFeatureFlag3.stickyScrollbar;
745
- return /*#__PURE__*/React.createElement(TableContainer, {
745
+ return /*#__PURE__*/React.createElement(TableContainer
746
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
747
+ , {
746
748
  className: classnames(ClassName.TABLE_CONTAINER, (_classnames = {}, _defineProperty(_classnames, ClassName.WITH_CONTROLS, allowControls && tableActive), _defineProperty(_classnames, ClassName.TABLE_STICKY, this.state.stickyHeader && hasHeaderRow), _defineProperty(_classnames, ClassName.HOVERED_DELETE_BUTTON, isInDanger), _defineProperty(_classnames, ClassName.TABLE_SELECTED, isTableSelected(view.state.selection)), _classnames)),
747
749
  editorView: view,
748
750
  getPos: getPos,
@@ -758,9 +760,11 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
758
760
  isWholeTableInDanger: isWholeTableInDanger,
759
761
  isTableAlignmentEnabled: isTableAlignmentEnabled
760
762
  }, /*#__PURE__*/React.createElement("div", {
763
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
761
764
  className: ClassName.TABLE_STICKY_SENTINEL_TOP,
762
765
  "data-testid": "sticky-sentinel-top"
763
766
  }), stickyScrollbar && /*#__PURE__*/React.createElement("div", {
767
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
764
768
  className: ClassName.TABLE_STICKY_SCROLLBAR_SENTINEL_TOP,
765
769
  "data-testid": "sticky-scrollbar-sentinel-top"
766
770
  }), allowControls && rowControls, isDragAndDropEnabled && /*#__PURE__*/React.createElement(ExternalDropTargets, {
@@ -775,10 +779,15 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
775
779
  return ((_this4$wrapper3 = _this4.wrapper) === null || _this4$wrapper3 === void 0 ? void 0 : _this4$wrapper3.clientWidth) || 760;
776
780
  }
777
781
  }), /*#__PURE__*/React.createElement("div", {
778
- contentEditable: false,
779
- style: shadowStyle(showBeforeShadow),
782
+ contentEditable: false
783
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
784
+ ,
785
+ style: shadowStyle(showBeforeShadow)
786
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
787
+ ,
780
788
  className: ClassName.TABLE_LEFT_SHADOW
781
789
  }), this.state.stickyHeader && /*#__PURE__*/React.createElement("div", {
790
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
782
791
  className: "".concat(ClassName.TABLE_LEFT_SHADOW, " ").concat(ClassName.TABLE_STICKY_SHADOW),
783
792
  style: {
784
793
  visibility: showBeforeShadow && hasHeaderRow ? 'visible' : 'hidden',
@@ -786,6 +795,7 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
786
795
  paddingBottom: "".concat(isDragAndDropEnabled && "var(--ds-space-025, 2px)")
787
796
  }
788
797
  }), /*#__PURE__*/React.createElement("div", {
798
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
789
799
  className: classnames(ClassName.TABLE_NODE_WRAPPER),
790
800
  ref: function ref(elem) {
791
801
  _this4.wrapper = elem;
@@ -800,10 +810,13 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
800
810
  }
801
811
  }
802
812
  }, allowControls && colControls), stickyScrollbar && /*#__PURE__*/React.createElement("div", {
813
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
803
814
  className: ClassName.TABLE_STICKY_SCROLLBAR_CONTAINER,
804
815
  style: {
816
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
805
817
  height: "var(--ds-space-250, 20px)",
806
818
  // MAX_BROWSER_SCROLLBAR_HEIGHT
819
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
807
820
  display: 'none',
808
821
  // prevent unwanted scroll during table resize without removing scrollbar container from the dom
809
822
  width: isResizing ? "var(--ds-space-0, 0px)" : '100%'
@@ -811,18 +824,26 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
811
824
  }, /*#__PURE__*/React.createElement("div", {
812
825
  style: {
813
826
  width: tableRef === null || tableRef === void 0 ? void 0 : tableRef.clientWidth,
827
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
814
828
  height: '100%'
815
829
  }
816
830
  })), /*#__PURE__*/React.createElement("div", {
817
- contentEditable: false,
818
- style: shadowStyle(showAfterShadow),
831
+ contentEditable: false
832
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
833
+ ,
834
+ style: shadowStyle(showAfterShadow)
835
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
836
+ ,
819
837
  className: ClassName.TABLE_RIGHT_SHADOW
820
838
  }), this.state.stickyHeader && /*#__PURE__*/React.createElement("div", {
821
839
  style: {
840
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
822
841
  position: 'absolute',
842
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
823
843
  right: "var(--ds-space-400, 32px)" // tableOverflowShadowWidthWide
824
844
  }
825
845
  }, /*#__PURE__*/React.createElement("div", {
846
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
826
847
  className: "".concat(ClassName.TABLE_RIGHT_SHADOW, " ").concat(ClassName.TABLE_STICKY_SHADOW),
827
848
  style: {
828
849
  visibility: showAfterShadow && hasHeaderRow ? 'visible' : 'hidden',
@@ -830,9 +851,11 @@ var TableComponent = /*#__PURE__*/function (_React$Component) {
830
851
  paddingBottom: "".concat(isDragAndDropEnabled && "var(--ds-space-025, 2px)")
831
852
  }
832
853
  })), /*#__PURE__*/React.createElement("div", {
854
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
833
855
  className: ClassName.TABLE_STICKY_SENTINEL_BOTTOM,
834
856
  "data-testid": "sticky-sentinel-bottom"
835
857
  }), stickyScrollbar && /*#__PURE__*/React.createElement("div", {
858
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
836
859
  className: ClassName.TABLE_STICKY_SCROLLBAR_SENTINEL_BOTTOM,
837
860
  "data-testid": "sticky-scrollbar-sentinel-bottom"
838
861
  }));
@@ -13,8 +13,12 @@ export var InnerContainer = /*#__PURE__*/forwardRef(function (_ref, ref) {
13
13
  node = _ref.node,
14
14
  children = _ref.children;
15
15
  return /*#__PURE__*/React.createElement("div", {
16
- ref: ref,
17
- style: style,
16
+ ref: ref
17
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
18
+ ,
19
+ style: style
20
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
21
+ ,
18
22
  className: className,
19
23
  "data-number-column": node.attrs.isNumberColumnEnabled,
20
24
  "data-layout": node.attrs.layout,
@@ -36,10 +40,14 @@ var AlignmentTableContainer = function AlignmentTableContainer(_ref2) {
36
40
  var style = useMemo(function () {
37
41
  return alignment === 'align-start' ? leftAlignStyle : centerAlignStyle;
38
42
  }, [alignment]);
39
- return /*#__PURE__*/React.createElement("div", {
40
- "data-testid": "table-alignment-container",
41
- style: style
42
- }, children);
43
+ return (
44
+ /*#__PURE__*/
45
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
46
+ React.createElement("div", {
47
+ "data-testid": "table-alignment-container",
48
+ style: style
49
+ }, children)
50
+ );
43
51
  };
44
52
  var AlignmentTableContainerWrapper = function AlignmentTableContainerWrapper(_ref3) {
45
53
  var isTableAlignmentEnabled = _ref3.isTableAlignmentEnabled,
@@ -49,7 +57,9 @@ var AlignmentTableContainerWrapper = function AlignmentTableContainerWrapper(_re
49
57
  return /*#__PURE__*/React.createElement("div", {
50
58
  "data-testid": "table-alignment-container",
51
59
  style: {
60
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
52
61
  display: 'flex',
62
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
53
63
  justifyContent: 'center'
54
64
  }
55
65
  }, children);
@@ -171,12 +181,18 @@ export var ResizableTableContainer = /*#__PURE__*/React.memo(function (_ref4) {
171
181
  width: tableWidthRef.current,
172
182
  height: resizing ? updateContainerHeight(tableWrapperHeight !== null && tableWrapperHeight !== void 0 ? tableWrapperHeight : 'auto') : 'auto',
173
183
  position: isLivePageViewMode ? 'relative' : 'unset'
174
- },
184
+ }
185
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
186
+ ,
175
187
  className: ClassName.TABLE_RESIZER_CONTAINER,
176
188
  ref: containerRef
177
- }, isLivePageViewMode ? /*#__PURE__*/React.createElement(InnerContainer, {
189
+ }, isLivePageViewMode ? /*#__PURE__*/React.createElement(InnerContainer
190
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
191
+ , {
178
192
  className: className,
179
- node: node,
193
+ node: node
194
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
195
+ ,
180
196
  style: {
181
197
  width: 'inherit'
182
198
  }
@@ -204,7 +220,9 @@ export var TableContainer = function TableContainer(_ref5) {
204
220
  isTableScalingEnabled = _ref5.isTableScalingEnabled,
205
221
  isTableAlignmentEnabled = _ref5.isTableAlignmentEnabled;
206
222
  if (isTableResizingEnabled && !isNested) {
207
- return /*#__PURE__*/React.createElement(ResizableTableContainer, {
223
+ return /*#__PURE__*/React.createElement(ResizableTableContainer
224
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
225
+ , {
208
226
  className: className,
209
227
  node: node,
210
228
  containerWidth: editorWidth,
@@ -221,11 +239,14 @@ export var TableContainer = function TableContainer(_ref5) {
221
239
  }, children);
222
240
  }
223
241
  return /*#__PURE__*/React.createElement(InnerContainer, {
224
- node: node,
242
+ node: node
243
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
244
+ ,
225
245
  className: classNames(className, {
226
246
  'less-padding': editorWidth < akEditorMobileBreakoutPoint && !isNested
227
247
  }),
228
248
  style: {
249
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
229
250
  width: 'inherit'
230
251
  }
231
252
  }, children);
@@ -1,5 +1,8 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
+ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
3
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
4
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
3
6
  /** @jsx jsx */
4
7
  import { jsx } from '@emotion/react';
5
8
  import { TableSortOrder as SortOrder } from '@atlaskit/custom-steps';
@@ -320,7 +323,7 @@ export var getToolbarConfig = function getToolbarConfig(getEditorContainerWidth,
320
323
  var menu = getToolbarMenuConfig(config, pluginState, intl, editorAnalyticsAPI);
321
324
  var alignmentMenu;
322
325
  var isNested = pluginState.tablePos && isTableNested(state, pluginState.tablePos);
323
- alignmentMenu = options !== null && options !== void 0 && options.isTableAlignmentEnabled && !isNested ? getAlignmentOptionsConfig(state, intl, editorAnalyticsAPI) : [];
326
+ alignmentMenu = options !== null && options !== void 0 && options.isTableAlignmentEnabled && !isNested ? getAlignmentOptionsConfig(state, intl, editorAnalyticsAPI, getEditorContainerWidth) : [];
324
327
  var cellItems;
325
328
  cellItems = pluginState.isDragAndDropEnabled ? [] : getCellItems(state, getEditorView(), intl, getEditorContainerWidth, editorAnalyticsAPI, options === null || options === void 0 ? void 0 : options.isTableScalingEnabled);
326
329
  var columnSettingsItems;
@@ -584,7 +587,7 @@ var highlightColumnsHandler = function highlightColumnsHandler(state, dispatch)
584
587
  }
585
588
  return false;
586
589
  };
587
- export var getAlignmentOptionsConfig = function getAlignmentOptionsConfig(editorState, _ref6, editorAnalyticsAPI) {
590
+ export var getAlignmentOptionsConfig = function getAlignmentOptionsConfig(editorState, _ref6, editorAnalyticsAPI, getEditorContainerWidth) {
588
591
  var formatMessage = _ref6.formatMessage;
589
592
  var tableObject = findTable(editorState.selection);
590
593
  if (!tableObject) {
@@ -610,14 +613,16 @@ export var getAlignmentOptionsConfig = function getAlignmentOptionsConfig(editor
610
613
  value = alignmentIcon.value,
611
614
  icon = alignmentIcon.icon;
612
615
  var currentLayout = tableObject.node.attrs.layout;
613
- return {
616
+ return _objectSpread({
614
617
  id: id,
615
618
  type: 'button',
616
619
  icon: icon,
617
620
  title: formatMessage(layoutToMessages[value]),
618
621
  selected: normaliseAlignment(currentLayout) === value,
619
622
  onClick: setTableAlignmentWithAnalytics(editorAnalyticsAPI)(value, currentLayout, INPUT_METHOD.FLOATING_TB)
620
- };
623
+ }, isLayoutOptionDisabled(tableObject.node, getEditorContainerWidth) && {
624
+ disabled: value !== 'center'
625
+ });
621
626
  });
622
627
  var alignmentItemOptions = {
623
628
  render: function render(props) {
@@ -644,4 +649,11 @@ export var getSelectedAlignmentIcon = function getSelectedAlignmentIcon(alignmen
644
649
  return alignmentIcons.find(function (icon) {
645
650
  return icon.value === normaliseAlignment(selectedAlignment);
646
651
  });
652
+ };
653
+ export var isLayoutOptionDisabled = function isLayoutOptionDisabled(selectedNode, getEditorContainerWidth) {
654
+ var lineLength = getEditorContainerWidth().lineLength;
655
+ if (selectedNode && lineLength && selectedNode.attrs.width > lineLength) {
656
+ return true;
657
+ }
658
+ return false;
647
659
  };
@@ -14,6 +14,7 @@ export var ColumnResizeWidget = function ColumnResizeWidget(_ref) {
14
14
  formatMessage = _useIntl.formatMessage;
15
15
  if (!includeTooltip) {
16
16
  return jsx("div", {
17
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
17
18
  className: TableCssClassName.RESIZE_HANDLE_DECORATION,
18
19
  "data-start-index": startIndex,
19
20
  "data-end-index": endIndex
@@ -30,6 +31,7 @@ export var ColumnResizeWidget = function ColumnResizeWidget(_ref) {
30
31
  mousePosition: "auto-start"
31
32
  }, function (tooltipProps) {
32
33
  return jsx("div", _extends({
34
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
33
35
  className: TableCssClassName.RESIZE_HANDLE_DECORATION,
34
36
  "data-start-index": startIndex,
35
37
  "data-end-index": endIndex
@@ -146,7 +146,9 @@ var DragHandleComponent = function DragHandleComponent(_ref) {
146
146
  }, [tableLocalId, direction, indexes, isRow, editorView.state.selection, hasMergedCells]);
147
147
  var showDragMenuAnchorId = isRow ? 'drag-handle-button-row' : 'drag-handle-button-column';
148
148
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("button", {
149
- type: "button",
149
+ type: "button"
150
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
151
+ ,
150
152
  className: ClassName.DRAG_HANDLE_BUTTON_CLICKABLE_ZONE,
151
153
  "data-testid": "table-drag-handle-clickable-zone-button",
152
154
  style: {
@@ -171,7 +173,9 @@ var DragHandleComponent = function DragHandleComponent(_ref) {
171
173
  onClick: onClick
172
174
  }), /*#__PURE__*/React.createElement("button", {
173
175
  type: "button",
174
- id: isDragMenuTarget ? showDragMenuAnchorId : undefined,
176
+ id: isDragMenuTarget ? showDragMenuAnchorId : undefined
177
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
178
+ ,
175
179
  className: classnames(ClassName.DRAG_HANDLE_BUTTON_CONTAINER, appearance, _defineProperty({}, ClassName.DRAG_HANDLE_DISABLED, hasMergedCells)),
176
180
  ref: dragHandleDivRef,
177
181
  style: {
@@ -198,7 +202,10 @@ var DragHandleComponent = function DragHandleComponent(_ref) {
198
202
  }
199
203
  }, appearance !== 'placeholder' ?
200
204
  // cannot block pointer events in Firefox as it breaks Dragging functionality
201
- browser.gecko ? /*#__PURE__*/React.createElement(HandleIconComponent, handleIconProps) : /*#__PURE__*/React.createElement("span", {
205
+ browser.gecko ? /*#__PURE__*/React.createElement(HandleIconComponent, handleIconProps) :
206
+ /*#__PURE__*/
207
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
208
+ React.createElement("span", {
202
209
  style: {
203
210
  pointerEvents: 'none'
204
211
  }
@@ -23,6 +23,7 @@ export var DragPreview = function DragPreview(_ref) {
23
23
  }
24
24
  }, /*#__PURE__*/React.createElement(DragInMotionIcon, {
25
25
  style: {
26
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
26
27
  position: 'absolute',
27
28
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
28
29
  marginLeft: "".concat(marginLeft, "px"),
@@ -91,19 +91,26 @@ export var FixedButton = function FixedButton(_ref2) {
91
91
  React.createElement("div", {
92
92
  ref: observerTargetRef,
93
93
  style: {
94
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
94
95
  position: 'absolute',
96
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
95
97
  top: "var(--ds-space-0, 0px)",
98
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
96
99
  left: "var(--ds-space-0, 0px)",
100
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
97
101
  width: "var(--ds-space-250, 20px)",
98
102
  // BUTTON_WIDTH
103
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
99
104
  height: "var(--ds-space-250, 20px)" // BUTTON_WIDTH
100
105
  }
101
106
  }, /*#__PURE__*/React.createElement("div", {
102
107
  ref: fixedButtonRef,
103
108
  style: {
109
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
104
110
  position: 'fixed',
105
111
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
106
112
  top: stickyHeader.top + stickyHeader.padding + offset * 2,
113
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
107
114
  zIndex: akEditorTableCellOnStickyHeaderZIndex,
108
115
  // eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
109
116
  left: calcLeftPos({
@@ -112,10 +119,14 @@ export var FixedButton = function FixedButton(_ref2) {
112
119
  cellRefWidth: targetCellRef.clientWidth,
113
120
  offset: offset
114
121
  }),
122
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
115
123
  width: "var(--ds-space-250, 20px)",
116
124
  // BUTTON_WIDTH
125
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
117
126
  height: "var(--ds-space-250, 20px)" // BUTTON_WIDTH
118
- },
127
+ }
128
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
129
+ ,
119
130
  className: ClassName.CONTEXTUAL_MENU_BUTTON_FIXED
120
131
  }, children)), mountTo);
121
132
  };
@@ -46,7 +46,9 @@ var FloatingContextualButtonInner = /*#__PURE__*/React.memo(function (props) {
46
46
  var labelCellOptions = formatMessage(messages.cellOptions);
47
47
  var button = jsx("div", {
48
48
  css: [tableFloatingCellButtonStyles(), isContextualMenuOpen && tableFloatingCellButtonSelectedStyles()]
49
- }, jsx(ToolbarButton, {
49
+ }, jsx(ToolbarButton
50
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
51
+ , {
50
52
  className: ClassName.CONTEXTUAL_MENU_BUTTON,
51
53
  selected: isContextualMenuOpen,
52
54
  title: labelCellOptions,
@@ -89,12 +89,17 @@ export var ContextualMenu = /*#__PURE__*/function (_Component) {
89
89
  label: formatMessage(messages.backgroundColor),
90
90
  size: "medium"
91
91
  })) : undefined,
92
- elemAfter: jsx("div", {
92
+ elemAfter:
93
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
94
+ jsx("div", {
93
95
  className: DropdownMenuSharedCssClassName.SUBMENU
94
96
  }, jsx("div", {
95
- css: cellColourPreviewStyles(background),
97
+ css: cellColourPreviewStyles(background)
98
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
99
+ ,
96
100
  className: isDragAndDropEnabled ? ClassName.CONTEXTUAL_MENU_ICON_SMALL : ClassName.CONTEXTUAL_MENU_ICON
97
101
  }), isSubmenuOpen && jsx("div", {
102
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
98
103
  className: ClassName.CONTEXTUAL_SUBMENU,
99
104
  ref: _this.handleSubMenuRef
100
105
  }, jsx(ColorPalette, {
@@ -9,7 +9,10 @@ var DeleteButton = function DeleteButton(_ref) {
9
9
  removeLabel = _ref.removeLabel,
10
10
  formatMessage = _ref.intl.formatMessage;
11
11
  return /*#__PURE__*/React.createElement("div", {
12
- className: ClassName.CONTROLS_DELETE_BUTTON_WRAP,
12
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
13
+ className: ClassName.CONTROLS_DELETE_BUTTON_WRAP
14
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
15
+ ,
13
16
  style: style,
14
17
  onMouseEnter: onMouseEnter,
15
18
  onMouseLeave: onMouseLeave
@@ -17,7 +20,9 @@ var DeleteButton = function DeleteButton(_ref) {
17
20
  type: "button",
18
21
  "aria-label": formatMessage(removeLabel, {
19
22
  0: 1
20
- }),
23
+ })
24
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
25
+ ,
21
26
  className: ClassName.CONTROLS_DELETE_BUTTON,
22
27
  onMouseDown: onClick,
23
28
  onMouseMove: function onMouseMove(e) {