braid-design-system 31.2.0 → 31.2.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # braid-design-system
2
2
 
3
+ ## 31.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - useIcon: Return props compatible with public Box component ([#1045](https://github.com/seek-oss/braid-design-system/pull/1045))
8
+
3
9
  ## 31.2.0
4
10
 
5
11
  ### Minor Changes
@@ -91,7 +91,7 @@ Box.displayName = 'Box';
91
91
  // TODO: COLORMODE RELEASE
92
92
  // Remove PublicBox
93
93
  export type SimpleBackground = Exclude<Background, 'bodyDark' | 'surfaceDark'>;
94
- interface PublicBoxProps extends BoxProps {
94
+ export interface PublicBoxProps extends BoxProps {
95
95
  background?: SimpleBackground | 'customDark' | 'customLight';
96
96
  boxShadow?: BoxShadow;
97
97
  }
@@ -3,7 +3,7 @@ import assert from 'assert';
3
3
  import clsx from 'clsx';
4
4
 
5
5
  import { OptionalTitle } from '../../components/icons/SVGTypes';
6
- import { BoxProps } from '../../components/Box/Box';
6
+ import { PublicBoxProps } from '../../components/Box/Box';
7
7
  import { TextContext } from '../../components/Text/TextContext';
8
8
  import HeadingContext from '../../components/Heading/HeadingContext';
9
9
  import { textSize, useTextTone, UseTextProps } from '../typography';
@@ -50,7 +50,9 @@ const detaultVerticalCorrection = {
50
50
  export default (
51
51
  { size, tone, alignY, data, ...titleProps }: UseIconProps,
52
52
  { verticalCorrection = detaultVerticalCorrection }: PrivateIconProps = {},
53
- ): BoxProps => {
53
+ // TODO: COLORMODE RELEASE
54
+ // Revert to BoxProps
55
+ ): PublicBoxProps => {
54
56
  const textContext = useContext(TextContext);
55
57
  const headingContext = useContext(HeadingContext);
56
58
  const inheritedTone =
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "braid-design-system",
3
- "version": "31.2.0",
3
+ "version": "31.2.1",
4
4
  "description": "Themeable design system for the SEEK Group",
5
5
  "main": "lib/components/index.ts",
6
6
  "sideEffects": [