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