@box/blueprint-web 17.12.3 → 17.13.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/dist/lib-esm/components.css +349 -693
- package/dist/lib-esm/date-picker/date-picker.js +23 -5
- package/dist/lib-esm/index.css +349 -693
- package/dist/lib-esm/navigation-menu/navigation-menu-content.js +0 -1
- package/dist/lib-esm/navigation-menu/navigation-menu-link.js +0 -1
- package/dist/lib-esm/navigation-menu/navigation-menu.module.js +1 -1
- package/dist/lib-esm/primitives/context-menu/context-menu-item.js +1 -2
- package/dist/lib-esm/primitives/context-menu/context-menu-menu-content.js +0 -2
- package/dist/lib-esm/primitives/context-menu/context-menu-menu-header.js +0 -1
- package/dist/lib-esm/primitives/context-menu/context-menu-sub-menu-content.js +0 -2
- package/dist/lib-esm/primitives/context-menu/context-menu.module.js +1 -1
- package/dist/lib-esm/primitives/dropdown-menu/dropdown-menu-checkbox-item.js +5 -9
- package/dist/lib-esm/primitives/dropdown-menu/dropdown-menu-content.js +0 -2
- package/dist/lib-esm/primitives/dropdown-menu/dropdown-menu-header.js +2 -6
- package/dist/lib-esm/primitives/dropdown-menu/dropdown-menu-item.js +2 -2
- package/dist/lib-esm/primitives/dropdown-menu/dropdown-menu-radio-select-item.js +5 -9
- package/dist/lib-esm/primitives/dropdown-menu/dropdown-menu-sub-menu-content.js +0 -2
- package/dist/lib-esm/primitives/dropdown-menu/dropdown-menu.module.js +1 -1
- package/dist/lib-esm/primitives/menu-combobox/menu-combobox-content.js +0 -1
- package/dist/lib-esm/primitives/menu-combobox/menu-combobox-empty.js +1 -1
- package/dist/lib-esm/primitives/menu-combobox/menu-combobox-header.js +1 -3
- package/dist/lib-esm/primitives/menu-combobox/menu-combobox-search.js +2 -4
- package/dist/lib-esm/primitives/menu-combobox/menu-combobox.module.js +1 -1
- package/dist/lib-esm/toolbar/toolbar-button.js +0 -1
- package/dist/lib-esm/toolbar/toolbar-dropdown-indicator.js +2 -4
- package/dist/lib-esm/toolbar/toolbar-input.js +0 -1
- package/dist/lib-esm/toolbar/toolbar-link.js +0 -1
- package/dist/lib-esm/toolbar/toolbar-root.js +1 -6
- package/dist/lib-esm/toolbar/toolbar-text-toggle-item.js +0 -1
- package/dist/lib-esm/toolbar/toolbar-toggle-group.js +0 -1
- package/dist/lib-esm/toolbar/toolbar-toggle-item.js +0 -1
- package/dist/lib-esm/toolbar/toolbar.module.js +1 -1
- package/dist/lib-esm/util-components/menu-item-sections/menu-item-sections.js +0 -2
- package/dist/lib-esm/util-components/menu-item-sections/menu-item-sections.module.js +1 -1
- package/package.json +3 -3
|
@@ -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--83055","ellipsis":"bp_navigation_menu_module_ellipsis--83055","navigationMenuSeparator":"bp_navigation_menu_module_navigationMenuSeparator--83055"};
|
|
3
3
|
|
|
4
4
|
export { styles as default };
|
|
@@ -42,13 +42,12 @@ const ContextMenuItemStartElement = /*#__PURE__*/forwardRef(({
|
|
|
42
42
|
icon,
|
|
43
43
|
...rest
|
|
44
44
|
}, ref) => {
|
|
45
|
-
const iconColor = bpIconIconOnLightSecondary ;
|
|
46
45
|
return jsxs("div", {
|
|
47
46
|
...rest,
|
|
48
47
|
ref: ref,
|
|
49
48
|
className: clsx(styles.startElement, className),
|
|
50
49
|
children: [icon && /*#__PURE__*/createElement(icon, {
|
|
51
|
-
color:
|
|
50
|
+
color: bpIconIconOnLightSecondary,
|
|
52
51
|
height: Size4,
|
|
53
52
|
width: Size4,
|
|
54
53
|
role: 'presentation'
|
|
@@ -58,7 +58,6 @@ const ContextMenuMenuContent = /*#__PURE__*/forwardRef((props, forwardedRef) =>
|
|
|
58
58
|
ref: ref,
|
|
59
59
|
className: clsx(styles.menuBlock, className),
|
|
60
60
|
"data-menu-fullscreen": true,
|
|
61
|
-
"data-modern": 'true' ,
|
|
62
61
|
children: [Header, jsx("div", {
|
|
63
62
|
className: styles.fullScreenContent,
|
|
64
63
|
children: OtherChildren
|
|
@@ -72,7 +71,6 @@ const ContextMenuMenuContent = /*#__PURE__*/forwardRef((props, forwardedRef) =>
|
|
|
72
71
|
...rest,
|
|
73
72
|
ref: ref,
|
|
74
73
|
className: clsx(styles.menuBlock, className),
|
|
75
|
-
"data-modern": 'true' ,
|
|
76
74
|
"data-bp-animated": isAnimationEnabled ? 'true' : 'false',
|
|
77
75
|
children: children
|
|
78
76
|
})
|
|
@@ -47,7 +47,6 @@ const ContextMenuSubMenuContent = /*#__PURE__*/forwardRef((props, forwardedRef)
|
|
|
47
47
|
alignOffset: alignOffsetPx,
|
|
48
48
|
className: clsx(styles.menuBlock, className),
|
|
49
49
|
"data-menu-fullscreen": true,
|
|
50
|
-
"data-modern": 'true' ,
|
|
51
50
|
// Prevents submenu from closing, when detects focus outside submenu in fullscreen mode,
|
|
52
51
|
// while mouse is moving over submenu.
|
|
53
52
|
onFocusOutside: preventDefault,
|
|
@@ -66,7 +65,6 @@ const ContextMenuSubMenuContent = /*#__PURE__*/forwardRef((props, forwardedRef)
|
|
|
66
65
|
ref: ref,
|
|
67
66
|
alignOffset: alignOffsetPx,
|
|
68
67
|
className: clsx(styles.menuBlock, className),
|
|
69
|
-
"data-modern": 'true' ,
|
|
70
68
|
"data-bp-animated": isAnimationEnabled ? 'true' : 'false',
|
|
71
69
|
sideOffset: sideOffsetPx,
|
|
72
70
|
children: children
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../../index.css';
|
|
2
|
-
var styles = {"menuBlock":"bp_context_menu_module_menuBlock--
|
|
2
|
+
var styles = {"menuBlock":"bp_context_menu_module_menuBlock--24e5e","fullScreenContent":"bp_context_menu_module_fullScreenContent--24e5e","menuItemsSeparator":"bp_context_menu_module_menuItemsSeparator--24e5e","menuItem":"bp_context_menu_module_menuItem--24e5e","startElement":"bp_context_menu_module_startElement--24e5e","endElement":"bp_context_menu_module_endElement--24e5e","menuHeader":"bp_context_menu_module_menuHeader--24e5e","headerTextContent":"bp_context_menu_module_headerTextContent--24e5e","submenuCloseButton":"bp_context_menu_module_submenuCloseButton--24e5e","menuCloseButton":"bp_context_menu_module_menuCloseButton--24e5e","ellipsis":"bp_context_menu_module_ellipsis--24e5e"};
|
|
3
3
|
|
|
4
4
|
export { styles as default };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import '@box/blueprint-web-assets/icons/Fill';
|
|
3
2
|
import { Checkmark } from '@box/blueprint-web-assets/icons/Medium';
|
|
4
|
-
import {
|
|
3
|
+
import { bpSize050, bpIconIconOnLight } from '@box/blueprint-web-assets/tokens/tokens';
|
|
5
4
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
6
5
|
import clsx from 'clsx';
|
|
7
6
|
import { forwardRef, useCallback } from 'react';
|
|
@@ -31,9 +30,6 @@ const DropdownMenuCheckboxItem = /*#__PURE__*/forwardRef((props, forwardedRef) =
|
|
|
31
30
|
} = useBlueprintConfiguration();
|
|
32
31
|
const isAnimationEnabled = componentsWithAnimationEnabled.includes('DropdownMenuItem');
|
|
33
32
|
const isSizeSmall = internalSize === 'small';
|
|
34
|
-
const checkmarkSize = Size5 ;
|
|
35
|
-
const Checkmark$1 = Checkmark ;
|
|
36
|
-
const checkmarkColor = bpIconIconOnLight ;
|
|
37
33
|
return jsxs(DropdownMenuPrimitive.CheckboxItem, {
|
|
38
34
|
...rest,
|
|
39
35
|
ref: forwardedRef,
|
|
@@ -51,11 +47,11 @@ const DropdownMenuCheckboxItem = /*#__PURE__*/forwardRef((props, forwardedRef) =
|
|
|
51
47
|
className: clsx(styles.checkmark, {
|
|
52
48
|
[styles.mediumSpacing]: !isSizeSmall
|
|
53
49
|
}),
|
|
54
|
-
children: jsx(Checkmark
|
|
55
|
-
color:
|
|
56
|
-
height:
|
|
50
|
+
children: jsx(Checkmark, {
|
|
51
|
+
color: bpIconIconOnLight,
|
|
52
|
+
height: bpSize050,
|
|
57
53
|
role: "presentation",
|
|
58
|
-
width:
|
|
54
|
+
width: bpSize050
|
|
59
55
|
})
|
|
60
56
|
})]
|
|
61
57
|
});
|
|
@@ -65,7 +65,6 @@ const DropdownMenuContent = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
65
65
|
ref: ref,
|
|
66
66
|
className: clsx(styles.content, className),
|
|
67
67
|
"data-menu-fullscreen": true,
|
|
68
|
-
"data-modern": 'true' ,
|
|
69
68
|
children: [Header, jsx("div", {
|
|
70
69
|
className: styles.fullScreenContent,
|
|
71
70
|
children: OtherChildren
|
|
@@ -82,7 +81,6 @@ const DropdownMenuContent = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
82
81
|
ref: ref,
|
|
83
82
|
className: clsx(styles.content, className),
|
|
84
83
|
collisionPadding: collisionPadding,
|
|
85
|
-
"data-modern": 'true' ,
|
|
86
84
|
"data-bp-animated": animatedDataAttribute ?? (isAnimationEnabled ? 'true' : 'false'),
|
|
87
85
|
sideOffset: SIDE_OFFSET,
|
|
88
86
|
children: children
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { forwardRef, useCallback } from 'react';
|
|
4
|
-
import '@box/blueprint-web-assets/icons/Fill';
|
|
5
4
|
import { ChevronLeft, XMark } from '@box/blueprint-web-assets/icons/Medium';
|
|
6
5
|
import { Text } from '../../text/text.js';
|
|
7
6
|
import { composeEventHandlers } from '../../utils/composeEventHandlers.js';
|
|
@@ -22,14 +21,12 @@ const MenuCloseButton = /*#__PURE__*/forwardRef(({
|
|
|
22
21
|
const handleCloseClick = useCallback(() => {
|
|
23
22
|
setIsMenuOpen(false);
|
|
24
23
|
}, [setIsMenuOpen]);
|
|
25
|
-
const BackIcon = ChevronLeft ;
|
|
26
|
-
const CloseIcon = XMark ;
|
|
27
24
|
const isBackVariant = iconVariant === 'back';
|
|
28
25
|
return jsx(IconButton, {
|
|
29
26
|
ref: ref,
|
|
30
27
|
...rest,
|
|
31
28
|
className: clsx(isBackVariant ? styles.submenuCloseButton : styles.menuCloseButton, className),
|
|
32
|
-
icon: isBackVariant ?
|
|
29
|
+
icon: isBackVariant ? ChevronLeft : XMark,
|
|
33
30
|
onClick: composeEventHandlers(handleCloseClick, onClick),
|
|
34
31
|
variant: isBackVariant ? 'default' : 'small-utility'
|
|
35
32
|
});
|
|
@@ -45,12 +42,11 @@ const SubMenuBackButton = /*#__PURE__*/forwardRef(({
|
|
|
45
42
|
const handleCloseClick = useCallback(() => {
|
|
46
43
|
setIsSubMenuOpen(false);
|
|
47
44
|
}, [setIsSubMenuOpen]);
|
|
48
|
-
const BackIcon = ChevronLeft ;
|
|
49
45
|
return jsx(IconButton, {
|
|
50
46
|
ref: ref,
|
|
51
47
|
...rest,
|
|
52
48
|
className: clsx(styles.submenuCloseButton, className),
|
|
53
|
-
icon:
|
|
49
|
+
icon: ChevronLeft,
|
|
54
50
|
onClick: composeEventHandlers(handleCloseClick, onClick)
|
|
55
51
|
});
|
|
56
52
|
});
|
|
@@ -103,9 +103,9 @@ const MenuItemStartElement = /*#__PURE__*/forwardRef(({
|
|
|
103
103
|
const iconSize = internalSize === 'medium' ? Size8 : Size4;
|
|
104
104
|
let iconColor;
|
|
105
105
|
if (itemVariant === 'destructive') {
|
|
106
|
-
iconColor = bpTextTextDestructiveOnLight
|
|
106
|
+
iconColor = bpTextTextDestructiveOnLight;
|
|
107
107
|
} else {
|
|
108
|
-
iconColor = bpIconIconOnLightSecondary
|
|
108
|
+
iconColor = bpIconIconOnLightSecondary;
|
|
109
109
|
}
|
|
110
110
|
return jsxs("div", {
|
|
111
111
|
...rest,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import '@box/blueprint-web-assets/icons/Fill';
|
|
3
2
|
import { Checkmark } from '@box/blueprint-web-assets/icons/Medium';
|
|
4
|
-
import {
|
|
3
|
+
import { bpSize050, bpIconIconOnLight } from '@box/blueprint-web-assets/tokens/tokens';
|
|
5
4
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
6
5
|
import clsx from 'clsx';
|
|
7
6
|
import { forwardRef, useCallback } from 'react';
|
|
@@ -31,9 +30,6 @@ const DropdownMenuRadioSelectItem = /*#__PURE__*/forwardRef((props, forwardedRef
|
|
|
31
30
|
} = useBlueprintConfiguration();
|
|
32
31
|
const isAnimationEnabled = componentsWithAnimationEnabled.includes('DropdownMenuItem');
|
|
33
32
|
const isSizeSmall = internalSize === 'small';
|
|
34
|
-
const checkmarkSize = Size5 ;
|
|
35
|
-
const Checkmark$1 = Checkmark ;
|
|
36
|
-
const checkmarkColor = bpIconIconOnLight ;
|
|
37
33
|
return jsxs(DropdownMenuPrimitive.RadioItem, {
|
|
38
34
|
...rest,
|
|
39
35
|
ref: forwardedRef,
|
|
@@ -52,11 +48,11 @@ const DropdownMenuRadioSelectItem = /*#__PURE__*/forwardRef((props, forwardedRef
|
|
|
52
48
|
className: clsx(styles.checkmark, {
|
|
53
49
|
[styles.mediumSpacing]: !isSizeSmall
|
|
54
50
|
}),
|
|
55
|
-
children: jsx(Checkmark
|
|
56
|
-
color:
|
|
57
|
-
height:
|
|
51
|
+
children: jsx(Checkmark, {
|
|
52
|
+
color: bpIconIconOnLight,
|
|
53
|
+
height: bpSize050,
|
|
58
54
|
role: "presentation",
|
|
59
|
-
width:
|
|
55
|
+
width: bpSize050
|
|
60
56
|
})
|
|
61
57
|
})]
|
|
62
58
|
});
|
|
@@ -48,7 +48,6 @@ const DropdownMenuSubMenuContent = /*#__PURE__*/forwardRef((props, forwardedRef)
|
|
|
48
48
|
ref: ref,
|
|
49
49
|
className: clsx(styles.content, className),
|
|
50
50
|
"data-menu-fullscreen": true,
|
|
51
|
-
"data-modern": 'true' ,
|
|
52
51
|
// Prevents submenu from closing, when detects focus outside submenu in fullscreen mode,
|
|
53
52
|
// while mouse is moving over submenu.
|
|
54
53
|
onFocusOutside: preventDefault,
|
|
@@ -68,7 +67,6 @@ const DropdownMenuSubMenuContent = /*#__PURE__*/forwardRef((props, forwardedRef)
|
|
|
68
67
|
ref: ref,
|
|
69
68
|
className: clsx(styles.content, className),
|
|
70
69
|
collisionPadding: collisionPadding,
|
|
71
|
-
"data-modern": 'true' ,
|
|
72
70
|
"data-bp-animated": isAnimationEnabled ? 'true' : 'false',
|
|
73
71
|
sideOffset: SIDE_OFFSET,
|
|
74
72
|
children: children
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../../index.css';
|
|
2
|
-
var styles = {"content":"bp_dropdown_menu_module_content--
|
|
2
|
+
var styles = {"content":"bp_dropdown_menu_module_content--44782","fullScreenContent":"bp_dropdown_menu_module_fullScreenContent--44782","subheader":"bp_dropdown_menu_module_subheader--44782","uppercased":"bp_dropdown_menu_module_uppercased--44782","dropdownMenuItemSeparator":"bp_dropdown_menu_module_dropdownMenuItemSeparator--44782","ellipsis":"bp_dropdown_menu_module_ellipsis--44782","itemBody":"bp_dropdown_menu_module_itemBody--44782","itemOverflow":"bp_dropdown_menu_module_itemOverflow--44782","menuItemCaption":"bp_dropdown_menu_module_menuItemCaption--44782","captionClamped":"bp_dropdown_menu_module_captionClamped--44782","checkmark":"bp_dropdown_menu_module_checkmark--44782","mediumSpacing":"bp_dropdown_menu_module_mediumSpacing--44782","item":"bp_dropdown_menu_module_item--44782","radioItem":"bp_dropdown_menu_module_radioItem--44782","radioItemMediumSpacing":"bp_dropdown_menu_module_radioItemMediumSpacing--44782","menuItemMainContent":"bp_dropdown_menu_module_menuItemMainContent--44782","checkboxItem":"bp_dropdown_menu_module_checkboxItem--44782","checkboxItemMediumSpacing":"bp_dropdown_menu_module_checkboxItemMediumSpacing--44782","mediumItemLayout":"bp_dropdown_menu_module_mediumItemLayout--44782","startElement":"bp_dropdown_menu_module_startElement--44782","menuItemMainContent_directChild":"bp_dropdown_menu_module_menuItemMainContent_directChild--44782","endElement":"bp_dropdown_menu_module_endElement--44782","destructive":"bp_dropdown_menu_module_destructive--44782","menuHeader":"bp_dropdown_menu_module_menuHeader--44782","headerTextContent":"bp_dropdown_menu_module_headerTextContent--44782","submenuCloseButton":"bp_dropdown_menu_module_submenuCloseButton--44782","menuCloseButton":"bp_dropdown_menu_module_menuCloseButton--44782"};
|
|
3
3
|
|
|
4
4
|
export { styles as default };
|
|
@@ -48,7 +48,6 @@ const MenuComboboxContent = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
48
48
|
...rest,
|
|
49
49
|
className: clsx(styles.content, className),
|
|
50
50
|
"data-menu-fullscreen": isFullScreenEnabled ? 'true' : 'false',
|
|
51
|
-
"data-modern": 'true' ,
|
|
52
51
|
children: children
|
|
53
52
|
});
|
|
54
53
|
});
|
|
@@ -14,7 +14,7 @@ const MenuComboboxEmpty = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
14
14
|
ref: forwardedRef,
|
|
15
15
|
role: "status",
|
|
16
16
|
...rest,
|
|
17
|
-
className: clsx(styles.empty,
|
|
17
|
+
className: clsx(styles.empty, className),
|
|
18
18
|
children: children
|
|
19
19
|
});
|
|
20
20
|
});
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import '@box/blueprint-web-assets/icons/Fill';
|
|
3
2
|
import { XMark } from '@box/blueprint-web-assets/icons/Medium';
|
|
4
3
|
import clsx from 'clsx';
|
|
5
4
|
import { forwardRef, useCallback } from 'react';
|
|
@@ -20,12 +19,11 @@ const MenuCloseButton = /*#__PURE__*/forwardRef(({
|
|
|
20
19
|
const handleCloseClick = useCallback(() => {
|
|
21
20
|
setOpen(false);
|
|
22
21
|
}, [setOpen]);
|
|
23
|
-
const CloseIcon = XMark ;
|
|
24
22
|
return jsx(IconButton, {
|
|
25
23
|
ref: ref,
|
|
26
24
|
...rest,
|
|
27
25
|
className: clsx(styles.menuCloseButton, className),
|
|
28
|
-
icon:
|
|
26
|
+
icon: XMark,
|
|
29
27
|
onClick: composeEventHandlers(handleCloseClick, onClick),
|
|
30
28
|
variant: "small-utility"
|
|
31
29
|
});
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Combobox } from '@ariakit/react';
|
|
3
|
-
import '@box/blueprint-web-assets/icons/Fill';
|
|
4
3
|
import { Search } from '@box/blueprint-web-assets/icons/Medium';
|
|
5
4
|
import clsx from 'clsx';
|
|
6
5
|
import { forwardRef } from 'react';
|
|
@@ -18,11 +17,10 @@ const MenuComboboxSearch = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
18
17
|
const {
|
|
19
18
|
searchPlaceholder: rootSearchPlaceholder
|
|
20
19
|
} = useMenuComboboxContext();
|
|
21
|
-
const SearchIcon = Search ;
|
|
22
20
|
const resolvedPlaceholder = placeholder ?? rootSearchPlaceholder;
|
|
23
21
|
return jsxs("span", {
|
|
24
22
|
className: styles.searchWrapper,
|
|
25
|
-
children: [jsx(
|
|
23
|
+
children: [jsx(Search, {
|
|
26
24
|
"aria-hidden": "true",
|
|
27
25
|
className: styles.searchIcon
|
|
28
26
|
}), jsx(Combobox, {
|
|
@@ -30,7 +28,7 @@ const MenuComboboxSearch = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
30
28
|
"aria-label": ariaLabel,
|
|
31
29
|
autoSelect: true,
|
|
32
30
|
...rest,
|
|
33
|
-
className: clsx(styles.search,
|
|
31
|
+
className: clsx(styles.search, className),
|
|
34
32
|
placeholder: resolvedPlaceholder
|
|
35
33
|
})]
|
|
36
34
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../../index.css';
|
|
2
|
-
var styles = {"content":"bp_menu_combobox_module_content--
|
|
2
|
+
var styles = {"content":"bp_menu_combobox_module_content--b5d46","searchWrapper":"bp_menu_combobox_module_searchWrapper--b5d46","searchIcon":"bp_menu_combobox_module_searchIcon--b5d46","search":"bp_menu_combobox_module_search--b5d46","list":"bp_menu_combobox_module_list--b5d46","item":"bp_menu_combobox_module_item--b5d46","itemLabel":"bp_menu_combobox_module_itemLabel--b5d46","empty":"bp_menu_combobox_module_empty--b5d46","menuHeader":"bp_menu_combobox_module_menuHeader--b5d46","headerTextContent":"bp_menu_combobox_module_headerTextContent--b5d46","headerEllipsis":"bp_menu_combobox_module_headerEllipsis--b5d46","menuCloseButton":"bp_menu_combobox_module_menuCloseButton--b5d46"};
|
|
3
3
|
|
|
4
4
|
export { styles as default };
|
|
@@ -2,7 +2,7 @@ import { jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { ChevronDown } from '@box/blueprint-web-assets/icons/Fill';
|
|
3
3
|
import { Size2 } from '@box/blueprint-web-assets/tokens/tokens';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import { forwardRef
|
|
5
|
+
import { forwardRef } from 'react';
|
|
6
6
|
import styles from './toolbar.module.js';
|
|
7
7
|
|
|
8
8
|
const ToolbarDropdownIndicator = /*#__PURE__*/forwardRef(({
|
|
@@ -10,9 +10,7 @@ const ToolbarDropdownIndicator = /*#__PURE__*/forwardRef(({
|
|
|
10
10
|
className,
|
|
11
11
|
color
|
|
12
12
|
}, forwardedRef) => {
|
|
13
|
-
|
|
14
|
-
const Icon = useMemo(() => ChevronDown , [enableModernizedComponents]);
|
|
15
|
-
return jsx(Icon, {
|
|
13
|
+
return jsx(ChevronDown, {
|
|
16
14
|
ref: forwardedRef,
|
|
17
15
|
className: clsx({
|
|
18
16
|
[styles.invertCaret]: direction === 'up'
|
|
@@ -32,7 +32,6 @@ const ToolbarInput = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
32
32
|
ref: forwardedRef,
|
|
33
33
|
type: type,
|
|
34
34
|
className: clsx(styles.toolbarInput, showError && styles.toolbarInputError, className),
|
|
35
|
-
"data-modern": 'true' ,
|
|
36
35
|
disabled: disabled,
|
|
37
36
|
"aria-invalid": showError || undefined,
|
|
38
37
|
onKeyDown: onKeyDown,
|
|
@@ -14,7 +14,6 @@ const ToolbarLink = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
14
14
|
...rest,
|
|
15
15
|
ref: forwardedRef,
|
|
16
16
|
className: clsx(styles.toolbarItem, styles.toolbarLink, className),
|
|
17
|
-
"data-modern": 'true' ,
|
|
18
17
|
children: jsx("span", {
|
|
19
18
|
className: styles.toolbarLinkText,
|
|
20
19
|
children: children
|
|
@@ -13,7 +13,6 @@ const ToolbarRoot = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
13
13
|
scrollable,
|
|
14
14
|
...rest
|
|
15
15
|
} = props;
|
|
16
|
-
const enableModernizedComponents = true;
|
|
17
16
|
if (scrollable) {
|
|
18
17
|
const {
|
|
19
18
|
ariaLabelNextButton,
|
|
@@ -24,10 +23,7 @@ const ToolbarRoot = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
24
23
|
return jsx(ToolbarPrimitive.Root, {
|
|
25
24
|
...rest,
|
|
26
25
|
ref: forwardedRef,
|
|
27
|
-
className: clsx(styles.toolbarRoot,
|
|
28
|
-
[styles.ScrollableToolbarWithReducedPadding]: enableModernizedComponents
|
|
29
|
-
}, className),
|
|
30
|
-
"data-modern": 'true' ,
|
|
26
|
+
className: clsx(styles.toolbarRoot, styles.ScrollableToolbarWithReducedPadding, className),
|
|
31
27
|
style: {
|
|
32
28
|
maxWidth
|
|
33
29
|
},
|
|
@@ -45,7 +41,6 @@ const ToolbarRoot = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
45
41
|
...rest,
|
|
46
42
|
ref: forwardedRef,
|
|
47
43
|
className: clsx(styles.toolbarRoot, className),
|
|
48
|
-
"data-modern": 'true' ,
|
|
49
44
|
children: children
|
|
50
45
|
});
|
|
51
46
|
});
|
|
@@ -16,7 +16,6 @@ const ToolbarToggleItem = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
16
16
|
...rest,
|
|
17
17
|
ref: forwardedRef,
|
|
18
18
|
className: clsx(styles.toolbarItem, styles.toolbarToggle),
|
|
19
|
-
"data-modern": 'true' ,
|
|
20
19
|
children: [children, /*#__PURE__*/createElement(icon, {
|
|
21
20
|
height: Size5,
|
|
22
21
|
width: Size5,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../index.css';
|
|
2
|
-
var styles = {"dropdownIndicator":"bp_toolbar_module_dropdownIndicator--
|
|
2
|
+
var styles = {"dropdownIndicator":"bp_toolbar_module_dropdownIndicator--eb4ca","invertCaret":"bp_toolbar_module_invertCaret--eb4ca","toolbarRoot":"bp_toolbar_module_toolbarRoot--eb4ca","ScrollableToolbarWithReducedPadding":"bp_toolbar_module_ScrollableToolbarWithReducedPadding--eb4ca","toolbarItem":"bp_toolbar_module_toolbarItem--eb4ca","toolbarButton":"bp_toolbar_module_toolbarButton--eb4ca","toolbarTextToggleItem":"bp_toolbar_module_toolbarTextToggleItem--eb4ca","toolbarLink":"bp_toolbar_module_toolbarLink--eb4ca","scrollButtonWrapper":"bp_toolbar_module_scrollButtonWrapper--eb4ca","hidden":"bp_toolbar_module_hidden--eb4ca","scrollableChildrenWrapper":"bp_toolbar_module_scrollableChildrenWrapper--eb4ca","separator":"bp_toolbar_module_separator--eb4ca","toggleGroup":"bp_toolbar_module_toggleGroup--eb4ca","toolbarToggle":"bp_toolbar_module_toolbarToggle--eb4ca","triggerButtonSelectedWithColor":"bp_toolbar_module_triggerButtonSelectedWithColor--eb4ca","toolbarIcon":"bp_toolbar_module_toolbarIcon--eb4ca","toolbarLinkText":"bp_toolbar_module_toolbarLinkText--eb4ca","toolbarInputContainer":"bp_toolbar_module_toolbarInputContainer--eb4ca","toolbarInput":"bp_toolbar_module_toolbarInput--eb4ca","toolbarInputErrorIcon":"bp_toolbar_module_toolbarInputErrorIcon--eb4ca","toolbarInputError":"bp_toolbar_module_toolbarInputError--eb4ca","toolbarInputErrorIconHidden":"bp_toolbar_module_toolbarInputErrorIconHidden--eb4ca"};
|
|
3
3
|
|
|
4
4
|
export { styles as default };
|
|
@@ -15,7 +15,6 @@ const MenuItemSideContent = ({
|
|
|
15
15
|
className: clsx(styles.menuItemSideContent, {
|
|
16
16
|
[styles.textOnLightSecondary]: typeof children === 'string'
|
|
17
17
|
}, className),
|
|
18
|
-
"data-modern": 'true' ,
|
|
19
18
|
children: children
|
|
20
19
|
});
|
|
21
20
|
};
|
|
@@ -31,7 +30,6 @@ const MenuItemMainContent = ({
|
|
|
31
30
|
return jsxs("div", {
|
|
32
31
|
...rest,
|
|
33
32
|
className: clsx(styles.menuItemMainContent, className),
|
|
34
|
-
"data-modern": 'true' ,
|
|
35
33
|
children: [jsx("span", {
|
|
36
34
|
className: clsx(styles.label, {
|
|
37
35
|
[styles.bold]: Boolean(description)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../../index.css';
|
|
2
|
-
var styles = {"menuItemMainContent":"bp_menu_item_sections_module_menuItemMainContent--
|
|
2
|
+
var styles = {"menuItemMainContent":"bp_menu_item_sections_module_menuItemMainContent--a7b1f","label":"bp_menu_item_sections_module_label--a7b1f","bold":"bp_menu_item_sections_module_bold--a7b1f","description":"bp_menu_item_sections_module_description--a7b1f","menuItemSideContent":"bp_menu_item_sections_module_menuItemSideContent--a7b1f","textOnLightSecondary":"bp_menu_item_sections_module_textOnLightSecondary--a7b1f"};
|
|
3
3
|
|
|
4
4
|
export { styles as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@box/blueprint-web",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.13.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"publishConfig": {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@ariakit/react": "0.4.21",
|
|
57
57
|
"@ariakit/react-core": "0.4.21",
|
|
58
|
-
"@box/blueprint-web-assets": "^5.10.
|
|
58
|
+
"@box/blueprint-web-assets": "^5.10.18",
|
|
59
59
|
"@internationalized/date": "^3.12.0",
|
|
60
60
|
"@radix-ui/react-accordion": "1.1.2",
|
|
61
61
|
"@radix-ui/react-checkbox": "1.0.4",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"devDependencies": {
|
|
87
87
|
"@box/box-test-client": "^3.2.7",
|
|
88
88
|
"@box/playwright-utils": "^2.8.5",
|
|
89
|
-
"@box/storybook-utils": "^1.2.
|
|
89
|
+
"@box/storybook-utils": "^1.2.62",
|
|
90
90
|
"@figma/code-connect": "1.4.4",
|
|
91
91
|
"@playwright/test": "1.46.1",
|
|
92
92
|
"@types/js-yaml": "^4.0.9",
|