@atlaskit/ds-explorations 1.4.0 → 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 +6 -0
- package/dist/cjs/components/text.partial.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/text.partial.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/text.partial.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/components/inline.partial.d.ts +1 -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 +22 -22
- package/src/components/inline.partial.tsx +1 -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 +22 -22
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
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
|
+
|
|
3
9
|
## 1.4.0
|
|
4
10
|
|
|
5
11
|
### Minor 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
|
*/
|
|
@@ -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
|
@@ -29,7 +29,7 @@ import { RefAttributes } from 'react';
|
|
|
29
29
|
import { SerializedStyles } from '@emotion/react';
|
|
30
30
|
|
|
31
31
|
// @public (undocumented)
|
|
32
|
-
const asAllowlist: readonly ['span', 'div', 'p'];
|
|
32
|
+
const asAllowlist: readonly ['span', 'div', 'p', 'strong'];
|
|
33
33
|
|
|
34
34
|
// @public (undocumented)
|
|
35
35
|
type AsElement = typeof asAllowlist[number];
|
|
@@ -347,16 +347,6 @@ const heightMap: {
|
|
|
347
347
|
'size.600': SerializedStyles;
|
|
348
348
|
};
|
|
349
349
|
|
|
350
|
-
// @public (undocumented)
|
|
351
|
-
interface InlineProps extends BasePrimitiveProps {
|
|
352
|
-
alignItems?: FlexAlignItems_2;
|
|
353
|
-
children: ReactNode;
|
|
354
|
-
divider?: ReactNode;
|
|
355
|
-
flexWrap?: FlexWrap;
|
|
356
|
-
gap: ColumnGap;
|
|
357
|
-
justifyContent?: FlexJustifyContent_2;
|
|
358
|
-
}
|
|
359
|
-
|
|
360
350
|
// @public (undocumented)
|
|
361
351
|
type InteractionBackgroundColor = keyof typeof backgroundHoverColorMap;
|
|
362
352
|
|
|
@@ -487,15 +477,6 @@ const rowGapMap: {
|
|
|
487
477
|
'scale.800': SerializedStyles;
|
|
488
478
|
};
|
|
489
479
|
|
|
490
|
-
// @public (undocumented)
|
|
491
|
-
interface StackProps extends BasePrimitiveProps {
|
|
492
|
-
alignItems?: FlexAlignItems_3;
|
|
493
|
-
children: ReactNode;
|
|
494
|
-
flexWrap?: FlexWrap_2;
|
|
495
|
-
gap: RowGap;
|
|
496
|
-
justifyContent?: FlexJustifyContent_3;
|
|
497
|
-
}
|
|
498
|
-
|
|
499
480
|
// @public (undocumented)
|
|
500
481
|
type TextAlign = keyof typeof textAlignMap;
|
|
501
482
|
|
|
@@ -549,9 +530,19 @@ export type UNSAFE_BoxProps<T extends ElementType = 'div'> = Omit<
|
|
|
549
530
|
|
|
550
531
|
// @public
|
|
551
532
|
export const UNSAFE_Inline: MemoExoticComponent<
|
|
552
|
-
ForwardRefExoticComponent<
|
|
533
|
+
ForwardRefExoticComponent<UNSAFE_InlineProps & RefAttributes<HTMLDivElement>>
|
|
553
534
|
>;
|
|
554
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
|
+
|
|
555
546
|
// @public (undocumented)
|
|
556
547
|
export const UNSAFE_InteractionSurface: ({
|
|
557
548
|
appearance,
|
|
@@ -561,9 +552,18 @@ export const UNSAFE_InteractionSurface: ({
|
|
|
561
552
|
|
|
562
553
|
// @public
|
|
563
554
|
export const UNSAFE_Stack: MemoExoticComponent<
|
|
564
|
-
ForwardRefExoticComponent<
|
|
555
|
+
ForwardRefExoticComponent<UNSAFE_StackProps & RefAttributes<HTMLDivElement>>
|
|
565
556
|
>;
|
|
566
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
|
+
|
|
567
567
|
// @internal
|
|
568
568
|
export const UNSAFE_Text: FC<UNSAFE_TextProps>;
|
|
569
569
|
|
|
@@ -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
|
*/
|
|
@@ -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];
|
|
@@ -331,16 +331,6 @@ const heightMap: {
|
|
|
331
331
|
'size.600': SerializedStyles;
|
|
332
332
|
};
|
|
333
333
|
|
|
334
|
-
// @public (undocumented)
|
|
335
|
-
interface InlineProps extends BasePrimitiveProps {
|
|
336
|
-
alignItems?: FlexAlignItems_2;
|
|
337
|
-
children: ReactNode;
|
|
338
|
-
divider?: ReactNode;
|
|
339
|
-
flexWrap?: FlexWrap;
|
|
340
|
-
gap: ColumnGap;
|
|
341
|
-
justifyContent?: FlexJustifyContent_2;
|
|
342
|
-
}
|
|
343
|
-
|
|
344
334
|
// @public (undocumented)
|
|
345
335
|
type InteractionBackgroundColor = keyof typeof backgroundHoverColorMap;
|
|
346
336
|
|
|
@@ -471,15 +461,6 @@ const rowGapMap: {
|
|
|
471
461
|
'scale.800': SerializedStyles;
|
|
472
462
|
};
|
|
473
463
|
|
|
474
|
-
// @public (undocumented)
|
|
475
|
-
interface StackProps extends BasePrimitiveProps {
|
|
476
|
-
alignItems?: FlexAlignItems_3;
|
|
477
|
-
children: ReactNode;
|
|
478
|
-
flexWrap?: FlexWrap_2;
|
|
479
|
-
gap: RowGap;
|
|
480
|
-
justifyContent?: FlexJustifyContent_3;
|
|
481
|
-
}
|
|
482
|
-
|
|
483
464
|
// @public (undocumented)
|
|
484
465
|
type TextAlign = keyof typeof textAlignMap;
|
|
485
466
|
|
|
@@ -527,13 +508,32 @@ export const UNSAFE_Box: BoxComponent;
|
|
|
527
508
|
export type UNSAFE_BoxProps<T extends ElementType = 'div'> = Omit<ComponentPropsWithoutRef<T>, PropsToOmit> & BasePrimitiveProps & BoxPropsBase<T>;
|
|
528
509
|
|
|
529
510
|
// @public
|
|
530
|
-
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
|
+
}
|
|
531
522
|
|
|
532
523
|
// @public (undocumented)
|
|
533
524
|
export const UNSAFE_InteractionSurface: ({ appearance, children, testId, }: InteractionSurfaceProps) => jsx.JSX.Element;
|
|
534
525
|
|
|
535
526
|
// @public
|
|
536
|
-
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
|
+
}
|
|
537
537
|
|
|
538
538
|
// @internal
|
|
539
539
|
export const UNSAFE_Text: FC<UNSAFE_TextProps>;
|