@hero-design/rn 7.24.0 → 7.25.1

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 (253) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/assets/fonts/hero-icons-mobile.ttf +0 -0
  3. package/es/index.js +844 -751
  4. package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
  5. package/lib/index.js +845 -749
  6. package/package.json +6 -5
  7. package/rollup.config.js +1 -1
  8. package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +4 -4
  9. package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
  10. package/src/components/Attachment/StyledAttachment.tsx +44 -0
  11. package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +158 -0
  12. package/src/components/Attachment/__tests__/index.spec.tsx +59 -0
  13. package/src/components/Attachment/index.tsx +77 -0
  14. package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +3 -3
  15. package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  16. package/src/components/Badge/Status.tsx +1 -1
  17. package/src/components/Badge/StyledBadge.tsx +8 -1
  18. package/src/components/Badge/__tests__/Badge.spec.tsx +9 -0
  19. package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +44 -0
  20. package/src/components/Badge/index.tsx +1 -1
  21. package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  22. package/src/components/BottomSheet/Header.tsx +2 -1
  23. package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +52 -52
  24. package/src/components/BottomSheet/index.tsx +4 -4
  25. package/src/components/Button/Button.tsx +0 -11
  26. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +4 -4
  27. package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
  28. package/src/components/Button/LoadingIndicator/index.tsx +1 -1
  29. package/src/components/Button/StyledButton.tsx +24 -63
  30. package/src/components/Button/UtilityButton/__tests__/index.spec.tsx +2 -2
  31. package/src/components/Button/__tests__/Button.spec.tsx +10 -5
  32. package/src/components/Button/__tests__/StyledButton.spec.tsx +0 -70
  33. package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +301 -1206
  34. package/src/components/Calendar/CalendarRowItem.tsx +1 -4
  35. package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +5 -5
  36. package/src/components/Calendar/index.tsx +4 -3
  37. package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +1 -1
  38. package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +1 -1
  39. package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  40. package/src/components/Checkbox/StyledCheckbox.tsx +7 -5
  41. package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +4 -12
  42. package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +95 -42
  43. package/src/components/Checkbox/index.tsx +4 -2
  44. package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  45. package/src/components/ContentNavigator/index.tsx +2 -1
  46. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +1 -0
  47. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +28 -27
  48. package/src/components/Drawer/DragableDrawer/index.tsx +0 -2
  49. package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
  50. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
  51. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +1 -1
  52. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  53. package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
  54. package/src/components/Icon/HeroIcon/index.tsx +5 -1
  55. package/src/components/Icon/IconList.ts +30 -3
  56. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  57. package/src/components/List/BasicListItem.tsx +13 -8
  58. package/src/components/List/ListItem.tsx +8 -6
  59. package/src/components/List/StyledBasicListItem.tsx +2 -2
  60. package/src/components/List/StyledListItem.tsx +2 -2
  61. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +24 -36
  62. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +39 -59
  63. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +40 -44
  64. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +50 -50
  65. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +6 -6
  66. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +21 -21
  67. package/src/components/Progress/ProgressBar.tsx +1 -1
  68. package/src/components/Progress/ProgressCircle.tsx +1 -1
  69. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +10 -10
  70. package/src/components/Progress/types.ts +7 -1
  71. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +20 -32
  72. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +30 -48
  73. package/src/components/RefreshControl/__tests__/index.spec.tsx +1 -3
  74. package/src/components/RefreshControl/index.tsx +4 -2
  75. package/src/components/RichTextEditor/MentionList.tsx +12 -3
  76. package/src/components/RichTextEditor/RichTextEditor.tsx +3 -4
  77. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +4 -4
  78. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  79. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +13 -20
  80. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +146 -234
  81. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +430 -650
  82. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +11 -18
  83. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +136 -224
  84. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +409 -629
  85. package/src/components/Select/StyledOptionList.tsx +0 -1
  86. package/src/components/Select/__tests__/__snapshots__/StyledSelect.spec.tsx.snap +1 -1
  87. package/src/components/Spinner/StyledSpinner.tsx +1 -2
  88. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +4 -4
  89. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +16 -16
  90. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
  91. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +1 -1
  92. package/src/components/Swipeable/index.tsx +14 -2
  93. package/src/components/Switch/SelectorSwitch/Option.tsx +1 -5
  94. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +3 -3
  95. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  96. package/src/components/Switch/SelectorSwitch/__tests__/index.spec.tsx +1 -0
  97. package/src/components/Switch/SelectorSwitch/index.tsx +4 -1
  98. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +1 -1
  99. package/src/components/Tabs/StyledTabs.tsx +1 -1
  100. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +1 -1
  101. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  102. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +2 -2
  103. package/src/components/TextInput/StyledTextInput.tsx +1 -0
  104. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +11 -10
  105. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +27 -14
  106. package/src/components/TextInput/index.tsx +1 -0
  107. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +1 -0
  108. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +28 -27
  109. package/src/components/Toast/Toast.tsx +0 -3
  110. package/src/components/Toast/ToastProvider.tsx +1 -0
  111. package/src/components/Toast/__tests__/index.spec.tsx +1 -1
  112. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +12 -12
  113. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +6 -6
  114. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +4 -4
  115. package/src/emotion.d.ts +1 -0
  116. package/src/index.ts +6 -0
  117. package/src/theme/ThemeSwitcher.tsx +7 -1
  118. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +87 -74
  119. package/src/theme/__tests__/ensureCompatibleWithV7.spec.tsx +13 -0
  120. package/src/theme/components/alert.ts +1 -1
  121. package/src/theme/components/attachment.ts +28 -0
  122. package/src/theme/components/avatar.ts +1 -1
  123. package/src/theme/components/badge.ts +2 -1
  124. package/src/theme/components/bottomNavigation.ts +1 -1
  125. package/src/theme/components/bottomSheet.ts +2 -2
  126. package/src/theme/components/button.ts +4 -20
  127. package/src/theme/components/calendar.ts +3 -3
  128. package/src/theme/components/card.ts +1 -1
  129. package/src/theme/components/checkbox.ts +2 -2
  130. package/src/theme/components/divider.ts +1 -1
  131. package/src/theme/components/drawer.ts +2 -2
  132. package/src/theme/components/empty.ts +3 -3
  133. package/src/theme/components/fab.ts +7 -7
  134. package/src/theme/components/icon.ts +4 -4
  135. package/src/theme/components/list.ts +0 -2
  136. package/src/theme/components/pinInput.ts +4 -4
  137. package/src/theme/components/progress.ts +6 -5
  138. package/src/theme/components/radio.ts +1 -1
  139. package/src/theme/components/richTextEditor.ts +2 -2
  140. package/src/theme/components/slider.ts +2 -2
  141. package/src/theme/components/switch.ts +4 -4
  142. package/src/theme/components/tabs.ts +6 -5
  143. package/src/theme/components/tag.ts +2 -2
  144. package/src/theme/components/textInput.ts +23 -28
  145. package/src/theme/components/toast.ts +3 -3
  146. package/src/theme/components/toolbar.ts +3 -3
  147. package/src/theme/components/typography.ts +7 -7
  148. package/src/theme/getTheme.ts +4 -1
  149. package/src/theme/global/colors/eBens.ts +23 -0
  150. package/src/theme/global/colors/global.ts +15 -6
  151. package/src/theme/global/colors/jobs.ts +15 -9
  152. package/src/theme/global/colors/legacySystemPalette.ts +6 -6
  153. package/src/theme/global/colors/swag.ts +32 -53
  154. package/src/theme/global/colors/types.ts +35 -15
  155. package/src/theme/global/colors/wallet.ts +23 -0
  156. package/src/theme/global/colors/work.ts +15 -9
  157. package/src/theme/global/index.ts +4 -0
  158. package/src/theme/index.ts +4 -0
  159. package/src/utils/functions.ts +2 -0
  160. package/src/utils/scale.ts +1 -1
  161. package/tsconfig.json +8 -2
  162. package/types/components/Accordion/StyledAccordion.d.ts +14 -14
  163. package/types/components/Alert/StyledAlert.d.ts +15 -15
  164. package/types/components/Attachment/StyledAttachment.d.ts +28 -0
  165. package/types/components/Attachment/index.d.ts +37 -0
  166. package/types/components/Avatar/StyledAvatar.d.ts +15 -15
  167. package/types/components/Avatar/index.d.ts +1 -1
  168. package/types/components/Badge/Status.d.ts +1 -1
  169. package/types/components/Badge/StyledBadge.d.ts +8 -8
  170. package/types/components/Badge/index.d.ts +1 -1
  171. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +21 -21
  172. package/types/components/BottomSheet/Header.d.ts +1 -1
  173. package/types/components/BottomSheet/StyledBottomSheet.d.ts +22 -22
  174. package/types/components/Box/StyledBox.d.ts +4 -4
  175. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +7 -7
  176. package/types/components/Button/StyledButton.d.ts +15 -18
  177. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +8 -8
  178. package/types/components/Calendar/StyledCalendar.d.ts +25 -25
  179. package/types/components/Calendar/helpers.d.ts +2 -2
  180. package/types/components/Card/DataCard/StyledDataCard.d.ts +6 -6
  181. package/types/components/Card/StyledCard.d.ts +7 -7
  182. package/types/components/Checkbox/StyledCheckbox.d.ts +16 -10
  183. package/types/components/Collapse/StyledCollapse.d.ts +8 -8
  184. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +5 -5
  185. package/types/components/ContentNavigator/index.d.ts +2 -1
  186. package/types/components/DatePicker/StyledDatePicker.d.ts +3 -3
  187. package/types/components/Divider/StyledDivider.d.ts +5 -5
  188. package/types/components/Drawer/StyledDrawer.d.ts +19 -19
  189. package/types/components/Empty/StyledEmpty.d.ts +9 -9
  190. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +11 -11
  191. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +7 -7
  192. package/types/components/FAB/StyledFAB.d.ts +8 -8
  193. package/types/components/Icon/HeroIcon/index.d.ts +3 -3
  194. package/types/components/Icon/IconList.d.ts +1 -1
  195. package/types/components/Icon/index.d.ts +1 -1
  196. package/types/components/Icon/utils.d.ts +1 -1
  197. package/types/components/List/StyledBasicListItem.d.ts +16 -16
  198. package/types/components/List/StyledListItem.d.ts +25 -25
  199. package/types/components/PinInput/StyledPinInput.d.ts +30 -30
  200. package/types/components/Progress/ProgressBar.d.ts +1 -1
  201. package/types/components/Progress/ProgressCircle.d.ts +1 -1
  202. package/types/components/Progress/StyledProgressBar.d.ts +5 -5
  203. package/types/components/Progress/StyledProgressCircle.d.ts +18 -18
  204. package/types/components/Progress/types.d.ts +1 -1
  205. package/types/components/Radio/StyledRadio.d.ts +9 -9
  206. package/types/components/RefreshControl/index.d.ts +1 -2
  207. package/types/components/RichTextEditor/EditorToolbar.d.ts +1 -1
  208. package/types/components/RichTextEditor/MentionList.d.ts +1 -1
  209. package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +6 -6
  210. package/types/components/RichTextEditor/StyledToolbar.d.ts +9 -9
  211. package/types/components/RichTextEditor/index.d.ts +2 -2
  212. package/types/components/SectionHeading/StyledHeading.d.ts +9 -9
  213. package/types/components/Select/MultiSelect/Option.d.ts +1 -1
  214. package/types/components/Select/SingleSelect/Option.d.ts +1 -1
  215. package/types/components/Select/StyledSelect.d.ts +11 -11
  216. package/types/components/Select/helpers.d.ts +1 -1
  217. package/types/components/Spinner/StyledSpinner.d.ts +12 -12
  218. package/types/components/Swipeable/StyledSwipeable.d.ts +3 -3
  219. package/types/components/Swipeable/index.d.ts +7 -3
  220. package/types/components/Switch/SelectorSwitch/Option.d.ts +3 -1
  221. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +9 -9
  222. package/types/components/Switch/StyledSwitch.d.ts +5 -5
  223. package/types/components/Tabs/StyledScrollableTabs.d.ts +23 -23
  224. package/types/components/Tabs/StyledTabs.d.ts +22 -22
  225. package/types/components/Tag/StyledTag.d.ts +6 -6
  226. package/types/components/TextInput/StyledTextInput.d.ts +44 -44
  227. package/types/components/TextInput/index.d.ts +5 -5
  228. package/types/components/TimePicker/StyledTimePicker.d.ts +3 -3
  229. package/types/components/Toast/StyledToast.d.ts +17 -17
  230. package/types/components/Toolbar/StyledToolbar.d.ts +9 -9
  231. package/types/components/Typography/Text/StyledText.d.ts +3 -3
  232. package/types/index.d.ts +3 -2
  233. package/types/testHelpers/renderWithTheme.d.ts +1 -1
  234. package/types/theme/ThemeSwitcher.d.ts +2 -2
  235. package/types/theme/components/attachment.d.ts +21 -0
  236. package/types/theme/components/badge.d.ts +1 -0
  237. package/types/theme/components/button.d.ts +0 -15
  238. package/types/theme/components/list.d.ts +0 -1
  239. package/types/theme/components/progress.d.ts +1 -0
  240. package/types/theme/components/tabs.d.ts +1 -0
  241. package/types/theme/components/tag.d.ts +2 -2
  242. package/types/theme/components/textInput.d.ts +0 -5
  243. package/types/theme/getTheme.d.ts +2 -0
  244. package/types/theme/global/colors/eBens.d.ts +3 -0
  245. package/types/theme/global/colors/types.d.ts +23 -16
  246. package/types/theme/global/colors/wallet.d.ts +3 -0
  247. package/types/theme/global/index.d.ts +26 -12
  248. package/types/theme/index.d.ts +2 -2
  249. package/types/utils/functions.d.ts +1 -0
  250. package/types/utils/hooks.d.ts +1 -1
  251. package/assets/fonts/hero-icons.ttf +0 -0
  252. package/lib/assets/fonts/hero-icons.ttf +0 -0
  253. package/src/components/Icon/HeroIcon/fonts/hero-icons.ttf +0 -0
