@jobber/components-native 0.89.5-JOB-140604-2d32fc8.44 → 0.89.5-JOB-140604-8777ec5.52

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 (229) hide show
  1. package/dist/package.json +7 -7
  2. package/dist/src/ActionItem/ActionItemGroup.js +1 -1
  3. package/dist/src/AutoLink/components/Link/Link.js +1 -1
  4. package/dist/src/BottomSheet/BottomSheet.js +4 -2
  5. package/dist/src/BottomSheet/hooks/useBottomSheetBackHandler.js +26 -0
  6. package/dist/src/Chip/Chip.js +12 -1
  7. package/dist/src/Chip/Chip.style.js +1 -1
  8. package/dist/src/ContentOverlay/ContentOverlay.js +3 -5
  9. package/dist/src/ErrorMessageWrapper/context/ErrorMessageProvider.js +1 -1
  10. package/dist/src/Form/Form.js +2 -1
  11. package/dist/src/Form/components/FormMessageBanner/FormMessageBanner.js +1 -1
  12. package/dist/src/Form/hooks/useInternalForm.js +6 -3
  13. package/dist/src/FormatFile/components/MediaView/MediaView.js +22 -5
  14. package/dist/src/InputDate/InputDate.js +2 -2
  15. package/dist/src/InputFieldWrapper/InputFieldWrapper.js +14 -12
  16. package/dist/src/InputFieldWrapper/components/Prefix/Prefix.js +5 -2
  17. package/dist/src/InputFieldWrapper/components/Suffix/Suffix.js +5 -2
  18. package/dist/src/InputPressable/InputPressable.js +20 -8
  19. package/dist/src/InputPressable/InputPressable.style.js +3 -0
  20. package/dist/src/InputText/InputText.js +22 -11
  21. package/dist/src/InputText/InputText.style.js +4 -0
  22. package/dist/src/InputTime/InputTime.js +2 -2
  23. package/dist/src/Menu/Menu.js +2 -2
  24. package/dist/src/Select/components/SelectPressable/SelectPressable.js +1 -1
  25. package/dist/src/utils/meta/meta.json +0 -1
  26. package/dist/tsconfig.build.tsbuildinfo +1 -1
  27. package/dist/types/src/ActionItem/ActionItem.d.ts +2 -1
  28. package/dist/types/src/ActionItem/ActionItemGroup.d.ts +2 -1
  29. package/dist/types/src/ActionItem/components/ActionItemContainer.d.ts +2 -1
  30. package/dist/types/src/ActionLabel/ActionLabel.d.ts +1 -1
  31. package/dist/types/src/ActivityIndicator/ActivityIndicator.d.ts +2 -1
  32. package/dist/types/src/AutoLink/AutoLink.d.ts +2 -1
  33. package/dist/types/src/AutoLink/components/ComposeTextWithLinks/ComposeTextWithLinks.d.ts +2 -1
  34. package/dist/types/src/AutoLink/components/Link/Link.d.ts +2 -1
  35. package/dist/types/src/Banner/Banner.d.ts +2 -1
  36. package/dist/types/src/Banner/components/BannerIcon/BannerIcon.d.ts +2 -1
  37. package/dist/types/src/BottomSheet/BottomSheet.d.ts +4 -9
  38. package/dist/types/src/BottomSheet/components/BottomSheetOption/BottomSheetOption.d.ts +2 -1
  39. package/dist/types/src/BottomSheet/hooks/useBottomSheetBackHandler.d.ts +8 -0
  40. package/dist/types/src/Button/Button.d.ts +2 -1
  41. package/dist/types/src/Button/components/InternalButtonLoading/InternalButtonLoading.d.ts +1 -1
  42. package/dist/types/src/ButtonGroup/ButtonGroup.d.ts +2 -1
  43. package/dist/types/src/ButtonGroup/ButtonGroupAction.d.ts +4 -3
  44. package/dist/types/src/ButtonGroup/components/SecondaryActionSheet/SecondaryActionSheet.d.ts +3 -2
  45. package/dist/types/src/Card/Card.d.ts +2 -1
  46. package/dist/types/src/Card/components/InternalCardHeader.d.ts +2 -1
  47. package/dist/types/src/Checkbox/Checkbox.d.ts +2 -1
  48. package/dist/types/src/Checkbox/CheckboxGroup.d.ts +2 -1
  49. package/dist/types/src/Chip/Chip.d.ts +2 -1
  50. package/dist/types/src/Content/Content.d.ts +2 -1
  51. package/dist/types/src/ContentOverlay/UNSAFE_WrappedModalize.d.ts +1 -1
  52. package/dist/types/src/Disclosure/Disclosure.d.ts +1 -1
  53. package/dist/types/src/Divider/Divider.d.ts +2 -1
  54. package/dist/types/src/EmptyState/EmptyState.d.ts +2 -1
  55. package/dist/types/src/ErrorMessageWrapper/ErrorMessageWrapper.d.ts +2 -1
  56. package/dist/types/src/ErrorMessageWrapper/context/ErrorMessageProvider.d.ts +2 -1
  57. package/dist/types/src/ErrorMessageWrapper/context/types.d.ts +1 -1
  58. package/dist/types/src/Flex/Flex.d.ts +2 -1
  59. package/dist/types/src/Form/Form.d.ts +2 -1
  60. package/dist/types/src/Form/components/FormActionBar/FormActionBar.d.ts +3 -2
  61. package/dist/types/src/Form/components/FormBody/FormBody.d.ts +3 -2
  62. package/dist/types/src/Form/components/FormCache/FormCache.d.ts +2 -1
  63. package/dist/types/src/Form/components/FormErrorBanner/FormErrorBanner.d.ts +2 -1
  64. package/dist/types/src/Form/components/FormMask/FormMask.d.ts +2 -1
  65. package/dist/types/src/Form/components/FormMessage/FormMessage.d.ts +2 -1
  66. package/dist/types/src/Form/components/FormMessage/components/InternalFormMessage/InternalFormMessage.d.ts +2 -1
  67. package/dist/types/src/Form/components/FormMessageBanner/FormMessageBanner.d.ts +2 -1
  68. package/dist/types/src/Form/components/FormSaveButton/FormSaveButton.d.ts +2 -1
  69. package/dist/types/src/Form/context/AtlantisFormContext.d.ts +1 -1
  70. package/dist/types/src/Form/context/types.d.ts +2 -2
  71. package/dist/types/src/Form/hooks/useFormViewRefs.d.ts +2 -2
  72. package/dist/types/src/Form/hooks/useInternalForm.d.ts +5 -5
  73. package/dist/types/src/Form/types.d.ts +10 -4
  74. package/dist/types/src/FormField/FormField.d.ts +1 -1
  75. package/dist/types/src/FormatFile/FormatFile.d.ts +2 -1
  76. package/dist/types/src/FormatFile/components/ErrorIcon/ErrorIcon.d.ts +2 -1
  77. package/dist/types/src/FormatFile/components/FileView/FileView.d.ts +2 -1
  78. package/dist/types/src/FormatFile/components/FormatFileBottomSheet/FormatFileBottomSheet.d.ts +3 -2
  79. package/dist/types/src/FormatFile/components/MediaView/MediaView.d.ts +2 -1
  80. package/dist/types/src/FormatFile/components/ProgressBar/ProgressBar.d.ts +2 -1
  81. package/dist/types/src/Heading/Heading.d.ts +1 -1
  82. package/dist/types/src/Icon/Icon.d.ts +2 -1
  83. package/dist/types/src/IconButton/IconButton.d.ts +1 -1
  84. package/dist/types/src/InputCurrency/InputCurrency.d.ts +2 -1
  85. package/dist/types/src/InputDate/InputDate.d.ts +4 -2
  86. package/dist/types/src/InputFieldWrapper/InputFieldWrapper.d.ts +9 -2
  87. package/dist/types/src/InputFieldWrapper/components/ClearAction/ClearAction.d.ts +2 -1
  88. package/dist/types/src/InputFieldWrapper/components/Prefix/Prefix.d.ts +4 -4
  89. package/dist/types/src/InputFieldWrapper/components/Suffix/Suffix.d.ts +4 -4
  90. package/dist/types/src/InputPressable/InputPressable.d.ts +9 -1
  91. package/dist/types/src/InputPressable/InputPressable.style.d.ts +3 -0
  92. package/dist/types/src/InputSearch/InputSearch.d.ts +1 -1
  93. package/dist/types/src/InputSearch/components/FilterButton.d.ts +2 -1
  94. package/dist/types/src/InputText/InputText.d.ts +8 -0
  95. package/dist/types/src/InputText/InputText.style.d.ts +4 -0
  96. package/dist/types/src/InputText/context/InputAccessoriesProvider.d.ts +2 -1
  97. package/dist/types/src/InputTime/InputTime.d.ts +4 -2
  98. package/dist/types/src/Menu/Menu.d.ts +2 -1
  99. package/dist/types/src/Menu/components/MenuOption/MenuOption.d.ts +2 -1
  100. package/dist/types/src/Menu/components/Overlay/Overlay.d.ts +2 -1
  101. package/dist/types/src/Menu/types.d.ts +6 -1
  102. package/dist/types/src/ProgressBar/ProgressBar.d.ts +2 -1
  103. package/dist/types/src/ProgressBar/ProgressBarInner.d.ts +2 -1
  104. package/dist/types/src/Select/Select.d.ts +3 -2
  105. package/dist/types/src/Select/components/SelectDefaultPicker/SelectDefaultPicker.d.ts +2 -1
  106. package/dist/types/src/Select/components/SelectDefaultPicker/SelectDefaultPicker.ios.d.ts +2 -1
  107. package/dist/types/src/Select/components/SelectInternalPicker/SelectInternalPicker.d.ts +2 -1
  108. package/dist/types/src/Select/components/SelectPressable/SelectPressable.d.ts +2 -1
  109. package/dist/types/src/StatusLabel/StatusLabel.d.ts +2 -1
  110. package/dist/types/src/Switch/Switch.d.ts +2 -1
  111. package/dist/types/src/Switch/components/BaseSwitch/BaseSwitch.d.ts +2 -1
  112. package/dist/types/src/Text/Text.d.ts +1 -1
  113. package/dist/types/src/TextList/TextList.d.ts +2 -1
  114. package/dist/types/src/ThumbnailList/ThumbnailList.d.ts +2 -1
  115. package/dist/types/src/Toast/Toast.d.ts +2 -1
  116. package/dist/types/src/Typography/Typography.d.ts +1 -1
  117. package/dist/types/src/Typography/TypographyGestureDetector.d.ts +2 -1
  118. package/dist/types/src/utils/test/MockSafeAreaProvider.d.ts +1 -1
  119. package/package.json +7 -7
  120. package/src/ActionItem/ActionItem.tsx +1 -1
  121. package/src/ActionItem/ActionItemGroup.tsx +1 -3
  122. package/src/ActionItem/components/ActionItemContainer.tsx +1 -1
  123. package/src/ActionLabel/ActionLabel.tsx +1 -1
  124. package/src/ActivityIndicator/ActivityIndicator.tsx +1 -3
  125. package/src/AutoLink/AutoLink.tsx +1 -1
  126. package/src/AutoLink/components/ComposeTextWithLinks/ComposeTextWithLinks.tsx +1 -1
  127. package/src/AutoLink/components/Link/Link.tsx +1 -5
  128. package/src/Banner/Banner.tsx +2 -2
  129. package/src/Banner/components/BannerIcon/BannerIcon.tsx +1 -1
  130. package/src/BottomSheet/BottomSheet.stories.tsx +0 -1
  131. package/src/BottomSheet/BottomSheet.tsx +9 -10
  132. package/src/BottomSheet/components/BottomSheetOption/BottomSheetOption.tsx +1 -1
  133. package/src/BottomSheet/hooks/useBottomSheetBackHandler.test.ts +90 -0
  134. package/src/BottomSheet/hooks/useBottomSheetBackHandler.ts +41 -0
  135. package/src/Button/Button.tsx +1 -1
  136. package/src/Button/components/InternalButtonLoading/InternalButtonLoading.tsx +1 -1
  137. package/src/ButtonGroup/ButtonGroup.tsx +1 -1
  138. package/src/ButtonGroup/ButtonGroupAction.tsx +4 -4
  139. package/src/ButtonGroup/components/SecondaryActionSheet/SecondaryActionSheet.tsx +2 -2
  140. package/src/Card/Card.tsx +1 -1
  141. package/src/Card/components/InternalCardHeader.tsx +1 -1
  142. package/src/Checkbox/Checkbox.tsx +2 -2
  143. package/src/Checkbox/CheckboxGroup.test.tsx +1 -1
  144. package/src/Checkbox/CheckboxGroup.tsx +2 -2
  145. package/src/Chip/Chip.style.ts +1 -1
  146. package/src/Chip/Chip.tsx +20 -2
  147. package/src/Content/Content.tsx +1 -1
  148. package/src/ContentOverlay/ContentOverlay.tsx +3 -4
  149. package/src/Disclosure/Disclosure.tsx +1 -1
  150. package/src/Divider/Divider.tsx +1 -1
  151. package/src/EmptyState/EmptyState.tsx +1 -1
  152. package/src/ErrorMessageWrapper/ErrorMessageWrapper.tsx +1 -1
  153. package/src/ErrorMessageWrapper/context/ErrorMessageProvider.tsx +3 -5
  154. package/src/ErrorMessageWrapper/context/types.ts +1 -1
  155. package/src/Flex/Flex.tsx +2 -2
  156. package/src/Form/Form.test.tsx +145 -2
  157. package/src/Form/Form.tsx +3 -1
  158. package/src/Form/components/FormActionBar/FormActionBar.tsx +3 -3
  159. package/src/Form/components/FormBody/FormBody.tsx +3 -3
  160. package/src/Form/components/FormCache/FormCache.tsx +1 -1
  161. package/src/Form/components/FormErrorBanner/FormErrorBanner.tsx +1 -1
  162. package/src/Form/components/FormMask/FormMask.tsx +1 -1
  163. package/src/Form/components/FormMessage/FormMessage.tsx +1 -1
  164. package/src/Form/components/FormMessage/components/InternalFormMessage/InternalFormMessage.tsx +1 -1
  165. package/src/Form/components/FormMessageBanner/FormMessageBanner.tsx +1 -3
  166. package/src/Form/components/FormSaveButton/FormSaveButton.tsx +1 -1
  167. package/src/Form/context/types.ts +2 -2
  168. package/src/Form/hooks/useFormViewRefs.ts +4 -5
  169. package/src/Form/hooks/useInternalForm.ts +12 -5
  170. package/src/Form/types.ts +11 -4
  171. package/src/FormField/FormField.tsx +1 -1
  172. package/src/FormatFile/FormatFile.tsx +3 -3
  173. package/src/FormatFile/components/ErrorIcon/ErrorIcon.tsx +1 -1
  174. package/src/FormatFile/components/FileView/FileView.tsx +1 -1
  175. package/src/FormatFile/components/FormatFileBottomSheet/FormatFileBottomSheet.tsx +2 -2
  176. package/src/FormatFile/components/MediaView/MediaView.test.tsx +283 -0
  177. package/src/FormatFile/components/MediaView/MediaView.tsx +28 -7
  178. package/src/FormatFile/components/ProgressBar/ProgressBar.tsx +1 -1
  179. package/src/Heading/Heading.tsx +1 -1
  180. package/src/Icon/Icon.tsx +1 -1
  181. package/src/IconButton/IconButton.tsx +1 -1
  182. package/src/InputCurrency/InputCurrency.tsx +1 -1
  183. package/src/InputDate/InputDate.tsx +7 -3
  184. package/src/InputFieldWrapper/InputFieldWrapper.test.tsx +48 -1
  185. package/src/InputFieldWrapper/InputFieldWrapper.tsx +39 -29
  186. package/src/InputFieldWrapper/components/ClearAction/ClearAction.tsx +1 -1
  187. package/src/InputFieldWrapper/components/Prefix/Prefix.test.tsx +3 -5
  188. package/src/InputFieldWrapper/components/Prefix/Prefix.tsx +8 -6
  189. package/src/InputFieldWrapper/components/Suffix/Suffix.test.tsx +2 -4
  190. package/src/InputFieldWrapper/components/Suffix/Suffix.tsx +8 -6
  191. package/src/InputPassword/InputPassword.tsx +1 -1
  192. package/src/InputPressable/InputPressable.style.ts +4 -0
  193. package/src/InputPressable/InputPressable.test.tsx +75 -1
  194. package/src/InputPressable/InputPressable.tsx +34 -8
  195. package/src/InputSearch/InputSearch.tsx +1 -0
  196. package/src/InputSearch/components/FilterButton.tsx +1 -1
  197. package/src/InputText/InputText.style.ts +5 -0
  198. package/src/InputText/InputText.test.tsx +75 -0
  199. package/src/InputText/InputText.tsx +32 -12
  200. package/src/InputText/context/InputAccessoriesProvider.tsx +1 -1
  201. package/src/InputTime/InputTime.tsx +7 -3
  202. package/src/Menu/Menu.tsx +3 -3
  203. package/src/Menu/components/MenuOption/MenuOption.tsx +1 -1
  204. package/src/Menu/components/Overlay/Overlay.tsx +1 -1
  205. package/src/Menu/types.ts +7 -1
  206. package/src/ProgressBar/ProgressBar.tsx +1 -1
  207. package/src/ProgressBar/ProgressBarInner.tsx +1 -1
  208. package/src/Select/Select.tsx +2 -2
  209. package/src/Select/components/SelectDefaultPicker/SelectDefaultPicker.ios.tsx +1 -1
  210. package/src/Select/components/SelectDefaultPicker/SelectDefaultPicker.tsx +1 -1
  211. package/src/Select/components/SelectInternalPicker/SelectInternalPicker.tsx +1 -1
  212. package/src/Select/components/SelectPressable/SelectPressable.tsx +1 -4
  213. package/src/StatusLabel/StatusLabel.tsx +1 -1
  214. package/src/Switch/Switch.tsx +1 -1
  215. package/src/Switch/components/BaseSwitch/BaseSwitch.tsx +1 -1
  216. package/src/Text/Text.tsx +1 -1
  217. package/src/TextList/TextList.tsx +1 -1
  218. package/src/ThumbnailList/ThumbnailList.tsx +1 -1
  219. package/src/Toast/Toast.tsx +2 -2
  220. package/src/Typography/Typography.tsx +1 -1
  221. package/src/Typography/TypographyGestureDetector.tsx +1 -3
  222. package/src/utils/meta/meta.json +0 -1
  223. package/src/utils/test/MockSafeAreaProvider.tsx +1 -1
  224. package/dist/src/BottomSheet/components/BottomSheetInputText/BottomSheetInputText.js +0 -45
  225. package/dist/src/BottomSheet/components/BottomSheetInputText/BottomSheetInputText.styles.js +0 -8
  226. package/dist/types/src/BottomSheet/components/BottomSheetInputText/BottomSheetInputText.d.ts +0 -9
  227. package/dist/types/src/BottomSheet/components/BottomSheetInputText/BottomSheetInputText.styles.d.ts +0 -5
  228. package/src/BottomSheet/components/BottomSheetInputText/BottomSheetInputText.styles.ts +0 -9
  229. package/src/BottomSheet/components/BottomSheetInputText/BottomSheetInputText.tsx +0 -89
