@draftbit/core 46.9.1-7dbeee.2 → 46.9.1-ab4303.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.
@@ -18,9 +18,7 @@ var _utilities = require("../../utilities");
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
19
  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); }
20
20
  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; }
21
- 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); }
22
21
  const Picker = _ref => {
23
- var _options$find$label, _options$find;
24
22
  let {
25
23
  Icon,
26
24
  style,
@@ -34,6 +32,7 @@ const Picker = _ref => {
34
32
  },
35
33
  ...props
36
34
  } = _ref;
35
+ var _a, _b;
37
36
  const {
38
37
  viewStyles: {
39
38
  borderRadius,
@@ -74,26 +73,24 @@ const Picker = _ref => {
74
73
  };
75
74
 
76
75
  const stylesWithoutMargin = style && (0, _lodash.default)(_reactNative.StyleSheet.flatten(style), ["margin", "marginTop", "marginRight", "marginBottom", "marginLeft"]);
77
- const selectedLabel = selectedValue && ((_options$find$label = (_options$find = options.find(o => o.value === selectedValue)) === null || _options$find === void 0 ? void 0 : _options$find.label) !== null && _options$find$label !== void 0 ? _options$find$label : selectedValue);
76
+ const selectedLabel = selectedValue && ((_b = (_a = options.find(o => o.value === selectedValue)) === null || _a === void 0 ? void 0 : _a.label) !== null && _b !== void 0 ? _b : selectedValue);
78
77
  return /*#__PURE__*/React.createElement(_reactNative.View, {
79
78
  style: [styles.container, viewStyles]
80
79
  }, /*#__PURE__*/React.createElement(_Touchable.default, {
81
80
  disabled: disabled,
82
81
  onPress: toggleVisibility
83
- }, /*#__PURE__*/React.createElement(_TextField.default, _extends({}, props, {
82
+ }, /*#__PURE__*/React.createElement(_TextField.default, {
83
+ ...props,
84
84
  value: String(selectedLabel),
85
- placeholder: placeholder
85
+ placeholder: placeholder,
86
86
  // @ts-ignore
87
- ,
88
- ref: textField // cannot determine if ref is of correct type due to component being wrapped in a withTheme()
89
- ,
87
+ ref: textField,
90
88
  disabled: disabled,
91
- pointerEvents: "none"
89
+ pointerEvents: "none",
92
90
  // @ts-expect-error
93
- ,
94
91
  style: stylesWithoutMargin,
95
92
  Icon: Icon
96
- }))), pickerVisible && /*#__PURE__*/React.createElement(_Portal.default, null, /*#__PURE__*/React.createElement(_reactNative.View, {
93
+ })), pickerVisible && /*#__PURE__*/React.createElement(_Portal.default, null, /*#__PURE__*/React.createElement(_reactNative.View, {
97
94
  style: [styles.picker, {
98
95
  backgroundColor: colors.divider
99
96
  }]
@@ -138,4 +135,32 @@ const styles = _reactNative.StyleSheet.create({
138
135
  }
139
136
  });
140
137
  var _default = (0, _theming.withTheme)(Picker);
138
+ exports.default = _default;ateElement(_picker.Picker.Item, {
139
+ label: o.label,
140
+ value: o.value,
141
+ key: o.value
142
+ })))))));
143
+ };
144
+ const styles = _reactNative.StyleSheet.create({
145
+ container: {
146
+ alignSelf: "stretch"
147
+ },
148
+ picker: {
149
+ position: "absolute",
150
+ bottom: 0,
151
+ left: 0,
152
+ right: 0,
153
+ flexDirection: "row",
154
+ justifyContent: "center"
155
+ },
156
+ pickerContainer: {
157
+ backgroundColor: "white",
158
+ flexDirection: "column",
159
+ width: "100%"
160
+ },
161
+ closeButton: {
162
+ alignSelf: "flex-end"
163
+ }
164
+ });
165
+ var _default = (0, _theming.withTheme)(Picker);
141
166
  exports.default = _default;
@@ -7,16 +7,31 @@ exports.default = void 0;
7
7
  var React = _interopRequireWildcard(require("react"));
8
8
  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); }
9
9
  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; }
