@draftbit/core 46.2.1-de631b.0 → 46.2.2-088abf.0

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 (386) hide show
  1. package/lib/commonjs/mappings/ActivityIndicator.js +1 -0
  2. package/lib/commonjs/mappings/ActivityIndicator.js.map +1 -1
  3. package/lib/commonjs/mappings/AvatarEdit.js +1 -0
  4. package/lib/commonjs/mappings/AvatarEdit.js.map +1 -1
  5. package/lib/commonjs/mappings/BlurView.js +1 -0
  6. package/lib/commonjs/mappings/BlurView.js.map +1 -1
  7. package/lib/commonjs/mappings/Button.js +2 -0
  8. package/lib/commonjs/mappings/Button.js.map +1 -1
  9. package/lib/commonjs/mappings/CardBlock.js +1 -0
  10. package/lib/commonjs/mappings/CardBlock.js.map +1 -1
  11. package/lib/commonjs/mappings/CardContainer.js +2 -0
  12. package/lib/commonjs/mappings/CardContainer.js.map +1 -1
  13. package/lib/commonjs/mappings/CardContainerRating.js +2 -0
  14. package/lib/commonjs/mappings/CardContainerRating.js.map +1 -1
  15. package/lib/commonjs/mappings/CardContainerShortImage.js +2 -0
  16. package/lib/commonjs/mappings/CardContainerShortImage.js.map +1 -1
  17. package/lib/commonjs/mappings/CardInline.js +1 -0
  18. package/lib/commonjs/mappings/CardInline.js.map +1 -1
  19. package/lib/commonjs/mappings/Carousel.js +1 -0
  20. package/lib/commonjs/mappings/Carousel.js.map +1 -1
  21. package/lib/commonjs/mappings/Checkbox.js +1 -0
  22. package/lib/commonjs/mappings/Checkbox.js.map +1 -1
  23. package/lib/commonjs/mappings/CheckboxGroup.js +1 -0
  24. package/lib/commonjs/mappings/CheckboxGroup.js.map +1 -1
  25. package/lib/commonjs/mappings/CheckboxRow.js +1 -0
  26. package/lib/commonjs/mappings/CheckboxRow.js.map +1 -1
  27. package/lib/commonjs/mappings/CircleImage.js +1 -0
  28. package/lib/commonjs/mappings/CircleImage.js.map +1 -1
  29. package/lib/commonjs/mappings/Container.js +1 -0
  30. package/lib/commonjs/mappings/Container.js.map +1 -1
  31. package/lib/commonjs/mappings/DatePicker.js +10 -0
  32. package/lib/commonjs/mappings/DatePicker.js.map +1 -1
  33. package/lib/commonjs/mappings/Divider.js +1 -0
  34. package/lib/commonjs/mappings/Divider.js.map +1 -1
  35. package/lib/commonjs/mappings/FAB.js +1 -0
  36. package/lib/commonjs/mappings/FAB.js.map +1 -1
  37. package/lib/commonjs/mappings/Fetch.js +1 -0
  38. package/lib/commonjs/mappings/Fetch.js.map +1 -1
  39. package/lib/commonjs/mappings/FieldSearchBarFull.js +1 -0
  40. package/lib/commonjs/mappings/FieldSearchBarFull.js.map +1 -1
  41. package/lib/commonjs/mappings/FlatList.js +5 -0
  42. package/lib/commonjs/mappings/FlatList.js.map +1 -1
  43. package/lib/commonjs/mappings/HeaderLarge.js +1 -0
  44. package/lib/commonjs/mappings/HeaderLarge.js.map +1 -1
  45. package/lib/commonjs/mappings/HeaderMedium.js +1 -0
  46. package/lib/commonjs/mappings/HeaderMedium.js.map +1 -1
  47. package/lib/commonjs/mappings/HeaderOverline.js +1 -0
  48. package/lib/commonjs/mappings/HeaderOverline.js.map +1 -1
  49. package/lib/commonjs/mappings/Icon.js +1 -0
  50. package/lib/commonjs/mappings/Icon.js.map +1 -1
  51. package/lib/commonjs/mappings/IconButton.js +1 -0
  52. package/lib/commonjs/mappings/IconButton.js.map +1 -1
  53. package/lib/commonjs/mappings/Image.js +1 -0
  54. package/lib/commonjs/mappings/Image.js.map +1 -1
  55. package/lib/commonjs/mappings/ImageBackground.js +1 -0
  56. package/lib/commonjs/mappings/ImageBackground.js.map +1 -1
  57. package/lib/commonjs/mappings/KeyboardAvoidingView.js +1 -0
  58. package/lib/commonjs/mappings/KeyboardAvoidingView.js.map +1 -1
  59. package/lib/commonjs/mappings/KeyboardAwareScrollView.js +1 -0
  60. package/lib/commonjs/mappings/KeyboardAwareScrollView.js.map +1 -1
  61. package/lib/commonjs/mappings/Layout.js +5 -0
  62. package/lib/commonjs/mappings/Layout.js.map +1 -1
  63. package/lib/commonjs/mappings/Modal.js +1 -0
  64. package/lib/commonjs/mappings/Modal.js.map +1 -1
  65. package/lib/commonjs/mappings/NumberInput.js +1 -0
  66. package/lib/commonjs/mappings/NumberInput.js.map +1 -1
  67. package/lib/commonjs/mappings/Picker.js +1 -0
  68. package/lib/commonjs/mappings/Picker.js.map +1 -1
  69. package/lib/commonjs/mappings/ProgressBar.js +1 -0
  70. package/lib/commonjs/mappings/ProgressBar.js.map +1 -1
  71. package/lib/commonjs/mappings/ProgressCircle.js +1 -0
  72. package/lib/commonjs/mappings/ProgressCircle.js.map +1 -1
  73. package/lib/commonjs/mappings/ProgressIndicator.js +1 -0
  74. package/lib/commonjs/mappings/ProgressIndicator.js.map +1 -1
  75. package/lib/commonjs/mappings/RadioButton.js +1 -0
  76. package/lib/commonjs/mappings/RadioButton.js.map +1 -1
  77. package/lib/commonjs/mappings/RadioButtonGroup.js +1 -0
  78. package/lib/commonjs/mappings/RadioButtonGroup.js.map +1 -1
  79. package/lib/commonjs/mappings/RadioButtonRow.js +1 -0
  80. package/lib/commonjs/mappings/RadioButtonRow.js.map +1 -1
  81. package/lib/commonjs/mappings/ScrollView.js +1 -0
  82. package/lib/commonjs/mappings/ScrollView.js.map +1 -1
  83. package/lib/commonjs/mappings/Slider.js +1 -0
  84. package/lib/commonjs/mappings/Slider.js.map +1 -1
  85. package/lib/commonjs/mappings/StarRating.js +1 -0
  86. package/lib/commonjs/mappings/StarRating.js.map +1 -1
  87. package/lib/commonjs/mappings/Stepper.js +1 -0
  88. package/lib/commonjs/mappings/Stepper.js.map +1 -1
  89. package/lib/commonjs/mappings/Surface.js +1 -0
  90. package/lib/commonjs/mappings/Surface.js.map +1 -1
  91. package/lib/commonjs/mappings/Switch.js +2 -0
  92. package/lib/commonjs/mappings/Switch.js.map +1 -1
  93. package/lib/commonjs/mappings/Text.js +35 -26
  94. package/lib/commonjs/mappings/Text.js.map +1 -1
  95. package/lib/commonjs/mappings/TextArea.js +11 -0
  96. package/lib/commonjs/mappings/TextArea.js.map +1 -1
  97. package/lib/commonjs/mappings/TextField.js +1 -0
  98. package/lib/commonjs/mappings/TextField.js.map +1 -1
  99. package/lib/commonjs/mappings/TextInput.js +1 -0
  100. package/lib/commonjs/mappings/TextInput.js.map +1 -1
  101. package/lib/commonjs/mappings/ToggleButton.js +1 -0
  102. package/lib/commonjs/mappings/ToggleButton.js.map +1 -1
  103. package/lib/commonjs/mappings/Touchable.js +1 -0
  104. package/lib/commonjs/mappings/Touchable.js.map +1 -1
  105. package/lib/commonjs/mappings/Video.js +1 -0
  106. package/lib/commonjs/mappings/Video.js.map +1 -1
  107. package/lib/commonjs/mappings/View.js +1 -0
  108. package/lib/commonjs/mappings/View.js.map +1 -1
  109. package/lib/commonjs/mappings/WebView.js +66 -0
  110. package/lib/commonjs/mappings/WebView.js.map +1 -1
  111. package/lib/module/mappings/ActivityIndicator.js +2 -1
  112. package/lib/module/mappings/ActivityIndicator.js.map +1 -1
  113. package/lib/module/mappings/AvatarEdit.js +2 -1
  114. package/lib/module/mappings/AvatarEdit.js.map +1 -1
  115. package/lib/module/mappings/BlurView.js +2 -1
  116. package/lib/module/mappings/BlurView.js.map +1 -1
  117. package/lib/module/mappings/Button.js +3 -1
  118. package/lib/module/mappings/Button.js.map +1 -1
  119. package/lib/module/mappings/CardBlock.js +2 -1
  120. package/lib/module/mappings/CardBlock.js.map +1 -1
  121. package/lib/module/mappings/CardContainer.js +3 -1
  122. package/lib/module/mappings/CardContainer.js.map +1 -1
  123. package/lib/module/mappings/CardContainerRating.js +3 -1
  124. package/lib/module/mappings/CardContainerRating.js.map +1 -1
  125. package/lib/module/mappings/CardContainerShortImage.js +3 -1
  126. package/lib/module/mappings/CardContainerShortImage.js.map +1 -1
  127. package/lib/module/mappings/CardInline.js +2 -1
  128. package/lib/module/mappings/CardInline.js.map +1 -1
  129. package/lib/module/mappings/Carousel.js +2 -1
  130. package/lib/module/mappings/Carousel.js.map +1 -1
  131. package/lib/module/mappings/Checkbox.js +2 -1
  132. package/lib/module/mappings/Checkbox.js.map +1 -1
  133. package/lib/module/mappings/CheckboxGroup.js +2 -1
  134. package/lib/module/mappings/CheckboxGroup.js.map +1 -1
  135. package/lib/module/mappings/CheckboxRow.js +2 -1
  136. package/lib/module/mappings/CheckboxRow.js.map +1 -1
  137. package/lib/module/mappings/CircleImage.js +2 -1
  138. package/lib/module/mappings/CircleImage.js.map +1 -1
  139. package/lib/module/mappings/Container.js +2 -1
  140. package/lib/module/mappings/Container.js.map +1 -1
  141. package/lib/module/mappings/DatePicker.js +10 -0
  142. package/lib/module/mappings/DatePicker.js.map +1 -1
  143. package/lib/module/mappings/Divider.js +2 -1
  144. package/lib/module/mappings/Divider.js.map +1 -1
  145. package/lib/module/mappings/FAB.js +2 -1
  146. package/lib/module/mappings/FAB.js.map +1 -1
  147. package/lib/module/mappings/Fetch.js +2 -1
  148. package/lib/module/mappings/Fetch.js.map +1 -1
  149. package/lib/module/mappings/FieldSearchBarFull.js +2 -1
  150. package/lib/module/mappings/FieldSearchBarFull.js.map +1 -1
  151. package/lib/module/mappings/FlatList.js +6 -1
  152. package/lib/module/mappings/FlatList.js.map +1 -1
  153. package/lib/module/mappings/HeaderLarge.js +2 -1
  154. package/lib/module/mappings/HeaderLarge.js.map +1 -1
  155. package/lib/module/mappings/HeaderMedium.js +2 -1
  156. package/lib/module/mappings/HeaderMedium.js.map +1 -1
  157. package/lib/module/mappings/HeaderOverline.js +2 -1
  158. package/lib/module/mappings/HeaderOverline.js.map +1 -1
  159. package/lib/module/mappings/Icon.js +2 -1
  160. package/lib/module/mappings/Icon.js.map +1 -1
  161. package/lib/module/mappings/IconButton.js +2 -1
  162. package/lib/module/mappings/IconButton.js.map +1 -1
  163. package/lib/module/mappings/Image.js +2 -1
  164. package/lib/module/mappings/Image.js.map +1 -1
  165. package/lib/module/mappings/ImageBackground.js +2 -1
  166. package/lib/module/mappings/ImageBackground.js.map +1 -1
  167. package/lib/module/mappings/KeyboardAvoidingView.js +2 -1
  168. package/lib/module/mappings/KeyboardAvoidingView.js.map +1 -1
  169. package/lib/module/mappings/KeyboardAwareScrollView.js +2 -1
  170. package/lib/module/mappings/KeyboardAwareScrollView.js.map +1 -1
  171. package/lib/module/mappings/Layout.js +6 -1
  172. package/lib/module/mappings/Layout.js.map +1 -1
  173. package/lib/module/mappings/Modal.js +2 -1
  174. package/lib/module/mappings/Modal.js.map +1 -1
  175. package/lib/module/mappings/NumberInput.js +2 -1
  176. package/lib/module/mappings/NumberInput.js.map +1 -1
  177. package/lib/module/mappings/Picker.js +2 -1
  178. package/lib/module/mappings/Picker.js.map +1 -1
  179. package/lib/module/mappings/ProgressBar.js +2 -1
  180. package/lib/module/mappings/ProgressBar.js.map +1 -1
  181. package/lib/module/mappings/ProgressCircle.js +2 -1
  182. package/lib/module/mappings/ProgressCircle.js.map +1 -1
  183. package/lib/module/mappings/ProgressIndicator.js +2 -1
  184. package/lib/module/mappings/ProgressIndicator.js.map +1 -1
  185. package/lib/module/mappings/RadioButton.js +2 -1
  186. package/lib/module/mappings/RadioButton.js.map +1 -1
  187. package/lib/module/mappings/RadioButtonGroup.js +2 -1
  188. package/lib/module/mappings/RadioButtonGroup.js.map +1 -1
  189. package/lib/module/mappings/RadioButtonRow.js +2 -1
  190. package/lib/module/mappings/RadioButtonRow.js.map +1 -1
  191. package/lib/module/mappings/ScrollView.js +2 -1
  192. package/lib/module/mappings/ScrollView.js.map +1 -1
  193. package/lib/module/mappings/Slider.js +2 -1
  194. package/lib/module/mappings/Slider.js.map +1 -1
  195. package/lib/module/mappings/StarRating.js +2 -1
  196. package/lib/module/mappings/StarRating.js.map +1 -1
  197. package/lib/module/mappings/Stepper.js +2 -1
  198. package/lib/module/mappings/Stepper.js.map +1 -1
  199. package/lib/module/mappings/Surface.js +2 -1
  200. package/lib/module/mappings/Surface.js.map +1 -1
  201. package/lib/module/mappings/Switch.js +3 -1
  202. package/lib/module/mappings/Switch.js.map +1 -1
  203. package/lib/module/mappings/Text.js +36 -27
  204. package/lib/module/mappings/Text.js.map +1 -1
  205. package/lib/module/mappings/TextArea.js +11 -0
  206. package/lib/module/mappings/TextArea.js.map +1 -1
  207. package/lib/module/mappings/TextField.js +2 -1
  208. package/lib/module/mappings/TextField.js.map +1 -1
  209. package/lib/module/mappings/TextInput.js +2 -1
  210. package/lib/module/mappings/TextInput.js.map +1 -1
  211. package/lib/module/mappings/ToggleButton.js +2 -1
  212. package/lib/module/mappings/ToggleButton.js.map +1 -1
  213. package/lib/module/mappings/Touchable.js +2 -1
  214. package/lib/module/mappings/Touchable.js.map +1 -1
  215. package/lib/module/mappings/Video.js +2 -1
  216. package/lib/module/mappings/Video.js.map +1 -1
  217. package/lib/module/mappings/View.js +2 -1
  218. package/lib/module/mappings/View.js.map +1 -1
  219. package/lib/module/mappings/WebView.js +67 -1
  220. package/lib/module/mappings/WebView.js.map +1 -1
  221. package/lib/typescript/src/mappings/ActivityIndicator.d.ts +1 -0
  222. package/lib/typescript/src/mappings/AvatarEdit.d.ts +1 -0
  223. package/lib/typescript/src/mappings/BlurView.d.ts +1 -0
  224. package/lib/typescript/src/mappings/Button.d.ts +2 -0
  225. package/lib/typescript/src/mappings/CardBlock.d.ts +101 -0
  226. package/lib/typescript/src/mappings/CardContainer.d.ts +1 -0
  227. package/lib/typescript/src/mappings/CardContainerRating.d.ts +1 -0
  228. package/lib/typescript/src/mappings/CardContainerShortImage.d.ts +2 -0
  229. package/lib/typescript/src/mappings/CardInline.d.ts +1 -0
  230. package/lib/typescript/src/mappings/Carousel.d.ts +1 -0
  231. package/lib/typescript/src/mappings/Checkbox.d.ts +1 -0
  232. package/lib/typescript/src/mappings/CheckboxGroup.d.ts +1 -0
  233. package/lib/typescript/src/mappings/CheckboxRow.d.ts +1 -0
  234. package/lib/typescript/src/mappings/CircleImage.d.ts +1 -0
  235. package/lib/typescript/src/mappings/Container.d.ts +1 -0
  236. package/lib/typescript/src/mappings/DatePicker.d.ts +10 -0
  237. package/lib/typescript/src/mappings/Divider.d.ts +1 -0
  238. package/lib/typescript/src/mappings/FAB.d.ts +1 -0
  239. package/lib/typescript/src/mappings/Fetch.d.ts +1 -0
  240. package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts +1 -0
  241. package/lib/typescript/src/mappings/FlatList.d.ts +11 -0
  242. package/lib/typescript/src/mappings/HeaderLarge.d.ts +1 -0
  243. package/lib/typescript/src/mappings/HeaderMedium.d.ts +1 -0
  244. package/lib/typescript/src/mappings/HeaderOverline.d.ts +1 -0
  245. package/lib/typescript/src/mappings/Icon.d.ts +1 -0
  246. package/lib/typescript/src/mappings/IconButton.d.ts +1 -0
  247. package/lib/typescript/src/mappings/Image.d.ts +1 -0
  248. package/lib/typescript/src/mappings/ImageBackground.d.ts +1 -0
  249. package/lib/typescript/src/mappings/KeyboardAvoidingView.d.ts +1 -0
  250. package/lib/typescript/src/mappings/KeyboardAwareScrollView.d.ts +1 -0
  251. package/lib/typescript/src/mappings/Layout.d.ts +4 -0
  252. package/lib/typescript/src/mappings/Modal.d.ts +1 -0
  253. package/lib/typescript/src/mappings/NumberInput.d.ts +1 -0
  254. package/lib/typescript/src/mappings/Picker.d.ts +1 -0
  255. package/lib/typescript/src/mappings/ProgressBar.d.ts +1 -0
  256. package/lib/typescript/src/mappings/ProgressCircle.d.ts +1 -0
  257. package/lib/typescript/src/mappings/ProgressIndicator.d.ts +1 -0
  258. package/lib/typescript/src/mappings/RadioButton.d.ts +1 -0
  259. package/lib/typescript/src/mappings/RadioButtonGroup.d.ts +1 -0
  260. package/lib/typescript/src/mappings/RadioButtonRow.d.ts +1 -0
  261. package/lib/typescript/src/mappings/ScrollView.d.ts +1 -0
  262. package/lib/typescript/src/mappings/Slider.d.ts +1 -0
  263. package/lib/typescript/src/mappings/StarRating.d.ts +1 -0
  264. package/lib/typescript/src/mappings/Stepper.d.ts +1 -0
  265. package/lib/typescript/src/mappings/Surface.d.ts +1 -0
  266. package/lib/typescript/src/mappings/Switch.d.ts +2 -0
  267. package/lib/typescript/src/mappings/Text.d.ts +26 -10
  268. package/lib/typescript/src/mappings/TextArea.d.ts +11 -0
  269. package/lib/typescript/src/mappings/TextField.d.ts +2 -0
  270. package/lib/typescript/src/mappings/TextInput.d.ts +1 -0
  271. package/lib/typescript/src/mappings/ToggleButton.d.ts +1 -0
  272. package/lib/typescript/src/mappings/Touchable.d.ts +1 -0
  273. package/lib/typescript/src/mappings/Video.d.ts +1 -0
  274. package/lib/typescript/src/mappings/View.d.ts +1 -0
  275. package/lib/typescript/src/mappings/WebView.d.ts +103 -0
  276. package/package.json +3 -3
  277. package/src/mappings/ActivityIndicator.js +6 -1
  278. package/src/mappings/ActivityIndicator.ts +6 -0
  279. package/src/mappings/AvatarEdit.js +2 -1
  280. package/src/mappings/AvatarEdit.ts +2 -0
  281. package/src/mappings/BlurView.js +2 -1
  282. package/src/mappings/BlurView.ts +2 -0
  283. package/src/mappings/Button.js +19 -1
  284. package/src/mappings/Button.ts +19 -0
  285. package/src/mappings/CardBlock.js +2 -1
  286. package/src/mappings/CardBlock.ts +2 -0
  287. package/src/mappings/CardContainer.js +3 -1
  288. package/src/mappings/CardContainer.ts +3 -0
  289. package/src/mappings/CardContainerRating.js +3 -1
  290. package/src/mappings/CardContainerRating.ts +3 -0
  291. package/src/mappings/CardContainerShortImage.js +3 -1
  292. package/src/mappings/CardContainerShortImage.ts +3 -0
  293. package/src/mappings/CardInline.js +2 -1
  294. package/src/mappings/CardInline.ts +2 -0
  295. package/src/mappings/Carousel.js +2 -1
  296. package/src/mappings/Carousel.ts +2 -0
  297. package/src/mappings/Checkbox.js +2 -1
  298. package/src/mappings/Checkbox.ts +2 -0
  299. package/src/mappings/CheckboxGroup.js +2 -1
  300. package/src/mappings/CheckboxGroup.ts +2 -0
  301. package/src/mappings/CheckboxRow.js +6 -1
  302. package/src/mappings/CheckboxRow.ts +6 -0
  303. package/src/mappings/CircleImage.js +2 -1
  304. package/src/mappings/CircleImage.ts +2 -0
  305. package/src/mappings/Container.js +2 -1
  306. package/src/mappings/Container.ts +2 -0
  307. package/src/mappings/DatePicker.js +10 -0
  308. package/src/mappings/DatePicker.ts +10 -0
  309. package/src/mappings/Divider.js +2 -1
  310. package/src/mappings/Divider.ts +2 -0
  311. package/src/mappings/FAB.js +2 -1
  312. package/src/mappings/FAB.ts +2 -0
  313. package/src/mappings/Fetch.js +2 -1
  314. package/src/mappings/Fetch.ts +2 -1
  315. package/src/mappings/FieldSearchBarFull.js +2 -1
  316. package/src/mappings/FieldSearchBarFull.ts +2 -0
  317. package/src/mappings/FlatList.js +6 -1
  318. package/src/mappings/FlatList.ts +6 -0
  319. package/src/mappings/HeaderLarge.js +2 -1
  320. package/src/mappings/HeaderLarge.ts +2 -0
  321. package/src/mappings/HeaderMedium.js +2 -1
  322. package/src/mappings/HeaderMedium.ts +2 -0
  323. package/src/mappings/HeaderOverline.js +2 -1
  324. package/src/mappings/HeaderOverline.ts +2 -0
  325. package/src/mappings/Icon.js +8 -1
  326. package/src/mappings/Icon.ts +8 -0
  327. package/src/mappings/IconButton.js +6 -1
  328. package/src/mappings/IconButton.ts +6 -0
  329. package/src/mappings/Image.js +7 -1
  330. package/src/mappings/Image.ts +7 -0
  331. package/src/mappings/ImageBackground.js +2 -1
  332. package/src/mappings/ImageBackground.ts +2 -0
  333. package/src/mappings/KeyboardAvoidingView.js +2 -1
  334. package/src/mappings/KeyboardAvoidingView.ts +2 -0
  335. package/src/mappings/KeyboardAwareScrollView.js +2 -1
  336. package/src/mappings/KeyboardAwareScrollView.ts +2 -0
  337. package/src/mappings/Layout.js +6 -1
  338. package/src/mappings/Layout.ts +6 -0
  339. package/src/mappings/Modal.js +2 -1
  340. package/src/mappings/Modal.ts +2 -0
  341. package/src/mappings/NumberInput.js +10 -1
  342. package/src/mappings/NumberInput.ts +10 -0
  343. package/src/mappings/Picker.js +10 -1
  344. package/src/mappings/Picker.ts +10 -0
  345. package/src/mappings/ProgressBar.js +2 -1
  346. package/src/mappings/ProgressBar.ts +2 -0
  347. package/src/mappings/ProgressCircle.js +2 -1
  348. package/src/mappings/ProgressCircle.ts +2 -0
  349. package/src/mappings/ProgressIndicator.js +2 -1
  350. package/src/mappings/ProgressIndicator.ts +2 -0
  351. package/src/mappings/RadioButton.js +2 -1
  352. package/src/mappings/RadioButton.ts +2 -0
  353. package/src/mappings/RadioButtonGroup.js +2 -1
  354. package/src/mappings/RadioButtonGroup.ts +2 -0
  355. package/src/mappings/RadioButtonRow.js +6 -1
  356. package/src/mappings/RadioButtonRow.ts +6 -0
  357. package/src/mappings/ScrollView.js +2 -1
  358. package/src/mappings/ScrollView.ts +6 -1
  359. package/src/mappings/Slider.js +2 -1
  360. package/src/mappings/Slider.ts +2 -0
  361. package/src/mappings/StarRating.js +2 -1
  362. package/src/mappings/StarRating.ts +2 -0
  363. package/src/mappings/Stepper.js +2 -1
  364. package/src/mappings/Stepper.ts +2 -0
  365. package/src/mappings/Surface.js +2 -1
  366. package/src/mappings/Surface.ts +6 -1
  367. package/src/mappings/Switch.js +7 -1
  368. package/src/mappings/Switch.ts +8 -0
  369. package/src/mappings/Text.js +46 -27
  370. package/src/mappings/Text.ts +47 -27
  371. package/src/mappings/TextArea.js +11 -0
  372. package/src/mappings/TextArea.ts +11 -0
  373. package/src/mappings/TextField.js +10 -1
  374. package/src/mappings/TextField.ts +10 -0
  375. package/src/mappings/TextInput.js +10 -1
  376. package/src/mappings/TextInput.ts +10 -0
  377. package/src/mappings/ToggleButton.js +6 -1
  378. package/src/mappings/ToggleButton.ts +6 -0
  379. package/src/mappings/Touchable.js +6 -1
  380. package/src/mappings/Touchable.ts +11 -1
  381. package/src/mappings/Video.js +8 -1
  382. package/src/mappings/Video.ts +8 -0
  383. package/src/mappings/View.js +2 -1
  384. package/src/mappings/View.ts +2 -0
  385. package/src/mappings/WebView.js +71 -1
  386. package/src/mappings/WebView.ts +83 -0
