@hero-design/rn 7.7.0 → 7.8.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/es/index.js +1772 -334
- package/lib/index.js +1777 -337
- package/package.json +4 -8
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/Avatar/index.tsx +1 -1
- package/src/components/Button/Button.tsx +4 -2
- package/src/components/Button/LoadingIndicator/StyledLoadingIndicator.tsx +7 -2
- package/src/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.tsx +2 -0
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +40 -0
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +242 -0
- package/src/components/Button/LoadingIndicator/__tests__/index.spec.tsx +2 -0
- package/src/components/Button/LoadingIndicator/index.tsx +3 -1
- package/src/components/Button/StyledButton.tsx +15 -2
- package/src/components/Button/__tests__/Button.spec.tsx +2 -0
- package/src/components/Button/__tests__/StyledButton.spec.tsx +12 -0
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +314 -0
- package/src/components/Card/DataCard/StyledDataCard.tsx +20 -0
- package/src/components/Card/DataCard/__tests__/StyledDataCard.spec.tsx +24 -0
- package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +97 -0
- package/src/components/Card/DataCard/__tests__/__snapshots__/index.spec.tsx.snap +156 -0
- package/src/components/Card/DataCard/__tests__/index.spec.tsx +30 -0
- package/src/components/Card/DataCard/index.tsx +35 -0
- package/src/components/Card/index.tsx +7 -2
- package/src/components/Checkbox/index.tsx +1 -1
- package/src/components/Collapse/index.tsx +1 -1
- package/src/components/Icon/index.tsx +1 -1
- package/src/components/List/BasicListItem.tsx +98 -0
- package/src/components/List/ListItem.tsx +142 -0
- package/src/components/List/StyledBasicListItem.tsx +34 -0
- package/src/components/List/StyledListItem.tsx +82 -0
- package/src/components/List/__tests__/BasicListItem.spec.tsx +37 -0
- package/src/components/List/__tests__/ListItem.spec.tsx +110 -0
- package/src/components/List/__tests__/StyledBasicListItem.spec.tsx +24 -0
- package/src/components/List/__tests__/StyledListItem.spec.tsx +48 -0
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +103 -0
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +760 -0
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +105 -0
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +200 -0
- package/src/components/List/index.tsx +14 -0
- package/src/components/SectionHeading/index.tsx +1 -1
- package/src/components/Select/Footer.tsx +13 -0
- package/src/components/Select/MultiSelect/Option.tsx +25 -0
- package/src/components/Select/MultiSelect/OptionList.tsx +30 -63
- package/src/components/Select/MultiSelect/__tests__/Option.spec.tsx +16 -0
- package/src/components/Select/MultiSelect/__tests__/OptionList.spec.tsx +42 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +70 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +627 -0
- package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +6 -6
- package/src/components/Select/MultiSelect/index.tsx +8 -7
- package/src/components/Select/SingleSelect/Option.tsx +23 -0
- package/src/components/Select/SingleSelect/OptionList.tsx +43 -0
- package/src/components/Select/SingleSelect/__tests__/Option.spec.tsx +16 -0
- package/src/components/Select/SingleSelect/__tests__/OptionList.spec.tsx +42 -0
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +56 -0
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +571 -0
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +1430 -0
- package/src/components/Select/SingleSelect/__tests__/index.spec.tsx +89 -0
- package/src/components/Select/SingleSelect/index.tsx +89 -0
- package/src/components/Select/{MultiSelect/StyledMultiSelect.tsx → StyledSelect.tsx} +1 -1
- package/src/components/Select/{MultiSelect/__tests__/StyledMultiSelect.spec.tsx → __tests__/StyledSelect.spec.tsx} +2 -2
- package/src/components/Select/{MultiSelect/__tests__/__snapshots__/StyledMultiSelect.spec.tsx.snap → __tests__/__snapshots__/StyledSelect.spec.tsx.snap} +0 -0
- package/src/components/Select/helpers.tsx +18 -0
- package/src/components/Select/index.tsx +4 -3
- package/src/components/Select/{MultiSelect/types.ts → types.ts} +0 -0
- package/src/components/Switch/index.tsx +1 -1
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +2 -2
- package/src/components/Toolbar/StyledToolbar.tsx +42 -0
- package/src/components/Toolbar/ToolbarGroup.tsx +31 -0
- package/src/components/Toolbar/ToolbarItem.tsx +57 -0
- package/src/components/Toolbar/__tests__/ToolbarGroup.spec.tsx +32 -0
- package/src/components/Toolbar/__tests__/ToolbarItem.spec.tsx +57 -0
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +391 -0
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +355 -0
- package/src/components/Toolbar/index.tsx +18 -0
- package/src/components/Typography/Text/StyledText.tsx +8 -1
- package/src/components/Typography/Text/__tests__/StyledText.spec.tsx +5 -0
- package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +110 -0
- package/src/components/Typography/Text/index.tsx +9 -2
- package/src/index.ts +4 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +79 -3
- package/src/theme/components/button.ts +2 -0
- package/src/theme/components/card.ts +8 -1
- package/src/theme/components/list.ts +46 -0
- package/src/theme/components/toolbar.ts +27 -0
- package/src/theme/components/typography.ts +4 -0
- package/src/theme/global/colors.ts +9 -2
- package/src/theme/global/space.ts +2 -0
- package/src/theme/index.ts +6 -0
- package/tsconfig.json +1 -2
- package/types/components/Alert/StyledAlert.d.ts +0 -0
- package/types/components/Alert/__tests__/index.spec.d.ts +0 -0
- package/types/components/Alert/index.d.ts +0 -0
- package/types/components/Avatar/StyledAvatar.d.ts +0 -0
- package/types/components/Avatar/__tests__/StyledAvatar.spec.d.ts +0 -0
- package/types/components/Avatar/__tests__/index.spec.d.ts +0 -0
- package/types/components/Avatar/index.d.ts +1 -1
- package/types/components/Badge/Status.d.ts +0 -0
- package/types/components/Badge/StyledBadge.d.ts +0 -0
- package/types/components/Badge/__tests__/Badge.spec.d.ts +0 -0
- package/types/components/Badge/__tests__/Status.spec.d.ts +0 -0
- package/types/components/Badge/index.d.ts +0 -0
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
- package/types/components/BottomNavigation/__tests__/index.spec.d.ts +0 -0
- package/types/components/BottomNavigation/index.d.ts +0 -0
- package/types/components/BottomSheet/Footer.d.ts +0 -0
- package/types/components/BottomSheet/Header.d.ts +0 -0
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -0
- package/types/components/BottomSheet/__tests__/index.spec.d.ts +0 -0
- package/types/components/BottomSheet/index.d.ts +0 -0
- package/types/components/Button/Button.d.ts +2 -2
- package/types/components/Button/IconButton.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +1 -1
- package/types/components/Button/LoadingIndicator/__tests__/StyledLoadingIndicator.spec.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/__tests__/index.spec.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/index.d.ts +1 -1
- package/types/components/Button/StyledButton.d.ts +2 -2
- package/types/components/Button/__tests__/Button.spec.d.ts +0 -0
- package/types/components/Button/__tests__/IconButton.spec.d.ts +0 -0
- package/types/components/Button/__tests__/StyledButton.spec.d.ts +0 -0
- package/types/components/Button/index.d.ts +0 -0
- package/types/components/Card/DataCard/StyledDataCard.d.ts +16 -0
- package/types/components/Card/DataCard/__tests__/StyledDataCard.spec.d.ts +1 -0
- package/types/components/Card/DataCard/__tests__/index.spec.d.ts +1 -0
- package/types/components/Card/DataCard/index.d.ts +22 -0
- package/types/components/Card/StyledCard.d.ts +0 -0
- package/types/components/Card/__tests__/StyledCard.spec.d.ts +0 -0
- package/types/components/Card/__tests__/index.spec.d.ts +0 -0
- package/types/components/Card/index.d.ts +7 -3
- package/types/components/Checkbox/StyledCheckbox.d.ts +0 -0
- package/types/components/Checkbox/__tests__/StyledCheckbox.spec.d.ts +0 -0
- package/types/components/Checkbox/__tests__/index.spec.d.ts +0 -0
- package/types/components/Checkbox/index.d.ts +1 -1
- package/types/components/Collapse/StyledCollapse.d.ts +0 -0
- package/types/components/Collapse/__tests__/StyledCollapse.spec.d.ts +0 -0
- package/types/components/Collapse/__tests__/index.spec.d.ts +0 -0
- package/types/components/Collapse/index.d.ts +1 -1
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -0
- package/types/components/ContentNavigator/__tests__/StyledContentNavigator.spec.d.ts +0 -0
- package/types/components/ContentNavigator/__tests__/index.spec.d.ts +0 -0
- package/types/components/ContentNavigator/index.d.ts +0 -0
- package/types/components/Divider/StyledDivider.d.ts +0 -0
- package/types/components/Divider/__tests__/StyledDivider.spec.d.ts +0 -0
- package/types/components/Divider/index.d.ts +0 -0
- package/types/components/Drawer/StyledDrawer.d.ts +0 -0
- package/types/components/Drawer/__tests__/index.spec.d.ts +0 -0
- package/types/components/Drawer/index.d.ts +0 -0
- package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -0
- package/types/components/FAB/ActionGroup/__tests__/index.spec.d.ts +0 -0
- package/types/components/FAB/ActionGroup/index.d.ts +0 -0
- package/types/components/FAB/AnimatedFABIcon.d.ts +0 -0
- package/types/components/FAB/FAB.d.ts +0 -0
- package/types/components/FAB/StyledFAB.d.ts +0 -0
- package/types/components/FAB/__tests__/AnimatedFABIcon.spec.d.ts +0 -0
- package/types/components/FAB/__tests__/StyledFAB.spec.d.ts +0 -0
- package/types/components/FAB/__tests__/index.spec.d.ts +0 -0
- package/types/components/FAB/index.d.ts +0 -0
- package/types/components/Icon/HeroIcon/index.d.ts +0 -0
- package/types/components/Icon/IconList.d.ts +0 -0
- package/types/components/Icon/__tests__/index.spec.d.ts +0 -0
- package/types/components/Icon/index.d.ts +1 -1
- package/types/components/Icon/utils.d.ts +0 -0
- package/types/components/List/BasicListItem.d.ts +43 -0
- package/types/components/List/ListItem.d.ts +51 -0
- package/types/components/List/StyledBasicListItem.d.ts +29 -0
- package/types/components/List/StyledListItem.d.ts +51 -0
- package/types/components/List/__tests__/BasicListItem.spec.d.ts +1 -0
- package/types/components/List/__tests__/ListItem.spec.d.ts +1 -0
- package/types/components/List/__tests__/StyledBasicListItem.spec.d.ts +1 -0
- package/types/components/List/__tests__/StyledListItem.spec.d.ts +1 -0
- package/types/components/List/index.d.ts +8 -0
- package/types/components/Progress/ProgressBar.d.ts +0 -0
- package/types/components/Progress/ProgressCircle.d.ts +0 -0
- package/types/components/Progress/StyledProgressBar.d.ts +0 -0
- package/types/components/Progress/StyledProgressCircle.d.ts +0 -0
- package/types/components/Progress/__tests__/index.spec.d.ts +0 -0
- package/types/components/Progress/index.d.ts +0 -0
- package/types/components/Progress/types.d.ts +0 -0
- package/types/components/Radio/Radio.d.ts +0 -0
- package/types/components/Radio/RadioGroup.d.ts +0 -0
- package/types/components/Radio/StyledRadio.d.ts +0 -0
- package/types/components/Radio/__tests__/Radio.spec.d.ts +0 -0
- package/types/components/Radio/__tests__/RadioGroup.spec.d.ts +0 -0
- package/types/components/Radio/__tests__/StyledRadio.spec.d.ts +0 -0
- package/types/components/Radio/index.d.ts +0 -0
- package/types/components/Radio/types.d.ts +0 -0
- package/types/components/SectionHeading/StyledHeading.d.ts +0 -0
- package/types/components/SectionHeading/__tests__/StyledHeading.spec.d.ts +0 -0
- package/types/components/SectionHeading/__tests__/index.spec.d.ts +0 -0
- package/types/components/SectionHeading/index.d.ts +1 -1
- package/types/components/Select/Footer.d.ts +5 -0
- package/types/components/Select/MultiSelect/Footer.d.ts +0 -0
- package/types/components/Select/MultiSelect/Option.d.ts +6 -0
- package/types/components/Select/MultiSelect/OptionList.d.ts +7 -1
- package/types/components/Select/MultiSelect/StyledMultiSelect.d.ts +0 -0
- package/types/components/Select/MultiSelect/__tests__/Option.spec.d.ts +1 -0
- package/types/components/Select/MultiSelect/__tests__/OptionList.spec.d.ts +1 -0
- package/types/components/Select/MultiSelect/__tests__/StyledMultiSelect.spec.d.ts +0 -0
- package/types/components/Select/MultiSelect/__tests__/index.spec.d.ts +0 -0
- package/types/components/Select/MultiSelect/index.d.ts +4 -4
- package/types/components/Select/MultiSelect/types.d.ts +0 -0
- package/types/components/Select/SingleSelect/Option.d.ts +6 -0
- package/types/components/Select/SingleSelect/OptionList.d.ts +9 -0
- package/types/components/Select/SingleSelect/__tests__/Option.spec.d.ts +1 -0
- package/types/components/Select/SingleSelect/__tests__/OptionList.spec.d.ts +1 -0
- package/types/components/Select/SingleSelect/__tests__/index.spec.d.ts +1 -0
- package/types/components/Select/SingleSelect/index.d.ts +35 -0
- package/types/components/Select/StyledSelect.d.ts +26 -0
- package/types/components/Select/__tests__/StyledSelect.spec.d.ts +1 -0
- package/types/components/Select/helpers.d.ts +2 -0
- package/types/components/Select/index.d.ts +3 -3
- package/types/components/Select/types.d.ts +5 -0
- package/types/components/Spinner/AnimatedSpinner.d.ts +0 -0
- package/types/components/Spinner/StyledSpinner.d.ts +0 -0
- package/types/components/Spinner/__tests__/AnimatedSpinner.spec.d.ts +0 -0
- package/types/components/Spinner/__tests__/StyledSpinner.spec.d.ts +0 -0
- package/types/components/Spinner/__tests__/index.spec.d.ts +0 -0
- package/types/components/Spinner/index.d.ts +0 -0
- package/types/components/Switch/StyledSwitch.d.ts +0 -0
- package/types/components/Switch/__tests__/StyledHeading.spec.d.ts +0 -0
- package/types/components/Switch/__tests__/index.spec.d.ts +0 -0
- package/types/components/Switch/index.d.ts +1 -1
- package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -0
- package/types/components/Tabs/ScrollableTabs.d.ts +0 -0
- package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -0
- package/types/components/Tabs/StyledTabs.d.ts +0 -0
- package/types/components/Tabs/__tests__/ScrollableTabs.spec.d.ts +0 -0
- package/types/components/Tabs/__tests__/index.spec.d.ts +0 -0
- package/types/components/Tabs/index.d.ts +0 -0
- package/types/components/Tabs/utils.d.ts +0 -0
- package/types/components/Tag/StyledTag.d.ts +0 -0
- package/types/components/Tag/__tests__/Tag.spec.d.ts +0 -0
- package/types/components/Tag/index.d.ts +0 -0
- package/types/components/TextInput/StyledTextInput.d.ts +0 -0
- package/types/components/TextInput/__tests__/StyledTextInput.spec.d.ts +0 -0
- package/types/components/TextInput/__tests__/index.spec.d.ts +0 -0
- package/types/components/TextInput/index.d.ts +0 -0
- package/types/components/Toast/StyledToast.d.ts +0 -0
- package/types/components/Toast/Toast.d.ts +0 -0
- package/types/components/Toast/ToastContainer.d.ts +0 -0
- package/types/components/Toast/ToastContext.d.ts +0 -0
- package/types/components/Toast/ToastProvider.d.ts +0 -0
- package/types/components/Toast/__tests__/Toast.spec.d.ts +0 -0
- package/types/components/Toast/__tests__/ToastContainer.spec.d.ts +0 -0
- package/types/components/Toast/index.d.ts +0 -0
- package/types/components/Toast/types.d.ts +0 -0
- package/types/components/Toolbar/StyledToolbar.d.ts +22 -0
- package/types/components/Toolbar/ToolbarGroup.d.ts +13 -0
- package/types/components/Toolbar/ToolbarItem.d.ts +25 -0
- package/types/components/Toolbar/__tests__/ToolbarGroup.spec.d.ts +1 -0
- package/types/components/Toolbar/__tests__/ToolbarItem.spec.d.ts +1 -0
- package/types/components/Toolbar/index.d.ts +11 -0
- package/types/components/Typography/Text/StyledText.d.ts +1 -1
- package/types/components/Typography/Text/__tests__/StyledText.spec.d.ts +0 -0
- package/types/components/Typography/Text/__tests__/index.spec.d.ts +0 -0
- package/types/components/Typography/Text/index.d.ts +2 -2
- package/types/components/Typography/index.d.ts +0 -0
- package/types/index.d.ts +3 -1
- package/types/testHelpers/renderWithTheme.d.ts +0 -0
- package/types/theme/__tests__/index.spec.d.ts +0 -0
- package/types/theme/components/alert.d.ts +0 -0
- package/types/theme/components/avatar.d.ts +0 -0
- package/types/theme/components/badge.d.ts +0 -0
- package/types/theme/components/bottomNavigation.d.ts +0 -0
- package/types/theme/components/bottomSheet.d.ts +0 -0
- package/types/theme/components/button.d.ts +2 -0
- package/types/theme/components/card.d.ts +7 -0
- package/types/theme/components/checkbox.d.ts +0 -0
- package/types/theme/components/contentNavigator.d.ts +0 -0
- package/types/theme/components/divider.d.ts +0 -0
- package/types/theme/components/drawer.d.ts +0 -0
- package/types/theme/components/fab.d.ts +0 -0
- package/types/theme/components/icon.d.ts +0 -0
- package/types/theme/components/list.d.ts +40 -0
- package/types/theme/components/progress.d.ts +0 -0
- package/types/theme/components/radio.d.ts +0 -0
- package/types/theme/components/sectionHeading.d.ts +0 -0
- package/types/theme/components/select.d.ts +0 -0
- package/types/theme/components/spinner.d.ts +0 -0
- package/types/theme/components/switch.d.ts +0 -0
- package/types/theme/components/tabs.d.ts +0 -0
- package/types/theme/components/tag.d.ts +0 -0
- package/types/theme/components/textInput.d.ts +0 -0
- package/types/theme/components/toast.d.ts +0 -0
- package/types/theme/components/toolbar.d.ts +21 -0
- package/types/theme/components/typography.d.ts +4 -0
- package/types/theme/global/borders.d.ts +0 -0
- package/types/theme/global/colors.d.ts +5 -0
- package/types/theme/global/index.d.ts +5 -0
- package/types/theme/global/scale.d.ts +0 -0
- package/types/theme/global/space.d.ts +1 -0
- package/types/theme/global/typography.d.ts +0 -0
- package/types/theme/index.d.ts +4 -0
- package/types/types.d.ts +0 -0
- package/types/utils/__tests__/scale.spec.d.ts +0 -0
- package/types/utils/helpers.d.ts +0 -0
- package/types/utils/hooks.d.ts +0 -0
- package/types/utils/scale.d.ts +0 -0
- package/playground/.detoxrc.json +0 -49
- package/playground/.prettierrc.json +0 -8
- package/playground/.turbo/turbo-type-check.log +0 -7
- package/playground/app.json +0 -9
- package/playground/babel.config.js +0 -63
- package/playground/e2e/config.json +0 -9
- package/playground/e2e/environment.js +0 -23
- package/playground/e2e/firstTest.e2e.js +0 -16
- package/playground/expoEntry.js +0 -5
- 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 +0 -7
- package/playground/ios/MobileHeroDesignPlayground/AppDelegate.h +0 -9
- package/playground/ios/MobileHeroDesignPlayground/AppDelegate.m +0 -75
- package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/AppIcon.appiconset/Contents.json +0 -38
- package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/Contents.json +0 -6
- package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/SplashScreenBackground.imageset/Contents.json +0 -21
- package/playground/ios/MobileHeroDesignPlayground/Images.xcassets/SplashScreenBackground.imageset/image.png +0 -0
- package/playground/ios/MobileHeroDesignPlayground/Info.plist +0 -85
- package/playground/ios/MobileHeroDesignPlayground/MobileHeroDesignPlayground-Bridging-Header.h +0 -3
- package/playground/ios/MobileHeroDesignPlayground/MobileHeroDesignPlayground.entitlements +0 -8
- package/playground/ios/MobileHeroDesignPlayground/SplashScreen.storyboard +0 -40
- package/playground/ios/MobileHeroDesignPlayground/Supporting/Expo.plist +0 -16
- package/playground/ios/MobileHeroDesignPlayground/main.m +0 -10
- package/playground/ios/MobileHeroDesignPlayground/noop-file.swift +0 -4
- package/playground/ios/MobileHeroDesignPlayground.xcodeproj/project.pbxproj +0 -515
- package/playground/ios/MobileHeroDesignPlayground.xcodeproj/xcshareddata/xcschemes/MobileHeroDesignPlayground.xcscheme +0 -88
- package/playground/ios/MobileHeroDesignPlayground.xcworkspace/contents.xcworkspacedata +0 -10
- package/playground/ios/MobileHeroDesignPlayground.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
- package/playground/ios/Podfile +0 -49
- package/playground/ios/Podfile.lock +0 -478
- package/playground/ios/Podfile.properties.json +0 -3
- package/playground/metro.config.js +0 -24
- package/playground/package.json +0 -63
- package/playground/src/Alert.tsx +0 -80
- package/playground/src/App.tsx +0 -210
- package/playground/src/Avatar.tsx +0 -102
- package/playground/src/Badge.tsx +0 -187
- package/playground/src/BottomNavigation.tsx +0 -72
- package/playground/src/BottomSheet.tsx +0 -43
- package/playground/src/Button.tsx +0 -170
- package/playground/src/Card.tsx +0 -342
- package/playground/src/Checkbox.tsx +0 -55
- package/playground/src/Collapse.tsx +0 -99
- package/playground/src/ContentNavigator.tsx +0 -58
- package/playground/src/Divider.tsx +0 -13
- package/playground/src/Drawer.tsx +0 -32
- package/playground/src/FAB.tsx +0 -66
- package/playground/src/Icon.tsx +0 -144
- package/playground/src/IconButton.tsx +0 -78
- package/playground/src/MultipleThemes.tsx +0 -34
- package/playground/src/Progress.tsx +0 -95
- package/playground/src/Radio.tsx +0 -25
- package/playground/src/SectionHeading.tsx +0 -68
- package/playground/src/Select.tsx +0 -32
- package/playground/src/Spinner.tsx +0 -19
- package/playground/src/Switch.tsx +0 -80
- package/playground/src/Tabs.tsx +0 -136
- package/playground/src/Tag.tsx +0 -45
- package/playground/src/TextInput.tsx +0 -14
- package/playground/src/Toast.tsx +0 -114
- package/playground/src/Typography.tsx +0 -23
- package/playground/tsconfig.json +0 -21
- package/src/components/Select/MultiSelect/Footer.tsx +0 -15
|
@@ -10,7 +10,7 @@ Object {
|
|
|
10
10
|
"colors": Object {
|
|
11
11
|
"divider": "#fafbfb",
|
|
12
12
|
"error": "#de350b",
|
|
13
|
-
"info": "#
|
|
13
|
+
"info": "#b5c3fd",
|
|
14
14
|
"success": "#01b39c",
|
|
15
15
|
"warning": "#ffa234",
|
|
16
16
|
},
|
|
@@ -134,11 +134,13 @@ Object {
|
|
|
134
134
|
"default": 2,
|
|
135
135
|
},
|
|
136
136
|
"colors": Object {
|
|
137
|
+
"danger": "#de350b",
|
|
137
138
|
"defaultText": "#292a2b",
|
|
138
139
|
"disabledBackground": "#ccced1",
|
|
139
140
|
"disabledBorder": "#ccced1",
|
|
140
141
|
"disabledText": "#ccced1",
|
|
141
142
|
"invertedText": "#ffffff",
|
|
143
|
+
"pressedDanger": "#f2ae9d",
|
|
142
144
|
"pressedPrimary": "#c8a7ef",
|
|
143
145
|
"pressedSecondary": "#d1d9fe",
|
|
144
146
|
"primary": "#7622d7",
|
|
@@ -167,6 +169,13 @@ Object {
|
|
|
167
169
|
"card": Object {
|
|
168
170
|
"colors": Object {
|
|
169
171
|
"dataCardIndicator": "#a26fb0",
|
|
172
|
+
"indicator": Object {
|
|
173
|
+
"archived": "#bfc1c5",
|
|
174
|
+
"danger": "#e3602a",
|
|
175
|
+
"info": "#b5c3fd",
|
|
176
|
+
"success": "#5ace7d",
|
|
177
|
+
"warning": "#ffbe71",
|
|
178
|
+
},
|
|
170
179
|
},
|
|
171
180
|
"radii": Object {
|
|
172
181
|
"default": 12,
|
|
@@ -297,6 +306,44 @@ Object {
|
|
|
297
306
|
"xsmall": 16,
|
|
298
307
|
},
|
|
299
308
|
},
|
|
309
|
+
"list": Object {
|
|
310
|
+
"colors": Object {
|
|
311
|
+
"checkedListItemContainerBackground": "#f1e9fb",
|
|
312
|
+
"leadingStatus": Object {
|
|
313
|
+
"archived": "#ccced1",
|
|
314
|
+
"danger": "#de350b",
|
|
315
|
+
"info": "#d1d9fe",
|
|
316
|
+
"success": "#017d6d",
|
|
317
|
+
"warning": "#ffbe71",
|
|
318
|
+
},
|
|
319
|
+
"listItemContainerBackground": "#ffffff",
|
|
320
|
+
},
|
|
321
|
+
"offsets": Object {
|
|
322
|
+
"cardShadow": Object {
|
|
323
|
+
"height": 2,
|
|
324
|
+
"width": 0,
|
|
325
|
+
},
|
|
326
|
+
},
|
|
327
|
+
"opacity": Object {
|
|
328
|
+
"cardShadow": 1,
|
|
329
|
+
"disabled": 0.38,
|
|
330
|
+
"enabled": 1,
|
|
331
|
+
},
|
|
332
|
+
"radii": Object {
|
|
333
|
+
"card": 8,
|
|
334
|
+
"cardShadow": 4,
|
|
335
|
+
"leadingStatus": 999,
|
|
336
|
+
},
|
|
337
|
+
"space": Object {
|
|
338
|
+
"leadingStatusMarginRight": 8,
|
|
339
|
+
"listItemContainerPadding": 16,
|
|
340
|
+
"prefixContainerMarginRight": 8,
|
|
341
|
+
"suffixContainerMarginLeft": 8,
|
|
342
|
+
},
|
|
343
|
+
"widths": Object {
|
|
344
|
+
"leadingStatus": 8,
|
|
345
|
+
},
|
|
346
|
+
},
|
|
300
347
|
"progress": Object {
|
|
301
348
|
"colors": Object {
|
|
302
349
|
"background": "#dadbde",
|
|
@@ -490,7 +537,7 @@ Object {
|
|
|
490
537
|
"colors": Object {
|
|
491
538
|
"divider": "#fafbfb",
|
|
492
539
|
"error": "#de350b",
|
|
493
|
-
"info": "#
|
|
540
|
+
"info": "#b5c3fd",
|
|
494
541
|
"success": "#01b39c",
|
|
495
542
|
"warning": "#ffa234",
|
|
496
543
|
},
|
|
@@ -505,11 +552,34 @@ Object {
|
|
|
505
552
|
"mediumPadding": 16,
|
|
506
553
|
},
|
|
507
554
|
},
|
|
555
|
+
"toolbar": Object {
|
|
556
|
+
"borderWidths": Object {
|
|
557
|
+
"default": 1,
|
|
558
|
+
},
|
|
559
|
+
"colors": Object {
|
|
560
|
+
"background": "#ffffff",
|
|
561
|
+
"border": "#dadbde",
|
|
562
|
+
"danger": "#ffa234",
|
|
563
|
+
"disabled": "#8b8d92",
|
|
564
|
+
"error": "#de350b",
|
|
565
|
+
"info": "#4568fb",
|
|
566
|
+
"primary": "#7622d7",
|
|
567
|
+
"success": "#01b39c",
|
|
568
|
+
},
|
|
569
|
+
"space": Object {
|
|
570
|
+
"horizontalPadding": 12,
|
|
571
|
+
"verticalPadding": 8,
|
|
572
|
+
},
|
|
573
|
+
},
|
|
508
574
|
"typography": Object {
|
|
509
575
|
"colors": Object {
|
|
510
576
|
"body": "#292a2b",
|
|
577
|
+
"danger": "#de350b",
|
|
578
|
+
"info": "#4568fb",
|
|
511
579
|
"primary": "#7622d7",
|
|
512
580
|
"subdued": "#8b8d92",
|
|
581
|
+
"success": "#01b39c",
|
|
582
|
+
"warning": "#ffa234",
|
|
513
583
|
},
|
|
514
584
|
"fontSizes": Object {
|
|
515
585
|
"large": 16,
|
|
@@ -536,19 +606,21 @@ Object {
|
|
|
536
606
|
},
|
|
537
607
|
"colors": Object {
|
|
538
608
|
"archived": "#ccced1",
|
|
609
|
+
"archivedDark": "#bfc1c5",
|
|
539
610
|
"backgroundDark": "#292a2b",
|
|
540
611
|
"backgroundLight": "#fafbfb",
|
|
541
612
|
"black": "#000000",
|
|
542
613
|
"danger": "#de350b",
|
|
543
614
|
"dangerBackground": "#fcebe7",
|
|
544
615
|
"dangerLight": "#f2ae9d",
|
|
616
|
+
"dangerMediumLight": "#e3602a",
|
|
545
617
|
"disabledLightText": "#ccced1",
|
|
546
618
|
"disabledText": "#8b8d92",
|
|
547
619
|
"inactiveBackground": "#727478",
|
|
548
620
|
"info": "#4568fb",
|
|
549
621
|
"infoBackground": "#ecf0ff",
|
|
550
622
|
"infoLight": "#d1d9fe",
|
|
551
|
-
"infoMediumLight": "#
|
|
623
|
+
"infoMediumLight": "#b5c3fd",
|
|
552
624
|
"invertedText": "#ffffff",
|
|
553
625
|
"outline": "#dadbde",
|
|
554
626
|
"platformBackground": "#ffffff",
|
|
@@ -558,13 +630,16 @@ Object {
|
|
|
558
630
|
"primaryLight": "#c8a7ef",
|
|
559
631
|
"secondary": "#4568fb",
|
|
560
632
|
"secondaryLight": "#d1d9fe",
|
|
633
|
+
"shadow": "#dadbde",
|
|
561
634
|
"success": "#01b39c",
|
|
562
635
|
"successBackground": "#f0fef4",
|
|
563
636
|
"successDark": "#017d6d",
|
|
637
|
+
"successLight": "#5ace7d",
|
|
564
638
|
"text": "#292a2b",
|
|
565
639
|
"warning": "#ffa234",
|
|
566
640
|
"warningBackground": "#fff6eb",
|
|
567
641
|
"warningDark": "#d98a2c",
|
|
642
|
+
"warningLight": "#ffbe71",
|
|
568
643
|
},
|
|
569
644
|
"fontSizes": Object {
|
|
570
645
|
"large": 16,
|
|
@@ -604,6 +679,7 @@ Object {
|
|
|
604
679
|
"large": 24,
|
|
605
680
|
"medium": 16,
|
|
606
681
|
"small": 8,
|
|
682
|
+
"smallMedium": 12,
|
|
607
683
|
"xlarge": 32,
|
|
608
684
|
"xsmall": 4,
|
|
609
685
|
"xxlarge": 40,
|
|
@@ -35,6 +35,8 @@ const getButtonTheme = (theme: GlobalTheme) => {
|
|
|
35
35
|
pressedPrimary: theme.colors.primaryLight,
|
|
36
36
|
secondary: theme.colors.secondary,
|
|
37
37
|
pressedSecondary: theme.colors.secondaryLight,
|
|
38
|
+
danger: theme.colors.danger,
|
|
39
|
+
pressedDanger: theme.colors.dangerLight,
|
|
38
40
|
defaultText: theme.colors.text,
|
|
39
41
|
disabledText: theme.colors.disabledLightText,
|
|
40
42
|
disabledBorder: theme.colors.disabledLightText,
|
|
@@ -3,10 +3,17 @@ import { GlobalTheme } from '../global';
|
|
|
3
3
|
const getCardTheme = (theme: GlobalTheme) => {
|
|
4
4
|
const colors = {
|
|
5
5
|
dataCardIndicator: theme.colors.primaryDark,
|
|
6
|
+
indicator: {
|
|
7
|
+
archived: theme.colors.archivedDark,
|
|
8
|
+
info: theme.colors.infoMediumLight,
|
|
9
|
+
success: theme.colors.successLight,
|
|
10
|
+
warning: theme.colors.warningLight,
|
|
11
|
+
danger: theme.colors.dangerMediumLight,
|
|
12
|
+
},
|
|
6
13
|
};
|
|
7
14
|
|
|
8
15
|
const radii = {
|
|
9
|
-
default:
|
|
16
|
+
default: theme.radii.large,
|
|
10
17
|
};
|
|
11
18
|
|
|
12
19
|
return { colors, radii };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { GlobalTheme } from '../global';
|
|
2
|
+
|
|
3
|
+
const getListTheme = (theme: GlobalTheme) => {
|
|
4
|
+
const colors = {
|
|
5
|
+
checkedListItemContainerBackground: theme.colors.primaryBackground,
|
|
6
|
+
listItemContainerBackground: theme.colors.platformBackground,
|
|
7
|
+
leadingStatus: {
|
|
8
|
+
danger: theme.colors.danger,
|
|
9
|
+
info: theme.colors.infoLight,
|
|
10
|
+
success: theme.colors.successDark,
|
|
11
|
+
warning: theme.colors.warningLight,
|
|
12
|
+
archived: theme.colors.archived,
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
const space = {
|
|
17
|
+
listItemContainerPadding: theme.space.medium,
|
|
18
|
+
leadingStatusMarginRight: theme.space.small,
|
|
19
|
+
prefixContainerMarginRight: theme.space.small,
|
|
20
|
+
suffixContainerMarginLeft: theme.space.small,
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const radii = {
|
|
24
|
+
card: theme.radii.medium,
|
|
25
|
+
cardShadow: theme.radii.base,
|
|
26
|
+
leadingStatus: theme.radii.rounded,
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
const offsets = {
|
|
30
|
+
cardShadow: { width: 0, height: 2 },
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
const widths = {
|
|
34
|
+
leadingStatus: 8,
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const opacity = {
|
|
38
|
+
disabled: 0.38,
|
|
39
|
+
enabled: 1,
|
|
40
|
+
cardShadow: 1,
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
return { colors, space, radii, offsets, widths, opacity };
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export default getListTheme;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { GlobalTheme } from '../global';
|
|
2
|
+
|
|
3
|
+
const getToolbarTheme = (theme: GlobalTheme) => {
|
|
4
|
+
const colors = {
|
|
5
|
+
background: theme.colors.platformBackground,
|
|
6
|
+
border: theme.colors.outline,
|
|
7
|
+
primary: theme.colors.primary,
|
|
8
|
+
info: theme.colors.info,
|
|
9
|
+
success: theme.colors.success,
|
|
10
|
+
danger: theme.colors.warning,
|
|
11
|
+
error: theme.colors.danger,
|
|
12
|
+
disabled: theme.colors.disabledText,
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const space = {
|
|
16
|
+
verticalPadding: theme.space.small,
|
|
17
|
+
horizontalPadding: theme.space.smallMedium,
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
const borderWidths = {
|
|
21
|
+
default: theme.borderWidths.base,
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
return { colors, space, borderWidths };
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export default getToolbarTheme;
|
|
@@ -5,6 +5,10 @@ const getTypographyTheme = (theme: GlobalTheme) => {
|
|
|
5
5
|
body: theme.colors.text,
|
|
6
6
|
subdued: theme.colors.disabledText,
|
|
7
7
|
primary: theme.colors.primary,
|
|
8
|
+
info: theme.colors.info,
|
|
9
|
+
danger: theme.colors.danger,
|
|
10
|
+
warning: theme.colors.warning,
|
|
11
|
+
success: theme.colors.success,
|
|
8
12
|
};
|
|
9
13
|
|
|
10
14
|
const fonts = {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import palette
|
|
1
|
+
import palette, {
|
|
2
|
+
defaultMobilePalette as mobilePalette,
|
|
3
|
+
} from '@hero-design/colors';
|
|
2
4
|
|
|
3
5
|
const systemPalette = {
|
|
4
6
|
primary: palette.violet,
|
|
@@ -8,16 +10,19 @@ const systemPalette = {
|
|
|
8
10
|
secondary: palette.dodgerBlue,
|
|
9
11
|
secondaryLight: palette.dodgerBlueLight75,
|
|
10
12
|
info: palette.dodgerBlue,
|
|
11
|
-
infoMediumLight:
|
|
13
|
+
infoMediumLight: mobilePalette.vodka,
|
|
12
14
|
infoLight: palette.dodgerBlueLight75,
|
|
13
15
|
infoBackground: palette.dodgerBlueLight90,
|
|
14
16
|
success: palette.green,
|
|
17
|
+
successLight: mobilePalette.emerald,
|
|
15
18
|
successDark: palette.greenDark30,
|
|
16
19
|
successBackground: palette.grotesqueGreenLight90,
|
|
17
20
|
danger: palette.red,
|
|
21
|
+
dangerMediumLight: mobilePalette.apple,
|
|
18
22
|
dangerLight: palette.redLight60,
|
|
19
23
|
dangerBackground: palette.redLight90,
|
|
20
24
|
warning: palette.orange,
|
|
25
|
+
warningLight: mobilePalette.mellowApricot,
|
|
21
26
|
warningDark: palette.orangeDark15,
|
|
22
27
|
warningBackground: palette.orangeLight90,
|
|
23
28
|
platformBackground: palette.white,
|
|
@@ -28,9 +33,11 @@ const systemPalette = {
|
|
|
28
33
|
disabledLightText: palette.greyLight45,
|
|
29
34
|
invertedText: palette.white,
|
|
30
35
|
outline: palette.greyLight60,
|
|
36
|
+
archivedDark: mobilePalette.greyLight30,
|
|
31
37
|
archived: palette.greyLight45,
|
|
32
38
|
black: palette.black,
|
|
33
39
|
inactiveBackground: palette.greyDark30,
|
|
40
|
+
shadow: palette.greyLight60,
|
|
34
41
|
};
|
|
35
42
|
|
|
36
43
|
type SystemPalette = typeof systemPalette;
|
|
@@ -4,6 +4,7 @@ interface Space {
|
|
|
4
4
|
large: number;
|
|
5
5
|
medium: number;
|
|
6
6
|
small: number;
|
|
7
|
+
smallMedium: number;
|
|
7
8
|
xlarge: number;
|
|
8
9
|
xsmall: number;
|
|
9
10
|
xxlarge: number;
|
|
@@ -16,6 +17,7 @@ const getSpace = (baseSpace: number): Space => ({
|
|
|
16
17
|
xxsmall: scale(baseSpace * 0.25),
|
|
17
18
|
xsmall: scale(baseSpace * 0.5),
|
|
18
19
|
small: scale(baseSpace),
|
|
20
|
+
smallMedium: scale(baseSpace) * 1.5,
|
|
19
21
|
medium: scale(baseSpace * 2),
|
|
20
22
|
large: scale(baseSpace * 3),
|
|
21
23
|
xlarge: scale(baseSpace * 4),
|
package/src/theme/index.ts
CHANGED
|
@@ -32,7 +32,9 @@ import getTabsTheme from './components/tabs';
|
|
|
32
32
|
import getTagTheme from './components/tag';
|
|
33
33
|
import getTextInputTheme from './components/textInput';
|
|
34
34
|
import getToastTheme from './components/toast';
|
|
35
|
+
import getToolbarTheme from './components/toolbar';
|
|
35
36
|
import getTypographyTheme from './components/typography';
|
|
37
|
+
import getListTheme from './components/list';
|
|
36
38
|
|
|
37
39
|
type Theme = GlobalTheme & {
|
|
38
40
|
__hd__: {
|
|
@@ -59,7 +61,9 @@ type Theme = GlobalTheme & {
|
|
|
59
61
|
tag: ReturnType<typeof getTagTheme>;
|
|
60
62
|
textInput: ReturnType<typeof getTextInputTheme>;
|
|
61
63
|
toast: ReturnType<typeof getToastTheme>;
|
|
64
|
+
toolbar: ReturnType<typeof getToolbarTheme>;
|
|
62
65
|
typography: ReturnType<typeof getTypographyTheme>;
|
|
66
|
+
list: ReturnType<typeof getListTheme>;
|
|
63
67
|
};
|
|
64
68
|
};
|
|
65
69
|
|
|
@@ -94,7 +98,9 @@ const getTheme = (
|
|
|
94
98
|
tag: getTagTheme(globalTheme),
|
|
95
99
|
textInput: getTextInputTheme(globalTheme),
|
|
96
100
|
toast: getToastTheme(globalTheme),
|
|
101
|
+
toolbar: getToolbarTheme(globalTheme),
|
|
97
102
|
typography: getTypographyTheme(globalTheme),
|
|
103
|
+
list: getListTheme(globalTheme),
|
|
98
104
|
},
|
|
99
105
|
};
|
|
100
106
|
};
|
package/tsconfig.json
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -22,7 +22,7 @@ export interface ButtonProps {
|
|
|
22
22
|
/**
|
|
23
23
|
* Visual intent color to apply to button. It is required for `filled`, `outlined` and `text` variants.
|
|
24
24
|
*/
|
|
25
|
-
intent?: 'primary' | 'secondary';
|
|
25
|
+
intent?: 'primary' | 'secondary' | 'danger';
|
|
26
26
|
/**
|
|
27
27
|
* Loading state of button.
|
|
28
28
|
*/
|
|
@@ -36,7 +36,7 @@ export interface ButtonProps {
|
|
|
36
36
|
*/
|
|
37
37
|
rightIcon?: IconName;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Additional style.
|
|
40
40
|
*/
|
|
41
41
|
style?: StyleProp<ViewStyle>;
|
|
42
42
|
/**
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { View, ViewProps } from 'react-native';
|
|
2
2
|
import { Theme } from '@emotion/react';
|
|
3
|
-
declare type ThemeVariant = 'basic-transparent' | 'filled-primary' | 'filled-secondary' | 'outlined-primary' | 'outlined-secondary';
|
|
3
|
+
declare type ThemeVariant = 'basic-transparent' | 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger';
|
|
4
4
|
declare const StyledLoadingIndicatorWrapper: import("@emotion/native").StyledComponent<ViewProps & {
|
|
5
5
|
theme?: Theme | undefined;
|
|
6
6
|
as?: import("react").ElementType<any> | undefined;
|
|
File without changes
|
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StyleProp, ViewStyle, ViewProps } from 'react-native';
|
|
2
|
-
declare type ThemeVariant = 'basic-transparent' | 'filled-primary' | 'filled-secondary' | 'outlined-primary' | 'outlined-secondary';
|
|
2
|
+
declare type ThemeVariant = 'basic-transparent' | 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger';
|
|
3
3
|
interface LoadingIndicatorProps extends ViewProps {
|
|
4
4
|
/**
|
|
5
5
|
* Size of the loading dot.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { View } from 'react-native';
|
|
2
2
|
import { Theme } from '@emotion/react';
|
|
3
|
-
declare type Intent = 'primary' | 'secondary';
|
|
4
|
-
declare type ThemeVariant = 'basic-transparent' | 'filled-primary' | 'filled-secondary' | 'outlined-primary' | 'outlined-secondary';
|
|
3
|
+
declare type Intent = 'primary' | 'secondary' | 'danger';
|
|
4
|
+
declare type ThemeVariant = 'basic-transparent' | 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger';
|
|
5
5
|
declare const StyledButtonContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
6
6
|
theme?: Theme | undefined;
|
|
7
7
|
as?: import("react").ElementType<any> | undefined;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { View } from 'react-native';
|
|
2
|
+
declare const StyledDataCard: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
}, {}, {
|
|
6
|
+
ref?: import("react").Ref<View> | undefined;
|
|
7
|
+
}>;
|
|
8
|
+
declare const Indicator: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
9
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
10
|
+
as?: import("react").ElementType<any> | undefined;
|
|
11
|
+
} & {
|
|
12
|
+
themeIntent: 'success' | 'info' | 'warning' | 'danger' | 'archived';
|
|
13
|
+
}, {}, {
|
|
14
|
+
ref?: import("react").Ref<View> | undefined;
|
|
15
|
+
}>;
|
|
16
|
+
export { StyledDataCard, Indicator };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { StyleProp, ViewStyle, ViewProps } from 'react-native';
|
|
3
|
+
export interface DataCardProps extends ViewProps {
|
|
4
|
+
/**
|
|
5
|
+
* Card's content.
|
|
6
|
+
*/
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Visual intent color to apply to card.
|
|
10
|
+
*/
|
|
11
|
+
intent?: 'success' | 'info' | 'warning' | 'danger' | 'archived';
|
|
12
|
+
/**
|
|
13
|
+
* Additional style.
|
|
14
|
+
*/
|
|
15
|
+
style?: StyleProp<ViewStyle>;
|
|
16
|
+
/**
|
|
17
|
+
* Testing id of the component.
|
|
18
|
+
*/
|
|
19
|
+
testID?: string;
|
|
20
|
+
}
|
|
21
|
+
declare const DataCard: ({ intent, children, ...nativeProps }: DataCardProps) => JSX.Element;
|
|
22
|
+
export default DataCard;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -7,10 +7,12 @@ interface CardProps extends ViewProps {
|
|
|
7
7
|
children?: ReactNode;
|
|
8
8
|
/**
|
|
9
9
|
* Card type.
|
|
10
|
+
* This is now deprecated. If you want to use "data" variant, please use Card.Data instead.
|
|
11
|
+
* @deprecated
|
|
10
12
|
*/
|
|
11
13
|
variant?: 'basic' | 'data';
|
|
12
14
|
/**
|
|
13
|
-
*
|
|
15
|
+
* Additional style.
|
|
14
16
|
*/
|
|
15
17
|
style?: StyleProp<ViewStyle>;
|
|
16
18
|
/**
|
|
@@ -18,5 +20,7 @@ interface CardProps extends ViewProps {
|
|
|
18
20
|
*/
|
|
19
21
|
testID?: string;
|
|
20
22
|
}
|
|
21
|
-
declare const
|
|
22
|
-
|
|
23
|
+
declare const _default: (({ variant, children, ...nativeProps }: CardProps) => JSX.Element) & {
|
|
24
|
+
Data: ({ intent, children, ...nativeProps }: import("./DataCard").DataCardProps) => JSX.Element;
|
|
25
|
+
};
|
|
26
|
+
export default _default;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|