react-timezone-select 1.4.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- import allTimezones from './timezone-list.js';
3
- import type { Props, ITimezone, ITimezoneOption, ILabelStyle } from './types/timezone';
4
- export { allTimezones };
5
- export type { ITimezone, ITimezoneOption, Props, ILabelStyle };
6
- declare const TimezoneSelect: ({ value, onBlur, onChange, labelStyle, timezones, ...props }: Props) => JSX.Element;
7
- export default TimezoneSelect;
@@ -1,3 +0,0 @@
1
- import type { ICustomTimezone } from './types/timezone';
2
- declare const allTimezones: ICustomTimezone;
3
- export default allTimezones;
@@ -1 +0,0 @@
1
- import "@testing-library/jest-dom/extend-expect";
@@ -1,19 +0,0 @@
1
- import type { Props as ReactSelectProps } from "react-select";
2
- export declare type ICustomTimezone = {
3
- [key: string]: string;
4
- };
5
- export declare type ILabelStyle = "original" | "altName" | "abbrev";
6
- export interface ITimezoneOption {
7
- value: string;
8
- label: string;
9
- abbrev?: string;
10
- altName?: string;
11
- offset?: number;
12
- }
13
- export declare type ITimezone = ITimezoneOption | string;
14
- export interface Props extends Omit<ReactSelectProps, "onChange"> {
15
- value: ITimezone;
16
- labelStyle?: ILabelStyle;
17
- onChange?: (timezone: ITimezoneOption) => void;
18
- timezones?: ICustomTimezone;
19
- }