@jobber/components-native 0.91.0 → 0.91.2

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 (174) hide show
  1. package/dist/package.json +2 -2
  2. package/dist/src/ActionItem/ActionItemGroup.js +1 -1
  3. package/dist/src/AutoLink/components/Link/Link.js +1 -1
  4. package/dist/src/ErrorMessageWrapper/context/ErrorMessageProvider.js +1 -1
  5. package/dist/src/Form/components/FormMessageBanner/FormMessageBanner.js +1 -1
  6. package/dist/src/FormatFile/components/MediaView/MediaView.js +22 -5
  7. package/dist/src/Select/components/SelectPressable/SelectPressable.js +1 -1
  8. package/dist/tsconfig.build.tsbuildinfo +1 -1
  9. package/dist/types/src/ActionItem/ActionItem.d.ts +2 -1
  10. package/dist/types/src/ActionItem/ActionItemGroup.d.ts +2 -1
  11. package/dist/types/src/ActionItem/components/ActionItemContainer.d.ts +2 -1
  12. package/dist/types/src/ActionLabel/ActionLabel.d.ts +1 -1
  13. package/dist/types/src/ActivityIndicator/ActivityIndicator.d.ts +2 -1
  14. package/dist/types/src/AutoLink/AutoLink.d.ts +2 -1
  15. package/dist/types/src/AutoLink/components/ComposeTextWithLinks/ComposeTextWithLinks.d.ts +2 -1
  16. package/dist/types/src/AutoLink/components/Link/Link.d.ts +2 -1
  17. package/dist/types/src/Banner/Banner.d.ts +2 -1
  18. package/dist/types/src/Banner/components/BannerIcon/BannerIcon.d.ts +2 -1
  19. package/dist/types/src/BottomSheet/components/BottomSheetOption/BottomSheetOption.d.ts +2 -1
  20. package/dist/types/src/Button/Button.d.ts +2 -1
  21. package/dist/types/src/Button/components/InternalButtonLoading/InternalButtonLoading.d.ts +1 -1
  22. package/dist/types/src/ButtonGroup/ButtonGroup.d.ts +2 -1
  23. package/dist/types/src/ButtonGroup/ButtonGroupAction.d.ts +4 -3
  24. package/dist/types/src/ButtonGroup/components/SecondaryActionSheet/SecondaryActionSheet.d.ts +2 -1
  25. package/dist/types/src/Card/Card.d.ts +2 -1
  26. package/dist/types/src/Card/components/InternalCardHeader.d.ts +2 -1
  27. package/dist/types/src/Checkbox/Checkbox.d.ts +2 -1
  28. package/dist/types/src/Checkbox/CheckboxGroup.d.ts +2 -1
  29. package/dist/types/src/Chip/Chip.d.ts +2 -1
  30. package/dist/types/src/Content/Content.d.ts +2 -1
  31. package/dist/types/src/Disclosure/Disclosure.d.ts +1 -1
  32. package/dist/types/src/Divider/Divider.d.ts +2 -1
  33. package/dist/types/src/EmptyState/EmptyState.d.ts +2 -1
  34. package/dist/types/src/ErrorMessageWrapper/ErrorMessageWrapper.d.ts +2 -1
  35. package/dist/types/src/ErrorMessageWrapper/context/ErrorMessageProvider.d.ts +2 -1
  36. package/dist/types/src/Flex/Flex.d.ts +2 -1
  37. package/dist/types/src/Form/Form.d.ts +2 -1
  38. package/dist/types/src/Form/components/FormActionBar/FormActionBar.d.ts +3 -2
  39. package/dist/types/src/Form/components/FormBody/FormBody.d.ts +3 -2
  40. package/dist/types/src/Form/components/FormCache/FormCache.d.ts +2 -1
  41. package/dist/types/src/Form/components/FormErrorBanner/FormErrorBanner.d.ts +2 -1
  42. package/dist/types/src/Form/components/FormMask/FormMask.d.ts +2 -1
  43. package/dist/types/src/Form/components/FormMessage/FormMessage.d.ts +2 -1
  44. package/dist/types/src/Form/components/FormMessage/components/InternalFormMessage/InternalFormMessage.d.ts +2 -1
  45. package/dist/types/src/Form/components/FormMessageBanner/FormMessageBanner.d.ts +2 -1
  46. package/dist/types/src/Form/components/FormSaveButton/FormSaveButton.d.ts +2 -1
  47. package/dist/types/src/Form/types.d.ts +2 -2
  48. package/dist/types/src/FormField/FormField.d.ts +1 -1
  49. package/dist/types/src/FormatFile/FormatFile.d.ts +2 -1
  50. package/dist/types/src/FormatFile/components/ErrorIcon/ErrorIcon.d.ts +2 -1
  51. package/dist/types/src/FormatFile/components/FileView/FileView.d.ts +2 -1
  52. package/dist/types/src/FormatFile/components/FormatFileBottomSheet/FormatFileBottomSheet.d.ts +2 -1
  53. package/dist/types/src/FormatFile/components/MediaView/MediaView.d.ts +2 -1
  54. package/dist/types/src/FormatFile/components/ProgressBar/ProgressBar.d.ts +2 -1
  55. package/dist/types/src/Heading/Heading.d.ts +1 -1
  56. package/dist/types/src/Icon/Icon.d.ts +2 -1
  57. package/dist/types/src/IconButton/IconButton.d.ts +1 -1
  58. package/dist/types/src/InputCurrency/InputCurrency.d.ts +2 -1
  59. package/dist/types/src/InputDate/InputDate.d.ts +2 -1
  60. package/dist/types/src/InputFieldWrapper/InputFieldWrapper.d.ts +1 -1
  61. package/dist/types/src/InputFieldWrapper/components/ClearAction/ClearAction.d.ts +2 -1
  62. package/dist/types/src/InputFieldWrapper/components/Prefix/Prefix.d.ts +3 -2
  63. package/dist/types/src/InputFieldWrapper/components/Suffix/Suffix.d.ts +3 -2
  64. package/dist/types/src/InputPressable/InputPressable.d.ts +1 -1
  65. package/dist/types/src/InputSearch/components/FilterButton.d.ts +2 -1
  66. package/dist/types/src/InputText/context/InputAccessoriesProvider.d.ts +2 -1
  67. package/dist/types/src/InputTime/InputTime.d.ts +2 -1
  68. package/dist/types/src/Menu/Menu.d.ts +2 -1
  69. package/dist/types/src/Menu/components/MenuOption/MenuOption.d.ts +2 -1
  70. package/dist/types/src/Menu/components/Overlay/Overlay.d.ts +2 -1
  71. package/dist/types/src/Menu/types.d.ts +2 -1
  72. package/dist/types/src/ProgressBar/ProgressBar.d.ts +2 -1
  73. package/dist/types/src/ProgressBar/ProgressBarInner.d.ts +2 -1
  74. package/dist/types/src/Select/Select.d.ts +3 -2
  75. package/dist/types/src/Select/components/SelectDefaultPicker/SelectDefaultPicker.d.ts +2 -1
  76. package/dist/types/src/Select/components/SelectDefaultPicker/SelectDefaultPicker.ios.d.ts +2 -1
  77. package/dist/types/src/Select/components/SelectInternalPicker/SelectInternalPicker.d.ts +2 -1
  78. package/dist/types/src/Select/components/SelectPressable/SelectPressable.d.ts +2 -1
  79. package/dist/types/src/StatusLabel/StatusLabel.d.ts +2 -1
  80. package/dist/types/src/Switch/Switch.d.ts +2 -1
  81. package/dist/types/src/Switch/components/BaseSwitch/BaseSwitch.d.ts +2 -1
  82. package/dist/types/src/Text/Text.d.ts +1 -1
  83. package/dist/types/src/TextList/TextList.d.ts +2 -1
  84. package/dist/types/src/ThumbnailList/ThumbnailList.d.ts +2 -1
  85. package/dist/types/src/Toast/Toast.d.ts +2 -1
  86. package/dist/types/src/Typography/Typography.d.ts +1 -1
  87. package/dist/types/src/Typography/TypographyGestureDetector.d.ts +2 -1
  88. package/dist/types/src/utils/test/MockSafeAreaProvider.d.ts +1 -1
  89. package/package.json +2 -2
  90. package/src/ActionItem/ActionItem.tsx +1 -1
  91. package/src/ActionItem/ActionItemGroup.tsx +1 -3
  92. package/src/ActionItem/components/ActionItemContainer.tsx +1 -1
  93. package/src/ActionLabel/ActionLabel.tsx +1 -1
  94. package/src/ActivityIndicator/ActivityIndicator.tsx +1 -3
  95. package/src/AutoLink/AutoLink.tsx +1 -1
  96. package/src/AutoLink/components/ComposeTextWithLinks/ComposeTextWithLinks.tsx +1 -1
  97. package/src/AutoLink/components/Link/Link.tsx +1 -5
  98. package/src/Banner/Banner.tsx +2 -2
  99. package/src/Banner/components/BannerIcon/BannerIcon.tsx +1 -1
  100. package/src/BottomSheet/components/BottomSheetOption/BottomSheetOption.tsx +1 -1
  101. package/src/Button/Button.tsx +1 -1
  102. package/src/Button/components/InternalButtonLoading/InternalButtonLoading.tsx +1 -1
  103. package/src/ButtonGroup/ButtonGroup.tsx +1 -1
  104. package/src/ButtonGroup/ButtonGroupAction.tsx +4 -4
  105. package/src/ButtonGroup/components/SecondaryActionSheet/SecondaryActionSheet.tsx +1 -1
  106. package/src/Card/Card.tsx +1 -1
  107. package/src/Card/components/InternalCardHeader.tsx +1 -1
  108. package/src/Checkbox/Checkbox.tsx +2 -2
  109. package/src/Checkbox/CheckboxGroup.test.tsx +1 -1
  110. package/src/Checkbox/CheckboxGroup.tsx +2 -2
  111. package/src/Chip/Chip.tsx +1 -1
  112. package/src/Content/Content.tsx +1 -1
  113. package/src/ContentOverlay/ContentOverlay.tsx +1 -1
  114. package/src/Disclosure/Disclosure.tsx +1 -1
  115. package/src/Divider/Divider.tsx +1 -1
  116. package/src/EmptyState/EmptyState.tsx +1 -1
  117. package/src/ErrorMessageWrapper/ErrorMessageWrapper.tsx +1 -1
  118. package/src/ErrorMessageWrapper/context/ErrorMessageProvider.tsx +1 -3
  119. package/src/Flex/Flex.tsx +2 -2
  120. package/src/Form/Form.test.tsx +2 -2
  121. package/src/Form/Form.tsx +1 -1
  122. package/src/Form/components/FormActionBar/FormActionBar.tsx +3 -3
  123. package/src/Form/components/FormBody/FormBody.tsx +3 -3
  124. package/src/Form/components/FormCache/FormCache.tsx +1 -1
  125. package/src/Form/components/FormErrorBanner/FormErrorBanner.tsx +1 -1
  126. package/src/Form/components/FormMask/FormMask.tsx +1 -1
  127. package/src/Form/components/FormMessage/FormMessage.tsx +1 -1
  128. package/src/Form/components/FormMessage/components/InternalFormMessage/InternalFormMessage.tsx +1 -1
  129. package/src/Form/components/FormMessageBanner/FormMessageBanner.tsx +1 -3
  130. package/src/Form/components/FormSaveButton/FormSaveButton.tsx +1 -1
  131. package/src/Form/types.ts +2 -2
  132. package/src/FormField/FormField.tsx +1 -1
  133. package/src/FormatFile/FormatFile.tsx +3 -3
  134. package/src/FormatFile/components/ErrorIcon/ErrorIcon.tsx +1 -1
  135. package/src/FormatFile/components/FileView/FileView.tsx +1 -1
  136. package/src/FormatFile/components/FormatFileBottomSheet/FormatFileBottomSheet.tsx +1 -1
  137. package/src/FormatFile/components/MediaView/MediaView.test.tsx +283 -0
  138. package/src/FormatFile/components/MediaView/MediaView.tsx +28 -7
  139. package/src/FormatFile/components/ProgressBar/ProgressBar.tsx +1 -1
  140. package/src/Heading/Heading.tsx +1 -1
  141. package/src/Icon/Icon.tsx +1 -1
  142. package/src/IconButton/IconButton.tsx +1 -1
  143. package/src/InputCurrency/InputCurrency.tsx +1 -1
  144. package/src/InputDate/InputDate.tsx +2 -2
  145. package/src/InputFieldWrapper/InputFieldWrapper.tsx +1 -1
  146. package/src/InputFieldWrapper/components/ClearAction/ClearAction.tsx +1 -1
  147. package/src/InputFieldWrapper/components/Prefix/Prefix.tsx +2 -2
  148. package/src/InputFieldWrapper/components/Suffix/Suffix.tsx +2 -2
  149. package/src/InputPassword/InputPassword.tsx +1 -1
  150. package/src/InputPressable/InputPressable.tsx +1 -1
  151. package/src/InputSearch/components/FilterButton.tsx +1 -1
  152. package/src/InputText/context/InputAccessoriesProvider.tsx +1 -1
  153. package/src/InputTime/InputTime.tsx +2 -2
  154. package/src/Menu/Menu.tsx +1 -1
  155. package/src/Menu/components/MenuOption/MenuOption.tsx +1 -1
  156. package/src/Menu/components/Overlay/Overlay.tsx +1 -1
  157. package/src/Menu/types.ts +2 -1
  158. package/src/ProgressBar/ProgressBar.tsx +1 -1
  159. package/src/ProgressBar/ProgressBarInner.tsx +1 -1
  160. package/src/Select/Select.tsx +2 -2
  161. package/src/Select/components/SelectDefaultPicker/SelectDefaultPicker.ios.tsx +1 -1
  162. package/src/Select/components/SelectDefaultPicker/SelectDefaultPicker.tsx +1 -1
  163. package/src/Select/components/SelectInternalPicker/SelectInternalPicker.tsx +1 -1
  164. package/src/Select/components/SelectPressable/SelectPressable.tsx +1 -4
  165. package/src/StatusLabel/StatusLabel.tsx +1 -1
  166. package/src/Switch/Switch.tsx +1 -1
  167. package/src/Switch/components/BaseSwitch/BaseSwitch.tsx +1 -1
  168. package/src/Text/Text.tsx +1 -1
  169. package/src/TextList/TextList.tsx +1 -1
  170. package/src/ThumbnailList/ThumbnailList.tsx +1 -1
  171. package/src/Toast/Toast.tsx +2 -2
  172. package/src/Typography/Typography.tsx +1 -1
  173. package/src/Typography/TypographyGestureDetector.tsx +1 -3
  174. package/src/utils/test/MockSafeAreaProvider.tsx +1 -1
