@map-colonies/react-components 4.13.1 → 4.13.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.
@@ -1,11 +1,12 @@
1
1
  import React from 'react';
2
2
  import { IBaseMaps, ITerrain } from '../map';
3
- interface IBaseMapWidgetProps {
3
+ import { IWidgetProps } from '../widget/widget-wrapper';
4
+ interface IBaseMapWidgetProps extends IWidgetProps {
4
5
  baseMaps?: IBaseMaps;
5
6
  terrains?: ITerrain[];
6
7
  locale?: {
7
8
  [key: string]: string;
8
9
  };
9
10
  }
10
- export declare const BaseMapWidget: React.FC<IBaseMapWidgetProps>;
11
+ export declare const BaseMapWidget: (props: Omit<IBaseMapWidgetProps, keyof IWidgetProps>) => React.JSX.Element;
11
12
  export {};
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { IWidgetProps } from '../widget/widget-wrapper';
2
3
  interface IFeatureTypeMetadata {
3
4
  id: string;
4
5
  items: number;
@@ -10,10 +11,10 @@ interface IFeatureTypeMetadata {
10
11
  export type IActiveFeatureTypes = IFeatureTypeMetadata & {
11
12
  zoomLevel: number;
12
13
  };
13
- export interface IWFSDebugWidgetProps {
14
+ export interface IWFSDebugWidgetProps extends IWidgetProps {
14
15
  locale?: {
15
16
  [key: string]: string;
16
17
  };
17
18
  }
18
- export declare const WFSDebugWidget: React.FC<IWFSDebugWidgetProps>;
19
+ export declare const WFSDebugWidget: (props: Omit<IWFSDebugWidgetProps, keyof IWidgetProps>) => React.JSX.Element;
19
20
  export {};
@@ -1,10 +1,11 @@
1
1
  import React from 'react';
2
+ import { IWidgetProps } from '../widget/widget-wrapper';
2
3
  import { GeocoderOptions } from './geocoder-panel';
3
- interface IGeocoderWidgetProps {
4
+ interface IGeocoderWidgetProps extends IWidgetProps {
4
5
  options: GeocoderOptions[];
5
6
  locale?: {
6
7
  [key: string]: string;
7
8
  };
8
9
  }
9
- export declare const GeocoderWidget: React.FC<IGeocoderWidgetProps>;
10
+ export declare const GeocoderWidget: (props: Omit<IGeocoderWidgetProps, keyof IWidgetProps>) => React.JSX.Element;
10
11
  export {};
@@ -0,0 +1,3 @@
1
+ .disappear {
2
+ display: contents;
3
+ }
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export interface IWidgetProps {
3
+ isOpen: boolean;
4
+ setIsOpen: (val: boolean) => void;
5
+ }
6
+ export declare function WidgetWrapper<P extends IWidgetProps>(WrappedComponent: React.JSXElementConstructor<P>): (props: Omit<P, keyof IWidgetProps>) => React.JSX.Element;
@@ -13,6 +13,7 @@ interface DateRangePickerProps {
13
13
  disableFuture?: boolean;
14
14
  maxDate?: string | number | Date | null | undefined;
15
15
  minDate?: string | number | Date | null | undefined;
16
+ showTime?: boolean;
16
17
  local?: {
17
18
  setText?: string;
18
19
  startPlaceHolderText?: string;
@@ -23,6 +23,7 @@ declare const DEFAULTS: {
23
23
  renderAsButton: boolean;
24
24
  offset: number;
25
25
  disableFuture: boolean;
26
+ showTime: boolean;
26
27
  };
27
28
  };
28
29
  export default DEFAULTS;
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@map-colonies/react-components",
3
- "version": "4.13.1",
3
+ "version": "4.13.3",
4
4
  "main": "./dist/@map-colonies/react-components.umd.js",
5
5
  "module": "./dist/@map-colonies/react-components.es.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "license": "MIT",
8
+ "description": "This package contains complex components like maps, datepicker, etc.",
8
9
  "scripts": {
9
10
  "dev": "vite",
10
11
  "clean": "rimraf dist",
@@ -86,5 +87,5 @@
86
87
  "files": [
87
88
  "dist"
88
89
  ],
89
- "gitHead": "0354e1117000e8bcadadaef24d47634eb4fb3a9a"
90
+ "gitHead": "ca1537313869391ce27ae3bbacc19cfda4ba1c0b"
90
91
  }