@atlaskit/ds-explorations 1.4.0 → 1.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/box.partial.js +3 -0
- package/dist/cjs/components/text.partial.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/components/box.partial.js +3 -0
- package/dist/es2019/components/text.partial.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/components/box.partial.js +3 -0
- package/dist/esm/components/text.partial.js +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types/components/box.partial.d.ts +1 -0
- 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 +23 -22
- package/src/components/box.partial.tsx +1 -0
- 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 +23 -22
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/ds-explorations
|
|
2
2
|
|
|
3
|
+
## 1.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`9f9498aafb1`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9f9498aafb1) - [ux] Box API introduces `hidden` for `overflow` prop.
|
|
8
|
+
|
|
9
|
+
## 1.5.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`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
|
|
14
|
+
|
|
3
15
|
## 1.4.0
|
|
4
16
|
|
|
5
17
|
### 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
|
@@ -172,6 +172,7 @@ declare const positionMap: {
|
|
|
172
172
|
declare type Overflow = keyof typeof overflowMap;
|
|
173
173
|
declare const overflowMap: {
|
|
174
174
|
auto: import("@emotion/react").SerializedStyles;
|
|
175
|
+
hidden: import("@emotion/react").SerializedStyles;
|
|
175
176
|
};
|
|
176
177
|
/**
|
|
177
178
|
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
@@ -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
|
|
|
@@ -388,6 +378,7 @@ type Overflow = keyof typeof overflowMap;
|
|
|
388
378
|
// @public (undocumented)
|
|
389
379
|
const overflowMap: {
|
|
390
380
|
auto: SerializedStyles;
|
|
381
|
+
hidden: SerializedStyles;
|
|
391
382
|
};
|
|
392
383
|
|
|
393
384
|
// @public (undocumented)
|
|
@@ -487,15 +478,6 @@ const rowGapMap: {
|
|
|
487
478
|
'scale.800': SerializedStyles;
|
|
488
479
|
};
|
|
489
480
|
|
|
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
481
|
// @public (undocumented)
|
|
500
482
|
type TextAlign = keyof typeof textAlignMap;
|
|
501
483
|
|
|
@@ -549,9 +531,19 @@ export type UNSAFE_BoxProps<T extends ElementType = 'div'> = Omit<
|
|
|
549
531
|
|
|
550
532
|
// @public
|
|
551
533
|
export const UNSAFE_Inline: MemoExoticComponent<
|
|
552
|
-
ForwardRefExoticComponent<
|
|
534
|
+
ForwardRefExoticComponent<UNSAFE_InlineProps & RefAttributes<HTMLDivElement>>
|
|
553
535
|
>;
|
|
554
536
|
|
|
537
|
+
// @public (undocumented)
|
|
538
|
+
export interface UNSAFE_InlineProps extends BasePrimitiveProps {
|
|
539
|
+
alignItems?: FlexAlignItems_2;
|
|
540
|
+
children: ReactNode;
|
|
541
|
+
divider?: ReactNode;
|
|
542
|
+
flexWrap?: FlexWrap;
|
|
543
|
+
gap: ColumnGap;
|
|
544
|
+
justifyContent?: FlexJustifyContent_2;
|
|
545
|
+
}
|
|
546
|
+
|
|
555
547
|
// @public (undocumented)
|
|
556
548
|
export const UNSAFE_InteractionSurface: ({
|
|
557
549
|
appearance,
|
|
@@ -561,9 +553,18 @@ export const UNSAFE_InteractionSurface: ({
|
|
|
561
553
|
|
|
562
554
|
// @public
|
|
563
555
|
export const UNSAFE_Stack: MemoExoticComponent<
|
|
564
|
-
ForwardRefExoticComponent<
|
|
556
|
+
ForwardRefExoticComponent<UNSAFE_StackProps & RefAttributes<HTMLDivElement>>
|
|
565
557
|
>;
|
|
566
558
|
|
|
559
|
+
// @public (undocumented)
|
|
560
|
+
export interface UNSAFE_StackProps extends BasePrimitiveProps {
|
|
561
|
+
alignItems?: FlexAlignItems_3;
|
|
562
|
+
children: ReactNode;
|
|
563
|
+
flexWrap?: FlexWrap_2;
|
|
564
|
+
gap: RowGap;
|
|
565
|
+
justifyContent?: FlexJustifyContent_3;
|
|
566
|
+
}
|
|
567
|
+
|
|
567
568
|
// @internal
|
|
568
569
|
export const UNSAFE_Text: FC<UNSAFE_TextProps>;
|
|
569
570
|
|
|
@@ -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
|
|
|
@@ -372,6 +362,7 @@ type Overflow = keyof typeof overflowMap;
|
|
|
372
362
|
// @public (undocumented)
|
|
373
363
|
const overflowMap: {
|
|
374
364
|
auto: SerializedStyles;
|
|
365
|
+
hidden: SerializedStyles;
|
|
375
366
|
};
|
|
376
367
|
|
|
377
368
|
// @public (undocumented)
|
|
@@ -471,15 +462,6 @@ const rowGapMap: {
|
|
|
471
462
|
'scale.800': SerializedStyles;
|
|
472
463
|
};
|
|
473
464
|
|
|
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
465
|
// @public (undocumented)
|
|
484
466
|
type TextAlign = keyof typeof textAlignMap;
|
|
485
467
|
|
|
@@ -527,13 +509,32 @@ export const UNSAFE_Box: BoxComponent;
|
|
|
527
509
|
export type UNSAFE_BoxProps<T extends ElementType = 'div'> = Omit<ComponentPropsWithoutRef<T>, PropsToOmit> & BasePrimitiveProps & BoxPropsBase<T>;
|
|
528
510
|
|
|
529
511
|
// @public
|
|
530
|
-
export const UNSAFE_Inline: MemoExoticComponent<ForwardRefExoticComponent<
|
|
512
|
+
export const UNSAFE_Inline: MemoExoticComponent<ForwardRefExoticComponent<UNSAFE_InlineProps & RefAttributes<HTMLDivElement>>>;
|
|
513
|
+
|
|
514
|
+
// @public (undocumented)
|
|
515
|
+
export interface UNSAFE_InlineProps extends BasePrimitiveProps {
|
|
516
|
+
alignItems?: FlexAlignItems_2;
|
|
517
|
+
children: ReactNode;
|
|
518
|
+
divider?: ReactNode;
|
|
519
|
+
flexWrap?: FlexWrap;
|
|
520
|
+
gap: ColumnGap;
|
|
521
|
+
justifyContent?: FlexJustifyContent_2;
|
|
522
|
+
}
|
|
531
523
|
|
|
532
524
|
// @public (undocumented)
|
|
533
525
|
export const UNSAFE_InteractionSurface: ({ appearance, children, testId, }: InteractionSurfaceProps) => jsx.JSX.Element;
|
|
534
526
|
|
|
535
527
|
// @public
|
|
536
|
-
export const UNSAFE_Stack: MemoExoticComponent<ForwardRefExoticComponent<
|
|
528
|
+
export const UNSAFE_Stack: MemoExoticComponent<ForwardRefExoticComponent<UNSAFE_StackProps & RefAttributes<HTMLDivElement>>>;
|
|
529
|
+
|
|
530
|
+
// @public (undocumented)
|
|
531
|
+
export interface UNSAFE_StackProps extends BasePrimitiveProps {
|
|
532
|
+
alignItems?: FlexAlignItems_3;
|
|
533
|
+
children: ReactNode;
|
|
534
|
+
flexWrap?: FlexWrap_2;
|
|
535
|
+
gap: RowGap;
|
|
536
|
+
justifyContent?: FlexJustifyContent_3;
|
|
537
|
+
}
|
|
537
538
|
|
|
538
539
|
// @internal
|
|
539
540
|
export const UNSAFE_Text: FC<UNSAFE_TextProps>;
|