@draftbit/core 46.10.3-6c7505.2 → 46.10.3-7476ab.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (505) hide show
  1. package/lib/commonjs/components/AnimatedCircularProgress.js +12 -1
  2. package/lib/commonjs/components/AspectRatio.js +17 -1
  3. package/lib/commonjs/components/BottomSheet/BottomSheet.js +22 -4
  4. package/lib/commonjs/components/Button.js +33 -10
  5. package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +23 -5
  6. package/lib/commonjs/components/Checkbox/context.js +1 -1
  7. package/lib/commonjs/components/CircleImage.js +15 -1
  8. package/lib/commonjs/components/CircularProgress.js +26 -8
  9. package/lib/commonjs/components/DatePicker/DatePicker.js +26 -13
  10. package/lib/commonjs/components/Divider.js +14 -1
  11. package/lib/commonjs/components/Elevation.js +14 -2
  12. package/lib/commonjs/components/IconButton.js +4 -19
  13. package/lib/commonjs/components/Image.js +17 -2
  14. package/lib/commonjs/components/Layout.js +19 -40
  15. package/lib/commonjs/components/Picker/PickerComponent.android.js +20 -3
  16. package/lib/commonjs/components/Portal/PortalHost.js +44 -15
  17. package/lib/commonjs/components/RadioButton/RadioButton.js +13 -2
  18. package/lib/commonjs/components/RadioButton/RadioButtonRow.js +23 -5
  19. package/lib/commonjs/components/RadioButton/context.js +1 -1
  20. package/lib/commonjs/components/Shadow.js +15 -2
  21. package/lib/commonjs/components/StarRating.js +23 -4
  22. package/lib/commonjs/components/Switch.js +19 -10
  23. package/lib/commonjs/components/TabView/TabView.js +13 -7
  24. package/lib/commonjs/components/Table/Table.js +5 -5
  25. package/lib/commonjs/constants.js +1 -1
  26. package/lib/commonjs/mappings/Accordion.js +49 -0
  27. package/lib/commonjs/mappings/AccordionItem.js +24 -0
  28. package/lib/commonjs/mappings/ActionSheet.js +21 -0
  29. package/lib/commonjs/mappings/ActionSheetCancel.js +27 -0
  30. package/lib/commonjs/mappings/ActionSheetItem.js +31 -0
  31. package/lib/commonjs/mappings/ActivityIndicator.js +64 -0
  32. package/lib/commonjs/mappings/AudioPlayer.js +57 -0
  33. package/lib/commonjs/mappings/AvatarEdit.js +45 -0
  34. package/lib/commonjs/mappings/Banner.js +39 -0
  35. package/lib/commonjs/mappings/BlurView.js +49 -0
  36. package/lib/commonjs/mappings/BottomSheet.js +70 -0
  37. package/lib/commonjs/mappings/Button.js +95 -0
  38. package/lib/commonjs/mappings/Card.js +60 -0
  39. package/lib/commonjs/mappings/Carousel.js +24 -0
  40. package/lib/commonjs/mappings/Checkbox.js +53 -0
  41. package/lib/commonjs/mappings/CheckboxGroup.js +33 -0
  42. package/lib/commonjs/mappings/CheckboxRow.js +64 -0
  43. package/lib/commonjs/mappings/CircleImage.js +32 -0
  44. package/lib/commonjs/mappings/CustomCode.js +15 -0
  45. package/lib/commonjs/mappings/DatePicker.js +181 -0
  46. package/lib/commonjs/mappings/DeckSwiper.js +55 -0
  47. package/lib/commonjs/mappings/DeckSwiperCard.js +23 -0
  48. package/lib/commonjs/mappings/Divider.js +32 -0
  49. package/lib/commonjs/mappings/FAB.js +44 -0
  50. package/lib/commonjs/mappings/Fetch.js +20 -0
  51. package/lib/commonjs/mappings/FieldSearchBarFull.js +58 -0
  52. package/lib/commonjs/mappings/FlashList.js +111 -0
  53. package/lib/commonjs/mappings/FlatList.js +58 -0
  54. package/lib/commonjs/mappings/Icon.js +33 -0
  55. package/lib/commonjs/mappings/IconButton.js +36 -0
  56. package/lib/commonjs/mappings/Image.js +36 -0
  57. package/lib/commonjs/mappings/ImageBackground.js +36 -0
  58. package/lib/commonjs/mappings/KeyboardAvoidingView.js +48 -0
  59. package/lib/commonjs/mappings/KeyboardAwareScrollView.js +57 -0
  60. package/lib/commonjs/mappings/Layout.js +200 -0
  61. package/lib/commonjs/mappings/LinearGradient.js +88 -0
  62. package/lib/commonjs/mappings/MapCallout.js +29 -0
  63. package/lib/commonjs/mappings/MapMarker.js +55 -0
  64. package/lib/commonjs/mappings/MapView.js +142 -0
  65. package/lib/commonjs/mappings/Markdown.js +27 -0
  66. package/lib/commonjs/mappings/Modal.js +49 -0
  67. package/lib/commonjs/mappings/NativeBase/Layout.js +108 -0
  68. package/lib/commonjs/mappings/NumberInput.js +238 -0
  69. package/lib/commonjs/mappings/Picker.js +154 -0
  70. package/lib/commonjs/mappings/ProgressBar.js +106 -0
  71. package/lib/commonjs/mappings/ProgressCircle.js +116 -0
  72. package/lib/commonjs/mappings/RadioButton.js +58 -0
  73. package/lib/commonjs/mappings/RadioButtonGroup.js +24 -0
  74. package/lib/commonjs/mappings/RadioButtonRow.js +45 -0
  75. package/lib/commonjs/mappings/RowBodyIcon.js +79 -0
  76. package/lib/commonjs/mappings/RowHeadlineImageCaption.js +169 -0
  77. package/lib/commonjs/mappings/RowHeadlineImageIcon.js +99 -0
  78. package/lib/commonjs/mappings/SVG.js +22 -0
  79. package/lib/commonjs/mappings/SafeAreaView.js +40 -0
  80. package/lib/commonjs/mappings/ScrollView.js +44 -0
  81. package/lib/commonjs/mappings/Shadow.js +102 -0
  82. package/lib/commonjs/mappings/Slider.js +67 -0
  83. package/lib/commonjs/mappings/StarRating.js +57 -0
  84. package/lib/commonjs/mappings/Stepper.js +38 -0
  85. package/lib/commonjs/mappings/Surface.js +21 -0
  86. package/lib/commonjs/mappings/Swiper.js +70 -0
  87. package/lib/commonjs/mappings/SwiperItem.js +16 -0
  88. package/lib/commonjs/mappings/Switch.js +81 -0
  89. package/lib/commonjs/mappings/TabView.js +74 -0
  90. package/lib/commonjs/mappings/TabViewItem.js +37 -0
  91. package/lib/commonjs/mappings/Table.js +140 -0
  92. package/lib/commonjs/mappings/Text.js +234 -0
  93. package/lib/commonjs/mappings/TextArea.js +254 -0
  94. package/lib/commonjs/mappings/TextField.js +360 -0
  95. package/lib/commonjs/mappings/TextInput.js +345 -0
  96. package/lib/commonjs/mappings/ToggleButton.js +53 -0
  97. package/lib/commonjs/mappings/Touchable.js +67 -0
  98. package/lib/commonjs/mappings/Video.js +82 -0
  99. package/lib/commonjs/mappings/View.js +186 -0
  100. package/lib/commonjs/mappings/WebView.js +93 -0
  101. package/lib/commonjs/mappings/YoutubePlayer.js +38 -0
  102. package/lib/module/components/AspectRatio.js +18 -1
  103. package/lib/module/components/BottomSheet/BottomSheet.js +24 -4
  104. package/lib/module/components/Button.js +33 -10
  105. package/lib/module/components/Checkbox/Checkbox.js +3 -4
  106. package/lib/module/components/Checkbox/CheckboxRow.js +24 -6
  107. package/lib/module/components/Checkbox/context.js +1 -1
  108. package/lib/module/components/DatePicker/DatePicker.js +27 -13
  109. package/lib/module/components/DeckSwiper/DeckSwiper.js +1 -4
  110. package/lib/module/components/DeprecatedButton.js +21 -3
  111. package/lib/module/components/Divider.js +18 -1
  112. package/lib/module/components/FormRow.js +17 -2
  113. package/lib/module/components/NumberInput.js +11 -3
  114. package/lib/module/components/Picker/PickerComponent.android.js +21 -3
  115. package/lib/module/components/Portal/PortalHost.js +45 -15
  116. package/lib/module/components/RadioButton/RadioButtonFieldGroup.js +10 -1
  117. package/lib/module/components/Shadow.js +15 -2
  118. package/lib/module/components/StarRating.js +24 -4
  119. package/lib/module/components/StepIndicator.js +58 -18
  120. package/lib/module/components/TabView/TabView.js +17 -7
  121. package/lib/module/components/Table/Table.js +6 -5
  122. package/lib/module/components/Table/TableRow.js +1 -2
  123. package/lib/module/constants.js +1 -0
  124. package/lib/module/mappings/Accordion.js +42 -0
  125. package/lib/module/mappings/AccordionItem.js +17 -0
  126. package/lib/module/mappings/ActionSheet.js +14 -0
  127. package/lib/module/mappings/ActionSheetCancel.js +20 -0
  128. package/lib/module/mappings/ActionSheetItem.js +24 -0
  129. package/lib/module/mappings/ActivityIndicator.js +57 -0
  130. package/lib/module/mappings/AudioPlayer.js +50 -0
  131. package/lib/module/mappings/AvatarEdit.js +38 -0
  132. package/lib/module/mappings/Banner.js +32 -0
  133. package/lib/module/mappings/BlurView.js +42 -0
  134. package/lib/module/mappings/BottomSheet.js +63 -0
  135. package/lib/module/mappings/Button.js +88 -0
  136. package/lib/module/mappings/Card.js +53 -0
  137. package/lib/module/mappings/Carousel.js +17 -0
  138. package/lib/module/mappings/Checkbox.js +46 -0
  139. package/lib/module/mappings/CheckboxGroup.js +26 -0
  140. package/lib/module/mappings/CheckboxRow.js +57 -0
  141. package/lib/module/mappings/CircleImage.js +25 -0
  142. package/lib/module/mappings/CustomCode.js +8 -0
  143. package/lib/module/mappings/DatePicker.js +174 -0
  144. package/lib/module/mappings/DeckSwiper.js +48 -0
  145. package/lib/module/mappings/DeckSwiperCard.js +16 -0
  146. package/lib/module/mappings/Divider.js +25 -0
  147. package/lib/module/mappings/FAB.js +37 -0
  148. package/lib/module/mappings/Fetch.js +13 -0
  149. package/lib/module/mappings/FieldSearchBarFull.js +52 -0
  150. package/lib/module/mappings/FlashList.js +104 -0
  151. package/lib/module/mappings/FlatList.js +51 -0
  152. package/lib/module/mappings/Icon.js +26 -0
  153. package/lib/module/mappings/IconButton.js +29 -0
  154. package/lib/module/mappings/Image.js +29 -0
  155. package/lib/module/mappings/ImageBackground.js +29 -0
  156. package/lib/module/mappings/KeyboardAvoidingView.js +41 -0
  157. package/lib/module/mappings/KeyboardAwareScrollView.js +50 -0
  158. package/lib/module/mappings/Layout.js +193 -0
  159. package/lib/module/mappings/LinearGradient.js +81 -0
  160. package/lib/module/mappings/MapCallout.js +22 -0
  161. package/lib/module/mappings/MapMarker.js +48 -0
  162. package/lib/module/mappings/MapView.js +135 -0
  163. package/lib/module/mappings/Markdown.js +20 -0
  164. package/lib/module/mappings/Modal.js +42 -0
  165. package/lib/module/mappings/NativeBase/Layout.js +101 -0
  166. package/lib/module/mappings/NumberInput.js +230 -0
  167. package/lib/module/mappings/Picker.js +147 -0
  168. package/lib/module/mappings/ProgressBar.js +99 -0
  169. package/lib/module/mappings/ProgressCircle.js +109 -0
  170. package/lib/module/mappings/RadioButton.js +51 -0
  171. package/lib/module/mappings/RadioButtonGroup.js +17 -0
  172. package/lib/module/mappings/RadioButtonRow.js +38 -0
  173. package/lib/module/mappings/RowBodyIcon.js +72 -0
  174. package/lib/module/mappings/RowHeadlineImageCaption.js +162 -0
  175. package/lib/module/mappings/RowHeadlineImageIcon.js +92 -0
  176. package/lib/module/mappings/SVG.js +15 -0
  177. package/lib/module/mappings/SafeAreaView.js +33 -0
  178. package/lib/module/mappings/ScrollView.js +37 -0
  179. package/lib/module/mappings/Shadow.js +95 -0
  180. package/lib/module/mappings/Slider.js +60 -0
  181. package/lib/module/mappings/StarRating.js +51 -0
  182. package/lib/module/mappings/Stepper.js +31 -0
  183. package/lib/module/mappings/Surface.js +14 -0
  184. package/lib/module/mappings/Swiper.js +63 -0
  185. package/lib/module/mappings/SwiperItem.js +9 -0
  186. package/lib/module/mappings/Switch.js +74 -0
  187. package/lib/module/mappings/TabView.js +67 -0
  188. package/lib/module/mappings/TabViewItem.js +30 -0
  189. package/lib/module/mappings/Table.js +133 -0
  190. package/lib/module/mappings/Text.js +227 -0
  191. package/lib/module/mappings/TextArea.js +247 -0
  192. package/lib/module/mappings/TextField.js +353 -0
  193. package/lib/module/mappings/TextInput.js +337 -0
  194. package/lib/module/mappings/ToggleButton.js +46 -0
  195. package/lib/module/mappings/Touchable.js +60 -0
  196. package/lib/module/mappings/Video.js +75 -0
  197. package/lib/module/mappings/View.js +179 -0
  198. package/lib/module/mappings/WebView.js +86 -0
  199. package/lib/module/mappings/YoutubePlayer.js +31 -0
  200. package/lib/module/utilities.js +1 -2
  201. package/lib/typescript/src/mappings/Accordion.d.ts +90 -0
  202. package/lib/typescript/src/mappings/Accordion.d.ts.map +1 -0
  203. package/lib/typescript/src/mappings/AccordionItem.d.ts +31 -0
  204. package/lib/typescript/src/mappings/AccordionItem.d.ts.map +1 -0
  205. package/lib/typescript/src/mappings/ActionSheet.d.ts +20 -0
  206. package/lib/typescript/src/mappings/ActionSheet.d.ts.map +1 -0
  207. package/lib/typescript/src/mappings/ActionSheetCancel.d.ts +32 -0
  208. package/lib/typescript/src/mappings/ActionSheetCancel.d.ts.map +1 -0
  209. package/lib/typescript/src/mappings/ActionSheetItem.d.ts +35 -0
  210. package/lib/typescript/src/mappings/ActionSheetItem.d.ts.map +1 -0
  211. package/lib/typescript/src/mappings/ActivityIndicator.d.ts +57 -0
  212. package/lib/typescript/src/mappings/ActivityIndicator.d.ts.map +1 -0
  213. package/lib/typescript/src/mappings/AudioPlayer.d.ts +81 -0
  214. package/lib/typescript/src/mappings/AudioPlayer.d.ts.map +1 -0
  215. package/lib/typescript/src/mappings/AvatarEdit.d.ts +38 -0
  216. package/lib/typescript/src/mappings/AvatarEdit.d.ts.map +1 -0
  217. package/lib/typescript/src/mappings/Banner.d.ts +49 -0
  218. package/lib/typescript/src/mappings/Banner.d.ts.map +1 -0
  219. package/lib/typescript/src/mappings/BlurView.d.ts +42 -0
  220. package/lib/typescript/src/mappings/BlurView.d.ts.map +1 -0
  221. package/lib/typescript/src/mappings/BottomSheet.d.ts +115 -0
  222. package/lib/typescript/src/mappings/BottomSheet.d.ts.map +1 -0
  223. package/lib/typescript/src/mappings/Button.d.ts +222 -0
  224. package/lib/typescript/src/mappings/Button.d.ts.map +1 -0
  225. package/lib/typescript/src/mappings/Card.d.ts +114 -0
  226. package/lib/typescript/src/mappings/Card.d.ts.map +1 -0
  227. package/lib/typescript/src/mappings/Carousel.d.ts +34 -0
  228. package/lib/typescript/src/mappings/Carousel.d.ts.map +1 -0
  229. package/lib/typescript/src/mappings/Checkbox.d.ts +83 -0
  230. package/lib/typescript/src/mappings/Checkbox.d.ts.map +1 -0
  231. package/lib/typescript/src/mappings/CheckboxGroup.d.ts +35 -0
  232. package/lib/typescript/src/mappings/CheckboxGroup.d.ts.map +1 -0
  233. package/lib/typescript/src/mappings/CheckboxRow.d.ts +108 -0
  234. package/lib/typescript/src/mappings/CheckboxRow.d.ts.map +1 -0
  235. package/lib/typescript/src/mappings/CircleImage.d.ts +34 -0
  236. package/lib/typescript/src/mappings/CircleImage.d.ts.map +1 -0
  237. package/lib/typescript/src/mappings/CustomCode.d.ts +8 -0
  238. package/lib/typescript/src/mappings/CustomCode.d.ts.map +1 -0
  239. package/lib/typescript/src/mappings/DatePicker.d.ts +168 -0
  240. package/lib/typescript/src/mappings/DatePicker.d.ts.map +1 -0
  241. package/lib/typescript/src/mappings/DeckSwiper.d.ts +86 -0
  242. package/lib/typescript/src/mappings/DeckSwiper.d.ts.map +1 -0
  243. package/lib/typescript/src/mappings/DeckSwiperCard.d.ts +16 -0
  244. package/lib/typescript/src/mappings/DeckSwiperCard.d.ts.map +1 -0
  245. package/lib/typescript/src/mappings/Divider.d.ts +25 -0
  246. package/lib/typescript/src/mappings/Divider.d.ts.map +1 -0
  247. package/lib/typescript/src/mappings/FAB.d.ts +83 -0
  248. package/lib/typescript/src/mappings/FAB.d.ts.map +1 -0
  249. package/lib/typescript/src/mappings/Fetch.d.ts +12 -0
  250. package/lib/typescript/src/mappings/Fetch.d.ts.map +1 -0
  251. package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts +56 -0
  252. package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts.map +1 -0
  253. package/lib/typescript/src/mappings/FlashList.d.ts +230 -0
  254. package/lib/typescript/src/mappings/FlashList.d.ts.map +1 -0
  255. package/lib/typescript/src/mappings/FlatList.d.ts +116 -0
  256. package/lib/typescript/src/mappings/FlatList.d.ts.map +1 -0
  257. package/lib/typescript/src/mappings/Icon.d.ts +42 -0
  258. package/lib/typescript/src/mappings/Icon.d.ts.map +1 -0
  259. package/lib/typescript/src/mappings/IconButton.d.ts +72 -0
  260. package/lib/typescript/src/mappings/IconButton.d.ts.map +1 -0
  261. package/lib/typescript/src/mappings/Image.d.ts +48 -0
  262. package/lib/typescript/src/mappings/Image.d.ts.map +1 -0
  263. package/lib/typescript/src/mappings/ImageBackground.d.ts +58 -0
  264. package/lib/typescript/src/mappings/ImageBackground.d.ts.map +1 -0
  265. package/lib/typescript/src/mappings/KeyboardAvoidingView.d.ts +41 -0
  266. package/lib/typescript/src/mappings/KeyboardAvoidingView.d.ts.map +1 -0
  267. package/lib/typescript/src/mappings/KeyboardAwareScrollView.d.ts +105 -0
  268. package/lib/typescript/src/mappings/KeyboardAwareScrollView.d.ts.map +1 -0
  269. package/lib/typescript/src/mappings/Layout.d.ts +169 -0
  270. package/lib/typescript/src/mappings/Layout.d.ts.map +1 -0
  271. package/lib/typescript/src/mappings/LinearGradient.d.ts +99 -0
  272. package/lib/typescript/src/mappings/LinearGradient.d.ts.map +1 -0
  273. package/lib/typescript/src/mappings/MapCallout.d.ts +33 -0
  274. package/lib/typescript/src/mappings/MapCallout.d.ts.map +1 -0
  275. package/lib/typescript/src/mappings/MapMarker.d.ts +56 -0
  276. package/lib/typescript/src/mappings/MapMarker.d.ts.map +1 -0
  277. package/lib/typescript/src/mappings/MapView.d.ts +172 -0
  278. package/lib/typescript/src/mappings/MapView.d.ts.map +1 -0
  279. package/lib/typescript/src/mappings/Markdown.d.ts +20 -0
  280. package/lib/typescript/src/mappings/Markdown.d.ts.map +1 -0
  281. package/lib/typescript/src/mappings/Modal.d.ts +52 -0
  282. package/lib/typescript/src/mappings/Modal.d.ts.map +1 -0
  283. package/lib/typescript/src/mappings/NativeBase/Layout.d.ts +133 -0
  284. package/lib/typescript/src/mappings/NativeBase/Layout.d.ts.map +1 -0
  285. package/lib/typescript/src/mappings/NumberInput.d.ts +299 -0
  286. package/lib/typescript/src/mappings/NumberInput.d.ts.map +1 -0
  287. package/lib/typescript/src/mappings/Picker.d.ts +170 -0
  288. package/lib/typescript/src/mappings/Picker.d.ts.map +1 -0
  289. package/lib/typescript/src/mappings/ProgressBar.d.ts +99 -0
  290. package/lib/typescript/src/mappings/ProgressBar.d.ts.map +1 -0
  291. package/lib/typescript/src/mappings/ProgressCircle.d.ts +109 -0
  292. package/lib/typescript/src/mappings/ProgressCircle.d.ts.map +1 -0
  293. package/lib/typescript/src/mappings/RadioButton.d.ts +72 -0
  294. package/lib/typescript/src/mappings/RadioButton.d.ts.map +1 -0
  295. package/lib/typescript/src/mappings/RadioButtonGroup.d.ts +34 -0
  296. package/lib/typescript/src/mappings/RadioButtonGroup.d.ts.map +1 -0
  297. package/lib/typescript/src/mappings/RadioButtonRow.d.ts +43 -0
  298. package/lib/typescript/src/mappings/RadioButtonRow.d.ts.map +1 -0
  299. package/lib/typescript/src/mappings/RowBodyIcon.d.ts +73 -0
  300. package/lib/typescript/src/mappings/RowBodyIcon.d.ts.map +1 -0
  301. package/lib/typescript/src/mappings/RowHeadlineImageCaption.d.ts +166 -0
  302. package/lib/typescript/src/mappings/RowHeadlineImageCaption.d.ts.map +1 -0
  303. package/lib/typescript/src/mappings/RowHeadlineImageIcon.d.ts +170 -0
  304. package/lib/typescript/src/mappings/RowHeadlineImageIcon.d.ts.map +1 -0
  305. package/lib/typescript/src/mappings/SVG.d.ts +24 -0
  306. package/lib/typescript/src/mappings/SVG.d.ts.map +1 -0
  307. package/lib/typescript/src/mappings/SafeAreaView.d.ts +33 -0
  308. package/lib/typescript/src/mappings/SafeAreaView.d.ts.map +1 -0
  309. package/lib/typescript/src/mappings/ScrollView.d.ts +72 -0
  310. package/lib/typescript/src/mappings/ScrollView.d.ts.map +1 -0
  311. package/lib/typescript/src/mappings/Shadow.d.ts +173 -0
  312. package/lib/typescript/src/mappings/Shadow.d.ts.map +1 -0
  313. package/lib/typescript/src/mappings/Slider.d.ts +110 -0
  314. package/lib/typescript/src/mappings/Slider.d.ts.map +1 -0
  315. package/lib/typescript/src/mappings/StarRating.d.ts +75 -0
  316. package/lib/typescript/src/mappings/StarRating.d.ts.map +1 -0
  317. package/lib/typescript/src/mappings/Stepper.d.ts +67 -0
  318. package/lib/typescript/src/mappings/Stepper.d.ts.map +1 -0
  319. package/lib/typescript/src/mappings/Surface.d.ts +24 -0
  320. package/lib/typescript/src/mappings/Surface.d.ts.map +1 -0
  321. package/lib/typescript/src/mappings/Swiper.d.ts +119 -0
  322. package/lib/typescript/src/mappings/Swiper.d.ts.map +1 -0
  323. package/lib/typescript/src/mappings/SwiperItem.d.ts +9 -0
  324. package/lib/typescript/src/mappings/SwiperItem.d.ts.map +1 -0
  325. package/lib/typescript/src/mappings/Switch.d.ts +164 -0
  326. package/lib/typescript/src/mappings/Switch.d.ts.map +1 -0
  327. package/lib/typescript/src/mappings/TabView.d.ts +123 -0
  328. package/lib/typescript/src/mappings/TabView.d.ts.map +1 -0
  329. package/lib/typescript/src/mappings/TabViewItem.d.ts +25 -0
  330. package/lib/typescript/src/mappings/TabViewItem.d.ts.map +1 -0
  331. package/lib/typescript/src/mappings/Table.d.ts +337 -0
  332. package/lib/typescript/src/mappings/Table.d.ts.map +1 -0
  333. package/lib/typescript/src/mappings/Text.d.ts +411 -0
  334. package/lib/typescript/src/mappings/Text.d.ts.map +1 -0
  335. package/lib/typescript/src/mappings/TextArea.d.ts +263 -0
  336. package/lib/typescript/src/mappings/TextArea.d.ts.map +1 -0
  337. package/lib/typescript/src/mappings/TextField.d.ts +629 -0
  338. package/lib/typescript/src/mappings/TextField.d.ts.map +1 -0
  339. package/lib/typescript/src/mappings/TextInput.d.ts +415 -0
  340. package/lib/typescript/src/mappings/TextInput.d.ts.map +1 -0
  341. package/lib/typescript/src/mappings/ToggleButton.d.ts +116 -0
  342. package/lib/typescript/src/mappings/ToggleButton.d.ts.map +1 -0
  343. package/lib/typescript/src/mappings/Touchable.d.ts +96 -0
  344. package/lib/typescript/src/mappings/Touchable.d.ts.map +1 -0
  345. package/lib/typescript/src/mappings/Video.d.ts +129 -0
  346. package/lib/typescript/src/mappings/Video.d.ts.map +1 -0
  347. package/lib/typescript/src/mappings/View.d.ts +179 -0
  348. package/lib/typescript/src/mappings/View.d.ts.map +1 -0
  349. package/lib/typescript/src/mappings/WebView.d.ts +135 -0
  350. package/lib/typescript/src/mappings/WebView.d.ts.map +1 -0
  351. package/lib/typescript/src/mappings/YoutubePlayer.d.ts +27 -0
  352. package/lib/typescript/src/mappings/YoutubePlayer.d.ts.map +1 -0
  353. package/package.json +3 -3
  354. package/src/mappings/Accordion.js +50 -0
  355. package/src/mappings/Accordion.ts +60 -0
  356. package/src/mappings/AccordionItem.js +17 -0
  357. package/src/mappings/AccordionItem.ts +24 -0
  358. package/src/mappings/ActionSheet.js +17 -0
  359. package/src/mappings/ActionSheet.ts +23 -0
  360. package/src/mappings/ActionSheetCancel.js +23 -0
  361. package/src/mappings/ActionSheetCancel.ts +32 -0
  362. package/src/mappings/ActionSheetItem.js +27 -0
  363. package/src/mappings/ActionSheetItem.ts +36 -0
  364. package/src/mappings/ActivityIndicator.js +58 -0
  365. package/src/mappings/ActivityIndicator.ts +68 -0
  366. package/src/mappings/AudioPlayer.js +57 -0
  367. package/src/mappings/AudioPlayer.ts +67 -0
  368. package/src/mappings/AvatarEdit.js +38 -0
  369. package/src/mappings/AvatarEdit.ts +45 -0
  370. package/src/mappings/Banner.js +32 -0
  371. package/src/mappings/Banner.ts +40 -0
  372. package/src/mappings/BlurView.js +42 -0
  373. package/src/mappings/BlurView.ts +51 -0
  374. package/src/mappings/BottomSheet.js +63 -0
  375. package/src/mappings/BottomSheet.ts +77 -0
  376. package/src/mappings/Button.js +116 -0
  377. package/src/mappings/Button.ts +130 -0
  378. package/src/mappings/Card.js +52 -0
  379. package/src/mappings/Card.ts +64 -0
  380. package/src/mappings/Carousel.js +19 -0
  381. package/src/mappings/Carousel.ts +25 -0
  382. package/src/mappings/Checkbox.js +46 -0
  383. package/src/mappings/Checkbox.ts +57 -0
  384. package/src/mappings/CheckboxGroup.js +26 -0
  385. package/src/mappings/CheckboxGroup.ts +37 -0
  386. package/src/mappings/CheckboxRow.js +61 -0
  387. package/src/mappings/CheckboxRow.ts +74 -0
  388. package/src/mappings/CircleImage.js +25 -0
  389. package/src/mappings/CircleImage.ts +33 -0
  390. package/src/mappings/CustomCode.js +8 -0
  391. package/src/mappings/CustomCode.ts +9 -0
  392. package/src/mappings/DatePicker.js +182 -0
  393. package/src/mappings/DatePicker.ts +197 -0
  394. package/src/mappings/DeckSwiper.js +48 -0
  395. package/src/mappings/DeckSwiper.ts +57 -0
  396. package/src/mappings/DeckSwiperCard.js +16 -0
  397. package/src/mappings/DeckSwiperCard.ts +20 -0
  398. package/src/mappings/Divider.js +27 -0
  399. package/src/mappings/Divider.ts +34 -0
  400. package/src/mappings/FAB.js +37 -0
  401. package/src/mappings/FAB.ts +48 -0
  402. package/src/mappings/Fetch.js +13 -0
  403. package/src/mappings/Fetch.ts +14 -0
  404. package/src/mappings/FieldSearchBarFull.js +50 -0
  405. package/src/mappings/FieldSearchBarFull.ts +59 -0
  406. package/src/mappings/FlashList.js +113 -0
  407. package/src/mappings/FlashList.ts +131 -0
  408. package/src/mappings/FlatList.js +51 -0
  409. package/src/mappings/FlatList.ts +64 -0
  410. package/src/mappings/Icon.js +32 -0
  411. package/src/mappings/Icon.ts +40 -0
  412. package/src/mappings/IconButton.js +33 -0
  413. package/src/mappings/IconButton.ts +44 -0
  414. package/src/mappings/Image.js +35 -0
  415. package/src/mappings/Image.ts +44 -0
  416. package/src/mappings/ImageBackground.js +29 -0
  417. package/src/mappings/ImageBackground.ts +41 -0
  418. package/src/mappings/KeyboardAvoidingView.js +41 -0
  419. package/src/mappings/KeyboardAvoidingView.ts +50 -0
  420. package/src/mappings/KeyboardAwareScrollView.js +50 -0
  421. package/src/mappings/KeyboardAwareScrollView.ts +63 -0
  422. package/src/mappings/Layout.js +200 -0
  423. package/src/mappings/Layout.ts +207 -0
  424. package/src/mappings/LinearGradient.js +82 -0
  425. package/src/mappings/LinearGradient.ts +89 -0
  426. package/src/mappings/MapCallout.js +26 -0
  427. package/src/mappings/MapCallout.ts +36 -0
  428. package/src/mappings/MapMarker.js +52 -0
  429. package/src/mappings/MapMarker.ts +62 -0
  430. package/src/mappings/MapView.js +142 -0
  431. package/src/mappings/MapView.ts +155 -0
  432. package/src/mappings/Markdown.js +25 -0
  433. package/src/mappings/Markdown.ts +32 -0
  434. package/src/mappings/Modal.js +42 -0
  435. package/src/mappings/Modal.ts +51 -0
  436. package/src/mappings/NativeBase/Layout.js +124 -0
  437. package/src/mappings/NativeBase/Layout.ts +145 -0
  438. package/src/mappings/NumberInput.js +254 -0
  439. package/src/mappings/NumberInput.ts +274 -0
  440. package/src/mappings/Picker.js +153 -0
  441. package/src/mappings/Picker.ts +169 -0
  442. package/src/mappings/ProgressBar.js +101 -0
  443. package/src/mappings/ProgressBar.ts +110 -0
  444. package/src/mappings/ProgressCircle.js +109 -0
  445. package/src/mappings/ProgressCircle.ts +117 -0
  446. package/src/mappings/RadioButton.js +51 -0
  447. package/src/mappings/RadioButton.ts +62 -0
  448. package/src/mappings/RadioButtonGroup.js +17 -0
  449. package/src/mappings/RadioButtonGroup.ts +24 -0
  450. package/src/mappings/RadioButtonRow.js +42 -0
  451. package/src/mappings/RadioButtonRow.ts +51 -0
  452. package/src/mappings/RowBodyIcon.js +75 -0
  453. package/src/mappings/RowBodyIcon.ts +82 -0
  454. package/src/mappings/RowHeadlineImageCaption.js +167 -0
  455. package/src/mappings/RowHeadlineImageCaption.ts +178 -0
  456. package/src/mappings/RowHeadlineImageIcon.js +99 -0
  457. package/src/mappings/RowHeadlineImageIcon.ts +116 -0
  458. package/src/mappings/SVG.js +20 -0
  459. package/src/mappings/SVG.ts +25 -0
  460. package/src/mappings/SafeAreaView.js +33 -0
  461. package/src/mappings/SafeAreaView.ts +39 -0
  462. package/src/mappings/ScrollView.js +37 -0
  463. package/src/mappings/ScrollView.ts +48 -0
  464. package/src/mappings/Shadow.js +95 -0
  465. package/src/mappings/Shadow.ts +104 -0
  466. package/src/mappings/Slider.js +60 -0
  467. package/src/mappings/Slider.ts +70 -0
  468. package/src/mappings/StarRating.js +43 -0
  469. package/src/mappings/StarRating.ts +52 -0
  470. package/src/mappings/Stepper.js +32 -0
  471. package/src/mappings/Stepper.ts +42 -0
  472. package/src/mappings/Surface.js +14 -0
  473. package/src/mappings/Surface.ts +19 -0
  474. package/src/mappings/Swiper.js +71 -0
  475. package/src/mappings/Swiper.ts +82 -0
  476. package/src/mappings/SwiperItem.js +9 -0
  477. package/src/mappings/SwiperItem.ts +13 -0
  478. package/src/mappings/Switch.js +81 -0
  479. package/src/mappings/Switch.ts +92 -0
  480. package/src/mappings/TabView.js +75 -0
  481. package/src/mappings/TabView.ts +85 -0
  482. package/src/mappings/TabViewItem.js +30 -0
  483. package/src/mappings/TabViewItem.ts +38 -0
  484. package/src/mappings/Table.js +150 -0
  485. package/src/mappings/Table.ts +170 -0
  486. package/src/mappings/Text.js +251 -0
  487. package/src/mappings/Text.ts +276 -0
  488. package/src/mappings/TextArea.js +283 -0
  489. package/src/mappings/TextArea.ts +300 -0
  490. package/src/mappings/TextField.js +400 -0
  491. package/src/mappings/TextField.ts +423 -0
  492. package/src/mappings/TextInput.js +402 -0
  493. package/src/mappings/TextInput.ts +431 -0
  494. package/src/mappings/ToggleButton.js +50 -0
  495. package/src/mappings/ToggleButton.ts +63 -0
  496. package/src/mappings/Touchable.js +67 -0
  497. package/src/mappings/Touchable.ts +80 -0
  498. package/src/mappings/Video.js +81 -0
  499. package/src/mappings/Video.ts +95 -0
  500. package/src/mappings/View.js +207 -0
  501. package/src/mappings/View.ts +229 -0
  502. package/src/mappings/WebView.js +88 -0
  503. package/src/mappings/WebView.ts +107 -0
  504. package/src/mappings/YoutubePlayer.js +31 -0
  505. package/src/mappings/YoutubePlayer.ts +37 -0
