@jouwomgeving/ui-avatar
Advanced tools
Comparing version 0.0.1-alpha.45a4fa31 to 0.0.1-alpha.499779ad
{ | ||
"name": "@jouwomgeving/ui-avatar", | ||
"version": "0.0.1-alpha.45a4fa31", | ||
"version": "0.0.1-alpha.499779ad", | ||
"description": "", | ||
"main": "dist/bundle.js", | ||
"main": "lib/index.js", | ||
"module": "es/index.js", | ||
"jsnext:main": "es/index.js", | ||
"scripts": { | ||
@@ -18,7 +20,7 @@ "test": "echo \"Error: no test specified\" && exit 1" | ||
"react-dom": "^15.2.0", | ||
"@jouwomgeving/ui-icon": "^0.0.1-alpha.45a4fa31", | ||
"@jouwomgeving/ui-popover": "^0.0.1-alpha.45a4fa31", | ||
"@jouwomgeving/ui-list": "^0.0.1-alpha.45a4fa31", | ||
"@jouwomgeving/ui-typography": "^0.0.1-alpha.45a4fa31" | ||
"@jouwomgeving/ui-icon": "^0.0.1-alpha.499779ad", | ||
"@jouwomgeving/ui-popover": "^0.0.1-alpha.499779ad", | ||
"@jouwomgeving/ui-list": "^0.0.1-alpha.499779ad", | ||
"@jouwomgeving/ui-typography": "^0.0.1-alpha.499779ad" | ||
} | ||
} |
import React, { PropTypes } from 'react'; | ||
import classnames from 'classnames/bind'; | ||
import { FontAwesome } from '@jouwomgeving/ui-icon'; | ||
import styles from './../styles.css'; | ||
import FaUser from '@jouwomgeving/ui-icon/FontAwesome/FaUser'; | ||
const styles = require('./../styles.css'); | ||
const cx = classnames.bind(styles); | ||
@@ -22,3 +23,3 @@ | ||
/> : | ||
<FontAwesome.FaUser | ||
<FaUser | ||
size={faSizeMap[props.size]} | ||
@@ -25,0 +26,0 @@ /> |
import React from 'react'; | ||
import { storiesOf } from '@kadira/storybook'; | ||
import Avatar from 'ui-avatar/index'; | ||
import 'ui-icon/dist/bundle.css'; | ||
import * as Avatar from '@jouwomgeving/ui-avatar'; | ||
@@ -16,3 +15,3 @@ const settings = { | ||
() => ( | ||
<Avatar.default | ||
<Avatar.Avatar | ||
size="small" | ||
@@ -25,3 +24,3 @@ src="https://placekitten.com/g/55/55" | ||
() => ( | ||
<Avatar.default | ||
<Avatar.Avatar | ||
size="medium" | ||
@@ -34,3 +33,3 @@ src="https://placekitten.com/g/100/100" | ||
() => ( | ||
<Avatar.default | ||
<Avatar.Avatar | ||
size="large" | ||
@@ -43,3 +42,3 @@ src="https://placekitten.com/g/200/200" | ||
() => ( | ||
<Avatar.default | ||
<Avatar.Avatar | ||
size="small" | ||
@@ -46,0 +45,0 @@ /> |
@@ -5,7 +5,9 @@ import React, { PropTypes, Children, cloneElement } from 'react'; | ||
import { PopOverContainer } from '@jouwomgeving/ui-popover'; | ||
import { Text } from '@jouwomgeving/ui-typography'; | ||
import List from '@jouwomgeving/ui-list'; | ||
import PopOverContainer from '@jouwomgeving/ui-popover/PopOverContainer'; | ||
import Text from '@jouwomgeving/ui-typography/Text'; | ||
import Container from '@jouwomgeving/ui-list/Container'; | ||
import Row from '@jouwomgeving/ui-list/Row'; | ||
import Cell from '@jouwomgeving/ui-list/Cell'; | ||
import styles from './../styles.css'; | ||
const styles = require('./../styles.css'); | ||
@@ -28,6 +30,6 @@ const cx = classNames.bind(styles); | ||
content={( | ||
<List.Container> | ||
<Container> | ||
{hide.map(avatar => ( | ||
<List.Row spacing="thin"> | ||
<List.Cell | ||
<Row spacing="thin"> | ||
<Cell | ||
vertical="center" | ||
@@ -37,11 +39,11 @@ size="2rem" | ||
{cloneElement(avatar, { size: 'small' })} | ||
</List.Cell> | ||
<List.Cell vertical="center"> | ||
</Cell> | ||
<Cell vertical="center"> | ||
<Text> | ||
{avatar.props.name} | ||
</Text> | ||
</List.Cell> | ||
</List.Row> | ||
</Cell> | ||
</Row> | ||
))} | ||
</List.Container> | ||
</Container> | ||
)} | ||
@@ -48,0 +50,0 @@ > |
@@ -6,3 +6,3 @@ import React from 'react'; | ||
import Avatar from 'ui-avatar/index'; | ||
import * as Avatar from '@jouwomgeving/ui-avatar'; | ||
@@ -9,0 +9,0 @@ const settings = { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
1000213
19
29872
3
9