react-timezone-select 3.0.4-beta.1 → 3.1.0

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +9 -8
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,24 +1,25 @@
1
+ import * as react_jsx_runtime_js from 'react/jsx-runtime.js';
1
2
  import { Props as Props$1 } from 'react-select';
2
3
 
3
- declare type ICustomTimezone = {
4
+ type ICustomTimezone = {
4
5
  [key: string]: string;
5
6
  };
6
- declare type ILabelStyle = 'original' | 'altName' | 'abbrev' | 'offsetHidden';
7
- declare type IDisplayValue = 'GMT' | 'UTC';
8
- declare type ITimezoneOption = {
7
+ type ILabelStyle = 'original' | 'altName' | 'abbrev' | 'offsetHidden';
8
+ type IDisplayValue = 'GMT' | 'UTC';
9
+ type ITimezoneOption = {
9
10
  value: string;
10
11
  label: string;
11
12
  abbrev?: string;
12
13
  altName?: string;
13
14
  offset?: number;
14
15
  };
15
- declare type ITimezone = ITimezoneOption | string;
16
- declare type TimezoneSelectOptions = {
16
+ type ITimezone = ITimezoneOption | string;
17
+ type TimezoneSelectOptions = {
17
18
  labelStyle?: ILabelStyle;
18
19
  displayValue?: IDisplayValue;
19
20
  timezones?: ICustomTimezone;
20
21
  };
21
- declare type Props = Omit<Props$1<ITimezone, false>, 'onChange'> & TimezoneSelectOptions & {
22
+ type Props = Omit<Props$1<ITimezone, false>, 'onChange'> & TimezoneSelectOptions & {
22
23
  value: ITimezone;
23
24
  onChange?: (timezone: ITimezone) => void;
24
25
  };
@@ -29,6 +30,6 @@ declare function useTimezoneSelect({ timezones, labelStyle, displayValue, }: Tim
29
30
  parseTimezone: (zone: ITimezone) => ITimezoneOption;
30
31
  options: ITimezoneOption[];
31
32
  };
32
- declare const TimezoneSelect: ({ value, onBlur, onChange, labelStyle, displayValue, timezones, ...props }: Props) => JSX.Element;
33
+ declare const TimezoneSelect: ({ value, onBlur, onChange, labelStyle, displayValue, timezones, ...props }: Props) => react_jsx_runtime_js.JSX.Element;
33
34
 
34
35
  export { ILabelStyle, ITimezone, ITimezoneOption, Props, TimezoneSelectOptions, allTimezones, TimezoneSelect as default, useTimezoneSelect };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-timezone-select",
3
- "version": "3.0.4-beta.1",
3
+ "version": "3.1.0",
4
4
  "description": "Usable, dynamic React Timezone Select",
5
5
  "scripts": {
6
6
  "dev": "concurrently \"tsup src/index.tsx --format esm --watch\" \"cd example && pnpm dev\"",