@hero-design/rn 9.0.0-0 → 9.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +287 -0
- package/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/es/index.js +17491 -14687
- package/jest-ci.config.js +17 -0
- package/jest-setup.ts +2 -0
- package/jest.config.js +1 -3
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +17376 -14565
- package/package.json +50 -40
- package/rollup.config.js +1 -0
- package/sonar-project.properties +11 -0
- package/src/components/Accordion/AccordionItem.tsx +1 -3
- package/src/components/Accordion/__tests__/AccordionItem.spec.tsx +5 -5
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +580 -408
- package/src/components/Accordion/__tests__/__snapshots__/StyledAccordion.spec.tsx.snap +76 -20
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +818 -644
- package/src/components/Accordion/__tests__/index.spec.tsx +2 -2
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +912 -644
- package/src/components/Alert/__tests__/index.spec.tsx +44 -2
- package/src/components/Alert/index.tsx +30 -4
- package/src/components/AnimatedScroller/AnimatedFAB.tsx +155 -0
- package/src/components/AnimatedScroller/AnimatedScrollable.tsx +70 -0
- package/src/components/AnimatedScroller/FlatListWithFAB.tsx +23 -0
- package/src/components/AnimatedScroller/ScrollViewWithFAB.tsx +21 -0
- package/src/components/AnimatedScroller/SectionListWithFAB.tsx +26 -0
- package/src/components/AnimatedScroller/__tests__/ScrollablesWithFAB.spec.tsx +193 -0
- package/src/components/AnimatedScroller/__tests__/__snapshots__/ScrollablesWithFAB.spec.tsx.snap +3462 -0
- package/src/components/AnimatedScroller/index.tsx +5 -0
- package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +178 -117
- package/src/components/Attachment/index.tsx +3 -1
- package/src/components/Avatar/AvatarStack/StyledAvatarStack.tsx +63 -9
- package/src/components/Avatar/AvatarStack/__tests__/StyledAvatarStack.spec.tsx +71 -9
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +410 -73
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +2904 -591
- package/src/components/Avatar/AvatarStack/__tests__/index.spec.tsx +140 -6
- package/src/components/Avatar/AvatarStack/index.tsx +94 -9
- package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +163 -62
- package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +288 -168
- package/src/components/Badge/StyledBadge.tsx +1 -4
- package/src/components/Badge/__tests__/Status.spec.tsx +1 -1
- package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +397 -259
- package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +123 -68
- package/src/components/BottomNavigation/StyledBottomNavigation.tsx +1 -1
- package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +332 -276
- package/src/components/BottomNavigation/index.tsx +4 -1
- package/src/components/BottomSheet/Header.tsx +1 -3
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +330 -197
- package/src/components/Box/__tests__/__snapshots__/index.spec.tsx.snap +1042 -454
- package/src/components/Button/Button.tsx +60 -25
- package/src/components/Button/LoadingIndicator/StyledLoadingIndicator.tsx +6 -9
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +400 -140
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +1090 -880
- package/src/components/Button/StyledButton.tsx +56 -59
- package/src/components/Button/UtilityButton/StyledUtilityButton.tsx +2 -4
- package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +206 -122
- package/src/components/Button/__tests__/Button.spec.tsx +18 -0
- package/src/components/Button/__tests__/StyledButton.spec.tsx +12 -6
- package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +1878 -1196
- package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +74 -29
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +1734 -778
- package/src/components/Calendar/CalendarRowItem.tsx +5 -2
- package/src/components/Calendar/StyledCalendar.tsx +2 -2
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +555 -335
- package/src/components/Calendar/__tests__/index.spec.tsx +76 -0
- package/src/components/Calendar/index.tsx +170 -59
- package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +265 -69
- package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +215 -75
- package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +36 -8
- package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +304 -142
- package/src/components/Card/__tests__/index.spec.tsx +1 -1
- package/src/components/Carousel/CardCarousel.tsx +23 -25
- package/src/components/Carousel/CarouselItem.tsx +39 -23
- package/src/components/Carousel/StyledCardCarousel.tsx +1 -16
- package/src/components/Carousel/StyledCarousel.tsx +8 -12
- package/src/components/Carousel/__tests__/CardCarousel.spec.tsx +18 -18
- package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +370 -366
- package/src/components/Carousel/__tests__/__snapshots__/StyledCardCarousel.spec.tsx.snap +199 -72
- package/src/components/Carousel/__tests__/__snapshots__/StyledCarousel.spec.tsx.snap +41 -13
- package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +1621 -1861
- package/src/components/Carousel/__tests__/index.spec.tsx +107 -7
- package/src/components/Carousel/index.tsx +63 -35
- package/src/components/Carousel/types.ts +4 -4
- package/src/components/Checkbox/StyledCheckbox.tsx +24 -30
- package/src/components/Checkbox/__tests__/StyledCheckbox.spec.tsx +25 -16
- package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +432 -77
- package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +598 -345
- package/src/components/Checkbox/__tests__/index.spec.tsx +24 -9
- package/src/components/Checkbox/index.tsx +60 -25
- package/src/components/Chip/StyledChip.tsx +121 -0
- package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +1483 -0
- package/src/components/Chip/__tests__/index.spec.tsx +136 -0
- package/src/components/Chip/index.tsx +82 -0
- package/src/components/Collapse/__tests__/__snapshots__/StyledCollapse.spec.tsx.snap +74 -18
- package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +100 -44
- package/src/components/Collapse/index.tsx +1 -1
- package/src/components/ContentNavigator/StyledContentNavigator.tsx +1 -6
- package/src/components/ContentNavigator/__tests__/StyledContentNavigator.spec.tsx +1 -9
- package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +37 -38
- package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +449 -186
- package/src/components/ContentNavigator/__tests__/index.spec.tsx +16 -0
- package/src/components/ContentNavigator/index.tsx +30 -9
- package/src/components/DatePicker/DatePickerAndroid.tsx +8 -3
- package/src/components/DatePicker/DatePickerCalendar.tsx +44 -15
- package/src/components/DatePicker/DatePickerIOS.tsx +12 -23
- package/src/components/DatePicker/__tests__/DatePicker.spec.tsx +92 -0
- package/src/components/DatePicker/__tests__/DatePickerCalendar.spec.tsx +42 -0
- package/src/components/DatePicker/__tests__/DatePickerIOS.spec.tsx +6 -5
- package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +676 -508
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +230 -174
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +222 -166
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +518 -423
- package/src/components/DatePicker/types.ts +8 -0
- package/src/components/DatePicker/useCalculateDate.tsx +34 -0
- package/src/components/Divider/__tests__/__snapshots__/StyledDivider.spec.tsx.snap +464 -128
- package/src/components/Drawer/DragableDrawer/__tests__/__snapshots__/index.spec.tsx.snap +99 -71
- package/src/components/Drawer/DragableDrawer/index.tsx +2 -2
- package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +327 -192
- package/src/components/Drawer/index.tsx +3 -3
- package/src/components/Empty/StyledEmpty.tsx +2 -6
- package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +176 -134
- package/src/components/Empty/index.tsx +4 -2
- package/src/components/Error/StyledError.tsx +4 -9
- package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +431 -335
- package/src/components/Error/__tests__/index.spec.tsx +9 -6
- package/src/components/Error/index.tsx +6 -2
- package/src/components/FAB/ActionGroup/ActionItem.tsx +46 -15
- package/src/components/FAB/ActionGroup/StyledActionGroup.tsx +16 -18
- package/src/components/FAB/ActionGroup/StyledActionItem.tsx +1 -5
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +980 -1217
- package/src/components/FAB/ActionGroup/__tests__/index.spec.tsx +32 -22
- package/src/components/FAB/ActionGroup/index.tsx +135 -94
- package/src/components/FAB/AnimatedFABIcon.tsx +3 -5
- package/src/components/FAB/FAB.tsx +170 -28
- package/src/components/FAB/StyledFAB.tsx +26 -23
- package/src/components/FAB/__tests__/StyledFAB.spec.tsx +12 -2
- package/src/components/FAB/__tests__/__snapshots__/AnimatedFABIcon.spec.tsx.snap +102 -46
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +204 -52
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +323 -180
- package/src/components/FAB/__tests__/index.spec.tsx +22 -2
- package/src/components/HeroDesignProvider/__tests__/__snapshots__/index.spec.tsx.snap +80 -0
- package/src/components/HeroDesignProvider/__tests__/index.spec.tsx +78 -0
- package/src/components/HeroDesignProvider/index.tsx +14 -0
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -1
- package/src/components/Icon/IconList.ts +36 -0
- package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +162 -50
- package/src/components/Image/__tests__/__snapshots__/index.spec.tsx.snap +172 -60
- package/src/components/List/BasicListItem.tsx +2 -6
- package/src/components/List/ListItem.tsx +3 -5
- package/src/components/List/StyledListItem.tsx +8 -7
- package/src/components/List/__tests__/ListItem.spec.tsx +4 -4
- package/src/components/List/__tests__/StyledBasicListItem.spec.tsx +3 -1
- package/src/components/List/__tests__/StyledListItem.spec.tsx +3 -1
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +264 -198
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +798 -635
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +280 -140
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +485 -203
- package/src/components/Modal/__tests__/__snapshots__/index.spec.tsx.snap +169 -0
- package/src/components/Modal/__tests__/index.spec.tsx +99 -0
- package/src/components/Modal/index.tsx +217 -0
- package/src/components/PageControl/__tests__/__snapshots__/index.spec.tsx.snap +84 -41
- package/src/components/PageControl/index.tsx +7 -4
- package/src/components/PinInput/PinCell.tsx +3 -1
- package/src/components/PinInput/StyledPinInput.tsx +2 -7
- package/src/components/PinInput/__tests__/StyledPinInput.spec.tsx +9 -4
- package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +298 -178
- package/src/components/PinInput/__tests__/__snapshots__/StyledPinInput.spec.tsx.snap +15 -48
- package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +873 -777
- package/src/components/PinInput/index.tsx +3 -1
- package/src/components/Portal/PortalHost.tsx +27 -0
- package/src/components/Portal/PortalProvider.tsx +35 -0
- package/src/components/Portal/__tests__/PortalHost.spec.tsx +48 -0
- package/src/components/Portal/__tests__/PortalProvider.spec.tsx +24 -0
- package/src/components/Portal/__tests__/__snapshots__/index.spec.tsx.snap +57 -0
- package/src/components/Portal/__tests__/index.spec.tsx +48 -0
- package/src/components/Portal/__tests__/reducer.spec.tsx +110 -0
- package/src/components/Portal/constants.ts +10 -0
- package/src/components/Portal/contexts.ts +14 -0
- package/src/components/Portal/index.tsx +66 -0
- package/src/components/Portal/reducer.ts +106 -0
- package/src/components/Portal/types.tsx +31 -0
- package/src/components/Portal/usePortal.ts +50 -0
- package/src/components/Portal/usePortalState.ts +11 -0
- package/src/components/Progress/ProgressCircle.tsx +1 -3
- package/src/components/Progress/StyledProgressBar.tsx +1 -0
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +810 -671
- package/src/components/Radio/Radio.tsx +25 -6
- package/src/components/Radio/RadioGroup.tsx +13 -4
- package/src/components/Radio/StyledRadio.tsx +20 -3
- package/src/components/Radio/__tests__/Radio.spec.tsx +46 -13
- package/src/components/Radio/__tests__/RadioGroup.spec.tsx +40 -7
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +565 -126
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +1079 -196
- package/src/components/Radio/types.ts +9 -1
- package/src/components/Rate/StyledRate.tsx +16 -0
- package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +1006 -0
- package/src/components/Rate/__tests__/index.spec.tsx +47 -0
- package/src/components/Rate/index.tsx +90 -0
- package/src/components/RefreshControl/__tests__/__snapshots__/index.spec.tsx.snap +131 -47
- package/src/components/RichTextEditor/RichTextEditor.tsx +94 -47
- package/src/components/RichTextEditor/__tests__/EditorToolbar.spec.tsx +5 -2
- package/src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx +3 -3
- package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +420 -273
- package/src/components/RichTextEditor/__tests__/__snapshots__/MentionList.spec.tsx.snap +66 -37
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +451 -355
- package/src/components/SectionHeading/StyledHeading.tsx +21 -10
- package/src/components/SectionHeading/__tests__/StyledHeading.spec.tsx +6 -2
- package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +165 -30
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +469 -169
- package/src/components/SectionHeading/__tests__/index.spec.tsx +15 -1
- package/src/components/SectionHeading/index.tsx +51 -32
- package/src/components/Select/MultiSelect/Option.tsx +3 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +100 -64
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +2557 -2320
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +2739 -911
- package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +39 -22
- package/src/components/Select/MultiSelect/index.tsx +1 -1
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +78 -43
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +2460 -2228
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +1356 -843
- package/src/components/Select/SingleSelect/__tests__/index.spec.tsx +5 -9
- package/src/components/Skeleton/__tests__/__snapshots__/index.spec.tsx.snap +525 -329
- package/src/components/Skeleton/index.tsx +3 -7
- package/src/components/Slider/__tests__/__snapshots__/index.spec.tsx.snap +117 -33
- package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +114 -86
- package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +1336 -664
- package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +129 -101
- package/src/components/Success/StyledSuccess.tsx +4 -7
- package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +560 -311
- package/src/components/Success/__tests__/index.spec.tsx +37 -9
- package/src/components/Success/index.tsx +7 -4
- package/src/components/Swipeable/__tests__/SwipeableAction.spec.tsx +2 -2
- package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +219 -87
- package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +158 -24
- package/src/components/Swipeable/__tests__/index.spec.tsx +12 -5
- package/src/components/Swipeable/index.tsx +42 -15
- package/src/components/Switch/SelectorSwitch/Option.tsx +1 -1
- package/src/components/Switch/SelectorSwitch/StyledSelectorSwitch.tsx +4 -7
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +242 -131
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +152 -116
- package/src/components/Switch/SelectorSwitch/index.tsx +7 -15
- package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +203 -63
- package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +134 -70
- package/src/components/Tabs/SceneView.tsx +11 -6
- package/src/components/Tabs/ScrollableTabs.tsx +26 -8
- package/src/components/Tabs/{ScrollableTabsHeader.tsx → ScrollableTabsHeader/ScrollableTabsHeader.tsx} +74 -45
- package/src/components/Tabs/ScrollableTabsHeader/hooks/useInitHighlightedAnimation.ts +45 -0
- package/src/components/Tabs/ScrollableTabsHeader/hooks/useInitUnderlinedAnimation.ts +91 -0
- package/src/components/Tabs/StyledScrollableTabs.tsx +14 -9
- package/src/components/Tabs/StyledTabs.tsx +1 -9
- package/src/components/Tabs/__tests__/SceneView.spec.tsx +11 -11
- package/src/components/Tabs/__tests__/ScrollableTabsHeader.spec.tsx +7 -3
- package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +219 -110
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +2348 -2072
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +1134 -444
- package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +124 -73
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +1694 -1487
- package/src/components/Tabs/__tests__/useInitHighlightedAnimation.spec.tsx +56 -0
- package/src/components/Tabs/__tests__/useInitUnderlinedAnimation.spec.tsx +65 -0
- package/src/components/Tabs/index.tsx +9 -6
- package/src/components/Tag/StyledTag.tsx +7 -39
- package/src/components/Tag/__tests__/Tag.spec.tsx +18 -14
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +572 -377
- package/src/components/Tag/index.tsx +8 -2
- package/src/components/TextInput/StyledTextInput.tsx +18 -49
- package/src/components/TextInput/__tests__/StyledTextInput.spec.tsx +2 -46
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +1001 -803
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +3774 -3075
- package/src/components/TextInput/__tests__/index.spec.tsx +151 -9
- package/src/components/TextInput/index.tsx +253 -105
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +452 -347
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +741 -597
- package/src/components/Toast/StyledToast.tsx +1 -1
- package/src/components/Toast/Toast.tsx +6 -5
- package/src/components/Toast/ToastContainer.tsx +2 -0
- package/src/components/Toast/ToastContext.ts +20 -2
- package/src/components/Toast/ToastProvider.tsx +7 -4
- package/src/components/Toast/__tests__/Toast.spec.tsx +5 -1
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +916 -631
- package/src/components/Toast/__tests__/__snapshots__/ToastContainer.spec.tsx.snap +180 -68
- package/src/components/Toolbar/StyledToolbar.tsx +1 -1
- package/src/components/Toolbar/ToolbarItem.tsx +4 -6
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +606 -456
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +714 -401
- package/src/components/Typography/Body/StyledBody.tsx +46 -0
- package/src/components/Typography/Body/__tests__/StyledBody.tsx +56 -0
- package/src/components/Typography/Body/__tests__/__snapshots__/StyledBody.tsx.snap +801 -0
- package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +970 -0
- package/src/components/Typography/Body/__tests__/index.spec.tsx +54 -0
- package/src/components/Typography/Body/index.tsx +71 -0
- package/src/components/Typography/Caption/StyledCaption.tsx +17 -0
- package/src/components/Typography/Caption/__tests__/StyledCaption.spec.tsx +39 -0
- package/src/components/Typography/Caption/__tests__/__snapshots__/StyledCaption.spec.tsx.snap +491 -0
- package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +651 -0
- package/src/components/Typography/Caption/__tests__/index.spec.tsx +46 -0
- package/src/components/Typography/Caption/index.tsx +61 -0
- package/src/components/Typography/Label/StyledLabel.tsx +14 -0
- package/src/components/Typography/Label/__tests__/StyledLabel.tsx +23 -0
- package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +377 -0
- package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +529 -0
- package/src/components/Typography/Label/__tests__/index.spec.tsx +32 -0
- package/src/components/Typography/Label/index.tsx +55 -0
- package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +900 -340
- package/src/components/Typography/Text/index.tsx +19 -12
- package/src/components/Typography/Title/StyledTitle.tsx +20 -0
- package/src/components/Typography/Title/__tests__/StyledTitle.tsx +53 -0
- package/src/components/Typography/Title/__tests__/__snapshots__/StyledTitle.tsx.snap +1001 -0
- package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +1174 -0
- package/src/components/Typography/Title/__tests__/index.spec.tsx +55 -0
- package/src/components/Typography/Title/index.tsx +70 -0
- package/src/components/Typography/index.tsx +15 -0
- package/src/components/Typography/types.ts +18 -0
- package/src/index.ts +16 -0
- package/src/testHelpers/renderWithTheme.tsx +2 -2
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +539 -345
- package/src/theme/components/badge.ts +15 -0
- package/src/theme/components/button.ts +17 -1
- package/src/theme/components/calendar.ts +2 -0
- package/src/theme/components/cardCarousel.ts +1 -8
- package/src/theme/components/carousel.ts +15 -1
- package/src/theme/components/checkbox.ts +5 -2
- package/src/theme/components/chip.ts +47 -0
- package/src/theme/components/empty.ts +12 -0
- package/src/theme/components/error.ts +16 -0
- package/src/theme/components/fab.ts +17 -11
- package/src/theme/components/list.ts +9 -5
- package/src/theme/components/pinInput.ts +15 -0
- package/src/theme/components/progress.ts +2 -2
- package/src/theme/components/radio.ts +8 -2
- package/src/theme/components/rate.ts +16 -0
- package/src/theme/components/sectionHeading.ts +2 -1
- package/src/theme/components/success.ts +12 -0
- package/src/theme/components/swipeable.ts +10 -1
- package/src/theme/components/switch.ts +4 -4
- package/src/theme/components/tabs.ts +3 -2
- package/src/theme/components/tag.ts +18 -2
- package/src/theme/components/textInput.ts +4 -4
- package/src/theme/components/toast.ts +5 -5
- package/src/theme/components/typography.ts +132 -1
- package/src/theme/getTheme.ts +24 -18
- package/src/theme/global/colors/__tests__/__snapshots__/eBens.spec.ts.snap +8 -8
- package/src/theme/global/colors/__tests__/__snapshots__/global.spec.ts.snap +6 -6
- package/src/theme/global/colors/__tests__/__snapshots__/globalDark.spec.ts.snap +1 -1
- package/src/theme/global/colors/__tests__/__snapshots__/jobs.spec.ts.snap +7 -7
- package/src/theme/global/colors/__tests__/__snapshots__/swag.spec.ts.snap +7 -7
- package/src/theme/global/colors/__tests__/__snapshots__/swagDark.spec.ts.snap +1 -1
- package/src/theme/global/colors/__tests__/__snapshots__/wallet.spec.ts.snap +8 -8
- package/src/theme/global/colors/__tests__/__snapshots__/work.spec.ts.snap +10 -10
- package/src/theme/global/colors/eBens.ts +2 -2
- package/src/theme/global/colors/global.ts +5 -5
- package/src/theme/global/colors/jobs.ts +1 -1
- package/src/theme/global/colors/swag.ts +1 -1
- package/src/theme/global/colors/wallet.ts +2 -2
- package/src/theme/global/colors/work.ts +4 -4
- package/src/theme/global/index.ts +3 -0
- package/src/theme/global/shadows.ts +19 -0
- package/src/theme/global/space.ts +2 -0
- package/src/types.ts +4 -0
- package/src/utils/helpers.ts +4 -1
- package/testUtils/setup.tsx +32 -2
- package/tsconfig.json +14 -3
- package/types/components/Accordion/AccordionItem.d.ts +2 -1
- package/types/components/Accordion/StyledAccordion.d.ts +5 -6
- package/types/components/Accordion/index.d.ts +1 -1
- package/types/components/Alert/StyledAlert.d.ts +5 -6
- package/types/components/Alert/index.d.ts +18 -2
- 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 +4 -5
- package/types/components/Attachment/index.d.ts +2 -1
- package/types/components/Avatar/Avatar.d.ts +2 -1
- package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +15 -3
- package/types/components/Avatar/AvatarStack/index.d.ts +14 -2
- package/types/components/Avatar/AvatarStack/utils.d.ts +0 -0
- package/types/components/Avatar/StyledAvatar.d.ts +4 -5
- package/types/components/Avatar/index.d.ts +2 -2
- package/types/components/Badge/Status.d.ts +0 -0
- package/types/components/Badge/StyledBadge.d.ts +4 -9
- package/types/components/Badge/index.d.ts +0 -0
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +8 -9
- package/types/components/BottomNavigation/index.d.ts +0 -0
- package/types/components/BottomSheet/BottomSheetContext.d.ts +0 -1
- package/types/components/BottomSheet/Footer.d.ts +2 -1
- package/types/components/BottomSheet/Header.d.ts +2 -1
- package/types/components/BottomSheet/ScrollView.d.ts +0 -0
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +8 -13
- package/types/components/BottomSheet/index.d.ts +0 -0
- package/types/components/Box/StyledBox.d.ts +1 -2
- package/types/components/Box/config.d.ts +0 -0
- package/types/components/Box/index.d.ts +2 -1
- package/types/components/Box/types.d.ts +0 -1
- package/types/components/Button/Button.d.ts +3 -3
- package/types/components/Button/IconButton.d.ts +2 -1
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +5 -6
- package/types/components/Button/LoadingIndicator/index.d.ts +2 -1
- package/types/components/Button/StyledButton.d.ts +16 -10
- package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +4 -5
- package/types/components/Button/UtilityButton/index.d.ts +2 -1
- package/types/components/Button/index.d.ts +0 -0
- package/types/components/Calendar/CalendarRowItem.d.ts +2 -1
- package/types/components/Calendar/StyledCalendar.d.ts +8 -9
- package/types/components/Calendar/helpers.d.ts +0 -0
- package/types/components/Calendar/index.d.ts +15 -1
- package/types/components/Card/DataCard/StyledDataCard.d.ts +2 -3
- package/types/components/Card/DataCard/index.d.ts +0 -0
- package/types/components/Card/StyledCard.d.ts +1 -2
- package/types/components/Card/index.d.ts +0 -0
- package/types/components/Carousel/CardCarousel.d.ts +2 -1
- package/types/components/Carousel/CarouselItem.d.ts +2 -1
- package/types/components/Carousel/StyledCardCarousel.d.ts +5 -12
- package/types/components/Carousel/StyledCarousel.d.ts +13 -14
- package/types/components/Carousel/contants.d.ts +0 -0
- package/types/components/Carousel/index.d.ts +2 -2
- package/types/components/Carousel/types.d.ts +4 -4
- package/types/components/Checkbox/StyledCheckbox.d.ts +12 -10
- package/types/components/Checkbox/index.d.ts +12 -1
- package/types/components/Chip/StyledChip.d.ts +30 -0
- package/types/components/Chip/index.d.ts +27 -0
- package/types/components/Collapse/StyledCollapse.d.ts +3 -6
- package/types/components/Collapse/index.d.ts +2 -1
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +2 -7
- package/types/components/ContentNavigator/index.d.ts +2 -1
- package/types/components/DatePicker/DatePickerAndroid.d.ts +2 -1
- package/types/components/DatePicker/DatePickerCalendar.d.ts +2 -1
- package/types/components/DatePicker/DatePickerIOS.d.ts +2 -2
- package/types/components/DatePicker/StyledDatePicker.d.ts +1 -2
- package/types/components/DatePicker/index.d.ts +2 -1
- package/types/components/DatePicker/types.d.ts +8 -0
- package/types/components/DatePicker/useCalculateDate.d.ts +4 -0
- package/types/components/Divider/StyledDivider.d.ts +1 -2
- package/types/components/Divider/index.d.ts +2 -1
- package/types/components/Drawer/DragableDrawer/helpers.d.ts +0 -0
- package/types/components/Drawer/DragableDrawer/index.d.ts +0 -0
- package/types/components/Drawer/StyledDrawer.d.ts +7 -14
- package/types/components/Drawer/index.d.ts +0 -0
- package/types/components/Empty/StyledEmpty.d.ts +5 -6
- package/types/components/Empty/index.d.ts +0 -0
- package/types/components/Error/StyledError.d.ts +15 -22
- package/types/components/Error/index.d.ts +0 -0
- package/types/components/FAB/ActionGroup/ActionItem.d.ts +7 -2
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +13 -17
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +4 -5
- package/types/components/FAB/ActionGroup/index.d.ts +12 -1
- package/types/components/FAB/AnimatedFABIcon.d.ts +2 -1
- package/types/components/FAB/FAB.d.ts +8 -2
- package/types/components/FAB/StyledFAB.d.ts +11 -12
- package/types/components/FAB/index.d.ts +2 -2
- package/types/components/HeroDesignProvider/index.d.ts +4 -0
- package/types/components/Icon/AnimatedIcon.d.ts +2 -1
- package/types/components/Icon/HeroIcon/index.d.ts +1 -2
- package/types/components/Icon/IconList.d.ts +1 -1
- package/types/components/Icon/index.d.ts +3 -2
- package/types/components/Icon/utils.d.ts +1 -1
- package/types/components/Image/index.d.ts +0 -0
- package/types/components/List/BasicListItem.d.ts +0 -0
- package/types/components/List/ListItem.d.ts +0 -0
- package/types/components/List/StyledBasicListItem.d.ts +4 -5
- package/types/components/List/StyledListItem.d.ts +7 -8
- package/types/components/List/index.d.ts +0 -0
- package/types/components/Modal/index.d.ts +37 -0
- package/types/components/PageControl/StyledPageControl.d.ts +2 -5
- package/types/components/PageControl/index.d.ts +2 -1
- package/types/components/PinInput/PinCell.d.ts +2 -1
- package/types/components/PinInput/StyledPinInput.d.ts +12 -13
- package/types/components/PinInput/index.d.ts +0 -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 +0 -0
- package/types/components/Progress/ProgressCircle.d.ts +0 -0
- package/types/components/Progress/StyledProgressBar.d.ts +2 -5
- package/types/components/Progress/StyledProgressCircle.d.ts +6 -7
- package/types/components/Progress/__tests__/index.spec.d.ts +0 -0
- package/types/components/Progress/constants.d.ts +0 -0
- package/types/components/Progress/index.d.ts +0 -0
- package/types/components/Progress/types.d.ts +0 -0
- package/types/components/Radio/Radio.d.ts +15 -3
- package/types/components/Radio/RadioGroup.d.ts +5 -1
- package/types/components/Radio/StyledRadio.d.ts +14 -5
- package/types/components/Radio/index.d.ts +1 -2
- package/types/components/Radio/types.d.ts +3 -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 +2 -1
- package/types/components/RichTextEditor/EditorEvent.d.ts +1 -0
- package/types/components/RichTextEditor/EditorToolbar.d.ts +2 -1
- package/types/components/RichTextEditor/MentionList.d.ts +2 -1
- package/types/components/RichTextEditor/RichTextEditor.d.ts +2 -2
- package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +2 -3
- package/types/components/RichTextEditor/StyledToolbar.d.ts +3 -4
- package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +0 -0
- package/types/components/RichTextEditor/constants.d.ts +0 -0
- package/types/components/RichTextEditor/heroEditorApp.d.ts +0 -0
- package/types/components/RichTextEditor/index.d.ts +2 -3
- package/types/components/RichTextEditor/types.d.ts +0 -0
- package/types/components/RichTextEditor/utils/events.d.ts +0 -0
- package/types/components/RichTextEditor/utils/rnWebView.d.ts +0 -0
- package/types/components/SectionHeading/StyledHeading.d.ts +7 -5
- package/types/components/SectionHeading/index.d.ts +7 -1
- package/types/components/Select/BaseOptionList.d.ts +1 -1
- package/types/components/Select/Footer.d.ts +2 -1
- package/types/components/Select/MultiSelect/Option.d.ts +2 -1
- package/types/components/Select/MultiSelect/OptionList.d.ts +2 -1
- package/types/components/Select/MultiSelect/index.d.ts +1 -1
- package/types/components/Select/SingleSelect/Option.d.ts +2 -1
- package/types/components/Select/SingleSelect/OptionList.d.ts +1 -1
- package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +1 -1
- package/types/components/Select/SingleSelect/index.d.ts +1 -1
- package/types/components/Select/StyledSelect.d.ts +3 -4
- package/types/components/Select/helpers.d.ts +1 -2
- package/types/components/Select/index.d.ts +1 -1
- package/types/components/Select/types.d.ts +0 -0
- package/types/components/Skeleton/StyledSkeleton.d.ts +2 -3
- package/types/components/Skeleton/index.d.ts +2 -1
- package/types/components/Slider/index.d.ts +2 -1
- package/types/components/Spinner/AnimatedSpinner.d.ts +2 -1
- package/types/components/Spinner/StyledSpinner.d.ts +4 -5
- package/types/components/Spinner/index.d.ts +0 -0
- package/types/components/Success/StyledSuccess.d.ts +14 -19
- package/types/components/Success/index.d.ts +1 -1
- package/types/components/Swipeable/StyledSwipeable.d.ts +1 -2
- package/types/components/Swipeable/SwipeableAction.d.ts +2 -2
- package/types/components/Swipeable/index.d.ts +8 -4
- package/types/components/Switch/SelectorSwitch/Option.d.ts +2 -1
- package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +4 -11
- package/types/components/Switch/SelectorSwitch/index.d.ts +0 -0
- package/types/components/Switch/StyledSwitch.d.ts +2 -5
- package/types/components/Switch/index.d.ts +0 -0
- package/types/components/Tabs/ActiveTabIndicator.d.ts +2 -1
- package/types/components/Tabs/SceneView.d.ts +1 -1
- package/types/components/Tabs/ScrollableTabs.d.ts +5 -1
- package/types/components/Tabs/{ScrollableTabsHeader.d.ts → ScrollableTabsHeader/ScrollableTabsHeader.d.ts} +8 -3
- 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 +12 -20
- package/types/components/Tabs/StyledTabs.d.ts +8 -18
- package/types/components/Tabs/TabWithBadge.d.ts +2 -2
- package/types/components/Tabs/index.d.ts +2 -1
- package/types/components/Tabs/useIsFocused.d.ts +0 -0
- package/types/components/Tabs/utils.d.ts +0 -0
- package/types/components/Tag/StyledTag.d.ts +4 -8
- package/types/components/Tag/index.d.ts +1 -0
- package/types/components/TextInput/StyledTextInput.d.ts +22 -46
- package/types/components/TextInput/index.d.ts +31 -2
- package/types/components/TimePicker/StyledTimePicker.d.ts +1 -2
- package/types/components/TimePicker/TimePickerAndroid.d.ts +2 -1
- package/types/components/TimePicker/TimePickerIOS.d.ts +2 -1
- package/types/components/TimePicker/index.d.ts +2 -1
- package/types/components/TimePicker/types.d.ts +0 -0
- package/types/components/Toast/StyledToast.d.ts +6 -9
- package/types/components/Toast/Toast.d.ts +0 -0
- package/types/components/Toast/ToastContainer.d.ts +0 -0
- package/types/components/Toast/ToastContext.d.ts +1 -1
- package/types/components/Toast/ToastProvider.d.ts +2 -1
- package/types/components/Toast/index.d.ts +1 -2
- package/types/components/Toast/types.d.ts +0 -0
- package/types/components/Toolbar/StyledToolbar.d.ts +6 -7
- package/types/components/Toolbar/ToolbarGroup.d.ts +2 -1
- package/types/components/Toolbar/ToolbarItem.d.ts +2 -1
- package/types/components/Toolbar/index.d.ts +3 -2
- 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 +1 -2
- package/types/components/Typography/Text/index.d.ts +2 -1
- 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 +11 -0
- package/types/components/Typography/types.d.ts +6 -0
- package/types/index.d.ts +6 -1
- package/types/testHelpers/renderWithTheme.d.ts +0 -0
- package/types/theme/ThemeProvider.d.ts +0 -1
- package/types/theme/ThemeSwitcher.d.ts +2 -2
- package/types/theme/components/accordion.d.ts +0 -0
- package/types/theme/components/alert.d.ts +0 -0
- package/types/theme/components/attachment.d.ts +0 -0
- package/types/theme/components/avatar.d.ts +0 -0
- package/types/theme/components/badge.d.ts +15 -0
- package/types/theme/components/bottomNavigation.d.ts +0 -0
- package/types/theme/components/bottomSheet.d.ts +0 -0
- package/types/theme/components/button.d.ts +14 -0
- package/types/theme/components/calendar.d.ts +2 -0
- package/types/theme/components/card.d.ts +0 -0
- package/types/theme/components/cardCarousel.d.ts +0 -10
- package/types/theme/components/carousel.d.ts +15 -1
- package/types/theme/components/checkbox.d.ts +5 -2
- package/types/theme/components/chip.d.ts +40 -0
- package/types/theme/components/contentNavigator.d.ts +0 -0
- package/types/theme/components/datePicker.d.ts +0 -0
- package/types/theme/components/divider.d.ts +0 -0
- package/types/theme/components/drawer.d.ts +0 -0
- package/types/theme/components/empty.d.ts +11 -0
- package/types/theme/components/error.d.ts +15 -0
- package/types/theme/components/fab.d.ts +13 -7
- package/types/theme/components/icon.d.ts +0 -0
- package/types/theme/components/image.d.ts +0 -0
- package/types/theme/components/list.d.ts +11 -7
- package/types/theme/components/pageControl.d.ts +0 -0
- package/types/theme/components/pinInput.d.ts +15 -0
- package/types/theme/components/progress.d.ts +0 -0
- package/types/theme/components/radio.d.ts +7 -1
- package/types/theme/components/rate.d.ts +11 -0
- package/types/theme/components/refreshControl.d.ts +0 -0
- package/types/theme/components/richTextEditor.d.ts +0 -0
- package/types/theme/components/sectionHeading.d.ts +1 -0
- package/types/theme/components/select.d.ts +0 -0
- package/types/theme/components/skeleton.d.ts +0 -0
- package/types/theme/components/slider.d.ts +0 -0
- package/types/theme/components/spinner.d.ts +0 -0
- package/types/theme/components/success.d.ts +11 -0
- package/types/theme/components/swipeable.d.ts +7 -0
- package/types/theme/components/switch.d.ts +1 -1
- package/types/theme/components/tabs.d.ts +1 -0
- package/types/theme/components/tag.d.ts +16 -1
- package/types/theme/components/textInput.d.ts +2 -2
- package/types/theme/components/timePicker.d.ts +0 -0
- package/types/theme/components/toast.d.ts +1 -1
- package/types/theme/components/toolbar.d.ts +0 -0
- package/types/theme/components/typography.d.ts +122 -0
- package/types/theme/getTheme.d.ts +22 -18
- package/types/theme/global/borders.d.ts +0 -0
- package/types/theme/global/colors/eBens.d.ts +0 -0
- package/types/theme/global/colors/global.d.ts +0 -0
- package/types/theme/global/colors/globalDark.d.ts +0 -0
- package/types/theme/global/colors/jobs.d.ts +0 -0
- package/types/theme/global/colors/swag.d.ts +0 -0
- package/types/theme/global/colors/swagDark.d.ts +0 -0
- package/types/theme/global/colors/types.d.ts +0 -0
- package/types/theme/global/colors/wallet.d.ts +0 -0
- package/types/theme/global/colors/work.d.ts +0 -0
- package/types/theme/global/index.d.ts +12 -0
- package/types/theme/global/scale.d.ts +0 -0
- package/types/theme/global/shadows.d.ts +16 -0
- package/types/theme/global/sizes.d.ts +0 -0
- package/types/theme/global/space.d.ts +1 -0
- package/types/theme/global/typography.d.ts +0 -0
- package/types/theme/index.d.ts +0 -0
- package/types/types.d.ts +3 -1
- package/types/utils/functions.d.ts +0 -0
- package/types/utils/helpers.d.ts +1 -1
- package/types/utils/hooks.d.ts +0 -0
- package/types/utils/scale.d.ts +0 -0
- package/.turbo/turbo-build.log +0 -8
- package/.turbo/turbo-build:types.log +0 -1
- package/.turbo/turbo-lint.log +0 -153
- package/.turbo/turbo-publish:npm.log +0 -0
- package/.turbo/turbo-type-check.log +0 -1
- package/types/components/Carousel/CarouselPaginator/StyledCarouselPaginator.d.ts +0 -14
- package/types/components/Carousel/CarouselPaginator/index.d.ts +0 -7
- package/types/components/Select/StyledOptionList.d.ts +0 -12
- package/types/components/SwipeableV2/StyledSwipeable.d.ts +0 -15
- package/types/components/SwipeableV2/index.d.ts +0 -46
- package/types/theme/global/colors/legacySystemPalette.d.ts +0 -3
|
@@ -1,33 +1,35 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { TouchableOpacity, View } from 'react-native';
|
|
2
|
+
declare type CheckboxThemeState = 'default' | 'disabled' | 'readonly';
|
|
3
3
|
export declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
|
|
4
4
|
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
-
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
6
6
|
} & {
|
|
7
|
-
|
|
8
|
-
themeDisabled: boolean;
|
|
7
|
+
themeState: CheckboxThemeState;
|
|
9
8
|
}, {}, {
|
|
10
9
|
ref?: import("react").Ref<TouchableOpacity> | undefined;
|
|
11
10
|
}>;
|
|
12
|
-
export declare const StyledDescription: import("@emotion/native").StyledComponent<import("
|
|
11
|
+
export declare const StyledDescription: import("@emotion/native").StyledComponent<import("../Typography/Body").BodyProps & {
|
|
13
12
|
theme?: import("@emotion/react").Theme | undefined;
|
|
14
|
-
as?: import("react").ElementType<any> | undefined;
|
|
13
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
15
14
|
}, {}, {}>;
|
|
16
15
|
export declare const StyledCheckboxContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
17
16
|
theme?: import("@emotion/react").Theme | undefined;
|
|
18
|
-
as?: import("react").ElementType<any> | undefined;
|
|
17
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
19
18
|
}, {}, {
|
|
20
19
|
ref?: import("react").Ref<View> | undefined;
|
|
21
20
|
}>;
|
|
22
21
|
export declare const StyledCheckbox: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
23
22
|
theme?: import("@emotion/react").Theme | undefined;
|
|
24
|
-
as?: import("react").ElementType<any> | undefined;
|
|
23
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
25
24
|
} & {
|
|
26
|
-
|
|
25
|
+
themeState: CheckboxThemeState;
|
|
27
26
|
}, {}, {
|
|
28
27
|
ref?: import("react").Ref<View> | undefined;
|
|
29
28
|
}>;
|
|
30
29
|
export declare const StyledCheckMark: import("@emotion/native").StyledComponent<import("../Icon").IconProps & {
|
|
31
30
|
theme?: import("@emotion/react").Theme | undefined;
|
|
32
|
-
as?: import("react").ElementType<any> | undefined;
|
|
31
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
32
|
+
} & {
|
|
33
|
+
themeState: CheckboxThemeState;
|
|
33
34
|
}, {}, {}>;
|
|
35
|
+
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
2
3
|
export interface CheckboxProps {
|
|
3
4
|
/**
|
|
@@ -9,6 +10,7 @@ export interface CheckboxProps {
|
|
|
9
10
|
*/
|
|
10
11
|
description?: string;
|
|
11
12
|
/**
|
|
13
|
+
* @deprecated This prop will be removed in the next major release. Checkboxes will always have border.
|
|
12
14
|
* Whether the border is shown.
|
|
13
15
|
*/
|
|
14
16
|
withBorder?: boolean;
|
|
@@ -28,6 +30,15 @@ export interface CheckboxProps {
|
|
|
28
30
|
* Testing id of the component.
|
|
29
31
|
*/
|
|
30
32
|
testID?: string;
|
|
33
|
+
/**
|
|
34
|
+
* Readonly of the checkbox.
|
|
35
|
+
*/
|
|
36
|
+
readonly?: boolean;
|
|
31
37
|
}
|
|
32
|
-
declare
|
|
38
|
+
declare type getStateType = {
|
|
39
|
+
disabled: boolean;
|
|
40
|
+
readonly: boolean;
|
|
41
|
+
};
|
|
42
|
+
export declare const getThemeState: ({ disabled, readonly }: getStateType) => "default" | "disabled" | "readonly";
|
|
43
|
+
declare const Checkbox: ({ checked, description, withBorder, disabled, onPress, style, testID, readonly, }: CheckboxProps) => React.JSX.Element;
|
|
33
44
|
export default Checkbox;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { TouchableOpacity } from 'react-native';
|
|
2
|
+
declare type StyledChipWrapperProps = {
|
|
3
|
+
themeVariant?: 'outlined' | 'filled';
|
|
4
|
+
themeSelected?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const StyledChipWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
|
|
7
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
8
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
9
|
+
} & StyledChipWrapperProps, {}, {
|
|
10
|
+
ref?: import("react").Ref<TouchableOpacity> | undefined;
|
|
11
|
+
}>;
|
|
12
|
+
declare const StyledIconWrapper: import("@emotion/native").StyledComponent<import("../Box").BoxProps & {
|
|
13
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
14
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
15
|
+
}, {}, {}>;
|
|
16
|
+
declare const StyledLabel: import("@emotion/native").StyledComponent<import("../Typography/Body").BodyProps & {
|
|
17
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
18
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
19
|
+
} & {
|
|
20
|
+
themeSelected?: boolean | undefined;
|
|
21
|
+
themeVariant?: "filled" | "outlined" | undefined;
|
|
22
|
+
}, {}, {}>;
|
|
23
|
+
declare const StyledIcon: import("@emotion/native").StyledComponent<import("../Icon").IconProps & {
|
|
24
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
25
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
26
|
+
} & {
|
|
27
|
+
themeSelected?: boolean | undefined;
|
|
28
|
+
themeVariant?: "filled" | "outlined" | undefined;
|
|
29
|
+
}, {}, {}>;
|
|
30
|
+
export { StyledChipWrapper, StyledIcon, StyledIconWrapper, StyledLabel };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ViewProps } from 'react-native';
|
|
3
|
+
import { IconName } from '../Icon';
|
|
4
|
+
export interface ChipProps extends ViewProps {
|
|
5
|
+
/**
|
|
6
|
+
* The label of the chip.
|
|
7
|
+
*/
|
|
8
|
+
label: string;
|
|
9
|
+
/**
|
|
10
|
+
* Variant of the chip.
|
|
11
|
+
*/
|
|
12
|
+
variant?: 'outlined' | 'filled';
|
|
13
|
+
/**
|
|
14
|
+
* Whether the chip is selected.
|
|
15
|
+
*/
|
|
16
|
+
selected?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Icon of the chip. Usable only with `variant="filled"`.
|
|
19
|
+
*/
|
|
20
|
+
icon?: IconName;
|
|
21
|
+
/**
|
|
22
|
+
* Callback when the chip is pressed.
|
|
23
|
+
*/
|
|
24
|
+
onPress?: () => void;
|
|
25
|
+
}
|
|
26
|
+
declare const Chip: ({ label, variant, selected, icon, onPress, ...otherProps }: ChipProps) => React.JSX.Element;
|
|
27
|
+
export default Chip;
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Animated, View } from 'react-native';
|
|
3
2
|
declare const StyledWrapper: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
4
|
-
children?: import("react").ReactNode;
|
|
5
|
-
} & {
|
|
6
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
7
|
-
as?: import("react").ElementType<any> | undefined;
|
|
4
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
8
5
|
}, {}, {}>;
|
|
9
6
|
/**
|
|
10
7
|
* Height need to be high enough to cover most scenario
|
|
@@ -13,13 +10,13 @@ declare const StyledWrapper: import("@emotion/native").StyledComponent<Animated.
|
|
|
13
10
|
*/
|
|
14
11
|
declare const StyledHiddenWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
15
12
|
theme?: import("@emotion/react").Theme | undefined;
|
|
16
|
-
as?: import("react").ElementType<any> | undefined;
|
|
13
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
17
14
|
}, {}, {
|
|
18
15
|
ref?: import("react").Ref<View> | undefined;
|
|
19
16
|
}>;
|
|
20
17
|
declare const StyledChildWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
21
18
|
theme?: import("@emotion/react").Theme | undefined;
|
|
22
|
-
as?: import("react").ElementType<any> | undefined;
|
|
19
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
23
20
|
}, {}, {
|
|
24
21
|
ref?: import("react").Ref<View> | undefined;
|
|
25
22
|
}>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import type { StyleProp, ViewProps, ViewStyle } from 'react-native';
|
|
3
4
|
export interface CollapseProps extends ViewProps {
|
|
4
5
|
children: ReactNode;
|
|
@@ -15,5 +16,5 @@ export interface CollapseProps extends ViewProps {
|
|
|
15
16
|
*/
|
|
16
17
|
testID?: string;
|
|
17
18
|
}
|
|
18
|
-
declare const Collapse: ({ open, children, testID, style, onLayout, }: CollapseProps) => JSX.Element;
|
|
19
|
+
declare const Collapse: ({ open, children, testID, style, onLayout, }: CollapseProps) => React.JSX.Element;
|
|
19
20
|
export default Collapse;
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { View } from 'react-native';
|
|
3
2
|
declare const Wrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
4
3
|
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
-
as?: import("react").ElementType<any> | undefined;
|
|
4
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
6
5
|
}, {}, {
|
|
7
6
|
ref?: import("react").Ref<View> | undefined;
|
|
8
7
|
}>;
|
|
9
|
-
|
|
10
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
-
as?: import("react").ElementType<any> | undefined;
|
|
12
|
-
}, {}, {}>;
|
|
13
|
-
export { Wrapper, Value };
|
|
8
|
+
export { Wrapper };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { ReactElement } from 'react';
|
|
2
3
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
4
|
interface ContentNavigatorProps {
|
|
@@ -38,5 +39,5 @@ interface ContentNavigatorProps {
|
|
|
38
39
|
*/
|
|
39
40
|
testID?: string;
|
|
40
41
|
}
|
|
41
|
-
declare function ContentNavigator({ onPreviousPress, onNextPress, onPress, value, previousDisabled, nextDisabled, fontSize, testID, style, }: ContentNavigatorProps): JSX.Element;
|
|
42
|
+
declare function ContentNavigator({ onPreviousPress, onNextPress, onPress, value, previousDisabled, nextDisabled, fontSize, testID, style, }: ContentNavigatorProps): React.JSX.Element;
|
|
42
43
|
export default ContentNavigator;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { DatePickerProps } from './types';
|
|
2
|
-
declare const DatePickerAndroid: ({ value, minDate, maxDate, label, placeholder, onChange, displayFormat, disabled, required, error, helpText, style, testID, }: Omit<DatePickerProps, 'variant'>) => JSX.Element;
|
|
3
|
+
declare const DatePickerAndroid: ({ value, minDate, maxDate, label, placeholder, onChange, displayFormat, disabled, required, error, helpText, style, testID, }: Omit<DatePickerProps, 'variant' | 'monthPickerConfirmLabel' | 'monthPickerCancelLabel'>) => React.JSX.Element;
|
|
3
4
|
export default DatePickerAndroid;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { DatePickerProps } from './types';
|
|
2
|
-
declare const DatePickerCalendar: ({ value, minDate, maxDate, label, placeholder, onChange, confirmLabel, displayFormat, disabled, required, error, helpText, style, testID, }: Omit<DatePickerProps, 'variant'>) => JSX.Element;
|
|
3
|
+
declare const DatePickerCalendar: ({ value, minDate, maxDate, label, placeholder, onChange, confirmLabel, displayFormat, disabled, required, error, helpText, style, testID, monthPickerConfirmLabel, monthPickerCancelLabel, }: Omit<DatePickerProps, 'variant'>) => React.JSX.Element;
|
|
3
4
|
export default DatePickerCalendar;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { DatePickerProps } from './types';
|
|
2
|
-
|
|
3
|
-
declare const DatePickerIOS: ({ value, minDate, maxDate, label, placeholder, onChange, confirmLabel, displayFormat, disabled, required, error, helpText, style, testID, }: Omit<DatePickerProps, 'variant'>) => JSX.Element;
|
|
3
|
+
declare const DatePickerIOS: ({ value, minDate, maxDate, label, placeholder, onChange, confirmLabel, displayFormat, disabled, required, error, helpText, style, testID, }: Omit<DatePickerProps, 'variant' | 'monthPickerConfirmLabel' | 'monthPickerCancelLabel'>) => React.JSX.Element;
|
|
4
4
|
export default DatePickerIOS;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { View } from 'react-native';
|
|
3
2
|
import type { ViewProps } from 'react-native';
|
|
4
3
|
declare const StyledPickerWrapper: import("@emotion/native").StyledComponent<ViewProps & {
|
|
5
4
|
theme?: import("@emotion/react").Theme | undefined;
|
|
6
|
-
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
7
6
|
}, {}, {
|
|
8
7
|
ref?: import("react").Ref<View> | undefined;
|
|
9
8
|
}>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { DatePickerProps } from './types';
|
|
2
|
-
declare const DatePicker: ({ variant, ...props }: DatePickerProps) => JSX.Element;
|
|
3
|
+
declare const DatePicker: ({ variant, ...props }: DatePickerProps) => React.JSX.Element;
|
|
3
4
|
export default DatePicker;
|
|
@@ -63,4 +63,12 @@ export interface DatePickerProps {
|
|
|
63
63
|
* Testing id of the component.
|
|
64
64
|
*/
|
|
65
65
|
testID?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Calendar variant prop. Label for the confirm button of the month picker, Android only.
|
|
68
|
+
*/
|
|
69
|
+
monthPickerConfirmLabel?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Calendar variant prop. Label for the cancel button of the month picker, Android only.
|
|
72
|
+
*/
|
|
73
|
+
monthPickerCancelLabel?: string;
|
|
66
74
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DatePickerProps } from './types';
|
|
2
|
+
export declare const getDateValue: (value: Date, minDate?: Date | undefined, maxDate?: Date | undefined) => Date;
|
|
3
|
+
declare const useCalculateDate: ({ maxDate, minDate, onChange, value, }: Pick<DatePickerProps, 'maxDate' | 'minDate' | 'onChange' | 'value'>) => void;
|
|
4
|
+
export default useCalculateDate;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { View } from 'react-native';
|
|
3
2
|
declare type MarginSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
4
3
|
declare const StyledDivider: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
5
4
|
theme?: import("@emotion/react").Theme | undefined;
|
|
6
|
-
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
7
6
|
} & {
|
|
8
7
|
themeMarginHorizontal?: MarginSize | undefined;
|
|
9
8
|
themeMarginVertical?: MarginSize | undefined;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { StyleProp, ViewStyle, ViewProps } from 'react-native';
|
|
2
3
|
interface DividerProps extends ViewProps {
|
|
3
4
|
/**
|
|
@@ -17,5 +18,5 @@ interface DividerProps extends ViewProps {
|
|
|
17
18
|
*/
|
|
18
19
|
testID?: string;
|
|
19
20
|
}
|
|
20
|
-
declare const Divider: ({ marginHorizontal, marginVertical, style, testID, ...nativeProps }: DividerProps) => JSX.Element;
|
|
21
|
+
declare const Divider: ({ marginHorizontal, marginVertical, style, testID, ...nativeProps }: DividerProps) => React.JSX.Element;
|
|
21
22
|
export default Divider;
|
|
File without changes
|
|
File without changes
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Animated, View } from 'react-native';
|
|
3
2
|
import type { ViewProps } from 'react-native';
|
|
4
3
|
declare const StyledContainer: import("@emotion/native").StyledComponent<ViewProps & {
|
|
5
4
|
theme?: import("@emotion/react").Theme | undefined;
|
|
6
|
-
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
7
6
|
} & {
|
|
8
7
|
enableShadow: boolean;
|
|
9
8
|
}, {}, {
|
|
@@ -11,43 +10,37 @@ declare const StyledContainer: import("@emotion/native").StyledComponent<ViewPro
|
|
|
11
10
|
}>;
|
|
12
11
|
declare const StyledDragableContainer: import("@emotion/native").StyledComponent<ViewProps & {
|
|
13
12
|
theme?: import("@emotion/react").Theme | undefined;
|
|
14
|
-
as?: import("react").ElementType<any> | undefined;
|
|
13
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
15
14
|
} & {
|
|
16
15
|
enableShadow: boolean;
|
|
17
16
|
}, {}, {
|
|
18
17
|
ref?: import("react").Ref<View> | undefined;
|
|
19
18
|
}>;
|
|
20
19
|
declare const StyledBackdrop: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").PressableProps & import("react").RefAttributes<View>> & {
|
|
21
|
-
children?: import("react").ReactNode;
|
|
22
|
-
} & {
|
|
23
20
|
theme?: import("@emotion/react").Theme | undefined;
|
|
24
|
-
as?: import("react").ElementType<any> | undefined;
|
|
21
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
25
22
|
}, {}, {}>;
|
|
26
23
|
declare const StyledDrawerContainer: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
|
|
27
|
-
children?: import("react").ReactNode;
|
|
28
|
-
} & {
|
|
29
24
|
theme?: import("@emotion/react").Theme | undefined;
|
|
30
|
-
as?: import("react").ElementType<any> | undefined;
|
|
25
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
31
26
|
} & {
|
|
32
27
|
enableShadow: boolean;
|
|
33
28
|
}, {}, {}>;
|
|
34
29
|
declare const StyledDragableDrawerContainer: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
|
|
35
|
-
children?: import("react").ReactNode;
|
|
36
|
-
} & {
|
|
37
30
|
theme?: import("@emotion/react").Theme | undefined;
|
|
38
|
-
as?: import("react").ElementType<any> | undefined;
|
|
31
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
39
32
|
} & {
|
|
40
33
|
enableShadow: boolean;
|
|
41
34
|
}, {}, {}>;
|
|
42
35
|
declare const StyledHandlerContainer: import("@emotion/native").StyledComponent<ViewProps & {
|
|
43
36
|
theme?: import("@emotion/react").Theme | undefined;
|
|
44
|
-
as?: import("react").ElementType<any> | undefined;
|
|
37
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
45
38
|
}, {}, {
|
|
46
39
|
ref?: import("react").Ref<View> | undefined;
|
|
47
40
|
}>;
|
|
48
41
|
declare const StyledHandler: import("@emotion/native").StyledComponent<ViewProps & {
|
|
49
42
|
theme?: import("@emotion/react").Theme | undefined;
|
|
50
|
-
as?: import("react").ElementType<any> | undefined;
|
|
43
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
51
44
|
} & {
|
|
52
45
|
active?: boolean | undefined;
|
|
53
46
|
}, {}, {
|
|
File without changes
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { View } from 'react-native';
|
|
3
2
|
declare type ThemeVariant = 'light' | 'dark';
|
|
4
3
|
declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
5
4
|
theme?: import("@emotion/react").Theme | undefined;
|
|
6
|
-
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
7
6
|
}, {}, {
|
|
8
7
|
ref?: import("react").Ref<View> | undefined;
|
|
9
8
|
}>;
|
|
10
|
-
declare const StyledTitle: import("@emotion/native").StyledComponent<import("
|
|
9
|
+
declare const StyledTitle: import("@emotion/native").StyledComponent<import("../Typography/Title").TitleProps & {
|
|
11
10
|
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
-
as?: import("react").ElementType<any> | undefined;
|
|
11
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
13
12
|
} & {
|
|
14
13
|
themeVariant: ThemeVariant;
|
|
15
14
|
}, {}, {}>;
|
|
16
|
-
declare const StyledDescription: import("@emotion/native").StyledComponent<import("
|
|
15
|
+
declare const StyledDescription: import("@emotion/native").StyledComponent<import("../Typography/Body").BodyProps & {
|
|
17
16
|
theme?: import("@emotion/react").Theme | undefined;
|
|
18
|
-
as?: import("react").ElementType<any> | undefined;
|
|
17
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
19
18
|
} & {
|
|
20
19
|
themeVariant: ThemeVariant;
|
|
21
20
|
}, {}, {}>;
|
|
File without changes
|
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
import { Modal, View } from 'react-native';
|
|
1
|
+
import { View } from 'react-native';
|
|
3
2
|
declare type ErrorVariant = 'full-screen' | 'in-page';
|
|
4
|
-
declare const StyledErrorModal: import("@emotion/native").StyledComponent<import("
|
|
3
|
+
declare const StyledErrorModal: import("@emotion/native").StyledComponent<import("../Modal").ModalProps & {
|
|
5
4
|
theme?: import("@emotion/react").Theme | undefined;
|
|
6
|
-
as?: import("react").ElementType<any> | undefined;
|
|
7
|
-
}, {}, {
|
|
8
|
-
ref?: import("react").Ref<Modal> | undefined;
|
|
9
|
-
}>;
|
|
5
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
6
|
+
}, {}, {}>;
|
|
10
7
|
declare const StyledErrorContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
11
8
|
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
-
as?: import("react").ElementType<any> | undefined;
|
|
9
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
13
10
|
} & {
|
|
14
11
|
themeVariant: ErrorVariant;
|
|
15
12
|
}, {}, {
|
|
@@ -17,44 +14,40 @@ declare const StyledErrorContainer: import("@emotion/native").StyledComponent<im
|
|
|
17
14
|
}>;
|
|
18
15
|
declare const StyledErrorContent: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
19
16
|
theme?: import("@emotion/react").Theme | undefined;
|
|
20
|
-
as?: import("react").ElementType<any> | undefined;
|
|
17
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
21
18
|
}, {}, {
|
|
22
19
|
ref?: import("react").Ref<View> | undefined;
|
|
23
20
|
}>;
|
|
24
21
|
declare const StyledErrorButtonContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
25
22
|
theme?: import("@emotion/react").Theme | undefined;
|
|
26
|
-
as?: import("react").ElementType<any> | undefined;
|
|
23
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
27
24
|
}, {}, {
|
|
28
25
|
ref?: import("react").Ref<View> | undefined;
|
|
29
26
|
}>;
|
|
30
27
|
declare const StyledErrorButtonPrimary: import("@emotion/native").StyledComponent<import("../Button/Button").ButtonProps & {
|
|
31
|
-
children?: import("react").ReactNode;
|
|
32
|
-
} & {
|
|
33
28
|
theme?: import("@emotion/react").Theme | undefined;
|
|
34
|
-
as?: import("react").ElementType<any> | undefined;
|
|
29
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
35
30
|
}, {}, {}>;
|
|
36
31
|
declare const StyledErrorButtonSecondary: import("@emotion/native").StyledComponent<import("../Button/Button").ButtonProps & {
|
|
37
|
-
children?: import("react").ReactNode;
|
|
38
|
-
} & {
|
|
39
32
|
theme?: import("@emotion/react").Theme | undefined;
|
|
40
|
-
as?: import("react").ElementType<any> | undefined;
|
|
33
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
41
34
|
}, {}, {}>;
|
|
42
35
|
declare const StyledErrorImageContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
43
36
|
theme?: import("@emotion/react").Theme | undefined;
|
|
44
|
-
as?: import("react").ElementType<any> | undefined;
|
|
37
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
45
38
|
}, {}, {
|
|
46
39
|
ref?: import("react").Ref<View> | undefined;
|
|
47
40
|
}>;
|
|
48
41
|
declare const StyledErrorImage: import("@emotion/native").StyledComponent<import("../Image").ImageProps & {
|
|
49
42
|
theme?: import("@emotion/react").Theme | undefined;
|
|
50
|
-
as?: import("react").ElementType<any> | undefined;
|
|
43
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
51
44
|
}, {}, {}>;
|
|
52
|
-
declare const StyledErrorTitle: import("@emotion/native").StyledComponent<import("
|
|
45
|
+
declare const StyledErrorTitle: import("@emotion/native").StyledComponent<import("../Typography/Title").TitleProps & {
|
|
53
46
|
theme?: import("@emotion/react").Theme | undefined;
|
|
54
|
-
as?: import("react").ElementType<any> | undefined;
|
|
47
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
55
48
|
}, {}, {}>;
|
|
56
|
-
declare const StyledErrorDescription: import("@emotion/native").StyledComponent<import("
|
|
49
|
+
declare const StyledErrorDescription: import("@emotion/native").StyledComponent<import("../Typography/Body").BodyProps & {
|
|
57
50
|
theme?: import("@emotion/react").Theme | undefined;
|
|
58
|
-
as?: import("react").ElementType<any> | undefined;
|
|
51
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
59
52
|
}, {}, {}>;
|
|
60
53
|
export { ErrorVariant, StyledErrorModal, StyledErrorImage, StyledErrorContainer, StyledErrorButtonContainer, StyledErrorButtonPrimary, StyledErrorButtonSecondary, StyledErrorContent, StyledErrorTitle, StyledErrorDescription, StyledErrorImageContainer, };
|
|
File without changes
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { ComponentProps } from 'react';
|
|
2
|
-
import type
|
|
3
|
+
import { type StyleProp, type ViewStyle } from 'react-native';
|
|
3
4
|
import Icon from '../../Icon';
|
|
4
5
|
export interface ActionItemProps {
|
|
5
6
|
testID?: string;
|
|
@@ -9,5 +10,9 @@ export interface ActionItemProps {
|
|
|
9
10
|
style?: StyleProp<ViewStyle>;
|
|
10
11
|
key?: string;
|
|
11
12
|
}
|
|
12
|
-
|
|
13
|
+
interface AnimatedActionItemProps extends ActionItemProps {
|
|
14
|
+
index: number;
|
|
15
|
+
active?: boolean;
|
|
16
|
+
}
|
|
17
|
+
declare const ActionItem: ({ icon, title, onPress, style, testID, index, active, }: AnimatedActionItemProps) => React.JSX.Element;
|
|
13
18
|
export default ActionItem;
|
|
@@ -1,31 +1,27 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Animated, View } from 'react-native';
|
|
3
2
|
import type { ViewProps } from 'react-native';
|
|
4
|
-
import type { TextProps } from '../../Typography/Text';
|
|
5
3
|
declare const StyledContainer: import("@emotion/native").StyledComponent<ViewProps & {
|
|
6
4
|
theme?: import("@emotion/react").Theme | undefined;
|
|
7
|
-
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
8
6
|
}, {}, {
|
|
9
7
|
ref?: import("react").Ref<View> | undefined;
|
|
10
8
|
}>;
|
|
11
|
-
declare const
|
|
12
|
-
children?: import("react").ReactNode;
|
|
13
|
-
} & {
|
|
9
|
+
declare const StyledContainerInModal: import("@emotion/native").StyledComponent<ViewProps & {
|
|
14
10
|
theme?: import("@emotion/react").Theme | undefined;
|
|
15
|
-
as?: import("react").ElementType<any> | undefined;
|
|
16
|
-
}, {}, {
|
|
17
|
-
|
|
11
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
12
|
+
}, {}, {
|
|
13
|
+
ref?: import("react").Ref<View> | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
declare const StyledActionGroupContainer: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
|
|
18
16
|
theme?: import("@emotion/react").Theme | undefined;
|
|
19
|
-
as?: import("react").ElementType<any> | undefined;
|
|
17
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
20
18
|
}, {}, {}>;
|
|
21
|
-
declare const
|
|
22
|
-
children?: import("react").ReactNode;
|
|
23
|
-
} & {
|
|
19
|
+
declare const StyledFAB: import("@emotion/native").StyledComponent<import("../FAB").FABProps & import("react").RefAttributes<import("../FAB").FABHandles> & {
|
|
24
20
|
theme?: import("@emotion/react").Theme | undefined;
|
|
25
|
-
as?: import("react").ElementType<any> | undefined;
|
|
21
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
26
22
|
}, {}, {}>;
|
|
27
|
-
declare const
|
|
23
|
+
declare const StyledBackdrop: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").PressableProps & import("react").RefAttributes<View>> & {
|
|
28
24
|
theme?: import("@emotion/react").Theme | undefined;
|
|
29
|
-
as?: import("react").ElementType<any> | undefined;
|
|
25
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
30
26
|
}, {}, {}>;
|
|
31
|
-
export {
|
|
27
|
+
export { StyledActionGroupContainer, StyledBackdrop, StyledContainer, StyledContainerInModal, StyledFAB, };
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { TouchableHighlight } from 'react-native';
|
|
3
2
|
import type { TouchableOpacityProps } from 'react-native';
|
|
4
3
|
import type { IconProps } from '../../Icon';
|
|
5
4
|
declare const StyledActionItem: import("@emotion/native").StyledComponent<import("react-native").TouchableHighlightProps & {
|
|
6
5
|
theme?: import("@emotion/react").Theme | undefined;
|
|
7
|
-
as?: import("react").ElementType<any> | undefined;
|
|
6
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
8
7
|
}, {}, {
|
|
9
8
|
ref?: import("react").Ref<TouchableHighlight> | undefined;
|
|
10
9
|
}>;
|
|
11
|
-
declare const StyledActionItemText: import("@emotion/native").StyledComponent<import("
|
|
10
|
+
declare const StyledActionItemText: import("@emotion/native").StyledComponent<import("../../Typography/Body").BodyProps & {
|
|
12
11
|
theme?: import("@emotion/react").Theme | undefined;
|
|
13
|
-
as?: import("react").ElementType<any> | undefined;
|
|
12
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
14
13
|
} & TouchableOpacityProps, {}, {}>;
|
|
15
14
|
declare const StyledIcon: import("@emotion/native").StyledComponent<IconProps & {
|
|
16
15
|
theme?: import("@emotion/react").Theme | undefined;
|
|
17
|
-
as?: import("react").ElementType<any> | undefined;
|
|
16
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
18
17
|
}, {}, {}>;
|
|
19
18
|
export { StyledIcon, StyledActionItem, StyledActionItemText };
|
|
@@ -1,8 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
2
3
|
import type { IconName } from '../../Icon';
|
|
3
4
|
import type { ActionItemProps } from './ActionItem';
|
|
5
|
+
export declare type ActionGroupHandles = {
|
|
6
|
+
showFAB: () => void;
|
|
7
|
+
collapseFAB: () => void;
|
|
8
|
+
hideFAB: () => void;
|
|
9
|
+
};
|
|
4
10
|
export interface ActionGroupProps {
|
|
5
11
|
/**
|
|
12
|
+
* @deprecated headerTitle will be removed in the next major release.
|
|
6
13
|
* Title of the action group header.
|
|
7
14
|
*/
|
|
8
15
|
headerTitle?: string;
|
|
@@ -10,6 +17,10 @@ export interface ActionGroupProps {
|
|
|
10
17
|
* This function is called on pressing the FAB button.
|
|
11
18
|
* */
|
|
12
19
|
onPress?: () => void;
|
|
20
|
+
/**
|
|
21
|
+
* This function is called on pressing the FAB backdrop.
|
|
22
|
+
* */
|
|
23
|
+
onBackdropPress?: () => void;
|
|
13
24
|
/**
|
|
14
25
|
* Specify if the FAB button is in active state and the action group is shown.
|
|
15
26
|
* */
|
|
@@ -35,5 +46,5 @@ export interface ActionGroupProps {
|
|
|
35
46
|
*/
|
|
36
47
|
testID?: string;
|
|
37
48
|
}
|
|
38
|
-
declare const ActionGroup:
|
|
49
|
+
declare const ActionGroup: React.ForwardRefExoticComponent<ActionGroupProps & React.RefAttributes<ActionGroupHandles>>;
|
|
39
50
|
export default ActionGroup;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { IconProps } from '../Icon';
|
|
2
3
|
declare type Props = {
|
|
3
4
|
active?: boolean;
|
|
4
5
|
} & IconProps;
|
|
5
|
-
declare const AnimatedFABIcon: ({ active, ...iconProps }: Props) => JSX.Element;
|
|
6
|
+
declare const AnimatedFABIcon: ({ active, ...iconProps }: Props) => React.JSX.Element;
|
|
6
7
|
export { AnimatedFABIcon };
|