@jobber/components-native 0.91.1 → 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 (172) 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/Select/components/SelectPressable/SelectPressable.js +1 -1
  7. package/dist/tsconfig.build.tsbuildinfo +1 -1
  8. package/dist/types/src/ActionItem/ActionItem.d.ts +2 -1
  9. package/dist/types/src/ActionItem/ActionItemGroup.d.ts +2 -1
  10. package/dist/types/src/ActionItem/components/ActionItemContainer.d.ts +2 -1
  11. package/dist/types/src/ActionLabel/ActionLabel.d.ts +1 -1
  12. package/dist/types/src/ActivityIndicator/ActivityIndicator.d.ts +2 -1
  13. package/dist/types/src/AutoLink/AutoLink.d.ts +2 -1
  14. package/dist/types/src/AutoLink/components/ComposeTextWithLinks/ComposeTextWithLinks.d.ts +2 -1
  15. package/dist/types/src/AutoLink/components/Link/Link.d.ts +2 -1
  16. package/dist/types/src/Banner/Banner.d.ts +2 -1
  17. package/dist/types/src/Banner/components/BannerIcon/BannerIcon.d.ts +2 -1
  18. package/dist/types/src/BottomSheet/components/BottomSheetOption/BottomSheetOption.d.ts +2 -1
  19. package/dist/types/src/Button/Button.d.ts +2 -1
  20. package/dist/types/src/Button/components/InternalButtonLoading/InternalButtonLoading.d.ts +1 -1
  21. package/dist/types/src/ButtonGroup/ButtonGroup.d.ts +2 -1
  22. package/dist/types/src/ButtonGroup/ButtonGroupAction.d.ts +4 -3
  23. package/dist/types/src/ButtonGroup/components/SecondaryActionSheet/SecondaryActionSheet.d.ts +2 -1
  24. package/dist/types/src/Card/Card.d.ts +2 -1
  25. package/dist/types/src/Card/components/InternalCardHeader.d.ts +2 -1
  26. package/dist/types/src/Checkbox/Checkbox.d.ts +2 -1
  27. package/dist/types/src/Checkbox/CheckboxGroup.d.ts +2 -1
  28. package/dist/types/src/Chip/Chip.d.ts +2 -1
  29. package/dist/types/src/Content/Content.d.ts +2 -1
  30. package/dist/types/src/Disclosure/Disclosure.d.ts +1 -1
  31. package/dist/types/src/Divider/Divider.d.ts +2 -1
  32. package/dist/types/src/EmptyState/EmptyState.d.ts +2 -1
  33. package/dist/types/src/ErrorMessageWrapper/ErrorMessageWrapper.d.ts +2 -1
  34. package/dist/types/src/ErrorMessageWrapper/context/ErrorMessageProvider.d.ts +2 -1
  35. package/dist/types/src/Flex/Flex.d.ts +2 -1
  36. package/dist/types/src/Form/Form.d.ts +2 -1
  37. package/dist/types/src/Form/components/FormActionBar/FormActionBar.d.ts +3 -2
  38. package/dist/types/src/Form/components/FormBody/FormBody.d.ts +3 -2
  39. package/dist/types/src/Form/components/FormCache/FormCache.d.ts +2 -1
  40. package/dist/types/src/Form/components/FormErrorBanner/FormErrorBanner.d.ts +2 -1
  41. package/dist/types/src/Form/components/FormMask/FormMask.d.ts +2 -1
  42. package/dist/types/src/Form/components/FormMessage/FormMessage.d.ts +2 -1
  43. package/dist/types/src/Form/components/FormMessage/components/InternalFormMessage/InternalFormMessage.d.ts +2 -1
  44. package/dist/types/src/Form/components/FormMessageBanner/FormMessageBanner.d.ts +2 -1
  45. package/dist/types/src/Form/components/FormSaveButton/FormSaveButton.d.ts +2 -1
  46. package/dist/types/src/Form/types.d.ts +2 -2
  47. package/dist/types/src/FormField/FormField.d.ts +1 -1
  48. package/dist/types/src/FormatFile/FormatFile.d.ts +2 -1
  49. package/dist/types/src/FormatFile/components/ErrorIcon/ErrorIcon.d.ts +2 -1
  50. package/dist/types/src/FormatFile/components/FileView/FileView.d.ts +2 -1
  51. package/dist/types/src/FormatFile/components/FormatFileBottomSheet/FormatFileBottomSheet.d.ts +2 -1
  52. package/dist/types/src/FormatFile/components/MediaView/MediaView.d.ts +2 -1
  53. package/dist/types/src/FormatFile/components/ProgressBar/ProgressBar.d.ts +2 -1
  54. package/dist/types/src/Heading/Heading.d.ts +1 -1
  55. package/dist/types/src/Icon/Icon.d.ts +2 -1
  56. package/dist/types/src/IconButton/IconButton.d.ts +1 -1
  57. package/dist/types/src/InputCurrency/InputCurrency.d.ts +2 -1
  58. package/dist/types/src/InputDate/InputDate.d.ts +2 -1
  59. package/dist/types/src/InputFieldWrapper/InputFieldWrapper.d.ts +1 -1
  60. package/dist/types/src/InputFieldWrapper/components/ClearAction/ClearAction.d.ts +2 -1
  61. package/dist/types/src/InputFieldWrapper/components/Prefix/Prefix.d.ts +3 -2
  62. package/dist/types/src/InputFieldWrapper/components/Suffix/Suffix.d.ts +3 -2
  63. package/dist/types/src/InputPressable/InputPressable.d.ts +1 -1
  64. package/dist/types/src/InputSearch/components/FilterButton.d.ts +2 -1
  65. package/dist/types/src/InputText/context/InputAccessoriesProvider.d.ts +2 -1
  66. package/dist/types/src/InputTime/InputTime.d.ts +2 -1
  67. package/dist/types/src/Menu/Menu.d.ts +2 -1
  68. package/dist/types/src/Menu/components/MenuOption/MenuOption.d.ts +2 -1
  69. package/dist/types/src/Menu/components/Overlay/Overlay.d.ts +2 -1
  70. package/dist/types/src/Menu/types.d.ts +2 -1
  71. package/dist/types/src/ProgressBar/ProgressBar.d.ts +2 -1
  72. package/dist/types/src/ProgressBar/ProgressBarInner.d.ts +2 -1
  73. package/dist/types/src/Select/Select.d.ts +3 -2
  74. package/dist/types/src/Select/components/SelectDefaultPicker/SelectDefaultPicker.d.ts +2 -1
  75. package/dist/types/src/Select/components/SelectDefaultPicker/SelectDefaultPicker.ios.d.ts +2 -1
  76. package/dist/types/src/Select/components/SelectInternalPicker/SelectInternalPicker.d.ts +2 -1
  77. package/dist/types/src/Select/components/SelectPressable/SelectPressable.d.ts +2 -1
  78. package/dist/types/src/StatusLabel/StatusLabel.d.ts +2 -1
  79. package/dist/types/src/Switch/Switch.d.ts +2 -1
  80. package/dist/types/src/Switch/components/BaseSwitch/BaseSwitch.d.ts +2 -1
  81. package/dist/types/src/Text/Text.d.ts +1 -1
  82. package/dist/types/src/TextList/TextList.d.ts +2 -1
  83. package/dist/types/src/ThumbnailList/ThumbnailList.d.ts +2 -1
  84. package/dist/types/src/Toast/Toast.d.ts +2 -1
  85. package/dist/types/src/Typography/Typography.d.ts +1 -1
  86. package/dist/types/src/Typography/TypographyGestureDetector.d.ts +2 -1
  87. package/dist/types/src/utils/test/MockSafeAreaProvider.d.ts +1 -1
  88. package/package.json +2 -2
  89. package/src/ActionItem/ActionItem.tsx +1 -1
  90. package/src/ActionItem/ActionItemGroup.tsx +1 -3
  91. package/src/ActionItem/components/ActionItemContainer.tsx +1 -1
  92. package/src/ActionLabel/ActionLabel.tsx +1 -1
  93. package/src/ActivityIndicator/ActivityIndicator.tsx +1 -3
  94. package/src/AutoLink/AutoLink.tsx +1 -1
  95. package/src/AutoLink/components/ComposeTextWithLinks/ComposeTextWithLinks.tsx +1 -1
  96. package/src/AutoLink/components/Link/Link.tsx +1 -5
  97. package/src/Banner/Banner.tsx +2 -2
  98. package/src/Banner/components/BannerIcon/BannerIcon.tsx +1 -1
  99. package/src/BottomSheet/components/BottomSheetOption/BottomSheetOption.tsx +1 -1
  100. package/src/Button/Button.tsx +1 -1
  101. package/src/Button/components/InternalButtonLoading/InternalButtonLoading.tsx +1 -1
  102. package/src/ButtonGroup/ButtonGroup.tsx +1 -1
  103. package/src/ButtonGroup/ButtonGroupAction.tsx +4 -4
  104. package/src/ButtonGroup/components/SecondaryActionSheet/SecondaryActionSheet.tsx +1 -1
  105. package/src/Card/Card.tsx +1 -1
  106. package/src/Card/components/InternalCardHeader.tsx +1 -1
  107. package/src/Checkbox/Checkbox.tsx +2 -2
  108. package/src/Checkbox/CheckboxGroup.test.tsx +1 -1
  109. package/src/Checkbox/CheckboxGroup.tsx +2 -2
  110. package/src/Chip/Chip.tsx +1 -1
  111. package/src/Content/Content.tsx +1 -1
  112. package/src/ContentOverlay/ContentOverlay.tsx +1 -1
  113. package/src/Disclosure/Disclosure.tsx +1 -1
  114. package/src/Divider/Divider.tsx +1 -1
  115. package/src/EmptyState/EmptyState.tsx +1 -1
  116. package/src/ErrorMessageWrapper/ErrorMessageWrapper.tsx +1 -1
  117. package/src/ErrorMessageWrapper/context/ErrorMessageProvider.tsx +1 -3
  118. package/src/Flex/Flex.tsx +2 -2
  119. package/src/Form/Form.test.tsx +2 -2
  120. package/src/Form/Form.tsx +1 -1
  121. package/src/Form/components/FormActionBar/FormActionBar.tsx +3 -3
  122. package/src/Form/components/FormBody/FormBody.tsx +3 -3
  123. package/src/Form/components/FormCache/FormCache.tsx +1 -1
  124. package/src/Form/components/FormErrorBanner/FormErrorBanner.tsx +1 -1
  125. package/src/Form/components/FormMask/FormMask.tsx +1 -1
  126. package/src/Form/components/FormMessage/FormMessage.tsx +1 -1
  127. package/src/Form/components/FormMessage/components/InternalFormMessage/InternalFormMessage.tsx +1 -1
  128. package/src/Form/components/FormMessageBanner/FormMessageBanner.tsx +1 -3
  129. package/src/Form/components/FormSaveButton/FormSaveButton.tsx +1 -1
  130. package/src/Form/types.ts +2 -2
  131. package/src/FormField/FormField.tsx +1 -1
  132. package/src/FormatFile/FormatFile.tsx +3 -3
  133. package/src/FormatFile/components/ErrorIcon/ErrorIcon.tsx +1 -1
  134. package/src/FormatFile/components/FileView/FileView.tsx +1 -1
  135. package/src/FormatFile/components/FormatFileBottomSheet/FormatFileBottomSheet.tsx +1 -1
  136. package/src/FormatFile/components/MediaView/MediaView.tsx +1 -1
  137. package/src/FormatFile/components/ProgressBar/ProgressBar.tsx +1 -1
  138. package/src/Heading/Heading.tsx +1 -1
  139. package/src/Icon/Icon.tsx +1 -1
  140. package/src/IconButton/IconButton.tsx +1 -1
  141. package/src/InputCurrency/InputCurrency.tsx +1 -1
  142. package/src/InputDate/InputDate.tsx +2 -2
  143. package/src/InputFieldWrapper/InputFieldWrapper.tsx +1 -1
  144. package/src/InputFieldWrapper/components/ClearAction/ClearAction.tsx +1 -1
  145. package/src/InputFieldWrapper/components/Prefix/Prefix.tsx +2 -2
  146. package/src/InputFieldWrapper/components/Suffix/Suffix.tsx +2 -2
  147. package/src/InputPassword/InputPassword.tsx +1 -1
  148. package/src/InputPressable/InputPressable.tsx +1 -1
  149. package/src/InputSearch/components/FilterButton.tsx +1 -1
  150. package/src/InputText/context/InputAccessoriesProvider.tsx +1 -1
  151. package/src/InputTime/InputTime.tsx +2 -2
  152. package/src/Menu/Menu.tsx +1 -1
  153. package/src/Menu/components/MenuOption/MenuOption.tsx +1 -1
  154. package/src/Menu/components/Overlay/Overlay.tsx +1 -1
  155. package/src/Menu/types.ts +2 -1
  156. package/src/ProgressBar/ProgressBar.tsx +1 -1
  157. package/src/ProgressBar/ProgressBarInner.tsx +1 -1
  158. package/src/Select/Select.tsx +2 -2
  159. package/src/Select/components/SelectDefaultPicker/SelectDefaultPicker.ios.tsx +1 -1
  160. package/src/Select/components/SelectDefaultPicker/SelectDefaultPicker.tsx +1 -1
  161. package/src/Select/components/SelectInternalPicker/SelectInternalPicker.tsx +1 -1
  162. package/src/Select/components/SelectPressable/SelectPressable.tsx +1 -4
  163. package/src/StatusLabel/StatusLabel.tsx +1 -1
  164. package/src/Switch/Switch.tsx +1 -1
  165. package/src/Switch/components/BaseSwitch/BaseSwitch.tsx +1 -1
  166. package/src/Text/Text.tsx +1 -1
  167. package/src/TextList/TextList.tsx +1 -1
  168. package/src/ThumbnailList/ThumbnailList.tsx +1 -1
  169. package/src/Toast/Toast.tsx +2 -2
  170. package/src/Typography/Typography.tsx +1 -1
  171. package/src/Typography/TypographyGestureDetector.tsx +1 -3
  172. package/src/utils/test/MockSafeAreaProvider.tsx +1 -1
