New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@jouwomgeving/ui-avatar

Package Overview
Dependencies
Maintainers
4
Versions
186
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jouwomgeving/ui-avatar - npm Package Compare versions

Comparing version 0.0.1-alpha.ef7bf050 to 0.0.1-alpha.f9f3c93a

2

dist/bundle.js

@@ -1,1 +0,1 @@

module.exports=function(e){function t(n){if(r[n])return r[n].exports;var u=r[n]={i:n,l:!1,exports:{}};return e[n].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var r={};return t.m=e,t.c=r,t.i=function(e){return e},t.d=function(e,t,r){Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=1727)}({0:function(e,t){e.exports=require("react")},1514:function(e,t,r){var n,u;!function(){"use strict";function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var u=typeof n;if("string"===u||"number"===u)e.push(this&&this[n]||n);else if(Array.isArray(n))e.push(r.apply(this,n));else if("object"===u)for(var a in n)o.call(n,a)&&n[a]&&e.push(this&&this[a]||a)}}return e.join(" ")}var o={}.hasOwnProperty;"undefined"!=typeof e&&e.exports?e.exports=r:(n=[],u=function(){return r}.apply(t,n),!(void 0!==u&&(e.exports=u)))}()},1515:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var u=r(1520),o=n(u),a=r(1518),l=n(a),s=function(e){var t=(0,l.default)(e);return function(r,n){return(0,o.default)(!1,t,e,r,n)}};t.default=s},1516:function(e,t,r){"use strict";t.__esModule=!0;var n=function(e,t){arguments.length<=2||void 0===arguments[2]||arguments[2],!(arguments.length<=3||void 0===arguments[3])&&arguments[3];return e};t.default=n},1517:function(e,t){"use strict";t.__esModule=!0;var r=function(e){return Boolean(e&&e.prototype&&"object"==typeof e.prototype.isReactComponent)};t.default=r},1518:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var u=r(1517),o=n(u),a=function(e){return Boolean(!("function"!=typeof e||(0,o.default)(e)||e.defaultProps||e.contextTypes||e.propTypes))};t.default=a},1519:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var u=r(1516),o=n(u),a=r(1515),l=n(a),s=function(e){return function(t){var r=(0,l.default)(t);return function(t){return r(e(t))}}};t.default=(0,o.default)(s,"mapProps")},1520:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=r(0),a=n(o),l=function(e,t,r,n,o){if(!e&&t)return r(o?u({},n,{children:o}):n);var l=r;return o?a.default.createElement(l,n,o):a.default.createElement(l,n)};t.default=l},1727:function(e,t,r){e.exports=r(323)},269:function(e,t){e.exports={Avatar:"styles---Avatar---3-CgN8dxiV",small:"styles---small---38I1_0QTlX",large:"styles---large---pePI3of3lo",Group:"styles---Group---34R8I3V5zI"}},323:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}var u=r(333),o=n(u),a=r(334),l=n(a);e.exports={"default":o.default,Avatar:o.default,Group:l.default}},333:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function u(e){return a.default.createElement("div",{className:d("Avatar",e.size)},e.src?a.default.createElement("img",{src:e.src,alt:e.name}):a.default.createElement(i.FontAwesome.FaUser,{size:p[e.size]}))}Object.defineProperty(t,"__esModule",{value:!0});var o=r(0),a=n(o),l=r(1514),s=n(l),i=r(!function(){var e=new Error('Cannot find module "ui-icon"');throw e.code="MODULE_NOT_FOUND",e}()),f=r(269),c=n(f),d=s.default.bind(c.default),p={small:14,medium:18,large:24};u.propTypes={size:o.PropTypes.oneOf(["small","medium","large"]),src:o.PropTypes.string,name:o.PropTypes.string},u.defaultProps={size:"medium",name:"Avatar"},t.default=u},334:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var u=r(0),o=n(u),a=r(1519),l=n(a),s=r(269),i=n(s),f=(0,l.default)(function(e){var t=e.children,r=e.showMax,n=u.Children.toArray(t);return{show:n.slice(0,r-1),hide:n.slice(r-1)}}),c=f(function(e){var t=e.show,r=e.hide;return o.default.createElement("div",{className:i.default.Group},t,r.length>0&&o.default.createElement("div",null,r))});c.propTypes={children:u.PropTypes.any,showMax:u.PropTypes.number},c.defaultProps={showMax:3},c.displayName="Group",t.default=c}});
module.exports=function(e){function t(n){if(r[n])return r[n].exports;var u=r[n]={i:n,l:!1,exports:{}};return e[n].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var r={};return t.m=e,t.c=r,t.i=function(e){return e},t.d=function(e,t,r){Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=1945)}({0:function(e,t){e.exports=require("react")},1607:function(e,t,r){var n,u;!function(){"use strict";function r(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var u=typeof n;if("string"===u||"number"===u)e.push(this&&this[n]||n);else if(Array.isArray(n))e.push(r.apply(this,n));else if("object"===u)for(var a in n)o.call(n,a)&&n[a]&&e.push(this&&this[a]||a)}}return e.join(" ")}var o={}.hasOwnProperty;"undefined"!=typeof e&&e.exports?e.exports=r:(n=[],u=function(){return r}.apply(t,n),!(void 0!==u&&(e.exports=u)))}()},1608:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var u=r(1613),o=n(u),a=r(1611),s=n(a),l=function(e){var t=(0,s.default)(e);return function(r,n){return(0,o.default)(!1,t,e,r,n)}};t.default=l},1609:function(e,t,r){"use strict";t.__esModule=!0;var n=function(e,t){arguments.length<=2||void 0===arguments[2]||arguments[2],!(arguments.length<=3||void 0===arguments[3])&&arguments[3];return e};t.default=n},1610:function(e,t){"use strict";t.__esModule=!0;var r=function(e){return Boolean(e&&e.prototype&&"object"==typeof e.prototype.isReactComponent)};t.default=r},1611:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var u=r(1610),o=n(u),a=function(e){return Boolean(!("function"!=typeof e||(0,o.default)(e)||e.defaultProps||e.contextTypes||e.propTypes))};t.default=a},1612:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var u=r(1609),o=n(u),a=r(1608),s=n(a),l=function(e){return function(t){var r=(0,s.default)(t);return function(t){return r(e(t))}}};t.default=(0,o.default)(l,"mapProps")},1613:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}t.__esModule=!0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},o=r(0),a=n(o),s=function(e,t,r,n,o){if(!e&&t)return r(o?u({},n,{children:o}):n);var s=r;return o?a.default.createElement(s,n,o):a.default.createElement(s,n)};t.default=s},1942:function(e,t){e.exports=require("@jouwomgeving/ui-icon")},1945:function(e,t,r){e.exports=r(409)},310:function(e,t){e.exports={Avatar:"styles---Avatar---3-CgN8dxiV",small:"styles---small---38I1_0QTlX",large:"styles---large---pePI3of3lo",Group:"styles---Group---34R8I3V5zI"}},409:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}var u=r(421),o=n(u),a=r(422),s=n(a);e.exports={"default":o.default,Avatar:o.default,Group:s.default}},421:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}function u(e){return a.default.createElement("div",{className:d("Avatar",e.size)},e.src?a.default.createElement("img",{src:e.src,alt:e.name}):a.default.createElement(i.FontAwesome.FaUser,{size:p[e.size]}))}Object.defineProperty(t,"__esModule",{value:!0});var o=r(0),a=n(o),s=r(1607),l=n(s),i=r(1942),f=r(310),c=n(f),d=l.default.bind(c.default),p={small:14,medium:18,large:24};u.propTypes={size:o.PropTypes.oneOf(["small","medium","large"]),src:o.PropTypes.string,name:o.PropTypes.string},u.defaultProps={size:"medium",name:"Avatar"},t.default=u},422:function(e,t,r){"use strict";function n(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var u=r(0),o=n(u),a=r(1612),s=n(a),l=r(310),i=n(l),f=(0,s.default)(function(e){var t=e.children,r=e.showMax,n=u.Children.toArray(t);return{show:n.slice(0,r-1),hide:n.slice(r-1)}}),c=f(function(e){var t=e.show,r=e.hide;return o.default.createElement("div",{className:i.default.Group},t,r.length>0&&o.default.createElement("div",null,r))});c.propTypes={children:u.PropTypes.any,showMax:u.PropTypes.number},c.defaultProps={showMax:3},c.displayName="Group",t.default=c}});
{
"name": "@jouwomgeving/ui-avatar",
"version": "0.0.1-alpha.ef7bf050",
"version": "0.0.1-alpha.f9f3c93a",
"description": "",

@@ -17,4 +17,5 @@ "main": "dist/bundle.js",

"react": "^15.2.0",
"react-dom": "^15.2.0"
"react-dom": "^15.2.0",
"@jouwomgeving/ui-icon": "^0.0.1-alpha.f9f3c93a"
}
}
import React, { PropTypes } from 'react';
import classnames from 'classnames/bind';
import { FontAwesome } from 'ui-icon';
import { FontAwesome } from '@jouwomgeving/ui-icon';
import styles from './../styles.css';

@@ -24,3 +22,5 @@

/> :
<FontAwesome.FaUser size={faSizeMap[props.size]} />
<FontAwesome.FaUser
size={faSizeMap[props.size]}
/>
}

@@ -27,0 +27,0 @@ </div>

import React from 'react';
import { storiesOf } from '@kadira/storybook';
import Avatar from 'ui-avatar/index';
import 'ui-icon/dist/bundle.css';
import Avatar from 'ui-avatar';
const settings = {

@@ -7,0 +7,0 @@ source: true,

import React from 'react';
import { storiesOf } from '@kadira/storybook';
import Avatar from 'ui-avatar';
import Avatar from 'ui-avatar/index';

@@ -6,0 +6,0 @@ const settings = {

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