@atlaskit/ds-explorations 0.1.4 → 1.0.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 (101) hide show
  1. package/CHANGELOG.md +33 -0
  2. package/box/package.json +15 -0
  3. package/dist/cjs/components/box.partial.js +184 -201
  4. package/dist/cjs/components/inline.partial.js +49 -30
  5. package/dist/cjs/components/interaction-surface.partial.js +35 -3
  6. package/dist/cjs/components/stack.partial.js +49 -30
  7. package/dist/cjs/components/text.partial.js +116 -85
  8. package/dist/cjs/index.js +1 -9
  9. package/dist/cjs/internal/color-map.js +6 -5
  10. package/dist/cjs/internal/spacing-scale.js +17 -0
  11. package/dist/cjs/version.json +1 -1
  12. package/dist/es2019/components/box.partial.js +182 -184
  13. package/dist/es2019/components/inline.partial.js +49 -29
  14. package/dist/es2019/components/interaction-surface.partial.js +35 -3
  15. package/dist/es2019/components/stack.partial.js +49 -29
  16. package/dist/es2019/components/text.partial.js +73 -35
  17. package/dist/es2019/index.js +1 -2
  18. package/dist/es2019/internal/color-map.js +4 -3
  19. package/dist/es2019/internal/spacing-scale.js +9 -0
  20. package/dist/es2019/version.json +1 -1
  21. package/dist/esm/components/box.partial.js +183 -197
  22. package/dist/esm/components/inline.partial.js +49 -29
  23. package/dist/esm/components/interaction-surface.partial.js +35 -3
  24. package/dist/esm/components/stack.partial.js +49 -29
  25. package/dist/esm/components/text.partial.js +78 -46
  26. package/dist/esm/index.js +1 -2
  27. package/dist/esm/internal/color-map.js +4 -3
  28. package/dist/esm/internal/spacing-scale.js +9 -0
  29. package/dist/esm/version.json +1 -1
  30. package/dist/types/components/box.partial.d.ts +114 -18
  31. package/dist/types/components/inline.partial.d.ts +38 -4
  32. package/dist/types/components/interaction-surface.partial.d.ts +7 -3
  33. package/dist/types/components/stack.partial.d.ts +39 -6
  34. package/dist/types/components/text.partial.d.ts +5 -3
  35. package/dist/types/components/types.d.ts +1 -0
  36. package/dist/types/index.d.ts +0 -1
  37. package/dist/types/internal/color-map.d.ts +11 -9
  38. package/dist/types/internal/spacing-scale.d.ts +9 -0
  39. package/dist/types-ts4.0/components/box.partial.d.ts +114 -24
  40. package/dist/types-ts4.0/components/inline.partial.d.ts +38 -4
  41. package/dist/types-ts4.0/components/interaction-surface.partial.d.ts +7 -3
  42. package/dist/types-ts4.0/components/stack.partial.d.ts +39 -6
  43. package/dist/types-ts4.0/components/text.partial.d.ts +5 -6
  44. package/dist/types-ts4.0/components/types.d.ts +1 -0
  45. package/dist/types-ts4.0/index.d.ts +0 -1
  46. package/dist/types-ts4.0/internal/color-map.d.ts +11 -9
  47. package/dist/types-ts4.0/internal/spacing-scale.d.ts +22 -0
  48. package/examples/00-basic.tsx +4 -4
  49. package/examples/01-box.tsx +29 -46
  50. package/examples/02-text-advanced.tsx +38 -0
  51. package/examples/02-text.tsx +72 -62
  52. package/examples/03-stack.tsx +48 -74
  53. package/examples/04-inline.tsx +46 -75
  54. package/examples/05-badge.tsx +2 -2
  55. package/examples/06-section-message.tsx +7 -7
  56. package/examples/07-comment.tsx +4 -6
  57. package/examples/08-lozenge.tsx +9 -5
  58. package/examples/99-interactions.tsx +53 -46
  59. package/examples/config.jsonc +11 -0
  60. package/package.json +5 -2
  61. package/report.api.md +240 -54
  62. package/scripts/__tests__/__snapshots__/codegen.test.tsx.snap +52 -64
  63. package/scripts/codegen-styles.tsx +34 -6
  64. package/scripts/color-codegen-template.tsx +10 -15
  65. package/scripts/color-map-template.tsx +1 -1
  66. package/scripts/spacing-codegen-template.tsx +48 -12
  67. package/scripts/spacing-scale-template.tsx +40 -0
  68. package/scripts/utils.tsx +1 -3
  69. package/src/components/__tests__/unit/box.test.tsx +18 -13
  70. package/src/components/__tests__/unit/inline.test.tsx +10 -10
  71. package/src/components/__tests__/unit/interaction-suface.test.tsx +14 -8
  72. package/src/components/__tests__/unit/stack.test.tsx +7 -7
  73. package/src/components/__tests__/unit/text.test.tsx +23 -0
  74. package/src/components/__tests__/visual-regression/__image_snapshots__/box-snapshot-test-tsx-box-example-with-background-and-padding-block-should-match-snapshot-1-snap.png +2 -2
  75. package/src/components/__tests__/visual-regression/__image_snapshots__/box-snapshot-test-tsx-box-example-with-background-and-padding-inline-should-match-snapshot-1-snap.png +2 -2
  76. package/src/components/__tests__/visual-regression/__image_snapshots__/box-snapshot-test-tsx-box-example-with-background-and-padding-should-match-snapshot-1-snap.png +2 -2
  77. package/src/components/__tests__/visual-regression/__image_snapshots__/box-snapshot-test-tsx-box-example-with-background-color-should-match-snapshot-1-snap.png +2 -2
  78. package/src/components/__tests__/visual-regression/__image_snapshots__/box-snapshot-test-tsx-box-example-with-border-color-should-match-snapshot-1-snap.png +2 -2
  79. package/src/components/__tests__/visual-regression/__image_snapshots__/inline-snapshot-test-tsx-inline-alignment-example-should-match-snapshot-1-snap.png +2 -2
  80. package/src/components/__tests__/visual-regression/__image_snapshots__/inline-snapshot-test-tsx-inline-spacing-example-should-match-snapshot-1-snap.png +2 -2
  81. package/src/components/__tests__/visual-regression/__image_snapshots__/stack-snapshot-test-tsx-stack-alignment-example-should-match-snapshot-1-snap.png +2 -2
  82. package/src/components/__tests__/visual-regression/__image_snapshots__/stack-snapshot-test-tsx-stack-spacing-example-should-match-snapshot-1-snap.png +2 -2
  83. package/src/components/__tests__/visual-regression/__image_snapshots__/text-snapshot-test-tsx-text-example-with-line-heights-should-match-snapshot-1-snap.png +2 -2
  84. package/src/components/__tests__/visual-regression/__image_snapshots__/text-snapshot-test-tsx-text-example-with-testing-should-match-snapshot-1-snap.png +2 -2
  85. package/src/components/box.partial.tsx +296 -159
  86. package/src/components/inline.partial.tsx +75 -21
  87. package/src/components/interaction-surface.partial.tsx +6 -4
  88. package/src/components/stack.partial.tsx +75 -22
  89. package/src/components/text.partial.tsx +78 -41
  90. package/src/components/types.tsx +2 -0
  91. package/src/index.tsx +0 -1
  92. package/src/internal/color-map.tsx +4 -3
  93. package/src/internal/spacing-scale.tsx +22 -0
  94. package/text/package.json +15 -0
  95. package/tmp/api-report-tmp.d.ts +583 -0
  96. package/dist/cjs/constants.js +0 -21
  97. package/dist/es2019/constants.js +0 -14
  98. package/dist/esm/constants.js +0 -14
  99. package/dist/types/constants.d.ts +0 -15
  100. package/dist/types-ts4.0/constants.d.ts +0 -15
  101. package/src/constants.tsx +0 -16
