@draftbit/core 46.4.4-30f7df.2 → 46.4.4-38a1ca.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 (431) hide show
  1. package/lib/commonjs/components/Container.js +5 -17
  2. package/lib/commonjs/components/DatePicker/DatePicker.js +25 -15
  3. package/lib/commonjs/components/DatePicker/{DatePickerComponent.web.js → DatePickerComponent.__web.js} +3 -0
  4. package/lib/commonjs/components/DatePicker/DatePickerComponent.js +2 -0
  5. package/lib/commonjs/components/Picker/Picker.js +5 -5
  6. package/lib/commonjs/components/Stepper.js +8 -3
  7. package/lib/commonjs/index.js +0 -14
  8. package/lib/commonjs/mappings/AudioPlayer.js +32 -2
  9. package/lib/commonjs/mappings/DatePicker.js +20 -3
  10. package/lib/commonjs/mappings/Stepper.js +1 -1
  11. package/lib/commonjs/mappings/TextArea.js +14 -3
  12. package/lib/commonjs/mappings/TextField.js +14 -4
  13. package/lib/commonjs/mappings/TextInput.js +14 -3
  14. package/lib/module/components/DatePicker/DatePicker.js +24 -15
  15. package/lib/module/components/DatePicker/{DatePickerComponent.web.js → DatePickerComponent.__web.js} +3 -0
  16. package/lib/module/components/DatePicker/DatePickerComponent.js +2 -0
  17. package/lib/module/components/Picker/Picker.js +2 -2
  18. package/lib/module/components/Picker/PickerComponent.ios.js +13 -40
  19. package/lib/module/components/Stepper.js +7 -3
  20. package/lib/module/index.js +0 -1
  21. package/lib/module/mappings/AudioPlayer.js +33 -3
  22. package/lib/module/mappings/DatePicker.js +21 -4
  23. package/lib/module/mappings/FieldSearchBarFull.js +1 -4
  24. package/lib/module/mappings/Stepper.js +2 -2
  25. package/lib/module/mappings/TextArea.js +15 -4
  26. package/lib/module/mappings/TextField.js +14 -4
  27. package/lib/module/mappings/TextInput.js +15 -4
  28. package/lib/typescript/src/Provider.d.ts +1 -0
  29. package/lib/typescript/src/Provider.d.ts.map +1 -0
  30. package/lib/typescript/src/components/Accordion/AccordionGroup.d.ts +1 -0
  31. package/lib/typescript/src/components/Accordion/AccordionGroup.d.ts.map +1 -0
  32. package/lib/typescript/src/components/Accordion/AccordionItem.d.ts +1 -0
  33. package/lib/typescript/src/components/Accordion/AccordionItem.d.ts.map +1 -0
  34. package/lib/typescript/src/components/Accordion/index.d.ts +1 -0
  35. package/lib/typescript/src/components/Accordion/index.d.ts.map +1 -0
  36. package/lib/typescript/src/components/ActionSheet/ActionSheet.d.ts +1 -0
  37. package/lib/typescript/src/components/ActionSheet/ActionSheet.d.ts.map +1 -0
  38. package/lib/typescript/src/components/ActionSheet/ActionSheetCancel.d.ts +1 -0
  39. package/lib/typescript/src/components/ActionSheet/ActionSheetCancel.d.ts.map +1 -0
  40. package/lib/typescript/src/components/ActionSheet/ActionSheetItem.d.ts +1 -0
  41. package/lib/typescript/src/components/ActionSheet/ActionSheetItem.d.ts.map +1 -0
  42. package/lib/typescript/src/components/ActionSheet/index.d.ts +1 -0
  43. package/lib/typescript/src/components/ActionSheet/index.d.ts.map +1 -0
  44. package/lib/typescript/src/components/AnimatedCircularProgress.d.ts +1 -0
  45. package/lib/typescript/src/components/AnimatedCircularProgress.d.ts.map +1 -0
  46. package/lib/typescript/src/components/AspectRatio.d.ts +1 -0
  47. package/lib/typescript/src/components/AspectRatio.d.ts.map +1 -0
  48. package/lib/typescript/src/components/AvatarEdit.d.ts +1 -0
  49. package/lib/typescript/src/components/AvatarEdit.d.ts.map +1 -0
  50. package/lib/typescript/src/components/Banner.d.ts +1 -0
  51. package/lib/typescript/src/components/Banner.d.ts.map +1 -0
  52. package/lib/typescript/src/components/Button.d.ts +1 -0
  53. package/lib/typescript/src/components/Button.d.ts.map +1 -0
  54. package/lib/typescript/src/components/Card.d.ts +1 -0
  55. package/lib/typescript/src/components/Card.d.ts.map +1 -0
  56. package/lib/typescript/src/components/CardBlock.d.ts +1 -0
  57. package/lib/typescript/src/components/CardBlock.d.ts.map +1 -0
  58. package/lib/typescript/src/components/CardContainer.d.ts +1 -0
  59. package/lib/typescript/src/components/CardContainer.d.ts.map +1 -0
  60. package/lib/typescript/src/components/CardContainerRating.d.ts +1 -0
  61. package/lib/typescript/src/components/CardContainerRating.d.ts.map +1 -0
  62. package/lib/typescript/src/components/CardContainerShortImage.d.ts +1 -0
  63. package/lib/typescript/src/components/CardContainerShortImage.d.ts.map +1 -0
  64. package/lib/typescript/src/components/CardInline.d.ts +1 -0
  65. package/lib/typescript/src/components/CardInline.d.ts.map +1 -0
  66. package/lib/typescript/src/components/Carousel.d.ts +1 -0
  67. package/lib/typescript/src/components/Carousel.d.ts.map +1 -0
  68. package/lib/typescript/src/components/Checkbox/Checkbox.d.ts +1 -0
  69. package/lib/typescript/src/components/Checkbox/Checkbox.d.ts.map +1 -0
  70. package/lib/typescript/src/components/Checkbox/CheckboxGroup.d.ts +1 -0
  71. package/lib/typescript/src/components/Checkbox/CheckboxGroup.d.ts.map +1 -0
  72. package/lib/typescript/src/components/Checkbox/CheckboxGroupRow.d.ts +1 -0
  73. package/lib/typescript/src/components/Checkbox/CheckboxGroupRow.d.ts.map +1 -0
  74. package/lib/typescript/src/components/Checkbox/CheckboxRow.d.ts +1 -0
  75. package/lib/typescript/src/components/Checkbox/CheckboxRow.d.ts.map +1 -0
  76. package/lib/typescript/src/components/Checkbox/context.d.ts +1 -0
  77. package/lib/typescript/src/components/Checkbox/context.d.ts.map +1 -0
  78. package/lib/typescript/src/components/Checkbox/index.d.ts +1 -0
  79. package/lib/typescript/src/components/Checkbox/index.d.ts.map +1 -0
  80. package/lib/typescript/src/components/CircleImage.d.ts +1 -0
  81. package/lib/typescript/src/components/CircleImage.d.ts.map +1 -0
  82. package/lib/typescript/src/components/CircularProgress.d.ts +1 -0
  83. package/lib/typescript/src/components/CircularProgress.d.ts.map +1 -0
  84. package/lib/typescript/src/components/Config.d.ts +1 -0
  85. package/lib/typescript/src/components/Config.d.ts.map +1 -0
  86. package/lib/typescript/src/components/Container.d.ts +1 -0
  87. package/lib/typescript/src/components/Container.d.ts.map +1 -0
  88. package/lib/typescript/src/components/DatePicker/DatePicker.d.ts +7 -4
  89. package/lib/typescript/src/components/DatePicker/DatePicker.d.ts.map +1 -0
  90. package/lib/typescript/src/components/DatePicker/{DatePickerComponent.web.d.ts → DatePickerComponent.__web.d.ts} +1 -0
  91. package/lib/typescript/src/components/DatePicker/DatePickerComponent.__web.d.ts.map +1 -0
  92. package/lib/typescript/src/components/DatePicker/DatePickerComponent.d.ts +1 -0
  93. package/lib/typescript/src/components/DatePicker/DatePickerComponent.d.ts.map +1 -0
  94. package/lib/typescript/src/components/DatePicker/DatePickerComponentType.d.ts +2 -0
  95. package/lib/typescript/src/components/DatePicker/DatePickerComponentType.d.ts.map +1 -0
  96. package/lib/typescript/src/components/DeprecatedButton.d.ts +1 -0
  97. package/lib/typescript/src/components/DeprecatedButton.d.ts.map +1 -0
  98. package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts +1 -0
  99. package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts.map +1 -0
  100. package/lib/typescript/src/components/DeprecatedFAB.d.ts +1 -0
  101. package/lib/typescript/src/components/DeprecatedFAB.d.ts.map +1 -0
  102. package/lib/typescript/src/components/Divider.d.ts +1 -0
  103. package/lib/typescript/src/components/Divider.d.ts.map +1 -0
  104. package/lib/typescript/src/components/Elevation.d.ts +1 -0
  105. package/lib/typescript/src/components/Elevation.d.ts.map +1 -0
  106. package/lib/typescript/src/components/FAB.d.ts +1 -0
  107. package/lib/typescript/src/components/FAB.d.ts.map +1 -0
  108. package/lib/typescript/src/components/FieldSearchBarFull.d.ts +1 -0
  109. package/lib/typescript/src/components/FieldSearchBarFull.d.ts.map +1 -0
  110. package/lib/typescript/src/components/FormRow.d.ts +1 -0
  111. package/lib/typescript/src/components/FormRow.d.ts.map +1 -0
  112. package/lib/typescript/src/components/Header.d.ts +1 -0
  113. package/lib/typescript/src/components/Header.d.ts.map +1 -0
  114. package/lib/typescript/src/components/HeaderLarge.d.ts +1 -0
  115. package/lib/typescript/src/components/HeaderLarge.d.ts.map +1 -0
  116. package/lib/typescript/src/components/HeaderMedium.d.ts +1 -0
  117. package/lib/typescript/src/components/HeaderMedium.d.ts.map +1 -0
  118. package/lib/typescript/src/components/HeaderOverline.d.ts +1 -0
  119. package/lib/typescript/src/components/HeaderOverline.d.ts.map +1 -0
  120. package/lib/typescript/src/components/IconButton.d.ts +1 -0
  121. package/lib/typescript/src/components/IconButton.d.ts.map +1 -0
  122. package/lib/typescript/src/components/Image.d.ts +1 -0
  123. package/lib/typescript/src/components/Image.d.ts.map +1 -0
  124. package/lib/typescript/src/components/Justification.d.ts +1 -0
  125. package/lib/typescript/src/components/Justification.d.ts.map +1 -0
  126. package/lib/typescript/src/components/Layout.d.ts +1 -0
  127. package/lib/typescript/src/components/Layout.d.ts.map +1 -0
  128. package/lib/typescript/src/components/NumberInput.d.ts +1 -0
  129. package/lib/typescript/src/components/NumberInput.d.ts.map +1 -0
  130. package/lib/typescript/src/components/Picker/Picker.d.ts +1 -0
  131. package/lib/typescript/src/components/Picker/Picker.d.ts.map +1 -0
  132. package/lib/typescript/src/components/Picker/PickerComponent.android.d.ts +1 -0
  133. package/lib/typescript/src/components/Picker/PickerComponent.android.d.ts.map +1 -0
  134. package/lib/typescript/src/components/Picker/PickerComponent.ios.d.ts +1 -0
  135. package/lib/typescript/src/components/Picker/PickerComponent.ios.d.ts.map +1 -0
  136. package/lib/typescript/src/components/Picker/PickerComponent.web.d.ts +1 -0
  137. package/lib/typescript/src/components/Picker/PickerComponent.web.d.ts.map +1 -0
  138. package/lib/typescript/src/components/Picker/PickerTypes.d.ts +1 -0
  139. package/lib/typescript/src/components/Picker/PickerTypes.d.ts.map +1 -0
  140. package/lib/typescript/src/components/Portal/Portal.d.ts +1 -0
  141. package/lib/typescript/src/components/Portal/Portal.d.ts.map +1 -0
  142. package/lib/typescript/src/components/Portal/PortalConsumer.d.ts +1 -0
  143. package/lib/typescript/src/components/Portal/PortalConsumer.d.ts.map +1 -0
  144. package/lib/typescript/src/components/Portal/PortalHost.d.ts +1 -0
  145. package/lib/typescript/src/components/Portal/PortalHost.d.ts.map +1 -0
  146. package/lib/typescript/src/components/Portal/PortalManager.d.ts +1 -0
  147. package/lib/typescript/src/components/Portal/PortalManager.d.ts.map +1 -0
  148. package/lib/typescript/src/components/ProgressBar.d.ts +1 -0
  149. package/lib/typescript/src/components/ProgressBar.d.ts.map +1 -0
  150. package/lib/typescript/src/components/ProgressCircle.d.ts +1 -0
  151. package/lib/typescript/src/components/ProgressCircle.d.ts.map +1 -0
  152. package/lib/typescript/src/components/ProgressIndicator.d.ts +1 -0
  153. package/lib/typescript/src/components/ProgressIndicator.d.ts.map +1 -0
  154. package/lib/typescript/src/components/RadioButton/RadioButton.d.ts +1 -0
  155. package/lib/typescript/src/components/RadioButton/RadioButton.d.ts.map +1 -0
  156. package/lib/typescript/src/components/RadioButton/RadioButtonFieldGroup.d.ts +1 -0
  157. package/lib/typescript/src/components/RadioButton/RadioButtonFieldGroup.d.ts.map +1 -0
  158. package/lib/typescript/src/components/RadioButton/RadioButtonGroup.d.ts +1 -0
  159. package/lib/typescript/src/components/RadioButton/RadioButtonGroup.d.ts.map +1 -0
  160. package/lib/typescript/src/components/RadioButton/RadioButtonRow.d.ts +1 -0
  161. package/lib/typescript/src/components/RadioButton/RadioButtonRow.d.ts.map +1 -0
  162. package/lib/typescript/src/components/RadioButton/context.d.ts +1 -0
  163. package/lib/typescript/src/components/RadioButton/context.d.ts.map +1 -0
  164. package/lib/typescript/src/components/RadioButton/index.d.ts +1 -0
  165. package/lib/typescript/src/components/RadioButton/index.d.ts.map +1 -0
  166. package/lib/typescript/src/components/ResizeMode.d.ts +1 -0
  167. package/lib/typescript/src/components/ResizeMode.d.ts.map +1 -0
  168. package/lib/typescript/src/components/Row.d.ts +1 -0
  169. package/lib/typescript/src/components/Row.d.ts.map +1 -0
  170. package/lib/typescript/src/components/RowBodyIcon.d.ts +1 -0
  171. package/lib/typescript/src/components/RowBodyIcon.d.ts.map +1 -0
  172. package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts +1 -0
  173. package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts.map +1 -0
  174. package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts +1 -0
  175. package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts.map +1 -0
  176. package/lib/typescript/src/components/SVG.d.ts +1 -0
  177. package/lib/typescript/src/components/SVG.d.ts.map +1 -0
  178. package/lib/typescript/src/components/ScreenContainer.d.ts +1 -0
  179. package/lib/typescript/src/components/ScreenContainer.d.ts.map +1 -0
  180. package/lib/typescript/src/components/Slider.d.ts +1 -0
  181. package/lib/typescript/src/components/Slider.d.ts.map +1 -0
  182. package/lib/typescript/src/components/StarRating.d.ts +1 -0
  183. package/lib/typescript/src/components/StarRating.d.ts.map +1 -0
  184. package/lib/typescript/src/components/StepIndicator.d.ts +1 -0
  185. package/lib/typescript/src/components/StepIndicator.d.ts.map +1 -0
  186. package/lib/typescript/src/components/Stepper.d.ts +2 -2
  187. package/lib/typescript/src/components/Stepper.d.ts.map +1 -0
  188. package/lib/typescript/src/components/Surface.d.ts +1 -0
  189. package/lib/typescript/src/components/Surface.d.ts.map +1 -0
  190. package/lib/typescript/src/components/Swiper/Swiper.d.ts +1 -0
  191. package/lib/typescript/src/components/Swiper/Swiper.d.ts.map +1 -0
  192. package/lib/typescript/src/components/Swiper/SwiperItem.d.ts +1 -0
  193. package/lib/typescript/src/components/Swiper/SwiperItem.d.ts.map +1 -0
  194. package/lib/typescript/src/components/Swiper/index.d.ts +1 -0
  195. package/lib/typescript/src/components/Swiper/index.d.ts.map +1 -0
  196. package/lib/typescript/src/components/Switch.d.ts +1 -0
  197. package/lib/typescript/src/components/Switch.d.ts.map +1 -0
  198. package/lib/typescript/src/components/Text.d.ts +1 -0
  199. package/lib/typescript/src/components/Text.d.ts.map +1 -0
  200. package/lib/typescript/src/components/TextField.d.ts +1 -0
  201. package/lib/typescript/src/components/TextField.d.ts.map +1 -0
  202. package/lib/typescript/src/components/ToggleButton.d.ts +1 -0
  203. package/lib/typescript/src/components/ToggleButton.d.ts.map +1 -0
  204. package/lib/typescript/src/components/Touchable.d.ts +1 -0
  205. package/lib/typescript/src/components/Touchable.d.ts.map +1 -0
  206. package/lib/typescript/src/components/Touchable.web.d.ts +1 -0
  207. package/lib/typescript/src/components/Touchable.web.d.ts.map +1 -0
  208. package/lib/typescript/src/components/Typography.d.ts +1 -0
  209. package/lib/typescript/src/components/Typography.d.ts.map +1 -0
  210. package/lib/typescript/src/components/useAuthState.d.ts +1 -0
  211. package/lib/typescript/src/components/useAuthState.d.ts.map +1 -0
  212. package/lib/typescript/src/constants.d.ts +1 -0
  213. package/lib/typescript/src/constants.d.ts.map +1 -0
  214. package/lib/typescript/src/hooks.d.ts +1 -0
  215. package/lib/typescript/src/hooks.d.ts.map +1 -0
  216. package/lib/typescript/src/index.d.ts +1 -1
  217. package/lib/typescript/src/index.d.ts.map +1 -0
  218. package/lib/typescript/src/interfaces/Icon.d.ts +1 -0
  219. package/lib/typescript/src/interfaces/Icon.d.ts.map +1 -0
  220. package/lib/typescript/src/mappings/Accordion.d.ts +1 -0
  221. package/lib/typescript/src/mappings/Accordion.d.ts.map +1 -0
  222. package/lib/typescript/src/mappings/AccordionItem.d.ts +1 -0
  223. package/lib/typescript/src/mappings/AccordionItem.d.ts.map +1 -0
  224. package/lib/typescript/src/mappings/ActionSheet.d.ts +1 -0
  225. package/lib/typescript/src/mappings/ActionSheet.d.ts.map +1 -0
  226. package/lib/typescript/src/mappings/ActionSheetCancel.d.ts +1 -0
  227. package/lib/typescript/src/mappings/ActionSheetCancel.d.ts.map +1 -0
  228. package/lib/typescript/src/mappings/ActionSheetItem.d.ts +1 -0
  229. package/lib/typescript/src/mappings/ActionSheetItem.d.ts.map +1 -0
  230. package/lib/typescript/src/mappings/ActivityIndicator.d.ts +1 -0
  231. package/lib/typescript/src/mappings/ActivityIndicator.d.ts.map +1 -0
  232. package/lib/typescript/src/mappings/AudioPlayer.d.ts +63 -1
  233. package/lib/typescript/src/mappings/AudioPlayer.d.ts.map +1 -0
  234. package/lib/typescript/src/mappings/AvatarEdit.d.ts +1 -0
  235. package/lib/typescript/src/mappings/AvatarEdit.d.ts.map +1 -0
  236. package/lib/typescript/src/mappings/Banner.d.ts +1 -0
  237. package/lib/typescript/src/mappings/Banner.d.ts.map +1 -0
  238. package/lib/typescript/src/mappings/BlurView.d.ts +1 -0
  239. package/lib/typescript/src/mappings/BlurView.d.ts.map +1 -0
  240. package/lib/typescript/src/mappings/Button.d.ts +1 -0
  241. package/lib/typescript/src/mappings/Button.d.ts.map +1 -0
  242. package/lib/typescript/src/mappings/Card.d.ts +1 -0
  243. package/lib/typescript/src/mappings/Card.d.ts.map +1 -0
  244. package/lib/typescript/src/mappings/CardBlock.d.ts +1 -0
  245. package/lib/typescript/src/mappings/CardBlock.d.ts.map +1 -0
  246. package/lib/typescript/src/mappings/CardContainer.d.ts +1 -0
  247. package/lib/typescript/src/mappings/CardContainer.d.ts.map +1 -0
  248. package/lib/typescript/src/mappings/CardContainerRating.d.ts +1 -0
  249. package/lib/typescript/src/mappings/CardContainerRating.d.ts.map +1 -0
  250. package/lib/typescript/src/mappings/CardContainerShortImage.d.ts +1 -0
  251. package/lib/typescript/src/mappings/CardContainerShortImage.d.ts.map +1 -0
  252. package/lib/typescript/src/mappings/CardInline.d.ts +1 -0
  253. package/lib/typescript/src/mappings/CardInline.d.ts.map +1 -0
  254. package/lib/typescript/src/mappings/Carousel.d.ts +1 -0
  255. package/lib/typescript/src/mappings/Carousel.d.ts.map +1 -0
  256. package/lib/typescript/src/mappings/Checkbox.d.ts +1 -0
  257. package/lib/typescript/src/mappings/Checkbox.d.ts.map +1 -0
  258. package/lib/typescript/src/mappings/CheckboxGroup.d.ts +1 -0
  259. package/lib/typescript/src/mappings/CheckboxGroup.d.ts.map +1 -0
  260. package/lib/typescript/src/mappings/CheckboxRow.d.ts +1 -0
  261. package/lib/typescript/src/mappings/CheckboxRow.d.ts.map +1 -0
  262. package/lib/typescript/src/mappings/CircleImage.d.ts +1 -0
  263. package/lib/typescript/src/mappings/CircleImage.d.ts.map +1 -0
  264. package/lib/typescript/src/mappings/Container.d.ts +1 -0
  265. package/lib/typescript/src/mappings/Container.d.ts.map +1 -0
  266. package/lib/typescript/src/mappings/CustomCode.d.ts +1 -0
  267. package/lib/typescript/src/mappings/CustomCode.d.ts.map +1 -0
  268. package/lib/typescript/src/mappings/DatePicker.d.ts +43 -0
  269. package/lib/typescript/src/mappings/DatePicker.d.ts.map +1 -0
  270. package/lib/typescript/src/mappings/Divider.d.ts +1 -0
  271. package/lib/typescript/src/mappings/Divider.d.ts.map +1 -0
  272. package/lib/typescript/src/mappings/FAB.d.ts +1 -0
  273. package/lib/typescript/src/mappings/FAB.d.ts.map +1 -0
  274. package/lib/typescript/src/mappings/Fetch.d.ts +1 -0
  275. package/lib/typescript/src/mappings/Fetch.d.ts.map +1 -0
  276. package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts +1 -0
  277. package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts.map +1 -0
  278. package/lib/typescript/src/mappings/FlashList.d.ts +1 -0
  279. package/lib/typescript/src/mappings/FlashList.d.ts.map +1 -0
  280. package/lib/typescript/src/mappings/FlatList.d.ts +1 -0
  281. package/lib/typescript/src/mappings/FlatList.d.ts.map +1 -0
  282. package/lib/typescript/src/mappings/HeaderLarge.d.ts +1 -0
  283. package/lib/typescript/src/mappings/HeaderLarge.d.ts.map +1 -0
  284. package/lib/typescript/src/mappings/HeaderMedium.d.ts +1 -0
  285. package/lib/typescript/src/mappings/HeaderMedium.d.ts.map +1 -0
  286. package/lib/typescript/src/mappings/HeaderOverline.d.ts +1 -0
  287. package/lib/typescript/src/mappings/HeaderOverline.d.ts.map +1 -0
  288. package/lib/typescript/src/mappings/Icon.d.ts +1 -0
  289. package/lib/typescript/src/mappings/Icon.d.ts.map +1 -0
  290. package/lib/typescript/src/mappings/IconButton.d.ts +1 -0
  291. package/lib/typescript/src/mappings/IconButton.d.ts.map +1 -0
  292. package/lib/typescript/src/mappings/Image.d.ts +1 -0
  293. package/lib/typescript/src/mappings/Image.d.ts.map +1 -0
  294. package/lib/typescript/src/mappings/ImageBackground.d.ts +1 -0
  295. package/lib/typescript/src/mappings/ImageBackground.d.ts.map +1 -0
  296. package/lib/typescript/src/mappings/KeyboardAvoidingView.d.ts +1 -0
  297. package/lib/typescript/src/mappings/KeyboardAvoidingView.d.ts.map +1 -0
  298. package/lib/typescript/src/mappings/KeyboardAwareScrollView.d.ts +1 -0
  299. package/lib/typescript/src/mappings/KeyboardAwareScrollView.d.ts.map +1 -0
  300. package/lib/typescript/src/mappings/Layout.d.ts +1 -0
  301. package/lib/typescript/src/mappings/Layout.d.ts.map +1 -0
  302. package/lib/typescript/src/mappings/LinearGradient.d.ts +1 -0
  303. package/lib/typescript/src/mappings/LinearGradient.d.ts.map +1 -0
  304. package/lib/typescript/src/mappings/MapCallout.d.ts +1 -0
  305. package/lib/typescript/src/mappings/MapCallout.d.ts.map +1 -0
  306. package/lib/typescript/src/mappings/MapMarker.d.ts +1 -0
  307. package/lib/typescript/src/mappings/MapMarker.d.ts.map +1 -0
  308. package/lib/typescript/src/mappings/MapView.d.ts +1 -0
  309. package/lib/typescript/src/mappings/MapView.d.ts.map +1 -0
  310. package/lib/typescript/src/mappings/Modal.d.ts +1 -0
  311. package/lib/typescript/src/mappings/Modal.d.ts.map +1 -0
  312. package/lib/typescript/src/mappings/NumberInput.d.ts +1 -0
  313. package/lib/typescript/src/mappings/NumberInput.d.ts.map +1 -0
  314. package/lib/typescript/src/mappings/Picker.d.ts +1 -0
  315. package/lib/typescript/src/mappings/Picker.d.ts.map +1 -0
  316. package/lib/typescript/src/mappings/ProgressBar.d.ts +1 -0
  317. package/lib/typescript/src/mappings/ProgressBar.d.ts.map +1 -0
  318. package/lib/typescript/src/mappings/ProgressCircle.d.ts +1 -0
  319. package/lib/typescript/src/mappings/ProgressCircle.d.ts.map +1 -0
  320. package/lib/typescript/src/mappings/ProgressIndicator.d.ts +1 -0
  321. package/lib/typescript/src/mappings/ProgressIndicator.d.ts.map +1 -0
  322. package/lib/typescript/src/mappings/RadioButton.d.ts +1 -0
  323. package/lib/typescript/src/mappings/RadioButton.d.ts.map +1 -0
  324. package/lib/typescript/src/mappings/RadioButtonGroup.d.ts +1 -0
  325. package/lib/typescript/src/mappings/RadioButtonGroup.d.ts.map +1 -0
  326. package/lib/typescript/src/mappings/RadioButtonRow.d.ts +1 -0
  327. package/lib/typescript/src/mappings/RadioButtonRow.d.ts.map +1 -0
  328. package/lib/typescript/src/mappings/RowBodyIcon.d.ts +1 -0
  329. package/lib/typescript/src/mappings/RowBodyIcon.d.ts.map +1 -0
  330. package/lib/typescript/src/mappings/RowHeadlineImageCaption.d.ts +1 -0
  331. package/lib/typescript/src/mappings/RowHeadlineImageCaption.d.ts.map +1 -0
  332. package/lib/typescript/src/mappings/RowHeadlineImageIcon.d.ts +1 -0
  333. package/lib/typescript/src/mappings/RowHeadlineImageIcon.d.ts.map +1 -0
  334. package/lib/typescript/src/mappings/SVG.d.ts +1 -0
  335. package/lib/typescript/src/mappings/SVG.d.ts.map +1 -0
  336. package/lib/typescript/src/mappings/SafeAreaView.d.ts +1 -0
  337. package/lib/typescript/src/mappings/SafeAreaView.d.ts.map +1 -0
  338. package/lib/typescript/src/mappings/ScrollView.d.ts +1 -0
  339. package/lib/typescript/src/mappings/ScrollView.d.ts.map +1 -0
  340. package/lib/typescript/src/mappings/Slider.d.ts +1 -0
  341. package/lib/typescript/src/mappings/Slider.d.ts.map +1 -0
  342. package/lib/typescript/src/mappings/StarRating.d.ts +1 -0
  343. package/lib/typescript/src/mappings/StarRating.d.ts.map +1 -0
  344. package/lib/typescript/src/mappings/Stepper.d.ts +1 -0
  345. package/lib/typescript/src/mappings/Stepper.d.ts.map +1 -0
  346. package/lib/typescript/src/mappings/Surface.d.ts +1 -0
  347. package/lib/typescript/src/mappings/Surface.d.ts.map +1 -0
  348. package/lib/typescript/src/mappings/Swiper.d.ts +1 -0
  349. package/lib/typescript/src/mappings/Swiper.d.ts.map +1 -0
  350. package/lib/typescript/src/mappings/SwiperItem.d.ts +1 -0
  351. package/lib/typescript/src/mappings/SwiperItem.d.ts.map +1 -0
  352. package/lib/typescript/src/mappings/Switch.d.ts +1 -0
  353. package/lib/typescript/src/mappings/Switch.d.ts.map +1 -0
  354. package/lib/typescript/src/mappings/Text.d.ts +1 -0
  355. package/lib/typescript/src/mappings/Text.d.ts.map +1 -0
  356. package/lib/typescript/src/mappings/TextArea.d.ts +22 -1
  357. package/lib/typescript/src/mappings/TextArea.d.ts.map +1 -0
  358. package/lib/typescript/src/mappings/TextField.d.ts +23 -2
  359. package/lib/typescript/src/mappings/TextField.d.ts.map +1 -0
  360. package/lib/typescript/src/mappings/TextInput.d.ts +22 -1
  361. package/lib/typescript/src/mappings/TextInput.d.ts.map +1 -0
  362. package/lib/typescript/src/mappings/ToggleButton.d.ts +1 -0
  363. package/lib/typescript/src/mappings/ToggleButton.d.ts.map +1 -0
  364. package/lib/typescript/src/mappings/Touchable.d.ts +1 -0
  365. package/lib/typescript/src/mappings/Touchable.d.ts.map +1 -0
  366. package/lib/typescript/src/mappings/Video.d.ts +1 -0
  367. package/lib/typescript/src/mappings/Video.d.ts.map +1 -0
  368. package/lib/typescript/src/mappings/View.d.ts +1 -0
  369. package/lib/typescript/src/mappings/View.d.ts.map +1 -0
  370. package/lib/typescript/src/mappings/WebView.d.ts +1 -0
  371. package/lib/typescript/src/mappings/WebView.d.ts.map +1 -0
  372. package/lib/typescript/src/styles/DarkTheme.d.ts +1 -0
  373. package/lib/typescript/src/styles/DarkTheme.d.ts.map +1 -0
  374. package/lib/typescript/src/styles/DefaultTheme.d.ts +1 -0
  375. package/lib/typescript/src/styles/DefaultTheme.d.ts.map +1 -0
  376. package/lib/typescript/src/styles/fonts.d.ts +1 -0
  377. package/lib/typescript/src/styles/fonts.d.ts.map +1 -0
  378. package/lib/typescript/src/styles/overlay.d.ts +1 -0
  379. package/lib/typescript/src/styles/overlay.d.ts.map +1 -0
  380. package/lib/typescript/src/styles/shadow.d.ts +1 -0
  381. package/lib/typescript/src/styles/shadow.d.ts.map +1 -0
  382. package/lib/typescript/src/theming.d.ts +1 -0
  383. package/lib/typescript/src/theming.d.ts.map +1 -0
  384. package/lib/typescript/src/utilities.d.ts +1 -0
  385. package/lib/typescript/src/utilities.d.ts.map +1 -0
  386. package/package.json +16 -8
  387. package/src/components/DatePicker/DatePicker.js +20 -14
  388. package/src/components/DatePicker/DatePicker.tsx +36 -18
  389. package/src/components/DatePicker/{DatePickerComponent.web.js → DatePickerComponent.__web.js} +2 -2
  390. package/src/components/DatePicker/{DatePickerComponent.web.tsx → DatePickerComponent.__web.tsx} +3 -0
  391. package/src/components/DatePicker/DatePickerComponent.js +2 -2
  392. package/src/components/DatePicker/DatePickerComponent.tsx +2 -0
  393. package/src/components/DatePicker/DatePickerComponentType.ts +1 -0
  394. package/src/components/Picker/Picker.js +1 -1
  395. package/src/components/Picker/Picker.tsx +2 -2
  396. package/src/components/Stepper.js +5 -3
  397. package/src/components/Stepper.tsx +5 -5
  398. package/src/index.js +0 -1
  399. package/src/index.tsx +0 -1
  400. package/src/mappings/AudioPlayer.js +39 -2
  401. package/src/mappings/AudioPlayer.ts +41 -1
  402. package/src/mappings/DatePicker.js +28 -4
  403. package/src/mappings/DatePicker.ts +30 -3
  404. package/src/mappings/Stepper.js +5 -2
  405. package/src/mappings/Stepper.ts +5 -1
  406. package/src/mappings/TextArea.js +15 -4
  407. package/src/mappings/TextArea.ts +15 -3
  408. package/src/mappings/TextField.js +14 -4
  409. package/src/mappings/TextField.ts +14 -4
  410. package/src/mappings/TextInput.js +15 -4
  411. package/src/mappings/TextInput.ts +15 -3
  412. package/lib/commonjs/components/TabView/TabView.js +0 -102
  413. package/lib/commonjs/components/TabView/TabViewItem.js +0 -26
  414. package/lib/commonjs/components/TabView/index.js +0 -23
  415. package/lib/commonjs/mappings/TabView.js +0 -79
  416. package/lib/module/components/TabView/TabView.js +0 -87
  417. package/lib/module/components/TabView/TabViewItem.js +0 -18
  418. package/lib/module/components/TabView/index.js +0 -2
  419. package/lib/module/mappings/TabView.js +0 -70
  420. package/lib/typescript/src/components/TabView/TabView.d.ts +0 -19
  421. package/lib/typescript/src/components/TabView/TabViewItem.d.ts +0 -10
  422. package/lib/typescript/src/components/TabView/index.d.ts +0 -2
  423. package/lib/typescript/src/mappings/TabView.d.ts +0 -111
  424. package/src/components/TabView/TabView.js +0 -34
  425. package/src/components/TabView/TabView.tsx +0 -97
  426. package/src/components/TabView/TabViewItem.js +0 -5
  427. package/src/components/TabView/TabViewItem.tsx +0 -21
  428. package/src/components/TabView/index.js +0 -2
  429. package/src/components/TabView/index.tsx +0 -2
  430. package/src/mappings/TabView.js +0 -73
  431. package/src/mappings/TabView.ts +0 -80
