Skip to content

Commit

Permalink
cleaning up files
Browse files Browse the repository at this point in the history
  • Loading branch information
nashio committed Jul 2, 2017
1 parent 8240c12 commit 84fa9e5
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Boilerplate for creating React Npm packages with ES2015
# ract-tiny-tabs

The package is based on [npm-base](https://github.com/kadirahq/npm-base) package by [Kadira](https://github.com/kadirahq) which is really great when you want to prepare Npm package. This one is prepared to be used as a starter point for React components which needs to be published on Npm.

Expand Down
12 changes: 7 additions & 5 deletions examples/basic/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ const TabsDemo1 = () => (
const TabsDemo2 = () => (
<Tabs className="theme-box" settings={{index: 2, autoWrap: true}}>
<Nav className="your-class" role="tablist">
<div role="tab">First</div>
<div role="tab">Second</div>
<div role="tab">Third</div>
<div role="tab">First Section</div>
<div role="tab">Second Section</div>
<div role="tab">Third Section</div>
</Nav>
<Content>
<div>An office worker android arrives at a base station to do computer work. As he attempts to make friends with people in the office workplace, he is rejected and shunned because he is a robot. </div>
Expand All @@ -74,25 +74,27 @@ const TabsDemo3 = () => (
<div role="tab">Mercury</div>
<div>Venus</div>
<div>Earth</div>
<div>Jupiter</div>
</Nav>
<Content>
<div>First pane content paragraph placeholder box of text</div>
<div className="your-class">Second pane content is a paragraph type of placeholder container</div>
<div>Third pane content paragraph placeholder area</div>
<div>Jupiter is the fifth planet from the Sun and the largest in the Solar System</div>
</Content>
</Tabs>);


const TabsDemo4 = () => (
<Tabs className="theme-folder" settings={{bgColor: '#e0e6a4'}}>
<Tabs className="theme-folder" settings={{bgColor: 'lightPink', color: '#333'}}>
<Nav className="your-class" role="tablist">
<div role="tab"><img src={check} alt="check" className="tab-icon"/>First Tab</div>
<div><img src={check} alt="check" className="tab-icon"/>Second Tab</div>
<div><img src={check} alt="check" className="tab-icon"/>Third Tab</div>
<div><img src={check} alt="check" className="tab-icon"/>Fourth Tab</div>
</Nav>
<Content>
<div><p>To him it seemed, by comparison with his heartbeat, that the chandelier took the same amount of time to swing back and forth, no matter how far it was swinging. When he returned home, he set up two pendulums of equal length and swung one with a large sweep and the other with a small sweep and found that they kept time together. It was not until the work of Christiaan Huygens, almost one hundred years later</p></div>
<div><p>That the chandelier took the same amount of time to swing back and forth, no matter how far it was swinging. When he returned home, he set up two pendulums of equal length and swung one with a large sweep and the other with a small sweep and found that they kept time together. It was not until the work of Christiaan Huygens, almost one hundred years later</p></div>
<div><p>To him it seemed, by comparison with his heartbeat, that the chandelier took the same amount of time to swing back and forth, no matter how far it was swinging. When he returned home, he set up two pendulums of equal length and swung one with a large sweep and the other with a small sweep and found that they kept time together. It was not until the work of Christiaan Huygens, almost one hundred years later</p></div>
<div><p>Panel content goes To him it seemed, by comparison with his heartbeat, that the chandelier took the same amount of time to swing back and forth, no matter how far it was swinging. When he returned home, he set up two pendulums of equal length and swung one with a large sweep and the other with a small sweep and found that they kept time together. It was not until the work of Christiaan Huygens, almost one hundred years laterhere... #2</p></div>
<div><p>Panel content goes here.To him it seemed, by comparison with his heartbeat, that the chandelier took the same amount of time to swing back and forth, no matter how far it was swinging. When he returned home, he set up two pendulums of equal length and swung one with a large sweep and the other with a small sweep and found that they kept time together. It was not until the work of Christiaan Huygens, almost one hundred years later.. #3</p></div>
Expand Down
10 changes: 4 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,16 @@
},
"scripts": {
"start": "node_modules/.bin/webpack-dev-server --inline --host 0.0.0.0 --content-base examples/",
"prepublish": "npm run build-js",
"build-publish-css": "node-sass src/scss -o dist/css",
"build": "npm run build-js && npm run build-css",

"build-css": "node-sass src/scss -o dist/css",
"build-js": "babel --plugins transform-es2015-modules-umd src --ignore __tests__ --out-dir ./dist",

"lint": "eslint ./src",
"lintfix": "eslint ./src --fix",
"testonly": "mocha $npm_package_options_mocha",
"test": "npm run lint && npm run testonly",
"test-watch": "npm run testonly -- --watch --watch-extensions js",
"build-css": "node-sass src/scss -o lib/css",
"watch-css": "npm run build-css && node-sass src/scss -o lib/css --watch --recursive",
"start-js": "react-scripts start",
"start2": "npm-run-all -p watch-css start-js"
},
"devDependencies": {
"babel-cli": "^6.24.1",
Expand Down
5 changes: 3 additions & 2 deletions src/scss/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,13 @@ $theme1: #AAA;
}

&>.tab-panel {
background: $theme1;
color: black;
border: none;

background: none;
.tab-panel-item {
&.active {
background: $theme1;
border-radius: 0 0 5px 5px;
}
}
}
Expand Down

0 comments on commit 84fa9e5

Please sign in to comment.