@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/report.api.md CHANGED
@@ -18,90 +18,90 @@
18
18
  // @public (undocumented)
19
19
  type EditorBackgroundPalette = typeof editorBackgroundPalette;
20
20
 
21
- // @public (undocumented)
21
+ // @public
22
22
  const editorBackgroundPalette: {
23
23
  '#DEEBFF': {
24
- tokenName: 'color.background.accent.blue.subtlest';
24
+ getValue: (fallback: string) => string;
25
25
  token: 'var(--ds-background-accent-blue-subtlest, #DEEBFF)';
26
26
  };
27
27
  '#B3D4FF': {
28
- tokenName: 'color.background.accent.blue.subtler';
28
+ getValue: (fallback: string) => string;
29
29
  token: 'var(--ds-background-accent-blue-subtler, #B3D4FF)';
30
30
  };
31
31
  '#4C9AFF': {
32
- tokenName: 'color.background.accent.blue.subtle';
32
+ getValue: (fallback: string) => string;
33
33
  token: 'var(--ds-background-accent-blue-subtle, #4C9AFF)';
34
34
  };
35
35
  '#E6FCFF': {
36
- tokenName: 'color.background.accent.teal.subtlest';
36
+ getValue: (fallback: string) => string;
37
37
  token: 'var(--ds-background-accent-teal-subtlest, #E6FCFF)';
38
38
  };
39
39
  '#B3F5FF': {
40
- tokenName: 'color.background.accent.teal.subtler';
40
+ getValue: (fallback: string) => string;
41
41
  token: 'var(--ds-background-accent-teal-subtler, #B3F5FF)';
42
42
  };
43
43
  '#79E2F2': {
44
- tokenName: 'color.background.accent.teal.subtle';
44
+ getValue: (fallback: string) => string;
45
45
  token: 'var(--ds-background-accent-teal-subtle, #79E2F2)';
46
46
  };
47
47
  '#E3FCEF': {
48
- tokenName: 'color.background.accent.green.subtlest';
48
+ getValue: (fallback: string) => string;
49
49
  token: 'var(--ds-background-accent-green-subtlest, #E3FCEF)';
50
50
  };
51
51
  '#ABF5D1': {
52
- tokenName: 'color.background.accent.green.subtler';
52
+ getValue: (fallback: string) => string;
53
53
  token: 'var(--ds-background-accent-green-subtler, #ABF5D1)';
54
54
  };
55
55
  '#57D9A3': {
56
- tokenName: 'color.background.accent.green.subtle';
56
+ getValue: (fallback: string) => string;
57
57
  token: 'var(--ds-background-accent-green-subtle, #57D9A3)';
58
58
  };
59
59
  '#FFFAE6': {
60
- tokenName: 'color.background.accent.yellow.subtlest';
60
+ getValue: (fallback: string) => string;
61
61
  token: 'var(--ds-background-accent-yellow-subtlest, #FFFAE6)';
62
62
  };
63
63
  '#FFF0B3': {
64
- tokenName: 'color.background.accent.yellow.subtler';
64
+ getValue: (fallback: string) => string;
65
65
  token: 'var(--ds-background-accent-yellow-subtler, #FFF0B3)';
66
66
  };
67
67
  '#FFC400': {
68
- tokenName: 'color.background.accent.orange.subtle';
68
+ getValue: (fallback: string) => string;
69
69
  token: 'var(--ds-background-accent-orange-subtle, #FFC400)';
70
70
  };
71
71
  '#FFEBE6': {
72
- tokenName: 'color.background.accent.red.subtlest';
72
+ getValue: (fallback: string) => string;
73
73
  token: 'var(--ds-background-accent-red-subtlest, #FFEBE6)';
74
74
  };
75
75
  '#FFBDAD': {
76
- tokenName: 'color.background.accent.red.subtler';
76
+ getValue: (fallback: string) => string;
77
77
  token: 'var(--ds-background-accent-red-subtler, #FFBDAD)';
78
78
  };
79
79
  '#FF8F73': {
80
- tokenName: 'color.background.accent.red.subtle';
80
+ getValue: (fallback: string) => string;
81
81
  token: 'var(--ds-background-accent-red-subtle, #FF8F73)';
82
82
  };
83
83
  '#EAE6FF': {
84
- tokenName: 'color.background.accent.purple.subtlest';
84
+ getValue: (fallback: string) => string;
85
85
  token: 'var(--ds-background-accent-purple-subtlest, #EAE6FF)';
86
86
  };
87
87
  '#C0B6F2': {
88
- tokenName: 'color.background.accent.purple.subtler';
88
+ getValue: (fallback: string) => string;
89
89
  token: 'var(--ds-background-accent-purple-subtler, #C0B6F2)';
90
90
  };
91
91
  '#998DD9': {
92
- tokenName: 'color.background.accent.purple.subtle';
92
+ getValue: (fallback: string) => string;
93
93
  token: 'var(--ds-background-accent-purple-subtle, #998DD9)';
94
94
  };
95
95
  '#FFFFFF': {
96
- tokenName: 'elevation.surface';
96
+ getValue: (fallback: string) => string;
97
97
  token: 'var(--ds-surface, #FFFFFF)';
98
98
  };
99
99
  '#F4F5F7': {
100
- tokenName: 'color.background.accent.gray.subtlest';
100
+ getValue: (fallback: string) => string;
101
101
  token: 'var(--ds-background-accent-gray-subtlest, #F4F5F7)';
102
102
  };
103
103
  '#B3BAC5': {
104
- tokenName: 'color.background.accent.gray.subtle';
104
+ getValue: (fallback: string) => string;
105
105
  token: 'var(--ds-background-accent-gray-subtle, #B3BAC5)';
106
106
  };
107
107
  };
