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