@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.
- package/CHANGELOG.md +33 -0
- package/box/package.json +15 -0
- package/dist/cjs/components/box.partial.js +184 -201
- package/dist/cjs/components/inline.partial.js +49 -30
- package/dist/cjs/components/interaction-surface.partial.js +35 -3
- package/dist/cjs/components/stack.partial.js +49 -30
- package/dist/cjs/components/text.partial.js +116 -85
- package/dist/cjs/index.js +1 -9
- package/dist/cjs/internal/color-map.js +6 -5
- package/dist/cjs/internal/spacing-scale.js +17 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/box.partial.js +182 -184
- package/dist/es2019/components/inline.partial.js +49 -29
- package/dist/es2019/components/interaction-surface.partial.js +35 -3
- package/dist/es2019/components/stack.partial.js +49 -29
- package/dist/es2019/components/text.partial.js +73 -35
- package/dist/es2019/index.js +1 -2
- package/dist/es2019/internal/color-map.js +4 -3
- package/dist/es2019/internal/spacing-scale.js +9 -0
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/box.partial.js +183 -197
- package/dist/esm/components/inline.partial.js +49 -29
- package/dist/esm/components/interaction-surface.partial.js +35 -3
- package/dist/esm/components/stack.partial.js +49 -29
- package/dist/esm/components/text.partial.js +78 -46
- package/dist/esm/index.js +1 -2
- package/dist/esm/internal/color-map.js +4 -3
- package/dist/esm/internal/spacing-scale.js +9 -0
- package/dist/esm/version.json +1 -1
- package/dist/types/components/box.partial.d.ts +114 -18
- package/dist/types/components/inline.partial.d.ts +38 -4
- package/dist/types/components/interaction-surface.partial.d.ts +7 -3
- package/dist/types/components/stack.partial.d.ts +39 -6
- package/dist/types/components/text.partial.d.ts +5 -3
- package/dist/types/components/types.d.ts +1 -0
- package/dist/types/index.d.ts +0 -1
- package/dist/types/internal/color-map.d.ts +11 -9
- package/dist/types/internal/spacing-scale.d.ts +9 -0
- package/dist/types-ts4.0/components/box.partial.d.ts +114 -24
- package/dist/types-ts4.0/components/inline.partial.d.ts +38 -4
- package/dist/types-ts4.0/components/interaction-surface.partial.d.ts +7 -3
- package/dist/types-ts4.0/components/stack.partial.d.ts +39 -6
- package/dist/types-ts4.0/components/text.partial.d.ts +5 -6
- package/dist/types-ts4.0/components/types.d.ts +1 -0
- package/dist/types-ts4.0/index.d.ts +0 -1
- package/dist/types-ts4.0/internal/color-map.d.ts +11 -9
- package/dist/types-ts4.0/internal/spacing-scale.d.ts +22 -0
- package/examples/00-basic.tsx +4 -4
- package/examples/01-box.tsx +29 -46
- package/examples/02-text-advanced.tsx +38 -0
- package/examples/02-text.tsx +72 -62
- package/examples/03-stack.tsx +48 -74
- package/examples/04-inline.tsx +46 -75
- package/examples/05-badge.tsx +2 -2
- package/examples/06-section-message.tsx +7 -7
- package/examples/07-comment.tsx +4 -6
- package/examples/08-lozenge.tsx +9 -5
- package/examples/99-interactions.tsx +53 -46
- package/examples/config.jsonc +11 -0
- package/package.json +5 -2
- package/report.api.md +240 -54
- package/scripts/__tests__/__snapshots__/codegen.test.tsx.snap +52 -64
- package/scripts/codegen-styles.tsx +34 -6
- package/scripts/color-codegen-template.tsx +10 -15
- package/scripts/color-map-template.tsx +1 -1
- package/scripts/spacing-codegen-template.tsx +48 -12
- package/scripts/spacing-scale-template.tsx +40 -0
- package/scripts/utils.tsx +1 -3
- package/src/components/__tests__/unit/box.test.tsx +18 -13
- package/src/components/__tests__/unit/inline.test.tsx +10 -10
- package/src/components/__tests__/unit/interaction-suface.test.tsx +14 -8
- package/src/components/__tests__/unit/stack.test.tsx +7 -7
- package/src/components/__tests__/unit/text.test.tsx +23 -0
- 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
- 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
- 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
- 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
- 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
- package/src/components/__tests__/visual-regression/__image_snapshots__/inline-snapshot-test-tsx-inline-alignment-example-should-match-snapshot-1-snap.png +2 -2
- package/src/components/__tests__/visual-regression/__image_snapshots__/inline-snapshot-test-tsx-inline-spacing-example-should-match-snapshot-1-snap.png +2 -2
- package/src/components/__tests__/visual-regression/__image_snapshots__/stack-snapshot-test-tsx-stack-alignment-example-should-match-snapshot-1-snap.png +2 -2
- package/src/components/__tests__/visual-regression/__image_snapshots__/stack-snapshot-test-tsx-stack-spacing-example-should-match-snapshot-1-snap.png +2 -2
- 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
- package/src/components/__tests__/visual-regression/__image_snapshots__/text-snapshot-test-tsx-text-example-with-testing-should-match-snapshot-1-snap.png +2 -2
- package/src/components/box.partial.tsx +296 -159
- package/src/components/inline.partial.tsx +75 -21
- package/src/components/interaction-surface.partial.tsx +6 -4
- package/src/components/stack.partial.tsx +75 -22
- package/src/components/text.partial.tsx +78 -41
- package/src/components/types.tsx +2 -0
- package/src/index.tsx +0 -1
- package/src/internal/color-map.tsx +4 -3
- package/src/internal/spacing-scale.tsx +22 -0
- package/text/package.json +15 -0
- package/tmp/api-report-tmp.d.ts +583 -0
- package/dist/cjs/constants.js +0 -21
- package/dist/es2019/constants.js +0 -14
- package/dist/esm/constants.js +0 -14
- package/dist/types/constants.d.ts +0 -15
- package/dist/types-ts4.0/constants.d.ts +0 -15
- package/src/constants.tsx +0 -16
package/report.api.md
CHANGED
|
@@ -1,20 +1,29 @@
|
|
|
1
|
+
<!-- API Report Version: 2.3 -->
|
|
2
|
+
|
|
1
3
|
## API Report File for "@atlaskit/ds-explorations"
|
|
2
4
|
|
|
3
|
-
> Do not edit this file.
|
|
5
|
+
> Do not edit this file. This report is auto-generated using [API Extractor](https://api-extractor.com/).
|
|
6
|
+
> [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
|
|
7
|
+
|
|
8
|
+
### Table of contents
|
|
4
9
|
|
|
5
|
-
|
|
6
|
-
Generated API Report version: 2.0
|
|
7
|
-
-->
|
|
10
|
+
- [Main Entry Types](#main-entry-types)
|
|
8
11
|
|
|
9
|
-
|
|
12
|
+
### Main Entry Types
|
|
13
|
+
|
|
14
|
+
<!--SECTION START: Main Entry Types-->
|
|
10
15
|
|
|
11
16
|
```ts
|
|
17
|
+
/// <reference types="react" />
|
|
18
|
+
|
|
19
|
+
import { ComponentPropsWithoutRef } from 'react';
|
|
20
|
+
import { ComponentPropsWithRef } from 'react';
|
|
12
21
|
import type { CSSProperties } from 'react';
|
|
13
22
|
import { ElementType } from 'react';
|
|
14
23
|
import { FC } from 'react';
|
|
15
24
|
import { ForwardRefExoticComponent } from 'react';
|
|
16
|
-
import { HTMLAttributes } from 'react';
|
|
17
25
|
import { jsx } from '@emotion/react';
|
|
26
|
+
import { ReactElement } from 'react';
|
|
18
27
|
import { ReactNode } from 'react';
|
|
19
28
|
import { RefAttributes } from 'react';
|
|
20
29
|
import { SerializedStyles } from '@emotion/react';
|
|
@@ -78,6 +87,9 @@ const backgroundHoverColorMap: {
|
|
|
78
87
|
'discovery.bold': SerializedStyles;
|
|
79
88
|
information: SerializedStyles;
|
|
80
89
|
'information.bold': SerializedStyles;
|
|
90
|
+
'elevation.surface': SerializedStyles;
|
|
91
|
+
'elevation.surface.raised': SerializedStyles;
|
|
92
|
+
'elevation.surface.overlay': SerializedStyles;
|
|
81
93
|
};
|
|
82
94
|
|
|
83
95
|
// @public (undocumented)
|
|
@@ -138,6 +150,57 @@ const borderWidthMap: {
|
|
|
138
150
|
'3px': SerializedStyles;
|
|
139
151
|
};
|
|
140
152
|
|
|
153
|
+
// @public (undocumented)
|
|
154
|
+
type BoxComponent<T extends ElementType = 'div'> = (<
|
|
155
|
+
T extends ElementType = 'div'
|
|
156
|
+
>(
|
|
157
|
+
props: UNSAFE_BoxProps<T>,
|
|
158
|
+
) => ReactElement | null) &
|
|
159
|
+
FC<UNSAFE_BoxProps<T>>;
|
|
160
|
+
|
|
161
|
+
// @public (undocumented)
|
|
162
|
+
type BoxPropsBase<T extends ElementType> = {
|
|
163
|
+
as?: T;
|
|
164
|
+
children?: NonTextChildren | boolean | null;
|
|
165
|
+
className?: string;
|
|
166
|
+
backgroundColor?: BackgroundColor;
|
|
167
|
+
borderStyle?: BorderStyle;
|
|
168
|
+
borderWidth?: BorderWidth;
|
|
169
|
+
borderColor?: BorderColor;
|
|
170
|
+
borderRadius?: BorderRadius;
|
|
171
|
+
flexDirection?: FlexDirection;
|
|
172
|
+
alignItems?: FlexAlignItems;
|
|
173
|
+
justifyContent?: FlexJustifyContent;
|
|
174
|
+
overflow?: Overflow;
|
|
175
|
+
padding?: Padding;
|
|
176
|
+
paddingBlock?: PaddingBlock;
|
|
177
|
+
paddingInline?: PaddingInline;
|
|
178
|
+
width?: Width;
|
|
179
|
+
height?: Height;
|
|
180
|
+
display?: Display;
|
|
181
|
+
position?: Position;
|
|
182
|
+
ref?: ComponentPropsWithRef<T>['ref'];
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
// @public (undocumented)
|
|
186
|
+
type ColumnGap = keyof typeof columnGapMap;
|
|
187
|
+
|
|
188
|
+
// @public
|
|
189
|
+
const columnGapMap: {
|
|
190
|
+
'scale.0': SerializedStyles;
|
|
191
|
+
'scale.025': SerializedStyles;
|
|
192
|
+
'scale.050': SerializedStyles;
|
|
193
|
+
'scale.075': SerializedStyles;
|
|
194
|
+
'scale.100': SerializedStyles;
|
|
195
|
+
'scale.150': SerializedStyles;
|
|
196
|
+
'scale.200': SerializedStyles;
|
|
197
|
+
'scale.250': SerializedStyles;
|
|
198
|
+
'scale.300': SerializedStyles;
|
|
199
|
+
'scale.400': SerializedStyles;
|
|
200
|
+
'scale.500': SerializedStyles;
|
|
201
|
+
'scale.600': SerializedStyles;
|
|
202
|
+
};
|
|
203
|
+
|
|
141
204
|
// @public (undocumented)
|
|
142
205
|
type Display = keyof typeof displayMap;
|
|
143
206
|
|
|
@@ -172,6 +235,8 @@ const flexAlignItemsMap_2: {
|
|
|
172
235
|
baseline: SerializedStyles;
|
|
173
236
|
flexStart: SerializedStyles;
|
|
174
237
|
flexEnd: SerializedStyles;
|
|
238
|
+
start: SerializedStyles;
|
|
239
|
+
end: SerializedStyles;
|
|
175
240
|
};
|
|
176
241
|
|
|
177
242
|
// @public (undocumented)
|
|
@@ -180,6 +245,8 @@ const flexAlignItemsMap_3: {
|
|
|
180
245
|
baseline: SerializedStyles;
|
|
181
246
|
flexStart: SerializedStyles;
|
|
182
247
|
flexEnd: SerializedStyles;
|
|
248
|
+
start: SerializedStyles;
|
|
249
|
+
end: SerializedStyles;
|
|
183
250
|
};
|
|
184
251
|
|
|
185
252
|
// @public (undocumented)
|
|
@@ -212,6 +279,8 @@ const flexJustifyContentMap_2: {
|
|
|
212
279
|
center: SerializedStyles;
|
|
213
280
|
flexStart: SerializedStyles;
|
|
214
281
|
flexEnd: SerializedStyles;
|
|
282
|
+
start: SerializedStyles;
|
|
283
|
+
end: SerializedStyles;
|
|
215
284
|
};
|
|
216
285
|
|
|
217
286
|
// @public (undocumented)
|
|
@@ -219,6 +288,24 @@ const flexJustifyContentMap_3: {
|
|
|
219
288
|
center: SerializedStyles;
|
|
220
289
|
flexStart: SerializedStyles;
|
|
221
290
|
flexEnd: SerializedStyles;
|
|
291
|
+
start: SerializedStyles;
|
|
292
|
+
end: SerializedStyles;
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
// @public (undocumented)
|
|
296
|
+
type FlexWrap = keyof typeof flexWrapMap;
|
|
297
|
+
|
|
298
|
+
// @public (undocumented)
|
|
299
|
+
type FlexWrap_2 = keyof typeof flexWrapMap_2;
|
|
300
|
+
|
|
301
|
+
// @public (undocumented)
|
|
302
|
+
const flexWrapMap: {
|
|
303
|
+
wrap: SerializedStyles;
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
// @public (undocumented)
|
|
307
|
+
const flexWrapMap_2: {
|
|
308
|
+
wrap: SerializedStyles;
|
|
222
309
|
};
|
|
223
310
|
|
|
224
311
|
// @public (undocumented)
|
|
@@ -238,18 +325,36 @@ type FontWeight = keyof typeof fontWeightMap;
|
|
|
238
325
|
const fontWeightMap: {
|
|
239
326
|
'400': SerializedStyles;
|
|
240
327
|
'500': SerializedStyles;
|
|
328
|
+
'600': SerializedStyles;
|
|
241
329
|
'700': SerializedStyles;
|
|
242
330
|
};
|
|
243
331
|
|
|
244
332
|
// @public (undocumented)
|
|
245
|
-
type
|
|
333
|
+
type Height = keyof typeof heightMap;
|
|
334
|
+
|
|
335
|
+
// @public (undocumented)
|
|
336
|
+
const heightMap: {
|
|
337
|
+
'scale.0': SerializedStyles;
|
|
338
|
+
'scale.025': SerializedStyles;
|
|
339
|
+
'scale.050': SerializedStyles;
|
|
340
|
+
'scale.075': SerializedStyles;
|
|
341
|
+
'scale.100': SerializedStyles;
|
|
342
|
+
'scale.150': SerializedStyles;
|
|
343
|
+
'scale.200': SerializedStyles;
|
|
344
|
+
'scale.250': SerializedStyles;
|
|
345
|
+
'scale.300': SerializedStyles;
|
|
346
|
+
'scale.400': SerializedStyles;
|
|
347
|
+
'scale.500': SerializedStyles;
|
|
348
|
+
'scale.600': SerializedStyles;
|
|
349
|
+
};
|
|
246
350
|
|
|
247
351
|
// @public (undocumented)
|
|
248
352
|
interface InlineProps extends BasePrimitiveProps {
|
|
249
353
|
alignItems?: FlexAlignItems_2;
|
|
250
|
-
children:
|
|
354
|
+
children: NonTextChildren;
|
|
251
355
|
divider?: ReactNode;
|
|
252
|
-
|
|
356
|
+
flexWrap?: FlexWrap;
|
|
357
|
+
gap: ColumnGap;
|
|
253
358
|
justifyContent?: FlexJustifyContent_2;
|
|
254
359
|
}
|
|
255
360
|
|
|
@@ -261,7 +366,7 @@ interface InteractionSurfaceProps extends BasePrimitiveProps {
|
|
|
261
366
|
// (undocumented)
|
|
262
367
|
appearance?: InteractionBackgroundColor;
|
|
263
368
|
// (undocumented)
|
|
264
|
-
children
|
|
369
|
+
children: ReactNode;
|
|
265
370
|
}
|
|
266
371
|
|
|
267
372
|
// @public (undocumented)
|
|
@@ -278,6 +383,77 @@ const lineHeightMap: {
|
|
|
278
383
|
'40px': SerializedStyles;
|
|
279
384
|
};
|
|
280
385
|
|
|
386
|
+
// @public (undocumented)
|
|
387
|
+
type NonTextChildren = (JSX.Element | false | null)[] | JSX.Element;
|
|
388
|
+
|
|
389
|
+
// @public (undocumented)
|
|
390
|
+
type Overflow = keyof typeof overflowMap;
|
|
391
|
+
|
|
392
|
+
// @public (undocumented)
|
|
393
|
+
const overflowMap: {
|
|
394
|
+
auto: SerializedStyles;
|
|
395
|
+
};
|
|
396
|
+
|
|
397
|
+
// @public (undocumented)
|
|
398
|
+
type Padding = keyof typeof paddingMap;
|
|
399
|
+
|
|
400
|
+
// @public (undocumented)
|
|
401
|
+
type PaddingBlock = keyof typeof paddingBlockMap;
|
|
402
|
+
|
|
403
|
+
// @public (undocumented)
|
|
404
|
+
const paddingBlockMap: {
|
|
405
|
+
'scale.0': SerializedStyles;
|
|
406
|
+
'scale.025': SerializedStyles;
|
|
407
|
+
'scale.050': SerializedStyles;
|
|
408
|
+
'scale.075': SerializedStyles;
|
|
409
|
+
'scale.100': SerializedStyles;
|
|
410
|
+
'scale.150': SerializedStyles;
|
|
411
|
+
'scale.200': SerializedStyles;
|
|
412
|
+
'scale.250': SerializedStyles;
|
|
413
|
+
'scale.300': SerializedStyles;
|
|
414
|
+
'scale.400': SerializedStyles;
|
|
415
|
+
'scale.500': SerializedStyles;
|
|
416
|
+
'scale.600': SerializedStyles;
|
|
417
|
+
};
|
|
418
|
+
|
|
419
|
+
// @public (undocumented)
|
|
420
|
+
type PaddingInline = keyof typeof paddingInlineMap;
|
|
421
|
+
|
|
422
|
+
// @public (undocumented)
|
|
423
|
+
const paddingInlineMap: {
|
|
424
|
+
'scale.0': SerializedStyles;
|
|
425
|
+
'scale.025': SerializedStyles;
|
|
426
|
+
'scale.050': SerializedStyles;
|
|
427
|
+
'scale.075': SerializedStyles;
|
|
428
|
+
'scale.100': SerializedStyles;
|
|
429
|
+
'scale.150': SerializedStyles;
|
|
430
|
+
'scale.200': SerializedStyles;
|
|
431
|
+
'scale.250': SerializedStyles;
|
|
432
|
+
'scale.300': SerializedStyles;
|
|
433
|
+
'scale.400': SerializedStyles;
|
|
434
|
+
'scale.500': SerializedStyles;
|
|
435
|
+
'scale.600': SerializedStyles;
|
|
436
|
+
};
|
|
437
|
+
|
|
438
|
+
// @public
|
|
439
|
+
const paddingMap: {
|
|
440
|
+
'scale.0': SerializedStyles;
|
|
441
|
+
'scale.025': SerializedStyles;
|
|
442
|
+
'scale.050': SerializedStyles;
|
|
443
|
+
'scale.075': SerializedStyles;
|
|
444
|
+
'scale.100': SerializedStyles;
|
|
445
|
+
'scale.150': SerializedStyles;
|
|
446
|
+
'scale.200': SerializedStyles;
|
|
447
|
+
'scale.250': SerializedStyles;
|
|
448
|
+
'scale.300': SerializedStyles;
|
|
449
|
+
'scale.400': SerializedStyles;
|
|
450
|
+
'scale.500': SerializedStyles;
|
|
451
|
+
'scale.600': SerializedStyles;
|
|
452
|
+
};
|
|
453
|
+
|
|
454
|
+
// @public (undocumented)
|
|
455
|
+
type Position = keyof typeof positionMap;
|
|
456
|
+
|
|
281
457
|
// @public (undocumented)
|
|
282
458
|
const positionMap: {
|
|
283
459
|
absolute: SerializedStyles;
|
|
@@ -285,11 +461,34 @@ const positionMap: {
|
|
|
285
461
|
static: SerializedStyles;
|
|
286
462
|
};
|
|
287
463
|
|
|
464
|
+
// @public (undocumented)
|
|
465
|
+
type PropsToOmit = 'as' | 'className' | 'style';
|
|
466
|
+
|
|
467
|
+
// @public (undocumented)
|
|
468
|
+
type RowGap = keyof typeof rowGapMap;
|
|
469
|
+
|
|
470
|
+
// @public
|
|
471
|
+
const rowGapMap: {
|
|
472
|
+
'scale.0': SerializedStyles;
|
|
473
|
+
'scale.025': SerializedStyles;
|
|
474
|
+
'scale.050': SerializedStyles;
|
|
475
|
+
'scale.075': SerializedStyles;
|
|
476
|
+
'scale.100': SerializedStyles;
|
|
477
|
+
'scale.150': SerializedStyles;
|
|
478
|
+
'scale.200': SerializedStyles;
|
|
479
|
+
'scale.250': SerializedStyles;
|
|
480
|
+
'scale.300': SerializedStyles;
|
|
481
|
+
'scale.400': SerializedStyles;
|
|
482
|
+
'scale.500': SerializedStyles;
|
|
483
|
+
'scale.600': SerializedStyles;
|
|
484
|
+
};
|
|
485
|
+
|
|
288
486
|
// @public (undocumented)
|
|
289
487
|
interface StackProps extends BasePrimitiveProps {
|
|
290
488
|
alignItems?: FlexAlignItems_3;
|
|
291
|
-
children:
|
|
292
|
-
|
|
489
|
+
children: NonTextChildren;
|
|
490
|
+
flexWrap?: FlexWrap_2;
|
|
491
|
+
gap: RowGap;
|
|
293
492
|
justifyContent?: FlexJustifyContent_3;
|
|
294
493
|
}
|
|
295
494
|
|
|
@@ -334,33 +533,15 @@ const textTransformMap: {
|
|
|
334
533
|
};
|
|
335
534
|
|
|
336
535
|
// @internal
|
|
337
|
-
export const UNSAFE_Box:
|
|
338
|
-
UNSAFE_BoxProps<HTMLElement> & RefAttributes<HTMLElement>
|
|
339
|
-
>;
|
|
536
|
+
export const UNSAFE_Box: BoxComponent;
|
|
340
537
|
|
|
341
538
|
// @public (undocumented)
|
|
342
|
-
export
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
borderColor?: [BorderColor, string];
|
|
349
|
-
borderRadius?: BorderRadius;
|
|
350
|
-
borderStyle?: BorderStyle;
|
|
351
|
-
borderWidth?: BorderWidth;
|
|
352
|
-
children?: ReactNode;
|
|
353
|
-
className?: string;
|
|
354
|
-
display?: Display;
|
|
355
|
-
flexDirection?: FlexDirection;
|
|
356
|
-
height?: GlobalSpacingToken;
|
|
357
|
-
justifyContent?: FlexJustifyContent;
|
|
358
|
-
padding?: GlobalSpacingToken;
|
|
359
|
-
paddingBlock?: GlobalSpacingToken;
|
|
360
|
-
paddingInline?: GlobalSpacingToken;
|
|
361
|
-
position?: keyof typeof positionMap;
|
|
362
|
-
width?: GlobalSpacingToken;
|
|
363
|
-
}
|
|
539
|
+
export type UNSAFE_BoxProps<T extends ElementType = 'div'> = Omit<
|
|
540
|
+
ComponentPropsWithoutRef<T>,
|
|
541
|
+
PropsToOmit
|
|
542
|
+
> &
|
|
543
|
+
BasePrimitiveProps &
|
|
544
|
+
BoxPropsBase<T>;
|
|
364
545
|
|
|
365
546
|
// @public
|
|
366
547
|
export const UNSAFE_Inline: ForwardRefExoticComponent<
|
|
@@ -374,22 +555,6 @@ export const UNSAFE_InteractionSurface: ({
|
|
|
374
555
|
testId,
|
|
375
556
|
}: InteractionSurfaceProps) => jsx.JSX.Element;
|
|
376
557
|
|
|
377
|
-
// @public (undocumented)
|
|
378
|
-
export const UNSAFE_SPACING_SCALE: {
|
|
379
|
-
'sp-0': number;
|
|
380
|
-
'sp-25': number;
|
|
381
|
-
'sp-50': number;
|
|
382
|
-
'sp-75': number;
|
|
383
|
-
'sp-100': number;
|
|
384
|
-
'sp-150': number;
|
|
385
|
-
'sp-200': number;
|
|
386
|
-
'sp-300': number;
|
|
387
|
-
'sp-400': number;
|
|
388
|
-
'sp-500': number;
|
|
389
|
-
'sp-600': number;
|
|
390
|
-
'sp-800': number;
|
|
391
|
-
};
|
|
392
|
-
|
|
393
558
|
// @public
|
|
394
559
|
export const UNSAFE_Stack: ForwardRefExoticComponent<
|
|
395
560
|
StackProps & RefAttributes<HTMLDivElement>
|
|
@@ -402,7 +567,7 @@ export const UNSAFE_Text: FC<UNSAFE_TextProps>;
|
|
|
402
567
|
export interface UNSAFE_TextProps extends BasePrimitiveProps {
|
|
403
568
|
as?: AsElement;
|
|
404
569
|
children: ReactNode;
|
|
405
|
-
color?:
|
|
570
|
+
color?: TextColor;
|
|
406
571
|
fontSize?: FontSize;
|
|
407
572
|
fontWeight?: FontWeight;
|
|
408
573
|
lineHeight?: LineHeight;
|
|
@@ -422,5 +587,26 @@ const verticalAlignMap: {
|
|
|
422
587
|
bottom: SerializedStyles;
|
|
423
588
|
};
|
|
424
589
|
|
|
590
|
+
// @public (undocumented)
|
|
591
|
+
type Width = keyof typeof widthMap;
|
|
592
|
+
|
|
593
|
+
// @public (undocumented)
|
|
594
|
+
const widthMap: {
|
|
595
|
+
'scale.0': SerializedStyles;
|
|
596
|
+
'scale.025': SerializedStyles;
|
|
597
|
+
'scale.050': SerializedStyles;
|
|
598
|
+
'scale.075': SerializedStyles;
|
|
599
|
+
'scale.100': SerializedStyles;
|
|
600
|
+
'scale.150': SerializedStyles;
|
|
601
|
+
'scale.200': SerializedStyles;
|
|
602
|
+
'scale.250': SerializedStyles;
|
|
603
|
+
'scale.300': SerializedStyles;
|
|
604
|
+
'scale.400': SerializedStyles;
|
|
605
|
+
'scale.500': SerializedStyles;
|
|
606
|
+
'scale.600': SerializedStyles;
|
|
607
|
+
};
|
|
608
|
+
|
|
425
609
|
// (No @packageDocumentation comment for this package)
|
|
426
610
|
```
|
|
611
|
+
|
|
612
|
+
<!--SECTION END: Main Entry Types-->
|
|
@@ -3,94 +3,82 @@
|
|
|
3
3
|
exports[`@atlaskit/design-system-explorations bg styles are generated correctly 1`] = `
|
|
4
4
|
"const backgroundColorMap = {
|
|
5
5
|
disabled: css({
|
|
6
|
-
backgroundColor: token('color.background.disabled', '
|
|
6
|
+
backgroundColor: token('color.background.disabled', '#091e4289'),
|
|
7
7
|
}),
|
|
8
8
|
'inverse.subtle': css({
|
|
9
|
-
backgroundColor: token(
|
|
10
|
-
'color.background.inverse.subtle',
|
|
11
|
-
'var(--ds-bg-fb)',
|
|
12
|
-
),
|
|
9
|
+
backgroundColor: token('color.background.inverse.subtle', '#00000029'),
|
|
13
10
|
}),
|
|
14
11
|
input: css({
|
|
15
|
-
backgroundColor: token('color.background.input', '
|
|
12
|
+
backgroundColor: token('color.background.input', '#FAFBFC'),
|
|
16
13
|
}),
|
|
17
14
|
neutral: css({
|
|
18
|
-
backgroundColor: token('color.background.neutral', '
|
|
15
|
+
backgroundColor: token('color.background.neutral', '#DFE1E6'),
|
|
19
16
|
}),
|
|
20
17
|
'neutral.subtle': css({
|
|
21
|
-
backgroundColor: token(
|
|
22
|
-
'color.background.neutral.subtle',
|
|
23
|
-
'var(--ds-bg-fb)',
|
|
24
|
-
),
|
|
18
|
+
backgroundColor: token('color.background.neutral.subtle', 'transparent'),
|
|
25
19
|
}),
|
|
26
20
|
'neutral.bold': css({
|
|
27
|
-
backgroundColor: token('color.background.neutral.bold', '
|
|
21
|
+
backgroundColor: token('color.background.neutral.bold', '#42526E'),
|
|
28
22
|
}),
|
|
29
23
|
'brand.bold': css({
|
|
30
|
-
backgroundColor: token('color.background.brand.bold', '
|
|
24
|
+
backgroundColor: token('color.background.brand.bold', '#0052CC'),
|
|
31
25
|
}),
|
|
32
26
|
selected: css({
|
|
33
|
-
backgroundColor: token('color.background.selected', '
|
|
27
|
+
backgroundColor: token('color.background.selected', '#DEEBFF'),
|
|
34
28
|
}),
|
|
35
29
|
'selected.bold': css({
|
|
36
|
-
backgroundColor: token('color.background.selected.bold', '
|
|
30
|
+
backgroundColor: token('color.background.selected.bold', '#0052CC'),
|
|
37
31
|
}),
|
|
38
32
|
danger: css({
|
|
39
|
-
backgroundColor: token('color.background.danger', '
|
|
33
|
+
backgroundColor: token('color.background.danger', '#FFEBE6'),
|
|
40
34
|
}),
|
|
41
35
|
'danger.bold': css({
|
|
42
|
-
backgroundColor: token('color.background.danger.bold', '
|
|
36
|
+
backgroundColor: token('color.background.danger.bold', '#DE350B'),
|
|
43
37
|
}),
|
|
44
38
|
warning: css({
|
|
45
|
-
backgroundColor: token('color.background.warning', '
|
|
39
|
+
backgroundColor: token('color.background.warning', '#FFFAE6'),
|
|
46
40
|
}),
|
|
47
41
|
'warning.bold': css({
|
|
48
|
-
backgroundColor: token('color.background.warning.bold', '
|
|
42
|
+
backgroundColor: token('color.background.warning.bold', '#FFAB00'),
|
|
49
43
|
}),
|
|
50
44
|
success: css({
|
|
51
|
-
backgroundColor: token('color.background.success', '
|
|
45
|
+
backgroundColor: token('color.background.success', '#E3FCEF'),
|
|
52
46
|
}),
|
|
53
47
|
'success.bold': css({
|
|
54
|
-
backgroundColor: token('color.background.success.bold', '
|
|
48
|
+
backgroundColor: token('color.background.success.bold', '#00875A'),
|
|
55
49
|
}),
|
|
56
50
|
discovery: css({
|
|
57
|
-
backgroundColor: token('color.background.discovery', '
|
|
51
|
+
backgroundColor: token('color.background.discovery', '#EAE6FF'),
|
|
58
52
|
}),
|
|
59
53
|
'discovery.bold': css({
|
|
60
|
-
backgroundColor: token(
|
|
61
|
-
'color.background.discovery.bold',
|
|
62
|
-
'var(--ds-bg-fb)',
|
|
63
|
-
),
|
|
54
|
+
backgroundColor: token('color.background.discovery.bold', '#5243AA'),
|
|
64
55
|
}),
|
|
65
56
|
information: css({
|
|
66
|
-
backgroundColor: token('color.background.information', '
|
|
57
|
+
backgroundColor: token('color.background.information', '#DEEBFF'),
|
|
67
58
|
}),
|
|
68
59
|
'information.bold': css({
|
|
69
|
-
backgroundColor: token(
|
|
70
|
-
'color.background.information.bold',
|
|
71
|
-
'var(--ds-bg-fb)',
|
|
72
|
-
),
|
|
60
|
+
backgroundColor: token('color.background.information.bold', '#0052CC'),
|
|
73
61
|
}),
|
|
74
62
|
'color.blanket': css({
|
|
75
|
-
backgroundColor: token('color.blanket', '
|
|
63
|
+
backgroundColor: token('color.blanket', '#091e4289'),
|
|
76
64
|
}),
|
|
77
65
|
'color.blanket.selected': css({
|
|
78
|
-
backgroundColor: token('color.blanket.selected', '
|
|
66
|
+
backgroundColor: token('color.blanket.selected', '#388BFF14'),
|
|
79
67
|
}),
|
|
80
68
|
'color.blanket.danger': css({
|
|
81
|
-
backgroundColor: token('color.blanket.danger', '
|
|
69
|
+
backgroundColor: token('color.blanket.danger', '#EF5C4814'),
|
|
82
70
|
}),
|
|
83
71
|
'elevation.surface': css({
|
|
84
|
-
backgroundColor: token('elevation.surface', '
|
|
72
|
+
backgroundColor: token('elevation.surface', '#FFFFFF'),
|
|
85
73
|
}),
|
|
86
74
|
'elevation.surface.sunken': css({
|
|
87
|
-
backgroundColor: token('elevation.surface.sunken', '
|
|
75
|
+
backgroundColor: token('elevation.surface.sunken', '#F4F5F7'),
|
|
88
76
|
}),
|
|
89
77
|
'elevation.surface.raised': css({
|
|
90
|
-
backgroundColor: token('elevation.surface.raised', '
|
|
78
|
+
backgroundColor: token('elevation.surface.raised', '#FFFFFF'),
|
|
91
79
|
}),
|
|
92
80
|
'elevation.surface.overlay': css({
|
|
93
|
-
backgroundColor: token('elevation.surface.overlay', '
|
|
81
|
+
backgroundColor: token('elevation.surface.overlay', '#FFFFFF'),
|
|
94
82
|
}),
|
|
95
83
|
};
|
|
96
84
|
|
|
@@ -101,43 +89,43 @@ export type BackgroundColor = keyof typeof backgroundColorMap;
|
|
|
101
89
|
exports[`@atlaskit/design-system-explorations border styles are generated correctly 1`] = `
|
|
102
90
|
"const borderColorMap = {
|
|
103
91
|
'color.border': css({
|
|
104
|
-
borderColor: token('color.border', '
|
|
92
|
+
borderColor: token('color.border', '#091e4221'),
|
|
105
93
|
}),
|
|
106
94
|
bold: css({
|
|
107
|
-
borderColor: token('color.border.bold', '
|
|
95
|
+
borderColor: token('color.border.bold', '#344563'),
|
|
108
96
|
}),
|
|
109
97
|
inverse: css({
|
|
110
|
-
borderColor: token('color.border.inverse', '
|
|
98
|
+
borderColor: token('color.border.inverse', '#FFFFFF'),
|
|
111
99
|
}),
|
|
112
100
|
focused: css({
|
|
113
|
-
borderColor: token('color.border.focused', '
|
|
101
|
+
borderColor: token('color.border.focused', '#4C9AFF'),
|
|
114
102
|
}),
|
|
115
103
|
input: css({
|
|
116
|
-
borderColor: token('color.border.input', '
|
|
104
|
+
borderColor: token('color.border.input', '#FAFBFC'),
|
|
117
105
|
}),
|
|
118
106
|
disabled: css({
|
|
119
|
-
borderColor: token('color.border.disabled', '
|
|
107
|
+
borderColor: token('color.border.disabled', '#FAFBFC'),
|
|
120
108
|
}),
|
|
121
109
|
brand: css({
|
|
122
|
-
borderColor: token('color.border.brand', '
|
|
110
|
+
borderColor: token('color.border.brand', '#0052CC'),
|
|
123
111
|
}),
|
|
124
112
|
selected: css({
|
|
125
|
-
borderColor: token('color.border.selected', '
|
|
113
|
+
borderColor: token('color.border.selected', '#0052CC'),
|
|
126
114
|
}),
|
|
127
115
|
danger: css({
|
|
128
|
-
borderColor: token('color.border.danger', '
|
|
116
|
+
borderColor: token('color.border.danger', '#FF5630'),
|
|
129
117
|
}),
|
|
130
118
|
warning: css({
|
|
131
|
-
borderColor: token('color.border.warning', '
|
|
119
|
+
borderColor: token('color.border.warning', '#FFC400'),
|
|
132
120
|
}),
|
|
133
121
|
success: css({
|
|
134
|
-
borderColor: token('color.border.success', '
|
|
122
|
+
borderColor: token('color.border.success', '#00875A'),
|
|
135
123
|
}),
|
|
136
124
|
discovery: css({
|
|
137
|
-
borderColor: token('color.border.discovery', '
|
|
125
|
+
borderColor: token('color.border.discovery', '#998DD9'),
|
|
138
126
|
}),
|
|
139
127
|
information: css({
|
|
140
|
-
borderColor: token('color.border.information', '
|
|
128
|
+
borderColor: token('color.border.information', '#0065FF'),
|
|
141
129
|
}),
|
|
142
130
|
};
|
|
143
131
|
|
|
@@ -327,43 +315,43 @@ type InteractionBackgroundColor = keyof typeof backgroundHoverColorMap;
|
|
|
327
315
|
exports[`@atlaskit/design-system-explorations text styles are generated correctly 1`] = `
|
|
328
316
|
"const textColorMap = {
|
|
329
317
|
'color.text': css({
|
|
330
|
-
color: token('color.text', '
|
|
318
|
+
color: token('color.text', '#172B4D'),
|
|
331
319
|
}),
|
|
332
320
|
subtle: css({
|
|
333
|
-
color: token('color.text.subtle', '
|
|
321
|
+
color: token('color.text.subtle', '#42526E'),
|
|
334
322
|
}),
|
|
335
323
|
subtlest: css({
|
|
336
|
-
color: token('color.text.subtlest', '
|
|
324
|
+
color: token('color.text.subtlest', '#7A869A'),
|
|
337
325
|
}),
|
|
338
326
|
disabled: css({
|
|
339
|
-
color: token('color.text.disabled', '
|
|
327
|
+
color: token('color.text.disabled', '#A5ADBA'),
|
|
340
328
|
}),
|
|
341
329
|
inverse: css({
|
|
342
|
-
color: token('color.text.inverse', '
|
|
330
|
+
color: token('color.text.inverse', '#FFFFFF'),
|
|
343
331
|
}),
|
|
344
332
|
brand: css({
|
|
345
|
-
color: token('color.text.brand', '
|
|
333
|
+
color: token('color.text.brand', '#0065FF'),
|
|
346
334
|
}),
|
|
347
335
|
selected: css({
|
|
348
|
-
color: token('color.text.selected', '
|
|
336
|
+
color: token('color.text.selected', '#0052CC'),
|
|
349
337
|
}),
|
|
350
338
|
danger: css({
|
|
351
|
-
color: token('color.text.danger', '
|
|
339
|
+
color: token('color.text.danger', '#DE350B'),
|
|
352
340
|
}),
|
|
353
341
|
warning: css({
|
|
354
|
-
color: token('color.text.warning', '
|
|
342
|
+
color: token('color.text.warning', '#974F0C'),
|
|
355
343
|
}),
|
|
356
344
|
'warning.inverse': css({
|
|
357
|
-
color: token('color.text.warning.inverse', '
|
|
345
|
+
color: token('color.text.warning.inverse', '#172B4D'),
|
|
358
346
|
}),
|
|
359
347
|
success: css({
|
|
360
|
-
color: token('color.text.success', '
|
|
348
|
+
color: token('color.text.success', '#006644'),
|
|
361
349
|
}),
|
|
362
350
|
discovery: css({
|
|
363
|
-
color: token('color.text.discovery', '
|
|
351
|
+
color: token('color.text.discovery', '#403294'),
|
|
364
352
|
}),
|
|
365
353
|
information: css({
|
|
366
|
-
color: token('color.text.information', '
|
|
354
|
+
color: token('color.text.information', '#0052CC'),
|
|
367
355
|
}),
|
|
368
356
|
};
|
|
369
357
|
|