@@ -1,20 +1,20 @@
1
1
  import { View } from 'react-native';
2
2
  declare const StyledHeading: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
3
- theme?: import("@emotion/react").Theme;
4
- as?: import("react").ElementType<any>;
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
5
  }, {}, {
6
- ref?: import("react").Ref<View>;
6
+ ref?: import("react").Ref<View> | undefined;
7
7
  }>;
8
8
  declare const StyledIconWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
9
- theme?: import("@emotion/react").Theme;
10
- as?: import("react").ElementType<any>;
9
+ theme?: import("@emotion/react").Theme | undefined;
10
+ as?: import("react").ElementType<any> | undefined;
11
11
  }, {}, {
12
- ref?: import("react").Ref<View>;
12
+ ref?: import("react").Ref<View> | undefined;
13
13
  }>;
14
14
  declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
15
- theme?: import("@emotion/react").Theme;
16
- as?: import("react").ElementType<any>;
15
+ theme?: import("@emotion/react").Theme | undefined;
16
+ as?: import("react").ElementType<any> | undefined;
17
17
  }, {}, {
18
- ref?: import("react").Ref<View>;
18
+ ref?: import("react").Ref<View> | undefined;
19
19
  }>;
20
20
  export { StyledHeading, StyledIconWrapper, StyledWrapper };
