@draftbit/core 46.0.0 → 46.0.1-eb73d2.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 (376) hide show
  1. package/lib/commonjs/Provider.js.map +1 -1
  2. package/lib/commonjs/components/ActionSheet/ActionSheetCancel.js.map +1 -1
  3. package/lib/commonjs/components/ActionSheet/ActionSheetItem.js.map +1 -1
  4. package/lib/commonjs/components/AnimatedCircularProgress.js.map +1 -1
  5. package/lib/commonjs/components/AspectRatio.js.map +1 -1
  6. package/lib/commonjs/components/AvatarEdit.js.map +1 -1
  7. package/lib/commonjs/components/Banner.js.map +1 -1
  8. package/lib/commonjs/components/Card.js.map +1 -1
  9. package/lib/commonjs/components/CardBlock.js.map +1 -1
  10. package/lib/commonjs/components/CardContainer.js.map +1 -1
  11. package/lib/commonjs/components/CardContainerRating.js.map +1 -1
  12. package/lib/commonjs/components/CardContainerShortImage.js.map +1 -1
  13. package/lib/commonjs/components/CardInline.js.map +1 -1
  14. package/lib/commonjs/components/Carousel.js.map +1 -1
  15. package/lib/commonjs/components/CircleImage.js.map +1 -1
  16. package/lib/commonjs/components/CircularProgress.js.map +1 -1
  17. package/lib/commonjs/components/Container.js.map +1 -1
  18. package/lib/commonjs/components/DatePicker/DatePicker.js.map +1 -1
  19. package/lib/commonjs/components/DatePicker/DatePickerComponent.js.map +1 -1
  20. package/lib/commonjs/components/DeprecatedButton.js +20 -4
  21. package/lib/commonjs/components/DeprecatedButton.js.map +1 -1
  22. package/lib/commonjs/components/DeprecatedCardWrapper.js +14 -2
  23. package/lib/commonjs/components/DeprecatedCardWrapper.js.map +1 -1
  24. package/lib/commonjs/components/DeprecatedFAB.js.map +1 -1
  25. package/lib/commonjs/components/Divider.js.map +1 -1
  26. package/lib/commonjs/components/Elevation.js.map +1 -1
  27. package/lib/commonjs/components/FAB.js.map +1 -1
  28. package/lib/commonjs/components/FieldSearchBarFull.js.map +1 -1
  29. package/lib/commonjs/components/Header.js.map +1 -1
  30. package/lib/commonjs/components/HeaderLarge.js.map +1 -1
  31. package/lib/commonjs/components/HeaderMedium.js.map +1 -1
  32. package/lib/commonjs/components/HeaderOverline.js.map +1 -1
  33. package/lib/commonjs/components/IconButton.js.map +1 -1
  34. package/lib/commonjs/components/Justification.js +3 -0
  35. package/lib/commonjs/components/Portal/Portal.js.map +1 -1
  36. package/lib/commonjs/components/ProgressCircle.js.map +1 -1
  37. package/lib/commonjs/components/ProgressIndicator.js.map +1 -1
  38. package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js.map +1 -1
  39. package/lib/commonjs/components/ResizeMode.js +3 -0
  40. package/lib/commonjs/components/Row.js.map +1 -1
  41. package/lib/commonjs/components/RowBodyIcon.js.map +1 -1
  42. package/lib/commonjs/components/RowHeadlineImageCaption.js.map +1 -1
  43. package/lib/commonjs/components/RowHeadlineImageIcon.js.map +1 -1
  44. package/lib/commonjs/components/StarRating.js.map +1 -1
  45. package/lib/commonjs/components/Surface.js.map +1 -1
  46. package/lib/commonjs/components/Swiper/Swiper.js.map +1 -1
  47. package/lib/commonjs/components/ToggleButton.js.map +1 -1
  48. package/lib/commonjs/interfaces/Icon.js.map +1 -1
  49. package/lib/commonjs/mappings/RadioButtonGroup.js.map +1 -1
  50. package/lib/commonjs/mappings/RadioButtonRow.js.map +1 -1
  51. package/lib/module/Provider.js.map +1 -1
  52. package/lib/module/components/ActionSheet/ActionSheetCancel.js.map +1 -1
  53. package/lib/module/components/ActionSheet/ActionSheetItem.js.map +1 -1
  54. package/lib/module/components/AnimatedCircularProgress.js.map +1 -1
  55. package/lib/module/components/AspectRatio.js.map +1 -1
  56. package/lib/module/components/AvatarEdit.js.map +1 -1
  57. package/lib/module/components/Banner.js.map +1 -1
  58. package/lib/module/components/Button.js +32 -11
  59. package/lib/module/components/Button.js.map +1 -1
  60. package/lib/module/components/Card.js.map +1 -1
  61. package/lib/module/components/CardBlock.js.map +1 -1
  62. package/lib/module/components/CardContainer.js.map +1 -1
  63. package/lib/module/components/CardContainerRating.js.map +1 -1
  64. package/lib/module/components/CardContainerShortImage.js.map +1 -1
  65. package/lib/module/components/CardInline.js.map +1 -1
  66. package/lib/module/components/Carousel.js.map +1 -1
  67. package/lib/module/components/Checkbox/index.js.map +1 -1
  68. package/lib/module/components/CircleImage.js +16 -2
  69. package/lib/module/components/CircleImage.js.map +1 -1
  70. package/lib/module/components/CircularProgress.js.map +1 -1
  71. package/lib/module/components/Container.js.map +1 -1
  72. package/lib/module/components/DatePicker/DatePicker.js.map +1 -1
  73. package/lib/module/components/DatePicker/DatePickerComponent.js.map +1 -1
  74. package/lib/module/components/DatePicker/DatePickerComponentType.js.map +1 -1
  75. package/lib/module/components/DeprecatedButton.js.map +1 -1
  76. package/lib/module/components/DeprecatedCardWrapper.js.map +1 -1
  77. package/lib/module/components/DeprecatedFAB.js +20 -4
  78. package/lib/module/components/DeprecatedFAB.js.map +1 -1
  79. package/lib/module/components/Divider.js.map +1 -1
  80. package/lib/module/components/Elevation.js.map +1 -1
  81. package/lib/module/components/FAB.js.map +1 -1
  82. package/lib/module/components/FieldSearchBarFull.js.map +1 -1
  83. package/lib/module/components/Header.js.map +1 -1
  84. package/lib/module/components/HeaderLarge.js.map +1 -1
  85. package/lib/module/components/HeaderMedium.js.map +1 -1
  86. package/lib/module/components/HeaderOverline.js.map +1 -1
  87. package/lib/module/components/IconButton.js.map +1 -1
  88. package/lib/module/components/Justification.js +1 -1
  89. package/lib/module/components/NumberInput.js +13 -2
  90. package/lib/module/components/NumberInput.js.map +1 -1
  91. package/lib/module/components/Portal/Portal.js.map +1 -1
  92. package/lib/module/components/Portal/PortalManager.js +1 -1
  93. package/lib/module/components/Portal/PortalManager.js.map +1 -1
  94. package/lib/module/components/ProgressCircle.js.map +1 -1
  95. package/lib/module/components/ProgressIndicator.js.map +1 -1
  96. package/lib/module/components/RadioButton/RadioButtonFieldGroup.js.map +1 -1
  97. package/lib/module/components/RadioButton/RadioButtonGroup.js +16 -4
  98. package/lib/module/components/RadioButton/RadioButtonGroup.js.map +1 -1
  99. package/lib/module/components/RadioButton/RadioButtonRow.js +23 -6
  100. package/lib/module/components/RadioButton/RadioButtonRow.js.map +1 -1
  101. package/lib/module/components/ResizeMode.js +1 -1
  102. package/lib/module/components/Row.js.map +1 -1
  103. package/lib/module/components/RowBodyIcon.js.map +1 -1
  104. package/lib/module/components/RowHeadlineImageCaption.js.map +1 -1
  105. package/lib/module/components/RowHeadlineImageIcon.js.map +1 -1
  106. package/lib/module/components/ScreenContainer.js +21 -5
  107. package/lib/module/components/ScreenContainer.js.map +1 -1
  108. package/lib/module/components/StarRating.js.map +1 -1
  109. package/lib/module/components/Surface.js.map +1 -1
  110. package/lib/module/components/Swiper/Swiper.js.map +1 -1
  111. package/lib/module/components/ToggleButton.js.map +1 -1
  112. package/lib/module/interfaces/Icon.js.map +1 -1
  113. package/lib/typescript/src/components/Accordion/AccordionGroup.d.ts +2 -3022
  114. package/lib/typescript/src/components/Accordion/AccordionItem.d.ts +2 -3010
  115. package/lib/typescript/src/components/ActionSheet/ActionSheetCancel.d.ts +1 -1
  116. package/lib/typescript/src/components/ActionSheet/ActionSheetItem.d.ts +1 -1
  117. package/lib/typescript/src/components/AnimatedCircularProgress.d.ts +1 -1
  118. package/lib/typescript/src/components/AspectRatio.d.ts +1 -1
  119. package/lib/typescript/src/components/AvatarEdit.d.ts +2 -2
  120. package/lib/typescript/src/components/Banner.d.ts +2 -2
  121. package/lib/typescript/src/components/Card.d.ts +2 -2
  122. package/lib/typescript/src/components/CardBlock.d.ts +2 -2
  123. package/lib/typescript/src/components/CardContainer.d.ts +2 -2
  124. package/lib/typescript/src/components/CardContainerRating.d.ts +2 -2
  125. package/lib/typescript/src/components/CardContainerShortImage.d.ts +2 -2
  126. package/lib/typescript/src/components/CardInline.d.ts +2 -2
  127. package/lib/typescript/src/components/Carousel.d.ts +4 -7
  128. package/lib/typescript/src/components/CircleImage.d.ts +1 -1
  129. package/lib/typescript/src/components/Container.d.ts +2 -2
  130. package/lib/typescript/src/components/DatePicker/DatePicker.d.ts +2 -2
  131. package/lib/typescript/src/components/DatePicker/DatePickerComponent.d.ts +1 -1
  132. package/lib/typescript/src/components/DeprecatedButton.d.ts +2 -2
  133. package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts +2 -2
  134. package/lib/typescript/src/components/DeprecatedFAB.d.ts +2 -2
  135. package/lib/typescript/src/components/Divider.d.ts +2 -2
  136. package/lib/typescript/src/components/Elevation.d.ts +2 -2
  137. package/lib/typescript/src/components/FAB.d.ts +2 -2
  138. package/lib/typescript/src/components/FieldSearchBarFull.d.ts +2 -2
  139. package/lib/typescript/src/components/Header.d.ts +2 -2
  140. package/lib/typescript/src/components/HeaderLarge.d.ts +2 -2
  141. package/lib/typescript/src/components/HeaderMedium.d.ts +2 -2
  142. package/lib/typescript/src/components/HeaderOverline.d.ts +2 -2
  143. package/lib/typescript/src/components/IconButton.d.ts +2 -2
  144. package/lib/typescript/src/components/ProgressCircle.d.ts +2 -2
  145. package/lib/typescript/src/components/ProgressIndicator.d.ts +2 -2
  146. package/lib/typescript/src/components/RadioButton/RadioButtonFieldGroup.d.ts +2 -2
  147. package/lib/typescript/src/components/Row.d.ts +2 -2
  148. package/lib/typescript/src/components/RowBodyIcon.d.ts +2 -2
  149. package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts +2 -2
  150. package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts +2 -2
  151. package/lib/typescript/src/components/Slider.d.ts +2 -3032
  152. package/lib/typescript/src/components/StarRating.d.ts +2 -2
  153. package/lib/typescript/src/components/Surface.d.ts +2 -2
  154. package/lib/typescript/src/components/Switch.d.ts +2 -3018
  155. package/lib/typescript/src/components/ToggleButton.d.ts +2 -2
  156. package/lib/typescript/src/interfaces/Icon.d.ts +1 -3
  157. package/package.json +4 -4
  158. package/src/Provider.js +9 -0
  159. package/src/Provider.tsx +1 -0
  160. package/src/components/Accordion/AccordionGroup.js +44 -0
  161. package/src/components/Accordion/AccordionItem.js +32 -0
  162. package/src/components/Accordion/index.js +2 -0
  163. package/src/components/ActionSheet/ActionSheet.js +45 -0
  164. package/src/components/ActionSheet/ActionSheetCancel.js +6 -0
  165. package/src/components/ActionSheet/ActionSheetCancel.tsx +1 -1
  166. package/src/components/ActionSheet/ActionSheetItem.js +30 -0
  167. package/src/components/ActionSheet/ActionSheetItem.tsx +6 -1
  168. package/src/components/ActionSheet/index.js +3 -0
  169. package/src/components/AnimatedCircularProgress.js +43 -0
  170. package/src/components/AnimatedCircularProgress.tsx +1 -1
  171. package/src/components/AspectRatio.js +18 -0
  172. package/src/components/AspectRatio.tsx +1 -1
  173. package/src/components/AvatarEdit.js +30 -0
  174. package/src/components/AvatarEdit.tsx +1 -1
  175. package/src/components/Banner.js +109 -0
  176. package/src/components/Banner.tsx +1 -1
  177. package/src/components/Button.js +112 -0
  178. package/src/components/Card.js +57 -0
  179. package/src/components/Card.tsx +1 -1
  180. package/src/components/CardBlock.js +54 -0
  181. package/src/components/CardBlock.tsx +1 -1
  182. package/src/components/CardContainer.js +69 -0
  183. package/src/components/CardContainer.tsx +1 -1
  184. package/src/components/CardContainerRating.js +79 -0
  185. package/src/components/CardContainerRating.tsx +1 -1
  186. package/src/components/CardContainerShortImage.js +33 -0
  187. package/src/components/CardContainerShortImage.tsx +1 -1
  188. package/src/components/CardInline.js +36 -0
  189. package/src/components/CardInline.tsx +1 -1
  190. package/src/components/Carousel.js +66 -0
  191. package/src/components/Carousel.tsx +2 -1
  192. package/src/components/Checkbox/Checkbox.js +63 -0
  193. package/src/components/Checkbox/CheckboxGroup.js +21 -0
  194. package/src/components/Checkbox/CheckboxGroupRow.js +77 -0
  195. package/src/components/Checkbox/CheckboxRow.js +78 -0
  196. package/src/components/Checkbox/context.js +14 -0
  197. package/src/components/Checkbox/index.js +3 -0
  198. package/src/components/CircleImage.js +8 -0
  199. package/src/components/CircleImage.tsx +1 -1
  200. package/src/components/CircularProgress.js +78 -0
  201. package/src/components/CircularProgress.tsx +1 -0
  202. package/src/components/Config.js +63 -0
  203. package/src/components/Container.js +43 -0
  204. package/src/components/Container.tsx +1 -1
  205. package/src/components/DatePicker/DatePicker.js +368 -0
  206. package/src/components/DatePicker/DatePicker.tsx +1 -1
  207. package/src/components/DatePicker/DatePickerComponent.js +13 -0
  208. package/src/components/DatePicker/DatePickerComponent.tsx +1 -1
  209. package/src/components/DatePicker/DatePickerComponent.web.js +30 -0
  210. package/src/components/DatePicker/DatePickerComponentType.js +1 -0
  211. package/src/components/DeprecatedButton.js +95 -0
  212. package/src/components/DeprecatedButton.tsx +1 -1
  213. package/src/components/DeprecatedCardWrapper.js +18 -0
  214. package/src/components/DeprecatedCardWrapper.tsx +1 -1
  215. package/src/components/DeprecatedFAB.js +115 -0
  216. package/src/components/DeprecatedFAB.tsx +1 -1
  217. package/src/components/Divider.js +13 -0
  218. package/src/components/Divider.tsx +1 -1
  219. package/src/components/Elevation.js +20 -0
  220. package/src/components/Elevation.tsx +6 -1
  221. package/src/components/FAB.js +46 -0
  222. package/src/components/FAB.tsx +1 -1
  223. package/src/components/FieldSearchBarFull.js +53 -0
  224. package/src/components/FieldSearchBarFull.tsx +1 -1
  225. package/src/components/FormRow.js +19 -0
  226. package/src/components/Header.js +44 -0
  227. package/src/components/Header.tsx +1 -1
  228. package/src/components/HeaderLarge.js +7 -0
  229. package/src/components/HeaderLarge.tsx +1 -1
  230. package/src/components/HeaderMedium.js +7 -0
  231. package/src/components/HeaderMedium.tsx +1 -1
  232. package/src/components/HeaderOverline.js +7 -0
  233. package/src/components/HeaderOverline.tsx +1 -1
  234. package/src/components/IconButton.js +35 -0
  235. package/src/components/IconButton.tsx +1 -1
  236. package/src/components/Image.js +47 -0
  237. package/src/components/Justification.js +1 -0
  238. package/src/components/Layout.js +50 -0
  239. package/src/components/NumberInput.js +49 -0
  240. package/src/components/Picker/Picker.js +266 -0
  241. package/src/components/Picker/PickerComponent.android.js +68 -0
  242. package/src/components/Picker/PickerComponent.ios.js +78 -0
  243. package/src/components/Picker/PickerComponent.web.js +69 -0
  244. package/src/components/Picker/PickerTypes.js +1 -0
  245. package/src/components/Portal/Portal.js +35 -0
  246. package/src/components/Portal/Portal.tsx +1 -0
  247. package/src/components/Portal/PortalConsumer.js +28 -0
  248. package/src/components/Portal/PortalHost.js +105 -0
  249. package/src/components/Portal/PortalManager.js +29 -0
  250. package/src/components/ProgressBar.js +118 -0
  251. package/src/components/ProgressCircle.js +13 -0
  252. package/src/components/ProgressCircle.tsx +2 -1
  253. package/src/components/ProgressIndicator.js +27 -0
  254. package/src/components/ProgressIndicator.tsx +1 -1
  255. package/src/components/RadioButton/RadioButton.js +17 -0
  256. package/src/components/RadioButton/RadioButtonFieldGroup.js +17 -0
  257. package/src/components/RadioButton/RadioButtonFieldGroup.tsx +1 -1
  258. package/src/components/RadioButton/RadioButtonGroup.js +43 -0
  259. package/src/components/RadioButton/RadioButtonRow.js +76 -0
  260. package/src/components/RadioButton/context.js +14 -0
  261. package/src/components/RadioButton/index.js +4 -0
  262. package/src/components/ResizeMode.js +1 -0
  263. package/src/components/Row.js +48 -0
  264. package/src/components/Row.tsx +1 -1
  265. package/src/components/RowBodyIcon.js +8 -0
  266. package/src/components/RowBodyIcon.tsx +1 -1
  267. package/src/components/RowHeadlineImageCaption.js +12 -0
  268. package/src/components/RowHeadlineImageCaption.tsx +1 -1
  269. package/src/components/RowHeadlineImageIcon.js +14 -0
  270. package/src/components/RowHeadlineImageIcon.tsx +1 -1
  271. package/src/components/ScreenContainer.js +34 -0
  272. package/src/components/Slider.js +63 -0
  273. package/src/components/StarRating.js +50 -0
  274. package/src/components/StarRating.tsx +2 -2
  275. package/src/components/StepIndicator.js +346 -0
  276. package/src/components/Stepper.js +39 -0
  277. package/src/components/Surface.js +32 -0
  278. package/src/components/Surface.tsx +1 -1
  279. package/src/components/Swiper/Swiper.js +29 -0
  280. package/src/components/Swiper/Swiper.tsx +1 -0
  281. package/src/components/Swiper/SwiperItem.js +9 -0
  282. package/src/components/Swiper/index.js +2 -0
  283. package/src/components/Switch.js +56 -0
  284. package/src/components/Text.js +28 -0
  285. package/src/components/TextField.js +420 -0
  286. package/src/components/ToggleButton.js +39 -0
  287. package/src/components/ToggleButton.tsx +1 -1
  288. package/src/components/Touchable.js +12 -0
  289. package/src/components/Touchable.web.js +2 -0
  290. package/src/components/Typography.js +36 -0
  291. package/src/components/useAuthState.js +31 -0
  292. package/src/constants.js +10 -0
  293. package/src/hooks.js +12 -0
  294. package/src/index.js +52 -0
  295. package/src/interfaces/Icon.js +8 -0
  296. package/src/interfaces/Icon.ts +1 -1
  297. package/src/mappings/Accordion.js +41 -0
  298. package/src/mappings/AccordionItem.js +16 -0
  299. package/src/mappings/ActionSheet.js +13 -0
  300. package/src/mappings/ActionSheetCancel.js +19 -0
  301. package/src/mappings/ActionSheetItem.js +23 -0
  302. package/src/mappings/ActivityIndicator.js +53 -0
  303. package/src/mappings/AudioPlayer.js +20 -0
  304. package/src/mappings/AvatarEdit.js +37 -0
  305. package/src/mappings/Banner.js +32 -0
  306. package/src/mappings/BlurView.js +41 -0
  307. package/src/mappings/Button.js +56 -0
  308. package/src/mappings/Card.js +52 -0
  309. package/src/mappings/CardBlock.js +122 -0
  310. package/src/mappings/CardContainer.js +102 -0
  311. package/src/mappings/CardContainerRating.js +124 -0
  312. package/src/mappings/CardContainerShortImage.js +118 -0
  313. package/src/mappings/CardInline.js +51 -0
  314. package/src/mappings/Carousel.js +18 -0
  315. package/src/mappings/Checkbox.js +45 -0
  316. package/src/mappings/CheckboxGroup.js +25 -0
  317. package/src/mappings/CheckboxRow.js +56 -0
  318. package/src/mappings/CircleImage.js +24 -0
  319. package/src/mappings/Container.js +29 -0
  320. package/src/mappings/CustomCode.js +8 -0
  321. package/src/mappings/DatePicker.js +147 -0
  322. package/src/mappings/Divider.js +26 -0
  323. package/src/mappings/FAB.js +36 -0
  324. package/src/mappings/Fetch.js +12 -0
  325. package/src/mappings/FieldSearchBarFull.js +49 -0
  326. package/src/mappings/FlatList.js +19 -0
  327. package/src/mappings/HeaderLarge.js +28 -0
  328. package/src/mappings/HeaderMedium.js +54 -0
  329. package/src/mappings/HeaderOverline.js +54 -0
  330. package/src/mappings/Icon.js +25 -0
  331. package/src/mappings/IconButton.js +30 -0
  332. package/src/mappings/Image.js +15 -0
  333. package/src/mappings/ImageBackground.js +28 -0
  334. package/src/mappings/KeyboardAvoidingView.js +40 -0
  335. package/src/mappings/KeyboardAwareScrollView.js +49 -0
  336. package/src/mappings/Layout.js +195 -0
  337. package/src/mappings/LinearGradient.js +77 -0
  338. package/src/mappings/MapCallout.js +21 -0
  339. package/src/mappings/MapMarker.js +47 -0
  340. package/src/mappings/MapView.js +138 -0
  341. package/src/mappings/Modal.js +41 -0
  342. package/src/mappings/Picker.js +139 -0
  343. package/src/mappings/ProgressBar.js +100 -0
  344. package/src/mappings/ProgressCircle.js +108 -0
  345. package/src/mappings/ProgressIndicator.js +180 -0
  346. package/src/mappings/RadioButton.js +50 -0
  347. package/src/mappings/RadioButtonGroup.js +16 -0
  348. package/src/mappings/RadioButtonRow.js +37 -0
  349. package/src/mappings/RowBodyIcon.js +75 -0
  350. package/src/mappings/RowHeadlineImageCaption.js +167 -0
  351. package/src/mappings/RowHeadlineImageIcon.js +99 -0
  352. package/src/mappings/SafeAreaView.js +33 -0
  353. package/src/mappings/ScrollView.js +30 -0
  354. package/src/mappings/Slider.js +59 -0
  355. package/src/mappings/StarRating.js +42 -0
  356. package/src/mappings/Stepper.js +28 -0
  357. package/src/mappings/Surface.js +13 -0
  358. package/src/mappings/Swiper.js +60 -0
  359. package/src/mappings/SwiperItem.js +8 -0
  360. package/src/mappings/Switch.js +75 -0
  361. package/src/mappings/Text.js +232 -0
  362. package/src/mappings/TextArea.js +52 -0
  363. package/src/mappings/TextField.js +158 -0
  364. package/src/mappings/TextInput.js +208 -0
  365. package/src/mappings/ToggleButton.js +45 -0
  366. package/src/mappings/Touchable.js +12 -0
  367. package/src/mappings/Video.js +74 -0
  368. package/src/mappings/View.js +206 -0
  369. package/src/mappings/WebView.js +18 -0
  370. package/src/styles/DarkTheme.js +26 -0
  371. package/src/styles/DefaultTheme.js +111 -0
  372. package/src/styles/fonts.js +62 -0
  373. package/src/styles/overlay.js +60 -0
  374. package/src/styles/shadow.js +51 -0
  375. package/src/theming.js +3 -0
  376. package/src/utilities.js +102 -0
