@hero-design/rn 7.3.2 → 7.6.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/.expo/README.md +15 -0
- package/.expo/packager-info.json +10 -0
- package/.expo/prebuild/cached-packages.json +4 -0
- package/.expo/settings.json +10 -0
- package/.expo/xcodebuild-error.log +2 -0
- package/.expo/xcodebuild.log +11199 -0
- package/.turbo/turbo-build.log +2 -2
- package/assets/fonts/hero-icons.ttf +0 -0
- package/es/index.js +7093 -5663
- package/lib/assets/fonts/hero-icons.ttf +0 -0
- package/lib/index.js +7101 -5662
- package/package.json +11 -9
- package/playground/.detoxrc.json +49 -0
- package/playground/.prettierrc.json +8 -0
- package/playground/.turbo/turbo-type-check.log +7 -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} +69 -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 +58 -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/Select.tsx +32 -0
- package/playground/src/Spinner.tsx +19 -0
- package/playground/src/Switch.tsx +80 -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 +177 -0
- package/src/components/Button/IconButton.tsx +11 -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 +74 -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/Radio/types.ts +1 -0
- package/src/components/SectionHeading/StyledHeading.tsx +24 -0
- package/src/components/SectionHeading/__tests__/StyledHeading.spec.tsx +28 -0
- package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.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/Select/MultiSelect/Footer.tsx +15 -0
- package/src/components/Select/MultiSelect/OptionList.tsx +76 -0
- package/src/components/Select/MultiSelect/StyledMultiSelect.tsx +30 -0
- package/src/components/Select/MultiSelect/__tests__/StyledMultiSelect.spec.tsx +49 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/StyledMultiSelect.spec.tsx.snap +108 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +1630 -0
- package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +94 -0
- package/src/components/Select/MultiSelect/index.tsx +103 -0
- package/src/components/Select/MultiSelect/types.ts +1 -0
- package/src/components/Select/index.tsx +5 -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/Switch/StyledSwitch.tsx +50 -0
- package/src/components/Switch/__tests__/StyledHeading.spec.tsx +42 -0
- package/src/components/Switch/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +74 -0
- package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +129 -0
- package/src/components/Switch/__tests__/index.spec.tsx +24 -0
- package/src/components/Switch/index.tsx +87 -0
- package/src/components/TextInput/StyledTextInput.tsx +30 -0
- package/src/components/TextInput/__tests__/StyledTextInput.spec.tsx +27 -0
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +67 -0
- package/src/components/TextInput/__tests__/index.spec.tsx +17 -0
- package/src/components/TextInput/index.tsx +74 -0
- package/src/index.ts +18 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +174 -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/sectionHeading.ts +18 -0
- package/src/theme/components/select.ts +23 -0
- package/src/theme/components/spinner.ts +21 -0
- package/src/theme/components/switch.ts +50 -0
- package/src/theme/components/textInput.ts +32 -0
- package/src/theme/global/borders.ts +6 -0
- package/src/theme/global/colors.ts +3 -0
- package/src/theme/index.ts +34 -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 +55 -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 +32 -0
- package/types/components/Radio/StyledRadio.d.ts +30 -0
- package/types/{src/components/Tabs/__tests__/ScrollableTab.spec.d.ts → components/Radio/__tests__/Radio.spec.d.ts} +0 -0
- package/types/{src/components/Tabs/__tests__/ScrollableTabs.spec.d.ts → components/Radio/__tests__/RadioGroup.spec.d.ts} +0 -0
- package/types/{src/components/Tag/__tests__/Tag.spec.d.ts → components/Radio/__tests__/StyledRadio.spec.d.ts} +0 -0
- package/types/components/Radio/index.d.ts +4 -0
- package/types/components/Radio/types.d.ts +5 -0
- package/types/components/SectionHeading/StyledHeading.d.ts +20 -0
- package/types/{src/components/Typography/Text/__tests__/StyledText.spec.d.ts → components/SectionHeading/__tests__/StyledHeading.spec.d.ts} +0 -0
- package/types/{src/utils/__tests__/scale.spec.d.ts → components/SectionHeading/__tests__/index.spec.d.ts} +0 -0
- package/types/components/SectionHeading/index.d.ts +39 -0
- package/types/components/Select/MultiSelect/Footer.d.ts +5 -0
- package/types/components/Select/MultiSelect/OptionList.d.ts +3 -0
- package/types/components/Select/MultiSelect/StyledMultiSelect.d.ts +26 -0
- package/types/components/Select/MultiSelect/__tests__/StyledMultiSelect.spec.d.ts +1 -0
- package/types/components/Select/MultiSelect/__tests__/index.spec.d.ts +1 -0
- package/types/components/Select/MultiSelect/index.d.ts +39 -0
- package/types/components/Select/MultiSelect/types.d.ts +5 -0
- package/types/components/Select/index.d.ts +5 -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/Switch/StyledSwitch.d.ts +36 -0
- package/types/components/Switch/__tests__/StyledHeading.spec.d.ts +1 -0
- package/types/components/Switch/__tests__/index.spec.d.ts +1 -0
- package/types/components/Switch/index.d.ts +30 -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 +18 -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 +34 -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} +10 -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/sectionHeading.d.ts +13 -0
- package/types/theme/components/select.d.ts +17 -0
- package/types/theme/components/spinner.d.ts +15 -0
- package/types/theme/components/switch.d.ts +32 -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 +3 -0
- package/types/{src/theme → theme}/global/index.d.ts +3 -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 +23 -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/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
- package/types/src/components/Tabs/ScrollableTab.d.ts +0 -3
- package/types/src/components/Tabs/StyledScrollableTab.d.ts +0 -61
|
@@ -13,6 +13,7 @@ const IconList = [
|
|
|
13
13
|
'cake',
|
|
14
14
|
'calendar-clock',
|
|
15
15
|
'calendar',
|
|
16
|
+
'candy-box-menu',
|
|
16
17
|
'carat-down-small',
|
|
17
18
|
'carat-down',
|
|
18
19
|
'carat-left',
|
|
@@ -124,6 +125,7 @@ const IconList = [
|
|
|
124
125
|
'stopwatch',
|
|
125
126
|
'suitcase',
|
|
126
127
|
'survey',
|
|
128
|
+
'swag',
|
|
127
129
|
'switch',
|
|
128
130
|
'tag',
|
|
129
131
|
'target',
|
|
@@ -259,6 +261,7 @@ const IconList = [
|
|
|
259
261
|
'print-outlined',
|
|
260
262
|
'qr-code-outlined',
|
|
261
263
|
're-assign',
|
|
264
|
+
'redeem',
|
|
262
265
|
'refresh',
|
|
263
266
|
'remove',
|
|
264
267
|
'reply-outlined',
|
|
@@ -279,6 +282,7 @@ const IconList = [
|
|
|
279
282
|
'star-outlined',
|
|
280
283
|
'stopwatch-outlined',
|
|
281
284
|
'strikethrough',
|
|
285
|
+
'suitcase-outlined',
|
|
282
286
|
'survey-outlined',
|
|
283
287
|
'switch-outlined',
|
|
284
288
|
'sync',
|
|
@@ -290,9 +294,13 @@ const IconList = [
|
|
|
290
294
|
'underline',
|
|
291
295
|
'unlock-outlined',
|
|
292
296
|
'upload-outlined',
|
|
297
|
+
'user-circle-outlined',
|
|
293
298
|
'user-outlined',
|
|
299
|
+
'user-rectangle-outlined',
|
|
294
300
|
'video-1-outlined',
|
|
295
301
|
'video-2-outlined',
|
|
302
|
+
'wallet-outlined',
|
|
303
|
+
'warning',
|
|
296
304
|
] as const;
|
|
297
305
|
|
|
298
306
|
export default IconList;
|
|
@@ -13,7 +13,14 @@ export interface IconProps {
|
|
|
13
13
|
/**
|
|
14
14
|
* Intent of the Icon.
|
|
15
15
|
*/
|
|
16
|
-
intent?:
|
|
16
|
+
intent?:
|
|
17
|
+
| 'text'
|
|
18
|
+
| 'primary'
|
|
19
|
+
| 'info'
|
|
20
|
+
| 'danger'
|
|
21
|
+
| 'success'
|
|
22
|
+
| 'warning'
|
|
23
|
+
| 'disabled-text';
|
|
17
24
|
/**
|
|
18
25
|
* Size of the Icon.
|
|
19
26
|
*/
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import React, { ReactElement } from 'react';
|
|
2
|
+
import { StyleProp, View, ViewStyle } from 'react-native';
|
|
3
|
+
import Typography from '../Typography';
|
|
4
|
+
import { Circle, InnerCircle, Wrapper } from './StyledRadio';
|
|
5
|
+
|
|
6
|
+
export interface RadioProps {
|
|
7
|
+
/**
|
|
8
|
+
* Whether the radio is checked.
|
|
9
|
+
*/
|
|
10
|
+
checked?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Press event handler.
|
|
13
|
+
*/
|
|
14
|
+
onPress: () => void;
|
|
15
|
+
/**
|
|
16
|
+
* Radio text.
|
|
17
|
+
*/
|
|
18
|
+
text: string;
|
|
19
|
+
/**
|
|
20
|
+
* Additional style.
|
|
21
|
+
*/
|
|
22
|
+
style?: StyleProp<ViewStyle>;
|
|
23
|
+
/**
|
|
24
|
+
* Testing id of the component.
|
|
25
|
+
*/
|
|
26
|
+
testID?: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const Radio = ({
|
|
30
|
+
text,
|
|
31
|
+
checked = false,
|
|
32
|
+
onPress,
|
|
33
|
+
style,
|
|
34
|
+
testID,
|
|
35
|
+
}: RadioProps): ReactElement => (
|
|
36
|
+
<Wrapper
|
|
37
|
+
onPress={onPress}
|
|
38
|
+
themeChecked={checked}
|
|
39
|
+
style={style}
|
|
40
|
+
testID={testID}
|
|
41
|
+
>
|
|
42
|
+
<View style={{ flex: 1 }}>
|
|
43
|
+
<Typography.Text fontSize="large">{text}</Typography.Text>
|
|
44
|
+
</View>
|
|
45
|
+
<Circle themeChecked={checked}>
|
|
46
|
+
{checked && <InnerCircle testID={`${text}-selected-circle`} />}
|
|
47
|
+
</Circle>
|
|
48
|
+
</Wrapper>
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
export default Radio;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import React, { ReactElement } from 'react';
|
|
2
|
+
import { StyleProp, View, ViewStyle } from 'react-native';
|
|
3
|
+
import Radio from './Radio';
|
|
4
|
+
import { Spacer } from './StyledRadio';
|
|
5
|
+
import { OptionType } from './types';
|
|
6
|
+
|
|
7
|
+
export interface RadioGroupProps<T> {
|
|
8
|
+
/**
|
|
9
|
+
* An array of radio options to be selected.
|
|
10
|
+
*/
|
|
11
|
+
options: OptionType<T>[];
|
|
12
|
+
/**
|
|
13
|
+
* Radio input value.
|
|
14
|
+
*/
|
|
15
|
+
value: T;
|
|
16
|
+
/**
|
|
17
|
+
* Press event handler receiving selected radio's value.
|
|
18
|
+
*/
|
|
19
|
+
onPress: (value: T) => void;
|
|
20
|
+
/**
|
|
21
|
+
* Used to extract a unique key for a given option at the specified index. Key is used for caching and as the react key to track item re-ordering.
|
|
22
|
+
* The default extractor checks option.key, and then falls back to using the index, like React does.
|
|
23
|
+
*/
|
|
24
|
+
keyExtractor?: (option: OptionType<T>, index?: number) => string;
|
|
25
|
+
/**
|
|
26
|
+
* Additional style.
|
|
27
|
+
*/
|
|
28
|
+
style?: StyleProp<ViewStyle>;
|
|
29
|
+
/**
|
|
30
|
+
* Testing id of the component.
|
|
31
|
+
*/
|
|
32
|
+
testID?: string;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
function getKey<T>(
|
|
36
|
+
option: OptionType<T>,
|
|
37
|
+
index: number,
|
|
38
|
+
keyExtractor?: (opt: OptionType<T>, i?: number) => string
|
|
39
|
+
) {
|
|
40
|
+
let key: React.Key = '';
|
|
41
|
+
if (keyExtractor !== undefined) {
|
|
42
|
+
key = keyExtractor(option, index);
|
|
43
|
+
} else if (option.key !== undefined) {
|
|
44
|
+
key = option.key;
|
|
45
|
+
} else {
|
|
46
|
+
key = index;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return key;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
const RadioGroup = <T,>({
|
|
53
|
+
value,
|
|
54
|
+
onPress,
|
|
55
|
+
options,
|
|
56
|
+
keyExtractor,
|
|
57
|
+
style,
|
|
58
|
+
testID,
|
|
59
|
+
}: RadioGroupProps<T>): ReactElement => (
|
|
60
|
+
<View style={style} testID={testID}>
|
|
61
|
+
{options.map((option, index) => (
|
|
62
|
+
<React.Fragment key={getKey(option, index, keyExtractor)}>
|
|
63
|
+
{index !== 0 && <Spacer />}
|
|
64
|
+
<Radio
|
|
65
|
+
text={option.text}
|
|
66
|
+
checked={option.value === value}
|
|
67
|
+
onPress={() => onPress(option.value)}
|
|
68
|
+
/>
|
|
69
|
+
</React.Fragment>
|
|
70
|
+
))}
|
|
71
|
+
</View>
|
|
72
|
+
);
|
|
73
|
+
|
|
74
|
+
export default RadioGroup;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { View, TouchableOpacity } from 'react-native';
|
|
2
|
+
import styled from '@emotion/native';
|
|
3
|
+
|
|
4
|
+
const Wrapper = styled(TouchableOpacity)<{ themeChecked: boolean }>(
|
|
5
|
+
({ theme, themeChecked }) => ({
|
|
6
|
+
flexDirection: 'row',
|
|
7
|
+
justifyContent: 'space-between',
|
|
8
|
+
alignItems: 'center',
|
|
9
|
+
borderRadius: theme.__hd__.radio.radii.wrapper,
|
|
10
|
+
padding: theme.__hd__.radio.space.wrapperPadding,
|
|
11
|
+
backgroundColor: themeChecked
|
|
12
|
+
? theme.__hd__.radio.colors.checkedWrapper
|
|
13
|
+
: theme.__hd__.radio.colors.wrapper,
|
|
14
|
+
})
|
|
15
|
+
);
|
|
16
|
+
|
|
17
|
+
const Circle = styled(View)<{ themeChecked: boolean }>(
|
|
18
|
+
({ theme, themeChecked }) => ({
|
|
19
|
+
height: theme.__hd__.radio.sizes.circle,
|
|
20
|
+
width: theme.__hd__.radio.sizes.circle,
|
|
21
|
+
borderRadius: theme.radii.rounded,
|
|
22
|
+
borderWidth: theme.__hd__.radio.borderWidths.circle,
|
|
23
|
+
borderColor: themeChecked
|
|
24
|
+
? theme.__hd__.radio.colors.checkedCircle
|
|
25
|
+
: theme.__hd__.radio.colors.circle,
|
|
26
|
+
alignItems: 'center',
|
|
27
|
+
justifyContent: 'center',
|
|
28
|
+
})
|
|
29
|
+
);
|
|
30
|
+
|
|
31
|
+
const InnerCircle = styled(View)(({ theme }) => ({
|
|
32
|
+
height: theme.__hd__.radio.sizes.innerCircle,
|
|
33
|
+
width: theme.__hd__.radio.sizes.innerCircle,
|
|
34
|
+
borderRadius: theme.radii.rounded,
|
|
35
|
+
backgroundColor: theme.__hd__.radio.colors.checkedCircle,
|
|
36
|
+
}));
|
|
37
|
+
|
|
38
|
+
const Spacer = styled(View)(({ theme }) => ({
|
|
39
|
+
marginTop: theme.__hd__.radio.space.groupTopMargin,
|
|
40
|
+
}));
|
|
41
|
+
|
|
42
|
+
export { Wrapper, Circle, InnerCircle, Spacer };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { fireEvent } from '@testing-library/react-native';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import renderWithTheme from '../../../testHelpers/renderWithTheme';
|
|
4
|
+
import Radio from '../Radio';
|
|
5
|
+
|
|
6
|
+
describe('rendering', () => {
|
|
7
|
+
it('renders correctly when checked', () => {
|
|
8
|
+
const { getByText, queryAllByTestId, toJSON } = renderWithTheme(
|
|
9
|
+
<Radio text="Option A" onPress={jest.fn} checked />
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
expect(getByText('Option A')).toBeDefined();
|
|
13
|
+
expect(queryAllByTestId('Option A-selected-circle')).toHaveLength(1);
|
|
14
|
+
expect(toJSON()).toMatchSnapshot();
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
it('renders correctly when not checked', () => {
|
|
18
|
+
const { getByText, toJSON, queryAllByTestId } = renderWithTheme(
|
|
19
|
+
<Radio text="Option A" onPress={jest.fn} checked={false} />
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
expect(getByText('Option A')).toBeDefined();
|
|
23
|
+
expect(queryAllByTestId('Option A-selected-circle')).toHaveLength(0);
|
|
24
|
+
expect(toJSON()).toMatchSnapshot();
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
describe('behavior', () => {
|
|
29
|
+
it('calls onPress when pressed', () => {
|
|
30
|
+
const onPress = jest.fn();
|
|
31
|
+
const { getByText } = renderWithTheme(
|
|
32
|
+
<Radio text="Option A" onPress={onPress} checked />
|
|
33
|
+
);
|
|
34
|
+
|
|
35
|
+
fireEvent.press(getByText('Option A'));
|
|
36
|
+
expect(onPress).toBeCalledTimes(1);
|
|
37
|
+
});
|
|
38
|
+
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { fireEvent } from '@testing-library/react-native';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import renderWithTheme from '../../../testHelpers/renderWithTheme';
|
|
4
|
+
import RadioGroup from '../RadioGroup';
|
|
5
|
+
|
|
6
|
+
const options = [
|
|
7
|
+
{ text: 'Everything', value: 'everything' },
|
|
8
|
+
{ text: 'Direct mentions only', value: 'direct_mentions' },
|
|
9
|
+
{ text: 'Nothing', value: 'nothing' },
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
describe('rendering', () => {
|
|
13
|
+
it('renders correctly', () => {
|
|
14
|
+
const { getByText, toJSON, queryAllByTestId } = renderWithTheme(
|
|
15
|
+
<RadioGroup options={options} value="nothing" onPress={jest.fn()} />
|
|
16
|
+
);
|
|
17
|
+
|
|
18
|
+
expect(getByText('Everything')).toBeDefined();
|
|
19
|
+
expect(getByText('Direct mentions only')).toBeDefined();
|
|
20
|
+
expect(getByText('Nothing')).toBeDefined();
|
|
21
|
+
expect(queryAllByTestId('Nothing-selected-circle')).toHaveLength(1);
|
|
22
|
+
expect(toJSON()).toMatchSnapshot();
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
describe('behavior', () => {
|
|
27
|
+
it('calls onPress with correct params', () => {
|
|
28
|
+
const onPress = jest.fn();
|
|
29
|
+
const { getByText } = renderWithTheme(
|
|
30
|
+
<RadioGroup options={options} value="nothing" onPress={onPress} />
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
fireEvent.press(getByText('Everything'));
|
|
34
|
+
expect(onPress).toBeCalledWith('everything');
|
|
35
|
+
});
|
|
36
|
+
});
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import renderWithTheme from '../../../testHelpers/renderWithTheme';
|
|
3
|
+
import { Wrapper, Circle, InnerCircle, Spacer } from '../StyledRadio';
|
|
4
|
+
|
|
5
|
+
describe('Wrapper', () => {
|
|
6
|
+
it.each`
|
|
7
|
+
themeChecked
|
|
8
|
+
${true}
|
|
9
|
+
${false}
|
|
10
|
+
`('has checked style: $themeChecked', ({ themeChecked }) => {
|
|
11
|
+
const { toJSON } = renderWithTheme(<Wrapper themeChecked={themeChecked} />);
|
|
12
|
+
|
|
13
|
+
expect(toJSON()).toMatchSnapshot();
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
describe('Circle', () => {
|
|
18
|
+
it.each`
|
|
19
|
+
themeChecked
|
|
20
|
+
${true}
|
|
21
|
+
${false}
|
|
22
|
+
`('has checked style: $themeChecked', ({ themeChecked }) => {
|
|
23
|
+
const { toJSON } = renderWithTheme(<Circle themeChecked={themeChecked} />);
|
|
24
|
+
|
|
25
|
+
expect(toJSON()).toMatchSnapshot();
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
describe('InnerCircle', () => {
|
|
30
|
+
it('has correct style', () => {
|
|
31
|
+
const { toJSON } = renderWithTheme(<InnerCircle />);
|
|
32
|
+
|
|
33
|
+
expect(toJSON()).toMatchSnapshot();
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
describe('Spacer', () => {
|
|
38
|
+
it('has correct style', () => {
|
|
39
|
+
const { toJSON } = renderWithTheme(<Spacer />);
|
|
40
|
+
|
|
41
|
+
expect(toJSON()).toMatchSnapshot();
|
|
42
|
+
});
|
|
43
|
+
});
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`rendering renders correctly when checked 1`] = `
|
|
4
|
+
<View
|
|
5
|
+
accessible={true}
|
|
6
|
+
collapsable={false}
|
|
7
|
+
focusable={true}
|
|
8
|
+
nativeID="animatedComponent"
|
|
9
|
+
onClick={[Function]}
|
|
10
|
+
onResponderGrant={[Function]}
|
|
11
|
+
onResponderMove={[Function]}
|
|
12
|
+
onResponderRelease={[Function]}
|
|
13
|
+
onResponderTerminate={[Function]}
|
|
14
|
+
onResponderTerminationRequest={[Function]}
|
|
15
|
+
onStartShouldSetResponder={[Function]}
|
|
16
|
+
style={
|
|
17
|
+
Object {
|
|
18
|
+
"alignItems": "center",
|
|
19
|
+
"backgroundColor": "#f1e9fb",
|
|
20
|
+
"borderRadius": 4,
|
|
21
|
+
"flexDirection": "row",
|
|
22
|
+
"justifyContent": "space-between",
|
|
23
|
+
"opacity": 1,
|
|
24
|
+
"padding": 16,
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
>
|
|
28
|
+
<View
|
|
29
|
+
style={
|
|
30
|
+
Object {
|
|
31
|
+
"flex": 1,
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
>
|
|
35
|
+
<Text
|
|
36
|
+
style={
|
|
37
|
+
Array [
|
|
38
|
+
Object {
|
|
39
|
+
"color": "#292a2b",
|
|
40
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
41
|
+
"fontSize": 16,
|
|
42
|
+
"letterSpacing": 0.48,
|
|
43
|
+
"lineHeight": 24,
|
|
44
|
+
},
|
|
45
|
+
undefined,
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
themeFontSize="large"
|
|
49
|
+
themeFontWeight="regular"
|
|
50
|
+
themeIntent="body"
|
|
51
|
+
>
|
|
52
|
+
Option A
|
|
53
|
+
</Text>
|
|
54
|
+
</View>
|
|
55
|
+
<View
|
|
56
|
+
style={
|
|
57
|
+
Array [
|
|
58
|
+
Object {
|
|
59
|
+
"alignItems": "center",
|
|
60
|
+
"borderColor": "#7622d7",
|
|
61
|
+
"borderRadius": 999,
|
|
62
|
+
"borderWidth": 2,
|
|
63
|
+
"height": 20,
|
|
64
|
+
"justifyContent": "center",
|
|
65
|
+
"width": 20,
|
|
66
|
+
},
|
|
67
|
+
undefined,
|
|
68
|
+
]
|
|
69
|
+
}
|
|
70
|
+
themeChecked={true}
|
|
71
|
+
>
|
|
72
|
+
<View
|
|
73
|
+
style={
|
|
74
|
+
Array [
|
|
75
|
+
Object {
|
|
76
|
+
"backgroundColor": "#7622d7",
|
|
77
|
+
"borderRadius": 999,
|
|
78
|
+
"height": 10,
|
|
79
|
+
"width": 10,
|
|
80
|
+
},
|
|
81
|
+
undefined,
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
testID="Option A-selected-circle"
|
|
85
|
+
/>
|
|
86
|
+
</View>
|
|
87
|
+
</View>
|
|
88
|
+
`;
|
|
89
|
+
|
|
90
|
+
exports[`rendering renders correctly when not checked 1`] = `
|
|
91
|
+
<View
|
|
92
|
+
accessible={true}
|
|
93
|
+
collapsable={false}
|
|
94
|
+
focusable={true}
|
|
95
|
+
nativeID="animatedComponent"
|
|
96
|
+
onClick={[Function]}
|
|
97
|
+
onResponderGrant={[Function]}
|
|
98
|
+
onResponderMove={[Function]}
|
|
99
|
+
onResponderRelease={[Function]}
|
|
100
|
+
onResponderTerminate={[Function]}
|
|
101
|
+
onResponderTerminationRequest={[Function]}
|
|
102
|
+
onStartShouldSetResponder={[Function]}
|
|
103
|
+
style={
|
|
104
|
+
Object {
|
|
105
|
+
"alignItems": "center",
|
|
106
|
+
"backgroundColor": "#ffffff",
|
|
107
|
+
"borderRadius": 4,
|
|
108
|
+
"flexDirection": "row",
|
|
109
|
+
"justifyContent": "space-between",
|
|
110
|
+
"opacity": 1,
|
|
111
|
+
"padding": 16,
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
>
|
|
115
|
+
<View
|
|
116
|
+
style={
|
|
117
|
+
Object {
|
|
118
|
+
"flex": 1,
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
>
|
|
122
|
+
<Text
|
|
123
|
+
style={
|
|
124
|
+
Array [
|
|
125
|
+
Object {
|
|
126
|
+
"color": "#292a2b",
|
|
127
|
+
"fontFamily": "BeVietnamPro-Regular",
|
|
128
|
+
"fontSize": 16,
|
|
129
|
+
"letterSpacing": 0.48,
|
|
130
|
+
"lineHeight": 24,
|
|
131
|
+
},
|
|
132
|
+
undefined,
|
|
133
|
+
]
|
|
134
|
+
}
|
|
135
|
+
themeFontSize="large"
|
|
136
|
+
themeFontWeight="regular"
|
|
137
|
+
themeIntent="body"
|
|
138
|
+
>
|
|
139
|
+
Option A
|
|
140
|
+
</Text>
|
|
141
|
+
</View>
|
|
142
|
+
<View
|
|
143
|
+
style={
|
|
144
|
+
Array [
|
|
145
|
+
Object {
|
|
146
|
+
"alignItems": "center",
|
|
147
|
+
"borderColor": "#000000",
|
|
148
|
+
"borderRadius": 999,
|
|
149
|
+
"borderWidth": 2,
|
|
150
|
+
"height": 20,
|
|
151
|
+
"justifyContent": "center",
|
|
152
|
+
"width": 20,
|
|
153
|
+
},
|
|
154
|
+
undefined,
|
|
155
|
+
]
|
|
156
|
+
}
|
|
157
|
+
themeChecked={false}
|
|
158
|
+
/>
|
|
159
|
+
</View>
|
|
160
|
+
`;
|