@carto/ps-react-ui 2.2.3 → 3.0.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.
- package/dist/index.cjs +14 -11
- package/dist/index.js +468 -395
- package/dist/types/common-stories/maps/deckgl-maps.component.d.ts +2 -0
- package/dist/types/common-stories/maps/google-maps.component.d.ts +3 -0
- package/dist/types/common-stories/maps/map-container.component.d.ts +4 -0
- package/dist/types/common-stories/maps/map.component.d.ts +2 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/map-measurement-tool-ui/index.d.ts +1 -0
- package/dist/types/components/map-measurement-tool-ui/map-measurement-tool-ui.component.d.ts +4 -0
- package/dist/types/components/map-measurement-tool-ui/map-measurement-tool-ui.styles.d.ts +25 -0
- package/package.json +7 -7
@@ -0,0 +1,2 @@
|
|
1
|
+
import { DeckGLMapsProps } from '@carto/ps-react-maps';
|
2
|
+
export declare function DeckGLMapsComponent({ basemap, instanceRef, layers, overlayRef, viewState, height, id, initialViewState, style, width, getCursor, getTooltip, onClick, onDrag, onDragEnd, onDragStart, onHover, onResize, onViewStateChange, ...rest }: DeckGLMapsProps): import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import { GoogleMapsProps } from '@carto/ps-react-maps';
|
2
|
+
export declare function GoogleMapsComponent(props: GoogleMapsProps): import("react/jsx-runtime").JSX.Element;
|
3
|
+
export declare function GoogleMap({ apiKey, basemap, instanceRef, layers, overlayRef, initialViewState, viewState, controller, id, language, mapId, mapOptions, style, version, getTooltip, onResize, onViewStateChange, ...rest }: GoogleMapsProps): import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { MapMeasureToolUI } from './map-measurement-tool-ui.component';
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import type { MapMeasureToolChildrenProps } from '@carto/ps-react-maps';
|
2
|
+
import { SVGProps } from 'react';
|
3
|
+
export declare function MapMeasureToolUI({ enable, onToggleButton, text, tooltip, }: MapMeasureToolChildrenProps): JSX.Element;
|
4
|
+
export declare function RulerIcon(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { Theme } from '@mui/material';
|
2
|
+
export declare const styles: {
|
3
|
+
container: {
|
4
|
+
display: "flex";
|
5
|
+
flexDirection: "row";
|
6
|
+
alignItems: "center";
|
7
|
+
justifyContent: "flex-start";
|
8
|
+
gap: ({ spacing }: Theme) => string;
|
9
|
+
};
|
10
|
+
buttonContainer: {
|
11
|
+
display: "flex";
|
12
|
+
flexDirection: "column";
|
13
|
+
alignItems: "center";
|
14
|
+
justifyContent: "center";
|
15
|
+
height: ({ spacing }: Theme) => string;
|
16
|
+
width: ({ spacing }: Theme) => string;
|
17
|
+
backgroundColor: ({ palette }: Theme) => string;
|
18
|
+
button: {
|
19
|
+
borderRadius: number;
|
20
|
+
'.MuiTouchRipple-ripple .MuiTouchRipple-child': {
|
21
|
+
borderRadius: number;
|
22
|
+
};
|
23
|
+
};
|
24
|
+
};
|
25
|
+
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@carto/ps-react-ui",
|
3
|
-
"version": "
|
3
|
+
"version": "3.0.0",
|
4
4
|
"description": "CARTO's Professional Service React UI library",
|
5
5
|
"files": [
|
6
6
|
"dist"
|
@@ -29,14 +29,14 @@
|
|
29
29
|
"storybook:build": "storybook build"
|
30
30
|
},
|
31
31
|
"dependencies": {
|
32
|
-
"@emotion/react": "11.11.
|
33
|
-
"@emotion/styled": "11.11.
|
34
|
-
"@mui/icons-material": "5.15.
|
35
|
-
"@mui/lab": "5.0.0-alpha.
|
36
|
-
"@mui/material": "5.15.
|
32
|
+
"@emotion/react": "11.11.4",
|
33
|
+
"@emotion/styled": "11.11.5",
|
34
|
+
"@mui/icons-material": "5.15.15",
|
35
|
+
"@mui/lab": "5.0.0-alpha.170",
|
36
|
+
"@mui/material": "5.15.15"
|
37
37
|
},
|
38
38
|
"devDependencies": {
|
39
|
-
"@carto/react-ui": "
|
39
|
+
"@carto/react-ui": "3.0.0-alpha.8"
|
40
40
|
},
|
41
41
|
"peerDependencies": {
|
42
42
|
"@emotion/react": "11.x",
|