├── .babelrc ├── .eslintignore ├── .eslintrc.js ├── .gitignore ├── .travis.yml ├── .yarnclean ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── README.md ├── docs ├── Switch.md ├── Switcher.md ├── SwitcherProvider.md └── dynamic_segments.md ├── examples ├── animation │ ├── .gitignore │ ├── README.md │ ├── app.css │ ├── components │ │ ├── App.js │ │ ├── LeftContent.js │ │ ├── Navbar.js │ │ ├── Overlay.js │ │ ├── Panel.js │ │ └── RightContent.js │ ├── dist │ │ └── bundle.js │ ├── index.html │ ├── index.js │ ├── package.json │ ├── postcss.config.js │ ├── webpack.config.js │ └── yarn.lock ├── basic │ ├── .gitignore │ ├── README.md │ ├── app.css │ ├── components │ │ ├── App.js │ │ ├── LeftContent.js │ │ ├── Navbar.js │ │ ├── Overlay.js │ │ ├── Panel.js │ │ └── RightContent.js │ ├── dist │ │ └── bundle.js │ ├── index.html │ ├── index.js │ ├── package.json │ ├── postcss.config.js │ ├── webpack.config.js │ └── yarn.lock ├── buildAll.js └── index.html ├── jest.config.js ├── package.json ├── prettier.config.js ├── rollup.config.js ├── src ├── Switcher.js ├── SwitcherProvider.js ├── context.js ├── helpers.js └── index.js ├── test ├── SwitcherProvider_test.js ├── Switcher_test.js ├── helpers_test.js └── polyfills.js └── yarn.lock /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/.babelrc -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | dist 2 | node_modules 3 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | coverage 3 | .DS_Store 4 | npm-debug.log 5 | dist 6 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/.travis.yml -------------------------------------------------------------------------------- /.yarnclean: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/.yarnclean -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/CODE_OF_CONDUCT.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/README.md -------------------------------------------------------------------------------- /docs/Switch.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/docs/Switch.md -------------------------------------------------------------------------------- /docs/Switcher.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/docs/Switcher.md -------------------------------------------------------------------------------- /docs/SwitcherProvider.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/docs/SwitcherProvider.md -------------------------------------------------------------------------------- /docs/dynamic_segments.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/docs/dynamic_segments.md -------------------------------------------------------------------------------- /examples/animation/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /examples/animation/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/examples/animation/README.md -------------------------------------------------------------------------------- /examples/animation/app.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/examples/animation/app.css -------------------------------------------------------------------------------- /examples/animation/components/App.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/examples/animation/components/App.js -------------------------------------------------------------------------------- /examples/animation/components/LeftContent.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/examples/animation/components/LeftContent.js -------------------------------------------------------------------------------- /examples/animation/components/Navbar.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/examples/animation/components/Navbar.js -------------------------------------------------------------------------------- /examples/animation/components/Overlay.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/examples/animation/components/Overlay.js -------------------------------------------------------------------------------- /examples/animation/components/Panel.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/examples/animation/components/Panel.js -------------------------------------------------------------------------------- /examples/animation/components/RightContent.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/examples/animation/components/RightContent.js -------------------------------------------------------------------------------- /examples/animation/dist/bundle.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/examples/animation/dist/bundle.js -------------------------------------------------------------------------------- /examples/animation/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/examples/animation/index.html -------------------------------------------------------------------------------- /examples/animation/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/examples/animation/index.js -------------------------------------------------------------------------------- /examples/animation/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/examples/animation/package.json -------------------------------------------------------------------------------- /examples/animation/postcss.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: [require('autoprefixer')()] 3 | }; 4 | -------------------------------------------------------------------------------- /examples/animation/webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/examples/animation/webpack.config.js -------------------------------------------------------------------------------- /examples/animation/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/examples/animation/yarn.lock -------------------------------------------------------------------------------- /examples/basic/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /examples/basic/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/examples/basic/README.md -------------------------------------------------------------------------------- /examples/basic/app.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/examples/basic/app.css -------------------------------------------------------------------------------- /examples/basic/components/App.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/examples/basic/components/App.js -------------------------------------------------------------------------------- /examples/basic/components/LeftContent.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/examples/basic/components/LeftContent.js -------------------------------------------------------------------------------- /examples/basic/components/Navbar.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/examples/basic/components/Navbar.js -------------------------------------------------------------------------------- /examples/basic/components/Overlay.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/examples/basic/components/Overlay.js -------------------------------------------------------------------------------- /examples/basic/components/Panel.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/examples/basic/components/Panel.js -------------------------------------------------------------------------------- /examples/basic/components/RightContent.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/examples/basic/components/RightContent.js -------------------------------------------------------------------------------- /examples/basic/dist/bundle.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/examples/basic/dist/bundle.js -------------------------------------------------------------------------------- /examples/basic/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/examples/basic/index.html -------------------------------------------------------------------------------- /examples/basic/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/examples/basic/index.js -------------------------------------------------------------------------------- /examples/basic/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/examples/basic/package.json -------------------------------------------------------------------------------- /examples/basic/postcss.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: [require('autoprefixer')()] 3 | }; 4 | -------------------------------------------------------------------------------- /examples/basic/webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/examples/basic/webpack.config.js -------------------------------------------------------------------------------- /examples/basic/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/examples/basic/yarn.lock -------------------------------------------------------------------------------- /examples/buildAll.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/examples/buildAll.js -------------------------------------------------------------------------------- /examples/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/examples/index.html -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/package.json -------------------------------------------------------------------------------- /prettier.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | singleQuote: true 3 | }; 4 | -------------------------------------------------------------------------------- /rollup.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/rollup.config.js -------------------------------------------------------------------------------- /src/Switcher.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/src/Switcher.js -------------------------------------------------------------------------------- /src/SwitcherProvider.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/src/SwitcherProvider.js -------------------------------------------------------------------------------- /src/context.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/src/context.js -------------------------------------------------------------------------------- /src/helpers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/src/helpers.js -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/src/index.js -------------------------------------------------------------------------------- /test/SwitcherProvider_test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/test/SwitcherProvider_test.js -------------------------------------------------------------------------------- /test/Switcher_test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/test/Switcher_test.js -------------------------------------------------------------------------------- /test/helpers_test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/test/helpers_test.js -------------------------------------------------------------------------------- /test/polyfills.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/test/polyfills.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jdlehman/switcheroo/HEAD/yarn.lock --------------------------------------------------------------------------------