@box/blueprint-web 9.14.0 → 9.14.2
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.
|
@@ -12,7 +12,8 @@ const TextWithInfoBadge = props => {
|
|
|
12
12
|
id,
|
|
13
13
|
infoText,
|
|
14
14
|
infoBadgeAriaLabel,
|
|
15
|
-
variant = 'default'
|
|
15
|
+
variant = 'default',
|
|
16
|
+
tooltipPosition = 'top'
|
|
16
17
|
} = props;
|
|
17
18
|
return jsxs("div", {
|
|
18
19
|
className: clsx(styles.text, styles[variant], className),
|
|
@@ -21,6 +22,7 @@ const TextWithInfoBadge = props => {
|
|
|
21
22
|
className: styles.badgeContainer,
|
|
22
23
|
children: jsx(Tooltip, {
|
|
23
24
|
content: infoText,
|
|
25
|
+
side: tooltipPosition,
|
|
24
26
|
children: jsx(InteractiveIcon, {
|
|
25
27
|
"aria-label": infoBadgeAriaLabel,
|
|
26
28
|
className: styles.badge,
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type StyledText } from '../../utils/commonTypes';
|
|
2
|
+
import { type TooltipProps } from '../../tooltip/types';
|
|
2
3
|
export interface TextWithInfoBadgeProps {
|
|
3
4
|
/** The text to display */
|
|
4
5
|
children: StyledText;
|
|
@@ -12,4 +13,6 @@ export interface TextWithInfoBadgeProps {
|
|
|
12
13
|
infoBadgeAriaLabel?: string;
|
|
13
14
|
/** The color of the text */
|
|
14
15
|
variant?: 'default' | 'muted';
|
|
16
|
+
/** The side on which the tooltip will be presented. */
|
|
17
|
+
tooltipPosition?: TooltipProps['side'];
|
|
15
18
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/blueprint-web",
|
|
3
|
-
"version": "9.14.
|
|
3
|
+
"version": "9.14.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"publishConfig": {
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"react-stately": "^3.31.1",
|
|
63
63
|
"tsx": "^4.16.5"
|
|
64
64
|
},
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "e9d6e1eb579ae22609ab068369df8a02119f0e0c",
|
|
66
66
|
"module": "lib-esm/index.js",
|
|
67
67
|
"main": "lib-esm/index.js",
|
|
68
68
|
"exports": {
|