@comicrelief/component-library 8.2.0 → 8.2.1

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.
Files changed (2) hide show
  1. package/docs/utils.md +11 -16
  2. package/package.json +1 -1
package/docs/utils.md CHANGED
@@ -37,9 +37,8 @@ Default spacing scale
37
37
  | xxl | 8rem |
38
38
  | xxxl | 16rem |
39
39
 
40
- How to use in your styled component
40
+ How to use in your styled component:
41
41
 
42
- `export const Component = styled.span'`
43
42
  `padding: ${spacing('md)'} ${spacing('l)'};';`
44
43
 
45
44
  ## allBreakpoints, and { breakpointValues } within allBreakpoints
@@ -48,23 +47,19 @@ How to use in your styled component
48
47
  |:----:|------:| ------:| -----:| ------:|
49
48
  | 0 | 740 | 1024 | 1150 | 1440 |
50
49
 
51
- ### Usage within Component Library itself
50
+ ## Usage within Component Library itself
52
51
  #### media queries (no need to import):
53
52
  `@media ${({ theme }) => theme.allBreakpoints('M')} {`
54
53
 
55
- #### screen sizes:
56
- ```
57
- import { breakpointValues } from '../../../theme/shared/allBreakpoints';
58
- ...
59
- max-width: ${breakpointValues.M}px;
60
- ```
61
-
62
- ### Usage within Component Library
63
- ```
64
- import { breakpointValues } from '@comicrelief/component-library/src/theme/shared/allBreakpoints';
65
- ...
66
- max-width: ${breakpointValues.M}px);
67
- ```
54
+ ### screen sizes:
55
+ `import { breakpointValues } from '../../../theme/shared/allBreakpoints';`
56
+
57
+ `max-width: ${breakpointValues.M}px;`
58
+
59
+ ### Usage within Component Library:
60
+ `import { breakpointValues } from '@comicrelief/component-library/src/theme/shared/allBreakpoints';`
61
+
62
+ `max-width: ${breakpointValues.M}px);`
68
63
 
69
64
 
70
65
  ## containers from containers.js
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": "8.2.0",
4
+ "version": "8.2.1",
5
5
  "main": "dist/index.js",
6
6
  "license": "ISC",
7
7
  "jest": {