├── .babelrc
├── src
├── style.css
└── index.js
├── .gitignore
├── webpack.config.js
├── package.json
└── README.md
/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["env", "react"],
3 | "plugins": [
4 | "transform-object-rest-spread",
5 | "transform-react-jsx"
6 | ]
7 | }
8 |
--------------------------------------------------------------------------------
/src/style.css:
--------------------------------------------------------------------------------
1 | .Timeline-line {
2 | z-index: -1;
3 | position: absolute;
4 | width: 3px;
5 | left: 0;
6 | right: 0;
7 | margin: auto;
8 | top: -2em;
9 | }
10 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/ignore-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 |
6 | # misc
7 | /build
8 | /dist
9 | .DS_Store
10 | .eslintrc.json
11 | .npmignore
12 |
13 | npm-debug.log*
14 | yarn-debug.log*
15 | yarn-error.log*
16 |
--------------------------------------------------------------------------------
/webpack.config.js:
--------------------------------------------------------------------------------
1 | const path = require('path');
2 | const HtmlWebpackPlugin = require("html-webpack-plugin");
3 | const htmlWebpackPlugin = new HtmlWebpackPlugin({
4 | template: path.join(__dirname, "examples/src/index.html"),
5 | filename: "./index.html"
6 | });
7 | module.exports = {
8 | entry: path.join(__dirname, "examples/src/index.js"),
9 | module: {
10 | rules: [
11 | {
12 | test: /\.(js|jsx)$/,
13 | use: "babel-loader",
14 | exclude: /node_modules/
15 | },
16 | {
17 | test: /\.css$/,
18 | use: ["style-loader", "css-loader"]
19 | }
20 | ]
21 | },
22 | plugins: [htmlWebpackPlugin],
23 | resolve: {
24 | extensions: [".js", ".jsx"]
25 | }
26 | };
27 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "react-timeline-semantic-ui",
3 | "version": "1.0.13",
4 | "description": "A react timeline component built with Semantic UI React",
5 | "main": "dist/index.js",
6 | "repository": {
7 | "type": "git",
8 | "url": "https://github.com/MichaelFerrari/react-timeline-semantic-ui"
9 | },
10 | "homepage": "https://github.com/MichaelFerrari/react-timeline-semantic-ui",
11 | "scripts": {
12 | "test": "echo \"Error: no test specified\" && exit 1",
13 | "start": "webpack-dev-server --mode development",
14 | "transpile": "babel src -d dist --copy-files",
15 | "build": "webpack"
16 | },
17 | "peerDependencies": {
18 | "react": "^16.4.2"
19 | },
20 | "dependencies": {
21 | "prop-types": "^15.6.2",
22 | "semantic-ui-css": "^2.3.3",
23 | "semantic-ui-react": "^0.82.2"
24 | },
25 | "devDependencies": {
26 | "babel-cli": "^6.26.0",
27 | "babel-core": "^6.26.3",
28 | "babel-loader": "^7.1.5",
29 | "babel-plugin-transform-object-rest-spread": "^6.23.0",
30 | "babel-plugin-transform-react-jsx": "^6.24.1",
31 | "babel-preset-env": "^1.7.0",
32 | "babel-preset-es2015": "^6.1.18",
33 | "babel-preset-react": "^6.24.1",
34 | "css-loader": "^1.0.0",
35 | "html-webpack-plugin": "^3.2.0",
36 | "style-loader": "^0.22.1",
37 | "webpack": "^1.15.0",
38 | "webpack-cli": "^3.1.0",
39 | "webpack-dev-server": "^3.1.14"
40 | },
41 | "keywords": [
42 | "react",
43 | "timeline",
44 | "SemanticUI"
45 | ],
46 | "author": "Chuqi Zhou"
47 | }
48 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # react-timeline-semantic-ui
2 |
3 | ## Introduction
4 | This react timeline component is built with Semantic UI react. For more information about Semantic UI React, please visit this [link](http://react.semantic-ui.com/).
5 |
6 | 
7 |
8 | ## Installation
9 | ```
10 | npm install react-timeline-semantic-ui --save
11 | ```
12 |
13 |
14 | ## Usage
15 |
16 | ```
17 | import Timeline from 'react-timeline-semantic-ui';
18 |
19 |