@hero-design/rn 7.3.1 → 7.5.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/.turbo/turbo-build.log +8 -8
- package/assets/fonts/hero-icons.ttf +0 -0
- package/es/index.js +5630 -4565
- package/lib/assets/fonts/hero-icons.ttf +0 -0
- package/lib/index.js +5636 -4564
- package/package.json +11 -9
- package/playground/.detoxrc.json +49 -0
- package/playground/.prettierrc.json +8 -0
- package/playground/app.json +9 -0
- package/playground/babel.config.js +63 -0
- package/playground/e2e/config.json +9 -0
- package/playground/e2e/environment.js +23 -0
- package/playground/e2e/firstTest.e2e.js +16 -0
- package/{expoEntry.js → playground/expoEntry.js} +1 -1
- package/playground/fonts/be-vietnam-pro-light.ttf +0 -0
- package/playground/fonts/be-vietnam-pro-regular.ttf +0 -0
- package/playground/fonts/be-vietnam-pro-semibold.ttf +0 -0
- package/playground/fonts/hero-icons.ttf +0 -0
- package/playground/index.js +7 -0
- package/playground/ios/MobileHeroDesignPlayground/AppDelegate.h +9 -0
- package/playground/ios/MobileHeroDesignPlayground/AppDelegate.m +75 -0
- package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/AppIcon.appiconset/Contents.json +38 -0
- package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/Contents.json +6 -0
- package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/SplashScreenBackground.imageset/Contents.json +21 -0
- package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/SplashScreenBackground.imageset/image.png +0 -0
- package/playground/ios/MobileHeroDesignPlayground/Info.plist +85 -0
- package/playground/ios/MobileHeroDesignPlayground/MobileHeroDesignPlayground-Bridging-Header.h +3 -0
- package/playground/ios/MobileHeroDesignPlayground/MobileHeroDesignPlayground.entitlements +8 -0
- package/playground/ios/MobileHeroDesignPlayground/SplashScreen.storyboard +40 -0
- package/playground/ios/MobileHeroDesignPlayground/Supporting/Expo.plist +16 -0
- package/playground/ios/MobileHeroDesignPlayground/main.m +10 -0
- package/playground/ios/MobileHeroDesignPlayground/noop-file.swift +4 -0
- package/playground/ios/MobileHeroDesignPlayground.xcodeproj/project.pbxproj +515 -0
- package/playground/ios/MobileHeroDesignPlayground.xcodeproj/xcshareddata/xcschemes/MobileHeroDesignPlayground.xcscheme +88 -0
- package/playground/ios/MobileHeroDesignPlayground.xcworkspace/contents.xcworkspacedata +10 -0
- package/playground/ios/MobileHeroDesignPlayground.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/playground/ios/Podfile +49 -0
- package/playground/ios/Podfile.lock +478 -0
- package/playground/ios/Podfile.properties.json +3 -0
- package/{metro.config.js → playground/metro.config.js} +10 -2
- package/playground/package.json +63 -0
- package/playground/src/Alert.tsx +80 -0
- package/playground/{index.tsx → src/App.tsx} +63 -29
- package/playground/{components → src}/Avatar.tsx +1 -1
- package/playground/{components → src}/Badge.tsx +1 -1
- package/playground/{components → src}/BottomNavigation.tsx +1 -1
- package/playground/src/BottomSheet.tsx +43 -0
- package/playground/{components → src}/Button.tsx +1 -1
- package/playground/{components → src}/Card.tsx +1 -1
- package/playground/{components → src}/Collapse.tsx +1 -1
- package/playground/src/ContentNavigator.tsx +65 -0
- package/playground/{components → src}/Divider.tsx +1 -1
- package/playground/{components → src}/Drawer.tsx +1 -1
- package/playground/{components → src}/FAB.tsx +1 -1
- package/playground/{components → src}/Icon.tsx +7 -3
- package/playground/{components → src}/IconButton.tsx +12 -1
- package/playground/src/MultipleThemes.tsx +34 -0
- package/playground/{components → src}/Progress.tsx +1 -1
- package/playground/src/Radio.tsx +25 -0
- package/playground/src/SectionHeading.tsx +68 -0
- package/playground/src/Spinner.tsx +19 -0
- package/playground/{components → src}/Tabs.tsx +1 -1
- package/playground/{components → src}/Tag.tsx +1 -1
- package/playground/src/TextInput.tsx +14 -0
- package/playground/{components → src}/Typography.tsx +1 -1
- package/playground/src/emotion.d.ts +7 -0
- package/playground/tsconfig.json +21 -0
- package/src/components/Alert/StyledAlert.tsx +48 -0
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +686 -0
- package/src/components/Alert/__tests__/index.spec.tsx +83 -0
- package/src/components/Alert/index.tsx +109 -0
- package/src/components/BottomSheet/Footer.tsx +19 -0
- package/src/components/BottomSheet/Header.tsx +49 -0
- package/src/components/BottomSheet/StyledBottomSheet.tsx +75 -0
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +531 -0
- package/src/components/BottomSheet/__tests__/index.spec.tsx +107 -0
- package/src/components/BottomSheet/index.tsx +171 -0
- package/src/components/Button/IconButton.tsx +11 -1
- package/src/components/Card/index.tsx +1 -1
- package/src/components/Collapse/StyledCollapse.tsx +11 -2
- package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +36 -31
- package/src/components/Collapse/__tests__/index.spec.tsx +1 -13
- package/src/components/Collapse/index.tsx +20 -50
- package/src/components/ContentNavigator/StyledContentNavigator.tsx +15 -0
- package/src/components/ContentNavigator/__tests__/StyledContentNavigator.spec.tsx +19 -0
- package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +43 -0
- package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +217 -0
- package/src/components/ContentNavigator/__tests__/index.spec.tsx +74 -0
- package/src/components/ContentNavigator/index.tsx +65 -0
- package/src/components/Icon/HeroIcon/index.tsx +13 -2
- package/src/components/Icon/HeroIcon/selection.json +1 -1
- package/src/components/Icon/IconList.ts +8 -0
- package/src/components/Icon/index.tsx +8 -1
- package/src/components/Radio/Radio.tsx +51 -0
- package/src/components/Radio/RadioGroup.tsx +50 -0
- package/src/components/Radio/StyledRadio.tsx +42 -0
- package/src/components/Radio/__tests__/Radio.spec.tsx +38 -0
- package/src/components/Radio/__tests__/RadioGroup.spec.tsx +36 -0
- package/src/components/Radio/__tests__/StyledRadio.spec.tsx +43 -0
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +160 -0
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +248 -0
- package/src/components/Radio/__tests__/__snapshots__/StyledRadio.spec.tsx.snap +124 -0
- package/src/components/Radio/index.tsx +5 -0
- package/src/components/SectionHeading/StyledHeading.tsx +24 -0
- package/src/components/SectionHeading/__tests__/StyledHeading.tsx +28 -0
- package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.tsx.snap +48 -0
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +208 -0
- package/src/components/SectionHeading/__tests__/index.spec.tsx +39 -0
- package/src/components/SectionHeading/index.tsx +93 -0
- package/src/components/Spinner/AnimatedSpinner.tsx +55 -0
- package/src/components/Spinner/StyledSpinner.tsx +59 -0
- package/src/components/Spinner/__tests__/AnimatedSpinner.spec.tsx +11 -0
- package/src/components/Spinner/__tests__/StyledSpinner.spec.tsx +56 -0
- package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +118 -0
- package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +235 -0
- package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +141 -0
- package/src/components/Spinner/__tests__/index.spec.tsx +12 -0
- package/src/components/Spinner/index.tsx +22 -0
- package/src/components/TextInput/StyledTextInput.tsx +34 -0
- package/src/components/TextInput/__tests__/StyledTextInput.spec.tsx +33 -0
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +88 -0
- package/src/components/TextInput/__tests__/index.spec.tsx +16 -0
- package/src/components/TextInput/index.tsx +61 -0
- package/src/index.ts +14 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +117 -0
- package/src/theme/components/alert.ts +32 -0
- package/src/theme/components/bottomSheet.ts +34 -0
- package/src/theme/components/contentNavigator.ts +11 -0
- package/src/theme/components/icon.ts +1 -0
- package/src/theme/components/radio.ts +34 -0
- package/src/theme/components/spinner.ts +21 -0
- package/src/theme/components/textInput.ts +32 -0
- package/src/theme/global/borders.ts +6 -0
- package/src/theme/global/colors.ts +2 -0
- package/src/theme/index.ts +25 -7
- package/tsconfig.json +11 -3
- package/types/components/Alert/StyledAlert.d.ts +37 -0
- package/types/{src/components/Avatar → components/Alert}/__tests__/index.spec.d.ts +0 -0
- package/types/components/Alert/index.d.ts +42 -0
- package/types/{src/components → components}/Avatar/StyledAvatar.d.ts +0 -1
- package/types/{src/components → components}/Avatar/__tests__/StyledAvatar.spec.d.ts +0 -0
- package/types/{src/components/BottomNavigation → components/Avatar}/__tests__/index.spec.d.ts +0 -0
- package/types/{src/components → components}/Avatar/index.d.ts +0 -0
- package/types/{src/components → components}/Badge/Status.d.ts +0 -0
- package/types/{src/components → components}/Badge/StyledBadge.d.ts +0 -1
- package/types/{src/components → components}/Badge/__tests__/Badge.spec.d.ts +0 -0
- package/types/{src/components → components}/Badge/__tests__/Status.spec.d.ts +0 -0
- package/types/{src/components → components}/Badge/index.d.ts +0 -0
- package/types/{src/components → components}/BottomNavigation/StyledBottomNavigation.d.ts +0 -1
- package/types/{src/components/Button/LoadingIndicator → components/BottomNavigation}/__tests__/index.spec.d.ts +0 -0
- package/types/{src/components → components}/BottomNavigation/index.d.ts +0 -0
- package/types/components/BottomSheet/Footer.d.ts +6 -0
- package/types/components/BottomSheet/Header.d.ts +8 -0
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +46 -0
- package/types/{src/components/Button → components/BottomSheet}/__tests__/index.spec.d.ts +0 -0
- package/types/components/BottomSheet/index.d.ts +51 -0
- package/types/{src/components → components}/Button/Button.d.ts +0 -0
- package/types/{src/components → components}/Button/IconButton.d.ts +5 -1
- package/types/{src/components → components}/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -1
- package/types/{src/components → components}/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.d.ts +0 -0
- package/types/{src/components/Card → components/Button/LoadingIndicator}/__tests__/index.spec.d.ts +0 -0
- package/types/{src/components → components}/Button/LoadingIndicator/index.d.ts +0 -0
- package/types/{src/components → components}/Button/StyledButton.d.ts +0 -1
- package/types/{src/components → components}/Button/__tests__/Button.spec.d.ts +0 -0
- package/types/{src/components → components}/Button/__tests__/IconButton.spec.d.ts +0 -0
- package/types/{src/components → components}/Button/__tests__/StyledButton.spec.d.ts +0 -0
- package/types/{src/components → components}/Button/index.d.ts +0 -0
- package/types/{src/components → components}/Card/StyledCard.d.ts +0 -1
- package/types/{src/components → components}/Card/__tests__/StyledCard.spec.d.ts +0 -0
- package/types/{src/components/Collapse → components/Card}/__tests__/index.spec.d.ts +0 -0
- package/types/{src/components → components}/Card/index.d.ts +0 -0
- package/types/{src/components → components}/Collapse/StyledCollapse.d.ts +12 -2
- package/types/{src/components → components}/Collapse/__tests__/StyledCollapse.spec.d.ts +0 -0
- package/types/{src/components/Drawer → components/Collapse}/__tests__/index.spec.d.ts +0 -0
- package/types/{src/components → components}/Collapse/index.d.ts +1 -5
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +12 -0
- package/types/{src/components/Divider/__tests__/StyledDivider.spec.d.ts → components/ContentNavigator/__tests__/StyledContentNavigator.spec.d.ts} +0 -0
- package/types/{src/components/FAB → components/ContentNavigator}/__tests__/index.spec.d.ts +0 -0
- package/types/components/ContentNavigator/index.d.ts +33 -0
- package/types/{src/components → components}/Divider/StyledDivider.d.ts +0 -1
- package/types/{src/components/FAB/__tests__/AnimatedFABIcon.spec.d.ts → components/Divider/__tests__/StyledDivider.spec.d.ts} +0 -0
- package/types/{src/components → components}/Divider/index.d.ts +0 -0
- package/types/{src/components → components}/Drawer/StyledDrawer.d.ts +0 -1
- package/types/{src/components/Icon → components/Drawer}/__tests__/index.spec.d.ts +0 -0
- package/types/{src/components → components}/Drawer/index.d.ts +0 -0
- package/types/{src/components → components}/FAB/ActionGroup/ActionItem.d.ts +0 -0
- package/types/{src/components → components}/FAB/ActionGroup/StyledActionGroup.d.ts +0 -1
- package/types/{src/components → components}/FAB/ActionGroup/StyledActionItem.d.ts +0 -1
- package/types/{src/components → components}/FAB/ActionGroup/__tests__/index.spec.d.ts +0 -0
- package/types/{src/components → components}/FAB/ActionGroup/index.d.ts +0 -0
- package/types/{src/components → components}/FAB/AnimatedFABIcon.d.ts +0 -0
- package/types/{src/components → components}/FAB/FAB.d.ts +0 -0
- package/types/{src/components → components}/FAB/StyledFAB.d.ts +0 -1
- package/types/{src/components/FAB/__tests__/StyledFAB.spec.d.ts → components/FAB/__tests__/AnimatedFABIcon.spec.d.ts} +0 -0
- package/types/{src/components/Progress/__tests__/index.spec.d.ts → components/FAB/__tests__/StyledFAB.spec.d.ts} +0 -0
- package/types/{src/components/Tabs → components/FAB}/__tests__/index.spec.d.ts +0 -0
- package/types/{src/components → components}/FAB/index.d.ts +0 -0
- package/types/{src/components → components}/Icon/HeroIcon/index.d.ts +1 -2
- package/types/components/Icon/IconList.d.ts +2 -0
- package/types/{src/components/Typography/Text → components/Icon}/__tests__/index.spec.d.ts +0 -0
- package/types/{src/components → components}/Icon/index.d.ts +1 -1
- package/types/components/Icon/utils.d.ts +2 -0
- package/types/{src/components → components}/Progress/ProgressBar.d.ts +0 -0
- package/types/{src/components → components}/Progress/ProgressCircle.d.ts +0 -0
- package/types/{src/components → components}/Progress/StyledProgressBar.d.ts +0 -1
- package/types/{src/components → components}/Progress/StyledProgressCircle.d.ts +0 -1
- package/types/{src/theme → components/Progress}/__tests__/index.spec.d.ts +0 -0
- package/types/{src/components → components}/Progress/index.d.ts +0 -0
- package/types/{src/components → components}/Progress/types.d.ts +0 -0
- package/types/components/Radio/Radio.d.ts +26 -0
- package/types/components/Radio/RadioGroup.d.ts +29 -0
- package/types/components/Radio/StyledRadio.d.ts +30 -0
- package/types/{src/components/Tabs/__tests__/ScrollableTabs.spec.d.ts → components/Radio/__tests__/Radio.spec.d.ts} +0 -0
- package/types/{src/components/Tag/__tests__/Tag.spec.d.ts → components/Radio/__tests__/RadioGroup.spec.d.ts} +0 -0
- package/types/{src/components/Typography/Text/__tests__/StyledText.spec.d.ts → components/Radio/__tests__/StyledRadio.spec.d.ts} +0 -0
- package/types/components/Radio/index.d.ts +4 -0
- package/types/components/SectionHeading/StyledHeading.d.ts +20 -0
- package/types/{src/utils/__tests__/scale.spec.d.ts → components/SectionHeading/__tests__/StyledHeading.d.ts} +0 -0
- package/types/components/SectionHeading/__tests__/index.spec.d.ts +1 -0
- package/types/components/SectionHeading/index.d.ts +39 -0
- package/types/components/Spinner/AnimatedSpinner.d.ts +2 -0
- package/types/components/Spinner/StyledSpinner.d.ts +30 -0
- package/types/components/Spinner/__tests__/AnimatedSpinner.spec.d.ts +1 -0
- package/types/components/Spinner/__tests__/StyledSpinner.spec.d.ts +1 -0
- package/types/components/Spinner/__tests__/index.spec.d.ts +1 -0
- package/types/components/Spinner/index.d.ts +10 -0
- package/types/{src/components → components}/Tabs/ActiveTabIndicator.d.ts +0 -0
- package/types/{src/components → components}/Tabs/ScrollableTabs.d.ts +0 -0
- package/types/{src/components → components}/Tabs/StyledScrollableTabs.d.ts +0 -1
- package/types/{src/components → components}/Tabs/StyledTabs.d.ts +0 -1
- package/types/components/Tabs/__tests__/ScrollableTabs.spec.d.ts +1 -0
- package/types/components/Tabs/__tests__/index.spec.d.ts +1 -0
- package/types/{src/components → components}/Tabs/index.d.ts +0 -0
- package/types/{src/components → components}/Tabs/utils.d.ts +0 -0
- package/types/{src/components → components}/Tag/StyledTag.d.ts +0 -1
- package/types/components/Tag/__tests__/Tag.spec.d.ts +1 -0
- package/types/{src/components → components}/Tag/index.d.ts +0 -0
- package/types/components/TextInput/StyledTextInput.d.ts +22 -0
- package/types/components/TextInput/__tests__/StyledTextInput.spec.d.ts +1 -0
- package/types/components/TextInput/__tests__/index.spec.d.ts +1 -0
- package/types/components/TextInput/index.d.ts +26 -0
- package/types/{src/components → components}/Typography/Text/StyledText.d.ts +0 -1
- package/types/components/Typography/Text/__tests__/StyledText.spec.d.ts +1 -0
- package/types/components/Typography/Text/__tests__/index.spec.d.ts +1 -0
- package/types/{src/components → components}/Typography/Text/index.d.ts +0 -0
- package/types/{src/components → components}/Typography/index.d.ts +0 -0
- package/types/{src/index.d.ts → index.d.ts} +8 -1
- package/types/{src/testHelpers → testHelpers}/renderWithTheme.d.ts +0 -0
- package/types/theme/__tests__/index.spec.d.ts +1 -0
- package/types/theme/components/alert.d.ts +23 -0
- package/types/{src/theme → theme}/components/avatar.d.ts +0 -0
- package/types/{src/theme → theme}/components/badge.d.ts +0 -0
- package/types/{src/theme → theme}/components/bottomNavigation.d.ts +0 -0
- package/types/theme/components/bottomSheet.d.ts +29 -0
- package/types/{src/theme → theme}/components/button.d.ts +0 -0
- package/types/{src/theme → theme}/components/card.d.ts +0 -0
- package/types/theme/components/contentNavigator.d.ts +7 -0
- package/types/{src/theme → theme}/components/divider.d.ts +0 -0
- package/types/{src/theme → theme}/components/drawer.d.ts +0 -0
- package/types/{src/theme → theme}/components/fab.d.ts +0 -0
- package/types/{src/theme → theme}/components/icon.d.ts +1 -0
- package/types/{src/theme → theme}/components/progress.d.ts +0 -0
- package/types/theme/components/radio.d.ts +25 -0
- package/types/theme/components/spinner.d.ts +15 -0
- package/types/{src/theme → theme}/components/tabs.d.ts +0 -0
- package/types/{src/theme → theme}/components/tag.d.ts +0 -0
- package/types/theme/components/textInput.d.ts +24 -0
- package/types/{src/theme → theme}/components/typography.d.ts +0 -0
- package/types/{src/theme → theme}/global/borders.d.ts +3 -0
- package/types/{src/theme → theme}/global/colors.d.ts +2 -0
- package/types/{src/theme → theme}/global/index.d.ts +2 -0
- package/types/{src/theme → theme}/global/scale.d.ts +0 -0
- package/types/{src/theme → theme}/global/space.d.ts +0 -0
- package/types/{src/theme → theme}/global/typography.d.ts +0 -0
- package/types/{src/theme → theme}/index.d.ts +17 -5
- package/types/{src/types.d.ts → types.d.ts} +0 -0
- package/types/utils/__tests__/scale.spec.d.ts +1 -0
- package/types/{src/utils → utils}/helpers.d.ts +0 -0
- package/types/{src/utils → utils}/hooks.d.ts +0 -0
- package/types/{src/utils → utils}/scale.d.ts +0 -0
- package/.turbo/turbo-build:types.log +0 -2
- package/.turbo/turbo-test.log +0 -131
- package/.turbo/turbo-type-check.log +0 -7
- package/app.json +0 -8
- package/types/playground/components/Avatar.d.ts +0 -2
- package/types/playground/components/Badge.d.ts +0 -2
- package/types/playground/components/BottomNavigation.d.ts +0 -2
- package/types/playground/components/Button.d.ts +0 -2
- package/types/playground/components/Card.d.ts +0 -2
- package/types/playground/components/Collapse.d.ts +0 -2
- package/types/playground/components/Divider.d.ts +0 -2
- package/types/playground/components/Drawer.d.ts +0 -2
- package/types/playground/components/FAB.d.ts +0 -2
- package/types/playground/components/Icon.d.ts +0 -2
- package/types/playground/components/IconButton.d.ts +0 -2
- package/types/playground/components/Progress.d.ts +0 -2
- package/types/playground/components/Tabs.d.ts +0 -2
- package/types/playground/components/Tag.d.ts +0 -2
- package/types/playground/components/Typography.d.ts +0 -2
- package/types/playground/index.d.ts +0 -2
- package/types/src/components/Icon/IconList.d.ts +0 -2
- package/types/src/components/Icon/utils.d.ts +0 -2
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import styled from '@emotion/native';
|
|
2
|
+
import { ComponentProps } from 'react';
|
|
3
|
+
import { TouchableOpacity, View, ViewProps } from 'react-native';
|
|
4
|
+
|
|
5
|
+
const Container = styled(View)<{
|
|
6
|
+
themeVariant: 'default' | 'round';
|
|
7
|
+
themeIntent: 'success' | 'info' | 'warning' | 'error';
|
|
8
|
+
}>(({ theme, themeVariant = 'default', themeIntent }) => ({
|
|
9
|
+
borderRadius: themeVariant === 'round' ? theme.__hd__.alert.radii.default : 0,
|
|
10
|
+
backgroundColor: theme.__hd__.alert.colors[themeIntent],
|
|
11
|
+
minHeight: theme.__hd__.alert.sizes.height,
|
|
12
|
+
flexDirection: 'row',
|
|
13
|
+
}));
|
|
14
|
+
|
|
15
|
+
const IconContainer = styled(View)<ViewProps>(({ theme }) => ({
|
|
16
|
+
alignItems: 'center',
|
|
17
|
+
paddingLeft: theme.__hd__.alert.space.padding,
|
|
18
|
+
}));
|
|
19
|
+
|
|
20
|
+
const TextContainer = styled(View)<ViewProps>(({ theme }) => ({
|
|
21
|
+
paddingHorizontal: theme.__hd__.alert.space.padding,
|
|
22
|
+
flex: 1,
|
|
23
|
+
}));
|
|
24
|
+
|
|
25
|
+
const ContentContainer = styled(View)<{ showDivider: boolean }>(
|
|
26
|
+
({ theme, showDivider }) => ({
|
|
27
|
+
paddingVertical: theme.__hd__.alert.space.padding,
|
|
28
|
+
flex: 1,
|
|
29
|
+
borderRightWidth: showDivider ? theme.__hd__.alert.borderWidths.base : 0,
|
|
30
|
+
borderColor: theme.__hd__.alert.colors.divider,
|
|
31
|
+
flexDirection: 'row',
|
|
32
|
+
})
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
const CTAWrapper = styled(TouchableOpacity)<
|
|
36
|
+
ComponentProps<typeof TouchableOpacity>
|
|
37
|
+
>(({ theme }) => ({
|
|
38
|
+
paddingHorizontal: theme.__hd__.alert.space.padding,
|
|
39
|
+
justifyContent: 'center',
|
|
40
|
+
}));
|
|
41
|
+
|
|
42
|
+
export {
|
|
43
|
+
Container,
|
|
44
|
+
ContentContainer,
|
|
45
|
+
TextContainer,
|
|
46
|
+
IconContainer,
|
|
47
|
+
CTAWrapper,
|
|
48
|
+
};
|
|
@@ -0,0 +1,686 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`Alert Icon render custom icon correctly 1`] = `
|
|
4
|
+
<View
|
|
5
|
+
style={
|
|
6
|
+
Array [
|
|
7
|
+
Object {
|
|
8
|
+
"backgroundColor": "#1dbeee",
|
|
9
|
+
"borderRadius": 0,
|
|
10
|
+
"flexDirection": "row",
|
|
11
|
+
"minHeight": 48,
|
|
12
|
+
},
|
|
13
|
+
undefined,
|
|
14
|
+
]
|
|
15
|
+
}
|
|
16
|
+
themeIntent="info"
|
|
17
|
+
themeVariant="default"
|
|
18
|
+
>
|
|
19
|
+
<View
|
|
20
|
+
showDivider={false}
|
|
21
|
+
style={
|
|
22
|
+
Array [
|
|
23
|
+
Object {
|
|
24
|
+
"borderColor": "#fafbfb",
|
|
25
|
+
"borderRightWidth": 0,
|
|
26
|
+
"flex": 1,
|
|
27
|
+
"flexDirection": "row",
|
|
28
|
+
"paddingVertical": 16,
|
|
29
|
+
},
|
|
30
|
+
undefined,
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
>
|
|
34
|
+
<View
|
|
35
|
+
style={
|
|
36
|
+
Array [
|
|
37
|
+
Object {
|
|
38
|
+
"alignItems": "center",
|
|
39
|
+
"paddingLeft": 16,
|
|
40
|
+
},
|
|
41
|
+
undefined,
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
testID="alert-left-icon"
|
|
45
|
+
>
|
|
46
|
+
<HeroIcon
|
|
47
|
+
name="home"
|
|
48
|
+
style={
|
|
49
|
+
Array [
|
|
50
|
+
Object {
|
|
51
|
+
"color": "#292a2b",
|
|
52
|
+
"fontSize": 20,
|
|
53
|
+
},
|
|
54
|
+
undefined,
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
themeIntent="text"
|
|
58
|
+
themeSize="small"
|
|
59
|
+
/>
|
|
60
|
+
</View>
|
|
61
|
+
<View
|
|
62
|
+
style={
|
|
63
|
+
Array [
|
|
64
|
+
Object {
|
|
65
|
+
"flex": 1,
|
|
66
|
+
"paddingHorizontal": 16,
|
|
67
|
+
},
|
|
68
|
+
undefined,
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
>
|
|
72
|
+
<Text
|
|
73
|
+
style={
|
|
74
|
+
Array [
|
|
75
|
+
Object {
|
|
76
|
+
"color": "#292a2b",
|
|
77
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
78
|
+
"fontSize": 14,
|
|
79
|
+
"letterSpacing": 0.42,
|
|
80
|
+
"lineHeight": 22,
|
|
81
|
+
},
|
|
82
|
+
undefined,
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
themeFontSize="medium"
|
|
86
|
+
themeFontWeight="regular"
|
|
87
|
+
themeIntent="body"
|
|
88
|
+
>
|
|
89
|
+
Content
|
|
90
|
+
</Text>
|
|
91
|
+
</View>
|
|
92
|
+
</View>
|
|
93
|
+
</View>
|
|
94
|
+
`;
|
|
95
|
+
|
|
96
|
+
exports[`Alert renders correctly when intent is error 1`] = `
|
|
97
|
+
<View
|
|
98
|
+
style={
|
|
99
|
+
Array [
|
|
100
|
+
Object {
|
|
101
|
+
"backgroundColor": "#de350b",
|
|
102
|
+
"borderRadius": 0,
|
|
103
|
+
"flexDirection": "row",
|
|
104
|
+
"minHeight": 48,
|
|
105
|
+
},
|
|
106
|
+
undefined,
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
themeIntent="error"
|
|
110
|
+
themeVariant="default"
|
|
111
|
+
>
|
|
112
|
+
<View
|
|
113
|
+
showDivider={true}
|
|
114
|
+
style={
|
|
115
|
+
Array [
|
|
116
|
+
Object {
|
|
117
|
+
"borderColor": "#fafbfb",
|
|
118
|
+
"borderRightWidth": 1,
|
|
119
|
+
"flex": 1,
|
|
120
|
+
"flexDirection": "row",
|
|
121
|
+
"paddingVertical": 16,
|
|
122
|
+
},
|
|
123
|
+
undefined,
|
|
124
|
+
]
|
|
125
|
+
}
|
|
126
|
+
>
|
|
127
|
+
<View
|
|
128
|
+
style={
|
|
129
|
+
Array [
|
|
130
|
+
Object {
|
|
131
|
+
"alignItems": "center",
|
|
132
|
+
"paddingLeft": 16,
|
|
133
|
+
},
|
|
134
|
+
undefined,
|
|
135
|
+
]
|
|
136
|
+
}
|
|
137
|
+
testID="alert-left-icon"
|
|
138
|
+
>
|
|
139
|
+
<HeroIcon
|
|
140
|
+
name="circle-warning"
|
|
141
|
+
style={
|
|
142
|
+
Array [
|
|
143
|
+
Object {
|
|
144
|
+
"color": "#292a2b",
|
|
145
|
+
"fontSize": 20,
|
|
146
|
+
},
|
|
147
|
+
undefined,
|
|
148
|
+
]
|
|
149
|
+
}
|
|
150
|
+
themeIntent="text"
|
|
151
|
+
themeSize="small"
|
|
152
|
+
/>
|
|
153
|
+
</View>
|
|
154
|
+
<View
|
|
155
|
+
style={
|
|
156
|
+
Array [
|
|
157
|
+
Object {
|
|
158
|
+
"flex": 1,
|
|
159
|
+
"paddingHorizontal": 16,
|
|
160
|
+
},
|
|
161
|
+
undefined,
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
>
|
|
165
|
+
<Text
|
|
166
|
+
style={
|
|
167
|
+
Array [
|
|
168
|
+
Object {
|
|
169
|
+
"color": "#292a2b",
|
|
170
|
+
"fontFamily": "BeVietnamPro-SemiBold",
|
|
171
|
+
"fontSize": 14,
|
|
172
|
+
"letterSpacing": 0.42,
|
|
173
|
+
"lineHeight": 22,
|
|
174
|
+
},
|
|
175
|
+
undefined,
|
|
176
|
+
]
|
|
177
|
+
}
|
|
178
|
+
themeFontSize="medium"
|
|
179
|
+
themeFontWeight="semi-bold"
|
|
180
|
+
themeIntent="body"
|
|
181
|
+
>
|
|
182
|
+
Title
|
|
183
|
+
</Text>
|
|
184
|
+
<Text
|
|
185
|
+
style={
|
|
186
|
+
Array [
|
|
187
|
+
Object {
|
|
188
|
+
"color": "#292a2b",
|
|
189
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
190
|
+
"fontSize": 14,
|
|
191
|
+
"letterSpacing": 0.42,
|
|
192
|
+
"lineHeight": 22,
|
|
193
|
+
},
|
|
194
|
+
undefined,
|
|
195
|
+
]
|
|
196
|
+
}
|
|
197
|
+
themeFontSize="medium"
|
|
198
|
+
themeFontWeight="regular"
|
|
199
|
+
themeIntent="body"
|
|
200
|
+
>
|
|
201
|
+
Content
|
|
202
|
+
</Text>
|
|
203
|
+
</View>
|
|
204
|
+
</View>
|
|
205
|
+
<View
|
|
206
|
+
accessible={true}
|
|
207
|
+
collapsable={false}
|
|
208
|
+
focusable={true}
|
|
209
|
+
nativeID="animatedComponent"
|
|
210
|
+
onClick={[Function]}
|
|
211
|
+
onResponderGrant={[Function]}
|
|
212
|
+
onResponderMove={[Function]}
|
|
213
|
+
onResponderRelease={[Function]}
|
|
214
|
+
onResponderTerminate={[Function]}
|
|
215
|
+
onResponderTerminationRequest={[Function]}
|
|
216
|
+
onStartShouldSetResponder={[Function]}
|
|
217
|
+
style={
|
|
218
|
+
Object {
|
|
219
|
+
"justifyContent": "center",
|
|
220
|
+
"opacity": 1,
|
|
221
|
+
"paddingHorizontal": 16,
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
testID="alert-close-icon"
|
|
225
|
+
>
|
|
226
|
+
<HeroIcon
|
|
227
|
+
name="cancel"
|
|
228
|
+
style={
|
|
229
|
+
Array [
|
|
230
|
+
Object {
|
|
231
|
+
"color": "#292a2b",
|
|
232
|
+
"fontSize": 20,
|
|
233
|
+
},
|
|
234
|
+
undefined,
|
|
235
|
+
]
|
|
236
|
+
}
|
|
237
|
+
themeIntent="text"
|
|
238
|
+
themeSize="small"
|
|
239
|
+
/>
|
|
240
|
+
</View>
|
|
241
|
+
</View>
|
|
242
|
+
`;
|
|
243
|
+
|
|
244
|
+
exports[`Alert renders correctly when intent is info 1`] = `
|
|
245
|
+
<View
|
|
246
|
+
style={
|
|
247
|
+
Array [
|
|
248
|
+
Object {
|
|
249
|
+
"backgroundColor": "#1dbeee",
|
|
250
|
+
"borderRadius": 0,
|
|
251
|
+
"flexDirection": "row",
|
|
252
|
+
"minHeight": 48,
|
|
253
|
+
},
|
|
254
|
+
undefined,
|
|
255
|
+
]
|
|
256
|
+
}
|
|
257
|
+
themeIntent="info"
|
|
258
|
+
themeVariant="default"
|
|
259
|
+
>
|
|
260
|
+
<View
|
|
261
|
+
showDivider={true}
|
|
262
|
+
style={
|
|
263
|
+
Array [
|
|
264
|
+
Object {
|
|
265
|
+
"borderColor": "#fafbfb",
|
|
266
|
+
"borderRightWidth": 1,
|
|
267
|
+
"flex": 1,
|
|
268
|
+
"flexDirection": "row",
|
|
269
|
+
"paddingVertical": 16,
|
|
270
|
+
},
|
|
271
|
+
undefined,
|
|
272
|
+
]
|
|
273
|
+
}
|
|
274
|
+
>
|
|
275
|
+
<View
|
|
276
|
+
style={
|
|
277
|
+
Array [
|
|
278
|
+
Object {
|
|
279
|
+
"alignItems": "center",
|
|
280
|
+
"paddingLeft": 16,
|
|
281
|
+
},
|
|
282
|
+
undefined,
|
|
283
|
+
]
|
|
284
|
+
}
|
|
285
|
+
testID="alert-left-icon"
|
|
286
|
+
>
|
|
287
|
+
<HeroIcon
|
|
288
|
+
name="circle-info"
|
|
289
|
+
style={
|
|
290
|
+
Array [
|
|
291
|
+
Object {
|
|
292
|
+
"color": "#292a2b",
|
|
293
|
+
"fontSize": 20,
|
|
294
|
+
},
|
|
295
|
+
undefined,
|
|
296
|
+
]
|
|
297
|
+
}
|
|
298
|
+
themeIntent="text"
|
|
299
|
+
themeSize="small"
|
|
300
|
+
/>
|
|
301
|
+
</View>
|
|
302
|
+
<View
|
|
303
|
+
style={
|
|
304
|
+
Array [
|
|
305
|
+
Object {
|
|
306
|
+
"flex": 1,
|
|
307
|
+
"paddingHorizontal": 16,
|
|
308
|
+
},
|
|
309
|
+
undefined,
|
|
310
|
+
]
|
|
311
|
+
}
|
|
312
|
+
>
|
|
313
|
+
<Text
|
|
314
|
+
style={
|
|
315
|
+
Array [
|
|
316
|
+
Object {
|
|
317
|
+
"color": "#292a2b",
|
|
318
|
+
"fontFamily": "BeVietnamPro-SemiBold",
|
|
319
|
+
"fontSize": 14,
|
|
320
|
+
"letterSpacing": 0.42,
|
|
321
|
+
"lineHeight": 22,
|
|
322
|
+
},
|
|
323
|
+
undefined,
|
|
324
|
+
]
|
|
325
|
+
}
|
|
326
|
+
themeFontSize="medium"
|
|
327
|
+
themeFontWeight="semi-bold"
|
|
328
|
+
themeIntent="body"
|
|
329
|
+
>
|
|
330
|
+
Title
|
|
331
|
+
</Text>
|
|
332
|
+
<Text
|
|
333
|
+
style={
|
|
334
|
+
Array [
|
|
335
|
+
Object {
|
|
336
|
+
"color": "#292a2b",
|
|
337
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
338
|
+
"fontSize": 14,
|
|
339
|
+
"letterSpacing": 0.42,
|
|
340
|
+
"lineHeight": 22,
|
|
341
|
+
},
|
|
342
|
+
undefined,
|
|
343
|
+
]
|
|
344
|
+
}
|
|
345
|
+
themeFontSize="medium"
|
|
346
|
+
themeFontWeight="regular"
|
|
347
|
+
themeIntent="body"
|
|
348
|
+
>
|
|
349
|
+
Content
|
|
350
|
+
</Text>
|
|
351
|
+
</View>
|
|
352
|
+
</View>
|
|
353
|
+
<View
|
|
354
|
+
accessible={true}
|
|
355
|
+
collapsable={false}
|
|
356
|
+
focusable={true}
|
|
357
|
+
nativeID="animatedComponent"
|
|
358
|
+
onClick={[Function]}
|
|
359
|
+
onResponderGrant={[Function]}
|
|
360
|
+
onResponderMove={[Function]}
|
|
361
|
+
onResponderRelease={[Function]}
|
|
362
|
+
onResponderTerminate={[Function]}
|
|
363
|
+
onResponderTerminationRequest={[Function]}
|
|
364
|
+
onStartShouldSetResponder={[Function]}
|
|
365
|
+
style={
|
|
366
|
+
Object {
|
|
367
|
+
"justifyContent": "center",
|
|
368
|
+
"opacity": 1,
|
|
369
|
+
"paddingHorizontal": 16,
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
testID="alert-close-icon"
|
|
373
|
+
>
|
|
374
|
+
<HeroIcon
|
|
375
|
+
name="cancel"
|
|
376
|
+
style={
|
|
377
|
+
Array [
|
|
378
|
+
Object {
|
|
379
|
+
"color": "#292a2b",
|
|
380
|
+
"fontSize": 20,
|
|
381
|
+
},
|
|
382
|
+
undefined,
|
|
383
|
+
]
|
|
384
|
+
}
|
|
385
|
+
themeIntent="text"
|
|
386
|
+
themeSize="small"
|
|
387
|
+
/>
|
|
388
|
+
</View>
|
|
389
|
+
</View>
|
|
390
|
+
`;
|
|
391
|
+
|
|
392
|
+
exports[`Alert renders correctly when intent is success 1`] = `
|
|
393
|
+
<View
|
|
394
|
+
style={
|
|
395
|
+
Array [
|
|
396
|
+
Object {
|
|
397
|
+
"backgroundColor": "#01b39c",
|
|
398
|
+
"borderRadius": 0,
|
|
399
|
+
"flexDirection": "row",
|
|
400
|
+
"minHeight": 48,
|
|
401
|
+
},
|
|
402
|
+
undefined,
|
|
403
|
+
]
|
|
404
|
+
}
|
|
405
|
+
themeIntent="success"
|
|
406
|
+
themeVariant="default"
|
|
407
|
+
>
|
|
408
|
+
<View
|
|
409
|
+
showDivider={true}
|
|
410
|
+
style={
|
|
411
|
+
Array [
|
|
412
|
+
Object {
|
|
413
|
+
"borderColor": "#fafbfb",
|
|
414
|
+
"borderRightWidth": 1,
|
|
415
|
+
"flex": 1,
|
|
416
|
+
"flexDirection": "row",
|
|
417
|
+
"paddingVertical": 16,
|
|
418
|
+
},
|
|
419
|
+
undefined,
|
|
420
|
+
]
|
|
421
|
+
}
|
|
422
|
+
>
|
|
423
|
+
<View
|
|
424
|
+
style={
|
|
425
|
+
Array [
|
|
426
|
+
Object {
|
|
427
|
+
"alignItems": "center",
|
|
428
|
+
"paddingLeft": 16,
|
|
429
|
+
},
|
|
430
|
+
undefined,
|
|
431
|
+
]
|
|
432
|
+
}
|
|
433
|
+
testID="alert-left-icon"
|
|
434
|
+
>
|
|
435
|
+
<HeroIcon
|
|
436
|
+
name="circle-ok"
|
|
437
|
+
style={
|
|
438
|
+
Array [
|
|
439
|
+
Object {
|
|
440
|
+
"color": "#292a2b",
|
|
441
|
+
"fontSize": 20,
|
|
442
|
+
},
|
|
443
|
+
undefined,
|
|
444
|
+
]
|
|
445
|
+
}
|
|
446
|
+
themeIntent="text"
|
|
447
|
+
themeSize="small"
|
|
448
|
+
/>
|
|
449
|
+
</View>
|
|
450
|
+
<View
|
|
451
|
+
style={
|
|
452
|
+
Array [
|
|
453
|
+
Object {
|
|
454
|
+
"flex": 1,
|
|
455
|
+
"paddingHorizontal": 16,
|
|
456
|
+
},
|
|
457
|
+
undefined,
|
|
458
|
+
]
|
|
459
|
+
}
|
|
460
|
+
>
|
|
461
|
+
<Text
|
|
462
|
+
style={
|
|
463
|
+
Array [
|
|
464
|
+
Object {
|
|
465
|
+
"color": "#292a2b",
|
|
466
|
+
"fontFamily": "BeVietnamPro-SemiBold",
|
|
467
|
+
"fontSize": 14,
|
|
468
|
+
"letterSpacing": 0.42,
|
|
469
|
+
"lineHeight": 22,
|
|
470
|
+
},
|
|
471
|
+
undefined,
|
|
472
|
+
]
|
|
473
|
+
}
|
|
474
|
+
themeFontSize="medium"
|
|
475
|
+
themeFontWeight="semi-bold"
|
|
476
|
+
themeIntent="body"
|
|
477
|
+
>
|
|
478
|
+
Title
|
|
479
|
+
</Text>
|
|
480
|
+
<Text
|
|
481
|
+
style={
|
|
482
|
+
Array [
|
|
483
|
+
Object {
|
|
484
|
+
"color": "#292a2b",
|
|
485
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
486
|
+
"fontSize": 14,
|
|
487
|
+
"letterSpacing": 0.42,
|
|
488
|
+
"lineHeight": 22,
|
|
489
|
+
},
|
|
490
|
+
undefined,
|
|
491
|
+
]
|
|
492
|
+
}
|
|
493
|
+
themeFontSize="medium"
|
|
494
|
+
themeFontWeight="regular"
|
|
495
|
+
themeIntent="body"
|
|
496
|
+
>
|
|
497
|
+
Content
|
|
498
|
+
</Text>
|
|
499
|
+
</View>
|
|
500
|
+
</View>
|
|
501
|
+
<View
|
|
502
|
+
accessible={true}
|
|
503
|
+
collapsable={false}
|
|
504
|
+
focusable={true}
|
|
505
|
+
nativeID="animatedComponent"
|
|
506
|
+
onClick={[Function]}
|
|
507
|
+
onResponderGrant={[Function]}
|
|
508
|
+
onResponderMove={[Function]}
|
|
509
|
+
onResponderRelease={[Function]}
|
|
510
|
+
onResponderTerminate={[Function]}
|
|
511
|
+
onResponderTerminationRequest={[Function]}
|
|
512
|
+
onStartShouldSetResponder={[Function]}
|
|
513
|
+
style={
|
|
514
|
+
Object {
|
|
515
|
+
"justifyContent": "center",
|
|
516
|
+
"opacity": 1,
|
|
517
|
+
"paddingHorizontal": 16,
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
testID="alert-close-icon"
|
|
521
|
+
>
|
|
522
|
+
<HeroIcon
|
|
523
|
+
name="cancel"
|
|
524
|
+
style={
|
|
525
|
+
Array [
|
|
526
|
+
Object {
|
|
527
|
+
"color": "#292a2b",
|
|
528
|
+
"fontSize": 20,
|
|
529
|
+
},
|
|
530
|
+
undefined,
|
|
531
|
+
]
|
|
532
|
+
}
|
|
533
|
+
themeIntent="text"
|
|
534
|
+
themeSize="small"
|
|
535
|
+
/>
|
|
536
|
+
</View>
|
|
537
|
+
</View>
|
|
538
|
+
`;
|
|
539
|
+
|
|
540
|
+
exports[`Alert renders correctly when intent is warning 1`] = `
|
|
541
|
+
<View
|
|
542
|
+
style={
|
|
543
|
+
Array [
|
|
544
|
+
Object {
|
|
545
|
+
"backgroundColor": "#ffa234",
|
|
546
|
+
"borderRadius": 0,
|
|
547
|
+
"flexDirection": "row",
|
|
548
|
+
"minHeight": 48,
|
|
549
|
+
},
|
|
550
|
+
undefined,
|
|
551
|
+
]
|
|
552
|
+
}
|
|
553
|
+
themeIntent="warning"
|
|
554
|
+
themeVariant="default"
|
|
555
|
+
>
|
|
556
|
+
<View
|
|
557
|
+
showDivider={true}
|
|
558
|
+
style={
|
|
559
|
+
Array [
|
|
560
|
+
Object {
|
|
561
|
+
"borderColor": "#fafbfb",
|
|
562
|
+
"borderRightWidth": 1,
|
|
563
|
+
"flex": 1,
|
|
564
|
+
"flexDirection": "row",
|
|
565
|
+
"paddingVertical": 16,
|
|
566
|
+
},
|
|
567
|
+
undefined,
|
|
568
|
+
]
|
|
569
|
+
}
|
|
570
|
+
>
|
|
571
|
+
<View
|
|
572
|
+
style={
|
|
573
|
+
Array [
|
|
574
|
+
Object {
|
|
575
|
+
"alignItems": "center",
|
|
576
|
+
"paddingLeft": 16,
|
|
577
|
+
},
|
|
578
|
+
undefined,
|
|
579
|
+
]
|
|
580
|
+
}
|
|
581
|
+
testID="alert-left-icon"
|
|
582
|
+
>
|
|
583
|
+
<HeroIcon
|
|
584
|
+
name="warning"
|
|
585
|
+
style={
|
|
586
|
+
Array [
|
|
587
|
+
Object {
|
|
588
|
+
"color": "#292a2b",
|
|
589
|
+
"fontSize": 20,
|
|
590
|
+
},
|
|
591
|
+
undefined,
|
|
592
|
+
]
|
|
593
|
+
}
|
|
594
|
+
themeIntent="text"
|
|
595
|
+
themeSize="small"
|
|
596
|
+
/>
|
|
597
|
+
</View>
|
|
598
|
+
<View
|
|
599
|
+
style={
|
|
600
|
+
Array [
|
|
601
|
+
Object {
|
|
602
|
+
"flex": 1,
|
|
603
|
+
"paddingHorizontal": 16,
|
|
604
|
+
},
|
|
605
|
+
undefined,
|
|
606
|
+
]
|
|
607
|
+
}
|
|
608
|
+
>
|
|
609
|
+
<Text
|
|
610
|
+
style={
|
|
611
|
+
Array [
|
|
612
|
+
Object {
|
|
613
|
+
"color": "#292a2b",
|
|
614
|
+
"fontFamily": "BeVietnamPro-SemiBold",
|
|
615
|
+
"fontSize": 14,
|
|
616
|
+
"letterSpacing": 0.42,
|
|
617
|
+
"lineHeight": 22,
|
|
618
|
+
},
|
|
619
|
+
undefined,
|
|
620
|
+
]
|
|
621
|
+
}
|
|
622
|
+
themeFontSize="medium"
|
|
623
|
+
themeFontWeight="semi-bold"
|
|
624
|
+
themeIntent="body"
|
|
625
|
+
>
|
|
626
|
+
Title
|
|
627
|
+
</Text>
|
|
628
|
+
<Text
|
|
629
|
+
style={
|
|
630
|
+
Array [
|
|
631
|
+
Object {
|
|
632
|
+
"color": "#292a2b",
|
|
633
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
634
|
+
"fontSize": 14,
|
|
635
|
+
"letterSpacing": 0.42,
|
|
636
|
+
"lineHeight": 22,
|
|
637
|
+
},
|
|
638
|
+
undefined,
|
|
639
|
+
]
|
|
640
|
+
}
|
|
641
|
+
themeFontSize="medium"
|
|
642
|
+
themeFontWeight="regular"
|
|
643
|
+
themeIntent="body"
|
|
644
|
+
>
|
|
645
|
+
Content
|
|
646
|
+
</Text>
|
|
647
|
+
</View>
|
|
648
|
+
</View>
|
|
649
|
+
<View
|
|
650
|
+
accessible={true}
|
|
651
|
+
collapsable={false}
|
|
652
|
+
focusable={true}
|
|
653
|
+
nativeID="animatedComponent"
|
|
654
|
+
onClick={[Function]}
|
|
655
|
+
onResponderGrant={[Function]}
|
|
656
|
+
onResponderMove={[Function]}
|
|
657
|
+
onResponderRelease={[Function]}
|
|
658
|
+
onResponderTerminate={[Function]}
|
|
659
|
+
onResponderTerminationRequest={[Function]}
|
|
660
|
+
onStartShouldSetResponder={[Function]}
|
|
661
|
+
style={
|
|
662
|
+
Object {
|
|
663
|
+
"justifyContent": "center",
|
|
664
|
+
"opacity": 1,
|
|
665
|
+
"paddingHorizontal": 16,
|
|
666
|
+
}
|
|
667
|
+
}
|
|
668
|
+
testID="alert-close-icon"
|
|
669
|
+
>
|
|
670
|
+
<HeroIcon
|
|
671
|
+
name="cancel"
|
|
672
|
+
style={
|
|
673
|
+
Array [
|
|
674
|
+
Object {
|
|
675
|
+
"color": "#292a2b",
|
|
676
|
+
"fontSize": 20,
|
|
677
|
+
},
|
|
678
|
+
undefined,
|
|
679
|
+
]
|
|
680
|
+
}
|
|
681
|
+
themeIntent="text"
|
|
682
|
+
themeSize="small"
|
|
683
|
+
/>
|
|
684
|
+
</View>
|
|
685
|
+
</View>
|
|
686
|
+
`;
|