@draftbit/core 42.4.2-50ce38.2 → 42.4.2-717ab1.2
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/lib/commonjs/components/Accordion/AccordionItem.js +16 -5
- package/lib/commonjs/components/Accordion/AccordionItem.js.map +1 -1
- package/lib/commonjs/components/Accordion/index.js.map +1 -1
- package/lib/commonjs/components/ActionSheet/ActionSheetCancel.js.map +1 -1
- package/lib/commonjs/components/ActionSheet/ActionSheetItem.js.map +1 -1
- package/lib/commonjs/components/ActionSheet/index.js.map +1 -1
- package/lib/commonjs/components/AnimatedCircularProgress.js +11 -3
- package/lib/commonjs/components/AnimatedCircularProgress.js.map +1 -1
- package/lib/commonjs/components/AspectRatio.js +15 -2
- package/lib/commonjs/components/AspectRatio.js.map +1 -1
- package/lib/commonjs/components/AvatarEdit.js +16 -5
- package/lib/commonjs/components/AvatarEdit.js.map +1 -1
- package/lib/commonjs/components/Button.js +25 -11
- package/lib/commonjs/components/Button.js.map +1 -1
- package/lib/commonjs/components/CardBlock.js +17 -5
- package/lib/commonjs/components/CardBlock.js.map +1 -1
- package/lib/commonjs/components/CardContainer.js +14 -5
- package/lib/commonjs/components/CardContainer.js.map +1 -1
- package/lib/commonjs/components/CardContainerRating.js +16 -5
- package/lib/commonjs/components/CardContainerRating.js.map +1 -1
- package/lib/commonjs/components/CardInline.js.map +1 -1
- package/lib/commonjs/components/Carousel.js +15 -5
- package/lib/commonjs/components/Carousel.js.map +1 -1
- package/lib/commonjs/components/Checkbox/CheckboxRow.js +14 -6
- package/lib/commonjs/components/Checkbox/CheckboxRow.js.map +1 -1
- package/lib/commonjs/components/Checkbox/context.js +1 -1
- package/lib/commonjs/components/Checkbox/context.js.map +1 -1
- package/lib/commonjs/components/Checkbox/index.js.map +1 -1
- package/lib/commonjs/components/CircleImage.js +18 -5
- package/lib/commonjs/components/CircleImage.js.map +1 -1
- package/lib/commonjs/components/Config.js.map +1 -1
- package/lib/commonjs/components/Container.js +14 -5
- package/lib/commonjs/components/Container.js.map +1 -1
- package/lib/commonjs/components/DatePicker/DatePickerComponent.web.js.map +1 -1
- package/lib/commonjs/components/DeprecatedButton.js +15 -4
- package/lib/commonjs/components/DeprecatedButton.js.map +1 -1
- package/lib/commonjs/components/DeprecatedCardWrapper.js +2 -14
- package/lib/commonjs/components/DeprecatedCardWrapper.js.map +1 -1
- package/lib/commonjs/components/Elevation.js +14 -3
- package/lib/commonjs/components/Elevation.js.map +1 -1
- package/lib/commonjs/components/FAB.js +16 -5
- package/lib/commonjs/components/FAB.js.map +1 -1
- package/lib/commonjs/components/FieldSearchBarFull.js +1 -1
- package/lib/commonjs/components/FieldSearchBarFull.js.map +1 -1
- package/lib/commonjs/components/FormRow.js +18 -5
- package/lib/commonjs/components/FormRow.js.map +1 -1
- package/lib/commonjs/components/Header.js.map +1 -1
- package/lib/commonjs/components/HeaderLarge.js.map +1 -1
- package/lib/commonjs/components/HeaderMedium.js.map +1 -1
- package/lib/commonjs/components/HeaderOverline.js.map +1 -1
- package/lib/commonjs/components/IconButton.js +18 -5
- package/lib/commonjs/components/IconButton.js.map +1 -1
- package/lib/commonjs/components/Image.js +16 -6
- package/lib/commonjs/components/Image.js.map +1 -1
- package/lib/commonjs/components/Justification.js +2 -1
- package/lib/commonjs/components/Layout.js +41 -22
- package/lib/commonjs/components/Layout.js.map +1 -1
- package/lib/commonjs/components/{MapView/MapCallout.native.js → Markdown.js} +21 -23
- package/lib/commonjs/components/Markdown.js.map +1 -0
- package/lib/commonjs/components/NumberInput.js +15 -3
- package/lib/commonjs/components/NumberInput.js.map +1 -1
- package/lib/commonjs/components/Picker/PickerTypes.js +2 -1
- package/lib/commonjs/components/Portal/PortalManager.js.map +1 -1
- package/lib/commonjs/components/ProgressBar.js +19 -6
- package/lib/commonjs/components/ProgressBar.js.map +1 -1
- package/lib/commonjs/components/ProgressCircle.js.map +1 -1
- package/lib/commonjs/components/ProgressIndicator.js.map +1 -1
- package/lib/commonjs/components/RadioButton/RadioButton.js +14 -5
- package/lib/commonjs/components/RadioButton/RadioButton.js.map +1 -1
- package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js +11 -2
- package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js.map +1 -1
- package/lib/commonjs/components/RadioButton/RadioButtonGroup.js +15 -5
- package/lib/commonjs/components/RadioButton/RadioButtonGroup.js.map +1 -1
- package/lib/commonjs/components/ResizeMode.js +2 -1
- package/lib/commonjs/components/Row.js.map +1 -1
- package/lib/commonjs/components/RowBodyIcon.js.map +1 -1
- package/lib/commonjs/components/RowHeadlineImageCaption.js.map +1 -1
- package/lib/commonjs/components/RowHeadlineImageIcon.js.map +1 -1
- package/lib/commonjs/components/ScreenContainer.js +18 -5
- package/lib/commonjs/components/ScreenContainer.js.map +1 -1
- package/lib/commonjs/components/Slider.js +17 -5
- package/lib/commonjs/components/Slider.js.map +1 -1
- package/lib/commonjs/components/StepIndicator.js.map +1 -1
- package/lib/commonjs/components/Stepper.js.map +1 -1
- package/lib/commonjs/components/Surface.js +11 -4
- package/lib/commonjs/components/Surface.js.map +1 -1
- package/lib/commonjs/components/Swiper/Swiper.js.map +1 -1
- package/lib/commonjs/components/TextField.js +18 -7
- package/lib/commonjs/components/TextField.js.map +1 -1
- package/lib/commonjs/components/TextInput.js +12 -2
- package/lib/commonjs/components/TextInput.js.map +1 -1
- package/lib/commonjs/components/ToggleButton.js +17 -5
- package/lib/commonjs/components/ToggleButton.js.map +1 -1
- package/lib/commonjs/components/Touchable.js +16 -5
- package/lib/commonjs/components/Touchable.js.map +1 -1
- package/lib/commonjs/components/Touchable.web.js.map +1 -1
- package/lib/commonjs/components/Typography.js.map +1 -1
- package/lib/commonjs/index.js +8 -20
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/components/Markdown.js +26 -0
- package/lib/module/components/Markdown.js.map +1 -0
- package/lib/module/components/Surface.js +2 -4
- package/lib/module/components/Surface.js.map +1 -1
- package/lib/module/index.js +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/src/components/Markdown.d.ts +21 -0
- package/lib/typescript/src/index.d.ts +1 -1
- package/package.json +3 -4
- package/src/components/Markdown.js +21 -0
- package/src/components/Markdown.tsx +30 -0
- package/src/index.js +1 -1
- package/src/index.tsx +1 -1
- package/lib/commonjs/components/MapView/MapCallout.native.js.map +0 -1
- package/lib/commonjs/components/MapView/MapCallout.web.js +0 -47
- package/lib/commonjs/components/MapView/MapCallout.web.js.map +0 -1
- package/lib/commonjs/components/MapView/MapMarker.native.js +0 -86
- package/lib/commonjs/components/MapView/MapMarker.native.js.map +0 -1
- package/lib/commonjs/components/MapView/MapMarker.web.js +0 -116
- package/lib/commonjs/components/MapView/MapMarker.web.js.map +0 -1
- package/lib/commonjs/components/MapView/MapView.native.js +0 -162
- package/lib/commonjs/components/MapView/MapView.native.js.map +0 -1
- package/lib/commonjs/components/MapView/MapView.web.js +0 -55
- package/lib/commonjs/components/MapView/MapView.web.js.map +0 -1
- package/lib/commonjs/components/MapView/NoApiKey.js +0 -20
- package/lib/commonjs/components/MapView/NoApiKey.js.map +0 -1
- package/lib/commonjs/components/MapView/index.js +0 -32
- package/lib/commonjs/components/MapView/index.js.map +0 -1
- package/lib/commonjs/components/MapView/types.js +0 -5
- package/lib/commonjs/components/MapView/types.js.map +0 -1
- package/lib/module/components/MapView/MapCallout.native.js +0 -32
- package/lib/module/components/MapView/MapCallout.native.js.map +0 -1
- package/lib/module/components/MapView/MapCallout.web.js +0 -32
- package/lib/module/components/MapView/MapCallout.web.js.map +0 -1
- package/lib/module/components/MapView/MapMarker.native.js +0 -71
- package/lib/module/components/MapView/MapMarker.native.js.map +0 -1
- package/lib/module/components/MapView/MapMarker.web.js +0 -96
- package/lib/module/components/MapView/MapMarker.web.js.map +0 -1
- package/lib/module/components/MapView/MapView.native.js +0 -144
- package/lib/module/components/MapView/MapView.native.js.map +0 -1
- package/lib/module/components/MapView/MapView.web.js +0 -38
- package/lib/module/components/MapView/MapView.web.js.map +0 -1
- package/lib/module/components/MapView/NoApiKey.js +0 -7
- package/lib/module/components/MapView/NoApiKey.js.map +0 -1
- package/lib/module/components/MapView/index.js +0 -7
- package/lib/module/components/MapView/index.js.map +0 -1
- package/lib/module/components/MapView/types.js +0 -2
- package/lib/module/components/MapView/types.js.map +0 -1
- package/lib/typescript/src/components/MapView/MapCallout.native.d.ts +0 -33
- package/lib/typescript/src/components/MapView/MapCallout.web.d.ts +0 -4
- package/lib/typescript/src/components/MapView/MapMarker.native.d.ts +0 -57
- package/lib/typescript/src/components/MapView/MapMarker.web.d.ts +0 -12
- package/lib/typescript/src/components/MapView/MapView.native.d.ts +0 -130
- package/lib/typescript/src/components/MapView/MapView.web.d.ts +0 -4
- package/lib/typescript/src/components/MapView/NoApiKey.d.ts +0 -2
- package/lib/typescript/src/components/MapView/index.d.ts +0 -3
- package/lib/typescript/src/components/MapView/types.d.ts +0 -35
- package/src/components/MapView/MapCallout.native.js +0 -22
- package/src/components/MapView/MapCallout.native.tsx +0 -40
- package/src/components/MapView/MapCallout.web.js +0 -14
- package/src/components/MapView/MapCallout.web.tsx +0 -31
- package/src/components/MapView/MapMarker.native.js +0 -52
- package/src/components/MapView/MapMarker.native.tsx +0 -83
- package/src/components/MapView/MapMarker.web.js +0 -68
- package/src/components/MapView/MapMarker.web.tsx +0 -105
- package/src/components/MapView/MapView.native.js +0 -118
- package/src/components/MapView/MapView.native.tsx +0 -163
- package/src/components/MapView/MapView.web.js +0 -18
- package/src/components/MapView/MapView.web.tsx +0 -42
- package/src/components/MapView/NoApiKey.js +0 -5
- package/src/components/MapView/NoApiKey.tsx +0 -10
- package/src/components/MapView/index.js +0 -6
- package/src/components/MapView/index.tsx +0 -6
- package/src/components/MapView/types.js +0 -1
- package/src/components/MapView/types.tsx +0 -38
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { TouchableOpacity } from "react-native";
|
|
3
|
-
import { InfoWindow } from "@react-google-maps/api";
|
|
4
|
-
import { markerContext } from "./MapMarker.web";
|
|
5
|
-
|
|
6
|
-
const MapCallout = ({
|
|
7
|
-
anchor,
|
|
8
|
-
onPress = () => {},
|
|
9
|
-
children
|
|
10
|
-
}) => {
|
|
11
|
-
const {
|
|
12
|
-
toggleCallout,
|
|
13
|
-
position,
|
|
14
|
-
calloutOpened
|
|
15
|
-
} = React.useContext(markerContext);
|
|
16
|
-
|
|
17
|
-
const handleClose = () => toggleCallout(false);
|
|
18
|
-
|
|
19
|
-
return calloutOpened ? /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
20
|
-
onPress: onPress
|
|
21
|
-
}, /*#__PURE__*/React.createElement(InfoWindow, {
|
|
22
|
-
anchor: anchor,
|
|
23
|
-
position: {
|
|
24
|
-
lat: (position === null || position === void 0 ? void 0 : position.latitude) || 0,
|
|
25
|
-
lng: (position === null || position === void 0 ? void 0 : position.longitude) || 0
|
|
26
|
-
},
|
|
27
|
-
onCloseClick: handleClose
|
|
28
|
-
}, children)) : null;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export default MapCallout;
|
|
32
|
-
//# sourceMappingURL=MapCallout.web.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["MapCallout.web.tsx"],"names":["React","TouchableOpacity","InfoWindow","markerContext","MapCallout","anchor","onPress","children","toggleCallout","position","calloutOpened","useContext","handleClose","lat","latitude","lng","longitude"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,SAASC,gBAAT,QAAiC,cAAjC;AACA,SAASC,UAAT,QAA2B,wBAA3B;AACA,SAASC,aAAT,QAA8B,iBAA9B;;AAGA,MAAMC,UAAkC,GAAG,CAAC;AAC1CC,EAAAA,MAD0C;AAE1CC,EAAAA,OAAO,GAAG,MAAM,CAAE,CAFwB;AAG1CC,EAAAA;AAH0C,CAAD,KAIrC;AACJ,QAAM;AAAEC,IAAAA,aAAF;AAAiBC,IAAAA,QAAjB;AAA2BC,IAAAA;AAA3B,MACJV,KAAK,CAACW,UAAN,CAAiBR,aAAjB,CADF;;AAEA,QAAMS,WAAW,GAAG,MAAMJ,aAAa,CAAC,KAAD,CAAvC;;AACA,SAAOE,aAAa,gBAClB,oBAAC,gBAAD;AAAkB,IAAA,OAAO,EAAEJ;AAA3B,kBACE,oBAAC,UAAD;AACE,IAAA,MAAM,EAAED,MADV;AAEE,IAAA,QAAQ,EAAE;AACRQ,MAAAA,GAAG,EAAE,CAAAJ,QAAQ,SAAR,IAAAA,QAAQ,WAAR,YAAAA,QAAQ,CAAEK,QAAV,KAAsB,CADnB;AAERC,MAAAA,GAAG,EAAE,CAAAN,QAAQ,SAAR,IAAAA,QAAQ,WAAR,YAAAA,QAAQ,CAAEO,SAAV,KAAuB;AAFpB,KAFZ;AAME,IAAA,YAAY,EAAEJ;AANhB,KAQGL,QARH,CADF,CADkB,GAahB,IAbJ;AAcD,CAtBD;;AAwBA,eAAeH,UAAf","sourcesContent":["import * as React from \"react\";\nimport { TouchableOpacity } from \"react-native\";\nimport { InfoWindow } from \"@react-google-maps/api\";\nimport { markerContext } from \"./MapMarker.web\";\nimport { CalloutProps } from \"./types\";\n\nconst MapCallout: React.FC<CalloutProps> = ({\n anchor,\n onPress = () => {},\n children,\n}) => {\n const { toggleCallout, position, calloutOpened } =\n React.useContext(markerContext);\n const handleClose = () => toggleCallout(false);\n return calloutOpened ? (\n <TouchableOpacity onPress={onPress}>\n <InfoWindow\n anchor={anchor}\n position={{\n lat: position?.latitude || 0,\n lng: position?.longitude || 0,\n }}\n onCloseClick={handleClose}\n >\n {children}\n </InfoWindow>\n </TouchableOpacity>\n ) : null;\n};\n\nexport default MapCallout;\n"]}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { Marker } from "react-native-maps";
|
|
3
|
-
import { COMPONENT_TYPES, createBoolProp, createColorProp, createNumberProp, createTextProp } from "@draftbit/types";
|
|
4
|
-
|
|
5
|
-
const MapMarker = ({
|
|
6
|
-
latitude,
|
|
7
|
-
longitude,
|
|
8
|
-
title,
|
|
9
|
-
description,
|
|
10
|
-
pinColor,
|
|
11
|
-
flat,
|
|
12
|
-
style,
|
|
13
|
-
children
|
|
14
|
-
}) => /*#__PURE__*/React.createElement(Marker, {
|
|
15
|
-
coordinate: {
|
|
16
|
-
latitude,
|
|
17
|
-
longitude
|
|
18
|
-
},
|
|
19
|
-
title: title,
|
|
20
|
-
description: description,
|
|
21
|
-
flat: flat,
|
|
22
|
-
pinColor: pinColor,
|
|
23
|
-
style: style
|
|
24
|
-
}, children);
|
|
25
|
-
|
|
26
|
-
export default MapMarker;
|
|
27
|
-
export const SEED_DATA = {
|
|
28
|
-
name: "Map Marker",
|
|
29
|
-
tag: "MapMarker",
|
|
30
|
-
description: "A marker to show inside map view",
|
|
31
|
-
category: COMPONENT_TYPES.button,
|
|
32
|
-
layout: {},
|
|
33
|
-
props: {
|
|
34
|
-
latitude: createNumberProp({
|
|
35
|
-
label: "Latitude",
|
|
36
|
-
description: "The longitude in which the marker is located",
|
|
37
|
-
required: true,
|
|
38
|
-
precision: 0.000001,
|
|
39
|
-
min: -90,
|
|
40
|
-
max: 90
|
|
41
|
-
}),
|
|
42
|
-
longitude: createNumberProp({
|
|
43
|
-
label: "Latitude",
|
|
44
|
-
description: "The latitude in which the marker is located",
|
|
45
|
-
required: true,
|
|
46
|
-
precision: 0.000001,
|
|
47
|
-
min: -180,
|
|
48
|
-
max: 180
|
|
49
|
-
}),
|
|
50
|
-
title: createTextProp({
|
|
51
|
-
label: "Title",
|
|
52
|
-
description: "Title to show along with the marker",
|
|
53
|
-
defaultValue: null
|
|
54
|
-
}),
|
|
55
|
-
description: createTextProp({
|
|
56
|
-
label: "Description",
|
|
57
|
-
description: "Optional description for the marker",
|
|
58
|
-
defaultValue: null
|
|
59
|
-
}),
|
|
60
|
-
flat: createBoolProp({
|
|
61
|
-
label: "Flat",
|
|
62
|
-
description: "Sets whether this marker should be flat against the map (if true) or a billboard facing the camera (if false)",
|
|
63
|
-
defaultValue: false
|
|
64
|
-
}),
|
|
65
|
-
pinColor: createColorProp({
|
|
66
|
-
label: "Pin Color",
|
|
67
|
-
description: "Sets the color of the marker"
|
|
68
|
-
})
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
//# sourceMappingURL=MapMarker.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["MapMarker.native.tsx"],"names":["React","Marker","COMPONENT_TYPES","createBoolProp","createColorProp","createNumberProp","createTextProp","MapMarker","latitude","longitude","title","description","pinColor","flat","style","children","SEED_DATA","name","tag","category","button","layout","props","label","required","precision","min","max","defaultValue"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,SAASC,MAAT,QAAuB,mBAAvB;AAEA,SACEC,eADF,EAEEC,cAFF,EAGEC,eAHF,EAIEC,gBAJF,EAKEC,cALF,QAMO,iBANP;;AAQA,MAAMC,SAAmC,GAAG,CAAC;AAC3CC,EAAAA,QAD2C;AAE3CC,EAAAA,SAF2C;AAG3CC,EAAAA,KAH2C;AAI3CC,EAAAA,WAJ2C;AAK3CC,EAAAA,QAL2C;AAM3CC,EAAAA,IAN2C;AAO3CC,EAAAA,KAP2C;AAQ3CC,EAAAA;AAR2C,CAAD,kBAU1C,oBAAC,MAAD;AACE,EAAA,UAAU,EAAE;AACVP,IAAAA,QADU;AAEVC,IAAAA;AAFU,GADd;AAKE,EAAA,KAAK,EAAEC,KALT;AAME,EAAA,WAAW,EAAEC,WANf;AAOE,EAAA,IAAI,EAAEE,IAPR;AAQE,EAAA,QAAQ,EAAED,QARZ;AASE,EAAA,KAAK,EAAEE;AATT,GAWGC,QAXH,CAVF;;AAyBA,eAAeR,SAAf;AAEA,OAAO,MAAMS,SAAS,GAAG;AACvBC,EAAAA,IAAI,EAAE,YADiB;AAEvBC,EAAAA,GAAG,EAAE,WAFkB;AAGvBP,EAAAA,WAAW,EAAE,kCAHU;AAIvB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,KAAD;AAjCpB;AANgB,CAAlB","sourcesContent":["import * as React from \"react\";\nimport { Marker } from \"react-native-maps\";\nimport { MapMarkerProps } from \"./types\";\nimport {\n COMPONENT_TYPES,\n createBoolProp,\n createColorProp,\n createNumberProp,\n createTextProp,\n} from \"@draftbit/types\";\n\nconst MapMarker: React.FC<MapMarkerProps> = ({\n latitude,\n longitude,\n title,\n description,\n pinColor,\n flat,\n style,\n children,\n}) => (\n <Marker\n coordinate={{\n latitude,\n longitude,\n }}\n title={title}\n description={description}\n flat={flat}\n pinColor={pinColor}\n style={style}\n >\n {children}\n </Marker>\n);\n\nexport default MapMarker;\n\nexport const SEED_DATA = {\n name: \"Map Marker\",\n tag: \"MapMarker\",\n description: \"A marker to show inside map view\",\n category: COMPONENT_TYPES.button,\n layout: {},\n props: {\n latitude: createNumberProp({\n label: \"Latitude\",\n description: \"The longitude in which the marker is located\",\n required: true,\n precision: 0.000001,\n min: -90,\n max: 90,\n }),\n longitude: createNumberProp({\n label: \"Latitude\",\n description: \"The latitude in which the marker is located\",\n required: true,\n precision: 0.000001,\n min: -180,\n max: 180,\n }),\n title: createTextProp({\n label: \"Title\",\n description: \"Title to show along with the marker\",\n defaultValue: null,\n }),\n description: createTextProp({\n label: \"Description\",\n description: \"Optional description for the marker\",\n defaultValue: null,\n }),\n flat: createBoolProp({\n label: \"Flat\",\n description:\n \"Sets whether this marker should be flat against the map (if true) or a billboard facing the camera (if false)\",\n defaultValue: false,\n }),\n pinColor: createColorProp({\n label: \"Pin Color\",\n description: \"Sets the color of the marker\",\n }),\n },\n};\n"]}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { View, Text, StyleSheet } from "react-native";
|
|
3
|
-
import { Marker as WebMarker } from "@react-google-maps/api";
|
|
4
|
-
import MapCallout from "./MapCallout.web";
|
|
5
|
-
export const markerContext = /*#__PURE__*/React.createContext({
|
|
6
|
-
pinColor: "#E74C3C",
|
|
7
|
-
calloutOpened: false,
|
|
8
|
-
position: undefined,
|
|
9
|
-
toggleCallout: () => {}
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
const MapMarker = ({
|
|
13
|
-
pinColor,
|
|
14
|
-
latitude,
|
|
15
|
-
longitude,
|
|
16
|
-
title,
|
|
17
|
-
description,
|
|
18
|
-
children
|
|
19
|
-
}) => {
|
|
20
|
-
const {
|
|
21
|
-
Provider
|
|
22
|
-
} = markerContext;
|
|
23
|
-
const [calloutOpened, toggleCallout] = React.useState(false);
|
|
24
|
-
const [marker, setMarker] = React.useState(null);
|
|
25
|
-
|
|
26
|
-
const handleMarkerClick = () => toggleCallout(true);
|
|
27
|
-
|
|
28
|
-
const handleOnLoad = m => setMarker(m);
|
|
29
|
-
|
|
30
|
-
let mappedChildren;
|
|
31
|
-
|
|
32
|
-
if (!children) {
|
|
33
|
-
if (title || description) {
|
|
34
|
-
mappedChildren = /*#__PURE__*/React.createElement(MapCallout, {
|
|
35
|
-
showTooltip: true,
|
|
36
|
-
anchor: marker
|
|
37
|
-
}, /*#__PURE__*/React.createElement(View, {
|
|
38
|
-
style: style.tooltip
|
|
39
|
-
}, title && /*#__PURE__*/React.createElement(Text, {
|
|
40
|
-
style: style.title
|
|
41
|
-
}, title), description && /*#__PURE__*/React.createElement(Text, {
|
|
42
|
-
style: style.description
|
|
43
|
-
}, description)));
|
|
44
|
-
}
|
|
45
|
-
} else {
|
|
46
|
-
mappedChildren = React.Children.map(children, (child, index) => {
|
|
47
|
-
return /*#__PURE__*/React.cloneElement(child, {
|
|
48
|
-
index,
|
|
49
|
-
anchor: marker
|
|
50
|
-
});
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
return /*#__PURE__*/React.createElement(Provider, {
|
|
55
|
-
value: {
|
|
56
|
-
pinColor: pinColor,
|
|
57
|
-
calloutOpened,
|
|
58
|
-
toggleCallout: value => toggleCallout(value),
|
|
59
|
-
position: {
|
|
60
|
-
latitude,
|
|
61
|
-
longitude
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}, /*#__PURE__*/React.createElement(WebMarker, {
|
|
65
|
-
position: {
|
|
66
|
-
lat: latitude,
|
|
67
|
-
lng: longitude
|
|
68
|
-
},
|
|
69
|
-
onClick: handleMarkerClick,
|
|
70
|
-
onLoad: handleOnLoad,
|
|
71
|
-
icon: {
|
|
72
|
-
path: "m12 0c-4.4183 2.3685e-15 -8 3.5817-8 8 0 1.421 0.3816 2.75 1.0312 3.906 0.1079 0.192 0.221 0.381 0.3438 0.563l6.625 11.531 6.625-11.531c0.102-0.151 0.19-0.311 0.281-0.469l0.063-0.094c0.649-1.156 1.031-2.485 1.031-3.906 0-4.4183-3.582-8-8-8zm0 4c2.209 0 4 1.7909 4 4 0 2.209-1.791 4-4 4-2.2091 0-4-1.791-4-4 0-2.2091 1.7909-4 4-4z",
|
|
73
|
-
fillColor: pinColor,
|
|
74
|
-
fillOpacity: 1,
|
|
75
|
-
strokeWeight: 0,
|
|
76
|
-
rotation: 0,
|
|
77
|
-
scale: 2
|
|
78
|
-
}
|
|
79
|
-
}, mappedChildren));
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
const style = StyleSheet.create({
|
|
83
|
-
tooltip: {
|
|
84
|
-
display: "flex",
|
|
85
|
-
flexDirection: "column"
|
|
86
|
-
},
|
|
87
|
-
title: {
|
|
88
|
-
fontWeight: "600",
|
|
89
|
-
textAlign: "center"
|
|
90
|
-
},
|
|
91
|
-
description: {
|
|
92
|
-
textAlign: "center"
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
export default MapMarker;
|
|
96
|
-
//# sourceMappingURL=MapMarker.web.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["MapMarker.web.tsx"],"names":["React","View","Text","StyleSheet","Marker","WebMarker","MapCallout","markerContext","createContext","pinColor","calloutOpened","position","undefined","toggleCallout","MapMarker","latitude","longitude","title","description","children","Provider","useState","marker","setMarker","handleMarkerClick","handleOnLoad","m","mappedChildren","style","tooltip","Children","map","child","index","cloneElement","anchor","value","lat","lng","path","fillColor","fillOpacity","strokeWeight","rotation","scale","create","display","flexDirection","fontWeight","textAlign"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,SAASC,IAAT,EAAeC,IAAf,EAAqBC,UAArB,QAAuC,cAAvC;AAGA,SAASC,MAAM,IAAIC,SAAnB,QAAoC,wBAApC;AACA,OAAOC,UAAP,MAAuB,kBAAvB;AASA,OAAO,MAAMC,aAAa,gBAAGP,KAAK,CAACQ,aAAN,CAAoC;AAC/DC,EAAAA,QAAQ,EAAE,SADqD;AAE/DC,EAAAA,aAAa,EAAE,KAFgD;AAG/DC,EAAAA,QAAQ,EAAEC,SAHqD;AAI/DC,EAAAA,aAAa,EAAE,MAAM,CAAE;AAJwC,CAApC,CAAtB;;AAOP,MAAMC,SAAmC,GAAG,CAAC;AAC3CL,EAAAA,QAD2C;AAE3CM,EAAAA,QAF2C;AAG3CC,EAAAA,SAH2C;AAI3CC,EAAAA,KAJ2C;AAK3CC,EAAAA,WAL2C;AAM3CC,EAAAA;AAN2C,CAAD,KAOtC;AACJ,QAAM;AAAEC,IAAAA;AAAF,MAAeb,aAArB;AACA,QAAM,CAACG,aAAD,EAAgBG,aAAhB,IAAiCb,KAAK,CAACqB,QAAN,CAAe,KAAf,CAAvC;AACA,QAAM,CAACC,MAAD,EAASC,SAAT,IAAsBvB,KAAK,CAACqB,QAAN,CAAmC,IAAnC,CAA5B;;AACA,QAAMG,iBAAiB,GAAG,MAAMX,aAAa,CAAC,IAAD,CAA7C;;AACA,QAAMY,YAAY,GAAIC,CAAD,IAAYH,SAAS,CAACG,CAAD,CAA1C;;AACA,MAAIC,cAAJ;;AACA,MAAI,CAACR,QAAL,EAAe;AACb,QAAIF,KAAK,IAAIC,WAAb,EAA0B;AACxBS,MAAAA,cAAc,gBACZ,oBAAC,UAAD;AAAY,QAAA,WAAW,MAAvB;AAAwB,QAAA,MAAM,E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,KAgBGjB,cAhBH,CAXF,CADF;AAgCD,CAnED;;AAqEA,MAAMC,KAAK,GAAGzB,UAAU,CAAC0C,MAAX,CAAkB;AAC9BhB,EAAAA,OAAO,EAAE;AACPiB,IAAAA,OAAO,EAAE,MADF;AAEPC,IAAAA,aAAa,EAAE;AAFR,GADqB;AAK9B9B,EAAAA,KAAK,EAAE;AACL+B,IAAAA,UAAU,EAAE,KADP;AAELC,IAAAA,SAAS,EAAE;AAFN,GALuB;AAS9B/B,EAAAA,WAAW,EAAE;AACX+B,IAAAA,SAAS,EAAE;AADA;AATiB,CAAlB,CAAd;AAcA,eAAenC,SAAf","sourcesContent":["import * as React from \"react\";\nimport { View, Text, StyleSheet } from \"react-native\";\nimport { LatLng, MarkerProps } from \"react-native-maps\";\nimport { MapMarkerProps } from \"./types\";\nimport { Marker as WebMarker } from \"@react-google-maps/api\";\nimport MapCallout from \"./MapCallout.web\";\n\ninterface IMarkerContext {\n pinColor?: string | undefined;\n calloutOpened: boolean;\n position: LatLng | undefined;\n toggleCallout: (value: boolean) => void;\n}\n\nexport const markerContext = React.createContext<IMarkerContext>({\n pinColor: \"#E74C3C\",\n calloutOpened: false,\n position: undefined,\n toggleCallout: () => {},\n});\n\nconst MapMarker: React.FC<MapMarkerProps> = ({\n pinColor,\n latitude,\n longitude,\n title,\n description,\n children,\n}) => {\n const { Provider } = markerContext;\n const [calloutOpened, toggleCallout] = React.useState(false);\n const [marker, setMarker] = React.useState<MarkerProps | null>(null);\n const handleMarkerClick = () => toggleCallout(true);\n const handleOnLoad = (m: any) => setMarker(m);\n let mappedChildren;\n if (!children) {\n if (title || description) {\n mappedChildren = (\n <MapCallout showTooltip anchor={marker}>\n <View style={style.tooltip}>\n {title && <Text style={style.title}>{title}</Text>}\n {description && (\n <Text style={style.description}>{description}</Text>\n )}\n </View>\n </MapCallout>\n );\n }\n } else {\n mappedChildren = React.Children.map(children, (child, index) => {\n return React.cloneElement(child as React.ReactElement, {\n index,\n anchor: marker,\n });\n });\n }\n return (\n <Provider\n value={{\n pinColor: pinColor,\n calloutOpened,\n toggleCallout: (value) => toggleCallout(value),\n position: {\n latitude,\n longitude,\n },\n }}\n >\n <WebMarker\n position={{\n lat: latitude,\n lng: longitude,\n }}\n onClick={handleMarkerClick}\n onLoad={handleOnLoad}\n icon={{\n path: \"m12 0c-4.4183 2.3685e-15 -8 3.5817-8 8 0 1.421 0.3816 2.75 1.0312 3.906 0.1079 0.192 0.221 0.381 0.3438 0.563l6.625 11.531 6.625-11.531c0.102-0.151 0.19-0.311 0.281-0.469l0.063-0.094c0.649-1.156 1.031-2.485 1.031-3.906 0-4.4183-3.582-8-8-8zm0 4c2.209 0 4 1.7909 4 4 0 2.209-1.791 4-4 4-2.2091 0-4-1.791-4-4 0-2.2091 1.7909-4 4-4z\",\n fillColor: pinColor,\n fillOpacity: 1,\n strokeWeight: 0,\n rotation: 0,\n scale: 2,\n }}\n >\n {mappedChildren}\n </WebMarker>\n </Provider>\n );\n};\n\nconst style = StyleSheet.create({\n tooltip: {\n display: \"flex\",\n flexDirection: \"column\",\n },\n title: {\n fontWeight: \"600\",\n textAlign: \"center\",\n },\n description: {\n textAlign: \"center\",\n },\n});\n\nexport default MapMarker;\n"]}
|
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import NativeMapView, { PROVIDER_GOOGLE } from "react-native-maps";
|
|
3
|
-
import NoApiKey from "./NoApiKey";
|
|
4
|
-
import { COMPONENT_TYPES, createBoolProp, createColorProp, createNumberProp, createTextProp } from "@draftbit/types";
|
|
5
|
-
|
|
6
|
-
const MapView = ({
|
|
7
|
-
provider = PROVIDER_GOOGLE,
|
|
8
|
-
apiKey,
|
|
9
|
-
latitude,
|
|
10
|
-
latitudeDelta,
|
|
11
|
-
longitude,
|
|
12
|
-
longitudeDelta,
|
|
13
|
-
showsCompass = false,
|
|
14
|
-
rotateEnabled = true,
|
|
15
|
-
zoomEnabled = true,
|
|
16
|
-
loadingEnabled = true,
|
|
17
|
-
scrollEnabled = true,
|
|
18
|
-
loadingBackgroundColor,
|
|
19
|
-
loadingIndicatorColor,
|
|
20
|
-
mapType = "standard",
|
|
21
|
-
style,
|
|
22
|
-
children
|
|
23
|
-
}) => {
|
|
24
|
-
if (!apiKey) {
|
|
25
|
-
return /*#__PURE__*/React.createElement(NoApiKey, null);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
return /*#__PURE__*/React.createElement(NativeMapView, {
|
|
29
|
-
provider: provider,
|
|
30
|
-
mapType: mapType,
|
|
31
|
-
showsCompass: showsCompass,
|
|
32
|
-
rotateEnabled: rotateEnabled,
|
|
33
|
-
zoomEnabled: zoomEnabled,
|
|
34
|
-
initialRegion: {
|
|
35
|
-
latitude: latitude,
|
|
36
|
-
longitude: longitude,
|
|
37
|
-
latitudeDelta: latitudeDelta,
|
|
38
|
-
longitudeDelta: longitudeDelta
|
|
39
|
-
},
|
|
40
|
-
loadingEnabled: loadingEnabled,
|
|
41
|
-
scrollEnabled: scrollEnabled,
|
|
42
|
-
loadingBackgroundColor: loadingBackgroundColor,
|
|
43
|
-
loadingIndicatorColor: loadingIndicatorColor,
|
|
44
|
-
style: style
|
|
45
|
-
}, children);
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
export default MapView;
|
|
49
|
-
export const SEED_DATA = {
|
|
50
|
-
name: "Map View",
|
|
51
|
-
tag: "MapView",
|
|
52
|
-
description: "A map view",
|
|
53
|
-
category: COMPONENT_TYPES.media,
|
|
54
|
-
layout: {},
|
|
55
|
-
props: {
|
|
56
|
-
apiKey: createTextProp({
|
|
57
|
-
label: "API Key",
|
|
58
|
-
description: "Your API Key",
|
|
59
|
-
required: true,
|
|
60
|
-
defaultValue: null
|
|
61
|
-
}),
|
|
62
|
-
provider: createTextProp({
|
|
63
|
-
label: "Provider",
|
|
64
|
-
description: "The maps provider",
|
|
65
|
-
required: false,
|
|
66
|
-
defaultValue: "google",
|
|
67
|
-
options: ["google"]
|
|
68
|
-
}),
|
|
69
|
-
latitudeDelta: createNumberProp({
|
|
70
|
-
label: "Latitude Delta",
|
|
71
|
-
description: "The latitude delta for the map's initial region",
|
|
72
|
-
required: false,
|
|
73
|
-
precision: 0.0001
|
|
74
|
-
}),
|
|
75
|
-
longitudeDelta: createNumberProp({
|
|
76
|
-
label: "Longitude Delta",
|
|
77
|
-
description: "The longitude delta for the map's initial region",
|
|
78
|
-
required: false,
|
|
79
|
-
precision: 0.0001
|
|
80
|
-
}),
|
|
81
|
-
latitude: createNumberProp({
|
|
82
|
-
label: "Latitude",
|
|
83
|
-
description: "The longitude for the map's initial region",
|
|
84
|
-
required: false,
|
|
85
|
-
precision: 0.000001,
|
|
86
|
-
min: -90,
|
|
87
|
-
max: 90
|
|
88
|
-
}),
|
|
89
|
-
longitude: createNumberProp({
|
|
90
|
-
label: "Latitude",
|
|
91
|
-
description: "The latitude for the map's initial region",
|
|
92
|
-
required: false,
|
|
93
|
-
precision: 0.000001,
|
|
94
|
-
min: -180,
|
|
95
|
-
max: 180
|
|
96
|
-
}),
|
|
97
|
-
mapType: createTextProp({
|
|
98
|
-
label: "Map Type",
|
|
99
|
-
description: "The type of map to show",
|
|
100
|
-
required: false,
|
|
101
|
-
defaultValue: "standard",
|
|
102
|
-
options: ["standard", "satellite", "hybrid", "terrain", "none", "mutedStandard"]
|
|
103
|
-
}),
|
|
104
|
-
zoomEnabled: createBoolProp({
|
|
105
|
-
label: "Zoom Enabled",
|
|
106
|
-
description: "Whether zooming is enabled",
|
|
107
|
-
required: false,
|
|
108
|
-
defaultValue: true
|
|
109
|
-
}),
|
|
110
|
-
showsCompass: createBoolProp({
|
|
111
|
-
label: "Shows Compass",
|
|
112
|
-
description: "Whether compass is shown",
|
|
113
|
-
required: false,
|
|
114
|
-
defaultValue: false
|
|
115
|
-
}),
|
|
116
|
-
rotateEnabled: createBoolProp({
|
|
117
|
-
label: "Rotate Enabled",
|
|
118
|
-
description: "Whether rotating the map is enabled",
|
|
119
|
-
required: false,
|
|
120
|
-
defaultValue: true
|
|
121
|
-
}),
|
|
122
|
-
scrollEnabled: createBoolProp({
|
|
123
|
-
label: "Scroll Enabled",
|
|
124
|
-
description: "Whether scrolling the map view is enabled",
|
|
125
|
-
required: false,
|
|
126
|
-
defaultValue: true
|
|
127
|
-
}),
|
|
128
|
-
loadingEnabled: createBoolProp({
|
|
129
|
-
label: "Loading Enabled",
|
|
130
|
-
description: "If true a loading indicator will show while the map is loading",
|
|
131
|
-
required: false,
|
|
132
|
-
defaultValue: true
|
|
133
|
-
}),
|
|
134
|
-
loadingIndicatorColor: createColorProp({
|
|
135
|
-
label: "Loading Indicator Color",
|
|
136
|
-
description: "Color of the loading indicator"
|
|
137
|
-
}),
|
|
138
|
-
loadingBackgroundColor: createColorProp({
|
|
139
|
-
label: "Loading Background Color",
|
|
140
|
-
description: "Color of the background to show while the map is loading"
|
|
141
|
-
})
|
|
142
|
-
}
|
|
143
|
-
};
|
|
144
|
-
//# sourceMappingURL=MapView.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["MapView.native.tsx"],"names":["React","NativeMapView","PROVIDER_GOOGLE","NoApiKey","COMPONENT_TYPES","createBoolProp","createColorProp","createNumberProp","createTextProp","MapView","provider","apiKey","latitude","latitudeDelta","longitude","longitudeDelta","showsCompass","rotateEnabled","zoomEnabled","loadingEnabled","scrollEnabled","loadingBackgroundColor","loadingIndicatorColor","mapType","style","children","SEED_DATA","name","tag","description","category","media","layout","props","label","required","defaultValue","options","precision","min","max"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,OAAOC,aAAP,IAAwBC,eAAxB,QAA+C,mBAA/C;AAEA,OAAOC,QAAP,MAAqB,YAArB;AACA,SACEC,eADF,EAEEC,cAFF,EAGEC,eAHF,EAIEC,gBAJF,EAKEC,cALF,QAMO,iBANP;;AAQA,MAAMC,OAA+B,GAAG,CAAC;AACvCC,EAAAA,QAAQ,GAAGR,eAD4B;AAEvCS,EA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5BC,MAAAA,YAAY,EAAE;AAJc,KAAD,CA1ExB;AAgFLjB,IAAAA,cAAc,EAAEd,cAAc,CAAC;AAC7B6B,MAAAA,KAAK,EAAE,iBADsB;AAE7BL,MAAAA,WAAW,EACT,gEAH2B;AAI7BM,MAAAA,QAAQ,EAAE,KAJmB;AAK7BC,MAAAA,YAAY,EAAE;AALe,KAAD,CAhFzB;AAuFLd,IAAAA,qBAAqB,EAAEhB,eAAe,CAAC;AACrC4B,MAAAA,KAAK,EAAE,yBAD8B;AAErCL,MAAAA,WAAW,EAAE;AAFwB,KAAD,CAvFjC;AA2FLR,IAAAA,sBAAsB,EAAEf,eAAe,CAAC;AACtC4B,MAAAA,KAAK,EAAE,0BAD+B;AAEtCL,MAAAA,WAAW,EAAE;AAFyB,KAAD;AA3FlC;AANgB,CAAlB","sourcesContent":["import * as React from \"react\";\nimport NativeMapView, { PROVIDER_GOOGLE } from \"react-native-maps\";\nimport { MapViewProps } from \"./types\";\nimport NoApiKey from \"./NoApiKey\";\nimport {\n COMPONENT_TYPES,\n createBoolProp,\n createColorProp,\n createNumberProp,\n createTextProp,\n} from \"@draftbit/types\";\n\nconst MapView: React.FC<MapViewProps> = ({\n provider = PROVIDER_GOOGLE,\n apiKey,\n latitude,\n latitudeDelta,\n longitude,\n longitudeDelta,\n showsCompass = false,\n rotateEnabled = true,\n zoomEnabled = true,\n loadingEnabled = true,\n scrollEnabled = true,\n loadingBackgroundColor,\n loadingIndicatorColor,\n mapType = \"standard\",\n style,\n children,\n}) => {\n if (!apiKey) {\n return <NoApiKey />;\n }\n\n return (\n <NativeMapView\n provider={provider}\n mapType={mapType}\n showsCompass={showsCompass}\n rotateEnabled={rotateEnabled}\n zoomEnabled={zoomEnabled}\n initialRegion={{\n latitude: latitude as number,\n longitude: longitude as number,\n latitudeDelta: latitudeDelta as number,\n longitudeDelta: longitudeDelta as number,\n }}\n loadingEnabled={loadingEnabled}\n scrollEnabled={scrollEnabled}\n loadingBackgroundColor={loadingBackgroundColor}\n loadingIndicatorColor={loadingIndicatorColor}\n style={style}\n >\n {children}\n </NativeMapView>\n );\n};\n\nexport default MapView;\n\nexport const SEED_DATA = {\n name: \"Map View\",\n tag: \"MapView\",\n description: \"A map view\",\n category: COMPONENT_TYPES.media,\n layout: {},\n props: {\n apiKey: createTextProp({\n label: \"API Key\",\n description: \"Your API Key\",\n required: true,\n defaultValue: null,\n }),\n provider: createTextProp({\n label: \"Provider\",\n description: \"The maps provider\",\n required: false,\n defaultValue: \"google\",\n options: [\"google\"],\n }),\n latitudeDelta: createNumberProp({\n label: \"Latitude Delta\",\n description: \"The latitude delta for the map's initial region\",\n required: false,\n precision: 0.0001,\n }),\n longitudeDelta: createNumberProp({\n label: \"Longitude Delta\",\n description: \"The longitude delta for the map's initial region\",\n required: false,\n precision: 0.0001,\n }),\n latitude: createNumberProp({\n label: \"Latitude\",\n description: \"The longitude for the map's initial region\",\n required: false,\n precision: 0.000001,\n min: -90,\n max: 90,\n }),\n longitude: createNumberProp({\n label: \"Latitude\",\n description: \"The latitude for the map's initial region\",\n required: false,\n precision: 0.000001,\n min: -180,\n max: 180,\n }),\n mapType: createTextProp({\n label: \"Map Type\",\n description: \"The type of map to show\",\n required: false,\n defaultValue: \"standard\",\n options: [\n \"standard\",\n \"satellite\",\n \"hybrid\",\n \"terrain\",\n \"none\",\n \"mutedStandard\",\n ],\n }),\n zoomEnabled: createBoolProp({\n label: \"Zoom Enabled\",\n description: \"Whether zooming is enabled\",\n required: false,\n defaultValue: true,\n }),\n showsCompass: createBoolProp({\n label: \"Shows Compass\",\n description: \"Whether compass is shown\",\n required: false,\n defaultValue: false,\n }),\n rotateEnabled: createBoolProp({\n label: \"Rotate Enabled\",\n description: \"Whether rotating the map is enabled\",\n required: false,\n defaultValue: true,\n }),\n scrollEnabled: createBoolProp({\n label: \"Scroll Enabled\",\n description: \"Whether scrolling the map view is enabled\",\n required: false,\n defaultValue: true,\n }),\n loadingEnabled: createBoolProp({\n label: \"Loading Enabled\",\n description:\n \"If true a loading indicator will show while the map is loading\",\n required: false,\n defaultValue: true,\n }),\n loadingIndicatorColor: createColorProp({\n label: \"Loading Indicator Color\",\n description: \"Color of the loading indicator\",\n }),\n loadingBackgroundColor: createColorProp({\n label: \"Loading Background Color\",\n description: \"Color of the background to show while the map is loading\",\n }),\n },\n};\n"]}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { GoogleMap, LoadScript } from "@react-google-maps/api";
|
|
3
|
-
import NoApiKey from "./NoApiKey";
|
|
4
|
-
import { StyleSheet } from "react-native";
|
|
5
|
-
|
|
6
|
-
const MapView = ({
|
|
7
|
-
apiKey,
|
|
8
|
-
latitude,
|
|
9
|
-
longitude,
|
|
10
|
-
rotateEnabled = true,
|
|
11
|
-
scrollEnabled = true,
|
|
12
|
-
mapType = "standard",
|
|
13
|
-
style,
|
|
14
|
-
children
|
|
15
|
-
}) => {
|
|
16
|
-
if (!apiKey) {
|
|
17
|
-
return /*#__PURE__*/React.createElement(NoApiKey, null);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
return /*#__PURE__*/React.createElement(LoadScript, {
|
|
21
|
-
googleMapsApiKey: apiKey
|
|
22
|
-
}, /*#__PURE__*/React.createElement(GoogleMap, {
|
|
23
|
-
mapContainerStyle: StyleSheet.flatten(style),
|
|
24
|
-
center: {
|
|
25
|
-
lat: latitude || 0,
|
|
26
|
-
lng: longitude || 0
|
|
27
|
-
},
|
|
28
|
-
mapTypeId: mapType,
|
|
29
|
-
zoom: 14,
|
|
30
|
-
options: {
|
|
31
|
-
scrollwheel: scrollEnabled,
|
|
32
|
-
rotateControl: rotateEnabled
|
|
33
|
-
}
|
|
34
|
-
}, children));
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
export default MapView;
|
|
38
|
-
//# sourceMappingURL=MapView.web.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["MapView.web.tsx"],"names":["React","GoogleMap","LoadScript","NoApiKey","StyleSheet","MapView","apiKey","latitude","longitude","rotateEnabled","scrollEnabled","mapType","style","children","flatten","lat","lng","scrollwheel","rotateControl"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,SAASC,SAAT,EAAoBC,UAApB,QAAsC,wBAAtC;AACA,OAAOC,QAAP,MAAqB,YAArB;AAEA,SAASC,UAAT,QAA2B,cAA3B;;AAEA,MAAMC,OAA+B,GAAG,CAAC;AACvCC,EAAAA,MADuC;AAEvCC,EAAAA,QAFuC;AAGvCC,EAAAA,SAHuC;AAIvCC,EAAAA,aAAa,GAAG,IAJuB;AAKvCC,EAAAA,aAAa,GAAG,IALuB;AAMvCC,EAAAA,OAAO,GAAG,UAN6B;AAOvCC,EAAAA,KAPuC;AAQvCC,EAAAA;AARuC,CAAD,KASlC;AACJ,MAAI,CAACP,MAAL,EAAa;AACX,wBAAO,oBAAC,QAAD,OAAP;AACD;;AAED,sBACE,oBAAC,UAAD;AAAY,IAAA,gBAAgB,EAAEA;AAA9B,kBACE,oBAAC,SAAD;AACE,IAAA,iBAAiB,EAAEF,UAAU,CAACU,OAAX,CAAmBF,KAAnB,CADrB;AAEE,IAAA,MAAM,EAAE;AACNG,MAAAA,GAAG,EAAER,QAAQ,IAAI,CADX;AAENS,MAAAA,GAAG,EAAER,SAAS,IAAI;AAFZ,KAFV;AAME,IAAA,SAAS,EAAEG,OANb;AAOE,IAAA,IAAI,EAAE,EAPR;AAQE,IAAA,OAAO,EAAE;AACPM,MAAAA,WAAW,EAAEP,aADN;AAEPQ,MAAAA,aAAa,EAAET;AAFR;AARX,KAaGI,QAbH,CADF,CADF;AAmBD,CAjCD;;AAmCA,eAAeR,OAAf","sourcesContent":["import * as React from \"react\";\nimport { GoogleMap, LoadScript } from \"@react-google-maps/api\";\nimport NoApiKey from \"./NoApiKey\";\nimport { MapViewProps } from \"./types\";\nimport { StyleSheet } from \"react-native\";\n\nconst MapView: React.FC<MapViewProps> = ({\n apiKey,\n latitude,\n longitude,\n rotateEnabled = true,\n scrollEnabled = true,\n mapType = \"standard\",\n style,\n children,\n}) => {\n if (!apiKey) {\n return <NoApiKey />;\n }\n\n return (\n <LoadScript googleMapsApiKey={apiKey}>\n <GoogleMap\n mapContainerStyle={StyleSheet.flatten(style) as React.CSSProperties}\n center={{\n lat: latitude || 0,\n lng: longitude || 0,\n }}\n mapTypeId={mapType}\n zoom={14}\n options={{\n scrollwheel: scrollEnabled,\n rotateControl: rotateEnabled,\n }}\n >\n {children}\n </GoogleMap>\n </LoadScript>\n );\n};\n\nexport default MapView;\n"]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { Text, View } from "react-native";
|
|
3
|
-
|
|
4
|
-
const NoApiKey = () => /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(Text, null, "You need to pass an API key in order for MapView to work."));
|
|
5
|
-
|
|
6
|
-
export default NoApiKey;
|
|
7
|
-
//# sourceMappingURL=NoApiKey.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["NoApiKey.tsx"],"names":["React","Text","View","NoApiKey"],"mappings":"AAAA,OAAO,KAAKA,KAAZ,MAAuB,OAAvB;AACA,SAASC,IAAT,EAAeC,IAAf,QAA2B,cAA3B;;AAEA,MAAMC,QAAQ,GAAG,mBACf,oBAAC,IAAD,qBACE,oBAAC,IAAD,oEADF,CADF;;AAMA,eAAeA,QAAf","sourcesContent":["import * as React from \"react\";\nimport { Text, View } from \"react-native\";\n\nconst NoApiKey = () => (\n <View>\n <Text>You need to pass an API key in order for MapView to work.</Text>\n </View>\n);\n\nexport default NoApiKey;\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["index.tsx"],"names":["default","MapView","MapMarker","MapCallout"],"mappings":"AAAA;AACA,SAASA,OAAO,IAAIC,OAApB,QAAmC,WAAnC,C,CACA;;AACA,SAASD,OAAO,IAAIE,SAApB,QAAqC,aAArC,C,CACA;;AACA,SAASF,OAAO,IAAIG,UAApB,QAAsC,cAAtC","sourcesContent":["//@ts-ignore\nexport { default as MapView } from \"./MapView\";\n//@ts-ignore\nexport { default as MapMarker } from \"./MapMarker\";\n//@ts-ignore\nexport { default as MapCallout } from \"./MapCallout\";\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","sourcesContent":[]}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { CalloutProps } from "./types";
|
|
3
|
-
declare const MapCallout: React.FC<CalloutProps>;
|
|
4
|
-
export default MapCallout;
|
|
5
|
-
export declare const SEED_DATA: {
|
|
6
|
-
name: string;
|
|
7
|
-
tag: string;
|
|
8
|
-
description: string;
|
|
9
|
-
category: string;
|
|
10
|
-
layout: {};
|
|
11
|
-
props: {
|
|
12
|
-
onPress: {
|
|
13
|
-
label: string;
|
|
14
|
-
description: string;
|
|
15
|
-
editable: boolean;
|
|
16
|
-
required: boolean;
|
|
17
|
-
formType: string;
|
|
18
|
-
propType: string;
|
|
19
|
-
defaultValue: null;
|
|
20
|
-
group: string;
|
|
21
|
-
};
|
|
22
|
-
showTooltip: {
|
|
23
|
-
label: string;
|
|
24
|
-
description: string;
|
|
25
|
-
formType: string;
|
|
26
|
-
propType: string;
|
|
27
|
-
defaultValue: boolean;
|
|
28
|
-
editable: boolean;
|
|
29
|
-
required: boolean;
|
|
30
|
-
group: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
};
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { MapMarkerProps } from "./types";
|
|
3
|
-
declare const MapMarker: React.FC<MapMarkerProps>;
|
|
4
|
-
export default MapMarker;
|
|
5
|
-
export declare const SEED_DATA: {
|
|
6
|
-
name: string;
|
|
7
|
-
tag: string;
|
|
8
|
-
description: string;
|
|
9
|
-
category: string;
|
|
10
|
-
layout: {};
|
|
11
|
-
props: {
|
|
12
|
-
latitude: {
|
|
13
|
-
label: string;
|
|
14
|
-
description: string;
|
|
15
|
-
formType: string;
|
|
16
|
-
propType: string;
|
|
17
|
-
group: string;
|
|
18
|
-
defaultValue: null;
|
|
19
|
-
editable: boolean;
|
|
20
|
-
required: boolean;
|
|
21
|
-
step: number;
|
|
22
|
-
};
|
|
23
|
-
longitude: {
|
|
24
|
-
label: string;
|
|
25
|
-
description: string;
|
|
26
|
-
formType: string;
|
|
27
|
-
propType: string;
|
|
28
|
-
group: string;
|
|
29
|
-
defaultValue: null;
|
|
30
|
-
editable: boolean;
|
|
31
|
-
required: boolean;
|
|
32
|
-
step: number;
|
|
33
|
-
};
|
|
34
|
-
title: any;
|
|
35
|
-
description: any;
|
|
36
|
-
flat: {
|
|
37
|
-
label: string;
|
|
38
|
-
description: string;
|
|
39
|
-
formType: string;
|
|
40
|
-
propType: string;
|
|
41
|
-
defaultValue: boolean;
|
|
42
|
-
editable: boolean;
|
|
43
|
-
required: boolean;
|
|
44
|
-
group: string;
|
|
45
|
-
};
|
|
46
|
-
pinColor: {
|
|
47
|
-
group: string;
|
|
48
|
-
label: string;
|
|
49
|
-
description: string;
|
|
50
|
-
editable: boolean;
|
|
51
|
-
required: boolean;
|
|
52
|
-
defaultValue: null;
|
|
53
|
-
formType: string;
|
|
54
|
-
propType: string;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { LatLng } from "react-native-maps";
|
|
3
|
-
import { MapMarkerProps } from "./types";
|
|
4
|
-
interface IMarkerContext {
|
|
5
|
-
pinColor?: string | undefined;
|
|
6
|
-
calloutOpened: boolean;
|
|
7
|
-
position: LatLng | undefined;
|
|
8
|
-
toggleCallout: (value: boolean) => void;
|
|
9
|
-
}
|
|
10
|
-
export declare const markerContext: React.Context<IMarkerContext>;
|
|
11
|
-
declare const MapMarker: React.FC<MapMarkerProps>;
|
|
12
|
-
export default MapMarker;
|