braid-design-system 32.2.0 → 32.3.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.
- package/CHANGELOG.md +119 -0
- package/codemod/dist/wrapper.js +1221 -21034
- package/dist/ToastContext.chunk.cjs +52 -80
- package/dist/ToastContext.chunk.mjs +88 -116
- package/dist/Toggle.chunk.cjs +70 -30
- package/dist/Toggle.chunk.mjs +80 -40
- package/dist/reset.d.ts +22 -4
- package/dist/styles/lib/components/MenuItemCheckbox/MenuItemCheckbox.css.cjs +30 -0
- package/dist/styles/lib/components/MenuItemCheckbox/MenuItemCheckbox.css.mjs +31 -0
- package/dist/styles/lib/components/Stepper/Stepper.css.cjs +8 -7
- package/dist/styles/lib/components/Stepper/Stepper.css.mjs +8 -7
- package/dist/styles/lib/components/Textarea/Highlight/Highlight.css.cjs +33 -5
- package/dist/styles/lib/components/Textarea/Highlight/Highlight.css.mjs +33 -5
- package/dist/styles/lib/components/TooltipRenderer/TooltipRenderer.css.cjs +0 -4
- package/dist/styles/lib/components/TooltipRenderer/TooltipRenderer.css.mjs +0 -4
- package/dist/styles/lib/components/private/InlineField/InlineField.css.cjs +29 -32
- package/dist/styles/lib/components/private/InlineField/InlineField.css.mjs +31 -34
- package/dist/styles/lib/css/atoms/atomicProperties.cjs +2 -0
- package/dist/styles/lib/css/atoms/atomicProperties.mjs +2 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,124 @@
|
|
|
1
1
|
# braid-design-system
|
|
2
2
|
|
|
3
|
+
## 32.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- **RadioItem, Checkbox:** Fix stacking context behaviour ([#1284](https://github.com/seek-oss/braid-design-system/pull/1284))
|
|
8
|
+
|
|
9
|
+
A `RadioItem` and `Checkbox` previously created a new stacking context with an elevated `z-index` applied on hover, resulting in their labels overlaying other elements in an unpredictable ways — most noticable when [toggling nested content].
|
|
10
|
+
|
|
11
|
+
For example, toggling nested content containing an `Autosuggest`, would see the list of suggestions list would be overlayed by the next `RadioItem` on hover.
|
|
12
|
+
|
|
13
|
+
To fix this, the `z-index` is no longer elevated on hover, and additionally the nested content container applies an elevated index when the field is **checked**.
|
|
14
|
+
|
|
15
|
+
[toggling nested content]: https://seek-oss.github.io/braid-design-system/components/RadioGroup#toggling-nested-content
|
|
16
|
+
|
|
17
|
+
- **Textarea:** Adjust `highlightRange` background to support different line heights ([#1279](https://github.com/seek-oss/braid-design-system/pull/1279))
|
|
18
|
+
|
|
19
|
+
Remove the vertical padding on the highlight element to prevent the background colour overlapping the wavy underline in themes with tighter line heights.
|
|
20
|
+
|
|
21
|
+
- **MenuItemCheckbox:** Align checkbox size with a `small` Checkbox ([#1276](https://github.com/seek-oss/braid-design-system/pull/1276))
|
|
22
|
+
|
|
23
|
+
Align the size of a `MenuItemCheckbox` with a `small` sized `Checkbox`.
|
|
24
|
+
|
|
25
|
+
- **Checkbox, RadioItem:** Fix alignment with updated Badge layout ([#1280](https://github.com/seek-oss/braid-design-system/pull/1280))
|
|
26
|
+
|
|
27
|
+
Improve layout to work with updated Badge layout which is no longer driven by line height.
|
|
28
|
+
|
|
29
|
+
- **MonthPicker:** Reduce space between fields ([#1277](https://github.com/seek-oss/braid-design-system/pull/1277))
|
|
30
|
+
|
|
31
|
+
Reduce the space between the month and year fields.
|
|
32
|
+
|
|
33
|
+
## 32.3.0
|
|
34
|
+
|
|
35
|
+
### Minor Changes
|
|
36
|
+
|
|
37
|
+
- **Box, atoms:** Add `borderBrandAccent` variants to available boxShadows ([#1274](https://github.com/seek-oss/braid-design-system/pull/1274))
|
|
38
|
+
|
|
39
|
+
Add `borderBrandAccent` and `borderBrandAccentLight` to the available boxShadows, combining the `brandAccent` and `brandAccentLight` border colours with the `standard` border width token.
|
|
40
|
+
Previously, `brandAccent` was only available with the `large` border width.
|
|
41
|
+
|
|
42
|
+
**EXAMPLE USAGE:**
|
|
43
|
+
|
|
44
|
+
```jsx
|
|
45
|
+
<Box boxShadow="borderBrandAccent" />;
|
|
46
|
+
{
|
|
47
|
+
/* or */
|
|
48
|
+
}
|
|
49
|
+
<Box boxShadow="borderBrandAccentLight" />;
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
```ts
|
|
53
|
+
import { atoms } from 'braid-design-system/css';
|
|
54
|
+
|
|
55
|
+
atoms({ boxShadow: 'borderBrandAccent' });
|
|
56
|
+
atoms({ boxShadow: 'borderBrandAccentLight' });
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
- **useToast:** Design uplift with increased page contrast ([#1269](https://github.com/seek-oss/braid-design-system/pull/1269))
|
|
60
|
+
|
|
61
|
+
As a means to increase constrast against page content, the design has been updated to be presented on inverted backgrounds based on the color mode.
|
|
62
|
+
The design has also be refined to remove the sidebar/keyline (consistent with `Alert`), while also applying the `tone` to the provided `message`.
|
|
63
|
+
|
|
64
|
+
- **Textarea:** Add support for disabling built-in spell checker ([#1272](https://github.com/seek-oss/braid-design-system/pull/1272))
|
|
65
|
+
|
|
66
|
+
Provide support for disabling the built-in browser spell checker using the native HTML attribute `spellCheck`.
|
|
67
|
+
|
|
68
|
+
When highlighting ranges you may choose to turn spell check off to prevent colliding highlights. This can be done be setting `spellCheck` to `false`.
|
|
69
|
+
|
|
70
|
+
**EXAMPLE USAGE:**
|
|
71
|
+
|
|
72
|
+
```jsx
|
|
73
|
+
<Textarea spellCheck={false} />
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
- Add support for `caution` tone to form fields ([#1271](https://github.com/seek-oss/braid-design-system/pull/1271))
|
|
77
|
+
|
|
78
|
+
Provide support for applying a `caution` tone to form fields.
|
|
79
|
+
Specifying this `tone` will show the `IconCaution` alongside the provided `message`.
|
|
80
|
+
|
|
81
|
+
**EXAMPLE USAGE:**
|
|
82
|
+
|
|
83
|
+
```jsx
|
|
84
|
+
<TextField tone="caution" message="Caution message" />
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
- **Textarea:** Add support for `caution` highlightRanges ([#1272](https://github.com/seek-oss/braid-design-system/pull/1272))
|
|
88
|
+
|
|
89
|
+
Providing a `tone` of `caution` along with a set of `highlightRanges` will now apply the `caution` tone to the text being highlighted.
|
|
90
|
+
To complement this feature, the design has been uplifted to work consistently across both the `critical` and `caution` tones.
|
|
91
|
+
|
|
92
|
+
**EXAMPLE USAGE:**
|
|
93
|
+
|
|
94
|
+
```jsx
|
|
95
|
+
<Textarea
|
|
96
|
+
tone="caution"
|
|
97
|
+
message="Caution message"
|
|
98
|
+
highlightRanges={...}
|
|
99
|
+
/>
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
- **Alert:** Design uplift ([#1269](https://github.com/seek-oss/braid-design-system/pull/1269))
|
|
103
|
+
|
|
104
|
+
Refine the design to use consistent horizontal container inset, aligning content with elements like `Card`, as well as simplifying the design by removing the sidebar/keyline (consistent with `useToast`).
|
|
105
|
+
|
|
106
|
+
### Patch Changes
|
|
107
|
+
|
|
108
|
+
- **Button, ButtonLink:** Align `ghost` border width with field border width ([#1274](https://github.com/seek-oss/braid-design-system/pull/1274))
|
|
109
|
+
|
|
110
|
+
Align the border width of `ghost` variants with the border width of fields.
|
|
111
|
+
This is the final re-alignment piece to ensure all components use theme scales consistently, improving the ability of Braid themes to deliver cohesive design uplift.
|
|
112
|
+
|
|
113
|
+
- **Stepper:** Reduce size of `Step` indicators ([#1275](https://github.com/seek-oss/braid-design-system/pull/1275))
|
|
114
|
+
|
|
115
|
+
Refine the design of `Step` indicators by reducing their size.
|
|
116
|
+
|
|
117
|
+
- **TooltipRenderer:** Remove custom background ([#1268](https://github.com/seek-oss/braid-design-system/pull/1268))
|
|
118
|
+
|
|
119
|
+
Use the correct semantic token for the background of tooltips.
|
|
120
|
+
While there is no visual change, this is just a clean up to ensure the palette usage remains consistent.
|
|
121
|
+
|
|
3
122
|
## 32.2.0
|
|
4
123
|
|
|
5
124
|
### Minor Changes
|