@atlaskit/editor-plugin-table 5.5.0 → 5.5.1
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 +6 -0
- package/dist/cjs/plugins/table/ui/FloatingContextualButton/styles.js +3 -3
- package/dist/es2019/plugins/table/ui/FloatingContextualButton/styles.js +2 -2
- package/dist/esm/plugins/table/ui/FloatingContextualButton/styles.js +3 -3
- package/package.json +1 -1
- package/src/plugins/table/ui/FloatingContextualButton/styles.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-table
|
|
2
2
|
|
|
3
|
+
## 5.5.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#59829](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/59829) [`3120b36a9f2c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/3120b36a9f2c) - Converted spacing values to the corresponding space tokens
|
|
8
|
+
|
|
3
9
|
## 5.5.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -13,16 +13,16 @@ var _constants = require("@atlaskit/theme/constants");
|
|
|
13
13
|
var _consts = require("../consts");
|
|
14
14
|
var _templateObject, _templateObject2;
|
|
15
15
|
var tableFloatingCellButtonStyles = exports.tableFloatingCellButtonStyles = function tableFloatingCellButtonStyles(props) {
|
|
16
|
-
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n > div {\n // Sits behind button to provide surface-color background\n background: ", ";\n border-radius: ", "px;\n display: flex;\n height: ", "px;\n flex-direction: column;\n }\n && button {\n background: ", ";\n flex-direction: column;\n margin:
|
|
16
|
+
return (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n > div {\n // Sits behind button to provide surface-color background\n background: ", ";\n border-radius: ", "px;\n display: flex;\n height: ", "px;\n flex-direction: column;\n }\n && button {\n background: ", ";\n flex-direction: column;\n margin: ", ";\n outline: 2px solid ", ";\n border-radius: 1px;\n padding: 0;\n height: calc(100% - 4px);\n display: flex;\n }\n && button:hover {\n background: ", ";\n }\n && button:active {\n background: ", ";\n }\n && button > span {\n margin: 0px ", ";\n }\n && span {\n pointer-events: none;\n }\n"])), "var(--ds-surface, ".concat(_colors.N20, ")"), (0, _constants.borderRadius)(), _consts.contextualMenuTriggerSize + 2, (0, _components.themed)({
|
|
17
17
|
light: "var(--ds-background-neutral, none)",
|
|
18
18
|
dark: "var(--ds-background-neutral, none)"
|
|
19
|
-
})(props), "var(--ds-surface, ".concat(_colors.N0, ")"), (0, _components.themed)({
|
|
19
|
+
})(props), "var(--ds-space-025, 2px)", "var(--ds-surface, ".concat(_colors.N0, ")"), (0, _components.themed)({
|
|
20
20
|
light: "var(--ds-background-neutral-hovered, ".concat(_colors.N30A, ")"),
|
|
21
21
|
dark: "var(--ds-background-neutral-hovered, ".concat(_colors.DN60, ")")
|
|
22
22
|
})(props), (0, _components.themed)({
|
|
23
23
|
light: "var(--ds-background-neutral-pressed, rgba(179, 212, 255, 0.6))",
|
|
24
24
|
dark: "var(--ds-background-neutral-pressed, ".concat(_colors.B75, ")")
|
|
25
|
-
})(props));
|
|
25
|
+
})(props), "var(--ds-space-negative-050, -4px)");
|
|
26
26
|
};
|
|
27
27
|
var tableFloatingCellButtonSelectedStyles = exports.tableFloatingCellButtonSelectedStyles = function tableFloatingCellButtonSelectedStyles(props) {
|
|
28
28
|
return (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n && button {\n background: ", ";\n }\n && button:hover {\n background: ", ";\n }\n && button:active {\n background: ", ";\n }\n"])), (0, _components.themed)({
|
|
@@ -18,7 +18,7 @@ export const tableFloatingCellButtonStyles = props => css`
|
|
|
18
18
|
dark: "var(--ds-background-neutral, none)"
|
|
19
19
|
})(props)};
|
|
20
20
|
flex-direction: column;
|
|
21
|
-
margin: 2px;
|
|
21
|
+
margin: ${"var(--ds-space-025, 2px)"};
|
|
22
22
|
outline: 2px solid ${`var(--ds-surface, ${N0})`};
|
|
23
23
|
border-radius: 1px;
|
|
24
24
|
padding: 0;
|
|
@@ -38,7 +38,7 @@ export const tableFloatingCellButtonStyles = props => css`
|
|
|
38
38
|
})(props)};
|
|
39
39
|
}
|
|
40
40
|
&& button > span {
|
|
41
|
-
margin: 0px -4px;
|
|
41
|
+
margin: 0px ${"var(--ds-space-negative-050, -4px)"};
|
|
42
42
|
}
|
|
43
43
|
&& span {
|
|
44
44
|
pointer-events: none;
|
|
@@ -6,16 +6,16 @@ import { themed } from '@atlaskit/theme/components';
|
|
|
6
6
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
7
7
|
import { contextualMenuTriggerSize } from '../consts';
|
|
8
8
|
export var tableFloatingCellButtonStyles = function tableFloatingCellButtonStyles(props) {
|
|
9
|
-
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n > div {\n // Sits behind button to provide surface-color background\n background: ", ";\n border-radius: ", "px;\n display: flex;\n height: ", "px;\n flex-direction: column;\n }\n && button {\n background: ", ";\n flex-direction: column;\n margin:
|
|
9
|
+
return css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n > div {\n // Sits behind button to provide surface-color background\n background: ", ";\n border-radius: ", "px;\n display: flex;\n height: ", "px;\n flex-direction: column;\n }\n && button {\n background: ", ";\n flex-direction: column;\n margin: ", ";\n outline: 2px solid ", ";\n border-radius: 1px;\n padding: 0;\n height: calc(100% - 4px);\n display: flex;\n }\n && button:hover {\n background: ", ";\n }\n && button:active {\n background: ", ";\n }\n && button > span {\n margin: 0px ", ";\n }\n && span {\n pointer-events: none;\n }\n"])), "var(--ds-surface, ".concat(N20, ")"), borderRadius(), contextualMenuTriggerSize + 2, themed({
|
|
10
10
|
light: "var(--ds-background-neutral, none)",
|
|
11
11
|
dark: "var(--ds-background-neutral, none)"
|
|
12
|
-
})(props), "var(--ds-surface, ".concat(N0, ")"), themed({
|
|
12
|
+
})(props), "var(--ds-space-025, 2px)", "var(--ds-surface, ".concat(N0, ")"), themed({
|
|
13
13
|
light: "var(--ds-background-neutral-hovered, ".concat(N30A, ")"),
|
|
14
14
|
dark: "var(--ds-background-neutral-hovered, ".concat(DN60, ")")
|
|
15
15
|
})(props), themed({
|
|
16
16
|
light: "var(--ds-background-neutral-pressed, rgba(179, 212, 255, 0.6))",
|
|
17
17
|
dark: "var(--ds-background-neutral-pressed, ".concat(B75, ")")
|
|
18
|
-
})(props));
|
|
18
|
+
})(props), "var(--ds-space-negative-050, -4px)");
|
|
19
19
|
};
|
|
20
20
|
export var tableFloatingCellButtonSelectedStyles = function tableFloatingCellButtonSelectedStyles(props) {
|
|
21
21
|
return css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n && button {\n background: ", ";\n }\n && button:hover {\n background: ", ";\n }\n && button:active {\n background: ", ";\n }\n"])), themed({
|
package/package.json
CHANGED
|
@@ -23,7 +23,7 @@ export const tableFloatingCellButtonStyles = (props: ThemeProps) => css`
|
|
|
23
23
|
dark: token('color.background.neutral', 'none'),
|
|
24
24
|
})(props)};
|
|
25
25
|
flex-direction: column;
|
|
26
|
-
margin: 2px;
|
|
26
|
+
margin: ${token('space.025', '2px')};
|
|
27
27
|
outline: 2px solid ${token('elevation.surface', N0)};
|
|
28
28
|
border-radius: 1px;
|
|
29
29
|
padding: 0;
|
|
@@ -46,7 +46,7 @@ export const tableFloatingCellButtonStyles = (props: ThemeProps) => css`
|
|
|
46
46
|
})(props)};
|
|
47
47
|
}
|
|
48
48
|
&& button > span {
|
|
49
|
-
margin: 0px -4px;
|
|
49
|
+
margin: 0px ${token('space.negative.050', '-4px')};
|
|
50
50
|
}
|
|
51
51
|
&& span {
|
|
52
52
|
pointer-events: none;
|