@@ -1,7 +1,7 @@
1
1
  import type { ReactElement } from 'react';
2
2
  declare const Option: ({ text, disabled, selected, onPress, }: {
3
3
  text: string | ReactElement;
4
- disabled?: boolean;
4
+ disabled?: boolean | undefined;
5
5
  selected: boolean;
6
6
  onPress: () => void;
7
7
  }) => JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import type { ReactElement } from 'react';
2
2
  declare const Option: ({ text, disabled, selected, onPress, }: {
3
3
  text: string | ReactElement;
4
- disabled?: boolean;
4
+ disabled?: boolean | undefined;
5
5
  selected: boolean;
6
6
  onPress: () => void;
7
7
  }) => JSX.Element;
@@ -1,24 +1,24 @@
1
1
  import { View } from 'react-native';
2
2
  declare const SectionSpacer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
3
- theme?: import("@emotion/react").Theme;
4
- as?: import("react").ElementType<any>;
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
5
  }, {}, {
6
- ref?: import("react").Ref<View>;
6
+ ref?: import("react").Ref<View> | undefined;
7
7
  }>;
8
8
  declare const OptionSpacer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
9
- theme?: import("@emotion/react").Theme;
10
- as?: import("react").ElementType<any>;
9
+ theme?: import("@emotion/react").Theme | undefined;
10
+ as?: import("react").ElementType<any> | undefined;
11
11
  }, {}, {
12
- ref?: import("react").Ref<View>;
12
+ ref?: import("react").Ref<View> | undefined;
13
13
  }>;
14
14
  declare const FooterText: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
