@atlaskit/ds-explorations 2.0.6 → 2.0.8

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/ds-explorations
2
2
 
3
+ ## 2.0.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [`6ce08fbcba2`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6ce08fbcba2) - [ux] Fixed a bug where the `<Box>` `justifyContent` prop was mistakenly applying `alignItems` for `start` and `end` values
8
+
9
+ ## 2.0.7
10
+
11
+ ### Patch Changes
12
+
13
+ - [`66493433ce9`](https://bitbucket.org/atlassian/atlassian-frontend/commits/66493433ce9) - Removes temporary, internal-only unsafe exports as they now live in @atlaskit/primitives/responsive.
14
+
3
15
  ## 2.0.6
4
16
 
5
17
  ### Patch Changes
@@ -160,10 +160,10 @@ var flexJustifyContentMap = {
160
160
  justifyContent: 'flex-end'
161
161
  }),
162
162
  start: (0, _react2.css)({
163
- alignItems: 'start'
163
+ justifyContent: 'start'
164
164
  }),
165
165
  end: (0, _react2.css)({
166
- alignItems: 'end'
166
+ justifyContent: 'end'
167
167
  })
168
168
  };
169
169
  var displayMap = {
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.LAYERS = exports.BREAKPOINTS_LIST = exports.BREAKPOINTS_CONFIG = void 0;
6
+ exports.LAYERS = void 0;
7
7
  var LAYERS = {
8
8
  card: 100,
9
9
  navigation: 200,
@@ -15,39 +15,4 @@ var LAYERS = {
15
15
  spotlight: 700,
16
16
  tooltip: 800
17
17
  };
18
- exports.LAYERS = LAYERS;
19
- var BREAKPOINTS_LIST = ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'];
20
- exports.BREAKPOINTS_LIST = BREAKPOINTS_LIST;
21
- var BREAKPOINTS_CONFIG = {
22
- // mobile
23
- xs: {
24
- min: 0,
25
- max: 591
26
- },
27
- // tablet
28
- sm: {
29
- min: 592,
30
- max: 1023
31
- },
32
- // laptop desktop
33
- md: {
34
- min: 1024,
35
- max: 1439
36
- },
37
- // monitor
38
- lg: {
39
- min: 1440,
40
- max: 1767
41
- },
42
- // large high res
43
- xl: {
44
- min: 1768,
45
- max: 2159
46
- },
47
- // extra large high res
48
- xxl: {
49
- min: 2160,
50
- max: Number.MAX_SAFE_INTEGER
51
- }
52
- };
53
- exports.BREAKPOINTS_CONFIG = BREAKPOINTS_CONFIG;
18
+ exports.LAYERS = LAYERS;
package/dist/cjs/index.js CHANGED
@@ -4,18 +4,6 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
- Object.defineProperty(exports, "UNSAFE_BREAKPOINTS_CONFIG", {
8
- enumerable: true,
9
- get: function get() {
10
- return _constants.BREAKPOINTS_CONFIG;
11
- }
12
- });
13
- Object.defineProperty(exports, "UNSAFE_BREAKPOINTS_LIST", {
14
- enumerable: true,
15
- get: function get() {
16
- return _constants.BREAKPOINTS_LIST;
17
- }
18
- });
19
7
  Object.defineProperty(exports, "UNSAFE_Box", {
20
8
  enumerable: true,
21
9
  get: function get() {
@@ -50,5 +38,4 @@ var _box = _interopRequireDefault(require("./components/box.partial"));
50
38
  var _text = _interopRequireDefault(require("./components/text.partial"));
51
39
  var _inline = _interopRequireDefault(require("./components/inline.partial"));
52
40
  var _stack = _interopRequireDefault(require("./components/stack.partial"));
53
- var _interactionSurface = _interopRequireDefault(require("./components/interaction-surface.partial"));
54
- var _constants = require("./constants");
41
+ var _interactionSurface = _interopRequireDefault(require("./components/interaction-surface.partial"));
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/ds-explorations",
3
- "version": "2.0.6",
3
+ "version": "2.0.8",
4
4
  "sideEffects": false
5
5
  }
@@ -152,10 +152,10 @@ const flexJustifyContentMap = {
152
152
  justifyContent: 'flex-end'
153
153
  }),
154
154
  start: css({
155
- alignItems: 'start'
155
+ justifyContent: 'start'
156
156
  }),
157
157
  end: css({
158
- alignItems: 'end'
158
+ justifyContent: 'end'
159
159
  })
160
160
  };
161
161
  const displayMap = {
@@ -8,37 +8,4 @@ export const LAYERS = {
8
8
  flag: 600,
9
9
  spotlight: 700,
10
10
  tooltip: 800
11
- };
12
- export const BREAKPOINTS_LIST = ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'];
13
- export const BREAKPOINTS_CONFIG = {
14
- // mobile
15
- xs: {
16
- min: 0,
17
- max: 591
18
- },
19
- // tablet
20
- sm: {
21
- min: 592,
22
- max: 1023
23
- },
24
- // laptop desktop
25
- md: {
26
- min: 1024,
27
- max: 1439
28
- },
29
- // monitor
30
- lg: {
31
- min: 1440,
32
- max: 1767
33
- },
34
- // large high res
35
- xl: {
36
- min: 1768,
37
- max: 2159
38
- },
39
- // extra large high res
40
- xxl: {
41
- min: 2160,
42
- max: Number.MAX_SAFE_INTEGER
43
- }
44
11
  };
@@ -2,5 +2,4 @@ export { default as UNSAFE_Box } from './components/box.partial';
2
2
  export { default as UNSAFE_Text } from './components/text.partial';
3
3
  export { default as UNSAFE_Inline } from './components/inline.partial';
4
4
  export { default as UNSAFE_Stack } from './components/stack.partial';
5
- export { default as UNSAFE_InteractionSurface } from './components/interaction-surface.partial';
6
- export { BREAKPOINTS_LIST as UNSAFE_BREAKPOINTS_LIST, BREAKPOINTS_CONFIG as UNSAFE_BREAKPOINTS_CONFIG } from './constants';
5
+ export { default as UNSAFE_InteractionSurface } from './components/interaction-surface.partial';
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/ds-explorations",
3
- "version": "2.0.6",
3
+ "version": "2.0.8",
4
4
  "sideEffects": false
5
5
  }
@@ -155,10 +155,10 @@ var flexJustifyContentMap = {
155
155
  justifyContent: 'flex-end'
156
156
  }),
157
157
  start: css({
158
- alignItems: 'start'
158
+ justifyContent: 'start'
159
159
  }),
160
160
  end: css({
161
- alignItems: 'end'
161
+ justifyContent: 'end'
162
162
  })
163
163
  };
