@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,2 @@
|
|
|
1
|
+
declare const isHeroIcon: (x: any) => x is "number" | "image" | "menu" | "switch" | "list" | "bold" | "activate" | "add-person" | "adjustment" | "alignment" | "bank" | "bell" | "billing" | "bookmark" | "box-check" | "box" | "buildings" | "cake" | "calendar-clock" | "calendar" | "candy-box-menu" | "carat-down-small" | "carat-down" | "carat-left" | "carat-right" | "carat-up" | "circle-add" | "circle-cancel" | "circle-check" | "circle-down" | "circle-info" | "circle-left" | "circle-ok" | "circle-pencil" | "circle-question" | "circle-remove" | "circle-right" | "circle-up" | "circle-warning" | "clock" | "cloud-download" | "cloud-upload" | "cog" | "coin" | "contacts" | "credit-card" | "diamond" | "direction-arrows" | "directory" | "document" | "dollar-coin-shine" | "double-buildings" | "edit-template" | "envelope" | "expense" | "eye-circle" | "eye-invisible" | "eye" | "face-meh" | "face-sad" | "face-smiley" | "feed" | "feedbacks" | "file-certified" | "file-clone" | "file-copy" | "file-csv" | "file-dispose" | "file-doc" | "file-excel" | "file-export" | "file-lock" | "file-pdf" | "file-powerpoint" | "file-search" | "file-secured" | "file-sheets" | "file-slide" | "file-verified" | "file-word" | "file" | "folder-user" | "folder" | "funnel-filter" | "global-dollar" | "globe" | "graduation-cap" | "graph" | "happy-sun" | "health-bag" | "heart" | "home" | "import" | "incident-siren" | "instapay" | "loading" | "loading-2" | "location" | "lock" | "media-content" | "moneybag" | "moon" | "multiple-stars" | "multiple-users" | "node" | "open-folder" | "paperclip" | "payment-summary" | "pencil" | "phone" | "piggy-bank" | "plane" | "play-circle" | "print" | "raising-hands" | "reply" | "reschedule" | "rostering" | "save" | "schedule" | "search-person" | "send" | "speaker" | "star-medal" | "star" | "steps-circle" | "stopwatch" | "suitcase" | "survey" | "tag" | "target" | "teams" | "timesheet" | "touch-id" | "trash-bin" | "unlock" | "user" | "video-1" | "video-2" | "activate-outlined" | "add-person-outlined" | "add-section-outlined" | "add-time-outlined" | "add" | "adjustment-outlined" | "alignment-2-outlined" | "alignment-outlined" | "all-caps" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-up" | "at-sign" | "bell-outlined" | "billing-outlined" | "body-outlined" | "bookmark-outlined" | "box-check-outlined" | "box-outlined" | "bullet-points" | "cake-outlined" | "calendar-dates-outlined" | "calendar-star-outlined" | "camera-outlined" | "cancel" | "checkmark" | "circle-add-outlined" | "circle-cancel-outlined" | "circle-down-outlined" | "circle-info-outlined" | "circle-left-outlined" | "circle-ok-outlined" | "circle-question-outlined" | "circle-remove-outlined" | "circle-right-outlined" | "circle-up-outlined" | "circle-warning-outlined" | "clock-2-outlined" | "clock-outlined" | "cog-outlined" | "coin-outlined" | "comment-outlined" | "contacts-outlined" | "credit-card-outlined" | "direction-arrows-outlined" | "directory-outlined" | "document-outlined" | "dollar-coin-shine-outlined" | "dollar-sign" | "double-buildings-outlined" | "double-left-arrows" | "double-right-arrows" | "download-outlined" | "edit-template-outlined" | "email-outlined" | "enter-arrow" | "envelope-outlined" | "expense-outlined" | "external-link" | "eye-invisible-outlined" | "eye-outlined" | "face-id" | "face-meh-outlined" | "face-open-smiley-outlined" | "face-sad-outlined" | "face-smiley-outlined" | "feed-outlined" | "file-certified-outlined" | "file-clone-outlined" | "file-copy-outlined" | "file-dispose-outlined" | "file-download-outlined" | "file-export-outlined" | "file-lock-outlined" | "file-outlined" | "file-search-outlined" | "file-secured-outlined" | "file-verified-outlined" | "folder-outlined" | "folder-user-outlined" | "funnel-filter-outline" | "graph-outlined" | "happy-sun-outlined" | "health-bag-outlined" | "heart-outlined" | "home-outlined" | "image-outlined" | "import-outlined" | "instapay-outlined" | "italic" | "link-1" | "link-2" | "list-outlined" | "location-outlined" | "lock-outlined" | "locked-file-outlined" | "log-out" | "media-content-outlined" | "menu-close" | "menu-expand" | "menu-fold-outlined" | "menu-unfold-outlined" | "moneybag-outlined" | "moon-outlined" | "more-horizontal" | "more-vertical" | "multiple-folders-outlined" | "multiple-users-outlined" | "node-outlined" | "number-points" | "payment-summary-outlined" | "payslip-outlined" | "pencil-outlined" | "percentage" | "phone-outlined" | "piggy-bank-outlined" | "plane-outlined" | "play-circle-outlined" | "print-outlined" | "qr-code-outlined" | "re-assign" | "redeem" | "refresh" | "remove" | "reply-outlined" | "restart" | "return-arrow" | "rostering-outlined" | "save-outlined" | "schedule-outlined" | "search-outlined" | "send-outlined" | "share-1" | "share-2" | "single-down-arrow" | "single-left-arrow" | "single-right-arrow" | "single-up-arrow" | "speaker-outlined" | "star-outlined" | "stopwatch-outlined" | "strikethrough" | "suitcase-outlined" | "survey-outlined" | "switch-outlined" | "sync" | "target-outlined" | "timesheet-outlined" | "transfer" | "trash-bin-outlined" | "unavailable" | "underline" | "unlock-outlined" | "upload-outlined" | "user-circle-outlined" | "user-outlined" | "user-rectangle-outlined" | "video-1-outlined" | "video-2-outlined" | "wallet-outlined";
|
|
2
|
+
export { isHeroIcon };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { StyleProp, ViewStyle, ViewProps } from 'react-native';
|
|
2
|
+
export interface ProgressBarProps extends ViewProps {
|
|
3
|
+
/**
|
|
4
|
+
* The progress completion percentage: 0-100.
|
|
5
|
+
*/
|
|
6
|
+
value: number;
|
|
7
|
+
/**
|
|
8
|
+
* Set intent for your progress.
|
|
9
|
+
*/
|
|
10
|
+
intent?: 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
11
|
+
/**
|
|
12
|
+
* Additional style.
|
|
13
|
+
*/
|
|
14
|
+
style?: StyleProp<ViewStyle>;
|
|
15
|
+
testID?: string;
|
|
16
|
+
}
|
|
17
|
+
declare const ProgressBar: ({ value, intent, style, testID, ...nativeProps }: ProgressBarProps) => JSX.Element;
|
|
18
|
+
export default ProgressBar;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ViewProps, StyleProp, ViewStyle } from 'react-native';
|
|
2
|
+
export interface ProgressCircleProps extends ViewProps {
|
|
3
|
+
/**
|
|
4
|
+
* The progress completion percentage: 0-100.
|
|
5
|
+
*/
|
|
6
|
+
value: number;
|
|
7
|
+
/**
|
|
8
|
+
* Set intent for your progress.
|
|
9
|
+
*/
|
|
10
|
+
intent?: 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
11
|
+
/**
|
|
12
|
+
* Additional style.
|
|
13
|
+
*/
|
|
14
|
+
style?: StyleProp<ViewStyle>;
|
|
15
|
+
testID?: string;
|
|
16
|
+
}
|
|
17
|
+
declare const ProgressCircle: ({ value, intent, style, testID, ...nativeProps }: ProgressCircleProps) => JSX.Element;
|
|
18
|
+
export default ProgressCircle;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Animated, View, ViewProps } from 'react-native';
|
|
2
|
+
import { ThemeIntent } from './types';
|
|
3
|
+
declare const StyledWrapper: import("@emotion/native").StyledComponent<ViewProps & {
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any> | undefined;
|
|
6
|
+
}, {}, {
|
|
7
|
+
ref?: import("react").Ref<View> | undefined;
|
|
8
|
+
}>;
|
|
9
|
+
declare const StyledInner: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
|
|
10
|
+
children?: import("react").ReactNode;
|
|
11
|
+
} & {
|
|
12
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
13
|
+
as?: import("react").ElementType<any> | undefined;
|
|
14
|
+
} & {
|
|
15
|
+
themeIntent: ThemeIntent;
|
|
16
|
+
}, {}, {}>;
|
|
17
|
+
export { StyledWrapper, StyledInner };
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { View, ViewProps } from 'react-native';
|
|
2
|
+
import { ThemeIntent } from './types';
|
|
3
|
+
declare const HalfCircleWrapper: import("@emotion/native").StyledComponent<ViewProps & {
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any> | undefined;
|
|
6
|
+
}, {}, {
|
|
7
|
+
ref?: import("react").Ref<View> | undefined;
|
|
8
|
+
}>;
|
|
9
|
+
declare const HalfCircleInnerFG: import("@emotion/native").StyledComponent<ViewProps & {
|
|
10
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
+
as?: import("react").ElementType<any> | undefined;
|
|
12
|
+
} & {
|
|
13
|
+
themeIntent: ThemeIntent;
|
|
14
|
+
}, {}, {
|
|
15
|
+
ref?: import("react").Ref<View> | undefined;
|
|
16
|
+
}>;
|
|
17
|
+
declare const HalfCircleInnerBG: import("@emotion/native").StyledComponent<ViewProps & {
|
|
18
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
19
|
+
as?: import("react").ElementType<any> | undefined;
|
|
20
|
+
}, {}, {
|
|
21
|
+
ref?: import("react").Ref<View> | undefined;
|
|
22
|
+
}>;
|
|
23
|
+
declare const DonutCircle: import("@emotion/native").StyledComponent<ViewProps & {
|
|
24
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
25
|
+
as?: import("react").ElementType<any> | undefined;
|
|
26
|
+
}, {}, {
|
|
27
|
+
ref?: import("react").Ref<View> | undefined;
|
|
28
|
+
}>;
|
|
29
|
+
declare const StrokeEnd: import("@emotion/native").StyledComponent<ViewProps & {
|
|
30
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
31
|
+
as?: import("react").ElementType<any> | undefined;
|
|
32
|
+
} & {
|
|
33
|
+
themeIntent: ThemeIntent;
|
|
34
|
+
}, {}, {
|
|
35
|
+
ref?: import("react").Ref<View> | undefined;
|
|
36
|
+
}>;
|
|
37
|
+
export { DonutCircle, HalfCircleWrapper, HalfCircleInnerFG, HalfCircleInnerBG, StrokeEnd, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare const Progress: {
|
|
2
|
+
readonly Circle: ({ value, intent, style, testID, ...nativeProps }: import("./ProgressCircle").ProgressCircleProps) => JSX.Element;
|
|
3
|
+
readonly Bar: ({ value, intent, style, testID, ...nativeProps }: import("./ProgressBar").ProgressBarProps) => JSX.Element;
|
|
4
|
+
};
|
|
5
|
+
export default Progress;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare type ThemeIntent = 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
export interface RadioProps {
|
|
4
|
+
/**
|
|
5
|
+
* Whether the radio is checked.
|
|
6
|
+
*/
|
|
7
|
+
checked?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Press event handler.
|
|
10
|
+
*/
|
|
11
|
+
onPress: () => void;
|
|
12
|
+
/**
|
|
13
|
+
* Radio text.
|
|
14
|
+
*/
|
|
15
|
+
text: string;
|
|
16
|
+
/**
|
|
17
|
+
* Additional style.
|
|
18
|
+
*/
|
|
19
|
+
style?: StyleProp<ViewStyle>;
|
|
20
|
+
/**
|
|
21
|
+
* Testing id of the component.
|
|
22
|
+
*/
|
|
23
|
+
testID?: string;
|
|
24
|
+
}
|
|
25
|
+
declare const Radio: ({ text, checked, onPress, style, testID, }: RadioProps) => ReactElement;
|
|
26
|
+
export default Radio;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
export interface RadioGroupProps {
|
|
4
|
+
/**
|
|
5
|
+
* An array of radio options to be selected.
|
|
6
|
+
*/
|
|
7
|
+
options: {
|
|
8
|
+
text: string;
|
|
9
|
+
value: string;
|
|
10
|
+
}[];
|
|
11
|
+
/**
|
|
12
|
+
* Radio input value.
|
|
13
|
+
*/
|
|
14
|
+
value: string;
|
|
15
|
+
/**
|
|
16
|
+
* Press event handler receiving selected radio's value.
|
|
17
|
+
*/
|
|
18
|
+
onPress: (value: string) => void;
|
|
19
|
+
/**
|
|
20
|
+
* Additional style.
|
|
21
|
+
*/
|
|
22
|
+
style?: StyleProp<ViewStyle>;
|
|
23
|
+
/**
|
|
24
|
+
* Testing id of the component.
|
|
25
|
+
*/
|
|
26
|
+
testID?: string;
|
|
27
|
+
}
|
|
28
|
+
declare const RadioGroup: ({ value, onPress, options, style, testID, }: RadioGroupProps) => ReactElement;
|
|
29
|
+
export default RadioGroup;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { View, TouchableOpacity } from 'react-native';
|
|
2
|
+
declare const Wrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
} & {
|
|
6
|
+
themeChecked: boolean;
|
|
7
|
+
}, {}, {
|
|
8
|
+
ref?: import("react").Ref<TouchableOpacity> | undefined;
|
|
9
|
+
}>;
|
|
10
|
+
declare const Circle: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
11
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
+
as?: import("react").ElementType<any> | undefined;
|
|
13
|
+
} & {
|
|
14
|
+
themeChecked: boolean;
|
|
15
|
+
}, {}, {
|
|
16
|
+
ref?: import("react").Ref<View> | undefined;
|
|
17
|
+
}>;
|
|
18
|
+
declare const InnerCircle: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
19
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
20
|
+
as?: import("react").ElementType<any> | undefined;
|
|
21
|
+
}, {}, {
|
|
22
|
+
ref?: import("react").Ref<View> | undefined;
|
|
23
|
+
}>;
|
|
24
|
+
declare const Spacer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
25
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
26
|
+
as?: import("react").ElementType<any> | undefined;
|
|
27
|
+
}, {}, {
|
|
28
|
+
ref?: import("react").Ref<View> | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
export { Wrapper, Circle, InnerCircle, Spacer };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { View } from 'react-native';
|
|
2
|
+
declare const StyledHeading: 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 StyledIconWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
9
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
10
|
+
as?: import("react").ElementType<any> | undefined;
|
|
11
|
+
}, {}, {
|
|
12
|
+
ref?: import("react").Ref<View> | undefined;
|
|
13
|
+
}>;
|
|
14
|
+
declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
15
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
16
|
+
as?: import("react").ElementType<any> | undefined;
|
|
17
|
+
}, {}, {
|
|
18
|
+
ref?: import("react").Ref<View> | undefined;
|
|
19
|
+
}>;
|
|
20
|
+
export { StyledHeading, StyledIconWrapper, StyledWrapper };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { StyleProp, ViewProps, ViewStyle } from 'react-native';
|
|
3
|
+
import { IconName } from '../Icon';
|
|
4
|
+
export interface SectionHeadingProps extends ViewProps {
|
|
5
|
+
/**
|
|
6
|
+
* Heading text.
|
|
7
|
+
*/
|
|
8
|
+
text: string | ReactElement;
|
|
9
|
+
/**
|
|
10
|
+
* Name of the Icon.
|
|
11
|
+
*/
|
|
12
|
+
icon?: IconName;
|
|
13
|
+
/**
|
|
14
|
+
* Right corner content
|
|
15
|
+
*/
|
|
16
|
+
rightChildren?: ReactElement;
|
|
17
|
+
/**
|
|
18
|
+
* Size of the text.
|
|
19
|
+
*/
|
|
20
|
+
fontSize?: 'small' | 'medium' | 'large' | 'xlarge';
|
|
21
|
+
/**
|
|
22
|
+
* Heading's font-weight.
|
|
23
|
+
*/
|
|
24
|
+
fontWeight?: 'light' | 'regular' | 'semi-bold';
|
|
25
|
+
/**
|
|
26
|
+
* Visual intent color to apply to text.
|
|
27
|
+
*/
|
|
28
|
+
intent?: 'subdued' | 'body' | 'primary';
|
|
29
|
+
/**
|
|
30
|
+
* Addditional style.
|
|
31
|
+
*/
|
|
32
|
+
style?: StyleProp<ViewStyle>;
|
|
33
|
+
/**
|
|
34
|
+
* Testing id of the component.
|
|
35
|
+
*/
|
|
36
|
+
testID?: string;
|
|
37
|
+
}
|
|
38
|
+
declare const SectionHeading: ({ icon, text, rightChildren, fontSize, intent, fontWeight, style, testID, }: SectionHeadingProps) => ReactElement;
|
|
39
|
+
export default SectionHeading;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { View, ViewProps } from 'react-native';
|
|
2
|
+
declare const StyledView: import("@emotion/native").StyledComponent<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 StyledSpinnerContainer: import("@emotion/native").StyledComponent<ViewProps & {
|
|
9
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
10
|
+
as?: import("react").ElementType<any> | undefined;
|
|
11
|
+
}, {}, {
|
|
12
|
+
ref?: import("react").Ref<View> | undefined;
|
|
13
|
+
}>;
|
|
14
|
+
declare const StyledSpinnerRow: import("@emotion/native").StyledComponent<ViewProps & {
|
|
15
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
16
|
+
as?: import("react").ElementType<any> | undefined;
|
|
17
|
+
} & {
|
|
18
|
+
themePosition: 'top' | 'bottom';
|
|
19
|
+
}, {}, {
|
|
20
|
+
ref?: import("react").Ref<View> | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
declare const StyledSpinnerDot: import("@emotion/native").StyledComponent<ViewProps & {
|
|
23
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
24
|
+
as?: import("react").ElementType<any> | undefined;
|
|
25
|
+
} & {
|
|
26
|
+
themePosition: 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
|
|
27
|
+
}, {}, {
|
|
28
|
+
ref?: import("react").Ref<View> | undefined;
|
|
29
|
+
}>;
|
|
30
|
+
export { StyledView, StyledSpinnerContainer, StyledSpinnerRow, StyledSpinnerDot, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import { ViewProps } from 'react-native';
|
|
3
|
+
interface SpinnerProps extends ViewProps {
|
|
4
|
+
/**
|
|
5
|
+
* Testing id of the component.
|
|
6
|
+
*/
|
|
7
|
+
testID?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const Spinner: ({ testID, ...nativeProps }: SpinnerProps) => ReactElement;
|
|
10
|
+
export default Spinner;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Animated } from 'react-native';
|
|
2
|
+
declare const ActiveTabIndicator: ({ scrollOffsetAnimatedValue, positionAnimatedValue, tabsLength, tabsWidth, }: {
|
|
3
|
+
scrollOffsetAnimatedValue: Animated.Value;
|
|
4
|
+
positionAnimatedValue: Animated.Value;
|
|
5
|
+
tabsLength: number;
|
|
6
|
+
tabsWidth: number;
|
|
7
|
+
}) => JSX.Element;
|
|
8
|
+
export default ActiveTabIndicator;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Animated, View } from 'react-native';
|
|
2
|
+
import PagerView from 'react-native-pager-view';
|
|
3
|
+
declare const TabScreen: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any> | undefined;
|
|
6
|
+
}, {}, {
|
|
7
|
+
ref?: import("react").Ref<View> | undefined;
|
|
8
|
+
}>;
|
|
9
|
+
declare const TabContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
10
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
+
as?: import("react").ElementType<any> | undefined;
|
|
12
|
+
}, {}, {
|
|
13
|
+
ref?: import("react").Ref<View> | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
declare const ContentWrapper: import("@emotion/native").StyledComponent<import("react-native-pager-view").PagerViewProps & {
|
|
16
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
17
|
+
as?: import("react").ElementType<any> | undefined;
|
|
18
|
+
}, {}, {
|
|
19
|
+
ref?: import("react").Ref<PagerView> | undefined;
|
|
20
|
+
}>;
|
|
21
|
+
declare const HeaderTabWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
22
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
23
|
+
as?: import("react").ElementType<any> | undefined;
|
|
24
|
+
} & {
|
|
25
|
+
themeInsets: {
|
|
26
|
+
top: number;
|
|
27
|
+
right: number;
|
|
28
|
+
bottom: number;
|
|
29
|
+
left: number;
|
|
30
|
+
};
|
|
31
|
+
}, {}, {
|
|
32
|
+
ref?: import("react").Ref<View> | undefined;
|
|
33
|
+
}>;
|
|
34
|
+
declare const HeaderTabItem: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
35
|
+
children?: import("react").ReactNode;
|
|
36
|
+
} & {
|
|
37
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
38
|
+
as?: import("react").ElementType<any> | undefined;
|
|
39
|
+
}, {}, {}>;
|
|
40
|
+
declare const HeaderTabItemOutlineWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
41
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
42
|
+
as?: import("react").ElementType<any> | undefined;
|
|
43
|
+
}, {}, {
|
|
44
|
+
ref?: import("react").Ref<View> | undefined;
|
|
45
|
+
}>;
|
|
46
|
+
declare const HeaderTabItemOutline: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
47
|
+
children?: import("react").ReactNode;
|
|
48
|
+
} & {
|
|
49
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
50
|
+
as?: import("react").ElementType<any> | undefined;
|
|
51
|
+
} & {
|
|
52
|
+
themeActive: boolean;
|
|
53
|
+
}, {}, {}>;
|
|
54
|
+
declare const HeaderTabItemWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
55
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
56
|
+
as?: import("react").ElementType<any> | undefined;
|
|
57
|
+
}, {}, {
|
|
58
|
+
ref?: import("react").Ref<View> | undefined;
|
|
59
|
+
}>;
|
|
60
|
+
export { HeaderTabItem, TabScreen, TabContainer, HeaderTabWrapper, ContentWrapper, HeaderTabItemOutlineWrapper, HeaderTabItemOutline, HeaderTabItemWrapper, };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Animated, View } from 'react-native';
|
|
2
|
+
import PagerView from 'react-native-pager-view';
|
|
3
|
+
declare const TabContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any> | undefined;
|
|
6
|
+
}, {}, {
|
|
7
|
+
ref?: import("react").Ref<View> | undefined;
|
|
8
|
+
}>;
|
|
9
|
+
declare const HeaderTabWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
10
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
+
as?: import("react").ElementType<any> | undefined;
|
|
12
|
+
} & {
|
|
13
|
+
themeInsets: {
|
|
14
|
+
top: number;
|
|
15
|
+
right: number;
|
|
16
|
+
bottom: number;
|
|
17
|
+
left: number;
|
|
18
|
+
};
|
|
19
|
+
}, {}, {
|
|
20
|
+
ref?: import("react").Ref<View> | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
declare const HeaderTab: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
23
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
24
|
+
as?: import("react").ElementType<any> | undefined;
|
|
25
|
+
}, {}, {
|
|
26
|
+
ref?: import("react").Ref<View> | undefined;
|
|
27
|
+
}>;
|
|
28
|
+
declare const HeaderTabItem: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
29
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
30
|
+
as?: import("react").ElementType<any> | undefined;
|
|
31
|
+
}, {}, {
|
|
32
|
+
ref?: import("react").Ref<View> | undefined;
|
|
33
|
+
}>;
|
|
34
|
+
declare const ContentWrapper: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native-pager-view").PagerViewProps & import("react").RefAttributes<PagerView>> & {
|
|
35
|
+
children?: import("react").ReactNode;
|
|
36
|
+
} & {
|
|
37
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
38
|
+
as?: import("react").ElementType<any> | undefined;
|
|
39
|
+
}, {}, {}>;
|
|
40
|
+
declare const TabScreen: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
41
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
42
|
+
as?: import("react").ElementType<any> | undefined;
|
|
43
|
+
}, {}, {
|
|
44
|
+
ref?: import("react").Ref<View> | undefined;
|
|
45
|
+
}>;
|
|
46
|
+
declare const StyledIndicator: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
47
|
+
children?: import("react").ReactNode;
|
|
48
|
+
} & {
|
|
49
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
50
|
+
as?: import("react").ElementType<any> | undefined;
|
|
51
|
+
} & {
|
|
52
|
+
themeWidth: number;
|
|
53
|
+
}, {}, {}>;
|
|
54
|
+
export { TabContainer, HeaderTabWrapper, HeaderTab, HeaderTabItem, ContentWrapper, TabScreen, StyledIndicator, };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { StyleProp, ViewStyle, ViewProps } from 'react-native';
|
|
3
|
+
import { IconName } from '../Icon';
|
|
4
|
+
export declare type ItemType = string | IconName | ((props: {
|
|
5
|
+
color: string;
|
|
6
|
+
}) => ReactNode);
|
|
7
|
+
export declare type TabType = {
|
|
8
|
+
key: string;
|
|
9
|
+
activeItem: ItemType;
|
|
10
|
+
inactiveItem?: ItemType;
|
|
11
|
+
component: ReactNode;
|
|
12
|
+
testID?: string;
|
|
13
|
+
showBadge?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export interface TabsProps extends ViewProps {
|
|
16
|
+
/**
|
|
17
|
+
* Callback which is called on tab press, receiving key of upcoming active Tab.
|
|
18
|
+
*/
|
|
19
|
+
onTabPress: (key: string) => void;
|
|
20
|
+
/**
|
|
21
|
+
* Current selected tab key.
|
|
22
|
+
*/
|
|
23
|
+
selectedTabKey: string;
|
|
24
|
+
/**
|
|
25
|
+
* List of Tabs to be rendered. Each Tab must have an unique key.
|
|
26
|
+
*/
|
|
27
|
+
tabs: TabType[];
|
|
28
|
+
/**
|
|
29
|
+
* Style for the container of Tab.
|
|
30
|
+
*/
|
|
31
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
32
|
+
/**
|
|
33
|
+
* Style for the tab navigation bar.
|
|
34
|
+
*/
|
|
35
|
+
barStyle?: StyleProp<ViewStyle>;
|
|
36
|
+
/**
|
|
37
|
+
* Whether inactive screen should be removed and unmounted in React.
|
|
38
|
+
* Defaults value is `false`.
|
|
39
|
+
*/
|
|
40
|
+
lazy?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Only work when lazy is `true`. You can specify how many adjacent screens should be preloaded.
|
|
43
|
+
* Defaults value is `1`.
|
|
44
|
+
*/
|
|
45
|
+
lazyPreloadDistance?: number;
|
|
46
|
+
/**
|
|
47
|
+
* Testing id of the component.
|
|
48
|
+
*/
|
|
49
|
+
testID?: string;
|
|
50
|
+
}
|
|
51
|
+
declare const _default: (({ onTabPress, selectedTabKey, tabs, containerStyle, barStyle, lazy, lazyPreloadDistance, }: TabsProps) => JSX.Element) & {
|
|
52
|
+
Scroll: ({ onTabPress, selectedTabKey, tabs, containerStyle, barStyle, lazy, lazyPreloadDistance, }: TabsProps) => JSX.Element;
|
|
53
|
+
};
|
|
54
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { View, Text } from 'react-native';
|
|
2
|
+
declare type ThemeIntent = 'success' | 'warning' | 'danger' | 'info';
|
|
3
|
+
declare const StyledView: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any> | undefined;
|
|
6
|
+
} & {
|
|
7
|
+
themeIntent: ThemeIntent;
|
|
8
|
+
}, {}, {
|
|
9
|
+
ref?: import("react").Ref<View> | undefined;
|
|
10
|
+
}>;
|
|
11
|
+
declare const StyledText: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
|
|
12
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
13
|
+
as?: import("react").ElementType<any> | undefined;
|
|
14
|
+
} & {
|
|
15
|
+
themeIntent: ThemeIntent;
|
|
16
|
+
}, {}, {
|
|
17
|
+
ref?: import("react").Ref<Text> | undefined;
|
|
18
|
+
}>;
|
|
19
|
+
export { StyledView, StyledText };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { StyleProp, ViewStyle, ViewProps } from 'react-native';
|
|
2
|
+
interface TagProps extends ViewProps {
|
|
3
|
+
/**
|
|
4
|
+
* Content of the Tag.
|
|
5
|
+
*/
|
|
6
|
+
content: string;
|
|
7
|
+
/**
|
|
8
|
+
* Visual intent color to apply to Tag.
|
|
9
|
+
*/
|
|
10
|
+
intent?: 'success' | 'warning' | 'danger' | 'info';
|
|
11
|
+
/**
|
|
12
|
+
* Additional style.
|
|
13
|
+
*/
|
|
14
|
+
style?: StyleProp<ViewStyle>;
|
|
15
|
+
/**
|
|
16
|
+
* Testing id of the component.
|
|
17
|
+
*/
|
|
18
|
+
testID?: string;
|
|
19
|
+
}
|
|
20
|
+
declare const Tag: ({ content, intent, style, testID, ...nativeProps }: TagProps) => JSX.Element;
|
|
21
|
+
export default Tag;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { TextInput, View } from 'react-native';
|
|
2
|
+
declare const Container: 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 Label: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
|
|
9
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
10
|
+
as?: import("react").ElementType<any> | undefined;
|
|
11
|
+
}, {}, {}>;
|
|
12
|
+
declare const Prefix: import("@emotion/native").StyledComponent<import("../Icon").IconProps & {
|
|
13
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
14
|
+
as?: import("react").ElementType<any> | undefined;
|
|
15
|
+
}, {}, {}>;
|
|
16
|
+
declare const StyledTextInput: import("@emotion/native").StyledComponent<import("react-native").TextInputProps & {
|
|
17
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
18
|
+
as?: import("react").ElementType<any> | undefined;
|
|
19
|
+
}, {}, {
|
|
20
|
+
ref?: import("react").Ref<TextInput> | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
export { Container, Label, Prefix, StyledTextInput };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|