braid-design-system 32.6.0 → 32.7.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 +46 -0
- package/codemod/dist/wrapper.js +82628 -42142
- package/dist/ToastContext.chunk.cjs +6 -0
- package/dist/ToastContext.chunk.mjs +6 -0
- package/dist/{Toggle.chunk.cjs → index.chunk.cjs} +89 -79
- package/dist/{Toggle.chunk.mjs → index.chunk.mjs} +88 -78
- package/dist/index.cjs +137 -137
- package/dist/index.mjs +1 -1
- package/dist/playroom/components.cjs +147 -147
- package/dist/playroom/components.mjs +2 -2
- package/dist/playroomState.chunk.cjs +1 -1
- package/dist/playroomState.chunk.mjs +1 -1
- package/dist/reset.cjs +5 -0
- package/dist/reset.d.ts +1 -1
- package/dist/reset.mjs +5 -0
- package/dist/styles/lib/components/private/Modal/Modal.css.cjs +15 -7
- package/dist/styles/lib/components/private/Modal/Modal.css.mjs +15 -7
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,51 @@
|
|
|
1
1
|
# braid-design-system
|
|
2
2
|
|
|
3
|
+
## 32.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- **Drawer, Dialog:** Support validation blocking closure of modal ([#1318](https://github.com/seek-oss/braid-design-system/pull/1318))
|
|
8
|
+
|
|
9
|
+
To prevent a `Dialog` or `Drawer` from closing, e.g. due to validation, the `onClose` function can now return **false**.
|
|
10
|
+
|
|
11
|
+
**EXAMPLE USAGE:**
|
|
12
|
+
|
|
13
|
+
```jsx
|
|
14
|
+
<Drawer
|
|
15
|
+
open={open}
|
|
16
|
+
onClose={() => {
|
|
17
|
+
const valid = runValidation();
|
|
18
|
+
if (!valid) {
|
|
19
|
+
return false;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
setOpen(false);
|
|
23
|
+
}}
|
|
24
|
+
/>
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- **TooltipRenderer:** Fix arrow overlapping tooltip corner radius ([#1316](https://github.com/seek-oss/braid-design-system/pull/1316))
|
|
30
|
+
|
|
31
|
+
Fix for an edge case where the arrow on a small tooltip could the overlap the corner radius of the tooltip.
|
|
32
|
+
|
|
33
|
+
- **Drawer:** Darken backdrop in dark mode ([#1316](https://github.com/seek-oss/braid-design-system/pull/1316))
|
|
34
|
+
|
|
35
|
+
Increase the weight of the backdrop in dark mode to ensure the content is suffiently obscured.
|
|
36
|
+
|
|
37
|
+
- **Drawer:** Fix entrance animation from `left` position ([#1316](https://github.com/seek-oss/braid-design-system/pull/1316))
|
|
38
|
+
|
|
39
|
+
Apply the entrance animation correctly for a `Drawer` using the `left` position.
|
|
40
|
+
Also reduced the horizontal overshoot for the transition for a smoother feel.
|
|
41
|
+
|
|
42
|
+
- **Drawer:** Increase space between `title` and `description` on tablet ([#1316](https://github.com/seek-oss/braid-design-system/pull/1316))
|
|
43
|
+
|
|
44
|
+
- **Drawer:** Align horizontal gutters with PageBlock ([#1316](https://github.com/seek-oss/braid-design-system/pull/1316))
|
|
45
|
+
|
|
46
|
+
Given a `Drawer` is full width on a mobile device, applying the same horizontal gutter rules as `PageBlock` makes sense.
|
|
47
|
+
This ensures content on a mobile will have the same available space whether its in the page, or inside a `Drawer`.
|
|
48
|
+
|
|
3
49
|
## 32.6.0
|
|
4
50
|
|
|
5
51
|
### Minor Changes
|