From 480e00ca294a0c87c3bed29bf17a3b6b8c772e84 Mon Sep 17 00:00:00 2001 From: Charles Hansen Date: Mon, 29 Feb 2016 13:58:04 -0800 Subject: [PATCH] wip - lists Signed-off-by: Elena Sharma --- library/src/pivotal-ui-react/lists/lists.js | 1 + library/src/pivotal-ui/components/bootstrap/index.js | 4 ++++ library/src/pivotal-ui/components/lists/index.js | 5 +++++ library/src/pivotal-ui/components/lists/package.json | 1 - library/src/pivotal-ui/components/typography/index.js | 5 +++++ library/templates/css/package.json.js | 1 + 6 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 library/src/pivotal-ui/components/bootstrap/index.js create mode 100644 library/src/pivotal-ui/components/lists/index.js create mode 100644 library/src/pivotal-ui/components/typography/index.js diff --git a/library/src/pivotal-ui-react/lists/lists.js b/library/src/pivotal-ui-react/lists/lists.js index 1cb2d544b..da6be313c 100644 --- a/library/src/pivotal-ui-react/lists/lists.js +++ b/library/src/pivotal-ui-react/lists/lists.js @@ -1,5 +1,6 @@ var React = require('react'); import classnames from 'classnames'; +import 'pui-css-lists'; var ListItem = React.createClass({ render: function() { diff --git a/library/src/pivotal-ui/components/bootstrap/index.js b/library/src/pivotal-ui/components/bootstrap/index.js new file mode 100644 index 000000000..c7358866f --- /dev/null +++ b/library/src/pivotal-ui/components/bootstrap/index.js @@ -0,0 +1,4 @@ +try { + require('./bootstrap.css'); +} catch(e) { +} diff --git a/library/src/pivotal-ui/components/lists/index.js b/library/src/pivotal-ui/components/lists/index.js new file mode 100644 index 000000000..89a87b05a --- /dev/null +++ b/library/src/pivotal-ui/components/lists/index.js @@ -0,0 +1,5 @@ +try { + require('pui-css-typography'); + require('./lists.css'); +} catch(e) { +} diff --git a/library/src/pivotal-ui/components/lists/package.json b/library/src/pivotal-ui/components/lists/package.json index c91ad5e81..bbdc4f945 100644 --- a/library/src/pivotal-ui/components/lists/package.json +++ b/library/src/pivotal-ui/components/lists/package.json @@ -1,7 +1,6 @@ { "homepage": "http://styleguide.pivotal.io/", "dependencies": { - "pui-css-bootstrap": "^3.2.0", "pui-css-typography": "^3.2.0" }, "version": "3.2.0" diff --git a/library/src/pivotal-ui/components/typography/index.js b/library/src/pivotal-ui/components/typography/index.js new file mode 100644 index 000000000..d0d0484ae --- /dev/null +++ b/library/src/pivotal-ui/components/typography/index.js @@ -0,0 +1,5 @@ +try { + require('pui-css-bootstrap'); + require('./typography.css'); +} catch(e) { +} diff --git a/library/templates/css/package.json.js b/library/templates/css/package.json.js index 8bbdeccea..c218465a9 100644 --- a/library/templates/css/package.json.js +++ b/library/templates/css/package.json.js @@ -3,6 +3,7 @@ var packageTemplate = function(name, overrides) { name: `pui-css-${name}`, style: `${name}.css`, version: '0.0.1', + main: 'index.js', description: `${name} css component for Pivotal UI based on Bootstrap`, repository: { type: 'git',