@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,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ReactElement } from 'react';
|
|
3
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
4
|
+
import type { Variant } from './StyledAccordion';
|
|
5
|
+
export declare type AccordionItemProps = {
|
|
6
|
+
header: string | ReactElement;
|
|
7
|
+
content: ReactElement;
|
|
8
|
+
open?: boolean;
|
|
9
|
+
onPress?: () => void;
|
|
10
|
+
variant?: Variant;
|
|
11
|
+
style?: StyleProp<ViewStyle>;
|
|
12
|
+
testID?: string;
|
|
13
|
+
};
|
|
14
|
+
declare const AccordionItem: ({ header, content, open, onPress, variant, style, testID, }: AccordionItemProps) => React.JSX.Element;
|
|
15
|
+
export default AccordionItem;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { TouchableOpacity, View } from 'react-native';
|
|
2
|
+
export declare type Variant = 'default' | 'card';
|
|
3
|
+
export declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
6
|
+
}, {}, {
|
|
7
|
+
ref?: import("react").Ref<View> | undefined;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const StyledItemWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
10
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
12
|
+
} & {
|
|
13
|
+
themeVariant: Variant;
|
|
14
|
+
}, {}, {
|
|
15
|
+
ref?: import("react").Ref<View> | undefined;
|
|
16
|
+
}>;
|
|
17
|
+
export declare const StyledHeaderWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
|
|
18
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
19
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
20
|
+
}, {}, {
|
|
21
|
+
ref?: import("react").Ref<TouchableOpacity> | undefined;
|
|
22
|
+
}>;
|
|
23
|
+
export declare const StyledCollapse: import("@emotion/native").StyledComponent<import("../Collapse").CollapseProps & {
|
|
24
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
25
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
26
|
+
}, {}, {}>;
|
|
27
|
+
export declare const Spacer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
28
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
29
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
30
|
+
}, {}, {
|
|
31
|
+
ref?: import("react").Ref<View> | undefined;
|
|
32
|
+
}>;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Key, ReactElement } from 'react';
|
|
3
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
4
|
+
export interface AccordionProps<K extends Key> {
|
|
5
|
+
/**
|
|
6
|
+
* List of accordion items to be rendered. Each item must have an unique key.
|
|
7
|
+
*/
|
|
8
|
+
items: {
|
|
9
|
+
header: string | ReactElement;
|
|
10
|
+
content: ReactElement;
|
|
11
|
+
key: K;
|
|
12
|
+
style?: StyleProp<ViewStyle>;
|
|
13
|
+
testID?: string;
|
|
14
|
+
}[];
|
|
15
|
+
/**
|
|
16
|
+
* Key of the active item.
|
|
17
|
+
* When activeItemKey and onItemPress is passed, the component is fully controlled.
|
|
18
|
+
* Otherwise, it would be uncontrolled.
|
|
19
|
+
*/
|
|
20
|
+
activeItemKey?: K;
|
|
21
|
+
/**
|
|
22
|
+
* Callback invoked when an item is pressed.
|
|
23
|
+
*/
|
|
24
|
+
onItemPress?: (key: K) => void;
|
|
25
|
+
/**
|
|
26
|
+
* Item type.
|
|
27
|
+
*/
|
|
28
|
+
variant?: 'default' | 'card';
|
|
29
|
+
/**
|
|
30
|
+
* Additional style.
|
|
31
|
+
*/
|
|
32
|
+
style?: StyleProp<ViewStyle>;
|
|
33
|
+
/**
|
|
34
|
+
* Testing id of the component.
|
|
35
|
+
*/
|
|
36
|
+
testID?: string;
|
|
37
|
+
}
|
|
38
|
+
declare const Accordion: <K extends React.Key>({ items, activeItemKey, onItemPress, variant, style, testID, }: AccordionProps<K>) => React.JSX.Element;
|
|
39
|
+
export default Accordion;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { TouchableOpacity, View } from 'react-native';
|
|
2
|
+
import type { ViewProps } from 'react-native';
|
|
3
|
+
import { TextProps } from '../Typography/Text';
|
|
4
|
+
import { IconProps } from '../Icon';
|
|
5
|
+
declare type ThemeIntent = 'success' | 'info' | 'warning' | 'error' | 'notification';
|
|
6
|
+
declare const Container: import("@emotion/native").StyledComponent<ViewProps & {
|
|
7
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
9
|
+
} & {
|
|
10
|
+
themeVariant: 'rounded' | 'unrounded';
|
|
11
|
+
themeIntent: ThemeIntent;
|
|
12
|
+
}, {}, {
|
|
13
|
+
ref?: import("react").Ref<View> | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
declare const IconContainer: 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
|
+
ref?: import("react").Ref<View> | undefined;
|
|
20
|
+
}>;
|
|
21
|
+
declare const StyledIcon: import("@emotion/native").StyledComponent<IconProps & {
|
|
22
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
23
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
24
|
+
} & {
|
|
25
|
+
themeIntent: ThemeIntent;
|
|
26
|
+
}, {}, {}>;
|
|
27
|
+
declare const TextContainer: import("@emotion/native").StyledComponent<ViewProps & {
|
|
28
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
29
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
30
|
+
}, {}, {
|
|
31
|
+
ref?: import("react").Ref<View> | undefined;
|
|
32
|
+
}>;
|
|
33
|
+
declare const StyledBody: import("@emotion/native").StyledComponent<import("../Typography/Body").BodyProps & {
|
|
34
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
35
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
36
|
+
} & TextProps & {
|
|
37
|
+
themeIntent: ThemeIntent;
|
|
38
|
+
}, {}, {}>;
|
|
39
|
+
declare const ContentContainer: import("@emotion/native").StyledComponent<ViewProps & {
|
|
40
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
41
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
42
|
+
} & {
|
|
43
|
+
showDivider: boolean;
|
|
44
|
+
}, {}, {
|
|
45
|
+
ref?: import("react").Ref<View> | undefined;
|
|
46
|
+
}>;
|
|
47
|
+
declare const CTAWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
|
|
48
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
49
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
50
|
+
}, {}, {
|
|
51
|
+
ref?: import("react").Ref<TouchableOpacity> | undefined;
|
|
52
|
+
}>;
|
|
53
|
+
export { Container, ContentContainer, TextContainer, IconContainer, CTAWrapper, StyledBody, StyledIcon, };
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
|
+
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import type { IconName } from '../Icon';
|
|
4
|
+
interface BasicAlertProps {
|
|
5
|
+
/**
|
|
6
|
+
* Alert title.
|
|
7
|
+
*/
|
|
8
|
+
title?: string | ReactElement;
|
|
9
|
+
/**
|
|
10
|
+
* Alert content.
|
|
11
|
+
*/
|
|
12
|
+
content: string | ReactElement;
|
|
13
|
+
/**
|
|
14
|
+
* Icon name of the alert.
|
|
15
|
+
* - undefined: use default icon according to Alert intent.
|
|
16
|
+
* - null: no icon at all.
|
|
17
|
+
* - IconName: an icon identifier from hero-design icon list.
|
|
18
|
+
*/
|
|
19
|
+
icon?: null | IconName;
|
|
20
|
+
/**
|
|
21
|
+
* Visual intent color to apply to alert.
|
|
22
|
+
*/
|
|
23
|
+
intent?: 'success' | 'info' | 'warning' | 'error' | 'notification';
|
|
24
|
+
/**
|
|
25
|
+
* Closing callback. When onClose is available, an X button will be rendered on the right side of alert. The callback will be called when user clicks on X button.
|
|
26
|
+
* - undefined: no action button.
|
|
27
|
+
*/
|
|
28
|
+
onClose?: () => void;
|
|
29
|
+
/**
|
|
30
|
+
* Alert variant.
|
|
31
|
+
*/
|
|
32
|
+
variant?: 'unrounded' | 'rounded';
|
|
33
|
+
/**
|
|
34
|
+
* Addtional style.
|
|
35
|
+
*/
|
|
36
|
+
style?: StyleProp<ViewStyle>;
|
|
37
|
+
/**
|
|
38
|
+
* Testing id of the component.
|
|
39
|
+
*/
|
|
40
|
+
testID?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Action label at the right side of the alert.
|
|
43
|
+
* - undefined: a close icon.
|
|
44
|
+
*/
|
|
45
|
+
actionLabel?: string;
|
|
46
|
+
}
|
|
47
|
+
declare type AlertProps = (BasicAlertProps & {
|
|
48
|
+
actionLabel?: undefined;
|
|
49
|
+
}) | (BasicAlertProps & {
|
|
50
|
+
onClose: () => void;
|
|
51
|
+
/**
|
|
52
|
+
* Action label at the right side of the alert.
|
|
53
|
+
* - undefined: a close icon.
|
|
54
|
+
*/
|
|
55
|
+
actionLabel: string;
|
|
56
|
+
});
|
|
57
|
+
declare const Alert: ({ content, icon, title, intent, onClose, variant, style, testID, actionLabel, }: AlertProps) => JSX.Element;
|
|
58
|
+
export default Alert;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Animated } from 'react-native';
|
|
3
|
+
import { ActionGroupProps } from '../FAB/ActionGroup';
|
|
4
|
+
import { FABProps } from '../FAB/FAB';
|
|
5
|
+
interface AnimatedFABProps {
|
|
6
|
+
fabProps: FABProps | ActionGroupProps;
|
|
7
|
+
contentOffsetY: Animated.Value;
|
|
8
|
+
contentHeight: Animated.Value;
|
|
9
|
+
layoutHeight: Animated.Value;
|
|
10
|
+
}
|
|
11
|
+
declare const AnimatedFAB: ({ fabProps, contentOffsetY, contentHeight, layoutHeight, }: AnimatedFABProps) => React.JSX.Element;
|
|
12
|
+
export default AnimatedFAB;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FlatListProps, ScrollViewProps as RnScrollViewProps, SectionListProps } from 'react-native';
|
|
3
|
+
import { ActionGroupProps } from '../FAB/ActionGroup';
|
|
4
|
+
import { FABProps } from '../FAB/FAB';
|
|
5
|
+
export interface AnimatedScrollerProps<T> {
|
|
6
|
+
/**
|
|
7
|
+
* Scroll component, it can be ScrollView, FlatList or SectionList.
|
|
8
|
+
*/
|
|
9
|
+
ScrollComponent: React.ReactElement<RnScrollViewProps | FlatListProps<T> | SectionListProps<T>>;
|
|
10
|
+
/**
|
|
11
|
+
* FAB or FAB.ActionGroup props.
|
|
12
|
+
*/
|
|
13
|
+
fabProps: FABProps | ActionGroupProps;
|
|
14
|
+
}
|
|
15
|
+
declare function AnimatedScroller<T>({ ScrollComponent, fabProps, }: AnimatedScrollerProps<T>): React.JSX.Element;
|
|
16
|
+
export default AnimatedScroller;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FlatListProps } from 'react-native';
|
|
3
|
+
import { FABProps } from '../FAB/FAB';
|
|
4
|
+
import { ActionGroupProps } from '../FAB/ActionGroup';
|
|
5
|
+
export interface FlatListWithFABProps<T> extends FlatListProps<T> {
|
|
6
|
+
/**
|
|
7
|
+
* FAB or FAB.ActionGroup props props.
|
|
8
|
+
*/
|
|
9
|
+
fabProps: FABProps | ActionGroupProps;
|
|
10
|
+
}
|
|
11
|
+
declare function FlatListWithFAB<T>({ fabProps, ...props }: FlatListWithFABProps<T>): React.JSX.Element;
|
|
12
|
+
export default FlatListWithFAB;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ScrollViewProps } from 'react-native';
|
|
3
|
+
import { ActionGroupProps } from '../FAB/ActionGroup';
|
|
4
|
+
import { FABProps } from '../FAB/FAB';
|
|
5
|
+
export interface ScrollViewWithFABProps extends ScrollViewProps {
|
|
6
|
+
/**
|
|
7
|
+
* FAB or FAB.ActionGroup props props.
|
|
8
|
+
*/
|
|
9
|
+
fabProps: FABProps | ActionGroupProps;
|
|
10
|
+
}
|
|
11
|
+
declare const ScrollViewWithFAB: ({ fabProps, ...props }: ScrollViewWithFABProps) => React.JSX.Element;
|
|
12
|
+
export default ScrollViewWithFAB;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SectionListProps } from 'react-native';
|
|
3
|
+
import { ActionGroupProps } from '../FAB/ActionGroup';
|
|
4
|
+
import { FABProps } from '../FAB/FAB';
|
|
5
|
+
export interface SectionListWithFABProps<T> extends SectionListProps<T> {
|
|
6
|
+
/**
|
|
7
|
+
* FAB or FAB.ActionGroup props props.
|
|
8
|
+
*/
|
|
9
|
+
fabProps: FABProps | ActionGroupProps;
|
|
10
|
+
}
|
|
11
|
+
declare function SectionListWithFAB<T>({ fabProps, ...props }: SectionListWithFABProps<T>): React.JSX.Element;
|
|
12
|
+
export default SectionListWithFAB;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { TouchableOpacity, View } from 'react-native';
|
|
2
|
+
declare const StyledContainer: 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 StyledContentContainer: 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
|
+
themeHighlighted: boolean;
|
|
13
|
+
}, {}, {
|
|
14
|
+
ref?: import("react").Ref<View> | undefined;
|
|
15
|
+
}>;
|
|
16
|
+
declare const StyledTextContainer: 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 StyledCTAWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
|
|
23
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
24
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
25
|
+
}, {}, {
|
|
26
|
+
ref?: import("react").Ref<TouchableOpacity> | undefined;
|
|
27
|
+
}>;
|
|
28
|
+
export { StyledContainer, StyledContentContainer, StyledCTAWrapper, StyledTextContainer, };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ReactElement } from 'react';
|
|
3
|
+
import { StyleProp, ViewStyle } from 'react-native';
|
|
4
|
+
import { IconProps } from '../Icon';
|
|
5
|
+
import { ImageProps } from '../Image';
|
|
6
|
+
interface AttachmentProps {
|
|
7
|
+
/**
|
|
8
|
+
* Attachment filename.
|
|
9
|
+
*/
|
|
10
|
+
filename?: string;
|
|
11
|
+
/**
|
|
12
|
+
* Attachment preview element.
|
|
13
|
+
*/
|
|
14
|
+
previewElement: ReactElement<ImageProps | IconProps>;
|
|
15
|
+
/**
|
|
16
|
+
* Removing callback. When onRemove is available, a trash icon will be rendered on the right side. The callback will be called when user clicks on trash icon.
|
|
17
|
+
*/
|
|
18
|
+
onRemove?: () => void;
|
|
19
|
+
/**
|
|
20
|
+
* Downloading callback. When onDownload is available, a download icon will be rendered on the right side. The callback will be called when user clicks on download icon.
|
|
21
|
+
*/
|
|
22
|
+
onDownload?: () => void;
|
|
23
|
+
/**
|
|
24
|
+
* The background of the attachment's content will be highlighted if backgroundHighlighted is true.
|
|
25
|
+
* Default value is false.
|
|
26
|
+
*/
|
|
27
|
+
backgroundHighlighted?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Addtional style.
|
|
30
|
+
*/
|
|
31
|
+
style?: StyleProp<ViewStyle>;
|
|
32
|
+
/**
|
|
33
|
+
* Testing id of the component.
|
|
34
|
+
*/
|
|
35
|
+
testID?: string;
|
|
36
|
+
}
|
|
37
|
+
declare const Attachment: ({ filename, previewElement, onRemove, onDownload, backgroundHighlighted, style, testID, }: AttachmentProps) => React.JSX.Element;
|
|
38
|
+
export default Attachment;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ImageSourcePropType, StyleProp, ViewProps, ViewStyle } from 'react-native';
|
|
3
|
+
export interface AvatarProps extends ViewProps {
|
|
4
|
+
/**
|
|
5
|
+
* Callback function when pressing component.
|
|
6
|
+
*/
|
|
7
|
+
onPress?: () => void;
|
|
8
|
+
/**
|
|
9
|
+
* Image source to be displayed on avatar.
|
|
10
|
+
*/
|
|
11
|
+
source?: ImageSourcePropType;
|
|
12
|
+
/**
|
|
13
|
+
* Renders title in the placeholder.
|
|
14
|
+
*/
|
|
15
|
+
title?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Intent of the Icon.
|
|
18
|
+
*/
|
|
19
|
+
intent?: 'primary' | 'info' | 'danger' | 'success' | 'warning';
|
|
20
|
+
/**
|
|
21
|
+
* Size of the avatar.
|
|
22
|
+
*/
|
|
23
|
+
size?: 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'xxxlarge' | 'xxxxlarge' | 'xxxxxlarge';
|
|
24
|
+
/**
|
|
25
|
+
* Additional style.
|
|
26
|
+
*/
|
|
27
|
+
style?: StyleProp<ViewStyle>;
|
|
28
|
+
/**
|
|
29
|
+
* Testing id of the component.
|
|
30
|
+
*/
|
|
31
|
+
testID?: string;
|
|
32
|
+
}
|
|
33
|
+
declare const Avatar: ({ onPress, source, testID, style, title, size, intent, }: AvatarProps) => React.JSX.Element | null;
|
|
34
|
+
export default Avatar;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { View } from 'react-native';
|
|
2
|
+
import { AvatarProps } from '../Avatar';
|
|
3
|
+
declare type ThemeVariant = 'horizontal' | 'vertical';
|
|
4
|
+
export declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
5
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
6
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
7
|
+
} & {
|
|
8
|
+
themeSize: Required<AvatarProps>['size'];
|
|
9
|
+
themeAvatarCount: number;
|
|
10
|
+
themeVariant: ThemeVariant;
|
|
11
|
+
themeHasSurplus: boolean;
|
|
12
|
+
}, {}, {
|
|
13
|
+
ref?: import("react").Ref<View> | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
export declare const StyledAvatar: import("@emotion/native").StyledComponent<AvatarProps & {
|
|
16
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
17
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
18
|
+
} & {
|
|
19
|
+
themeIndex: number;
|
|
20
|
+
themeVariant: ThemeVariant;
|
|
21
|
+
}, {}, {}>;
|
|
22
|
+
export declare const StyledSurplusContainer: import("@emotion/native").StyledComponent<import("../../Box").BoxProps & {
|
|
23
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
24
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
25
|
+
} & {
|
|
26
|
+
themeIndex: number;
|
|
27
|
+
themeSize: AvatarProps['size'];
|
|
28
|
+
themeVariant: ThemeVariant;
|
|
29
|
+
}, {}, {}>;
|
|
30
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React, { ReactElement, ReactNode } from 'react';
|
|
2
|
+
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import { AvatarProps } from '../Avatar';
|
|
4
|
+
export interface AvatarStackProps extends Pick<AvatarProps, 'size'> {
|
|
5
|
+
/**
|
|
6
|
+
* Avatar elements to be rendered.
|
|
7
|
+
*/
|
|
8
|
+
children: ReactElement<Omit<AvatarProps, 'size' | 'style'>>[];
|
|
9
|
+
/**
|
|
10
|
+
* Max avatars to show.
|
|
11
|
+
*/
|
|
12
|
+
max?: number;
|
|
13
|
+
/**
|
|
14
|
+
* The total number of avatars. Used for calculating the number of extra avatars.
|
|
15
|
+
*/
|
|
16
|
+
total?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Custom renderer of extraAvatars.
|
|
19
|
+
*/
|
|
20
|
+
renderSurplus?: (value: number) => ReactNode;
|
|
21
|
+
/**
|
|
22
|
+
* Additional style.
|
|
23
|
+
*/
|
|
24
|
+
style?: StyleProp<ViewStyle>;
|
|
25
|
+
/**
|
|
26
|
+
* Testing id of the component.
|
|
27
|
+
*/
|
|
28
|
+
testID?: string;
|
|
29
|
+
/**
|
|
30
|
+
* Variant of the avatar stack.
|
|
31
|
+
*/
|
|
32
|
+
variant?: 'horizontal' | 'vertical';
|
|
33
|
+
}
|
|
34
|
+
declare const AvatarStack: ({ children, max, size, style, testID, variant, total, renderSurplus, }: AvatarStackProps) => React.JSX.Element;
|
|
35
|
+
export default AvatarStack;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { View, Image, TouchableOpacity } from 'react-native';
|
|
2
|
+
import { TextProps } from '../Typography/Text';
|
|
3
|
+
declare type ThemeSize = 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'xxxlarge' | 'xxxxlarge' | 'xxxxxlarge';
|
|
4
|
+
declare type ThemeIntent = 'primary' | 'info' | 'danger' | 'success' | 'warning';
|
|
5
|
+
declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
|
|
6
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
7
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
8
|
+
} & {
|
|
9
|
+
themeSize: ThemeSize;
|
|
10
|
+
themeIntent: ThemeIntent;
|
|
11
|
+
}, {}, {
|
|
12
|
+
ref?: import("react").Ref<TouchableOpacity> | undefined;
|
|
13
|
+
}>;
|
|
14
|
+
declare const StyledTextWrapper: 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 StyledText: import("@emotion/native").StyledComponent<TextProps & {
|
|
21
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
22
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
23
|
+
} & {
|
|
24
|
+
themeSize: ThemeSize;
|
|
25
|
+
}, {}, {}>;
|
|
26
|
+
declare const StyledImage: import("@emotion/native").StyledComponent<import("react-native").ImageProps & {
|
|
27
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
28
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
29
|
+
} & {
|
|
30
|
+
themeSize: ThemeSize;
|
|
31
|
+
}, {}, {
|
|
32
|
+
ref?: import("react").Ref<Image> | undefined;
|
|
33
|
+
}>;
|
|
34
|
+
export { StyledWrapper, StyledImage, StyledTextWrapper, StyledText };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { useAvatarColors } from './AvatarStack/utils';
|
|
2
|
+
declare const _default: (({ onPress, source, testID, style, title, size, intent, }: import("./Avatar").AvatarProps) => import("react").JSX.Element | null) & {
|
|
3
|
+
Stack: ({ children, max, size, style, testID, variant, total, renderSurplus, }: import("./AvatarStack").AvatarStackProps) => import("react").JSX.Element;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
6
|
+
export { useAvatarColors };
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { StyleProp, ViewStyle, ViewProps } from 'react-native';
|
|
2
|
+
import type { ReactNode } from 'react';
|
|
3
|
+
export interface StatusProps extends ViewProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
/**
|
|
6
|
+
* Whether the Status Badge is visible.
|
|
7
|
+
*/
|
|
8
|
+
visible?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
/**
|
|
11
|
+
* Visual intent color to apply to Status Badge.
|
|
12
|
+
*/
|
|
13
|
+
intent?: 'success' | 'warning' | 'danger' | 'info' | 'archived' | 'primary';
|
|
14
|
+
/**
|
|
15
|
+
* Additional style.
|
|
16
|
+
*/
|
|
17
|
+
style?: StyleProp<ViewStyle>;
|
|
18
|
+
/**
|
|
19
|
+
* Testing id of the component.
|
|
20
|
+
*/
|
|
21
|
+
testID?: string;
|
|
22
|
+
}
|
|
23
|
+
declare const Status: ({ children, visible, intent, style, testID, ...nativeProps }: StatusProps) => JSX.Element;
|
|
24
|
+
export default Status;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Animated } from 'react-native';
|
|
2
|
+
declare type ThemeIntent = 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'archived';
|
|
3
|
+
declare type ThemePadding = 'narrowContent' | 'wideContent';
|
|
4
|
+
declare type ThemeSize = 'medium' | 'small';
|
|
5
|
+
declare type ThemeVariant = 'filled' | 'outlined';
|
|
6
|
+
declare const StyledView: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<import("react-native").View>> & {
|
|
7
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
9
|
+
} & {
|
|
10
|
+
themeIntent: ThemeIntent;
|
|
11
|
+
themePadding: ThemePadding;
|
|
12
|
+
themeSize: ThemeSize;
|
|
13
|
+
themeVariant: ThemeVariant;
|
|
14
|
+
}, {}, {}>;
|
|
15
|
+
declare const StyledText: import("@emotion/native").StyledComponent<import("../Typography/Caption").CaptionProps & {
|
|
16
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
17
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
18
|
+
} & {
|
|
19
|
+
themeSize: ThemeSize;
|
|
20
|
+
}, {}, {}>;
|
|
21
|
+
declare const StyledStatus: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<import("react-native").View>> & {
|
|
22
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
23
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
24
|
+
} & {
|
|
25
|
+
themeIntent: ThemeIntent;
|
|
26
|
+
}, {}, {}>;
|
|
27
|
+
declare const StyledIcon: import("@emotion/native").StyledComponent<import("../Icon").IconProps & {
|
|
28
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
29
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
30
|
+
} & {
|
|
31
|
+
themeSize: ThemeSize;
|
|
32
|
+
}, {}, {}>;
|
|
33
|
+
export { StyledView, StyledText, StyledStatus, StyledIcon };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { BasicBadgeProps, IconBadgeProps } from './types';
|
|
2
|
+
export declare type BadgeProps = BasicBadgeProps | IconBadgeProps;
|
|
3
|
+
declare const _default: (({ content: originalContent, visible, max, intent, style, testID, size, variant, icon, ...nativeProps }: BadgeProps) => JSX.Element) & {
|
|
4
|
+
Status: ({ children, visible, intent, style, testID, ...nativeProps }: import("./Status").StatusProps) => JSX.Element;
|
|
5
|
+
};
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Animated, StyleProp, ViewStyle } from 'react-native';
|
|
2
|
+
import { IconName } from '../Icon';
|
|
3
|
+
interface BaseBadgeProps extends React.ComponentProps<typeof Animated.View> {
|
|
4
|
+
/**
|
|
5
|
+
* Whether the Badge is visible.
|
|
6
|
+
*/
|
|
7
|
+
visible?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* The maximum number displayed on the badge. If number exceeds this value, `${max}+` are displayed instead. (Only applied when content is number.)
|
|
10
|
+
*/
|
|
11
|
+
max?: number;
|
|
12
|
+
/**
|
|
13
|
+
* Visual intent color to apply to Badge.
|
|
14
|
+
*/
|
|
15
|
+
intent?: 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'archived';
|
|
16
|
+
/**
|
|
17
|
+
* Additional style.
|
|
18
|
+
*/
|
|
19
|
+
style?: StyleProp<ViewStyle>;
|
|
20
|
+
/**
|
|
21
|
+
* Testing id of the component.
|
|
22
|
+
*/
|
|
23
|
+
testID?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Size of the badge
|
|
26
|
+
*/
|
|
27
|
+
size?: 'medium' | 'small';
|
|
28
|
+
/**
|
|
29
|
+
* Variant of the badge
|
|
30
|
+
*/
|
|
31
|
+
variant?: 'filled' | 'outlined';
|
|
32
|
+
}
|
|
33
|
+
export interface BasicBadgeProps extends BaseBadgeProps {
|
|
34
|
+
/**
|
|
35
|
+
* Content of the Badge.
|
|
36
|
+
*/
|
|
37
|
+
content: string | number;
|
|
38
|
+
/**
|
|
39
|
+
* Use Icon as the content of the Badge.
|
|
40
|
+
*/
|
|
41
|
+
icon?: never;
|
|
42
|
+
}
|
|
43
|
+
export interface IconBadgeProps extends BaseBadgeProps {
|
|
44
|
+
/**
|
|
45
|
+
* Content of the Badge.
|
|
46
|
+
*/
|
|
47
|
+
content?: never;
|
|
48
|
+
/**
|
|
49
|
+
* Use Icon as the content of the Badge.
|
|
50
|
+
*/
|
|
51
|
+
icon: IconName;
|
|
52
|
+
}
|
|
53
|
+
export {};
|