@atlaskit/primitives 0.1.0 → 0.2.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.
Files changed (38) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/cjs/components/box.js +80 -6
  3. package/dist/cjs/components/inline.partial.js +22 -46
  4. package/dist/cjs/components/internal/base-box.partial.js +822 -0
  5. package/dist/cjs/components/stack.partial.js +22 -46
  6. package/dist/cjs/index.js +2 -2
  7. package/dist/cjs/version.json +1 -1
  8. package/dist/es2019/components/box.js +75 -1
  9. package/dist/es2019/components/inline.partial.js +20 -20
  10. package/dist/es2019/components/internal/base-box.partial.js +839 -0
  11. package/dist/es2019/components/stack.partial.js +20 -20
  12. package/dist/es2019/index.js +2 -2
  13. package/dist/es2019/version.json +1 -1
  14. package/dist/esm/components/box.js +77 -1
  15. package/dist/esm/components/inline.partial.js +21 -46
  16. package/dist/esm/components/internal/base-box.partial.js +817 -0
  17. package/dist/esm/components/stack.partial.js +21 -46
  18. package/dist/esm/index.js +2 -2
  19. package/dist/esm/version.json +1 -1
  20. package/dist/types/components/box.d.ts +10 -1
  21. package/dist/types/components/inline.partial.d.ts +18 -16
  22. package/dist/types/components/internal/base-box.partial.d.ts +483 -0
  23. package/dist/types/components/stack.partial.d.ts +18 -16
  24. package/dist/types/components/types.d.ts +8 -1
  25. package/dist/types/index.d.ts +3 -3
  26. package/package.json +2 -3
  27. package/report.api.md +505 -46
  28. package/scripts/__tests__/__snapshots__/codegen.test.tsx.snap +204 -0
  29. package/scripts/codegen-styles.tsx +31 -16
  30. package/scripts/color-codegen-template.tsx +10 -7
  31. package/scripts/dimension-codegen-template.tsx +14 -2
  32. package/scripts/misc-codegen-template.tsx +1 -1
  33. package/scripts/spacing-codegen-template.tsx +37 -33
  34. package/tmp/api-report-tmp.d.ts +466 -46
  35. package/dist/cjs/components/internal/box.partial.js +0 -605
  36. package/dist/es2019/components/internal/box.partial.js +0 -597
  37. package/dist/esm/components/internal/box.partial.js +0 -600
  38. package/dist/types/components/internal/box.partial.d.ts +0 -348
@@ -4,18 +4,23 @@
4
4
 
