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