@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
package/lib/index.js
CHANGED
|
@@ -2554,8 +2554,8 @@ var getProgressTheme = function getProgressTheme(theme) {
|
|
|
2554
2554
|
};
|
|
2555
2555
|
var sizes = {
|
|
2556
2556
|
circleDiameter: theme.sizes['6xlarge'],
|
|
2557
|
-
circleCompletenessHeight: theme.sizes.
|
|
2558
|
-
barHeight: theme.sizes.
|
|
2557
|
+
circleCompletenessHeight: theme.sizes.xsmall,
|
|
2558
|
+
barHeight: theme.sizes.xsmall
|
|
2559
2559
|
};
|
|
2560
2560
|
var radii = {
|
|
2561
2561
|
"default": theme.radii.rounded
|
|
@@ -2809,8 +2809,8 @@ var getSwitchTheme = function getSwitchTheme(theme) {
|
|
|
2809
2809
|
},
|
|
2810
2810
|
thumb: theme.colors.onSecondary,
|
|
2811
2811
|
selector: {
|
|
2812
|
-
background: theme.colors.
|
|
2813
|
-
textBackground: theme.colors.
|
|
2812
|
+
background: theme.colors.neutralGlobalSurface,
|
|
2813
|
+
textBackground: theme.colors.decorativePrimary
|
|
2814
2814
|
}
|
|
2815
2815
|
};
|
|
2816
2816
|
var sizes = {
|
|
@@ -2818,14 +2818,14 @@ var getSwitchTheme = function getSwitchTheme(theme) {
|
|
|
2818
2818
|
width: theme.sizes.xxxlarge,
|
|
2819
2819
|
height: theme.sizes.large,
|
|
2820
2820
|
selector: {
|
|
2821
|
-
height: theme.sizes.
|
|
2821
|
+
height: theme.sizes.xxxxlarge
|
|
2822
2822
|
}
|
|
2823
2823
|
};
|
|
2824
2824
|
var spaces = {
|
|
2825
2825
|
paddingHorizontal: theme.space.xsmall,
|
|
2826
2826
|
selector: {
|
|
2827
2827
|
iconPadding: theme.space.medium,
|
|
2828
|
-
|
|
2828
|
+
wrapperPadding: theme.space.xsmall
|
|
2829
2829
|
}
|
|
2830
2830
|
};
|
|
2831
2831
|
var radii = {
|
|
@@ -2860,7 +2860,7 @@ var getTabsTheme = function getTabsTheme(theme) {
|
|
|
2860
2860
|
outlineVerticalPadding: theme.space.xsmall
|
|
2861
2861
|
};
|
|
2862
2862
|
var radii = {
|
|
2863
|
-
outline: theme.radii.
|
|
2863
|
+
outline: theme.radii.medium
|
|
2864
2864
|
};
|
|
2865
2865
|
var borderWidths = {
|
|
2866
2866
|
headerBottom: theme.borderWidths.base
|
|
@@ -6355,7 +6355,7 @@ var StyledText$3 = index$b(reactNative.Text)(function (_ref) {
|
|
|
6355
6355
|
});
|
|
6356
6356
|
});
|
|
6357
6357
|
|
|
6358
|
-
var _excluded$
|
|
6358
|
+
var _excluded$A = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
|
|
6359
6359
|
var Text = function Text(_ref) {
|
|
6360
6360
|
var children = _ref.children,
|
|
6361
6361
|
_ref$fontSize = _ref.fontSize,
|
|
@@ -6368,7 +6368,7 @@ var Text = function Text(_ref) {
|
|
|
6368
6368
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
6369
6369
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
6370
6370
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
6371
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
6371
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$A);
|
|
6372
6372
|
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.');
|
|
6373
6373
|
return /*#__PURE__*/React__default["default"].createElement(StyledText$3, _extends$1({}, nativeProps, {
|
|
6374
6374
|
themeFontSize: fontSize,
|
|
@@ -6398,7 +6398,7 @@ var StyledCaption = index$b(reactNative.Text)(function (_ref) {
|
|
|
6398
6398
|
};
|
|
6399
6399
|
});
|
|
6400
6400
|
|
|
6401
|
-
var _excluded$
|
|
6401
|
+
var _excluded$z = ["children", "fontWeight", "intent", "allowFontScaling"];
|
|
6402
6402
|
var Caption = function Caption(_ref) {
|
|
6403
6403
|
var children = _ref.children,
|
|
6404
6404
|
_ref$fontWeight = _ref.fontWeight,
|
|
@@ -6407,7 +6407,7 @@ var Caption = function Caption(_ref) {
|
|
|
6407
6407
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
6408
6408
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
6409
6409
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
6410
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
6410
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$z);
|
|
6411
6411
|
return /*#__PURE__*/React__default["default"].createElement(StyledCaption, _extends$1({}, nativeProps, {
|
|
6412
6412
|
themeFontWeight: fontWeight,
|
|
6413
6413
|
themeIntent: intent,
|
|
@@ -6426,14 +6426,14 @@ var StyledLabel$1 = index$b(reactNative.Text)(function (_ref) {
|
|
|
6426
6426
|
};
|
|
6427
6427
|
});
|
|
6428
6428
|
|
|
6429
|
-
var _excluded$
|
|
6429
|
+
var _excluded$y = ["children", "intent", "allowFontScaling"];
|
|
6430
6430
|
var Label = function Label(_ref) {
|
|
6431
6431
|
var children = _ref.children,
|
|
6432
6432
|
_ref$intent = _ref.intent,
|
|
6433
6433
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
6434
6434
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
6435
6435
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
6436
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
6436
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$y);
|
|
6437
6437
|
return /*#__PURE__*/React__default["default"].createElement(StyledLabel$1, _extends$1({}, nativeProps, {
|
|
6438
6438
|
themeIntent: intent,
|
|
6439
6439
|
allowFontScaling: allowFontScaling
|
|
@@ -6454,7 +6454,7 @@ var StyledTitle$1 = index$b(reactNative.Text)(function (_ref) {
|
|
|
6454
6454
|
};
|
|
6455
6455
|
});
|
|
6456
6456
|
|
|
6457
|
-
var _excluded$
|
|
6457
|
+
var _excluded$x = ["children", "intent", "allowFontScaling", "level", "typeface"];
|
|
6458
6458
|
var Title = function Title(_ref) {
|
|
6459
6459
|
var children = _ref.children,
|
|
6460
6460
|
_ref$intent = _ref.intent,
|
|
@@ -6465,7 +6465,7 @@ var Title = function Title(_ref) {
|
|
|
6465
6465
|
level = _ref$level === void 0 ? 'h1' : _ref$level,
|
|
6466
6466
|
_ref$typeface = _ref.typeface,
|
|
6467
6467
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
6468
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
6468
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$x);
|
|
6469
6469
|
return /*#__PURE__*/React__default["default"].createElement(StyledTitle$1, _extends$1({}, nativeProps, {
|
|
6470
6470
|
themeLevel: level,
|
|
6471
6471
|
themeTypeface: typeface,
|
|
@@ -6500,7 +6500,7 @@ var StyledBody = index$b(reactNative.Text)(function (_ref) {
|
|
|
6500
6500
|
};
|
|
6501
6501
|
});
|
|
6502
6502
|
|
|
6503
|
-
var _excluded$
|
|
6503
|
+
var _excluded$w = ["children", "intent", "allowFontScaling", "typeface", "variant"];
|
|
6504
6504
|
var Body = function Body(_ref) {
|
|
6505
6505
|
var children = _ref.children,
|
|
6506
6506
|
_ref$intent = _ref.intent,
|
|
@@ -6511,7 +6511,7 @@ var Body = function Body(_ref) {
|
|
|
6511
6511
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
6512
6512
|
_ref$variant = _ref.variant,
|
|
6513
6513
|
variant = _ref$variant === void 0 ? 'regular' : _ref$variant,
|
|
6514
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
6514
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$w);
|
|
6515
6515
|
return /*#__PURE__*/React__default["default"].createElement(StyledBody, _extends$1({}, nativeProps, {
|
|
6516
6516
|
themeTypeface: typeface,
|
|
6517
6517
|
themeIntent: intent,
|
|
@@ -7041,10 +7041,10 @@ var StyledHeroIcon = index$b(HeroIcon)(function (_ref) {
|
|
|
7041
7041
|
};
|
|
7042
7042
|
});
|
|
7043
7043
|
|
|
7044
|
-
var _excluded$
|
|
7044
|
+
var _excluded$v = ["style"];
|
|
7045
7045
|
var AnimatedIcon = function AnimatedIcon(_ref) {
|
|
7046
7046
|
var style = _ref.style,
|
|
7047
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
7047
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$v);
|
|
7048
7048
|
var rotateAnimation = React.useRef(new reactNative.Animated.Value(0));
|
|
7049
7049
|
React.useEffect(function () {
|
|
7050
7050
|
var animation = reactNative.Animated.loop(reactNative.Animated.timing(rotateAnimation.current, {
|
|
@@ -7149,7 +7149,7 @@ var AccordionItem = function AccordionItem(_ref) {
|
|
|
7149
7149
|
}, content));
|
|
7150
7150
|
};
|
|
7151
7151
|
|
|
7152
|
-
var _excluded$
|
|
7152
|
+
var _excluded$u = ["key"];
|
|
7153
7153
|
var Accordion = function Accordion(_ref) {
|
|
7154
7154
|
var items = _ref.items,
|
|
7155
7155
|
activeItemKey = _ref.activeItemKey,
|
|
@@ -7170,7 +7170,7 @@ var Accordion = function Accordion(_ref) {
|
|
|
7170
7170
|
testID: testID
|
|
7171
7171
|
}, items.map(function (_ref2, index) {
|
|
7172
7172
|
var key = _ref2.key,
|
|
7173
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
7173
|
+
props = _objectWithoutProperties(_ref2, _excluded$u);
|
|
7174
7174
|
var open = _activeItemKey === key;
|
|
7175
7175
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
|
|
7176
7176
|
key: key
|
|
@@ -7568,7 +7568,7 @@ var StyledStatus = index$b(reactNative.Animated.View)(function (_ref3) {
|
|
|
7568
7568
|
};
|
|
7569
7569
|
});
|
|
7570
7570
|
|
|
7571
|
-
var _excluded$
|
|
7571
|
+
var _excluded$t = ["children", "visible", "intent", "style", "testID"];
|
|
7572
7572
|
var Status = function Status(_ref) {
|
|
7573
7573
|
var children = _ref.children,
|
|
7574
7574
|
_ref$visible = _ref.visible,
|
|
@@ -7577,7 +7577,7 @@ var Status = function Status(_ref) {
|
|
|
7577
7577
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
7578
7578
|
style = _ref.style,
|
|
7579
7579
|
testID = _ref.testID,
|
|
7580
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7580
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$t);
|
|
7581
7581
|
var _React$useRef = React__default["default"].useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
|
|
7582
7582
|
opacity = _React$useRef.current;
|
|
7583
7583
|
var isFirstRendering = React__default["default"].useRef(true);
|
|
@@ -7610,7 +7610,7 @@ var Status = function Status(_ref) {
|
|
|
7610
7610
|
}));
|
|
7611
7611
|
};
|
|
7612
7612
|
|
|
7613
|
-
var _excluded$
|
|
7613
|
+
var _excluded$s = ["content", "visible", "max", "intent", "style", "testID"];
|
|
7614
7614
|
var DEFAULT_MAX_NUMBER = 99;
|
|
7615
7615
|
var getPaddingState = function getPaddingState(content) {
|
|
7616
7616
|
return content.length > 1 ? 'wideContent' : 'narrowContent';
|
|
@@ -7625,7 +7625,7 @@ var Badge = function Badge(_ref) {
|
|
|
7625
7625
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
7626
7626
|
style = _ref.style,
|
|
7627
7627
|
testID = _ref.testID,
|
|
7628
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7628
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$s);
|
|
7629
7629
|
var _React$useRef = React__default["default"].useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
|
|
7630
7630
|
opacity = _React$useRef.current;
|
|
7631
7631
|
var isFirstRendering = React__default["default"].useRef(true);
|
|
@@ -7729,7 +7729,7 @@ function omit(keys, obj) {
|
|
|
7729
7729
|
return result;
|
|
7730
7730
|
}
|
|
7731
7731
|
|
|
7732
|
-
var _excluded$
|
|
7732
|
+
var _excluded$r = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
|
|
7733
7733
|
var getInactiveIcon = function getInactiveIcon(icon) {
|
|
7734
7734
|
var inactiveIcon = "".concat(icon, "-outlined");
|
|
7735
7735
|
return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
|
|
@@ -7740,7 +7740,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
7740
7740
|
renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
|
|
7741
7741
|
selectedTabKey = _ref.selectedTabKey,
|
|
7742
7742
|
tabs = _ref.tabs,
|
|
7743
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7743
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$r);
|
|
7744
7744
|
var insets = reactNativeSafeAreaContext.useSafeAreaInsets();
|
|
7745
7745
|
/**
|
|
7746
7746
|
* List of loaded tabs, tabs will be loaded when navigated to.
|
|
@@ -7826,13 +7826,13 @@ var StyledDivider = index$b(reactNative.View)(function (_ref) {
|
|
|
7826
7826
|
}, horizontalMargin), verticalMargin);
|
|
7827
7827
|
});
|
|
7828
7828
|
|
|
7829
|
-
var _excluded$
|
|
7829
|
+
var _excluded$q = ["marginHorizontal", "marginVertical", "style", "testID"];
|
|
7830
7830
|
var Divider = function Divider(_ref) {
|
|
7831
7831
|
var marginHorizontal = _ref.marginHorizontal,
|
|
7832
7832
|
marginVertical = _ref.marginVertical,
|
|
7833
7833
|
style = _ref.style,
|
|
7834
7834
|
testID = _ref.testID,
|
|
7835
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7835
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$q);
|
|
7836
7836
|
return /*#__PURE__*/React__default["default"].createElement(StyledDivider, _extends$1({}, nativeProps, {
|
|
7837
7837
|
themeMarginHorizontal: marginHorizontal,
|
|
7838
7838
|
themeMarginVertical: marginVertical,
|
|
@@ -7962,7 +7962,7 @@ var StyledLoadingDot = index$b(reactNative.View)(function (_ref2) {
|
|
|
7962
7962
|
}, themeStyling());
|
|
7963
7963
|
});
|
|
7964
7964
|
|
|
7965
|
-
var _excluded$
|
|
7965
|
+
var _excluded$p = ["count", "size", "testID", "themeVariant"];
|
|
7966
7966
|
var AnimatedLoadingIndicatorWrapper = reactNative.Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
|
|
7967
7967
|
var AnimatedLoadingDot = reactNative.Animated.createAnimatedComponent(StyledLoadingDot);
|
|
7968
7968
|
var renderDotComponent = function renderDotComponent(_ref) {
|
|
@@ -7994,7 +7994,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
|
|
|
7994
7994
|
size = _ref2$size === void 0 ? 12 : _ref2$size,
|
|
7995
7995
|
testID = _ref2.testID,
|
|
7996
7996
|
themeVariant = _ref2.themeVariant,
|
|
7997
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
7997
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$p);
|
|
7998
7998
|
var progressAnimation = React.useRef(new reactNative.Animated.Value(0));
|
|
7999
7999
|
React.useEffect(function () {
|
|
8000
8000
|
var animation = reactNative.Animated.loop(reactNative.Animated.timing(progressAnimation.current, {
|
|
@@ -8433,11 +8433,11 @@ var Header = function Header(_ref) {
|
|
|
8433
8433
|
})) : null), showDivider ? /*#__PURE__*/React__default["default"].createElement(Divider, null) : null);
|
|
8434
8434
|
};
|
|
8435
8435
|
|
|
8436
|
-
var _excluded$
|
|
8436
|
+
var _excluded$o = ["scrollEventThrottle"];
|
|
8437
8437
|
var BottomSheetScrollView = function BottomSheetScrollView(_ref) {
|
|
8438
8438
|
var _ref$scrollEventThrot = _ref.scrollEventThrottle,
|
|
8439
8439
|
scrollEventThrottle = _ref$scrollEventThrot === void 0 ? 100 : _ref$scrollEventThrot,
|
|
8440
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8440
|
+
props = _objectWithoutProperties(_ref, _excluded$o);
|
|
8441
8441
|
var _useContext = React.useContext(BottomSheetContext),
|
|
8442
8442
|
setInternalShowDivider = _useContext.setInternalShowDivider;
|
|
8443
8443
|
var onScrollBeginDrag = React.useCallback(function (e) {
|
|
@@ -8752,7 +8752,7 @@ var borderWidths = {
|
|
|
8752
8752
|
var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
|
|
8753
8753
|
var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
|
|
8754
8754
|
|
|
8755
|
-
var _excluded$
|
|
8755
|
+
var _excluded$n = ["theme"];
|
|
8756
8756
|
var getThemeValue = function getThemeValue(theme, key, props) {
|
|
8757
8757
|
var propConfig = config[key];
|
|
8758
8758
|
var propValue = props[key];
|
|
@@ -8779,18 +8779,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
|
|
|
8779
8779
|
var configKeys = Object.keys(config);
|
|
8780
8780
|
var StyledBox = index$b(reactNative.View)(function (_ref5) {
|
|
8781
8781
|
var theme = _ref5.theme,
|
|
8782
|
-
otherProps = _objectWithoutProperties(_ref5, _excluded$
|
|
8782
|
+
otherProps = _objectWithoutProperties(_ref5, _excluded$n);
|
|
8783
8783
|
var styleProps = pick(configKeys, otherProps);
|
|
8784
8784
|
var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
|
|
8785
8785
|
return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
|
|
8786
8786
|
});
|
|
8787
8787
|
|
|
8788
|
-
var _excluded$
|
|
8788
|
+
var _excluded$m = ["children", "style", "testID"];
|
|
8789
8789
|
var Box = function Box(_ref) {
|
|
8790
8790
|
var children = _ref.children,
|
|
8791
8791
|
style = _ref.style,
|
|
8792
8792
|
testID = _ref.testID,
|
|
8793
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
8793
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$m);
|
|
8794
8794
|
return /*#__PURE__*/React__default["default"].createElement(StyledBox, _extends$1({}, otherProps, {
|
|
8795
8795
|
style: style,
|
|
8796
8796
|
testID: testID
|
|
@@ -11426,7 +11426,7 @@ var Calendar = function Calendar(_ref) {
|
|
|
11426
11426
|
})));
|
|
11427
11427
|
};
|
|
11428
11428
|
|
|
11429
|
-
var _excluded$
|
|
11429
|
+
var _excluded$l = ["rounded", "size", "testID", "style"];
|
|
11430
11430
|
var Image = function Image(_ref) {
|
|
11431
11431
|
var _ref$rounded = _ref.rounded,
|
|
11432
11432
|
rounded = _ref$rounded === void 0 ? false : _ref$rounded,
|
|
@@ -11434,7 +11434,7 @@ var Image = function Image(_ref) {
|
|
|
11434
11434
|
size = _ref$size === void 0 ? '6xlarge' : _ref$size,
|
|
11435
11435
|
testID = _ref.testID,
|
|
11436
11436
|
style = _ref.style,
|
|
11437
|
-
imageNativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
11437
|
+
imageNativeProps = _objectWithoutProperties(_ref, _excluded$l);
|
|
11438
11438
|
var theme = useTheme();
|
|
11439
11439
|
var imageSize = theme.__hd__.image.sizes[size];
|
|
11440
11440
|
return /*#__PURE__*/React__default["default"].createElement(reactNative.Image, _extends$1({
|
|
@@ -11636,12 +11636,12 @@ var Indicator = index$b(reactNative.View)(function (_ref2) {
|
|
|
11636
11636
|
};
|
|
11637
11637
|
});
|
|
11638
11638
|
|
|
11639
|
-
var _excluded$
|
|
11639
|
+
var _excluded$k = ["intent", "children"];
|
|
11640
11640
|
var DataCard = function DataCard(_ref) {
|
|
11641
11641
|
var _ref$intent = _ref.intent,
|
|
11642
11642
|
intent = _ref$intent === void 0 ? 'info' : _ref$intent,
|
|
11643
11643
|
children = _ref.children,
|
|
11644
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
11644
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$k);
|
|
11645
11645
|
return /*#__PURE__*/React__default["default"].createElement(StyledDataCard, nativeProps, /*#__PURE__*/React__default["default"].createElement(Indicator, {
|
|
11646
11646
|
themeIntent: intent,
|
|
11647
11647
|
testID: "data-card-indicator"
|
|
@@ -11659,11 +11659,11 @@ var StyledCard$1 = index$b(reactNative.View)(function (_ref) {
|
|
|
11659
11659
|
});
|
|
11660
11660
|
});
|
|
11661
11661
|
|
|
11662
|
-
var _excluded$
|
|
11662
|
+
var _excluded$j = ["intent", "children"];
|
|
11663
11663
|
var Card = function Card(_ref) {
|
|
11664
11664
|
var intent = _ref.intent,
|
|
11665
11665
|
children = _ref.children,
|
|
11666
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
11666
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$j);
|
|
11667
11667
|
return /*#__PURE__*/React__default["default"].createElement(StyledCard$1, _extends$1({}, nativeProps, {
|
|
11668
11668
|
themeIntent: intent
|
|
11669
11669
|
}), children);
|
|
@@ -11870,7 +11870,7 @@ var CardCarousel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
11870
11870
|
});
|
|
11871
11871
|
CardCarousel.displayName = 'CardCarousel';
|
|
11872
11872
|
|
|
11873
|
-
var _excluded$
|
|
11873
|
+
var _excluded$i = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "pageControlPosition"];
|
|
11874
11874
|
function useStateFromProp(initialValue) {
|
|
11875
11875
|
var _useState = React.useState(initialValue),
|
|
11876
11876
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -11895,7 +11895,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
11895
11895
|
shouldShowPagination = _ref$shouldShowPagina === void 0 ? noop : _ref$shouldShowPagina,
|
|
11896
11896
|
_ref$pageControlPosit = _ref.pageControlPosition,
|
|
11897
11897
|
pageControlPosition = _ref$pageControlPosit === void 0 ? 'bottom' : _ref$pageControlPosit,
|
|
11898
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
11898
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$i);
|
|
11899
11899
|
useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop);
|
|
11900
11900
|
useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
|
|
11901
11901
|
var carouselRef = React.useRef(null);
|
|
@@ -12218,7 +12218,7 @@ var StyledErrorAndMaxLengthContainer = index$b(reactNative.View)(function () {
|
|
|
12218
12218
|
};
|
|
12219
12219
|
});
|
|
12220
12220
|
|
|
12221
|
-
var _excluded$
|
|
12221
|
+
var _excluded$h = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling", "variant"];
|
|
12222
12222
|
var getState$1 = function getState(_ref) {
|
|
12223
12223
|
var disabled = _ref.disabled,
|
|
12224
12224
|
error = _ref.error,
|
|
@@ -12270,7 +12270,7 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
12270
12270
|
allowFontScaling = _ref2$allowFontScalin === void 0 ? false : _ref2$allowFontScalin,
|
|
12271
12271
|
_ref2$variant = _ref2.variant,
|
|
12272
12272
|
variant = _ref2$variant === void 0 ? 'text' : _ref2$variant,
|
|
12273
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
12273
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$h);
|
|
12274
12274
|
var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
12275
12275
|
var isEmptyValue = displayText.length === 0;
|
|
12276
12276
|
var actualSuffix = loading ? 'loading' : suffix;
|
|
@@ -12714,11 +12714,11 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
12714
12714
|
}))));
|
|
12715
12715
|
};
|
|
12716
12716
|
|
|
12717
|
-
var _excluded$
|
|
12717
|
+
var _excluded$g = ["variant"];
|
|
12718
12718
|
var DatePicker = function DatePicker(_ref) {
|
|
12719
12719
|
var _ref$variant = _ref.variant,
|
|
12720
12720
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
12721
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
12721
|
+
props = _objectWithoutProperties(_ref, _excluded$g);
|
|
12722
12722
|
if (variant === 'calendar') {
|
|
12723
12723
|
return /*#__PURE__*/React__default["default"].createElement(DatePickerCalendar, props);
|
|
12724
12724
|
}
|
|
@@ -13152,7 +13152,7 @@ var StyledErrorDescription = index$b(Typography.Body)(function (_ref9) {
|
|
|
13152
13152
|
};
|
|
13153
13153
|
});
|
|
13154
13154
|
|
|
13155
|
-
var _excluded$
|
|
13155
|
+
var _excluded$f = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"],
|
|
13156
13156
|
_excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
|
|
13157
13157
|
var renderImage$1 = function renderImage(image) {
|
|
13158
13158
|
if ( /*#__PURE__*/React.isValidElement(image)) {
|
|
@@ -13178,7 +13178,7 @@ var ErrorPage = function ErrorPage(_ref) {
|
|
|
13178
13178
|
onCtaPress = _ref.onCtaPress,
|
|
13179
13179
|
secondaryCtaText = _ref.secondaryCtaText,
|
|
13180
13180
|
onSecondaryCtaPress = _ref.onSecondaryCtaPress,
|
|
13181
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
13181
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$f);
|
|
13182
13182
|
var showCta = ctaText && onCtaPress !== undefined;
|
|
13183
13183
|
var showSecondaryCta = secondaryCtaText && onSecondaryCtaPress !== undefined;
|
|
13184
13184
|
var showButtonContainer = showCta || showSecondaryCta;
|
|
@@ -13337,11 +13337,11 @@ var StyledIconContainer = index$b(Box)(function (_ref4) {
|
|
|
13337
13337
|
};
|
|
13338
13338
|
});
|
|
13339
13339
|
|
|
13340
|
-
var _excluded$
|
|
13340
|
+
var _excluded$e = ["active"];
|
|
13341
13341
|
var AnimatedIcons = reactNative.Animated.createAnimatedComponent(StyledFABIcon);
|
|
13342
13342
|
var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
|
|
13343
13343
|
var active = _ref.active,
|
|
13344
|
-
iconProps = _objectWithoutProperties(_ref, _excluded$
|
|
13344
|
+
iconProps = _objectWithoutProperties(_ref, _excluded$e);
|
|
13345
13345
|
var rotateAnimation = React.useRef(new reactNative.Animated.Value(active ? 1 : 0));
|
|
13346
13346
|
React.useEffect(function () {
|
|
13347
13347
|
var animation = reactNative.Animated.spring(rotateAnimation.current, {
|
|
@@ -13594,6 +13594,136 @@ var StyledHeaderText = index$b(Typography.Title)(function (_ref3) {
|
|
|
13594
13594
|
};
|
|
13595
13595
|
});
|
|
13596
13596
|
|
|
13597
|
+
var _excluded$d = ["style", "children"];
|
|
13598
|
+
var FABModalPresenter = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
13599
|
+
var style = _ref2.style,
|
|
13600
|
+
children = _ref2.children,
|
|
13601
|
+
props = _objectWithoutProperties(_ref2, _excluded$d);
|
|
13602
|
+
var animatedOpacity = React.useRef(new reactNative.Animated.Value(0));
|
|
13603
|
+
React__default["default"].useEffect(function () {
|
|
13604
|
+
reactNative.Animated.spring(animatedOpacity.current, {
|
|
13605
|
+
toValue: 1,
|
|
13606
|
+
useNativeDriver: true
|
|
13607
|
+
}).start();
|
|
13608
|
+
}, []);
|
|
13609
|
+
React__default["default"].useImperativeHandle(ref, function () {
|
|
13610
|
+
return {
|
|
13611
|
+
animatedOut: function animatedOut(completion) {
|
|
13612
|
+
reactNative.Animated.spring(animatedOpacity.current, {
|
|
13613
|
+
toValue: 0,
|
|
13614
|
+
useNativeDriver: true
|
|
13615
|
+
}).start(function () {
|
|
13616
|
+
completion === null || completion === void 0 ? void 0 : completion();
|
|
13617
|
+
});
|
|
13618
|
+
}
|
|
13619
|
+
};
|
|
13620
|
+
});
|
|
13621
|
+
return /*#__PURE__*/React__default["default"].createElement(Box, {
|
|
13622
|
+
style: reactNative.StyleSheet.absoluteFill,
|
|
13623
|
+
pointerEvents: "box-none"
|
|
13624
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactNative.Animated.View, _extends$1({
|
|
13625
|
+
style: [{
|
|
13626
|
+
width: '100%',
|
|
13627
|
+
height: '100%',
|
|
13628
|
+
justifyContent: 'center',
|
|
13629
|
+
alignItems: 'center',
|
|
13630
|
+
opacity: animatedOpacity.current
|
|
13631
|
+
}, style]
|
|
13632
|
+
}, props, {
|
|
13633
|
+
pointerEvents: "box-none"
|
|
13634
|
+
}), children));
|
|
13635
|
+
});
|
|
13636
|
+
/**
|
|
13637
|
+
* Present a modal on screen immediately.
|
|
13638
|
+
*
|
|
13639
|
+
* The new presented modal will be on top of existing modals if there are any.
|
|
13640
|
+
*
|
|
13641
|
+
* @param Content A component to be presented as a modal on screen.
|
|
13642
|
+
* This component will be centered horizontally and vertically on screen with
|
|
13643
|
+
* a semitransparent black overlay underneath.
|
|
13644
|
+
* @param contentProps Props for this modal component.
|
|
13645
|
+
* @returns A `ModalHandler` you can use to dismiss the modal.
|
|
13646
|
+
*/
|
|
13647
|
+
var showFABModal = function showFABModal(content) {
|
|
13648
|
+
var _ref3 = null;
|
|
13649
|
+
var rootSiblings = null;
|
|
13650
|
+
var dismiss = function dismiss(onDismiss) {
|
|
13651
|
+
if (rootSiblings) {
|
|
13652
|
+
var cleanup = function cleanup() {
|
|
13653
|
+
var _rootSiblings;
|
|
13654
|
+
(_rootSiblings = rootSiblings) === null || _rootSiblings === void 0 ? void 0 : _rootSiblings.destroy();
|
|
13655
|
+
rootSiblings = null;
|
|
13656
|
+
_ref3 = null;
|
|
13657
|
+
onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss();
|
|
13658
|
+
};
|
|
13659
|
+
if (_ref3) {
|
|
13660
|
+
_ref3.animatedOut(cleanup);
|
|
13661
|
+
} else {
|
|
13662
|
+
cleanup();
|
|
13663
|
+
}
|
|
13664
|
+
}
|
|
13665
|
+
};
|
|
13666
|
+
var update = function update(newContent) {
|
|
13667
|
+
var _rootSiblings2;
|
|
13668
|
+
(_rootSiblings2 = rootSiblings) === null || _rootSiblings2 === void 0 ? void 0 : _rootSiblings2.update( /*#__PURE__*/React__default["default"].createElement(FABModalPresenter, {
|
|
13669
|
+
ref: function ref(_ref) {
|
|
13670
|
+
_ref3 = _ref;
|
|
13671
|
+
}
|
|
13672
|
+
}, newContent));
|
|
13673
|
+
};
|
|
13674
|
+
rootSiblings = new RootSiblings__default["default"]( /*#__PURE__*/React__default["default"].createElement(FABModalPresenter, {
|
|
13675
|
+
ref: function ref(_ref) {
|
|
13676
|
+
_ref3 = _ref;
|
|
13677
|
+
}
|
|
13678
|
+
}, content));
|
|
13679
|
+
return {
|
|
13680
|
+
dismiss: dismiss,
|
|
13681
|
+
update: update
|
|
13682
|
+
};
|
|
13683
|
+
};
|
|
13684
|
+
FABModalPresenter.displayName = 'FABModalPresenter';
|
|
13685
|
+
|
|
13686
|
+
var wrapperStyle$1 = {
|
|
13687
|
+
width: reactNative.Dimensions.get('window').width,
|
|
13688
|
+
height: reactNative.Dimensions.get('window').height
|
|
13689
|
+
};
|
|
13690
|
+
var fABModal = function fABModal(_ref) {
|
|
13691
|
+
var children = _ref.children,
|
|
13692
|
+
onShow = _ref.onShow,
|
|
13693
|
+
testID = _ref.testID,
|
|
13694
|
+
_ref$visible = _ref.visible,
|
|
13695
|
+
visible = _ref$visible === void 0 ? true : _ref$visible;
|
|
13696
|
+
var _React$useState = React__default["default"].useState(),
|
|
13697
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
13698
|
+
modalHandler = _React$useState2[0],
|
|
13699
|
+
setModalHandler = _React$useState2[1];
|
|
13700
|
+
var getModalContent = React__default["default"].useCallback(function () {
|
|
13701
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.View, {
|
|
13702
|
+
pointerEvents: "box-none",
|
|
13703
|
+
style: wrapperStyle$1,
|
|
13704
|
+
testID: testID
|
|
13705
|
+
}, children);
|
|
13706
|
+
}, [visible, children, onShow, testID]);
|
|
13707
|
+
React__default["default"].useEffect(function () {
|
|
13708
|
+
if (visible) {
|
|
13709
|
+
// Modal does not exist, create a new one
|
|
13710
|
+
if (!modalHandler) {
|
|
13711
|
+
var newModalHandler = showFABModal(getModalContent());
|
|
13712
|
+
setModalHandler(newModalHandler);
|
|
13713
|
+
onShow === null || onShow === void 0 ? void 0 : onShow();
|
|
13714
|
+
}
|
|
13715
|
+
// Modal already exists, update it
|
|
13716
|
+
else {
|
|
13717
|
+
modalHandler.update(getModalContent());
|
|
13718
|
+
}
|
|
13719
|
+
} else {
|
|
13720
|
+
modalHandler === null || modalHandler === void 0 ? void 0 : modalHandler.dismiss();
|
|
13721
|
+
setModalHandler(undefined);
|
|
13722
|
+
}
|
|
13723
|
+
}, [getModalContent]);
|
|
13724
|
+
return null;
|
|
13725
|
+
};
|
|
13726
|
+
|
|
13597
13727
|
var ActionGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
13598
13728
|
var headerTitle = _ref.headerTitle,
|
|
13599
13729
|
onPress = _ref.onPress,
|
|
@@ -13644,7 +13774,7 @@ var ActionGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
13644
13774
|
inputRange: [0, 1],
|
|
13645
13775
|
outputRange: [0, 1]
|
|
13646
13776
|
});
|
|
13647
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledContainer$2, {
|
|
13777
|
+
return /*#__PURE__*/React__default["default"].createElement(fABModal, null, /*#__PURE__*/React__default["default"].createElement(StyledContainer$2, {
|
|
13648
13778
|
testID: testID,
|
|
13649
13779
|
pointerEvents: "box-none",
|
|
13650
13780
|
style: style
|
|
@@ -13688,7 +13818,7 @@ var ActionGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
13688
13818
|
active: active,
|
|
13689
13819
|
title: fabTitle,
|
|
13690
13820
|
ref: fabRef
|
|
13691
|
-
}));
|
|
13821
|
+
})));
|
|
13692
13822
|
});
|
|
13693
13823
|
ActionGroup.displayName = 'FAB.ActionGroup';
|
|
13694
13824
|
|
|
@@ -14532,8 +14662,7 @@ var StyledWrapper$4 = index$b(reactNative.View)(function (_ref) {
|
|
|
14532
14662
|
height: theme.__hd__.progress.sizes.barHeight,
|
|
14533
14663
|
alignSelf: 'stretch',
|
|
14534
14664
|
backgroundColor: theme.__hd__.progress.colors.incompleteness[THEME_INTENT_MAP[themeIntent]],
|
|
14535
|
-
overflow: 'hidden'
|
|
14536
|
-
borderRadius: theme.__hd__.progress.radii["default"]
|
|
14665
|
+
overflow: 'hidden'
|
|
14537
14666
|
};
|
|
14538
14667
|
});
|
|
14539
14668
|
var StyledInner = index$b(reactNative.Animated.View)(function (_ref2) {
|
|
@@ -15800,7 +15929,7 @@ var StyledWrapper$2 = index$b(reactNative.View)(function (_ref) {
|
|
|
15800
15929
|
height: theme.__hd__["switch"].sizes.selector.height,
|
|
15801
15930
|
borderRadius: theme.__hd__["switch"].radii.selector["default"],
|
|
15802
15931
|
backgroundColor: theme.__hd__["switch"].colors.selector.background,
|
|
15803
|
-
|
|
15932
|
+
padding: theme.__hd__["switch"].spaces.selector.wrapperPadding,
|
|
15804
15933
|
position: 'relative'
|
|
15805
15934
|
};
|
|
15806
15935
|
});
|
|
@@ -15825,10 +15954,15 @@ var StyledIconWrapper$1 = index$b(AnimatedView)(function (_ref3) {
|
|
|
15825
15954
|
});
|
|
15826
15955
|
var StyledKnot$1 = index$b(AnimatedView)(function (_ref4) {
|
|
15827
15956
|
var theme = _ref4.theme;
|
|
15828
|
-
return
|
|
15957
|
+
return {
|
|
15829
15958
|
borderRadius: theme.__hd__["switch"].radii.selector["default"],
|
|
15830
|
-
backgroundColor: theme.__hd__["switch"].colors.selector.textBackground
|
|
15831
|
-
|
|
15959
|
+
backgroundColor: theme.__hd__["switch"].colors.selector.textBackground,
|
|
15960
|
+
position: 'absolute',
|
|
15961
|
+
top: theme.__hd__["switch"].spaces.selector.wrapperPadding,
|
|
15962
|
+
bottom: theme.__hd__["switch"].spaces.selector.wrapperPadding,
|
|
15963
|
+
left: theme.__hd__["switch"].spaces.selector.wrapperPadding,
|
|
15964
|
+
right: theme.__hd__["switch"].spaces.selector.wrapperPadding
|
|
15965
|
+
};
|
|
15832
15966
|
});
|
|
15833
15967
|
|
|
15834
15968
|
var OptionContent = function OptionContent(_ref) {
|
|
@@ -15904,6 +16038,7 @@ var SelectorSwitch = function SelectorSwitch(_ref) {
|
|
|
15904
16038
|
_onPress = _ref.onPress,
|
|
15905
16039
|
style = _ref.style,
|
|
15906
16040
|
testID = _ref.testID;
|
|
16041
|
+
var theme = useTheme$1();
|
|
15907
16042
|
var _useState = React.useState(0),
|
|
15908
16043
|
_useState2 = _slicedToArray(_useState, 2),
|
|
15909
16044
|
knotWidth = _useState2[0],
|
|
@@ -15915,7 +16050,7 @@ var SelectorSwitch = function SelectorSwitch(_ref) {
|
|
|
15915
16050
|
var animatedValue = React.useRef(new reactNative.Animated.Value(0)).current;
|
|
15916
16051
|
var translateX = animatedValue.interpolate({
|
|
15917
16052
|
inputRange: [0, 1],
|
|
15918
|
-
outputRange: [0, Math.floor(containerWidth - knotWidth)]
|
|
16053
|
+
outputRange: [0, Math.floor(containerWidth - knotWidth - theme.space.small)]
|
|
15919
16054
|
});
|
|
15920
16055
|
React.useEffect(function () {
|
|
15921
16056
|
reactNative.Animated.timing(animatedValue, {
|
|
@@ -15924,10 +16059,10 @@ var SelectorSwitch = function SelectorSwitch(_ref) {
|
|
|
15924
16059
|
easing: reactNative.Easing.inOut(reactNative.Easing.ease),
|
|
15925
16060
|
useNativeDriver: reactNative.Platform.OS === 'ios' || reactNative.Platform.OS === 'android'
|
|
15926
16061
|
}).start();
|
|
15927
|
-
}, [value
|
|
16062
|
+
}, [value]);
|
|
15928
16063
|
var onContainerLayout = React.useCallback(function (e) {
|
|
15929
16064
|
setContainerWidth(e.nativeEvent.layout.width);
|
|
15930
|
-
}, []);
|
|
16065
|
+
}, [options]);
|
|
15931
16066
|
var onItemLayout = React.useCallback(function (e, optionValue) {
|
|
15932
16067
|
if (optionValue === value) {
|
|
15933
16068
|
setKnotWidth(e.nativeEvent.layout.width);
|