@@ -6,6 +6,7 @@ import {
6
6
  FIELD_NAME,
7
7
  Triggers,
8
8
  StylesPanelSections,
9
+ createDisabledProp,
9
10
  } from "@draftbit/types";
10
11
 
11
12
  export const SEED_DATA_PROPS = {
@@ -168,12 +169,12 @@ export const SEED_DATA = [
168
169
  propType: PROP_TYPES.BOOLEAN,
169
170
  },
170
171
  editable: {
171
- group: GROUPS.advanced,
172
- label: "Editable",
172
+ group: GROUPS.data,
173
+ label: "Editable?",
173
174
  description: "If false, the text is not editable",
174
175
  editable: true,
175
176
  required: false,
176
- defaultValue: true,
177
+ defaultValue: null,
177
178
  formType: FORM_TYPES.boolean,
178
179
  propType: PROP_TYPES.BOOLEAN,
179
180
  },
@@ -258,6 +259,16 @@ export const SEED_DATA = [
258
259
  formType: FORM_TYPES.string,
259
260
  propType: PROP_TYPES.STRING,
260
261
  },
262
+ blurOnSubmit: {
263
+ group: GROUPS.advanced,
264
+ label: "Blur On Submit",
265
+ description: "If true, the text field will blur when submitted. ",
266
+ editable: true,
267
+ required: false,
268
+ defaultValue: null,
269
+ formType: FORM_TYPES.boolean,
270
+ propType: PROP_TYPES.BOOLEAN,
271
+ },
261
272
  returnKeyType: {
262
273
  group: GROUPS.advanced,
263
274
  label: "Return Key Type",
@@ -341,6 +352,7 @@ export const SEED_DATA = [
341
352
  formType: FORM_TYPES.number,
342
353
  propType: PROP_TYPES.NUMBER,
343
354
  },
355
+ disabled: createDisabledProp(),
344
356
  scrollEnabled: {
345
357
  group: GROUPS.basic,
346
358
  label: "Scroll Enabled",
@@ -1,102 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- var React = _interopRequireWildcard(require("react"));
9
-
10
- var _reactNativeTabView = require("react-native-tab-view");
11
-
12
- var _TabViewItem = _interopRequireDefault(require("./TabViewItem"));
13
-
14
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
-
16
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
17
-
18
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
19
-
20
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
21
-
22
- const TabViewComponent = _ref => {
23
- let {
24
- Icon,
25
- tabBarPosition,
26
- keyboardDismissMode,
27
- swipeEnabled,
28
- scrollEnabled,
29
- activeColor,
30
- inactiveColor,
31
- pressColor,
32
- indicatorColor,
33
- style,
34
- children
35
- } = _ref;
36
- const [index, setIndex] = React.useState(0);
37
- const [routes, setRoutes] = React.useState([]);
38
- const [tabScenes, setTabScenes] = React.useState({});
39
- React.useEffect(() => {
40
- const newRoutes = [];
41
- const scenes = {};
42
- React.Children.toArray(children).filter(child => child.type === _TabViewItem.default).forEach(child => {
43
- var _child$props;
44
-
45
- if (child !== null && child !== void 0 && (_child$props = child.props) !== null && _child$props !== void 0 && _child$props.id) {
46
- var _child$props2, _child$props3;
47
-
48
- newRoutes.push({
49
- key: child === null || child === void 0 ? void 0 : (_child$props2 = child.props) === null || _child$props2 === void 0 ? void 0 : _child$props2.id,
50
- ...(child === null || child === void 0 ? void 0 : child.props)
51
- });
52
-
53
- scenes[child === null || child === void 0 ? void 0 : (_child$props3 = child.props) === null || _child$props3 === void 0 ? void 0 : _child$props3.id] = () => child;
54
- }
55
- });
56
- setRoutes(newRoutes);
57
- setTabScenes(scenes);
58
- }, [children]);
59
-
60
- const indexChangeHandler = i => setIndex(i);
61
-
62
- const renderTabBar = props => {
63
- console.log(props);
64
- return /*#__PURE__*/React.createElement(_reactNativeTabView.TabBar, _extends({}, props, {
65
- activeColor: activeColor,
66
- inactiveColor: inactiveColor,
67
- pressColor: pressColor,
68
- scrollEnabled: scrollEnabled,
69
- indicatorStyle: {
70
- backgroundColor: indicatorColor
71
- },
72
- renderIcon: _ref2 => {
73
- let {
74
- route,
75
- color
76
- } = _ref2;
77
- return route !== null && route !== void 0 && route.icon ? /*#__PURE__*/React.createElement(Icon, {
78
- name: route.icon,
79
- color: color,
80
- size: 36
81
- }) : null;
82
- },
83
- style: style
84
- }));
85
- };
86
-
87
- return /*#__PURE__*/React.createElement(_reactNativeTabView.TabView, {
88
- navigationState: {
89
- index,
90
- routes
91
- },
92
- renderScene: (0, _reactNativeTabView.SceneMap)(tabScenes),
93
- renderTabBar: renderTabBar,
94
- onIndexChange: indexChangeHandler,
95
- tabBarPosition: tabBarPosition,
96
- keyboardDismissMode: keyboardDismissMode,
97
- swipeEnabled: swipeEnabled
98
- });
99
- };
100
-
101
- var _default = TabViewComponent;
102
- exports.default = _default;
@@ -1,26 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
-
8
- const TabViewItem = _ref => {
9
- let {
10
- title,
11
- id,
12
- icon,
13
- children,
14
- accessibilityLabel
15
- } = _ref;
16
- console.log({
17
- title,
18
- id,
19
- icon,
20
- accessibilityLabel
21
- });
22
- return children;
23
- };
24
-
25
- var _default = TabViewItem;
26
- exports.default = _default;
@@ -1,23 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "TabView", {
7
- enumerable: true,
8
- get: function () {
9
- return _TabView.default;
10
- }
11
- });
12
- Object.defineProperty(exports, "TabViewItem", {
13
- enumerable: true,
14
- get: function () {
15
- return _TabViewItem.default;
16
- }
17
- });
18
-
19
- var _TabView = _interopRequireDefault(require("./TabView"));
20
-
21
- var _TabViewItem = _interopRequireDefault(require("./TabViewItem"));
22
-
23
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -1,79 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.SEED_DATA = void 0;
7
-
8
- var _types = require("@draftbit/types");
9
-
10
- const SEED_DATA = [{
11
- name: "Tab View",
12
- tag: "TabView",
13
- category: _types.COMPONENT_TYPES.container,
14
- layout: {},
15
- props: {
16
- tabBarPosition: (0, _types.createTextEnumProp)({
17
- label: "Tab Bar Position",
18
- description: "Tab Bar Position",
19
- options: ["top", "bottom"],
20
- defaultValue: "top"
21
- }),
22
- keyboardDismissMode: (0, _types.createTextEnumProp)({
23
- label: "Keyboard Dismiss Mode",
24
- description: "Keyboard Dismiss Mode",
25
- options: ["auto", "on-drag", "none"],
26
- defaultValue: "auto"
27
- }),
28
- swipeEnabled: (0, _types.createBoolProp)({
29
- label: "Swipe Enabled",
30
- description: "Swipe Enabled",
31
- defaultValue: true
32
- }),
33
- scrollEnabled: (0, _types.createBoolProp)({
34
- label: "Scroll Enabled",
35
- description: "Scroll Enabled",
36
- defaultValue: true
37
- }),
38
- activeColor: (0, _types.createColorProp)({
39
- label: "Active Color",
40
- description: "Active Color",
41
- defaultValue: "primary"
42
- }),
43
- inactiveColor: (0, _types.createColorProp)({
44
- label: "Inactive Color",
45
- description: "Inactive Color",
46
- defaultValue: null
47
- }),
48
- pressColor: (0, _types.createColorProp)({
49
- label: "Press Color",
50
- description: "Press Color",
51
- defaultValue: null
52
- }),
53
- indicatorColor: (0, _types.createColorProp)({
54
- label: "Indicator Color",
55
- description: "Indicator Color",
56
- defaultValue: null
57
- })
58
- }
59
- }, {
60
- name: "Tab View Item",
61
- tag: "TabViewItem",
62
- category: _types.COMPONENT_TYPES.container,
63
- layout: {},
64
- props: {
65
- title: (0, _types.createTextProp)({
66
- label: "Title",
67
- description: "Tab Title"
68
- }),
69
- id: (0, _types.createTextProp)({
70
- label: "Id",
71
- description: "Tab Id"
72
- }),
73
- accessibilityLabel: (0, _types.createTextProp)({
74
- label: "Accessibility Label",
75
- description: "Accessibility Label"
76
- })
77
- }
78
- }];
79
- exports.SEED_DATA = SEED_DATA;
@@ -1,87 +0,0 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
3
- import * as React from "react";
4
- import { TabView, TabBar, SceneMap } from "react-native-tab-view"; // import { withTheme } from "../../theming";
5
-
6
- import TabViewItem from "./TabViewItem";
7
-
8
- const TabViewComponent = _ref => {
9
- let {
10
- Icon,
11
- tabBarPosition,
12
- keyboardDismissMode,
13
- swipeEnabled,
14
- scrollEnabled,
15
- activeColor,
16
- inactiveColor,
17
- pressColor,
18
- indicatorColor,
19
- style,
20
- children
21
- } = _ref;
22
- const [index, setIndex] = React.useState(0);
23
- const [routes, setRoutes] = React.useState([]);
24
- const [tabScenes, setTabScenes] = React.useState({});
25
- React.useEffect(() => {
26
- const newRoutes = [];
27
- const scenes = {};
28
- React.Children.toArray(children).filter(child => child.type === TabViewItem).forEach(child => {
29
- var _child$props;
30
-
31
- if (child !== null && child !== void 0 && (_child$props = child.props) !== null && _child$props !== void 0 && _child$props.id) {
32
- var _child$props2, _child$props3;
33
-
34
- newRoutes.push({
35
- key: child === null || child === void 0 ? void 0 : (_child$props2 = child.props) === null || _child$props2 === void 0 ? void 0 : _child$props2.id,
36
- ...(child === null || child === void 0 ? void 0 : child.props)
37
- });
38
-
39
- scenes[child === null || child === void 0 ? void 0 : (_child$props3 = child.props) === null || _child$props3 === void 0 ? void 0 : _child$props3.id] = () => child;
40
- }
41
- });
42
- setRoutes(newRoutes);
43
- setTabScenes(scenes);
44
- }, [children]);
45
-
46
- const indexChangeHandler = i => setIndex(i);
47
-
48
- const renderTabBar = props => {
49
- console.log(props);
50
- return /*#__PURE__*/React.createElement(TabBar, _extends({}, props, {
51
- activeColor: activeColor,
52
- inactiveColor: inactiveColor,
53
- pressColor: pressColor,
54
- scrollEnabled: scrollEnabled,
55
- indicatorStyle: {
56
- backgroundColor: indicatorColor
57
- },
58
- renderIcon: _ref2 => {
59
- let {
60
- route,
61
- color
62
- } = _ref2;
63
- return route !== null && route !== void 0 && route.icon ? /*#__PURE__*/React.createElement(Icon, {
64
- name: route.icon,
65
- color: color,
66
- size: 36
67
- }) : null;
68
- },
69
- style: style
70
- }));
71
- };
72
-
73
- return /*#__PURE__*/React.createElement(TabView, {
74
- navigationState: {
75
- index,
76
- routes
77
- },
78
- renderScene: SceneMap(tabScenes),
79
- renderTabBar: renderTabBar,
80
- onIndexChange: indexChangeHandler,
81
- tabBarPosition: tabBarPosition,
82
- keyboardDismissMode: keyboardDismissMode,
83
- swipeEnabled: swipeEnabled
84
- });
85
- };
86
-
87
- export default TabViewComponent;
@@ -1,18 +0,0 @@
1
- const TabViewItem = _ref => {
2
- let {
3
- title,
4
- id,
5
- icon,
6
- children,
7
- accessibilityLabel
8
- } = _ref;
9
- console.log({
10
- title,
11
- id,
12
- icon,
13
- accessibilityLabel
14
- });
15
- return children;
16
- };
17
-
18
- export default TabViewItem;
@@ -1,2 +0,0 @@
1
- export { default as TabView } from "./TabView";
2
- export { default as TabViewItem } from "./TabViewItem";
@@ -1,70 +0,0 @@
1
- import { COMPONENT_TYPES, createTextProp, createTextEnumProp, createBoolProp, createColorProp } from "@draftbit/types";
2
- export const SEED_DATA = [{
3
- name: "Tab View",
4
- tag: "TabView",
5
- category: COMPONENT_TYPES.container,
6
- layout: {},
7
- props: {
8
- tabBarPosition: createTextEnumProp({
9
- label: "Tab Bar Position",
10
- description: "Tab Bar Position",
11
- options: ["top", "bottom"],
12
- defaultValue: "top"
13
- }),
14
- keyboardDismissMode: createTextEnumProp({
15
- label: "Keyboard Dismiss Mode",
16
- description: "Keyboard Dismiss Mode",
17
- options: ["auto", "on-drag", "none"],
18
- defaultValue: "auto"
19
- }),
20
- swipeEnabled: createBoolProp({
21
- label: "Swipe Enabled",
22
- description: "Swipe Enabled",
23
- defaultValue: true
24
- }),
25
- scrollEnabled: createBoolProp({
26
- label: "Scroll Enabled",
27
- description: "Scroll Enabled",
28
- defaultValue: true
29
- }),
30
- activeColor: createColorProp({
31
- label: "Active Color",
32
- description: "Active Color",
33
- defaultValue: "primary"
34
- }),
35
- inactiveColor: createColorProp({
36
- label: "Inactive Color",
37
- description: "Inactive Color",
38
- defaultValue: null
39
- }),
40
- pressColor: createColorProp({
41
- label: "Press Color",
42
- description: "Press Color",
43
- defaultValue: null
44
- }),
45
- indicatorColor: createColorProp({
46
- label: "Indicator Color",
47
- description: "Indicator Color",
48
- defaultValue: null
49
- })
50
- }
51
- }, {
52
- name: "Tab View Item",
53
- tag: "TabViewItem",
54
- category: COMPONENT_TYPES.container,
55
- layout: {},
56
- props: {
57
- title: createTextProp({
58
- label: "Title",
59
- description: "Tab Title"
60
- }),
61
- id: createTextProp({
62
- label: "Id",
63
- description: "Tab Id"
64
- }),
65
- accessibilityLabel: createTextProp({
66
- label: "Accessibility Label",
67
- description: "Accessibility Label"
68
- })
69
- }
70
- }];
@@ -1,19 +0,0 @@
1
- import * as React from "react";
2
- import { StyleProp, TextStyle, ViewStyle } from "react-native";
3
- import type { IconSlot } from "../../interfaces/Icon";
4
- declare type TabBarPosition = "top" | "bottom";
5
- declare type KeyboardDismissMode = "none" | "auto" | "on-drag";
6
- declare type TabViewProps = {
7
- tabBarPosition?: TabBarPosition;
8
- keyboardDismissMode?: KeyboardDismissMode;
9
- swipeEnabled?: boolean;
10
- scrollEnabled?: boolean;
11
- activeColor?: string;
12
- inactiveColor?: string;
13
- pressColor?: string;
14
- indicatorColor?: string;
15
- style?: StyleProp<TextStyle | ViewStyle>;
16
- children: React.ReactNode;
17
- } & IconSlot;
18
- declare const TabViewComponent: ({ Icon, tabBarPosition, keyboardDismissMode, swipeEnabled, scrollEnabled, activeColor, inactiveColor, pressColor, indicatorColor, style, children, }: TabViewProps) => JSX.Element;
19
- export default TabViewComponent;
@@ -1,10 +0,0 @@
1
- import React from "react";
2
- interface TabViewItemProps {
3
- title: string;
4
- id: string;
5
- icon: string;
6
- accessibilityLabel: string;
7
- children: React.ReactNode;
8
- }
9
- declare const TabViewItem: ({ title, id, icon, children, accessibilityLabel, }: TabViewItemProps) => React.ReactNode;
10
- export default TabViewItem;
@@ -1,2 +0,0 @@
1
- export { default as TabView } from "./TabView";
2
- export { default as TabViewItem } from "./TabViewItem";
@@ -1,111 +0,0 @@
1
- export declare const SEED_DATA: ({
2
- name: string;
3
- tag: string;
4
- category: string;
5
- layout: {};
6
- props: {
7
- tabBarPosition: {
8
- group: string;
9
- label: string;
10
- description: string;
11
- editable: boolean;
12
- required: boolean;
13
- formType: string;
14
- propType: string;
15
- defaultValue: null;
16
- options: never[];
17
- };
18
- keyboardDismissMode: {
19
- group: string;
20
- label: string;
21
- description: string;
22
- editable: boolean;
23
- required: boolean;
24
- formType: string;
25
- propType: string;
26
- defaultValue: null;
27
- options: never[];
28
- };
29
- swipeEnabled: {
30
- label: string;
31
- description: string;
32
- formType: string;
33
- propType: string;
34
- defaultValue: boolean;
35
- editable: boolean;
36
- required: boolean;
37
- group: string;
38
- };
39
- scrollEnabled: {
40
- label: string;
41
- description: string;
42
- formType: string;
43
- propType: string;
44
- defaultValue: boolean;
45
- editable: boolean;
46
- required: boolean;
47
- group: string;
48
- };
49
- activeColor: {
50
- group: string;
51
- label: string;
52
- description: string;
53
- editable: boolean;
54
- required: boolean;
55
- defaultValue: null;
56
- formType: string;
57
- propType: string;
58
- };
59
- inactiveColor: {
60
- group: string;
61
- label: string;
62
- description: string;
63
- editable: boolean;
64
- required: boolean;
65
- defaultValue: null;
66
- formType: string;
67
- propType: string;
68
- };
69
- pressColor: {
70
- group: string;
71
- label: string;
72
- description: string;
73
- editable: boolean;
74
- required: boolean;
75
- defaultValue: null;
76
- formType: string;
77
- propType: string;
78
- };
79
- indicatorColor: {
80
- group: string;
81
- label: string;
82
- description: string;
83
- editable: boolean;
84
- required: boolean;
85
- defaultValue: null;
86
- formType: string;
87
- propType: string;
88
- };
89
- title?: undefined;
90
- id?: undefined;
91
- accessibilityLabel?: undefined;
92
- };
93
- } | {
94
- name: string;
95
- tag: string;
96
- category: string;
97
- layout: {};
98
- props: {
99
- title: any;
100
- id: any;
101
- accessibilityLabel: any;
102
- tabBarPosition?: undefined;
103
- keyboardDismissMode?: undefined;
104
- swipeEnabled?: undefined;
105
- scrollEnabled?: undefined;
106
- activeColor?: undefined;
107
- inactiveColor?: undefined;
108
- pressColor?: undefined;
109
- indicatorColor?: undefined;
110
- };
111
- })[];
@@ -1,34 +0,0 @@
1
- import * as React from "react";
2
- import { TabView, TabBar, SceneMap } from "react-native-tab-view";
3
- // import { withTheme } from "../../theming";
4
- import TabViewItem from "./TabViewItem";
5
- const TabViewComponent = ({ Icon, tabBarPosition, keyboardDismissMode, swipeEnabled, scrollEnabled, activeColor, inactiveColor, pressColor, indicatorColor, style, children, }) => {
6
- const [index, setIndex] = React.useState(0);
7
- const [routes, setRoutes] = React.useState([]);
8
- const [tabScenes, setTabScenes] = React.useState({});
9
- React.useEffect(() => {
10
- const newRoutes = [];
11
- const scenes = {};
12
- React.Children.toArray(children)
13
- .filter((child) => child.type === TabViewItem)
14
- .forEach((child) => {
15
- var _a, _b, _c;
16
- if ((_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.id) {
17
- newRoutes.push({
18
- key: (_b = child === null || child === void 0 ? void 0 : child.props) === null || _b === void 0 ? void 0 : _b.id,
19
- ...child === null || child === void 0 ? void 0 : child.props,
20
- });
21
- scenes[(_c = child === null || child === void 0 ? void 0 : child.props) === null || _c === void 0 ? void 0 : _c.id] = () => child;
22
- }
23
- });
24
- setRoutes(newRoutes);
25
- setTabScenes(scenes);
26
- }, [children]);
27
- const indexChangeHandler = (i) => setIndex(i);
28
- const renderTabBar = (props) => {
29
- console.log(props);
30
- return (React.createElement(TabBar, { ...props, activeColor: activeColor, inactiveColor: inactiveColor, pressColor: pressColor, scrollEnabled: scrollEnabled, indicatorStyle: { backgroundColor: indicatorColor }, renderIcon: ({ route, color }) => (route === null || route === void 0 ? void 0 : route.icon) ? (React.createElement(Icon, { name: route.icon, color: color, size: 36 })) : null, style: style }));
31
- };
32
- return (React.createElement(TabView, { navigationState: { index, routes }, renderScene: SceneMap(tabScenes), renderTabBar: renderTabBar, onIndexChange: indexChangeHandler, tabBarPosition: tabBarPosition, keyboardDismissMode: keyboardDismissMode, swipeEnabled: swipeEnabled }));
33
- };
34
- export default TabViewComponent;