@omnic/widget-locations 1.0.57 → 1.0.59

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 (84) hide show
  1. package/README.md +37 -20
  2. package/dist/lib/components/Aside/Aside.d.ts +1 -1
  3. package/dist/lib/components/AsyncSelect/AsyncSelect.d.ts +2 -2
  4. package/dist/lib/components/Button/Button.d.ts +1 -1
  5. package/dist/lib/components/Checkbox/Checkbox.d.ts +1 -1
  6. package/dist/lib/components/CheckboxGroup/CheckboxGroup.d.ts +3 -2
  7. package/dist/lib/components/Chip/Chip.d.ts +1 -1
  8. package/dist/lib/components/CloseButton/CloseButton.d.ts +6 -2
  9. package/dist/lib/components/CourierBalloon/CourierBalloon.d.ts +2 -2
  10. package/dist/lib/components/CourierBalloon/index.d.ts +1 -0
  11. package/dist/lib/components/CourierDetailsModal/CourierDetailsModal.d.ts +2 -2
  12. package/dist/lib/components/CourierDetailsView/CourierDetailsView.d.ts +1 -1
  13. package/dist/lib/components/CourierDetailsView/CourierDetailsView.utils.d.ts +2 -2
  14. package/dist/lib/components/CurrentLocation/CurrentLocation.d.ts +1 -1
  15. package/dist/lib/components/Header/LogoContainer.d.ts +1 -1
  16. package/dist/lib/components/Hr/Hr.d.ts +1 -1
  17. package/dist/lib/components/Input/Input.d.ts +2 -2
  18. package/dist/lib/components/Layout/Layout.d.ts +1 -1
  19. package/dist/lib/components/LocationAside/LocationAside.d.ts +2 -1
  20. package/dist/lib/components/LocationBalloon/LocationBalloon.d.ts +2 -2
  21. package/dist/lib/components/LocationDetailsModal/LocationDetailsModal.d.ts +2 -2
  22. package/dist/lib/components/LocationSelector/CourierDeliverySelectorContainer.d.ts +1 -1
  23. package/dist/lib/components/LocationSelector/LocationSelector.utils.d.ts +1 -0
  24. package/dist/lib/components/LocationSelector/SelfPickupSelectorContainer.d.ts +2 -2
  25. package/dist/lib/components/LocationView/LocationView.d.ts +1 -1
  26. package/dist/lib/components/MapContainer/DetailsModalContainer.d.ts +1 -1
  27. package/dist/lib/components/MapContainer/FilterButton.d.ts +1 -1
  28. package/dist/lib/components/MapContainer/MapContainer.d.ts +1 -1
  29. package/dist/lib/components/MapGoogle/Clusters.d.ts +5 -5
  30. package/dist/lib/components/MapGoogle/ClustersContainer.d.ts +5 -6
  31. package/dist/lib/components/MapGoogle/CourierPoint.d.ts +5 -5
  32. package/dist/lib/components/MapGoogle/MapContainer.d.ts +2 -2
  33. package/dist/lib/components/MapGoogle/MapGoogle.d.ts +1 -1
  34. package/dist/lib/components/MapGoogle/MapGoogle.hooks.d.ts +0 -12
  35. package/dist/lib/components/MapGoogle/Point.d.ts +6 -6
  36. package/dist/lib/components/MapGoogle/PointSheet.d.ts +2 -2
  37. package/dist/lib/components/MapYandex/MapYandex.constants.d.ts +4 -4
  38. package/dist/lib/components/MapYandex/MapYandex.d.ts +1 -1
  39. package/dist/lib/components/MapYandex/MapYandex.utils.d.ts +2 -2
  40. package/dist/lib/components/Overlay/Overlay.d.ts +1 -1
  41. package/dist/lib/components/Radio/Radio.d.ts +1 -1
  42. package/dist/lib/components/RadioGroup/RadioGroup.d.ts +3 -2
  43. package/dist/lib/components/RangeSlider/RangeSlider.d.ts +1 -1
  44. package/dist/lib/components/Sidebar/HeaderContainer.d.ts +1 -1
  45. package/dist/lib/components/Sidebar/ReceiveFilterContainer.d.ts +1 -1
  46. package/dist/lib/components/Sidebar/SendFilterContainer.d.ts +1 -1
  47. package/dist/lib/components/Sidebar/Sidebar.d.ts +1 -1
  48. package/dist/lib/components/Sidebar/TypeFilterContainer.d.ts +1 -1
  49. package/dist/lib/components/TextArea/TextArea.d.ts +2 -2
  50. package/dist/lib/components/TimeRangeSlider/TimeRangeSlider.d.ts +2 -2
  51. package/dist/lib/components/TypeFilter/TypeFilter.d.ts +1 -1
  52. package/dist/lib/components/WorkingHoursFilter/WorkingHoursFilter.d.ts +2 -2
  53. package/dist/lib/constants/config.d.ts +1 -1
  54. package/dist/lib/constants/map.d.ts +2 -2
  55. package/dist/lib/context/config.d.ts +1 -1
  56. package/dist/lib/hooks/useInitializeAxios.d.ts +1 -1
  57. package/dist/lib/hooks/useInputProps.d.ts +1 -1
  58. package/dist/lib/hooks/useMapRenderer.d.ts +1 -1
  59. package/dist/lib/hooks/useMergedRef.d.ts +1 -1
  60. package/dist/lib/hooks/useWidgetConfig.d.ts +1 -1
  61. package/dist/lib/services/points.d.ts +3 -5
  62. package/dist/lib/stores/courierPoint.d.ts +1 -1
  63. package/dist/lib/stores/filters.d.ts +1 -1
  64. package/dist/lib/stores/map.d.ts +4 -3
  65. package/dist/lib/stores/points.d.ts +2 -2
  66. package/dist/lib/stores/selectedPoint.d.ts +1 -3
  67. package/dist/lib/style.css +1 -1
  68. package/dist/lib/types/cities.d.ts +2 -2
  69. package/dist/lib/types/config.d.ts +15 -4
  70. package/dist/lib/types/map.d.ts +3 -1
  71. package/dist/lib/types/points.d.ts +3 -3
  72. package/dist/lib/utils/createPointsIterator.d.ts +2 -2
  73. package/dist/lib/utils/fromHoursMinutesToMinutes.d.ts +1 -1
  74. package/dist/lib/utils/fromMinutesToHoursMinutes.d.ts +1 -1
  75. package/dist/lib/utils/getAddressFromLatLng.d.ts +1 -1
  76. package/dist/lib/utils/stopImmediatePropagation.d.ts +1 -1
  77. package/dist/lib/views/Widget/LocaleProvider.d.ts +2 -2
  78. package/dist/lib/views/Widget/PreloaderOverlay.d.ts +1 -1
  79. package/dist/lib/views/Widget/Widget.d.ts +2 -2
  80. package/dist/lib/views/Widget/Widget.hooks.d.ts +3 -3
  81. package/dist/lib/views/Widget/WidgetContainer.d.ts +1 -1
  82. package/dist/lib/widget.es.js +5063 -5077
  83. package/dist/lib/widget.umd.js +22 -22
  84. package/package.json +22 -17
