@comicrelief/component-library 7.39.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/components/Atoms/Picture/Picture.js +49 -6
- package/dist/components/Atoms/Picture/Picture.test.js +2 -2
- package/dist/components/Molecules/ArticleTeaser/ArticleTeaser.test.js +2 -2
- package/dist/components/Molecules/Card/Card.js +20 -28
- package/dist/components/Molecules/Card/Card.md +71 -3
- package/dist/components/Molecules/Card/Card.style.js +74 -0
- package/dist/components/Molecules/Card/Card.test.js +10 -0
- package/dist/components/Molecules/Card/__snapshots__/Card.test.js.snap +113 -7
- package/dist/components/Molecules/PartnerLink/PartnerLink.test.js +1 -1
- package/dist/index.js +7 -0
- package/dist/theme/shared/allContainers.js +2 -2
- package/package.json +1 -1
- package/src/components/Atoms/Picture/Picture.js +50 -5
- package/src/components/Atoms/Picture/Picture.test.js +12 -8
- package/src/components/Molecules/ArticleTeaser/ArticleTeaser.test.js +7 -7
- package/src/components/Molecules/Card/Card.js +29 -28
- package/src/components/Molecules/Card/Card.md +71 -3
- package/src/components/Molecules/Card/Card.style.js +77 -0
- package/src/components/Molecules/Card/Card.test.js +17 -0
- package/src/components/Molecules/Card/__snapshots__/Card.test.js.snap +113 -7
- package/src/components/Molecules/PartnerLink/PartnerLink.test.js +12 -8
- package/src/components/Molecules/Promo/Promo.style.js +2 -2
- package/src/components/Molecules/SingleMessage/SingleMessage.style.js +2 -2
- package/src/components/Organisms/Header/Header.style.js +2 -2
- package/src/index.js +1 -0
- package/src/theme/shared/allContainers.js +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styled from 'styled-components';
|
|
2
2
|
|
|
3
3
|
import zIndex from '../../../theme/shared/zIndex';
|
|
4
|
-
import
|
|
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: ${
|
|
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';
|