@draftbit/core 43.5.0 → 43.5.1-106986.1
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 +5 -21
- package/lib/commonjs/components/Accordion/AccordionItem.js.map +1 -1
- package/lib/commonjs/components/DeprecatedButton.js +19 -4
- package/lib/commonjs/components/DeprecatedButton.js.map +1 -1
- package/lib/commonjs/components/DeprecatedFAB.js +4 -20
- package/lib/commonjs/components/DeprecatedFAB.js.map +1 -1
- package/lib/commonjs/mappings/KeyboardAwareScrollView.js +5 -0
- package/lib/commonjs/mappings/KeyboardAwareScrollView.js.map +1 -1
- package/lib/commonjs/mappings/MapCallout.js +2 -1
- package/lib/commonjs/mappings/MapCallout.js.map +1 -1
- package/lib/commonjs/mappings/MapMarker.js +2 -1
- package/lib/commonjs/mappings/MapMarker.js.map +1 -1
- package/lib/commonjs/mappings/MapView.js +128 -0
- package/lib/commonjs/mappings/MapView.js.map +1 -0
- package/lib/commonjs/mappings/RadioButtonGroup.js.map +1 -1
- package/lib/commonjs/mappings/RowBodyIcon.js.map +1 -1
- package/lib/module/mappings/Banner.js.map +1 -1
- package/lib/module/mappings/KeyboardAwareScrollView.js +5 -0
- package/lib/module/mappings/KeyboardAwareScrollView.js.map +1 -1
- package/lib/module/mappings/MapCallout.js +2 -1
- package/lib/module/mappings/MapCallout.js.map +1 -1
- package/lib/module/mappings/MapMarker.js +2 -1
- package/lib/module/mappings/MapMarker.js.map +1 -1
- package/lib/module/mappings/MapView.js +119 -0
- package/lib/module/mappings/MapView.js.map +1 -0
- package/lib/typescript/src/mappings/KeyboardAwareScrollView.d.ts +10 -0
- package/lib/typescript/src/mappings/MapCallout.d.ts +1 -0
- package/lib/typescript/src/mappings/MapMarker.d.ts +1 -0
- package/lib/typescript/src/mappings/MapView.d.ts +159 -0
- package/package.json +3 -3
- package/src/mappings/KeyboardAwareScrollView.js +5 -0
- package/src/mappings/KeyboardAwareScrollView.ts +5 -0
- package/src/mappings/MapCallout.js +2 -1
- package/src/mappings/MapCallout.ts +2 -1
- package/src/mappings/MapMarker.js +2 -1
- package/src/mappings/MapMarker.ts +2 -1
- package/src/mappings/MapView.js +125 -0
- package/src/mappings/MapView.ts +135 -0
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import {
|
|
2
|
+
COMPONENT_TYPES,
|
|
3
|
+
createBoolProp,
|
|
4
|
+
createColorProp,
|
|
5
|
+
createNumberProp,
|
|
6
|
+
GROUPS,
|
|
7
|
+
FORM_TYPES,
|
|
8
|
+
PROP_TYPES,
|
|
9
|
+
} from "@draftbit/types";
|
|
10
|
+
|
|
11
|
+
export const SEED_DATA = {
|
|
12
|
+
name: "Map View",
|
|
13
|
+
tag: "MapView",
|
|
14
|
+
packageName: "@draftbit/maps",
|
|
15
|
+
description: "A map view",
|
|
16
|
+
category: COMPONENT_TYPES.media,
|
|
17
|
+
layout: {
|
|
18
|
+
height: "100%",
|
|
19
|
+
width: "100%",
|
|
20
|
+
},
|
|
21
|
+
props: {
|
|
22
|
+
provider: {
|
|
23
|
+
formType: FORM_TYPES.flatArray,
|
|
24
|
+
propType: PROP_TYPES.STRING,
|
|
25
|
+
editable: true,
|
|
26
|
+
group: GROUPS.basic,
|
|
27
|
+
label: "Provider",
|
|
28
|
+
description: "The maps provider",
|
|
29
|
+
required: false,
|
|
30
|
+
defaultValue: null,
|
|
31
|
+
options: ["google"],
|
|
32
|
+
},
|
|
33
|
+
latitude: createNumberProp({
|
|
34
|
+
label: "Initial Latitude",
|
|
35
|
+
description: "The longitude for the map's initial region",
|
|
36
|
+
required: false,
|
|
37
|
+
precision: 6,
|
|
38
|
+
min: -90,
|
|
39
|
+
max: 90,
|
|
40
|
+
defaultValue: 37.40241,
|
|
41
|
+
}),
|
|
42
|
+
longitude: createNumberProp({
|
|
43
|
+
label: "Initial Longitude",
|
|
44
|
+
description: "The longitude for the map's initial region",
|
|
45
|
+
required: false,
|
|
46
|
+
precision: 6,
|
|
47
|
+
min: -180,
|
|
48
|
+
max: 180,
|
|
49
|
+
defaultValue: -122.12125,
|
|
50
|
+
}),
|
|
51
|
+
latitudeDelta: createNumberProp({
|
|
52
|
+
label: "Init Latitude Delta",
|
|
53
|
+
description: "The latitude delta for the map's initial region",
|
|
54
|
+
required: false,
|
|
55
|
+
precision: 4,
|
|
56
|
+
defaultValue: 1,
|
|
57
|
+
}),
|
|
58
|
+
longitudeDelta: createNumberProp({
|
|
59
|
+
label: "Init Longitude Delta",
|
|
60
|
+
description: "The longitude delta for the map's initial region",
|
|
61
|
+
required: false,
|
|
62
|
+
precision: 4,
|
|
63
|
+
defaultValue: 1,
|
|
64
|
+
}),
|
|
65
|
+
zoom: createNumberProp({
|
|
66
|
+
label: "Initial Zoom (Web)",
|
|
67
|
+
description: "The initial zoom of the map",
|
|
68
|
+
required: true,
|
|
69
|
+
precision: 0,
|
|
70
|
+
step: 1,
|
|
71
|
+
defaultValue: 8,
|
|
72
|
+
}),
|
|
73
|
+
mapType: {
|
|
74
|
+
label: "Map Type",
|
|
75
|
+
description: "The type of map to show",
|
|
76
|
+
group: GROUPS.basic,
|
|
77
|
+
formType: FORM_TYPES.flatArray,
|
|
78
|
+
propType: PROP_TYPES.STRING,
|
|
79
|
+
required: false,
|
|
80
|
+
defaultValue: null,
|
|
81
|
+
options: [
|
|
82
|
+
"standard",
|
|
83
|
+
"satellite",
|
|
84
|
+
"hybrid",
|
|
85
|
+
"terrain",
|
|
86
|
+
"none",
|
|
87
|
+
"mutedStandard",
|
|
88
|
+
],
|
|
89
|
+
},
|
|
90
|
+
zoomEnabled: createBoolProp({
|
|
91
|
+
label: "Zoom Enabled",
|
|
92
|
+
description: "Whether zooming is enabled (native only)",
|
|
93
|
+
group: GROUPS.basic,
|
|
94
|
+
required: false,
|
|
95
|
+
defaultValue: true,
|
|
96
|
+
}),
|
|
97
|
+
showsCompass: createBoolProp({
|
|
98
|
+
label: "Shows Compass",
|
|
99
|
+
description: "Whether compass is shown",
|
|
100
|
+
group: GROUPS.basic,
|
|
101
|
+
required: false,
|
|
102
|
+
defaultValue: false,
|
|
103
|
+
}),
|
|
104
|
+
rotateEnabled: createBoolProp({
|
|
105
|
+
label: "Rotate Enabled",
|
|
106
|
+
description: "Whether rotating the map is enabled",
|
|
107
|
+
group: GROUPS.basic,
|
|
108
|
+
required: false,
|
|
109
|
+
defaultValue: true,
|
|
110
|
+
}),
|
|
111
|
+
scrollEnabled: createBoolProp({
|
|
112
|
+
label: "Scroll Enabled",
|
|
113
|
+
description: "Whether scrolling the map view is enabled",
|
|
114
|
+
group: GROUPS.basic,
|
|
115
|
+
required: false,
|
|
116
|
+
defaultValue: true,
|
|
117
|
+
}),
|
|
118
|
+
loadingEnabled: createBoolProp({
|
|
119
|
+
label: "Loading Enabled",
|
|
120
|
+
description:
|
|
121
|
+
"If true a loading indicator will show while the map is loading",
|
|
122
|
+
group: GROUPS.basic,
|
|
123
|
+
required: false,
|
|
124
|
+
defaultValue: true,
|
|
125
|
+
}),
|
|
126
|
+
loadingIndicatorColor: createColorProp({
|
|
127
|
+
label: "Loading Indicator Color",
|
|
128
|
+
description: "Color of the loading indicator",
|
|
129
|
+
}),
|
|
130
|
+
loadingBackgroundColor: createColorProp({
|
|
131
|
+
label: "Loading Background Color",
|
|
132
|
+
description: "Color of the background to show while the map is loading",
|
|
133
|
+
}),
|
|
134
|
+
},
|
|
135
|
+
};
|