@atlaskit/ds-explorations 1.3.2 → 1.5.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 +3 -0
- package/dist/cjs/components/text.partial.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/inline.partial.js +3 -0
- package/dist/es2019/components/text.partial.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/inline.partial.js +3 -0
- package/dist/esm/components/text.partial.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/components/inline.partial.d.ts +2 -1
- package/dist/types/components/stack.partial.d.ts +1 -1
- package/dist/types/components/text.partial.d.ts +1 -1
- package/dist/types/index.d.ts +2 -0
- package/package.json +1 -1
- package/report.api.md +36 -22
- package/src/components/inline.partial.tsx +2 -1
- package/src/components/stack.partial.tsx +1 -1
- package/src/components/text.partial.tsx +1 -1
- package/src/index.tsx +2 -0
- package/tmp/api-report-tmp.d.ts +23 -22
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/ds-explorations
|
|
2
2
|
|
|
3
|
+
## 1.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`c146611a18c`](https://bitbucket.org/atlassian/atlassian-frontend/commits/c146611a18c) - [ux] Migrate progress-indicator package to use spacing primitives to control spacing in both component and examples. Spacing values have been slightly updated depending on indicator size and spacing properties
|
|
8
|
+
|
|
9
|
+
## 1.4.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`7f886c0aa18`](https://bitbucket.org/atlassian/atlassian-frontend/commits/7f886c0aa18) - The `Inline` component now allows children to be justified 'space-between'.
|
|
14
|
+
|
|
3
15
|
## 1.3.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -20,7 +20,7 @@ var _colorMap = _interopRequireDefault(require("../internal/color-map"));
|
|
|
20
20
|
var _surfaceProvider = require("./surface-provider");
|
|
21
21
|
|
|
22
22
|
var _excluded = ["children"];
|
|
23
|
-
var asAllowlist = ['span', 'div', 'p'];
|
|
23
|
+
var asAllowlist = ['span', 'div', 'p', 'strong'];
|
|
24
24
|
var fontFamily = "-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif";
|
|
25
25
|
var fontSizeMap = {
|
|
26
26
|
'11px': (0, _react2.css)({
|
package/dist/cjs/version.json
CHANGED
|
@@ -4,7 +4,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
4
4
|
import invariant from 'tiny-invariant';
|
|
5
5
|
import surfaceColorMap from '../internal/color-map';
|
|
6
6
|
import { useSurface } from './surface-provider';
|
|
7
|
-
const asAllowlist = ['span', 'div', 'p'];
|
|
7
|
+
const asAllowlist = ['span', 'div', 'p', 'strong'];
|
|
8
8
|
const fontFamily = `-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif`;
|
|
9
9
|
const fontSizeMap = {
|
|
10
10
|
'11px': css({
|
package/dist/es2019/version.json
CHANGED
|
@@ -7,7 +7,7 @@ import { css, jsx } from '@emotion/react';
|
|
|
7
7
|
import invariant from 'tiny-invariant';
|
|
8
8
|
import surfaceColorMap from '../internal/color-map';
|
|
9
9
|
import { useSurface } from './surface-provider';
|
|
10
|
-
var asAllowlist = ['span', 'div', 'p'];
|
|
10
|
+
var asAllowlist = ['span', 'div', 'p', 'strong'];
|
|
11
11
|
var fontFamily = "-apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif";
|
|
12
12
|
var fontSizeMap = {
|
|
13
13
|
'11px': css({
|
package/dist/esm/version.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import type { BasePrimitiveProps } from './types';
|
|
4
|
-
interface InlineProps extends BasePrimitiveProps {
|
|
4
|
+
export interface InlineProps extends BasePrimitiveProps {
|
|
5
5
|
/**
|
|
6
6
|
* Used to align children along the cross axis.
|
|
7
7
|
*/
|
|
@@ -41,6 +41,7 @@ declare type FlexJustifyContent = keyof typeof flexJustifyContentMap;
|
|
|
41
41
|
declare const flexJustifyContentMap: {
|
|
42
42
|
center: import("@emotion/react").SerializedStyles;
|
|
43
43
|
flexStart: import("@emotion/react").SerializedStyles;
|
|
44
|
+
'space-between': import("@emotion/react").SerializedStyles;
|
|
44
45
|
flexEnd: import("@emotion/react").SerializedStyles;
|
|
45
46
|
start: import("@emotion/react").SerializedStyles;
|
|
46
47
|
end: import("@emotion/react").SerializedStyles;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
3
|
import { BasePrimitiveProps } from './types';
|
|
4
|
-
interface StackProps extends BasePrimitiveProps {
|
|
4
|
+
export interface StackProps extends BasePrimitiveProps {
|
|
5
5
|
/**
|
|
6
6
|
* Used to align children along the cross axis.
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
2
|
import { FC, ReactNode } from 'react';
|
|
3
3
|
import type { BasePrimitiveProps } from './types';
|
|
4
|
-
declare const asAllowlist: readonly ["span", "div", "p"];
|
|
4
|
+
declare const asAllowlist: readonly ["span", "div", "p", "strong"];
|
|
5
5
|
declare type AsElement = typeof asAllowlist[number];
|
|
6
6
|
export interface TextProps extends BasePrimitiveProps {
|
|
7
7
|
/**
|
package/dist/types/index.d.ts
CHANGED
|
@@ -5,3 +5,5 @@ export { default as UNSAFE_Stack } from './components/stack.partial';
|
|
|
5
5
|
export { default as UNSAFE_InteractionSurface } from './components/interaction-surface.partial';
|
|
6
6
|
export type { BoxProps as UNSAFE_BoxProps } from './components/box.partial';
|
|
7
7
|
export type { TextProps as UNSAFE_TextProps } from './components/text.partial';
|
|
8
|
+
export type { InlineProps as UNSAFE_InlineProps } from './components/inline.partial';
|
|
9
|
+
export type { StackProps as UNSAFE_StackProps } from './components/stack.partial';
|
package/package.json
CHANGED
package/report.api.md
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
### Table of contents
|
|
9
9
|
|
|
10
10
|
- [Main Entry Types](#main-entry-types)
|
|
11
|
+
- [Peer Dependencies](#peer-dependencies)
|
|
11
12
|
|
|
12
13
|
### Main Entry Types
|
|
13
14
|
|
|
@@ -28,7 +29,7 @@ import { RefAttributes } from 'react';
|
|
|
28
29
|
import { SerializedStyles } from '@emotion/react';
|
|
29
30
|
|
|
30
31
|
// @public (undocumented)
|
|
31
|
-
const asAllowlist: readonly ['span', 'div', 'p'];
|
|
32
|
+
const asAllowlist: readonly ['span', 'div', 'p', 'strong'];
|
|
32
33
|
|
|
33
34
|
// @public (undocumented)
|
|
34
35
|
type AsElement = typeof asAllowlist[number];
|
|
@@ -279,6 +280,7 @@ const flexJustifyContentMap: {
|
|
|
279
280
|
const flexJustifyContentMap_2: {
|
|
280
281
|
center: SerializedStyles;
|
|
281
282
|
flexStart: SerializedStyles;
|
|
283
|
+
'space-between': SerializedStyles;
|
|
282
284
|
flexEnd: SerializedStyles;
|
|
283
285
|
start: SerializedStyles;
|
|
284
286
|
end: SerializedStyles;
|
|
@@ -345,16 +347,6 @@ const heightMap: {
|
|
|
345
347
|
'size.600': SerializedStyles;
|
|
346
348
|
};
|
|
347
349
|
|
|
348
|
-
// @public (undocumented)
|
|
349
|
-
interface InlineProps extends BasePrimitiveProps {
|
|
350
|
-
alignItems?: FlexAlignItems_2;
|
|
351
|
-
children: ReactNode;
|
|
352
|
-
divider?: ReactNode;
|
|
353
|
-
flexWrap?: FlexWrap;
|
|
354
|
-
gap: ColumnGap;
|
|
355
|
-
justifyContent?: FlexJustifyContent_2;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
350
|
// @public (undocumented)
|
|
359
351
|
type InteractionBackgroundColor = keyof typeof backgroundHoverColorMap;
|
|
360
352
|
|
|
@@ -485,15 +477,6 @@ const rowGapMap: {
|
|
|
485
477
|
'scale.800': SerializedStyles;
|
|
486
478
|
};
|
|
487
479
|
|
|
488
|
-
// @public (undocumented)
|
|
489
|
-
interface StackProps extends BasePrimitiveProps {
|
|
490
|
-
alignItems?: FlexAlignItems_3;
|
|
491
|
-
children: ReactNode;
|
|
492
|
-
flexWrap?: FlexWrap_2;
|
|
493
|
-
gap: RowGap;
|
|
494
|
-
justifyContent?: FlexJustifyContent_3;
|
|
495
|
-
}
|
|
496
|
-
|
|
497
480
|
// @public (undocumented)
|
|
498
481
|
type TextAlign = keyof typeof textAlignMap;
|
|
499
482
|
|
|
@@ -547,9 +530,19 @@ export type UNSAFE_BoxProps<T extends ElementType = 'div'> = Omit<
|
|
|
547
530
|
|
|
548
531
|
// @public
|
|
549
532
|
export const UNSAFE_Inline: MemoExoticComponent<
|
|
550
|
-
ForwardRefExoticComponent<
|
|
533
|
+
ForwardRefExoticComponent<UNSAFE_InlineProps & RefAttributes<HTMLDivElement>>
|
|
551
534
|
>;
|
|
552
535
|
|
|
536
|
+
// @public (undocumented)
|
|
537
|
+
export interface UNSAFE_InlineProps extends BasePrimitiveProps {
|
|
538
|
+
alignItems?: FlexAlignItems_2;
|
|
539
|
+
children: ReactNode;
|
|
540
|
+
divider?: ReactNode;
|
|
541
|
+
flexWrap?: FlexWrap;
|
|
542
|
+
gap: ColumnGap;
|
|
543
|
+
justifyContent?: FlexJustifyContent_2;
|
|
544
|
+
}
|
|
545
|
+
|
|
553
546
|
// @public (undocumented)
|
|
554
547
|
export const UNSAFE_InteractionSurface: ({
|
|
555
548
|
appearance,
|
|
@@ -559,9 +552,18 @@ export const UNSAFE_InteractionSurface: ({
|
|
|
559
552
|
|
|
560
553
|
// @public
|
|
561
554
|
export const UNSAFE_Stack: MemoExoticComponent<
|
|
562
|
-
ForwardRefExoticComponent<
|
|
555
|
+
ForwardRefExoticComponent<UNSAFE_StackProps & RefAttributes<HTMLDivElement>>
|
|
563
556
|
>;
|
|
564
557
|
|
|
558
|
+
// @public (undocumented)
|
|
559
|
+
export interface UNSAFE_StackProps extends BasePrimitiveProps {
|
|
560
|
+
alignItems?: FlexAlignItems_3;
|
|
561
|
+
children: ReactNode;
|
|
562
|
+
flexWrap?: FlexWrap_2;
|
|
563
|
+
gap: RowGap;
|
|
564
|
+
justifyContent?: FlexJustifyContent_3;
|
|
565
|
+
}
|
|
566
|
+
|
|
565
567
|
// @internal
|
|
566
568
|
export const UNSAFE_Text: FC<UNSAFE_TextProps>;
|
|
567
569
|
|
|
@@ -609,3 +611,15 @@ const widthMap: {
|
|
|
609
611
|
```
|
|
610
612
|
|
|
611
613
|
<!--SECTION END: Main Entry Types-->
|
|
614
|
+
|
|
615
|
+
### Peer Dependencies
|
|
616
|
+
|
|
617
|
+
<!--SECTION START: Peer Dependencies-->
|
|
618
|
+
|
|
619
|
+
```json
|
|
620
|
+
{
|
|
621
|
+
"react": "^16.8.0"
|
|
622
|
+
}
|
|
623
|
+
```
|
|
624
|
+
|
|
625
|
+
<!--SECTION END: Peer Dependencies-->
|
|
@@ -7,7 +7,7 @@ import { token } from '@atlaskit/tokens';
|
|
|
7
7
|
|
|
8
8
|
import type { BasePrimitiveProps } from './types';
|
|
9
9
|
|
|
10
|
-
interface InlineProps extends BasePrimitiveProps {
|
|
10
|
+
export interface InlineProps extends BasePrimitiveProps {
|
|
11
11
|
/**
|
|
12
12
|
* Used to align children along the cross axis.
|
|
13
13
|
*/
|
|
@@ -49,6 +49,7 @@ type FlexJustifyContent = keyof typeof flexJustifyContentMap;
|
|
|
49
49
|
const flexJustifyContentMap = {
|
|
50
50
|
center: css({ justifyContent: 'center' }),
|
|
51
51
|
flexStart: css({ justifyContent: 'flex-start' }),
|
|
52
|
+
'space-between': css({ justifyContent: 'space-between' }),
|
|
52
53
|
flexEnd: css({ justifyContent: 'flex-end' }),
|
|
53
54
|
start: css({ justifyContent: 'start' }),
|
|
54
55
|
end: css({ justifyContent: 'end' }),
|
|
@@ -7,7 +7,7 @@ import { token } from '@atlaskit/tokens';
|
|
|
7
7
|
|
|
8
8
|
import { BasePrimitiveProps } from './types';
|
|
9
9
|
|
|
10
|
-
interface StackProps extends BasePrimitiveProps {
|
|
10
|
+
export interface StackProps extends BasePrimitiveProps {
|
|
11
11
|
/**
|
|
12
12
|
* Used to align children along the cross axis.
|
|
13
13
|
*/
|
|
@@ -11,7 +11,7 @@ import surfaceColorMap from '../internal/color-map';
|
|
|
11
11
|
import { useSurface } from './surface-provider';
|
|
12
12
|
import type { BasePrimitiveProps } from './types';
|
|
13
13
|
|
|
14
|
-
const asAllowlist = ['span', 'div', 'p'] as const;
|
|
14
|
+
const asAllowlist = ['span', 'div', 'p', 'strong'] as const;
|
|
15
15
|
type AsElement = typeof asAllowlist[number];
|
|
16
16
|
export interface TextProps extends BasePrimitiveProps {
|
|
17
17
|
/**
|
package/src/index.tsx
CHANGED
|
@@ -5,3 +5,5 @@ export { default as UNSAFE_Stack } from './components/stack.partial';
|
|
|
5
5
|
export { default as UNSAFE_InteractionSurface } from './components/interaction-surface.partial';
|
|
6
6
|
export type { BoxProps as UNSAFE_BoxProps } from './components/box.partial';
|
|
7
7
|
export type { TextProps as UNSAFE_TextProps } from './components/text.partial';
|
|
8
|
+
export type { InlineProps as UNSAFE_InlineProps } from './components/inline.partial';
|
|
9
|
+
export type { StackProps as UNSAFE_StackProps } from './components/stack.partial';
|
package/tmp/api-report-tmp.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ import { RefAttributes } from 'react';
|
|
|
18
18
|
import { SerializedStyles } from '@emotion/react';
|
|
19
19
|
|
|
20
20
|
// @public (undocumented)
|
|
21
|
-
const asAllowlist: readonly ["span", "div", "p"];
|
|
21
|
+
const asAllowlist: readonly ["span", "div", "p", "strong"];
|
|
22
22
|
|
|
23
23
|
// @public (undocumented)
|
|
24
24
|
type AsElement = typeof asAllowlist[number];
|
|
@@ -264,6 +264,7 @@ const flexJustifyContentMap: {
|
|
|
264
264
|
const flexJustifyContentMap_2: {
|
|
265
265
|
center: SerializedStyles;
|
|
266
266
|
flexStart: SerializedStyles;
|
|
267
|
+
'space-between': SerializedStyles;
|
|
267
268
|
flexEnd: SerializedStyles;
|
|
268
269
|
start: SerializedStyles;
|
|
269
270
|
end: SerializedStyles;
|
|
@@ -330,16 +331,6 @@ const heightMap: {
|
|
|
330
331
|
'size.600': SerializedStyles;
|
|
331
332
|
};
|
|
332
333
|
|
|
333
|
-
// @public (undocumented)
|
|
334
|
-
interface InlineProps extends BasePrimitiveProps {
|
|
335
|
-
alignItems?: FlexAlignItems_2;
|
|
336
|
-
children: ReactNode;
|
|
337
|
-
divider?: ReactNode;
|
|
338
|
-
flexWrap?: FlexWrap;
|
|
339
|
-
gap: ColumnGap;
|
|
340
|
-
justifyContent?: FlexJustifyContent_2;
|
|
341
|
-
}
|
|
342
|
-
|
|
343
334
|
// @public (undocumented)
|
|
344
335
|
type InteractionBackgroundColor = keyof typeof backgroundHoverColorMap;
|
|
345
336
|
|
|
@@ -470,15 +461,6 @@ const rowGapMap: {
|
|
|
470
461
|
'scale.800': SerializedStyles;
|
|
471
462
|
};
|
|
472
463
|
|
|
473
|
-
// @public (undocumented)
|
|
474
|
-
interface StackProps extends BasePrimitiveProps {
|
|
475
|
-
alignItems?: FlexAlignItems_3;
|
|
476
|
-
children: ReactNode;
|
|
477
|
-
flexWrap?: FlexWrap_2;
|
|
478
|
-
gap: RowGap;
|
|
479
|
-
justifyContent?: FlexJustifyContent_3;
|
|
480
|
-
}
|
|
481
|
-
|
|
482
464
|
// @public (undocumented)
|
|
483
465
|
type TextAlign = keyof typeof textAlignMap;
|
|
484
466
|
|
|
@@ -526,13 +508,32 @@ export const UNSAFE_Box: BoxComponent;
|
|
|
526
508
|
export type UNSAFE_BoxProps<T extends ElementType = 'div'> = Omit<ComponentPropsWithoutRef<T>, PropsToOmit> & BasePrimitiveProps & BoxPropsBase<T>;
|
|
527
509
|
|
|
528
510
|
// @public
|
|
529
|
-
export const UNSAFE_Inline: MemoExoticComponent<ForwardRefExoticComponent<
|
|
511
|
+
export const UNSAFE_Inline: MemoExoticComponent<ForwardRefExoticComponent<UNSAFE_InlineProps & RefAttributes<HTMLDivElement>>>;
|
|
512
|
+
|
|
513
|
+
// @public (undocumented)
|
|
514
|
+
export interface UNSAFE_InlineProps extends BasePrimitiveProps {
|
|
515
|
+
alignItems?: FlexAlignItems_2;
|
|
516
|
+
children: ReactNode;
|
|
517
|
+
divider?: ReactNode;
|
|
518
|
+
flexWrap?: FlexWrap;
|
|
519
|
+
gap: ColumnGap;
|
|
520
|
+
justifyContent?: FlexJustifyContent_2;
|
|
521
|
+
}
|
|
530
522
|
|
|
531
523
|
// @public (undocumented)
|
|
532
524
|
export const UNSAFE_InteractionSurface: ({ appearance, children, testId, }: InteractionSurfaceProps) => jsx.JSX.Element;
|
|
533
525
|
|
|
534
526
|
// @public
|
|
535
|
-
export const UNSAFE_Stack: MemoExoticComponent<ForwardRefExoticComponent<
|
|
527
|
+
export const UNSAFE_Stack: MemoExoticComponent<ForwardRefExoticComponent<UNSAFE_StackProps & RefAttributes<HTMLDivElement>>>;
|
|
528
|
+
|
|
529
|
+
// @public (undocumented)
|
|
530
|
+
export interface UNSAFE_StackProps extends BasePrimitiveProps {
|
|
531
|
+
alignItems?: FlexAlignItems_3;
|
|
532
|
+
children: ReactNode;
|
|
533
|
+
flexWrap?: FlexWrap_2;
|
|
534
|
+
gap: RowGap;
|
|
535
|
+
justifyContent?: FlexJustifyContent_3;
|
|
536
|
+
}
|
|
536
537
|
|
|
537
538
|
// @internal
|
|
538
539
|
export const UNSAFE_Text: FC<UNSAFE_TextProps>;
|