@draftbit/core 44.2.3-9cbaf6.2 → 46.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (654) hide show
  1. package/lib/commonjs/Provider.js.map +1 -1
  2. package/lib/commonjs/components/Accordion/AccordionGroup.js.map +1 -1
  3. package/lib/commonjs/components/Accordion/AccordionItem.js +5 -21
  4. package/lib/commonjs/components/Accordion/AccordionItem.js.map +1 -1
  5. package/lib/commonjs/components/Accordion/index.js.map +1 -1
  6. package/lib/commonjs/components/ActionSheet/ActionSheet.js.map +1 -1
  7. package/lib/commonjs/components/ActionSheet/ActionSheetCancel.js.map +1 -1
  8. package/lib/commonjs/components/ActionSheet/ActionSheetItem.js.map +1 -1
  9. package/lib/commonjs/components/ActionSheet/index.js.map +1 -1
  10. package/lib/commonjs/components/AnimatedCircularProgress.js +1 -1
  11. package/lib/commonjs/components/AnimatedCircularProgress.js.map +1 -1
  12. package/lib/commonjs/components/AspectRatio.js +1 -1
  13. package/lib/commonjs/components/AspectRatio.js.map +1 -1
  14. package/lib/commonjs/components/AvatarEdit.js +1 -1
  15. package/lib/commonjs/components/AvatarEdit.js.map +1 -1
  16. package/lib/commonjs/components/Banner.js +1 -1
  17. package/lib/commonjs/components/Banner.js.map +1 -1
  18. package/lib/commonjs/components/Button.js +1 -1
  19. package/lib/commonjs/components/Button.js.map +1 -1
  20. package/lib/commonjs/components/Card.js.map +1 -1
  21. package/lib/commonjs/components/CardBlock.js +1 -1
  22. package/lib/commonjs/components/CardBlock.js.map +1 -1
  23. package/lib/commonjs/components/CardContainer.js +1 -1
  24. package/lib/commonjs/components/CardContainer.js.map +1 -1
  25. package/lib/commonjs/components/CardContainerRating.js +1 -1
  26. package/lib/commonjs/components/CardContainerRating.js.map +1 -1
  27. package/lib/commonjs/components/CardContainerShortImage.js +1 -1
  28. package/lib/commonjs/components/CardContainerShortImage.js.map +1 -1
  29. package/lib/commonjs/components/CardInline.js.map +1 -1
  30. package/lib/commonjs/components/Carousel.js +1 -1
  31. package/lib/commonjs/components/Carousel.js.map +1 -1
  32. package/lib/commonjs/components/Checkbox/Checkbox.js +1 -1
  33. package/lib/commonjs/components/Checkbox/Checkbox.js.map +1 -1
  34. package/lib/commonjs/components/Checkbox/CheckboxGroup.js +1 -1
  35. package/lib/commonjs/components/Checkbox/CheckboxGroup.js.map +1 -1
  36. package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js +1 -1
  37. package/lib/commonjs/components/Checkbox/CheckboxGroupRow.js.map +1 -1
  38. package/lib/commonjs/components/Checkbox/CheckboxRow.js +1 -1
  39. package/lib/commonjs/components/Checkbox/CheckboxRow.js.map +1 -1
  40. package/lib/commonjs/components/Checkbox/context.js.map +1 -1
  41. package/lib/commonjs/components/Checkbox/index.js.map +1 -1
  42. package/lib/commonjs/components/CircleImage.js +1 -1
  43. package/lib/commonjs/components/CircleImage.js.map +1 -1
  44. package/lib/commonjs/components/CircularProgress.js.map +1 -1
  45. package/lib/commonjs/components/Config.js.map +1 -1
  46. package/lib/commonjs/components/Container.js +1 -1
  47. package/lib/commonjs/components/Container.js.map +1 -1
  48. package/lib/commonjs/components/DatePicker/DatePicker.js +1 -1
  49. package/lib/commonjs/components/DatePicker/DatePicker.js.map +1 -1
  50. package/lib/commonjs/components/DatePicker/DatePickerComponent.js.map +1 -1
  51. package/lib/commonjs/components/DatePicker/DatePickerComponent.web.js.map +1 -1
  52. package/lib/commonjs/components/DatePicker/DatePickerComponentType.js.map +1 -1
  53. package/lib/commonjs/components/DeprecatedButton.js +1 -1
  54. package/lib/commonjs/components/DeprecatedButton.js.map +1 -1
  55. package/lib/commonjs/components/DeprecatedCardWrapper.js +1 -1
  56. package/lib/commonjs/components/DeprecatedCardWrapper.js.map +1 -1
  57. package/lib/commonjs/components/DeprecatedFAB.js +1 -1
  58. package/lib/commonjs/components/DeprecatedFAB.js.map +1 -1
  59. package/lib/commonjs/components/Divider.js +1 -1
  60. package/lib/commonjs/components/Divider.js.map +1 -1
  61. package/lib/commonjs/components/Elevation.js +1 -1
  62. package/lib/commonjs/components/Elevation.js.map +1 -1
  63. package/lib/commonjs/components/FAB.js +1 -1
  64. package/lib/commonjs/components/FAB.js.map +1 -1
  65. package/lib/commonjs/components/FieldSearchBarFull.js.map +1 -1
  66. package/lib/commonjs/components/FormRow.js +1 -1
  67. package/lib/commonjs/components/FormRow.js.map +1 -1
  68. package/lib/commonjs/components/Header.js.map +1 -1
  69. package/lib/commonjs/components/HeaderLarge.js.map +1 -1
  70. package/lib/commonjs/components/HeaderMedium.js.map +1 -1
  71. package/lib/commonjs/components/HeaderOverline.js.map +1 -1
  72. package/lib/commonjs/components/IconButton.js +1 -1
  73. package/lib/commonjs/components/IconButton.js.map +1 -1
  74. package/lib/commonjs/components/Image.js +1 -1
  75. package/lib/commonjs/components/Image.js.map +1 -1
  76. package/lib/commonjs/components/Justification.js +0 -3
  77. package/lib/commonjs/components/Justification.js.map +1 -1
  78. package/lib/commonjs/components/Layout.js +1 -1
  79. package/lib/commonjs/components/Layout.js.map +1 -1
  80. package/lib/commonjs/components/NumberInput.js +1 -1
  81. package/lib/commonjs/components/NumberInput.js.map +1 -1
  82. package/lib/commonjs/components/Picker/Picker.js.map +1 -1
  83. package/lib/commonjs/components/Picker/PickerComponent.android.js +1 -1
  84. package/lib/commonjs/components/Picker/PickerComponent.android.js.map +1 -1
  85. package/lib/commonjs/components/Picker/PickerComponent.ios.js +1 -1
  86. package/lib/commonjs/components/Picker/PickerComponent.ios.js.map +1 -1
  87. package/lib/commonjs/components/Picker/PickerComponent.web.js +1 -1
  88. package/lib/commonjs/components/Picker/PickerComponent.web.js.map +1 -1
  89. package/lib/commonjs/components/Picker/PickerTypes.js.map +1 -1
  90. package/lib/commonjs/components/Portal/Portal.js.map +1 -1
  91. package/lib/commonjs/components/Portal/PortalConsumer.js.map +1 -1
  92. package/lib/commonjs/components/Portal/PortalHost.js.map +1 -1
  93. package/lib/commonjs/components/Portal/PortalManager.js.map +1 -1
  94. package/lib/commonjs/components/ProgressBar.js +1 -1
  95. package/lib/commonjs/components/ProgressBar.js.map +1 -1
  96. package/lib/commonjs/components/ProgressCircle.js.map +1 -1
  97. package/lib/commonjs/components/ProgressIndicator.js.map +1 -1
  98. package/lib/commonjs/components/RadioButton/RadioButton.js +1 -1
  99. package/lib/commonjs/components/RadioButton/RadioButton.js.map +1 -1
  100. package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js +1 -1
  101. package/lib/commonjs/components/RadioButton/RadioButtonFieldGroup.js.map +1 -1
  102. package/lib/commonjs/components/RadioButton/RadioButtonGroup.js +1 -1
  103. package/lib/commonjs/components/RadioButton/RadioButtonGroup.js.map +1 -1
  104. package/lib/commonjs/components/RadioButton/RadioButtonRow.js +1 -1
  105. package/lib/commonjs/components/RadioButton/RadioButtonRow.js.map +1 -1
  106. package/lib/commonjs/components/RadioButton/context.js.map +1 -1
  107. package/lib/commonjs/components/RadioButton/index.js.map +1 -1
  108. package/lib/commonjs/components/ResizeMode.js +0 -3
  109. package/lib/commonjs/components/ResizeMode.js.map +1 -1
  110. package/lib/commonjs/components/Row.js.map +1 -1
  111. package/lib/commonjs/components/RowBodyIcon.js.map +1 -1
  112. package/lib/commonjs/components/RowHeadlineImageCaption.js.map +1 -1
  113. package/lib/commonjs/components/RowHeadlineImageIcon.js.map +1 -1
  114. package/lib/commonjs/components/ScreenContainer.js +1 -1
  115. package/lib/commonjs/components/ScreenContainer.js.map +1 -1
  116. package/lib/commonjs/components/Slider.js +1 -1
  117. package/lib/commonjs/components/Slider.js.map +1 -1
  118. package/lib/commonjs/components/StarRating.js +1 -1
  119. package/lib/commonjs/components/StarRating.js.map +1 -1
  120. package/lib/commonjs/components/StepIndicator.js.map +1 -1
  121. package/lib/commonjs/components/Stepper.js.map +1 -1
  122. package/lib/commonjs/components/Surface.js +1 -1
  123. package/lib/commonjs/components/Surface.js.map +1 -1
  124. package/lib/commonjs/components/Swiper/Swiper.js.map +1 -1
  125. package/lib/commonjs/components/Swiper/SwiperItem.js.map +1 -1
  126. package/lib/commonjs/components/Swiper/index.js.map +1 -1
  127. package/lib/commonjs/components/Switch.js +1 -1
  128. package/lib/commonjs/components/Switch.js.map +1 -1
  129. package/lib/commonjs/components/Text.js +1 -1
  130. package/lib/commonjs/components/Text.js.map +1 -1
  131. package/lib/commonjs/components/TextField.js +1 -1
  132. package/lib/commonjs/components/TextField.js.map +1 -1
  133. package/lib/commonjs/components/ToggleButton.js +1 -1
  134. package/lib/commonjs/components/ToggleButton.js.map +1 -1
  135. package/lib/commonjs/components/Touchable.js +1 -1
  136. package/lib/commonjs/components/Touchable.js.map +1 -1
  137. package/lib/commonjs/components/Touchable.web.js.map +1 -1
  138. package/lib/commonjs/components/Typography.js.map +1 -1
  139. package/lib/commonjs/components/useAuthState.js.map +1 -1
  140. package/lib/commonjs/constants.js.map +1 -1
  141. package/lib/commonjs/hooks.js.map +1 -1
  142. package/lib/commonjs/index.js +0 -14
  143. package/lib/commonjs/index.js.map +1 -1
  144. package/lib/commonjs/interfaces/Icon.js.map +1 -1
  145. package/lib/commonjs/mappings/Accordion.js.map +1 -1
  146. package/lib/commonjs/mappings/AccordionItem.js.map +1 -1
  147. package/lib/commonjs/mappings/ActionSheet.js.map +1 -1
  148. package/lib/commonjs/mappings/ActionSheetCancel.js.map +1 -1
  149. package/lib/commonjs/mappings/ActionSheetItem.js.map +1 -1
  150. package/lib/commonjs/mappings/ActivityIndicator.js.map +1 -1
  151. package/lib/commonjs/mappings/AudioPlayer.js.map +1 -1
  152. package/lib/commonjs/mappings/AvatarEdit.js.map +1 -1
  153. package/lib/commonjs/mappings/Banner.js.map +1 -1
  154. package/lib/commonjs/mappings/BlurView.js.map +1 -1
  155. package/lib/commonjs/mappings/Button.js.map +1 -1
  156. package/lib/commonjs/mappings/Card.js.map +1 -1
  157. package/lib/commonjs/mappings/CardBlock.js.map +1 -1
  158. package/lib/commonjs/mappings/CardContainer.js.map +1 -1
  159. package/lib/commonjs/mappings/CardContainerRating.js.map +1 -1
  160. package/lib/commonjs/mappings/CardContainerShortImage.js.map +1 -1
  161. package/lib/commonjs/mappings/CardInline.js.map +1 -1
  162. package/lib/commonjs/mappings/Carousel.js.map +1 -1
  163. package/lib/commonjs/mappings/Checkbox.js.map +1 -1
  164. package/lib/commonjs/mappings/CheckboxGroup.js.map +1 -1
  165. package/lib/commonjs/mappings/CheckboxRow.js.map +1 -1
  166. package/lib/commonjs/mappings/CircleImage.js.map +1 -1
  167. package/lib/commonjs/mappings/Container.js.map +1 -1
  168. package/lib/commonjs/mappings/CustomCode.js.map +1 -1
  169. package/lib/commonjs/mappings/DatePicker.js.map +1 -1
  170. package/lib/commonjs/mappings/Divider.js.map +1 -1
  171. package/lib/commonjs/mappings/FAB.js.map +1 -1
  172. package/lib/commonjs/mappings/Fetch.js.map +1 -1
  173. package/lib/commonjs/mappings/FieldSearchBarFull.js.map +1 -1
  174. package/lib/commonjs/mappings/FlatList.js.map +1 -1
  175. package/lib/commonjs/mappings/HeaderLarge.js.map +1 -1
  176. package/lib/commonjs/mappings/HeaderMedium.js.map +1 -1
  177. package/lib/commonjs/mappings/HeaderOverline.js.map +1 -1
  178. package/lib/commonjs/mappings/Icon.js.map +1 -1
  179. package/lib/commonjs/mappings/IconButton.js.map +1 -1
  180. package/lib/commonjs/mappings/Image.js.map +1 -1
  181. package/lib/commonjs/mappings/ImageBackground.js.map +1 -1
  182. package/lib/commonjs/mappings/KeyboardAvoidingView.js.map +1 -1
  183. package/lib/commonjs/mappings/KeyboardAwareScrollView.js.map +1 -1
  184. package/lib/commonjs/mappings/Layout.js.map +1 -1
  185. package/lib/commonjs/mappings/LinearGradient.js.map +1 -1
  186. package/lib/commonjs/mappings/MapCallout.js.map +1 -1
  187. package/lib/commonjs/mappings/MapMarker.js.map +1 -1
  188. package/lib/commonjs/mappings/MapView.js.map +1 -1
  189. package/lib/commonjs/mappings/Modal.js.map +1 -1
  190. package/lib/commonjs/mappings/Picker.js.map +1 -1
  191. package/lib/commonjs/mappings/ProgressBar.js.map +1 -1
  192. package/lib/commonjs/mappings/ProgressCircle.js.map +1 -1
  193. package/lib/commonjs/mappings/ProgressIndicator.js.map +1 -1
  194. package/lib/commonjs/mappings/RadioButton.js.map +1 -1
  195. package/lib/commonjs/mappings/RadioButtonGroup.js.map +1 -1
  196. package/lib/commonjs/mappings/RadioButtonRow.js.map +1 -1
  197. package/lib/commonjs/mappings/RowBodyIcon.js.map +1 -1
  198. package/lib/commonjs/mappings/RowHeadlineImageCaption.js.map +1 -1
  199. package/lib/commonjs/mappings/RowHeadlineImageIcon.js.map +1 -1
  200. package/lib/commonjs/mappings/SafeAreaView.js.map +1 -1
  201. package/lib/commonjs/mappings/ScrollView.js.map +1 -1
  202. package/lib/commonjs/mappings/Slider.js.map +1 -1
  203. package/lib/commonjs/mappings/StarRating.js.map +1 -1
  204. package/lib/commonjs/mappings/Stepper.js.map +1 -1
  205. package/lib/commonjs/mappings/Surface.js.map +1 -1
  206. package/lib/commonjs/mappings/Swiper.js.map +1 -1
  207. package/lib/commonjs/mappings/SwiperItem.js.map +1 -1
  208. package/lib/commonjs/mappings/Switch.js.map +1 -1
  209. package/lib/commonjs/mappings/Text.js.map +1 -1
  210. package/lib/commonjs/mappings/TextArea.js.map +1 -1
  211. package/lib/commonjs/mappings/TextField.js.map +1 -1
  212. package/lib/commonjs/mappings/TextInput.js.map +1 -1
  213. package/lib/commonjs/mappings/ToggleButton.js.map +1 -1
  214. package/lib/commonjs/mappings/Touchable.js.map +1 -1
  215. package/lib/commonjs/mappings/Video.js.map +1 -1
  216. package/lib/commonjs/mappings/View.js.map +1 -1
  217. package/lib/commonjs/mappings/WebView.js.map +1 -1
  218. package/lib/commonjs/styles/DarkTheme.js.map +1 -1
  219. package/lib/commonjs/styles/DefaultTheme.js.map +1 -1
  220. package/lib/commonjs/styles/fonts.js.map +1 -1
  221. package/lib/commonjs/styles/overlay.js.map +1 -1
  222. package/lib/commonjs/styles/shadow.js.map +1 -1
  223. package/lib/commonjs/theming.js.map +1 -1
  224. package/lib/commonjs/utilities.js.map +1 -1
  225. package/lib/module/Provider.js.map +1 -1
  226. package/lib/module/components/Accordion/AccordionGroup.js.map +1 -1
  227. package/lib/module/components/Accordion/AccordionItem.js +1 -1
  228. package/lib/module/components/Accordion/AccordionItem.js.map +1 -1
  229. package/lib/module/components/Accordion/index.js.map +1 -1
  230. package/lib/module/components/ActionSheet/ActionSheet.js.map +1 -1
  231. package/lib/module/components/ActionSheet/ActionSheetCancel.js.map +1 -1
  232. package/lib/module/components/ActionSheet/ActionSheetItem.js.map +1 -1
  233. package/lib/module/components/ActionSheet/index.js.map +1 -1
  234. package/lib/module/components/AnimatedCircularProgress.js +1 -1
  235. package/lib/module/components/AnimatedCircularProgress.js.map +1 -1
  236. package/lib/module/components/AspectRatio.js +1 -1
  237. package/lib/module/components/AspectRatio.js.map +1 -1
  238. package/lib/module/components/AvatarEdit.js +1 -1
  239. package/lib/module/components/AvatarEdit.js.map +1 -1
  240. package/lib/module/components/Banner.js +1 -1
  241. package/lib/module/components/Banner.js.map +1 -1
  242. package/lib/module/components/Button.js +1 -1
  243. package/lib/module/components/Button.js.map +1 -1
  244. package/lib/module/components/Card.js.map +1 -1
  245. package/lib/module/components/CardBlock.js +1 -1
  246. package/lib/module/components/CardBlock.js.map +1 -1
  247. package/lib/module/components/CardContainer.js +1 -1
  248. package/lib/module/components/CardContainer.js.map +1 -1
  249. package/lib/module/components/CardContainerRating.js +1 -1
  250. package/lib/module/components/CardContainerRating.js.map +1 -1
  251. package/lib/module/components/CardContainerShortImage.js +1 -1
  252. package/lib/module/components/CardContainerShortImage.js.map +1 -1
  253. package/lib/module/components/CardInline.js.map +1 -1
  254. package/lib/module/components/Carousel.js +5 -20
  255. package/lib/module/components/Carousel.js.map +1 -1
  256. package/lib/module/components/Checkbox/Checkbox.js +1 -1
  257. package/lib/module/components/Checkbox/Checkbox.js.map +1 -1
  258. package/lib/module/components/Checkbox/CheckboxGroup.js +1 -1
  259. package/lib/module/components/Checkbox/CheckboxGroup.js.map +1 -1
  260. package/lib/module/components/Checkbox/CheckboxGroupRow.js +1 -1
  261. package/lib/module/components/Checkbox/CheckboxGroupRow.js.map +1 -1
  262. package/lib/module/components/Checkbox/CheckboxRow.js +1 -1
  263. package/lib/module/components/Checkbox/CheckboxRow.js.map +1 -1
  264. package/lib/module/components/Checkbox/context.js.map +1 -1
  265. package/lib/module/components/Checkbox/index.js.map +1 -1
  266. package/lib/module/components/CircleImage.js +1 -1
  267. package/lib/module/components/CircleImage.js.map +1 -1
  268. package/lib/module/components/CircularProgress.js.map +1 -1
  269. package/lib/module/components/Config.js.map +1 -1
  270. package/lib/module/components/Container.js +1 -1
  271. package/lib/module/components/Container.js.map +1 -1
  272. package/lib/module/components/DatePicker/DatePicker.js +1 -1
  273. package/lib/module/components/DatePicker/DatePicker.js.map +1 -1
  274. package/lib/module/components/DatePicker/DatePickerComponent.js.map +1 -1
  275. package/lib/module/components/DatePicker/DatePickerComponent.web.js.map +1 -1
  276. package/lib/module/components/DatePicker/DatePickerComponentType.js.map +1 -1
  277. package/lib/module/components/DeprecatedButton.js +1 -1
  278. package/lib/module/components/DeprecatedButton.js.map +1 -1
  279. package/lib/module/components/DeprecatedCardWrapper.js +1 -1
  280. package/lib/module/components/DeprecatedCardWrapper.js.map +1 -1
  281. package/lib/module/components/DeprecatedFAB.js +1 -1
  282. package/lib/module/components/DeprecatedFAB.js.map +1 -1
  283. package/lib/module/components/Divider.js +1 -1
  284. package/lib/module/components/Divider.js.map +1 -1
  285. package/lib/module/components/Elevation.js +1 -1
  286. package/lib/module/components/Elevation.js.map +1 -1
  287. package/lib/module/components/FAB.js +1 -1
  288. package/lib/module/components/FAB.js.map +1 -1
  289. package/lib/module/components/FieldSearchBarFull.js.map +1 -1
  290. package/lib/module/components/FormRow.js +1 -1
  291. package/lib/module/components/FormRow.js.map +1 -1
  292. package/lib/module/components/Header.js.map +1 -1
  293. package/lib/module/components/HeaderLarge.js.map +1 -1
  294. package/lib/module/components/HeaderMedium.js.map +1 -1
  295. package/lib/module/components/HeaderOverline.js.map +1 -1
  296. package/lib/module/components/IconButton.js +1 -1
  297. package/lib/module/components/IconButton.js.map +1 -1
  298. package/lib/module/components/Image.js +1 -1
  299. package/lib/module/components/Image.js.map +1 -1
  300. package/lib/module/components/Justification.js +1 -1
  301. package/lib/module/components/Justification.js.map +1 -1
  302. package/lib/module/components/Layout.js +1 -1
  303. package/lib/module/components/Layout.js.map +1 -1
  304. package/lib/module/components/NumberInput.js +1 -1
  305. package/lib/module/components/NumberInput.js.map +1 -1
  306. package/lib/module/components/Picker/Picker.js.map +1 -1
  307. package/lib/module/components/Picker/PickerComponent.android.js +1 -1
  308. package/lib/module/components/Picker/PickerComponent.android.js.map +1 -1
  309. package/lib/module/components/Picker/PickerComponent.ios.js +1 -1
  310. package/lib/module/components/Picker/PickerComponent.ios.js.map +1 -1
  311. package/lib/module/components/Picker/PickerComponent.web.js +1 -1
  312. package/lib/module/components/Picker/PickerComponent.web.js.map +1 -1
  313. package/lib/module/components/Picker/PickerTypes.js.map +1 -1
  314. package/lib/module/components/Portal/Portal.js.map +1 -1
  315. package/lib/module/components/Portal/PortalConsumer.js.map +1 -1
  316. package/lib/module/components/Portal/PortalHost.js.map +1 -1
  317. package/lib/module/components/Portal/PortalManager.js.map +1 -1
  318. package/lib/module/components/ProgressBar.js +1 -1
  319. package/lib/module/components/ProgressBar.js.map +1 -1
  320. package/lib/module/components/ProgressCircle.js.map +1 -1
  321. package/lib/module/components/ProgressIndicator.js.map +1 -1
  322. package/lib/module/components/RadioButton/RadioButton.js +1 -1
  323. package/lib/module/components/RadioButton/RadioButton.js.map +1 -1
  324. package/lib/module/components/RadioButton/RadioButtonFieldGroup.js +1 -1
  325. package/lib/module/components/RadioButton/RadioButtonFieldGroup.js.map +1 -1
  326. package/lib/module/components/RadioButton/RadioButtonGroup.js +1 -1
  327. package/lib/module/components/RadioButton/RadioButtonGroup.js.map +1 -1
  328. package/lib/module/components/RadioButton/RadioButtonRow.js +1 -1
  329. package/lib/module/components/RadioButton/RadioButtonRow.js.map +1 -1
  330. package/lib/module/components/RadioButton/context.js.map +1 -1
  331. package/lib/module/components/RadioButton/index.js.map +1 -1
  332. package/lib/module/components/ResizeMode.js +1 -1
  333. package/lib/module/components/ResizeMode.js.map +1 -1
  334. package/lib/module/components/Row.js.map +1 -1
  335. package/lib/module/components/RowBodyIcon.js.map +1 -1
  336. package/lib/module/components/RowHeadlineImageCaption.js.map +1 -1
  337. package/lib/module/components/RowHeadlineImageIcon.js.map +1 -1
  338. package/lib/module/components/ScreenContainer.js +1 -1
  339. package/lib/module/components/ScreenContainer.js.map +1 -1
  340. package/lib/module/components/Slider.js +1 -1
  341. package/lib/module/components/Slider.js.map +1 -1
  342. package/lib/module/components/StarRating.js +1 -1
  343. package/lib/module/components/StarRating.js.map +1 -1
  344. package/lib/module/components/StepIndicator.js.map +1 -1
  345. package/lib/module/components/Stepper.js.map +1 -1
  346. package/lib/module/components/Surface.js +1 -1
  347. package/lib/module/components/Surface.js.map +1 -1
  348. package/lib/module/components/Swiper/Swiper.js.map +1 -1
  349. package/lib/module/components/Swiper/SwiperItem.js.map +1 -1
  350. package/lib/module/components/Swiper/index.js.map +1 -1
  351. package/lib/module/components/Switch.js +1 -1
  352. package/lib/module/components/Switch.js.map +1 -1
  353. package/lib/module/components/Text.js +1 -1
  354. package/lib/module/components/Text.js.map +1 -1
  355. package/lib/module/components/TextField.js +1 -1
  356. package/lib/module/components/TextField.js.map +1 -1
  357. package/lib/module/components/ToggleButton.js +1 -1
  358. package/lib/module/components/ToggleButton.js.map +1 -1
  359. package/lib/module/components/Touchable.js +1 -1
  360. package/lib/module/components/Touchable.js.map +1 -1
  361. package/lib/module/components/Touchable.web.js.map +1 -1
  362. package/lib/module/components/Typography.js.map +1 -1
  363. package/lib/module/components/useAuthState.js.map +1 -1
  364. package/lib/module/constants.js.map +1 -1
  365. package/lib/module/hooks.js.map +1 -1
  366. package/lib/module/index.js +0 -1
  367. package/lib/module/index.js.map +1 -1
  368. package/lib/module/interfaces/Icon.js.map +1 -1
  369. package/lib/module/mappings/Accordion.js.map +1 -1
  370. package/lib/module/mappings/AccordionItem.js.map +1 -1
  371. package/lib/module/mappings/ActionSheet.js.map +1 -1
  372. package/lib/module/mappings/ActionSheetCancel.js.map +1 -1
  373. package/lib/module/mappings/ActionSheetItem.js.map +1 -1
  374. package/lib/module/mappings/ActivityIndicator.js.map +1 -1
  375. package/lib/module/mappings/AudioPlayer.js.map +1 -1
  376. package/lib/module/mappings/AvatarEdit.js.map +1 -1
  377. package/lib/module/mappings/Banner.js.map +1 -1
  378. package/lib/module/mappings/BlurView.js.map +1 -1
  379. package/lib/module/mappings/Button.js.map +1 -1
  380. package/lib/module/mappings/Card.js.map +1 -1
  381. package/lib/module/mappings/CardBlock.js.map +1 -1
  382. package/lib/module/mappings/CardContainer.js.map +1 -1
  383. package/lib/module/mappings/CardContainerRating.js.map +1 -1
  384. package/lib/module/mappings/CardContainerShortImage.js.map +1 -1
  385. package/lib/module/mappings/CardInline.js.map +1 -1
  386. package/lib/module/mappings/Carousel.js.map +1 -1
  387. package/lib/module/mappings/Checkbox.js.map +1 -1
  388. package/lib/module/mappings/CheckboxGroup.js.map +1 -1
  389. package/lib/module/mappings/CheckboxRow.js.map +1 -1
  390. package/lib/module/mappings/CircleImage.js.map +1 -1
  391. package/lib/module/mappings/Container.js.map +1 -1
  392. package/lib/module/mappings/CustomCode.js.map +1 -1
  393. package/lib/module/mappings/DatePicker.js.map +1 -1
  394. package/lib/module/mappings/Divider.js.map +1 -1
  395. package/lib/module/mappings/FAB.js.map +1 -1
  396. package/lib/module/mappings/Fetch.js.map +1 -1
  397. package/lib/module/mappings/FieldSearchBarFull.js.map +1 -1
  398. package/lib/module/mappings/FlatList.js.map +1 -1
  399. package/lib/module/mappings/HeaderLarge.js.map +1 -1
  400. package/lib/module/mappings/HeaderMedium.js.map +1 -1
  401. package/lib/module/mappings/HeaderOverline.js.map +1 -1
  402. package/lib/module/mappings/Icon.js.map +1 -1
  403. package/lib/module/mappings/IconButton.js.map +1 -1
  404. package/lib/module/mappings/Image.js.map +1 -1
  405. package/lib/module/mappings/ImageBackground.js.map +1 -1
  406. package/lib/module/mappings/KeyboardAvoidingView.js.map +1 -1
  407. package/lib/module/mappings/KeyboardAwareScrollView.js.map +1 -1
  408. package/lib/module/mappings/Layout.js.map +1 -1
  409. package/lib/module/mappings/LinearGradient.js.map +1 -1
  410. package/lib/module/mappings/MapCallout.js.map +1 -1
  411. package/lib/module/mappings/MapMarker.js.map +1 -1
  412. package/lib/module/mappings/MapView.js.map +1 -1
  413. package/lib/module/mappings/Modal.js.map +1 -1
  414. package/lib/module/mappings/Picker.js.map +1 -1
  415. package/lib/module/mappings/ProgressBar.js.map +1 -1
  416. package/lib/module/mappings/ProgressCircle.js.map +1 -1
  417. package/lib/module/mappings/ProgressIndicator.js.map +1 -1
  418. package/lib/module/mappings/RadioButton.js.map +1 -1
  419. package/lib/module/mappings/RadioButtonGroup.js.map +1 -1
  420. package/lib/module/mappings/RadioButtonRow.js.map +1 -1
  421. package/lib/module/mappings/RowBodyIcon.js.map +1 -1
  422. package/lib/module/mappings/RowHeadlineImageCaption.js.map +1 -1
  423. package/lib/module/mappings/RowHeadlineImageIcon.js.map +1 -1
  424. package/lib/module/mappings/SafeAreaView.js.map +1 -1
  425. package/lib/module/mappings/ScrollView.js.map +1 -1
  426. package/lib/module/mappings/Slider.js.map +1 -1
  427. package/lib/module/mappings/StarRating.js.map +1 -1
  428. package/lib/module/mappings/Stepper.js.map +1 -1
  429. package/lib/module/mappings/Surface.js.map +1 -1
  430. package/lib/module/mappings/Swiper.js.map +1 -1
  431. package/lib/module/mappings/SwiperItem.js.map +1 -1
  432. package/lib/module/mappings/Switch.js.map +1 -1
  433. package/lib/module/mappings/Text.js.map +1 -1
  434. package/lib/module/mappings/TextArea.js.map +1 -1
  435. package/lib/module/mappings/TextField.js.map +1 -1
  436. package/lib/module/mappings/TextInput.js.map +1 -1
  437. package/lib/module/mappings/ToggleButton.js.map +1 -1
  438. package/lib/module/mappings/Touchable.js.map +1 -1
  439. package/lib/module/mappings/Video.js.map +1 -1
  440. package/lib/module/mappings/View.js.map +1 -1
  441. package/lib/module/mappings/WebView.js.map +1 -1
  442. package/lib/module/styles/DarkTheme.js.map +1 -1
  443. package/lib/module/styles/DefaultTheme.js.map +1 -1
  444. package/lib/module/styles/fonts.js.map +1 -1
  445. package/lib/module/styles/overlay.js.map +1 -1
  446. package/lib/module/styles/shadow.js.map +1 -1
  447. package/lib/module/theming.js.map +1 -1
  448. package/lib/module/utilities.js.map +1 -1
  449. package/lib/typescript/src/index.d.ts +0 -1
  450. package/package.json +5 -7
  451. package/src/index.tsx +0 -1
  452. package/lib/commonjs/components/TabView/TabView.js +0 -103
  453. package/lib/commonjs/components/TabView/TabView.js.map +0 -1
  454. package/lib/commonjs/components/TabView/TabViewItem.js +0 -27
  455. package/lib/commonjs/components/TabView/TabViewItem.js.map +0 -1
  456. package/lib/commonjs/components/TabView/index.js +0 -24
  457. package/lib/commonjs/components/TabView/index.js.map +0 -1
  458. package/lib/commonjs/mappings/TabView.js +0 -80
  459. package/lib/commonjs/mappings/TabView.js.map +0 -1
  460. package/lib/module/components/TabView/TabView.js +0 -88
  461. package/lib/module/components/TabView/TabView.js.map +0 -1
  462. package/lib/module/components/TabView/TabViewItem.js +0 -19
  463. package/lib/module/components/TabView/TabViewItem.js.map +0 -1
  464. package/lib/module/components/TabView/index.js +0 -3
  465. package/lib/module/components/TabView/index.js.map +0 -1
  466. package/lib/module/mappings/TabView.js +0 -71
  467. package/lib/module/mappings/TabView.js.map +0 -1
  468. package/lib/typescript/src/components/TabView/TabView.d.ts +0 -19
  469. package/lib/typescript/src/components/TabView/TabViewItem.d.ts +0 -10
  470. package/lib/typescript/src/components/TabView/index.d.ts +0 -2
  471. package/lib/typescript/src/mappings/TabView.d.ts +0 -111
  472. package/src/Provider.js +0 -9
  473. package/src/components/Accordion/AccordionGroup.js +0 -44
  474. package/src/components/Accordion/AccordionItem.js +0 -32
  475. package/src/components/Accordion/index.js +0 -2
  476. package/src/components/ActionSheet/ActionSheet.js +0 -45
  477. package/src/components/ActionSheet/ActionSheetCancel.js +0 -6
  478. package/src/components/ActionSheet/ActionSheetItem.js +0 -30
  479. package/src/components/ActionSheet/index.js +0 -3
  480. package/src/components/AnimatedCircularProgress.js +0 -43
  481. package/src/components/AspectRatio.js +0 -18
  482. package/src/components/AvatarEdit.js +0 -30
  483. package/src/components/Banner.js +0 -109
  484. package/src/components/Button.js +0 -112
  485. package/src/components/Card.js +0 -57
  486. package/src/components/CardBlock.js +0 -54
  487. package/src/components/CardContainer.js +0 -69
  488. package/src/components/CardContainerRating.js +0 -79
  489. package/src/components/CardContainerShortImage.js +0 -33
  490. package/src/components/CardInline.js +0 -36
  491. package/src/components/Carousel.js +0 -66
  492. package/src/components/Checkbox/Checkbox.js +0 -63
  493. package/src/components/Checkbox/CheckboxGroup.js +0 -21
  494. package/src/components/Checkbox/CheckboxGroupRow.js +0 -77
  495. package/src/components/Checkbox/CheckboxRow.js +0 -78
  496. package/src/components/Checkbox/context.js +0 -14
  497. package/src/components/Checkbox/index.js +0 -3
  498. package/src/components/CircleImage.js +0 -8
  499. package/src/components/CircularProgress.js +0 -78
  500. package/src/components/Config.js +0 -63
  501. package/src/components/Container.js +0 -43
  502. package/src/components/DatePicker/DatePicker.js +0 -368
  503. package/src/components/DatePicker/DatePickerComponent.js +0 -13
  504. package/src/components/DatePicker/DatePickerComponent.web.js +0 -30
  505. package/src/components/DatePicker/DatePickerComponentType.js +0 -1
  506. package/src/components/DeprecatedButton.js +0 -95
  507. package/src/components/DeprecatedCardWrapper.js +0 -18
  508. package/src/components/DeprecatedFAB.js +0 -115
  509. package/src/components/Divider.js +0 -13
  510. package/src/components/Elevation.js +0 -20
  511. package/src/components/FAB.js +0 -46
  512. package/src/components/FieldSearchBarFull.js +0 -53
  513. package/src/components/FormRow.js +0 -19
  514. package/src/components/Header.js +0 -44
  515. package/src/components/HeaderLarge.js +0 -7
  516. package/src/components/HeaderMedium.js +0 -7
  517. package/src/components/HeaderOverline.js +0 -7
  518. package/src/components/IconButton.js +0 -35
  519. package/src/components/Image.js +0 -47
  520. package/src/components/Justification.js +0 -1
  521. package/src/components/Layout.js +0 -50
  522. package/src/components/NumberInput.js +0 -49
  523. package/src/components/Picker/Picker.js +0 -266
  524. package/src/components/Picker/PickerComponent.android.js +0 -68
  525. package/src/components/Picker/PickerComponent.ios.js +0 -78
  526. package/src/components/Picker/PickerComponent.web.js +0 -69
  527. package/src/components/Picker/PickerTypes.js +0 -1
  528. package/src/components/Portal/Portal.js +0 -35
  529. package/src/components/Portal/PortalConsumer.js +0 -28
  530. package/src/components/Portal/PortalHost.js +0 -105
  531. package/src/components/Portal/PortalManager.js +0 -29
  532. package/src/components/ProgressBar.js +0 -118
  533. package/src/components/ProgressCircle.js +0 -13
  534. package/src/components/ProgressIndicator.js +0 -27
  535. package/src/components/RadioButton/RadioButton.js +0 -17
  536. package/src/components/RadioButton/RadioButtonFieldGroup.js +0 -17
  537. package/src/components/RadioButton/RadioButtonGroup.js +0 -43
  538. package/src/components/RadioButton/RadioButtonRow.js +0 -76
  539. package/src/components/RadioButton/context.js +0 -14
  540. package/src/components/RadioButton/index.js +0 -4
  541. package/src/components/ResizeMode.js +0 -1
  542. package/src/components/Row.js +0 -48
  543. package/src/components/RowBodyIcon.js +0 -8
  544. package/src/components/RowHeadlineImageCaption.js +0 -12
  545. package/src/components/RowHeadlineImageIcon.js +0 -14
  546. package/src/components/ScreenContainer.js +0 -34
  547. package/src/components/Slider.js +0 -63
  548. package/src/components/StarRating.js +0 -50
  549. package/src/components/StepIndicator.js +0 -346
  550. package/src/components/Stepper.js +0 -39
  551. package/src/components/Surface.js +0 -32
  552. package/src/components/Swiper/Swiper.js +0 -29
  553. package/src/components/Swiper/SwiperItem.js +0 -9
  554. package/src/components/Swiper/index.js +0 -2
  555. package/src/components/Switch.js +0 -56
  556. package/src/components/TabView/TabView.js +0 -33
  557. package/src/components/TabView/TabView.tsx +0 -97
  558. package/src/components/TabView/TabViewItem.js +0 -5
  559. package/src/components/TabView/TabViewItem.tsx +0 -21
  560. package/src/components/TabView/index.js +0 -2
  561. package/src/components/TabView/index.ts +0 -2
  562. package/src/components/Text.js +0 -28
  563. package/src/components/TextField.js +0 -420
  564. package/src/components/ToggleButton.js +0 -39
  565. package/src/components/Touchable.js +0 -12
  566. package/src/components/Touchable.web.js +0 -2
  567. package/src/components/Typography.js +0 -36
  568. package/src/components/useAuthState.js +0 -31
  569. package/src/constants.js +0 -10
  570. package/src/hooks.js +0 -12
  571. package/src/index.js +0 -53
  572. package/src/interfaces/Icon.js +0 -8
  573. package/src/mappings/Accordion.js +0 -41
  574. package/src/mappings/AccordionItem.js +0 -16
  575. package/src/mappings/ActionSheet.js +0 -13
  576. package/src/mappings/ActionSheetCancel.js +0 -19
  577. package/src/mappings/ActionSheetItem.js +0 -23
  578. package/src/mappings/ActivityIndicator.js +0 -53
  579. package/src/mappings/AudioPlayer.js +0 -20
  580. package/src/mappings/AvatarEdit.js +0 -37
  581. package/src/mappings/Banner.js +0 -32
  582. package/src/mappings/BlurView.js +0 -41
  583. package/src/mappings/Button.js +0 -56
  584. package/src/mappings/Card.js +0 -52
  585. package/src/mappings/CardBlock.js +0 -122
  586. package/src/mappings/CardContainer.js +0 -102
  587. package/src/mappings/CardContainerRating.js +0 -124
  588. package/src/mappings/CardContainerShortImage.js +0 -118
  589. package/src/mappings/CardInline.js +0 -51
  590. package/src/mappings/Carousel.js +0 -18
  591. package/src/mappings/Checkbox.js +0 -45
  592. package/src/mappings/CheckboxGroup.js +0 -25
  593. package/src/mappings/CheckboxRow.js +0 -56
  594. package/src/mappings/CircleImage.js +0 -24
  595. package/src/mappings/Container.js +0 -29
  596. package/src/mappings/CustomCode.js +0 -8
  597. package/src/mappings/DatePicker.js +0 -147
  598. package/src/mappings/Divider.js +0 -26
  599. package/src/mappings/FAB.js +0 -36
  600. package/src/mappings/Fetch.js +0 -12
  601. package/src/mappings/FieldSearchBarFull.js +0 -49
  602. package/src/mappings/FlatList.js +0 -19
  603. package/src/mappings/HeaderLarge.js +0 -28
  604. package/src/mappings/HeaderMedium.js +0 -54
  605. package/src/mappings/HeaderOverline.js +0 -54
  606. package/src/mappings/Icon.js +0 -25
  607. package/src/mappings/IconButton.js +0 -30
  608. package/src/mappings/Image.js +0 -15
  609. package/src/mappings/ImageBackground.js +0 -28
  610. package/src/mappings/KeyboardAvoidingView.js +0 -40
  611. package/src/mappings/KeyboardAwareScrollView.js +0 -49
  612. package/src/mappings/Layout.js +0 -195
  613. package/src/mappings/LinearGradient.js +0 -77
  614. package/src/mappings/MapCallout.js +0 -21
  615. package/src/mappings/MapMarker.js +0 -47
  616. package/src/mappings/MapView.js +0 -138
  617. package/src/mappings/Modal.js +0 -41
  618. package/src/mappings/Picker.js +0 -139
  619. package/src/mappings/ProgressBar.js +0 -100
  620. package/src/mappings/ProgressCircle.js +0 -108
  621. package/src/mappings/ProgressIndicator.js +0 -180
  622. package/src/mappings/RadioButton.js +0 -50
  623. package/src/mappings/RadioButtonGroup.js +0 -16
  624. package/src/mappings/RadioButtonRow.js +0 -37
  625. package/src/mappings/RowBodyIcon.js +0 -75
  626. package/src/mappings/RowHeadlineImageCaption.js +0 -167
  627. package/src/mappings/RowHeadlineImageIcon.js +0 -99
  628. package/src/mappings/SafeAreaView.js +0 -33
  629. package/src/mappings/ScrollView.js +0 -30
  630. package/src/mappings/Slider.js +0 -59
  631. package/src/mappings/StarRating.js +0 -42
  632. package/src/mappings/Stepper.js +0 -28
  633. package/src/mappings/Surface.js +0 -13
  634. package/src/mappings/Swiper.js +0 -60
  635. package/src/mappings/SwiperItem.js +0 -8
  636. package/src/mappings/Switch.js +0 -75
  637. package/src/mappings/TabView.js +0 -73
  638. package/src/mappings/TabView.ts +0 -80
  639. package/src/mappings/Text.js +0 -232
  640. package/src/mappings/TextArea.js +0 -52
  641. package/src/mappings/TextField.js +0 -158
  642. package/src/mappings/TextInput.js +0 -208
  643. package/src/mappings/ToggleButton.js +0 -45
  644. package/src/mappings/Touchable.js +0 -12
  645. package/src/mappings/Video.js +0 -74
  646. package/src/mappings/View.js +0 -206
  647. package/src/mappings/WebView.js +0 -18
  648. package/src/styles/DarkTheme.js +0 -26
  649. package/src/styles/DefaultTheme.js +0 -111
  650. package/src/styles/fonts.js +0 -62
  651. package/src/styles/overlay.js +0 -60
  652. package/src/styles/shadow.js +0 -51
  653. package/src/theming.js +0 -3
  654. package/src/utilities.js +0 -102