164
164
  var displayMap = {
@@ -8,37 +8,4 @@ export var LAYERS = {
8
8
  flag: 600,
9
9
  spotlight: 700,
10
10
  tooltip: 800
11
- };
12
- export var BREAKPOINTS_LIST = ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'];
13
- export var BREAKPOINTS_CONFIG = {
14
- // mobile
15
- xs: {
16
- min: 0,
17
- max: 591
18
- },
19
- // tablet
20
- sm: {
21
- min: 592,
22
- max: 1023
23
- },
24
- // laptop desktop
25
- md: {
26
- min: 1024,
27
- max: 1439
28
- },
29
- // monitor
30
- lg: {
31
- min: 1440,
32
- max: 1767
33
- },
34
- // large high res
35
- xl: {
36
- min: 1768,
37
- max: 2159
38
- },
39
- // extra large high res
40
- xxl: {
41
- min: 2160,
42
- max: Number.MAX_SAFE_INTEGER
43
- }
44
11
  };
package/dist/esm/index.js CHANGED
@@ -2,5 +2,4 @@ export { default as UNSAFE_Box } from './components/box.partial';
2
2
  export { default as UNSAFE_Text } from './components/text.partial';
3
3
  export { default as UNSAFE_Inline } from './components/inline.partial';
4
4
  export { default as UNSAFE_Stack } from './components/stack.partial';
5
- export { default as UNSAFE_InteractionSurface } from './components/interaction-surface.partial';
6
- export { BREAKPOINTS_LIST as UNSAFE_BREAKPOINTS_LIST, BREAKPOINTS_CONFIG as UNSAFE_BREAKPOINTS_CONFIG } from './constants';
5
+ export { default as UNSAFE_InteractionSurface } from './components/interaction-surface.partial';
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/ds-explorations",
3
- "version": "2.0.6",
3
+ "version": "2.0.8",
4
4
  "sideEffects": false
5
5
  }
