@draftbit/core 46.4.4-dc9728.2 → 46.4.4-e5ebcf.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 (435) hide show
  1. package/lib/commonjs/components/Accordion/AccordionItem.js +25 -5
  2. package/lib/commonjs/components/Checkbox/CheckboxGroup.js +18 -3
  3. package/lib/commonjs/components/Checkbox/CheckboxRow.js +24 -6
  4. package/lib/commonjs/components/Checkbox/context.js +1 -1
  5. package/lib/commonjs/components/CircleImage.js +16 -2
  6. package/lib/commonjs/components/CircularProgress.js +15 -7
  7. package/lib/commonjs/components/DatePicker/DatePicker.js +8 -18
  8. package/lib/commonjs/components/DeprecatedButton.js +22 -4
  9. package/lib/commonjs/components/DeprecatedCardWrapper.js +17 -2
  10. package/lib/commonjs/components/DeprecatedFAB.js +22 -4
  11. package/lib/commonjs/components/Divider.js +16 -2
  12. package/lib/commonjs/components/Elevation.js +15 -3
  13. package/lib/commonjs/components/FAB.js +20 -5
  14. package/lib/commonjs/components/FormRow.js +17 -3
  15. package/lib/commonjs/components/IconButton.js +22 -5
  16. package/lib/commonjs/components/Image.js +16 -3
  17. package/lib/commonjs/components/Layout.js +40 -19
  18. package/lib/commonjs/components/NumberInput.js +13 -2
  19. package/lib/commonjs/components/Picker/Picker.js +5 -5
  20. package/lib/commonjs/components/Picker/PickerComponent.ios.js +42 -13
  21. package/lib/commonjs/components/Picker/PickerComponent.web.js +24 -5
  22. package/lib/commonjs/components/Portal/PortalHost.js +27 -15
  23. package/lib/commonjs/components/ProgressBar.js +23 -7
  24. package/lib/commonjs/components/RadioButton/RadioButton.js +14 -3
  25. package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js +11 -2
  26. package/lib/commonjs/components/RadioButton/RadioButtonRow.js +24 -6
  27. package/lib/commonjs/components/ScreenContainer.js +23 -5
  28. package/lib/commonjs/components/Slider.js +24 -5
  29. package/lib/commonjs/components/StarRating.js +25 -5
  30. package/lib/commonjs/components/StepIndicator.js +34 -16
  31. package/lib/commonjs/components/Stepper.js +8 -3
  32. package/lib/commonjs/components/Surface.js +14 -3
  33. package/lib/commonjs/components/Switch.js +23 -10
  34. package/lib/commonjs/components/Text.js +42 -8
  35. package/lib/commonjs/components/TextField.js +68 -31
  36. package/lib/commonjs/components/ToggleButton.js +18 -3
  37. package/lib/commonjs/components/Touchable.js +16 -2
  38. package/lib/commonjs/mappings/AudioPlayer.js +32 -2
  39. package/lib/commonjs/mappings/DatePicker.js +0 -13
  40. package/lib/commonjs/mappings/Stepper.js +1 -1
  41. package/lib/commonjs/mappings/TextArea.js +14 -3
  42. package/lib/commonjs/mappings/TextField.js +15 -5
  43. package/lib/commonjs/mappings/TextInput.js +15 -4
  44. package/lib/module/components/DatePicker/DatePicker.js +8 -17
  45. package/lib/module/components/Picker/Picker.js +2 -2
  46. package/lib/module/components/Stepper.js +7 -3
  47. package/lib/module/components/Text.js +6 -2
  48. package/lib/module/components/TextField.js +5 -1
  49. package/lib/module/mappings/AudioPlayer.js +33 -3
  50. package/lib/module/mappings/DatePicker.js +1 -14
  51. package/lib/module/mappings/Stepper.js +2 -2
  52. package/lib/module/mappings/TextArea.js +15 -4
  53. package/lib/module/mappings/TextField.js +15 -5
  54. package/lib/module/mappings/TextInput.js +16 -5
  55. package/lib/typescript/src/Provider.d.ts +1 -0
  56. package/lib/typescript/src/Provider.d.ts.map +1 -0
  57. package/lib/typescript/src/components/Accordion/AccordionGroup.d.ts +1 -0
  58. package/lib/typescript/src/components/Accordion/AccordionGroup.d.ts.map +1 -0
  59. package/lib/typescript/src/components/Accordion/AccordionItem.d.ts +1 -0
  60. package/lib/typescript/src/components/Accordion/AccordionItem.d.ts.map +1 -0
  61. package/lib/typescript/src/components/Accordion/index.d.ts +1 -0
  62. package/lib/typescript/src/components/Accordion/index.d.ts.map +1 -0
  63. package/lib/typescript/src/components/ActionSheet/ActionSheet.d.ts +1 -0
  64. package/lib/typescript/src/components/ActionSheet/ActionSheet.d.ts.map +1 -0
  65. package/lib/typescript/src/components/ActionSheet/ActionSheetCancel.d.ts +1 -0
  66. package/lib/typescript/src/components/ActionSheet/ActionSheetCancel.d.ts.map +1 -0
  67. package/lib/typescript/src/components/ActionSheet/ActionSheetItem.d.ts +1 -0
  68. package/lib/typescript/src/components/ActionSheet/ActionSheetItem.d.ts.map +1 -0
  69. package/lib/typescript/src/components/ActionSheet/index.d.ts +1 -0
  70. package/lib/typescript/src/components/ActionSheet/index.d.ts.map +1 -0
  71. package/lib/typescript/src/components/AnimatedCircularProgress.d.ts +1 -0
  72. package/lib/typescript/src/components/AnimatedCircularProgress.d.ts.map +1 -0
  73. package/lib/typescript/src/components/AspectRatio.d.ts +1 -0
  74. package/lib/typescript/src/components/AspectRatio.d.ts.map +1 -0
  75. package/lib/typescript/src/components/AvatarEdit.d.ts +1 -0
  76. package/lib/typescript/src/components/AvatarEdit.d.ts.map +1 -0
  77. package/lib/typescript/src/components/Banner.d.ts +1 -0
  78. package/lib/typescript/src/components/Banner.d.ts.map +1 -0
  79. package/lib/typescript/src/components/Button.d.ts +1 -0
  80. package/lib/typescript/src/components/Button.d.ts.map +1 -0
  81. package/lib/typescript/src/components/Card.d.ts +1 -0
  82. package/lib/typescript/src/components/Card.d.ts.map +1 -0
  83. package/lib/typescript/src/components/CardBlock.d.ts +1 -0
  84. package/lib/typescript/src/components/CardBlock.d.ts.map +1 -0
  85. package/lib/typescript/src/components/CardContainer.d.ts +1 -0
  86. package/lib/typescript/src/components/CardContainer.d.ts.map +1 -0
  87. package/lib/typescript/src/components/CardContainerRating.d.ts +1 -0
  88. package/lib/typescript/src/components/CardContainerRating.d.ts.map +1 -0
  89. package/lib/typescript/src/components/CardContainerShortImage.d.ts +1 -0
  90. package/lib/typescript/src/components/CardContainerShortImage.d.ts.map +1 -0
  91. package/lib/typescript/src/components/CardInline.d.ts +1 -0
  92. package/lib/typescript/src/components/CardInline.d.ts.map +1 -0
  93. package/lib/typescript/src/components/Carousel.d.ts +1 -0
  94. package/lib/typescript/src/components/Carousel.d.ts.map +1 -0
  95. package/lib/typescript/src/components/Checkbox/Checkbox.d.ts +1 -0
  96. package/lib/typescript/src/components/Checkbox/Checkbox.d.ts.map +1 -0
  97. package/lib/typescript/src/components/Checkbox/CheckboxGroup.d.ts +1 -0
  98. package/lib/typescript/src/components/Checkbox/CheckboxGroup.d.ts.map +1 -0
  99. package/lib/typescript/src/components/Checkbox/CheckboxGroupRow.d.ts +1 -0
  100. package/lib/typescript/src/components/Checkbox/CheckboxGroupRow.d.ts.map +1 -0
  101. package/lib/typescript/src/components/Checkbox/CheckboxRow.d.ts +1 -0
  102. package/lib/typescript/src/components/Checkbox/CheckboxRow.d.ts.map +1 -0
  103. package/lib/typescript/src/components/Checkbox/context.d.ts +1 -0
  104. package/lib/typescript/src/components/Checkbox/context.d.ts.map +1 -0
  105. package/lib/typescript/src/components/Checkbox/index.d.ts +1 -0
  106. package/lib/typescript/src/components/Checkbox/index.d.ts.map +1 -0
  107. package/lib/typescript/src/components/CircleImage.d.ts +1 -0
  108. package/lib/typescript/src/components/CircleImage.d.ts.map +1 -0
  109. package/lib/typescript/src/components/CircularProgress.d.ts +1 -0
  110. package/lib/typescript/src/components/CircularProgress.d.ts.map +1 -0
  111. package/lib/typescript/src/components/Config.d.ts +1 -0
  112. package/lib/typescript/src/components/Config.d.ts.map +1 -0
  113. package/lib/typescript/src/components/Container.d.ts +1 -0
  114. package/lib/typescript/src/components/Container.d.ts.map +1 -0
  115. package/lib/typescript/src/components/DatePicker/DatePicker.d.ts +1 -4
  116. package/lib/typescript/src/components/DatePicker/DatePicker.d.ts.map +1 -0
  117. package/lib/typescript/src/components/DatePicker/DatePickerComponent.d.ts +1 -0
  118. package/lib/typescript/src/components/DatePicker/DatePickerComponent.d.ts.map +1 -0
  119. package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.d.ts +1 -0
  120. package/lib/typescript/src/components/DatePicker/DatePickerComponent.web.d.ts.map +1 -0
  121. package/lib/typescript/src/components/DatePicker/DatePickerComponentType.d.ts +1 -0
  122. package/lib/typescript/src/components/DatePicker/DatePickerComponentType.d.ts.map +1 -0
  123. package/lib/typescript/src/components/DeprecatedButton.d.ts +1 -0
  124. package/lib/typescript/src/components/DeprecatedButton.d.ts.map +1 -0
  125. package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts +1 -0
  126. package/lib/typescript/src/components/DeprecatedCardWrapper.d.ts.map +1 -0
  127. package/lib/typescript/src/components/DeprecatedFAB.d.ts +1 -0
  128. package/lib/typescript/src/components/DeprecatedFAB.d.ts.map +1 -0
  129. package/lib/typescript/src/components/Divider.d.ts +1 -0
  130. package/lib/typescript/src/components/Divider.d.ts.map +1 -0
  131. package/lib/typescript/src/components/Elevation.d.ts +1 -0
  132. package/lib/typescript/src/components/Elevation.d.ts.map +1 -0
  133. package/lib/typescript/src/components/FAB.d.ts +1 -0
  134. package/lib/typescript/src/components/FAB.d.ts.map +1 -0
  135. package/lib/typescript/src/components/FieldSearchBarFull.d.ts +1 -0
  136. package/lib/typescript/src/components/FieldSearchBarFull.d.ts.map +1 -0
  137. package/lib/typescript/src/components/FormRow.d.ts +1 -0
  138. package/lib/typescript/src/components/FormRow.d.ts.map +1 -0
  139. package/lib/typescript/src/components/Header.d.ts +1 -0
  140. package/lib/typescript/src/components/Header.d.ts.map +1 -0
  141. package/lib/typescript/src/components/HeaderLarge.d.ts +1 -0
  142. package/lib/typescript/src/components/HeaderLarge.d.ts.map +1 -0
  143. package/lib/typescript/src/components/HeaderMedium.d.ts +1 -0
  144. package/lib/typescript/src/components/HeaderMedium.d.ts.map +1 -0
  145. package/lib/typescript/src/components/HeaderOverline.d.ts +1 -0
  146. package/lib/typescript/src/components/HeaderOverline.d.ts.map +1 -0
  147. package/lib/typescript/src/components/IconButton.d.ts +1 -0
  148. package/lib/typescript/src/components/IconButton.d.ts.map +1 -0
  149. package/lib/typescript/src/components/Image.d.ts +1 -0
  150. package/lib/typescript/src/components/Image.d.ts.map +1 -0
  151. package/lib/typescript/src/components/Justification.d.ts +1 -0
  152. package/lib/typescript/src/components/Justification.d.ts.map +1 -0
  153. package/lib/typescript/src/components/Layout.d.ts +1 -0
  154. package/lib/typescript/src/components/Layout.d.ts.map +1 -0
  155. package/lib/typescript/src/components/NumberInput.d.ts +1 -0
  156. package/lib/typescript/src/components/NumberInput.d.ts.map +1 -0
  157. package/lib/typescript/src/components/Picker/Picker.d.ts +1 -0
  158. package/lib/typescript/src/components/Picker/Picker.d.ts.map +1 -0
  159. package/lib/typescript/src/components/Picker/PickerComponent.android.d.ts +1 -0
  160. package/lib/typescript/src/components/Picker/PickerComponent.android.d.ts.map +1 -0
  161. package/lib/typescript/src/components/Picker/PickerComponent.ios.d.ts +1 -0
  162. package/lib/typescript/src/components/Picker/PickerComponent.ios.d.ts.map +1 -0
  163. package/lib/typescript/src/components/Picker/PickerComponent.web.d.ts +1 -0
  164. package/lib/typescript/src/components/Picker/PickerComponent.web.d.ts.map +1 -0
  165. package/lib/typescript/src/components/Picker/PickerTypes.d.ts +1 -0
  166. package/lib/typescript/src/components/Picker/PickerTypes.d.ts.map +1 -0
  167. package/lib/typescript/src/components/Portal/Portal.d.ts +1 -0
  168. package/lib/typescript/src/components/Portal/Portal.d.ts.map +1 -0
  169. package/lib/typescript/src/components/Portal/PortalConsumer.d.ts +1 -0
  170. package/lib/typescript/src/components/Portal/PortalConsumer.d.ts.map +1 -0
  171. package/lib/typescript/src/components/Portal/PortalHost.d.ts +1 -0
  172. package/lib/typescript/src/components/Portal/PortalHost.d.ts.map +1 -0
  173. package/lib/typescript/src/components/Portal/PortalManager.d.ts +1 -0
  174. package/lib/typescript/src/components/Portal/PortalManager.d.ts.map +1 -0
  175. package/lib/typescript/src/components/ProgressBar.d.ts +1 -0
  176. package/lib/typescript/src/components/ProgressBar.d.ts.map +1 -0
  177. package/lib/typescript/src/components/ProgressCircle.d.ts +1 -0
  178. package/lib/typescript/src/components/ProgressCircle.d.ts.map +1 -0
  179. package/lib/typescript/src/components/ProgressIndicator.d.ts +1 -0
  180. package/lib/typescript/src/components/ProgressIndicator.d.ts.map +1 -0
  181. package/lib/typescript/src/components/RadioButton/RadioButton.d.ts +1 -0
  182. package/lib/typescript/src/components/RadioButton/RadioButton.d.ts.map +1 -0
  183. package/lib/typescript/src/components/RadioButton/RadioButtonFieldGroup.d.ts +1 -0
  184. package/lib/typescript/src/components/RadioButton/RadioButtonFieldGroup.d.ts.map +1 -0
  185. package/lib/typescript/src/components/RadioButton/RadioButtonGroup.d.ts +1 -0
  186. package/lib/typescript/src/components/RadioButton/RadioButtonGroup.d.ts.map +1 -0
  187. package/lib/typescript/src/components/RadioButton/RadioButtonRow.d.ts +1 -0
  188. package/lib/typescript/src/components/RadioButton/RadioButtonRow.d.ts.map +1 -0
  189. package/lib/typescript/src/components/RadioButton/context.d.ts +1 -0
  190. package/lib/typescript/src/components/RadioButton/context.d.ts.map +1 -0
  191. package/lib/typescript/src/components/RadioButton/index.d.ts +1 -0
  192. package/lib/typescript/src/components/RadioButton/index.d.ts.map +1 -0
  193. package/lib/typescript/src/components/ResizeMode.d.ts +1 -0
  194. package/lib/typescript/src/components/ResizeMode.d.ts.map +1 -0
  195. package/lib/typescript/src/components/Row.d.ts +1 -0
  196. package/lib/typescript/src/components/Row.d.ts.map +1 -0
  197. package/lib/typescript/src/components/RowBodyIcon.d.ts +1 -0
  198. package/lib/typescript/src/components/RowBodyIcon.d.ts.map +1 -0
  199. package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts +1 -0
  200. package/lib/typescript/src/components/RowHeadlineImageCaption.d.ts.map +1 -0
  201. package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts +1 -0
  202. package/lib/typescript/src/components/RowHeadlineImageIcon.d.ts.map +1 -0
  203. package/lib/typescript/src/components/SVG.d.ts +1 -0
  204. package/lib/typescript/src/components/SVG.d.ts.map +1 -0
  205. package/lib/typescript/src/components/ScreenContainer.d.ts +1 -0
  206. package/lib/typescript/src/components/ScreenContainer.d.ts.map +1 -0
  207. package/lib/typescript/src/components/Slider.d.ts +1 -0
  208. package/lib/typescript/src/components/Slider.d.ts.map +1 -0
  209. package/lib/typescript/src/components/StarRating.d.ts +1 -0
  210. package/lib/typescript/src/components/StarRating.d.ts.map +1 -0
  211. package/lib/typescript/src/components/StepIndicator.d.ts +1 -0
  212. package/lib/typescript/src/components/StepIndicator.d.ts.map +1 -0
  213. package/lib/typescript/src/components/Stepper.d.ts +2 -2
  214. package/lib/typescript/src/components/Stepper.d.ts.map +1 -0
  215. package/lib/typescript/src/components/Surface.d.ts +1 -0
  216. package/lib/typescript/src/components/Surface.d.ts.map +1 -0
  217. package/lib/typescript/src/components/Swiper/Swiper.d.ts +1 -0
  218. package/lib/typescript/src/components/Swiper/Swiper.d.ts.map +1 -0
  219. package/lib/typescript/src/components/Swiper/SwiperItem.d.ts +1 -0
  220. package/lib/typescript/src/components/Swiper/SwiperItem.d.ts.map +1 -0
  221. package/lib/typescript/src/components/Swiper/index.d.ts +1 -0
  222. package/lib/typescript/src/components/Swiper/index.d.ts.map +1 -0
  223. package/lib/typescript/src/components/Switch.d.ts +1 -0
  224. package/lib/typescript/src/components/Switch.d.ts.map +1 -0
  225. package/lib/typescript/src/components/Text.d.ts +3 -1
  226. package/lib/typescript/src/components/Text.d.ts.map +1 -0
  227. package/lib/typescript/src/components/TextField.d.ts +3 -1
  228. package/lib/typescript/src/components/TextField.d.ts.map +1 -0
  229. package/lib/typescript/src/components/ToggleButton.d.ts +1 -0
  230. package/lib/typescript/src/components/ToggleButton.d.ts.map +1 -0
  231. package/lib/typescript/src/components/Touchable.d.ts +1 -0
  232. package/lib/typescript/src/components/Touchable.d.ts.map +1 -0
  233. package/lib/typescript/src/components/Touchable.web.d.ts +1 -0
  234. package/lib/typescript/src/components/Touchable.web.d.ts.map +1 -0
  235. package/lib/typescript/src/components/Typography.d.ts +1 -0
  236. package/lib/typescript/src/components/Typography.d.ts.map +1 -0
  237. package/lib/typescript/src/components/useAuthState.d.ts +1 -0
  238. package/lib/typescript/src/components/useAuthState.d.ts.map +1 -0
  239. package/lib/typescript/src/constants.d.ts +1 -0
  240. package/lib/typescript/src/constants.d.ts.map +1 -0
  241. package/lib/typescript/src/hooks.d.ts +1 -0
  242. package/lib/typescript/src/hooks.d.ts.map +1 -0
  243. package/lib/typescript/src/index.d.ts +1 -0
  244. package/lib/typescript/src/index.d.ts.map +1 -0
  245. package/lib/typescript/src/interfaces/Icon.d.ts +1 -0
  246. package/lib/typescript/src/interfaces/Icon.d.ts.map +1 -0
  247. package/lib/typescript/src/mappings/Accordion.d.ts +1 -0
  248. package/lib/typescript/src/mappings/Accordion.d.ts.map +1 -0
  249. package/lib/typescript/src/mappings/AccordionItem.d.ts +1 -0
  250. package/lib/typescript/src/mappings/AccordionItem.d.ts.map +1 -0
  251. package/lib/typescript/src/mappings/ActionSheet.d.ts +1 -0
  252. package/lib/typescript/src/mappings/ActionSheet.d.ts.map +1 -0
  253. package/lib/typescript/src/mappings/ActionSheetCancel.d.ts +1 -0
  254. package/lib/typescript/src/mappings/ActionSheetCancel.d.ts.map +1 -0
  255. package/lib/typescript/src/mappings/ActionSheetItem.d.ts +1 -0
  256. package/lib/typescript/src/mappings/ActionSheetItem.d.ts.map +1 -0
  257. package/lib/typescript/src/mappings/ActivityIndicator.d.ts +1 -0
  258. package/lib/typescript/src/mappings/ActivityIndicator.d.ts.map +1 -0
  259. package/lib/typescript/src/mappings/AudioPlayer.d.ts +63 -1
  260. package/lib/typescript/src/mappings/AudioPlayer.d.ts.map +1 -0
  261. package/lib/typescript/src/mappings/AvatarEdit.d.ts +1 -0
  262. package/lib/typescript/src/mappings/AvatarEdit.d.ts.map +1 -0
  263. package/lib/typescript/src/mappings/Banner.d.ts +1 -0
  264. package/lib/typescript/src/mappings/Banner.d.ts.map +1 -0
  265. package/lib/typescript/src/mappings/BlurView.d.ts +1 -0
  266. package/lib/typescript/src/mappings/BlurView.d.ts.map +1 -0
  267. package/lib/typescript/src/mappings/Button.d.ts +1 -0
  268. package/lib/typescript/src/mappings/Button.d.ts.map +1 -0
  269. package/lib/typescript/src/mappings/Card.d.ts +1 -0
  270. package/lib/typescript/src/mappings/Card.d.ts.map +1 -0
  271. package/lib/typescript/src/mappings/CardBlock.d.ts +1 -0
  272. package/lib/typescript/src/mappings/CardBlock.d.ts.map +1 -0
  273. package/lib/typescript/src/mappings/CardContainer.d.ts +1 -0
  274. package/lib/typescript/src/mappings/CardContainer.d.ts.map +1 -0
  275. package/lib/typescript/src/mappings/CardContainerRating.d.ts +1 -0
  276. package/lib/typescript/src/mappings/CardContainerRating.d.ts.map +1 -0
  277. package/lib/typescript/src/mappings/CardContainerShortImage.d.ts +1 -0
  278. package/lib/typescript/src/mappings/CardContainerShortImage.d.ts.map +1 -0
  279. package/lib/typescript/src/mappings/CardInline.d.ts +1 -0
  280. package/lib/typescript/src/mappings/CardInline.d.ts.map +1 -0
  281. package/lib/typescript/src/mappings/Carousel.d.ts +1 -0
  282. package/lib/typescript/src/mappings/Carousel.d.ts.map +1 -0
  283. package/lib/typescript/src/mappings/Checkbox.d.ts +1 -0
  284. package/lib/typescript/src/mappings/Checkbox.d.ts.map +1 -0
  285. package/lib/typescript/src/mappings/CheckboxGroup.d.ts +1 -0
  286. package/lib/typescript/src/mappings/CheckboxGroup.d.ts.map +1 -0
  287. package/lib/typescript/src/mappings/CheckboxRow.d.ts +1 -0
  288. package/lib/typescript/src/mappings/CheckboxRow.d.ts.map +1 -0
  289. package/lib/typescript/src/mappings/CircleImage.d.ts +1 -0
  290. package/lib/typescript/src/mappings/CircleImage.d.ts.map +1 -0
  291. package/lib/typescript/src/mappings/Container.d.ts +1 -0
  292. package/lib/typescript/src/mappings/Container.d.ts.map +1 -0
  293. package/lib/typescript/src/mappings/CustomCode.d.ts +1 -0
  294. package/lib/typescript/src/mappings/CustomCode.d.ts.map +1 -0
  295. package/lib/typescript/src/mappings/DatePicker.d.ts +1 -42
  296. package/lib/typescript/src/mappings/DatePicker.d.ts.map +1 -0
  297. package/lib/typescript/src/mappings/Divider.d.ts +1 -0
  298. package/lib/typescript/src/mappings/Divider.d.ts.map +1 -0
  299. package/lib/typescript/src/mappings/FAB.d.ts +1 -0
  300. package/lib/typescript/src/mappings/FAB.d.ts.map +1 -0
  301. package/lib/typescript/src/mappings/Fetch.d.ts +1 -0
  302. package/lib/typescript/src/mappings/Fetch.d.ts.map +1 -0
  303. package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts +1 -0
  304. package/lib/typescript/src/mappings/FieldSearchBarFull.d.ts.map +1 -0
  305. package/lib/typescript/src/mappings/FlashList.d.ts +1 -0
  306. package/lib/typescript/src/mappings/FlashList.d.ts.map +1 -0
  307. package/lib/typescript/src/mappings/FlatList.d.ts +1 -0
  308. package/lib/typescript/src/mappings/FlatList.d.ts.map +1 -0
  309. package/lib/typescript/src/mappings/HeaderLarge.d.ts +1 -0
  310. package/lib/typescript/src/mappings/HeaderLarge.d.ts.map +1 -0
  311. package/lib/typescript/src/mappings/HeaderMedium.d.ts +1 -0
  312. package/lib/typescript/src/mappings/HeaderMedium.d.ts.map +1 -0
  313. package/lib/typescript/src/mappings/HeaderOverline.d.ts +1 -0
  314. package/lib/typescript/src/mappings/HeaderOverline.d.ts.map +1 -0
  315. package/lib/typescript/src/mappings/Icon.d.ts +1 -0
  316. package/lib/typescript/src/mappings/Icon.d.ts.map +1 -0
  317. package/lib/typescript/src/mappings/IconButton.d.ts +1 -0
  318. package/lib/typescript/src/mappings/IconButton.d.ts.map +1 -0
  319. package/lib/typescript/src/mappings/Image.d.ts +1 -0
  320. package/lib/typescript/src/mappings/Image.d.ts.map +1 -0
  321. package/lib/typescript/src/mappings/ImageBackground.d.ts +1 -0
  322. package/lib/typescript/src/mappings/ImageBackground.d.ts.map +1 -0
  323. package/lib/typescript/src/mappings/KeyboardAvoidingView.d.ts +1 -0
  324. package/lib/typescript/src/mappings/KeyboardAvoidingView.d.ts.map +1 -0
  325. package/lib/typescript/src/mappings/KeyboardAwareScrollView.d.ts +1 -0
  326. package/lib/typescript/src/mappings/KeyboardAwareScrollView.d.ts.map +1 -0
  327. package/lib/typescript/src/mappings/Layout.d.ts +1 -0
  328. package/lib/typescript/src/mappings/Layout.d.ts.map +1 -0
  329. package/lib/typescript/src/mappings/LinearGradient.d.ts +1 -0
  330. package/lib/typescript/src/mappings/LinearGradient.d.ts.map +1 -0
  331. package/lib/typescript/src/mappings/MapCallout.d.ts +1 -0
  332. package/lib/typescript/src/mappings/MapCallout.d.ts.map +1 -0
  333. package/lib/typescript/src/mappings/MapMarker.d.ts +1 -0
  334. package/lib/typescript/src/mappings/MapMarker.d.ts.map +1 -0
  335. package/lib/typescript/src/mappings/MapView.d.ts +1 -0
  336. package/lib/typescript/src/mappings/MapView.d.ts.map +1 -0
  337. package/lib/typescript/src/mappings/Modal.d.ts +1 -0
  338. package/lib/typescript/src/mappings/Modal.d.ts.map +1 -0
  339. package/lib/typescript/src/mappings/NumberInput.d.ts +1 -0
  340. package/lib/typescript/src/mappings/NumberInput.d.ts.map +1 -0
  341. package/lib/typescript/src/mappings/Picker.d.ts +1 -0
  342. package/lib/typescript/src/mappings/Picker.d.ts.map +1 -0
  343. package/lib/typescript/src/mappings/ProgressBar.d.ts +1 -0
  344. package/lib/typescript/src/mappings/ProgressBar.d.ts.map +1 -0
  345. package/lib/typescript/src/mappings/ProgressCircle.d.ts +1 -0
  346. package/lib/typescript/src/mappings/ProgressCircle.d.ts.map +1 -0
  347. package/lib/typescript/src/mappings/ProgressIndicator.d.ts +1 -0
  348. package/lib/typescript/src/mappings/ProgressIndicator.d.ts.map +1 -0
  349. package/lib/typescript/src/mappings/RadioButton.d.ts +1 -0
  350. package/lib/typescript/src/mappings/RadioButton.d.ts.map +1 -0
  351. package/lib/typescript/src/mappings/RadioButtonGroup.d.ts +1 -0
  352. package/lib/typescript/src/mappings/RadioButtonGroup.d.ts.map +1 -0
  353. package/lib/typescript/src/mappings/RadioButtonRow.d.ts +1 -0
  354. package/lib/typescript/src/mappings/RadioButtonRow.d.ts.map +1 -0
  355. package/lib/typescript/src/mappings/RowBodyIcon.d.ts +1 -0
  356. package/lib/typescript/src/mappings/RowBodyIcon.d.ts.map +1 -0
  357. package/lib/typescript/src/mappings/RowHeadlineImageCaption.d.ts +1 -0
  358. package/lib/typescript/src/mappings/RowHeadlineImageCaption.d.ts.map +1 -0
  359. package/lib/typescript/src/mappings/RowHeadlineImageIcon.d.ts +1 -0
  360. package/lib/typescript/src/mappings/RowHeadlineImageIcon.d.ts.map +1 -0
  361. package/lib/typescript/src/mappings/SVG.d.ts +1 -0
  362. package/lib/typescript/src/mappings/SVG.d.ts.map +1 -0
  363. package/lib/typescript/src/mappings/SafeAreaView.d.ts +1 -0
  364. package/lib/typescript/src/mappings/SafeAreaView.d.ts.map +1 -0
  365. package/lib/typescript/src/mappings/ScrollView.d.ts +1 -0
  366. package/lib/typescript/src/mappings/ScrollView.d.ts.map +1 -0
  367. package/lib/typescript/src/mappings/Slider.d.ts +1 -0
  368. package/lib/typescript/src/mappings/Slider.d.ts.map +1 -0
  369. package/lib/typescript/src/mappings/StarRating.d.ts +1 -0
  370. package/lib/typescript/src/mappings/StarRating.d.ts.map +1 -0
  371. package/lib/typescript/src/mappings/Stepper.d.ts +1 -0
  372. package/lib/typescript/src/mappings/Stepper.d.ts.map +1 -0
  373. package/lib/typescript/src/mappings/Surface.d.ts +1 -0
  374. package/lib/typescript/src/mappings/Surface.d.ts.map +1 -0
  375. package/lib/typescript/src/mappings/Swiper.d.ts +1 -0
  376. package/lib/typescript/src/mappings/Swiper.d.ts.map +1 -0
  377. package/lib/typescript/src/mappings/SwiperItem.d.ts +1 -0
  378. package/lib/typescript/src/mappings/SwiperItem.d.ts.map +1 -0
  379. package/lib/typescript/src/mappings/Switch.d.ts +1 -0
  380. package/lib/typescript/src/mappings/Switch.d.ts.map +1 -0
  381. package/lib/typescript/src/mappings/Text.d.ts +1 -0
  382. package/lib/typescript/src/mappings/Text.d.ts.map +1 -0
  383. package/lib/typescript/src/mappings/TextArea.d.ts +22 -1
  384. package/lib/typescript/src/mappings/TextArea.d.ts.map +1 -0
  385. package/lib/typescript/src/mappings/TextField.d.ts +25 -4
  386. package/lib/typescript/src/mappings/TextField.d.ts.map +1 -0
  387. package/lib/typescript/src/mappings/TextInput.d.ts +23 -2
  388. package/lib/typescript/src/mappings/TextInput.d.ts.map +1 -0
  389. package/lib/typescript/src/mappings/ToggleButton.d.ts +1 -0
  390. package/lib/typescript/src/mappings/ToggleButton.d.ts.map +1 -0
  391. package/lib/typescript/src/mappings/Touchable.d.ts +1 -0
  392. package/lib/typescript/src/mappings/Touchable.d.ts.map +1 -0
  393. package/lib/typescript/src/mappings/Video.d.ts +1 -0
  394. package/lib/typescript/src/mappings/Video.d.ts.map +1 -0
  395. package/lib/typescript/src/mappings/View.d.ts +1 -0
  396. package/lib/typescript/src/mappings/View.d.ts.map +1 -0
  397. package/lib/typescript/src/mappings/WebView.d.ts +1 -0
  398. package/lib/typescript/src/mappings/WebView.d.ts.map +1 -0
  399. package/lib/typescript/src/styles/DarkTheme.d.ts +1 -0
  400. package/lib/typescript/src/styles/DarkTheme.d.ts.map +1 -0
  401. package/lib/typescript/src/styles/DefaultTheme.d.ts +1 -0
  402. package/lib/typescript/src/styles/DefaultTheme.d.ts.map +1 -0
  403. package/lib/typescript/src/styles/fonts.d.ts +1 -0
  404. package/lib/typescript/src/styles/fonts.d.ts.map +1 -0
  405. package/lib/typescript/src/styles/overlay.d.ts +1 -0
  406. package/lib/typescript/src/styles/overlay.d.ts.map +1 -0
  407. package/lib/typescript/src/styles/shadow.d.ts +1 -0
  408. package/lib/typescript/src/styles/shadow.d.ts.map +1 -0
  409. package/lib/typescript/src/theming.d.ts +1 -0
  410. package/lib/typescript/src/theming.d.ts.map +1 -0
  411. package/lib/typescript/src/utilities.d.ts +1 -0
  412. package/lib/typescript/src/utilities.d.ts.map +1 -0
  413. package/package.json +15 -5
  414. package/src/components/DatePicker/DatePicker.js +8 -14
  415. package/src/components/DatePicker/DatePicker.tsx +7 -23
  416. package/src/components/Picker/Picker.js +1 -1
  417. package/src/components/Picker/Picker.tsx +2 -2
  418. package/src/components/Stepper.js +5 -3
  419. package/src/components/Stepper.tsx +5 -5
  420. package/src/components/Text.js +8 -2
  421. package/src/components/Text.tsx +6 -1
  422. package/src/components/TextField.js +6 -1
  423. package/src/components/TextField.tsx +7 -1
  424. package/src/mappings/AudioPlayer.js +39 -2
  425. package/src/mappings/AudioPlayer.ts +41 -1
  426. package/src/mappings/DatePicker.js +1 -21
  427. package/src/mappings/DatePicker.ts +0 -23
  428. package/src/mappings/Stepper.js +5 -2
  429. package/src/mappings/Stepper.ts +5 -1
  430. package/src/mappings/TextArea.js +15 -4
  431. package/src/mappings/TextArea.ts +15 -3
  432. package/src/mappings/TextField.js +15 -5
  433. package/src/mappings/TextField.ts +15 -5
  434. package/src/mappings/TextInput.js +16 -5
  435. package/src/mappings/TextInput.ts +16 -4
