Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 9.6.0 #364

Merged
merged 164 commits into from
Oct 24, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
164 commits
Select commit Hold shift + click to select a range
797aea1
initial commit
jonrohan May 28, 2016
e5ac0e4
Description update
jonrohan May 28, 2016
f993449
Updating changelong
jonrohan May 28, 2016
091e2e7
percautions in case path is wrong
jonrohan May 29, 2016
408ea65
wrong url
jonrohan May 29, 2016
6489ad4
Updating lint rule to pull in static class list
jonrohan Jun 3, 2016
abc4de3
1.1.0
jonrohan Jun 3, 2016
1ac303e
initial commit
jonrohan Jun 14, 2016
1cebe43
Adding the rest of the rules to the docs
jonrohan Jun 14, 2016
f96b9cc
npm-debug.log in gitignore
jonrohan Jun 14, 2016
07d0435
Removing scss/at-extend-no-missing-placeholder
jonrohan Jun 14, 2016
7087a44
Adding eslint to lint js files
jonrohan Jul 5, 2016
b48eaf9
Merge pull request #1 from primer/github_eslint
jonrohan Jul 5, 2016
4d7247b
Updating eslint to conform to github eslint
jonrohan Jul 5, 2016
5c924e9
Merge pull request #2 from primer/github_eslint
jonrohan Jul 5, 2016
7086677
Don't allow any CSS features not supported by these browsers
jonrohan Jul 12, 2016
1127460
documenting the new config
jonrohan Jul 12, 2016
827b2f5
Updating dependency
jonrohan Jul 14, 2016
5eb373a
Updating utilities
jonrohan Jul 14, 2016
0eb7945
Updating to primer-utilities@0.5.0
jonrohan Jul 14, 2016
e596948
1.2.0
jonrohan Jul 14, 2016
d26485e
Updating config for stylelint 7.0.0
jonrohan Jul 14, 2016
ffef279
Merge branch 'master' into no_unsupported_browsers
jonrohan Jul 14, 2016
2322991
Fixing tests and making unsupported features a warning
jonrohan Jul 14, 2016
787d15e
forgot the tests
jonrohan Jul 14, 2016
295b5b6
Merge pull request #2 from primer/no_unsupported_browsers
jonrohan Jul 14, 2016
9cfaf28
1.1.0
jonrohan Jul 14, 2016
6bde201
chore(package): update dependencies
greenkeeperio-bot Aug 26, 2016
81eda60
chore(package): update dependencies
greenkeeperio-bot Aug 26, 2016
6e855eb
Merge pull request #4 from primer/greenkeeper-update-all
jonrohan Aug 26, 2016
ae1b73a
Merge pull request #3 from primer/greenkeeper-update-all
jonrohan Aug 26, 2016
9422a89
Adding selector-no-type
jonrohan Aug 30, 2016
625e484
chore(package): update primer-utilities to version 1.0.0
greenkeeperio-bot Sep 2, 2016
25e8e94
updating stylelint-scss
jonrohan Sep 6, 2016
2032864
Merge pull request #4 from primer/greenkeeper-primer-utilities-1.0.0
jonrohan Sep 6, 2016
10e2e60
:pencil: updating the changelog
jonrohan Sep 6, 2016
387e8c3
1.3.0
jonrohan Sep 6, 2016
096fb7e
stylelint-selector-no-utility@1.3.0
jonrohan Sep 6, 2016
e144d98
updating test data
jonrohan Sep 6, 2016
2a49363
Merge branch 'master' into selector_no_type
jonrohan Sep 6, 2016
f225739
Merge pull request #5 from primer/selector_no_type
jonrohan Sep 6, 2016
a49c35b
1.2.0
jonrohan Sep 6, 2016
eba8ba8
Prevent units in zero values
mdo Oct 10, 2016
d1c231f
Adding doc about no unit
jonrohan Oct 10, 2016
4ea00e6
Merge pull request #6 from primer/mdo-patch-1
jonrohan Oct 11, 2016
69af840
Updating changelog :pencil:
jonrohan Oct 11, 2016
5e80811
1.3.0
jonrohan Oct 11, 2016
7ffc51f
chore(package): update eslint-plugin-github to version 0.6.1
greenkeeperio-bot Oct 27, 2016
0a4ef52
chore(package): update eslint-plugin-github to version 0.6.1
greenkeeperio-bot Oct 27, 2016
99d693d
chore(package): update primer-utilities to version 2.0.0
greenkeeperio-bot Nov 3, 2016
826ee33
Merge pull request #8 from primer/greenkeeper-eslint-plugin-github-0.6.1
jonrohan Nov 8, 2016
7fc7288
For lint
jonrohan Nov 8, 2016
4b7e6f5
Merge pull request #6 from primer/greenkeeper-eslint-plugin-github-0.6.1
jonrohan Nov 8, 2016
259a84d
Merge pull request #7 from primer/greenkeeper-primer-utilities-2.0.0
jonrohan Nov 8, 2016
cea159d
1.4.0
jonrohan Nov 8, 2016
a9353eb
chore(package): update ava to version 0.17.0
greenkeeperio-bot Nov 17, 2016
543a8d7
Merge pull request #9 from primer/greenkeeper-ava-0.17.0
jonrohan Nov 17, 2016
125a3cd
chore(package): update primer-utilities to version 3.0.0
greenkeeperio-bot Nov 23, 2016
1a8a39f
Merge pull request #8 from primer/greenkeeper-primer-utilities-3.0.0
jonrohan Nov 29, 2016
aa5a278
1.5.0
jonrohan Nov 29, 2016
9865f4d
chore(package): update eslint-plugin-github to version 0.7.0
greenkeeperio-bot Dec 12, 2016
f8eb15c
Merge pull request #10 from primer/greenkeeper-eslint-plugin-github-0…
jonrohan Jan 1, 2017
e0f8ad3
Remove selector-class-pattern
jonrohan Jan 1, 2017
1f20dac
Use any version for dev dependencies
jonrohan Jan 1, 2017
618d672
Removing docs about the config
jonrohan Jan 1, 2017
b9c88d0
Updating dependency versions
jonrohan Jan 3, 2017
7bb2e10
Merge pull request #11 from primer/remove-class-pattern
jonrohan Jan 3, 2017
bb57130
Adding version changelog
jonrohan Jan 3, 2017
cfac2c6
1.4.0
jonrohan Jan 3, 2017
e95f591
chore(package): update eslint-plugin-github to version 0.8.0
greenkeeperio-bot Feb 1, 2017
0fe553e
replace declaration-block-properties-order rules (deprecated) by styl…
nguyenmanh1507 May 26, 2017
88997cd
install eslint-plugin-import locally
nguyenmanh1507 Jun 25, 2017
1429ea4
bump primer-utilities to latest
broccolini Jul 12, 2017
f9b06b6
improve wording on readme
broccolini Jul 12, 2017
bbb3db4
correct url for utilities package
broccolini Jul 12, 2017
f669ca6
Updating stylelint to the latest version
jonrohan Jul 12, 2017
9796fc2
bump version
broccolini Jul 12, 2017
ca5b3b2
Merge pull request #13 from primer/utils_4
broccolini Jul 12, 2017
45dcc8c
Merged
jonrohan Jul 12, 2017
55b243f
Merge pull request #13 from nguyenmanh1507/replace-deprecated-rules
broccolini Jul 12, 2017
d5e8628
bump patch
broccolini Jul 12, 2017
b998b8c
Merge branch 'master' into greenkeeper-eslint-plugin-github-0.8.0
broccolini Jul 12, 2017
a769b5c
Merge pull request #11 from primer/greenkeeper-eslint-plugin-github-0…
broccolini Jul 12, 2017
3995a16
Writing a test for deprecated config
jonrohan Jul 12, 2017
90bdb87
Merge branch 'master' into stylelint-update
jonrohan Jul 12, 2017
bb02a56
no errored
jonrohan Jul 12, 2017
93c6828
We don't need to test against primer-utilities
jonrohan Jul 12, 2017
1cdaf43
stylelint-no-unsupported-browser-features plugin
shawnbot Jul 12, 2017
0152e20
remove media-feature-no-missing-punctuation
shawnbot Jul 12, 2017
7bf694a
use rule-empty-line-before
shawnbot Jul 12, 2017
1823e4c
replace selector-no w/selector-max rules
shawnbot Jul 12, 2017
8d3b6f6
2.0.0-0
shawnbot Jul 14, 2017
8907ae9
reorder alphabetically
shawnbot Jul 14, 2017
f653796
Merge pull request #14 from primer/stylelint-update
shawnbot Jul 14, 2017
279305e
2.0.0
shawnbot Jul 14, 2017
18a153e
update changelog for 2.0.0
shawnbot Jul 14, 2017
4fa1baa
Merge pull request #15 from primer/changelog-2.0.0
shawnbot Jul 18, 2017
66b5349
browsers not picked up by plugin
jonrohan Aug 14, 2017
9e325b1
Using exact versions
jonrohan Aug 14, 2017
e69ad4f
Fixing eslint problems
jonrohan Aug 14, 2017
1f92198
Merge pull request #16 from primer/exclude-opera-mini
jonrohan Aug 14, 2017
dce5f59
2.0.1
jonrohan Aug 14, 2017
fc88001
Merge branch 'dev' into merge-9.4.0-dev
shawnbot Sep 21, 2017
72e979b
Merge pull request #352 from primer/merge-9.4.0-dev
shawnbot Sep 22, 2017
d2b8fcb
update to primer-utilities@4.8.0
shawnbot Oct 5, 2017
bedf0fe
1.7.0
shawnbot Oct 5, 2017
6d205e9
upgrade to stylelint-selector-no-utility@^1.7.0
shawnbot Oct 5, 2017
501eb87
2.1.0
shawnbot Oct 5, 2017
2d0c8f0
move typography to correct module
broccolini Oct 9, 2017
6e725f0
add build storybook script
broccolini Oct 9, 2017
78718ad
move everything to tools/stylelint-config-primer
shawnbot Oct 9, 2017
f88666d
Merge branch 'export-primer-css' of ../stylelint-config-primer into i…
shawnbot Oct 9, 2017
9a722ed
add tools modules
shawnbot Oct 9, 2017
fc7c1a8
remove old stylelint-config-primer stuff
shawnbot Oct 9, 2017
8ecebde
clean up styelint-config-primer/package.json
shawnbot Oct 9, 2017
ec3e005
bring back .eslintrc.json
shawnbot Oct 9, 2017
c698654
Moving to tools dir
jonrohan Oct 9, 2017
f17a727
Merge branch 'moving-day' of /Users/jonrohan/github/stylelint-selecto…
jonrohan Oct 9, 2017
fd2cb08
Finishing no-utility import
jonrohan Oct 9, 2017
7256ad0
update to latest @storybook/react
shawnbot Oct 9, 2017
0e8fd3c
add babel-preset-env and custom .babelrc
shawnbot Oct 9, 2017
367c079
use "full control" webpack config mode
shawnbot Oct 9, 2017
d91d9cd
simplify octicons story to get it working
shawnbot Oct 9, 2017
a854abd
output storybook to /build/
shawnbot Oct 9, 2017
99dc990
move generator-primer-module to /tools/
shawnbot Oct 10, 2017
bcf156c
a new suite of RC tools
shawnbot Oct 10, 2017
a430a0d
Merge pull request #365 from primer/import-stylelint
shawnbot Oct 10, 2017
6153ae9
move generator-primer-module to /tools/
shawnbot Oct 10, 2017
84dad05
add npm@5 package-lock.json
shawnbot Oct 10, 2017
053c9f1
Merge branch 'master' into release-9.6.0
shawnbot Oct 11, 2017
6b8911c
kill package-lock.json
shawnbot Oct 11, 2017
4cc771a
fix primer-support version in primer-dropdown
shawnbot Oct 11, 2017
2c7e1ac
use exact version of no-utility rule in stylelint-config-primer
shawnbot Oct 11, 2017
07a6560
add version check script
shawnbot Oct 11, 2017
71588ac
upgrade to lerna@2.4.0
shawnbot Oct 11, 2017
d788b5b
update lerna.json
shawnbot Oct 11, 2017
88b1547
add script to check that imports match dependencies
shawnbot Oct 11, 2017
fdd90eb
cleaner output
shawnbot Oct 11, 2017
f856a1c
add missing imported dependencies
shawnbot Oct 11, 2017
3b75397
add distclean run-script
shawnbot Oct 11, 2017
61be6fc
add primer-dropdown to primer-css
shawnbot Oct 11, 2017
7e55be2
ignore package-lock.json for now
shawnbot Oct 11, 2017
34bac11
clean up on check-imports
shawnbot Oct 12, 2017
b193125
add check for missing primer-css dependencies
shawnbot Oct 12, 2017
7413bcf
add commit status notifications
shawnbot Oct 12, 2017
2a44a63
really publish to npm
shawnbot Oct 12, 2017
0883140
pass env vars to script/notify
shawnbot Oct 12, 2017
db7474c
just put objects in the changed Set
shawnbot Oct 12, 2017
21d19f0
update compare-published to work w/multiple module dirs
shawnbot Oct 12, 2017
9fef0d2
Merge branch 'release-9.6.0' into better-rc
shawnbot Oct 12, 2017
38ec0af
Adding storybook gh-pages deploy
jonrohan Oct 16, 2017
9c38043
Merge branch 'release-9.6.0' into better-rc
shawnbot Oct 17, 2017
97f874c
Merge pull request #370 from primer/better-rc
jonrohan Oct 23, 2017
70db07d
📝 fix typo
citrusui Oct 9, 2017
e7e243d
Using status here
jonrohan Oct 23, 2017
c1e20c3
Fixing octicons stories
jonrohan Oct 24, 2017
440824a
Changelog updates for 9.6.0
jonrohan Oct 24, 2017
0f6b7ae
Removing primer-dropdown from 9.6.0 release punting to 10
jonrohan Oct 24, 2017
eb522da
Revert moving breadcrumb punting to v10
jonrohan Oct 24, 2017
7bbcd43
Adding breadcrumb back
jonrohan Oct 24, 2017
7576359
Wrong order
jonrohan Oct 24, 2017
0f78e6a
Fix generator path
jonrohan Oct 24, 2017
711c1d5
Publish
jonrohan Oct 24, 2017
880f89f
fail safely on rc
jonrohan Oct 24, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
.DS_Store
.sass-cache
node_modules
**/package-lock.json
*.log
build
_site
Expand Down
7 changes: 7 additions & 0 deletions .storybook/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"presets": [
"env",
"react",
"minify"
]
}
27 changes: 27 additions & 0 deletions .storybook/Octicon.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import React from 'react'
import {storiesOf} from '@storybook/react'
import octicons from 'octicons'
import SVGInline from 'react-svg-inline'