@@ -10,10 +10,3 @@ export declare const LAYERS: {
10
10
  readonly tooltip: 800;
11
11
  };
12
12
  export declare type Layer = keyof typeof LAYERS;
13
- export declare const BREAKPOINTS_LIST: readonly ["xs", "sm", "md", "lg", "xl", "xxl"];
14
- export declare type Breakpoint = typeof BREAKPOINTS_LIST[number];
15
- export declare type BreakpointConfig = {
16
- min: number;
17
- max: number;
18
- };
19
- export declare const BREAKPOINTS_CONFIG: Record<Breakpoint, BreakpointConfig>;
@@ -7,5 +7,3 @@ export type { BoxProps as UNSAFE_BoxProps } from './components/box.partial';
7
7
  export type { TextProps as UNSAFE_TextProps } from './components/text.partial';
8
8
  export type { InlineProps as UNSAFE_InlineProps } from './components/inline.partial';
9
9
  export type { StackProps as UNSAFE_StackProps } from './components/stack.partial';
10
- export { BREAKPOINTS_LIST as UNSAFE_BREAKPOINTS_LIST, BREAKPOINTS_CONFIG as UNSAFE_BREAKPOINTS_CONFIG, } from './constants';
11
- export type { Breakpoint as UNSAFE_Breakpoint, BreakpointConfig as UNSAFE_BreakpointConfig, } from './constants';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/ds-explorations",
3
- "version": "2.0.6",
3
+ "version": "2.0.8",
4
4
  "description": "An experimental package for exploration and validation of spacing / typography foundations.",
5
5
  "license": "Apache-2.0",
