@draftbit/core 46.8.1-fe4ccb.2 → 46.8.2-088bf8.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 (127) hide show
  1. package/lib/commonjs/components/DeckSwiper/DeckSwiper.js +38 -4
  2. package/lib/commonjs/components/Picker/Picker.js +8 -9
  3. package/lib/commonjs/components/RadioButton/context.js +1 -1
  4. package/lib/commonjs/components/ScreenContainer.js +2 -1
  5. package/lib/commonjs/components/ToggleButton.js +15 -2
  6. package/lib/commonjs/hooks.js +1 -2
  7. package/lib/commonjs/index.js +0 -7
  8. package/lib/commonjs/mappings/Accordion.js +1 -0
  9. package/lib/commonjs/mappings/AccordionItem.js +1 -0
  10. package/lib/commonjs/mappings/ActionSheet.js +1 -0
  11. package/lib/commonjs/mappings/ActionSheetCancel.js +1 -0
  12. package/lib/commonjs/mappings/ActionSheetItem.js +1 -0
  13. package/lib/commonjs/mappings/HtmlElements.js +177 -0
  14. package/lib/commonjs/mappings/LinearGradient.js +1 -0
  15. package/lib/commonjs/mappings/MapCallout.js +1 -0
  16. package/lib/commonjs/mappings/MapMarker.js +1 -0
  17. package/lib/commonjs/mappings/MapView.js +1 -0
  18. package/lib/commonjs/mappings/Swiper.js +1 -0
  19. package/lib/commonjs/mappings/SwiperItem.js +2 -1
  20. package/lib/commonjs/mappings/TextArea.js +1 -0
  21. package/lib/commonjs/mappings/TextField.js +1 -0
  22. package/lib/module/components/DeckSwiper/DeckSwiper.js +38 -4
  23. package/lib/module/components/Picker/Picker.js +8 -9
  24. package/lib/module/components/Picker/PickerComponent.android.js +8 -11
  25. package/lib/module/components/ScreenContainer.js +2 -1
  26. package/lib/module/index.js +0 -1
  27. package/lib/module/mappings/Accordion.js +2 -1
  28. package/lib/module/mappings/AccordionItem.js +2 -1
  29. package/lib/module/mappings/ActionSheet.js +2 -1
  30. package/lib/module/mappings/ActionSheetCancel.js +2 -1
  31. package/lib/module/mappings/ActionSheetItem.js +2 -1
  32. package/lib/module/mappings/HtmlElements.js +170 -0
  33. package/lib/module/mappings/LinearGradient.js +2 -1
  34. package/lib/module/mappings/MapCallout.js +2 -1
  35. package/lib/module/mappings/MapMarker.js +2 -1
  36. package/lib/module/mappings/MapView.js +2 -1
  37. package/lib/module/mappings/Swiper.js +2 -1
  38. package/lib/module/mappings/SwiperItem.js +3 -2
  39. package/lib/module/mappings/TextArea.js +2 -1
  40. package/lib/module/mappings/TextField.js +1 -0
  41. package/lib/typescript/src/components/DeckSwiper/DeckSwiper.d.ts +8 -2
  42. package/lib/typescript/src/components/DeckSwiper/DeckSwiper.d.ts.map +1 -1
  43. package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.d.ts +2 -3
  44. package/lib/typescript/src/components/DeckSwiper/DeckSwiperCard.d.ts.map +1 -1
  45. package/lib/typescript/src/components/Picker/Picker.d.ts.map +1 -1
  46. package/lib/typescript/src/components/ScreenContainer.d.ts.map +1 -1
  47. package/lib/typescript/src/index.d.ts +0 -1
  48. package/lib/typescript/src/index.d.ts.map +1 -1
  49. package/lib/typescript/src/mappings/Accordion.d.ts +1 -0
  50. package/lib/typescript/src/mappings/Accordion.d.ts.map +1 -1
  51. package/lib/typescript/src/mappings/AccordionItem.d.ts +1 -0
  52. package/lib/typescript/src/mappings/AccordionItem.d.ts.map +1 -1
  53. package/lib/typescript/src/mappings/ActionSheet.d.ts +1 -0
  54. package/lib/typescript/src/mappings/ActionSheet.d.ts.map +1 -1
  55. package/lib/typescript/src/mappings/ActionSheetCancel.d.ts +1 -0
  56. package/lib/typescript/src/mappings/ActionSheetCancel.d.ts.map +1 -1
  57. package/lib/typescript/src/mappings/ActionSheetItem.d.ts +1 -0
  58. package/lib/typescript/src/mappings/ActionSheetItem.d.ts.map +1 -1
  59. package/lib/typescript/src/mappings/HtmlElements.d.ts +77 -0
  60. package/lib/typescript/src/mappings/HtmlElements.d.ts.map +1 -0
  61. package/lib/typescript/src/mappings/LinearGradient.d.ts +1 -0
  62. package/lib/typescript/src/mappings/LinearGradient.d.ts.map +1 -1
  63. package/lib/typescript/src/mappings/MapCallout.d.ts +1 -0
  64. package/lib/typescript/src/mappings/MapCallout.d.ts.map +1 -1
  65. package/lib/typescript/src/mappings/MapMarker.d.ts +1 -0
  66. package/lib/typescript/src/mappings/MapMarker.d.ts.map +1 -1
  67. package/lib/typescript/src/mappings/MapView.d.ts +1 -0
  68. package/lib/typescript/src/mappings/MapView.d.ts.map +1 -1
  69. package/lib/typescript/src/mappings/Swiper.d.ts +1 -0
  70. package/lib/typescript/src/mappings/Swiper.d.ts.map +1 -1
  71. package/lib/typescript/src/mappings/SwiperItem.d.ts +1 -0
  72. package/lib/typescript/src/mappings/SwiperItem.d.ts.map +1 -1
  73. package/lib/typescript/src/mappings/TextArea.d.ts +1 -0
  74. package/lib/typescript/src/mappings/TextArea.d.ts.map +1 -1
  75. package/lib/typescript/src/mappings/TextField.d.ts +1 -1
  76. package/lib/typescript/src/mappings/TextField.d.ts.map +1 -1
  77. package/package.json +4 -4
  78. package/src/components/DeckSwiper/DeckSwiper.js +33 -3
  79. package/src/components/DeckSwiper/DeckSwiper.tsx +51 -9
  80. package/src/components/DeckSwiper/DeckSwiperCard.js +1 -1
  81. package/src/components/DeckSwiper/DeckSwiperCard.tsx +3 -6
  82. package/src/components/Picker/Picker.js +7 -8
  83. package/src/components/Picker/Picker.tsx +7 -9
  84. package/src/components/ScreenContainer.js +2 -1
  85. package/src/components/ScreenContainer.tsx +2 -1
  86. package/src/index.js +0 -1
  87. package/src/index.tsx +0 -2
  88. package/src/mappings/Accordion.js +10 -1
  89. package/src/mappings/Accordion.ts +10 -0
  90. package/src/mappings/AccordionItem.js +2 -1
  91. package/src/mappings/AccordionItem.ts +2 -0
  92. package/src/mappings/ActionSheet.js +2 -1
  93. package/src/mappings/ActionSheet.ts +7 -1
  94. package/src/mappings/ActionSheetCancel.js +2 -1
  95. package/src/mappings/ActionSheetCancel.ts +2 -0
  96. package/src/mappings/ActionSheetItem.js +2 -1
  97. package/src/mappings/ActionSheetItem.ts +2 -0
  98. package/src/mappings/HtmlElements.js +193 -0
  99. package/src/mappings/HtmlElements.ts +207 -0
  100. package/src/mappings/LinearGradient.js +6 -1
  101. package/src/mappings/LinearGradient.ts +6 -0
  102. package/src/mappings/MapCallout.js +2 -1
  103. package/src/mappings/MapCallout.ts +2 -0
  104. package/src/mappings/MapMarker.js +2 -1
  105. package/src/mappings/MapMarker.ts +2 -0
  106. package/src/mappings/MapView.js +2 -1
  107. package/src/mappings/MapView.ts +2 -0
  108. package/src/mappings/Swiper.js +10 -1
  109. package/src/mappings/Swiper.ts +10 -0
  110. package/src/mappings/SwiperItem.js +2 -1
  111. package/src/mappings/SwiperItem.ts +5 -1
  112. package/src/mappings/TextArea.js +10 -1
  113. package/src/mappings/TextArea.ts +10 -0
  114. package/src/mappings/TextField.js +9 -0
  115. package/src/mappings/TextField.ts +9 -0
  116. package/lib/commonjs/components/Shadow.js +0 -42
  117. package/lib/commonjs/mappings/Shadow.js +0 -94
  118. package/lib/module/components/Shadow.js +0 -34
  119. package/lib/module/mappings/Shadow.js +0 -87
  120. package/lib/typescript/src/components/Shadow.d.ts +0 -24
  121. package/lib/typescript/src/components/Shadow.d.ts.map +0 -1
  122. package/lib/typescript/src/mappings/Shadow.d.ts +0 -173
  123. package/lib/typescript/src/mappings/Shadow.d.ts.map +0 -1
  124. package/src/components/Shadow.js +0 -16
  125. package/src/components/Shadow.tsx +0 -58
  126. package/src/mappings/Shadow.js +0 -87
  127. package/src/mappings/Shadow.ts +0 -95
