@hero-design/rn 8.24.0-alpha.1 → 8.25.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 +9 -9
- package/.turbo/turbo-publish:npm.log +0 -9
- package/es/index.js +144 -166
- package/lib/index.js +144 -166
- package/package.json +5 -5
- package/src/components/Carousel/CardCarousel.tsx +23 -7
- package/src/components/Carousel/__tests__/CardCarousel.spec.tsx +177 -70
- package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +294 -1
- package/src/components/Error/StyledError.tsx +2 -0
- package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +8 -0
- package/src/components/RichTextEditor/RichTextEditor.tsx +3 -4
- package/src/components/Spinner/AnimatedSpinner.tsx +2 -2
- package/src/components/Success/__tests__/index.spec.tsx +6 -0
- package/src/components/Success/index.tsx +19 -0
- package/src/components/Tabs/{ScrollableTabsV2/SceneView.tsx → SceneView.tsx} +2 -2
- package/src/components/Tabs/ScrollableTabs.tsx +54 -48
- package/src/components/Tabs/{ScrollableTabsV2/__tests__ → __tests__}/SceneView.spec.tsx +3 -3
- package/src/components/Tabs/__tests__/ScrollableTabs.spec.tsx +86 -28
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +1687 -49
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +1213 -29
- package/src/components/Tabs/__tests__/index.spec.tsx +58 -14
- package/src/components/Tabs/index.tsx +108 -102
- package/src/components/Tabs/useIsFocused.tsx +19 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +4 -0
- package/src/theme/components/error.ts +6 -1
- package/types/components/Accordion/AccordionItem.d.ts +0 -0
- package/types/components/Accordion/StyledAccordion.d.ts +0 -0
- package/types/components/Accordion/index.d.ts +0 -0
- package/types/components/Alert/StyledAlert.d.ts +0 -0
- package/types/components/Alert/index.d.ts +0 -0
- package/types/components/Attachment/StyledAttachment.d.ts +0 -0
- package/types/components/Attachment/index.d.ts +0 -0
- package/types/components/Avatar/Avatar.d.ts +0 -0
- package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +0 -0
- package/types/components/Avatar/AvatarStack/index.d.ts +0 -0
- package/types/components/Avatar/AvatarStack/utils.d.ts +0 -0
- package/types/components/Avatar/StyledAvatar.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/index.d.ts +0 -0
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
- package/types/components/BottomNavigation/index.d.ts +0 -0
- package/types/components/BottomSheet/BottomSheetContext.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/ScrollView.d.ts +0 -0
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -0
- package/types/components/BottomSheet/index.d.ts +0 -0
- package/types/components/Box/StyledBox.d.ts +0 -0
- package/types/components/Box/config.d.ts +0 -0
- package/types/components/Box/index.d.ts +0 -0
- package/types/components/Box/types.d.ts +0 -0
- package/types/components/Button/Button.d.ts +0 -0
- package/types/components/Button/IconButton.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/index.d.ts +0 -0
- package/types/components/Button/StyledButton.d.ts +0 -0
- package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +0 -0
- package/types/components/Button/UtilityButton/index.d.ts +0 -0
- package/types/components/Button/index.d.ts +0 -0
- package/types/components/Calendar/CalendarRowItem.d.ts +0 -0
- package/types/components/Calendar/StyledCalendar.d.ts +0 -0
- package/types/components/Calendar/helpers.d.ts +0 -0
- package/types/components/Calendar/index.d.ts +0 -0
- package/types/components/Card/DataCard/StyledDataCard.d.ts +0 -0
- package/types/components/Card/DataCard/index.d.ts +0 -0
- package/types/components/Card/StyledCard.d.ts +0 -0
- package/types/components/Card/index.d.ts +0 -0
- package/types/components/Carousel/CardCarousel.d.ts +0 -0
- package/types/components/Carousel/CarouselItem.d.ts +0 -0
- package/types/components/Carousel/StyledCardCarousel.d.ts +0 -0
- package/types/components/Carousel/StyledCarousel.d.ts +0 -0
- package/types/components/Carousel/contants.d.ts +0 -0
- package/types/components/Carousel/index.d.ts +0 -0
- package/types/components/Carousel/types.d.ts +0 -0
- package/types/components/Checkbox/StyledCheckbox.d.ts +0 -0
- package/types/components/Checkbox/index.d.ts +0 -0
- package/types/components/Collapse/StyledCollapse.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/index.d.ts +0 -0
- package/types/components/DatePicker/DatePickerAndroid.d.ts +0 -0
- package/types/components/DatePicker/DatePickerCalendar.d.ts +0 -0
- package/types/components/DatePicker/DatePickerIOS.d.ts +0 -0
- package/types/components/DatePicker/StyledDatePicker.d.ts +0 -0
- package/types/components/DatePicker/index.d.ts +0 -0
- package/types/components/DatePicker/types.d.ts +0 -0
- package/types/components/Divider/StyledDivider.d.ts +0 -0
- package/types/components/Divider/index.d.ts +0 -0
- package/types/components/Drawer/DragableDrawer/helpers.d.ts +0 -0
- package/types/components/Drawer/DragableDrawer/index.d.ts +0 -0
- package/types/components/Drawer/StyledDrawer.d.ts +0 -0
- package/types/components/Drawer/index.d.ts +0 -0
- package/types/components/Empty/StyledEmpty.d.ts +0 -0
- package/types/components/Empty/index.d.ts +0 -0
- package/types/components/Error/StyledError.d.ts +0 -0
- package/types/components/Error/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/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/index.d.ts +0 -0
- package/types/components/Icon/AnimatedIcon.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/index.d.ts +0 -0
- package/types/components/Icon/utils.d.ts +0 -0
- package/types/components/Image/index.d.ts +0 -0
- package/types/components/List/BasicListItem.d.ts +0 -0
- package/types/components/List/ListItem.d.ts +0 -0
- package/types/components/List/StyledBasicListItem.d.ts +0 -0
- package/types/components/List/StyledListItem.d.ts +0 -0
- package/types/components/List/index.d.ts +0 -0
- package/types/components/PageControl/StyledPageControl.d.ts +0 -0
- package/types/components/PageControl/index.d.ts +0 -0
- package/types/components/PinInput/PinCell.d.ts +0 -0
- package/types/components/PinInput/StyledPinInput.d.ts +0 -0
- package/types/components/PinInput/index.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/constants.d.ts +0 -0
- package/types/components/Progress/index.d.ts +0 -0
- package/types/components/Progress/types.d.ts +0 -0
- package/types/components/Radio/Radio.d.ts +0 -0
- package/types/components/Radio/RadioGroup.d.ts +0 -0
- package/types/components/Radio/StyledRadio.d.ts +0 -0
- package/types/components/Radio/index.d.ts +0 -0
- package/types/components/Radio/types.d.ts +0 -0
- package/types/components/RefreshControl/index.d.ts +0 -0
- package/types/components/RichTextEditor/EditorEvent.d.ts +0 -0
- package/types/components/RichTextEditor/EditorToolbar.d.ts +0 -0
- package/types/components/RichTextEditor/MentionList.d.ts +0 -0
- package/types/components/RichTextEditor/RichTextEditor.d.ts +0 -0
- package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +0 -0
- package/types/components/RichTextEditor/StyledToolbar.d.ts +0 -0
- package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +0 -0
- package/types/components/RichTextEditor/constants.d.ts +0 -0
- package/types/components/RichTextEditor/heroEditorApp.d.ts +0 -0
- package/types/components/RichTextEditor/index.d.ts +0 -0
- package/types/components/RichTextEditor/types.d.ts +0 -0
- package/types/components/RichTextEditor/utils/events.d.ts +0 -0
- package/types/components/RichTextEditor/utils/rnWebView.d.ts +0 -0
- package/types/components/SectionHeading/StyledHeading.d.ts +0 -0
- package/types/components/SectionHeading/index.d.ts +0 -0
- package/types/components/Select/BaseOptionList.d.ts +0 -0
- package/types/components/Select/Footer.d.ts +0 -0
- package/types/components/Select/MultiSelect/Option.d.ts +0 -0
- package/types/components/Select/MultiSelect/OptionList.d.ts +0 -0
- package/types/components/Select/MultiSelect/index.d.ts +0 -0
- package/types/components/Select/SingleSelect/Option.d.ts +0 -0
- package/types/components/Select/SingleSelect/OptionList.d.ts +0 -0
- package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +0 -0
- package/types/components/Select/SingleSelect/index.d.ts +0 -0
- package/types/components/Select/StyledSelect.d.ts +0 -0
- package/types/components/Select/helpers.d.ts +0 -0
- package/types/components/Select/index.d.ts +0 -0
- package/types/components/Select/types.d.ts +0 -0
- package/types/components/Skeleton/StyledSkeleton.d.ts +0 -0
- package/types/components/Skeleton/index.d.ts +0 -0
- package/types/components/Slider/index.d.ts +0 -0
- package/types/components/Spinner/AnimatedSpinner.d.ts +0 -0
- package/types/components/Spinner/StyledSpinner.d.ts +0 -0
- package/types/components/Spinner/index.d.ts +0 -0
- package/types/components/Success/StyledSuccess.d.ts +0 -0
- package/types/components/Success/index.d.ts +8 -0
- package/types/components/Swipeable/StyledSwipeable.d.ts +0 -0
- package/types/components/Swipeable/SwipeableAction.d.ts +0 -0
- package/types/components/Swipeable/index.d.ts +0 -0
- package/types/components/Switch/SelectorSwitch/Option.d.ts +0 -0
- package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -0
- package/types/components/Switch/SelectorSwitch/index.d.ts +0 -0
- package/types/components/Switch/StyledSwitch.d.ts +0 -0
- package/types/components/Switch/index.d.ts +0 -0
- package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -0
- package/types/components/Tabs/SceneView.d.ts +4 -3
- package/types/components/Tabs/ScrollableTabs.d.ts +0 -0
- package/types/components/Tabs/ScrollableTabsHeader.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/TabWithBadge.d.ts +0 -0
- package/types/components/Tabs/index.d.ts +1 -3
- package/types/components/Tabs/useIsFocused.d.ts +6 -0
- package/types/components/Tabs/utils.d.ts +0 -0
- package/types/components/Tag/StyledTag.d.ts +0 -0
- package/types/components/Tag/index.d.ts +0 -0
- package/types/components/TextInput/StyledTextInput.d.ts +0 -0
- package/types/components/TextInput/index.d.ts +0 -0
- package/types/components/TimePicker/StyledTimePicker.d.ts +0 -0
- package/types/components/TimePicker/TimePickerAndroid.d.ts +0 -0
- package/types/components/TimePicker/TimePickerIOS.d.ts +0 -0
- package/types/components/TimePicker/index.d.ts +0 -0
- package/types/components/TimePicker/types.d.ts +0 -0
- package/types/components/Toast/StyledToast.d.ts +0 -0
- package/types/components/Toast/Toast.d.ts +0 -0
- package/types/components/Toast/ToastContainer.d.ts +0 -0
- package/types/components/Toast/ToastContext.d.ts +0 -0
- package/types/components/Toast/ToastProvider.d.ts +0 -0
- package/types/components/Toast/index.d.ts +0 -0
- package/types/components/Toast/types.d.ts +0 -0
- package/types/components/Toolbar/StyledToolbar.d.ts +0 -0
- package/types/components/Toolbar/ToolbarGroup.d.ts +0 -0
- package/types/components/Toolbar/ToolbarItem.d.ts +0 -0
- package/types/components/Toolbar/index.d.ts +0 -0
- package/types/components/Typography/Text/StyledText.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 +0 -0
- package/types/testHelpers/renderWithTheme.d.ts +0 -0
- package/types/theme/ThemeProvider.d.ts +0 -0
- package/types/theme/ThemeSwitcher.d.ts +0 -0
- package/types/theme/components/accordion.d.ts +0 -0
- package/types/theme/components/alert.d.ts +0 -0
- package/types/theme/components/attachment.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/calendar.d.ts +0 -0
- package/types/theme/components/card.d.ts +0 -0
- package/types/theme/components/cardCarousel.d.ts +0 -0
- package/types/theme/components/carousel.d.ts +0 -0
- package/types/theme/components/checkbox.d.ts +0 -0
- package/types/theme/components/contentNavigator.d.ts +0 -0
- package/types/theme/components/datePicker.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/empty.d.ts +0 -0
- package/types/theme/components/error.d.ts +4 -0
- package/types/theme/components/fab.d.ts +0 -0
- package/types/theme/components/icon.d.ts +0 -0
- package/types/theme/components/image.d.ts +0 -0
- package/types/theme/components/list.d.ts +0 -0
- package/types/theme/components/pageControl.d.ts +0 -0
- package/types/theme/components/pinInput.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/refreshControl.d.ts +0 -0
- package/types/theme/components/richTextEditor.d.ts +0 -0
- package/types/theme/components/sectionHeading.d.ts +0 -0
- package/types/theme/components/select.d.ts +0 -0
- package/types/theme/components/skeleton.d.ts +0 -0
- package/types/theme/components/slider.d.ts +0 -0
- package/types/theme/components/spinner.d.ts +0 -0
- package/types/theme/components/success.d.ts +0 -0
- package/types/theme/components/swipeable.d.ts +0 -0
- package/types/theme/components/switch.d.ts +0 -0
- package/types/theme/components/tabs.d.ts +0 -0
- package/types/theme/components/tag.d.ts +0 -0
- package/types/theme/components/textInput.d.ts +0 -0
- package/types/theme/components/timePicker.d.ts +0 -0
- package/types/theme/components/toast.d.ts +0 -0
- package/types/theme/components/toolbar.d.ts +0 -0
- package/types/theme/components/typography.d.ts +0 -0
- package/types/theme/getTheme.d.ts +0 -0
- package/types/theme/global/borders.d.ts +0 -0
- package/types/theme/global/colors/eBens.d.ts +0 -0
- package/types/theme/global/colors/global.d.ts +0 -0
- package/types/theme/global/colors/globalDark.d.ts +0 -0
- package/types/theme/global/colors/jobs.d.ts +0 -0
- package/types/theme/global/colors/swag.d.ts +0 -0
- package/types/theme/global/colors/swagDark.d.ts +0 -0
- package/types/theme/global/colors/types.d.ts +0 -0
- package/types/theme/global/colors/wallet.d.ts +0 -0
- package/types/theme/global/colors/work.d.ts +0 -0
- package/types/theme/global/index.d.ts +0 -0
- package/types/theme/global/scale.d.ts +0 -0
- package/types/theme/global/sizes.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 +0 -0
- package/types/types.d.ts +0 -0
- package/types/utils/functions.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/.turbo/turbo-build:types.log +0 -2
- package/.turbo/turbo-lint.log +0 -146
- package/.turbo/turbo-test.log +0 -451
- package/.turbo/turbo-type-check.log +0 -1
- package/src/components/Tabs/ScrollableTabsV2/ScrollableTabsV2.tsx +0 -120
- package/src/components/Tabs/ScrollableTabsV2/__tests__/ScrollableTabsV2.spec.tsx +0 -166
- package/src/components/Tabs/ScrollableTabsV2/__tests__/__snapshots__/ScrollableTabsV2.spec.tsx.snap +0 -2497
- package/src/components/Tabs/ScrollableTabsV2/index.tsx +0 -5
- package/types/components/Tabs/ScrollableTabsV2/SceneView.d.ts +0 -10
- package/types/components/Tabs/ScrollableTabsV2/ScrollableTabsV2.d.ts +0 -9
- package/types/components/Tabs/ScrollableTabsV2/index.d.ts +0 -4
- /package/src/components/Tabs/{ScrollableTabsV2/__tests__ → __tests__}/__snapshots__/SceneView.spec.tsx.snap +0 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
[
|
|
2
|
-
[
|
|
3
|
-
[
|
|
4
|
-
[
|
|
5
|
-
[
|
|
6
|
-
[
|
|
7
|
-
[
|
|
8
|
-
[
|
|
9
|
-
[
|
|
1
|
+
[33m@hero-design/rn:build[0m: cache hit, replaying output [2mb28cdc306082cd71[0m
|
|
2
|
+
[33m@hero-design/rn:build: [0m$ yarn build:js && yarn build:types
|
|
3
|
+
[33m@hero-design/rn:build: [0m$ rollup -c
|
|
4
|
+
[33m@hero-design/rn:build: [0m[36m
|
|
5
|
+
[33m@hero-design/rn:build: [0m[1msrc/index.ts[22m → [1mlib/index.js, es/index.js[22m...[39m
|
|
6
|
+
[33m@hero-design/rn:build: [0m[1m[33m(!) Plugin replace: @rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to `true`, as the next major version will default this option to `true`.[39m[22m
|
|
7
|
+
[33m@hero-design/rn:build: [0m[1m[33m(!) Plugin node-resolve: preferring built-in module 'events' over local alternative at '/root/hero-design/node_modules/events/events.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning[39m[22m
|
|
8
|
+
[33m@hero-design/rn:build: [0m[32mcreated [1mlib/index.js, es/index.js[22m in [1m27.2s[22m[39m
|
|
9
|
+
[33m@hero-design/rn:build: [0m$ tsc --noEmit false --emitDeclarationOnly --project tsconfig.prod.json
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
[36m@hero-design/rn:publish:npm[0m: cache hit, replaying output [2m507c34f3e0a508f6[0m
|
|
2
|
-
[36m@hero-design/rn:publish:npm: [0m$ yarn publish --access public
|
|
3
|
-
[36m@hero-design/rn:publish:npm: [0m[1/4] Bumping version...
|
|
4
|
-
[36m@hero-design/rn:publish:npm: [0minfo Current version: 8.12.0-rc.0
|
|
5
|
-
[36m@hero-design/rn:publish:npm: [0m[2/4] Logging in...
|
|
6
|
-
[36m@hero-design/rn:publish:npm: [0m[3/4] Publishing...
|
|
7
|
-
[36m@hero-design/rn:publish:npm: [0msuccess Published.
|
|
8
|
-
[36m@hero-design/rn:publish:npm: [0m[4/4] Revoking token...
|
|
9
|
-
[36m@hero-design/rn:publish:npm: [0minfo Not revoking login token, specified via config file.
|
package/es/index.js
CHANGED
|
@@ -981,9 +981,9 @@ var blue$1 = colorScales.blue,
|
|
|
981
981
|
purple$1 = colorScales.purple,
|
|
982
982
|
vermilion$3 = colorScales.vermilion,
|
|
983
983
|
smalt = colorScales.smalt,
|
|
984
|
-
violet$
|
|
984
|
+
violet$2 = colorScales.violet,
|
|
985
985
|
yellow$1 = colorScales.yellow;
|
|
986
|
-
|
|
986
|
+
var palette$b = {
|
|
987
987
|
black: '#000000',
|
|
988
988
|
white: '#ffffff',
|
|
989
989
|
blue: blue$1.base,
|
|
@@ -1058,21 +1058,38 @@ var blue$1 = colorScales.blue,
|
|
|
1058
1058
|
smaltLight45: smalt.lighten45,
|
|
1059
1059
|
smaltLight75: smalt.lighten75,
|
|
1060
1060
|
smaltLight90: smalt.lighten90,
|
|
1061
|
-
violet: violet$
|
|
1062
|
-
violetDark15: violet$
|
|
1063
|
-
violetDark30: violet$
|
|
1064
|
-
violetDark45: violet$
|
|
1065
|
-
violetDark60: violet$
|
|
1066
|
-
violetDark75: violet$
|
|
1067
|
-
violetLight30: violet$
|
|
1068
|
-
violetLight60: violet$
|
|
1069
|
-
violetLight75: violet$
|
|
1070
|
-
violetLight90: violet$
|
|
1061
|
+
violet: violet$2.base,
|
|
1062
|
+
violetDark15: violet$2.darken15,
|
|
1063
|
+
violetDark30: violet$2.darken30,
|
|
1064
|
+
violetDark45: violet$2.darken45,
|
|
1065
|
+
violetDark60: violet$2.darken60,
|
|
1066
|
+
violetDark75: violet$2.darken75,
|
|
1067
|
+
violetLight30: violet$2.lighten30,
|
|
1068
|
+
violetLight60: violet$2.lighten60,
|
|
1069
|
+
violetLight75: violet$2.lighten75,
|
|
1070
|
+
violetLight90: violet$2.lighten90,
|
|
1071
1071
|
yellow: yellow$1.base,
|
|
1072
1072
|
yellowDark15: yellow$1.darken15,
|
|
1073
1073
|
yellowDark75: yellow$1.darken75,
|
|
1074
1074
|
yellowLight60: yellow$1.lighten60,
|
|
1075
1075
|
yellowLight90: yellow$1.lighten90
|
|
1076
|
+
};
|
|
1077
|
+
var mauve$4 = colorScales.mauve,
|
|
1078
|
+
violet$1 = colorScales.violet;
|
|
1079
|
+
Object.assign(Object.assign({}, palette$b), {
|
|
1080
|
+
mauve: mauve$4.base,
|
|
1081
|
+
mauveLight80: mauve$4.lighten80,
|
|
1082
|
+
violetDark50: violet$1.darken50
|
|
1083
|
+
});
|
|
1084
|
+
var apple$4 = colorScales.apple,
|
|
1085
|
+
hitPink$1 = colorScales.hitPink;
|
|
1086
|
+
Object.assign(Object.assign({}, palette$b), {
|
|
1087
|
+
apple: apple$4.base,
|
|
1088
|
+
appleDark20: apple$4.darken20,
|
|
1089
|
+
appleDark50: apple$4.darken50,
|
|
1090
|
+
appleLight90: apple$4.lighten90,
|
|
1091
|
+
hitPink: hitPink$1.base,
|
|
1092
|
+
hitPinkLight80: hitPink$1.lighten80
|
|
1076
1093
|
});
|
|
1077
1094
|
var aliceBlue$1 = colorScales.aliceBlue,
|
|
1078
1095
|
antiFlashWhite$1 = colorScales.antiFlashWhite,
|
|
@@ -1239,7 +1256,7 @@ var currant$1 = colorScales.currant,
|
|
|
1239
1256
|
vermilion = colorScales.vermilion,
|
|
1240
1257
|
mauve$3 = colorScales.mauve,
|
|
1241
1258
|
violet1$3 = colorScales.violet1,
|
|
1242
|
-
violet$
|
|
1259
|
+
violet$3 = colorScales.violet,
|
|
1243
1260
|
scarletGum$2 = colorScales.scarletGum;
|
|
1244
1261
|
var palette$6 = {
|
|
1245
1262
|
currant: currant$1.base,
|
|
@@ -1258,9 +1275,9 @@ var palette$6 = {
|
|
|
1258
1275
|
pastelRed: pastelRed.base,
|
|
1259
1276
|
vermilion: vermilion.base,
|
|
1260
1277
|
mauve: mauve$3.base,
|
|
1261
|
-
violetLight30: violet$
|
|
1278
|
+
violetLight30: violet$3.lighten30,
|
|
1262
1279
|
violet1: violet1$3.base,
|
|
1263
|
-
violet: violet$
|
|
1280
|
+
violet: violet$3.base,
|
|
1264
1281
|
scarletGum: scarletGum$2.base
|
|
1265
1282
|
};
|
|
1266
1283
|
var violet1$2 = colorScales.violet1,
|
|
@@ -2240,12 +2257,17 @@ var getErrorTheme = function getErrorTheme(theme) {
|
|
|
2240
2257
|
title: theme.fonts.playful.semiBold,
|
|
2241
2258
|
description: theme.fonts.playful.regular
|
|
2242
2259
|
};
|
|
2260
|
+
var lineHeight = {
|
|
2261
|
+
title: theme.lineHeights.xxxlarge,
|
|
2262
|
+
description: theme.lineHeights.xlarge
|
|
2263
|
+
};
|
|
2243
2264
|
return {
|
|
2244
2265
|
fontSizes: fontSizes,
|
|
2245
2266
|
colors: colors,
|
|
2246
2267
|
sizes: sizes,
|
|
2247
2268
|
space: space,
|
|
2248
|
-
fonts: fonts
|
|
2269
|
+
fonts: fonts,
|
|
2270
|
+
lineHeight: lineHeight
|
|
2249
2271
|
};
|
|
2250
2272
|
};
|
|
2251
2273
|
|
|
@@ -11289,6 +11311,7 @@ var CardCarousel = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
11289
11311
|
setFlatListWidth = _useState4[1];
|
|
11290
11312
|
var itemWidth = flatListWidth * ITEM_WIDTH_RATE;
|
|
11291
11313
|
var carouselRef = useRef(null);
|
|
11314
|
+
var viewPosition = Platform.OS === 'ios' ? VIEW_POSITION_CENTER : undefined;
|
|
11292
11315
|
var _snapToIndex = useCallback(function (index) {
|
|
11293
11316
|
var _carouselRef$current;
|
|
11294
11317
|
var validIndex = 0;
|
|
@@ -11302,7 +11325,7 @@ var CardCarousel = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
11302
11325
|
(_carouselRef$current = carouselRef.current) === null || _carouselRef$current === void 0 ? void 0 : _carouselRef$current.scrollToIndex({
|
|
11303
11326
|
index: validIndex,
|
|
11304
11327
|
animated: true,
|
|
11305
|
-
viewPosition:
|
|
11328
|
+
viewPosition: viewPosition
|
|
11306
11329
|
});
|
|
11307
11330
|
}, [carouselRef, itemWidth]);
|
|
11308
11331
|
/*
|
|
@@ -11317,7 +11340,7 @@ var CardCarousel = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
11317
11340
|
(_carouselRef$current2 = carouselRef.current) === null || _carouselRef$current2 === void 0 ? void 0 : _carouselRef$current2.scrollToIndex({
|
|
11318
11341
|
index: nextIndex,
|
|
11319
11342
|
animated: true,
|
|
11320
|
-
viewPosition:
|
|
11343
|
+
viewPosition: viewPosition
|
|
11321
11344
|
});
|
|
11322
11345
|
}, [carouselRef, currentIndex, itemWidth, items.length]);
|
|
11323
11346
|
React.useImperativeHandle(ref, function () {
|
|
@@ -11372,16 +11395,31 @@ var CardCarousel = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
11372
11395
|
}
|
|
11373
11396
|
}, /*#__PURE__*/React.createElement(StyledShadow, null, /*#__PURE__*/React.createElement(StyledCard, null, item)));
|
|
11374
11397
|
}, [itemWidth]);
|
|
11398
|
+
var contentContainerPaddingHorizontal = theme.__hd__.cardCarousel.space.contentContainerPaddingHorizontal;
|
|
11375
11399
|
return /*#__PURE__*/React.createElement(StyledWrapper$7, {
|
|
11376
11400
|
style: style,
|
|
11377
11401
|
testID: testID
|
|
11378
11402
|
}, /*#__PURE__*/React.createElement(FlatList, {
|
|
11379
11403
|
contentInset: {
|
|
11380
11404
|
top: 0,
|
|
11381
|
-
left:
|
|
11405
|
+
left: contentContainerPaddingHorizontal,
|
|
11382
11406
|
bottom: 0,
|
|
11383
|
-
right:
|
|
11407
|
+
right: contentContainerPaddingHorizontal
|
|
11384
11408
|
},
|
|
11409
|
+
ListHeaderComponent: Platform.select({
|
|
11410
|
+
android: /*#__PURE__*/React.createElement(View, {
|
|
11411
|
+
style: {
|
|
11412
|
+
width: contentContainerPaddingHorizontal
|
|
11413
|
+
}
|
|
11414
|
+
})
|
|
11415
|
+
}),
|
|
11416
|
+
ListFooterComponent: Platform.select({
|
|
11417
|
+
android: /*#__PURE__*/React.createElement(View, {
|
|
11418
|
+
style: {
|
|
11419
|
+
width: contentContainerPaddingHorizontal
|
|
11420
|
+
}
|
|
11421
|
+
})
|
|
11422
|
+
}),
|
|
11385
11423
|
onLayout: flatListOnLayout,
|
|
11386
11424
|
data: items,
|
|
11387
11425
|
horizontal: true,
|
|
@@ -11398,7 +11436,9 @@ var CardCarousel = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
11398
11436
|
},
|
|
11399
11437
|
decelerationRate: "fast",
|
|
11400
11438
|
renderToHardwareTextureAndroid: true,
|
|
11401
|
-
snapToInterval:
|
|
11439
|
+
snapToInterval: Platform.select({
|
|
11440
|
+
ios: itemWidth
|
|
11441
|
+
}),
|
|
11402
11442
|
onViewableItemsChanged: visibleSlideChanged,
|
|
11403
11443
|
viewabilityConfig: {
|
|
11404
11444
|
itemVisiblePercentThreshold: 80
|
|
@@ -12667,7 +12707,8 @@ var StyledErrorTitle = index$a(Typography.Text)(function (_ref8) {
|
|
|
12667
12707
|
fontSize: theme.__hd__.error.fontSizes.title,
|
|
12668
12708
|
textAlign: 'center',
|
|
12669
12709
|
marginBottom: theme.__hd__.error.space.titleMarginBottom,
|
|
12670
|
-
color: theme.__hd__.error.colors.title
|
|
12710
|
+
color: theme.__hd__.error.colors.title,
|
|
12711
|
+
lineHeight: theme.__hd__.error.lineHeight.title
|
|
12671
12712
|
};
|
|
12672
12713
|
});
|
|
12673
12714
|
var StyledErrorDescription = index$a(Typography.Text)(function (_ref9) {
|
|
@@ -12676,7 +12717,8 @@ var StyledErrorDescription = index$a(Typography.Text)(function (_ref9) {
|
|
|
12676
12717
|
fontFamily: theme.__hd__.error.fonts.description,
|
|
12677
12718
|
fontSize: theme.__hd__.error.fontSizes.description,
|
|
12678
12719
|
textAlign: 'center',
|
|
12679
|
-
color: theme.__hd__.error.colors.description
|
|
12720
|
+
color: theme.__hd__.error.colors.description,
|
|
12721
|
+
lineHeight: theme.__hd__.error.lineHeight.description
|
|
12680
12722
|
};
|
|
12681
12723
|
});
|
|
12682
12724
|
|
|
@@ -13901,7 +13943,7 @@ var AnimatedSpinner = function AnimatedSpinner(_ref) {
|
|
|
13901
13943
|
toValue: 1,
|
|
13902
13944
|
duration: 1200,
|
|
13903
13945
|
easing: Easing.linear,
|
|
13904
|
-
useNativeDriver:
|
|
13946
|
+
useNativeDriver: Platform.OS !== 'web'
|
|
13905
13947
|
}));
|
|
13906
13948
|
animation.start();
|
|
13907
13949
|
return function () {
|
|
@@ -14938,7 +14980,7 @@ var StyledSuccessModal = index$a(Modal)({
|
|
|
14938
14980
|
width: '100%'
|
|
14939
14981
|
});
|
|
14940
14982
|
|
|
14941
|
-
var _excluded$2 = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress"];
|
|
14983
|
+
var _excluded$2 = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
|
|
14942
14984
|
var renderImage = function renderImage(image) {
|
|
14943
14985
|
if ( /*#__PURE__*/isValidElement(image)) {
|
|
14944
14986
|
return /*#__PURE__*/React.cloneElement(image, {
|
|
@@ -14962,13 +15004,20 @@ var SuccessPage = function SuccessPage(_ref) {
|
|
|
14962
15004
|
ctaText = _ref.ctaText,
|
|
14963
15005
|
_ref$onCtaPress = _ref.onCtaPress,
|
|
14964
15006
|
onCtaPress = _ref$onCtaPress === void 0 ? noop$1 : _ref$onCtaPress,
|
|
15007
|
+
secondaryCtaText = _ref.secondaryCtaText,
|
|
15008
|
+
onSecondaryCtaPress = _ref.onSecondaryCtaPress,
|
|
14965
15009
|
nativeProps = _objectWithoutProperties(_ref, _excluded$2);
|
|
15010
|
+
var showSecondaryButton = secondaryCtaText && onSecondaryCtaPress;
|
|
14966
15011
|
return /*#__PURE__*/React.createElement(StyledSuccessContainer, _extends$1({
|
|
14967
15012
|
testID: testID,
|
|
14968
15013
|
themeVariant: variant
|
|
14969
15014
|
}, nativeProps), /*#__PURE__*/React.createElement(StyledSuccessContent, null, !!image && /*#__PURE__*/React.createElement(StyledSuccessImageContainer, null, renderImage(image)), /*#__PURE__*/React.createElement(StyledSuccessTitle, null, title), !!description && /*#__PURE__*/React.createElement(StyledSuccessDescription, null, description)), !!ctaText && /*#__PURE__*/React.createElement(StyledSuccessButtonContainer, null, /*#__PURE__*/React.createElement(StyledSuccessButtonPrimary, {
|
|
14970
15015
|
text: ctaText,
|
|
14971
15016
|
onPress: onCtaPress
|
|
15017
|
+
}), !!showSecondaryButton && /*#__PURE__*/React.createElement(StyledSuccessButtonPrimary, {
|
|
15018
|
+
variant: "text",
|
|
15019
|
+
text: secondaryCtaText,
|
|
15020
|
+
onPress: onSecondaryCtaPress
|
|
14972
15021
|
})));
|
|
14973
15022
|
};
|
|
14974
15023
|
/**
|
|
@@ -15183,7 +15232,7 @@ var HeaderTabItem$1 = index$a(View)(function (_ref2) {
|
|
|
15183
15232
|
var ContentWrapper$1 = index$a(AnimatedPagerView)({
|
|
15184
15233
|
flex: 1
|
|
15185
15234
|
});
|
|
15186
|
-
|
|
15235
|
+
index$a(View)({
|
|
15187
15236
|
flex: 1
|
|
15188
15237
|
});
|
|
15189
15238
|
var StyledIndicator = index$a(Animated.View)(function (_ref3) {
|
|
@@ -15272,6 +15321,48 @@ var HeaderTabItemWrapper = index$a(View)(function (_ref5) {
|
|
|
15272
15321
|
};
|
|
15273
15322
|
});
|
|
15274
15323
|
|
|
15324
|
+
var SceneView = function SceneView(_ref) {
|
|
15325
|
+
var _ref$lazy = _ref.lazy,
|
|
15326
|
+
lazy = _ref$lazy === void 0 ? false : _ref$lazy,
|
|
15327
|
+
_ref$lazyPreloadDista = _ref.lazyPreloadDistance,
|
|
15328
|
+
lazyPreloadDistance = _ref$lazyPreloadDista === void 0 ? 1 : _ref$lazyPreloadDista,
|
|
15329
|
+
children = _ref.children,
|
|
15330
|
+
index = _ref.index,
|
|
15331
|
+
selectedIndex = _ref.selectedIndex,
|
|
15332
|
+
testID = _ref.testID;
|
|
15333
|
+
var _React$useState = React.useState(Math.abs(selectedIndex - index) > lazyPreloadDistance),
|
|
15334
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
15335
|
+
isLoading = _React$useState2[0],
|
|
15336
|
+
setIsLoading = _React$useState2[1];
|
|
15337
|
+
var focused = index === selectedIndex;
|
|
15338
|
+
if (isLoading && Math.abs(selectedIndex - index) <= lazyPreloadDistance) {
|
|
15339
|
+
// Always render the route when it becomes focused
|
|
15340
|
+
setIsLoading(false);
|
|
15341
|
+
}
|
|
15342
|
+
React.useEffect(function () {
|
|
15343
|
+
var timer;
|
|
15344
|
+
if (!lazy && isLoading) {
|
|
15345
|
+
// If lazy mode is not enabled, render the scene with a delay if not loaded already
|
|
15346
|
+
// This improves the initial startup time as the scene is no longer blocking
|
|
15347
|
+
timer = setTimeout(function () {
|
|
15348
|
+
return setIsLoading(false);
|
|
15349
|
+
}, 0);
|
|
15350
|
+
}
|
|
15351
|
+
return function () {
|
|
15352
|
+
clearTimeout(timer);
|
|
15353
|
+
};
|
|
15354
|
+
}, [index, isLoading, lazy, focused]);
|
|
15355
|
+
return /*#__PURE__*/React.createElement(TabScreen, {
|
|
15356
|
+
accessibilityElementsHidden: !focused,
|
|
15357
|
+
importantForAccessibility: focused ? 'auto' : 'no-hide-descendants',
|
|
15358
|
+
style: [{
|
|
15359
|
+
flex: 1,
|
|
15360
|
+
overflow: 'hidden'
|
|
15361
|
+
}, focused ? StyleSheet$1.absoluteFill : null],
|
|
15362
|
+
testID: testID
|
|
15363
|
+
}, focused || !isLoading ? children : null);
|
|
15364
|
+
};
|
|
15365
|
+
|
|
15275
15366
|
var useAnimatedValueArray = function useAnimatedValueArray(initialValues) {
|
|
15276
15367
|
var refs = React.useRef([]);
|
|
15277
15368
|
refs.current.length = initialValues.length;
|
|
@@ -15442,121 +15533,6 @@ var ScrollableTabHeader = function ScrollableTabHeader(_ref2) {
|
|
|
15442
15533
|
}));
|
|
15443
15534
|
};
|
|
15444
15535
|
|
|
15445
|
-
var ScrollableTab$1 = function ScrollableTab(_ref) {
|
|
15446
|
-
var onTabPress = _ref.onTabPress,
|
|
15447
|
-
selectedTabKey = _ref.selectedTabKey,
|
|
15448
|
-
tabs = _ref.tabs,
|
|
15449
|
-
containerStyle = _ref.containerStyle,
|
|
15450
|
-
barStyle = _ref.barStyle,
|
|
15451
|
-
_ref$lazy = _ref.lazy,
|
|
15452
|
-
lazy = _ref$lazy === void 0 ? false : _ref$lazy,
|
|
15453
|
-
_ref$lazyPreloadDista = _ref.lazyPreloadDistance,
|
|
15454
|
-
lazyPreloadDistance = _ref$lazyPreloadDista === void 0 ? 1 : _ref$lazyPreloadDista,
|
|
15455
|
-
_ref$swipeEnabled = _ref.swipeEnabled,
|
|
15456
|
-
swipeEnabled = _ref$swipeEnabled === void 0 ? true : _ref$swipeEnabled,
|
|
15457
|
-
componentTestID = _ref.testID;
|
|
15458
|
-
var pagerViewRef = React.useRef(null);
|
|
15459
|
-
var insets = useSafeAreaInsets();
|
|
15460
|
-
var selectedTabIndex = tabs.findIndex(function (item) {
|
|
15461
|
-
return item.key === selectedTabKey;
|
|
15462
|
-
});
|
|
15463
|
-
React.useEffect(function () {
|
|
15464
|
-
var timeoutHandle = null;
|
|
15465
|
-
if (selectedTabIndex !== -1) {
|
|
15466
|
-
// If the selected tab is changed too quickly, the setPage is crashed and not work anymore
|
|
15467
|
-
// We apply throttle to prevent this issue https://github.com/Thinkei/hero-design/issues/1715
|
|
15468
|
-
timeoutHandle = setTimeout(function () {
|
|
15469
|
-
var _pagerViewRef$current;
|
|
15470
|
-
// use no animation to prevent unexpected behavior if users select tab too quickly
|
|
15471
|
-
(_pagerViewRef$current = pagerViewRef.current) === null || _pagerViewRef$current === void 0 ? void 0 : _pagerViewRef$current.setPageWithoutAnimation(selectedTabIndex);
|
|
15472
|
-
}, 200);
|
|
15473
|
-
}
|
|
15474
|
-
return function () {
|
|
15475
|
-
if (timeoutHandle) {
|
|
15476
|
-
clearTimeout(timeoutHandle);
|
|
15477
|
-
}
|
|
15478
|
-
};
|
|
15479
|
-
}, [selectedTabIndex, pagerViewRef]);
|
|
15480
|
-
return /*#__PURE__*/React.createElement(TabContainer, {
|
|
15481
|
-
style: containerStyle,
|
|
15482
|
-
testID: componentTestID
|
|
15483
|
-
}, /*#__PURE__*/React.createElement(ScrollableTabHeader, {
|
|
15484
|
-
tabs: tabs,
|
|
15485
|
-
selectedIndex: selectedTabIndex,
|
|
15486
|
-
onTabPress: onTabPress,
|
|
15487
|
-
barStyle: barStyle,
|
|
15488
|
-
insets: insets,
|
|
15489
|
-
testID: componentTestID ? "".concat(componentTestID, "-tab-bar") : undefined
|
|
15490
|
-
}), /*#__PURE__*/React.createElement(ContentWrapper, {
|
|
15491
|
-
initialPage: selectedTabIndex,
|
|
15492
|
-
ref: pagerViewRef,
|
|
15493
|
-
onPageSelected: function onPageSelected(e) {
|
|
15494
|
-
var index = e.nativeEvent.position;
|
|
15495
|
-
var selectedItem = tabs[index];
|
|
15496
|
-
if (selectedItem) {
|
|
15497
|
-
onTabPress(selectedItem.key);
|
|
15498
|
-
}
|
|
15499
|
-
},
|
|
15500
|
-
scrollEnabled: swipeEnabled
|
|
15501
|
-
}, tabs.map(function (tab, index) {
|
|
15502
|
-
var key = tab.key,
|
|
15503
|
-
component = tab.component,
|
|
15504
|
-
testID = tab.testID;
|
|
15505
|
-
var active = selectedTabKey === key;
|
|
15506
|
-
var isLazyScreen = lazy && Math.abs(selectedTabIndex - index) > lazyPreloadDistance;
|
|
15507
|
-
return /*#__PURE__*/React.createElement(TabScreen, {
|
|
15508
|
-
key: key,
|
|
15509
|
-
testID: testID ? "tab-screen-".concat(testID) : undefined,
|
|
15510
|
-
pointerEvents: active ? 'auto' : 'none',
|
|
15511
|
-
accessibilityElementsHidden: !active,
|
|
15512
|
-
importantForAccessibility: active ? 'auto' : 'no-hide-descendants',
|
|
15513
|
-
collapsable: false
|
|
15514
|
-
}, isLazyScreen ? null : component);
|
|
15515
|
-
})));
|
|
15516
|
-
};
|
|
15517
|
-
|
|
15518
|
-
var SceneView = function SceneView(_ref) {
|
|
15519
|
-
var _ref$lazy = _ref.lazy,
|
|
15520
|
-
lazy = _ref$lazy === void 0 ? false : _ref$lazy,
|
|
15521
|
-
_ref$lazyPreloadDista = _ref.lazyPreloadDistance,
|
|
15522
|
-
lazyPreloadDistance = _ref$lazyPreloadDista === void 0 ? 1 : _ref$lazyPreloadDista,
|
|
15523
|
-
children = _ref.children,
|
|
15524
|
-
index = _ref.index,
|
|
15525
|
-
selectedIndex = _ref.selectedIndex,
|
|
15526
|
-
testID = _ref.testID;
|
|
15527
|
-
var _React$useState = React.useState(Math.abs(selectedIndex - index) > lazyPreloadDistance),
|
|
15528
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
15529
|
-
isLoading = _React$useState2[0],
|
|
15530
|
-
setIsLoading = _React$useState2[1];
|
|
15531
|
-
var focused = index === selectedIndex;
|
|
15532
|
-
if (isLoading && Math.abs(selectedIndex - index) <= lazyPreloadDistance) {
|
|
15533
|
-
// Always render the route when it becomes focused
|
|
15534
|
-
setIsLoading(false);
|
|
15535
|
-
}
|
|
15536
|
-
React.useEffect(function () {
|
|
15537
|
-
var timer;
|
|
15538
|
-
if (!lazy && isLoading) {
|
|
15539
|
-
// If lazy mode is not enabled, render the scene with a delay if not loaded already
|
|
15540
|
-
// This improves the initial startup time as the scene is no longer blocking
|
|
15541
|
-
timer = setTimeout(function () {
|
|
15542
|
-
return setIsLoading(false);
|
|
15543
|
-
}, 0);
|
|
15544
|
-
}
|
|
15545
|
-
return function () {
|
|
15546
|
-
clearTimeout(timer);
|
|
15547
|
-
};
|
|
15548
|
-
}, [index, isLoading, lazy, focused]);
|
|
15549
|
-
return /*#__PURE__*/React.createElement(TabScreen, {
|
|
15550
|
-
accessibilityElementsHidden: !focused,
|
|
15551
|
-
importantForAccessibility: focused ? 'auto' : 'no-hide-descendants',
|
|
15552
|
-
style: [{
|
|
15553
|
-
flex: 1,
|
|
15554
|
-
overflow: 'hidden'
|
|
15555
|
-
}, focused ? StyleSheet$1.absoluteFill : null],
|
|
15556
|
-
testID: testID
|
|
15557
|
-
}, focused || !isLoading ? children : null);
|
|
15558
|
-
};
|
|
15559
|
-
|
|
15560
15536
|
var TabContext = /*#__PURE__*/React.createContext(null);
|
|
15561
15537
|
var ScreenContext = /*#__PURE__*/React.createContext(null);
|
|
15562
15538
|
var useIsFocused = function useIsFocused() {
|
|
@@ -15568,6 +15544,7 @@ var useIsFocused = function useIsFocused() {
|
|
|
15568
15544
|
var isFocused = context.selectedTabKey === key;
|
|
15569
15545
|
return isFocused;
|
|
15570
15546
|
};
|
|
15547
|
+
|
|
15571
15548
|
var ScrollableTab = function ScrollableTab(_ref) {
|
|
15572
15549
|
var onTabPress = _ref.onTabPress,
|
|
15573
15550
|
selectedTabKey = _ref.selectedTabKey,
|
|
@@ -15603,7 +15580,6 @@ var ScrollableTab = function ScrollableTab(_ref) {
|
|
|
15603
15580
|
}
|
|
15604
15581
|
};
|
|
15605
15582
|
}, [selectedTabIndex, pagerViewRef]);
|
|
15606
|
-
var indexRef = React.useRef(selectedTabIndex);
|
|
15607
15583
|
var tabContextProviderValue = React.useMemo(function () {
|
|
15608
15584
|
return {
|
|
15609
15585
|
selectedTabKey: selectedTabKey
|
|
@@ -15632,7 +15608,6 @@ var ScrollableTab = function ScrollableTab(_ref) {
|
|
|
15632
15608
|
onTabPress(selectedItem.key);
|
|
15633
15609
|
});
|
|
15634
15610
|
}
|
|
15635
|
-
indexRef.current = index;
|
|
15636
15611
|
},
|
|
15637
15612
|
scrollEnabled: swipeEnabled
|
|
15638
15613
|
}, tabs.map(function (tab, index) {
|
|
@@ -15640,22 +15615,18 @@ var ScrollableTab = function ScrollableTab(_ref) {
|
|
|
15640
15615
|
component = tab.component,
|
|
15641
15616
|
testID = tab.testID;
|
|
15642
15617
|
return /*#__PURE__*/React.createElement(ScreenContext.Provider, {
|
|
15643
|
-
value: key
|
|
15618
|
+
value: key,
|
|
15619
|
+
key: key
|
|
15644
15620
|
}, /*#__PURE__*/React.createElement(SceneView, {
|
|
15645
15621
|
testID: testID,
|
|
15646
|
-
key: key,
|
|
15647
15622
|
index: index,
|
|
15648
|
-
selectedIndex:
|
|
15623
|
+
selectedIndex: selectedTabIndex,
|
|
15649
15624
|
lazy: lazy,
|
|
15650
15625
|
lazyPreloadDistance: lazyPreloadDistance
|
|
15651
15626
|
}, component));
|
|
15652
15627
|
}))));
|
|
15653
15628
|
};
|
|
15654
15629
|
|
|
15655
|
-
var ScrollableTabsV2 = Object.assign(ScrollableTab, {
|
|
15656
|
-
useIsFocused: useIsFocused
|
|
15657
|
-
});
|
|
15658
|
-
|
|
15659
15630
|
var getTabItem = function getTabItem(_ref) {
|
|
15660
15631
|
var item = _ref.item,
|
|
15661
15632
|
color = _ref.color,
|
|
@@ -15704,7 +15675,14 @@ var Tabs = function Tabs(_ref2) {
|
|
|
15704
15675
|
(_pagerViewRef$current = pagerViewRef.current) === null || _pagerViewRef$current === void 0 ? void 0 : _pagerViewRef$current.setPage(selectedTabIndex);
|
|
15705
15676
|
}
|
|
15706
15677
|
}, [selectedTabIndex]);
|
|
15707
|
-
|
|
15678
|
+
var tabContextProviderValue = React.useMemo(function () {
|
|
15679
|
+
return {
|
|
15680
|
+
selectedTabKey: selectedTabKey
|
|
15681
|
+
};
|
|
15682
|
+
}, [selectedTabKey]);
|
|
15683
|
+
return /*#__PURE__*/React.createElement(TabContext.Provider, {
|
|
15684
|
+
value: tabContextProviderValue
|
|
15685
|
+
}, /*#__PURE__*/React.createElement(TabContainer$1, {
|
|
15708
15686
|
style: containerStyle,
|
|
15709
15687
|
testID: componentTestID
|
|
15710
15688
|
}, /*#__PURE__*/React.createElement(HeaderTabWrapper$1, {
|
|
@@ -15769,21 +15747,22 @@ var Tabs = function Tabs(_ref2) {
|
|
|
15769
15747
|
var key = tab.key,
|
|
15770
15748
|
component = tab.component,
|
|
15771
15749
|
testID = tab.testID;
|
|
15772
|
-
|
|
15773
|
-
|
|
15774
|
-
|
|
15750
|
+
return /*#__PURE__*/React.createElement(ScreenContext.Provider, {
|
|
15751
|
+
value: key,
|
|
15752
|
+
key: key
|
|
15753
|
+
}, /*#__PURE__*/React.createElement(SceneView, {
|
|
15754
|
+
testID: testID,
|
|
15775
15755
|
key: key,
|
|
15776
|
-
|
|
15777
|
-
|
|
15778
|
-
|
|
15779
|
-
|
|
15780
|
-
|
|
15781
|
-
|
|
15782
|
-
})));
|
|
15756
|
+
index: index,
|
|
15757
|
+
selectedIndex: selectedTabIndex,
|
|
15758
|
+
lazy: lazy,
|
|
15759
|
+
lazyPreloadDistance: lazyPreloadDistance
|
|
15760
|
+
}, component));
|
|
15761
|
+
}))));
|
|
15783
15762
|
};
|
|
15784
15763
|
var index$2 = Object.assign(Tabs, {
|
|
15785
|
-
Scroll: ScrollableTab
|
|
15786
|
-
|
|
15764
|
+
Scroll: ScrollableTab,
|
|
15765
|
+
useIsFocused: useIsFocused
|
|
15787
15766
|
});
|
|
15788
15767
|
|
|
15789
15768
|
var getFilledStyles = function getFilledStyles(themeIntent, theme) {
|
|
@@ -32672,11 +32651,10 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
32672
32651
|
return "\n <!DOCTYPE html>\n <html>\n <head>\n <meta charset=\"utf-8\">\n <meta name=\"viewport\" content=\"width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0\">\n <style>\n body {\n margin: 0;\n }\n </style>\n </head>\n <body>\n <div id=\"root\"></div>\n <script>\n window.__editorConfigs = {\n placeholder: \"".concat(placeholder, "\",\n initialValue: ").concat(initialValueString, ",\n isAndroid: ").concat(isAndroid ? 'true' : 'false', ",\n autoFocus: ").concat(autoFocus, ",\n style: {\n padding: '0 !important',\n fontSize: ").concat(theme.__hd__.richTextEditor.fontSizes.editor, ",\n color: '").concat(theme.__hd__.richTextEditor.colors.text, "'\n }\n };\n ").concat(heroEditorApp, "\n </script>\n </body>\n </html>\n ");
|
|
32673
32652
|
}, []);
|
|
32674
32653
|
var requestBlur = useCallback(function () {
|
|
32675
|
-
if (webview.current) {
|
|
32654
|
+
if (webview.current && isFocused) {
|
|
32676
32655
|
requestBlurEditor(webview.current);
|
|
32677
|
-
Keyboard.dismiss();
|
|
32678
32656
|
}
|
|
32679
|
-
}, []);
|
|
32657
|
+
}, [isFocused]);
|
|
32680
32658
|
useImperativeHandle(forwardedRef, function () {
|
|
32681
32659
|
return {
|
|
32682
32660
|
requestBlur: requestBlur
|