@atlaskit/mobile-header 6.1.3 → 6.1.5

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,28 +1,40 @@
1
1
  # @atlaskit/mobile-header
2
2
 
3
+ ## 6.1.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 6.1.4
10
+
11
+ ### Patch Changes
12
+
13
+ - [#39787](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/39787) [`6900f89eb0e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6900f89eb0e) - Internal changes to use space tokens. There is no expected visual or behaviour change.
14
+
3
15
  ## 6.1.3
4
16
 
5
17
  ### Patch Changes
6
18
 
7
- - [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
19
+ - [#38162](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/38162) [`fd6bb9c9184`](https://bitbucket.org/atlassian/atlassian-frontend/commits/fd6bb9c9184) - Delete version.json
8
20
 
9
21
  ## 6.1.2
10
22
 
11
23
  ### Patch Changes
12
24
 
13
- - [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
25
+ - [#33793](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33793) [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
14
26
 
15
27
  ## 6.1.1
16
28
 
17
29
  ### Patch Changes
18
30
 
19
- - [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
31
+ - [#33649](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33649) [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
20
32
 
21
33
  ## 6.1.0
22
34
 
23
35
  ### Minor Changes
24
36
 
25
- - [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
37
+ - [#33258](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/33258) [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
26
38
 
27
39
  ### Patch Changes
28
40
 
@@ -32,38 +44,38 @@
32
44
 
33
45
  ### Patch Changes
34
46
 
35
- - [`005b25fd40d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/005b25fd40d) - Moved `@emotion/styled` to dependency to ensure correct version (v11) is resolved.
47
+ - [#28238](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/28238) [`005b25fd40d`](https://bitbucket.org/atlassian/atlassian-frontend/commits/005b25fd40d) - Moved `@emotion/styled` to dependency to ensure correct version (v11) is resolved.
36
48
 
37
49
  ## 6.0.0
38
50
 
39
51
  ### Major Changes
40
52
 
41
- - [`16f5b6bdaee`](https://bitbucket.org/atlassian/atlassian-frontend/commits/16f5b6bdaee) - Peer Dependencies have changed due to the migration from styled-components to @emotion v11.
53
+ - [#27334](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/27334) [`16f5b6bdaee`](https://bitbucket.org/atlassian/atlassian-frontend/commits/16f5b6bdaee) - Peer Dependencies have changed due to the migration from styled-components to @emotion v11.
42
54
 
43
55
  ## 5.0.12
44
56
 
45
57
  ### Patch Changes
46
58
 
47
- - [`522a27e6119`](https://bitbucket.org/atlassian/atlassian-frontend/commits/522a27e6119) - Remove `isOpen` prop from @atlaskit/banner, it is now open by default.
59
+ - [#24710](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24710) [`522a27e6119`](https://bitbucket.org/atlassian/atlassian-frontend/commits/522a27e6119) - Remove `isOpen` prop from @atlaskit/banner, it is now open by default.
48
60
  - Updated dependencies
49
61
 
50
62
  ## 5.0.11
51
63
 
52
64
  ### Patch Changes
53
65
 
54
- - [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
66
+ - [#24874](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24874) [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
55
67
 
56
68
  ## 5.0.10
57
69
 
58
70
  ### Patch Changes
59
71
 
60
- - [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
72
+ - [#24492](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/24492) [`8d4228767b0`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8d4228767b0) - Upgrade Typescript from `4.2.4` to `4.3.5`.
61
73
 
62
74
  ## 5.0.9
63
75
 
64
76
  ### Patch Changes
65
77
 
66
- - [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
78
+ - [#20650](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/20650) [`cb2392f6d33`](https://bitbucket.org/atlassian/atlassian-frontend/commits/cb2392f6d33) - Upgrade to TypeScript 4.2.4
67
79
  - Updated dependencies
68
80
 
69
81
  ## 5.0.8
@@ -76,7 +88,7 @@
76
88
 
77
89
  ### Patch Changes
78
90
 
79
- - [`524b20aff9a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/524b20aff9a) - Update package.jsons to remove unused dependencies. Also excludes tests from some build tsconfigs
91
+ - [#13136](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/13136) [`524b20aff9a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/524b20aff9a) - Update package.jsons to remove unused dependencies. Also excludes tests from some build tsconfigs
80
92
  - [`3c0349f272a`](https://bitbucket.org/atlassian/atlassian-frontend/commits/3c0349f272a) - Update package.jsons to remove unused dependencies. Also excludes tests from some build tsconfigs
81
93
  - [`591d34f966f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/591d34f966f) - Update package.jsons to remove unused dependencies. Also excludes tests from some build tsconfigs
82
94
 
@@ -90,13 +102,13 @@
90
102
 
91
103
  ### Patch Changes
92
104
 
93
- - [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
105
+ - [#5857](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5857) [`d3265f19be`](https://bitbucket.org/atlassian/atlassian-frontend/commits/d3265f19be) - Transpile packages using babel rather than tsc
94
106
 
95
107
  ## 5.0.4
96
108
 
97
109
  ### Patch Changes
98
110
 
99
- - [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
111
+ - [#5497](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/5497) [`5f58283e1f`](https://bitbucket.org/atlassian/atlassian-frontend/commits/5f58283e1f) - Export types using Typescript's new "export type" syntax to satisfy Typescript's --isolatedModules compiler option.
100
112
  This requires version 3.8 of Typescript, read more about how we handle Typescript versions here: https://atlaskit.atlassian.com/get-started
101
113
  Also add `typescript` to `devDependencies` to denote version that the package was built with.
102
114
 
@@ -116,7 +128,7 @@
116
128
 
117
129
  ### Patch Changes
118
130
 
119
- - [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
131
+ - [#3885](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3885) [`6c525a8229`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6c525a8229) - Upgraded to TypeScript 3.9.6 and tslib to 2.0.0
120
132
 
121
133
  Since tslib is a dependency for all our packages we recommend that products also follow this tslib upgrade
122
134
  to prevent duplicates of tslib being bundled.
@@ -125,7 +137,7 @@
125
137
 
126
138
  ### Major Changes
127
139
 
128
- - [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
140
+ - [#3335](https://bitbucket.org/atlassian/atlassian-frontend/pull-requests/3335) [`87f4720f27`](https://bitbucket.org/atlassian/atlassian-frontend/commits/87f4720f27) - Officially dropping IE11 support, from this version onwards there are no warranties of the package working in IE11.
129
141
  For more information see: https://community.developer.atlassian.com/t/atlaskit-to-drop-support-for-internet-explorer-11-from-1st-july-2020/39534
130
142
 
131
143
  ### Patch Changes
@@ -107,5 +107,4 @@ var MobileHeader = /*#__PURE__*/function (_PureComponent) {
107
107
  menuIconLabel: 'Menu',
108
108
  drawerState: ''
109
109
  });
110
- var _default = MobileHeader;
111
- exports.default = _default;
110
+ var _default = exports.default = MobileHeader;
@@ -11,8 +11,6 @@ var _styled = _interopRequireDefault(require("@emotion/styled"));
11
11
  var _theme = require("@atlaskit/theme");
12
12
  var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9; // AFP-2532 TODO: Fix automatic suppressions below
13
13
  // eslint-disable-next-line @atlassian/tangerine/import/entry-points
14
- var gridSize = (0, _theme.gridSize)();
15
-
16
14
  // @atlaskit/navigation has a specific z-index, so we need to layer the header
17
15
  // components relative to that.
18
16
  var navLayer = _theme.layers.navigation();
@@ -27,7 +25,7 @@ var xPositioning = function xPositioning(_ref) {
27
25
  isOpen = _ref.isOpen;
28
26
  return side === 'right' ? (0, _react.css)(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n right: 0;\n transform: translateX(", ");\n "])), isOpen ? '0' : '100vw') : (0, _react.css)(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n left: 0;\n transform: translateX(", ");\n "])), isOpen ? '0' : '-100vw');
29
27
  };
30
- var MobileNavSlider = _styled.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n height: ", ";\n position: fixed;\n top: ", "px;\n transition: transform 0.2s ease-out;\n z-index: ", ";\n ", ";\n"])), function (props) {
28
+ var MobileNavSlider = exports.MobileNavSlider = _styled.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n height: ", ";\n position: fixed;\n top: ", "px;\n transition: transform 0.2s ease-out;\n z-index: ", ";\n ", ";\n"])), function (props) {
31
29
  return "calc(100vh - ".concat(props.topOffset, "px)");
32
30
  }, function (props) {
33
31
  return props.topOffset;
@@ -35,26 +33,21 @@ var MobileNavSlider = _styled.default.div(_templateObject3 || (_templateObject3
35
33
 
36
34
  // make space so content below doesn't slip beneath the header
37
35
  // since the content is `position: fixed`
38
- exports.MobileNavSlider = MobileNavSlider;
39
- var MobilePageHeader = _styled.default.header(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n height: ", "px;\n"])), mobileHeaderHeight);
40
- exports.MobilePageHeader = MobilePageHeader;
41
- var MobilePageHeaderContent = _styled.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n align-items: center;\n background-color: ", ";\n box-sizing: border-box;\n display: flex;\n height: ", "px;\n padding: ", "px;\n position: fixed;\n top: ", "px;\n width: 100%;\n z-index: ", ";\n"])), (0, _theme.themed)({
36
+ var MobilePageHeader = exports.MobilePageHeader = _styled.default.header(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n height: ", "px;\n"])), mobileHeaderHeight);
37
+ var MobilePageHeaderContent = exports.MobilePageHeaderContent = _styled.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n align-items: center;\n background-color: ", ";\n box-sizing: border-box;\n display: flex;\n height: ", "px;\n padding: ", ";\n position: fixed;\n top: ", "px;\n width: 100%;\n z-index: ", ";\n"])), (0, _theme.themed)({
42
38
  light: _theme.colors.N20,
43
39
  dark: _theme.colors.DN10
44
- }), mobileHeaderHeight, gridSize, function (props) {
40
+ }), mobileHeaderHeight, "var(--ds-space-100, 8px)", function (props) {
45
41
  return props.topOffset;
46
42
  }, layers.header);
47
- exports.MobilePageHeaderContent = MobilePageHeaderContent;
48
43
  var opacityIn = (0, _react.keyframes)(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n from { opacity: 0; }\n to { opacity: 1; }\n"])));
49
44
  var opacityOut = (0, _react.keyframes)(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n from { opacity: 1; }\n to { opacity: 0; }\n"])));
50
45
 
51
46
  // @atlaskit/blanket has a z-index *higher* than @atlaskit/navigation,
52
47
  // so we can't display the AK blanket underneath the navigation.
53
- var FakeBlanket = _styled.default.div(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n background: ", ";\n bottom: 0;\n left: 0;\n position: fixed;\n right: 0;\n top: 0;\n z-index: ", ";\n animation: ", " 0.2s ease-out;\n"])), _theme.colors.N100A, layers.blanket, function (p) {
48
+ var FakeBlanket = exports.FakeBlanket = _styled.default.div(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n background: ", ";\n bottom: 0;\n left: 0;\n position: fixed;\n right: 0;\n top: 0;\n z-index: ", ";\n animation: ", " 0.2s ease-out;\n"])), _theme.colors.N100A, layers.blanket, function (p) {
54
49
  return p.isOpen ? opacityIn : opacityOut;
55
50
  });
56
51
 
57
52
  // use proper h1 and header styles but for mobile we don't want a top margin
58
- exports.FakeBlanket = FakeBlanket;
59
- var PageHeading = _styled.default.h1(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n flex-grow: 1;\n margin-left: ", "px;\n ", ";\n && {\n margin-top: 0;\n }\n"])), gridSize, _theme.typography.h500);
60
- exports.PageHeading = PageHeading;
53
+ var PageHeading = exports.PageHeading = _styled.default.h1(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n flex-grow: 1;\n margin-left: ", ";\n ", ";\n && {\n margin-top: 0;\n }\n"])), "var(--ds-space-100, 8px)", _theme.typography.h500);
@@ -3,9 +3,7 @@ import styled from '@emotion/styled';
3
3
 
4
4
  // AFP-2532 TODO: Fix automatic suppressions below
5
5
  // eslint-disable-next-line @atlassian/tangerine/import/entry-points
6
- import { gridSize as akGridSize, layers as akLayers, colors, themed, typography } from '@atlaskit/theme';
7
- const gridSize = akGridSize();
8
-
6
+ import { layers as akLayers, colors, themed, typography } from '@atlaskit/theme';
9
7
  // @atlaskit/navigation has a specific z-index, so we need to layer the header
10
8
  // components relative to that.
11
9
  const navLayer = akLayers.navigation();
@@ -48,7 +46,7 @@ export const MobilePageHeaderContent = styled.div`
48
46
  box-sizing: border-box;
49
47
  display: flex;
50
48
  height: ${mobileHeaderHeight}px;
51
- padding: ${gridSize}px;
49
+ padding: ${"var(--ds-space-100, 8px)"};
52
50
  position: fixed;
53
51
  top: ${props => props.topOffset}px;
54
52
  width: 100%;
@@ -79,7 +77,7 @@ export const FakeBlanket = styled.div`
79
77
  // use proper h1 and header styles but for mobile we don't want a top margin
80
78
  export const PageHeading = styled.h1`
81
79
  flex-grow: 1;
82
- margin-left: ${gridSize}px;
80
+ margin-left: ${"var(--ds-space-100, 8px)"};
83
81
  ${typography.h500};
84
82
  && {
85
83
  margin-top: 0;
@@ -5,9 +5,7 @@ import styled from '@emotion/styled';
5
5
 
6
6
  // AFP-2532 TODO: Fix automatic suppressions below
7
7
  // eslint-disable-next-line @atlassian/tangerine/import/entry-points
8
- import { gridSize as akGridSize, layers as akLayers, colors, themed, typography } from '@atlaskit/theme';
9
- var gridSize = akGridSize();
10
-
8
+ import { layers as akLayers, colors, themed, typography } from '@atlaskit/theme';
11
9
  // @atlaskit/navigation has a specific z-index, so we need to layer the header
12
10
  // components relative to that.
13
11
  var navLayer = akLayers.navigation();
@@ -31,10 +29,10 @@ export var MobileNavSlider = styled.div(_templateObject3 || (_templateObject3 =
31
29
  // make space so content below doesn't slip beneath the header
32
30
  // since the content is `position: fixed`
33
31
  export var MobilePageHeader = styled.header(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n height: ", "px;\n"])), mobileHeaderHeight);
34
- export var MobilePageHeaderContent = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n align-items: center;\n background-color: ", ";\n box-sizing: border-box;\n display: flex;\n height: ", "px;\n padding: ", "px;\n position: fixed;\n top: ", "px;\n width: 100%;\n z-index: ", ";\n"])), themed({
32
+ export var MobilePageHeaderContent = styled.div(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n align-items: center;\n background-color: ", ";\n box-sizing: border-box;\n display: flex;\n height: ", "px;\n padding: ", ";\n position: fixed;\n top: ", "px;\n width: 100%;\n z-index: ", ";\n"])), themed({
35
33
  light: colors.N20,
36
34
  dark: colors.DN10
37
- }), mobileHeaderHeight, gridSize, function (props) {
35
+ }), mobileHeaderHeight, "var(--ds-space-100, 8px)", function (props) {
38
36
  return props.topOffset;
39
37
  }, layers.header);
40
38
  var opacityIn = keyframes(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n from { opacity: 0; }\n to { opacity: 1; }\n"])));
@@ -47,4 +45,4 @@ export var FakeBlanket = styled.div(_templateObject8 || (_templateObject8 = _tag
47
45
  });
48
46
 
49
47
  // use proper h1 and header styles but for mobile we don't want a top margin
50
- export var PageHeading = styled.h1(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n flex-grow: 1;\n margin-left: ", "px;\n ", ";\n && {\n margin-top: 0;\n }\n"])), gridSize, typography.h500);
48
+ export var PageHeading = styled.h1(_templateObject9 || (_templateObject9 = _taggedTemplateLiteral(["\n flex-grow: 1;\n margin-left: ", ";\n ", ";\n && {\n margin-top: 0;\n }\n"])), "var(--ds-space-100, 8px)", typography.h500);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/mobile-header",
3
- "version": "6.1.3",
3
+ "version": "6.1.5",
4
4
  "description": "A React component rendering a mobile header",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -30,9 +30,10 @@
30
30
  }
31
31
  },
32
32
  "dependencies": {
33
- "@atlaskit/button": "^16.9.0",
34
- "@atlaskit/icon": "^21.12.0",
35
- "@atlaskit/theme": "^12.5.0",
33
+ "@atlaskit/button": "^16.16.0",
34
+ "@atlaskit/icon": "^22.0.0",
35
+ "@atlaskit/theme": "^12.6.0",
36
+ "@atlaskit/tokens": "^1.28.0",
36
37
  "@babel/runtime": "^7.0.0",
37
38
  "@emotion/styled": "^11.0.0"
38
39
  },