{"_id":"@1ohooks/swipeable","_rev":"3-a97f55ce079735cffe2f532ae28393b7","name":"@1ohooks/swipeable","dist-tags":{"latest":"0.1.3"},"versions":{"0.1.0":{"name":"@1ohooks/swipeable","version":"0.1.0","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc && copyfiles -u 1 src/**/*.{scss,png,jpg} dist/"},"keywords":[],"author":"","license":"ISC","dependencies":{"@1ohooks/use-horizontal-swipe-minimum":"0.1.0","@1ohooks/use-swipe":"0.1.0","@1ohooks/use-vertical-swipe-minimum":"0.1.0"},"_id":"@1ohooks/swipeable@0.1.0","_nodeVersion":"18.14.2","_npmVersion":"9.5.1","dist":{"integrity":"sha512-6PLB59hhKOKCagV0G3i0ZPpshCJJqx3rfQ0pelcxsklROyq/guGC3sOJ/LkdHLZLbhu0heu25a+qWhPYP/ygbQ==","shasum":"204bed8dcf9c6bd895204d6ceb5734c592f04776","tarball":"https://registry.npmjs.org/@1ohooks/swipeable/-/swipeable-0.1.0.tgz","fileCount":5,"unpackedSize":2341,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICEuPeLEHIEYv2COW8zyLsTkRKX8qEyibMRSGzivtS2hAiEAi7znZAn4KP1WmsYbPpSq2n0MIR4r6IGPcK3aL0nl09A="}]},"_npmUser":{"name":"1ojames","email":"jameshuntdevelopment@gmail.com"},"directories":{},"maintainers":[{"name":"1ojames","email":"jameshuntdevelopment@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swipeable_0.1.0_1695584850400_0.3842713585507407"},"_hasShrinkwrap":false},"0.1.1":{"name":"@1ohooks/swipeable","version":"0.1.1","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc && copyfiles -u 1 src/**/*.{scss,png,jpg} dist/"},"keywords":[],"author":"","license":"ISC","dependencies":{"@1ohooks/use-horizontal-swipe-minimum":"0.1.0","@1ohooks/use-swipe":"0.1.0","@1ohooks/use-vertical-swipe-minimum":"0.1.0"},"description":"[![Version](https://img.shields.io/npm/v/@1ohooks/swipeable.svg)](https://www.npmjs.org/package/@1ohooks/swipeable) [![Build Status](https://github.com/1ohooks/swipeable/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/1ohooks/swipe","_id":"@1ohooks/swipeable@0.1.1","_nodeVersion":"18.14.2","_npmVersion":"9.5.1","dist":{"integrity":"sha512-gtCZ0xuGeaxLl2Lweh1XgauDj1H8CZXeXUtZaxVOaDy8yPs9JHCKMbgucc5tJAU4xRCmgFz62ef3kPNdWgaHXg==","shasum":"ef5737946495a522d852c8d9480485deec30b4cd","tarball":"https://registry.npmjs.org/@1ohooks/swipeable/-/swipeable-0.1.1.tgz","fileCount":6,"unpackedSize":4849,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDv4G2Mi1m0E/sB9Cxdh7YjNWSf3AlI771e1bq2Cq5HrwIhAKEe1wB7VJsoKZWw3TC5etCYwZNeIsR34cyhkbNYAP3/"}]},"_npmUser":{"name":"1ojames","email":"jameshuntdevelopment@gmail.com"},"directories":{},"maintainers":[{"name":"1ojames","email":"jameshuntdevelopment@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swipeable_0.1.1_1695589152442_0.1441421283848099"},"_hasShrinkwrap":false},"0.1.2":{"name":"@1ohooks/swipeable","version":"0.1.2","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc && copyfiles -u 1 src/**/*.{scss,png,jpg} dist/"},"keywords":[],"author":"","license":"ISC","dependencies":{"@1ohooks/use-horizontal-swipe-minimum":"0.1.0","@1ohooks/use-swipe":"0.1.0","@1ohooks/use-vertical-swipe-minimum":"0.1.0"},"description":"[![Version](https://img.shields.io/npm/v/@1ohooks/swipeable.svg)](https://www.npmjs.org/package/@1ohooks/swipeable) [![Build Status](https://github.com/1ohooks/swipeable/actions/workflows/main.yml/badge.svg?branch=master)](https://github.com/jameshuntt) [","_id":"@1ohooks/swipeable@0.1.2","_nodeVersion":"18.14.2","_npmVersion":"9.5.1","dist":{"integrity":"sha512-8k4Cyr9jglrbiBVz+t4JYVPWUj19i6rBpzbslZ8NMTYaAzsP0L6j46I7nKS4R49M1NkYq39jTu/65GW2nuwNVg==","shasum":"c05467713be904f5339d41b637f5b4643418c254","tarball":"https://registry.npmjs.org/@1ohooks/swipeable/-/swipeable-0.1.2.tgz","fileCount":6,"unpackedSize":4812,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC6oUkxN+engLLTjbfS5KOz243Iz9n5qe1phFC8UGcH9QIhAP4rIV/usAapU71p9uhDJKfbcN/vX71dUcWV8I6BTlqI"}]},"_npmUser":{"name":"1ojames","email":"jameshuntdevelopment@gmail.com"},"directories":{},"maintainers":[{"name":"1ojames","email":"jameshuntdevelopment@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swipeable_0.1.2_1695589253418_0.07955857944917666"},"_hasShrinkwrap":false},"0.1.3":{"name":"@1ohooks/swipeable","version":"0.1.3","main":"dist/index.js","types":"dist/index.d.ts","scripts":{"build":"tsc && copyfiles -u 1 src/**/*.{scss,png,jpg} dist/"},"keywords":[],"author":"","license":"ISC","dependencies":{"@1ohooks/use-horizontal-swipe-minimum":"0.1.0","@1ohooks/use-swipe":"0.1.0","@1ohooks/use-vertical-swipe-minimum":"0.1.0"},"description":"[![Version](https://img.shields.io/npm/v/@1ohooks/swipeable.svg)](https://www.npmjs.org/package/@1ohooks/swipeable) [![Coverage Status](https://coveralls.io/repos/github/1ohooks/swipeable/badge.svg?branch=master)](https://coveralls.io/github/1ohooks/swipe","_id":"@1ohooks/swipeable@0.1.3","_nodeVersion":"18.14.2","_npmVersion":"9.5.1","dist":{"integrity":"sha512-4jv/nDp2cypgkZ+YaODGNd7RfS5n315/NEmZH6rC/V2YdIP5yUnt+tlPVnJKOea+vgJSIr/hQ3CJ0PBCulJsyw==","shasum":"1df10095cbad4280ebbd5ba8769325b928205b1b","tarball":"https://registry.npmjs.org/@1ohooks/swipeable/-/swipeable-0.1.3.tgz","fileCount":6,"unpackedSize":4674,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCID6GUokjvL1h/xgFOPWET6ItD1VvxW3wy8cczMInQpbbAiBfT/QqQnNMJFehJjGFlPMyhYpOGdqc0deE32DESf5zjA=="}]},"_npmUser":{"name":"1ojames","email":"jameshuntdevelopment@gmail.com"},"directories":{},"maintainers":[{"name":"1ojames","email":"jameshuntdevelopment@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/swipeable_0.1.3_1695589347332_0.7603480011294348"},"_hasShrinkwrap":false}},"time":{"created":"2023-09-24T19:47:30.273Z","0.1.0":"2023-09-24T19:47:30.575Z","modified":"2023-09-24T21:02:27.737Z","0.1.1":"2023-09-24T20:59:12.678Z","0.1.2":"2023-09-24T21:00:53.588Z","0.1.3":"2023-09-24T21:02:27.489Z"},"maintainers":[{"name":"1ojames","email":"jameshuntdevelopment@gmail.com"}],"keywords":[],"license":"ISC","readme":"# @1ohooks/swipeable\n\n[![Version](https://img.shields.io/npm/v/@1ohooks/swipeable.svg)](https://www.npmjs.org/package/@1ohooks/swipeable)\n[![Coverage Status](https://coveralls.io/repos/github/1ohooks/swipeable/badge.svg?branch=master)](https://coveralls.io/github/1ohooks/swipeable?branch=master)\n[![Downloads](https://img.shields.io/npm/dm/@1ohooks/swipeable.svg)](https://www.npmjs.com/package/@1ohooks/swipeable)\n[![Try on RunKit](https://badge.runkitcdn.com/@1ohooks/swipeable.svg)](https://runkit.com/npm/@1ohooks/swipeable)\n\nThe `@1ohooks/swipeable` package provides hooks for handling swipe gestures in React applications.\n\n## Installation\n\nInstall the package with:\n\n```sh\nnpm install @1ohooks/swipeable\n# or\nyarn add @1ohooks/swipeable\n```\n\n## Documentation\n\n### useHorizontalSwipeMinimum\n\nThe `useHorizontalSwipeMinimum` hook allows you to detect horizontal swipe gestures.\n\n```javascript\nimport { useHorizontalSwipeMinimum } from '@1ohooks/swipeable';\n\n// Usage example\nfunction MyComponent() {\n  useHorizontalSwipeMinimum(50, () => {\n    // Handle swipe left\n  }, () => {\n    // Handle swipe right\n  });\n\n  return (\n    // Your component JSX\n  );\n}\n```\n\n### useVerticalSwipeMinimum\n\nThe `useVerticalSwipeMinimum` hook allows you to detect vertical swipe gestures.\n\n```javascript\nimport { useVerticalSwipeMinimum } from '@1ohooks/swipeable';\n\n// Usage example\nfunction MyComponent() {\n  useVerticalSwipeMinimum(50, () => {\n    // Handle swipe up\n  }, () => {\n    // Handle swipe down\n  });\n\n  return (\n    // Your component JSX\n  );\n}\n```\n\n### useSwipe\n\nThe `useSwipe` hook provides a more versatile way to handle swipe gestures with customizable options.\n\n```javascript\nimport { useSwipe } from '@1ohooks/swipeable';\n\n// Usage example\nfunction MyComponent() {\n  const { swipeDistance } = useSwipe({\n    threshold: 50,\n    onSwipeLeft: () => {\n      // Handle swipe left\n    },\n    onSwipeRight: () => {\n      // Handle swipe right\n    },\n    // Additional configuration options\n  });\n\n  return (\n    // Your component JSX\n  );\n}\n```\n\n## Requirements\n\n- React 16 or higher.\n\n## Usage\n\nYou can easily integrate the swipe gestures into your React components by importing and using the provided hooks.\n\nFor more advanced usage and configuration options, refer to the individual hook documentation.","readmeFilename":"readme.md","description":"[![Version](https://img.shields.io/npm/v/@1ohooks/swipeable.svg)](https://www.npmjs.org/package/@1ohooks/swipeable) [![Coverage Status](https://coveralls.io/repos/github/1ohooks/swipeable/badge.svg?branch=master)](https://coveralls.io/github/1ohooks/swipe"}