package/README.md CHANGED
@@ -110,26 +110,30 @@ type CallbackPoint = LocationPoint | CourierDeliveryPoint;
110
110
 
111
111
  Then `OMNIC_WIDGET_LOCATIONS_CONFIG` has the following structure:
112
112
 
113
- | Property | Type | Description |
114
- | ---------------------- | ------------ | ----------------------------------------------------------------------- |
115
- | INN | string | INN of the company that uses the widget |
116
- | font | string | Font family to use |
117
- | radius | number | Border radius of buttons |
118
- | locale | string | Locale of the widget. Currently supported: `en`, `ru` |
119
- | country | string | Country code in ISO 3166-1 Alpha-2 format |
120
- | palette | object | Palette config object |
121
- | palette.primary | string | Primary color of the widget. Example: `#ff0000` |
122
- | palette.primary-dark | string | Darker version of the primary color. Example: `#cc0000` |
123
- | map | object | Map config object. See below for details |
124
- | map.provider | string | Map provider. Currently supported: `google`, `yandex` |
125
- | map.center | number[] | Coordinates of the map center. Example: `[55.75, 37.57]` |
126
- | map.initialZoom | number | Initial zoom level of the map. Example: `10` |
127
- | hideLogo | boolean | Whether to hide the logo |
128
- | startScreen | string | Start screen of the widget. Currently supported: `map`, `selector` |
129
- | disableCourierDelivery | boolean | Whether to disable courier delivery option |
130
- | inputs | WidgetInputs | Control over widget inputs |
131
- | hideMapUI | boolean | Whether to hide map UI elements, like trademarks, terms of use and etc. |
132
- | onPointClick | function | Callback that will be called when user clicks on a point on the map. |
113
+ | Property | Type | Description |
114
+ | ------------------------------- | -------------- | -------------------------------------------------------------------------------------------------------------------------------- |
115
+ | INN | string | INN of the company that uses the widget |
116
+ | font | string | Font family to use |
117
+ | radius | number | Border radius of buttons |
118
+ | locale | string | Locale of the widget. Currently supported: `en`, `ru` |
119
+ | country | string | Country code in ISO 3166-1 Alpha-2 format |
120
+ | palette | object | Palette config object |
121
+ | palette.primary | string | Primary color of the widget. Example: `#ff0000` |
122
+ | palette.primary-dark | string | Darker version of the primary color. Example: `#cc0000` |
123
+ | map | object | Map config object. See below for details |
124
+ | map.provider | string | Map provider. Currently supported: `google`, `yandex` |
125
+ | map.center | number[] | Coordinates of the map center. Example: `[55.75, 37.57]` |
126
+ | map.initialZoom | number | Initial zoom level of the map. Example: `10` |
127
+ | hideLogo | boolean | Whether to hide the logo |
128
+ | startScreen | string | Start screen of the widget. Currently supported: `map`, `selector` |
129
+ | disableCourierDelivery | boolean | Whether to disable courier delivery option |
130
+ | inputs | WidgetInputs | Control over widget inputs |
131
+ | handlers | WidgetHandlers | Handlers config object |
132
+ | hideMapUI | boolean | Whether to hide map UI elements, like trademarks, terms of use and etc. |
133
+ | hideCloseButtonOnLocationScreen | boolean | Whether to hide close button on location screen |
134
+ | onPointClick | function | Callback that will be called when user clicks on a point on the map. |
135
+ | onLocationSelect | function | Callback that will be called when user selects a location Callback will be called with `google.maps.places.PlaceResult` argument |
136
+ | onCloseLocationSelector | function | Callback that will be called when user closes location selector |
133
137
 
