@hero-design/rn 8.81.2 → 8.82.0-alpha.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/CHANGELOG.md +10 -0
- package/package.json +1 -1
- package/sonar-project.properties +1 -1
- package/src/components/DatePicker/DatePickerAndroid.tsx +23 -5
- package/src/components/DatePicker/DatePickerIOS.tsx +39 -19
- package/src/components/DatePicker/__tests__/DatePickerAndroid.spec.tsx +25 -0
- package/src/components/DatePicker/__tests__/DatePickerIOS.spec.tsx +29 -0
- package/src/components/DatePicker/index.tsx +2 -2
- package/src/components/DatePicker/types.ts +2 -1
- package/src/components/Toast/StyledToast.tsx +22 -1
- package/src/components/Toast/Toast.tsx +7 -17
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +117 -27
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +16 -6
- package/src/theme/components/toast.ts +16 -6
- package/stats/8.81.2/rn-stats.html +2 -0
- package/testUtils/setup.tsx +22 -11
- package/.turbo/turbo-build.log +0 -7
- package/es/index.js +0 -37322
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +0 -37419
- package/types/components/Accordion/AccordionItem.d.ts +0 -15
- package/types/components/Accordion/StyledAccordion.d.ts +0 -32
- package/types/components/Accordion/index.d.ts +0 -39
- package/types/components/Alert/StyledAlert.d.ts +0 -53
- package/types/components/Alert/index.d.ts +0 -58
- package/types/components/AnimatedScroller/AnimatedFAB.d.ts +0 -12
- package/types/components/AnimatedScroller/AnimatedScrollable.d.ts +0 -16
- package/types/components/AnimatedScroller/FlatListWithFAB.d.ts +0 -12
- package/types/components/AnimatedScroller/ScrollViewWithFAB.d.ts +0 -12
- package/types/components/AnimatedScroller/SectionListWithFAB.d.ts +0 -12
- package/types/components/AnimatedScroller/index.d.ts +0 -4
- package/types/components/Attachment/StyledAttachment.d.ts +0 -28
- package/types/components/Attachment/index.d.ts +0 -38
- package/types/components/Avatar/Avatar.d.ts +0 -34
- package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +0 -30
- package/types/components/Avatar/AvatarStack/index.d.ts +0 -35
- package/types/components/Avatar/AvatarStack/utils.d.ts +0 -4
- package/types/components/Avatar/StyledAvatar.d.ts +0 -34
- package/types/components/Avatar/index.d.ts +0 -6
- package/types/components/Badge/Status.d.ts +0 -24
- package/types/components/Badge/StyledBadge.d.ts +0 -33
- package/types/components/Badge/index.d.ts +0 -6
- package/types/components/Badge/types.d.ts +0 -53
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -51
- package/types/components/BottomNavigation/index.d.ts +0 -45
- package/types/components/BottomSheet/BottomSheetContext.d.ts +0 -5
- package/types/components/BottomSheet/Footer.d.ts +0 -7
- package/types/components/BottomSheet/Header.d.ts +0 -10
- package/types/components/BottomSheet/ScrollView.d.ts +0 -3
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -61
- package/types/components/BottomSheet/index.d.ts +0 -74
- package/types/components/Box/StyledBox.d.ts +0 -15
- package/types/components/Box/config.d.ts +0 -170
- package/types/components/Box/index.d.ts +0 -6
- package/types/components/Box/types.d.ts +0 -31
- package/types/components/Button/Button.d.ts +0 -57
- package/types/components/Button/IconButton.d.ts +0 -39
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -20
- package/types/components/Button/LoadingIndicator/index.d.ts +0 -27
- package/types/components/Button/StyledButton.d.ts +0 -48
- package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +0 -17
- package/types/components/Button/UtilityButton/index.d.ts +0 -24
- package/types/components/Button/index.d.ts +0 -10
- package/types/components/Calendar/CalendarRowItem.d.ts +0 -12
- package/types/components/Calendar/StyledCalendar.d.ts +0 -62
- package/types/components/Calendar/helpers.d.ts +0 -3
- package/types/components/Calendar/index.d.ts +0 -58
- package/types/components/Card/DataCard/StyledDataCard.d.ts +0 -16
- package/types/components/Card/DataCard/index.d.ts +0 -22
- package/types/components/Card/StyledCard.d.ts +0 -11
- package/types/components/Card/index.d.ts +0 -25
- package/types/components/Carousel/CardCarousel.d.ts +0 -42
- package/types/components/Carousel/CarouselItem.d.ts +0 -7
- package/types/components/Carousel/StyledCardCarousel.d.ts +0 -24
- package/types/components/Carousel/StyledCarousel.d.ts +0 -54
- package/types/components/Carousel/contants.d.ts +0 -2
- package/types/components/Carousel/index.d.ts +0 -44
- package/types/components/Carousel/types.d.ts +0 -14
- package/types/components/Checkbox/StyledCheckbox.d.ts +0 -35
- package/types/components/Checkbox/index.d.ts +0 -44
- package/types/components/Chip/StyledChip.d.ts +0 -16
- package/types/components/Chip/index.d.ts +0 -31
- package/types/components/Collapse/StyledCollapse.d.ts +0 -23
- package/types/components/Collapse/index.d.ts +0 -20
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -8
- package/types/components/ContentNavigator/index.d.ts +0 -43
- package/types/components/DatePicker/DatePickerAndroid.d.ts +0 -4
- package/types/components/DatePicker/DatePickerCalendar.d.ts +0 -4
- package/types/components/DatePicker/DatePickerIOS.d.ts +0 -4
- package/types/components/DatePicker/StyledDatePicker.d.ts +0 -9
- package/types/components/DatePicker/index.d.ts +0 -4
- package/types/components/DatePicker/types.d.ts +0 -78
- package/types/components/DatePicker/useCalculateDate.d.ts +0 -4
- package/types/components/Divider/StyledDivider.d.ts +0 -12
- package/types/components/Divider/index.d.ts +0 -22
- package/types/components/Drawer/DragableDrawer/helpers.d.ts +0 -8
- package/types/components/Drawer/DragableDrawer/index.d.ts +0 -33
- package/types/components/Drawer/StyledDrawer.d.ts +0 -49
- package/types/components/Drawer/index.d.ts +0 -27
- package/types/components/Empty/StyledEmpty.d.ts +0 -21
- package/types/components/Empty/index.d.ts +0 -31
- package/types/components/Error/StyledError.d.ts +0 -53
- package/types/components/Error/index.d.ts +0 -56
- package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -18
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -27
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -18
- package/types/components/FAB/ActionGroup/index.d.ts +0 -54
- package/types/components/FAB/AnimatedFABIcon.d.ts +0 -7
- package/types/components/FAB/FAB.d.ts +0 -40
- package/types/components/FAB/Pair/StyledFAB.d.ts +0 -12
- package/types/components/FAB/Pair/index.d.ts +0 -16
- package/types/components/FAB/StyledFAB.d.ts +0 -21
- package/types/components/FAB/index.d.ts +0 -5
- package/types/components/FloatingIsland/StyledFloatingIsland.d.ts +0 -19
- package/types/components/FloatingIsland/index.d.ts +0 -23
- package/types/components/HeroDesignProvider/index.d.ts +0 -4
- package/types/components/Icon/AnimatedIcon.d.ts +0 -6
- package/types/components/Icon/HeroIcon/index.d.ts +0 -12
- package/types/components/Icon/IconList.d.ts +0 -2
- package/types/components/Icon/index.d.ts +0 -35
- package/types/components/Icon/utils.d.ts +0 -2
- package/types/components/Image/index.d.ts +0 -17
- package/types/components/List/BasicListItem.d.ts +0 -43
- package/types/components/List/ListItem.d.ts +0 -52
- package/types/components/List/StyledBasicListItem.d.ts +0 -29
- package/types/components/List/StyledListItem.d.ts +0 -51
- package/types/components/List/index.d.ts +0 -8
- package/types/components/MapPin/Focussed.d.ts +0 -13
- package/types/components/MapPin/StyledMapPin.d.ts +0 -31
- package/types/components/MapPin/index.d.ts +0 -5
- package/types/components/MapPin/types.d.ts +0 -38
- package/types/components/Modal/index.d.ts +0 -37
- package/types/components/PageControl/StyledPageControl.d.ts +0 -12
- package/types/components/PageControl/index.d.ts +0 -22
- package/types/components/PinInput/PinCell.d.ts +0 -9
- package/types/components/PinInput/StyledPinInput.d.ts +0 -69
- package/types/components/PinInput/index.d.ts +0 -69
- package/types/components/Portal/PortalHost.d.ts +0 -5
- package/types/components/Portal/PortalProvider.d.ts +0 -7
- package/types/components/Portal/constants.d.ts +0 -8
- package/types/components/Portal/contexts.d.ts +0 -9
- package/types/components/Portal/index.d.ts +0 -18
- package/types/components/Portal/reducer.d.ts +0 -5
- package/types/components/Portal/types.d.ts +0 -22
- package/types/components/Portal/usePortal.d.ts +0 -8
- package/types/components/Portal/usePortalState.d.ts +0 -1
- package/types/components/Progress/ProgressBar.d.ts +0 -18
- package/types/components/Progress/ProgressCircle.d.ts +0 -20
- package/types/components/Progress/ProgressStep.d.ts +0 -20
- package/types/components/Progress/StyledProgressBar.d.ts +0 -18
- package/types/components/Progress/StyledProgressCircle.d.ts +0 -46
- package/types/components/Progress/StyledStep.d.ts +0 -23
- package/types/components/Progress/__tests__/index.spec.d.ts +0 -1
- package/types/components/Progress/constants.d.ts +0 -15
- package/types/components/Progress/index.d.ts +0 -6
- package/types/components/Progress/types.d.ts +0 -1
- package/types/components/Radio/Radio.d.ts +0 -38
- package/types/components/Radio/RadioGroup.d.ts +0 -36
- package/types/components/Radio/StyledRadio.d.ts +0 -30
- package/types/components/Radio/index.d.ts +0 -4
- package/types/components/Radio/types.d.ts +0 -8
- package/types/components/Rate/StyledRate.d.ts +0 -10
- package/types/components/Rate/index.d.ts +0 -29
- package/types/components/RefreshControl/index.d.ts +0 -5
- package/types/components/RichTextEditor/EditorEvent.d.ts +0 -4
- package/types/components/RichTextEditor/EditorToolbar.d.ts +0 -18
- package/types/components/RichTextEditor/MentionList.d.ts +0 -17
- package/types/components/RichTextEditor/RichTextEditor.d.ts +0 -70
- package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +0 -16
- package/types/components/RichTextEditor/StyledToolbar.d.ts +0 -21
- package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +0 -2
- package/types/components/RichTextEditor/constants.d.ts +0 -9
- package/types/components/RichTextEditor/heroEditorApp.d.ts +0 -2
- package/types/components/RichTextEditor/index.d.ts +0 -7
- package/types/components/RichTextEditor/types.d.ts +0 -1
- package/types/components/RichTextEditor/utils/events.d.ts +0 -8
- package/types/components/RichTextEditor/utils/rnWebView.d.ts +0 -7
- package/types/components/Search/SearchOneLine.d.ts +0 -69
- package/types/components/Search/SearchSuffixIcon.d.ts +0 -24
- package/types/components/Search/SearchTwoLine.d.ts +0 -36
- package/types/components/Search/StyledSearch.d.ts +0 -49
- package/types/components/Search/index.d.ts +0 -10
- package/types/components/Search/utils.d.ts +0 -8
- package/types/components/SectionHeading/StyledHeading.d.ts +0 -23
- package/types/components/SectionHeading/index.d.ts +0 -45
- package/types/components/Select/BaseOptionList.d.ts +0 -8
- package/types/components/Select/Footer.d.ts +0 -6
- package/types/components/Select/MultiSelect/Option.d.ts +0 -10
- package/types/components/Select/MultiSelect/OptionList.d.ts +0 -9
- package/types/components/Select/MultiSelect/index.d.ts +0 -30
- package/types/components/Select/SingleSelect/Option.d.ts +0 -10
- package/types/components/Select/SingleSelect/OptionList.d.ts +0 -11
- package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +0 -1
- package/types/components/Select/SingleSelect/index.d.ts +0 -23
- package/types/components/Select/StyledSelect.d.ts +0 -21
- package/types/components/Select/helpers.d.ts +0 -14
- package/types/components/Select/index.d.ts +0 -8
- package/types/components/Select/types.d.ts +0 -84
- package/types/components/Skeleton/StyledSkeleton.d.ts +0 -16
- package/types/components/Skeleton/index.d.ts +0 -14
- package/types/components/Slider/index.d.ts +0 -53
- package/types/components/Spinner/AnimatedSpinner.d.ts +0 -6
- package/types/components/Spinner/StyledSpinner.d.ts +0 -34
- package/types/components/Spinner/index.d.ts +0 -18
- package/types/components/Success/StyledSuccess.d.ts +0 -49
- package/types/components/Success/index.d.ts +0 -50
- package/types/components/Swipeable/StyledSwipeable.d.ts +0 -10
- package/types/components/Swipeable/SwipeableAction.d.ts +0 -27
- package/types/components/Swipeable/index.d.ts +0 -49
- package/types/components/Switch/SelectorSwitch/Option.d.ts +0 -16
- package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -19
- package/types/components/Switch/SelectorSwitch/index.d.ts +0 -37
- package/types/components/Switch/StyledSwitch.d.ts +0 -15
- package/types/components/Switch/index.d.ts +0 -28
- package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -9
- package/types/components/Tabs/SceneView.d.ts +0 -10
- package/types/components/Tabs/ScrollableTabs.d.ts +0 -7
- package/types/components/Tabs/ScrollableTabsHeader/ScrollableTabsHeader.d.ts +0 -40
- package/types/components/Tabs/ScrollableTabsHeader/hooks/useInitHighlightedAnimation.d.ts +0 -9
- package/types/components/Tabs/ScrollableTabsHeader/hooks/useInitUnderlinedAnimation.d.ts +0 -10
- package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -55
- package/types/components/Tabs/StyledTabs.d.ts +0 -51
- package/types/components/Tabs/TabWithBadge.d.ts +0 -16
- package/types/components/Tabs/index.d.ts +0 -62
- package/types/components/Tabs/useHandlePageScroll.d.ts +0 -8
- package/types/components/Tabs/useIsFocused.d.ts +0 -6
- package/types/components/Tabs/utils.d.ts +0 -2
- package/types/components/Tag/StyledTag.d.ts +0 -17
- package/types/components/Tag/index.d.ts +0 -27
- package/types/components/TextInput/StyledTextInput.d.ts +0 -86
- package/types/components/TextInput/index.d.ts +0 -124
- package/types/components/TimePicker/StyledTimePicker.d.ts +0 -9
- package/types/components/TimePicker/TimePickerAndroid.d.ts +0 -4
- package/types/components/TimePicker/TimePickerIOS.d.ts +0 -4
- package/types/components/TimePicker/index.d.ts +0 -4
- package/types/components/TimePicker/types.d.ts +0 -61
- package/types/components/Toast/StyledToast.d.ts +0 -45
- package/types/components/Toast/Toast.d.ts +0 -3
- package/types/components/Toast/ToastContainer.d.ts +0 -5
- package/types/components/Toast/ToastContext.d.ts +0 -12
- package/types/components/Toast/ToastProvider.d.ts +0 -11
- package/types/components/Toast/index.d.ts +0 -8
- package/types/components/Toast/types.d.ts +0 -72
- package/types/components/Toolbar/StyledToolbar.d.ts +0 -71
- package/types/components/Toolbar/ToolbarGroup.d.ts +0 -14
- package/types/components/Toolbar/ToolbarItem.d.ts +0 -31
- package/types/components/Toolbar/ToolbarMessage.d.ts +0 -59
- package/types/components/Toolbar/index.d.ts +0 -14
- package/types/components/Typography/Body/StyledBody.d.ts +0 -14
- package/types/components/Typography/Body/__tests__/StyledBody.d.ts +0 -1
- package/types/components/Typography/Body/index.d.ts +0 -33
- package/types/components/Typography/Caption/StyledCaption.d.ts +0 -12
- package/types/components/Typography/Caption/index.d.ts +0 -27
- package/types/components/Typography/Label/StyledLabel.d.ts +0 -11
- package/types/components/Typography/Label/__tests__/StyledLabel.d.ts +0 -1
- package/types/components/Typography/Label/index.d.ts +0 -23
- package/types/components/Typography/Text/StyledText.d.ts +0 -13
- package/types/components/Typography/Text/index.d.ts +0 -37
- package/types/components/Typography/Title/StyledTitle.d.ts +0 -14
- package/types/components/Typography/Title/__tests__/StyledTitle.d.ts +0 -1
- package/types/components/Typography/Title/index.d.ts +0 -33
- package/types/components/Typography/index.d.ts +0 -17
- package/types/components/Typography/types.d.ts +0 -6
- package/types/index.d.ts +0 -57
- package/types/testHelpers/renderWithTheme.d.ts +0 -3
- package/types/testHelpers/utils.d.ts +0 -1
- package/types/theme/ThemeProvider.d.ts +0 -12
- package/types/theme/ThemeSwitcher.d.ts +0 -8
- package/types/theme/components/accordion.d.ts +0 -13
- package/types/theme/components/alert.d.ts +0 -36
- package/types/theme/components/attachment.d.ts +0 -21
- package/types/theme/components/avatar.d.ts +0 -50
- package/types/theme/components/badge.d.ts +0 -56
- package/types/theme/components/bottomNavigation.d.ts +0 -23
- package/types/theme/components/bottomSheet.d.ts +0 -38
- package/types/theme/components/button.d.ts +0 -72
- package/types/theme/components/calendar.d.ts +0 -28
- package/types/theme/components/card.d.ts +0 -21
- package/types/theme/components/cardCarousel.d.ts +0 -15
- package/types/theme/components/carousel.d.ts +0 -36
- package/types/theme/components/checkbox.d.ts +0 -27
- package/types/theme/components/chip.d.ts +0 -43
- package/types/theme/components/contentNavigator.d.ts +0 -7
- package/types/theme/components/datePicker.d.ts +0 -7
- package/types/theme/components/divider.d.ts +0 -17
- package/types/theme/components/drawer.d.ts +0 -30
- package/types/theme/components/empty.d.ts +0 -37
- package/types/theme/components/error.d.ts +0 -51
- package/types/theme/components/fab.d.ts +0 -71
- package/types/theme/components/floatingIsland.d.ts +0 -32
- package/types/theme/components/icon.d.ts +0 -23
- package/types/theme/components/image.d.ts +0 -8
- package/types/theme/components/list.d.ts +0 -46
- package/types/theme/components/mapPin.d.ts +0 -39
- package/types/theme/components/pageControl.d.ts +0 -18
- package/types/theme/components/pinInput.d.ts +0 -57
- package/types/theme/components/progress.d.ts +0 -51
- package/types/theme/components/radio.d.ts +0 -24
- package/types/theme/components/rate.d.ts +0 -11
- package/types/theme/components/refreshControl.d.ts +0 -7
- package/types/theme/components/richTextEditor.d.ts +0 -28
- package/types/theme/components/search.d.ts +0 -64
- package/types/theme/components/sectionHeading.d.ts +0 -14
- package/types/theme/components/select.d.ts +0 -18
- package/types/theme/components/skeleton.d.ts +0 -17
- package/types/theme/components/slider.d.ts +0 -9
- package/types/theme/components/spinner.d.ts +0 -27
- package/types/theme/components/success.d.ts +0 -43
- package/types/theme/components/swipeable.d.ts +0 -16
- package/types/theme/components/switch.d.ts +0 -38
- package/types/theme/components/tabs.d.ts +0 -30
- package/types/theme/components/tag.d.ts +0 -53
- package/types/theme/components/textInput.d.ts +0 -87
- package/types/theme/components/timePicker.d.ts +0 -7
- package/types/theme/components/toast.d.ts +0 -40
- package/types/theme/components/toolbar.d.ts +0 -47
- package/types/theme/components/typography.d.ts +0 -165
- package/types/theme/getTheme.d.ts +0 -106
- package/types/theme/global/borders.d.ts +0 -18
- package/types/theme/global/colors/eBens.d.ts +0 -3
- package/types/theme/global/colors/global.d.ts +0 -3
- package/types/theme/global/colors/globalDark.d.ts +0 -3
- package/types/theme/global/colors/jobs.d.ts +0 -3
- package/types/theme/global/colors/swag.d.ts +0 -3
- package/types/theme/global/colors/swagDark.d.ts +0 -3
- package/types/theme/global/colors/swagLight.d.ts +0 -3
- package/types/theme/global/colors/swagLightGlobal.d.ts +0 -3
- package/types/theme/global/colors/swagLightJobs.d.ts +0 -48
- package/types/theme/global/colors/types.d.ts +0 -50
- package/types/theme/global/colors/wallet.d.ts +0 -3
- package/types/theme/global/colors/work.d.ts +0 -3
- package/types/theme/global/index.d.ts +0 -82
- package/types/theme/global/scale.d.ts +0 -14
- package/types/theme/global/shadows.d.ts +0 -16
- package/types/theme/global/sizes.d.ts +0 -14
- package/types/theme/global/space.d.ts +0 -16
- package/types/theme/global/typography.d.ts +0 -31
- package/types/theme/index.d.ts +0 -9
- package/types/types.d.ts +0 -14
- package/types/utils/functions.d.ts +0 -1
- package/types/utils/helpers.d.ts +0 -4
- package/types/utils/hooks.d.ts +0 -3
- package/types/utils/scale.d.ts +0 -3
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { TextInputProps as NativeTextInputProps } from 'react-native';
|
|
3
|
-
import type { OptionType, SelectProps } from '../types';
|
|
4
|
-
export interface MultiSelectProps<V, T extends OptionType<V> = OptionType<V>> extends SelectProps<V, T> {
|
|
5
|
-
/**
|
|
6
|
-
* Current selected value.
|
|
7
|
-
*/
|
|
8
|
-
value: V[];
|
|
9
|
-
/**
|
|
10
|
-
* event handler for footer button.
|
|
11
|
-
*/
|
|
12
|
-
onConfirm: (value: V[]) => void;
|
|
13
|
-
/**
|
|
14
|
-
* Footer label.
|
|
15
|
-
*/
|
|
16
|
-
footerLabel: string | (({ value, closeModal, }: {
|
|
17
|
-
value: V[];
|
|
18
|
-
closeModal: () => void;
|
|
19
|
-
}) => React.ReactNode);
|
|
20
|
-
/**
|
|
21
|
-
* Customise the selected value rendering.
|
|
22
|
-
*/
|
|
23
|
-
renderSelectedValue?: (selectedValue: V[], inputProps: NativeTextInputProps) => React.ReactNode;
|
|
24
|
-
/**
|
|
25
|
-
* Supported orientations for the MultiSelect modal, iOS only.
|
|
26
|
-
*/
|
|
27
|
-
supportedOrientations?: ('portrait' | 'landscape')[];
|
|
28
|
-
}
|
|
29
|
-
declare function MultiSelect<V, T extends OptionType<V>>({ footerLabel, label, loading, inputProps, onConfirm, onDismiss, onEndReached, onQueryChange, options, renderOption, renderSelectedValue, query, error, editable, disabled, required, style, testID, value, supportedOrientations, bottomSheetConfig, }: MultiSelectProps<V, T>): React.JSX.Element;
|
|
30
|
-
export default MultiSelect;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { ReactElement } from 'react';
|
|
3
|
-
declare const Option: ({ text, disabled, selected, onPress, highlighted, }: {
|
|
4
|
-
text: string | ReactElement;
|
|
5
|
-
disabled?: boolean | undefined;
|
|
6
|
-
selected: boolean;
|
|
7
|
-
onPress: () => void;
|
|
8
|
-
highlighted?: boolean | undefined;
|
|
9
|
-
}) => React.JSX.Element;
|
|
10
|
-
export default Option;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { SectionList } from 'react-native';
|
|
3
|
-
import type { SingleSelectProps } from '.';
|
|
4
|
-
import type { OptionType, SectionType } from '../types';
|
|
5
|
-
import { BaseOptionListProps } from '../BaseOptionList';
|
|
6
|
-
declare type OptionListProps<V, T extends OptionType<V>> = Pick<SingleSelectProps<V, T>, 'keyExtractor' | 'loading' | 'onEndReached' | 'onQueryChange' | 'value' | 'renderOption'> & {
|
|
7
|
-
onPress: (value: V | null) => void;
|
|
8
|
-
sectionListRef?: React.RefObject<SectionList<T, SectionType>>;
|
|
9
|
-
} & BaseOptionListProps<V, T>;
|
|
10
|
-
declare const OptionList: <V, T extends OptionType<V>>({ keyExtractor, loading, onEndReached, onPress, onQueryChange, sections, renderOption, value, sectionListRef, ...rest }: OptionListProps<V, T>) => React.JSX.Element;
|
|
11
|
-
export default OptionList;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const StyledOptionList: <V, T extends import("../types").OptionType<V>>({ keyExtractor, loading, onEndReached, onQueryChange, sections, renderItem, sectionListRef, ...rest }: import("../BaseOptionList").BaseOptionListProps<V, T>) => import("react").JSX.Element;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { TextInputProps as NativeTextInputProps } from 'react-native';
|
|
3
|
-
import type { OptionType, SelectProps } from '../types';
|
|
4
|
-
export interface SingleSelectProps<V, T extends OptionType<V> = OptionType<V>> extends SelectProps<V, T> {
|
|
5
|
-
/**
|
|
6
|
-
* Current selected value.
|
|
7
|
-
*/
|
|
8
|
-
value: V | null;
|
|
9
|
-
/**
|
|
10
|
-
* On select event handler
|
|
11
|
-
*/
|
|
12
|
-
onConfirm: (value: V | null) => void;
|
|
13
|
-
/**
|
|
14
|
-
* Customise the selected value rendering.
|
|
15
|
-
*/
|
|
16
|
-
renderSelectedValue?: (selectedValue: V | null, inputProps: NativeTextInputProps) => React.ReactNode;
|
|
17
|
-
/**
|
|
18
|
-
* Supported orientations for the Select modal, iOS only.
|
|
19
|
-
*/
|
|
20
|
-
supportedOrientations?: ('portrait' | 'landscape')[];
|
|
21
|
-
}
|
|
22
|
-
declare const SingleSelect: <V, T extends OptionType<V>>({ label, loading, inputProps, onConfirm, onDismiss, onEndReached, onQueryChange, options, renderOption, renderSelectedValue, query, error, editable, disabled, required, style, testID, value, supportedOrientations, bottomSheetConfig, }: SingleSelectProps<V, T>) => React.JSX.Element;
|
|
23
|
-
export default SingleSelect;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { SectionList, View } from 'react-native';
|
|
2
|
-
declare const SectionSpacer: 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
|
-
declare const OptionSpacer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
9
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
10
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
11
|
-
}, {}, {
|
|
12
|
-
ref?: import("react").Ref<View> | undefined;
|
|
13
|
-
}>;
|
|
14
|
-
declare const StyledSearchBar: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
15
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
16
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
17
|
-
}, {}, {
|
|
18
|
-
ref?: import("react").Ref<View> | undefined;
|
|
19
|
-
}>;
|
|
20
|
-
declare const StyledSectionList: typeof SectionList;
|
|
21
|
-
export { SectionSpacer, OptionSpacer, StyledSearchBar, StyledSectionList };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { SectionData, CombinedOptionsType, OptionType } from './types';
|
|
2
|
-
export declare const getKey: <V, T extends OptionType<V>>(option: T, index: number, keyExtractor?: ((opt: T, i?: number) => string) | undefined) => string | number;
|
|
3
|
-
export declare const isSections: <V, T extends OptionType<V>>(options: CombinedOptionsType<V, T>) => options is SectionData<V, T>[];
|
|
4
|
-
export declare const toSections: <V, T extends OptionType<V>>(options: CombinedOptionsType<V, T>) => SectionData<V, T>[];
|
|
5
|
-
export declare const toFlatOptions: <V, T extends OptionType<V>>(options: CombinedOptionsType<V, T>) => OptionType<V>[];
|
|
6
|
-
export declare type ScrollParams = {
|
|
7
|
-
itemIndex: number;
|
|
8
|
-
sectionIndex: number;
|
|
9
|
-
};
|
|
10
|
-
export declare const getScrollParams: <V, T extends OptionType<V>>(value: V, sections: SectionData<V, T>[]) => ScrollParams;
|
|
11
|
-
export declare const useKeyboard: () => {
|
|
12
|
-
isKeyboardVisible: boolean;
|
|
13
|
-
keyboardHeight: number;
|
|
14
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import MultiSelect from './MultiSelect';
|
|
2
|
-
import type { MultiSelectProps } from './MultiSelect';
|
|
3
|
-
import type { SingleSelectProps } from './SingleSelect';
|
|
4
|
-
export type { MultiSelectProps, SingleSelectProps };
|
|
5
|
-
declare const _default: (<V, T extends import("./types").OptionType<V>>({ label, loading, inputProps, onConfirm, onDismiss, onEndReached, onQueryChange, options, renderOption, renderSelectedValue, query, error, editable, disabled, required, style, testID, value, supportedOrientations, bottomSheetConfig, }: SingleSelectProps<V, T>) => import("react").JSX.Element) & {
|
|
6
|
-
Multi: typeof MultiSelect;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from 'react';
|
|
2
|
-
import type { ListRenderItemInfo, SectionListData, SectionListRenderItemInfo, StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import { BottomSheetProps } from '../BottomSheet';
|
|
4
|
-
import type { TextInputProps } from '../TextInput';
|
|
5
|
-
export declare type OptionType<V> = {
|
|
6
|
-
value: V;
|
|
7
|
-
text: string;
|
|
8
|
-
key?: string;
|
|
9
|
-
disabled?: boolean;
|
|
10
|
-
highlighted?: boolean;
|
|
11
|
-
};
|
|
12
|
-
export declare type SectionType = {
|
|
13
|
-
category: string;
|
|
14
|
-
};
|
|
15
|
-
export declare type SectionData<V, T extends OptionType<V>> = SectionListData<T, SectionType>;
|
|
16
|
-
export declare type CombinedOptionsType<V, T extends OptionType<V>> = T[] | SectionData<V, T>[];
|
|
17
|
-
export declare type ListRenderOptionInfo<V, T extends OptionType<V>> = ListRenderItemInfo<T> & {
|
|
18
|
-
selected: boolean;
|
|
19
|
-
onPress: () => void;
|
|
20
|
-
};
|
|
21
|
-
export declare type SectionListRenderOptionInfo<V, T extends OptionType<V>> = SectionListRenderItemInfo<T, SectionType> & {
|
|
22
|
-
selected: boolean;
|
|
23
|
-
onPress: () => void;
|
|
24
|
-
};
|
|
25
|
-
export interface SelectProps<V, T extends OptionType<V>> extends Pick<TextInputProps, 'editable' | 'disabled' | 'error' | 'required'> {
|
|
26
|
-
/**
|
|
27
|
-
* An array of options to be selected.
|
|
28
|
-
*/
|
|
29
|
-
options: CombinedOptionsType<V, T>;
|
|
30
|
-
/**
|
|
31
|
-
* Customize option renderer.
|
|
32
|
-
*/
|
|
33
|
-
renderOption?: ((info: ListRenderOptionInfo<V, T>) => ReactElement) | ((info: SectionListRenderOptionInfo<V, T>) => ReactElement);
|
|
34
|
-
/**
|
|
35
|
-
* Used to extract a unique key for a given option at the specified index. Key is used for caching and as the react key to track item re-ordering.
|
|
36
|
-
* The default extractor checks option.key, and then falls back to using the index, like React does.
|
|
37
|
-
*/
|
|
38
|
-
keyExtractor?: (option: T, index?: number) => string;
|
|
39
|
-
/**
|
|
40
|
-
* Current search value.
|
|
41
|
-
*/
|
|
42
|
-
query?: string;
|
|
43
|
-
/**
|
|
44
|
-
* Search bar onChangeText event handler
|
|
45
|
-
*/
|
|
46
|
-
onQueryChange?: (value: string) => void;
|
|
47
|
-
/**
|
|
48
|
-
* Event handler when selection dismiss
|
|
49
|
-
*/
|
|
50
|
-
onDismiss?: () => void;
|
|
51
|
-
/**
|
|
52
|
-
* Event handler when end of the list reached
|
|
53
|
-
*/
|
|
54
|
-
onEndReached?: () => void;
|
|
55
|
-
/**
|
|
56
|
-
* Show loading indicator at bottom of option list
|
|
57
|
-
*/
|
|
58
|
-
loading?: boolean;
|
|
59
|
-
/**
|
|
60
|
-
* Props that are passed to TextInput.
|
|
61
|
-
* Required is deprecated and will be removed in the next major release.
|
|
62
|
-
* Please use the outer required instead.
|
|
63
|
-
*/
|
|
64
|
-
inputProps?: Pick<TextInputProps, 'loading' | 'numberOfLines'>;
|
|
65
|
-
/**
|
|
66
|
-
* Field label.
|
|
67
|
-
*/
|
|
68
|
-
label: string;
|
|
69
|
-
/**
|
|
70
|
-
* Additional style.
|
|
71
|
-
*/
|
|
72
|
-
style?: StyleProp<ViewStyle>;
|
|
73
|
-
/**
|
|
74
|
-
* Testing id of the component.
|
|
75
|
-
*/
|
|
76
|
-
testID?: string;
|
|
77
|
-
/**
|
|
78
|
-
* Config for the bottom sheet.
|
|
79
|
-
*/
|
|
80
|
-
bottomSheetConfig?: {
|
|
81
|
-
variant?: BottomSheetProps['variant'];
|
|
82
|
-
header?: BottomSheetProps['header'];
|
|
83
|
-
};
|
|
84
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
declare type ThemeIntent = 'light' | 'dark';
|
|
2
|
-
declare type ThemeVariant = 'circular' | 'rectangular' | 'rounded';
|
|
3
|
-
declare const StyledContainer: import("@emotion/native").StyledComponent<import("../Box").BoxProps & {
|
|
4
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
6
|
-
} & {
|
|
7
|
-
themeIntent: ThemeIntent;
|
|
8
|
-
themeVariant: ThemeVariant;
|
|
9
|
-
}, {}, {}>;
|
|
10
|
-
declare const StyledGradientContainer: import("@emotion/native").StyledComponent<import("../Box").BoxProps & {
|
|
11
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
13
|
-
} & {
|
|
14
|
-
themeVariant: ThemeVariant;
|
|
15
|
-
}, {}, {}>;
|
|
16
|
-
export { StyledContainer, StyledGradientContainer };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ViewProps } from 'react-native';
|
|
3
|
-
export interface SkeletonProps extends ViewProps {
|
|
4
|
-
/**
|
|
5
|
-
* Intent of the component.
|
|
6
|
-
*/
|
|
7
|
-
intent?: 'light' | 'dark';
|
|
8
|
-
/**
|
|
9
|
-
* Variant of the component.
|
|
10
|
-
*/
|
|
11
|
-
variant?: 'circular' | 'rectangular' | 'rounded';
|
|
12
|
-
}
|
|
13
|
-
declare const Skeleton: ({ intent, variant, style, onLayout, ...props }: SkeletonProps) => React.JSX.Element;
|
|
14
|
-
export default Skeleton;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
export interface SliderProps {
|
|
4
|
-
/**
|
|
5
|
-
* Minimum value of the slider.
|
|
6
|
-
* Defaults to 0.
|
|
7
|
-
*/
|
|
8
|
-
minimumValue?: number;
|
|
9
|
-
/**
|
|
10
|
-
* Maximum value of the slider.
|
|
11
|
-
* Defaults to 1.
|
|
12
|
-
*/
|
|
13
|
-
maximumValue?: number;
|
|
14
|
-
/**
|
|
15
|
-
* Step value of the slider.
|
|
16
|
-
* The value should be between 0 and (maximumValue - minimumValue).
|
|
17
|
-
* Defaults to 0.
|
|
18
|
-
*/
|
|
19
|
-
step?: number;
|
|
20
|
-
/**
|
|
21
|
-
* Value of the slider.
|
|
22
|
-
* Defaults to 0.
|
|
23
|
-
*/
|
|
24
|
-
value?: number;
|
|
25
|
-
/**
|
|
26
|
-
* Callback continuously called while the user is dragging the slider.
|
|
27
|
-
*/
|
|
28
|
-
onValueChange?: (value: number) => void;
|
|
29
|
-
/**
|
|
30
|
-
* Callback that is called when the user picks up the slider.
|
|
31
|
-
* The initial value is passed as an argument to the callback handler.
|
|
32
|
-
*/
|
|
33
|
-
onSlidingStart?: (value: number) => void;
|
|
34
|
-
/**
|
|
35
|
-
* Callback that is called when the user releases the slider, regardless if the value has changed.
|
|
36
|
-
* The current value is passed as an argument to the callback handler.
|
|
37
|
-
*/
|
|
38
|
-
onSlidingComplete?: (value: number) => void;
|
|
39
|
-
/**
|
|
40
|
-
* Whether the slider is disabled.
|
|
41
|
-
*/
|
|
42
|
-
disabled?: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Additional style.
|
|
45
|
-
*/
|
|
46
|
-
style?: StyleProp<ViewStyle>;
|
|
47
|
-
/**
|
|
48
|
-
* Testing id of the component.
|
|
49
|
-
*/
|
|
50
|
-
testID?: string;
|
|
51
|
-
}
|
|
52
|
-
declare const Slider: ({ minimumValue, maximumValue, step, value, onValueChange, onSlidingStart, onSlidingComplete, disabled, style, testID, }: SliderProps) => React.JSX.Element;
|
|
53
|
-
export default Slider;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { View } from 'react-native';
|
|
2
|
-
import type { ViewProps } from 'react-native';
|
|
3
|
-
declare const StyledView: 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 StyledSpinnerContainer: 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 StyledSpinnerRow: import("@emotion/native").StyledComponent<ViewProps & {
|
|
16
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
17
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
18
|
-
} & {
|
|
19
|
-
themePosition: 'top' | 'bottom';
|
|
20
|
-
themeSize: 'small' | 'medium';
|
|
21
|
-
}, {}, {
|
|
22
|
-
ref?: import("react").Ref<View> | undefined;
|
|
23
|
-
}>;
|
|
24
|
-
declare const StyledSpinnerDot: import("@emotion/native").StyledComponent<ViewProps & {
|
|
25
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
26
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
27
|
-
} & {
|
|
28
|
-
themePosition: 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
|
|
29
|
-
themeSize: 'small' | 'medium';
|
|
30
|
-
themeIntent: 'primary' | 'inverted';
|
|
31
|
-
}, {}, {
|
|
32
|
-
ref?: import("react").Ref<View> | undefined;
|
|
33
|
-
}>;
|
|
34
|
-
export { StyledView, StyledSpinnerContainer, StyledSpinnerRow, StyledSpinnerDot, };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from 'react';
|
|
2
|
-
import type { ViewProps } from 'react-native';
|
|
3
|
-
interface SpinnerProps extends ViewProps {
|
|
4
|
-
/**
|
|
5
|
-
* Size of Spinner.
|
|
6
|
-
*/
|
|
7
|
-
size?: 'small' | 'medium';
|
|
8
|
-
/**
|
|
9
|
-
* Spinner's variant.
|
|
10
|
-
*/
|
|
11
|
-
intent?: 'primary' | 'inverted';
|
|
12
|
-
/**
|
|
13
|
-
* Testing id of the component.
|
|
14
|
-
*/
|
|
15
|
-
testID?: string;
|
|
16
|
-
}
|
|
17
|
-
declare const Spinner: ({ testID, size, intent, ...nativeProps }: SpinnerProps) => ReactElement;
|
|
18
|
-
export default Spinner;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { View } from 'react-native';
|
|
2
|
-
declare type SuccessVariant = 'full-screen' | 'in-page';
|
|
3
|
-
declare const StyledSuccessContainer: 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
|
-
themeVariant: SuccessVariant;
|
|
8
|
-
}, {}, {
|
|
9
|
-
ref?: import("react").Ref<View> | undefined;
|
|
10
|
-
}>;
|
|
11
|
-
declare const StyledSuccessImage: import("@emotion/native").StyledComponent<import("../Image").ImageProps & {
|
|
12
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
13
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
14
|
-
}, {}, {}>;
|
|
15
|
-
declare const StyledSuccessContent: 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 StyledSuccessImageContainer: 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 StyledSuccessTitle: import("@emotion/native").StyledComponent<import("../Typography/Title").TitleProps & {
|
|
28
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
29
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
30
|
-
}, {}, {}>;
|
|
31
|
-
declare const StyledSuccessDescription: import("@emotion/native").StyledComponent<import("../Typography/Body").BodyProps & {
|
|
32
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
33
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
34
|
-
}, {}, {}>;
|
|
35
|
-
declare const StyledSuccessButtonContainer: 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 StyledSuccessButtonPrimary: import("@emotion/native").StyledComponent<import("../Button/Button").ButtonProps & {
|
|
42
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
43
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
44
|
-
}, {}, {}>;
|
|
45
|
-
declare const StyledSuccessModal: import("@emotion/native").StyledComponent<import("../Modal").ModalProps & {
|
|
46
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
47
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
48
|
-
}, {}, {}>;
|
|
49
|
-
export { SuccessVariant, StyledSuccessImage, StyledSuccessContainer, StyledSuccessContent, StyledSuccessImageContainer, StyledSuccessTitle, StyledSuccessDescription, StyledSuccessButtonContainer, StyledSuccessButtonPrimary, StyledSuccessModal, };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import type { ViewProps, ImageSourcePropType, ImageProps as RNImageProps } from 'react-native';
|
|
3
|
-
import { SuccessVariant } from './StyledSuccess';
|
|
4
|
-
import { ImageProps } from '../Image';
|
|
5
|
-
export interface SuccessProps extends ViewProps {
|
|
6
|
-
/**
|
|
7
|
-
* Image to be displayed.
|
|
8
|
-
*/
|
|
9
|
-
image?: ReactElement<ImageProps | RNImageProps> | ImageSourcePropType | string;
|
|
10
|
-
/**
|
|
11
|
-
* Success's title.
|
|
12
|
-
*/
|
|
13
|
-
title: string;
|
|
14
|
-
/**
|
|
15
|
-
* Success's description.
|
|
16
|
-
*/
|
|
17
|
-
description?: string | ReactElement;
|
|
18
|
-
/**
|
|
19
|
-
* Success's variant.
|
|
20
|
-
*/
|
|
21
|
-
variant?: SuccessVariant;
|
|
22
|
-
/**
|
|
23
|
-
* Action button text
|
|
24
|
-
*/
|
|
25
|
-
ctaText?: string;
|
|
26
|
-
/**
|
|
27
|
-
* Callback when the action button is pressed.
|
|
28
|
-
*/
|
|
29
|
-
onCtaPress?: () => void;
|
|
30
|
-
/**
|
|
31
|
-
* Secondary button text.
|
|
32
|
-
*/
|
|
33
|
-
secondaryCtaText?: string;
|
|
34
|
-
/**
|
|
35
|
-
* Callback when the secondary button is pressed.
|
|
36
|
-
*/
|
|
37
|
-
onSecondaryCtaPress?: () => void;
|
|
38
|
-
/**
|
|
39
|
-
* Testing id of the component.
|
|
40
|
-
*/
|
|
41
|
-
testID?: string;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Renders success page
|
|
45
|
-
*
|
|
46
|
-
* @param {SuccessProps} props
|
|
47
|
-
* @return {*} {ReactElement}
|
|
48
|
-
*/
|
|
49
|
-
declare const Success: (props: SuccessProps) => ReactElement;
|
|
50
|
-
export default Success;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { TouchableOpacity } from 'react-native';
|
|
2
|
-
export declare type ActionIntent = 'primary' | 'success' | 'danger';
|
|
3
|
-
export declare const StyledRectButton: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
|
|
4
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
6
|
-
} & {
|
|
7
|
-
themeIntent: ActionIntent;
|
|
8
|
-
}, {}, {
|
|
9
|
-
ref?: import("react").Ref<TouchableOpacity> | undefined;
|
|
10
|
-
}>;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import { ActionIntent } from './StyledSwipeable';
|
|
4
|
-
export interface SwipeableActionProps {
|
|
5
|
-
/**
|
|
6
|
-
* Visual intent color applied to action.
|
|
7
|
-
*/
|
|
8
|
-
intent?: ActionIntent;
|
|
9
|
-
/**
|
|
10
|
-
* Callback when the action button is pressed.
|
|
11
|
-
*/
|
|
12
|
-
onPress?: () => void;
|
|
13
|
-
/**
|
|
14
|
-
* Action button's content
|
|
15
|
-
*/
|
|
16
|
-
children?: ReactNode;
|
|
17
|
-
/**
|
|
18
|
-
* Additional style.
|
|
19
|
-
*/
|
|
20
|
-
style?: StyleProp<ViewStyle>;
|
|
21
|
-
/**
|
|
22
|
-
* Testing id of the component.
|
|
23
|
-
*/
|
|
24
|
-
testID?: string;
|
|
25
|
-
}
|
|
26
|
-
declare const SwipeableAction: ({ intent, onPress, style, children, testID, }: SwipeableActionProps) => React.JSX.Element;
|
|
27
|
-
export default SwipeableAction;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import React, { ComponentProps, ReactNode } from 'react';
|
|
2
|
-
import { Swipeable as RnghSwipeable } from 'react-native-gesture-handler';
|
|
3
|
-
declare type State = 'closed' | 'leftOpen' | 'rightOpen';
|
|
4
|
-
declare type RnghSwipeableProps = ComponentProps<typeof RnghSwipeable>;
|
|
5
|
-
export interface SwipeableProps extends Pick<RnghSwipeableProps, 'enableTrackpadTwoFingerGesture' | 'friction' | 'leftThreshold' | 'rightThreshold' | 'overshootLeft' | 'overshootRight' | 'overshootFriction' | 'useNativeAnimations' | 'containerStyle' | 'childrenContainerStyle'> {
|
|
6
|
-
/**
|
|
7
|
-
* React node that is swipeable.
|
|
8
|
-
*/
|
|
9
|
-
children: ReactNode;
|
|
10
|
-
/**
|
|
11
|
-
* State of the component.
|
|
12
|
-
*/
|
|
13
|
-
state?: 'closed' | 'leftOpen' | 'rightOpen';
|
|
14
|
-
/**
|
|
15
|
-
* Callback when the state of the component changes.
|
|
16
|
-
*/
|
|
17
|
-
onStateChange?: (state: State) => void;
|
|
18
|
-
/**
|
|
19
|
-
* Action panel that is going to be revealed from the left side when user swipes right.
|
|
20
|
-
*/
|
|
21
|
-
leftActions?: ReactNode;
|
|
22
|
-
/**
|
|
23
|
-
* Width of the left action panel.
|
|
24
|
-
* By default, it will take up the whole width of the device.
|
|
25
|
-
*/
|
|
26
|
-
leftActionsWidth?: number;
|
|
27
|
-
/**
|
|
28
|
-
* Action panel that is going to be revealed from the right side when user swipes left.
|
|
29
|
-
*/
|
|
30
|
-
rightActions?: ReactNode;
|
|
31
|
-
/**
|
|
32
|
-
* Width of the right action panel.
|
|
33
|
-
* By default, it will take up the whole width of the device.
|
|
34
|
-
*/
|
|
35
|
-
rightActionsWidth?: number;
|
|
36
|
-
/**
|
|
37
|
-
* Testing ID of the component
|
|
38
|
-
*/
|
|
39
|
-
testID?: string;
|
|
40
|
-
/**
|
|
41
|
-
* Variant of the component.
|
|
42
|
-
*/
|
|
43
|
-
variant?: 'card' | 'full-width';
|
|
44
|
-
}
|
|
45
|
-
declare const _default: (({ children, state, onStateChange, leftActions, leftActionsWidth, rightActions, rightActionsWidth, variant, ...swipeableProps }: SwipeableProps) => React.JSX.Element) & {
|
|
46
|
-
Action: ({ intent, onPress, style, children, testID, }: import("./SwipeableAction").SwipeableActionProps) => React.JSX.Element;
|
|
47
|
-
Content: React.ForwardRefExoticComponent<Omit<import("react-native-gesture-handler").RectButtonProps, "innerRef"> & React.RefAttributes<any>>;
|
|
48
|
-
};
|
|
49
|
-
export default _default;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { ReactElement } from 'react';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { LayoutChangeEvent } from 'react-native';
|
|
4
|
-
import type { BadgeConfigType, OptionType } from '.';
|
|
5
|
-
export declare const OptionContent: ({ content, badge, }: {
|
|
6
|
-
content: ReactElement;
|
|
7
|
-
badge?: {
|
|
8
|
-
type: "status";
|
|
9
|
-
} | undefined;
|
|
10
|
-
}) => React.JSX.Element;
|
|
11
|
-
declare const Option: <T>({ text, icon, badge, selected, onLayout, index, }: Pick<OptionType<T>, "text" | "icon" | "badge"> & {
|
|
12
|
-
selected: boolean;
|
|
13
|
-
onLayout?: ((e: LayoutChangeEvent) => void) | undefined;
|
|
14
|
-
index?: number | undefined;
|
|
15
|
-
}) => ReactElement;
|
|
16
|
-
export default Option;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { View, Animated } from 'react-native';
|
|
2
|
-
export declare const StyledWrapper: 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 declare const StyledTextWrapper: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
9
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
10
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
11
|
-
}, {}, {}>;
|
|
12
|
-
export declare const StyledIconWrapper: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
13
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
14
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
15
|
-
}, {}, {}>;
|
|
16
|
-
export declare const StyledKnot: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
17
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
18
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
19
|
-
}, {}, {}>;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { ReactElement } from 'react';
|
|
2
|
-
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
-
import type { IconName } from '../../Icon';
|
|
4
|
-
declare type StatusBadgeType = {
|
|
5
|
-
type: 'status';
|
|
6
|
-
};
|
|
7
|
-
export declare type BadgeConfigType = StatusBadgeType;
|
|
8
|
-
export declare type OptionType<T> = {
|
|
9
|
-
value: T;
|
|
10
|
-
text: string;
|
|
11
|
-
icon: IconName;
|
|
12
|
-
badge?: BadgeConfigType;
|
|
13
|
-
};
|
|
14
|
-
export interface SelectorSwitchProps<T> {
|
|
15
|
-
/**
|
|
16
|
-
* Array of exactly TWO options to switch between.
|
|
17
|
-
*/
|
|
18
|
-
options: [OptionType<T>, OptionType<T>];
|
|
19
|
-
/**
|
|
20
|
-
* Current selected value.
|
|
21
|
-
*/
|
|
22
|
-
value: T;
|
|
23
|
-
/**
|
|
24
|
-
* Callback called when an option is pressed.
|
|
25
|
-
*/
|
|
26
|
-
onPress?: (value: T) => void;
|
|
27
|
-
/**
|
|
28
|
-
* Additional style.
|
|
29
|
-
*/
|
|
30
|
-
style?: StyleProp<ViewStyle>;
|
|
31
|
-
/**
|
|
32
|
-
* Testing id of the component.
|
|
33
|
-
*/
|
|
34
|
-
testID?: string;
|
|
35
|
-
}
|
|
36
|
-
declare const SelectorSwitch: <T>({ options, value, onPress, style, testID, }: SelectorSwitchProps<T>) => ReactElement;
|
|
37
|
-
export default SelectorSwitch;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Animated, View } from 'react-native';
|
|
2
|
-
export declare type Variant = 'checked' | 'unchecked' | 'disabled-checked' | 'disabled-unchecked';
|
|
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
|
-
themeVariant: Variant;
|
|
8
|
-
}, {}, {
|
|
9
|
-
ref?: import("react").Ref<View> | undefined;
|
|
10
|
-
}>;
|
|
11
|
-
declare const StyledKnot: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
12
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
13
|
-
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
14
|
-
}, {}, {}>;
|
|
15
|
-
export { StyledWrapper, StyledKnot };
|