@hero-design/rn 7.23.0 → 7.25.0

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 (276) hide show
  1. package/.turbo/turbo-build.log +2 -2
  2. package/assets/fonts/hero-icons.ttf +0 -0
  3. package/es/index.js +1364 -9239
  4. package/lib/assets/fonts/hero-icons.ttf +0 -0
  5. package/lib/index.js +1368 -9238
  6. package/package.json +7 -4
  7. package/rollup.config.js +1 -0
  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 +14 -9
  46. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +2 -0
  47. package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +29 -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/Empty/index.tsx +1 -2
  51. package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
  52. package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +1 -1
  53. package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  54. package/src/components/Icon/HeroIcon/fonts/hero-icons.ttf +0 -0
  55. package/src/components/Icon/HeroIcon/glyphMap.json +1 -0
  56. package/src/components/Icon/HeroIcon/index.tsx +3 -7
  57. package/src/components/Icon/IconList.ts +36 -6
  58. package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  59. package/src/components/Icon/index.tsx +1 -0
  60. package/src/components/List/BasicListItem.tsx +13 -8
  61. package/src/components/List/ListItem.tsx +8 -6
  62. package/src/components/List/StyledBasicListItem.tsx +2 -2
  63. package/src/components/List/StyledListItem.tsx +2 -2
  64. package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +24 -36
  65. package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +39 -59
  66. package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +40 -44
  67. package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +50 -50
  68. package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +6 -6
  69. package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +21 -21
  70. package/src/components/Progress/ProgressBar.tsx +1 -1
  71. package/src/components/Progress/ProgressCircle.tsx +1 -1
  72. package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +10 -10
  73. package/src/components/Progress/types.ts +7 -1
  74. package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +20 -32
  75. package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +30 -48
  76. package/src/components/RefreshControl/__tests__/index.spec.tsx +1 -3
  77. package/src/components/RefreshControl/index.tsx +4 -2
  78. package/src/components/RichTextEditor/MentionList.tsx +12 -3
  79. package/src/components/RichTextEditor/RichTextEditor.tsx +4 -8
  80. package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +6 -4
  81. package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  82. package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +13 -20
  83. package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +154 -238
  84. package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +435 -650
  85. package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +11 -18
  86. package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +144 -228
  87. package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +414 -629
  88. package/src/components/Select/StyledOptionList.tsx +0 -1
  89. package/src/components/Select/__tests__/__snapshots__/StyledSelect.spec.tsx.snap +1 -1
  90. package/src/components/Spinner/AnimatedSpinner.tsx +22 -7
  91. package/src/components/Spinner/StyledSpinner.tsx +15 -11
  92. package/src/components/Spinner/__tests__/AnimatedSpinner.spec.tsx +3 -1
  93. package/src/components/Spinner/__tests__/StyledSpinner.spec.tsx +42 -31
  94. package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +12 -8
  95. package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +543 -83
  96. package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +12 -8
  97. package/src/components/Spinner/index.tsx +6 -1
  98. package/src/components/Swipeable/StyledSwipeable.tsx +11 -0
  99. package/src/components/Swipeable/SwipeableAction.tsx +45 -0
  100. package/src/components/Swipeable/__tests__/SwipeableAction.spec.tsx +37 -0
  101. package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +130 -0
  102. package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +33 -0
  103. package/src/components/Swipeable/__tests__/index.spec.tsx +34 -0
  104. package/src/components/Swipeable/index.tsx +160 -0
  105. package/src/components/Switch/SelectorSwitch/Option.tsx +1 -5
  106. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +3 -3
  107. package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
  108. package/src/components/Switch/SelectorSwitch/__tests__/index.spec.tsx +1 -0
  109. package/src/components/Switch/SelectorSwitch/index.tsx +4 -1
  110. package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +1 -1
  111. package/src/components/Tabs/StyledTabs.tsx +1 -1
  112. package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +1 -1
  113. package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
  114. package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +2 -2
  115. package/src/components/TextInput/StyledTextInput.tsx +7 -12
  116. package/src/components/TextInput/__tests__/StyledTextInput.spec.tsx +12 -6
  117. package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +31 -146
  118. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +40 -14
  119. package/src/components/TextInput/__tests__/index.spec.tsx +114 -124
  120. package/src/components/TextInput/index.tsx +8 -6
  121. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +2 -0
  122. package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +29 -27
  123. package/src/components/Toast/Toast.tsx +0 -3
  124. package/src/components/Toast/ToastProvider.tsx +1 -0
  125. package/src/components/Toast/__tests__/index.spec.tsx +1 -1
  126. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +12 -12
  127. package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +6 -6
  128. package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +4 -4
  129. package/src/emotion.d.ts +1 -0
  130. package/src/index.ts +10 -0
  131. package/src/theme/ThemeSwitcher.tsx +7 -1
  132. package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +96 -78
  133. package/src/theme/__tests__/ensureCompatibleWithV7.spec.tsx +13 -0
  134. package/src/theme/components/alert.ts +1 -1
  135. package/src/theme/components/attachment.ts +28 -0
  136. package/src/theme/components/avatar.ts +1 -1
  137. package/src/theme/components/badge.ts +2 -1
  138. package/src/theme/components/bottomNavigation.ts +1 -1
  139. package/src/theme/components/bottomSheet.ts +2 -2
  140. package/src/theme/components/button.ts +4 -20
  141. package/src/theme/components/calendar.ts +3 -3
  142. package/src/theme/components/card.ts +1 -1
  143. package/src/theme/components/checkbox.ts +2 -2
  144. package/src/theme/components/divider.ts +1 -1
  145. package/src/theme/components/drawer.ts +2 -2
  146. package/src/theme/components/empty.ts +3 -3
  147. package/src/theme/components/fab.ts +7 -7
  148. package/src/theme/components/icon.ts +4 -4
  149. package/src/theme/components/list.ts +0 -2
  150. package/src/theme/components/pinInput.ts +4 -4
  151. package/src/theme/components/progress.ts +6 -5
  152. package/src/theme/components/radio.ts +1 -1
  153. package/src/theme/components/richTextEditor.ts +2 -2
  154. package/src/theme/components/slider.ts +2 -2
  155. package/src/theme/components/spinner.ts +4 -1
  156. package/src/theme/components/swipeable.ts +13 -0
  157. package/src/theme/components/switch.ts +4 -4
  158. package/src/theme/components/tabs.ts +6 -5
  159. package/src/theme/components/tag.ts +2 -2
  160. package/src/theme/components/textInput.ts +23 -33
  161. package/src/theme/components/toast.ts +3 -3
  162. package/src/theme/components/toolbar.ts +3 -3
  163. package/src/theme/components/typography.ts +7 -7
  164. package/src/theme/getTheme.ts +7 -1
  165. package/src/theme/global/colors/eBens.ts +23 -0
  166. package/src/theme/global/colors/global.ts +15 -6
  167. package/src/theme/global/colors/jobs.ts +15 -10
  168. package/src/theme/global/colors/legacySystemPalette.ts +6 -6
  169. package/src/theme/global/colors/swag.ts +32 -53
  170. package/src/theme/global/colors/types.ts +35 -15
  171. package/src/theme/global/colors/wallet.ts +23 -0
  172. package/src/theme/global/colors/work.ts +15 -11
  173. package/src/theme/global/index.ts +4 -0
  174. package/src/theme/index.ts +4 -0
  175. package/src/types.ts +2 -0
  176. package/src/utils/functions.ts +2 -0
  177. package/src/utils/scale.ts +1 -1
  178. package/testUtils/setup.tsx +13 -0
  179. package/tsconfig.json +8 -2
  180. package/types/components/Accordion/StyledAccordion.d.ts +14 -14
  181. package/types/components/Alert/StyledAlert.d.ts +15 -15
  182. package/types/components/Attachment/StyledAttachment.d.ts +28 -0
  183. package/types/components/Attachment/index.d.ts +37 -0
  184. package/types/components/Avatar/StyledAvatar.d.ts +15 -15
  185. package/types/components/Avatar/index.d.ts +1 -1
  186. package/types/components/Badge/Status.d.ts +1 -1
  187. package/types/components/Badge/StyledBadge.d.ts +8 -8
  188. package/types/components/Badge/index.d.ts +1 -1
  189. package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +21 -21
  190. package/types/components/BottomSheet/Header.d.ts +1 -1
  191. package/types/components/BottomSheet/StyledBottomSheet.d.ts +22 -22
  192. package/types/components/Box/StyledBox.d.ts +4 -4
  193. package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +7 -7
  194. package/types/components/Button/StyledButton.d.ts +15 -18
  195. package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +8 -8
  196. package/types/components/Calendar/StyledCalendar.d.ts +25 -25
  197. package/types/components/Calendar/helpers.d.ts +2 -2
  198. package/types/components/Card/DataCard/StyledDataCard.d.ts +6 -6
  199. package/types/components/Card/StyledCard.d.ts +7 -7
  200. package/types/components/Checkbox/StyledCheckbox.d.ts +16 -10
  201. package/types/components/Collapse/StyledCollapse.d.ts +8 -8
  202. package/types/components/ContentNavigator/StyledContentNavigator.d.ts +5 -5
  203. package/types/components/ContentNavigator/index.d.ts +2 -1
  204. package/types/components/DatePicker/StyledDatePicker.d.ts +3 -3
  205. package/types/components/Divider/StyledDivider.d.ts +5 -5
  206. package/types/components/Drawer/StyledDrawer.d.ts +19 -19
  207. package/types/components/Empty/StyledEmpty.d.ts +9 -9
  208. package/types/components/Empty/index.d.ts +1 -2
  209. package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +11 -11
  210. package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +7 -7
  211. package/types/components/FAB/StyledFAB.d.ts +8 -8
  212. package/types/components/Icon/HeroIcon/index.d.ts +3 -3
  213. package/types/components/Icon/IconList.d.ts +1 -1
  214. package/types/components/Icon/index.d.ts +4 -1
  215. package/types/components/Icon/utils.d.ts +1 -1
  216. package/types/components/List/StyledBasicListItem.d.ts +16 -16
  217. package/types/components/List/StyledListItem.d.ts +25 -25
  218. package/types/components/PinInput/StyledPinInput.d.ts +30 -30
  219. package/types/components/Progress/ProgressBar.d.ts +1 -1
  220. package/types/components/Progress/ProgressCircle.d.ts +1 -1
  221. package/types/components/Progress/StyledProgressBar.d.ts +5 -5
  222. package/types/components/Progress/StyledProgressCircle.d.ts +18 -18
  223. package/types/components/Progress/types.d.ts +1 -1
  224. package/types/components/Radio/StyledRadio.d.ts +9 -9
  225. package/types/components/RefreshControl/index.d.ts +1 -2
  226. package/types/components/RichTextEditor/EditorToolbar.d.ts +1 -1
  227. package/types/components/RichTextEditor/MentionList.d.ts +1 -1
  228. package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +6 -6
  229. package/types/components/RichTextEditor/StyledToolbar.d.ts +9 -9
  230. package/types/components/RichTextEditor/index.d.ts +2 -2
  231. package/types/components/SectionHeading/StyledHeading.d.ts +9 -9
  232. package/types/components/Select/MultiSelect/Option.d.ts +1 -1
  233. package/types/components/Select/SingleSelect/Option.d.ts +1 -1
  234. package/types/components/Select/StyledSelect.d.ts +11 -11
  235. package/types/components/Select/helpers.d.ts +1 -1
  236. package/types/components/Spinner/AnimatedSpinner.d.ts +2 -1
  237. package/types/components/Spinner/StyledSpinner.d.ts +13 -12
  238. package/types/components/Spinner/index.d.ts +5 -1
  239. package/types/components/Swipeable/StyledSwipeable.d.ts +10 -0
  240. package/types/components/Swipeable/SwipeableAction.d.ts +27 -0
  241. package/types/components/Swipeable/index.d.ts +45 -0
  242. package/types/components/Switch/SelectorSwitch/Option.d.ts +3 -1
  243. package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +9 -9
  244. package/types/components/Switch/StyledSwitch.d.ts +5 -5
  245. package/types/components/Tabs/StyledScrollableTabs.d.ts +23 -23
  246. package/types/components/Tabs/StyledTabs.d.ts +22 -22
  247. package/types/components/Tag/StyledTag.d.ts +6 -6
  248. package/types/components/TextInput/StyledTextInput.d.ts +46 -45
  249. package/types/components/TextInput/index.d.ts +6 -6
  250. package/types/components/TimePicker/StyledTimePicker.d.ts +3 -3
  251. package/types/components/Toast/StyledToast.d.ts +17 -17
  252. package/types/components/Toolbar/StyledToolbar.d.ts +9 -9
  253. package/types/components/Typography/Text/StyledText.d.ts +3 -3
  254. package/types/index.d.ts +4 -2
  255. package/types/testHelpers/renderWithTheme.d.ts +1 -1
  256. package/types/theme/ThemeSwitcher.d.ts +2 -2
  257. package/types/theme/components/attachment.d.ts +21 -0
  258. package/types/theme/components/badge.d.ts +1 -0
  259. package/types/theme/components/button.d.ts +0 -15
  260. package/types/theme/components/list.d.ts +0 -1
  261. package/types/theme/components/progress.d.ts +1 -0
  262. package/types/theme/components/spinner.d.ts +4 -1
  263. package/types/theme/components/swipeable.d.ts +9 -0
  264. package/types/theme/components/tabs.d.ts +1 -0
  265. package/types/theme/components/tag.d.ts +2 -2
  266. package/types/theme/components/textInput.d.ts +0 -10
  267. package/types/theme/getTheme.d.ts +4 -0
  268. package/types/theme/global/colors/eBens.d.ts +3 -0
  269. package/types/theme/global/colors/types.d.ts +23 -16
  270. package/types/theme/global/colors/wallet.d.ts +3 -0
  271. package/types/theme/global/index.d.ts +26 -12
  272. package/types/theme/index.d.ts +2 -2
  273. package/types/types.d.ts +2 -1
  274. package/types/utils/functions.d.ts +1 -0
  275. package/types/utils/hooks.d.ts +1 -1
  276. package/src/components/Icon/HeroIcon/selection.json +0 -7029
