cozy-ui 51.12.0 → 54.0.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/CHANGELOG.md +86 -0
- package/dist/cozy-ui.min.css +1 -1
- package/package.json +1 -1
- package/react/ContactsListModal/index.jsx +5 -1
- package/react/CozyDialogs/ConfirmDialog.jsx +21 -7
- package/react/CozyDialogs/Dialog.jsx +16 -8
- package/react/CozyDialogs/DialogBackButton.jsx +18 -11
- package/react/CozyDialogs/DialogCloseButton.jsx +6 -1
- package/react/CozyDialogs/FixedActionsDialog.jsx +20 -7
- package/react/CozyDialogs/FixedDialog.jsx +16 -8
- package/react/CozyDialogs/IllustrationDialog.jsx +18 -5
- package/react/CozyDialogs/Readme.md +23 -0
- package/react/CozyDialogs/dialogPropTypes.js +2 -0
- package/react/CozyDialogs/locales.js +6 -3
- package/react/CozyDialogs/styles.styl +11 -2
- package/react/CozyDialogs/testing.js +14 -0
- package/react/CozyDialogs/testing.spec.jsx +88 -4
- package/react/CozyDialogs/useCozyDialog.js +13 -1
- package/react/Empty/Readme.md +5 -23
- package/react/Empty/index.jsx +3 -24
- package/react/Empty/styles.styl +0 -10
- package/react/Icon/Readme.md +2 -1
- package/react/Icon/Sprite.jsx +2 -2
- package/react/Icon/index.jsx +0 -1
- package/react/MuiCozyTheme/theme.jsx +38 -19
- package/react/__snapshots__/examples.spec.jsx.snap +4 -22
- package/react/index.js +2 -1
- package/stylus/components/empty.styl +1 -8
- package/transpiled/react/ContactsListModal/index.js +4 -1
- package/transpiled/react/CozyDialogs/ConfirmDialog.js +16 -7
- package/transpiled/react/CozyDialogs/Dialog.js +9 -7
- package/transpiled/react/CozyDialogs/DialogBackButton.js +23 -15
- package/transpiled/react/CozyDialogs/DialogCloseButton.js +4 -2
- package/transpiled/react/CozyDialogs/FixedActionsDialog.js +16 -7
- package/transpiled/react/CozyDialogs/FixedDialog.js +9 -7
- package/transpiled/react/CozyDialogs/IllustrationDialog.js +14 -7
- package/transpiled/react/CozyDialogs/dialogPropTypes.js +2 -0
- package/transpiled/react/CozyDialogs/locales.js +6 -3
- package/transpiled/react/CozyDialogs/testing.js +12 -0
- package/transpiled/react/CozyDialogs/useCozyDialog.js +14 -2
- package/transpiled/react/Empty/index.js +5 -21
- package/transpiled/react/Icon/Sprite.js +2 -2
- package/transpiled/react/Icon/index.js +1 -2
- package/transpiled/react/MuiCozyTheme/theme.js +37 -27
- package/transpiled/react/index.js +2 -1
- package/transpiled/react/stylesheet.css +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,89 @@
|
|
|
1
|
+
# [54.0.0](https://github.com/cozy/cozy-ui/compare/v53.0.0...v54.0.0) (2021-09-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* Add missing config properties to inverted theme ([85c9026](https://github.com/cozy/cozy-ui/commit/85c9026))
|
|
7
|
+
* Correctly override DialogTitle's className in `ContactsListModal` ([69e0fa6](https://github.com/cozy/cozy-ui/commit/69e0fa6))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* Add `isFluidTitle` prop to `useCozyDialog` ([2d4f8b7](https://github.com/cozy/cozy-ui/commit/2d4f8b7))
|
|
13
|
+
* Add plain background to dialogs buttons ([82a4b78](https://github.com/cozy/cozy-ui/commit/82a4b78))
|
|
14
|
+
* Add tests for Dialog ([ec468db](https://github.com/cozy/cozy-ui/commit/ec468db))
|
|
15
|
+
* Handle `onBack` prop on CozyDialogs ([eb86578](https://github.com/cozy/cozy-ui/commit/eb86578))
|
|
16
|
+
* Rework CozyDialogs style to fit latest UI specs ([8ff3766](https://github.com/cozy/cozy-ui/commit/8ff3766))
|
|
17
|
+
* Set DialogBackButton's position to absolute ([98fe795](https://github.com/cozy/cozy-ui/commit/98fe795))
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### BREAKING CHANGES
|
|
21
|
+
|
|
22
|
+
* `<DialogBackButton>` is now using absolute positioning. To prevent
|
|
23
|
+
`<DialogTitle>` to overlap with this button, `useCozyDialog()` handles
|
|
24
|
+
its positioning with `dialogTitleProps`.
|
|
25
|
+
If you use `cozy-ui/transpiled/react/Dialog` with `useCozyDialog()` but
|
|
26
|
+
without `<DialogBackButton>` then you may be impacted as a left margin
|
|
27
|
+
will be applied on `<DialogTitle>` on mobile, which would leave a blank
|
|
28
|
+
space if no `<DialogBackButton>` is present.
|
|
29
|
+
In this case, please add `disableTitleAutoPadding` to
|
|
30
|
+
`useCozyDialog()` props. Then title will take all available space and
|
|
31
|
+
you will be able to handle its positionning by yourself.
|
|
32
|
+
```js
|
|
33
|
+
const {
|
|
34
|
+
dialogTitleProps
|
|
35
|
+
} = useCozyDialog({ ...props, disableTitleAutoPadding: true })
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
# [53.0.0](https://github.com/cozy/cozy-ui/compare/v52.0.1...v53.0.0) (2021-09-28)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Features
|
|
42
|
+
|
|
43
|
+
* Remove layout prop ([e78fe34](https://github.com/cozy/cozy-ui/commit/e78fe34))
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
### BREAKING CHANGES
|
|
47
|
+
|
|
48
|
+
* Deleting the layout prop & mobile style associated
|
|
49
|
+
|
|
50
|
+
- If you were not using the `layout` prop or if it was set to `true` on the `Empty` component, to get the previous centering, then you will need to add the following style on the `Empty` component:
|
|
51
|
+
```styl
|
|
52
|
+
@require 'settings/breakpoints'
|
|
53
|
+
|
|
54
|
+
+small-screen()
|
|
55
|
+
margin-top: calc(50vh - 6rem);
|
|
56
|
+
transform: translateY(-50%);
|
|
57
|
+
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
- If you were using the `layout` prop at `false`, you can simply delete the prop that is no longer needed
|
|
61
|
+
|
|
62
|
+
## [52.0.1](https://github.com/cozy/cozy-ui/compare/v52.0.0...v52.0.1) (2021-09-24)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
### Bug Fixes
|
|
66
|
+
|
|
67
|
+
* Change import about Sprite ([5f0b88f](https://github.com/cozy/cozy-ui/commit/5f0b88f))
|
|
68
|
+
* Lint ([53ef0ce](https://github.com/cozy/cozy-ui/commit/53ef0ce))
|
|
69
|
+
|
|
70
|
+
# [52.0.0](https://github.com/cozy/cozy-ui/compare/v51.12.0...v52.0.0) (2021-09-22)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
### Bug Fixes
|
|
74
|
+
|
|
75
|
+
* Remove export Sprite from Icon (index.jsx) ([478e9d2](https://github.com/cozy/cozy-ui/commit/478e9d2))
|
|
76
|
+
* Remove unused import ([adee11b](https://github.com/cozy/cozy-ui/commit/adee11b))
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
### BREAKING CHANGES
|
|
80
|
+
|
|
81
|
+
* `<Sprite>` is no longer exported by `<Icon>`. However, you can import it directly with `import Sprite from 'cozy-ui/transpiled/react/Icon/Sprite'`. Be carful, it's no longer possible to set an icon with a string like this `<Icon icon="myIcon" />` without importing `<Sprite>`. If don't need the sprite, you can still use svgr icons:
|
|
82
|
+
```
|
|
83
|
+
import MyIcon from 'cozy-ui/transpiled/react/Icons/MyIcon'
|
|
84
|
+
<Icon icon={MyIcon} />
|
|
85
|
+
```
|
|
86
|
+
|
|
1
87
|
# [51.12.0](https://github.com/cozy/cozy-ui/compare/v51.11.0...v51.12.0) (2021-09-15)
|
|
2
88
|
|
|
3
89
|
|