@draftbit/core 46.9.1-e3cd31.2 → 46.9.1-fe76aa.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/CircleImage.js +1 -15
- package/lib/commonjs/components/DeprecatedFAB.js +21 -3
- package/lib/commonjs/index.js +0 -7
- 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/MapCallout.js +1 -1
- package/lib/commonjs/mappings/MapMarker.js +1 -1
- package/lib/module/components/FormRow.js +4 -4
- package/lib/module/index.js +0 -1
- 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/MapCallout.js +2 -2
- package/lib/module/mappings/MapMarker.js +2 -2
- package/lib/typescript/src/index.d.ts +0 -1
- package/lib/typescript/src/index.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/MapCallout.d.ts.map +1 -1
- package/lib/typescript/src/mappings/MapMarker.d.ts.map +1 -1
- package/package.json +3 -5
- package/src/index.js +0 -1
- package/src/index.tsx +0 -2
- 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/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
- package/lib/commonjs/components/BottomSheet/BottomSheet.js +0 -88
- package/lib/commonjs/components/BottomSheet/BottomSheetComponent.js +0 -464
- package/lib/commonjs/components/BottomSheet/index.js +0 -13
- package/lib/commonjs/mappings/BottomSheet.js +0 -74
- package/lib/module/components/BottomSheet/BottomSheet.js +0 -80
- package/lib/module/components/BottomSheet/BottomSheetComponent.js +0 -470
- package/lib/module/components/BottomSheet/index.js +0 -1
- package/lib/module/mappings/BottomSheet.js +0 -67
- package/lib/typescript/src/components/BottomSheet/BottomSheet.d.ts +0 -20
- package/lib/typescript/src/components/BottomSheet/BottomSheet.d.ts.map +0 -1
- package/lib/typescript/src/components/BottomSheet/BottomSheetComponent.d.ts +0 -170
- package/lib/typescript/src/components/BottomSheet/BottomSheetComponent.d.ts.map +0 -1
- package/lib/typescript/src/components/BottomSheet/index.d.ts +0 -2
- package/lib/typescript/src/components/BottomSheet/index.d.ts.map +0 -1
- package/lib/typescript/src/mappings/BottomSheet.d.ts +0 -119
- package/lib/typescript/src/mappings/BottomSheet.d.ts.map +0 -1
- package/src/components/BottomSheet/BottomSheet.js +0 -56
- package/src/components/BottomSheet/BottomSheet.tsx +0 -120
- package/src/components/BottomSheet/BottomSheetComponent.js +0 -437
- package/src/components/BottomSheet/BottomSheetComponent.tsx +0 -895
- package/src/components/BottomSheet/index.js +0 -1
- package/src/components/BottomSheet/index.ts +0 -1
- package/src/mappings/BottomSheet.js +0 -64
- package/src/mappings/BottomSheet.ts +0 -78
|
@@ -10,6 +10,7 @@ var _Config = _interopRequireDefault(require("./Config"));
|
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
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); }
|
|
12
12
|
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; }
|
|
13
|
+
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); }
|
|
13
14
|
const CircleImage = _ref => {
|
|
14
15
|
let {
|
|
15
16
|
source = _Config.default.placeholderImageURL,
|
|
@@ -18,21 +19,6 @@ const CircleImage = _ref => {
|
|
|
18
19
|
...props
|
|
19
20
|
} = _ref;
|
|
20
21
|
const borderRadius = size / 2;
|
|
21
|
-
return /*#__PURE__*/React.createElement(_reactNative.Image, {
|
|
22
|
-
style: [{
|
|
23
|
-
width: size,
|
|
24
|
-
height: size,
|
|
25
|
-
borderRadius
|
|
26
|
-
}, style],
|
|
27
|
-
source: typeof source === "string" ? {
|
|
28
|
-
uri: source
|
|
29
|
-
} : source,
|
|
30
|
-
resizeMode: "cover",
|
|
31
|
-
...props
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
var _default = CircleImage;
|
|
35
|
-
exports.default = _default;size / 2;
|
|
36
22
|
return /*#__PURE__*/React.createElement(_reactNative.Image, _extends({
|
|
37
23
|
style: [{
|
|
38
24
|
width: size,
|
|
@@ -14,7 +14,6 @@ var _theming = require("../theming");
|
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
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); }
|
|
16
16
|
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; }
|
|
17
|
-
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); }
|
|
18
17
|
const FAB = _ref => {
|
|
19
18
|
let {
|
|
20
19
|
Icon,
|
|
@@ -106,7 +105,8 @@ const FAB = _ref => {
|
|
|
106
105
|
style: [{
|
|
107
106
|
elevation
|
|
108
107
|
}, style]
|
|
109
|
-
}, /*#__PURE__*/React.createElement(_reactNative.Pressable,
|
|
108
|
+
}, /*#__PURE__*/React.createElement(_reactNative.Pressable, {
|
|
109
|
+
...rest,
|
|
110
110
|
onPress: onPress,
|
|
111
111
|
accessibilityState: {
|
|
112
112
|
disabled
|
|
@@ -114,7 +114,7 @@ const FAB = _ref => {
|
|
|
114
114
|
accessibilityRole: "button",
|
|
115
115
|
disabled: disabled || loading,
|
|
116
116
|
style: buttonStyles
|
|
117
|
-
}
|
|
117
|
+
}, /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
118
118
|
style: styles.content
|
|
119
119
|
}, icon && loading !== true ? /*#__PURE__*/React.createElement(_reactNative.View, {
|
|
120
120
|
style: iconStyle
|
|
@@ -154,4 +154,22 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
154
154
|
}
|
|
155
155
|
});
|
|
156
156
|
var _default = (0, _theming.withTheme)(FAB);
|
|
157
|
+
exports.default = _default;ow",
|
|
158
|
+
alignItems: "center",
|
|
159
|
+
justifyContent: "center"
|
|
160
|
+
},
|
|
161
|
+
icon: {
|
|
162
|
+
alignItems: "center",
|
|
163
|
+
justifyContent: "center",
|
|
164
|
+
width: _Config.default.buttonIconSize
|
|
165
|
+
},
|
|
166
|
+
fixed: {
|
|
167
|
+
left: 0,
|
|
168
|
+
right: 0,
|
|
169
|
+
bottom: 0,
|
|
170
|
+
height: 64,
|
|
171
|
+
borderRadius: 0
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
var _default = (0, _theming.withTheme)(FAB);
|
|
157
175
|
exports.default = _default;
|
package/lib/commonjs/index.js
CHANGED
|
@@ -51,12 +51,6 @@ Object.defineProperty(exports, "Banner", {
|
|
|
51
51
|
return _Banner.default;
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
|
-
Object.defineProperty(exports, "BottomSheet", {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function () {
|
|
57
|
-
return _BottomSheet.BottomSheet;
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
54
|
Object.defineProperty(exports, "Button", {
|
|
61
55
|
enumerable: true,
|
|
62
56
|
get: function () {
|
|
@@ -447,7 +441,6 @@ var _Shadow = _interopRequireDefault(require("./components/Shadow"));
|
|
|
447
441
|
var _DeckSwiper = require("./components/DeckSwiper");
|
|
448
442
|
var _TabView = require("./components/TabView");
|
|
449
443
|
var _Markdown = _interopRequireDefault(require("./components/Markdown"));
|
|
450
|
-
var _BottomSheet = require("./components/BottomSheet");
|
|
451
444
|
var _DatePicker = _interopRequireDefault(require("./components/DatePicker/DatePicker"));
|
|
452
445
|
var _Picker = _interopRequireDefault(require("./components/Picker/Picker"));
|
|
453
446
|
var _ProgressBar = _interopRequireDefault(require("./components/ProgressBar"));
|
|
@@ -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"
|
|
@@ -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)({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
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); }
|
|
1
2
|
import * as React from "react";
|
|
2
3
|
import { Text, StyleSheet } from "react-native";
|
|
3
4
|
import { extractStyles } from "../utilities";
|
|
@@ -16,14 +17,13 @@ export default function FormRow(_ref) {
|
|
|
16
17
|
textStyles,
|
|
17
18
|
viewStyles
|
|
18
19
|
} = extractStyles(style);
|
|
19
|
-
return /*#__PURE__*/React.createElement(Touchable, {
|
|
20
|
+
return /*#__PURE__*/React.createElement(Touchable, _extends({
|
|
20
21
|
disabled: disabled,
|
|
21
22
|
onPress: onPress,
|
|
22
23
|
style: [styles.row, {
|
|
23
24
|
flexDirection: direction
|
|
24
|
-
}, viewStyles]
|
|
25
|
-
|
|
26
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
25
|
+
}, viewStyles]
|
|
26
|
+
}, rest), /*#__PURE__*/React.createElement(Text, {
|
|
27
27
|
style: textStyles
|
|
28
28
|
}, label), children);
|
|
29
29
|
}
|
package/lib/module/index.js
CHANGED
|
@@ -35,7 +35,6 @@ export { default as Shadow } from "./components/Shadow";
|
|
|
35
35
|
export { DeckSwiper, DeckSwiperCard } from "./components/DeckSwiper";
|
|
36
36
|
export { TabView, TabViewItem } from "./components/TabView";
|
|
37
37
|
export { default as Markdown } from "./components/Markdown";
|
|
38
|
-
export { BottomSheet } from "./components/BottomSheet";
|
|
39
38
|
|
|
40
39
|
/* Deprecated: Fix or Delete! */
|
|
41
40
|
export { default as DatePicker } from "./components/DatePicker/DatePicker";
|
|
@@ -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,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({
|
|
@@ -35,7 +35,6 @@ export { default as Shadow } from "./components/Shadow";
|
|
|
35
35
|
export { DeckSwiper, DeckSwiperCard } from "./components/DeckSwiper";
|
|
36
36
|
export { TabView, TabViewItem } from "./components/TabView";
|
|
37
37
|
export { default as Markdown } from "./components/Markdown";
|
|
38
|
-
export { BottomSheet } from "./components/BottomSheet";
|
|
39
38
|
export { default as DatePicker } from "./components/DatePicker/DatePicker";
|
|
40
39
|
export { default as Picker } from "./components/Picker/Picker";
|
|
41
40
|
export { default as ProgressBar } from "./components/ProgressBar";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAEhE,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,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BAAgB,EAChB,cAAc,EACd,qBAAqB,GACtB,MAAM,gCAAgC,CAAC;AAExC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAExD,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,uBAAuB,EAAE,MAAM,sCAAsC,CAAC;AAC1F,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACpF,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC"}
|
|
@@ -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":"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-fe76aa.2+fe76aa6",
|
|
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-fe76aa.2+fe76aa6",
|
|
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,11 +54,9 @@
|
|
|
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": "^2.9.0",
|
|
58
57
|
"react-native-markdown-display": "^7.0.0-alpha.2",
|
|
59
58
|
"react-native-modal-datetime-picker": "^13.0.0",
|
|
60
59
|
"react-native-pager-view": "5.4.24",
|
|
61
|
-
"react-native-reanimated": "^2.14.4",
|
|
62
60
|
"react-native-shadow-2": "^7.0.6",
|
|
63
61
|
"react-native-svg": "12.3.0",
|
|
64
62
|
"react-native-tab-view": "^3.4.0",
|
|
@@ -98,5 +96,5 @@
|
|
|
98
96
|
]
|
|
99
97
|
]
|
|
100
98
|
},
|
|
101
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "fe76aa6b6bfe2846c8e6487388d22333541a1faf"
|
|
102
100
|
}
|
package/src/index.js
CHANGED
|
@@ -35,7 +35,6 @@ export { default as Shadow } from "./components/Shadow";
|
|
|
35
35
|
export { DeckSwiper, DeckSwiperCard } from "./components/DeckSwiper";
|
|
36
36
|
export { TabView, TabViewItem } from "./components/TabView";
|
|
37
37
|
export { default as Markdown } from "./components/Markdown";
|
|
38
|
-
export { BottomSheet } from "./components/BottomSheet";
|
|
39
38
|
/* Deprecated: Fix or Delete! */
|
|
40
39
|
export { default as DatePicker } from "./components/DatePicker/DatePicker";
|
|
41
40
|
export { default as Picker } from "./components/Picker/Picker";
|
package/src/index.tsx
CHANGED
|
@@ -58,8 +58,6 @@ export { DeckSwiper, DeckSwiperCard } from "./components/DeckSwiper";
|
|
|
58
58
|
export { TabView, TabViewItem } from "./components/TabView";
|
|
59
59
|
export { default as Markdown } from "./components/Markdown";
|
|
60
60
|
|
|
61
|
-
export { BottomSheet } from "./components/BottomSheet";
|
|
62
|
-
|
|
63
61
|
/* Deprecated: Fix or Delete! */
|
|
64
62
|
export { default as DatePicker } from "./components/DatePicker/DatePicker";
|
|
65
63
|
export { default as Picker } from "./components/Picker/Picker";
|
|
@@ -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,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({
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _BottomSheetComponent = _interopRequireDefault(require("./BottomSheetComponent"));
|
|
10
|
-
var _theming = require("../../theming");
|
|
11
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
|
-
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); }
|
|
13
|
-
const BottomSheet = _ref => {
|
|
14
|
-
let {
|
|
15
|
-
theme,
|
|
16
|
-
snapPoints = ["10%", "50%", "80%"],
|
|
17
|
-
initialSnapIndex = 0,
|
|
18
|
-
showHandle = true,
|
|
19
|
-
handleColor = theme.colors.divider,
|
|
20
|
-
topBorderRadius = 20,
|
|
21
|
-
borderWidth = 1,
|
|
22
|
-
borderColor = theme.colors.divider,
|
|
23
|
-
onSettle,
|
|
24
|
-
style,
|
|
25
|
-
children,
|
|
26
|
-
...rest
|
|
27
|
-
} = _ref;
|
|
28
|
-
const backgroundColor = (style === null || style === void 0 ? void 0 : style.backgroundColor) || theme.colors.background;
|
|
29
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
30
|
-
style: styles.parentContainer,
|
|
31
|
-
pointerEvents: "box-none"
|
|
32
|
-
}, /*#__PURE__*/_react.default.createElement(_BottomSheetComponent.default, _extends({
|
|
33
|
-
componentType: "ScrollView",
|
|
34
|
-
snapPoints: snapPoints,
|
|
35
|
-
initialSnapIndex: initialSnapIndex,
|
|
36
|
-
renderHandle: () => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, showHandle && /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
37
|
-
style: [styles.handleContainer, {
|
|
38
|
-
backgroundColor,
|
|
39
|
-
borderTopLeftRadius: topBorderRadius,
|
|
40
|
-
borderTopRightRadius: topBorderRadius
|
|
41
|
-
}]
|
|
42
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
43
|
-
style: [styles.handle, {
|
|
44
|
-
backgroundColor: handleColor
|
|
45
|
-
}]
|
|
46
|
-
}))),
|
|
47
|
-
contentContainerStyle: [styles.contentContainerStyle, style],
|
|
48
|
-
containerStyle: _reactNative.StyleSheet.flatten([styles.containerStyle, {
|
|
49
|
-
backgroundColor,
|
|
50
|
-
borderTopLeftRadius: topBorderRadius,
|
|
51
|
-
borderTopRightRadius: topBorderRadius,
|
|
52
|
-
borderWidth,
|
|
53
|
-
borderColor
|
|
54
|
-
}]),
|
|
55
|
-
onSettle: onSettle
|
|
56
|
-
}, rest), children));
|
|
57
|
-
};
|
|
58
|
-
const styles = _reactNative.StyleSheet.create({
|
|
59
|
-
//Render on top of everything
|
|
60
|
-
parentContainer: {
|
|
61
|
-
position: "absolute",
|
|
62
|
-
left: 0,
|
|
63
|
-
right: 0,
|
|
64
|
-
top: 0,
|
|
65
|
-
bottom: 0,
|
|
66
|
-
zIndex: 10,
|
|
67
|
-
overflow: "hidden"
|
|
68
|
-
},
|
|
69
|
-
contentContainerStyle: {
|
|
70
|
-
paddingHorizontal: 16,
|
|
71
|
-
paddingVertical: 10
|
|
72
|
-
},
|
|
73
|
-
containerStyle: {
|
|
74
|
-
flex: 1,
|
|
75
|
-
overflow: "hidden"
|
|
76
|
-
},
|
|
77
|
-
handleContainer: {
|
|
78
|
-
alignItems: "center",
|
|
79
|
-
paddingVertical: 20
|
|
80
|
-
},
|
|
81
|
-
handle: {
|
|
82
|
-
width: 40,
|
|
83
|
-
height: 2,
|
|
84
|
-
borderRadius: 4
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
var _default = (0, _theming.withTheme)(BottomSheet);
|
|
88
|
-
exports.default = _default;
|