@comicrelief/component-library 7.40.0 → 7.41.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/dist/index.js CHANGED
@@ -334,6 +334,12 @@ Object.defineProperty(exports, "allBreakpoints", {
334
334
  return _allBreakpoints.default;
335
335
  }
336
336
  });
337
+ Object.defineProperty(exports, "allContainers", {
338
+ enumerable: true,
339
+ get: function () {
340
+ return _allContainers.default;
341
+ }
342
+ });
337
343
  Object.defineProperty(exports, "allowListed", {
338
344
  enumerable: true,
339
345
  get: function () {
@@ -422,6 +428,7 @@ var _spacing = _interopRequireDefault(require("./theme/shared/spacing"));
422
428
  var _breakpoint = _interopRequireDefault(require("./theme/shared/breakpoint"));
423
429
  var _allBreakpoints = _interopRequireDefault(require("./theme/shared/allBreakpoints"));
424
430
  var _size = require("./theme/shared/size");
431
+ var _allContainers = _interopRequireDefault(require("./theme/shared/allContainers"));
425
432
  var _Text = _interopRequireDefault(require("./components/Atoms/Text/Text"));
426
433
  var _Logo = _interopRequireDefault(require("./components/Atoms/Logo/Logo"));
427
434
  var _Picture = _interopRequireDefault(require("./components/Atoms/Picture/Picture"));
@@ -4,9 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
- const container = {
7
+ const allContainers = {
8
8
  small: '880px',
9
9
  medium: '1200px',
10
10
  large: '1440px'
11
11
  };
12
- var _default = exports.default = container;
12
+ var _default = exports.default = allContainers;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@comicrelief/component-library",
3
3
  "author": "Comic Relief Engineering Team",
4
- "version": "7.40.0",
4
+ "version": "7.41.0",
5
5
  "main": "dist/index.js",
6
6
  "license": "ISC",
7
7
  "jest": {
@@ -1,5 +1,5 @@
1
1
  import styled, { css } from 'styled-components';
2
- import container from '../../../theme/shared/allContainers';
2
+ import allContainers from '../../../theme/shared/allContainers';
3
3
  import spacing from '../../../theme/shared/spacing';
4
4
  import zIndex from '../../../theme/shared/zIndex';
5
5
 
@@ -37,7 +37,7 @@ const Container = styled.div`
37
37
 
38
38
  const Wrapper = styled.div`
39
39
  width: 100%;
40
- max-width: ${container.medium};
40
+ max-width: ${allContainers.medium};
41
41
  height: 100%;
42
42
  left: 0;
43
43
  right: 0;
@@ -1,6 +1,6 @@
1
1
  import styled, { css } from 'styled-components';
2
2
  import spacing from '../../../theme/shared/spacing';
3
- import container from '../../../theme/shared/allContainers';
3
+ import allContainers from '../../../theme/shared/allContainers';
4
4
  import zIndex from '../../../theme/shared/zIndex';
5
5
  import playIcon from './assets/video--play-icon.svg';
6
6
  import playIconHover from './assets/video--play-icon__hover.svg';
@@ -68,7 +68,7 @@ const Copy = styled.div`
68
68
  : css`
69
69
  @media ${({ theme }) => theme.allBreakpoints('M')} {
70
70
  width: 100%;
71
- max-width ${container.small};
71
+ max-width ${allContainers.small};
72
72
  padding: ${spacing('xl')};
73
73
  }
74
74
  margin: auto;
@@ -1,7 +1,7 @@
1
1
  import styled from 'styled-components';
2
2
 
3
3
  import zIndex from '../../../theme/shared/zIndex';
4
- import container from '../../../theme/shared/allContainers';
4
+ import allContainers from '../../../theme/shared/allContainers';
5
5
  import spacing from '../../../theme/shared/spacing';
6
6
 
7
7
  const HeaderWrapper = styled.header.attrs(() => ({
@@ -23,7 +23,7 @@ const InnerWrapper = styled.div`
23
23
  height: 100%;
24
24
  padding: 0 12px;
25
25
  cursor: pointer;
26
- max-width: ${container.large};
26
+ max-width: ${allContainers.large};
27
27
 
28
28
  @media ${({ theme }) => theme.allBreakpoints('Nav')} {
29
29
  margin: 0 auto;
package/src/index.js CHANGED
@@ -11,6 +11,7 @@ export { default as spacing } from './theme/shared/spacing';
11
11
  export { default as breakpoint } from './theme/shared/breakpoint';
12
12
  export { default as allBreakpoints } from './theme/shared/allBreakpoints';
13
13
  export { media, screen, container } from './theme/shared/size';
14
+ export { default as allContainers } from './theme/shared/allContainers';
14
15
 
15
16
  /* Atoms */
16
17
  export { default as Text } from './components/Atoms/Text/Text';
@@ -1,7 +1,7 @@
1
- const container = {
1
+ const allContainers = {
2
2
  small: '880px',
3
3
  medium: '1200px',
4
4
  large: '1440px'
5
5
  };
6
6
 
7
- export default container;
7
+ export default allContainers;