5
5
  ```ts
6
6
 
7
- import { default as Box } from '@atlaskit/ds-explorations/box';
7
+ import { ComponentPropsWithoutRef } from 'react';
8
+ import { ComponentPropsWithRef } from 'react';
9
+ import type { CSSProperties } from 'react';
10
+ import { ElementType } from 'react';
11
+ import { FC } from 'react';
8
12
  import { ForwardRefExoticComponent } from 'react';
9
13
  import { MemoExoticComponent } from 'react';
14
+ import { ReactElement } from 'react';
10
15
  import { ReactNode } from 'react';
11
16
  import { RefAttributes } from 'react';
12
17
  import { SerializedStyles } from '@emotion/react';
13
18
 
14
19
  // @public (undocumented)
15
- type AlignBlock = 'center' | 'end' | 'start';
20
+ type AlignBlock = 'baseline' | 'center' | 'end' | 'start';
16
21
 
17
22
  // @public (undocumented)
18
- type AlignBlock_2 = 'baseline' | 'center' | 'end' | 'start';
23
+ type AlignBlock_2 = 'center' | 'end' | 'start';
19
24
 
20
25
  // @public (undocumented)
21
26
  type AlignInline = 'center' | 'end' | 'start';
@@ -23,7 +28,243 @@ type AlignInline = 'center' | 'end' | 'start';
23
28
  // @public (undocumented)
24
29
  type AlignInline_2 = 'center' | 'end' | 'start';
25
30
 
26
- export { Box }
31
+ // @public (undocumented)
32
+ type AlignSelf = keyof typeof alignSelfMap;
33
+
34
+ // @public (undocumented)
35
+ const alignSelfMap: {
36
+ readonly center: SerializedStyles;
37
+ readonly start: SerializedStyles;
38
+ readonly stretch: SerializedStyles;
39
+ readonly end: SerializedStyles;
40
+ readonly baseline: SerializedStyles;
41
+ };
42
+
43
+ // @public (undocumented)
44
+ type BackgroundColor = keyof typeof backgroundColorMap;
45
+
46
+ // @public (undocumented)
47
+ const backgroundColorMap: {
48
+ readonly 'accent.red.subtlest': SerializedStyles;
49
+ readonly 'accent.red.subtler': SerializedStyles;
50
+ readonly 'accent.red.subtle': SerializedStyles;
51
+ readonly 'accent.red.bolder': SerializedStyles;
52
+ readonly 'accent.orange.subtlest': SerializedStyles;
53
+ readonly 'accent.orange.subtler': SerializedStyles;
54
+ readonly 'accent.orange.subtle': SerializedStyles;
55
+ readonly 'accent.orange.bolder': SerializedStyles;
56
+ readonly 'accent.yellow.subtlest': SerializedStyles;
57
+ readonly 'accent.yellow.subtler': SerializedStyles;
58
+ readonly 'accent.yellow.subtle': SerializedStyles;
59
+ readonly 'accent.yellow.bolder': SerializedStyles;
60
+ readonly 'accent.green.subtlest': SerializedStyles;
61
+ readonly 'accent.green.subtler': SerializedStyles;
62
+ readonly 'accent.green.subtle': SerializedStyles;
63
+ readonly 'accent.green.bolder': SerializedStyles;
64
+ readonly 'accent.teal.subtlest': SerializedStyles;
65
+ readonly 'accent.teal.subtler': SerializedStyles;
66
+ readonly 'accent.teal.subtle': SerializedStyles;
67
+ readonly 'accent.teal.bolder': SerializedStyles;
68
+ readonly 'accent.blue.subtlest': SerializedStyles;
69
+ readonly 'accent.blue.subtler': SerializedStyles;
70
+ readonly 'accent.blue.subtle': SerializedStyles;
71
+ readonly 'accent.blue.bolder': SerializedStyles;
72
+ readonly 'accent.purple.subtlest': SerializedStyles;
73
+ readonly 'accent.purple.subtler': SerializedStyles;
74
+ readonly 'accent.purple.subtle': SerializedStyles;
75
+ readonly 'accent.purple.bolder': SerializedStyles;
76
+ readonly 'accent.magenta.subtlest': SerializedStyles;
77
+ readonly 'accent.magenta.subtler': SerializedStyles;
78
+ readonly 'accent.magenta.subtle': SerializedStyles;
79
+ readonly 'accent.magenta.bolder': SerializedStyles;
80
+ readonly 'accent.gray.subtlest': SerializedStyles;
81
+ readonly 'accent.gray.subtler': SerializedStyles;
82
+ readonly 'accent.gray.subtle': SerializedStyles;
83
+ readonly 'accent.gray.bolder': SerializedStyles;
84
+ readonly disabled: SerializedStyles;
85
+ readonly input: SerializedStyles;
86
+ readonly 'inverse.subtle': SerializedStyles;
87
+ readonly neutral: SerializedStyles;
88
+ readonly 'neutral.subtle': SerializedStyles;
89
+ readonly 'neutral.bold': SerializedStyles;
90
+ readonly selected: SerializedStyles;
91
+ readonly 'selected.bold': SerializedStyles;
92
+ readonly 'brand.bold': SerializedStyles;
93
+ readonly danger: SerializedStyles;
94
+ readonly 'danger.bold': SerializedStyles;
95
+ readonly warning: SerializedStyles;
96
+ readonly 'warning.bold': SerializedStyles;
97
+ readonly success: SerializedStyles;
98
+ readonly 'success.bold': SerializedStyles;
99
+ readonly discovery: SerializedStyles;
100
+ readonly 'discovery.bold': SerializedStyles;
101
+ readonly information: SerializedStyles;
102
+ readonly 'information.bold': SerializedStyles;
103
+ readonly 'color.blanket': SerializedStyles;
104
+ readonly 'color.blanket.selected': SerializedStyles;
105
+ readonly 'color.blanket.danger': SerializedStyles;
106
+ readonly 'elevation.surface': SerializedStyles;
107
+ readonly 'elevation.surface.overlay': SerializedStyles;
108
+ readonly 'elevation.surface.raised': SerializedStyles;
109
+ readonly 'elevation.surface.sunken': SerializedStyles;
110
+ };
111
+
112
+ // @public (undocumented)
113
+ type BaseBoxProps<T extends ElementType = 'div'> = Omit<ComponentPropsWithoutRef<T>, 'as' | 'className' | 'style'> & BasePrimitiveProps & BaseBoxPropsFoundation<T>;
114
+
115
+ // @public (undocumented)
116
+ type BaseBoxPropsFoundation<T extends ElementType> = {
117
+ as?: 'div' | 'span';
118
+ className?: string;
119
+ children?: ReactNode;
120
+ color?: TextColor;
121
+ backgroundColor?: BackgroundColor;
122
+ shadow?: Shadow;
123
+ borderStyle?: BorderStyle;
124
+ borderWidth?: BorderWidth;
125
+ borderColor?: BorderColor;
126
+ borderRadius?: BorderRadius;
127
+ layer?: Layer;
128
+ flex?: Flex;
129
+ flexGrow?: FlexGrow;
130
+ flexShrink?: FlexShrink;
131
+ alignSelf?: AlignSelf;
132
+ overflow?: Overflow;
133
+ overflowInline?: OverflowInline;
134
+ overflowBlock?: OverflowBlock;
135
+ padding?: Padding;
136
+ paddingBlock?: PaddingBlock;
137
+ paddingBlockStart?: PaddingBlockStart;
138
+ paddingBlockEnd?: PaddingBlockEnd;
139
+ paddingInline?: PaddingInline;
140
+ paddingInlineStart?: PaddingInlineStart;
141
+ paddingInlineEnd?: PaddingInlineEnd;
142
+ width?: Width;
143
+ height?: Height;
144
+ display?: Display;
145
+ position?: Position;
146
+ ref?: ComponentPropsWithRef<T>['ref'];
147
+ };
148
+
149
+ // @public (undocumented)
150
+ interface BasePrimitiveProps {
151
+ testId?: string;
152
+ UNSAFE_style?: CSSProperties;
153
+ }
154
+
155
+ // @public (undocumented)
156
+ type BorderColor = keyof typeof borderColorMap;
157
+
158
+ // @public
159
+ const borderColorMap: {
160
+ readonly 'color.border': SerializedStyles;
161
+ readonly 'accent.red': SerializedStyles;
162
+ readonly 'accent.orange': SerializedStyles;
163
+ readonly 'accent.yellow': SerializedStyles;
164
+ readonly 'accent.green': SerializedStyles;
165
+ readonly 'accent.teal': SerializedStyles;
166
+ readonly 'accent.blue': SerializedStyles;
167
+ readonly 'accent.purple': SerializedStyles;
168
+ readonly 'accent.magenta': SerializedStyles;
169
+ readonly 'accent.gray': SerializedStyles;
170
+ readonly disabled: SerializedStyles;
171
+ readonly focused: SerializedStyles;
172
+ readonly input: SerializedStyles;
173
+ readonly inverse: SerializedStyles;
174
+ readonly selected: SerializedStyles;
175
+ readonly brand: SerializedStyles;
176
+ readonly danger: SerializedStyles;
177
+ readonly warning: SerializedStyles;
178
+ readonly success: SerializedStyles;
179
+ readonly discovery: SerializedStyles;
180
+ readonly information: SerializedStyles;
181
+ readonly bold: SerializedStyles;
182
+ };
183
+
184
+ // @public (undocumented)
185
+ type BorderRadius = keyof typeof borderRadiusMap;
186
+
187
+ // @public (undocumented)
188
+ const borderRadiusMap: {
189
+ 'radius.100': SerializedStyles;
190
+ 'radius.200': SerializedStyles;
191
+ 'radius.round': SerializedStyles;
192
+ 'radius.300': SerializedStyles;
193
+ 'radius.400': SerializedStyles;
194
+ };
195
+
196
+ // @public (undocumented)
197
+ type BorderStyle = keyof typeof borderStyleMap;
198
+
199
+ // @public (undocumented)
200
+ const borderStyleMap: {
201
+ readonly none: SerializedStyles;
202
+ readonly solid: SerializedStyles;
203
+ };
204
+
205
+ // @public (undocumented)
206
+ type BorderWidth = keyof typeof borderWidthMap;
207
+
208
+ // @public (undocumented)
209
+ const borderWidthMap: {
210
+ readonly 'size.050': SerializedStyles;
211
+ readonly 'size.100': SerializedStyles;
212
+ };
213
+
214
+ // @public (undocumented)
215
+ export const Box: BoxComponent;
216
+
217
+ // @public (undocumented)
218
+ type BoxComponent<T extends ElementType = 'div'> = (<T extends ElementType = 'div'>(props: BoxProps<T>) => ReactElement | null) & FC<BoxProps<T>>;
219
+
220
+ // @public (undocumented)
221
+ export type BoxProps<T extends ElementType = 'div'> = Omit<BaseBoxProps<T>, 'UNSAFE_style' | 'className'> & BoxPropsBase;
222
+
223
+ // @public (undocumented)
224
+ type BoxPropsBase = {
225
+ customStyles?: CustomStyles;
226
+ };
227
+
228
+ // @public
229
+ type CustomStyles = Pick<CSSProperties, 'flex' | 'flexBasis' | 'float' | 'height' | 'insetBlockStart' | 'insetInlineEnd' | 'insetInlineStart' | 'margin' | 'marginBlock' | 'marginBlockEnd' | 'marginBlockStart' | 'marginInline' | 'marginInlineEnd' | 'marginInlineStart' | 'maxHeight' | 'maxWidth' | 'minHeight' | 'minWidth' | 'paddingBottom' | 'paddingLeft' | 'paddingRight' | 'paddingTop' | 'width'>;
230
+
231
+ // @public (undocumented)
232
+ type Display = keyof typeof displayMap;
233
+
234
+ // @public (undocumented)
235
+ const displayMap: {
236
+ readonly block: SerializedStyles;
237
+ readonly inline: SerializedStyles;
238
+ readonly flex: SerializedStyles;
239
+ readonly 'inline-flex': SerializedStyles;
240
+ readonly 'inline-block': SerializedStyles;
241
+ };
242
+
243
+ // @public (undocumented)
244
+ type Flex = keyof typeof flexMap;
245
+
246
+ // @public (undocumented)
247
+ type FlexGrow = keyof typeof flexGrowMap;
248
+
249
+ // @public (undocumented)
250
+ const flexGrowMap: {
251
+ readonly '0': SerializedStyles;
252
+ readonly '1': SerializedStyles;
253
+ };
254
+
255
+ // @public (undocumented)
256
+ const flexMap: {
257
+ readonly '1': SerializedStyles;
258
+ };
259
+
260
+ // @public (undocumented)
261
+ type FlexShrink = keyof typeof flexShrinkMap;
262
+
263
+ // @public (undocumented)
264
+ const flexShrinkMap: {
265
+ readonly '0': SerializedStyles;
266
+ readonly '1': SerializedStyles;
267
+ };
27
268
 
28
269
  // @public (undocumented)
29
270
  type Grow = 'fill' | 'hug';
@@ -31,62 +272,188 @@ type Grow = 'fill' | 'hug';
31
272
  // @public (undocumented)
32
273
  type Grow_2 = 'fill' | 'hug';
33
274
 
275
+ // @public (undocumented)
276
+ type Height = keyof typeof heightMap;
277
+
278
+ // @public (undocumented)
279
+ const heightMap: {
280
+ readonly '100%': SerializedStyles;
281
+ readonly 'size.100': SerializedStyles;
282
+ readonly 'size.200': SerializedStyles;
283
+ readonly 'size.300': SerializedStyles;
284
+ readonly 'size.400': SerializedStyles;
285
+ readonly 'size.500': SerializedStyles;
286
+ readonly 'size.600': SerializedStyles;
287
+ readonly 'size.1000': SerializedStyles;
288
+ };
289
+
34
290
  // @public
35
291
  export const Inline: MemoExoticComponent<ForwardRefExoticComponent<InlineProps & RefAttributes<HTMLDivElement>>>;
36
292
 
37
293
  // @public (undocumented)
38
- interface InlineProps {
39
- alignBlock?: AlignBlock_2;
40
- alignInline?: AlignInline_2;
294
+ export interface InlineProps {
295
+ alignBlock?: AlignBlock;
296
+ alignInline?: AlignInline;
41
297
  children: ReactNode;
42
- grow?: Grow_2;
298
+ grow?: Grow;
43
299
  separator?: string;
44
300
  shouldWrap?: boolean;
45
- space?: Space_2;
46
- spread?: Spread_2;
301
+ space?: Space;
302
+ spread?: Spread;
47
303
  testId?: string;
48
304
  }
49
305
 
50
306
  // @public (undocumented)
51
- type Space = keyof typeof spaceMap;
307
+ type Layer = keyof typeof LAYERS;
308
+
309
+ // @public (undocumented)
310
+ const LAYERS: {
311
+ readonly card: 100;
312
+ readonly navigation: 200;
313
+ readonly dialog: 300;
314
+ readonly layer: 400;
315
+ readonly blanket: 500;
316
+ readonly modal: 510;
317
+ readonly flag: 600;
318
+ readonly spotlight: 700;
319
+ readonly tooltip: 800;
320
+ };
321
+
322
+ // @public (undocumented)
323
+ type Overflow = keyof typeof overflowMap;
324
+
325
+ // @public (undocumented)
326
+ type OverflowBlock = keyof typeof overflowBlockMap;
327
+
328
+ // @public (undocumented)
329
+ const overflowBlockMap: {
330
+ readonly auto: SerializedStyles;
331
+ readonly hidden: SerializedStyles;
332
+ };
333
+
334
+ // @public (undocumented)
335
+ type OverflowInline = keyof typeof overflowInlineMap;
336
+
337
+ // @public (undocumented)
338
+ const overflowInlineMap: {
339
+ readonly auto: SerializedStyles;
340
+ readonly hidden: SerializedStyles;
341
+ };
342
+
343
+ // @public (undocumented)
344
+ const overflowMap: {
345
+ readonly auto: SerializedStyles;
346
+ readonly hidden: SerializedStyles;
347
+ };
348
+
349
+ // @public (undocumented)
350
+ type Padding = keyof typeof paddingMap.padding;
351
+
352
+ // @public (undocumented)
353
+ type PaddingBlock = keyof typeof paddingMap.paddingBlock;
354
+
355
+ // @public (undocumented)
356
+ type PaddingBlockEnd = keyof typeof paddingMap.paddingBlockEnd;
357
+
358
+ // @public (undocumented)
359
+ type PaddingBlockStart = keyof typeof paddingMap.paddingBlockStart;
360
+
361
+ // @public (undocumented)
362
+ type PaddingInline = keyof typeof paddingMap.paddingInline;
363
+
364
+ // @public (undocumented)
365
+ type PaddingInlineEnd = keyof typeof paddingMap.paddingInlineEnd;
52
366
 
53
367
  // @public (undocumented)
54
- type Space_2 = keyof typeof spaceMap_2;
368
+ type PaddingInlineStart = keyof typeof paddingMap.paddingInlineStart;
369
+
370
+ // @public
371
+ const paddingMap: {
372
+ [k: string]: {
373
+ readonly 'space.0': SerializedStyles;
374
+ readonly 'space.025': SerializedStyles;
375
+ readonly 'space.050': SerializedStyles;
376
+ readonly 'space.075': SerializedStyles;
377
+ readonly 'space.100': SerializedStyles;
378
+ readonly 'space.150': SerializedStyles;
379
+ readonly 'space.200': SerializedStyles;
380
+ readonly 'space.250': SerializedStyles;
381
+ readonly 'space.300': SerializedStyles;
382
+ readonly 'space.400': SerializedStyles;
383
+ readonly 'space.500': SerializedStyles;
384
+ readonly 'space.600': SerializedStyles;
385
+ readonly 'space.800': SerializedStyles;
386
+ readonly 'space.1000': SerializedStyles;
387
+ };
388
+ };
389
+
390
+ // @public (undocumented)
391
+ type Position = keyof typeof positionMap;
392
+
393
+ // @public (undocumented)
394
+ const positionMap: {
395
+ readonly absolute: SerializedStyles;
396
+ readonly fixed: SerializedStyles;
397
+ readonly relative: SerializedStyles;
398
+ readonly static: SerializedStyles;
399
+ };
400
+
401
+ // @public (undocumented)
402
+ type Shadow = keyof typeof shadowMap;
403
+
404
+ // @public (undocumented)
405
+ const shadowMap: {
406
+ readonly overflow: SerializedStyles;
407
+ readonly 'overflow.perimeter': SerializedStyles;
408
+ readonly 'overflow.spread': SerializedStyles;
409
+ readonly overlay: SerializedStyles;
410
+ readonly raised: SerializedStyles;
411
+ };
412
+
413
+ // @public (undocumented)
414
+ type Space = keyof typeof spaceMap.gap;
415
+
416
+ // @public (undocumented)
417
+ type Space_2 = keyof typeof spaceMap_2.gap;
55
418
 
56
419
  // @public
57
420
  const spaceMap: {
58
- '0': SerializedStyles;
59
- '025': SerializedStyles;
60
- '050': SerializedStyles;
61
- '075': SerializedStyles;
62
- '100': SerializedStyles;
63
- '1000': SerializedStyles;
64
- '150': SerializedStyles;
65
- '200': SerializedStyles;
66
- '250': SerializedStyles;
67
- '300': SerializedStyles;
68
- '400': SerializedStyles;
69
- '500': SerializedStyles;
70
- '600': SerializedStyles;
71
- '800': SerializedStyles;
421
+ [k: string]: {
422
+ readonly '0': SerializedStyles;
423
+ readonly '025': SerializedStyles;
424
+ readonly '050': SerializedStyles;
425
+ readonly '075': SerializedStyles;
426
+ readonly '100': SerializedStyles;
427
+ readonly '150': SerializedStyles;
428
+ readonly '200': SerializedStyles;
429
+ readonly '250': SerializedStyles;
430
+ readonly '300': SerializedStyles;
431
+ readonly '400': SerializedStyles;
432
+ readonly '500': SerializedStyles;
433
+ readonly '600': SerializedStyles;
434
+ readonly '800': SerializedStyles;
435
+ readonly '1000': SerializedStyles;
436
+ };
72
437
  };
73
438
 
74
439
  // @public
75
440
  const spaceMap_2: {
76
- '0': SerializedStyles;
77
- '025': SerializedStyles;
78
- '050': SerializedStyles;
79
- '075': SerializedStyles;
80
- '100': SerializedStyles;
81
- '1000': SerializedStyles;
82
- '150': SerializedStyles;
83
- '200': SerializedStyles;
84
- '250': SerializedStyles;
85
- '300': SerializedStyles;
86
- '400': SerializedStyles;
87
- '500': SerializedStyles;
88
- '600': SerializedStyles;
89
- '800': SerializedStyles;
441
+ [k: string]: {
442
+ readonly '0': SerializedStyles;
443
+ readonly '025': SerializedStyles;
444
+ readonly '050': SerializedStyles;
445
+ readonly '075': SerializedStyles;
446
+ readonly '100': SerializedStyles;
447
+ readonly '150': SerializedStyles;
448
+ readonly '200': SerializedStyles;
449
+ readonly '250': SerializedStyles;
450
+ readonly '300': SerializedStyles;
451
+ readonly '400': SerializedStyles;
452
+ readonly '500': SerializedStyles;
453
+ readonly '600': SerializedStyles;
454
+ readonly '800': SerializedStyles;
455
+ readonly '1000': SerializedStyles;
456
+ };
90
457
  };
91
458
 
92
459
  // @public (undocumented)
@@ -99,16 +466,69 @@ type Spread_2 = 'space-between';
99
466
  export const Stack: MemoExoticComponent<ForwardRefExoticComponent<StackProps & RefAttributes<HTMLDivElement>>>;
100
467
 
101
468
  // @public (undocumented)
102
- interface StackProps {
103
- alignBlock?: AlignBlock;
104
- alignInline?: AlignInline;
469
+ export interface StackProps {
470
+ alignBlock?: AlignBlock_2;
471
+ alignInline?: AlignInline_2;
105
472
  children: ReactNode;
106
- grow?: Grow;
107
- space?: Space;
108
- spread?: Spread;
473
+ grow?: Grow_2;
474
+ space?: Space_2;
475
+ spread?: Spread_2;
109
476
  testId?: string;
110
477
  }
111
478
 
479
+ // @public (undocumented)
480
+ type TextColor = keyof typeof textColorMap;
481
+
482
+ // @public (undocumented)
483
+ const textColorMap: {
484
+ readonly 'color.text': SerializedStyles;
485
+ readonly 'accent.red': SerializedStyles;
486
+ readonly 'accent.red.bolder': SerializedStyles;
487
+ readonly 'accent.orange': SerializedStyles;
488
+ readonly 'accent.orange.bolder': SerializedStyles;
489
+ readonly 'accent.yellow': SerializedStyles;
490
+ readonly 'accent.yellow.bolder': SerializedStyles;
491
+ readonly 'accent.green': SerializedStyles;
492
+ readonly 'accent.green.bolder': SerializedStyles;
493
+ readonly 'accent.teal': SerializedStyles;
494
+ readonly 'accent.teal.bolder': SerializedStyles;
495
+ readonly 'accent.blue': SerializedStyles;
496
+ readonly 'accent.blue.bolder': SerializedStyles;
497
+ readonly 'accent.purple': SerializedStyles;
498
+ readonly 'accent.purple.bolder': SerializedStyles;
499
+ readonly 'accent.magenta': SerializedStyles;
500
+ readonly 'accent.magenta.bolder': SerializedStyles;
501
+ readonly 'accent.gray': SerializedStyles;
502
+ readonly 'accent.gray.bolder': SerializedStyles;
503
+ readonly disabled: SerializedStyles;
504
+ readonly inverse: SerializedStyles;
505
+ readonly selected: SerializedStyles;
506
+ readonly brand: SerializedStyles;
507
+ readonly danger: SerializedStyles;
508
+ readonly warning: SerializedStyles;
509
+ readonly 'warning.inverse': SerializedStyles;
510
+ readonly success: SerializedStyles;
511
+ readonly discovery: SerializedStyles;
512
+ readonly information: SerializedStyles;
513
+ readonly subtlest: SerializedStyles;
514
+ readonly subtle: SerializedStyles;
515
+ };
516
+
517
+ // @public (undocumented)
518
+ type Width = keyof typeof widthMap;
519
+
520
+ // @public
521
+ const widthMap: {
522
+ readonly '100%': SerializedStyles;
523
+ readonly 'size.100': SerializedStyles;
524
+ readonly 'size.200': SerializedStyles;
525
+ readonly 'size.300': SerializedStyles;
526
+ readonly 'size.400': SerializedStyles;
527
+ readonly 'size.500': SerializedStyles;
528
+ readonly 'size.600': SerializedStyles;
529
+ readonly 'size.1000': SerializedStyles;
530
+ };
531
+
112
532
  // (No @packageDocumentation comment for this package)
113
533
 
114
534
  ```