@jobber/components-native 0.84.4-JOB-124066-166e539.11 → 0.84.4-JOB-138679-b1552ab.68

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 (278) hide show
  1. package/dist/package.json +24 -15
  2. package/dist/src/ActionItem/ActionItemGroup.js +1 -1
  3. package/dist/src/AutoLink/components/Link/Link.js +1 -1
  4. package/dist/src/Banner/Banner.js +2 -0
  5. package/dist/src/Banner/components/BannerIcon/BannerIcon.style.js +3 -0
  6. package/dist/src/BottomSheet/BottomSheet.js +2 -2
  7. package/dist/src/Button/components/InternalButtonLoading/InternalButtonLoading.js +0 -1
  8. package/dist/src/ButtonGroup/ButtonGroup.js +1 -1
  9. package/dist/src/ContentOverlay/ContentOverlay.js +5 -7
  10. package/dist/src/ContentOverlay/UNSAFE_WrappedModalize.js +23 -0
  11. package/dist/src/ErrorMessageWrapper/context/ErrorMessageProvider.js +1 -1
  12. package/dist/src/Form/Form.js +5 -2
  13. package/dist/src/Form/components/FormCache/FormCache.js +1 -0
  14. package/dist/src/Form/components/FormMessageBanner/FormMessageBanner.js +1 -1
  15. package/dist/src/Form/context/AtlantisFormContext.js +1 -0
  16. package/dist/src/Form/hooks/useInternalForm.js +6 -3
  17. package/dist/src/FormatFile/components/MediaView/MediaView.js +22 -5
  18. package/dist/src/FormatFile/utils/createUseCreateThumbnail.js +1 -1
  19. package/dist/src/InputCurrency/InputCurrency.js +42 -30
  20. package/dist/src/InputDate/InputDate.js +2 -2
  21. package/dist/src/InputEmail/InputEmail.js +12 -4
  22. package/dist/src/InputFieldWrapper/InputFieldWrapper.js +14 -12
  23. package/dist/src/InputFieldWrapper/InputFieldWrapper.style.js +1 -1
  24. package/dist/src/InputFieldWrapper/components/Prefix/Prefix.js +5 -2
  25. package/dist/src/InputFieldWrapper/components/Suffix/Suffix.js +5 -2
  26. package/dist/src/InputNumber/InputNumber.js +10 -4
  27. package/dist/src/InputPressable/InputPressable.js +20 -8
  28. package/dist/src/InputPressable/InputPressable.style.js +3 -0
  29. package/dist/src/InputSearch/InputSearch.js +1 -1
  30. package/dist/src/InputText/InputText.js +22 -11
  31. package/dist/src/InputText/InputText.style.js +4 -0
  32. package/dist/src/InputTime/InputTime.js +2 -2
  33. package/dist/src/Menu/Menu.js +2 -2
  34. package/dist/src/Select/Select.style.js +1 -0
  35. package/dist/src/Select/components/SelectPressable/SelectPressable.js +1 -1
  36. package/dist/src/Switch/components/BaseSwitch/BaseSwitch.js +7 -1
  37. package/dist/src/Typography/Typography.js +16 -5
  38. package/dist/src/hooks/useAtlantisI18n/locales/en.json +1 -0
  39. package/dist/src/hooks/useAtlantisI18n/locales/es.json +1 -0
  40. package/dist/src/hooks/useFormController.js +5 -14
  41. package/dist/tsconfig.build.json +7 -0
  42. package/dist/tsconfig.build.tsbuildinfo +1 -0
  43. package/dist/tsconfig.json +4 -6
  44. package/dist/types/src/ActionItem/ActionItem.d.ts +2 -1
  45. package/dist/types/src/ActionItem/ActionItemGroup.d.ts +2 -1
  46. package/dist/types/src/ActionItem/components/ActionItemContainer.d.ts +2 -1
  47. package/dist/types/src/ActionLabel/ActionLabel.d.ts +4 -3
  48. package/dist/types/src/ActivityIndicator/ActivityIndicator.d.ts +2 -1
  49. package/dist/types/src/AutoLink/AutoLink.d.ts +2 -1
  50. package/dist/types/src/AutoLink/components/ComposeTextWithLinks/ComposeTextWithLinks.d.ts +2 -1
  51. package/dist/types/src/AutoLink/components/Link/Link.d.ts +2 -1
  52. package/dist/types/src/Banner/Banner.d.ts +2 -1
  53. package/dist/types/src/Banner/components/BannerIcon/BannerIcon.d.ts +2 -1
  54. package/dist/types/src/Banner/components/BannerIcon/BannerIcon.style.d.ts +3 -0
  55. package/dist/types/src/Banner/types.d.ts +1 -1
  56. package/dist/types/src/BottomSheet/BottomSheet.d.ts +1 -1
  57. package/dist/types/src/BottomSheet/components/BottomSheetOption/BottomSheetOption.d.ts +2 -1
  58. package/dist/types/src/Button/Button.d.ts +2 -1
  59. package/dist/types/src/Button/components/InternalButtonLoading/InternalButtonLoading.d.ts +1 -1
  60. package/dist/types/src/ButtonGroup/ButtonGroup.d.ts +2 -1
  61. package/dist/types/src/ButtonGroup/ButtonGroupAction.d.ts +4 -3
  62. package/dist/types/src/ButtonGroup/components/SecondaryActionSheet/SecondaryActionSheet.d.ts +3 -2
  63. package/dist/types/src/Card/Card.d.ts +2 -1
  64. package/dist/types/src/Card/components/InternalCardHeader.d.ts +2 -1
  65. package/dist/types/src/Checkbox/Checkbox.d.ts +2 -1
  66. package/dist/types/src/Checkbox/CheckboxGroup.d.ts +2 -1
  67. package/dist/types/src/Chip/Chip.d.ts +2 -1
  68. package/dist/types/src/Content/Content.d.ts +2 -1
  69. package/dist/types/src/ContentOverlay/ContentOverlay.d.ts +1 -1
  70. package/dist/types/src/ContentOverlay/UNSAFE_WrappedModalize.d.ts +3 -0
  71. package/dist/types/src/Disclosure/Disclosure.d.ts +1 -1
  72. package/dist/types/src/Divider/Divider.d.ts +2 -1
  73. package/dist/types/src/EmptyState/EmptyState.d.ts +2 -1
  74. package/dist/types/src/ErrorMessageWrapper/ErrorMessageWrapper.d.ts +2 -1
  75. package/dist/types/src/ErrorMessageWrapper/context/ErrorMessageProvider.d.ts +2 -1
  76. package/dist/types/src/ErrorMessageWrapper/context/types.d.ts +1 -1
  77. package/dist/types/src/Flex/Flex.d.ts +2 -1
  78. package/dist/types/src/Form/Form.d.ts +2 -1
  79. package/dist/types/src/Form/components/FormActionBar/FormActionBar.d.ts +3 -2
  80. package/dist/types/src/Form/components/FormBody/FormBody.d.ts +3 -2
  81. package/dist/types/src/Form/components/FormCache/FormCache.d.ts +4 -3
  82. package/dist/types/src/Form/components/FormErrorBanner/FormErrorBanner.d.ts +2 -1
  83. package/dist/types/src/Form/components/FormMask/FormMask.d.ts +2 -1
  84. package/dist/types/src/Form/components/FormMessage/FormMessage.d.ts +2 -1
  85. package/dist/types/src/Form/components/FormMessage/components/InternalFormMessage/InternalFormMessage.d.ts +2 -1
  86. package/dist/types/src/Form/components/FormMessageBanner/FormMessageBanner.d.ts +2 -1
  87. package/dist/types/src/Form/components/FormSaveButton/FormSaveButton.d.ts +2 -1
  88. package/dist/types/src/Form/context/AtlantisFormContext.d.ts +2 -1
  89. package/dist/types/src/Form/context/types.d.ts +3 -2
  90. package/dist/types/src/Form/hooks/useFormViewRefs.d.ts +2 -2
  91. package/dist/types/src/Form/hooks/useInternalForm.d.ts +5 -5
  92. package/dist/types/src/Form/types.d.ts +13 -7
  93. package/dist/types/src/FormField/FormField.d.ts +1 -1
  94. package/dist/types/src/FormatFile/FormatFile.d.ts +2 -1
  95. package/dist/types/src/FormatFile/components/ErrorIcon/ErrorIcon.d.ts +2 -1
  96. package/dist/types/src/FormatFile/components/FileView/FileView.d.ts +2 -1
  97. package/dist/types/src/FormatFile/components/FormatFileBottomSheet/FormatFileBottomSheet.d.ts +3 -2
  98. package/dist/types/src/FormatFile/components/MediaView/MediaView.d.ts +2 -1
  99. package/dist/types/src/FormatFile/components/ProgressBar/ProgressBar.d.ts +2 -1
  100. package/dist/types/src/Heading/Heading.d.ts +4 -3
  101. package/dist/types/src/Icon/Icon.d.ts +2 -1
  102. package/dist/types/src/IconButton/IconButton.d.ts +1 -1
  103. package/dist/types/src/InputCurrency/InputCurrency.d.ts +2 -1
  104. package/dist/types/src/InputDate/InputDate.d.ts +4 -2
  105. package/dist/types/src/InputFieldWrapper/InputFieldWrapper.d.ts +9 -2
  106. package/dist/types/src/InputFieldWrapper/InputFieldWrapper.style.d.ts +1 -1
  107. package/dist/types/src/InputFieldWrapper/components/ClearAction/ClearAction.d.ts +2 -1
  108. package/dist/types/src/InputFieldWrapper/components/Prefix/Prefix.d.ts +4 -4
  109. package/dist/types/src/InputFieldWrapper/components/Suffix/Suffix.d.ts +4 -4
  110. package/dist/types/src/InputPressable/InputPressable.d.ts +9 -1
  111. package/dist/types/src/InputPressable/InputPressable.style.d.ts +3 -0
  112. package/dist/types/src/InputSearch/InputSearch.d.ts +1 -1
  113. package/dist/types/src/InputSearch/components/FilterButton.d.ts +2 -1
  114. package/dist/types/src/InputText/InputText.d.ts +10 -2
  115. package/dist/types/src/InputText/InputText.style.d.ts +4 -0
  116. package/dist/types/src/InputText/context/InputAccessoriesProvider.d.ts +2 -1
  117. package/dist/types/src/InputTime/InputTime.d.ts +4 -2
  118. package/dist/types/src/Menu/Menu.d.ts +2 -1
  119. package/dist/types/src/Menu/components/MenuOption/MenuOption.d.ts +2 -1
  120. package/dist/types/src/Menu/components/Overlay/Overlay.d.ts +2 -1
  121. package/dist/types/src/Menu/types.d.ts +6 -1
  122. package/dist/types/src/ProgressBar/ProgressBar.d.ts +2 -1
  123. package/dist/types/src/ProgressBar/ProgressBarInner.d.ts +2 -1
  124. package/dist/types/src/Select/Select.d.ts +3 -2
  125. package/dist/types/src/Select/components/SelectDefaultPicker/SelectDefaultPicker.d.ts +2 -1
  126. package/dist/types/src/Select/components/SelectDefaultPicker/SelectDefaultPicker.ios.d.ts +2 -1
  127. package/dist/types/src/Select/components/SelectInternalPicker/SelectInternalPicker.d.ts +2 -1
  128. package/dist/types/src/Select/components/SelectPressable/SelectPressable.d.ts +2 -1
  129. package/dist/types/src/StatusLabel/StatusLabel.d.ts +2 -1
  130. package/dist/types/src/Switch/Switch.d.ts +2 -1
  131. package/dist/types/src/Switch/components/BaseSwitch/BaseSwitch.d.ts +2 -1
  132. package/dist/types/src/Text/Text.d.ts +4 -3
  133. package/dist/types/src/TextList/TextList.d.ts +2 -1
  134. package/dist/types/src/ThumbnailList/ThumbnailList.d.ts +2 -1
  135. package/dist/types/src/Toast/Toast.d.ts +2 -1
  136. package/dist/types/src/Typography/Typography.d.ts +3 -3
  137. package/dist/types/src/Typography/TypographyGestureDetector.d.ts +2 -1
  138. package/dist/types/src/utils/test/MockSafeAreaProvider.d.ts +1 -1
  139. package/package.json +24 -15
  140. package/src/ActionItem/ActionItem.tsx +1 -1
  141. package/src/ActionItem/ActionItemGroup.tsx +1 -3
  142. package/src/ActionItem/components/ActionItemContainer.tsx +1 -1
  143. package/src/ActionLabel/ActionLabel.test.tsx +12 -0
  144. package/src/ActionLabel/ActionLabel.tsx +3 -3
  145. package/src/ActionLabel/__snapshots__/ActionLabel.test.tsx.snap +66 -0
  146. package/src/ActivityIndicator/ActivityIndicator.tsx +1 -3
  147. package/src/AtlantisContext/AtlantisContext.test.tsx +1 -1
  148. package/src/AtlantisThemeContext/AtlantisThemeContext.test.tsx +5 -5
  149. package/src/AutoLink/AutoLink.test.tsx +2 -4
  150. package/src/AutoLink/AutoLink.tsx +1 -1
  151. package/src/AutoLink/components/ComposeTextWithLinks/ComposeTextWithLinks.tsx +1 -1
  152. package/src/AutoLink/components/Link/Link.tsx +1 -5
  153. package/src/Banner/Banner.test.tsx +12 -0
  154. package/src/Banner/Banner.tsx +4 -2
  155. package/src/Banner/components/BannerIcon/BannerIcon.style.ts +3 -0
  156. package/src/Banner/components/BannerIcon/BannerIcon.tsx +1 -1
  157. package/src/Banner/types.ts +1 -1
  158. package/src/BottomSheet/BottomSheet.test.tsx +17 -17
  159. package/src/BottomSheet/BottomSheet.tsx +4 -3
  160. package/src/BottomSheet/components/BottomSheetOption/BottomSheetOption.tsx +1 -1
  161. package/src/Button/Button.tsx +1 -1
  162. package/src/Button/components/InternalButtonLoading/InternalButtonLoading.tsx +1 -2
  163. package/src/ButtonGroup/ButtonGroup.test.tsx +13 -11
  164. package/src/ButtonGroup/ButtonGroup.tsx +2 -2
  165. package/src/ButtonGroup/ButtonGroupAction.tsx +4 -4
  166. package/src/ButtonGroup/components/SecondaryActionSheet/SecondaryActionSheet.tsx +2 -2
  167. package/src/Card/Card.tsx +1 -1
  168. package/src/Card/components/InternalCardHeader.tsx +1 -1
  169. package/src/Checkbox/Checkbox.tsx +2 -2
  170. package/src/Checkbox/CheckboxGroup.test.tsx +3 -7
  171. package/src/Checkbox/CheckboxGroup.tsx +2 -2
  172. package/src/Chip/Chip.tsx +1 -1
  173. package/src/Content/Content.tsx +1 -1
  174. package/src/ContentOverlay/ContentOverlay.test.tsx +34 -27
  175. package/src/ContentOverlay/ContentOverlay.tsx +7 -7
  176. package/src/ContentOverlay/UNSAFE_WrappedModalize.tsx +41 -0
  177. package/src/ContentOverlay/hooks/useKeyboardVisibility.test.ts +7 -7
  178. package/src/ContentOverlay/hooks/useViewLayoutHeight.test.ts +1 -1
  179. package/src/Disclosure/Disclosure.tsx +1 -1
  180. package/src/Divider/Divider.tsx +1 -1
  181. package/src/EmptyState/EmptyState.test.tsx +29 -42
  182. package/src/EmptyState/EmptyState.tsx +1 -1
  183. package/src/ErrorMessageWrapper/ErrorMessageWrapper.tsx +1 -1
  184. package/src/ErrorMessageWrapper/context/ErrorMessageProvider.tsx +3 -5
  185. package/src/ErrorMessageWrapper/context/types.ts +1 -1
  186. package/src/Flex/Flex.tsx +2 -2
  187. package/src/Form/Form.test.tsx +145 -2
  188. package/src/Form/Form.tsx +8 -1
  189. package/src/Form/components/FormActionBar/FormActionBar.tsx +3 -3
  190. package/src/Form/components/FormBody/FormBody.tsx +3 -3
  191. package/src/Form/components/FormCache/FormCache.tsx +5 -4
  192. package/src/Form/components/FormErrorBanner/FormErrorBanner.tsx +1 -1
  193. package/src/Form/components/FormMask/FormMask.tsx +1 -1
  194. package/src/Form/components/FormMessage/FormMessage.test.tsx +40 -27
  195. package/src/Form/components/FormMessage/FormMessage.tsx +1 -1
  196. package/src/Form/components/FormMessage/components/InternalFormMessage/InternalFormMessage.tsx +1 -1
  197. package/src/Form/components/FormMessageBanner/FormMessageBanner.tsx +1 -3
  198. package/src/Form/components/FormSaveButton/FormSaveButton.test.tsx +2 -2
  199. package/src/Form/components/FormSaveButton/FormSaveButton.tsx +1 -1
  200. package/src/Form/context/AtlantisFormContext.test.tsx +1 -1
  201. package/src/Form/context/AtlantisFormContext.tsx +1 -0
  202. package/src/Form/context/types.ts +3 -2
  203. package/src/Form/hooks/useFormViewRefs.ts +4 -5
  204. package/src/Form/hooks/useInternalForm.ts +12 -4
  205. package/src/Form/hooks/useScrollToError/useScrollToError.test.tsx +2 -1
  206. package/src/Form/types.ts +14 -8
  207. package/src/FormField/FormField.tsx +1 -1
  208. package/src/FormatFile/FormatFile.test.tsx +21 -21
  209. package/src/FormatFile/FormatFile.tsx +3 -3
  210. package/src/FormatFile/components/ErrorIcon/ErrorIcon.tsx +1 -1
  211. package/src/FormatFile/components/FileView/FileView.tsx +1 -1
  212. package/src/FormatFile/components/FormatFileBottomSheet/FormatFileBottomSheet.test.tsx +14 -14
  213. package/src/FormatFile/components/FormatFileBottomSheet/FormatFileBottomSheet.tsx +2 -2
  214. package/src/FormatFile/components/MediaView/MediaView.test.tsx +283 -0
  215. package/src/FormatFile/components/MediaView/MediaView.tsx +28 -7
  216. package/src/FormatFile/components/ProgressBar/ProgressBar.tsx +1 -1
  217. package/src/FormatFile/utils/createUseCreateThumbnail.ts +1 -1
  218. package/src/Glimmer/Glimmer.test.tsx +2 -2
  219. package/src/Heading/Heading.test.tsx +13 -0
  220. package/src/Heading/Heading.tsx +3 -3
  221. package/src/Heading/__snapshots__/Heading.test.tsx.snap +65 -0
  222. package/src/Icon/Icon.tsx +1 -1
  223. package/src/Icon/__snapshots__/Icon.test.tsx.snap +7 -0
  224. package/src/IconButton/IconButton.tsx +1 -1
  225. package/src/InputCurrency/InputCurrency.tsx +72 -58
  226. package/src/InputDate/InputDate.tsx +7 -3
  227. package/src/InputEmail/InputEmail.tsx +15 -8
  228. package/src/InputFieldWrapper/InputFieldWrapper.style.ts +1 -1
  229. package/src/InputFieldWrapper/InputFieldWrapper.test.tsx +48 -1
  230. package/src/InputFieldWrapper/InputFieldWrapper.tsx +39 -29
  231. package/src/InputFieldWrapper/components/ClearAction/ClearAction.tsx +1 -1
  232. package/src/InputFieldWrapper/components/Prefix/Prefix.test.tsx +8 -16
  233. package/src/InputFieldWrapper/components/Prefix/Prefix.tsx +8 -6
  234. package/src/InputFieldWrapper/components/Suffix/Suffix.test.tsx +2 -4
  235. package/src/InputFieldWrapper/components/Suffix/Suffix.tsx +8 -6
  236. package/src/InputNumber/InputNumber.tsx +11 -7
  237. package/src/InputPassword/InputPassword.tsx +1 -1
  238. package/src/InputPressable/InputPressable.style.ts +4 -0
  239. package/src/InputPressable/InputPressable.test.tsx +75 -1
  240. package/src/InputPressable/InputPressable.tsx +34 -8
  241. package/src/InputSearch/InputSearch.tsx +2 -1
  242. package/src/InputSearch/components/FilterButton.tsx +1 -1
  243. package/src/InputText/InputText.style.ts +5 -0
  244. package/src/InputText/InputText.test.tsx +75 -0
  245. package/src/InputText/InputText.tsx +34 -17
  246. package/src/InputText/context/InputAccessoriesProvider.tsx +1 -1
  247. package/src/InputTime/InputTime.tsx +7 -3
  248. package/src/Menu/Menu.tsx +3 -3
  249. package/src/Menu/components/MenuOption/MenuOption.tsx +1 -1
  250. package/src/Menu/components/Overlay/Overlay.tsx +1 -1
  251. package/src/Menu/types.ts +7 -1
  252. package/src/ProgressBar/ProgressBar.tsx +1 -1
  253. package/src/ProgressBar/ProgressBarInner.tsx +1 -1
  254. package/src/Select/Select.style.ts +1 -0
  255. package/src/Select/Select.tsx +2 -2
  256. package/src/Select/components/SelectDefaultPicker/SelectDefaultPicker.ios.tsx +1 -1
  257. package/src/Select/components/SelectDefaultPicker/SelectDefaultPicker.tsx +1 -1
  258. package/src/Select/components/SelectInternalPicker/SelectInternalPicker.tsx +1 -1
  259. package/src/Select/components/SelectPressable/SelectPressable.tsx +1 -4
  260. package/src/StatusLabel/StatusLabel.tsx +1 -1
  261. package/src/Switch/Switch.tsx +1 -1
  262. package/src/Switch/components/BaseSwitch/BaseSwitch.tsx +8 -2
  263. package/src/Text/Text.test.tsx +10 -0
  264. package/src/Text/Text.tsx +3 -3
  265. package/src/Text/__snapshots__/Text.test.tsx.snap +66 -0
  266. package/src/TextList/TextList.tsx +1 -1
  267. package/src/ThumbnailList/ThumbnailList.test.tsx +5 -5
  268. package/src/ThumbnailList/ThumbnailList.tsx +1 -1
  269. package/src/Toast/Toast.tsx +2 -2
  270. package/src/Typography/Typography.test.tsx +61 -0
  271. package/src/Typography/Typography.tsx +25 -9
  272. package/src/Typography/TypographyGestureDetector.tsx +1 -3
  273. package/src/Typography/__snapshots__/Typography.test.tsx.snap +222 -0
  274. package/src/hooks/useAtlantisI18n/locales/en.json +1 -0
  275. package/src/hooks/useAtlantisI18n/locales/es.json +1 -0
  276. package/src/hooks/useFormController.ts +6 -13
  277. package/src/utils/test/MockSafeAreaProvider.tsx +1 -1
  278. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -8,8 +8,11 @@