@@ -2,7 +2,7 @@ import type { ReactElement } from 'react';
2
2
  declare const Header: ({ content, showDivider, onRequestClose, showCloseButton, }: {
3
3
  content: string | ReactElement;
4
4
  showDivider: boolean;
5
- onRequestClose?: () => void;
5
+ onRequestClose?: (() => void) | undefined;
6
6
  showCloseButton: boolean;
7
7
  }) => JSX.Element;
8
8
  export default Header;
@@ -1,51 +1,51 @@
1
1
  import { Animated, KeyboardAvoidingView, KeyboardAvoidingViewProps, SafeAreaView, View } from 'react-native';
2
2
  import type { ViewProps } from 'react-native';
3
3
  declare const StyledWrapper: 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 StyledKeyboardAvoidingView: import("@emotion/native").StyledComponent<KeyboardAvoidingViewProps & {
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<KeyboardAvoidingView>;
13
+ ref?: import("react").Ref<KeyboardAvoidingView> | undefined;
14
14
  }>;
15
15
  declare const StyledBottomSheet: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<SafeAreaView>> & {
16
16
  children?: import("react").ReactNode;
17
17
  } & {
18
- theme?: import("@emotion/react").Theme;
19
- as?: import("react").ElementType<any>;
18
+ theme?: import("@emotion/react").Theme | undefined;
19
+ as?: import("react").ElementType<any> | undefined;
20
20
  }, {}, {}>;
