@jobber/components-native 0.84.1 → 0.84.2-CLEANUPus-07fd343.17

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 (311) hide show
  1. package/dist/package.json +2 -2
  2. package/dist/src/ButtonGroup/utils.js +1 -1
  3. package/dist/src/Card/Card.js +1 -1
  4. package/dist/src/ErrorMessageWrapper/context/ErrorMessageProvider.js +1 -1
  5. package/dist/src/Form/Form.js +2 -2
  6. package/dist/src/Form/components/FormSaveButton/FormSaveButton.js +1 -1
  7. package/dist/src/Form/hooks/useInternalForm.js +1 -1
  8. package/dist/src/Form/hooks/useScrollToError/useScrollToError.js +1 -1
  9. package/dist/src/FormatFile/FormatFile.js +2 -2
  10. package/dist/src/Heading/Heading.js +1 -1
  11. package/dist/src/InputFieldWrapper/CommonInputStyles.style.js +1 -1
  12. package/dist/src/InputFieldWrapper/InputFieldWrapper.js +1 -1
  13. package/dist/src/InputFieldWrapper/components/Prefix/Prefix.js +1 -1
  14. package/dist/src/InputFieldWrapper/components/Suffix/Suffix.js +1 -1
  15. package/dist/src/InputText/InputText.js +1 -1
  16. package/dist/src/Text/Text.js +1 -1
  17. package/dist/src/Typography/Typography.js +1 -1
  18. package/dist/src/Typography/Typography.style.js +1 -1
  19. package/dist/src/hooks/useFormController.js +1 -1
  20. package/dist/src/utils/test/MockSafeAreaProvider.js +1 -1
  21. package/dist/tsconfig.eslint.json +12 -0
  22. package/dist/tsconfig.tsbuildinfo +1 -1
  23. package/dist/types/src/ActionItem/ActionItem.d.ts +2 -2
  24. package/dist/types/src/ActionItem/ActionItemGroup.d.ts +2 -2
  25. package/dist/types/src/ActionItem/components/ActionItemContainer.d.ts +1 -1
  26. package/dist/types/src/ActionItem/index.d.ts +2 -1
  27. package/dist/types/src/ActionLabel/ActionLabel.d.ts +1 -1
  28. package/dist/types/src/ActionLabel/index.d.ts +2 -1
  29. package/dist/types/src/ActivityIndicator/ActivityIndicator.d.ts +1 -1
  30. package/dist/types/src/AtlantisThemeContext/AtlantisThemeContext.d.ts +1 -1
  31. package/dist/types/src/AtlantisThemeContext/buildThemedStyles.d.ts +1 -1
  32. package/dist/types/src/AtlantisThemeContext/index.d.ts +1 -1
  33. package/dist/types/src/AtlantisThemeContext/types.d.ts +1 -1
  34. package/dist/types/src/AutoLink/AutoLink.d.ts +1 -1
  35. package/dist/types/src/AutoLink/clipboard.d.ts +1 -1
  36. package/dist/types/src/AutoLink/components/ComposeTextWithLinks/ComposeTextWithLinks.d.ts +1 -1
  37. package/dist/types/src/AutoLink/hooks/useCreateLinkedText.d.ts +1 -1
  38. package/dist/types/src/AutoLink/types.d.ts +2 -2
  39. package/dist/types/src/AutoLink/utils.d.ts +2 -2
  40. package/dist/types/src/Banner/Banner.d.ts +1 -1
  41. package/dist/types/src/Banner/components/BannerIcon/BannerIcon.d.ts +2 -2
  42. package/dist/types/src/Banner/types.d.ts +3 -3
  43. package/dist/types/src/BottomSheet/BottomSheet.d.ts +2 -1
  44. package/dist/types/src/BottomSheet/components/BottomSheetOption/BottomSheetOption.d.ts +2 -2
  45. package/dist/types/src/BottomSheet/components/BottomSheetOption/index.d.ts +2 -1
  46. package/dist/types/src/Button/Button.d.ts +4 -4
  47. package/dist/types/src/Button/components/InternalButtonLoading/InternalButtonLoading.d.ts +1 -1
  48. package/dist/types/src/ButtonGroup/ButtonGroup.d.ts +1 -1
  49. package/dist/types/src/ButtonGroup/ButtonGroupAction.d.ts +2 -2
  50. package/dist/types/src/ButtonGroup/components/SecondaryActionSheet/SecondaryActionSheet.d.ts +3 -3
  51. package/dist/types/src/ButtonGroup/types.d.ts +2 -2
  52. package/dist/types/src/ButtonGroup/utils.d.ts +2 -2
  53. package/dist/types/src/Card/Card.d.ts +3 -3
  54. package/dist/types/src/Card/components/InternalCardHeader.d.ts +1 -1
  55. package/dist/types/src/Checkbox/Checkbox.d.ts +1 -1
  56. package/dist/types/src/Checkbox/CheckboxGroup.d.ts +3 -3
  57. package/dist/types/src/Checkbox/CheckboxGroupReducer.d.ts +1 -1
  58. package/dist/types/src/Checkbox/types.d.ts +2 -2
  59. package/dist/types/src/Chip/Chip.d.ts +2 -2
  60. package/dist/types/src/Content/Content.d.ts +2 -2
  61. package/dist/types/src/ContentOverlay/ContentOverlay.d.ts +1 -1
  62. package/dist/types/src/ContentOverlay/hooks/useViewLayoutHeight.d.ts +1 -1
  63. package/dist/types/src/ContentOverlay/types.d.ts +2 -2
  64. package/dist/types/src/EmptyState/EmptyState.d.ts +1 -1
  65. package/dist/types/src/ErrorMessageWrapper/ErrorMessageWrapper.d.ts +1 -1
  66. package/dist/types/src/ErrorMessageWrapper/context/ErrorMessageContext.d.ts +1 -1
  67. package/dist/types/src/ErrorMessageWrapper/context/ErrorMessageProvider.d.ts +1 -1
  68. package/dist/types/src/ErrorMessageWrapper/context/types.d.ts +2 -2
  69. package/dist/types/src/Flex/Flex.d.ts +2 -2
  70. package/dist/types/src/Flex/Flex.styles.d.ts +2 -2
  71. package/dist/types/src/Flex/types.d.ts +1 -1
  72. package/dist/types/src/Form/Form.d.ts +2 -2
  73. package/dist/types/src/Form/components/FormActionBar/FormActionBar.d.ts +1 -1
  74. package/dist/types/src/Form/components/FormBody/FormBody.d.ts +1 -1
  75. package/dist/types/src/Form/components/FormCache/FormCache.d.ts +1 -1
  76. package/dist/types/src/Form/components/FormErrorBanner/FormErrorBanner.d.ts +1 -1
  77. package/dist/types/src/Form/components/FormMessage/FormMessage.d.ts +1 -1
  78. package/dist/types/src/Form/components/FormMessage/components/InternalFormMessage/InternalFormMessage.d.ts +1 -1
  79. package/dist/types/src/Form/components/FormMessageBanner/FormMessageBanner.d.ts +1 -1
  80. package/dist/types/src/Form/components/FormSaveButton/FormSaveButton.d.ts +1 -1
  81. package/dist/types/src/Form/context/AtlantisFormContext.d.ts +1 -1
  82. package/dist/types/src/Form/context/types.d.ts +2 -2
  83. package/dist/types/src/Form/hooks/useFormViewRefs.d.ts +3 -3
  84. package/dist/types/src/Form/hooks/useInternalForm.d.ts +4 -4
  85. package/dist/types/src/Form/hooks/useScreenInformation.d.ts +1 -1
  86. package/dist/types/src/Form/hooks/useScrollToError/useScrollToError.d.ts +2 -2
  87. package/dist/types/src/Form/types.d.ts +4 -4
  88. package/dist/types/src/FormField/FormField.d.ts +1 -1
  89. package/dist/types/src/FormatFile/FormatFile.d.ts +2 -2
  90. package/dist/types/src/FormatFile/components/FileView/FileView.d.ts +1 -1
  91. package/dist/types/src/FormatFile/components/FormatFileBottomSheet/FormatFileBottomSheet.d.ts +2 -2
  92. package/dist/types/src/FormatFile/components/MediaView/MediaView.d.ts +1 -1
  93. package/dist/types/src/FormatFile/components/_mocks/mockFiles.d.ts +2 -1
  94. package/dist/types/src/FormatFile/context/FormatFileContext.d.ts +1 -1
  95. package/dist/types/src/FormatFile/context/types.d.ts +1 -1
  96. package/dist/types/src/FormatFile/index.d.ts +2 -1
  97. package/dist/types/src/FormatFile/utils/computeA11yLabel.d.ts +1 -1
  98. package/dist/types/src/FormatFile/utils/createUseCreateThumbnail.d.ts +2 -2
  99. package/dist/types/src/Heading/Heading.d.ts +1 -1
  100. package/dist/types/src/Icon/Icon.d.ts +1 -1
  101. package/dist/types/src/IconButton/IconButton.d.ts +1 -1
  102. package/dist/types/src/InputCurrency/InputCurrency.d.ts +3 -3
  103. package/dist/types/src/InputDate/InputDate.d.ts +4 -4
  104. package/dist/types/src/InputDate/index.d.ts +2 -1
  105. package/dist/types/src/InputEmail/InputEmail.d.ts +1 -1
  106. package/dist/types/src/InputFieldWrapper/CommonInputStyles.style.d.ts +2 -2
  107. package/dist/types/src/InputFieldWrapper/InputFieldWrapper.d.ts +3 -3
  108. package/dist/types/src/InputFieldWrapper/components/Prefix/Prefix.d.ts +2 -2
  109. package/dist/types/src/InputFieldWrapper/components/Suffix/Suffix.d.ts +2 -2
  110. package/dist/types/src/InputNumber/InputNumber.d.ts +1 -1
  111. package/dist/types/src/InputPassword/InputPassword.d.ts +1 -1
  112. package/dist/types/src/InputPressable/InputPressable.d.ts +6 -5
  113. package/dist/types/src/InputSearch/InputSearch.d.ts +1 -1
  114. package/dist/types/src/InputText/InputText.d.ts +8 -6
  115. package/dist/types/src/InputText/context/InputAccessoriesContext.d.ts +1 -1
  116. package/dist/types/src/InputText/context/InputAccessoriesProvider.d.ts +1 -1
  117. package/dist/types/src/InputTime/InputTime.d.ts +4 -4
  118. package/dist/types/src/Menu/Menu.d.ts +1 -1
  119. package/dist/types/src/Menu/components/MenuOption/MenuOption.d.ts +1 -1
  120. package/dist/types/src/Menu/components/Overlay/Overlay.d.ts +1 -1
  121. package/dist/types/src/Menu/types.d.ts +2 -2
  122. package/dist/types/src/Menu/utils.d.ts +2 -2
  123. package/dist/types/src/ProgressBar/ProgressBar.d.ts +1 -1
  124. package/dist/types/src/ProgressBar/types.d.ts +1 -1
  125. package/dist/types/src/Select/Select.d.ts +2 -2
  126. package/dist/types/src/Select/components/SelectDefaultPicker/SelectDefaultPicker.d.ts +1 -1
  127. package/dist/types/src/Select/components/SelectDefaultPicker/SelectDefaultPicker.ios.d.ts +1 -1
  128. package/dist/types/src/Select/components/SelectIOSPicker/SelectIOSPicker.d.ts +2 -2
  129. package/dist/types/src/Select/components/SelectInternalPicker/SelectInternalPicker.d.ts +1 -1
  130. package/dist/types/src/Select/components/SelectInternalPicker/utils.d.ts +1 -1
  131. package/dist/types/src/Select/components/SelectPressable/SelectPressable.d.ts +2 -2
  132. package/dist/types/src/Select/index.d.ts +2 -1
  133. package/dist/types/src/Select/types.d.ts +1 -1
  134. package/dist/types/src/Switch/Switch.d.ts +2 -2
  135. package/dist/types/src/Switch/index.d.ts +2 -1
  136. package/dist/types/src/Text/Text.d.ts +2 -2
  137. package/dist/types/src/Text/index.d.ts +2 -1
  138. package/dist/types/src/TextList/TextList.d.ts +2 -2
  139. package/dist/types/src/ThumbnailList/ThumbnailList.d.ts +2 -2
  140. package/dist/types/src/ThumbnailList/types.d.ts +1 -1
  141. package/dist/types/src/Toast/Toast.d.ts +1 -1
  142. package/dist/types/src/Typography/Typography.d.ts +1 -1
  143. package/dist/types/src/Typography/Typography.style.d.ts +2 -2
  144. package/dist/types/src/Typography/TypographyGestureDetector.d.ts +1 -1
  145. package/dist/types/src/Typography/webFonts.d.ts +1 -1
  146. package/dist/types/src/hooks/useFormController.d.ts +1 -1
  147. package/dist/types/src/utils/test/MockSafeAreaProvider.d.ts +1 -1
  148. package/package.json +2 -2
  149. package/src/ActionItem/ActionItem.tsx +3 -2
  150. package/src/ActionItem/ActionItemGroup.tsx +3 -2
  151. package/src/ActionItem/components/ActionItemContainer.tsx +2 -1
  152. package/src/ActionItem/index.ts +2 -1
  153. package/src/ActionLabel/ActionLabel.test.tsx +3 -2
  154. package/src/ActionLabel/ActionLabel.tsx +2 -1
  155. package/src/ActionLabel/index.ts +2 -1
  156. package/src/ActivityIndicator/ActivityIndicator.tsx +2 -1
  157. package/src/AtlantisContext/AtlantisContext.test.tsx +3 -2
  158. package/src/AtlantisThemeContext/AtlantisThemeContext.test.tsx +1 -1
  159. package/src/AtlantisThemeContext/AtlantisThemeContext.tsx +1 -1
  160. package/src/AtlantisThemeContext/buildThemedStyles.ts +1 -1
  161. package/src/AtlantisThemeContext/index.ts +1 -1
  162. package/src/AtlantisThemeContext/types.ts +1 -1
  163. package/src/AutoLink/AutoLink.tsx +1 -1
  164. package/src/AutoLink/clipboard.ts +2 -1
  165. package/src/AutoLink/components/ComposeTextWithLinks/ComposeTextWithLinks.tsx +1 -1
  166. package/src/AutoLink/hooks/useCreateLinkedText.ts +2 -1
  167. package/src/AutoLink/types.ts +2 -2
  168. package/src/AutoLink/utils.ts +2 -2
  169. package/src/Banner/Banner.tsx +4 -3
  170. package/src/Banner/components/BannerIcon/BannerIcon.tsx +2 -2
  171. package/src/Banner/types.ts +3 -3
  172. package/src/BottomSheet/BottomSheet.test.tsx +1 -1
  173. package/src/BottomSheet/BottomSheet.tsx +2 -1
  174. package/src/BottomSheet/components/BottomSheetOption/BottomSheetOption.tsx +2 -2
  175. package/src/BottomSheet/components/BottomSheetOption/index.ts +2 -1
  176. package/src/Button/Button.test.tsx +6 -4
  177. package/src/Button/Button.tsx +7 -5
  178. package/src/Button/components/InternalButtonLoading/InternalButtonLoading.test.tsx +1 -1
  179. package/src/Button/components/InternalButtonLoading/InternalButtonLoading.tsx +1 -1
  180. package/src/ButtonGroup/ButtonGroup.test.tsx +2 -1
  181. package/src/ButtonGroup/ButtonGroup.tsx +2 -2
  182. package/src/ButtonGroup/ButtonGroupAction.tsx +2 -2
  183. package/src/ButtonGroup/components/SecondaryActionSheet/SecondaryActionSheet.tsx +5 -3
  184. package/src/ButtonGroup/types.ts +2 -2
  185. package/src/ButtonGroup/utils.ts +3 -6
  186. package/src/Card/Card.tsx +6 -6
  187. package/src/Card/components/InternalCardHeader.tsx +2 -1
  188. package/src/Checkbox/Checkbox.tsx +3 -2
  189. package/src/Checkbox/CheckboxGroup.test.tsx +3 -7
  190. package/src/Checkbox/CheckboxGroup.tsx +4 -3
  191. package/src/Checkbox/CheckboxGroupReducer.test.ts +1 -1
  192. package/src/Checkbox/CheckboxGroupReducer.ts +4 -1
  193. package/src/Checkbox/types.ts +2 -2
  194. package/src/Chip/Chip.tsx +3 -2
  195. package/src/Content/Content.test.tsx +3 -2
  196. package/src/Content/Content.tsx +4 -2
  197. package/src/ContentOverlay/ContentOverlay.test.tsx +4 -6
  198. package/src/ContentOverlay/ContentOverlay.tsx +3 -4
  199. package/src/ContentOverlay/hooks/useKeyboardVisibility.test.ts +2 -1
  200. package/src/ContentOverlay/hooks/useKeyboardVisibility.ts +2 -1
  201. package/src/ContentOverlay/hooks/useViewLayoutHeight.test.ts +1 -1
  202. package/src/ContentOverlay/hooks/useViewLayoutHeight.ts +1 -1
  203. package/src/ContentOverlay/types.ts +2 -2
  204. package/src/Disclosure/Disclosure.test.tsx +1 -1
  205. package/src/Disclosure/Disclosure.tsx +2 -1
  206. package/src/EmptyState/EmptyState.test.tsx +2 -1
  207. package/src/EmptyState/EmptyState.tsx +3 -2
  208. package/src/ErrorMessageWrapper/ErrorMessageWrapper.tsx +4 -2
  209. package/src/ErrorMessageWrapper/context/ErrorMessageContext.tsx +1 -1
  210. package/src/ErrorMessageWrapper/context/ErrorMessageProvider.tsx +5 -8
  211. package/src/ErrorMessageWrapper/context/types.ts +2 -2
  212. package/src/Flex/Flex.styles.tsx +4 -2
  213. package/src/Flex/Flex.test.tsx +4 -3
  214. package/src/Flex/Flex.tsx +3 -2
  215. package/src/Flex/types.ts +1 -1
  216. package/src/Form/Form.test.tsx +4 -2
  217. package/src/Form/Form.tsx +6 -10
  218. package/src/Form/components/FormActionBar/FormActionBar.tsx +3 -2
  219. package/src/Form/components/FormBody/FormBody.tsx +2 -1
  220. package/src/Form/components/FormCache/FormCache.tsx +2 -1
  221. package/src/Form/components/FormErrorBanner/FormErrorBanner.tsx +1 -1
  222. package/src/Form/components/FormMessage/FormMessage.tsx +1 -1
  223. package/src/Form/components/FormMessage/components/InternalFormMessage/InternalFormMessage.tsx +2 -1
  224. package/src/Form/components/FormMessageBanner/FormMessageBanner.tsx +4 -2
  225. package/src/Form/components/FormSaveButton/FormSaveButton.test.tsx +1 -1
  226. package/src/Form/components/FormSaveButton/FormSaveButton.tsx +3 -5
  227. package/src/Form/context/AtlantisFormContext.test.tsx +3 -2
  228. package/src/Form/context/AtlantisFormContext.tsx +1 -1
  229. package/src/Form/context/types.ts +2 -2
  230. package/src/Form/hooks/useFormViewRefs.ts +4 -3
  231. package/src/Form/hooks/useInternalForm.ts +5 -5
  232. package/src/Form/hooks/useScreenInformation.ts +2 -1
  233. package/src/Form/hooks/useScrollToError/useScrollToError.ts +9 -7
  234. package/src/Form/types.ts +4 -4
  235. package/src/FormField/FormField.tsx +1 -1
  236. package/src/FormatFile/FormatFile.test.tsx +7 -4
  237. package/src/FormatFile/FormatFile.tsx +5 -12
  238. package/src/FormatFile/components/FileView/FileView.tsx +3 -2
  239. package/src/FormatFile/components/FormatFileBottomSheet/FormatFileBottomSheet.test.tsx +5 -6
  240. package/src/FormatFile/components/FormatFileBottomSheet/FormatFileBottomSheet.tsx +4 -2
  241. package/src/FormatFile/components/MediaView/MediaView.tsx +2 -1
  242. package/src/FormatFile/components/_mocks/mockFiles.ts +2 -1
  243. package/src/FormatFile/context/FormatFileContext.ts +1 -1
  244. package/src/FormatFile/context/types.ts +1 -1
  245. package/src/FormatFile/index.ts +2 -1
  246. package/src/FormatFile/utils/computeA11yLabel.ts +1 -1
  247. package/src/FormatFile/utils/createUseCreateThumbnail.ts +2 -2
  248. package/src/Glimmer/Glimmer.tsx +2 -1
  249. package/src/Heading/Heading.tsx +2 -2
  250. package/src/Icon/Icon.tsx +2 -1
  251. package/src/IconButton/IconButton.tsx +1 -1
  252. package/src/InputCurrency/InputCurrency.test.tsx +1 -1
  253. package/src/InputCurrency/InputCurrency.tsx +5 -3
  254. package/src/InputDate/InputDate.tsx +4 -4
  255. package/src/InputDate/index.ts +2 -1
  256. package/src/InputEmail/InputEmail.tsx +4 -2
  257. package/src/InputFieldWrapper/CommonInputStyles.style.ts +4 -5
  258. package/src/InputFieldWrapper/InputFieldWrapper.test.tsx +6 -12
  259. package/src/InputFieldWrapper/InputFieldWrapper.tsx +6 -10
  260. package/src/InputFieldWrapper/components/Prefix/Prefix.test.tsx +3 -4
  261. package/src/InputFieldWrapper/components/Prefix/Prefix.tsx +3 -8
  262. package/src/InputFieldWrapper/components/Suffix/Suffix.test.tsx +3 -7
  263. package/src/InputFieldWrapper/components/Suffix/Suffix.tsx +3 -8
  264. package/src/InputNumber/InputNumber.tsx +4 -2
  265. package/src/InputPassword/InputPassword.test.tsx +1 -1
  266. package/src/InputPassword/InputPassword.tsx +5 -3
  267. package/src/InputPressable/InputPressable.test.tsx +1 -1
  268. package/src/InputPressable/InputPressable.tsx +7 -5
  269. package/src/InputSearch/InputSearch.tsx +4 -2
  270. package/src/InputText/InputText.test.tsx +7 -8
  271. package/src/InputText/InputText.tsx +8 -9
  272. package/src/InputText/context/InputAccessoriesContext.ts +1 -1
  273. package/src/InputText/context/InputAccessoriesProvider.tsx +2 -1
  274. package/src/InputTime/InputTime.tsx +4 -4
  275. package/src/InputTime/utils/utils.test.ts +2 -5
  276. package/src/Menu/Menu.test.tsx +2 -1
  277. package/src/Menu/Menu.tsx +2 -2
  278. package/src/Menu/components/MenuOption/MenuOption.tsx +1 -1
  279. package/src/Menu/components/Overlay/Overlay.tsx +1 -1
  280. package/src/Menu/types.ts +2 -2
  281. package/src/Menu/utils.ts +2 -2
  282. package/src/ProgressBar/ProgressBar.test.tsx +2 -1
  283. package/src/ProgressBar/ProgressBar.tsx +1 -1
  284. package/src/ProgressBar/types.ts +1 -1
  285. package/src/Select/Select.test.tsx +2 -1
  286. package/src/Select/Select.tsx +4 -3
  287. package/src/Select/components/SelectDefaultPicker/SelectDefaultPicker.ios.tsx +1 -1
  288. package/src/Select/components/SelectDefaultPicker/SelectDefaultPicker.tsx +1 -1
  289. package/src/Select/components/SelectIOSPicker/SelectIOSPicker.tsx +3 -2
  290. package/src/Select/components/SelectInternalPicker/SelectInternalPicker.test.tsx +3 -2
  291. package/src/Select/components/SelectInternalPicker/SelectInternalPicker.tsx +1 -1
  292. package/src/Select/components/SelectInternalPicker/utils.ts +1 -1
  293. package/src/Select/components/SelectPressable/SelectPressable.tsx +3 -2
  294. package/src/Select/index.ts +2 -1
  295. package/src/Select/types.ts +1 -1
  296. package/src/Switch/Switch.test.tsx +1 -1
  297. package/src/Switch/Switch.tsx +3 -2
  298. package/src/Switch/index.ts +2 -1
  299. package/src/Text/Text.tsx +3 -3
  300. package/src/Text/index.ts +2 -1
  301. package/src/TextList/TextList.tsx +4 -2
  302. package/src/ThumbnailList/ThumbnailList.test.tsx +1 -1
  303. package/src/ThumbnailList/ThumbnailList.tsx +4 -2
  304. package/src/ThumbnailList/types.ts +1 -1
  305. package/src/Toast/Toast.tsx +2 -1
  306. package/src/Typography/Typography.style.ts +4 -5
  307. package/src/Typography/Typography.tsx +2 -4
  308. package/src/Typography/TypographyGestureDetector.tsx +2 -1
  309. package/src/Typography/webFonts.ts +1 -1
  310. package/src/hooks/useFormController.ts +2 -4
  311. package/src/utils/test/MockSafeAreaProvider.tsx +2 -5
