@draftbit/core 46.2.1-d40959.2 → 46.2.1

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 (387) hide show
  1. package/lib/commonjs/components/Accordion/AccordionItem.js +24 -5
  2. package/lib/commonjs/components/Accordion/AccordionItem.js.map +1 -1
  3. package/lib/commonjs/components/CardContainerShortImage.js +5 -18
  4. package/lib/commonjs/components/CardContainerShortImage.js.map +1 -1
  5. package/lib/commonjs/mappings/ActivityIndicator.js +1 -0
  6. package/lib/commonjs/mappings/ActivityIndicator.js.map +1 -1
  7. package/lib/commonjs/mappings/AvatarEdit.js +1 -0
  8. package/lib/commonjs/mappings/AvatarEdit.js.map +1 -1
  9. package/lib/commonjs/mappings/BlurView.js +1 -0
  10. package/lib/commonjs/mappings/BlurView.js.map +1 -1
  11. package/lib/commonjs/mappings/Button.js +2 -0
  12. package/lib/commonjs/mappings/Button.js.map +1 -1
  13. package/lib/commonjs/mappings/CardBlock.js +1 -0
  14. package/lib/commonjs/mappings/CardBlock.js.map +1 -1
  15. package/lib/commonjs/mappings/CardContainer.js +2 -0
  16. package/lib/commonjs/mappings/CardContainer.js.map +1 -1
  17. package/lib/commonjs/mappings/CardContainerRating.js +2 -0
  18. package/lib/commonjs/mappings/CardContainerRating.js.map +1 -1
  19. package/lib/commonjs/mappings/CardContainerShortImage.js +2 -0
  20. package/lib/commonjs/mappings/CardContainerShortImage.js.map +1 -1
  21. package/lib/commonjs/mappings/CardInline.js +1 -0
  22. package/lib/commonjs/mappings/CardInline.js.map +1 -1
  23. package/lib/commonjs/mappings/Carousel.js +1 -0
  24. package/lib/commonjs/mappings/Carousel.js.map +1 -1
  25. package/lib/commonjs/mappings/Checkbox.js +1 -0
  26. package/lib/commonjs/mappings/Checkbox.js.map +1 -1
  27. package/lib/commonjs/mappings/CheckboxGroup.js +1 -0
  28. package/lib/commonjs/mappings/CheckboxGroup.js.map +1 -1
  29. package/lib/commonjs/mappings/CheckboxRow.js +1 -0
  30. package/lib/commonjs/mappings/CheckboxRow.js.map +1 -1
  31. package/lib/commonjs/mappings/CircleImage.js +1 -0
  32. package/lib/commonjs/mappings/CircleImage.js.map +1 -1
  33. package/lib/commonjs/mappings/Container.js +1 -0
  34. package/lib/commonjs/mappings/Container.js.map +1 -1
  35. package/lib/commonjs/mappings/CustomCode.js.map +1 -1
  36. package/lib/commonjs/mappings/Divider.js +1 -0
  37. package/lib/commonjs/mappings/Divider.js.map +1 -1
  38. package/lib/commonjs/mappings/FAB.js +1 -0
  39. package/lib/commonjs/mappings/FAB.js.map +1 -1
  40. package/lib/commonjs/mappings/Fetch.js +1 -0
  41. package/lib/commonjs/mappings/Fetch.js.map +1 -1
  42. package/lib/commonjs/mappings/FieldSearchBarFull.js +1 -0
  43. package/lib/commonjs/mappings/FieldSearchBarFull.js.map +1 -1
  44. package/lib/commonjs/mappings/FlatList.js +5 -0
  45. package/lib/commonjs/mappings/FlatList.js.map +1 -1
  46. package/lib/commonjs/mappings/HeaderLarge.js +1 -0
  47. package/lib/commonjs/mappings/HeaderLarge.js.map +1 -1
  48. package/lib/commonjs/mappings/HeaderMedium.js +1 -0
  49. package/lib/commonjs/mappings/HeaderMedium.js.map +1 -1
  50. package/lib/commonjs/mappings/HeaderOverline.js +1 -0
  51. package/lib/commonjs/mappings/HeaderOverline.js.map +1 -1
  52. package/lib/commonjs/mappings/Icon.js +1 -0
  53. package/lib/commonjs/mappings/Icon.js.map +1 -1
  54. package/lib/commonjs/mappings/IconButton.js +1 -0
  55. package/lib/commonjs/mappings/IconButton.js.map +1 -1
  56. package/lib/commonjs/mappings/Image.js +1 -0
  57. package/lib/commonjs/mappings/Image.js.map +1 -1
  58. package/lib/commonjs/mappings/ImageBackground.js +1 -0
  59. package/lib/commonjs/mappings/ImageBackground.js.map +1 -1
  60. package/lib/commonjs/mappings/KeyboardAvoidingView.js +1 -0
  61. package/lib/commonjs/mappings/KeyboardAvoidingView.js.map +1 -1
  62. package/lib/commonjs/mappings/KeyboardAwareScrollView.js +1 -0
  63. package/lib/commonjs/mappings/KeyboardAwareScrollView.js.map +1 -1
  64. package/lib/commonjs/mappings/Layout.js +5 -0
  65. package/lib/commonjs/mappings/Layout.js.map +1 -1
  66. package/lib/commonjs/mappings/MapMarker.js.map +1 -1
  67. package/lib/commonjs/mappings/Modal.js +1 -0
  68. package/lib/commonjs/mappings/Modal.js.map +1 -1
  69. package/lib/commonjs/mappings/NumberInput.js +1 -0
  70. package/lib/commonjs/mappings/NumberInput.js.map +1 -1
  71. package/lib/commonjs/mappings/Picker.js +1 -0
  72. package/lib/commonjs/mappings/Picker.js.map +1 -1
  73. package/lib/commonjs/mappings/ProgressBar.js +1 -0
  74. package/lib/commonjs/mappings/ProgressBar.js.map +1 -1
  75. package/lib/commonjs/mappings/ProgressCircle.js +1 -0
  76. package/lib/commonjs/mappings/ProgressCircle.js.map +1 -1
  77. package/lib/commonjs/mappings/ProgressIndicator.js +1 -0
  78. package/lib/commonjs/mappings/ProgressIndicator.js.map +1 -1
  79. package/lib/commonjs/mappings/RadioButton.js +1 -0
  80. package/lib/commonjs/mappings/RadioButton.js.map +1 -1
  81. package/lib/commonjs/mappings/RadioButtonGroup.js +1 -0
  82. package/lib/commonjs/mappings/RadioButtonGroup.js.map +1 -1
  83. package/lib/commonjs/mappings/RadioButtonRow.js +1 -0
  84. package/lib/commonjs/mappings/RadioButtonRow.js.map +1 -1
  85. package/lib/commonjs/mappings/SafeAreaView.js.map +1 -1
  86. package/lib/commonjs/mappings/ScrollView.js +1 -0
  87. package/lib/commonjs/mappings/ScrollView.js.map +1 -1
  88. package/lib/commonjs/mappings/Slider.js +1 -0
  89. package/lib/commonjs/mappings/Slider.js.map +1 -1
  90. package/lib/commonjs/mappings/StarRating.js +1 -0
  91. package/lib/commonjs/mappings/StarRating.js.map +1 -1
  92. package/lib/commonjs/mappings/Stepper.js +1 -0
  93. package/lib/commonjs/mappings/Stepper.js.map +1 -1
  94. package/lib/commonjs/mappings/Surface.js +1 -0
  95. package/lib/commonjs/mappings/Surface.js.map +1 -1
  96. package/lib/commonjs/mappings/Switch.js +2 -0
  97. package/lib/commonjs/mappings/Switch.js.map +1 -1
  98. package/lib/commonjs/mappings/Text.js +2 -0
  99. package/lib/commonjs/mappings/Text.js.map +1 -1
  100. package/lib/commonjs/mappings/TextArea.js +11 -0
  101. package/lib/commonjs/mappings/TextArea.js.map +1 -1
  102. package/lib/commonjs/mappings/TextField.js +1 -0
  103. package/lib/commonjs/mappings/TextField.js.map +1 -1
  104. package/lib/commonjs/mappings/TextInput.js +1 -0
  105. package/lib/commonjs/mappings/TextInput.js.map +1 -1
  106. package/lib/commonjs/mappings/ToggleButton.js +1 -0
  107. package/lib/commonjs/mappings/ToggleButton.js.map +1 -1
  108. package/lib/commonjs/mappings/Touchable.js +1 -0
  109. package/lib/commonjs/mappings/Touchable.js.map +1 -1
  110. package/lib/commonjs/mappings/Video.js +1 -0
  111. package/lib/commonjs/mappings/Video.js.map +1 -1
  112. package/lib/commonjs/mappings/View.js +1 -0
  113. package/lib/commonjs/mappings/View.js.map +1 -1
  114. package/lib/commonjs/mappings/WebView.js +1 -0
  115. package/lib/commonjs/mappings/WebView.js.map +1 -1
  116. package/lib/commonjs/styles/overlay.js.map +1 -1
  117. package/lib/module/mappings/ActivityIndicator.js +2 -1
  118. package/lib/module/mappings/ActivityIndicator.js.map +1 -1
  119. package/lib/module/mappings/AvatarEdit.js +2 -1
  120. package/lib/module/mappings/AvatarEdit.js.map +1 -1
  121. package/lib/module/mappings/BlurView.js +2 -1
  122. package/lib/module/mappings/BlurView.js.map +1 -1
  123. package/lib/module/mappings/Button.js +3 -1
  124. package/lib/module/mappings/Button.js.map +1 -1
  125. package/lib/module/mappings/CardBlock.js +2 -1
  126. package/lib/module/mappings/CardBlock.js.map +1 -1
  127. package/lib/module/mappings/CardContainer.js +3 -1
  128. package/lib/module/mappings/CardContainer.js.map +1 -1
  129. package/lib/module/mappings/CardContainerRating.js +3 -1
  130. package/lib/module/mappings/CardContainerRating.js.map +1 -1
  131. package/lib/module/mappings/CardContainerShortImage.js +3 -1
  132. package/lib/module/mappings/CardContainerShortImage.js.map +1 -1
  133. package/lib/module/mappings/CardInline.js +2 -1
  134. package/lib/module/mappings/CardInline.js.map +1 -1
  135. package/lib/module/mappings/Carousel.js +2 -1
  136. package/lib/module/mappings/Carousel.js.map +1 -1
  137. package/lib/module/mappings/Checkbox.js +2 -1
  138. package/lib/module/mappings/Checkbox.js.map +1 -1
  139. package/lib/module/mappings/CheckboxGroup.js +2 -1
  140. package/lib/module/mappings/CheckboxGroup.js.map +1 -1
  141. package/lib/module/mappings/CheckboxRow.js +2 -1
  142. package/lib/module/mappings/CheckboxRow.js.map +1 -1
  143. package/lib/module/mappings/CircleImage.js +2 -1
  144. package/lib/module/mappings/CircleImage.js.map +1 -1
  145. package/lib/module/mappings/Container.js +2 -1
  146. package/lib/module/mappings/Container.js.map +1 -1
  147. package/lib/module/mappings/Divider.js +2 -1
  148. package/lib/module/mappings/Divider.js.map +1 -1
  149. package/lib/module/mappings/FAB.js +2 -1
  150. package/lib/module/mappings/FAB.js.map +1 -1
  151. package/lib/module/mappings/Fetch.js +2 -1
  152. package/lib/module/mappings/Fetch.js.map +1 -1
  153. package/lib/module/mappings/FieldSearchBarFull.js +2 -1
  154. package/lib/module/mappings/FieldSearchBarFull.js.map +1 -1
  155. package/lib/module/mappings/FlatList.js +6 -1
  156. package/lib/module/mappings/FlatList.js.map +1 -1
  157. package/lib/module/mappings/HeaderLarge.js +2 -1
  158. package/lib/module/mappings/HeaderLarge.js.map +1 -1
  159. package/lib/module/mappings/HeaderMedium.js +2 -1
  160. package/lib/module/mappings/HeaderMedium.js.map +1 -1
  161. package/lib/module/mappings/HeaderOverline.js +2 -1
  162. package/lib/module/mappings/HeaderOverline.js.map +1 -1
  163. package/lib/module/mappings/Icon.js +2 -1
  164. package/lib/module/mappings/Icon.js.map +1 -1
  165. package/lib/module/mappings/IconButton.js +2 -1
  166. package/lib/module/mappings/IconButton.js.map +1 -1
  167. package/lib/module/mappings/Image.js +2 -1
  168. package/lib/module/mappings/Image.js.map +1 -1
  169. package/lib/module/mappings/ImageBackground.js +2 -1
  170. package/lib/module/mappings/ImageBackground.js.map +1 -1
  171. package/lib/module/mappings/KeyboardAvoidingView.js +2 -1
  172. package/lib/module/mappings/KeyboardAvoidingView.js.map +1 -1
  173. package/lib/module/mappings/KeyboardAwareScrollView.js +2 -1
  174. package/lib/module/mappings/KeyboardAwareScrollView.js.map +1 -1
  175. package/lib/module/mappings/Layout.js +6 -1
  176. package/lib/module/mappings/Layout.js.map +1 -1
  177. package/lib/module/mappings/Modal.js +2 -1
  178. package/lib/module/mappings/Modal.js.map +1 -1
  179. package/lib/module/mappings/NumberInput.js +2 -1
  180. package/lib/module/mappings/NumberInput.js.map +1 -1
  181. package/lib/module/mappings/Picker.js +2 -1
  182. package/lib/module/mappings/Picker.js.map +1 -1
  183. package/lib/module/mappings/ProgressBar.js +2 -1
  184. package/lib/module/mappings/ProgressBar.js.map +1 -1
  185. package/lib/module/mappings/ProgressCircle.js +2 -1
  186. package/lib/module/mappings/ProgressCircle.js.map +1 -1
  187. package/lib/module/mappings/ProgressIndicator.js +2 -1
  188. package/lib/module/mappings/ProgressIndicator.js.map +1 -1
  189. package/lib/module/mappings/RadioButton.js +2 -1
  190. package/lib/module/mappings/RadioButton.js.map +1 -1
  191. package/lib/module/mappings/RadioButtonGroup.js +2 -1
  192. package/lib/module/mappings/RadioButtonGroup.js.map +1 -1
  193. package/lib/module/mappings/RadioButtonRow.js +2 -1
  194. package/lib/module/mappings/RadioButtonRow.js.map +1 -1
  195. package/lib/module/mappings/ScrollView.js +2 -1
  196. package/lib/module/mappings/ScrollView.js.map +1 -1
  197. package/lib/module/mappings/Slider.js +2 -1
  198. package/lib/module/mappings/Slider.js.map +1 -1
  199. package/lib/module/mappings/StarRating.js +2 -1
  200. package/lib/module/mappings/StarRating.js.map +1 -1
  201. package/lib/module/mappings/Stepper.js +2 -1
  202. package/lib/module/mappings/Stepper.js.map +1 -1
  203. package/lib/module/mappings/Surface.js +2 -1
  204. package/lib/module/mappings/Surface.js.map +1 -1
  205. package/lib/module/mappings/Switch.js +3 -1
  206. package/lib/module/mappings/Switch.js.map +1 -1
  207. package/lib/module/mappings/Text.js +3 -1
  208. package/lib/module/mappings/Text.js.map +1 -1
  209. package/lib/module/mappings/TextArea.js +11 -0
  210. package/lib/module/mappings/TextArea.js.map +1 -1
  211. package/lib/module/mappings/TextField.js +2 -1
  212. package/lib/module/mappings/TextField.js.map +1 -1
  213. package/lib/module/mappings/TextInput.js +2 -1
  214. package/lib/module/mappings/TextInput.js.map +1 -1
  215. package/lib/module/mappings/ToggleButton.js +2 -1
  216. package/lib/module/mappings/ToggleButton.js.map +1 -1
  217. package/lib/module/mappings/Touchable.js +2 -1
  218. package/lib/module/mappings/Touchable.js.map +1 -1
  219. package/lib/module/mappings/Video.js +2 -1
  220. package/lib/module/mappings/Video.js.map +1 -1
  221. package/lib/module/mappings/View.js +2 -1
  222. package/lib/module/mappings/View.js.map +1 -1
  223. package/lib/module/mappings/WebView.js +2 -1
  224. package/lib/module/mappings/WebView.js.map +1 -1
  225. package/lib/typescript/src/mappings/ActivityIndicator.d.ts +1 -0
  226. package/lib/typescript/src/mappings/AvatarEdit.d.ts +1 -0
  227. package/lib/typescript/src/mappings/BlurView.d.ts +1 -0
  228. package/lib/typescript/src/mappings/Button.d.ts +2 -0
  229. package/lib/typescript/src/mappings/CardBlock.d.ts +101 -0
  230. package/lib/typescript/src/mappings/CardContainer.d.ts +1 -0
  231. package/lib/typescript/src/mappings/CardContainerRating.d.ts +1 -0
  232. package/lib/typescript/src/mappings/CardContainerShortImage.d.ts +2 -0
  233. package/lib/typescript/src/mappings/CardInline.d.ts +1 -0
  234. package/lib/typescript/src/mappings/Carousel.d.ts +1 -0
  235. package/lib/typescript/src/mappings/Checkbox.d.ts +1 -0
  236. package/lib/typescript/src/mappings/CheckboxGroup.d.ts +1 -0
  237. package/lib/typescript/src/mappings/CheckboxRow.d.ts +1 -0
  238. package/lib/typescript/src/mappings/CircleImage.d.ts +1 -0
  239. package/lib/typescript/src/mappings/Container.d.ts +1 -0
  240. package/lib/typescript/src/mappings/Divider.d.ts +1 -0
  241. package/lib/typescript/src/mappings/FAB.d.ts +1 -0
  242. package/lib/typescript/src/mappings/Fetch.d.ts +1 -0
  243. package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts +1 -0
  244. package/lib/typescript/src/mappings/FlatList.d.ts +11 -0
  245. package/lib/typescript/src/mappings/HeaderLarge.d.ts +1 -0
  246. package/lib/typescript/src/mappings/HeaderMedium.d.ts +1 -0
  247. package/lib/typescript/src/mappings/HeaderOverline.d.ts +1 -0
  248. package/lib/typescript/src/mappings/Icon.d.ts +1 -0
  249. package/lib/typescript/src/mappings/IconButton.d.ts +1 -0
  250. package/lib/typescript/src/mappings/Image.d.ts +1 -0
  251. package/lib/typescript/src/mappings/ImageBackground.d.ts +1 -0
  252. package/lib/typescript/src/mappings/KeyboardAvoidingView.d.ts +1 -0
  253. package/lib/typescript/src/mappings/KeyboardAwareScrollView.d.ts +1 -0
  254. package/lib/typescript/src/mappings/Layout.d.ts +4 -0
  255. package/lib/typescript/src/mappings/Modal.d.ts +1 -0
  256. package/lib/typescript/src/mappings/NumberInput.d.ts +1 -0
  257. package/lib/typescript/src/mappings/Picker.d.ts +1 -0
  258. package/lib/typescript/src/mappings/ProgressBar.d.ts +1 -0
  259. package/lib/typescript/src/mappings/ProgressCircle.d.ts +1 -0
  260. package/lib/typescript/src/mappings/ProgressIndicator.d.ts +1 -0
  261. package/lib/typescript/src/mappings/RadioButton.d.ts +1 -0
  262. package/lib/typescript/src/mappings/RadioButtonGroup.d.ts +1 -0
  263. package/lib/typescript/src/mappings/RadioButtonRow.d.ts +1 -0
  264. package/lib/typescript/src/mappings/ScrollView.d.ts +1 -0
  265. package/lib/typescript/src/mappings/Slider.d.ts +1 -0
  266. package/lib/typescript/src/mappings/StarRating.d.ts +1 -0
  267. package/lib/typescript/src/mappings/Stepper.d.ts +1 -0
  268. package/lib/typescript/src/mappings/Surface.d.ts +1 -0
  269. package/lib/typescript/src/mappings/Switch.d.ts +2 -0
  270. package/lib/typescript/src/mappings/Text.d.ts +2 -0
  271. package/lib/typescript/src/mappings/TextArea.d.ts +11 -0
  272. package/lib/typescript/src/mappings/TextField.d.ts +2 -0
  273. package/lib/typescript/src/mappings/TextInput.d.ts +1 -0
  274. package/lib/typescript/src/mappings/ToggleButton.d.ts +1 -0
  275. package/lib/typescript/src/mappings/Touchable.d.ts +1 -0
  276. package/lib/typescript/src/mappings/Video.d.ts +1 -0
  277. package/lib/typescript/src/mappings/View.d.ts +1 -0
  278. package/lib/typescript/src/mappings/WebView.d.ts +1 -0
  279. package/package.json +3 -3
  280. package/src/mappings/ActivityIndicator.js +6 -1
  281. package/src/mappings/ActivityIndicator.ts +6 -0
  282. package/src/mappings/AvatarEdit.js +2 -1
  283. package/src/mappings/AvatarEdit.ts +2 -0
  284. package/src/mappings/BlurView.js +2 -1
  285. package/src/mappings/BlurView.ts +2 -0
  286. package/src/mappings/Button.js +19 -1
  287. package/src/mappings/Button.ts +19 -0
  288. package/src/mappings/CardBlock.js +2 -1
  289. package/src/mappings/CardBlock.ts +2 -0
  290. package/src/mappings/CardContainer.js +3 -1
  291. package/src/mappings/CardContainer.ts +3 -0
  292. package/src/mappings/CardContainerRating.js +3 -1
  293. package/src/mappings/CardContainerRating.ts +3 -0
  294. package/src/mappings/CardContainerShortImage.js +3 -1
  295. package/src/mappings/CardContainerShortImage.ts +3 -0
  296. package/src/mappings/CardInline.js +2 -1
  297. package/src/mappings/CardInline.ts +2 -0
  298. package/src/mappings/Carousel.js +2 -1
  299. package/src/mappings/Carousel.ts +2 -0
  300. package/src/mappings/Checkbox.js +2 -1
  301. package/src/mappings/Checkbox.ts +2 -0
  302. package/src/mappings/CheckboxGroup.js +2 -1
  303. package/src/mappings/CheckboxGroup.ts +2 -0
  304. package/src/mappings/CheckboxRow.js +6 -1
  305. package/src/mappings/CheckboxRow.ts +6 -0
  306. package/src/mappings/CircleImage.js +2 -1
  307. package/src/mappings/CircleImage.ts +2 -0
  308. package/src/mappings/Container.js +2 -1
  309. package/src/mappings/Container.ts +2 -0
  310. package/src/mappings/Divider.js +2 -1
  311. package/src/mappings/Divider.ts +2 -0
  312. package/src/mappings/FAB.js +2 -1
  313. package/src/mappings/FAB.ts +2 -0
  314. package/src/mappings/Fetch.js +2 -1
  315. package/src/mappings/Fetch.ts +2 -1
  316. package/src/mappings/FieldSearchBarFull.js +2 -1
  317. package/src/mappings/FieldSearchBarFull.ts +2 -0
  318. package/src/mappings/FlatList.js +6 -1
  319. package/src/mappings/FlatList.ts +6 -0
  320. package/src/mappings/HeaderLarge.js +2 -1
  321. package/src/mappings/HeaderLarge.ts +2 -0
  322. package/src/mappings/HeaderMedium.js +2 -1
  323. package/src/mappings/HeaderMedium.ts +2 -0
  324. package/src/mappings/HeaderOverline.js +2 -1
  325. package/src/mappings/HeaderOverline.ts +2 -0
  326. package/src/mappings/Icon.js +8 -1
  327. package/src/mappings/Icon.ts +8 -0
  328. package/src/mappings/IconButton.js +6 -1
  329. package/src/mappings/IconButton.ts +6 -0
  330. package/src/mappings/Image.js +7 -1
  331. package/src/mappings/Image.ts +7 -0
  332. package/src/mappings/ImageBackground.js +2 -1
  333. package/src/mappings/ImageBackground.ts +2 -0
  334. package/src/mappings/KeyboardAvoidingView.js +2 -1
  335. package/src/mappings/KeyboardAvoidingView.ts +2 -0
  336. package/src/mappings/KeyboardAwareScrollView.js +2 -1
  337. package/src/mappings/KeyboardAwareScrollView.ts +2 -0
  338. package/src/mappings/Layout.js +6 -1
  339. package/src/mappings/Layout.ts +6 -0
  340. package/src/mappings/Modal.js +2 -1
  341. package/src/mappings/Modal.ts +2 -0
  342. package/src/mappings/NumberInput.js +10 -1
  343. package/src/mappings/NumberInput.ts +10 -0
  344. package/src/mappings/Picker.js +10 -1
  345. package/src/mappings/Picker.ts +10 -0
  346. package/src/mappings/ProgressBar.js +2 -1
  347. package/src/mappings/ProgressBar.ts +2 -0
  348. package/src/mappings/ProgressCircle.js +2 -1
  349. package/src/mappings/ProgressCircle.ts +2 -0
  350. package/src/mappings/ProgressIndicator.js +2 -1
  351. package/src/mappings/ProgressIndicator.ts +2 -0
  352. package/src/mappings/RadioButton.js +2 -1
  353. package/src/mappings/RadioButton.ts +2 -0
  354. package/src/mappings/RadioButtonGroup.js +2 -1
  355. package/src/mappings/RadioButtonGroup.ts +2 -0
  356. package/src/mappings/RadioButtonRow.js +6 -1
  357. package/src/mappings/RadioButtonRow.ts +6 -0
  358. package/src/mappings/ScrollView.js +2 -1
  359. package/src/mappings/ScrollView.ts +6 -1
  360. package/src/mappings/Slider.js +2 -1
  361. package/src/mappings/Slider.ts +2 -0
  362. package/src/mappings/StarRating.js +2 -1
  363. package/src/mappings/StarRating.ts +2 -0
  364. package/src/mappings/Stepper.js +2 -1
  365. package/src/mappings/Stepper.ts +2 -0
  366. package/src/mappings/Surface.js +2 -1
  367. package/src/mappings/Surface.ts +6 -1
  368. package/src/mappings/Switch.js +7 -1
  369. package/src/mappings/Switch.ts +8 -0
  370. package/src/mappings/Text.js +13 -1
  371. package/src/mappings/Text.ts +13 -0
  372. package/src/mappings/TextArea.js +11 -0
  373. package/src/mappings/TextArea.ts +11 -0
  374. package/src/mappings/TextField.js +10 -1
  375. package/src/mappings/TextField.ts +10 -0
  376. package/src/mappings/TextInput.js +10 -1
  377. package/src/mappings/TextInput.ts +10 -0
  378. package/src/mappings/ToggleButton.js +6 -1
  379. package/src/mappings/ToggleButton.ts +6 -0
  380. package/src/mappings/Touchable.js +6 -1
  381. package/src/mappings/Touchable.ts +11 -1
  382. package/src/mappings/Video.js +8 -1
  383. package/src/mappings/Video.ts +8 -0
  384. package/src/mappings/View.js +2 -1
  385. package/src/mappings/View.ts +2 -0
  386. package/src/mappings/WebView.js +6 -1
  387. package/src/mappings/WebView.ts +6 -0