21
21
  declare const StyledBackdrop: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").PressableProps & import("react").RefAttributes<View>> & {
22
22
  children?: import("react").ReactNode;
23
23
  } & {
24
- theme?: import("@emotion/react").Theme;
25
- as?: import("react").ElementType<any>;
24
+ theme?: import("@emotion/react").Theme | undefined;
25
+ as?: import("react").ElementType<any> | undefined;
26
26
  }, {}, {}>;
27
27
  declare const StyledHeaderWrapper: import("@emotion/native").StyledComponent<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 StyledHeader: import("@emotion/native").StyledComponent<ViewProps & {
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
- ref?: import("react").Ref<View>;
37
+ ref?: import("react").Ref<View> | undefined;
38
38
  }>;
39
39
  declare const StyledFooter: import("@emotion/native").StyledComponent<ViewProps & {
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
- ref?: import("react").Ref<View>;
43
+ ref?: import("react").Ref<View> | undefined;
44
44
  }>;
45
45
  declare const StyledIconWrapper: import("@emotion/native").StyledComponent<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
  export { StyledWrapper, StyledHeaderWrapper, StyledHeader, StyledFooter, StyledIconWrapper, StyledBottomSheet, StyledBackdrop, StyledKeyboardAvoidingView, };
@@ -5,11 +5,11 @@ export declare const getThemeValue: (theme: Theme, key: keyof StyleProps, props:
5
5
  [x: string]: string;
6
6
  } | {
7
7
  [x: string]: number;
8
- };
8
+ } | undefined;
9
9
  declare const StyledBox: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
