@box/blueprint-web 12.35.0 → 12.36.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.
package/dist/lib-esm/index.css
CHANGED
|
@@ -5186,8 +5186,16 @@ table.bp_inline_table_module_inlineTable--7cffa tr:not(:last-child) td{
|
|
|
5186
5186
|
transform:scaleX(1);
|
|
5187
5187
|
}
|
|
5188
5188
|
}
|
|
5189
|
-
.bp_navigation_menu_module_link--
|
|
5190
|
-
color:var(--text-text-on-light);
|
|
5189
|
+
.bp_navigation_menu_module_link--a2f10[data-modern=false]{
|
|
5190
|
+
--navigation-menu-link-text-color:var(--text-text-on-light);
|
|
5191
|
+
}
|
|
5192
|
+
|
|
5193
|
+
.bp_navigation_menu_module_link--a2f10[data-modern=true]{
|
|
5194
|
+
--navigation-menu-link-text-color:var(--bp-text-text-on-light);
|
|
5195
|
+
}
|
|
5196
|
+
|
|
5197
|
+
.bp_navigation_menu_module_link--a2f10.bp_navigation_menu_module_link--a2f10{
|
|
5198
|
+
color:var(--navigation-menu-link-text-color);
|
|
5191
5199
|
font-family:var(--body-default-font-family);
|
|
5192
5200
|
font-size:var(--body-default-font-size);
|
|
5193
5201
|
font-weight:var(--body-default-font-weight);
|
|
@@ -5197,16 +5205,16 @@ table.bp_inline_table_module_inlineTable--7cffa tr:not(:last-child) td{
|
|
|
5197
5205
|
text-decoration:var(--body-default-text-decoration);
|
|
5198
5206
|
text-transform:var(--body-default-text-case);
|
|
5199
5207
|
}
|
|
5200
|
-
.bp_navigation_menu_module_link--
|
|
5201
|
-
color:var(--
|
|
5208
|
+
.bp_navigation_menu_module_link--a2f10.bp_navigation_menu_module_link--a2f10:hover{
|
|
5209
|
+
color:var(--navigation-menu-link-text-color);
|
|
5202
5210
|
}
|
|
5203
|
-
.bp_navigation_menu_module_link--
|
|
5211
|
+
.bp_navigation_menu_module_link--a2f10.bp_navigation_menu_module_link--a2f10.bp_navigation_menu_module_ellipsis--a2f10{
|
|
5204
5212
|
overflow:hidden;
|
|
5205
5213
|
text-overflow:ellipsis;
|
|
5206
5214
|
white-space:nowrap;
|
|
5207
5215
|
}
|
|
5208
5216
|
|
|
5209
|
-
.bp_navigation_menu_module_navigationMenuSeparator--
|
|
5217
|
+
.bp_navigation_menu_module_navigationMenuSeparator--a2f10{
|
|
5210
5218
|
margin-block:var(--space-2);
|
|
5211
5219
|
}
|
|
5212
5220
|
.bp_page_module_page--41d33{
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
+
import { useBlueprintModernization } from '../blueprint-modernization-context/useBlueprintModernization.js';
|
|
3
4
|
import { DropdownMenu } from '../primitives/dropdown-menu/index.js';
|
|
4
5
|
|
|
5
6
|
/**
|
|
@@ -10,9 +11,13 @@ const NavigationMenuContent = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
10
11
|
children,
|
|
11
12
|
...rest
|
|
12
13
|
} = props;
|
|
14
|
+
const {
|
|
15
|
+
enableModernizedComponents
|
|
16
|
+
} = useBlueprintModernization();
|
|
13
17
|
return jsx(DropdownMenu.Content, {
|
|
14
18
|
...rest,
|
|
15
19
|
ref: forwardedRef,
|
|
20
|
+
"data-modern": enableModernizedComponents,
|
|
16
21
|
children: children
|
|
17
22
|
});
|
|
18
23
|
});
|
|
@@ -2,6 +2,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import { Link } from '../primitives/link/link.js';
|
|
5
|
+
import { useBlueprintModernization } from '../blueprint-modernization-context/useBlueprintModernization.js';
|
|
5
6
|
import styles from './navigation-menu.module.js';
|
|
6
7
|
|
|
7
8
|
/**
|
|
@@ -12,10 +13,14 @@ const NavigationMenuLink = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
12
13
|
children,
|
|
13
14
|
...rest
|
|
14
15
|
} = props;
|
|
16
|
+
const {
|
|
17
|
+
enableModernizedComponents
|
|
18
|
+
} = useBlueprintModernization();
|
|
15
19
|
return jsx(Link, {
|
|
16
20
|
...rest,
|
|
17
21
|
ref: forwardedRef,
|
|
18
22
|
className: clsx([styles.link, styles.ellipsis]),
|
|
23
|
+
"data-modern": enableModernizedComponents,
|
|
19
24
|
children: children
|
|
20
25
|
});
|
|
21
26
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../index.css';
|
|
2
|
-
var styles = {"link":"bp_navigation_menu_module_link--
|
|
2
|
+
var styles = {"link":"bp_navigation_menu_module_link--a2f10","ellipsis":"bp_navigation_menu_module_ellipsis--a2f10","navigationMenuSeparator":"bp_navigation_menu_module_navigationMenuSeparator--a2f10"};
|
|
3
3
|
|
|
4
4
|
export { styles as default };
|