@@ -1,4 +1,4 @@
1
- import { GROUPS, FORM_TYPES, PROP_TYPES, COMPONENT_TYPES, createElevationType, createNumColumnsType, } from "@draftbit/types";
1
+ import { GROUPS, FORM_TYPES, PROP_TYPES, COMPONENT_TYPES, createElevationType, createNumColumnsType, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
2
2
  const SEED_DATA_PROPS = {
3
3
  image: {
4
4
  label: "Image",
@@ -78,6 +78,7 @@ export const SEED_DATA = [
78
78
  tag: "CardContainer",
79
79
  description: "An elevated card with a title and description, that takes up half of its container.",
80
80
  category: COMPONENT_TYPES.card,
81
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
81
82
  layout: null,
82
83
  props: {
83
84
  ...SEED_DATA_PROPS,
@@ -91,6 +92,7 @@ export const SEED_DATA = [
91
92
  tag: "CardContainer",
92
93
  description: "An elevated card with a title and description, that takes up its full container.",
93
94
  category: COMPONENT_TYPES.card,
95
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
94
96
  layout: null,
95
97
  props: {
96
98
  ...SEED_DATA_PROPS,
@@ -5,6 +5,7 @@ import {
5
5
  COMPONENT_TYPES,
6
6
  createElevationType,
7
7
  createNumColumnsType,
8
+ BLOCK_STYLES_SECTIONS,
8
9
  } from "@draftbit/types";
9
10
 
10
11
  const SEED_DATA_PROPS = {
@@ -88,6 +89,7 @@ export const SEED_DATA = [
88
89
  description:
89
90
  "An elevated card with a title and description, that takes up half of its container.",
90
91
  category: COMPONENT_TYPES.card,
92
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
91
93
  layout: null,
92
94
  props: {
93
95
  ...SEED_DATA_PROPS,
@@ -102,6 +104,7 @@ export const SEED_DATA = [
102
104
  description:
103
105
  "An elevated card with a title and description, that takes up its full container.",
104
106
  category: COMPONENT_TYPES.card,
107
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
105
108
  layout: null,
106
109
  props: {
107
110
  ...SEED_DATA_PROPS,
@@ -1,4 +1,4 @@
1
- import { GROUPS, FORM_TYPES, PROP_TYPES, COMPONENT_TYPES, createElevationType, } from "@draftbit/types";
1
+ import { GROUPS, FORM_TYPES, PROP_TYPES, COMPONENT_TYPES, createElevationType, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
2
2
  const SEED_DATA_PROPS = {
3
3
  image: {
4
4
  group: GROUPS.data,
@@ -82,6 +82,7 @@ export const SEED_DATA = [
82
82
  tag: "CardContainerRating",
83
83
  description: "An elevated card with a title and description, that takes up half of its container.",
84
84
  category: COMPONENT_TYPES.card,
85
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
85
86
  preview_image_url: "{CLOUDINARY_URL}/Card_ContainerRating_2col.png",
86
87
  supports_list_render: true,
87
88
  props: {
@@ -104,6 +105,7 @@ export const SEED_DATA = [
104
105
  tag: "CardContainerRating",
105
106
  description: "An elevated card with a title and description, that takes up its full container.",
106
107
  category: COMPONENT_TYPES.card,
108
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
107
109
  preview_image_url: "{CLOUDINARY_URL}/Card_ContainerRating_3col.png",
108
110
  supports_list_render: true,
109
111
  props: {
@@ -4,6 +4,7 @@ import {
4
4
  PROP_TYPES,
5
5
  COMPONENT_TYPES,
6
6
  createElevationType,
7
+ BLOCK_STYLES_SECTIONS,
7
8
  } from "@draftbit/types";
8
9
 
9
10
  const SEED_DATA_PROPS = {
@@ -91,6 +92,7 @@ export const SEED_DATA = [
91
92
  description:
92
93
  "An elevated card with a title and description, that takes up half of its container.",
93
94
  category: COMPONENT_TYPES.card,
95
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
94
96
  preview_image_url: "{CLOUDINARY_URL}/Card_ContainerRating_2col.png",
95
97
  supports_list_render: true,
96
98
  props: {
@@ -114,6 +116,7 @@ export const SEED_DATA = [
114
116
  description:
115
117
  "An elevated card with a title and description, that takes up its full container.",
116
118
  category: COMPONENT_TYPES.card,
119
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
117
120
  preview_image_url: "{CLOUDINARY_URL}/Card_ContainerRating_3col.png",
118
121
  supports_list_render: true,
119
122
  props: {
@@ -1,10 +1,11 @@
1
- import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, createElevationType, } from "@draftbit/types";
1
+ import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, createElevationType, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
2
2
  export const SEED_DATA = [
3
3
  {
4
4
  name: "Short Card (Left)",
5
5
  tag: "CardContainerShortImage",
6
6
  description: "An elevated card with a left aligned image and a title and subtitle",
7
7
  category: COMPONENT_TYPES.card,
8
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
8
9
  preview_image_url: "{CLOUDINARY_URL}/Card_ContainerShortLeftImage.png",
9
10
  supports_list_render: true,
10
11
  props: {
@@ -68,6 +69,7 @@ export const SEED_DATA = [
68
69
  tag: "CardContainerShortImage",
69
70
  description: "An elevated card with a right aligned image and a title and subtitle",
70
71
  category: COMPONENT_TYPES.card,
72
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
71
73
  preview_image_url: "{CLOUDINARY_URL}/Card_ContainerShortRightImage.png",
72
74
  supports_list_render: true,
73
75
  props: {
@@ -4,6 +4,7 @@ import {
4
4
  FORM_TYPES,
5
5
  PROP_TYPES,
6
6
  createElevationType,
7
+ BLOCK_STYLES_SECTIONS,
7
8
  } from "@draftbit/types";
8
9
 
9
10
  export const SEED_DATA = [
@@ -13,6 +14,7 @@ export const SEED_DATA = [
13
14
  description:
14
15
  "An elevated card with a left aligned image and a title and subtitle",
15
16
  category: COMPONENT_TYPES.card,
17
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
16
18
  preview_image_url: "{CLOUDINARY_URL}/Card_ContainerShortLeftImage.png",
17
19
  supports_list_render: true,
18
20
  props: {
@@ -77,6 +79,7 @@ export const SEED_DATA = [
77
79
  description:
78
80
  "An elevated card with a right aligned image and a title and subtitle",
79
81
  category: COMPONENT_TYPES.card,
82
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
80
83
  preview_image_url: "{CLOUDINARY_URL}/Card_ContainerShortRightImage.png",
81
84
  supports_list_render: true,
82
85
  props: {
@@ -1,9 +1,10 @@
1
- import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, createElevationType, } from "@draftbit/types";
1
+ import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, createElevationType, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Inline Card",
4
4
  tag: "CardInline",
5
5
  description: "An elevated card with image and a title and description overlayed, that takes up the full width of its container.",
6
6
  category: COMPONENT_TYPES.card,
7
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
7
8
  layout: {},
8
9
  props: {
9
10
  image: {
@@ -4,6 +4,7 @@ import {
4
4
  FORM_TYPES,
5
5
  PROP_TYPES,
6
6
  createElevationType,
7
+ BLOCK_STYLES_SECTIONS,
7
8
  } from "@draftbit/types";
8
9
 
9
10
  export const SEED_DATA = {
@@ -12,6 +13,7 @@ export const SEED_DATA = {
12
13
  description:
13
14
  "An elevated card with image and a title and description overlayed, that takes up the full width of its container.",
14
15
  category: COMPONENT_TYPES.card,
16
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
15
17
  layout: {},
16
18
  props: {
17
19
  image: {
@@ -1,9 +1,10 @@
1
- import { COMPONENT_TYPES, createResizeModeProp, createColorProp, } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createResizeModeProp, createColorProp, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
2
2
  export const SEED_DATA = [
3
3
  {
4
4
  name: "Carousel",
5
5
  tag: "Carousel",
6
6
  category: COMPONENT_TYPES.deprecated,
7
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
7
8
  description: "A horizontal scrolling carousel of images",
8
9
  layout: {
9
10
  height: 250,
@@ -2,6 +2,7 @@ import {
2
2
  COMPONENT_TYPES,
3
3
  createResizeModeProp,
4
4
  createColorProp,
5
+ BLOCK_STYLES_SECTIONS,
5
6
  } from "@draftbit/types";
6
7
 
7
8
  export const SEED_DATA = [
@@ -9,6 +10,7 @@ export const SEED_DATA = [
9
10
  name: "Carousel",
10
11
  tag: "Carousel",
11
12
  category: COMPONENT_TYPES.deprecated,
13
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
12
14
  description: "A horizontal scrolling carousel of images",
13
15
  layout: {
14
16
  height: 250,
@@ -1,8 +1,9 @@
1
- import { COMPONENT_TYPES, createBoolProp, createIconProp, createStaticNumberProp, createColorProp, createFieldNameProp, GROUPS, Triggers, } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createBoolProp, createIconProp, createStaticNumberProp, createColorProp, createFieldNameProp, GROUPS, Triggers, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Checkbox",
4
4
  tag: "Checkbox",
5
5
  category: COMPONENT_TYPES.input,
6
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
6
7
  triggers: [Triggers.OnPress, Triggers.OnCheck, Triggers.OnUncheck],
7
8
  props: {
8
9
  fieldName: createFieldNameProp({
@@ -7,12 +7,14 @@ import {
7
7
  createFieldNameProp,
8
8
  GROUPS,
9
9
  Triggers,
10
+ BLOCK_STYLES_SECTIONS,
10
11
  } from "@draftbit/types";
11
12
 
12
13
  export const SEED_DATA = {
13
14
  name: "Checkbox",
14
15
  tag: "Checkbox",
15
16
  category: COMPONENT_TYPES.input,
17
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
16
18
  triggers: [Triggers.OnPress, Triggers.OnCheck, Triggers.OnUncheck],
17
19
  props: {
18
20
  fieldName: createFieldNameProp({
@@ -1,10 +1,11 @@
1
- import { GROUPS, COMPONENT_TYPES, FORM_TYPES, createTextProp, PROP_TYPES, createFieldNameProp, createDirectionProp, Triggers, } from "@draftbit/types";
1
+ import { GROUPS, COMPONENT_TYPES, FORM_TYPES, createTextProp, PROP_TYPES, createFieldNameProp, createDirectionProp, Triggers, StylesPanelSections, } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Checkbox Group",
4
4
  tag: "CheckboxGroup",
5
5
  category: COMPONENT_TYPES.deprecated,
6
6
  layout: {},
7
7
  triggers: [Triggers.OnValueChange],
8
+ stylesPanelSections: [StylesPanelSections.Margins],
8
9
  props: {
9
10
  direction: createDirectionProp(),
10
11
  values: createTextProp({
@@ -7,6 +7,7 @@ import {
7
7
  createFieldNameProp,
8
8
  createDirectionProp,
9
9
  Triggers,
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
  category: COMPONENT_TYPES.deprecated,
16
17
  layout: {},
17
18
  triggers: [Triggers.OnValueChange],
19
+ stylesPanelSections: [StylesPanelSections.Margins],
18
20
  props: {
19
21
  direction: createDirectionProp(),
20
22
  values: createTextProp({
@@ -1,8 +1,13 @@
1
- import { createBoolProp, createTextProp, createTextStyle, createRowDirectionProp, createFieldNameProp, createIconProp, createStaticNumberProp, COMPONENT_TYPES, Triggers, createColorProp, } from "@draftbit/types";
1
+ import { createBoolProp, createTextProp, createTextStyle, createRowDirectionProp, createFieldNameProp, createIconProp, createStaticNumberProp, COMPONENT_TYPES, Triggers, createColorProp, StylesPanelSections, } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Checkbox Row",
4
4
  tag: "CheckboxRow",
5
5
  category: COMPONENT_TYPES.input,
6
+ stylesPanelSections: [
7
+ StylesPanelSections.Typography,
8
+ StylesPanelSections.Margins,
9
+ StylesPanelSections.Effects,
10
+ ],
6
11
  layout: {
7
12
  minHeight: 50,
8
13
  },
@@ -9,12 +9,18 @@ import {
9
9
  COMPONENT_TYPES,
10
10
  Triggers,
11
11
  createColorProp,
12
+ StylesPanelSections,
12
13
  } from "@draftbit/types";
13
14
 
14
15
  export const SEED_DATA = {
15
16
  name: "Checkbox Row",
16
17
  tag: "CheckboxRow",
17
18
  category: COMPONENT_TYPES.input,
19
+ stylesPanelSections: [
20
+ StylesPanelSections.Typography,
21
+ StylesPanelSections.Margins,
22
+ StylesPanelSections.Effects,
23
+ ],
18
24
  layout: {
19
25
  minHeight: 50,
20
26
  },
@@ -1,9 +1,10 @@
1
- import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, createImageProp, } from "@draftbit/types";
1
+ import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, createImageProp, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Circle Image",
4
4
  tag: "CircleImage",
5
5
  description: "A circle image",
6
6
  category: COMPONENT_TYPES.media,
7
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
7
8
  props: {
8
9
  source: createImageProp(),
9
10
  size: {
@@ -4,6 +4,7 @@ import {
4
4
  FORM_TYPES,
5
5
  PROP_TYPES,
6
6
  createImageProp,
7
+ BLOCK_STYLES_SECTIONS,
7
8
  } from "@draftbit/types";
8
9
 
9
10
  export const SEED_DATA = {
@@ -11,6 +12,7 @@ export const SEED_DATA = {
11
12
  tag: "CircleImage",
12
13
  description: "A circle image",
13
14
  category: COMPONENT_TYPES.media,
15
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
14
16
  props: {
15
17
  source: createImageProp(),
16
18
  size: {
@@ -1,9 +1,10 @@
1
- import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, createElevationType, createImageProp, createResizeModeProp, } from "@draftbit/types";
1
+ import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, createElevationType, createImageProp, createResizeModeProp, CONTAINER_COMPONENT_STYLES_SECTIONS, } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Container",
4
4
  tag: "Container",
5
5
  description: "A container component with gutter padding",
6
6
  category: COMPONENT_TYPES.deprecated,
7
+ stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
7
8
  layout: {
8
9
  height: 250,
9
10
  },
@@ -6,6 +6,7 @@ import {
6
6
  createElevationType,
7
7
  createImageProp,
8
8
  createResizeModeProp,
9
+ CONTAINER_COMPONENT_STYLES_SECTIONS,
9
10
  } from "@draftbit/types";
10
11
 
11
12
  export const SEED_DATA = {
@@ -13,6 +14,7 @@ export const SEED_DATA = {
13
14
  tag: "Container",
14
15
  description: "A container component with gutter padding",
15
16
  category: COMPONENT_TYPES.deprecated,
17
+ stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
16
18
  layout: {
17
19
  height: 250,
18
20
  },
@@ -1,9 +1,10 @@
1
- import { GROUPS, FORM_TYPES, PROP_TYPES, COMPONENT_TYPES, } from "@draftbit/types";
1
+ import { GROUPS, FORM_TYPES, PROP_TYPES, COMPONENT_TYPES, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
2
2
  export const SEED_DATA = [
3
3
  {
4
4
  name: "Divider",
5
5
  tag: "Divider",
6
6
  category: COMPONENT_TYPES.layout,
7
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
7
8
  description: "A horizontal line used to divide content",
8
9
  preview_image_url: "{CLOUDINARY_URL}/Divider.png",
9
10
  supports_list_render: false,
@@ -3,6 +3,7 @@ import {
3
3
  FORM_TYPES,
4
4
  PROP_TYPES,
5
5
  COMPONENT_TYPES,
6
+ BLOCK_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
  name: "Divider",
11
12
  tag: "Divider",
12
13
  category: COMPONENT_TYPES.layout,
14
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
13
15
  description: "A horizontal line used to divide content",
14
16
  preview_image_url: "{CLOUDINARY_URL}/Divider.png",
15
17
  supports_list_render: false,
@@ -1,8 +1,9 @@
1
- import { COMPONENT_TYPES, createIconProp, createColorProp, GROUPS, createBoolProp, createIconSizeProp, createActionProp, Triggers, } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createIconProp, createColorProp, GROUPS, createBoolProp, createIconSizeProp, createActionProp, Triggers, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "FAB",
4
4
  tag: "FAB",
5
5
  category: COMPONENT_TYPES.button,
6
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
6
7
  description: "A mini round icon FAB",
7
8
  layout: {},
8
9
  triggers: [Triggers.OnPress],
@@ -7,12 +7,14 @@ import {
7
7
  createIconSizeProp,
8
8
  createActionProp,
9
9
  Triggers,
10
+ BLOCK_STYLES_SECTIONS,
10
11
  } from "@draftbit/types";
11
12
 
12
13
  export const SEED_DATA = {
13
14
  name: "FAB",
14
15
  tag: "FAB",
15
16
  category: COMPONENT_TYPES.button,
17
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
16
18
  description: "A mini round icon FAB",
17
19
  layout: {},
18
20
  triggers: [Triggers.OnPress],
@@ -1,10 +1,11 @@
1
- import { COMPONENT_TYPES } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, StylesPanelSections } from "@draftbit/types";
2
2
  /* TODO remove, still used inside the builder in a weird way */
3
3
  export const SEED_DATA = {
4
4
  name: "Fetch",
5
5
  tag: "Fetch",
6
6
  description: "Rest API Declarative Fetch component. Uses react-request internally",
7
7
  category: COMPONENT_TYPES.data,
8
+ stylesPanelSections: [StylesPanelSections.NoStyles],
8
9
  layout: {
9
10
  minHeight: 40,
10
11
  },
@@ -1,4 +1,4 @@
1
- import { COMPONENT_TYPES } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, StylesPanelSections } from "@draftbit/types";
2
2
  /* TODO remove, still used inside the builder in a weird way */
3
3
  export const SEED_DATA = {
4
4
  name: "Fetch",
@@ -6,6 +6,7 @@ export const SEED_DATA = {
6
6
  description:
7
7
  "Rest API Declarative Fetch component. Uses react-request internally",
8
8
  category: COMPONENT_TYPES.data,
9
+ stylesPanelSections: [StylesPanelSections.NoStyles],
9
10
  layout: {
10
11
  minHeight: 40,
11
12
  },
@@ -1,10 +1,11 @@
1
- import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, FIELD_NAME, Triggers, } from "@draftbit/types";
1
+ import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, FIELD_NAME, Triggers, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
2
2
  export const SEED_DATA = [
3
3
  {
4
4
  name: "Search Bar",
5
5
  tag: "FieldSearchBarFull",
6
6
  description: "A search bar with accompanying search icon and clear button.",
7
7
  category: COMPONENT_TYPES.input,
8
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
8
9
  preview_image_url: "{CLOUDINARY_URL}/Field_SearchBar_Full.png",
9
10
  supports_list_render: false,
10
11
  triggers: [Triggers.OnChange],
@@ -5,6 +5,7 @@ import {
5
5
  PROP_TYPES,
6
6
  FIELD_NAME,
7
7
  Triggers,
8
+ BLOCK_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
  tag: "FieldSearchBarFull",
14
15
  description: "A search bar with accompanying search icon and clear button.",
15
16
  category: COMPONENT_TYPES.input,
17
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
16
18
  preview_image_url: "{CLOUDINARY_URL}/Field_SearchBar_Full.png",
17
19
  supports_list_render: false,
18
20
  triggers: [Triggers.OnChange], // TODO Triggers.OnSubmit for multiple triggers
@@ -1,9 +1,10 @@
1
- import { COMPONENT_TYPES, createNumColumnsType, createStaticBoolProp, } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createNumColumnsType, createStaticBoolProp, CONTAINER_COMPONENT_STYLES_SECTIONS, } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "List",
4
4
  tag: "FlatList",
5
5
  description: "A basic List component",
6
6
  category: COMPONENT_TYPES.data,
7
+ stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
7
8
  layout: {
8
9
  flex: 1,
9
10
  },
@@ -12,6 +13,10 @@ export const SEED_DATA = {
12
13
  label: "Horizontal",
13
14
  description: "Render list horizontally",
14
15
  }),
16
+ inverted: createStaticBoolProp({
17
+ label: "Inverted",
18
+ description: "If true, reverses the direction.",
19
+ }),
15
20
  numColumns: createNumColumnsType({
16
21
  editable: true,
17
22
  }),
@@ -2,6 +2,7 @@ import {
2
2
  COMPONENT_TYPES,
3
3
  createNumColumnsType,
4
4
  createStaticBoolProp,
5
+ CONTAINER_COMPONENT_STYLES_SECTIONS,
5
6
  } from "@draftbit/types";
6
7
 
7
8
  export const SEED_DATA = {
@@ -9,6 +10,7 @@ export const SEED_DATA = {
9
10
  tag: "FlatList",
10
11
  description: "A basic List component",
11
12
  category: COMPONENT_TYPES.data,
13
+ stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
12
14
  layout: {
13
15
  flex: 1,
14
16
  },
@@ -17,6 +19,10 @@ export const SEED_DATA = {
17
19
  label: "Horizontal",
18
20
  description: "Render list horizontally",
19
21
  }),
22
+ inverted: createStaticBoolProp({
23
+ label: "Inverted",
24
+ description: "If true, reverses the direction.",
25
+ }),
20
26
  numColumns: createNumColumnsType({
21
27
  editable: true,
22
28
  }),
@@ -1,10 +1,11 @@
1
- import { COMPONENT_TYPES, createIconProp, createTextProp, createActionProp, Triggers, } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createIconProp, createTextProp, createActionProp, Triggers, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
2
2
  export const SEED_DATA = [
3
3
  {
4
4
  name: "Header Large",
5
5
  tag: "HeaderLarge",
6
6
  description: "A large header with an optional touchable right aligned text and icon.",
7
7
  category: COMPONENT_TYPES.header,
8
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
8
9
  layout: {},
9
10
  triggers: [Triggers.OnPress],
10
11
  props: {
@@ -4,6 +4,7 @@ import {
4
4
  createTextProp,
5
5
  createActionProp,
6
6
  Triggers,
7
+ BLOCK_STYLES_SECTIONS,
7
8
  } from "@draftbit/types";
8
9
 
9
10
  export const SEED_DATA = [
@@ -13,6 +14,7 @@ export const SEED_DATA = [
13
14
  description:
14
15
  "A large header with an optional touchable right aligned text and icon.",
15
16
  category: COMPONENT_TYPES.header,
17
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
16
18
  layout: {},
17
19
  triggers: [Triggers.OnPress],
18
20
  props: {
@@ -1,10 +1,11 @@
1
- import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, } from "@draftbit/types";
1
+ import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
2
2
  export const SEED_DATA = [
3
3
  {
4
4
  name: "Header Medium",
5
5
  tag: "HeaderMedium",
6
6
  description: "A medium header with an optional touchable right aligned text and icon.",
7
7
  category: COMPONENT_TYPES.header,
8
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
8
9
  preview_image_url: "{CLOUDINARY_URL}/Header_HeadlineMediumIconText.png",
9
10
  supports_list_render: false,
10
11
  props: {
@@ -3,6 +3,7 @@ import {
3
3
  COMPONENT_TYPES,
4
4
  FORM_TYPES,
5
5
  PROP_TYPES,
6
+ BLOCK_STYLES_SECTIONS,
6
7
  } from "@draftbit/types";
7
8
 
8
9
  export const SEED_DATA = [
@@ -12,6 +13,7 @@ export const SEED_DATA = [
12
13
  description:
13
14
  "A medium header with an optional touchable right aligned text and icon.",
14
15
  category: COMPONENT_TYPES.header,
16
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
15
17
  preview_image_url: "{CLOUDINARY_URL}/Header_HeadlineMediumIconText.png",
16
18
  supports_list_render: false,
17
19
  props: {
@@ -1,10 +1,11 @@
1
- import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, } from "@draftbit/types";
1
+ import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
2
2
  export const SEED_DATA = [
3
3
  {
4
4
  name: "Header Overline",
5
5
  tag: "HeaderOverline",
6
6
  description: "A small header with an optional touchable right aligned text and icon.",
7
7
  category: COMPONENT_TYPES.header,
8
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
8
9
  preview_image_url: "{CLOUDINARY_URL}/Header_OverlineIconText.png",
9
10
  supports_list_render: false,
10
11
  props: {
@@ -3,6 +3,7 @@ import {
3
3
  COMPONENT_TYPES,
4
4
  FORM_TYPES,
5
5
  PROP_TYPES,
6
+ BLOCK_STYLES_SECTIONS,
6
7
  } from "@draftbit/types";
7
8
 
8
9
  export const SEED_DATA = [
@@ -12,6 +13,7 @@ export const SEED_DATA = [
12
13
  description:
13
14
  "A small header with an optional touchable right aligned text and icon.",
14
15
  category: COMPONENT_TYPES.header,
16
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
15
17
  preview_image_url: "{CLOUDINARY_URL}/Header_OverlineIconText.png",
16
18
  supports_list_render: false,
17
19
  props: {
@@ -1,9 +1,16 @@
1
- import { COMPONENT_TYPES, GROUPS, createNumberProp, createColorProp, createIconProp, } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, GROUPS, createNumberProp, createColorProp, createIconProp, StylesPanelSections, } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Icon",
4
4
  tag: "Icon",
5
5
  description: "An icon",
6
6
  category: COMPONENT_TYPES.basic,
7
+ stylesPanelSections: [
8
+ StylesPanelSections.Size,
9
+ StylesPanelSections.Margins,
10
+ StylesPanelSections.Background,
11
+ StylesPanelSections.Position,
12
+ StylesPanelSections.Effects,
13
+ ],
7
14
  layout: {},
8
15
  props: {
9
16
  name: {
@@ -4,6 +4,7 @@ import {
4
4
  createNumberProp,
5
5
  createColorProp,
6
6
  createIconProp,
7
+ StylesPanelSections,
7
8
  } from "@draftbit/types";
8
9
 
9
10
  export const SEED_DATA = {
@@ -11,6 +12,13 @@ export const SEED_DATA = {
11
12
  tag: "Icon",
12
13
  description: "An icon",
13
14
  category: COMPONENT_TYPES.basic,
15
+ stylesPanelSections: [
16
+ StylesPanelSections.Size,
17
+ StylesPanelSections.Margins,
18
+ StylesPanelSections.Background,
19
+ StylesPanelSections.Position,
20
+ StylesPanelSections.Effects,
21
+ ],
14
22
  layout: {},
15
23
  props: {
16
24
  name: {