@mittwald/flow-react-components 1.3.0-next.26 → 1.3.0-next.27

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/MIGRATION.md CHANGED
@@ -28,6 +28,30 @@ The CLI's own output does detect it and prints the right form.
28
28
 
29
29
  ---
30
30
 
31
+ <a id="image-rounded-corners-default"></a>
32
+
33
+ ## Image: rounded corners by default, withBorder draws only the border
34
+
35
+ **Since `1.3.0`** · migration · no code change needed · also applies to
36
+ `@mittwald/flow-remote-react-components`
37
+
38
+ `Image` now has rounded corners by default, with or without a border. Previously
39
+ only `withBorder` rounded them. `withBorder` now draws only the border, and the
40
+ new `withRoundedCorners` prop (default `true`) controls the corner radius on its
41
+ own. The border color is also more muted.
42
+
43
+ Keep square corners where an image needs them:
44
+
45
+ ```diff
46
+ - <Image src={src} alt="" />
47
+ + <Image src={src} alt="" withRoundedCorners={false} />
48
+ ```
49
+
50
+ **Apply:** No code change required. To keep square corners on an `Image` without
51
+ `withBorder`, pass `withRoundedCorners={false}`.
52
+
53
+ ---
54
+
31
55
  <a id="popover-open-state-props"></a>
32
56
 
33
57
  ## Popover: `defaultOpen` renamed, `isOpen` and `onOpenChange` now work