react-timezone-select
Advanced tools
Comparing version 1.1.9 to 1.1.10
/// <reference types="react" /> | ||
import allTimezones from './timezone-list'; | ||
import "./index.css"; | ||
@@ -11,1 +12,2 @@ import type { Props } from './types/timezone'; | ||
export default TimezoneSelect; | ||
export { allTimezones }; |
@@ -109,2 +109,3 @@ import { jsx as _jsx } from "react/jsx-runtime"; | ||
export default TimezoneSelect; | ||
export { allTimezones }; | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "react-timezone-select", | ||
"version": "1.1.9", | ||
"version": "1.1.10", | ||
"description": "Usable, dynamic React Timezone Select", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -113,3 +113,3 @@ # 🌐⌚ react-timezone-select | ||
```jsx | ||
import TimezoneSelect, { i18nTimezones } from "react-timezone-select" | ||
import TimezoneSelect, { allTimezones } from "react-timezone-select" | ||
;<TimezoneSelect | ||
@@ -119,3 +119,3 @@ value={selectedTimezone} | ||
timezones={{ | ||
...i18nTimezones, | ||
...allTimezones, | ||
"America/Lima": "Pittsburgh", | ||
@@ -127,3 +127,3 @@ "Europe/Berlin": "Frankfurt", | ||
The above example will generate two additional choices in the select options, one with the label `'(GMT-5:00) Pittsburgh'` and another with `'(GMT+1:00) Frankfurt'`. You can omit spreading in the `i18nTimezones` object and then only your custom timezone options get rendered in the select component. | ||
The above example will generate two additional choices in the select options, one with the label `'(GMT-5:00) Pittsburgh'` and another with `'(GMT+1:00) Frankfurt'`. You can omit spreading in the `allTimezones` object and then only your custom timezone options get rendered in the select component. | ||
@@ -130,0 +130,0 @@ ## 🕹️ Props |
Sorry, the diff of this file is not supported yet
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
24263
209