15
- theme?: import("@emotion/react").Theme;
16
- as?: import("react").ElementType<any>;
15
+ theme?: import("@emotion/react").Theme | undefined;
16
+ as?: import("react").ElementType<any> | undefined;
17
17
  }, {}, {}>;
18
18
  declare const StyledSearchBar: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
19
- theme?: import("@emotion/react").Theme;
20
- as?: import("react").ElementType<any>;
19
+ theme?: import("@emotion/react").Theme | undefined;
20
+ as?: import("react").ElementType<any> | undefined;
21
21
  }, {}, {
22
- ref?: import("react").Ref<View>;
22
+ ref?: import("react").Ref<View> | undefined;
23
23
  }>;
24
24
  export { SectionSpacer, OptionSpacer, FooterText, StyledSearchBar };
@@ -1,5 +1,5 @@
1
1
  import type { SectionData, CombinedOptionsType, OptionType } from './types';
2
- export declare const getKey: <V, T extends OptionType<V>>(option: T, index: number, keyExtractor?: (opt: T, i?: number) => string) => import("react").Key;
2
+ export declare const getKey: <V, T extends OptionType<V>>(option: T, index: number, keyExtractor?: ((opt: T, i?: number | undefined) => string) | undefined) => import("react").Key;
3
3
  export declare const isSections: <V, T extends OptionType<V>>(options: CombinedOptionsType<V, T>) => options is SectionData<V, T>[];
4
4
  export declare const toSections: <V, T extends OptionType<V>>(options: CombinedOptionsType<V, T>) => SectionData<V, T>[];
5
5
  export declare const toFlatOptions: <V, T extends OptionType<V>>(options: CombinedOptionsType<V, T>) => OptionType<V>[];
@@ -1,34 +1,34 @@
1
1
  import { View } from 'react-native';
2
2
  import type { ViewProps } from 'react-native';
3
3
  declare const StyledView: import("@emotion/native").StyledComponent<ViewProps & {
4
- theme?: import("@emotion/react").Theme;
5
- as?: import("react").ElementType<any>;
4
+ theme?: import("@emotion/react").Theme | undefined;
5
+ as?: import("react").ElementType<any> | undefined;
6
6
  }, {}, {
7
- ref?: import("react").Ref<View>;
7
+ ref?: import("react").Ref<View> | undefined;
8
8
  }>;
9
9
  declare const StyledSpinnerContainer: import("@emotion/native").StyledComponent<ViewProps & {
10
- theme?: import("@emotion/react").Theme;
11
- as?: import("react").ElementType<any>;
10
+ theme?: import("@emotion/react").Theme | undefined;
11
+ as?: import("react").ElementType<any> | undefined;
12
12
  }, {}, {
13
- ref?: import("react").Ref<View>;
13
+ ref?: import("react").Ref<View> | undefined;
14
14
  }>;
15
15
  declare const StyledSpinnerRow: import("@emotion/native").StyledComponent<ViewProps & {
16
- theme?: import("@emotion/react").Theme;
17
- as?: import("react").ElementType<any>;
16
+ theme?: import("@emotion/react").Theme | undefined;
17
+ as?: import("react").ElementType<any> | undefined;
18
18
  } & {
19
19
  themePosition: 'top' | 'bottom';
20
20
  themeSize: 'small' | 'medium';
21
21
  }, {}, {
22
- ref?: import("react").Ref<View>;
22
+ ref?: import("react").Ref<View> | undefined;
23
23
  }>;
24
24
  declare const StyledSpinnerDot: import("@emotion/native").StyledComponent<ViewProps & {
25
- theme?: import("@emotion/react").Theme;
26
- as?: import("react").ElementType<any>;
25
+ theme?: import("@emotion/react").Theme | undefined;
26
+ as?: import("react").ElementType<any> | undefined;
27
27
  } & {
28
28
  themePosition: 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
29
29
  themeSize: 'small' | 'medium';
30
30
  themeIntent: 'primary' | 'inverted';
31
31
  }, {}, {
32
- ref?: import("react").Ref<View>;
32
+ ref?: import("react").Ref<View> | undefined;
33
33
  }>;
34
34
  export { StyledView, StyledSpinnerContainer, StyledSpinnerRow, StyledSpinnerDot, };
@@ -1,10 +1,10 @@
1
1
  import { TouchableOpacity } from 'react-native';
2
2
  export declare type ActionIntent = 'primary' | 'success' | 'danger';
3
3
  export declare const StyledRectButton: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
4
- theme?: import("@emotion/react").Theme;
5
- as?: import("react").ElementType<any>;
4
+ theme?: import("@emotion/react").Theme | undefined;
5
+ as?: import("react").ElementType<any> | undefined;
6
6
  } & {
7
7
  themeIntent: ActionIntent;
8
8
  }, {}, {
9
- ref?: import("react").Ref<TouchableOpacity>;
9
+ ref?: import("react").Ref<TouchableOpacity> | undefined;
10
10
  }>;
@@ -1,7 +1,7 @@
1
- import { ReactNode } from 'react';
2
- import type { SwipeableProps as RnghSwipeableProps } from 'react-native-gesture-handler/Swipeable';
3
- import { RectButton } from 'react-native-gesture-handler';
1
+ import { ComponentProps, ReactNode } from 'react';
2
+ import { Swipeable as RnghSwipeable, RectButton } from 'react-native-gesture-handler';
4
3
  declare type State = 'closed' | 'leftOpen' | 'rightOpen';
