@atlaskit/editor-plugin-table 18.1.4 → 18.1.6
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 +19 -0
- package/dist/cjs/nodeviews/TableComponent.js +2 -2
- package/dist/cjs/ui/FloatingContextualButton/styles.js +8 -9
- package/dist/cjs/ui/FloatingContextualMenu/styles.js +1 -2
- package/dist/cjs/ui/FloatingDragMenu/styles.js +1 -2
- 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/ui-styles.js +10 -11
- package/dist/es2019/nodeviews/TableComponent.js +2 -2
- package/dist/es2019/ui/FloatingContextualButton/styles.js +8 -9
- package/dist/es2019/ui/FloatingContextualMenu/styles.js +4 -5
- package/dist/es2019/ui/FloatingDragMenu/styles.js +3 -4
- 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/ui-styles.js +25 -38
- package/dist/esm/nodeviews/TableComponent.js +2 -2
- package/dist/esm/ui/FloatingContextualButton/styles.js +8 -9
- package/dist/esm/ui/FloatingContextualMenu/styles.js +1 -2
- package/dist/esm/ui/FloatingDragMenu/styles.js +1 -2
- 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/ui-styles.js +11 -12
- package/package.json +3 -7
package/dist/cjs/ui/ui-styles.js
CHANGED
|
@@ -9,7 +9,6 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
|
|
|
9
9
|
var _react = require("@emotion/react");
|
|
10
10
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
11
11
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
12
|
-
var _colors = require("@atlaskit/theme/colors");
|
|
13
12
|
var _types = require("../types");
|
|
14
13
|
var _consts = require("./consts");
|
|
15
14
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject0, _templateObject1, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23;
|
|
@@ -41,28 +40,28 @@ var Button = function Button(cssString) {
|
|
|
41
40
|
// Explicit pixel values required here to ensure classic row controls align correctly
|
|
42
41
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
43
42
|
var HeaderButton = exports.HeaderButton = function HeaderButton(cssString) {
|
|
44
|
-
return (0, _react.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n\t.", " {\n\t\tbackground: ", ";\n\t\tborder: 1px solid ", ";\n\t\tdisplay: block;\n\t\tbox-sizing: border-box;\n\t\tpadding: 0;\n\n\t\t:focus {\n\t\t\toutline: none;\n\t\t}\n\t\t", "\n\t}\n\n\t.", "::after {\n\t\tcontent: ' ';\n\t\tbackground-color: transparent;\n\t\tleft: -15px;\n\t\ttop: 0;\n\t\tposition: absolute;\n\t\twidth: 15px;\n\t\theight: 100%;\n\t\tz-index: 1;\n\t}\n\n\t.active .", " {\n\t\tcolor: ", ";\n\t\tbackground-color: ", ";\n\t\tborder-color: ", ";\n\t}\n"])), _types.TableCssClassName.CONTROLS_BUTTON, _consts.tableHeaderCellBackgroundColor, _consts.tableBorderColor, cssString, _types.TableCssClassName.ROW_CONTROLS_BUTTON, _types.TableCssClassName.CONTROLS_BUTTON, "var(--ds-icon-inverse,
|
|
43
|
+
return (0, _react.css)(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n\t.", " {\n\t\tbackground: ", ";\n\t\tborder: 1px solid ", ";\n\t\tdisplay: block;\n\t\tbox-sizing: border-box;\n\t\tpadding: 0;\n\n\t\t:focus {\n\t\t\toutline: none;\n\t\t}\n\t\t", "\n\t}\n\n\t.", "::after {\n\t\tcontent: ' ';\n\t\tbackground-color: transparent;\n\t\tleft: -15px;\n\t\ttop: 0;\n\t\tposition: absolute;\n\t\twidth: 15px;\n\t\theight: 100%;\n\t\tz-index: 1;\n\t}\n\n\t.active .", " {\n\t\tcolor: ", ";\n\t\tbackground-color: ", ";\n\t\tborder-color: ", ";\n\t}\n"])), _types.TableCssClassName.CONTROLS_BUTTON, _consts.tableHeaderCellBackgroundColor, _consts.tableBorderColor, cssString, _types.TableCssClassName.ROW_CONTROLS_BUTTON, _types.TableCssClassName.CONTROLS_BUTTON, "var(--ds-icon-inverse, #FFFFFF)", _consts.tableToolbarSelectedColor, _consts.tableBorderSelectedColor);
|
|
45
44
|
};
|
|
46
45
|
var HeaderButtonHover = exports.HeaderButtonHover = function HeaderButtonHover() {
|
|
47
|
-
return (0, _react.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n\t.", ":hover {\n\t\tcolor: ", ";\n\t\tbackground-color: ", ";\n\t\tborder-color: ", ";\n\t\tcursor: pointer;\n\t}\n"])), _types.TableCssClassName.CONTROLS_BUTTON, "var(--ds-icon-inverse,
|
|
46
|
+
return (0, _react.css)(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n\t.", ":hover {\n\t\tcolor: ", ";\n\t\tbackground-color: ", ";\n\t\tborder-color: ", ";\n\t\tcursor: pointer;\n\t}\n"])), _types.TableCssClassName.CONTROLS_BUTTON, "var(--ds-icon-inverse, #FFFFFF)", _consts.tableToolbarSelectedColor, _consts.tableBorderSelectedColor);
|
|
48
47
|
};
|
|
49
48
|
var HeaderButtonDanger = exports.HeaderButtonDanger = function HeaderButtonDanger() {
|
|
50
49
|
return (0, _react.css)(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n\t.", " .", " {\n\t\tbackground-color: ", ";\n\t\tborder-color: ", ";\n\t\tposition: relative;\n\t\tz-index: ", ";\n\t}\n"])), _types.TableCssClassName.HOVERED_CELL_IN_DANGER, _types.TableCssClassName.CONTROLS_BUTTON, _consts.tableToolbarDeleteColor, _consts.tableBorderDeleteColor, _editorSharedStyles.akEditorUnitZIndex);
|
|
51
50
|
};
|
|
52
51
|
var InsertButton = function InsertButton() {
|
|
53
|
-
return (0, _react.css)(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n\t.", " {\n\t\tposition: absolute;\n\t\tz-index: ", ";\n\t\tbottom: 0;\n\t}\n\t.", ", .", " {\n\t\theight: ", "px;\n\t\twidth: ", "px;\n\t}\n\t.", " {\n\t\t", "\n\t}\n\t.", " {\n\t\tdisplay: none;\n\t}\n\t&:hover .", " {\n\t\tdisplay: flex;\n\t}\n"])), _types.TableCssClassName.CONTROLS_INSERT_BUTTON_INNER, _editorSharedStyles.akEditorUnitZIndex + 10, _types.TableCssClassName.CONTROLS_INSERT_BUTTON_INNER, _types.TableCssClassName.CONTROLS_INSERT_BUTTON, _consts.tableInsertColumnButtonSize, _consts.tableInsertColumnButtonSize, _types.TableCssClassName.CONTROLS_INSERT_BUTTON, Button("\n background: ".concat("var(--ds-surface-overlay,
|
|
52
|
+
return (0, _react.css)(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n\t.", " {\n\t\tposition: absolute;\n\t\tz-index: ", ";\n\t\tbottom: 0;\n\t}\n\t.", ", .", " {\n\t\theight: ", "px;\n\t\twidth: ", "px;\n\t}\n\t.", " {\n\t\t", "\n\t}\n\t.", " {\n\t\tdisplay: none;\n\t}\n\t&:hover .", " {\n\t\tdisplay: flex;\n\t}\n"])), _types.TableCssClassName.CONTROLS_INSERT_BUTTON_INNER, _editorSharedStyles.akEditorUnitZIndex + 10, _types.TableCssClassName.CONTROLS_INSERT_BUTTON_INNER, _types.TableCssClassName.CONTROLS_INSERT_BUTTON, _consts.tableInsertColumnButtonSize, _consts.tableInsertColumnButtonSize, _types.TableCssClassName.CONTROLS_INSERT_BUTTON, Button("\n background: ".concat("var(--ds-surface-overlay, #FFFFFF)", ";\n box-shadow: ", "var(--ds-shadow-overlay, 0px 8px 12px #1E1F2126, 0px 0px 1px #1E1F214f)", ";\n color: ", "var(--ds-icon, #292A2E)", ";\n ")), _types.TableCssClassName.CONTROLS_INSERT_LINE, _types.TableCssClassName.CONTROLS_INSERT_LINE);
|
|
54
53
|
};
|
|
55
54
|
var InsertButtonHover = function InsertButtonHover() {
|
|
56
|
-
return (0, _react.css)(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n\t.", ":hover {\n\t\tbackground: ", ";\n\t\tcolor: ", ";\n\t\tcursor: pointer;\n\t}\n"])), _types.TableCssClassName.CONTROLS_INSERT_BUTTON, "var(--ds-background-brand-bold,
|
|
55
|
+
return (0, _react.css)(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n\t.", ":hover {\n\t\tbackground: ", ";\n\t\tcolor: ", ";\n\t\tcursor: pointer;\n\t}\n"])), _types.TableCssClassName.CONTROLS_INSERT_BUTTON, "var(--ds-background-brand-bold, #1868DB)", "var(--ds-icon-inverse, #FFFFFF)");
|
|
57
56
|
};
|
|
58
57
|
var dragInsertButtonWrapper = exports.dragInsertButtonWrapper = function dragInsertButtonWrapper() {
|
|
59
|
-
return (0, _react.css)(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n\t.", " {\n\t\tposition: absolute;\n\t\tz-index: ", ";\n\t}\n\n\t.", " {\n\t\tbottom: -3px;\n\t\tleft: 2px;\n\t}\n\n\t.", " {\n\t\tleft: -3px;\n\t\tbottom: -2px;\n\t}\n\t.", " {\n\t\tleft: 6px;\n\t\tbottom: -2px;\n\t}\n\n\t.", " {\n\t\t", "\n\t}\n\n\t.", ":hover {\n\t\tbackground: ", ";\n\t\tborder: 1px solid ", ";\n\t\tcolor: ", ";\n\t\tcursor: pointer;\n\t}\n"])), _types.TableCssClassName.DRAG_CONTROLS_INSERT_BUTTON_INNER, _editorSharedStyles.akEditorUnitZIndex + 10, _types.TableCssClassName.DRAG_CONTROLS_INSERT_BUTTON_INNER_COLUMN, _types.TableCssClassName.DRAG_CONTROLS_INSERT_BUTTON_INNER_ROW, _types.TableCssClassName.DRAG_CONTROLS_INSERT_BUTTON_INNER_ROW_CHROMELESS, _types.TableCssClassName.DRAG_CONTROLS_INSERT_BUTTON, Button("\n background: ".concat("var(--ds-surface-overlay,
|
|
58
|
+
return (0, _react.css)(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n\t.", " {\n\t\tposition: absolute;\n\t\tz-index: ", ";\n\t}\n\n\t.", " {\n\t\tbottom: -3px;\n\t\tleft: 2px;\n\t}\n\n\t.", " {\n\t\tleft: -3px;\n\t\tbottom: -2px;\n\t}\n\t.", " {\n\t\tleft: 6px;\n\t\tbottom: -2px;\n\t}\n\n\t.", " {\n\t\t", "\n\t}\n\n\t.", ":hover {\n\t\tbackground: ", ";\n\t\tborder: 1px solid ", ";\n\t\tcolor: ", ";\n\t\tcursor: pointer;\n\t}\n"])), _types.TableCssClassName.DRAG_CONTROLS_INSERT_BUTTON_INNER, _editorSharedStyles.akEditorUnitZIndex + 10, _types.TableCssClassName.DRAG_CONTROLS_INSERT_BUTTON_INNER_COLUMN, _types.TableCssClassName.DRAG_CONTROLS_INSERT_BUTTON_INNER_ROW, _types.TableCssClassName.DRAG_CONTROLS_INSERT_BUTTON_INNER_ROW_CHROMELESS, _types.TableCssClassName.DRAG_CONTROLS_INSERT_BUTTON, Button("\n background: ".concat("var(--ds-surface-overlay, #FFFFFF)", ";\n color: ", "var(--ds-icon, #292A2E)", ";\n border: 1px solid ", "var(--ds-background-accent-gray-subtler, #DDDEE1)", ";\n border-radius: 50%;\n height: ", _consts.dragTableInsertColumnButtonSize, "px;\n width: ").concat(_consts.dragTableInsertColumnButtonSize, "px;\n ")), _types.TableCssClassName.DRAG_CONTROLS_INSERT_BUTTON, "var(--ds-background-brand-bold, #1868DB)", "var(--ds-background-brand-bold, #1868DB)", "var(--ds-icon-inverse, #FFFFFF)");
|
|
60
59
|
};
|
|
61
60
|
|
|
62
61
|
// Explicit pixel values required here to ensure corner button aligns correctly
|
|
63
62
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
64
63
|
var dragCornerControlButton = exports.dragCornerControlButton = function dragCornerControlButton() {
|
|
65
|
-
return (0, _react.css)(_templateObject0 || (_templateObject0 = (0, _taggedTemplateLiteral2.default)(["\n\t.", " {\n\t\twidth: 15px;\n\t\theight: 15px;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\tposition: absolute;\n\t\ttop: -17px;\n\t\tleft: -5px;\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tpadding: 0;\n\t\toutline: none;\n\t\tz-index: ", ";\n\n\t\t&.active .", " {\n\t\t\tbackground-color: ", ";\n\t\t\twidth: 10px;\n\t\t\theight: 10px;\n\t\t\tborder-width: 2px;\n\t\t\tborder-radius: 4px;\n\n\t\t\ttop: 3px;\n\t\t\tleft: 2px;\n\t\t}\n\n\t\t&:hover {\n\t\t\tcursor: pointer;\n\n\t\t\t.", " {\n\t\t\t\twidth: 10px;\n\t\t\t\theight: 10px;\n\t\t\t\tborder-radius: 4px;\n\t\t\t\ttop: 3px;\n\t\t\t\tleft: 2px;\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tborder: 1px solid ", ";\n\t\tbackground-color: ", ";\n\t\tborder-radius: 2px;\n\t\twidth: 5px;\n\t\theight: 5px;\n\t\tposition: relative;\n\t}\n"])), _types.TableCssClassName.DRAG_CORNER_BUTTON, _editorSharedStyles.akEditorUnitZIndex * 99, _types.TableCssClassName.DRAG_CORNER_BUTTON_INNER, "var(--ds-border-selected, #
|
|
64
|
+
return (0, _react.css)(_templateObject0 || (_templateObject0 = (0, _taggedTemplateLiteral2.default)(["\n\t.", " {\n\t\twidth: 15px;\n\t\theight: 15px;\n\t\tdisplay: flex;\n\t\tjustify-content: center;\n\t\talign-items: center;\n\t\tposition: absolute;\n\t\ttop: -17px;\n\t\tleft: -5px;\n\t\tbackground-color: transparent;\n\t\tborder: none;\n\t\tpadding: 0;\n\t\toutline: none;\n\t\tz-index: ", ";\n\n\t\t&.active .", " {\n\t\t\tbackground-color: ", ";\n\t\t\twidth: 10px;\n\t\t\theight: 10px;\n\t\t\tborder-width: 2px;\n\t\t\tborder-radius: 4px;\n\n\t\t\ttop: 3px;\n\t\t\tleft: 2px;\n\t\t}\n\n\t\t&:hover {\n\t\t\tcursor: pointer;\n\n\t\t\t.", " {\n\t\t\t\twidth: 10px;\n\t\t\t\theight: 10px;\n\t\t\t\tborder-radius: 4px;\n\t\t\t\ttop: 3px;\n\t\t\t\tleft: 2px;\n\t\t\t}\n\t\t}\n\t}\n\n\t.", " {\n\t\tborder: 1px solid ", ";\n\t\tbackground-color: ", ";\n\t\tborder-radius: 2px;\n\t\twidth: 5px;\n\t\theight: 5px;\n\t\tposition: relative;\n\t}\n"])), _types.TableCssClassName.DRAG_CORNER_BUTTON, _editorSharedStyles.akEditorUnitZIndex * 99, _types.TableCssClassName.DRAG_CORNER_BUTTON_INNER, "var(--ds-border-selected, #1868DB)", _types.TableCssClassName.DRAG_CORNER_BUTTON_INNER, _types.TableCssClassName.DRAG_CORNER_BUTTON_INNER, "var(--ds-border-inverse, #FFFFFF)", "var(--ds-background-accent-gray-subtler, #DDDEE1)");
|
|
66
65
|
};
|
|
67
66
|
var insertColumnButtonWrapper = exports.insertColumnButtonWrapper = function insertColumnButtonWrapper() {
|
|
68
67
|
return (0, _react.css)(
|
|
@@ -89,7 +88,7 @@ var DeleteButton = exports.DeleteButton = function DeleteButton() {
|
|
|
89
88
|
return (0, _react.css)(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n\t.", ", .", " {\n\t\theight: ", "px;\n\t\twidth: ", "px;\n\t}\n\t.", " {\n\t\t.", " {\n\t\t\t", "\n\t\t}\n\t}\n\n\t.", ":hover {\n\t\tbackground: ", ";\n\t\tcolor: ", ";\n\t\tcursor: pointer;\n\t}\n"])), _types.TableCssClassName.CONTROLS_DELETE_BUTTON_WRAP, _types.TableCssClassName.CONTROLS_DELETE_BUTTON, _consts.tableDeleteButtonSize, _consts.tableDeleteButtonSize, _types.TableCssClassName.CONTROLS_DELETE_BUTTON_WRAP, _types.TableCssClassName.CONTROLS_DELETE_BUTTON, Button("\n background: ".concat(_consts.tableCellSelectedDeleteIconBackground, ";\n color: ").concat(_consts.tableCellSelectedDeleteIconColor, ";\n ")), _types.TableCssClassName.CONTROLS_DELETE_BUTTON, _consts.tableCellHoverDeleteIconBackground, _consts.tableCellHoverDeleteIconColor);
|
|
90
89
|
};
|
|
91
90
|
var OverflowShadow = exports.OverflowShadow = function OverflowShadow(isDragAndDropEnabled) {
|
|
92
|
-
return (0, _react.css)(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n\t.", ", .", " {\n\t\tdisplay: block;\n\t\theight: calc(100% - ", "px);\n\t\tposition: absolute;\n\t\tpointer-events: none;\n\t\ttop: ", "px;\n\t\tz-index: ", ";\n\t\twidth: ", "px;\n\t}\n\t.", " {\n\t\tbackground:\n\t\t\tlinear-gradient(
|
|
91
|
+
return (0, _react.css)(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n\t.", ", .", " {\n\t\tdisplay: block;\n\t\theight: calc(100% - ", "px);\n\t\tposition: absolute;\n\t\tpointer-events: none;\n\t\ttop: ", "px;\n\t\tz-index: ", ";\n\t\twidth: ", "px;\n\t}\n\t.", " {\n\t\tbackground:\n\t\t\tlinear-gradient(to left, transparent 0, ", " 140%),\n\t\t\tlinear-gradient(\n\t\t\t\tto right,\n\t\t\t\t", " 0px,\n\t\t\t\ttransparent 1px\n\t\t\t);\n\t\tleft: 0px;\n\t}\n\t.", "[data-number-column='true'] > :not(.", ").", " {\n\t\tleft: ", "px;\n\t}\n\t.", " {\n\t\tbackground:\n\t\t\tlinear-gradient(to right, transparent 0, ", " 140%),\n\t\t\tlinear-gradient(to left, ", " 0px, transparent 1px);\n\t\tleft: calc(100% - ", "px);\n\t}\n\t.", " {\n\t\t", "\n\t\t.", " {\n\t\t\tborder-left: 1px solid ", ";\n\t\t}\n\t}\n"])), _types.TableCssClassName.TABLE_RIGHT_SHADOW, _types.TableCssClassName.TABLE_LEFT_SHADOW, _styles.tableMarginTop, _styles.tableMarginTop, _editorSharedStyles.akEditorShadowZIndex, _consts.tableOverflowShadowWidthWide, _types.TableCssClassName.TABLE_LEFT_SHADOW, "var(--ds-shadow-overflow-spread, #1E1F2129)", "var(--ds-shadow-overflow-perimeter, #1E1F211f)", _types.TableCssClassName.TABLE_CONTAINER, _types.TableCssClassName.TABLE_STICKY_SHADOW, _types.TableCssClassName.TABLE_LEFT_SHADOW, _editorSharedStyles.akEditorTableNumberColumnWidth - 1, _types.TableCssClassName.TABLE_RIGHT_SHADOW, "var(--ds-shadow-overflow-spread, #1E1F2129)", "var(--ds-shadow-overflow-perimeter, #1E1F211f)", _consts.tableOverflowShadowWidthWide, _types.TableCssClassName.WITH_CONTROLS, overflowShadowWidhoutDnD(isDragAndDropEnabled), _types.TableCssClassName.TABLE_LEFT_SHADOW, _consts.tableBorderColor);
|
|
93
92
|
};
|
|
94
93
|
var overflowShadowWidhoutDnD = function overflowShadowWidhoutDnD(isDragAndDropEnabled) {
|
|
95
94
|
if (!isDragAndDropEnabled) {
|
|
@@ -116,7 +115,7 @@ var columnHeaderButton = function columnHeaderButton(cssString) {
|
|
|
116
115
|
};
|
|
117
116
|
var columnHeaderButtonSelected = function columnHeaderButtonSelected() {
|
|
118
117
|
return (0, _react.css)({
|
|
119
|
-
color: "var(--ds-text-inverse,
|
|
118
|
+
color: "var(--ds-text-inverse, #FFFFFF)",
|
|
120
119
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
121
120
|
backgroundColor: _consts.tableToolbarSelectedColor,
|
|
122
121
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
@@ -145,7 +144,7 @@ var hoveredCell = exports.hoveredCell = function hoveredCell() {
|
|
|
145
144
|
};
|
|
146
145
|
|
|
147
146
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
148
|
-
var hoveredWarningCell = exports.hoveredWarningCell = (0, _react.css)(_templateObject20 || (_templateObject20 = (0, _taggedTemplateLiteral2.default)(["\n\t:not(.", ")\n\t\t.", ":not(.", ") {\n\t\ttd.", " {\n\t\t\tbackground-color: ", " !important; /* We need to override the background-color added to the cell */\n\t\t\tborder: 1px solid ", ";\n\t\t}\n\t}\n"])), _types.TableCssClassName.IS_RESIZING, _types.TableCssClassName.TABLE_CONTAINER, _types.TableCssClassName.HOVERED_DELETE_BUTTON, _types.TableCssClassName.HOVERED_CELL_WARNING, "var(--ds-background-warning,
|
|
147
|
+
var hoveredWarningCell = exports.hoveredWarningCell = (0, _react.css)(_templateObject20 || (_templateObject20 = (0, _taggedTemplateLiteral2.default)(["\n\t:not(.", ")\n\t\t.", ":not(.", ") {\n\t\ttd.", " {\n\t\t\tbackground-color: ", " !important; /* We need to override the background-color added to the cell */\n\t\t\tborder: 1px solid ", ";\n\t\t}\n\t}\n"])), _types.TableCssClassName.IS_RESIZING, _types.TableCssClassName.TABLE_CONTAINER, _types.TableCssClassName.HOVERED_DELETE_BUTTON, _types.TableCssClassName.HOVERED_CELL_WARNING, "var(--ds-background-warning, #FFF5DB)", "var(--ds-border-warning, #E06C00)");
|
|
149
148
|
|
|
150
149
|
// Explicit pixel values required here to ensure correct positioning and sizes of column resize handle
|
|
151
150
|
// eslint-disable-next-line @atlaskit/design-system/ensure-design-token-usage/preview
|
|
@@ -184,7 +183,7 @@ var insertLineActiveColor = (0, _react.css)({
|
|
|
184
183
|
});
|
|
185
184
|
var insertLineInactiveColor = (0, _react.css)({
|
|
186
185
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
187
|
-
backgroundColor: "var(--ds-background-accent-gray-subtler,
|
|
186
|
+
backgroundColor: "var(--ds-background-accent-gray-subtler, #DDDEE1)"
|
|
188
187
|
});
|
|
189
188
|
|
|
190
189
|
// Explicit pixel values required here to ensure correct positioning of line that is show on row
|
|
@@ -712,7 +712,7 @@ class TableComponent extends React.Component {
|
|
|
712
712
|
this.dispatchTableRefUpdate();
|
|
713
713
|
}
|
|
714
714
|
dispatchTableRefUpdate() {
|
|
715
|
-
if (this.table && this.table !== this.lastSetTableRef && this.props.view && expValEquals('platform_editor_fix_editor_unhandled_type_errors', 'isEnabled', true) && (expValEquals('platform_editor_table_update_table_ref', 'isEnabled', true) || fg('platform_editor_enable_table_update_ref_atlas'))) {
|
|
715
|
+
if (this.table && this.table !== this.lastSetTableRef && (!expValEquals('platform_editor_table_ref_optimisation', 'isEnabled', true) || this.props.tableActive) && this.props.view && expValEquals('platform_editor_fix_editor_unhandled_type_errors', 'isEnabled', true) && (expValEquals('platform_editor_table_update_table_ref', 'isEnabled', true) || fg('platform_editor_enable_table_update_ref_atlas'))) {
|
|
716
716
|
this.lastSetTableRef = this.table;
|
|
717
717
|
setTableRef(this.table)(this.props.view.state, this.props.view.dispatch);
|
|
718
718
|
}
|
|
@@ -897,7 +897,7 @@ class TableComponent extends React.Component {
|
|
|
897
897
|
|
|
898
898
|
// // Update tableRef in plugin state when table is properly mounted
|
|
899
899
|
// // At this point, both table and wrapper are in DOM with correct parent-child relationship
|
|
900
|
-
if (this.table && this.props.view && !expValEquals('platform_editor_fix_editor_unhandled_type_errors', 'isEnabled', true) && (expValEquals('platform_editor_table_update_table_ref', 'isEnabled', true) || fg('platform_editor_enable_table_update_ref_atlas'))) {
|
|
900
|
+
if (this.table && (!expValEquals('platform_editor_table_ref_optimisation', 'isEnabled', true) || this.props.tableActive) && this.props.view && !expValEquals('platform_editor_fix_editor_unhandled_type_errors', 'isEnabled', true) && (expValEquals('platform_editor_table_update_table_ref', 'isEnabled', true) || fg('platform_editor_enable_table_update_ref_atlas'))) {
|
|
901
901
|
setTableRef(this.table)(this.props.view.state, this.props.view.dispatch);
|
|
902
902
|
}
|
|
903
903
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
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 const tableFloatingCellButtonStyles = () => css({
|
|
6
5
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
7
6
|
'> div': {
|
|
8
7
|
// Sits behind button to provide surface-color background
|
|
9
|
-
background:
|
|
8
|
+
background: "var(--ds-surface, #FFFFFF)",
|
|
10
9
|
borderRadius: "var(--ds-radius-small, 3px)",
|
|
11
10
|
display: 'flex',
|
|
12
11
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
@@ -16,10 +15,10 @@ export const tableFloatingCellButtonStyles = () => css({
|
|
|
16
15
|
},
|
|
17
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
18
17
|
'&& button': {
|
|
19
|
-
background: "var(--ds-background-neutral,
|
|
18
|
+
background: "var(--ds-background-neutral, #0515240F)",
|
|
20
19
|
flexDirection: 'column',
|
|
21
20
|
margin: "var(--ds-space-025, 2px)",
|
|
22
|
-
outline: `2px solid ${
|
|
21
|
+
outline: `2px solid ${"var(--ds-surface, #FFFFFF)"}`,
|
|
23
22
|
borderRadius: '1px',
|
|
24
23
|
padding: 0,
|
|
25
24
|
height: 'calc(100% - 4px)',
|
|
@@ -27,11 +26,11 @@ export const tableFloatingCellButtonStyles = () => css({
|
|
|
27
26
|
},
|
|
28
27
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
29
28
|
'&& button:hover': {
|
|
30
|
-
background:
|
|
29
|
+
background: "var(--ds-background-neutral-hovered, #0B120E24)"
|
|
31
30
|
},
|
|
32
31
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
33
32
|
'&& button:active': {
|
|
34
|
-
background: "var(--ds-background-neutral-pressed,
|
|
33
|
+
background: "var(--ds-background-neutral-pressed, #080F214A)"
|
|
35
34
|
},
|
|
36
35
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
37
36
|
'&& button > span': {
|
|
@@ -45,14 +44,14 @@ export const tableFloatingCellButtonStyles = () => css({
|
|
|
45
44
|
export const tableFloatingCellButtonSelectedStyles = () => css({
|
|
46
45
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
47
46
|
'&& button': {
|
|
48
|
-
background:
|
|
47
|
+
background: "var(--ds-background-selected, #E9F2FE)"
|
|
49
48
|
},
|
|
50
49
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
51
50
|
'&& button:hover': {
|
|
52
|
-
background:
|
|
51
|
+
background: "var(--ds-background-selected-hovered, #CFE1FD)"
|
|
53
52
|
},
|
|
54
53
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors, @atlaskit/ui-styling-standard/no-unsafe-selectors -- Ignored via go/DSP-18766
|
|
55
54
|
'&& button:active': {
|
|
56
|
-
background:
|
|
55
|
+
background: "var(--ds-background-selected-pressed, #8FB8F6)"
|
|
57
56
|
}
|
|
58
57
|
});
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
import { tableBackgroundBorderColor } from '@atlaskit/adf-schema';
|
|
4
|
-
import { N60A, N90 } from '@atlaskit/theme/colors';
|
|
5
4
|
import { TableCssClassName as ClassName } from '../../types';
|
|
6
5
|
import { contextualMenuDropdownWidth, contextualMenuDropdownWidthDnD } from '../consts';
|
|
7
6
|
export const cellColourPreviewStyles = selectedColor => css({
|
|
@@ -15,8 +14,8 @@ export const tablePopupStyles = (isDragAndDropEnabled
|
|
|
15
14
|
) => css`
|
|
16
15
|
.${ClassName.CONTEXTUAL_SUBMENU} {
|
|
17
16
|
border-radius: ${"var(--ds-radius-small, 3px)"};
|
|
18
|
-
background: ${"var(--ds-surface-overlay,
|
|
19
|
-
box-shadow: ${
|
|
17
|
+
background: ${"var(--ds-surface-overlay, #FFFFFF)"};
|
|
18
|
+
box-shadow: ${"var(--ds-shadow-overlay, 0px 8px 12px #1E1F2126, 0px 0px 1px #1E1F214f)"};
|
|
20
19
|
display: block;
|
|
21
20
|
position: absolute;
|
|
22
21
|
top: 0;
|
|
@@ -44,7 +43,7 @@ export const tablePopupStyles = (isDragAndDropEnabled
|
|
|
44
43
|
content: '›';
|
|
45
44
|
margin-left: ${"var(--ds-space-050, 4px)"};
|
|
46
45
|
line-height: 20px;
|
|
47
|
-
color: ${
|
|
46
|
+
color: ${"var(--ds-icon, #292A2E)"};
|
|
48
47
|
}
|
|
49
48
|
}
|
|
50
49
|
|
|
@@ -64,7 +63,7 @@ export const tablePopupStyles = (isDragAndDropEnabled
|
|
|
64
63
|
content: '›';
|
|
65
64
|
margin-left: ${"var(--ds-space-050, 4px)"};
|
|
66
65
|
line-height: 14px;
|
|
67
|
-
color: ${
|
|
66
|
+
color: ${"var(--ds-icon, #292A2E)"};
|
|
68
67
|
}
|
|
69
68
|
}
|
|
70
69
|
`;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
3
|
import { tableBackgroundBorderColor } from '@atlaskit/adf-schema';
|
|
4
|
-
import { N60A, N90 } from '@atlaskit/theme/colors';
|
|
5
4
|
import { TableCssClassName as ClassName } from '../../types';
|
|
6
5
|
import { dragMenuDropdownWidth, TABLE_DRAG_MENU_MENU_GROUP_BEFORE_HEIGHT, TABLE_DRAG_MENU_PADDING_TOP, TABLE_DRAG_MENU_SORT_GROUP_HEIGHT } from '../consts';
|
|
7
6
|
export const cellColourPreviewStyles = selectedColor => css({
|
|
@@ -15,8 +14,8 @@ export const cellColourPreviewStyles = selectedColor => css({
|
|
|
15
14
|
export const dragMenuBackgroundColorStyles = () => css`
|
|
16
15
|
.${ClassName.DRAG_SUBMENU} {
|
|
17
16
|
border-radius: ${"var(--ds-radius-small, 3px)"};
|
|
18
|
-
background: ${"var(--ds-surface-overlay,
|
|
19
|
-
box-shadow: ${
|
|
17
|
+
background: ${"var(--ds-surface-overlay, #FFFFFF)"};
|
|
18
|
+
box-shadow: ${"var(--ds-shadow-overlay, 0px 8px 12px #1E1F2126, 0px 0px 1px #1E1F214f)"};
|
|
20
19
|
display: block;
|
|
21
20
|
position: absolute;
|
|
22
21
|
top: ${TABLE_DRAG_MENU_PADDING_TOP + TABLE_DRAG_MENU_SORT_GROUP_HEIGHT + TABLE_DRAG_MENU_MENU_GROUP_BEFORE_HEIGHT}px; /* move the submenu down when 'sort increasing/decreasing' appear before background color picker */
|
|
@@ -44,7 +43,7 @@ export const dragMenuBackgroundColorStyles = () => css`
|
|
|
44
43
|
content: '›';
|
|
45
44
|
margin-left: ${"var(--ds-space-050, 4px)"};
|
|
46
45
|
line-height: 14px;
|
|
47
|
-
color: ${
|
|
46
|
+
color: ${"var(--ds-icon, #292A2E)"};
|
|
48
47
|
}
|
|
49
48
|
}
|
|
50
49
|
`;
|
|
@@ -12,7 +12,6 @@ import { akEditorSelectedNodeClassName, akEditorSmallZIndex, akEditorStickyHeade
|
|
|
12
12
|
import { scrollbarStyles } from '@atlaskit/editor-shared-styles/scrollbar';
|
|
13
13
|
import { hideNativeBrowserTextSelectionStyles } from '@atlaskit/editor-shared-styles/selection';
|
|
14
14
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
15
|
-
import { N0, N40A, R500 } from '@atlaskit/theme/colors';
|
|
16
15
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
17
16
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
18
17
|
import { SORTING_ICON_CLASS_NAME } from '../pm-plugins/view-mode-sort/consts';
|
|
@@ -36,7 +35,7 @@ const numberedColumnButtonSelectedStyles = `
|
|
|
36
35
|
background-color: ${tableToolbarSelectedColor};
|
|
37
36
|
position: relative;
|
|
38
37
|
z-index: ${akEditorUnitZIndex};
|
|
39
|
-
color: ${
|
|
38
|
+
color: ${"var(--ds-text-selected, #1868DB)"};
|
|
40
39
|
`;
|
|
41
40
|
const rangeSelectionStyles = `
|
|
42
41
|
.${ClassName.NODEVIEW_WRAPPER}.${akEditorSelectedNodeClassName} table tbody tr {
|
|
@@ -284,7 +283,7 @@ const baseTableStylesWithoutSharedStyle = props => {
|
|
|
284
283
|
|
|
285
284
|
position: fixed !important;
|
|
286
285
|
z-index: ${akEditorStickyHeaderZIndex} !important;
|
|
287
|
-
box-shadow: 0px -${stickyRowOffsetTop}px ${"var(--ds-surface,
|
|
286
|
+
box-shadow: 0px -${stickyRowOffsetTop}px ${"var(--ds-surface, #FFFFFF)"};
|
|
288
287
|
border-right: 0 none;
|
|
289
288
|
/* top set by NumberColumn component */
|
|
290
289
|
}
|
|
@@ -293,7 +292,7 @@ const baseTableStylesWithoutSharedStyle = props => {
|
|
|
293
292
|
position: fixed !important;
|
|
294
293
|
/* needs to be above row controls */
|
|
295
294
|
z-index: ${akEditorSmallZIndex} !important;
|
|
296
|
-
background: ${"var(--ds-surface,
|
|
295
|
+
background: ${"var(--ds-surface, #FFFFFF)"};
|
|
297
296
|
|
|
298
297
|
width: ${tableToolbarSize}px;
|
|
299
298
|
height: ${tableToolbarSize}px;
|
|
@@ -317,13 +316,13 @@ const baseTableStylesWithoutSharedStyle = props => {
|
|
|
317
316
|
position: fixed !important;
|
|
318
317
|
z-index: ${akEditorStickyHeaderZIndex} !important;
|
|
319
318
|
display: flex;
|
|
320
|
-
border-left: ${tableToolbarSize}px solid ${"var(--ds-surface,
|
|
319
|
+
border-left: ${tableToolbarSize}px solid ${"var(--ds-surface, #FFFFFF)"};
|
|
321
320
|
margin-left: -${tableToolbarSize}px;
|
|
322
321
|
}
|
|
323
322
|
|
|
324
323
|
.${ClassName.TABLE_STICKY} col:first-of-type {
|
|
325
324
|
/* moving rows out of a table layout does weird things in Chrome */
|
|
326
|
-
border-right: 1px solid ${"var(--ds-surface,
|
|
325
|
+
border-right: 1px solid ${"var(--ds-surface, #FFFFFF)"};
|
|
327
326
|
}
|
|
328
327
|
|
|
329
328
|
tr.sticky {
|
|
@@ -340,9 +339,9 @@ const baseTableStylesWithoutSharedStyle = props => {
|
|
|
340
339
|
grid-auto-flow: column;
|
|
341
340
|
|
|
342
341
|
/* background for where controls apply */
|
|
343
|
-
background: ${"var(--ds-surface,
|
|
342
|
+
background: ${"var(--ds-surface, #FFFFFF)"};
|
|
344
343
|
box-sizing: content-box;
|
|
345
|
-
box-shadow: 0 6px 4px -4px ${
|
|
344
|
+
box-shadow: 0 6px 4px -4px ${"var(--ds-shadow-overflow-perimeter, #1E1F211f)"};
|
|
346
345
|
|
|
347
346
|
margin-left: -1px;
|
|
348
347
|
|
|
@@ -544,8 +543,7 @@ const baseTableStylesWithoutSharedStyle = props => {
|
|
|
544
543
|
}
|
|
545
544
|
|
|
546
545
|
.${ClassName.CORNER_CONTROLS}.sticky {
|
|
547
|
-
border-top: ${tableControlsSpacing - tableToolbarSize}px solid
|
|
548
|
-
${"var(--ds-surface, white)"};
|
|
546
|
+
border-top: ${tableControlsSpacing - tableToolbarSize}px solid ${"var(--ds-surface, #FFFFFF)"};
|
|
549
547
|
}
|
|
550
548
|
|
|
551
549
|
${sentinelStyles}
|
|
@@ -757,7 +755,7 @@ const baseTableStylesWithoutSharedStyle = props => {
|
|
|
757
755
|
position: absolute;
|
|
758
756
|
bottom: -3px;
|
|
759
757
|
left: 2px;
|
|
760
|
-
background-color: ${"var(--ds-background-accent-gray-subtler, #
|
|
758
|
+
background-color: ${"var(--ds-background-accent-gray-subtler, #DDDEE1)"};
|
|
761
759
|
height: 4px;
|
|
762
760
|
width: 4px;
|
|
763
761
|
border-radius: 50%;
|
|
@@ -780,7 +778,7 @@ const baseTableStylesWithoutSharedStyle = props => {
|
|
|
780
778
|
}
|
|
781
779
|
|
|
782
780
|
.${ClassName.DRAG_COLUMN_FLOATING_INSERT_DOT} {
|
|
783
|
-
background-color: ${"var(--ds-background-accent-gray-subtler, #
|
|
781
|
+
background-color: ${"var(--ds-background-accent-gray-subtler, #DDDEE1)"};
|
|
784
782
|
height: 4px;
|
|
785
783
|
width: 4px;
|
|
786
784
|
border-radius: 50%;
|
|
@@ -813,7 +811,7 @@ const baseTableStylesWithoutSharedStyle = props => {
|
|
|
813
811
|
padding: 0;
|
|
814
812
|
border-radius: 6px;
|
|
815
813
|
width: max-content;
|
|
816
|
-
border: 2px solid ${
|
|
814
|
+
border: 2px solid ${"var(--ds-surface, #FFFFFF)"};
|
|
817
815
|
|
|
818
816
|
display: flex;
|
|
819
817
|
justify-content: center;
|
|
@@ -830,13 +828,13 @@ const baseTableStylesWithoutSharedStyle = props => {
|
|
|
830
828
|
cursor: pointer;
|
|
831
829
|
& svg {
|
|
832
830
|
& > rect.${ClassName.DRAG_HANDLE_MINIMISED} {
|
|
833
|
-
fill: ${"var(--ds-background-accent-gray-subtler, #
|
|
831
|
+
fill: ${"var(--ds-background-accent-gray-subtler, #DDDEE1)"};
|
|
834
832
|
}
|
|
835
833
|
& > rect {
|
|
836
|
-
fill: ${"var(--ds-background-accent-gray-subtlest, #
|
|
834
|
+
fill: ${"var(--ds-background-accent-gray-subtlest, #F0F1F2)"};
|
|
837
835
|
}
|
|
838
836
|
& > g > rect {
|
|
839
|
-
fill: ${"var(--ds-icon-disabled, #
|
|
837
|
+
fill: ${"var(--ds-icon-disabled, #080F214A)"};
|
|
840
838
|
}
|
|
841
839
|
}
|
|
842
840
|
}
|
|
@@ -844,20 +842,20 @@ const baseTableStylesWithoutSharedStyle = props => {
|
|
|
844
842
|
&:not(.${ClassName.DRAG_HANDLE_DISABLED}) {
|
|
845
843
|
& svg {
|
|
846
844
|
rect {
|
|
847
|
-
fill: ${"var(--ds-background-accent-gray-subtler, #
|
|
845
|
+
fill: ${"var(--ds-background-accent-gray-subtler, #DDDEE1)"};
|
|
848
846
|
}
|
|
849
847
|
g {
|
|
850
|
-
fill: ${"var(--ds-icon-subtle, #
|
|
848
|
+
fill: ${"var(--ds-icon-subtle, #505258)"};
|
|
851
849
|
}
|
|
852
850
|
}
|
|
853
851
|
|
|
854
852
|
&:hover {
|
|
855
853
|
svg {
|
|
856
854
|
rect {
|
|
857
|
-
fill: ${"var(--ds-background-accent-blue-subtle, #
|
|
855
|
+
fill: ${"var(--ds-background-accent-blue-subtle, #669DF1)"};
|
|
858
856
|
}
|
|
859
857
|
g {
|
|
860
|
-
fill: ${"var(--ds-icon-inverse, #
|
|
858
|
+
fill: ${"var(--ds-icon-inverse, #FFFFFF)"};
|
|
861
859
|
}
|
|
862
860
|
}
|
|
863
861
|
}
|
|
@@ -868,7 +866,7 @@ const baseTableStylesWithoutSharedStyle = props => {
|
|
|
868
866
|
|
|
869
867
|
&.selected {
|
|
870
868
|
:focus {
|
|
871
|
-
outline: 2px solid ${"var(--ds-border-focused, #
|
|
869
|
+
outline: 2px solid ${"var(--ds-border-focused, #4688EC)"};
|
|
872
870
|
outline-offset: 1px;
|
|
873
871
|
}
|
|
874
872
|
|
|
@@ -878,10 +876,10 @@ const baseTableStylesWithoutSharedStyle = props => {
|
|
|
878
876
|
|
|
879
877
|
svg {
|
|
880
878
|
rect {
|
|
881
|
-
fill: ${"var(--ds-background-accent-blue-subtle, #
|
|
879
|
+
fill: ${"var(--ds-background-accent-blue-subtle, #669DF1)"};
|
|
882
880
|
}
|
|
883
881
|
g {
|
|
884
|
-
fill: ${"var(--ds-icon-inverse, #
|
|
882
|
+
fill: ${"var(--ds-icon-inverse, #FFFFFF)"};
|
|
885
883
|
}
|
|
886
884
|
}
|
|
887
885
|
}
|
|
@@ -889,10 +887,10 @@ const baseTableStylesWithoutSharedStyle = props => {
|
|
|
889
887
|
&.danger {
|
|
890
888
|
svg {
|
|
891
889
|
rect {
|
|
892
|
-
fill: ${"var(--ds-background-accent-red-subtler-pressed, #
|
|
890
|
+
fill: ${"var(--ds-background-accent-red-subtler-pressed, #FD9891)"};
|
|
893
891
|
}
|
|
894
892
|
g {
|
|
895
|
-
fill: ${"var(--ds-border-inverse, #
|
|
893
|
+
fill: ${"var(--ds-border-inverse, #FFFFFF)"};
|
|
896
894
|
}
|
|
897
895
|
}
|
|
898
896
|
}
|
|
@@ -947,7 +945,7 @@ const baseTableStylesWithoutSharedStyle = props => {
|
|
|
947
945
|
display: block;
|
|
948
946
|
height: 33px;
|
|
949
947
|
width: 100%;
|
|
950
|
-
background-color: ${"var(--ds-surface,
|
|
948
|
+
background-color: ${"var(--ds-surface, #FFFFFF)"};
|
|
951
949
|
position: absolute;
|
|
952
950
|
|
|
953
951
|
/* the extra pixel is accounting for borders */
|
|
@@ -1001,7 +999,7 @@ const baseTableStylesWithoutSharedStyle = props => {
|
|
|
1001
999
|
background-color: ${tableToolbarDeleteColor};
|
|
1002
1000
|
border: 1px solid ${tableBorderDeleteColor};
|
|
1003
1001
|
border-left: 0;
|
|
1004
|
-
color: ${
|
|
1002
|
+
color: ${"var(--ds-text-danger, #AE2E24)"};
|
|
1005
1003
|
position: relative;
|
|
1006
1004
|
z-index: ${akEditorUnitZIndex};
|
|
1007
1005
|
}
|
|
@@ -1013,7 +1011,7 @@ const baseTableStylesWithoutSharedStyle = props => {
|
|
|
1013
1011
|
background-color: ${tableToolbarDeleteColor};
|
|
1014
1012
|
border: 1px solid ${tableBorderDeleteColor};
|
|
1015
1013
|
border-left: 0;
|
|
1016
|
-
color: ${
|
|
1014
|
+
color: ${"var(--ds-text-danger, #AE2E24)"};
|
|
1017
1015
|
position: relative;
|
|
1018
1016
|
z-index: ${akEditorUnitZIndex};
|
|
1019
1017
|
}
|
package/dist/es2019/ui/consts.js
CHANGED
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
// Entry file in package.json
|
|
3
3
|
|
|
4
4
|
import { tableCellBorderWidth, tableMarginTop } from '@atlaskit/editor-common/styles';
|
|
5
|
-
import {
|
|
6
|
-
import { B200, N0, N20, N200, N20A, N300, R300, R400, R75 } from '@atlaskit/theme/colors';
|
|
5
|
+
import { akEditorTableCellOnStickyHeaderZIndex, akEditorTableToolbarSize, akEditorUnitZIndex, akRichMediaResizeZIndex } from '@atlaskit/editor-shared-styles';
|
|
7
6
|
import { RESIZE_HANDLE_AREA_DECORATION_GAP } from '../types';
|
|
8
7
|
|
|
9
8
|
/**
|
|
@@ -11,25 +10,25 @@ import { RESIZE_HANDLE_AREA_DECORATION_GAP } from '../types';
|
|
|
11
10
|
*/
|
|
12
11
|
|
|
13
12
|
// TODO: DSP-4135 - Remove these tokens once the new elevation tokens are available
|
|
14
|
-
export const tableCellBackgroundColor =
|
|
15
|
-
export const tableHeaderCellBackgroundColor =
|
|
16
|
-
export const tableToolbarColor =
|
|
17
|
-
export const tableTextColor =
|
|
18
|
-
export const tableBorderColor =
|
|
19
|
-
export const tableFloatingControlsColor =
|
|
13
|
+
export const tableCellBackgroundColor = "var(--ds-surface, #FFFFFF)";
|
|
14
|
+
export const tableHeaderCellBackgroundColor = "var(--ds-background-accent-gray-subtlest, #F0F1F2)";
|
|
15
|
+
export const tableToolbarColor = "var(--ds-background-neutral-subtle, #00000000)";
|
|
16
|
+
export const tableTextColor = "var(--ds-text-subtlest, #6B6E76)";
|
|
17
|
+
export const tableBorderColor = "var(--ds-background-accent-gray-subtler, #DDDEE1)";
|
|
18
|
+
export const tableFloatingControlsColor = "var(--ds-background-neutral, #0515240F)";
|
|
20
19
|
|
|
21
20
|
// TODO: DSP-4461 - Remove these tokens once the new elevation tokens are available
|
|
22
|
-
export const tableCellSelectedColor =
|
|
23
|
-
export const tableHeaderCellSelectedColor =
|
|
24
|
-
export const tableToolbarSelectedColor =
|
|
25
|
-
export const tableBorderSelectedColor =
|
|
26
|
-
export const tableCellSelectedDeleteIconColor =
|
|
27
|
-
export const tableCellSelectedDeleteIconBackground =
|
|
28
|
-
export const tableCellDeleteColor =
|
|
29
|
-
export const tableBorderDeleteColor =
|
|
30
|
-
export const tableToolbarDeleteColor =
|
|
31
|
-
export const tableCellHoverDeleteIconColor = "var(--ds-icon-inverse,
|
|
32
|
-
export const tableCellHoverDeleteIconBackground =
|
|
21
|
+
export const tableCellSelectedColor = "var(--ds-blanket-selected, #388BFF14)";
|
|
22
|
+
export const tableHeaderCellSelectedColor = "var(--ds-background-selected-pressed, #8FB8F6)";
|
|
23
|
+
export const tableToolbarSelectedColor = "var(--ds-background-selected-pressed, #8FB8F6)";
|
|
24
|
+
export const tableBorderSelectedColor = "var(--ds-border-focused, #4688EC)";
|
|
25
|
+
export const tableCellSelectedDeleteIconColor = "var(--ds-icon-subtle, #505258)";
|
|
26
|
+
export const tableCellSelectedDeleteIconBackground = "var(--ds-background-accent-gray-subtlest, #F0F1F2)";
|
|
27
|
+
export const tableCellDeleteColor = "var(--ds-blanket-danger, #EF5C4814)";
|
|
28
|
+
export const tableBorderDeleteColor = "var(--ds-border-danger, #E2483D)";
|
|
29
|
+
export const tableToolbarDeleteColor = "var(--ds-background-danger-pressed, #FFB8B2)";
|
|
30
|
+
export const tableCellHoverDeleteIconColor = "var(--ds-icon-inverse, #FFFFFF)";
|
|
31
|
+
export const tableCellHoverDeleteIconBackground = "var(--ds-background-danger-bold, #C9372C)";
|
|
33
32
|
export const tableBorderRadiusSize = 3;
|
|
34
33
|
export const tablePadding = 8;
|
|
35
34
|
export const tableScrollbarOffset = 15;
|
|
@@ -16,7 +16,7 @@ export const DragInMotionIcon = ({
|
|
|
16
16
|
width: "26",
|
|
17
17
|
height: "18",
|
|
18
18
|
rx: "5",
|
|
19
|
-
fill: "var(--ds-background-accent-blue-subtle, #
|
|
19
|
+
fill: "var(--ds-background-accent-blue-subtle, #669DF1)"
|
|
20
20
|
}), /*#__PURE__*/React.createElement("rect", {
|
|
21
21
|
x: "9",
|
|
22
22
|
y: "6",
|