@atlaskit/editor-palette 1.4.3 → 1.5.0

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