4
+ declare type RnghSwipeableProps = ComponentProps<typeof RnghSwipeable>;
5
5
  export interface SwipeableProps extends Pick<RnghSwipeableProps, 'enableTrackpadTwoFingerGesture' | 'friction' | 'leftThreshold' | 'rightThreshold' | 'overshootLeft' | 'overshootRight' | 'overshootFriction' | 'useNativeAnimations' | 'containerStyle' | 'childrenContainerStyle'> {
6
6
  /**
7
7
  * React node that is swipeable.
@@ -33,6 +33,10 @@ export interface SwipeableProps extends Pick<RnghSwipeableProps, 'enableTrackpad
33
33
  * By default, it will take up the whole width of the device.
34
34
  */
35
35
  rightActionsWidth?: number;
36
+ /**
37
+ * Testing ID of the component
38
+ */
39
+ testID?: string;
36
40
  }
37
41
  declare const _default: (({ children, state, onStateChange, leftActions, leftActionsWidth, rightActions, rightActionsWidth, ...swipeableProps }: SwipeableProps) => JSX.Element) & {
38
42
  Action: ({ intent, onPress, style, children, testID, }: import("./SwipeableAction").SwipeableActionProps) => JSX.Element;
@@ -2,7 +2,9 @@ import type { ReactElement } from 'react';
2
2
  import type { BadgeConfigType, OptionType } from '.';
3
3
  export declare const OptionContent: ({ content, badge, }: {
4
4
  content: ReactElement;
5
- badge?: BadgeConfigType;
5
+ badge?: {
6
+ type: "status";
7
+ } | undefined;
6
8
  }) => JSX.Element;
7
9
  declare const Option: <T>({ text, icon, badge, selected, }: Pick<OptionType<T>, "text" | "icon" | "badge"> & {
8
10
  selected: boolean;
@@ -1,19 +1,19 @@
1
1
  import { View } from 'react-native';
2
2
  export declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
3
- theme?: import("@emotion/react").Theme;
4
- as?: import("react").ElementType<any>;
3
+ theme?: import("@emotion/react").Theme | undefined;
4
+ as?: import("react").ElementType<any> | undefined;
5
5
  }, {}, {
6
- ref?: import("react").Ref<View>;
6
+ ref?: import("react").Ref<View> | undefined;
7
7
  }>;
8
8
  export declare const StyledTextWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
9
- theme?: import("@emotion/react").Theme;
10
- as?: import("react").ElementType<any>;
9
+ theme?: import("@emotion/react").Theme | undefined;
10
+ as?: import("react").ElementType<any> | undefined;
11
11
  }, {}, {
12
- ref?: import("react").Ref<View>;
12
+ ref?: import("react").Ref<View> | undefined;
13
13
  }>;
14
14
  export declare const StyledIconWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
15
- theme?: import("@emotion/react").Theme;
16
- as?: import("react").ElementType<any>;
15
+ theme?: import("@emotion/react").Theme | undefined;
16
+ as?: import("react").ElementType<any> | undefined;
17
17
  }, {}, {
18
- ref?: import("react").Ref<View>;
18
+ ref?: import("react").Ref<View> | undefined;
19
19
  }>;
@@ -2,19 +2,19 @@ import { Animated, View } from 'react-native';
2
2
  declare type ThemeSize = 'small' | 'medium';
3
3
  export declare type Variant = 'checked' | 'unchecked' | 'disabled-checked' | 'disabled-unchecked';
4
4
  declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
5
- theme?: import("@emotion/react").Theme;
6
- as?: import("react").ElementType<any>;
5
+ theme?: import("@emotion/react").Theme | undefined;
6
+ as?: import("react").ElementType<any> | undefined;
7
7
  } & {
8
8
  themeVariant: Variant;
9
9
  themeSize: ThemeSize;
10
10
  }, {}, {
11
- ref?: import("react").Ref<View>;
11
+ ref?: import("react").Ref<View> | undefined;
12
12
  }>;
13
13
  declare const StyledKnot: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
14
14
  children?: import("react").ReactNode;
15
15
  } & {
16
- theme?: import("@emotion/react").Theme;
17
- as?: import("react").ElementType<any>;
16
+ theme?: import("@emotion/react").Theme | undefined;
17
+ as?: import("react").ElementType<any> | undefined;
18
18
  } & {
19
19
  themeSize: ThemeSize;
20
20
  }, {}, {}>;
@@ -1,26 +1,26 @@
1
1
  import { Animated, View } from 'react-native';
2
2
  import PagerView from 'react-native-pager-view';
3
3
  declare const TabScreen: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
4
- theme?: import("@emotion/react").Theme;
5
- as?: import("react").ElementType<any>;
4
+ theme?: import("@emotion/react").Theme | undefined;
5
+ as?: import("react").ElementType<any> | undefined;
6
6
  }, {}, {
7
- ref?: import("react").Ref<View>;
7
+ ref?: import("react").Ref<View> | undefined;
8
8
  }>;
9
9
  declare const TabContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
10
- theme?: import("@emotion/react").Theme;
11
- as?: import("react").ElementType<any>;
10
+ theme?: import("@emotion/react").Theme | undefined;
11
+ as?: import("react").ElementType<any> | undefined;
12
12
  }, {}, {
13
- ref?: import("react").Ref<View>;
13
+ ref?: import("react").Ref<View> | undefined;
14
14
  }>;
15
15
  declare const ContentWrapper: import("@emotion/native").StyledComponent<import("react-native-pager-view").PagerViewProps & {
16
- theme?: import("@emotion/react").Theme;
17
- as?: import("react").ElementType<any>;
16
+ theme?: import("@emotion/react").Theme | undefined;
17
+ as?: import("react").ElementType<any> | undefined;
18
18
  }, {}, {
19
- ref?: import("react").Ref<PagerView>;
19
+ ref?: import("react").Ref<PagerView> | undefined;
20
20
  }>;
21
21
  declare const HeaderTabWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
