@atlaskit/primitives 0.4.2 → 0.6.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 +12 -0
- package/dist/cjs/components/inline.partial.js +23 -91
- package/dist/cjs/components/internal/base-box.partial.js +81 -99
- package/dist/cjs/components/stack.partial.js +23 -47
- package/dist/cjs/internal/xcss.js +16 -4
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/inline.partial.js +19 -63
- package/dist/es2019/components/internal/base-box.partial.js +72 -68
- package/dist/es2019/components/stack.partial.js +19 -19
- package/dist/es2019/internal/xcss.js +9 -2
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/inline.partial.js +22 -91
- package/dist/esm/components/internal/base-box.partial.js +81 -99
- package/dist/esm/components/stack.partial.js +22 -47
- package/dist/esm/internal/xcss.js +13 -2
- package/dist/esm/version.json +1 -1
- package/dist/types/components/box.d.ts +1 -2
- package/dist/types/components/inline.partial.d.ts +28 -39
- package/dist/types/components/internal/base-box.partial.d.ts +42 -43
- package/dist/types/components/stack.partial.d.ts +25 -20
- package/dist/types/components/types.d.ts +2 -48
- package/dist/types/internal/xcss.d.ts +37 -8
- package/package.json +2 -3
- package/report.api.md +160 -144
- package/scripts/spacing-codegen-template.tsx +30 -30
- package/tmp/api-report-tmp.d.ts +124 -130
- package/dist/cjs/components/internal/types.js +0 -8
- package/dist/cjs/components/internal/utils.js +0 -16
- package/dist/es2019/components/internal/types.js +0 -1
- package/dist/es2019/components/internal/utils.js +0 -2
- package/dist/esm/components/internal/types.js +0 -1
- package/dist/esm/components/internal/utils.js +0 -7
- package/dist/types/components/internal/types.d.ts +0 -8
- package/dist/types/components/internal/utils.d.ts +0 -3
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
|
|
7
|
+
/// <reference types="react" />
|
|
8
|
+
|
|
7
9
|
import { ComponentPropsWithoutRef } from 'react';
|
|
8
10
|
import { ComponentPropsWithRef } from 'react';
|
|
9
11
|
import type { CSSProperties } from 'react';
|
|
@@ -12,11 +14,13 @@ import { CSSPseudos } from '@emotion/serialize';
|
|
|
12
14
|
import { ElementType } from 'react';
|
|
13
15
|
import { FC } from 'react';
|
|
14
16
|
import { ForwardRefExoticComponent } from 'react';
|
|
17
|
+
import { JSXElementConstructor } from 'react';
|
|
15
18
|
import { MemoExoticComponent } from 'react';
|
|
16
19
|
import { ReactElement } from 'react';
|
|
17
20
|
import { ReactNode } from 'react';
|
|
18
21
|
import { RefAttributes } from 'react';
|
|
19
22
|
import { SerializedStyles } from '@emotion/react';
|
|
23
|
+
import { SerializedStyles as SerializedStyles_2 } from '@emotion/serialize';
|
|
20
24
|
|
|
21
25
|
// @public (undocumented)
|
|
22
26
|
type AlignBlock = 'baseline' | 'center' | 'end' | 'start';
|
|
@@ -42,6 +46,12 @@ const alignSelfMap: {
|
|
|
42
46
|
readonly baseline: SerializedStyles;
|
|
43
47
|
};
|
|
44
48
|
|
|
49
|
+
// @public (undocumented)
|
|
50
|
+
type AllowedBoxStyles = keyof SafeCSSObject;
|
|
51
|
+
|
|
52
|
+
// @public (undocumented)
|
|
53
|
+
type AllowedInlineStyles = 'backgroundColor' | 'padding';
|
|
54
|
+
|
|
45
55
|
// @public (undocumented)
|
|
46
56
|
type BackgroundColor = keyof typeof backgroundColorMap;
|
|
47
57
|
|
|
@@ -156,7 +166,7 @@ type BaseBoxPropsFoundation<T extends ElementType> = {
|
|
|
156
166
|
backgroundColor?: BackgroundColor;
|
|
157
167
|
shadow?: Shadow;
|
|
158
168
|
borderStyle?: BorderStyle;
|
|
159
|
-
borderWidth?: BorderWidth
|
|
169
|
+
borderWidth?: BorderWidth;
|
|
160
170
|
borderColor?: BorderColor;
|
|
161
171
|
borderRadius?: BorderRadius;
|
|
162
172
|
layer?: Layer;
|
|
@@ -167,16 +177,16 @@ type BaseBoxPropsFoundation<T extends ElementType> = {
|
|
|
167
177
|
overflow?: Overflow;
|
|
168
178
|
overflowInline?: OverflowInline;
|
|
169
179
|
overflowBlock?: OverflowBlock;
|
|
170
|
-
padding?: Padding
|
|
171
|
-
paddingBlock?: PaddingBlock
|
|
172
|
-
paddingBlockStart?: PaddingBlockStart
|
|
173
|
-
paddingBlockEnd?: PaddingBlockEnd
|
|
174
|
-
paddingInline?: PaddingInline
|
|
175
|
-
paddingInlineStart?: PaddingInlineStart
|
|
176
|
-
paddingInlineEnd?: PaddingInlineEnd
|
|
180
|
+
padding?: Padding;
|
|
181
|
+
paddingBlock?: PaddingBlock;
|
|
182
|
+
paddingBlockStart?: PaddingBlockStart;
|
|
183
|
+
paddingBlockEnd?: PaddingBlockEnd;
|
|
184
|
+
paddingInline?: PaddingInline;
|
|
185
|
+
paddingInlineStart?: PaddingInlineStart;
|
|
186
|
+
paddingInlineEnd?: PaddingInlineEnd;
|
|
177
187
|
width?: Width;
|
|
178
188
|
height?: Height;
|
|
179
|
-
display?: Display
|
|
189
|
+
display?: Display;
|
|
180
190
|
position?: Position;
|
|
181
191
|
ref?: ComponentPropsWithRef<T>['ref'];
|
|
182
192
|
};
|
|
@@ -265,9 +275,9 @@ type BorderWidth_2 = keyof typeof borderWidthMap_2;
|
|
|
265
275
|
|
|
266
276
|
// @public (undocumented)
|
|
267
277
|
const borderWidthMap: {
|
|
268
|
-
readonly 'size.0':
|
|
269
|
-
readonly 'size.050':
|
|
270
|
-
readonly 'size.100':
|
|
278
|
+
readonly 'size.0': SerializedStyles;
|
|
279
|
+
readonly 'size.050': SerializedStyles;
|
|
280
|
+
readonly 'size.100': SerializedStyles;
|
|
271
281
|
};
|
|
272
282
|
|
|
273
283
|
// @public (undocumented)
|
|
@@ -281,19 +291,24 @@ const borderWidthMap_2: {
|
|
|
281
291
|
export const Box: BoxComponent;
|
|
282
292
|
|
|
283
293
|
// @public (undocumented)
|
|
284
|
-
|
|
294
|
+
type BoxComponent<T extends ElementType = 'div'> = (<T extends ElementType = 'div'>(props: BoxProps<T>) => ReactElement | null) & FC<BoxProps<T>>;
|
|
285
295
|
|
|
286
296
|
// @public (undocumented)
|
|
287
|
-
type
|
|
297
|
+
export type BoxProps<T extends ElementType = 'div'> = Omit<BaseBoxProps<T>, 'className'> & PublicBoxPropsBase;
|
|
288
298
|
|
|
289
299
|
// @public (undocumented)
|
|
290
|
-
|
|
300
|
+
type BoxStyles = SerializedStyles_2 & {
|
|
301
|
+
[boxTag]: true;
|
|
302
|
+
};
|
|
291
303
|
|
|
292
304
|
// @public (undocumented)
|
|
293
|
-
|
|
305
|
+
const boxTag: unique symbol;
|
|
294
306
|
|
|
295
|
-
// @public
|
|
296
|
-
type
|
|
307
|
+
// @public (undocumented)
|
|
308
|
+
type BoxXCSS = {
|
|
309
|
+
readonly symbol: typeof uniqueSymbol;
|
|
310
|
+
readonly styles: BoxStyles;
|
|
311
|
+
};
|
|
297
312
|
|
|
298
313
|
// @public (undocumented)
|
|
299
314
|
const dimensionMap: {
|
|
@@ -312,11 +327,11 @@ type Display = keyof typeof displayMap;
|
|
|
312
327
|
|
|
313
328
|
// @public (undocumented)
|
|
314
329
|
const displayMap: {
|
|
315
|
-
readonly block:
|
|
316
|
-
readonly inline:
|
|
317
|
-
readonly flex:
|
|
318
|
-
readonly 'inline-flex':
|
|
319
|
-
readonly 'inline-block':
|
|
330
|
+
readonly block: SerializedStyles;
|
|
331
|
+
readonly inline: SerializedStyles;
|
|
332
|
+
readonly flex: SerializedStyles;
|
|
333
|
+
readonly 'inline-flex': SerializedStyles;
|
|
334
|
+
readonly 'inline-block': SerializedStyles;
|
|
320
335
|
};
|
|
321
336
|
|
|
322
337
|
// @public (undocumented)
|
|
@@ -345,6 +360,12 @@ const flexShrinkMap: {
|
|
|
345
360
|
readonly '1': SerializedStyles;
|
|
346
361
|
};
|
|
347
362
|
|
|
363
|
+
// @public (undocumented)
|
|
364
|
+
type Gap = keyof typeof inlineSpaceMap.gap;
|
|
365
|
+
|
|
366
|
+
// @public (undocumented)
|
|
367
|
+
type Gap_2 = keyof typeof stackSpaceMap.gap;
|
|
368
|
+
|
|
348
369
|
// @public (undocumented)
|
|
349
370
|
type Grow = 'fill' | 'hug';
|
|
350
371
|
|
|
@@ -379,16 +400,43 @@ export interface InlineProps<T extends ElementType = 'div'> {
|
|
|
379
400
|
as?: 'div' | 'ol' | 'span' | 'ul';
|
|
380
401
|
children: ReactNode;
|
|
381
402
|
grow?: Grow;
|
|
382
|
-
// (undocumented)
|
|
383
403
|
ref?: ComponentPropsWithRef<T>['ref'];
|
|
384
|
-
rowSpace?:
|
|
404
|
+
rowSpace?: RowGap;
|
|
385
405
|
separator?: string;
|
|
386
406
|
shouldWrap?: boolean;
|
|
387
|
-
space?:
|
|
407
|
+
space?: Gap;
|
|
388
408
|
spread?: Spread;
|
|
389
409
|
testId?: string;
|
|
390
410
|
}
|
|
391
411
|
|
|
412
|
+
// @public
|
|
413
|
+
const inlineSpaceMap: {
|
|
414
|
+
[k: string]: {
|
|
415
|
+
readonly '0': SerializedStyles;
|
|
416
|
+
readonly '025': SerializedStyles;
|
|
417
|
+
readonly '050': SerializedStyles;
|
|
418
|
+
readonly '075': SerializedStyles;
|
|
419
|
+
readonly '100': SerializedStyles;
|
|
420
|
+
readonly '150': SerializedStyles;
|
|
421
|
+
readonly '200': SerializedStyles;
|
|
422
|
+
readonly '250': SerializedStyles;
|
|
423
|
+
readonly '300': SerializedStyles;
|
|
424
|
+
readonly '400': SerializedStyles;
|
|
425
|
+
readonly '500': SerializedStyles;
|
|
426
|
+
readonly '600': SerializedStyles;
|
|
427
|
+
readonly '800': SerializedStyles;
|
|
428
|
+
readonly '1000': SerializedStyles;
|
|
429
|
+
};
|
|
430
|
+
};
|
|
431
|
+
|
|
432
|
+
// @public (undocumented)
|
|
433
|
+
type InlineStyles = SerializedStyles_2 & {
|
|
434
|
+
[inlineTag]: true;
|
|
435
|
+
};
|
|
436
|
+
|
|
437
|
+
// @public (undocumented)
|
|
438
|
+
const inlineTag: unique symbol;
|
|
439
|
+
|
|
392
440
|
// @public (undocumented)
|
|
393
441
|
type Layer = keyof typeof LAYERS;
|
|
394
442
|
|
|
@@ -445,45 +493,47 @@ const overflowMap: {
|
|
|
445
493
|
};
|
|
446
494
|
|
|
447
495
|
// @public (undocumented)
|
|
448
|
-
type Padding = keyof typeof paddingMap;
|
|
496
|
+
type Padding = keyof typeof paddingMap.padding;
|
|
449
497
|
|
|
450
498
|
// @public (undocumented)
|
|
451
499
|
type Padding_2 = keyof typeof paddingMap_2;
|
|
452
500
|
|
|
453
501
|
// @public (undocumented)
|
|
454
|
-
type PaddingBlock = keyof typeof paddingMap;
|
|
502
|
+
type PaddingBlock = keyof typeof paddingMap.paddingBlock;
|
|
455
503
|
|
|
456
504
|
// @public (undocumented)
|
|
457
|
-
type PaddingBlockEnd = keyof typeof paddingMap;
|
|
505
|
+
type PaddingBlockEnd = keyof typeof paddingMap.paddingBlockEnd;
|
|
458
506
|
|
|
459
507
|
// @public (undocumented)
|
|
460
|
-
type PaddingBlockStart = keyof typeof paddingMap;
|
|
508
|
+
type PaddingBlockStart = keyof typeof paddingMap.paddingBlockStart;
|
|
461
509
|
|
|
462
510
|
// @public (undocumented)
|
|
463
|
-
type PaddingInline = keyof typeof paddingMap;
|
|
511
|
+
type PaddingInline = keyof typeof paddingMap.paddingInline;
|
|
464
512
|
|
|
465
513
|
// @public (undocumented)
|
|
466
|
-
type PaddingInlineEnd = keyof typeof paddingMap;
|
|
514
|
+
type PaddingInlineEnd = keyof typeof paddingMap.paddingInlineEnd;
|
|
467
515
|
|
|
468
516
|
// @public (undocumented)
|
|
469
|
-
type PaddingInlineStart = keyof typeof paddingMap;
|
|
517
|
+
type PaddingInlineStart = keyof typeof paddingMap.paddingInlineStart;
|
|
470
518
|
|
|
471
519
|
// @public
|
|
472
520
|
const paddingMap: {
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
521
|
+
[k: string]: {
|
|
522
|
+
readonly 'space.0': SerializedStyles;
|
|
523
|
+
readonly 'space.025': SerializedStyles;
|
|
524
|
+
readonly 'space.050': SerializedStyles;
|
|
525
|
+
readonly 'space.075': SerializedStyles;
|
|
526
|
+
readonly 'space.100': SerializedStyles;
|
|
527
|
+
readonly 'space.150': SerializedStyles;
|
|
528
|
+
readonly 'space.200': SerializedStyles;
|
|
529
|
+
readonly 'space.250': SerializedStyles;
|
|
530
|
+
readonly 'space.300': SerializedStyles;
|
|
531
|
+
readonly 'space.400': SerializedStyles;
|
|
532
|
+
readonly 'space.500': SerializedStyles;
|
|
533
|
+
readonly 'space.600': SerializedStyles;
|
|
534
|
+
readonly 'space.800': SerializedStyles;
|
|
535
|
+
readonly 'space.1000': SerializedStyles;
|
|
536
|
+
};
|
|
487
537
|
};
|
|
488
538
|
|
|
489
539
|
// @public (undocumented)
|
|
@@ -517,47 +567,17 @@ const positionMap: {
|
|
|
517
567
|
|
|
518
568
|
// @public (undocumented)
|
|
519
569
|
type PublicBoxPropsBase = {
|
|
520
|
-
|
|
521
|
-
display?: Display;
|
|
522
|
-
padding?: Padding;
|
|
523
|
-
paddingBlock?: PaddingBlock;
|
|
524
|
-
paddingBlockStart?: PaddingBlockStart;
|
|
525
|
-
paddingBlockEnd?: PaddingBlockEnd;
|
|
526
|
-
paddingInline?: PaddingInline;
|
|
527
|
-
paddingInlineStart?: PaddingInlineStart;
|
|
528
|
-
paddingInlineEnd?: PaddingInlineEnd;
|
|
529
|
-
xcss?: SafeCSS;
|
|
570
|
+
xcss?: BoxXCSS;
|
|
530
571
|
};
|
|
531
572
|
|
|
532
|
-
// @public
|
|
533
|
-
type ResponsiveObject<T> = Partial<Record<Breakpoint, T>>;
|
|
534
|
-
|
|
535
|
-
// @public (undocumented)
|
|
536
|
-
type RowSpace = keyof typeof rowSpaceMap;
|
|
537
|
-
|
|
538
573
|
// @public (undocumented)
|
|
539
|
-
|
|
540
|
-
readonly '0': SerializedStyles;
|
|
541
|
-
readonly '025': SerializedStyles;
|
|
542
|
-
readonly '050': SerializedStyles;
|
|
543
|
-
readonly '075': SerializedStyles;
|
|
544
|
-
readonly '100': SerializedStyles;
|
|
545
|
-
readonly '150': SerializedStyles;
|
|
546
|
-
readonly '200': SerializedStyles;
|
|
547
|
-
readonly '250': SerializedStyles;
|
|
548
|
-
readonly '300': SerializedStyles;
|
|
549
|
-
readonly '400': SerializedStyles;
|
|
550
|
-
readonly '500': SerializedStyles;
|
|
551
|
-
readonly '600': SerializedStyles;
|
|
552
|
-
readonly '800': SerializedStyles;
|
|
553
|
-
readonly '1000': SerializedStyles;
|
|
554
|
-
};
|
|
574
|
+
type RowGap = keyof typeof inlineSpaceMap.rowGap;
|
|
555
575
|
|
|
556
576
|
// @public (undocumented)
|
|
557
|
-
type
|
|
577
|
+
type SafeCSSObject = CSSPseudos & TokenisedProps & Omit<CSSPropertiesWithMultiValues, keyof TokenisedProps>;
|
|
558
578
|
|
|
559
579
|
// @public (undocumented)
|
|
560
|
-
type
|
|
580
|
+
type ScopedSafeCSSObject<T extends keyof SafeCSSObject> = Pick<SafeCSSObject, T>;
|
|
561
581
|
|
|
562
582
|
// @public (undocumented)
|
|
563
583
|
type Shadow = keyof typeof shadowMap;
|
|
@@ -571,48 +591,6 @@ const shadowMap: {
|
|
|
571
591
|
readonly raised: SerializedStyles;
|
|
572
592
|
};
|
|
573
593
|
|
|
574
|
-
// @public (undocumented)
|
|
575
|
-
type Space = keyof typeof spaceMap;
|
|
576
|
-
|
|
577
|
-
// @public (undocumented)
|
|
578
|
-
type Space_2 = keyof typeof spaceMap_2;
|
|
579
|
-
|
|
580
|
-
// @public
|
|
581
|
-
const spaceMap: {
|
|
582
|
-
readonly '0': SerializedStyles;
|
|
583
|
-
readonly '025': SerializedStyles;
|
|
584
|
-
readonly '050': SerializedStyles;
|
|
585
|
-
readonly '075': SerializedStyles;
|
|
586
|
-
readonly '100': SerializedStyles;
|
|
587
|
-
readonly '150': SerializedStyles;
|
|
588
|
-
readonly '200': SerializedStyles;
|
|
589
|
-
readonly '250': SerializedStyles;
|
|
590
|
-
readonly '300': SerializedStyles;
|
|
591
|
-
readonly '400': SerializedStyles;
|
|
592
|
-
readonly '500': SerializedStyles;
|
|
593
|
-
readonly '600': SerializedStyles;
|
|
594
|
-
readonly '800': SerializedStyles;
|
|
595
|
-
readonly '1000': SerializedStyles;
|
|
596
|
-
};
|
|
597
|
-
|
|
598
|
-
// @public
|
|
599
|
-
const spaceMap_2: {
|
|
600
|
-
readonly '0': SerializedStyles;
|
|
601
|
-
readonly '025': SerializedStyles;
|
|
602
|
-
readonly '050': SerializedStyles;
|
|
603
|
-
readonly '075': SerializedStyles;
|
|
604
|
-
readonly '100': SerializedStyles;
|
|
605
|
-
readonly '150': SerializedStyles;
|
|
606
|
-
readonly '200': SerializedStyles;
|
|
607
|
-
readonly '250': SerializedStyles;
|
|
608
|
-
readonly '300': SerializedStyles;
|
|
609
|
-
readonly '400': SerializedStyles;
|
|
610
|
-
readonly '500': SerializedStyles;
|
|
611
|
-
readonly '600': SerializedStyles;
|
|
612
|
-
readonly '800': SerializedStyles;
|
|
613
|
-
readonly '1000': SerializedStyles;
|
|
614
|
-
};
|
|
615
|
-
|
|
616
594
|
// @public (undocumented)
|
|
617
595
|
type Spread = 'space-between';
|
|
618
596
|
|
|
@@ -629,13 +607,32 @@ export interface StackProps<T extends ElementType = 'div'> {
|
|
|
629
607
|
as?: 'div' | 'ol' | 'span' | 'ul';
|
|
630
608
|
children: ReactNode;
|
|
631
609
|
grow?: Grow_2;
|
|
632
|
-
// (undocumented)
|
|
633
610
|
ref?: ComponentPropsWithRef<T>['ref'];
|
|
634
|
-
space?:
|
|
611
|
+
space?: Gap_2;
|
|
635
612
|
spread?: Spread_2;
|
|
636
613
|
testId?: string;
|
|
637
614
|
}
|
|
638
615
|
|
|
616
|
+
// @public
|
|
617
|
+
const stackSpaceMap: {
|
|
618
|
+
[k: string]: {
|
|
619
|
+
readonly '0': SerializedStyles;
|
|
620
|
+
readonly '025': SerializedStyles;
|
|
621
|
+
readonly '050': SerializedStyles;
|
|
622
|
+
readonly '075': SerializedStyles;
|
|
623
|
+
readonly '100': SerializedStyles;
|
|
624
|
+
readonly '150': SerializedStyles;
|
|
625
|
+
readonly '200': SerializedStyles;
|
|
626
|
+
readonly '250': SerializedStyles;
|
|
627
|
+
readonly '300': SerializedStyles;
|
|
628
|
+
readonly '400': SerializedStyles;
|
|
629
|
+
readonly '500': SerializedStyles;
|
|
630
|
+
readonly '600': SerializedStyles;
|
|
631
|
+
readonly '800': SerializedStyles;
|
|
632
|
+
readonly '1000': SerializedStyles;
|
|
633
|
+
};
|
|
634
|
+
};
|
|
635
|
+
|
|
639
636
|
// @public (undocumented)
|
|
640
637
|
type TextColor = keyof typeof textColorMap;
|
|
641
638
|
|
|
@@ -755,12 +752,9 @@ const widthMap: {
|
|
|
755
752
|
};
|
|
756
753
|
|
|
757
754
|
// @public (undocumented)
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
// @public (undocumented)
|
|
761
|
-
export const xcss: (style?: SafeCSSObject | SafeCSSObject[] | undefined) => {
|
|
755
|
+
export function xcss<Primitive extends typeof Box | typeof Inline = typeof Box>(style: Primitive extends typeof Box ? ScopedSafeCSSObject<AllowedBoxStyles> : Primitive extends typeof Inline ? ScopedSafeCSSObject<AllowedInlineStyles> : never): {
|
|
762
756
|
readonly symbol: typeof uniqueSymbol;
|
|
763
|
-
readonly styles:
|
|
757
|
+
readonly styles: Primitive extends (<T extends ElementType<any> = "div">(props: BoxProps<T>) => ReactElement<any, JSXElementConstructor<any>| string> | null) & FC<BoxProps<"div">> ? BoxStyles : Primitive extends MemoExoticComponent<ForwardRefExoticComponent<Pick<InlineProps<ElementType<any>>, "alignBlock" | "alignInline" | "as" | "children" | "grow" | "rowSpace" | "separator" | "shouldWrap" | "space" | "spread" | "testId"> & RefAttributes<any>>> ? InlineStyles : never;
|
|
764
758
|
};
|
|
765
759
|
|
|
766
760
|
// (No @packageDocumentation comment for this package)
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.BOX_RESPONSIVE_PROPS = void 0;
|
|
7
|
-
var BOX_RESPONSIVE_PROPS = ['borderWidth', 'display', 'padding', 'paddingBlock', 'paddingBlockStart', 'paddingBlockEnd', 'paddingInline', 'paddingInlineStart', 'paddingInlineEnd'];
|
|
8
|
-
exports.BOX_RESPONSIVE_PROPS = BOX_RESPONSIVE_PROPS;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports.isStaticStyleProp = exports.isResponsiveStyleProp = void 0;
|
|
8
|
-
var _typeof2 = _interopRequireDefault(require("@babel/runtime/helpers/typeof"));
|
|
9
|
-
var isResponsiveStyleProp = function isResponsiveStyleProp(propertyValue) {
|
|
10
|
-
return (0, _typeof2.default)(propertyValue) === 'object';
|
|
11
|
-
};
|
|
12
|
-
exports.isResponsiveStyleProp = isResponsiveStyleProp;
|
|
13
|
-
var isStaticStyleProp = function isStaticStyleProp(propertyValue) {
|
|
14
|
-
return typeof propertyValue === 'string';
|
|
15
|
-
};
|
|
16
|
-
exports.isStaticStyleProp = isStaticStyleProp;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const BOX_RESPONSIVE_PROPS = ['borderWidth', 'display', 'padding', 'paddingBlock', 'paddingBlockStart', 'paddingBlockEnd', 'paddingInline', 'paddingInlineStart', 'paddingInlineEnd'];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export var BOX_RESPONSIVE_PROPS = ['borderWidth', 'display', 'padding', 'paddingBlock', 'paddingBlockStart', 'paddingBlockEnd', 'paddingInline', 'paddingInlineStart', 'paddingInlineEnd'];
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import _typeof from "@babel/runtime/helpers/typeof";
|
|
2
|
-
export var isResponsiveStyleProp = function isResponsiveStyleProp(propertyValue) {
|
|
3
|
-
return _typeof(propertyValue) === 'object';
|
|
4
|
-
};
|
|
5
|
-
export var isStaticStyleProp = function isStaticStyleProp(propertyValue) {
|
|
6
|
-
return typeof propertyValue === 'string';
|
|
7
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { SerializedStyles } from '@emotion/react';
|
|
2
|
-
import { ResponsiveCSSObject, ResponsiveObject } from '../../helpers/responsive';
|
|
3
|
-
export declare const BOX_RESPONSIVE_PROPS: readonly ["borderWidth", "display", "padding", "paddingBlock", "paddingBlockStart", "paddingBlockEnd", "paddingInline", "paddingInlineStart", "paddingInlineEnd"];
|
|
4
|
-
export declare type BoxResponsiveProp = typeof BOX_RESPONSIVE_PROPS[number];
|
|
5
|
-
export declare type StaticResponsiveCSSObject = ResponsiveCSSObject & {
|
|
6
|
-
static: SerializedStyles;
|
|
7
|
-
};
|
|
8
|
-
export declare type GenericPropertyValue = string | ResponsiveObject<string> | undefined;
|