cozy-ui 62.0.3 → 62.0.4

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [62.0.4](https://github.com/cozy/cozy-ui/compare/v62.0.3...v62.0.4) (2022-02-24)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **Grid:** Use justifyContent props inside Grid component ([9325ec1](https://github.com/cozy/cozy-ui/commit/9325ec1))
7
+
1
8
  ## [62.0.3](https://github.com/cozy/cozy-ui/compare/v62.0.2...v62.0.3) (2022-02-22)
2
9
 
3
10
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cozy-ui",
3
- "version": "62.0.3",
3
+ "version": "62.0.4",
4
4
  "description": "Cozy apps UI SDK",
5
5
  "main": "./index.js",
6
6
  "bin": {
@@ -58,7 +58,7 @@ const Banner = ({
58
58
  item
59
59
  xs={12}
60
60
  lg={size[1]}
61
- justify="flex-end"
61
+ justifyContent="flex-end"
62
62
  alignItems="center"
63
63
  >
64
64
  <Grid item className={styles['c-banner-buttons']}>
@@ -8,7 +8,7 @@ describe('Grid', () => {
8
8
  console.error = jest.fn()
9
9
 
10
10
  // When
11
- const { container } = render(<Banner />)
11
+ const { container } = render(<Banner buttonOne={<button />} />)
12
12
 
13
13
  // Then
14
14
  expect(console.error).not.toHaveBeenCalled()
@@ -146,7 +146,7 @@ const BottomSheet = ({ toolbarProps, settings, children }) => {
146
146
  onIndexChange={snapIndex => handleOnIndexChange(snapIndex)}
147
147
  styles={{ root: styles.root }}
148
148
  threshold={0}
149
- // springConfig doc : https://www.react-spring.io/docs/hooks/api
149
+ // springConfig doc : https://docs.pmnd.rs/react-spring/common/configs
150
150
  springConfig={{
151
151
  tension: defaultBottomSheetSpringConfig.tension,
152
152
  friction: defaultBottomSheetSpringConfig.friction,
@@ -1,10 +1,10 @@
1
- Displays content coming up from the bottom of the screen. The pane can be swiped to the top of the screen. [API documentation is here](https://github.com/cozy/mui-bottom-sheet#props-options)
1
+ Display content coming up from the bottom of the screen. The pane can be swiped to the top of the screen. [API documentation is here](https://github.com/cozy/mui-bottom-sheet#props-options)
2
2
 
3
3
  ```jsx
4
4
  import BottomSheet, { BottomSheetItem, BottomSheetHeader } from 'cozy-ui/transpiled/react/BottomSheet'
5
5
  import Button from 'cozy-ui/transpiled/react/Buttons'
6
6
 
7
- // <-- only usefull for the documentation
7
+ // <-- only useful for the documentation
8
8
  initialState = { isBottomSheetDisplayed: isTesting() }
9
9
  const showBottomSheet = () => setState({ isBottomSheetDisplayed: true })
10
10
 
@@ -60,7 +60,7 @@ var Banner = function Banner(_ref) {
60
60
  item: true,
61
61
  xs: 12,
62
62
  lg: size[1],
63
- justify: "flex-end",
63
+ justifyContent: "flex-end",
64
64
  alignItems: "center"
65
65
  }, React.createElement(Grid, {
66
66
  item: true,
@@ -152,7 +152,7 @@ var BottomSheet = function BottomSheet(_ref2) {
152
152
  styles: {
153
153
  root: styles.root
154
154
  },
155
- threshold: 0 // springConfig doc : https://www.react-spring.io/docs/hooks/api
155
+ threshold: 0 // springConfig doc : https://docs.pmnd.rs/react-spring/common/configs
156
156
  ,
157
157
  springConfig: {
158
158
  tension: defaultBottomSheetSpringConfig.tension,