22
- theme?: import("@emotion/react").Theme;
23
- as?: import("react").ElementType<any>;
22
+ theme?: import("@emotion/react").Theme | undefined;
23
+ as?: import("react").ElementType<any> | undefined;
24
24
  } & {
25
25
  themeInsets: {
26
26
  top: number;
@@ -29,34 +29,34 @@ declare const HeaderTabWrapper: import("@emotion/native").StyledComponent<import
29
29
  left: number;
30
30
  };
31
31
  }, {}, {
32
- ref?: import("react").Ref<View>;
32
+ ref?: import("react").Ref<View> | undefined;
33
33
  }>;
34
34
  declare const HeaderTabItem: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
35
35
  children?: import("react").ReactNode;
36
36
  } & {
37
- theme?: import("@emotion/react").Theme;
38
- as?: import("react").ElementType<any>;
37
+ theme?: import("@emotion/react").Theme | undefined;
38
+ as?: import("react").ElementType<any> | undefined;
39
39
  } & {
40
- isFirstItem?: boolean;
40
+ isFirstItem?: boolean | undefined;
41
41
  }, {}, {}>;
42
42
  declare const HeaderTabItemOutlineWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
43
- theme?: import("@emotion/react").Theme;
44
- as?: import("react").ElementType<any>;
43
+ theme?: import("@emotion/react").Theme | undefined;
44
+ as?: import("react").ElementType<any> | undefined;
45
45
  }, {}, {
46
- ref?: import("react").Ref<View>;
46
+ ref?: import("react").Ref<View> | undefined;
47
47
  }>;
48
48
  declare const HeaderTabItemOutline: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
49
49
  children?: import("react").ReactNode;
50
50
  } & {
51
- theme?: import("@emotion/react").Theme;
52
- as?: import("react").ElementType<any>;
51
+ theme?: import("@emotion/react").Theme | undefined;
52
+ as?: import("react").ElementType<any> | undefined;
53
53
  } & {
54
54
  themeActive: boolean;
55
55
  }, {}, {}>;
56
56
  declare const HeaderTabItemWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
57
- theme?: import("@emotion/react").Theme;
58
- as?: import("react").ElementType<any>;
57
+ theme?: import("@emotion/react").Theme | undefined;
58
+ as?: import("react").ElementType<any> | undefined;
59
59
  }, {}, {
60
- ref?: import("react").Ref<View>;
60
+ ref?: import("react").Ref<View> | undefined;
61
61
  }>;
62
62
  export { HeaderTabItem, TabScreen, TabContainer, HeaderTabWrapper, ContentWrapper, HeaderTabItemOutlineWrapper, HeaderTabItemOutline, HeaderTabItemWrapper, };
@@ -1,14 +1,14 @@
1
1
  import { Animated, View } from 'react-native';
2
2
  import PagerView from 'react-native-pager-view';
3
3
  declare const TabContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
4
- theme?: import("@emotion/react").Theme;
5
- as?: import("react").ElementType<any>;
4
+ theme?: import("@emotion/react").Theme | undefined;
5
+ as?: import("react").ElementType<any> | undefined;
6
6
  }, {}, {
7
- ref?: import("react").Ref<View>;
7
+ ref?: import("react").Ref<View> | undefined;
8
8
  }>;
9
9
  declare const HeaderTabWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
10
- theme?: import("@emotion/react").Theme;
11
- as?: import("react").ElementType<any>;
10
+ theme?: import("@emotion/react").Theme | undefined;
11
+ as?: import("react").ElementType<any> | undefined;
12
12
  } & {
13
13
  themeInsets: {
14
14
  top: number;
@@ -17,44 +17,44 @@ declare const HeaderTabWrapper: import("@emotion/native").StyledComponent<import
17
17
  left: number;
18
18
  };
19
19
  }, {}, {
20
- ref?: import("react").Ref<View>;
20
+ ref?: import("react").Ref<View> | undefined;
21
21
  }>;
22
22
  declare const HeaderTab: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
23
- theme?: import("@emotion/react").Theme;
24
- as?: import("react").ElementType<any>;
23
+ theme?: import("@emotion/react").Theme | undefined;
24
+ as?: import("react").ElementType<any> | undefined;
25
25
  }, {}, {
26
- ref?: import("react").Ref<View>;
26
+ ref?: import("react").Ref<View> | undefined;
27
27
  }>;
28
28
  declare const HeaderTabItem: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
29
- theme?: import("@emotion/react").Theme;
30
- as?: import("react").ElementType<any>;
29
+ theme?: import("@emotion/react").Theme | undefined;
30
+ as?: import("react").ElementType<any> | undefined;
31
31
  }, {}, {
32
- ref?: import("react").Ref<View>;
32
+ ref?: import("react").Ref<View> | undefined;
33
33
  }>;
34
34
  declare const ContentWrapper: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native-pager-view").PagerViewProps & import("react").RefAttributes<PagerView>> & {
35
35
  children?: import("react").ReactNode;
36
36
  } & {
37
- theme?: import("@emotion/react").Theme;
38
- as?: import("react").ElementType<any>;
37
+ theme?: import("@emotion/react").Theme | undefined;
38
+ as?: import("react").ElementType<any> | undefined;
39
39
  }, {}, {}>;
40
40
  declare const TabScreen: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
41
- theme?: import("@emotion/react").Theme;
42
- as?: import("react").ElementType<any>;
41
+ theme?: import("@emotion/react").Theme | undefined;
42
+ as?: import("react").ElementType<any> | undefined;
43
43
  }, {}, {
44
- ref?: import("react").Ref<View>;
44
+ ref?: import("react").Ref<View> | undefined;
45
45
  }>;
46
46
  declare const StyledIndicator: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
47
47
  children?: import("react").ReactNode;
48
48
  } & {
49
- theme?: import("@emotion/react").Theme;
50
- as?: import("react").ElementType<any>;
49
+ theme?: import("@emotion/react").Theme | undefined;
50
+ as?: import("react").ElementType<any> | undefined;
51
51
  } & {
52
52
  themeWidth: number;
53
53
  }, {}, {}>;