@@ -17,10 +17,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
17
17
 
18
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
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
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
23
-
24
20
  const AnimatedText = _reactNative.Animated.createAnimatedComponent(_reactNative.Text);
25
21
 
26
22
  const FOCUS_ANIMATION_DURATION = 150;
@@ -30,8 +26,8 @@ const ICON_SIZE = 24;
30
26
  class TextField extends React.Component {
31
27
  constructor() {
32
28
  super(...arguments);
33
-
34
- _defineProperty(this, "state", {
29
+ this.state = {
30
+ nativeProps: {},
35
31
  labeled: new _reactNative.Animated.Value(this.props.value || this.props.error ? 0 : 1),
36
32
  focused: false,
37
33
  placeholder: this.props.error ? this.props.placeholder : "",
@@ -39,36 +35,35 @@ class TextField extends React.Component {
39
35
  measured: false,
40
36
  width: 0
41
37
  }
42
- });
43
-
44
- _defineProperty(this, "_timer", setTimeout(() => {}, 0));
38
+ };
39
+ this._timer = setTimeout(() => {}, 0);
45
40
 
46
- _defineProperty(this, "_showPlaceholder", () => {
41
+ this._showPlaceholder = () => {
47
42
  clearTimeout(this._timer); // Set the placeholder in a delay to offset the label animation
48
43
  // If we show it immediately, they'll overlap and look ugly
49
44
 
50
45
  this._timer = setTimeout(() => this.setState({
51
46
  placeholder: this.props.placeholder
52
47
  }), 50);
53
- });
48
+ };
54
49
 
55
- _defineProperty(this, "_hidePlaceholder", () => this.setState({
50
+ this._hidePlaceholder = () => this.setState({
56
51
  placeholder: ""
57
- }));
52
+ });
58
53
 
59
- _defineProperty(this, "_restoreLabel", () => _reactNative.Animated.timing(this.state.labeled, {
54
+ this._restoreLabel = () => _reactNative.Animated.timing(this.state.labeled, {
60
55
  toValue: 1,
61
56
  duration: FOCUS_ANIMATION_DURATION,
62
57
  useNativeDriver: true
63
- }).start());
58
+ }).start();
64
59
 
65
- _defineProperty(this, "_minmizeLabel", () => _reactNative.Animated.timing(this.state.labeled, {
60
+ this._minmizeLabel = () => _reactNative.Animated.timing(this.state.labeled, {
66
61
  toValue: 0,
67
62
  duration: BLUR_ANIMATION_DURATION,
68
63
  useNativeDriver: true
69
- }).start());
64
+ }).start();
70
65
 
71
- _defineProperty(this, "_handleFocus", () => {
66
+ this._handleFocus = () => {
72
67
  if (this.props.disabled) {
73
68
  return;
74
69
  }
@@ -76,9 +71,9 @@ class TextField extends React.Component {
76
71
  this.setState({
77
72
  focused: true
78
73
  });
79
- });
74
+ };
80
75
 
81
- _defineProperty(this, "_handleBlur", () => {
76
+ this._handleBlur = () => {
82
77
  if (this.props.disabled) {
83
78
  return;
84
79
  }
@@ -86,9 +81,9 @@ class TextField extends React.Component {
86
81
  this.setState({
87
82
  focused: false
88
83
  });
89
- });
84
+ };
90
85
 
91
- _defineProperty(this, "_handleChangeText", value => {
86
+ this._handleChangeText = value => {
92
87
  if (this.props.disabled) {
93
88
  return;
94
89
  }
@@ -104,9 +99,9 @@ class TextField extends React.Component {
104
99
  });
105
100
  this.props.onChangeText && this.props.onChangeText(value.nativeEvent.text);
106
101
  }
107
- });
102
+ };
108
103
 
109
- _defineProperty(this, "_root", undefined);
104
+ this._root = undefined;
110
105
  }
111
106
 
112
107
  static getDerivedStateFromProps(nextProps, prevState) {
@@ -157,12 +152,15 @@ class TextField extends React.Component {
157
152
  focused: !prevState.focused
158
153
  }));
