@hero-design/rn 8.82.0-alpha.0 → 8.82.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +7 -0
- package/CHANGELOG.md +11 -1
- package/assets/fonts/Saiga-Light.otf +0 -0
- package/assets/fonts/Saiga-Medium.otf +0 -0
- package/assets/fonts/Saiga-Regular.otf +0 -0
- 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/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +11 -11
- package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
- package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +8 -8
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
- package/src/components/Icon/IconList.ts +14 -0
- package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +5 -5
- package/src/components/Typography/Body/__tests__/__snapshots__/StyledBody.tsx.snap +4 -4
- package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
- package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +1 -1
- package/src/components/Typography/Title/__tests__/__snapshots__/StyledTitle.tsx.snap +6 -6
- package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +21 -21
- package/src/theme/global/scale.ts +1 -1
- package/src/theme/global/typography.ts +2 -2
- package/stats/8.82.0/rn-stats.html +4842 -0
- package/stats/8.82.1/rn-stats.html +4844 -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
- package/assets/fonts/RebondGrotesque-Light.otf +0 -0
- package/assets/fonts/RebondGrotesque-SemiBold.otf +0 -0
- package/assets/fonts/RebondGrotesque.otf +0 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { View } from 'react-native';
|
|
2
|
+
declare const BottomNavigationTab: 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
|
+
themeVisibility?: boolean | undefined;
|
|
7
|
+
}, {}, {
|
|
8
|
+
ref?: import("react").Ref<View> | undefined;
|
|
9
|
+
}>;
|
|
10
|
+
declare const BottomNavigationContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
11
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
13
|
+
}, {}, {
|
|
14
|
+
ref?: import("react").Ref<View> | undefined;
|
|
15
|
+
}>;
|
|
16
|
+
declare const ContentWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
17
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
18
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
19
|
+
}, {}, {
|
|
20
|
+
ref?: import("react").Ref<View> | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
declare const BottomBarWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
23
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
24
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
25
|
+
} & {
|
|
26
|
+
themeInsets: {
|
|
27
|
+
top: number;
|
|
28
|
+
right: number;
|
|
29
|
+
bottom: number;
|
|
30
|
+
left: number;
|
|
31
|
+
};
|
|
32
|
+
}, {}, {
|
|
33
|
+
ref?: import("react").Ref<View> | undefined;
|
|
34
|
+
}>;
|
|
35
|
+
declare const BottomBar: 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 BottomBarItem: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
42
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
43
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
44
|
+
}, {}, {
|
|
45
|
+
ref?: import("react").Ref<View> | undefined;
|
|
46
|
+
}>;
|
|
47
|
+
declare const StyledBottomBarText: import("@emotion/native").StyledComponent<import("../Typography/Caption").CaptionProps & {
|
|
48
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
49
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
50
|
+
}, {}, {}>;
|
|
51
|
+
export { BottomBar, BottomBarItem, BottomNavigationTab, BottomNavigationContainer, BottomBarWrapper, ContentWrapper, StyledBottomBarText, };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { StyleProp, ViewStyle, ViewProps } from 'react-native';
|
|
3
|
+
import type { IconName } from '../Icon';
|
|
4
|
+
export declare type BottomNavigationTabType = {
|
|
5
|
+
key: string;
|
|
6
|
+
title?: string;
|
|
7
|
+
icon: IconName;
|
|
8
|
+
component: ReactNode;
|
|
9
|
+
testID?: string;
|
|
10
|
+
};
|
|
11
|
+
interface BottomNavigationProps extends ViewProps {
|
|
12
|
+
/**
|
|
13
|
+
* Callback which is called on tab press, receiving key of upcoming active Tab.
|
|
14
|
+
*/
|
|
15
|
+
onTabPress: (key: string) => void;
|
|
16
|
+
/**
|
|
17
|
+
* Whether inactive tabs should be removed and unmounted in React.
|
|
18
|
+
* Defaults to `false`.
|
|
19
|
+
*/
|
|
20
|
+
renderActiveTabOnly?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Current selected tab key.
|
|
23
|
+
*/
|
|
24
|
+
selectedTabKey: string;
|
|
25
|
+
/**
|
|
26
|
+
* List of Tabs to be rendered. Each Tab must have an unique key.
|
|
27
|
+
*/
|
|
28
|
+
tabs: {
|
|
29
|
+
key: string;
|
|
30
|
+
title?: string;
|
|
31
|
+
icon: IconName;
|
|
32
|
+
component: ReactNode;
|
|
33
|
+
testID?: string;
|
|
34
|
+
}[];
|
|
35
|
+
/**
|
|
36
|
+
* Additional style.
|
|
37
|
+
*/
|
|
38
|
+
style?: StyleProp<ViewStyle>;
|
|
39
|
+
/**
|
|
40
|
+
* Testing id of the component.
|
|
41
|
+
*/
|
|
42
|
+
testID?: string;
|
|
43
|
+
}
|
|
44
|
+
declare const BottomNavigation: ({ onTabPress, renderActiveTabOnly, selectedTabKey, tabs, ...nativeProps }: BottomNavigationProps) => JSX.Element;
|
|
45
|
+
export default BottomNavigation;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
declare const Header: ({ content, showDivider, onRequestClose, showCloseButton, variant, }: {
|
|
4
|
+
content: string | ReactElement;
|
|
5
|
+
showDivider: boolean;
|
|
6
|
+
onRequestClose?: (() => void) | undefined;
|
|
7
|
+
showCloseButton: boolean;
|
|
8
|
+
variant?: "fixed" | "floating" | undefined;
|
|
9
|
+
}) => React.JSX.Element;
|
|
10
|
+
export default Header;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { ViewProps } from 'react-native';
|
|
2
|
+
import { Animated, KeyboardAvoidingView, KeyboardAvoidingViewProps, SafeAreaView, TouchableOpacity, View } from 'react-native';
|
|
3
|
+
declare const StyledWrapper: 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 StyledKeyboardAvoidingView: import("@emotion/native").StyledComponent<KeyboardAvoidingViewProps & {
|
|
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<KeyboardAvoidingView> | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
declare const StyledFloatingWrapper: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<SafeAreaView>> & {
|
|
16
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
17
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
18
|
+
}, {}, {}>;
|
|
19
|
+
declare const StyledFloatingBottomSheet: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & 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 StyledBottomSheet: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<SafeAreaView>> & {
|
|
24
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
25
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
26
|
+
}, {}, {}>;
|
|
27
|
+
declare const StyledBackdrop: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").PressableProps & import("react").RefAttributes<View>> & {
|
|
28
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
29
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
30
|
+
}, {}, {}>;
|
|
31
|
+
declare const StyledHeaderWrapper: import("@emotion/native").StyledComponent<ViewProps & {
|
|
32
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
33
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
34
|
+
}, {}, {
|
|
35
|
+
ref?: import("react").Ref<View> | undefined;
|
|
36
|
+
}>;
|
|
37
|
+
declare const StyledHeader: import("@emotion/native").StyledComponent<ViewProps & {
|
|
38
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
39
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
40
|
+
}, {}, {
|
|
41
|
+
ref?: import("react").Ref<View> | undefined;
|
|
42
|
+
}>;
|
|
43
|
+
declare const StyledFooter: import("@emotion/native").StyledComponent<ViewProps & {
|
|
44
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
45
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
46
|
+
}, {}, {
|
|
47
|
+
ref?: import("react").Ref<View> | undefined;
|
|
48
|
+
}>;
|
|
49
|
+
declare const StyledIconWrapper: import("@emotion/native").StyledComponent<ViewProps & {
|
|
50
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
51
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
52
|
+
}, {}, {
|
|
53
|
+
ref?: import("react").Ref<View> | undefined;
|
|
54
|
+
}>;
|
|
55
|
+
declare const StyledFloatingHeaderWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
|
|
56
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
57
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
58
|
+
}, {}, {
|
|
59
|
+
ref?: import("react").Ref<TouchableOpacity> | undefined;
|
|
60
|
+
}>;
|
|
61
|
+
export { StyledBackdrop, StyledBottomSheet, StyledFloatingBottomSheet, StyledFloatingHeaderWrapper, StyledFloatingWrapper, StyledFooter, StyledHeader, StyledHeaderWrapper, StyledIconWrapper, StyledKeyboardAvoidingView, StyledWrapper, };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import { KeyboardAvoidingViewProps } from 'react-native';
|
|
4
|
+
export interface BottomSheetProps {
|
|
5
|
+
/**
|
|
6
|
+
* Bottom sheet open state.
|
|
7
|
+
*/
|
|
8
|
+
open: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Bottom sheet's header.
|
|
11
|
+
*/
|
|
12
|
+
header?: string | ReactElement;
|
|
13
|
+
/**
|
|
14
|
+
* Bottom sheet's footer.
|
|
15
|
+
*/
|
|
16
|
+
footer?: ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* Bottom sheet's content.
|
|
19
|
+
*/
|
|
20
|
+
children?: ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* Callback is called when the Bottom Sheet finishes running animation.
|
|
23
|
+
*/
|
|
24
|
+
onAnimationEnd?: () => void;
|
|
25
|
+
/**
|
|
26
|
+
* Callback is called when the Bottom Sheet is opened.
|
|
27
|
+
*/
|
|
28
|
+
onOpen?: () => void;
|
|
29
|
+
/**
|
|
30
|
+
* Callback is called when the user taps the back button on Android or when the bottom sheet
|
|
31
|
+
* is being dismiss by interacting outside of the bottom sheet.
|
|
32
|
+
*/
|
|
33
|
+
onRequestClose?: () => void;
|
|
34
|
+
/**
|
|
35
|
+
* Callback that is called once the bottom sheet has been dismissed.
|
|
36
|
+
*/
|
|
37
|
+
onDismiss?: () => void;
|
|
38
|
+
/**
|
|
39
|
+
* Displays an X button on bottom sheet header that will invoke onRequestClose callback on press.
|
|
40
|
+
*/
|
|
41
|
+
showCloseButton?: boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Enable the bottom sheet's backdrop.
|
|
44
|
+
*/
|
|
45
|
+
hasBackdrop?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Displays dividers between header, footer and body.
|
|
48
|
+
*/
|
|
49
|
+
showDivider?: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Additional style.
|
|
52
|
+
*/
|
|
53
|
+
style?: StyleProp<ViewStyle>;
|
|
54
|
+
/**
|
|
55
|
+
* Testing id of the component.
|
|
56
|
+
*/
|
|
57
|
+
testID?: string;
|
|
58
|
+
/**
|
|
59
|
+
* keyboardAvoidingView's props
|
|
60
|
+
* */
|
|
61
|
+
keyboardAvoidingViewProps?: KeyboardAvoidingViewProps;
|
|
62
|
+
/**
|
|
63
|
+
* Supported orientations for the BottomSheet modal, iOS only.
|
|
64
|
+
*/
|
|
65
|
+
supportedOrientations?: ('portrait' | 'landscape')[];
|
|
66
|
+
/**
|
|
67
|
+
* Variant of the bottom sheet.
|
|
68
|
+
*/
|
|
69
|
+
variant?: 'fixed' | 'floating';
|
|
70
|
+
}
|
|
71
|
+
declare const _default: (({ open, header, footer, children, onAnimationEnd, onOpen, onRequestClose, onDismiss, showCloseButton, hasBackdrop, showDivider, style, testID, keyboardAvoidingViewProps, supportedOrientations, variant, }: BottomSheetProps) => JSX.Element) & {
|
|
72
|
+
ScrollView: ({ scrollEventThrottle, ...props }: import("react-native").ScrollViewProps) => JSX.Element;
|
|
73
|
+
};
|
|
74
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Theme } from '@emotion/react';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
import { FlexStyleProps, StyleProps } from './types';
|
|
4
|
+
export declare const getThemeValue: (theme: Theme, key: keyof StyleProps, props: StyleProps) => {
|
|
5
|
+
[x: string]: string | undefined;
|
|
6
|
+
} | {
|
|
7
|
+
[x: string]: number;
|
|
8
|
+
} | undefined;
|
|
9
|
+
declare const StyledBox: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
10
|
+
theme?: Theme | undefined;
|
|
11
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
12
|
+
} & StyleProps & FlexStyleProps, {}, {
|
|
13
|
+
ref?: import("react").Ref<View> | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
export { StyledBox };
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
declare const config: {
|
|
2
|
+
readonly borderWidth: {
|
|
3
|
+
readonly property: "borderWidth";
|
|
4
|
+
readonly scale: "borderWidths";
|
|
5
|
+
};
|
|
6
|
+
readonly borderBottomWidth: {
|
|
7
|
+
readonly property: "borderBottomWidth";
|
|
8
|
+
readonly scale: "borderWidths";
|
|
9
|
+
};
|
|
10
|
+
readonly borderTopWidth: {
|
|
11
|
+
readonly property: "borderTopWidth";
|
|
12
|
+
readonly scale: "borderWidths";
|
|
13
|
+
};
|
|
14
|
+
readonly borderLeftWidth: {
|
|
15
|
+
readonly property: "borderLeftWidth";
|
|
16
|
+
readonly scale: "borderWidths";
|
|
17
|
+
};
|
|
18
|
+
readonly borderRightWidth: {
|
|
19
|
+
readonly property: "borderRightWidth";
|
|
20
|
+
readonly scale: "borderWidths";
|
|
21
|
+
};
|
|
22
|
+
readonly borderBottomEndRadius: {
|
|
23
|
+
readonly property: "borderBottomEndRadius";
|
|
24
|
+
readonly scale: "radii";
|
|
25
|
+
};
|
|
26
|
+
readonly borderBottomLeftRadius: {
|
|
27
|
+
readonly property: "borderBottomLeftRadius";
|
|
28
|
+
readonly scale: "radii";
|
|
29
|
+
};
|
|
30
|
+
readonly borderBottomRightRadius: {
|
|
31
|
+
readonly property: "borderBottomRightRadius";
|
|
32
|
+
readonly scale: "radii";
|
|
33
|
+
};
|
|
34
|
+
readonly borderBottomStartRadius: {
|
|
35
|
+
readonly property: "borderBottomStartRadius";
|
|
36
|
+
readonly scale: "radii";
|
|
37
|
+
};
|
|
38
|
+
readonly borderTopEndRadius: {
|
|
39
|
+
readonly property: "borderTopEndRadius";
|
|
40
|
+
readonly scale: "radii";
|
|
41
|
+
};
|
|
42
|
+
readonly borderTopLeftRadius: {
|
|
43
|
+
readonly property: "borderTopLeftRadius";
|
|
44
|
+
readonly scale: "radii";
|
|
45
|
+
};
|
|
46
|
+
readonly borderTopRightRadius: {
|
|
47
|
+
readonly property: "borderTopRightRadius";
|
|
48
|
+
readonly scale: "radii";
|
|
49
|
+
};
|
|
50
|
+
readonly borderTopStartRadius: {
|
|
51
|
+
readonly property: "borderTopStartRadius";
|
|
52
|
+
readonly scale: "radii";
|
|
53
|
+
};
|
|
54
|
+
readonly borderRadius: {
|
|
55
|
+
readonly property: "borderRadius";
|
|
56
|
+
readonly scale: "radii";
|
|
57
|
+
};
|
|
58
|
+
readonly margin: {
|
|
59
|
+
readonly property: "margin";
|
|
60
|
+
readonly scale: "space";
|
|
61
|
+
};
|
|
62
|
+
readonly marginBottom: {
|
|
63
|
+
readonly property: "marginBottom";
|
|
64
|
+
readonly scale: "space";
|
|
65
|
+
};
|
|
66
|
+
readonly marginEnd: {
|
|
67
|
+
readonly property: "marginEnd";
|
|
68
|
+
readonly scale: "space";
|
|
69
|
+
};
|
|
70
|
+
readonly marginHorizontal: {
|
|
71
|
+
readonly property: "marginHorizontal";
|
|
72
|
+
readonly scale: "space";
|
|
73
|
+
};
|
|
74
|
+
readonly marginLeft: {
|
|
75
|
+
readonly property: "marginLeft";
|
|
76
|
+
readonly scale: "space";
|
|
77
|
+
};
|
|
78
|
+
readonly marginRight: {
|
|
79
|
+
readonly property: "marginRight";
|
|
80
|
+
readonly scale: "space";
|
|
81
|
+
};
|
|
82
|
+
readonly marginStart: {
|
|
83
|
+
readonly property: "marginStart";
|
|
84
|
+
readonly scale: "space";
|
|
85
|
+
};
|
|
86
|
+
readonly marginTop: {
|
|
87
|
+
readonly property: "marginTop";
|
|
88
|
+
readonly scale: "space";
|
|
89
|
+
};
|
|
90
|
+
readonly marginVertical: {
|
|
91
|
+
readonly property: "marginVertical";
|
|
92
|
+
readonly scale: "space";
|
|
93
|
+
};
|
|
94
|
+
readonly padding: {
|
|
95
|
+
readonly property: "padding";
|
|
96
|
+
readonly scale: "space";
|
|
97
|
+
};
|
|
98
|
+
readonly paddingBottom: {
|
|
99
|
+
readonly property: "paddingBottom";
|
|
100
|
+
readonly scale: "space";
|
|
101
|
+
};
|
|
102
|
+
readonly paddingEnd: {
|
|
103
|
+
readonly property: "paddingEnd";
|
|
104
|
+
readonly scale: "space";
|
|
105
|
+
};
|
|
106
|
+
readonly paddingHorizontal: {
|
|
107
|
+
readonly property: "paddingHorizontal";
|
|
108
|
+
readonly scale: "space";
|
|
109
|
+
};
|
|
110
|
+
readonly paddingLeft: {
|
|
111
|
+
readonly property: "paddingLeft";
|
|
112
|
+
readonly scale: "space";
|
|
113
|
+
};
|
|
114
|
+
readonly paddingRight: {
|
|
115
|
+
readonly property: "paddingRight";
|
|
116
|
+
readonly scale: "space";
|
|
117
|
+
};
|
|
118
|
+
readonly paddingStart: {
|
|
119
|
+
readonly property: "paddingStart";
|
|
120
|
+
readonly scale: "space";
|
|
121
|
+
};
|
|
122
|
+
readonly paddingTop: {
|
|
123
|
+
readonly property: "paddingTop";
|
|
124
|
+
readonly scale: "space";
|
|
125
|
+
};
|
|
126
|
+
readonly paddingVertical: {
|
|
127
|
+
readonly property: "paddingVertical";
|
|
128
|
+
readonly scale: "space";
|
|
129
|
+
};
|
|
130
|
+
readonly backgroundColor: {
|
|
131
|
+
readonly property: "backgroundColor";
|
|
132
|
+
readonly scale: "colors";
|
|
133
|
+
};
|
|
134
|
+
readonly bgColor: {
|
|
135
|
+
readonly property: "backgroundColor";
|
|
136
|
+
readonly scale: "colors";
|
|
137
|
+
};
|
|
138
|
+
readonly borderColor: {
|
|
139
|
+
readonly property: "borderColor";
|
|
140
|
+
readonly scale: "colors";
|
|
141
|
+
};
|
|
142
|
+
readonly borderTopColor: {
|
|
143
|
+
readonly property: "borderTopColor";
|
|
144
|
+
readonly scale: "colors";
|
|
145
|
+
};
|
|
146
|
+
readonly borderBottomColor: {
|
|
147
|
+
readonly property: "borderBottomColor";
|
|
148
|
+
readonly scale: "colors";
|
|
149
|
+
};
|
|
150
|
+
readonly borderStartColor: {
|
|
151
|
+
readonly property: "borderStartColor";
|
|
152
|
+
readonly scale: "colors";
|
|
153
|
+
};
|
|
154
|
+
readonly borderEndColor: {
|
|
155
|
+
readonly property: "borderEndColor";
|
|
156
|
+
readonly scale: "colors";
|
|
157
|
+
};
|
|
158
|
+
readonly borderLeftColor: {
|
|
159
|
+
readonly property: "borderLeftColor";
|
|
160
|
+
readonly scale: "colors";
|
|
161
|
+
};
|
|
162
|
+
readonly borderRightColor: {
|
|
163
|
+
readonly property: "borderRightColor";
|
|
164
|
+
readonly scale: "colors";
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
export declare const flexPropsKey: readonly ["alignContent", "alignItems", "alignSelf", "display", "flex", "flexBasis", "flexDirection", "flexGrow", "flexShrink", "flexWrap", "justifyContent"];
|
|
168
|
+
export declare type ConfigType = typeof config;
|
|
169
|
+
export declare type FlexPropsKeyType = typeof flexPropsKey[number];
|
|
170
|
+
export default config;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { BoxViewProps, FlexStyleProps, StyleProps } from './types';
|
|
3
|
+
export interface BoxProps extends StyleProps, FlexStyleProps, BoxViewProps {
|
|
4
|
+
}
|
|
5
|
+
declare const Box: ({ children, style, testID, ...otherProps }: BoxProps) => React.JSX.Element;
|
|
6
|
+
export default Box;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { StyleProp, ViewStyle, ViewProps } from 'react-native';
|
|
2
|
+
import { SystemPalette } from '../../theme/global';
|
|
3
|
+
import { BorderWidths, Radii } from '../../theme/global/borders';
|
|
4
|
+
import { Space } from '../../theme/global/space';
|
|
5
|
+
import { ConfigType, FlexPropsKeyType } from './config';
|
|
6
|
+
export interface ThemeScale {
|
|
7
|
+
colors: keyof SystemPalette;
|
|
8
|
+
space: keyof Space;
|
|
9
|
+
radii: keyof Radii;
|
|
10
|
+
borderWidths: keyof BorderWidths;
|
|
11
|
+
}
|
|
12
|
+
declare type ConfigKeyType = keyof ConfigType;
|
|
13
|
+
export declare type StyleProps = {
|
|
14
|
+
[key in ConfigKeyType]?: ThemeScale[ConfigType[key]['scale']];
|
|
15
|
+
};
|
|
16
|
+
export declare type FlexStyleProps = Pick<Omit<ViewStyle, keyof StyleProps>, FlexPropsKeyType>;
|
|
17
|
+
export interface BoxViewProps extends ViewProps {
|
|
18
|
+
/**
|
|
19
|
+
* Box's content.
|
|
20
|
+
*/
|
|
21
|
+
children?: React.ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* Addtional styles.
|
|
24
|
+
*/
|
|
25
|
+
style?: StyleProp<ViewStyle>;
|
|
26
|
+
/**
|
|
27
|
+
* Testing id of the component.
|
|
28
|
+
*/
|
|
29
|
+
testID?: string;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { ReactChild, ReactNode } from 'react';
|
|
2
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import type { IconName } from '../Icon';
|
|
4
|
+
import type { Intent, ThemeVariant } from './StyledButton';
|
|
5
|
+
export interface ButtonProps {
|
|
6
|
+
/**
|
|
7
|
+
* Helps users understand what will happen when they perform an action on the accessibility element when that result is not clear from the accessibility label.
|
|
8
|
+
*/
|
|
9
|
+
accessibilityHint?: string;
|
|
10
|
+
/**
|
|
11
|
+
* A succinct label in a localized string that identifies the accessibility element
|
|
12
|
+
*/
|
|
13
|
+
accessibilityLabel?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Disable state of button.
|
|
16
|
+
*/
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Places an icon within the button, before the button's text
|
|
20
|
+
*/
|
|
21
|
+
icon?: IconName | ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* Visual intent color to apply to button. It is required for `filled`, `outlined` and `text` variants.
|
|
24
|
+
*/
|
|
25
|
+
intent?: 'primary' | 'secondary' | 'danger';
|
|
26
|
+
/**
|
|
27
|
+
* Loading state of button.
|
|
28
|
+
*/
|
|
29
|
+
loading?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Set the handler to handle press event.
|
|
32
|
+
*/
|
|
33
|
+
onPress: () => void;
|
|
34
|
+
/**
|
|
35
|
+
* Places an icon within the button, after the button's text
|
|
36
|
+
*/
|
|
37
|
+
rightIcon?: IconName | ReactNode;
|
|
38
|
+
/**
|
|
39
|
+
* Additional style.
|
|
40
|
+
*/
|
|
41
|
+
style?: StyleProp<ViewStyle>;
|
|
42
|
+
/**
|
|
43
|
+
* Testing id of the component.
|
|
44
|
+
*/
|
|
45
|
+
testID?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Button label.
|
|
48
|
+
*/
|
|
49
|
+
text: ReactChild;
|
|
50
|
+
/**
|
|
51
|
+
* Button type.
|
|
52
|
+
*/
|
|
53
|
+
variant?: 'filled' | 'outlined' | 'text' | 'inline-text';
|
|
54
|
+
}
|
|
55
|
+
export declare const getThemeVariant: (variant: 'filled' | 'outlined' | 'text', intent: Intent) => ThemeVariant;
|
|
56
|
+
declare const Button: ({ accessibilityHint, accessibilityLabel, disabled, icon, intent, loading, onPress, rightIcon, style, testID, text, variant, }: ButtonProps) => JSX.Element;
|
|
57
|
+
export default Button;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { StyleProp, ViewStyle, TouchableOpacityProps } from 'react-native';
|
|
3
|
+
import type { IconProps, IconName } from '../Icon';
|
|
4
|
+
export interface IconButtonProps {
|
|
5
|
+
/**
|
|
6
|
+
* Set how far you can touch from the button.
|
|
7
|
+
*/
|
|
8
|
+
hitSlop?: TouchableOpacityProps['hitSlop'];
|
|
9
|
+
/**
|
|
10
|
+
* Name of the Icon.
|
|
11
|
+
*/
|
|
12
|
+
icon: IconName;
|
|
13
|
+
/**
|
|
14
|
+
* Disable state of button.
|
|
15
|
+
*/
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Intent of the Icon.
|
|
19
|
+
*/
|
|
20
|
+
intent?: IconProps['intent'];
|
|
21
|
+
/**
|
|
22
|
+
* Set the handler to handle press event.
|
|
23
|
+
*/
|
|
24
|
+
onPress?: () => void;
|
|
25
|
+
/**
|
|
26
|
+
* Size of the Icon.
|
|
27
|
+
*/
|
|
28
|
+
size?: IconProps['size'];
|
|
29
|
+
/**
|
|
30
|
+
* Additional style.
|
|
31
|
+
*/
|
|
32
|
+
style?: StyleProp<ViewStyle>;
|
|
33
|
+
/**
|
|
34
|
+
* Testing id of component.
|
|
35
|
+
*/
|
|
36
|
+
testID?: string;
|
|
37
|
+
}
|
|
38
|
+
declare const IconButton: ({ hitSlop, onPress, icon, disabled, testID, style, size, intent, }: IconButtonProps) => React.JSX.Element;
|
|
39
|
+
export default IconButton;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Theme } from '@emotion/react';
|
|
2
|
+
import type { ViewProps } from 'react-native';
|
|
3
|
+
import { View } from 'react-native';
|
|
4
|
+
declare type ThemeVariant = 'basic-transparent' | 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger' | 'text-primary' | 'text-secondary' | 'text-danger';
|
|
5
|
+
declare const StyledLoadingIndicatorWrapper: import("@emotion/native").StyledComponent<ViewProps & {
|
|
6
|
+
theme?: Theme | undefined;
|
|
7
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
8
|
+
}, {}, {
|
|
9
|
+
ref?: import("react").Ref<View> | undefined;
|
|
10
|
+
}>;
|
|
11
|
+
declare const StyledLoadingDot: import("@emotion/native").StyledComponent<ViewProps & {
|
|
12
|
+
theme?: Theme | undefined;
|
|
13
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
14
|
+
} & {
|
|
15
|
+
size?: number | undefined;
|
|
16
|
+
themeVariant: ThemeVariant;
|
|
17
|
+
}, {}, {
|
|
18
|
+
ref?: import("react").Ref<View> | undefined;
|
|
19
|
+
}>;
|
|
20
|
+
export { StyledLoadingDot, StyledLoadingIndicatorWrapper };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { StyleProp, ViewStyle, ViewProps } from 'react-native';
|
|
3
|
+
declare type ThemeVariant = 'basic-transparent' | 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger' | 'text-primary' | 'text-secondary' | 'text-danger';
|
|
4
|
+
interface LoadingIndicatorProps extends ViewProps {
|
|
5
|
+
/**
|
|
6
|
+
* Size of the loading dot.
|
|
7
|
+
*/
|
|
8
|
+
count?: number;
|
|
9
|
+
/**
|
|
10
|
+
* Size of the loading dot.
|
|
11
|
+
*/
|
|
12
|
+
size?: number;
|
|
13
|
+
/**
|
|
14
|
+
* Additional style.
|
|
15
|
+
*/
|
|
16
|
+
style?: StyleProp<ViewStyle>;
|
|
17
|
+
/**
|
|
18
|
+
* Testing id of the component.
|
|
19
|
+
*/
|
|
20
|
+
testID?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Testing id of the component.
|
|
23
|
+
*/
|
|
24
|
+
themeVariant: ThemeVariant;
|
|
25
|
+
}
|
|
26
|
+
declare const LoadingIndicator: ({ count, size, testID, themeVariant, ...nativeProps }: LoadingIndicatorProps) => React.JSX.Element;
|
|
27
|
+
export default LoadingIndicator;
|