Skip to content

Commit

Permalink
feat(circularprogress): new component
Browse files Browse the repository at this point in the history
  • Loading branch information
jaketrent committed Jan 17, 2018
1 parent b718961 commit 0a23f24
Show file tree
Hide file tree
Showing 13 changed files with 787 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/circularprogress/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"presets": [
"react",
"stage-2",
["env", {
"targets": {
"browsers": ["last 2 versions", "ie >= 10"]
}
}]
]
}
3 changes: 3 additions & 0 deletions packages/circularprogress/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
__specs__
src
.babelrc
1 change: 1 addition & 0 deletions packages/circularprogress/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
4 changes: 4 additions & 0 deletions packages/circularprogress/.storybook/addons.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions */
import addons from '@storybook/addons'
import register from '@pluralsight/ps-design-system-storybook-addon-theme/register'
register(addons)
9 changes: 9 additions & 0 deletions packages/circularprogress/.storybook/config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions */

import { configure } from '@storybook/react'

function loadStories() {
require('../stories')
}

configure(loadStories, module)
2 changes: 2 additions & 0 deletions packages/circularprogress/.storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<link rel="stylesheet" href="https://cloud.typography.com/6966154/691568/css/fonts.css" />
<link rel="stylesheet" href="https://unpkg.com/@pluralsight/ps-design-system-normalize" />
3 changes: 3 additions & 0 deletions packages/circularprogress/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const React = require('./react')

module.exports = { React }
43 changes: 43 additions & 0 deletions packages/circularprogress/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"name": "@pluralsight/ps-design-system-circularprogress",
"version": "1.0.0",
"description": "Design System component for circular progress ui",
"main": "index.js",
"scripts": {
"build": "babel src --out-dir dist --ignore spec.js",
"build:watch": "npm run build -- --watch",
"prepublish": "npm run build",
"test": "jest",
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook",
"test:watch": "npm run test -- --watchAll",
"test:updateSnapshot": "npm run test -- --updateSnapshot"
},
"keywords": [],
"author": "jaketrent",
"license": "Apache-2.0",
"repository": "pluralsight/design-system",
"peerDependencies": {
"@pluralsight/ps-design-system-normalize": "^3.0.24",
"glamor": "^2.20.0",
"react": ">=0.15.0 < 17.0.0"
},
"dependencies": {
"@pluralsight/ps-design-system-core": "^4.0.2",
"@pluralsight/ps-design-system-theme": "^1.1.0",
"polished": "^1.7.0",
"prop-types": "^15.5.10"
},
"devDependencies": {
"@pluralsight/ps-design-system-storybook-addon-theme": "^1.1.9",
"@storybook/addon-storyshots": "3.2.14",
"@storybook/addons": "3.2.14",
"@storybook/react": "3.2.14",
"babel-cli": "^6.24.1",
"babel-preset-env": "^1.4.0",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-2": "^6.24.1",
"jest": "^20.0.4",
"react": "^16.2.0"
}
}
1 change: 1 addition & 0 deletions packages/circularprogress/react.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('./dist/react')
Loading

0 comments on commit 0a23f24

Please sign in to comment.