@hero-design/rn 7.6.0 → 7.6.1-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +8 -8
- package/.turbo/turbo-build:types.log +2 -0
- package/.turbo/turbo-build:watch.log +1 -0
- package/.turbo/turbo-lint.log +2 -0
- package/.turbo/turbo-type-check.log +2 -0
- package/es/components/Avatar/StyledAvatar.d.ts +46 -0
- package/es/components/Avatar/__tests__/StyledAvatar.spec.d.ts +1 -0
- package/es/components/Avatar/__tests__/index.spec.d.ts +1 -0
- package/es/components/Avatar/index.d.ts +25 -0
- package/es/components/Badge/Status.d.ts +24 -0
- package/es/components/Badge/StyledBadge.d.ts +28 -0
- package/es/components/Badge/__tests__/Badge.spec.d.ts +1 -0
- package/es/components/Badge/__tests__/Status.spec.d.ts +1 -0
- package/es/components/Badge/index.d.ts +32 -0
- package/es/components/BottomNavigation/StyledBottomNavigation.d.ts +52 -0
- package/es/components/BottomNavigation/__tests__/index.spec.d.ts +1 -0
- package/es/components/BottomNavigation/index.d.ts +45 -0
- package/es/components/Button/IconButton.d.ts +34 -0
- package/es/components/Button/__tests__/index.spec.d.ts +1 -0
- package/es/components/Button/index.d.ts +4 -0
- package/es/components/Card/StyledCard.d.ts +17 -0
- package/es/components/Card/__tests__/StyledCard.spec.d.ts +1 -0
- package/es/components/Card/__tests__/index.spec.d.ts +1 -0
- package/es/components/Card/index.d.ts +22 -0
- package/es/components/Collapse/StyledCollapse.d.ts +15 -0
- package/es/components/Collapse/__tests__/StyledCollapse.spec.d.ts +1 -0
- package/es/components/Collapse/__tests__/index.spec.d.ts +1 -0
- package/es/components/Collapse/index.d.ts +23 -0
- package/es/components/Divider/StyledDivider.d.ts +13 -0
- package/es/components/Divider/__tests__/StyledDivider.spec.d.ts +1 -0
- package/es/components/Divider/index.d.ts +21 -0
- package/es/components/Drawer/StyledDrawer.d.ts +25 -0
- package/es/components/Drawer/__tests__/index.spec.d.ts +1 -0
- package/es/components/Drawer/index.d.ts +25 -0
- package/es/components/FAB/ActionGroup/ActionItem.d.ts +12 -0
- package/es/components/FAB/ActionGroup/StyledActionGroup.d.ts +30 -0
- package/es/components/FAB/ActionGroup/StyledActionItem.d.ts +13 -0
- package/es/components/FAB/ActionGroup/__tests__/index.spec.d.ts +1 -0
- package/es/components/FAB/ActionGroup/index.d.ts +34 -0
- package/es/components/FAB/AnimatedFABIcon.d.ts +6 -0
- package/es/components/FAB/FAB.d.ts +34 -0
- package/es/components/FAB/StyledFAB.d.ts +20 -0
- package/es/components/FAB/__tests__/AnimatedFABIcon.spec.d.ts +1 -0
- package/es/components/FAB/__tests__/StyledFAB.spec.d.ts +1 -0
- package/es/components/FAB/__tests__/index.spec.d.ts +1 -0
- package/es/components/FAB/index.d.ts +4 -0
- package/es/components/Icon/HeroIcon/index.d.ts +13 -0
- package/es/components/Icon/IconList.d.ts +2 -0
- package/es/components/Icon/__tests__/index.spec.d.ts +1 -0
- package/es/components/Icon/index.d.ts +27 -0
- package/es/components/Icon/utils.d.ts +2 -0
- package/es/components/Progress/ProgressBar.d.ts +18 -0
- package/es/components/Progress/ProgressCircle.d.ts +18 -0
- package/es/components/Progress/StyledProgressBar.d.ts +18 -0
- package/es/components/Progress/StyledProgressCircle.d.ts +38 -0
- package/es/components/Progress/index.d.ts +5 -0
- package/es/components/Progress/types.d.ts +1 -0
- package/es/components/Tabs/ActiveTabIndicator.d.ts +8 -0
- package/es/components/Tabs/ScrollableTabs.d.ts +3 -0
- package/es/components/Tabs/StyledScrollableTabs.d.ts +61 -0
- package/es/components/Tabs/StyledTabs.d.ts +55 -0
- package/es/components/Tabs/__tests__/ScrollableTabs.spec.d.ts +1 -0
- package/es/components/Tabs/__tests__/index.spec.d.ts +1 -0
- package/es/components/Tabs/index.d.ts +54 -0
- package/es/components/Tabs/utils.d.ts +2 -0
- package/es/components/Tag/StyledTag.d.ts +20 -0
- package/es/components/Tag/__tests__/Tag.spec.d.ts +1 -0
- package/es/components/Tag/index.d.ts +21 -0
- package/es/components/Typography/Text/StyledText.d.ts +13 -0
- package/es/components/Typography/Text/__tests__/StyledText.spec.d.ts +1 -0
- package/es/components/Typography/Text/__tests__/index.spec.d.ts +1 -0
- package/es/components/Typography/Text/index.d.ts +30 -0
- package/es/components/Typography/index.d.ts +6 -0
- package/es/index.d.ts +19 -0
- package/es/index.js +217 -2485
- package/es/theme/__tests__/index.spec.d.ts +1 -0
- package/es/theme/components/avatar.d.ts +32 -0
- package/es/theme/components/badge.d.ts +29 -0
- package/es/theme/components/bottomNavigation.d.ts +23 -0
- package/es/theme/components/card.d.ts +10 -0
- package/es/theme/components/divider.d.ts +17 -0
- package/es/theme/components/drawer.d.ts +21 -0
- package/es/theme/components/fab.d.ts +51 -0
- package/es/theme/components/icon.d.ts +19 -0
- package/es/theme/components/progress.d.ts +21 -0
- package/es/theme/components/tabs.d.ts +27 -0
- package/es/theme/components/tag.d.ts +30 -0
- package/es/theme/components/typography.d.ts +26 -0
- package/es/theme/global/borders.d.ts +11 -0
- package/es/theme/global/colors.d.ts +29 -0
- package/es/theme/global/index.d.ts +39 -0
- package/es/theme/global/scale.d.ts +9 -0
- package/es/theme/global/space.d.ts +13 -0
- package/es/theme/global/typography.d.ts +21 -0
- package/es/theme/index.d.ts +33 -0
- package/es/types.d.ts +5 -0
- package/es/utils/__tests__/scale.spec.d.ts +1 -0
- package/es/utils/helpers.d.ts +2 -0
- package/es/utils/hooks.d.ts +1 -0
- package/es/utils/scale.d.ts +3 -0
- package/lib/components/Avatar/StyledAvatar.d.ts +46 -0
- package/lib/components/Avatar/__tests__/StyledAvatar.spec.d.ts +1 -0
- package/lib/components/Avatar/__tests__/index.spec.d.ts +1 -0
- package/lib/components/Avatar/index.d.ts +25 -0
- package/lib/components/Badge/Status.d.ts +24 -0
- package/lib/components/Badge/StyledBadge.d.ts +28 -0
- package/lib/components/Badge/__tests__/Badge.spec.d.ts +1 -0
- package/lib/components/Badge/__tests__/Status.spec.d.ts +1 -0
- package/lib/components/Badge/index.d.ts +32 -0
- package/lib/components/BottomNavigation/StyledBottomNavigation.d.ts +52 -0
- package/lib/components/BottomNavigation/__tests__/index.spec.d.ts +1 -0
- package/lib/components/BottomNavigation/index.d.ts +45 -0
- package/lib/components/Button/IconButton.d.ts +34 -0
- package/lib/components/Button/__tests__/index.spec.d.ts +1 -0
- package/lib/components/Button/index.d.ts +4 -0
- package/lib/components/Card/StyledCard.d.ts +17 -0
- package/lib/components/Card/__tests__/StyledCard.spec.d.ts +1 -0
- package/lib/components/Card/__tests__/index.spec.d.ts +1 -0
- package/lib/components/Card/index.d.ts +22 -0
- package/lib/components/Collapse/StyledCollapse.d.ts +15 -0
- package/lib/components/Collapse/__tests__/StyledCollapse.spec.d.ts +1 -0
- package/lib/components/Collapse/__tests__/index.spec.d.ts +1 -0
- package/lib/components/Collapse/index.d.ts +23 -0
- package/lib/components/Divider/StyledDivider.d.ts +13 -0
- package/lib/components/Divider/__tests__/StyledDivider.spec.d.ts +1 -0
- package/lib/components/Divider/index.d.ts +21 -0
- package/lib/components/Drawer/StyledDrawer.d.ts +25 -0
- package/lib/components/Drawer/__tests__/index.spec.d.ts +1 -0
- package/lib/components/Drawer/index.d.ts +25 -0
- package/lib/components/FAB/ActionGroup/ActionItem.d.ts +12 -0
- package/lib/components/FAB/ActionGroup/StyledActionGroup.d.ts +30 -0
- package/lib/components/FAB/ActionGroup/StyledActionItem.d.ts +13 -0
- package/lib/components/FAB/ActionGroup/__tests__/index.spec.d.ts +1 -0
- package/lib/components/FAB/ActionGroup/index.d.ts +34 -0
- package/lib/components/FAB/AnimatedFABIcon.d.ts +6 -0
- package/lib/components/FAB/FAB.d.ts +34 -0
- package/lib/components/FAB/StyledFAB.d.ts +20 -0
- package/lib/components/FAB/__tests__/AnimatedFABIcon.spec.d.ts +1 -0
- package/lib/components/FAB/__tests__/StyledFAB.spec.d.ts +1 -0
- package/lib/components/FAB/__tests__/index.spec.d.ts +1 -0
- package/lib/components/FAB/index.d.ts +4 -0
- package/lib/components/Icon/HeroIcon/index.d.ts +13 -0
- package/lib/components/Icon/IconList.d.ts +2 -0
- package/lib/components/Icon/__tests__/index.spec.d.ts +1 -0
- package/lib/components/Icon/index.d.ts +27 -0
- package/lib/components/Icon/utils.d.ts +2 -0
- package/lib/components/Progress/ProgressBar.d.ts +18 -0
- package/lib/components/Progress/ProgressCircle.d.ts +18 -0
- package/lib/components/Progress/StyledProgressBar.d.ts +18 -0
- package/lib/components/Progress/StyledProgressCircle.d.ts +38 -0
- package/lib/components/Progress/index.d.ts +5 -0
- package/lib/components/Progress/types.d.ts +1 -0
- package/lib/components/Tabs/ActiveTabIndicator.d.ts +8 -0
- package/lib/components/Tabs/ScrollableTabs.d.ts +3 -0
- package/lib/components/Tabs/StyledScrollableTabs.d.ts +61 -0
- package/lib/components/Tabs/StyledTabs.d.ts +55 -0
- package/lib/components/Tabs/__tests__/ScrollableTabs.spec.d.ts +1 -0
- package/lib/components/Tabs/__tests__/index.spec.d.ts +1 -0
- package/lib/components/Tabs/index.d.ts +54 -0
- package/lib/components/Tabs/utils.d.ts +2 -0
- package/lib/components/Tag/StyledTag.d.ts +20 -0
- package/lib/components/Tag/__tests__/Tag.spec.d.ts +1 -0
- package/lib/components/Tag/index.d.ts +21 -0
- package/lib/components/Typography/Text/StyledText.d.ts +13 -0
- package/lib/components/Typography/Text/__tests__/StyledText.spec.d.ts +1 -0
- package/lib/components/Typography/Text/__tests__/index.spec.d.ts +1 -0
- package/lib/components/Typography/Text/index.d.ts +30 -0
- package/lib/components/Typography/index.d.ts +6 -0
- package/lib/index.d.ts +19 -0
- package/lib/index.js +390 -2658
- package/lib/theme/__tests__/index.spec.d.ts +1 -0
- package/lib/theme/components/avatar.d.ts +32 -0
- package/lib/theme/components/badge.d.ts +29 -0
- package/lib/theme/components/bottomNavigation.d.ts +23 -0
- package/lib/theme/components/card.d.ts +10 -0
- package/lib/theme/components/divider.d.ts +17 -0
- package/lib/theme/components/drawer.d.ts +21 -0
- package/lib/theme/components/fab.d.ts +51 -0
- package/lib/theme/components/icon.d.ts +19 -0
- package/lib/theme/components/progress.d.ts +21 -0
- package/lib/theme/components/tabs.d.ts +27 -0
- package/lib/theme/components/tag.d.ts +30 -0
- package/lib/theme/components/typography.d.ts +26 -0
- package/lib/theme/global/borders.d.ts +11 -0
- package/lib/theme/global/colors.d.ts +29 -0
- package/lib/theme/global/index.d.ts +39 -0
- package/lib/theme/global/scale.d.ts +9 -0
- package/lib/theme/global/space.d.ts +13 -0
- package/lib/theme/global/typography.d.ts +21 -0
- package/lib/theme/index.d.ts +33 -0
- package/lib/types.d.ts +5 -0
- package/lib/utils/__tests__/scale.spec.d.ts +1 -0
- package/lib/utils/helpers.d.ts +2 -0
- package/lib/utils/hooks.d.ts +1 -0
- package/lib/utils/scale.d.ts +3 -0
- package/package.json +1 -2
- package/rollup.config.js +7 -1
- package/src/index.ts +1 -2
- package/src/theme/index.ts +15 -1
- 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 +0 -0
- 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 +0 -0
- package/types/components/Button/IconButton.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -0
- 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 +0 -0
- package/types/components/Button/StyledButton.d.ts +0 -0
- 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/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 +0 -0
- package/types/components/Checkbox/StyledCheckbox.d.ts +8 -0
- package/types/components/Checkbox/__tests__/StyledCheckbox.spec.d.ts +1 -0
- package/types/components/Checkbox/__tests__/index.spec.d.ts +1 -0
- package/types/components/Checkbox/index.d.ts +25 -0
- 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 +0 -0
- 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 +0 -0
- package/types/components/Icon/utils.d.ts +0 -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/SectionHeading/StyledHeading.d.ts +0 -0
- package/types/components/SectionHeading/__tests__/StyledHeading.d.ts +1 -0
- package/types/components/SectionHeading/__tests__/index.spec.d.ts +0 -0
- package/types/components/SectionHeading/index.d.ts +0 -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/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/Typography/Text/StyledText.d.ts +0 -0
- 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 +0 -0
- package/types/components/Typography/index.d.ts +0 -0
- package/types/index.d.ts +1 -2
- package/types/testHelpers/renderWithTheme.d.ts +0 -0
- package/types/theme/__tests__/index.spec.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 +0 -0
- package/types/theme/components/card.d.ts +0 -0
- package/types/theme/components/checkbox.d.ts +21 -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/progress.d.ts +0 -0
- package/types/theme/components/radio.d.ts +0 -0
- package/types/theme/components/spinner.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/typography.d.ts +0 -0
- package/types/theme/global/borders.d.ts +0 -0
- package/types/theme/global/colors.d.ts +0 -0
- package/types/theme/global/index.d.ts +0 -0
- package/types/theme/global/scale.d.ts +0 -0
- package/types/theme/global/space.d.ts +0 -0
- package/types/theme/global/typography.d.ts +0 -0
- package/types/theme/index.d.ts +10 -1
- 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/.expo/README.md +0 -15
- package/.expo/packager-info.json +0 -10
- package/.expo/prebuild/cached-packages.json +0 -4
- package/.expo/settings.json +0 -10
- package/.expo/xcodebuild-error.log +0 -2
- package/.expo/xcodebuild.log +0 -11199
- package/.turbo/turbo-publish:npm.log +0 -0
- package/playground/.turbo/turbo-type-check.log +0 -7
- package/playground/src/emotion.d.ts +0 -7
package/lib/index.js
CHANGED
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var reactNative = require('react-native');
|
|
6
6
|
var React = require('react');
|
|
7
|
+
var reactNativeVectorIcons = require('react-native-vector-icons');
|
|
7
8
|
var reactNativeSafeAreaContext = require('react-native-safe-area-context');
|
|
9
|
+
var PagerView = require('react-native-pager-view');
|
|
8
10
|
|
|
9
11
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
12
|
|
|
@@ -26,9 +28,9 @@ function _interopNamespace(e) {
|
|
|
26
28
|
return Object.freeze(n);
|
|
27
29
|
}
|
|
28
30
|
|
|
29
|
-
var
|
|
30
|
-
var ReactNative__namespace = /*#__PURE__*/_interopNamespace(ReactNative);
|
|
31
|
+
var reactNative__namespace = /*#__PURE__*/_interopNamespace(reactNative);
|
|
31
32
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
33
|
+
var PagerView__default = /*#__PURE__*/_interopDefaultLegacy(PagerView);
|
|
32
34
|
|
|
33
35
|
function ownKeys(object, enumerableOnly) {
|
|
34
36
|
var keys = Object.keys(object);
|
|
@@ -47,7 +49,7 @@ function _objectSpread2(target) {
|
|
|
47
49
|
for (var i = 1; i < arguments.length; i++) {
|
|
48
50
|
var source = null != arguments[i] ? arguments[i] : {};
|
|
49
51
|
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
50
|
-
_defineProperty
|
|
52
|
+
_defineProperty(target, key, source[key]);
|
|
51
53
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
|
52
54
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
53
55
|
});
|
|
@@ -56,42 +58,17 @@ function _objectSpread2(target) {
|
|
|
56
58
|
return target;
|
|
57
59
|
}
|
|
58
60
|
|
|
59
|
-
function _typeof
|
|
61
|
+
function _typeof(obj) {
|
|
60
62
|
"@babel/helpers - typeof";
|
|
61
63
|
|
|
62
|
-
return _typeof
|
|
64
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
63
65
|
return typeof obj;
|
|
64
66
|
} : function (obj) {
|
|
65
67
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
66
|
-
}, _typeof
|
|
68
|
+
}, _typeof(obj);
|
|
67
69
|
}
|
|
68
70
|
|
|
69
|
-
function
|
|
70
|
-
if (!(instance instanceof Constructor)) {
|
|
71
|
-
throw new TypeError("Cannot call a class as a function");
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
function _defineProperties$1(target, props) {
|
|
76
|
-
for (var i = 0; i < props.length; i++) {
|
|
77
|
-
var descriptor = props[i];
|
|
78
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
79
|
-
descriptor.configurable = true;
|
|
80
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
81
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
function _createClass$1(Constructor, protoProps, staticProps) {
|
|
86
|
-
if (protoProps) _defineProperties$1(Constructor.prototype, protoProps);
|
|
87
|
-
if (staticProps) _defineProperties$1(Constructor, staticProps);
|
|
88
|
-
Object.defineProperty(Constructor, "prototype", {
|
|
89
|
-
writable: false
|
|
90
|
-
});
|
|
91
|
-
return Constructor;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
function _defineProperty$2(obj, key, value) {
|
|
71
|
+
function _defineProperty(obj, key, value) {
|
|
95
72
|
if (key in obj) {
|
|
96
73
|
Object.defineProperty(obj, key, {
|
|
97
74
|
value: value,
|
|
@@ -106,8 +83,8 @@ function _defineProperty$2(obj, key, value) {
|
|
|
106
83
|
return obj;
|
|
107
84
|
}
|
|
108
85
|
|
|
109
|
-
function _extends$
|
|
110
|
-
_extends$
|
|
86
|
+
function _extends$1() {
|
|
87
|
+
_extends$1 = Object.assign || function (target) {
|
|
111
88
|
for (var i = 1; i < arguments.length; i++) {
|
|
112
89
|
var source = arguments[i];
|
|
113
90
|
|
|
@@ -121,57 +98,10 @@ function _extends$3() {
|
|
|
121
98
|
return target;
|
|
122
99
|
};
|
|
123
100
|
|
|
124
|
-
return _extends$
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
function _inherits$1(subClass, superClass) {
|
|
128
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
129
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
133
|
-
constructor: {
|
|
134
|
-
value: subClass,
|
|
135
|
-
writable: true,
|
|
136
|
-
configurable: true
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
|
-
Object.defineProperty(subClass, "prototype", {
|
|
140
|
-
writable: false
|
|
141
|
-
});
|
|
142
|
-
if (superClass) _setPrototypeOf$1(subClass, superClass);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
function _getPrototypeOf$1(o) {
|
|
146
|
-
_getPrototypeOf$1 = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
147
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
148
|
-
};
|
|
149
|
-
return _getPrototypeOf$1(o);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
function _setPrototypeOf$1(o, p) {
|
|
153
|
-
_setPrototypeOf$1 = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
154
|
-
o.__proto__ = p;
|
|
155
|
-
return o;
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
return _setPrototypeOf$1(o, p);
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
function _isNativeReflectConstruct() {
|
|
162
|
-
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
163
|
-
if (Reflect.construct.sham) return false;
|
|
164
|
-
if (typeof Proxy === "function") return true;
|
|
165
|
-
|
|
166
|
-
try {
|
|
167
|
-
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
168
|
-
return true;
|
|
169
|
-
} catch (e) {
|
|
170
|
-
return false;
|
|
171
|
-
}
|
|
101
|
+
return _extends$1.apply(this, arguments);
|
|
172
102
|
}
|
|
173
103
|
|
|
174
|
-
function _objectWithoutPropertiesLoose
|
|
104
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
175
105
|
if (source == null) return {};
|
|
176
106
|
var target = {};
|
|
177
107
|
var sourceKeys = Object.keys(source);
|
|
@@ -186,10 +116,10 @@ function _objectWithoutPropertiesLoose$1(source, excluded) {
|
|
|
186
116
|
return target;
|
|
187
117
|
}
|
|
188
118
|
|
|
189
|
-
function _objectWithoutProperties
|
|
119
|
+
function _objectWithoutProperties(source, excluded) {
|
|
190
120
|
if (source == null) return {};
|
|
191
121
|
|
|
192
|
-
var target = _objectWithoutPropertiesLoose
|
|
122
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
193
123
|
|
|
194
124
|
var key, i;
|
|
195
125
|
|
|
@@ -207,52 +137,15 @@ function _objectWithoutProperties$1(source, excluded) {
|
|
|
207
137
|
return target;
|
|
208
138
|
}
|
|
209
139
|
|
|
210
|
-
function _assertThisInitialized$1(self) {
|
|
211
|
-
if (self === void 0) {
|
|
212
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
return self;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
function _possibleConstructorReturn$1(self, call) {
|
|
219
|
-
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
220
|
-
return call;
|
|
221
|
-
} else if (call !== void 0) {
|
|
222
|
-
throw new TypeError("Derived constructors may only return object or undefined");
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
return _assertThisInitialized$1(self);
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
function _createSuper(Derived) {
|
|
229
|
-
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
230
|
-
|
|
231
|
-
return function _createSuperInternal() {
|
|
232
|
-
var Super = _getPrototypeOf$1(Derived),
|
|
233
|
-
result;
|
|
234
|
-
|
|
235
|
-
if (hasNativeReflectConstruct) {
|
|
236
|
-
var NewTarget = _getPrototypeOf$1(this).constructor;
|
|
237
|
-
|
|
238
|
-
result = Reflect.construct(Super, arguments, NewTarget);
|
|
239
|
-
} else {
|
|
240
|
-
result = Super.apply(this, arguments);
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
return _possibleConstructorReturn$1(this, result);
|
|
244
|
-
};
|
|
245
|
-
}
|
|
246
|
-
|
|
247
140
|
function _slicedToArray(arr, i) {
|
|
248
141
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
249
142
|
}
|
|
250
143
|
|
|
251
|
-
function _toConsumableArray
|
|
252
|
-
return _arrayWithoutHoles
|
|
144
|
+
function _toConsumableArray(arr) {
|
|
145
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
253
146
|
}
|
|
254
147
|
|
|
255
|
-
function _arrayWithoutHoles
|
|
148
|
+
function _arrayWithoutHoles(arr) {
|
|
256
149
|
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
257
150
|
}
|
|
258
151
|
|
|
@@ -260,7 +153,7 @@ function _arrayWithHoles(arr) {
|
|
|
260
153
|
if (Array.isArray(arr)) return arr;
|
|
261
154
|
}
|
|
262
155
|
|
|
263
|
-
function _iterableToArray
|
|
156
|
+
function _iterableToArray(iter) {
|
|
264
157
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
265
158
|
}
|
|
266
159
|
|
|
@@ -311,7 +204,7 @@ function _arrayLikeToArray(arr, len) {
|
|
|
311
204
|
return arr2;
|
|
312
205
|
}
|
|
313
206
|
|
|
314
|
-
function _nonIterableSpread
|
|
207
|
+
function _nonIterableSpread() {
|
|
315
208
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
316
209
|
}
|
|
317
210
|
|
|
@@ -1558,8 +1451,8 @@ var createCache = function createCache(options) {
|
|
|
1558
1451
|
return cache;
|
|
1559
1452
|
};
|
|
1560
1453
|
|
|
1561
|
-
function _extends
|
|
1562
|
-
_extends
|
|
1454
|
+
function _extends() {
|
|
1455
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
1563
1456
|
for (var i = 1; i < arguments.length; i++) {
|
|
1564
1457
|
var source = arguments[i];
|
|
1565
1458
|
|
|
@@ -1572,7 +1465,7 @@ function _extends$2() {
|
|
|
1572
1465
|
|
|
1573
1466
|
return target;
|
|
1574
1467
|
};
|
|
1575
|
-
return _extends
|
|
1468
|
+
return _extends.apply(this, arguments);
|
|
1576
1469
|
}
|
|
1577
1470
|
|
|
1578
1471
|
var EmotionCacheContext = /* #__PURE__ */React.createContext( // we're doing this to avoid preconstruct's dead code elimination in this one case
|
|
@@ -1589,7 +1482,7 @@ EmotionCacheContext.Provider;
|
|
|
1589
1482
|
|
|
1590
1483
|
var ThemeContext = /* #__PURE__ */React.createContext({});
|
|
1591
1484
|
|
|
1592
|
-
var useTheme = function useTheme() {
|
|
1485
|
+
var useTheme$1 = function useTheme() {
|
|
1593
1486
|
return React.useContext(ThemeContext);
|
|
1594
1487
|
};
|
|
1595
1488
|
|
|
@@ -1600,7 +1493,7 @@ var getTheme$1 = function getTheme(outerTheme, theme) {
|
|
|
1600
1493
|
return mergedTheme;
|
|
1601
1494
|
}
|
|
1602
1495
|
|
|
1603
|
-
return _extends
|
|
1496
|
+
return _extends({}, outerTheme, theme);
|
|
1604
1497
|
};
|
|
1605
1498
|
|
|
1606
1499
|
var createCacheWithTheme = /* #__PURE__ */weakMemoize(function (outerTheme) {
|
|
@@ -1609,7 +1502,7 @@ var createCacheWithTheme = /* #__PURE__ */weakMemoize(function (outerTheme) {
|
|
|
1609
1502
|
});
|
|
1610
1503
|
});
|
|
1611
1504
|
|
|
1612
|
-
var ThemeProvider = function ThemeProvider(props) {
|
|
1505
|
+
var ThemeProvider$1 = function ThemeProvider(props) {
|
|
1613
1506
|
var theme = React.useContext(ThemeContext);
|
|
1614
1507
|
|
|
1615
1508
|
if (props.theme !== theme) {
|
|
@@ -1757,7 +1650,7 @@ var systemPalette = {
|
|
|
1757
1650
|
var BASE_WIDTH = 390; // Based on iPhone 13's viewport size
|
|
1758
1651
|
|
|
1759
1652
|
var horizontalScale = function horizontalScale(size) {
|
|
1760
|
-
var _Dimensions$get =
|
|
1653
|
+
var _Dimensions$get = reactNative.Dimensions.get('window'),
|
|
1761
1654
|
width = _Dimensions$get.width,
|
|
1762
1655
|
height = _Dimensions$get.height;
|
|
1763
1656
|
|
|
@@ -2394,2128 +2287,167 @@ var getTabsTheme = function getTabsTheme(theme) {
|
|
|
2394
2287
|
text: theme.colors.text
|
|
2395
2288
|
};
|
|
2396
2289
|
var space = {
|
|
2397
|
-
flatListHorizontalPadding: theme.space.small,
|
|
2398
|
-
itemHorizontalPadding: theme.space.small,
|
|
2399
|
-
itemVerticalPadding: theme.space.small,
|
|
2400
|
-
outlineHorizontalPadding: theme.space.small,
|
|
2401
|
-
outlineVerticalPadding: theme.space.xsmall
|
|
2402
|
-
};
|
|
2403
|
-
var radii = {
|
|
2404
|
-
outline: theme.radii.medium
|
|
2405
|
-
};
|
|
2406
|
-
var borderWidths = {
|
|
2407
|
-
headerBottom: theme.borderWidths.base
|
|
2408
|
-
};
|
|
2409
|
-
var sizes = {
|
|
2410
|
-
indicator: theme.space.xxsmall
|
|
2411
|
-
};
|
|
2412
|
-
return {
|
|
2413
|
-
borderWidths: borderWidths,
|
|
2414
|
-
colors: colors,
|
|
2415
|
-
space: space,
|
|
2416
|
-
radii: radii,
|
|
2417
|
-
sizes: sizes
|
|
2418
|
-
};
|
|
2419
|
-
};
|
|
2420
|
-
|
|
2421
|
-
var getTagTheme = function getTagTheme(theme) {
|
|
2422
|
-
var borderWidths = {
|
|
2423
|
-
"default": theme.borderWidths.base
|
|
2424
|
-
};
|
|
2425
|
-
var colors = {
|
|
2426
|
-
danger: theme.colors.danger,
|
|
2427
|
-
dangerBackground: theme.colors.dangerBackground,
|
|
2428
|
-
info: theme.colors.info,
|
|
2429
|
-
infoBackground: theme.colors.infoBackground,
|
|
2430
|
-
success: theme.colors.successDark,
|
|
2431
|
-
successBackground: theme.colors.successBackground,
|
|
2432
|
-
warning: theme.colors.warningDark,
|
|
2433
|
-
warningBackground: theme.colors.warningBackground
|
|
2434
|
-
};
|
|
2435
|
-
var fonts = {
|
|
2436
|
-
"default": theme.fonts.semiBold
|
|
2437
|
-
};
|
|
2438
|
-
var fontSizes = {
|
|
2439
|
-
"default": theme.fontSizes.small
|
|
2440
|
-
};
|
|
2441
|
-
var space = {
|
|
2442
|
-
horizontalPadding: theme.space.small,
|
|
2443
|
-
verticalPadding: theme.space.xxsmall
|
|
2444
|
-
};
|
|
2445
|
-
var radii = {
|
|
2446
|
-
"default": theme.radii.base
|
|
2447
|
-
};
|
|
2448
|
-
return {
|
|
2449
|
-
borderWidths: borderWidths,
|
|
2450
|
-
colors: colors,
|
|
2451
|
-
fonts: fonts,
|
|
2452
|
-
fontSizes: fontSizes,
|
|
2453
|
-
space: space,
|
|
2454
|
-
radii: radii
|
|
2455
|
-
};
|
|
2456
|
-
};
|
|
2457
|
-
|
|
2458
|
-
var getTextInputTheme = function getTextInputTheme(theme) {
|
|
2459
|
-
var colors = {
|
|
2460
|
-
labelBackground: theme.colors.platformBackground,
|
|
2461
|
-
border: theme.colors.text
|
|
2462
|
-
};
|
|
2463
|
-
var space = {
|
|
2464
|
-
containerPadding: theme.space.medium,
|
|
2465
|
-
labelLeft: theme.space.medium,
|
|
2466
|
-
labelTop: theme.lineHeights.small / -2,
|
|
2467
|
-
labelHorizontalPadding: theme.space.xsmall,
|
|
2468
|
-
inputHorizontalMargin: theme.space.small
|
|
2469
|
-
};
|
|
2470
|
-
var fontSizes = {
|
|
2471
|
-
text: theme.fontSizes.large
|
|
2472
|
-
};
|
|
2473
|
-
var borderWidths = {
|
|
2474
|
-
container: theme.borderWidths.base
|
|
2475
|
-
};
|
|
2476
|
-
var radii = {
|
|
2477
|
-
container: theme.radii.medium
|
|
2478
|
-
};
|
|
2479
|
-
return {
|
|
2480
|
-
colors: colors,
|
|
2481
|
-
space: space,
|
|
2482
|
-
fontSizes: fontSizes,
|
|
2483
|
-
borderWidths: borderWidths,
|
|
2484
|
-
radii: radii
|
|
2485
|
-
};
|
|
2486
|
-
};
|
|
2487
|
-
|
|
2488
|
-
var getTypographyTheme = function getTypographyTheme(theme) {
|
|
2489
|
-
var colors = {
|
|
2490
|
-
body: theme.colors.text,
|
|
2491
|
-
subdued: theme.colors.disabledText,
|
|
2492
|
-
primary: theme.colors.primary
|
|
2493
|
-
};
|
|
2494
|
-
var fonts = {
|
|
2495
|
-
light: theme.fonts.light,
|
|
2496
|
-
regular: theme.fonts.regular,
|
|
2497
|
-
semiBold: theme.fonts.semiBold
|
|
2498
|
-
};
|
|
2499
|
-
var fontSizes = {
|
|
2500
|
-
small: theme.fontSizes.small,
|
|
2501
|
-
medium: theme.fontSizes.medium,
|
|
2502
|
-
large: theme.fontSizes.large,
|
|
2503
|
-
xlarge: theme.fontSizes.xlarge
|
|
2504
|
-
};
|
|
2505
|
-
var lineHeights = {
|
|
2506
|
-
small: theme.lineHeights.small,
|
|
2507
|
-
medium: theme.lineHeights.medium,
|
|
2508
|
-
large: theme.lineHeights.large,
|
|
2509
|
-
xlarge: theme.lineHeights.xlarge
|
|
2510
|
-
};
|
|
2511
|
-
return {
|
|
2512
|
-
colors: colors,
|
|
2513
|
-
fonts: fonts,
|
|
2514
|
-
fontSizes: fontSizes,
|
|
2515
|
-
lineHeights: lineHeights
|
|
2516
|
-
};
|
|
2517
|
-
};
|
|
2518
|
-
|
|
2519
|
-
var getTheme = function getTheme() {
|
|
2520
|
-
var scale = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : scale$1;
|
|
2521
|
-
var systemPallete = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : systemPalette;
|
|
2522
|
-
var globalTheme = getGlobalTheme(scale, systemPallete);
|
|
2523
|
-
return _objectSpread2(_objectSpread2({}, globalTheme), {}, {
|
|
2524
|
-
__hd__: {
|
|
2525
|
-
avatar: getAvatarTheme(globalTheme),
|
|
2526
|
-
alert: getAlertTheme(globalTheme),
|
|
2527
|
-
badge: getBadgeTheme(globalTheme),
|
|
2528
|
-
bottomNavigation: getBottomNavigationTheme(globalTheme),
|
|
2529
|
-
bottomSheet: getBottomSheetTheme(globalTheme),
|
|
2530
|
-
button: getButtonTheme(globalTheme),
|
|
2531
|
-
card: getCardTheme(globalTheme),
|
|
2532
|
-
contentNavigator: getContentNavigatorTheme(globalTheme),
|
|
2533
|
-
divider: getDividerTheme(globalTheme),
|
|
2534
|
-
drawer: getDrawerTheme(globalTheme),
|
|
2535
|
-
fab: getFABTheme(globalTheme),
|
|
2536
|
-
icon: getIconTheme(globalTheme),
|
|
2537
|
-
progress: getProgressTheme(globalTheme),
|
|
2538
|
-
radio: getRadioTheme(globalTheme),
|
|
2539
|
-
sectionHeading: getSectionHeadingTheme(globalTheme),
|
|
2540
|
-
select: getSelectTheme(globalTheme),
|
|
2541
|
-
spinner: getSpinnerTheme(globalTheme),
|
|
2542
|
-
"switch": getSwitchTheme(globalTheme),
|
|
2543
|
-
tabs: getTabsTheme(globalTheme),
|
|
2544
|
-
tag: getTagTheme(globalTheme),
|
|
2545
|
-
textInput: getTextInputTheme(globalTheme),
|
|
2546
|
-
typography: getTypographyTheme(globalTheme)
|
|
2547
|
-
}
|
|
2548
|
-
});
|
|
2549
|
-
};
|
|
2550
|
-
|
|
2551
|
-
var theme = getTheme();
|
|
2552
|
-
|
|
2553
|
-
function getDefaultExportFromCjs (x) {
|
|
2554
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
2555
|
-
}
|
|
2556
|
-
|
|
2557
|
-
var dist = {};
|
|
2558
|
-
|
|
2559
|
-
function _interopRequireDefault$5(obj) {
|
|
2560
|
-
return obj && obj.__esModule ? obj : {
|
|
2561
|
-
"default": obj
|
|
2562
|
-
};
|
|
2563
|
-
}
|
|
2564
|
-
|
|
2565
|
-
var interopRequireDefault = _interopRequireDefault$5;
|
|
2566
|
-
|
|
2567
|
-
var createIconSet$1 = {};
|
|
2568
|
-
|
|
2569
|
-
function _arrayWithoutHoles(arr) {
|
|
2570
|
-
if (Array.isArray(arr)) {
|
|
2571
|
-
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {
|
|
2572
|
-
arr2[i] = arr[i];
|
|
2573
|
-
}
|
|
2574
|
-
|
|
2575
|
-
return arr2;
|
|
2576
|
-
}
|
|
2577
|
-
}
|
|
2578
|
-
|
|
2579
|
-
var arrayWithoutHoles$1 = _arrayWithoutHoles;
|
|
2580
|
-
|
|
2581
|
-
function _iterableToArray(iter) {
|
|
2582
|
-
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
|
|
2583
|
-
}
|
|
2584
|
-
|
|
2585
|
-
var iterableToArray$1 = _iterableToArray;
|
|
2586
|
-
|
|
2587
|
-
function _nonIterableSpread() {
|
|
2588
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance");
|
|
2589
|
-
}
|
|
2590
|
-
|
|
2591
|
-
var nonIterableSpread$1 = _nonIterableSpread;
|
|
2592
|
-
|
|
2593
|
-
var arrayWithoutHoles = arrayWithoutHoles$1;
|
|
2594
|
-
var iterableToArray = iterableToArray$1;
|
|
2595
|
-
var nonIterableSpread = nonIterableSpread$1;
|
|
2596
|
-
|
|
2597
|
-
function _toConsumableArray(arr) {
|
|
2598
|
-
return arrayWithoutHoles(arr) || iterableToArray(arr) || nonIterableSpread();
|
|
2599
|
-
}
|
|
2600
|
-
|
|
2601
|
-
var toConsumableArray = _toConsumableArray;
|
|
2602
|
-
|
|
2603
|
-
var runtime = {exports: {}};
|
|
2604
|
-
|
|
2605
|
-
(function (module) {
|
|
2606
|
-
var runtime = function (exports) {
|
|
2607
|
-
|
|
2608
|
-
var Op = Object.prototype;
|
|
2609
|
-
var hasOwn = Op.hasOwnProperty;
|
|
2610
|
-
var undefined$1; // More compressible than void 0.
|
|
2611
|
-
|
|
2612
|
-
var $Symbol = typeof Symbol === "function" ? Symbol : {};
|
|
2613
|
-
var iteratorSymbol = $Symbol.iterator || "@@iterator";
|
|
2614
|
-
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
|
2615
|
-
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
2616
|
-
|
|
2617
|
-
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
2618
|
-
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
|
|
2619
|
-
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
|
|
2620
|
-
var generator = Object.create(protoGenerator.prototype);
|
|
2621
|
-
var context = new Context(tryLocsList || []); // The ._invoke method unifies the implementations of the .next,
|
|
2622
|
-
// .throw, and .return methods.
|
|
2623
|
-
|
|
2624
|
-
generator._invoke = makeInvokeMethod(innerFn, self, context);
|
|
2625
|
-
return generator;
|
|
2626
|
-
}
|
|
2627
|
-
|
|
2628
|
-
exports.wrap = wrap; // Try/catch helper to minimize deoptimizations. Returns a completion
|
|
2629
|
-
// record like context.tryEntries[i].completion. This interface could
|
|
2630
|
-
// have been (and was previously) designed to take a closure to be
|
|
2631
|
-
// invoked without arguments, but in all the cases we care about we
|
|
2632
|
-
// already have an existing method we want to call, so there's no need
|
|
2633
|
-
// to create a new function object. We can even get away with assuming
|
|
2634
|
-
// the method takes exactly one argument, since that happens to be true
|
|
2635
|
-
// in every case, so we don't have to touch the arguments object. The
|
|
2636
|
-
// only additional allocation required is the completion record, which
|
|
2637
|
-
// has a stable shape and so hopefully should be cheap to allocate.
|
|
2638
|
-
|
|
2639
|
-
function tryCatch(fn, obj, arg) {
|
|
2640
|
-
try {
|
|
2641
|
-
return {
|
|
2642
|
-
type: "normal",
|
|
2643
|
-
arg: fn.call(obj, arg)
|
|
2644
|
-
};
|
|
2645
|
-
} catch (err) {
|
|
2646
|
-
return {
|
|
2647
|
-
type: "throw",
|
|
2648
|
-
arg: err
|
|
2649
|
-
};
|
|
2650
|
-
}
|
|
2651
|
-
}
|
|
2652
|
-
|
|
2653
|
-
var GenStateSuspendedStart = "suspendedStart";
|
|
2654
|
-
var GenStateSuspendedYield = "suspendedYield";
|
|
2655
|
-
var GenStateExecuting = "executing";
|
|
2656
|
-
var GenStateCompleted = "completed"; // Returning this object from the innerFn has the same effect as
|
|
2657
|
-
// breaking out of the dispatch switch statement.
|
|
2658
|
-
|
|
2659
|
-
var ContinueSentinel = {}; // Dummy constructor functions that we use as the .constructor and
|
|
2660
|
-
// .constructor.prototype properties for functions that return Generator
|
|
2661
|
-
// objects. For full spec compliance, you may wish to configure your
|
|
2662
|
-
// minifier not to mangle the names of these two functions.
|
|
2663
|
-
|
|
2664
|
-
function Generator() {}
|
|
2665
|
-
|
|
2666
|
-
function GeneratorFunction() {}
|
|
2667
|
-
|
|
2668
|
-
function GeneratorFunctionPrototype() {} // This is a polyfill for %IteratorPrototype% for environments that
|
|
2669
|
-
// don't natively support it.
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
var IteratorPrototype = {};
|
|
2673
|
-
|
|
2674
|
-
IteratorPrototype[iteratorSymbol] = function () {
|
|
2675
|
-
return this;
|
|
2676
|
-
};
|
|
2677
|
-
|
|
2678
|
-
var getProto = Object.getPrototypeOf;
|
|
2679
|
-
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
2680
|
-
|
|
2681
|
-
if (NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
|
2682
|
-
// This environment has a native %IteratorPrototype%; use it instead
|
|
2683
|
-
// of the polyfill.
|
|
2684
|
-
IteratorPrototype = NativeIteratorPrototype;
|
|
2685
|
-
}
|
|
2686
|
-
|
|
2687
|
-
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
2688
|
-
GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
|
|
2689
|
-
GeneratorFunctionPrototype.constructor = GeneratorFunction;
|
|
2690
|
-
GeneratorFunctionPrototype[toStringTagSymbol] = GeneratorFunction.displayName = "GeneratorFunction"; // Helper for defining the .next, .throw, and .return methods of the
|
|
2691
|
-
// Iterator interface in terms of a single ._invoke method.
|
|
2692
|
-
|
|
2693
|
-
function defineIteratorMethods(prototype) {
|
|
2694
|
-
["next", "throw", "return"].forEach(function (method) {
|
|
2695
|
-
prototype[method] = function (arg) {
|
|
2696
|
-
return this._invoke(method, arg);
|
|
2697
|
-
};
|
|
2698
|
-
});
|
|
2699
|
-
}
|
|
2700
|
-
|
|
2701
|
-
exports.isGeneratorFunction = function (genFun) {
|
|
2702
|
-
var ctor = typeof genFun === "function" && genFun.constructor;
|
|
2703
|
-
return ctor ? ctor === GeneratorFunction || // For the native GeneratorFunction constructor, the best we can
|
|
2704
|
-
// do is to check its .name property.
|
|
2705
|
-
(ctor.displayName || ctor.name) === "GeneratorFunction" : false;
|
|
2706
|
-
};
|
|
2707
|
-
|
|
2708
|
-
exports.mark = function (genFun) {
|
|
2709
|
-
if (Object.setPrototypeOf) {
|
|
2710
|
-
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
|
2711
|
-
} else {
|
|
2712
|
-
genFun.__proto__ = GeneratorFunctionPrototype;
|
|
2713
|
-
|
|
2714
|
-
if (!(toStringTagSymbol in genFun)) {
|
|
2715
|
-
genFun[toStringTagSymbol] = "GeneratorFunction";
|
|
2716
|
-
}
|
|
2717
|
-
}
|
|
2718
|
-
|
|
2719
|
-
genFun.prototype = Object.create(Gp);
|
|
2720
|
-
return genFun;
|
|
2721
|
-
}; // Within the body of any async function, `await x` is transformed to
|
|
2722
|
-
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
|
2723
|
-
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
|
2724
|
-
// meant to be awaited.
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
exports.awrap = function (arg) {
|
|
2728
|
-
return {
|
|
2729
|
-
__await: arg
|
|
2730
|
-
};
|
|
2731
|
-
};
|
|
2732
|
-
|
|
2733
|
-
function AsyncIterator(generator) {
|
|
2734
|
-
function invoke(method, arg, resolve, reject) {
|
|
2735
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
2736
|
-
|
|
2737
|
-
if (record.type === "throw") {
|
|
2738
|
-
reject(record.arg);
|
|
2739
|
-
} else {
|
|
2740
|
-
var result = record.arg;
|
|
2741
|
-
var value = result.value;
|
|
2742
|
-
|
|
2743
|
-
if (value && _typeof$2(value) === "object" && hasOwn.call(value, "__await")) {
|
|
2744
|
-
return Promise.resolve(value.__await).then(function (value) {
|
|
2745
|
-
invoke("next", value, resolve, reject);
|
|
2746
|
-
}, function (err) {
|
|
2747
|
-
invoke("throw", err, resolve, reject);
|
|
2748
|
-
});
|
|
2749
|
-
}
|
|
2750
|
-
|
|
2751
|
-
return Promise.resolve(value).then(function (unwrapped) {
|
|
2752
|
-
// When a yielded Promise is resolved, its final value becomes
|
|
2753
|
-
// the .value of the Promise<{value,done}> result for the
|
|
2754
|
-
// current iteration.
|
|
2755
|
-
result.value = unwrapped;
|
|
2756
|
-
resolve(result);
|
|
2757
|
-
}, function (error) {
|
|
2758
|
-
// If a rejected Promise was yielded, throw the rejection back
|
|
2759
|
-
// into the async generator function so it can be handled there.
|
|
2760
|
-
return invoke("throw", error, resolve, reject);
|
|
2761
|
-
});
|
|
2762
|
-
}
|
|
2763
|
-
}
|
|
2764
|
-
|
|
2765
|
-
var previousPromise;
|
|
2766
|
-
|
|
2767
|
-
function enqueue(method, arg) {
|
|
2768
|
-
function callInvokeWithMethodAndArg() {
|
|
2769
|
-
return new Promise(function (resolve, reject) {
|
|
2770
|
-
invoke(method, arg, resolve, reject);
|
|
2771
|
-
});
|
|
2772
|
-
}
|
|
2773
|
-
|
|
2774
|
-
return previousPromise = // If enqueue has been called before, then we want to wait until
|
|
2775
|
-
// all previous Promises have been resolved before calling invoke,
|
|
2776
|
-
// so that results are always delivered in the correct order. If
|
|
2777
|
-
// enqueue has not been called before, then it is important to
|
|
2778
|
-
// call invoke immediately, without waiting on a callback to fire,
|
|
2779
|
-
// so that the async generator function has the opportunity to do
|
|
2780
|
-
// any necessary setup in a predictable way. This predictability
|
|
2781
|
-
// is why the Promise constructor synchronously invokes its
|
|
2782
|
-
// executor callback, and why async functions synchronously
|
|
2783
|
-
// execute code before the first await. Since we implement simple
|
|
2784
|
-
// async functions in terms of async generators, it is especially
|
|
2785
|
-
// important to get this right, even though it requires care.
|
|
2786
|
-
previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, // Avoid propagating failures to Promises returned by later
|
|
2787
|
-
// invocations of the iterator.
|
|
2788
|
-
callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
2789
|
-
} // Define the unified helper method that is used to implement .next,
|
|
2790
|
-
// .throw, and .return (see defineIteratorMethods).
|
|
2791
|
-
|
|
2792
|
-
|
|
2793
|
-
this._invoke = enqueue;
|
|
2794
|
-
}
|
|
2795
|
-
|
|
2796
|
-
defineIteratorMethods(AsyncIterator.prototype);
|
|
2797
|
-
|
|
2798
|
-
AsyncIterator.prototype[asyncIteratorSymbol] = function () {
|
|
2799
|
-
return this;
|
|
2800
|
-
};
|
|
2801
|
-
|
|
2802
|
-
exports.AsyncIterator = AsyncIterator; // Note that simple async functions are implemented on top of
|
|
2803
|
-
// AsyncIterator objects; they just return a Promise for the value of
|
|
2804
|
-
// the final result produced by the iterator.
|
|
2805
|
-
|
|
2806
|
-
exports.async = function (innerFn, outerFn, self, tryLocsList) {
|
|
2807
|
-
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList));
|
|
2808
|
-
return exports.isGeneratorFunction(outerFn) ? iter // If outerFn is a generator, return the full iterator.
|
|
2809
|
-
: iter.next().then(function (result) {
|
|
2810
|
-
return result.done ? result.value : iter.next();
|
|
2811
|
-
});
|
|
2812
|
-
};
|
|
2813
|
-
|
|
2814
|
-
function makeInvokeMethod(innerFn, self, context) {
|
|
2815
|
-
var state = GenStateSuspendedStart;
|
|
2816
|
-
return function invoke(method, arg) {
|
|
2817
|
-
if (state === GenStateExecuting) {
|
|
2818
|
-
throw new Error("Generator is already running");
|
|
2819
|
-
}
|
|
2820
|
-
|
|
2821
|
-
if (state === GenStateCompleted) {
|
|
2822
|
-
if (method === "throw") {
|
|
2823
|
-
throw arg;
|
|
2824
|
-
} // Be forgiving, per 25.3.3.3.3 of the spec:
|
|
2825
|
-
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
|
2826
|
-
|
|
2827
|
-
|
|
2828
|
-
return doneResult();
|
|
2829
|
-
}
|
|
2830
|
-
|
|
2831
|
-
context.method = method;
|
|
2832
|
-
context.arg = arg;
|
|
2833
|
-
|
|
2834
|
-
while (true) {
|
|
2835
|
-
var delegate = context.delegate;
|
|
2836
|
-
|
|
2837
|
-
if (delegate) {
|
|
2838
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
2839
|
-
|
|
2840
|
-
if (delegateResult) {
|
|
2841
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
2842
|
-
return delegateResult;
|
|
2843
|
-
}
|
|
2844
|
-
}
|
|
2845
|
-
|
|
2846
|
-
if (context.method === "next") {
|
|
2847
|
-
// Setting context._sent for legacy support of Babel's
|
|
2848
|
-
// function.sent implementation.
|
|
2849
|
-
context.sent = context._sent = context.arg;
|
|
2850
|
-
} else if (context.method === "throw") {
|
|
2851
|
-
if (state === GenStateSuspendedStart) {
|
|
2852
|
-
state = GenStateCompleted;
|
|
2853
|
-
throw context.arg;
|
|
2854
|
-
}
|
|
2855
|
-
|
|
2856
|
-
context.dispatchException(context.arg);
|
|
2857
|
-
} else if (context.method === "return") {
|
|
2858
|
-
context.abrupt("return", context.arg);
|
|
2859
|
-
}
|
|
2860
|
-
|
|
2861
|
-
state = GenStateExecuting;
|
|
2862
|
-
var record = tryCatch(innerFn, self, context);
|
|
2863
|
-
|
|
2864
|
-
if (record.type === "normal") {
|
|
2865
|
-
// If an exception is thrown from innerFn, we leave state ===
|
|
2866
|
-
// GenStateExecuting and loop back for another invocation.
|
|
2867
|
-
state = context.done ? GenStateCompleted : GenStateSuspendedYield;
|
|
2868
|
-
|
|
2869
|
-
if (record.arg === ContinueSentinel) {
|
|
2870
|
-
continue;
|
|
2871
|
-
}
|
|
2872
|
-
|
|
2873
|
-
return {
|
|
2874
|
-
value: record.arg,
|
|
2875
|
-
done: context.done
|
|
2876
|
-
};
|
|
2877
|
-
} else if (record.type === "throw") {
|
|
2878
|
-
state = GenStateCompleted; // Dispatch the exception by looping back around to the
|
|
2879
|
-
// context.dispatchException(context.arg) call above.
|
|
2880
|
-
|
|
2881
|
-
context.method = "throw";
|
|
2882
|
-
context.arg = record.arg;
|
|
2883
|
-
}
|
|
2884
|
-
}
|
|
2885
|
-
};
|
|
2886
|
-
} // Call delegate.iterator[context.method](context.arg) and handle the
|
|
2887
|
-
// result, either by returning a { value, done } result from the
|
|
2888
|
-
// delegate iterator, or by modifying context.method and context.arg,
|
|
2889
|
-
// setting context.delegate to null, and returning the ContinueSentinel.
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
function maybeInvokeDelegate(delegate, context) {
|
|
2893
|
-
var method = delegate.iterator[context.method];
|
|
2894
|
-
|
|
2895
|
-
if (method === undefined$1) {
|
|
2896
|
-
// A .throw or .return when the delegate iterator has no .throw
|
|
2897
|
-
// method always terminates the yield* loop.
|
|
2898
|
-
context.delegate = null;
|
|
2899
|
-
|
|
2900
|
-
if (context.method === "throw") {
|
|
2901
|
-
// Note: ["return"] must be used for ES3 parsing compatibility.
|
|
2902
|
-
if (delegate.iterator["return"]) {
|
|
2903
|
-
// If the delegate iterator has a return method, give it a
|
|
2904
|
-
// chance to clean up.
|
|
2905
|
-
context.method = "return";
|
|
2906
|
-
context.arg = undefined$1;
|
|
2907
|
-
maybeInvokeDelegate(delegate, context);
|
|
2908
|
-
|
|
2909
|
-
if (context.method === "throw") {
|
|
2910
|
-
// If maybeInvokeDelegate(context) changed context.method from
|
|
2911
|
-
// "return" to "throw", let that override the TypeError below.
|
|
2912
|
-
return ContinueSentinel;
|
|
2913
|
-
}
|
|
2914
|
-
}
|
|
2915
|
-
|
|
2916
|
-
context.method = "throw";
|
|
2917
|
-
context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
2918
|
-
}
|
|
2919
|
-
|
|
2920
|
-
return ContinueSentinel;
|
|
2921
|
-
}
|
|
2922
|
-
|
|
2923
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
2924
|
-
|
|
2925
|
-
if (record.type === "throw") {
|
|
2926
|
-
context.method = "throw";
|
|
2927
|
-
context.arg = record.arg;
|
|
2928
|
-
context.delegate = null;
|
|
2929
|
-
return ContinueSentinel;
|
|
2930
|
-
}
|
|
2931
|
-
|
|
2932
|
-
var info = record.arg;
|
|
2933
|
-
|
|
2934
|
-
if (!info) {
|
|
2935
|
-
context.method = "throw";
|
|
2936
|
-
context.arg = new TypeError("iterator result is not an object");
|
|
2937
|
-
context.delegate = null;
|
|
2938
|
-
return ContinueSentinel;
|
|
2939
|
-
}
|
|
2940
|
-
|
|
2941
|
-
if (info.done) {
|
|
2942
|
-
// Assign the result of the finished delegate to the temporary
|
|
2943
|
-
// variable specified by delegate.resultName (see delegateYield).
|
|
2944
|
-
context[delegate.resultName] = info.value; // Resume execution at the desired location (see delegateYield).
|
|
2945
|
-
|
|
2946
|
-
context.next = delegate.nextLoc; // If context.method was "throw" but the delegate handled the
|
|
2947
|
-
// exception, let the outer generator proceed normally. If
|
|
2948
|
-
// context.method was "next", forget context.arg since it has been
|
|
2949
|
-
// "consumed" by the delegate iterator. If context.method was
|
|
2950
|
-
// "return", allow the original .return call to continue in the
|
|
2951
|
-
// outer generator.
|
|
2952
|
-
|
|
2953
|
-
if (context.method !== "return") {
|
|
2954
|
-
context.method = "next";
|
|
2955
|
-
context.arg = undefined$1;
|
|
2956
|
-
}
|
|
2957
|
-
} else {
|
|
2958
|
-
// Re-yield the result returned by the delegate method.
|
|
2959
|
-
return info;
|
|
2960
|
-
} // The delegate iterator is finished, so forget it and continue with
|
|
2961
|
-
// the outer generator.
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
context.delegate = null;
|
|
2965
|
-
return ContinueSentinel;
|
|
2966
|
-
} // Define Generator.prototype.{next,throw,return} in terms of the
|
|
2967
|
-
// unified ._invoke helper method.
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
defineIteratorMethods(Gp);
|
|
2971
|
-
Gp[toStringTagSymbol] = "Generator"; // A Generator should always return itself as the iterator object when the
|
|
2972
|
-
// @@iterator function is called on it. Some browsers' implementations of the
|
|
2973
|
-
// iterator prototype chain incorrectly implement this, causing the Generator
|
|
2974
|
-
// object to not be returned from this call. This ensures that doesn't happen.
|
|
2975
|
-
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
2976
|
-
|
|
2977
|
-
Gp[iteratorSymbol] = function () {
|
|
2978
|
-
return this;
|
|
2979
|
-
};
|
|
2980
|
-
|
|
2981
|
-
Gp.toString = function () {
|
|
2982
|
-
return "[object Generator]";
|
|
2983
|
-
};
|
|
2984
|
-
|
|
2985
|
-
function pushTryEntry(locs) {
|
|
2986
|
-
var entry = {
|
|
2987
|
-
tryLoc: locs[0]
|
|
2988
|
-
};
|
|
2989
|
-
|
|
2990
|
-
if (1 in locs) {
|
|
2991
|
-
entry.catchLoc = locs[1];
|
|
2992
|
-
}
|
|
2993
|
-
|
|
2994
|
-
if (2 in locs) {
|
|
2995
|
-
entry.finallyLoc = locs[2];
|
|
2996
|
-
entry.afterLoc = locs[3];
|
|
2997
|
-
}
|
|
2998
|
-
|
|
2999
|
-
this.tryEntries.push(entry);
|
|
3000
|
-
}
|
|
3001
|
-
|
|
3002
|
-
function resetTryEntry(entry) {
|
|
3003
|
-
var record = entry.completion || {};
|
|
3004
|
-
record.type = "normal";
|
|
3005
|
-
delete record.arg;
|
|
3006
|
-
entry.completion = record;
|
|
3007
|
-
}
|
|
3008
|
-
|
|
3009
|
-
function Context(tryLocsList) {
|
|
3010
|
-
// The root entry object (effectively a try statement without a catch
|
|
3011
|
-
// or a finally block) gives us a place to store values thrown from
|
|
3012
|
-
// locations where there is no enclosing try statement.
|
|
3013
|
-
this.tryEntries = [{
|
|
3014
|
-
tryLoc: "root"
|
|
3015
|
-
}];
|
|
3016
|
-
tryLocsList.forEach(pushTryEntry, this);
|
|
3017
|
-
this.reset(true);
|
|
3018
|
-
}
|
|
3019
|
-
|
|
3020
|
-
exports.keys = function (object) {
|
|
3021
|
-
var keys = [];
|
|
3022
|
-
|
|
3023
|
-
for (var key in object) {
|
|
3024
|
-
keys.push(key);
|
|
3025
|
-
}
|
|
3026
|
-
|
|
3027
|
-
keys.reverse(); // Rather than returning an object with a next method, we keep
|
|
3028
|
-
// things simple and return the next function itself.
|
|
3029
|
-
|
|
3030
|
-
return function next() {
|
|
3031
|
-
while (keys.length) {
|
|
3032
|
-
var key = keys.pop();
|
|
3033
|
-
|
|
3034
|
-
if (key in object) {
|
|
3035
|
-
next.value = key;
|
|
3036
|
-
next.done = false;
|
|
3037
|
-
return next;
|
|
3038
|
-
}
|
|
3039
|
-
} // To avoid creating an additional object, we just hang the .value
|
|
3040
|
-
// and .done properties off the next function object itself. This
|
|
3041
|
-
// also ensures that the minifier will not anonymize the function.
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
next.done = true;
|
|
3045
|
-
return next;
|
|
3046
|
-
};
|
|
3047
|
-
};
|
|
3048
|
-
|
|
3049
|
-
function values(iterable) {
|
|
3050
|
-
if (iterable) {
|
|
3051
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
|
3052
|
-
|
|
3053
|
-
if (iteratorMethod) {
|
|
3054
|
-
return iteratorMethod.call(iterable);
|
|
3055
|
-
}
|
|
3056
|
-
|
|
3057
|
-
if (typeof iterable.next === "function") {
|
|
3058
|
-
return iterable;
|
|
3059
|
-
}
|
|
3060
|
-
|
|
3061
|
-
if (!isNaN(iterable.length)) {
|
|
3062
|
-
var i = -1,
|
|
3063
|
-
next = function next() {
|
|
3064
|
-
while (++i < iterable.length) {
|
|
3065
|
-
if (hasOwn.call(iterable, i)) {
|
|
3066
|
-
next.value = iterable[i];
|
|
3067
|
-
next.done = false;
|
|
3068
|
-
return next;
|
|
3069
|
-
}
|
|
3070
|
-
}
|
|
3071
|
-
|
|
3072
|
-
next.value = undefined$1;
|
|
3073
|
-
next.done = true;
|
|
3074
|
-
return next;
|
|
3075
|
-
};
|
|
3076
|
-
|
|
3077
|
-
return next.next = next;
|
|
3078
|
-
}
|
|
3079
|
-
} // Return an iterator with no values.
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
return {
|
|
3083
|
-
next: doneResult
|
|
3084
|
-
};
|
|
3085
|
-
}
|
|
3086
|
-
|
|
3087
|
-
exports.values = values;
|
|
3088
|
-
|
|
3089
|
-
function doneResult() {
|
|
3090
|
-
return {
|
|
3091
|
-
value: undefined$1,
|
|
3092
|
-
done: true
|
|
3093
|
-
};
|
|
3094
|
-
}
|
|
3095
|
-
|
|
3096
|
-
Context.prototype = {
|
|
3097
|
-
constructor: Context,
|
|
3098
|
-
reset: function reset(skipTempReset) {
|
|
3099
|
-
this.prev = 0;
|
|
3100
|
-
this.next = 0; // Resetting context._sent for legacy support of Babel's
|
|
3101
|
-
// function.sent implementation.
|
|
3102
|
-
|
|
3103
|
-
this.sent = this._sent = undefined$1;
|
|
3104
|
-
this.done = false;
|
|
3105
|
-
this.delegate = null;
|
|
3106
|
-
this.method = "next";
|
|
3107
|
-
this.arg = undefined$1;
|
|
3108
|
-
this.tryEntries.forEach(resetTryEntry);
|
|
3109
|
-
|
|
3110
|
-
if (!skipTempReset) {
|
|
3111
|
-
for (var name in this) {
|
|
3112
|
-
// Not sure about the optimal order of these conditions:
|
|
3113
|
-
if (name.charAt(0) === "t" && hasOwn.call(this, name) && !isNaN(+name.slice(1))) {
|
|
3114
|
-
this[name] = undefined$1;
|
|
3115
|
-
}
|
|
3116
|
-
}
|
|
3117
|
-
}
|
|
3118
|
-
},
|
|
3119
|
-
stop: function stop() {
|
|
3120
|
-
this.done = true;
|
|
3121
|
-
var rootEntry = this.tryEntries[0];
|
|
3122
|
-
var rootRecord = rootEntry.completion;
|
|
3123
|
-
|
|
3124
|
-
if (rootRecord.type === "throw") {
|
|
3125
|
-
throw rootRecord.arg;
|
|
3126
|
-
}
|
|
3127
|
-
|
|
3128
|
-
return this.rval;
|
|
3129
|
-
},
|
|
3130
|
-
dispatchException: function dispatchException(exception) {
|
|
3131
|
-
if (this.done) {
|
|
3132
|
-
throw exception;
|
|
3133
|
-
}
|
|
3134
|
-
|
|
3135
|
-
var context = this;
|
|
3136
|
-
|
|
3137
|
-
function handle(loc, caught) {
|
|
3138
|
-
record.type = "throw";
|
|
3139
|
-
record.arg = exception;
|
|
3140
|
-
context.next = loc;
|
|
3141
|
-
|
|
3142
|
-
if (caught) {
|
|
3143
|
-
// If the dispatched exception was caught by a catch block,
|
|
3144
|
-
// then let that catch block handle the exception normally.
|
|
3145
|
-
context.method = "next";
|
|
3146
|
-
context.arg = undefined$1;
|
|
3147
|
-
}
|
|
3148
|
-
|
|
3149
|
-
return !!caught;
|
|
3150
|
-
}
|
|
3151
|
-
|
|
3152
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
3153
|
-
var entry = this.tryEntries[i];
|
|
3154
|
-
var record = entry.completion;
|
|
3155
|
-
|
|
3156
|
-
if (entry.tryLoc === "root") {
|
|
3157
|
-
// Exception thrown outside of any try block that could handle
|
|
3158
|
-
// it, so set the completion value of the entire function to
|
|
3159
|
-
// throw the exception.
|
|
3160
|
-
return handle("end");
|
|
3161
|
-
}
|
|
3162
|
-
|
|
3163
|
-
if (entry.tryLoc <= this.prev) {
|
|
3164
|
-
var hasCatch = hasOwn.call(entry, "catchLoc");
|
|
3165
|
-
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
3166
|
-
|
|
3167
|
-
if (hasCatch && hasFinally) {
|
|
3168
|
-
if (this.prev < entry.catchLoc) {
|
|
3169
|
-
return handle(entry.catchLoc, true);
|
|
3170
|
-
} else if (this.prev < entry.finallyLoc) {
|
|
3171
|
-
return handle(entry.finallyLoc);
|
|
3172
|
-
}
|
|
3173
|
-
} else if (hasCatch) {
|
|
3174
|
-
if (this.prev < entry.catchLoc) {
|
|
3175
|
-
return handle(entry.catchLoc, true);
|
|
3176
|
-
}
|
|
3177
|
-
} else if (hasFinally) {
|
|
3178
|
-
if (this.prev < entry.finallyLoc) {
|
|
3179
|
-
return handle(entry.finallyLoc);
|
|
3180
|
-
}
|
|
3181
|
-
} else {
|
|
3182
|
-
throw new Error("try statement without catch or finally");
|
|
3183
|
-
}
|
|
3184
|
-
}
|
|
3185
|
-
}
|
|
3186
|
-
},
|
|
3187
|
-
abrupt: function abrupt(type, arg) {
|
|
3188
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
3189
|
-
var entry = this.tryEntries[i];
|
|
3190
|
-
|
|
3191
|
-
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
3192
|
-
var finallyEntry = entry;
|
|
3193
|
-
break;
|
|
3194
|
-
}
|
|
3195
|
-
}
|
|
3196
|
-
|
|
3197
|
-
if (finallyEntry && (type === "break" || type === "continue") && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc) {
|
|
3198
|
-
// Ignore the finally entry if control is not jumping to a
|
|
3199
|
-
// location outside the try/catch block.
|
|
3200
|
-
finallyEntry = null;
|
|
3201
|
-
}
|
|
3202
|
-
|
|
3203
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
|
3204
|
-
record.type = type;
|
|
3205
|
-
record.arg = arg;
|
|
3206
|
-
|
|
3207
|
-
if (finallyEntry) {
|
|
3208
|
-
this.method = "next";
|
|
3209
|
-
this.next = finallyEntry.finallyLoc;
|
|
3210
|
-
return ContinueSentinel;
|
|
3211
|
-
}
|
|
3212
|
-
|
|
3213
|
-
return this.complete(record);
|
|
3214
|
-
},
|
|
3215
|
-
complete: function complete(record, afterLoc) {
|
|
3216
|
-
if (record.type === "throw") {
|
|
3217
|
-
throw record.arg;
|
|
3218
|
-
}
|
|
3219
|
-
|
|
3220
|
-
if (record.type === "break" || record.type === "continue") {
|
|
3221
|
-
this.next = record.arg;
|
|
3222
|
-
} else if (record.type === "return") {
|
|
3223
|
-
this.rval = this.arg = record.arg;
|
|
3224
|
-
this.method = "return";
|
|
3225
|
-
this.next = "end";
|
|
3226
|
-
} else if (record.type === "normal" && afterLoc) {
|
|
3227
|
-
this.next = afterLoc;
|
|
3228
|
-
}
|
|
3229
|
-
|
|
3230
|
-
return ContinueSentinel;
|
|
3231
|
-
},
|
|
3232
|
-
finish: function finish(finallyLoc) {
|
|
3233
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
3234
|
-
var entry = this.tryEntries[i];
|
|
3235
|
-
|
|
3236
|
-
if (entry.finallyLoc === finallyLoc) {
|
|
3237
|
-
this.complete(entry.completion, entry.afterLoc);
|
|
3238
|
-
resetTryEntry(entry);
|
|
3239
|
-
return ContinueSentinel;
|
|
3240
|
-
}
|
|
3241
|
-
}
|
|
3242
|
-
},
|
|
3243
|
-
"catch": function _catch(tryLoc) {
|
|
3244
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
3245
|
-
var entry = this.tryEntries[i];
|
|
3246
|
-
|
|
3247
|
-
if (entry.tryLoc === tryLoc) {
|
|
3248
|
-
var record = entry.completion;
|
|
3249
|
-
|
|
3250
|
-
if (record.type === "throw") {
|
|
3251
|
-
var thrown = record.arg;
|
|
3252
|
-
resetTryEntry(entry);
|
|
3253
|
-
}
|
|
3254
|
-
|
|
3255
|
-
return thrown;
|
|
3256
|
-
}
|
|
3257
|
-
} // The context.catch method must only be called with a location
|
|
3258
|
-
// argument that corresponds to a known catch block.
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
throw new Error("illegal catch attempt");
|
|
3262
|
-
},
|
|
3263
|
-
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
3264
|
-
this.delegate = {
|
|
3265
|
-
iterator: values(iterable),
|
|
3266
|
-
resultName: resultName,
|
|
3267
|
-
nextLoc: nextLoc
|
|
3268
|
-
};
|
|
3269
|
-
|
|
3270
|
-
if (this.method === "next") {
|
|
3271
|
-
// Deliberately forget the last sent value so that we don't
|
|
3272
|
-
// accidentally pass it on to the delegate.
|
|
3273
|
-
this.arg = undefined$1;
|
|
3274
|
-
}
|
|
3275
|
-
|
|
3276
|
-
return ContinueSentinel;
|
|
3277
|
-
}
|
|
3278
|
-
}; // Regardless of whether this script is executing as a CommonJS module
|
|
3279
|
-
// or not, return the runtime object so that we can declare the variable
|
|
3280
|
-
// regeneratorRuntime in the outer scope, which allows this module to be
|
|
3281
|
-
// injected easily by `bin/regenerator --include-runtime script.js`.
|
|
3282
|
-
|
|
3283
|
-
return exports;
|
|
3284
|
-
}( // If this script is executing as a CommonJS module, use module.exports
|
|
3285
|
-
// as the regeneratorRuntime namespace. Otherwise create a new empty
|
|
3286
|
-
// object. Either way, the resulting object will be used to initialize
|
|
3287
|
-
// the regeneratorRuntime variable at the top of this file.
|
|
3288
|
-
module.exports );
|
|
3289
|
-
|
|
3290
|
-
try {
|
|
3291
|
-
regeneratorRuntime = runtime;
|
|
3292
|
-
} catch (accidentalStrictMode) {
|
|
3293
|
-
// This module should not be running in strict mode, so the above
|
|
3294
|
-
// assignment should always work unless something is misconfigured. Just
|
|
3295
|
-
// in case runtime.js accidentally runs in strict mode, we can escape
|
|
3296
|
-
// strict mode using a global Function call. This could conceivably fail
|
|
3297
|
-
// if a Content Security Policy forbids using Function, but in that case
|
|
3298
|
-
// the proper solution is to fix the accidental strict mode problem. If
|
|
3299
|
-
// you've misconfigured your bundler to force strict mode and applied a
|
|
3300
|
-
// CSP to forbid Function, and you're not willing to fix either of those
|
|
3301
|
-
// problems, please detail your unique predicament in a GitHub issue.
|
|
3302
|
-
Function("r", "regeneratorRuntime = r")(runtime);
|
|
3303
|
-
}
|
|
3304
|
-
})(runtime);
|
|
3305
|
-
|
|
3306
|
-
var regenerator = runtime.exports;
|
|
3307
|
-
|
|
3308
|
-
function _extends$1() {
|
|
3309
|
-
_extends_1 = _extends$1 = Object.assign || function (target) {
|
|
3310
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
3311
|
-
var source = arguments[i];
|
|
3312
|
-
|
|
3313
|
-
for (var key in source) {
|
|
3314
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
3315
|
-
target[key] = source[key];
|
|
3316
|
-
}
|
|
3317
|
-
}
|
|
3318
|
-
}
|
|
3319
|
-
|
|
3320
|
-
return target;
|
|
3321
|
-
};
|
|
3322
|
-
|
|
3323
|
-
return _extends$1.apply(this, arguments);
|
|
3324
|
-
}
|
|
3325
|
-
|
|
3326
|
-
var _extends_1 = _extends$1;
|
|
3327
|
-
|
|
3328
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
3329
|
-
if (source == null) return {};
|
|
3330
|
-
var target = {};
|
|
3331
|
-
var sourceKeys = Object.keys(source);
|
|
3332
|
-
var key, i;
|
|
3333
|
-
|
|
3334
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
3335
|
-
key = sourceKeys[i];
|
|
3336
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
3337
|
-
target[key] = source[key];
|
|
3338
|
-
}
|
|
3339
|
-
|
|
3340
|
-
return target;
|
|
3341
|
-
}
|
|
3342
|
-
|
|
3343
|
-
var objectWithoutPropertiesLoose$1 = _objectWithoutPropertiesLoose;
|
|
3344
|
-
|
|
3345
|
-
var objectWithoutPropertiesLoose = objectWithoutPropertiesLoose$1;
|
|
3346
|
-
|
|
3347
|
-
function _objectWithoutProperties(source, excluded) {
|
|
3348
|
-
if (source == null) return {};
|
|
3349
|
-
var target = objectWithoutPropertiesLoose(source, excluded);
|
|
3350
|
-
var key, i;
|
|
3351
|
-
|
|
3352
|
-
if (Object.getOwnPropertySymbols) {
|
|
3353
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
3354
|
-
|
|
3355
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
3356
|
-
key = sourceSymbolKeys[i];
|
|
3357
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
3358
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
3359
|
-
target[key] = source[key];
|
|
3360
|
-
}
|
|
3361
|
-
}
|
|
3362
|
-
|
|
3363
|
-
return target;
|
|
3364
|
-
}
|
|
3365
|
-
|
|
3366
|
-
var objectWithoutProperties = _objectWithoutProperties;
|
|
3367
|
-
|
|
3368
|
-
function _classCallCheck(instance, Constructor) {
|
|
3369
|
-
if (!(instance instanceof Constructor)) {
|
|
3370
|
-
throw new TypeError("Cannot call a class as a function");
|
|
3371
|
-
}
|
|
3372
|
-
}
|
|
3373
|
-
|
|
3374
|
-
var classCallCheck = _classCallCheck;
|
|
3375
|
-
|
|
3376
|
-
function _defineProperties(target, props) {
|
|
3377
|
-
for (var i = 0; i < props.length; i++) {
|
|
3378
|
-
var descriptor = props[i];
|
|
3379
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
3380
|
-
descriptor.configurable = true;
|
|
3381
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
3382
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
3383
|
-
}
|
|
3384
|
-
}
|
|
3385
|
-
|
|
3386
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
3387
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
3388
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
3389
|
-
return Constructor;
|
|
3390
|
-
}
|
|
3391
|
-
|
|
3392
|
-
var createClass = _createClass;
|
|
3393
|
-
|
|
3394
|
-
function _typeof2(obj) {
|
|
3395
|
-
if (typeof Symbol === "function" && _typeof$2(Symbol.iterator) === "symbol") {
|
|
3396
|
-
_typeof2 = function _typeof2(obj) {
|
|
3397
|
-
return _typeof$2(obj);
|
|
3398
|
-
};
|
|
3399
|
-
} else {
|
|
3400
|
-
_typeof2 = function _typeof2(obj) {
|
|
3401
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : _typeof$2(obj);
|
|
3402
|
-
};
|
|
3403
|
-
}
|
|
3404
|
-
|
|
3405
|
-
return _typeof2(obj);
|
|
3406
|
-
}
|
|
3407
|
-
|
|
3408
|
-
function _typeof$1(obj) {
|
|
3409
|
-
if (typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol") {
|
|
3410
|
-
_typeof_1 = _typeof$1 = function _typeof(obj) {
|
|
3411
|
-
return _typeof2(obj);
|
|
3412
|
-
};
|
|
3413
|
-
} else {
|
|
3414
|
-
_typeof_1 = _typeof$1 = function _typeof(obj) {
|
|
3415
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : _typeof2(obj);
|
|
3416
|
-
};
|
|
3417
|
-
}
|
|
3418
|
-
|
|
3419
|
-
return _typeof$1(obj);
|
|
3420
|
-
}
|
|
3421
|
-
|
|
3422
|
-
var _typeof_1 = _typeof$1;
|
|
3423
|
-
|
|
3424
|
-
function _assertThisInitialized(self) {
|
|
3425
|
-
if (self === void 0) {
|
|
3426
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
3427
|
-
}
|
|
3428
|
-
|
|
3429
|
-
return self;
|
|
3430
|
-
}
|
|
3431
|
-
|
|
3432
|
-
var assertThisInitialized$1 = _assertThisInitialized;
|
|
3433
|
-
|
|
3434
|
-
var _typeof = _typeof_1;
|
|
3435
|
-
var assertThisInitialized = assertThisInitialized$1;
|
|
3436
|
-
|
|
3437
|
-
function _possibleConstructorReturn(self, call) {
|
|
3438
|
-
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
3439
|
-
return call;
|
|
3440
|
-
}
|
|
3441
|
-
|
|
3442
|
-
return assertThisInitialized(self);
|
|
3443
|
-
}
|
|
3444
|
-
|
|
3445
|
-
var possibleConstructorReturn = _possibleConstructorReturn;
|
|
3446
|
-
|
|
3447
|
-
function _getPrototypeOf(o) {
|
|
3448
|
-
getPrototypeOf = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
3449
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
3450
|
-
};
|
|
3451
|
-
return _getPrototypeOf(o);
|
|
3452
|
-
}
|
|
3453
|
-
|
|
3454
|
-
var getPrototypeOf = _getPrototypeOf;
|
|
3455
|
-
|
|
3456
|
-
function _setPrototypeOf(o, p) {
|
|
3457
|
-
setPrototypeOf$1 = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
3458
|
-
o.__proto__ = p;
|
|
3459
|
-
return o;
|
|
3460
|
-
};
|
|
3461
|
-
|
|
3462
|
-
return _setPrototypeOf(o, p);
|
|
3463
|
-
}
|
|
3464
|
-
|
|
3465
|
-
var setPrototypeOf$1 = _setPrototypeOf;
|
|
3466
|
-
|
|
3467
|
-
var setPrototypeOf = setPrototypeOf$1;
|
|
3468
|
-
|
|
3469
|
-
function _inherits(subClass, superClass) {
|
|
3470
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
3471
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
3472
|
-
}
|
|
3473
|
-
|
|
3474
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
3475
|
-
constructor: {
|
|
3476
|
-
value: subClass,
|
|
3477
|
-
writable: true,
|
|
3478
|
-
configurable: true
|
|
3479
|
-
}
|
|
3480
|
-
});
|
|
3481
|
-
if (superClass) setPrototypeOf(subClass, superClass);
|
|
3482
|
-
}
|
|
3483
|
-
|
|
3484
|
-
var inherits = _inherits;
|
|
3485
|
-
|
|
3486
|
-
var propTypes = {exports: {}};
|
|
3487
|
-
|
|
3488
|
-
/**
|
|
3489
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
3490
|
-
*
|
|
3491
|
-
* This source code is licensed under the MIT license found in the
|
|
3492
|
-
* LICENSE file in the root directory of this source tree.
|
|
3493
|
-
*/
|
|
3494
|
-
|
|
3495
|
-
var ReactPropTypesSecret$1 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
3496
|
-
var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
|
|
3497
|
-
|
|
3498
|
-
/**
|
|
3499
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
3500
|
-
*
|
|
3501
|
-
* This source code is licensed under the MIT license found in the
|
|
3502
|
-
* LICENSE file in the root directory of this source tree.
|
|
3503
|
-
*/
|
|
3504
|
-
|
|
3505
|
-
var ReactPropTypesSecret = ReactPropTypesSecret_1;
|
|
3506
|
-
|
|
3507
|
-
function emptyFunction() {}
|
|
3508
|
-
|
|
3509
|
-
function emptyFunctionWithReset() {}
|
|
3510
|
-
|
|
3511
|
-
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
3512
|
-
|
|
3513
|
-
var factoryWithThrowingShims = function factoryWithThrowingShims() {
|
|
3514
|
-
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
3515
|
-
if (secret === ReactPropTypesSecret) {
|
|
3516
|
-
// It is still safe when called from React.
|
|
3517
|
-
return;
|
|
3518
|
-
}
|
|
3519
|
-
|
|
3520
|
-
var err = new Error('Calling PropTypes validators directly is not supported by the `prop-types` package. ' + 'Use PropTypes.checkPropTypes() to call them. ' + 'Read more at http://fb.me/use-check-prop-types');
|
|
3521
|
-
err.name = 'Invariant Violation';
|
|
3522
|
-
throw err;
|
|
3523
|
-
}
|
|
3524
|
-
shim.isRequired = shim;
|
|
3525
|
-
|
|
3526
|
-
function getShim() {
|
|
3527
|
-
return shim;
|
|
3528
|
-
}
|
|
3529
|
-
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
3530
|
-
|
|
3531
|
-
var ReactPropTypes = {
|
|
3532
|
-
array: shim,
|
|
3533
|
-
bool: shim,
|
|
3534
|
-
func: shim,
|
|
3535
|
-
number: shim,
|
|
3536
|
-
object: shim,
|
|
3537
|
-
string: shim,
|
|
3538
|
-
symbol: shim,
|
|
3539
|
-
any: shim,
|
|
3540
|
-
arrayOf: getShim,
|
|
3541
|
-
element: shim,
|
|
3542
|
-
elementType: shim,
|
|
3543
|
-
instanceOf: getShim,
|
|
3544
|
-
node: shim,
|
|
3545
|
-
objectOf: getShim,
|
|
3546
|
-
oneOf: getShim,
|
|
3547
|
-
oneOfType: getShim,
|
|
3548
|
-
shape: getShim,
|
|
3549
|
-
exact: getShim,
|
|
3550
|
-
checkPropTypes: emptyFunctionWithReset,
|
|
3551
|
-
resetWarningCache: emptyFunction
|
|
3552
|
-
};
|
|
3553
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
3554
|
-
return ReactPropTypes;
|
|
3555
|
-
};
|
|
3556
|
-
|
|
3557
|
-
/**
|
|
3558
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
3559
|
-
*
|
|
3560
|
-
* This source code is licensed under the MIT license found in the
|
|
3561
|
-
* LICENSE file in the root directory of this source tree.
|
|
3562
|
-
*/
|
|
3563
|
-
|
|
3564
|
-
{
|
|
3565
|
-
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
3566
|
-
// http://fb.me/prop-types-in-prod
|
|
3567
|
-
propTypes.exports = factoryWithThrowingShims();
|
|
3568
|
-
}
|
|
3569
|
-
|
|
3570
|
-
var ensureNativeModuleAvailable$1 = {};
|
|
3571
|
-
|
|
3572
|
-
Object.defineProperty(ensureNativeModuleAvailable$1, "__esModule", {
|
|
3573
|
-
value: true
|
|
3574
|
-
});
|
|
3575
|
-
|
|
3576
|
-
ensureNativeModuleAvailable$1["default"] = ensureNativeModuleAvailable;
|
|
3577
|
-
|
|
3578
|
-
var _reactNative$2 = ReactNative__default["default"];
|
|
3579
|
-
var NativeIconAPI$1 = _reactNative$2.NativeModules.RNVectorIconsManager || _reactNative$2.NativeModules.RNVectorIconsModule;
|
|
3580
|
-
|
|
3581
|
-
function ensureNativeModuleAvailable() {
|
|
3582
|
-
if (!NativeIconAPI$1) {
|
|
3583
|
-
if (_reactNative$2.Platform.OS === 'android') {
|
|
3584
|
-
throw new Error('RNVectorIconsModule not available, did you properly integrate the module? Try running `react-native link react-native-vector-icons` and recompiling.');
|
|
3585
|
-
}
|
|
3586
|
-
|
|
3587
|
-
throw new Error('RNVectorIconsManager not available, did you add the library to your project and link with libRNVectorIcons.a? Try running `react-native link react-native-vector-icons` and recompiling.');
|
|
3588
|
-
}
|
|
3589
|
-
}
|
|
3590
|
-
|
|
3591
|
-
var createIconSourceCache$1 = {};
|
|
3592
|
-
|
|
3593
|
-
Object.defineProperty(createIconSourceCache$1, "__esModule", {
|
|
3594
|
-
value: true
|
|
3595
|
-
});
|
|
3596
|
-
|
|
3597
|
-
createIconSourceCache$1["default"] = createIconSourceCache;
|
|
3598
|
-
|
|
3599
|
-
var TYPE_VALUE = 'value';
|
|
3600
|
-
var TYPE_ERROR = 'error';
|
|
3601
|
-
|
|
3602
|
-
function createIconSourceCache() {
|
|
3603
|
-
var cache = new Map();
|
|
3604
|
-
|
|
3605
|
-
var setValue = function setValue(key, value) {
|
|
3606
|
-
return cache.set(key, {
|
|
3607
|
-
type: TYPE_VALUE,
|
|
3608
|
-
data: value
|
|
3609
|
-
});
|
|
3610
|
-
};
|
|
3611
|
-
|
|
3612
|
-
var setError = function setError(key, error) {
|
|
3613
|
-
return cache.set(key, {
|
|
3614
|
-
type: TYPE_ERROR,
|
|
3615
|
-
data: error
|
|
3616
|
-
});
|
|
3617
|
-
};
|
|
3618
|
-
|
|
3619
|
-
var has = function has(key) {
|
|
3620
|
-
return cache.has(key);
|
|
3621
|
-
};
|
|
3622
|
-
|
|
3623
|
-
var get = function get(key) {
|
|
3624
|
-
if (!cache.has(key)) {
|
|
3625
|
-
return undefined;
|
|
3626
|
-
}
|
|
3627
|
-
|
|
3628
|
-
var _cache$get = cache.get(key),
|
|
3629
|
-
type = _cache$get.type,
|
|
3630
|
-
data = _cache$get.data;
|
|
3631
|
-
|
|
3632
|
-
if (type === TYPE_ERROR) {
|
|
3633
|
-
throw data;
|
|
3634
|
-
}
|
|
3635
|
-
|
|
3636
|
-
return data;
|
|
3637
|
-
};
|
|
3638
|
-
|
|
3639
|
-
return {
|
|
3640
|
-
setValue: setValue,
|
|
3641
|
-
setError: setError,
|
|
3642
|
-
has: has,
|
|
3643
|
-
get: get
|
|
3644
|
-
};
|
|
3645
|
-
}
|
|
3646
|
-
|
|
3647
|
-
var iconButton = {};
|
|
3648
|
-
|
|
3649
|
-
var pick = function pick(obj) {
|
|
3650
|
-
for (var _len = arguments.length, keys = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
3651
|
-
keys[_key - 1] = arguments[_key];
|
|
3652
|
-
}
|
|
3653
|
-
|
|
3654
|
-
return keys.flat().filter(function (key) {
|
|
3655
|
-
return Object.prototype.hasOwnProperty.call(obj, key);
|
|
3656
|
-
}).reduce(function (acc, key) {
|
|
3657
|
-
acc[key] = obj[key];
|
|
3658
|
-
return acc;
|
|
3659
|
-
}, {});
|
|
3660
|
-
};
|
|
3661
|
-
|
|
3662
|
-
var omit = function omit(obj) {
|
|
3663
|
-
for (var _len2 = arguments.length, keysToOmit = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
3664
|
-
keysToOmit[_key2 - 1] = arguments[_key2];
|
|
3665
|
-
}
|
|
3666
|
-
|
|
3667
|
-
var keysToOmitSet = new Set(keysToOmit.flat());
|
|
3668
|
-
return Object.getOwnPropertyNames(obj).filter(function (key) {
|
|
3669
|
-
return !keysToOmitSet.has(key);
|
|
3670
|
-
}).reduce(function (acc, key) {
|
|
3671
|
-
acc[key] = obj[key];
|
|
3672
|
-
return acc;
|
|
3673
|
-
}, {});
|
|
3674
|
-
};
|
|
3675
|
-
|
|
3676
|
-
var objectUtils = {
|
|
3677
|
-
pick: pick,
|
|
3678
|
-
omit: omit
|
|
3679
|
-
};
|
|
3680
|
-
|
|
3681
|
-
var _interopRequireDefault$4 = interopRequireDefault;
|
|
3682
|
-
Object.defineProperty(iconButton, "__esModule", {
|
|
3683
|
-
value: true
|
|
3684
|
-
});
|
|
3685
|
-
|
|
3686
|
-
iconButton["default"] = createIconButtonComponent;
|
|
3687
|
-
|
|
3688
|
-
var _extends2$2 = _interopRequireDefault$4(_extends_1);
|
|
3689
|
-
|
|
3690
|
-
var _objectWithoutProperties2$1 = _interopRequireDefault$4(objectWithoutProperties);
|
|
3691
|
-
|
|
3692
|
-
var _classCallCheck2$2 = _interopRequireDefault$4(classCallCheck);
|
|
3693
|
-
|
|
3694
|
-
var _createClass2$2 = _interopRequireDefault$4(createClass);
|
|
3695
|
-
|
|
3696
|
-
var _possibleConstructorReturn2$2 = _interopRequireDefault$4(possibleConstructorReturn);
|
|
3697
|
-
|
|
3698
|
-
var _getPrototypeOf2$1 = _interopRequireDefault$4(getPrototypeOf);
|
|
3699
|
-
|
|
3700
|
-
var _inherits2$2 = _interopRequireDefault$4(inherits);
|
|
3701
|
-
|
|
3702
|
-
var _react$2 = _interopRequireWildcard$2(React__default["default"]);
|
|
3703
|
-
|
|
3704
|
-
var _propTypes$2 = _interopRequireDefault$4(propTypes.exports);
|
|
3705
|
-
|
|
3706
|
-
var _reactNative$1 = ReactNative__default["default"];
|
|
3707
|
-
var _objectUtils = objectUtils;
|
|
3708
|
-
var _jsxFileName$2 = "/home/runner/work/react-native-vector-icons/react-native-vector-icons/lib/icon-button.js";
|
|
3709
|
-
|
|
3710
|
-
function _getRequireWildcardCache$2(nodeInterop) {
|
|
3711
|
-
if (typeof WeakMap !== "function") return null;
|
|
3712
|
-
var cacheBabelInterop = new WeakMap();
|
|
3713
|
-
var cacheNodeInterop = new WeakMap();
|
|
3714
|
-
return (_getRequireWildcardCache$2 = function _getRequireWildcardCache(nodeInterop) {
|
|
3715
|
-
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
3716
|
-
})(nodeInterop);
|
|
3717
|
-
}
|
|
3718
|
-
|
|
3719
|
-
function _interopRequireWildcard$2(obj, nodeInterop) {
|
|
3720
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
3721
|
-
return obj;
|
|
3722
|
-
}
|
|
3723
|
-
|
|
3724
|
-
if (obj === null || _typeof$2(obj) !== "object" && typeof obj !== "function") {
|
|
3725
|
-
return {
|
|
3726
|
-
"default": obj
|
|
3727
|
-
};
|
|
3728
|
-
}
|
|
3729
|
-
|
|
3730
|
-
var cache = _getRequireWildcardCache$2(nodeInterop);
|
|
3731
|
-
|
|
3732
|
-
if (cache && cache.has(obj)) {
|
|
3733
|
-
return cache.get(obj);
|
|
3734
|
-
}
|
|
3735
|
-
|
|
3736
|
-
var newObj = {};
|
|
3737
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
3738
|
-
|
|
3739
|
-
for (var key in obj) {
|
|
3740
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
3741
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
3742
|
-
|
|
3743
|
-
if (desc && (desc.get || desc.set)) {
|
|
3744
|
-
Object.defineProperty(newObj, key, desc);
|
|
3745
|
-
} else {
|
|
3746
|
-
newObj[key] = obj[key];
|
|
3747
|
-
}
|
|
3748
|
-
}
|
|
3749
|
-
}
|
|
3750
|
-
|
|
3751
|
-
newObj["default"] = obj;
|
|
3752
|
-
|
|
3753
|
-
if (cache) {
|
|
3754
|
-
cache.set(obj, newObj);
|
|
3755
|
-
}
|
|
3756
|
-
|
|
3757
|
-
return newObj;
|
|
3758
|
-
}
|
|
3759
|
-
|
|
3760
|
-
var styles$1 = _reactNative$1.StyleSheet.create({
|
|
3761
|
-
container: {
|
|
3762
|
-
flexDirection: 'row',
|
|
3763
|
-
justifyContent: 'flex-start',
|
|
3764
|
-
alignItems: 'center',
|
|
3765
|
-
padding: 8
|
|
3766
|
-
},
|
|
3767
|
-
touchable: {
|
|
3768
|
-
overflow: 'hidden'
|
|
3769
|
-
},
|
|
3770
|
-
icon: {
|
|
3771
|
-
marginRight: 10
|
|
3772
|
-
},
|
|
3773
|
-
text: {
|
|
3774
|
-
fontWeight: '600',
|
|
3775
|
-
backgroundColor: 'transparent'
|
|
3776
|
-
}
|
|
3777
|
-
});
|
|
3778
|
-
|
|
3779
|
-
var IOS7_BLUE = '#007AFF';
|
|
3780
|
-
var TEXT_PROP_NAMES = ['ellipsizeMode', 'numberOfLines', 'textBreakStrategy', 'selectable', 'suppressHighlighting', 'allowFontScaling', 'adjustsFontSizeToFit', 'minimumFontScale'];
|
|
3781
|
-
var TOUCHABLE_PROP_NAMES = ['accessible', 'accessibilityLabel', 'accessibilityHint', 'accessibilityComponentType', 'accessibilityRole', 'accessibilityStates', 'accessibilityTraits', 'onFocus', 'onBlur', 'disabled', 'onPress', 'onPressIn', 'onPressOut', 'onLayout', 'onLongPress', 'nativeID', 'testID', 'delayPressIn', 'delayPressOut', 'delayLongPress', 'activeOpacity', 'underlayColor', 'selectionColor', 'onShowUnderlay', 'onHideUnderlay', 'hasTVPreferredFocus', 'tvParallaxProperties'];
|
|
3782
|
-
|
|
3783
|
-
function createIconButtonComponent(Icon) {
|
|
3784
|
-
var _class, _temp;
|
|
3785
|
-
|
|
3786
|
-
return _temp = _class = function (_PureComponent) {
|
|
3787
|
-
(0, _inherits2$2["default"])(IconButton, _PureComponent);
|
|
3788
|
-
|
|
3789
|
-
function IconButton() {
|
|
3790
|
-
(0, _classCallCheck2$2["default"])(this, IconButton);
|
|
3791
|
-
return (0, _possibleConstructorReturn2$2["default"])(this, (0, _getPrototypeOf2$1["default"])(IconButton).apply(this, arguments));
|
|
3792
|
-
}
|
|
3793
|
-
|
|
3794
|
-
(0, _createClass2$2["default"])(IconButton, [{
|
|
3795
|
-
key: "render",
|
|
3796
|
-
value: function render() {
|
|
3797
|
-
var _this$props = this.props,
|
|
3798
|
-
style = _this$props.style,
|
|
3799
|
-
iconStyle = _this$props.iconStyle,
|
|
3800
|
-
children = _this$props.children,
|
|
3801
|
-
restProps = (0, _objectWithoutProperties2$1["default"])(_this$props, ["style", "iconStyle", "children"]);
|
|
3802
|
-
var iconProps = (0, _objectUtils.pick)(restProps, TEXT_PROP_NAMES, 'style', 'name', 'size', 'color');
|
|
3803
|
-
var touchableProps = (0, _objectUtils.pick)(restProps, TOUCHABLE_PROP_NAMES);
|
|
3804
|
-
var props = (0, _objectUtils.omit)(restProps, Object.keys(iconProps), Object.keys(touchableProps), 'iconStyle', 'borderRadius', 'backgroundColor');
|
|
3805
|
-
iconProps.style = iconStyle ? [styles$1.icon, iconStyle] : styles$1.icon;
|
|
3806
|
-
var colorStyle = (0, _objectUtils.pick)(this.props, 'color');
|
|
3807
|
-
var blockStyle = (0, _objectUtils.pick)(this.props, 'backgroundColor', 'borderRadius');
|
|
3808
|
-
return _react$2["default"].createElement(_reactNative$1.TouchableHighlight, (0, _extends2$2["default"])({
|
|
3809
|
-
style: [styles$1.touchable, blockStyle]
|
|
3810
|
-
}, touchableProps, {
|
|
3811
|
-
__self: this,
|
|
3812
|
-
__source: {
|
|
3813
|
-
fileName: _jsxFileName$2,
|
|
3814
|
-
lineNumber: 116
|
|
3815
|
-
}
|
|
3816
|
-
}), _react$2["default"].createElement(_reactNative$1.View, (0, _extends2$2["default"])({
|
|
3817
|
-
style: [styles$1.container, blockStyle, style]
|
|
3818
|
-
}, props, {
|
|
3819
|
-
__self: this,
|
|
3820
|
-
__source: {
|
|
3821
|
-
fileName: _jsxFileName$2,
|
|
3822
|
-
lineNumber: 120
|
|
3823
|
-
}
|
|
3824
|
-
}), _react$2["default"].createElement(Icon, (0, _extends2$2["default"])({}, iconProps, {
|
|
3825
|
-
__self: this,
|
|
3826
|
-
__source: {
|
|
3827
|
-
fileName: _jsxFileName$2,
|
|
3828
|
-
lineNumber: 121
|
|
3829
|
-
}
|
|
3830
|
-
})), typeof children === 'string' ? _react$2["default"].createElement(_reactNative$1.Text, {
|
|
3831
|
-
style: [styles$1.text, colorStyle],
|
|
3832
|
-
selectable: false,
|
|
3833
|
-
__self: this,
|
|
3834
|
-
__source: {
|
|
3835
|
-
fileName: _jsxFileName$2,
|
|
3836
|
-
lineNumber: 123
|
|
3837
|
-
}
|
|
3838
|
-
}, children) : children));
|
|
3839
|
-
}
|
|
3840
|
-
}]);
|
|
3841
|
-
return IconButton;
|
|
3842
|
-
}(_react$2.PureComponent), _class.propTypes = {
|
|
3843
|
-
backgroundColor: _propTypes$2["default"].oneOfType([_propTypes$2["default"].string, _propTypes$2["default"].number]),
|
|
3844
|
-
borderRadius: _propTypes$2["default"].number,
|
|
3845
|
-
color: _propTypes$2["default"].any,
|
|
3846
|
-
size: _propTypes$2["default"].number,
|
|
3847
|
-
iconStyle: _propTypes$2["default"].any,
|
|
3848
|
-
style: _propTypes$2["default"].any,
|
|
3849
|
-
children: _propTypes$2["default"].node
|
|
3850
|
-
}, _class.defaultProps = {
|
|
3851
|
-
backgroundColor: IOS7_BLUE,
|
|
3852
|
-
borderRadius: 5,
|
|
3853
|
-
color: 'white',
|
|
3854
|
-
size: 20
|
|
3855
|
-
}, _temp;
|
|
3856
|
-
}
|
|
3857
|
-
|
|
3858
|
-
var _interopRequireDefault$3 = interopRequireDefault;
|
|
3859
|
-
Object.defineProperty(createIconSet$1, "__esModule", {
|
|
3860
|
-
value: true
|
|
3861
|
-
});
|
|
3862
|
-
createIconSet$1.NativeIconAPI = createIconSet$1.DEFAULT_ICON_SIZE = createIconSet$1.DEFAULT_ICON_COLOR = void 0;
|
|
3863
|
-
|
|
3864
|
-
createIconSet$1["default"] = createIconSet;
|
|
3865
|
-
|
|
3866
|
-
var _toConsumableArray2 = _interopRequireDefault$3(toConsumableArray);
|
|
3867
|
-
|
|
3868
|
-
var _regenerator = _interopRequireDefault$3(regenerator);
|
|
3869
|
-
|
|
3870
|
-
var _extends2$1 = _interopRequireDefault$3(_extends_1);
|
|
3871
|
-
|
|
3872
|
-
var _objectWithoutProperties2 = _interopRequireDefault$3(objectWithoutProperties);
|
|
3873
|
-
|
|
3874
|
-
var _classCallCheck2$1 = _interopRequireDefault$3(classCallCheck);
|
|
3875
|
-
|
|
3876
|
-
var _createClass2$1 = _interopRequireDefault$3(createClass);
|
|
3877
|
-
|
|
3878
|
-
var _possibleConstructorReturn2$1 = _interopRequireDefault$3(possibleConstructorReturn);
|
|
3879
|
-
|
|
3880
|
-
var _getPrototypeOf3 = _interopRequireDefault$3(getPrototypeOf);
|
|
3881
|
-
|
|
3882
|
-
var _inherits2$1 = _interopRequireDefault$3(inherits);
|
|
3883
|
-
|
|
3884
|
-
var _react$1 = _interopRequireWildcard$1(React__default["default"]);
|
|
3885
|
-
|
|
3886
|
-
var _propTypes$1 = _interopRequireDefault$3(propTypes.exports);
|
|
3887
|
-
|
|
3888
|
-
var _reactNative = ReactNative__default["default"];
|
|
3889
|
-
|
|
3890
|
-
var _ensureNativeModuleAvailable = _interopRequireDefault$3(ensureNativeModuleAvailable$1);
|
|
3891
|
-
|
|
3892
|
-
var _createIconSourceCache = _interopRequireDefault$3(createIconSourceCache$1);
|
|
3893
|
-
|
|
3894
|
-
var _iconButton = _interopRequireDefault$3(iconButton);
|
|
3895
|
-
|
|
3896
|
-
var _jsxFileName$1 = "/home/runner/work/react-native-vector-icons/react-native-vector-icons/lib/create-icon-set.js";
|
|
3897
|
-
|
|
3898
|
-
function _getRequireWildcardCache$1(nodeInterop) {
|
|
3899
|
-
if (typeof WeakMap !== "function") return null;
|
|
3900
|
-
var cacheBabelInterop = new WeakMap();
|
|
3901
|
-
var cacheNodeInterop = new WeakMap();
|
|
3902
|
-
return (_getRequireWildcardCache$1 = function _getRequireWildcardCache(nodeInterop) {
|
|
3903
|
-
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
3904
|
-
})(nodeInterop);
|
|
3905
|
-
}
|
|
3906
|
-
|
|
3907
|
-
function _interopRequireWildcard$1(obj, nodeInterop) {
|
|
3908
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
3909
|
-
return obj;
|
|
3910
|
-
}
|
|
3911
|
-
|
|
3912
|
-
if (obj === null || _typeof$2(obj) !== "object" && typeof obj !== "function") {
|
|
3913
|
-
return {
|
|
3914
|
-
"default": obj
|
|
3915
|
-
};
|
|
3916
|
-
}
|
|
3917
|
-
|
|
3918
|
-
var cache = _getRequireWildcardCache$1(nodeInterop);
|
|
3919
|
-
|
|
3920
|
-
if (cache && cache.has(obj)) {
|
|
3921
|
-
return cache.get(obj);
|
|
3922
|
-
}
|
|
3923
|
-
|
|
3924
|
-
var newObj = {};
|
|
3925
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
3926
|
-
|
|
3927
|
-
for (var key in obj) {
|
|
3928
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
3929
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
3930
|
-
|
|
3931
|
-
if (desc && (desc.get || desc.set)) {
|
|
3932
|
-
Object.defineProperty(newObj, key, desc);
|
|
3933
|
-
} else {
|
|
3934
|
-
newObj[key] = obj[key];
|
|
3935
|
-
}
|
|
3936
|
-
}
|
|
3937
|
-
}
|
|
3938
|
-
|
|
3939
|
-
newObj["default"] = obj;
|
|
3940
|
-
|
|
3941
|
-
if (cache) {
|
|
3942
|
-
cache.set(obj, newObj);
|
|
3943
|
-
}
|
|
3944
|
-
|
|
3945
|
-
return newObj;
|
|
3946
|
-
}
|
|
3947
|
-
|
|
3948
|
-
var NativeIconAPI = _reactNative.NativeModules.RNVectorIconsManager || _reactNative.NativeModules.RNVectorIconsModule;
|
|
3949
|
-
createIconSet$1.NativeIconAPI = NativeIconAPI;
|
|
3950
|
-
var DEFAULT_ICON_SIZE = 12;
|
|
3951
|
-
createIconSet$1.DEFAULT_ICON_SIZE = DEFAULT_ICON_SIZE;
|
|
3952
|
-
var DEFAULT_ICON_COLOR = 'black';
|
|
3953
|
-
createIconSet$1.DEFAULT_ICON_COLOR = DEFAULT_ICON_COLOR;
|
|
3954
|
-
|
|
3955
|
-
function createIconSet(glyphMap, fontFamily, fontFile, fontStyle) {
|
|
3956
|
-
var fontBasename = fontFile ? fontFile.replace(/\.(otf|ttf)$/, '') : fontFamily;
|
|
3957
|
-
|
|
3958
|
-
var fontReference = _reactNative.Platform.select({
|
|
3959
|
-
windows: "/Assets/" + fontFile + "#" + fontFamily,
|
|
3960
|
-
android: fontBasename,
|
|
3961
|
-
web: fontBasename,
|
|
3962
|
-
"default": fontFamily
|
|
3963
|
-
});
|
|
3964
|
-
|
|
3965
|
-
var IconNamePropType = _propTypes$1["default"].oneOf(Object.keys(glyphMap));
|
|
3966
|
-
|
|
3967
|
-
var Icon = function (_PureComponent) {
|
|
3968
|
-
(0, _inherits2$1["default"])(Icon, _PureComponent);
|
|
3969
|
-
|
|
3970
|
-
function Icon() {
|
|
3971
|
-
var _getPrototypeOf2;
|
|
3972
|
-
|
|
3973
|
-
var _this;
|
|
3974
|
-
|
|
3975
|
-
(0, _classCallCheck2$1["default"])(this, Icon);
|
|
3976
|
-
|
|
3977
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
3978
|
-
args[_key] = arguments[_key];
|
|
3979
|
-
}
|
|
3980
|
-
|
|
3981
|
-
_this = (0, _possibleConstructorReturn2$1["default"])(this, (_getPrototypeOf2 = (0, _getPrototypeOf3["default"])(Icon)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3982
|
-
_this.root = null;
|
|
3983
|
-
|
|
3984
|
-
_this.handleRef = function (ref) {
|
|
3985
|
-
_this.root = ref;
|
|
3986
|
-
};
|
|
3987
|
-
|
|
3988
|
-
return _this;
|
|
3989
|
-
}
|
|
3990
|
-
|
|
3991
|
-
(0, _createClass2$1["default"])(Icon, [{
|
|
3992
|
-
key: "setNativeProps",
|
|
3993
|
-
value: function setNativeProps(nativeProps) {
|
|
3994
|
-
if (this.root) {
|
|
3995
|
-
this.root.setNativeProps(nativeProps);
|
|
3996
|
-
}
|
|
3997
|
-
}
|
|
3998
|
-
}, {
|
|
3999
|
-
key: "render",
|
|
4000
|
-
value: function render() {
|
|
4001
|
-
var _this$props = this.props,
|
|
4002
|
-
name = _this$props.name,
|
|
4003
|
-
size = _this$props.size,
|
|
4004
|
-
color = _this$props.color,
|
|
4005
|
-
style = _this$props.style,
|
|
4006
|
-
children = _this$props.children,
|
|
4007
|
-
props = (0, _objectWithoutProperties2["default"])(_this$props, ["name", "size", "color", "style", "children"]);
|
|
4008
|
-
var glyph = name ? glyphMap[name] || '?' : '';
|
|
4009
|
-
|
|
4010
|
-
if (typeof glyph === 'number') {
|
|
4011
|
-
glyph = String.fromCodePoint(glyph);
|
|
4012
|
-
}
|
|
4013
|
-
|
|
4014
|
-
var styleDefaults = {
|
|
4015
|
-
fontSize: size,
|
|
4016
|
-
color: color
|
|
4017
|
-
};
|
|
4018
|
-
var styleOverrides = {
|
|
4019
|
-
fontFamily: fontReference,
|
|
4020
|
-
fontWeight: 'normal',
|
|
4021
|
-
fontStyle: 'normal'
|
|
4022
|
-
};
|
|
4023
|
-
props.style = [styleDefaults, style, styleOverrides, fontStyle || {}];
|
|
4024
|
-
props.ref = this.handleRef;
|
|
4025
|
-
return _react$1["default"].createElement(_reactNative.Text, (0, _extends2$1["default"])({
|
|
4026
|
-
selectable: false
|
|
4027
|
-
}, props, {
|
|
4028
|
-
__self: this,
|
|
4029
|
-
__source: {
|
|
4030
|
-
fileName: _jsxFileName$1,
|
|
4031
|
-
lineNumber: 91
|
|
4032
|
-
}
|
|
4033
|
-
}), glyph, children);
|
|
4034
|
-
}
|
|
4035
|
-
}]);
|
|
4036
|
-
return Icon;
|
|
4037
|
-
}(_react$1.PureComponent);
|
|
4038
|
-
|
|
4039
|
-
Icon.propTypes = {
|
|
4040
|
-
allowFontScaling: _propTypes$1["default"].bool,
|
|
4041
|
-
name: IconNamePropType,
|
|
4042
|
-
size: _propTypes$1["default"].number,
|
|
4043
|
-
color: _propTypes$1["default"].any,
|
|
4044
|
-
children: _propTypes$1["default"].node,
|
|
4045
|
-
style: _propTypes$1["default"].any
|
|
4046
|
-
};
|
|
4047
|
-
Icon.defaultProps = {
|
|
4048
|
-
size: DEFAULT_ICON_SIZE,
|
|
4049
|
-
allowFontScaling: false
|
|
4050
|
-
};
|
|
4051
|
-
var imageSourceCache = (0, _createIconSourceCache["default"])();
|
|
4052
|
-
|
|
4053
|
-
function resolveGlyph(name) {
|
|
4054
|
-
var glyph = glyphMap[name] || '?';
|
|
4055
|
-
|
|
4056
|
-
if (typeof glyph === 'number') {
|
|
4057
|
-
return String.fromCodePoint(glyph);
|
|
4058
|
-
}
|
|
4059
|
-
|
|
4060
|
-
return glyph;
|
|
4061
|
-
}
|
|
4062
|
-
|
|
4063
|
-
function getImageSourceSync(name) {
|
|
4064
|
-
var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_ICON_SIZE;
|
|
4065
|
-
var color = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : DEFAULT_ICON_COLOR;
|
|
4066
|
-
(0, _ensureNativeModuleAvailable["default"])();
|
|
4067
|
-
var glyph = resolveGlyph(name);
|
|
4068
|
-
var processedColor = (0, _reactNative.processColor)(color);
|
|
4069
|
-
var cacheKey = glyph + ":" + size + ":" + processedColor;
|
|
4070
|
-
|
|
4071
|
-
if (imageSourceCache.has(cacheKey)) {
|
|
4072
|
-
return imageSourceCache.get(cacheKey);
|
|
4073
|
-
}
|
|
4074
|
-
|
|
4075
|
-
try {
|
|
4076
|
-
var imagePath = NativeIconAPI.getImageForFontSync(fontReference, glyph, size, processedColor);
|
|
4077
|
-
var value = {
|
|
4078
|
-
uri: imagePath,
|
|
4079
|
-
scale: _reactNative.PixelRatio.get()
|
|
4080
|
-
};
|
|
4081
|
-
imageSourceCache.setValue(cacheKey, value);
|
|
4082
|
-
return value;
|
|
4083
|
-
} catch (error) {
|
|
4084
|
-
imageSourceCache.setError(cacheKey, error);
|
|
4085
|
-
throw error;
|
|
4086
|
-
}
|
|
4087
|
-
}
|
|
4088
|
-
|
|
4089
|
-
function getImageSource(name) {
|
|
4090
|
-
var size,
|
|
4091
|
-
color,
|
|
4092
|
-
glyph,
|
|
4093
|
-
processedColor,
|
|
4094
|
-
cacheKey,
|
|
4095
|
-
imagePath,
|
|
4096
|
-
value,
|
|
4097
|
-
_args = arguments;
|
|
4098
|
-
return _regenerator["default"].async(function getImageSource$(_context) {
|
|
4099
|
-
while (1) {
|
|
4100
|
-
switch (_context.prev = _context.next) {
|
|
4101
|
-
case 0:
|
|
4102
|
-
size = _args.length > 1 && _args[1] !== undefined ? _args[1] : DEFAULT_ICON_SIZE;
|
|
4103
|
-
color = _args.length > 2 && _args[2] !== undefined ? _args[2] : DEFAULT_ICON_COLOR;
|
|
4104
|
-
(0, _ensureNativeModuleAvailable["default"])();
|
|
4105
|
-
glyph = resolveGlyph(name);
|
|
4106
|
-
processedColor = (0, _reactNative.processColor)(color);
|
|
4107
|
-
cacheKey = glyph + ":" + size + ":" + processedColor;
|
|
4108
|
-
|
|
4109
|
-
if (!imageSourceCache.has(cacheKey)) {
|
|
4110
|
-
_context.next = 8;
|
|
4111
|
-
break;
|
|
4112
|
-
}
|
|
4113
|
-
|
|
4114
|
-
return _context.abrupt("return", imageSourceCache.get(cacheKey));
|
|
4115
|
-
|
|
4116
|
-
case 8:
|
|
4117
|
-
_context.prev = 8;
|
|
4118
|
-
_context.next = 11;
|
|
4119
|
-
return _regenerator["default"].awrap(NativeIconAPI.getImageForFont(fontReference, glyph, size, processedColor));
|
|
4120
|
-
|
|
4121
|
-
case 11:
|
|
4122
|
-
imagePath = _context.sent;
|
|
4123
|
-
value = {
|
|
4124
|
-
uri: imagePath,
|
|
4125
|
-
scale: _reactNative.PixelRatio.get()
|
|
4126
|
-
};
|
|
4127
|
-
imageSourceCache.setValue(cacheKey, value);
|
|
4128
|
-
return _context.abrupt("return", value);
|
|
4129
|
-
|
|
4130
|
-
case 17:
|
|
4131
|
-
_context.prev = 17;
|
|
4132
|
-
_context.t0 = _context["catch"](8);
|
|
4133
|
-
imageSourceCache.setError(cacheKey, _context.t0);
|
|
4134
|
-
throw _context.t0;
|
|
4135
|
-
|
|
4136
|
-
case 21:
|
|
4137
|
-
case "end":
|
|
4138
|
-
return _context.stop();
|
|
4139
|
-
}
|
|
4140
|
-
}
|
|
4141
|
-
}, null, null, [[8, 17]]);
|
|
4142
|
-
}
|
|
4143
|
-
|
|
4144
|
-
function loadFont() {
|
|
4145
|
-
var file,
|
|
4146
|
-
_args2 = arguments;
|
|
4147
|
-
return _regenerator["default"].async(function loadFont$(_context2) {
|
|
4148
|
-
while (1) {
|
|
4149
|
-
switch (_context2.prev = _context2.next) {
|
|
4150
|
-
case 0:
|
|
4151
|
-
file = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : fontFile;
|
|
4152
|
-
|
|
4153
|
-
if (!(_reactNative.Platform.OS === 'ios')) {
|
|
4154
|
-
_context2.next = 7;
|
|
4155
|
-
break;
|
|
4156
|
-
}
|
|
4157
|
-
|
|
4158
|
-
(0, _ensureNativeModuleAvailable["default"])();
|
|
4159
|
-
|
|
4160
|
-
if (file) {
|
|
4161
|
-
_context2.next = 5;
|
|
4162
|
-
break;
|
|
4163
|
-
}
|
|
4164
|
-
|
|
4165
|
-
throw new Error('Unable to load font, because no file was specified. ');
|
|
4166
|
-
|
|
4167
|
-
case 5:
|
|
4168
|
-
_context2.next = 7;
|
|
4169
|
-
return _regenerator["default"].awrap(NativeIconAPI.loadFontWithFileName.apply(NativeIconAPI, (0, _toConsumableArray2["default"])(file.split('.'))));
|
|
4170
|
-
|
|
4171
|
-
case 7:
|
|
4172
|
-
case "end":
|
|
4173
|
-
return _context2.stop();
|
|
4174
|
-
}
|
|
4175
|
-
}
|
|
4176
|
-
});
|
|
4177
|
-
}
|
|
4178
|
-
|
|
4179
|
-
function hasIcon(name) {
|
|
4180
|
-
return Object.prototype.hasOwnProperty.call(glyphMap, name);
|
|
4181
|
-
}
|
|
4182
|
-
|
|
4183
|
-
function getRawGlyphMap() {
|
|
4184
|
-
return glyphMap;
|
|
4185
|
-
}
|
|
4186
|
-
|
|
4187
|
-
function getFontFamily() {
|
|
4188
|
-
return fontReference;
|
|
4189
|
-
}
|
|
4190
|
-
|
|
4191
|
-
Icon.Button = (0, _iconButton["default"])(Icon);
|
|
4192
|
-
Icon.getImageSource = getImageSource;
|
|
4193
|
-
Icon.getImageSourceSync = getImageSourceSync;
|
|
4194
|
-
Icon.loadFont = loadFont;
|
|
4195
|
-
Icon.hasIcon = hasIcon;
|
|
4196
|
-
Icon.getRawGlyphMap = getRawGlyphMap;
|
|
4197
|
-
Icon.getFontFamily = getFontFamily;
|
|
4198
|
-
return Icon;
|
|
4199
|
-
}
|
|
4200
|
-
|
|
4201
|
-
var createMultiStyleIconSet$1 = {};
|
|
4202
|
-
|
|
4203
|
-
function _defineProperty$1(obj, key, value) {
|
|
4204
|
-
if (key in obj) {
|
|
4205
|
-
Object.defineProperty(obj, key, {
|
|
4206
|
-
value: value,
|
|
4207
|
-
enumerable: true,
|
|
4208
|
-
configurable: true,
|
|
4209
|
-
writable: true
|
|
4210
|
-
});
|
|
4211
|
-
} else {
|
|
4212
|
-
obj[key] = value;
|
|
4213
|
-
}
|
|
4214
|
-
|
|
4215
|
-
return obj;
|
|
4216
|
-
}
|
|
4217
|
-
|
|
4218
|
-
var defineProperty = _defineProperty$1;
|
|
4219
|
-
|
|
4220
|
-
var _interopRequireDefault$2 = interopRequireDefault;
|
|
4221
|
-
Object.defineProperty(createMultiStyleIconSet$1, "__esModule", {
|
|
4222
|
-
value: true
|
|
4223
|
-
});
|
|
4224
|
-
|
|
4225
|
-
createMultiStyleIconSet$1["default"] = createMultiStyleIconSet;
|
|
4226
|
-
|
|
4227
|
-
var _classCallCheck2 = _interopRequireDefault$2(classCallCheck);
|
|
4228
|
-
|
|
4229
|
-
var _createClass2 = _interopRequireDefault$2(createClass);
|
|
4230
|
-
|
|
4231
|
-
var _possibleConstructorReturn2 = _interopRequireDefault$2(possibleConstructorReturn);
|
|
4232
|
-
|
|
4233
|
-
var _getPrototypeOf2 = _interopRequireDefault$2(getPrototypeOf);
|
|
4234
|
-
|
|
4235
|
-
var _inherits2 = _interopRequireDefault$2(inherits);
|
|
4236
|
-
|
|
4237
|
-
var _defineProperty2 = _interopRequireDefault$2(defineProperty);
|
|
4238
|
-
|
|
4239
|
-
var _extends2 = _interopRequireDefault$2(_extends_1);
|
|
4240
|
-
|
|
4241
|
-
var _react = _interopRequireWildcard(React__default["default"]);
|
|
4242
|
-
|
|
4243
|
-
var _propTypes = _interopRequireDefault$2(propTypes.exports);
|
|
4244
|
-
|
|
4245
|
-
var _createIconSet$2 = _interopRequireWildcard(createIconSet$1);
|
|
4246
|
-
|
|
4247
|
-
var _jsxFileName = "/home/runner/work/react-native-vector-icons/react-native-vector-icons/lib/create-multi-style-icon-set.js";
|
|
4248
|
-
|
|
4249
|
-
function _getRequireWildcardCache(nodeInterop) {
|
|
4250
|
-
if (typeof WeakMap !== "function") return null;
|
|
4251
|
-
var cacheBabelInterop = new WeakMap();
|
|
4252
|
-
var cacheNodeInterop = new WeakMap();
|
|
4253
|
-
return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) {
|
|
4254
|
-
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
4255
|
-
})(nodeInterop);
|
|
4256
|
-
}
|
|
4257
|
-
|
|
4258
|
-
function _interopRequireWildcard(obj, nodeInterop) {
|
|
4259
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
4260
|
-
return obj;
|
|
4261
|
-
}
|
|
4262
|
-
|
|
4263
|
-
if (obj === null || _typeof$2(obj) !== "object" && typeof obj !== "function") {
|
|
4264
|
-
return {
|
|
4265
|
-
"default": obj
|
|
4266
|
-
};
|
|
4267
|
-
}
|
|
4268
|
-
|
|
4269
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
4270
|
-
|
|
4271
|
-
if (cache && cache.has(obj)) {
|
|
4272
|
-
return cache.get(obj);
|
|
4273
|
-
}
|
|
4274
|
-
|
|
4275
|
-
var newObj = {};
|
|
4276
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
4277
|
-
|
|
4278
|
-
for (var key in obj) {
|
|
4279
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
4280
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
4281
|
-
|
|
4282
|
-
if (desc && (desc.get || desc.set)) {
|
|
4283
|
-
Object.defineProperty(newObj, key, desc);
|
|
4284
|
-
} else {
|
|
4285
|
-
newObj[key] = obj[key];
|
|
4286
|
-
}
|
|
4287
|
-
}
|
|
4288
|
-
}
|
|
4289
|
-
|
|
4290
|
-
newObj["default"] = obj;
|
|
4291
|
-
|
|
4292
|
-
if (cache) {
|
|
4293
|
-
cache.set(obj, newObj);
|
|
4294
|
-
}
|
|
4295
|
-
|
|
4296
|
-
return newObj;
|
|
4297
|
-
}
|
|
4298
|
-
|
|
4299
|
-
function createMultiStyleIconSet(styles) {
|
|
4300
|
-
var optionsInput = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
4301
|
-
var styleNames = Object.keys(styles);
|
|
4302
|
-
|
|
4303
|
-
if (styleNames.length === 0) {
|
|
4304
|
-
throw new Error('You need to add at least one style');
|
|
4305
|
-
}
|
|
4306
|
-
|
|
4307
|
-
var options = (0, _extends2["default"])({
|
|
4308
|
-
defaultStyle: styleNames[0],
|
|
4309
|
-
fallbackFamily: function fallbackFamily() {
|
|
4310
|
-
return styleNames[0];
|
|
4311
|
-
},
|
|
4312
|
-
glyphValidator: function glyphValidator() {
|
|
4313
|
-
return true;
|
|
4314
|
-
}
|
|
4315
|
-
}, optionsInput);
|
|
4316
|
-
var iconSets = styleNames.reduce(function (acc, name) {
|
|
4317
|
-
var style = styles[name];
|
|
4318
|
-
acc[name] = (0, _createIconSet$2["default"])(style.glyphMap || {}, style.fontFamily || '', style.fontFile || '', style.fontStyle || {});
|
|
4319
|
-
return acc;
|
|
4320
|
-
}, {});
|
|
4321
|
-
|
|
4322
|
-
function styleFromProps(props) {
|
|
4323
|
-
return Object.keys(props).reduce(function (result, propName) {
|
|
4324
|
-
return styleNames.indexOf(propName) !== -1 && props[propName] === true ? propName : result;
|
|
4325
|
-
}, options.defaultStyle);
|
|
4326
|
-
}
|
|
4327
|
-
|
|
4328
|
-
function getIconSetForProps(props) {
|
|
4329
|
-
var name = props.name;
|
|
4330
|
-
var style = styleFromProps(props);
|
|
4331
|
-
if (options.glyphValidator(name, style)) return iconSets[style];
|
|
4332
|
-
var family = options.fallbackFamily(name);
|
|
4333
|
-
|
|
4334
|
-
if (styleNames.indexOf(family) === -1) {
|
|
4335
|
-
return options.defaultStyle;
|
|
4336
|
-
}
|
|
4337
|
-
|
|
4338
|
-
return iconSets[family];
|
|
4339
|
-
}
|
|
4340
|
-
|
|
4341
|
-
function selectIconClass(iconSet, iconClass) {
|
|
4342
|
-
return iconClass.length > 0 ? iconSet[iconClass] : iconSet;
|
|
4343
|
-
}
|
|
4344
|
-
|
|
4345
|
-
function reduceProps(props) {
|
|
4346
|
-
return Object.keys(props).reduce(function (acc, prop) {
|
|
4347
|
-
if (styleNames.indexOf(prop) === -1) {
|
|
4348
|
-
acc[prop] = props[prop];
|
|
4349
|
-
}
|
|
4350
|
-
|
|
4351
|
-
return acc;
|
|
4352
|
-
}, {});
|
|
4353
|
-
}
|
|
4354
|
-
|
|
4355
|
-
function getStyledIconSet(style) {
|
|
4356
|
-
var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
4357
|
-
|
|
4358
|
-
if (styleNames.indexOf(style) === -1) {
|
|
4359
|
-
return iconSets[options.defaultStyle];
|
|
4360
|
-
}
|
|
4361
|
-
|
|
4362
|
-
return !name ? iconSets[styleFromProps((0, _defineProperty2["default"])({}, style, true))] : getIconSetForProps((0, _defineProperty2["default"])({
|
|
4363
|
-
name: name
|
|
4364
|
-
}, style, true));
|
|
4365
|
-
}
|
|
4366
|
-
|
|
4367
|
-
function getImageSource(name) {
|
|
4368
|
-
var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _createIconSet$2.DEFAULT_ICON_SIZE;
|
|
4369
|
-
var color = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _createIconSet$2.DEFAULT_ICON_COLOR;
|
|
4370
|
-
var style = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : options.defaultStyle;
|
|
4371
|
-
return getStyledIconSet(style, name).getImageSource(name, size, color);
|
|
4372
|
-
}
|
|
4373
|
-
|
|
4374
|
-
function getFontFamily() {
|
|
4375
|
-
var style = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : options.defaultStyle;
|
|
4376
|
-
return getStyledIconSet(style).getFontFamily();
|
|
4377
|
-
}
|
|
4378
|
-
|
|
4379
|
-
function getRawGlyphMap() {
|
|
4380
|
-
var style = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : options.defaultStyle;
|
|
4381
|
-
return getStyledIconSet(style).getRawGlyphMap();
|
|
4382
|
-
}
|
|
4383
|
-
|
|
4384
|
-
function hasIcon(name) {
|
|
4385
|
-
var style = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : options.defaultStyle;
|
|
4386
|
-
return options.glyphValidator(name, style);
|
|
4387
|
-
}
|
|
4388
|
-
|
|
4389
|
-
function createStyledIconClass() {
|
|
4390
|
-
var selectClass = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
4391
|
-
|
|
4392
|
-
var IconClass = function (_PureComponent) {
|
|
4393
|
-
(0, _inherits2["default"])(IconClass, _PureComponent);
|
|
4394
|
-
|
|
4395
|
-
function IconClass() {
|
|
4396
|
-
(0, _classCallCheck2["default"])(this, IconClass);
|
|
4397
|
-
return (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(IconClass).apply(this, arguments));
|
|
4398
|
-
}
|
|
4399
|
-
|
|
4400
|
-
(0, _createClass2["default"])(IconClass, [{
|
|
4401
|
-
key: "render",
|
|
4402
|
-
value: function render() {
|
|
4403
|
-
var selectedIconSet = getIconSetForProps(this.props);
|
|
4404
|
-
var SelectedIconClass = selectIconClass(selectedIconSet, selectClass);
|
|
4405
|
-
var props = reduceProps(this.props);
|
|
4406
|
-
return _react["default"].createElement(SelectedIconClass, (0, _extends2["default"])({}, props, {
|
|
4407
|
-
__self: this,
|
|
4408
|
-
__source: {
|
|
4409
|
-
fileName: _jsxFileName,
|
|
4410
|
-
lineNumber: 123
|
|
4411
|
-
}
|
|
4412
|
-
}));
|
|
4413
|
-
}
|
|
4414
|
-
}]);
|
|
4415
|
-
return IconClass;
|
|
4416
|
-
}(_react.PureComponent);
|
|
4417
|
-
|
|
4418
|
-
IconClass.propTypes = styleNames.reduce(function (acc, name) {
|
|
4419
|
-
acc[name] = _propTypes["default"].bool;
|
|
4420
|
-
return acc;
|
|
4421
|
-
}, {});
|
|
4422
|
-
IconClass.defaultProps = styleNames.reduce(function (acc, name) {
|
|
4423
|
-
acc[name] = false;
|
|
4424
|
-
return acc;
|
|
4425
|
-
}, {});
|
|
4426
|
-
return IconClass;
|
|
4427
|
-
}
|
|
4428
|
-
|
|
4429
|
-
var Icon = createStyledIconClass();
|
|
4430
|
-
Icon.Button = createStyledIconClass('Button');
|
|
4431
|
-
Icon.getStyledIconSet = getStyledIconSet;
|
|
4432
|
-
Icon.getImageSource = getImageSource;
|
|
4433
|
-
Icon.getFontFamily = getFontFamily;
|
|
4434
|
-
Icon.getRawGlyphMap = getRawGlyphMap;
|
|
4435
|
-
Icon.hasIcon = hasIcon;
|
|
4436
|
-
return Icon;
|
|
4437
|
-
}
|
|
4438
|
-
|
|
4439
|
-
var createIconSetFromFontello$1 = {};
|
|
4440
|
-
|
|
4441
|
-
var _interopRequireDefault$1 = interopRequireDefault;
|
|
4442
|
-
Object.defineProperty(createIconSetFromFontello$1, "__esModule", {
|
|
4443
|
-
value: true
|
|
4444
|
-
});
|
|
4445
|
-
|
|
4446
|
-
createIconSetFromFontello$1["default"] = createIconSetFromFontello;
|
|
4447
|
-
|
|
4448
|
-
var _createIconSet$1 = _interopRequireDefault$1(createIconSet$1);
|
|
4449
|
-
|
|
4450
|
-
function createIconSetFromFontello(config, fontFamilyArg, fontFile) {
|
|
4451
|
-
var glyphMap = {};
|
|
4452
|
-
config.glyphs.forEach(function (glyph) {
|
|
4453
|
-
glyphMap[glyph.css] = glyph.code;
|
|
4454
|
-
});
|
|
4455
|
-
var fontFamily = fontFamilyArg || config.name || 'fontello';
|
|
4456
|
-
return (0, _createIconSet$1["default"])(glyphMap, fontFamily, fontFile || fontFamily + ".ttf");
|
|
4457
|
-
}
|
|
4458
|
-
|
|
4459
|
-
var createIconSetFromIcomoon = {};
|
|
4460
|
-
|
|
4461
|
-
var _interopRequireDefault = interopRequireDefault;
|
|
4462
|
-
Object.defineProperty(createIconSetFromIcomoon, "__esModule", {
|
|
4463
|
-
value: true
|
|
4464
|
-
});
|
|
2290
|
+
flatListHorizontalPadding: theme.space.small,
|
|
2291
|
+
itemHorizontalPadding: theme.space.small,
|
|
2292
|
+
itemVerticalPadding: theme.space.small,
|
|
2293
|
+
outlineHorizontalPadding: theme.space.small,
|
|
2294
|
+
outlineVerticalPadding: theme.space.xsmall
|
|
2295
|
+
};
|
|
2296
|
+
var radii = {
|
|
2297
|
+
outline: theme.radii.medium
|
|
2298
|
+
};
|
|
2299
|
+
var borderWidths = {
|
|
2300
|
+
headerBottom: theme.borderWidths.base
|
|
2301
|
+
};
|
|
2302
|
+
var sizes = {
|
|
2303
|
+
indicator: theme.space.xxsmall
|
|
2304
|
+
};
|
|
2305
|
+
return {
|
|
2306
|
+
borderWidths: borderWidths,
|
|
2307
|
+
colors: colors,
|
|
2308
|
+
space: space,
|
|
2309
|
+
radii: radii,
|
|
2310
|
+
sizes: sizes
|
|
2311
|
+
};
|
|
2312
|
+
};
|
|
4465
2313
|
|
|
4466
|
-
|
|
2314
|
+
var getTagTheme = function getTagTheme(theme) {
|
|
2315
|
+
var borderWidths = {
|
|
2316
|
+
"default": theme.borderWidths.base
|
|
2317
|
+
};
|
|
2318
|
+
var colors = {
|
|
2319
|
+
danger: theme.colors.danger,
|
|
2320
|
+
dangerBackground: theme.colors.dangerBackground,
|
|
2321
|
+
info: theme.colors.info,
|
|
2322
|
+
infoBackground: theme.colors.infoBackground,
|
|
2323
|
+
success: theme.colors.successDark,
|
|
2324
|
+
successBackground: theme.colors.successBackground,
|
|
2325
|
+
warning: theme.colors.warningDark,
|
|
2326
|
+
warningBackground: theme.colors.warningBackground
|
|
2327
|
+
};
|
|
2328
|
+
var fonts = {
|
|
2329
|
+
"default": theme.fonts.semiBold
|
|
2330
|
+
};
|
|
2331
|
+
var fontSizes = {
|
|
2332
|
+
"default": theme.fontSizes.small
|
|
2333
|
+
};
|
|
2334
|
+
var space = {
|
|
2335
|
+
horizontalPadding: theme.space.small,
|
|
2336
|
+
verticalPadding: theme.space.xxsmall
|
|
2337
|
+
};
|
|
2338
|
+
var radii = {
|
|
2339
|
+
"default": theme.radii.base
|
|
2340
|
+
};
|
|
2341
|
+
return {
|
|
2342
|
+
borderWidths: borderWidths,
|
|
2343
|
+
colors: colors,
|
|
2344
|
+
fonts: fonts,
|
|
2345
|
+
fontSizes: fontSizes,
|
|
2346
|
+
space: space,
|
|
2347
|
+
radii: radii
|
|
2348
|
+
};
|
|
2349
|
+
};
|
|
4467
2350
|
|
|
4468
|
-
var
|
|
2351
|
+
var getTextInputTheme = function getTextInputTheme(theme) {
|
|
2352
|
+
var colors = {
|
|
2353
|
+
labelBackground: theme.colors.platformBackground,
|
|
2354
|
+
border: theme.colors.text
|
|
2355
|
+
};
|
|
2356
|
+
var space = {
|
|
2357
|
+
containerPadding: theme.space.medium,
|
|
2358
|
+
labelLeft: theme.space.medium,
|
|
2359
|
+
labelTop: theme.lineHeights.small / -2,
|
|
2360
|
+
labelHorizontalPadding: theme.space.xsmall,
|
|
2361
|
+
inputHorizontalMargin: theme.space.small
|
|
2362
|
+
};
|
|
2363
|
+
var fontSizes = {
|
|
2364
|
+
text: theme.fontSizes.large
|
|
2365
|
+
};
|
|
2366
|
+
var borderWidths = {
|
|
2367
|
+
container: theme.borderWidths.base
|
|
2368
|
+
};
|
|
2369
|
+
var radii = {
|
|
2370
|
+
container: theme.radii.medium
|
|
2371
|
+
};
|
|
2372
|
+
return {
|
|
2373
|
+
colors: colors,
|
|
2374
|
+
space: space,
|
|
2375
|
+
fontSizes: fontSizes,
|
|
2376
|
+
borderWidths: borderWidths,
|
|
2377
|
+
radii: radii
|
|
2378
|
+
};
|
|
2379
|
+
};
|
|
4469
2380
|
|
|
4470
|
-
function
|
|
4471
|
-
var
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
2381
|
+
var getTypographyTheme = function getTypographyTheme(theme) {
|
|
2382
|
+
var colors = {
|
|
2383
|
+
body: theme.colors.text,
|
|
2384
|
+
subdued: theme.colors.disabledText,
|
|
2385
|
+
primary: theme.colors.primary
|
|
2386
|
+
};
|
|
2387
|
+
var fonts = {
|
|
2388
|
+
light: theme.fonts.light,
|
|
2389
|
+
regular: theme.fonts.regular,
|
|
2390
|
+
semiBold: theme.fonts.semiBold
|
|
2391
|
+
};
|
|
2392
|
+
var fontSizes = {
|
|
2393
|
+
small: theme.fontSizes.small,
|
|
2394
|
+
medium: theme.fontSizes.medium,
|
|
2395
|
+
large: theme.fontSizes.large,
|
|
2396
|
+
xlarge: theme.fontSizes.xlarge
|
|
2397
|
+
};
|
|
2398
|
+
var lineHeights = {
|
|
2399
|
+
small: theme.lineHeights.small,
|
|
2400
|
+
medium: theme.lineHeights.medium,
|
|
2401
|
+
large: theme.lineHeights.large,
|
|
2402
|
+
xlarge: theme.lineHeights.xlarge
|
|
2403
|
+
};
|
|
2404
|
+
return {
|
|
2405
|
+
colors: colors,
|
|
2406
|
+
fonts: fonts,
|
|
2407
|
+
fontSizes: fontSizes,
|
|
2408
|
+
lineHeights: lineHeights
|
|
2409
|
+
};
|
|
2410
|
+
};
|
|
4480
2411
|
|
|
4481
|
-
|
|
4482
|
-
var
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
})
|
|
4486
|
-
|
|
4487
|
-
|
|
4488
|
-
|
|
4489
|
-
|
|
4490
|
-
|
|
4491
|
-
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
|
|
4495
|
-
|
|
4496
|
-
|
|
4497
|
-
|
|
4498
|
-
|
|
4499
|
-
|
|
4500
|
-
|
|
4501
|
-
|
|
4502
|
-
|
|
4503
|
-
|
|
4504
|
-
|
|
4505
|
-
|
|
4506
|
-
|
|
4507
|
-
|
|
2412
|
+
var getTheme = function getTheme() {
|
|
2413
|
+
var scale = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : scale$1;
|
|
2414
|
+
var systemPallete = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : systemPalette;
|
|
2415
|
+
var globalTheme = getGlobalTheme(scale, systemPallete);
|
|
2416
|
+
return _objectSpread2(_objectSpread2({}, globalTheme), {}, {
|
|
2417
|
+
__hd__: {
|
|
2418
|
+
avatar: getAvatarTheme(globalTheme),
|
|
2419
|
+
alert: getAlertTheme(globalTheme),
|
|
2420
|
+
badge: getBadgeTheme(globalTheme),
|
|
2421
|
+
bottomNavigation: getBottomNavigationTheme(globalTheme),
|
|
2422
|
+
bottomSheet: getBottomSheetTheme(globalTheme),
|
|
2423
|
+
button: getButtonTheme(globalTheme),
|
|
2424
|
+
card: getCardTheme(globalTheme),
|
|
2425
|
+
contentNavigator: getContentNavigatorTheme(globalTheme),
|
|
2426
|
+
divider: getDividerTheme(globalTheme),
|
|
2427
|
+
drawer: getDrawerTheme(globalTheme),
|
|
2428
|
+
fab: getFABTheme(globalTheme),
|
|
2429
|
+
icon: getIconTheme(globalTheme),
|
|
2430
|
+
progress: getProgressTheme(globalTheme),
|
|
2431
|
+
radio: getRadioTheme(globalTheme),
|
|
2432
|
+
sectionHeading: getSectionHeadingTheme(globalTheme),
|
|
2433
|
+
select: getSelectTheme(globalTheme),
|
|
2434
|
+
spinner: getSpinnerTheme(globalTheme),
|
|
2435
|
+
"switch": getSwitchTheme(globalTheme),
|
|
2436
|
+
tabs: getTabsTheme(globalTheme),
|
|
2437
|
+
tag: getTagTheme(globalTheme),
|
|
2438
|
+
textInput: getTextInputTheme(globalTheme),
|
|
2439
|
+
typography: getTypographyTheme(globalTheme)
|
|
4508
2440
|
}
|
|
4509
2441
|
});
|
|
2442
|
+
};
|
|
4510
2443
|
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
var _createIconSetFromFontello = _interopRequireDefault(createIconSetFromFontello$1);
|
|
2444
|
+
var theme = getTheme();
|
|
2445
|
+
var ThemeProvider = ThemeProvider$1;
|
|
2446
|
+
var useTheme = useTheme$1;
|
|
4516
2447
|
|
|
4517
|
-
|
|
4518
|
-
|
|
2448
|
+
function getDefaultExportFromCjs (x) {
|
|
2449
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
2450
|
+
}
|
|
4519
2451
|
|
|
4520
2452
|
var cssToReactNative = {};
|
|
4521
2453
|
|
|
@@ -4996,7 +2928,7 @@ var camelize = function camelize(obj) {
|
|
|
4996
2928
|
};
|
|
4997
2929
|
|
|
4998
2930
|
function walk(obj) {
|
|
4999
|
-
if (!obj || _typeof
|
|
2931
|
+
if (!obj || _typeof(obj) !== 'object') return obj;
|
|
5000
2932
|
if (isDate(obj) || isRegex(obj)) return obj;
|
|
5001
2933
|
if (isArray(obj)) return map(obj, walk);
|
|
5002
2934
|
return reduce(objectKeys(obj), function (acc, key) {
|
|
@@ -5361,7 +3293,7 @@ var cssColorKeywords = require$$0;
|
|
|
5361
3293
|
});
|
|
5362
3294
|
|
|
5363
3295
|
function _interopDefault(ex) {
|
|
5364
|
-
return ex && _typeof
|
|
3296
|
+
return ex && _typeof(ex) === 'object' && 'default' in ex ? ex['default'] : ex;
|
|
5365
3297
|
}
|
|
5366
3298
|
|
|
5367
3299
|
var parse = lib;
|
|
@@ -6216,7 +4148,7 @@ var buffer = '';
|
|
|
6216
4148
|
var lastType;
|
|
6217
4149
|
|
|
6218
4150
|
function handleInterpolation(interpolation, i, arr) {
|
|
6219
|
-
var type = _typeof
|
|
4151
|
+
var type = _typeof(interpolation);
|
|
6220
4152
|
|
|
6221
4153
|
if (type === 'string') {
|
|
6222
4154
|
// strip comments
|
|
@@ -6431,14 +4363,14 @@ var getDisplayName = function getDisplayName(primitive) {
|
|
|
6431
4363
|
* a function that returns a styled component which render styles in React Native
|
|
6432
4364
|
*/
|
|
6433
4365
|
|
|
6434
|
-
var styled = createStyled(
|
|
4366
|
+
var styled = createStyled(reactNative.StyleSheet);
|
|
6435
4367
|
var components = ['ActivityIndicator', 'Button', 'DatePickerIOS', 'DrawerLayoutAndroid', 'FlatList', 'Image', 'ImageBackground', 'KeyboardAvoidingView', 'ListView', 'Modal', 'NavigatorIOS', 'Picker', 'PickerIOS', 'Pressable', 'ProgressBarAndroid', 'ProgressViewIOS', 'RecyclerViewBackedScrollView', 'RefreshControl', 'SafeAreaView', 'ScrollView', 'SectionList', 'SegmentedControlIOS', 'Slider', 'SnapshotViewIOS', 'StatusBar', 'SwipeableListView', 'Switch', 'SwitchIOS', 'TabBarIOS', 'Text', 'TextInput', 'ToolbarAndroid', 'TouchableHighlight', 'TouchableNativeFeedback', 'TouchableOpacity', 'TouchableWithoutFeedback', 'View', 'ViewPagerAndroid'];
|
|
6436
4368
|
var index$2 = components.reduce(function (acc, comp) {
|
|
6437
4369
|
return Object.defineProperty(acc, comp, {
|
|
6438
4370
|
enumerable: true,
|
|
6439
4371
|
configurable: false,
|
|
6440
4372
|
get: function get() {
|
|
6441
|
-
return styled(
|
|
4373
|
+
return styled(reactNative__namespace[comp]);
|
|
6442
4374
|
}
|
|
6443
4375
|
});
|
|
6444
4376
|
}, styled);
|
|
@@ -14362,7 +12294,7 @@ var heroIconConfig = {
|
|
|
14362
12294
|
preferences: preferences
|
|
14363
12295
|
};
|
|
14364
12296
|
|
|
14365
|
-
var HeroIcon =
|
|
12297
|
+
var HeroIcon = reactNativeVectorIcons.createIconSetFromIcoMoon(heroIconConfig, 'hero-icons', 'hero-icons.ttf');
|
|
14366
12298
|
var COLOR_INTENTS = {
|
|
14367
12299
|
text: 'text',
|
|
14368
12300
|
primary: 'primary',
|
|
@@ -14404,7 +12336,7 @@ var FONTWEIGHT_MAP = {
|
|
|
14404
12336
|
regular: 'regular',
|
|
14405
12337
|
'semi-bold': 'semiBold'
|
|
14406
12338
|
};
|
|
14407
|
-
var StyledText$3 = index$2(
|
|
12339
|
+
var StyledText$3 = index$2(reactNative.Text)(function (_ref) {
|
|
14408
12340
|
var themeFontSize = _ref.themeFontSize,
|
|
14409
12341
|
themeFontWeight = _ref.themeFontWeight,
|
|
14410
12342
|
themeIntent = _ref.themeIntent,
|
|
@@ -14430,9 +12362,9 @@ var Text = function Text(_ref) {
|
|
|
14430
12362
|
fontWeight = _ref$fontWeight === void 0 ? 'regular' : _ref$fontWeight,
|
|
14431
12363
|
_ref$intent = _ref.intent,
|
|
14432
12364
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
14433
|
-
nativeProps = _objectWithoutProperties
|
|
12365
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$c);
|
|
14434
12366
|
|
|
14435
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledText$3, _extends$
|
|
12367
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledText$3, _extends$1({}, nativeProps, {
|
|
14436
12368
|
themeFontSize: fontSize,
|
|
14437
12369
|
themeFontWeight: fontWeight,
|
|
14438
12370
|
themeIntent: intent
|
|
@@ -14443,7 +12375,7 @@ var Typography = {
|
|
|
14443
12375
|
Text: Text
|
|
14444
12376
|
};
|
|
14445
12377
|
|
|
14446
|
-
var Container$1 = index$2(
|
|
12378
|
+
var Container$1 = index$2(reactNative.View)(function (_ref) {
|
|
14447
12379
|
var theme = _ref.theme,
|
|
14448
12380
|
_ref$themeVariant = _ref.themeVariant,
|
|
14449
12381
|
themeVariant = _ref$themeVariant === void 0 ? 'default' : _ref$themeVariant,
|
|
@@ -14455,21 +12387,21 @@ var Container$1 = index$2(ReactNative.View)(function (_ref) {
|
|
|
14455
12387
|
flexDirection: 'row'
|
|
14456
12388
|
};
|
|
14457
12389
|
});
|
|
14458
|
-
var IconContainer = index$2(
|
|
12390
|
+
var IconContainer = index$2(reactNative.View)(function (_ref2) {
|
|
14459
12391
|
var theme = _ref2.theme;
|
|
14460
12392
|
return {
|
|
14461
12393
|
alignItems: 'center',
|
|
14462
12394
|
paddingLeft: theme.__hd__.alert.space.padding
|
|
14463
12395
|
};
|
|
14464
12396
|
});
|
|
14465
|
-
var TextContainer = index$2(
|
|
12397
|
+
var TextContainer = index$2(reactNative.View)(function (_ref3) {
|
|
14466
12398
|
var theme = _ref3.theme;
|
|
14467
12399
|
return {
|
|
14468
12400
|
paddingHorizontal: theme.__hd__.alert.space.padding,
|
|
14469
12401
|
flex: 1
|
|
14470
12402
|
};
|
|
14471
12403
|
});
|
|
14472
|
-
var ContentContainer = index$2(
|
|
12404
|
+
var ContentContainer = index$2(reactNative.View)(function (_ref4) {
|
|
14473
12405
|
var theme = _ref4.theme,
|
|
14474
12406
|
showDivider = _ref4.showDivider;
|
|
14475
12407
|
return {
|
|
@@ -14480,7 +12412,7 @@ var ContentContainer = index$2(ReactNative.View)(function (_ref4) {
|
|
|
14480
12412
|
flexDirection: 'row'
|
|
14481
12413
|
};
|
|
14482
12414
|
});
|
|
14483
|
-
var CTAWrapper = index$2(
|
|
12415
|
+
var CTAWrapper = index$2(reactNative.TouchableOpacity)(function (_ref5) {
|
|
14484
12416
|
var theme = _ref5.theme;
|
|
14485
12417
|
return {
|
|
14486
12418
|
paddingHorizontal: theme.__hd__.alert.space.padding,
|
|
@@ -14538,7 +12470,7 @@ var Alert = function Alert(_ref) {
|
|
|
14538
12470
|
})) : null);
|
|
14539
12471
|
};
|
|
14540
12472
|
|
|
14541
|
-
var StyledPressable = index$2(
|
|
12473
|
+
var StyledPressable = index$2(reactNative.TouchableOpacity)(function (_ref) {
|
|
14542
12474
|
var themeSize = _ref.themeSize,
|
|
14543
12475
|
themeIntent = _ref.themeIntent,
|
|
14544
12476
|
theme = _ref.theme;
|
|
@@ -14551,7 +12483,7 @@ var StyledPressable = index$2(ReactNative.TouchableOpacity)(function (_ref) {
|
|
|
14551
12483
|
overflow: 'hidden'
|
|
14552
12484
|
};
|
|
14553
12485
|
});
|
|
14554
|
-
var StyledView$3 = index$2(
|
|
12486
|
+
var StyledView$3 = index$2(reactNative.View)(function (_ref2) {
|
|
14555
12487
|
var themeSize = _ref2.themeSize,
|
|
14556
12488
|
themeIntent = _ref2.themeIntent,
|
|
14557
12489
|
theme = _ref2.theme;
|
|
@@ -14564,7 +12496,7 @@ var StyledView$3 = index$2(ReactNative.View)(function (_ref2) {
|
|
|
14564
12496
|
overflow: 'hidden'
|
|
14565
12497
|
};
|
|
14566
12498
|
});
|
|
14567
|
-
var StyledTextWrapper = index$2(
|
|
12499
|
+
var StyledTextWrapper = index$2(reactNative.View)(function () {
|
|
14568
12500
|
return {
|
|
14569
12501
|
alignItems: 'center',
|
|
14570
12502
|
justifyContent: 'center',
|
|
@@ -14573,7 +12505,7 @@ var StyledTextWrapper = index$2(ReactNative.View)(function () {
|
|
|
14573
12505
|
height: '100%'
|
|
14574
12506
|
};
|
|
14575
12507
|
});
|
|
14576
|
-
var StyledText$2 = index$2(
|
|
12508
|
+
var StyledText$2 = index$2(reactNative.Text)(function (_ref3) {
|
|
14577
12509
|
var themeSize = _ref3.themeSize,
|
|
14578
12510
|
themeIntent = _ref3.themeIntent,
|
|
14579
12511
|
theme = _ref3.theme;
|
|
@@ -14583,7 +12515,7 @@ var StyledText$2 = index$2(ReactNative.Text)(function (_ref3) {
|
|
|
14583
12515
|
overflow: 'hidden'
|
|
14584
12516
|
};
|
|
14585
12517
|
});
|
|
14586
|
-
var StyledImage = index$2(
|
|
12518
|
+
var StyledImage = index$2(reactNative.Image)(function (_ref4) {
|
|
14587
12519
|
var themeSize = _ref4.themeSize,
|
|
14588
12520
|
theme = _ref4.theme;
|
|
14589
12521
|
return {
|
|
@@ -14619,7 +12551,7 @@ var Avatar = function Avatar(_ref) {
|
|
|
14619
12551
|
})) : null;
|
|
14620
12552
|
};
|
|
14621
12553
|
|
|
14622
|
-
var StyledView$2 = index$2(
|
|
12554
|
+
var StyledView$2 = index$2(reactNative.Animated.View)(function (_ref) {
|
|
14623
12555
|
var themeIntent = _ref.themeIntent,
|
|
14624
12556
|
themePadding = _ref.themePadding,
|
|
14625
12557
|
theme = _ref.theme;
|
|
@@ -14633,7 +12565,7 @@ var StyledView$2 = index$2(ReactNative.Animated.View)(function (_ref) {
|
|
|
14633
12565
|
paddingHorizontal: themePadding === 'wideContent' ? theme.__hd__.badge.space.horizontalPadding : undefined
|
|
14634
12566
|
};
|
|
14635
12567
|
});
|
|
14636
|
-
var StyledText$1 = index$2(
|
|
12568
|
+
var StyledText$1 = index$2(reactNative.Text)(function (_ref2) {
|
|
14637
12569
|
var theme = _ref2.theme;
|
|
14638
12570
|
return {
|
|
14639
12571
|
fontFamily: theme.__hd__.badge.fonts["default"],
|
|
@@ -14644,7 +12576,7 @@ var StyledText$1 = index$2(ReactNative.Text)(function (_ref2) {
|
|
|
14644
12576
|
textAlign: 'center'
|
|
14645
12577
|
};
|
|
14646
12578
|
});
|
|
14647
|
-
var StyledStatus = index$2(
|
|
12579
|
+
var StyledStatus = index$2(reactNative.Animated.View)(function (_ref3) {
|
|
14648
12580
|
var themeIntent = _ref3.themeIntent,
|
|
14649
12581
|
theme = _ref3.theme;
|
|
14650
12582
|
return {
|
|
@@ -14668,9 +12600,9 @@ var Status = function Status(_ref) {
|
|
|
14668
12600
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
14669
12601
|
style = _ref.style,
|
|
14670
12602
|
testID = _ref.testID,
|
|
14671
|
-
nativeProps = _objectWithoutProperties
|
|
12603
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$b);
|
|
14672
12604
|
|
|
14673
|
-
var _React$useRef = React__default["default"].useRef(new
|
|
12605
|
+
var _React$useRef = React__default["default"].useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
|
|
14674
12606
|
opacity = _React$useRef.current;
|
|
14675
12607
|
|
|
14676
12608
|
var isFirstRendering = React__default["default"].useRef(true);
|
|
@@ -14681,13 +12613,13 @@ var Status = function Status(_ref) {
|
|
|
14681
12613
|
return;
|
|
14682
12614
|
}
|
|
14683
12615
|
|
|
14684
|
-
|
|
12616
|
+
reactNative.Animated.timing(opacity, {
|
|
14685
12617
|
toValue: visible ? 1 : 0,
|
|
14686
12618
|
duration: 150,
|
|
14687
12619
|
useNativeDriver: true
|
|
14688
12620
|
}).start();
|
|
14689
12621
|
}, [visible, opacity]);
|
|
14690
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
12622
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.View, _extends$1({}, nativeProps, {
|
|
14691
12623
|
style: style,
|
|
14692
12624
|
testID: testID
|
|
14693
12625
|
}), children, /*#__PURE__*/React__default["default"].createElement(StyledStatus, {
|
|
@@ -14721,9 +12653,9 @@ var Badge = function Badge(_ref) {
|
|
|
14721
12653
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
14722
12654
|
style = _ref.style,
|
|
14723
12655
|
testID = _ref.testID,
|
|
14724
|
-
nativeProps = _objectWithoutProperties
|
|
12656
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$a);
|
|
14725
12657
|
|
|
14726
|
-
var _React$useRef = React__default["default"].useRef(new
|
|
12658
|
+
var _React$useRef = React__default["default"].useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
|
|
14727
12659
|
opacity = _React$useRef.current;
|
|
14728
12660
|
|
|
14729
12661
|
var isFirstRendering = React__default["default"].useRef(true);
|
|
@@ -14734,14 +12666,14 @@ var Badge = function Badge(_ref) {
|
|
|
14734
12666
|
return;
|
|
14735
12667
|
}
|
|
14736
12668
|
|
|
14737
|
-
|
|
12669
|
+
reactNative.Animated.timing(opacity, {
|
|
14738
12670
|
toValue: visible ? 1 : 0,
|
|
14739
12671
|
duration: 150,
|
|
14740
12672
|
useNativeDriver: true
|
|
14741
12673
|
}).start();
|
|
14742
12674
|
}, [visible, opacity]);
|
|
14743
12675
|
var content = typeof originalContent === 'number' && originalContent > max ? "".concat(max, "+") : String(originalContent);
|
|
14744
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledView$2, _extends$
|
|
12676
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledView$2, _extends$1({}, nativeProps, {
|
|
14745
12677
|
themeIntent: intent,
|
|
14746
12678
|
themePadding: getPaddingState(content),
|
|
14747
12679
|
style: [{
|
|
@@ -14767,21 +12699,21 @@ var isHeroIcon = function isHeroIcon(x) {
|
|
|
14767
12699
|
return IconList.includes(x);
|
|
14768
12700
|
};
|
|
14769
12701
|
|
|
14770
|
-
var BottomNavigationTab = index$2(
|
|
12702
|
+
var BottomNavigationTab = index$2(reactNative.View)(function (_ref) {
|
|
14771
12703
|
var themeVisibility = _ref.themeVisibility;
|
|
14772
12704
|
return {
|
|
14773
12705
|
flex: 1,
|
|
14774
12706
|
display: themeVisibility === false ? 'none' : 'flex'
|
|
14775
12707
|
};
|
|
14776
12708
|
});
|
|
14777
|
-
var BottomNavigationContainer = index$2(
|
|
12709
|
+
var BottomNavigationContainer = index$2(reactNative.View)({
|
|
14778
12710
|
flex: 1,
|
|
14779
12711
|
overflow: 'hidden'
|
|
14780
12712
|
});
|
|
14781
|
-
var ContentWrapper$2 = index$2(
|
|
12713
|
+
var ContentWrapper$2 = index$2(reactNative.View)({
|
|
14782
12714
|
flex: 1
|
|
14783
12715
|
});
|
|
14784
|
-
var BottomBarWrapper = index$2(
|
|
12716
|
+
var BottomBarWrapper = index$2(reactNative.View)(function (_ref2) {
|
|
14785
12717
|
var themeInsets = _ref2.themeInsets,
|
|
14786
12718
|
theme = _ref2.theme;
|
|
14787
12719
|
return {
|
|
@@ -14797,13 +12729,13 @@ var BottomBarWrapper = index$2(ReactNative.View)(function (_ref2) {
|
|
|
14797
12729
|
elevation: theme.__hd__.bottomNavigation.shadows.elevation
|
|
14798
12730
|
};
|
|
14799
12731
|
});
|
|
14800
|
-
var BottomBar = index$2(
|
|
12732
|
+
var BottomBar = index$2(reactNative.View)({
|
|
14801
12733
|
flex: 1,
|
|
14802
12734
|
flexDirection: 'row',
|
|
14803
12735
|
overflow: 'hidden',
|
|
14804
12736
|
alignItems: 'center'
|
|
14805
12737
|
});
|
|
14806
|
-
var BottomBarItem = index$2(
|
|
12738
|
+
var BottomBarItem = index$2(reactNative.View)({
|
|
14807
12739
|
flex: 1,
|
|
14808
12740
|
alignItems: 'center'
|
|
14809
12741
|
});
|
|
@@ -14814,8 +12746,8 @@ var StyledBottomBarText = index$2(Typography.Text)(function (_ref3) {
|
|
|
14814
12746
|
};
|
|
14815
12747
|
});
|
|
14816
12748
|
|
|
14817
|
-
var isIOS =
|
|
14818
|
-
|
|
12749
|
+
var isIOS = reactNative.Platform.OS === 'ios';
|
|
12750
|
+
reactNative.Platform.OS === 'android';
|
|
14819
12751
|
|
|
14820
12752
|
var _excluded$9 = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
|
|
14821
12753
|
|
|
@@ -14830,7 +12762,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
14830
12762
|
renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
|
|
14831
12763
|
selectedTabKey = _ref.selectedTabKey,
|
|
14832
12764
|
tabs = _ref.tabs,
|
|
14833
|
-
nativeProps = _objectWithoutProperties
|
|
12765
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$9);
|
|
14834
12766
|
|
|
14835
12767
|
var insets = reactNativeSafeAreaContext.useSafeAreaInsets();
|
|
14836
12768
|
/**
|
|
@@ -14845,7 +12777,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
14845
12777
|
if (!loaded.includes(selectedTabKey)) {
|
|
14846
12778
|
// Set the current tab to be loaded if it was not loaded before
|
|
14847
12779
|
setLoaded(function (loadedState) {
|
|
14848
|
-
return [].concat(_toConsumableArray
|
|
12780
|
+
return [].concat(_toConsumableArray(loadedState), [selectedTabKey]);
|
|
14849
12781
|
});
|
|
14850
12782
|
}
|
|
14851
12783
|
|
|
@@ -14885,7 +12817,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
14885
12817
|
testID = tab.testID;
|
|
14886
12818
|
var active = selectedTabKey === key;
|
|
14887
12819
|
var inactiveIcon = getInactiveIcon(icon);
|
|
14888
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
12820
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.TouchableWithoutFeedback, {
|
|
14889
12821
|
key: key,
|
|
14890
12822
|
onPress: function onPress() {
|
|
14891
12823
|
return onTabPress(key);
|
|
@@ -14904,7 +12836,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
14904
12836
|
}))));
|
|
14905
12837
|
};
|
|
14906
12838
|
|
|
14907
|
-
var StyledDivider = index$2(
|
|
12839
|
+
var StyledDivider = index$2(reactNative.View)(function (_ref) {
|
|
14908
12840
|
var themeMarginHorizontal = _ref.themeMarginHorizontal,
|
|
14909
12841
|
themeMarginVertical = _ref.themeMarginVertical,
|
|
14910
12842
|
theme = _ref.theme;
|
|
@@ -14928,9 +12860,9 @@ var Divider = function Divider(_ref) {
|
|
|
14928
12860
|
marginVertical = _ref.marginVertical,
|
|
14929
12861
|
style = _ref.style,
|
|
14930
12862
|
testID = _ref.testID,
|
|
14931
|
-
nativeProps = _objectWithoutProperties
|
|
12863
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$8);
|
|
14932
12864
|
|
|
14933
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledDivider, _extends$
|
|
12865
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledDivider, _extends$1({}, nativeProps, {
|
|
14934
12866
|
themeMarginHorizontal: marginHorizontal,
|
|
14935
12867
|
themeMarginVertical: marginVertical,
|
|
14936
12868
|
style: style,
|
|
@@ -14938,11 +12870,11 @@ var Divider = function Divider(_ref) {
|
|
|
14938
12870
|
}));
|
|
14939
12871
|
};
|
|
14940
12872
|
|
|
14941
|
-
var AnimatedPressable$1 =
|
|
14942
|
-
var StyledWrapper$4 = index$2(
|
|
12873
|
+
var AnimatedPressable$1 = reactNative.Animated.createAnimatedComponent(reactNative.Pressable);
|
|
12874
|
+
var StyledWrapper$4 = index$2(reactNative.View)(_objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
14943
12875
|
flexDirection: 'column-reverse'
|
|
14944
12876
|
}));
|
|
14945
|
-
var StyledBottomSheet = index$2(
|
|
12877
|
+
var StyledBottomSheet = index$2(reactNative.Animated.View)(function (_ref) {
|
|
14946
12878
|
var theme = _ref.theme;
|
|
14947
12879
|
return {
|
|
14948
12880
|
borderTopLeftRadius: theme.__hd__.bottomSheet.radii["default"],
|
|
@@ -14959,19 +12891,19 @@ var StyledBottomSheet = index$2(ReactNative.Animated.View)(function (_ref) {
|
|
|
14959
12891
|
});
|
|
14960
12892
|
var StyledBackdrop$2 = index$2(AnimatedPressable$1)(function (_ref2) {
|
|
14961
12893
|
var theme = _ref2.theme;
|
|
14962
|
-
return _objectSpread2(_objectSpread2({},
|
|
12894
|
+
return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
14963
12895
|
backgroundColor: theme.__hd__.bottomSheet.colors.backdrop,
|
|
14964
12896
|
opacity: 0.48
|
|
14965
12897
|
});
|
|
14966
12898
|
});
|
|
14967
|
-
var StyledHeaderWrapper = index$2(
|
|
12899
|
+
var StyledHeaderWrapper = index$2(reactNative.View)(function (_ref3) {
|
|
14968
12900
|
var theme = _ref3.theme;
|
|
14969
12901
|
return {
|
|
14970
12902
|
minHeight: theme.__hd__.bottomSheet.sizes.sectionHeight,
|
|
14971
12903
|
flexDirection: 'row'
|
|
14972
12904
|
};
|
|
14973
12905
|
});
|
|
14974
|
-
var StyledHeader = index$2(
|
|
12906
|
+
var StyledHeader = index$2(reactNative.View)(function (_ref4) {
|
|
14975
12907
|
var theme = _ref4.theme,
|
|
14976
12908
|
adjacentIcon = _ref4.adjacentIcon;
|
|
14977
12909
|
return {
|
|
@@ -14982,7 +12914,7 @@ var StyledHeader = index$2(ReactNative.View)(function (_ref4) {
|
|
|
14982
12914
|
justifyContent: 'center'
|
|
14983
12915
|
};
|
|
14984
12916
|
});
|
|
14985
|
-
var StyledFooter = index$2(
|
|
12917
|
+
var StyledFooter = index$2(reactNative.View)(function (_ref5) {
|
|
14986
12918
|
var theme = _ref5.theme;
|
|
14987
12919
|
return {
|
|
14988
12920
|
paddingHorizontal: theme.__hd__.bottomSheet.space.horizontalPadding,
|
|
@@ -14993,7 +12925,7 @@ var StyledFooter = index$2(ReactNative.View)(function (_ref5) {
|
|
|
14993
12925
|
flexDirection: 'row'
|
|
14994
12926
|
};
|
|
14995
12927
|
});
|
|
14996
|
-
var StyledIconWrapper$1 = index$2(
|
|
12928
|
+
var StyledIconWrapper$1 = index$2(reactNative.View)(function (_ref6) {
|
|
14997
12929
|
var theme = _ref6.theme;
|
|
14998
12930
|
return {
|
|
14999
12931
|
alignItems: 'center',
|
|
@@ -15005,7 +12937,7 @@ var StyledIconWrapper$1 = index$2(ReactNative.View)(function (_ref6) {
|
|
|
15005
12937
|
var Footer$1 = function Footer(_ref) {
|
|
15006
12938
|
var children = _ref.children,
|
|
15007
12939
|
showDivider = _ref.showDivider;
|
|
15008
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
12940
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.View, null, showDivider ? /*#__PURE__*/React__default["default"].createElement(Divider, null) : null, /*#__PURE__*/React__default["default"].createElement(StyledFooter, null, children));
|
|
15009
12941
|
};
|
|
15010
12942
|
|
|
15011
12943
|
var genLoadingIndicatorStyles = function genLoadingIndicatorStyles(theme, intent) {
|
|
@@ -15014,7 +12946,7 @@ var genLoadingIndicatorStyles = function genLoadingIndicatorStyles(theme, intent
|
|
|
15014
12946
|
};
|
|
15015
12947
|
};
|
|
15016
12948
|
|
|
15017
|
-
var StyledLoadingIndicatorWrapper = index$2(
|
|
12949
|
+
var StyledLoadingIndicatorWrapper = index$2(reactNative.View)(function (_ref) {
|
|
15018
12950
|
var theme = _ref.theme;
|
|
15019
12951
|
return {
|
|
15020
12952
|
flexDirection: 'row',
|
|
@@ -15023,7 +12955,7 @@ var StyledLoadingIndicatorWrapper = index$2(ReactNative.View)(function (_ref) {
|
|
|
15023
12955
|
paddingVertical: theme.space.xxsmall
|
|
15024
12956
|
};
|
|
15025
12957
|
});
|
|
15026
|
-
var StyledLoadingDot = index$2(
|
|
12958
|
+
var StyledLoadingDot = index$2(reactNative.View)(function (_ref2) {
|
|
15027
12959
|
var _ref2$size = _ref2.size,
|
|
15028
12960
|
size = _ref2$size === void 0 ? 12 : _ref2$size,
|
|
15029
12961
|
themeVariant = _ref2.themeVariant,
|
|
@@ -15057,8 +12989,8 @@ var StyledLoadingDot = index$2(ReactNative.View)(function (_ref2) {
|
|
|
15057
12989
|
});
|
|
15058
12990
|
|
|
15059
12991
|
var _excluded$7 = ["count", "size", "testID", "themeVariant"];
|
|
15060
|
-
var AnimatedLoadingIndicatorWrapper =
|
|
15061
|
-
var AnimatedLoadingDot =
|
|
12992
|
+
var AnimatedLoadingIndicatorWrapper = reactNative.Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
|
|
12993
|
+
var AnimatedLoadingDot = reactNative.Animated.createAnimatedComponent(StyledLoadingDot);
|
|
15062
12994
|
|
|
15063
12995
|
var renderDotComponent = function renderDotComponent(_ref) {
|
|
15064
12996
|
var index = _ref.index,
|
|
@@ -15070,8 +13002,8 @@ var renderDotComponent = function renderDotComponent(_ref) {
|
|
|
15070
13002
|
inputRange: [0.0, (index + 0.5) / (count + 1), (index + 1.0) / (count + 1), (index + 1.5) / (count + 1), 1.0],
|
|
15071
13003
|
outputRange: [1.0, 1.36, 1.56, 1.06, 1.0]
|
|
15072
13004
|
});
|
|
15073
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
15074
|
-
style:
|
|
13005
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.Animated.View, {
|
|
13006
|
+
style: reactNative.StyleSheet.flatten([{
|
|
15075
13007
|
transform: [{
|
|
15076
13008
|
scale: interpolatedProgressAnimation
|
|
15077
13009
|
}]
|
|
@@ -15090,14 +13022,14 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
|
|
|
15090
13022
|
size = _ref2$size === void 0 ? 12 : _ref2$size,
|
|
15091
13023
|
testID = _ref2.testID,
|
|
15092
13024
|
themeVariant = _ref2.themeVariant,
|
|
15093
|
-
nativeProps = _objectWithoutProperties
|
|
13025
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$7);
|
|
15094
13026
|
|
|
15095
|
-
var progressAnimation = React.useRef(new
|
|
13027
|
+
var progressAnimation = React.useRef(new reactNative.Animated.Value(0));
|
|
15096
13028
|
React.useEffect(function () {
|
|
15097
|
-
var animation =
|
|
13029
|
+
var animation = reactNative.Animated.loop(reactNative.Animated.timing(progressAnimation.current, {
|
|
15098
13030
|
toValue: 1,
|
|
15099
13031
|
duration: 1200,
|
|
15100
|
-
easing:
|
|
13032
|
+
easing: reactNative.Easing.linear,
|
|
15101
13033
|
useNativeDriver: true
|
|
15102
13034
|
}));
|
|
15103
13035
|
animation.start();
|
|
@@ -15120,7 +13052,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
|
|
|
15120
13052
|
return null;
|
|
15121
13053
|
};
|
|
15122
13054
|
|
|
15123
|
-
return /*#__PURE__*/React__default["default"].createElement(AnimatedLoadingIndicatorWrapper, _extends$
|
|
13055
|
+
return /*#__PURE__*/React__default["default"].createElement(AnimatedLoadingIndicatorWrapper, _extends$1({
|
|
15124
13056
|
testID: testID
|
|
15125
13057
|
}, nativeProps), Array.from(new Array(count), renderLoadingDot, themeVariant));
|
|
15126
13058
|
};
|
|
@@ -15241,7 +13173,7 @@ var genOutlineTextStyles = function genOutlineTextStyles(theme, intent, pressed,
|
|
|
15241
13173
|
}, textColorStyling());
|
|
15242
13174
|
};
|
|
15243
13175
|
|
|
15244
|
-
var StyledButtonContainer = index$2(
|
|
13176
|
+
var StyledButtonContainer = index$2(reactNative.View)(function (_ref) {
|
|
15245
13177
|
var _ref$disabled = _ref.disabled,
|
|
15246
13178
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
15247
13179
|
_ref$pressed = _ref.pressed,
|
|
@@ -15303,7 +13235,7 @@ var StyledButtonText = index$2(Typography.Text)(function (_ref2) {
|
|
|
15303
13235
|
fontFamily: theme.__hd__.button.fonts["default"]
|
|
15304
13236
|
}, themeStyling());
|
|
15305
13237
|
});
|
|
15306
|
-
var StyledButtonIconWrapper = index$2(
|
|
13238
|
+
var StyledButtonIconWrapper = index$2(reactNative.View)(function (_ref3) {
|
|
15307
13239
|
var themePosition = _ref3.themePosition,
|
|
15308
13240
|
theme = _ref3.theme;
|
|
15309
13241
|
|
|
@@ -15389,7 +13321,7 @@ var Button = function Button(_ref) {
|
|
|
15389
13321
|
text = _ref.text,
|
|
15390
13322
|
_ref$variant = _ref.variant,
|
|
15391
13323
|
variant = _ref$variant === void 0 ? 'filled' : _ref$variant;
|
|
15392
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
13324
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.Pressable, {
|
|
15393
13325
|
accessibilityHint: accessibilityHint,
|
|
15394
13326
|
accessibilityLabel: accessibilityLabel,
|
|
15395
13327
|
disabled: disabled || loading,
|
|
@@ -15440,7 +13372,7 @@ var IconButton = function IconButton(_ref) {
|
|
|
15440
13372
|
style = _ref.style,
|
|
15441
13373
|
size = _ref.size,
|
|
15442
13374
|
intent = _ref.intent;
|
|
15443
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
13375
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.TouchableOpacity, {
|
|
15444
13376
|
style: style,
|
|
15445
13377
|
onPress: onPress,
|
|
15446
13378
|
testID: testID,
|
|
@@ -15467,7 +13399,7 @@ var Header = function Header(_ref) {
|
|
|
15467
13399
|
}, /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
|
|
15468
13400
|
fontSize: "large",
|
|
15469
13401
|
fontWeight: "semi-bold"
|
|
15470
|
-
}, content)) : /*#__PURE__*/React__default["default"].createElement(
|
|
13402
|
+
}, content)) : /*#__PURE__*/React__default["default"].createElement(reactNative.View, {
|
|
15471
13403
|
style: {
|
|
15472
13404
|
flex: 1
|
|
15473
13405
|
}
|
|
@@ -15507,7 +13439,7 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
15507
13439
|
visible = _useState4[0],
|
|
15508
13440
|
setVisibility = _useState4[1];
|
|
15509
13441
|
|
|
15510
|
-
var animatedValue = React.useRef(new
|
|
13442
|
+
var animatedValue = React.useRef(new reactNative.Animated.Value(open ? 0 : 1));
|
|
15511
13443
|
React.useEffect(function () {
|
|
15512
13444
|
// Show the modal before the open animation start
|
|
15513
13445
|
if (open && !visible) {
|
|
@@ -15531,9 +13463,9 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
15531
13463
|
}, [open]); // Animation
|
|
15532
13464
|
|
|
15533
13465
|
React.useEffect(function () {
|
|
15534
|
-
var animation =
|
|
13466
|
+
var animation = reactNative.Animated.timing(animatedValue.current, {
|
|
15535
13467
|
toValue: open ? 1 : 0,
|
|
15536
|
-
easing:
|
|
13468
|
+
easing: reactNative.Easing.inOut(reactNative.Easing.cubic),
|
|
15537
13469
|
useNativeDriver: true
|
|
15538
13470
|
});
|
|
15539
13471
|
animation.start();
|
|
@@ -15550,7 +13482,7 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
15550
13482
|
inputRange: [0, 1],
|
|
15551
13483
|
outputRange: [0, 0.48]
|
|
15552
13484
|
}) : 0;
|
|
15553
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
13485
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.Modal, {
|
|
15554
13486
|
visible: visible,
|
|
15555
13487
|
onRequestClose: onRequestClose,
|
|
15556
13488
|
transparent: true,
|
|
@@ -15585,7 +13517,7 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
15585
13517
|
}, footer) : null)));
|
|
15586
13518
|
};
|
|
15587
13519
|
|
|
15588
|
-
var StyledCard = index$2(
|
|
13520
|
+
var StyledCard = index$2(reactNative.View)(function (_ref) {
|
|
15589
13521
|
var themeVariant = _ref.themeVariant,
|
|
15590
13522
|
theme = _ref.theme;
|
|
15591
13523
|
var sharedStyles = {
|
|
@@ -15605,7 +13537,7 @@ var StyledCard = index$2(ReactNative.View)(function (_ref) {
|
|
|
15605
13537
|
return _objectSpread2(_objectSpread2({}, sharedStyles), dataStyles);
|
|
15606
13538
|
}
|
|
15607
13539
|
});
|
|
15608
|
-
var LeftDataCard = index$2(
|
|
13540
|
+
var LeftDataCard = index$2(reactNative.View)(function (_ref2) {
|
|
15609
13541
|
var theme = _ref2.theme;
|
|
15610
13542
|
return {
|
|
15611
13543
|
backgroundColor: theme.__hd__.card.colors.dataCardIndicator,
|
|
@@ -15620,16 +13552,16 @@ var Card = function Card(_ref) {
|
|
|
15620
13552
|
var _ref$variant = _ref.variant,
|
|
15621
13553
|
variant = _ref$variant === void 0 ? 'basic' : _ref$variant,
|
|
15622
13554
|
children = _ref.children,
|
|
15623
|
-
nativeProps = _objectWithoutProperties
|
|
13555
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$6);
|
|
15624
13556
|
|
|
15625
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledCard, _extends$
|
|
13557
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledCard, _extends$1({}, nativeProps, {
|
|
15626
13558
|
themeVariant: variant
|
|
15627
13559
|
}), variant === 'data' && /*#__PURE__*/React__default["default"].createElement(LeftDataCard, {
|
|
15628
13560
|
testID: "data-card-indicator"
|
|
15629
13561
|
}), children);
|
|
15630
13562
|
};
|
|
15631
13563
|
|
|
15632
|
-
var StyledWrapper$3 = index$2(
|
|
13564
|
+
var StyledWrapper$3 = index$2(reactNative.Animated.View)(function () {
|
|
15633
13565
|
return {
|
|
15634
13566
|
margin: 0,
|
|
15635
13567
|
padding: 0,
|
|
@@ -15642,12 +13574,12 @@ var StyledWrapper$3 = index$2(ReactNative.Animated.View)(function () {
|
|
|
15642
13574
|
* to use with Animated.timing
|
|
15643
13575
|
*/
|
|
15644
13576
|
|
|
15645
|
-
var StyledHiddenWrapper = index$2(
|
|
13577
|
+
var StyledHiddenWrapper = index$2(reactNative.View)(function () {
|
|
15646
13578
|
return {
|
|
15647
|
-
height:
|
|
13579
|
+
height: reactNative.Dimensions.get('window').height
|
|
15648
13580
|
};
|
|
15649
13581
|
});
|
|
15650
|
-
var StyledChildWrapper = index$2(
|
|
13582
|
+
var StyledChildWrapper = index$2(reactNative.View)(function () {
|
|
15651
13583
|
return {
|
|
15652
13584
|
margin: 0,
|
|
15653
13585
|
padding: 0
|
|
@@ -15668,7 +13600,7 @@ var Collapse = function Collapse(_ref) {
|
|
|
15668
13600
|
children = _ref.children,
|
|
15669
13601
|
testID = _ref.testID,
|
|
15670
13602
|
style = _ref.style;
|
|
15671
|
-
var collapseAnim = React__default["default"].useRef(new
|
|
13603
|
+
var collapseAnim = React__default["default"].useRef(new reactNative.Animated.Value(0)).current;
|
|
15672
13604
|
|
|
15673
13605
|
var _React$useState = React__default["default"].useState(0),
|
|
15674
13606
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -15678,9 +13610,9 @@ var Collapse = function Collapse(_ref) {
|
|
|
15678
13610
|
var previousOpenState = usePrevious(open);
|
|
15679
13611
|
React.useEffect(function () {
|
|
15680
13612
|
if (open !== previousOpenState && previousOpenState !== undefined) {
|
|
15681
|
-
|
|
13613
|
+
reactNative.Animated.timing(collapseAnim, {
|
|
15682
13614
|
toValue: open ? contentHeight : 0,
|
|
15683
|
-
easing:
|
|
13615
|
+
easing: reactNative.Easing.inOut(reactNative.Easing.ease),
|
|
15684
13616
|
useNativeDriver: false
|
|
15685
13617
|
}).start();
|
|
15686
13618
|
}
|
|
@@ -15701,7 +13633,7 @@ var Collapse = function Collapse(_ref) {
|
|
|
15701
13633
|
}, children)));
|
|
15702
13634
|
};
|
|
15703
13635
|
|
|
15704
|
-
var Wrapper$1 = index$2(
|
|
13636
|
+
var Wrapper$1 = index$2(reactNative.View)(function () {
|
|
15705
13637
|
return {
|
|
15706
13638
|
flex: 1,
|
|
15707
13639
|
flexDirection: 'row',
|
|
@@ -15743,11 +13675,11 @@ function ContentNavigator(_ref) {
|
|
|
15743
13675
|
}));
|
|
15744
13676
|
}
|
|
15745
13677
|
|
|
15746
|
-
var AnimatedPressable =
|
|
15747
|
-
var StyledContainer$1 = index$2(
|
|
13678
|
+
var AnimatedPressable = reactNative.Animated.createAnimatedComponent(reactNative.Pressable);
|
|
13679
|
+
var StyledContainer$1 = index$2(reactNative.View)(function (_ref) {
|
|
15748
13680
|
var theme = _ref.theme,
|
|
15749
13681
|
enableShadow = _ref.enableShadow;
|
|
15750
|
-
return _objectSpread2(_objectSpread2({},
|
|
13682
|
+
return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
15751
13683
|
shadowColor: enableShadow ? theme.__hd__.drawer.colors.shadow : 'transparent',
|
|
15752
13684
|
shadowOffset: theme.__hd__.drawer.shadows.offset,
|
|
15753
13685
|
shadowOpacity: theme.__hd__.drawer.shadows.opacity,
|
|
@@ -15759,11 +13691,11 @@ var StyledContainer$1 = index$2(ReactNative.View)(function (_ref) {
|
|
|
15759
13691
|
});
|
|
15760
13692
|
var StyledBackdrop$1 = index$2(AnimatedPressable)(function (_ref2) {
|
|
15761
13693
|
var theme = _ref2.theme;
|
|
15762
|
-
return _objectSpread2(_objectSpread2({},
|
|
13694
|
+
return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
15763
13695
|
backgroundColor: theme.__hd__.drawer.colors.backdrop
|
|
15764
13696
|
});
|
|
15765
13697
|
});
|
|
15766
|
-
var StyledDrawerContainer = index$2(
|
|
13698
|
+
var StyledDrawerContainer = index$2(reactNative.Animated.View)(function (_ref3) {
|
|
15767
13699
|
var theme = _ref3.theme,
|
|
15768
13700
|
enableShadow = _ref3.enableShadow;
|
|
15769
13701
|
return {
|
|
@@ -15782,7 +13714,7 @@ var Drawer = function Drawer(_ref) {
|
|
|
15782
13714
|
hasBackdrop = _ref$hasBackdrop === void 0 ? true : _ref$hasBackdrop,
|
|
15783
13715
|
onDismiss = _ref.onDismiss,
|
|
15784
13716
|
testID = _ref.testID;
|
|
15785
|
-
var animatedValue = React.useRef(new
|
|
13717
|
+
var animatedValue = React.useRef(new reactNative.Animated.Value(visible ? 1 : 0)).current;
|
|
15786
13718
|
|
|
15787
13719
|
var _useState = React.useState(0),
|
|
15788
13720
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -15799,9 +13731,9 @@ var Drawer = function Drawer(_ref) {
|
|
|
15799
13731
|
outputRange: [0, 0.35]
|
|
15800
13732
|
}) : 0;
|
|
15801
13733
|
React.useEffect(function () {
|
|
15802
|
-
var animation =
|
|
13734
|
+
var animation = reactNative.Animated.timing(animatedValue, {
|
|
15803
13735
|
toValue: visible ? 1 : 0,
|
|
15804
|
-
easing:
|
|
13736
|
+
easing: reactNative.Easing.inOut(reactNative.Easing.cubic),
|
|
15805
13737
|
useNativeDriver: true
|
|
15806
13738
|
});
|
|
15807
13739
|
animation.start();
|
|
@@ -15833,7 +13765,7 @@ var Drawer = function Drawer(_ref) {
|
|
|
15833
13765
|
}, children));
|
|
15834
13766
|
};
|
|
15835
13767
|
|
|
15836
|
-
var StyledFABContainer = index$2(
|
|
13768
|
+
var StyledFABContainer = index$2(reactNative.TouchableHighlight)(function (_ref) {
|
|
15837
13769
|
var theme = _ref.theme;
|
|
15838
13770
|
return {
|
|
15839
13771
|
backgroundColor: theme.__hd__.fab.colors.buttonBackground,
|
|
@@ -15856,7 +13788,7 @@ var StyledFABIcon = index$2(Icon)(function (_ref2) {
|
|
|
15856
13788
|
textAlign: 'center'
|
|
15857
13789
|
};
|
|
15858
13790
|
});
|
|
15859
|
-
var StyledFABText = index$2(
|
|
13791
|
+
var StyledFABText = index$2(reactNative.Text)(function (_ref3) {
|
|
15860
13792
|
var theme = _ref3.theme;
|
|
15861
13793
|
return {
|
|
15862
13794
|
fontFamily: theme.__hd__.fab.fonts.title,
|
|
@@ -15870,15 +13802,15 @@ var StyledFABText = index$2(ReactNative.Text)(function (_ref3) {
|
|
|
15870
13802
|
});
|
|
15871
13803
|
|
|
15872
13804
|
var _excluded$5 = ["active"];
|
|
15873
|
-
var AnimatedIcons =
|
|
13805
|
+
var AnimatedIcons = reactNative.Animated.createAnimatedComponent(StyledFABIcon);
|
|
15874
13806
|
|
|
15875
13807
|
var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
|
|
15876
13808
|
var active = _ref.active,
|
|
15877
|
-
iconProps = _objectWithoutProperties
|
|
13809
|
+
iconProps = _objectWithoutProperties(_ref, _excluded$5);
|
|
15878
13810
|
|
|
15879
|
-
var rotateAnimation = React.useRef(new
|
|
13811
|
+
var rotateAnimation = React.useRef(new reactNative.Animated.Value(active ? 1 : 0));
|
|
15880
13812
|
React.useEffect(function () {
|
|
15881
|
-
var animation =
|
|
13813
|
+
var animation = reactNative.Animated.timing(rotateAnimation.current, {
|
|
15882
13814
|
toValue: active ? 1 : 0,
|
|
15883
13815
|
useNativeDriver: true
|
|
15884
13816
|
});
|
|
@@ -15891,8 +13823,8 @@ var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
|
|
|
15891
13823
|
inputRange: [0, 1],
|
|
15892
13824
|
outputRange: ['0deg', '-45deg']
|
|
15893
13825
|
});
|
|
15894
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
15895
|
-
style:
|
|
13826
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.Animated.View, {
|
|
13827
|
+
style: reactNative.StyleSheet.flatten([{
|
|
15896
13828
|
transform: [{
|
|
15897
13829
|
rotate: interpolatedRotateAnimation
|
|
15898
13830
|
}]
|
|
@@ -15953,7 +13885,7 @@ var FAB = function FAB(_ref3) {
|
|
|
15953
13885
|
}));
|
|
15954
13886
|
};
|
|
15955
13887
|
|
|
15956
|
-
var StyledActionItem = index$2(
|
|
13888
|
+
var StyledActionItem = index$2(reactNative.TouchableOpacity)(function (_ref) {
|
|
15957
13889
|
var theme = _ref.theme;
|
|
15958
13890
|
return {
|
|
15959
13891
|
paddingLeft: theme.__hd__.fab.space.actionItemPaddingLeft,
|
|
@@ -15995,7 +13927,7 @@ var ActionItem = function ActionItem(_ref) {
|
|
|
15995
13927
|
}), /*#__PURE__*/React__default["default"].createElement(StyledActionItemText, null, title));
|
|
15996
13928
|
};
|
|
15997
13929
|
|
|
15998
|
-
var StyledContainer = index$2(
|
|
13930
|
+
var StyledContainer = index$2(reactNative.View)({
|
|
15999
13931
|
position: 'absolute',
|
|
16000
13932
|
left: 0,
|
|
16001
13933
|
right: 0,
|
|
@@ -16004,7 +13936,7 @@ var StyledContainer = index$2(ReactNative.View)({
|
|
|
16004
13936
|
alignItems: 'flex-end',
|
|
16005
13937
|
justifyContent: 'flex-end'
|
|
16006
13938
|
});
|
|
16007
|
-
var StyledActionGroupContainer = index$2(
|
|
13939
|
+
var StyledActionGroupContainer = index$2(reactNative.Animated.View)({
|
|
16008
13940
|
alignItems: 'flex-end',
|
|
16009
13941
|
justifyContent: 'flex-end',
|
|
16010
13942
|
width: '70%'
|
|
@@ -16017,7 +13949,7 @@ var StyledFAB = index$2(FAB)(function (_ref) {
|
|
|
16017
13949
|
alignSelf: 'flex-end'
|
|
16018
13950
|
};
|
|
16019
13951
|
});
|
|
16020
|
-
var StyledBackdrop = index$2(
|
|
13952
|
+
var StyledBackdrop = index$2(reactNative.Animated.View)(function (_ref2) {
|
|
16021
13953
|
var theme = _ref2.theme;
|
|
16022
13954
|
return {
|
|
16023
13955
|
position: 'absolute',
|
|
@@ -16043,10 +13975,10 @@ var StyledHeaderText = index$2(Typography.Text)(function (_ref3) {
|
|
|
16043
13975
|
var ActionItemsListComponent = function ActionItemsListComponent(_ref) {
|
|
16044
13976
|
var style = _ref.style,
|
|
16045
13977
|
items = _ref.items;
|
|
16046
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
13978
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.View, {
|
|
16047
13979
|
style: style
|
|
16048
13980
|
}, items === null || items === void 0 ? void 0 : items.map(function (itemProp) {
|
|
16049
|
-
return /*#__PURE__*/React__default["default"].createElement(ActionItem, _extends$
|
|
13981
|
+
return /*#__PURE__*/React__default["default"].createElement(ActionItem, _extends$1({
|
|
16050
13982
|
key: itemProp.icon
|
|
16051
13983
|
}, itemProp));
|
|
16052
13984
|
}));
|
|
@@ -16060,9 +13992,9 @@ var ActionGroup = function ActionGroup(_ref2) {
|
|
|
16060
13992
|
items = _ref2.items,
|
|
16061
13993
|
testID = _ref2.testID,
|
|
16062
13994
|
fabTitle = _ref2.fabTitle;
|
|
16063
|
-
var tranlateXAnimation = React.useRef(new
|
|
13995
|
+
var tranlateXAnimation = React.useRef(new reactNative.Animated.Value(active ? 1 : 0));
|
|
16064
13996
|
React.useEffect(function () {
|
|
16065
|
-
var animation =
|
|
13997
|
+
var animation = reactNative.Animated.timing(tranlateXAnimation.current, {
|
|
16066
13998
|
toValue: active ? 1 : 0,
|
|
16067
13999
|
useNativeDriver: true
|
|
16068
14000
|
});
|
|
@@ -16111,7 +14043,7 @@ var index$1 = Object.assign(FAB, {
|
|
|
16111
14043
|
ActionGroup: ActionGroup
|
|
16112
14044
|
});
|
|
16113
14045
|
|
|
16114
|
-
var HalfCircleWrapper = index$2(
|
|
14046
|
+
var HalfCircleWrapper = index$2(reactNative.View)(function (_ref) {
|
|
16115
14047
|
var theme = _ref.theme;
|
|
16116
14048
|
return {
|
|
16117
14049
|
width: theme.__hd__.progress.sizes.radius,
|
|
@@ -16119,7 +14051,7 @@ var HalfCircleWrapper = index$2(ReactNative.View)(function (_ref) {
|
|
|
16119
14051
|
overflow: 'hidden'
|
|
16120
14052
|
};
|
|
16121
14053
|
});
|
|
16122
|
-
var HalfCircleInnerFG = index$2(
|
|
14054
|
+
var HalfCircleInnerFG = index$2(reactNative.View)(function (_ref2) {
|
|
16123
14055
|
var theme = _ref2.theme,
|
|
16124
14056
|
themeIntent = _ref2.themeIntent;
|
|
16125
14057
|
return {
|
|
@@ -16129,7 +14061,7 @@ var HalfCircleInnerFG = index$2(ReactNative.View)(function (_ref2) {
|
|
|
16129
14061
|
borderRadius: theme.__hd__.progress.radii["default"]
|
|
16130
14062
|
};
|
|
16131
14063
|
});
|
|
16132
|
-
var HalfCircleInnerBG = index$2(
|
|
14064
|
+
var HalfCircleInnerBG = index$2(reactNative.View)(function (_ref3) {
|
|
16133
14065
|
var theme = _ref3.theme;
|
|
16134
14066
|
return {
|
|
16135
14067
|
width: theme.__hd__.progress.sizes.radius * 2,
|
|
@@ -16138,7 +14070,7 @@ var HalfCircleInnerBG = index$2(ReactNative.View)(function (_ref3) {
|
|
|
16138
14070
|
borderRadius: theme.__hd__.progress.radii["default"]
|
|
16139
14071
|
};
|
|
16140
14072
|
});
|
|
16141
|
-
var DonutCircle = index$2(
|
|
14073
|
+
var DonutCircle = index$2(reactNative.View)(function (_ref4) {
|
|
16142
14074
|
var theme = _ref4.theme;
|
|
16143
14075
|
return {
|
|
16144
14076
|
position: 'absolute',
|
|
@@ -16153,7 +14085,7 @@ var DonutCircle = index$2(ReactNative.View)(function (_ref4) {
|
|
|
16153
14085
|
justifyContent: 'center'
|
|
16154
14086
|
};
|
|
16155
14087
|
});
|
|
16156
|
-
var StrokeEnd = index$2(
|
|
14088
|
+
var StrokeEnd = index$2(reactNative.View)(function (_ref5) {
|
|
16157
14089
|
var theme = _ref5.theme,
|
|
16158
14090
|
themeIntent = _ref5.themeIntent;
|
|
16159
14091
|
return {
|
|
@@ -16185,13 +14117,13 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
16185
14117
|
intent = _ref2$intent === void 0 ? 'primary' : _ref2$intent,
|
|
16186
14118
|
style = _ref2.style,
|
|
16187
14119
|
testID = _ref2.testID,
|
|
16188
|
-
nativeProps = _objectWithoutProperties
|
|
14120
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$4);
|
|
16189
14121
|
|
|
16190
|
-
var theme = useTheme();
|
|
14122
|
+
var theme = useTheme$1();
|
|
16191
14123
|
var radius = theme.__hd__.progress.sizes.radius;
|
|
16192
|
-
var progressAnimatedValue = React.useRef(new
|
|
14124
|
+
var progressAnimatedValue = React.useRef(new reactNative.Animated.Value(0));
|
|
16193
14125
|
React.useEffect(function () {
|
|
16194
|
-
var animation =
|
|
14126
|
+
var animation = reactNative.Animated.timing(progressAnimatedValue.current, {
|
|
16195
14127
|
toValue: value,
|
|
16196
14128
|
useNativeDriver: true
|
|
16197
14129
|
});
|
|
@@ -16223,18 +14155,18 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
16223
14155
|
outputRange: ['0deg', '360deg'],
|
|
16224
14156
|
extrapolate: 'clamp'
|
|
16225
14157
|
});
|
|
16226
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
14158
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.View, _extends$1({}, nativeProps, {
|
|
16227
14159
|
testID: testID,
|
|
16228
14160
|
style: style
|
|
16229
|
-
}), /*#__PURE__*/React__default["default"].createElement(
|
|
14161
|
+
}), /*#__PURE__*/React__default["default"].createElement(reactNative.View, {
|
|
16230
14162
|
style: {
|
|
16231
14163
|
flexDirection: 'row'
|
|
16232
14164
|
}
|
|
16233
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
14165
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactNative.View, null, /*#__PURE__*/React__default["default"].createElement(HalfCircle, {
|
|
16234
14166
|
type: "foreground",
|
|
16235
14167
|
themeIntent: intent
|
|
16236
|
-
}), /*#__PURE__*/React__default["default"].createElement(
|
|
16237
|
-
style: _objectSpread2(_objectSpread2({},
|
|
14168
|
+
}), /*#__PURE__*/React__default["default"].createElement(reactNative.Animated.View, {
|
|
14169
|
+
style: _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
16238
14170
|
transform: [{
|
|
16239
14171
|
translateX: radius / 2
|
|
16240
14172
|
}, {
|
|
@@ -16245,7 +14177,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
16245
14177
|
})
|
|
16246
14178
|
}, /*#__PURE__*/React__default["default"].createElement(HalfCircle, {
|
|
16247
14179
|
type: "background"
|
|
16248
|
-
}))), /*#__PURE__*/React__default["default"].createElement(
|
|
14180
|
+
}))), /*#__PURE__*/React__default["default"].createElement(reactNative.View, {
|
|
16249
14181
|
style: {
|
|
16250
14182
|
transform: [{
|
|
16251
14183
|
rotate: '180deg'
|
|
@@ -16255,8 +14187,8 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
16255
14187
|
}, /*#__PURE__*/React__default["default"].createElement(HalfCircle, {
|
|
16256
14188
|
type: "foreground",
|
|
16257
14189
|
themeIntent: intent
|
|
16258
|
-
}), /*#__PURE__*/React__default["default"].createElement(
|
|
16259
|
-
style: _objectSpread2(_objectSpread2({},
|
|
14190
|
+
}), /*#__PURE__*/React__default["default"].createElement(reactNative.Animated.View, {
|
|
14191
|
+
style: _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
16260
14192
|
transform: [{
|
|
16261
14193
|
translateX: radius / 2
|
|
16262
14194
|
}, {
|
|
@@ -16270,8 +14202,8 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
16270
14202
|
type: "background"
|
|
16271
14203
|
}))), /*#__PURE__*/React__default["default"].createElement(StrokeEnd, {
|
|
16272
14204
|
themeIntent: intent
|
|
16273
|
-
}), /*#__PURE__*/React__default["default"].createElement(
|
|
16274
|
-
style: _objectSpread2(_objectSpread2({},
|
|
14205
|
+
}), /*#__PURE__*/React__default["default"].createElement(reactNative.Animated.View, {
|
|
14206
|
+
style: _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
16275
14207
|
zIndex: 2,
|
|
16276
14208
|
transform: [{
|
|
16277
14209
|
rotate: interpolateDotRotate
|
|
@@ -16284,7 +14216,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
16284
14216
|
}, "".concat(value, "%")))));
|
|
16285
14217
|
};
|
|
16286
14218
|
|
|
16287
|
-
var StyledWrapper$2 = index$2(
|
|
14219
|
+
var StyledWrapper$2 = index$2(reactNative.View)(function (_ref) {
|
|
16288
14220
|
var theme = _ref.theme;
|
|
16289
14221
|
return {
|
|
16290
14222
|
height: theme.__hd__.progress.sizes.barHeight,
|
|
@@ -16293,7 +14225,7 @@ var StyledWrapper$2 = index$2(ReactNative.View)(function (_ref) {
|
|
|
16293
14225
|
overflow: 'hidden'
|
|
16294
14226
|
};
|
|
16295
14227
|
});
|
|
16296
|
-
var StyledInner = index$2(
|
|
14228
|
+
var StyledInner = index$2(reactNative.Animated.View)(function (_ref2) {
|
|
16297
14229
|
var theme = _ref2.theme,
|
|
16298
14230
|
themeIntent = _ref2.themeIntent;
|
|
16299
14231
|
return {
|
|
@@ -16311,16 +14243,16 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
16311
14243
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
16312
14244
|
style = _ref.style,
|
|
16313
14245
|
testID = _ref.testID,
|
|
16314
|
-
nativeProps = _objectWithoutProperties
|
|
14246
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$3);
|
|
16315
14247
|
|
|
16316
14248
|
var _useState = React.useState(0),
|
|
16317
14249
|
_useState2 = _slicedToArray(_useState, 2),
|
|
16318
14250
|
width = _useState2[0],
|
|
16319
14251
|
setWidth = _useState2[1];
|
|
16320
14252
|
|
|
16321
|
-
var progressAnimatedValue = React.useRef(new
|
|
14253
|
+
var progressAnimatedValue = React.useRef(new reactNative.Animated.Value(0));
|
|
16322
14254
|
React.useEffect(function () {
|
|
16323
|
-
var animation =
|
|
14255
|
+
var animation = reactNative.Animated.timing(progressAnimatedValue.current, {
|
|
16324
14256
|
toValue: value,
|
|
16325
14257
|
useNativeDriver: true
|
|
16326
14258
|
});
|
|
@@ -16339,7 +14271,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
16339
14271
|
outputRange: [999, 0],
|
|
16340
14272
|
extrapolate: 'clamp'
|
|
16341
14273
|
});
|
|
16342
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$2, _extends$
|
|
14274
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$2, _extends$1({}, nativeProps, {
|
|
16343
14275
|
testID: testID,
|
|
16344
14276
|
style: style
|
|
16345
14277
|
}), /*#__PURE__*/React__default["default"].createElement(StyledInner, {
|
|
@@ -16363,13 +14295,13 @@ var Progress = {
|
|
|
16363
14295
|
Bar: ProgressBar
|
|
16364
14296
|
};
|
|
16365
14297
|
|
|
16366
|
-
var StyledView$1 = index$2(
|
|
16367
|
-
var StyledSpinnerContainer = index$2(
|
|
14298
|
+
var StyledView$1 = index$2(reactNative.View)();
|
|
14299
|
+
var StyledSpinnerContainer = index$2(reactNative.View)({
|
|
16368
14300
|
height: '100%',
|
|
16369
14301
|
justifyContent: 'center',
|
|
16370
14302
|
alignItems: 'center'
|
|
16371
14303
|
});
|
|
16372
|
-
var StyledSpinnerRow = index$2(
|
|
14304
|
+
var StyledSpinnerRow = index$2(reactNative.View)(function (_ref) {
|
|
16373
14305
|
var themePosition = _ref.themePosition,
|
|
16374
14306
|
theme = _ref.theme;
|
|
16375
14307
|
return {
|
|
@@ -16377,7 +14309,7 @@ var StyledSpinnerRow = index$2(ReactNative.View)(function (_ref) {
|
|
|
16377
14309
|
marginBottom: themePosition === 'top' ? theme.__hd__.spinner.space.spinnerDotPadding : 0
|
|
16378
14310
|
};
|
|
16379
14311
|
});
|
|
16380
|
-
var StyledSpinnerDot = index$2(
|
|
14312
|
+
var StyledSpinnerDot = index$2(reactNative.View)(function (_ref2) {
|
|
16381
14313
|
var themePosition = _ref2.themePosition,
|
|
16382
14314
|
theme = _ref2.theme;
|
|
16383
14315
|
|
|
@@ -16415,16 +14347,16 @@ var StyledSpinnerDot = index$2(ReactNative.View)(function (_ref2) {
|
|
|
16415
14347
|
}, themeStyling());
|
|
16416
14348
|
});
|
|
16417
14349
|
|
|
16418
|
-
var AnimatedRow =
|
|
16419
|
-
var AnimatedDot =
|
|
14350
|
+
var AnimatedRow = reactNative.Animated.createAnimatedComponent(StyledSpinnerRow);
|
|
14351
|
+
var AnimatedDot = reactNative.Animated.createAnimatedComponent(StyledSpinnerDot);
|
|
16420
14352
|
|
|
16421
14353
|
var AnimatedSpinner = function AnimatedSpinner() {
|
|
16422
|
-
var rotateAnimation = React.useRef(new
|
|
14354
|
+
var rotateAnimation = React.useRef(new reactNative.Animated.Value(0));
|
|
16423
14355
|
React.useEffect(function () {
|
|
16424
|
-
var animation =
|
|
14356
|
+
var animation = reactNative.Animated.loop(reactNative.Animated.timing(rotateAnimation.current, {
|
|
16425
14357
|
toValue: 1,
|
|
16426
14358
|
duration: 1200,
|
|
16427
|
-
easing:
|
|
14359
|
+
easing: reactNative.Easing.linear,
|
|
16428
14360
|
useNativeDriver: true
|
|
16429
14361
|
}));
|
|
16430
14362
|
animation.start();
|
|
@@ -16436,8 +14368,8 @@ var AnimatedSpinner = function AnimatedSpinner() {
|
|
|
16436
14368
|
inputRange: [0, 1],
|
|
16437
14369
|
outputRange: ['0deg', '360deg']
|
|
16438
14370
|
});
|
|
16439
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
16440
|
-
style:
|
|
14371
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.Animated.View, {
|
|
14372
|
+
style: reactNative.StyleSheet.flatten([{
|
|
16441
14373
|
transform: [{
|
|
16442
14374
|
rotate: interpolatedRotateAnimation
|
|
16443
14375
|
}]
|
|
@@ -16461,14 +14393,14 @@ var _excluded$2 = ["testID"];
|
|
|
16461
14393
|
|
|
16462
14394
|
var Spinner = function Spinner(_ref) {
|
|
16463
14395
|
var testID = _ref.testID,
|
|
16464
|
-
nativeProps = _objectWithoutProperties
|
|
14396
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$2);
|
|
16465
14397
|
|
|
16466
14398
|
return /*#__PURE__*/React__default["default"].createElement(StyledView$1, nativeProps, /*#__PURE__*/React__default["default"].createElement(StyledSpinnerContainer, {
|
|
16467
14399
|
testID: testID
|
|
16468
14400
|
}, /*#__PURE__*/React__default["default"].createElement(AnimatedSpinner, null)));
|
|
16469
14401
|
};
|
|
16470
14402
|
|
|
16471
|
-
var Wrapper = index$2(
|
|
14403
|
+
var Wrapper = index$2(reactNative.TouchableOpacity)(function (_ref) {
|
|
16472
14404
|
var theme = _ref.theme,
|
|
16473
14405
|
themeChecked = _ref.themeChecked;
|
|
16474
14406
|
return {
|
|
@@ -16480,7 +14412,7 @@ var Wrapper = index$2(ReactNative.TouchableOpacity)(function (_ref) {
|
|
|
16480
14412
|
backgroundColor: themeChecked ? theme.__hd__.radio.colors.checkedWrapper : theme.__hd__.radio.colors.wrapper
|
|
16481
14413
|
};
|
|
16482
14414
|
});
|
|
16483
|
-
var Circle = index$2(
|
|
14415
|
+
var Circle = index$2(reactNative.View)(function (_ref2) {
|
|
16484
14416
|
var theme = _ref2.theme,
|
|
16485
14417
|
themeChecked = _ref2.themeChecked;
|
|
16486
14418
|
return {
|
|
@@ -16493,7 +14425,7 @@ var Circle = index$2(ReactNative.View)(function (_ref2) {
|
|
|
16493
14425
|
justifyContent: 'center'
|
|
16494
14426
|
};
|
|
16495
14427
|
});
|
|
16496
|
-
var InnerCircle = index$2(
|
|
14428
|
+
var InnerCircle = index$2(reactNative.View)(function (_ref3) {
|
|
16497
14429
|
var theme = _ref3.theme;
|
|
16498
14430
|
return {
|
|
16499
14431
|
height: theme.__hd__.radio.sizes.innerCircle,
|
|
@@ -16502,7 +14434,7 @@ var InnerCircle = index$2(ReactNative.View)(function (_ref3) {
|
|
|
16502
14434
|
backgroundColor: theme.__hd__.radio.colors.checkedCircle
|
|
16503
14435
|
};
|
|
16504
14436
|
});
|
|
16505
|
-
var Spacer$1 = index$2(
|
|
14437
|
+
var Spacer$1 = index$2(reactNative.View)(function (_ref4) {
|
|
16506
14438
|
var theme = _ref4.theme;
|
|
16507
14439
|
return {
|
|
16508
14440
|
marginTop: theme.__hd__.radio.space.groupTopMargin
|
|
@@ -16521,7 +14453,7 @@ var Radio = function Radio(_ref) {
|
|
|
16521
14453
|
themeChecked: checked,
|
|
16522
14454
|
style: style,
|
|
16523
14455
|
testID: testID
|
|
16524
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
14456
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactNative.View, {
|
|
16525
14457
|
style: {
|
|
16526
14458
|
flex: 1
|
|
16527
14459
|
}
|
|
@@ -16555,7 +14487,7 @@ var RadioGroup = function RadioGroup(_ref) {
|
|
|
16555
14487
|
keyExtractor = _ref.keyExtractor,
|
|
16556
14488
|
style = _ref.style,
|
|
16557
14489
|
testID = _ref.testID;
|
|
16558
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
14490
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.View, {
|
|
16559
14491
|
style: style,
|
|
16560
14492
|
testID: testID
|
|
16561
14493
|
}, options.map(function (option, index) {
|
|
@@ -16575,7 +14507,7 @@ var CompoundRadio = {
|
|
|
16575
14507
|
Group: RadioGroup
|
|
16576
14508
|
};
|
|
16577
14509
|
|
|
16578
|
-
var StyledHeading = index$2(
|
|
14510
|
+
var StyledHeading = index$2(reactNative.View)(function (_ref) {
|
|
16579
14511
|
var theme = _ref.theme;
|
|
16580
14512
|
return {
|
|
16581
14513
|
paddingVertical: theme.__hd__.sectionHeading.space.headingVerticalPadding,
|
|
@@ -16588,13 +14520,13 @@ var StyledHeading = index$2(ReactNative.View)(function (_ref) {
|
|
|
16588
14520
|
justifyContent: 'space-between'
|
|
16589
14521
|
};
|
|
16590
14522
|
});
|
|
16591
|
-
var StyledIconWrapper = index$2(
|
|
14523
|
+
var StyledIconWrapper = index$2(reactNative.View)(function (_ref2) {
|
|
16592
14524
|
var theme = _ref2.theme;
|
|
16593
14525
|
return {
|
|
16594
14526
|
marginRight: theme.__hd__.sectionHeading.space.iconMarginRight
|
|
16595
14527
|
};
|
|
16596
14528
|
});
|
|
16597
|
-
var StyledWrapper$1 = index$2(
|
|
14529
|
+
var StyledWrapper$1 = index$2(reactNative.View)(function () {
|
|
16598
14530
|
return {
|
|
16599
14531
|
display: 'flex',
|
|
16600
14532
|
flexDirection: 'row'
|
|
@@ -16639,7 +14571,7 @@ var SectionHeading = function SectionHeading(_ref) {
|
|
|
16639
14571
|
}, text)), rightChildren);
|
|
16640
14572
|
};
|
|
16641
14573
|
|
|
16642
|
-
var Container = index$2(
|
|
14574
|
+
var Container = index$2(reactNative.View)(function (_ref) {
|
|
16643
14575
|
var theme = _ref.theme;
|
|
16644
14576
|
return {
|
|
16645
14577
|
position: 'relative',
|
|
@@ -16662,7 +14594,7 @@ var Label = index$2(Typography.Text)(function (_ref2) {
|
|
|
16662
14594
|
paddingHorizontal: theme.__hd__.textInput.space.labelHorizontalPadding
|
|
16663
14595
|
};
|
|
16664
14596
|
});
|
|
16665
|
-
var StyledTextInput = index$2(
|
|
14597
|
+
var StyledTextInput = index$2(reactNative.TextInput)(function (_ref3) {
|
|
16666
14598
|
var theme = _ref3.theme;
|
|
16667
14599
|
return {
|
|
16668
14600
|
flex: 1,
|
|
@@ -16681,7 +14613,7 @@ var TextInput = function TextInput(_ref) {
|
|
|
16681
14613
|
textStyle = _ref.textStyle,
|
|
16682
14614
|
testID = _ref.testID,
|
|
16683
14615
|
accessibilityLabelledBy = _ref.accessibilityLabelledBy,
|
|
16684
|
-
nativeProps = _objectWithoutProperties
|
|
14616
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$1);
|
|
16685
14617
|
|
|
16686
14618
|
return /*#__PURE__*/React__default["default"].createElement(Container, {
|
|
16687
14619
|
style: style,
|
|
@@ -16694,7 +14626,7 @@ var TextInput = function TextInput(_ref) {
|
|
|
16694
14626
|
testID: "input-prefix",
|
|
16695
14627
|
icon: prefix,
|
|
16696
14628
|
size: "xsmall"
|
|
16697
|
-
}), /*#__PURE__*/React__default["default"].createElement(StyledTextInput, _extends$
|
|
14629
|
+
}), /*#__PURE__*/React__default["default"].createElement(StyledTextInput, _extends$1({
|
|
16698
14630
|
style: textStyle,
|
|
16699
14631
|
testID: "text-input" // @ts-ignore
|
|
16700
14632
|
,
|
|
@@ -16706,7 +14638,7 @@ var TextInput = function TextInput(_ref) {
|
|
|
16706
14638
|
}));
|
|
16707
14639
|
};
|
|
16708
14640
|
|
|
16709
|
-
var OptionWrapper = index$2(
|
|
14641
|
+
var OptionWrapper = index$2(reactNative.TouchableOpacity)(function (_ref) {
|
|
16710
14642
|
var theme = _ref.theme,
|
|
16711
14643
|
themeSelected = _ref.themeSelected;
|
|
16712
14644
|
return {
|
|
@@ -16718,13 +14650,13 @@ var OptionWrapper = index$2(ReactNative.TouchableOpacity)(function (_ref) {
|
|
|
16718
14650
|
backgroundColor: themeSelected ? theme.__hd__.select.colors.checkedOption : theme.__hd__.select.colors.option
|
|
16719
14651
|
};
|
|
16720
14652
|
});
|
|
16721
|
-
var OptionListWrapper = index$2(
|
|
14653
|
+
var OptionListWrapper = index$2(reactNative.View)(function (_ref2) {
|
|
16722
14654
|
var theme = _ref2.theme;
|
|
16723
14655
|
return {
|
|
16724
14656
|
padding: theme.__hd__.select.space.optionListPadding
|
|
16725
14657
|
};
|
|
16726
14658
|
});
|
|
16727
|
-
var Spacer = index$2(
|
|
14659
|
+
var Spacer = index$2(reactNative.View)(function (_ref3) {
|
|
16728
14660
|
var theme = _ref3.theme;
|
|
16729
14661
|
return {
|
|
16730
14662
|
marginTop: theme.__hd__.select.space.optionListSpacing
|
|
@@ -16740,7 +14672,7 @@ var FooterText = index$2(Typography.Text)(function (_ref4) {
|
|
|
16740
14672
|
function Footer(_ref) {
|
|
16741
14673
|
var label = _ref.label,
|
|
16742
14674
|
onPress = _ref.onPress;
|
|
16743
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
14675
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.TouchableOpacity, {
|
|
16744
14676
|
onPress: onPress
|
|
16745
14677
|
}, /*#__PURE__*/React__default["default"].createElement(FooterText, {
|
|
16746
14678
|
fontSize: "large",
|
|
@@ -16755,7 +14687,7 @@ function Option(_ref) {
|
|
|
16755
14687
|
return /*#__PURE__*/React__default["default"].createElement(OptionWrapper, {
|
|
16756
14688
|
themeSelected: selected,
|
|
16757
14689
|
onPress: onPress
|
|
16758
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
14690
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactNative.View, {
|
|
16759
14691
|
style: {
|
|
16760
14692
|
flex: 1
|
|
16761
14693
|
}
|
|
@@ -16798,7 +14730,7 @@ function OptionList(_ref2) {
|
|
|
16798
14730
|
return val !== opt.value;
|
|
16799
14731
|
}));
|
|
16800
14732
|
} else {
|
|
16801
|
-
_onPress([].concat(_toConsumableArray
|
|
14733
|
+
_onPress([].concat(_toConsumableArray(value), [opt.value]));
|
|
16802
14734
|
}
|
|
16803
14735
|
}
|
|
16804
14736
|
}));
|
|
@@ -16813,7 +14745,7 @@ function MultiSelect(_ref) {
|
|
|
16813
14745
|
label = _ref.label,
|
|
16814
14746
|
footerLabel = _ref.footerLabel,
|
|
16815
14747
|
_onPress = _ref.onPress;
|
|
16816
|
-
var theme = useTheme();
|
|
14748
|
+
var theme = useTheme$1();
|
|
16817
14749
|
|
|
16818
14750
|
var _useState = React.useState(false),
|
|
16819
14751
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -16830,7 +14762,7 @@ function MultiSelect(_ref) {
|
|
|
16830
14762
|
}).map(function (opt) {
|
|
16831
14763
|
return opt.text;
|
|
16832
14764
|
}).join(', ');
|
|
16833
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
14765
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.TouchableOpacity, {
|
|
16834
14766
|
onPress: function onPress() {
|
|
16835
14767
|
return setOpen(true);
|
|
16836
14768
|
}
|
|
@@ -16878,7 +14810,7 @@ var CompoundSelect = {
|
|
|
16878
14810
|
Multi: MultiSelect
|
|
16879
14811
|
};
|
|
16880
14812
|
|
|
16881
|
-
var StyledWrapper = index$2(
|
|
14813
|
+
var StyledWrapper = index$2(reactNative.View)(function (_ref) {
|
|
16882
14814
|
var theme = _ref.theme,
|
|
16883
14815
|
themeChecked = _ref.themeChecked,
|
|
16884
14816
|
themeSize = _ref.themeSize;
|
|
@@ -16890,7 +14822,7 @@ var StyledWrapper = index$2(ReactNative.View)(function (_ref) {
|
|
|
16890
14822
|
backgroundColor: themeChecked ? theme.__hd__["switch"].colors.active : theme.__hd__["switch"].colors.inactive
|
|
16891
14823
|
};
|
|
16892
14824
|
});
|
|
16893
|
-
var StyledDisabledWrapper = index$2(
|
|
14825
|
+
var StyledDisabledWrapper = index$2(reactNative.View)(function (_ref2) {
|
|
16894
14826
|
var theme = _ref2.theme,
|
|
16895
14827
|
themeSize = _ref2.themeSize;
|
|
16896
14828
|
return {
|
|
@@ -16903,7 +14835,7 @@ var StyledDisabledWrapper = index$2(ReactNative.View)(function (_ref2) {
|
|
|
16903
14835
|
opacity: 0.8
|
|
16904
14836
|
};
|
|
16905
14837
|
});
|
|
16906
|
-
var StyledThumbWrapper = index$2(
|
|
14838
|
+
var StyledThumbWrapper = index$2(reactNative.View)(function (_ref3) {
|
|
16907
14839
|
var theme = _ref3.theme,
|
|
16908
14840
|
themeSize = _ref3.themeSize;
|
|
16909
14841
|
return {
|
|
@@ -16914,7 +14846,7 @@ var StyledThumbWrapper = index$2(ReactNative.View)(function (_ref3) {
|
|
|
16914
14846
|
justifyContent: 'center'
|
|
16915
14847
|
};
|
|
16916
14848
|
});
|
|
16917
|
-
var StyledKnot = index$2(
|
|
14849
|
+
var StyledKnot = index$2(reactNative.Animated.View)(function (_ref4) {
|
|
16918
14850
|
var theme = _ref4.theme,
|
|
16919
14851
|
themeSize = _ref4.themeSize;
|
|
16920
14852
|
return {
|
|
@@ -16934,23 +14866,23 @@ var Switch = function Switch(_ref) {
|
|
|
16934
14866
|
onPress = _ref.onPress,
|
|
16935
14867
|
style = _ref.style,
|
|
16936
14868
|
testID = _ref.testID;
|
|
16937
|
-
var theme = useTheme();
|
|
14869
|
+
var theme = useTheme$1();
|
|
16938
14870
|
var offset = checked ? theme.__hd__["switch"].widths[size] - theme.__hd__["switch"].thumbSizes[size] - theme.__hd__["switch"].spaces[size] * 2 : theme.__hd__["switch"].spaces.inactive;
|
|
16939
14871
|
|
|
16940
14872
|
var _useState = React.useState(function () {
|
|
16941
|
-
return new
|
|
14873
|
+
return new reactNative.Animated.Value(offset);
|
|
16942
14874
|
}),
|
|
16943
14875
|
_useState2 = _slicedToArray(_useState, 1),
|
|
16944
14876
|
animatedOffset = _useState2[0];
|
|
16945
14877
|
|
|
16946
14878
|
React.useEffect(function () {
|
|
16947
|
-
|
|
14879
|
+
reactNative.Animated.timing(animatedOffset, {
|
|
16948
14880
|
toValue: offset,
|
|
16949
|
-
easing:
|
|
14881
|
+
easing: reactNative.Easing.inOut(reactNative.Easing.cubic),
|
|
16950
14882
|
useNativeDriver: false
|
|
16951
14883
|
}).start();
|
|
16952
14884
|
}, [checked]);
|
|
16953
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
14885
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.TouchableWithoutFeedback, {
|
|
16954
14886
|
testID: testID,
|
|
16955
14887
|
onPress: onPress,
|
|
16956
14888
|
disabled: disabled
|
|
@@ -16970,212 +14902,12 @@ var Switch = function Switch(_ref) {
|
|
|
16970
14902
|
}))));
|
|
16971
14903
|
};
|
|
16972
14904
|
|
|
16973
|
-
var
|
|
16974
|
-
|
|
16975
|
-
var element = child;
|
|
16976
|
-
return (
|
|
16977
|
-
/*#__PURE__*/
|
|
16978
|
-
// Add a wrapper to ensure layout is calculated correctly
|
|
16979
|
-
React__default["default"].createElement(ReactNative.View, {
|
|
16980
|
-
style: ReactNative.StyleSheet.absoluteFill,
|
|
16981
|
-
collapsable: false
|
|
16982
|
-
}, /*#__PURE__*/React__default["default"].cloneElement(element, _objectSpread2(_objectSpread2({}, element.props), {}, {
|
|
16983
|
-
// Override styles so that each page will fill the parent.
|
|
16984
|
-
style: [element.props.style, ReactNative.StyleSheet.absoluteFill]
|
|
16985
|
-
})))
|
|
16986
|
-
);
|
|
16987
|
-
});
|
|
16988
|
-
};
|
|
16989
|
-
|
|
16990
|
-
var VIEW_MANAGER_NAME = 'RNCViewPager';
|
|
16991
|
-
var PagerViewViewManager = ReactNative.requireNativeComponent(VIEW_MANAGER_NAME);
|
|
16992
|
-
function getViewManagerConfig() {
|
|
16993
|
-
var viewManagerName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : VIEW_MANAGER_NAME;
|
|
16994
|
-
return ReactNative.UIManager.getViewManagerConfig(viewManagerName);
|
|
16995
|
-
}
|
|
16996
|
-
|
|
16997
|
-
function _extends() {
|
|
16998
|
-
_extends = Object.assign || function (target) {
|
|
16999
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
17000
|
-
var source = arguments[i];
|
|
17001
|
-
|
|
17002
|
-
for (var key in source) {
|
|
17003
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
17004
|
-
target[key] = source[key];
|
|
17005
|
-
}
|
|
17006
|
-
}
|
|
17007
|
-
}
|
|
17008
|
-
|
|
17009
|
-
return target;
|
|
17010
|
-
};
|
|
17011
|
-
|
|
17012
|
-
return _extends.apply(this, arguments);
|
|
17013
|
-
}
|
|
17014
|
-
|
|
17015
|
-
function _defineProperty(obj, key, value) {
|
|
17016
|
-
if (key in obj) {
|
|
17017
|
-
Object.defineProperty(obj, key, {
|
|
17018
|
-
value: value,
|
|
17019
|
-
enumerable: true,
|
|
17020
|
-
configurable: true,
|
|
17021
|
-
writable: true
|
|
17022
|
-
});
|
|
17023
|
-
} else {
|
|
17024
|
-
obj[key] = value;
|
|
17025
|
-
}
|
|
17026
|
-
|
|
17027
|
-
return obj;
|
|
17028
|
-
}
|
|
17029
|
-
/**
|
|
17030
|
-
* Container that allows to flip left and right between child views. Each
|
|
17031
|
-
* child view of the `PagerView` will be treated as a separate page
|
|
17032
|
-
* and will be stretched to fill the `PagerView`.
|
|
17033
|
-
*
|
|
17034
|
-
* It is important all children are `<View>`s and not composite components.
|
|
17035
|
-
* You can set style properties like `padding` or `backgroundColor` for each
|
|
17036
|
-
* child. It is also important that each child have a `key` prop.
|
|
17037
|
-
*
|
|
17038
|
-
* Example:
|
|
17039
|
-
*
|
|
17040
|
-
* ```
|
|
17041
|
-
* render: function() {
|
|
17042
|
-
* return (
|
|
17043
|
-
* <PagerView
|
|
17044
|
-
* style={styles.PagerView}
|
|
17045
|
-
* initialPage={0}>
|
|
17046
|
-
* <View style={styles.pageStyle} key="1">
|
|
17047
|
-
* <Text>First page</Text>
|
|
17048
|
-
* </View>
|
|
17049
|
-
* <View style={styles.pageStyle} key="2">
|
|
17050
|
-
* <Text>Second page</Text>
|
|
17051
|
-
* </View>
|
|
17052
|
-
* </PagerView>
|
|
17053
|
-
* );
|
|
17054
|
-
* }
|
|
17055
|
-
*
|
|
17056
|
-
* ...
|
|
17057
|
-
*
|
|
17058
|
-
* var styles = {
|
|
17059
|
-
* ...
|
|
17060
|
-
* PagerView: {
|
|
17061
|
-
* flex: 1
|
|
17062
|
-
* },
|
|
17063
|
-
* pageStyle: {
|
|
17064
|
-
* alignItems: 'center',
|
|
17065
|
-
* padding: 20,
|
|
17066
|
-
* }
|
|
17067
|
-
* }
|
|
17068
|
-
* ```
|
|
17069
|
-
*/
|
|
17070
|
-
|
|
17071
|
-
var PagerView = /*#__PURE__*/function (_React$Component) {
|
|
17072
|
-
_inherits$1(PagerView, _React$Component);
|
|
17073
|
-
|
|
17074
|
-
var _super = _createSuper(PagerView);
|
|
17075
|
-
|
|
17076
|
-
function PagerView() {
|
|
17077
|
-
var _this;
|
|
17078
|
-
|
|
17079
|
-
_classCallCheck$1(this, PagerView);
|
|
17080
|
-
|
|
17081
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
17082
|
-
args[_key] = arguments[_key];
|
|
17083
|
-
}
|
|
17084
|
-
|
|
17085
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
17086
|
-
|
|
17087
|
-
_defineProperty(_assertThisInitialized$1(_this), "isScrolling", false);
|
|
17088
|
-
|
|
17089
|
-
_defineProperty(_assertThisInitialized$1(_this), "PagerView", /*#__PURE__*/React__default["default"].createRef());
|
|
17090
|
-
|
|
17091
|
-
_defineProperty(_assertThisInitialized$1(_this), "getInnerViewNode", function () {
|
|
17092
|
-
return _this.PagerView.current.getInnerViewNode();
|
|
17093
|
-
});
|
|
17094
|
-
|
|
17095
|
-
_defineProperty(_assertThisInitialized$1(_this), "_onPageScroll", function (e) {
|
|
17096
|
-
if (_this.props.onPageScroll) {
|
|
17097
|
-
_this.props.onPageScroll(e);
|
|
17098
|
-
} // Not implemented on iOS yet
|
|
17099
|
-
|
|
17100
|
-
|
|
17101
|
-
if (ReactNative.Platform.OS === 'android') {
|
|
17102
|
-
if (_this.props.keyboardDismissMode === 'on-drag') {
|
|
17103
|
-
ReactNative.Keyboard.dismiss();
|
|
17104
|
-
}
|
|
17105
|
-
}
|
|
17106
|
-
});
|
|
17107
|
-
|
|
17108
|
-
_defineProperty(_assertThisInitialized$1(_this), "_onPageScrollStateChanged", function (e) {
|
|
17109
|
-
if (_this.props.onPageScrollStateChanged) {
|
|
17110
|
-
_this.props.onPageScrollStateChanged(e);
|
|
17111
|
-
}
|
|
17112
|
-
|
|
17113
|
-
_this.isScrolling = e.nativeEvent.pageScrollState === 'dragging';
|
|
17114
|
-
});
|
|
17115
|
-
|
|
17116
|
-
_defineProperty(_assertThisInitialized$1(_this), "_onPageSelected", function (e) {
|
|
17117
|
-
if (_this.props.onPageSelected) {
|
|
17118
|
-
_this.props.onPageSelected(e);
|
|
17119
|
-
}
|
|
17120
|
-
});
|
|
17121
|
-
|
|
17122
|
-
_defineProperty(_assertThisInitialized$1(_this), "setPage", function (selectedPage) {
|
|
17123
|
-
ReactNative.UIManager.dispatchViewManagerCommand(ReactNative__default["default"].findNodeHandle(_assertThisInitialized$1(_this)), getViewManagerConfig().Commands.setPage, [selectedPage]);
|
|
17124
|
-
});
|
|
17125
|
-
|
|
17126
|
-
_defineProperty(_assertThisInitialized$1(_this), "setPageWithoutAnimation", function (selectedPage) {
|
|
17127
|
-
ReactNative.UIManager.dispatchViewManagerCommand(ReactNative__default["default"].findNodeHandle(_assertThisInitialized$1(_this)), getViewManagerConfig().Commands.setPageWithoutAnimation, [selectedPage]);
|
|
17128
|
-
});
|
|
17129
|
-
|
|
17130
|
-
_defineProperty(_assertThisInitialized$1(_this), "setScrollEnabled", function (scrollEnabled) {
|
|
17131
|
-
ReactNative.UIManager.dispatchViewManagerCommand(ReactNative__default["default"].findNodeHandle(_assertThisInitialized$1(_this)), getViewManagerConfig().Commands.setScrollEnabled, [scrollEnabled]);
|
|
17132
|
-
});
|
|
17133
|
-
|
|
17134
|
-
_defineProperty(_assertThisInitialized$1(_this), "_onMoveShouldSetResponderCapture", function () {
|
|
17135
|
-
return _this.isScrolling;
|
|
17136
|
-
});
|
|
17137
|
-
|
|
17138
|
-
return _this;
|
|
17139
|
-
}
|
|
17140
|
-
|
|
17141
|
-
_createClass$1(PagerView, [{
|
|
17142
|
-
key: "deducedLayoutDirection",
|
|
17143
|
-
get: function get() {
|
|
17144
|
-
var shouldUseDeviceRtlSetup = !this.props.layoutDirection || this.props.layoutDirection === 'locale';
|
|
17145
|
-
|
|
17146
|
-
if (shouldUseDeviceRtlSetup) {
|
|
17147
|
-
return ReactNative.I18nManager.isRTL ? 'rtl' : 'ltr';
|
|
17148
|
-
} else {
|
|
17149
|
-
return this.props.layoutDirection;
|
|
17150
|
-
}
|
|
17151
|
-
}
|
|
17152
|
-
}, {
|
|
17153
|
-
key: "render",
|
|
17154
|
-
value: function render() {
|
|
17155
|
-
return /*#__PURE__*/React__default["default"].createElement(PagerViewViewManager, _extends({}, this.props, {
|
|
17156
|
-
ref: this.PagerView
|
|
17157
|
-
/** TODO: Fix ref type */
|
|
17158
|
-
,
|
|
17159
|
-
style: this.props.style,
|
|
17160
|
-
layoutDirection: this.deducedLayoutDirection,
|
|
17161
|
-
onPageScroll: this._onPageScroll,
|
|
17162
|
-
onPageScrollStateChanged: this._onPageScrollStateChanged,
|
|
17163
|
-
onPageSelected: this._onPageSelected,
|
|
17164
|
-
onMoveShouldSetResponderCapture: this._onMoveShouldSetResponderCapture,
|
|
17165
|
-
children: childrenWithOverriddenStyle(this.props.children)
|
|
17166
|
-
}));
|
|
17167
|
-
}
|
|
17168
|
-
}]);
|
|
17169
|
-
|
|
17170
|
-
return PagerView;
|
|
17171
|
-
}(React__default["default"].Component);
|
|
17172
|
-
|
|
17173
|
-
var AnimatedPagerView = ReactNative.Animated.createAnimatedComponent(PagerView);
|
|
17174
|
-
var TabContainer$1 = index$2(ReactNative.View)({
|
|
14905
|
+
var AnimatedPagerView = reactNative.Animated.createAnimatedComponent(PagerView__default["default"]);
|
|
14906
|
+
var TabContainer$1 = index$2(reactNative.View)({
|
|
17175
14907
|
flex: 1,
|
|
17176
14908
|
overflow: 'hidden'
|
|
17177
14909
|
});
|
|
17178
|
-
var HeaderTabWrapper$1 = index$2(
|
|
14910
|
+
var HeaderTabWrapper$1 = index$2(reactNative.View)(function (_ref) {
|
|
17179
14911
|
var theme = _ref.theme,
|
|
17180
14912
|
themeInsets = _ref.themeInsets;
|
|
17181
14913
|
return {
|
|
@@ -17184,10 +14916,10 @@ var HeaderTabWrapper$1 = index$2(ReactNative.View)(function (_ref) {
|
|
|
17184
14916
|
borderBottomWidth: theme.__hd__.tabs.borderWidths.headerBottom
|
|
17185
14917
|
};
|
|
17186
14918
|
});
|
|
17187
|
-
var HeaderTab = index$2(
|
|
14919
|
+
var HeaderTab = index$2(reactNative.View)({
|
|
17188
14920
|
flexDirection: 'row'
|
|
17189
14921
|
});
|
|
17190
|
-
var HeaderTabItem$1 = index$2(
|
|
14922
|
+
var HeaderTabItem$1 = index$2(reactNative.View)(function (_ref2) {
|
|
17191
14923
|
var theme = _ref2.theme;
|
|
17192
14924
|
return {
|
|
17193
14925
|
flex: 1,
|
|
@@ -17198,10 +14930,10 @@ var HeaderTabItem$1 = index$2(ReactNative.View)(function (_ref2) {
|
|
|
17198
14930
|
var ContentWrapper$1 = index$2(AnimatedPagerView)({
|
|
17199
14931
|
flex: 1
|
|
17200
14932
|
});
|
|
17201
|
-
var TabScreen$1 = index$2(
|
|
14933
|
+
var TabScreen$1 = index$2(reactNative.View)({
|
|
17202
14934
|
flex: 1
|
|
17203
14935
|
});
|
|
17204
|
-
var StyledIndicator = index$2(
|
|
14936
|
+
var StyledIndicator = index$2(reactNative.Animated.View)(function (_ref3) {
|
|
17205
14937
|
var theme = _ref3.theme,
|
|
17206
14938
|
themeWidth = _ref3.themeWidth;
|
|
17207
14939
|
return {
|
|
@@ -17220,7 +14952,7 @@ var ActiveTabIndicator = function ActiveTabIndicator(_ref) {
|
|
|
17220
14952
|
tabsWidth = _ref.tabsWidth;
|
|
17221
14953
|
var inputRange = [0, tabsLength];
|
|
17222
14954
|
var indicatorWidth = tabsWidth / tabsLength;
|
|
17223
|
-
var translateX =
|
|
14955
|
+
var translateX = reactNative.Animated.add(scrollOffsetAnimatedValue, positionAnimatedValue).interpolate({
|
|
17224
14956
|
inputRange: inputRange,
|
|
17225
14957
|
outputRange: [0, tabsLength * indicatorWidth]
|
|
17226
14958
|
});
|
|
@@ -17234,17 +14966,17 @@ var ActiveTabIndicator = function ActiveTabIndicator(_ref) {
|
|
|
17234
14966
|
});
|
|
17235
14967
|
};
|
|
17236
14968
|
|
|
17237
|
-
var TabScreen = index$2(
|
|
14969
|
+
var TabScreen = index$2(reactNative.View)({
|
|
17238
14970
|
flex: 1
|
|
17239
14971
|
});
|
|
17240
|
-
var TabContainer = index$2(
|
|
14972
|
+
var TabContainer = index$2(reactNative.View)({
|
|
17241
14973
|
flex: 1,
|
|
17242
14974
|
overflow: 'hidden'
|
|
17243
14975
|
});
|
|
17244
|
-
var ContentWrapper = index$2(
|
|
14976
|
+
var ContentWrapper = index$2(PagerView__default["default"])({
|
|
17245
14977
|
flex: 1
|
|
17246
14978
|
});
|
|
17247
|
-
var HeaderTabWrapper = index$2(
|
|
14979
|
+
var HeaderTabWrapper = index$2(reactNative.View)(function (_ref) {
|
|
17248
14980
|
var theme = _ref.theme,
|
|
17249
14981
|
themeInsets = _ref.themeInsets;
|
|
17250
14982
|
return {
|
|
@@ -17253,21 +14985,21 @@ var HeaderTabWrapper = index$2(ReactNative.View)(function (_ref) {
|
|
|
17253
14985
|
borderBottomWidth: theme.__hd__.tabs.borderWidths.headerBottom
|
|
17254
14986
|
};
|
|
17255
14987
|
});
|
|
17256
|
-
var HeaderTabItem = index$2(
|
|
14988
|
+
var HeaderTabItem = index$2(reactNative.Animated.View)(function (_ref2) {
|
|
17257
14989
|
var theme = _ref2.theme;
|
|
17258
14990
|
return {
|
|
17259
14991
|
paddingHorizontal: theme.__hd__.tabs.space.itemHorizontalPadding,
|
|
17260
14992
|
paddingVertical: theme.__hd__.tabs.space.itemVerticalPadding
|
|
17261
14993
|
};
|
|
17262
14994
|
});
|
|
17263
|
-
var HeaderTabItemOutlineWrapper = index$2(
|
|
14995
|
+
var HeaderTabItemOutlineWrapper = index$2(reactNative.View)(function (_ref3) {
|
|
17264
14996
|
var theme = _ref3.theme;
|
|
17265
14997
|
return _objectSpread2({
|
|
17266
14998
|
paddingHorizontal: theme.__hd__.tabs.space.itemHorizontalPadding,
|
|
17267
14999
|
paddingVertical: theme.__hd__.tabs.space.itemVerticalPadding
|
|
17268
|
-
},
|
|
15000
|
+
}, reactNative.StyleSheet.absoluteFillObject);
|
|
17269
15001
|
});
|
|
17270
|
-
var HeaderTabItemOutline = index$2(
|
|
15002
|
+
var HeaderTabItemOutline = index$2(reactNative.Animated.View)(function (_ref4) {
|
|
17271
15003
|
var theme = _ref4.theme,
|
|
17272
15004
|
themeActive = _ref4.themeActive;
|
|
17273
15005
|
return {
|
|
@@ -17275,7 +15007,7 @@ var HeaderTabItemOutline = index$2(ReactNative.Animated.View)(function (_ref4) {
|
|
|
17275
15007
|
backgroundColor: themeActive ? theme.__hd__.tabs.colors.activeBackground : undefined
|
|
17276
15008
|
};
|
|
17277
15009
|
});
|
|
17278
|
-
var HeaderTabItemWrapper = index$2(
|
|
15010
|
+
var HeaderTabItemWrapper = index$2(reactNative.View)(function (_ref5) {
|
|
17279
15011
|
var theme = _ref5.theme;
|
|
17280
15012
|
return {
|
|
17281
15013
|
paddingHorizontal: theme.__hd__.tabs.space.outlineHorizontalPadding,
|
|
@@ -17289,7 +15021,7 @@ var useAnimatedValueArray = function useAnimatedValueArray(initialValues) {
|
|
|
17289
15021
|
initialValues.forEach(function (initialValue, i) {
|
|
17290
15022
|
var _refs$current$i;
|
|
17291
15023
|
|
|
17292
|
-
refs.current[i] = (_refs$current$i = refs.current[i]) !== null && _refs$current$i !== void 0 ? _refs$current$i : new
|
|
15024
|
+
refs.current[i] = (_refs$current$i = refs.current[i]) !== null && _refs$current$i !== void 0 ? _refs$current$i : new reactNative.Animated.Value(initialValue);
|
|
17293
15025
|
});
|
|
17294
15026
|
return refs.current;
|
|
17295
15027
|
};
|
|
@@ -17336,7 +15068,7 @@ var ScrollableTab = function ScrollableTab(_ref2) {
|
|
|
17336
15068
|
var flatListRef = React__default["default"].useRef(null);
|
|
17337
15069
|
var pagerViewRef = React__default["default"].useRef(null);
|
|
17338
15070
|
var insets = reactNativeSafeAreaContext.useSafeAreaInsets();
|
|
17339
|
-
var theme = useTheme();
|
|
15071
|
+
var theme = useTheme$1();
|
|
17340
15072
|
var selectedTabIndex = tabs.findIndex(function (item) {
|
|
17341
15073
|
return item.key === selectedTabKey;
|
|
17342
15074
|
});
|
|
@@ -17353,8 +15085,8 @@ var ScrollableTab = function ScrollableTab(_ref2) {
|
|
|
17353
15085
|
});
|
|
17354
15086
|
}
|
|
17355
15087
|
|
|
17356
|
-
var animation =
|
|
17357
|
-
return
|
|
15088
|
+
var animation = reactNative.Animated.parallel(_toConsumableArray(tabs.map(function (_, i) {
|
|
15089
|
+
return reactNative.Animated.timing(tabsAnims[i], {
|
|
17358
15090
|
toValue: i === selectedTabIndex ? 1 : 0,
|
|
17359
15091
|
duration: 150,
|
|
17360
15092
|
useNativeDriver: true
|
|
@@ -17370,7 +15102,7 @@ var ScrollableTab = function ScrollableTab(_ref2) {
|
|
|
17370
15102
|
}, /*#__PURE__*/React__default["default"].createElement(HeaderTabWrapper, {
|
|
17371
15103
|
themeInsets: insets,
|
|
17372
15104
|
style: barStyle
|
|
17373
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
15105
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactNative.FlatList, {
|
|
17374
15106
|
ref: flatListRef,
|
|
17375
15107
|
horizontal: true,
|
|
17376
15108
|
data: tabs,
|
|
@@ -17413,7 +15145,7 @@ var ScrollableTab = function ScrollableTab(_ref2) {
|
|
|
17413
15145
|
color: active ? theme.__hd__.tabs.colors.active : theme.__hd__.tabs.colors.inactive,
|
|
17414
15146
|
active: active
|
|
17415
15147
|
});
|
|
17416
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
15148
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.TouchableWithoutFeedback, {
|
|
17417
15149
|
key: key,
|
|
17418
15150
|
onPress: function onPress() {
|
|
17419
15151
|
var _pagerViewRef$current;
|
|
@@ -17492,14 +15224,14 @@ var Tabs = function Tabs(_ref2) {
|
|
|
17492
15224
|
lazy = _ref2$lazy === void 0 ? false : _ref2$lazy,
|
|
17493
15225
|
_ref2$lazyPreloadDist = _ref2.lazyPreloadDistance,
|
|
17494
15226
|
lazyPreloadDistance = _ref2$lazyPreloadDist === void 0 ? 1 : _ref2$lazyPreloadDist;
|
|
17495
|
-
var theme = useTheme();
|
|
15227
|
+
var theme = useTheme$1();
|
|
17496
15228
|
var insets = reactNativeSafeAreaContext.useSafeAreaInsets();
|
|
17497
15229
|
var pagerViewRef = React__default["default"].useRef(null);
|
|
17498
15230
|
var selectedTabIndex = tabs.findIndex(function (item) {
|
|
17499
15231
|
return item.key === selectedTabKey;
|
|
17500
15232
|
});
|
|
17501
|
-
var scrollOffsetAnimatedValue = React__default["default"].useRef(new
|
|
17502
|
-
var positionAnimatedValue = React__default["default"].useRef(new
|
|
15233
|
+
var scrollOffsetAnimatedValue = React__default["default"].useRef(new reactNative.Animated.Value(0)).current;
|
|
15234
|
+
var positionAnimatedValue = React__default["default"].useRef(new reactNative.Animated.Value(0)).current;
|
|
17503
15235
|
|
|
17504
15236
|
var _React$useState = React__default["default"].useState(0),
|
|
17505
15237
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -17511,7 +15243,7 @@ var Tabs = function Tabs(_ref2) {
|
|
|
17511
15243
|
}, /*#__PURE__*/React__default["default"].createElement(HeaderTabWrapper$1, {
|
|
17512
15244
|
themeInsets: insets,
|
|
17513
15245
|
style: barStyle
|
|
17514
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
15246
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactNative.View, null, /*#__PURE__*/React__default["default"].createElement(HeaderTab, {
|
|
17515
15247
|
onLayout: function onLayout(e) {
|
|
17516
15248
|
var width = e.nativeEvent.layout.width;
|
|
17517
15249
|
|
|
@@ -17533,7 +15265,7 @@ var Tabs = function Tabs(_ref2) {
|
|
|
17533
15265
|
color: theme.__hd__.tabs.colors.text,
|
|
17534
15266
|
active: active
|
|
17535
15267
|
});
|
|
17536
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
15268
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.TouchableWithoutFeedback, {
|
|
17537
15269
|
key: key,
|
|
17538
15270
|
onPress: function onPress() {
|
|
17539
15271
|
var _pagerViewRef$current;
|
|
@@ -17561,7 +15293,7 @@ var Tabs = function Tabs(_ref2) {
|
|
|
17561
15293
|
onTabPress(selectedItem.key);
|
|
17562
15294
|
}
|
|
17563
15295
|
},
|
|
17564
|
-
onPageScroll:
|
|
15296
|
+
onPageScroll: reactNative.Animated.event([{
|
|
17565
15297
|
nativeEvent: {
|
|
17566
15298
|
offset: scrollOffsetAnimatedValue,
|
|
17567
15299
|
position: positionAnimatedValue
|
|
@@ -17596,7 +15328,7 @@ var BACKGROUND_INTENTS = {
|
|
|
17596
15328
|
danger: 'dangerBackground',
|
|
17597
15329
|
info: 'infoBackground'
|
|
17598
15330
|
};
|
|
17599
|
-
var StyledView = index$2(
|
|
15331
|
+
var StyledView = index$2(reactNative.View)(function (_ref) {
|
|
17600
15332
|
var themeIntent = _ref.themeIntent,
|
|
17601
15333
|
theme = _ref.theme;
|
|
17602
15334
|
return {
|
|
@@ -17608,7 +15340,7 @@ var StyledView = index$2(ReactNative.View)(function (_ref) {
|
|
|
17608
15340
|
backgroundColor: theme.__hd__.tag.colors[BACKGROUND_INTENTS[themeIntent]]
|
|
17609
15341
|
};
|
|
17610
15342
|
});
|
|
17611
|
-
var StyledText = index$2(
|
|
15343
|
+
var StyledText = index$2(reactNative.Text)(function (_ref2) {
|
|
17612
15344
|
var themeIntent = _ref2.themeIntent,
|
|
17613
15345
|
theme = _ref2.theme;
|
|
17614
15346
|
return {
|
|
@@ -17629,9 +15361,9 @@ var Tag = function Tag(_ref) {
|
|
|
17629
15361
|
intent = _ref$intent === void 0 ? 'info' : _ref$intent,
|
|
17630
15362
|
style = _ref.style,
|
|
17631
15363
|
testID = _ref.testID,
|
|
17632
|
-
nativeProps = _objectWithoutProperties
|
|
15364
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded);
|
|
17633
15365
|
|
|
17634
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledView, _extends$
|
|
15366
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledView, _extends$1({}, nativeProps, {
|
|
17635
15367
|
themeIntent: intent,
|
|
17636
15368
|
style: style,
|
|
17637
15369
|
testID: testID
|