@draftbit/core 46.9.1-b1bb0a.2 → 46.9.1-b92e81.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 +4 -23
- package/lib/commonjs/components/BottomSheet/BottomSheet.js +1 -2
- package/lib/commonjs/mappings/ActionSheet.js +1 -1
- package/lib/commonjs/mappings/ActionSheetCancel.js +1 -1
- package/lib/commonjs/mappings/ActionSheetItem.js +1 -1
- package/lib/commonjs/mappings/BottomSheet.js +2 -7
- package/lib/commonjs/mappings/MapCallout.js +1 -1
- package/lib/commonjs/mappings/MapMarker.js +1 -1
- package/lib/module/components/BottomSheet/BottomSheet.js +1 -2
- package/lib/module/mappings/ActionSheet.js +1 -1
- package/lib/module/mappings/ActionSheetCancel.js +1 -1
- package/lib/module/mappings/ActionSheetItem.js +1 -1
- package/lib/module/mappings/BottomSheet.js +3 -8
- package/lib/module/mappings/MapCallout.js +2 -2
- package/lib/module/mappings/MapMarker.js +2 -2
- package/lib/typescript/src/components/BottomSheet/BottomSheet.d.ts.map +1 -1
- package/lib/typescript/src/mappings/ActionSheet.d.ts.map +1 -1
- package/lib/typescript/src/mappings/ActionSheetCancel.d.ts.map +1 -1
- package/lib/typescript/src/mappings/ActionSheetItem.d.ts.map +1 -1
- package/lib/typescript/src/mappings/BottomSheet.d.ts +0 -5
- package/lib/typescript/src/mappings/BottomSheet.d.ts.map +1 -1
- package/lib/typescript/src/mappings/MapCallout.d.ts.map +1 -1
- package/lib/typescript/src/mappings/MapMarker.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/components/BottomSheet/BottomSheet.js +0 -1
- package/src/components/BottomSheet/BottomSheet.tsx +0 -1
- package/src/mappings/ActionSheet.js +4 -1
- package/src/mappings/ActionSheet.ts +4 -1
- package/src/mappings/ActionSheetCancel.js +4 -1
- package/src/mappings/ActionSheetCancel.ts +4 -1
- package/src/mappings/ActionSheetItem.js +4 -1
- package/src/mappings/ActionSheetItem.ts +4 -1
- package/src/mappings/BottomSheet.js +3 -4
- package/src/mappings/BottomSheet.ts +3 -4
- package/src/mappings/MapCallout.js +6 -2
- package/src/mappings/MapCallout.ts +6 -2
- package/src/mappings/MapMarker.js +6 -2
- package/src/mappings/MapMarker.ts +6 -2
|
@@ -12,6 +12,7 @@ var _theming = require("../../theming");
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
14
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
15
16
|
const AccordionItem = _ref => {
|
|
16
17
|
let {
|
|
17
18
|
Icon,
|
|
@@ -26,10 +27,9 @@ const AccordionItem = _ref => {
|
|
|
26
27
|
textStyles,
|
|
27
28
|
viewStyles
|
|
28
29
|
} = (0, _utilities.extractStyles)(style);
|
|
29
|
-
return /*#__PURE__*/React.createElement(_reactNative.Pressable, {
|
|
30
|
-
style: [styles.container, viewStyles]
|
|
31
|
-
|
|
32
|
-
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
30
|
+
return /*#__PURE__*/React.createElement(_reactNative.Pressable, _extends({
|
|
31
|
+
style: [styles.container, viewStyles]
|
|
32
|
+
}, rest), /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
33
33
|
style: styles.row
|
|
34
34
|
}, icon ? /*#__PURE__*/React.createElement(Icon, {
|
|
35
35
|
name: icon,
|
|
@@ -61,23 +61,4 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
61
61
|
}
|
|
62
62
|
});
|
|
63
63
|
var _default = (0, _theming.withTheme)(AccordionItem);
|
|
64
|
-
exports.default = _default;.StyleSheet.create({
|
|
65
|
-
container: {
|
|
66
|
-
padding: 8
|
|
67
|
-
},
|
|
68
|
-
row: {
|
|
69
|
-
flexDirection: "row",
|
|
70
|
-
alignItems: "center",
|
|
71
|
-
paddingLeft: 8
|
|
72
|
-
},
|
|
73
|
-
item: {
|
|
74
|
-
marginVertical: 6,
|
|
75
|
-
paddingLeft: 8
|
|
76
|
-
},
|
|
77
|
-
content: {
|
|
78
|
-
flex: 1,
|
|
79
|
-
justifyContent: "center"
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
var _default = (0, _theming.withTheme)(AccordionItem);
|
|
83
64
|
exports.default = _default;
|
|
@@ -10,7 +10,7 @@ const SEED_DATA = {
|
|
|
10
10
|
tag: "ActionSheet",
|
|
11
11
|
description: "Action Sheet container",
|
|
12
12
|
category: _types.COMPONENT_TYPES.actionsheet,
|
|
13
|
-
stylesPanelSections: [_types.StylesPanelSections.
|
|
13
|
+
stylesPanelSections: [_types.StylesPanelSections.Margins, _types.StylesPanelSections.Effects],
|
|
14
14
|
props: {
|
|
15
15
|
visible: (0, _types.createStaticBoolProp)({
|
|
16
16
|
group: _types.GROUPS.data,
|
|
@@ -9,7 +9,7 @@ const SEED_DATA = {
|
|
|
9
9
|
name: "Action Sheet Cancel",
|
|
10
10
|
tag: "ActionSheetCancel",
|
|
11
11
|
description: "Action Sheet cancel",
|
|
12
|
-
stylesPanelSections: [_types.StylesPanelSections.
|
|
12
|
+
stylesPanelSections: [_types.StylesPanelSections.Margins, _types.StylesPanelSections.Effects],
|
|
13
13
|
category: _types.COMPONENT_TYPES.actionsheet,
|
|
14
14
|
triggers: [_types.Triggers.OnPress],
|
|
15
15
|
props: {
|
|
@@ -10,7 +10,7 @@ const SEED_DATA = {
|
|
|
10
10
|
tag: "ActionSheetItem",
|
|
11
11
|
description: "Action Sheet item",
|
|
12
12
|
category: _types.COMPONENT_TYPES.actionsheet,
|
|
13
|
-
stylesPanelSections: [_types.StylesPanelSections.
|
|
13
|
+
stylesPanelSections: [_types.StylesPanelSections.Margins, _types.StylesPanelSections.Effects],
|
|
14
14
|
triggers: [_types.Triggers.OnPress],
|
|
15
15
|
layout: {
|
|
16
16
|
textAlign: "center"
|
|
@@ -11,18 +11,13 @@ const SEED_DATA = {
|
|
|
11
11
|
description: "A draggable Bottom sheet that snaps to specific points. Renders children in ScrollView",
|
|
12
12
|
category: _types.COMPONENT_TYPES.bottomsheet,
|
|
13
13
|
stylesPanelSections: _types.CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
14
|
-
layout: {
|
|
15
|
-
paddingHorizontal: 16,
|
|
16
|
-
paddingVertical: 10,
|
|
17
|
-
flex: 1
|
|
18
|
-
},
|
|
19
14
|
triggers: [_types.Triggers.OnSettle],
|
|
20
15
|
props: {
|
|
21
16
|
onSettle: (0, _types.createActionProp)({
|
|
22
17
|
label: "On settle",
|
|
23
18
|
description: "Action to execute when sheet settles on a snap point"
|
|
24
19
|
}),
|
|
25
|
-
snapPoints: (0, _types.
|
|
20
|
+
snapPoints: (0, _types.createArrayProp)({
|
|
26
21
|
label: "Snap points",
|
|
27
22
|
description: "An array of numerical values (that represent distance from the top) where bottom sheet can snap to place. Accepts numbers and percentages (minimum 2 snap points)",
|
|
28
23
|
defaultValue: ["10%", "50%", "80%"]
|
|
@@ -35,7 +30,7 @@ const SEED_DATA = {
|
|
|
35
30
|
}),
|
|
36
31
|
showHandle: (0, _types.createStaticBoolProp)({
|
|
37
32
|
label: "Show handle",
|
|
38
|
-
description: "Whether to show the top handle or not",
|
|
33
|
+
description: "Whether to show the top sheet handle or not",
|
|
39
34
|
defaultValue: true
|
|
40
35
|
}),
|
|
41
36
|
handleColor: (0, _types.createColorProp)({
|
|
@@ -9,7 +9,7 @@ const SEED_DATA = {
|
|
|
9
9
|
name: "Map Callout",
|
|
10
10
|
tag: "MapCallout",
|
|
11
11
|
packageName: "@draftbit/maps",
|
|
12
|
-
stylesPanelSections: _types.
|
|
12
|
+
stylesPanelSections: [_types.StylesPanelSections.Size, _types.StylesPanelSections.Margins, _types.StylesPanelSections.Effects],
|
|
13
13
|
description: "An info window to display on top of a marker when it is clicked",
|
|
14
14
|
category: _types.COMPONENT_TYPES.map,
|
|
15
15
|
triggers: [_types.Triggers.OnPress],
|
|
@@ -11,7 +11,7 @@ const SEED_DATA = {
|
|
|
11
11
|
packageName: "@draftbit/maps",
|
|
12
12
|
description: "A marker to show inside map view",
|
|
13
13
|
category: _types.COMPONENT_TYPES.map,
|
|
14
|
-
stylesPanelSections: _types.
|
|
14
|
+
stylesPanelSections: [_types.StylesPanelSections.Size, _types.StylesPanelSections.Margins, _types.StylesPanelSections.Effects],
|
|
15
15
|
layout: {},
|
|
16
16
|
props: {
|
|
17
17
|
latitude: (0, _types.createNumberProp)({
|
|
@@ -4,7 +4,7 @@ export const SEED_DATA = {
|
|
|
4
4
|
tag: "ActionSheet",
|
|
5
5
|
description: "Action Sheet container",
|
|
6
6
|
category: COMPONENT_TYPES.actionsheet,
|
|
7
|
-
stylesPanelSections: [StylesPanelSections.
|
|
7
|
+
stylesPanelSections: [StylesPanelSections.Margins, StylesPanelSections.Effects],
|
|
8
8
|
props: {
|
|
9
9
|
visible: createStaticBoolProp({
|
|
10
10
|
group: GROUPS.data,
|
|
@@ -3,7 +3,7 @@ export const SEED_DATA = {
|
|
|
3
3
|
name: "Action Sheet Cancel",
|
|
4
4
|
tag: "ActionSheetCancel",
|
|
5
5
|
description: "Action Sheet cancel",
|
|
6
|
-
stylesPanelSections: [StylesPanelSections.
|
|
6
|
+
stylesPanelSections: [StylesPanelSections.Margins, StylesPanelSections.Effects],
|
|
7
7
|
category: COMPONENT_TYPES.actionsheet,
|
|
8
8
|
triggers: [Triggers.OnPress],
|
|
9
9
|
props: {
|
|
@@ -4,7 +4,7 @@ export const SEED_DATA = {
|
|
|
4
4
|
tag: "ActionSheetItem",
|
|
5
5
|
description: "Action Sheet item",
|
|
6
6
|
category: COMPONENT_TYPES.actionsheet,
|
|
7
|
-
stylesPanelSections: [StylesPanelSections.
|
|
7
|
+
stylesPanelSections: [StylesPanelSections.Margins, StylesPanelSections.Effects],
|
|
8
8
|
triggers: [Triggers.OnPress],
|
|
9
9
|
layout: {
|
|
10
10
|
textAlign: "center"
|
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createStaticBoolProp, CONTAINER_COMPONENT_STYLES_SECTIONS, Triggers, createActionProp, createColorProp,
|
|
1
|
+
import { COMPONENT_TYPES, createStaticBoolProp, CONTAINER_COMPONENT_STYLES_SECTIONS, Triggers, createActionProp, createColorProp, createStaticNumberProp, createArrayProp } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = {
|
|
3
3
|
name: "Bottom Sheet",
|
|
4
4
|
tag: "BottomSheet",
|
|
5
5
|
description: "A draggable Bottom sheet that snaps to specific points. Renders children in ScrollView",
|
|
6
6
|
category: COMPONENT_TYPES.bottomsheet,
|
|
7
7
|
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
8
|
-
layout: {
|
|
9
|
-
paddingHorizontal: 16,
|
|
10
|
-
paddingVertical: 10,
|
|
11
|
-
flex: 1
|
|
12
|
-
},
|
|
13
8
|
triggers: [Triggers.OnSettle],
|
|
14
9
|
props: {
|
|
15
10
|
onSettle: createActionProp({
|
|
16
11
|
label: "On settle",
|
|
17
12
|
description: "Action to execute when sheet settles on a snap point"
|
|
18
13
|
}),
|
|
19
|
-
snapPoints:
|
|
14
|
+
snapPoints: createArrayProp({
|
|
20
15
|
label: "Snap points",
|
|
21
16
|
description: "An array of numerical values (that represent distance from the top) where bottom sheet can snap to place. Accepts numbers and percentages (minimum 2 snap points)",
|
|
22
17
|
defaultValue: ["10%", "50%", "80%"]
|
|
@@ -29,7 +24,7 @@ export const SEED_DATA = {
|
|
|
29
24
|
}),
|
|
30
25
|
showHandle: createStaticBoolProp({
|
|
31
26
|
label: "Show handle",
|
|
32
|
-
description: "Whether to show the top handle or not",
|
|
27
|
+
description: "Whether to show the top sheet handle or not",
|
|
33
28
|
defaultValue: true
|
|
34
29
|
}),
|
|
35
30
|
handleColor: createColorProp({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createActionProp, createBoolProp, GROUPS, Triggers,
|
|
1
|
+
import { COMPONENT_TYPES, createActionProp, createBoolProp, GROUPS, Triggers, StylesPanelSections } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = {
|
|
3
3
|
name: "Map Callout",
|
|
4
4
|
tag: "MapCallout",
|
|
5
5
|
packageName: "@draftbit/maps",
|
|
6
|
-
stylesPanelSections:
|
|
6
|
+
stylesPanelSections: [StylesPanelSections.Size, StylesPanelSections.Margins, StylesPanelSections.Effects],
|
|
7
7
|
description: "An info window to display on top of a marker when it is clicked",
|
|
8
8
|
category: COMPONENT_TYPES.map,
|
|
9
9
|
triggers: [Triggers.OnPress],
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createBoolProp, createColorProp, createNumberProp, createTextProp, GROUPS,
|
|
1
|
+
import { COMPONENT_TYPES, createBoolProp, createColorProp, createNumberProp, createTextProp, GROUPS, StylesPanelSections } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = {
|
|
3
3
|
name: "Map Marker",
|
|
4
4
|
tag: "MapMarker",
|
|
5
5
|
packageName: "@draftbit/maps",
|
|
6
6
|
description: "A marker to show inside map view",
|
|
7
7
|
category: COMPONENT_TYPES.map,
|
|
8
|
-
stylesPanelSections:
|
|
8
|
+
stylesPanelSections: [StylesPanelSections.Size, StylesPanelSections.Margins, StylesPanelSections.Effects],
|
|
9
9
|
layout: {},
|
|
10
10
|
props: {
|
|
11
11
|
latitude: createNumberProp({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../../../../src/components/BottomSheet/BottomSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAGL,SAAS,EACT,SAAS,EACT,eAAe,EAChB,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAGvD,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,UAAU,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IACjC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,EAAE,KAAK,CAAC;CACd;;;;
|
|
1
|
+
{"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../../../../src/components/BottomSheet/BottomSheet.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAGL,SAAS,EACT,SAAS,EACT,eAAe,EAChB,MAAM,cAAc,CAAC;AAGtB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAGvD,MAAM,WAAW,gBAAiB,SAAQ,eAAe;IACvD,UAAU,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC;IACjC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,KAAK,EAAE,KAAK,CAAC;CACd;;;;AA+FD,wBAAsC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionSheet.d.ts","sourceRoot":"","sources":["../../../../src/mappings/ActionSheet.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ActionSheet.d.ts","sourceRoot":"","sources":["../../../../src/mappings/ActionSheet.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;CAerB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionSheetCancel.d.ts","sourceRoot":"","sources":["../../../../src/mappings/ActionSheetCancel.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ActionSheetCancel.d.ts","sourceRoot":"","sources":["../../../../src/mappings/ActionSheetCancel.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqBrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionSheetItem.d.ts","sourceRoot":"","sources":["../../../../src/mappings/ActionSheetItem.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ActionSheetItem.d.ts","sourceRoot":"","sources":["../../../../src/mappings/ActionSheetItem.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyBrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../../../src/mappings/BottomSheet.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"BottomSheet.d.ts","sourceRoot":"","sources":["../../../../src/mappings/BottomSheet.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiErB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MapCallout.d.ts","sourceRoot":"","sources":["../../../../src/mappings/MapCallout.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"MapCallout.d.ts","sourceRoot":"","sources":["../../../../src/mappings/MapCallout.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MapMarker.d.ts","sourceRoot":"","sources":["../../../../src/mappings/MapMarker.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"MapMarker.d.ts","sourceRoot":"","sources":["../../../../src/mappings/MapMarker.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDrB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@draftbit/core",
|
|
3
|
-
"version": "46.9.1-
|
|
3
|
+
"version": "46.9.1-b92e81.2+b92e81f",
|
|
4
4
|
"description": "Core (non-native) Components",
|
|
5
5
|
"main": "lib/commonjs/index.js",
|
|
6
6
|
"module": "lib/module/index.js",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@date-io/date-fns": "^1.3.13",
|
|
43
43
|
"@draftbit/react-theme-provider": "^2.1.1",
|
|
44
|
-
"@draftbit/types": "^46.9.1-
|
|
44
|
+
"@draftbit/types": "^46.9.1-b92e81.2+b92e81f",
|
|
45
45
|
"@material-ui/core": "^4.11.0",
|
|
46
46
|
"@material-ui/pickers": "^3.2.10",
|
|
47
47
|
"@react-native-community/slider": "4.2.3",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"lodash.omit": "^4.5.0",
|
|
55
55
|
"lodash.tonumber": "^4.0.3",
|
|
56
56
|
"react-native-deck-swiper": "^2.0.12",
|
|
57
|
-
"react-native-gesture-handler": "
|
|
57
|
+
"react-native-gesture-handler": "~2.5.0",
|
|
58
58
|
"react-native-markdown-display": "^7.0.0-alpha.2",
|
|
59
59
|
"react-native-modal-datetime-picker": "^13.0.0",
|
|
60
60
|
"react-native-pager-view": "5.4.24",
|
|
@@ -98,5 +98,5 @@
|
|
|
98
98
|
]
|
|
99
99
|
]
|
|
100
100
|
},
|
|
101
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "b92e81f9eb057310b70460d545cdec21b13682b2"
|
|
102
102
|
}
|
|
@@ -4,7 +4,10 @@ export const SEED_DATA = {
|
|
|
4
4
|
tag: "ActionSheet",
|
|
5
5
|
description: "Action Sheet container",
|
|
6
6
|
category: COMPONENT_TYPES.actionsheet,
|
|
7
|
-
stylesPanelSections: [
|
|
7
|
+
stylesPanelSections: [
|
|
8
|
+
StylesPanelSections.Margins,
|
|
9
|
+
StylesPanelSections.Effects,
|
|
10
|
+
],
|
|
8
11
|
props: {
|
|
9
12
|
visible: createStaticBoolProp({
|
|
10
13
|
group: GROUPS.data,
|
|
@@ -10,7 +10,10 @@ export const SEED_DATA = {
|
|
|
10
10
|
tag: "ActionSheet",
|
|
11
11
|
description: "Action Sheet container",
|
|
12
12
|
category: COMPONENT_TYPES.actionsheet,
|
|
13
|
-
stylesPanelSections: [
|
|
13
|
+
stylesPanelSections: [
|
|
14
|
+
StylesPanelSections.Margins,
|
|
15
|
+
StylesPanelSections.Effects,
|
|
16
|
+
],
|
|
14
17
|
props: {
|
|
15
18
|
visible: createStaticBoolProp({
|
|
16
19
|
group: GROUPS.data,
|
|
@@ -3,7 +3,10 @@ export const SEED_DATA = {
|
|
|
3
3
|
name: "Action Sheet Cancel",
|
|
4
4
|
tag: "ActionSheetCancel",
|
|
5
5
|
description: "Action Sheet cancel",
|
|
6
|
-
stylesPanelSections: [
|
|
6
|
+
stylesPanelSections: [
|
|
7
|
+
StylesPanelSections.Margins,
|
|
8
|
+
StylesPanelSections.Effects,
|
|
9
|
+
],
|
|
7
10
|
category: COMPONENT_TYPES.actionsheet,
|
|
8
11
|
triggers: [Triggers.OnPress],
|
|
9
12
|
props: {
|
|
@@ -12,7 +12,10 @@ export const SEED_DATA = {
|
|
|
12
12
|
name: "Action Sheet Cancel",
|
|
13
13
|
tag: "ActionSheetCancel",
|
|
14
14
|
description: "Action Sheet cancel",
|
|
15
|
-
stylesPanelSections: [
|
|
15
|
+
stylesPanelSections: [
|
|
16
|
+
StylesPanelSections.Margins,
|
|
17
|
+
StylesPanelSections.Effects,
|
|
18
|
+
],
|
|
16
19
|
category: COMPONENT_TYPES.actionsheet,
|
|
17
20
|
triggers: [Triggers.OnPress],
|
|
18
21
|
props: {
|
|
@@ -4,7 +4,10 @@ export const SEED_DATA = {
|
|
|
4
4
|
tag: "ActionSheetItem",
|
|
5
5
|
description: "Action Sheet item",
|
|
6
6
|
category: COMPONENT_TYPES.actionsheet,
|
|
7
|
-
stylesPanelSections: [
|
|
7
|
+
stylesPanelSections: [
|
|
8
|
+
StylesPanelSections.Margins,
|
|
9
|
+
StylesPanelSections.Effects,
|
|
10
|
+
],
|
|
8
11
|
triggers: [Triggers.OnPress],
|
|
9
12
|
layout: {
|
|
10
13
|
textAlign: "center",
|
|
@@ -13,7 +13,10 @@ export const SEED_DATA = {
|
|
|
13
13
|
tag: "ActionSheetItem",
|
|
14
14
|
description: "Action Sheet item",
|
|
15
15
|
category: COMPONENT_TYPES.actionsheet,
|
|
16
|
-
stylesPanelSections: [
|
|
16
|
+
stylesPanelSections: [
|
|
17
|
+
StylesPanelSections.Margins,
|
|
18
|
+
StylesPanelSections.Effects,
|
|
19
|
+
],
|
|
17
20
|
triggers: [Triggers.OnPress],
|
|
18
21
|
layout: {
|
|
19
22
|
textAlign: "center",
|
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createStaticBoolProp, CONTAINER_COMPONENT_STYLES_SECTIONS, Triggers, createActionProp, createColorProp,
|
|
1
|
+
import { COMPONENT_TYPES, createStaticBoolProp, CONTAINER_COMPONENT_STYLES_SECTIONS, Triggers, createActionProp, createColorProp, createStaticNumberProp, createArrayProp, } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = {
|
|
3
3
|
name: "Bottom Sheet",
|
|
4
4
|
tag: "BottomSheet",
|
|
5
5
|
description: "A draggable Bottom sheet that snaps to specific points. Renders children in ScrollView",
|
|
6
6
|
category: COMPONENT_TYPES.bottomsheet,
|
|
7
7
|
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
8
|
-
layout: { paddingHorizontal: 16, paddingVertical: 10, flex: 1 },
|
|
9
8
|
triggers: [Triggers.OnSettle],
|
|
10
9
|
props: {
|
|
11
10
|
onSettle: createActionProp({
|
|
12
11
|
label: "On settle",
|
|
13
12
|
description: "Action to execute when sheet settles on a snap point",
|
|
14
13
|
}),
|
|
15
|
-
snapPoints:
|
|
14
|
+
snapPoints: createArrayProp({
|
|
16
15
|
label: "Snap points",
|
|
17
16
|
description: "An array of numerical values (that represent distance from the top) where bottom sheet can snap to place. Accepts numbers and percentages (minimum 2 snap points)",
|
|
18
17
|
defaultValue: ["10%", "50%", "80%"],
|
|
@@ -25,7 +24,7 @@ export const SEED_DATA = {
|
|
|
25
24
|
}),
|
|
26
25
|
showHandle: createStaticBoolProp({
|
|
27
26
|
label: "Show handle",
|
|
28
|
-
description: "Whether to show the top handle or not",
|
|
27
|
+
description: "Whether to show the top sheet handle or not",
|
|
29
28
|
defaultValue: true,
|
|
30
29
|
}),
|
|
31
30
|
handleColor: createColorProp({
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
Triggers,
|
|
6
6
|
createActionProp,
|
|
7
7
|
createColorProp,
|
|
8
|
-
createStaticArrayProp,
|
|
9
8
|
createStaticNumberProp,
|
|
9
|
+
createArrayProp,
|
|
10
10
|
} from "@draftbit/types";
|
|
11
11
|
|
|
12
12
|
export const SEED_DATA = {
|
|
@@ -16,14 +16,13 @@ export const SEED_DATA = {
|
|
|
16
16
|
"A draggable Bottom sheet that snaps to specific points. Renders children in ScrollView",
|
|
17
17
|
category: COMPONENT_TYPES.bottomsheet,
|
|
18
18
|
stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
|
|
19
|
-
layout: { paddingHorizontal: 16, paddingVertical: 10, flex: 1 },
|
|
20
19
|
triggers: [Triggers.OnSettle],
|
|
21
20
|
props: {
|
|
22
21
|
onSettle: createActionProp({
|
|
23
22
|
label: "On settle",
|
|
24
23
|
description: "Action to execute when sheet settles on a snap point",
|
|
25
24
|
}),
|
|
26
|
-
snapPoints:
|
|
25
|
+
snapPoints: createArrayProp({
|
|
27
26
|
label: "Snap points",
|
|
28
27
|
description:
|
|
29
28
|
"An array of numerical values (that represent distance from the top) where bottom sheet can snap to place. Accepts numbers and percentages (minimum 2 snap points)",
|
|
@@ -37,7 +36,7 @@ export const SEED_DATA = {
|
|
|
37
36
|
}),
|
|
38
37
|
showHandle: createStaticBoolProp({
|
|
39
38
|
label: "Show handle",
|
|
40
|
-
description: "Whether to show the top handle or not",
|
|
39
|
+
description: "Whether to show the top sheet handle or not",
|
|
41
40
|
defaultValue: true,
|
|
42
41
|
}),
|
|
43
42
|
handleColor: createColorProp({
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createActionProp, createBoolProp, GROUPS, Triggers,
|
|
1
|
+
import { COMPONENT_TYPES, createActionProp, createBoolProp, GROUPS, Triggers, StylesPanelSections, } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = {
|
|
3
3
|
name: "Map Callout",
|
|
4
4
|
tag: "MapCallout",
|
|
5
5
|
packageName: "@draftbit/maps",
|
|
6
|
-
stylesPanelSections:
|
|
6
|
+
stylesPanelSections: [
|
|
7
|
+
StylesPanelSections.Size,
|
|
8
|
+
StylesPanelSections.Margins,
|
|
9
|
+
StylesPanelSections.Effects,
|
|
10
|
+
],
|
|
7
11
|
description: "An info window to display on top of a marker when it is clicked",
|
|
8
12
|
category: COMPONENT_TYPES.map,
|
|
9
13
|
triggers: [Triggers.OnPress],
|
|
@@ -4,14 +4,18 @@ import {
|
|
|
4
4
|
createBoolProp,
|
|
5
5
|
GROUPS,
|
|
6
6
|
Triggers,
|
|
7
|
-
|
|
7
|
+
StylesPanelSections,
|
|
8
8
|
} from "@draftbit/types";
|
|
9
9
|
|
|
10
10
|
export const SEED_DATA = {
|
|
11
11
|
name: "Map Callout",
|
|
12
12
|
tag: "MapCallout",
|
|
13
13
|
packageName: "@draftbit/maps",
|
|
14
|
-
stylesPanelSections:
|
|
14
|
+
stylesPanelSections: [
|
|
15
|
+
StylesPanelSections.Size,
|
|
16
|
+
StylesPanelSections.Margins,
|
|
17
|
+
StylesPanelSections.Effects,
|
|
18
|
+
],
|
|
15
19
|
description:
|
|
16
20
|
"An info window to display on top of a marker when it is clicked",
|
|
17
21
|
category: COMPONENT_TYPES.map,
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { COMPONENT_TYPES, createBoolProp, createColorProp, createNumberProp, createTextProp, GROUPS,
|
|
1
|
+
import { COMPONENT_TYPES, createBoolProp, createColorProp, createNumberProp, createTextProp, GROUPS, StylesPanelSections, } from "@draftbit/types";
|
|
2
2
|
export const SEED_DATA = {
|
|
3
3
|
name: "Map Marker",
|
|
4
4
|
tag: "MapMarker",
|
|
5
5
|
packageName: "@draftbit/maps",
|
|
6
6
|
description: "A marker to show inside map view",
|
|
7
7
|
category: COMPONENT_TYPES.map,
|
|
8
|
-
stylesPanelSections:
|
|
8
|
+
stylesPanelSections: [
|
|
9
|
+
StylesPanelSections.Size,
|
|
10
|
+
StylesPanelSections.Margins,
|
|
11
|
+
StylesPanelSections.Effects,
|
|
12
|
+
],
|
|
9
13
|
layout: {},
|
|
10
14
|
props: {
|
|
11
15
|
latitude: createNumberProp({
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
createNumberProp,
|
|
6
6
|
createTextProp,
|
|
7
7
|
GROUPS,
|
|
8
|
-
|
|
8
|
+
StylesPanelSections,
|
|
9
9
|
} from "@draftbit/types";
|
|
10
10
|
|
|
11
11
|
export const SEED_DATA = {
|
|
@@ -14,7 +14,11 @@ export const SEED_DATA = {
|
|
|
14
14
|
packageName: "@draftbit/maps",
|
|
15
15
|
description: "A marker to show inside map view",
|
|
16
16
|
category: COMPONENT_TYPES.map,
|
|
17
|
-
stylesPanelSections:
|
|
17
|
+
stylesPanelSections: [
|
|
18
|
+
StylesPanelSections.Size,
|
|
19
|
+
StylesPanelSections.Margins,
|
|
20
|
+
StylesPanelSections.Effects,
|
|
21
|
+
],
|
|
18
22
|
layout: {},
|
|
19
23
|
props: {
|
|
20
24
|
latitude: createNumberProp({
|