braid-design-system 31.11.0 → 31.13.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 +48 -0
- package/codemod/dist/wrapper.js +728 -486
- package/lib/components/Button/Button.screenshots.tsx +16 -0
- package/lib/components/Button/Button.tsx +5 -7
- package/lib/components/ButtonLink/ButtonLink.tsx +8 -4
- package/lib/components/Dropdown/Dropdown.tsx +8 -6
- package/lib/components/MenuItem/MenuItem.tsx +3 -1
- package/lib/components/MenuItem/MenuItemLink.tsx +2 -0
- package/lib/components/MenuItem/useMenuItem.tsx +6 -3
- package/lib/components/MenuItemCheckbox/MenuItemCheckbox.tsx +3 -1
- package/lib/components/MenuRenderer/MenuRenderer.actions.ts +18 -3
- package/lib/components/MenuRenderer/MenuRenderer.docs.tsx +105 -0
- package/lib/components/MenuRenderer/MenuRenderer.tsx +44 -10
- package/lib/components/MenuRenderer/testHelper.tsx +117 -96
- package/lib/components/OverflowMenu/OverflowMenu.docs.tsx +95 -0
- package/lib/components/RadioGroup/RadioGroup.docs.tsx +26 -2
- package/lib/components/RadioGroup/RadioGroup.screenshots.tsx +16 -0
- package/lib/components/RadioGroup/RadioItem.tsx +1 -2
- package/lib/components/private/Modal/modalTestSuite.tsx +38 -35
- package/lib/components/private/Snippets.ts +2 -2
- package/lib/hooks/useIcon/index.ts +2 -2
- package/lib/stories/all.stories.tsx +13 -6
- package/lib/utils/useSourceFromExample.ts +2 -14
- package/package.json +18 -19
- package/setupTests.ts +1 -0
- package/tsconfig.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,53 @@
|
|
|
1
1
|
# braid-design-system
|
|
2
2
|
|
|
3
|
+
## 31.13.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- **MenuRenderer, OverflowMenu:** Provide context data to onClose ([#1115](https://github.com/seek-oss/braid-design-system/pull/1115))
|
|
8
|
+
|
|
9
|
+
The `onClose` handler now receives data to allow consumers to discern why the menu closed — either by exiting or selecting an action. See the [documentation](https://seek-oss.github.io/braid-design-system/components/MenuRenderer#menu-interactions) for more details.
|
|
10
|
+
|
|
11
|
+
**EXAMPLE USAGE:**
|
|
12
|
+
|
|
13
|
+
```jsx
|
|
14
|
+
<MenuRenderer
|
|
15
|
+
onClose={closeReason => {
|
|
16
|
+
// ...
|
|
17
|
+
}}
|
|
18
|
+
/>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## 31.12.0
|
|
22
|
+
|
|
23
|
+
### Minor Changes
|
|
24
|
+
|
|
25
|
+
- **RadioItem:** Add `disabled` support ([#1108](https://github.com/seek-oss/braid-design-system/pull/1108))
|
|
26
|
+
|
|
27
|
+
Provide support for disabling individual `RadioItem`s within a `RadioGroup`.
|
|
28
|
+
|
|
29
|
+
**EXAMPLE USAGE:**
|
|
30
|
+
|
|
31
|
+
```jsx
|
|
32
|
+
<RadioGroup>
|
|
33
|
+
<RadioItem label="One" value="1" />
|
|
34
|
+
<RadioItem label="Two" value="2" />
|
|
35
|
+
<RadioItem label="Three" value="3" disabled={true} />
|
|
36
|
+
</RadioGroup>
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- **Dropdown:** React 18 compatibility ([#1114](https://github.com/seek-oss/braid-design-system/pull/1114))
|
|
42
|
+
|
|
43
|
+
## 31.11.1
|
|
44
|
+
|
|
45
|
+
### Patch Changes
|
|
46
|
+
|
|
47
|
+
- **Button, ButtonLink:** Ensure `bleedY` is backwards compatibile for `transparent` variant ([#1106](https://github.com/seek-oss/braid-design-system/pull/1106))
|
|
48
|
+
|
|
49
|
+
Ensure that `bleedY` applies bleed only vertically on `transparent` variant, isolating the new horizontal bleed to the new `bleed` prop exclusively.
|
|
50
|
+
|
|
3
51
|
## 31.11.0
|
|
4
52
|
|
|
5
53
|
### Minor Changes
|