@box/blueprint-web 17.11.4 → 17.12.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.
@@ -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 { GrayBlack } from '@box/blueprint-web-assets/tokens/tokens';
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: GrayBlack,
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--4ce4f","xsmall":"bp_avatar_module_xsmall--4ce4f","length-1":"bp_avatar_module_length-1--4ce4f","text":"bp_avatar_module_text--4ce4f","length-2":"bp_avatar_module_length-2--4ce4f","small":"bp_avatar_module_small--4ce4f","medium":"bp_avatar_module_medium--4ce4f","large":"bp_avatar_module_large--4ce4f","length-3":"bp_avatar_module_length-3--4ce4f","length-4":"bp_avatar_module_length-4--4ce4f","xlarge":"bp_avatar_module_xlarge--4ce4f","xxlarge":"bp_avatar_module_xxlarge--4ce4f","badge":"bp_avatar_module_badge--4ce4f","image":"bp_avatar_module_image--4ce4f","loading":"bp_avatar_module_loading--4ce4f","anonymousAvatar":"bp_avatar_module_anonymousAvatar--4ce4f","iconContainer":"bp_avatar_module_iconContainer--4ce4f"};
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 { Size9, Size7, Size5, Size4, Size3, Size2, Grimace50, Orange50, PurpleRain50, WatermelonRed50, LightBlue50, Yellorange50, GreenLight50, Yellow50, DarkBlue100, BoxBlue50 } from '@box/blueprint-web-assets/tokens/tokens';
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: Size2,
5
- small: Size3,
6
- medium: Size4,
7
- large: Size5,
8
- xlarge: Size7,
9
- xxlarge: Size9
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