@@ -1 +1,2 @@
1
- export declare function ErrorIcon(): JSX.Element;
1
+ import React from "react";
2
+ export declare function ErrorIcon(): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { FormattedFile } from "../../types";
2
3
  interface FileViewProps {
3
4
  readonly accessibilityLabel?: string;
@@ -7,5 +8,5 @@ interface FileViewProps {
7
8
  readonly styleInGrid: boolean;
8
9
  readonly onUploadComplete: () => void;
9
10
  }
10
- export declare function FileView({ accessibilityLabel, styleInGrid, file, showOverlay, showError, onUploadComplete, }: FileViewProps): JSX.Element;
11
+ export declare function FileView({ accessibilityLabel, styleInGrid, file, showOverlay, showError, onUploadComplete, }: FileViewProps): React.JSX.Element;
11
12
  export {};
@@ -1,11 +1,12 @@
1
1
  import type { RefObject } from "react";
2
+ import React from "react";
2
3
  import type { BottomSheetRef } from "../../../BottomSheet/BottomSheet";
3
4
  export type BottomSheetOptionsSuffix = "receipt" | "image" | "file" | "video";
4
5
  interface FormatFileBottomSheetProps {
5
- readonly bottomSheetRef: RefObject<BottomSheetRef>;
6
+ readonly bottomSheetRef: RefObject<BottomSheetRef | null>;
6
7
  readonly onPreviewPress?: () => void;
7
8
  readonly onRemovePress?: () => void;
8
9
  readonly bottomSheetOptionsSuffix?: BottomSheetOptionsSuffix;
9
10
  }
10
- export declare const FormatFileBottomSheet: ({ bottomSheetRef, onPreviewPress, onRemovePress, bottomSheetOptionsSuffix, }: FormatFileBottomSheetProps) => JSX.Element;
11
+ export declare const FormatFileBottomSheet: ({ bottomSheetRef, onPreviewPress, onRemovePress, bottomSheetOptionsSuffix, }: FormatFileBottomSheetProps) => React.JSX.Element;
11
12
  export {};
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { FormattedFile } from "../../types";
2
3
  interface MediaViewProps {
3
4
  readonly accessibilityLabel?: string;
@@ -7,5 +8,5 @@ interface MediaViewProps {
7
8
  readonly styleInGrid: boolean;
8
9
  readonly onUploadComplete: () => void;
9
10
  }
10
- export declare function MediaView({ accessibilityLabel, showOverlay, showError, file, styleInGrid, onUploadComplete, }: MediaViewProps): JSX.Element;
11
+ export declare function MediaView({ accessibilityLabel, showOverlay, showError, file, styleInGrid, onUploadComplete, }: MediaViewProps): React.JSX.Element;
11
12
  export {};
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import { StatusCode } from "../../types";
2
3
  interface ProgressBarProps {
3
4
  /**
@@ -13,5 +14,5 @@ interface ProgressBarProps {
13
14
  */
14
15
  readonly onComplete?: () => void;
15
16
  }
16
- export declare const ProgressBar: ({ progress, status, onComplete, }: ProgressBarProps) => JSX.Element;
17
+ export declare const ProgressBar: ({ progress, status, onComplete, }: ProgressBarProps) => React.JSX.Element;
17
18
  export {};
@@ -34,5 +34,5 @@ interface HeadingProps<T extends HeadingLevel> extends Pick<TypographyProps<"bas
34
34
  readonly allowFontScaling?: boolean;
35
35
  }
36
36
  export declare const HEADING_MAX_SCALED_FONT_SIZE: Record<HeadingLevel, number>;
37
- export declare function Heading<T extends HeadingLevel = "heading">({ children, level, variation, reverseTheme, align, maxLines, allowFontScaling, selectable, }: HeadingProps<T>): JSX.Element;
37
+ export declare function Heading<T extends HeadingLevel = "heading">({ children, level, variation, reverseTheme, align, maxLines, allowFontScaling, selectable, }: HeadingProps<T>): React.JSX.Element;
38
38
  export {};
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { IconColorNames, IconNames, IconSizes } from "@jobber/design";
2
3
  export interface IconProps {
3
4
  /** The icon to show. */
@@ -22,4 +23,4 @@ export interface IconProps {
22
23
  */
23
24
  readonly testID?: string;
24
25
  }
25
- export declare function Icon({ name, color, size, customColor, testID, }: IconProps): JSX.Element;
26
+ export declare function Icon({ name, color, size, customColor, testID, }: IconProps): React.JSX.Element;
@@ -31,5 +31,5 @@ interface IconButtonProps {
31
31
  */
32
32
  readonly testID?: string;
33
33
  }
34
- export declare function IconButton({ badge, name, color, customColor, onPress, accessibilityLabel, testID, }: IconButtonProps): JSX.Element;
34
+ export declare function IconButton({ badge, name, color, customColor, onPress, accessibilityLabel, testID, }: IconButtonProps): React.JSX.Element;
35
35
  export {};
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { FormatNumberOptions } from "react-intl";
2
3
  import type { ControllerRenderProps, FieldValues } from "react-hook-form";
3
4
  import type { InputTextProps } from "../InputText";
@@ -28,4 +29,4 @@ export interface InputCurrencyProps extends Omit<InputTextProps, "keyboard" | "o
28
29
  readonly keyboard?: "decimal-pad" | "numbers-and-punctuation";
29
30
  }
30
31
  export declare const getInternalValue: (props: InputCurrencyProps, field: ControllerRenderProps<FieldValues, string>, formatNumber: (value: number, opts?: FormatNumberOptions | undefined) => string) => string;
31
- export declare function InputCurrency(props: InputCurrencyProps): JSX.Element;
32
+ export declare function InputCurrency(props: InputCurrencyProps): React.JSX.Element;
@@ -1,8 +1,10 @@
1
+ import React from "react";
1
2
  import type { UseControllerProps } from "react-hook-form";
2
3
  import type { XOR } from "ts-xor";
3
4
  import type { Clearable } from "@jobber/hooks";
4
5
  import type { InputFieldWrapperProps } from "../InputFieldWrapper";
5
- interface BaseInputDateProps extends Pick<InputFieldWrapperProps, "invalid" | "disabled" | "placeholder"> {
6
+ import type { InputPressableProps } from "../InputPressable/InputPressable";
7
+ interface BaseInputDateProps extends Pick<InputFieldWrapperProps, "invalid" | "disabled" | "placeholder">, Pick<InputPressableProps, "showMiniLabel"> {
6
8
  /**
7
9
  * Defaulted to "always" so user can clear the dates whenever there's a value.
8
10
  */
@@ -70,5 +72,5 @@ export type InputDateProps = XOR<FormControlledInputDate, DevControlledInputDate
70
72
  /**
71
73
  * Allow users to select a date using the device date picker.
72
74
  */
73
- export declare function InputDate(props: InputDateProps): JSX.Element;
75
+ export declare function InputDate(props: InputDateProps): React.JSX.Element;
74
76
  export {};
@@ -26,7 +26,14 @@ export interface InputFieldWrapperProps {
26
26
  * Text that goes below the input to help the user understand the input
27
27
  */
28
28
  readonly assistiveText?: string;
29
- readonly hasMiniLabel?: boolean;
29
+ /**
30
+ * Controls how the placeholder text is displayed.
31
+ * - normal: the placeholder text will be displayed in the normal placeholder position
32
+ * - mini: the placeholder text will float above the input value
33
+ * - hidden: the placeholder text will not be displayed
34
+ * @default "normal"
35
+ */
36
+ readonly placeholderMode?: "normal" | "mini" | "hidden";
30
37
  readonly hasValue?: boolean;
31
38
  /**
32
39
  * Symbol to display before the text input
@@ -78,4 +85,4 @@ export interface InputFieldWrapperProps {
78
85
  }
79
86
  export declare const INPUT_FIELD_WRAPPER_GLIMMERS_TEST_ID = "ATL-InputFieldWrapper-Glimmers";
80
87
  export declare const INPUT_FIELD_WRAPPER_SPINNER_TEST_ID = "ATL-InputFieldWrapper-Spinner";
81
- export declare function InputFieldWrapper({ invalid, disabled, placeholder, assistiveText, prefix, suffix, hasMiniLabel, hasValue, error, focused, children, onClear, showClearAction, styleOverride, toolbar, toolbarVisibility, loading, loadingType, }: InputFieldWrapperProps): JSX.Element;
88
+ export declare function InputFieldWrapper({ invalid, disabled, placeholder, assistiveText, prefix, suffix, placeholderMode, hasValue, error, focused, children, onClear, showClearAction, styleOverride, toolbar, toolbarVisibility, loading, loadingType, }: InputFieldWrapperProps): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  interface ClearActionProps {
2
3
  /**
3
4
  * Press handler
@@ -5,5 +6,5 @@ interface ClearActionProps {
5
6
  readonly onPress: () => void;
6
7
  readonly hasMarginRight?: boolean;
7
8
  }
8
- export declare function ClearAction({ onPress, hasMarginRight, }: ClearActionProps): JSX.Element;
9
+ export declare function ClearAction({ onPress, hasMarginRight, }: ClearActionProps): React.JSX.Element;
9
10
  export {};
@@ -1,22 +1,22 @@
1
+ import React from "react";
1
2
  import type { StyleProp, TextStyle, ViewStyle } from "react-native";
2
3
  import type { IconNames } from "@jobber/design";
3
4
  export interface PrefixLabelProps {
4
5
  readonly focused: boolean;
5
6
  readonly disabled?: boolean;
6
- readonly hasMiniLabel: boolean;
7
+ readonly miniLabelActive: boolean;
7
8
  readonly inputInvalid: boolean;
8
9
  readonly label: string;
9
10
  readonly styleOverride?: StyleProp<TextStyle>;
10
11
  }
11
12
  export declare const prefixLabelTestId = "ATL-InputFieldWrapper-PrefixLabel";
12
13
  export declare const prefixIconTestId = "ATL-InputFieldWrapper-PrefixIcon";
13
- export declare function PrefixLabel({ focused, disabled, hasMiniLabel, inputInvalid, label, styleOverride, }: PrefixLabelProps): JSX.Element;
14
+ export declare function PrefixLabel({ focused, disabled, miniLabelActive, inputInvalid, label, styleOverride, }: PrefixLabelProps): React.JSX.Element;
14
15
  export interface PrefixIconProps {
15
16
  readonly focused: boolean;
16
17
  readonly disabled?: boolean;
17
- readonly hasMiniLabel: boolean;
18
18
  readonly inputInvalid?: boolean;
19
19
  readonly icon: IconNames;
20
20
  readonly styleOverride?: StyleProp<ViewStyle>;
21
21
  }
22
- export declare function PrefixIcon({ focused, disabled, inputInvalid, icon, }: PrefixIconProps): JSX.Element;
22
+ export declare function PrefixIcon({ focused, disabled, inputInvalid, icon, }: PrefixIconProps): React.JSX.Element;
@@ -1,9 +1,10 @@
1
+ import React from "react";
1
2
  import type { StyleProp, TextStyle } from "react-native";
2
3
  import type { IconNames } from "@jobber/design";
3
4
  export interface SuffixLabelProps {
4
5
  readonly focused: boolean;
5
6
  readonly disabled?: boolean;
6
- readonly hasMiniLabel: boolean;
7
+ readonly miniLabelActive: boolean;
7
8
  readonly inputInvalid?: boolean;
8
9
  readonly label: string;
9
10
  readonly hasLeftMargin?: boolean;
@@ -11,14 +12,13 @@ export interface SuffixLabelProps {
11
12
  }
12
13
  export declare const suffixLabelTestId = "ATL-InputFieldWrapper-SuffixLabel";
13
14
  export declare const suffixIconTestId = "ATL-InputFieldWrapper-SuffixIcon";
14
- export declare function SuffixLabel({ focused, disabled, hasMiniLabel, inputInvalid, label, hasLeftMargin, styleOverride, }: SuffixLabelProps): JSX.Element;
15
+ export declare function SuffixLabel({ focused, disabled, miniLabelActive, inputInvalid, label, hasLeftMargin, styleOverride, }: SuffixLabelProps): React.JSX.Element;
15
16
  export interface SuffixIconProps {
16
17
  readonly focused: boolean;
17
18
  readonly disabled?: boolean;
18
- readonly hasMiniLabel: boolean;
19
19
  readonly inputInvalid?: boolean;
20
20
  readonly icon: IconNames;
21
21
  readonly hasLeftMargin?: boolean;
22
22
  readonly onPress?: () => void;
23
23
  }
24
- export declare function SuffixIcon({ focused, disabled, inputInvalid, icon, hasLeftMargin, onPress, }: SuffixIconProps): JSX.Element;
24
+ export declare function SuffixIcon({ focused, disabled, inputInvalid, icon, hasLeftMargin, onPress, }: SuffixIconProps): React.JSX.Element;
@@ -39,6 +39,14 @@ export interface InputPressableProps {
39
39
  * Indicates the current selection is invalid
40
40
  */
41
41
  readonly invalid?: boolean | string;
42
+ /**
43
+ * Controls the visibility of the mini label that appears inside the input
44
+ * when a value is entered. By default, the placeholder text moves up to
45
+ * become a mini label. Set to false to disable this behavior.
46
+ *
47
+ * @default true
48
+ */
49
+ readonly showMiniLabel?: boolean;
42
50
  /**
43
51
  * Callback that is called when the text input is focused
44
52
  * @param event
@@ -79,5 +87,5 @@ export interface InputPressableProps {
79
87
  }
80
88
  export type InputPressableRef = NativeText;
81
89
  export declare const InputPressable: React.ForwardRefExoticComponent<InputPressableProps & React.RefAttributes<NativeText>>;
82
- export declare function InputPressableInternal({ value, placeholder, disabled, invalid, error, onPress, accessibilityLabel, accessibilityHint, prefix, suffix, clearable, onClear, focused, }: InputPressableProps, ref: Ref<InputPressableRef>): JSX.Element;
90
+ export declare function InputPressableInternal({ value, placeholder, disabled, invalid, error, showMiniLabel, onPress, accessibilityLabel, accessibilityHint, prefix, suffix, clearable, onClear, focused, }: InputPressableProps, ref: Ref<InputPressableRef>): React.JSX.Element;
83
91
  export {};
@@ -15,4 +15,7 @@ export declare const useStyles: () => {
15
15
  inputInvalid: {
16
16
  borderColor: string;
17
17
  };
18
+ withoutMiniLabel: {
19
+ paddingTop: number;
20
+ };
18
21
  };
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import type { InputTextProps, InputTextRef } from "../InputText";
3
3
  export declare const InputSearch: React.ForwardRefExoticComponent<InputSearchProps & React.RefAttributes<InputTextRef>>;
4
- export interface InputSearchProps extends Pick<InputTextProps, "accessibilityHint" | "accessibilityLabel" | "autoFocus" | "placeholder" | "prefix"> {
4
+ export interface InputSearchProps extends Pick<InputTextProps, "accessibilityHint" | "accessibilityLabel" | "autoFocus" | "placeholder" | "prefix" | "showMiniLabel"> {
5
5
  /**
6
6
  * A callback function that handles the update of the new value of the property value.
7
7
  */
@@ -1,6 +1,7 @@
1
+ import React from "react";
1
2
  interface FilterButtonProps {
2
3
  readonly accessibilityLabel: string;
3
4
  readonly onClick: () => void;
4
5
  }
5
- export declare function FilterButton({ accessibilityLabel, onClick, }: FilterButtonProps): JSX.Element;
6
+ export declare function FilterButton({ accessibilityLabel, onClick, }: FilterButtonProps): React.JSX.Element;
6
7
  export {};
@@ -31,6 +31,14 @@ export interface InputTextProps extends Pick<InputFieldWrapperProps, "toolbar" |
31
31
  * Text that helps the user understand the input
32
32
  */
33
33
  readonly assistiveText?: string;
34
+ /**
35
+ * Controls the visibility of the mini label that appears inside the input
36
+ * when a value is entered. By default, the placeholder text moves up to
37
+ * become a mini label. Set to false to disable this behavior.
38
+ *
39
+ * @default true
40
+ */
41
+ readonly showMiniLabel?: boolean;
34
42
  /**
35
43
  * Determines what keyboard is shown
36
44
  */
@@ -14,4 +14,8 @@ export declare const useStyles: () => {
14
14
  multilineInputiOS: {
15
15
  paddingTop: number;
16
16
  };
17
+ multilineWithoutMiniLabel: {
18
+ paddingTop: number;
19
+ paddingBottom: number;
20
+ };
17
21
  };
@@ -1,4 +1,5 @@
1
1
  import type { ReactNode } from "react";
2
+ import React from "react";
2
3
  export declare function InputAccessoriesProvider({ children, }: {
3
4
  readonly children: ReactNode;
4
- }): JSX.Element;
5
+ }): React.JSX.Element;
@@ -1,8 +1,10 @@
1
+ import React from "react";
1
2
  import type { UseControllerProps } from "react-hook-form";
2
3
  import type { XOR } from "ts-xor";
3
4
  import type { Clearable } from "@jobber/hooks";
4
5
  import type { InputFieldWrapperProps } from "../InputFieldWrapper";
5
- interface InputTimeBaseProps extends Pick<InputFieldWrapperProps, "invalid" | "disabled" | "placeholder"> {
6
+ import type { InputPressableProps } from "../InputPressable/InputPressable";
7
+ interface InputTimeBaseProps extends Pick<InputFieldWrapperProps, "invalid" | "disabled" | "placeholder">, Pick<InputPressableProps, "showMiniLabel"> {
6
8
  /**
7
9
  * Defaulted to "always" so user can clear the time whenever there's a value.
8
10
  */
@@ -57,5 +59,5 @@ interface InputTimeDevControlled extends InputTimeBaseProps {
57
59
  readonly onChange: (value?: Date) => void;
58
60
  }
59
61
  export type InputTimeProps = XOR<InputTimeFormControlled, InputTimeDevControlled>;
60
- export declare function InputTime(props: InputTimeProps): JSX.Element;
62
+ export declare function InputTime(props: InputTimeProps): React.JSX.Element;
61
63
  export {};
@@ -1,2 +1,3 @@
1
+ import React from "react";
1
2
  import type { MenuProps } from "./types";
2
- export declare function Menu({ menuOptions, customActivator }: MenuProps): JSX.Element;
3
+ export declare function Menu({ menuOptions, customActivator }: MenuProps): React.JSX.Element;
@@ -1,2 +1,3 @@
1
+ import React from "react";
1
2
  import type { MenuOptionInternalProps } from "../../types";
2
- export declare function MenuOption({ label, icon, iconColor, textAlign, destructive, textTransform, onPress, setOpen, }: MenuOptionInternalProps): JSX.Element;
3
+ export declare function MenuOption({ label, icon, iconColor, textAlign, destructive, textTransform, onPress, setOpen, }: MenuOptionInternalProps): React.JSX.Element;
@@ -1,2 +1,3 @@
1
+ import React from "react";
1
2
  import type { OverlayProp } from "../../types";
2
- export declare function Overlay({ setOpen }: OverlayProp): JSX.Element;
3
+ export declare function Overlay({ setOpen }: OverlayProp): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import type { ReactElement } from "react";
1
2
  import type { IconColorNames, IconNames } from "@jobber/design";
2
3
  import type { TextAlign } from "../Typography";
3
4
  export interface MenuOptionProps {
@@ -12,9 +13,13 @@ export interface MenuOptionProps {
12
13
  export interface MenuOptionInternalProps extends MenuOptionProps {
13
14
  setOpen: (bool: boolean) => void;
14
15
  }
16
+ export interface CustomActivatorProps {
17
+ readonly onPress?: () => void;
18
+ readonly onLongPress?: () => void;
19
+ }
15
20
  export interface MenuProps {
16
21
  readonly menuOptions?: MenuOptionProps[];
17
- readonly customActivator?: JSX.Element;
22
+ readonly customActivator?: ReactElement<CustomActivatorProps>;
18
23
  }
19
24
  export interface OverlayProp {
20
25
  setOpen: (bool: boolean) => void;
@@ -1,2 +1,3 @@
1
+ import React from "react";
1
2
  import type { ProgressBarProps } from "./types";
2
- export declare function ProgressBar({ loading, total, current, inProgress, reverseTheme, header, variation, size, }: ProgressBarProps): JSX.Element;
3
+ export declare function ProgressBar({ loading, total, current, inProgress, reverseTheme, header, variation, size, }: ProgressBarProps): React.JSX.Element;
@@ -1,8 +1,9 @@
1
+ import React from "react";
1
2
  interface ProgressBarInnerProps {
2
3
  readonly width: number;
3
4
  readonly animationDuration?: number;
4
5
  readonly color?: string;
5
6
  }
6
- export declare function ProgressBarInner({ width, color, }: ProgressBarInnerProps): JSX.Element;
7
+ export declare function ProgressBarInner({ width, color, }: ProgressBarInnerProps): React.JSX.Element;
7
8
  export declare function calculateWidth(total: number, current: number): number;
8
9
  export {};
@@ -1,4 +1,5 @@
1
1
  import type { ReactElement } from "react";
2
+ import React from "react";
2
3
  import type { RegisterOptions } from "react-hook-form";
3
4
  export interface SelectOption {
4
5
  /**
@@ -69,5 +70,5 @@ export interface SelectProps {
69
70
  */
70
71
  readonly testID?: string;
71
72
  }
72
- export declare function Select({ value, defaultValue, onChange, children, placeholder, label, assistiveText, disabled, invalid, validations, accessibilityLabel, name, testID, }: SelectProps): JSX.Element;
73
- export declare function Option({ children }: SelectOption): JSX.Element;
73
+ export declare function Select({ value, defaultValue, onChange, children, placeholder, label, assistiveText, disabled, invalid, validations, accessibilityLabel, name, testID, }: SelectProps): React.JSX.Element;
74
+ export declare function Option({ children }: SelectOption): React.JSX.Element;
@@ -1,4 +1,5 @@
1
+ import React from "react";
1
2
  import type { SelectInternalPickerProps } from "../../types";
2
3
  type SelectDefaultPickerProps = SelectInternalPickerProps;
3
- export declare function SelectDefaultPicker({ children, options, disabled, onChange, }: SelectDefaultPickerProps): JSX.Element;
4
+ export declare function SelectDefaultPicker({ children, options, disabled, onChange, }: SelectDefaultPickerProps): React.JSX.Element;
4
5
  export {};
@@ -1,4 +1,5 @@
1
+ import React from "react";
1
2
  import type { SelectInternalPickerProps } from "../../types";
2
3
  type SelectDefaultPickerProps = SelectInternalPickerProps;
3
- export declare function SelectDefaultPicker({ children, options, onChange, }: SelectDefaultPickerProps): JSX.Element;
4
+ export declare function SelectDefaultPicker({ children, options, onChange, }: SelectDefaultPickerProps): React.JSX.Element;
4
5
  export {};
@@ -1,2 +1,3 @@
1
+ import React from "react";
1
2
  import type { SelectInternalPickerProps } from "../../types";
2
- export declare function SelectInternalPicker({ children, options, disabled, onChange, }: SelectInternalPickerProps): JSX.Element;
3
+ export declare function SelectInternalPicker({ children, options, disabled, onChange, }: SelectInternalPickerProps): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { PressableProps } from "react-native";
2
3
  import type { SelectInternalPickerProps } from "../../types";
3
4
  type SelectPressableProps = Pick<SelectInternalPickerProps, "children"> & Pick<PressableProps, "onPress">;
@@ -6,5 +7,5 @@ type SelectPressableProps = Pick<SelectInternalPickerProps, "children"> & Pick<P
6
7
  * screen-reader is being used to avoid screen-readers from ignoring the press
7
8
  * on the MenuView
8
9
  */
9
- export declare function SelectPressable({ children, onPress, }: SelectPressableProps): JSX.Element;
10
+ export declare function SelectPressable({ children, onPress }: SelectPressableProps): React.JSX.Element;
10
11
  export {};
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  export type StatusType = "success" | "warning" | "critical" | "inactive" | "informative";
2
3
  export interface StatusLabelType {
3
4
  readonly statusLabel: string;
@@ -17,5 +18,5 @@ interface StatusLabelProps {
17
18
  */
18
19
  readonly status?: StatusType;
19
20
  }
20
- export declare function StatusLabel({ text, alignment, status, }: StatusLabelProps): JSX.Element;
21
+ export declare function StatusLabel({ text, alignment, status, }: StatusLabelProps): React.JSX.Element;
21
22
  export {};
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { XOR } from "ts-xor";
2
3
  import type { BaseSwitchProps } from "./components/BaseSwitch";
3
4
  interface WithLabelProps extends BaseSwitchProps {
@@ -11,5 +12,5 @@ interface WithLabelProps extends BaseSwitchProps {
11
12
  readonly description?: string;
12
13
  }
13
14
  export type SwitchProps = XOR<BaseSwitchProps, WithLabelProps>;
14
- export declare function Switch(props: SwitchProps): JSX.Element;
15
+ export declare function Switch(props: SwitchProps): React.JSX.Element;
15
16
  export {};
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  export interface BaseSwitchProps {
2
3
  /**
3
4
  * Value of the switch
@@ -24,4 +25,4 @@ export interface BaseSwitchProps {
24
25
  */
25
26
  readonly name?: string;
26
27
  }
27
- export declare function BaseSwitch({ value, defaultValue, onValueChange, disabled, accessibilityLabel, name, }: BaseSwitchProps): JSX.Element;
28
+ export declare function BaseSwitch({ value, defaultValue, onValueChange, disabled, accessibilityLabel, name, }: BaseSwitchProps): React.JSX.Element;
@@ -74,4 +74,4 @@ export interface TextProps extends Pick<TypographyProps<"base">, "maxFontScaleSi
74
74
  }
75
75
  export type TextLevel = "text" | "textSupporting";
76
76
  export declare const TEXT_MAX_SCALED_FONT_SIZES: Record<TextLevel, number>;
77
- export declare function Text({ level, variation, emphasis, allowFontScaling, adjustsFontSizeToFit, maxLines, align, children, reverseTheme, strikeThrough, italic, hideFromScreenReader, maxFontScaleSize, UNSAFE_style, underline, selectable, onTextLayout, }: TextProps): JSX.Element;
77
+ export declare function Text({ level, variation, emphasis, allowFontScaling, adjustsFontSizeToFit, maxLines, align, children, reverseTheme, strikeThrough, italic, hideFromScreenReader, maxFontScaleSize, UNSAFE_style, underline, selectable, onTextLayout, }: TextProps): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { Spacing } from "../Content";
2
3
  import type { TextLevel } from "../Text";
3
4
  interface TextListProps {
@@ -25,5 +26,5 @@ interface TextListProps {
25
26
  */
26
27
  readonly childSpacing?: Spacing;
27
28
  }
28
- export declare function TextList({ items, childSpacing, emphasis, level, spacing, }: TextListProps): JSX.Element;
29
+ export declare function TextList({ items, childSpacing, emphasis, level, spacing, }: TextListProps): React.JSX.Element;
29
30
  export {};
@@ -1,4 +1,5 @@
1
+ import React from "react";
1
2
  import type { ThumbnailListProps } from "./types";
2
3
  import type { File } from "../FormatFile";
3
4
  export declare const filterImages: (files: File[]) => File[];
4
- export declare function ThumbnailList({ files, rowCount, handleOpenFile, createThumbnail, }: ThumbnailListProps): JSX.Element;
5
+ export declare function ThumbnailList({ files, rowCount, handleOpenFile, createThumbnail, }: ThumbnailListProps): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { ToastPosition } from "react-native-toast-message";
2
3
  export interface JobberToastProps {
3
4
  /**
@@ -7,7 +8,7 @@ export interface JobberToastProps {
7
8
  */
8
9
  readonly bottomOffset?: number;
9
10
  }
10
- export declare function JobberToast({ bottomOffset }: JobberToastProps): JSX.Element;
11
+ export declare function JobberToast({ bottomOffset }: JobberToastProps): React.JSX.Element;
11
12
  export interface ShowToastParams {
12
13
  /**
13
14
  * Message to be displayed in the toast
@@ -105,7 +105,7 @@ export interface TypographyUnsafeStyle {
105
105
  textStyle?: StyleProp<TextStyle>;
106
106
  }
107
107
  export declare const Typography: React.MemoExoticComponent<typeof InternalTypography>;
108
- declare function InternalTypography<T extends FontFamily = "base">({ fontFamily, fontStyle, fontWeight, transform, color, align, size, children, maxLines, allowFontScaling, maxFontScaleSize, adjustsFontSizeToFit, lineHeight, letterSpacing, reverseTheme, hideFromScreenReader, accessibilityRole, strikeThrough, underline, UNSAFE_style, selectable, onTextLayout, }: TypographyProps<T>): JSX.Element;
108
+ declare function InternalTypography<T extends FontFamily = "base">({ fontFamily, fontStyle, fontWeight, transform, color, align, size, children, maxLines, allowFontScaling, maxFontScaleSize, adjustsFontSizeToFit, lineHeight, letterSpacing, reverseTheme, hideFromScreenReader, accessibilityRole, strikeThrough, underline, UNSAFE_style, selectable, onTextLayout, }: TypographyProps<T>): React.JSX.Element;
109
109
  export type FontFamily = "base" | "display";
110
110
  export type FontStyle = "regular" | "italic";
111
111
  export type FontWeight = "regular" | "medium" | "bold" | "semiBold" | "extraBold" | "black";
@@ -1,7 +1,8 @@
1
1
  import type { PropsWithChildren } from "react";
2
+ import React from "react";
2
3
  /**
3
4
  * This is a workaround suggested by react-native-gesture-handler to prevent
4
5
  * accidental highlighting of text in Android devices
5
6
  * https://github.com/software-mansion/react-native-gesture-handler/issues/1372
6
7
  */
7
- export declare function TypographyGestureDetector(props: PropsWithChildren<unknown>): JSX.Element;
8
+ export declare function TypographyGestureDetector(props: PropsWithChildren<unknown>): React.JSX.Element;
@@ -5,5 +5,5 @@ interface MockSafeAreaProviderProps {
5
5
  readonly frame?: Rect;
6
6
  readonly insets?: EdgeInsets;
7
7
  }
8
- export declare function MockSafeAreaProvider({ frame, insets, children, }: MockSafeAreaProviderProps): JSX.Element;
8
+ export declare function MockSafeAreaProvider({ frame, insets, children, }: MockSafeAreaProviderProps): React.JSX.Element;
9
9
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jobber/components-native",
3
- "version": "0.89.5-JOB-140604-2d32fc8.44+2d32fc8db",
3
+ "version": "0.89.5-JOB-140604-8777ec5.52+8777ec587",
4
4
  "license": "MIT",
5
5
  "description": "React Native implementation of Atlantis",
6
6
  "repository": {
@@ -55,7 +55,7 @@
55
55
  "devDependencies": {
56
56
  "@gorhom/bottom-sheet": "^5.2.6",
57
57
  "@react-native-community/datetimepicker": "^8.4.5",
58
- "@react-native/babel-preset": "^0.81.1",
58
+ "@react-native/babel-preset": "^0.82.1",
59
59
  "@storybook/addon-a11y": "^9.1.2",
60
60
  "@storybook/react": "^9.1.2",
61
61
  "@storybook/react-native-web-vite": "^9.1.2",
@@ -67,14 +67,14 @@
67
67
  "@types/react-test-renderer": "19.1.0",
68
68
  "date-fns": "^2.30.0",
69
69
  "date-fns-tz": "^2.0.0",
70
- "react-native": "^0.81.4",
71
- "react-native-gesture-handler": "^2.28.0",
70
+ "react-native": "^0.82.1",
71
+ "react-native-gesture-handler": "^2.29.1",
72
72
  "react-native-modal-datetime-picker": "^18.0.0",
73
73
  "react-native-reanimated": "^3.7.1",
74
74
  "react-native-safe-area-context": "^5.4.0",
75
75
  "react-native-svg": "^15.1.0",
76
76
  "react-native-web": "^0.20.0",
77
- "react-test-renderer": "19.1.0",
77
+ "react-test-renderer": "^19.1.1",
78
78
  "storybook": "^9.1.2"
79
79
  },
80
80
  "peerDependencies": {
@@ -84,7 +84,7 @@
84
84
  "@react-native-community/datetimepicker": ">=6.7.0",
85
85
  "date-fns": "^2.30.0",
86
86
  "date-fns-tz": "^2.0.0",
87
- "react": "^18 || ^19.1.0",
87
+ "react": "^19",
88
88
  "react-intl": "^6 || ^7",
89
89
  "react-native": ">=0.79.5",
90
90
  "react-native-gesture-handler": ">=2.22.0",
@@ -96,5 +96,5 @@
96
96
  "react-native-safe-area-context": "^5.4.0",
97
97
  "react-native-svg": ">=12.0.0"
98
98
  },
99
- "gitHead": "2d32fc8db44e7e51a9a990e4a37b8611a9589636"
99
+ "gitHead": "8777ec5874ee31d4d513ca4ddc477228a383efb6"
100
100
  }
@@ -61,7 +61,7 @@ export function ActionItem({
61
61
  actionIconAlignment = "center",
62
62
  onPress,
63
63
  testID = "actionItem",
64
- }: ActionItemProps): JSX.Element {
64
+ }: ActionItemProps) {
65
65
  const actionIconStyle = {
66
66
  justifyContent: actionIconAlignment,
67
67
  };
@@ -18,9 +18,7 @@ interface ActionItemGroupProps {
18
18
  readonly children: ActionItemElement | ActionItemElement[];
19
19
  }
20
20
 
21
- export function ActionItemGroup({
22
- children,
23
- }: ActionItemGroupProps): JSX.Element {
21
+ export function ActionItemGroup({ children }: ActionItemGroupProps) {
24
22
  return <View>{renderChildren(children)}</View>;
25
23
  }
26
24
 
@@ -16,7 +16,7 @@ export function ActionItemContainer({
16
16
  title,
17
17
  children,
18
18
  testID,
19
- }: ActionItemContainerProps): JSX.Element {
19
+ }: ActionItemContainerProps) {
20
20
  const styles = useStyles();
21
21
  const actionItemStyles = useActionItemStyles();
22
22