@@ -1,5 +1,5 @@
1
- import { ReactNode } from "react";
2
- import { IconColorNames, IconNames } from "@jobber/design";
1
+ import type { ReactNode } from "react";
2
+ import type { IconColorNames, IconNames } from "@jobber/design";
3
3
  export interface ActionItemProps {
4
4
  /**
5
5
  * Title of the Action Item
@@ -1,5 +1,5 @@
1
- import { ReactElement } from "react";
2
- import { ActionItem, ActionItemProps } from "./ActionItem";
1
+ import type { ReactElement } from "react";
2
+ import type { ActionItem, ActionItemProps } from "./ActionItem";
3
3
  export type ActionItemElement = ReactElement<ActionItemProps, typeof ActionItem> | boolean | null | undefined;
4
4
  interface ActionItemGroupProps {
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { ReactNode } from "react";
1
+ import type { ReactNode } from "react";
2
2
  interface ActionItemContainerProps {
3
3
  readonly children: ReactNode;
4
4
  readonly title?: string;
@@ -1,2 +1,3 @@
1
- export { ActionItem, ActionItemProps } from "./ActionItem";
1
+ export type { ActionItemProps } from "./ActionItem";
2
+ export { ActionItem } from "./ActionItem";
2
3
  export { ActionItemGroup } from "./ActionItemGroup";
@@ -1,4 +1,4 @@
1
- import { TextAlign, TextColor } from "../Typography";
1
+ import type { TextAlign, TextColor } from "../Typography";
2
2
  export type ActionLabelVariation = Extract<TextColor, "interactive" | "destructive" | "learning" | "subtle" | "onPrimary">;
3
3
  type ActionLabelType = "default" | "cardTitle";
4
4
  interface ActionLabelProps {
@@ -1 +1,2 @@
1
- export { ActionLabel, ActionLabelVariation } from "./ActionLabel";
1
+ export type { ActionLabelVariation } from "./ActionLabel";
2
+ export { ActionLabel } from "./ActionLabel";
@@ -1,2 +1,2 @@
1
- import { ActivityIndicatorProps } from "react-native";
1
+ import type { ActivityIndicatorProps } from "react-native";
2
2
  export declare function JobberActivityIndicator(props: ActivityIndicatorProps): JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import React from "react";
2
- import { AtlantisThemeContextProviderProps, AtlantisThemeContextValue } from "./types";
2
+ import type { AtlantisThemeContextProviderProps, AtlantisThemeContextValue } from "./types";
3
3
  export declare function AtlantisThemeContextProvider({ children, dangerouslyOverrideTheme, }: AtlantisThemeContextProviderProps): React.JSX.Element;
4
4
  export declare function useAtlantisTheme(): AtlantisThemeContextValue;
@@ -1,5 +1,5 @@
1
1
  import { StyleSheet } from "react-native";
2
- import { AtlantisThemeContextValue } from "./types";
2
+ import type { AtlantisThemeContextValue } from "./types";
3
3
  /**
4
4
  * Creates a hook that generates themed styles using the current theme tokens.
5
5
  * The hook will automatically update the styles when the theme changes.
@@ -1,3 +1,3 @@
1
1
  export { AtlantisThemeContextProvider, useAtlantisTheme, } from "./AtlantisThemeContext";
2
- export { Theme, AtlantisThemeContextProviderProps, AtlantisThemeContextValue, } from "./types";
2
+ export type { Theme, AtlantisThemeContextProviderProps, AtlantisThemeContextValue, } from "./types";
3
3
  export { buildThemedStyles } from "./buildThemedStyles";
@@ -1,4 +1,4 @@
1
- import { iosTokens } from "@jobber/design";
1
+ import type { iosTokens } from "@jobber/design";
2
2
  export interface AtlantisThemeContextValue {
3
3
  /**
4
4
  * The active theme.
@@ -1,2 +1,2 @@
1
- import { AutoLinkProps } from "./types";
1
+ import type { AutoLinkProps } from "./types";
2
2
  export declare function AutoLink({ children: text, bottomTabsVisible, selectable, ...rest }: AutoLinkProps): JSX.Element;
@@ -1,2 +1,2 @@
1
- import { ShowToastParams } from "../Toast";
1
+ import type { ShowToastParams } from "../Toast";
2
2
  export declare function copyTextToClipboard(text: string, toastConfig?: ShowToastParams): void;
@@ -1,2 +1,2 @@
1
- import { ComposeTextWithLinksProps } from "../../types";
1
+ import type { ComposeTextWithLinksProps } from "../../types";
2
2
  export declare function ComposeTextWithLinks({ part, index, match, bottomTabsVisible, selectable, }: ComposeTextWithLinksProps): JSX.Element;
@@ -1,4 +1,4 @@
1
- import { Match } from "autolinker";
1
+ import type { Match } from "autolinker";
2
2
  export declare function useCreateLinkedText({ text, email, phone, urls, }: {
3
3
  text?: string | undefined;
4
4
  email?: boolean | undefined;
@@ -1,5 +1,5 @@
1
- import { Match } from "autolinker";
2
- import { TextProps } from "react-native";
1
+ import type { Match } from "autolinker";
2
+ import type { TextProps } from "react-native";
3
3
  export interface AutoLinkProps extends Pick<TextProps, "selectable"> {
4
4
  /**
5
5
  * Text to display.
@@ -1,5 +1,5 @@
1
- import { Match } from "autolinker";
2
- import { useAtlantisI18nValue } from "../hooks/useAtlantisI18n";
1
+ import type { Match } from "autolinker";
2
+ import type { useAtlantisI18nValue } from "../hooks/useAtlantisI18n";
3
3
  export declare function shouldIgnoreURL(text: string, match: Match): boolean;
4
4
  export declare function getUrl(match: Match, immediateOpen?: boolean): string;
5
5
  export declare function onLongPressLink(match: Match, bottomTabsVisible: boolean, t: useAtlantisI18nValue["t"]): void;
@@ -1,2 +1,2 @@
1
- import { BannerProps } from "./types";
1
+ import type { BannerProps } from "./types";
2
2
  export declare function Banner({ action, details, text, type, children, icon, }: BannerProps): JSX.Element;
@@ -1,5 +1,5 @@
1
- import { IconNames } from "@jobber/design";
2
- import { BannerTypes } from "../../types";
1
+ import type { IconNames } from "@jobber/design";
2
+ import type { BannerTypes } from "../../types";
3
3
  export interface BannerIconProps {
4
4
  readonly icon: IconNames;
5
5
  readonly type: BannerTypes;
@@ -1,6 +1,6 @@
1
- import { IconNames } from "@jobber/design";
2
- import { ReactElement } from "react";
3
- import { StyleProp, ViewStyle } from "react-native";
1
+ import type { IconNames } from "@jobber/design";
2
+ import type { ReactElement } from "react";
3
+ import type { StyleProp, ViewStyle } from "react-native";
4
4
  export type BannerTypes = "error" | "warning" | "notice";
5
5
  export interface BannerStyleProps {
6
6
  /**
@@ -1,4 +1,5 @@
1
- import React, { ReactNode } from "react";
1
+ import type { ReactNode } from "react";
2
+ import React from "react";
2
3
  import { Modalize } from "react-native-modalize";
3
4
  export interface BottomSheetProps {
4
5
  readonly children: ReactNode;
@@ -1,5 +1,5 @@
1
- import { IconColorNames, IconNames } from "@jobber/design";
2
- import { TextAlign } from "../../../Typography";
1
+ import type { IconColorNames, IconNames } from "@jobber/design";
2
+ import type { TextAlign } from "../../../Typography";
3
3
  export interface BottomSheetOptionProps {
4
4
  readonly text: string;
5
5
  readonly icon?: IconNames;
@@ -1 +1,2 @@
1
- export { BottomSheetOption, BottomSheetOptionProps } from "./BottomSheetOption";
1
+ export type { BottomSheetOptionProps } from "./BottomSheetOption";
2
+ export { BottomSheetOption } from "./BottomSheetOption";
@@ -1,7 +1,7 @@
1
- import { StyleProp, ViewStyle } from "react-native";
2
- import { IconNames } from "@jobber/design";
3
- import { XOR } from "ts-xor";
4
- import { ButtonSize, ButtonType, ButtonVariation } from "./types";
1
+ import type { StyleProp, ViewStyle } from "react-native";
2
+ import type { IconNames } from "@jobber/design";
3
+ import type { XOR } from "ts-xor";
4
+ import type { ButtonSize, ButtonType, ButtonVariation } from "./types";
5
5
  interface CommonButtonProps {
6
6
  /**
7
7
  * Press handler
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { ButtonType, ButtonVariation } from "../../types";
2
+ import type { ButtonType, ButtonVariation } from "../../types";
3
3
  interface InternalButtonLoadingProps {
4
4
  readonly variation: ButtonVariation;
5
5
  readonly type: ButtonType;
@@ -1,4 +1,4 @@
1
- import { ButtonGroupActionElement } from "./types";
1
+ import type { ButtonGroupActionElement } from "./types";
2
2
  export interface ButtonGroupProps {
3
3
  readonly children: ButtonGroupActionElement | ButtonGroupActionElement[];
4
4
  /**
@@ -1,5 +1,5 @@
1
- import { IconColorNames, IconNames } from "@jobber/design";
2
- import { ButtonType, ButtonVariation } from "../Button";
1
+ import type { IconColorNames, IconNames } from "@jobber/design";
2
+ import type { ButtonType, ButtonVariation } from "../Button";
3
3
  export interface ButtonGroupActionProps {
4
4
  /**
5
5
  * Text to be displayed on the action button
@@ -1,6 +1,6 @@
1
- import { RefObject } from "react";
2
- import { ButtonGroupSecondaryActionProps } from "../../types";
3
- import { BottomSheetRef } from "../../../BottomSheet/BottomSheet";
1
+ import type { RefObject } from "react";
2
+ import type { ButtonGroupSecondaryActionProps } from "../../types";
3
+ import type { BottomSheetRef } from "../../../BottomSheet/BottomSheet";
4
4
  interface SecondaryActionSheetProps {
5
5
  readonly actions: ButtonGroupSecondaryActionProps[];
6
6
  readonly secondaryActionsRef: RefObject<BottomSheetRef>;
@@ -1,5 +1,5 @@
1
- import { ReactElement } from "react";
2
- import { ButtonGroupActionProps, ButtonGroupPrimaryActionProps, ButtonGroupSecondaryActionProps, PrimaryAction, SecondaryAction } from "./ButtonGroupAction";
1
+ import type { ReactElement } from "react";
2
+ import type { ButtonGroupActionProps, ButtonGroupPrimaryActionProps, ButtonGroupSecondaryActionProps, PrimaryAction, SecondaryAction } from "./ButtonGroupAction";
3
3
  export type ButtonGroupPrimaryActionElement = ReactElement<ButtonGroupPrimaryActionProps, typeof PrimaryAction>;
4
4
  export type ButtonGroupSecondaryActionElement = ReactElement<ButtonGroupActionProps, typeof SecondaryAction>;
5
5
  export type ButtonGroupActionElement = ButtonGroupPrimaryActionElement | ButtonGroupSecondaryActionElement;
@@ -1,5 +1,5 @@
1
- import { ButtonGroupActionElement, ButtonGroupPrimaryActionElement } from "./types";
2
- import { ButtonGroupActionProps } from "./ButtonGroupAction";
1
+ import type { ButtonGroupActionElement, ButtonGroupPrimaryActionElement } from "./types";
2
+ import type { ButtonGroupActionProps } from "./ButtonGroupAction";
3
3
  interface UsePreventTapWhenOfflineShape {
4
4
  readonly handlePress: (callback: ButtonGroupActionProps["onPress"]) => () => void;
5
5
  }
@@ -1,6 +1,6 @@
1
- import { ReactNode } from "react";
2
- import { IconNames } from "@jobber/design";
3
- import { XOR } from "ts-xor";
1
+ import type { ReactNode } from "react";
2
+ import type { IconNames } from "@jobber/design";
3
+ import type { XOR } from "ts-xor";
4
4
  interface CardProps {
5
5
  /**
6
6
  * @deprecated Use <ActionItem /> with the title and onPress properties instead
@@ -1,4 +1,4 @@
1
- import { ReactNode } from "react";
1
+ import type { ReactNode } from "react";
2
2
  interface InternalCardHeaderProps {
3
3
  readonly children: ReactNode[] | ReactNode;
4
4
  readonly onPress?: () => void;
@@ -1,4 +1,4 @@
1
- import { XOR } from "ts-xor";
1
+ import type { XOR } from "ts-xor";
2
2
  interface CommonCheckboxProps {
3
3
  /**
4
4
  * Label to be displayed beside the checkbox
@@ -1,6 +1,6 @@
1
- import { XOR } from "ts-xor";
2
- import { CheckboxProps } from "./Checkbox";
3
- import { CheckboxElement, CheckboxGroupState } from "./types";
1
+ import type { XOR } from "ts-xor";
2
+ import type { CheckboxProps } from "./Checkbox";
3
+ import type { CheckboxElement, CheckboxGroupState } from "./types";
4
4
  interface CommonCheckboxGroupProps extends Omit<CheckboxProps, "onChange"> {
5
5
  /**
6
6
  * Checkbox items
@@ -1,4 +1,4 @@
1
- import { CheckboxGroupState, CheckboxGroupStateInitializer } from "./types";
1
+ import type { CheckboxGroupState, CheckboxGroupStateInitializer } from "./types";
2
2
  interface UpdateAction {
3
3
  type: "Update";
4
4
  data: Partial<CheckboxGroupState>;
@@ -1,5 +1,5 @@
1
- import { ReactElement } from "react";
2
- import { Checkbox, CheckboxProps } from "./Checkbox";
1
+ import type { ReactElement } from "react";
2
+ import type { Checkbox, CheckboxProps } from "./Checkbox";
3
3
  export interface CheckboxGroupChildrenState {
4
4
  [key: string]: boolean;
5
5
  }
@@ -1,5 +1,5 @@
1
- import { AccessibilityRole } from "react-native";
2
- import { IconNames } from "@jobber/design";
1
+ import type { AccessibilityRole } from "react-native";
2
+ import type { IconNames } from "@jobber/design";
3
3
  export type AccentType = "client" | "invoice" | "job" | "request" | "quote";
4
4
  export interface ChipProps {
5
5
  /**
@@ -1,5 +1,5 @@
1
- import { ReactNode } from "react";
2
- import { StyleProp, ViewStyle } from "react-native";
1
+ import type { ReactNode } from "react";
2
+ import type { StyleProp, ViewStyle } from "react-native";
3
3
  export type Spacing = "none" | "base" | "small" | "smaller" | "smallest" | "large";
4
4
  export interface ContentUnsafeStyle {
5
5
  container?: StyleProp<ViewStyle>;
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { Modalize } from "react-native-modalize";
3
- import { ContentOverlayProps } from "./types";
3
+ import type { ContentOverlayProps } from "./types";
4
4
  export declare const ContentOverlay: React.ForwardRefExoticComponent<ContentOverlayProps & React.RefAttributes<{
5
5
  open?: Modalize["open"];
6
6
  close?: Modalize["close"];
@@ -1,4 +1,4 @@
1
- import { LayoutChangeEvent } from "react-native";
1
+ import type { LayoutChangeEvent } from "react-native";
2
2
  export declare function useViewLayoutHeight(): {
3
3
  readonly handleLayout: ({ nativeEvent }: LayoutChangeEvent) => void;
4
4
  readonly height: number;
@@ -1,5 +1,5 @@
1
- import { ReactNode } from "react";
2
- import { Modalize } from "react-native-modalize";
1
+ import type { ReactNode } from "react";
2
+ import type { Modalize } from "react-native-modalize";
3
3
  export interface ContentOverlayProps {
4
4
  /**
5
5
  * Content to be passed into the overlay
@@ -1,4 +1,4 @@
1
- import { IconColorNames, IconNames } from "@jobber/design";
1
+ import type { IconColorNames, IconNames } from "@jobber/design";
2
2
  interface Action {
3
3
  label: string;
4
4
  onPress: () => void;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from "react";
1
+ import type { ReactNode } from "react";
2
2
  type WrapForTypes = "card" | "default";
3
3
  interface ErrorMessageWrapperProps {
4
4
  /**
@@ -1,3 +1,3 @@
1
- import { ErrorMessageContextProps } from "./types";
1
+ import type { ErrorMessageContextProps } from "./types";
2
2
  export declare const ErrorMessageContext: import("react").Context<ErrorMessageContextProps>;
3
3
  export declare function useErrorMessageContext(): ErrorMessageContextProps;
@@ -1,4 +1,4 @@
1
- import { ReactNode } from "react";
1
+ import type { ReactNode } from "react";
2
2
  interface ErrorMessageProviderProps {
3
3
  readonly children: ReactNode;
4
4
  }
@@ -1,5 +1,5 @@
1
- import { RefObject } from "react";
2
- import { NativeMethods, View } from "react-native";
1
+ import type { RefObject } from "react";
2
+ import type { NativeMethods, View } from "react-native";
3
3
  interface Methods {
4
4
  /**
5
5
  * Requires the method that returns
@@ -1,3 +1,3 @@
1
- import { PropsWithChildren } from "react";
2
- import { FlexProps } from "./types";
1
+ import type { PropsWithChildren } from "react";
2
+ import type { FlexProps } from "./types";
3
3
  export declare function Flex({ template, align, gap, children, }: PropsWithChildren<FlexProps>): JSX.Element;
@@ -1,5 +1,5 @@
1
- import { ViewStyle } from "react-native";
2
- import { ColumnKeys } from "./types";
1
+ import type { ViewStyle } from "react-native";
2
+ import type { ColumnKeys } from "./types";
3
3
  export declare const styles: {
4
4
  row: {
5
5
  flexDirection: "row";
@@ -1,4 +1,4 @@
1
- import { ViewStyle } from "react-native";
1
+ import type { ViewStyle } from "react-native";
2
2
  export type ColumnKeys = "shrink" | "grow";
3
3
  export interface FlexProps {
4
4
  /**
@@ -1,3 +1,3 @@
1
- import { FieldValues } from "react-hook-form";
2
- import { FormProps } from "./types";
1
+ import type { FieldValues } from "react-hook-form";
2
+ import type { FormProps } from "./types";
3
3
  export declare function Form<T extends FieldValues, S>({ initialLoading, ...rest }: FormProps<T, S>): JSX.Element;
@@ -1,4 +1,4 @@
1
- import { SecondaryActionProp } from "../../types";
1
+ import type { SecondaryActionProp } from "../../types";
2
2
  export interface FormActionBarProps {
3
3
  readonly keyboardHeight: number;
4
4
  readonly isFormSubmitting: boolean;
@@ -1,4 +1,4 @@
1
- import { FormActionBarProps } from "../FormActionBar";
1
+ import type { FormActionBarProps } from "../FormActionBar";
2
2
  interface FormBodyProps extends FormActionBarProps {
3
3
  readonly children: JSX.Element;
4
4
  readonly shouldRenderActionBar?: boolean;
@@ -1,4 +1,4 @@
1
- import { FieldValues } from "react-hook-form";
1
+ import type { FieldValues } from "react-hook-form";
2
2
  interface FormCacheProps<T extends FieldValues> {
3
3
  readonly localCacheId?: string | string[];
4
4
  readonly localCacheKey?: string;
@@ -1,2 +1,2 @@
1
- import { FormBannerErrors } from "../../types";
1
+ import type { FormBannerErrors } from "../../types";
2
2
  export declare function FormErrorBanner({ networkError, bannerError, }: FormBannerErrors): JSX.Element;
@@ -1,4 +1,4 @@
1
- import { EmptyStateProps } from "../../../EmptyState";
1
+ import type { EmptyStateProps } from "../../../EmptyState";
2
2
  type FormMessageData = EmptyStateProps;
3
3
  /**
4
4
  * Show a message that takes over the whole screen to the user. This provides a
@@ -1,4 +1,4 @@
1
- import { EmptyStateProps } from "../../../../../EmptyState";
1
+ import type { EmptyStateProps } from "../../../../../EmptyState";
2
2
  interface FormMessageProps {
3
3
  readonly data: EmptyStateProps;
4
4
  readonly onRequestClose: () => void;
@@ -1,4 +1,4 @@
1
- import { FormBannerMessage } from "../../types";
1
+ import type { FormBannerMessage } from "../../types";
2
2
  interface FormMessageBannerProps {
3
3
  readonly bannerMessages?: FormBannerMessage[];
4
4
  }
@@ -1,2 +1,2 @@
1
- import { FormSaveButtonProps } from "../../types";
1
+ import type { FormSaveButtonProps } from "../../types";
2
2
  export declare function FormSaveButton({ primaryAction, loading, label, secondaryActions, setSecondaryActionLoading, onOpenBottomSheet, onCloseBottomSheet, }: FormSaveButtonProps): JSX.Element;
@@ -1,4 +1,4 @@
1
- import { AtlantisFormContextProps } from "./types";
1
+ import type { AtlantisFormContextProps } from "./types";
2
2
  export declare const atlantisFormContextDefaultValues: {
3
3
  useConfirmBeforeBack: () => import("react").MutableRefObject<() => undefined>;
4
4
  useInternalFormLocalCache: () => {
@@ -1,5 +1,5 @@
1
- import { MutableRefObject } from "react";
2
- import { FieldValues, UseFormReturn } from "react-hook-form";
1
+ import type { MutableRefObject } from "react";
2
+ import type { FieldValues, UseFormReturn } from "react-hook-form";
3
3
  export interface UseConfirmBeforeBackProps {
4
4
  alwaysPreventBack: boolean;
5
5
  onAcceptEvent?: () => void;
@@ -1,6 +1,6 @@
1
- import { RefObject } from "react";
2
- import { View } from "react-native";
3
- import { KeyboardAwareScrollView } from "react-native-keyboard-aware-scroll-view";
1
+ import type { RefObject } from "react";
2
+ import type { View } from "react-native";
3
+ import type { KeyboardAwareScrollView } from "react-native-keyboard-aware-scroll-view";
4
4
  interface UseFormViewRefsReturn {
5
5
  readonly scrollViewRef: RefObject<KeyboardAwareScrollView>;
6
6
  readonly bottomViewRef: RefObject<View>;
@@ -1,7 +1,7 @@
1
- import { FieldValues, UseFormHandleSubmit, UseFormReturn } from "react-hook-form";
2
- import { MutableRefObject, RefObject } from "react";
3
- import { KeyboardAwareScrollView } from "react-native-keyboard-aware-scroll-view";
4
- import { InternalFormProps } from "../types";
1
+ import type { FieldValues, UseFormHandleSubmit, UseFormReturn } from "react-hook-form";
2
+ import type { MutableRefObject, RefObject } from "react";
3
+ import type { KeyboardAwareScrollView } from "react-native-keyboard-aware-scroll-view";
4
+ import type { InternalFormProps } from "../types";
5
5
  type UseInternalFormProps<T extends FieldValues, SubmitResponseType> = Pick<InternalFormProps<T, SubmitResponseType>, "mode" | "reValidateMode" | "initialValues" | "formRef" | "localCacheKey" | "localCacheExclude" | "localCacheId"> & {
6
6
  scrollViewRef?: RefObject<KeyboardAwareScrollView>;
7
7
  readonly saveButtonHeight: number;
@@ -1,4 +1,4 @@
1
- import { EdgeInsets } from "react-native-safe-area-context";
1
+ import type { EdgeInsets } from "react-native-safe-area-context";
2
2
  interface UseScreenInformation {
3
3
  readonly windowHeight: number;
4
4
  readonly headerHeight: number;
@@ -1,5 +1,5 @@
1
- import { FieldValues, FormState, UseFormSetFocus } from "react-hook-form";
2
- import { KeyboardAwareScrollView } from "react-native-keyboard-aware-scroll-view";
1
+ import type { FieldValues, FormState, UseFormSetFocus } from "react-hook-form";
2
+ import type { KeyboardAwareScrollView } from "react-native-keyboard-aware-scroll-view";
3
3
  interface UseScrollToErrorParams<T extends FieldValues> {
4
4
  readonly formState: FormState<T>;
5
5
  readonly refNode: number | null;
@@ -1,7 +1,7 @@
1
- import { MutableRefObject, RefObject } from "react";
2
- import { ControllerProps, DeepPartial, FieldPath, FieldValues, Mode, UnpackNestedValue, UseFormReturn } from "react-hook-form";
3
- import { IconNames } from "@jobber/design";
4
- import { KeyboardAwareScrollView } from "react-native-keyboard-aware-scroll-view";
1
+ import type { MutableRefObject, RefObject } from "react";
2
+ import type { ControllerProps, DeepPartial, FieldPath, FieldValues, Mode, UnpackNestedValue, UseFormReturn } from "react-hook-form";
3
+ import type { IconNames } from "@jobber/design";
4
+ import type { KeyboardAwareScrollView } from "react-native-keyboard-aware-scroll-view";
5
5
  export type FormValues<T> = UnpackNestedValue<T>;
6
6
  export type FormErrors = FormNetworkErrors | FormUserErrors;
7
7
  export type FormBannerMessage = FormWarningMessage | FormNoticeMessage;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { ControllerRenderProps, FieldError, FieldValues, RegisterOptions } from "react-hook-form";
2
+ import type { ControllerRenderProps, FieldError, FieldValues, RegisterOptions } from "react-hook-form";
3
3
  interface FormFieldProps<T> {
4
4
  /**
5
5
  * Name of the field.
@@ -1,5 +1,5 @@
1
- import { BottomSheetOptionsSuffix } from "./components/FormatFileBottomSheet";
2
- import { CreateThumbnail, File, FileUpload, FormattedFile } from "./types";
1
+ import type { BottomSheetOptionsSuffix } from "./components/FormatFileBottomSheet";
2
+ import type { CreateThumbnail, File, FileUpload, FormattedFile } from "./types";
3
3
  export interface FormatFileProps<T> {
4
4
  /**
5
5
  * File upload details object. Can be a File or a FileUpload
@@ -1,4 +1,4 @@
1
- import { FormattedFile } from "../../types";
1
+ import type { FormattedFile } from "../../types";
2
2
  interface FileViewProps {
3
3
  readonly accessibilityLabel?: string;
4
4
  readonly showOverlay: boolean;
@@ -1,5 +1,5 @@
1
- import { RefObject } from "react";
2
- import { BottomSheetRef } from "../../../BottomSheet/BottomSheet";
1
+ import type { RefObject } from "react";
2
+ import type { BottomSheetRef } from "../../../BottomSheet/BottomSheet";
3
3
  export type BottomSheetOptionsSuffix = "receipt" | "image" | "file" | "video";
4
4
  interface FormatFileBottomSheetProps {
5
5
  readonly bottomSheetRef: RefObject<BottomSheetRef>;
@@ -1,4 +1,4 @@
1
- import { FormattedFile } from "../../types";
1
+ import type { FormattedFile } from "../../types";
2
2
  interface MediaViewProps {
3
3
  readonly accessibilityLabel?: string;
4
4
  readonly showOverlay: boolean;
@@ -1,4 +1,5 @@
1
- import { File, FileUpload, StatusCode } from "../../types";
1
+ import type { File, FileUpload } from "../../types";
2
+ import { StatusCode } from "../../types";
2
3
  export declare const FILE_UPLOAD_MOCK_FILE: ({ progress, status, }: {
3
4
  progress: number;
4
5
  status?: StatusCode;
@@ -1,4 +1,4 @@
1
- import { AtlantisFormatFileContextProps } from "./types";
1
+ import type { AtlantisFormatFileContextProps } from "./types";
2
2
  export declare const formatFileContextDefaultValues: {
3
3
  useCreateThumbnail: () => {
4
4
  thumbnail: undefined;
@@ -1,4 +1,4 @@
1
- import { FormattedFile } from "../types";
1
+ import type { FormattedFile } from "../types";
2
2
  export interface UseCreateThumbnailResponse {
3
3
  readonly thumbnail: string | undefined;
4
4
  readonly error: boolean;