@hero-design/rn 7.5.0 → 7.6.1-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +2 -2
- package/.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 +647 -2551
- 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 +798 -2700
- 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 +2 -4
- package/playground/package.json +3 -3
- package/playground/src/App.tsx +6 -0
- package/playground/src/ContentNavigator.tsx +3 -10
- package/playground/src/Select.tsx +32 -0
- package/playground/src/Switch.tsx +80 -0
- package/rollup.config.js +7 -1
- package/src/components/BottomSheet/Header.tsx +1 -1
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +8 -8
- package/src/components/BottomSheet/index.tsx +6 -0
- package/src/components/Radio/RadioGroup.tsx +31 -7
- package/src/components/Radio/types.ts +1 -0
- package/src/components/SectionHeading/StyledHeading.tsx +5 -5
- package/src/components/SectionHeading/__tests__/{StyledHeading.tsx → StyledHeading.spec.tsx} +0 -0
- package/src/components/SectionHeading/__tests__/__snapshots__/{StyledHeading.tsx.snap → StyledHeading.spec.tsx.snap} +0 -0
- package/src/components/Select/MultiSelect/Footer.tsx +15 -0
- package/src/components/Select/MultiSelect/OptionList.tsx +76 -0
- package/src/components/Select/MultiSelect/StyledMultiSelect.tsx +30 -0
- package/src/components/Select/MultiSelect/__tests__/StyledMultiSelect.spec.tsx +49 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/StyledMultiSelect.spec.tsx.snap +108 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +1630 -0
- package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +94 -0
- package/src/components/Select/MultiSelect/index.tsx +103 -0
- package/src/components/Select/MultiSelect/types.ts +1 -0
- package/src/components/Select/index.tsx +5 -0
- package/src/components/Switch/StyledSwitch.tsx +50 -0
- package/src/components/Switch/__tests__/StyledHeading.spec.tsx +42 -0
- package/src/components/Switch/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +74 -0
- package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +129 -0
- package/src/components/Switch/__tests__/index.spec.tsx +24 -0
- package/src/components/Switch/index.tsx +87 -0
- package/src/components/TextInput/StyledTextInput.tsx +2 -6
- package/src/components/TextInput/__tests__/StyledTextInput.spec.tsx +1 -7
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +1 -22
- package/src/components/TextInput/__tests__/index.spec.tsx +2 -1
- package/src/components/TextInput/index.tsx +19 -6
- package/src/index.ts +5 -2
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +58 -1
- package/src/theme/components/sectionHeading.ts +18 -0
- package/src/theme/components/select.ts +23 -0
- package/src/theme/components/switch.ts +50 -0
- package/src/theme/components/textInput.ts +1 -1
- package/src/theme/global/colors.ts +1 -0
- package/src/theme/index.ts +27 -4
- 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 +5 -1
- 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 +11 -8
- 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 +1 -1
- package/types/components/Radio/types.d.ts +5 -0
- package/types/components/SectionHeading/StyledHeading.d.ts +0 -0
- package/types/components/SectionHeading/__tests__/StyledHeading.d.ts +0 -0
- package/types/components/SectionHeading/__tests__/StyledHeading.spec.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/Select/MultiSelect/Footer.d.ts +5 -0
- package/types/components/Select/MultiSelect/OptionList.d.ts +3 -0
- package/types/components/Select/MultiSelect/StyledMultiSelect.d.ts +26 -0
- package/types/components/Select/MultiSelect/__tests__/StyledMultiSelect.spec.d.ts +1 -0
- package/types/components/Select/MultiSelect/__tests__/index.spec.d.ts +1 -0
- package/types/components/Select/MultiSelect/index.d.ts +39 -0
- package/types/components/Select/MultiSelect/types.d.ts +5 -0
- package/types/components/Select/index.d.ts +5 -0
- package/types/components/Spinner/AnimatedSpinner.d.ts +0 -0
- package/types/components/Spinner/StyledSpinner.d.ts +0 -0
- package/types/components/Spinner/__tests__/AnimatedSpinner.spec.d.ts +0 -0
- package/types/components/Spinner/__tests__/StyledSpinner.spec.d.ts +0 -0
- package/types/components/Spinner/__tests__/index.spec.d.ts +0 -0
- package/types/components/Spinner/index.d.ts +0 -0
- package/types/components/Switch/StyledSwitch.d.ts +36 -0
- package/types/components/Switch/__tests__/StyledHeading.spec.d.ts +1 -0
- package/types/components/Switch/__tests__/index.spec.d.ts +1 -0
- package/types/components/Switch/index.d.ts +30 -0
- package/types/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 +1 -5
- 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 +13 -5
- 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 +4 -3
- 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/sectionHeading.d.ts +13 -0
- package/types/theme/components/select.d.ts +17 -0
- package/types/theme/components/spinner.d.ts +0 -0
- package/types/theme/components/switch.d.ts +32 -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 +1 -1
- 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 +1 -0
- package/types/theme/global/index.d.ts +1 -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 +18 -3
- 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/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) {
|
|
@@ -1750,13 +1643,14 @@ var systemPalette = {
|
|
|
1750
1643
|
invertedText: palette.white,
|
|
1751
1644
|
outline: palette.greyLight60,
|
|
1752
1645
|
archived: palette.greyLight45,
|
|
1753
|
-
black: palette.black
|
|
1646
|
+
black: palette.black,
|
|
1647
|
+
inactiveBackground: palette.greyDark30
|
|
1754
1648
|
};
|
|
1755
1649
|
|
|
1756
1650
|
var BASE_WIDTH = 390; // Based on iPhone 13's viewport size
|
|
1757
1651
|
|
|
1758
1652
|
var horizontalScale = function horizontalScale(size) {
|
|
1759
|
-
var _Dimensions$get =
|
|
1653
|
+
var _Dimensions$get = reactNative.Dimensions.get('window'),
|
|
1760
1654
|
width = _Dimensions$get.width,
|
|
1761
1655
|
height = _Dimensions$get.height;
|
|
1762
1656
|
|
|
@@ -2257,25 +2151,6 @@ var getProgressTheme = function getProgressTheme(theme) {
|
|
|
2257
2151
|
};
|
|
2258
2152
|
};
|
|
2259
2153
|
|
|
2260
|
-
var getSpinnerTheme = function getSpinnerTheme(theme) {
|
|
2261
|
-
var color = {
|
|
2262
|
-
"default": theme.colors.primary
|
|
2263
|
-
};
|
|
2264
|
-
var space = {
|
|
2265
|
-
spinnerDot: theme.space.medium,
|
|
2266
|
-
spinnerDotPadding: theme.space.small,
|
|
2267
|
-
spinnerTextPaddingTop: theme.space.small
|
|
2268
|
-
};
|
|
2269
|
-
var radii = {
|
|
2270
|
-
"default": theme.radii.medium
|
|
2271
|
-
};
|
|
2272
|
-
return {
|
|
2273
|
-
color: color,
|
|
2274
|
-
space: space,
|
|
2275
|
-
radii: radii
|
|
2276
|
-
};
|
|
2277
|
-
};
|
|
2278
|
-
|
|
2279
2154
|
var getRadioTheme = function getRadioTheme(theme) {
|
|
2280
2155
|
var colors = {
|
|
2281
2156
|
circle: theme.colors.black,
|
|
@@ -2307,6 +2182,102 @@ var getRadioTheme = function getRadioTheme(theme) {
|
|
|
2307
2182
|
};
|
|
2308
2183
|
};
|
|
2309
2184
|
|
|
2185
|
+
var getSectionHeadingTheme = function getSectionHeadingTheme(theme) {
|
|
2186
|
+
var colors = {
|
|
2187
|
+
background: theme.colors.outline
|
|
2188
|
+
};
|
|
2189
|
+
var space = {
|
|
2190
|
+
headingVerticalPadding: theme.space.small,
|
|
2191
|
+
headingHorizontalPadding: theme.space.medium,
|
|
2192
|
+
headingMarginBottom: theme.space.medium,
|
|
2193
|
+
iconMarginRight: theme.space.small
|
|
2194
|
+
};
|
|
2195
|
+
return {
|
|
2196
|
+
colors: colors,
|
|
2197
|
+
space: space
|
|
2198
|
+
};
|
|
2199
|
+
};
|
|
2200
|
+
|
|
2201
|
+
var getSelectTheme = function getSelectTheme(theme) {
|
|
2202
|
+
var colors = {
|
|
2203
|
+
option: theme.colors.platformBackground,
|
|
2204
|
+
checkedOption: theme.colors.primaryBackground,
|
|
2205
|
+
footerText: theme.colors.primary
|
|
2206
|
+
};
|
|
2207
|
+
var space = {
|
|
2208
|
+
optionPadding: theme.space.medium,
|
|
2209
|
+
optionListPadding: theme.space.medium,
|
|
2210
|
+
optionListSpacing: theme.space.xsmall
|
|
2211
|
+
};
|
|
2212
|
+
var radii = {
|
|
2213
|
+
option: theme.radii.base
|
|
2214
|
+
};
|
|
2215
|
+
return {
|
|
2216
|
+
space: space,
|
|
2217
|
+
colors: colors,
|
|
2218
|
+
radii: radii
|
|
2219
|
+
};
|
|
2220
|
+
};
|
|
2221
|
+
|
|
2222
|
+
var getSpinnerTheme = function getSpinnerTheme(theme) {
|
|
2223
|
+
var color = {
|
|
2224
|
+
"default": theme.colors.primary
|
|
2225
|
+
};
|
|
2226
|
+
var space = {
|
|
2227
|
+
spinnerDot: theme.space.medium,
|
|
2228
|
+
spinnerDotPadding: theme.space.small,
|
|
2229
|
+
spinnerTextPaddingTop: theme.space.small
|
|
2230
|
+
};
|
|
2231
|
+
var radii = {
|
|
2232
|
+
"default": theme.radii.medium
|
|
2233
|
+
};
|
|
2234
|
+
return {
|
|
2235
|
+
color: color,
|
|
2236
|
+
space: space,
|
|
2237
|
+
radii: radii
|
|
2238
|
+
};
|
|
2239
|
+
};
|
|
2240
|
+
|
|
2241
|
+
var getSwitchTheme = function getSwitchTheme(theme) {
|
|
2242
|
+
var colors = {
|
|
2243
|
+
thumb: theme.colors.platformBackground,
|
|
2244
|
+
active: theme.colors.primary,
|
|
2245
|
+
inactive: theme.colors.inactiveBackground
|
|
2246
|
+
};
|
|
2247
|
+
var thumbSizes = {
|
|
2248
|
+
small: theme.space.medium,
|
|
2249
|
+
medium: theme.space.medium * 1.3
|
|
2250
|
+
};
|
|
2251
|
+
var widths = {
|
|
2252
|
+
small: theme.space.xxxlarge,
|
|
2253
|
+
medium: theme.space.xxxxlarge
|
|
2254
|
+
};
|
|
2255
|
+
var heights = {
|
|
2256
|
+
small: theme.space.large,
|
|
2257
|
+
medium: theme.space.large * 1.2
|
|
2258
|
+
};
|
|
2259
|
+
var spaces = {
|
|
2260
|
+
small: theme.space.xsmall,
|
|
2261
|
+
medium: theme.space.xsmall,
|
|
2262
|
+
inactive: 0
|
|
2263
|
+
};
|
|
2264
|
+
var radii = {
|
|
2265
|
+
rounded: theme.radii.rounded
|
|
2266
|
+
};
|
|
2267
|
+
var borderWidths = {
|
|
2268
|
+
"default": theme.borderWidths.base
|
|
2269
|
+
};
|
|
2270
|
+
return {
|
|
2271
|
+
colors: colors,
|
|
2272
|
+
thumbSizes: thumbSizes,
|
|
2273
|
+
widths: widths,
|
|
2274
|
+
heights: heights,
|
|
2275
|
+
spaces: spaces,
|
|
2276
|
+
radii: radii,
|
|
2277
|
+
borderWidths: borderWidths
|
|
2278
|
+
};
|
|
2279
|
+
};
|
|
2280
|
+
|
|
2310
2281
|
var getTabsTheme = function getTabsTheme(theme) {
|
|
2311
2282
|
var colors = {
|
|
2312
2283
|
active: theme.colors.primary,
|
|
@@ -2387,7 +2358,7 @@ var getTextInputTheme = function getTextInputTheme(theme) {
|
|
|
2387
2358
|
labelLeft: theme.space.medium,
|
|
2388
2359
|
labelTop: theme.lineHeights.small / -2,
|
|
2389
2360
|
labelHorizontalPadding: theme.space.xsmall,
|
|
2390
|
-
|
|
2361
|
+
inputHorizontalMargin: theme.space.small
|
|
2391
2362
|
};
|
|
2392
2363
|
var fontSizes = {
|
|
2393
2364
|
text: theme.fontSizes.large
|
|
@@ -2456,9 +2427,12 @@ var getTheme = function getTheme() {
|
|
|
2456
2427
|
drawer: getDrawerTheme(globalTheme),
|
|
2457
2428
|
fab: getFABTheme(globalTheme),
|
|
2458
2429
|
icon: getIconTheme(globalTheme),
|
|
2459
|
-
spinner: getSpinnerTheme(globalTheme),
|
|
2460
2430
|
progress: getProgressTheme(globalTheme),
|
|
2461
2431
|
radio: getRadioTheme(globalTheme),
|
|
2432
|
+
sectionHeading: getSectionHeadingTheme(globalTheme),
|
|
2433
|
+
select: getSelectTheme(globalTheme),
|
|
2434
|
+
spinner: getSpinnerTheme(globalTheme),
|
|
2435
|
+
"switch": getSwitchTheme(globalTheme),
|
|
2462
2436
|
tabs: getTabsTheme(globalTheme),
|
|
2463
2437
|
tag: getTagTheme(globalTheme),
|
|
2464
2438
|
textInput: getTextInputTheme(globalTheme),
|
|
@@ -2468,2075 +2442,114 @@ var getTheme = function getTheme() {
|
|
|
2468
2442
|
};
|
|
2469
2443
|
|
|
2470
2444
|
var theme = getTheme();
|
|
2445
|
+
var ThemeProvider = ThemeProvider$1;
|
|
2446
|
+
var useTheme = useTheme$1;
|
|
2471
2447
|
|
|
2472
2448
|
function getDefaultExportFromCjs (x) {
|
|
2473
2449
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
2474
2450
|
}
|
|
2475
2451
|
|
|
2476
|
-
var
|
|
2477
|
-
|
|
2478
|
-
function _interopRequireDefault$5(obj) {
|
|
2479
|
-
return obj && obj.__esModule ? obj : {
|
|
2480
|
-
"default": obj
|
|
2481
|
-
};
|
|
2482
|
-
}
|
|
2483
|
-
|
|
2484
|
-
var interopRequireDefault = _interopRequireDefault$5;
|
|
2485
|
-
|
|
2486
|
-
var createIconSet$1 = {};
|
|
2487
|
-
|
|
2488
|
-
function _arrayWithoutHoles(arr) {
|
|
2489
|
-
if (Array.isArray(arr)) {
|
|
2490
|
-
for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {
|
|
2491
|
-
arr2[i] = arr[i];
|
|
2492
|
-
}
|
|
2493
|
-
|
|
2494
|
-
return arr2;
|
|
2495
|
-
}
|
|
2496
|
-
}
|
|
2497
|
-
|
|
2498
|
-
var arrayWithoutHoles$1 = _arrayWithoutHoles;
|
|
2499
|
-
|
|
2500
|
-
function _iterableToArray(iter) {
|
|
2501
|
-
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
|
|
2502
|
-
}
|
|
2503
|
-
|
|
2504
|
-
var iterableToArray$1 = _iterableToArray;
|
|
2452
|
+
var cssToReactNative = {};
|
|
2505
2453
|
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2454
|
+
var openParentheses = "(".charCodeAt(0);
|
|
2455
|
+
var closeParentheses = ")".charCodeAt(0);
|
|
2456
|
+
var singleQuote = "'".charCodeAt(0);
|
|
2457
|
+
var doubleQuote = '"'.charCodeAt(0);
|
|
2458
|
+
var backslash = "\\".charCodeAt(0);
|
|
2459
|
+
var slash = "/".charCodeAt(0);
|
|
2460
|
+
var comma = ",".charCodeAt(0);
|
|
2461
|
+
var colon = ":".charCodeAt(0);
|
|
2462
|
+
var star = "*".charCodeAt(0);
|
|
2463
|
+
var uLower = "u".charCodeAt(0);
|
|
2464
|
+
var uUpper = "U".charCodeAt(0);
|
|
2465
|
+
var plus$1 = "+".charCodeAt(0);
|
|
2466
|
+
var isUnicodeRange = /^[a-f0-9?-]+$/i;
|
|
2509
2467
|
|
|
2510
|
-
var
|
|
2468
|
+
var parse$1 = function parse(input) {
|
|
2469
|
+
var tokens = [];
|
|
2470
|
+
var value = input;
|
|
2471
|
+
var next, quote, prev, token, escape, escapePos, whitespacePos, parenthesesOpenPos;
|
|
2472
|
+
var pos = 0;
|
|
2473
|
+
var code = value.charCodeAt(pos);
|
|
2474
|
+
var max = value.length;
|
|
2475
|
+
var stack = [{
|
|
2476
|
+
nodes: tokens
|
|
2477
|
+
}];
|
|
2478
|
+
var balanced = 0;
|
|
2479
|
+
var parent;
|
|
2480
|
+
var name = "";
|
|
2481
|
+
var before = "";
|
|
2482
|
+
var after = "";
|
|
2511
2483
|
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2484
|
+
while (pos < max) {
|
|
2485
|
+
// Whitespaces
|
|
2486
|
+
if (code <= 32) {
|
|
2487
|
+
next = pos;
|
|
2515
2488
|
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2489
|
+
do {
|
|
2490
|
+
next += 1;
|
|
2491
|
+
code = value.charCodeAt(next);
|
|
2492
|
+
} while (code <= 32);
|
|
2519
2493
|
|
|
2520
|
-
|
|
2494
|
+
token = value.slice(pos, next);
|
|
2495
|
+
prev = tokens[tokens.length - 1];
|
|
2521
2496
|
|
|
2522
|
-
|
|
2497
|
+
if (code === closeParentheses && balanced) {
|
|
2498
|
+
after = token;
|
|
2499
|
+
} else if (prev && prev.type === "div") {
|
|
2500
|
+
prev.after = token;
|
|
2501
|
+
} else if (code === comma || code === colon || code === slash && value.charCodeAt(next + 1) !== star && (!parent || parent && parent.type === "function" && parent.value !== "calc")) {
|
|
2502
|
+
before = token;
|
|
2503
|
+
} else {
|
|
2504
|
+
tokens.push({
|
|
2505
|
+
type: "space",
|
|
2506
|
+
sourceIndex: pos,
|
|
2507
|
+
value: token
|
|
2508
|
+
});
|
|
2509
|
+
}
|
|
2523
2510
|
|
|
2524
|
-
|
|
2525
|
-
|
|
2511
|
+
pos = next; // Quotes
|
|
2512
|
+
} else if (code === singleQuote || code === doubleQuote) {
|
|
2513
|
+
next = pos;
|
|
2514
|
+
quote = code === singleQuote ? "'" : '"';
|
|
2515
|
+
token = {
|
|
2516
|
+
type: "string",
|
|
2517
|
+
sourceIndex: pos,
|
|
2518
|
+
quote: quote
|
|
2519
|
+
};
|
|
2526
2520
|
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2521
|
+
do {
|
|
2522
|
+
escape = false;
|
|
2523
|
+
next = value.indexOf(quote, next + 1);
|
|
2530
2524
|
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
|
2534
|
-
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
2525
|
+
if (~next) {
|
|
2526
|
+
escapePos = next;
|
|
2535
2527
|
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2528
|
+
while (value.charCodeAt(escapePos - 1) === backslash) {
|
|
2529
|
+
escapePos -= 1;
|
|
2530
|
+
escape = !escape;
|
|
2531
|
+
}
|
|
2532
|
+
} else {
|
|
2533
|
+
value += quote;
|
|
2534
|
+
next = value.length - 1;
|
|
2535
|
+
token.unclosed = true;
|
|
2536
|
+
}
|
|
2537
|
+
} while (escape);
|
|
2542
2538
|
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2539
|
+
token.value = value.slice(pos + 1, next);
|
|
2540
|
+
tokens.push(token);
|
|
2541
|
+
pos = next + 1;
|
|
2542
|
+
code = value.charCodeAt(pos); // Comments
|
|
2543
|
+
} else if (code === slash && value.charCodeAt(pos + 1) === star) {
|
|
2544
|
+
token = {
|
|
2545
|
+
type: "comment",
|
|
2546
|
+
sourceIndex: pos
|
|
2547
|
+
};
|
|
2548
|
+
next = value.indexOf("*/", pos);
|
|
2546
2549
|
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
// invoked without arguments, but in all the cases we care about we
|
|
2551
|
-
// already have an existing method we want to call, so there's no need
|
|
2552
|
-
// to create a new function object. We can even get away with assuming
|
|
2553
|
-
// the method takes exactly one argument, since that happens to be true
|
|
2554
|
-
// in every case, so we don't have to touch the arguments object. The
|
|
2555
|
-
// only additional allocation required is the completion record, which
|
|
2556
|
-
// has a stable shape and so hopefully should be cheap to allocate.
|
|
2557
|
-
|
|
2558
|
-
function tryCatch(fn, obj, arg) {
|
|
2559
|
-
try {
|
|
2560
|
-
return {
|
|
2561
|
-
type: "normal",
|
|
2562
|
-
arg: fn.call(obj, arg)
|
|
2563
|
-
};
|
|
2564
|
-
} catch (err) {
|
|
2565
|
-
return {
|
|
2566
|
-
type: "throw",
|
|
2567
|
-
arg: err
|
|
2568
|
-
};
|
|
2569
|
-
}
|
|
2570
|
-
}
|
|
2571
|
-
|
|
2572
|
-
var GenStateSuspendedStart = "suspendedStart";
|
|
2573
|
-
var GenStateSuspendedYield = "suspendedYield";
|
|
2574
|
-
var GenStateExecuting = "executing";
|
|
2575
|
-
var GenStateCompleted = "completed"; // Returning this object from the innerFn has the same effect as
|
|
2576
|
-
// breaking out of the dispatch switch statement.
|
|
2577
|
-
|
|
2578
|
-
var ContinueSentinel = {}; // Dummy constructor functions that we use as the .constructor and
|
|
2579
|
-
// .constructor.prototype properties for functions that return Generator
|
|
2580
|
-
// objects. For full spec compliance, you may wish to configure your
|
|
2581
|
-
// minifier not to mangle the names of these two functions.
|
|
2582
|
-
|
|
2583
|
-
function Generator() {}
|
|
2584
|
-
|
|
2585
|
-
function GeneratorFunction() {}
|
|
2586
|
-
|
|
2587
|
-
function GeneratorFunctionPrototype() {} // This is a polyfill for %IteratorPrototype% for environments that
|
|
2588
|
-
// don't natively support it.
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
var IteratorPrototype = {};
|
|
2592
|
-
|
|
2593
|
-
IteratorPrototype[iteratorSymbol] = function () {
|
|
2594
|
-
return this;
|
|
2595
|
-
};
|
|
2596
|
-
|
|
2597
|
-
var getProto = Object.getPrototypeOf;
|
|
2598
|
-
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
2599
|
-
|
|
2600
|
-
if (NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol)) {
|
|
2601
|
-
// This environment has a native %IteratorPrototype%; use it instead
|
|
2602
|
-
// of the polyfill.
|
|
2603
|
-
IteratorPrototype = NativeIteratorPrototype;
|
|
2604
|
-
}
|
|
2605
|
-
|
|
2606
|
-
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
2607
|
-
GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
|
|
2608
|
-
GeneratorFunctionPrototype.constructor = GeneratorFunction;
|
|
2609
|
-
GeneratorFunctionPrototype[toStringTagSymbol] = GeneratorFunction.displayName = "GeneratorFunction"; // Helper for defining the .next, .throw, and .return methods of the
|
|
2610
|
-
// Iterator interface in terms of a single ._invoke method.
|
|
2611
|
-
|
|
2612
|
-
function defineIteratorMethods(prototype) {
|
|
2613
|
-
["next", "throw", "return"].forEach(function (method) {
|
|
2614
|
-
prototype[method] = function (arg) {
|
|
2615
|
-
return this._invoke(method, arg);
|
|
2616
|
-
};
|
|
2617
|
-
});
|
|
2618
|
-
}
|
|
2619
|
-
|
|
2620
|
-
exports.isGeneratorFunction = function (genFun) {
|
|
2621
|
-
var ctor = typeof genFun === "function" && genFun.constructor;
|
|
2622
|
-
return ctor ? ctor === GeneratorFunction || // For the native GeneratorFunction constructor, the best we can
|
|
2623
|
-
// do is to check its .name property.
|
|
2624
|
-
(ctor.displayName || ctor.name) === "GeneratorFunction" : false;
|
|
2625
|
-
};
|
|
2626
|
-
|
|
2627
|
-
exports.mark = function (genFun) {
|
|
2628
|
-
if (Object.setPrototypeOf) {
|
|
2629
|
-
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
|
2630
|
-
} else {
|
|
2631
|
-
genFun.__proto__ = GeneratorFunctionPrototype;
|
|
2632
|
-
|
|
2633
|
-
if (!(toStringTagSymbol in genFun)) {
|
|
2634
|
-
genFun[toStringTagSymbol] = "GeneratorFunction";
|
|
2635
|
-
}
|
|
2636
|
-
}
|
|
2637
|
-
|
|
2638
|
-
genFun.prototype = Object.create(Gp);
|
|
2639
|
-
return genFun;
|
|
2640
|
-
}; // Within the body of any async function, `await x` is transformed to
|
|
2641
|
-
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
|
2642
|
-
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
|
2643
|
-
// meant to be awaited.
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
exports.awrap = function (arg) {
|
|
2647
|
-
return {
|
|
2648
|
-
__await: arg
|
|
2649
|
-
};
|
|
2650
|
-
};
|
|
2651
|
-
|
|
2652
|
-
function AsyncIterator(generator) {
|
|
2653
|
-
function invoke(method, arg, resolve, reject) {
|
|
2654
|
-
var record = tryCatch(generator[method], generator, arg);
|
|
2655
|
-
|
|
2656
|
-
if (record.type === "throw") {
|
|
2657
|
-
reject(record.arg);
|
|
2658
|
-
} else {
|
|
2659
|
-
var result = record.arg;
|
|
2660
|
-
var value = result.value;
|
|
2661
|
-
|
|
2662
|
-
if (value && _typeof$2(value) === "object" && hasOwn.call(value, "__await")) {
|
|
2663
|
-
return Promise.resolve(value.__await).then(function (value) {
|
|
2664
|
-
invoke("next", value, resolve, reject);
|
|
2665
|
-
}, function (err) {
|
|
2666
|
-
invoke("throw", err, resolve, reject);
|
|
2667
|
-
});
|
|
2668
|
-
}
|
|
2669
|
-
|
|
2670
|
-
return Promise.resolve(value).then(function (unwrapped) {
|
|
2671
|
-
// When a yielded Promise is resolved, its final value becomes
|
|
2672
|
-
// the .value of the Promise<{value,done}> result for the
|
|
2673
|
-
// current iteration.
|
|
2674
|
-
result.value = unwrapped;
|
|
2675
|
-
resolve(result);
|
|
2676
|
-
}, function (error) {
|
|
2677
|
-
// If a rejected Promise was yielded, throw the rejection back
|
|
2678
|
-
// into the async generator function so it can be handled there.
|
|
2679
|
-
return invoke("throw", error, resolve, reject);
|
|
2680
|
-
});
|
|
2681
|
-
}
|
|
2682
|
-
}
|
|
2683
|
-
|
|
2684
|
-
var previousPromise;
|
|
2685
|
-
|
|
2686
|
-
function enqueue(method, arg) {
|
|
2687
|
-
function callInvokeWithMethodAndArg() {
|
|
2688
|
-
return new Promise(function (resolve, reject) {
|
|
2689
|
-
invoke(method, arg, resolve, reject);
|
|
2690
|
-
});
|
|
2691
|
-
}
|
|
2692
|
-
|
|
2693
|
-
return previousPromise = // If enqueue has been called before, then we want to wait until
|
|
2694
|
-
// all previous Promises have been resolved before calling invoke,
|
|
2695
|
-
// so that results are always delivered in the correct order. If
|
|
2696
|
-
// enqueue has not been called before, then it is important to
|
|
2697
|
-
// call invoke immediately, without waiting on a callback to fire,
|
|
2698
|
-
// so that the async generator function has the opportunity to do
|
|
2699
|
-
// any necessary setup in a predictable way. This predictability
|
|
2700
|
-
// is why the Promise constructor synchronously invokes its
|
|
2701
|
-
// executor callback, and why async functions synchronously
|
|
2702
|
-
// execute code before the first await. Since we implement simple
|
|
2703
|
-
// async functions in terms of async generators, it is especially
|
|
2704
|
-
// important to get this right, even though it requires care.
|
|
2705
|
-
previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, // Avoid propagating failures to Promises returned by later
|
|
2706
|
-
// invocations of the iterator.
|
|
2707
|
-
callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
2708
|
-
} // Define the unified helper method that is used to implement .next,
|
|
2709
|
-
// .throw, and .return (see defineIteratorMethods).
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
this._invoke = enqueue;
|
|
2713
|
-
}
|
|
2714
|
-
|
|
2715
|
-
defineIteratorMethods(AsyncIterator.prototype);
|
|
2716
|
-
|
|
2717
|
-
AsyncIterator.prototype[asyncIteratorSymbol] = function () {
|
|
2718
|
-
return this;
|
|
2719
|
-
};
|
|
2720
|
-
|
|
2721
|
-
exports.AsyncIterator = AsyncIterator; // Note that simple async functions are implemented on top of
|
|
2722
|
-
// AsyncIterator objects; they just return a Promise for the value of
|
|
2723
|
-
// the final result produced by the iterator.
|
|
2724
|
-
|
|
2725
|
-
exports.async = function (innerFn, outerFn, self, tryLocsList) {
|
|
2726
|
-
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList));
|
|
2727
|
-
return exports.isGeneratorFunction(outerFn) ? iter // If outerFn is a generator, return the full iterator.
|
|
2728
|
-
: iter.next().then(function (result) {
|
|
2729
|
-
return result.done ? result.value : iter.next();
|
|
2730
|
-
});
|
|
2731
|
-
};
|
|
2732
|
-
|
|
2733
|
-
function makeInvokeMethod(innerFn, self, context) {
|
|
2734
|
-
var state = GenStateSuspendedStart;
|
|
2735
|
-
return function invoke(method, arg) {
|
|
2736
|
-
if (state === GenStateExecuting) {
|
|
2737
|
-
throw new Error("Generator is already running");
|
|
2738
|
-
}
|
|
2739
|
-
|
|
2740
|
-
if (state === GenStateCompleted) {
|
|
2741
|
-
if (method === "throw") {
|
|
2742
|
-
throw arg;
|
|
2743
|
-
} // Be forgiving, per 25.3.3.3.3 of the spec:
|
|
2744
|
-
// https://people.mozilla.org/~jorendorff/es6-draft.html#sec-generatorresume
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
return doneResult();
|
|
2748
|
-
}
|
|
2749
|
-
|
|
2750
|
-
context.method = method;
|
|
2751
|
-
context.arg = arg;
|
|
2752
|
-
|
|
2753
|
-
while (true) {
|
|
2754
|
-
var delegate = context.delegate;
|
|
2755
|
-
|
|
2756
|
-
if (delegate) {
|
|
2757
|
-
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
2758
|
-
|
|
2759
|
-
if (delegateResult) {
|
|
2760
|
-
if (delegateResult === ContinueSentinel) continue;
|
|
2761
|
-
return delegateResult;
|
|
2762
|
-
}
|
|
2763
|
-
}
|
|
2764
|
-
|
|
2765
|
-
if (context.method === "next") {
|
|
2766
|
-
// Setting context._sent for legacy support of Babel's
|
|
2767
|
-
// function.sent implementation.
|
|
2768
|
-
context.sent = context._sent = context.arg;
|
|
2769
|
-
} else if (context.method === "throw") {
|
|
2770
|
-
if (state === GenStateSuspendedStart) {
|
|
2771
|
-
state = GenStateCompleted;
|
|
2772
|
-
throw context.arg;
|
|
2773
|
-
}
|
|
2774
|
-
|
|
2775
|
-
context.dispatchException(context.arg);
|
|
2776
|
-
} else if (context.method === "return") {
|
|
2777
|
-
context.abrupt("return", context.arg);
|
|
2778
|
-
}
|
|
2779
|
-
|
|
2780
|
-
state = GenStateExecuting;
|
|
2781
|
-
var record = tryCatch(innerFn, self, context);
|
|
2782
|
-
|
|
2783
|
-
if (record.type === "normal") {
|
|
2784
|
-
// If an exception is thrown from innerFn, we leave state ===
|
|
2785
|
-
// GenStateExecuting and loop back for another invocation.
|
|
2786
|
-
state = context.done ? GenStateCompleted : GenStateSuspendedYield;
|
|
2787
|
-
|
|
2788
|
-
if (record.arg === ContinueSentinel) {
|
|
2789
|
-
continue;
|
|
2790
|
-
}
|
|
2791
|
-
|
|
2792
|
-
return {
|
|
2793
|
-
value: record.arg,
|
|
2794
|
-
done: context.done
|
|
2795
|
-
};
|
|
2796
|
-
} else if (record.type === "throw") {
|
|
2797
|
-
state = GenStateCompleted; // Dispatch the exception by looping back around to the
|
|
2798
|
-
// context.dispatchException(context.arg) call above.
|
|
2799
|
-
|
|
2800
|
-
context.method = "throw";
|
|
2801
|
-
context.arg = record.arg;
|
|
2802
|
-
}
|
|
2803
|
-
}
|
|
2804
|
-
};
|
|
2805
|
-
} // Call delegate.iterator[context.method](context.arg) and handle the
|
|
2806
|
-
// result, either by returning a { value, done } result from the
|
|
2807
|
-
// delegate iterator, or by modifying context.method and context.arg,
|
|
2808
|
-
// setting context.delegate to null, and returning the ContinueSentinel.
|
|
2809
|
-
|
|
2810
|
-
|
|
2811
|
-
function maybeInvokeDelegate(delegate, context) {
|
|
2812
|
-
var method = delegate.iterator[context.method];
|
|
2813
|
-
|
|
2814
|
-
if (method === undefined$1) {
|
|
2815
|
-
// A .throw or .return when the delegate iterator has no .throw
|
|
2816
|
-
// method always terminates the yield* loop.
|
|
2817
|
-
context.delegate = null;
|
|
2818
|
-
|
|
2819
|
-
if (context.method === "throw") {
|
|
2820
|
-
// Note: ["return"] must be used for ES3 parsing compatibility.
|
|
2821
|
-
if (delegate.iterator["return"]) {
|
|
2822
|
-
// If the delegate iterator has a return method, give it a
|
|
2823
|
-
// chance to clean up.
|
|
2824
|
-
context.method = "return";
|
|
2825
|
-
context.arg = undefined$1;
|
|
2826
|
-
maybeInvokeDelegate(delegate, context);
|
|
2827
|
-
|
|
2828
|
-
if (context.method === "throw") {
|
|
2829
|
-
// If maybeInvokeDelegate(context) changed context.method from
|
|
2830
|
-
// "return" to "throw", let that override the TypeError below.
|
|
2831
|
-
return ContinueSentinel;
|
|
2832
|
-
}
|
|
2833
|
-
}
|
|
2834
|
-
|
|
2835
|
-
context.method = "throw";
|
|
2836
|
-
context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
2837
|
-
}
|
|
2838
|
-
|
|
2839
|
-
return ContinueSentinel;
|
|
2840
|
-
}
|
|
2841
|
-
|
|
2842
|
-
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
2843
|
-
|
|
2844
|
-
if (record.type === "throw") {
|
|
2845
|
-
context.method = "throw";
|
|
2846
|
-
context.arg = record.arg;
|
|
2847
|
-
context.delegate = null;
|
|
2848
|
-
return ContinueSentinel;
|
|
2849
|
-
}
|
|
2850
|
-
|
|
2851
|
-
var info = record.arg;
|
|
2852
|
-
|
|
2853
|
-
if (!info) {
|
|
2854
|
-
context.method = "throw";
|
|
2855
|
-
context.arg = new TypeError("iterator result is not an object");
|
|
2856
|
-
context.delegate = null;
|
|
2857
|
-
return ContinueSentinel;
|
|
2858
|
-
}
|
|
2859
|
-
|
|
2860
|
-
if (info.done) {
|
|
2861
|
-
// Assign the result of the finished delegate to the temporary
|
|
2862
|
-
// variable specified by delegate.resultName (see delegateYield).
|
|
2863
|
-
context[delegate.resultName] = info.value; // Resume execution at the desired location (see delegateYield).
|
|
2864
|
-
|
|
2865
|
-
context.next = delegate.nextLoc; // If context.method was "throw" but the delegate handled the
|
|
2866
|
-
// exception, let the outer generator proceed normally. If
|
|
2867
|
-
// context.method was "next", forget context.arg since it has been
|
|
2868
|
-
// "consumed" by the delegate iterator. If context.method was
|
|
2869
|
-
// "return", allow the original .return call to continue in the
|
|
2870
|
-
// outer generator.
|
|
2871
|
-
|
|
2872
|
-
if (context.method !== "return") {
|
|
2873
|
-
context.method = "next";
|
|
2874
|
-
context.arg = undefined$1;
|
|
2875
|
-
}
|
|
2876
|
-
} else {
|
|
2877
|
-
// Re-yield the result returned by the delegate method.
|
|
2878
|
-
return info;
|
|
2879
|
-
} // The delegate iterator is finished, so forget it and continue with
|
|
2880
|
-
// the outer generator.
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
context.delegate = null;
|
|
2884
|
-
return ContinueSentinel;
|
|
2885
|
-
} // Define Generator.prototype.{next,throw,return} in terms of the
|
|
2886
|
-
// unified ._invoke helper method.
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
defineIteratorMethods(Gp);
|
|
2890
|
-
Gp[toStringTagSymbol] = "Generator"; // A Generator should always return itself as the iterator object when the
|
|
2891
|
-
// @@iterator function is called on it. Some browsers' implementations of the
|
|
2892
|
-
// iterator prototype chain incorrectly implement this, causing the Generator
|
|
2893
|
-
// object to not be returned from this call. This ensures that doesn't happen.
|
|
2894
|
-
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
|
2895
|
-
|
|
2896
|
-
Gp[iteratorSymbol] = function () {
|
|
2897
|
-
return this;
|
|
2898
|
-
};
|
|
2899
|
-
|
|
2900
|
-
Gp.toString = function () {
|
|
2901
|
-
return "[object Generator]";
|
|
2902
|
-
};
|
|
2903
|
-
|
|
2904
|
-
function pushTryEntry(locs) {
|
|
2905
|
-
var entry = {
|
|
2906
|
-
tryLoc: locs[0]
|
|
2907
|
-
};
|
|
2908
|
-
|
|
2909
|
-
if (1 in locs) {
|
|
2910
|
-
entry.catchLoc = locs[1];
|
|
2911
|
-
}
|
|
2912
|
-
|
|
2913
|
-
if (2 in locs) {
|
|
2914
|
-
entry.finallyLoc = locs[2];
|
|
2915
|
-
entry.afterLoc = locs[3];
|
|
2916
|
-
}
|
|
2917
|
-
|
|
2918
|
-
this.tryEntries.push(entry);
|
|
2919
|
-
}
|
|
2920
|
-
|
|
2921
|
-
function resetTryEntry(entry) {
|
|
2922
|
-
var record = entry.completion || {};
|
|
2923
|
-
record.type = "normal";
|
|
2924
|
-
delete record.arg;
|
|
2925
|
-
entry.completion = record;
|
|
2926
|
-
}
|
|
2927
|
-
|
|
2928
|
-
function Context(tryLocsList) {
|
|
2929
|
-
// The root entry object (effectively a try statement without a catch
|
|
2930
|
-
// or a finally block) gives us a place to store values thrown from
|
|
2931
|
-
// locations where there is no enclosing try statement.
|
|
2932
|
-
this.tryEntries = [{
|
|
2933
|
-
tryLoc: "root"
|
|
2934
|
-
}];
|
|
2935
|
-
tryLocsList.forEach(pushTryEntry, this);
|
|
2936
|
-
this.reset(true);
|
|
2937
|
-
}
|
|
2938
|
-
|
|
2939
|
-
exports.keys = function (object) {
|
|
2940
|
-
var keys = [];
|
|
2941
|
-
|
|
2942
|
-
for (var key in object) {
|
|
2943
|
-
keys.push(key);
|
|
2944
|
-
}
|
|
2945
|
-
|
|
2946
|
-
keys.reverse(); // Rather than returning an object with a next method, we keep
|
|
2947
|
-
// things simple and return the next function itself.
|
|
2948
|
-
|
|
2949
|
-
return function next() {
|
|
2950
|
-
while (keys.length) {
|
|
2951
|
-
var key = keys.pop();
|
|
2952
|
-
|
|
2953
|
-
if (key in object) {
|
|
2954
|
-
next.value = key;
|
|
2955
|
-
next.done = false;
|
|
2956
|
-
return next;
|
|
2957
|
-
}
|
|
2958
|
-
} // To avoid creating an additional object, we just hang the .value
|
|
2959
|
-
// and .done properties off the next function object itself. This
|
|
2960
|
-
// also ensures that the minifier will not anonymize the function.
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
next.done = true;
|
|
2964
|
-
return next;
|
|
2965
|
-
};
|
|
2966
|
-
};
|
|
2967
|
-
|
|
2968
|
-
function values(iterable) {
|
|
2969
|
-
if (iterable) {
|
|
2970
|
-
var iteratorMethod = iterable[iteratorSymbol];
|
|
2971
|
-
|
|
2972
|
-
if (iteratorMethod) {
|
|
2973
|
-
return iteratorMethod.call(iterable);
|
|
2974
|
-
}
|
|
2975
|
-
|
|
2976
|
-
if (typeof iterable.next === "function") {
|
|
2977
|
-
return iterable;
|
|
2978
|
-
}
|
|
2979
|
-
|
|
2980
|
-
if (!isNaN(iterable.length)) {
|
|
2981
|
-
var i = -1,
|
|
2982
|
-
next = function next() {
|
|
2983
|
-
while (++i < iterable.length) {
|
|
2984
|
-
if (hasOwn.call(iterable, i)) {
|
|
2985
|
-
next.value = iterable[i];
|
|
2986
|
-
next.done = false;
|
|
2987
|
-
return next;
|
|
2988
|
-
}
|
|
2989
|
-
}
|
|
2990
|
-
|
|
2991
|
-
next.value = undefined$1;
|
|
2992
|
-
next.done = true;
|
|
2993
|
-
return next;
|
|
2994
|
-
};
|
|
2995
|
-
|
|
2996
|
-
return next.next = next;
|
|
2997
|
-
}
|
|
2998
|
-
} // Return an iterator with no values.
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
return {
|
|
3002
|
-
next: doneResult
|
|
3003
|
-
};
|
|
3004
|
-
}
|
|
3005
|
-
|
|
3006
|
-
exports.values = values;
|
|
3007
|
-
|
|
3008
|
-
function doneResult() {
|
|
3009
|
-
return {
|
|
3010
|
-
value: undefined$1,
|
|
3011
|
-
done: true
|
|
3012
|
-
};
|
|
3013
|
-
}
|
|
3014
|
-
|
|
3015
|
-
Context.prototype = {
|
|
3016
|
-
constructor: Context,
|
|
3017
|
-
reset: function reset(skipTempReset) {
|
|
3018
|
-
this.prev = 0;
|
|
3019
|
-
this.next = 0; // Resetting context._sent for legacy support of Babel's
|
|
3020
|
-
// function.sent implementation.
|
|
3021
|
-
|
|
3022
|
-
this.sent = this._sent = undefined$1;
|
|
3023
|
-
this.done = false;
|
|
3024
|
-
this.delegate = null;
|
|
3025
|
-
this.method = "next";
|
|
3026
|
-
this.arg = undefined$1;
|
|
3027
|
-
this.tryEntries.forEach(resetTryEntry);
|
|
3028
|
-
|
|
3029
|
-
if (!skipTempReset) {
|
|
3030
|
-
for (var name in this) {
|
|
3031
|
-
// Not sure about the optimal order of these conditions:
|
|
3032
|
-
if (name.charAt(0) === "t" && hasOwn.call(this, name) && !isNaN(+name.slice(1))) {
|
|
3033
|
-
this[name] = undefined$1;
|
|
3034
|
-
}
|
|
3035
|
-
}
|
|
3036
|
-
}
|
|
3037
|
-
},
|
|
3038
|
-
stop: function stop() {
|
|
3039
|
-
this.done = true;
|
|
3040
|
-
var rootEntry = this.tryEntries[0];
|
|
3041
|
-
var rootRecord = rootEntry.completion;
|
|
3042
|
-
|
|
3043
|
-
if (rootRecord.type === "throw") {
|
|
3044
|
-
throw rootRecord.arg;
|
|
3045
|
-
}
|
|
3046
|
-
|
|
3047
|
-
return this.rval;
|
|
3048
|
-
},
|
|
3049
|
-
dispatchException: function dispatchException(exception) {
|
|
3050
|
-
if (this.done) {
|
|
3051
|
-
throw exception;
|
|
3052
|
-
}
|
|
3053
|
-
|
|
3054
|
-
var context = this;
|
|
3055
|
-
|
|
3056
|
-
function handle(loc, caught) {
|
|
3057
|
-
record.type = "throw";
|
|
3058
|
-
record.arg = exception;
|
|
3059
|
-
context.next = loc;
|
|
3060
|
-
|
|
3061
|
-
if (caught) {
|
|
3062
|
-
// If the dispatched exception was caught by a catch block,
|
|
3063
|
-
// then let that catch block handle the exception normally.
|
|
3064
|
-
context.method = "next";
|
|
3065
|
-
context.arg = undefined$1;
|
|
3066
|
-
}
|
|
3067
|
-
|
|
3068
|
-
return !!caught;
|
|
3069
|
-
}
|
|
3070
|
-
|
|
3071
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
3072
|
-
var entry = this.tryEntries[i];
|
|
3073
|
-
var record = entry.completion;
|
|
3074
|
-
|
|
3075
|
-
if (entry.tryLoc === "root") {
|
|
3076
|
-
// Exception thrown outside of any try block that could handle
|
|
3077
|
-
// it, so set the completion value of the entire function to
|
|
3078
|
-
// throw the exception.
|
|
3079
|
-
return handle("end");
|
|
3080
|
-
}
|
|
3081
|
-
|
|
3082
|
-
if (entry.tryLoc <= this.prev) {
|
|
3083
|
-
var hasCatch = hasOwn.call(entry, "catchLoc");
|
|
3084
|
-
var hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
3085
|
-
|
|
3086
|
-
if (hasCatch && hasFinally) {
|
|
3087
|
-
if (this.prev < entry.catchLoc) {
|
|
3088
|
-
return handle(entry.catchLoc, true);
|
|
3089
|
-
} else if (this.prev < entry.finallyLoc) {
|
|
3090
|
-
return handle(entry.finallyLoc);
|
|
3091
|
-
}
|
|
3092
|
-
} else if (hasCatch) {
|
|
3093
|
-
if (this.prev < entry.catchLoc) {
|
|
3094
|
-
return handle(entry.catchLoc, true);
|
|
3095
|
-
}
|
|
3096
|
-
} else if (hasFinally) {
|
|
3097
|
-
if (this.prev < entry.finallyLoc) {
|
|
3098
|
-
return handle(entry.finallyLoc);
|
|
3099
|
-
}
|
|
3100
|
-
} else {
|
|
3101
|
-
throw new Error("try statement without catch or finally");
|
|
3102
|
-
}
|
|
3103
|
-
}
|
|
3104
|
-
}
|
|
3105
|
-
},
|
|
3106
|
-
abrupt: function abrupt(type, arg) {
|
|
3107
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
3108
|
-
var entry = this.tryEntries[i];
|
|
3109
|
-
|
|
3110
|
-
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
3111
|
-
var finallyEntry = entry;
|
|
3112
|
-
break;
|
|
3113
|
-
}
|
|
3114
|
-
}
|
|
3115
|
-
|
|
3116
|
-
if (finallyEntry && (type === "break" || type === "continue") && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc) {
|
|
3117
|
-
// Ignore the finally entry if control is not jumping to a
|
|
3118
|
-
// location outside the try/catch block.
|
|
3119
|
-
finallyEntry = null;
|
|
3120
|
-
}
|
|
3121
|
-
|
|
3122
|
-
var record = finallyEntry ? finallyEntry.completion : {};
|
|
3123
|
-
record.type = type;
|
|
3124
|
-
record.arg = arg;
|
|
3125
|
-
|
|
3126
|
-
if (finallyEntry) {
|
|
3127
|
-
this.method = "next";
|
|
3128
|
-
this.next = finallyEntry.finallyLoc;
|
|
3129
|
-
return ContinueSentinel;
|
|
3130
|
-
}
|
|
3131
|
-
|
|
3132
|
-
return this.complete(record);
|
|
3133
|
-
},
|
|
3134
|
-
complete: function complete(record, afterLoc) {
|
|
3135
|
-
if (record.type === "throw") {
|
|
3136
|
-
throw record.arg;
|
|
3137
|
-
}
|
|
3138
|
-
|
|
3139
|
-
if (record.type === "break" || record.type === "continue") {
|
|
3140
|
-
this.next = record.arg;
|
|
3141
|
-
} else if (record.type === "return") {
|
|
3142
|
-
this.rval = this.arg = record.arg;
|
|
3143
|
-
this.method = "return";
|
|
3144
|
-
this.next = "end";
|
|
3145
|
-
} else if (record.type === "normal" && afterLoc) {
|
|
3146
|
-
this.next = afterLoc;
|
|
3147
|
-
}
|
|
3148
|
-
|
|
3149
|
-
return ContinueSentinel;
|
|
3150
|
-
},
|
|
3151
|
-
finish: function finish(finallyLoc) {
|
|
3152
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
3153
|
-
var entry = this.tryEntries[i];
|
|
3154
|
-
|
|
3155
|
-
if (entry.finallyLoc === finallyLoc) {
|
|
3156
|
-
this.complete(entry.completion, entry.afterLoc);
|
|
3157
|
-
resetTryEntry(entry);
|
|
3158
|
-
return ContinueSentinel;
|
|
3159
|
-
}
|
|
3160
|
-
}
|
|
3161
|
-
},
|
|
3162
|
-
"catch": function _catch(tryLoc) {
|
|
3163
|
-
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
3164
|
-
var entry = this.tryEntries[i];
|
|
3165
|
-
|
|
3166
|
-
if (entry.tryLoc === tryLoc) {
|
|
3167
|
-
var record = entry.completion;
|
|
3168
|
-
|
|
3169
|
-
if (record.type === "throw") {
|
|
3170
|
-
var thrown = record.arg;
|
|
3171
|
-
resetTryEntry(entry);
|
|
3172
|
-
}
|
|
3173
|
-
|
|
3174
|
-
return thrown;
|
|
3175
|
-
}
|
|
3176
|
-
} // The context.catch method must only be called with a location
|
|
3177
|
-
// argument that corresponds to a known catch block.
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
throw new Error("illegal catch attempt");
|
|
3181
|
-
},
|
|
3182
|
-
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
3183
|
-
this.delegate = {
|
|
3184
|
-
iterator: values(iterable),
|
|
3185
|
-
resultName: resultName,
|
|
3186
|
-
nextLoc: nextLoc
|
|
3187
|
-
};
|
|
3188
|
-
|
|
3189
|
-
if (this.method === "next") {
|
|
3190
|
-
// Deliberately forget the last sent value so that we don't
|
|
3191
|
-
// accidentally pass it on to the delegate.
|
|
3192
|
-
this.arg = undefined$1;
|
|
3193
|
-
}
|
|
3194
|
-
|
|
3195
|
-
return ContinueSentinel;
|
|
3196
|
-
}
|
|
3197
|
-
}; // Regardless of whether this script is executing as a CommonJS module
|
|
3198
|
-
// or not, return the runtime object so that we can declare the variable
|
|
3199
|
-
// regeneratorRuntime in the outer scope, which allows this module to be
|
|
3200
|
-
// injected easily by `bin/regenerator --include-runtime script.js`.
|
|
3201
|
-
|
|
3202
|
-
return exports;
|
|
3203
|
-
}( // If this script is executing as a CommonJS module, use module.exports
|
|
3204
|
-
// as the regeneratorRuntime namespace. Otherwise create a new empty
|
|
3205
|
-
// object. Either way, the resulting object will be used to initialize
|
|
3206
|
-
// the regeneratorRuntime variable at the top of this file.
|
|
3207
|
-
module.exports );
|
|
3208
|
-
|
|
3209
|
-
try {
|
|
3210
|
-
regeneratorRuntime = runtime;
|
|
3211
|
-
} catch (accidentalStrictMode) {
|
|
3212
|
-
// This module should not be running in strict mode, so the above
|
|
3213
|
-
// assignment should always work unless something is misconfigured. Just
|
|
3214
|
-
// in case runtime.js accidentally runs in strict mode, we can escape
|
|
3215
|
-
// strict mode using a global Function call. This could conceivably fail
|
|
3216
|
-
// if a Content Security Policy forbids using Function, but in that case
|
|
3217
|
-
// the proper solution is to fix the accidental strict mode problem. If
|
|
3218
|
-
// you've misconfigured your bundler to force strict mode and applied a
|
|
3219
|
-
// CSP to forbid Function, and you're not willing to fix either of those
|
|
3220
|
-
// problems, please detail your unique predicament in a GitHub issue.
|
|
3221
|
-
Function("r", "regeneratorRuntime = r")(runtime);
|
|
3222
|
-
}
|
|
3223
|
-
})(runtime);
|
|
3224
|
-
|
|
3225
|
-
var regenerator = runtime.exports;
|
|
3226
|
-
|
|
3227
|
-
function _extends$1() {
|
|
3228
|
-
_extends_1 = _extends$1 = Object.assign || function (target) {
|
|
3229
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
3230
|
-
var source = arguments[i];
|
|
3231
|
-
|
|
3232
|
-
for (var key in source) {
|
|
3233
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
3234
|
-
target[key] = source[key];
|
|
3235
|
-
}
|
|
3236
|
-
}
|
|
3237
|
-
}
|
|
3238
|
-
|
|
3239
|
-
return target;
|
|
3240
|
-
};
|
|
3241
|
-
|
|
3242
|
-
return _extends$1.apply(this, arguments);
|
|
3243
|
-
}
|
|
3244
|
-
|
|
3245
|
-
var _extends_1 = _extends$1;
|
|
3246
|
-
|
|
3247
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
3248
|
-
if (source == null) return {};
|
|
3249
|
-
var target = {};
|
|
3250
|
-
var sourceKeys = Object.keys(source);
|
|
3251
|
-
var key, i;
|
|
3252
|
-
|
|
3253
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
3254
|
-
key = sourceKeys[i];
|
|
3255
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
3256
|
-
target[key] = source[key];
|
|
3257
|
-
}
|
|
3258
|
-
|
|
3259
|
-
return target;
|
|
3260
|
-
}
|
|
3261
|
-
|
|
3262
|
-
var objectWithoutPropertiesLoose$1 = _objectWithoutPropertiesLoose;
|
|
3263
|
-
|
|
3264
|
-
var objectWithoutPropertiesLoose = objectWithoutPropertiesLoose$1;
|
|
3265
|
-
|
|
3266
|
-
function _objectWithoutProperties(source, excluded) {
|
|
3267
|
-
if (source == null) return {};
|
|
3268
|
-
var target = objectWithoutPropertiesLoose(source, excluded);
|
|
3269
|
-
var key, i;
|
|
3270
|
-
|
|
3271
|
-
if (Object.getOwnPropertySymbols) {
|
|
3272
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
3273
|
-
|
|
3274
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
3275
|
-
key = sourceSymbolKeys[i];
|
|
3276
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
3277
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
3278
|
-
target[key] = source[key];
|
|
3279
|
-
}
|
|
3280
|
-
}
|
|
3281
|
-
|
|
3282
|
-
return target;
|
|
3283
|
-
}
|
|
3284
|
-
|
|
3285
|
-
var objectWithoutProperties = _objectWithoutProperties;
|
|
3286
|
-
|
|
3287
|
-
function _classCallCheck(instance, Constructor) {
|
|
3288
|
-
if (!(instance instanceof Constructor)) {
|
|
3289
|
-
throw new TypeError("Cannot call a class as a function");
|
|
3290
|
-
}
|
|
3291
|
-
}
|
|
3292
|
-
|
|
3293
|
-
var classCallCheck = _classCallCheck;
|
|
3294
|
-
|
|
3295
|
-
function _defineProperties(target, props) {
|
|
3296
|
-
for (var i = 0; i < props.length; i++) {
|
|
3297
|
-
var descriptor = props[i];
|
|
3298
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
3299
|
-
descriptor.configurable = true;
|
|
3300
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
3301
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
3302
|
-
}
|
|
3303
|
-
}
|
|
3304
|
-
|
|
3305
|
-
function _createClass(Constructor, protoProps, staticProps) {
|
|
3306
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
3307
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
3308
|
-
return Constructor;
|
|
3309
|
-
}
|
|
3310
|
-
|
|
3311
|
-
var createClass = _createClass;
|
|
3312
|
-
|
|
3313
|
-
function _typeof2(obj) {
|
|
3314
|
-
if (typeof Symbol === "function" && _typeof$2(Symbol.iterator) === "symbol") {
|
|
3315
|
-
_typeof2 = function _typeof2(obj) {
|
|
3316
|
-
return _typeof$2(obj);
|
|
3317
|
-
};
|
|
3318
|
-
} else {
|
|
3319
|
-
_typeof2 = function _typeof2(obj) {
|
|
3320
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : _typeof$2(obj);
|
|
3321
|
-
};
|
|
3322
|
-
}
|
|
3323
|
-
|
|
3324
|
-
return _typeof2(obj);
|
|
3325
|
-
}
|
|
3326
|
-
|
|
3327
|
-
function _typeof$1(obj) {
|
|
3328
|
-
if (typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol") {
|
|
3329
|
-
_typeof_1 = _typeof$1 = function _typeof(obj) {
|
|
3330
|
-
return _typeof2(obj);
|
|
3331
|
-
};
|
|
3332
|
-
} else {
|
|
3333
|
-
_typeof_1 = _typeof$1 = function _typeof(obj) {
|
|
3334
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : _typeof2(obj);
|
|
3335
|
-
};
|
|
3336
|
-
}
|
|
3337
|
-
|
|
3338
|
-
return _typeof$1(obj);
|
|
3339
|
-
}
|
|
3340
|
-
|
|
3341
|
-
var _typeof_1 = _typeof$1;
|
|
3342
|
-
|
|
3343
|
-
function _assertThisInitialized(self) {
|
|
3344
|
-
if (self === void 0) {
|
|
3345
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
3346
|
-
}
|
|
3347
|
-
|
|
3348
|
-
return self;
|
|
3349
|
-
}
|
|
3350
|
-
|
|
3351
|
-
var assertThisInitialized$1 = _assertThisInitialized;
|
|
3352
|
-
|
|
3353
|
-
var _typeof = _typeof_1;
|
|
3354
|
-
var assertThisInitialized = assertThisInitialized$1;
|
|
3355
|
-
|
|
3356
|
-
function _possibleConstructorReturn(self, call) {
|
|
3357
|
-
if (call && (_typeof(call) === "object" || typeof call === "function")) {
|
|
3358
|
-
return call;
|
|
3359
|
-
}
|
|
3360
|
-
|
|
3361
|
-
return assertThisInitialized(self);
|
|
3362
|
-
}
|
|
3363
|
-
|
|
3364
|
-
var possibleConstructorReturn = _possibleConstructorReturn;
|
|
3365
|
-
|
|
3366
|
-
function _getPrototypeOf(o) {
|
|
3367
|
-
getPrototypeOf = _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
|
|
3368
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
3369
|
-
};
|
|
3370
|
-
return _getPrototypeOf(o);
|
|
3371
|
-
}
|
|
3372
|
-
|
|
3373
|
-
var getPrototypeOf = _getPrototypeOf;
|
|
3374
|
-
|
|
3375
|
-
function _setPrototypeOf(o, p) {
|
|
3376
|
-
setPrototypeOf$1 = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
3377
|
-
o.__proto__ = p;
|
|
3378
|
-
return o;
|
|
3379
|
-
};
|
|
3380
|
-
|
|
3381
|
-
return _setPrototypeOf(o, p);
|
|
3382
|
-
}
|
|
3383
|
-
|
|
3384
|
-
var setPrototypeOf$1 = _setPrototypeOf;
|
|
3385
|
-
|
|
3386
|
-
var setPrototypeOf = setPrototypeOf$1;
|
|
3387
|
-
|
|
3388
|
-
function _inherits(subClass, superClass) {
|
|
3389
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
3390
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
3391
|
-
}
|
|
3392
|
-
|
|
3393
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
3394
|
-
constructor: {
|
|
3395
|
-
value: subClass,
|
|
3396
|
-
writable: true,
|
|
3397
|
-
configurable: true
|
|
3398
|
-
}
|
|
3399
|
-
});
|
|
3400
|
-
if (superClass) setPrototypeOf(subClass, superClass);
|
|
3401
|
-
}
|
|
3402
|
-
|
|
3403
|
-
var inherits = _inherits;
|
|
3404
|
-
|
|
3405
|
-
var propTypes = {exports: {}};
|
|
3406
|
-
|
|
3407
|
-
/**
|
|
3408
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
3409
|
-
*
|
|
3410
|
-
* This source code is licensed under the MIT license found in the
|
|
3411
|
-
* LICENSE file in the root directory of this source tree.
|
|
3412
|
-
*/
|
|
3413
|
-
|
|
3414
|
-
var ReactPropTypesSecret$1 = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
3415
|
-
var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
|
|
3416
|
-
|
|
3417
|
-
/**
|
|
3418
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
3419
|
-
*
|
|
3420
|
-
* This source code is licensed under the MIT license found in the
|
|
3421
|
-
* LICENSE file in the root directory of this source tree.
|
|
3422
|
-
*/
|
|
3423
|
-
|
|
3424
|
-
var ReactPropTypesSecret = ReactPropTypesSecret_1;
|
|
3425
|
-
|
|
3426
|
-
function emptyFunction() {}
|
|
3427
|
-
|
|
3428
|
-
function emptyFunctionWithReset() {}
|
|
3429
|
-
|
|
3430
|
-
emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
|
3431
|
-
|
|
3432
|
-
var factoryWithThrowingShims = function factoryWithThrowingShims() {
|
|
3433
|
-
function shim(props, propName, componentName, location, propFullName, secret) {
|
|
3434
|
-
if (secret === ReactPropTypesSecret) {
|
|
3435
|
-
// It is still safe when called from React.
|
|
3436
|
-
return;
|
|
3437
|
-
}
|
|
3438
|
-
|
|
3439
|
-
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');
|
|
3440
|
-
err.name = 'Invariant Violation';
|
|
3441
|
-
throw err;
|
|
3442
|
-
}
|
|
3443
|
-
shim.isRequired = shim;
|
|
3444
|
-
|
|
3445
|
-
function getShim() {
|
|
3446
|
-
return shim;
|
|
3447
|
-
}
|
|
3448
|
-
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
3449
|
-
|
|
3450
|
-
var ReactPropTypes = {
|
|
3451
|
-
array: shim,
|
|
3452
|
-
bool: shim,
|
|
3453
|
-
func: shim,
|
|
3454
|
-
number: shim,
|
|
3455
|
-
object: shim,
|
|
3456
|
-
string: shim,
|
|
3457
|
-
symbol: shim,
|
|
3458
|
-
any: shim,
|
|
3459
|
-
arrayOf: getShim,
|
|
3460
|
-
element: shim,
|
|
3461
|
-
elementType: shim,
|
|
3462
|
-
instanceOf: getShim,
|
|
3463
|
-
node: shim,
|
|
3464
|
-
objectOf: getShim,
|
|
3465
|
-
oneOf: getShim,
|
|
3466
|
-
oneOfType: getShim,
|
|
3467
|
-
shape: getShim,
|
|
3468
|
-
exact: getShim,
|
|
3469
|
-
checkPropTypes: emptyFunctionWithReset,
|
|
3470
|
-
resetWarningCache: emptyFunction
|
|
3471
|
-
};
|
|
3472
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
3473
|
-
return ReactPropTypes;
|
|
3474
|
-
};
|
|
3475
|
-
|
|
3476
|
-
/**
|
|
3477
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
3478
|
-
*
|
|
3479
|
-
* This source code is licensed under the MIT license found in the
|
|
3480
|
-
* LICENSE file in the root directory of this source tree.
|
|
3481
|
-
*/
|
|
3482
|
-
|
|
3483
|
-
{
|
|
3484
|
-
// By explicitly using `prop-types` you are opting into new production behavior.
|
|
3485
|
-
// http://fb.me/prop-types-in-prod
|
|
3486
|
-
propTypes.exports = factoryWithThrowingShims();
|
|
3487
|
-
}
|
|
3488
|
-
|
|
3489
|
-
var ensureNativeModuleAvailable$1 = {};
|
|
3490
|
-
|
|
3491
|
-
Object.defineProperty(ensureNativeModuleAvailable$1, "__esModule", {
|
|
3492
|
-
value: true
|
|
3493
|
-
});
|
|
3494
|
-
|
|
3495
|
-
ensureNativeModuleAvailable$1["default"] = ensureNativeModuleAvailable;
|
|
3496
|
-
|
|
3497
|
-
var _reactNative$2 = ReactNative__default["default"];
|
|
3498
|
-
var NativeIconAPI$1 = _reactNative$2.NativeModules.RNVectorIconsManager || _reactNative$2.NativeModules.RNVectorIconsModule;
|
|
3499
|
-
|
|
3500
|
-
function ensureNativeModuleAvailable() {
|
|
3501
|
-
if (!NativeIconAPI$1) {
|
|
3502
|
-
if (_reactNative$2.Platform.OS === 'android') {
|
|
3503
|
-
throw new Error('RNVectorIconsModule not available, did you properly integrate the module? Try running `react-native link react-native-vector-icons` and recompiling.');
|
|
3504
|
-
}
|
|
3505
|
-
|
|
3506
|
-
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.');
|
|
3507
|
-
}
|
|
3508
|
-
}
|
|
3509
|
-
|
|
3510
|
-
var createIconSourceCache$1 = {};
|
|
3511
|
-
|
|
3512
|
-
Object.defineProperty(createIconSourceCache$1, "__esModule", {
|
|
3513
|
-
value: true
|
|
3514
|
-
});
|
|
3515
|
-
|
|
3516
|
-
createIconSourceCache$1["default"] = createIconSourceCache;
|
|
3517
|
-
|
|
3518
|
-
var TYPE_VALUE = 'value';
|
|
3519
|
-
var TYPE_ERROR = 'error';
|
|
3520
|
-
|
|
3521
|
-
function createIconSourceCache() {
|
|
3522
|
-
var cache = new Map();
|
|
3523
|
-
|
|
3524
|
-
var setValue = function setValue(key, value) {
|
|
3525
|
-
return cache.set(key, {
|
|
3526
|
-
type: TYPE_VALUE,
|
|
3527
|
-
data: value
|
|
3528
|
-
});
|
|
3529
|
-
};
|
|
3530
|
-
|
|
3531
|
-
var setError = function setError(key, error) {
|
|
3532
|
-
return cache.set(key, {
|
|
3533
|
-
type: TYPE_ERROR,
|
|
3534
|
-
data: error
|
|
3535
|
-
});
|
|
3536
|
-
};
|
|
3537
|
-
|
|
3538
|
-
var has = function has(key) {
|
|
3539
|
-
return cache.has(key);
|
|
3540
|
-
};
|
|
3541
|
-
|
|
3542
|
-
var get = function get(key) {
|
|
3543
|
-
if (!cache.has(key)) {
|
|
3544
|
-
return undefined;
|
|
3545
|
-
}
|
|
3546
|
-
|
|
3547
|
-
var _cache$get = cache.get(key),
|
|
3548
|
-
type = _cache$get.type,
|
|
3549
|
-
data = _cache$get.data;
|
|
3550
|
-
|
|
3551
|
-
if (type === TYPE_ERROR) {
|
|
3552
|
-
throw data;
|
|
3553
|
-
}
|
|
3554
|
-
|
|
3555
|
-
return data;
|
|
3556
|
-
};
|
|
3557
|
-
|
|
3558
|
-
return {
|
|
3559
|
-
setValue: setValue,
|
|
3560
|
-
setError: setError,
|
|
3561
|
-
has: has,
|
|
3562
|
-
get: get
|
|
3563
|
-
};
|
|
3564
|
-
}
|
|
3565
|
-
|
|
3566
|
-
var iconButton = {};
|
|
3567
|
-
|
|
3568
|
-
var pick = function pick(obj) {
|
|
3569
|
-
for (var _len = arguments.length, keys = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
3570
|
-
keys[_key - 1] = arguments[_key];
|
|
3571
|
-
}
|
|
3572
|
-
|
|
3573
|
-
return keys.flat().filter(function (key) {
|
|
3574
|
-
return Object.prototype.hasOwnProperty.call(obj, key);
|
|
3575
|
-
}).reduce(function (acc, key) {
|
|
3576
|
-
acc[key] = obj[key];
|
|
3577
|
-
return acc;
|
|
3578
|
-
}, {});
|
|
3579
|
-
};
|
|
3580
|
-
|
|
3581
|
-
var omit = function omit(obj) {
|
|
3582
|
-
for (var _len2 = arguments.length, keysToOmit = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
3583
|
-
keysToOmit[_key2 - 1] = arguments[_key2];
|
|
3584
|
-
}
|
|
3585
|
-
|
|
3586
|
-
var keysToOmitSet = new Set(keysToOmit.flat());
|
|
3587
|
-
return Object.getOwnPropertyNames(obj).filter(function (key) {
|
|
3588
|
-
return !keysToOmitSet.has(key);
|
|
3589
|
-
}).reduce(function (acc, key) {
|
|
3590
|
-
acc[key] = obj[key];
|
|
3591
|
-
return acc;
|
|
3592
|
-
}, {});
|
|
3593
|
-
};
|
|
3594
|
-
|
|
3595
|
-
var objectUtils = {
|
|
3596
|
-
pick: pick,
|
|
3597
|
-
omit: omit
|
|
3598
|
-
};
|
|
3599
|
-
|
|
3600
|
-
var _interopRequireDefault$4 = interopRequireDefault;
|
|
3601
|
-
Object.defineProperty(iconButton, "__esModule", {
|
|
3602
|
-
value: true
|
|
3603
|
-
});
|
|
3604
|
-
|
|
3605
|
-
iconButton["default"] = createIconButtonComponent;
|
|
3606
|
-
|
|
3607
|
-
var _extends2$2 = _interopRequireDefault$4(_extends_1);
|
|
3608
|
-
|
|
3609
|
-
var _objectWithoutProperties2$1 = _interopRequireDefault$4(objectWithoutProperties);
|
|
3610
|
-
|
|
3611
|
-
var _classCallCheck2$2 = _interopRequireDefault$4(classCallCheck);
|
|
3612
|
-
|
|
3613
|
-
var _createClass2$2 = _interopRequireDefault$4(createClass);
|
|
3614
|
-
|
|
3615
|
-
var _possibleConstructorReturn2$2 = _interopRequireDefault$4(possibleConstructorReturn);
|
|
3616
|
-
|
|
3617
|
-
var _getPrototypeOf2$1 = _interopRequireDefault$4(getPrototypeOf);
|
|
3618
|
-
|
|
3619
|
-
var _inherits2$2 = _interopRequireDefault$4(inherits);
|
|
3620
|
-
|
|
3621
|
-
var _react$2 = _interopRequireWildcard$2(React__default["default"]);
|
|
3622
|
-
|
|
3623
|
-
var _propTypes$2 = _interopRequireDefault$4(propTypes.exports);
|
|
3624
|
-
|
|
3625
|
-
var _reactNative$1 = ReactNative__default["default"];
|
|
3626
|
-
var _objectUtils = objectUtils;
|
|
3627
|
-
var _jsxFileName$2 = "/home/runner/work/react-native-vector-icons/react-native-vector-icons/lib/icon-button.js";
|
|
3628
|
-
|
|
3629
|
-
function _getRequireWildcardCache$2(nodeInterop) {
|
|
3630
|
-
if (typeof WeakMap !== "function") return null;
|
|
3631
|
-
var cacheBabelInterop = new WeakMap();
|
|
3632
|
-
var cacheNodeInterop = new WeakMap();
|
|
3633
|
-
return (_getRequireWildcardCache$2 = function _getRequireWildcardCache(nodeInterop) {
|
|
3634
|
-
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
3635
|
-
})(nodeInterop);
|
|
3636
|
-
}
|
|
3637
|
-
|
|
3638
|
-
function _interopRequireWildcard$2(obj, nodeInterop) {
|
|
3639
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
3640
|
-
return obj;
|
|
3641
|
-
}
|
|
3642
|
-
|
|
3643
|
-
if (obj === null || _typeof$2(obj) !== "object" && typeof obj !== "function") {
|
|
3644
|
-
return {
|
|
3645
|
-
"default": obj
|
|
3646
|
-
};
|
|
3647
|
-
}
|
|
3648
|
-
|
|
3649
|
-
var cache = _getRequireWildcardCache$2(nodeInterop);
|
|
3650
|
-
|
|
3651
|
-
if (cache && cache.has(obj)) {
|
|
3652
|
-
return cache.get(obj);
|
|
3653
|
-
}
|
|
3654
|
-
|
|
3655
|
-
var newObj = {};
|
|
3656
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
3657
|
-
|
|
3658
|
-
for (var key in obj) {
|
|
3659
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
3660
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
3661
|
-
|
|
3662
|
-
if (desc && (desc.get || desc.set)) {
|
|
3663
|
-
Object.defineProperty(newObj, key, desc);
|
|
3664
|
-
} else {
|
|
3665
|
-
newObj[key] = obj[key];
|
|
3666
|
-
}
|
|
3667
|
-
}
|
|
3668
|
-
}
|
|
3669
|
-
|
|
3670
|
-
newObj["default"] = obj;
|
|
3671
|
-
|
|
3672
|
-
if (cache) {
|
|
3673
|
-
cache.set(obj, newObj);
|
|
3674
|
-
}
|
|
3675
|
-
|
|
3676
|
-
return newObj;
|
|
3677
|
-
}
|
|
3678
|
-
|
|
3679
|
-
var styles$1 = _reactNative$1.StyleSheet.create({
|
|
3680
|
-
container: {
|
|
3681
|
-
flexDirection: 'row',
|
|
3682
|
-
justifyContent: 'flex-start',
|
|
3683
|
-
alignItems: 'center',
|
|
3684
|
-
padding: 8
|
|
3685
|
-
},
|
|
3686
|
-
touchable: {
|
|
3687
|
-
overflow: 'hidden'
|
|
3688
|
-
},
|
|
3689
|
-
icon: {
|
|
3690
|
-
marginRight: 10
|
|
3691
|
-
},
|
|
3692
|
-
text: {
|
|
3693
|
-
fontWeight: '600',
|
|
3694
|
-
backgroundColor: 'transparent'
|
|
3695
|
-
}
|
|
3696
|
-
});
|
|
3697
|
-
|
|
3698
|
-
var IOS7_BLUE = '#007AFF';
|
|
3699
|
-
var TEXT_PROP_NAMES = ['ellipsizeMode', 'numberOfLines', 'textBreakStrategy', 'selectable', 'suppressHighlighting', 'allowFontScaling', 'adjustsFontSizeToFit', 'minimumFontScale'];
|
|
3700
|
-
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'];
|
|
3701
|
-
|
|
3702
|
-
function createIconButtonComponent(Icon) {
|
|
3703
|
-
var _class, _temp;
|
|
3704
|
-
|
|
3705
|
-
return _temp = _class = function (_PureComponent) {
|
|
3706
|
-
(0, _inherits2$2["default"])(IconButton, _PureComponent);
|
|
3707
|
-
|
|
3708
|
-
function IconButton() {
|
|
3709
|
-
(0, _classCallCheck2$2["default"])(this, IconButton);
|
|
3710
|
-
return (0, _possibleConstructorReturn2$2["default"])(this, (0, _getPrototypeOf2$1["default"])(IconButton).apply(this, arguments));
|
|
3711
|
-
}
|
|
3712
|
-
|
|
3713
|
-
(0, _createClass2$2["default"])(IconButton, [{
|
|
3714
|
-
key: "render",
|
|
3715
|
-
value: function render() {
|
|
3716
|
-
var _this$props = this.props,
|
|
3717
|
-
style = _this$props.style,
|
|
3718
|
-
iconStyle = _this$props.iconStyle,
|
|
3719
|
-
children = _this$props.children,
|
|
3720
|
-
restProps = (0, _objectWithoutProperties2$1["default"])(_this$props, ["style", "iconStyle", "children"]);
|
|
3721
|
-
var iconProps = (0, _objectUtils.pick)(restProps, TEXT_PROP_NAMES, 'style', 'name', 'size', 'color');
|
|
3722
|
-
var touchableProps = (0, _objectUtils.pick)(restProps, TOUCHABLE_PROP_NAMES);
|
|
3723
|
-
var props = (0, _objectUtils.omit)(restProps, Object.keys(iconProps), Object.keys(touchableProps), 'iconStyle', 'borderRadius', 'backgroundColor');
|
|
3724
|
-
iconProps.style = iconStyle ? [styles$1.icon, iconStyle] : styles$1.icon;
|
|
3725
|
-
var colorStyle = (0, _objectUtils.pick)(this.props, 'color');
|
|
3726
|
-
var blockStyle = (0, _objectUtils.pick)(this.props, 'backgroundColor', 'borderRadius');
|
|
3727
|
-
return _react$2["default"].createElement(_reactNative$1.TouchableHighlight, (0, _extends2$2["default"])({
|
|
3728
|
-
style: [styles$1.touchable, blockStyle]
|
|
3729
|
-
}, touchableProps, {
|
|
3730
|
-
__self: this,
|
|
3731
|
-
__source: {
|
|
3732
|
-
fileName: _jsxFileName$2,
|
|
3733
|
-
lineNumber: 116
|
|
3734
|
-
}
|
|
3735
|
-
}), _react$2["default"].createElement(_reactNative$1.View, (0, _extends2$2["default"])({
|
|
3736
|
-
style: [styles$1.container, blockStyle, style]
|
|
3737
|
-
}, props, {
|
|
3738
|
-
__self: this,
|
|
3739
|
-
__source: {
|
|
3740
|
-
fileName: _jsxFileName$2,
|
|
3741
|
-
lineNumber: 120
|
|
3742
|
-
}
|
|
3743
|
-
}), _react$2["default"].createElement(Icon, (0, _extends2$2["default"])({}, iconProps, {
|
|
3744
|
-
__self: this,
|
|
3745
|
-
__source: {
|
|
3746
|
-
fileName: _jsxFileName$2,
|
|
3747
|
-
lineNumber: 121
|
|
3748
|
-
}
|
|
3749
|
-
})), typeof children === 'string' ? _react$2["default"].createElement(_reactNative$1.Text, {
|
|
3750
|
-
style: [styles$1.text, colorStyle],
|
|
3751
|
-
selectable: false,
|
|
3752
|
-
__self: this,
|
|
3753
|
-
__source: {
|
|
3754
|
-
fileName: _jsxFileName$2,
|
|
3755
|
-
lineNumber: 123
|
|
3756
|
-
}
|
|
3757
|
-
}, children) : children));
|
|
3758
|
-
}
|
|
3759
|
-
}]);
|
|
3760
|
-
return IconButton;
|
|
3761
|
-
}(_react$2.PureComponent), _class.propTypes = {
|
|
3762
|
-
backgroundColor: _propTypes$2["default"].oneOfType([_propTypes$2["default"].string, _propTypes$2["default"].number]),
|
|
3763
|
-
borderRadius: _propTypes$2["default"].number,
|
|
3764
|
-
color: _propTypes$2["default"].any,
|
|
3765
|
-
size: _propTypes$2["default"].number,
|
|
3766
|
-
iconStyle: _propTypes$2["default"].any,
|
|
3767
|
-
style: _propTypes$2["default"].any,
|
|
3768
|
-
children: _propTypes$2["default"].node
|
|
3769
|
-
}, _class.defaultProps = {
|
|
3770
|
-
backgroundColor: IOS7_BLUE,
|
|
3771
|
-
borderRadius: 5,
|
|
3772
|
-
color: 'white',
|
|
3773
|
-
size: 20
|
|
3774
|
-
}, _temp;
|
|
3775
|
-
}
|
|
3776
|
-
|
|
3777
|
-
var _interopRequireDefault$3 = interopRequireDefault;
|
|
3778
|
-
Object.defineProperty(createIconSet$1, "__esModule", {
|
|
3779
|
-
value: true
|
|
3780
|
-
});
|
|
3781
|
-
createIconSet$1.NativeIconAPI = createIconSet$1.DEFAULT_ICON_SIZE = createIconSet$1.DEFAULT_ICON_COLOR = void 0;
|
|
3782
|
-
|
|
3783
|
-
createIconSet$1["default"] = createIconSet;
|
|
3784
|
-
|
|
3785
|
-
var _toConsumableArray2 = _interopRequireDefault$3(toConsumableArray);
|
|
3786
|
-
|
|
3787
|
-
var _regenerator = _interopRequireDefault$3(regenerator);
|
|
3788
|
-
|
|
3789
|
-
var _extends2$1 = _interopRequireDefault$3(_extends_1);
|
|
3790
|
-
|
|
3791
|
-
var _objectWithoutProperties2 = _interopRequireDefault$3(objectWithoutProperties);
|
|
3792
|
-
|
|
3793
|
-
var _classCallCheck2$1 = _interopRequireDefault$3(classCallCheck);
|
|
3794
|
-
|
|
3795
|
-
var _createClass2$1 = _interopRequireDefault$3(createClass);
|
|
3796
|
-
|
|
3797
|
-
var _possibleConstructorReturn2$1 = _interopRequireDefault$3(possibleConstructorReturn);
|
|
3798
|
-
|
|
3799
|
-
var _getPrototypeOf3 = _interopRequireDefault$3(getPrototypeOf);
|
|
3800
|
-
|
|
3801
|
-
var _inherits2$1 = _interopRequireDefault$3(inherits);
|
|
3802
|
-
|
|
3803
|
-
var _react$1 = _interopRequireWildcard$1(React__default["default"]);
|
|
3804
|
-
|
|
3805
|
-
var _propTypes$1 = _interopRequireDefault$3(propTypes.exports);
|
|
3806
|
-
|
|
3807
|
-
var _reactNative = ReactNative__default["default"];
|
|
3808
|
-
|
|
3809
|
-
var _ensureNativeModuleAvailable = _interopRequireDefault$3(ensureNativeModuleAvailable$1);
|
|
3810
|
-
|
|
3811
|
-
var _createIconSourceCache = _interopRequireDefault$3(createIconSourceCache$1);
|
|
3812
|
-
|
|
3813
|
-
var _iconButton = _interopRequireDefault$3(iconButton);
|
|
3814
|
-
|
|
3815
|
-
var _jsxFileName$1 = "/home/runner/work/react-native-vector-icons/react-native-vector-icons/lib/create-icon-set.js";
|
|
3816
|
-
|
|
3817
|
-
function _getRequireWildcardCache$1(nodeInterop) {
|
|
3818
|
-
if (typeof WeakMap !== "function") return null;
|
|
3819
|
-
var cacheBabelInterop = new WeakMap();
|
|
3820
|
-
var cacheNodeInterop = new WeakMap();
|
|
3821
|
-
return (_getRequireWildcardCache$1 = function _getRequireWildcardCache(nodeInterop) {
|
|
3822
|
-
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
3823
|
-
})(nodeInterop);
|
|
3824
|
-
}
|
|
3825
|
-
|
|
3826
|
-
function _interopRequireWildcard$1(obj, nodeInterop) {
|
|
3827
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
3828
|
-
return obj;
|
|
3829
|
-
}
|
|
3830
|
-
|
|
3831
|
-
if (obj === null || _typeof$2(obj) !== "object" && typeof obj !== "function") {
|
|
3832
|
-
return {
|
|
3833
|
-
"default": obj
|
|
3834
|
-
};
|
|
3835
|
-
}
|
|
3836
|
-
|
|
3837
|
-
var cache = _getRequireWildcardCache$1(nodeInterop);
|
|
3838
|
-
|
|
3839
|
-
if (cache && cache.has(obj)) {
|
|
3840
|
-
return cache.get(obj);
|
|
3841
|
-
}
|
|
3842
|
-
|
|
3843
|
-
var newObj = {};
|
|
3844
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
3845
|
-
|
|
3846
|
-
for (var key in obj) {
|
|
3847
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
3848
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
3849
|
-
|
|
3850
|
-
if (desc && (desc.get || desc.set)) {
|
|
3851
|
-
Object.defineProperty(newObj, key, desc);
|
|
3852
|
-
} else {
|
|
3853
|
-
newObj[key] = obj[key];
|
|
3854
|
-
}
|
|
3855
|
-
}
|
|
3856
|
-
}
|
|
3857
|
-
|
|
3858
|
-
newObj["default"] = obj;
|
|
3859
|
-
|
|
3860
|
-
if (cache) {
|
|
3861
|
-
cache.set(obj, newObj);
|
|
3862
|
-
}
|
|
3863
|
-
|
|
3864
|
-
return newObj;
|
|
3865
|
-
}
|
|
3866
|
-
|
|
3867
|
-
var NativeIconAPI = _reactNative.NativeModules.RNVectorIconsManager || _reactNative.NativeModules.RNVectorIconsModule;
|
|
3868
|
-
createIconSet$1.NativeIconAPI = NativeIconAPI;
|
|
3869
|
-
var DEFAULT_ICON_SIZE = 12;
|
|
3870
|
-
createIconSet$1.DEFAULT_ICON_SIZE = DEFAULT_ICON_SIZE;
|
|
3871
|
-
var DEFAULT_ICON_COLOR = 'black';
|
|
3872
|
-
createIconSet$1.DEFAULT_ICON_COLOR = DEFAULT_ICON_COLOR;
|
|
3873
|
-
|
|
3874
|
-
function createIconSet(glyphMap, fontFamily, fontFile, fontStyle) {
|
|
3875
|
-
var fontBasename = fontFile ? fontFile.replace(/\.(otf|ttf)$/, '') : fontFamily;
|
|
3876
|
-
|
|
3877
|
-
var fontReference = _reactNative.Platform.select({
|
|
3878
|
-
windows: "/Assets/" + fontFile + "#" + fontFamily,
|
|
3879
|
-
android: fontBasename,
|
|
3880
|
-
web: fontBasename,
|
|
3881
|
-
"default": fontFamily
|
|
3882
|
-
});
|
|
3883
|
-
|
|
3884
|
-
var IconNamePropType = _propTypes$1["default"].oneOf(Object.keys(glyphMap));
|
|
3885
|
-
|
|
3886
|
-
var Icon = function (_PureComponent) {
|
|
3887
|
-
(0, _inherits2$1["default"])(Icon, _PureComponent);
|
|
3888
|
-
|
|
3889
|
-
function Icon() {
|
|
3890
|
-
var _getPrototypeOf2;
|
|
3891
|
-
|
|
3892
|
-
var _this;
|
|
3893
|
-
|
|
3894
|
-
(0, _classCallCheck2$1["default"])(this, Icon);
|
|
3895
|
-
|
|
3896
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
3897
|
-
args[_key] = arguments[_key];
|
|
3898
|
-
}
|
|
3899
|
-
|
|
3900
|
-
_this = (0, _possibleConstructorReturn2$1["default"])(this, (_getPrototypeOf2 = (0, _getPrototypeOf3["default"])(Icon)).call.apply(_getPrototypeOf2, [this].concat(args)));
|
|
3901
|
-
_this.root = null;
|
|
3902
|
-
|
|
3903
|
-
_this.handleRef = function (ref) {
|
|
3904
|
-
_this.root = ref;
|
|
3905
|
-
};
|
|
3906
|
-
|
|
3907
|
-
return _this;
|
|
3908
|
-
}
|
|
3909
|
-
|
|
3910
|
-
(0, _createClass2$1["default"])(Icon, [{
|
|
3911
|
-
key: "setNativeProps",
|
|
3912
|
-
value: function setNativeProps(nativeProps) {
|
|
3913
|
-
if (this.root) {
|
|
3914
|
-
this.root.setNativeProps(nativeProps);
|
|
3915
|
-
}
|
|
3916
|
-
}
|
|
3917
|
-
}, {
|
|
3918
|
-
key: "render",
|
|
3919
|
-
value: function render() {
|
|
3920
|
-
var _this$props = this.props,
|
|
3921
|
-
name = _this$props.name,
|
|
3922
|
-
size = _this$props.size,
|
|
3923
|
-
color = _this$props.color,
|
|
3924
|
-
style = _this$props.style,
|
|
3925
|
-
children = _this$props.children,
|
|
3926
|
-
props = (0, _objectWithoutProperties2["default"])(_this$props, ["name", "size", "color", "style", "children"]);
|
|
3927
|
-
var glyph = name ? glyphMap[name] || '?' : '';
|
|
3928
|
-
|
|
3929
|
-
if (typeof glyph === 'number') {
|
|
3930
|
-
glyph = String.fromCodePoint(glyph);
|
|
3931
|
-
}
|
|
3932
|
-
|
|
3933
|
-
var styleDefaults = {
|
|
3934
|
-
fontSize: size,
|
|
3935
|
-
color: color
|
|
3936
|
-
};
|
|
3937
|
-
var styleOverrides = {
|
|
3938
|
-
fontFamily: fontReference,
|
|
3939
|
-
fontWeight: 'normal',
|
|
3940
|
-
fontStyle: 'normal'
|
|
3941
|
-
};
|
|
3942
|
-
props.style = [styleDefaults, style, styleOverrides, fontStyle || {}];
|
|
3943
|
-
props.ref = this.handleRef;
|
|
3944
|
-
return _react$1["default"].createElement(_reactNative.Text, (0, _extends2$1["default"])({
|
|
3945
|
-
selectable: false
|
|
3946
|
-
}, props, {
|
|
3947
|
-
__self: this,
|
|
3948
|
-
__source: {
|
|
3949
|
-
fileName: _jsxFileName$1,
|
|
3950
|
-
lineNumber: 91
|
|
3951
|
-
}
|
|
3952
|
-
}), glyph, children);
|
|
3953
|
-
}
|
|
3954
|
-
}]);
|
|
3955
|
-
return Icon;
|
|
3956
|
-
}(_react$1.PureComponent);
|
|
3957
|
-
|
|
3958
|
-
Icon.propTypes = {
|
|
3959
|
-
allowFontScaling: _propTypes$1["default"].bool,
|
|
3960
|
-
name: IconNamePropType,
|
|
3961
|
-
size: _propTypes$1["default"].number,
|
|
3962
|
-
color: _propTypes$1["default"].any,
|
|
3963
|
-
children: _propTypes$1["default"].node,
|
|
3964
|
-
style: _propTypes$1["default"].any
|
|
3965
|
-
};
|
|
3966
|
-
Icon.defaultProps = {
|
|
3967
|
-
size: DEFAULT_ICON_SIZE,
|
|
3968
|
-
allowFontScaling: false
|
|
3969
|
-
};
|
|
3970
|
-
var imageSourceCache = (0, _createIconSourceCache["default"])();
|
|
3971
|
-
|
|
3972
|
-
function resolveGlyph(name) {
|
|
3973
|
-
var glyph = glyphMap[name] || '?';
|
|
3974
|
-
|
|
3975
|
-
if (typeof glyph === 'number') {
|
|
3976
|
-
return String.fromCodePoint(glyph);
|
|
3977
|
-
}
|
|
3978
|
-
|
|
3979
|
-
return glyph;
|
|
3980
|
-
}
|
|
3981
|
-
|
|
3982
|
-
function getImageSourceSync(name) {
|
|
3983
|
-
var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : DEFAULT_ICON_SIZE;
|
|
3984
|
-
var color = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : DEFAULT_ICON_COLOR;
|
|
3985
|
-
(0, _ensureNativeModuleAvailable["default"])();
|
|
3986
|
-
var glyph = resolveGlyph(name);
|
|
3987
|
-
var processedColor = (0, _reactNative.processColor)(color);
|
|
3988
|
-
var cacheKey = glyph + ":" + size + ":" + processedColor;
|
|
3989
|
-
|
|
3990
|
-
if (imageSourceCache.has(cacheKey)) {
|
|
3991
|
-
return imageSourceCache.get(cacheKey);
|
|
3992
|
-
}
|
|
3993
|
-
|
|
3994
|
-
try {
|
|
3995
|
-
var imagePath = NativeIconAPI.getImageForFontSync(fontReference, glyph, size, processedColor);
|
|
3996
|
-
var value = {
|
|
3997
|
-
uri: imagePath,
|
|
3998
|
-
scale: _reactNative.PixelRatio.get()
|
|
3999
|
-
};
|
|
4000
|
-
imageSourceCache.setValue(cacheKey, value);
|
|
4001
|
-
return value;
|
|
4002
|
-
} catch (error) {
|
|
4003
|
-
imageSourceCache.setError(cacheKey, error);
|
|
4004
|
-
throw error;
|
|
4005
|
-
}
|
|
4006
|
-
}
|
|
4007
|
-
|
|
4008
|
-
function getImageSource(name) {
|
|
4009
|
-
var size,
|
|
4010
|
-
color,
|
|
4011
|
-
glyph,
|
|
4012
|
-
processedColor,
|
|
4013
|
-
cacheKey,
|
|
4014
|
-
imagePath,
|
|
4015
|
-
value,
|
|
4016
|
-
_args = arguments;
|
|
4017
|
-
return _regenerator["default"].async(function getImageSource$(_context) {
|
|
4018
|
-
while (1) {
|
|
4019
|
-
switch (_context.prev = _context.next) {
|
|
4020
|
-
case 0:
|
|
4021
|
-
size = _args.length > 1 && _args[1] !== undefined ? _args[1] : DEFAULT_ICON_SIZE;
|
|
4022
|
-
color = _args.length > 2 && _args[2] !== undefined ? _args[2] : DEFAULT_ICON_COLOR;
|
|
4023
|
-
(0, _ensureNativeModuleAvailable["default"])();
|
|
4024
|
-
glyph = resolveGlyph(name);
|
|
4025
|
-
processedColor = (0, _reactNative.processColor)(color);
|
|
4026
|
-
cacheKey = glyph + ":" + size + ":" + processedColor;
|
|
4027
|
-
|
|
4028
|
-
if (!imageSourceCache.has(cacheKey)) {
|
|
4029
|
-
_context.next = 8;
|
|
4030
|
-
break;
|
|
4031
|
-
}
|
|
4032
|
-
|
|
4033
|
-
return _context.abrupt("return", imageSourceCache.get(cacheKey));
|
|
4034
|
-
|
|
4035
|
-
case 8:
|
|
4036
|
-
_context.prev = 8;
|
|
4037
|
-
_context.next = 11;
|
|
4038
|
-
return _regenerator["default"].awrap(NativeIconAPI.getImageForFont(fontReference, glyph, size, processedColor));
|
|
4039
|
-
|
|
4040
|
-
case 11:
|
|
4041
|
-
imagePath = _context.sent;
|
|
4042
|
-
value = {
|
|
4043
|
-
uri: imagePath,
|
|
4044
|
-
scale: _reactNative.PixelRatio.get()
|
|
4045
|
-
};
|
|
4046
|
-
imageSourceCache.setValue(cacheKey, value);
|
|
4047
|
-
return _context.abrupt("return", value);
|
|
4048
|
-
|
|
4049
|
-
case 17:
|
|
4050
|
-
_context.prev = 17;
|
|
4051
|
-
_context.t0 = _context["catch"](8);
|
|
4052
|
-
imageSourceCache.setError(cacheKey, _context.t0);
|
|
4053
|
-
throw _context.t0;
|
|
4054
|
-
|
|
4055
|
-
case 21:
|
|
4056
|
-
case "end":
|
|
4057
|
-
return _context.stop();
|
|
4058
|
-
}
|
|
4059
|
-
}
|
|
4060
|
-
}, null, null, [[8, 17]]);
|
|
4061
|
-
}
|
|
4062
|
-
|
|
4063
|
-
function loadFont() {
|
|
4064
|
-
var file,
|
|
4065
|
-
_args2 = arguments;
|
|
4066
|
-
return _regenerator["default"].async(function loadFont$(_context2) {
|
|
4067
|
-
while (1) {
|
|
4068
|
-
switch (_context2.prev = _context2.next) {
|
|
4069
|
-
case 0:
|
|
4070
|
-
file = _args2.length > 0 && _args2[0] !== undefined ? _args2[0] : fontFile;
|
|
4071
|
-
|
|
4072
|
-
if (!(_reactNative.Platform.OS === 'ios')) {
|
|
4073
|
-
_context2.next = 7;
|
|
4074
|
-
break;
|
|
4075
|
-
}
|
|
4076
|
-
|
|
4077
|
-
(0, _ensureNativeModuleAvailable["default"])();
|
|
4078
|
-
|
|
4079
|
-
if (file) {
|
|
4080
|
-
_context2.next = 5;
|
|
4081
|
-
break;
|
|
4082
|
-
}
|
|
4083
|
-
|
|
4084
|
-
throw new Error('Unable to load font, because no file was specified. ');
|
|
4085
|
-
|
|
4086
|
-
case 5:
|
|
4087
|
-
_context2.next = 7;
|
|
4088
|
-
return _regenerator["default"].awrap(NativeIconAPI.loadFontWithFileName.apply(NativeIconAPI, (0, _toConsumableArray2["default"])(file.split('.'))));
|
|
4089
|
-
|
|
4090
|
-
case 7:
|
|
4091
|
-
case "end":
|
|
4092
|
-
return _context2.stop();
|
|
4093
|
-
}
|
|
4094
|
-
}
|
|
4095
|
-
});
|
|
4096
|
-
}
|
|
4097
|
-
|
|
4098
|
-
function hasIcon(name) {
|
|
4099
|
-
return Object.prototype.hasOwnProperty.call(glyphMap, name);
|
|
4100
|
-
}
|
|
4101
|
-
|
|
4102
|
-
function getRawGlyphMap() {
|
|
4103
|
-
return glyphMap;
|
|
4104
|
-
}
|
|
4105
|
-
|
|
4106
|
-
function getFontFamily() {
|
|
4107
|
-
return fontReference;
|
|
4108
|
-
}
|
|
4109
|
-
|
|
4110
|
-
Icon.Button = (0, _iconButton["default"])(Icon);
|
|
4111
|
-
Icon.getImageSource = getImageSource;
|
|
4112
|
-
Icon.getImageSourceSync = getImageSourceSync;
|
|
4113
|
-
Icon.loadFont = loadFont;
|
|
4114
|
-
Icon.hasIcon = hasIcon;
|
|
4115
|
-
Icon.getRawGlyphMap = getRawGlyphMap;
|
|
4116
|
-
Icon.getFontFamily = getFontFamily;
|
|
4117
|
-
return Icon;
|
|
4118
|
-
}
|
|
4119
|
-
|
|
4120
|
-
var createMultiStyleIconSet$1 = {};
|
|
4121
|
-
|
|
4122
|
-
function _defineProperty$1(obj, key, value) {
|
|
4123
|
-
if (key in obj) {
|
|
4124
|
-
Object.defineProperty(obj, key, {
|
|
4125
|
-
value: value,
|
|
4126
|
-
enumerable: true,
|
|
4127
|
-
configurable: true,
|
|
4128
|
-
writable: true
|
|
4129
|
-
});
|
|
4130
|
-
} else {
|
|
4131
|
-
obj[key] = value;
|
|
4132
|
-
}
|
|
4133
|
-
|
|
4134
|
-
return obj;
|
|
4135
|
-
}
|
|
4136
|
-
|
|
4137
|
-
var defineProperty = _defineProperty$1;
|
|
4138
|
-
|
|
4139
|
-
var _interopRequireDefault$2 = interopRequireDefault;
|
|
4140
|
-
Object.defineProperty(createMultiStyleIconSet$1, "__esModule", {
|
|
4141
|
-
value: true
|
|
4142
|
-
});
|
|
4143
|
-
|
|
4144
|
-
createMultiStyleIconSet$1["default"] = createMultiStyleIconSet;
|
|
4145
|
-
|
|
4146
|
-
var _classCallCheck2 = _interopRequireDefault$2(classCallCheck);
|
|
4147
|
-
|
|
4148
|
-
var _createClass2 = _interopRequireDefault$2(createClass);
|
|
4149
|
-
|
|
4150
|
-
var _possibleConstructorReturn2 = _interopRequireDefault$2(possibleConstructorReturn);
|
|
4151
|
-
|
|
4152
|
-
var _getPrototypeOf2 = _interopRequireDefault$2(getPrototypeOf);
|
|
4153
|
-
|
|
4154
|
-
var _inherits2 = _interopRequireDefault$2(inherits);
|
|
4155
|
-
|
|
4156
|
-
var _defineProperty2 = _interopRequireDefault$2(defineProperty);
|
|
4157
|
-
|
|
4158
|
-
var _extends2 = _interopRequireDefault$2(_extends_1);
|
|
4159
|
-
|
|
4160
|
-
var _react = _interopRequireWildcard(React__default["default"]);
|
|
4161
|
-
|
|
4162
|
-
var _propTypes = _interopRequireDefault$2(propTypes.exports);
|
|
4163
|
-
|
|
4164
|
-
var _createIconSet$2 = _interopRequireWildcard(createIconSet$1);
|
|
4165
|
-
|
|
4166
|
-
var _jsxFileName = "/home/runner/work/react-native-vector-icons/react-native-vector-icons/lib/create-multi-style-icon-set.js";
|
|
4167
|
-
|
|
4168
|
-
function _getRequireWildcardCache(nodeInterop) {
|
|
4169
|
-
if (typeof WeakMap !== "function") return null;
|
|
4170
|
-
var cacheBabelInterop = new WeakMap();
|
|
4171
|
-
var cacheNodeInterop = new WeakMap();
|
|
4172
|
-
return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) {
|
|
4173
|
-
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
4174
|
-
})(nodeInterop);
|
|
4175
|
-
}
|
|
4176
|
-
|
|
4177
|
-
function _interopRequireWildcard(obj, nodeInterop) {
|
|
4178
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
4179
|
-
return obj;
|
|
4180
|
-
}
|
|
4181
|
-
|
|
4182
|
-
if (obj === null || _typeof$2(obj) !== "object" && typeof obj !== "function") {
|
|
4183
|
-
return {
|
|
4184
|
-
"default": obj
|
|
4185
|
-
};
|
|
4186
|
-
}
|
|
4187
|
-
|
|
4188
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
4189
|
-
|
|
4190
|
-
if (cache && cache.has(obj)) {
|
|
4191
|
-
return cache.get(obj);
|
|
4192
|
-
}
|
|
4193
|
-
|
|
4194
|
-
var newObj = {};
|
|
4195
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
4196
|
-
|
|
4197
|
-
for (var key in obj) {
|
|
4198
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
4199
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
4200
|
-
|
|
4201
|
-
if (desc && (desc.get || desc.set)) {
|
|
4202
|
-
Object.defineProperty(newObj, key, desc);
|
|
4203
|
-
} else {
|
|
4204
|
-
newObj[key] = obj[key];
|
|
4205
|
-
}
|
|
4206
|
-
}
|
|
4207
|
-
}
|
|
4208
|
-
|
|
4209
|
-
newObj["default"] = obj;
|
|
4210
|
-
|
|
4211
|
-
if (cache) {
|
|
4212
|
-
cache.set(obj, newObj);
|
|
4213
|
-
}
|
|
4214
|
-
|
|
4215
|
-
return newObj;
|
|
4216
|
-
}
|
|
4217
|
-
|
|
4218
|
-
function createMultiStyleIconSet(styles) {
|
|
4219
|
-
var optionsInput = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
4220
|
-
var styleNames = Object.keys(styles);
|
|
4221
|
-
|
|
4222
|
-
if (styleNames.length === 0) {
|
|
4223
|
-
throw new Error('You need to add at least one style');
|
|
4224
|
-
}
|
|
4225
|
-
|
|
4226
|
-
var options = (0, _extends2["default"])({
|
|
4227
|
-
defaultStyle: styleNames[0],
|
|
4228
|
-
fallbackFamily: function fallbackFamily() {
|
|
4229
|
-
return styleNames[0];
|
|
4230
|
-
},
|
|
4231
|
-
glyphValidator: function glyphValidator() {
|
|
4232
|
-
return true;
|
|
4233
|
-
}
|
|
4234
|
-
}, optionsInput);
|
|
4235
|
-
var iconSets = styleNames.reduce(function (acc, name) {
|
|
4236
|
-
var style = styles[name];
|
|
4237
|
-
acc[name] = (0, _createIconSet$2["default"])(style.glyphMap || {}, style.fontFamily || '', style.fontFile || '', style.fontStyle || {});
|
|
4238
|
-
return acc;
|
|
4239
|
-
}, {});
|
|
4240
|
-
|
|
4241
|
-
function styleFromProps(props) {
|
|
4242
|
-
return Object.keys(props).reduce(function (result, propName) {
|
|
4243
|
-
return styleNames.indexOf(propName) !== -1 && props[propName] === true ? propName : result;
|
|
4244
|
-
}, options.defaultStyle);
|
|
4245
|
-
}
|
|
4246
|
-
|
|
4247
|
-
function getIconSetForProps(props) {
|
|
4248
|
-
var name = props.name;
|
|
4249
|
-
var style = styleFromProps(props);
|
|
4250
|
-
if (options.glyphValidator(name, style)) return iconSets[style];
|
|
4251
|
-
var family = options.fallbackFamily(name);
|
|
4252
|
-
|
|
4253
|
-
if (styleNames.indexOf(family) === -1) {
|
|
4254
|
-
return options.defaultStyle;
|
|
4255
|
-
}
|
|
4256
|
-
|
|
4257
|
-
return iconSets[family];
|
|
4258
|
-
}
|
|
4259
|
-
|
|
4260
|
-
function selectIconClass(iconSet, iconClass) {
|
|
4261
|
-
return iconClass.length > 0 ? iconSet[iconClass] : iconSet;
|
|
4262
|
-
}
|
|
4263
|
-
|
|
4264
|
-
function reduceProps(props) {
|
|
4265
|
-
return Object.keys(props).reduce(function (acc, prop) {
|
|
4266
|
-
if (styleNames.indexOf(prop) === -1) {
|
|
4267
|
-
acc[prop] = props[prop];
|
|
4268
|
-
}
|
|
4269
|
-
|
|
4270
|
-
return acc;
|
|
4271
|
-
}, {});
|
|
4272
|
-
}
|
|
4273
|
-
|
|
4274
|
-
function getStyledIconSet(style) {
|
|
4275
|
-
var name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
4276
|
-
|
|
4277
|
-
if (styleNames.indexOf(style) === -1) {
|
|
4278
|
-
return iconSets[options.defaultStyle];
|
|
4279
|
-
}
|
|
4280
|
-
|
|
4281
|
-
return !name ? iconSets[styleFromProps((0, _defineProperty2["default"])({}, style, true))] : getIconSetForProps((0, _defineProperty2["default"])({
|
|
4282
|
-
name: name
|
|
4283
|
-
}, style, true));
|
|
4284
|
-
}
|
|
4285
|
-
|
|
4286
|
-
function getImageSource(name) {
|
|
4287
|
-
var size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _createIconSet$2.DEFAULT_ICON_SIZE;
|
|
4288
|
-
var color = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : _createIconSet$2.DEFAULT_ICON_COLOR;
|
|
4289
|
-
var style = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : options.defaultStyle;
|
|
4290
|
-
return getStyledIconSet(style, name).getImageSource(name, size, color);
|
|
4291
|
-
}
|
|
4292
|
-
|
|
4293
|
-
function getFontFamily() {
|
|
4294
|
-
var style = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : options.defaultStyle;
|
|
4295
|
-
return getStyledIconSet(style).getFontFamily();
|
|
4296
|
-
}
|
|
4297
|
-
|
|
4298
|
-
function getRawGlyphMap() {
|
|
4299
|
-
var style = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : options.defaultStyle;
|
|
4300
|
-
return getStyledIconSet(style).getRawGlyphMap();
|
|
4301
|
-
}
|
|
4302
|
-
|
|
4303
|
-
function hasIcon(name) {
|
|
4304
|
-
var style = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : options.defaultStyle;
|
|
4305
|
-
return options.glyphValidator(name, style);
|
|
4306
|
-
}
|
|
4307
|
-
|
|
4308
|
-
function createStyledIconClass() {
|
|
4309
|
-
var selectClass = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
4310
|
-
|
|
4311
|
-
var IconClass = function (_PureComponent) {
|
|
4312
|
-
(0, _inherits2["default"])(IconClass, _PureComponent);
|
|
4313
|
-
|
|
4314
|
-
function IconClass() {
|
|
4315
|
-
(0, _classCallCheck2["default"])(this, IconClass);
|
|
4316
|
-
return (0, _possibleConstructorReturn2["default"])(this, (0, _getPrototypeOf2["default"])(IconClass).apply(this, arguments));
|
|
4317
|
-
}
|
|
4318
|
-
|
|
4319
|
-
(0, _createClass2["default"])(IconClass, [{
|
|
4320
|
-
key: "render",
|
|
4321
|
-
value: function render() {
|
|
4322
|
-
var selectedIconSet = getIconSetForProps(this.props);
|
|
4323
|
-
var SelectedIconClass = selectIconClass(selectedIconSet, selectClass);
|
|
4324
|
-
var props = reduceProps(this.props);
|
|
4325
|
-
return _react["default"].createElement(SelectedIconClass, (0, _extends2["default"])({}, props, {
|
|
4326
|
-
__self: this,
|
|
4327
|
-
__source: {
|
|
4328
|
-
fileName: _jsxFileName,
|
|
4329
|
-
lineNumber: 123
|
|
4330
|
-
}
|
|
4331
|
-
}));
|
|
4332
|
-
}
|
|
4333
|
-
}]);
|
|
4334
|
-
return IconClass;
|
|
4335
|
-
}(_react.PureComponent);
|
|
4336
|
-
|
|
4337
|
-
IconClass.propTypes = styleNames.reduce(function (acc, name) {
|
|
4338
|
-
acc[name] = _propTypes["default"].bool;
|
|
4339
|
-
return acc;
|
|
4340
|
-
}, {});
|
|
4341
|
-
IconClass.defaultProps = styleNames.reduce(function (acc, name) {
|
|
4342
|
-
acc[name] = false;
|
|
4343
|
-
return acc;
|
|
4344
|
-
}, {});
|
|
4345
|
-
return IconClass;
|
|
4346
|
-
}
|
|
4347
|
-
|
|
4348
|
-
var Icon = createStyledIconClass();
|
|
4349
|
-
Icon.Button = createStyledIconClass('Button');
|
|
4350
|
-
Icon.getStyledIconSet = getStyledIconSet;
|
|
4351
|
-
Icon.getImageSource = getImageSource;
|
|
4352
|
-
Icon.getFontFamily = getFontFamily;
|
|
4353
|
-
Icon.getRawGlyphMap = getRawGlyphMap;
|
|
4354
|
-
Icon.hasIcon = hasIcon;
|
|
4355
|
-
return Icon;
|
|
4356
|
-
}
|
|
4357
|
-
|
|
4358
|
-
var createIconSetFromFontello$1 = {};
|
|
4359
|
-
|
|
4360
|
-
var _interopRequireDefault$1 = interopRequireDefault;
|
|
4361
|
-
Object.defineProperty(createIconSetFromFontello$1, "__esModule", {
|
|
4362
|
-
value: true
|
|
4363
|
-
});
|
|
4364
|
-
|
|
4365
|
-
createIconSetFromFontello$1["default"] = createIconSetFromFontello;
|
|
4366
|
-
|
|
4367
|
-
var _createIconSet$1 = _interopRequireDefault$1(createIconSet$1);
|
|
4368
|
-
|
|
4369
|
-
function createIconSetFromFontello(config, fontFamilyArg, fontFile) {
|
|
4370
|
-
var glyphMap = {};
|
|
4371
|
-
config.glyphs.forEach(function (glyph) {
|
|
4372
|
-
glyphMap[glyph.css] = glyph.code;
|
|
4373
|
-
});
|
|
4374
|
-
var fontFamily = fontFamilyArg || config.name || 'fontello';
|
|
4375
|
-
return (0, _createIconSet$1["default"])(glyphMap, fontFamily, fontFile || fontFamily + ".ttf");
|
|
4376
|
-
}
|
|
4377
|
-
|
|
4378
|
-
var createIconSetFromIcomoon = {};
|
|
4379
|
-
|
|
4380
|
-
var _interopRequireDefault = interopRequireDefault;
|
|
4381
|
-
Object.defineProperty(createIconSetFromIcomoon, "__esModule", {
|
|
4382
|
-
value: true
|
|
4383
|
-
});
|
|
4384
|
-
|
|
4385
|
-
createIconSetFromIcomoon["default"] = createIconSetFromIcoMoon;
|
|
4386
|
-
|
|
4387
|
-
var _createIconSet = _interopRequireDefault(createIconSet$1);
|
|
4388
|
-
|
|
4389
|
-
function createIconSetFromIcoMoon(config, fontFamilyArg, fontFile) {
|
|
4390
|
-
var glyphMap = {};
|
|
4391
|
-
config.icons.forEach(function (icon) {
|
|
4392
|
-
icon.properties.name.split(/\s*,\s*/g).forEach(function (name) {
|
|
4393
|
-
glyphMap[name] = icon.properties.code;
|
|
4394
|
-
});
|
|
4395
|
-
});
|
|
4396
|
-
var fontFamily = fontFamilyArg || config.preferences.fontPref.metadata.fontFamily;
|
|
4397
|
-
return (0, _createIconSet["default"])(glyphMap, fontFamily, fontFile || fontFamily + ".ttf");
|
|
4398
|
-
}
|
|
4399
|
-
|
|
4400
|
-
(function (exports) {
|
|
4401
|
-
var _interopRequireDefault = interopRequireDefault;
|
|
4402
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4403
|
-
value: true
|
|
4404
|
-
});
|
|
4405
|
-
Object.defineProperty(exports, "createIconSet", {
|
|
4406
|
-
enumerable: true,
|
|
4407
|
-
get: function get() {
|
|
4408
|
-
return _createIconSet["default"];
|
|
4409
|
-
}
|
|
4410
|
-
});
|
|
4411
|
-
Object.defineProperty(exports, "createIconSetFromFontello", {
|
|
4412
|
-
enumerable: true,
|
|
4413
|
-
get: function get() {
|
|
4414
|
-
return _createIconSetFromFontello["default"];
|
|
4415
|
-
}
|
|
4416
|
-
});
|
|
4417
|
-
Object.defineProperty(exports, "createIconSetFromIcoMoon", {
|
|
4418
|
-
enumerable: true,
|
|
4419
|
-
get: function get() {
|
|
4420
|
-
return _createIconSetFromIcomoon["default"];
|
|
4421
|
-
}
|
|
4422
|
-
});
|
|
4423
|
-
Object.defineProperty(exports, "createMultiStyleIconSet", {
|
|
4424
|
-
enumerable: true,
|
|
4425
|
-
get: function get() {
|
|
4426
|
-
return _createMultiStyleIconSet["default"];
|
|
4427
|
-
}
|
|
4428
|
-
});
|
|
4429
|
-
|
|
4430
|
-
var _createIconSet = _interopRequireDefault(createIconSet$1);
|
|
4431
|
-
|
|
4432
|
-
var _createMultiStyleIconSet = _interopRequireDefault(createMultiStyleIconSet$1);
|
|
4433
|
-
|
|
4434
|
-
var _createIconSetFromFontello = _interopRequireDefault(createIconSetFromFontello$1);
|
|
4435
|
-
|
|
4436
|
-
var _createIconSetFromIcomoon = _interopRequireDefault(createIconSetFromIcomoon);
|
|
4437
|
-
})(dist);
|
|
4438
|
-
|
|
4439
|
-
var cssToReactNative = {};
|
|
4440
|
-
|
|
4441
|
-
var openParentheses = "(".charCodeAt(0);
|
|
4442
|
-
var closeParentheses = ")".charCodeAt(0);
|
|
4443
|
-
var singleQuote = "'".charCodeAt(0);
|
|
4444
|
-
var doubleQuote = '"'.charCodeAt(0);
|
|
4445
|
-
var backslash = "\\".charCodeAt(0);
|
|
4446
|
-
var slash = "/".charCodeAt(0);
|
|
4447
|
-
var comma = ",".charCodeAt(0);
|
|
4448
|
-
var colon = ":".charCodeAt(0);
|
|
4449
|
-
var star = "*".charCodeAt(0);
|
|
4450
|
-
var uLower = "u".charCodeAt(0);
|
|
4451
|
-
var uUpper = "U".charCodeAt(0);
|
|
4452
|
-
var plus$1 = "+".charCodeAt(0);
|
|
4453
|
-
var isUnicodeRange = /^[a-f0-9?-]+$/i;
|
|
4454
|
-
|
|
4455
|
-
var parse$1 = function parse(input) {
|
|
4456
|
-
var tokens = [];
|
|
4457
|
-
var value = input;
|
|
4458
|
-
var next, quote, prev, token, escape, escapePos, whitespacePos, parenthesesOpenPos;
|
|
4459
|
-
var pos = 0;
|
|
4460
|
-
var code = value.charCodeAt(pos);
|
|
4461
|
-
var max = value.length;
|
|
4462
|
-
var stack = [{
|
|
4463
|
-
nodes: tokens
|
|
4464
|
-
}];
|
|
4465
|
-
var balanced = 0;
|
|
4466
|
-
var parent;
|
|
4467
|
-
var name = "";
|
|
4468
|
-
var before = "";
|
|
4469
|
-
var after = "";
|
|
4470
|
-
|
|
4471
|
-
while (pos < max) {
|
|
4472
|
-
// Whitespaces
|
|
4473
|
-
if (code <= 32) {
|
|
4474
|
-
next = pos;
|
|
4475
|
-
|
|
4476
|
-
do {
|
|
4477
|
-
next += 1;
|
|
4478
|
-
code = value.charCodeAt(next);
|
|
4479
|
-
} while (code <= 32);
|
|
4480
|
-
|
|
4481
|
-
token = value.slice(pos, next);
|
|
4482
|
-
prev = tokens[tokens.length - 1];
|
|
4483
|
-
|
|
4484
|
-
if (code === closeParentheses && balanced) {
|
|
4485
|
-
after = token;
|
|
4486
|
-
} else if (prev && prev.type === "div") {
|
|
4487
|
-
prev.after = token;
|
|
4488
|
-
} else if (code === comma || code === colon || code === slash && value.charCodeAt(next + 1) !== star && (!parent || parent && parent.type === "function" && parent.value !== "calc")) {
|
|
4489
|
-
before = token;
|
|
4490
|
-
} else {
|
|
4491
|
-
tokens.push({
|
|
4492
|
-
type: "space",
|
|
4493
|
-
sourceIndex: pos,
|
|
4494
|
-
value: token
|
|
4495
|
-
});
|
|
4496
|
-
}
|
|
4497
|
-
|
|
4498
|
-
pos = next; // Quotes
|
|
4499
|
-
} else if (code === singleQuote || code === doubleQuote) {
|
|
4500
|
-
next = pos;
|
|
4501
|
-
quote = code === singleQuote ? "'" : '"';
|
|
4502
|
-
token = {
|
|
4503
|
-
type: "string",
|
|
4504
|
-
sourceIndex: pos,
|
|
4505
|
-
quote: quote
|
|
4506
|
-
};
|
|
4507
|
-
|
|
4508
|
-
do {
|
|
4509
|
-
escape = false;
|
|
4510
|
-
next = value.indexOf(quote, next + 1);
|
|
4511
|
-
|
|
4512
|
-
if (~next) {
|
|
4513
|
-
escapePos = next;
|
|
4514
|
-
|
|
4515
|
-
while (value.charCodeAt(escapePos - 1) === backslash) {
|
|
4516
|
-
escapePos -= 1;
|
|
4517
|
-
escape = !escape;
|
|
4518
|
-
}
|
|
4519
|
-
} else {
|
|
4520
|
-
value += quote;
|
|
4521
|
-
next = value.length - 1;
|
|
4522
|
-
token.unclosed = true;
|
|
4523
|
-
}
|
|
4524
|
-
} while (escape);
|
|
4525
|
-
|
|
4526
|
-
token.value = value.slice(pos + 1, next);
|
|
4527
|
-
tokens.push(token);
|
|
4528
|
-
pos = next + 1;
|
|
4529
|
-
code = value.charCodeAt(pos); // Comments
|
|
4530
|
-
} else if (code === slash && value.charCodeAt(pos + 1) === star) {
|
|
4531
|
-
token = {
|
|
4532
|
-
type: "comment",
|
|
4533
|
-
sourceIndex: pos
|
|
4534
|
-
};
|
|
4535
|
-
next = value.indexOf("*/", pos);
|
|
4536
|
-
|
|
4537
|
-
if (next === -1) {
|
|
4538
|
-
token.unclosed = true;
|
|
4539
|
-
next = value.length;
|
|
2550
|
+
if (next === -1) {
|
|
2551
|
+
token.unclosed = true;
|
|
2552
|
+
next = value.length;
|
|
4540
2553
|
}
|
|
4541
2554
|
|
|
4542
2555
|
token.value = value.slice(pos + 2, next);
|
|
@@ -4915,7 +2928,7 @@ var camelize = function camelize(obj) {
|
|
|
4915
2928
|
};
|
|
4916
2929
|
|
|
4917
2930
|
function walk(obj) {
|
|
4918
|
-
if (!obj || _typeof
|
|
2931
|
+
if (!obj || _typeof(obj) !== 'object') return obj;
|
|
4919
2932
|
if (isDate(obj) || isRegex(obj)) return obj;
|
|
4920
2933
|
if (isArray(obj)) return map(obj, walk);
|
|
4921
2934
|
return reduce(objectKeys(obj), function (acc, key) {
|
|
@@ -5280,7 +3293,7 @@ var cssColorKeywords = require$$0;
|
|
|
5280
3293
|
});
|
|
5281
3294
|
|
|
5282
3295
|
function _interopDefault(ex) {
|
|
5283
|
-
return ex && _typeof
|
|
3296
|
+
return ex && _typeof(ex) === 'object' && 'default' in ex ? ex['default'] : ex;
|
|
5284
3297
|
}
|
|
5285
3298
|
|
|
5286
3299
|
var parse = lib;
|
|
@@ -6135,7 +4148,7 @@ var buffer = '';
|
|
|
6135
4148
|
var lastType;
|
|
6136
4149
|
|
|
6137
4150
|
function handleInterpolation(interpolation, i, arr) {
|
|
6138
|
-
var type = _typeof
|
|
4151
|
+
var type = _typeof(interpolation);
|
|
6139
4152
|
|
|
6140
4153
|
if (type === 'string') {
|
|
6141
4154
|
// strip comments
|
|
@@ -6350,14 +4363,14 @@ var getDisplayName = function getDisplayName(primitive) {
|
|
|
6350
4363
|
* a function that returns a styled component which render styles in React Native
|
|
6351
4364
|
*/
|
|
6352
4365
|
|
|
6353
|
-
var styled = createStyled(
|
|
4366
|
+
var styled = createStyled(reactNative.StyleSheet);
|
|
6354
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'];
|
|
6355
4368
|
var index$2 = components.reduce(function (acc, comp) {
|
|
6356
4369
|
return Object.defineProperty(acc, comp, {
|
|
6357
4370
|
enumerable: true,
|
|
6358
4371
|
configurable: false,
|
|
6359
4372
|
get: function get() {
|
|
6360
|
-
return styled(
|
|
4373
|
+
return styled(reactNative__namespace[comp]);
|
|
6361
4374
|
}
|
|
6362
4375
|
});
|
|
6363
4376
|
}, styled);
|
|
@@ -14281,7 +12294,7 @@ var heroIconConfig = {
|
|
|
14281
12294
|
preferences: preferences
|
|
14282
12295
|
};
|
|
14283
12296
|
|
|
14284
|
-
var HeroIcon =
|
|
12297
|
+
var HeroIcon = reactNativeVectorIcons.createIconSetFromIcoMoon(heroIconConfig, 'hero-icons', 'hero-icons.ttf');
|
|
14285
12298
|
var COLOR_INTENTS = {
|
|
14286
12299
|
text: 'text',
|
|
14287
12300
|
primary: 'primary',
|
|
@@ -14323,7 +12336,7 @@ var FONTWEIGHT_MAP = {
|
|
|
14323
12336
|
regular: 'regular',
|
|
14324
12337
|
'semi-bold': 'semiBold'
|
|
14325
12338
|
};
|
|
14326
|
-
var StyledText$3 = index$2(
|
|
12339
|
+
var StyledText$3 = index$2(reactNative.Text)(function (_ref) {
|
|
14327
12340
|
var themeFontSize = _ref.themeFontSize,
|
|
14328
12341
|
themeFontWeight = _ref.themeFontWeight,
|
|
14329
12342
|
themeIntent = _ref.themeIntent,
|
|
@@ -14349,9 +12362,9 @@ var Text = function Text(_ref) {
|
|
|
14349
12362
|
fontWeight = _ref$fontWeight === void 0 ? 'regular' : _ref$fontWeight,
|
|
14350
12363
|
_ref$intent = _ref.intent,
|
|
14351
12364
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
14352
|
-
nativeProps = _objectWithoutProperties
|
|
12365
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$c);
|
|
14353
12366
|
|
|
14354
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledText$3, _extends$
|
|
12367
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledText$3, _extends$1({}, nativeProps, {
|
|
14355
12368
|
themeFontSize: fontSize,
|
|
14356
12369
|
themeFontWeight: fontWeight,
|
|
14357
12370
|
themeIntent: intent
|
|
@@ -14362,7 +12375,7 @@ var Typography = {
|
|
|
14362
12375
|
Text: Text
|
|
14363
12376
|
};
|
|
14364
12377
|
|
|
14365
|
-
var Container$1 = index$2(
|
|
12378
|
+
var Container$1 = index$2(reactNative.View)(function (_ref) {
|
|
14366
12379
|
var theme = _ref.theme,
|
|
14367
12380
|
_ref$themeVariant = _ref.themeVariant,
|
|
14368
12381
|
themeVariant = _ref$themeVariant === void 0 ? 'default' : _ref$themeVariant,
|
|
@@ -14374,21 +12387,21 @@ var Container$1 = index$2(ReactNative.View)(function (_ref) {
|
|
|
14374
12387
|
flexDirection: 'row'
|
|
14375
12388
|
};
|
|
14376
12389
|
});
|
|
14377
|
-
var IconContainer = index$2(
|
|
12390
|
+
var IconContainer = index$2(reactNative.View)(function (_ref2) {
|
|
14378
12391
|
var theme = _ref2.theme;
|
|
14379
12392
|
return {
|
|
14380
12393
|
alignItems: 'center',
|
|
14381
12394
|
paddingLeft: theme.__hd__.alert.space.padding
|
|
14382
12395
|
};
|
|
14383
12396
|
});
|
|
14384
|
-
var TextContainer = index$2(
|
|
12397
|
+
var TextContainer = index$2(reactNative.View)(function (_ref3) {
|
|
14385
12398
|
var theme = _ref3.theme;
|
|
14386
12399
|
return {
|
|
14387
12400
|
paddingHorizontal: theme.__hd__.alert.space.padding,
|
|
14388
12401
|
flex: 1
|
|
14389
12402
|
};
|
|
14390
12403
|
});
|
|
14391
|
-
var ContentContainer = index$2(
|
|
12404
|
+
var ContentContainer = index$2(reactNative.View)(function (_ref4) {
|
|
14392
12405
|
var theme = _ref4.theme,
|
|
14393
12406
|
showDivider = _ref4.showDivider;
|
|
14394
12407
|
return {
|
|
@@ -14399,7 +12412,7 @@ var ContentContainer = index$2(ReactNative.View)(function (_ref4) {
|
|
|
14399
12412
|
flexDirection: 'row'
|
|
14400
12413
|
};
|
|
14401
12414
|
});
|
|
14402
|
-
var CTAWrapper = index$2(
|
|
12415
|
+
var CTAWrapper = index$2(reactNative.TouchableOpacity)(function (_ref5) {
|
|
14403
12416
|
var theme = _ref5.theme;
|
|
14404
12417
|
return {
|
|
14405
12418
|
paddingHorizontal: theme.__hd__.alert.space.padding,
|
|
@@ -14457,7 +12470,7 @@ var Alert = function Alert(_ref) {
|
|
|
14457
12470
|
})) : null);
|
|
14458
12471
|
};
|
|
14459
12472
|
|
|
14460
|
-
var StyledPressable = index$2(
|
|
12473
|
+
var StyledPressable = index$2(reactNative.TouchableOpacity)(function (_ref) {
|
|
14461
12474
|
var themeSize = _ref.themeSize,
|
|
14462
12475
|
themeIntent = _ref.themeIntent,
|
|
14463
12476
|
theme = _ref.theme;
|
|
@@ -14470,7 +12483,7 @@ var StyledPressable = index$2(ReactNative.TouchableOpacity)(function (_ref) {
|
|
|
14470
12483
|
overflow: 'hidden'
|
|
14471
12484
|
};
|
|
14472
12485
|
});
|
|
14473
|
-
var StyledView$3 = index$2(
|
|
12486
|
+
var StyledView$3 = index$2(reactNative.View)(function (_ref2) {
|
|
14474
12487
|
var themeSize = _ref2.themeSize,
|
|
14475
12488
|
themeIntent = _ref2.themeIntent,
|
|
14476
12489
|
theme = _ref2.theme;
|
|
@@ -14483,7 +12496,7 @@ var StyledView$3 = index$2(ReactNative.View)(function (_ref2) {
|
|
|
14483
12496
|
overflow: 'hidden'
|
|
14484
12497
|
};
|
|
14485
12498
|
});
|
|
14486
|
-
var StyledTextWrapper = index$2(
|
|
12499
|
+
var StyledTextWrapper = index$2(reactNative.View)(function () {
|
|
14487
12500
|
return {
|
|
14488
12501
|
alignItems: 'center',
|
|
14489
12502
|
justifyContent: 'center',
|
|
@@ -14492,7 +12505,7 @@ var StyledTextWrapper = index$2(ReactNative.View)(function () {
|
|
|
14492
12505
|
height: '100%'
|
|
14493
12506
|
};
|
|
14494
12507
|
});
|
|
14495
|
-
var StyledText$2 = index$2(
|
|
12508
|
+
var StyledText$2 = index$2(reactNative.Text)(function (_ref3) {
|
|
14496
12509
|
var themeSize = _ref3.themeSize,
|
|
14497
12510
|
themeIntent = _ref3.themeIntent,
|
|
14498
12511
|
theme = _ref3.theme;
|
|
@@ -14502,7 +12515,7 @@ var StyledText$2 = index$2(ReactNative.Text)(function (_ref3) {
|
|
|
14502
12515
|
overflow: 'hidden'
|
|
14503
12516
|
};
|
|
14504
12517
|
});
|
|
14505
|
-
var StyledImage = index$2(
|
|
12518
|
+
var StyledImage = index$2(reactNative.Image)(function (_ref4) {
|
|
14506
12519
|
var themeSize = _ref4.themeSize,
|
|
14507
12520
|
theme = _ref4.theme;
|
|
14508
12521
|
return {
|
|
@@ -14538,7 +12551,7 @@ var Avatar = function Avatar(_ref) {
|
|
|
14538
12551
|
})) : null;
|
|
14539
12552
|
};
|
|
14540
12553
|
|
|
14541
|
-
var StyledView$2 = index$2(
|
|
12554
|
+
var StyledView$2 = index$2(reactNative.Animated.View)(function (_ref) {
|
|
14542
12555
|
var themeIntent = _ref.themeIntent,
|
|
14543
12556
|
themePadding = _ref.themePadding,
|
|
14544
12557
|
theme = _ref.theme;
|
|
@@ -14552,7 +12565,7 @@ var StyledView$2 = index$2(ReactNative.Animated.View)(function (_ref) {
|
|
|
14552
12565
|
paddingHorizontal: themePadding === 'wideContent' ? theme.__hd__.badge.space.horizontalPadding : undefined
|
|
14553
12566
|
};
|
|
14554
12567
|
});
|
|
14555
|
-
var StyledText$1 = index$2(
|
|
12568
|
+
var StyledText$1 = index$2(reactNative.Text)(function (_ref2) {
|
|
14556
12569
|
var theme = _ref2.theme;
|
|
14557
12570
|
return {
|
|
14558
12571
|
fontFamily: theme.__hd__.badge.fonts["default"],
|
|
@@ -14563,7 +12576,7 @@ var StyledText$1 = index$2(ReactNative.Text)(function (_ref2) {
|
|
|
14563
12576
|
textAlign: 'center'
|
|
14564
12577
|
};
|
|
14565
12578
|
});
|
|
14566
|
-
var StyledStatus = index$2(
|
|
12579
|
+
var StyledStatus = index$2(reactNative.Animated.View)(function (_ref3) {
|
|
14567
12580
|
var themeIntent = _ref3.themeIntent,
|
|
14568
12581
|
theme = _ref3.theme;
|
|
14569
12582
|
return {
|
|
@@ -14587,9 +12600,9 @@ var Status = function Status(_ref) {
|
|
|
14587
12600
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
14588
12601
|
style = _ref.style,
|
|
14589
12602
|
testID = _ref.testID,
|
|
14590
|
-
nativeProps = _objectWithoutProperties
|
|
12603
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$b);
|
|
14591
12604
|
|
|
14592
|
-
var _React$useRef = React__default["default"].useRef(new
|
|
12605
|
+
var _React$useRef = React__default["default"].useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
|
|
14593
12606
|
opacity = _React$useRef.current;
|
|
14594
12607
|
|
|
14595
12608
|
var isFirstRendering = React__default["default"].useRef(true);
|
|
@@ -14600,13 +12613,13 @@ var Status = function Status(_ref) {
|
|
|
14600
12613
|
return;
|
|
14601
12614
|
}
|
|
14602
12615
|
|
|
14603
|
-
|
|
12616
|
+
reactNative.Animated.timing(opacity, {
|
|
14604
12617
|
toValue: visible ? 1 : 0,
|
|
14605
12618
|
duration: 150,
|
|
14606
12619
|
useNativeDriver: true
|
|
14607
12620
|
}).start();
|
|
14608
12621
|
}, [visible, opacity]);
|
|
14609
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
12622
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.View, _extends$1({}, nativeProps, {
|
|
14610
12623
|
style: style,
|
|
14611
12624
|
testID: testID
|
|
14612
12625
|
}), children, /*#__PURE__*/React__default["default"].createElement(StyledStatus, {
|
|
@@ -14640,9 +12653,9 @@ var Badge = function Badge(_ref) {
|
|
|
14640
12653
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
14641
12654
|
style = _ref.style,
|
|
14642
12655
|
testID = _ref.testID,
|
|
14643
|
-
nativeProps = _objectWithoutProperties
|
|
12656
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$a);
|
|
14644
12657
|
|
|
14645
|
-
var _React$useRef = React__default["default"].useRef(new
|
|
12658
|
+
var _React$useRef = React__default["default"].useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
|
|
14646
12659
|
opacity = _React$useRef.current;
|
|
14647
12660
|
|
|
14648
12661
|
var isFirstRendering = React__default["default"].useRef(true);
|
|
@@ -14653,14 +12666,14 @@ var Badge = function Badge(_ref) {
|
|
|
14653
12666
|
return;
|
|
14654
12667
|
}
|
|
14655
12668
|
|
|
14656
|
-
|
|
12669
|
+
reactNative.Animated.timing(opacity, {
|
|
14657
12670
|
toValue: visible ? 1 : 0,
|
|
14658
12671
|
duration: 150,
|
|
14659
12672
|
useNativeDriver: true
|
|
14660
12673
|
}).start();
|
|
14661
12674
|
}, [visible, opacity]);
|
|
14662
12675
|
var content = typeof originalContent === 'number' && originalContent > max ? "".concat(max, "+") : String(originalContent);
|
|
14663
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledView$2, _extends$
|
|
12676
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledView$2, _extends$1({}, nativeProps, {
|
|
14664
12677
|
themeIntent: intent,
|
|
14665
12678
|
themePadding: getPaddingState(content),
|
|
14666
12679
|
style: [{
|
|
@@ -14686,21 +12699,21 @@ var isHeroIcon = function isHeroIcon(x) {
|
|
|
14686
12699
|
return IconList.includes(x);
|
|
14687
12700
|
};
|
|
14688
12701
|
|
|
14689
|
-
var BottomNavigationTab = index$2(
|
|
12702
|
+
var BottomNavigationTab = index$2(reactNative.View)(function (_ref) {
|
|
14690
12703
|
var themeVisibility = _ref.themeVisibility;
|
|
14691
12704
|
return {
|
|
14692
12705
|
flex: 1,
|
|
14693
12706
|
display: themeVisibility === false ? 'none' : 'flex'
|
|
14694
12707
|
};
|
|
14695
12708
|
});
|
|
14696
|
-
var BottomNavigationContainer = index$2(
|
|
12709
|
+
var BottomNavigationContainer = index$2(reactNative.View)({
|
|
14697
12710
|
flex: 1,
|
|
14698
12711
|
overflow: 'hidden'
|
|
14699
12712
|
});
|
|
14700
|
-
var ContentWrapper$2 = index$2(
|
|
12713
|
+
var ContentWrapper$2 = index$2(reactNative.View)({
|
|
14701
12714
|
flex: 1
|
|
14702
12715
|
});
|
|
14703
|
-
var BottomBarWrapper = index$2(
|
|
12716
|
+
var BottomBarWrapper = index$2(reactNative.View)(function (_ref2) {
|
|
14704
12717
|
var themeInsets = _ref2.themeInsets,
|
|
14705
12718
|
theme = _ref2.theme;
|
|
14706
12719
|
return {
|
|
@@ -14716,13 +12729,13 @@ var BottomBarWrapper = index$2(ReactNative.View)(function (_ref2) {
|
|
|
14716
12729
|
elevation: theme.__hd__.bottomNavigation.shadows.elevation
|
|
14717
12730
|
};
|
|
14718
12731
|
});
|
|
14719
|
-
var BottomBar = index$2(
|
|
12732
|
+
var BottomBar = index$2(reactNative.View)({
|
|
14720
12733
|
flex: 1,
|
|
14721
12734
|
flexDirection: 'row',
|
|
14722
12735
|
overflow: 'hidden',
|
|
14723
12736
|
alignItems: 'center'
|
|
14724
12737
|
});
|
|
14725
|
-
var BottomBarItem = index$2(
|
|
12738
|
+
var BottomBarItem = index$2(reactNative.View)({
|
|
14726
12739
|
flex: 1,
|
|
14727
12740
|
alignItems: 'center'
|
|
14728
12741
|
});
|
|
@@ -14733,8 +12746,8 @@ var StyledBottomBarText = index$2(Typography.Text)(function (_ref3) {
|
|
|
14733
12746
|
};
|
|
14734
12747
|
});
|
|
14735
12748
|
|
|
14736
|
-
var isIOS =
|
|
14737
|
-
|
|
12749
|
+
var isIOS = reactNative.Platform.OS === 'ios';
|
|
12750
|
+
reactNative.Platform.OS === 'android';
|
|
14738
12751
|
|
|
14739
12752
|
var _excluded$9 = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
|
|
14740
12753
|
|
|
@@ -14749,7 +12762,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
14749
12762
|
renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
|
|
14750
12763
|
selectedTabKey = _ref.selectedTabKey,
|
|
14751
12764
|
tabs = _ref.tabs,
|
|
14752
|
-
nativeProps = _objectWithoutProperties
|
|
12765
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$9);
|
|
14753
12766
|
|
|
14754
12767
|
var insets = reactNativeSafeAreaContext.useSafeAreaInsets();
|
|
14755
12768
|
/**
|
|
@@ -14764,7 +12777,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
14764
12777
|
if (!loaded.includes(selectedTabKey)) {
|
|
14765
12778
|
// Set the current tab to be loaded if it was not loaded before
|
|
14766
12779
|
setLoaded(function (loadedState) {
|
|
14767
|
-
return [].concat(_toConsumableArray
|
|
12780
|
+
return [].concat(_toConsumableArray(loadedState), [selectedTabKey]);
|
|
14768
12781
|
});
|
|
14769
12782
|
}
|
|
14770
12783
|
|
|
@@ -14804,7 +12817,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
14804
12817
|
testID = tab.testID;
|
|
14805
12818
|
var active = selectedTabKey === key;
|
|
14806
12819
|
var inactiveIcon = getInactiveIcon(icon);
|
|
14807
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
12820
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.TouchableWithoutFeedback, {
|
|
14808
12821
|
key: key,
|
|
14809
12822
|
onPress: function onPress() {
|
|
14810
12823
|
return onTabPress(key);
|
|
@@ -14823,7 +12836,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
14823
12836
|
}))));
|
|
14824
12837
|
};
|
|
14825
12838
|
|
|
14826
|
-
var StyledDivider = index$2(
|
|
12839
|
+
var StyledDivider = index$2(reactNative.View)(function (_ref) {
|
|
14827
12840
|
var themeMarginHorizontal = _ref.themeMarginHorizontal,
|
|
14828
12841
|
themeMarginVertical = _ref.themeMarginVertical,
|
|
14829
12842
|
theme = _ref.theme;
|
|
@@ -14847,9 +12860,9 @@ var Divider = function Divider(_ref) {
|
|
|
14847
12860
|
marginVertical = _ref.marginVertical,
|
|
14848
12861
|
style = _ref.style,
|
|
14849
12862
|
testID = _ref.testID,
|
|
14850
|
-
nativeProps = _objectWithoutProperties
|
|
12863
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$8);
|
|
14851
12864
|
|
|
14852
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledDivider, _extends$
|
|
12865
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledDivider, _extends$1({}, nativeProps, {
|
|
14853
12866
|
themeMarginHorizontal: marginHorizontal,
|
|
14854
12867
|
themeMarginVertical: marginVertical,
|
|
14855
12868
|
style: style,
|
|
@@ -14857,11 +12870,11 @@ var Divider = function Divider(_ref) {
|
|
|
14857
12870
|
}));
|
|
14858
12871
|
};
|
|
14859
12872
|
|
|
14860
|
-
var AnimatedPressable$1 =
|
|
14861
|
-
var StyledWrapper$
|
|
12873
|
+
var AnimatedPressable$1 = reactNative.Animated.createAnimatedComponent(reactNative.Pressable);
|
|
12874
|
+
var StyledWrapper$4 = index$2(reactNative.View)(_objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
14862
12875
|
flexDirection: 'column-reverse'
|
|
14863
12876
|
}));
|
|
14864
|
-
var StyledBottomSheet = index$2(
|
|
12877
|
+
var StyledBottomSheet = index$2(reactNative.Animated.View)(function (_ref) {
|
|
14865
12878
|
var theme = _ref.theme;
|
|
14866
12879
|
return {
|
|
14867
12880
|
borderTopLeftRadius: theme.__hd__.bottomSheet.radii["default"],
|
|
@@ -14878,19 +12891,19 @@ var StyledBottomSheet = index$2(ReactNative.Animated.View)(function (_ref) {
|
|
|
14878
12891
|
});
|
|
14879
12892
|
var StyledBackdrop$2 = index$2(AnimatedPressable$1)(function (_ref2) {
|
|
14880
12893
|
var theme = _ref2.theme;
|
|
14881
|
-
return _objectSpread2(_objectSpread2({},
|
|
12894
|
+
return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
14882
12895
|
backgroundColor: theme.__hd__.bottomSheet.colors.backdrop,
|
|
14883
12896
|
opacity: 0.48
|
|
14884
12897
|
});
|
|
14885
12898
|
});
|
|
14886
|
-
var StyledHeaderWrapper = index$2(
|
|
12899
|
+
var StyledHeaderWrapper = index$2(reactNative.View)(function (_ref3) {
|
|
14887
12900
|
var theme = _ref3.theme;
|
|
14888
12901
|
return {
|
|
14889
12902
|
minHeight: theme.__hd__.bottomSheet.sizes.sectionHeight,
|
|
14890
12903
|
flexDirection: 'row'
|
|
14891
12904
|
};
|
|
14892
12905
|
});
|
|
14893
|
-
var StyledHeader = index$2(
|
|
12906
|
+
var StyledHeader = index$2(reactNative.View)(function (_ref4) {
|
|
14894
12907
|
var theme = _ref4.theme,
|
|
14895
12908
|
adjacentIcon = _ref4.adjacentIcon;
|
|
14896
12909
|
return {
|
|
@@ -14901,7 +12914,7 @@ var StyledHeader = index$2(ReactNative.View)(function (_ref4) {
|
|
|
14901
12914
|
justifyContent: 'center'
|
|
14902
12915
|
};
|
|
14903
12916
|
});
|
|
14904
|
-
var StyledFooter = index$2(
|
|
12917
|
+
var StyledFooter = index$2(reactNative.View)(function (_ref5) {
|
|
14905
12918
|
var theme = _ref5.theme;
|
|
14906
12919
|
return {
|
|
14907
12920
|
paddingHorizontal: theme.__hd__.bottomSheet.space.horizontalPadding,
|
|
@@ -14912,7 +12925,7 @@ var StyledFooter = index$2(ReactNative.View)(function (_ref5) {
|
|
|
14912
12925
|
flexDirection: 'row'
|
|
14913
12926
|
};
|
|
14914
12927
|
});
|
|
14915
|
-
var StyledIconWrapper$1 = index$2(
|
|
12928
|
+
var StyledIconWrapper$1 = index$2(reactNative.View)(function (_ref6) {
|
|
14916
12929
|
var theme = _ref6.theme;
|
|
14917
12930
|
return {
|
|
14918
12931
|
alignItems: 'center',
|
|
@@ -14921,10 +12934,10 @@ var StyledIconWrapper$1 = index$2(ReactNative.View)(function (_ref6) {
|
|
|
14921
12934
|
};
|
|
14922
12935
|
});
|
|
14923
12936
|
|
|
14924
|
-
var Footer = function Footer(_ref) {
|
|
12937
|
+
var Footer$1 = function Footer(_ref) {
|
|
14925
12938
|
var children = _ref.children,
|
|
14926
12939
|
showDivider = _ref.showDivider;
|
|
14927
|
-
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));
|
|
14928
12941
|
};
|
|
14929
12942
|
|
|
14930
12943
|
var genLoadingIndicatorStyles = function genLoadingIndicatorStyles(theme, intent) {
|
|
@@ -14933,7 +12946,7 @@ var genLoadingIndicatorStyles = function genLoadingIndicatorStyles(theme, intent
|
|
|
14933
12946
|
};
|
|
14934
12947
|
};
|
|
14935
12948
|
|
|
14936
|
-
var StyledLoadingIndicatorWrapper = index$2(
|
|
12949
|
+
var StyledLoadingIndicatorWrapper = index$2(reactNative.View)(function (_ref) {
|
|
14937
12950
|
var theme = _ref.theme;
|
|
14938
12951
|
return {
|
|
14939
12952
|
flexDirection: 'row',
|
|
@@ -14942,7 +12955,7 @@ var StyledLoadingIndicatorWrapper = index$2(ReactNative.View)(function (_ref) {
|
|
|
14942
12955
|
paddingVertical: theme.space.xxsmall
|
|
14943
12956
|
};
|
|
14944
12957
|
});
|
|
14945
|
-
var StyledLoadingDot = index$2(
|
|
12958
|
+
var StyledLoadingDot = index$2(reactNative.View)(function (_ref2) {
|
|
14946
12959
|
var _ref2$size = _ref2.size,
|
|
14947
12960
|
size = _ref2$size === void 0 ? 12 : _ref2$size,
|
|
14948
12961
|
themeVariant = _ref2.themeVariant,
|
|
@@ -14976,8 +12989,8 @@ var StyledLoadingDot = index$2(ReactNative.View)(function (_ref2) {
|
|
|
14976
12989
|
});
|
|
14977
12990
|
|
|
14978
12991
|
var _excluded$7 = ["count", "size", "testID", "themeVariant"];
|
|
14979
|
-
var AnimatedLoadingIndicatorWrapper =
|
|
14980
|
-
var AnimatedLoadingDot =
|
|
12992
|
+
var AnimatedLoadingIndicatorWrapper = reactNative.Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
|
|
12993
|
+
var AnimatedLoadingDot = reactNative.Animated.createAnimatedComponent(StyledLoadingDot);
|
|
14981
12994
|
|
|
14982
12995
|
var renderDotComponent = function renderDotComponent(_ref) {
|
|
14983
12996
|
var index = _ref.index,
|
|
@@ -14989,8 +13002,8 @@ var renderDotComponent = function renderDotComponent(_ref) {
|
|
|
14989
13002
|
inputRange: [0.0, (index + 0.5) / (count + 1), (index + 1.0) / (count + 1), (index + 1.5) / (count + 1), 1.0],
|
|
14990
13003
|
outputRange: [1.0, 1.36, 1.56, 1.06, 1.0]
|
|
14991
13004
|
});
|
|
14992
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
14993
|
-
style:
|
|
13005
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.Animated.View, {
|
|
13006
|
+
style: reactNative.StyleSheet.flatten([{
|
|
14994
13007
|
transform: [{
|
|
14995
13008
|
scale: interpolatedProgressAnimation
|
|
14996
13009
|
}]
|
|
@@ -15009,14 +13022,14 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
|
|
|
15009
13022
|
size = _ref2$size === void 0 ? 12 : _ref2$size,
|
|
15010
13023
|
testID = _ref2.testID,
|
|
15011
13024
|
themeVariant = _ref2.themeVariant,
|
|
15012
|
-
nativeProps = _objectWithoutProperties
|
|
13025
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$7);
|
|
15013
13026
|
|
|
15014
|
-
var progressAnimation = React.useRef(new
|
|
13027
|
+
var progressAnimation = React.useRef(new reactNative.Animated.Value(0));
|
|
15015
13028
|
React.useEffect(function () {
|
|
15016
|
-
var animation =
|
|
13029
|
+
var animation = reactNative.Animated.loop(reactNative.Animated.timing(progressAnimation.current, {
|
|
15017
13030
|
toValue: 1,
|
|
15018
13031
|
duration: 1200,
|
|
15019
|
-
easing:
|
|
13032
|
+
easing: reactNative.Easing.linear,
|
|
15020
13033
|
useNativeDriver: true
|
|
15021
13034
|
}));
|
|
15022
13035
|
animation.start();
|
|
@@ -15039,7 +13052,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
|
|
|
15039
13052
|
return null;
|
|
15040
13053
|
};
|
|
15041
13054
|
|
|
15042
|
-
return /*#__PURE__*/React__default["default"].createElement(AnimatedLoadingIndicatorWrapper, _extends$
|
|
13055
|
+
return /*#__PURE__*/React__default["default"].createElement(AnimatedLoadingIndicatorWrapper, _extends$1({
|
|
15043
13056
|
testID: testID
|
|
15044
13057
|
}, nativeProps), Array.from(new Array(count), renderLoadingDot, themeVariant));
|
|
15045
13058
|
};
|
|
@@ -15160,7 +13173,7 @@ var genOutlineTextStyles = function genOutlineTextStyles(theme, intent, pressed,
|
|
|
15160
13173
|
}, textColorStyling());
|
|
15161
13174
|
};
|
|
15162
13175
|
|
|
15163
|
-
var StyledButtonContainer = index$2(
|
|
13176
|
+
var StyledButtonContainer = index$2(reactNative.View)(function (_ref) {
|
|
15164
13177
|
var _ref$disabled = _ref.disabled,
|
|
15165
13178
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
15166
13179
|
_ref$pressed = _ref.pressed,
|
|
@@ -15222,7 +13235,7 @@ var StyledButtonText = index$2(Typography.Text)(function (_ref2) {
|
|
|
15222
13235
|
fontFamily: theme.__hd__.button.fonts["default"]
|
|
15223
13236
|
}, themeStyling());
|
|
15224
13237
|
});
|
|
15225
|
-
var StyledButtonIconWrapper = index$2(
|
|
13238
|
+
var StyledButtonIconWrapper = index$2(reactNative.View)(function (_ref3) {
|
|
15226
13239
|
var themePosition = _ref3.themePosition,
|
|
15227
13240
|
theme = _ref3.theme;
|
|
15228
13241
|
|
|
@@ -15308,7 +13321,7 @@ var Button = function Button(_ref) {
|
|
|
15308
13321
|
text = _ref.text,
|
|
15309
13322
|
_ref$variant = _ref.variant,
|
|
15310
13323
|
variant = _ref$variant === void 0 ? 'filled' : _ref$variant;
|
|
15311
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
13324
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.Pressable, {
|
|
15312
13325
|
accessibilityHint: accessibilityHint,
|
|
15313
13326
|
accessibilityLabel: accessibilityLabel,
|
|
15314
13327
|
disabled: disabled || loading,
|
|
@@ -15359,7 +13372,7 @@ var IconButton = function IconButton(_ref) {
|
|
|
15359
13372
|
style = _ref.style,
|
|
15360
13373
|
size = _ref.size,
|
|
15361
13374
|
intent = _ref.intent;
|
|
15362
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
13375
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.TouchableOpacity, {
|
|
15363
13376
|
style: style,
|
|
15364
13377
|
onPress: onPress,
|
|
15365
13378
|
testID: testID,
|
|
@@ -15384,9 +13397,9 @@ var Header = function Header(_ref) {
|
|
|
15384
13397
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(StyledHeaderWrapper, null, typeof content === 'string' ? /*#__PURE__*/React__default["default"].createElement(StyledHeader, {
|
|
15385
13398
|
adjacentIcon: showCloseButton
|
|
15386
13399
|
}, /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
|
|
15387
|
-
fontSize: "
|
|
13400
|
+
fontSize: "large",
|
|
15388
13401
|
fontWeight: "semi-bold"
|
|
15389
|
-
}, content)) : /*#__PURE__*/React__default["default"].createElement(
|
|
13402
|
+
}, content)) : /*#__PURE__*/React__default["default"].createElement(reactNative.View, {
|
|
15390
13403
|
style: {
|
|
15391
13404
|
flex: 1
|
|
15392
13405
|
}
|
|
@@ -15405,6 +13418,7 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
15405
13418
|
children = _ref.children,
|
|
15406
13419
|
onOpen = _ref.onOpen,
|
|
15407
13420
|
onRequestClose = _ref.onRequestClose,
|
|
13421
|
+
onDismiss = _ref.onDismiss,
|
|
15408
13422
|
_ref$showCloseButton = _ref.showCloseButton,
|
|
15409
13423
|
showCloseButton = _ref$showCloseButton === void 0 ? true : _ref$showCloseButton,
|
|
15410
13424
|
_ref$hasBackdrop = _ref.hasBackdrop,
|
|
@@ -15425,7 +13439,7 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
15425
13439
|
visible = _useState4[0],
|
|
15426
13440
|
setVisibility = _useState4[1];
|
|
15427
13441
|
|
|
15428
|
-
var animatedValue = React.useRef(new
|
|
13442
|
+
var animatedValue = React.useRef(new reactNative.Animated.Value(open ? 0 : 1));
|
|
15429
13443
|
React.useEffect(function () {
|
|
15430
13444
|
// Show the modal before the open animation start
|
|
15431
13445
|
if (open && !visible) {
|
|
@@ -15440,6 +13454,7 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
15440
13454
|
|
|
15441
13455
|
if (endValueOfTransition === 0 && value === endValueOfTransition) {
|
|
15442
13456
|
setVisibility(false);
|
|
13457
|
+
onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss();
|
|
15443
13458
|
}
|
|
15444
13459
|
});
|
|
15445
13460
|
return function () {
|
|
@@ -15448,9 +13463,9 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
15448
13463
|
}, [open]); // Animation
|
|
15449
13464
|
|
|
15450
13465
|
React.useEffect(function () {
|
|
15451
|
-
var animation =
|
|
13466
|
+
var animation = reactNative.Animated.timing(animatedValue.current, {
|
|
15452
13467
|
toValue: open ? 1 : 0,
|
|
15453
|
-
easing:
|
|
13468
|
+
easing: reactNative.Easing.inOut(reactNative.Easing.cubic),
|
|
15454
13469
|
useNativeDriver: true
|
|
15455
13470
|
});
|
|
15456
13471
|
animation.start();
|
|
@@ -15467,13 +13482,13 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
15467
13482
|
inputRange: [0, 1],
|
|
15468
13483
|
outputRange: [0, 0.48]
|
|
15469
13484
|
}) : 0;
|
|
15470
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
13485
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.Modal, {
|
|
15471
13486
|
visible: visible,
|
|
15472
13487
|
onRequestClose: onRequestClose,
|
|
15473
13488
|
transparent: true,
|
|
15474
13489
|
testID: testID,
|
|
15475
13490
|
onShow: onOpen
|
|
15476
|
-
}, /*#__PURE__*/React__default["default"].createElement(StyledWrapper$
|
|
13491
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledWrapper$4, {
|
|
15477
13492
|
pointerEvents: "box-none"
|
|
15478
13493
|
}, /*#__PURE__*/React__default["default"].createElement(StyledBackdrop$2, {
|
|
15479
13494
|
style: {
|
|
@@ -15497,12 +13512,12 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
15497
13512
|
showDivider: showDivider,
|
|
15498
13513
|
onRequestClose: onRequestClose,
|
|
15499
13514
|
showCloseButton: showCloseButton
|
|
15500
|
-
}) : null, children, footer ? /*#__PURE__*/React__default["default"].createElement(Footer, {
|
|
13515
|
+
}) : null, children, footer ? /*#__PURE__*/React__default["default"].createElement(Footer$1, {
|
|
15501
13516
|
showDivider: showDivider
|
|
15502
13517
|
}, footer) : null)));
|
|
15503
13518
|
};
|
|
15504
13519
|
|
|
15505
|
-
var StyledCard = index$2(
|
|
13520
|
+
var StyledCard = index$2(reactNative.View)(function (_ref) {
|
|
15506
13521
|
var themeVariant = _ref.themeVariant,
|
|
15507
13522
|
theme = _ref.theme;
|
|
15508
13523
|
var sharedStyles = {
|
|
@@ -15522,7 +13537,7 @@ var StyledCard = index$2(ReactNative.View)(function (_ref) {
|
|
|
15522
13537
|
return _objectSpread2(_objectSpread2({}, sharedStyles), dataStyles);
|
|
15523
13538
|
}
|
|
15524
13539
|
});
|
|
15525
|
-
var LeftDataCard = index$2(
|
|
13540
|
+
var LeftDataCard = index$2(reactNative.View)(function (_ref2) {
|
|
15526
13541
|
var theme = _ref2.theme;
|
|
15527
13542
|
return {
|
|
15528
13543
|
backgroundColor: theme.__hd__.card.colors.dataCardIndicator,
|
|
@@ -15537,16 +13552,16 @@ var Card = function Card(_ref) {
|
|
|
15537
13552
|
var _ref$variant = _ref.variant,
|
|
15538
13553
|
variant = _ref$variant === void 0 ? 'basic' : _ref$variant,
|
|
15539
13554
|
children = _ref.children,
|
|
15540
|
-
nativeProps = _objectWithoutProperties
|
|
13555
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$6);
|
|
15541
13556
|
|
|
15542
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledCard, _extends$
|
|
13557
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledCard, _extends$1({}, nativeProps, {
|
|
15543
13558
|
themeVariant: variant
|
|
15544
13559
|
}), variant === 'data' && /*#__PURE__*/React__default["default"].createElement(LeftDataCard, {
|
|
15545
13560
|
testID: "data-card-indicator"
|
|
15546
13561
|
}), children);
|
|
15547
13562
|
};
|
|
15548
13563
|
|
|
15549
|
-
var StyledWrapper$
|
|
13564
|
+
var StyledWrapper$3 = index$2(reactNative.Animated.View)(function () {
|
|
15550
13565
|
return {
|
|
15551
13566
|
margin: 0,
|
|
15552
13567
|
padding: 0,
|
|
@@ -15559,12 +13574,12 @@ var StyledWrapper$2 = index$2(ReactNative.Animated.View)(function () {
|
|
|
15559
13574
|
* to use with Animated.timing
|
|
15560
13575
|
*/
|
|
15561
13576
|
|
|
15562
|
-
var StyledHiddenWrapper = index$2(
|
|
13577
|
+
var StyledHiddenWrapper = index$2(reactNative.View)(function () {
|
|
15563
13578
|
return {
|
|
15564
|
-
height:
|
|
13579
|
+
height: reactNative.Dimensions.get('window').height
|
|
15565
13580
|
};
|
|
15566
13581
|
});
|
|
15567
|
-
var StyledChildWrapper = index$2(
|
|
13582
|
+
var StyledChildWrapper = index$2(reactNative.View)(function () {
|
|
15568
13583
|
return {
|
|
15569
13584
|
margin: 0,
|
|
15570
13585
|
padding: 0
|
|
@@ -15585,7 +13600,7 @@ var Collapse = function Collapse(_ref) {
|
|
|
15585
13600
|
children = _ref.children,
|
|
15586
13601
|
testID = _ref.testID,
|
|
15587
13602
|
style = _ref.style;
|
|
15588
|
-
var collapseAnim = React__default["default"].useRef(new
|
|
13603
|
+
var collapseAnim = React__default["default"].useRef(new reactNative.Animated.Value(0)).current;
|
|
15589
13604
|
|
|
15590
13605
|
var _React$useState = React__default["default"].useState(0),
|
|
15591
13606
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -15595,9 +13610,9 @@ var Collapse = function Collapse(_ref) {
|
|
|
15595
13610
|
var previousOpenState = usePrevious(open);
|
|
15596
13611
|
React.useEffect(function () {
|
|
15597
13612
|
if (open !== previousOpenState && previousOpenState !== undefined) {
|
|
15598
|
-
|
|
13613
|
+
reactNative.Animated.timing(collapseAnim, {
|
|
15599
13614
|
toValue: open ? contentHeight : 0,
|
|
15600
|
-
easing:
|
|
13615
|
+
easing: reactNative.Easing.inOut(reactNative.Easing.ease),
|
|
15601
13616
|
useNativeDriver: false
|
|
15602
13617
|
}).start();
|
|
15603
13618
|
}
|
|
@@ -15606,7 +13621,7 @@ var Collapse = function Collapse(_ref) {
|
|
|
15606
13621
|
var height = _ref2.height;
|
|
15607
13622
|
setContentHeight(height);
|
|
15608
13623
|
}, [contentHeight]);
|
|
15609
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$
|
|
13624
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$3, {
|
|
15610
13625
|
style: [style, {
|
|
15611
13626
|
height: collapseAnim
|
|
15612
13627
|
}],
|
|
@@ -15618,7 +13633,7 @@ var Collapse = function Collapse(_ref) {
|
|
|
15618
13633
|
}, children)));
|
|
15619
13634
|
};
|
|
15620
13635
|
|
|
15621
|
-
var Wrapper$1 = index$2(
|
|
13636
|
+
var Wrapper$1 = index$2(reactNative.View)(function () {
|
|
15622
13637
|
return {
|
|
15623
13638
|
flex: 1,
|
|
15624
13639
|
flexDirection: 'row',
|
|
@@ -15660,11 +13675,11 @@ function ContentNavigator(_ref) {
|
|
|
15660
13675
|
}));
|
|
15661
13676
|
}
|
|
15662
13677
|
|
|
15663
|
-
var AnimatedPressable =
|
|
15664
|
-
var StyledContainer$1 = index$2(
|
|
13678
|
+
var AnimatedPressable = reactNative.Animated.createAnimatedComponent(reactNative.Pressable);
|
|
13679
|
+
var StyledContainer$1 = index$2(reactNative.View)(function (_ref) {
|
|
15665
13680
|
var theme = _ref.theme,
|
|
15666
13681
|
enableShadow = _ref.enableShadow;
|
|
15667
|
-
return _objectSpread2(_objectSpread2({},
|
|
13682
|
+
return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
15668
13683
|
shadowColor: enableShadow ? theme.__hd__.drawer.colors.shadow : 'transparent',
|
|
15669
13684
|
shadowOffset: theme.__hd__.drawer.shadows.offset,
|
|
15670
13685
|
shadowOpacity: theme.__hd__.drawer.shadows.opacity,
|
|
@@ -15676,11 +13691,11 @@ var StyledContainer$1 = index$2(ReactNative.View)(function (_ref) {
|
|
|
15676
13691
|
});
|
|
15677
13692
|
var StyledBackdrop$1 = index$2(AnimatedPressable)(function (_ref2) {
|
|
15678
13693
|
var theme = _ref2.theme;
|
|
15679
|
-
return _objectSpread2(_objectSpread2({},
|
|
13694
|
+
return _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
15680
13695
|
backgroundColor: theme.__hd__.drawer.colors.backdrop
|
|
15681
13696
|
});
|
|
15682
13697
|
});
|
|
15683
|
-
var StyledDrawerContainer = index$2(
|
|
13698
|
+
var StyledDrawerContainer = index$2(reactNative.Animated.View)(function (_ref3) {
|
|
15684
13699
|
var theme = _ref3.theme,
|
|
15685
13700
|
enableShadow = _ref3.enableShadow;
|
|
15686
13701
|
return {
|
|
@@ -15699,7 +13714,7 @@ var Drawer = function Drawer(_ref) {
|
|
|
15699
13714
|
hasBackdrop = _ref$hasBackdrop === void 0 ? true : _ref$hasBackdrop,
|
|
15700
13715
|
onDismiss = _ref.onDismiss,
|
|
15701
13716
|
testID = _ref.testID;
|
|
15702
|
-
var animatedValue = React.useRef(new
|
|
13717
|
+
var animatedValue = React.useRef(new reactNative.Animated.Value(visible ? 1 : 0)).current;
|
|
15703
13718
|
|
|
15704
13719
|
var _useState = React.useState(0),
|
|
15705
13720
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -15716,9 +13731,9 @@ var Drawer = function Drawer(_ref) {
|
|
|
15716
13731
|
outputRange: [0, 0.35]
|
|
15717
13732
|
}) : 0;
|
|
15718
13733
|
React.useEffect(function () {
|
|
15719
|
-
var animation =
|
|
13734
|
+
var animation = reactNative.Animated.timing(animatedValue, {
|
|
15720
13735
|
toValue: visible ? 1 : 0,
|
|
15721
|
-
easing:
|
|
13736
|
+
easing: reactNative.Easing.inOut(reactNative.Easing.cubic),
|
|
15722
13737
|
useNativeDriver: true
|
|
15723
13738
|
});
|
|
15724
13739
|
animation.start();
|
|
@@ -15750,7 +13765,7 @@ var Drawer = function Drawer(_ref) {
|
|
|
15750
13765
|
}, children));
|
|
15751
13766
|
};
|
|
15752
13767
|
|
|
15753
|
-
var StyledFABContainer = index$2(
|
|
13768
|
+
var StyledFABContainer = index$2(reactNative.TouchableHighlight)(function (_ref) {
|
|
15754
13769
|
var theme = _ref.theme;
|
|
15755
13770
|
return {
|
|
15756
13771
|
backgroundColor: theme.__hd__.fab.colors.buttonBackground,
|
|
@@ -15773,7 +13788,7 @@ var StyledFABIcon = index$2(Icon)(function (_ref2) {
|
|
|
15773
13788
|
textAlign: 'center'
|
|
15774
13789
|
};
|
|
15775
13790
|
});
|
|
15776
|
-
var StyledFABText = index$2(
|
|
13791
|
+
var StyledFABText = index$2(reactNative.Text)(function (_ref3) {
|
|
15777
13792
|
var theme = _ref3.theme;
|
|
15778
13793
|
return {
|
|
15779
13794
|
fontFamily: theme.__hd__.fab.fonts.title,
|
|
@@ -15787,15 +13802,15 @@ var StyledFABText = index$2(ReactNative.Text)(function (_ref3) {
|
|
|
15787
13802
|
});
|
|
15788
13803
|
|
|
15789
13804
|
var _excluded$5 = ["active"];
|
|
15790
|
-
var AnimatedIcons =
|
|
13805
|
+
var AnimatedIcons = reactNative.Animated.createAnimatedComponent(StyledFABIcon);
|
|
15791
13806
|
|
|
15792
13807
|
var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
|
|
15793
13808
|
var active = _ref.active,
|
|
15794
|
-
iconProps = _objectWithoutProperties
|
|
13809
|
+
iconProps = _objectWithoutProperties(_ref, _excluded$5);
|
|
15795
13810
|
|
|
15796
|
-
var rotateAnimation = React.useRef(new
|
|
13811
|
+
var rotateAnimation = React.useRef(new reactNative.Animated.Value(active ? 1 : 0));
|
|
15797
13812
|
React.useEffect(function () {
|
|
15798
|
-
var animation =
|
|
13813
|
+
var animation = reactNative.Animated.timing(rotateAnimation.current, {
|
|
15799
13814
|
toValue: active ? 1 : 0,
|
|
15800
13815
|
useNativeDriver: true
|
|
15801
13816
|
});
|
|
@@ -15808,8 +13823,8 @@ var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
|
|
|
15808
13823
|
inputRange: [0, 1],
|
|
15809
13824
|
outputRange: ['0deg', '-45deg']
|
|
15810
13825
|
});
|
|
15811
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
15812
|
-
style:
|
|
13826
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.Animated.View, {
|
|
13827
|
+
style: reactNative.StyleSheet.flatten([{
|
|
15813
13828
|
transform: [{
|
|
15814
13829
|
rotate: interpolatedRotateAnimation
|
|
15815
13830
|
}]
|
|
@@ -15870,7 +13885,7 @@ var FAB = function FAB(_ref3) {
|
|
|
15870
13885
|
}));
|
|
15871
13886
|
};
|
|
15872
13887
|
|
|
15873
|
-
var StyledActionItem = index$2(
|
|
13888
|
+
var StyledActionItem = index$2(reactNative.TouchableOpacity)(function (_ref) {
|
|
15874
13889
|
var theme = _ref.theme;
|
|
15875
13890
|
return {
|
|
15876
13891
|
paddingLeft: theme.__hd__.fab.space.actionItemPaddingLeft,
|
|
@@ -15912,7 +13927,7 @@ var ActionItem = function ActionItem(_ref) {
|
|
|
15912
13927
|
}), /*#__PURE__*/React__default["default"].createElement(StyledActionItemText, null, title));
|
|
15913
13928
|
};
|
|
15914
13929
|
|
|
15915
|
-
var StyledContainer = index$2(
|
|
13930
|
+
var StyledContainer = index$2(reactNative.View)({
|
|
15916
13931
|
position: 'absolute',
|
|
15917
13932
|
left: 0,
|
|
15918
13933
|
right: 0,
|
|
@@ -15921,7 +13936,7 @@ var StyledContainer = index$2(ReactNative.View)({
|
|
|
15921
13936
|
alignItems: 'flex-end',
|
|
15922
13937
|
justifyContent: 'flex-end'
|
|
15923
13938
|
});
|
|
15924
|
-
var StyledActionGroupContainer = index$2(
|
|
13939
|
+
var StyledActionGroupContainer = index$2(reactNative.Animated.View)({
|
|
15925
13940
|
alignItems: 'flex-end',
|
|
15926
13941
|
justifyContent: 'flex-end',
|
|
15927
13942
|
width: '70%'
|
|
@@ -15934,7 +13949,7 @@ var StyledFAB = index$2(FAB)(function (_ref) {
|
|
|
15934
13949
|
alignSelf: 'flex-end'
|
|
15935
13950
|
};
|
|
15936
13951
|
});
|
|
15937
|
-
var StyledBackdrop = index$2(
|
|
13952
|
+
var StyledBackdrop = index$2(reactNative.Animated.View)(function (_ref2) {
|
|
15938
13953
|
var theme = _ref2.theme;
|
|
15939
13954
|
return {
|
|
15940
13955
|
position: 'absolute',
|
|
@@ -15960,10 +13975,10 @@ var StyledHeaderText = index$2(Typography.Text)(function (_ref3) {
|
|
|
15960
13975
|
var ActionItemsListComponent = function ActionItemsListComponent(_ref) {
|
|
15961
13976
|
var style = _ref.style,
|
|
15962
13977
|
items = _ref.items;
|
|
15963
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
13978
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.View, {
|
|
15964
13979
|
style: style
|
|
15965
13980
|
}, items === null || items === void 0 ? void 0 : items.map(function (itemProp) {
|
|
15966
|
-
return /*#__PURE__*/React__default["default"].createElement(ActionItem, _extends$
|
|
13981
|
+
return /*#__PURE__*/React__default["default"].createElement(ActionItem, _extends$1({
|
|
15967
13982
|
key: itemProp.icon
|
|
15968
13983
|
}, itemProp));
|
|
15969
13984
|
}));
|
|
@@ -15977,9 +13992,9 @@ var ActionGroup = function ActionGroup(_ref2) {
|
|
|
15977
13992
|
items = _ref2.items,
|
|
15978
13993
|
testID = _ref2.testID,
|
|
15979
13994
|
fabTitle = _ref2.fabTitle;
|
|
15980
|
-
var tranlateXAnimation = React.useRef(new
|
|
13995
|
+
var tranlateXAnimation = React.useRef(new reactNative.Animated.Value(active ? 1 : 0));
|
|
15981
13996
|
React.useEffect(function () {
|
|
15982
|
-
var animation =
|
|
13997
|
+
var animation = reactNative.Animated.timing(tranlateXAnimation.current, {
|
|
15983
13998
|
toValue: active ? 1 : 0,
|
|
15984
13999
|
useNativeDriver: true
|
|
15985
14000
|
});
|
|
@@ -16028,7 +14043,7 @@ var index$1 = Object.assign(FAB, {
|
|
|
16028
14043
|
ActionGroup: ActionGroup
|
|
16029
14044
|
});
|
|
16030
14045
|
|
|
16031
|
-
var HalfCircleWrapper = index$2(
|
|
14046
|
+
var HalfCircleWrapper = index$2(reactNative.View)(function (_ref) {
|
|
16032
14047
|
var theme = _ref.theme;
|
|
16033
14048
|
return {
|
|
16034
14049
|
width: theme.__hd__.progress.sizes.radius,
|
|
@@ -16036,7 +14051,7 @@ var HalfCircleWrapper = index$2(ReactNative.View)(function (_ref) {
|
|
|
16036
14051
|
overflow: 'hidden'
|
|
16037
14052
|
};
|
|
16038
14053
|
});
|
|
16039
|
-
var HalfCircleInnerFG = index$2(
|
|
14054
|
+
var HalfCircleInnerFG = index$2(reactNative.View)(function (_ref2) {
|
|
16040
14055
|
var theme = _ref2.theme,
|
|
16041
14056
|
themeIntent = _ref2.themeIntent;
|
|
16042
14057
|
return {
|
|
@@ -16046,7 +14061,7 @@ var HalfCircleInnerFG = index$2(ReactNative.View)(function (_ref2) {
|
|
|
16046
14061
|
borderRadius: theme.__hd__.progress.radii["default"]
|
|
16047
14062
|
};
|
|
16048
14063
|
});
|
|
16049
|
-
var HalfCircleInnerBG = index$2(
|
|
14064
|
+
var HalfCircleInnerBG = index$2(reactNative.View)(function (_ref3) {
|
|
16050
14065
|
var theme = _ref3.theme;
|
|
16051
14066
|
return {
|
|
16052
14067
|
width: theme.__hd__.progress.sizes.radius * 2,
|
|
@@ -16055,7 +14070,7 @@ var HalfCircleInnerBG = index$2(ReactNative.View)(function (_ref3) {
|
|
|
16055
14070
|
borderRadius: theme.__hd__.progress.radii["default"]
|
|
16056
14071
|
};
|
|
16057
14072
|
});
|
|
16058
|
-
var DonutCircle = index$2(
|
|
14073
|
+
var DonutCircle = index$2(reactNative.View)(function (_ref4) {
|
|
16059
14074
|
var theme = _ref4.theme;
|
|
16060
14075
|
return {
|
|
16061
14076
|
position: 'absolute',
|
|
@@ -16070,7 +14085,7 @@ var DonutCircle = index$2(ReactNative.View)(function (_ref4) {
|
|
|
16070
14085
|
justifyContent: 'center'
|
|
16071
14086
|
};
|
|
16072
14087
|
});
|
|
16073
|
-
var StrokeEnd = index$2(
|
|
14088
|
+
var StrokeEnd = index$2(reactNative.View)(function (_ref5) {
|
|
16074
14089
|
var theme = _ref5.theme,
|
|
16075
14090
|
themeIntent = _ref5.themeIntent;
|
|
16076
14091
|
return {
|
|
@@ -16102,13 +14117,13 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
16102
14117
|
intent = _ref2$intent === void 0 ? 'primary' : _ref2$intent,
|
|
16103
14118
|
style = _ref2.style,
|
|
16104
14119
|
testID = _ref2.testID,
|
|
16105
|
-
nativeProps = _objectWithoutProperties
|
|
14120
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$4);
|
|
16106
14121
|
|
|
16107
|
-
var theme = useTheme();
|
|
14122
|
+
var theme = useTheme$1();
|
|
16108
14123
|
var radius = theme.__hd__.progress.sizes.radius;
|
|
16109
|
-
var progressAnimatedValue = React.useRef(new
|
|
14124
|
+
var progressAnimatedValue = React.useRef(new reactNative.Animated.Value(0));
|
|
16110
14125
|
React.useEffect(function () {
|
|
16111
|
-
var animation =
|
|
14126
|
+
var animation = reactNative.Animated.timing(progressAnimatedValue.current, {
|
|
16112
14127
|
toValue: value,
|
|
16113
14128
|
useNativeDriver: true
|
|
16114
14129
|
});
|
|
@@ -16140,18 +14155,18 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
16140
14155
|
outputRange: ['0deg', '360deg'],
|
|
16141
14156
|
extrapolate: 'clamp'
|
|
16142
14157
|
});
|
|
16143
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
14158
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.View, _extends$1({}, nativeProps, {
|
|
16144
14159
|
testID: testID,
|
|
16145
14160
|
style: style
|
|
16146
|
-
}), /*#__PURE__*/React__default["default"].createElement(
|
|
14161
|
+
}), /*#__PURE__*/React__default["default"].createElement(reactNative.View, {
|
|
16147
14162
|
style: {
|
|
16148
14163
|
flexDirection: 'row'
|
|
16149
14164
|
}
|
|
16150
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
14165
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactNative.View, null, /*#__PURE__*/React__default["default"].createElement(HalfCircle, {
|
|
16151
14166
|
type: "foreground",
|
|
16152
14167
|
themeIntent: intent
|
|
16153
|
-
}), /*#__PURE__*/React__default["default"].createElement(
|
|
16154
|
-
style: _objectSpread2(_objectSpread2({},
|
|
14168
|
+
}), /*#__PURE__*/React__default["default"].createElement(reactNative.Animated.View, {
|
|
14169
|
+
style: _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
16155
14170
|
transform: [{
|
|
16156
14171
|
translateX: radius / 2
|
|
16157
14172
|
}, {
|
|
@@ -16162,7 +14177,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
16162
14177
|
})
|
|
16163
14178
|
}, /*#__PURE__*/React__default["default"].createElement(HalfCircle, {
|
|
16164
14179
|
type: "background"
|
|
16165
|
-
}))), /*#__PURE__*/React__default["default"].createElement(
|
|
14180
|
+
}))), /*#__PURE__*/React__default["default"].createElement(reactNative.View, {
|
|
16166
14181
|
style: {
|
|
16167
14182
|
transform: [{
|
|
16168
14183
|
rotate: '180deg'
|
|
@@ -16172,8 +14187,8 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
16172
14187
|
}, /*#__PURE__*/React__default["default"].createElement(HalfCircle, {
|
|
16173
14188
|
type: "foreground",
|
|
16174
14189
|
themeIntent: intent
|
|
16175
|
-
}), /*#__PURE__*/React__default["default"].createElement(
|
|
16176
|
-
style: _objectSpread2(_objectSpread2({},
|
|
14190
|
+
}), /*#__PURE__*/React__default["default"].createElement(reactNative.Animated.View, {
|
|
14191
|
+
style: _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
16177
14192
|
transform: [{
|
|
16178
14193
|
translateX: radius / 2
|
|
16179
14194
|
}, {
|
|
@@ -16187,8 +14202,8 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
16187
14202
|
type: "background"
|
|
16188
14203
|
}))), /*#__PURE__*/React__default["default"].createElement(StrokeEnd, {
|
|
16189
14204
|
themeIntent: intent
|
|
16190
|
-
}), /*#__PURE__*/React__default["default"].createElement(
|
|
16191
|
-
style: _objectSpread2(_objectSpread2({},
|
|
14205
|
+
}), /*#__PURE__*/React__default["default"].createElement(reactNative.Animated.View, {
|
|
14206
|
+
style: _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
16192
14207
|
zIndex: 2,
|
|
16193
14208
|
transform: [{
|
|
16194
14209
|
rotate: interpolateDotRotate
|
|
@@ -16201,7 +14216,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
16201
14216
|
}, "".concat(value, "%")))));
|
|
16202
14217
|
};
|
|
16203
14218
|
|
|
16204
|
-
var StyledWrapper$
|
|
14219
|
+
var StyledWrapper$2 = index$2(reactNative.View)(function (_ref) {
|
|
16205
14220
|
var theme = _ref.theme;
|
|
16206
14221
|
return {
|
|
16207
14222
|
height: theme.__hd__.progress.sizes.barHeight,
|
|
@@ -16210,7 +14225,7 @@ var StyledWrapper$1 = index$2(ReactNative.View)(function (_ref) {
|
|
|
16210
14225
|
overflow: 'hidden'
|
|
16211
14226
|
};
|
|
16212
14227
|
});
|
|
16213
|
-
var StyledInner = index$2(
|
|
14228
|
+
var StyledInner = index$2(reactNative.Animated.View)(function (_ref2) {
|
|
16214
14229
|
var theme = _ref2.theme,
|
|
16215
14230
|
themeIntent = _ref2.themeIntent;
|
|
16216
14231
|
return {
|
|
@@ -16228,16 +14243,16 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
16228
14243
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
16229
14244
|
style = _ref.style,
|
|
16230
14245
|
testID = _ref.testID,
|
|
16231
|
-
nativeProps = _objectWithoutProperties
|
|
14246
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$3);
|
|
16232
14247
|
|
|
16233
14248
|
var _useState = React.useState(0),
|
|
16234
14249
|
_useState2 = _slicedToArray(_useState, 2),
|
|
16235
14250
|
width = _useState2[0],
|
|
16236
14251
|
setWidth = _useState2[1];
|
|
16237
14252
|
|
|
16238
|
-
var progressAnimatedValue = React.useRef(new
|
|
14253
|
+
var progressAnimatedValue = React.useRef(new reactNative.Animated.Value(0));
|
|
16239
14254
|
React.useEffect(function () {
|
|
16240
|
-
var animation =
|
|
14255
|
+
var animation = reactNative.Animated.timing(progressAnimatedValue.current, {
|
|
16241
14256
|
toValue: value,
|
|
16242
14257
|
useNativeDriver: true
|
|
16243
14258
|
});
|
|
@@ -16256,7 +14271,7 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
16256
14271
|
outputRange: [999, 0],
|
|
16257
14272
|
extrapolate: 'clamp'
|
|
16258
14273
|
});
|
|
16259
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$
|
|
14274
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledWrapper$2, _extends$1({}, nativeProps, {
|
|
16260
14275
|
testID: testID,
|
|
16261
14276
|
style: style
|
|
16262
14277
|
}), /*#__PURE__*/React__default["default"].createElement(StyledInner, {
|
|
@@ -16280,13 +14295,13 @@ var Progress = {
|
|
|
16280
14295
|
Bar: ProgressBar
|
|
16281
14296
|
};
|
|
16282
14297
|
|
|
16283
|
-
var StyledView$1 = index$2(
|
|
16284
|
-
var StyledSpinnerContainer = index$2(
|
|
14298
|
+
var StyledView$1 = index$2(reactNative.View)();
|
|
14299
|
+
var StyledSpinnerContainer = index$2(reactNative.View)({
|
|
16285
14300
|
height: '100%',
|
|
16286
14301
|
justifyContent: 'center',
|
|
16287
14302
|
alignItems: 'center'
|
|
16288
14303
|
});
|
|
16289
|
-
var StyledSpinnerRow = index$2(
|
|
14304
|
+
var StyledSpinnerRow = index$2(reactNative.View)(function (_ref) {
|
|
16290
14305
|
var themePosition = _ref.themePosition,
|
|
16291
14306
|
theme = _ref.theme;
|
|
16292
14307
|
return {
|
|
@@ -16294,7 +14309,7 @@ var StyledSpinnerRow = index$2(ReactNative.View)(function (_ref) {
|
|
|
16294
14309
|
marginBottom: themePosition === 'top' ? theme.__hd__.spinner.space.spinnerDotPadding : 0
|
|
16295
14310
|
};
|
|
16296
14311
|
});
|
|
16297
|
-
var StyledSpinnerDot = index$2(
|
|
14312
|
+
var StyledSpinnerDot = index$2(reactNative.View)(function (_ref2) {
|
|
16298
14313
|
var themePosition = _ref2.themePosition,
|
|
16299
14314
|
theme = _ref2.theme;
|
|
16300
14315
|
|
|
@@ -16332,16 +14347,16 @@ var StyledSpinnerDot = index$2(ReactNative.View)(function (_ref2) {
|
|
|
16332
14347
|
}, themeStyling());
|
|
16333
14348
|
});
|
|
16334
14349
|
|
|
16335
|
-
var AnimatedRow =
|
|
16336
|
-
var AnimatedDot =
|
|
14350
|
+
var AnimatedRow = reactNative.Animated.createAnimatedComponent(StyledSpinnerRow);
|
|
14351
|
+
var AnimatedDot = reactNative.Animated.createAnimatedComponent(StyledSpinnerDot);
|
|
16337
14352
|
|
|
16338
14353
|
var AnimatedSpinner = function AnimatedSpinner() {
|
|
16339
|
-
var rotateAnimation = React.useRef(new
|
|
14354
|
+
var rotateAnimation = React.useRef(new reactNative.Animated.Value(0));
|
|
16340
14355
|
React.useEffect(function () {
|
|
16341
|
-
var animation =
|
|
14356
|
+
var animation = reactNative.Animated.loop(reactNative.Animated.timing(rotateAnimation.current, {
|
|
16342
14357
|
toValue: 1,
|
|
16343
14358
|
duration: 1200,
|
|
16344
|
-
easing:
|
|
14359
|
+
easing: reactNative.Easing.linear,
|
|
16345
14360
|
useNativeDriver: true
|
|
16346
14361
|
}));
|
|
16347
14362
|
animation.start();
|
|
@@ -16353,8 +14368,8 @@ var AnimatedSpinner = function AnimatedSpinner() {
|
|
|
16353
14368
|
inputRange: [0, 1],
|
|
16354
14369
|
outputRange: ['0deg', '360deg']
|
|
16355
14370
|
});
|
|
16356
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
16357
|
-
style:
|
|
14371
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.Animated.View, {
|
|
14372
|
+
style: reactNative.StyleSheet.flatten([{
|
|
16358
14373
|
transform: [{
|
|
16359
14374
|
rotate: interpolatedRotateAnimation
|
|
16360
14375
|
}]
|
|
@@ -16378,14 +14393,14 @@ var _excluded$2 = ["testID"];
|
|
|
16378
14393
|
|
|
16379
14394
|
var Spinner = function Spinner(_ref) {
|
|
16380
14395
|
var testID = _ref.testID,
|
|
16381
|
-
nativeProps = _objectWithoutProperties
|
|
14396
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$2);
|
|
16382
14397
|
|
|
16383
14398
|
return /*#__PURE__*/React__default["default"].createElement(StyledView$1, nativeProps, /*#__PURE__*/React__default["default"].createElement(StyledSpinnerContainer, {
|
|
16384
14399
|
testID: testID
|
|
16385
14400
|
}, /*#__PURE__*/React__default["default"].createElement(AnimatedSpinner, null)));
|
|
16386
14401
|
};
|
|
16387
14402
|
|
|
16388
|
-
var Wrapper = index$2(
|
|
14403
|
+
var Wrapper = index$2(reactNative.TouchableOpacity)(function (_ref) {
|
|
16389
14404
|
var theme = _ref.theme,
|
|
16390
14405
|
themeChecked = _ref.themeChecked;
|
|
16391
14406
|
return {
|
|
@@ -16397,7 +14412,7 @@ var Wrapper = index$2(ReactNative.TouchableOpacity)(function (_ref) {
|
|
|
16397
14412
|
backgroundColor: themeChecked ? theme.__hd__.radio.colors.checkedWrapper : theme.__hd__.radio.colors.wrapper
|
|
16398
14413
|
};
|
|
16399
14414
|
});
|
|
16400
|
-
var Circle = index$2(
|
|
14415
|
+
var Circle = index$2(reactNative.View)(function (_ref2) {
|
|
16401
14416
|
var theme = _ref2.theme,
|
|
16402
14417
|
themeChecked = _ref2.themeChecked;
|
|
16403
14418
|
return {
|
|
@@ -16410,7 +14425,7 @@ var Circle = index$2(ReactNative.View)(function (_ref2) {
|
|
|
16410
14425
|
justifyContent: 'center'
|
|
16411
14426
|
};
|
|
16412
14427
|
});
|
|
16413
|
-
var InnerCircle = index$2(
|
|
14428
|
+
var InnerCircle = index$2(reactNative.View)(function (_ref3) {
|
|
16414
14429
|
var theme = _ref3.theme;
|
|
16415
14430
|
return {
|
|
16416
14431
|
height: theme.__hd__.radio.sizes.innerCircle,
|
|
@@ -16419,7 +14434,7 @@ var InnerCircle = index$2(ReactNative.View)(function (_ref3) {
|
|
|
16419
14434
|
backgroundColor: theme.__hd__.radio.colors.checkedCircle
|
|
16420
14435
|
};
|
|
16421
14436
|
});
|
|
16422
|
-
var Spacer = index$2(
|
|
14437
|
+
var Spacer$1 = index$2(reactNative.View)(function (_ref4) {
|
|
16423
14438
|
var theme = _ref4.theme;
|
|
16424
14439
|
return {
|
|
16425
14440
|
marginTop: theme.__hd__.radio.space.groupTopMargin
|
|
@@ -16438,7 +14453,7 @@ var Radio = function Radio(_ref) {
|
|
|
16438
14453
|
themeChecked: checked,
|
|
16439
14454
|
style: style,
|
|
16440
14455
|
testID: testID
|
|
16441
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
14456
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactNative.View, {
|
|
16442
14457
|
style: {
|
|
16443
14458
|
flex: 1
|
|
16444
14459
|
}
|
|
@@ -16451,19 +14466,34 @@ var Radio = function Radio(_ref) {
|
|
|
16451
14466
|
})));
|
|
16452
14467
|
};
|
|
16453
14468
|
|
|
14469
|
+
function getKey$1(option, index, keyExtractor) {
|
|
14470
|
+
var key = '';
|
|
14471
|
+
|
|
14472
|
+
if (keyExtractor !== undefined) {
|
|
14473
|
+
key = keyExtractor(option, index);
|
|
14474
|
+
} else if (option.key !== undefined) {
|
|
14475
|
+
key = option.key;
|
|
14476
|
+
} else {
|
|
14477
|
+
key = index;
|
|
14478
|
+
}
|
|
14479
|
+
|
|
14480
|
+
return key;
|
|
14481
|
+
}
|
|
14482
|
+
|
|
16454
14483
|
var RadioGroup = function RadioGroup(_ref) {
|
|
16455
14484
|
var value = _ref.value,
|
|
16456
14485
|
_onPress = _ref.onPress,
|
|
16457
14486
|
options = _ref.options,
|
|
14487
|
+
keyExtractor = _ref.keyExtractor,
|
|
16458
14488
|
style = _ref.style,
|
|
16459
14489
|
testID = _ref.testID;
|
|
16460
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
14490
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.View, {
|
|
16461
14491
|
style: style,
|
|
16462
14492
|
testID: testID
|
|
16463
14493
|
}, options.map(function (option, index) {
|
|
16464
14494
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
|
|
16465
|
-
key: option
|
|
16466
|
-
}, index !== 0 && /*#__PURE__*/React__default["default"].createElement(Spacer, null), /*#__PURE__*/React__default["default"].createElement(Radio, {
|
|
14495
|
+
key: getKey$1(option, index, keyExtractor)
|
|
14496
|
+
}, index !== 0 && /*#__PURE__*/React__default["default"].createElement(Spacer$1, null), /*#__PURE__*/React__default["default"].createElement(Radio, {
|
|
16467
14497
|
text: option.text,
|
|
16468
14498
|
checked: option.value === value,
|
|
16469
14499
|
onPress: function onPress() {
|
|
@@ -16473,280 +14503,411 @@ var RadioGroup = function RadioGroup(_ref) {
|
|
|
16473
14503
|
}));
|
|
16474
14504
|
};
|
|
16475
14505
|
|
|
16476
|
-
var CompoundRadio = {
|
|
16477
|
-
Group: RadioGroup
|
|
16478
|
-
};
|
|
16479
|
-
|
|
16480
|
-
var StyledHeading = index$2(
|
|
16481
|
-
var theme = _ref.theme;
|
|
14506
|
+
var CompoundRadio = {
|
|
14507
|
+
Group: RadioGroup
|
|
14508
|
+
};
|
|
14509
|
+
|
|
14510
|
+
var StyledHeading = index$2(reactNative.View)(function (_ref) {
|
|
14511
|
+
var theme = _ref.theme;
|
|
14512
|
+
return {
|
|
14513
|
+
paddingVertical: theme.__hd__.sectionHeading.space.headingVerticalPadding,
|
|
14514
|
+
paddingHorizontal: theme.__hd__.sectionHeading.space.headingHorizontalPadding,
|
|
14515
|
+
backgroundColor: theme.__hd__.sectionHeading.colors.background,
|
|
14516
|
+
marginBottom: theme.__hd__.sectionHeading.space.headingMarginBottom,
|
|
14517
|
+
display: 'flex',
|
|
14518
|
+
flexDirection: 'row',
|
|
14519
|
+
alignContent: 'center',
|
|
14520
|
+
justifyContent: 'space-between'
|
|
14521
|
+
};
|
|
14522
|
+
});
|
|
14523
|
+
var StyledIconWrapper = index$2(reactNative.View)(function (_ref2) {
|
|
14524
|
+
var theme = _ref2.theme;
|
|
14525
|
+
return {
|
|
14526
|
+
marginRight: theme.__hd__.sectionHeading.space.iconMarginRight
|
|
14527
|
+
};
|
|
14528
|
+
});
|
|
14529
|
+
var StyledWrapper$1 = index$2(reactNative.View)(function () {
|
|
14530
|
+
return {
|
|
14531
|
+
display: 'flex',
|
|
14532
|
+
flexDirection: 'row'
|
|
14533
|
+
};
|
|
14534
|
+
});
|
|
14535
|
+
|
|
14536
|
+
var ICON_SIZE_MAP = {
|
|
14537
|
+
small: 'small',
|
|
14538
|
+
medium: 'medium',
|
|
14539
|
+
large: 'medium',
|
|
14540
|
+
xlarge: 'large'
|
|
14541
|
+
};
|
|
14542
|
+
var ICON_INTENT_MAP = {
|
|
14543
|
+
body: 'text',
|
|
14544
|
+
subdued: 'text',
|
|
14545
|
+
primary: 'primary'
|
|
14546
|
+
};
|
|
14547
|
+
|
|
14548
|
+
var SectionHeading = function SectionHeading(_ref) {
|
|
14549
|
+
var icon = _ref.icon,
|
|
14550
|
+
text = _ref.text,
|
|
14551
|
+
rightChildren = _ref.rightChildren,
|
|
14552
|
+
_ref$fontSize = _ref.fontSize,
|
|
14553
|
+
fontSize = _ref$fontSize === void 0 ? 'large' : _ref$fontSize,
|
|
14554
|
+
_ref$intent = _ref.intent,
|
|
14555
|
+
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
14556
|
+
_ref$fontWeight = _ref.fontWeight,
|
|
14557
|
+
fontWeight = _ref$fontWeight === void 0 ? 'regular' : _ref$fontWeight,
|
|
14558
|
+
style = _ref.style,
|
|
14559
|
+
testID = _ref.testID;
|
|
14560
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledHeading, {
|
|
14561
|
+
style: style,
|
|
14562
|
+
testID: testID
|
|
14563
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledWrapper$1, null, /*#__PURE__*/React__default["default"].createElement(StyledIconWrapper, null, icon && /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
14564
|
+
icon: icon,
|
|
14565
|
+
size: ICON_SIZE_MAP[fontSize],
|
|
14566
|
+
intent: ICON_INTENT_MAP[intent]
|
|
14567
|
+
})), /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
|
|
14568
|
+
fontSize: fontSize,
|
|
14569
|
+
intent: intent,
|
|
14570
|
+
fontWeight: fontWeight
|
|
14571
|
+
}, text)), rightChildren);
|
|
14572
|
+
};
|
|
14573
|
+
|
|
14574
|
+
var Container = index$2(reactNative.View)(function (_ref) {
|
|
14575
|
+
var theme = _ref.theme;
|
|
14576
|
+
return {
|
|
14577
|
+
position: 'relative',
|
|
14578
|
+
width: '100%',
|
|
14579
|
+
borderWidth: theme.__hd__.textInput.borderWidths.container,
|
|
14580
|
+
borderRadius: theme.__hd__.textInput.radii.container,
|
|
14581
|
+
padding: theme.__hd__.textInput.space.containerPadding,
|
|
14582
|
+
flexDirection: 'row',
|
|
14583
|
+
alignItems: 'center'
|
|
14584
|
+
};
|
|
14585
|
+
});
|
|
14586
|
+
var Label = index$2(Typography.Text)(function (_ref2) {
|
|
14587
|
+
var theme = _ref2.theme;
|
|
14588
|
+
return {
|
|
14589
|
+
position: 'absolute',
|
|
14590
|
+
left: theme.__hd__.textInput.space.labelLeft,
|
|
14591
|
+
top: theme.__hd__.textInput.space.labelTop,
|
|
14592
|
+
backgroundColor: theme.__hd__.textInput.colors.labelBackground,
|
|
14593
|
+
zIndex: 1,
|
|
14594
|
+
paddingHorizontal: theme.__hd__.textInput.space.labelHorizontalPadding
|
|
14595
|
+
};
|
|
14596
|
+
});
|
|
14597
|
+
var StyledTextInput = index$2(reactNative.TextInput)(function (_ref3) {
|
|
14598
|
+
var theme = _ref3.theme;
|
|
14599
|
+
return {
|
|
14600
|
+
flex: 1,
|
|
14601
|
+
fontSize: theme.__hd__.textInput.fontSizes.text,
|
|
14602
|
+
marginHorizontal: theme.__hd__.textInput.space.inputHorizontalMargin
|
|
14603
|
+
};
|
|
14604
|
+
});
|
|
14605
|
+
|
|
14606
|
+
var _excluded$1 = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy"];
|
|
14607
|
+
|
|
14608
|
+
var TextInput = function TextInput(_ref) {
|
|
14609
|
+
var label = _ref.label,
|
|
14610
|
+
prefix = _ref.prefix,
|
|
14611
|
+
suffix = _ref.suffix,
|
|
14612
|
+
style = _ref.style,
|
|
14613
|
+
textStyle = _ref.textStyle,
|
|
14614
|
+
testID = _ref.testID,
|
|
14615
|
+
accessibilityLabelledBy = _ref.accessibilityLabelledBy,
|
|
14616
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$1);
|
|
14617
|
+
|
|
14618
|
+
return /*#__PURE__*/React__default["default"].createElement(Container, {
|
|
14619
|
+
style: style,
|
|
14620
|
+
testID: testID
|
|
14621
|
+
}, label && /*#__PURE__*/React__default["default"].createElement(Label, {
|
|
14622
|
+
nativeID: accessibilityLabelledBy,
|
|
14623
|
+
testID: "input-label",
|
|
14624
|
+
fontSize: "small"
|
|
14625
|
+
}, label), prefix && /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
14626
|
+
testID: "input-prefix",
|
|
14627
|
+
icon: prefix,
|
|
14628
|
+
size: "xsmall"
|
|
14629
|
+
}), /*#__PURE__*/React__default["default"].createElement(StyledTextInput, _extends$1({
|
|
14630
|
+
style: textStyle,
|
|
14631
|
+
testID: "text-input" // @ts-ignore
|
|
14632
|
+
,
|
|
14633
|
+
accessibilityLabelledBy: accessibilityLabelledBy
|
|
14634
|
+
}, nativeProps)), suffix && /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
14635
|
+
testID: "input-suffix",
|
|
14636
|
+
icon: suffix,
|
|
14637
|
+
size: "xsmall"
|
|
14638
|
+
}));
|
|
14639
|
+
};
|
|
14640
|
+
|
|
14641
|
+
var OptionWrapper = index$2(reactNative.TouchableOpacity)(function (_ref) {
|
|
14642
|
+
var theme = _ref.theme,
|
|
14643
|
+
themeSelected = _ref.themeSelected;
|
|
16482
14644
|
return {
|
|
16483
|
-
paddingVertical: theme.space.small,
|
|
16484
|
-
paddingHorizontal: theme.space.medium,
|
|
16485
|
-
backgroundColor: theme.colors.outline,
|
|
16486
|
-
marginBottom: theme.space.medium,
|
|
16487
|
-
display: 'flex',
|
|
16488
14645
|
flexDirection: 'row',
|
|
16489
|
-
|
|
16490
|
-
|
|
14646
|
+
justifyContent: 'space-between',
|
|
14647
|
+
alignItems: 'center',
|
|
14648
|
+
borderRadius: theme.__hd__.select.radii.option,
|
|
14649
|
+
padding: theme.__hd__.select.space.optionPadding,
|
|
14650
|
+
backgroundColor: themeSelected ? theme.__hd__.select.colors.checkedOption : theme.__hd__.select.colors.option
|
|
16491
14651
|
};
|
|
16492
14652
|
});
|
|
16493
|
-
var
|
|
14653
|
+
var OptionListWrapper = index$2(reactNative.View)(function (_ref2) {
|
|
16494
14654
|
var theme = _ref2.theme;
|
|
16495
14655
|
return {
|
|
16496
|
-
|
|
14656
|
+
padding: theme.__hd__.select.space.optionListPadding
|
|
16497
14657
|
};
|
|
16498
14658
|
});
|
|
16499
|
-
var
|
|
14659
|
+
var Spacer = index$2(reactNative.View)(function (_ref3) {
|
|
14660
|
+
var theme = _ref3.theme;
|
|
16500
14661
|
return {
|
|
16501
|
-
|
|
16502
|
-
|
|
14662
|
+
marginTop: theme.__hd__.select.space.optionListSpacing
|
|
14663
|
+
};
|
|
14664
|
+
});
|
|
14665
|
+
var FooterText = index$2(Typography.Text)(function (_ref4) {
|
|
14666
|
+
var theme = _ref4.theme;
|
|
14667
|
+
return {
|
|
14668
|
+
color: theme.__hd__.select.colors.footerText
|
|
16503
14669
|
};
|
|
16504
14670
|
});
|
|
16505
14671
|
|
|
16506
|
-
|
|
16507
|
-
|
|
16508
|
-
|
|
16509
|
-
|
|
16510
|
-
|
|
16511
|
-
}
|
|
16512
|
-
|
|
16513
|
-
|
|
16514
|
-
|
|
16515
|
-
primary: 'primary'
|
|
16516
|
-
};
|
|
16517
|
-
|
|
16518
|
-
var SectionHeading = function SectionHeading(_ref) {
|
|
16519
|
-
var icon = _ref.icon,
|
|
16520
|
-
text = _ref.text,
|
|
16521
|
-
rightChildren = _ref.rightChildren,
|
|
16522
|
-
_ref$fontSize = _ref.fontSize,
|
|
16523
|
-
fontSize = _ref$fontSize === void 0 ? 'large' : _ref$fontSize,
|
|
16524
|
-
_ref$intent = _ref.intent,
|
|
16525
|
-
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
16526
|
-
_ref$fontWeight = _ref.fontWeight,
|
|
16527
|
-
fontWeight = _ref$fontWeight === void 0 ? 'regular' : _ref$fontWeight,
|
|
16528
|
-
style = _ref.style,
|
|
16529
|
-
testID = _ref.testID;
|
|
16530
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledHeading, {
|
|
16531
|
-
style: style,
|
|
16532
|
-
testID: testID
|
|
16533
|
-
}, /*#__PURE__*/React__default["default"].createElement(StyledWrapper, null, /*#__PURE__*/React__default["default"].createElement(StyledIconWrapper, null, icon && /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
16534
|
-
icon: icon,
|
|
16535
|
-
size: ICON_SIZE_MAP[fontSize],
|
|
16536
|
-
intent: ICON_INTENT_MAP[intent]
|
|
16537
|
-
})), /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
|
|
16538
|
-
fontSize: fontSize,
|
|
16539
|
-
intent: intent,
|
|
16540
|
-
fontWeight: fontWeight
|
|
16541
|
-
}, text)), rightChildren);
|
|
16542
|
-
};
|
|
16543
|
-
|
|
16544
|
-
var childrenWithOverriddenStyle = function childrenWithOverriddenStyle(children) {
|
|
16545
|
-
return React.Children.map(children, function (child) {
|
|
16546
|
-
var element = child;
|
|
16547
|
-
return (
|
|
16548
|
-
/*#__PURE__*/
|
|
16549
|
-
// Add a wrapper to ensure layout is calculated correctly
|
|
16550
|
-
React__default["default"].createElement(ReactNative.View, {
|
|
16551
|
-
style: ReactNative.StyleSheet.absoluteFill,
|
|
16552
|
-
collapsable: false
|
|
16553
|
-
}, /*#__PURE__*/React__default["default"].cloneElement(element, _objectSpread2(_objectSpread2({}, element.props), {}, {
|
|
16554
|
-
// Override styles so that each page will fill the parent.
|
|
16555
|
-
style: [element.props.style, ReactNative.StyleSheet.absoluteFill]
|
|
16556
|
-
})))
|
|
16557
|
-
);
|
|
16558
|
-
});
|
|
16559
|
-
};
|
|
16560
|
-
|
|
16561
|
-
var VIEW_MANAGER_NAME = 'RNCViewPager';
|
|
16562
|
-
var PagerViewViewManager = ReactNative.requireNativeComponent(VIEW_MANAGER_NAME);
|
|
16563
|
-
function getViewManagerConfig() {
|
|
16564
|
-
var viewManagerName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : VIEW_MANAGER_NAME;
|
|
16565
|
-
return ReactNative.UIManager.getViewManagerConfig(viewManagerName);
|
|
14672
|
+
function Footer(_ref) {
|
|
14673
|
+
var label = _ref.label,
|
|
14674
|
+
onPress = _ref.onPress;
|
|
14675
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.TouchableOpacity, {
|
|
14676
|
+
onPress: onPress
|
|
14677
|
+
}, /*#__PURE__*/React__default["default"].createElement(FooterText, {
|
|
14678
|
+
fontSize: "large",
|
|
14679
|
+
fontWeight: "semi-bold"
|
|
14680
|
+
}, label));
|
|
16566
14681
|
}
|
|
16567
14682
|
|
|
16568
|
-
function
|
|
16569
|
-
|
|
16570
|
-
|
|
16571
|
-
|
|
16572
|
-
|
|
16573
|
-
|
|
16574
|
-
|
|
16575
|
-
|
|
16576
|
-
|
|
16577
|
-
|
|
14683
|
+
function Option(_ref) {
|
|
14684
|
+
var text = _ref.text,
|
|
14685
|
+
selected = _ref.selected,
|
|
14686
|
+
onPress = _ref.onPress;
|
|
14687
|
+
return /*#__PURE__*/React__default["default"].createElement(OptionWrapper, {
|
|
14688
|
+
themeSelected: selected,
|
|
14689
|
+
onPress: onPress
|
|
14690
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactNative.View, {
|
|
14691
|
+
style: {
|
|
14692
|
+
flex: 1
|
|
16578
14693
|
}
|
|
16579
|
-
|
|
16580
|
-
|
|
16581
|
-
}
|
|
16582
|
-
|
|
16583
|
-
|
|
14694
|
+
}, /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
|
|
14695
|
+
fontSize: "large"
|
|
14696
|
+
}, text)), selected && /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
14697
|
+
icon: "checkmark",
|
|
14698
|
+
size: "small"
|
|
14699
|
+
}));
|
|
16584
14700
|
}
|
|
16585
14701
|
|
|
16586
|
-
function
|
|
16587
|
-
|
|
16588
|
-
|
|
16589
|
-
|
|
16590
|
-
|
|
16591
|
-
|
|
16592
|
-
|
|
16593
|
-
});
|
|
14702
|
+
function getKey(option, index, keyExtractor) {
|
|
14703
|
+
var key = '';
|
|
14704
|
+
|
|
14705
|
+
if (keyExtractor !== undefined) {
|
|
14706
|
+
key = keyExtractor(option, index);
|
|
14707
|
+
} else if (option.key !== undefined) {
|
|
14708
|
+
key = option.key;
|
|
16594
14709
|
} else {
|
|
16595
|
-
|
|
14710
|
+
key = index;
|
|
16596
14711
|
}
|
|
16597
14712
|
|
|
16598
|
-
return
|
|
14713
|
+
return key;
|
|
16599
14714
|
}
|
|
16600
|
-
/**
|
|
16601
|
-
* Container that allows to flip left and right between child views. Each
|
|
16602
|
-
* child view of the `PagerView` will be treated as a separate page
|
|
16603
|
-
* and will be stretched to fill the `PagerView`.
|
|
16604
|
-
*
|
|
16605
|
-
* It is important all children are `<View>`s and not composite components.
|
|
16606
|
-
* You can set style properties like `padding` or `backgroundColor` for each
|
|
16607
|
-
* child. It is also important that each child have a `key` prop.
|
|
16608
|
-
*
|
|
16609
|
-
* Example:
|
|
16610
|
-
*
|
|
16611
|
-
* ```
|
|
16612
|
-
* render: function() {
|
|
16613
|
-
* return (
|
|
16614
|
-
* <PagerView
|
|
16615
|
-
* style={styles.PagerView}
|
|
16616
|
-
* initialPage={0}>
|
|
16617
|
-
* <View style={styles.pageStyle} key="1">
|
|
16618
|
-
* <Text>First page</Text>
|
|
16619
|
-
* </View>
|
|
16620
|
-
* <View style={styles.pageStyle} key="2">
|
|
16621
|
-
* <Text>Second page</Text>
|
|
16622
|
-
* </View>
|
|
16623
|
-
* </PagerView>
|
|
16624
|
-
* );
|
|
16625
|
-
* }
|
|
16626
|
-
*
|
|
16627
|
-
* ...
|
|
16628
|
-
*
|
|
16629
|
-
* var styles = {
|
|
16630
|
-
* ...
|
|
16631
|
-
* PagerView: {
|
|
16632
|
-
* flex: 1
|
|
16633
|
-
* },
|
|
16634
|
-
* pageStyle: {
|
|
16635
|
-
* alignItems: 'center',
|
|
16636
|
-
* padding: 20,
|
|
16637
|
-
* }
|
|
16638
|
-
* }
|
|
16639
|
-
* ```
|
|
16640
|
-
*/
|
|
16641
|
-
|
|
16642
|
-
var PagerView = /*#__PURE__*/function (_React$Component) {
|
|
16643
|
-
_inherits$1(PagerView, _React$Component);
|
|
16644
|
-
|
|
16645
|
-
var _super = _createSuper(PagerView);
|
|
16646
|
-
|
|
16647
|
-
function PagerView() {
|
|
16648
|
-
var _this;
|
|
16649
|
-
|
|
16650
|
-
_classCallCheck$1(this, PagerView);
|
|
16651
|
-
|
|
16652
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
16653
|
-
args[_key] = arguments[_key];
|
|
16654
|
-
}
|
|
16655
14715
|
|
|
16656
|
-
|
|
16657
|
-
|
|
16658
|
-
|
|
16659
|
-
|
|
16660
|
-
|
|
16661
|
-
|
|
16662
|
-
|
|
16663
|
-
|
|
16664
|
-
})
|
|
16665
|
-
|
|
16666
|
-
|
|
16667
|
-
|
|
16668
|
-
|
|
16669
|
-
|
|
16670
|
-
|
|
16671
|
-
|
|
16672
|
-
|
|
16673
|
-
|
|
16674
|
-
ReactNative.Keyboard.dismiss();
|
|
14716
|
+
function OptionList(_ref2) {
|
|
14717
|
+
var value = _ref2.value,
|
|
14718
|
+
options = _ref2.options,
|
|
14719
|
+
_onPress = _ref2.onPress,
|
|
14720
|
+
keyExtractor = _ref2.keyExtractor;
|
|
14721
|
+
return /*#__PURE__*/React__default["default"].createElement(OptionListWrapper, null, options.map(function (opt, index) {
|
|
14722
|
+
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
|
|
14723
|
+
key: getKey(opt, index, keyExtractor)
|
|
14724
|
+
}, index !== 0 && /*#__PURE__*/React__default["default"].createElement(Spacer, null), /*#__PURE__*/React__default["default"].createElement(Option, {
|
|
14725
|
+
text: opt.text,
|
|
14726
|
+
selected: value.includes(opt.value),
|
|
14727
|
+
onPress: function onPress() {
|
|
14728
|
+
if (value.includes(opt.value)) {
|
|
14729
|
+
_onPress(value.filter(function (val) {
|
|
14730
|
+
return val !== opt.value;
|
|
14731
|
+
}));
|
|
14732
|
+
} else {
|
|
14733
|
+
_onPress([].concat(_toConsumableArray(value), [opt.value]));
|
|
16675
14734
|
}
|
|
16676
14735
|
}
|
|
16677
|
-
});
|
|
16678
|
-
|
|
16679
|
-
|
|
16680
|
-
if (_this.props.onPageScrollStateChanged) {
|
|
16681
|
-
_this.props.onPageScrollStateChanged(e);
|
|
16682
|
-
}
|
|
14736
|
+
}));
|
|
14737
|
+
}));
|
|
14738
|
+
}
|
|
16683
14739
|
|
|
16684
|
-
|
|
16685
|
-
|
|
14740
|
+
function MultiSelect(_ref) {
|
|
14741
|
+
var options = _ref.options,
|
|
14742
|
+
value = _ref.value,
|
|
14743
|
+
testID = _ref.testID,
|
|
14744
|
+
style = _ref.style,
|
|
14745
|
+
label = _ref.label,
|
|
14746
|
+
footerLabel = _ref.footerLabel,
|
|
14747
|
+
_onPress = _ref.onPress;
|
|
14748
|
+
var theme = useTheme$1();
|
|
16686
14749
|
|
|
16687
|
-
|
|
16688
|
-
|
|
16689
|
-
|
|
16690
|
-
|
|
16691
|
-
});
|
|
14750
|
+
var _useState = React.useState(false),
|
|
14751
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
14752
|
+
open = _useState2[0],
|
|
14753
|
+
setOpen = _useState2[1];
|
|
16692
14754
|
|
|
16693
|
-
|
|
16694
|
-
|
|
16695
|
-
|
|
14755
|
+
var _useState3 = React.useState(value),
|
|
14756
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
14757
|
+
selectingValue = _useState4[0],
|
|
14758
|
+
setSelectingValue = _useState4[1];
|
|
14759
|
+
|
|
14760
|
+
var displayedValue = options.filter(function (opt) {
|
|
14761
|
+
return value.includes(opt.value);
|
|
14762
|
+
}).map(function (opt) {
|
|
14763
|
+
return opt.text;
|
|
14764
|
+
}).join(', ');
|
|
14765
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.TouchableOpacity, {
|
|
14766
|
+
onPress: function onPress() {
|
|
14767
|
+
return setOpen(true);
|
|
14768
|
+
}
|
|
14769
|
+
}, /*#__PURE__*/React__default["default"].createElement(TextInput, {
|
|
14770
|
+
label: label,
|
|
14771
|
+
value: displayedValue,
|
|
14772
|
+
onPressIn: function onPressIn() {
|
|
14773
|
+
return setOpen(true);
|
|
14774
|
+
},
|
|
14775
|
+
editable: false // when input is not editable on Android, the text color is gray
|
|
14776
|
+
// hence, adding this to make the text color the same as iOS
|
|
14777
|
+
,
|
|
14778
|
+
textStyle: {
|
|
14779
|
+
color: theme.colors.text
|
|
14780
|
+
},
|
|
14781
|
+
suffix: "arrow-down",
|
|
14782
|
+
multiline: true,
|
|
14783
|
+
style: style,
|
|
14784
|
+
testID: testID
|
|
14785
|
+
}), /*#__PURE__*/React__default["default"].createElement(BottomSheet, {
|
|
14786
|
+
open: open,
|
|
14787
|
+
onRequestClose: function onRequestClose() {
|
|
14788
|
+
return setOpen(false);
|
|
14789
|
+
},
|
|
14790
|
+
onDismiss: function onDismiss() {
|
|
14791
|
+
return setSelectingValue(value);
|
|
14792
|
+
},
|
|
14793
|
+
header: label,
|
|
14794
|
+
footer: /*#__PURE__*/React__default["default"].createElement(Footer, {
|
|
14795
|
+
label: footerLabel,
|
|
14796
|
+
onPress: function onPress() {
|
|
14797
|
+
setOpen(false);
|
|
16696
14798
|
|
|
16697
|
-
|
|
16698
|
-
|
|
16699
|
-
})
|
|
14799
|
+
_onPress(selectingValue);
|
|
14800
|
+
}
|
|
14801
|
+
})
|
|
14802
|
+
}, /*#__PURE__*/React__default["default"].createElement(OptionList, {
|
|
14803
|
+
options: options,
|
|
14804
|
+
value: selectingValue,
|
|
14805
|
+
onPress: setSelectingValue
|
|
14806
|
+
})));
|
|
14807
|
+
}
|
|
16700
14808
|
|
|
16701
|
-
|
|
16702
|
-
|
|
16703
|
-
|
|
14809
|
+
var CompoundSelect = {
|
|
14810
|
+
Multi: MultiSelect
|
|
14811
|
+
};
|
|
16704
14812
|
|
|
16705
|
-
|
|
16706
|
-
|
|
16707
|
-
|
|
14813
|
+
var StyledWrapper = index$2(reactNative.View)(function (_ref) {
|
|
14814
|
+
var theme = _ref.theme,
|
|
14815
|
+
themeChecked = _ref.themeChecked,
|
|
14816
|
+
themeSize = _ref.themeSize;
|
|
14817
|
+
return {
|
|
14818
|
+
height: theme.__hd__["switch"].heights[themeSize],
|
|
14819
|
+
width: theme.__hd__["switch"].widths[themeSize],
|
|
14820
|
+
paddingHorizontal: theme.__hd__["switch"].spaces[themeSize],
|
|
14821
|
+
borderRadius: theme.__hd__["switch"].radii.rounded,
|
|
14822
|
+
backgroundColor: themeChecked ? theme.__hd__["switch"].colors.active : theme.__hd__["switch"].colors.inactive
|
|
14823
|
+
};
|
|
14824
|
+
});
|
|
14825
|
+
var StyledDisabledWrapper = index$2(reactNative.View)(function (_ref2) {
|
|
14826
|
+
var theme = _ref2.theme,
|
|
14827
|
+
themeSize = _ref2.themeSize;
|
|
14828
|
+
return {
|
|
14829
|
+
position: 'absolute',
|
|
14830
|
+
height: theme.__hd__["switch"].heights[themeSize],
|
|
14831
|
+
width: theme.__hd__["switch"].widths[themeSize],
|
|
14832
|
+
borderRadius: theme.__hd__["switch"].radii.rounded,
|
|
14833
|
+
backgroundColor: theme.__hd__["switch"].colors.thumb,
|
|
14834
|
+
zIndex: 9999,
|
|
14835
|
+
opacity: 0.8
|
|
14836
|
+
};
|
|
14837
|
+
});
|
|
14838
|
+
var StyledThumbWrapper = index$2(reactNative.View)(function (_ref3) {
|
|
14839
|
+
var theme = _ref3.theme,
|
|
14840
|
+
themeSize = _ref3.themeSize;
|
|
14841
|
+
return {
|
|
14842
|
+
height: theme.__hd__["switch"].heights[themeSize],
|
|
14843
|
+
width: theme.__hd__["switch"].widths[themeSize],
|
|
14844
|
+
borderRadius: theme.__hd__["switch"].radii.rounded,
|
|
14845
|
+
display: 'flex',
|
|
14846
|
+
justifyContent: 'center'
|
|
14847
|
+
};
|
|
14848
|
+
});
|
|
14849
|
+
var StyledKnot = index$2(reactNative.Animated.View)(function (_ref4) {
|
|
14850
|
+
var theme = _ref4.theme,
|
|
14851
|
+
themeSize = _ref4.themeSize;
|
|
14852
|
+
return {
|
|
14853
|
+
width: theme.__hd__["switch"].thumbSizes[themeSize],
|
|
14854
|
+
height: theme.__hd__["switch"].thumbSizes[themeSize],
|
|
14855
|
+
backgroundColor: theme.__hd__["switch"].colors.thumb,
|
|
14856
|
+
borderRadius: theme.__hd__["switch"].radii.rounded
|
|
14857
|
+
};
|
|
14858
|
+
});
|
|
16708
14859
|
|
|
16709
|
-
|
|
16710
|
-
|
|
14860
|
+
var Switch = function Switch(_ref) {
|
|
14861
|
+
var _ref$size = _ref.size,
|
|
14862
|
+
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
14863
|
+
_ref$disabled = _ref.disabled,
|
|
14864
|
+
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
14865
|
+
checked = _ref.checked,
|
|
14866
|
+
onPress = _ref.onPress,
|
|
14867
|
+
style = _ref.style,
|
|
14868
|
+
testID = _ref.testID;
|
|
14869
|
+
var theme = useTheme$1();
|
|
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;
|
|
16711
14871
|
|
|
16712
|
-
|
|
16713
|
-
|
|
16714
|
-
|
|
16715
|
-
|
|
14872
|
+
var _useState = React.useState(function () {
|
|
14873
|
+
return new reactNative.Animated.Value(offset);
|
|
14874
|
+
}),
|
|
14875
|
+
_useState2 = _slicedToArray(_useState, 1),
|
|
14876
|
+
animatedOffset = _useState2[0];
|
|
16716
14877
|
|
|
16717
|
-
|
|
16718
|
-
|
|
16719
|
-
|
|
16720
|
-
|
|
16721
|
-
|
|
16722
|
-
}
|
|
16723
|
-
},
|
|
16724
|
-
|
|
16725
|
-
|
|
16726
|
-
|
|
16727
|
-
|
|
16728
|
-
|
|
16729
|
-
|
|
16730
|
-
|
|
16731
|
-
|
|
16732
|
-
|
|
16733
|
-
|
|
16734
|
-
|
|
16735
|
-
|
|
16736
|
-
|
|
16737
|
-
|
|
14878
|
+
React.useEffect(function () {
|
|
14879
|
+
reactNative.Animated.timing(animatedOffset, {
|
|
14880
|
+
toValue: offset,
|
|
14881
|
+
easing: reactNative.Easing.inOut(reactNative.Easing.cubic),
|
|
14882
|
+
useNativeDriver: false
|
|
14883
|
+
}).start();
|
|
14884
|
+
}, [checked]);
|
|
14885
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.TouchableWithoutFeedback, {
|
|
14886
|
+
testID: testID,
|
|
14887
|
+
onPress: onPress,
|
|
14888
|
+
disabled: disabled
|
|
14889
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledWrapper, {
|
|
14890
|
+
themeChecked: checked,
|
|
14891
|
+
themeSize: size,
|
|
14892
|
+
style: style
|
|
14893
|
+
}, disabled && /*#__PURE__*/React__default["default"].createElement(StyledDisabledWrapper, {
|
|
14894
|
+
themeSize: size
|
|
14895
|
+
}), /*#__PURE__*/React__default["default"].createElement(StyledThumbWrapper, {
|
|
14896
|
+
themeSize: size
|
|
14897
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledKnot, {
|
|
14898
|
+
themeSize: size,
|
|
14899
|
+
style: {
|
|
14900
|
+
left: animatedOffset
|
|
16738
14901
|
}
|
|
16739
|
-
}
|
|
16740
|
-
|
|
16741
|
-
return PagerView;
|
|
16742
|
-
}(React__default["default"].Component);
|
|
14902
|
+
}))));
|
|
14903
|
+
};
|
|
16743
14904
|
|
|
16744
|
-
var AnimatedPagerView =
|
|
16745
|
-
var TabContainer$1 = index$2(
|
|
14905
|
+
var AnimatedPagerView = reactNative.Animated.createAnimatedComponent(PagerView__default["default"]);
|
|
14906
|
+
var TabContainer$1 = index$2(reactNative.View)({
|
|
16746
14907
|
flex: 1,
|
|
16747
14908
|
overflow: 'hidden'
|
|
16748
14909
|
});
|
|
16749
|
-
var HeaderTabWrapper$1 = index$2(
|
|
14910
|
+
var HeaderTabWrapper$1 = index$2(reactNative.View)(function (_ref) {
|
|
16750
14911
|
var theme = _ref.theme,
|
|
16751
14912
|
themeInsets = _ref.themeInsets;
|
|
16752
14913
|
return {
|
|
@@ -16755,10 +14916,10 @@ var HeaderTabWrapper$1 = index$2(ReactNative.View)(function (_ref) {
|
|
|
16755
14916
|
borderBottomWidth: theme.__hd__.tabs.borderWidths.headerBottom
|
|
16756
14917
|
};
|
|
16757
14918
|
});
|
|
16758
|
-
var HeaderTab = index$2(
|
|
14919
|
+
var HeaderTab = index$2(reactNative.View)({
|
|
16759
14920
|
flexDirection: 'row'
|
|
16760
14921
|
});
|
|
16761
|
-
var HeaderTabItem$1 = index$2(
|
|
14922
|
+
var HeaderTabItem$1 = index$2(reactNative.View)(function (_ref2) {
|
|
16762
14923
|
var theme = _ref2.theme;
|
|
16763
14924
|
return {
|
|
16764
14925
|
flex: 1,
|
|
@@ -16769,10 +14930,10 @@ var HeaderTabItem$1 = index$2(ReactNative.View)(function (_ref2) {
|
|
|
16769
14930
|
var ContentWrapper$1 = index$2(AnimatedPagerView)({
|
|
16770
14931
|
flex: 1
|
|
16771
14932
|
});
|
|
16772
|
-
var TabScreen$1 = index$2(
|
|
14933
|
+
var TabScreen$1 = index$2(reactNative.View)({
|
|
16773
14934
|
flex: 1
|
|
16774
14935
|
});
|
|
16775
|
-
var StyledIndicator = index$2(
|
|
14936
|
+
var StyledIndicator = index$2(reactNative.Animated.View)(function (_ref3) {
|
|
16776
14937
|
var theme = _ref3.theme,
|
|
16777
14938
|
themeWidth = _ref3.themeWidth;
|
|
16778
14939
|
return {
|
|
@@ -16791,7 +14952,7 @@ var ActiveTabIndicator = function ActiveTabIndicator(_ref) {
|
|
|
16791
14952
|
tabsWidth = _ref.tabsWidth;
|
|
16792
14953
|
var inputRange = [0, tabsLength];
|
|
16793
14954
|
var indicatorWidth = tabsWidth / tabsLength;
|
|
16794
|
-
var translateX =
|
|
14955
|
+
var translateX = reactNative.Animated.add(scrollOffsetAnimatedValue, positionAnimatedValue).interpolate({
|
|
16795
14956
|
inputRange: inputRange,
|
|
16796
14957
|
outputRange: [0, tabsLength * indicatorWidth]
|
|
16797
14958
|
});
|
|
@@ -16805,17 +14966,17 @@ var ActiveTabIndicator = function ActiveTabIndicator(_ref) {
|
|
|
16805
14966
|
});
|
|
16806
14967
|
};
|
|
16807
14968
|
|
|
16808
|
-
var TabScreen = index$2(
|
|
14969
|
+
var TabScreen = index$2(reactNative.View)({
|
|
16809
14970
|
flex: 1
|
|
16810
14971
|
});
|
|
16811
|
-
var TabContainer = index$2(
|
|
14972
|
+
var TabContainer = index$2(reactNative.View)({
|
|
16812
14973
|
flex: 1,
|
|
16813
14974
|
overflow: 'hidden'
|
|
16814
14975
|
});
|
|
16815
|
-
var ContentWrapper = index$2(
|
|
14976
|
+
var ContentWrapper = index$2(PagerView__default["default"])({
|
|
16816
14977
|
flex: 1
|
|
16817
14978
|
});
|
|
16818
|
-
var HeaderTabWrapper = index$2(
|
|
14979
|
+
var HeaderTabWrapper = index$2(reactNative.View)(function (_ref) {
|
|
16819
14980
|
var theme = _ref.theme,
|
|
16820
14981
|
themeInsets = _ref.themeInsets;
|
|
16821
14982
|
return {
|
|
@@ -16824,21 +14985,21 @@ var HeaderTabWrapper = index$2(ReactNative.View)(function (_ref) {
|
|
|
16824
14985
|
borderBottomWidth: theme.__hd__.tabs.borderWidths.headerBottom
|
|
16825
14986
|
};
|
|
16826
14987
|
});
|
|
16827
|
-
var HeaderTabItem = index$2(
|
|
14988
|
+
var HeaderTabItem = index$2(reactNative.Animated.View)(function (_ref2) {
|
|
16828
14989
|
var theme = _ref2.theme;
|
|
16829
14990
|
return {
|
|
16830
14991
|
paddingHorizontal: theme.__hd__.tabs.space.itemHorizontalPadding,
|
|
16831
14992
|
paddingVertical: theme.__hd__.tabs.space.itemVerticalPadding
|
|
16832
14993
|
};
|
|
16833
14994
|
});
|
|
16834
|
-
var HeaderTabItemOutlineWrapper = index$2(
|
|
14995
|
+
var HeaderTabItemOutlineWrapper = index$2(reactNative.View)(function (_ref3) {
|
|
16835
14996
|
var theme = _ref3.theme;
|
|
16836
14997
|
return _objectSpread2({
|
|
16837
14998
|
paddingHorizontal: theme.__hd__.tabs.space.itemHorizontalPadding,
|
|
16838
14999
|
paddingVertical: theme.__hd__.tabs.space.itemVerticalPadding
|
|
16839
|
-
},
|
|
15000
|
+
}, reactNative.StyleSheet.absoluteFillObject);
|
|
16840
15001
|
});
|
|
16841
|
-
var HeaderTabItemOutline = index$2(
|
|
15002
|
+
var HeaderTabItemOutline = index$2(reactNative.Animated.View)(function (_ref4) {
|
|
16842
15003
|
var theme = _ref4.theme,
|
|
16843
15004
|
themeActive = _ref4.themeActive;
|
|
16844
15005
|
return {
|
|
@@ -16846,7 +15007,7 @@ var HeaderTabItemOutline = index$2(ReactNative.Animated.View)(function (_ref4) {
|
|
|
16846
15007
|
backgroundColor: themeActive ? theme.__hd__.tabs.colors.activeBackground : undefined
|
|
16847
15008
|
};
|
|
16848
15009
|
});
|
|
16849
|
-
var HeaderTabItemWrapper = index$2(
|
|
15010
|
+
var HeaderTabItemWrapper = index$2(reactNative.View)(function (_ref5) {
|
|
16850
15011
|
var theme = _ref5.theme;
|
|
16851
15012
|
return {
|
|
16852
15013
|
paddingHorizontal: theme.__hd__.tabs.space.outlineHorizontalPadding,
|
|
@@ -16860,7 +15021,7 @@ var useAnimatedValueArray = function useAnimatedValueArray(initialValues) {
|
|
|
16860
15021
|
initialValues.forEach(function (initialValue, i) {
|
|
16861
15022
|
var _refs$current$i;
|
|
16862
15023
|
|
|
16863
|
-
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);
|
|
16864
15025
|
});
|
|
16865
15026
|
return refs.current;
|
|
16866
15027
|
};
|
|
@@ -16907,7 +15068,7 @@ var ScrollableTab = function ScrollableTab(_ref2) {
|
|
|
16907
15068
|
var flatListRef = React__default["default"].useRef(null);
|
|
16908
15069
|
var pagerViewRef = React__default["default"].useRef(null);
|
|
16909
15070
|
var insets = reactNativeSafeAreaContext.useSafeAreaInsets();
|
|
16910
|
-
var theme = useTheme();
|
|
15071
|
+
var theme = useTheme$1();
|
|
16911
15072
|
var selectedTabIndex = tabs.findIndex(function (item) {
|
|
16912
15073
|
return item.key === selectedTabKey;
|
|
16913
15074
|
});
|
|
@@ -16924,8 +15085,8 @@ var ScrollableTab = function ScrollableTab(_ref2) {
|
|
|
16924
15085
|
});
|
|
16925
15086
|
}
|
|
16926
15087
|
|
|
16927
|
-
var animation =
|
|
16928
|
-
return
|
|
15088
|
+
var animation = reactNative.Animated.parallel(_toConsumableArray(tabs.map(function (_, i) {
|
|
15089
|
+
return reactNative.Animated.timing(tabsAnims[i], {
|
|
16929
15090
|
toValue: i === selectedTabIndex ? 1 : 0,
|
|
16930
15091
|
duration: 150,
|
|
16931
15092
|
useNativeDriver: true
|
|
@@ -16941,7 +15102,7 @@ var ScrollableTab = function ScrollableTab(_ref2) {
|
|
|
16941
15102
|
}, /*#__PURE__*/React__default["default"].createElement(HeaderTabWrapper, {
|
|
16942
15103
|
themeInsets: insets,
|
|
16943
15104
|
style: barStyle
|
|
16944
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
15105
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactNative.FlatList, {
|
|
16945
15106
|
ref: flatListRef,
|
|
16946
15107
|
horizontal: true,
|
|
16947
15108
|
data: tabs,
|
|
@@ -16984,7 +15145,7 @@ var ScrollableTab = function ScrollableTab(_ref2) {
|
|
|
16984
15145
|
color: active ? theme.__hd__.tabs.colors.active : theme.__hd__.tabs.colors.inactive,
|
|
16985
15146
|
active: active
|
|
16986
15147
|
});
|
|
16987
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
15148
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.TouchableWithoutFeedback, {
|
|
16988
15149
|
key: key,
|
|
16989
15150
|
onPress: function onPress() {
|
|
16990
15151
|
var _pagerViewRef$current;
|
|
@@ -17063,14 +15224,14 @@ var Tabs = function Tabs(_ref2) {
|
|
|
17063
15224
|
lazy = _ref2$lazy === void 0 ? false : _ref2$lazy,
|
|
17064
15225
|
_ref2$lazyPreloadDist = _ref2.lazyPreloadDistance,
|
|
17065
15226
|
lazyPreloadDistance = _ref2$lazyPreloadDist === void 0 ? 1 : _ref2$lazyPreloadDist;
|
|
17066
|
-
var theme = useTheme();
|
|
15227
|
+
var theme = useTheme$1();
|
|
17067
15228
|
var insets = reactNativeSafeAreaContext.useSafeAreaInsets();
|
|
17068
15229
|
var pagerViewRef = React__default["default"].useRef(null);
|
|
17069
15230
|
var selectedTabIndex = tabs.findIndex(function (item) {
|
|
17070
15231
|
return item.key === selectedTabKey;
|
|
17071
15232
|
});
|
|
17072
|
-
var scrollOffsetAnimatedValue = React__default["default"].useRef(new
|
|
17073
|
-
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;
|
|
17074
15235
|
|
|
17075
15236
|
var _React$useState = React__default["default"].useState(0),
|
|
17076
15237
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -17082,7 +15243,7 @@ var Tabs = function Tabs(_ref2) {
|
|
|
17082
15243
|
}, /*#__PURE__*/React__default["default"].createElement(HeaderTabWrapper$1, {
|
|
17083
15244
|
themeInsets: insets,
|
|
17084
15245
|
style: barStyle
|
|
17085
|
-
}, /*#__PURE__*/React__default["default"].createElement(
|
|
15246
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactNative.View, null, /*#__PURE__*/React__default["default"].createElement(HeaderTab, {
|
|
17086
15247
|
onLayout: function onLayout(e) {
|
|
17087
15248
|
var width = e.nativeEvent.layout.width;
|
|
17088
15249
|
|
|
@@ -17104,7 +15265,7 @@ var Tabs = function Tabs(_ref2) {
|
|
|
17104
15265
|
color: theme.__hd__.tabs.colors.text,
|
|
17105
15266
|
active: active
|
|
17106
15267
|
});
|
|
17107
|
-
return /*#__PURE__*/React__default["default"].createElement(
|
|
15268
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.TouchableWithoutFeedback, {
|
|
17108
15269
|
key: key,
|
|
17109
15270
|
onPress: function onPress() {
|
|
17110
15271
|
var _pagerViewRef$current;
|
|
@@ -17132,7 +15293,7 @@ var Tabs = function Tabs(_ref2) {
|
|
|
17132
15293
|
onTabPress(selectedItem.key);
|
|
17133
15294
|
}
|
|
17134
15295
|
},
|
|
17135
|
-
onPageScroll:
|
|
15296
|
+
onPageScroll: reactNative.Animated.event([{
|
|
17136
15297
|
nativeEvent: {
|
|
17137
15298
|
offset: scrollOffsetAnimatedValue,
|
|
17138
15299
|
position: positionAnimatedValue
|
|
@@ -17167,7 +15328,7 @@ var BACKGROUND_INTENTS = {
|
|
|
17167
15328
|
danger: 'dangerBackground',
|
|
17168
15329
|
info: 'infoBackground'
|
|
17169
15330
|
};
|
|
17170
|
-
var StyledView = index$2(
|
|
15331
|
+
var StyledView = index$2(reactNative.View)(function (_ref) {
|
|
17171
15332
|
var themeIntent = _ref.themeIntent,
|
|
17172
15333
|
theme = _ref.theme;
|
|
17173
15334
|
return {
|
|
@@ -17179,7 +15340,7 @@ var StyledView = index$2(ReactNative.View)(function (_ref) {
|
|
|
17179
15340
|
backgroundColor: theme.__hd__.tag.colors[BACKGROUND_INTENTS[themeIntent]]
|
|
17180
15341
|
};
|
|
17181
15342
|
});
|
|
17182
|
-
var StyledText = index$2(
|
|
15343
|
+
var StyledText = index$2(reactNative.Text)(function (_ref2) {
|
|
17183
15344
|
var themeIntent = _ref2.themeIntent,
|
|
17184
15345
|
theme = _ref2.theme;
|
|
17185
15346
|
return {
|
|
@@ -17192,7 +15353,7 @@ var StyledText = index$2(ReactNative.Text)(function (_ref2) {
|
|
|
17192
15353
|
};
|
|
17193
15354
|
});
|
|
17194
15355
|
|
|
17195
|
-
var _excluded
|
|
15356
|
+
var _excluded = ["content", "intent", "style", "testID"];
|
|
17196
15357
|
|
|
17197
15358
|
var Tag = function Tag(_ref) {
|
|
17198
15359
|
var content = _ref.content,
|
|
@@ -17200,9 +15361,9 @@ var Tag = function Tag(_ref) {
|
|
|
17200
15361
|
intent = _ref$intent === void 0 ? 'info' : _ref$intent,
|
|
17201
15362
|
style = _ref.style,
|
|
17202
15363
|
testID = _ref.testID,
|
|
17203
|
-
nativeProps = _objectWithoutProperties
|
|
15364
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded);
|
|
17204
15365
|
|
|
17205
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledView, _extends$
|
|
15366
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledView, _extends$1({}, nativeProps, {
|
|
17206
15367
|
themeIntent: intent,
|
|
17207
15368
|
style: style,
|
|
17208
15369
|
testID: testID
|
|
@@ -17211,71 +15372,6 @@ var Tag = function Tag(_ref) {
|
|
|
17211
15372
|
}, content));
|
|
17212
15373
|
};
|
|
17213
15374
|
|
|
17214
|
-
var Container = index$2(ReactNative.View)(function (_ref) {
|
|
17215
|
-
var theme = _ref.theme;
|
|
17216
|
-
return {
|
|
17217
|
-
position: 'relative',
|
|
17218
|
-
width: '100%',
|
|
17219
|
-
borderWidth: theme.__hd__.textInput.borderWidths.container,
|
|
17220
|
-
borderRadius: theme.__hd__.textInput.radii.container,
|
|
17221
|
-
padding: theme.__hd__.textInput.space.containerPadding,
|
|
17222
|
-
flexDirection: 'row',
|
|
17223
|
-
alignItems: 'center'
|
|
17224
|
-
};
|
|
17225
|
-
});
|
|
17226
|
-
var Label = index$2(Typography.Text)(function (_ref2) {
|
|
17227
|
-
var theme = _ref2.theme;
|
|
17228
|
-
return {
|
|
17229
|
-
position: 'absolute',
|
|
17230
|
-
left: theme.__hd__.textInput.space.labelLeft,
|
|
17231
|
-
top: theme.__hd__.textInput.space.labelTop,
|
|
17232
|
-
backgroundColor: theme.__hd__.textInput.colors.labelBackground,
|
|
17233
|
-
zIndex: 1,
|
|
17234
|
-
paddingHorizontal: theme.__hd__.textInput.space.labelHorizontalPadding
|
|
17235
|
-
};
|
|
17236
|
-
});
|
|
17237
|
-
var Prefix = index$2(Icon)(function (_ref3) {
|
|
17238
|
-
var theme = _ref3.theme;
|
|
17239
|
-
return {
|
|
17240
|
-
marginRight: theme.__hd__.textInput.space.prefixMarginRight
|
|
17241
|
-
};
|
|
17242
|
-
});
|
|
17243
|
-
var StyledTextInput = index$2(ReactNative.TextInput)(function (_ref4) {
|
|
17244
|
-
var theme = _ref4.theme;
|
|
17245
|
-
return {
|
|
17246
|
-
flex: 1,
|
|
17247
|
-
fontSize: theme.__hd__.textInput.fontSizes.text
|
|
17248
|
-
};
|
|
17249
|
-
});
|
|
17250
|
-
|
|
17251
|
-
var _excluded = ["label", "prefix", "style", "testID", "accessibilityLabelledBy"];
|
|
17252
|
-
|
|
17253
|
-
var TextInput = function TextInput(_ref) {
|
|
17254
|
-
var label = _ref.label,
|
|
17255
|
-
prefix = _ref.prefix,
|
|
17256
|
-
style = _ref.style,
|
|
17257
|
-
testID = _ref.testID,
|
|
17258
|
-
accessibilityLabelledBy = _ref.accessibilityLabelledBy,
|
|
17259
|
-
nativeProps = _objectWithoutProperties$1(_ref, _excluded);
|
|
17260
|
-
|
|
17261
|
-
return /*#__PURE__*/React__default["default"].createElement(Container, {
|
|
17262
|
-
style: style,
|
|
17263
|
-
testID: testID
|
|
17264
|
-
}, label && /*#__PURE__*/React__default["default"].createElement(Label, {
|
|
17265
|
-
nativeID: accessibilityLabelledBy,
|
|
17266
|
-
testID: "input-label",
|
|
17267
|
-
fontSize: "small"
|
|
17268
|
-
}, label), prefix && /*#__PURE__*/React__default["default"].createElement(Prefix, {
|
|
17269
|
-
testID: "input-prefix",
|
|
17270
|
-
icon: prefix,
|
|
17271
|
-
size: "xsmall"
|
|
17272
|
-
}), /*#__PURE__*/React__default["default"].createElement(StyledTextInput, _extends$3({
|
|
17273
|
-
testID: "text-input" // @ts-ignore
|
|
17274
|
-
,
|
|
17275
|
-
accessibilityLabelledBy: accessibilityLabelledBy
|
|
17276
|
-
}, nativeProps)));
|
|
17277
|
-
};
|
|
17278
|
-
|
|
17279
15375
|
exports.Alert = Alert;
|
|
17280
15376
|
exports.Avatar = Avatar;
|
|
17281
15377
|
exports.Badge = Badge$1;
|
|
@@ -17292,7 +15388,9 @@ exports.Icon = Icon;
|
|
|
17292
15388
|
exports.Progress = Progress;
|
|
17293
15389
|
exports.Radio = CompoundRadio;
|
|
17294
15390
|
exports.SectionHeading = SectionHeading;
|
|
15391
|
+
exports.Select = CompoundSelect;
|
|
17295
15392
|
exports.Spinner = Spinner;
|
|
15393
|
+
exports.Switch = Switch;
|
|
17296
15394
|
exports.Tabs = index;
|
|
17297
15395
|
exports.Tag = Tag;
|
|
17298
15396
|
exports.TextInput = TextInput;
|