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.
Files changed (81) hide show
  1. package/.eslintignore +1 -0
  2. package/.eslintrc +1 -1
  3. package/.husky/pre-commit +4 -0
  4. package/.prettierignore +1 -0
  5. package/CHANGELOG.md +98 -0
  6. package/codemod/dist/index.js +872 -2510
  7. package/codemod/dist/wrapper.js +253210 -239147
  8. package/css/vars.docs.tsx +1 -8
  9. package/lib/color/palette.ts +132 -228
  10. package/lib/components/MenuItem/MenuItem.tsx +3 -1
  11. package/lib/components/MenuItem/MenuItemLink.tsx +2 -0
  12. package/lib/components/MenuItem/useMenuItem.tsx +6 -3
  13. package/lib/components/MenuItemCheckbox/MenuItemCheckbox.tsx +3 -1
  14. package/lib/components/MenuRenderer/MenuRenderer.actions.ts +18 -3
  15. package/lib/components/MenuRenderer/MenuRenderer.docs.tsx +105 -0
  16. package/lib/components/MenuRenderer/MenuRenderer.tsx +44 -10
  17. package/lib/components/MenuRenderer/testHelper.tsx +37 -15
  18. package/lib/components/OverflowMenu/OverflowMenu.docs.tsx +95 -0
  19. package/lib/components/RadioGroup/RadioGroup.docs.tsx +35 -0
  20. package/lib/components/RadioGroup/RadioGroup.screenshots.tsx +30 -0
  21. package/lib/components/RadioGroup/RadioGroup.tsx +2 -1
  22. package/lib/components/Rating/Rating.docs.tsx +26 -4
  23. package/lib/components/Rating/Rating.gallery.tsx +6 -2
  24. package/lib/components/Rating/Rating.screenshots.tsx +6 -2
  25. package/lib/components/Rating/Rating.snippets.tsx +8 -4
  26. package/lib/components/Rating/Rating.tsx +45 -13
  27. package/lib/components/Stepper/Step.tsx +19 -5
  28. package/lib/components/Stepper/Stepper.css.ts +8 -7
  29. package/lib/components/Stepper/Stepper.docs.tsx +25 -0
  30. package/lib/components/Stepper/Stepper.gallery.tsx +16 -0
  31. package/lib/components/Stepper/Stepper.screenshots.tsx +11 -0
  32. package/lib/components/Stepper/Stepper.snippets.tsx +11 -0
  33. package/lib/components/Stepper/Stepper.tsx +13 -2
  34. package/lib/components/Stepper/StepperContext.tsx +5 -0
  35. package/lib/components/icons/IconArrow/IconArrow.css.ts +21 -0
  36. package/lib/components/icons/IconArrow/IconArrow.docs.tsx +85 -0
  37. package/lib/components/icons/IconArrow/IconArrow.tsx +29 -0
  38. package/lib/components/icons/IconArrow/IconArrowSvg.tsx +19 -0
  39. package/lib/components/icons/IconCaution/IconCautionSvg.tsx +2 -2
  40. package/lib/components/icons/IconDesktop/IconDesktopSvg.tsx +1 -1
  41. package/lib/components/icons/IconDocumentBroken/IconDocumentBrokenSvg.tsx +2 -2
  42. package/lib/components/icons/IconFlag/IconFlagSvg.tsx +1 -1
  43. package/lib/components/icons/IconLanguage/IconLanguageSvg.tsx +1 -1
  44. package/lib/components/icons/IconLink/IconLinkSvg.tsx +2 -2
  45. package/lib/components/icons/IconLinkBroken/IconLinkBrokenSvg.tsx +2 -2
  46. package/lib/components/icons/IconMobile/IconMobileSvg.tsx +2 -2
  47. package/lib/components/icons/IconNotification/IconNotificationSvg.tsx +1 -1
  48. package/lib/components/icons/IconPeople/IconPeopleSvg.tsx +2 -2
  49. package/lib/components/icons/IconPersonAdd/IconPersonAddSvg.tsx +1 -1
  50. package/lib/components/icons/IconPhone/IconPhoneSvg.tsx +1 -1
  51. package/lib/components/icons/IconPlatformAndroid/IconPlatformAndroid.docs.tsx +20 -0
  52. package/lib/components/icons/IconPlatformAndroid/IconPlatformAndroid.tsx +12 -0
  53. package/lib/components/icons/IconPlatformAndroid/IconPlatformAndroidSvg.tsx +23 -0
  54. package/lib/components/icons/IconPlatformApple/IconPlatformApple.docs.tsx +20 -0
  55. package/lib/components/icons/IconPlatformApple/IconPlatformApple.tsx +12 -0
  56. package/lib/components/icons/IconPlatformApple/IconPlatformAppleSvg.tsx +23 -0
  57. package/lib/components/icons/IconProfile/IconProfileSvg.tsx +1 -1
  58. package/lib/components/icons/IconRefresh/IconRefreshSvg.tsx +1 -1
  59. package/lib/components/icons/IconSocialFacebook/IconSocialFacebookSvg.tsx +1 -1
  60. package/lib/components/icons/IconSocialGitHub/IconSocialGitHubSvg.tsx +1 -1
  61. package/lib/components/icons/IconSocialInstagram/IconSocialInstagramSvg.tsx +2 -2
  62. package/lib/components/icons/IconSocialLinkedIn/IconSocialLinkedInSvg.tsx +1 -1
  63. package/lib/components/icons/IconSocialMedium/IconSocialMediumSvg.tsx +1 -1
  64. package/lib/components/icons/IconSocialYouTube/IconSocialYouTube.docs.tsx +20 -0
  65. package/lib/components/icons/IconSocialYouTube/IconSocialYouTube.tsx +12 -0
  66. package/lib/components/icons/IconSocialYouTube/IconSocialYouTubeSvg.tsx +23 -0
  67. package/lib/components/icons/IconStar/IconStarHalfSvg.tsx +1 -1
  68. package/lib/components/icons/IconStatistics/IconStatisticsSvg.tsx +2 -2
  69. package/lib/components/icons/IconThumb/IconThumbSvg.tsx +1 -1
  70. package/lib/components/icons/IconTip/IconTipSvg.tsx +2 -2
  71. package/lib/components/icons/IconVisibility/IconVisibilityHiddenSvg.tsx +1 -1
  72. package/lib/components/icons/IconVisibility/IconVisibilitySvg.tsx +1 -1
  73. package/lib/components/icons/IconWorkExperience/IconWorkExperienceSvg.tsx +1 -1
  74. package/lib/components/icons/IconZoomIn/IconZoomInSvg.tsx +2 -2
  75. package/lib/components/icons/IconZoomOut/IconZoomOutSvg.tsx +2 -2
  76. package/lib/components/icons/index.ts +4 -0
  77. package/lib/components/useToast/useToast.docs.tsx +1 -3
  78. package/lib/themes/baseTokens/apac.ts +8 -8
  79. package/lib/themes/docs/tokens.ts +6 -6
  80. package/package.json +52 -54
  81. package/tsconfig.json +1 -1
package/.eslintignore CHANGED
@@ -5,4 +5,5 @@ dist-storybook/
5
5
  report/
6
6
  site/dist/
7
7
  # end managed by sku
8
+
8
9
  codemod/dist
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.8_eslint@7.30.0+typescript@4.4.2/node_modules/eslint-config-seek/.eslintrc.js"
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
  }
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env sh
2
+ . "$(dirname -- "$0")/_/husky.sh"
3
+
4
+ SKU_TELEMETRY=false pnpm exec sku pre-commit
package/.prettierignore CHANGED
@@ -5,6 +5,7 @@ dist-storybook/
5
5
  report/
6
6
  site/dist/
7
7
  # end managed by sku
8
+
8
9
  CHANGELOG.md
9
10
  .changeset/*.md
10
11
  componentUpdates.json
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