const Octicon = (props) => {
const {name} = props
if (name in octicons) {
return <SVGInline svg={octicons[name].toSVG(props)} />
} else {
throw new Error(`No such octicon: "${name}"!`)
}
}

const story = storiesOf('Octicons', module)

Object.keys(octicons).forEach(name => {
story.add(name, () => {
return (
<div>
<Octicon name={name} height="64" />
<Octicon name={name} height="32" />
<Octicon name={name} height="16" />
</div>
)
})
})
1 change: 1 addition & 0 deletions .storybook/addons.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import '@storybook/addon-options/register'
29 changes: 29 additions & 0 deletions .storybook/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import React from 'react'
import { configure, addDecorator } from '@storybook/react'
import { setOptions } from '@storybook/addon-options'
import '../modules/primer-css/index.scss'

setOptions({
name: 'Primer',
url: 'http://primercss.io/',
showDownPanel: false,
})

addDecorator(story => (
<div className='p-4'>
{story()}
</div>
))

const contexts = [
require.context('.', true, /\.js$/),
require.context('../modules', true, /stories.*\.js$/),
]

configure(() => {
contexts.forEach(context => {
context.keys()
.filter(key => !key.includes('node_modules'))
.forEach(context)
})
}, module)
45 changes: 45 additions & 0 deletions .storybook/lib/storiesFromMarkdown.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
import remark from 'remark'
import parents from 'unist-util-parents'
import select from 'unist-util-select'
import findBefore from 'unist-util-find-before'
import htmlToReact from 'html-to-react'
import parsePairs from 'parse-pairs'