@@ -109,12 +109,6 @@ const editorBackgroundPalette: {
109
109
  // @public (undocumented)
110
110
  type EditorBackgroundPaletteKey = keyof EditorBackgroundPalette;
111
111
 
112
- // @public (undocumented)
113
- type EditorBackgroundPaletteTokenNames = (typeof tokenNames)[number];
114
-
115
- // @public (undocumented)
116
- type EditorBackgroundPaletteTokenNames_2 = (typeof tokenNames_2)[number];
117
-
118
112
  // @public (undocumented)
119
113
  type EditorBorderPalette = typeof editorBorderPalette;
120
114
 
@@ -134,147 +128,147 @@ type EditorTableChartsPalette = typeof editorTableChartsPalette;
134
128
  // @public
135
129
  const editorTableChartsPalette: {
136
130
  '#7AB2FF': {
137
- tokenName: 'color.background.accent.blue.subtle';
131
+ getValue: (fallback: string) => string;
138
132
  token: 'var(--ds-background-accent-blue-subtle, #7AB2FF)';
139
133
  };
140
134
  '#60C6D2': {
141
- tokenName: 'color.background.accent.teal.subtle';
135
+ getValue: (fallback: string) => string;
142
136
  token: 'var(--ds-background-accent-teal-subtle, #60C6D2)';
143
137
  };
144
138
  '#6BE1B0': {
145
- tokenName: 'color.background.accent.green.subtle';
139
+ getValue: (fallback: string) => string;
146
140
  token: 'var(--ds-background-accent-green-subtle, #6BE1B0)';
147
141
  };
148
142
  '#FFDB57': {
149
- tokenName: 'color.background.accent.yellow.subtle';
143
+ getValue: (fallback: string) => string;
150
144
  token: 'var(--ds-background-accent-yellow-subtle, #FFDB57)';
151
145
  };
152
146
  '#FAA53D': {
153
- tokenName: 'color.background.accent.orange.subtle';
147
+ getValue: (fallback: string) => string;
154
148
  token: 'var(--ds-background-accent-orange-subtle, #FAA53D)';
155
149
  };
156
150
  '#FF8F73': {
157
- tokenName: 'color.background.accent.red.subtle';
151
+ getValue: (fallback: string) => string;
158
152
  token: 'var(--ds-background-accent-red-subtle, #FF8F73)';
159
153
  };
160
154
  '#E774BB': {
161
- tokenName: 'color.background.accent.magenta.subtle';
155
+ getValue: (fallback: string) => string;
162
156
  token: 'var(--ds-background-accent-magenta-subtle, #E774BB)';
163
157
  };
164
158
  '#B5A7FB': {
165
- tokenName: 'color.background.accent.purple.subtle';
159
+ getValue: (fallback: string) => string;
166
160
  token: 'var(--ds-background-accent-purple-subtle, #B5A7FB)';
167
161
  };
168
162
  '#8993A5': {
169
- tokenName: 'color.background.accent.gray.subtler';
163
+ getValue: (fallback: string) => string;
170
164
  token: 'var(--ds-background-accent-gray-subtler, #8993A5)';
171
165
  };
172
166
  '#247FFF': {
173
- tokenName: 'color.chart.blue.bold';
167
+ getValue: (fallback: string) => string;
174
168
  token: 'var(--ds-chart-blue-bold, #247FFF)';
175
169
  };
176
170
  '#1D9AAA': {
177
- tokenName: 'color.chart.teal.bold';
171
+ getValue: (fallback: string) => string;
178
172
  token: 'var(--ds-chart-teal-bold, #1D9AAA)';
179
173
  };
180
174
  '#23A971': {
181
- tokenName: 'color.chart.green.bold';
175
+ getValue: (fallback: string) => string;
182
176
  token: 'var(--ds-chart-green-bold, #23A971)';
183
177
  };
184
178
  '#FFBE33': {
185
- tokenName: 'color.chart.yellow.bold';
179
+ getValue: (fallback: string) => string;
186
180
  token: 'var(--ds-chart-yellow-bold, #FFBE33)';
187
181
  };
188
182
  '#D97008': {
189
- tokenName: 'color.chart.orange.bold';
183
+ getValue: (fallback: string) => string;
190
184
  token: 'var(--ds-chart-orange-bold, #D97008)';
191
185
  };
192
186
  '#FC552C': {
193
- tokenName: 'color.chart.red.bold';
187
+ getValue: (fallback: string) => string;
194
188
  token: 'var(--ds-chart-red-bold, #FC552C)';
195
189
  };
196
190
  '#DA62AC': {
197
- tokenName: 'color.chart.magenta.bold';
191
+ getValue: (fallback: string) => string;
198
192
  token: 'var(--ds-chart-magenta-bold, #DA62AC)';
199
193
  };
200
194
  '#8B77EE': {
201
- tokenName: 'color.chart.purple.bold';
195
+ getValue: (fallback: string) => string;
202
196
  token: 'var(--ds-chart-purple-bold, #8B77EE)';
203
197
  };
204
198
  '#8590A2': {
205
- tokenName: 'color.chart.gray.bold';
199
+ getValue: (fallback: string) => string;
206
200
  token: 'var(--ds-chart-gray-bold, #8590A2)';
207
201
  };
208
202
  '#0055CC': {
209
- tokenName: 'color.chart.blue.bolder';
203
+ getValue: (fallback: string) => string;
210
204
  token: 'var(--ds-chart-blue-bolder, #0055CC)';
211
205
  };
212
206
  '#1D7F8C': {
213
- tokenName: 'color.chart.teal.bolder';
207
+ getValue: (fallback: string) => string;
214
208
  token: 'var(--ds-chart-teal-bolder, #1D7F8C)';
215
209
  };
216
210
  '#177D52': {
217
- tokenName: 'color.chart.green.bolder';
211
+ getValue: (fallback: string) => string;
218
212
  token: 'var(--ds-chart-green-bolder, #177D52)';
219
213
  };
220
214
  '#FF9D00': {
221
- tokenName: 'color.chart.yellow.bolder';
215
+ getValue: (fallback: string) => string;
222
216
  token: 'var(--ds-chart-yellow-bolder, #FF9D00)';
223
217
  };
224
218
  '#B65C02': {
225
- tokenName: 'color.chart.orange.bolder';
219
+ getValue: (fallback: string) => string;
226
220
  token: 'var(--ds-chart-orange-bolder, #B65C02)';
227
221
  };
228
222
  '#D32D03': {
229
- tokenName: 'color.chart.red.bolder';
223
+ getValue: (fallback: string) => string;
230
224
  token: 'var(--ds-chart-red-bolder, #D32D03)';
231
225
  };
232
226
  '#CD519D': {
233
- tokenName: 'color.chart.magenta.bolder';
227
+ getValue: (fallback: string) => string;
234
228
  token: 'var(--ds-chart-magenta-bolder, #CD519D)';
235
229
  };
236
230
  '#5A43D0': {
237
- tokenName: 'color.chart.purple.bolder';
231
+ getValue: (fallback: string) => string;
238
232
  token: 'var(--ds-chart-purple-bolder, #5A43D0)';
239
233
  };
240
234
  '#758195': {
241
- tokenName: 'color.chart.gray.bolder';
235
+ getValue: (fallback: string) => string;
242
236
  token: 'var(--ds-chart-gray-bolder, #758195)';
243
237
  };
244
238
  '#003884': {
245
- tokenName: 'color.chart.blue.boldest';
239
+ getValue: (fallback: string) => string;
246
240
  token: 'var(--ds-chart-blue-boldest, #003884)';
247
241
  };
248
242
  '#206B74': {
249
- tokenName: 'color.chart.teal.boldest';
243
+ getValue: (fallback: string) => string;
250
244
  token: 'var(--ds-chart-teal-boldest, #206B74)';
251
245
  };
252
246
  '#055C3F': {
253
- tokenName: 'color.chart.green.boldest';
247
+ getValue: (fallback: string) => string;
254
248
  token: 'var(--ds-chart-green-boldest, #055C3F)';
255
249
  };
256
250
  '#946104': {
257
- tokenName: 'color.chart.yellow.boldest';
251
+ getValue: (fallback: string) => string;
258
252
  token: 'var(--ds-chart-yellow-boldest, #946104)';
259
253
  };
260
254
  '#974F0C': {
261
- tokenName: 'color.chart.orange.boldest';
255
+ getValue: (fallback: string) => string;
262
256
  token: 'var(--ds-chart-orange-boldest, #974F0C)';
263
257
  };
264
258
  '#A32000': {
265
- tokenName: 'color.chart.red.boldest';
259
+ getValue: (fallback: string) => string;
266
260
  token: 'var(--ds-chart-red-boldest, #A32000)';
267
261
  };
268
262
  '#943D73': {
269
- tokenName: 'color.chart.magenta.boldest';
263
+ getValue: (fallback: string) => string;
270
264
  token: 'var(--ds-chart-magenta-boldest, #943D73)';
271
265
  };
272
266
  '#44368B': {
273
- tokenName: 'color.chart.purple.boldest';
267
+ getValue: (fallback: string) => string;
274
268
  token: 'var(--ds-chart-purple-boldest, #44368B)';
275
269
  };
276
270
  '#44546F': {
277
- tokenName: 'color.chart.gray.boldest';
271
+ getValue: (fallback: string) => string;
278
272
  token: 'var(--ds-chart-gray-boldest, #44546F)';
279
273
  };
280
274
  };
@@ -320,14 +314,10 @@ export function hexToEditorBackgroundPaletteColor<HexColor extends string>(
320
314
  ? EditorBackgroundPalette[HexColor]['token']
321
315
  : string | undefined;
322
316
 
323
- // @public (undocumented)
324
- export function hexToEditorBackgroundPaletteColorTokenName<
325
- HexColor extends string,
326
- >(
317
+ // @public
318
+ export function hexToEditorBackgroundPaletteRawValue<HexColor extends string>(
327
319
  hexColor: HexColor,
328
- ): HexColor extends EditorBackgroundPaletteKey
329
- ? EditorBackgroundPalette[HexColor]['tokenName']
330
- : EditorBackgroundPaletteTokenNames | undefined;
320
+ ): HexColor extends EditorBackgroundPaletteKey ? string : undefined;
331
321
 
332
322
  // @public
333
323
  export function hexToEditorBorderPaletteColor<HexColor extends string>(
@@ -343,14 +333,10 @@ export function hexToEditorTableChartsPaletteColor<HexColor extends string>(
343
333
  ? EditorTableChartsPalette[HexColor]['token']
344
334
  : string | undefined;
345
335
 
346
- // @public (undocumented)
347
- export function hexToEditorTableChartsPaletteColorTokenName<
348
- HexColor extends string,
349
- >(
336
+ // @public
337
+ export function hexToEditorTableChartsPaletteRawValue<HexColor extends string>(
350
338
  hexColor: HexColor,
351
- ): HexColor extends EditorTableChartsPaletteKey
352
- ? EditorTableChartsPalette[HexColor]['tokenName']
353
- : EditorBackgroundPaletteTokenNames_2 | undefined;
339
+ ): HexColor extends EditorTableChartsPaletteKey ? string : undefined;
354
340
 
355
341
  // @public
356
342
  export function hexToEditorTextPaletteColor<HexColor extends string>(
@@ -359,71 +345,6 @@ export function hexToEditorTextPaletteColor<HexColor extends string>(
359
345
  ? EditorTextPalette[HexColor]
360
346
  : string | undefined;
361
347
 
362
- // @public (undocumented)
363
- const tokenNames: (
364
- | 'color.background.accent.blue.subtle'
365
- | 'color.background.accent.blue.subtler'
366
- | 'color.background.accent.blue.subtlest'
367
- | 'color.background.accent.gray.subtle'
368
- | 'color.background.accent.gray.subtlest'
369
- | 'color.background.accent.green.subtle'
370
- | 'color.background.accent.green.subtler'
371
- | 'color.background.accent.green.subtlest'
372
- | 'color.background.accent.orange.subtle'
373
- | 'color.background.accent.purple.subtle'
374
- | 'color.background.accent.purple.subtler'
375
- | 'color.background.accent.purple.subtlest'
376
- | 'color.background.accent.red.subtle'
377
- | 'color.background.accent.red.subtler'
378
- | 'color.background.accent.red.subtlest'
379
- | 'color.background.accent.teal.subtle'
380
- | 'color.background.accent.teal.subtler'
381
- | 'color.background.accent.teal.subtlest'
382
- | 'color.background.accent.yellow.subtler'
383
- | 'color.background.accent.yellow.subtlest'
384
- | 'elevation.surface'
385
- )[];
386
-
387
- // @public (undocumented)
388
- const tokenNames_2: (
389
- | 'color.background.accent.blue.subtle'
390
- | 'color.background.accent.gray.subtler'
391
- | 'color.background.accent.green.subtle'
392
- | 'color.background.accent.magenta.subtle'
393
- | 'color.background.accent.orange.subtle'
394
- | 'color.background.accent.purple.subtle'
395
- | 'color.background.accent.red.subtle'
396
- | 'color.background.accent.teal.subtle'
397
- | 'color.background.accent.yellow.subtle'
398
- | 'color.chart.blue.bold'
399
- | 'color.chart.blue.bolder'
400
- | 'color.chart.blue.boldest'
401
- | 'color.chart.gray.bold'
402
- | 'color.chart.gray.bolder'
403
- | 'color.chart.gray.boldest'
404
- | 'color.chart.green.bold'
405
- | 'color.chart.green.bolder'
406
- | 'color.chart.green.boldest'
407
- | 'color.chart.magenta.bold'
408
- | 'color.chart.magenta.bolder'
409
- | 'color.chart.magenta.boldest'
410
- | 'color.chart.orange.bold'
411
- | 'color.chart.orange.bolder'
412
- | 'color.chart.orange.boldest'
413
- | 'color.chart.purple.bold'
414
- | 'color.chart.purple.bolder'
415
- | 'color.chart.purple.boldest'
416
- | 'color.chart.red.bold'
417
- | 'color.chart.red.bolder'
418
- | 'color.chart.red.boldest'
419
- | 'color.chart.teal.bold'
420
- | 'color.chart.teal.bolder'
421
- | 'color.chart.teal.boldest'
422
- | 'color.chart.yellow.bold'
423
- | 'color.chart.yellow.bolder'
424
- | 'color.chart.yellow.boldest'
425
- )[];
426
-
427
348
  // (No @packageDocumentation comment for this package)
428
349
  ```
429
350