@@ -0,0 +1,81 @@
1
+ import { createColorProp, FORM_TYPES, GROUPS, PROP_TYPES, StylesPanelSections } from "@draftbit/types";
2
+ export const SEED_DATA = {
3
+ name: "Linear Gradient",
4
+ tag: "LinearGradient",
5
+ description: "Linear Gradient Component",
6
+ layout: {
7
+ width: "100%",
8
+ height: "100%"
9
+ },
10
+ stylesPanelSections: [StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Borders, StylesPanelSections.Effects],
11
+ props: {
12
+ endY: {
13
+ group: GROUPS.basic,
14
+ label: "End Y",
15
+ description: "End position from Bottom",
16
+ editable: true,
17
+ required: false,
18
+ defaultValue: 100,
19
+ min: 0,
20
+ max: 100,
21
+ step: 1,
22
+ precision: 0,
23
+ formType: FORM_TYPES.number,
24
+ propType: PROP_TYPES.NUMBER
25
+ },
26
+ endX: {
27
+ group: GROUPS.basic,
28
+ label: "End X",
29
+ description: "End position from Right",
30
+ editable: true,
31
+ required: false,
32
+ defaultValue: 100,
33
+ min: 0,
34
+ max: 100,
35
+ step: 1,
36
+ precision: 0,
37
+ formType: FORM_TYPES.number,
38
+ propType: PROP_TYPES.NUMBER
39
+ },
40
+ startY: {
41
+ group: GROUPS.basic,
42
+ label: "Start Y",
43
+ description: "Start position from Top",
44
+ editable: true,
45
+ required: false,
46
+ defaultValue: 0,
47
+ min: 0,
48
+ max: 100,
49
+ step: 1,
50
+ precision: 0,
51
+ formType: FORM_TYPES.number,
52
+ propType: PROP_TYPES.NUMBER
53
+ },
54
+ startX: {
55
+ group: GROUPS.basic,
56
+ label: "Start X",
57
+ description: "Start position from Left",
58
+ editable: true,
59
+ required: false,
60
+ defaultValue: 0,
61
+ min: 0,
62
+ max: 100,
63
+ step: 1,
64
+ precision: 0,
65
+ formType: FORM_TYPES.number,
66
+ propType: PROP_TYPES.NUMBER
67
+ },
68
+ color3: createColorProp({
69
+ label: "Color 3",
70
+ defaultValue: undefined
71
+ }),
72
+ color2: createColorProp({
73
+ label: "Color 2",
74
+ defaultValue: "secondary"
75
+ }),
76
+ color1: createColorProp({
77
+ label: "Color 1",
78
+ defaultValue: "primary"
79
+ })
80
+ }
81
+ };
@@ -0,0 +1,22 @@
1
+ import { COMPONENT_TYPES, createActionProp, createBoolProp, GROUPS, Triggers, StylesPanelSections } from "@draftbit/types";
2
+ export const SEED_DATA = {
3
+ name: "Map Callout",
4
+ tag: "MapCallout",
5
+ packageName: "@draftbit/maps",
6
+ stylesPanelSections: [StylesPanelSections.Size, StylesPanelSections.Margins, StylesPanelSections.Effects],
7
+ description: "An info window to display on top of a marker when it is clicked",
8
+ category: COMPONENT_TYPES.map,
9
+ triggers: [Triggers.OnPress],
10
+ layout: {},
11
+ props: {
12
+ onPress: createActionProp({
13
+ description: "Action to execute when the callout is pressed"
14
+ }),
15
+ showTooltip: createBoolProp({
16
+ label: "Show Tooltip",
17
+ description: 'If false, a default "tooltip" bubble window will be drawn around this callout\'s children. If true, the child views can fully customize their appearance, including any "bubble"-like styles',
18
+ group: GROUPS.basic,
19
+ defaultValue: false
20
+ })
21
+ }
22
+ };
@@ -0,0 +1,48 @@
1
+ import { COMPONENT_TYPES, createBoolProp, createColorProp, createNumberProp, createTextProp, GROUPS, StylesPanelSections } from "@draftbit/types";
2
+ export const SEED_DATA = {
3
+ name: "Map Marker",
4
+ tag: "MapMarker",
5
+ packageName: "@draftbit/maps",
6
+ description: "A marker to show inside map view",
7
+ category: COMPONENT_TYPES.map,
8
+ stylesPanelSections: [StylesPanelSections.Size, StylesPanelSections.Margins, StylesPanelSections.Effects],
9
+ layout: {},
10
+ props: {
11
+ latitude: createNumberProp({
12
+ label: "Latitude",
13
+ description: "The latitude in which the marker is located",
14
+ required: true,
15
+ precision: 6,
16
+ min: -90,
17
+ max: 90
18
+ }),
19
+ longitude: createNumberProp({
20
+ label: "Longitude",
21
+ description: "The longitude in which the marker is located",
22
+ required: true,
23
+ precision: 6,
24
+ min: -180,
25
+ max: 180
26
+ }),
27
+ title: createTextProp({
28
+ label: "Title",
29
+ description: "Title to show along with the marker",
30
+ defaultValue: null
31
+ }),
32
+ description: createTextProp({
33
+ label: "Description",
34
+ description: "Optional description for the marker",
35
+ defaultValue: null
36
+ }),
37
+ flat: createBoolProp({
38
+ label: "Flat",
39
+ description: "Sets whether this marker should be flat against the map (if true) or a billboard facing the camera (if false)",
40
+ group: GROUPS.basic,
41
+ defaultValue: false
42
+ }),
43
+ pinColor: createColorProp({
44
+ label: "Pin Color",
45
+ description: "Sets the color of the marker"
46
+ })
47
+ }
48
+ };
@@ -0,0 +1,135 @@
1
+ import { COMPONENT_TYPES, createBoolProp, createColorProp, createNumberProp, createTextProp, GROUPS, FORM_TYPES, PROP_TYPES, StylesPanelSections } from "@draftbit/types";
2
+ export const SEED_DATA = {
3
+ name: "Map View",
4
+ tag: "MapView",
5
+ packageName: "@draftbit/maps",
6
+ description: "A map view",
7
+ category: COMPONENT_TYPES.map,
8
+ stylesPanelSections: [StylesPanelSections.Size, StylesPanelSections.Margins],
9
+ layout: {
10
+ flex: 1,
11
+ width: "100%",
12
+ height: "100%"
13
+ },
14
+ props: {
15
+ provider: {
16
+ formType: FORM_TYPES.flatArray,
17
+ propType: PROP_TYPES.STRING,
18
+ editable: true,
19
+ group: GROUPS.basic,
20
+ label: "Provider",
21
+ description: "The maps provider",
22
+ required: false,
23
+ defaultValue: null,
24
+ options: ["google"]
25
+ },
26
+ latitude: createNumberProp({
27
+ label: "Initial Latitude",
28
+ description: "The longitude for the map's initial region",
29
+ required: false,
30
+ precision: 6,
31
+ min: -90,
32
+ max: 90,
33
+ defaultValue: 37.40241
34
+ }),
35
+ longitude: createNumberProp({
36
+ label: "Initial Longitude",
37
+ description: "The longitude for the map's initial region",
38
+ required: false,
39
+ precision: 6,
40
+ min: -180,
41
+ max: 180,
42
+ defaultValue: -122.12125
43
+ }),
44
+ zoom: createNumberProp({
45
+ label: "Initial Zoom",
46
+ description: "The initial zoom of the map",
47
+ required: true,
48
+ precision: 0,
49
+ step: 1,
50
+ defaultValue: 8,
51
+ min: 0,
52
+ max: 22,
53
+ group: GROUPS.basic
54
+ }),
55
+ mapType: {
56
+ label: "Map Type",
57
+ description: "The type of map to show",
58
+ group: GROUPS.basic,
59
+ editable: true,
60
+ formType: FORM_TYPES.flatArray,
61
+ propType: PROP_TYPES.STRING,
62
+ required: false,
63
+ defaultValue: null,
64
+ options: ["standard", "satellite", "hybrid", "terrain", "none", "mutedStandard"]
65
+ },
66
+ zoomEnabled: createBoolProp({
67
+ label: "Zoom Enabled",
68
+ description: "Whether zooming is enabled (native only)",
69
+ group: GROUPS.basic,
70
+ required: false,
71
+ defaultValue: true
72
+ }),
73
+ showsCompass: createBoolProp({
74
+ label: "Shows Compass",
75
+ description: "Whether compass is shown",
76
+ group: GROUPS.basic,
77
+ required: false,
78
+ defaultValue: false
79
+ }),
80
+ rotateEnabled: createBoolProp({
81
+ label: "Rotate Enabled",
82
+ description: "Whether rotating the map is enabled",
83
+ group: GROUPS.basic,
84
+ required: false,
85
+ defaultValue: true
86
+ }),
87
+ scrollEnabled: createBoolProp({
88
+ label: "Pan Enabled",
89
+ description: "Whether panning the map view is enabled",
90
+ group: GROUPS.basic,
91
+ required: false,
92
+ defaultValue: true
93
+ }),
94
+ loadingEnabled: createBoolProp({
95
+ label: "Loading Enabled",
96
+ description: "If true a loading indicator will show while the map is loading",
97
+ group: GROUPS.basic,
98
+ required: false,
99
+ defaultValue: true
100
+ }),
101
+ loadingIndicatorColor: createColorProp({
102
+ label: "Loading Indicator Color",
103
+ description: "Color of the loading indicator"
104
+ }),
105
+ loadingBackgroundColor: createColorProp({
106
+ label: "Loading BG Color",
107
+ description: "Color of the background to show while the map is loading"
108
+ }),
109
+ showsUserLocation: createBoolProp({
110
+ label: "Shows User Location",
111
+ description: "Whether to show the user's location on the map",
112
+ required: false,
113
+ defaultValue: null,
114
+ group: GROUPS.basic
115
+ }),
116
+ followsUserLocation: createBoolProp({
117
+ label: "Follows User Location (iOS only)",
118
+ description: "Whether to set the map region to follow the user's location",
119
+ required: false,
120
+ defaultValue: null,
121
+ group: GROUPS.basic
122
+ }),
123
+ showsPointsOfInterest: createBoolProp({
124
+ label: "Shows Points of Interest",
125
+ description: "Whether to show points of interest on the map.",
126
+ required: false,
127
+ defaultValue: true,
128
+ group: GROUPS.basic
129
+ }),
130
+ apiKey: createTextProp({
131
+ defaultValue: process.env.GOOGLE_MAPS_API_KEY,
132
+ editable: false
133
+ })
134
+ }
135
+ };
@@ -0,0 +1,20 @@
1
+ import { COMPONENT_TYPES, FORM_TYPES, GROUPS, PROP_TYPES, StylesPanelSections } from "@draftbit/types";
2
+ export const SEED_DATA = {
3
+ name: "Markdown",
4
+ tag: "Markdown",
5
+ description: "A component that renders markdown",
6
+ category: COMPONENT_TYPES.text,
7
+ stylesPanelSections: [StylesPanelSections.Typography, StylesPanelSections.LayoutSelectedItem, StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Effects],
8
+ props: {
9
+ children: {
10
+ group: GROUPS.data,
11
+ label: "Markdown Text",
12
+ description: "Markdown text to be rendered ",
13
+ editable: true,
14
+ required: true,
15
+ formType: FORM_TYPES.string,
16
+ propType: PROP_TYPES.STRING,
17
+ defaultValue: "### Markdown"
18
+ }
19
+ }
20
+ };
@@ -0,0 +1,42 @@
1
+ import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, createBoolProp, StylesPanelSections } from "@draftbit/types";
2
+ export const SEED_DATA = {
3
+ name: "Modal",
4
+ tag: "Modal",
5
+ description: "A basic Modal Component",
6
+ category: COMPONENT_TYPES.layout,
7
+ stylesPanelSections: [StylesPanelSections.NoStyles],
8
+ props: {
9
+ animationType: {
10
+ group: GROUPS.basic,
11
+ label: "Animation Type",
12
+ description: "Animation Type",
13
+ options: ["slide", "fade", "none"],
14
+ editable: true,
15
+ required: false,
16
+ formType: FORM_TYPES.flatArray,
17
+ propType: PROP_TYPES.STRING,
18
+ defaultValue: "none"
19
+ },
20
+ transparent: createBoolProp({
21
+ group: GROUPS.basic,
22
+ label: "Transparent",
23
+ description: "Determines whether the modal will fill the entire view. Setting this to true will render the modal over a transparent background"
24
+ }),
25
+ visible: createBoolProp({
26
+ group: GROUPS.data,
27
+ label: "Visible",
28
+ description: "Determines whether the modal is visible"
29
+ }),
30
+ presentationStyle: {
31
+ group: GROUPS.basic,
32
+ label: "Presentation Style",
33
+ description: "Presentation Style",
34
+ options: ["fullScreen", "pageSheet", "formSheet", "overFullScreen"],
35
+ editable: true,
36
+ required: false,
37
+ formType: FORM_TYPES.flatArray,
38
+ propType: PROP_TYPES.STRING,
39
+ defaultValue: null
40
+ }
41
+ }
42
+ };
@@ -0,0 +1,101 @@
1
+ import { COMPONENT_TYPES, createBoolProp, CONTAINER_COMPONENT_STYLES_SECTIONS, createStaticNumberProp, StylesPanelSections, createStaticBoolProp } from "@draftbit/types";
2
+ const SHARED_SEED_DATA = {
3
+ category: COMPONENT_TYPES.layout,
4
+ packageName: "native-base",
5
+ stylesPanelSections: CONTAINER_COMPONENT_STYLES_SECTIONS
6
+ };
7
+ const CONTAINER_COMPONENT_STYLES_WITHOUT_FLEX = CONTAINER_COMPONENT_STYLES_SECTIONS.filter(item => item !== StylesPanelSections.LayoutFlexItems && item !== StylesPanelSections.LayoutContent);
8
+ export const SEED_DATA = [{
9
+ name: "Aspect Ratio",
10
+ tag: "AspectRatio",
11
+ description: "Controls the size of the undefined dimension of a node or child component using an aspect ratio",
12
+ ...SHARED_SEED_DATA,
13
+ props: {
14
+ ratio: createStaticNumberProp({
15
+ label: "Ratio",
16
+ description: "The aspect ratio of the container in decimal format (ex: 3/4 -> 1.33)",
17
+ defaultValue: 1.33
18
+ })
19
+ },
20
+ stylesPanelSections: [StylesPanelSections.Background, StylesPanelSections.Size, StylesPanelSections.Margins, StylesPanelSections.Position, StylesPanelSections.Borders, StylesPanelSections.Effects]
21
+ }, {
22
+ name: "Box",
23
+ tag: "Box",
24
+ description: "This is a generic component for low level layout needs. It is similar to a div in HTML",
25
+ ...SHARED_SEED_DATA
26
+ }, {
27
+ name: "Center",
28
+ tag: "Center",
29
+ description: "Center aligns its contents to the center within itself",
30
+ ...SHARED_SEED_DATA,
31
+ stylesPanelSections: CONTAINER_COMPONENT_STYLES_WITHOUT_FLEX
32
+ }, {
33
+ name: "Circle",
34
+ tag: "Circle",
35
+ description: "Center aligns its contents to the center within itself with a round border radius",
36
+ ...SHARED_SEED_DATA,
37
+ stylesPanelSections: CONTAINER_COMPONENT_STYLES_WITHOUT_FLEX
38
+ }, {
39
+ name: "Container",
40
+ tag: "Container",
41
+ description: "The Container restricts a content's width according to current breakpoint, while keeping the size fluid",
42
+ props: {
43
+ centerContent: createStaticBoolProp({
44
+ label: "Center content",
45
+ description: "Center child elements based on their content width",
46
+ defaultValue: true
47
+ })
48
+ },
49
+ ...SHARED_SEED_DATA
50
+ }, {
51
+ name: "Column",
52
+ tag: "Column",
53
+ description: "Column aligns items vertically",
54
+ layout: {
55
+ flexDirection: "column"
56
+ },
57
+ ...SHARED_SEED_DATA
58
+ }, {
59
+ name: "Row",
60
+ tag: "Row",
61
+ description: "Column aligns items horizontally",
62
+ layout: {
63
+ flexDirection: "row"
64
+ },
65
+ ...SHARED_SEED_DATA
66
+ }, {
67
+ name: "Spacer",
68
+ tag: "Spacer",
69
+ description: "An adjustable, empty space that can be used to tune the spacing between child elements within Flex",
70
+ layout: {
71
+ flex: 1
72
+ },
73
+ ...SHARED_SEED_DATA,
74
+ stylesPanelSections: [StylesPanelSections.LayoutSelectedItem, StylesPanelSections.Background, StylesPanelSections.Margins]
75
+ }, {
76
+ name: "Stack",
77
+ tag: "Stack",
78
+ description: "Stack aligns items vertically or horizontally based on the direction prop",
79
+ ...SHARED_SEED_DATA,
80
+ props: {
81
+ isDisabled: createBoolProp({
82
+ label: "Disabled",
83
+ description: "If true, the Stack will be disabled"
84
+ }),
85
+ isInvalid: createBoolProp({
86
+ label: "Invalid",
87
+ description: "If true, the Stack will be invalid"
88
+ })
89
+ }
90
+ }, {
91
+ name: "ZStack",
92
+ tag: "ZStack",
93
+ description: "ZStack aligns items to the z-axis",
94
+ ...SHARED_SEED_DATA,
95
+ props: {
96
+ reversed: createBoolProp({
97
+ label: "Reversed",
98
+ description: "Determines whether to reverse the direction of items"
99
+ })
100
+ }
101
+ }];
@@ -0,0 +1,230 @@
1
+ import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, FIELD_NAME, Triggers, StylesPanelSections } from "@draftbit/types";
2
+ export const SEED_DATA_PROPS = {
3
+ style: {
4
+ group: GROUPS.basic,
5
+ label: "Style",
6
+ description: "Text Style",
7
+ editable: false,
8
+ required: false,
9
+ formType: FORM_TYPES.typeStyle,
10
+ propType: PROP_TYPES.THEME,
11
+ defaultValue: null
12
+ },
13
+ clearButtonMode: {
14
+ group: GROUPS.basic,
15
+ label: "Clear Button Mode",
16
+ description: "Enables a button within the textInput to clear the data entered",
17
+ editable: true,
18
+ required: false,
19
+ options: ["never", "while-editing", "unless-editing", "always"],
20
+ defaultValue: null,
21
+ formType: FORM_TYPES.flatArray,
22
+ propType: PROP_TYPES.STRING
23
+ },
24
+ clearTextOnFocus: {
25
+ group: GROUPS.basic,
26
+ label: "Clear Text on Focus",
27
+ description: "If true, clears the text field automatically when its focused.",
28
+ editable: true,
29
+ required: false,
30
+ defaultValue: null,
31
+ formType: FORM_TYPES.boolean,
32
+ propType: PROP_TYPES.BOOLEAN
33
+ },
34
+ enablesReturnKeyAutomatically: {
35
+ group: GROUPS.basic,
36
+ label: "Enables Return Key Automatically",
37
+ description: "If true, the keyboard disables the return key when there is no text and automatically enables it when there is (Default: false)",
38
+ editable: true,
39
+ required: false,
40
+ defaultValue: null,
41
+ formType: FORM_TYPES.boolean,
42
+ propType: PROP_TYPES.BOOLEAN
43
+ },
44
+ underlineColorAndroid: {
45
+ group: GROUPS.basic,
46
+ label: "Underline color",
47
+ description: "(Android Only) The color of the underline(the line underneath the text when finished typing.",
48
+ editable: true,
49
+ required: false,
50
+ defaultValue: null,
51
+ formType: FORM_TYPES.color,
52
+ propType: PROP_TYPES.THEME
53
+ },
54
+ fieldName: {
55
+ ...FIELD_NAME,
56
+ defaultValue: "numberInputValue",
57
+ handlerPropName: "onChangeText"
58
+ }
59
+ };
60
+ export const SEED_DATA = [{
61
+ name: "Number Input",
62
+ tag: "NumberInput",
63
+ description: "An input field that allows users to type in data.",
64
+ category: COMPONENT_TYPES.input,
65
+ stylesPanelSections: [StylesPanelSections.Typography, StylesPanelSections.Background, StylesPanelSections.Size, StylesPanelSections.MarginsAndPaddings, StylesPanelSections.Position, StylesPanelSections.Borders, StylesPanelSections.Effects],
66
+ preview_image_url: "https://res.cloudinary.com/altos/image/upload/draftbit/Jigsaw/TextInput.png",
67
+ supports_list_render: false,
68
+ layout: {
69
+ borderLeftWidth: 1,
70
+ borderRightWidth: 1,
71
+ borderTopWidth: 1,
72
+ borderBottomWidth: 1,
73
+ borderColor: "divider",
74
+ paddingLeft: 8,
75
+ paddingRight: 8,
76
+ paddingTop: 8,
77
+ paddingBottom: 8,
78
+ borderRadius: 8
79
+ },
80
+ triggers: [Triggers.OnChangeText],
81
+ props: {
82
+ ...SEED_DATA_PROPS,
83
+ allowFontScaling: {
84
+ group: GROUPS.advanced,
85
+ label: "Allow Font Scaling",
86
+ description: "Whether fonts should scale to respect Text Size in the user's accessibility settings. (Default: true)",
87
+ editable: true,
88
+ required: false,
89
+ defaultValue: null,
90
+ formType: FORM_TYPES.boolean,
91
+ propType: PROP_TYPES.BOOLEAN
92
+ },
93
+ autoFocus: {
94
+ group: GROUPS.basic,
95
+ label: "Auto Focus",
96
+ description: "Focuses the input on load in and brings up the keyboard",
97
+ editable: true,
98
+ required: false,
99
+ defaultValue: null,
100
+ formType: FORM_TYPES.boolean,
101
+ propType: PROP_TYPES.BOOLEAN
102
+ },
103
+ caretHidden: {
104
+ group: GROUPS.advanced,
105
+ label: "Hide Caret",
106
+ description: "Hides the caret(the line small line underneath each showing where you're editing/typing",
107
+ editable: true,
108
+ required: false,
109
+ defaultValue: null,
110
+ formType: FORM_TYPES.boolean,
111
+ propType: PROP_TYPES.BOOLEAN
112
+ },
113
+ contextMenuHidden: {
114
+ group: GROUPS.advanced,
115
+ label: "Hide Context Menu",
116
+ description: "Hides the system context menu (Default: false)",
117
+ editable: true,
118
+ required: false,
119
+ defaultValue: null,
120
+ formType: FORM_TYPES.boolean,
121
+ propType: PROP_TYPES.BOOLEAN
122
+ },
123
+ editable: {
124
+ group: GROUPS.advanced,
125
+ label: "Editable",
126
+ description: "If false, the text is not editable",
127
+ editable: true,
128
+ required: false,
129
+ defaultValue: true,
130
+ formType: FORM_TYPES.boolean,
131
+ propType: PROP_TYPES.BOOLEAN
132
+ },
133
+ keyboardAppearance: {
134
+ group: GROUPS.advanced,
135
+ label: "Keyboard Appearance",
136
+ description: "Determines the color of the keyboard.(iOS Only)",
137
+ editable: true,
138
+ required: false,
139
+ defaultValue: null,
140
+ options: ["default", "light", "dark"],
141
+ formType: FORM_TYPES.flatArray,
142
+ propType: PROP_TYPES.STRING
143
+ },
144
+ keyboardType: {
145
+ group: GROUPS.advanced,
146
+ label: "Keyboard Type",
147
+ description: "Determines what keyboard is given to the user.",
148
+ editable: true,
149
+ required: false,
150
+ defaultValue: null,
151
+ options: ["numeric", "numbers-and-punctuation", "number-pad"],
152
+ formType: FORM_TYPES.flatArray,
153
+ propType: PROP_TYPES.STRING
154
+ },
155
+ maxLength: {
156
+ group: GROUPS.basic,
157
+ label: "Max Length",
158
+ description: "Limits the input to a set number of characters.",
159
+ editable: true,
160
+ required: false,
161
+ defaultValue: null,
162
+ min: 0,
163
+ step: 1,
164
+ precision: 0,
165
+ formType: FORM_TYPES.number,
166
+ propType: PROP_TYPES.NUMBER
167
+ },
168
+ placeholder: {
169
+ group: GROUPS.basic,
170
+ label: "Placeholder Text",
171
+ description: "The text that is shown on load when no value is available.",
172
+ editable: true,
173
+ required: false,
174
+ defaultValue: "Enter a number...",
175
+ formType: FORM_TYPES.string,
176
+ propType: PROP_TYPES.STRING
177
+ },
178
+ placeholderTextColor: {
179
+ group: GROUPS.basic,
180
+ label: "Placeholder Text Color",
181
+ description: "The color of the placeholder text.",
182
+ editable: true,
183
+ required: false,
184
+ defaultValue: null,
185
+ formType: FORM_TYPES.color,
186
+ propType: PROP_TYPES.STRING
187
+ },
188
+ returnKeyLabel: {
189
+ group: GROUPS.advanced,
190
+ label: "Return Key Label",
191
+ description: "(Android Only) Sets the label on the return key (use this instead of rewturnKeyType)",
192
+ editable: true,
193
+ required: false,
194
+ defaultValue: null,
195
+ formType: FORM_TYPES.string,
196
+ propType: PROP_TYPES.STRING
197
+ },
198
+ returnKeyType: {
199
+ group: GROUPS.advanced,
200
+ label: "Return Key Type",
201
+ description: "Determines how the return key should look like",
202
+ editable: true,
203
+ required: false,
204
+ defaultValue: null,
205
+ options: ["done", "go", "next", "search", "send", "none", "previous", "default", "emergency-call", "google", "join", "route", "yahoo"],
206
+ formType: FORM_TYPES.flatArray,
207
+ propType: PROP_TYPES.STRING
208
+ },
209
+ selectionColor: {
210
+ group: GROUPS.advanced,
211
+ label: "Selection Color",
212
+ description: "Color of the highlighted portion when selecting.",
213
+ editable: true,
214
+ required: false,
215
+ defaultValue: null,
216
+ formType: FORM_TYPES.color,
217
+ propType: PROP_TYPES.STRING
218
+ },
219
+ selectTextOnFocus: {
220
+ group: GROUPS.advanced,
221
+ label: "Select Text on Focus",
222
+ description: "If true, all the text will automatically be selected on focus",
223
+ editable: true,
224
+ required: false,
225
+ defaultValue: null,
226
+ formType: FORM_TYPES.boolean,
227
+ propType: PROP_TYPES.BOOLEAN
228
+ }
229
+ }
230
+ }];