@box/blueprint-web 13.8.0 → 13.8.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.
|
@@ -13,7 +13,6 @@ import { PageSubNavigation } from './page-subnavigation.js';
|
|
|
13
13
|
import styles from './page.module.js';
|
|
14
14
|
|
|
15
15
|
const PageRoot = /*#__PURE__*/forwardRef(({
|
|
16
|
-
onToggleNavigationExpanded,
|
|
17
16
|
defaultNavigationExpanded,
|
|
18
17
|
children,
|
|
19
18
|
...rest
|
|
@@ -23,7 +22,6 @@ const PageRoot = /*#__PURE__*/forwardRef(({
|
|
|
23
22
|
...rest,
|
|
24
23
|
ref: forwardedRef,
|
|
25
24
|
defaultNavigationExpanded: defaultNavigationExpanded,
|
|
26
|
-
onToggleNavigationExpanded: onToggleNavigationExpanded,
|
|
27
25
|
children: children
|
|
28
26
|
})
|
|
29
27
|
});
|
|
@@ -11,10 +11,6 @@ export interface PageLayoutProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
11
11
|
* @default true
|
|
12
12
|
*/
|
|
13
13
|
defaultMainContentSidebarVisible?: boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Callback called when the navigation is toggled
|
|
16
|
-
*/
|
|
17
|
-
onToggleNavigationExpanded?: (nextState: boolean) => void;
|
|
18
14
|
}
|
|
19
15
|
export type PageGlobalHeaderProps = React.HTMLAttributes<HTMLDivElement>;
|
|
20
16
|
export type PagePageHeaderProps = Omit<PageHeaderProps<'div'>, 'variant' | 'sticky' | 'as'>;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { Fragment } from 'react';
|
|
3
2
|
import { Tooltip } from '../tooltip/tooltip.js';
|
|
4
3
|
import { useIsEllipsized } from './useIsEllipsized.js';
|
|
5
4
|
|
|
5
|
+
const PassthroughTooltipWrapper = ({
|
|
6
|
+
children
|
|
7
|
+
}) => children;
|
|
8
|
+
PassthroughTooltipWrapper.displayName = 'PassthroughTooltipWrapper';
|
|
6
9
|
const useFullTextTooltip = ({
|
|
7
10
|
ref,
|
|
8
11
|
children,
|
|
@@ -14,8 +17,7 @@ const useFullTextTooltip = ({
|
|
|
14
17
|
const Wrapper = shouldWrapInTooltip ? props => {
|
|
15
18
|
const finalContent = props.content ?? textValue ?? children;
|
|
16
19
|
if (!finalContent) {
|
|
17
|
-
|
|
18
|
-
return jsx(Fragment, {
|
|
20
|
+
return jsx(PassthroughTooltipWrapper, {
|
|
19
21
|
...props
|
|
20
22
|
});
|
|
21
23
|
}
|
|
@@ -24,7 +26,7 @@ const useFullTextTooltip = ({
|
|
|
24
26
|
content: finalContent,
|
|
25
27
|
variant: "standard"
|
|
26
28
|
});
|
|
27
|
-
} :
|
|
29
|
+
} : PassthroughTooltipWrapper;
|
|
28
30
|
return {
|
|
29
31
|
Wrapper,
|
|
30
32
|
wrapperProps: {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/blueprint-web",
|
|
3
|
-
"version": "13.8.
|
|
3
|
+
"version": "13.8.2",
|
|
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.109.1",
|
|
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.16.
|
|
80
|
+
"@box/storybook-utils": "^0.16.81",
|
|
81
81
|
"@figma/code-connect": "1.3.12",
|
|
82
82
|
"@types/react": "^18.0.0",
|
|
83
83
|
"@types/react-dom": "^18.0.0",
|