159
154
  }
160
-
161
155
  /**
162
156
  * @internal
163
157
  */
158
+
159
+
164
160
  setNativeProps(args) {
165
- return this._root && this._root.setNativeProps(args);
161
+ this.setState(state => ({ ...state,
162
+ nativeState: args || {}
163
+ }));
166
164
  }
167
165
 
168
166
  isFocused() {
@@ -203,7 +201,8 @@ class TextField extends React.Component {
203
201
  roundness,
204
202
  disabledOpacity
205
203
  },
206
- render = props => /*#__PURE__*/React.createElement(_reactNative.TextInput, props),
204
+ render = props => /*#__PURE__*/React.createElement(_reactNative.TextInput, { ...props
205
+ }),
207
206
  ...rest
208
207
  } = this.props;
209
208
  const MINIMIZED_LABEL_Y_OFFSET = -(typography.caption.lineHeight + 4);
@@ -357,9 +356,9 @@ class TextField extends React.Component {
357
356
 
358
357
  return /*#__PURE__*/React.createElement(_reactNative.View, {
359
358
  style: [styles.container, styleProp]
360
- }, leftIconName && leftIconMode === "outset" ? /*#__PURE__*/React.createElement(Icon, _extends({}, leftIconProps, {
359
+ }, leftIconName && leftIconMode === "outset" ? /*#__PURE__*/React.createElement(Icon, { ...leftIconProps,
361
360
  style: leftIconStyle
362
- })) : null, /*#__PURE__*/React.createElement(_reactNative.View, {
361
+ }) : null, /*#__PURE__*/React.createElement(_reactNative.View, {
363
362
  style: (0, _utilities.applyStyles)([containerStyle], {
364
363
  height: style === null || style === void 0 ? void 0 : style.height,
365
364
  backgroundColor: bgColor,
@@ -426,9 +425,9 @@ class TextField extends React.Component {
426
425
  style: {
427
426
  justifyContent: type === "solid" ? "center" : undefined
428
427
  }
429
- }, /*#__PURE__*/React.createElement(Icon, _extends({}, leftIconProps, {
428
+ }, /*#__PURE__*/React.createElement(Icon, { ...leftIconProps,
430
429
  style: leftIconStyle
431
- }))) : null, render({
430
+ })) : null, render({
432
431
  ref: c => {
433
432
  this._root = c;
434
433
  },
@@ -444,6 +443,7 @@ class TextField extends React.Component {
444
443
  underlineColorAndroid: "transparent",
445
444
  style: inputStyles,
446
445
  ...rest,
446
+ ...this.state.nativeProps,
447
447
  value: this.state.value
448
448
  })), rightIconName ? /*#__PURE__*/React.createElement(Icon, {
449
449
  name: rightIconName,
@@ -469,6 +469,43 @@ var _default = (0, _theming.withTheme)(TextField);
469
469
 
470
470
  exports.default = _default;
471
471
 
472
+ const styles = _reactNative.StyleSheet.create({
473
+ container: {
474
+ alignSelf: "stretch"
475
+ },
476
+ placeholder: {
477
+ position: "absolute",
478
+ left: 0
479
+ },
480
+ underline: {
481
+ position: "absolute",
482
+ left: 0,
483
+ right: 0,
484
+ bottom: 0,
485
+ height: 2
486
+ },
487
+ input: {
488
+ flexGrow: 1,
489
+ justifyContent: "center",
490
+ textAlignVertical: "center",
491
+ margin: 0,
492
+ textAlign: _reactNative.I18nManager.isRTL ? "right" : "left"
493
+ }
494
+ });? /*#__PURE__*/React.createElement(_reactNative.Text, {
495
+ style: [{
496
+ color: error ? colors.error : colors.light,
497
+ marginTop: 8,
498
+ marginLeft: assistiveTextLeftMargin
499
+ }]
500
+ }, assistiveText) : null);
501
+ }
502
+
503
+ }
504
+
505
+ var _default = (0, _theming.withTheme)(TextField);
506
+
507
+ exports.default = _default;
508
+
472
509
  const styles = _reactNative.StyleSheet.create({
473
510
  container: {
474
511
  alignSelf: "stretch"
@@ -19,8 +19,6 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "functio
19
19
 
20
20
  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; }
21
21
 
22
- 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); }
23
-
24
22
  const ToggleButton = _ref => {
25
23
  let {
26
24
  Icon,
@@ -58,7 +56,7 @@ const ToggleButton = _ref => {
58
56
  onPress(!internalValue);
59
57
  };
60
58
 
61
- return /*#__PURE__*/React.createElement(_IconButton.default, _extends({
59
+ return /*#__PURE__*/React.createElement(_IconButton.default, {
62
60
  Icon: Icon,
63
61
  icon: icon,
64
62
  size: iconSize,
@@ -70,6 +68,23 @@ const ToggleButton = _ref => {
70
68
  height,
71
69
  backgroundColor: internalValue ? colors[colorSecondary] : colors[color],
72
70
  borderColor: colors[borderColor]
71
+ }, style],
72
+ ...rest
73
+ });
74
+ };
75
+
76
+ const styles = _reactNative.StyleSheet.create({
77
+ mainContainer: {
78
+ borderWidth: 1
79
+ }
80
+ });
81
+
82
+ var _default = (0, _theming.withTheme)(ToggleButton);
83
+
84
+ exports.default = _default;th,
85
+ height,
86
+ backgroundColor: internalValue ? colors[colorSecondary] : colors[color],
87
+ borderColor: colors[borderColor]
73
88
  }, style]
74
89
  }, rest));
75
90
  };
@@ -11,8 +11,6 @@ var _reactNative = require("react-native");
11
11
 
12
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
13
 
14
- 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); }
15
-
16
14
  function Touchable(_ref) {
17
15
  let {
18
16
  children,
@@ -21,6 +19,22 @@ function Touchable(_ref) {
21
19
  style,
22
20
  ...props
23
21
  } = _ref;
22
+ return /*#__PURE__*/_react.default.createElement(_reactNative.Pressable, {
23
+ onPress: onPress,
24
+ disabled: disabled,
25
+ hitSlop: 8,
26
+ style: _ref2 => {
27
+ let {
28
+ pressed
29
+ } = _ref2;
30
+ return [{
31
+ opacity: pressed || disabled ? 0.75 : 1
32
+ }, style];
33
+ },
34
+ ...props
35
+ }, children);
36
+ }rops
37
+ } = _ref;
24
38
  return /*#__PURE__*/_react.default.createElement(_reactNative.Pressable, _extends({
25
39
  onPress: onPress,
26
40
  disabled: disabled,
@@ -12,7 +12,17 @@ const SEED_DATA = {
12
12
  tag: "AudioPlayer",
13
13
  description: "Given a source URL, plays sounds & audio!",
14
14
  category: _types.COMPONENT_TYPES.media,
15
- layout: {},
15
+ stylesPanelSections: [_types.StylesPanelSections.Typography, _types.StylesPanelSections.Background, _types.StylesPanelSections.Borders, _types.StylesPanelSections.Size, _types.StylesPanelSections.MarginsAndPaddings, _types.StylesPanelSections.Position],
16
+ layout: {
17
+ backgroundColor: "#eee",
18
+ paddingLeft: 16,
19
+ paddingRight: 16,
20
+ paddingTop: 8,
21
+ paddingBottom: 8,
22
+ borderRadius: 24,
23
+ flexDirection: "row",
24
+ alignItems: "center"
25
+ },
16
26
  props: {
17
27
  source: {
18
28
  group: _types.GROUPS.data,
@@ -23,7 +33,27 @@ const SEED_DATA = {
23
33
  defaultValue: "https://static.draftbit.com/audio/intro-to-draftbit-audio.mp3",
24
34
  formType: _types.FORM_TYPES.sourceUrl,
25
35
  propType: _types.PROP_TYPES.OBJECT
26
- }
36
+ },
37
+ sliderColor: (0, _types.createColorProp)({
38
+ label: "Thumb Color",
39
+ defaultValue: "strong"
40
+ }),
41
+ completedTrackColor: (0, _types.createColorProp)({
42
+ label: "Completed Track Color",
43
+ defaultValue: "background"
44
+ }),
45
+ remainingTrackColor: (0, _types.createColorProp)({
46
+ label: "Remaining Track Color",
47
+ defaultValue: "light"
48
+ }),
49
+ trackThumbSize: (0, _types.createNumberProp)({
50
+ label: "Thumb Size",
51
+ defaultValue: 24
52
+ }),
53
+ playIconColor: (0, _types.createColorProp)({
54
+ label: "Play Icon Color",
55
+ defaultValue: "strong"
56
+ })
27
57
  }
28
58
  };
29
59
  exports.SEED_DATA = SEED_DATA;
@@ -18,12 +18,6 @@ const SEED_DATA_PROPS = {
18
18
  required: true,
19
19
  group: _types.GROUPS.data
20
20
  },
21
- labelSize: (0, _types.createNumberProp)({
22
- label: "Label Size"
23
- }),
24
- labelColor: (0, _types.createColorProp)({
25
- label: "Label Color"
26
- }),
27
21
  mode: {
28
22
  label: "Mode",
29
23
  description: "Choose between date, time and datetime",
@@ -35,12 +29,6 @@ const SEED_DATA_PROPS = {
35
29
  options: ["date", "time", "datetime"],
36
30
  group: _types.GROUPS.basic
37
31
  },
38
- borderColor: (0, _types.createColorProp)({
39
- label: "Border Color"
40
- }),
41
- borderColorActive: (0, _types.createColorProp)({
42
- label: "Border Color"
43
- }),
44
32
  format: {
45
33
  label: "Format",
46
34
  description: "Create an output format for the date.",
@@ -157,7 +145,6 @@ const SEED_DATA = [{
157
145
  category: _types.COMPONENT_TYPES.input,
158
146
  layout: null,
159
147
  triggers: [_types.Triggers.OnDateChange],
160
- StylesPanelSections: [_types.StylesPanelSections.Background, _types.StylesPanelSections.Borders, _types.StylesPanelSections.MarginsAndPaddings, _types.StylesPanelSections.Position, _types.StylesPanelSections.Size, _types.StylesPanelSections.Typography],
161
148
  props: { ...SEED_DATA_PROPS,
162
149
  type: {
163
150
  label: "Appearance",
@@ -12,7 +12,7 @@ const SEED_DATA = [{
12
12
  tag: "Stepper",
13
13
  description: "A component used to control the quantity of something",
14
14
  category: _types.COMPONENT_TYPES.control,
15
- stylesPanelSections: _types.BLOCK_STYLES_SECTIONS,
15
+ stylesPanelSections: [_types.StylesPanelSections.Typography, ..._types.BLOCK_STYLES_SECTIONS],
16
16
  layout: {},
17
17
  triggers: [_types.Triggers.OnChange],
18
18
  props: {
@@ -67,6 +67,17 @@ const SEED_DATA = {
67
67
  formType: _types.FORM_TYPES.boolean,
68
68
  propType: _types.PROP_TYPES.BOOLEAN
69
69
  },
70
+ blurOnSubmit: {
71
+ group: _types.GROUPS.advanced,
72
+ label: "Blur On Submit",
73
+ description: "If true, the text field will blur when submitted. ",
74
+ editable: true,
75
+ required: false,
76
+ defaultValue: null,
77
+ formType: _types.FORM_TYPES.boolean,
78
+ propType: _types.PROP_TYPES.BOOLEAN
79
+ },
80
+ disabled: (0, _types.createDisabledProp)(),
70
81
  caretHidden: {
71
82
  group: _types.GROUPS.advanced,
72
83
  label: "Hide Caret",
@@ -88,12 +99,12 @@ const SEED_DATA = {
88
99
  propType: _types.PROP_TYPES.BOOLEAN
89
100
  },
90
101
  editable: {
91
- group: _types.GROUPS.advanced,
92
- label: "Editable",
102
+ group: _types.GROUPS.data,
103
+ label: "Editable?",
93
104
  description: "If false, the text is not editable",
94
105
  editable: true,
95
106
  required: false,
96
- defaultValue: true,
107
+ defaultValue: null,
97
108
  formType: _types.FORM_TYPES.boolean,
98
109
  propType: _types.PROP_TYPES.BOOLEAN
99
110
  },
@@ -24,7 +24,7 @@ const SEED_DATA_PROPS = {
24
24
  description: "Can automatically capitalize sentences, words, and characters (Default: none).",
25
25
  editable: true,
26
26
  required: false,
27
- defaultValue: null,
27
+ defaultValue: "none",
28
28
  options: ["none", "sentences", "words", "characters"],
29
29
  formType: _types.FORM_TYPES.flatArray,
30
30
  propType: _types.PROP_TYPES.STRING
@@ -70,7 +70,7 @@ const SEED_DATA_PROPS = {
70
70
  propType: _types.PROP_TYPES.BOOLEAN
71
71
  },
72
72
  disabled: {
73
- group: _types.GROUPS.basic,
73
+ group: _types.GROUPS.data,
74
74
  label: "Disabled",
75
75
  description: "Whether the input should be disabled. Will prevent input and show a greyed out state.",
76
76
  formType: _types.FORM_TYPES.boolean,
@@ -80,12 +80,22 @@ const SEED_DATA_PROPS = {
80
80
  required: false
81
81
  },
82
82
  editable: {
83
- group: _types.GROUPS.advanced,
84
- label: "Editable",
83
+ group: _types.GROUPS.data,
84
+ label: "Editable?",
85
85
  description: "If false, the text is not editable",
86
86
  editable: true,
87
87
  required: false,
88
- defaultValue: true,
88
+ defaultValue: null,
89
+ formType: _types.FORM_TYPES.boolean,
90
+ propType: _types.PROP_TYPES.BOOLEAN
91
+ },
92
+ blurOnSubmit: {
93
+ group: _types.GROUPS.advanced,
94
+ label: "Blur On Submit",
95
+ description: "If true, the text field will blur when submitted. ",
96
+ editable: true,
97
+ required: false,
98
+ defaultValue: null,
89
99
  formType: _types.FORM_TYPES.boolean,
90
100
  propType: _types.PROP_TYPES.BOOLEAN
91
101
  },
@@ -103,7 +103,7 @@ const SEED_DATA = [{
103
103
  description: "Can automatically capitalize sentences, words, and characters (Default: none).",
104
104
  editable: true,
105
105
  required: false,
106
- defaultValue: null,
106
+ defaultValue: "none",
107
107
  options: ["none", "sentences", "words", "characters"],
108
108
  formType: _types.FORM_TYPES.flatArray,
109
109
  propType: _types.PROP_TYPES.STRING
@@ -149,12 +149,12 @@ const SEED_DATA = [{
149
149
  propType: _types.PROP_TYPES.BOOLEAN
150
150
  },
151
151
  editable: {
152
- group: _types.GROUPS.advanced,
153
- label: "Editable",
152
+ group: _types.GROUPS.data,
153
+ label: "Editable?",
154
154
  description: "If false, the text is not editable",
155
155
  editable: true,
156
156
  required: false,
157
- defaultValue: true,
157
+ defaultValue: null,
158
158
  formType: _types.FORM_TYPES.boolean,
159
159
  propType: _types.PROP_TYPES.BOOLEAN
160
160
  },
@@ -223,6 +223,16 @@ const SEED_DATA = [{
223
223
  formType: _types.FORM_TYPES.string,
224
224
  propType: _types.PROP_TYPES.STRING
225
225
  },
226
+ blurOnSubmit: {
227
+ group: _types.GROUPS.advanced,
228
+ label: "Blur On Submit",
229
+ description: "If true, the text field will blur when submitted. ",
230
+ editable: true,
231
+ required: false,
232
+ defaultValue: null,
233
+ formType: _types.FORM_TYPES.boolean,
234
+ propType: _types.PROP_TYPES.BOOLEAN
235
+ },
226
236
  returnKeyType: {
227
237
  group: _types.GROUPS.advanced,
228
238
  label: "Return Key Type",
@@ -288,6 +298,7 @@ const SEED_DATA = [{
288
298
  formType: _types.FORM_TYPES.number,
289
299
  propType: _types.PROP_TYPES.NUMBER
290
300
  },
301
+ disabled: (0, _types.createDisabledProp)(),
291
302
  scrollEnabled: {
292
303
  group: _types.GROUPS.basic,
293
304
  label: "Scroll Enabled",
@@ -8,7 +8,6 @@ import { withTheme } from "../../theming";
8
8
  import Portal from "../Portal/Portal";
9
9
  import Touchable from "../Touchable";
10
10
  import DateTimePicker from "./DatePickerComponent";
11
- import { extractStyles } from "../../utilities";
12
11
  const AnimatedText = Animated.createAnimatedComponent(Text);
13
12
  const FOCUS_ANIMATION_DURATION = 150;
14
13
  const BLUR_ANIMATION_DURATION = 180;
@@ -36,11 +35,7 @@ const DatePicker = _ref => {
36
35
  rightIconName,
37
36
  leftIconMode = "inset",
38
37
  label,
39
- labelSize,
40
- labelColor,
41
38
  placeholder,
42
- borderColor: inputBorderColor,
43
- borderColorActive: inputBorderColorActive,
44
39
  ...props
45
40
  } = _ref;
46
41
  const [value, setValue] = React.useState(date || defaultValue);
@@ -57,9 +52,6 @@ const DatePicker = _ref => {
57
52
  measured: false,
58
53
  width: 0
59
54
  });
60
- const {
61
- textStyles
62
- } = extractStyles(style);
63
55
 
64
56
  const getValidDate = () => {
65
57
  if (!value) {
@@ -161,8 +153,8 @@ const DatePicker = _ref => {
161
153
 
162
154
  const MINIMIZED_LABEL_Y_OFFSET = -(typography.caption.lineHeight + 4);
163
155
  const OUTLINE_MINIMIZED_LABEL_Y_OFFSET = -(16 * 0.5 + 4);
164
- const MAXIMIZED_LABEL_FONT_SIZE = (textStyles === null || textStyles === void 0 ? void 0 : textStyles.fontSize) || typography.subtitle1.fontSize;
165
- const MINIMIZED_LABEL_FONT_SIZE = labelSize ? labelSize : typography.caption.fontSize;
156
+ const MAXIMIZED_LABEL_FONT_SIZE = typography.subtitle1.fontSize;
157
+ const MINIMIZED_LABEL_FONT_SIZE = typography.caption.fontSize;
166
158
  const hasActiveOutline = focused;
167
159
  let inputTextColor, activeColor, underlineColor, borderColor, placeholderColor, containerStyle, backgroundColor, inputStyle;
168
160
  inputTextColor = colors.strong;
@@ -174,9 +166,9 @@ const DatePicker = _ref => {
174
166
  underlineColor = "transparent";
175
167
  backgroundColor = colors.divider;
176
168
  } else {
177
- activeColor = inputBorderColorActive || colors.primary;
178
- placeholderColor = borderColor = inputBorderColor || colors.light;
179
- underlineColor = inputBorderColor || colors.light;
169
+ activeColor = colors.primary;
170
+ placeholderColor = borderColor = colors.light;
171
+ underlineColor = colors.light;
180
172
  backgroundColor = colors.background;
181
173
  }
182
174
 
@@ -236,7 +228,6 @@ const DatePicker = _ref => {
236
228
  };
237
229
  const labelStyle = { ...typography.subtitle1,
238
230
  top: type === "solid" ? 16 : 0,
239
- fontFamily: textStyles === null || textStyles === void 0 ? void 0 : textStyles.fontFamily,
240
231
  left: leftIconName && leftIconMode === "inset" ? ICON_SIZE + (type === "solid" ? 16 : 12) : 0,
241
232
  transform: [{
242
233
  // Move label to top
@@ -260,7 +251,7 @@ const DatePicker = _ref => {
260
251
  };
261
252
  const inputStyles = [styles.input, inputStyle, type === "solid" ? {
262
253
  marginHorizontal: 12
263
- } : {}, textStyles]; // const render = (props) => <NativeTextInput {...props} />;
254
+ } : {}]; // const render = (props) => <NativeTextInput {...props} />;
264
255
 
265
256
  return /*#__PURE__*/React.createElement(View, {
266
257
  style: [styles.container, style]
@@ -306,7 +297,7 @@ const DatePicker = _ref => {
306
297
  style: [styles.placeholder, type === "solid" ? {
307
298
  paddingHorizontal: 12
308
299
  } : {}, labelStyle, {
309
- color: labelColor || colors.light,
300
+ color: colors.light,
310
301
  opacity: labeled.interpolate({
311
302
  inputRange: [0, 1],
312
303
  outputRange: [hasActiveOutline ? 1 : 0, 0]
@@ -317,7 +308,7 @@ const DatePicker = _ref => {
317
308
  style: [styles.placeholder, type === "solid" ? {
318
309
  paddingHorizontal: 12
319
310
  } : {}, labelStyle, {
320
- color: labelColor || placeholder,
311
+ color: placeholderColor,
321
312
  opacity: hasActiveOutline ? labeled : 1
322
313
  }],
323
314
  numberOfLines: 1
@@ -261,7 +261,6 @@ const Picker = _ref => {
261
261
  );
262
262
  };
263
263
 
264
- export default withTheme(Picker);
265
264
  const styles = StyleSheet.create({
266
265
  marginsContainer: {
267
266
  alignSelf: "stretch",
@@ -331,4 +330,5 @@ const styles = StyleSheet.create({
331
330
  maxWidth: deviceWidth,
332
331
  maxHeight: deviceHeight
333
332
  }
334
- });
333
+ });
334
+ export default withTheme(Picker);
@@ -3,6 +3,7 @@ import { View, Text } from "react-native";
3
3
  import { isNumber } from "lodash";
4
4
  import { withTheme } from "../theming";
5
5
  import IconButton from "./IconButton";
6
+ import { extractStyles } from "../utilities";
6
7
 
7
8
  const Stepper = _ref => {
8
9
  let {
@@ -11,7 +12,6 @@ const Stepper = _ref => {
11
12
  value: valueProp,
12
13
  defaultValue,
13
14
  style,
14
- typeStyle,
15
15
  iconSize = 24,
16
16
  iconColor,
17
17
  onChange,
@@ -21,6 +21,10 @@ const Stepper = _ref => {
21
21
  },
22
22
  Icon
23
23
  } = _ref;
24
+ const {
25
+ viewStyles,
26
+ textStyles
27
+ } = extractStyles(style);
24
28
  const [value, setValue] = useState(defaultValue !== null && defaultValue !== void 0 ? defaultValue : 0);
25
29
 
26
30
  const isValidValue = valueArg => valueArg >= min && valueArg <= max;
@@ -43,7 +47,7 @@ const Stepper = _ref => {
43
47
  return /*#__PURE__*/React.createElement(View, {
44
48
  style: [{
45
49
  flexDirection: "row"
46
- }, style]
50
+ }, viewStyles]
47
51
  }, /*#__PURE__*/React.createElement(IconButton, {
48
52
  Icon: Icon,
49
53
  icon: "MaterialIcons/remove",
@@ -60,7 +64,7 @@ const Stepper = _ref => {
60
64
  alignSelf: "center",
61
65
  color: colors.medium,
62
66
  marginHorizontal: 8
63
- }, typeStyle]
67
+ }, textStyles]
64
68
  }, value), /*#__PURE__*/React.createElement(IconButton, {
65
69
  Icon: Icon,
66
70
  icon: "MaterialIcons/add",
@@ -11,10 +11,14 @@ class Text extends React.Component {
11
11
  super(...arguments);
12
12
 
13
13
  _defineProperty(this, "_root", void 0);
14
+
15
+ _defineProperty(this, "state", {
16
+ nativeProps: {}
17
+ });
14
18
  }
15
19
 
16
20
  setNativeProps(args) {
17
- return this._root && this._root.setNativeProps(args);
21
+ this.state.nativeProps = args || {};
18
22
  }
19
23
 
20
24
  render() {
@@ -23,7 +27,7 @@ class Text extends React.Component {
23
27
  ...rest
24
28
  } = this.props;
25
29
  const writingDirection = I18nManager.isRTL ? "rtl" : "ltr";
26
- return /*#__PURE__*/React.createElement(NativeText, _extends({}, rest, {
30
+ return /*#__PURE__*/React.createElement(NativeText, _extends({}, rest, this.state.nativeProps, {
27
31
  ref: c => {
28
32
  this._root = c;
29
33
  },