@@ -1,9 +1,10 @@
1
- import { COMPONENT_TYPES, GROUPS, createNumberProp, createColorProp, createFieldNameProp, createIconProp, Triggers, } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, GROUPS, createNumberProp, createColorProp, createFieldNameProp, createIconProp, Triggers, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Slider",
4
4
  tag: "Slider",
5
5
  description: "A component used to set a value in a range",
6
6
  category: COMPONENT_TYPES.input,
7
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
7
8
  layout: {
8
9
  marginLeft: 12,
9
10
  marginRight: 12,
@@ -6,6 +6,7 @@ import {
6
6
  createFieldNameProp,
7
7
  createIconProp,
8
8
  Triggers,
9
+ BLOCK_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: "Slider",
14
15
  description: "A component used to set a value in a range",
15
16
  category: COMPONENT_TYPES.input,
17
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
16
18
  layout: {
17
19
  marginLeft: 12,
18
20
  marginRight: 12,
@@ -1,9 +1,10 @@
1
- import { COMPONENT_TYPES, createStaticNumberProp, createFieldNameProp, createStaticBoolProp, Triggers, createColorProp, } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createStaticNumberProp, createFieldNameProp, createStaticBoolProp, Triggers, createColorProp, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Star Rating",
4
4
  tag: "StarRating",
5
5
  description: "A star rating component",
6
6
  category: COMPONENT_TYPES.button,
7
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
7
8
  triggers: [Triggers.OnPress],
8
9
  props: {
9
10
  starSize: createStaticNumberProp({
@@ -5,6 +5,7 @@ import {
5
5
  createStaticBoolProp,
6
6
  Triggers,
7
7
  createColorProp,
8
+ BLOCK_STYLES_SECTIONS,
8
9
  } from "@draftbit/types";
9
10
 
10
11
  export const SEED_DATA = {
@@ -12,6 +13,7 @@ export const SEED_DATA = {
12
13
  tag: "StarRating",
13
14
  description: "A star rating component",
14
15
  category: COMPONENT_TYPES.button,
16
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
15
17
  triggers: [Triggers.OnPress],
16
18
  props: {
17
19
  starSize: createStaticNumberProp({
@@ -1,10 +1,11 @@
1
- import { COMPONENT_TYPES, createIconSizeProp, createColorProp, createFieldNameProp, createStaticNumberProp, Triggers, } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createIconSizeProp, createColorProp, createFieldNameProp, createStaticNumberProp, Triggers, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
2
2
  export const SEED_DATA = [
3
3
  {
4
4
  name: "Stepper",
5
5
  tag: "Stepper",
6
6
  description: "A component used to control the quantity of something",
7
7
  category: COMPONENT_TYPES.input,
8
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
8
9
  layout: {},
9
10
  triggers: [Triggers.OnChange],
10
11
  props: {
@@ -5,6 +5,7 @@ import {
5
5
  createFieldNameProp,
6
6
  createStaticNumberProp,
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: "Stepper",
14
15
  description: "A component used to control the quantity of something",
15
16
  category: COMPONENT_TYPES.input,
17
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
16
18
  layout: {},
17
19
  triggers: [Triggers.OnChange],
18
20
  props: {
@@ -1,9 +1,10 @@
1
- import { COMPONENT_TYPES, createElevationType } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, createElevationType, CONTAINER_COMPONENT_STYLES_SECTIONS, } from "@draftbit/types";
2
2
  export const SEED_DATA = {
3
3
  name: "Surface",
4
4
  tag: "Surface",
5
5
  description: "An elevated container",
6
6
  category: COMPONENT_TYPES.layout,
7
+ stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
7
8
  layout: {
8
9
  minHeight: 40,
9
10
  },
@@ -1,10 +1,15 @@
1
- import { COMPONENT_TYPES, createElevationType } from "@draftbit/types";
1
+ import {
2
+ COMPONENT_TYPES,
3
+ createElevationType,
4
+ CONTAINER_COMPONENT_STYLES_SECTIONS,
5
+ } from "@draftbit/types";
2
6
 
3
7
  export const SEED_DATA = {
4
8
  name: "Surface",
5
9
  tag: "Surface",
6
10
  description: "An elevated container",
7
11
  category: COMPONENT_TYPES.layout,
12
+ stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS,
8
13
  layout: {
9
14
  minHeight: 40,
10
15
  },
@@ -1,10 +1,11 @@
1
- import { COMPONENT_TYPES, GROUPS, createBoolProp, createColorProp, createFieldNameProp, createTextProp, createRowDirectionProp, Triggers, } from "@draftbit/types";
1
+ import { COMPONENT_TYPES, GROUPS, createBoolProp, createColorProp, createFieldNameProp, createTextProp, createRowDirectionProp, Triggers, StylesPanelSections, BLOCK_STYLES_SECTIONS, } from "@draftbit/types";
2
2
  const SEED_DATA_TRIGGERS = [Triggers.OnValueChange];
3
3
  export const SEED_DATA = [
4
4
  {
5
5
  name: "Switch",
6
6
  tag: "Switch",
7
7
  category: COMPONENT_TYPES.input,
8
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
8
9
  layout: {},
9
10
  triggers: SEED_DATA_TRIGGERS,
10
11
  props: {
@@ -35,6 +36,11 @@ export const SEED_DATA = [
35
36
  name: "Switch Row",
36
37
  tag: "SwitchRow",
37
38
  category: COMPONENT_TYPES.input,
39
+ stylesPanelSections: [
40
+ StylesPanelSections.Typography,
41
+ StylesPanelSections.Margins,
42
+ StylesPanelSections.Effects,
43
+ ],
38
44
  layout: {
39
45
  marginLeft: 0,
40
46
  marginRight: 0,
@@ -7,6 +7,8 @@ import {
7
7
  createTextProp,
8
8
  createRowDirectionProp,
9
9
  Triggers,
10
+ StylesPanelSections,
11
+ BLOCK_STYLES_SECTIONS,
10
12
  } from "@draftbit/types";
11
13
  const SEED_DATA_TRIGGERS = [Triggers.OnValueChange];
12
14
  export const SEED_DATA = [
@@ -14,6 +16,7 @@ export const SEED_DATA = [
14
16
  name: "Switch",
15
17
  tag: "Switch",
16
18
  category: COMPONENT_TYPES.input,
19
+ stylesPanelSections: BLOCK_STYLES_SECTIONS,
17
20
  layout: {},
18
21
  triggers: SEED_DATA_TRIGGERS,
19
22
  props: {
@@ -44,6 +47,11 @@ export const SEED_DATA = [
44
47
  name: "Switch Row",
45
48
  tag: "SwitchRow",
46
49
  category: COMPONENT_TYPES.input,
50
+ stylesPanelSections: [
51
+ StylesPanelSections.Typography,
52
+ StylesPanelSections.Margins,
53
+ StylesPanelSections.Effects,
54
+ ],
47
55
  layout: {
48
56
  marginLeft: 0,
49
57
  marginRight: 0,
@@ -1,11 +1,22 @@
1
- import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, Triggers, createActionProp, createTextProp, } from "@draftbit/types";
1
+ import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, Triggers, createActionProp, createTextProp, StylesPanelSections, } from "@draftbit/types";
2
2
  const SEED_DATA_PROPS = {
3
3
  accessibilityLabel: {
4
4
  group: GROUPS.accessibility,
5
5
  name: "accessibilityLabel",
6
6
  label: "accessibilityLabel",
7
7
  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.",
8
- editable: false,
8
+ editable: true,
9
+ required: false,
10
+ formType: FORM_TYPES.string,
11
+ propType: PROP_TYPES.STRING,
12
+ defaultValue: null,
13
+ },
14
+ accessibilityHint: {
15
+ group: GROUPS.accessibility,
16
+ name: "accessibilityHint",
17
+ label: "accessibilityHint",
18
+ description: "An accessibility hint helps users understand what will happen when they perform an action on the accessibility element when that result is not clear from the accessibility label.",
19
+ editable: true,
9
20
  required: false,
10
21
  formType: FORM_TYPES.string,
11
22
  propType: PROP_TYPES.STRING,
@@ -29,7 +40,7 @@ const SEED_DATA_PROPS = {
29
40
  "imagebutton",
30
41
  "adjustable",
31
42
  ],
32
- editable: false,
43
+ editable: true,
33
44
  required: false,
34
45
  formType: FORM_TYPES.flatArray,
35
46
  propType: PROP_TYPES.STRING,
@@ -39,8 +50,8 @@ const SEED_DATA_PROPS = {
39
50
  group: GROUPS.accessibility,
40
51
  name: "accessible",
41
52
  label: "accessible",
42
- description: "When set to true, indicates that the view is an accessibility element. The default value for a Text element is true.See the Accessibility guide for more information.",
43
- editable: false,
53
+ description: "When set to true, indicates that the view is an accessibility element. The default value for a Text element is true. See the Accessibility guide for more information.",
54
+ editable: true,
44
55
  required: false,
45
56
  formType: FORM_TYPES.boolean,
46
57
  propType: PROP_TYPES.BOOLEAN,
@@ -51,7 +62,7 @@ const SEED_DATA_PROPS = {
51
62
  name: "adjustsFontSizeToFit",
52
63
  label: "adjustsFontSizeToFit",
53
64
  description: "Specifies whether fonts should be scaled down automatically to fit given style constraints.",
54
- editable: false,
65
+ editable: true,
55
66
  required: false,
56
67
  formType: FORM_TYPES.boolean,
57
68
  propType: PROP_TYPES.BOOLEAN,
@@ -62,7 +73,7 @@ const SEED_DATA_PROPS = {
62
73
  name: "allowFontScaling",
63
74
  label: "allowFontScaling",
64
75
  description: "Specifies whether fonts should scale to respect Text Size accessibility settings. The default is true.",
65
- editable: false,
76
+ editable: true,
66
77
  required: false,
67
78
  formType: FORM_TYPES.boolean,
68
79
  propType: PROP_TYPES.BOOLEAN,
@@ -72,9 +83,9 @@ const SEED_DATA_PROPS = {
72
83
  group: GROUPS.advanced,
73
84
  name: "dataDetectorType",
74
85
  label: "dataDetectorType",
75
- description: "Determines the types of data converted to clickable URLs in the text element. By default no data types are detected.You can provide only one type.Possible values for dataDetectorType are:\n'phoneNumber'\n'link'\n'email'\n'none'\n'all'\n",
86
+ description: "Determines the types of data converted to clickable URLs in the text element. By default no data types are detected. You can provide only one type. Possible values for dataDetectorType are:\n'phoneNumber'\n'link'\n'email'\n'none'\n'all'\n",
76
87
  options: ["phoneNumber", "link", "email", "none", "all"],
77
- editable: false,
88
+ editable: true,
78
89
  required: false,
79
90
  formType: FORM_TYPES.flatArray,
80
91
  propType: PROP_TYPES.STRING,
@@ -85,7 +96,7 @@ const SEED_DATA_PROPS = {
85
96
  name: "disabled",
86
97
  label: "disabled",
87
98
  description: "Specifies the disabled state of the text view for testing purposes",
88
- editable: false,
99
+ editable: true,
89
100
  required: false,
90
101
  formType: FORM_TYPES.boolean,
91
102
  propType: PROP_TYPES.BOOLEAN,
@@ -108,25 +119,21 @@ const SEED_DATA_PROPS = {
108
119
  name: "maxFontSizeMultiplier",
109
120
  label: "maxFontSizeMultiplier",
110
121
  description: "Specifies largest possible scale a font can reach when allowFontScaling is enabled. Possible values:\nnull/undefined (default): inherit from the parent node or the global default (0)\n0: no max, ignore parent/global default\n>= 1: sets the maxFontSizeMultiplier of this node to this value\n",
111
- editable: false,
122
+ editable: true,
112
123
  required: false,
113
124
  formType: FORM_TYPES.number,
114
125
  propType: PROP_TYPES.NUMBER,
115
126
  defaultValue: null,
116
127
  },
117
- minimumFontScale: {
118
- group: GROUPS.advanced,
119
- name: "minimumFontScale",
120
- label: "minimumFontScale",
121
- description: "Specifies smallest possible scale a font can reach when adjustsFontSizeToFit is enabled. (values 0.01-1.0).",
122
- editable: false,
128
+ nativeID: {
129
+ group: GROUPS.accessibility,
130
+ name: "nativeID",
131
+ label: "nativeID",
132
+ description: "Used to locate this view from native code.",
133
+ editable: true,
123
134
  required: false,
124
- formType: FORM_TYPES.number,
125
- propType: PROP_TYPES.NUMBER,
126
- min: 0.01,
127
- step: 0.01,
128
- precision: 2,
129
- max: 1.0,
135
+ formType: FORM_TYPES.string,
136
+ propType: PROP_TYPES.STRING,
130
137
  defaultValue: null,
131
138
  },
132
139
  numberOfLines: {
@@ -147,7 +154,7 @@ const SEED_DATA_PROPS = {
147
154
  name: "selectable",
148
155
  label: "selectable",
149
156
  description: "Lets the user select text, to use the native copy and paste functionality.",
150
- editable: false,
157
+ editable: true,
151
158
  required: false,
152
159
  formType: FORM_TYPES.boolean,
153
160
  propType: PROP_TYPES.BOOLEAN,
@@ -158,7 +165,7 @@ const SEED_DATA_PROPS = {
158
165
  name: "selectionColor",
159
166
  label: "selectionColor",
160
167
  description: "The highlight color of the text.",
161
- editable: false,
168
+ editable: true,
162
169
  required: false,
163
170
  formType: FORM_TYPES.color,
164
171
  propType: PROP_TYPES.THEME,
@@ -169,7 +176,7 @@ const SEED_DATA_PROPS = {
169
176
  name: "suppressHighlighting",
170
177
  label: "suppressHighlighting",
171
178
  description: "When true, no visual change is made when text is pressed down. By default, a gray oval highlights the text on press down.",
172
- editable: false,
179
+ editable: true,
173
180
  required: false,
174
181
  formType: FORM_TYPES.boolean,
175
182
  propType: PROP_TYPES.BOOLEAN,
@@ -181,7 +188,7 @@ const SEED_DATA_PROPS = {
181
188
  label: "textBreakStrategy",
182
189
  description: "Set text break strategy on Android API Level 23+, possible values are simple, highQuality, balanced The default value is highQuality.",
183
190
  options: ["simple", "highQuality", "balanced"],
184
- editable: false,
191
+ editable: true,
185
192
  required: false,
186
193
  formType: FORM_TYPES.flatArray,
187
194
  propType: PROP_TYPES.STRING,
@@ -194,6 +201,12 @@ export const SEED_DATA = [
194
201
  tag: "Text",
195
202
  description: "A basic Text component",
196
203
  category: COMPONENT_TYPES.basic,
204
+ stylesPanelSections: [
205
+ StylesPanelSections.Typography,
206
+ StylesPanelSections.LayoutSelectedItem,
207
+ StylesPanelSections.MarginsAndPaddings,
208
+ StylesPanelSections.Effects,
209
+ ],
197
210
  layout: {
198
211
  color: "strong", // This is translated on collector script run by the extractValueAndType function
199
212
  },
@@ -215,6 +228,12 @@ export const SEED_DATA = [
215
228
  name: "Link",
216
229
  tag: "Link",
217
230
  category: COMPONENT_TYPES.button,
231
+ stylesPanelSections: [
232
+ StylesPanelSections.Typography,
233
+ StylesPanelSections.LayoutSelectedItem,
234
+ StylesPanelSections.MarginsAndPaddings,
235
+ StylesPanelSections.Effects,
236
+ ],
218
237
  layout: {
219
238
  color: "primary",
220
239
  },
@@ -6,6 +6,7 @@ import {
6
6
  Triggers,
7
7
  createActionProp,
8
8
  createTextProp,
9
+ StylesPanelSections,
9
10
  } from "@draftbit/types";
10
11
 
11
12
  const SEED_DATA_PROPS = {
@@ -15,7 +16,19 @@ const SEED_DATA_PROPS = {
15
16
  label: "accessibilityLabel",
16
17
  description:
17
18
  "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.",
18
- editable: false,
19
+ editable: true,
20
+ required: false,
21
+ formType: FORM_TYPES.string,
22
+ propType: PROP_TYPES.STRING,
23
+ defaultValue: null,
24
+ },
25
+ accessibilityHint: {
26
+ group: GROUPS.accessibility,
27
+ name: "accessibilityHint",
28
+ label: "accessibilityHint",
29
+ description:
30
+ "An accessibility hint helps users understand what will happen when they perform an action on the accessibility element when that result is not clear from the accessibility label.",
31
+ editable: true,
19
32
  required: false,
20
33
  formType: FORM_TYPES.string,
21
34
  propType: PROP_TYPES.STRING,
@@ -40,7 +53,7 @@ const SEED_DATA_PROPS = {
40
53
  "imagebutton",
41
54
  "adjustable",
42
55
  ],
43
- editable: false,
56
+ editable: true,
44
57
  required: false,
45
58
  formType: FORM_TYPES.flatArray,
46
59
  propType: PROP_TYPES.STRING,
@@ -51,8 +64,8 @@ const SEED_DATA_PROPS = {
51
64
  name: "accessible",
52
65
  label: "accessible",
53
66
  description:
54
- "When set to true, indicates that the view is an accessibility element. The default value for a Text element is true.See the Accessibility guide for more information.",
55
- editable: false,
67
+ "When set to true, indicates that the view is an accessibility element. The default value for a Text element is true. See the Accessibility guide for more information.",
68
+ editable: true,
56
69
  required: false,
57
70
  formType: FORM_TYPES.boolean,
58
71
  propType: PROP_TYPES.BOOLEAN,
@@ -64,7 +77,7 @@ const SEED_DATA_PROPS = {
64
77
  label: "adjustsFontSizeToFit",
65
78
  description:
66
79
  "Specifies whether fonts should be scaled down automatically to fit given style constraints.",
67
- editable: false,
80
+ editable: true,
68
81
  required: false,
69
82
  formType: FORM_TYPES.boolean,
70
83
  propType: PROP_TYPES.BOOLEAN,
@@ -76,7 +89,7 @@ const SEED_DATA_PROPS = {
76
89
  label: "allowFontScaling",
77
90
  description:
78
91
  "Specifies whether fonts should scale to respect Text Size accessibility settings. The default is true.",
79
- editable: false,
92
+ editable: true,
80
93
  required: false,
81
94
  formType: FORM_TYPES.boolean,
82
95
  propType: PROP_TYPES.BOOLEAN,
@@ -87,9 +100,9 @@ const SEED_DATA_PROPS = {
87
100
  name: "dataDetectorType",
88
101
  label: "dataDetectorType",
89
102
  description:
90
- "Determines the types of data converted to clickable URLs in the text element. By default no data types are detected.You can provide only one type.Possible values for dataDetectorType are:\n'phoneNumber'\n'link'\n'email'\n'none'\n'all'\n",
103
+ "Determines the types of data converted to clickable URLs in the text element. By default no data types are detected. You can provide only one type. Possible values for dataDetectorType are:\n'phoneNumber'\n'link'\n'email'\n'none'\n'all'\n",
91
104
  options: ["phoneNumber", "link", "email", "none", "all"],
92
- editable: false,
105
+ editable: true,
93
106
  required: false,
94
107
  formType: FORM_TYPES.flatArray,
95
108
  propType: PROP_TYPES.STRING,
@@ -101,7 +114,7 @@ const SEED_DATA_PROPS = {
101
114
  label: "disabled",
102
115
  description:
103
116
  "Specifies the disabled state of the text view for testing purposes",
104
- editable: false,
117
+ editable: true,
105
118
  required: false,
106
119
  formType: FORM_TYPES.boolean,
107
120
  propType: PROP_TYPES.BOOLEAN,
@@ -126,26 +139,21 @@ const SEED_DATA_PROPS = {
126
139
  label: "maxFontSizeMultiplier",
127
140
  description:
128
141
  "Specifies largest possible scale a font can reach when allowFontScaling is enabled. Possible values:\nnull/undefined (default): inherit from the parent node or the global default (0)\n0: no max, ignore parent/global default\n>= 1: sets the maxFontSizeMultiplier of this node to this value\n",
129
- editable: false,
142
+ editable: true,
130
143
  required: false,
131
144
  formType: FORM_TYPES.number,
132
145
  propType: PROP_TYPES.NUMBER,
133
146
  defaultValue: null,
134
147
  },
135
- minimumFontScale: {
136
- group: GROUPS.advanced,
137
- name: "minimumFontScale",
138
- label: "minimumFontScale",
139
- description:
140
- "Specifies smallest possible scale a font can reach when adjustsFontSizeToFit is enabled. (values 0.01-1.0).",
141
- editable: false,
148
+ nativeID: {
149
+ group: GROUPS.accessibility,
150
+ name: "nativeID",
151
+ label: "nativeID",
152
+ description: "Used to locate this view from native code.",
153
+ editable: true,
142
154
  required: false,
143
- formType: FORM_TYPES.number,
144
- propType: PROP_TYPES.NUMBER,
145
- min: 0.01,
146
- step: 0.01,
147
- precision: 2,
148
- max: 1.0,
155
+ formType: FORM_TYPES.string,
156
+ propType: PROP_TYPES.STRING,
149
157
  defaultValue: null,
150
158
  },
151
159
  numberOfLines: {
@@ -168,7 +176,7 @@ const SEED_DATA_PROPS = {
168
176
  label: "selectable",
169
177
  description:
170
178
  "Lets the user select text, to use the native copy and paste functionality.",
171
- editable: false,
179
+ editable: true,
172
180
  required: false,
173
181
  formType: FORM_TYPES.boolean,
174
182
  propType: PROP_TYPES.BOOLEAN,
@@ -179,7 +187,7 @@ const SEED_DATA_PROPS = {
179
187
  name: "selectionColor",
180
188
  label: "selectionColor",
181
189
  description: "The highlight color of the text.",
182
- editable: false,
190
+ editable: true,
183
191
  required: false,
184
192
  formType: FORM_TYPES.color,
185
193
  propType: PROP_TYPES.THEME,
@@ -191,7 +199,7 @@ const SEED_DATA_PROPS = {
191
199
  label: "suppressHighlighting",
192
200
  description:
193
201
  "When true, no visual change is made when text is pressed down. By default, a gray oval highlights the text on press down.",
194
- editable: false,
202
+ editable: true,
195
203
  required: false,
196
204
  formType: FORM_TYPES.boolean,
197
205
  propType: PROP_TYPES.BOOLEAN,
@@ -204,7 +212,7 @@ const SEED_DATA_PROPS = {
204
212
  description:
205
213
  "Set text break strategy on Android API Level 23+, possible values are simple, highQuality, balanced The default value is highQuality.",
206
214
  options: ["simple", "highQuality", "balanced"],
207
- editable: false,
215
+ editable: true,
208
216
  required: false,
209
217
  formType: FORM_TYPES.flatArray,
210
218
  propType: PROP_TYPES.STRING,
@@ -218,6 +226,12 @@ export const SEED_DATA = [
218
226
  tag: "Text",
219
227
  description: "A basic Text component",
220
228
  category: COMPONENT_TYPES.basic,
229
+ stylesPanelSections: [
230
+ StylesPanelSections.Typography,
231
+ StylesPanelSections.LayoutSelectedItem,
232
+ StylesPanelSections.MarginsAndPaddings,
233
+ StylesPanelSections.Effects,
234
+ ],
221
235
  layout: {
222
236
  color: "strong", // This is translated on collector script run by the extractValueAndType function
223
237
  },
@@ -239,6 +253,12 @@ export const SEED_DATA = [
239
253
  name: "Link",
240
254
  tag: "Link",
241
255
  category: COMPONENT_TYPES.button,
256
+ stylesPanelSections: [
257
+ StylesPanelSections.Typography,
258
+ StylesPanelSections.LayoutSelectedItem,
259
+ StylesPanelSections.MarginsAndPaddings,
260
+ StylesPanelSections.Effects,
261
+ ],
242
262
  layout: {
243
263
  color: "primary",
244
264
  },
@@ -205,6 +205,17 @@ const TEXT_AREA_PROPS = {
205
205
  formType: FORM_TYPES.boolean,
206
206
  propType: PROP_TYPES.BOOLEAN,
207
207
  },
208
+ textAlignVertical: {
209
+ group: GROUPS.advanced,
210
+ label: "Aligns text on the vertical axis",
211
+ description: "Move the text around in the given component.",
212
+ options: ["auto", "top", "bottom", "center"],
213
+ editable: true,
214
+ required: false,
215
+ defaultValue: "top",
216
+ formType: FORM_TYPES.flatArray,
217
+ propType: PROP_TYPES.STRING,
218
+ },
208
219
  };
209
220
  export const SEED_DATA = {
210
221
  name: "Text Area",
@@ -219,6 +219,17 @@ const TEXT_AREA_PROPS = {
219
219
  formType: FORM_TYPES.boolean,
220
220
  propType: PROP_TYPES.BOOLEAN,
221
221
  },
222
+ textAlignVertical: {
223
+ group: GROUPS.advanced,
224
+ label: "Aligns text on the vertical axis",
225
+ description: "Move the text around in the given component.",
226
+ options: ["auto", "top", "bottom", "center"],
227
+ editable: true,
228
+ required: false,
229
+ defaultValue: "top",
230
+ formType: FORM_TYPES.flatArray,
231
+ propType: PROP_TYPES.STRING,
232
+ },
222
233
  };
223
234
 
224
235
  export const SEED_DATA = {
@@ -1,4 +1,4 @@
1
- import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, FIELD_NAME, Triggers, createColorProp, createNumberProp, createFieldNameProp, } from "@draftbit/types";
1
+ import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, FIELD_NAME, Triggers, createColorProp, createNumberProp, createFieldNameProp, StylesPanelSections, } from "@draftbit/types";
2
2
  const TEXT_FIELD_PROPS = {
3
3
  allowFontScaling: {
4
4
  group: GROUPS.advanced,
@@ -330,6 +330,15 @@ export const SEED_DATA = [
330
330
  tag: "TextField",
331
331
  description: "A text area with a solid border or underline",
332
332
  category: COMPONENT_TYPES.input,
333
+ stylesPanelSections: [
334
+ StylesPanelSections.Typography,
335
+ StylesPanelSections.Background,
336
+ StylesPanelSections.Size,
337
+ StylesPanelSections.MarginsAndPaddings,
338
+ StylesPanelSections.Position,
339
+ StylesPanelSections.Borders,
340
+ StylesPanelSections.Effects,
341
+ ],
333
342
  preview_image_url: "{CLOUDINARY_URL}/TextArea.png",
334
343
  supports_list_render: false,
335
344
  triggers: SEED_DATA_TRIGGERS,
@@ -8,6 +8,7 @@ import {
8
8
  createColorProp,
9
9
  createNumberProp,
10
10
  createFieldNameProp,
11
+ StylesPanelSections,
11
12
  } from "@draftbit/types";
12
13
 
13
14
  const TEXT_FIELD_PROPS = {
@@ -352,6 +353,15 @@ export const SEED_DATA = [
352
353
  tag: "TextField",
353
354
  description: "A text area with a solid border or underline",
354
355
  category: COMPONENT_TYPES.input,
356
+ stylesPanelSections: [
357
+ StylesPanelSections.Typography,
358
+ StylesPanelSections.Background,
359
+ StylesPanelSections.Size,
360
+ StylesPanelSections.MarginsAndPaddings,
361
+ StylesPanelSections.Position,
362
+ StylesPanelSections.Borders,
363
+ StylesPanelSections.Effects,
364
+ ],
355
365
  preview_image_url: "{CLOUDINARY_URL}/TextArea.png",
356
366
  supports_list_render: false,
357
367
  triggers: SEED_DATA_TRIGGERS,
@@ -1,4 +1,4 @@
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, StylesPanelSections, } from "@draftbit/types";
2
2
  const TEXT_INPUT_PROPS = {
3
3
  allowFontScaling: {
4
4
  group: GROUPS.advanced,
@@ -270,6 +270,15 @@ export const SEED_DATA = [
270
270
  tag: "TextInput",
271
271
  description: "An input field that allows users to type in data.",
272
272
  category: COMPONENT_TYPES.input,
273
+ stylesPanelSections: [
274
+ StylesPanelSections.Typography,
275
+ StylesPanelSections.Background,
276
+ StylesPanelSections.Size,
277
+ StylesPanelSections.MarginsAndPaddings,
278
+ StylesPanelSections.Position,
279
+ StylesPanelSections.Borders,
280
+ StylesPanelSections.Effects,
281
+ ],
273
282
  preview_image_url: "https://res.cloudinary.com/altos/image/upload/draftbit/Jigsaw/TextInput.png",
274
283
  supports_list_render: false,
275
284
  layout: {
@@ -5,6 +5,7 @@ import {
5
5
  PROP_TYPES,
6
6
  FIELD_NAME,
7
7
  Triggers,
8
+ StylesPanelSections,
8
9
  } from "@draftbit/types";
9
10
 
10
11
  const TEXT_INPUT_PROPS = {
@@ -290,6 +291,15 @@ export const SEED_DATA = [
290
291
  tag: "TextInput",
291
292
  description: "An input field that allows users to type in data.",
292
293
  category: COMPONENT_TYPES.input,
294
+ stylesPanelSections: [
295
+ StylesPanelSections.Typography,
296
+ StylesPanelSections.Background,
297
+ StylesPanelSections.Size,
298
+ StylesPanelSections.MarginsAndPaddings,
299
+ StylesPanelSections.Position,
300
+ StylesPanelSections.Borders,
301
+ StylesPanelSections.Effects,
302
+ ],
293
303
  preview_image_url:
294
304
  "https://res.cloudinary.com/altos/image/upload/draftbit/Jigsaw/TextInput.png",
295
305
  supports_list_render: false,