braid-design-system 31.12.0 → 31.15.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/.eslintignore +1 -0
- package/.eslintrc +1 -1
- package/.husky/pre-commit +4 -0
- package/.prettierignore +1 -0
- package/CHANGELOG.md +98 -0
- package/codemod/dist/index.js +872 -2510
- package/codemod/dist/wrapper.js +253210 -239147
- package/css/vars.docs.tsx +1 -8
- package/lib/color/palette.ts +132 -228
- 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 +37 -15
- package/lib/components/OverflowMenu/OverflowMenu.docs.tsx +95 -0
- package/lib/components/RadioGroup/RadioGroup.docs.tsx +35 -0
- package/lib/components/RadioGroup/RadioGroup.screenshots.tsx +30 -0
- package/lib/components/RadioGroup/RadioGroup.tsx +2 -1
- package/lib/components/Rating/Rating.docs.tsx +26 -4
- package/lib/components/Rating/Rating.gallery.tsx +6 -2
- package/lib/components/Rating/Rating.screenshots.tsx +6 -2
- package/lib/components/Rating/Rating.snippets.tsx +8 -4
- package/lib/components/Rating/Rating.tsx +45 -13
- package/lib/components/Stepper/Step.tsx +19 -5
- package/lib/components/Stepper/Stepper.css.ts +8 -7
- package/lib/components/Stepper/Stepper.docs.tsx +25 -0
- package/lib/components/Stepper/Stepper.gallery.tsx +16 -0
- package/lib/components/Stepper/Stepper.screenshots.tsx +11 -0
- package/lib/components/Stepper/Stepper.snippets.tsx +11 -0
- package/lib/components/Stepper/Stepper.tsx +13 -2
- package/lib/components/Stepper/StepperContext.tsx +5 -0
- package/lib/components/icons/IconArrow/IconArrow.css.ts +21 -0
- package/lib/components/icons/IconArrow/IconArrow.docs.tsx +85 -0
- package/lib/components/icons/IconArrow/IconArrow.tsx +29 -0
- package/lib/components/icons/IconArrow/IconArrowSvg.tsx +19 -0
- package/lib/components/icons/IconCaution/IconCautionSvg.tsx +2 -2
- package/lib/components/icons/IconDesktop/IconDesktopSvg.tsx +1 -1
- package/lib/components/icons/IconDocumentBroken/IconDocumentBrokenSvg.tsx +2 -2
- package/lib/components/icons/IconFlag/IconFlagSvg.tsx +1 -1
- package/lib/components/icons/IconLanguage/IconLanguageSvg.tsx +1 -1
- package/lib/components/icons/IconLink/IconLinkSvg.tsx +2 -2
- package/lib/components/icons/IconLinkBroken/IconLinkBrokenSvg.tsx +2 -2
- package/lib/components/icons/IconMobile/IconMobileSvg.tsx +2 -2
- package/lib/components/icons/IconNotification/IconNotificationSvg.tsx +1 -1
- package/lib/components/icons/IconPeople/IconPeopleSvg.tsx +2 -2
- package/lib/components/icons/IconPersonAdd/IconPersonAddSvg.tsx +1 -1
- package/lib/components/icons/IconPhone/IconPhoneSvg.tsx +1 -1
- package/lib/components/icons/IconPlatformAndroid/IconPlatformAndroid.docs.tsx +20 -0
- package/lib/components/icons/IconPlatformAndroid/IconPlatformAndroid.tsx +12 -0
- package/lib/components/icons/IconPlatformAndroid/IconPlatformAndroidSvg.tsx +23 -0
- package/lib/components/icons/IconPlatformApple/IconPlatformApple.docs.tsx +20 -0
- package/lib/components/icons/IconPlatformApple/IconPlatformApple.tsx +12 -0
- package/lib/components/icons/IconPlatformApple/IconPlatformAppleSvg.tsx +23 -0
- package/lib/components/icons/IconProfile/IconProfileSvg.tsx +1 -1
- package/lib/components/icons/IconRefresh/IconRefreshSvg.tsx +1 -1
- package/lib/components/icons/IconSocialFacebook/IconSocialFacebookSvg.tsx +1 -1
- package/lib/components/icons/IconSocialGitHub/IconSocialGitHubSvg.tsx +1 -1
- package/lib/components/icons/IconSocialInstagram/IconSocialInstagramSvg.tsx +2 -2
- package/lib/components/icons/IconSocialLinkedIn/IconSocialLinkedInSvg.tsx +1 -1
- package/lib/components/icons/IconSocialMedium/IconSocialMediumSvg.tsx +1 -1
- package/lib/components/icons/IconSocialYouTube/IconSocialYouTube.docs.tsx +20 -0
- package/lib/components/icons/IconSocialYouTube/IconSocialYouTube.tsx +12 -0
- package/lib/components/icons/IconSocialYouTube/IconSocialYouTubeSvg.tsx +23 -0
- package/lib/components/icons/IconStar/IconStarHalfSvg.tsx +1 -1
- package/lib/components/icons/IconStatistics/IconStatisticsSvg.tsx +2 -2
- package/lib/components/icons/IconThumb/IconThumbSvg.tsx +1 -1
- package/lib/components/icons/IconTip/IconTipSvg.tsx +2 -2
- package/lib/components/icons/IconVisibility/IconVisibilityHiddenSvg.tsx +1 -1
- package/lib/components/icons/IconVisibility/IconVisibilitySvg.tsx +1 -1
- package/lib/components/icons/IconWorkExperience/IconWorkExperienceSvg.tsx +1 -1
- package/lib/components/icons/IconZoomIn/IconZoomInSvg.tsx +2 -2
- package/lib/components/icons/IconZoomOut/IconZoomOutSvg.tsx +2 -2
- package/lib/components/icons/index.ts +4 -0
- package/lib/components/useToast/useToast.docs.tsx +1 -3
- package/lib/themes/baseTokens/apac.ts +8 -8
- package/lib/themes/docs/tokens.ts +6 -6
- package/package.json +52 -54
- package/tsconfig.json +1 -1
package/.eslintignore
CHANGED
package/.eslintrc
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/** THIS FILE IS GENERATED BY SKU, MANUAL CHANGES WILL BE DISCARDED **/
|
|
2
2
|
{
|
|
3
|
-
"extends": "/home/runner/work/braid-design-system/braid-design-system/node_modules/.pnpm/eslint-config-seek@7.0.
|
|
3
|
+
"extends": "/home/runner/work/braid-design-system/braid-design-system/node_modules/.pnpm/eslint-config-seek@7.0.9_30f12e848789c98e9a2a25c6000f3e9e/node_modules/eslint-config-seek/.eslintrc.js"
|
|
4
4
|
}
|
package/.prettierignore
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,103 @@
|
|
|
1
1
|
# braid-design-system
|
|
2
2
|
|
|
3
|
+
## 31.15.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- **IconArrow:** Add component ([#1130](https://github.com/seek-oss/braid-design-system/pull/1130))
|
|
8
|
+
|
|
9
|
+
Add new `IconArrow` component. The orientation of the arrow can be controlled using the `direction` prop.
|
|
10
|
+
|
|
11
|
+
**EXAMPLE USAGE:**
|
|
12
|
+
|
|
13
|
+
```jsx
|
|
14
|
+
<IconArrow direction="left" />
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
- **Stepper:** Add align prop ([#1126](https://github.com/seek-oss/braid-design-system/pull/1126))
|
|
18
|
+
|
|
19
|
+
Provide the `align` prop which now includes support for `left` alignment.
|
|
20
|
+
|
|
21
|
+
**EXAMPLE USAGE:**
|
|
22
|
+
|
|
23
|
+
```jsx
|
|
24
|
+
<Stepper align="left">...</Stepper>
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- **RadioGroup:** Remove surrounding white space with no visual label ([#1129](https://github.com/seek-oss/braid-design-system/pull/1129))
|
|
30
|
+
|
|
31
|
+
Removes additional white space applied above the `RadioItem`s when no visible `label` is provided, i.e. when labelling via `aria-label` or `aria-labelledby`.
|
|
32
|
+
|
|
33
|
+
- **Stepper:** Fix clipping of step name in Safari ([#1126](https://github.com/seek-oss/braid-design-system/pull/1126))
|
|
34
|
+
|
|
35
|
+
Fixes issue where the descenders in Step labels were being clipped only in Safari.
|
|
36
|
+
|
|
37
|
+
## 31.14.0
|
|
38
|
+
|
|
39
|
+
### Minor Changes
|
|
40
|
+
|
|
41
|
+
- **Rating:** Add `variant` prop and deprecate `showTextRating` ([#1123](https://github.com/seek-oss/braid-design-system/pull/1123))
|
|
42
|
+
|
|
43
|
+
Provide the `variant` prop to allow customising the appearance. This supports the new `minimal` appearance, which presents a single star alongside the text rating.
|
|
44
|
+
|
|
45
|
+
Also adding the `starsOnly` variant as a replacement for the now deprecated `showTextRating={false}`.
|
|
46
|
+
|
|
47
|
+
**EXAMPLE USAGE:**
|
|
48
|
+
|
|
49
|
+
```jsx
|
|
50
|
+
<Rating rating={3.7} variant="minimal" />
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
**MIGRATION GUIDE:**
|
|
54
|
+
|
|
55
|
+
The `showTextRating` prop is now deprecated. If you were using this previously, please migrate to the new `variant` prop using `starsOnly`.
|
|
56
|
+
|
|
57
|
+
```diff
|
|
58
|
+
<Rating
|
|
59
|
+
rating={3.7}
|
|
60
|
+
- showTextRating={false}
|
|
61
|
+
+ variant="starsOnly"
|
|
62
|
+
/>
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
- **IconPlatformAndroid, IconPlatformApple, IconSocialYouTube:** Add new icons ([#1121](https://github.com/seek-oss/braid-design-system/pull/1121))
|
|
66
|
+
|
|
67
|
+
Add icons for the Apple and Android mobile platforms as well as YouTube
|
|
68
|
+
|
|
69
|
+
**EXAMPLE USAGE:**
|
|
70
|
+
|
|
71
|
+
```jsx
|
|
72
|
+
<IconPlatformAndroid />
|
|
73
|
+
<IconPlatformApple />
|
|
74
|
+
<IconSocialYouTube />
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### Patch Changes
|
|
78
|
+
|
|
79
|
+
- **`apac` and `seekBusiness` themes:** Update colour palette ([#1104](https://github.com/seek-oss/braid-design-system/pull/1104))
|
|
80
|
+
|
|
81
|
+
The colours used in these themes have been updated to the latest design standards as they were subtly off due to coming from an incorrect source.
|
|
82
|
+
|
|
83
|
+
## 31.13.0
|
|
84
|
+
|
|
85
|
+
### Minor Changes
|
|
86
|
+
|
|
87
|
+
- **MenuRenderer, OverflowMenu:** Provide context data to onClose ([#1115](https://github.com/seek-oss/braid-design-system/pull/1115))
|
|
88
|
+
|
|
89
|
+
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.
|
|
90
|
+
|
|
91
|
+
**EXAMPLE USAGE:**
|
|
92
|
+
|
|
93
|
+
```jsx
|
|
94
|
+
<MenuRenderer
|
|
95
|
+
onClose={closeReason => {
|
|
96
|
+
// ...
|
|
97
|
+
}}
|
|
98
|
+
/>
|
|
99
|
+
```
|
|
100
|
+
|
|
3
101
|
## 31.12.0
|
|
4
102
|
|
|
5
103
|
### Minor Changes
|