@@ -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 {};
@@ -24,5 +24,5 @@ interface ActionLabelProps {
24
24
  */
25
25
  readonly align?: TextAlign;
26
26
  }
27
- 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;
28
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;
@@ -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,4 +1,5 @@
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 {
@@ -9,5 +10,5 @@ interface SecondaryActionSheetProps {
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;
@@ -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 {};
@@ -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,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { DeepPartial, FieldValues } from "react-hook-form";
2
3
  interface FormCacheProps<T extends FieldValues> {
3
4
  readonly localCacheId?: string | string[];
@@ -5,5 +6,5 @@ interface FormCacheProps<T extends FieldValues> {
5
6
  readonly localCacheExclude?: string[];
6
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,4 +1,4 @@
1
- import type { MutableRefObject, RefObject } from "react";
1
+ import type { MutableRefObject, ReactElement, RefObject } from "react";
2
2
  import type { ControllerProps, DefaultValues, FieldPath, FieldValues, Mode, UseFormReturn } from "react-hook-form";
3
3
  import type { IconNames } from "@jobber/design";
4
4
  import type { KeyboardAwareScrollView } from "react-native-keyboard-aware-scroll-view";
@@ -106,7 +106,7 @@ export interface FormProps<T extends FieldValues, SubmitResponseType> {
106
106
  * @deprecated use `secondaryAction` instead.
107
107
  * Override default save button in the sticky section of the form with another element.
108
108
  */
109
- renderStickySection?: (onSubmit: () => void, label: string | undefined, isSubmitting: boolean) => JSX.Element;
109
+ renderStickySection?: (onSubmit: () => void, label: string | undefined, isSubmitting: boolean) => ReactElement;
110
110
  /**
111
111
  * Adding a key will save a local copy of the form data that will be used to
112
112
  * recover values when the app is backgrounded or has crashed.
@@ -20,5 +20,5 @@ interface FormFieldProps<T> {
20
20
  */
21
21
  readonly validations?: RegisterOptions;
22
22
  }
23
- export declare function FormField<T>({ name, children, defaultValue: value, validations, }: FormFieldProps<T>): JSX.Element;
23
+ export declare function FormField<T>({ name, children, defaultValue: value, validations, }: FormFieldProps<T>): React.JSX.Element;
24
24
  export {};
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import type { BottomSheetOptionsSuffix } from "./components/FormatFileBottomSheet";
2
3
  import type { CreateThumbnail, File, FileUpload, FormattedFile } from "./types";
3
4
  export interface FormatFileProps<T> {
@@ -43,4 +44,4 @@ export interface FormatFileProps<T> {
43
44
  readonly showFileTypeIndicator?: boolean;
44
45
  readonly createThumbnail?: CreateThumbnail;
45
46
  }
46
- export declare function FormatFile<T extends File | FileUpload>({ file, accessibilityLabel, accessibilityHint, onTap, onRemove, bottomSheetOptionsSuffix, styleInGrid, testID, showFileTypeIndicator, createThumbnail, onPreviewPress, }: FormatFileProps<T>): JSX.Element;
47
+ export declare function FormatFile<T extends File | FileUpload>({ file, accessibilityLabel, accessibilityHint, onTap, onRemove, bottomSheetOptionsSuffix, styleInGrid, testID, showFileTypeIndicator, createThumbnail, onPreviewPress, }: FormatFileProps<T>): React.JSX.Element;
@@ -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,4 +1,5 @@
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 {
@@ -7,5 +8,5 @@ interface FormatFileBottomSheetProps {
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,3 +1,4 @@
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";
@@ -71,5 +72,5 @@ export type InputDateProps = XOR<FormControlledInputDate, DevControlledInputDate
71
72
  /**
72
73
  * Allow users to select a date using the device date picker.
73
74
  */
74
- export declare function InputDate(props: InputDateProps): JSX.Element;
75
+ export declare function InputDate(props: InputDateProps): React.JSX.Element;
75
76
  export {};
@@ -85,4 +85,4 @@ export interface InputFieldWrapperProps {
85
85
  }
86
86
  export declare const INPUT_FIELD_WRAPPER_GLIMMERS_TEST_ID = "ATL-InputFieldWrapper-Glimmers";
87
87
  export declare const INPUT_FIELD_WRAPPER_SPINNER_TEST_ID = "ATL-InputFieldWrapper-Spinner";
88
- export declare function InputFieldWrapper({ invalid, disabled, placeholder, assistiveText, prefix, suffix, placeholderMode, 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 {};