10
- theme?: Theme;
11
- as?: import("react").ElementType<any>;
10
+ theme?: Theme | undefined;
11
+ as?: import("react").ElementType<any> | undefined;
12
12
  } & StyleProps, {}, {
13
- ref?: import("react").Ref<View>;
13
+ ref?: import("react").Ref<View> | undefined;
14
14
  }>;
15
15
  export { StyledBox };
@@ -3,18 +3,18 @@ import type { ViewProps } from 'react-native';
3
3
  import type { Theme } from '@emotion/react';
4
4
  declare type ThemeVariant = 'basic-transparent' | 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger' | 'text-primary' | 'text-secondary' | 'text-danger';
5
5
  declare const StyledLoadingIndicatorWrapper: import("@emotion/native").StyledComponent<ViewProps & {
6
- theme?: Theme;
7
- as?: import("react").ElementType<any>;
6
+ theme?: Theme | undefined;
7
+ as?: import("react").ElementType<any> | undefined;
8
8
  }, {}, {
9
- ref?: import("react").Ref<View>;
9
+ ref?: import("react").Ref<View> | undefined;
10
10
  }>;
11
11
  declare const StyledLoadingDot: import("@emotion/native").StyledComponent<ViewProps & {
12
- theme?: Theme;
13
- as?: import("react").ElementType<any>;
12
+ theme?: Theme | undefined;
13
+ as?: import("react").ElementType<any> | undefined;
14
14
  } & {
15
- size?: number;
15
+ size?: number | undefined;
16
16
  themeVariant: ThemeVariant;
17
17
  }, {}, {
18
- ref?: import("react").Ref<View>;
18
+ ref?: import("react").Ref<View> | undefined;
19
19
  }>;
