@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.
- package/dist/components/Molecules/SingleMessageDS/SingleMessageDs.style.js +1 -1
- package/dist/components/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap +2 -1
- package/docs/installation.md +3 -3
- package/package.json +1 -1
- package/src/components/Molecules/SingleMessageDS/SingleMessageDs.style.js +2 -1
- package/src/components/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap +2 -1
- package/styleguide.config.js +1 -1
|
@@ -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);
|
package/docs/installation.md
CHANGED
|
@@ -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,
|
|
9
|
+
`import { ThemeProvider, crTheme } from '@comicrelief/component-library';`
|
|
10
10
|
|
|
11
11
|
#### Import components
|
|
12
|
-
`import { HeroBanner } from '@
|
|
12
|
+
`import { HeroBanner } from '@comicrelief/component-library';`
|
package/package.json
CHANGED
package/styleguide.config.js
CHANGED
|
@@ -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 '@
|
|
6
|
+
return `import { ${name} } from '@comicrelief/component-library';`;
|
|
7
7
|
},
|
|
8
8
|
assetsDir: 'src/styleguide/assets/',
|
|
9
9
|
styleguideComponents: {
|