6
6
  "atlassian": {
package/report.api.md CHANGED
@@ -567,31 +567,6 @@ export type UNSAFE_BoxProps<T extends ElementType = 'div'> = Omit<
567
567
  BasePrimitiveProps &
568
568
  BoxPropsBase<T>;
569
569
 
570
- // @public (undocumented)
571
- export type UNSAFE_Breakpoint = typeof UNSAFE_BREAKPOINTS_LIST[number];
572
-
573
- // @public (undocumented)
574
- export type UNSAFE_BreakpointConfig = {
575
- min: number;
576
- max: number;
577
- };
578
-
579
- // @public (undocumented)
580
- export const UNSAFE_BREAKPOINTS_CONFIG: Record<
581
- UNSAFE_Breakpoint,
582
- UNSAFE_BreakpointConfig
583
- >;
584
-
585
- // @public (undocumented)
586
- export const UNSAFE_BREAKPOINTS_LIST: readonly [
587
- 'xs',
588
- 'sm',
589
- 'md',
590
- 'lg',
591
- 'xl',
592
- 'xxl',
593
- ];
594
-
595
570
  // @public @deprecated
596
571
  export const UNSAFE_Inline: MemoExoticComponent<
597
572
  ForwardRefExoticComponent<UNSAFE_InlineProps & RefAttributes<HTMLDivElement>>
@@ -285,8 +285,8 @@ const flexJustifyContentMap = {
285
285
  center: css({ justifyContent: 'center' }),
286
286
  flexStart: css({ justifyContent: 'flex-start' }),
287
287
  flexEnd: css({ justifyContent: 'flex-end' }),
288
- start: css({ alignItems: 'start' }),
289
- end: css({ alignItems: 'end' }),
288
+ start: css({ justifyContent: 'start' }),
289
+ end: css({ justifyContent: 'end' }),
290
290
  };
291
291
 
292
292
  type Display = keyof typeof displayMap;
package/src/constants.tsx CHANGED
@@ -11,44 +11,3 @@ export const LAYERS = {
11
11
  } as const;
12
12
 
13
13
  export type Layer = keyof typeof LAYERS;
14
-
15
- export const BREAKPOINTS_LIST = ['xs', 'sm', 'md', 'lg', 'xl', 'xxl'] as const;
16
- export type Breakpoint = typeof BREAKPOINTS_LIST[number];
17
-
18
- export type BreakpointConfig = {
19
- min: number;
20
- max: number;
21
- };
22
-
23
- export const BREAKPOINTS_CONFIG: Record<Breakpoint, BreakpointConfig> = {
24
- // mobile
25
- xs: {
26
- min: 0,
27
- max: 591,
28
- },
29
- // tablet
30
- sm: {
31
- min: 592,
32
- max: 1023,
33
- },
34
- // laptop desktop
35
- md: {
36
- min: 1024,
37
- max: 1439,
38
- },
39
- // monitor
40
- lg: {
41
- min: 1440,
42
- max: 1767,
43
- },
44
- // large high res
45
- xl: {
46
- min: 1768,
47
- max: 2159,
48
- },
49
- // extra large high res
50
- xxl: {
51
- min: 2160,
52
- max: Number.MAX_SAFE_INTEGER,
53
- },
54
- } as const;
package/src/index.tsx CHANGED
@@ -7,11 +7,3 @@ export type { BoxProps as UNSAFE_BoxProps } from './components/box.partial';
7
7
  export type { TextProps as UNSAFE_TextProps } from './components/text.partial';
8
8
  export type { InlineProps as UNSAFE_InlineProps } from './components/inline.partial';
9
9
  export type { StackProps as UNSAFE_StackProps } from './components/stack.partial';
10
- export {
11
- BREAKPOINTS_LIST as UNSAFE_BREAKPOINTS_LIST,
12
- BREAKPOINTS_CONFIG as UNSAFE_BREAKPOINTS_CONFIG,
13
- } from './constants';
14
- export type {
15
- Breakpoint as UNSAFE_Breakpoint,
16
- BreakpointConfig as UNSAFE_BreakpointConfig,
17
- } from './constants';
@@ -546,21 +546,6 @@ export const UNSAFE_Box: BoxComponent;
546
546
  // @public @deprecated (undocumented)
547
547
  export type UNSAFE_BoxProps<T extends ElementType = 'div'> = Omit<ComponentPropsWithoutRef<T>, 'as' | 'className' | 'style'> & BasePrimitiveProps & BoxPropsBase<T>;
548
548
 
549
- // @public (undocumented)
550
- export type UNSAFE_Breakpoint = typeof UNSAFE_BREAKPOINTS_LIST[number];
551
-
552
- // @public (undocumented)
553
- export type UNSAFE_BreakpointConfig = {
554
- min: number;
555
- max: number;
556
- };
557
-
558
- // @public (undocumented)
559
- export const UNSAFE_BREAKPOINTS_CONFIG: Record<UNSAFE_Breakpoint, UNSAFE_BreakpointConfig>;
560
-
561
- // @public (undocumented)
562
- export const UNSAFE_BREAKPOINTS_LIST: readonly ["xs", "sm", "md", "lg", "xl", "xxl"];
563
-
564
549
  // @public @deprecated
565
550
  export const UNSAFE_Inline: MemoExoticComponent<ForwardRefExoticComponent<UNSAFE_InlineProps & RefAttributes<HTMLDivElement>>>;
566
551