@@ -0,0 +1,583 @@
1
+ ## API Report File for "@atlaskit/ds-explorations"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ /// <reference types="react" />
8
+
9
+ import { ComponentPropsWithoutRef } from 'react';
10
+ import { ComponentPropsWithRef } from 'react';
11
+ import type { CSSProperties } from 'react';
12
+ import { ElementType } from 'react';
13
+ import { FC } from 'react';
14
+ import { ForwardRefExoticComponent } from 'react';
15
+ import { jsx } from '@emotion/react';
16
+ import { ReactElement } from 'react';
17
+ import { ReactNode } from 'react';
18
+ import { RefAttributes } from 'react';
19
+ import { SerializedStyles } from '@emotion/react';
20
+
21
+ // @public (undocumented)
22
+ const asAllowlist: readonly ["span", "div", "p"];
23
+
24
+ // @public (undocumented)
25
+ type AsElement = typeof asAllowlist[number];
26
+
27
+ // @public (undocumented)
28
+ type BackgroundColor = keyof typeof backgroundColorMap;
29
+
30
+ // @public (undocumented)
31
+ const backgroundColorMap: {
32
+ disabled: SerializedStyles;
33
+ 'inverse.subtle': SerializedStyles;
34
+ input: SerializedStyles;
35
+ neutral: SerializedStyles;
36
+ 'neutral.subtle': SerializedStyles;
37
+ 'neutral.bold': SerializedStyles;
38
+ 'brand.bold': SerializedStyles;
39
+ selected: SerializedStyles;
40
+ 'selected.bold': SerializedStyles;
41
+ danger: SerializedStyles;
42
+ 'danger.bold': SerializedStyles;
43
+ warning: SerializedStyles;
44
+ 'warning.bold': SerializedStyles;
45
+ success: SerializedStyles;
46
+ 'success.bold': SerializedStyles;
47
+ discovery: SerializedStyles;
48
+ 'discovery.bold': SerializedStyles;
49
+ information: SerializedStyles;
50
+ 'information.bold': SerializedStyles;
51
+ 'color.blanket': SerializedStyles;
52
+ 'color.blanket.selected': SerializedStyles;
53
+ 'color.blanket.danger': SerializedStyles;
54
+ 'elevation.surface': SerializedStyles;
55
+ 'elevation.surface.sunken': SerializedStyles;
56
+ 'elevation.surface.raised': SerializedStyles;
57
+ 'elevation.surface.overlay': SerializedStyles;
58
+ };
59
+
60
+ // @public (undocumented)
61
+ const backgroundHoverColorMap: {
62
+ 'inverse.subtle': SerializedStyles;
63
+ input: SerializedStyles;
64
+ neutral: SerializedStyles;
65
+ 'neutral.subtle': SerializedStyles;
66
+ 'neutral.bold': SerializedStyles;
67
+ 'brand.bold': SerializedStyles;
68
+ selected: SerializedStyles;
69
+ 'selected.bold': SerializedStyles;
70
+ danger: SerializedStyles;
71
+ 'danger.bold': SerializedStyles;
72
+ warning: SerializedStyles;
73
+ 'warning.bold': SerializedStyles;
74
+ success: SerializedStyles;
75
+ 'success.bold': SerializedStyles;
76
+ discovery: SerializedStyles;
77
+ 'discovery.bold': SerializedStyles;
78
+ information: SerializedStyles;
79
+ 'information.bold': SerializedStyles;
80
+ 'elevation.surface': SerializedStyles;
81
+ 'elevation.surface.raised': SerializedStyles;
82
+ 'elevation.surface.overlay': SerializedStyles;
83
+ };
84
+
85
+ // @public (undocumented)
86
+ interface BasePrimitiveProps {
87
+ testId?: string;
88
+ UNSAFE_style?: CSSProperties;
89
+ }
90
+
91
+ // @public (undocumented)
92
+ type BorderColor = keyof typeof borderColorMap;
93
+
94
+ // @public
95
+ const borderColorMap: {
96
+ 'color.border': SerializedStyles;
97
+ bold: SerializedStyles;
98
+ inverse: SerializedStyles;
99
+ focused: SerializedStyles;
100
+ input: SerializedStyles;
101
+ disabled: SerializedStyles;
102
+ brand: SerializedStyles;
103
+ selected: SerializedStyles;
104
+ danger: SerializedStyles;
105
+ warning: SerializedStyles;
106
+ success: SerializedStyles;
107
+ discovery: SerializedStyles;
108
+ information: SerializedStyles;
109
+ };
110
+
111
+ // @public (undocumented)
112
+ type BorderRadius = keyof typeof borderRadiusMap;
113
+
114
+ // @public (undocumented)
115
+ const borderRadiusMap: {
116
+ normal: SerializedStyles;
117
+ rounded: SerializedStyles;
118
+ badge: SerializedStyles;
119
+ };
120
+
121
+ // @public (undocumented)
122
+ type BorderStyle = keyof typeof borderStyleMap;
123
+
124
+ // @public (undocumented)
125
+ const borderStyleMap: {
126
+ none: SerializedStyles;
127
+ solid: SerializedStyles;
128
+ dashed: SerializedStyles;
129
+ dotted: SerializedStyles;
130
+ };
131
+
132
+ // @public (undocumented)
133
+ type BorderWidth = keyof typeof borderWidthMap;
134
+
135
+ // @public (undocumented)
136
+ const borderWidthMap: {
137
+ '0px': SerializedStyles;
138
+ '1px': SerializedStyles;
139
+ '2px': SerializedStyles;
140
+ '3px': SerializedStyles;
141
+ };
142
+
143
+ // @public (undocumented)
144
+ type BoxComponent<T extends ElementType = 'div'> = (<T extends ElementType = 'div'>(props: UNSAFE_BoxProps<T>) => ReactElement | null) & FC<UNSAFE_BoxProps<T>>;
145
+
146
+ // @public (undocumented)
147
+ type BoxPropsBase<T extends ElementType> = {
148
+ as?: T;
149
+ children?: NonTextChildren | boolean | null;
150
+ className?: string;
151
+ backgroundColor?: BackgroundColor;
152
+ borderStyle?: BorderStyle;
153
+ borderWidth?: BorderWidth;
154
+ borderColor?: BorderColor;
155
+ borderRadius?: BorderRadius;
156
+ flexDirection?: FlexDirection;
157
+ alignItems?: FlexAlignItems;
158
+ justifyContent?: FlexJustifyContent;
159
+ overflow?: Overflow;
160
+ padding?: Padding;
161
+ paddingBlock?: PaddingBlock;
162
+ paddingInline?: PaddingInline;
163
+ width?: Width;
164
+ height?: Height;
165
+ display?: Display;
166
+ position?: Position;
167
+ ref?: ComponentPropsWithRef<T>['ref'];
168
+ };
169
+
170
+ // @public (undocumented)
171
+ type ColumnGap = keyof typeof columnGapMap;
172
+
173
+ // @public
174
+ const columnGapMap: {
175
+ 'scale.0': SerializedStyles;
176
+ 'scale.025': SerializedStyles;
177
+ 'scale.050': SerializedStyles;
178
+ 'scale.075': SerializedStyles;
179
+ 'scale.100': SerializedStyles;
180
+ 'scale.150': SerializedStyles;
181
+ 'scale.200': SerializedStyles;
182
+ 'scale.250': SerializedStyles;
183
+ 'scale.300': SerializedStyles;
184
+ 'scale.400': SerializedStyles;
185
+ 'scale.500': SerializedStyles;
186
+ 'scale.600': SerializedStyles;
187
+ };
188
+
189
+ // @public (undocumented)
190
+ type Display = keyof typeof displayMap;
191
+
192
+ // @public (undocumented)
193
+ const displayMap: {
194
+ block: SerializedStyles;
195
+ inline: SerializedStyles;
196
+ flex: SerializedStyles;
197
+ inlineFlex: SerializedStyles;
198
+ };
199
+
200
+ // @public (undocumented)
201
+ type FlexAlignItems = keyof typeof flexAlignItemsMap;
202
+
203
+ // @public (undocumented)
204
+ type FlexAlignItems_2 = keyof typeof flexAlignItemsMap_2;
205
+
206
+ // @public (undocumented)
207
+ type FlexAlignItems_3 = keyof typeof flexAlignItemsMap_3;
208
+
209
+ // @public (undocumented)
210
+ const flexAlignItemsMap: {
211
+ center: SerializedStyles;
212
+ baseline: SerializedStyles;
213
+ flexStart: SerializedStyles;
214
+ flexEnd: SerializedStyles;
215
+ };
216
+
217
+ // @public (undocumented)
218
+ const flexAlignItemsMap_2: {
219
+ center: SerializedStyles;
220
+ baseline: SerializedStyles;
221
+ flexStart: SerializedStyles;
222
+ flexEnd: SerializedStyles;
223
+ start: SerializedStyles;
224
+ end: SerializedStyles;
225
+ };
226
+
227
+ // @public (undocumented)
228
+ const flexAlignItemsMap_3: {
229
+ center: SerializedStyles;
230
+ baseline: SerializedStyles;
231
+ flexStart: SerializedStyles;
232
+ flexEnd: SerializedStyles;
233
+ start: SerializedStyles;
234
+ end: SerializedStyles;
235
+ };
236
+
237
+ // @public (undocumented)
238
+ type FlexDirection = keyof typeof flexDirectionMap;
239
+
240
+ // @public (undocumented)
241
+ const flexDirectionMap: {
242
+ column: SerializedStyles;
243
+ row: SerializedStyles;
244
+ };
245
+
246
+ // @public (undocumented)
247
+ type FlexJustifyContent = keyof typeof flexJustifyContentMap;
248
+
249
+ // @public (undocumented)
250
+ type FlexJustifyContent_2 = keyof typeof flexJustifyContentMap_2;
251
+
252
+ // @public (undocumented)
253
+ type FlexJustifyContent_3 = keyof typeof flexJustifyContentMap_3;
254
+
255
+ // @public (undocumented)
256
+ const flexJustifyContentMap: {
257
+ center: SerializedStyles;
258
+ flexStart: SerializedStyles;
259
+ flexEnd: SerializedStyles;
260
+ };
261
+
262
+ // @public (undocumented)
263
+ const flexJustifyContentMap_2: {
264
+ center: SerializedStyles;
265
+ flexStart: SerializedStyles;
266
+ flexEnd: SerializedStyles;
267
+ start: SerializedStyles;
268
+ end: SerializedStyles;
269
+ };
270
+
271
+ // @public (undocumented)
272
+ const flexJustifyContentMap_3: {
273
+ center: SerializedStyles;
274
+ flexStart: SerializedStyles;
275
+ flexEnd: SerializedStyles;
276
+ start: SerializedStyles;
277
+ end: SerializedStyles;
278
+ };
279
+
280
+ // @public (undocumented)
281
+ type FlexWrap = keyof typeof flexWrapMap;
282
+
283
+ // @public (undocumented)
284
+ type FlexWrap_2 = keyof typeof flexWrapMap_2;
285
+
286
+ // @public (undocumented)
287
+ const flexWrapMap: {
288
+ wrap: SerializedStyles;
289
+ };
290
+
291
+ // @public (undocumented)
292
+ const flexWrapMap_2: {
293
+ wrap: SerializedStyles;
294
+ };
295
+
296
+ // @public (undocumented)
297
+ type FontSize = keyof typeof fontSizeMap;
298
+
299
+ // @public (undocumented)
300
+ const fontSizeMap: {
301
+ '11px': SerializedStyles;
302
+ '12px': SerializedStyles;
303
+ '14px': SerializedStyles;
304
+ };
305
+
306
+ // @public (undocumented)
307
+ type FontWeight = keyof typeof fontWeightMap;
308
+
309
+ // @public (undocumented)
310
+ const fontWeightMap: {
311
+ '400': SerializedStyles;
312
+ '500': SerializedStyles;
313
+ '600': SerializedStyles;
314
+ '700': SerializedStyles;
315
+ };
316
+
317
+ // @public (undocumented)
318
+ type Height = keyof typeof heightMap;
319
+
320
+ // @public (undocumented)
321
+ const heightMap: {
322
+ 'scale.0': SerializedStyles;
323
+ 'scale.025': SerializedStyles;
324
+ 'scale.050': SerializedStyles;
325
+ 'scale.075': SerializedStyles;
326
+ 'scale.100': SerializedStyles;
327
+ 'scale.150': SerializedStyles;
328
+ 'scale.200': SerializedStyles;
329
+ 'scale.250': SerializedStyles;
330
+ 'scale.300': SerializedStyles;
331
+ 'scale.400': SerializedStyles;
332
+ 'scale.500': SerializedStyles;
333
+ 'scale.600': SerializedStyles;
334
+ };
335
+
336
+ // @public (undocumented)
337
+ interface InlineProps extends BasePrimitiveProps {
338
+ alignItems?: FlexAlignItems_2;
339
+ children: NonTextChildren;
340
+ divider?: ReactNode;
341
+ flexWrap?: FlexWrap;
342
+ gap: ColumnGap;
343
+ justifyContent?: FlexJustifyContent_2;
344
+ }
345
+
346
+ // @public (undocumented)
347
+ type InteractionBackgroundColor = keyof typeof backgroundHoverColorMap;
348
+
349
+ // @public (undocumented)
350
+ interface InteractionSurfaceProps extends BasePrimitiveProps {
351
+ // (undocumented)
352
+ appearance?: InteractionBackgroundColor;
353
+ // (undocumented)
354
+ children: ReactNode;
355
+ }
356
+
357
+ // @public (undocumented)
358
+ type LineHeight = keyof typeof lineHeightMap;
359
+
360
+ // @public (undocumented)
361
+ const lineHeightMap: {
362
+ '12px': SerializedStyles;
363
+ '16px': SerializedStyles;
364
+ '20px': SerializedStyles;
365
+ '24px': SerializedStyles;
366
+ '28px': SerializedStyles;
367
+ '32px': SerializedStyles;
368
+ '40px': SerializedStyles;
369
+ };
370
+
371
+ // @public (undocumented)
372
+ type NonTextChildren = (JSX.Element | false | null)[] | JSX.Element;
373
+
374
+ // @public (undocumented)
375
+ type Overflow = keyof typeof overflowMap;
376
+
377
+ // @public (undocumented)
378
+ const overflowMap: {
379
+ auto: SerializedStyles;
380
+ };
381
+
382
+ // @public (undocumented)
383
+ type Padding = keyof typeof paddingMap;
384
+
385
+ // @public (undocumented)
386
+ type PaddingBlock = keyof typeof paddingBlockMap;
387
+
388
+ // @public (undocumented)
389
+ const paddingBlockMap: {
390
+ 'scale.0': SerializedStyles;
391
+ 'scale.025': SerializedStyles;
392
+ 'scale.050': SerializedStyles;
393
+ 'scale.075': SerializedStyles;
394
+ 'scale.100': SerializedStyles;
395
+ 'scale.150': SerializedStyles;
396
+ 'scale.200': SerializedStyles;
397
+ 'scale.250': SerializedStyles;
398
+ 'scale.300': SerializedStyles;
399
+ 'scale.400': SerializedStyles;
400
+ 'scale.500': SerializedStyles;
401
+ 'scale.600': SerializedStyles;
402
+ };
403
+
404
+ // @public (undocumented)
405
+ type PaddingInline = keyof typeof paddingInlineMap;
406
+
407
+ // @public (undocumented)
408
+ const paddingInlineMap: {
409
+ 'scale.0': SerializedStyles;
410
+ 'scale.025': SerializedStyles;
411
+ 'scale.050': SerializedStyles;
412
+ 'scale.075': SerializedStyles;
413
+ 'scale.100': SerializedStyles;
414
+ 'scale.150': SerializedStyles;
415
+ 'scale.200': SerializedStyles;
416
+ 'scale.250': SerializedStyles;
417
+ 'scale.300': SerializedStyles;
418
+ 'scale.400': SerializedStyles;
419
+ 'scale.500': SerializedStyles;
420
+ 'scale.600': SerializedStyles;
421
+ };
422
+
423
+ // @public
424
+ const paddingMap: {
425
+ 'scale.0': SerializedStyles;
426
+ 'scale.025': SerializedStyles;
427
+ 'scale.050': SerializedStyles;
428
+ 'scale.075': SerializedStyles;
429
+ 'scale.100': SerializedStyles;
430
+ 'scale.150': SerializedStyles;
431
+ 'scale.200': SerializedStyles;
432
+ 'scale.250': SerializedStyles;
433
+ 'scale.300': SerializedStyles;
434
+ 'scale.400': SerializedStyles;
435
+ 'scale.500': SerializedStyles;
436
+ 'scale.600': SerializedStyles;
437
+ };
438
+
439
+ // @public (undocumented)
440
+ type Position = keyof typeof positionMap;
441
+
442
+ // @public (undocumented)
443
+ const positionMap: {
444
+ absolute: SerializedStyles;
445
+ relative: SerializedStyles;
446
+ static: SerializedStyles;
447
+ };
448
+
449
+ // @public (undocumented)
450
+ type PropsToOmit = 'as' | 'className' | 'style';
451
+
452
+ // @public (undocumented)
453
+ type RowGap = keyof typeof rowGapMap;
454
+
455
+ // @public
456
+ const rowGapMap: {
457
+ 'scale.0': SerializedStyles;
458
+ 'scale.025': SerializedStyles;
459
+ 'scale.050': SerializedStyles;
460
+ 'scale.075': SerializedStyles;
461
+ 'scale.100': SerializedStyles;
462
+ 'scale.150': SerializedStyles;
463
+ 'scale.200': SerializedStyles;
464
+ 'scale.250': SerializedStyles;
465
+ 'scale.300': SerializedStyles;
466
+ 'scale.400': SerializedStyles;
467
+ 'scale.500': SerializedStyles;
468
+ 'scale.600': SerializedStyles;
469
+ };
470
+
471
+ // @public (undocumented)
472
+ interface StackProps extends BasePrimitiveProps {
473
+ alignItems?: FlexAlignItems_3;
474
+ children: NonTextChildren;
475
+ flexWrap?: FlexWrap_2;
476
+ gap: RowGap;
477
+ justifyContent?: FlexJustifyContent_3;
478
+ }
479
+
480
+ // @public (undocumented)
481
+ type TextAlign = keyof typeof textAlignMap;
482
+
483
+ // @public (undocumented)
484
+ const textAlignMap: {
485
+ center: SerializedStyles;
486
+ end: SerializedStyles;
487
+ start: SerializedStyles;
488
+ };
489
+
490
+ // @public (undocumented)
491
+ type TextColor = keyof typeof textColorMap;
492
+
493
+ // @public
494
+ const textColorMap: {
495
+ 'color.text': SerializedStyles;
496
+ subtle: SerializedStyles;
497
+ subtlest: SerializedStyles;
498
+ disabled: SerializedStyles;
499
+ inverse: SerializedStyles;
500
+ brand: SerializedStyles;
501
+ selected: SerializedStyles;
502
+ danger: SerializedStyles;
503
+ warning: SerializedStyles;
504
+ 'warning.inverse': SerializedStyles;
505
+ success: SerializedStyles;
506
+ discovery: SerializedStyles;
507
+ information: SerializedStyles;
508
+ };
509
+
510
+ // @public (undocumented)
511
+ type TextTransform = keyof typeof textTransformMap;
512
+
513
+ // @public (undocumented)
514
+ const textTransformMap: {
515
+ none: SerializedStyles;
516
+ lowercase: SerializedStyles;
517
+ uppercase: SerializedStyles;
518
+ };
519
+
520
+ // @internal
521
+ export const UNSAFE_Box: BoxComponent;
522
+
523
+ // @public (undocumented)
524
+ export type UNSAFE_BoxProps<T extends ElementType = 'div'> = Omit<ComponentPropsWithoutRef<T>, PropsToOmit> & BasePrimitiveProps & BoxPropsBase<T>;
525
+
526
+ // @public
527
+ export const UNSAFE_Inline: ForwardRefExoticComponent<InlineProps & RefAttributes<HTMLDivElement>>;
528
+
529
+ // @public (undocumented)
530
+ export const UNSAFE_InteractionSurface: ({ appearance, children, testId, }: InteractionSurfaceProps) => jsx.JSX.Element;
531
+
532
+ // @public
533
+ export const UNSAFE_Stack: ForwardRefExoticComponent<StackProps & RefAttributes<HTMLDivElement>>;
534
+
535
+ // @internal
536
+ export const UNSAFE_Text: FC<UNSAFE_TextProps>;
537
+
538
+ // @public (undocumented)
539
+ export interface UNSAFE_TextProps extends BasePrimitiveProps {
540
+ as?: AsElement;
541
+ children: ReactNode;
542
+ color?: TextColor;
543
+ fontSize?: FontSize;
544
+ fontWeight?: FontWeight;
545
+ lineHeight?: LineHeight;
546
+ shouldTruncate?: boolean;
547
+ textAlign?: TextAlign;
548
+ textTransform?: TextTransform;
549
+ verticalAlign?: VerticalAlign;
550
+ }
551
+
552
+ // @public (undocumented)
553
+ type VerticalAlign = keyof typeof verticalAlignMap;
554
+
555
+ // @public (undocumented)
556
+ const verticalAlignMap: {
557
+ top: SerializedStyles;
558
+ middle: SerializedStyles;
559
+ bottom: SerializedStyles;
560
+ };
561
+
562
+ // @public (undocumented)
563
+ type Width = keyof typeof widthMap;
564
+
565
+ // @public (undocumented)
566
+ const widthMap: {
567
+ 'scale.0': SerializedStyles;
568
+ 'scale.025': SerializedStyles;
569
+ 'scale.050': SerializedStyles;
570
+ 'scale.075': SerializedStyles;
571
+ 'scale.100': SerializedStyles;
572
+ 'scale.150': SerializedStyles;
573
+ 'scale.200': SerializedStyles;
574
+ 'scale.250': SerializedStyles;
575
+ 'scale.300': SerializedStyles;
576
+ 'scale.400': SerializedStyles;
577
+ 'scale.500': SerializedStyles;
578
+ 'scale.600': SerializedStyles;
579
+ };
580
+
581
+ // (No @packageDocumentation comment for this package)
582
+
583
+ ```
@@ -1,21 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.SPACING_SCALE = void 0;
7
- var SPACING_SCALE = {
8
- 'sp-0': 0,
9
- 'sp-25': 2,
10
- 'sp-50': 4,
11
- 'sp-75': 6,
12
- 'sp-100': 8,
13
- 'sp-150': 12,
14
- 'sp-200': 16,
15
- 'sp-300': 24,
16
- 'sp-400': 32,
17
- 'sp-500': 40,
18
- 'sp-600': 48,
19
- 'sp-800': 64
20
- };
21
- exports.SPACING_SCALE = SPACING_SCALE;
@@ -1,14 +0,0 @@
1
- export const SPACING_SCALE = {
2
- 'sp-0': 0,
3
- 'sp-25': 2,
4
- 'sp-50': 4,
5
- 'sp-75': 6,
6
- 'sp-100': 8,
7
- 'sp-150': 12,
8
- 'sp-200': 16,
9
- 'sp-300': 24,
10
- 'sp-400': 32,
11
- 'sp-500': 40,
12
- 'sp-600': 48,
13
- 'sp-800': 64
14
- };
@@ -1,14 +0,0 @@
1
- export var SPACING_SCALE = {
2
- 'sp-0': 0,
3
- 'sp-25': 2,
4
- 'sp-50': 4,
5
- 'sp-75': 6,
6
- 'sp-100': 8,
7
- 'sp-150': 12,
8
- 'sp-200': 16,
9
- 'sp-300': 24,
10
- 'sp-400': 32,
11
- 'sp-500': 40,
12
- 'sp-600': 48,
13
- 'sp-800': 64
14
- };
@@ -1,15 +0,0 @@
1
- export declare const SPACING_SCALE: {
2
- 'sp-0': number;
3
- 'sp-25': number;
4
- 'sp-50': number;
5
- 'sp-75': number;
6
- 'sp-100': number;
7
- 'sp-150': number;
8
- 'sp-200': number;
9
- 'sp-300': number;
10
- 'sp-400': number;
11
- 'sp-500': number;
12
- 'sp-600': number;
13
- 'sp-800': number;
14
- };
15
- export declare type GlobalSpacingToken = keyof typeof SPACING_SCALE;
@@ -1,15 +0,0 @@
1
- export declare const SPACING_SCALE: {
2
- 'sp-0': number;
3
- 'sp-25': number;
4
- 'sp-50': number;
5
- 'sp-75': number;
6
- 'sp-100': number;
7
- 'sp-150': number;
8
- 'sp-200': number;
9
- 'sp-300': number;
10
- 'sp-400': number;
11
- 'sp-500': number;
12
- 'sp-600': number;
13
- 'sp-800': number;
14
- };
15
- export declare type GlobalSpacingToken = keyof typeof SPACING_SCALE;
package/src/constants.tsx DELETED
@@ -1,16 +0,0 @@
1
- export const SPACING_SCALE = {
2
- 'sp-0': 0,
3
- 'sp-25': 2,
4
- 'sp-50': 4,
5
- 'sp-75': 6,
6
- 'sp-100': 8,
7
- 'sp-150': 12,
8
- 'sp-200': 16,
9
- 'sp-300': 24,
10
- 'sp-400': 32,
11
- 'sp-500': 40,
12
- 'sp-600': 48,
13
- 'sp-800': 64,
14
- };
15
-
16
- export type GlobalSpacingToken = keyof typeof SPACING_SCALE;