8
8
  "declarationDir": "./dist/types",
9
9
  "resolveJsonModule": true,
10
10
  "paths": {
11
+ "@jobber/hooks": [
12
+ "../hooks/src/index.ts"
13
+ ],
11
14
  "@jobber/hooks/*": [
12
- "../../packages/hooks/src/*"
15
+ "../hooks/src/*"
13
16
  ]
14
17
  },
15
18
  "types": [
@@ -32,10 +35,5 @@
32
35
  "**/*.stories.tsx",
33
36
  "**/*.test.ts",
34
37
  "**/*.test.tsx",
35
- ],
36
- "references": [
37
- {
38
- "path": "../hooks"
39
- }
40
38
  ]
41
39
  }
@@ -1,4 +1,5 @@
1
1
  import type { ReactNode } from "react";
2
+ import React from "react";
2
3
  import type { IconColorNames, IconNames } from "@jobber/design";
3
4
  export interface ActionItemProps {
4
5
  /**
@@ -35,7 +36,7 @@ export interface ActionItemProps {
35
36
  readonly onPress?: () => void;
36
37
  readonly testID?: string;
37
38
  }
38
- export declare function ActionItem({ title, icon, iconColor, children, actionIcon, actionIconColour, actionIconAlignment, onPress, testID, }: ActionItemProps): JSX.Element;
39
+ export declare function ActionItem({ title, icon, iconColor, children, actionIcon, actionIconColour, actionIconAlignment, onPress, testID, }: ActionItemProps): React.JSX.Element;
39
40
  type ActionIconColour = "interactive" | "destructive" | "informative" | "subtle";
40
41
  type ActionIconNames = IconNames | "editpencil";
41
42
  export {};
@@ -1,4 +1,5 @@
1
1
  import type { ReactElement } from "react";
2
+ import React from "react";
2
3
  import type { ActionItem, ActionItemProps } from "./ActionItem";
3
4
  export type ActionItemElement = ReactElement<ActionItemProps, typeof ActionItem> | boolean | null | undefined;
4
5
  interface ActionItemGroupProps {
@@ -7,5 +8,5 @@ interface ActionItemGroupProps {
7
8
  */
8
9
  readonly children: ActionItemElement | ActionItemElement[];
9
10
  }
