@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
|
@@ -2,947 +2,1232 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`Toast Icon render custom icon correctly 1`] = `
|
|
4
4
|
<View
|
|
5
|
-
collapsable={false}
|
|
6
5
|
style={
|
|
7
|
-
|
|
8
|
-
"
|
|
9
|
-
"borderRadius": 0,
|
|
10
|
-
"elevation": 4,
|
|
11
|
-
"flexDirection": "row",
|
|
12
|
-
"minHeight": 48,
|
|
13
|
-
"opacity": 0,
|
|
14
|
-
"shadowColor": "#001f23",
|
|
15
|
-
"shadowOffset": Object {
|
|
16
|
-
"height": 2,
|
|
17
|
-
"width": 0,
|
|
18
|
-
},
|
|
19
|
-
"shadowOpacity": 0.12,
|
|
20
|
-
"shadowRadius": 4,
|
|
21
|
-
"transform": Array [
|
|
22
|
-
Object {
|
|
23
|
-
"translateY": 20,
|
|
24
|
-
},
|
|
25
|
-
],
|
|
6
|
+
{
|
|
7
|
+
"flex": 1,
|
|
26
8
|
}
|
|
27
9
|
}
|
|
28
|
-
themeIntent="info"
|
|
29
|
-
themeVariant="default"
|
|
30
10
|
>
|
|
31
11
|
<View
|
|
32
|
-
|
|
12
|
+
collapsable={false}
|
|
33
13
|
style={
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
14
|
+
{
|
|
15
|
+
"backgroundColor": "#b5c3fd",
|
|
16
|
+
"borderRadius": 0,
|
|
17
|
+
"elevation": 3,
|
|
18
|
+
"flexDirection": "row",
|
|
19
|
+
"minHeight": 48,
|
|
20
|
+
"opacity": 0,
|
|
21
|
+
"shadowColor": "#001f23",
|
|
22
|
+
"shadowOffset": {
|
|
23
|
+
"height": 2,
|
|
24
|
+
"width": 0,
|
|
41
25
|
},
|
|
42
|
-
|
|
43
|
-
|
|
26
|
+
"shadowOpacity": 0.12,
|
|
27
|
+
"shadowRadius": 4,
|
|
28
|
+
"transform": [
|
|
29
|
+
{
|
|
30
|
+
"translateY": 20,
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
}
|
|
44
34
|
}
|
|
35
|
+
themeIntent="info"
|
|
36
|
+
themeVariant="default"
|
|
45
37
|
>
|
|
46
38
|
<View
|
|
39
|
+
showDivider={false}
|
|
47
40
|
style={
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"
|
|
51
|
-
"
|
|
41
|
+
[
|
|
42
|
+
{
|
|
43
|
+
"borderColor": "#e8e9ea",
|
|
44
|
+
"borderRightWidth": 0,
|
|
45
|
+
"flex": 1,
|
|
46
|
+
"flexDirection": "row",
|
|
47
|
+
"paddingVertical": 12,
|
|
52
48
|
},
|
|
53
49
|
undefined,
|
|
54
50
|
]
|
|
55
51
|
}
|
|
56
|
-
testID="toast-left-icon"
|
|
57
52
|
>
|
|
58
|
-
<
|
|
59
|
-
name="home"
|
|
53
|
+
<View
|
|
60
54
|
style={
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
"
|
|
64
|
-
"
|
|
55
|
+
[
|
|
56
|
+
{
|
|
57
|
+
"alignItems": "center",
|
|
58
|
+
"paddingLeft": 12,
|
|
65
59
|
},
|
|
66
60
|
undefined,
|
|
67
61
|
]
|
|
68
62
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
63
|
+
testID="toast-left-icon"
|
|
64
|
+
>
|
|
65
|
+
<HeroIcon
|
|
66
|
+
name="home"
|
|
67
|
+
style={
|
|
68
|
+
[
|
|
69
|
+
{
|
|
70
|
+
"color": "#001f23",
|
|
71
|
+
"fontSize": 20,
|
|
72
|
+
},
|
|
73
|
+
undefined,
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
themeIntent="text"
|
|
77
|
+
themeSize="small"
|
|
78
|
+
/>
|
|
79
|
+
</View>
|
|
80
|
+
<View
|
|
86
81
|
style={
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"fontSize": 14,
|
|
92
|
-
"letterSpacing": 0.42,
|
|
93
|
-
"lineHeight": 22,
|
|
82
|
+
[
|
|
83
|
+
{
|
|
84
|
+
"flex": 1,
|
|
85
|
+
"paddingHorizontal": 12,
|
|
94
86
|
},
|
|
95
87
|
undefined,
|
|
96
88
|
]
|
|
97
89
|
}
|
|
98
|
-
themeFontSize="medium"
|
|
99
|
-
themeFontWeight="regular"
|
|
100
|
-
themeIntent="body"
|
|
101
|
-
themeTypeface="neutral"
|
|
102
90
|
>
|
|
103
|
-
|
|
104
|
-
|
|
91
|
+
<Text
|
|
92
|
+
allowFontScaling={false}
|
|
93
|
+
style={
|
|
94
|
+
[
|
|
95
|
+
{
|
|
96
|
+
"color": "#001f23",
|
|
97
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
98
|
+
"fontSize": 14,
|
|
99
|
+
"letterSpacing": 0.48,
|
|
100
|
+
"lineHeight": 22,
|
|
101
|
+
},
|
|
102
|
+
undefined,
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
themeIntent="body"
|
|
106
|
+
themeTypeface="neutral"
|
|
107
|
+
themeVariant="small"
|
|
108
|
+
>
|
|
109
|
+
Content
|
|
110
|
+
</Text>
|
|
111
|
+
</View>
|
|
105
112
|
</View>
|
|
106
113
|
</View>
|
|
114
|
+
<View
|
|
115
|
+
pointerEvents="box-none"
|
|
116
|
+
position="bottom"
|
|
117
|
+
style={
|
|
118
|
+
[
|
|
119
|
+
{
|
|
120
|
+
"bottom": 0,
|
|
121
|
+
"elevation": 9999,
|
|
122
|
+
"flexDirection": "column-reverse",
|
|
123
|
+
"left": 0,
|
|
124
|
+
"paddingHorizontal": 24,
|
|
125
|
+
"paddingVertical": 16,
|
|
126
|
+
"position": "absolute",
|
|
127
|
+
"right": 0,
|
|
128
|
+
"top": 0,
|
|
129
|
+
},
|
|
130
|
+
undefined,
|
|
131
|
+
]
|
|
132
|
+
}
|
|
133
|
+
/>
|
|
107
134
|
</View>
|
|
108
135
|
`;
|
|
109
136
|
|
|
110
137
|
exports[`Toast renders correctly when intent is error 1`] = `
|
|
111
138
|
<View
|
|
112
|
-
collapsable={false}
|
|
113
139
|
style={
|
|
114
|
-
|
|
115
|
-
"
|
|
116
|
-
"borderRadius": 0,
|
|
117
|
-
"elevation": 4,
|
|
118
|
-
"flexDirection": "row",
|
|
119
|
-
"minHeight": 48,
|
|
120
|
-
"opacity": 0,
|
|
121
|
-
"shadowColor": "#001f23",
|
|
122
|
-
"shadowOffset": Object {
|
|
123
|
-
"height": 2,
|
|
124
|
-
"width": 0,
|
|
125
|
-
},
|
|
126
|
-
"shadowOpacity": 0.12,
|
|
127
|
-
"shadowRadius": 4,
|
|
128
|
-
"transform": Array [
|
|
129
|
-
Object {
|
|
130
|
-
"translateY": 20,
|
|
131
|
-
},
|
|
132
|
-
],
|
|
140
|
+
{
|
|
141
|
+
"flex": 1,
|
|
133
142
|
}
|
|
134
143
|
}
|
|
135
|
-
themeIntent="error"
|
|
136
|
-
themeVariant="default"
|
|
137
144
|
>
|
|
138
145
|
<View
|
|
139
|
-
|
|
146
|
+
collapsable={false}
|
|
140
147
|
style={
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
+
{
|
|
149
|
+
"backgroundColor": "#f46363",
|
|
150
|
+
"borderRadius": 0,
|
|
151
|
+
"elevation": 3,
|
|
152
|
+
"flexDirection": "row",
|
|
153
|
+
"minHeight": 48,
|
|
154
|
+
"opacity": 0,
|
|
155
|
+
"shadowColor": "#001f23",
|
|
156
|
+
"shadowOffset": {
|
|
157
|
+
"height": 2,
|
|
158
|
+
"width": 0,
|
|
148
159
|
},
|
|
149
|
-
|
|
150
|
-
|
|
160
|
+
"shadowOpacity": 0.12,
|
|
161
|
+
"shadowRadius": 4,
|
|
162
|
+
"transform": [
|
|
163
|
+
{
|
|
164
|
+
"translateY": 20,
|
|
165
|
+
},
|
|
166
|
+
],
|
|
167
|
+
}
|
|
151
168
|
}
|
|
169
|
+
themeIntent="error"
|
|
170
|
+
themeVariant="default"
|
|
152
171
|
>
|
|
153
172
|
<View
|
|
173
|
+
showDivider={true}
|
|
154
174
|
style={
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
"
|
|
158
|
-
"
|
|
175
|
+
[
|
|
176
|
+
{
|
|
177
|
+
"borderColor": "#e8e9ea",
|
|
178
|
+
"borderRightWidth": 1,
|
|
179
|
+
"flex": 1,
|
|
180
|
+
"flexDirection": "row",
|
|
181
|
+
"paddingVertical": 12,
|
|
159
182
|
},
|
|
160
183
|
undefined,
|
|
161
184
|
]
|
|
162
185
|
}
|
|
163
|
-
testID="toast-left-icon"
|
|
164
186
|
>
|
|
165
|
-
<
|
|
166
|
-
name="circle-warning"
|
|
187
|
+
<View
|
|
167
188
|
style={
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
"
|
|
171
|
-
"
|
|
189
|
+
[
|
|
190
|
+
{
|
|
191
|
+
"alignItems": "center",
|
|
192
|
+
"paddingLeft": 12,
|
|
172
193
|
},
|
|
173
194
|
undefined,
|
|
174
195
|
]
|
|
175
196
|
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
197
|
+
testID="toast-left-icon"
|
|
198
|
+
>
|
|
199
|
+
<HeroIcon
|
|
200
|
+
name="circle-warning"
|
|
201
|
+
style={
|
|
202
|
+
[
|
|
203
|
+
{
|
|
204
|
+
"color": "#001f23",
|
|
205
|
+
"fontSize": 20,
|
|
206
|
+
},
|
|
207
|
+
undefined,
|
|
208
|
+
]
|
|
209
|
+
}
|
|
210
|
+
themeIntent="text"
|
|
211
|
+
themeSize="small"
|
|
212
|
+
/>
|
|
213
|
+
</View>
|
|
214
|
+
<View
|
|
215
|
+
style={
|
|
216
|
+
[
|
|
217
|
+
{
|
|
218
|
+
"flex": 1,
|
|
219
|
+
"paddingHorizontal": 12,
|
|
220
|
+
},
|
|
221
|
+
undefined,
|
|
222
|
+
]
|
|
223
|
+
}
|
|
224
|
+
>
|
|
225
|
+
<Text
|
|
226
|
+
allowFontScaling={false}
|
|
227
|
+
style={
|
|
228
|
+
[
|
|
229
|
+
{
|
|
230
|
+
"color": "#001f23",
|
|
231
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
232
|
+
"fontSize": 14,
|
|
233
|
+
"letterSpacing": 0.48,
|
|
234
|
+
"lineHeight": 22,
|
|
235
|
+
},
|
|
236
|
+
undefined,
|
|
237
|
+
]
|
|
238
|
+
}
|
|
239
|
+
themeIntent="body"
|
|
240
|
+
themeTypeface="neutral"
|
|
241
|
+
themeVariant="small"
|
|
242
|
+
>
|
|
243
|
+
Toast Content
|
|
244
|
+
</Text>
|
|
245
|
+
</View>
|
|
179
246
|
</View>
|
|
180
247
|
<View
|
|
248
|
+
accessibilityState={
|
|
249
|
+
{
|
|
250
|
+
"busy": undefined,
|
|
251
|
+
"checked": undefined,
|
|
252
|
+
"disabled": undefined,
|
|
253
|
+
"expanded": undefined,
|
|
254
|
+
"selected": undefined,
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
accessibilityValue={
|
|
258
|
+
{
|
|
259
|
+
"max": undefined,
|
|
260
|
+
"min": undefined,
|
|
261
|
+
"now": undefined,
|
|
262
|
+
"text": undefined,
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
accessible={true}
|
|
266
|
+
collapsable={false}
|
|
267
|
+
focusable={true}
|
|
268
|
+
onClick={[Function]}
|
|
269
|
+
onResponderGrant={[Function]}
|
|
270
|
+
onResponderMove={[Function]}
|
|
271
|
+
onResponderRelease={[Function]}
|
|
272
|
+
onResponderTerminate={[Function]}
|
|
273
|
+
onResponderTerminationRequest={[Function]}
|
|
274
|
+
onStartShouldSetResponder={[Function]}
|
|
181
275
|
style={
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
undefined,
|
|
188
|
-
]
|
|
276
|
+
{
|
|
277
|
+
"justifyContent": "center",
|
|
278
|
+
"opacity": 1,
|
|
279
|
+
"paddingHorizontal": 12,
|
|
280
|
+
}
|
|
189
281
|
}
|
|
282
|
+
testID="toast-action-button"
|
|
190
283
|
>
|
|
191
284
|
<Text
|
|
192
285
|
allowFontScaling={false}
|
|
193
286
|
style={
|
|
194
|
-
|
|
195
|
-
|
|
287
|
+
[
|
|
288
|
+
{
|
|
196
289
|
"color": "#001f23",
|
|
197
|
-
"fontFamily": "BeVietnamPro-
|
|
290
|
+
"fontFamily": "BeVietnamPro-SemiBold",
|
|
198
291
|
"fontSize": 14,
|
|
199
|
-
"letterSpacing": 0.
|
|
292
|
+
"letterSpacing": 0.24,
|
|
200
293
|
"lineHeight": 22,
|
|
201
294
|
},
|
|
202
295
|
undefined,
|
|
203
296
|
]
|
|
204
297
|
}
|
|
205
|
-
themeFontSize="medium"
|
|
206
|
-
themeFontWeight="regular"
|
|
207
298
|
themeIntent="body"
|
|
208
299
|
themeTypeface="neutral"
|
|
300
|
+
themeVariant="small-bold"
|
|
209
301
|
>
|
|
210
|
-
|
|
302
|
+
Action
|
|
211
303
|
</Text>
|
|
212
304
|
</View>
|
|
213
305
|
</View>
|
|
214
306
|
<View
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
focusable={true}
|
|
218
|
-
onClick={[Function]}
|
|
219
|
-
onResponderGrant={[Function]}
|
|
220
|
-
onResponderMove={[Function]}
|
|
221
|
-
onResponderRelease={[Function]}
|
|
222
|
-
onResponderTerminate={[Function]}
|
|
223
|
-
onResponderTerminationRequest={[Function]}
|
|
224
|
-
onStartShouldSetResponder={[Function]}
|
|
307
|
+
pointerEvents="box-none"
|
|
308
|
+
position="bottom"
|
|
225
309
|
style={
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
310
|
+
[
|
|
311
|
+
{
|
|
312
|
+
"bottom": 0,
|
|
313
|
+
"elevation": 9999,
|
|
314
|
+
"flexDirection": "column-reverse",
|
|
315
|
+
"left": 0,
|
|
316
|
+
"paddingHorizontal": 24,
|
|
317
|
+
"paddingVertical": 16,
|
|
318
|
+
"position": "absolute",
|
|
319
|
+
"right": 0,
|
|
320
|
+
"top": 0,
|
|
321
|
+
},
|
|
322
|
+
undefined,
|
|
323
|
+
]
|
|
231
324
|
}
|
|
232
|
-
|
|
233
|
-
>
|
|
234
|
-
<Text
|
|
235
|
-
allowFontScaling={false}
|
|
236
|
-
style={
|
|
237
|
-
Array [
|
|
238
|
-
Object {
|
|
239
|
-
"color": "#001f23",
|
|
240
|
-
"fontFamily": "BeVietnamPro-SemiBold",
|
|
241
|
-
"fontSize": 14,
|
|
242
|
-
"letterSpacing": 0.42,
|
|
243
|
-
"lineHeight": 22,
|
|
244
|
-
},
|
|
245
|
-
undefined,
|
|
246
|
-
]
|
|
247
|
-
}
|
|
248
|
-
themeFontSize="medium"
|
|
249
|
-
themeFontWeight="semi-bold"
|
|
250
|
-
themeIntent="body"
|
|
251
|
-
themeTypeface="neutral"
|
|
252
|
-
>
|
|
253
|
-
Action
|
|
254
|
-
</Text>
|
|
255
|
-
</View>
|
|
325
|
+
/>
|
|
256
326
|
</View>
|
|
257
327
|
`;
|
|
258
328
|
|
|
259
329
|
exports[`Toast renders correctly when intent is info 1`] = `
|
|
260
330
|
<View
|
|
261
|
-
collapsable={false}
|
|
262
331
|
style={
|
|
263
|
-
|
|
264
|
-
"
|
|
265
|
-
"borderRadius": 0,
|
|
266
|
-
"elevation": 4,
|
|
267
|
-
"flexDirection": "row",
|
|
268
|
-
"minHeight": 48,
|
|
269
|
-
"opacity": 0,
|
|
270
|
-
"shadowColor": "#001f23",
|
|
271
|
-
"shadowOffset": Object {
|
|
272
|
-
"height": 2,
|
|
273
|
-
"width": 0,
|
|
274
|
-
},
|
|
275
|
-
"shadowOpacity": 0.12,
|
|
276
|
-
"shadowRadius": 4,
|
|
277
|
-
"transform": Array [
|
|
278
|
-
Object {
|
|
279
|
-
"translateY": 20,
|
|
280
|
-
},
|
|
281
|
-
],
|
|
332
|
+
{
|
|
333
|
+
"flex": 1,
|
|
282
334
|
}
|
|
283
335
|
}
|
|
284
|
-
themeIntent="info"
|
|
285
|
-
themeVariant="default"
|
|
286
336
|
>
|
|
287
337
|
<View
|
|
288
|
-
|
|
338
|
+
collapsable={false}
|
|
289
339
|
style={
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
340
|
+
{
|
|
341
|
+
"backgroundColor": "#b5c3fd",
|
|
342
|
+
"borderRadius": 0,
|
|
343
|
+
"elevation": 3,
|
|
344
|
+
"flexDirection": "row",
|
|
345
|
+
"minHeight": 48,
|
|
346
|
+
"opacity": 0,
|
|
347
|
+
"shadowColor": "#001f23",
|
|
348
|
+
"shadowOffset": {
|
|
349
|
+
"height": 2,
|
|
350
|
+
"width": 0,
|
|
297
351
|
},
|
|
298
|
-
|
|
299
|
-
|
|
352
|
+
"shadowOpacity": 0.12,
|
|
353
|
+
"shadowRadius": 4,
|
|
354
|
+
"transform": [
|
|
355
|
+
{
|
|
356
|
+
"translateY": 20,
|
|
357
|
+
},
|
|
358
|
+
],
|
|
359
|
+
}
|
|
300
360
|
}
|
|
361
|
+
themeIntent="info"
|
|
362
|
+
themeVariant="default"
|
|
301
363
|
>
|
|
302
364
|
<View
|
|
365
|
+
showDivider={true}
|
|
303
366
|
style={
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
"
|
|
307
|
-
"
|
|
367
|
+
[
|
|
368
|
+
{
|
|
369
|
+
"borderColor": "#e8e9ea",
|
|
370
|
+
"borderRightWidth": 1,
|
|
371
|
+
"flex": 1,
|
|
372
|
+
"flexDirection": "row",
|
|
373
|
+
"paddingVertical": 12,
|
|
308
374
|
},
|
|
309
375
|
undefined,
|
|
310
376
|
]
|
|
311
377
|
}
|
|
312
|
-
testID="toast-left-icon"
|
|
313
378
|
>
|
|
314
|
-
<
|
|
315
|
-
name="circle-info"
|
|
379
|
+
<View
|
|
316
380
|
style={
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
"
|
|
320
|
-
"
|
|
381
|
+
[
|
|
382
|
+
{
|
|
383
|
+
"alignItems": "center",
|
|
384
|
+
"paddingLeft": 12,
|
|
321
385
|
},
|
|
322
386
|
undefined,
|
|
323
387
|
]
|
|
324
388
|
}
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
389
|
+
testID="toast-left-icon"
|
|
390
|
+
>
|
|
391
|
+
<HeroIcon
|
|
392
|
+
name="circle-info"
|
|
393
|
+
style={
|
|
394
|
+
[
|
|
395
|
+
{
|
|
396
|
+
"color": "#001f23",
|
|
397
|
+
"fontSize": 20,
|
|
398
|
+
},
|
|
399
|
+
undefined,
|
|
400
|
+
]
|
|
401
|
+
}
|
|
402
|
+
themeIntent="text"
|
|
403
|
+
themeSize="small"
|
|
404
|
+
/>
|
|
405
|
+
</View>
|
|
406
|
+
<View
|
|
407
|
+
style={
|
|
408
|
+
[
|
|
409
|
+
{
|
|
410
|
+
"flex": 1,
|
|
411
|
+
"paddingHorizontal": 12,
|
|
412
|
+
},
|
|
413
|
+
undefined,
|
|
414
|
+
]
|
|
415
|
+
}
|
|
416
|
+
>
|
|
417
|
+
<Text
|
|
418
|
+
allowFontScaling={false}
|
|
419
|
+
style={
|
|
420
|
+
[
|
|
421
|
+
{
|
|
422
|
+
"color": "#001f23",
|
|
423
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
424
|
+
"fontSize": 14,
|
|
425
|
+
"letterSpacing": 0.48,
|
|
426
|
+
"lineHeight": 22,
|
|
427
|
+
},
|
|
428
|
+
undefined,
|
|
429
|
+
]
|
|
430
|
+
}
|
|
431
|
+
themeIntent="body"
|
|
432
|
+
themeTypeface="neutral"
|
|
433
|
+
themeVariant="small"
|
|
434
|
+
>
|
|
435
|
+
Toast Content
|
|
436
|
+
</Text>
|
|
437
|
+
</View>
|
|
328
438
|
</View>
|
|
329
439
|
<View
|
|
440
|
+
accessibilityState={
|
|
441
|
+
{
|
|
442
|
+
"busy": undefined,
|
|
443
|
+
"checked": undefined,
|
|
444
|
+
"disabled": undefined,
|
|
445
|
+
"expanded": undefined,
|
|
446
|
+
"selected": undefined,
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
accessibilityValue={
|
|
450
|
+
{
|
|
451
|
+
"max": undefined,
|
|
452
|
+
"min": undefined,
|
|
453
|
+
"now": undefined,
|
|
454
|
+
"text": undefined,
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
accessible={true}
|
|
458
|
+
collapsable={false}
|
|
459
|
+
focusable={true}
|
|
460
|
+
onClick={[Function]}
|
|
461
|
+
onResponderGrant={[Function]}
|
|
462
|
+
onResponderMove={[Function]}
|
|
463
|
+
onResponderRelease={[Function]}
|
|
464
|
+
onResponderTerminate={[Function]}
|
|
465
|
+
onResponderTerminationRequest={[Function]}
|
|
466
|
+
onStartShouldSetResponder={[Function]}
|
|
330
467
|
style={
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
undefined,
|
|
337
|
-
]
|
|
468
|
+
{
|
|
469
|
+
"justifyContent": "center",
|
|
470
|
+
"opacity": 1,
|
|
471
|
+
"paddingHorizontal": 12,
|
|
472
|
+
}
|
|
338
473
|
}
|
|
474
|
+
testID="toast-action-button"
|
|
339
475
|
>
|
|
340
476
|
<Text
|
|
341
477
|
allowFontScaling={false}
|
|
342
478
|
style={
|
|
343
|
-
|
|
344
|
-
|
|
479
|
+
[
|
|
480
|
+
{
|
|
345
481
|
"color": "#001f23",
|
|
346
|
-
"fontFamily": "BeVietnamPro-
|
|
482
|
+
"fontFamily": "BeVietnamPro-SemiBold",
|
|
347
483
|
"fontSize": 14,
|
|
348
|
-
"letterSpacing": 0.
|
|
484
|
+
"letterSpacing": 0.24,
|
|
349
485
|
"lineHeight": 22,
|
|
350
486
|
},
|
|
351
487
|
undefined,
|
|
352
488
|
]
|
|
353
489
|
}
|
|
354
|
-
themeFontSize="medium"
|
|
355
|
-
themeFontWeight="regular"
|
|
356
490
|
themeIntent="body"
|
|
357
491
|
themeTypeface="neutral"
|
|
492
|
+
themeVariant="small-bold"
|
|
358
493
|
>
|
|
359
|
-
|
|
494
|
+
Action
|
|
360
495
|
</Text>
|
|
361
496
|
</View>
|
|
362
497
|
</View>
|
|
363
498
|
<View
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
focusable={true}
|
|
367
|
-
onClick={[Function]}
|
|
368
|
-
onResponderGrant={[Function]}
|
|
369
|
-
onResponderMove={[Function]}
|
|
370
|
-
onResponderRelease={[Function]}
|
|
371
|
-
onResponderTerminate={[Function]}
|
|
372
|
-
onResponderTerminationRequest={[Function]}
|
|
373
|
-
onStartShouldSetResponder={[Function]}
|
|
499
|
+
pointerEvents="box-none"
|
|
500
|
+
position="bottom"
|
|
374
501
|
style={
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
502
|
+
[
|
|
503
|
+
{
|
|
504
|
+
"bottom": 0,
|
|
505
|
+
"elevation": 9999,
|
|
506
|
+
"flexDirection": "column-reverse",
|
|
507
|
+
"left": 0,
|
|
508
|
+
"paddingHorizontal": 24,
|
|
509
|
+
"paddingVertical": 16,
|
|
510
|
+
"position": "absolute",
|
|
511
|
+
"right": 0,
|
|
512
|
+
"top": 0,
|
|
513
|
+
},
|
|
514
|
+
undefined,
|
|
515
|
+
]
|
|
380
516
|
}
|
|
381
|
-
|
|
382
|
-
>
|
|
383
|
-
<Text
|
|
384
|
-
allowFontScaling={false}
|
|
385
|
-
style={
|
|
386
|
-
Array [
|
|
387
|
-
Object {
|
|
388
|
-
"color": "#001f23",
|
|
389
|
-
"fontFamily": "BeVietnamPro-SemiBold",
|
|
390
|
-
"fontSize": 14,
|
|
391
|
-
"letterSpacing": 0.42,
|
|
392
|
-
"lineHeight": 22,
|
|
393
|
-
},
|
|
394
|
-
undefined,
|
|
395
|
-
]
|
|
396
|
-
}
|
|
397
|
-
themeFontSize="medium"
|
|
398
|
-
themeFontWeight="semi-bold"
|
|
399
|
-
themeIntent="body"
|
|
400
|
-
themeTypeface="neutral"
|
|
401
|
-
>
|
|
402
|
-
Action
|
|
403
|
-
</Text>
|
|
404
|
-
</View>
|
|
517
|
+
/>
|
|
405
518
|
</View>
|
|
406
519
|
`;
|
|
407
520
|
|
|
408
521
|
exports[`Toast renders correctly when intent is notification 1`] = `
|
|
409
522
|
<View
|
|
410
|
-
collapsable={false}
|
|
411
523
|
style={
|
|
412
|
-
|
|
413
|
-
"
|
|
414
|
-
"borderRadius": 0,
|
|
415
|
-
"elevation": 4,
|
|
416
|
-
"flexDirection": "row",
|
|
417
|
-
"minHeight": 48,
|
|
418
|
-
"opacity": 0,
|
|
419
|
-
"shadowColor": "#001f23",
|
|
420
|
-
"shadowOffset": Object {
|
|
421
|
-
"height": 2,
|
|
422
|
-
"width": 0,
|
|
423
|
-
},
|
|
424
|
-
"shadowOpacity": 0.12,
|
|
425
|
-
"shadowRadius": 4,
|
|
426
|
-
"transform": Array [
|
|
427
|
-
Object {
|
|
428
|
-
"translateY": 20,
|
|
429
|
-
},
|
|
430
|
-
],
|
|
524
|
+
{
|
|
525
|
+
"flex": 1,
|
|
431
526
|
}
|
|
432
527
|
}
|
|
433
|
-
themeIntent="notification"
|
|
434
|
-
themeVariant="default"
|
|
435
528
|
>
|
|
436
529
|
<View
|
|
437
|
-
|
|
530
|
+
collapsable={false}
|
|
438
531
|
style={
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
532
|
+
{
|
|
533
|
+
"backgroundColor": "#ffffff",
|
|
534
|
+
"borderRadius": 0,
|
|
535
|
+
"elevation": 3,
|
|
536
|
+
"flexDirection": "row",
|
|
537
|
+
"minHeight": 48,
|
|
538
|
+
"opacity": 0,
|
|
539
|
+
"shadowColor": "#001f23",
|
|
540
|
+
"shadowOffset": {
|
|
541
|
+
"height": 2,
|
|
542
|
+
"width": 0,
|
|
446
543
|
},
|
|
447
|
-
|
|
448
|
-
|
|
544
|
+
"shadowOpacity": 0.12,
|
|
545
|
+
"shadowRadius": 4,
|
|
546
|
+
"transform": [
|
|
547
|
+
{
|
|
548
|
+
"translateY": 20,
|
|
549
|
+
},
|
|
550
|
+
],
|
|
551
|
+
}
|
|
449
552
|
}
|
|
553
|
+
themeIntent="notification"
|
|
554
|
+
themeVariant="default"
|
|
450
555
|
>
|
|
451
556
|
<View
|
|
557
|
+
showDivider={true}
|
|
452
558
|
style={
|
|
453
|
-
|
|
454
|
-
|
|
559
|
+
[
|
|
560
|
+
{
|
|
561
|
+
"borderColor": "#e8e9ea",
|
|
562
|
+
"borderRightWidth": 1,
|
|
455
563
|
"flex": 1,
|
|
456
|
-
"
|
|
564
|
+
"flexDirection": "row",
|
|
565
|
+
"paddingVertical": 12,
|
|
457
566
|
},
|
|
458
567
|
undefined,
|
|
459
568
|
]
|
|
460
569
|
}
|
|
570
|
+
>
|
|
571
|
+
<View
|
|
572
|
+
style={
|
|
573
|
+
[
|
|
574
|
+
{
|
|
575
|
+
"flex": 1,
|
|
576
|
+
"paddingHorizontal": 12,
|
|
577
|
+
},
|
|
578
|
+
undefined,
|
|
579
|
+
]
|
|
580
|
+
}
|
|
581
|
+
>
|
|
582
|
+
<Text
|
|
583
|
+
allowFontScaling={false}
|
|
584
|
+
style={
|
|
585
|
+
[
|
|
586
|
+
{
|
|
587
|
+
"color": "#001f23",
|
|
588
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
589
|
+
"fontSize": 14,
|
|
590
|
+
"letterSpacing": 0.48,
|
|
591
|
+
"lineHeight": 22,
|
|
592
|
+
},
|
|
593
|
+
undefined,
|
|
594
|
+
]
|
|
595
|
+
}
|
|
596
|
+
themeIntent="body"
|
|
597
|
+
themeTypeface="neutral"
|
|
598
|
+
themeVariant="small"
|
|
599
|
+
>
|
|
600
|
+
Toast Content
|
|
601
|
+
</Text>
|
|
602
|
+
</View>
|
|
603
|
+
</View>
|
|
604
|
+
<View
|
|
605
|
+
accessibilityState={
|
|
606
|
+
{
|
|
607
|
+
"busy": undefined,
|
|
608
|
+
"checked": undefined,
|
|
609
|
+
"disabled": undefined,
|
|
610
|
+
"expanded": undefined,
|
|
611
|
+
"selected": undefined,
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
accessibilityValue={
|
|
615
|
+
{
|
|
616
|
+
"max": undefined,
|
|
617
|
+
"min": undefined,
|
|
618
|
+
"now": undefined,
|
|
619
|
+
"text": undefined,
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
accessible={true}
|
|
623
|
+
collapsable={false}
|
|
624
|
+
focusable={true}
|
|
625
|
+
onClick={[Function]}
|
|
626
|
+
onResponderGrant={[Function]}
|
|
627
|
+
onResponderMove={[Function]}
|
|
628
|
+
onResponderRelease={[Function]}
|
|
629
|
+
onResponderTerminate={[Function]}
|
|
630
|
+
onResponderTerminationRequest={[Function]}
|
|
631
|
+
onStartShouldSetResponder={[Function]}
|
|
632
|
+
style={
|
|
633
|
+
{
|
|
634
|
+
"justifyContent": "center",
|
|
635
|
+
"opacity": 1,
|
|
636
|
+
"paddingHorizontal": 12,
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
testID="toast-action-button"
|
|
461
640
|
>
|
|
462
641
|
<Text
|
|
463
642
|
allowFontScaling={false}
|
|
464
643
|
style={
|
|
465
|
-
|
|
466
|
-
|
|
644
|
+
[
|
|
645
|
+
{
|
|
467
646
|
"color": "#001f23",
|
|
468
|
-
"fontFamily": "BeVietnamPro-
|
|
647
|
+
"fontFamily": "BeVietnamPro-SemiBold",
|
|
469
648
|
"fontSize": 14,
|
|
470
|
-
"letterSpacing": 0.
|
|
649
|
+
"letterSpacing": 0.24,
|
|
471
650
|
"lineHeight": 22,
|
|
472
651
|
},
|
|
473
652
|
undefined,
|
|
474
653
|
]
|
|
475
654
|
}
|
|
476
|
-
themeFontSize="medium"
|
|
477
|
-
themeFontWeight="regular"
|
|
478
655
|
themeIntent="body"
|
|
479
656
|
themeTypeface="neutral"
|
|
657
|
+
themeVariant="small-bold"
|
|
480
658
|
>
|
|
481
|
-
|
|
659
|
+
Action
|
|
482
660
|
</Text>
|
|
483
661
|
</View>
|
|
484
662
|
</View>
|
|
485
663
|
<View
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
focusable={true}
|
|
489
|
-
onClick={[Function]}
|
|
490
|
-
onResponderGrant={[Function]}
|
|
491
|
-
onResponderMove={[Function]}
|
|
492
|
-
onResponderRelease={[Function]}
|
|
493
|
-
onResponderTerminate={[Function]}
|
|
494
|
-
onResponderTerminationRequest={[Function]}
|
|
495
|
-
onStartShouldSetResponder={[Function]}
|
|
664
|
+
pointerEvents="box-none"
|
|
665
|
+
position="bottom"
|
|
496
666
|
style={
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
667
|
+
[
|
|
668
|
+
{
|
|
669
|
+
"bottom": 0,
|
|
670
|
+
"elevation": 9999,
|
|
671
|
+
"flexDirection": "column-reverse",
|
|
672
|
+
"left": 0,
|
|
673
|
+
"paddingHorizontal": 24,
|
|
674
|
+
"paddingVertical": 16,
|
|
675
|
+
"position": "absolute",
|
|
676
|
+
"right": 0,
|
|
677
|
+
"top": 0,
|
|
678
|
+
},
|
|
679
|
+
undefined,
|
|
680
|
+
]
|
|
502
681
|
}
|
|
503
|
-
|
|
504
|
-
>
|
|
505
|
-
<Text
|
|
506
|
-
allowFontScaling={false}
|
|
507
|
-
style={
|
|
508
|
-
Array [
|
|
509
|
-
Object {
|
|
510
|
-
"color": "#001f23",
|
|
511
|
-
"fontFamily": "BeVietnamPro-SemiBold",
|
|
512
|
-
"fontSize": 14,
|
|
513
|
-
"letterSpacing": 0.42,
|
|
514
|
-
"lineHeight": 22,
|
|
515
|
-
},
|
|
516
|
-
undefined,
|
|
517
|
-
]
|
|
518
|
-
}
|
|
519
|
-
themeFontSize="medium"
|
|
520
|
-
themeFontWeight="semi-bold"
|
|
521
|
-
themeIntent="body"
|
|
522
|
-
themeTypeface="neutral"
|
|
523
|
-
>
|
|
524
|
-
Action
|
|
525
|
-
</Text>
|
|
526
|
-
</View>
|
|
682
|
+
/>
|
|
527
683
|
</View>
|
|
528
684
|
`;
|
|
529
685
|
|
|
530
686
|
exports[`Toast renders correctly when intent is snackbar 1`] = `
|
|
531
687
|
<View
|
|
532
|
-
collapsable={false}
|
|
533
688
|
style={
|
|
534
|
-
|
|
535
|
-
"
|
|
536
|
-
"borderRadius": 0,
|
|
537
|
-
"elevation": 4,
|
|
538
|
-
"flexDirection": "row",
|
|
539
|
-
"minHeight": 48,
|
|
540
|
-
"opacity": 0,
|
|
541
|
-
"shadowColor": "#001f23",
|
|
542
|
-
"shadowOffset": Object {
|
|
543
|
-
"height": 2,
|
|
544
|
-
"width": 0,
|
|
545
|
-
},
|
|
546
|
-
"shadowOpacity": 0.12,
|
|
547
|
-
"shadowRadius": 4,
|
|
548
|
-
"transform": Array [
|
|
549
|
-
Object {
|
|
550
|
-
"translateY": 20,
|
|
551
|
-
},
|
|
552
|
-
],
|
|
689
|
+
{
|
|
690
|
+
"flex": 1,
|
|
553
691
|
}
|
|
554
692
|
}
|
|
555
|
-
themeIntent="snackbar"
|
|
556
|
-
themeVariant="default"
|
|
557
693
|
>
|
|
558
694
|
<View
|
|
559
|
-
|
|
695
|
+
collapsable={false}
|
|
560
696
|
style={
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
697
|
+
{
|
|
698
|
+
"backgroundColor": "#001f23",
|
|
699
|
+
"borderRadius": 0,
|
|
700
|
+
"elevation": 3,
|
|
701
|
+
"flexDirection": "row",
|
|
702
|
+
"minHeight": 48,
|
|
703
|
+
"opacity": 0,
|
|
704
|
+
"shadowColor": "#001f23",
|
|
705
|
+
"shadowOffset": {
|
|
706
|
+
"height": 2,
|
|
707
|
+
"width": 0,
|
|
568
708
|
},
|
|
569
|
-
|
|
570
|
-
|
|
709
|
+
"shadowOpacity": 0.12,
|
|
710
|
+
"shadowRadius": 4,
|
|
711
|
+
"transform": [
|
|
712
|
+
{
|
|
713
|
+
"translateY": 20,
|
|
714
|
+
},
|
|
715
|
+
],
|
|
716
|
+
}
|
|
571
717
|
}
|
|
718
|
+
themeIntent="snackbar"
|
|
719
|
+
themeVariant="default"
|
|
572
720
|
>
|
|
573
721
|
<View
|
|
722
|
+
showDivider={true}
|
|
574
723
|
style={
|
|
575
|
-
|
|
576
|
-
|
|
724
|
+
[
|
|
725
|
+
{
|
|
726
|
+
"borderColor": "#e8e9ea",
|
|
727
|
+
"borderRightWidth": 1,
|
|
577
728
|
"flex": 1,
|
|
578
|
-
"
|
|
729
|
+
"flexDirection": "row",
|
|
730
|
+
"paddingVertical": 12,
|
|
579
731
|
},
|
|
580
732
|
undefined,
|
|
581
733
|
]
|
|
582
734
|
}
|
|
735
|
+
>
|
|
736
|
+
<View
|
|
737
|
+
style={
|
|
738
|
+
[
|
|
739
|
+
{
|
|
740
|
+
"flex": 1,
|
|
741
|
+
"paddingHorizontal": 12,
|
|
742
|
+
},
|
|
743
|
+
undefined,
|
|
744
|
+
]
|
|
745
|
+
}
|
|
746
|
+
>
|
|
747
|
+
<Text
|
|
748
|
+
allowFontScaling={false}
|
|
749
|
+
style={
|
|
750
|
+
[
|
|
751
|
+
{
|
|
752
|
+
"color": "#ffffff",
|
|
753
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
754
|
+
"fontSize": 14,
|
|
755
|
+
"letterSpacing": 0.48,
|
|
756
|
+
"lineHeight": 22,
|
|
757
|
+
},
|
|
758
|
+
undefined,
|
|
759
|
+
]
|
|
760
|
+
}
|
|
761
|
+
themeIntent="inverted"
|
|
762
|
+
themeTypeface="neutral"
|
|
763
|
+
themeVariant="small"
|
|
764
|
+
>
|
|
765
|
+
Toast Content
|
|
766
|
+
</Text>
|
|
767
|
+
</View>
|
|
768
|
+
</View>
|
|
769
|
+
<View
|
|
770
|
+
accessibilityState={
|
|
771
|
+
{
|
|
772
|
+
"busy": undefined,
|
|
773
|
+
"checked": undefined,
|
|
774
|
+
"disabled": undefined,
|
|
775
|
+
"expanded": undefined,
|
|
776
|
+
"selected": undefined,
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
accessibilityValue={
|
|
780
|
+
{
|
|
781
|
+
"max": undefined,
|
|
782
|
+
"min": undefined,
|
|
783
|
+
"now": undefined,
|
|
784
|
+
"text": undefined,
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
accessible={true}
|
|
788
|
+
collapsable={false}
|
|
789
|
+
focusable={true}
|
|
790
|
+
onClick={[Function]}
|
|
791
|
+
onResponderGrant={[Function]}
|
|
792
|
+
onResponderMove={[Function]}
|
|
793
|
+
onResponderRelease={[Function]}
|
|
794
|
+
onResponderTerminate={[Function]}
|
|
795
|
+
onResponderTerminationRequest={[Function]}
|
|
796
|
+
onStartShouldSetResponder={[Function]}
|
|
797
|
+
style={
|
|
798
|
+
{
|
|
799
|
+
"justifyContent": "center",
|
|
800
|
+
"opacity": 1,
|
|
801
|
+
"paddingHorizontal": 12,
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
testID="toast-action-button"
|
|
583
805
|
>
|
|
584
806
|
<Text
|
|
585
807
|
allowFontScaling={false}
|
|
586
808
|
style={
|
|
587
|
-
|
|
588
|
-
|
|
809
|
+
[
|
|
810
|
+
{
|
|
589
811
|
"color": "#ffffff",
|
|
590
|
-
"fontFamily": "BeVietnamPro-
|
|
812
|
+
"fontFamily": "BeVietnamPro-SemiBold",
|
|
591
813
|
"fontSize": 14,
|
|
592
|
-
"letterSpacing": 0.
|
|
814
|
+
"letterSpacing": 0.24,
|
|
593
815
|
"lineHeight": 22,
|
|
594
816
|
},
|
|
595
817
|
undefined,
|
|
596
818
|
]
|
|
597
819
|
}
|
|
598
|
-
themeFontSize="medium"
|
|
599
|
-
themeFontWeight="regular"
|
|
600
820
|
themeIntent="inverted"
|
|
601
821
|
themeTypeface="neutral"
|
|
822
|
+
themeVariant="small-bold"
|
|
602
823
|
>
|
|
603
|
-
|
|
824
|
+
Action
|
|
604
825
|
</Text>
|
|
605
826
|
</View>
|
|
606
827
|
</View>
|
|
607
828
|
<View
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
focusable={true}
|
|
611
|
-
onClick={[Function]}
|
|
612
|
-
onResponderGrant={[Function]}
|
|
613
|
-
onResponderMove={[Function]}
|
|
614
|
-
onResponderRelease={[Function]}
|
|
615
|
-
onResponderTerminate={[Function]}
|
|
616
|
-
onResponderTerminationRequest={[Function]}
|
|
617
|
-
onStartShouldSetResponder={[Function]}
|
|
829
|
+
pointerEvents="box-none"
|
|
830
|
+
position="bottom"
|
|
618
831
|
style={
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
832
|
+
[
|
|
833
|
+
{
|
|
834
|
+
"bottom": 0,
|
|
835
|
+
"elevation": 9999,
|
|
836
|
+
"flexDirection": "column-reverse",
|
|
837
|
+
"left": 0,
|
|
838
|
+
"paddingHorizontal": 24,
|
|
839
|
+
"paddingVertical": 16,
|
|
840
|
+
"position": "absolute",
|
|
841
|
+
"right": 0,
|
|
842
|
+
"top": 0,
|
|
843
|
+
},
|
|
844
|
+
undefined,
|
|
845
|
+
]
|
|
624
846
|
}
|
|
625
|
-
|
|
626
|
-
>
|
|
627
|
-
<Text
|
|
628
|
-
allowFontScaling={false}
|
|
629
|
-
style={
|
|
630
|
-
Array [
|
|
631
|
-
Object {
|
|
632
|
-
"color": "#ffffff",
|
|
633
|
-
"fontFamily": "BeVietnamPro-SemiBold",
|
|
634
|
-
"fontSize": 14,
|
|
635
|
-
"letterSpacing": 0.42,
|
|
636
|
-
"lineHeight": 22,
|
|
637
|
-
},
|
|
638
|
-
undefined,
|
|
639
|
-
]
|
|
640
|
-
}
|
|
641
|
-
themeFontSize="medium"
|
|
642
|
-
themeFontWeight="semi-bold"
|
|
643
|
-
themeIntent="inverted"
|
|
644
|
-
themeTypeface="neutral"
|
|
645
|
-
>
|
|
646
|
-
Action
|
|
647
|
-
</Text>
|
|
648
|
-
</View>
|
|
847
|
+
/>
|
|
649
848
|
</View>
|
|
650
849
|
`;
|
|
651
850
|
|
|
652
851
|
exports[`Toast renders correctly when intent is success 1`] = `
|
|
653
852
|
<View
|
|
654
|
-
collapsable={false}
|
|
655
853
|
style={
|
|
656
|
-
|
|
657
|
-
"
|
|
658
|
-
"borderRadius": 0,
|
|
659
|
-
"elevation": 4,
|
|
660
|
-
"flexDirection": "row",
|
|
661
|
-
"minHeight": 48,
|
|
662
|
-
"opacity": 0,
|
|
663
|
-
"shadowColor": "#001f23",
|
|
664
|
-
"shadowOffset": Object {
|
|
665
|
-
"height": 2,
|
|
666
|
-
"width": 0,
|
|
667
|
-
},
|
|
668
|
-
"shadowOpacity": 0.12,
|
|
669
|
-
"shadowRadius": 4,
|
|
670
|
-
"transform": Array [
|
|
671
|
-
Object {
|
|
672
|
-
"translateY": 20,
|
|
673
|
-
},
|
|
674
|
-
],
|
|
854
|
+
{
|
|
855
|
+
"flex": 1,
|
|
675
856
|
}
|
|
676
857
|
}
|
|
677
|
-
themeIntent="success"
|
|
678
|
-
themeVariant="default"
|
|
679
858
|
>
|
|
680
859
|
<View
|
|
681
|
-
|
|
860
|
+
collapsable={false}
|
|
682
861
|
style={
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
862
|
+
{
|
|
863
|
+
"backgroundColor": "#5ace7d",
|
|
864
|
+
"borderRadius": 0,
|
|
865
|
+
"elevation": 3,
|
|
866
|
+
"flexDirection": "row",
|
|
867
|
+
"minHeight": 48,
|
|
868
|
+
"opacity": 0,
|
|
869
|
+
"shadowColor": "#001f23",
|
|
870
|
+
"shadowOffset": {
|
|
871
|
+
"height": 2,
|
|
872
|
+
"width": 0,
|
|
690
873
|
},
|
|
691
|
-
|
|
692
|
-
|
|
874
|
+
"shadowOpacity": 0.12,
|
|
875
|
+
"shadowRadius": 4,
|
|
876
|
+
"transform": [
|
|
877
|
+
{
|
|
878
|
+
"translateY": 20,
|
|
879
|
+
},
|
|
880
|
+
],
|
|
881
|
+
}
|
|
693
882
|
}
|
|
883
|
+
themeIntent="success"
|
|
884
|
+
themeVariant="default"
|
|
694
885
|
>
|
|
695
886
|
<View
|
|
887
|
+
showDivider={true}
|
|
696
888
|
style={
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
"
|
|
700
|
-
"
|
|
889
|
+
[
|
|
890
|
+
{
|
|
891
|
+
"borderColor": "#e8e9ea",
|
|
892
|
+
"borderRightWidth": 1,
|
|
893
|
+
"flex": 1,
|
|
894
|
+
"flexDirection": "row",
|
|
895
|
+
"paddingVertical": 12,
|
|
701
896
|
},
|
|
702
897
|
undefined,
|
|
703
898
|
]
|
|
704
899
|
}
|
|
705
|
-
testID="toast-left-icon"
|
|
706
900
|
>
|
|
707
|
-
<
|
|
708
|
-
name="circle-ok"
|
|
901
|
+
<View
|
|
709
902
|
style={
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
"
|
|
713
|
-
"
|
|
903
|
+
[
|
|
904
|
+
{
|
|
905
|
+
"alignItems": "center",
|
|
906
|
+
"paddingLeft": 12,
|
|
714
907
|
},
|
|
715
908
|
undefined,
|
|
716
909
|
]
|
|
717
910
|
}
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
911
|
+
testID="toast-left-icon"
|
|
912
|
+
>
|
|
913
|
+
<HeroIcon
|
|
914
|
+
name="circle-ok"
|
|
915
|
+
style={
|
|
916
|
+
[
|
|
917
|
+
{
|
|
918
|
+
"color": "#001f23",
|
|
919
|
+
"fontSize": 20,
|
|
920
|
+
},
|
|
921
|
+
undefined,
|
|
922
|
+
]
|
|
923
|
+
}
|
|
924
|
+
themeIntent="text"
|
|
925
|
+
themeSize="small"
|
|
926
|
+
/>
|
|
927
|
+
</View>
|
|
928
|
+
<View
|
|
929
|
+
style={
|
|
930
|
+
[
|
|
931
|
+
{
|
|
932
|
+
"flex": 1,
|
|
933
|
+
"paddingHorizontal": 12,
|
|
934
|
+
},
|
|
935
|
+
undefined,
|
|
936
|
+
]
|
|
937
|
+
}
|
|
938
|
+
>
|
|
939
|
+
<Text
|
|
940
|
+
allowFontScaling={false}
|
|
941
|
+
style={
|
|
942
|
+
[
|
|
943
|
+
{
|
|
944
|
+
"color": "#001f23",
|
|
945
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
946
|
+
"fontSize": 14,
|
|
947
|
+
"letterSpacing": 0.48,
|
|
948
|
+
"lineHeight": 22,
|
|
949
|
+
},
|
|
950
|
+
undefined,
|
|
951
|
+
]
|
|
952
|
+
}
|
|
953
|
+
themeIntent="body"
|
|
954
|
+
themeTypeface="neutral"
|
|
955
|
+
themeVariant="small"
|
|
956
|
+
>
|
|
957
|
+
Toast Content
|
|
958
|
+
</Text>
|
|
959
|
+
</View>
|
|
721
960
|
</View>
|
|
722
961
|
<View
|
|
962
|
+
accessibilityState={
|
|
963
|
+
{
|
|
964
|
+
"busy": undefined,
|
|
965
|
+
"checked": undefined,
|
|
966
|
+
"disabled": undefined,
|
|
967
|
+
"expanded": undefined,
|
|
968
|
+
"selected": undefined,
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
accessibilityValue={
|
|
972
|
+
{
|
|
973
|
+
"max": undefined,
|
|
974
|
+
"min": undefined,
|
|
975
|
+
"now": undefined,
|
|
976
|
+
"text": undefined,
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
accessible={true}
|
|
980
|
+
collapsable={false}
|
|
981
|
+
focusable={true}
|
|
982
|
+
onClick={[Function]}
|
|
983
|
+
onResponderGrant={[Function]}
|
|
984
|
+
onResponderMove={[Function]}
|
|
985
|
+
onResponderRelease={[Function]}
|
|
986
|
+
onResponderTerminate={[Function]}
|
|
987
|
+
onResponderTerminationRequest={[Function]}
|
|
988
|
+
onStartShouldSetResponder={[Function]}
|
|
723
989
|
style={
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
undefined,
|
|
730
|
-
]
|
|
990
|
+
{
|
|
991
|
+
"justifyContent": "center",
|
|
992
|
+
"opacity": 1,
|
|
993
|
+
"paddingHorizontal": 12,
|
|
994
|
+
}
|
|
731
995
|
}
|
|
996
|
+
testID="toast-action-button"
|
|
732
997
|
>
|
|
733
998
|
<Text
|
|
734
999
|
allowFontScaling={false}
|
|
735
1000
|
style={
|
|
736
|
-
|
|
737
|
-
|
|
1001
|
+
[
|
|
1002
|
+
{
|
|
738
1003
|
"color": "#001f23",
|
|
739
|
-
"fontFamily": "BeVietnamPro-
|
|
1004
|
+
"fontFamily": "BeVietnamPro-SemiBold",
|
|
740
1005
|
"fontSize": 14,
|
|
741
|
-
"letterSpacing": 0.
|
|
1006
|
+
"letterSpacing": 0.24,
|
|
742
1007
|
"lineHeight": 22,
|
|
743
1008
|
},
|
|
744
1009
|
undefined,
|
|
745
1010
|
]
|
|
746
1011
|
}
|
|
747
|
-
themeFontSize="medium"
|
|
748
|
-
themeFontWeight="regular"
|
|
749
1012
|
themeIntent="body"
|
|
750
1013
|
themeTypeface="neutral"
|
|
1014
|
+
themeVariant="small-bold"
|
|
751
1015
|
>
|
|
752
|
-
|
|
1016
|
+
Action
|
|
753
1017
|
</Text>
|
|
754
1018
|
</View>
|
|
755
1019
|
</View>
|
|
756
1020
|
<View
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
focusable={true}
|
|
760
|
-
onClick={[Function]}
|
|
761
|
-
onResponderGrant={[Function]}
|
|
762
|
-
onResponderMove={[Function]}
|
|
763
|
-
onResponderRelease={[Function]}
|
|
764
|
-
onResponderTerminate={[Function]}
|
|
765
|
-
onResponderTerminationRequest={[Function]}
|
|
766
|
-
onStartShouldSetResponder={[Function]}
|
|
1021
|
+
pointerEvents="box-none"
|
|
1022
|
+
position="bottom"
|
|
767
1023
|
style={
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
1024
|
+
[
|
|
1025
|
+
{
|
|
1026
|
+
"bottom": 0,
|
|
1027
|
+
"elevation": 9999,
|
|
1028
|
+
"flexDirection": "column-reverse",
|
|
1029
|
+
"left": 0,
|
|
1030
|
+
"paddingHorizontal": 24,
|
|
1031
|
+
"paddingVertical": 16,
|
|
1032
|
+
"position": "absolute",
|
|
1033
|
+
"right": 0,
|
|
1034
|
+
"top": 0,
|
|
1035
|
+
},
|
|
1036
|
+
undefined,
|
|
1037
|
+
]
|
|
773
1038
|
}
|
|
774
|
-
|
|
775
|
-
>
|
|
776
|
-
<Text
|
|
777
|
-
allowFontScaling={false}
|
|
778
|
-
style={
|
|
779
|
-
Array [
|
|
780
|
-
Object {
|
|
781
|
-
"color": "#001f23",
|
|
782
|
-
"fontFamily": "BeVietnamPro-SemiBold",
|
|
783
|
-
"fontSize": 14,
|
|
784
|
-
"letterSpacing": 0.42,
|
|
785
|
-
"lineHeight": 22,
|
|
786
|
-
},
|
|
787
|
-
undefined,
|
|
788
|
-
]
|
|
789
|
-
}
|
|
790
|
-
themeFontSize="medium"
|
|
791
|
-
themeFontWeight="semi-bold"
|
|
792
|
-
themeIntent="body"
|
|
793
|
-
themeTypeface="neutral"
|
|
794
|
-
>
|
|
795
|
-
Action
|
|
796
|
-
</Text>
|
|
797
|
-
</View>
|
|
1039
|
+
/>
|
|
798
1040
|
</View>
|
|
799
1041
|
`;
|
|
800
1042
|
|
|
801
1043
|
exports[`Toast renders correctly when intent is warning 1`] = `
|
|
802
1044
|
<View
|
|
803
|
-
collapsable={false}
|
|
804
1045
|
style={
|
|
805
|
-
|
|
806
|
-
"
|
|
807
|
-
"borderRadius": 0,
|
|
808
|
-
"elevation": 4,
|
|
809
|
-
"flexDirection": "row",
|
|
810
|
-
"minHeight": 48,
|
|
811
|
-
"opacity": 0,
|
|
812
|
-
"shadowColor": "#001f23",
|
|
813
|
-
"shadowOffset": Object {
|
|
814
|
-
"height": 2,
|
|
815
|
-
"width": 0,
|
|
816
|
-
},
|
|
817
|
-
"shadowOpacity": 0.12,
|
|
818
|
-
"shadowRadius": 4,
|
|
819
|
-
"transform": Array [
|
|
820
|
-
Object {
|
|
821
|
-
"translateY": 20,
|
|
822
|
-
},
|
|
823
|
-
],
|
|
1046
|
+
{
|
|
1047
|
+
"flex": 1,
|
|
824
1048
|
}
|
|
825
1049
|
}
|
|
826
|
-
themeIntent="warning"
|
|
827
|
-
themeVariant="default"
|
|
828
1050
|
>
|
|
829
1051
|
<View
|
|
830
|
-
|
|
1052
|
+
collapsable={false}
|
|
831
1053
|
style={
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
1054
|
+
{
|
|
1055
|
+
"backgroundColor": "#ffbe71",
|
|
1056
|
+
"borderRadius": 0,
|
|
1057
|
+
"elevation": 3,
|
|
1058
|
+
"flexDirection": "row",
|
|
1059
|
+
"minHeight": 48,
|
|
1060
|
+
"opacity": 0,
|
|
1061
|
+
"shadowColor": "#001f23",
|
|
1062
|
+
"shadowOffset": {
|
|
1063
|
+
"height": 2,
|
|
1064
|
+
"width": 0,
|
|
839
1065
|
},
|
|
840
|
-
|
|
841
|
-
|
|
1066
|
+
"shadowOpacity": 0.12,
|
|
1067
|
+
"shadowRadius": 4,
|
|
1068
|
+
"transform": [
|
|
1069
|
+
{
|
|
1070
|
+
"translateY": 20,
|
|
1071
|
+
},
|
|
1072
|
+
],
|
|
1073
|
+
}
|
|
842
1074
|
}
|
|
1075
|
+
themeIntent="warning"
|
|
1076
|
+
themeVariant="default"
|
|
843
1077
|
>
|
|
844
1078
|
<View
|
|
1079
|
+
showDivider={true}
|
|
845
1080
|
style={
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
"
|
|
849
|
-
"
|
|
1081
|
+
[
|
|
1082
|
+
{
|
|
1083
|
+
"borderColor": "#e8e9ea",
|
|
1084
|
+
"borderRightWidth": 1,
|
|
1085
|
+
"flex": 1,
|
|
1086
|
+
"flexDirection": "row",
|
|
1087
|
+
"paddingVertical": 12,
|
|
850
1088
|
},
|
|
851
1089
|
undefined,
|
|
852
1090
|
]
|
|
853
1091
|
}
|
|
854
|
-
testID="toast-left-icon"
|
|
855
1092
|
>
|
|
856
|
-
<
|
|
857
|
-
name="warning"
|
|
1093
|
+
<View
|
|
858
1094
|
style={
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
"
|
|
862
|
-
"
|
|
1095
|
+
[
|
|
1096
|
+
{
|
|
1097
|
+
"alignItems": "center",
|
|
1098
|
+
"paddingLeft": 12,
|
|
1099
|
+
},
|
|
1100
|
+
undefined,
|
|
1101
|
+
]
|
|
1102
|
+
}
|
|
1103
|
+
testID="toast-left-icon"
|
|
1104
|
+
>
|
|
1105
|
+
<HeroIcon
|
|
1106
|
+
name="warning"
|
|
1107
|
+
style={
|
|
1108
|
+
[
|
|
1109
|
+
{
|
|
1110
|
+
"color": "#001f23",
|
|
1111
|
+
"fontSize": 20,
|
|
1112
|
+
},
|
|
1113
|
+
undefined,
|
|
1114
|
+
]
|
|
1115
|
+
}
|
|
1116
|
+
themeIntent="text"
|
|
1117
|
+
themeSize="small"
|
|
1118
|
+
/>
|
|
1119
|
+
</View>
|
|
1120
|
+
<View
|
|
1121
|
+
style={
|
|
1122
|
+
[
|
|
1123
|
+
{
|
|
1124
|
+
"flex": 1,
|
|
1125
|
+
"paddingHorizontal": 12,
|
|
863
1126
|
},
|
|
864
1127
|
undefined,
|
|
865
1128
|
]
|
|
866
1129
|
}
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
1130
|
+
>
|
|
1131
|
+
<Text
|
|
1132
|
+
allowFontScaling={false}
|
|
1133
|
+
style={
|
|
1134
|
+
[
|
|
1135
|
+
{
|
|
1136
|
+
"color": "#001f23",
|
|
1137
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
1138
|
+
"fontSize": 14,
|
|
1139
|
+
"letterSpacing": 0.48,
|
|
1140
|
+
"lineHeight": 22,
|
|
1141
|
+
},
|
|
1142
|
+
undefined,
|
|
1143
|
+
]
|
|
1144
|
+
}
|
|
1145
|
+
themeIntent="body"
|
|
1146
|
+
themeTypeface="neutral"
|
|
1147
|
+
themeVariant="small"
|
|
1148
|
+
>
|
|
1149
|
+
Toast Content
|
|
1150
|
+
</Text>
|
|
1151
|
+
</View>
|
|
870
1152
|
</View>
|
|
871
1153
|
<View
|
|
1154
|
+
accessibilityState={
|
|
1155
|
+
{
|
|
1156
|
+
"busy": undefined,
|
|
1157
|
+
"checked": undefined,
|
|
1158
|
+
"disabled": undefined,
|
|
1159
|
+
"expanded": undefined,
|
|
1160
|
+
"selected": undefined,
|
|
1161
|
+
}
|
|
1162
|
+
}
|
|
1163
|
+
accessibilityValue={
|
|
1164
|
+
{
|
|
1165
|
+
"max": undefined,
|
|
1166
|
+
"min": undefined,
|
|
1167
|
+
"now": undefined,
|
|
1168
|
+
"text": undefined,
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
accessible={true}
|
|
1172
|
+
collapsable={false}
|
|
1173
|
+
focusable={true}
|
|
1174
|
+
onClick={[Function]}
|
|
1175
|
+
onResponderGrant={[Function]}
|
|
1176
|
+
onResponderMove={[Function]}
|
|
1177
|
+
onResponderRelease={[Function]}
|
|
1178
|
+
onResponderTerminate={[Function]}
|
|
1179
|
+
onResponderTerminationRequest={[Function]}
|
|
1180
|
+
onStartShouldSetResponder={[Function]}
|
|
872
1181
|
style={
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
undefined,
|
|
879
|
-
]
|
|
1182
|
+
{
|
|
1183
|
+
"justifyContent": "center",
|
|
1184
|
+
"opacity": 1,
|
|
1185
|
+
"paddingHorizontal": 12,
|
|
1186
|
+
}
|
|
880
1187
|
}
|
|
1188
|
+
testID="toast-action-button"
|
|
881
1189
|
>
|
|
882
1190
|
<Text
|
|
883
1191
|
allowFontScaling={false}
|
|
884
1192
|
style={
|
|
885
|
-
|
|
886
|
-
|
|
1193
|
+
[
|
|
1194
|
+
{
|
|
887
1195
|
"color": "#001f23",
|
|
888
|
-
"fontFamily": "BeVietnamPro-
|
|
1196
|
+
"fontFamily": "BeVietnamPro-SemiBold",
|
|
889
1197
|
"fontSize": 14,
|
|
890
|
-
"letterSpacing": 0.
|
|
1198
|
+
"letterSpacing": 0.24,
|
|
891
1199
|
"lineHeight": 22,
|
|
892
1200
|
},
|
|
893
1201
|
undefined,
|
|
894
1202
|
]
|
|
895
1203
|
}
|
|
896
|
-
themeFontSize="medium"
|
|
897
|
-
themeFontWeight="regular"
|
|
898
1204
|
themeIntent="body"
|
|
899
1205
|
themeTypeface="neutral"
|
|
1206
|
+
themeVariant="small-bold"
|
|
900
1207
|
>
|
|
901
|
-
|
|
1208
|
+
Action
|
|
902
1209
|
</Text>
|
|
903
1210
|
</View>
|
|
904
1211
|
</View>
|
|
905
1212
|
<View
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
focusable={true}
|
|
909
|
-
onClick={[Function]}
|
|
910
|
-
onResponderGrant={[Function]}
|
|
911
|
-
onResponderMove={[Function]}
|
|
912
|
-
onResponderRelease={[Function]}
|
|
913
|
-
onResponderTerminate={[Function]}
|
|
914
|
-
onResponderTerminationRequest={[Function]}
|
|
915
|
-
onStartShouldSetResponder={[Function]}
|
|
1213
|
+
pointerEvents="box-none"
|
|
1214
|
+
position="bottom"
|
|
916
1215
|
style={
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
1216
|
+
[
|
|
1217
|
+
{
|
|
1218
|
+
"bottom": 0,
|
|
1219
|
+
"elevation": 9999,
|
|
1220
|
+
"flexDirection": "column-reverse",
|
|
1221
|
+
"left": 0,
|
|
1222
|
+
"paddingHorizontal": 24,
|
|
1223
|
+
"paddingVertical": 16,
|
|
1224
|
+
"position": "absolute",
|
|
1225
|
+
"right": 0,
|
|
1226
|
+
"top": 0,
|
|
1227
|
+
},
|
|
1228
|
+
undefined,
|
|
1229
|
+
]
|
|
922
1230
|
}
|
|
923
|
-
|
|
924
|
-
>
|
|
925
|
-
<Text
|
|
926
|
-
allowFontScaling={false}
|
|
927
|
-
style={
|
|
928
|
-
Array [
|
|
929
|
-
Object {
|
|
930
|
-
"color": "#001f23",
|
|
931
|
-
"fontFamily": "BeVietnamPro-SemiBold",
|
|
932
|
-
"fontSize": 14,
|
|
933
|
-
"letterSpacing": 0.42,
|
|
934
|
-
"lineHeight": 22,
|
|
935
|
-
},
|
|
936
|
-
undefined,
|
|
937
|
-
]
|
|
938
|
-
}
|
|
939
|
-
themeFontSize="medium"
|
|
940
|
-
themeFontWeight="semi-bold"
|
|
941
|
-
themeIntent="body"
|
|
942
|
-
themeTypeface="neutral"
|
|
943
|
-
>
|
|
944
|
-
Action
|
|
945
|
-
</Text>
|
|
946
|
-
</View>
|
|
1231
|
+
/>
|
|
947
1232
|
</View>
|
|
948
1233
|
`;
|