braid-design-system 33.7.0 → 33.8.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 +45 -0
- package/codemod/dist/wrapper.js +1201 -870
- package/dist/index.d.mts +444 -429
- package/dist/index.d.ts +444 -429
- package/dist/lib/components/Autosuggest/Autosuggest.cjs +122 -110
- package/dist/lib/components/Autosuggest/Autosuggest.mjs +124 -112
- package/dist/lib/components/ButtonIcon/ButtonIcon.cjs +13 -11
- package/dist/lib/components/ButtonIcon/ButtonIcon.mjs +13 -11
- package/dist/lib/components/List/List.css.cjs +1 -1
- package/dist/lib/components/List/List.css.mjs +1 -1
- package/dist/lib/components/MenuItem/useMenuItem.cjs +4 -14
- package/dist/lib/components/MenuItem/useMenuItem.mjs +4 -14
- package/dist/lib/components/MenuRenderer/MenuRenderer.actions.cjs +8 -13
- package/dist/lib/components/MenuRenderer/MenuRenderer.actions.mjs +8 -13
- package/dist/lib/components/MenuRenderer/MenuRenderer.cjs +114 -193
- package/dist/lib/components/MenuRenderer/MenuRenderer.css.cjs +2 -14
- package/dist/lib/components/MenuRenderer/MenuRenderer.css.mjs +3 -15
- package/dist/lib/components/MenuRenderer/MenuRenderer.mjs +116 -195
- package/dist/lib/components/OverflowMenu/OverflowMenu.cjs +1 -1
- package/dist/lib/components/OverflowMenu/OverflowMenu.mjs +1 -1
- package/dist/lib/components/TooltipRenderer/TooltipRenderer.cjs +127 -199
- package/dist/lib/components/TooltipRenderer/TooltipRenderer.css.cjs +15 -22
- package/dist/lib/components/TooltipRenderer/TooltipRenderer.css.mjs +17 -24
- package/dist/lib/components/TooltipRenderer/TooltipRenderer.mjs +129 -200
- package/dist/lib/components/private/Field/Field.cjs +2 -2
- package/dist/lib/components/private/Field/Field.mjs +3 -3
- package/dist/lib/components/private/Modal/ModalContent.cjs +1 -1
- package/dist/lib/components/private/Modal/ModalContent.mjs +1 -1
- package/dist/lib/components/private/Popover/Popover.cjs +241 -0
- package/dist/lib/components/private/Popover/Popover.css.cjs +60 -0
- package/dist/lib/components/private/Popover/Popover.css.mjs +61 -0
- package/dist/lib/components/private/Popover/Popover.mjs +240 -0
- package/dist/lib/components/private/animationTimeout.cjs +3 -0
- package/dist/lib/components/private/animationTimeout.mjs +4 -0
- package/dist/lib/components/useToast/Toast.cjs +0 -2
- package/dist/lib/components/useToast/Toast.mjs +0 -2
- package/dist/lib/playroom/snippets/Columns.cjs +1 -1
- package/dist/lib/playroom/snippets/Columns.mjs +1 -1
- package/dist/lib/playroom/useScope.cjs +4 -2
- package/dist/lib/playroom/useScope.mjs +4 -2
- package/package.json +4 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,50 @@
|
|
|
1
1
|
# braid-design-system
|
|
2
2
|
|
|
3
|
+
## 33.8.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- **MenuRenderer, OverflowMenu**: Add automatic menu positioning to ensure menus are placed within viewport bounds. ([#1738](https://github.com/seek-oss/braid-design-system/pull/1738))
|
|
8
|
+
|
|
9
|
+
Menus now detect when they would render outside window boundaries and automatically adjust their position.
|
|
10
|
+
This includes flipping their vertical placement and/or aligning to window edges as needed to ensure menus remain fully visible.
|
|
11
|
+
|
|
12
|
+
- **Autosuggest**: Add entrance animation to suggestions dropdown. ([#1738](https://github.com/seek-oss/braid-design-system/pull/1738))
|
|
13
|
+
|
|
14
|
+
- **TooltipRenderer**: Improve tooltip positioning at viewport edges. ([#1738](https://github.com/seek-oss/braid-design-system/pull/1738))
|
|
15
|
+
|
|
16
|
+
Subtly adjusts tooltip edge padding and minimum arrow margins when triggered near window boundaries to ensure optimal arrow placement.
|
|
17
|
+
|
|
18
|
+
- **ButtonIcon**: Add optional `aria-describedby` prop ([#1785](https://github.com/seek-oss/braid-design-system/pull/1785))
|
|
19
|
+
|
|
20
|
+
`aria-describedby` can be used in addition to `label` to associate additional descriptive elements with the `ButtonIcon`.
|
|
21
|
+
|
|
22
|
+
**EXAMPLE USAGE:**
|
|
23
|
+
|
|
24
|
+
```jsx
|
|
25
|
+
<ButtonIcon icon={<IconDelete />} label="Delete" aria-describedby="descriptionId" />
|
|
26
|
+
<Text id="descriptionId">Deleted items will be permanently removed after 30 days.</Text>
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- Ensure the `input` element fills the visual field boundary. ([#1738](https://github.com/seek-oss/braid-design-system/pull/1738))
|
|
32
|
+
|
|
33
|
+
Previously, when a field action such as "clear" or "toggle password visibility" was present, the native `input` element would shrink to accommodate.
|
|
34
|
+
|
|
35
|
+
This change ensures the `input` does not change size, instead applying padding to prevent the field value from colliding with the action.
|
|
36
|
+
The native browser styles for features such as [`:autofill`] now visually fill the field.
|
|
37
|
+
|
|
38
|
+
- **Autosuggest, MenuRenderer, OverflowMenu, TooltipRenderer**: Refactor the internal layout of floating elements for improved consistency. ([#1738](https://github.com/seek-oss/braid-design-system/pull/1738))
|
|
39
|
+
|
|
40
|
+
- **Dialog, Drawer**: Ensure that only elements outside the `Dialog` or `Drawer` are `aria-hidden` when open ([#1792](https://github.com/seek-oss/braid-design-system/pull/1792))
|
|
41
|
+
|
|
42
|
+
Fixes an issue where the close button inside the `Dialog` or `Drawer` was incorrectly inside an `aria-hidden` region.
|
|
43
|
+
|
|
44
|
+
- **useToast**: Simplify internal logic, refining how the theme is applied to Toasts ([#1797](https://github.com/seek-oss/braid-design-system/pull/1797))
|
|
45
|
+
|
|
46
|
+
- **Autosuggest**: Ensure suggestions dropdown is visible, even when `Autosuggest` is inside a container with overflow hidden. ([#1738](https://github.com/seek-oss/braid-design-system/pull/1738))
|
|
47
|
+
|
|
3
48
|
## 33.7.0
|
|
4
49
|
|
|
5
50
|
### Minor Changes
|