@comicrelief/component-library 5.8.5 → 5.8.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.
@@ -102,7 +102,7 @@ exports.CTA = CTA;
102
102
  var Copy = _styledComponents.default.div.withConfig({
103
103
  displayName: "SingleMessageDsstyle__Copy",
104
104
  componentId: "sc-s8zd7s-8"
105
- })(["position:relative;height:auto;padding:", ";", ";display:flex;flex-direction:column;border-radius:1rem;", ";background:", ";", ";", ";@media ", "{height:448px;width:calc(50% + 1.5rem);flex-grow:0;flex-shrink:0;flex-basis:calc(50% + 1.5rem);padding:", ";", ";", ";}@media ", "{padding:calc(", " * 2);", ";margin:", ";}"], (0, _spacing.default)('m'), (0, _zIndex.default)('low'), boxShadow, function (_ref10) {
105
+ })(["position:relative;height:auto;padding:", ";", ";display:flex;flex-direction:column;border-radius:1rem;", ";background:", ";", ";", ";@media ", "{min-height:448px;height:auto;width:calc(50% + 1.5rem);flex-grow:0;flex-shrink:0;flex-basis:calc(50% + 1.5rem);padding:", ";", ";", ";}@media ", "{padding:calc(", " * 2);", ";margin:", ";}"], (0, _spacing.default)('m'), (0, _zIndex.default)('low'), boxShadow, function (_ref10) {
106
106
  var theme = _ref10.theme,
107
107
  backgroundColor = _ref10.backgroundColor;
108
108
  return theme.color(backgroundColor);
@@ -200,7 +200,8 @@ exports[`renders correctly 1`] = `
200
200
 
201
201
  @media (min-width:740px) {
202
202
  .c5 {
203
- height: 448px;
203
+ min-height: 448px;
204
+ height: auto;
204
205
  width: calc(50% + 1.5rem);
205
206
  -webkit-box-flex: 0;
206
207
  -webkit-flex-grow: 0;
@@ -3,10 +3,10 @@
3
3
  CR-CL has a dependency of Styled-components.
4
4
 
5
5
  #### Install the package
6
- `yarn add @comicrelief/component-library`
6
+ `yarn add @comicrelief/component-library`
7
7
 
8
8
  #### Wrap your app with the ThemeProvider and crTheme
9
- `import { ThemeProvider, theme as crTheme } from '@comic-relief/component-library';`
9
+ `import { ThemeProvider, crTheme } from '@comicrelief/component-library';`
10
10
 
11
11
  #### Import components
12
- `import { HeroBanner } from '@comic-relief/component-library';`
12
+ `import { HeroBanner } from '@comicrelief/component-library';`
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": "5.8.5",
4
+ "version": "5.8.6",
5
5
  "main": "dist/index.js",
6
6
  "license": "ISC",
7
7
  "jest": {
@@ -134,7 +134,8 @@ const Copy = styled.div`
134
134
 
135
135
 
136
136
  @media ${({ theme }) => theme.breakpoint('small')} {
137
- height: 448px;
137
+ min-height: 448px;
138
+ height: auto;
138
139
  width: calc(50% + 1.5rem);
139
140
  flex-grow: 0;
140
141
  flex-shrink: 0;
@@ -200,7 +200,8 @@ exports[`renders correctly 1`] = `
200
200
 
201
201
  @media (min-width:740px) {
202
202
  .c5 {
203
- height: 448px;
203
+ min-height: 448px;
204
+ height: auto;
204
205
  width: calc(50% + 1.5rem);
205
206
  -webkit-box-flex: 0;
206
207
  -webkit-flex-grow: 0;
@@ -3,7 +3,7 @@ const path = require('path');
3
3
  module.exports = {
4
4
  getComponentPathLine(componentPath) {
5
5
  const name = path.basename(componentPath, '.js');
6
- return `import { ${name} } from '@comic-relief/component-library';`;
6
+ return `import { ${name} } from '@comicrelief/component-library';`;
7
7
  },
8
8
  assetsDir: 'src/styleguide/assets/',
9
9
  styleguideComponents: {