braid-design-system 34.0.0-seperate-codemod-20250618035833 → 34.0.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 +411 -49
- package/README.md +7 -7
- package/dist/css.cjs +2 -0
- package/dist/css.d.mts +1 -1
- package/dist/css.d.ts +1 -1
- package/dist/css.mjs +2 -0
- package/dist/index.cjs +4 -2
- package/dist/index.d.mts +275 -419
- package/dist/index.d.ts +275 -419
- package/dist/index.mjs +4 -2
- package/dist/lib/color/palette.cjs +1 -4
- package/dist/lib/color/palette.mjs +1 -4
- package/dist/lib/components/Accordion/AccordionItem.cjs +30 -44
- package/dist/lib/components/Accordion/AccordionItem.css.cjs +6 -12
- package/dist/lib/components/Accordion/AccordionItem.css.mjs +6 -12
- package/dist/lib/components/Accordion/AccordionItem.mjs +30 -44
- package/dist/lib/components/Actions/Actions.cjs +14 -2
- package/dist/lib/components/Actions/Actions.css.cjs +21 -0
- package/dist/lib/components/Actions/Actions.css.mjs +22 -0
- package/dist/lib/components/Actions/Actions.mjs +14 -2
- package/dist/lib/components/Alert/Alert.cjs +42 -75
- package/dist/lib/components/Alert/Alert.css.cjs +0 -8
- package/dist/lib/components/Alert/Alert.css.mjs +0 -8
- package/dist/lib/components/Alert/Alert.mjs +44 -77
- package/dist/lib/components/Autosuggest/Autosuggest.cjs +4 -2
- package/dist/lib/components/Autosuggest/Autosuggest.mjs +4 -2
- package/dist/lib/components/Autosuggest/Autosuggest.playroom.cjs +1 -1
- package/dist/lib/components/Autosuggest/Autosuggest.playroom.mjs +1 -1
- package/dist/lib/components/Badge/Badge.cjs +2 -2
- package/dist/lib/components/Badge/Badge.mjs +2 -2
- package/dist/lib/components/Box/BackgroundContext.mjs +1 -1
- package/dist/lib/components/BraidProvider/BraidProvider.cjs +0 -2
- package/dist/lib/components/BraidProvider/BraidProvider.mjs +0 -2
- package/dist/lib/components/BraidTestProvider/BraidTestProvider.cjs +19 -2
- package/dist/lib/components/BraidTestProvider/BraidTestProvider.mjs +19 -2
- package/dist/lib/components/Button/Button.cjs +8 -32
- package/dist/lib/components/Button/Button.css.cjs +12 -9
- package/dist/lib/components/Button/Button.css.mjs +13 -10
- package/dist/lib/components/Button/Button.mjs +9 -33
- package/dist/lib/components/ButtonIcon/ButtonIcon.cjs +3 -3
- package/dist/lib/components/ButtonIcon/ButtonIcon.mjs +3 -3
- package/dist/lib/components/ButtonLink/ButtonLink.cjs +1 -0
- package/dist/lib/components/ButtonLink/ButtonLink.mjs +1 -0
- package/dist/lib/components/Card/Card.cjs +3 -20
- package/dist/lib/components/Card/Card.mjs +3 -20
- package/dist/lib/components/Dialog/Dialog.cjs +4 -1
- package/dist/lib/components/Dialog/Dialog.mjs +4 -1
- package/dist/lib/components/Disclosure/Disclosure.cjs +1 -1
- package/dist/lib/components/Disclosure/Disclosure.mjs +1 -1
- package/dist/lib/components/Hidden/Hidden.cjs +1 -16
- package/dist/lib/components/Hidden/Hidden.mjs +1 -14
- package/dist/lib/components/Inline/Inline.css.cjs +1 -0
- package/dist/lib/components/Inline/Inline.css.mjs +1 -0
- package/dist/lib/components/Inline/Inline.playroom.cjs +6 -1
- package/dist/lib/components/Inline/Inline.playroom.mjs +6 -1
- package/dist/lib/components/Link/Link.playroom.cjs +1 -1
- package/dist/lib/components/Link/Link.playroom.mjs +1 -1
- package/dist/lib/components/MenuItem/MenuItemLink.playroom.cjs +4 -1
- package/dist/lib/components/MenuItem/MenuItemLink.playroom.mjs +4 -1
- package/dist/lib/components/MenuItem/useMenuItem.cjs +5 -11
- package/dist/lib/components/MenuItem/useMenuItem.css.cjs +1 -0
- package/dist/lib/components/MenuItem/useMenuItem.css.mjs +1 -0
- package/dist/lib/components/MenuItem/useMenuItem.mjs +5 -11
- package/dist/lib/components/MenuRenderer/MenuRenderer.cjs +2 -3
- package/dist/lib/components/MenuRenderer/MenuRenderer.mjs +2 -3
- package/dist/lib/components/PageBlock/PageBlock.cjs +2 -3
- package/dist/lib/components/PageBlock/PageBlock.mjs +3 -4
- package/dist/lib/components/PageBlock/pageBlockGutters.cjs +3 -0
- package/dist/lib/components/PageBlock/pageBlockGutters.mjs +4 -0
- package/dist/lib/components/Pagination/Pagination.cjs +49 -54
- package/dist/lib/components/Pagination/Pagination.css.cjs +13 -2
- package/dist/lib/components/Pagination/Pagination.css.mjs +14 -3
- package/dist/lib/components/Pagination/Pagination.mjs +49 -54
- package/dist/lib/components/RadioGroup/RadioGroup.cjs +0 -1
- package/dist/lib/components/RadioGroup/RadioGroup.mjs +0 -1
- package/dist/lib/components/Stepper/Step.cjs +10 -22
- package/dist/lib/components/Stepper/Step.mjs +11 -23
- package/dist/lib/components/Stepper/Stepper.cjs +1 -0
- package/dist/lib/components/Stepper/Stepper.css.cjs +11 -12
- package/dist/lib/components/Stepper/Stepper.css.mjs +11 -12
- package/dist/lib/components/Stepper/Stepper.mjs +1 -0
- package/dist/lib/components/Strong/Strong.cjs +6 -1
- package/dist/lib/components/Strong/Strong.mjs +6 -1
- package/dist/lib/components/Table/Table.css.cjs +9 -4
- package/dist/lib/components/Table/Table.css.mjs +10 -5
- package/dist/lib/components/Table/TableCell.cjs +1 -1
- package/dist/lib/components/Table/TableCell.mjs +2 -2
- package/dist/lib/components/Tabs/Tab.cjs +2 -17
- package/dist/lib/components/Tabs/Tab.mjs +3 -18
- package/dist/lib/components/Tabs/TabPanel.cjs +4 -16
- package/dist/lib/components/Tabs/TabPanel.mjs +6 -18
- package/dist/lib/components/Tabs/Tabs.css.cjs +1 -14
- package/dist/lib/components/Tabs/Tabs.css.mjs +1 -14
- package/dist/lib/components/TextDropdown/TextDropdown.cjs +5 -16
- package/dist/lib/components/TextDropdown/TextDropdown.css.cjs +8 -14
- package/dist/lib/components/TextDropdown/TextDropdown.css.mjs +8 -14
- package/dist/lib/components/TextDropdown/TextDropdown.mjs +6 -17
- package/dist/lib/components/TextDropdown/TextDropdown.playroom.cjs +3 -3
- package/dist/lib/components/TextDropdown/TextDropdown.playroom.mjs +3 -3
- package/dist/lib/components/TextLink/TextLink.cjs +1 -1
- package/dist/lib/components/TextLink/TextLink.css.cjs +4 -4
- package/dist/lib/components/TextLink/TextLink.css.mjs +4 -4
- package/dist/lib/components/TextLink/TextLink.mjs +1 -1
- package/dist/lib/components/TextLinkButton/TextLinkButton.cjs +2 -2
- package/dist/lib/components/TextLinkButton/TextLinkButton.mjs +2 -2
- package/dist/lib/components/Textarea/Textarea.cjs +1 -0
- package/dist/lib/components/Textarea/Textarea.mjs +1 -0
- package/dist/lib/components/Toggle/Toggle.cjs +5 -31
- package/dist/lib/components/Toggle/Toggle.css.cjs +8 -15
- package/dist/lib/components/Toggle/Toggle.css.mjs +8 -15
- package/dist/lib/components/Toggle/Toggle.mjs +6 -30
- package/dist/lib/components/TooltipRenderer/TooltipRenderer.cjs +108 -82
- package/dist/lib/components/TooltipRenderer/TooltipRenderer.css.cjs +15 -7
- package/dist/lib/components/TooltipRenderer/TooltipRenderer.css.mjs +15 -7
- package/dist/lib/components/TooltipRenderer/TooltipRenderer.mjs +109 -83
- package/dist/lib/components/icons/IconArrow/IconArrow.cjs +4 -1
- package/dist/lib/components/icons/IconArrow/IconArrow.mjs +4 -1
- package/dist/lib/components/icons/IconAttachment/IconAttachmentSvg.cjs +10 -14
- package/dist/lib/components/icons/IconAttachment/IconAttachmentSvg.mjs +10 -14
- package/dist/lib/components/icons/IconBluetooth/IconBluetoothSvg.cjs +5 -1
- package/dist/lib/components/icons/IconBluetooth/IconBluetoothSvg.mjs +5 -1
- package/dist/lib/components/icons/IconBulletList/IconBulletListSvg.cjs +5 -1
- package/dist/lib/components/icons/IconBulletList/IconBulletListSvg.mjs +5 -1
- package/dist/lib/components/icons/IconCareer/IconCareer.cjs +4 -1
- package/dist/lib/components/icons/IconCareer/IconCareer.mjs +4 -1
- package/dist/lib/components/icons/IconCareer/IconCareerActiveSvg.cjs +5 -1
- package/dist/lib/components/icons/IconCareer/IconCareerActiveSvg.mjs +5 -1
- package/dist/lib/components/icons/IconChecklist/IconChecklistSvg.cjs +5 -1
- package/dist/lib/components/icons/IconChecklist/IconChecklistSvg.mjs +5 -1
- package/dist/lib/components/icons/IconCoverLetter/IconCoverLetterSvg.cjs +5 -1
- package/dist/lib/components/icons/IconCoverLetter/IconCoverLetterSvg.mjs +5 -1
- package/dist/lib/components/icons/IconCreditCard/IconCreditCardSvg.cjs +5 -1
- package/dist/lib/components/icons/IconCreditCard/IconCreditCardSvg.mjs +5 -1
- package/dist/lib/components/icons/IconEducation/IconEducationSvg.cjs +5 -1
- package/dist/lib/components/icons/IconEducation/IconEducationSvg.mjs +5 -1
- package/dist/lib/components/icons/IconEnlarge/IconEnlarge.cjs +4 -1
- package/dist/lib/components/icons/IconEnlarge/IconEnlarge.mjs +4 -1
- package/dist/lib/components/icons/IconExperience/IconExperienceSvg.cjs +5 -1
- package/dist/lib/components/icons/IconExperience/IconExperienceSvg.mjs +5 -1
- package/dist/lib/components/icons/IconHeart/IconHeartActiveSvg.cjs +5 -1
- package/dist/lib/components/icons/IconHeart/IconHeartActiveSvg.mjs +5 -1
- package/dist/lib/components/icons/IconInfo/IconInfoSvg.cjs +2 -3
- package/dist/lib/components/icons/IconInfo/IconInfoSvg.mjs +2 -3
- package/dist/lib/components/icons/IconLinkBroken/IconLinkBrokenSvg.cjs +5 -1
- package/dist/lib/components/icons/IconLinkBroken/IconLinkBrokenSvg.mjs +5 -1
- package/dist/lib/components/icons/IconLocation/IconLocationSvg.cjs +2 -3
- package/dist/lib/components/icons/IconLocation/IconLocationSvg.mjs +2 -3
- package/dist/lib/components/icons/IconMicrophone/IconMicrophone.cjs +7 -0
- package/dist/lib/components/icons/IconMicrophone/IconMicrophone.mjs +8 -0
- package/dist/lib/components/icons/IconMicrophone/IconMicrophoneSvg.cjs +25 -0
- package/dist/lib/components/icons/IconMicrophone/IconMicrophoneSvg.mjs +26 -0
- package/dist/lib/components/icons/IconNewWindow/IconNewWindowSvg.cjs +5 -1
- package/dist/lib/components/icons/IconNewWindow/IconNewWindowSvg.mjs +5 -1
- package/dist/lib/components/icons/IconNotification/IconNotificationSvg.cjs +5 -1
- package/dist/lib/components/icons/IconNotification/IconNotificationSvg.mjs +5 -1
- package/dist/lib/components/icons/IconNumberedList/IconNumberedListSvg.cjs +5 -1
- package/dist/lib/components/icons/IconNumberedList/IconNumberedListSvg.mjs +5 -1
- package/dist/lib/components/icons/IconPersonAdd/IconPersonAddSvg.cjs +5 -1
- package/dist/lib/components/icons/IconPersonAdd/IconPersonAddSvg.mjs +5 -1
- package/dist/lib/components/icons/IconRecommended/IconRecommendedSvg.cjs +5 -1
- package/dist/lib/components/icons/IconRecommended/IconRecommendedSvg.mjs +5 -1
- package/dist/lib/components/icons/IconSentiment/IconSentimentSvg.cjs +5 -1
- package/dist/lib/components/icons/IconSentiment/IconSentimentSvg.mjs +5 -1
- package/dist/lib/components/icons/IconSocialGitHub/IconSocialGitHubSvg.cjs +5 -1
- package/dist/lib/components/icons/IconSocialGitHub/IconSocialGitHubSvg.mjs +5 -1
- package/dist/lib/components/icons/IconSocialMedium/IconSocialMediumSvg.cjs +5 -1
- package/dist/lib/components/icons/IconSocialMedium/IconSocialMediumSvg.mjs +5 -1
- package/dist/lib/components/icons/IconSocialTiktok/IconSocialTiktok.cjs +7 -0
- package/dist/lib/components/icons/IconSocialTiktok/IconSocialTiktok.mjs +8 -0
- package/dist/lib/components/icons/IconSocialTiktok/IconSocialTiktokSvg.cjs +24 -0
- package/dist/lib/components/icons/IconSocialTiktok/IconSocialTiktokSvg.mjs +25 -0
- package/dist/lib/components/icons/IconStar/IconStarActiveSvg.cjs +5 -1
- package/dist/lib/components/icons/IconStar/IconStarActiveSvg.mjs +5 -1
- package/dist/lib/components/icons/IconStatistics/IconStatisticsSvg.cjs +5 -1
- package/dist/lib/components/icons/IconStatistics/IconStatisticsSvg.mjs +5 -1
- package/dist/lib/components/icons/IconSubCategory/IconSubCategorySvg.cjs +5 -1
- package/dist/lib/components/icons/IconSubCategory/IconSubCategorySvg.mjs +5 -1
- package/dist/lib/components/icons/IconThumb/IconThumb.cjs +4 -1
- package/dist/lib/components/icons/IconThumb/IconThumb.mjs +4 -1
- package/dist/lib/components/icons/IconVisibility/IconVisibility.cjs +4 -1
- package/dist/lib/components/icons/IconVisibility/IconVisibility.mjs +4 -1
- package/dist/lib/components/icons/IconVisibility/IconVisibilitySvg.cjs +5 -1
- package/dist/lib/components/icons/IconVisibility/IconVisibilitySvg.mjs +5 -1
- package/dist/lib/components/private/Field/Field.cjs +0 -2
- package/dist/lib/components/private/Field/Field.css.cjs +0 -8
- package/dist/lib/components/private/Field/Field.css.mjs +0 -8
- package/dist/lib/components/private/Field/Field.mjs +1 -3
- package/dist/lib/components/private/FieldOverlay/FieldOverlay.cjs +0 -1
- package/dist/lib/components/private/FieldOverlay/FieldOverlay.mjs +0 -1
- package/dist/lib/components/private/InlineField/InlineField.css.cjs +3 -10
- package/dist/lib/components/private/InlineField/InlineField.css.mjs +3 -10
- package/dist/lib/components/private/InlineField/StyledInput.cjs +0 -8
- package/dist/lib/components/private/InlineField/StyledInput.mjs +1 -9
- package/dist/lib/components/private/Modal/Modal.cjs +0 -2
- package/dist/lib/components/private/Modal/Modal.css.cjs +0 -8
- package/dist/lib/components/private/Modal/Modal.css.mjs +0 -8
- package/dist/lib/components/private/Modal/Modal.mjs +0 -2
- package/dist/lib/components/private/Modal/ModalContent.cjs +17 -28
- package/dist/lib/components/private/Modal/ModalContent.mjs +18 -29
- package/dist/lib/components/private/Overlay/Overlay.cjs +1 -6
- package/dist/lib/components/private/Overlay/Overlay.mjs +1 -6
- package/dist/lib/components/private/Popover/Popover.cjs +103 -124
- package/dist/lib/components/private/Popover/Popover.css.cjs +0 -21
- package/dist/lib/components/private/Popover/Popover.css.mjs +2 -23
- package/dist/lib/components/private/Popover/Popover.mjs +105 -126
- package/dist/lib/components/useToast/Toast.cjs +67 -53
- package/dist/lib/components/useToast/Toast.css.cjs +10 -0
- package/dist/lib/components/useToast/Toast.css.mjs +10 -0
- package/dist/lib/components/useToast/Toast.mjs +68 -54
- package/dist/lib/components/useToast/ToastContext.cjs +1 -4
- package/dist/lib/components/useToast/ToastContext.mjs +1 -4
- package/dist/lib/components/useToast/Toaster.cjs +49 -20
- package/dist/lib/components/useToast/Toaster.css.cjs +18 -0
- package/dist/lib/components/useToast/Toaster.css.mjs +19 -0
- package/dist/lib/components/useToast/Toaster.mjs +49 -22
- package/dist/lib/components/useToast/consts.cjs +5 -0
- package/dist/lib/components/useToast/consts.mjs +6 -0
- package/dist/lib/components/useToast/useFlipList.cjs +116 -33
- package/dist/lib/components/useToast/useFlipList.mjs +116 -33
- package/dist/lib/components/useToast/useTimeout.cjs +1 -1
- package/dist/lib/components/useToast/useTimeout.mjs +1 -1
- package/dist/lib/css/atoms/atomicProperties.cjs +6 -4
- package/dist/lib/css/atoms/atomicProperties.mjs +6 -4
- package/dist/lib/css/outlineStyle.cjs +17 -0
- package/dist/lib/css/outlineStyle.mjs +18 -0
- package/dist/lib/css/reset/reset.css.cjs +7 -11
- package/dist/lib/css/reset/reset.css.mjs +7 -11
- package/dist/lib/hooks/useIcon/index.cjs +2 -2
- package/dist/lib/hooks/useIcon/index.mjs +2 -2
- package/dist/lib/hooks/useIsomorphicLayoutEffect.cjs +1 -2
- package/dist/lib/hooks/useIsomorphicLayoutEffect.mjs +1 -2
- package/dist/lib/playroom/components.cjs +6 -0
- package/dist/lib/playroom/components.mjs +8 -1
- package/dist/lib/playroom/snippets/Card.cjs +0 -3
- package/dist/lib/playroom/snippets/Card.mjs +0 -3
- package/dist/lib/playroom/useScope.cjs +4 -2
- package/dist/lib/playroom/useScope.mjs +4 -2
- package/dist/lib/themes/baseTokens/{apac.cjs → nvl.cjs} +100 -111
- package/dist/lib/themes/baseTokens/{apac.mjs → nvl.mjs} +101 -109
- package/dist/lib/themes/docs/tokens.cjs +0 -2
- package/dist/lib/themes/docs/tokens.mjs +0 -2
- package/dist/lib/themes/index.cjs +0 -2
- package/dist/lib/themes/index.mjs +0 -2
- package/dist/lib/themes/makeRuntimeTokens.cjs +0 -8
- package/dist/lib/themes/makeRuntimeTokens.mjs +0 -8
- package/dist/lib/themes/makeVanillaTheme.cjs +12 -17
- package/dist/lib/themes/makeVanillaTheme.mjs +3 -8
- package/dist/lib/themes/seekBusiness/tokens.cjs +5 -13
- package/dist/lib/themes/seekBusiness/tokens.mjs +4 -12
- package/dist/lib/themes/seekJobs/tokens.cjs +4 -184
- package/dist/lib/themes/seekJobs/tokens.mjs +3 -183
- package/dist/lib/themes/wireframe/tokens.cjs +0 -2
- package/dist/lib/themes/wireframe/tokens.mjs +0 -2
- package/dist/lib/utils/flattenChildren.cjs +2 -2
- package/dist/lib/utils/flattenChildren.mjs +1 -1
- package/dist/lib/utils/isFragment.cjs +13 -0
- package/dist/lib/utils/isFragment.mjs +14 -0
- package/dist/lib/utils/px.cjs +3 -0
- package/dist/lib/utils/px.mjs +4 -0
- package/dist/playroom/components.cjs +8 -7
- package/dist/playroom/components.d.mts +1 -1
- package/dist/playroom/components.d.ts +1 -1
- package/dist/playroom/components.mjs +5 -4
- package/dist/themes/docs.d.mts +1 -1
- package/dist/themes/docs.d.ts +1 -1
- package/dist/themes/seekBusiness.d.mts +1 -1
- package/dist/themes/seekBusiness.d.ts +1 -1
- package/dist/themes/seekJobs.d.mts +1 -1
- package/dist/themes/seekJobs.d.ts +1 -1
- package/dist/themes/wireframe.d.mts +1 -1
- package/dist/themes/wireframe.d.ts +1 -1
- package/package.json +22 -36
- package/dist/lib/components/icons/IconList/IconList.cjs +0 -25
- package/dist/lib/components/icons/IconList/IconList.mjs +0 -24
- package/dist/lib/components/icons/IconList/IconListSvg.cjs +0 -24
- package/dist/lib/components/icons/IconList/IconListSvg.mjs +0 -25
- package/dist/lib/components/private/hideFocusRings/hideFocusRings.cjs +0 -2
- package/dist/lib/components/private/hideFocusRings/hideFocusRings.css.cjs +0 -14
- package/dist/lib/components/private/hideFocusRings/hideFocusRings.css.mjs +0 -15
- package/dist/lib/components/private/hideFocusRings/hideFocusRings.mjs +0 -1
- package/dist/lib/components/private/hideFocusRings/hideFocusRingsDataAttribute.cjs +0 -3
- package/dist/lib/components/private/hideFocusRings/hideFocusRingsDataAttribute.mjs +0 -4
- package/dist/lib/components/private/hideFocusRings/useHideFocusRings.cjs +0 -18
- package/dist/lib/components/private/hideFocusRings/useHideFocusRings.mjs +0 -19
- package/dist/lib/themes/apac/apacTheme.css.cjs +0 -8
- package/dist/lib/themes/apac/apacTheme.css.mjs +0 -9
- package/dist/lib/themes/apac/index.cjs +0 -2
- package/dist/lib/themes/apac/index.mjs +0 -1
- package/dist/lib/themes/apac/tokens.cjs +0 -19
- package/dist/lib/themes/apac/tokens.mjs +0 -20
- package/dist/themes/apac.cjs +0 -3
- package/dist/themes/apac.d.mts +0 -1
- package/dist/themes/apac.d.ts +0 -1
- package/dist/themes/apac.mjs +0 -4
- package/themes/apac/index.d.ts +0 -2
- package/themes/apac/package.json +0 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,19 +1,421 @@
|
|
|
1
1
|
# braid-design-system
|
|
2
2
|
|
|
3
|
-
## 34.0.0
|
|
3
|
+
## 34.0.0
|
|
4
4
|
|
|
5
5
|
### Major Changes
|
|
6
6
|
|
|
7
|
+
- **Hidden:** Remove `screen` prop ([#1947](https://github.com/seek-oss/braid-design-system/pull/1947))
|
|
8
|
+
|
|
9
|
+
Remove the deprecated `screen` prop from the `Hidden` component.
|
|
10
|
+
For content designed to improve the screen reader experience, please use use the `HiddenVisually` component instead.
|
|
11
|
+
Alternatively, for content designed to be hidden unconditionally, remove the `screen` prop.
|
|
12
|
+
|
|
13
|
+
**MIGRATION GUIDE:**
|
|
14
|
+
|
|
15
|
+
```diff
|
|
16
|
+
- <Hidden screen>
|
|
17
|
+
+ <Hidden>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
- **Box, atoms:** Remove deprecated `rating` variable. ([#1947](https://github.com/seek-oss/braid-design-system/pull/1947))
|
|
21
|
+
|
|
22
|
+
Consumers should use the `brandAccent` or `neutral` variables instead.
|
|
23
|
+
|
|
24
|
+
**MIGRATION GUIDE:**
|
|
25
|
+
|
|
26
|
+
```diff
|
|
27
|
+
# styles.css.ts
|
|
28
|
+
import { vars } from 'braid-design-system/css';
|
|
29
|
+
|
|
30
|
+
export const myStyle = style({
|
|
31
|
+
- color: vars.foregroundColor.rating,
|
|
32
|
+
+ color: vars.foregroundColor.brandAccent,
|
|
33
|
+
});
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
- **Card:** Remove `rounded` prop ([#1947](https://github.com/seek-oss/braid-design-system/pull/1947))
|
|
37
|
+
|
|
38
|
+
The `rounded` prop only affected deleted themes such as `apac` and has no effect on supported themes.
|
|
39
|
+
|
|
40
|
+
**MIGRATION GUIDE:**
|
|
41
|
+
|
|
42
|
+
```diff
|
|
43
|
+
- <Card rounded>...</Card>
|
|
44
|
+
+ <Card>...</Card>
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
- **Box, atoms**: Remove deprecated `outline` value `none`, and `boxShadow` value `outlineFocus`. ([#1947](https://github.com/seek-oss/braid-design-system/pull/1947))
|
|
48
|
+
|
|
49
|
+
Braid leverages the `outline` property directly, managing focus rings of interactive elements as part of its scoped CSS reset.
|
|
50
|
+
|
|
51
|
+
**MIGRATION GUIDE:**
|
|
52
|
+
|
|
53
|
+
For styling the focus ring via `Box`:
|
|
54
|
+
1. Remove usage of `outline="none"` and `boxShadow="outlineFocus"`
|
|
55
|
+
2. Refer to [`focus outlines`] for guidance on leveraging Braid's focus outline styles.
|
|
56
|
+
|
|
57
|
+
```diff
|
|
58
|
+
- <Box outline="none" className={styles.customFocusStyles} />
|
|
59
|
+
+ <Box />
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
For styling the focus outline of an element based on the focus of another element, see [`outlineStyle`].
|
|
63
|
+
|
|
64
|
+
[`focus outlines`]: https://seek-oss.github.io/braid-design-system/components/Box#focus-outlines
|
|
65
|
+
[`outlineStyle`]: https://seek-oss.github.io/braid-design-system/css/outlineStyle
|
|
66
|
+
|
|
67
|
+
- **apac:** Remove in favour of `seekJobs` theme ([#1947](https://github.com/seek-oss/braid-design-system/pull/1947))
|
|
68
|
+
|
|
69
|
+
The previously deprecated `apac` theme has been removed.
|
|
70
|
+
Consumers should migrate to the `seekJobs` theme.
|
|
71
|
+
|
|
72
|
+
**MIGRATION GUIDE:**
|
|
73
|
+
|
|
74
|
+
```diff
|
|
75
|
+
# App.tsx
|
|
76
|
+
- import apac from 'braid-design-system/themes/apac';
|
|
77
|
+
+ import seekJobs from 'braid-design-system/themes/seekJobs';
|
|
78
|
+
|
|
79
|
+
- <BraidProvider theme={apac} ...>
|
|
80
|
+
+ <BraidProvider theme={seekJobs} ...>
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
- **IconList:** Remove deprecated component, in favour of more specific list types: `IconBulletList` and `IconNumberedList`. ([#1947](https://github.com/seek-oss/braid-design-system/pull/1947))
|
|
84
|
+
|
|
85
|
+
**MIGRATION GUIDE:**
|
|
86
|
+
|
|
87
|
+
```diff
|
|
88
|
+
-<IconList />
|
|
89
|
+
+<IconBulletList />
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
- **Toggle:** Remove `bleedY` prop ([#1947](https://github.com/seek-oss/braid-design-system/pull/1947))
|
|
93
|
+
|
|
94
|
+
Remove the deprecated `bleedY` prop from the `Toggle` component.
|
|
95
|
+
Consumers should remove use of the `bleedY` prop, and if previously setting `bleedY` to false, should update their layout accordingly.
|
|
96
|
+
|
|
97
|
+
**MIGRATION GUIDE:**
|
|
98
|
+
|
|
99
|
+
```diff
|
|
100
|
+
- <Toggle bleedY />
|
|
101
|
+
+ <Toggle />
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### Patch Changes
|
|
105
|
+
|
|
106
|
+
- Update `is-mobile` dependency ([#1945](https://github.com/seek-oss/braid-design-system/pull/1945))
|
|
107
|
+
|
|
108
|
+
## 33.14.0
|
|
109
|
+
|
|
110
|
+
### Minor Changes
|
|
111
|
+
|
|
112
|
+
- **TooltipRenderer:** Add support for `left` and `right` placement, in addition to existing `top` and `bottom`. ([#1942](https://github.com/seek-oss/braid-design-system/pull/1942))
|
|
113
|
+
|
|
114
|
+
**EXAMPLE USAGE:**
|
|
115
|
+
|
|
116
|
+
```jsx
|
|
117
|
+
<TooltipRenderer
|
|
118
|
+
placement="left"
|
|
119
|
+
...props
|
|
120
|
+
>
|
|
121
|
+
...
|
|
122
|
+
</TooltipRenderer>
|
|
123
|
+
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
### Patch Changes
|
|
127
|
+
|
|
128
|
+
- Improve components type definitions in support of Playroom props ([#1941](https://github.com/seek-oss/braid-design-system/pull/1941))
|
|
129
|
+
|
|
130
|
+
## 33.13.0
|
|
131
|
+
|
|
132
|
+
### Minor Changes
|
|
133
|
+
|
|
134
|
+
- **Autosuggest:** Add support for data attributes on individual suggestions ([#1938](https://github.com/seek-oss/braid-design-system/pull/1938))
|
|
135
|
+
|
|
136
|
+
The data attributes are applied to each rendered list item.
|
|
137
|
+
|
|
138
|
+
**EXAMPLE USAGE:**
|
|
139
|
+
|
|
140
|
+
```jsx
|
|
141
|
+
<Autosuggest
|
|
142
|
+
suggestions={[
|
|
143
|
+
{
|
|
144
|
+
text: 'Apples',
|
|
145
|
+
data: { testid: 'suggestion-apples' },
|
|
146
|
+
},
|
|
147
|
+
]}
|
|
148
|
+
/>
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
### Patch Changes
|
|
152
|
+
|
|
153
|
+
- **ButtonIcon, TooltipRenderer:** Close tooltips after clicking the trigger on desktop devices ([#1932](https://github.com/seek-oss/braid-design-system/pull/1932))
|
|
154
|
+
|
|
155
|
+
## 33.12.4
|
|
156
|
+
|
|
157
|
+
### Patch Changes
|
|
158
|
+
|
|
159
|
+
- **Autosuggest, MenuRenderer, OverflowMenu, TooltipRenderer**: Ensure `TooltipRenderer` is correctly positioned on Android devices ([#1926](https://github.com/seek-oss/braid-design-system/pull/1926))
|
|
160
|
+
|
|
161
|
+
Additionally, adjust `TooltipRenderer` positioning at screen edges, removing extra edge spacing.
|
|
162
|
+
This ensures the tooltip arrow is more closely aligned with the trigger when the trigger is near the edge of the screen.
|
|
163
|
+
|
|
164
|
+
## 33.12.3
|
|
165
|
+
|
|
166
|
+
### Patch Changes
|
|
167
|
+
|
|
168
|
+
- **TooltipRenderer:** Ensure Chinese text is not wrapped incorrectly ([#1916](https://github.com/seek-oss/braid-design-system/pull/1916))
|
|
169
|
+
|
|
170
|
+
Right aligned tooltip triggers with tooltips containing long unbroken Chinese text are no longer forcibly broken across many lines.
|
|
171
|
+
This was due to the use of `overflow-wrap: break-word;` used to break long strings of Latin characters—guarding against broken layouts.
|
|
172
|
+
|
|
173
|
+
For Chinese, Japanese and Korean (CJK) character sets, to avoid the unwanted line breaks it is recommened to apply the `word-break: keep-all;` CSS property.
|
|
174
|
+
|
|
175
|
+
See [MDN reference] for more information.
|
|
176
|
+
|
|
177
|
+
[MDN reference]: https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/word-break#keep-all
|
|
178
|
+
|
|
179
|
+
## 33.12.2
|
|
180
|
+
|
|
181
|
+
### Patch Changes
|
|
182
|
+
|
|
183
|
+
- **Autosuggest, MenuRenderer, TooltipRenderer:** Improve placement logic ([#1904](https://github.com/seek-oss/braid-design-system/pull/1904))
|
|
184
|
+
|
|
185
|
+
In `MenuRenderer`, if there is not enough space for the menu above or below the trigger, the menu will be positioned based on the `placement` prop.
|
|
186
|
+
|
|
187
|
+
- **Dialog, Drawer:** Ensure page elements are not interactive during close animation ([#1906](https://github.com/seek-oss/braid-design-system/pull/1906))
|
|
188
|
+
|
|
189
|
+
## 33.12.1
|
|
190
|
+
|
|
191
|
+
### Patch Changes
|
|
192
|
+
|
|
193
|
+
- **IconInfo:** Update illustration ([#1891](https://github.com/seek-oss/braid-design-system/pull/1891))
|
|
194
|
+
|
|
195
|
+
## 33.12.0
|
|
196
|
+
|
|
197
|
+
### Minor Changes
|
|
198
|
+
|
|
199
|
+
- **IconSocialTiktok:** Add component ([#1889](https://github.com/seek-oss/braid-design-system/pull/1889))
|
|
200
|
+
|
|
201
|
+
**EXAMPLE USAGE:**
|
|
202
|
+
|
|
203
|
+
```jsx
|
|
204
|
+
<IconSocialTiktok />
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
- **IconMicrophone:** Add component ([#1887](https://github.com/seek-oss/braid-design-system/pull/1887))
|
|
208
|
+
|
|
209
|
+
**EXAMPLE USAGE:**
|
|
210
|
+
|
|
211
|
+
```jsx
|
|
212
|
+
<IconMicrophone />
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
### Patch Changes
|
|
216
|
+
|
|
217
|
+
- **IconAttachment, IconLocation:** Update artworks to be more rounded and spacious, consistent with the latest design language ([#1887](https://github.com/seek-oss/braid-design-system/pull/1887))
|
|
218
|
+
|
|
219
|
+
## 33.11.5
|
|
220
|
+
|
|
221
|
+
### Patch Changes
|
|
222
|
+
|
|
223
|
+
- **Button, ButtonIcon, ButtonLink:** Remove use of deprecated `outline` atoms value, in favour of CSS property ([#1871](https://github.com/seek-oss/braid-design-system/pull/1871))
|
|
224
|
+
|
|
225
|
+
## 33.11.4
|
|
226
|
+
|
|
227
|
+
### Patch Changes
|
|
228
|
+
|
|
229
|
+
- **Button, ButtonIcon, ButtonLink:** Ensure active transition is correctly applied ([#1868](https://github.com/seek-oss/braid-design-system/pull/1868))
|
|
230
|
+
|
|
231
|
+
## 33.11.3
|
|
232
|
+
|
|
233
|
+
### Patch Changes
|
|
234
|
+
|
|
235
|
+
- **Button, ButtonLink:** Ensure focus ring supports `bleed` layout ([#1866](https://github.com/seek-oss/braid-design-system/pull/1866))
|
|
236
|
+
|
|
237
|
+
Fixes the focus ring layout when combined with the `bleed` prop to ensure the outline wraps the visual boundary of the button.
|
|
238
|
+
|
|
239
|
+
## 33.11.2
|
|
240
|
+
|
|
241
|
+
### Patch Changes
|
|
242
|
+
|
|
243
|
+
- **ButtonIcon:** Better match `Tooltip` text size with `size` prop ([#1864](https://github.com/seek-oss/braid-design-system/pull/1864))
|
|
244
|
+
|
|
245
|
+
When using a `small` `ButtonIcon`, the `Tooltip` text size is now set to `small`.
|
|
246
|
+
For other sizes, the text remains at the default `standard` size.
|
|
247
|
+
|
|
248
|
+
## 33.11.1
|
|
249
|
+
|
|
250
|
+
### Patch Changes
|
|
251
|
+
|
|
252
|
+
- **Actions:** Ensure full width on mobile ([#1858](https://github.com/seek-oss/braid-design-system/pull/1858))
|
|
253
|
+
|
|
254
|
+
Ensure that the children of an `Action` component are always full width on mobile, including within a centred flex container.
|
|
255
|
+
|
|
256
|
+
## 33.11.0
|
|
257
|
+
|
|
258
|
+
### Minor Changes
|
|
259
|
+
|
|
260
|
+
- **useToast**: Improve layout of toasts when multiple toasts are shown ([#1782](https://github.com/seek-oss/braid-design-system/pull/1782))
|
|
261
|
+
|
|
262
|
+
When multiple toasts are shown simultaneously, they now visually stack in a collapsed format that expands on interaction.
|
|
263
|
+
This prevents toasts from obscuring page content while providing users with an easy way to manage and navigate through the recent toast history.
|
|
264
|
+
|
|
265
|
+
### Patch Changes
|
|
266
|
+
|
|
267
|
+
- **RadioGroup:** Ensure provided `id` is assigned to `fieldset` ([#1845](https://github.com/seek-oss/braid-design-system/pull/1845))
|
|
268
|
+
|
|
269
|
+
Fixes a bug where the provided `id` was not being passed through to the `fieldset` element.
|
|
270
|
+
|
|
271
|
+
- **seekJobs, seekBusiness:** Update drop shadow palette ([#1847](https://github.com/seek-oss/braid-design-system/pull/1847))
|
|
272
|
+
|
|
273
|
+
Refine the drop shadow palette values of `small`, `medium`, and `large`.
|
|
274
|
+
The shadow values are now softer and more linear in their scale.
|
|
275
|
+
|
|
276
|
+
- **TooltipRenderer:** Optimise performance by reducing unnecessary recalculations of the trigger position ([#1833](https://github.com/seek-oss/braid-design-system/pull/1833))
|
|
277
|
+
|
|
278
|
+
- **seekJobs, seekBusiness:** Increase medium font weight ([#1843](https://github.com/seek-oss/braid-design-system/pull/1843))
|
|
279
|
+
|
|
280
|
+
The introduction of Traditional Chinese support means characters in this unicode range are rendered using the default `sans-serif` font.
|
|
281
|
+
The system fonts that handle these characters only cater for **regular** and **bold** weights, resulting in the `medium` weight of 500 falling back to 400 — resulting in loss of visual hierarchy.
|
|
282
|
+
|
|
283
|
+
By increasing the weight of `medium` to 600, it will now round up to 700 (`strong`) when the rendered font cannot satisfy `medium`.
|
|
284
|
+
|
|
285
|
+
This only affects `seekJobs` and `seekBusiness` themes rendering Traditional Chinese characters, all weights across other character sets remain unchanged.
|
|
286
|
+
|
|
287
|
+
## 33.10.2
|
|
288
|
+
|
|
289
|
+
### Patch Changes
|
|
290
|
+
|
|
291
|
+
- Expand the peer dependency range to support React 19. ([#1822](https://github.com/seek-oss/braid-design-system/pull/1822))
|
|
292
|
+
|
|
293
|
+
## 33.10.1
|
|
294
|
+
|
|
295
|
+
### Patch Changes
|
|
296
|
+
|
|
297
|
+
- **useToast:** Clean up internal refactor ([#1837](https://github.com/seek-oss/braid-design-system/pull/1837))
|
|
298
|
+
|
|
299
|
+
- **Dialog, Drawer:** Refactor layout, ensure content area is the full height ([#1834](https://github.com/seek-oss/braid-design-system/pull/1834))
|
|
300
|
+
|
|
301
|
+
This change allows you to spread content to the bottom of a `Drawer`, for example with a `vertical` direction `Spread`.
|
|
302
|
+
|
|
303
|
+
- Ensure focus rings are consistent across components ([#1828](https://github.com/seek-oss/braid-design-system/pull/1828))
|
|
304
|
+
|
|
305
|
+
Aligns a few edge cases where focus rings were not consistent due to elements or aria roles not captured by the reset.
|
|
306
|
+
|
|
307
|
+
- **BraidTestProvider:** Align mock with real IntersectionObserver API ([#1837](https://github.com/seek-oss/braid-design-system/pull/1837))
|
|
308
|
+
|
|
309
|
+
- **Table:** Ensure `alignY` prop is applied consistently across browsers ([#1832](https://github.com/seek-oss/braid-design-system/pull/1832))
|
|
310
|
+
|
|
311
|
+
Fixes an issue where setting the `alignY` prop to `top` would not apply the `vertical-align` CSS property — instead falling through to our CSS reset which sets `vertical-align: baseline` (rendering inconsistently across browsers).
|
|
312
|
+
|
|
313
|
+
## 33.10.0
|
|
314
|
+
|
|
315
|
+
### Minor Changes
|
|
316
|
+
|
|
317
|
+
- **Box, atoms**: Add `sticky` to `position`. ([#1806](https://github.com/seek-oss/braid-design-system/pull/1806))
|
|
318
|
+
|
|
319
|
+
**EXAMPLE USAGE:**
|
|
320
|
+
|
|
321
|
+
```jsx
|
|
322
|
+
<Box position="sticky" top={0} ... />
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
- **Box, atoms**: Deprecate `outline` value `none`, and `boxShadow` value `outlineFocus`. ([#1810](https://github.com/seek-oss/braid-design-system/pull/1810))
|
|
326
|
+
|
|
327
|
+
Previously it was recommended to hide an element's `outline` in favour of using `boxShadow="outlineFocus"`.
|
|
328
|
+
|
|
329
|
+
Braid now leverages the `outline` property directly, managing focus rings of interactive elements as part of its scoped CSS reset.
|
|
330
|
+
|
|
331
|
+
**MIGRATION GUIDE:**
|
|
332
|
+
|
|
333
|
+
For styling the focus ring via `Box`:
|
|
334
|
+
1. Remove usage of `outline="none"` and `boxShadow="outlineFocus"`
|
|
335
|
+
2. Refer to [`focus outlines`] for guidance on leveraging Braid's focus outline styles.
|
|
336
|
+
|
|
337
|
+
```diff
|
|
338
|
+
- <Box outline="none" className={styles.customFocusStyles} />
|
|
339
|
+
+ <Box />
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
For styling the focus outline of an element based on the focus of another element, see [`outlineStyle`].
|
|
343
|
+
|
|
344
|
+
[`focus outlines`]: https://seek-oss.github.io/braid-design-system/components/Box#focus-outlines
|
|
345
|
+
[`outlineStyle`]: https://seek-oss.github.io/braid-design-system/css/outlineStyle
|
|
346
|
+
|
|
347
|
+
- **seekBusiness:** Migrate to updated visual language ([#1819](https://github.com/seek-oss/braid-design-system/pull/1819))
|
|
348
|
+
|
|
349
|
+
Migrate `seekBusiness` theme to new visual language.
|
|
350
|
+
Adopts the `seekJobs` theme for the latest design standards, rather than the legacy `apac` theme, while retaining the `seekBusiness` brand accent colour.
|
|
351
|
+
|
|
352
|
+
### Patch Changes
|
|
353
|
+
|
|
354
|
+
- **ButtonIcon**: Ensure the focus outline is styled consistently with other components. ([#1810](https://github.com/seek-oss/braid-design-system/pull/1810))
|
|
355
|
+
|
|
356
|
+
Fix issue which caused the Braid focus outline to show along with the native browser focus outline.
|
|
357
|
+
|
|
358
|
+
- **apac:** Deprecate theme in favour of `seekJobs` theme ([#1820](https://github.com/seek-oss/braid-design-system/pull/1820))
|
|
359
|
+
|
|
360
|
+
**MIGRATION GUIDE:**
|
|
361
|
+
|
|
362
|
+
```diff
|
|
363
|
+
# App.tsx
|
|
364
|
+
- import apac from 'braid-design-system/themes/apac';
|
|
365
|
+
+ import seekJobs from 'braid-design-system/themes/seekJobs';
|
|
366
|
+
|
|
367
|
+
- <BraidProvider theme={apac} ...>
|
|
368
|
+
+ <BraidProvider theme={seekJobs} ...>
|
|
369
|
+
```
|
|
370
|
+
|
|
371
|
+
- Migrate from custom focus ring visibility to native `:focus-visible` behaviour. ([#1810](https://github.com/seek-oss/braid-design-system/pull/1810))
|
|
372
|
+
|
|
373
|
+
Previously Braid would change the presentation of focus ring outlines based on the user input, i.e. mouse or keyboard,
|
|
374
|
+
to prevent showing focus rings on click.
|
|
375
|
+
With the updated Browser Support Policy, we can now leverage the native `:focus-visible` pseudo class instead.
|
|
376
|
+
|
|
377
|
+
- **Dialog, Drawer**: Ensure the focus outline is correctly applied to the title. ([#1810](https://github.com/seek-oss/braid-design-system/pull/1810))
|
|
378
|
+
|
|
379
|
+
Fix issue where focus outline would not be long enough to wrap the entire title text in certain situations.
|
|
380
|
+
|
|
381
|
+
## 33.9.1
|
|
382
|
+
|
|
383
|
+
### Patch Changes
|
|
384
|
+
|
|
385
|
+
- **ButtonIcon, TooltipRenderer:** Remove unnecessary intermediary element around the tooltip trigger. ([#1814](https://github.com/seek-oss/braid-design-system/pull/1814))
|
|
386
|
+
|
|
387
|
+
- **BraidTestProvider:** Use stubs instead of mocks to fill missing APIs in jsdom ([#1809](https://github.com/seek-oss/braid-design-system/pull/1809))
|
|
388
|
+
|
|
389
|
+
This change allows the BraidTestProvider to be framework agnostic for tests and discourages testing the stubbed browser APIs directly.
|
|
390
|
+
|
|
391
|
+
## 33.9.0
|
|
392
|
+
|
|
393
|
+
### Minor Changes
|
|
394
|
+
|
|
7
395
|
- @braid-design-system/codemod has been moved to its own package. ([#1801](https://github.com/seek-oss/braid-design-system/pull/1801))
|
|
8
396
|
|
|
9
|
-
|
|
397
|
+
**Note: This is technically a breaking change for local migrations, but we expect minimal impact so are releasing this as a minor version change.**
|
|
398
|
+
|
|
399
|
+
The `braid-upgrade` command is now no longer part of the `braid-design-system` package. Instead, `braid-upgrade` can be run via the `@braid-design-system/codemod` package.
|
|
10
400
|
|
|
11
401
|
#### Example
|
|
12
402
|
|
|
13
403
|
```bash
|
|
14
|
-
pnpm
|
|
404
|
+
pnpm dlx @braid-design-system/codemod v31.11 "**/*.{ts,tsx}"
|
|
405
|
+
```
|
|
406
|
+
|
|
407
|
+
### Patch Changes
|
|
408
|
+
|
|
409
|
+
- **BraidTestProvider:** Provide `ResizeObserver` & `IntersectionObserver` stubs to jsdom ([#1811](https://github.com/seek-oss/braid-design-system/pull/1811))
|
|
410
|
+
|
|
411
|
+
Fixes an issue where rendering certain Braid components within a test environment could throw errors due to missing APIs in jsdom, causing tests to fail with the following error:
|
|
412
|
+
|
|
413
|
+
```
|
|
414
|
+
ReferenceError: IntersectionObserver is not defined
|
|
15
415
|
```
|
|
16
416
|
|
|
417
|
+
## 33.8.0
|
|
418
|
+
|
|
17
419
|
### Minor Changes
|
|
18
420
|
|
|
19
421
|
- **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))
|
|
@@ -53,6 +455,8 @@
|
|
|
53
455
|
|
|
54
456
|
Fixes an issue where the close button inside the `Dialog` or `Drawer` was incorrectly inside an `aria-hidden` region.
|
|
55
457
|
|
|
458
|
+
- **useToast**: Simplify internal logic, refining how the theme is applied to Toasts ([#1797](https://github.com/seek-oss/braid-design-system/pull/1797))
|
|
459
|
+
|
|
56
460
|
- **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))
|
|
57
461
|
|
|
58
462
|
## 33.7.0
|
|
@@ -929,7 +1333,6 @@ See full changelog below 👇
|
|
|
929
1333
|
- Standardise `disabled` & `critical` state across form fields ([#1564](https://github.com/seek-oss/braid-design-system/pull/1564))
|
|
930
1334
|
|
|
931
1335
|
Improves the consistency of form fields when combining both `disabled` and `critical` tone, which includes:
|
|
932
|
-
|
|
933
1336
|
- Hiding `critical` borders
|
|
934
1337
|
- Hiding `message` and not reserving space for it unless explicitly providing the `reserveMessageSpace` prop.
|
|
935
1338
|
|
|
@@ -1561,7 +1964,6 @@ See full changelog below 👇
|
|
|
1561
1964
|
Our different approach to using colour has seen links dialled back to compete less with other messaging and CTAs.
|
|
1562
1965
|
|
|
1563
1966
|
This affects the following usages across the system:
|
|
1564
|
-
|
|
1565
1967
|
- `vars.foregroundColor.link`
|
|
1566
1968
|
- `Text` (using `tone="link"`)
|
|
1567
1969
|
- `TextLink` and (`TextLinkButton`)
|
|
@@ -2252,9 +2654,8 @@ For more detail on the specific changes in this release, please read on.
|
|
|
2252
2654
|
```jsx
|
|
2253
2655
|
// playroom.config.js
|
|
2254
2656
|
module.exports = {
|
|
2255
|
-
frameComponent:
|
|
2256
|
-
'braid-design-system/playroom/FrameComponent',
|
|
2257
|
-
),
|
|
2657
|
+
frameComponent:
|
|
2658
|
+
require.resolve('braid-design-system/playroom/FrameComponent'),
|
|
2258
2659
|
components: require.resolve('braid-design-system/playroom/components'),
|
|
2259
2660
|
snippets: require.resolve('braid-design-system/playroom/snippets'),
|
|
2260
2661
|
scope: require.resolve('braid-design-system/playroom/scope'),
|
|
@@ -2373,7 +2774,6 @@ For more detail on the specific changes in this release, please read on.
|
|
|
2373
2774
|
- **Tab, Tabs:** Updated visual design ([#1180](https://github.com/seek-oss/braid-design-system/pull/1180))
|
|
2374
2775
|
|
|
2375
2776
|
The appearance of a `Tab` has been updated. Changes include:
|
|
2376
|
-
|
|
2377
2777
|
- Tab button use `regular` text weight
|
|
2378
2778
|
- Hover state of inactive tab toggles `neutral` tone instead of underline
|
|
2379
2779
|
- Active tab indicator underlines content only, without the horizontal gutter and animates between tabs
|
|
@@ -2400,9 +2800,8 @@ For more detail on the specific changes in this release, please read on.
|
|
|
2400
2800
|
```jsx
|
|
2401
2801
|
// playroom.config.js
|
|
2402
2802
|
module.exports = {
|
|
2403
|
-
frameComponent:
|
|
2404
|
-
'braid-design-system/playroom/FrameComponent.tsx',
|
|
2405
|
-
),
|
|
2803
|
+
frameComponent:
|
|
2804
|
+
require.resolve('braid-design-system/playroom/FrameComponent.tsx'),
|
|
2406
2805
|
components: require.resolve('braid-design-system/playroom/components.ts'),
|
|
2407
2806
|
snippets: require.resolve('braid-design-system/playroom/snippets.ts'),
|
|
2408
2807
|
scope: require.resolve('braid-design-system/playroom/scope.ts'),
|
|
@@ -3413,7 +3812,6 @@ For more detail on the specific changes in this release, please read on.
|
|
|
3413
3812
|
|
|
3414
3813
|
**New foregrounds**
|
|
3415
3814
|
The following foregrounds are now available on the `vars.foregroundColor` theme object:
|
|
3416
|
-
|
|
3417
3815
|
- `cautionLight`
|
|
3418
3816
|
- `infoLight`
|
|
3419
3817
|
- `linkLight`
|
|
@@ -3674,12 +4072,10 @@ For more detail on the specific changes in this release, please read on.
|
|
|
3674
4072
|
**TOKEN CHANGES**
|
|
3675
4073
|
|
|
3676
4074
|
**New**
|
|
3677
|
-
|
|
3678
4075
|
- **backgroundColor:** `surface`, `neutralSoft`
|
|
3679
4076
|
- **borderColor:** `neutral`, `neutralInverted`, `neutralLight`
|
|
3680
4077
|
|
|
3681
4078
|
**Removed**
|
|
3682
|
-
|
|
3683
4079
|
- **backgroundColor:** `card`, `formAccentDisabled`, `input`, `inputDisabled`, `selection`
|
|
3684
4080
|
- **borderColor:** `formHover`, `standard`, `standardInverted`
|
|
3685
4081
|
|
|
@@ -3773,7 +4169,6 @@ For more detail on the specific changes in this release, please read on.
|
|
|
3773
4169
|
|
|
3774
4170
|
**New backgrounds**
|
|
3775
4171
|
The following backgrounds are now available:
|
|
3776
|
-
|
|
3777
4172
|
- `neutralActive`
|
|
3778
4173
|
- `neutralHover`
|
|
3779
4174
|
- `neutralSoftActive`
|
|
@@ -3781,7 +4176,6 @@ For more detail on the specific changes in this release, please read on.
|
|
|
3781
4176
|
|
|
3782
4177
|
**New boxShadows**
|
|
3783
4178
|
The following box shadows are now available:
|
|
3784
|
-
|
|
3785
4179
|
- `borderBrandAccentLightLarge`
|
|
3786
4180
|
- `borderCriticalLightLarge`
|
|
3787
4181
|
- `borderFormAccentLight`
|
|
@@ -3791,7 +4185,6 @@ For more detail on the specific changes in this release, please read on.
|
|
|
3791
4185
|
|
|
3792
4186
|
**New boxShadows**
|
|
3793
4187
|
The following box shadows are now available:
|
|
3794
|
-
|
|
3795
4188
|
- `borderBrandAccentLightLarge`
|
|
3796
4189
|
- `borderCriticalLightLarge`
|
|
3797
4190
|
- `borderFormAccentLight`
|
|
@@ -3805,7 +4198,6 @@ For more detail on the specific changes in this release, please read on.
|
|
|
3805
4198
|
|
|
3806
4199
|
**New backgrounds**
|
|
3807
4200
|
The following backgrounds are now available on the `vars.backgroundColor` theme object:
|
|
3808
|
-
|
|
3809
4201
|
- `neutralActive`
|
|
3810
4202
|
- `neutralHover`
|
|
3811
4203
|
- `neutralSoftActive`
|
|
@@ -3813,7 +4205,6 @@ For more detail on the specific changes in this release, please read on.
|
|
|
3813
4205
|
|
|
3814
4206
|
**New borderColors**
|
|
3815
4207
|
The following border colors are now available on the `vars.borderColor` theme object:
|
|
3816
|
-
|
|
3817
4208
|
- `brandAccentLight`
|
|
3818
4209
|
- `criticalLight`
|
|
3819
4210
|
- `formAccentLight`
|
|
@@ -3901,7 +4292,6 @@ For more detail on the specific changes in this release, please read on.
|
|
|
3901
4292
|
- **Box:** Add new background and border colours ([#983](https://github.com/seek-oss/braid-design-system/pull/983))
|
|
3902
4293
|
|
|
3903
4294
|
New `background` values:
|
|
3904
|
-
|
|
3905
4295
|
- `brandAccentSoft`
|
|
3906
4296
|
- `brandAccentSoftActive`
|
|
3907
4297
|
- `brandAccentSoftHover`
|
|
@@ -3913,7 +4303,6 @@ For more detail on the specific changes in this release, please read on.
|
|
|
3913
4303
|
- `formAccentSoftHover`
|
|
3914
4304
|
|
|
3915
4305
|
New `boxShadow` values:
|
|
3916
|
-
|
|
3917
4306
|
- `borderCautionLight`
|
|
3918
4307
|
- `borderCriticalLight`
|
|
3919
4308
|
- `borderInfoLight`
|
|
@@ -3921,7 +4310,6 @@ For more detail on the specific changes in this release, please read on.
|
|
|
3921
4310
|
- `borderPromoteLight`
|
|
3922
4311
|
|
|
3923
4312
|
- **atoms:** Add new `boxShadow` values: ([#983](https://github.com/seek-oss/braid-design-system/pull/983))
|
|
3924
|
-
|
|
3925
4313
|
- `borderCautionLight`
|
|
3926
4314
|
- `borderCriticalLight`
|
|
3927
4315
|
- `borderInfoLight`
|
|
@@ -3931,7 +4319,6 @@ For more detail on the specific changes in this release, please read on.
|
|
|
3931
4319
|
- **vars:** Add new background and border colours ([#983](https://github.com/seek-oss/braid-design-system/pull/983))
|
|
3932
4320
|
|
|
3933
4321
|
New `backgroundColor` values:
|
|
3934
|
-
|
|
3935
4322
|
- `brandAccentSoft`
|
|
3936
4323
|
- `brandAccentSoftActive`
|
|
3937
4324
|
- `brandAccentSoftHover`
|
|
@@ -3943,7 +4330,6 @@ For more detail on the specific changes in this release, please read on.
|
|
|
3943
4330
|
- `formAccentSoftHover`
|
|
3944
4331
|
|
|
3945
4332
|
New `borderColor` values:
|
|
3946
|
-
|
|
3947
4333
|
- `cautionLight`
|
|
3948
4334
|
- `criticalLight`
|
|
3949
4335
|
- `infoLight`
|
|
@@ -4021,7 +4407,6 @@ For more detail on the specific changes in this release, please read on.
|
|
|
4021
4407
|
- Add `wide` breakpoint of 1200px ([#960](https://github.com/seek-oss/braid-design-system/pull/960))
|
|
4022
4408
|
|
|
4023
4409
|
This adds support for `wide` to the following touchpoints:
|
|
4024
|
-
|
|
4025
4410
|
- Responsive values, e.g.
|
|
4026
4411
|
```ts
|
|
4027
4412
|
{ mobile: 'small', wide: 'large' }
|
|
@@ -4160,7 +4545,6 @@ For more detail on the specific changes in this release, please read on.
|
|
|
4160
4545
|
- Updated minimum browser requirement to browsers that support CSS variables ([#947](https://github.com/seek-oss/braid-design-system/pull/947))
|
|
4161
4546
|
|
|
4162
4547
|
For the major browsers this includes:
|
|
4163
|
-
|
|
4164
4548
|
- Chrome 49+
|
|
4165
4549
|
- iOS 9.3+
|
|
4166
4550
|
- Safari 9.1+
|
|
@@ -4177,7 +4561,6 @@ For more detail on the specific changes in this release, please read on.
|
|
|
4177
4561
|
- Standardise breakpoints across all themes ([#947](https://github.com/seek-oss/braid-design-system/pull/947))
|
|
4178
4562
|
|
|
4179
4563
|
All themes now use the following breakpoints:
|
|
4180
|
-
|
|
4181
4564
|
- Mobile: `0px`
|
|
4182
4565
|
- Tablet: `740px`
|
|
4183
4566
|
- Desktop: `992px`
|
|
@@ -4187,16 +4570,13 @@ For more detail on the specific changes in this release, please read on.
|
|
|
4187
4570
|
This is a change for the following themes:
|
|
4188
4571
|
|
|
4189
4572
|
**jobStreet, jobStreetClassic, jobsDb, occ, wireframe**
|
|
4190
|
-
|
|
4191
4573
|
- Tablet: `768px` → `740px`
|
|
4192
4574
|
|
|
4193
4575
|
**catho**
|
|
4194
|
-
|
|
4195
4576
|
- Tablet: `600px` → `740px`
|
|
4196
4577
|
- Desktop: `1024px` → `992px`
|
|
4197
4578
|
|
|
4198
4579
|
**docs**
|
|
4199
|
-
|
|
4200
4580
|
- Tablet: `768px` → `740px`
|
|
4201
4581
|
- Desktop: `1136px` → `992px`
|
|
4202
4582
|
|
|
@@ -4400,7 +4780,6 @@ For more detail on the specific changes in this release, please read on.
|
|
|
4400
4780
|
To maintain accessibility, it is required to provide either a **aria-label** or **aria-labelledby** property, to describe the field's intent.
|
|
4401
4781
|
|
|
4402
4782
|
Given there is no visual label, the following features from a standard Checkbox cannot be supported:
|
|
4403
|
-
|
|
4404
4783
|
- description
|
|
4405
4784
|
- message
|
|
4406
4785
|
- badge
|
|
@@ -5448,13 +5827,11 @@ For more detail on the specific changes in this release, please read on.
|
|
|
5448
5827
|
The following z-index palette is now available on `Box`:
|
|
5449
5828
|
|
|
5450
5829
|
**Local stacking**
|
|
5451
|
-
|
|
5452
5830
|
- `0`
|
|
5453
5831
|
- `1`
|
|
5454
5832
|
- `2`
|
|
5455
5833
|
|
|
5456
5834
|
**Global stacking**
|
|
5457
|
-
|
|
5458
5835
|
- `"dropdownBackdrop"`
|
|
5459
5836
|
- `"dropdown"`
|
|
5460
5837
|
- `"sticky"`
|
|
@@ -5578,7 +5955,6 @@ For more detail on the specific changes in this release, please read on.
|
|
|
5578
5955
|
- Add `List` component ([#710](https://github.com/seek-oss/braid-design-system/pull/710))
|
|
5579
5956
|
|
|
5580
5957
|
`List` serves as a replacement for the `BulletList` and `Bullet` components which adds the following improvements:
|
|
5581
|
-
|
|
5582
5958
|
- Support for numbers and alpha characters as bullets
|
|
5583
5959
|
- Support for custom start positions in number/alpha lists
|
|
5584
5960
|
- Rich content support, e.g. list items with multiple paragraphs, nested lists, etc.
|
|
@@ -5643,7 +6019,6 @@ For more detail on the specific changes in this release, please read on.
|
|
|
5643
6019
|
The `_LEGACY_SPACE_` prop was provided to support consumers migrating to [`v14`](https://github.com/seek-oss/braid-design-system/releases/tag/v14.0.0) when the white space cropping and layout components were originally introduced. This has now been removed to allow us to further improve on our approach.
|
|
5644
6020
|
|
|
5645
6021
|
Migrating off this prop will require consumers to perform the following steps:
|
|
5646
|
-
|
|
5647
6022
|
- Remove the usage of `_LEGACY_SPACE_` on a component
|
|
5648
6023
|
- Conduct a visual review of the impact (component will appear closer to neighbouring elements)
|
|
5649
6024
|
- Use existing layout components, e.g. `Stack`, to define/control the reintroduction of the desired space.
|
|
@@ -5728,7 +6103,6 @@ For more detail on the specific changes in this release, please read on.
|
|
|
5728
6103
|
- **`seekBusiness` theme:** Inherit from new `apac` theme rather than the deprecated `seekAnz` theme ([#694](https://github.com/seek-oss/braid-design-system/pull/694))
|
|
5729
6104
|
|
|
5730
6105
|
Just like the migration from `seekAnz` to `apac`, the visual changes are as follows:
|
|
5731
|
-
|
|
5732
6106
|
- The body background has changed from `#eeeeee` to `#f5f6f8`.
|
|
5733
6107
|
- All grey colours now have a hint of blue.
|
|
5734
6108
|
- Buttons and form fields have decreased in height from `48px` to `44px`.
|
|
@@ -5759,7 +6133,6 @@ For more detail on the specific changes in this release, please read on.
|
|
|
5759
6133
|
This component serves as a replacement for `ToggleContent` from [SEEK Style Guide.](https://github.com/seek-oss/seek-style-guide)
|
|
5760
6134
|
|
|
5761
6135
|
**SEEK STYLE GUIDE MIGRATION GUIDE**
|
|
5762
|
-
|
|
5763
6136
|
- `ToggleContent` has been renamed to `Disclosure`.
|
|
5764
6137
|
- The `onShowMore` prop has been renamed to `onToggle`.
|
|
5765
6138
|
- The spacing around the button has changed to follow [Braid's layout guidelines.](https://seek-oss.github.io/braid-design-system/foundations/layout) Design review is recommeded.
|
|
@@ -5800,7 +6173,6 @@ For more detail on the specific changes in this release, please read on.
|
|
|
5800
6173
|
Consumers of the `seekAnz` theme are under no immediate pressure to migrate and both themes will be provided for the forseeable future. For now, this theme is aimed at those teams that are explicitly wanting to adopt newer design standards.
|
|
5801
6174
|
|
|
5802
6175
|
The visual changes to `seekAnz` are as follows:
|
|
5803
|
-
|
|
5804
6176
|
- The body background has changed from `#eeeeee` to `#f5f6f8`.
|
|
5805
6177
|
- All grey colours now have a hint of blue.
|
|
5806
6178
|
- Buttons and form fields have decreased in height from 48px to 44px.
|
|
@@ -5843,7 +6215,6 @@ For more detail on the specific changes in this release, please read on.
|
|
|
5843
6215
|
- MonthPicker: Support custom month and year labels ([#672](https://github.com/seek-oss/braid-design-system/pull/672))
|
|
5844
6216
|
|
|
5845
6217
|
To support internationalisation, you can now pass the following props to `MonthPicker`:
|
|
5846
|
-
|
|
5847
6218
|
- **monthLabel** (`string`)
|
|
5848
6219
|
- **yearLabel** (`string`)
|
|
5849
6220
|
- **monthNames** (`string[]`)
|
|
@@ -6025,7 +6396,6 @@ For more detail on the specific changes in this release, please read on.
|
|
|
6025
6396
|
- Improve field border contrast ratio ([#638](https://github.com/seek-oss/braid-design-system/pull/638))
|
|
6026
6397
|
|
|
6027
6398
|
To improve accessibility, field borders have been darkened for the following themes:
|
|
6028
|
-
|
|
6029
6399
|
- `seekAnz`
|
|
6030
6400
|
- `seekBusiness`
|
|
6031
6401
|
- `seekUnifiedBeta`
|
|
@@ -6234,7 +6604,6 @@ For more detail on the specific changes in this release, please read on.
|
|
|
6234
6604
|
The implementation of internal spacing within fields has been adjusted to better support browser extensions for password managers.
|
|
6235
6605
|
|
|
6236
6606
|
Affects the following components:
|
|
6237
|
-
|
|
6238
6607
|
- PasswordField: visibility toggle button
|
|
6239
6608
|
- TextField: clear button
|
|
6240
6609
|
- Autosuggest: clear button
|
|
@@ -6248,7 +6617,6 @@ For more detail on the specific changes in this release, please read on.
|
|
|
6248
6617
|
Field buttons, such as clear and password visibility toggle, fire on mouse down to ensure focus is retained on the relevant field. We now ensure that the button only recognises left mouse button clicks.
|
|
6249
6618
|
|
|
6250
6619
|
Affects the following components:
|
|
6251
|
-
|
|
6252
6620
|
- PasswordField: visibility toggle button
|
|
6253
6621
|
- TextField: clear button
|
|
6254
6622
|
- Autosuggest: clear button
|
|
@@ -6458,7 +6826,6 @@ For more detail on the specific changes in this release, please read on.
|
|
|
6458
6826
|
- Drop lodash usage to decrease bundle size. ([#585](https://github.com/seek-oss/braid-design-system/pull/585))
|
|
6459
6827
|
|
|
6460
6828
|
This directly affects `MonthPicker` and any components using the `data` prop:
|
|
6461
|
-
|
|
6462
6829
|
- All field components
|
|
6463
6830
|
- OverflowMenu
|
|
6464
6831
|
- MenuRenderer
|
|
@@ -6515,7 +6882,6 @@ For more detail on the specific changes in this release, please read on.
|
|
|
6515
6882
|
In order to make your custom link component available for any type of link (not just usages of `TextLink`), this release introduces a new `Link` component which renders an unstyled `a` tag by default.
|
|
6516
6883
|
|
|
6517
6884
|
**BREAKING CHANGES**
|
|
6518
|
-
|
|
6519
6885
|
- `TextLink` now requires an `href` prop. Even though this is unlikely to affect anyone (a `TextLink` without an `href` isn't terribly useful), this is still technically a breaking change.
|
|
6520
6886
|
|
|
6521
6887
|
However, if you find an instance of `TextLink` that you think _shouldn't_ have an `href`, this is a sign that it's not _actually_ a link and you should use a [`TextLinkRenderer`](https://seek-oss.github.io/braid-design-system/components/TextLinkRenderer) instead. Unfortunately, because there's no way for us to know the semantics of your usage ahead of time, we're unable to provide a migration guide, so you'll need to be mindful of how this might impact accessibility.
|
|
@@ -6642,7 +7008,6 @@ For more detail on the specific changes in this release, please read on.
|
|
|
6642
7008
|
- Add customisable `MenuRenderer` component ([#514](https://github.com/seek-oss/braid-design-system/pull/514))
|
|
6643
7009
|
|
|
6644
7010
|
**BREAKING CHANGES**
|
|
6645
|
-
|
|
6646
7011
|
- Rename `OverflowMenuItem` to `MenuItem`.
|
|
6647
7012
|
- Removed `type="link"` from `OverflowMenuItem` due to an accessibility issue with the approach (based on review of consumer usage, it did not seem to be used).
|
|
6648
7013
|
|
|
@@ -6651,7 +7016,6 @@ For more detail on the specific changes in this release, please read on.
|
|
|
6651
7016
|
**`MenuRenderer`**
|
|
6652
7017
|
|
|
6653
7018
|
Encapsulates all the behaviours of an accessible menu button, allowing consumers to define a custom `trigger` to open the menu. The trigger function receives two arguments:
|
|
6654
|
-
|
|
6655
7019
|
1. Props required for accessibility, including mouse/keyboard interactions
|
|
6656
7020
|
2. Menu state object containing the `open` state.
|
|
6657
7021
|
|
|
@@ -6712,7 +7076,6 @@ For more detail on the specific changes in this release, please read on.
|
|
|
6712
7076
|
- Only show focus rings on buttons for keyboard navigation. ([#526](https://github.com/seek-oss/braid-design-system/pull/526))
|
|
6713
7077
|
|
|
6714
7078
|
This impacts the following components:
|
|
6715
|
-
|
|
6716
7079
|
- `Button`
|
|
6717
7080
|
- `ButtonRenderer`
|
|
6718
7081
|
- `OverflowMenu`
|
|
@@ -6759,5 +7122,4 @@ For more detail on the specific changes in this release, please read on.
|
|
|
6759
7122
|
- 33139c8: Clone seekAnz theme to seekUnifiedBeta
|
|
6760
7123
|
|
|
6761
7124
|
BREAKING CHANGE
|
|
6762
|
-
|
|
6763
7125
|
- `jobsDbRebrand` theme has been removed
|