10
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
11
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
12
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
13
10
  class PortalConsumer extends React.Component {
14
- constructor() {
15
- super(...arguments);
16
- _defineProperty(this, "key", void 0);
17
- }
18
11
  async componentDidMount() {
19
12
  this.checkManager();
13
+ // Delay updating to prevent React from going to infinite loop
14
+ await Promise.resolve();
15
+ this.key = this.props.manager.mount(this.props.children);
16
+ }
17
+ componentDidUpdate() {
18
+ this.checkManager();
19
+ this.props.manager.update(this.key, this.props.children);
20
+ }
21
+ componentWillUnmount() {
22
+ this.checkManager();
23
+ this.props.manager.unmount(this.key);
24
+ }
25
+ checkManager() {
26
+ if (!this.props.manager) {
27
+ throw new Error("Looks like you forgot to wrap your root component with `Provider` component from `react-native-paper`.\n\n" + "Please read our getting-started guide and make sure you've followed all the required steps.\n\n" + "https://callstack.github.io/react-native-paper/getting-started.html");
28
+ }
29
+ }
30
+ render() {
31
+ return null;
32
+ }
33
+ }
34
+ exports.default = PortalConsumer;s.checkManager();
20
35
 
21
36
  // Delay updating to prevent React from going to infinite loop
22
37
  await Promise.resolve();
@@ -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.Size, _types.StylesPanelSections.Margins],
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.Size, _types.StylesPanelSections.Margins],
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.Size, _types.StylesPanelSections.Margins],
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.CONTAINER_COMPONENT_STYLES_SECTIONS,
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.CONTAINER_COMPONENT_STYLES_SECTIONS,
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.Size, StylesPanelSections.Margins],
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.Size, StylesPanelSections.Margins],
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.Size, StylesPanelSections.Margins],
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, CONTAINER_COMPONENT_STYLES_SECTIONS } from "@draftbit/types";
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: CONTAINER_COMPONENT_STYLES_SECTIONS,
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, CONTAINER_COMPONENT_STYLES_SECTIONS } from "@draftbit/types";
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: CONTAINER_COMPONENT_STYLES_SECTIONS,
8
+ stylesPanelSections: [StylesPanelSections.Size, StylesPanelSections.Margins, StylesPanelSections.Effects],
9
9
  layout: {},
10
10
  props: {
11
11
  latitude: createNumberProp({
@@ -1 +1 @@
1
- {"version":3,"file":"ActionSheet.d.ts","sourceRoot":"","sources":["../../../../src/mappings/ActionSheet.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;CAYrB,CAAC"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkBrB,CAAC"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsBrB,CAAC"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsBrB,CAAC"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+CrB,CAAC"}
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-7dbeee.2+7dbeee3",
3
+ "version": "46.9.1-ab4303.2+ab43038",
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-7dbeee.2+7dbeee3",
44
+ "@draftbit/types": "^46.9.1-ab4303.2+ab43038",
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",
@@ -98,5 +98,5 @@
98
98
  ]
99
99
  ]
100
100
  },
101
- "gitHead": "7dbeee38aba0ee474e2e8d9358e90c520a083f95"
101
+ "gitHead": "ab43038ca687f1b182954048e44b76195e397fac"
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: [StylesPanelSections.Size, StylesPanelSections.Margins],
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: [StylesPanelSections.Size, StylesPanelSections.Margins],
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: [StylesPanelSections.Size, StylesPanelSections.Margins],
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: [StylesPanelSections.Size, StylesPanelSections.Margins],
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: [StylesPanelSections.Size, StylesPanelSections.Margins],
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: [StylesPanelSections.Size, StylesPanelSections.Margins],
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, CONTAINER_COMPONENT_STYLES_SECTIONS, } from "@draftbit/types";
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: CONTAINER_COMPONENT_STYLES_SECTIONS,
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
- CONTAINER_COMPONENT_STYLES_SECTIONS,
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: CONTAINER_COMPONENT_STYLES_SECTIONS,
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, CONTAINER_COMPONENT_STYLES_SECTIONS, } from "@draftbit/types";
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: CONTAINER_COMPONENT_STYLES_SECTIONS,
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
- CONTAINER_COMPONENT_STYLES_SECTIONS,
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: CONTAINER_COMPONENT_STYLES_SECTIONS,
17
+ stylesPanelSections: [
18
+ StylesPanelSections.Size,
19
+ StylesPanelSections.Margins,
20
+ StylesPanelSections.Effects,
21
+ ],
18
22
  layout: {},
19
23
  props: {
20
24
  latitude: createNumberProp({