@@ -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",
@@ -0,0 +1,193 @@
1
+ import { COMPONENT_TYPES, createTextProp, FORM_TYPES, PROP_TYPES, GROUPS, StylesPanelSections, Triggers, } from "@draftbit/types";
2
+ const SEED_DATA_TRIGGERS = [Triggers.OnValueChange];
3
+ const ELEMENT_SEED_DATA = {
4
+ doc_link: "https://www.npmjs.com/package/@expo/html-elements",
5
+ code_link: "https://github.com/expo/expo/tree/master/packages/html-elements",
6
+ packageName: "@expo/html-elements",
7
+ stylesPanelSections: [
8
+ StylesPanelSections.Typography,
9
+ StylesPanelSections.LayoutSelectedItem,
10
+ StylesPanelSections.MarginsAndPaddings,
11
+ StylesPanelSections.Effects,
12
+ ],
13
+ layout: {
14
+ margin: 0,
15
+ },
16
+ triggers: SEED_DATA_TRIGGERS,
17
+ category: COMPONENT_TYPES.webelement,
18
+ };
19
+ const HEADING_SEED_DATA = {
20
+ ...ELEMENT_SEED_DATA,
21
+ category: COMPONENT_TYPES.text,
22
+ props: {
23
+ accessibilityLabel: {
24
+ group: GROUPS.accessibility,
25
+ name: "accessibilityLabel",
26
+ label: "accessibilityLabel",
27
+ description: "Overrides the text that's read by the screen reader when the user interacts with the element. By default, the label is constructed by traversing all the children and accumulating all the Text nodes separated by space.",
28
+ editable: true,
29
+ required: false,
30
+ formType: FORM_TYPES.string,
31
+ propType: PROP_TYPES.STRING,
32
+ defaultValue: null,
33
+ },
34
+ selectable: {
35
+ group: GROUPS.advanced,
36
+ name: "selectable",
37
+ label: "selectable",
38
+ description: "Lets the user select text, to use the native copy and paste functionality.",
39
+ editable: true,
40
+ required: false,
41
+ formType: FORM_TYPES.boolean,
42
+ propType: PROP_TYPES.BOOLEAN,
43
+ defaultValue: null,
44
+ },
45
+ children: {
46
+ group: GROUPS.data,
47
+ label: "Text",
48
+ description: "Text",
49
+ editable: true,
50
+ required: true,
51
+ formType: FORM_TYPES.string,
52
+ propType: PROP_TYPES.STRING,
53
+ defaultValue: "Your Headline Here",
54
+ },
55
+ },
56
+ };
57
+ const TEXT_SEED_DATA = {
58
+ ...ELEMENT_SEED_DATA,
59
+ category: COMPONENT_TYPES.text,
60
+ props: {
61
+ children: {
62
+ group: GROUPS.data,
63
+ label: "Text",
64
+ description: "Text",
65
+ defaultValue: "Your Text Here",
66
+ editable: true,
67
+ required: true,
68
+ formType: FORM_TYPES.string,
69
+ propType: PROP_TYPES.STRING,
70
+ },
71
+ },
72
+ };
73
+ export const SEED_DATA = [
74
+ {
75
+ name: "H1",
76
+ tag: "H1",
77
+ ...HEADING_SEED_DATA,
78
+ },
79
+ {
80
+ name: "H2",
81
+ tag: "H2",
82
+ ...HEADING_SEED_DATA,
83
+ },
84
+ {
85
+ name: "H3",
86
+ tag: "H3",
87
+ ...HEADING_SEED_DATA,
88
+ },
89
+ {
90
+ name: "H4",
91
+ tag: "H4",
92
+ ...HEADING_SEED_DATA,
93
+ },
94
+ {
95
+ name: "H5",
96
+ tag: "H5",
97
+ ...HEADING_SEED_DATA,
98
+ },
99
+ {
100
+ name: "H6",
101
+ tag: "H6",
102
+ ...HEADING_SEED_DATA,
103
+ },
104
+ {
105
+ name: "Anchor",
106
+ tag: "A",
107
+ ...TEXT_SEED_DATA,
108
+ props: {
109
+ href: createTextProp({
110
+ label: "href",
111
+ description: "Specify the URL",
112
+ defaultValue: "",
113
+ }),
114
+ target: {
115
+ group: GROUPS.basic,
116
+ label: "target",
117
+ description: "decide where link should open",
118
+ formType: FORM_TYPES.flatArray,
119
+ defaultValue: "_blank",
120
+ options: ["_blank", "_self", "_parent", "_top"],
121
+ },
122
+ },
123
+ },
124
+ {
125
+ name: "Paragraph",
126
+ tag: "P",
127
+ ...TEXT_SEED_DATA,
128
+ props: {
129
+ // NOTE - Keeping the props commented until we figure out a way to use this props from draftbit side.
130
+ // strong: createBoolProp({
131
+ // label: "Strong",
132
+ // description: "Strong",
133
+ // }),
134
+ // strike: createBoolProp({
135
+ // label: "Strike",
136
+ // description: "Strike through",
137
+ // }),
138
+ // italic: createBoolProp({
139
+ // label: "Italic",
140
+ // description: "Italic Fonts",
141
+ // }),
142
+ // bold: createBoolProp({
143
+ // label: "Bold",
144
+ // description: "Bold",
145
+ // }),
146
+ },
147
+ },
148
+ {
149
+ name: "Code",
150
+ tag: "Code",
151
+ ...TEXT_SEED_DATA,
152
+ },
153
+ {
154
+ name: "Pre",
155
+ tag: "Pre",
156
+ ...TEXT_SEED_DATA,
157
+ },
158
+ {
159
+ name: "Mark",
160
+ tag: "Mark",
161
+ ...TEXT_SEED_DATA,
162
+ },
163
+ {
164
+ name: "BR",
165
+ tag: "BR",
166
+ ...TEXT_SEED_DATA,
167
+ },
168
+ {
169
+ name: "BlockQuote",
170
+ tag: "BlockQuote",
171
+ ...TEXT_SEED_DATA,
172
+ },
173
+ {
174
+ name: "HR",
175
+ tag: "HR",
176
+ ...TEXT_SEED_DATA,
177
+ },
178
+ {
179
+ name: "Time",
180
+ tag: "Time",
181
+ ...ELEMENT_SEED_DATA,
182
+ },
183
+ {
184
+ name: "UL",
185
+ tag: "UL",
186
+ ...ELEMENT_SEED_DATA,
187
+ },
188
+ {
189
+ name: "LI",
190
+ tag: "LI",
191
+ ...ELEMENT_SEED_DATA,
192
+ },
193
+ ];
@@ -0,0 +1,207 @@
1
+ import {
2
+ COMPONENT_TYPES,
3
+ createTextProp,
4
+ FORM_TYPES,
5
+ PROP_TYPES,
6
+ GROUPS,
7
+ StylesPanelSections,
8
+ Triggers,
9
+ } from "@draftbit/types";
10
+ const SEED_DATA_TRIGGERS = [Triggers.OnValueChange];
11
+
12
+ const ELEMENT_SEED_DATA = {
13
+ doc_link: "https://www.npmjs.com/package/@expo/html-elements",
14
+ code_link: "https://github.com/expo/expo/tree/master/packages/html-elements",
15
+ packageName: "@expo/html-elements",
16
+ stylesPanelSections: [
17
+ StylesPanelSections.Typography,
18
+ StylesPanelSections.LayoutSelectedItem,
19
+ StylesPanelSections.MarginsAndPaddings,
20
+ StylesPanelSections.Effects,
21
+ ],
22
+ layout: {
23
+ margin: 0,
24
+ },
25
+ triggers: SEED_DATA_TRIGGERS,
26
+ category: COMPONENT_TYPES.webelement,
27
+ };
28
+
29
+ const HEADING_SEED_DATA = {
30
+ ...ELEMENT_SEED_DATA,
31
+ category: COMPONENT_TYPES.text,
32
+ props: {
33
+ accessibilityLabel: {
34
+ group: GROUPS.accessibility,
35
+ name: "accessibilityLabel",
36
+ label: "accessibilityLabel",
37
+ description:
38
+ "Overrides the text that's read by the screen reader when the user interacts with the element. By default, the label is constructed by traversing all the children and accumulating all the Text nodes separated by space.",
39
+ editable: true,
40
+ required: false,
41
+ formType: FORM_TYPES.string,
42
+ propType: PROP_TYPES.STRING,
43
+ defaultValue: null,
44
+ },
45
+ selectable: {
46
+ group: GROUPS.advanced,
47
+ name: "selectable",
48
+ label: "selectable",
49
+ description:
50
+ "Lets the user select text, to use the native copy and paste functionality.",
51
+ editable: true,
52
+ required: false,
53
+ formType: FORM_TYPES.boolean,
54
+ propType: PROP_TYPES.BOOLEAN,
55
+ defaultValue: null,
56
+ },
57
+ children: {
58
+ group: GROUPS.data,
59
+ label: "Text",
60
+ description: "Text",
61
+ editable: true,
62
+ required: true,
63
+ formType: FORM_TYPES.string,
64
+ propType: PROP_TYPES.STRING,
65
+ defaultValue: "Your Headline Here",
66
+ },
67
+ },
68
+ };
69
+
70
+ const TEXT_SEED_DATA = {
71
+ ...ELEMENT_SEED_DATA,
72
+ category: COMPONENT_TYPES.text,
73
+ props: {
74
+ children: {
75
+ group: GROUPS.data,
76
+ label: "Text",
77
+ description: "Text",
78
+ defaultValue: "Your Text Here",
79
+ editable: true,
80
+ required: true,
81
+ formType: FORM_TYPES.string,
82
+ propType: PROP_TYPES.STRING,
83
+ },
84
+ },
85
+ };
86
+
87
+ export const SEED_DATA = [
88
+ {
89
+ name: "H1",
90
+ tag: "H1",
91
+ ...HEADING_SEED_DATA,
92
+ },
93
+ {
94
+ name: "H2",
95
+ tag: "H2",
96
+ ...HEADING_SEED_DATA,
97
+ },
98
+ {
99
+ name: "H3",
100
+ tag: "H3",
101
+ ...HEADING_SEED_DATA,
102
+ },
103
+ {
104
+ name: "H4",
105
+ tag: "H4",
106
+ ...HEADING_SEED_DATA,
107
+ },
108
+ {
109
+ name: "H5",
110
+ tag: "H5",
111
+ ...HEADING_SEED_DATA,
112
+ },
113
+ {
114
+ name: "H6",
115
+ tag: "H6",
116
+ ...HEADING_SEED_DATA,
117
+ },
118
+ {
119
+ name: "Anchor",
120
+ tag: "A",
121
+ ...TEXT_SEED_DATA,
122
+ props: {
123
+ href: createTextProp({
124
+ label: "href",
125
+ description: "Specify the URL",
126
+ defaultValue: "",
127
+ }),
128
+ target: {
129
+ group: GROUPS.basic,
130
+ label: "target",
131
+ description: "decide where link should open",
132
+ formType: FORM_TYPES.flatArray,
133
+ defaultValue: "_blank",
134
+ options: ["_blank", "_self", "_parent", "_top"],
135
+ },
136
+ },
137
+ },
138
+ {
139
+ name: "Paragraph",
140
+ tag: "P",
141
+ ...TEXT_SEED_DATA,
142
+ props: {
143
+ // NOTE - Keeping the props commented until we figure out a way to use this props from draftbit side.
144
+ // strong: createBoolProp({
145
+ // label: "Strong",
146
+ // description: "Strong",
147
+ // }),
148
+ // strike: createBoolProp({
149
+ // label: "Strike",
150
+ // description: "Strike through",
151
+ // }),
152
+ // italic: createBoolProp({
153
+ // label: "Italic",
154
+ // description: "Italic Fonts",
155
+ // }),
156
+ // bold: createBoolProp({
157
+ // label: "Bold",
158
+ // description: "Bold",
159
+ // }),
160
+ },
161
+ },
162
+ {
163
+ name: "Code",
164
+ tag: "Code",
165
+ ...TEXT_SEED_DATA,
166
+ },
167
+ {
168
+ name: "Pre",
169
+ tag: "Pre",
170
+ ...TEXT_SEED_DATA,
171
+ },
172
+ {
173
+ name: "Mark",
174
+ tag: "Mark",
175
+ ...TEXT_SEED_DATA,
176
+ },
177
+ {
178
+ name: "BR",
179
+ tag: "BR",
180
+ ...TEXT_SEED_DATA,
181
+ },
182
+ {
183
+ name: "BlockQuote",
184
+ tag: "BlockQuote",
185
+ ...TEXT_SEED_DATA,
186
+ },
187
+ {
188
+ name: "HR",
189
+ tag: "HR",
190
+ ...TEXT_SEED_DATA,
191
+ },
192
+ {
193
+ name: "Time",
194
+ tag: "Time",
195
+ ...ELEMENT_SEED_DATA,
196
+ },
197
+ {
198
+ name: "UL",
199
+ tag: "UL",
200
+ ...ELEMENT_SEED_DATA,
201
+ },
202
+ {
203
+ name: "LI",
204
+ tag: "LI",
205
+ ...ELEMENT_SEED_DATA,
206
+ },
207
+ ];
@@ -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
  };