@atlaskit/ds-explorations 2.3.2 → 2.4.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/CHANGELOG.md +6 -0
- package/box/package.json +15 -0
- package/dist/cjs/components/box.partial.js +620 -0
- package/dist/cjs/components/inline.partial.js +182 -0
- package/dist/cjs/components/stack.partial.js +148 -0
- package/dist/cjs/index.js +21 -0
- package/dist/es2019/components/box.partial.js +614 -0
- package/dist/es2019/components/inline.partial.js +177 -0
- package/dist/es2019/components/stack.partial.js +144 -0
- package/dist/es2019/index.js +3 -0
- package/dist/esm/components/box.partial.js +617 -0
- package/dist/esm/components/inline.partial.js +177 -0
- package/dist/esm/components/stack.partial.js +143 -0
- package/dist/esm/index.js +3 -0
- package/dist/types/components/box.partial.d.ts +357 -0
- package/dist/types/components/inline.partial.d.ts +108 -0
- package/dist/types/components/stack.partial.d.ts +92 -0
- package/dist/types/components/surface-provider.d.ts +2 -2
- package/dist/types/index.d.ts +6 -0
- package/dist/types-ts4.5/components/box.partial.d.ts +357 -0
- package/dist/types-ts4.5/components/inline.partial.d.ts +108 -0
- package/dist/types-ts4.5/components/stack.partial.d.ts +92 -0
- package/dist/types-ts4.5/components/surface-provider.d.ts +2 -2
- package/dist/types-ts4.5/index.d.ts +6 -0
- package/examples/00-basic.tsx +22 -0
- package/examples/01-box.tsx +171 -0
- package/examples/02-text-advanced.tsx +20 -11
- package/examples/02-text.tsx +10 -15
- package/examples/03-stack.tsx +99 -0
- package/examples/04-inline.tsx +99 -0
- package/examples/05-badge.tsx +5 -9
- package/examples/06-section-message.tsx +4 -2
- package/examples/07-comment.tsx +3 -1
- package/examples/08-lozenge.tsx +4 -8
- package/examples/99-interactions.tsx +33 -49
- package/inline/package.json +15 -0
- package/package.json +5 -3
- package/report.api.md +465 -0
- package/scripts/codegen-styles.tsx +89 -16
- package/src/components/__tests__/unit/box.test.tsx +55 -0
- package/src/components/__tests__/unit/inline.test.tsx +43 -0
- package/src/components/__tests__/unit/interaction-suface.test.tsx +2 -2
- package/src/components/__tests__/unit/stack.test.tsx +31 -0
- package/src/components/__tests__/visual-regression/__image_snapshots__/inline-snapshot-test-tsx-inline-alignment-example-should-match-snapshot-1-snap.png +3 -0
- package/src/components/__tests__/visual-regression/__image_snapshots__/inline-snapshot-test-tsx-inline-spacing-example-should-match-snapshot-1-snap.png +3 -0
- package/src/components/__tests__/visual-regression/__image_snapshots__/stack-snapshot-test-tsx-stack-alignment-example-should-match-snapshot-1-snap.png +3 -0
- package/src/components/__tests__/visual-regression/__image_snapshots__/stack-snapshot-test-tsx-stack-spacing-example-should-match-snapshot-1-snap.png +3 -0
- package/src/components/__tests__/visual-regression/inline-snapshot-test.tsx +28 -0
- package/src/components/__tests__/visual-regression/stack-snapshot-test.tsx +28 -0
- package/src/components/__tests__/vr-tests/__snapshots__/box--default.png +0 -0
- package/src/components/__tests__/vr-tests/box-snapshot-test.vr.tsx +6 -0
- package/src/components/box.partial.tsx +706 -0
- package/src/components/inline.partial.tsx +218 -0
- package/src/components/stack.partial.tsx +174 -0
- package/src/components/surface-provider.tsx +1 -1
- package/src/index.tsx +6 -0
- package/stack/package.json +15 -0
- package/tmp/api-report-tmp.d.ts +451 -0
- package/tsconfig.app.json +0 -3
- package/tsconfig.dev.json +6 -0
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -4,10 +4,17 @@
|
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
|
|
7
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
8
|
+
import { ComponentPropsWithRef } from 'react';
|
|
7
9
|
import type { CSSProperties } from 'react';
|
|
10
|
+
import { ElementType } from 'react';
|
|
8
11
|
import { FC } from 'react';
|
|
12
|
+
import { ForwardRefExoticComponent } from 'react';
|
|
9
13
|
import { jsx } from '@emotion/react';
|
|
14
|
+
import { MemoExoticComponent } from 'react';
|
|
15
|
+
import { ReactElement } from 'react';
|
|
10
16
|
import { ReactNode } from 'react';
|
|
17
|
+
import { RefAttributes } from 'react';
|
|
11
18
|
import { SerializedStyles } from '@emotion/react';
|
|
12
19
|
|
|
13
20
|
// @public (undocumented)
|
|
@@ -16,6 +23,41 @@ const asAllowlist: readonly ["span", "div", "p", "strong"];
|
|
|
16
23
|
// @public (undocumented)
|
|
17
24
|
type AsElement = (typeof asAllowlist)[number];
|
|
18
25
|
|
|
26
|
+
// @public (undocumented)
|
|
27
|
+
type BackgroundColor = keyof typeof backgroundColorMap;
|
|
28
|
+
|
|
29
|
+
// @public (undocumented)
|
|
30
|
+
const backgroundColorMap: {
|
|
31
|
+
readonly disabled: SerializedStyles;
|
|
32
|
+
readonly input: SerializedStyles;
|
|
33
|
+
readonly 'inverse.subtle': SerializedStyles;
|
|
34
|
+
readonly neutral: SerializedStyles;
|
|
35
|
+
readonly 'neutral.subtle': SerializedStyles;
|
|
36
|
+
readonly 'neutral.bold': SerializedStyles;
|
|
37
|
+
readonly selected: SerializedStyles;
|
|
38
|
+
readonly 'selected.bold': SerializedStyles;
|
|
39
|
+
readonly 'brand.subtlest': SerializedStyles;
|
|
40
|
+
readonly 'brand.bold': SerializedStyles;
|
|
41
|
+
readonly 'brand.boldest': SerializedStyles;
|
|
42
|
+
readonly danger: SerializedStyles;
|
|
43
|
+
readonly 'danger.bold': SerializedStyles;
|
|
44
|
+
readonly warning: SerializedStyles;
|
|
45
|
+
readonly 'warning.bold': SerializedStyles;
|
|
46
|
+
readonly success: SerializedStyles;
|
|
47
|
+
readonly 'success.bold': SerializedStyles;
|
|
48
|
+
readonly discovery: SerializedStyles;
|
|
49
|
+
readonly 'discovery.bold': SerializedStyles;
|
|
50
|
+
readonly information: SerializedStyles;
|
|
51
|
+
readonly 'information.bold': SerializedStyles;
|
|
52
|
+
readonly 'color.blanket': SerializedStyles;
|
|
53
|
+
readonly 'color.blanket.selected': SerializedStyles;
|
|
54
|
+
readonly 'color.blanket.danger': SerializedStyles;
|
|
55
|
+
readonly 'elevation.surface': SerializedStyles;
|
|
56
|
+
readonly 'elevation.surface.overlay': SerializedStyles;
|
|
57
|
+
readonly 'elevation.surface.raised': SerializedStyles;
|
|
58
|
+
readonly 'elevation.surface.sunken': SerializedStyles;
|
|
59
|
+
};
|
|
60
|
+
|
|
19
61
|
// @public (undocumented)
|
|
20
62
|
const backgroundHoverColorMap: {
|
|
21
63
|
'accent.lime.subtlest': SerializedStyles;
|
|
@@ -89,6 +131,222 @@ interface BasePrimitiveProps {
|
|
|
89
131
|
UNSAFE_style?: CSSProperties;
|
|
90
132
|
}
|
|
91
133
|
|
|
134
|
+
// @public (undocumented)
|
|
135
|
+
type BorderColor = keyof typeof borderColorMap;
|
|
136
|
+
|
|
137
|
+
// @public
|
|
138
|
+
const borderColorMap: {
|
|
139
|
+
readonly 'color.border': SerializedStyles;
|
|
140
|
+
readonly disabled: SerializedStyles;
|
|
141
|
+
readonly focused: SerializedStyles;
|
|
142
|
+
readonly input: SerializedStyles;
|
|
143
|
+
readonly inverse: SerializedStyles;
|
|
144
|
+
readonly selected: SerializedStyles;
|
|
145
|
+
readonly brand: SerializedStyles;
|
|
146
|
+
readonly danger: SerializedStyles;
|
|
147
|
+
readonly warning: SerializedStyles;
|
|
148
|
+
readonly success: SerializedStyles;
|
|
149
|
+
readonly discovery: SerializedStyles;
|
|
150
|
+
readonly information: SerializedStyles;
|
|
151
|
+
readonly bold: SerializedStyles;
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
// @public (undocumented)
|
|
155
|
+
type BorderRadius = keyof typeof borderRadiusMap;
|
|
156
|
+
|
|
157
|
+
// @public (undocumented)
|
|
158
|
+
const borderRadiusMap: {
|
|
159
|
+
normal: SerializedStyles;
|
|
160
|
+
rounded: SerializedStyles;
|
|
161
|
+
badge: SerializedStyles;
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
// @public (undocumented)
|
|
165
|
+
type BorderStyle = keyof typeof borderStyleMap;
|
|
166
|
+
|
|
167
|
+
// @public (undocumented)
|
|
168
|
+
const borderStyleMap: {
|
|
169
|
+
none: SerializedStyles;
|
|
170
|
+
solid: SerializedStyles;
|
|
171
|
+
dashed: SerializedStyles;
|
|
172
|
+
dotted: SerializedStyles;
|
|
173
|
+
};
|
|
174
|
+
|
|
175
|
+
// @public (undocumented)
|
|
176
|
+
type BorderWidth = keyof typeof borderWidthMap;
|
|
177
|
+
|
|
178
|
+
// @public (undocumented)
|
|
179
|
+
const borderWidthMap: {
|
|
180
|
+
'0px': SerializedStyles;
|
|
181
|
+
'1px': SerializedStyles;
|
|
182
|
+
'2px': SerializedStyles;
|
|
183
|
+
'3px': SerializedStyles;
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
// @public (undocumented)
|
|
187
|
+
type BoxComponent<T extends ElementType = 'div'> = (<T extends ElementType = 'div'>(props: UNSAFE_BoxProps<T>) => ReactElement | null) & FC<UNSAFE_BoxProps<T>>;
|
|
188
|
+
|
|
189
|
+
// @public (undocumented)
|
|
190
|
+
type BoxPropsBase<T extends ElementType> = {
|
|
191
|
+
as?: T;
|
|
192
|
+
children?: ReactNode;
|
|
193
|
+
className?: string;
|
|
194
|
+
backgroundColor?: BackgroundColor;
|
|
195
|
+
shadow?: Shadow;
|
|
196
|
+
borderStyle?: BorderStyle;
|
|
197
|
+
borderWidth?: BorderWidth;
|
|
198
|
+
borderColor?: BorderColor;
|
|
199
|
+
borderRadius?: BorderRadius;
|
|
200
|
+
layer?: Layer;
|
|
201
|
+
flexDirection?: FlexDirection;
|
|
202
|
+
alignItems?: FlexAlignItems;
|
|
203
|
+
justifyContent?: FlexJustifyContent;
|
|
204
|
+
overflow?: Overflow;
|
|
205
|
+
padding?: Padding;
|
|
206
|
+
paddingBlock?: PaddingBlock;
|
|
207
|
+
paddingInline?: PaddingInline;
|
|
208
|
+
width?: Width;
|
|
209
|
+
height?: Height;
|
|
210
|
+
display?: Display;
|
|
211
|
+
position?: Position;
|
|
212
|
+
ref?: ComponentPropsWithRef<T>['ref'];
|
|
213
|
+
};
|
|
214
|
+
|
|
215
|
+
// @public (undocumented)
|
|
216
|
+
type ColumnGap = keyof typeof columnGapMap;
|
|
217
|
+
|
|
218
|
+
// @public
|
|
219
|
+
const columnGapMap: {
|
|
220
|
+
'space.0': SerializedStyles;
|
|
221
|
+
'space.025': SerializedStyles;
|
|
222
|
+
'space.050': SerializedStyles;
|
|
223
|
+
'space.075': SerializedStyles;
|
|
224
|
+
'space.100': SerializedStyles;
|
|
225
|
+
'space.1000': SerializedStyles;
|
|
226
|
+
'space.150': SerializedStyles;
|
|
227
|
+
'space.200': SerializedStyles;
|
|
228
|
+
'space.250': SerializedStyles;
|
|
229
|
+
'space.300': SerializedStyles;
|
|
230
|
+
'space.400': SerializedStyles;
|
|
231
|
+
'space.500': SerializedStyles;
|
|
232
|
+
'space.600': SerializedStyles;
|
|
233
|
+
'space.800': SerializedStyles;
|
|
234
|
+
};
|
|
235
|
+
|
|
236
|
+
// @public (undocumented)
|
|
237
|
+
type Display = keyof typeof displayMap;
|
|
238
|
+
|
|
239
|
+
// @public (undocumented)
|
|
240
|
+
const displayMap: {
|
|
241
|
+
block: SerializedStyles;
|
|
242
|
+
inline: SerializedStyles;
|
|
243
|
+
flex: SerializedStyles;
|
|
244
|
+
inlineFlex: SerializedStyles;
|
|
245
|
+
inlineBlock: SerializedStyles;
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
// @public
|
|
249
|
+
type FlexAlignItems = keyof typeof flexAlignItemsMap;
|
|
250
|
+
|
|
251
|
+
// @public (undocumented)
|
|
252
|
+
type FlexAlignItems_2 = keyof typeof flexAlignItemsMap_2;
|
|
253
|
+
|
|
254
|
+
// @public (undocumented)
|
|
255
|
+
type FlexAlignItems_3 = keyof typeof flexAlignItemsMap_3;
|
|
256
|
+
|
|
257
|
+
// @public (undocumented)
|
|
258
|
+
const flexAlignItemsMap: {
|
|
259
|
+
center: SerializedStyles;
|
|
260
|
+
baseline: SerializedStyles;
|
|
261
|
+
flexStart: SerializedStyles;
|
|
262
|
+
flexEnd: SerializedStyles;
|
|
263
|
+
start: SerializedStyles;
|
|
264
|
+
end: SerializedStyles;
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
// @public (undocumented)
|
|
268
|
+
const flexAlignItemsMap_2: {
|
|
269
|
+
center: SerializedStyles;
|
|
270
|
+
baseline: SerializedStyles;
|
|
271
|
+
flexStart: SerializedStyles;
|
|
272
|
+
flexEnd: SerializedStyles;
|
|
273
|
+
start: SerializedStyles;
|
|
274
|
+
end: SerializedStyles;
|
|
275
|
+
};
|
|
276
|
+
|
|
277
|
+
// @public (undocumented)
|
|
278
|
+
const flexAlignItemsMap_3: {
|
|
279
|
+
center: SerializedStyles;
|
|
280
|
+
baseline: SerializedStyles;
|
|
281
|
+
flexStart: SerializedStyles;
|
|
282
|
+
flexEnd: SerializedStyles;
|
|
283
|
+
start: SerializedStyles;
|
|
284
|
+
end: SerializedStyles;
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
// @public
|
|
288
|
+
type FlexDirection = keyof typeof flexDirectionMap;
|
|
289
|
+
|
|
290
|
+
// @public (undocumented)
|
|
291
|
+
const flexDirectionMap: {
|
|
292
|
+
column: SerializedStyles;
|
|
293
|
+
row: SerializedStyles;
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
// @public
|
|
297
|
+
type FlexJustifyContent = keyof typeof flexJustifyContentMap;
|
|
298
|
+
|
|
299
|
+
// @public (undocumented)
|
|
300
|
+
type FlexJustifyContent_2 = keyof typeof flexJustifyContentMap_2;
|
|
301
|
+
|
|
302
|
+
// @public (undocumented)
|
|
303
|
+
type FlexJustifyContent_3 = keyof typeof flexJustifyContentMap_3;
|
|
304
|
+
|
|
305
|
+
// @public (undocumented)
|
|
306
|
+
const flexJustifyContentMap: {
|
|
307
|
+
center: SerializedStyles;
|
|
308
|
+
flexStart: SerializedStyles;
|
|
309
|
+
flexEnd: SerializedStyles;
|
|
310
|
+
start: SerializedStyles;
|
|
311
|
+
end: SerializedStyles;
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
// @public (undocumented)
|
|
315
|
+
const flexJustifyContentMap_2: {
|
|
316
|
+
center: SerializedStyles;
|
|
317
|
+
flexStart: SerializedStyles;
|
|
318
|
+
'space-between': SerializedStyles;
|
|
319
|
+
flexEnd: SerializedStyles;
|
|
320
|
+
start: SerializedStyles;
|
|
321
|
+
end: SerializedStyles;
|
|
322
|
+
spaceBetween: SerializedStyles;
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
// @public (undocumented)
|
|
326
|
+
const flexJustifyContentMap_3: {
|
|
327
|
+
center: SerializedStyles;
|
|
328
|
+
flexStart: SerializedStyles;
|
|
329
|
+
flexEnd: SerializedStyles;
|
|
330
|
+
start: SerializedStyles;
|
|
331
|
+
end: SerializedStyles;
|
|
332
|
+
};
|
|
333
|
+
|
|
334
|
+
// @public (undocumented)
|
|
335
|
+
type FlexWrap = keyof typeof flexWrapMap;
|
|
336
|
+
|
|
337
|
+
// @public (undocumented)
|
|
338
|
+
type FlexWrap_2 = keyof typeof flexWrapMap_2;
|
|
339
|
+
|
|
340
|
+
// @public (undocumented)
|
|
341
|
+
const flexWrapMap: {
|
|
342
|
+
wrap: SerializedStyles;
|
|
343
|
+
};
|
|
344
|
+
|
|
345
|
+
// @public (undocumented)
|
|
346
|
+
const flexWrapMap_2: {
|
|
347
|
+
wrap: SerializedStyles;
|
|
348
|
+
};
|
|
349
|
+
|
|
92
350
|
// @public (undocumented)
|
|
93
351
|
type FontSize = keyof typeof fontSizeMap;
|
|
94
352
|
|
|
@@ -115,6 +373,21 @@ const fontWeightMap: {
|
|
|
115
373
|
semibold: SerializedStyles;
|
|
116
374
|
};
|
|
117
375
|
|
|
376
|
+
// @public (undocumented)
|
|
377
|
+
type Height = keyof typeof heightMap;
|
|
378
|
+
|
|
379
|
+
// @public (undocumented)
|
|
380
|
+
const heightMap: {
|
|
381
|
+
'100%': SerializedStyles;
|
|
382
|
+
'size.100': SerializedStyles;
|
|
383
|
+
'size.1000': SerializedStyles;
|
|
384
|
+
'size.200': SerializedStyles;
|
|
385
|
+
'size.300': SerializedStyles;
|
|
386
|
+
'size.400': SerializedStyles;
|
|
387
|
+
'size.500': SerializedStyles;
|
|
388
|
+
'size.600': SerializedStyles;
|
|
389
|
+
};
|
|
390
|
+
|
|
118
391
|
// @public (undocumented)
|
|
119
392
|
type InteractionBackgroundColor = keyof typeof backgroundHoverColorMap;
|
|
120
393
|
|
|
@@ -126,6 +399,22 @@ interface InteractionSurfaceProps extends BasePrimitiveProps {
|
|
|
126
399
|
children: ReactNode;
|
|
127
400
|
}
|
|
128
401
|
|
|
402
|
+
// @public (undocumented)
|
|
403
|
+
type Layer = keyof typeof LAYERS;
|
|
404
|
+
|
|
405
|
+
// @public (undocumented)
|
|
406
|
+
const LAYERS: {
|
|
407
|
+
readonly card: 100;
|
|
408
|
+
readonly navigation: 200;
|
|
409
|
+
readonly dialog: 300;
|
|
410
|
+
readonly layer: 400;
|
|
411
|
+
readonly blanket: 500;
|
|
412
|
+
readonly modal: 510;
|
|
413
|
+
readonly flag: 600;
|
|
414
|
+
readonly spotlight: 700;
|
|
415
|
+
readonly tooltip: 800;
|
|
416
|
+
};
|
|
417
|
+
|
|
129
418
|
// @public (undocumented)
|
|
130
419
|
type LineHeight = keyof typeof lineHeightMap;
|
|
131
420
|
|
|
@@ -140,6 +429,122 @@ const lineHeightMap: {
|
|
|
140
429
|
'lineHeight.600': SerializedStyles;
|
|
141
430
|
};
|
|
142
431
|
|
|
432
|
+
// @public (undocumented)
|
|
433
|
+
type Overflow = keyof typeof overflowMap;
|
|
434
|
+
|
|
435
|
+
// @public (undocumented)
|
|
436
|
+
const overflowMap: {
|
|
437
|
+
auto: SerializedStyles;
|
|
438
|
+
hidden: SerializedStyles;
|
|
439
|
+
};
|
|
440
|
+
|
|
441
|
+
// @public (undocumented)
|
|
442
|
+
type Padding = keyof typeof paddingMap;
|
|
443
|
+
|
|
444
|
+
// @public (undocumented)
|
|
445
|
+
type PaddingBlock = keyof typeof paddingBlockMap;
|
|
446
|
+
|
|
447
|
+
// @public (undocumented)
|
|
448
|
+
const paddingBlockMap: {
|
|
449
|
+
'space.0': SerializedStyles;
|
|
450
|
+
'space.025': SerializedStyles;
|
|
451
|
+
'space.050': SerializedStyles;
|
|
452
|
+
'space.075': SerializedStyles;
|
|
453
|
+
'space.100': SerializedStyles;
|
|
454
|
+
'space.1000': SerializedStyles;
|
|
455
|
+
'space.150': SerializedStyles;
|
|
456
|
+
'space.200': SerializedStyles;
|
|
457
|
+
'space.250': SerializedStyles;
|
|
458
|
+
'space.300': SerializedStyles;
|
|
459
|
+
'space.400': SerializedStyles;
|
|
460
|
+
'space.500': SerializedStyles;
|
|
461
|
+
'space.600': SerializedStyles;
|
|
462
|
+
'space.800': SerializedStyles;
|
|
463
|
+
};
|
|
464
|
+
|
|
465
|
+
// @public (undocumented)
|
|
466
|
+
type PaddingInline = keyof typeof paddingInlineMap;
|
|
467
|
+
|
|
468
|
+
// @public (undocumented)
|
|
469
|
+
const paddingInlineMap: {
|
|
470
|
+
'space.0': SerializedStyles;
|
|
471
|
+
'space.025': SerializedStyles;
|
|
472
|
+
'space.050': SerializedStyles;
|
|
473
|
+
'space.075': SerializedStyles;
|
|
474
|
+
'space.100': SerializedStyles;
|
|
475
|
+
'space.1000': SerializedStyles;
|
|
476
|
+
'space.150': SerializedStyles;
|
|
477
|
+
'space.200': SerializedStyles;
|
|
478
|
+
'space.250': SerializedStyles;
|
|
479
|
+
'space.300': SerializedStyles;
|
|
480
|
+
'space.400': SerializedStyles;
|
|
481
|
+
'space.500': SerializedStyles;
|
|
482
|
+
'space.600': SerializedStyles;
|
|
483
|
+
'space.800': SerializedStyles;
|
|
484
|
+
};
|
|
485
|
+
|
|
486
|
+
// @public
|
|
487
|
+
const paddingMap: {
|
|
488
|
+
'space.0': SerializedStyles;
|
|
489
|
+
'space.025': SerializedStyles;
|
|
490
|
+
'space.050': SerializedStyles;
|
|
491
|
+
'space.075': SerializedStyles;
|
|
492
|
+
'space.100': SerializedStyles;
|
|
493
|
+
'space.1000': SerializedStyles;
|
|
494
|
+
'space.150': SerializedStyles;
|
|
495
|
+
'space.200': SerializedStyles;
|
|
496
|
+
'space.250': SerializedStyles;
|
|
497
|
+
'space.300': SerializedStyles;
|
|
498
|
+
'space.400': SerializedStyles;
|
|
499
|
+
'space.500': SerializedStyles;
|
|
500
|
+
'space.600': SerializedStyles;
|
|
501
|
+
'space.800': SerializedStyles;
|
|
502
|
+
};
|
|
503
|
+
|
|
504
|
+
// @public (undocumented)
|
|
505
|
+
type Position = keyof typeof positionMap;
|
|
506
|
+
|
|
507
|
+
// @public (undocumented)
|
|
508
|
+
const positionMap: {
|
|
509
|
+
absolute: SerializedStyles;
|
|
510
|
+
fixed: SerializedStyles;
|
|
511
|
+
relative: SerializedStyles;
|
|
512
|
+
static: SerializedStyles;
|
|
513
|
+
};
|
|
514
|
+
|
|
515
|
+
// @public (undocumented)
|
|
516
|
+
type RowGap = keyof typeof rowGapMap;
|
|
517
|
+
|
|
518
|
+
// @public
|
|
519
|
+
const rowGapMap: {
|
|
520
|
+
'space.0': SerializedStyles;
|
|
521
|
+
'space.025': SerializedStyles;
|
|
522
|
+
'space.050': SerializedStyles;
|
|
523
|
+
'space.075': SerializedStyles;
|
|
524
|
+
'space.100': SerializedStyles;
|
|
525
|
+
'space.1000': SerializedStyles;
|
|
526
|
+
'space.150': SerializedStyles;
|
|
527
|
+
'space.200': SerializedStyles;
|
|
528
|
+
'space.250': SerializedStyles;
|
|
529
|
+
'space.300': SerializedStyles;
|
|
530
|
+
'space.400': SerializedStyles;
|
|
531
|
+
'space.500': SerializedStyles;
|
|
532
|
+
'space.600': SerializedStyles;
|
|
533
|
+
'space.800': SerializedStyles;
|
|
534
|
+
};
|
|
535
|
+
|
|
536
|
+
// @public (undocumented)
|
|
537
|
+
type Shadow = keyof typeof shadowMap;
|
|
538
|
+
|
|
539
|
+
// @public (undocumented)
|
|
540
|
+
const shadowMap: {
|
|
541
|
+
readonly overflow: SerializedStyles;
|
|
542
|
+
readonly 'overflow.perimeter': SerializedStyles;
|
|
543
|
+
readonly 'overflow.spread': SerializedStyles;
|
|
544
|
+
readonly overlay: SerializedStyles;
|
|
545
|
+
readonly raised: SerializedStyles;
|
|
546
|
+
};
|
|
547
|
+
|
|
143
548
|
// @public (undocumented)
|
|
144
549
|
type TextAlign = keyof typeof textAlignMap;
|
|
145
550
|
|
|
@@ -180,9 +585,40 @@ const textTransformMap: {
|
|
|
180
585
|
uppercase: SerializedStyles;
|
|
181
586
|
};
|
|
182
587
|
|
|
588
|
+
// @public @deprecated
|
|
589
|
+
export const UNSAFE_Box: BoxComponent;
|
|
590
|
+
|
|
591
|
+
// @public @deprecated (undocumented)
|
|
592
|
+
export type UNSAFE_BoxProps<T extends ElementType = 'div'> = Omit<ComponentPropsWithoutRef<T>, 'as' | 'className' | 'style'> & BasePrimitiveProps & BoxPropsBase<T>;
|
|
593
|
+
|
|
594
|
+
// @public @deprecated
|
|
595
|
+
export const UNSAFE_Inline: MemoExoticComponent<ForwardRefExoticComponent<UNSAFE_InlineProps & RefAttributes<HTMLDivElement>>>;
|
|
596
|
+
|
|
597
|
+
// @public @deprecated (undocumented)
|
|
598
|
+
export interface UNSAFE_InlineProps extends BasePrimitiveProps {
|
|
599
|
+
alignItems?: FlexAlignItems_2;
|
|
600
|
+
children: ReactNode;
|
|
601
|
+
divider?: ReactNode;
|
|
602
|
+
flexWrap?: FlexWrap;
|
|
603
|
+
gap: ColumnGap;
|
|
604
|
+
justifyContent?: FlexJustifyContent_2;
|
|
605
|
+
}
|
|
606
|
+
|
|
183
607
|
// @public (undocumented)
|
|
184
608
|
export const UNSAFE_InteractionSurface: ({ appearance, children, testId, }: InteractionSurfaceProps) => jsx.JSX.Element;
|
|
185
609
|
|
|
610
|
+
// @public @deprecated
|
|
611
|
+
export const UNSAFE_Stack: MemoExoticComponent<ForwardRefExoticComponent<UNSAFE_StackProps & RefAttributes<HTMLDivElement>>>;
|
|
612
|
+
|
|
613
|
+
// @public @deprecated (undocumented)
|
|
614
|
+
export interface UNSAFE_StackProps extends BasePrimitiveProps {
|
|
615
|
+
alignItems?: FlexAlignItems_3;
|
|
616
|
+
children: ReactNode;
|
|
617
|
+
flexWrap?: FlexWrap_2;
|
|
618
|
+
gap: RowGap;
|
|
619
|
+
justifyContent?: FlexJustifyContent_3;
|
|
620
|
+
}
|
|
621
|
+
|
|
186
622
|
// @internal
|
|
187
623
|
export const UNSAFE_Text: FC<UNSAFE_TextProps>;
|
|
188
624
|
|
|
@@ -211,6 +647,21 @@ const verticalAlignMap: {
|
|
|
211
647
|
bottom: SerializedStyles;
|
|
212
648
|
};
|
|
213
649
|
|
|
650
|
+
// @public (undocumented)
|
|
651
|
+
type Width = keyof typeof widthMap;
|
|
652
|
+
|
|
653
|
+
// @public
|
|
654
|
+
const widthMap: {
|
|
655
|
+
'100%': SerializedStyles;
|
|
656
|
+
'size.100': SerializedStyles;
|
|
657
|
+
'size.1000': SerializedStyles;
|
|
658
|
+
'size.200': SerializedStyles;
|
|
659
|
+
'size.300': SerializedStyles;
|
|
660
|
+
'size.400': SerializedStyles;
|
|
661
|
+
'size.500': SerializedStyles;
|
|
662
|
+
'size.600': SerializedStyles;
|
|
663
|
+
};
|
|
664
|
+
|
|
214
665
|
// (No @packageDocumentation comment for this package)
|
|
215
666
|
|
|
216
667
|
```
|
package/tsconfig.app.json
CHANGED
package/tsconfig.dev.json
CHANGED
|
@@ -75,8 +75,14 @@
|
|
|
75
75
|
{
|
|
76
76
|
"path": "../textfield/tsconfig.app.json"
|
|
77
77
|
},
|
|
78
|
+
{
|
|
79
|
+
"path": "../theme/tsconfig.app.json"
|
|
80
|
+
},
|
|
78
81
|
{
|
|
79
82
|
"path": "../tokens/tsconfig.app.json"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"path": "../../../build/test-tooling/visual-regression/tsconfig.app.json"
|
|
80
86
|
}
|
|
81
87
|
]
|
|
82
88
|
}
|