@mapcomponents/react-maplibre 0.1.70 → 0.1.72

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.
@@ -0,0 +1,17 @@
1
+ /// <reference types="react" />
2
+ export interface ColorPickerProps {
3
+ onChange?: (value: string) => void;
4
+ convert: 'rgb' | 'rgba' | 'rgba_hex' | 'hex' | 'rgba_rgb';
5
+ internalValue?: string;
6
+ setValue?: (value: string) => void;
7
+ value?: string;
8
+ }
9
+ declare const ColorPicker: {
10
+ ({ convert, ...props }: ColorPickerProps): JSX.Element;
11
+ defaultProps: {
12
+ convert: string;
13
+ label: string;
14
+ name: string;
15
+ };
16
+ };
17
+ export default ColorPicker;
@@ -0,0 +1,10 @@
1
+ import { ColorResult } from 'react-color';
2
+ export declare const DEFAULT_CONVERTER = "rgba_hex";
3
+ export declare const converters: {
4
+ rgba: (c: ColorResult) => string;
5
+ rgb: (c: ColorResult) => string;
6
+ hex: (c: ColorResult) => string;
7
+ rgba_rgb: (c: ColorResult) => string;
8
+ rgba_hex: (c: ColorResult) => string;
9
+ };
10
+ export default converters;
@@ -7,6 +7,8 @@ declare const storyoptions: {
7
7
  decorators: ((Story: any, context: any) => JSX.Element)[];
8
8
  };
9
9
  export default storyoptions;
10
- export declare const ExampleConfig: any;
11
10
  export declare const FolderExample: any;
12
11
  export declare const VectortileExample: any;
12
+ export declare const WmsLayerExample: any;
13
+ export declare const GeoJsonLayerExample: any;
14
+ export declare const ConfigurableExample: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mapcomponents/react-maplibre",
3
- "version": "0.1.70",
3
+ "version": "0.1.72",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.esm.js",
@@ -28,10 +28,11 @@
28
28
  "@mui/material": "^5.11.7",
29
29
  "@mui/styles": "^5.11.7",
30
30
  "@turf/turf": "^6.5.0",
31
+ "@types/react-color": "^3.0.6",
31
32
  "d3": "^7.8.2",
32
33
  "jspdf": "^2.5.1",
33
34
  "maplibre-gl": "^2.4.0",
34
- "mui-color": "^2.0.0-beta.2",
35
+ "react-color": "^2.19.3",
35
36
  "react-moveable": "^0.46.1",
36
37
  "three": "^0.149.0",
37
38
  "traverse": "^0.6.7",