├── .github ├── copilot-instructions.md └── workflows │ └── ci.yml ├── .gitignore ├── .mailmap ├── .nvmrc ├── .prettierignore ├── .prettierrc.json ├── AUTHORS ├── CHANGELOG.md ├── LICENSE ├── MIGRATION.md ├── README.md ├── codecov.yml ├── eslint.config.mjs ├── examples ├── hoc │ ├── .env │ ├── .gitignore │ ├── README.md │ ├── package.json │ ├── public │ │ └── index.html │ ├── src │ │ ├── Bar.tsx │ │ ├── Container.tsx │ │ ├── Progress.tsx │ │ ├── Spinner.tsx │ │ ├── index.css │ │ ├── index.tsx │ │ └── react-app-env.d.ts │ └── tsconfig.json ├── material-ui │ ├── .env │ ├── .gitignore │ ├── README.md │ ├── package.json │ ├── public │ │ └── index.html │ ├── src │ │ ├── Progress.tsx │ │ ├── index.tsx │ │ └── react-app-env.d.ts │ └── tsconfig.json ├── multiple-instances │ ├── .env │ ├── .gitignore │ ├── README.md │ ├── package.json │ ├── public │ │ └── index.html │ ├── src │ │ ├── Bar.tsx │ │ ├── Container.tsx │ │ ├── Progress.tsx │ │ ├── index.css │ │ ├── index.tsx │ │ └── react-app-env.d.ts │ └── tsconfig.json ├── next-pages-router │ ├── .gitignore │ ├── README.md │ ├── components │ │ └── Loading.tsx │ ├── next-env.d.ts │ ├── package.json │ ├── pages │ │ ├── _app.tsx │ │ ├── about.tsx │ │ ├── forever.tsx │ │ └── index.tsx │ └── tsconfig.json ├── original-design │ ├── .env │ ├── .gitignore │ ├── README.md │ ├── package.json │ ├── public │ │ └── index.html │ ├── src │ │ ├── Bar.tsx │ │ ├── Container.tsx │ │ ├── Progress.tsx │ │ ├── Spinner.tsx │ │ ├── index.css │ │ ├── index.tsx │ │ └── react-app-env.d.ts │ └── tsconfig.json ├── plain-js │ ├── .env │ ├── .gitignore │ ├── README.md │ ├── package.json │ ├── public │ │ └── index.html │ └── src │ │ ├── Bar.js │ │ ├── Container.js │ │ ├── Progress.js │ │ ├── Spinner.js │ │ ├── index.css │ │ └── index.js ├── reach-router │ ├── .env │ ├── .gitignore │ ├── README.md │ ├── package.json │ ├── public │ │ └── index.html │ ├── src │ │ ├── index.css │ │ ├── index.tsx │ │ └── react-app-env.d.ts │ └── tsconfig.json ├── react-router-v5 │ ├── .env │ ├── .gitignore │ ├── README.md │ ├── package.json │ ├── public │ │ └── index.html │ ├── src │ │ ├── Bar.tsx │ │ ├── Container.tsx │ │ ├── index.css │ │ ├── index.tsx │ │ └── react-app-env.d.ts │ └── tsconfig.json ├── react-router-v6 │ ├── .env │ ├── .gitignore │ ├── README.md │ ├── package.json │ ├── public │ │ └── index.html │ ├── src │ │ ├── Bar.tsx │ │ ├── Container.tsx │ │ ├── index.css │ │ ├── index.tsx │ │ └── react-app-env.d.ts │ └── tsconfig.json ├── render-props │ ├── .env │ ├── .gitignore │ ├── README.md │ ├── package.json │ ├── public │ │ └── index.html │ ├── src │ │ ├── Bar.tsx │ │ ├── Container.tsx │ │ ├── Progress.tsx │ │ ├── Spinner.tsx │ │ ├── index.css │ │ ├── index.tsx │ │ └── react-app-env.d.ts │ └── tsconfig.json ├── umd-dev │ ├── index.html │ ├── main.css │ └── package.json └── umd-prod │ ├── index.html │ ├── main.css │ └── package.json ├── index.js ├── package.json ├── renovate.json ├── rollup.config.mjs ├── scripts └── jest │ ├── config.cjs.js │ ├── config.cjsprod.js │ ├── config.es.js │ ├── config.src.js │ ├── config.umd.js │ └── config.umdprod.js ├── src ├── NProgress.tsx ├── clamp.ts ├── createQueue.ts ├── createTimeout.ts ├── env.d.ts ├── increment.ts ├── index.tsx ├── types.ts ├── useEffectOnce.ts ├── useGetSetState.ts ├── useNProgress.tsx ├── useUpdateEffect.ts └── withNProgress.tsx ├── test ├── NProgress.spec.tsx ├── clamp.spec.ts ├── increment.spec.ts ├── queue.spec.ts ├── timeout.spec.ts ├── useEffectOnce.spec.ts ├── useGetSetState.spec.ts ├── useNProgress.spec.ts ├── useUpdateEffect.spec.ts └── withNProgress.spec.tsx ├── tsconfig.base.json ├── tsconfig.eslint.json └── tsconfig.json /.github/copilot-instructions.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/.github/copilot-instructions.md -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/.gitignore -------------------------------------------------------------------------------- /.mailmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/.mailmap -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | lts/* 2 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/.prettierrc.json -------------------------------------------------------------------------------- /AUTHORS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/AUTHORS -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/LICENSE -------------------------------------------------------------------------------- /MIGRATION.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/MIGRATION.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/README.md -------------------------------------------------------------------------------- /codecov.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/codecov.yml -------------------------------------------------------------------------------- /eslint.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/eslint.config.mjs -------------------------------------------------------------------------------- /examples/hoc/.env: -------------------------------------------------------------------------------- 1 | REACT_APP_DESCRIPTION=$npm_package_description 2 | SKIP_PREFLIGHT_CHECK=true -------------------------------------------------------------------------------- /examples/hoc/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | -------------------------------------------------------------------------------- /examples/hoc/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/hoc/README.md -------------------------------------------------------------------------------- /examples/hoc/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/hoc/package.json -------------------------------------------------------------------------------- /examples/hoc/public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/hoc/public/index.html -------------------------------------------------------------------------------- /examples/hoc/src/Bar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/hoc/src/Bar.tsx -------------------------------------------------------------------------------- /examples/hoc/src/Container.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/hoc/src/Container.tsx -------------------------------------------------------------------------------- /examples/hoc/src/Progress.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/hoc/src/Progress.tsx -------------------------------------------------------------------------------- /examples/hoc/src/Spinner.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/hoc/src/Spinner.tsx -------------------------------------------------------------------------------- /examples/hoc/src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/hoc/src/index.css -------------------------------------------------------------------------------- /examples/hoc/src/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/hoc/src/index.tsx -------------------------------------------------------------------------------- /examples/hoc/src/react-app-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /examples/hoc/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/hoc/tsconfig.json -------------------------------------------------------------------------------- /examples/material-ui/.env: -------------------------------------------------------------------------------- 1 | REACT_APP_DESCRIPTION=$npm_package_description 2 | SKIP_PREFLIGHT_CHECK=true -------------------------------------------------------------------------------- /examples/material-ui/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | -------------------------------------------------------------------------------- /examples/material-ui/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/material-ui/README.md -------------------------------------------------------------------------------- /examples/material-ui/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/material-ui/package.json -------------------------------------------------------------------------------- /examples/material-ui/public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/material-ui/public/index.html -------------------------------------------------------------------------------- /examples/material-ui/src/Progress.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/material-ui/src/Progress.tsx -------------------------------------------------------------------------------- /examples/material-ui/src/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/material-ui/src/index.tsx -------------------------------------------------------------------------------- /examples/material-ui/src/react-app-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /examples/material-ui/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/material-ui/tsconfig.json -------------------------------------------------------------------------------- /examples/multiple-instances/.env: -------------------------------------------------------------------------------- 1 | REACT_APP_DESCRIPTION=$npm_package_description 2 | SKIP_PREFLIGHT_CHECK=true -------------------------------------------------------------------------------- /examples/multiple-instances/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | -------------------------------------------------------------------------------- /examples/multiple-instances/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/multiple-instances/README.md -------------------------------------------------------------------------------- /examples/multiple-instances/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/multiple-instances/package.json -------------------------------------------------------------------------------- /examples/multiple-instances/public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/multiple-instances/public/index.html -------------------------------------------------------------------------------- /examples/multiple-instances/src/Bar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/multiple-instances/src/Bar.tsx -------------------------------------------------------------------------------- /examples/multiple-instances/src/Container.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/multiple-instances/src/Container.tsx -------------------------------------------------------------------------------- /examples/multiple-instances/src/Progress.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/multiple-instances/src/Progress.tsx -------------------------------------------------------------------------------- /examples/multiple-instances/src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/multiple-instances/src/index.css -------------------------------------------------------------------------------- /examples/multiple-instances/src/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/multiple-instances/src/index.tsx -------------------------------------------------------------------------------- /examples/multiple-instances/src/react-app-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /examples/multiple-instances/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/multiple-instances/tsconfig.json -------------------------------------------------------------------------------- /examples/next-pages-router/.gitignore: -------------------------------------------------------------------------------- 1 | .next/ 2 | /node_modules -------------------------------------------------------------------------------- /examples/next-pages-router/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/next-pages-router/README.md -------------------------------------------------------------------------------- /examples/next-pages-router/components/Loading.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/next-pages-router/components/Loading.tsx -------------------------------------------------------------------------------- /examples/next-pages-router/next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/next-pages-router/next-env.d.ts -------------------------------------------------------------------------------- /examples/next-pages-router/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/next-pages-router/package.json -------------------------------------------------------------------------------- /examples/next-pages-router/pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/next-pages-router/pages/_app.tsx -------------------------------------------------------------------------------- /examples/next-pages-router/pages/about.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/next-pages-router/pages/about.tsx -------------------------------------------------------------------------------- /examples/next-pages-router/pages/forever.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/next-pages-router/pages/forever.tsx -------------------------------------------------------------------------------- /examples/next-pages-router/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/next-pages-router/pages/index.tsx -------------------------------------------------------------------------------- /examples/next-pages-router/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/next-pages-router/tsconfig.json -------------------------------------------------------------------------------- /examples/original-design/.env: -------------------------------------------------------------------------------- 1 | REACT_APP_DESCRIPTION=$npm_package_description 2 | SKIP_PREFLIGHT_CHECK=true -------------------------------------------------------------------------------- /examples/original-design/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | -------------------------------------------------------------------------------- /examples/original-design/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/original-design/README.md -------------------------------------------------------------------------------- /examples/original-design/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/original-design/package.json -------------------------------------------------------------------------------- /examples/original-design/public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/original-design/public/index.html -------------------------------------------------------------------------------- /examples/original-design/src/Bar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/original-design/src/Bar.tsx -------------------------------------------------------------------------------- /examples/original-design/src/Container.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/original-design/src/Container.tsx -------------------------------------------------------------------------------- /examples/original-design/src/Progress.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/original-design/src/Progress.tsx -------------------------------------------------------------------------------- /examples/original-design/src/Spinner.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/original-design/src/Spinner.tsx -------------------------------------------------------------------------------- /examples/original-design/src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/original-design/src/index.css -------------------------------------------------------------------------------- /examples/original-design/src/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/original-design/src/index.tsx -------------------------------------------------------------------------------- /examples/original-design/src/react-app-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /examples/original-design/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/original-design/tsconfig.json -------------------------------------------------------------------------------- /examples/plain-js/.env: -------------------------------------------------------------------------------- 1 | REACT_APP_DESCRIPTION=$npm_package_description 2 | SKIP_PREFLIGHT_CHECK=true -------------------------------------------------------------------------------- /examples/plain-js/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | -------------------------------------------------------------------------------- /examples/plain-js/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/plain-js/README.md -------------------------------------------------------------------------------- /examples/plain-js/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/plain-js/package.json -------------------------------------------------------------------------------- /examples/plain-js/public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/plain-js/public/index.html -------------------------------------------------------------------------------- /examples/plain-js/src/Bar.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/plain-js/src/Bar.js -------------------------------------------------------------------------------- /examples/plain-js/src/Container.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/plain-js/src/Container.js -------------------------------------------------------------------------------- /examples/plain-js/src/Progress.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/plain-js/src/Progress.js -------------------------------------------------------------------------------- /examples/plain-js/src/Spinner.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/plain-js/src/Spinner.js -------------------------------------------------------------------------------- /examples/plain-js/src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/plain-js/src/index.css -------------------------------------------------------------------------------- /examples/plain-js/src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/plain-js/src/index.js -------------------------------------------------------------------------------- /examples/reach-router/.env: -------------------------------------------------------------------------------- 1 | REACT_APP_DESCRIPTION=$npm_package_description 2 | SKIP_PREFLIGHT_CHECK=true -------------------------------------------------------------------------------- /examples/reach-router/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | -------------------------------------------------------------------------------- /examples/reach-router/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/reach-router/README.md -------------------------------------------------------------------------------- /examples/reach-router/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/reach-router/package.json -------------------------------------------------------------------------------- /examples/reach-router/public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/reach-router/public/index.html -------------------------------------------------------------------------------- /examples/reach-router/src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/reach-router/src/index.css -------------------------------------------------------------------------------- /examples/reach-router/src/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/reach-router/src/index.tsx -------------------------------------------------------------------------------- /examples/reach-router/src/react-app-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /examples/reach-router/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/reach-router/tsconfig.json -------------------------------------------------------------------------------- /examples/react-router-v5/.env: -------------------------------------------------------------------------------- 1 | REACT_APP_DESCRIPTION=$npm_package_description 2 | SKIP_PREFLIGHT_CHECK=true -------------------------------------------------------------------------------- /examples/react-router-v5/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | -------------------------------------------------------------------------------- /examples/react-router-v5/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/react-router-v5/README.md -------------------------------------------------------------------------------- /examples/react-router-v5/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/react-router-v5/package.json -------------------------------------------------------------------------------- /examples/react-router-v5/public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/react-router-v5/public/index.html -------------------------------------------------------------------------------- /examples/react-router-v5/src/Bar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/react-router-v5/src/Bar.tsx -------------------------------------------------------------------------------- /examples/react-router-v5/src/Container.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/react-router-v5/src/Container.tsx -------------------------------------------------------------------------------- /examples/react-router-v5/src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/react-router-v5/src/index.css -------------------------------------------------------------------------------- /examples/react-router-v5/src/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/react-router-v5/src/index.tsx -------------------------------------------------------------------------------- /examples/react-router-v5/src/react-app-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /examples/react-router-v5/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/react-router-v5/tsconfig.json -------------------------------------------------------------------------------- /examples/react-router-v6/.env: -------------------------------------------------------------------------------- 1 | REACT_APP_DESCRIPTION=$npm_package_description 2 | SKIP_PREFLIGHT_CHECK=true -------------------------------------------------------------------------------- /examples/react-router-v6/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | -------------------------------------------------------------------------------- /examples/react-router-v6/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/react-router-v6/README.md -------------------------------------------------------------------------------- /examples/react-router-v6/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/react-router-v6/package.json -------------------------------------------------------------------------------- /examples/react-router-v6/public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/react-router-v6/public/index.html -------------------------------------------------------------------------------- /examples/react-router-v6/src/Bar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/react-router-v6/src/Bar.tsx -------------------------------------------------------------------------------- /examples/react-router-v6/src/Container.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/react-router-v6/src/Container.tsx -------------------------------------------------------------------------------- /examples/react-router-v6/src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/react-router-v6/src/index.css -------------------------------------------------------------------------------- /examples/react-router-v6/src/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/react-router-v6/src/index.tsx -------------------------------------------------------------------------------- /examples/react-router-v6/src/react-app-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /examples/react-router-v6/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/react-router-v6/tsconfig.json -------------------------------------------------------------------------------- /examples/render-props/.env: -------------------------------------------------------------------------------- 1 | REACT_APP_DESCRIPTION=$npm_package_description 2 | SKIP_PREFLIGHT_CHECK=true -------------------------------------------------------------------------------- /examples/render-props/.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | -------------------------------------------------------------------------------- /examples/render-props/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/render-props/README.md -------------------------------------------------------------------------------- /examples/render-props/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/render-props/package.json -------------------------------------------------------------------------------- /examples/render-props/public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/render-props/public/index.html -------------------------------------------------------------------------------- /examples/render-props/src/Bar.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/render-props/src/Bar.tsx -------------------------------------------------------------------------------- /examples/render-props/src/Container.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/render-props/src/Container.tsx -------------------------------------------------------------------------------- /examples/render-props/src/Progress.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/render-props/src/Progress.tsx -------------------------------------------------------------------------------- /examples/render-props/src/Spinner.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/render-props/src/Spinner.tsx -------------------------------------------------------------------------------- /examples/render-props/src/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/render-props/src/index.css -------------------------------------------------------------------------------- /examples/render-props/src/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/render-props/src/index.tsx -------------------------------------------------------------------------------- /examples/render-props/src/react-app-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /examples/render-props/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/render-props/tsconfig.json -------------------------------------------------------------------------------- /examples/umd-dev/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/umd-dev/index.html -------------------------------------------------------------------------------- /examples/umd-dev/main.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/umd-dev/main.css -------------------------------------------------------------------------------- /examples/umd-dev/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/umd-dev/package.json -------------------------------------------------------------------------------- /examples/umd-prod/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/umd-prod/index.html -------------------------------------------------------------------------------- /examples/umd-prod/main.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/umd-prod/main.css -------------------------------------------------------------------------------- /examples/umd-prod/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/examples/umd-prod/package.json -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/index.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/package.json -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/renovate.json -------------------------------------------------------------------------------- /rollup.config.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/rollup.config.mjs -------------------------------------------------------------------------------- /scripts/jest/config.cjs.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/scripts/jest/config.cjs.js -------------------------------------------------------------------------------- /scripts/jest/config.cjsprod.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/scripts/jest/config.cjsprod.js -------------------------------------------------------------------------------- /scripts/jest/config.es.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/scripts/jest/config.es.js -------------------------------------------------------------------------------- /scripts/jest/config.src.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/scripts/jest/config.src.js -------------------------------------------------------------------------------- /scripts/jest/config.umd.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/scripts/jest/config.umd.js -------------------------------------------------------------------------------- /scripts/jest/config.umdprod.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/scripts/jest/config.umdprod.js -------------------------------------------------------------------------------- /src/NProgress.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/src/NProgress.tsx -------------------------------------------------------------------------------- /src/clamp.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/src/clamp.ts -------------------------------------------------------------------------------- /src/createQueue.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/src/createQueue.ts -------------------------------------------------------------------------------- /src/createTimeout.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/src/createTimeout.ts -------------------------------------------------------------------------------- /src/env.d.ts: -------------------------------------------------------------------------------- 1 | declare module 'react-lifecycles-compat' 2 | -------------------------------------------------------------------------------- /src/increment.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/src/increment.ts -------------------------------------------------------------------------------- /src/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/src/index.tsx -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/useEffectOnce.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/src/useEffectOnce.ts -------------------------------------------------------------------------------- /src/useGetSetState.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/src/useGetSetState.ts -------------------------------------------------------------------------------- /src/useNProgress.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/src/useNProgress.tsx -------------------------------------------------------------------------------- /src/useUpdateEffect.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/src/useUpdateEffect.ts -------------------------------------------------------------------------------- /src/withNProgress.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/src/withNProgress.tsx -------------------------------------------------------------------------------- /test/NProgress.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/test/NProgress.spec.tsx -------------------------------------------------------------------------------- /test/clamp.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/test/clamp.spec.ts -------------------------------------------------------------------------------- /test/increment.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/test/increment.spec.ts -------------------------------------------------------------------------------- /test/queue.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/test/queue.spec.ts -------------------------------------------------------------------------------- /test/timeout.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/test/timeout.spec.ts -------------------------------------------------------------------------------- /test/useEffectOnce.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/test/useEffectOnce.spec.ts -------------------------------------------------------------------------------- /test/useGetSetState.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/test/useGetSetState.spec.ts -------------------------------------------------------------------------------- /test/useNProgress.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/test/useNProgress.spec.ts -------------------------------------------------------------------------------- /test/useUpdateEffect.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/test/useUpdateEffect.spec.ts -------------------------------------------------------------------------------- /test/withNProgress.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/test/withNProgress.spec.tsx -------------------------------------------------------------------------------- /tsconfig.base.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/tsconfig.base.json -------------------------------------------------------------------------------- /tsconfig.eslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/tsconfig.eslint.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tanem/react-nprogress/HEAD/tsconfig.json --------------------------------------------------------------------------------