@box/blueprint-web 16.20.7 → 17.0.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/accordion/accordion.js +7 -18
- package/dist/lib-esm/avatar/avatar.js +1 -5
- package/dist/lib-esm/blueprint-modernization-context/blueprint-modernization-context.d.ts +20 -1
- package/dist/lib-esm/blueprint-modernization-context/blueprint-modernization-context.js +10 -2
- package/dist/lib-esm/blueprint-modernization-context/index.d.ts +4 -0
- package/dist/lib-esm/blueprint-modernization-context/useBlueprintModernization.d.ts +4 -0
- package/dist/lib-esm/blueprint-modernization-context/useBlueprintModernization.js +4 -0
- package/dist/lib-esm/card/card.js +1 -5
- package/dist/lib-esm/card-tooltip/card-tooltip.js +1 -5
- package/dist/lib-esm/checkbox/checkbox-item.js +1 -5
- package/dist/lib-esm/collapsible/collapsible-section.js +6 -9
- package/dist/lib-esm/combobox/combobox.js +8 -15
- package/dist/lib-esm/combobox-group/combobox-group.js +1 -5
- package/dist/lib-esm/content-card/content-card-body.js +2 -6
- package/dist/lib-esm/content-card/content-card.js +2 -9
- package/dist/lib-esm/date-picker/date-picker.js +1 -5
- package/dist/lib-esm/ghost/ghost.js +1 -4
- package/dist/lib-esm/icon-dual-state-button/icon-dual-state-button.js +1 -5
- package/dist/lib-esm/icon-toggle-button/icon-toggle-button.js +5 -14
- package/dist/lib-esm/inline-table/inline-table.js +1 -5
- package/dist/lib-esm/input-chip/input-chip.js +2 -5
- package/dist/lib-esm/list-item/table-column.js +6 -15
- package/dist/lib-esm/list-item/table-header-default.js +1 -5
- package/dist/lib-esm/list-item/table.js +1 -4
- package/dist/lib-esm/loading-indicator/loading-indicator.js +1 -6
- package/dist/lib-esm/modal/modal-close.js +2 -6
- package/dist/lib-esm/modal/modal-content.js +1 -5
- package/dist/lib-esm/navigation-menu/navigation-menu-content.js +1 -5
- package/dist/lib-esm/navigation-menu/navigation-menu-link.js +1 -5
- package/dist/lib-esm/page/page-root.js +1 -5
- package/dist/lib-esm/primitives/base-button/base-button-icon.js +1 -4
- package/dist/lib-esm/primitives/base-button/base-button.js +1 -5
- package/dist/lib-esm/primitives/base-inline-notice/base-inline-notice-icon.js +4 -12
- package/dist/lib-esm/primitives/base-inline-notice/base-inline-notice.js +1 -5
- package/dist/lib-esm/primitives/base-text-input/base-text-input.js +4 -10
- package/dist/lib-esm/primitives/calendar/calendar.js +5 -8
- package/dist/lib-esm/primitives/chips/chip.js +1 -5
- package/dist/lib-esm/primitives/chips/chips-group.js +1 -5
- package/dist/lib-esm/primitives/context-menu/context-menu-item.js +2 -6
- package/dist/lib-esm/primitives/context-menu/context-menu-menu-content.js +2 -6
- package/dist/lib-esm/primitives/context-menu/context-menu-menu-header.js +1 -5
- package/dist/lib-esm/primitives/context-menu/context-menu-sub-menu-content.js +2 -6
- package/dist/lib-esm/primitives/dropdown-menu/dropdown-menu-checkbox-item.js +6 -10
- package/dist/lib-esm/primitives/dropdown-menu/dropdown-menu-content.js +2 -6
- package/dist/lib-esm/primitives/dropdown-menu/dropdown-menu-header.js +4 -11
- package/dist/lib-esm/primitives/dropdown-menu/dropdown-menu-item.js +3 -7
- package/dist/lib-esm/primitives/dropdown-menu/dropdown-menu-radio-select-item.js +6 -10
- package/dist/lib-esm/primitives/dropdown-menu/dropdown-menu-sub-menu-content.js +2 -6
- package/dist/lib-esm/primitives/icon-button/icon-button.js +1 -5
- package/dist/lib-esm/primitives/inline-error/inline-error.js +3 -6
- package/dist/lib-esm/primitives/link/link.js +1 -5
- package/dist/lib-esm/primitives/menu-combobox/menu-combobox-content.js +1 -5
- package/dist/lib-esm/primitives/menu-combobox/menu-combobox-empty.js +1 -5
- package/dist/lib-esm/primitives/menu-combobox/menu-combobox-header.js +2 -6
- package/dist/lib-esm/primitives/menu-combobox/menu-combobox-search.js +3 -7
- package/dist/lib-esm/primitives/notification/private-notification-element.js +8 -39
- package/dist/lib-esm/primitives/page-header/page-header.js +1 -4
- package/dist/lib-esm/primitives/popover/popover-content-container.js +1 -5
- package/dist/lib-esm/primitives/select-menu-grid/select-menu-grid-option.js +6 -24
- package/dist/lib-esm/primitives/tabs/tab-list.js +2 -6
- package/dist/lib-esm/progress-bar/progress-bar.js +1 -5
- package/dist/lib-esm/radio-group/radio-group.js +1 -5
- package/dist/lib-esm/radio-tiles/radio-tiles-option.js +1 -5
- package/dist/lib-esm/radio-tiles/radio-tiles.js +1 -5
- package/dist/lib-esm/search-input/search-input-controlled/search-input-controlled.js +5 -8
- package/dist/lib-esm/search-input/search-input.js +5 -8
- package/dist/lib-esm/select/select.js +5 -15
- package/dist/lib-esm/side-panel/side-panel-close.js +3 -6
- package/dist/lib-esm/side-panel/side-panel-content.js +2 -9
- package/dist/lib-esm/side-panel/side-panel-overlay.js +1 -5
- package/dist/lib-esm/small-list-item/small-list.js +1 -5
- package/dist/lib-esm/split-button/split-button.js +2 -6
- package/dist/lib-esm/status/status.js +1 -5
- package/dist/lib-esm/switch/switch-item.js +1 -5
- package/dist/lib-esm/text/text.js +1 -5
- package/dist/lib-esm/text-area/text-area-autosize/text-area-autosize.js +5 -19
- package/dist/lib-esm/text-area/text-area-autosize/text-area-autosize.module.js +1 -1
- package/dist/lib-esm/text-area/text-area.js +1 -5
- package/dist/lib-esm/text-button/text-button.js +1 -5
- package/dist/lib-esm/text-input/text-input.js +3 -6
- package/dist/lib-esm/text-toggle-button/text-toggle-button.js +1 -5
- package/dist/lib-esm/time-picker/time-picker.js +6 -22
- package/dist/lib-esm/toolbar/toolbar-button.js +1 -5
- package/dist/lib-esm/toolbar/toolbar-dropdown-indicator.js +3 -6
- package/dist/lib-esm/toolbar/toolbar-input.js +1 -5
- package/dist/lib-esm/toolbar/toolbar-link.js +1 -5
- package/dist/lib-esm/toolbar/toolbar-root.js +3 -6
- package/dist/lib-esm/toolbar/toolbar-text-toggle-item.js +1 -5
- package/dist/lib-esm/toolbar/toolbar-toggle-group.js +1 -5
- package/dist/lib-esm/toolbar/toolbar-toggle-item.js +1 -5
- package/dist/lib-esm/tooltip/tooltip.js +2 -19
- package/dist/lib-esm/trigger-button/trigger-button.js +4 -11
- package/dist/lib-esm/util-components/base-grid-list-item/base-grid-list.js +1 -5
- package/dist/lib-esm/util-components/base-grid-list-item/utils/rac-tooltip.js +3 -6
- package/dist/lib-esm/util-components/legend/legend.js +1 -6
- package/dist/lib-esm/util-components/list-checkbox/list-checkbox.js +1 -5
- package/dist/lib-esm/util-components/menu-item-sections/menu-item-sections.js +2 -9
- package/dist/lib-esm/util-components/text-with-info-badge/text-with-info-badge.js +1 -6
- package/dist/lib-esm/utils/TooltipWrapper.d.ts +1 -1
- package/package.json +3 -3
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import '@box/blueprint-web-assets/icons/Fill';
|
|
3
3
|
import { Checkmark } from '@box/blueprint-web-assets/icons/Medium';
|
|
4
|
-
import { Size5,
|
|
4
|
+
import { Size5, bpIconIconOnLight } from '@box/blueprint-web-assets/tokens/tokens';
|
|
5
5
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import { forwardRef, useCallback } from 'react';
|
|
8
8
|
import '../../blueprint-configuration-context/blueprint-configuration-context.js';
|
|
9
9
|
import '../../blueprint-configuration-context/consts.js';
|
|
10
10
|
import { useBlueprintConfiguration } from '../../blueprint-configuration-context/useBlueprintConfiguration.js';
|
|
11
|
-
import { useBlueprintModernization } from '../../blueprint-modernization-context/useBlueprintModernization.js';
|
|
12
11
|
import { composeEventHandlers } from '../../utils/composeEventHandlers.js';
|
|
13
12
|
import styles from './dropdown-menu.module.js';
|
|
14
13
|
import { useMenuItemVariant } from './menu-item-variant-context.js';
|
|
@@ -26,18 +25,15 @@ const DropdownMenuCheckboxItem = /*#__PURE__*/forwardRef((props, forwardedRef) =
|
|
|
26
25
|
const {
|
|
27
26
|
internalSize
|
|
28
27
|
} = useMenuItemVariant();
|
|
29
|
-
const {
|
|
30
|
-
enableModernizedComponents
|
|
31
|
-
} = useBlueprintModernization();
|
|
32
28
|
const preventDefault = useCallback(event => event.preventDefault(), []);
|
|
33
29
|
const {
|
|
34
30
|
componentsWithAnimationEnabled
|
|
35
31
|
} = useBlueprintConfiguration();
|
|
36
32
|
const isAnimationEnabled = componentsWithAnimationEnabled.includes('DropdownMenuItem');
|
|
37
33
|
const isSizeSmall = internalSize === 'small';
|
|
38
|
-
const checkmarkSize =
|
|
39
|
-
const Checkmark$
|
|
40
|
-
const checkmarkColor =
|
|
34
|
+
const checkmarkSize = Size5 ;
|
|
35
|
+
const Checkmark$1 = Checkmark ;
|
|
36
|
+
const checkmarkColor = bpIconIconOnLight ;
|
|
41
37
|
return jsxs(DropdownMenuPrimitive.CheckboxItem, {
|
|
42
38
|
...rest,
|
|
43
39
|
ref: forwardedRef,
|
|
@@ -55,7 +51,7 @@ const DropdownMenuCheckboxItem = /*#__PURE__*/forwardRef((props, forwardedRef) =
|
|
|
55
51
|
className: clsx(styles.checkmark, {
|
|
56
52
|
[styles.mediumSpacing]: !isSizeSmall
|
|
57
53
|
}),
|
|
58
|
-
children: jsx(Checkmark$
|
|
54
|
+
children: jsx(Checkmark$1, {
|
|
59
55
|
color: checkmarkColor,
|
|
60
56
|
height: checkmarkSize,
|
|
61
57
|
role: "presentation",
|
|
@@ -6,7 +6,6 @@ import { forwardRef, Children, isValidElement } from 'react';
|
|
|
6
6
|
import '../../blueprint-configuration-context/blueprint-configuration-context.js';
|
|
7
7
|
import '../../blueprint-configuration-context/consts.js';
|
|
8
8
|
import { useBlueprintConfiguration } from '../../blueprint-configuration-context/useBlueprintConfiguration.js';
|
|
9
|
-
import { useBlueprintModernization } from '../../blueprint-modernization-context/useBlueprintModernization.js';
|
|
10
9
|
import { useContentSizeObserver } from '../../utils/useContentSizeObserver.js';
|
|
11
10
|
import { useForkRef } from '../../utils/useForkRef.js';
|
|
12
11
|
import { useFullScreenDropdownMenu } from '../menu-utils/responsiveness/FullScreenDropdownMenuContext.js';
|
|
@@ -48,9 +47,6 @@ const DropdownMenuContent = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
48
47
|
const {
|
|
49
48
|
isMenuFullScreenEnabled
|
|
50
49
|
} = useFullScreenDropdownMenu();
|
|
51
|
-
const {
|
|
52
|
-
enableModernizedComponents
|
|
53
|
-
} = useBlueprintModernization();
|
|
54
50
|
const {
|
|
55
51
|
componentsWithAnimationEnabled
|
|
56
52
|
} = useBlueprintConfiguration();
|
|
@@ -69,7 +65,7 @@ const DropdownMenuContent = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
69
65
|
ref: ref,
|
|
70
66
|
className: clsx(styles.content, className),
|
|
71
67
|
"data-menu-fullscreen": true,
|
|
72
|
-
"data-modern":
|
|
68
|
+
"data-modern": 'true' ,
|
|
73
69
|
children: [Header, jsx("div", {
|
|
74
70
|
className: styles.fullScreenContent,
|
|
75
71
|
children: OtherChildren
|
|
@@ -86,7 +82,7 @@ const DropdownMenuContent = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
86
82
|
ref: ref,
|
|
87
83
|
className: clsx(styles.content, className),
|
|
88
84
|
collisionPadding: collisionPadding,
|
|
89
|
-
"data-modern":
|
|
85
|
+
"data-modern": 'true' ,
|
|
90
86
|
"data-bp-animated": animatedDataAttribute ?? (isAnimationEnabled ? 'true' : 'false'),
|
|
91
87
|
sideOffset: SIDE_OFFSET,
|
|
92
88
|
children: children
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { forwardRef, useCallback } from 'react';
|
|
4
|
-
import
|
|
4
|
+
import '@box/blueprint-web-assets/icons/Fill';
|
|
5
5
|
import { ChevronLeft, XMark } from '@box/blueprint-web-assets/icons/Medium';
|
|
6
|
-
import { useBlueprintModernization } from '../../blueprint-modernization-context/useBlueprintModernization.js';
|
|
7
6
|
import { Text } from '../../text/text.js';
|
|
8
7
|
import { composeEventHandlers } from '../../utils/composeEventHandlers.js';
|
|
9
8
|
import { IconButton } from '../icon-button/icon-button.js';
|
|
@@ -20,14 +19,11 @@ const MenuCloseButton = /*#__PURE__*/forwardRef(({
|
|
|
20
19
|
const {
|
|
21
20
|
setIsMenuOpen
|
|
22
21
|
} = useFullScreenDropdownMenu();
|
|
23
|
-
const {
|
|
24
|
-
enableModernizedComponents
|
|
25
|
-
} = useBlueprintModernization();
|
|
26
22
|
const handleCloseClick = useCallback(() => {
|
|
27
23
|
setIsMenuOpen(false);
|
|
28
24
|
}, [setIsMenuOpen]);
|
|
29
|
-
const BackIcon =
|
|
30
|
-
const CloseIcon =
|
|
25
|
+
const BackIcon = ChevronLeft ;
|
|
26
|
+
const CloseIcon = XMark ;
|
|
31
27
|
const isBackVariant = iconVariant === 'back';
|
|
32
28
|
return jsx(IconButton, {
|
|
33
29
|
ref: ref,
|
|
@@ -46,13 +42,10 @@ const SubMenuBackButton = /*#__PURE__*/forwardRef(({
|
|
|
46
42
|
const {
|
|
47
43
|
setIsSubMenuOpen
|
|
48
44
|
} = useSubMenu();
|
|
49
|
-
const {
|
|
50
|
-
enableModernizedComponents
|
|
51
|
-
} = useBlueprintModernization();
|
|
52
45
|
const handleCloseClick = useCallback(() => {
|
|
53
46
|
setIsSubMenuOpen(false);
|
|
54
47
|
}, [setIsSubMenuOpen]);
|
|
55
|
-
const BackIcon =
|
|
48
|
+
const BackIcon = ChevronLeft ;
|
|
56
49
|
return jsx(IconButton, {
|
|
57
50
|
ref: ref,
|
|
58
51
|
...rest,
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
|
-
import { Size8, Size4, bpTextTextDestructiveOnLight,
|
|
2
|
+
import { Size8, Size4, bpTextTextDestructiveOnLight, bpIconIconOnLightSecondary } from '@box/blueprint-web-assets/tokens/tokens';
|
|
3
3
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { forwardRef, useCallback, useContext, createElement, createContext } from 'react';
|
|
6
6
|
import '../../blueprint-configuration-context/blueprint-configuration-context.js';
|
|
7
7
|
import '../../blueprint-configuration-context/consts.js';
|
|
8
8
|
import { useBlueprintConfiguration } from '../../blueprint-configuration-context/useBlueprintConfiguration.js';
|
|
9
|
-
import { useBlueprintModernization } from '../../blueprint-modernization-context/useBlueprintModernization.js';
|
|
10
9
|
import { Text } from '../../text/text.js';
|
|
11
10
|
import { composeEventHandlers } from '../../utils/composeEventHandlers.js';
|
|
12
11
|
import styles from './dropdown-menu.module.js';
|
|
@@ -100,16 +99,13 @@ const MenuItemStartElement = /*#__PURE__*/forwardRef(({
|
|
|
100
99
|
const {
|
|
101
100
|
internalSize
|
|
102
101
|
} = useMenuItemVariant();
|
|
103
|
-
const {
|
|
104
|
-
enableModernizedComponents
|
|
105
|
-
} = useBlueprintModernization();
|
|
106
102
|
const itemVariant = useContext(ItemVariantContext);
|
|
107
103
|
const iconSize = internalSize === 'medium' ? Size8 : Size4;
|
|
108
104
|
let iconColor;
|
|
109
105
|
if (itemVariant === 'destructive') {
|
|
110
|
-
iconColor =
|
|
106
|
+
iconColor = bpTextTextDestructiveOnLight ;
|
|
111
107
|
} else {
|
|
112
|
-
iconColor =
|
|
108
|
+
iconColor = bpIconIconOnLightSecondary ;
|
|
113
109
|
}
|
|
114
110
|
return jsxs("div", {
|
|
115
111
|
...rest,
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import '@box/blueprint-web-assets/icons/Fill';
|
|
3
3
|
import { Checkmark } from '@box/blueprint-web-assets/icons/Medium';
|
|
4
|
-
import { Size5,
|
|
4
|
+
import { Size5, bpIconIconOnLight } from '@box/blueprint-web-assets/tokens/tokens';
|
|
5
5
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import { forwardRef, useCallback } from 'react';
|
|
8
8
|
import '../../blueprint-configuration-context/blueprint-configuration-context.js';
|
|
9
9
|
import '../../blueprint-configuration-context/consts.js';
|
|
10
10
|
import { useBlueprintConfiguration } from '../../blueprint-configuration-context/useBlueprintConfiguration.js';
|
|
11
|
-
import { useBlueprintModernization } from '../../blueprint-modernization-context/useBlueprintModernization.js';
|
|
12
11
|
import { composeEventHandlers } from '../../utils/composeEventHandlers.js';
|
|
13
12
|
import styles from './dropdown-menu.module.js';
|
|
14
13
|
import { useMenuItemVariant } from './menu-item-variant-context.js';
|
|
@@ -26,18 +25,15 @@ const DropdownMenuRadioSelectItem = /*#__PURE__*/forwardRef((props, forwardedRef
|
|
|
26
25
|
const {
|
|
27
26
|
internalSize
|
|
28
27
|
} = useMenuItemVariant();
|
|
29
|
-
const {
|
|
30
|
-
enableModernizedComponents
|
|
31
|
-
} = useBlueprintModernization();
|
|
32
28
|
const preventDefault = useCallback(event => event.preventDefault(), []);
|
|
33
29
|
const {
|
|
34
30
|
componentsWithAnimationEnabled
|
|
35
31
|
} = useBlueprintConfiguration();
|
|
36
32
|
const isAnimationEnabled = componentsWithAnimationEnabled.includes('DropdownMenuItem');
|
|
37
33
|
const isSizeSmall = internalSize === 'small';
|
|
38
|
-
const checkmarkSize =
|
|
39
|
-
const Checkmark$
|
|
40
|
-
const checkmarkColor =
|
|
34
|
+
const checkmarkSize = Size5 ;
|
|
35
|
+
const Checkmark$1 = Checkmark ;
|
|
36
|
+
const checkmarkColor = bpIconIconOnLight ;
|
|
41
37
|
return jsxs(DropdownMenuPrimitive.RadioItem, {
|
|
42
38
|
...rest,
|
|
43
39
|
ref: forwardedRef,
|
|
@@ -56,7 +52,7 @@ const DropdownMenuRadioSelectItem = /*#__PURE__*/forwardRef((props, forwardedRef
|
|
|
56
52
|
className: clsx(styles.checkmark, {
|
|
57
53
|
[styles.mediumSpacing]: !isSizeSmall
|
|
58
54
|
}),
|
|
59
|
-
children: jsx(Checkmark$
|
|
55
|
+
children: jsx(Checkmark$1, {
|
|
60
56
|
color: checkmarkColor,
|
|
61
57
|
height: checkmarkSize,
|
|
62
58
|
role: "presentation",
|
|
@@ -6,7 +6,6 @@ import { forwardRef, useCallback } from 'react';
|
|
|
6
6
|
import '../../blueprint-configuration-context/blueprint-configuration-context.js';
|
|
7
7
|
import '../../blueprint-configuration-context/consts.js';
|
|
8
8
|
import { useBlueprintConfiguration } from '../../blueprint-configuration-context/useBlueprintConfiguration.js';
|
|
9
|
-
import { useBlueprintModernization } from '../../blueprint-modernization-context/useBlueprintModernization.js';
|
|
10
9
|
import { useContentSizeObserver } from '../../utils/useContentSizeObserver.js';
|
|
11
10
|
import { useForkRef } from '../../utils/useForkRef.js';
|
|
12
11
|
import { useFullScreenDropdownMenu } from '../menu-utils/responsiveness/FullScreenDropdownMenuContext.js';
|
|
@@ -30,9 +29,6 @@ const DropdownMenuSubMenuContent = /*#__PURE__*/forwardRef((props, forwardedRef)
|
|
|
30
29
|
const {
|
|
31
30
|
isMenuFullScreenEnabled
|
|
32
31
|
} = useFullScreenDropdownMenu();
|
|
33
|
-
const {
|
|
34
|
-
enableModernizedComponents
|
|
35
|
-
} = useBlueprintModernization();
|
|
36
32
|
const {
|
|
37
33
|
componentsWithAnimationEnabled
|
|
38
34
|
} = useBlueprintConfiguration();
|
|
@@ -52,7 +48,7 @@ const DropdownMenuSubMenuContent = /*#__PURE__*/forwardRef((props, forwardedRef)
|
|
|
52
48
|
ref: ref,
|
|
53
49
|
className: clsx(styles.content, className),
|
|
54
50
|
"data-menu-fullscreen": true,
|
|
55
|
-
"data-modern":
|
|
51
|
+
"data-modern": 'true' ,
|
|
56
52
|
// Prevents submenu from closing, when detects focus outside submenu in fullscreen mode,
|
|
57
53
|
// while mouse is moving over submenu.
|
|
58
54
|
onFocusOutside: preventDefault,
|
|
@@ -72,7 +68,7 @@ const DropdownMenuSubMenuContent = /*#__PURE__*/forwardRef((props, forwardedRef)
|
|
|
72
68
|
ref: ref,
|
|
73
69
|
className: clsx(styles.content, className),
|
|
74
70
|
collisionPadding: collisionPadding,
|
|
75
|
-
"data-modern":
|
|
71
|
+
"data-modern": 'true' ,
|
|
76
72
|
"data-bp-animated": isAnimationEnabled ? 'true' : 'false',
|
|
77
73
|
sideOffset: SIDE_OFFSET,
|
|
78
74
|
children: children
|
|
@@ -3,7 +3,6 @@ import { Button } from '@ariakit/react';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { forwardRef, createElement } from 'react';
|
|
5
5
|
import { useBlueprintConfiguration } from '../../blueprint-configuration-context/useBlueprintConfiguration.js';
|
|
6
|
-
import { useBlueprintModernization } from '../../blueprint-modernization-context/useBlueprintModernization.js';
|
|
7
6
|
import styles from './icon-button.module.js';
|
|
8
7
|
import { iconSizeMap } from './utils.js';
|
|
9
8
|
|
|
@@ -14,9 +13,6 @@ const IconButton = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
14
13
|
icon,
|
|
15
14
|
...rest
|
|
16
15
|
} = props;
|
|
17
|
-
const {
|
|
18
|
-
enableModernizedComponents
|
|
19
|
-
} = useBlueprintModernization();
|
|
20
16
|
const {
|
|
21
17
|
componentsWithAnimationEnabled
|
|
22
18
|
} = useBlueprintConfiguration();
|
|
@@ -26,7 +22,7 @@ const IconButton = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
26
22
|
...rest,
|
|
27
23
|
ref: forwardedRef,
|
|
28
24
|
className: clsx(styles.iconButton, styles[variant], sizeStyles, props.className),
|
|
29
|
-
"data-modern":
|
|
25
|
+
"data-modern": 'true' ,
|
|
30
26
|
"data-bp-animated": isAnimationEnabled ? 'true' : 'false',
|
|
31
27
|
children: /*#__PURE__*/createElement(icon, {
|
|
32
28
|
className: styles.icon,
|
|
@@ -7,11 +7,10 @@ import { forwardRef, useCallback } from 'react';
|
|
|
7
7
|
import '../../blueprint-configuration-context/blueprint-configuration-context.js';
|
|
8
8
|
import '../../blueprint-configuration-context/consts.js';
|
|
9
9
|
import { useBlueprintConfiguration } from '../../blueprint-configuration-context/useBlueprintConfiguration.js';
|
|
10
|
-
import { useBlueprintModernization } from '../../blueprint-modernization-context/useBlueprintModernization.js';
|
|
11
10
|
import { useInlineErrorPresence } from './utils/use-inline-error-presence.js';
|
|
12
11
|
import styles from './inline-error.module.js';
|
|
13
12
|
|
|
14
|
-
const renderErrorContent = (content, enableModernizedComponents, errorIconClassName) => content && (
|
|
13
|
+
const renderErrorContent = (content, enableModernizedComponents, errorIconClassName) => content && (false ? jsxs(Fragment, {
|
|
15
14
|
children: [jsx(AlertBadge, {
|
|
16
15
|
className: errorIconClassName,
|
|
17
16
|
color: IconIconErrorOnLight,
|
|
@@ -36,9 +35,7 @@ const InlineError = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
36
35
|
onAnimationEnd: onAnimationEndProp,
|
|
37
36
|
...rest
|
|
38
37
|
} = props;
|
|
39
|
-
const
|
|
40
|
-
enableModernizedComponents
|
|
41
|
-
} = useBlueprintModernization();
|
|
38
|
+
const enableModernizedComponents = true;
|
|
42
39
|
const {
|
|
43
40
|
componentsWithAnimationEnabled
|
|
44
41
|
} = useBlueprintConfiguration();
|
|
@@ -60,7 +57,7 @@ const InlineError = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
60
57
|
className: clsx([className, styles.inlineError, {
|
|
61
58
|
[styles.empty]: !children
|
|
62
59
|
}]),
|
|
63
|
-
"data-modern":
|
|
60
|
+
"data-modern": 'true' ,
|
|
64
61
|
onAnimationEnd: onAnimationEndProp,
|
|
65
62
|
children: renderErrorContent(children, enableModernizedComponents, styles.errorIcon)
|
|
66
63
|
});
|
|
@@ -2,7 +2,6 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
2
2
|
import { ArrowUpRightSquareAlt } from '@box/blueprint-web-assets/icons/Line';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { forwardRef } from 'react';
|
|
5
|
-
import { useBlueprintModernization } from '../../blueprint-modernization-context/useBlueprintModernization.js';
|
|
6
5
|
import styles from './link.module.js';
|
|
7
6
|
|
|
8
7
|
const LinkDefaultAsElement = 'a';
|
|
@@ -16,9 +15,6 @@ const Link = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
16
15
|
isExternal = false,
|
|
17
16
|
...rest
|
|
18
17
|
} = props;
|
|
19
|
-
const {
|
|
20
|
-
enableModernizedComponents
|
|
21
|
-
} = useBlueprintModernization();
|
|
22
18
|
return jsxs(Component, {
|
|
23
19
|
...rest,
|
|
24
20
|
ref: forwardedRef,
|
|
@@ -27,7 +23,7 @@ const Link = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
27
23
|
}, styles[variant], {
|
|
28
24
|
[styles.hasIcon]: isExternal
|
|
29
25
|
}]),
|
|
30
|
-
"data-modern":
|
|
26
|
+
"data-modern": 'true' ,
|
|
31
27
|
children: [children, isExternal && jsx(ArrowUpRightSquareAlt, {
|
|
32
28
|
"aria-hidden": true,
|
|
33
29
|
className: styles.icon
|
|
@@ -3,7 +3,6 @@ import { Space2 } from '@box/blueprint-web-assets/tokens/px-tokens';
|
|
|
3
3
|
import { Menu } from '@ariakit/react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { forwardRef, useMemo } from 'react';
|
|
6
|
-
import { useBlueprintModernization } from '../../blueprint-modernization-context/useBlueprintModernization.js';
|
|
7
6
|
import { useMenuComboboxContext } from './menu-combobox-context.js';
|
|
8
7
|
import styles from './menu-combobox.module.js';
|
|
9
8
|
|
|
@@ -35,9 +34,6 @@ const MenuComboboxContent = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
35
34
|
const {
|
|
36
35
|
isFullScreenEnabled
|
|
37
36
|
} = useMenuComboboxContext();
|
|
38
|
-
const {
|
|
39
|
-
enableModernizedComponents
|
|
40
|
-
} = useBlueprintModernization();
|
|
41
37
|
const gutter = isFullScreenEnabled ? 0 : GUTTER;
|
|
42
38
|
const wrapperProps = useMemo(() => isFullScreenEnabled ? {
|
|
43
39
|
style: FULLSCREEN_WRAPPER_STYLE
|
|
@@ -52,7 +48,7 @@ const MenuComboboxContent = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
52
48
|
...rest,
|
|
53
49
|
className: clsx(styles.content, className),
|
|
54
50
|
"data-menu-fullscreen": isFullScreenEnabled ? 'true' : 'false',
|
|
55
|
-
"data-modern":
|
|
51
|
+
"data-modern": 'true' ,
|
|
56
52
|
children: children
|
|
57
53
|
});
|
|
58
54
|
});
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
|
-
import { useBlueprintModernization } from '../../blueprint-modernization-context/useBlueprintModernization.js';
|
|
5
4
|
import styles from './menu-combobox.module.js';
|
|
6
5
|
|
|
7
6
|
/** Shown when the filtered list has no matches. */
|
|
@@ -11,14 +10,11 @@ const MenuComboboxEmpty = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
11
10
|
className,
|
|
12
11
|
...rest
|
|
13
12
|
} = props;
|
|
14
|
-
const {
|
|
15
|
-
enableModernizedComponents
|
|
16
|
-
} = useBlueprintModernization();
|
|
17
13
|
return jsx("div", {
|
|
18
14
|
ref: forwardedRef,
|
|
19
15
|
role: "status",
|
|
20
16
|
...rest,
|
|
21
|
-
className: clsx(styles.empty,
|
|
17
|
+
className: clsx(styles.empty, styles.emptyModern, className),
|
|
22
18
|
children: children
|
|
23
19
|
});
|
|
24
20
|
});
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import '@box/blueprint-web-assets/icons/Fill';
|
|
3
3
|
import { XMark } from '@box/blueprint-web-assets/icons/Medium';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { forwardRef, useCallback } from 'react';
|
|
6
|
-
import { useBlueprintModernization } from '../../blueprint-modernization-context/useBlueprintModernization.js';
|
|
7
6
|
import { IconButton } from '../icon-button/icon-button.js';
|
|
8
7
|
import { Text } from '../../text/text.js';
|
|
9
8
|
import { composeEventHandlers } from '../../utils/composeEventHandlers.js';
|
|
@@ -18,13 +17,10 @@ const MenuCloseButton = /*#__PURE__*/forwardRef(({
|
|
|
18
17
|
const {
|
|
19
18
|
setOpen
|
|
20
19
|
} = useMenuComboboxContext();
|
|
21
|
-
const {
|
|
22
|
-
enableModernizedComponents
|
|
23
|
-
} = useBlueprintModernization();
|
|
24
20
|
const handleCloseClick = useCallback(() => {
|
|
25
21
|
setOpen(false);
|
|
26
22
|
}, [setOpen]);
|
|
27
|
-
const CloseIcon =
|
|
23
|
+
const CloseIcon = XMark ;
|
|
28
24
|
return jsx(IconButton, {
|
|
29
25
|
ref: ref,
|
|
30
26
|
...rest,
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Combobox } from '@ariakit/react';
|
|
3
|
-
import
|
|
3
|
+
import '@box/blueprint-web-assets/icons/Fill';
|
|
4
4
|
import { Search } from '@box/blueprint-web-assets/icons/Medium';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import { forwardRef } from 'react';
|
|
7
|
-
import { useBlueprintModernization } from '../../blueprint-modernization-context/useBlueprintModernization.js';
|
|
8
7
|
import { useMenuComboboxContext } from './menu-combobox-context.js';
|
|
9
8
|
import styles from './menu-combobox.module.js';
|
|
10
9
|
|
|
@@ -19,10 +18,7 @@ const MenuComboboxSearch = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
19
18
|
const {
|
|
20
19
|
searchPlaceholder: rootSearchPlaceholder
|
|
21
20
|
} = useMenuComboboxContext();
|
|
22
|
-
const
|
|
23
|
-
enableModernizedComponents
|
|
24
|
-
} = useBlueprintModernization();
|
|
25
|
-
const SearchIcon = enableModernizedComponents ? Search : Search$1;
|
|
21
|
+
const SearchIcon = Search ;
|
|
26
22
|
const resolvedPlaceholder = placeholder ?? rootSearchPlaceholder;
|
|
27
23
|
return jsxs("span", {
|
|
28
24
|
className: styles.searchWrapper,
|
|
@@ -34,7 +30,7 @@ const MenuComboboxSearch = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
34
30
|
"aria-label": ariaLabel,
|
|
35
31
|
autoSelect: true,
|
|
36
32
|
...rest,
|
|
37
|
-
className: clsx(styles.search,
|
|
33
|
+
className: clsx(styles.search, styles.searchModern, className),
|
|
38
34
|
placeholder: resolvedPlaceholder
|
|
39
35
|
})]
|
|
40
36
|
});
|
|
@@ -1,43 +1,14 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import '@box/blueprint-web-assets/icons/Fill';
|
|
3
|
+
import '@box/blueprint-web-assets/icons/Line';
|
|
4
4
|
import { XMark, AlertTriangle, InformationCircle, CheckmarkCircle, AlertCircle } from '@box/blueprint-web-assets/icons/Medium';
|
|
5
|
-
import { bpIconIconOnLight, bpSize050
|
|
5
|
+
import { bpIconIconOnLight, bpSize050 } from '@box/blueprint-web-assets/tokens/tokens';
|
|
6
6
|
import * as Toast from '@radix-ui/react-toast';
|
|
7
7
|
import clsx from 'clsx';
|
|
8
8
|
import { useMemo } from 'react';
|
|
9
|
-
import { useBlueprintModernization } from '../../blueprint-modernization-context/useBlueprintModernization.js';
|
|
10
9
|
import { IconButton } from '../icon-button/icon-button.js';
|
|
11
10
|
import styles from './notification.module.js';
|
|
12
11
|
|
|
13
|
-
const createLegacyIconProps = iconLabel => ({
|
|
14
|
-
className: styles.typeIcon,
|
|
15
|
-
'aria-label': iconLabel,
|
|
16
|
-
width: Size5,
|
|
17
|
-
height: Size5
|
|
18
|
-
});
|
|
19
|
-
const getLegacyIcon = (iconLabel, variant) => {
|
|
20
|
-
const props = createLegacyIconProps(iconLabel);
|
|
21
|
-
switch (variant) {
|
|
22
|
-
case 'error':
|
|
23
|
-
return jsx(AlertBadge, {
|
|
24
|
-
...props
|
|
25
|
-
});
|
|
26
|
-
case 'success':
|
|
27
|
-
return jsx(CheckmarkBadge, {
|
|
28
|
-
...props
|
|
29
|
-
});
|
|
30
|
-
case 'info':
|
|
31
|
-
return jsx(InfoBadge, {
|
|
32
|
-
...props
|
|
33
|
-
});
|
|
34
|
-
case 'warning':
|
|
35
|
-
return jsx(AlertTriangle$1, {
|
|
36
|
-
...props
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
return null;
|
|
40
|
-
};
|
|
41
12
|
const createIconProps = iconLabel => ({
|
|
42
13
|
className: styles.typeIcon,
|
|
43
14
|
'aria-label': iconLabel,
|
|
@@ -87,14 +58,12 @@ function PrivateNotificationElement(props) {
|
|
|
87
58
|
children,
|
|
88
59
|
...rest
|
|
89
60
|
} = props;
|
|
90
|
-
const
|
|
91
|
-
|
|
92
|
-
} = useBlueprintModernization();
|
|
93
|
-
const iconComponent = useMemo(() => enableModernizedComponents ? getIcon(typeIconAriaLabel, variant) : getLegacyIcon(typeIconAriaLabel, variant), [typeIconAriaLabel, variant, enableModernizedComponents]);
|
|
61
|
+
const enableModernizedComponents = true;
|
|
62
|
+
const iconComponent = useMemo(() => getIcon(typeIconAriaLabel, variant) , [typeIconAriaLabel, variant, enableModernizedComponents]);
|
|
94
63
|
return jsx(Toast.Root, {
|
|
95
64
|
...rest,
|
|
96
65
|
className: clsx(styles.root, styles[variant]),
|
|
97
|
-
"data-modern":
|
|
66
|
+
"data-modern": 'true' ,
|
|
98
67
|
onOpenChange: onClose,
|
|
99
68
|
open: open,
|
|
100
69
|
type: sensitivity,
|
|
@@ -126,7 +95,7 @@ function PrivateNotificationElement(props) {
|
|
|
126
95
|
children: jsx(IconButton, {
|
|
127
96
|
"aria-label": closeButtonAriaLabel,
|
|
128
97
|
className: styles.closeButton,
|
|
129
|
-
icon:
|
|
98
|
+
icon: XMark ,
|
|
130
99
|
onClick: onClose
|
|
131
100
|
})
|
|
132
101
|
})
|
|
@@ -135,4 +104,4 @@ function PrivateNotificationElement(props) {
|
|
|
135
104
|
});
|
|
136
105
|
}
|
|
137
106
|
|
|
138
|
-
export { PrivateNotificationElement, createIconProps,
|
|
107
|
+
export { PrivateNotificationElement, createIconProps, getIcon };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { forwardRef, createElement } from 'react';
|
|
4
|
-
import { useBlueprintModernization } from '../../blueprint-modernization-context/useBlueprintModernization.js';
|
|
5
4
|
import { usePageStoreRef } from '../../page/page-context.js';
|
|
6
5
|
import styles from './page-header.module.js';
|
|
7
6
|
|
|
@@ -14,9 +13,7 @@ const PageHeaderRoot = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
14
13
|
sticky = true,
|
|
15
14
|
...rest
|
|
16
15
|
} = props;
|
|
17
|
-
const
|
|
18
|
-
enableModernizedComponents
|
|
19
|
-
} = useBlueprintModernization();
|
|
16
|
+
const enableModernizedComponents = true;
|
|
20
17
|
return /*#__PURE__*/createElement(as, {
|
|
21
18
|
...rest,
|
|
22
19
|
ref: forwardedRef,
|
|
@@ -4,7 +4,6 @@ import * as RadixPopover from '@radix-ui/react-popover';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { forwardRef, useContext, useState, useMemo, useCallback } from 'react';
|
|
6
6
|
import { useBlueprintConfiguration } from '../../blueprint-configuration-context/useBlueprintConfiguration.js';
|
|
7
|
-
import { useBlueprintModernization } from '../../blueprint-modernization-context/useBlueprintModernization.js';
|
|
8
7
|
import { Card } from '../../card/card.js';
|
|
9
8
|
import { useBreakpoint, Breakpoint } from '../../utils/useBreakpoint.js';
|
|
10
9
|
import { useContentSizeObserver } from '../../utils/useContentSizeObserver.js';
|
|
@@ -35,9 +34,6 @@ const PopoverContentContainer = /*#__PURE__*/forwardRef((props, forwardedRef) =>
|
|
|
35
34
|
const {
|
|
36
35
|
isInteractionDisabled
|
|
37
36
|
} = useContext(PopoverModalityContext);
|
|
38
|
-
const {
|
|
39
|
-
enableModernizedComponents
|
|
40
|
-
} = useBlueprintModernization();
|
|
41
37
|
const {
|
|
42
38
|
componentsWithAnimationEnabled
|
|
43
39
|
} = useBlueprintConfiguration();
|
|
@@ -68,7 +64,7 @@ const PopoverContentContainer = /*#__PURE__*/forwardRef((props, forwardedRef) =>
|
|
|
68
64
|
[styles.accessibilitySmallBreakpoint]: accessibilitySmallBreakpoint
|
|
69
65
|
}, className),
|
|
70
66
|
collisionPadding: collisionPadding,
|
|
71
|
-
"data-modern":
|
|
67
|
+
"data-modern": 'true' ,
|
|
72
68
|
"data-bp-animated": isAnimationEnabled ? 'true' : 'false',
|
|
73
69
|
onOpenAutoFocus: handleOpenAutoFocus,
|
|
74
70
|
children: jsx(PopoverOverflowContext.Provider, {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { CompositeItem, Button } from '@ariakit/react';
|
|
3
|
-
import { Gray05, bpSize060, bpSize040,
|
|
3
|
+
import { Gray05, bpSize060, bpSize040, BrandDocgenPrimary, BrandFormsPrimary, BrandSignPrimary, BrandBoxPrimary, bpIconIconOnLight } from '@box/blueprint-web-assets/tokens/tokens';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import Color from 'color';
|
|
6
6
|
import { forwardRef, createElement } from 'react';
|
|
7
|
-
import { useBlueprintModernization } from '../../blueprint-modernization-context/useBlueprintModernization.js';
|
|
8
7
|
import { Ghost } from '../../ghost/ghost.js';
|
|
9
8
|
import { Text } from '../../text/text.js';
|
|
10
9
|
import { Tooltip } from '../../tooltip/tooltip.js';
|
|
@@ -38,9 +37,6 @@ const SelectMenuGridOption = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
38
37
|
disabled,
|
|
39
38
|
...restProps
|
|
40
39
|
} = props;
|
|
41
|
-
const {
|
|
42
|
-
enableModernizedComponents
|
|
43
|
-
} = useBlueprintModernization();
|
|
44
40
|
const isWithLabel = variant === 'labeled';
|
|
45
41
|
const isButtonDisabled = disabled || loading;
|
|
46
42
|
const isButtonActive = !disabled && !loading && active;
|
|
@@ -73,7 +69,7 @@ const SelectMenuGridOption = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
73
69
|
[styles.active]: isButtonActive,
|
|
74
70
|
[styles.dragging]: isButtonDragged
|
|
75
71
|
}),
|
|
76
|
-
"data-modern":
|
|
72
|
+
"data-modern": 'true' ,
|
|
77
73
|
disabled: isButtonDisabled,
|
|
78
74
|
children: [variant === 'colorCircle' && jsx(ColorSwatch, {
|
|
79
75
|
color: color || '',
|
|
@@ -91,7 +87,7 @@ const SelectMenuGridOption = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
91
87
|
[styles.withLabel]: isWithLabel,
|
|
92
88
|
[styles['withLabel--default']]: isWithLabel && props.size === 'default'
|
|
93
89
|
}),
|
|
94
|
-
"data-modern":
|
|
90
|
+
"data-modern": 'true' ,
|
|
95
91
|
role: "gridcell",
|
|
96
92
|
children: [shouldShowTooltip && jsx(Tooltip, {
|
|
97
93
|
"aria-hidden": true,
|
|
@@ -140,13 +136,6 @@ const Icon = ({
|
|
|
140
136
|
})
|
|
141
137
|
});
|
|
142
138
|
};
|
|
143
|
-
const iconColor = {
|
|
144
|
-
default: Gray100,
|
|
145
|
-
box: BoxBlue100,
|
|
146
|
-
sign: DarkBlue100,
|
|
147
|
-
forms: GreenLight100,
|
|
148
|
-
docgen: Grimace100
|
|
149
|
-
};
|
|
150
139
|
const iconColorModern = {
|
|
151
140
|
default: bpIconIconOnLight,
|
|
152
141
|
box: BrandBoxPrimary,
|
|
@@ -154,10 +143,6 @@ const iconColorModern = {
|
|
|
154
143
|
forms: BrandFormsPrimary,
|
|
155
144
|
docgen: BrandDocgenPrimary
|
|
156
145
|
};
|
|
157
|
-
const iconSize = {
|
|
158
|
-
default: Size4,
|
|
159
|
-
large: Size6
|
|
160
|
-
};
|
|
161
146
|
const iconSizeModern = {
|
|
162
147
|
default: bpSize040,
|
|
163
148
|
large: bpSize060
|
|
@@ -169,13 +154,10 @@ const ItemWithLabel = ({
|
|
|
169
154
|
description,
|
|
170
155
|
icon
|
|
171
156
|
}) => {
|
|
172
|
-
const {
|
|
173
|
-
enableModernizedComponents
|
|
174
|
-
} = useBlueprintModernization();
|
|
175
157
|
const iconElement = /*#__PURE__*/createElement(icon, {
|
|
176
|
-
color:
|
|
177
|
-
width:
|
|
178
|
-
height:
|
|
158
|
+
color: iconColorModern[colorVariant] ,
|
|
159
|
+
width: iconSizeModern[size] ,
|
|
160
|
+
height: iconSizeModern[size] ,
|
|
179
161
|
role: 'presentation'
|
|
180
162
|
});
|
|
181
163
|
return jsxs(Fragment, {
|