const htmlParser = new htmlToReact.Parser()

const nodeToStory = (node, file) => {
const html = node.value
const element = htmlParser.parse(html)
const pairs = node.lang.replace(/^html\s*/, '')
const attrs = pairs.length ? parsePairs(pairs) : {}
const title = attrs.title || getPreviousHeading(node) ||
`story @ ${file}:${node.position.start.line}`
return {
title,
story: () => element,
attrs,
html,
file,
node,
}
}

const getPreviousHeading = node => {
const heading = findBefore(node.parent, node, 'heading')
return (heading && !heading.used)
? (heading.used = true, heading.children.map(c => c.value).join(''))
: undefined
}

export default req => {
return req.keys().reduce((stories, file) => {
const content = req(file)
const ast = parents(remark.parse(content))
const path = file.replace(/^\.\//, '')
return stories.concat(
select(ast, 'code[lang^=html]')
.map(node => nodeToStory(node, path))
.filter(({attrs}) => attrs.story !== "false")
)
}, [])
}
8 changes: 8 additions & 0 deletions .storybook/postcss.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// FIXME this should go away when we merge and release:
// <https://github.com/primer/primer-module-build/pull/19>
const plugins = require("primer-module-build/lib/.postcss.json")
delete plugins.use

module.exports = {
plugins,
}
2 changes: 2 additions & 0 deletions .storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<link rel="stylesheet" href="https://unpkg.com/primer-css@9.2.0/build/build.css">
<script src="https://github.com/site/assets/styleguide.js" async></script>
44 changes: 44 additions & 0 deletions .storybook/webpack.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
const path = require("path");

const modulesPath = path.resolve(__dirname, "../modules")

module.exports = (config, env) => {

if (env === 'PRODUCTION') {
config.plugins = config.plugins
.filter(plugin => plugin.constructor.name !== 'UglifyJsPlugin')
}

config.module.rules.push(
{
test: /\.md$/,
use: "raw-loader",
},
{
test: /\.scss$/,
loaders: [
"style-loader",
"css-loader",
{
loader: "postcss-loader",
options: {
config: {
path: require.resolve("./postcss.config.js"),
},
},
},
{
loader: "sass-loader",
options: {
includePaths: [
modulesPath,
],
}
},
],
include: modulesPath,
}
)

return config
}
3 changes: 0 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ env:
# github
- secure: "J+1oWjvvXjyrwkY/4IFWKdN/weFmQcPwlRuFG4R0Gb3rYe4nqtC9l68sJvmS8asc8dQMhOhcUZCH6sjvo7l2WD4NuK4umPSbs+rJNUsfbvH4pZjStQIj/3ll1OfQelGDWAYQWhIfciYY4F3Bp0ZWTfKOppLQ2AVIYu1fPVXDdlo="

before_script:
- lerna bootstrap

script:
- npm test

Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
# 9.6.0

### Added
- Storybook. We've added a storybook prototyping environment for testing components in seclusion. To start the server run `npm start`
- Adding yeoman generator for creating a primer module. `generator-primer-module`
- Importing `stylelint-config-primer` from https://github.com/primer/stylelint-config-primer/ into monorepo.
- Importing `stylelint-selector-no-utility` from https://github.com/primer/stylelint-selector-no-utility into monorepo.

### Changes
- Deployment and publishing scripts refinements.

# 9.5.0

### Added
Expand Down
5 changes: 3 additions & 2 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"lerna": "2.0.0-rc.5",
"lerna": "2.4.0",
"packages": [
"modules/*"
"modules/*",
"tools/*"
],
"version": "independent"
}
2 changes: 1 addition & 1 deletion modules/primer-alerts/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016 GitHub Inc.
Copyright (c) 2017 GitHub Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
10 changes: 5 additions & 5 deletions modules/primer-alerts/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.5.0",
"version": "1.5.1",
"name": "primer-alerts",
"description": "Flash messages, or alerts, inform users of successful or pending actions.",
"homepage": "http://primercss.io/",
Expand All @@ -21,13 +21,13 @@
"url": "https://github.com/primer/primer-css/issues"
},
"scripts": {
"build": "primer-module-build index.scss",
"build": "../../script/npm-run primer-module-build index.scss",
"prepare": "npm run build",
"lint": "stylelint **/*.scss -s scss",
"test": "npm-run-all -s build lint"
"lint": "../../script/lint-scss",
"test": "../../script/npm-run-all build lint"
},
"dependencies": {
"primer-support": "4.4.0"
"primer-support": "4.4.1"
},
"keywords": [
"alerts",
Expand Down
49 changes: 49 additions & 0 deletions modules/primer-alerts/stories/Flash.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
import React from 'react'
import { storiesOf } from '@storybook/react'

storiesOf('Flash alerts', module)
.add('flash', () => (
<div className='p-4'>
<div className='flash'>
flash
</div>
</div>
))
.add('flash-warn', () => (
<div className='p-4'>
<div className='flash flash-warn'>
flash-warn
</div>
</div>
))
.add('flash-error', () => (
<div className='p-4'>
<div className='flash flash-error'>
flash-error
</div>
</div>
))
.add('flash-success', () => (
<div className='p-4'>
<div className='flash flash-success'>
flash-success
</div>
</div>
))
.add('flash with action button', () => (
<div className='p-4'>
<div className="flash">
<button type="submit" className="btn btn-sm primary flash-action">Complete action</button>
Flash message with action here.
</div>
</div>
))
.add('flash-full', () => (
<div className='p-4'>
<div className="container-lg">
<div className="flash flash-full">
Full width flash message.
</div>
</div>
</div>
))
2 changes: 1 addition & 1 deletion modules/primer-avatars/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016 GitHub Inc.
Copyright (c) 2017 GitHub Inc.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
10 changes: 5 additions & 5 deletions modules/primer-avatars/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.4.0",
"version": "1.4.1",
"name": "primer-avatars",
"description": "Basic styles for user profile avatars.",
"homepage": "http://primercss.io/",
Expand All @@ -21,13 +21,13 @@
"url": "https://github.com/primer/primer-css/issues"
},
"scripts": {
"build": "primer-module-build index.scss",
"build": "../../script/npm-run primer-module-build index.scss",
"prepare": "npm run build",
"lint": "stylelint **/*.scss -s scss",
"test": "npm-run-all -s build lint"
"lint": "../../script/lint-scss",
"test": "../../script/npm-run-all build lint"
},
"dependencies": {
"primer-support": "4.4.0"
"primer-support": "4.4.1"
},
"keywords": [
"avatars",
Expand Down
64 changes: 64 additions & 0 deletions modules/primer-avatars/stories.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
import React from 'react'
import { storiesOf } from '@storybook/react'

storiesOf('Avatars', module)
.add('avatar', () => (
<img className='avatar' alt='Uncle Cat' width='72' height='72' src='https://user-images.githubusercontent.com/334891/29999089-2837c968-9009-11e7-92c1-6a7540a594d5.png'/>
))
.add('avatar-small', () => (
<img className='avatar avatar-small' width='32' height='32' src='https://user-images.githubusercontent.com/334891/29999089-2837c968-9009-11e7-92c1-6a7540a594d5.png'/>
))
.add('avatar-parent-child', () => (
<div>
<div className='avatar-parent-child float-left'>
<img className='avatar'width='48' height='48' src='https://user-images.githubusercontent.com/334891/29999089-2837c968-9009-11e7-92c1-6a7540a594d5.png'/>
<img className='avatar avatar-child' alt='Child cat' width='20' height='20' src='https://user-images.githubusercontent.com/334891/29999089-2837c968-9009-11e7-92c1-6a7540a594d5.png'/>
</div>
</div>
))
.add('avatar-stack', () => (
<div>
<div className='avatar-stack'>
<img className='avatar' alt='Uncle Cat' width='39' height='39' src='https://user-images.githubusercontent.com/334891/29999089-2837c968-9009-11e7-92c1-6a7540a594d5.png'/>
<img className='avatar' alt='Uncle Cat' width='39' height='39' src='https://user-images.githubusercontent.com/334891/29999089-2837c968-9009-11e7-92c1-6a7540a594d5.png'/>
<img className='avatar' alt='Uncle Cat' width='39' height='39' src='https://user-images.githubusercontent.com/334891/29999089-2837c968-9009-11e7-92c1-6a7540a594d5.png'/>
</div>
</div>

))
.add('CircleBadge--small', () => (
<div>
<a className='CircleBadge CircleBadge--small' href='#url' title='Travis CI'>
<img src='https://user-images.githubusercontent.com/334891/30004619-adc8ca86-90a0-11e7-8ccc-2322261d2ab1.png' className='CircleBadge-icon'/>
</a>
</div>
))
.add('CircleBadge--medium', () => (
<div>
<a className='CircleBadge CircleBadge--medium' href='#url' title='Travis CI'>
<img src='https://user-images.githubusercontent.com/334891/30004619-adc8ca86-90a0-11e7-8ccc-2322261d2ab1.png' className='CircleBadge-icon'/>
</a>
</div>
))
.add('CircleBadge--large', () => (
<div>
<a className='CircleBadge CircleBadge--large' href='#url' title='Travis CI'>
<img src='https://user-images.githubusercontent.com/334891/30004619-adc8ca86-90a0-11e7-8ccc-2322261d2ab1.png' className='CircleBadge-icon'/>
</a>
</div>
))
.add('DashedConnection', () => (
<div className='DashedConnection'>
<ul className='d-flex list-style-none flex-justify-between' aria-label='A sample GitHub workflow'>
<li className='CircleBadge CircleBadge--small' aria-label='GitHub'>
<img width='32' src='https://user-images.githubusercontent.com/334891/30004619-adc8ca86-90a0-11e7-8ccc-2322261d2ab1.png'/>
</li>
<li className='CircleBadge CircleBadge--small' aria-label='Slack'>
<img width='32' src='https://user-images.githubusercontent.com/334891/30004619-adc8ca86-90a0-11e7-8ccc-2322261d2ab1.png'/>
</li>
<li className='CircleBadge CircleBadge--small' aria-label='Travis CI'>
<img width='32' src='https://user-images.githubusercontent.com/334891/30004619-adc8ca86-90a0-11e7-8ccc-2322261d2ab1.png'/>
</li>
</ul>
</div>
))
Loading