@hero-design/rn 8.34.2 → 8.35.0-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/.tool-versions +1 -0
- package/.turbo/turbo-build.log +2 -2
- package/.turbo/turbo-build:types.log +9 -0
- package/.turbo/turbo-lint.log +163 -0
- package/.turbo/turbo-publish:npm.log +9 -0
- package/.turbo/turbo-test.log +725 -0
- package/.turbo/turbo-type-check.log +1 -0
- package/es/index.js +199 -64
- package/lib/index.js +199 -64
- package/package.json +9 -8
- package/src/components/FAB/ActionGroup/FABModal.tsx +63 -0
- package/src/components/FAB/ActionGroup/FABModalContentWrapper.tsx +31 -0
- package/src/components/FAB/ActionGroup/ModalPresenter/ModalPresenter.tsx +133 -0
- package/src/components/FAB/ActionGroup/ModalPresenter/index.tsx +13 -0
- package/src/components/FAB/ActionGroup/index.tsx +48 -46
- package/src/components/Progress/StyledProgressBar.tsx +0 -1
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +44 -46
- package/src/components/Switch/SelectorSwitch/StyledSelectorSwitch.tsx +7 -4
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +8 -8
- package/src/components/Switch/SelectorSwitch/index.tsx +15 -7
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +12 -12
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +4 -4
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +7 -7
- package/src/theme/components/progress.ts +2 -2
- package/src/theme/components/switch.ts +4 -4
- package/src/theme/components/tabs.ts +1 -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/FABModal.d.ts +21 -0
- package/types/components/FAB/ActionGroup/FABModalContentWrapper.d.ts +18 -0
- package/types/components/FAB/ActionGroup/FABProvider.d.ts +5 -0
- package/types/components/FAB/ActionGroup/ModalPresenter/ModalPresenter.d.ts +34 -0
- package/types/components/FAB/ActionGroup/ModalPresenter/index.d.ts +3 -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 +0 -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 +0 -0
- package/types/components/Tabs/ScrollableTabs.d.ts +0 -0
- package/types/components/Tabs/ScrollableTabsHeader.d.ts +0 -0
- package/types/components/Tabs/ScrollableTabsV2/SceneView.d.ts +10 -0
- package/types/components/Tabs/ScrollableTabsV2/ScrollableTabsV2.d.ts +9 -0
- package/types/components/Tabs/ScrollableTabsV2/index.d.ts +4 -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 +0 -0
- package/types/components/Tabs/useIsFocused.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/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 +0 -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 +1 -1
- 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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
$ tsc --noEmit
|
package/es/index.js
CHANGED
|
@@ -2523,8 +2523,8 @@ var getProgressTheme = function getProgressTheme(theme) {
|
|
|
2523
2523
|
};
|
|
2524
2524
|
var sizes = {
|
|
2525
2525
|
circleDiameter: theme.sizes['6xlarge'],
|
|
2526
|
-
circleCompletenessHeight: theme.sizes.
|
|
2527
|
-
barHeight: theme.sizes.
|
|
2526
|
+
circleCompletenessHeight: theme.sizes.xsmall,
|
|
2527
|
+
barHeight: theme.sizes.xsmall
|
|
2528
2528
|
};
|
|
2529
2529
|
var radii = {
|
|
2530
2530
|
"default": theme.radii.rounded
|
|
@@ -2778,8 +2778,8 @@ var getSwitchTheme = function getSwitchTheme(theme) {
|
|
|
2778
2778
|
},
|
|
2779
2779
|
thumb: theme.colors.onSecondary,
|
|
2780
2780
|
selector: {
|
|
2781
|
-
background: theme.colors.
|
|
2782
|
-
textBackground: theme.colors.
|
|
2781
|
+
background: theme.colors.neutralGlobalSurface,
|
|
2782
|
+
textBackground: theme.colors.decorativePrimary
|
|
2783
2783
|
}
|
|
2784
2784
|
};
|
|
2785
2785
|
var sizes = {
|
|
@@ -2787,14 +2787,14 @@ var getSwitchTheme = function getSwitchTheme(theme) {
|
|
|
2787
2787
|
width: theme.sizes.xxxlarge,
|
|
2788
2788
|
height: theme.sizes.large,
|
|
2789
2789
|
selector: {
|
|
2790
|
-
height: theme.sizes.
|
|
2790
|
+
height: theme.sizes.xxxxlarge
|
|
2791
2791
|
}
|
|
2792
2792
|
};
|
|
2793
2793
|
var spaces = {
|
|
2794
2794
|
paddingHorizontal: theme.space.xsmall,
|
|
2795
2795
|
selector: {
|
|
2796
2796
|
iconPadding: theme.space.medium,
|
|
2797
|
-
|
|
2797
|
+
wrapperPadding: theme.space.xsmall
|
|
2798
2798
|
}
|
|
2799
2799
|
};
|
|
2800
2800
|
var radii = {
|
|
@@ -2829,7 +2829,7 @@ var getTabsTheme = function getTabsTheme(theme) {
|
|
|
2829
2829
|
outlineVerticalPadding: theme.space.xsmall
|
|
2830
2830
|
};
|
|
2831
2831
|
var radii = {
|
|
2832
|
-
outline: theme.radii.
|
|
2832
|
+
outline: theme.radii.medium
|
|
2833
2833
|
};
|
|
2834
2834
|
var borderWidths = {
|
|
2835
2835
|
headerBottom: theme.borderWidths.base
|
|
@@ -6324,7 +6324,7 @@ var StyledText$3 = index$b(Text$1)(function (_ref) {
|
|
|
6324
6324
|
});
|
|
6325
6325
|
});
|
|
6326
6326
|
|
|
6327
|
-
var _excluded$
|
|
6327
|
+
var _excluded$A = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
|
|
6328
6328
|
var Text = function Text(_ref) {
|
|
6329
6329
|
var children = _ref.children,
|
|
6330
6330
|
_ref$fontSize = _ref.fontSize,
|
|
@@ -6337,7 +6337,7 @@ var Text = function Text(_ref) {
|
|
|
6337
6337
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
6338
6338
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
6339
6339
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
6340
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
6340
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$A);
|
|
6341
6341
|
useDeprecation('Typography.Text is deprecated and will be removed in the next major release, please refer to https://design.employmenthero.com/mobile/Components/typography for the appropriate alternatives.');
|
|
6342
6342
|
return /*#__PURE__*/React.createElement(StyledText$3, _extends$1({}, nativeProps, {
|
|
6343
6343
|
themeFontSize: fontSize,
|
|
@@ -6367,7 +6367,7 @@ var StyledCaption = index$b(Text$1)(function (_ref) {
|
|
|
6367
6367
|
};
|
|
6368
6368
|
});
|
|
6369
6369
|
|
|
6370
|
-
var _excluded$
|
|
6370
|
+
var _excluded$z = ["children", "fontWeight", "intent", "allowFontScaling"];
|
|
6371
6371
|
var Caption = function Caption(_ref) {
|
|
6372
6372
|
var children = _ref.children,
|
|
6373
6373
|
_ref$fontWeight = _ref.fontWeight,
|
|
@@ -6376,7 +6376,7 @@ var Caption = function Caption(_ref) {
|
|
|
6376
6376
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
6377
6377
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
6378
6378
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
6379
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
6379
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$z);
|
|
6380
6380
|
return /*#__PURE__*/React.createElement(StyledCaption, _extends$1({}, nativeProps, {
|
|
6381
6381
|
themeFontWeight: fontWeight,
|
|
6382
6382
|
themeIntent: intent,
|
|
@@ -6395,14 +6395,14 @@ var StyledLabel$1 = index$b(Text$1)(function (_ref) {
|
|
|
6395
6395
|
};
|
|
6396
6396
|
});
|
|
6397
6397
|
|
|
6398
|
-
var _excluded$
|
|
6398
|
+
var _excluded$y = ["children", "intent", "allowFontScaling"];
|
|
6399
6399
|
var Label = function Label(_ref) {
|
|
6400
6400
|
var children = _ref.children,
|
|
6401
6401
|
_ref$intent = _ref.intent,
|
|
6402
6402
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
6403
6403
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
6404
6404
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
6405
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
6405
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$y);
|
|
6406
6406
|
return /*#__PURE__*/React.createElement(StyledLabel$1, _extends$1({}, nativeProps, {
|
|
6407
6407
|
themeIntent: intent,
|
|
6408
6408
|
allowFontScaling: allowFontScaling
|
|
@@ -6423,7 +6423,7 @@ var StyledTitle$1 = index$b(Text$1)(function (_ref) {
|
|
|
6423
6423
|
};
|
|
6424
6424
|
});
|
|
6425
6425
|
|
|
6426
|
-
var _excluded$
|
|
6426
|
+
var _excluded$x = ["children", "intent", "allowFontScaling", "level", "typeface"];
|
|
6427
6427
|
var Title = function Title(_ref) {
|
|
6428
6428
|
var children = _ref.children,
|
|
6429
6429
|
_ref$intent = _ref.intent,
|
|
@@ -6434,7 +6434,7 @@ var Title = function Title(_ref) {
|
|
|
6434
6434
|
level = _ref$level === void 0 ? 'h1' : _ref$level,
|
|
6435
6435
|
_ref$typeface = _ref.typeface,
|
|
6436
6436
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
6437
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
6437
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$x);
|
|
6438
6438
|
return /*#__PURE__*/React.createElement(StyledTitle$1, _extends$1({}, nativeProps, {
|
|
6439
6439
|
themeLevel: level,
|
|
6440
6440
|
themeTypeface: typeface,
|
|
@@ -6469,7 +6469,7 @@ var StyledBody = index$b(Text$1)(function (_ref) {
|
|
|
6469
6469
|
};
|
|
6470
6470
|
});
|
|
6471
6471
|
|
|
6472
|
-
var _excluded$
|
|
6472
|
+
var _excluded$w = ["children", "intent", "allowFontScaling", "typeface", "variant"];
|
|
6473
6473
|
var Body = function Body(_ref) {
|
|
6474
6474
|
var children = _ref.children,
|
|
6475
6475
|
_ref$intent = _ref.intent,
|
|
@@ -6480,7 +6480,7 @@ var Body = function Body(_ref) {
|
|
|
6480
6480
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
6481
6481
|
_ref$variant = _ref.variant,
|
|
6482
6482
|
variant = _ref$variant === void 0 ? 'regular' : _ref$variant,
|
|
6483
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
6483
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$w);
|
|
6484
6484
|
return /*#__PURE__*/React.createElement(StyledBody, _extends$1({}, nativeProps, {
|
|
6485
6485
|
themeTypeface: typeface,
|
|
6486
6486
|
themeIntent: intent,
|
|
@@ -7010,10 +7010,10 @@ var StyledHeroIcon = index$b(HeroIcon)(function (_ref) {
|
|
|
7010
7010
|
};
|
|
7011
7011
|
});
|
|
7012
7012
|
|
|
7013
|
-
var _excluded$
|
|
7013
|
+
var _excluded$v = ["style"];
|
|
7014
7014
|
var AnimatedIcon = function AnimatedIcon(_ref) {
|
|
7015
7015
|
var style = _ref.style,
|
|
7016
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
7016
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$v);
|
|
7017
7017
|
var rotateAnimation = useRef(new Animated.Value(0));
|
|
7018
7018
|
useEffect(function () {
|
|
7019
7019
|
var animation = Animated.loop(Animated.timing(rotateAnimation.current, {
|
|
@@ -7118,7 +7118,7 @@ var AccordionItem = function AccordionItem(_ref) {
|
|
|
7118
7118
|
}, content));
|
|
7119
7119
|
};
|
|
7120
7120
|
|
|
7121
|
-
var _excluded$
|
|
7121
|
+
var _excluded$u = ["key"];
|
|
7122
7122
|
var Accordion = function Accordion(_ref) {
|
|
7123
7123
|
var items = _ref.items,
|
|
7124
7124
|
activeItemKey = _ref.activeItemKey,
|
|
@@ -7139,7 +7139,7 @@ var Accordion = function Accordion(_ref) {
|
|
|
7139
7139
|
testID: testID
|
|
7140
7140
|
}, items.map(function (_ref2, index) {
|
|
7141
7141
|
var key = _ref2.key,
|
|
7142
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
7142
|
+
props = _objectWithoutProperties(_ref2, _excluded$u);
|
|
7143
7143
|
var open = _activeItemKey === key;
|
|
7144
7144
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
7145
7145
|
key: key
|
|
@@ -7537,7 +7537,7 @@ var StyledStatus = index$b(Animated.View)(function (_ref3) {
|
|
|
7537
7537
|
};
|
|
7538
7538
|
});
|
|
7539
7539
|
|
|
7540
|
-
var _excluded$
|
|
7540
|
+
var _excluded$t = ["children", "visible", "intent", "style", "testID"];
|
|
7541
7541
|
var Status = function Status(_ref) {
|
|
7542
7542
|
var children = _ref.children,
|
|
7543
7543
|
_ref$visible = _ref.visible,
|
|
@@ -7546,7 +7546,7 @@ var Status = function Status(_ref) {
|
|
|
7546
7546
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
7547
7547
|
style = _ref.style,
|
|
7548
7548
|
testID = _ref.testID,
|
|
7549
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7549
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$t);
|
|
7550
7550
|
var _React$useRef = React.useRef(new Animated.Value(visible ? 1 : 0)),
|
|
7551
7551
|
opacity = _React$useRef.current;
|
|
7552
7552
|
var isFirstRendering = React.useRef(true);
|
|
@@ -7579,7 +7579,7 @@ var Status = function Status(_ref) {
|
|
|
7579
7579
|
}));
|
|
7580
7580
|
};
|
|
7581
7581
|
|
|
7582
|
-
var _excluded$
|
|
7582
|
+
var _excluded$s = ["content", "visible", "max", "intent", "style", "testID"];
|
|
7583
7583
|
var DEFAULT_MAX_NUMBER = 99;
|
|
7584
7584
|
var getPaddingState = function getPaddingState(content) {
|
|
7585
7585
|
return content.length > 1 ? 'wideContent' : 'narrowContent';
|
|
@@ -7594,7 +7594,7 @@ var Badge = function Badge(_ref) {
|
|
|
7594
7594
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
7595
7595
|
style = _ref.style,
|
|
7596
7596
|
testID = _ref.testID,
|
|
7597
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7597
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$s);
|
|
7598
7598
|
var _React$useRef = React.useRef(new Animated.Value(visible ? 1 : 0)),
|
|
7599
7599
|
opacity = _React$useRef.current;
|
|
7600
7600
|
var isFirstRendering = React.useRef(true);
|
|
@@ -7698,7 +7698,7 @@ function omit(keys, obj) {
|
|
|
7698
7698
|
return result;
|
|
7699
7699
|
}
|
|
7700
7700
|
|
|
7701
|
-
var _excluded$
|
|
7701
|
+
var _excluded$r = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
|
|
7702
7702
|
var getInactiveIcon = function getInactiveIcon(icon) {
|
|
7703
7703
|
var inactiveIcon = "".concat(icon, "-outlined");
|
|
7704
7704
|
return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
|
|
@@ -7709,7 +7709,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
7709
7709
|
renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
|
|
7710
7710
|
selectedTabKey = _ref.selectedTabKey,
|
|
7711
7711
|
tabs = _ref.tabs,
|
|
7712
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7712
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$r);
|
|
7713
7713
|
var insets = useSafeAreaInsets();
|
|
7714
7714
|
/**
|
|
7715
7715
|
* List of loaded tabs, tabs will be loaded when navigated to.
|
|
@@ -7795,13 +7795,13 @@ var StyledDivider = index$b(View)(function (_ref) {
|
|
|
7795
7795
|
}, horizontalMargin), verticalMargin);
|
|
7796
7796
|
});
|
|
7797
7797
|
|
|
7798
|
-
var _excluded$
|
|
7798
|
+
var _excluded$q = ["marginHorizontal", "marginVertical", "style", "testID"];
|
|
7799
7799
|
var Divider = function Divider(_ref) {
|
|
7800
7800
|
var marginHorizontal = _ref.marginHorizontal,
|
|
7801
7801
|
marginVertical = _ref.marginVertical,
|
|
7802
7802
|
style = _ref.style,
|
|
7803
7803
|
testID = _ref.testID,
|
|
7804
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7804
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$q);
|
|
7805
7805
|
return /*#__PURE__*/React.createElement(StyledDivider, _extends$1({}, nativeProps, {
|
|
7806
7806
|
themeMarginHorizontal: marginHorizontal,
|
|
7807
7807
|
themeMarginVertical: marginVertical,
|
|
@@ -7931,7 +7931,7 @@ var StyledLoadingDot = index$b(View)(function (_ref2) {
|
|
|
7931
7931
|
}, themeStyling());
|
|
7932
7932
|
});
|
|
7933
7933
|
|
|
7934
|
-
var _excluded$
|
|
7934
|
+
var _excluded$p = ["count", "size", "testID", "themeVariant"];
|
|
7935
7935
|
var AnimatedLoadingIndicatorWrapper = Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
|
|
7936
7936
|
var AnimatedLoadingDot = Animated.createAnimatedComponent(StyledLoadingDot);
|
|
7937
7937
|
var renderDotComponent = function renderDotComponent(_ref) {
|
|
@@ -7963,7 +7963,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
|
|
|
7963
7963
|
size = _ref2$size === void 0 ? 12 : _ref2$size,
|
|
7964
7964
|
testID = _ref2.testID,
|
|
7965
7965
|
themeVariant = _ref2.themeVariant,
|
|
7966
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
7966
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$p);
|
|
7967
7967
|
var progressAnimation = useRef(new Animated.Value(0));
|
|
7968
7968
|
useEffect(function () {
|
|
7969
7969
|
var animation = Animated.loop(Animated.timing(progressAnimation.current, {
|
|
@@ -8402,11 +8402,11 @@ var Header = function Header(_ref) {
|
|
|
8402
8402
|
})) : null), showDivider ? /*#__PURE__*/React.createElement(Divider, null) : null);
|
|
8403
8403
|
};
|
|
8404
8404
|
|
|
8405
|
-
var _excluded$
|
|
8405
|
+
var _excluded$o = ["scrollEventThrottle"];
|
|
8406
8406
|
var BottomSheetScrollView = function BottomSheetScrollView(_ref) {
|
|
8407
8407
|
var _ref$scrollEventThrot = _ref.scrollEventThrottle,
|
|
8408
8408
|
scrollEventThrottle = _ref$scrollEventThrot === void 0 ? 100 : _ref$scrollEventThrot,
|
|
8409
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8409
|
+
props = _objectWithoutProperties(_ref, _excluded$o);
|
|
8410
8410
|
var _useContext = useContext(BottomSheetContext),
|
|
8411
8411
|
setInternalShowDivider = _useContext.setInternalShowDivider;
|
|
8412
8412
|
var onScrollBeginDrag = useCallback(function (e) {
|
|
@@ -8721,7 +8721,7 @@ var borderWidths = {
|
|
|
8721
8721
|
var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
|
|
8722
8722
|
var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
|
|
8723
8723
|
|
|
8724
|
-
var _excluded$
|
|
8724
|
+
var _excluded$n = ["theme"];
|
|
8725
8725
|
var getThemeValue = function getThemeValue(theme, key, props) {
|
|
8726
8726
|
var propConfig = config[key];
|
|
8727
8727
|
var propValue = props[key];
|
|
@@ -8748,18 +8748,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
|
|
|
8748
8748
|
var configKeys = Object.keys(config);
|
|
8749
8749
|
var StyledBox = index$b(View)(function (_ref5) {
|
|
8750
8750
|
var theme = _ref5.theme,
|
|
8751
|
-
otherProps = _objectWithoutProperties(_ref5, _excluded$
|
|
8751
|
+
otherProps = _objectWithoutProperties(_ref5, _excluded$n);
|
|
8752
8752
|
var styleProps = pick(configKeys, otherProps);
|
|
8753
8753
|
var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
|
|
8754
8754
|
return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
|
|
8755
8755
|
});
|
|
8756
8756
|
|
|
8757
|
-
var _excluded$
|
|
8757
|
+
var _excluded$m = ["children", "style", "testID"];
|
|
8758
8758
|
var Box = function Box(_ref) {
|
|
8759
8759
|
var children = _ref.children,
|
|
8760
8760
|
style = _ref.style,
|
|
8761
8761
|
testID = _ref.testID,
|
|
8762
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
8762
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$m);
|
|
8763
8763
|
return /*#__PURE__*/React.createElement(StyledBox, _extends$1({}, otherProps, {
|
|
8764
8764
|
style: style,
|
|
8765
8765
|
testID: testID
|
|
@@ -11395,7 +11395,7 @@ var Calendar = function Calendar(_ref) {
|
|
|
11395
11395
|
})));
|
|
11396
11396
|
};
|
|
11397
11397
|
|
|
11398
|
-
var _excluded$
|
|
11398
|
+
var _excluded$l = ["rounded", "size", "testID", "style"];
|
|
11399
11399
|
var Image = function Image(_ref) {
|
|
11400
11400
|
var _ref$rounded = _ref.rounded,
|
|
11401
11401
|
rounded = _ref$rounded === void 0 ? false : _ref$rounded,
|
|
@@ -11403,7 +11403,7 @@ var Image = function Image(_ref) {
|
|
|
11403
11403
|
size = _ref$size === void 0 ? '6xlarge' : _ref$size,
|
|
11404
11404
|
testID = _ref.testID,
|
|
11405
11405
|
style = _ref.style,
|
|
11406
|
-
imageNativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
11406
|
+
imageNativeProps = _objectWithoutProperties(_ref, _excluded$l);
|
|
11407
11407
|
var theme = useTheme();
|
|
11408
11408
|
var imageSize = theme.__hd__.image.sizes[size];
|
|
11409
11409
|
return /*#__PURE__*/React.createElement(Image$1, _extends$1({
|
|
@@ -11605,12 +11605,12 @@ var Indicator = index$b(View)(function (_ref2) {
|
|
|
11605
11605
|
};
|
|
11606
11606
|
});
|
|
11607
11607
|
|
|
11608
|
-
var _excluded$
|
|
11608
|
+
var _excluded$k = ["intent", "children"];
|
|
11609
11609
|
var DataCard = function DataCard(_ref) {
|
|
11610
11610
|
var _ref$intent = _ref.intent,
|
|
11611
11611
|
intent = _ref$intent === void 0 ? 'info' : _ref$intent,
|
|
11612
11612
|
children = _ref.children,
|
|
11613
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
11613
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$k);
|
|
11614
11614
|
return /*#__PURE__*/React.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React.createElement(Indicator, {
|
|
11615
11615
|
themeIntent: intent,
|
|
11616
11616
|
testID: "data-card-indicator"
|
|
@@ -11628,11 +11628,11 @@ var StyledCard$1 = index$b(View)(function (_ref) {
|
|
|
11628
11628
|
});
|
|
11629
11629
|
});
|
|
11630
11630
|
|
|
11631
|
-
var _excluded$
|
|
11631
|
+
var _excluded$j = ["intent", "children"];
|
|
11632
11632
|
var Card = function Card(_ref) {
|
|
11633
11633
|
var intent = _ref.intent,
|
|
11634
11634
|
children = _ref.children,
|
|
11635
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
11635
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$j);
|
|
11636
11636
|
return /*#__PURE__*/React.createElement(StyledCard$1, _extends$1({}, nativeProps, {
|
|
11637
11637
|
themeIntent: intent
|
|
11638
11638
|
}), children);
|
|
@@ -11839,7 +11839,7 @@ var CardCarousel = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
11839
11839
|
});
|
|
11840
11840
|
CardCarousel.displayName = 'CardCarousel';
|
|
11841
11841
|
|
|
11842
|
-
var _excluded$
|
|
11842
|
+
var _excluded$i = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "pageControlPosition"];
|
|
11843
11843
|
function useStateFromProp(initialValue) {
|
|
11844
11844
|
var _useState = useState(initialValue),
|
|
11845
11845
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -11864,7 +11864,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
11864
11864
|
shouldShowPagination = _ref$shouldShowPagina === void 0 ? noop : _ref$shouldShowPagina,
|
|
11865
11865
|
_ref$pageControlPosit = _ref.pageControlPosition,
|
|
11866
11866
|
pageControlPosition = _ref$pageControlPosit === void 0 ? 'bottom' : _ref$pageControlPosit,
|
|
11867
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
11867
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$i);
|
|
11868
11868
|
useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop);
|
|
11869
11869
|
useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
|
|
11870
11870
|
var carouselRef = useRef(null);
|
|
@@ -12187,7 +12187,7 @@ var StyledErrorAndMaxLengthContainer = index$b(View)(function () {
|
|
|
12187
12187
|
};
|
|
12188
12188
|
});
|
|
12189
12189
|
|
|
12190
|
-
var _excluded$
|
|
12190
|
+
var _excluded$h = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
|
|
12191
12191
|
var getState$1 = function getState(_ref) {
|
|
12192
12192
|
var disabled = _ref.disabled,
|
|
12193
12193
|
error = _ref.error,
|
|
@@ -12239,7 +12239,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
12239
12239
|
allowFontScaling = _ref2$allowFontScalin === void 0 ? false : _ref2$allowFontScalin,
|
|
12240
12240
|
_ref2$variant = _ref2.variant,
|
|
12241
12241
|
variant = _ref2$variant === void 0 ? 'text' : _ref2$variant,
|
|
12242
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
12242
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$h);
|
|
12243
12243
|
var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
12244
12244
|
var isEmptyValue = displayText.length === 0;
|
|
12245
12245
|
var actualSuffix = loading ? 'loading' : suffix;
|
|
@@ -12683,11 +12683,11 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
12683
12683
|
}))));
|
|
12684
12684
|
};
|
|
12685
12685
|
|
|
12686
|
-
var _excluded$
|
|
12686
|
+
var _excluded$g = ["variant"];
|
|
12687
12687
|
var DatePicker = function DatePicker(_ref) {
|
|
12688
12688
|
var _ref$variant = _ref.variant,
|
|
12689
12689
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
12690
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
12690
|
+
props = _objectWithoutProperties(_ref, _excluded$g);
|
|
12691
12691
|
if (variant === 'calendar') {
|
|
12692
12692
|
return /*#__PURE__*/React.createElement(DatePickerCalendar, props);
|
|
12693
12693
|
}
|
|
@@ -13121,7 +13121,7 @@ var StyledErrorDescription = index$b(Typography.Body)(function (_ref9) {
|
|
|
13121
13121
|
};
|
|
13122
13122
|
});
|
|
13123
13123
|
|
|
13124
|
-
var _excluded$
|
|
13124
|
+
var _excluded$f = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"],
|
|
13125
13125
|
_excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
|
|
13126
13126
|
var renderImage$1 = function renderImage(image) {
|
|
13127
13127
|
if ( /*#__PURE__*/isValidElement(image)) {
|
|
@@ -13147,7 +13147,7 @@ var ErrorPage = function ErrorPage(_ref) {
|
|
|
13147
13147
|
onCtaPress = _ref.onCtaPress,
|
|
13148
13148
|
secondaryCtaText = _ref.secondaryCtaText,
|
|
13149
13149
|
onSecondaryCtaPress = _ref.onSecondaryCtaPress,
|
|
13150
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
13150
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$f);
|
|
13151
13151
|
var showCta = ctaText && onCtaPress !== undefined;
|
|
13152
13152
|
var showSecondaryCta = secondaryCtaText && onSecondaryCtaPress !== undefined;
|
|
13153
13153
|
var showButtonContainer = showCta || showSecondaryCta;
|
|
@@ -13306,11 +13306,11 @@ var StyledIconContainer = index$b(Box)(function (_ref4) {
|
|
|
13306
13306
|
};
|
|
13307
13307
|
});
|
|
13308
13308
|
|
|
13309
|
-
var _excluded$
|
|
13309
|
+
var _excluded$e = ["active"];
|
|
13310
13310
|
var AnimatedIcons = Animated.createAnimatedComponent(StyledFABIcon);
|
|
13311
13311
|
var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
|
|
13312
13312
|
var active = _ref.active,
|
|
13313
|
-
iconProps = _objectWithoutProperties(_ref, _excluded$
|
|
13313
|
+
iconProps = _objectWithoutProperties(_ref, _excluded$e);
|
|
13314
13314
|
var rotateAnimation = useRef(new Animated.Value(active ? 1 : 0));
|
|
13315
13315
|
useEffect(function () {
|
|
13316
13316
|
var animation = Animated.spring(rotateAnimation.current, {
|
|
@@ -13563,6 +13563,136 @@ var StyledHeaderText = index$b(Typography.Title)(function (_ref3) {
|
|
|
13563
13563
|
};
|
|
13564
13564
|
});
|
|
13565
13565
|
|
|
13566
|
+
var _excluded$d = ["style", "children"];
|
|
13567
|
+
var FABModalPresenter = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
13568
|
+
var style = _ref2.style,
|
|
13569
|
+
children = _ref2.children,
|
|
13570
|
+
props = _objectWithoutProperties(_ref2, _excluded$d);
|
|
13571
|
+
var animatedOpacity = useRef(new Animated.Value(0));
|
|
13572
|
+
React.useEffect(function () {
|
|
13573
|
+
Animated.spring(animatedOpacity.current, {
|
|
13574
|
+
toValue: 1,
|
|
13575
|
+
useNativeDriver: true
|
|
13576
|
+
}).start();
|
|
13577
|
+
}, []);
|
|
13578
|
+
React.useImperativeHandle(ref, function () {
|
|
13579
|
+
return {
|
|
13580
|
+
animatedOut: function animatedOut(completion) {
|
|
13581
|
+
Animated.spring(animatedOpacity.current, {
|
|
13582
|
+
toValue: 0,
|
|
13583
|
+
useNativeDriver: true
|
|
13584
|
+
}).start(function () {
|
|
13585
|
+
completion === null || completion === void 0 ? void 0 : completion();
|
|
13586
|
+
});
|
|
13587
|
+
}
|
|
13588
|
+
};
|
|
13589
|
+
});
|
|
13590
|
+
return /*#__PURE__*/React.createElement(Box, {
|
|
13591
|
+
style: StyleSheet$1.absoluteFill,
|
|
13592
|
+
pointerEvents: "box-none"
|
|
13593
|
+
}, /*#__PURE__*/React.createElement(Animated.View, _extends$1({
|
|
13594
|
+
style: [{
|
|
13595
|
+
width: '100%',
|
|
13596
|
+
height: '100%',
|
|
13597
|
+
justifyContent: 'center',
|
|
13598
|
+
alignItems: 'center',
|
|
13599
|
+
opacity: animatedOpacity.current
|
|
13600
|
+
}, style]
|
|
13601
|
+
}, props, {
|
|
13602
|
+
pointerEvents: "box-none"
|
|
13603
|
+
}), children));
|
|
13604
|
+
});
|
|
13605
|
+
/**
|
|
13606
|
+
* Present a modal on screen immediately.
|
|
13607
|
+
*
|
|
13608
|
+
* The new presented modal will be on top of existing modals if there are any.
|
|
13609
|
+
*
|
|
13610
|
+
* @param Content A component to be presented as a modal on screen.
|
|
13611
|
+
* This component will be centered horizontally and vertically on screen with
|
|
13612
|
+
* a semitransparent black overlay underneath.
|
|
13613
|
+
* @param contentProps Props for this modal component.
|
|
13614
|
+
* @returns A `ModalHandler` you can use to dismiss the modal.
|
|
13615
|
+
*/
|
|
13616
|
+
var showFABModal = function showFABModal(content) {
|
|
13617
|
+
var _ref3 = null;
|
|
13618
|
+
var rootSiblings = null;
|
|
13619
|
+
var dismiss = function dismiss(onDismiss) {
|
|
13620
|
+
if (rootSiblings) {
|
|
13621
|
+
var cleanup = function cleanup() {
|
|
13622
|
+
var _rootSiblings;
|
|
13623
|
+
(_rootSiblings = rootSiblings) === null || _rootSiblings === void 0 ? void 0 : _rootSiblings.destroy();
|
|
13624
|
+
rootSiblings = null;
|
|
13625
|
+
_ref3 = null;
|
|
13626
|
+
onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss();
|
|
13627
|
+
};
|
|
13628
|
+
if (_ref3) {
|
|
13629
|
+
_ref3.animatedOut(cleanup);
|
|
13630
|
+
} else {
|
|
13631
|
+
cleanup();
|
|
13632
|
+
}
|
|
13633
|
+
}
|
|
13634
|
+
};
|
|
13635
|
+
var update = function update(newContent) {
|
|
13636
|
+
var _rootSiblings2;
|
|
13637
|
+
(_rootSiblings2 = rootSiblings) === null || _rootSiblings2 === void 0 ? void 0 : _rootSiblings2.update( /*#__PURE__*/React.createElement(FABModalPresenter, {
|
|
13638
|
+
ref: function ref(_ref) {
|
|
13639
|
+
_ref3 = _ref;
|
|
13640
|
+
}
|
|
13641
|
+
}, newContent));
|
|
13642
|
+
};
|
|
13643
|
+
rootSiblings = new RootSiblings( /*#__PURE__*/React.createElement(FABModalPresenter, {
|
|
13644
|
+
ref: function ref(_ref) {
|
|
13645
|
+
_ref3 = _ref;
|
|
13646
|
+
}
|
|
13647
|
+
}, content));
|
|
13648
|
+
return {
|
|
13649
|
+
dismiss: dismiss,
|
|
13650
|
+
update: update
|
|
13651
|
+
};
|
|
13652
|
+
};
|
|
13653
|
+
FABModalPresenter.displayName = 'FABModalPresenter';
|
|
13654
|
+
|
|
13655
|
+
var wrapperStyle$1 = {
|
|
13656
|
+
width: Dimensions.get('window').width,
|
|
13657
|
+
height: Dimensions.get('window').height
|
|
13658
|
+
};
|
|
13659
|
+
var fABModal = function fABModal(_ref) {
|
|
13660
|
+
var children = _ref.children,
|
|
13661
|
+
onShow = _ref.onShow,
|
|
13662
|
+
testID = _ref.testID,
|
|
13663
|
+
_ref$visible = _ref.visible,
|
|
13664
|
+
visible = _ref$visible === void 0 ? true : _ref$visible;
|
|
13665
|
+
var _React$useState = React.useState(),
|
|
13666
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
13667
|
+
modalHandler = _React$useState2[0],
|
|
13668
|
+
setModalHandler = _React$useState2[1];
|
|
13669
|
+
var getModalContent = React.useCallback(function () {
|
|
13670
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
13671
|
+
pointerEvents: "box-none",
|
|
13672
|
+
style: wrapperStyle$1,
|
|
13673
|
+
testID: testID
|
|
13674
|
+
}, children);
|
|
13675
|
+
}, [visible, children, onShow, testID]);
|
|
13676
|
+
React.useEffect(function () {
|
|
13677
|
+
if (visible) {
|
|
13678
|
+
// Modal does not exist, create a new one
|
|
13679
|
+
if (!modalHandler) {
|
|
13680
|
+
var newModalHandler = showFABModal(getModalContent());
|
|
13681
|
+
setModalHandler(newModalHandler);
|
|
13682
|
+
onShow === null || onShow === void 0 ? void 0 : onShow();
|
|
13683
|
+
}
|
|
13684
|
+
// Modal already exists, update it
|
|
13685
|
+
else {
|
|
13686
|
+
modalHandler.update(getModalContent());
|
|
13687
|
+
}
|
|
13688
|
+
} else {
|
|
13689
|
+
modalHandler === null || modalHandler === void 0 ? void 0 : modalHandler.dismiss();
|
|
13690
|
+
setModalHandler(undefined);
|
|
13691
|
+
}
|
|
13692
|
+
}, [getModalContent]);
|
|
13693
|
+
return null;
|
|
13694
|
+
};
|
|
13695
|
+
|
|
13566
13696
|
var ActionGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
13567
13697
|
var headerTitle = _ref.headerTitle,
|
|
13568
13698
|
onPress = _ref.onPress,
|
|
@@ -13613,7 +13743,7 @@ var ActionGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
13613
13743
|
inputRange: [0, 1],
|
|
13614
13744
|
outputRange: [0, 1]
|
|
13615
13745
|
});
|
|
13616
|
-
return /*#__PURE__*/React.createElement(StyledContainer$2, {
|
|
13746
|
+
return /*#__PURE__*/React.createElement(fABModal, null, /*#__PURE__*/React.createElement(StyledContainer$2, {
|
|
13617
13747
|
testID: testID,
|
|
13618
13748
|
pointerEvents: "box-none",
|
|
13619
13749
|
style: style
|
|
@@ -13657,7 +13787,7 @@ var ActionGroup = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
13657
13787
|
active: active,
|
|
13658
13788
|
title: fabTitle,
|
|
13659
13789
|
ref: fabRef
|
|
13660
|
-
}));
|
|
13790
|
+
})));
|
|
13661
13791
|
});
|
|
13662
13792
|
ActionGroup.displayName = 'FAB.ActionGroup';
|
|
13663
13793
|
|
|
@@ -14501,8 +14631,7 @@ var StyledWrapper$4 = index$b(View)(function (_ref) {
|
|
|
14501
14631
|
height: theme.__hd__.progress.sizes.barHeight,
|
|
14502
14632
|
alignSelf: 'stretch',
|
|
14503
14633
|
backgroundColor: theme.__hd__.progress.colors.incompleteness[THEME_INTENT_MAP[themeIntent]],
|
|
14504
|
-
overflow: 'hidden'
|
|
14505
|
-
borderRadius: theme.__hd__.progress.radii["default"]
|
|
14634
|
+
overflow: 'hidden'
|
|
14506
14635
|
};
|
|
14507
14636
|
});
|
|
14508
14637
|
var StyledInner = index$b(Animated.View)(function (_ref2) {
|
|
@@ -15769,7 +15898,7 @@ var StyledWrapper$2 = index$b(View)(function (_ref) {
|
|
|
15769
15898
|
height: theme.__hd__["switch"].sizes.selector.height,
|
|
15770
15899
|
borderRadius: theme.__hd__["switch"].radii.selector["default"],
|
|
15771
15900
|
backgroundColor: theme.__hd__["switch"].colors.selector.background,
|
|
15772
|
-
|
|
15901
|
+
padding: theme.__hd__["switch"].spaces.selector.wrapperPadding,
|
|
15773
15902
|
position: 'relative'
|
|
15774
15903
|
};
|
|
15775
15904
|
});
|
|
@@ -15794,10 +15923,15 @@ var StyledIconWrapper$1 = index$b(AnimatedView)(function (_ref3) {
|
|
|
15794
15923
|
});
|
|
15795
15924
|
var StyledKnot$1 = index$b(AnimatedView)(function (_ref4) {
|
|
15796
15925
|
var theme = _ref4.theme;
|
|
15797
|
-
return
|
|
15926
|
+
return {
|
|
15798
15927
|
borderRadius: theme.__hd__["switch"].radii.selector["default"],
|
|
15799
|
-
backgroundColor: theme.__hd__["switch"].colors.selector.textBackground
|
|
15800
|
-
|
|
15928
|
+
backgroundColor: theme.__hd__["switch"].colors.selector.textBackground,
|
|
15929
|
+
position: 'absolute',
|
|
15930
|
+
top: theme.__hd__["switch"].spaces.selector.wrapperPadding,
|
|
15931
|
+
bottom: theme.__hd__["switch"].spaces.selector.wrapperPadding,
|
|
15932
|
+
left: theme.__hd__["switch"].spaces.selector.wrapperPadding,
|
|
15933
|
+
right: theme.__hd__["switch"].spaces.selector.wrapperPadding
|
|
15934
|
+
};
|
|
15801
15935
|
});
|
|
15802
15936
|
|
|
15803
15937
|
var OptionContent = function OptionContent(_ref) {
|
|
@@ -15873,6 +16007,7 @@ var SelectorSwitch = function SelectorSwitch(_ref) {
|
|
|
15873
16007
|
_onPress = _ref.onPress,
|
|
15874
16008
|
style = _ref.style,
|
|
15875
16009
|
testID = _ref.testID;
|
|
16010
|
+
var theme = useTheme$1();
|
|
15876
16011
|
var _useState = useState(0),
|
|
15877
16012
|
_useState2 = _slicedToArray(_useState, 2),
|
|
15878
16013
|
knotWidth = _useState2[0],
|
|
@@ -15884,7 +16019,7 @@ var SelectorSwitch = function SelectorSwitch(_ref) {
|
|
|
15884
16019
|
var animatedValue = useRef(new Animated.Value(0)).current;
|
|
15885
16020
|
var translateX = animatedValue.interpolate({
|
|
15886
16021
|
inputRange: [0, 1],
|
|
15887
|
-
outputRange: [0, Math.floor(containerWidth - knotWidth)]
|
|
16022
|
+
outputRange: [0, Math.floor(containerWidth - knotWidth - theme.space.small)]
|
|
15888
16023
|
});
|
|
15889
16024
|
useEffect(function () {
|
|
15890
16025
|
Animated.timing(animatedValue, {
|
|
@@ -15893,10 +16028,10 @@ var SelectorSwitch = function SelectorSwitch(_ref) {
|
|
|
15893
16028
|
easing: Easing.inOut(Easing.ease),
|
|
15894
16029
|
useNativeDriver: Platform.OS === 'ios' || Platform.OS === 'android'
|
|
15895
16030
|
}).start();
|
|
15896
|
-
}, [value
|
|
16031
|
+
}, [value]);
|
|
15897
16032
|
var onContainerLayout = useCallback(function (e) {
|
|
15898
16033
|
setContainerWidth(e.nativeEvent.layout.width);
|
|
15899
|
-
}, []);
|
|
16034
|
+
}, [options]);
|
|
15900
16035
|
var onItemLayout = useCallback(function (e, optionValue) {
|
|
15901
16036
|
if (optionValue === value) {
|
|
15902
16037
|
setKnotWidth(e.nativeEvent.layout.width);
|