├── .circleci └── config.yml ├── .eslintrc.js ├── .github ├── codeql │ └── codeql-config.yml └── workflows │ └── codeql.yml ├── .gitignore ├── .husky ├── commit-msg └── pre-commit ├── .vscode ├── extensions.json └── settings.json ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── demo ├── src │ ├── AutoAlignment.tsx │ ├── Demo.tsx │ ├── PositionAlignOverview.tsx │ ├── hooks │ │ ├── index.ts │ │ └── useWatcher.ts │ ├── index.html │ ├── index.tsx │ └── regressions │ │ ├── ButtonOverlay.tsx │ │ ├── FitOnPage.tsx │ │ ├── Regression.tsx │ │ ├── Regressions.tsx │ │ ├── SameWidth.tsx │ │ ├── ScrollPosition.tsx │ │ ├── StickInSvg.tsx │ │ ├── StickNodeWidth.tsx │ │ ├── StickOnHover.tsx │ │ ├── StyledWithDataAttributes.tsx │ │ ├── TransportToFixedContainer.tsx │ │ └── index.ts ├── tsconfig.json └── vite.config.ts ├── package.json ├── renovate.json ├── src ├── Stick.tsx ├── StickContext.ts ├── StickInline.tsx ├── StickNode.tsx ├── StickPortal.tsx ├── defaultPosition.ts ├── hooks │ ├── index.ts │ ├── useAutoFlip.ts │ └── useWatcher.ts ├── index.ts ├── tsconfig.json ├── types.ts └── utils │ ├── fit.ts │ ├── getDefaultAlign.ts │ ├── getModifiers.ts │ ├── index.ts │ ├── scroll.ts │ └── uniqueId.ts ├── tests ├── cypress.config.ts ├── node │ └── ssr.spec.tsx ├── src │ ├── autoPositioning.test.tsx │ ├── customComponent.test.tsx │ ├── nodeWidth.test.tsx │ ├── onClickOutside.test.tsx │ ├── positioning.test.tsx │ ├── scroll.test.tsx │ ├── updates.test.tsx │ └── utils.tsx ├── support │ ├── commands.ts │ ├── component-index.html │ └── component.ts ├── tsconfig.json └── vitest.config.ts └── tsconfig.base.json /.circleci/config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/.circleci/config.yml -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.github/codeql/codeql-config.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/.github/codeql/codeql-config.yml -------------------------------------------------------------------------------- /.github/workflows/codeql.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/.github/workflows/codeql.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/commit-msg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/.husky/commit-msg -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env sh 2 | . "$(dirname -- "$0")/_/husky.sh" 3 | 4 | npx lint-staged 5 | -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/.vscode/extensions.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/README.md -------------------------------------------------------------------------------- /demo/src/AutoAlignment.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/demo/src/AutoAlignment.tsx -------------------------------------------------------------------------------- /demo/src/Demo.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/demo/src/Demo.tsx -------------------------------------------------------------------------------- /demo/src/PositionAlignOverview.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/demo/src/PositionAlignOverview.tsx -------------------------------------------------------------------------------- /demo/src/hooks/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/demo/src/hooks/index.ts -------------------------------------------------------------------------------- /demo/src/hooks/useWatcher.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/demo/src/hooks/useWatcher.ts -------------------------------------------------------------------------------- /demo/src/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/demo/src/index.html -------------------------------------------------------------------------------- /demo/src/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/demo/src/index.tsx -------------------------------------------------------------------------------- /demo/src/regressions/ButtonOverlay.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/demo/src/regressions/ButtonOverlay.tsx -------------------------------------------------------------------------------- /demo/src/regressions/FitOnPage.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/demo/src/regressions/FitOnPage.tsx -------------------------------------------------------------------------------- /demo/src/regressions/Regression.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/demo/src/regressions/Regression.tsx -------------------------------------------------------------------------------- /demo/src/regressions/Regressions.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/demo/src/regressions/Regressions.tsx -------------------------------------------------------------------------------- /demo/src/regressions/SameWidth.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/demo/src/regressions/SameWidth.tsx -------------------------------------------------------------------------------- /demo/src/regressions/ScrollPosition.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/demo/src/regressions/ScrollPosition.tsx -------------------------------------------------------------------------------- /demo/src/regressions/StickInSvg.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/demo/src/regressions/StickInSvg.tsx -------------------------------------------------------------------------------- /demo/src/regressions/StickNodeWidth.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/demo/src/regressions/StickNodeWidth.tsx -------------------------------------------------------------------------------- /demo/src/regressions/StickOnHover.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/demo/src/regressions/StickOnHover.tsx -------------------------------------------------------------------------------- /demo/src/regressions/StyledWithDataAttributes.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/demo/src/regressions/StyledWithDataAttributes.tsx -------------------------------------------------------------------------------- /demo/src/regressions/TransportToFixedContainer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/demo/src/regressions/TransportToFixedContainer.tsx -------------------------------------------------------------------------------- /demo/src/regressions/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/demo/src/regressions/index.ts -------------------------------------------------------------------------------- /demo/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/demo/tsconfig.json -------------------------------------------------------------------------------- /demo/vite.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/demo/vite.config.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/package.json -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/renovate.json -------------------------------------------------------------------------------- /src/Stick.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/src/Stick.tsx -------------------------------------------------------------------------------- /src/StickContext.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/src/StickContext.ts -------------------------------------------------------------------------------- /src/StickInline.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/src/StickInline.tsx -------------------------------------------------------------------------------- /src/StickNode.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/src/StickNode.tsx -------------------------------------------------------------------------------- /src/StickPortal.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/src/StickPortal.tsx -------------------------------------------------------------------------------- /src/defaultPosition.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/src/defaultPosition.ts -------------------------------------------------------------------------------- /src/hooks/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/src/hooks/index.ts -------------------------------------------------------------------------------- /src/hooks/useAutoFlip.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/src/hooks/useAutoFlip.ts -------------------------------------------------------------------------------- /src/hooks/useWatcher.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/src/hooks/useWatcher.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/src/tsconfig.json -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/src/types.ts -------------------------------------------------------------------------------- /src/utils/fit.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/src/utils/fit.ts -------------------------------------------------------------------------------- /src/utils/getDefaultAlign.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/src/utils/getDefaultAlign.ts -------------------------------------------------------------------------------- /src/utils/getModifiers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/src/utils/getModifiers.ts -------------------------------------------------------------------------------- /src/utils/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/src/utils/index.ts -------------------------------------------------------------------------------- /src/utils/scroll.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/src/utils/scroll.ts -------------------------------------------------------------------------------- /src/utils/uniqueId.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/src/utils/uniqueId.ts -------------------------------------------------------------------------------- /tests/cypress.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/tests/cypress.config.ts -------------------------------------------------------------------------------- /tests/node/ssr.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/tests/node/ssr.spec.tsx -------------------------------------------------------------------------------- /tests/src/autoPositioning.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/tests/src/autoPositioning.test.tsx -------------------------------------------------------------------------------- /tests/src/customComponent.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/tests/src/customComponent.test.tsx -------------------------------------------------------------------------------- /tests/src/nodeWidth.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/tests/src/nodeWidth.test.tsx -------------------------------------------------------------------------------- /tests/src/onClickOutside.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/tests/src/onClickOutside.test.tsx -------------------------------------------------------------------------------- /tests/src/positioning.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/tests/src/positioning.test.tsx -------------------------------------------------------------------------------- /tests/src/scroll.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/tests/src/scroll.test.tsx -------------------------------------------------------------------------------- /tests/src/updates.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/tests/src/updates.test.tsx -------------------------------------------------------------------------------- /tests/src/utils.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/tests/src/utils.tsx -------------------------------------------------------------------------------- /tests/support/commands.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/tests/support/commands.ts -------------------------------------------------------------------------------- /tests/support/component-index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/tests/support/component-index.html -------------------------------------------------------------------------------- /tests/support/component.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/tests/support/component.ts -------------------------------------------------------------------------------- /tests/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/tests/tsconfig.json -------------------------------------------------------------------------------- /tests/vitest.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/tests/vitest.config.ts -------------------------------------------------------------------------------- /tsconfig.base.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/signavio/react-stick/HEAD/tsconfig.base.json --------------------------------------------------------------------------------