@atlaskit/editor-palette 1.4.3 → 1.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/{.babelrc.cts → .babelrc} +2 -2
- package/CHANGELOG.md +12 -0
- package/dist/cjs/background.js +89 -37
- package/dist/cjs/index.js +4 -4
- package/dist/cjs/table-charts.js +128 -47
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/background.js +45 -33
- package/dist/es2019/index.js +2 -2
- package/dist/es2019/table-charts.js +54 -41
- package/dist/es2019/version.json +1 -1
- package/dist/esm/background.js +87 -34
- package/dist/esm/index.js +2 -2
- package/dist/esm/table-charts.js +126 -43
- package/dist/esm/version.json +1 -1
- package/dist/types/background.d.ts +41 -25
- package/dist/types/index.d.ts +2 -2
- package/dist/types/table-charts.d.ts +50 -39
- package/dist/types-ts4.5/background.d.ts +41 -25
- package/dist/types-ts4.5/index.d.ts +2 -2
- package/dist/types-ts4.5/table-charts.d.ts +50 -39
- package/package.json +4 -5
- package/report.api.md +64 -143
- package/tmp/api-report-tmp.d.ts +62 -74
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
{
|
|
2
2
|
"plugins": ["@atlaskit/tokens/babel-plugin"]
|
|
3
|
-
}
|
|
3
|
+
}
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/editor-palette
|
|
2
2
|
|
|
3
|
+
## 1.5.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`c5a5b4ec141`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c5a5b4ec141) - Reverted back the changes done as part of UTEST-643
|
|
8
|
+
|
|
9
|
+
## 1.5.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`f22911fb9be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/f22911fb9be) - ENGHEALTH-2667: Adjust table cell color logic to enable static analysis of token usages and follow eslint rules
|
|
14
|
+
|
|
3
15
|
## 1.4.3
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/cjs/background.js
CHANGED
|
@@ -6,12 +6,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.editorBackgroundPalette = void 0;
|
|
8
8
|
exports.hexToEditorBackgroundPaletteColor = hexToEditorBackgroundPaletteColor;
|
|
9
|
-
exports.
|
|
9
|
+
exports.hexToEditorBackgroundPaletteRawValue = hexToEditorBackgroundPaletteRawValue;
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
|
-
var
|
|
12
|
-
// This import will be stripped on build
|
|
11
|
+
var _tokens = require("@atlaskit/tokens");
|
|
12
|
+
var _editorBackgroundPale; // This import will be stripped on build
|
|
13
13
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
14
|
-
|
|
15
14
|
/**
|
|
16
15
|
* This takes an adf hex color and returns a matching background palette
|
|
17
16
|
* color.
|
|
@@ -29,7 +28,7 @@ var _editorBackgroundPale;
|
|
|
29
28
|
* The exact output of this function is an implementation detail and should only be used when rendering
|
|
30
29
|
* content to the user, on a client with a matching major version of `@atlaskit/tokens`.
|
|
31
30
|
* - **DO NOT**: store the output of these functions in any user-generated content or back-end.
|
|
32
|
-
* - **DO**: store the ADF hex color, and use these utilities at render time to display the themed version of the color
|
|
31
|
+
* - **DO**: store the ADF hex color, and use these utilities at render time to display the themed version of the color.
|
|
33
32
|
*/
|
|
34
33
|
function hexToEditorBackgroundPaletteColor(hexColor) {
|
|
35
34
|
// Ts ignore used to allow use of conditional return type
|
|
@@ -38,86 +37,139 @@ function hexToEditorBackgroundPaletteColor(hexColor) {
|
|
|
38
37
|
var tokenData = editorBackgroundPalette[hexColor.toUpperCase()];
|
|
39
38
|
return tokenData ? tokenData.token : undefined;
|
|
40
39
|
}
|
|
41
|
-
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Takes an ADF hex color and returns the rendered hex code for the associated background palette design token using getTokenValue.
|
|
43
|
+
* If the provided color does not exist in the Editor color palette, this function returns undefined.
|
|
44
|
+
*
|
|
45
|
+
* This should only be used when rendering content where CSS variables are not feasible, such as a non-CSS environment
|
|
46
|
+
* or to enable cross-app copy/paste.
|
|
47
|
+
*
|
|
48
|
+
* WARNING: If the rendered theme changes (such as from light -> dark mode) the value returned here will no longer match
|
|
49
|
+
* the surrounding UI and will need to be re-fetched.
|
|
50
|
+
* In addition, the values of tokens will differ between themes and the value for a given theme can and will change.
|
|
51
|
+
* - **DO NOT**: store the output of these functions in any user-generated content or back-end.
|
|
52
|
+
* - **DO**: store the ADF hex color, and use these utilities at render time to display the themed version of the color.
|
|
53
|
+
*/
|
|
54
|
+
function hexToEditorBackgroundPaletteRawValue(hexColor) {
|
|
42
55
|
// Ts ignore used to allow use of conditional return type
|
|
43
56
|
// (preferencing better type on consumption over safety in implementation)
|
|
44
57
|
// @ts-ignore
|
|
45
58
|
var tokenData = editorBackgroundPalette[hexColor.toUpperCase()];
|
|
46
|
-
return tokenData ? tokenData.
|
|
59
|
+
return tokenData ? tokenData.getValue(hexColor) : undefined;
|
|
47
60
|
}
|
|
48
61
|
// Colors taken from
|
|
49
62
|
// https://hello.atlassian.net/wiki/spaces/DST/pages/1790979421/DSTRFC-002+-+Shifting+Editor+s+color+palette+to+design+tokens
|
|
50
63
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
64
|
+
/**
|
|
65
|
+
* Values are asserted to improve generated type declarations
|
|
66
|
+
* Using object structure as getValue() function needed for table values, and other
|
|
67
|
+
* properties may be needed in the future.
|
|
68
|
+
*/
|
|
55
69
|
var editorBackgroundPalette = (_editorBackgroundPale = {}, (0, _defineProperty2.default)(_editorBackgroundPale, '#DEEBFF', {
|
|
56
|
-
|
|
70
|
+
getValue: function getValue(fallback) {
|
|
71
|
+
return (0, _tokens.getTokenValue)('color.background.accent.blue.subtlest', fallback);
|
|
72
|
+
},
|
|
57
73
|
token: "var(--ds-background-accent-blue-subtlest, #DEEBFF)"
|
|
58
74
|
}), (0, _defineProperty2.default)(_editorBackgroundPale, '#B3D4FF', {
|
|
59
|
-
|
|
75
|
+
getValue: function getValue(fallback) {
|
|
76
|
+
return (0, _tokens.getTokenValue)('color.background.accent.blue.subtler', fallback);
|
|
77
|
+
},
|
|
60
78
|
token: "var(--ds-background-accent-blue-subtler, #B3D4FF)"
|
|
61
79
|
}), (0, _defineProperty2.default)(_editorBackgroundPale, '#4C9AFF', {
|
|
62
|
-
|
|
80
|
+
getValue: function getValue(fallback) {
|
|
81
|
+
return (0, _tokens.getTokenValue)('color.background.accent.blue.subtle', fallback);
|
|
82
|
+
},
|
|
63
83
|
token: "var(--ds-background-accent-blue-subtle, #4C9AFF)"
|
|
64
84
|
}), (0, _defineProperty2.default)(_editorBackgroundPale, '#E6FCFF', {
|
|
65
|
-
|
|
85
|
+
getValue: function getValue(fallback) {
|
|
86
|
+
return (0, _tokens.getTokenValue)('color.background.accent.teal.subtlest', fallback);
|
|
87
|
+
},
|
|
66
88
|
token: "var(--ds-background-accent-teal-subtlest, #E6FCFF)" // source for hex code was legacy token T50,
|
|
67
89
|
}), (0, _defineProperty2.default)(_editorBackgroundPale, '#B3F5FF', {
|
|
68
|
-
|
|
90
|
+
getValue: function getValue(fallback) {
|
|
91
|
+
return (0, _tokens.getTokenValue)('color.background.accent.teal.subtler', fallback);
|
|
92
|
+
},
|
|
69
93
|
token: "var(--ds-background-accent-teal-subtler, #B3F5FF)" // source for hex code was legacy token T75,
|
|
70
94
|
}), (0, _defineProperty2.default)(_editorBackgroundPale, '#79E2F2', {
|
|
71
|
-
|
|
95
|
+
getValue: function getValue(fallback) {
|
|
96
|
+
return (0, _tokens.getTokenValue)('color.background.accent.teal.subtle', fallback);
|
|
97
|
+
},
|
|
72
98
|
token: "var(--ds-background-accent-teal-subtle, #79E2F2)" // source for hex code was legacy token T100,
|
|
73
99
|
}), (0, _defineProperty2.default)(_editorBackgroundPale, '#E3FCEF', {
|
|
74
|
-
|
|
100
|
+
getValue: function getValue(fallback) {
|
|
101
|
+
return (0, _tokens.getTokenValue)('color.background.accent.green.subtlest', fallback);
|
|
102
|
+
},
|
|
75
103
|
token: "var(--ds-background-accent-green-subtlest, #E3FCEF)" // source for hex code was legacy token G50,
|
|
76
104
|
}), (0, _defineProperty2.default)(_editorBackgroundPale, '#ABF5D1', {
|
|
77
|
-
|
|
105
|
+
getValue: function getValue(fallback) {
|
|
106
|
+
return (0, _tokens.getTokenValue)('color.background.accent.green.subtler', fallback);
|
|
107
|
+
},
|
|
78
108
|
token: "var(--ds-background-accent-green-subtler, #ABF5D1)" // source for hex code was legacy token G75,
|
|
79
109
|
}), (0, _defineProperty2.default)(_editorBackgroundPale, '#57D9A3', {
|
|
80
|
-
|
|
110
|
+
getValue: function getValue(fallback) {
|
|
111
|
+
return (0, _tokens.getTokenValue)('color.background.accent.green.subtle', fallback);
|
|
112
|
+
},
|
|
81
113
|
token: "var(--ds-background-accent-green-subtle, #57D9A3)" // source for hex code was legacy token G200,
|
|
82
114
|
}), (0, _defineProperty2.default)(_editorBackgroundPale, '#FFFAE6', {
|
|
83
|
-
|
|
115
|
+
getValue: function getValue(fallback) {
|
|
116
|
+
return (0, _tokens.getTokenValue)('color.background.accent.yellow.subtlest', fallback);
|
|
117
|
+
},
|
|
84
118
|
token: "var(--ds-background-accent-yellow-subtlest, #FFFAE6)" // source for hex code was legacy token Y50,
|
|
85
119
|
}), (0, _defineProperty2.default)(_editorBackgroundPale, '#FFF0B3', {
|
|
86
|
-
|
|
120
|
+
getValue: function getValue(fallback) {
|
|
121
|
+
return (0, _tokens.getTokenValue)('color.background.accent.yellow.subtler', fallback);
|
|
122
|
+
},
|
|
87
123
|
token: "var(--ds-background-accent-yellow-subtler, #FFF0B3)" // source for hex code was legacy token Y75,
|
|
88
124
|
}), (0, _defineProperty2.default)(_editorBackgroundPale, '#FFC400', {
|
|
89
|
-
|
|
125
|
+
getValue: function getValue(fallback) {
|
|
126
|
+
return (0, _tokens.getTokenValue)('color.background.accent.orange.subtle', fallback);
|
|
127
|
+
},
|
|
90
128
|
token: "var(--ds-background-accent-orange-subtle, #FFC400)" // source for hex code was legacy token Y200,
|
|
91
129
|
}), (0, _defineProperty2.default)(_editorBackgroundPale, '#FFEBE6', {
|
|
92
|
-
|
|
130
|
+
getValue: function getValue(fallback) {
|
|
131
|
+
return (0, _tokens.getTokenValue)('color.background.accent.red.subtlest', fallback);
|
|
132
|
+
},
|
|
93
133
|
token: "var(--ds-background-accent-red-subtlest, #FFEBE6)" // source for hex code was legacy token R50,
|
|
94
134
|
}), (0, _defineProperty2.default)(_editorBackgroundPale, '#FFBDAD', {
|
|
95
|
-
|
|
135
|
+
getValue: function getValue(fallback) {
|
|
136
|
+
return (0, _tokens.getTokenValue)('color.background.accent.red.subtler', fallback);
|
|
137
|
+
},
|
|
96
138
|
token: "var(--ds-background-accent-red-subtler, #FFBDAD)" // source for hex code was legacy token R75,
|
|
97
139
|
}), (0, _defineProperty2.default)(_editorBackgroundPale, '#FF8F73', {
|
|
98
|
-
|
|
140
|
+
getValue: function getValue(fallback) {
|
|
141
|
+
return (0, _tokens.getTokenValue)('color.background.accent.red.subtle', fallback);
|
|
142
|
+
},
|
|
99
143
|
token: "var(--ds-background-accent-red-subtle, #FF8F73)" // source for hex code was legacy token R100,
|
|
100
144
|
}), (0, _defineProperty2.default)(_editorBackgroundPale, '#EAE6FF', {
|
|
101
|
-
|
|
145
|
+
getValue: function getValue(fallback) {
|
|
146
|
+
return (0, _tokens.getTokenValue)('color.background.accent.purple.subtlest', fallback);
|
|
147
|
+
},
|
|
102
148
|
token: "var(--ds-background-accent-purple-subtlest, #EAE6FF)" // source for hex code was legacy token P50,
|
|
103
149
|
}), (0, _defineProperty2.default)(_editorBackgroundPale, '#C0B6F2', {
|
|
104
|
-
|
|
150
|
+
getValue: function getValue(fallback) {
|
|
151
|
+
return (0, _tokens.getTokenValue)('color.background.accent.purple.subtler', fallback);
|
|
152
|
+
},
|
|
105
153
|
token: "var(--ds-background-accent-purple-subtler, #C0B6F2)" // source for hex code was legacy token P75,
|
|
106
154
|
}), (0, _defineProperty2.default)(_editorBackgroundPale, '#998DD9', {
|
|
107
|
-
|
|
155
|
+
getValue: function getValue(fallback) {
|
|
156
|
+
return (0, _tokens.getTokenValue)('color.background.accent.purple.subtle', fallback);
|
|
157
|
+
},
|
|
108
158
|
token: "var(--ds-background-accent-purple-subtle, #998DD9)" // source for hex code was legacy token P100,
|
|
109
159
|
}), (0, _defineProperty2.default)(_editorBackgroundPale, '#FFFFFF', {
|
|
110
|
-
|
|
160
|
+
getValue: function getValue(fallback) {
|
|
161
|
+
return (0, _tokens.getTokenValue)('elevation.surface', fallback);
|
|
162
|
+
},
|
|
111
163
|
token: "var(--ds-surface, #FFFFFF)" // source for hex code was legacy token N0,
|
|
112
164
|
}), (0, _defineProperty2.default)(_editorBackgroundPale, '#F4F5F7', {
|
|
113
|
-
|
|
165
|
+
getValue: function getValue(fallback) {
|
|
166
|
+
return (0, _tokens.getTokenValue)('color.background.accent.gray.subtlest', fallback);
|
|
167
|
+
},
|
|
114
168
|
token: "var(--ds-background-accent-gray-subtlest, #F4F5F7)" // source for hex code was legacy token N20,
|
|
115
169
|
}), (0, _defineProperty2.default)(_editorBackgroundPale, '#B3BAC5', {
|
|
116
|
-
|
|
170
|
+
getValue: function getValue(fallback) {
|
|
171
|
+
return (0, _tokens.getTokenValue)('color.background.accent.gray.subtle', fallback);
|
|
172
|
+
},
|
|
117
173
|
token: "var(--ds-background-accent-gray-subtle, #B3BAC5)" // source for hex code was legacy token N60,
|
|
118
174
|
}), _editorBackgroundPale);
|
|
119
|
-
exports.editorBackgroundPalette = editorBackgroundPalette;
|
|
120
|
-
var backgroundPaletteKeys = Object.keys(editorBackgroundPalette);
|
|
121
|
-
var tokenNames = backgroundPaletteKeys.map(function (hexCode) {
|
|
122
|
-
return editorBackgroundPalette[hexCode].tokenName;
|
|
123
|
-
});
|
|
175
|
+
exports.editorBackgroundPalette = editorBackgroundPalette;
|
package/dist/cjs/index.js
CHANGED
|
@@ -9,10 +9,10 @@ Object.defineProperty(exports, "hexToEditorBackgroundPaletteColor", {
|
|
|
9
9
|
return _background.hexToEditorBackgroundPaletteColor;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
Object.defineProperty(exports, "
|
|
12
|
+
Object.defineProperty(exports, "hexToEditorBackgroundPaletteRawValue", {
|
|
13
13
|
enumerable: true,
|
|
14
14
|
get: function get() {
|
|
15
|
-
return _background.
|
|
15
|
+
return _background.hexToEditorBackgroundPaletteRawValue;
|
|
16
16
|
}
|
|
17
17
|
});
|
|
18
18
|
Object.defineProperty(exports, "hexToEditorBorderPaletteColor", {
|
|
@@ -27,10 +27,10 @@ Object.defineProperty(exports, "hexToEditorTableChartsPaletteColor", {
|
|
|
27
27
|
return _tableCharts.hexToEditorTableChartsPaletteColor;
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
|
-
Object.defineProperty(exports, "
|
|
30
|
+
Object.defineProperty(exports, "hexToEditorTableChartsPaletteRawValue", {
|
|
31
31
|
enumerable: true,
|
|
32
32
|
get: function get() {
|
|
33
|
-
return _tableCharts.
|
|
33
|
+
return _tableCharts.hexToEditorTableChartsPaletteRawValue;
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "hexToEditorTextPaletteColor", {
|
package/dist/cjs/table-charts.js
CHANGED
|
@@ -5,12 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.hexToEditorTableChartsPaletteColor = hexToEditorTableChartsPaletteColor;
|
|
8
|
-
exports.
|
|
8
|
+
exports.hexToEditorTableChartsPaletteRawValue = hexToEditorTableChartsPaletteRawValue;
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
|
-
var
|
|
11
|
-
// This import will be stripped on build
|
|
10
|
+
var _tokens = require("@atlaskit/tokens");
|
|
11
|
+
var _editorTableChartsPal; // This import will be stripped on build
|
|
12
12
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
13
|
-
|
|
14
13
|
/**
|
|
15
14
|
* This takes an adf hex color and returns a matching chart palette
|
|
16
15
|
* color.
|
|
@@ -37,12 +36,26 @@ function hexToEditorTableChartsPaletteColor(hexColor) {
|
|
|
37
36
|
var tokenData = editorTableChartsPalette[hexColor.toUpperCase()];
|
|
38
37
|
return tokenData ? tokenData.token : undefined;
|
|
39
38
|
}
|
|
40
|
-
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Takes an ADF hex color and returns the rendered hex code for the associated chart palette design token using getTokenValue.
|
|
42
|
+
* If the provided color does not exist in the Editor color palette, this function returns undefined.
|
|
43
|
+
*
|
|
44
|
+
* This should only be used when rendering content where CSS variables are not feasible, such as a non-CSS environment
|
|
45
|
+
* or to enable cross-app copy/paste.
|
|
46
|
+
*
|
|
47
|
+
* WARNING: If the rendered theme changes (such as from light -> dark mode) the value returned here will no longer match
|
|
48
|
+
* the surrounding UI and will need to be re-fetched.
|
|
49
|
+
* In addition, the values of tokens will differ between themes and the value for a given theme can and will change.
|
|
50
|
+
* - **DO NOT**: store the output of these functions in any user-generated content or back-end.
|
|
51
|
+
* - **DO**: store the ADF hex color, and use these utilities at render time to display the themed version of the color.
|
|
52
|
+
*/
|
|
53
|
+
function hexToEditorTableChartsPaletteRawValue(hexColor) {
|
|
41
54
|
// Ts ignore used to allow use of conditional return type
|
|
42
55
|
// (preferencing better type on consumption over safety in implementation)
|
|
43
56
|
// @ts-ignore
|
|
44
57
|
var tokenData = editorTableChartsPalette[hexColor.toUpperCase()];
|
|
45
|
-
return tokenData ? tokenData.
|
|
58
|
+
return tokenData ? tokenData.getValue(hexColor) : undefined;
|
|
46
59
|
}
|
|
47
60
|
// Colors taken from
|
|
48
61
|
// https://hello.atlassian.net/wiki/spaces/DST/pages/1790979421/DSTRFC-002+-+Shifting+Editor+s+color+palette+to+design+tokens
|
|
@@ -58,115 +71,183 @@ function hexToEditorTableChartsPaletteColorTokenName(hexColor) {
|
|
|
58
71
|
* https://product-fabric.atlassian.net/browse/ED-17042
|
|
59
72
|
*/
|
|
60
73
|
var editorTableChartsPalette = (_editorTableChartsPal = {}, (0, _defineProperty2.default)(_editorTableChartsPal, '#7AB2FF', {
|
|
61
|
-
|
|
74
|
+
getValue: function getValue(fallback) {
|
|
75
|
+
return (0, _tokens.getTokenValue)('color.background.accent.blue.subtle', fallback);
|
|
76
|
+
},
|
|
62
77
|
token: "var(--ds-background-accent-blue-subtle, #7AB2FF)"
|
|
63
78
|
}), (0, _defineProperty2.default)(_editorTableChartsPal, '#60C6D2', {
|
|
64
|
-
|
|
79
|
+
getValue: function getValue(fallback) {
|
|
80
|
+
return (0, _tokens.getTokenValue)('color.background.accent.teal.subtle', fallback);
|
|
81
|
+
},
|
|
65
82
|
token: "var(--ds-background-accent-teal-subtle, #60C6D2)"
|
|
66
83
|
}), (0, _defineProperty2.default)(_editorTableChartsPal, '#6BE1B0', {
|
|
67
|
-
|
|
84
|
+
getValue: function getValue(fallback) {
|
|
85
|
+
return (0, _tokens.getTokenValue)('color.background.accent.green.subtle', fallback);
|
|
86
|
+
},
|
|
68
87
|
token: "var(--ds-background-accent-green-subtle, #6BE1B0)"
|
|
69
88
|
}), (0, _defineProperty2.default)(_editorTableChartsPal, '#FFDB57', {
|
|
70
|
-
|
|
89
|
+
getValue: function getValue(fallback) {
|
|
90
|
+
return (0, _tokens.getTokenValue)('color.background.accent.yellow.subtle', fallback);
|
|
91
|
+
},
|
|
71
92
|
token: "var(--ds-background-accent-yellow-subtle, #FFDB57)"
|
|
72
93
|
}), (0, _defineProperty2.default)(_editorTableChartsPal, '#FAA53D', {
|
|
73
|
-
|
|
94
|
+
getValue: function getValue(fallback) {
|
|
95
|
+
return (0, _tokens.getTokenValue)('color.background.accent.orange.subtle', fallback);
|
|
96
|
+
},
|
|
74
97
|
token: "var(--ds-background-accent-orange-subtle, #FAA53D)"
|
|
75
98
|
}), (0, _defineProperty2.default)(_editorTableChartsPal, '#FF8F73', {
|
|
76
|
-
|
|
99
|
+
getValue: function getValue(fallback) {
|
|
100
|
+
return (0, _tokens.getTokenValue)('color.background.accent.red.subtle', fallback);
|
|
101
|
+
},
|
|
77
102
|
token: "var(--ds-background-accent-red-subtle, #FF8F73)"
|
|
78
103
|
}), (0, _defineProperty2.default)(_editorTableChartsPal, '#E774BB', {
|
|
79
|
-
|
|
104
|
+
getValue: function getValue(fallback) {
|
|
105
|
+
return (0, _tokens.getTokenValue)('color.background.accent.magenta.subtle', fallback);
|
|
106
|
+
},
|
|
80
107
|
token: "var(--ds-background-accent-magenta-subtle, #E774BB)"
|
|
81
108
|
}), (0, _defineProperty2.default)(_editorTableChartsPal, '#B5A7FB', {
|
|
82
|
-
|
|
109
|
+
getValue: function getValue(fallback) {
|
|
110
|
+
return (0, _tokens.getTokenValue)('color.background.accent.purple.subtle', fallback);
|
|
111
|
+
},
|
|
83
112
|
token: "var(--ds-background-accent-purple-subtle, #B5A7FB)"
|
|
84
113
|
}), (0, _defineProperty2.default)(_editorTableChartsPal, '#8993A5', {
|
|
85
|
-
|
|
114
|
+
getValue: function getValue(fallback) {
|
|
115
|
+
return (0, _tokens.getTokenValue)('color.background.accent.gray.subtler', fallback);
|
|
116
|
+
},
|
|
86
117
|
token: "var(--ds-background-accent-gray-subtler, #8993A5)"
|
|
87
118
|
}), (0, _defineProperty2.default)(_editorTableChartsPal, '#247FFF', {
|
|
88
|
-
|
|
119
|
+
getValue: function getValue(fallback) {
|
|
120
|
+
return (0, _tokens.getTokenValue)('color.chart.blue.bold', fallback);
|
|
121
|
+
},
|
|
89
122
|
token: "var(--ds-chart-blue-bold, #247FFF)"
|
|
90
123
|
}), (0, _defineProperty2.default)(_editorTableChartsPal, '#1D9AAA', {
|
|
91
|
-
|
|
124
|
+
getValue: function getValue(fallback) {
|
|
125
|
+
return (0, _tokens.getTokenValue)('color.chart.teal.bold', fallback);
|
|
126
|
+
},
|
|
92
127
|
token: "var(--ds-chart-teal-bold, #1D9AAA)"
|
|
93
128
|
}), (0, _defineProperty2.default)(_editorTableChartsPal, '#23A971', {
|
|
94
|
-
|
|
129
|
+
getValue: function getValue(fallback) {
|
|
130
|
+
return (0, _tokens.getTokenValue)('color.chart.green.bold', fallback);
|
|
131
|
+
},
|
|
95
132
|
token: "var(--ds-chart-green-bold, #23A971)"
|
|
96
133
|
}), (0, _defineProperty2.default)(_editorTableChartsPal, '#FFBE33', {
|
|
97
|
-
|
|
134
|
+
getValue: function getValue(fallback) {
|
|
135
|
+
return (0, _tokens.getTokenValue)('color.chart.yellow.bold', fallback);
|
|
136
|
+
},
|
|
98
137
|
token: "var(--ds-chart-yellow-bold, #FFBE33)"
|
|
99
138
|
}), (0, _defineProperty2.default)(_editorTableChartsPal, '#D97008', {
|
|
100
|
-
|
|
139
|
+
getValue: function getValue(fallback) {
|
|
140
|
+
return (0, _tokens.getTokenValue)('color.chart.orange.bold', fallback);
|
|
141
|
+
},
|
|
101
142
|
token: "var(--ds-chart-orange-bold, #D97008)"
|
|
102
143
|
}), (0, _defineProperty2.default)(_editorTableChartsPal, '#FC552C', {
|
|
103
|
-
|
|
144
|
+
getValue: function getValue(fallback) {
|
|
145
|
+
return (0, _tokens.getTokenValue)('color.chart.red.bold', fallback);
|
|
146
|
+
},
|
|
104
147
|
token: "var(--ds-chart-red-bold, #FC552C)"
|
|
105
148
|
}), (0, _defineProperty2.default)(_editorTableChartsPal, '#DA62AC', {
|
|
106
|
-
|
|
149
|
+
getValue: function getValue(fallback) {
|
|
150
|
+
return (0, _tokens.getTokenValue)('color.chart.magenta.bold', fallback);
|
|
151
|
+
},
|
|
107
152
|
token: "var(--ds-chart-magenta-bold, #DA62AC)"
|
|
108
153
|
}), (0, _defineProperty2.default)(_editorTableChartsPal, '#8B77EE', {
|
|
109
|
-
|
|
154
|
+
getValue: function getValue(fallback) {
|
|
155
|
+
return (0, _tokens.getTokenValue)('color.chart.purple.bold', fallback);
|
|
156
|
+
},
|
|
110
157
|
token: "var(--ds-chart-purple-bold, #8B77EE)"
|
|
111
158
|
}), (0, _defineProperty2.default)(_editorTableChartsPal, '#8590A2', {
|
|
112
|
-
|
|
159
|
+
getValue: function getValue(fallback) {
|
|
160
|
+
return (0, _tokens.getTokenValue)('color.chart.gray.bold', fallback);
|
|
161
|
+
},
|
|
113
162
|
token: "var(--ds-chart-gray-bold, #8590A2)"
|
|
114
163
|
}), (0, _defineProperty2.default)(_editorTableChartsPal, '#0055CC', {
|
|
115
|
-
|
|
164
|
+
getValue: function getValue(fallback) {
|
|
165
|
+
return (0, _tokens.getTokenValue)('color.chart.blue.bolder', fallback);
|
|
166
|
+
},
|
|
116
167
|
token: "var(--ds-chart-blue-bolder, #0055CC)"
|
|
117
168
|
}), (0, _defineProperty2.default)(_editorTableChartsPal, '#1D7F8C', {
|
|
118
|
-
|
|
169
|
+
getValue: function getValue(fallback) {
|
|
170
|
+
return (0, _tokens.getTokenValue)('color.chart.teal.bolder', fallback);
|
|
171
|
+
},
|
|
119
172
|
token: "var(--ds-chart-teal-bolder, #1D7F8C)"
|
|
120
173
|
}), (0, _defineProperty2.default)(_editorTableChartsPal, '#177D52', {
|
|
121
|
-
|
|
174
|
+
getValue: function getValue(fallback) {
|
|
175
|
+
return (0, _tokens.getTokenValue)('color.chart.green.bolder', fallback);
|
|
176
|
+
},
|
|
122
177
|
token: "var(--ds-chart-green-bolder, #177D52)"
|
|
123
178
|
}), (0, _defineProperty2.default)(_editorTableChartsPal, '#FF9D00', {
|
|
124
|
-
|
|
179
|
+
getValue: function getValue(fallback) {
|
|
180
|
+
return (0, _tokens.getTokenValue)('color.chart.yellow.bolder', fallback);
|
|
181
|
+
},
|
|
125
182
|
token: "var(--ds-chart-yellow-bolder, #FF9D00)"
|
|
126
183
|
}), (0, _defineProperty2.default)(_editorTableChartsPal, '#B65C02', {
|
|
127
|
-
|
|
184
|
+
getValue: function getValue(fallback) {
|
|
185
|
+
return (0, _tokens.getTokenValue)('color.chart.orange.bolder', fallback);
|
|
186
|
+
},
|
|
128
187
|
token: "var(--ds-chart-orange-bolder, #B65C02)"
|
|
129
188
|
}), (0, _defineProperty2.default)(_editorTableChartsPal, '#D32D03', {
|
|
130
|
-
|
|
189
|
+
getValue: function getValue(fallback) {
|
|
190
|
+
return (0, _tokens.getTokenValue)('color.chart.red.bolder', fallback);
|
|
191
|
+
},
|
|
131
192
|
token: "var(--ds-chart-red-bolder, #D32D03)"
|
|
132
193
|
}), (0, _defineProperty2.default)(_editorTableChartsPal, '#CD519D', {
|
|
133
|
-
|
|
194
|
+
getValue: function getValue(fallback) {
|
|
195
|
+
return (0, _tokens.getTokenValue)('color.chart.magenta.bolder', fallback);
|
|
196
|
+
},
|
|
134
197
|
token: "var(--ds-chart-magenta-bolder, #CD519D)"
|
|
135
198
|
}), (0, _defineProperty2.default)(_editorTableChartsPal, '#5A43D0', {
|
|
136
|
-
|
|
199
|
+
getValue: function getValue(fallback) {
|
|
200
|
+
return (0, _tokens.getTokenValue)('color.chart.purple.bolder', fallback);
|
|
201
|
+
},
|
|
137
202
|
token: "var(--ds-chart-purple-bolder, #5A43D0)"
|
|
138
203
|
}), (0, _defineProperty2.default)(_editorTableChartsPal, '#758195', {
|
|
139
|
-
|
|
204
|
+
getValue: function getValue(fallback) {
|
|
205
|
+
return (0, _tokens.getTokenValue)('color.chart.gray.bolder', fallback);
|
|
206
|
+
},
|
|
140
207
|
token: "var(--ds-chart-gray-bolder, #758195)"
|
|
141
208
|
}), (0, _defineProperty2.default)(_editorTableChartsPal, '#003884', {
|
|
142
|
-
|
|
209
|
+
getValue: function getValue(fallback) {
|
|
210
|
+
return (0, _tokens.getTokenValue)('color.chart.blue.boldest', fallback);
|
|
211
|
+
},
|
|
143
212
|
token: "var(--ds-chart-blue-boldest, #003884)"
|
|
144
213
|
}), (0, _defineProperty2.default)(_editorTableChartsPal, '#206B74', {
|
|
145
|
-
|
|
214
|
+
getValue: function getValue(fallback) {
|
|
215
|
+
return (0, _tokens.getTokenValue)('color.chart.teal.boldest', fallback);
|
|
216
|
+
},
|
|
146
217
|
token: "var(--ds-chart-teal-boldest, #206B74)"
|
|
147
218
|
}), (0, _defineProperty2.default)(_editorTableChartsPal, '#055C3F', {
|
|
148
|
-
|
|
219
|
+
getValue: function getValue(fallback) {
|
|
220
|
+
return (0, _tokens.getTokenValue)('color.chart.green.boldest', fallback);
|
|
221
|
+
},
|
|
149
222
|
token: "var(--ds-chart-green-boldest, #055C3F)"
|
|
150
223
|
}), (0, _defineProperty2.default)(_editorTableChartsPal, '#946104', {
|
|
151
|
-
|
|
224
|
+
getValue: function getValue(fallback) {
|
|
225
|
+
return (0, _tokens.getTokenValue)('color.chart.yellow.boldest', fallback);
|
|
226
|
+
},
|
|
152
227
|
token: "var(--ds-chart-yellow-boldest, #946104)"
|
|
153
228
|
}), (0, _defineProperty2.default)(_editorTableChartsPal, '#974F0C', {
|
|
154
|
-
|
|
229
|
+
getValue: function getValue(fallback) {
|
|
230
|
+
return (0, _tokens.getTokenValue)('color.chart.orange.boldest', fallback);
|
|
231
|
+
},
|
|
155
232
|
token: "var(--ds-chart-orange-boldest, #974F0C)"
|
|
156
233
|
}), (0, _defineProperty2.default)(_editorTableChartsPal, '#A32000', {
|
|
157
|
-
|
|
234
|
+
getValue: function getValue(fallback) {
|
|
235
|
+
return (0, _tokens.getTokenValue)('color.chart.red.boldest', fallback);
|
|
236
|
+
},
|
|
158
237
|
token: "var(--ds-chart-red-boldest, #A32000)"
|
|
159
238
|
}), (0, _defineProperty2.default)(_editorTableChartsPal, '#943D73', {
|
|
160
|
-
|
|
239
|
+
getValue: function getValue(fallback) {
|
|
240
|
+
return (0, _tokens.getTokenValue)('color.chart.magenta.boldest', fallback);
|
|
241
|
+
},
|
|
161
242
|
token: "var(--ds-chart-magenta-boldest, #943D73)"
|
|
162
243
|
}), (0, _defineProperty2.default)(_editorTableChartsPal, '#44368B', {
|
|
163
|
-
|
|
244
|
+
getValue: function getValue(fallback) {
|
|
245
|
+
return (0, _tokens.getTokenValue)('color.chart.purple.boldest', fallback);
|
|
246
|
+
},
|
|
164
247
|
token: "var(--ds-chart-purple-boldest, #44368B)"
|
|
165
248
|
}), (0, _defineProperty2.default)(_editorTableChartsPal, '#44546F', {
|
|
166
|
-
|
|
249
|
+
getValue: function getValue(fallback) {
|
|
250
|
+
return (0, _tokens.getTokenValue)('color.chart.gray.boldest', fallback);
|
|
251
|
+
},
|
|
167
252
|
token: "var(--ds-chart-gray-boldest, #44546F)"
|
|
168
|
-
}), _editorTableChartsPal);
|
|
169
|
-
var tableChartsPaletteKeys = Object.keys(editorTableChartsPalette);
|
|
170
|
-
var tokenNames = tableChartsPaletteKeys.map(function (hexCode) {
|
|
171
|
-
return editorTableChartsPalette[hexCode].tokenName;
|
|
172
|
-
});
|
|
253
|
+
}), _editorTableChartsPal);
|
package/dist/cjs/version.json
CHANGED