forked from sam-silv/histoslider
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* WIP * Bump dependencies * Remove log statements * Bump react-scripts * Add built storybook * 2.0.0 * Update docs, WIP * 2.0.1 * Use stories for testing * Add storybook to docs dir * Fix event listener cleanup * Use offsetX for positioning * Update snapshots * 2.0.2 * Clean up storybooks * Build scripts * 2.0.3
- Loading branch information
Showing
17 changed files
with
3,913 additions
and
1,844 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
src | ||
test | ||
*.test.js | ||
stories | ||
public | ||
docs | ||
.storybook | ||
circle.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
import { configure } from '@kadira/storybook'; | ||
import { configure, addDecorator } from "@storybook/react"; | ||
import { setOptions } from "@storybook/addon-options"; | ||
import centered from "@storybook/addon-centered"; | ||
|
||
function loadStories() { | ||
require('../src/stories'); | ||
} | ||
addDecorator(centered); | ||
|
||
configure(loadStories, module); | ||
setOptions({ | ||
name: "Histoslider" | ||
}); | ||
|
||
configure(() => require("../src/stories"), module); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
|
||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<script> | ||
if (window.parent !== window) { | ||
window.__REACT_DEVTOOLS_GLOBAL_HOOK__ = window.parent.__REACT_DEVTOOLS_GLOBAL_HOOK__; | ||
} | ||
</script> | ||
<title>Storybook</title> | ||
|
||
|
||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<div id="error-display"></div> | ||
<script src="static/preview.2d9886a93f54c3943f43.bundle.js"></script> | ||
</body> | ||
</html> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
|
||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta name="storybook-version" content="3.1.3"> | ||
<meta content="IE=edge" http-equiv="X-UA-Compatible" /> | ||
<title>Storybook</title> | ||
<style> | ||
/* | ||
When resizing panels, the drag event breaks if the cursor | ||
moves over the iframe. Add the 'dragging' class to the body | ||
at drag start and remove it when the drag ends. | ||
*/ | ||
.dragging iframe { | ||
pointer-events: none; | ||
} | ||
|
||
/* Styling the fuzzy search box placeholders */ | ||
.searchBox::-webkit-input-placeholder { /* Chrome/Opera/Safari */ | ||
color: #ddd; | ||
font-size: 16px; | ||
} | ||
|
||
.searchBox::-moz-placeholder { /* Firefox 19+ */ | ||
color: #ddd; | ||
font-size: 16px; | ||
} | ||
|
||
.searchBox:focus{ | ||
border-color: #EEE !important; | ||
} | ||
|
||
.btn:hover{ | ||
background-color: #eee | ||
} | ||
</style> | ||
|
||
</head> | ||
<body style="margin: 0;"> | ||
<div id="root"></div> | ||
<script src="static/manager.202bc8670616981e4d71.bundle.js"></script> | ||
</body> | ||
</html> | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,36 @@ | ||
{ | ||
"name": "histoslider", | ||
"version": "1.0.1", | ||
"version": "2.0.3", | ||
"main": "./lib/index.js", | ||
"devDependencies": { | ||
"@kadira/storybook": "^2.35.3", | ||
"react-scripts": "^1.0.0" | ||
"@storybook/addon-actions": "^3.1.2", | ||
"@storybook/addon-centered": "^3.1.2", | ||
"@storybook/addon-options": "^3.1.2", | ||
"@storybook/addon-storyshots": "^3.1.2", | ||
"@storybook/react": "3.1.3", | ||
"babel-cli": "^6.24.1", | ||
"babel-preset-stage-0": "^6.24.1", | ||
"d3-array": "^1.2.0", | ||
"d3-format": "^1.2.0", | ||
"d3-scale": "^1.0.6", | ||
"prop-types": "^15.5.10", | ||
"react": "^15.5.4", | ||
"react-dom": "^15.5.4", | ||
"react-scripts": "^1.0.7", | ||
"react-test-renderer": "^15.5.4" | ||
}, | ||
"peerDependencies": { | ||
"d3-array": "^1.0.2", | ||
"d3-format": "^1.0.2", | ||
"d3-scale": "^1.0.4", | ||
"react": "^15.4.2", | ||
"react-dom": "^15.4.2" | ||
"d3-array": "^1.2.0", | ||
"d3-format": "^1.2.0", | ||
"d3-scale": "^1.0.6", | ||
"react": "^15.5.4", | ||
"react-dom": "^15.5.4" | ||
}, | ||
"scripts": { | ||
"test": "react-scripts test --env=jsdom", | ||
"start": "start-storybook -p 9009 -s public", | ||
"build-storybook": "build-storybook -s public" | ||
"build-storybook": "build-storybook -s public -o docs", | ||
"build": "babel src --out-dir lib", | ||
"prepublish": "npm run build" | ||
} | ||
} |
Oops, something went wrong.