20
20
  export { StyledLoadingIndicatorWrapper, StyledLoadingDot };
@@ -1,39 +1,36 @@
1
- import { TouchableHighlight, View } from 'react-native';
1
+ import { TouchableOpacity, View } from 'react-native';
2
2
  import type { Theme } from '@emotion/react';
3
3
  declare type Intent = 'primary' | 'secondary' | 'danger';
4
4
  declare type ThemeVariant = 'basic-transparent' | 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger' | 'text-primary' | 'text-secondary' | 'text-danger';
5
- declare const StyledButtonContainer: import("@emotion/native").StyledComponent<import("react-native").TouchableHighlightProps & {
6
- theme?: Theme;
7
- as?: import("react").ElementType<any>;
5
+ declare const StyledButtonContainer: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
6
+ theme?: Theme | undefined;
7
+ as?: import("react").ElementType<any> | undefined;
8
8
  } & {
9
- disabled?: boolean;
10
- pressed?: boolean;
9
+ disabled?: boolean | undefined;
11
10
  themeVariant: ThemeVariant;
12
11
  }, {}, {
13
- ref?: import("react").Ref<TouchableHighlight>;
12
+ ref?: import("react").Ref<TouchableOpacity> | undefined;
14
13
  }>;
15
14
  declare const StyledButtonText: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
16
- theme?: Theme;
17
- as?: import("react").ElementType<any>;
15
+ theme?: Theme | undefined;
16
+ as?: import("react").ElementType<any> | undefined;
18
17
  } & {
19
- disabled?: boolean;
20
- pressed?: boolean;
18
+ disabled?: boolean | undefined;
21
19
  themeVariant: ThemeVariant;
22
20
  }, {}, {}>;
23
21
  declare const StyledButtonIconWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
24
- theme?: Theme;
25
- as?: import("react").ElementType<any>;
22
+ theme?: Theme | undefined;
23
+ as?: import("react").ElementType<any> | undefined;
26
24
  } & {
27
25
  themePosition: 'left' | 'right';
28
26
  }, {}, {
29
- ref?: import("react").Ref<View>;
27
+ ref?: import("react").Ref<View> | undefined;
30
28
  }>;
31
29
  declare const StyledButtonIcon: import("@emotion/native").StyledComponent<import("../Icon").IconProps & {
32
- theme?: Theme;
33
- as?: import("react").ElementType<any>;
30
+ theme?: Theme | undefined;
31
+ as?: import("react").ElementType<any> | undefined;
34
32
  } & {
35
- disabled?: boolean;
36
- pressed?: boolean;
33
+ disabled?: boolean | undefined;
37
34
  themeVariant: ThemeVariant;
38
35
  }, {}, {}>;
39
36
  export { StyledButtonContainer, StyledButtonText, StyledButtonIconWrapper, StyledButtonIcon, };
@@ -1,17 +1,17 @@
1
1
  import { View, TouchableOpacity } from 'react-native';
2
2
  export declare const ButtonContainer: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
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<TouchableOpacity>;
6
+ ref?: import("react").Ref<TouchableOpacity> | undefined;
7
7
  }>;
