🌐 An extremely usable and dynamic React timezone selector
MIT License
Bot releases are hidden (Show)
"use client"
injectionFull Changelog: https://github.com/ndom91/react-timezone-select/compare/v3.2.2...v3.2.3
Published by ndom91 9 months ago
Full Changelog: https://github.com/ndom91/react-timezone-select/compare/v3.2.1...v3.2.2
Published by ndom91 9 months ago
"use client"
directive for use in applications using server componentsFull Changelog: https://github.com/ndom91/react-timezone-select/compare/v3.2.0...v3.2.1
Published by ndom91 9 months ago
currentDatetime
- allow overriding "current" time
Published by ndom91 10 months ago
react-select
peer dependency to v5.7.3
as minimum due to their shipping of a node esm import fixPublished by ndom91 11 months ago
Not many changes here, but bumped a major version because I removed a prop (maxAbbrLength
) and thats a breaking change.
maxAbbrLength
propjest
to vitest
Published by ndom91 over 1 year ago
useTimezoneSelect
hook to decouple this component from the react-select
dependency.
Published by ndom91 over 1 year ago
Published by ndom91 over 1 year ago
react-select
) has been made a peer dependency now, in preparation for releasing a hook for the library, decoupling the functionality completely from the react-select
component. If you use npm 7+
it will auto install it peer-dependencies for you. If you use another package manager, you may need to add react-select
to your project.Published by ndom91 over 1 year ago
timezone-soft
and spacetime
versionsPublished by ndom91 over 1 year ago
react
/react-dom
/emotion
, etc. per default with the libraryPR: https://github.com/ndom91/react-timezone-select/pull/82
Full Changelog: https://github.com/ndom91/react-timezone-select/compare/v1.5.0...v1.5.1
Published by ndom91 over 1 year ago
Published by ndom91 over 1 year ago
react-select
to 5.7.0
Published by ndom91 over 2 years ago
next-transpile-modules
to use this library with Next.js 12+.Published by ndom91 almost 3 years ago
Published by ndom91 about 3 years ago
This release doesn't strictly provide new features, but I did upgrade all of the dependencies behind the scenes and renamed one rarely used export.
Changes are as follows:
spacetime-informal
was renamed to timezone-soft
react-select
: 4.3.1
-> 5.0.0
spacetime
: 6.16.2
-> 6.16.3
The timezones object export was renamed from i18nTimezones
to allTimezones
. This is only there for those that want to extend the list of available timezones themselves, and then spread this list of existing timezones in to fulfill the list.
There were also some minor internal typescript changes that should not affect the end use of this component.
Published by ndom91 over 3 years ago
Hey yall!
If you haven't checked in here in a while, this is a major version bump, but no user facing breaking changes!
Just figured its finally time for a major version bump as there have been a lot of internal changes, including:
...useState(Intl.DateTimeFormat().resolvedOptions().timeZone)
) - see readme for detailsTo get up and running, just install from npm and follow the instructions in the readme!
npm install react-timezone-select
Thanks for your interest and support thusfar!
Published by ndom91 over 3 years ago
Some major changes have taken place since the last stable release. I've refactored the component to be in Typescript, so those of you looking for types, they are now included! Of course you can still use it as you have always been in normal javascript as well. There is no breaking-change in this regard.
In fact, we've also added jest and a suite of tests to ensure there are no unintended breaking changes going forward!
Published by ndom91 almost 4 years ago
Added package.json attributes for import/export to better support usage as an ESM Module.
Published by ndom91 almost 4 years ago
This is a smaller release which redefines how we parse the value passed into value
.
It now allows, for example, to simply pass in the timezone name (i.e. "Europe/Berlin") if thats all you store in your DB, and it'll find the correct timezone object and use it.
Thanks #11 for the issue / suggestion!