@@ -0,0 +1,77 @@
1
+ import { createColorProp, FORM_TYPES, GROUPS, PROP_TYPES, } from "@draftbit/types";
2
+ export const SEED_DATA = {
3
+ name: "Linear Gradient",
4
+ tag: "LinearGradient",
5
+ description: "Linear Gradient Component",
6
+ layout: { width: "100%", height: "100%" },
7
+ props: {
8
+ endY: {
9
+ group: GROUPS.basic,
10
+ label: "End Y",
11
+ description: "End position from Bottom",
12
+ editable: true,
13
+ required: false,
14
+ defaultValue: 100,
15
+ min: 0,
16
+ max: 100,
17
+ step: 1,
18
+ precision: 0,
19
+ formType: FORM_TYPES.number,
20
+ propType: PROP_TYPES.NUMBER,
21
+ },
22
+ endX: {
23
+ group: GROUPS.basic,
24
+ label: "End X",
25
+ description: "End position from Right",
26
+ editable: true,
27
+ required: false,
28
+ defaultValue: 100,
29
+ min: 0,
30
+ max: 100,
31
+ step: 1,
32
+ precision: 0,
33
+ formType: FORM_TYPES.number,
34
+ propType: PROP_TYPES.NUMBER,
35
+ },
36
+ startY: {
37
+ group: GROUPS.basic,
38
+ label: "Start Y",
39
+ description: "Start position from Top",
40
+ editable: true,
41
+ required: false,
42
+ defaultValue: 0,
43
+ min: 0,
44
+ max: 100,
45
+ step: 1,
46
+ precision: 0,
47
+ formType: FORM_TYPES.number,
48
+ propType: PROP_TYPES.NUMBER,
49
+ },
50
+ startX: {
51
+ group: GROUPS.basic,
52
+ label: "Start X",
53
+ description: "Start position from Left",
54
+ editable: true,
55
+ required: false,
56
+ defaultValue: 0,
57
+ min: 0,
58
+ max: 100,
59
+ step: 1,
60
+ precision: 0,
61
+ formType: FORM_TYPES.number,
62
+ propType: PROP_TYPES.NUMBER,
63
+ },
64
+ color3: createColorProp({
65
+ label: "Color 3",
66
+ defaultValue: undefined,
67
+ }),
68
+ color2: createColorProp({
69
+ label: "Color 2",
70
+ defaultValue: "secondary",
71
+ }),
72
+ color1: createColorProp({
73
+ label: "Color 1",
74
+ defaultValue: "primary",
75
+ }),
76
+ },
77
+ };
@@ -0,0 +1,21 @@
1
+ import { COMPONENT_TYPES, createActionProp, createBoolProp, GROUPS, Triggers, } from "@draftbit/types";
2
+ export const SEED_DATA = {
3
+ name: "Map Callout",
4
+ tag: "MapCallout",
5
+ packageName: "@draftbit/maps",
6
+ description: "An info window to display on top of a marker when it is clicked",
7
+ category: COMPONENT_TYPES.media,
8
+ triggers: [Triggers.OnPress],
9
+ layout: {},
10
+ props: {
11
+ onPress: createActionProp({
12
+ description: "Action to execute when the callout is pressed",
13
+ }),
14
+ showTooltip: createBoolProp({
15
+ label: "Show Tooltip",
16
+ 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',
17
+ group: GROUPS.basic,
18
+ defaultValue: false,
19
+ }),
20
+ },
21
+ };
@@ -0,0 +1,47 @@
1
+ import { COMPONENT_TYPES, createBoolProp, createColorProp, createNumberProp, createTextProp, GROUPS, } 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.media,
8
+ layout: {},
9
+ props: {
10
+ latitude: createNumberProp({
11
+ label: "Latitude",
12
+ description: "The latitude in which the marker is located",
13
+ required: true,
14
+ precision: 6,
15
+ min: -90,
16
+ max: 90,
17
+ }),
18
+ longitude: createNumberProp({
19
+ label: "Longitude",
20
+ description: "The longitude in which the marker is located",
21
+ required: true,
22
+ precision: 6,
23
+ min: -180,
24
+ max: 180,
25
+ }),
26
+ title: createTextProp({
27
+ label: "Title",
28
+ description: "Title to show along with the marker",
29
+ defaultValue: null,
30
+ }),
31
+ description: createTextProp({
32
+ label: "Description",
33
+ description: "Optional description for the marker",
34
+ defaultValue: null,
35
+ }),
36
+ flat: createBoolProp({
37
+ label: "Flat",
38
+ description: "Sets whether this marker should be flat against the map (if true) or a billboard facing the camera (if false)",
39
+ group: GROUPS.basic,
40
+ defaultValue: false,
41
+ }),
42
+ pinColor: createColorProp({
43
+ label: "Pin Color",
44
+ description: "Sets the color of the marker",
45
+ }),
46
+ },
47
+ };
@@ -0,0 +1,138 @@
1
+ import { COMPONENT_TYPES, createBoolProp, createColorProp, createNumberProp, createTextProp, GROUPS, FORM_TYPES, PROP_TYPES, } 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.media,
8
+ layout: {
9
+ flex: 1,
10
+ },
11
+ props: {
12
+ provider: {
13
+ formType: FORM_TYPES.flatArray,
14
+ propType: PROP_TYPES.STRING,
15
+ editable: true,
16
+ group: GROUPS.basic,
17
+ label: "Provider",
18
+ description: "The maps provider",
19
+ required: false,
20
+ defaultValue: null,
21
+ options: ["google"],
22
+ },
23
+ latitude: createNumberProp({
24
+ label: "Initial Latitude",
25
+ description: "The longitude for the map's initial region",
26
+ required: false,
27
+ precision: 6,
28
+ min: -90,
29
+ max: 90,
30
+ defaultValue: 37.40241,
31
+ }),
32
+ longitude: createNumberProp({
33
+ label: "Initial Longitude",
34
+ description: "The longitude for the map's initial region",
35
+ required: false,
36
+ precision: 6,
37
+ min: -180,
38
+ max: 180,
39
+ defaultValue: -122.12125,
40
+ }),
41
+ zoom: createNumberProp({
42
+ label: "Initial Zoom",
43
+ description: "The initial zoom of the map",
44
+ required: true,
45
+ precision: 0,
46
+ step: 1,
47
+ defaultValue: 8,
48
+ min: 0,
49
+ max: 22,
50
+ group: GROUPS.basic,
51
+ }),
52
+ mapType: {
53
+ label: "Map Type",
54
+ description: "The type of map to show",
55
+ group: GROUPS.basic,
56
+ formType: FORM_TYPES.flatArray,
57
+ propType: PROP_TYPES.STRING,
58
+ required: false,
59
+ defaultValue: null,
60
+ options: [
61
+ "standard",
62
+ "satellite",
63
+ "hybrid",
64
+ "terrain",
65
+ "none",
66
+ "mutedStandard",
67
+ ],
68
+ },
69
+ zoomEnabled: createBoolProp({
70
+ label: "Zoom Enabled",
71
+ description: "Whether zooming is enabled (native only)",
72
+ group: GROUPS.basic,
73
+ required: false,
74
+ defaultValue: true,
75
+ }),
76
+ showsCompass: createBoolProp({
77
+ label: "Shows Compass",
78
+ description: "Whether compass is shown",
79
+ group: GROUPS.basic,
80
+ required: false,
81
+ defaultValue: false,
82
+ }),
83
+ rotateEnabled: createBoolProp({
84
+ label: "Rotate Enabled",
85
+ description: "Whether rotating the map is enabled",
86
+ group: GROUPS.basic,
87
+ required: false,
88
+ defaultValue: true,
89
+ }),
90
+ scrollEnabled: createBoolProp({
91
+ label: "Pan Enabled",
92
+ description: "Whether panning the map view is enabled",
93
+ group: GROUPS.basic,
94
+ required: false,
95
+ defaultValue: true,
96
+ }),
97
+ loadingEnabled: createBoolProp({
98
+ label: "Loading Enabled",
99
+ description: "If true a loading indicator will show while the map is loading",
100
+ group: GROUPS.basic,
101
+ required: false,
102
+ defaultValue: true,
103
+ }),
104
+ loadingIndicatorColor: createColorProp({
105
+ label: "Loading Indicator Color",
106
+ description: "Color of the loading indicator",
107
+ }),
108
+ loadingBackgroundColor: createColorProp({
109
+ label: "Loading BG Color",
110
+ description: "Color of the background to show while the map is loading",
111
+ }),
112
+ showsUserLocation: createBoolProp({
113
+ label: "Shows User Location",
114
+ description: "Whether to show the user's location on the map",
115
+ required: false,
116
+ defaultValue: null,
117
+ group: GROUPS.basic,
118
+ }),
119
+ followsUserLocation: createBoolProp({
120
+ label: "Follows User Location (iOS only)",
121
+ description: "Whether to set the map region to follow the user's location",
122
+ required: false,
123
+ defaultValue: null,
124
+ group: GROUPS.basic,
125
+ }),
126
+ showsPointsOfInterest: createBoolProp({
127
+ label: "Shows Points of Interest",
128
+ description: "Whether to show points of interest on the map.",
129
+ required: false,
130
+ defaultValue: true,
131
+ group: GROUPS.basic,
132
+ }),
133
+ apiKey: createTextProp({
134
+ defaultValue: process.env.GOOGLE_MAPS_API_KEY,
135
+ editable: false,
136
+ }),
137
+ },
138
+ };
@@ -0,0 +1,41 @@
1
+ import { GROUPS, COMPONENT_TYPES, FORM_TYPES, PROP_TYPES, createBoolProp, } from "@draftbit/types";
2
+ export const SEED_DATA = {
3
+ name: "Modal",
4
+ tag: "Modal",
5
+ description: "A basic Modal Component",
6
+ category: COMPONENT_TYPES.container,
7
+ props: {
8
+ animationType: {
9
+ group: GROUPS.basic,
10
+ label: "Animation Type",
11
+ description: "Animation Type",
12
+ options: ["slide", "fade", "none"],
13
+ editable: true,
14
+ required: false,
15
+ formType: FORM_TYPES.flatArray,
16
+ propType: PROP_TYPES.STRING,
17
+ defaultValue: "none",
18
+ },
19
+ transparent: createBoolProp({
20
+ group: GROUPS.basic,
21
+ label: "Transparent",
22
+ description: "Determines whether the modal will fill the entire view. Setting this to true will render the modal over a transparent background",
23
+ }),
24
+ visible: createBoolProp({
25
+ group: GROUPS.data,
26
+ label: "Visible",
27
+ description: "Determines whether the modal is visible",
28
+ }),
29
+ presentationStyle: {
30
+ group: GROUPS.basic,
31
+ label: "Presentation Style",
32
+ description: "Presentation Style",
33
+ options: ["fullScreen", "pageSheet", "formSheet", "overFullScreen"],
34
+ editable: true,
35
+ required: false,
36
+ formType: FORM_TYPES.flatArray,
37
+ propType: PROP_TYPES.STRING,
38
+ defaultValue: null,
39
+ },
40
+ },
41
+ };
@@ -0,0 +1,139 @@
1
+ import { COMPONENT_TYPES, Triggers, GROUPS, FORM_TYPES, PROP_TYPES, FIELD_NAME, createIconSizeProp, createColorProp, } from "@draftbit/types";
2
+ const SEED_DATA_PROPS = {
3
+ label: {
4
+ group: GROUPS.data,
5
+ label: "Label",
6
+ description: "The label to be displayed on the picker",
7
+ formType: FORM_TYPES.string,
8
+ propType: PROP_TYPES.STRING,
9
+ defaultValue: null,
10
+ editable: true,
11
+ required: true,
12
+ },
13
+ placeholder: {
14
+ group: GROUPS.basic,
15
+ label: "Placeholder",
16
+ description: "The placeholder text of the picker",
17
+ formType: FORM_TYPES.string,
18
+ propType: PROP_TYPES.STRING,
19
+ defaultValue: "Select an option",
20
+ editable: true,
21
+ required: false,
22
+ },
23
+ placeholderTextColor: {
24
+ group: GROUPS.basic,
25
+ label: "Placeholder Text Color",
26
+ description: "The color of the placeholder text.",
27
+ editable: true,
28
+ required: false,
29
+ defaultValue: null,
30
+ formType: FORM_TYPES.color,
31
+ propType: PROP_TYPES.STRING,
32
+ },
33
+ assistiveText: {
34
+ group: GROUPS.basic,
35
+ label: "Assistive text",
36
+ description: "Helper text to display below the picker",
37
+ formType: FORM_TYPES.string,
38
+ propType: PROP_TYPES.STRING,
39
+ defaultValue: null,
40
+ editable: true,
41
+ required: false,
42
+ },
43
+ options: {
44
+ group: GROUPS.data,
45
+ label: "Options",
46
+ description: "Array of picker options. An array of objects containing a label and value.",
47
+ editable: true,
48
+ required: false,
49
+ formType: FORM_TYPES.array,
50
+ propType: PROP_TYPES.OBJECT,
51
+ options: [],
52
+ defaultValue: null,
53
+ },
54
+ disabled: {
55
+ group: GROUPS.basic,
56
+ label: "Disabled",
57
+ description: "Whether the picker should be disabled. Will prevent selection and show a greyed out state.",
58
+ formType: FORM_TYPES.boolean,
59
+ propType: PROP_TYPES.BOOLEAN,
60
+ defaultValue: false,
61
+ editable: true,
62
+ required: false,
63
+ },
64
+ error: {
65
+ group: GROUPS.data,
66
+ label: "Error",
67
+ description: "Whether the picker should display the error state",
68
+ formType: FORM_TYPES.boolean,
69
+ propType: PROP_TYPES.BOOLEAN,
70
+ defaultValue: false,
71
+ editable: true,
72
+ required: false,
73
+ },
74
+ leftIconName: {
75
+ group: GROUPS.basic,
76
+ label: "Left icon name",
77
+ description: "The icon to display on the left",
78
+ formType: FORM_TYPES.icon,
79
+ propType: PROP_TYPES.ASSET,
80
+ defaultValue: null,
81
+ editable: true,
82
+ required: false,
83
+ },
84
+ leftIconMode: {
85
+ group: GROUPS.basic,
86
+ label: "Left icon mode",
87
+ description: "The mode of the icon to display on the left. 'inset' or 'outset'.",
88
+ formType: FORM_TYPES.flatArray,
89
+ propType: PROP_TYPES.STRING,
90
+ defaultValue: "inset",
91
+ options: ["inset", "outset"],
92
+ editable: true,
93
+ required: true,
94
+ },
95
+ rightIconName: {
96
+ group: GROUPS.basic,
97
+ label: "Right icon name",
98
+ description: "The icon to display on the right",
99
+ formType: FORM_TYPES.icon,
100
+ propType: PROP_TYPES.ASSET,
101
+ defaultValue: null,
102
+ editable: true,
103
+ required: false,
104
+ },
105
+ fieldName: {
106
+ ...FIELD_NAME,
107
+ defaultValue: "pickerValue",
108
+ handlerPropName: "onValueChange",
109
+ },
110
+ };
111
+ const SEED_DATA_TRIGGERS = [Triggers.OnValueChange];
112
+ export const SEED_DATA = [
113
+ {
114
+ name: "Picker",
115
+ tag: "Picker",
116
+ description: "A component used to pick a value from a set of options",
117
+ category: COMPONENT_TYPES.input,
118
+ preview_image_url: "{CLOUDINARY_URL}/Picker.png",
119
+ supports_list_render: false,
120
+ triggers: SEED_DATA_TRIGGERS,
121
+ props: {
122
+ ...SEED_DATA_PROPS,
123
+ type: {
124
+ label: "Appearance",
125
+ description: "Type of Picker",
126
+ formType: FORM_TYPES.flatArray,
127
+ propType: PROP_TYPES.STRING,
128
+ defaultValue: "solid",
129
+ options: ["solid", "underline"],
130
+ editable: true,
131
+ required: true,
132
+ group: GROUPS.basic,
133
+ },
134
+ iconSize: createIconSizeProp({ defaultValue: 24 }),
135
+ iconColor: createColorProp({ label: "Icon Color" }),
136
+ },
137
+ layout: {},
138
+ },
139
+ ];
@@ -0,0 +1,100 @@
1
+ import { COMPONENT_TYPES, FORM_TYPES, GROUPS, PROP_TYPES, } from "@draftbit/types";
2
+ export const SEED_DATA = [
3
+ {
4
+ name: "Progress Bar",
5
+ tag: "ProgressBar",
6
+ description: "A horizontal bar used to show completed progress",
7
+ category: COMPONENT_TYPES.deprecated,
8
+ preview_image_url: "{CLOUDINARY_URL}/Status_Progress.png",
9
+ supports_list_render: false,
10
+ props: {
11
+ progress: {
12
+ group: GROUPS.data,
13
+ label: "Progress",
14
+ description: "The amount of progress to display. A number 0-1.",
15
+ formType: FORM_TYPES.number,
16
+ propType: PROP_TYPES.NUMBER,
17
+ defaultValue: 0.5,
18
+ min: 0,
19
+ max: 1,
20
+ step: 0.01,
21
+ precision: 2,
22
+ editable: true,
23
+ required: true,
24
+ },
25
+ color: {
26
+ group: GROUPS.basic,
27
+ label: "Progress Color",
28
+ description: "Custom color for the progress shown",
29
+ formType: FORM_TYPES.color,
30
+ propType: PROP_TYPES.THEME,
31
+ defaultValue: null,
32
+ editable: true,
33
+ required: true,
34
+ },
35
+ unfilledColor: {
36
+ group: GROUPS.basic,
37
+ label: "Unfilled Color",
38
+ description: "The color of the unfilled portion of the progress bar(eg. if at 50% then this is the color of the other 50%)",
39
+ formType: FORM_TYPES.color,
40
+ propType: PROP_TYPES.THEME,
41
+ defaultValue: null,
42
+ editable: true,
43
+ required: true,
44
+ },
45
+ borderRadius: {
46
+ group: GROUPS.basic,
47
+ label: "Border Radius",
48
+ description: "The border radius of the bar",
49
+ formType: FORM_TYPES.number,
50
+ propType: PROP_TYPES.NUMBER,
51
+ defaultValue: 10,
52
+ min: 0,
53
+ max: 100,
54
+ step: 1,
55
+ precision: 1,
56
+ editable: true,
57
+ required: true,
58
+ },
59
+ borderWidth: {
60
+ group: GROUPS.basic,
61
+ label: "Border Width",
62
+ description: "The width of the border that surrounds the bar.",
63
+ formType: FORM_TYPES.number,
64
+ propType: PROP_TYPES.NUMBER,
65
+ defaultValue: 1,
66
+ min: 0,
67
+ max: 15,
68
+ step: 1,
69
+ precision: 1,
70
+ editable: true,
71
+ required: true,
72
+ },
73
+ borderColor: {
74
+ group: GROUPS.basic,
75
+ label: "Border Color",
76
+ description: "Custom color for border of the entire bar",
77
+ formType: FORM_TYPES.color,
78
+ propType: PROP_TYPES.THEME,
79
+ defaultValue: null,
80
+ editable: true,
81
+ required: true,
82
+ },
83
+ animationType: {
84
+ group: GROUPS.basic,
85
+ label: "Animation Type",
86
+ description: "The type of animation that occurs when the bar is filled(Default is Spring)",
87
+ formType: FORM_TYPES.flatArray,
88
+ propType: PROP_TYPES.STRING,
89
+ defaultValue: "spring",
90
+ options: ["decay", "timing", "spring"],
91
+ editable: true,
92
+ required: true,
93
+ },
94
+ },
95
+ layout: {
96
+ width: 200,
97
+ height: 20,
98
+ },
99
+ },
100
+ ];
@@ -0,0 +1,108 @@
1
+ import { COMPONENT_TYPES, FORM_TYPES, GROUPS, PROP_TYPES, } from "@draftbit/types";
2
+ export const SEED_DATA = {
3
+ name: "Progress Circle",
4
+ tag: "ProgressCircle",
5
+ description: "A circle used to show completed progress",
6
+ category: COMPONENT_TYPES.deprecated,
7
+ preview_image_url: "{CLOUDINARY_URL}/Status_Progress.png",
8
+ supports_list_render: false,
9
+ props: {
10
+ progress: {
11
+ group: GROUPS.data,
12
+ label: "Progress",
13
+ description: "The amount of progress to display. A number 0-1.",
14
+ formType: FORM_TYPES.number,
15
+ propType: PROP_TYPES.NUMBER,
16
+ defaultValue: 0.5,
17
+ min: 0,
18
+ max: 1,
19
+ step: 0.01,
20
+ precision: 2,
21
+ editable: true,
22
+ required: true,
23
+ },
24
+ color: {
25
+ group: GROUPS.basic,
26
+ label: "Color",
27
+ description: "Color for the progress shown",
28
+ editable: true,
29
+ defaultValue: "primary",
30
+ required: true,
31
+ formType: FORM_TYPES.color,
32
+ propType: PROP_TYPES.THEME,
33
+ },
34
+ unfilledColor: {
35
+ group: GROUPS.basic,
36
+ label: "Unfilled Color",
37
+ description: "The color of the unfilled portion of the progress bar(eg. if at 50% then this is the color of the other 50%)",
38
+ editable: true,
39
+ defaultValue: null,
40
+ required: true,
41
+ formType: FORM_TYPES.color,
42
+ propType: PROP_TYPES.THEME,
43
+ },
44
+ size: {
45
+ group: GROUPS.basic,
46
+ label: "Size",
47
+ description: "The size of the circle",
48
+ formType: FORM_TYPES.number,
49
+ propType: PROP_TYPES.NUMBER,
50
+ defaultValue: 100,
51
+ min: 0,
52
+ max: 300,
53
+ step: 1,
54
+ precision: 1,
55
+ editable: true,
56
+ required: true,
57
+ },
58
+ showsText: {
59
+ group: GROUPS.basic,
60
+ label: "Show Progress Text",
61
+ description: "Shows progress in the middle of the circle",
62
+ formType: FORM_TYPES.boolean,
63
+ propType: PROP_TYPES.BOOLEAN,
64
+ defaultValue: true,
65
+ editable: true,
66
+ required: true,
67
+ },
68
+ textStyle: {
69
+ group: GROUPS.basic,
70
+ label: "Text Style",
71
+ description: "Text Style of the inner circle",
72
+ editable: true,
73
+ required: true,
74
+ formType: FORM_TYPES.typeStyle,
75
+ propType: PROP_TYPES.THEME,
76
+ defaultValue: null,
77
+ },
78
+ thickness: {
79
+ group: GROUPS.basic,
80
+ label: "Thickness",
81
+ description: "Thickness of the inner circle",
82
+ formType: FORM_TYPES.number,
83
+ propType: PROP_TYPES.NUMBER,
84
+ defaultValue: 1,
85
+ min: 0,
86
+ max: 15,
87
+ step: 1,
88
+ precision: 1,
89
+ editable: true,
90
+ required: true,
91
+ },
92
+ strokeCap: {
93
+ group: GROUPS.basic,
94
+ label: "Stroke Cap",
95
+ description: "The style of the stroke",
96
+ formType: FORM_TYPES.flatArray,
97
+ propType: PROP_TYPES.STRING,
98
+ defaultValue: "butt",
99
+ options: ["butt", "square", "round"],
100
+ editable: true,
101
+ required: true,
102
+ },
103
+ },
104
+ layout: {
105
+ width: 250,
106
+ height: 250,
107
+ },
108
+ };