react-timezone-select 3.0.2 → 3.0.3

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 +8 -9
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -1,25 +1,24 @@
1
- import * as react_jsx_runtime_js from 'react/jsx-runtime.js';
2
1
  import { Props as Props$1 } from 'react-select';
3
2
 
4
- type ICustomTimezone = {
3
+ declare type ICustomTimezone = {
5
4
  [key: string]: string;
6
5
  };
7
- type ILabelStyle = 'original' | 'altName' | 'abbrev' | 'offsetHidden';
8
- type IDisplayValue = 'GMT' | 'UTC';
9
- type ITimezoneOption = {
6
+ declare type ILabelStyle = 'original' | 'altName' | 'abbrev' | 'offsetHidden';
7
+ declare type IDisplayValue = 'GMT' | 'UTC';
8
+ declare type ITimezoneOption = {
10
9
  value: string;
11
10
  label: string;
12
11
  abbrev?: string;
13
12
  altName?: string;
14
13
  offset?: number;
15
14
  };
16
- type ITimezone = ITimezoneOption | string;
17
- type TimezoneSelectOptions = {
15
+ declare type ITimezone = ITimezoneOption | string;
16
+ declare type TimezoneSelectOptions = {
18
17
  labelStyle?: ILabelStyle;
19
18
  displayValue?: IDisplayValue;
20
19
  timezones?: ICustomTimezone;
21
20
  };
22
- type Props = Omit<Props$1<ITimezone, false>, 'onChange'> & TimezoneSelectOptions & {
21
+ declare type Props = Omit<Props$1<ITimezone, false>, 'onChange'> & TimezoneSelectOptions & {
23
22
  value: ITimezone;
24
23
  onChange?: (timezone: ITimezone) => void;
25
24
  };
@@ -30,6 +29,6 @@ declare function useTimezoneSelect({ timezones, labelStyle, displayValue, }: Tim
30
29
  parseTimezone: (zone: ITimezone) => ITimezoneOption;
31
30
  options: ITimezoneOption[];
32
31
  };
33
- declare const TimezoneSelect: ({ value, onBlur, onChange, labelStyle, displayValue, timezones, ...props }: Props) => react_jsx_runtime_js.JSX.Element;
32
+ declare const TimezoneSelect: ({ value, onBlur, onChange, labelStyle, displayValue, timezones, ...props }: Props) => JSX.Element;
34
33
 
35
34
  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.2",
3
+ "version": "3.0.3",
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\"",
@@ -49,7 +49,7 @@
49
49
  "peerDependencies": {
50
50
  "react": "^18 || ^17.0.1 || ^16",
51
51
  "react-dom": "^18 || ^17.0.1 || ^16",
52
- "react-select": "^5.7.0"
52
+ "react-select": "^5.7.3"
53
53
  },
54
54
  "dependencies": {
55
55
  "spacetime": "^7.4.8",