react-timeline-scribble
Advanced tools
Comparing version 1.0.12 to 1.0.14
@@ -8,6 +8,6 @@ 'use strict'; | ||
var _templateObject = _taggedTemplateLiteral(['\n font-family: \'Open Sans\', \'Helvetica Neue\', Helvetica, Arial, sans-serif;\n font-size: 1em;\n font-weight: 300;\n line-height: 1.5;\n letter-spacing: 0.05em;\n * {\n box-sizing: border-box;\n \n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font: inherit;\n vertical-align: baseline;\n }\n p {\n font-family: \'Open Sans\', \'Helvetica Neue\', Helvetica, Arial, sans-serif;\n }\n '], ['\n font-family: \'Open Sans\', \'Helvetica Neue\', Helvetica, Arial, sans-serif;\n font-size: 1em;\n font-weight: 300;\n line-height: 1.5;\n letter-spacing: 0.05em;\n * {\n box-sizing: border-box;\n \n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font: inherit;\n vertical-align: baseline;\n }\n p {\n font-family: \'Open Sans\', \'Helvetica Neue\', Helvetica, Arial, sans-serif;\n }\n ']), | ||
_templateObject2 = _taggedTemplateLiteral(['\n position: relative;\n max-width: 46em;\n list-style: none;\n &:before {\n background-color: black;\n content: \'\';\n margin-left: -1px;\n position: absolute;\n top: 0;\n left: 2em;\n width: 2px;\n height: 100%;\n }\n '], ['\n position: relative;\n max-width: 46em;\n list-style: none;\n &:before {\n background-color: black;\n content: \'\';\n margin-left: -1px;\n position: absolute;\n top: 0;\n left: 2em;\n width: 2px;\n height: 100%;\n }\n ']), | ||
_templateObject2 = _taggedTemplateLiteral(['\n position: relative;\n max-width: 95%;\n list-style: none;\n &:before {\n background-color: black;\n content: \'\';\n margin-left: -1px;\n position: absolute;\n top: 0;\n left: 2em;\n width: 2px;\n height: 100%;\n }\n '], ['\n position: relative;\n max-width: 95%;\n list-style: none;\n &:before {\n background-color: black;\n content: \'\';\n margin-left: -1px;\n position: absolute;\n top: 0;\n left: 2em;\n width: 2px;\n height: 100%;\n }\n ']), | ||
_templateObject3 = _taggedTemplateLiteral(['\n position: relative;\n '], ['\n position: relative;\n ']), | ||
_templateObject4 = _taggedTemplateLiteral(['\n transform: rotate(45deg);\n background-color: black;\n outline: 10px solid white;\n display: block;\n margin: 0.5em 0.5em 0.5em -0.5em;\n position: absolute;\n top: 0;\n left: 2em;\n width: 1em;\n height: 1em;\n '], ['\n transform: rotate(45deg);\n background-color: black;\n outline: 10px solid white;\n display: block;\n margin: 0.5em 0.5em 0.5em -0.5em;\n position: absolute;\n top: 0;\n left: 2em;\n width: 1em;\n height: 1em;\n ']), | ||
_templateObject5 = _taggedTemplateLiteral(['\n padding: 2em 2em 0 2em;\n position: relative;\n top: -1.875em;\n left: 4em;\n width: 80%;\n h3 {\n font-size: 1.75em;\n }\n h4 {\n font-size: 1.2em;\n margin-bottom: 1.2em;\n }\n '], ['\n padding: 2em 2em 0 2em;\n position: relative;\n top: -1.875em;\n left: 4em;\n width: 80%;\n h3 {\n font-size: 1.75em;\n }\n h4 {\n font-size: 1.2em;\n margin-bottom: 1.2em;\n }\n ']), | ||
_templateObject5 = _taggedTemplateLiteral(['\n padding: 2em 2em 0 2em;\n position: relative;\n top: -1.875em;\n left: 2em;\n width: 95%;\n h3 {\n font-size: 1.75em;\n }\n h4 {\n font-size: 1.2em;\n margin-bottom: 1.2em;\n }\n '], ['\n padding: 2em 2em 0 2em;\n position: relative;\n top: -1.875em;\n left: 2em;\n width: 95%;\n h3 {\n font-size: 1.75em;\n }\n h4 {\n font-size: 1.2em;\n margin-bottom: 1.2em;\n }\n ']), | ||
_templateObject6 = _taggedTemplateLiteral(['\n color: white;\n background-color: black;\n box-shadow: inset 0 0 0 0em #ef795a;\n display: inline-block;\n margin-bottom: 1.2em;\n padding: 0.25em 1em 0.2em 1em;\n '], ['\n color: white;\n background-color: black;\n box-shadow: inset 0 0 0 0em #ef795a;\n display: inline-block;\n margin-bottom: 1.2em;\n padding: 0.25em 1em 0.2em 1em;\n ']), | ||
@@ -14,0 +14,0 @@ _templateObject7 = _taggedTemplateLiteral(['\n strong {\n font-weight: 700;\n }\n p {\n padding-bottom: 1.2em;\n }\n '], ['\n strong {\n font-weight: 700;\n }\n p {\n padding-bottom: 1.2em;\n }\n ']); |
{ | ||
"name": "react-timeline-scribble", | ||
"version": "1.0.12", | ||
"version": "1.0.14", | ||
"description": "React Timeline component", | ||
@@ -20,3 +20,3 @@ "main": "build/index.js", | ||
"dependencies": { | ||
"emotion": "^8.0.12", | ||
"emotion": "^9.2.6", | ||
"react": "^16.2.0", | ||
@@ -23,0 +23,0 @@ "react-dom": "^16.2.0" |
@@ -1,3 +0,4 @@ | ||
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) | ||
[![Build Status](https://travis-ci.org/TheNovel/react-timeline-scribble.svg?branch=master)](https://travis-ci.org/TheNovel/react-timeline-scribble) | ||
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT) | ||
[![Build Status](https://travis-ci.org/igorkamyshev/react-timeline-scribble.svg?branch=master)](https://travis-ci.org/igorkamyshev/react-timeline-scribble) | ||
[![npm version](https://badge.fury.io/js/react-timeline-scribble.svg)](https://badge.fury.io/js/react-timeline-scribble) | ||
@@ -8,2 +9,41 @@ # react-timeline-scribble | ||
## Install | ||
`yarn add react-timeline-scribble` | ||
`yarn add react-timeline-scribble` | ||
## Usage | ||
[![Edit react-timeline-scribble-example](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/03r33x0oxl) | ||
```js | ||
import React, { Fragment } from "react"; | ||
import { render } from "react-dom"; | ||
import { Timeline, Event } from "react-timeline-scribble"; | ||
const App = () => ( | ||
<Fragment> | ||
<h1>React Timeline Scribble</h1> | ||
<Timeline> | ||
<Event interval={"2016 – 2018"} title={"Lorem"} subtitle={"Ipsum"}> | ||
dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor | ||
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, | ||
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo | ||
consequat. Duis aute irure dolor in reprehenderit in voluptate velit | ||
esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat | ||
cupidatat non proident, sunt in culpa qui officia deserunt mollit anim | ||
id est laborum. | ||
</Event> | ||
<Event interval={"2015 – 2016"} title={"Lorem"} subtitle={"Ipsum"}> | ||
dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor | ||
incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, | ||
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo | ||
consequat. Duis aute irure dolor in reprehenderit in voluptate velit | ||
esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat | ||
cupidatat non proident, sunt in culpa qui officia deserunt mollit anim | ||
id est laborum. | ||
</Event> | ||
</Timeline> | ||
</Fragment> | ||
); | ||
render(<App />, document.getElementById("root")); | ||
``` |
9495
49
+ Added@babel/code-frame@7.24.2(transitive)
+ Added@babel/helper-module-imports@7.24.3(transitive)
+ Added@babel/helper-string-parser@7.24.1(transitive)
+ Added@babel/helper-validator-identifier@7.24.5(transitive)
+ Added@babel/highlight@7.24.5(transitive)
+ Added@babel/runtime@7.24.5(transitive)
+ Added@babel/types@7.24.5(transitive)
+ Added@emotion/babel-utils@0.6.10(transitive)
+ Added@emotion/hash@0.6.6(transitive)
+ Added@emotion/memoize@0.6.6(transitive)
+ Added@emotion/serialize@0.9.1(transitive)
+ Added@emotion/stylis@0.7.1(transitive)
+ Added@emotion/unitless@0.6.7(transitive)
+ Added@emotion/utils@0.8.2(transitive)
+ Added@types/parse-json@4.0.2(transitive)
+ Addedansi-styles@3.2.1(transitive)
+ Addedbabel-plugin-emotion@9.2.11(transitive)
+ Addedbabel-plugin-macros@2.8.0(transitive)
+ Addedcallsites@3.1.0(transitive)
+ Addedchalk@2.4.2(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedcosmiconfig@6.0.0(transitive)
+ Addedcreate-emotion@9.2.12(transitive)
+ Addedcsstype@2.6.21(transitive)
+ Addedemotion@9.2.12(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedimport-fresh@3.3.0(transitive)
+ Addedis-core-module@2.13.1(transitive)
+ Addedjson-parse-even-better-errors@2.3.1(transitive)
+ Addedlines-and-columns@1.2.4(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addedparent-module@1.0.1(transitive)
+ Addedparse-json@5.2.0(transitive)
+ Addedpath-parse@1.0.7(transitive)
+ Addedpath-type@4.0.0(transitive)
+ Addedpicocolors@1.0.0(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)
+ Addedresolve@1.22.8(transitive)
+ Addedresolve-from@4.0.0(transitive)
+ Addedsource-map@0.7.4(transitive)
+ Addedstylis-rule-sheet@0.0.10(transitive)
+ Addedsupports-color@5.5.0(transitive)
+ Addedsupports-preserve-symlinks-flag@1.0.0(transitive)
+ Addedtouch@2.0.2(transitive)
+ Addedyaml@1.10.2(transitive)
- Removed@babel/helper-module-imports@7.0.0-beta.32(transitive)
- Removed@babel/types@7.0.0-beta.32(transitive)
- Removedargparse@1.0.10(transitive)
- Removedbabel-macros@1.2.0(transitive)
- Removedbabel-plugin-emotion@8.0.12(transitive)
- Removedcosmiconfig@3.1.0(transitive)
- Removedemotion@8.0.12(transitive)
- Removedemotion-utils@8.0.12(transitive)
- Removedesprima@4.0.1(transitive)
- Removedesutils@2.0.3(transitive)
- Removedis-directory@0.3.1(transitive)
- Removedjs-yaml@3.14.1(transitive)
- Removedlodash@4.17.21(transitive)
- Removedparse-json@3.0.0(transitive)
- Removedrequire-from-string@2.0.2(transitive)
- Removedsprintf-js@1.0.3(transitive)
- Removedstylis-rule-sheet@0.0.5(transitive)
- Removedtouch@1.0.0(transitive)
Updatedemotion@^9.2.6