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 +6 -0
- package/lib/components/Box/Box.tsx +1 -1
- package/lib/hooks/useIcon/index.ts +4 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -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 {
|
|
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
|
-
|
|
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 =
|