@box/blueprint-web 17.11.5 → 17.12.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/avatar/avatar.js +2 -3
- package/dist/lib-esm/avatar/avatar.module.js +1 -1
- package/dist/lib-esm/avatar/consts.js +17 -17
- package/dist/lib-esm/components.css +364 -652
- package/dist/lib-esm/data-table/data-table.module.js +1 -1
- package/dist/lib-esm/index.css +364 -652
- package/dist/lib-esm/list-item/main.module.js +1 -1
- package/dist/lib-esm/primitives/notification/notification.module.js +1 -1
- package/dist/lib-esm/primitives/notification/private-notification-element.d.ts +2 -3
- package/dist/lib-esm/primitives/notification/private-notification-element.js +2 -6
- package/dist/lib-esm/status/consts.js +17 -17
- package/dist/lib-esm/status/status.js +0 -1
- package/dist/lib-esm/status/status.module.js +1 -1
- package/dist/lib-esm/tooltip/tooltip.js +4 -5
- package/dist/lib-esm/tooltip/tooltip.module.js +1 -1
- package/dist/lib-esm/tooltip/types.d.ts +0 -3
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Avatar as Avatar$1 } from '@box/blueprint-web-assets/icons/Line';
|
|
3
|
-
import {
|
|
3
|
+
import { bpGrayBlack } from '@box/blueprint-web-assets/tokens/tokens';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import React__default, { forwardRef, useState, useEffect } from 'react';
|
|
6
6
|
import { getContrastTextColor } from '../utils/getContrastTextColor.js';
|
|
@@ -58,7 +58,7 @@ const Avatar = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
58
58
|
}), shouldShowAnonymousAvatar && jsx("div", {
|
|
59
59
|
className: styles.anonymousAvatar,
|
|
60
60
|
children: jsx(Avatar$1, {
|
|
61
|
-
color:
|
|
61
|
+
color: bpGrayBlack,
|
|
62
62
|
height: iconSize,
|
|
63
63
|
role: "presentation",
|
|
64
64
|
width: iconSize
|
|
@@ -83,7 +83,6 @@ const Avatar = /*#__PURE__*/forwardRef((props, forwardedRef) => {
|
|
|
83
83
|
});
|
|
84
84
|
return jsx("div", {
|
|
85
85
|
className: clsx(styles.avatar, styles[size], className),
|
|
86
|
-
"data-modern": 'true' ,
|
|
87
86
|
children: avatarContents
|
|
88
87
|
});
|
|
89
88
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import '../index.css';
|
|
2
|
-
var styles = {"avatar":"bp_avatar_module_avatar--
|
|
2
|
+
var styles = {"avatar":"bp_avatar_module_avatar--ead05","text":"bp_avatar_module_text--ead05","xsmall":"bp_avatar_module_xsmall--ead05","length-1":"bp_avatar_module_length-1--ead05","length-2":"bp_avatar_module_length-2--ead05","small":"bp_avatar_module_small--ead05","medium":"bp_avatar_module_medium--ead05","large":"bp_avatar_module_large--ead05","length-3":"bp_avatar_module_length-3--ead05","length-4":"bp_avatar_module_length-4--ead05","xlarge":"bp_avatar_module_xlarge--ead05","xxlarge":"bp_avatar_module_xxlarge--ead05","badge":"bp_avatar_module_badge--ead05","image":"bp_avatar_module_image--ead05","loading":"bp_avatar_module_loading--ead05","anonymousAvatar":"bp_avatar_module_anonymousAvatar--ead05","iconContainer":"bp_avatar_module_iconContainer--ead05"};
|
|
3
3
|
|
|
4
4
|
export { styles as default };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { bpSize090, bpSize070, bpSize050, bpSize040, bpSize030, bpSize020, bpGrimace50, bpOrange50, bpPurpleRain50, bpWatermelonRed50, bpLightBlue50, bpYellorange50, bpGreenLight50, bpYellow50, bpDarkBlue100, bpBoxBlue50 } from '@box/blueprint-web-assets/tokens/tokens';
|
|
2
2
|
|
|
3
3
|
const iconSizes = {
|
|
4
|
-
xsmall:
|
|
5
|
-
small:
|
|
6
|
-
medium:
|
|
7
|
-
large:
|
|
8
|
-
xlarge:
|
|
9
|
-
xxlarge:
|
|
4
|
+
xsmall: bpSize020,
|
|
5
|
+
small: bpSize030,
|
|
6
|
+
medium: bpSize040,
|
|
7
|
+
large: bpSize050,
|
|
8
|
+
xlarge: bpSize070,
|
|
9
|
+
xxlarge: bpSize090
|
|
10
10
|
};
|
|
11
11
|
const colorsMap = {
|
|
12
|
-
BoxBlue50,
|
|
13
|
-
DarkBlue100,
|
|
14
|
-
Yellow50,
|
|
15
|
-
GreenLight50,
|
|
16
|
-
Yellorange50,
|
|
17
|
-
LightBlue50,
|
|
18
|
-
WatermelonRed50,
|
|
19
|
-
PurpleRain50,
|
|
20
|
-
Orange50,
|
|
21
|
-
Grimace50
|
|
12
|
+
BoxBlue50: bpBoxBlue50,
|
|
13
|
+
DarkBlue100: bpDarkBlue100,
|
|
14
|
+
Yellow50: bpYellow50,
|
|
15
|
+
GreenLight50: bpGreenLight50,
|
|
16
|
+
Yellorange50: bpYellorange50,
|
|
17
|
+
LightBlue50: bpLightBlue50,
|
|
18
|
+
WatermelonRed50: bpWatermelonRed50,
|
|
19
|
+
PurpleRain50: bpPurpleRain50,
|
|
20
|
+
Orange50: bpOrange50,
|
|
21
|
+
Grimace50: bpGrimace50
|
|
22
22
|
};
|
|
23
23
|
const colors = Object.values(colorsMap);
|
|
24
24
|
|