@hero-design/rn 8.82.0-alpha.0 → 8.82.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.
- package/.turbo/turbo-build.log +7 -0
- package/CHANGELOG.md +5 -1
- package/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/es/index.js +37391 -0
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +37488 -0
- package/package.json +1 -1
- package/src/components/BottomSheet/index.tsx +15 -13
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
- package/src/components/Icon/IconList.ts +14 -0
- package/stats/8.82.0/rn-stats.html +4842 -0
- package/types/components/Accordion/AccordionItem.d.ts +15 -0
- package/types/components/Accordion/StyledAccordion.d.ts +32 -0
- package/types/components/Accordion/index.d.ts +39 -0
- package/types/components/Alert/StyledAlert.d.ts +53 -0
- package/types/components/Alert/index.d.ts +58 -0
- package/types/components/AnimatedScroller/AnimatedFAB.d.ts +12 -0
- package/types/components/AnimatedScroller/AnimatedScrollable.d.ts +16 -0
- package/types/components/AnimatedScroller/FlatListWithFAB.d.ts +12 -0
- package/types/components/AnimatedScroller/ScrollViewWithFAB.d.ts +12 -0
- package/types/components/AnimatedScroller/SectionListWithFAB.d.ts +12 -0
- package/types/components/AnimatedScroller/index.d.ts +4 -0
- package/types/components/Attachment/StyledAttachment.d.ts +28 -0
- package/types/components/Attachment/index.d.ts +38 -0
- package/types/components/Avatar/Avatar.d.ts +34 -0
- package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +30 -0
- package/types/components/Avatar/AvatarStack/index.d.ts +35 -0
- package/types/components/Avatar/AvatarStack/utils.d.ts +4 -0
- package/types/components/Avatar/StyledAvatar.d.ts +34 -0
- package/types/components/Avatar/index.d.ts +6 -0
- package/types/components/Badge/Status.d.ts +24 -0
- package/types/components/Badge/StyledBadge.d.ts +33 -0
- package/types/components/Badge/index.d.ts +6 -0
- package/types/components/Badge/types.d.ts +53 -0
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +51 -0
- package/types/components/BottomNavigation/index.d.ts +45 -0
- package/types/components/BottomSheet/BottomSheetContext.d.ts +5 -0
- package/types/components/BottomSheet/Footer.d.ts +7 -0
- package/types/components/BottomSheet/Header.d.ts +10 -0
- package/types/components/BottomSheet/ScrollView.d.ts +3 -0
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +61 -0
- package/types/components/BottomSheet/index.d.ts +74 -0
- package/types/components/Box/StyledBox.d.ts +15 -0
- package/types/components/Box/config.d.ts +170 -0
- package/types/components/Box/index.d.ts +6 -0
- package/types/components/Box/types.d.ts +31 -0
- package/types/components/Button/Button.d.ts +57 -0
- package/types/components/Button/IconButton.d.ts +39 -0
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +20 -0
- package/types/components/Button/LoadingIndicator/index.d.ts +27 -0
- package/types/components/Button/StyledButton.d.ts +48 -0
- package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +17 -0
- package/types/components/Button/UtilityButton/index.d.ts +24 -0
- package/types/components/Button/index.d.ts +10 -0
- package/types/components/Calendar/CalendarRowItem.d.ts +12 -0
- package/types/components/Calendar/StyledCalendar.d.ts +62 -0
- package/types/components/Calendar/helpers.d.ts +3 -0
- package/types/components/Calendar/index.d.ts +58 -0
- package/types/components/Card/DataCard/StyledDataCard.d.ts +16 -0
- package/types/components/Card/DataCard/index.d.ts +22 -0
- package/types/components/Card/StyledCard.d.ts +11 -0
- package/types/components/Card/index.d.ts +25 -0
- package/types/components/Carousel/CardCarousel.d.ts +42 -0
- package/types/components/Carousel/CarouselItem.d.ts +7 -0
- package/types/components/Carousel/StyledCardCarousel.d.ts +24 -0
- package/types/components/Carousel/StyledCarousel.d.ts +54 -0
- package/types/components/Carousel/contants.d.ts +2 -0
- package/types/components/Carousel/index.d.ts +44 -0
- package/types/components/Carousel/types.d.ts +14 -0
- package/types/components/Checkbox/StyledCheckbox.d.ts +35 -0
- package/types/components/Checkbox/index.d.ts +44 -0
- package/types/components/Chip/StyledChip.d.ts +16 -0
- package/types/components/Chip/index.d.ts +31 -0
- package/types/components/Collapse/StyledCollapse.d.ts +23 -0
- package/types/components/Collapse/index.d.ts +20 -0
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +8 -0
- package/types/components/ContentNavigator/index.d.ts +43 -0
- package/types/components/DatePicker/DatePickerAndroid.d.ts +7 -0
- package/types/components/DatePicker/DatePickerCalendar.d.ts +4 -0
- package/types/components/DatePicker/DatePickerIOS.d.ts +7 -0
- package/types/components/DatePicker/StyledDatePicker.d.ts +9 -0
- package/types/components/DatePicker/index.d.ts +4 -0
- package/types/components/DatePicker/types.d.ts +79 -0
- package/types/components/DatePicker/useCalculateDate.d.ts +4 -0
- package/types/components/Divider/StyledDivider.d.ts +12 -0
- package/types/components/Divider/index.d.ts +22 -0
- package/types/components/Drawer/DragableDrawer/helpers.d.ts +8 -0
- package/types/components/Drawer/DragableDrawer/index.d.ts +33 -0
- package/types/components/Drawer/StyledDrawer.d.ts +49 -0
- package/types/components/Drawer/index.d.ts +27 -0
- package/types/components/Empty/StyledEmpty.d.ts +21 -0
- package/types/components/Empty/index.d.ts +31 -0
- package/types/components/Error/StyledError.d.ts +53 -0
- package/types/components/Error/index.d.ts +56 -0
- package/types/components/FAB/ActionGroup/ActionItem.d.ts +18 -0
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +27 -0
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +18 -0
- package/types/components/FAB/ActionGroup/index.d.ts +54 -0
- package/types/components/FAB/AnimatedFABIcon.d.ts +7 -0
- package/types/components/FAB/FAB.d.ts +40 -0
- package/types/components/FAB/Pair/StyledFAB.d.ts +12 -0
- package/types/components/FAB/Pair/index.d.ts +16 -0
- package/types/components/FAB/StyledFAB.d.ts +21 -0
- package/types/components/FAB/index.d.ts +5 -0
- package/types/components/FloatingIsland/StyledFloatingIsland.d.ts +19 -0
- package/types/components/FloatingIsland/index.d.ts +23 -0
- package/types/components/HeroDesignProvider/index.d.ts +4 -0
- package/types/components/Icon/AnimatedIcon.d.ts +6 -0
- package/types/components/Icon/HeroIcon/index.d.ts +12 -0
- package/types/components/Icon/IconList.d.ts +2 -0
- package/types/components/Icon/index.d.ts +35 -0
- package/types/components/Icon/utils.d.ts +2 -0
- package/types/components/Image/index.d.ts +17 -0
- package/types/components/List/BasicListItem.d.ts +43 -0
- package/types/components/List/ListItem.d.ts +52 -0
- package/types/components/List/StyledBasicListItem.d.ts +29 -0
- package/types/components/List/StyledListItem.d.ts +51 -0
- package/types/components/List/index.d.ts +8 -0
- package/types/components/MapPin/Focussed.d.ts +13 -0
- package/types/components/MapPin/StyledMapPin.d.ts +31 -0
- package/types/components/MapPin/index.d.ts +5 -0
- package/types/components/MapPin/types.d.ts +38 -0
- package/types/components/Modal/index.d.ts +37 -0
- package/types/components/PageControl/StyledPageControl.d.ts +12 -0
- package/types/components/PageControl/index.d.ts +22 -0
- package/types/components/PinInput/PinCell.d.ts +9 -0
- package/types/components/PinInput/StyledPinInput.d.ts +69 -0
- package/types/components/PinInput/index.d.ts +69 -0
- package/types/components/Portal/PortalHost.d.ts +5 -0
- package/types/components/Portal/PortalProvider.d.ts +7 -0
- package/types/components/Portal/constants.d.ts +8 -0
- package/types/components/Portal/contexts.d.ts +9 -0
- package/types/components/Portal/index.d.ts +18 -0
- package/types/components/Portal/reducer.d.ts +5 -0
- package/types/components/Portal/types.d.ts +22 -0
- package/types/components/Portal/usePortal.d.ts +8 -0
- package/types/components/Portal/usePortalState.d.ts +1 -0
- package/types/components/Progress/ProgressBar.d.ts +18 -0
- package/types/components/Progress/ProgressCircle.d.ts +20 -0
- package/types/components/Progress/ProgressStep.d.ts +20 -0
- package/types/components/Progress/StyledProgressBar.d.ts +18 -0
- package/types/components/Progress/StyledProgressCircle.d.ts +46 -0
- package/types/components/Progress/StyledStep.d.ts +23 -0
- package/types/components/Progress/__tests__/index.spec.d.ts +1 -0
- package/types/components/Progress/constants.d.ts +15 -0
- package/types/components/Progress/index.d.ts +6 -0
- package/types/components/Progress/types.d.ts +1 -0
- package/types/components/Radio/Radio.d.ts +38 -0
- package/types/components/Radio/RadioGroup.d.ts +36 -0
- package/types/components/Radio/StyledRadio.d.ts +30 -0
- package/types/components/Radio/index.d.ts +4 -0
- package/types/components/Radio/types.d.ts +8 -0
- package/types/components/Rate/StyledRate.d.ts +10 -0
- package/types/components/Rate/index.d.ts +29 -0
- package/types/components/RefreshControl/index.d.ts +5 -0
- package/types/components/RichTextEditor/EditorEvent.d.ts +4 -0
- package/types/components/RichTextEditor/EditorToolbar.d.ts +18 -0
- package/types/components/RichTextEditor/MentionList.d.ts +17 -0
- package/types/components/RichTextEditor/RichTextEditor.d.ts +70 -0
- package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +16 -0
- package/types/components/RichTextEditor/StyledToolbar.d.ts +21 -0
- package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +2 -0
- package/types/components/RichTextEditor/constants.d.ts +9 -0
- package/types/components/RichTextEditor/heroEditorApp.d.ts +2 -0
- package/types/components/RichTextEditor/index.d.ts +7 -0
- package/types/components/RichTextEditor/types.d.ts +1 -0
- package/types/components/RichTextEditor/utils/events.d.ts +8 -0
- package/types/components/RichTextEditor/utils/rnWebView.d.ts +7 -0
- package/types/components/Search/SearchOneLine.d.ts +69 -0
- package/types/components/Search/SearchSuffixIcon.d.ts +24 -0
- package/types/components/Search/SearchTwoLine.d.ts +36 -0
- package/types/components/Search/StyledSearch.d.ts +49 -0
- package/types/components/Search/index.d.ts +10 -0
- package/types/components/Search/utils.d.ts +8 -0
- package/types/components/SectionHeading/StyledHeading.d.ts +23 -0
- package/types/components/SectionHeading/index.d.ts +45 -0
- package/types/components/Select/BaseOptionList.d.ts +8 -0
- package/types/components/Select/Footer.d.ts +6 -0
- package/types/components/Select/MultiSelect/Option.d.ts +10 -0
- package/types/components/Select/MultiSelect/OptionList.d.ts +9 -0
- package/types/components/Select/MultiSelect/index.d.ts +30 -0
- package/types/components/Select/SingleSelect/Option.d.ts +10 -0
- package/types/components/Select/SingleSelect/OptionList.d.ts +11 -0
- package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +1 -0
- package/types/components/Select/SingleSelect/index.d.ts +23 -0
- package/types/components/Select/StyledSelect.d.ts +21 -0
- package/types/components/Select/helpers.d.ts +14 -0
- package/types/components/Select/index.d.ts +8 -0
- package/types/components/Select/types.d.ts +84 -0
- package/types/components/Skeleton/StyledSkeleton.d.ts +16 -0
- package/types/components/Skeleton/index.d.ts +14 -0
- package/types/components/Slider/index.d.ts +53 -0
- package/types/components/Spinner/AnimatedSpinner.d.ts +6 -0
- package/types/components/Spinner/StyledSpinner.d.ts +34 -0
- package/types/components/Spinner/index.d.ts +18 -0
- package/types/components/Success/StyledSuccess.d.ts +49 -0
- package/types/components/Success/index.d.ts +50 -0
- package/types/components/Swipeable/StyledSwipeable.d.ts +10 -0
- package/types/components/Swipeable/SwipeableAction.d.ts +27 -0
- package/types/components/Swipeable/index.d.ts +49 -0
- package/types/components/Switch/SelectorSwitch/Option.d.ts +16 -0
- package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +19 -0
- package/types/components/Switch/SelectorSwitch/index.d.ts +37 -0
- package/types/components/Switch/StyledSwitch.d.ts +15 -0
- package/types/components/Switch/index.d.ts +28 -0
- package/types/components/Tabs/ActiveTabIndicator.d.ts +9 -0
- package/types/components/Tabs/SceneView.d.ts +10 -0
- package/types/components/Tabs/ScrollableTabs.d.ts +7 -0
- package/types/components/Tabs/ScrollableTabsHeader/ScrollableTabsHeader.d.ts +40 -0
- package/types/components/Tabs/ScrollableTabsHeader/hooks/useInitHighlightedAnimation.d.ts +9 -0
- package/types/components/Tabs/ScrollableTabsHeader/hooks/useInitUnderlinedAnimation.d.ts +10 -0
- package/types/components/Tabs/StyledScrollableTabs.d.ts +55 -0
- package/types/components/Tabs/StyledTabs.d.ts +51 -0
- package/types/components/Tabs/TabWithBadge.d.ts +16 -0
- package/types/components/Tabs/index.d.ts +62 -0
- package/types/components/Tabs/useHandlePageScroll.d.ts +8 -0
- package/types/components/Tabs/useIsFocused.d.ts +6 -0
- package/types/components/Tabs/utils.d.ts +2 -0
- package/types/components/Tag/StyledTag.d.ts +17 -0
- package/types/components/Tag/index.d.ts +27 -0
- package/types/components/TextInput/StyledTextInput.d.ts +86 -0
- package/types/components/TextInput/index.d.ts +124 -0
- package/types/components/TimePicker/StyledTimePicker.d.ts +9 -0
- package/types/components/TimePicker/TimePickerAndroid.d.ts +4 -0
- package/types/components/TimePicker/TimePickerIOS.d.ts +4 -0
- package/types/components/TimePicker/index.d.ts +4 -0
- package/types/components/TimePicker/types.d.ts +61 -0
- package/types/components/Toast/StyledToast.d.ts +59 -0
- package/types/components/Toast/Toast.d.ts +3 -0
- package/types/components/Toast/ToastContainer.d.ts +5 -0
- package/types/components/Toast/ToastContext.d.ts +12 -0
- package/types/components/Toast/ToastProvider.d.ts +11 -0
- package/types/components/Toast/index.d.ts +8 -0
- package/types/components/Toast/types.d.ts +72 -0
- package/types/components/Toolbar/StyledToolbar.d.ts +71 -0
- package/types/components/Toolbar/ToolbarGroup.d.ts +14 -0
- package/types/components/Toolbar/ToolbarItem.d.ts +31 -0
- package/types/components/Toolbar/ToolbarMessage.d.ts +59 -0
- package/types/components/Toolbar/index.d.ts +14 -0
- package/types/components/Typography/Body/StyledBody.d.ts +14 -0
- package/types/components/Typography/Body/__tests__/StyledBody.d.ts +1 -0
- package/types/components/Typography/Body/index.d.ts +33 -0
- package/types/components/Typography/Caption/StyledCaption.d.ts +12 -0
- package/types/components/Typography/Caption/index.d.ts +27 -0
- package/types/components/Typography/Label/StyledLabel.d.ts +11 -0
- package/types/components/Typography/Label/__tests__/StyledLabel.d.ts +1 -0
- package/types/components/Typography/Label/index.d.ts +23 -0
- package/types/components/Typography/Text/StyledText.d.ts +13 -0
- package/types/components/Typography/Text/index.d.ts +37 -0
- package/types/components/Typography/Title/StyledTitle.d.ts +14 -0
- package/types/components/Typography/Title/__tests__/StyledTitle.d.ts +1 -0
- package/types/components/Typography/Title/index.d.ts +33 -0
- package/types/components/Typography/index.d.ts +17 -0
- package/types/components/Typography/types.d.ts +6 -0
- package/types/index.d.ts +57 -0
- package/types/testHelpers/renderWithTheme.d.ts +3 -0
- package/types/testHelpers/utils.d.ts +1 -0
- package/types/theme/ThemeProvider.d.ts +12 -0
- package/types/theme/ThemeSwitcher.d.ts +8 -0
- package/types/theme/components/accordion.d.ts +13 -0
- package/types/theme/components/alert.d.ts +36 -0
- package/types/theme/components/attachment.d.ts +21 -0
- package/types/theme/components/avatar.d.ts +50 -0
- package/types/theme/components/badge.d.ts +56 -0
- package/types/theme/components/bottomNavigation.d.ts +23 -0
- package/types/theme/components/bottomSheet.d.ts +38 -0
- package/types/theme/components/button.d.ts +72 -0
- package/types/theme/components/calendar.d.ts +28 -0
- package/types/theme/components/card.d.ts +21 -0
- package/types/theme/components/cardCarousel.d.ts +15 -0
- package/types/theme/components/carousel.d.ts +36 -0
- package/types/theme/components/checkbox.d.ts +27 -0
- package/types/theme/components/chip.d.ts +43 -0
- package/types/theme/components/contentNavigator.d.ts +7 -0
- package/types/theme/components/datePicker.d.ts +7 -0
- package/types/theme/components/divider.d.ts +17 -0
- package/types/theme/components/drawer.d.ts +30 -0
- package/types/theme/components/empty.d.ts +37 -0
- package/types/theme/components/error.d.ts +51 -0
- package/types/theme/components/fab.d.ts +71 -0
- package/types/theme/components/floatingIsland.d.ts +32 -0
- package/types/theme/components/icon.d.ts +23 -0
- package/types/theme/components/image.d.ts +8 -0
- package/types/theme/components/list.d.ts +46 -0
- package/types/theme/components/mapPin.d.ts +39 -0
- package/types/theme/components/pageControl.d.ts +18 -0
- package/types/theme/components/pinInput.d.ts +57 -0
- package/types/theme/components/progress.d.ts +51 -0
- package/types/theme/components/radio.d.ts +24 -0
- package/types/theme/components/rate.d.ts +11 -0
- package/types/theme/components/refreshControl.d.ts +7 -0
- package/types/theme/components/richTextEditor.d.ts +28 -0
- package/types/theme/components/search.d.ts +64 -0
- package/types/theme/components/sectionHeading.d.ts +14 -0
- package/types/theme/components/select.d.ts +18 -0
- package/types/theme/components/skeleton.d.ts +17 -0
- package/types/theme/components/slider.d.ts +9 -0
- package/types/theme/components/spinner.d.ts +27 -0
- package/types/theme/components/success.d.ts +43 -0
- package/types/theme/components/swipeable.d.ts +16 -0
- package/types/theme/components/switch.d.ts +38 -0
- package/types/theme/components/tabs.d.ts +30 -0
- package/types/theme/components/tag.d.ts +53 -0
- package/types/theme/components/textInput.d.ts +87 -0
- package/types/theme/components/timePicker.d.ts +7 -0
- package/types/theme/components/toast.d.ts +50 -0
- package/types/theme/components/toolbar.d.ts +47 -0
- package/types/theme/components/typography.d.ts +165 -0
- package/types/theme/getTheme.d.ts +106 -0
- package/types/theme/global/borders.d.ts +18 -0
- package/types/theme/global/colors/eBens.d.ts +3 -0
- package/types/theme/global/colors/global.d.ts +3 -0
- package/types/theme/global/colors/globalDark.d.ts +3 -0
- package/types/theme/global/colors/jobs.d.ts +3 -0
- package/types/theme/global/colors/swag.d.ts +3 -0
- package/types/theme/global/colors/swagDark.d.ts +3 -0
- package/types/theme/global/colors/swagLight.d.ts +3 -0
- package/types/theme/global/colors/swagLightGlobal.d.ts +3 -0
- package/types/theme/global/colors/swagLightJobs.d.ts +48 -0
- package/types/theme/global/colors/types.d.ts +50 -0
- package/types/theme/global/colors/wallet.d.ts +3 -0
- package/types/theme/global/colors/work.d.ts +3 -0
- package/types/theme/global/index.d.ts +82 -0
- package/types/theme/global/scale.d.ts +14 -0
- package/types/theme/global/shadows.d.ts +16 -0
- package/types/theme/global/sizes.d.ts +14 -0
- package/types/theme/global/space.d.ts +16 -0
- package/types/theme/global/typography.d.ts +31 -0
- package/types/theme/index.d.ts +9 -0
- package/types/types.d.ts +14 -0
- package/types/utils/functions.d.ts +1 -0
- package/types/utils/helpers.d.ts +4 -0
- package/types/utils/hooks.d.ts +3 -0
- package/types/utils/scale.d.ts +3 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Animated, View } from 'react-native';
|
|
2
|
+
declare const StyledWrapper: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
|
+
}, {}, {}>;
|
|
6
|
+
/**
|
|
7
|
+
* Height need to be high enough to cover most scenario
|
|
8
|
+
* This container's purpose is only to help get correct children height and returns it
|
|
9
|
+
* to use with Animated.timing
|
|
10
|
+
*/
|
|
11
|
+
declare const StyledHiddenWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
12
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
13
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
14
|
+
}, {}, {
|
|
15
|
+
ref?: import("react").Ref<View> | undefined;
|
|
16
|
+
}>;
|
|
17
|
+
declare const StyledChildWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
18
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
19
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
20
|
+
}, {}, {
|
|
21
|
+
ref?: import("react").Ref<View> | undefined;
|
|
22
|
+
}>;
|
|
23
|
+
export { StyledWrapper, StyledHiddenWrapper, StyledChildWrapper };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { StyleProp, ViewProps, ViewStyle } from 'react-native';
|
|
4
|
+
export interface CollapseProps extends ViewProps {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
/**
|
|
7
|
+
* Whether the component is open or closed.
|
|
8
|
+
*/
|
|
9
|
+
open?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Additional style.
|
|
12
|
+
*/
|
|
13
|
+
style?: StyleProp<ViewStyle>;
|
|
14
|
+
/**
|
|
15
|
+
* Testing id of the component.
|
|
16
|
+
*/
|
|
17
|
+
testID?: string;
|
|
18
|
+
}
|
|
19
|
+
declare const Collapse: ({ open, children, testID, style, onLayout, }: CollapseProps) => React.JSX.Element;
|
|
20
|
+
export default Collapse;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { View } from 'react-native';
|
|
2
|
+
declare const Wrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
|
+
}, {}, {
|
|
6
|
+
ref?: import("react").Ref<View> | undefined;
|
|
7
|
+
}>;
|
|
8
|
+
export { Wrapper };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ReactElement } from 'react';
|
|
3
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
4
|
+
interface ContentNavigatorProps {
|
|
5
|
+
/**
|
|
6
|
+
* The navigator's content value.
|
|
7
|
+
*/
|
|
8
|
+
value: number | string | ReactElement;
|
|
9
|
+
/**
|
|
10
|
+
* Handler to handle press event of previous icon.
|
|
11
|
+
*/
|
|
12
|
+
onPreviousPress: () => void;
|
|
13
|
+
/**
|
|
14
|
+
* Handler to handle press event of next icon.
|
|
15
|
+
*/
|
|
16
|
+
onNextPress: () => void;
|
|
17
|
+
/**
|
|
18
|
+
* Handler to handle press event of content navigator value.
|
|
19
|
+
*/
|
|
20
|
+
onPress?: () => void;
|
|
21
|
+
/**
|
|
22
|
+
* Whether the previous icon is disabled.
|
|
23
|
+
*/
|
|
24
|
+
previousDisabled?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Whether the next icon is disabled.
|
|
27
|
+
*/
|
|
28
|
+
nextDisabled?: boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Content font size.
|
|
31
|
+
*/
|
|
32
|
+
fontSize?: 'medium' | 'large';
|
|
33
|
+
/**
|
|
34
|
+
* Additional style.
|
|
35
|
+
*/
|
|
36
|
+
style?: StyleProp<ViewStyle>;
|
|
37
|
+
/**
|
|
38
|
+
* Testing id of the component.
|
|
39
|
+
*/
|
|
40
|
+
testID?: string;
|
|
41
|
+
}
|
|
42
|
+
declare function ContentNavigator({ onPreviousPress, onNextPress, onPress, value, previousDisabled, nextDisabled, fontSize, testID, style, }: ContentNavigatorProps): React.JSX.Element;
|
|
43
|
+
export default ContentNavigator;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DatePickerProps } from './types';
|
|
3
|
+
declare type DatePickerAndroidProps = Omit<DatePickerProps, 'variant' | 'monthPickerConfirmLabel' | 'monthPickerCancelLabel'> & {
|
|
4
|
+
variant?: 'default' | 'month-year';
|
|
5
|
+
};
|
|
6
|
+
declare const DatePickerAndroid: ({ value, minDate, maxDate, label, placeholder, onChange, displayFormat, disabled, required, error, helpText, style, testID, variant, }: DatePickerAndroidProps) => React.JSX.Element;
|
|
7
|
+
export default DatePickerAndroid;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DatePickerProps } from './types';
|
|
3
|
+
declare const DatePickerCalendar: ({ value, minDate, maxDate, label, placeholder, onChange, confirmLabel, displayFormat, disabled, required, error, helpText, style, testID, monthPickerConfirmLabel, monthPickerCancelLabel, supportedOrientations, }: Omit<DatePickerProps, 'variant'>) => React.JSX.Element;
|
|
4
|
+
export default DatePickerCalendar;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DatePickerProps } from './types';
|
|
3
|
+
declare type DatePickerIOSProps = Omit<DatePickerProps, 'variant' | 'monthPickerConfirmLabel' | 'monthPickerCancelLabel'> & {
|
|
4
|
+
variant?: 'default' | 'month-year';
|
|
5
|
+
};
|
|
6
|
+
declare const DatePickerIOS: ({ value, minDate, maxDate, label, placeholder, onChange, confirmLabel, displayFormat, disabled, required, error, helpText, style, testID, supportedOrientations, variant, }: DatePickerIOSProps) => React.JSX.Element;
|
|
7
|
+
export default DatePickerIOS;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { View } from 'react-native';
|
|
2
|
+
import type { ViewProps } from 'react-native';
|
|
3
|
+
declare const StyledPickerWrapper: import("@emotion/native").StyledComponent<ViewProps & {
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
6
|
+
}, {}, {
|
|
7
|
+
ref?: import("react").Ref<View> | undefined;
|
|
8
|
+
}>;
|
|
9
|
+
export { StyledPickerWrapper };
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
2
|
+
export interface DatePickerProps {
|
|
3
|
+
/**
|
|
4
|
+
* Date picker input label.
|
|
5
|
+
*/
|
|
6
|
+
label: string;
|
|
7
|
+
/**
|
|
8
|
+
* Current date value. Must be in correct default format or format provided via format prop.
|
|
9
|
+
*/
|
|
10
|
+
value?: Date;
|
|
11
|
+
/**
|
|
12
|
+
* Datepicker variants.
|
|
13
|
+
* - default: is default UI of Android or iOS
|
|
14
|
+
* - calendar: calendar UI
|
|
15
|
+
* - month-year: month and year UI
|
|
16
|
+
*/
|
|
17
|
+
variant?: 'default' | 'calendar' | 'month-year';
|
|
18
|
+
/**
|
|
19
|
+
* Mininum date. Restrict the range of possible date values.
|
|
20
|
+
*/
|
|
21
|
+
minDate?: Date;
|
|
22
|
+
/**
|
|
23
|
+
* Maximum date. Restrict the range of possible date values.
|
|
24
|
+
*/
|
|
25
|
+
maxDate?: Date;
|
|
26
|
+
/**
|
|
27
|
+
* Input placeholder. Date format will be used as placeholder if not specified.
|
|
28
|
+
*/
|
|
29
|
+
placeholder?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Callback that is called when new value is selected.
|
|
32
|
+
*/
|
|
33
|
+
onChange: (value: Date) => void;
|
|
34
|
+
/**
|
|
35
|
+
* Confirm label text. iOS only.
|
|
36
|
+
*/
|
|
37
|
+
confirmLabel: string;
|
|
38
|
+
/**
|
|
39
|
+
* Date format. Default format is dd/MM/yyyy.
|
|
40
|
+
* Following date-fns's format (https://date-fns.org/v2.16.1/docs/format).
|
|
41
|
+
*/
|
|
42
|
+
displayFormat?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Whether the Date picker is disabled.
|
|
45
|
+
*/
|
|
46
|
+
disabled?: boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Error message to display.
|
|
49
|
+
*/
|
|
50
|
+
error?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Whether the value is required, if true, an asterisk will be appended to the label.
|
|
53
|
+
*/
|
|
54
|
+
required?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* The helper text to display.
|
|
57
|
+
*/
|
|
58
|
+
helpText?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Addtional style.
|
|
61
|
+
*/
|
|
62
|
+
style?: StyleProp<ViewStyle>;
|
|
63
|
+
/**
|
|
64
|
+
* Testing id of the component.
|
|
65
|
+
*/
|
|
66
|
+
testID?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Calendar variant prop. Label for the confirm button of the month picker, Android only.
|
|
69
|
+
*/
|
|
70
|
+
monthPickerConfirmLabel?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Calendar variant prop. Label for the cancel button of the month picker, Android only.
|
|
73
|
+
*/
|
|
74
|
+
monthPickerCancelLabel?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Supported orientations for the DatePicker modal, iOS only.
|
|
77
|
+
*/
|
|
78
|
+
supportedOrientations?: ('portrait' | 'landscape')[];
|
|
79
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DatePickerProps } from './types';
|
|
2
|
+
export declare const getDateValue: (value: Date, minDate?: Date | undefined, maxDate?: Date | undefined) => Date;
|
|
3
|
+
declare const useCalculateDate: ({ maxDate, minDate, onChange, value, }: Pick<DatePickerProps, 'maxDate' | 'minDate' | 'onChange' | 'value'>) => void;
|
|
4
|
+
export default useCalculateDate;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { View } from 'react-native';
|
|
2
|
+
declare type MarginSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
3
|
+
declare const StyledDivider: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
6
|
+
} & {
|
|
7
|
+
themeMarginHorizontal?: MarginSize | undefined;
|
|
8
|
+
themeMarginVertical?: MarginSize | undefined;
|
|
9
|
+
}, {}, {
|
|
10
|
+
ref?: import("react").Ref<View> | undefined;
|
|
11
|
+
}>;
|
|
12
|
+
export { StyledDivider };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { StyleProp, ViewStyle, ViewProps } from 'react-native';
|
|
3
|
+
interface DividerProps extends ViewProps {
|
|
4
|
+
/**
|
|
5
|
+
* Horizontal margin size. There is no margin by default.
|
|
6
|
+
*/
|
|
7
|
+
marginHorizontal?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
8
|
+
/**
|
|
9
|
+
* Vertical margin size. There is no margin by default.
|
|
10
|
+
*/
|
|
11
|
+
marginVertical?: 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
12
|
+
/**
|
|
13
|
+
* Additional style.
|
|
14
|
+
*/
|
|
15
|
+
style?: StyleProp<ViewStyle>;
|
|
16
|
+
/**
|
|
17
|
+
* Testing id of the component.
|
|
18
|
+
*/
|
|
19
|
+
testID?: string;
|
|
20
|
+
}
|
|
21
|
+
declare const Divider: ({ marginHorizontal, marginVertical, style, testID, ...nativeProps }: DividerProps) => React.JSX.Element;
|
|
22
|
+
export default Divider;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const getOffset: (height: number, percentage: number) => number;
|
|
2
|
+
export declare type SnapPointsData = {
|
|
3
|
+
list: number[];
|
|
4
|
+
minHeightOffset: number;
|
|
5
|
+
maxHeightOffset: number;
|
|
6
|
+
};
|
|
7
|
+
export declare const calculateSnapPointsData: (minimumHeight: number, height: number, snapPoints: number[]) => SnapPointsData;
|
|
8
|
+
export declare const calculateAnimatedToValue: (position: number, heightSnapPoints: number[]) => number;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface DragableDrawerProps {
|
|
3
|
+
/**
|
|
4
|
+
* Drawer's content.
|
|
5
|
+
*/
|
|
6
|
+
children?: ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Initial visible height percentage of the drawer. Can be used to programmatically control the drawer height. Range: [0,100].
|
|
9
|
+
*/
|
|
10
|
+
initialHeightPercentage?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Mininum visible height percentage of the drawer. This will be the lowest point in snap points list. Range: [0,100].
|
|
13
|
+
*/
|
|
14
|
+
minimumHeightPercentage?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Callback function is called when the drawer expand to max position.
|
|
17
|
+
*/
|
|
18
|
+
onExpanded?: () => void;
|
|
19
|
+
/**
|
|
20
|
+
* Callback function is called when the drawer collapsed to min position.
|
|
21
|
+
*/
|
|
22
|
+
onCollapsed?: () => void;
|
|
23
|
+
/**
|
|
24
|
+
* Testing id of the component.
|
|
25
|
+
*/
|
|
26
|
+
testID?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Nearest height snap points that the drawer will attach to on release gesture. Range: [0,100]
|
|
29
|
+
*/
|
|
30
|
+
snapPoints?: number[];
|
|
31
|
+
}
|
|
32
|
+
declare const DragableDrawer: ({ children, initialHeightPercentage, minimumHeightPercentage, snapPoints, onExpanded, onCollapsed, testID, }: DragableDrawerProps) => JSX.Element;
|
|
33
|
+
export default DragableDrawer;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Animated, View } from 'react-native';
|
|
2
|
+
import type { ViewProps } from 'react-native';
|
|
3
|
+
declare const StyledContainer: import("@emotion/native").StyledComponent<ViewProps & {
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
6
|
+
} & {
|
|
7
|
+
enableShadow: boolean;
|
|
8
|
+
}, {}, {
|
|
9
|
+
ref?: import("react").Ref<View> | undefined;
|
|
10
|
+
}>;
|
|
11
|
+
declare const StyledDragableContainer: import("@emotion/native").StyledComponent<ViewProps & {
|
|
12
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
13
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
14
|
+
} & {
|
|
15
|
+
enableShadow: boolean;
|
|
16
|
+
}, {}, {
|
|
17
|
+
ref?: import("react").Ref<View> | undefined;
|
|
18
|
+
}>;
|
|
19
|
+
declare const StyledBackdrop: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").PressableProps & import("react").RefAttributes<View>> & {
|
|
20
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
21
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
22
|
+
}, {}, {}>;
|
|
23
|
+
declare const StyledDrawerContainer: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
|
|
24
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
25
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
26
|
+
} & {
|
|
27
|
+
enableShadow: boolean;
|
|
28
|
+
}, {}, {}>;
|
|
29
|
+
declare const StyledDragableDrawerContainer: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
|
|
30
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
31
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
32
|
+
} & {
|
|
33
|
+
enableShadow: boolean;
|
|
34
|
+
}, {}, {}>;
|
|
35
|
+
declare const StyledHandlerContainer: import("@emotion/native").StyledComponent<ViewProps & {
|
|
36
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
37
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
38
|
+
}, {}, {
|
|
39
|
+
ref?: import("react").Ref<View> | undefined;
|
|
40
|
+
}>;
|
|
41
|
+
declare const StyledHandler: import("@emotion/native").StyledComponent<ViewProps & {
|
|
42
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
43
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
44
|
+
} & {
|
|
45
|
+
active?: boolean | undefined;
|
|
46
|
+
}, {}, {
|
|
47
|
+
ref?: import("react").Ref<View> | undefined;
|
|
48
|
+
}>;
|
|
49
|
+
export { StyledBackdrop, StyledContainer, StyledDrawerContainer, StyledHandlerContainer, StyledHandler, StyledDragableContainer, StyledDragableDrawerContainer, };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
interface DrawerProps {
|
|
3
|
+
/**
|
|
4
|
+
* Drawer's visibility.
|
|
5
|
+
*/
|
|
6
|
+
visible: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Drawer's content.
|
|
9
|
+
*/
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Enable the drawer's backdrop.
|
|
13
|
+
*/
|
|
14
|
+
hasBackdrop?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Callback when the drawer is dismissed by interacting outside of the drawer.
|
|
17
|
+
*/
|
|
18
|
+
onDismiss?: () => void;
|
|
19
|
+
/**
|
|
20
|
+
* Testing id of the component.
|
|
21
|
+
* */
|
|
22
|
+
testID?: string;
|
|
23
|
+
}
|
|
24
|
+
declare const _default: (({ visible, children, hasBackdrop, onDismiss, testID, }: DrawerProps) => JSX.Element) & {
|
|
25
|
+
Dragable: ({ children, initialHeightPercentage, minimumHeightPercentage, snapPoints, onExpanded, onCollapsed, testID, }: import("./DragableDrawer").DragableDrawerProps) => JSX.Element;
|
|
26
|
+
};
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { View } from 'react-native';
|
|
2
|
+
declare type ThemeVariant = 'light' | 'dark';
|
|
3
|
+
declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
6
|
+
}, {}, {
|
|
7
|
+
ref?: import("react").Ref<View> | undefined;
|
|
8
|
+
}>;
|
|
9
|
+
declare const StyledTitle: import("@emotion/native").StyledComponent<import("../Typography/Title").TitleProps & {
|
|
10
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
12
|
+
} & {
|
|
13
|
+
themeVariant: ThemeVariant;
|
|
14
|
+
}, {}, {}>;
|
|
15
|
+
declare const StyledDescription: import("@emotion/native").StyledComponent<import("../Typography/Body").BodyProps & {
|
|
16
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
17
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
18
|
+
} & {
|
|
19
|
+
themeVariant: ThemeVariant;
|
|
20
|
+
}, {}, {}>;
|
|
21
|
+
export { StyledWrapper, StyledTitle, StyledDescription };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { StyleProp, ViewStyle, ImageProps as RNImageProps } from 'react-native';
|
|
3
|
+
import { ImageProps } from '../Image';
|
|
4
|
+
interface EmptyProps {
|
|
5
|
+
/**
|
|
6
|
+
* Image to be displayed.
|
|
7
|
+
*/
|
|
8
|
+
image?: ReactElement<ImageProps | RNImageProps>;
|
|
9
|
+
/**
|
|
10
|
+
* Empty's title.
|
|
11
|
+
*/
|
|
12
|
+
title: string;
|
|
13
|
+
/**
|
|
14
|
+
* Empty's description.
|
|
15
|
+
*/
|
|
16
|
+
description?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Empty's variant.
|
|
19
|
+
*/
|
|
20
|
+
variant?: 'light' | 'dark';
|
|
21
|
+
/**
|
|
22
|
+
* Additional style.
|
|
23
|
+
*/
|
|
24
|
+
style?: StyleProp<ViewStyle>;
|
|
25
|
+
/**
|
|
26
|
+
* Testing id of the component.
|
|
27
|
+
*/
|
|
28
|
+
testID?: string;
|
|
29
|
+
}
|
|
30
|
+
declare const Empty: ({ image, title, description, style, testID, variant, }: EmptyProps) => JSX.Element;
|
|
31
|
+
export default Empty;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { View } from 'react-native';
|
|
2
|
+
declare type ErrorVariant = 'full-screen' | 'in-page';
|
|
3
|
+
declare const StyledErrorModal: import("@emotion/native").StyledComponent<import("../Modal").ModalProps & {
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
6
|
+
}, {}, {}>;
|
|
7
|
+
declare const StyledErrorContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
8
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
9
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
10
|
+
} & {
|
|
11
|
+
themeVariant: ErrorVariant;
|
|
12
|
+
}, {}, {
|
|
13
|
+
ref?: import("react").Ref<View> | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
declare const StyledErrorContent: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
16
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
17
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
18
|
+
}, {}, {
|
|
19
|
+
ref?: import("react").Ref<View> | undefined;
|
|
20
|
+
}>;
|
|
21
|
+
declare const StyledErrorButtonContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
22
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
23
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
24
|
+
}, {}, {
|
|
25
|
+
ref?: import("react").Ref<View> | undefined;
|
|
26
|
+
}>;
|
|
27
|
+
declare const StyledErrorButtonPrimary: import("@emotion/native").StyledComponent<import("../Button/Button").ButtonProps & {
|
|
28
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
29
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
30
|
+
}, {}, {}>;
|
|
31
|
+
declare const StyledErrorButtonSecondary: import("@emotion/native").StyledComponent<import("../Button/Button").ButtonProps & {
|
|
32
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
33
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
34
|
+
}, {}, {}>;
|
|
35
|
+
declare const StyledErrorImageContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
36
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
37
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
38
|
+
}, {}, {
|
|
39
|
+
ref?: import("react").Ref<View> | undefined;
|
|
40
|
+
}>;
|
|
41
|
+
declare const StyledErrorImage: import("@emotion/native").StyledComponent<import("../Image").ImageProps & {
|
|
42
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
43
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
44
|
+
}, {}, {}>;
|
|
45
|
+
declare const StyledErrorTitle: import("@emotion/native").StyledComponent<import("../Typography/Title").TitleProps & {
|
|
46
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
47
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
48
|
+
}, {}, {}>;
|
|
49
|
+
declare const StyledErrorDescription: import("@emotion/native").StyledComponent<import("../Typography/Body").BodyProps & {
|
|
50
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
51
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
52
|
+
}, {}, {}>;
|
|
53
|
+
export { ErrorVariant, StyledErrorModal, StyledErrorImage, StyledErrorContainer, StyledErrorButtonContainer, StyledErrorButtonPrimary, StyledErrorButtonSecondary, StyledErrorContent, StyledErrorTitle, StyledErrorDescription, StyledErrorImageContainer, };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import type { ImageSourcePropType, ViewProps, ImageProps as RNImageProps } from 'react-native';
|
|
3
|
+
import { ErrorVariant } from './StyledError';
|
|
4
|
+
import { ImageProps } from '../Image/index';
|
|
5
|
+
interface ErrorProps extends ViewProps {
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated use conditional rendering instead
|
|
8
|
+
*
|
|
9
|
+
* Visibility of the error
|
|
10
|
+
*/
|
|
11
|
+
visible?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Variant of the error
|
|
14
|
+
*/
|
|
15
|
+
variant?: ErrorVariant;
|
|
16
|
+
/**
|
|
17
|
+
* Title of the error
|
|
18
|
+
*/
|
|
19
|
+
title: string;
|
|
20
|
+
/**
|
|
21
|
+
* Description of the error
|
|
22
|
+
*/
|
|
23
|
+
description?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Image of the error
|
|
26
|
+
*/
|
|
27
|
+
image?: ReactElement<ImageProps | RNImageProps> | ImageSourcePropType | string;
|
|
28
|
+
/**
|
|
29
|
+
* Testing id of the component.
|
|
30
|
+
*/
|
|
31
|
+
testID?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Action button text
|
|
34
|
+
*/
|
|
35
|
+
ctaText?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Callback when the action button is pressed.
|
|
38
|
+
*/
|
|
39
|
+
onCtaPress?: () => void;
|
|
40
|
+
/**
|
|
41
|
+
* Secondary button text
|
|
42
|
+
*/
|
|
43
|
+
secondaryCtaText?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Callback when the secondary button is pressed.
|
|
46
|
+
*/
|
|
47
|
+
onSecondaryCtaPress?: () => void;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Renders error page
|
|
51
|
+
*
|
|
52
|
+
* @param {ErrorProps}
|
|
53
|
+
* @return {*} {ReactElement}
|
|
54
|
+
*/
|
|
55
|
+
declare const ErrorComponent: ({ visible, variant, title, description, image, testID, ctaText, onCtaPress, secondaryCtaText, onSecondaryCtaPress, ...nativeProps }: ErrorProps) => ReactElement;
|
|
56
|
+
export default ErrorComponent;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ComponentProps } from 'react';
|
|
3
|
+
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
4
|
+
import Icon from '../../Icon';
|
|
5
|
+
export interface ActionItemProps {
|
|
6
|
+
testID?: string;
|
|
7
|
+
title: string;
|
|
8
|
+
icon: ComponentProps<typeof Icon>['icon'];
|
|
9
|
+
onPress?: () => void;
|
|
10
|
+
style?: StyleProp<ViewStyle>;
|
|
11
|
+
key?: string;
|
|
12
|
+
}
|
|
13
|
+
interface AnimatedActionItemProps extends ActionItemProps {
|
|
14
|
+
index: number;
|
|
15
|
+
active?: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare const ActionItem: ({ icon, title, onPress, style, testID, index, active, }: AnimatedActionItemProps) => React.JSX.Element;
|
|
18
|
+
export default ActionItem;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Animated, View } from 'react-native';
|
|
2
|
+
import type { ViewProps } from 'react-native';
|
|
3
|
+
declare const StyledContainer: import("@emotion/native").StyledComponent<ViewProps & {
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
6
|
+
}, {}, {
|
|
7
|
+
ref?: import("react").Ref<View> | undefined;
|
|
8
|
+
}>;
|
|
9
|
+
declare const StyledContainerInModal: import("@emotion/native").StyledComponent<ViewProps & {
|
|
10
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
12
|
+
}, {}, {
|
|
13
|
+
ref?: import("react").Ref<View> | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
declare const StyledActionGroupContainer: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
|
|
16
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
17
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
18
|
+
}, {}, {}>;
|
|
19
|
+
declare const StyledFAB: import("@emotion/native").StyledComponent<import("../FAB").FABProps & import("react").RefAttributes<import("../FAB").FABHandles> & {
|
|
20
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
21
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
22
|
+
}, {}, {}>;
|
|
23
|
+
declare const StyledBackdrop: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").PressableProps & import("react").RefAttributes<View>> & {
|
|
24
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
25
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
26
|
+
}, {}, {}>;
|
|
27
|
+
export { StyledActionGroupContainer, StyledBackdrop, StyledContainer, StyledContainerInModal, StyledFAB, };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { TouchableOpacity } from 'react-native';
|
|
2
|
+
import type { TouchableOpacityProps } from 'react-native';
|
|
3
|
+
import type { IconProps } from '../../Icon';
|
|
4
|
+
declare const StyledActionItem: import("@emotion/native").StyledComponent<TouchableOpacityProps & {
|
|
5
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
6
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
7
|
+
}, {}, {
|
|
8
|
+
ref?: import("react").Ref<TouchableOpacity> | undefined;
|
|
9
|
+
}>;
|
|
10
|
+
declare const StyledActionItemText: import("@emotion/native").StyledComponent<import("../../Typography/Body").BodyProps & {
|
|
11
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
13
|
+
} & TouchableOpacityProps, {}, {}>;
|
|
14
|
+
declare const StyledIcon: import("@emotion/native").StyledComponent<IconProps & {
|
|
15
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
16
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
17
|
+
}, {}, {}>;
|
|
18
|
+
export { StyledIcon, StyledActionItem, StyledActionItemText };
|