package/src/Text/Text.tsx CHANGED
@@ -143,7 +143,7 @@ export function Text({
143
143
  underline,
144
144
  selectable,
145
145
  onTextLayout,
146
- }: TextProps): JSX.Element {
146
+ }: TextProps) {
147
147
  const accessibilityRole: TextAccessibilityRole = "text";
148
148
 
149
149
  return (
@@ -44,7 +44,7 @@ export function TextList({
44
44
  emphasis,
45
45
  level = "text",
46
46
  spacing = "none",
47
- }: TextListProps): JSX.Element {
47
+ }: TextListProps) {
48
48
  const styles = useStyles();
49
49
 
50
50
  return (
@@ -26,7 +26,7 @@ export function ThumbnailList({
26
26
  rowCount = RowCount.TwoRows,
27
27
  handleOpenFile,
28
28
  createThumbnail,
29
- }: ThumbnailListProps): JSX.Element {
29
+ }: ThumbnailListProps) {
30
30
  const imageList = filterImages(files);
31
31
  const styles = useStyles();
32
32
 
@@ -17,7 +17,7 @@ import { tokens as staticTokens } from "../utils/design";
17
17
  const MAX_TOAST_MESSAGE_LENGTH = 60;
18
18
  const ANNOUNCEMENT_DELAY = 100;
19
19
 
20
- function DefaultToast({ text1 }: ToastConfigParams<string>): JSX.Element {
20
+ function DefaultToast({ text1 }: ToastConfigParams<string>) {
21
21
  const { bottom } = useSafeAreaInsets();
22
22
  const { t } = useAtlantisI18n();
23
23
  const styles = useStyles();
@@ -56,7 +56,7 @@ export interface JobberToastProps {
56
56
  readonly bottomOffset?: number;
57
57
  }
58
58
 
59
- export function JobberToast({ bottomOffset }: JobberToastProps): JSX.Element {
59
+ export function JobberToast({ bottomOffset }: JobberToastProps) {
60
60
  return <Toast bottomOffset={bottomOffset} config={toastConfig} />;
61
61
  }
62
62
 
@@ -174,7 +174,7 @@ function InternalTypography<T extends FontFamily = "base">({
174
174
  UNSAFE_style,
175
175
  selectable = true,
176
176
  onTextLayout,
177
- }: TypographyProps<T>): JSX.Element {
177
+ }: TypographyProps<T>) {
178
178
  const styles = useTypographyStyles();
179
179
  const sizeAndHeight = getSizeAndHeightStyle(size, styles, lineHeight);
180
180
  const style: StyleProp<ViewStyle>[] = [
@@ -7,8 +7,6 @@ import { Gesture, GestureDetector } from "react-native-gesture-handler";
7
7
  * accidental highlighting of text in Android devices
8
8
  * https://github.com/software-mansion/react-native-gesture-handler/issues/1372
9
9
  */
10
- export function TypographyGestureDetector(
11
- props: PropsWithChildren<unknown>,
12
- ): JSX.Element {
10
+ export function TypographyGestureDetector(props: PropsWithChildren<unknown>) {
13
11
  return <GestureDetector {...props} gesture={Gesture.Native()} />;
14
12
  }
@@ -12,7 +12,7 @@ export function MockSafeAreaProvider({
12
12
  frame,
13
13
  insets,
14
14
  children,
15
- }: MockSafeAreaProviderProps): JSX.Element {
15
+ }: MockSafeAreaProviderProps) {
16
16
  const initialFrame: Rect = { x: 0, y: 0, width: 0, height: 0 };
17
17
  const initialInsets: EdgeInsets = { bottom: 50, top: 50, left: 0, right: 0 };
18
18