@atlaskit/ds-explorations 2.0.5 → 2.0.6

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,11 @@
1
1
  # @atlaskit/ds-explorations
2
2
 
3
+ ## 2.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [`4b219ed17bf`](https://bitbucket.org/atlassian/atlassian-frontend/commits/4b219ed17bf) - Breakpoint constants added to be used in responsive spikes initially
8
+
3
9
  ## 2.0.5
4
10
 
5
11
  ### Patch Changes
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.LAYERS = void 0;
6
+ exports.LAYERS = exports.BREAKPOINTS_LIST = exports.BREAKPOINTS_CONFIG = void 0;
7
7
  var LAYERS = {
8
8
  card: 100,
9
9
  navigation: 200,
@@ -15,4 +15,39 @@ var LAYERS = {
15
15
  spotlight: 700,
16
16
  tooltip: 800
17
17
  };
18
- exports.LAYERS = LAYERS;
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;
package/dist/cjs/index.js CHANGED
@@ -4,6 +4,18 @@ 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
+ });
7
19
  Object.defineProperty(exports, "UNSAFE_Box", {
8
20
  enumerable: true,
9
21
  get: function get() {
@@ -38,4 +50,5 @@ var _box = _interopRequireDefault(require("./components/box.partial"));
38
50
  var _text = _interopRequireDefault(require("./components/text.partial"));
39
51
  var _inline = _interopRequireDefault(require("./components/inline.partial"));
40
52
  var _stack = _interopRequireDefault(require("./components/stack.partial"));
41
- var _interactionSurface = _interopRequireDefault(require("./components/interaction-surface.partial"));
53
+ var _interactionSurface = _interopRequireDefault(require("./components/interaction-surface.partial"));
54
+ var _constants = require("./constants");
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/ds-explorations",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "sideEffects": false
5
5
  }
@@ -8,4 +8,37 @@ 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
+ }
11
44
  };
@@ -2,4 +2,5 @@ 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';
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';
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/ds-explorations",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "sideEffects": false
5
5
  }
@@ -8,4 +8,37 @@ 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
+ }
11
44
  };
package/dist/esm/index.js CHANGED
@@ -2,4 +2,5 @@ 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';
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';
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/ds-explorations",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "sideEffects": false
5
5
  }
@@ -10,3 +10,10 @@ 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,3 +7,5 @@ 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.5",
3
+ "version": "2.0.6",
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,6 +567,31 @@ 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
+
570
595
  // @public @deprecated
571
596
  export const UNSAFE_Inline: MemoExoticComponent<
572
597
  ForwardRefExoticComponent<UNSAFE_InlineProps & RefAttributes<HTMLDivElement>>
package/src/constants.tsx CHANGED
@@ -11,3 +11,44 @@ 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,3 +7,11 @@ 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,6 +546,21 @@ 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
+
549
564
  // @public @deprecated
550
565
  export const UNSAFE_Inline: MemoExoticComponent<ForwardRefExoticComponent<UNSAFE_InlineProps & RefAttributes<HTMLDivElement>>>;
551
566