@jobber/components-native 0.84.1-JOB-131539-aa42e78.8 → 0.84.1-scotttho-e5ab79e.5

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 (315) 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/Select/Select.js +2 -2
  17. package/dist/src/Select/components/SelectDefaultPicker/SelectDefaultPicker.js +2 -1
  18. package/dist/src/Text/Text.js +1 -1
  19. package/dist/src/Typography/Typography.js +11 -6
  20. package/dist/src/Typography/Typography.style.js +1 -1
  21. package/dist/src/hooks/useFormController.js +1 -1
  22. package/dist/src/utils/test/MockSafeAreaProvider.js +1 -1
  23. package/dist/tsconfig.json +1 -0
  24. package/dist/tsconfig.tsbuildinfo +1 -1
  25. package/dist/types/src/ActionItem/ActionItem.d.ts +2 -2
  26. package/dist/types/src/ActionItem/ActionItemGroup.d.ts +2 -2
  27. package/dist/types/src/ActionItem/components/ActionItemContainer.d.ts +1 -1
  28. package/dist/types/src/ActionItem/index.d.ts +2 -1
  29. package/dist/types/src/ActionLabel/ActionLabel.d.ts +1 -1
  30. package/dist/types/src/ActionLabel/index.d.ts +2 -1
  31. package/dist/types/src/ActivityIndicator/ActivityIndicator.d.ts +1 -1
  32. package/dist/types/src/AtlantisThemeContext/AtlantisThemeContext.d.ts +1 -1
  33. package/dist/types/src/AtlantisThemeContext/buildThemedStyles.d.ts +1 -1
  34. package/dist/types/src/AtlantisThemeContext/index.d.ts +1 -1
  35. package/dist/types/src/AtlantisThemeContext/types.d.ts +1 -1
  36. package/dist/types/src/AutoLink/AutoLink.d.ts +1 -1
  37. package/dist/types/src/AutoLink/clipboard.d.ts +1 -1
  38. package/dist/types/src/AutoLink/components/ComposeTextWithLinks/ComposeTextWithLinks.d.ts +1 -1
  39. package/dist/types/src/AutoLink/hooks/useCreateLinkedText.d.ts +1 -1
  40. package/dist/types/src/AutoLink/types.d.ts +2 -2
  41. package/dist/types/src/AutoLink/utils.d.ts +2 -2
  42. package/dist/types/src/Banner/Banner.d.ts +1 -1
  43. package/dist/types/src/Banner/components/BannerIcon/BannerIcon.d.ts +2 -2
  44. package/dist/types/src/Banner/types.d.ts +3 -3
  45. package/dist/types/src/BottomSheet/BottomSheet.d.ts +2 -1
  46. package/dist/types/src/BottomSheet/components/BottomSheetOption/BottomSheetOption.d.ts +2 -2
  47. package/dist/types/src/BottomSheet/components/BottomSheetOption/index.d.ts +2 -1
  48. package/dist/types/src/Button/Button.d.ts +4 -4
  49. package/dist/types/src/Button/components/InternalButtonLoading/InternalButtonLoading.d.ts +1 -1
  50. package/dist/types/src/ButtonGroup/ButtonGroup.d.ts +1 -1
  51. package/dist/types/src/ButtonGroup/ButtonGroupAction.d.ts +2 -2
  52. package/dist/types/src/ButtonGroup/components/SecondaryActionSheet/SecondaryActionSheet.d.ts +3 -3
  53. package/dist/types/src/ButtonGroup/types.d.ts +2 -2
  54. package/dist/types/src/ButtonGroup/utils.d.ts +2 -2
  55. package/dist/types/src/Card/Card.d.ts +3 -3
  56. package/dist/types/src/Card/components/InternalCardHeader.d.ts +1 -1
  57. package/dist/types/src/Checkbox/Checkbox.d.ts +1 -1
  58. package/dist/types/src/Checkbox/CheckboxGroup.d.ts +3 -3
  59. package/dist/types/src/Checkbox/CheckboxGroupReducer.d.ts +1 -1
  60. package/dist/types/src/Checkbox/types.d.ts +2 -2
  61. package/dist/types/src/Chip/Chip.d.ts +2 -2
  62. package/dist/types/src/Content/Content.d.ts +2 -2
  63. package/dist/types/src/ContentOverlay/ContentOverlay.d.ts +1 -1
  64. package/dist/types/src/ContentOverlay/hooks/useViewLayoutHeight.d.ts +1 -1
  65. package/dist/types/src/ContentOverlay/types.d.ts +2 -2
  66. package/dist/types/src/EmptyState/EmptyState.d.ts +1 -1
  67. package/dist/types/src/ErrorMessageWrapper/ErrorMessageWrapper.d.ts +1 -1
  68. package/dist/types/src/ErrorMessageWrapper/context/ErrorMessageContext.d.ts +1 -1
  69. package/dist/types/src/ErrorMessageWrapper/context/ErrorMessageProvider.d.ts +1 -1
  70. package/dist/types/src/ErrorMessageWrapper/context/types.d.ts +2 -2
  71. package/dist/types/src/Flex/Flex.d.ts +2 -2
  72. package/dist/types/src/Flex/Flex.styles.d.ts +2 -2
  73. package/dist/types/src/Flex/types.d.ts +1 -1
  74. package/dist/types/src/Form/Form.d.ts +2 -2
  75. package/dist/types/src/Form/components/FormActionBar/FormActionBar.d.ts +1 -1
  76. package/dist/types/src/Form/components/FormBody/FormBody.d.ts +1 -1
  77. package/dist/types/src/Form/components/FormCache/FormCache.d.ts +1 -1
  78. package/dist/types/src/Form/components/FormErrorBanner/FormErrorBanner.d.ts +1 -1
  79. package/dist/types/src/Form/components/FormMessage/FormMessage.d.ts +1 -1
  80. package/dist/types/src/Form/components/FormMessage/components/InternalFormMessage/InternalFormMessage.d.ts +1 -1
  81. package/dist/types/src/Form/components/FormMessageBanner/FormMessageBanner.d.ts +1 -1
  82. package/dist/types/src/Form/components/FormSaveButton/FormSaveButton.d.ts +1 -1
  83. package/dist/types/src/Form/context/AtlantisFormContext.d.ts +1 -1
  84. package/dist/types/src/Form/context/types.d.ts +2 -2
  85. package/dist/types/src/Form/hooks/useFormViewRefs.d.ts +3 -3
  86. package/dist/types/src/Form/hooks/useInternalForm.d.ts +4 -4
  87. package/dist/types/src/Form/hooks/useScreenInformation.d.ts +1 -1
  88. package/dist/types/src/Form/hooks/useScrollToError/useScrollToError.d.ts +2 -2
  89. package/dist/types/src/Form/types.d.ts +4 -4
  90. package/dist/types/src/FormField/FormField.d.ts +1 -1
  91. package/dist/types/src/FormatFile/FormatFile.d.ts +2 -2
  92. package/dist/types/src/FormatFile/components/FileView/FileView.d.ts +1 -1
  93. package/dist/types/src/FormatFile/components/FormatFileBottomSheet/FormatFileBottomSheet.d.ts +2 -2
  94. package/dist/types/src/FormatFile/components/MediaView/MediaView.d.ts +1 -1
  95. package/dist/types/src/FormatFile/components/_mocks/mockFiles.d.ts +2 -1
  96. package/dist/types/src/FormatFile/context/FormatFileContext.d.ts +1 -1
  97. package/dist/types/src/FormatFile/context/types.d.ts +1 -1
  98. package/dist/types/src/FormatFile/index.d.ts +2 -1
  99. package/dist/types/src/FormatFile/utils/computeA11yLabel.d.ts +1 -1
  100. package/dist/types/src/FormatFile/utils/createUseCreateThumbnail.d.ts +2 -2
  101. package/dist/types/src/Heading/Heading.d.ts +1 -1
  102. package/dist/types/src/Icon/Icon.d.ts +1 -1
  103. package/dist/types/src/IconButton/IconButton.d.ts +1 -1
  104. package/dist/types/src/InputCurrency/InputCurrency.d.ts +3 -3
  105. package/dist/types/src/InputDate/InputDate.d.ts +4 -4
  106. package/dist/types/src/InputDate/index.d.ts +2 -1
  107. package/dist/types/src/InputEmail/InputEmail.d.ts +1 -1
  108. package/dist/types/src/InputFieldWrapper/CommonInputStyles.style.d.ts +2 -2
  109. package/dist/types/src/InputFieldWrapper/InputFieldWrapper.d.ts +3 -3
  110. package/dist/types/src/InputFieldWrapper/components/Prefix/Prefix.d.ts +2 -2
  111. package/dist/types/src/InputFieldWrapper/components/Suffix/Suffix.d.ts +2 -2
  112. package/dist/types/src/InputNumber/InputNumber.d.ts +1 -1
  113. package/dist/types/src/InputPassword/InputPassword.d.ts +1 -1
  114. package/dist/types/src/InputPressable/InputPressable.d.ts +6 -5
  115. package/dist/types/src/InputSearch/InputSearch.d.ts +1 -1
  116. package/dist/types/src/InputText/InputText.d.ts +8 -6
  117. package/dist/types/src/InputText/context/InputAccessoriesContext.d.ts +1 -1
  118. package/dist/types/src/InputText/context/InputAccessoriesProvider.d.ts +1 -1
  119. package/dist/types/src/InputTime/InputTime.d.ts +4 -4
  120. package/dist/types/src/Menu/Menu.d.ts +1 -1
  121. package/dist/types/src/Menu/components/MenuOption/MenuOption.d.ts +1 -1
  122. package/dist/types/src/Menu/components/Overlay/Overlay.d.ts +1 -1
  123. package/dist/types/src/Menu/types.d.ts +2 -2
  124. package/dist/types/src/Menu/utils.d.ts +2 -2
  125. package/dist/types/src/ProgressBar/ProgressBar.d.ts +1 -1
  126. package/dist/types/src/ProgressBar/types.d.ts +1 -1
  127. package/dist/types/src/Select/Select.d.ts +2 -2
  128. package/dist/types/src/Select/components/SelectDefaultPicker/SelectDefaultPicker.d.ts +1 -1
  129. package/dist/types/src/Select/components/SelectDefaultPicker/SelectDefaultPicker.ios.d.ts +1 -1
  130. package/dist/types/src/Select/components/SelectIOSPicker/SelectIOSPicker.d.ts +2 -2
  131. package/dist/types/src/Select/components/SelectInternalPicker/SelectInternalPicker.d.ts +1 -1
  132. package/dist/types/src/Select/components/SelectInternalPicker/utils.d.ts +1 -1
  133. package/dist/types/src/Select/components/SelectPressable/SelectPressable.d.ts +2 -2
  134. package/dist/types/src/Select/index.d.ts +2 -1
  135. package/dist/types/src/Select/types.d.ts +1 -1
  136. package/dist/types/src/Switch/Switch.d.ts +2 -2
  137. package/dist/types/src/Switch/index.d.ts +2 -1
  138. package/dist/types/src/Text/Text.d.ts +2 -2
  139. package/dist/types/src/Text/index.d.ts +2 -1
  140. package/dist/types/src/TextList/TextList.d.ts +2 -2
  141. package/dist/types/src/ThumbnailList/ThumbnailList.d.ts +2 -2
  142. package/dist/types/src/ThumbnailList/types.d.ts +1 -1
  143. package/dist/types/src/Toast/Toast.d.ts +1 -1
  144. package/dist/types/src/Typography/Typography.d.ts +1 -1
  145. package/dist/types/src/Typography/Typography.style.d.ts +2 -2
  146. package/dist/types/src/Typography/TypographyGestureDetector.d.ts +1 -1
  147. package/dist/types/src/Typography/webFonts.d.ts +1 -1
  148. package/dist/types/src/hooks/useFormController.d.ts +1 -1
  149. package/dist/types/src/utils/test/MockSafeAreaProvider.d.ts +1 -1
  150. package/package.json +2 -2
  151. package/src/ActionItem/ActionItem.tsx +3 -2
  152. package/src/ActionItem/ActionItemGroup.tsx +3 -2
  153. package/src/ActionItem/components/ActionItemContainer.tsx +2 -1
  154. package/src/ActionItem/index.ts +2 -1
  155. package/src/ActionLabel/ActionLabel.test.tsx +3 -2
  156. package/src/ActionLabel/ActionLabel.tsx +2 -1
  157. package/src/ActionLabel/index.ts +2 -1
  158. package/src/ActivityIndicator/ActivityIndicator.tsx +2 -1
  159. package/src/AtlantisContext/AtlantisContext.test.tsx +3 -2
  160. package/src/AtlantisThemeContext/AtlantisThemeContext.test.tsx +1 -1
  161. package/src/AtlantisThemeContext/AtlantisThemeContext.tsx +1 -1
  162. package/src/AtlantisThemeContext/buildThemedStyles.ts +1 -1
  163. package/src/AtlantisThemeContext/index.ts +1 -1
  164. package/src/AtlantisThemeContext/types.ts +1 -1
  165. package/src/AutoLink/AutoLink.tsx +1 -1
  166. package/src/AutoLink/clipboard.ts +2 -1
  167. package/src/AutoLink/components/ComposeTextWithLinks/ComposeTextWithLinks.tsx +1 -1
  168. package/src/AutoLink/hooks/useCreateLinkedText.ts +2 -1
  169. package/src/AutoLink/types.ts +2 -2
  170. package/src/AutoLink/utils.ts +2 -2
  171. package/src/Banner/Banner.tsx +4 -3
  172. package/src/Banner/components/BannerIcon/BannerIcon.tsx +2 -2
  173. package/src/Banner/types.ts +3 -3
  174. package/src/BottomSheet/BottomSheet.test.tsx +1 -1
  175. package/src/BottomSheet/BottomSheet.tsx +2 -1
  176. package/src/BottomSheet/components/BottomSheetOption/BottomSheetOption.tsx +2 -2
  177. package/src/BottomSheet/components/BottomSheetOption/index.ts +2 -1
  178. package/src/Button/Button.test.tsx +6 -4
  179. package/src/Button/Button.tsx +7 -5
  180. package/src/Button/components/InternalButtonLoading/InternalButtonLoading.test.tsx +1 -1
  181. package/src/Button/components/InternalButtonLoading/InternalButtonLoading.tsx +1 -1
  182. package/src/ButtonGroup/ButtonGroup.test.tsx +2 -1
  183. package/src/ButtonGroup/ButtonGroup.tsx +2 -2
  184. package/src/ButtonGroup/ButtonGroupAction.tsx +2 -2
  185. package/src/ButtonGroup/components/SecondaryActionSheet/SecondaryActionSheet.tsx +5 -3
  186. package/src/ButtonGroup/types.ts +2 -2
  187. package/src/ButtonGroup/utils.ts +3 -6
  188. package/src/Card/Card.tsx +6 -6
  189. package/src/Card/components/InternalCardHeader.tsx +2 -1
  190. package/src/Checkbox/Checkbox.tsx +3 -2
  191. package/src/Checkbox/CheckboxGroup.test.tsx +3 -7
  192. package/src/Checkbox/CheckboxGroup.tsx +4 -3
  193. package/src/Checkbox/CheckboxGroupReducer.test.ts +1 -1
  194. package/src/Checkbox/CheckboxGroupReducer.ts +4 -1
  195. package/src/Checkbox/types.ts +2 -2
  196. package/src/Chip/Chip.tsx +3 -2
  197. package/src/Content/Content.test.tsx +3 -2
  198. package/src/Content/Content.tsx +4 -2
  199. package/src/ContentOverlay/ContentOverlay.test.tsx +4 -6
  200. package/src/ContentOverlay/ContentOverlay.tsx +3 -4
  201. package/src/ContentOverlay/hooks/useKeyboardVisibility.test.ts +2 -1
  202. package/src/ContentOverlay/hooks/useKeyboardVisibility.ts +2 -1
  203. package/src/ContentOverlay/hooks/useViewLayoutHeight.test.ts +1 -1
  204. package/src/ContentOverlay/hooks/useViewLayoutHeight.ts +1 -1
  205. package/src/ContentOverlay/types.ts +2 -2
  206. package/src/Disclosure/Disclosure.test.tsx +1 -1
  207. package/src/Disclosure/Disclosure.tsx +2 -1
  208. package/src/EmptyState/EmptyState.test.tsx +2 -1
  209. package/src/EmptyState/EmptyState.tsx +3 -2
  210. package/src/ErrorMessageWrapper/ErrorMessageWrapper.tsx +4 -2
  211. package/src/ErrorMessageWrapper/context/ErrorMessageContext.tsx +1 -1
  212. package/src/ErrorMessageWrapper/context/ErrorMessageProvider.tsx +5 -8
  213. package/src/ErrorMessageWrapper/context/types.ts +2 -2
  214. package/src/Flex/Flex.styles.tsx +4 -2
  215. package/src/Flex/Flex.test.tsx +4 -3
  216. package/src/Flex/Flex.tsx +3 -2
  217. package/src/Flex/types.ts +1 -1
  218. package/src/Form/Form.test.tsx +4 -2
  219. package/src/Form/Form.tsx +6 -10
  220. package/src/Form/components/FormActionBar/FormActionBar.tsx +3 -2
  221. package/src/Form/components/FormBody/FormBody.tsx +2 -1
  222. package/src/Form/components/FormCache/FormCache.tsx +2 -1
  223. package/src/Form/components/FormErrorBanner/FormErrorBanner.tsx +1 -1
  224. package/src/Form/components/FormMessage/FormMessage.tsx +1 -1
  225. package/src/Form/components/FormMessage/components/InternalFormMessage/InternalFormMessage.tsx +2 -1
  226. package/src/Form/components/FormMessageBanner/FormMessageBanner.tsx +4 -2
  227. package/src/Form/components/FormSaveButton/FormSaveButton.test.tsx +1 -1
  228. package/src/Form/components/FormSaveButton/FormSaveButton.tsx +3 -5
  229. package/src/Form/context/AtlantisFormContext.test.tsx +3 -2
  230. package/src/Form/context/AtlantisFormContext.tsx +1 -1
  231. package/src/Form/context/types.ts +2 -2
  232. package/src/Form/hooks/useFormViewRefs.ts +4 -3
  233. package/src/Form/hooks/useInternalForm.ts +5 -5
  234. package/src/Form/hooks/useScreenInformation.ts +2 -1
  235. package/src/Form/hooks/useScrollToError/useScrollToError.ts +9 -7
  236. package/src/Form/types.ts +4 -4
  237. package/src/FormField/FormField.tsx +1 -1
  238. package/src/FormatFile/FormatFile.test.tsx +7 -4
  239. package/src/FormatFile/FormatFile.tsx +5 -12
  240. package/src/FormatFile/components/FileView/FileView.tsx +3 -2
  241. package/src/FormatFile/components/FormatFileBottomSheet/FormatFileBottomSheet.test.tsx +5 -6
  242. package/src/FormatFile/components/FormatFileBottomSheet/FormatFileBottomSheet.tsx +4 -2
  243. package/src/FormatFile/components/MediaView/MediaView.tsx +2 -1
  244. package/src/FormatFile/components/_mocks/mockFiles.ts +2 -1
  245. package/src/FormatFile/context/FormatFileContext.ts +1 -1
  246. package/src/FormatFile/context/types.ts +1 -1
  247. package/src/FormatFile/index.ts +2 -1
  248. package/src/FormatFile/utils/computeA11yLabel.ts +1 -1
  249. package/src/FormatFile/utils/createUseCreateThumbnail.ts +2 -2
  250. package/src/Glimmer/Glimmer.tsx +2 -1
  251. package/src/Heading/Heading.tsx +2 -2
  252. package/src/Icon/Icon.tsx +2 -1
  253. package/src/IconButton/IconButton.tsx +1 -1
  254. package/src/InputCurrency/InputCurrency.test.tsx +1 -1
  255. package/src/InputCurrency/InputCurrency.tsx +5 -3
  256. package/src/InputDate/InputDate.tsx +4 -4
  257. package/src/InputDate/index.ts +2 -1
  258. package/src/InputEmail/InputEmail.tsx +4 -2
  259. package/src/InputFieldWrapper/CommonInputStyles.style.ts +4 -5
  260. package/src/InputFieldWrapper/InputFieldWrapper.test.tsx +6 -12
  261. package/src/InputFieldWrapper/InputFieldWrapper.tsx +6 -10
  262. package/src/InputFieldWrapper/components/Prefix/Prefix.test.tsx +3 -4
  263. package/src/InputFieldWrapper/components/Prefix/Prefix.tsx +3 -8
  264. package/src/InputFieldWrapper/components/Suffix/Suffix.test.tsx +3 -7
  265. package/src/InputFieldWrapper/components/Suffix/Suffix.tsx +3 -8
  266. package/src/InputNumber/InputNumber.tsx +4 -2
  267. package/src/InputPassword/InputPassword.test.tsx +1 -1
  268. package/src/InputPassword/InputPassword.tsx +5 -3
  269. package/src/InputPressable/InputPressable.test.tsx +1 -1
  270. package/src/InputPressable/InputPressable.tsx +7 -5
  271. package/src/InputSearch/InputSearch.tsx +4 -2
  272. package/src/InputText/InputText.test.tsx +7 -8
  273. package/src/InputText/InputText.tsx +8 -9
  274. package/src/InputText/context/InputAccessoriesContext.ts +1 -1
  275. package/src/InputText/context/InputAccessoriesProvider.tsx +2 -1
  276. package/src/InputTime/InputTime.tsx +4 -4
  277. package/src/InputTime/utils/utils.test.ts +2 -5
  278. package/src/Menu/Menu.test.tsx +2 -1
  279. package/src/Menu/Menu.tsx +2 -2
  280. package/src/Menu/components/MenuOption/MenuOption.tsx +1 -1
  281. package/src/Menu/components/Overlay/Overlay.tsx +1 -1
  282. package/src/Menu/types.ts +2 -2
  283. package/src/Menu/utils.ts +2 -2
  284. package/src/ProgressBar/ProgressBar.test.tsx +2 -1
  285. package/src/ProgressBar/ProgressBar.tsx +1 -1
  286. package/src/ProgressBar/types.ts +1 -1
  287. package/src/Select/Select.test.tsx +2 -1
  288. package/src/Select/Select.tsx +6 -3
  289. package/src/Select/components/SelectDefaultPicker/SelectDefaultPicker.ios.tsx +1 -1
  290. package/src/Select/components/SelectDefaultPicker/SelectDefaultPicker.tsx +2 -2
  291. package/src/Select/components/SelectIOSPicker/SelectIOSPicker.tsx +3 -2
  292. package/src/Select/components/SelectInternalPicker/SelectInternalPicker.test.tsx +3 -2
  293. package/src/Select/components/SelectInternalPicker/SelectInternalPicker.tsx +1 -1
  294. package/src/Select/components/SelectInternalPicker/utils.ts +1 -1
  295. package/src/Select/components/SelectPressable/SelectPressable.tsx +3 -2
  296. package/src/Select/index.ts +2 -1
  297. package/src/Select/types.ts +1 -1
  298. package/src/Switch/Switch.test.tsx +1 -1
  299. package/src/Switch/Switch.tsx +3 -2
  300. package/src/Switch/index.ts +2 -1
  301. package/src/Text/Text.test.tsx +23 -0
  302. package/src/Text/Text.tsx +3 -3
  303. package/src/Text/index.ts +2 -1
  304. package/src/TextList/TextList.tsx +4 -2
  305. package/src/ThumbnailList/ThumbnailList.test.tsx +1 -1
  306. package/src/ThumbnailList/ThumbnailList.tsx +4 -2
  307. package/src/ThumbnailList/types.ts +1 -1
  308. package/src/Toast/Toast.tsx +2 -1
  309. package/src/Typography/Typography.style.ts +4 -5
  310. package/src/Typography/Typography.test.tsx +27 -0
  311. package/src/Typography/Typography.tsx +29 -25
  312. package/src/Typography/TypographyGestureDetector.tsx +2 -1
  313. package/src/Typography/webFonts.ts +1 -1
  314. package/src/hooks/useFormController.ts +2 -4
  315. package/src/utils/test/MockSafeAreaProvider.tsx +2 -5
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components-native",
3
- "version": "0.84.1-JOB-131539-aa42e78.8+aa42e786",
3
+ "version": "0.84.1-scotttho-e5ab79e.5+e5ab79e22",
4
4
  "license": "MIT",