10
- export declare function ActionItemGroup({ children, }: ActionItemGroupProps): JSX.Element;
11
+ export declare function ActionItemGroup({ children }: ActionItemGroupProps): React.JSX.Element;
11
12
  export {};
@@ -1,9 +1,10 @@
1
1
  import type { ReactNode } from "react";
2
+ import React from "react";
2
3
  interface ActionItemContainerProps {
3
4
  readonly children: ReactNode;
4
5
  readonly title?: string;
5
6
  readonly onPress?: () => void;
6
7
  readonly testID?: string;
7
8
  }
8
- export declare function ActionItemContainer({ onPress, title, children, testID, }: ActionItemContainerProps): JSX.Element;
9
+ export declare function ActionItemContainer({ onPress, title, children, testID, }: ActionItemContainerProps): React.JSX.Element;
9
10
  export {};
@@ -1,11 +1,12 @@
1
+ import React from "react";
1
2
  import type { TextAlign, TextColor } from "../Typography";
2
3
  export type ActionLabelVariation = Extract<TextColor, "interactive" | "destructive" | "learning" | "subtle" | "onPrimary">;
3
4
  type ActionLabelType = "default" | "cardTitle";
4
5
  interface ActionLabelProps {
5
6
  /**
6
- * Text to display
7
+ * Text to display. Supports nesting text elements.
7
8
  */
8
- readonly children?: string;
9
+ readonly children?: React.ReactNode;
9
10
  /**
10
11
  * Set the display text to disabled color
11
12
  */
@@ -23,5 +24,5 @@ interface ActionLabelProps {
23
24
  */
24
25
  readonly align?: TextAlign;
25
26
  }
26
- export declare function ActionLabel({ children, variation, type, disabled, align, }: ActionLabelProps): JSX.Element;
27
+ export declare function ActionLabel({ children, variation, type, disabled, align, }: ActionLabelProps): React.JSX.Element;
27
28
  export {};
@@ -1,2 +1,3 @@
1
+ import React from "react";
1
2
  import type { ActivityIndicatorProps } from "react-native";
2
- export declare function JobberActivityIndicator(props: ActivityIndicatorProps): JSX.Element;
3
+ export declare function JobberActivityIndicator(props: ActivityIndicatorProps): React.JSX.Element;
@@ -1,2 +1,3 @@
1
+ import React from "react";
1
2
  import type { AutoLinkProps } from "./types";
2
- export declare function AutoLink({ children: text, bottomTabsVisible, selectable, ...rest }: AutoLinkProps): JSX.Element;
3
+ export declare function AutoLink({ children: text, bottomTabsVisible, selectable, ...rest }: AutoLinkProps): React.JSX.Element;
@@ -1,2 +1,3 @@
1
+ import React from "react";
1
2
  import type { ComposeTextWithLinksProps } from "../../types";
2
- export declare function ComposeTextWithLinks({ part, index, match, bottomTabsVisible, selectable, }: ComposeTextWithLinksProps): JSX.Element;
3
+ export declare function ComposeTextWithLinks({ part, index, match, bottomTabsVisible, selectable, }: ComposeTextWithLinksProps): React.JSX.Element;
@@ -1,7 +1,8 @@
1
+ import React from "react";
1
2
  interface LinkProps {
2
3
  readonly children: string;
3
4
  readonly onPress: () => void;
4
5
  readonly onLongPress?: () => void;
5
6
  }
6
- export declare function Link({ children, onPress, onLongPress, }: LinkProps): JSX.Element;
7
+ export declare function Link({ children, onPress, onLongPress }: LinkProps): React.JSX.Element;
7
8
  export {};
@@ -1,2 +1,3 @@
1
+ import React from "react";
1
2
  import type { BannerProps } from "./types";
2
- export declare function Banner({ action, details, text, type, children, icon, }: BannerProps): JSX.Element;
3
+ export declare function Banner({ action, details, text, type, children, icon, }: BannerProps): React.JSX.Element;
@@ -1,7 +1,8 @@
1
+ import React from "react";
1
2
  import type { IconNames } from "@jobber/design";
2
3
  import type { BannerTypes } from "../../types";
3
4
  export interface BannerIconProps {
4
5
  readonly icon: IconNames;
5
6
  readonly type: BannerTypes;
6
7
  }
7
- export declare function BannerIcon({ icon, type }: BannerIconProps): JSX.Element;
8
+ export declare function BannerIcon({ icon, type }: BannerIconProps): React.JSX.Element;
@@ -12,4 +12,7 @@ export declare const useStyles: () => {
12
12
  notice: {
13
13
  backgroundColor: string;
14
14
  };
15
+ success: {
16
+ backgroundColor: string;
17
+ };
15
18
  };
@@ -1,7 +1,7 @@
1
1
  import type { IconNames } from "@jobber/design";
2
2
  import type { ReactElement } from "react";
3
3
  import type { StyleProp, ViewStyle } from "react-native";
4
- export type BannerTypes = "error" | "warning" | "notice";
4
+ export type BannerTypes = "error" | "warning" | "notice" | "success";
5
5
  export interface BannerStyleProps {
6
6
  /**
7
7
  * Styles applied to the main view of the banner. Styles are grabbed from Banner.style.ts file
@@ -1,6 +1,6 @@
1
1
  import type { ReactNode } from "react";
2
2
  import React from "react";
3
- import { Modalize } from "react-native-modalize";
3
+ import type { Modalize } from "react-native-modalize";
4
4
  export interface BottomSheetProps {
5
5
  readonly children: ReactNode;
6
6
  /**
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { IconColorNames, IconNames } from "@jobber/design";
2
3
  import type { TextAlign } from "../../../Typography";
3
4
  export interface BottomSheetOptionProps {
@@ -9,4 +10,4 @@ export interface BottomSheetOptionProps {
9
10
  readonly textTransform?: "none" | "capitalize";
10
11
  readonly onPress: () => void;
11
12
  }
12
- export declare function BottomSheetOption({ text, icon, iconColor, textAlign, destructive, textTransform, onPress, }: BottomSheetOptionProps): JSX.Element;
13
+ export declare function BottomSheetOption({ text, icon, iconColor, textAlign, destructive, textTransform, onPress, }: BottomSheetOptionProps): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { StyleProp, ViewStyle } from "react-native";
2
3
  import type { IconNames } from "@jobber/design";
3
4
  import type { XOR } from "ts-xor";
@@ -83,5 +84,5 @@ interface IconButton extends CommonButtonProps {
83
84
  readonly accessibilityLabel: string;
84
85
  }
85
86
  export type ButtonProps = XOR<LabelButton, IconButton>;
86
- export declare function Button({ label, onPress, variation, type, fullHeight, fullWidth, disabled, loading, size, accessibilityLabel, accessibilityHint, icon, testID, UNSAFE_style, }: ButtonProps): JSX.Element;
87
+ export declare function Button({ label, onPress, variation, type, fullHeight, fullWidth, disabled, loading, size, accessibilityLabel, accessibilityHint, icon, testID, UNSAFE_style, }: ButtonProps): React.JSX.Element;
87
88
  export {};
@@ -4,7 +4,7 @@ interface InternalButtonLoadingProps {
4
4
  readonly variation: ButtonVariation;
5
5
  readonly type: ButtonType;
6
6
  }
7
- declare function InternalButtonLoadingInternal({ variation, type, }: InternalButtonLoadingProps): JSX.Element;
7
+ declare function InternalButtonLoadingInternal({ variation, type, }: InternalButtonLoadingProps): React.JSX.Element;
8
8
  export declare const darkPattern = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgAgMAAACf9p+rAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAJcEhZcwAAITgAACE4AUWWMWAAAAAMUExURQAAAEdwTAAAAAAAAKDh18UAAAAEdFJOUxkADQwimkzpAAAAtUlEQVRIx+3NqxHDQBRDUc0YuxyXokxgSkmT7sdgP++3YoYrqAsOYDto+7gfpwtfHy4Xfj7cLvw3sYlNbOINAoI4IIgTgrggiBuCIAThQyB8CIQLkXAhEi5EwoVIWEiEhURYSISFRMyQiRkyMUMmZsjECIUYoRAjFGKEQvRQiR4q0UMleqhECwuihQXRwoJoYUEQgiAEQQiCEAQhCEIQhCAIQRCCIARBCIIQBCEIQhCEIAhB8AEuzZ5wHe17xgAAAABJRU5ErkJggg==";
9
9
  export declare const lightPattern = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgAgMAAACf9p+rAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAJcEhZcwAAITgAACE4AUWWMWAAAAAJUExURf///0dwTP///0SistEAAAADdFJOU0AAILGCadYAAAC0SURBVEjH7c2pFcNAFENRHTMX4pKUE5hS0oT7NZjlbyNmOIJ64AK2g7aP+3G68PXhcuHnw+3CfxOb2MQm3iAgiAOCOCGIC4K4IQhCED4EwodAuBAJFyLhQiRciISFRFhIhIVEWEjEDJmYIRMzZGKGTIxQiBEKMUIhRihED5XooRI9VKKHSrSwIFpYEC0siBYWBCEIQhCEIAhBEIIgBEEIghAEIQhCEIQgCEEQgiAEQQiCEAQfva6WeBniVLgAAAAASUVORK5CYII=";
10
10
  export declare const InternalButtonLoading: React.MemoExoticComponent<typeof InternalButtonLoadingInternal>;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { ButtonGroupActionElement } from "./types";
2
3
  export interface ButtonGroupProps {
3
4
  readonly children: ButtonGroupActionElement | ButtonGroupActionElement[];
@@ -22,7 +23,7 @@ export interface ButtonGroupProps {
22
23
  */
23
24
  readonly allowTapWhenOffline?: boolean;
24
25
  }
25
- export declare function ButtonGroup({ children, showCancelInBottomSheet, bottomSheetHeading, onOpenBottomSheet, onCloseBottomSheet, allowTapWhenOffline, }: ButtonGroupProps): JSX.Element;
26
+ export declare function ButtonGroup({ children, showCancelInBottomSheet, bottomSheetHeading, onOpenBottomSheet, onCloseBottomSheet, allowTapWhenOffline, }: ButtonGroupProps): React.JSX.Element;
26
27
  export declare namespace ButtonGroup {
27
28
  var PrimaryAction: typeof import("./ButtonGroupAction").PrimaryAction;
28
29
  var SecondaryAction: typeof import("./ButtonGroupAction").SecondaryAction;
@@ -1,4 +1,5 @@
1
1
  import type { IconColorNames, IconNames } from "@jobber/design";
2
+ import React, { type ReactElement } from "react";
2
3
  import type { ButtonType, ButtonVariation } from "../Button";
3
4
  export interface ButtonGroupActionProps {
4
5
  /**
@@ -39,8 +40,8 @@ export interface ButtonGroupPrimaryActionProps extends ButtonGroupActionProps {
39
40
  /**
40
41
  * Optional custom button that can be rendered in place of the primary action button
41
42
  */
42
- customButton?: JSX.Element;
43
+ customButton?: ReactElement;
43
44
  loading?: boolean;
44
45
  }
45
- export declare function PrimaryAction(_: ButtonGroupPrimaryActionProps): JSX.Element;
46
- export declare function SecondaryAction(_: ButtonGroupSecondaryActionProps): JSX.Element;
46
+ export declare function PrimaryAction(_: ButtonGroupPrimaryActionProps): React.JSX.Element;
47
+ export declare function SecondaryAction(_: ButtonGroupSecondaryActionProps): React.JSX.Element;
@@ -1,13 +1,14 @@
1
1
  import type { RefObject } from "react";
2
+ import React from "react";
2
3
  import type { ButtonGroupSecondaryActionProps } from "../../types";
3
4
  import type { BottomSheetRef } from "../../../BottomSheet/BottomSheet";
4
5
  interface SecondaryActionSheetProps {
5
6
  readonly actions: ButtonGroupSecondaryActionProps[];
6
- readonly secondaryActionsRef: RefObject<BottomSheetRef>;
7
+ readonly secondaryActionsRef: RefObject<BottomSheetRef | null>;
7
8
  readonly showCancel?: boolean;
8
9
  readonly heading?: string;
9
10
  readonly onOpenBottomSheet?: () => void;
10
11
  readonly onCloseBottomSheet?: () => void;
11
12
  }
12
- export declare function SecondaryActionSheet({ actions, secondaryActionsRef, heading, showCancel, onOpenBottomSheet, onCloseBottomSheet, }: SecondaryActionSheetProps): JSX.Element;
13
+ export declare function SecondaryActionSheet({ actions, secondaryActionsRef, heading, showCancel, onOpenBottomSheet, onCloseBottomSheet, }: SecondaryActionSheetProps): React.JSX.Element;
13
14
  export {};
@@ -1,4 +1,5 @@
1
1
  import type { ReactNode } from "react";
2
+ import React from "react";
2
3
  import type { IconNames } from "@jobber/design";
3
4
  import type { XOR } from "ts-xor";
4
5
  interface CardProps {
@@ -36,5 +37,5 @@ interface ButtonAction {
36
37
  readonly label: string;
37
38
  }
38
39
  export type CardAction = XOR<IconAction, ButtonAction>;
39
- export declare function Card({ header, footer, children, reportCardHeight: onCardHeightChange, testID, error, elevation, }: CardProps): JSX.Element;
40
+ export declare function Card({ header, footer, children, reportCardHeight: onCardHeightChange, testID, error, elevation, }: CardProps): React.JSX.Element;
40
41
  export {};
@@ -1,9 +1,10 @@
1
1
  import type { ReactNode } from "react";
2
+ import React from "react";
2
3
  interface InternalCardHeaderProps {
3
4
  readonly children: ReactNode[] | ReactNode;
4
5
  readonly onPress?: () => void;
5
6
  readonly testID?: string;
6
7
  readonly collapsable: boolean;
7
8
  }
8
- export declare function InternalCardHeader({ onPress, children, testID, collapsable, }: InternalCardHeaderProps): JSX.Element;
9
+ export declare function InternalCardHeader({ onPress, children, testID, collapsable, }: InternalCardHeaderProps): React.JSX.Element;
9
10
  export {};
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { XOR } from "ts-xor";
2
3
  interface CommonCheckboxProps {
3
4
  /**
@@ -54,5 +55,5 @@ interface UncontrolledCheckboxProps extends CommonCheckboxProps {
54
55
  readonly name: string;
55
56
  }
56
57
  export type CheckboxProps = XOR<ControlledCheckboxProps, UncontrolledCheckboxProps>;
57
- export declare function Checkbox(props: CheckboxProps): JSX.Element;
58
+ export declare function Checkbox(props: CheckboxProps): React.JSX.Element;
58
59
  export {};
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { XOR } from "ts-xor";
2
3
  import type { CheckboxProps } from "./Checkbox";
3
4
  import type { CheckboxElement, CheckboxGroupState } from "./types";
@@ -17,5 +18,5 @@ interface UncontrolledCheckboxGroupProps extends CommonCheckboxGroupProps {
17
18
  name: string;
18
19
  }
19
20
  export type CheckboxGroupProps = XOR<UncontrolledCheckboxGroupProps, ControlledCheckboxGroupProps>;
20
- export declare function CheckboxGroup({ children, state, onChange, name, ...rest }: CheckboxGroupProps): JSX.Element;
21
+ export declare function CheckboxGroup({ children, state, onChange, name, ...rest }: CheckboxGroupProps): React.JSX.Element;
21
22
  export {};
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { AccessibilityRole } from "react-native";
2
3
  import type { IconNames } from "@jobber/design";
3
4
  export type AccentType = "client" | "invoice" | "job" | "request" | "quote";
@@ -41,4 +42,4 @@ export interface ChipProps {
41
42
  */
42
43
  readonly accent?: AccentType;
43
44
  }
44
- export declare function Chip({ icon, label, onPress, isDismissible, isActive, inactiveBackgroundColor, accessibilityLabel, accessibilityRole, accent, }: ChipProps): JSX.Element;
45
+ export declare function Chip({ icon, label, onPress, isDismissible, isActive, inactiveBackgroundColor, accessibilityLabel, accessibilityRole, accent, }: ChipProps): React.JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import type { ReactNode } from "react";
2
+ import React from "react";
2
3
  import type { StyleProp, ViewStyle } from "react-native";
3
4
  export type Spacing = "none" | "base" | "small" | "smaller" | "smallest" | "large";
4
5
  export interface ContentUnsafeStyle {
@@ -26,4 +27,4 @@ export interface ContentProps {
26
27
  */
27
28
  readonly UNSAFE_style?: ContentUnsafeStyle;
28
29
  }
29
- export declare function Content({ children, spacing, childSpacing, direction, UNSAFE_style, }: ContentProps): JSX.Element;
30
+ export declare function Content({ children, spacing, childSpacing, direction, UNSAFE_style, }: ContentProps): React.JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { Modalize } from "react-native-modalize";
2
+ import type { Modalize } from "react-native-modalize";
3
3
  import type { ContentOverlayProps } from "./types";
4
4
  export declare const ContentOverlay: React.ForwardRefExoticComponent<ContentOverlayProps & React.RefAttributes<{
5
5
  open?: Modalize["open"];
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ import type { IHandles } from "react-native-modalize/lib/options";
3
+ export declare const UNSAFE_WrappedModalize: React.ForwardRefExoticComponent<Omit<import("react-native-modalize/lib/options").IProps<any> & React.RefAttributes<any>, "ref"> & React.RefAttributes<IHandles | undefined>>;
@@ -31,5 +31,5 @@ interface DisclosureProps {
31
31
  */
32
32
  onToggle(): void;
33
33
  }
34
- export declare function Disclosure({ content, header, open, onToggle, isEmpty, animationDuration, }: DisclosureProps): JSX.Element;
34
+ export declare function Disclosure({ content, header, open, onToggle, isEmpty, animationDuration, }: DisclosureProps): React.JSX.Element;
35
35
  export {};
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  interface DividerProps {
2
3
  /**
3
4
  * The weight of the divider.
@@ -16,5 +17,5 @@ interface DividerProps {
16
17
  */
17
18
  readonly testID?: string;
18
19
  }
19
- export declare function Divider({ size, direction, testID, }: DividerProps): JSX.Element;
20
+ export declare function Divider({ size, direction, testID, }: DividerProps): React.JSX.Element;
20
21
  export {};
@@ -1,4 +1,5 @@
1
1
  import type { IconColorNames, IconNames } from "@jobber/design";
2
+ import React from "react";
2
3
  interface Action {
3
4
  label: string;
4
5
  onPress: () => void;
@@ -30,5 +31,5 @@ export interface EmptyStateProps {
30
31
  */
31
32
  readonly secondaryAction?: Action;
32
33
  }
33
- export declare function EmptyState({ icon, title, description, primaryAction, secondaryAction, iconColor, }: EmptyStateProps): JSX.Element;
34
+ export declare function EmptyState({ icon, title, description, primaryAction, secondaryAction, iconColor, }: EmptyStateProps): React.JSX.Element;
34
35
  export {};
@@ -1,4 +1,5 @@
1
1
  import type { ReactNode } from "react";
2
+ import React from "react";
2
3
  type WrapForTypes = "card" | "default";
3
4
  interface ErrorMessageWrapperProps {
4
5
  /**
@@ -17,5 +18,5 @@ interface ErrorMessageWrapperProps {
17
18
  *
18
19
  * This component is internal to Atlantis and shouldn't be used outside of it.
19
20
  */
20
- export declare function ErrorMessageWrapper({ message, wrapFor, children, }: ErrorMessageWrapperProps): JSX.Element;
21
+ export declare function ErrorMessageWrapper({ message, wrapFor, children, }: ErrorMessageWrapperProps): React.JSX.Element;
21
22
  export {};
@@ -1,6 +1,7 @@
1
1
  import type { ReactNode } from "react";
2
+ import React from "react";
2
3
  interface ErrorMessageProviderProps {
3
4
  readonly children: ReactNode;
4
5
  }
5
- export declare function ErrorMessageProvider({ children, }: ErrorMessageProviderProps): JSX.Element;
6
+ export declare function ErrorMessageProvider({ children }: ErrorMessageProviderProps): React.JSX.Element;
6
7
  export {};
@@ -43,7 +43,7 @@ type ElementID = Element["id"];
43
43
  export interface ErrorMessageContextRegisterParams {
44
44
  readonly id: ElementID;
45
45
  readonly hasErrorMessage: Methods["hasErrorMessage"];
46
- readonly ref: RefObject<View>;
46
+ readonly ref: RefObject<View | null>;
47
47
  }
48
48
  export interface ErrorMessageContextProps {
49
49
  /**
@@ -1,3 +1,4 @@
1
1
  import type { PropsWithChildren } from "react";
2
+ import React from "react";
2
3
  import type { FlexProps } from "./types";
3
- export declare function Flex({ template, align, gap, children, }: PropsWithChildren<FlexProps>): JSX.Element;
4
+ export declare function Flex({ template, align, gap, children, }: PropsWithChildren<FlexProps>): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { FieldValues } from "react-hook-form";
2
3
  import type { FormProps } from "./types";
3
- export declare function Form<T extends FieldValues, S>({ initialLoading, ...rest }: FormProps<T, S>): JSX.Element;
4
+ export declare function Form<T extends FieldValues, S>({ initialLoading, ...rest }: FormProps<T, S>): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React, { type ReactElement } from "react";
1
2
  import type { SecondaryActionProp } from "../../types";
2
3
  export interface FormActionBarProps {
3
4
  readonly keyboardHeight: number;
@@ -5,8 +6,8 @@ export interface FormActionBarProps {
5
6
  readonly saveButtonLabel?: string;
6
7
  readonly submit: () => Promise<void> | void;
7
8
  readonly setSaveButtonHeight?: (height: number) => void;
8
- readonly renderStickySection?: (onSubmit: () => void, label: string | undefined, isSubmitting: boolean) => JSX.Element;
9
+ readonly renderStickySection?: (onSubmit: () => void, label: string | undefined, isSubmitting: boolean) => ReactElement;
9
10
  readonly secondaryActions?: SecondaryActionProp[];
10
11
  readonly setSecondaryActionLoading?: (bool: boolean) => void;
11
12
  }
12
- export declare function FormActionBar({ keyboardHeight, submit, isFormSubmitting, saveButtonLabel, renderStickySection, setSaveButtonHeight, secondaryActions, setSecondaryActionLoading, }: FormActionBarProps): JSX.Element;
13
+ export declare function FormActionBar({ keyboardHeight, submit, isFormSubmitting, saveButtonLabel, renderStickySection, setSaveButtonHeight, secondaryActions, setSecondaryActionLoading, }: FormActionBarProps): React.JSX.Element;
@@ -1,9 +1,10 @@
1
+ import React, { type ReactElement } from "react";
1
2
  import type { FormActionBarProps } from "../FormActionBar";
2
3
  interface FormBodyProps extends FormActionBarProps {
3
- readonly children: JSX.Element;
4
+ readonly children: ReactElement;
4
5
  readonly shouldRenderActionBar?: boolean;
5
6
  readonly saveButtonOffset?: number;
6
7
  }
7
- export declare function FormBody({ isFormSubmitting, submit, keyboardHeight, children, saveButtonLabel, renderStickySection, shouldRenderActionBar, secondaryActions, setSecondaryActionLoading, setSaveButtonHeight, saveButtonOffset, }: FormBodyProps): JSX.Element;
8
+ export declare function FormBody({ isFormSubmitting, submit, keyboardHeight, children, saveButtonLabel, renderStickySection, shouldRenderActionBar, secondaryActions, setSecondaryActionLoading, setSaveButtonHeight, saveButtonOffset, }: FormBodyProps): React.JSX.Element;
8
9
  export declare function useBottomPadding(): number;
9
10
  export {};
@@ -1,9 +1,10 @@
1
- import type { FieldValues } from "react-hook-form";
1
+ import React from "react";
2
+ import type { DeepPartial, FieldValues } from "react-hook-form";
2
3
  interface FormCacheProps<T extends FieldValues> {
3
4
  readonly localCacheId?: string | string[];
4
5
  readonly localCacheKey?: string;
5
6
  readonly localCacheExclude?: string[];
6
- readonly setLocalCache: (data: T) => void;
7
+ readonly setLocalCache: (data: DeepPartial<T>) => void;
7
8
  }
8
- export declare function FormCache<T extends FieldValues>({ localCacheExclude, localCacheKey, setLocalCache, }: FormCacheProps<T>): JSX.Element;
9
+ export declare function FormCache<T extends FieldValues>({ localCacheExclude, localCacheKey, setLocalCache, }: FormCacheProps<T>): React.JSX.Element;
9
10
  export {};
@@ -1,2 +1,3 @@
1
+ import React from "react";
1
2
  import type { FormBannerErrors } from "../../types";
2
- export declare function FormErrorBanner({ networkError, bannerError, }: FormBannerErrors): JSX.Element;
3
+ export declare function FormErrorBanner({ networkError, bannerError, }: FormBannerErrors): React.JSX.Element;
@@ -1 +1,2 @@
1
- export declare function FormMask(): JSX.Element;
1
+ import React from "react";
2
+ export declare function FormMask(): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { EmptyStateProps } from "../../../EmptyState";
2
3
  type FormMessageData = EmptyStateProps;
3
4
  /**
@@ -11,7 +12,7 @@ type FormMessageData = EmptyStateProps;
11
12
  * recent message.
12
13
  */
13
14
  export declare const FormMessage: {
14
- (): JSX.Element;
15
+ (): React.JSX.Element;
15
16
  show(messageData: FormMessageData): void;
16
17
  close(): void;
17
18
  };
@@ -1,7 +1,8 @@
1
+ import React from "react";
1
2
  import type { EmptyStateProps } from "../../../../../EmptyState";
2
3
  interface FormMessageProps {
3
4
  readonly data: EmptyStateProps;
4
5
  readonly onRequestClose: () => void;
5
6
  }
6
- export declare function InternalFormMessage({ data, onRequestClose, }: FormMessageProps): JSX.Element;
7
+ export declare function InternalFormMessage({ data, onRequestClose, }: FormMessageProps): React.JSX.Element;
7
8
  export {};
@@ -1,6 +1,7 @@
1
+ import React from "react";
1
2
  import type { FormBannerMessage } from "../../types";
2
3
  interface FormMessageBannerProps {
3
4
  readonly bannerMessages?: FormBannerMessage[];
4
5
  }
5
- export declare function FormMessageBanner({ bannerMessages, }: FormMessageBannerProps): JSX.Element;
6
+ export declare function FormMessageBanner({ bannerMessages }: FormMessageBannerProps): React.JSX.Element;
6
7
  export {};
@@ -1,2 +1,3 @@
1
+ import React from "react";
1
2
  import type { FormSaveButtonProps } from "../../types";
2
- export declare function FormSaveButton({ primaryAction, loading, label, secondaryActions, setSecondaryActionLoading, onOpenBottomSheet, onCloseBottomSheet, }: FormSaveButtonProps): JSX.Element;
3
+ export declare function FormSaveButton({ primaryAction, loading, label, secondaryActions, setSecondaryActionLoading, onOpenBottomSheet, onCloseBottomSheet, }: FormSaveButtonProps): React.JSX.Element;
@@ -1,10 +1,11 @@
1
1
  import type { AtlantisFormContextProps } from "./types";
2
2
  export declare const atlantisFormContextDefaultValues: {
3
- useConfirmBeforeBack: () => import("react").MutableRefObject<() => undefined>;
3
+ useConfirmBeforeBack: () => import("react").RefObject<() => undefined>;
4
4
  useInternalFormLocalCache: () => {
5
5
  setLocalCache: () => undefined;
6
6
  removeLocalCache: () => undefined;
7
7
  };
8
+ edgeToEdgeEnabled: boolean;
8
9
  };
9
10
  export declare const AtlantisFormContext: import("react").Context<AtlantisFormContextProps>;
10
11
  export declare function useAtlantisFormContext(): AtlantisFormContextProps;
@@ -1,5 +1,5 @@
1
1
  import type { MutableRefObject } from "react";
2
- import type { FieldValues, UseFormReturn } from "react-hook-form";
2
+ import type { DeepPartial, FieldValues, UseFormReturn } from "react-hook-form";
3
3
  export interface UseConfirmBeforeBackProps {
4
4
  alwaysPreventBack: boolean;
5
5
  onAcceptEvent?: () => void;
@@ -18,8 +18,9 @@ interface LocalCacheOptions {
18
18
  export interface AtlantisFormContextProps {
19
19
  useConfirmBeforeBack: (props: UseConfirmBeforeBackProps) => MutableRefObject<() => void>;
20
20
  useInternalFormLocalCache: <TData extends FieldValues>(formMethods: UseFormReturn<TData>, cacheKey?: string, options?: LocalCacheOptions) => {
21
- setLocalCache: (data: TData) => void;
21
+ setLocalCache: (data: DeepPartial<TData>) => void;
22
22
  removeLocalCache: () => void;
23
23
  };
24
+ edgeToEdgeEnabled?: boolean;
24
25
  }
25
26
  export {};
@@ -2,8 +2,8 @@ import type { RefObject } from "react";
2
2
  import type { View } from "react-native";
3
3
  import type { KeyboardAwareScrollView } from "react-native-keyboard-aware-scroll-view";
4
4
  interface UseFormViewRefsReturn {
5
- readonly scrollViewRef: RefObject<KeyboardAwareScrollView>;
6
- readonly bottomViewRef: RefObject<View>;
5
+ readonly scrollViewRef: RefObject<KeyboardAwareScrollView | null>;
6
+ readonly bottomViewRef: RefObject<View | null>;
7
7
  readonly scrollToTop: () => void;
8
8
  }
9
9
  export declare function useFormViewRefs(): UseFormViewRefsReturn;
@@ -1,9 +1,9 @@
1
- import type { FieldValues, UseFormHandleSubmit, UseFormReturn } from "react-hook-form";
1
+ import type { DeepPartial, FieldValues, UseFormHandleSubmit, UseFormReturn } from "react-hook-form";
2
2
  import type { MutableRefObject, RefObject } from "react";
3
3
  import type { KeyboardAwareScrollView } from "react-native-keyboard-aware-scroll-view";
4
4
  import type { InternalFormProps } from "../types";
5
- type UseInternalFormProps<T extends FieldValues, SubmitResponseType> = Pick<InternalFormProps<T, SubmitResponseType>, "mode" | "reValidateMode" | "initialValues" | "formRef" | "localCacheKey" | "localCacheExclude" | "localCacheId"> & {
6
- scrollViewRef?: RefObject<KeyboardAwareScrollView>;
5
+ type UseInternalFormProps<T extends FieldValues, SubmitResponseType> = Pick<InternalFormProps<T, SubmitResponseType>, "mode" | "reValidateMode" | "initialValues" | "formRef" | "localCacheKey" | "localCacheExclude" | "localCacheId" | "UNSAFE_allowDiscardLocalCacheWhenOffline"> & {
6
+ scrollViewRef?: RefObject<KeyboardAwareScrollView | null>;
7
7
  readonly saveButtonHeight: number;
8
8
  readonly messageBannerHeight: number;
9
9
  };
@@ -13,7 +13,7 @@ interface UseInternalForm<T extends FieldValues> {
13
13
  readonly isSubmitting: boolean;
14
14
  readonly isDirty: boolean;
15
15
  readonly removeListenerRef: MutableRefObject<() => void>;
16
- readonly setLocalCache: (data: T) => void;
16
+ readonly setLocalCache: (data: DeepPartial<T>) => void;
17
17
  }
18
- export declare function useInternalForm<T extends FieldValues, SubmitResponseType>({ mode, reValidateMode, initialValues, formRef, localCacheKey, localCacheId, scrollViewRef, saveButtonHeight, messageBannerHeight, }: UseInternalFormProps<T, SubmitResponseType>): UseInternalForm<T>;
18
+ export declare function useInternalForm<T extends FieldValues, SubmitResponseType>({ mode, reValidateMode, initialValues, formRef, localCacheKey, localCacheId, scrollViewRef, saveButtonHeight, messageBannerHeight, UNSAFE_allowDiscardLocalCacheWhenOffline, }: UseInternalFormProps<T, SubmitResponseType>): UseInternalForm<T>;
19
19
  export {};