@draftbit/core 46.8.1-d78af9.2 → 46.8.1-da12fb.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.
Files changed (88) hide show
  1. package/lib/commonjs/components/DeckSwiper/DeckSwiper.js +1 -1
  2. package/lib/commonjs/components/ScreenContainer.js +2 -1
  3. package/lib/commonjs/mappings/Accordion.js +1 -0
  4. package/lib/commonjs/mappings/AccordionItem.js +1 -0
  5. package/lib/commonjs/mappings/ActionSheet.js +1 -0
  6. package/lib/commonjs/mappings/ActionSheetCancel.js +1 -0
  7. package/lib/commonjs/mappings/ActionSheetItem.js +1 -0
  8. package/lib/commonjs/mappings/LinearGradient.js +1 -0
  9. package/lib/commonjs/mappings/MapCallout.js +1 -0
  10. package/lib/commonjs/mappings/MapMarker.js +1 -0
  11. package/lib/commonjs/mappings/MapView.js +1 -0
  12. package/lib/commonjs/mappings/Swiper.js +1 -0
  13. package/lib/commonjs/mappings/SwiperItem.js +2 -1
  14. package/lib/commonjs/mappings/TextArea.js +1 -0
  15. package/lib/commonjs/mappings/TextField.js +1 -0
  16. package/lib/module/components/DeckSwiper/DeckSwiper.js +1 -1
  17. package/lib/module/components/ScreenContainer.js +2 -1
  18. package/lib/module/mappings/Accordion.js +2 -1
  19. package/lib/module/mappings/AccordionItem.js +2 -1
  20. package/lib/module/mappings/ActionSheet.js +2 -1
  21. package/lib/module/mappings/ActionSheetCancel.js +2 -1
  22. package/lib/module/mappings/ActionSheetItem.js +2 -1
  23. package/lib/module/mappings/LinearGradient.js +2 -1
  24. package/lib/module/mappings/MapCallout.js +2 -1
  25. package/lib/module/mappings/MapMarker.js +2 -1
  26. package/lib/module/mappings/MapView.js +2 -1
  27. package/lib/module/mappings/Swiper.js +2 -1
  28. package/lib/module/mappings/SwiperItem.js +3 -2
  29. package/lib/module/mappings/TextArea.js +2 -1
  30. package/lib/module/mappings/TextField.js +1 -0
  31. package/lib/typescript/src/components/ScreenContainer.d.ts.map +1 -1
  32. package/lib/typescript/src/mappings/Accordion.d.ts +1 -0
  33. package/lib/typescript/src/mappings/Accordion.d.ts.map +1 -1
  34. package/lib/typescript/src/mappings/AccordionItem.d.ts +1 -0
  35. package/lib/typescript/src/mappings/AccordionItem.d.ts.map +1 -1
  36. package/lib/typescript/src/mappings/ActionSheet.d.ts +1 -0
  37. package/lib/typescript/src/mappings/ActionSheet.d.ts.map +1 -1
  38. package/lib/typescript/src/mappings/ActionSheetCancel.d.ts +1 -0
  39. package/lib/typescript/src/mappings/ActionSheetCancel.d.ts.map +1 -1
  40. package/lib/typescript/src/mappings/ActionSheetItem.d.ts +1 -0
  41. package/lib/typescript/src/mappings/ActionSheetItem.d.ts.map +1 -1
  42. package/lib/typescript/src/mappings/LinearGradient.d.ts +1 -0
  43. package/lib/typescript/src/mappings/LinearGradient.d.ts.map +1 -1
  44. package/lib/typescript/src/mappings/MapCallout.d.ts +1 -0
  45. package/lib/typescript/src/mappings/MapCallout.d.ts.map +1 -1
  46. package/lib/typescript/src/mappings/MapMarker.d.ts +1 -0
  47. package/lib/typescript/src/mappings/MapMarker.d.ts.map +1 -1
  48. package/lib/typescript/src/mappings/MapView.d.ts +1 -0
  49. package/lib/typescript/src/mappings/MapView.d.ts.map +1 -1
  50. package/lib/typescript/src/mappings/Swiper.d.ts +1 -0
  51. package/lib/typescript/src/mappings/Swiper.d.ts.map +1 -1
  52. package/lib/typescript/src/mappings/SwiperItem.d.ts +1 -0
  53. package/lib/typescript/src/mappings/SwiperItem.d.ts.map +1 -1
  54. package/lib/typescript/src/mappings/TextArea.d.ts +1 -0
  55. package/lib/typescript/src/mappings/TextArea.d.ts.map +1 -1
  56. package/lib/typescript/src/mappings/TextField.d.ts +1 -1
  57. package/lib/typescript/src/mappings/TextField.d.ts.map +1 -1
  58. package/package.json +3 -3
  59. package/src/components/DeckSwiper/DeckSwiper.js +1 -1
  60. package/src/components/DeckSwiper/DeckSwiper.tsx +1 -1
  61. package/src/components/ScreenContainer.js +2 -1
  62. package/src/components/ScreenContainer.tsx +2 -1
  63. package/src/mappings/Accordion.js +10 -1
  64. package/src/mappings/Accordion.ts +10 -0
  65. package/src/mappings/AccordionItem.js +2 -1
  66. package/src/mappings/AccordionItem.ts +2 -0
  67. package/src/mappings/ActionSheet.js +2 -1
  68. package/src/mappings/ActionSheet.ts +7 -1
  69. package/src/mappings/ActionSheetCancel.js +2 -1
  70. package/src/mappings/ActionSheetCancel.ts +2 -0
  71. package/src/mappings/ActionSheetItem.js +2 -1
  72. package/src/mappings/ActionSheetItem.ts +2 -0
  73. package/src/mappings/LinearGradient.js +6 -1
  74. package/src/mappings/LinearGradient.ts +6 -0
  75. package/src/mappings/MapCallout.js +2 -1
  76. package/src/mappings/MapCallout.ts +2 -0
  77. package/src/mappings/MapMarker.js +2 -1
  78. package/src/mappings/MapMarker.ts +2 -0
  79. package/src/mappings/MapView.js +2 -1
  80. package/src/mappings/MapView.ts +2 -0
  81. package/src/mappings/Swiper.js +10 -1
  82. package/src/mappings/Swiper.ts +10 -0
  83. package/src/mappings/SwiperItem.js +2 -1
  84. package/src/mappings/SwiperItem.ts +5 -1
  85. package/src/mappings/TextArea.js +10 -1
  86. package/src/mappings/TextArea.ts +10 -0
  87. package/src/mappings/TextField.js +9 -0
  88. package/src/mappings/TextField.ts +9 -0