@@ -1,346 +0,0 @@
1
- // @ts-nocheck
2
- import React, { Component } from "react";
3
- import { View, Text, StyleSheet, Animated, TouchableWithoutFeedback, } from "react-native";
4
- const STEP_STATUS = {
5
- CURRENT: "current",
6
- FINISHED: "finished",
7
- UNFINISHED: "unfinished",
8
- };
9
- export default class StepIndicator extends Component {
10
- constructor(props) {
11
- super(props);
12
- const defaultStyles = {
13
- stepIndicatorSize: 30,
14
- currentStepIndicatorSize: 40,
15
- separatorStrokeWidth: 3,
16
- separatorStrokeUnfinishedWidth: 0,
17
- separatorStrokeFinishedWidth: 0,
18
- currentStepStrokeWidth: 5,
19
- stepStrokeWidth: 0,
20
- stepStrokeCurrentColor: "#4aae4f",
21
- stepStrokeFinishedColor: "#4aae4f",
22
- stepStrokeUnFinishedColor: "#4aae4f",
23
- separatorFinishedColor: "#4aae4f",
24
- separatorUnFinishedColor: "#a4d4a5",
25
- stepIndicatorFinishedColor: "#4aae4f",
26
- stepIndicatorUnFinishedColor: "#a4d4a5",
27
- stepIndicatorCurrentColor: "#ffffff",
28
- stepIndicatorLabelFontSize: 15,
29
- currentStepIndicatorLabelFontSize: 15,
30
- stepIndicatorLabelCurrentColor: "#000000",
31
- stepIndicatorLabelFinishedColor: "#ffffff",
32
- stepIndicatorLabelUnFinishedColor: "rgba(255,255,255,0.5)",
33
- labelColor: "#000000",
34
- labelSize: 13,
35
- labelAlign: "center",
36
- currentStepLabelColor: "#4aae4f",
37
- };
38
- const customStyles = Object.assign(defaultStyles, props.customStyles);
39
- this.state = {
40
- width: 0,
41
- height: 1,
42
- progressBarSize: -2,
43
- customStyles,
44
- };
45
- this.progressAnim = new Animated.Value(0);
46
- this.sizeAnim = new Animated.Value(this.state.customStyles.stepIndicatorSize);
47
- this.borderRadiusAnim = new Animated.Value(this.state.customStyles.stepIndicatorSize / 2);
48
- }
49
- stepPressed(position) {
50
- if (this.props.onPress) {
51
- this.props.onPress(position);
52
- }
53
- }
54
- render() {
55
- const { labels, direction } = this.props;
56
- return (React.createElement(View, { style: [
57
- styles.container,
58
- direction === "vertical"
59
- ? { flexDirection: "row", flex: 1 }
60
- : { flexDirection: "column" },
61
- ] },
62
- this.state.width !== 0 && this.renderProgressBarBackground(),
63
- this.state.width !== 0 && this.renderProgressBar(),
64
- this.renderStepIndicator(),
65
- labels && this.renderStepLabels()));
66
- }
67
- componentDidUpdate(prevProps) {
68
- // if (prevProps.customStyles !== this.props.customStyles) {
69
- // this.setState((state) => ({
70
- // customStyles: Object.assign(
71
- // state.customStyles,
72
- // this.props.customStyles
73
- // ),
74
- // }));
75
- // }
76
- if (prevProps.currentPosition !== this.props.currentPosition) {
77
- this.onCurrentPositionChanged(this.props.currentPosition);
78
- }
79
- }
80
- renderProgressBarBackground = () => {
81
- const { stepCount, direction } = this.props;
82
- let progressBarBackgroundStyle;
83
- if (direction === "vertical") {
84
- progressBarBackgroundStyle = {
85
- backgroundColor: this.state.customStyles.separatorUnFinishedColor,
86
- position: "absolute",
87
- left: (this.state.width - this.state.customStyles.separatorStrokeWidth) / 2,
88
- top: this.state.height / (2 * stepCount),
89
- bottom: this.state.height / (2 * stepCount),
90
- width: this.state.customStyles.separatorStrokeUnfinishedWidth === 0
91
- ? this.state.customStyles.separatorStrokeWidth
92
- : this.state.customStyles.separatorStrokeUnfinishedWidth,
93
- };
94
- }
95
- else {
96
- progressBarBackgroundStyle = {
97
- backgroundColor: this.state.customStyles.separatorUnFinishedColor,
98
- position: "absolute",
99
- top: (this.state.height - this.state.customStyles.separatorStrokeWidth) /
100
- 2,
101
- left: this.state.width / (2 * stepCount),
102
- right: this.state.width / (2 * stepCount),
103
- height: this.state.customStyles.separatorStrokeUnfinishedWidth === 0
104
- ? this.state.customStyles.separatorStrokeWidth
105
- : this.state.customStyles.separatorStrokeUnfinishedWidth,
106
- };
107
- }
108
- return (React.createElement(View, { onLayout: (event) => {
109
- if (direction === "vertical") {
110
- this.setState({ progressBarSize: event.nativeEvent.layout.height }, () => {
111
- this.onCurrentPositionChanged(this.props.currentPosition);
112
- });
113
- }
114
- else {
115
- this.setState({ progressBarSize: event.nativeEvent.layout.width }, () => {
116
- this.onCurrentPositionChanged(this.props.currentPosition);
117
- });
118
- }
119
- }, style: progressBarBackgroundStyle }));
120
- };
121
- renderProgressBar = () => {
122
- const { stepCount, direction } = this.props;
123
- let progressBarStyle;
124
- if (direction === "vertical") {
125
- progressBarStyle = {
126
- backgroundColor: this.state.customStyles.separatorFinishedColor,
127
- position: "absolute",
128
- left: (this.state.width - this.state.customStyles.separatorStrokeWidth) / 2,
129
- top: this.state.height / (2 * stepCount),
130
- bottom: this.state.height / (2 * stepCount),
131
- width: this.state.customStyles.separatorStrokeFinishedWidth === 0
132
- ? this.state.customStyles.separatorStrokeWidth
133
- : this.state.customStyles.separatorStrokeFinishedWidth,
134
- height: this.progressAnim,
135
- };
136
- }
137
- else {
138
- progressBarStyle = {
139
- backgroundColor: this.state.customStyles.separatorFinishedColor,
140
- position: "absolute",
141
- top: (this.state.height - this.state.customStyles.separatorStrokeWidth) /
142
- 2,
143
- left: this.state.width / (2 * stepCount),
144
- right: this.state.width / (2 * stepCount),
145
- height: this.state.customStyles.separatorStrokeFinishedWidth === 0
146
- ? this.state.customStyles.separatorStrokeWidth
147
- : this.state.customStyles.separatorStrokeFinishedWidth,
148
- width: this.progressAnim,
149
- };
150
- }
151
- return React.createElement(Animated.View, { style: progressBarStyle });
152
- };
153
- renderStepIndicator = () => {
154
- let steps = [];
155
- const { stepCount, direction } = this.props;
156
- for (let position = 0; position < stepCount; position++) {
157
- steps.push(React.createElement(TouchableWithoutFeedback, { key: position, onPress: () => this.stepPressed(position) },
158
- React.createElement(View, { style: [
159
- styles.stepContainer,
160
- direction === "vertical"
161
- ? { flexDirection: "column" }
162
- : { flexDirection: "row" },
163
- ] }, this.renderStep(position))));
164
- }
165
- return (React.createElement(View, { onLayout: (event) => this.setState({
166
- width: event.nativeEvent.layout.width,
167
- height: event.nativeEvent.layout.height,
168
- }), style: [
169
- styles.stepIndicatorContainer,
170
- direction === "vertical"
171
- ? {
172
- flexDirection: "column",
173
- width: this.state.customStyles.currentStepIndicatorSize,
174
- }
175
- : {
176
- flexDirection: "row",
177
- height: this.state.customStyles.currentStepIndicatorSize,
178
- },
179
- ] }, steps));
180
- };
181
- renderStepLabels = () => {
182
- const { labels, direction, currentPosition, renderLabel } = this.props;
183
- var labelViews = labels.map((label, index) => {
184
- const selectedStepLabelStyle = index === currentPosition
185
- ? { color: this.state.customStyles.currentStepLabelColor }
186
- : { color: this.state.customStyles.labelColor };
187
- return (React.createElement(TouchableWithoutFeedback, { style: styles.stepLabelItem, key: index, onPress: () => this.stepPressed(index) },
188
- React.createElement(View, { style: styles.stepLabelItem }, renderLabel ? (renderLabel({
189
- position: index,
190
- stepStatus: this.getStepStatus(index),
191
- label,
192
- currentPosition,
193
- })) : (React.createElement(Text, { style: [
194
- styles.stepLabel,
195
- selectedStepLabelStyle,
196
- {
197
- fontSize: this.state.customStyles.labelSize,
198
- fontFamily: this.state.customStyles.labelFontFamily,
199
- },
200
- ] }, label)))));
201
- });
202
- return (React.createElement(View, { style: [
203
- styles.stepLabelsContainer,
204
- direction === "vertical"
205
- ? { flexDirection: "column", paddingHorizontal: 4 }
206
- : { flexDirection: "row", paddingVertical: 4 },
207
- { alignItems: this.state.customStyles.labelAlign },
208
- ] }, labelViews));
209
- };
210
- renderStep = (position) => {
211
- const { renderStepIndicator } = this.props;
212
- let stepStyle;
213
- let indicatorLabelStyle;
214
- switch (this.getStepStatus(position)) {
215
- case STEP_STATUS.CURRENT: {
216
- stepStyle = {
217
- backgroundColor: this.state.customStyles.stepIndicatorCurrentColor,
218
- borderWidth: this.state.customStyles.currentStepStrokeWidth,
219
- borderColor: this.state.customStyles.stepStrokeCurrentColor,
220
- height: this.sizeAnim,
221
- width: this.sizeAnim,
222
- borderRadius: this.borderRadiusAnim,
223
- };
224
- indicatorLabelStyle = {
225
- fontSize: this.state.customStyles.currentStepIndicatorLabelFontSize,
226
- color: this.state.customStyles.stepIndicatorLabelCurrentColor,
227
- };
228
- break;
229
- }
230
- case STEP_STATUS.FINISHED: {
231
- stepStyle = {
232
- backgroundColor: this.state.customStyles.stepIndicatorFinishedColor,
233
- borderWidth: this.state.customStyles.stepStrokeWidth,
234
- borderColor: this.state.customStyles.stepStrokeFinishedColor,
235
- height: this.state.customStyles.stepIndicatorSize,
236
- width: this.state.customStyles.stepIndicatorSize,
237
- borderRadius: this.state.customStyles.stepIndicatorSize / 2,
238
- };
239
- indicatorLabelStyle = {
240
- fontSize: this.state.customStyles.stepIndicatorLabelFontSize,
241
- color: this.state.customStyles.stepIndicatorLabelFinishedColor,
242
- };
243
- break;
244
- }
245
- case STEP_STATUS.UNFINISHED: {
246
- stepStyle = {
247
- backgroundColor: this.state.customStyles.stepIndicatorUnFinishedColor,
248
- borderWidth: this.state.customStyles.stepStrokeWidth,
249
- borderColor: this.state.customStyles.stepStrokeUnFinishedColor,
250
- height: this.state.customStyles.stepIndicatorSize,
251
- width: this.state.customStyles.stepIndicatorSize,
252
- borderRadius: this.state.customStyles.stepIndicatorSize / 2,
253
- };
254
- indicatorLabelStyle = {
255
- overflow: "hidden",
256
- fontSize: this.state.customStyles.stepIndicatorLabelFontSize,
257
- color: this.state.customStyles.stepIndicatorLabelUnFinishedColor,
258
- };
259
- break;
260
- }
261
- default:
262
- }
263
- return (React.createElement(Animated.View, { key: "step-indicator", style: [styles.step, stepStyle] }, renderStepIndicator ? (renderStepIndicator({
264
- position,
265
- stepStatus: this.getStepStatus(position),
266
- })) : (React.createElement(Text, { style: indicatorLabelStyle }, `${position + 1}`))));
267
- };
268
- getStepStatus = (stepPosition) => {
269
- const { currentPosition } = this.props;
270
- if (stepPosition === currentPosition) {
271
- return STEP_STATUS.CURRENT;
272
- }
273
- else if (stepPosition < currentPosition) {
274
- return STEP_STATUS.FINISHED;
275
- }
276
- else {
277
- return STEP_STATUS.UNFINISHED;
278
- }
279
- };
280
- onCurrentPositionChanged = (position) => {
281
- let { stepCount } = this.props;
282
- if (position > stepCount - 1) {
283
- position = stepCount - 1;
284
- }
285
- const animateToPosition = (this.state.progressBarSize / (stepCount - 1)) * position;
286
- this.sizeAnim.setValue(this.state.customStyles.stepIndicatorSize);
287
- this.borderRadiusAnim.setValue(this.state.customStyles.stepIndicatorSize / 2);
288
- Animated.sequence([
289
- Animated.timing(this.progressAnim, {
290
- toValue: animateToPosition,
291
- duration: 200,
292
- }),
293
- Animated.parallel([
294
- Animated.timing(this.sizeAnim, {
295
- toValue: this.state.customStyles.currentStepIndicatorSize,
296
- duration: 100,
297
- }),
298
- Animated.timing(this.borderRadiusAnim, {
299
- toValue: this.state.customStyles.currentStepIndicatorSize / 2,
300
- duration: 100,
301
- }),
302
- ]),
303
- ]).start();
304
- };
305
- }
306
- const styles = StyleSheet.create({
307
- container: {
308
- backgroundColor: "transparent",
309
- },
310
- stepIndicatorContainer: {
311
- flexDirection: "row",
312
- alignItems: "center",
313
- justifyContent: "space-around",
314
- backgroundColor: "transparent",
315
- },
316
- stepLabelsContainer: {
317
- justifyContent: "space-around",
318
- },
319
- step: {
320
- alignItems: "center",
321
- justifyContent: "center",
322
- zIndex: 2,
323
- },
324
- stepContainer: {
325
- flex: 1,
326
- flexDirection: "row",
327
- alignItems: "center",
328
- justifyContent: "center",
329
- },
330
- stepLabel: {
331
- fontSize: 12,
332
- textAlign: "center",
333
- fontWeight: "500",
334
- },
335
- stepLabelItem: {
336
- flex: 1,
337
- alignItems: "center",
338
- justifyContent: "center",
339
- },
340
- });
341
- StepIndicator.defaultProps = {
342
- currentPosition: 0,
343
- stepCount: 5,
344
- customStyles: {},
345
- direction: "horizontal",
346
- };
@@ -1,39 +0,0 @@
1
- import React, { useEffect, useState } from "react";
2
- import { View, Text } from "react-native";
3
- import { isNumber } from "lodash";
4
- import { withTheme } from "../theming";
5
- import IconButton from "./IconButton";
6
- const Stepper = ({ min = -Infinity, max = Infinity, value: valueProp, defaultValue, style, typeStyle, iconSize = 24, iconColor, onChange, theme: { colors, typography }, Icon, }) => {
7
- const [value, setValue] = useState(defaultValue ?? 0);
8
- const isValidValue = (valueArg) => valueArg >= min && valueArg <= max;
9
- const handlePlusOrMinus = (type) => {
10
- const newValue = type === "plus" ? value + 1 : value - 1;
11
- if (isValidValue(newValue)) {
12
- setValue(newValue);
13
- onChange?.(newValue);
14
- }
15
- };
16
- useEffect(() => {
17
- if (valueProp != null &&
18
- isNumber(valueProp) &&
19
- valueProp !== value &&
20
- isValidValue(valueProp)) {
21
- setValue(valueProp);
22
- }
23
- // eslint-disable-next-line react-hooks/exhaustive-deps
24
- }, [valueProp]);
25
- return (React.createElement(View, { style: [{ flexDirection: "row" }, style] },
26
- React.createElement(IconButton, { Icon: Icon, icon: "MaterialIcons/remove", onPress: () => handlePlusOrMinus("minus"), size: iconSize, color: iconColor, disabled: value === min, style: { opacity: value === min ? 0.5 : 1 } }),
27
- React.createElement(Text, { style: [
28
- typography.body1,
29
- {
30
- textAlign: "center",
31
- alignSelf: "center",
32
- color: colors.medium,
33
- marginHorizontal: 8,
34
- },
35
- typeStyle,
36
- ] }, value),
37
- React.createElement(IconButton, { Icon: Icon, icon: "MaterialIcons/add", onPress: () => handlePlusOrMinus("plus"), size: iconSize, color: iconColor, disabled: value === max, style: { opacity: value === max ? 0.5 : 1 } })));
38
- };
39
- export default withTheme(Stepper);
@@ -1,32 +0,0 @@
1
- /* Copied from https://github.com/callstack/react-native-paper/blob/main/src/components/Surface.tsx */
2
- import * as React from "react";
3
- import { Animated, StyleSheet, } from "react-native";
4
- import shadow from "../styles/shadow";
5
- import overlay from "../styles/overlay";
6
- import { withTheme } from "../theming";
7
- const Surface = ({ elevation: propElevation, style, theme, children, ...rest }) => {
8
- const { elevation: styleElevation = 3, backgroundColor, ...restStyle } = (StyleSheet.flatten(style) || {});
9
- const { dark: isDarkTheme, mode, colors } = theme;
10
- const elevation = propElevation || styleElevation;
11
- const evalationStyles = elevation ? shadow(elevation) : {};
12
- const getBackgroundColor = () => {
13
- if (backgroundColor) {
14
- return backgroundColor;
15
- }
16
- else if (isDarkTheme && mode === "adaptive") {
17
- return overlay(elevation, colors.surface);
18
- }
19
- else {
20
- return colors.surface;
21
- }
22
- };
23
- return (React.createElement(Animated.View, { ...rest, style: [
24
- {
25
- backgroundColor: getBackgroundColor(),
26
- elevation,
27
- ...evalationStyles,
28
- ...restStyle,
29
- },
30
- ] }, children));
31
- };
32
- export default withTheme(Surface);
@@ -1,29 +0,0 @@
1
- import React from "react";
2
- import { View } from "react-native";
3
- import SwiperComponent from "react-native-web-swiper";
4
- const Swiper = ({ vertical = false, loop = false, timeout = 0, from = 0, prevTitle = "", nextTitle = "", prevTitleColor, nextTitleColor, dotsTouchable = true, dotColor, dotActiveColor, data, keyExtractor, renderItem, children, style, }) => (React.createElement(View, { style: style },
5
- React.createElement(SwiperComponent, { from: from, loop: loop, timeout: timeout, vertical: vertical, controlsProps: {
6
- prevTitle,
7
- nextTitle,
8
- prevTitleStyle: { color: prevTitleColor },
9
- nextTitleStyle: { color: nextTitleColor },
10
- dotsTouchable,
11
- ...(dotColor
12
- ? { dotProps: { badgeStyle: { backgroundColor: dotColor } } }
13
- : {}),
14
- ...(dotActiveColor
15
- ? { dotActiveStyle: { backgroundColor: dotActiveColor } }
16
- : {}),
17
- } }, data && renderItem
18
- ? data.map((item, index) => {
19
- const component = renderItem({ item, index });
20
- if (!component) {
21
- return null;
22
- }
23
- const key = keyExtractor ? keyExtractor(item, index) : index;
24
- return React.cloneElement(component, {
25
- key,
26
- });
27
- })
28
- : children)));
29
- export default Swiper;
@@ -1,9 +0,0 @@
1
- import React from "react";
2
- import { View, StyleSheet } from "react-native";
3
- const styles = StyleSheet.create({
4
- wrapper: {
5
- flex: 1,
6
- },
7
- });
8
- const SwiperItem = ({ children, style }) => (React.createElement(View, { style: [styles.wrapper, style] }, children));
9
- export default SwiperItem;
@@ -1,2 +0,0 @@
1
- export { default as Swiper } from "./Swiper";
2
- export { default as SwiperItem } from "./SwiperItem";
@@ -1,56 +0,0 @@
1
- import * as React from "react";
2
- import { Switch as NativeSwitch, } from "react-native";
3
- import { withTheme } from "../theming";
4
- import FormRow from "./FormRow";
5
- import { RowDirection } from "@draftbit/types";
6
- import { usePrevious } from "../hooks";
7
- function Switch({ value, defaultValue, disabled, onValueChange, activeTrackColor, inactiveTrackColor, activeThumbColor, inactiveThumbColor, theme, style, ...rest }) {
8
- const activeTrackThemeColor = activeTrackColor || theme.colors.primary;
9
- const inactiveTrackThemeColor = inactiveTrackColor || "#EEE";
10
- const activeThumbThemeColor = activeThumbColor || "#FFF";
11
- const inactiveThumbThemeColor = inactiveThumbColor || "#FFF";
12
- const [checked, setChecked] = React.useState(value || defaultValue);
13
- React.useEffect(() => {
14
- if (value != null && value !== checked) {
15
- setChecked(value);
16
- }
17
- }, [value, checked]);
18
- // This special logic is to handle weird APIs like Airtable that return
19
- // true or undefined for a boolean
20
- const previousDefaultValue = usePrevious(defaultValue);
21
- React.useEffect(() => {
22
- if (defaultValue !== previousDefaultValue) {
23
- setChecked(Boolean(defaultValue));
24
- }
25
- }, [defaultValue, previousDefaultValue]);
26
- return (React.createElement(NativeSwitch, { value: checked, disabled: disabled, trackColor: {
27
- false: inactiveTrackThemeColor,
28
- true: activeTrackThemeColor,
29
- }, thumbColor: value ? activeThumbThemeColor : inactiveThumbThemeColor,
30
- // @ts-ignore react-native-web only
31
- activeThumbColor: activeThumbThemeColor, ios_backgroundColor: inactiveTrackThemeColor, style: style, onValueChange: (bool) => {
32
- setChecked(bool);
33
- onValueChange && onValueChange(bool);
34
- }, ...rest }));
35
- }
36
- function Row({ label = "Label", direction = RowDirection.Row, style, value, defaultValue, disabled, onValueChange, activeTrackColor, inactiveTrackColor, activeThumbColor, inactiveThumbColor, theme, ...rest }) {
37
- const [checked, setChecked] = React.useState(value != null ? value : defaultValue);
38
- React.useEffect(() => {
39
- if (value != null) {
40
- setChecked(value);
41
- }
42
- }, [value]);
43
- React.useEffect(() => {
44
- if (defaultValue != null) {
45
- setChecked(defaultValue);
46
- }
47
- }, [defaultValue]);
48
- return (React.createElement(FormRow, { disabled: disabled, onPress: () => {
49
- setChecked(!checked);
50
- onValueChange && onValueChange(!checked);
51
- }, label: label, direction: direction, style: style, ...rest },
52
- React.createElement(Switch, { theme: theme, value: checked, disabled: disabled, onValueChange: onValueChange, activeTrackColor: activeTrackColor, inactiveTrackColor: inactiveTrackColor, activeThumbColor: activeThumbColor, inactiveThumbColor: inactiveThumbColor })));
53
- }
54
- const SwitchRow = withTheme(Row);
55
- export { SwitchRow };
56
- export default withTheme(Switch);
@@ -1,33 +0,0 @@
1
- import * as React from "react";
2
- import { TabView, TabBar, SceneMap } from "react-native-tab-view";
3
- // import { withTheme } from "../../theming";
4
- import TabViewItem from "./TabViewItem";
5
- const TabViewComponent = ({ Icon, tabBarPosition, keyboardDismissMode, swipeEnabled, scrollEnabled, activeColor, inactiveColor, pressColor, indicatorColor, style, children, }) => {
6
- const [index, setIndex] = React.useState(0);
7
- const [routes, setRoutes] = React.useState([]);
8
- const [tabScenes, setTabScenes] = React.useState({});
9
- React.useEffect(() => {
10
- const newRoutes = [];
11
- const scenes = {};
12
- React.Children.toArray(children)
13
- .filter((child) => child.type === TabViewItem)
14
- .forEach((child) => {
15
- if (child?.props?.id) {
16
- newRoutes.push({
17
- key: child?.props?.id,
18
- ...child?.props,
19
- });
20
- scenes[child?.props?.id] = () => child;
21
- }
22
- });
23
- setRoutes(newRoutes);
24
- setTabScenes(scenes);
25
- }, [children]);
26
- const indexChangeHandler = (i) => setIndex(i);
27
- const renderTabBar = (props) => {
28
- console.log(props);
29
- return (React.createElement(TabBar, { ...props, activeColor: activeColor, inactiveColor: inactiveColor, pressColor: pressColor, scrollEnabled: scrollEnabled, indicatorStyle: { backgroundColor: indicatorColor }, renderIcon: ({ route, color }) => route?.icon ? (React.createElement(Icon, { name: route.icon, color: color, size: 36 })) : null, style: style }));
30
- };
31
- return (React.createElement(TabView, { navigationState: { index, routes }, renderScene: SceneMap(tabScenes), renderTabBar: renderTabBar, onIndexChange: indexChangeHandler, tabBarPosition: tabBarPosition, keyboardDismissMode: keyboardDismissMode, swipeEnabled: swipeEnabled }));
32
- };
33
- export default TabViewComponent;
@@ -1,97 +0,0 @@
1
- import * as React from "react";
2
- import { StyleProp, TextStyle, ViewStyle } from "react-native";
3
- import { TabView, TabBar, SceneMap } from "react-native-tab-view";
4
-
5
- // import { withTheme } from "../../theming";
6
- import TabViewItem from "./TabViewItem";
7
- import type { IconSlot } from "../../interfaces/Icon";
8
-
9
- type TabBarPosition = "top" | "bottom";
10
- type KeyboardDismissMode = "none" | "auto" | "on-drag";
11
-
12
- type TabViewProps = {
13
- tabBarPosition?: TabBarPosition;
14
- keyboardDismissMode?: KeyboardDismissMode;
15
- swipeEnabled?: boolean;
16
- scrollEnabled?: boolean;
17
- activeColor?: string;
18
- inactiveColor?: string;
19
- pressColor?: string;
20
- indicatorColor?: string;
21
- style?: StyleProp<TextStyle | ViewStyle>;
22
- children: React.ReactNode;
23
- } & IconSlot;
24
-
25
- const TabViewComponent = ({
26
- Icon,
27
- tabBarPosition,
28
- keyboardDismissMode,
29
- swipeEnabled,
30
- scrollEnabled,
31
- activeColor,
32
- inactiveColor,
33
- pressColor,
34
- indicatorColor,
35
- style,
36
- children,
37
- }: TabViewProps) => {
38
- const [index, setIndex] = React.useState(0);
39
- const [routes, setRoutes] = React.useState([]);
40
- const [tabScenes, setTabScenes] = React.useState({});
41
-
42
- React.useEffect(() => {
43
- const newRoutes: any = [];
44
- const scenes: any = {};
45
-
46
- React.Children.toArray(children)
47
- .filter((child: any) => child.type === TabViewItem)
48
- .forEach((child: any) => {
49
- if (child?.props?.id) {
50
- newRoutes.push({
51
- key: child?.props?.id,
52
- ...child?.props,
53
- });
54
- scenes[child?.props?.id] = () => child;
55
- }
56
- });
57
-
58
- setRoutes(newRoutes);
59
- setTabScenes(scenes);
60
- }, [children]);
61
-
62
- const indexChangeHandler = (i: any) => setIndex(i);
63
-
64
- const renderTabBar = (props: any) => {
65
- console.log(props);
66
- return (
67
- <TabBar
68
- {...props}
69
- activeColor={activeColor}
70
- inactiveColor={inactiveColor}
71
- pressColor={pressColor}
72
- scrollEnabled={scrollEnabled}
73
- indicatorStyle={{ backgroundColor: indicatorColor }}
74
- renderIcon={({ route, color }) =>
75
- route?.icon ? (
76
- <Icon name={route.icon} color={color} size={36} />
77
- ) : null
78
- }
79
- style={style}
80
- />
81
- );
82
- };
83
-
84
- return (
85
- <TabView
86
- navigationState={{ index, routes }}
87
- renderScene={SceneMap(tabScenes)}
88
- renderTabBar={renderTabBar}
89
- onIndexChange={indexChangeHandler}
90
- tabBarPosition={tabBarPosition}
91
- keyboardDismissMode={keyboardDismissMode}
92
- swipeEnabled={swipeEnabled}
93
- />
94
- );
95
- };
96
-
97
- export default TabViewComponent;
@@ -1,5 +0,0 @@
1
- const TabViewItem = ({ title, id, icon, children, accessibilityLabel, }) => {
2
- console.log({ title, id, icon, accessibilityLabel });
3
- return children;
4
- };
5
- export default TabViewItem;
@@ -1,21 +0,0 @@
1
- import React from "react";
2
- interface TabViewItemProps {
3
- title: string;
4
- id: string;
5
- icon: string;
6
- accessibilityLabel: string;
7
- children: React.ReactNode;
8
- }
9
-
10
- const TabViewItem = ({
11
- title,
12
- id,
13
- icon,
14
- children,
15
- accessibilityLabel,
16
- }: TabViewItemProps) => {
17
- console.log({ title, id, icon, accessibilityLabel });
18
- return children;
19
- };
20
-
21
- export default TabViewItem;