8
8
  export declare const IconWrapper: 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 ButtonText: 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
  }, {}, {}>;
@@ -1,55 +1,55 @@
1
1
  import { TouchableOpacity, View } from 'react-native';
2
2
  import type { ViewProps } from 'react-native';
3
3
  declare const StyledContainer: 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 StyledCalendarHeader: 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 StyledCalendarDayNameCell: 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
- ref?: import("react").Ref<View>;
19
+ ref?: import("react").Ref<View> | undefined;
20
20
  }>;
21
21
  declare const StyledCalendarCell: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
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
- variant?: 'default' | 'current' | 'selected';
25
+ variant?: "selected" | "default" | "current" | undefined;
26
26
  }, {}, {
27
- ref?: import("react").Ref<TouchableOpacity>;
27
+ ref?: import("react").Ref<TouchableOpacity> | undefined;
28
28
  }>;
29
29
  declare const StyledCalendarRow: import("@emotion/native").StyledComponent<ViewProps & {
30
- theme?: import("@emotion/react").Theme;
31
- as?: import("react").ElementType<any>;
30
+ theme?: import("@emotion/react").Theme | undefined;
31
+ as?: import("react").ElementType<any> | undefined;
32
32
  }, {}, {
33
- ref?: import("react").Ref<View>;
33
+ ref?: import("react").Ref<View> | undefined;
34
34
  }>;
35
35
  declare const StyledCalendarRowItem: import("@emotion/native").StyledComponent<ViewProps & {
36
- theme?: import("@emotion/react").Theme;
37
- as?: import("react").ElementType<any>;
36
+ theme?: import("@emotion/react").Theme | undefined;
37
+ as?: import("react").ElementType<any> | undefined;
38
38
  }, {}, {
39
- ref?: import("react").Ref<View>;
39
+ ref?: import("react").Ref<View> | undefined;
40
40
  }>;
41
41
  declare const StyledDisabledCalendarRowItem: import("@emotion/native").StyledComponent<ViewProps & {
42
- theme?: import("@emotion/react").Theme;
43
- as?: import("react").ElementType<any>;
42
+ theme?: import("@emotion/react").Theme | undefined;
43
+ as?: import("react").ElementType<any> | undefined;
44
44
  }, {}, {
45
- ref?: import("react").Ref<View>;
45
+ ref?: import("react").Ref<View> | undefined;
46
46
  }>;
47
47
  declare const StyledMark: import("@emotion/native").StyledComponent<ViewProps & {
48
- theme?: import("@emotion/react").Theme;
49
- as?: import("react").ElementType<any>;
48
+ theme?: import("@emotion/react").Theme | undefined;
49
+ as?: import("react").ElementType<any> | undefined;
50
50
  } & {
51
51
  variant: 'primary' | 'inverted';
52
52
  }, {}, {
53
- ref?: import("react").Ref<View>;
53
+ ref?: import("react").Ref<View> | undefined;
54
54
  }>;
55
55
  export { StyledContainer, StyledCalendarHeader, StyledCalendarRow, StyledCalendarRowItem, StyledDisabledCalendarRowItem, StyledCalendarDayNameCell, StyledCalendarCell, StyledMark, };
@@ -1,3 +1,3 @@
1
1
  export declare const initArray: <T>(length: number, func: (value: number) => T) => T[];
2
- export declare const isEqDate: (dateA?: Date, dateB?: Date) => boolean;
3
- export declare const getValidDate: (date: Date, minDate?: Date, maxDate?: Date) => Date | undefined;
2
+ export declare const isEqDate: (dateA?: Date | undefined, dateB?: Date | undefined) => boolean;
3
+ export declare const getValidDate: (date: Date, minDate?: Date | undefined, maxDate?: Date | undefined) => Date | undefined;
@@ -1,16 +1,16 @@
1
1
  import { View } from 'react-native';
2
2
  declare const StyledDataCard: 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 Indicator: 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
12
  themeIntent: 'success' | 'info' | 'warning' | 'danger' | 'archived' | 'primary';
13
13
  }, {}, {
14
- ref?: import("react").Ref<View>;
14
+ ref?: import("react").Ref<View> | undefined;
15
15
  }>;
16
16
  export { StyledDataCard, Indicator };
@@ -1,17 +1,17 @@
1
1
  import { View } from 'react-native';
2
2
  declare const StyledCard: 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
6
  themeVariant: 'basic' | 'data';