@@ -55,7 +55,7 @@ const DeckSwiper = _ref => {
55
55
  if (keyExtractor) {
56
56
  return keyExtractor(card);
57
57
  } else {
58
- return card.toString();
58
+ return card === null || card === void 0 ? void 0 : card.toString();
59
59
  }
60
60
  };
61
61
 
@@ -12,6 +12,7 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
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
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); }
14
14
  function ScreenContainer(_ref) {
15
+ var _StyleSheet$flatten;
15
16
  let {
16
17
  scrollable = false,
17
18
  hasSafeArea = false,
@@ -22,7 +23,7 @@ function ScreenContainer(_ref) {
22
23
  children,
23
24
  ...rest
24
25
  } = _ref;
25
- const backgroundColor = theme.colors.background;
26
+ const backgroundColor = ((_StyleSheet$flatten = _reactNative.StyleSheet.flatten(style)) === null || _StyleSheet$flatten === void 0 ? void 0 : _StyleSheet$flatten.backgroundColor) || theme.colors.background;
26
27
  const edges = ["left", "right"];
27
28
  if (hasSafeArea || hasTopSafeArea) {
28
29
  edges.push("top");
@@ -10,6 +10,7 @@ const SEED_DATA = {
10
10
  tag: "AccordionGroup",
11
11
  description: "An expandable container containing components",
12
12
  category: _types.COMPONENT_TYPES.container,
13
+ stylesPanelSections: [_types.StylesPanelSections.LayoutSelectedItem, _types.StylesPanelSections.Background, _types.StylesPanelSections.Size, _types.StylesPanelSections.MarginsAndPaddings, _types.StylesPanelSections.Position, _types.StylesPanelSections.Borders, _types.StylesPanelSections.Effects],
13
14
  layout: {
14
15
  paddingTop: 8,
15
16
  paddingRight: 8,
@@ -10,6 +10,7 @@ const SEED_DATA = {
10
10
  tag: "AccordionItem",
11
11
  description: "Item to be used in Accordion",
12
12
  category: _types.COMPONENT_TYPES.deprecated,
13
+ stylesPanelSections: _types.CONTAINER_COMPONENT_STYLES_SECTIONS,
13
14
  props: {
14
15
  icon: (0, _types.createIconProp)(),
15
16
  label: (0, _types.createTextProp)({
@@ -10,6 +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
14
  props: {
14
15
  visible: (0, _types.createStaticBoolProp)({
15
16
  group: _types.GROUPS.data,
@@ -9,6 +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
13
  category: _types.COMPONENT_TYPES.actionsheet,
13
14
  triggers: [_types.Triggers.OnPress],
14
15
  props: {
@@ -10,6 +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
14
  triggers: [_types.Triggers.OnPress],
14
15
  layout: {
15
16
  textAlign: "center"
@@ -13,6 +13,7 @@ const SEED_DATA = {
13
13
  width: "100%",
14
14
  height: "100%"
15
15
  },
16
+ stylesPanelSections: [_types.StylesPanelSections.MarginsAndPaddings, _types.StylesPanelSections.Borders, _types.StylesPanelSections.Effects],
16
17
  props: {
17
18
  endY: {
18
19
  group: _types.GROUPS.basic,
@@ -9,6 +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
13
  description: "An info window to display on top of a marker when it is clicked",
13
14
  category: _types.COMPONENT_TYPES.map,
14
15
  triggers: [_types.Triggers.OnPress],
@@ -11,6 +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
15
  layout: {},
15
16
  props: {
16
17
  latitude: (0, _types.createNumberProp)({
@@ -11,6 +11,7 @@ const SEED_DATA = {
11
11
  packageName: "@draftbit/maps",
12
12
  description: "A map view",
13
13
  category: _types.COMPONENT_TYPES.map,
14
+ stylesPanelSections: [_types.StylesPanelSections.Size, _types.StylesPanelSections.Margins],
14
15
  layout: {
15
16
  flex: 1,
16
17
  width: "100%",
@@ -10,6 +10,7 @@ const SEED_DATA = {
10
10
  tag: "Swiper",
11
11
  description: "Swiper container",
12
12
  category: _types.COMPONENT_TYPES.swiper,
13
+ stylesPanelSections: [_types.StylesPanelSections.LayoutSelectedItem, _types.StylesPanelSections.Background, _types.StylesPanelSections.Size, _types.StylesPanelSections.MarginsAndPaddings, _types.StylesPanelSections.Position, _types.StylesPanelSections.Borders, _types.StylesPanelSections.Effects],
13
14
  layout: {
14
15
  height: 300,
15
16
  width: "100%"
@@ -10,6 +10,7 @@ const SEED_DATA = {
10
10
  tag: "SwiperItem",
11
11
  description: "Swiper item",
12
12
  category: _types.COMPONENT_TYPES.swiper,
13
- props: {}
13
+ props: {},
14
+ stylesPanelSections: _types.CONTAINER_COMPONENT_STYLES_SECTIONS
14
15
  };
15
16
  exports.SEED_DATA = SEED_DATA;
@@ -10,6 +10,7 @@ const SEED_DATA = {
10
10
  tag: "TextInput",
11
11
  description: "An input field that allows for multiple lines.",
12
12
  category: _types.COMPONENT_TYPES.input,
13
+ stylesPanelSections: [_types.StylesPanelSections.Typography, _types.StylesPanelSections.Background, _types.StylesPanelSections.Size, _types.StylesPanelSections.MarginsAndPaddings, _types.StylesPanelSections.Position, _types.StylesPanelSections.Borders, _types.StylesPanelSections.Effects],
13
14
  layout: {
14
15
  borderLeftWidth: 1,
15
16
  borderRightWidth: 1,
@@ -279,6 +279,7 @@ const SEED_DATA = [{
279
279
  preview_image_url: "{CLOUDINARY_URL}/Textfield.png",
280
280
  supports_list_render: false,
281
281
  triggers: SEED_DATA_TRIGGERS,
282
+ stylesPanelSections: [_types.StylesPanelSections.Typography, _types.StylesPanelSections.Background, _types.StylesPanelSections.Size, _types.StylesPanelSections.MarginsAndPaddings, _types.StylesPanelSections.Position, _types.StylesPanelSections.Borders, _types.StylesPanelSections.Effects],
282
283
  props: {
283
284
  ...SEED_DATA_PROPS,
284
285
  type: {
@@ -48,7 +48,7 @@ const DeckSwiper = _ref => {
48
48
  if (keyExtractor) {
49
49
  return keyExtractor(card);
50
50
  } else {
51
- return card.toString();
51
+ return card === null || card === void 0 ? void 0 : card.toString();
52
52
  }
53
53
  };
54
54
 
@@ -4,6 +4,7 @@ import { StyleSheet, ScrollView, View } from "react-native";
4
4
  import { SafeAreaView } from "react-native-safe-area-context";
5
5
  import { withTheme } from "../theming";
6
6
  function ScreenContainer(_ref) {
7
+ var _StyleSheet$flatten;
7
8
  let {
8
9
  scrollable = false,
9
10
  hasSafeArea = false,
@@ -14,7 +15,7 @@ function ScreenContainer(_ref) {
14
15
  children,
15
16
  ...rest
16
17
  } = _ref;
17
- const backgroundColor = theme.colors.background;
18
+ const backgroundColor = ((_StyleSheet$flatten = StyleSheet.flatten(style)) === null || _StyleSheet$flatten === void 0 ? void 0 : _StyleSheet$flatten.backgroundColor) || theme.colors.background;
18
19
  const edges = ["left", "right"];
19
20
  if (hasSafeArea || hasTopSafeArea) {
20
21
  edges.push("top");
@@ -1,9 +1,10 @@
1
- import { COMPONENT_TYPES, createNumberProp, createIconProp, createTextProp, createStaticBoolProp, createColorProp } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createNumberProp, createIconProp, createTextProp, createStaticBoolProp, createColorProp, StylesPanelSections } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Accordion",
4
4
  tag: "AccordionGroup",
5
5
  description: "An expandable container containing components",
6
6
  category: COMPONENT_TYPES.container,
7
+ stylesPanelSections: [StylesPanelSections.LayoutSelectedItem, StylesPanelSections.Background, StylesPanelSections.Size, StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Position, StylesPanelSections.Borders, StylesPanelSections.Effects],
7
8
  layout: {
8
9
  paddingTop: 8,
9
10
  paddingRight: 8,
@@ -1,9 +1,10 @@
1
- import { COMPONENT_TYPES, createIconProp, createTextProp, createColorProp } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createIconProp, createTextProp, createColorProp, CONTAINER_COMPONENT_STYLES_SECTIONS } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Accordion Item",
4
4
  tag: "AccordionItem",
5
5
  description: "Item to be used in Accordion",
6
6
  category: COMPONENT_TYPES.deprecated,
7
+ stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
7
8
  props: {
8
9
  icon: createIconProp(),
9
10
  label: createTextProp({
@@ -1,9 +1,10 @@
1
- import { COMPONENT_TYPES, createStaticBoolProp, GROUPS } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createStaticBoolProp, GROUPS, StylesPanelSections } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Action Sheet",
4
4
  tag: "ActionSheet",
5
5
  description: "Action Sheet container",
6
6
  category: COMPONENT_TYPES.actionsheet,
7
+ stylesPanelSections: [StylesPanelSections.Size, StylesPanelSections.Margins],
7
8
  props: {
8
9
  visible: createStaticBoolProp({
9
10
  group: GROUPS.data,
@@ -1,8 +1,9 @@
1
- import { COMPONENT_TYPES, createActionProp, createColorProp, createTextProp, GROUPS, Triggers } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createActionProp, createColorProp, createTextProp, GROUPS, Triggers, StylesPanelSections } from "@draftbit/types";
2
2
  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
7
  category: COMPONENT_TYPES.actionsheet,
7
8
  triggers: [Triggers.OnPress],
8
9
  props: {
@@ -1,9 +1,10 @@
1
- import { COMPONENT_TYPES, createActionProp, createColorProp, createTextProp, GROUPS, Triggers } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createActionProp, createColorProp, createTextProp, GROUPS, Triggers, StylesPanelSections } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Action Sheet Item",
4
4
  tag: "ActionSheetItem",
5
5
  description: "Action Sheet item",
6
6
  category: COMPONENT_TYPES.actionsheet,
7
+ stylesPanelSections: [StylesPanelSections.Size, StylesPanelSections.Margins],
7
8
  triggers: [Triggers.OnPress],
8
9
  layout: {
9
10
  textAlign: "center"
@@ -1,4 +1,4 @@
1
- import { createColorProp, FORM_TYPES, GROUPS, PROP_TYPES } from "@draftbit/types";
1
+ import { createColorProp, FORM_TYPES, GROUPS, PROP_TYPES, StylesPanelSections } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Linear Gradient",
4
4
  tag: "LinearGradient",
@@ -7,6 +7,7 @@ export const SEED_DATA = {
7
7
  width: "100%",
8
8
  height: "100%"
9
9
  },
10
+ stylesPanelSections: [StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Borders, StylesPanelSections.Effects],
10
11
  props: {
11
12
  endY: {
12
13
  group: GROUPS.basic,
@@ -1,8 +1,9 @@
1
- import { COMPONENT_TYPES, createActionProp, createBoolProp, GROUPS, Triggers } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createActionProp, createBoolProp, GROUPS, Triggers, CONTAINER_COMPONENT_STYLES_SECTIONS } 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
7
  description: "An info window to display on top of a marker when it is clicked",
7
8
  category: COMPONENT_TYPES.map,
8
9
  triggers: [Triggers.OnPress],
@@ -1,10 +1,11 @@
1
- import { COMPONENT_TYPES, createBoolProp, createColorProp, createNumberProp, createTextProp, GROUPS } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createBoolProp, createColorProp, createNumberProp, createTextProp, GROUPS, CONTAINER_COMPONENT_STYLES_SECTIONS } 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
9
  layout: {},
9
10
  props: {
10
11
  latitude: createNumberProp({
@@ -1,10 +1,11 @@
1
- import { COMPONENT_TYPES, createBoolProp, createColorProp, createNumberProp, createTextProp, GROUPS, FORM_TYPES, PROP_TYPES } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createBoolProp, createColorProp, createNumberProp, createTextProp, GROUPS, FORM_TYPES, PROP_TYPES, StylesPanelSections } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Map View",
4
4
  tag: "MapView",
5
5
  packageName: "@draftbit/maps",
6
6
  description: "A map view",
7
7
  category: COMPONENT_TYPES.map,
8
+ stylesPanelSections: [StylesPanelSections.Size, StylesPanelSections.Margins],
8
9
  layout: {
9
10
  flex: 1,
10
11
  width: "100%",
@@ -1,9 +1,10 @@
1
- import { COMPONENT_TYPES, createBoolProp, createNumberProp, createTextProp, createColorProp, GROUPS, Triggers, createActionProp } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createBoolProp, createNumberProp, createTextProp, createColorProp, GROUPS, Triggers, createActionProp, StylesPanelSections } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Swiper",
4
4
  tag: "Swiper",
5
5
  description: "Swiper container",
6
6
  category: COMPONENT_TYPES.swiper,
7
+ stylesPanelSections: [StylesPanelSections.LayoutSelectedItem, StylesPanelSections.Background, StylesPanelSections.Size, StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Position, StylesPanelSections.Borders, StylesPanelSections.Effects],
7
8
  layout: {
8
9
  height: 300,
9
10
  width: "100%"
@@ -1,8 +1,9 @@
1
- import { COMPONENT_TYPES } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, CONTAINER_COMPONENT_STYLES_SECTIONS } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Swiper Item",
4
4
  tag: "SwiperItem",
5
5
  description: "Swiper item",
6
6
  category: COMPONENT_TYPES.swiper,
7
- props: {}
7
+ props: {},
8
+ stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS
8
9
  };
@@ -1,9 +1,10 @@
1
- import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, FIELD_NAME, Triggers, createDisabledProp } from "@draftbit/types";
1
+ import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, FIELD_NAME, Triggers, createDisabledProp, StylesPanelSections } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Text Area",
4
4
  tag: "TextInput",
5
5
  description: "An input field that allows for multiple lines.",
6
6
  category: COMPONENT_TYPES.input,
7
+ stylesPanelSections: [StylesPanelSections.Typography, StylesPanelSections.Background, StylesPanelSections.Size, StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Position, StylesPanelSections.Borders, StylesPanelSections.Effects],
7
8
  layout: {
8
9
  borderLeftWidth: 1,
9
10
  borderRightWidth: 1,
@@ -273,6 +273,7 @@ export const SEED_DATA = [{
273
273
  preview_image_url: "{CLOUDINARY_URL}/Textfield.png",
274
274
  supports_list_render: false,
275
275
  triggers: SEED_DATA_TRIGGERS,
276
+ stylesPanelSections: [StylesPanelSections.Typography, StylesPanelSections.Background, StylesPanelSections.Size, StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Position, StylesPanelSections.Borders, StylesPanelSections.Effects],
276
277
  props: {
277
278
  ...SEED_DATA_PROPS,
278
279
  type: {
@@ -1 +1 @@
1
- {"version":3,"file":"ScreenContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/ScreenContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAGL,SAAS,EACT,SAAS,EAEV,MAAM,cAAc,CAAC;AAItB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAEpD,aAAK,oBAAoB,GAAG;IAC1B,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,OAAO,CAAC;IACxB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEF,iBAAS,eAAe,CAAC,EACvB,UAAkB,EAClB,WAAmB,EACnB,iBAAyB,EACzB,cAAsB,EACtB,KAAK,EACL,KAAK,EACL,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,oBAAoB,eAwCtB;;;;AAYD,wBAA0C"}
1
+ {"version":3,"file":"ScreenContainer.d.ts","sourceRoot":"","sources":["../../../../src/components/ScreenContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAGL,SAAS,EACT,SAAS,EAEV,MAAM,cAAc,CAAC;AAItB,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAEpD,aAAK,oBAAoB,GAAG;IAC1B,UAAU,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,OAAO,CAAC;IACxB,iBAAiB,EAAE,OAAO,CAAC;IAC3B,KAAK,EAAE,KAAK,CAAC;IACb,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEF,iBAAS,eAAe,CAAC,EACvB,UAAkB,EAClB,WAAmB,EACnB,iBAAyB,EACzB,cAAsB,EACtB,KAAK,EACL,KAAK,EACL,QAAQ,EACR,GAAG,IAAI,EACR,EAAE,oBAAoB,eAyCtB;;;;AAYD,wBAA0C"}
@@ -3,6 +3,7 @@ export declare const SEED_DATA: {
3
3
  tag: string;
4
4
  description: string;
5
5
  category: string;
6
+ stylesPanelSections: string[];
6
7
  layout: {
7
8
  paddingTop: number;
8
9
  paddingRight: number;
@@ -1 +1 @@
1
- {"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../../src/mappings/Accordion.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwCrB,CAAC"}
1
+ {"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../../src/mappings/Accordion.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDrB,CAAC"}
@@ -3,6 +3,7 @@ export declare const SEED_DATA: {
3
3
  tag: string;
4
4
  description: string;
5
5
  category: string;
6
+ stylesPanelSections: string[];
6
7
  props: {
7
8
  icon: {
8
9
  label: string;
@@ -1 +1 @@
1
- {"version":3,"file":"AccordionItem.d.ts","sourceRoot":"","sources":["../../../../src/mappings/AccordionItem.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcrB,CAAC"}
1
+ {"version":3,"file":"AccordionItem.d.ts","sourceRoot":"","sources":["../../../../src/mappings/AccordionItem.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAerB,CAAC"}
@@ -3,6 +3,7 @@ export declare const SEED_DATA: {
3
3
  tag: string;
4
4
  description: string;
5
5
  category: string;
6
+ stylesPanelSections: string[];
6
7
  props: {
7
8
  visible: {
8
9
  label: string;
@@ -1 +1 @@
1
- {"version":3,"file":"ActionSheet.d.ts","sourceRoot":"","sources":["../../../../src/mappings/ActionSheet.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;CAWrB,CAAC"}
1
+ {"version":3,"file":"ActionSheet.d.ts","sourceRoot":"","sources":["../../../../src/mappings/ActionSheet.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;CAYrB,CAAC"}
@@ -2,6 +2,7 @@ export declare const SEED_DATA: {
2
2
  name: string;
3
3
  tag: string;
4
4
  description: string;
5
+ stylesPanelSections: string[];
5
6
  category: string;
6
7
  triggers: string[];
7
8
  props: {
@@ -1 +1 @@
1
- {"version":3,"file":"ActionSheetCancel.d.ts","sourceRoot":"","sources":["../../../../src/mappings/ActionSheetCancel.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiBrB,CAAC"}
1
+ {"version":3,"file":"ActionSheetCancel.d.ts","sourceRoot":"","sources":["../../../../src/mappings/ActionSheetCancel.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkBrB,CAAC"}
@@ -3,6 +3,7 @@ export declare const SEED_DATA: {
3
3
  tag: string;
4
4
  description: string;
5
5
  category: string;
6
+ stylesPanelSections: string[];
6
7
  triggers: string[];
7
8
  layout: {
8
9
  textAlign: string;
@@ -1 +1 @@
1
- {"version":3,"file":"ActionSheetItem.d.ts","sourceRoot":"","sources":["../../../../src/mappings/ActionSheetItem.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqBrB,CAAC"}
1
+ {"version":3,"file":"ActionSheetItem.d.ts","sourceRoot":"","sources":["../../../../src/mappings/ActionSheetItem.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsBrB,CAAC"}
@@ -6,6 +6,7 @@ export declare const SEED_DATA: {
6
6
  width: string;
7
7
  height: string;
8
8
  };
9
+ stylesPanelSections: string[];
9
10
  props: {
10
11
  endY: {
11
12
  group: string;
@@ -1 +1 @@
1
- {"version":3,"file":"LinearGradient.d.ts","sourceRoot":"","sources":["../../../../src/mappings/LinearGradient.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2ErB,CAAC"}
1
+ {"version":3,"file":"LinearGradient.d.ts","sourceRoot":"","sources":["../../../../src/mappings/LinearGradient.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgFrB,CAAC"}
@@ -2,6 +2,7 @@ export declare const SEED_DATA: {
2
2
  name: string;
3
3
  tag: string;
4
4
  packageName: string;
5
+ stylesPanelSections: string[];
5
6
  description: string;
6
7
  category: string;
7
8
  triggers: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"MapCallout.d.ts","sourceRoot":"","sources":["../../../../src/mappings/MapCallout.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqBrB,CAAC"}
1
+ {"version":3,"file":"MapCallout.d.ts","sourceRoot":"","sources":["../../../../src/mappings/MapCallout.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsBrB,CAAC"}
@@ -4,6 +4,7 @@ export declare const SEED_DATA: {
4
4
  packageName: string;
5
5
  description: string;
6
6
  category: string;
7
+ stylesPanelSections: string[];
7
8
  layout: {};
8
9
  props: {
9
10
  latitude: {
@@ -1 +1 @@
1
- {"version":3,"file":"MapMarker.d.ts","sourceRoot":"","sources":["../../../../src/mappings/MapMarker.ts"],"names":[],"mappings":"AASA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8CrB,CAAC"}
1
+ {"version":3,"file":"MapMarker.d.ts","sourceRoot":"","sources":["../../../../src/mappings/MapMarker.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+CrB,CAAC"}
@@ -4,6 +4,7 @@ export declare const SEED_DATA: {
4
4
  packageName: string;
5
5
  description: string;
6
6
  category: string;
7
+ stylesPanelSections: string[];
7
8
  layout: {
8
9
  flex: number;
9
10
  width: string;
@@ -1 +1 @@
1
- {"version":3,"file":"MapView.d.ts","sourceRoot":"","sources":["../../../../src/mappings/MapView.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6IrB,CAAC"}
1
+ {"version":3,"file":"MapView.d.ts","sourceRoot":"","sources":["../../../../src/mappings/MapView.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8IrB,CAAC"}
@@ -3,6 +3,7 @@ export declare const SEED_DATA: {
3
3
  tag: string;
4
4
  description: string;
5
5
  category: string;
6
+ stylesPanelSections: string[];
6
7
  layout: {
7
8
  height: number;
8
9
  width: string;
@@ -1 +1 @@
1
- {"version":3,"file":"Swiper.d.ts","sourceRoot":"","sources":["../../../../src/mappings/Swiper.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4DrB,CAAC"}
1
+ {"version":3,"file":"Swiper.d.ts","sourceRoot":"","sources":["../../../../src/mappings/Swiper.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqErB,CAAC"}
@@ -4,5 +4,6 @@ export declare const SEED_DATA: {
4
4
  description: string;
5
5
  category: string;
6
6
  props: {};
7
+ stylesPanelSections: string[];
7
8
  };
8
9
  //# sourceMappingURL=SwiperItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SwiperItem.d.ts","sourceRoot":"","sources":["../../../../src/mappings/SwiperItem.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS;;;;;;CAMrB,CAAC"}
1
+ {"version":3,"file":"SwiperItem.d.ts","sourceRoot":"","sources":["../../../../src/mappings/SwiperItem.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS;;;;;;;CAOrB,CAAC"}
@@ -3,6 +3,7 @@ export declare const SEED_DATA: {
3
3
  tag: string;
4
4
  description: string;
5
5
  category: string;
6
+ stylesPanelSections: string[];
6
7
  layout: {
7
8
  borderLeftWidth: number;
8
9
  borderRightWidth: number;
@@ -1 +1 @@
1
- {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../src/mappings/TextArea.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuRrB,CAAC"}
1
+ {"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../src/mappings/TextArea.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgSrB,CAAC"}
@@ -6,6 +6,7 @@ export declare const SEED_DATA: ({
6
6
  preview_image_url: string;
7
7
  supports_list_render: boolean;
8
8
  triggers: string[];
9
+ stylesPanelSections: string[];
9
10
  props: {
10
11
  type: {
11
12
  label: string;
@@ -310,7 +311,6 @@ export declare const SEED_DATA: ({
310
311
  };
311
312
  };
312
313
  layout: {};
313
- stylesPanelSections?: undefined;
314
314
  } | {
315
315
  name: string;
316
316
  tag: string;
@@ -1 +1 @@
1
- {"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../../src/mappings/TextField.ts"],"names":[],"mappings":"AA6TA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgGrB,CAAC"}
1
+ {"version":3,"file":"TextField.d.ts","sourceRoot":"","sources":["../../../../src/mappings/TextField.ts"],"names":[],"mappings":"AA6TA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAyGrB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@draftbit/core",
3
- "version": "46.8.1-d78af9.2+d78af9a",
3
+ "version": "46.8.1-da12fb.2+da12fb8",
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.8.1-d78af9.2+d78af9a",
44
+ "@draftbit/types": "^46.8.1-da12fb.2+da12fb8",
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",
@@ -92,5 +92,5 @@
92
92
  ]
93
93
  ]
94
94
  },
95
- "gitHead": "d78af9a6345ef51986bcac3f5667917d61582f82"
95
+ "gitHead": "da12fb8e8893d33317c9bcd27c3108d3dc2fde3e"
96
96
  }
@@ -32,7 +32,7 @@ const DeckSwiper = ({ onIndexChanged, onEndReached, startCardIndex = 0, infinite
32
32
  return keyExtractor(card);
33
33
  }
34
34
  else {
35
- return card.toString();
35
+ return card === null || card === void 0 ? void 0 : card.toString();
36
36
  }
37
37
  };
38
38
  /**
@@ -75,7 +75,7 @@ const DeckSwiper = <T extends object>({
75
75
  if (keyExtractor) {
76
76
  return keyExtractor(card);
77
77
  } else {
78
- return card.toString();
78
+ return card?.toString();
79
79
  }
80
80
  };
81
81
 
@@ -3,7 +3,8 @@ import { StyleSheet, ScrollView, View, } from "react-native";
3
3
  import { SafeAreaView } from "react-native-safe-area-context";
4
4
  import { withTheme } from "../theming";
5
5
  function ScreenContainer({ scrollable = false, hasSafeArea = false, hasBottomSafeArea = false, hasTopSafeArea = false, theme, style, children, ...rest }) {
6
- const backgroundColor = theme.colors.background;
6
+ var _a;
7
+ const backgroundColor = ((_a = StyleSheet.flatten(style)) === null || _a === void 0 ? void 0 : _a.backgroundColor) || theme.colors.background;
7
8
  const edges = ["left", "right"];
8
9
  if (hasSafeArea || hasTopSafeArea) {
9
10
  edges.push("top");
@@ -31,7 +31,8 @@ function ScreenContainer({
31
31
  children,
32
32
  ...rest
33
33
  }: ScreenContainerProps) {
34
- const backgroundColor = theme.colors.background;
34
+ const backgroundColor =
35
+ StyleSheet.flatten(style)?.backgroundColor || theme.colors.background;
35
36
 
36
37
  const edges: Edge[] = ["left", "right"];
37
38
  if (hasSafeArea || hasTopSafeArea) {
@@ -1,9 +1,18 @@
1
- import { COMPONENT_TYPES, createNumberProp, createIconProp, createTextProp, createStaticBoolProp, createColorProp, } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createNumberProp, createIconProp, createTextProp, createStaticBoolProp, createColorProp, StylesPanelSections, } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Accordion",
4
4
  tag: "AccordionGroup",
5
5
  description: "An expandable container containing components",
6
6
  category: COMPONENT_TYPES.container,
7
+ stylesPanelSections: [
8
+ StylesPanelSections.LayoutSelectedItem,
9
+ StylesPanelSections.Background,
10
+ StylesPanelSections.Size,
11
+ StylesPanelSections.MarginsAndPaddings,
12
+ StylesPanelSections.Position,
13
+ StylesPanelSections.Borders,
14
+ StylesPanelSections.Effects,
15
+ ],
7
16
  layout: {
8
17
  paddingTop: 8,
9
18
  paddingRight: 8,
@@ -5,6 +5,7 @@ import {
5
5
  createTextProp,
6
6
  createStaticBoolProp,
7
7
  createColorProp,
8
+ StylesPanelSections,
8
9
  } from "@draftbit/types";
9
10
 
10
11
  export const SEED_DATA = {
@@ -12,6 +13,15 @@ export const SEED_DATA = {
12
13
  tag: "AccordionGroup",
13
14
  description: "An expandable container containing components",
14
15
  category: COMPONENT_TYPES.container,
16
+ stylesPanelSections: [
17
+ StylesPanelSections.LayoutSelectedItem,
18
+ StylesPanelSections.Background,
19
+ StylesPanelSections.Size,
20
+ StylesPanelSections.MarginsAndPaddings,
21
+ StylesPanelSections.Position,
22
+ StylesPanelSections.Borders,
23
+ StylesPanelSections.Effects,
24
+ ],
15
25
  layout: {
16
26
  paddingTop: 8,
17
27
  paddingRight: 8,
@@ -1,9 +1,10 @@
1
- import { COMPONENT_TYPES, createIconProp, createTextProp, createColorProp, } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createIconProp, createTextProp, createColorProp, CONTAINER_COMPONENT_STYLES_SECTIONS, } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Accordion Item",
4
4
  tag: "AccordionItem",
5
5
  description: "Item to be used in Accordion",
6
6
  category: COMPONENT_TYPES.deprecated,
7
+ stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
7
8
  props: {
8
9
  icon: createIconProp(),
9
10
  label: createTextProp({
@@ -3,6 +3,7 @@ import {
3
3
  createIconProp,
4
4
  createTextProp,
5
5
  createColorProp,
6
+ CONTAINER_COMPONENT_STYLES_SECTIONS,
6
7
  } from "@draftbit/types";
7
8
 
8
9
  export const SEED_DATA = {
@@ -10,6 +11,7 @@ export const SEED_DATA = {
10
11
  tag: "AccordionItem",
11
12
  description: "Item to be used in Accordion",
12
13
  category: COMPONENT_TYPES.deprecated,
14
+ stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
13
15
  props: {
14
16
  icon: createIconProp(),
15
17
  label: createTextProp({
@@ -1,9 +1,10 @@
1
- import { COMPONENT_TYPES, createStaticBoolProp, GROUPS } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createStaticBoolProp, GROUPS, StylesPanelSections, } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Action Sheet",
4
4
  tag: "ActionSheet",
5
5
  description: "Action Sheet container",
6
6
  category: COMPONENT_TYPES.actionsheet,
7
+ stylesPanelSections: [StylesPanelSections.Size, StylesPanelSections.Margins],
7
8
  props: {
8
9
  visible: createStaticBoolProp({
9
10
  group: GROUPS.data,
@@ -1,10 +1,16 @@
1
- import { COMPONENT_TYPES, createStaticBoolProp, GROUPS } from "@draftbit/types";
1
+ import {
2
+ COMPONENT_TYPES,
3
+ createStaticBoolProp,
4
+ GROUPS,
5
+ StylesPanelSections,
6
+ } from "@draftbit/types";
2
7
 
3
8
  export const SEED_DATA = {
4
9
  name: "Action Sheet",
5
10
  tag: "ActionSheet",
6
11
  description: "Action Sheet container",
7
12
  category: COMPONENT_TYPES.actionsheet,
13
+ stylesPanelSections: [StylesPanelSections.Size, StylesPanelSections.Margins],
8
14
  props: {
9
15
  visible: createStaticBoolProp({
10
16
  group: GROUPS.data,
@@ -1,8 +1,9 @@
1
- import { COMPONENT_TYPES, createActionProp, createColorProp, createTextProp, GROUPS, Triggers, } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createActionProp, createColorProp, createTextProp, GROUPS, Triggers, StylesPanelSections, } from "@draftbit/types";
2
2
  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
7
  category: COMPONENT_TYPES.actionsheet,
7
8
  triggers: [Triggers.OnPress],
8
9
  props: {
@@ -5,12 +5,14 @@ import {
5
5
  createTextProp,
6
6
  GROUPS,
7
7
  Triggers,
8
+ StylesPanelSections,
8
9
  } from "@draftbit/types";
9
10
 
10
11
  export const SEED_DATA = {
11
12
  name: "Action Sheet Cancel",
12
13
  tag: "ActionSheetCancel",
13
14
  description: "Action Sheet cancel",
15
+ stylesPanelSections: [StylesPanelSections.Size, StylesPanelSections.Margins],
14
16
  category: COMPONENT_TYPES.actionsheet,
15
17
  triggers: [Triggers.OnPress],
16
18
  props: {
@@ -1,9 +1,10 @@
1
- import { COMPONENT_TYPES, createActionProp, createColorProp, createTextProp, GROUPS, Triggers, } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createActionProp, createColorProp, createTextProp, GROUPS, Triggers, StylesPanelSections, } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Action Sheet Item",
4
4
  tag: "ActionSheetItem",
5
5
  description: "Action Sheet item",
6
6
  category: COMPONENT_TYPES.actionsheet,
7
+ stylesPanelSections: [StylesPanelSections.Size, StylesPanelSections.Margins],
7
8
  triggers: [Triggers.OnPress],
8
9
  layout: {
9
10
  textAlign: "center",
@@ -5,6 +5,7 @@ import {
5
5
  createTextProp,
6
6
  GROUPS,
7
7
  Triggers,
8
+ StylesPanelSections,
8
9
  } from "@draftbit/types";
9
10
 
10
11
  export const SEED_DATA = {
@@ -12,6 +13,7 @@ export const SEED_DATA = {
12
13
  tag: "ActionSheetItem",
13
14
  description: "Action Sheet item",
14
15
  category: COMPONENT_TYPES.actionsheet,
16
+ stylesPanelSections: [StylesPanelSections.Size, StylesPanelSections.Margins],
15
17
  triggers: [Triggers.OnPress],
16
18
  layout: {
17
19
  textAlign: "center",
@@ -1,9 +1,14 @@
1
- import { createColorProp, FORM_TYPES, GROUPS, PROP_TYPES, } from "@draftbit/types";
1
+ import { createColorProp, FORM_TYPES, GROUPS, PROP_TYPES, StylesPanelSections, } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Linear Gradient",
4
4
  tag: "LinearGradient",
5
5
  description: "Linear Gradient Component",
6
6
  layout: { width: "100%", height: "100%" },
7
+ stylesPanelSections: [
8
+ StylesPanelSections.MarginsAndPaddings,
9
+ StylesPanelSections.Borders,
10
+ StylesPanelSections.Effects,
11
+ ],
7
12
  props: {
8
13
  endY: {
9
14
  group: GROUPS.basic,
@@ -3,6 +3,7 @@ import {
3
3
  FORM_TYPES,
4
4
  GROUPS,
5
5
  PROP_TYPES,
6
+ StylesPanelSections,
6
7
  } from "@draftbit/types";
7
8
 
8
9
  export const SEED_DATA = {
@@ -10,6 +11,11 @@ export const SEED_DATA = {
10
11
  tag: "LinearGradient",
11
12
  description: "Linear Gradient Component",
12
13
  layout: { width: "100%", height: "100%" },
14
+ stylesPanelSections: [
15
+ StylesPanelSections.MarginsAndPaddings,
16
+ StylesPanelSections.Borders,
17
+ StylesPanelSections.Effects,
18
+ ],
13
19
  props: {
14
20
  endY: {
15
21
  group: GROUPS.basic,
@@ -1,8 +1,9 @@
1
- import { COMPONENT_TYPES, createActionProp, createBoolProp, GROUPS, Triggers, } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createActionProp, createBoolProp, GROUPS, Triggers, CONTAINER_COMPONENT_STYLES_SECTIONS, } 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
7
  description: "An info window to display on top of a marker when it is clicked",
7
8
  category: COMPONENT_TYPES.map,
8
9
  triggers: [Triggers.OnPress],
@@ -4,12 +4,14 @@ import {
4
4
  createBoolProp,
5
5
  GROUPS,
6
6
  Triggers,
7
+ CONTAINER_COMPONENT_STYLES_SECTIONS,
7
8
  } from "@draftbit/types";
8
9
 
9
10
  export const SEED_DATA = {
10
11
  name: "Map Callout",
11
12
  tag: "MapCallout",
12
13
  packageName: "@draftbit/maps",
14
+ stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
13
15
  description:
14
16
  "An info window to display on top of a marker when it is clicked",
15
17
  category: COMPONENT_TYPES.map,
@@ -1,10 +1,11 @@
1
- import { COMPONENT_TYPES, createBoolProp, createColorProp, createNumberProp, createTextProp, GROUPS, } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createBoolProp, createColorProp, createNumberProp, createTextProp, GROUPS, CONTAINER_COMPONENT_STYLES_SECTIONS, } 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
9
  layout: {},
9
10
  props: {
10
11
  latitude: createNumberProp({
@@ -5,6 +5,7 @@ import {
5
5
  createNumberProp,
6
6
  createTextProp,
7
7
  GROUPS,
8
+ CONTAINER_COMPONENT_STYLES_SECTIONS,
8
9
  } from "@draftbit/types";
9
10
 
10
11
  export const SEED_DATA = {
@@ -13,6 +14,7 @@ export const SEED_DATA = {
13
14
  packageName: "@draftbit/maps",
14
15
  description: "A marker to show inside map view",
15
16
  category: COMPONENT_TYPES.map,
17
+ stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
16
18
  layout: {},
17
19
  props: {
18
20
  latitude: createNumberProp({
@@ -1,10 +1,11 @@
1
- import { COMPONENT_TYPES, createBoolProp, createColorProp, createNumberProp, createTextProp, GROUPS, FORM_TYPES, PROP_TYPES, } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createBoolProp, createColorProp, createNumberProp, createTextProp, GROUPS, FORM_TYPES, PROP_TYPES, StylesPanelSections, } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Map View",
4
4
  tag: "MapView",
5
5
  packageName: "@draftbit/maps",
6
6
  description: "A map view",
7
7
  category: COMPONENT_TYPES.map,
8
+ stylesPanelSections: [StylesPanelSections.Size, StylesPanelSections.Margins],
8
9
  layout: {
9
10
  flex: 1,
10
11
  width: "100%",
@@ -7,6 +7,7 @@ import {
7
7
  GROUPS,
8
8
  FORM_TYPES,
9
9
  PROP_TYPES,
10
+ StylesPanelSections,
10
11
  } from "@draftbit/types";
11
12
 
12
13
  export const SEED_DATA = {
@@ -15,6 +16,7 @@ export const SEED_DATA = {
15
16
  packageName: "@draftbit/maps",
16
17
  description: "A map view",
17
18
  category: COMPONENT_TYPES.map,
19
+ stylesPanelSections: [StylesPanelSections.Size, StylesPanelSections.Margins],
18
20
  layout: {
19
21
  flex: 1,
20
22
  width: "100%",
@@ -1,9 +1,18 @@
1
- import { COMPONENT_TYPES, createBoolProp, createNumberProp, createTextProp, createColorProp, GROUPS, Triggers, createActionProp, } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createBoolProp, createNumberProp, createTextProp, createColorProp, GROUPS, Triggers, createActionProp, StylesPanelSections, } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Swiper",
4
4
  tag: "Swiper",
5
5
  description: "Swiper container",
6
6
  category: COMPONENT_TYPES.swiper,
7
+ stylesPanelSections: [
8
+ StylesPanelSections.LayoutSelectedItem,
9
+ StylesPanelSections.Background,
10
+ StylesPanelSections.Size,
11
+ StylesPanelSections.MarginsAndPaddings,
12
+ StylesPanelSections.Position,
13
+ StylesPanelSections.Borders,
14
+ StylesPanelSections.Effects,
15
+ ],
7
16
  layout: {
8
17
  height: 300,
9
18
  width: "100%",
@@ -7,6 +7,7 @@ import {
7
7
  GROUPS,
8
8
  Triggers,
9
9
  createActionProp,
10
+ StylesPanelSections,
10
11
  } from "@draftbit/types";
11
12
 
12
13
  export const SEED_DATA = {
@@ -14,6 +15,15 @@ export const SEED_DATA = {
14
15
  tag: "Swiper",
15
16
  description: "Swiper container",
16
17
  category: COMPONENT_TYPES.swiper,
18
+ stylesPanelSections: [
19
+ StylesPanelSections.LayoutSelectedItem,
20
+ StylesPanelSections.Background,
21
+ StylesPanelSections.Size,
22
+ StylesPanelSections.MarginsAndPaddings,
23
+ StylesPanelSections.Position,
24
+ StylesPanelSections.Borders,
25
+ StylesPanelSections.Effects,
26
+ ],
17
27
  layout: {
18
28
  height: 300,
19
29
  width: "100%",
@@ -1,8 +1,9 @@
1
- import { COMPONENT_TYPES } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, CONTAINER_COMPONENT_STYLES_SECTIONS, } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Swiper Item",
4
4
  tag: "SwiperItem",
5
5
  description: "Swiper item",
6
6
  category: COMPONENT_TYPES.swiper,
7
7
  props: {},
8
+ stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
8
9
  };
@@ -1,4 +1,7 @@
1
- import { COMPONENT_TYPES } from "@draftbit/types";
1
+ import {
2
+ COMPONENT_TYPES,
3
+ CONTAINER_COMPONENT_STYLES_SECTIONS,
4
+ } from "@draftbit/types";
2
5
 
3
6
  export const SEED_DATA = {
4
7
  name: "Swiper Item",
@@ -6,4 +9,5 @@ export const SEED_DATA = {
6
9
  description: "Swiper item",
7
10
  category: COMPONENT_TYPES.swiper,
8
11
  props: {},
12
+ stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
9
13
  };
@@ -1,9 +1,18 @@
1
- import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, FIELD_NAME, Triggers, createDisabledProp, } from "@draftbit/types";
1
+ import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, FIELD_NAME, Triggers, createDisabledProp, StylesPanelSections, } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Text Area",
4
4
  tag: "TextInput",
5
5
  description: "An input field that allows for multiple lines.",
6
6
  category: COMPONENT_TYPES.input,
7
+ stylesPanelSections: [
8
+ StylesPanelSections.Typography,
9
+ StylesPanelSections.Background,
10
+ StylesPanelSections.Size,
11
+ StylesPanelSections.MarginsAndPaddings,
12
+ StylesPanelSections.Position,
13
+ StylesPanelSections.Borders,
14
+ StylesPanelSections.Effects,
15
+ ],
7
16
  layout: {
8
17
  borderLeftWidth: 1,
9
18
  borderRightWidth: 1,
@@ -6,6 +6,7 @@ import {
6
6
  FIELD_NAME,
7
7
  Triggers,
8
8
  createDisabledProp,
9
+ StylesPanelSections,
9
10
  } from "@draftbit/types";
10
11
 
11
12
  export const SEED_DATA = {
@@ -13,6 +14,15 @@ export const SEED_DATA = {
13
14
  tag: "TextInput",
14
15
  description: "An input field that allows for multiple lines.",
15
16
  category: COMPONENT_TYPES.input,
17
+ stylesPanelSections: [
18
+ StylesPanelSections.Typography,
19
+ StylesPanelSections.Background,
20
+ StylesPanelSections.Size,
21
+ StylesPanelSections.MarginsAndPaddings,
22
+ StylesPanelSections.Position,
23
+ StylesPanelSections.Borders,
24
+ StylesPanelSections.Effects,
25
+ ],
16
26
  layout: {
17
27
  borderLeftWidth: 1,
18
28
  borderRightWidth: 1,
@@ -302,6 +302,15 @@ export const SEED_DATA = [
302
302
  preview_image_url: "{CLOUDINARY_URL}/Textfield.png",
303
303
  supports_list_render: false,
304
304
  triggers: SEED_DATA_TRIGGERS,
305
+ stylesPanelSections: [
306
+ StylesPanelSections.Typography,
307
+ StylesPanelSections.Background,
308
+ StylesPanelSections.Size,
309
+ StylesPanelSections.MarginsAndPaddings,
310
+ StylesPanelSections.Position,
311
+ StylesPanelSections.Borders,
312
+ StylesPanelSections.Effects,
313
+ ],
305
314
  props: {
306
315
  ...SEED_DATA_PROPS,
307
316
  type: {
@@ -324,6 +324,15 @@ export const SEED_DATA = [
324
324
  preview_image_url: "{CLOUDINARY_URL}/Textfield.png",
325
325
  supports_list_render: false,
326
326
  triggers: SEED_DATA_TRIGGERS,
327
+ stylesPanelSections: [
328
+ StylesPanelSections.Typography,
329
+ StylesPanelSections.Background,
330
+ StylesPanelSections.Size,
331
+ StylesPanelSections.MarginsAndPaddings,
332
+ StylesPanelSections.Position,
333
+ StylesPanelSections.Borders,
334
+ StylesPanelSections.Effects,
335
+ ],
327
336
  props: {
328
337
  ...SEED_DATA_PROPS,
329
338
  type: {