@box/blueprint-web 12.34.0 → 12.35.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.
|
@@ -9,6 +9,8 @@ export interface InlineNoticeProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
9
9
|
children: ReactNode;
|
|
10
10
|
/** Optional bold title. */
|
|
11
11
|
title?: string;
|
|
12
|
+
/** Optional custom icon. When provided, overrides the default variant icon. */
|
|
13
|
+
icon?: React.FunctionComponent<React.PropsWithChildren<React.SVGProps<SVGSVGElement>>>;
|
|
12
14
|
}
|
|
13
15
|
/**
|
|
14
16
|
* A component used to highlight some portion of the text.
|
|
@@ -39,9 +39,10 @@ function InlineNotice(props) {
|
|
|
39
39
|
title,
|
|
40
40
|
children,
|
|
41
41
|
variantIconAriaLabel,
|
|
42
|
+
icon,
|
|
42
43
|
...rest
|
|
43
44
|
} = props;
|
|
44
|
-
const iconComponent = useMemo(() => getInlineNoticeIcon(variant), [variant]);
|
|
45
|
+
const iconComponent = useMemo(() => icon ?? getInlineNoticeIcon(variant), [icon, variant]);
|
|
45
46
|
return jsx(BaseInlineNotice, {
|
|
46
47
|
...rest,
|
|
47
48
|
backgroundColor: getBackgroundColorByVariant(variant),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/blueprint-web",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.35.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"publishConfig": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@ariakit/react": "0.4.15",
|
|
49
49
|
"@ariakit/react-core": "0.4.15",
|
|
50
|
-
"@box/blueprint-web-assets": "^4.
|
|
50
|
+
"@box/blueprint-web-assets": "^4.60.0",
|
|
51
51
|
"@internationalized/date": "^3.7.0",
|
|
52
52
|
"@radix-ui/react-accordion": "1.1.2",
|
|
53
53
|
"@radix-ui/react-checkbox": "1.0.4",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"type-fest": "^3.2.0"
|
|
78
78
|
},
|
|
79
79
|
"devDependencies": {
|
|
80
|
-
"@box/storybook-utils": "^0.13.
|
|
80
|
+
"@box/storybook-utils": "^0.13.14",
|
|
81
81
|
"@types/react": "^18.0.0",
|
|
82
82
|
"@types/react-dom": "^18.0.0",
|
|
83
83
|
"react": "^18.3.0",
|