npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@bw-ui/datepicker-mobile

v1.1.3

Published

Mobile plugin - Touch support, swipe gestures, orientation handling

Readme

@bw-ui/datepicker-mobile

Mobile plugin for BW DatePicker - Touch support, swipe gestures, and orientation handling.

Version License Size

Live DemoDocumentationCore Package

✨ Features

  • 👆 Touch Support - Native touch event handling
  • 👈👉 Swipe Gestures - Swipe left/right for month navigation
  • 🔄 Orientation Handling - Adapts to portrait/landscape
  • 📱 Mobile Detection - Auto-detect mobile devices
  • Touch Feedback - Visual feedback on touch

📦 Installation

npm install @bw-ui/datepicker @bw-ui/datepicker-mobile

⚠️ Peer Dependency: Requires @bw-ui/datepicker core package

🚀 Quick Start

ES Modules

import { BWDatePicker } from '@bw-ui/datepicker';
import { MobilePlugin } from '@bw-ui/datepicker-mobile';

const picker = new BWDatePicker('#date-input', {
  mode: 'popup',
}).use(BWMobile.MobilePlugin);

CDN

<link
  rel="stylesheet"
  href="https://unpkg.com/@bw-ui/datepicker/dist/bw-datepicker.min.css"
/>
<link
  rel="stylesheet"
  href="https://unpkg.com/@bw-ui/datepicker-mobile/dist/bw-mobile.min.css"
/>

<script src="https://unpkg.com/@bw-ui/datepicker/dist/bw-datepicker.min.js"></script>
<script src="https://unpkg.com/@bw-ui/datepicker-mobile/dist/bw-mobile.min.js"></script>

<script>
  const picker = new BW.BWDatePicker('#date-input').use(BWMobile.MobilePlugin);
</script>

⚙️ Options

.use(BWMobile.MobilePlugin, {
  enableTouch: true,
  enableSwipe: true,
  swipeThreshold: 50,
  touchFeedback: true,
  enableOrientationChange: true,
})

Options Reference

| Option | Type | Default | Values | Description | | ------------------------- | --------- | ------- | ------------------------ | --------------------------------- | | enableTouch | boolean | true | true, false | Enable touch event handling | | enableSwipe | boolean | true | true, false | Enable swipe gestures | | swipeThreshold | number | 50 | Any positive number (px) | Minimum swipe distance to trigger | | touchFeedback | boolean | true | true, false | Visual feedback on touch | | enableOrientationChange | boolean | true | true, false | Handle orientation changes |

👆 Swipe Gestures

| Gesture | Action | | ----------- | -------------- | | Swipe Left | Next month | | Swipe Right | Previous month |

📖 Examples

Basic Usage

.use(BWMobile.MobilePlugin)
// All features enabled by default

Disable Swipe

.use(BWMobile.MobilePlugin, {
  enableSwipe: false
})

Custom Swipe Sensitivity

.use(BWMobile.MobilePlugin, {
  swipeThreshold: 100  // Requires longer swipe
})

Disable Touch Feedback

.use(BWMobile.MobilePlugin, {
  touchFeedback: false
})

Touch Only (No Swipe)

.use(BWMobile.MobilePlugin, {
  enableTouch: true,
  enableSwipe: false
})

🔌 Combining with Other Plugins

import { BWDatePicker } from '@bw-ui/datepicker';
import { ThemingPlugin } from '@bw-ui/datepicker-theming';
import { MobilePlugin } from '@bw-ui/datepicker-mobile';

const picker = new BWDatePicker('#date-input')
  .use(ThemingPlugin, { theme: 'dark' })
  .use(BWMobile.MobilePlugin);

📁 What's Included

dist/
├── bw-mobile.min.js      # IIFE build (for <script>)
├── bw-mobile.esm.min.js  # ESM build (for import)
└── bw-mobile.min.css     # Mobile styles

🔗 Related Packages

| Package | Description | | ------------------------------------------------------------------------------------------------ | ---------------- | | @bw-ui/datepicker | Core (required) | | @bw-ui/datepicker-theming | Dark mode | | @bw-ui/datepicker-accessibility | Keyboard nav | | @bw-ui/datepicker-positioning | Auto-positioning | | @bw-ui/datepicker-input-handler | Input masking | | @bw-ui/datepicker-date-utils | Date utilities |

📄 License

MIT © BW UI

🐛 Issues

Found a bug? Report it here