Skip to content

Commit

Permalink
feat(actionmenu): text, icon, overflow, single-level
Browse files Browse the repository at this point in the history
  • Loading branch information
jaketrent committed Aug 31, 2017
1 parent 9842f30 commit 1f87156
Show file tree
Hide file tree
Showing 14 changed files with 611 additions and 0 deletions.
14 changes: 14 additions & 0 deletions packages/actionmenu/.babelrc
@@ -0,0 +1,14 @@
{
"plugins": [
"glamorous-displayname"
],
"presets": [
"react",
"stage-2",
["env", {
"targets": {
"browsers": ["last 2 versions", "ie >= 10"]
}
}]
]
}
2 changes: 2 additions & 0 deletions packages/actionmenu/.npmignore
@@ -0,0 +1,2 @@
__specs__
src
1 change: 1 addition & 0 deletions packages/actionmenu/.npmrc
@@ -0,0 +1 @@
package-lock=false
5 changes: 5 additions & 0 deletions packages/actionmenu/.storybook/addons.js
@@ -0,0 +1,5 @@
/* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions */

import '@storybook/addon-actions/register'
import '@storybook/addon-links/register'
import '@storybook/addon-backgrounds/register'
9 changes: 9 additions & 0 deletions packages/actionmenu/.storybook/config.js
@@ -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/actionmenu/.storybook/preview-head.html
@@ -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" />
5 changes: 5 additions & 0 deletions packages/actionmenu/CHANGELOG.md
@@ -0,0 +1,5 @@
# Change Log

All notable changes to this project will be documented in this file.
See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

3 changes: 3 additions & 0 deletions packages/actionmenu/index.js
@@ -0,0 +1,3 @@
const React = require('./dist/react')

module.exports = { React }
44 changes: 44 additions & 0 deletions packages/actionmenu/package.json
@@ -0,0 +1,44 @@
{
"name": "@pluralsight/ps-design-system-actionmenu",
"version": "1.0.0",
"description": "Design System component for actionmenu ui",
"main": "index.js",
"scripts": {
"build": "babel src --out-dir dist --ignore spec.js --copy-files",
"build:watch": "npm run build -- --watch",
"prepublish": "npm run build",
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook",
"test": "jest",
"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 < 16.0.0"
},
"dependencies": {
"@pluralsight/ps-design-system-core": "^2.4.2",
"@pluralsight/ps-design-system-icon": "^7.0.0",
"babel-plugin-glamorous-displayname": "^1.1.3",
"babel-preset-env": "^1.4.0",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-2": "^6.24.1",
"glamorous": "^4.1.0",
"prop-types": "^15.5.10"
},
"devDependencies": {
"@pluralsight/ps-design-system-button": "^8.0.1",
"@storybook/addon-backgrounds": "^3.0.0",
"@storybook/addon-storyshots": "^3.2.4",
"@storybook/react": "^3.2.3",
"babel-cli": "^6.24.1",
"jest": "^20.0.4",
"react-sizeme": "^2.3.4"
}
}
1 change: 1 addition & 0 deletions packages/actionmenu/react.js
@@ -0,0 +1 @@
module.exports = require('./dist/react')

0 comments on commit 1f87156

Please sign in to comment.