7
- themeIntent?: 'primary' | 'success' | 'warning';
7
+ themeIntent?: "primary" | "success" | "warning" | undefined;
8
8
  }, {}, {
9
- ref?: import("react").Ref<View>;
9
+ ref?: import("react").Ref<View> | undefined;
10
10
  }>;
11
11
  declare const LeftDataCard: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
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
- ref?: import("react").Ref<View>;
15
+ ref?: import("react").Ref<View> | undefined;
16
16
  }>;
17
17
  export { StyledCard, LeftDataCard };
@@ -1,26 +1,32 @@
1
1
  import { TouchableOpacity, View } from 'react-native';
2
2
  export declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
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
6
  themeWithBorder: boolean;
7
7
  themeDisabled: boolean;
8
8
  }, {}, {
9
- ref?: import("react").Ref<TouchableOpacity>;
9
+ ref?: import("react").Ref<TouchableOpacity> | undefined;
10
10
  }>;
11
11
  export declare const StyledDescription: import("@emotion/native").StyledComponent<import("../Typography/Text").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
+ export declare const StyledCheckboxContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
16
+ theme?: import("@emotion/react").Theme | undefined;
17
+ as?: import("react").ElementType<any> | undefined;
18
+ }, {}, {
19
+ ref?: import("react").Ref<View> | undefined;
20
+ }>;
15
21
  export declare const StyledCheckbox: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
16
- theme?: import("@emotion/react").Theme;
17
- as?: import("react").ElementType<any>;
22
+ theme?: import("@emotion/react").Theme | undefined;
23
+ as?: import("react").ElementType<any> | undefined;
18
24
  } & {
19
25
  themeDisabled: boolean;
20
26
  }, {}, {
21
- ref?: import("react").Ref<View>;
27
+ ref?: import("react").Ref<View> | undefined;
22
28
  }>;
23
29
  export declare const StyledCheckMark: import("@emotion/native").StyledComponent<import("../Icon").IconProps & {
24
- theme?: import("@emotion/react").Theme;
25
- as?: import("react").ElementType<any>;
30
+ theme?: import("@emotion/react").Theme | undefined;
31
+ as?: import("react").ElementType<any> | undefined;
26
32
  }, {}, {}>;
@@ -2,8 +2,8 @@ import { Animated, View } from 'react-native';
2
2
  declare const StyledWrapper: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
3
3
  children?: import("react").ReactNode;
4
4
  } & {
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
  /**
9
9
  * Height need to be high enough to cover most scenario
@@ -11,15 +11,15 @@ declare const StyledWrapper: import("@emotion/native").StyledComponent<Animated.
11
11
  * to use with Animated.timing
12
12
  */
13
13
  declare const StyledHiddenWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
14
- theme?: import("@emotion/react").Theme;
15
- as?: import("react").ElementType<any>;
14
+ theme?: import("@emotion/react").Theme | undefined;
15
+ as?: import("react").ElementType<any> | undefined;
16
16
  }, {}, {
17
- ref?: import("react").Ref<View>;
17
+ ref?: import("react").Ref<View> | undefined;
18
18
  }>;
19
19
  declare const StyledChildWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
20
- theme?: import("@emotion/react").Theme;
21
- as?: import("react").ElementType<any>;
20
+ theme?: import("@emotion/react").Theme | undefined;
21
+ as?: import("react").ElementType<any> | undefined;
22
22
  }, {}, {
23
- ref?: import("react").Ref<View>;
23
+ ref?: import("react").Ref<View> | undefined;
24
24
  }>;
25
25
  export { StyledWrapper, StyledHiddenWrapper, StyledChildWrapper };
@@ -1,12 +1,12 @@
1
1
  import { View } from 'react-native';
2
2
  declare const Wrapper: 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 Value: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
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
12
  export { Wrapper, Value };
@@ -1,9 +1,10 @@
1
+ import type { ReactElement } from 'react';
1
2
  import type { StyleProp, ViewStyle } from 'react-native';
2
3
  interface ContentNavigatorProps {
3
4
  /**
4
5
  * The navigator's content value.
5
6
  */
6
- value: number | string;
7
+ value: number | string | ReactElement;
7
8
  /**
8
9
  * Handler to handle press event of previous icon.
9
10
  */
@@ -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 };
@@ -1,12 +1,12 @@
1
1
  import { View } from 'react-native';
2
2
  declare type MarginSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
3
3
  declare const StyledDivider: 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
