├── .commitlintrc.json ├── .editorconfig ├── .eslintrc.json ├── .gitattributes ├── .github ├── CODEOWNERS ├── dependabot.yml └── workflows │ └── ci.yml ├── .gitignore ├── .husky ├── commit-msg └── pre-commit ├── .lintstagedrc.json ├── .npmrc ├── .nvmrc ├── .prettierrc.json ├── .releaserc.json ├── .storybook ├── main.ts └── preview.ts ├── CHANGELOG.md ├── LICENSE ├── README.md ├── jest.config.json ├── package.json ├── scripts └── build.ts ├── src ├── HeartSwitch.tsx ├── __tests__ │ ├── HeartSwitch.tsx │ ├── __snapshots__ │ │ └── HeartSwitch.tsx.snap │ └── hooks │ │ ├── useAnimationDuration.ts │ │ ├── useFirstMountState.ts │ │ └── usePrevious.ts ├── hooks │ ├── useAnimationDuration.ts │ ├── useFirstMountState.ts │ └── usePrevious.ts ├── index.ts ├── stories │ └── HeartSwitch.stories.tsx └── style.ts ├── tsconfig.eslint.json └── tsconfig.json /.commitlintrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": ["@commitlint/config-conventional"] 3 | } 4 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anatoliygatt/heart-switch/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anatoliygatt/heart-switch/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @anatoliygatt 2 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anatoliygatt/heart-switch/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anatoliygatt/heart-switch/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anatoliygatt/heart-switch/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/commit-msg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anatoliygatt/heart-switch/HEAD/.husky/commit-msg -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . "$(dirname "$0")/_/husky.sh" 3 | 4 | npx lint-staged 5 | -------------------------------------------------------------------------------- /.lintstagedrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anatoliygatt/heart-switch/HEAD/.lintstagedrc.json -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | legacy-peer-deps=true 2 | -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 16 2 | -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- 1 | { 2 | "singleQuote": true 3 | } 4 | -------------------------------------------------------------------------------- /.releaserc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anatoliygatt/heart-switch/HEAD/.releaserc.json -------------------------------------------------------------------------------- /.storybook/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anatoliygatt/heart-switch/HEAD/.storybook/main.ts -------------------------------------------------------------------------------- /.storybook/preview.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anatoliygatt/heart-switch/HEAD/.storybook/preview.ts -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anatoliygatt/heart-switch/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anatoliygatt/heart-switch/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anatoliygatt/heart-switch/HEAD/README.md -------------------------------------------------------------------------------- /jest.config.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anatoliygatt/heart-switch/HEAD/jest.config.json -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anatoliygatt/heart-switch/HEAD/package.json -------------------------------------------------------------------------------- /scripts/build.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anatoliygatt/heart-switch/HEAD/scripts/build.ts -------------------------------------------------------------------------------- /src/HeartSwitch.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anatoliygatt/heart-switch/HEAD/src/HeartSwitch.tsx -------------------------------------------------------------------------------- /src/__tests__/HeartSwitch.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anatoliygatt/heart-switch/HEAD/src/__tests__/HeartSwitch.tsx -------------------------------------------------------------------------------- /src/__tests__/__snapshots__/HeartSwitch.tsx.snap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anatoliygatt/heart-switch/HEAD/src/__tests__/__snapshots__/HeartSwitch.tsx.snap -------------------------------------------------------------------------------- /src/__tests__/hooks/useAnimationDuration.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anatoliygatt/heart-switch/HEAD/src/__tests__/hooks/useAnimationDuration.ts -------------------------------------------------------------------------------- /src/__tests__/hooks/useFirstMountState.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anatoliygatt/heart-switch/HEAD/src/__tests__/hooks/useFirstMountState.ts -------------------------------------------------------------------------------- /src/__tests__/hooks/usePrevious.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anatoliygatt/heart-switch/HEAD/src/__tests__/hooks/usePrevious.ts -------------------------------------------------------------------------------- /src/hooks/useAnimationDuration.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anatoliygatt/heart-switch/HEAD/src/hooks/useAnimationDuration.ts -------------------------------------------------------------------------------- /src/hooks/useFirstMountState.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anatoliygatt/heart-switch/HEAD/src/hooks/useFirstMountState.ts -------------------------------------------------------------------------------- /src/hooks/usePrevious.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anatoliygatt/heart-switch/HEAD/src/hooks/usePrevious.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './HeartSwitch'; 2 | -------------------------------------------------------------------------------- /src/stories/HeartSwitch.stories.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anatoliygatt/heart-switch/HEAD/src/stories/HeartSwitch.stories.tsx -------------------------------------------------------------------------------- /src/style.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anatoliygatt/heart-switch/HEAD/src/style.ts -------------------------------------------------------------------------------- /tsconfig.eslint.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anatoliygatt/heart-switch/HEAD/tsconfig.eslint.json -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/anatoliygatt/heart-switch/HEAD/tsconfig.json --------------------------------------------------------------------------------