├── .gitignore
├── example
├── src
│ ├── components
│ │ ├── toggle.css
│ │ ├── Header.js
│ │ ├── Slider.js
│ │ ├── examples.css
│ │ ├── Code.js
│ │ ├── Footer.js
│ │ ├── colorpicker.css
│ │ ├── code.css
│ │ ├── Options.js
│ │ ├── Events.js
│ │ └── Examples.js
│ ├── index.js
│ ├── index.css
│ ├── App.css
│ └── App.js
├── .babelrc
├── public
│ └── index.html
├── package.json
└── webpack.config.js
├── setupJest.js
├── .babelrc
├── .eslintrc
├── .travis.yml
├── src
├── utils.js
└── index.js
├── tests
├── utils.test.js
└── Slider.test.js
├── LICENSE
├── index.d.ts
├── rollup.config.js
├── package.json
└── Readme.md
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | dist
3 | yarn.lock
4 | build
5 |
--------------------------------------------------------------------------------
/example/src/components/toggle.css:
--------------------------------------------------------------------------------
1 | #slider-toggle {
2 | height: 50px;
3 | margin: auto;
4 | }
5 |
--------------------------------------------------------------------------------
/setupJest.js:
--------------------------------------------------------------------------------
1 | import { configure } from 'enzyme';
2 | import Adapter from 'enzyme-adapter-react-16';
3 |
4 | configure({ adapter: new Adapter() });
--------------------------------------------------------------------------------
/example/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["@babel/preset-env", "@babel/preset-react"],
3 | "plugins": ["@babel/plugin-proposal-class-properties"]
4 | }
5 |
--------------------------------------------------------------------------------
/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["@babel/preset-env", "@babel/preset-react"],
3 | "plugins": [
4 | ["transform-react-remove-prop-types", { "removeImport": true }]
5 | ]
6 | }
7 |
--------------------------------------------------------------------------------
/example/src/components/Header.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 |
3 | const Header = () => (
4 | React NoUiSlider component
6 |
7 |
8 | {` `}
12 |
13 |
14 |
18 |