54
54
  declare const StyledBadgeWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
55
- theme?: import("@emotion/react").Theme;
56
- as?: import("react").ElementType<any>;
55
+ theme?: import("@emotion/react").Theme | undefined;
56
+ as?: import("react").ElementType<any> | undefined;
57
57
  }, {}, {
58
- ref?: import("react").Ref<View>;
58
+ ref?: import("react").Ref<View> | undefined;
59
59
  }>;
60
60
  export { TabContainer, HeaderTabWrapper, HeaderTab, HeaderTabItem, ContentWrapper, TabScreen, StyledIndicator, StyledBadgeWrapper, };
@@ -1,19 +1,19 @@
1
1
  import { View, Text } from 'react-native';
2
2
  declare type ThemeIntent = 'default' | 'primary' | 'info' | 'success' | 'warning' | 'danger' | 'archived';
3
3
  declare const StyledView: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
4
- theme?: import("@emotion/react").Theme;
5
- as?: import("react").ElementType<any>;
4
+ theme?: import("@emotion/react").Theme | undefined;
5
+ as?: import("react").ElementType<any> | undefined;
6
6
  } & {
7
7
  themeIntent: ThemeIntent;
8
8
  }, {}, {
9
- ref?: import("react").Ref<View>;
9
+ ref?: import("react").Ref<View> | undefined;
10
10
  }>;
11
11
  declare const StyledText: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
12
- theme?: import("@emotion/react").Theme;
13
- as?: import("react").ElementType<any>;
12
+ theme?: import("@emotion/react").Theme | undefined;
13
+ as?: import("react").ElementType<any> | undefined;
14
14
  } & {
15
15
  themeIntent: ThemeIntent;
16
16
  }, {}, {
17
- ref?: import("react").Ref<Text>;
17
+ ref?: import("react").Ref<Text> | undefined;
18
18
  }>;
19
19
  export { StyledView, StyledText };
@@ -1,104 +1,104 @@
1
1
  import { TextInput, View } from 'react-native';
2
2
  export declare type Variant = 'default' | 'filled' | 'disabled' | 'readonly' | 'error';
3
3
  declare const StyledContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
4
- theme?: import("@emotion/react").Theme;
5
- as?: import("react").ElementType<any>;
4
+ theme?: import("@emotion/react").Theme | undefined;
5
+ as?: import("react").ElementType<any> | undefined;
6
6
  }, {}, {
7
- ref?: import("react").Ref<View>;
7
+ ref?: import("react").Ref<View> | undefined;
8
8
  }>;
9
9
  declare const StyledLabelContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
10
- theme?: import("@emotion/react").Theme;
11
- as?: import("react").ElementType<any>;
10
+ theme?: import("@emotion/react").Theme | undefined;
11
+ as?: import("react").ElementType<any> | undefined;
12
12
  }, {}, {
13
- ref?: import("react").Ref<View>;
13
+ ref?: import("react").Ref<View> | undefined;
14
14
  }>;
15
15
  declare const StyledLabel: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
16
- theme?: import("@emotion/react").Theme;
17
- as?: import("react").ElementType<any>;
16
+ theme?: import("@emotion/react").Theme | undefined;
17
+ as?: import("react").ElementType<any> | undefined;
18
18
  } & {
19
19
  themeVariant: Variant;
20
20
  }, {}, {}>;
21
21
  declare const StyledAsteriskLabel: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
22
- theme?: import("@emotion/react").Theme;
23
- as?: import("react").ElementType<any>;
22
+ theme?: import("@emotion/react").Theme | undefined;
23
+ as?: import("react").ElementType<any> | undefined;
24
24
  } & {
25
25
  themeVariant: Variant;
26
26
  }, {}, {}>;
27
27
  declare const StyledLabelContainerInsideTextInput: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
28
- theme?: import("@emotion/react").Theme;
29
- as?: import("react").ElementType<any>;
28
+ theme?: import("@emotion/react").Theme | undefined;
29
+ as?: import("react").ElementType<any> | undefined;
30
30
  }, {}, {
31
- ref?: import("react").Ref<View>;
31
+ ref?: import("react").Ref<View> | undefined;
32
32
  }>;
33
33
  declare const StyledLabelInsideTextInput: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
34
- theme?: import("@emotion/react").Theme;
35
- as?: import("react").ElementType<any>;
34
+ theme?: import("@emotion/react").Theme | undefined;
35
+ as?: import("react").ElementType<any> | undefined;
36
36
  } & {
37
37
  themeVariant: Variant;
38
38
  }, {}, {}>;
39
39
  declare const StyledAsteriskLabelInsideTextInput: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
40
- theme?: import("@emotion/react").Theme;
41
- as?: import("react").ElementType<any>;
40
+ theme?: import("@emotion/react").Theme | undefined;
41
+ as?: import("react").ElementType<any> | undefined;
42
42
  } & {
43
43
  themeVariant: Variant;
44
44
  }, {}, {}>;
45
45
  declare const StyledErrorContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
46
- theme?: import("@emotion/react").Theme;
47
- as?: import("react").ElementType<any>;
46
+ theme?: import("@emotion/react").Theme | undefined;
47
+ as?: import("react").ElementType<any> | undefined;
48
48
  }, {}, {
49
- ref?: import("react").Ref<View>;
49
+ ref?: import("react").Ref<View> | undefined;
50
50
  }>;
51
51
  declare const StyledError: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
52
- theme?: import("@emotion/react").Theme;
53
- as?: import("react").ElementType<any>;
52
+ theme?: import("@emotion/react").Theme | undefined;
53
+ as?: import("react").ElementType<any> | undefined;
54
54
  }, {}, {}>;
55
55
  declare const StyledMaxLengthMessage: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
