@hero-design/rn 7.3.0 → 7.4.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 +2 -2
- package/assets/fonts/hero-icons.ttf +0 -0
- package/es/index.js +1997 -1123
- package/lib/assets/fonts/hero-icons.ttf +0 -0
- package/lib/index.js +2001 -1121
- 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/{index.tsx → src/App.tsx} +57 -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/src/Button.tsx +170 -0
- package/playground/{components/Button.tsx → src/Button.tsx~origin_master} +0 -0
- 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/{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/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 +6 -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 +12 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +95 -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 +1 -0
- package/src/theme/index.ts +22 -7
- package/tsconfig.json +11 -3
- package/types/components/Avatar/StyledAvatar.d.ts +45 -0
- package/types/components/Avatar/__tests__/StyledAvatar.spec.d.ts +1 -0
- package/types/components/Avatar/__tests__/index.spec.d.ts +1 -0
- package/types/components/Avatar/index.d.ts +25 -0
- package/types/components/Badge/Status.d.ts +24 -0
- package/types/components/Badge/StyledBadge.d.ts +27 -0
- package/types/components/Badge/__tests__/Badge.spec.d.ts +1 -0
- package/types/components/Badge/__tests__/Status.spec.d.ts +1 -0
- package/types/components/Badge/index.d.ts +32 -0
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +51 -0
- package/types/components/BottomNavigation/__tests__/index.spec.d.ts +1 -0
- package/types/components/BottomNavigation/index.d.ts +45 -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/components/BottomSheet/__tests__/index.spec.d.ts +1 -0
- package/types/components/BottomSheet/index.d.ts +51 -0
- package/types/components/Button/Button.d.ts +57 -0
- package/types/components/Button/IconButton.d.ts +38 -0
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +19 -0
- package/types/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.d.ts +1 -0
- package/types/components/Button/LoadingIndicator/__tests__/index.spec.d.ts +1 -0
- package/types/components/Button/LoadingIndicator/index.d.ts +26 -0
- package/types/components/Button/StyledButton.d.ts +39 -0
- package/types/components/Button/__tests__/Button.spec.d.ts +1 -0
- package/types/components/Button/__tests__/IconButton.spec.d.ts +1 -0
- package/types/components/Button/__tests__/StyledButton.spec.d.ts +1 -0
- package/types/components/Button/index.d.ts +8 -0
- package/types/components/Card/StyledCard.d.ts +16 -0
- package/types/components/Card/__tests__/StyledCard.spec.d.ts +1 -0
- package/types/components/Card/__tests__/index.spec.d.ts +1 -0
- package/types/components/Card/index.d.ts +22 -0
- package/types/components/Collapse/StyledCollapse.d.ts +25 -0
- package/types/components/Collapse/__tests__/StyledCollapse.spec.d.ts +1 -0
- package/types/components/Collapse/__tests__/index.spec.d.ts +1 -0
- package/types/components/Collapse/index.d.ts +19 -0
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +12 -0
- package/types/components/ContentNavigator/__tests__/StyledContentNavigator.spec.d.ts +1 -0
- package/types/components/ContentNavigator/__tests__/index.spec.d.ts +1 -0
- package/types/components/ContentNavigator/index.d.ts +33 -0
- package/types/components/Divider/StyledDivider.d.ts +12 -0
- package/types/components/Divider/__tests__/StyledDivider.spec.d.ts +1 -0
- package/types/components/Divider/index.d.ts +21 -0
- package/types/components/Drawer/StyledDrawer.d.ts +24 -0
- package/types/components/Drawer/__tests__/index.spec.d.ts +1 -0
- package/types/components/Drawer/index.d.ts +25 -0
- package/types/components/FAB/ActionGroup/ActionItem.d.ts +12 -0
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +29 -0
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +12 -0
- package/types/components/FAB/ActionGroup/__tests__/index.spec.d.ts +1 -0
- package/types/components/FAB/ActionGroup/index.d.ts +34 -0
- package/types/components/FAB/AnimatedFABIcon.d.ts +6 -0
- package/types/components/FAB/FAB.d.ts +34 -0
- package/types/components/FAB/StyledFAB.d.ts +19 -0
- package/types/components/FAB/__tests__/AnimatedFABIcon.spec.d.ts +1 -0
- package/types/components/FAB/__tests__/StyledFAB.spec.d.ts +1 -0
- package/types/components/FAB/__tests__/index.spec.d.ts +1 -0
- package/types/components/FAB/index.d.ts +4 -0
- package/types/components/Icon/HeroIcon/index.d.ts +12 -0
- package/types/components/Icon/IconList.d.ts +2 -0
- package/types/components/Icon/__tests__/index.spec.d.ts +1 -0
- package/types/components/Icon/index.d.ts +27 -0
- package/types/components/Icon/utils.d.ts +2 -0
- package/types/components/Progress/ProgressBar.d.ts +18 -0
- package/types/components/Progress/ProgressCircle.d.ts +18 -0
- package/types/components/Progress/StyledProgressBar.d.ts +17 -0
- package/types/components/Progress/StyledProgressCircle.d.ts +37 -0
- package/types/components/Progress/__tests__/index.spec.d.ts +1 -0
- package/types/components/Progress/index.d.ts +5 -0
- package/types/components/Progress/types.d.ts +1 -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/components/Radio/__tests__/Radio.spec.d.ts +1 -0
- package/types/components/Radio/__tests__/RadioGroup.spec.d.ts +1 -0
- package/types/components/Radio/__tests__/StyledRadio.spec.d.ts +1 -0
- package/types/components/Radio/index.d.ts +4 -0
- package/types/components/SectionHeading/StyledHeading.d.ts +20 -0
- package/types/components/SectionHeading/__tests__/StyledHeading.d.ts +1 -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/components/Tabs/ActiveTabIndicator.d.ts +8 -0
- package/types/components/Tabs/ScrollableTabs.d.ts +3 -0
- package/types/components/Tabs/StyledScrollableTabs.d.ts +60 -0
- package/types/components/Tabs/StyledTabs.d.ts +54 -0
- package/types/components/Tabs/__tests__/ScrollableTabs.spec.d.ts +1 -0
- package/types/components/Tabs/__tests__/index.spec.d.ts +1 -0
- package/types/components/Tabs/index.d.ts +54 -0
- package/types/components/Tabs/utils.d.ts +2 -0
- package/types/components/Tag/StyledTag.d.ts +19 -0
- package/types/components/Tag/__tests__/Tag.spec.d.ts +1 -0
- package/types/components/Tag/index.d.ts +21 -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/components/Typography/Text/StyledText.d.ts +12 -0
- 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/components/Typography/Text/index.d.ts +30 -0
- package/types/components/Typography/index.d.ts +6 -0
- package/types/index.d.ts +25 -0
- package/types/playground/components/Avatar.d.ts +0 -0
- package/types/playground/components/Collapse.d.ts +0 -0
- package/types/playground/components/Drawer.d.ts +0 -0
- package/types/playground/components/IconButton.d.ts +0 -0
- package/types/playground/components/Progress.d.ts +0 -0
- package/types/playground/components/Tag.d.ts +0 -0
- package/types/src/components/Avatar/StyledAvatar.d.ts +0 -0
- package/types/src/components/Avatar/__tests__/StyledAvatar.spec.d.ts +0 -0
- package/types/src/components/Avatar/__tests__/index.spec.d.ts +0 -0
- package/types/src/components/Avatar/index.d.ts +0 -0
- package/types/src/components/Badge/Status.d.ts +0 -0
- package/types/src/components/Badge/__tests__/Status.spec.d.ts +0 -0
- package/types/src/components/Button/Button.d.ts +0 -0
- package/types/src/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -0
- package/types/src/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.d.ts +0 -0
- package/types/src/components/Button/LoadingIndicator/__tests__/index.spec.d.ts +0 -0
- package/types/src/components/Button/LoadingIndicator/index.d.ts +0 -0
- package/types/src/components/Button/StyledButton.d.ts +0 -0
- package/types/src/components/Button/__tests__/Button.spec.d.ts +0 -0
- package/types/src/components/Button/__tests__/IconButton.spec.d.ts +0 -0
- package/types/src/components/Button/__tests__/StyledButton.spec.d.ts +0 -0
- package/types/src/components/Collapse/StyledCollapse.d.ts +0 -0
- package/types/src/components/Collapse/__tests__/StyledCollapse.spec.d.ts +0 -0
- package/types/src/components/Collapse/__tests__/index.spec.d.ts +0 -0
- package/types/src/components/Collapse/index.d.ts +0 -0
- package/types/src/components/Drawer/StyledDrawer.d.ts +0 -0
- package/types/src/components/Drawer/__tests__/index.spec.d.ts +0 -0
- package/types/src/components/Drawer/index.d.ts +0 -0
- package/types/src/components/Progress/ProgressBar.d.ts +0 -0
- package/types/src/components/Progress/ProgressCircle.d.ts +0 -0
- package/types/src/components/Progress/StyledProgressBar.d.ts +0 -0
- package/types/src/components/Progress/StyledProgressCircle.d.ts +0 -0
- package/types/src/components/Progress/__tests__/index.spec.d.ts +0 -0
- package/types/src/components/Progress/index.d.ts +0 -0
- package/types/src/components/Progress/types.d.ts +0 -0
- package/types/src/components/Tabs/ActiveTabIndicator.d.ts +0 -0
- package/types/src/components/Tabs/ScrollableTabs.d.ts +0 -0
- package/types/src/components/Tabs/StyledScrollableTabs.d.ts +0 -0
- package/types/src/components/Tabs/__tests__/ScrollableTabs.spec.d.ts +0 -0
- package/types/src/components/Tabs/utils.d.ts +0 -0
- package/types/src/components/Tag/StyledTag.d.ts +0 -0
- package/types/src/components/Tag/__tests__/Tag.spec.d.ts +0 -0
- package/types/src/components/Tag/index.d.ts +0 -0
- package/types/src/theme/components/avatar.d.ts +0 -0
- package/types/src/theme/components/button.d.ts +0 -0
- package/types/src/theme/components/drawer.d.ts +0 -0
- package/types/src/theme/components/progress.d.ts +0 -0
- package/types/src/theme/components/tag.d.ts +0 -0
- package/types/src/utils/hooks.d.ts +0 -0
- package/types/testHelpers/renderWithTheme.d.ts +3 -0
- package/types/theme/__tests__/index.spec.d.ts +1 -0
- package/types/theme/components/avatar.d.ts +32 -0
- package/types/theme/components/badge.d.ts +29 -0
- package/types/theme/components/bottomNavigation.d.ts +23 -0
- package/types/theme/components/bottomSheet.d.ts +29 -0
- package/types/theme/components/button.d.ts +37 -0
- package/types/theme/components/card.d.ts +10 -0
- package/types/theme/components/contentNavigator.d.ts +7 -0
- package/types/theme/components/divider.d.ts +17 -0
- package/types/theme/components/drawer.d.ts +21 -0
- package/types/theme/components/fab.d.ts +51 -0
- package/types/theme/components/icon.d.ts +20 -0
- package/types/theme/components/progress.d.ts +21 -0
- package/types/theme/components/radio.d.ts +25 -0
- package/types/theme/components/spinner.d.ts +15 -0
- package/types/theme/components/tabs.d.ts +27 -0
- package/types/theme/components/tag.d.ts +30 -0
- package/types/theme/components/textInput.d.ts +24 -0
- package/types/theme/components/typography.d.ts +26 -0
- package/types/theme/global/borders.d.ts +14 -0
- package/types/theme/global/colors.d.ts +32 -0
- package/types/theme/global/index.d.ts +42 -0
- package/types/theme/global/scale.d.ts +9 -0
- package/types/theme/global/space.d.ts +13 -0
- package/types/theme/global/typography.d.ts +21 -0
- package/types/theme/index.d.ts +45 -0
- package/types/types.d.ts +5 -0
- package/types/utils/__tests__/scale.spec.d.ts +1 -0
- package/types/utils/helpers.d.ts +2 -0
- package/types/utils/hooks.d.ts +1 -0
- package/types/utils/scale.d.ts +3 -0
- package/app.json +0 -8
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`rendering renders correctly 1`] = `
|
|
4
|
+
<View>
|
|
5
|
+
<View
|
|
6
|
+
accessible={true}
|
|
7
|
+
collapsable={false}
|
|
8
|
+
focusable={true}
|
|
9
|
+
nativeID="animatedComponent"
|
|
10
|
+
onClick={[Function]}
|
|
11
|
+
onResponderGrant={[Function]}
|
|
12
|
+
onResponderMove={[Function]}
|
|
13
|
+
onResponderRelease={[Function]}
|
|
14
|
+
onResponderTerminate={[Function]}
|
|
15
|
+
onResponderTerminationRequest={[Function]}
|
|
16
|
+
onStartShouldSetResponder={[Function]}
|
|
17
|
+
style={
|
|
18
|
+
Object {
|
|
19
|
+
"alignItems": "center",
|
|
20
|
+
"backgroundColor": "#ffffff",
|
|
21
|
+
"borderRadius": 4,
|
|
22
|
+
"flexDirection": "row",
|
|
23
|
+
"justifyContent": "space-between",
|
|
24
|
+
"opacity": 1,
|
|
25
|
+
"padding": 16,
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
>
|
|
29
|
+
<View
|
|
30
|
+
style={
|
|
31
|
+
Object {
|
|
32
|
+
"flex": 1,
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
>
|
|
36
|
+
<Text
|
|
37
|
+
style={
|
|
38
|
+
Array [
|
|
39
|
+
Object {
|
|
40
|
+
"color": "#292a2b",
|
|
41
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
42
|
+
"fontSize": 16,
|
|
43
|
+
"letterSpacing": 0.48,
|
|
44
|
+
"lineHeight": 24,
|
|
45
|
+
},
|
|
46
|
+
undefined,
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
themeFontSize="large"
|
|
50
|
+
themeFontWeight="regular"
|
|
51
|
+
themeIntent="body"
|
|
52
|
+
>
|
|
53
|
+
Everything
|
|
54
|
+
</Text>
|
|
55
|
+
</View>
|
|
56
|
+
<View
|
|
57
|
+
style={
|
|
58
|
+
Array [
|
|
59
|
+
Object {
|
|
60
|
+
"alignItems": "center",
|
|
61
|
+
"borderColor": "#000000",
|
|
62
|
+
"borderRadius": 999,
|
|
63
|
+
"borderWidth": 2,
|
|
64
|
+
"height": 20,
|
|
65
|
+
"justifyContent": "center",
|
|
66
|
+
"width": 20,
|
|
67
|
+
},
|
|
68
|
+
undefined,
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
themeChecked={false}
|
|
72
|
+
/>
|
|
73
|
+
</View>
|
|
74
|
+
<View
|
|
75
|
+
style={
|
|
76
|
+
Array [
|
|
77
|
+
Object {
|
|
78
|
+
"marginTop": 4,
|
|
79
|
+
},
|
|
80
|
+
undefined,
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
/>
|
|
84
|
+
<View
|
|
85
|
+
accessible={true}
|
|
86
|
+
collapsable={false}
|
|
87
|
+
focusable={true}
|
|
88
|
+
nativeID="animatedComponent"
|
|
89
|
+
onClick={[Function]}
|
|
90
|
+
onResponderGrant={[Function]}
|
|
91
|
+
onResponderMove={[Function]}
|
|
92
|
+
onResponderRelease={[Function]}
|
|
93
|
+
onResponderTerminate={[Function]}
|
|
94
|
+
onResponderTerminationRequest={[Function]}
|
|
95
|
+
onStartShouldSetResponder={[Function]}
|
|
96
|
+
style={
|
|
97
|
+
Object {
|
|
98
|
+
"alignItems": "center",
|
|
99
|
+
"backgroundColor": "#ffffff",
|
|
100
|
+
"borderRadius": 4,
|
|
101
|
+
"flexDirection": "row",
|
|
102
|
+
"justifyContent": "space-between",
|
|
103
|
+
"opacity": 1,
|
|
104
|
+
"padding": 16,
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
>
|
|
108
|
+
<View
|
|
109
|
+
style={
|
|
110
|
+
Object {
|
|
111
|
+
"flex": 1,
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
>
|
|
115
|
+
<Text
|
|
116
|
+
style={
|
|
117
|
+
Array [
|
|
118
|
+
Object {
|
|
119
|
+
"color": "#292a2b",
|
|
120
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
121
|
+
"fontSize": 16,
|
|
122
|
+
"letterSpacing": 0.48,
|
|
123
|
+
"lineHeight": 24,
|
|
124
|
+
},
|
|
125
|
+
undefined,
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
themeFontSize="large"
|
|
129
|
+
themeFontWeight="regular"
|
|
130
|
+
themeIntent="body"
|
|
131
|
+
>
|
|
132
|
+
Direct mentions only
|
|
133
|
+
</Text>
|
|
134
|
+
</View>
|
|
135
|
+
<View
|
|
136
|
+
style={
|
|
137
|
+
Array [
|
|
138
|
+
Object {
|
|
139
|
+
"alignItems": "center",
|
|
140
|
+
"borderColor": "#000000",
|
|
141
|
+
"borderRadius": 999,
|
|
142
|
+
"borderWidth": 2,
|
|
143
|
+
"height": 20,
|
|
144
|
+
"justifyContent": "center",
|
|
145
|
+
"width": 20,
|
|
146
|
+
},
|
|
147
|
+
undefined,
|
|
148
|
+
]
|
|
149
|
+
}
|
|
150
|
+
themeChecked={false}
|
|
151
|
+
/>
|
|
152
|
+
</View>
|
|
153
|
+
<View
|
|
154
|
+
style={
|
|
155
|
+
Array [
|
|
156
|
+
Object {
|
|
157
|
+
"marginTop": 4,
|
|
158
|
+
},
|
|
159
|
+
undefined,
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
/>
|
|
163
|
+
<View
|
|
164
|
+
accessible={true}
|
|
165
|
+
collapsable={false}
|
|
166
|
+
focusable={true}
|
|
167
|
+
nativeID="animatedComponent"
|
|
168
|
+
onClick={[Function]}
|
|
169
|
+
onResponderGrant={[Function]}
|
|
170
|
+
onResponderMove={[Function]}
|
|
171
|
+
onResponderRelease={[Function]}
|
|
172
|
+
onResponderTerminate={[Function]}
|
|
173
|
+
onResponderTerminationRequest={[Function]}
|
|
174
|
+
onStartShouldSetResponder={[Function]}
|
|
175
|
+
style={
|
|
176
|
+
Object {
|
|
177
|
+
"alignItems": "center",
|
|
178
|
+
"backgroundColor": "#f1e9fb",
|
|
179
|
+
"borderRadius": 4,
|
|
180
|
+
"flexDirection": "row",
|
|
181
|
+
"justifyContent": "space-between",
|
|
182
|
+
"opacity": 1,
|
|
183
|
+
"padding": 16,
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
>
|
|
187
|
+
<View
|
|
188
|
+
style={
|
|
189
|
+
Object {
|
|
190
|
+
"flex": 1,
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
>
|
|
194
|
+
<Text
|
|
195
|
+
style={
|
|
196
|
+
Array [
|
|
197
|
+
Object {
|
|
198
|
+
"color": "#292a2b",
|
|
199
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
200
|
+
"fontSize": 16,
|
|
201
|
+
"letterSpacing": 0.48,
|
|
202
|
+
"lineHeight": 24,
|
|
203
|
+
},
|
|
204
|
+
undefined,
|
|
205
|
+
]
|
|
206
|
+
}
|
|
207
|
+
themeFontSize="large"
|
|
208
|
+
themeFontWeight="regular"
|
|
209
|
+
themeIntent="body"
|
|
210
|
+
>
|
|
211
|
+
Nothing
|
|
212
|
+
</Text>
|
|
213
|
+
</View>
|
|
214
|
+
<View
|
|
215
|
+
style={
|
|
216
|
+
Array [
|
|
217
|
+
Object {
|
|
218
|
+
"alignItems": "center",
|
|
219
|
+
"borderColor": "#7622d7",
|
|
220
|
+
"borderRadius": 999,
|
|
221
|
+
"borderWidth": 2,
|
|
222
|
+
"height": 20,
|
|
223
|
+
"justifyContent": "center",
|
|
224
|
+
"width": 20,
|
|
225
|
+
},
|
|
226
|
+
undefined,
|
|
227
|
+
]
|
|
228
|
+
}
|
|
229
|
+
themeChecked={true}
|
|
230
|
+
>
|
|
231
|
+
<View
|
|
232
|
+
style={
|
|
233
|
+
Array [
|
|
234
|
+
Object {
|
|
235
|
+
"backgroundColor": "#7622d7",
|
|
236
|
+
"borderRadius": 999,
|
|
237
|
+
"height": 10,
|
|
238
|
+
"width": 10,
|
|
239
|
+
},
|
|
240
|
+
undefined,
|
|
241
|
+
]
|
|
242
|
+
}
|
|
243
|
+
testID="Nothing-selected-circle"
|
|
244
|
+
/>
|
|
245
|
+
</View>
|
|
246
|
+
</View>
|
|
247
|
+
</View>
|
|
248
|
+
`;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`Circle has checked style: false 1`] = `
|
|
4
|
+
<View
|
|
5
|
+
style={
|
|
6
|
+
Array [
|
|
7
|
+
Object {
|
|
8
|
+
"alignItems": "center",
|
|
9
|
+
"borderColor": "#000000",
|
|
10
|
+
"borderRadius": 999,
|
|
11
|
+
"borderWidth": 2,
|
|
12
|
+
"height": 20,
|
|
13
|
+
"justifyContent": "center",
|
|
14
|
+
"width": 20,
|
|
15
|
+
},
|
|
16
|
+
undefined,
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
themeChecked={false}
|
|
20
|
+
/>
|
|
21
|
+
`;
|
|
22
|
+
|
|
23
|
+
exports[`Circle has checked style: true 1`] = `
|
|
24
|
+
<View
|
|
25
|
+
style={
|
|
26
|
+
Array [
|
|
27
|
+
Object {
|
|
28
|
+
"alignItems": "center",
|
|
29
|
+
"borderColor": "#7622d7",
|
|
30
|
+
"borderRadius": 999,
|
|
31
|
+
"borderWidth": 2,
|
|
32
|
+
"height": 20,
|
|
33
|
+
"justifyContent": "center",
|
|
34
|
+
"width": 20,
|
|
35
|
+
},
|
|
36
|
+
undefined,
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
themeChecked={true}
|
|
40
|
+
/>
|
|
41
|
+
`;
|
|
42
|
+
|
|
43
|
+
exports[`InnerCircle has correct style 1`] = `
|
|
44
|
+
<View
|
|
45
|
+
style={
|
|
46
|
+
Array [
|
|
47
|
+
Object {
|
|
48
|
+
"backgroundColor": "#7622d7",
|
|
49
|
+
"borderRadius": 999,
|
|
50
|
+
"height": 10,
|
|
51
|
+
"width": 10,
|
|
52
|
+
},
|
|
53
|
+
undefined,
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
/>
|
|
57
|
+
`;
|
|
58
|
+
|
|
59
|
+
exports[`Spacer has correct style 1`] = `
|
|
60
|
+
<View
|
|
61
|
+
style={
|
|
62
|
+
Array [
|
|
63
|
+
Object {
|
|
64
|
+
"marginTop": 4,
|
|
65
|
+
},
|
|
66
|
+
undefined,
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
/>
|
|
70
|
+
`;
|
|
71
|
+
|
|
72
|
+
exports[`Wrapper has checked style: false 1`] = `
|
|
73
|
+
<View
|
|
74
|
+
accessible={true}
|
|
75
|
+
collapsable={false}
|
|
76
|
+
focusable={false}
|
|
77
|
+
nativeID="animatedComponent"
|
|
78
|
+
onClick={[Function]}
|
|
79
|
+
onResponderGrant={[Function]}
|
|
80
|
+
onResponderMove={[Function]}
|
|
81
|
+
onResponderRelease={[Function]}
|
|
82
|
+
onResponderTerminate={[Function]}
|
|
83
|
+
onResponderTerminationRequest={[Function]}
|
|
84
|
+
onStartShouldSetResponder={[Function]}
|
|
85
|
+
style={
|
|
86
|
+
Object {
|
|
87
|
+
"alignItems": "center",
|
|
88
|
+
"backgroundColor": "#ffffff",
|
|
89
|
+
"borderRadius": 4,
|
|
90
|
+
"flexDirection": "row",
|
|
91
|
+
"justifyContent": "space-between",
|
|
92
|
+
"opacity": 1,
|
|
93
|
+
"padding": 16,
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
/>
|
|
97
|
+
`;
|
|
98
|
+
|
|
99
|
+
exports[`Wrapper has checked style: true 1`] = `
|
|
100
|
+
<View
|
|
101
|
+
accessible={true}
|
|
102
|
+
collapsable={false}
|
|
103
|
+
focusable={false}
|
|
104
|
+
nativeID="animatedComponent"
|
|
105
|
+
onClick={[Function]}
|
|
106
|
+
onResponderGrant={[Function]}
|
|
107
|
+
onResponderMove={[Function]}
|
|
108
|
+
onResponderRelease={[Function]}
|
|
109
|
+
onResponderTerminate={[Function]}
|
|
110
|
+
onResponderTerminationRequest={[Function]}
|
|
111
|
+
onStartShouldSetResponder={[Function]}
|
|
112
|
+
style={
|
|
113
|
+
Object {
|
|
114
|
+
"alignItems": "center",
|
|
115
|
+
"backgroundColor": "#f1e9fb",
|
|
116
|
+
"borderRadius": 4,
|
|
117
|
+
"flexDirection": "row",
|
|
118
|
+
"justifyContent": "space-between",
|
|
119
|
+
"opacity": 1,
|
|
120
|
+
"padding": 16,
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
/>
|
|
124
|
+
`;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import styled from '@emotion/native';
|
|
2
|
+
import { View } from 'react-native';
|
|
3
|
+
|
|
4
|
+
const StyledHeading = styled(View)(({ theme }) => ({
|
|
5
|
+
paddingVertical: theme.space.small,
|
|
6
|
+
paddingHorizontal: theme.space.medium,
|
|
7
|
+
backgroundColor: theme.colors.outline,
|
|
8
|
+
marginBottom: theme.space.medium,
|
|
9
|
+
display: 'flex',
|
|
10
|
+
flexDirection: 'row',
|
|
11
|
+
alignContent: 'center',
|
|
12
|
+
justifyContent: 'space-between',
|
|
13
|
+
}));
|
|
14
|
+
|
|
15
|
+
const StyledIconWrapper = styled(View)(({ theme }) => ({
|
|
16
|
+
marginRight: theme.space.small,
|
|
17
|
+
}));
|
|
18
|
+
|
|
19
|
+
const StyledWrapper = styled(View)(() => ({
|
|
20
|
+
display: 'flex',
|
|
21
|
+
flexDirection: 'row',
|
|
22
|
+
}));
|
|
23
|
+
|
|
24
|
+
export { StyledHeading, StyledIconWrapper, StyledWrapper };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import renderWithTheme from '../../../testHelpers/renderWithTheme';
|
|
3
|
+
import {
|
|
4
|
+
StyledHeading,
|
|
5
|
+
StyledIconWrapper,
|
|
6
|
+
StyledWrapper,
|
|
7
|
+
} from '../StyledHeading';
|
|
8
|
+
|
|
9
|
+
describe('StyledHeading', () => {
|
|
10
|
+
it('renders correct style', () => {
|
|
11
|
+
const { toJSON } = renderWithTheme(<StyledHeading />);
|
|
12
|
+
expect(toJSON()).toMatchSnapshot();
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
describe('StyledIconWrapper', () => {
|
|
17
|
+
it('renders correct style', () => {
|
|
18
|
+
const { toJSON } = renderWithTheme(<StyledIconWrapper />);
|
|
19
|
+
expect(toJSON()).toMatchSnapshot();
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
describe('StyledWrapper', () => {
|
|
24
|
+
it('renders correct style', () => {
|
|
25
|
+
const { toJSON } = renderWithTheme(<StyledWrapper />);
|
|
26
|
+
expect(toJSON()).toMatchSnapshot();
|
|
27
|
+
});
|
|
28
|
+
});
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`StyledHeading renders correct style 1`] = `
|
|
4
|
+
<View
|
|
5
|
+
style={
|
|
6
|
+
Array [
|
|
7
|
+
Object {
|
|
8
|
+
"alignContent": "center",
|
|
9
|
+
"backgroundColor": "#dadbde",
|
|
10
|
+
"display": "flex",
|
|
11
|
+
"flexDirection": "row",
|
|
12
|
+
"justifyContent": "space-between",
|
|
13
|
+
"marginBottom": 16,
|
|
14
|
+
"paddingHorizontal": 16,
|
|
15
|
+
"paddingVertical": 8,
|
|
16
|
+
},
|
|
17
|
+
undefined,
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
/>
|
|
21
|
+
`;
|
|
22
|
+
|
|
23
|
+
exports[`StyledIconWrapper renders correct style 1`] = `
|
|
24
|
+
<View
|
|
25
|
+
style={
|
|
26
|
+
Array [
|
|
27
|
+
Object {
|
|
28
|
+
"marginRight": 8,
|
|
29
|
+
},
|
|
30
|
+
undefined,
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
/>
|
|
34
|
+
`;
|
|
35
|
+
|
|
36
|
+
exports[`StyledWrapper renders correct style 1`] = `
|
|
37
|
+
<View
|
|
38
|
+
style={
|
|
39
|
+
Array [
|
|
40
|
+
Object {
|
|
41
|
+
"display": "flex",
|
|
42
|
+
"flexDirection": "row",
|
|
43
|
+
},
|
|
44
|
+
undefined,
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
/>
|
|
48
|
+
`;
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`SectionHeading render icon correctly 1`] = `
|
|
4
|
+
<View
|
|
5
|
+
style={
|
|
6
|
+
Array [
|
|
7
|
+
Object {
|
|
8
|
+
"alignContent": "center",
|
|
9
|
+
"backgroundColor": "#dadbde",
|
|
10
|
+
"display": "flex",
|
|
11
|
+
"flexDirection": "row",
|
|
12
|
+
"justifyContent": "space-between",
|
|
13
|
+
"marginBottom": 16,
|
|
14
|
+
"paddingHorizontal": 16,
|
|
15
|
+
"paddingVertical": 8,
|
|
16
|
+
},
|
|
17
|
+
undefined,
|
|
18
|
+
]
|
|
19
|
+
}
|
|
20
|
+
testID="sectionHeading"
|
|
21
|
+
>
|
|
22
|
+
<View
|
|
23
|
+
style={
|
|
24
|
+
Array [
|
|
25
|
+
Object {
|
|
26
|
+
"display": "flex",
|
|
27
|
+
"flexDirection": "row",
|
|
28
|
+
},
|
|
29
|
+
undefined,
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
>
|
|
33
|
+
<View
|
|
34
|
+
style={
|
|
35
|
+
Array [
|
|
36
|
+
Object {
|
|
37
|
+
"marginRight": 8,
|
|
38
|
+
},
|
|
39
|
+
undefined,
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
>
|
|
43
|
+
<HeroIcon
|
|
44
|
+
name="document"
|
|
45
|
+
style={
|
|
46
|
+
Array [
|
|
47
|
+
Object {
|
|
48
|
+
"color": "#292a2b",
|
|
49
|
+
"fontSize": 24,
|
|
50
|
+
},
|
|
51
|
+
undefined,
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
themeIntent="text"
|
|
55
|
+
themeSize="medium"
|
|
56
|
+
/>
|
|
57
|
+
</View>
|
|
58
|
+
<Text
|
|
59
|
+
style={
|
|
60
|
+
Array [
|
|
61
|
+
Object {
|
|
62
|
+
"color": "#292a2b",
|
|
63
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
64
|
+
"fontSize": 16,
|
|
65
|
+
"letterSpacing": 0.48,
|
|
66
|
+
"lineHeight": 24,
|
|
67
|
+
},
|
|
68
|
+
undefined,
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
themeFontSize="large"
|
|
72
|
+
themeFontWeight="regular"
|
|
73
|
+
themeIntent="body"
|
|
74
|
+
>
|
|
75
|
+
test demo
|
|
76
|
+
</Text>
|
|
77
|
+
</View>
|
|
78
|
+
</View>
|
|
79
|
+
`;
|
|
80
|
+
|
|
81
|
+
exports[`SectionHeading render right children correctly 1`] = `
|
|
82
|
+
<View
|
|
83
|
+
style={
|
|
84
|
+
Array [
|
|
85
|
+
Object {
|
|
86
|
+
"alignContent": "center",
|
|
87
|
+
"backgroundColor": "#dadbde",
|
|
88
|
+
"display": "flex",
|
|
89
|
+
"flexDirection": "row",
|
|
90
|
+
"justifyContent": "space-between",
|
|
91
|
+
"marginBottom": 16,
|
|
92
|
+
"paddingHorizontal": 16,
|
|
93
|
+
"paddingVertical": 8,
|
|
94
|
+
},
|
|
95
|
+
undefined,
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
testID="sectionHeading"
|
|
99
|
+
>
|
|
100
|
+
<View
|
|
101
|
+
style={
|
|
102
|
+
Array [
|
|
103
|
+
Object {
|
|
104
|
+
"display": "flex",
|
|
105
|
+
"flexDirection": "row",
|
|
106
|
+
},
|
|
107
|
+
undefined,
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
>
|
|
111
|
+
<View
|
|
112
|
+
style={
|
|
113
|
+
Array [
|
|
114
|
+
Object {
|
|
115
|
+
"marginRight": 8,
|
|
116
|
+
},
|
|
117
|
+
undefined,
|
|
118
|
+
]
|
|
119
|
+
}
|
|
120
|
+
/>
|
|
121
|
+
<Text
|
|
122
|
+
style={
|
|
123
|
+
Array [
|
|
124
|
+
Object {
|
|
125
|
+
"color": "#292a2b",
|
|
126
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
127
|
+
"fontSize": 16,
|
|
128
|
+
"letterSpacing": 0.48,
|
|
129
|
+
"lineHeight": 24,
|
|
130
|
+
},
|
|
131
|
+
undefined,
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
themeFontSize="large"
|
|
135
|
+
themeFontWeight="regular"
|
|
136
|
+
themeIntent="body"
|
|
137
|
+
>
|
|
138
|
+
test demo
|
|
139
|
+
</Text>
|
|
140
|
+
</View>
|
|
141
|
+
<Text>
|
|
142
|
+
right children
|
|
143
|
+
</Text>
|
|
144
|
+
</View>
|
|
145
|
+
`;
|
|
146
|
+
|
|
147
|
+
exports[`SectionHeading renders correctly 1`] = `
|
|
148
|
+
<View
|
|
149
|
+
style={
|
|
150
|
+
Array [
|
|
151
|
+
Object {
|
|
152
|
+
"alignContent": "center",
|
|
153
|
+
"backgroundColor": "#dadbde",
|
|
154
|
+
"display": "flex",
|
|
155
|
+
"flexDirection": "row",
|
|
156
|
+
"justifyContent": "space-between",
|
|
157
|
+
"marginBottom": 16,
|
|
158
|
+
"paddingHorizontal": 16,
|
|
159
|
+
"paddingVertical": 8,
|
|
160
|
+
},
|
|
161
|
+
undefined,
|
|
162
|
+
]
|
|
163
|
+
}
|
|
164
|
+
testID="sectionHeading"
|
|
165
|
+
>
|
|
166
|
+
<View
|
|
167
|
+
style={
|
|
168
|
+
Array [
|
|
169
|
+
Object {
|
|
170
|
+
"display": "flex",
|
|
171
|
+
"flexDirection": "row",
|
|
172
|
+
},
|
|
173
|
+
undefined,
|
|
174
|
+
]
|
|
175
|
+
}
|
|
176
|
+
>
|
|
177
|
+
<View
|
|
178
|
+
style={
|
|
179
|
+
Array [
|
|
180
|
+
Object {
|
|
181
|
+
"marginRight": 8,
|
|
182
|
+
},
|
|
183
|
+
undefined,
|
|
184
|
+
]
|
|
185
|
+
}
|
|
186
|
+
/>
|
|
187
|
+
<Text
|
|
188
|
+
style={
|
|
189
|
+
Array [
|
|
190
|
+
Object {
|
|
191
|
+
"color": "#292a2b",
|
|
192
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
193
|
+
"fontSize": 16,
|
|
194
|
+
"letterSpacing": 0.48,
|
|
195
|
+
"lineHeight": 24,
|
|
196
|
+
},
|
|
197
|
+
undefined,
|
|
198
|
+
]
|
|
199
|
+
}
|
|
200
|
+
themeFontSize="large"
|
|
201
|
+
themeFontWeight="regular"
|
|
202
|
+
themeIntent="body"
|
|
203
|
+
>
|
|
204
|
+
test demo
|
|
205
|
+
</Text>
|
|
206
|
+
</View>
|
|
207
|
+
</View>
|
|
208
|
+
`;
|