@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
@@ -130,7 +130,7 @@ const computeDisplayFromNumericInput = (
130
130
  }
131
131
  };
132
132
 
133
- export function InputCurrency(props: InputCurrencyProps): JSX.Element {
133
+ export function InputCurrency(props: InputCurrencyProps) {
134
134
  const {
135
135
  showCurrencySymbol = true,
136
136
  maxDecimalPlaces = 5,
@@ -111,7 +111,7 @@ const display = Platform.OS === "ios" ? "inline" : "default";
111
111
  /**
112
112
  * Allow users to select a date using the device date picker.
113
113
  */
114
- export function InputDate(props: InputDateProps): JSX.Element {
114
+ export function InputDate(props: InputDateProps) {
115
115
  if (props.name) {
116
116
  return (
117
117
  <FormField<Date>
@@ -152,7 +152,7 @@ function InternalInputDate({
152
152
  onChange,
153
153
  accessibilityLabel,
154
154
  accessibilityHint,
155
- }: InputDateProps): JSX.Element {
155
+ }: InputDateProps) {
156
156
  const [showPicker, setShowPicker] = useState(false);
157
157
  const { t, locale, formatDate } = useAtlantisI18n();
158
158
 
@@ -138,7 +138,7 @@ export function InputFieldWrapper({
138
138
  toolbarVisibility = "while-editing",
139
139
  loading = false,
140
140
  loadingType = "spinner",
141
- }: InputFieldWrapperProps): JSX.Element {
141
+ }: InputFieldWrapperProps) {
142
142
  fieldAffixRequiredPropsCheck([prefix, suffix]);
143
143
  const handleClear = onClear ?? noopClear;
144
144
  warnIfClearActionWithNoOnClear(onClear, showClearAction);
@@ -15,7 +15,7 @@ interface ClearActionProps {
15
15
  export function ClearAction({
16
16
  onPress,
17
17
  hasMarginRight = false,
18
- }: ClearActionProps): JSX.Element {
18
+ }: ClearActionProps) {
19
19
  const { t } = useAtlantisI18n();
20
20
  const styles = useStyles();
21
21
 
@@ -27,7 +27,7 @@ export function PrefixLabel({
27
27
  inputInvalid,
28
28
  label,
29
29
  styleOverride,
30
- }: PrefixLabelProps): JSX.Element {
30
+ }: PrefixLabelProps) {
31
31
  const styles = useStyles();
32
32
  const typographyStyles = useTypographyStyles();
33
33
 
@@ -80,7 +80,7 @@ export function PrefixIcon({
80
80
  disabled,
81
81
  inputInvalid,
82
82
  icon,
83
- }: PrefixIconProps): JSX.Element {
83
+ }: PrefixIconProps) {
84
84
  const styles = useStyles();
85
85
  const { tokens } = useAtlantisTheme();
86
86
 
@@ -29,7 +29,7 @@ export function SuffixLabel({
29
29
  label,
30
30
  hasLeftMargin = true,
31
31
  styleOverride,
32
- }: SuffixLabelProps): JSX.Element {
32
+ }: SuffixLabelProps) {
33
33
  const styles = useStyles();
34
34
  const typographyStyles = useTypographyStyles();
35
35
 
@@ -86,7 +86,7 @@ export function SuffixIcon({
86
86
  icon,
87
87
  hasLeftMargin = false,
88
88
  onPress,
89
- }: SuffixIconProps): JSX.Element {
89
+ }: SuffixIconProps) {
90
90
  const styles = useStyles();
91
91
  const { tokens } = useAtlantisTheme();
92
92
 
@@ -23,7 +23,7 @@ export interface InputPasswordProps
23
23
  function InputPasswordInternal(
24
24
  { usePrivacyEye = true, ...props }: InputPasswordProps,
25
25
  ref: Ref<InputTextRef>,
26
- ): JSX.Element {
26
+ ) {
27
27
  const { t } = useAtlantisI18n();
28
28
  const [passwordHidden, setPasswordHidden] = useState(true);
29
29
  const [privacyEye, setPrivacyEye] = useState<IconNames>("eye");
@@ -126,7 +126,7 @@ export function InputPressableInternal(
126
126
  focused,
127
127
  }: InputPressableProps,
128
128
  ref: Ref<InputPressableRef>,
129
- ): JSX.Element {
129
+ ) {
130
130
  const hasValue = !!value;
131
131
 
132
132
  const placeholderMode = getPlaceholderMode(showMiniLabel, value);
@@ -10,7 +10,7 @@ interface FilterButtonProps {
10
10
  export function FilterButton({
11
11
  accessibilityLabel,
12
12
  onClick,
13
- }: FilterButtonProps): JSX.Element {
13
+ }: FilterButtonProps) {
14
14
  return (
15
15
  <IconButton
16
16
  onPress={() => {
@@ -16,7 +16,7 @@ export function InputAccessoriesProvider({
16
16
  children,
17
17
  }: {
18
18
  readonly children: ReactNode;
19
- }): JSX.Element {
19
+ }) {
20
20
  const inputAccessoryID = useRef(v4()).current;
21
21
  const {
22
22
  focusedInput,
@@ -99,7 +99,7 @@ function formatInvalidState(
99
99
  return Boolean(error);
100
100
  }
101
101
 
102
- export function InputTime(props: InputTimeProps): JSX.Element {
102
+ export function InputTime(props: InputTimeProps) {
103
103
  if (props.name) {
104
104
  return (
105
105
  <FormField name={props.name} validations={props.validations}>
@@ -134,7 +134,7 @@ function InternalInputTime({
134
134
  showMiniLabel = true,
135
135
  onChange,
136
136
  showIcon = true,
137
- }: InputTimeProps): JSX.Element {
137
+ }: InputTimeProps) {
138
138
  const [showPicker, setShowPicker] = useState(false);
139
139
  const { t, formatTime } = useAtlantisI18n();
140
140
  const { timeZone, timeFormat } = useAtlantisContext();
package/src/Menu/Menu.tsx CHANGED
@@ -20,7 +20,7 @@ import { useAtlantisContext } from "../AtlantisContext";
20
20
  import { useAtlantisI18n } from "../hooks/useAtlantisI18n";
21
21
  import { useAtlantisTheme } from "../AtlantisThemeContext";
22
22
 
23
- export function Menu({ menuOptions, customActivator }: MenuProps): JSX.Element {
23
+ export function Menu({ menuOptions, customActivator }: MenuProps) {
24
24
  const [open, setOpen] = useState<boolean>(false);
25
25
  const [menuPosition, setMenuPosition] = useState<object>();
26
26
  const activatorLayout = useRef<LayoutRectangle>();
@@ -17,7 +17,7 @@ export function MenuOption({
17
17
  textTransform = "capitalize",
18
18
  onPress,
19
19
  setOpen,
20
- }: MenuOptionInternalProps): JSX.Element {
20
+ }: MenuOptionInternalProps) {
21
21
  const destructiveColor = "destructive";
22
22
  const textVariation = destructive ? destructiveColor : "heading";
23
23
  const styles = useStyles();
@@ -3,7 +3,7 @@ import { Pressable, View } from "react-native";
3
3
  import { useStyles } from "./Overlay.style";
4
4
  import type { OverlayProp } from "../../types";
5
5
 
6
- export function Overlay({ setOpen }: OverlayProp): JSX.Element {
6
+ export function Overlay({ setOpen }: OverlayProp) {
7
7
  const styles = useStyles();
8
8
 
9
9
  return (
package/src/Menu/types.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import type { IconColorNames, IconNames } from "@jobber/design";
2
+ import type { ReactElement } from "react";
2
3
  import type { TextAlign } from "../Typography";
3
4
 
4
5
  export interface MenuOptionProps {
@@ -17,7 +18,7 @@ export interface MenuOptionInternalProps extends MenuOptionProps {
17
18
 
18
19
  export interface MenuProps {
19
20
  readonly menuOptions?: MenuOptionProps[];
20
- readonly customActivator?: JSX.Element;
21
+ readonly customActivator?: ReactElement;
21
22
  }
22
23
 
23
24
  export interface OverlayProp {
@@ -17,7 +17,7 @@ export function ProgressBar({
17
17
  header,
18
18
  variation = "progress",
19
19
  size = "base",
20
- }: ProgressBarProps): JSX.Element {
20
+ }: ProgressBarProps) {
21
21
  const { t } = useAtlantisI18n();
22
22
  const styles = useStyles();
23
23
  const { tokens } = useAtlantisTheme();
@@ -14,7 +14,7 @@ export function ProgressBarInner({
14
14
  width,
15
15
  // animationDuration = 0,
16
16
  color,
17
- }: ProgressBarInnerProps): JSX.Element {
17
+ }: ProgressBarInnerProps) {
18
18
  // Animation breaking on Android
19
19
  // const [animatedOpacity] = useTiming({
20
20
  // duration: animationDuration,
@@ -110,7 +110,7 @@ export function Select({
110
110
  accessibilityLabel,
111
111
  name,
112
112
  testID,
113
- }: SelectProps): JSX.Element {
113
+ }: SelectProps) {
114
114
  const { field, error } = useFormController({
115
115
  name,
116
116
  validations,
@@ -243,6 +243,6 @@ function getTestID(testID?: string): string {
243
243
  return "ATL-Select";
244
244
  }
245
245
 
246
- export function Option({ children }: SelectOption): JSX.Element {
246
+ export function Option({ children }: SelectOption) {
247
247
  return <>{children}</>;
248
248
  }
@@ -19,7 +19,7 @@ export function SelectDefaultPicker({
19
19
  children,
20
20
  options,
21
21
  onChange,
22
- }: SelectDefaultPickerProps): JSX.Element {
22
+ }: SelectDefaultPickerProps) {
23
23
  const [show, setShow] = useState(false);
24
24
  const { t } = useAtlantisI18n();
25
25
  const selectedLanguage = options.find(option => option.isActive);
@@ -12,7 +12,7 @@ export function SelectDefaultPicker({
12
12
  options,
13
13
  disabled,
14
14
  onChange,
15
- }: SelectDefaultPickerProps): JSX.Element {
15
+ }: SelectDefaultPickerProps) {
16
16
  const selectedItem = options.find(option => option.isActive);
17
17
  const pickerRef = useRef<Picker<string>>(null);
18
18
  const { tokens } = useAtlantisTheme();
@@ -10,7 +10,7 @@ export function SelectInternalPicker({
10
10
  options,
11
11
  disabled,
12
12
  onChange,
13
- }: SelectInternalPickerProps): JSX.Element {
13
+ }: SelectInternalPickerProps) {
14
14
  if (disabled) return <>{children}</>;
15
15
 
16
16
  if (isIOS14AndUp()) {
@@ -13,10 +13,7 @@ type SelectPressableProps = Pick<SelectInternalPickerProps, "children"> &
13
13
  * screen-reader is being used to avoid screen-readers from ignoring the press
14
14
  * on the MenuView
15
15
  */
16
- export function SelectPressable({
17
- children,
18
- onPress,
19
- }: SelectPressableProps): JSX.Element {
16
+ export function SelectPressable({ children, onPress }: SelectPressableProps) {
20
17
  const isScreenReaderEnabled = useIsScreenReaderEnabled();
21
18
  const styles = useStyles();
22
19
  if (isScreenReaderEnabled) return <>{children}</>;
@@ -37,7 +37,7 @@ export function StatusLabel({
37
37
  text,
38
38
  alignment = "end",
39
39
  status = "success",
40
- }: StatusLabelProps): JSX.Element {
40
+ }: StatusLabelProps) {
41
41
  const styles = useStyles();
42
42
 
43
43
  return (
@@ -20,7 +20,7 @@ interface WithLabelProps extends BaseSwitchProps {
20
20
 
21
21
  export type SwitchProps = XOR<BaseSwitchProps, WithLabelProps>;
22
22
 
23
- export function Switch(props: SwitchProps): JSX.Element {
23
+ export function Switch(props: SwitchProps) {
24
24
  const switchProps: SwitchProps = {
25
25
  ...props,
26
26
  accessibilityLabel: props.accessibilityLabel || props.label,
@@ -43,7 +43,7 @@ export function BaseSwitch({
43
43
  disabled = false,
44
44
  accessibilityLabel,
45
45
  name,
46
- }: BaseSwitchProps): JSX.Element {
46
+ }: BaseSwitchProps) {
47
47
  const { field } = useFormController({
48
48
  name,
49
49
  value: value ?? defaultValue,
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