5
5
  "description": "React Native implementation of Atlantis",
6
6
  "repository": {
@@ -79,5 +79,5 @@
79
79
  "react-native-safe-area-context": "^5.4.0",
80
80
  "react-native-svg": ">=12.0.0"
81
81
  },
82
- "gitHead": "aa42e7869a6ef4352d1f35e348f11ef95c53df0c"
82
+ "gitHead": "e5ab79e22a44c39d9568e9b89af971df893fbe8c"
83
83
  }
@@ -1,6 +1,6 @@
1
1
  import React, { useCallback } from "react";
2
2
  import { Alert } from "react-native";
3
- import { PrimaryAction, SecondaryAction, } from "./ButtonGroupAction";
3
+ import { PrimaryAction, SecondaryAction } from "./ButtonGroupAction";
4
4
  import { useAtlantisContext } from "../AtlantisContext/AtlantisContext";
5
5
  import { useAtlantisI18n } from "../hooks/useAtlantisI18n";
6
6
  /**
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { Pressable, View, } from "react-native";
2
+ import { Pressable, View } from "react-native";
3
3
  import { useStyles } from "./Card.style";
4
4
  import { InternalCardHeader } from "./components/InternalCardHeader";
5
5
  import { ErrorMessageWrapper } from "../ErrorMessageWrapper";
@@ -1,5 +1,5 @@
1
1
  import React, { useState } from "react";
2
- import { AccessibilityInfo, findNodeHandle, } from "react-native";
2
+ import { AccessibilityInfo, findNodeHandle } from "react-native";
3
3
  import { ErrorMessageContext } from "./ErrorMessageContext";
4
4
  export function ErrorMessageProvider({ children, }) {
5
5
  const [elements, setElements] = useState({});
@@ -21,12 +21,12 @@ var __rest = (this && this.__rest) || function (s, e) {
21
21
  import React, { useState } from "react";
22
22
  import { FormProvider } from "react-hook-form";
23
23
  import { KeyboardAwareScrollView } from "react-native-keyboard-aware-scroll-view";
24
- import { Keyboard, Platform, View, findNodeHandle, } from "react-native";
24
+ import { Keyboard, Platform, View, findNodeHandle } from "react-native";
25
25
  import { useStyles } from "./Form.style";
26
26
  import { FormErrorBanner } from "./components/FormErrorBanner";
27
27
  import { KEYBOARD_SAVE_BUTTON_DISTANCE } from "./constants";
28
28
  import { FormMessageBanner } from "./components/FormMessageBanner";
29
- import { FormSubmitErrorType, } from "./types";
29
+ import { FormSubmitErrorType } from "./types";
30
30
  import { FormMask } from "./components/FormMask";
31
31
  import { useInternalForm } from "./hooks/useInternalForm";
32
32
  import { useFormViewRefs } from "./hooks/useFormViewRefs";
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import React from "react";
11
11
  import { useFormContext } from "react-hook-form";
12
- import { ButtonGroup, } from "../../../ButtonGroup";
12
+ import { ButtonGroup } from "../../../ButtonGroup";
13
13
  import { useAtlantisI18n } from "../../../hooks/useAtlantisI18n";
14
14
  export function FormSaveButton({ primaryAction, loading, label, secondaryActions, setSecondaryActionLoading, onOpenBottomSheet, onCloseBottomSheet, }) {
15
15
  const { t } = useAtlantisI18n();
@@ -1,4 +1,4 @@
1
- import { useForm, } from "react-hook-form";
1
+ import { useForm } from "react-hook-form";
2
2
  import { useAtlantisContext } from "../../AtlantisContext";
3
3
  import { useAtlantisFormContext } from "../context/AtlantisFormContext";
4
4
  export function useInternalForm({ mode, reValidateMode, initialValues, formRef, localCacheKey, localCacheId, scrollViewRef, saveButtonHeight, messageBannerHeight, }) {
@@ -1,5 +1,5 @@
1
1
  import { useCallback, useState } from "react";
2
- import { Keyboard, Platform, } from "react-native";
2
+ import { Keyboard, Platform } from "react-native";
3
3
  import { useIsScreenReaderEnabled } from "../../../hooks";
4
4
  import { useErrorMessageContext } from "../../../ErrorMessageWrapper";
5
5
  export function useScrollToError({ formState: { errors, isValid, submitCount }, refNode, setFocus, scrollToPosition, }) {
@@ -11,10 +11,10 @@ import React, { createRef, useCallback, useState } from "react";
11
11
  import { TouchableOpacity, View } from "react-native";
12
12
  import { useStyles } from "./FormatFile.style";
13
13
  import { MediaView } from "./components/MediaView";
14
- import { FormatFileBottomSheet, } from "./components/FormatFileBottomSheet";
14
+ import { FormatFileBottomSheet } from "./components/FormatFileBottomSheet";
15
15
  import { FileView } from "./components/FileView";
16
16
  import { acceptedExtensions, videoExtensions } from "./constants";
17
- import { StatusCode, } from "./types";
17
+ import { StatusCode } from "./types";
18
18
  import { AtlantisFormatFileContext } from "./context/FormatFileContext";
19
19
  import { createUseCreateThumbnail } from "./utils/createUseCreateThumbnail";
20
20
  import { useAtlantisI18n } from "../hooks/useAtlantisI18n";
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { Typography, } from "../Typography";
2
+ import { Typography } from "../Typography";
3
3
  import { tokens } from "../utils/design";
4
4
  export const HEADING_MAX_SCALED_FONT_SIZE = {
5
5
  subHeading: tokens["typography--fontSize-base"] * 1.375,
@@ -1,5 +1,5 @@
1
1
  import { StyleSheet } from "react-native";
2
- import { buildThemedStyles, } from "../AtlantisThemeContext";
2
+ import { buildThemedStyles } from "../AtlantisThemeContext";
3
3
  import { getTypographyStyles } from "../Typography";
4
4
  import { tokens as staticTokens } from "../utils/design";
5
5
  export const createCommonInputTokens = (tokens) => {
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { Text as RNText, View, } from "react-native";
2
+ import { Text as RNText, View } from "react-native";
3
3
  import { useStyles } from "./InputFieldWrapper.style";
4
4
  import { PrefixIcon, PrefixLabel } from "./components/Prefix/Prefix";
5
5
  import { SuffixIcon, SuffixLabel } from "./components/Suffix/Suffix";
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { Text as RNText, View, } from "react-native";
2
+ import { Text as RNText, View } from "react-native";
3
3
  import { Icon } from "../../../Icon";
4
4
  import { Text } from "../../../Text";
5
5
  import { useAtlantisTheme } from "../../../AtlantisThemeContext";
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { Pressable, Text as RNText, View, } from "react-native";
2
+ import { Pressable, Text as RNText, View } from "react-native";
3
3
  import { Icon } from "../../../Icon";
4
4
  import { Text } from "../../../Text";
5
5
  import { useTypographyStyles } from "../../../Typography";
@@ -1,5 +1,5 @@
1
1
  import React, { forwardRef, useEffect, useImperativeHandle, useMemo, useRef, useState, } from "react";
2
- import { Platform, TextInput, } from "react-native";
2
+ import { Platform, TextInput } from "react-native";
3
3
  import identity from "lodash/identity";
4
4
  import { useShowClear } from "@jobber/hooks";
5
5
  import { useStyles } from "./InputText.style";
@@ -28,10 +28,10 @@ export function Select({ value, defaultValue, onChange, children, placeholder, l
28
28
  React.createElement(View, { testID: getTestID(testID), accessible: true, accessibilityLabel: getA11yLabel(), accessibilityValue: { text: getValue() }, accessibilityHint: t("Select.a11yHint"), accessibilityRole: "button", accessibilityState: { disabled: disabled } },
29
29
  React.createElement(SelectInternalPicker, { disabled: disabled, options: getOptions(), onChange: handleChange },
30
30
  React.createElement(View, { style: [styles.container, (invalid || !!error) && styles.invalid] },
31
- label && (React.createElement(Text, { level: "textSupporting", variation: textVariation, hideFromScreenReader: true }, label)),
31
+ label && (React.createElement(Text, { level: "textSupporting", variation: textVariation, hideFromScreenReader: true, selectable: false }, label)),
32
32
  React.createElement(View, { style: styles.input },
33
33
  React.createElement(View, { style: styles.value },
34
- React.createElement(Text, { variation: disabled ? "disabled" : "base", hideFromScreenReader: true }, getValue())),
34
+ React.createElement(Text, { variation: disabled ? "disabled" : "base", hideFromScreenReader: true, selectable: false }, getValue())),
35
35
  React.createElement(View, { style: styles.icon },
36
36
  React.createElement(Icon, { name: "arrowDown", color: valueTextVariation }))))))));
37
37
  function getA11yLabel() {
@@ -4,10 +4,11 @@ import { styles } from "./SelectDefaultPicker.style";
4
4
  import { SelectPressable } from "../SelectPressable";
5
5
  import { useAtlantisTheme } from "../../../AtlantisThemeContext";
6
6
  export function SelectDefaultPicker({ children, options, disabled, onChange, }) {
7
+ var _a;
7
8
  const selectedItem = options.find(option => option.isActive);
8
9
  const pickerRef = useRef(null);
9
10
  const { tokens } = useAtlantisTheme();
10
- return (React.createElement(SelectPressable, { onPress: () => { var _a; return (_a = pickerRef.current) === null || _a === void 0 ? void 0 : _a.focus(); } },
11
+ return (React.createElement(SelectPressable, { onPress: (_a = pickerRef.current) === null || _a === void 0 ? void 0 : _a.focus },
11
12
  children,
12
13
  React.createElement(Picker, { ref: pickerRef, selectedValue: selectedItem === null || selectedItem === void 0 ? void 0 : selectedItem.value, onValueChange: onChange, mode: "dropdown", enabled: !disabled, style: styles.androidPickerContainer }, options.map(({ label, value, isActive }, i) => (React.createElement(Picker.Item, { key: i, label: label, value: value, color: isSelected(isActive) }))))));
13
14
  function isSelected(isActive) {
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { Typography, } from "../Typography";
2
+ import { Typography } from "../Typography";
3
3
  import { tokens } from "../utils/design";
4
4
  const levelStyles = {
5
5
  text: {
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { I18nManager, StyleSheet, Text, } from "react-native";
2
+ import { I18nManager, StyleSheet, Text } from "react-native";
3
3
  import { TypographyGestureDetector } from "./TypographyGestureDetector";
4
4
  import { useTypographyStyles } from "./Typography.style";
5
5
  import { capitalize } from "../utils/intl";
@@ -47,11 +47,16 @@ function InternalTypography({ fontFamily, fontStyle, fontWeight, transform, colo
47
47
  }
48
48
  : { accessibilityRole };
49
49
  const { tokens } = useAtlantisTheme();
50
- return (React.createElement(TypographyGestureDetector, null,
51
- React.createElement(Text, Object.assign({ allowFontScaling,
52
- adjustsFontSizeToFit,
53
- style,
54
- numberOfLines: numberOfLinesForNativeText }, accessibilityProps, { maxFontSizeMultiplier: getScaleMultiplier(maxFontScaleSize, sizeAndHeight.fontSize), selectable: selectable, selectionColor: tokens["color-brand--highlight"], onTextLayout: onTextLayout }), text)));
50
+ const textComponent = (React.createElement(Text, Object.assign({ allowFontScaling,
51
+ adjustsFontSizeToFit,
52
+ style,
53
+ numberOfLines: numberOfLinesForNativeText }, accessibilityProps, { maxFontSizeMultiplier: getScaleMultiplier(maxFontScaleSize, sizeAndHeight.fontSize), selectable: selectable, selectionColor: tokens["color-brand--highlight"], onTextLayout: onTextLayout }), text));
54
+ // If text is not selectable, there's no need for TypographyGestureDetector
55
+ // since it only prevents accidental highlighting of selectable text
56
+ if (!selectable) {
57
+ return textComponent;
58
+ }
59
+ return React.createElement(TypographyGestureDetector, null, textComponent);
55
60
  }
56
61
  function getScaleMultiplier(maxFontScaleSize = 0, size = 1) {
57
62
  if (maxFontScaleSize === 0)
@@ -1,7 +1,7 @@
1
1
  import { Platform, StyleSheet } from "react-native";
2
2
  import { webFonts } from "./webFonts";
3
3
  import { tokens as staticTokens } from "../utils/design";
4
- import { buildThemedStyles, } from "../AtlantisThemeContext";
4
+ import { buildThemedStyles } from "../AtlantisThemeContext";
5
5
  const extravagantLineHeight = staticTokens["typography--lineHeight-extravagant"];
6
6
  const jumboLineHeight = staticTokens["typography--lineHeight-jumbo"];
7
7
  const largestLineHeight = staticTokens["typography--lineHeight-largest"];
@@ -1,5 +1,5 @@
1
1
  import { v1 } from "react-native-uuid";
2
- import { useController, useForm, useFormContext, } from "react-hook-form";
2
+ import { useController, useForm, useFormContext } from "react-hook-form";
3
3
  import { useState } from "react";
4
4
  export function useFormController({ name, value, validations, }) {
5
5
  var _a, _b;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { SafeAreaProvider, } from "react-native-safe-area-context";
2
+ import { SafeAreaProvider } from "react-native-safe-area-context";
3
3
  export function MockSafeAreaProvider({ frame, insets, children, }) {
4
4
  const initialFrame = { x: 0, y: 0, width: 0, height: 0 };
5
5
  const initialInsets = { bottom: 50, top: 50, left: 0, right: 0 };
@@ -28,6 +28,7 @@
28
28
  "exclude": [
29
29
  "node_modules",
30
30
  "dist/**/*",
31
+ "tsconfig.eslint.json",
31
32
  "**/*.test.ts",
32
33
  "**/*.test.tsx",
33
34
  ],