56
- theme?: import("@emotion/react").Theme;
57
- as?: import("react").ElementType<any>;
56
+ theme?: import("@emotion/react").Theme | undefined;
57
+ as?: import("react").ElementType<any> | undefined;
58
58
  } & {
59
59
  themeVariant: Variant;
60
60
  }, {}, {}>;
61
61
  declare const StyledHelperText: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
62
- theme?: import("@emotion/react").Theme;
63
- as?: import("react").ElementType<any>;
62
+ theme?: import("@emotion/react").Theme | undefined;
63
+ as?: import("react").ElementType<any> | undefined;
64
64
  }, {}, {}>;
65
65
  declare const StyledTextInput: import("@emotion/native").StyledComponent<import("react-native").TextInputProps & {
66
- theme?: import("@emotion/react").Theme;
67
- as?: import("react").ElementType<any>;
66
+ theme?: import("@emotion/react").Theme | undefined;
67
+ as?: import("react").ElementType<any> | undefined;
68
68
  }, {}, {
69
- ref?: import("react").Ref<TextInput>;
69
+ ref?: import("react").Ref<TextInput> | undefined;
70
70
  }>;
71
71
  declare const StyledBorderBackDrop: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
72
- theme?: import("@emotion/react").Theme;
73
- as?: import("react").ElementType<any>;
72
+ theme?: import("@emotion/react").Theme | undefined;
73
+ as?: import("react").ElementType<any> | undefined;
74
74
  } & {
75
75
  themeVariant: Variant;
76
76
  themeFocused: boolean;
77
77
  }, {}, {
78
- ref?: import("react").Ref<View>;
78
+ ref?: import("react").Ref<View> | undefined;
79
79
  }>;
80
80
  declare const StyledTextInputContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
81
- theme?: import("@emotion/react").Theme;
82
- as?: import("react").ElementType<any>;
81
+ theme?: import("@emotion/react").Theme | undefined;
82
+ as?: import("react").ElementType<any> | undefined;
83
83
  }, {}, {
84
- ref?: import("react").Ref<View>;
84
+ ref?: import("react").Ref<View> | undefined;
85
85
  }>;
86
86
  declare const StyledTextInputAndLabelContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
87
- theme?: import("@emotion/react").Theme;
88
- as?: import("react").ElementType<any>;
87
+ theme?: import("@emotion/react").Theme | undefined;
88
+ as?: import("react").ElementType<any> | undefined;
89
89
  }, {}, {
90
- ref?: import("react").Ref<View>;
90
+ ref?: import("react").Ref<View> | undefined;
91
91
  }>;
92
92
  declare const StyledErrorAndHelpTextContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
93
- theme?: import("@emotion/react").Theme;
94
- as?: import("react").ElementType<any>;
93
+ theme?: import("@emotion/react").Theme | undefined;
94
+ as?: import("react").ElementType<any> | undefined;
95
95
  }, {}, {
96
- ref?: import("react").Ref<View>;
96
+ ref?: import("react").Ref<View> | undefined;
97
97
  }>;
98
98
  declare const StyledErrorAndMaxLengthContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
99
- theme?: import("@emotion/react").Theme;
100
- as?: import("react").ElementType<any>;
99
+ theme?: import("@emotion/react").Theme | undefined;
100
+ as?: import("react").ElementType<any> | undefined;
101
101
  }, {}, {
102
- ref?: import("react").Ref<View>;
102
+ ref?: import("react").Ref<View> | undefined;
103
103
  }>;
104
104
  export { StyledTextInputContainer, StyledLabel, StyledLabelContainer, StyledAsteriskLabel, StyledAsteriskLabelInsideTextInput, StyledTextInput, StyledError, StyledMaxLengthMessage, StyledLabelInsideTextInput, StyledContainer, StyledErrorContainer, StyledHelperText, StyledTextInputAndLabelContainer, StyledLabelContainerInsideTextInput, StyledErrorAndHelpTextContainer, StyledBorderBackDrop, StyledErrorAndMaxLengthContainer, };
@@ -54,12 +54,12 @@ export interface TextInputProps extends NativeTextInputProps {
54
54
  renderInputValue?: (inputProps: NativeTextInputProps) => React.ReactNode;
55
55
  }
56
56
  export declare const getVariant: ({ disabled, error, editable, loading, isEmptyValue, }: {
57
- disabled?: boolean;
58
- error?: string;
59
- editable?: boolean;
57
+ disabled?: boolean | undefined;
58
+ error?: string | undefined;
59
+ editable?: boolean | undefined;
60
60
  loading: boolean;
61
- isFocused?: boolean;
62
- isEmptyValue?: boolean;
61
+ isFocused?: boolean | undefined;
62
+ isEmptyValue?: boolean | undefined;
63
63
  }) => Variant;
64
64
  declare const TextInput: ({ label, prefix, suffix, style, textStyle, testID, accessibilityLabelledBy, error, required, editable, disabled, loading, maxLength, helpText, value, defaultValue, renderInputValue, ...nativeProps }: TextInputProps) => JSX.Element;
65
65
  export default TextInput;
@@ -1,9 +1,9 @@
1
1
  import { View } from 'react-native';
2
2
  import type { ViewProps } from 'react-native';
3
3
  declare const StyledPickerWrapper: import("@emotion/native").StyledComponent<ViewProps & {
4
- theme?: import("@emotion/react").Theme;
5
- as?: import("react").ElementType<any>;
4
+ theme?: import("@emotion/react").Theme | undefined;
5
+ as?: import("react").ElementType<any> | undefined;
6
6
  }, {}, {
7
- ref?: import("react").Ref<View>;
7
+ ref?: import("react").Ref<View> | undefined;
8
8
  }>;
9
9
  export { StyledPickerWrapper };