- themeMarginHorizontal?: MarginSize;
8
- themeMarginVertical?: MarginSize;
7
+ themeMarginHorizontal?: MarginSize | undefined;
8
+ themeMarginVertical?: MarginSize | undefined;
9
9
  }, {}, {
10
- ref?: import("react").Ref<View>;
10
+ ref?: import("react").Ref<View> | undefined;
11
11
  }>;
12
12
  export { StyledDivider };
@@ -1,55 +1,55 @@
1
1
  import { Animated, View } from 'react-native';
2
2
  import type { ViewProps } from 'react-native';
3
3
  declare const StyledContainer: 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
7
  enableShadow: boolean;
8
8
  }, {}, {
9
- ref?: import("react").Ref<View>;
9
+ ref?: import("react").Ref<View> | undefined;
10
10
  }>;
11
11
  declare const StyledDragableContainer: import("@emotion/native").StyledComponent<ViewProps & {
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
  enableShadow: boolean;
16
16
  }, {}, {
17
- ref?: import("react").Ref<View>;
17
+ ref?: import("react").Ref<View> | undefined;
18
18
  }>;
19
19
  declare const StyledBackdrop: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").PressableProps & import("react").RefAttributes<View>> & {
20
20
  children?: import("react").ReactNode;
21
21
  } & {
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
  declare const StyledDrawerContainer: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
26
26
  children?: import("react").ReactNode;
27
27
  } & {
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
31
  enableShadow: boolean;
32
32
  }, {}, {}>;
33
33
  declare const StyledDragableDrawerContainer: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
34
34
  children?: import("react").ReactNode;
35
35
  } & {
36
- theme?: import("@emotion/react").Theme;
37
- as?: import("react").ElementType<any>;
36
+ theme?: import("@emotion/react").Theme | undefined;
37
+ as?: import("react").ElementType<any> | undefined;
38
38
  } & {
39
39
  enableShadow: boolean;
40
40
  }, {}, {}>;
41
41
  declare const StyledHandlerContainer: import("@emotion/native").StyledComponent<ViewProps & {
42
- theme?: import("@emotion/react").Theme;
43
- as?: import("react").ElementType<any>;
42
+ theme?: import("@emotion/react").Theme | undefined;
43
+ as?: import("react").ElementType<any> | undefined;
44
44
  }, {}, {
45
- ref?: import("react").Ref<View>;
45
+ ref?: import("react").Ref<View> | undefined;
46
46
  }>;
47
47
  declare const StyledHandler: import("@emotion/native").StyledComponent<ViewProps & {
48
- theme?: import("@emotion/react").Theme;
49
- as?: import("react").ElementType<any>;
48
+ theme?: import("@emotion/react").Theme | undefined;
49
+ as?: import("react").ElementType<any> | undefined;
50
50
  } & {
51
- active?: boolean;
51
+ active?: boolean | undefined;
52
52
  }, {}, {
53
- ref?: import("react").Ref<View>;
53
+ ref?: import("react").Ref<View> | undefined;
54
54
  }>;
55
55
  export { StyledBackdrop, StyledContainer, StyledDrawerContainer, StyledHandlerContainer, StyledHandler, StyledDragableContainer, StyledDragableDrawerContainer, };
@@ -1,25 +1,25 @@
1
1
  import { View, Text } from 'react-native';
2
2
  declare type ThemeVariant = 'light' | 'dark';
3
3
  declare const StyledWrapper: 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 StyledTitle: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
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
  themeVariant: ThemeVariant;
14
14
  }, {}, {
15
- ref?: import("react").Ref<Text>;
15
+ ref?: import("react").Ref<Text> | undefined;
16
16
  }>;
17
17
  declare const StyledDescription: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
18
- theme?: import("@emotion/react").Theme;
19
- as?: import("react").ElementType<any>;
18
+ theme?: import("@emotion/react").Theme | undefined;
19
+ as?: import("react").ElementType<any> | undefined;
20
20
  } & {
21
21
  themeVariant: ThemeVariant;
22
22
  }, {}, {
23
- ref?: import("react").Ref<Text>;
23
+ ref?: import("react").Ref<Text> | undefined;
24
24
  }>;
25
25
  export { StyledWrapper, StyledTitle, StyledDescription };
@@ -15,8 +15,7 @@ interface EmptyProps {
15
15
  */
16
16
  description?: string;
17
17
  /**
18
- * Empty's variant
19
- * 'dark' if rendered on a dark background and 'light' otherwise
18
+ * Empty's variant.
20
19
  */
21
20
  variant?: 'light' | 'dark';
22
21
  /**