134
138
  `WidgetInputs` type has the following structure:
135
139
 
@@ -164,6 +168,19 @@ export interface WidgetInputs {
164
168
  }
165
169
  ```
166
170
 
171
+ `WidgetHandlers` type has the following structure:
172
+
173
+ ```typescript
174
+ export interface LocationSelectorElement {
175
+ open: () => void;
176
+ close: () => void;
177
+ }
178
+
179
+ export interface WidgetHandlers {
180
+ locationSelector: RefObject<LocationSelectorElement>;
181
+ }
182
+ ```
183
+
167
184
  **NOTE:** when using screen keyboard do not forget to call `focus()` method for `address` and `city` inputs, so that autocomplete will appear.
168
185
 
169
186
  Include `styles.css` and `widget.umd.js` in your page:
@@ -1,4 +1,4 @@
1
- import { FC, ReactNode } from "react";
1
+ import type { FC, ReactNode } from "react";
2
2
  interface AsideProps {
3
3
  open: boolean;
4
4
  className?: string;
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
- import { GroupBase } from "react-select";
3
- import { AsyncProps } from "react-select/async";
2
+ import type { GroupBase } from "react-select";
3
+ import type { AsyncProps } from "react-select/async";
4
4
  type AsyncSelectProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = AsyncProps<Option, IsMulti, Group> & {
5
5
  label?: string;
6
6
  className?: string;
@@ -1,4 +1,4 @@
1
- import { FC, ButtonHTMLAttributes, AnchorHTMLAttributes } from "react";
1
+ import type { FC, ButtonHTMLAttributes, AnchorHTMLAttributes } from "react";
2
2
  interface ButtonBaseProps {
3
3
  variant?: "primary" | "secondary";
4
4
  }
@@ -1,2 +1,2 @@
1
- import { RadioProps } from "../Radio";
1
+ import type { RadioProps } from "../Radio";
2
2
  export declare const Checkbox: <T>(props: RadioProps<T>) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,6 @@
1
- import React, { HTMLAttributes } from "react";
2
- import { RadioProps } from "../Radio";
1
+ import React from "react";
2
+ import type { HTMLAttributes } from "react";
3
+ import type { RadioProps } from "../Radio";
3
4
  export type CheckboxGroupProps<T> = Omit<HTMLAttributes<HTMLDivElement>, "onChange"> & {
4
5
  value?: T;
5
6
  label?: string;
@@ -1,4 +1,4 @@
1
- import { FC, ReactNode } from "react";
1
+ import type { FC, ReactNode } from "react";
2
2
  interface ChipProps extends React.ComponentProps<"div"> {
3
3
  active?: boolean;
4
4
  className?: string;
@@ -1,2 +1,6 @@
1
- import { ComponentProps, FC } from "react";
2
- export declare const CloseButton: FC<ComponentProps<"div">>;
1
+ import type { ComponentProps, FC } from "react";
2
+ interface CloseButtonProps extends ComponentProps<"div"> {
3
+ position?: "relative" | "absolute";
4
+ }
5
+ export declare const CloseButton: FC<CloseButtonProps>;
6
+ export {};
@@ -1,5 +1,5 @@
1
- import { FC } from "react";
2
- import { CourierPoint } from '../../types/points';
1
+ import type { FC } from "react";
2
+ import type { CourierPoint } from '../../types/points';
3
3
  type CourierBalloonProps = Partial<CourierPoint> & {
4
4
  SSR?: boolean;
5
5
  variant: "error" | "default";
@@ -0,0 +1 @@
1
+ export * from "./CourierBalloon";
@@ -1,5 +1,5 @@
1
- import { FC } from "react";
2
- import { CourierDeliveryPoint, CourierPoint } from '../../types/points';
1
+ import type { FC } from "react";
2
+ import type { CourierDeliveryPoint, CourierPoint } from '../../types/points';
3
3
  interface CourierDetailsModalProps {
4
4
  className?: string;
5
5
  onClose?: () => void;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { CourierDeliveryPoint, CourierPoint } from '../../types/points';
2
+ import type { CourierDeliveryPoint, CourierPoint } from '../../types/points';
3
3
  export interface CourierDetailsViewClasses {
4
4
  header?: string;
5
5
  content?: string;
@@ -1,5 +1,5 @@
1
- import { Reducer } from "react";
2
- import { CourierDeliveryPoint } from '../../types/points';
1
+ import type { Reducer } from "react";
2
+ import type { CourierDeliveryPoint } from '../../types/points';
3
3
  type ChangeHandler = (location: CourierDeliveryPoint) => void;
4
4
  interface ReducerParams {
5
5
  set?: ChangeHandler;
@@ -1,4 +1,4 @@
1
- import { FC } from "react";
1
+ import type { FC } from "react";
2
2
  interface CurrentLocationProps {
3
3
  className?: string;
4
4
  }
@@ -1,2 +1,2 @@
1
- import { FC } from "react";
1
+ import type { FC } from "react";
2
2
  export declare const LogoContainer: FC;
@@ -1,4 +1,4 @@
1
- import { FC, HTMLAttributes } from "react";
1
+ import type { FC, HTMLAttributes } from "react";
2
2
  type HrProps = HTMLAttributes<HTMLElement>;
3
3
  export declare const Hr: FC<HrProps>;
4
4
  export {};
@@ -1,5 +1,5 @@
1
- import { ReactNode, RefObject } from "react";
2
- import { ForwardedInputElement } from '../../types/config';
1
+ import type { ReactNode, RefObject } from "react";
2
+ import type { ForwardedInputElement } from '../../types/config';
3
3
  interface InputProps extends React.AllHTMLAttributes<HTMLInputElement> {
4
4
  label?: string;
5
5
  className?: string;
@@ -1,4 +1,4 @@
1
- import { FC, ReactNode } from "react";
1
+ import type { FC, ReactNode } from "react";
2
2
  interface LayoutProps {
3
3
  children: ReactNode;
4
4
  }
@@ -1,3 +1,4 @@
1
1
  /// <reference types="react" />
2
- declare const MemoLocationAside: import("react").MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
2
+ import type { LocationSelectorElement } from '../../types/config';
3
+ declare const MemoLocationAside: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<import("react").RefAttributes<LocationSelectorElement>>>;
3
4
  export { MemoLocationAside as LocationAside };
@@ -1,5 +1,5 @@
1
- import { FC } from "react";
2
- import { LocationPoint } from '../../types/points';
1
+ import type { FC } from "react";
2
+ import type { LocationPoint } from '../../types/points';
3
3
  type LocationBalloonProps = Partial<LocationPoint> & {
4
4
  SSR?: boolean;
5
5
  className?: string;
@@ -1,5 +1,5 @@
1
- import { FC } from "react";
2
- import { LocationPoint } from '../../types/points';
1
+ import type { FC } from "react";
2
+ import type { LocationPoint } from '../../types/points';
3
3
  interface LocationDetailsModalProps {
4
4
  className?: string;
5
5
  onClose?: () => void;
@@ -1,4 +1,4 @@
1
- import { FC } from "react";
1
+ import type { FC } from "react";
2
2
  interface CourierDeliverySelectorContainerProps {
3
3
  className?: string;
4
4
  }
@@ -0,0 +1 @@
1
+ export declare const loadLocations: (value: string) => Promise<import("../..").LocationPoint[]>;
@@ -1,5 +1,5 @@
1
- import { FC } from "react";
2
- import { LocationPoint } from '../../types/points';
1
+ import type { FC } from "react";
2
+ import type { LocationPoint } from '../../types/points';
3
3
  interface SelfPickupSelectorContainerProps {
4
4
  className?: string;
5
5
  value?: null | LocationPoint;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { LocationPoint } from '../../types/points';
2
+ import type { LocationPoint } from '../../types/points';
3
3
  export interface LocationViewClasses {
4
4
  header?: string;
5
5
  content?: string;
@@ -1,2 +1,2 @@
1
- import { FC } from "react";
1
+ import type { FC } from "react";
2
2
  export declare const DetailsModalContainer: FC;
@@ -1,2 +1,2 @@
1
- import { FC } from "react";
1
+ import type { FC } from "react";
2
2
  export declare const FilterButton: FC;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from "react";
1
+ import type { ReactNode } from "react";
2
2
  interface MapContainerProps {
3
3
  children: ReactNode;
4
4
  className?: string;
@@ -1,13 +1,13 @@
1
- import { ComponentProps } from "react";
2
- import { LocationPoint } from '../../types/points';
1
+ import type { ComponentProps } from "react";
2
+ import type { LocationPoint } from '../../types/points';
3
3
  import { Point } from "./Point";
4
4
  type PointProps = ComponentProps<typeof Point>;
5
5
  interface ClustersProps {
6
6
  points: LocationPoint[];
7
7
  selectedPoint: Nullable<LocationPoint>;
8
- onOpenDetails: (open: boolean) => void;
9
- onPointClick: PointProps["onPointClick"];
10
- onPointSelected: PointProps["onPointSelected"];
8
+ onOpenDetails?: (open: boolean) => void;
9
+ onPointClick?: PointProps["onPointClick"];
10
+ onPointSelected?: PointProps["onPointSelected"];
11
11
  }
12
12
  declare const MemoizedClusters: import("react").NamedExoticComponent<ClustersProps>;
13
13
  export { MemoizedClusters as Clusters };
@@ -1,11 +1,10 @@
1
- import { ComponentProps } from "react";
2
- import { Point } from "./Point";
1
+ import type { ComponentProps } from "react";
2
+ import type { Point } from "./Point";
3
3
  type PointProps = ComponentProps<typeof Point>;
4
4
  interface ClustersContainerProps {
5
- mounted: boolean;
6
- onOpenDetails: (open: boolean) => void;
7
- onPointClick: PointProps["onPointClick"];
8
- onPointSelected: PointProps["onPointSelected"];
5
+ onOpenDetails?: (open: boolean) => void;
6
+ onPointClick?: PointProps["onPointClick"];
7
+ onPointSelected?: PointProps["onPointSelected"];
9
8
  }
10
9
  declare const MemoizedClustersContainer: import("react").NamedExoticComponent<ClustersContainerProps>;
11
10
  export { MemoizedClustersContainer as ClustersContainer };
@@ -1,10 +1,10 @@
1
- import { FC } from "react";
2
- import { CourierDeliveryPoint, CourierPoint } from '../../types/points';
1
+ import type { FC } from "react";
2
+ import type { CourierDeliveryPoint, CourierPoint } from '../../types/points';
3
3
  interface CourierPointProps {
4
4
  point: CourierPoint;
5
- setOpenDetails: (open: boolean) => void;
6
- setCourierPoint: (point: null | CourierPoint) => void;
7
- onPointClick: (point: CourierDeliveryPoint) => void;
5
+ setOpenDetails?: (open: boolean) => void;
6
+ setCourierPoint?: (point: null | CourierPoint) => void;
7
+ onPointClick?: (point: CourierDeliveryPoint) => void;
8
8
  }
9
9
  export declare const CourierPointMarker: FC<CourierPointProps>;
10
10
  export {};
@@ -1,5 +1,5 @@
1
- import { FC, ReactNode } from "react";
2
- import { GoogleMapProps } from "@react-google-maps/api";
1
+ import type { GoogleMapProps } from "@react-google-maps/api";
2
+ import type { FC, ReactNode } from "react";
3
3
  interface MapContainerProps {
4
4
  className?: string;
5
5
  children: ReactNode;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { MapProps } from '../../types/map';
2
+ import type { MapProps } from '../../types/map';
3
3
  declare const MemoMap: import("react").NamedExoticComponent<MapProps>;
4
4
  export { MemoMap as MapGoogle };
@@ -1,15 +1,3 @@
1
- /// <reference types="google.maps" />
2
- /// <reference types="react" />
3
- interface UseAttachSelectPointHookOptions {
4
- map: Nullable<google.maps.Map>;
5
- onAttach?: () => void;
6
- }
7
- export declare const useAttachSelectPointHook: ({ map, onAttach }: UseAttachSelectPointHookOptions) => void;
8
- export declare const useMapTimeoutMount: () => readonly [boolean, import("react").Dispatch<import("react").SetStateAction<boolean>>];
9
- interface UseMapCityCenterHookOptions {
10
- map: Nullable<google.maps.Map>;
11
- }
12
- export declare const useMapCityCenter: ({ map }: UseMapCityCenterHookOptions) => void;
13
1
  interface UsePointInfoOpenParams {
14
2
  isSelectedPoint: boolean;
15
3
  }
@@ -1,13 +1,13 @@
1
- import { FC } from "react";
2
- import { MarkerProps } from "@react-google-maps/api";
3
- import { LocationPoint } from '../../types/points';
1
+ import type { MarkerProps } from "@react-google-maps/api";
2
+ import type { FC } from "react";
3
+ import type { LocationPoint } from '../../types/points';
4
4
  interface PointProps {
5
5
  point: LocationPoint;
6
6
  selectedPoint: Nullable<LocationPoint>;
7
7
  clusterer: MarkerProps["clusterer"];
8
- setOpenDetails: (open: boolean) => void;
9
- onPointClick: (point: LocationPoint) => void;
10
- onPointSelected: (point: Nullable<LocationPoint>) => void;
8
+ setOpenDetails?: (open: boolean) => void;
9
+ onPointClick?: (point: LocationPoint) => void;
10
+ onPointSelected?: (point: Nullable<LocationPoint>) => void;
11
11
  }
12
12
  export declare const Point: FC<PointProps>;
13
13
  export {};
@@ -1,5 +1,5 @@
1
- import { FC, ReactNode } from "react";
2
- import { BottomSheetProps } from "react-spring-bottom-sheet";
1
+ import type { BottomSheetProps } from "react-spring-bottom-sheet";
2
+ import type { FC, ReactNode } from "react";
3
3
  interface PointSheetProps extends BottomSheetProps {
4
4
  children: ReactNode;
5
5
  minSnapHeight?: number;
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
- import { YMaps } from "@pbe/react-yandex-maps";
3
- import { IPlacemarkOptions } from "yandex-maps";
4
- import { YMapsModules } from "@pbe/react-yandex-maps/typings/util/typing";
5
- import { Locale } from '../../types/i18n';
2
+ import type { YMaps } from "@pbe/react-yandex-maps";
3
+ import type { IPlacemarkOptions } from "yandex-maps";
4
+ import type { YMapsModules } from "@pbe/react-yandex-maps/typings/util/typing";
5
+ import type { Locale } from '../../types/i18n';
6
6
  type YMapsQuery = NonNullable<React.ComponentProps<typeof YMaps>["query"]>;
7
7
  export declare const localesMap: Record<Locale, YMapsQuery["lang"]>;
8
8
  export declare const query: YMapsQuery;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { MapProps } from '../../types/map';
2
+ import type { MapProps } from '../../types/map';
3
3
  declare const MemoMap: import("react").NamedExoticComponent<MapProps>;
4
4
  export { MemoMap as MapYandex };
@@ -1,5 +1,5 @@
1
- import { YMapsApi } from "@pbe/react-yandex-maps/typings/util/typing";
2
- import { LocationPoint } from '../../types/points';
1
+ import type { YMapsApi } from "@pbe/react-yandex-maps/typings/util/typing";
2
+ import type { LocationPoint } from '../../types/points';
3
3
  export type Feature = ReturnType<typeof getMapFeatures>[number];
4
4
  /**
5
5
  * @see {@link https://yandex.ru/dev/maps/jsapi/doc/2.1/ref/reference/ObjectManager.html}
@@ -1,4 +1,4 @@
1
- import { FC } from "react";
1
+ import type { FC } from "react";
2
2
  interface OverlayProps {
3
3
  className?: string;
4
4
  children: React.ReactNode;
@@ -1,4 +1,4 @@
1
- import { InputHTMLAttributes, LabelHTMLAttributes } from "react";
1
+ import type { InputHTMLAttributes, LabelHTMLAttributes } from "react";
2
2
  export type RadioProps<T> = InputHTMLAttributes<HTMLInputElement> & {
3
3
  value?: T;
4
4
  defaultValue?: T;
@@ -1,5 +1,6 @@
1
- import React, { HTMLAttributes } from "react";
2
- import { RadioProps } from "../Radio";
1
+ import React from "react";
2
+ import type { HTMLAttributes } from "react";
3
+ import type { RadioProps } from "../Radio";
3
4
  export type RadioGroupProps<T> = Omit<HTMLAttributes<HTMLDivElement>, "onChange"> & {
4
5
  value?: T;
5
6
  label?: string;
@@ -1,4 +1,4 @@
1
- import { FC } from "react";
1
+ import type { FC } from "react";
2
2
  interface RangeSliderProps extends Dictionary<any> {
3
3
  className?: string;
4
4
  formatLabels?: (value: number) => string;
@@ -1,2 +1,2 @@
1
- import { FC } from "react";
1
+ import type { FC } from "react";
2
2
  export declare const HeaderContainer: FC;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { Filter } from '../../types/filters';
2
+ import type { Filter } from '../../types/filters';
3
3
  interface ReceiveFilterContainerProps {
4
4
  className?: string;
5
5
  onChange: (value: Filter["receive"]) => void;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { Filter } from '../../types/filters';
2
+ import type { Filter } from '../../types/filters';
3
3
  interface SendFilterContainerProps {
4
4
  className?: string;
5
5
  onChange: (value: Filter["send"]) => void;
@@ -1,4 +1,4 @@
1
- import { FC } from "react";
1
+ import type { FC } from "react";
2
2
  interface SidebarProps {
3
3
  className?: string;
4
4
  }
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { ETypeFilter } from '../../types/filters';
2
+ import type { ETypeFilter } from '../../types/filters';
3
3
  interface TypeFilterContainerProps {
4
4
  className?: string;
5
5
  onChange: (value: ETypeFilter) => void;
@@ -1,5 +1,5 @@
1
- import { RefObject } from "react";
2
- import { ForwardedInputElement } from '../../types/config';
1
+ import type { RefObject } from "react";
2
+ import type { ForwardedInputElement } from '../../types/config';
3
3
  interface TextAreaProps extends React.ComponentProps<"textarea"> {
4
4
  inputRef?: RefObject<HTMLTextAreaElement>;
5
5
  }
@@ -1,5 +1,5 @@
1
- import { FC } from "react";
2
- import { WorkingHours } from '../../types/filters';
1
+ import type { FC } from "react";
2
+ import type { WorkingHours } from '../../types/filters';
3
3
  interface TimeRangeSliderProps extends Dictionary<any> {
4
4
  className?: string;
5
5
  value: WorkingHours;
@@ -1,4 +1,4 @@
1
- import { FC } from "react";
1
+ import type { FC } from "react";
2
2
  import { ETypeFilter } from '../../types/filters';
3
3
  interface TypeFilterProps {
4
4
  value: ETypeFilter;
@@ -1,5 +1,5 @@
1
- import { FC } from "react";
2
- import { WorkingHours } from '../../types/filters';
1
+ import type { FC } from "react";
2
+ import type { WorkingHours } from '../../types/filters';
3
3
  interface WorkingHoursFilterProps {
4
4
  className?: string;
5
5
  value: WorkingHours;
@@ -1,2 +1,2 @@
1
- import { WidgetConfig } from '..';
1
+ import type { WidgetConfig } from '../types/config';
2
2
  export declare const DEFAULT_CONFIG: Partial<WidgetConfig>;
@@ -1,5 +1,5 @@
1
- import { LoadScriptProps } from "@react-google-maps/api";
2
- import { Locale } from '../types/i18n';
1
+ import type { LoadScriptProps } from "@react-google-maps/api";
2
+ import type { Locale } from '../types/i18n';
3
3
  export declare const BALLOON_SUBMIT_ID: string;
4
4
  export declare const BALLOON_DETAILS_ID: string;
5
5
  export declare const MARKER_SIZE: Size;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { WidgetConfig } from '../types/config';
2
+ import type { WidgetConfig } from '../types/config';
3
3
  export declare const ConfigContext: import("react").Context<WidgetConfig>;
4
4
  export declare const useConfigContext: () => WidgetConfig;
@@ -1,2 +1,2 @@
1
- import { INNType, WidgetOptions } from '../types/config';
1
+ import type { INNType, WidgetOptions } from '../types/config';
2
2
  export declare const useInitializeAxios: (INN: INNType, options?: WidgetOptions) => void;
@@ -1,4 +1,4 @@
1
- import { InputConfig } from '../types/config';
1
+ import type { InputConfig } from '../types/config';
2
2
  export declare const useInputProps: <T extends InputConfig>(input: Nullable<T>) => {
3
3
  readonly ref: T["ref"];
4
4
  readonly name: string | undefined;
@@ -1,3 +1,3 @@
1
1
  /// <reference types="react" />
2
- import { MapProvider } from '../types/map';
2
+ import type { MapProvider } from '../types/map';
3
3
  export declare const useMapRenderer: (provider: MapProvider) => import("react").NamedExoticComponent<import('../types/map').MapProps>;
@@ -1,2 +1,2 @@
1
1
  /// <reference types="react" />
2
- export declare function useMergedRef<T>(...refs: Array<Nullable<React.Ref<T>>>): React.RefCallback<T>;
2
+ export declare function useMergedRef<T>(...references: Array<Nullable<React.Ref<T>>>): React.RefCallback<T>;
@@ -1,2 +1,2 @@
1
- import { WidgetConfig } from '../types/config';
1
+ import type { WidgetConfig } from '../types/config';
2
2
  export declare const useWidgetConfig: (initialConfig?: WidgetConfig) => WidgetConfig;