@atlaskit/mobile-header 6.1.3 → 6.1.4

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/mobile-header
2
2
 
3
+ ## 6.1.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`6900f89eb0e`](https://bitbucket.org/atlassian/atlassian-frontend/commits/6900f89eb0e) - Internal changes to use space tokens. There is no expected visual or behaviour change.
8
+
3
9
  ## 6.1.3
4
10
 
5
11
  ### Patch Changes
@@ -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();
@@ -38,10 +36,10 @@ var MobileNavSlider = _styled.default.div(_templateObject3 || (_templateObject3
38
36
  exports.MobileNavSlider = MobileNavSlider;
39
37
  var MobilePageHeader = _styled.default.header(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n height: ", "px;\n"])), mobileHeaderHeight);
40
38
  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)({
39
+ 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: ", ";\n position: fixed;\n top: ", "px;\n width: 100%;\n z-index: ", ";\n"])), (0, _theme.themed)({
42
40
  light: _theme.colors.N20,
43
41
  dark: _theme.colors.DN10
44
- }), mobileHeaderHeight, gridSize, function (props) {
42
+ }), mobileHeaderHeight, "var(--ds-space-100, 8px)", function (props) {
45
43
  return props.topOffset;
46
44
  }, layers.header);
47
45
  exports.MobilePageHeaderContent = MobilePageHeaderContent;
@@ -56,5 +54,5 @@ var FakeBlanket = _styled.default.div(_templateObject8 || (_templateObject8 = (0
56
54
 
57
55
  // use proper h1 and header styles but for mobile we don't want a top margin
58
56
  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);
57
+ var 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);
60
58
  exports.PageHeading = PageHeading;
@@ -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.4",
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",
33
+ "@atlaskit/button": "^16.10.0",
34
34
  "@atlaskit/icon": "^21.12.0",
35
- "@atlaskit/theme": "^12.5.0",
35
+ "@atlaskit/theme": "^12.6.0",
36
+ "@atlaskit/tokens": "^1.21.0",
36
37
  "@babel/runtime": "^7.0.0",
37
38
  "@emotion/styled": "^11.0.0"
38
39
  },