react-timezone-select
Advanced tools
Comparing version 0.9.12 to 0.9.13
{ | ||
"name": "react-timezone-select", | ||
"version": "0.9.12", | ||
"version": "0.9.13", | ||
"description": "Usable, dynamic React Timezone Select", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -100,6 +100,8 @@ # đâ react-timezone-select | ||
New in `v0.9.11`, we shipped a new prop to allow users to fully replace the timezone choices, or simply append a few custom choices. | ||
Available in `v0.9.11+` - we've shipped a new prop to allow users to fully replace the timezone choices, or simply append custom choices of their own. | ||
The prop `timezones` takes an object where the key/value format is simply `'Official Timezone Name' : 'Your Label for it'`. So for example: | ||
The prop `timezones` takes an object where the key/value format is: `'Official Timezone Name' : 'Your Label for it'`. | ||
For example: | ||
``` | ||
@@ -112,4 +114,2 @@ import { TimezoneSelect, i18nTimezones } from 'react-timezone-select' | ||
onChange={setSelectedTimezone} | ||
labelStyle={labelStyle} | ||
onBlur={() => console.log('Blur!')} | ||
timezones={{ | ||
@@ -123,3 +123,3 @@ ...i18nTimezones | ||
Here you can see we're simply appending two new choices to the existing ones. You can omit the `i18nTimezones` object in the prop though and pass in your own complete custom list of timezone options. | ||
Here you can see how to append two new choices to the existing ones (`i18nTimezones`). You can also omit the `i18nTimezones` object in the prop and pass your own completely custom list of timezone choices. | ||
@@ -132,4 +132,5 @@ ## đ§ Contributing | ||
- [All Contributors](https://github.com/ndom91/react-timezone-select/graphs/contributors) | ||
- [Carlos Matallin](https://github.com/matallo/) | ||
- [spacetime](https://github.com/spencermountain/spacetime) | ||
- [react-select](https://react-select.com) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34307
133