Socket
Socket
Sign inDemoInstall

@blueprintjs/datetime2

Package Overview
Dependencies
50
Maintainers
1
Versions
104
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @blueprintjs/datetime2

Re-exports of @blueprintjs/datetime APIs


Version published
Weekly downloads
21K
increased by8.93%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Blueprint Date & Time Components (V2)

Blueprint is a React UI toolkit for the web.

This package contains next-generation components for interacting with dates & times.

Compared to the "V1" components in @blueprintjs/datetime, the "V3" components in this package:

  • use react-day-picker v8 instead of v7 (this unblocks React 18 compatibility)
  • are easier to internationalize & localize since date-fns is now a dependency (instead of localeUtils, you can specify a locale code and we'll automatically load the date-fns locale object)

This package also contains legacy APIs which are re-exported aliases for components from @blueprintjs/datetime v5.x. These "V2" names are backwards-compatible with @blueprintjs/datetime2 v0.x.

To migrate to the latest "V3" components, follow the react-day-picker v8 migration guide.

Note that @blueprintjs/datetime2 will transitively install multiple versions of react-day-picker. These two copies of react-day-picker can happily exist together in a single JS bundle, and with the help of tree-shaking, you can avoid bundling both if you only use the deprecated "V1" / "V2" datetime components or only use the new "V3" APIs.

Full Documentation | Source Code

Keywords

FAQs

Last updated on 20 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc