Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@os-design/core

Package Overview
Dependencies
Maintainers
1
Versions
481
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@os-design/core - npm Package Compare versions

Comparing version 1.0.236 to 1.0.237

9

dist/cjs/Avatar/index.js

@@ -17,3 +17,3 @@ "use strict";

var _strToHue = _interopRequireDefault(require("./utils/strToHue"));
var _excluded = ["firstName", "lastName", "image", "imageProps", "online", "size"];
var _excluded = ["firstName", "lastName", "image", "imageProps", "online", "size", "children"];
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5;

@@ -33,3 +33,3 @@ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }

}, _styles.sizeStyles);
var UserIcon = (0, _styled["default"])(_icons.User)(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n font-size: 0.6em;\n"])));
var IconContainer = _styled["default"].div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n font-size: 0.6em;\n line-height: 0.6;\n"])));
var Initials = _styled["default"].div(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n font-size: 0.35em;\n"])));

@@ -57,2 +57,3 @@ var INNER_SIZE = 0.25;

size = _ref$size === void 0 ? '2em' : _ref$size,
children = _ref.children,
rest = _objectWithoutProperties(_ref, _excluded);

@@ -88,3 +89,3 @@ var _useTheme = (0, _theming.useTheme)(),

// Otherwise render the user icon
return /*#__PURE__*/_react["default"].createElement(UserIcon, null);
return /*#__PURE__*/_react["default"].createElement(IconContainer, null, /*#__PURE__*/_react["default"].createElement(_icons.User, null));
}, [image, imageProps, firstName, lastName]);

@@ -99,3 +100,3 @@ return /*#__PURE__*/_react["default"].createElement(Container, {

ref: ref
}), renderChildren()), online && /*#__PURE__*/_react["default"].createElement(Online, null));
}), children ? /*#__PURE__*/_react["default"].createElement(IconContainer, null, children) : renderChildren()), online && /*#__PURE__*/_react["default"].createElement(Online, null));
});

@@ -102,0 +103,0 @@ Avatar.displayName = 'Avatar';

@@ -39,4 +39,5 @@ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }

`;
const UserIcon = styled(User)`
const IconContainer = styled.div`
font-size: 0.6em;
line-height: 0.6;
`;

@@ -79,2 +80,3 @@ const Initials = styled.div`

size = '2em',
children,
...rest

@@ -108,3 +110,3 @@ }, ref) => {

// Otherwise render the user icon
return /*#__PURE__*/React.createElement(UserIcon, null);
return /*#__PURE__*/React.createElement(IconContainer, null, /*#__PURE__*/React.createElement(User, null));
}, [image, imageProps, firstName, lastName]);

@@ -119,3 +121,3 @@ return /*#__PURE__*/React.createElement(Container, {

ref: ref
}), renderChildren()), online && /*#__PURE__*/React.createElement(Online, null));
}), children ? /*#__PURE__*/React.createElement(IconContainer, null, children) : renderChildren()), online && /*#__PURE__*/React.createElement(Online, null));
});

@@ -122,0 +124,0 @@ Avatar.displayName = 'Avatar';

{
"name": "@os-design/core",
"version": "1.0.236",
"version": "1.0.237",
"license": "UNLICENSED",

@@ -62,3 +62,3 @@ "repository": "git@gitlab.com:os-team/libs/os-design.git",

},
"gitHead": "472a5d2519bc0892befd10898920e0c5317eb54a"
"gitHead": "9724a7c0e9e501d993bb185b6894d6a2c3cf4ad8"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc