@bigbinary/neetoui 5.2.46 → 6.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/layouts.js CHANGED
@@ -5016,11 +5016,12 @@ var Avatar = function Avatar(_ref) {
5016
5016
  var isMedium = size === "medium";
5017
5017
  var isLarge = size === "large";
5018
5018
  var isExtraLarge = size === "extraLarge";
5019
- var imageContainerStyle = {
5020
- height: SIZE[size],
5021
- width: SIZE[size]
5022
- };
5023
- var imageClasses = classnames("neeto-ui-avatar ", {
5019
+ var containerClasses = classnames("neeto-ui-avatar__container neeto-ui-select-none", {
5020
+ "neeto-ui-avatar__container--medium": isMedium,
5021
+ "neeto-ui-avatar__container--large": isLarge,
5022
+ "neeto-ui-avatar__container--xlarge": isExtraLarge
5023
+ }, className);
5024
+ var imageClasses = classnames("neeto-ui-avatar", {
5024
5025
  "neeto-ui-avatar--medium": isMedium,
5025
5026
  "neeto-ui-avatar--large": isLarge,
5026
5027
  "neeto-ui-avatar--xlarge": isExtraLarge,
@@ -5044,14 +5045,13 @@ var Avatar = function Avatar(_ref) {
5044
5045
  disabled: !showTooltip,
5045
5046
  position: "bottom"
5046
5047
  }, tooltipProps), /*#__PURE__*/React.createElement("span", _extends({
5047
- "data-testid": "avatar",
5048
- style: imageContainerStyle,
5049
- className: classnames("neeto-ui-avatar--container neeto-ui-select-none", className),
5050
- onClick: onClick
5048
+ onClick: onClick,
5049
+ className: containerClasses,
5050
+ "data-testid": "avatar"
5051
5051
  }, otherProps), /*#__PURE__*/React.createElement(Indicator, null), shouldDisplayFallbackAvatar ? /*#__PURE__*/React.createElement(FallbackAvatar, {
5052
+ name: name,
5052
5053
  className: "neeto-ui-avatar__svg",
5053
5054
  colors: COLOR_PALLETE,
5054
- name: name,
5055
5055
  size: SIZE[size],
5056
5056
  variant: AVATAR_VARIANT
5057
5057
  }) : /*#__PURE__*/React.createElement("img", {