@atlaskit/editor-plugin-text-color 1.0.7 → 1.0.8
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
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-text-color
|
|
2
2
|
|
|
3
|
+
## 1.0.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#92426](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/92426) [`32c76c7c225c`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/32c76c7c225c) - Bump adf-schema to 35.9.2 to support table alignment options
|
|
8
|
+
|
|
3
9
|
## 1.0.7
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
exports.textColorIconWrapper = exports.textColorIconBar = exports.backgroundDisabled = void 0;
|
|
8
|
-
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
|
|
9
7
|
var _react = require("@emotion/react");
|
|
10
8
|
var _colors = require("@atlaskit/theme/colors");
|
|
11
9
|
var _constants = require("@atlaskit/theme/constants");
|
|
12
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
13
10
|
var createSteppedRainbow = function createSteppedRainbow(colors) {
|
|
14
11
|
return "\n linear-gradient(\n to right,\n ".concat(colors.map(function (color, i) {
|
|
15
12
|
var inc = 100 / colors.length;
|
|
@@ -30,6 +27,20 @@ var rainbow = createSteppedRainbow([_colors.P300, _colors.T300, _colors.Y400, _c
|
|
|
30
27
|
var disabledRainbow = createSteppedRainbow([_colors.N80, _colors.N60, _colors.N40, _colors.N60]);
|
|
31
28
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
32
29
|
|
|
33
|
-
var textColorIconWrapper = exports.textColorIconWrapper = (0, _react.css)(
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
var textColorIconWrapper = exports.textColorIconWrapper = (0, _react.css)({
|
|
31
|
+
position: 'relative'
|
|
32
|
+
});
|
|
33
|
+
var textColorIconBar = exports.textColorIconBar = (0, _react.css)({
|
|
34
|
+
position: 'absolute',
|
|
35
|
+
left: 0,
|
|
36
|
+
right: 0,
|
|
37
|
+
top: "var(--ds-space-200, 16px)",
|
|
38
|
+
margin: 'auto',
|
|
39
|
+
width: '12px',
|
|
40
|
+
height: '3px',
|
|
41
|
+
borderRadius: (0, _constants.borderRadius)() + 'px',
|
|
42
|
+
background: rainbow
|
|
43
|
+
});
|
|
44
|
+
var backgroundDisabled = exports.backgroundDisabled = (0, _react.css)({
|
|
45
|
+
background: disabledRainbow
|
|
46
|
+
});
|
|
@@ -29,20 +29,20 @@ const rainbow = createSteppedRainbow([P300, T300, Y400, R400]);
|
|
|
29
29
|
const disabledRainbow = createSteppedRainbow([N80, N60, N40, N60]);
|
|
30
30
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
31
31
|
|
|
32
|
-
export const textColorIconWrapper = css
|
|
33
|
-
position: relative
|
|
34
|
-
|
|
35
|
-
export const textColorIconBar = css
|
|
36
|
-
position: absolute
|
|
37
|
-
left: 0
|
|
38
|
-
right: 0
|
|
39
|
-
top:
|
|
40
|
-
margin: auto
|
|
41
|
-
width: 12px
|
|
42
|
-
height: 3px
|
|
43
|
-
|
|
44
|
-
background:
|
|
45
|
-
|
|
46
|
-
export const backgroundDisabled = css
|
|
47
|
-
background:
|
|
48
|
-
|
|
32
|
+
export const textColorIconWrapper = css({
|
|
33
|
+
position: 'relative'
|
|
34
|
+
});
|
|
35
|
+
export const textColorIconBar = css({
|
|
36
|
+
position: 'absolute',
|
|
37
|
+
left: 0,
|
|
38
|
+
right: 0,
|
|
39
|
+
top: "var(--ds-space-200, 16px)",
|
|
40
|
+
margin: 'auto',
|
|
41
|
+
width: '12px',
|
|
42
|
+
height: '3px',
|
|
43
|
+
borderRadius: borderRadius() + 'px',
|
|
44
|
+
background: rainbow
|
|
45
|
+
});
|
|
46
|
+
export const backgroundDisabled = css({
|
|
47
|
+
background: disabledRainbow
|
|
48
|
+
});
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
|
|
2
|
-
var _templateObject, _templateObject2, _templateObject3;
|
|
3
1
|
import { css } from '@emotion/react';
|
|
4
2
|
import { N40, N60, N80, P300, R400, T300, Y400 } from '@atlaskit/theme/colors';
|
|
5
3
|
import { borderRadius } from '@atlaskit/theme/constants';
|
|
@@ -23,6 +21,20 @@ var rainbow = createSteppedRainbow([P300, T300, Y400, R400]);
|
|
|
23
21
|
var disabledRainbow = createSteppedRainbow([N80, N60, N40, N60]);
|
|
24
22
|
/* eslint-enable @atlaskit/design-system/ensure-design-token-usage */
|
|
25
23
|
|
|
26
|
-
export var textColorIconWrapper = css(
|
|
27
|
-
|
|
28
|
-
|
|
24
|
+
export var textColorIconWrapper = css({
|
|
25
|
+
position: 'relative'
|
|
26
|
+
});
|
|
27
|
+
export var textColorIconBar = css({
|
|
28
|
+
position: 'absolute',
|
|
29
|
+
left: 0,
|
|
30
|
+
right: 0,
|
|
31
|
+
top: "var(--ds-space-200, 16px)",
|
|
32
|
+
margin: 'auto',
|
|
33
|
+
width: '12px',
|
|
34
|
+
height: '3px',
|
|
35
|
+
borderRadius: borderRadius() + 'px',
|
|
36
|
+
background: rainbow
|
|
37
|
+
});
|
|
38
|
+
export var backgroundDisabled = css({
|
|
39
|
+
background: disabledRainbow
|
|
40
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-text-color",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "Text color plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
".": "./src/index.ts"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@atlaskit/adf-schema": "^35.9.
|
|
37
|
-
"@atlaskit/editor-common": "^78.
|
|
36
|
+
"@atlaskit/adf-schema": "^35.9.2",
|
|
37
|
+
"@atlaskit/editor-common": "^78.30.0",
|
|
38
38
|
"@atlaskit/editor-palette": "1.5.3",
|
|
39
39
|
"@atlaskit/editor-plugin-analytics": "^1.0.0",
|
|
40
40
|
"@atlaskit/editor-prosemirror": "3.0.0",
|