@hero-design/rn 8.34.2 → 8.35.0-alpha.1
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 +235 -93
- package/lib/index.js +235 -92
- 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 +55 -35
- package/src/components/FAB/FAB.tsx +10 -1
- 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/index.ts +2 -0
- 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 +2 -1
- 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, {
|
|
@@ -13463,10 +13463,17 @@ var FAB = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
|
|
|
13463
13463
|
return /*#__PURE__*/React__default["default"].createElement(StyledFAB$1
|
|
13464
13464
|
/** Add a small timeout before executing animation to prevent flakiness */, {
|
|
13465
13465
|
onLayout: function onLayout() {
|
|
13466
|
-
|
|
13466
|
+
setTimeout(function () {
|
|
13467
13467
|
return setCanAnimate(true);
|
|
13468
13468
|
}, 500);
|
|
13469
13469
|
},
|
|
13470
|
+
ref: function ref(_ref4) {
|
|
13471
|
+
if (_ref4) {
|
|
13472
|
+
_ref4.measureInWindow(function (x, y, width, height) {
|
|
13473
|
+
console.log('measureInWindow', x, y, width, height);
|
|
13474
|
+
});
|
|
13475
|
+
}
|
|
13476
|
+
},
|
|
13470
13477
|
underlayColor: theme.__hd__.fab.colors.buttonPressedBackground,
|
|
13471
13478
|
onPress: onPress,
|
|
13472
13479
|
style: [style, {
|
|
@@ -13947,11 +13954,11 @@ var ModalProvider = function ModalProvider(_ref) {
|
|
|
13947
13954
|
return /*#__PURE__*/React__default["default"].createElement(RootSiblings.RootSiblingParent, null, children);
|
|
13948
13955
|
};
|
|
13949
13956
|
|
|
13950
|
-
var _excluded$
|
|
13957
|
+
var _excluded$d = ["style", "children"];
|
|
13951
13958
|
var ModalPresenter = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
13952
13959
|
var style = _ref2.style,
|
|
13953
13960
|
children = _ref2.children,
|
|
13954
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
13961
|
+
props = _objectWithoutProperties(_ref2, _excluded$d);
|
|
13955
13962
|
var animatedOpacity = React.useRef(new reactNative.Animated.Value(0));
|
|
13956
13963
|
var theme = useTheme();
|
|
13957
13964
|
React__default["default"].useEffect(function () {
|
|
@@ -14035,7 +14042,7 @@ var showModal = function showModal(content) {
|
|
|
14035
14042
|
};
|
|
14036
14043
|
ModalPresenter.displayName = 'ModalPresenter';
|
|
14037
14044
|
|
|
14038
|
-
var wrapperStyle = {
|
|
14045
|
+
var wrapperStyle$1 = {
|
|
14039
14046
|
width: reactNative.Dimensions.get('window').width,
|
|
14040
14047
|
height: reactNative.Dimensions.get('window').height
|
|
14041
14048
|
};
|
|
@@ -14056,11 +14063,11 @@ var Modal = function Modal(_ref) {
|
|
|
14056
14063
|
var getModalContent = React__default["default"].useCallback(function () {
|
|
14057
14064
|
var isUpdate = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
14058
14065
|
return animationType === 'none' ? /*#__PURE__*/React__default["default"].createElement(reactNative.View, {
|
|
14059
|
-
style: wrapperStyle,
|
|
14066
|
+
style: wrapperStyle$1,
|
|
14060
14067
|
testID: testID
|
|
14061
14068
|
}, children) : /*#__PURE__*/React__default["default"].createElement(ModalContentWrapper, {
|
|
14062
14069
|
visible: visible,
|
|
14063
|
-
style: wrapperStyle,
|
|
14070
|
+
style: wrapperStyle$1,
|
|
14064
14071
|
animationType: animationType,
|
|
14065
14072
|
testID: testID,
|
|
14066
14073
|
onShow: onShow,
|
|
@@ -14409,7 +14416,7 @@ var StyledStrokeEnd = index$b(reactNative.View)(function (_ref6) {
|
|
|
14409
14416
|
};
|
|
14410
14417
|
});
|
|
14411
14418
|
|
|
14412
|
-
var _excluded$
|
|
14419
|
+
var _excluded$c = ["value", "renderValue", "intent", "style", "testID"];
|
|
14413
14420
|
var HalfCircle = function HalfCircle(_ref) {
|
|
14414
14421
|
var type = _ref.type,
|
|
14415
14422
|
themeIntent = _ref.themeIntent;
|
|
@@ -14430,7 +14437,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
14430
14437
|
intent = _ref2$intent === void 0 ? 'primary' : _ref2$intent,
|
|
14431
14438
|
style = _ref2.style,
|
|
14432
14439
|
testID = _ref2.testID,
|
|
14433
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
14440
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$c);
|
|
14434
14441
|
var theme = useTheme$1();
|
|
14435
14442
|
var radius = theme.__hd__.progress.sizes.circleDiameter / 2;
|
|
14436
14443
|
var progressAnimatedValue = React.useRef(new reactNative.Animated.Value(0));
|
|
@@ -14532,8 +14539,7 @@ var StyledWrapper$4 = index$b(reactNative.View)(function (_ref) {
|
|
|
14532
14539
|
height: theme.__hd__.progress.sizes.barHeight,
|
|
14533
14540
|
alignSelf: 'stretch',
|
|
14534
14541
|
backgroundColor: theme.__hd__.progress.colors.incompleteness[THEME_INTENT_MAP[themeIntent]],
|
|
14535
|
-
overflow: 'hidden'
|
|
14536
|
-
borderRadius: theme.__hd__.progress.radii["default"]
|
|
14542
|
+
overflow: 'hidden'
|
|
14537
14543
|
};
|
|
14538
14544
|
});
|
|
14539
14545
|
var StyledInner = index$b(reactNative.Animated.View)(function (_ref2) {
|
|
@@ -14546,14 +14552,14 @@ var StyledInner = index$b(reactNative.Animated.View)(function (_ref2) {
|
|
|
14546
14552
|
};
|
|
14547
14553
|
});
|
|
14548
14554
|
|
|
14549
|
-
var _excluded$
|
|
14555
|
+
var _excluded$b = ["value", "intent", "style", "testID"];
|
|
14550
14556
|
var ProgressBar = function ProgressBar(_ref) {
|
|
14551
14557
|
var value = _ref.value,
|
|
14552
14558
|
_ref$intent = _ref.intent,
|
|
14553
14559
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
14554
14560
|
style = _ref.style,
|
|
14555
14561
|
testID = _ref.testID,
|
|
14556
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
14562
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$b);
|
|
14557
14563
|
var _useState = React.useState(0),
|
|
14558
14564
|
_useState2 = _slicedToArray(_useState, 2),
|
|
14559
14565
|
width = _useState2[0],
|
|
@@ -14744,14 +14750,14 @@ var AnimatedSpinner = function AnimatedSpinner(_ref) {
|
|
|
14744
14750
|
}, dotProps))));
|
|
14745
14751
|
};
|
|
14746
14752
|
|
|
14747
|
-
var _excluded$
|
|
14753
|
+
var _excluded$a = ["testID", "size", "intent"];
|
|
14748
14754
|
var Spinner = function Spinner(_ref) {
|
|
14749
14755
|
var testID = _ref.testID,
|
|
14750
14756
|
_ref$size = _ref.size,
|
|
14751
14757
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
14752
14758
|
_ref$intent = _ref.intent,
|
|
14753
14759
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
14754
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
14760
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$a);
|
|
14755
14761
|
return /*#__PURE__*/React__default["default"].createElement(StyledView$1, nativeProps, /*#__PURE__*/React__default["default"].createElement(StyledSpinnerContainer, {
|
|
14756
14762
|
testID: testID
|
|
14757
14763
|
}, /*#__PURE__*/React__default["default"].createElement(AnimatedSpinner, {
|
|
@@ -14784,7 +14790,7 @@ var SwipeableAction = function SwipeableAction(_ref) {
|
|
|
14784
14790
|
}, children);
|
|
14785
14791
|
};
|
|
14786
14792
|
|
|
14787
|
-
var _excluded$
|
|
14793
|
+
var _excluded$9 = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth"];
|
|
14788
14794
|
var renderActions = function renderActions(actions, width, progress, direction) {
|
|
14789
14795
|
var trans = progress.interpolate({
|
|
14790
14796
|
inputRange: [0, 1],
|
|
@@ -14809,7 +14815,7 @@ var Swipeable = function Swipeable(_ref) {
|
|
|
14809
14815
|
leftActionsWidth = _ref.leftActionsWidth,
|
|
14810
14816
|
rightActions = _ref.rightActions,
|
|
14811
14817
|
rightActionsWidth = _ref.rightActionsWidth,
|
|
14812
|
-
swipeableProps = _objectWithoutProperties(_ref, _excluded$
|
|
14818
|
+
swipeableProps = _objectWithoutProperties(_ref, _excluded$9);
|
|
14813
14819
|
var _useWindowDimensions = reactNative.useWindowDimensions(),
|
|
14814
14820
|
width = _useWindowDimensions.width;
|
|
14815
14821
|
var swipeableRef = React.useRef(null);
|
|
@@ -15114,7 +15120,7 @@ var StyledSectionList = index$b(reactNative.SectionList)(function (_ref4) {
|
|
|
15114
15120
|
};
|
|
15115
15121
|
});
|
|
15116
15122
|
|
|
15117
|
-
var _excluded$
|
|
15123
|
+
var _excluded$8 = ["keyExtractor", "loading", "onEndReached", "onQueryChange", "sections", "renderItem", "sectionListRef"];
|
|
15118
15124
|
var BaseOptionList = function BaseOptionList(_ref) {
|
|
15119
15125
|
var keyExtractor = _ref.keyExtractor,
|
|
15120
15126
|
loading = _ref.loading,
|
|
@@ -15123,7 +15129,7 @@ var BaseOptionList = function BaseOptionList(_ref) {
|
|
|
15123
15129
|
sections = _ref.sections,
|
|
15124
15130
|
renderItem = _ref.renderItem,
|
|
15125
15131
|
sectionListRef = _ref.sectionListRef,
|
|
15126
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
15132
|
+
rest = _objectWithoutProperties(_ref, _excluded$8);
|
|
15127
15133
|
var theme = useTheme$1();
|
|
15128
15134
|
var _useState = React.useState(false),
|
|
15129
15135
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -15193,7 +15199,7 @@ var Option$2 = function Option(_ref) {
|
|
|
15193
15199
|
return highlighted === true ? /*#__PURE__*/React__default["default"].createElement(List.Item, props) : /*#__PURE__*/React__default["default"].createElement(List.BasicItem, props);
|
|
15194
15200
|
};
|
|
15195
15201
|
|
|
15196
|
-
var _excluded$
|
|
15202
|
+
var _excluded$7 = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
|
|
15197
15203
|
var OptionList$1 = function OptionList(_ref) {
|
|
15198
15204
|
var keyExtractor = _ref.keyExtractor,
|
|
15199
15205
|
loading = _ref.loading,
|
|
@@ -15204,7 +15210,7 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
15204
15210
|
renderOption = _ref.renderOption,
|
|
15205
15211
|
value = _ref.value,
|
|
15206
15212
|
sectionListRef = _ref.sectionListRef,
|
|
15207
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
15213
|
+
rest = _objectWithoutProperties(_ref, _excluded$7);
|
|
15208
15214
|
var renderItem = function renderItem(info) {
|
|
15209
15215
|
var item = info.item;
|
|
15210
15216
|
var selected = value.includes(info.item.value);
|
|
@@ -15392,7 +15398,7 @@ var StyledOptionList = index$b(BaseOptionList)(function (_ref) {
|
|
|
15392
15398
|
};
|
|
15393
15399
|
});
|
|
15394
15400
|
|
|
15395
|
-
var _excluded$
|
|
15401
|
+
var _excluded$6 = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
|
|
15396
15402
|
var OptionList = function OptionList(_ref) {
|
|
15397
15403
|
var keyExtractor = _ref.keyExtractor,
|
|
15398
15404
|
loading = _ref.loading,
|
|
@@ -15403,7 +15409,7 @@ var OptionList = function OptionList(_ref) {
|
|
|
15403
15409
|
renderOption = _ref.renderOption,
|
|
15404
15410
|
value = _ref.value,
|
|
15405
15411
|
sectionListRef = _ref.sectionListRef,
|
|
15406
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
15412
|
+
rest = _objectWithoutProperties(_ref, _excluded$6);
|
|
15407
15413
|
var renderItem = function renderItem(info) {
|
|
15408
15414
|
var item = info.item;
|
|
15409
15415
|
var selected = item.value === value;
|
|
@@ -15568,7 +15574,7 @@ var StyledGradientContainer = index$b(Box)(function (_ref2) {
|
|
|
15568
15574
|
};
|
|
15569
15575
|
});
|
|
15570
15576
|
|
|
15571
|
-
var _excluded$
|
|
15577
|
+
var _excluded$5 = ["intent", "variant", "style", "onLayout"];
|
|
15572
15578
|
var AnimatedLinearGradient = reactNative.Animated.createAnimatedComponent(LinearGradient__default["default"]);
|
|
15573
15579
|
var gradientPositions = {
|
|
15574
15580
|
start: {
|
|
@@ -15600,7 +15606,7 @@ var Skeleton = function Skeleton(_ref) {
|
|
|
15600
15606
|
variant = _ref$variant === void 0 ? 'rounded' : _ref$variant,
|
|
15601
15607
|
style = _ref.style,
|
|
15602
15608
|
onLayout = _ref.onLayout,
|
|
15603
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
15609
|
+
props = _objectWithoutProperties(_ref, _excluded$5);
|
|
15604
15610
|
var theme = useTheme();
|
|
15605
15611
|
var colors = React.useMemo(function () {
|
|
15606
15612
|
return getGradientColors(theme, intent);
|
|
@@ -15732,7 +15738,7 @@ var StyledSuccessModal = index$b(reactNative.Modal)({
|
|
|
15732
15738
|
width: '100%'
|
|
15733
15739
|
});
|
|
15734
15740
|
|
|
15735
|
-
var _excluded$
|
|
15741
|
+
var _excluded$4 = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
|
|
15736
15742
|
var renderImage = function renderImage(image) {
|
|
15737
15743
|
if ( /*#__PURE__*/React.isValidElement(image)) {
|
|
15738
15744
|
return /*#__PURE__*/React__default["default"].cloneElement(image, {
|
|
@@ -15758,7 +15764,7 @@ var SuccessPage = function SuccessPage(_ref) {
|
|
|
15758
15764
|
onCtaPress = _ref$onCtaPress === void 0 ? noop$1 : _ref$onCtaPress,
|
|
15759
15765
|
secondaryCtaText = _ref.secondaryCtaText,
|
|
15760
15766
|
onSecondaryCtaPress = _ref.onSecondaryCtaPress,
|
|
15761
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
15767
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$4);
|
|
15762
15768
|
var showSecondaryButton = secondaryCtaText && onSecondaryCtaPress;
|
|
15763
15769
|
return /*#__PURE__*/React__default["default"].createElement(StyledSuccessContainer, _extends$1({
|
|
15764
15770
|
testID: testID,
|
|
@@ -15800,7 +15806,7 @@ var StyledWrapper$2 = index$b(reactNative.View)(function (_ref) {
|
|
|
15800
15806
|
height: theme.__hd__["switch"].sizes.selector.height,
|
|
15801
15807
|
borderRadius: theme.__hd__["switch"].radii.selector["default"],
|
|
15802
15808
|
backgroundColor: theme.__hd__["switch"].colors.selector.background,
|
|
15803
|
-
|
|
15809
|
+
padding: theme.__hd__["switch"].spaces.selector.wrapperPadding,
|
|
15804
15810
|
position: 'relative'
|
|
15805
15811
|
};
|
|
15806
15812
|
});
|
|
@@ -15825,10 +15831,15 @@ var StyledIconWrapper$1 = index$b(AnimatedView)(function (_ref3) {
|
|
|
15825
15831
|
});
|
|
15826
15832
|
var StyledKnot$1 = index$b(AnimatedView)(function (_ref4) {
|
|
15827
15833
|
var theme = _ref4.theme;
|
|
15828
|
-
return
|
|
15834
|
+
return {
|
|
15829
15835
|
borderRadius: theme.__hd__["switch"].radii.selector["default"],
|
|
15830
|
-
backgroundColor: theme.__hd__["switch"].colors.selector.textBackground
|
|
15831
|
-
|
|
15836
|
+
backgroundColor: theme.__hd__["switch"].colors.selector.textBackground,
|
|
15837
|
+
position: 'absolute',
|
|
15838
|
+
top: theme.__hd__["switch"].spaces.selector.wrapperPadding,
|
|
15839
|
+
bottom: theme.__hd__["switch"].spaces.selector.wrapperPadding,
|
|
15840
|
+
left: theme.__hd__["switch"].spaces.selector.wrapperPadding,
|
|
15841
|
+
right: theme.__hd__["switch"].spaces.selector.wrapperPadding
|
|
15842
|
+
};
|
|
15832
15843
|
});
|
|
15833
15844
|
|
|
15834
15845
|
var OptionContent = function OptionContent(_ref) {
|
|
@@ -15904,6 +15915,7 @@ var SelectorSwitch = function SelectorSwitch(_ref) {
|
|
|
15904
15915
|
_onPress = _ref.onPress,
|
|
15905
15916
|
style = _ref.style,
|
|
15906
15917
|
testID = _ref.testID;
|
|
15918
|
+
var theme = useTheme$1();
|
|
15907
15919
|
var _useState = React.useState(0),
|
|
15908
15920
|
_useState2 = _slicedToArray(_useState, 2),
|
|
15909
15921
|
knotWidth = _useState2[0],
|
|
@@ -15915,7 +15927,7 @@ var SelectorSwitch = function SelectorSwitch(_ref) {
|
|
|
15915
15927
|
var animatedValue = React.useRef(new reactNative.Animated.Value(0)).current;
|
|
15916
15928
|
var translateX = animatedValue.interpolate({
|
|
15917
15929
|
inputRange: [0, 1],
|
|
15918
|
-
outputRange: [0, Math.floor(containerWidth - knotWidth)]
|
|
15930
|
+
outputRange: [0, Math.floor(containerWidth - knotWidth - theme.space.small)]
|
|
15919
15931
|
});
|
|
15920
15932
|
React.useEffect(function () {
|
|
15921
15933
|
reactNative.Animated.timing(animatedValue, {
|
|
@@ -15924,10 +15936,10 @@ var SelectorSwitch = function SelectorSwitch(_ref) {
|
|
|
15924
15936
|
easing: reactNative.Easing.inOut(reactNative.Easing.ease),
|
|
15925
15937
|
useNativeDriver: reactNative.Platform.OS === 'ios' || reactNative.Platform.OS === 'android'
|
|
15926
15938
|
}).start();
|
|
15927
|
-
}, [value
|
|
15939
|
+
}, [value]);
|
|
15928
15940
|
var onContainerLayout = React.useCallback(function (e) {
|
|
15929
15941
|
setContainerWidth(e.nativeEvent.layout.width);
|
|
15930
|
-
}, []);
|
|
15942
|
+
}, [options]);
|
|
15931
15943
|
var onItemLayout = React.useCallback(function (e, optionValue) {
|
|
15932
15944
|
if (optionValue === value) {
|
|
15933
15945
|
setKnotWidth(e.nativeEvent.layout.width);
|
|
@@ -16642,7 +16654,7 @@ var StyledText = index$b(Typography.Caption)(function (_ref3) {
|
|
|
16642
16654
|
};
|
|
16643
16655
|
});
|
|
16644
16656
|
|
|
16645
|
-
var _excluded$
|
|
16657
|
+
var _excluded$3 = ["content", "variant", "intent", "style", "testID"];
|
|
16646
16658
|
var Tag = function Tag(_ref) {
|
|
16647
16659
|
var content = _ref.content,
|
|
16648
16660
|
_ref$variant = _ref.variant,
|
|
@@ -16651,7 +16663,7 @@ var Tag = function Tag(_ref) {
|
|
|
16651
16663
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
16652
16664
|
style = _ref.style,
|
|
16653
16665
|
testID = _ref.testID,
|
|
16654
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
16666
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$3);
|
|
16655
16667
|
return /*#__PURE__*/React__default["default"].createElement(StyledView, _extends$1({}, nativeProps, {
|
|
16656
16668
|
themeIntent: intent,
|
|
16657
16669
|
themeVariant: variant,
|
|
@@ -17268,10 +17280,10 @@ var ToolbarGroup = function ToolbarGroup(_ref) {
|
|
|
17268
17280
|
}));
|
|
17269
17281
|
};
|
|
17270
17282
|
|
|
17271
|
-
var _excluded$
|
|
17283
|
+
var _excluded$2 = ["children"];
|
|
17272
17284
|
var Toolbar = function Toolbar(_ref) {
|
|
17273
17285
|
var children = _ref.children,
|
|
17274
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
17286
|
+
rest = _objectWithoutProperties(_ref, _excluded$2);
|
|
17275
17287
|
return /*#__PURE__*/React__default["default"].createElement(ToolbarWrapper, rest, children);
|
|
17276
17288
|
};
|
|
17277
17289
|
var index$1 = Object.assign(Toolbar, {
|
|
@@ -17290,7 +17302,7 @@ var StyledIconWrapper = index$b(AnimatedBox)(function (_ref) {
|
|
|
17290
17302
|
};
|
|
17291
17303
|
});
|
|
17292
17304
|
|
|
17293
|
-
var _excluded = ["options", "value", "onChange", "readonly", "disabled"];
|
|
17305
|
+
var _excluded$1 = ["options", "value", "onChange", "readonly", "disabled"];
|
|
17294
17306
|
var Rate = function Rate(_ref) {
|
|
17295
17307
|
var options = _ref.options,
|
|
17296
17308
|
value = _ref.value,
|
|
@@ -17299,7 +17311,7 @@ var Rate = function Rate(_ref) {
|
|
|
17299
17311
|
readonly = _ref$readonly === void 0 ? false : _ref$readonly,
|
|
17300
17312
|
_ref$disabled = _ref.disabled,
|
|
17301
17313
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
17302
|
-
otherProps = _objectWithoutProperties(_ref, _excluded);
|
|
17314
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$1);
|
|
17303
17315
|
var valueIndex = React.useMemo(function () {
|
|
17304
17316
|
return options.findIndex(function (item) {
|
|
17305
17317
|
return item.value === value;
|
|
@@ -33722,6 +33734,136 @@ var index = Object.assign(RichTextEditorWithRef, {
|
|
|
33722
33734
|
Toolbar: EditorToolbar
|
|
33723
33735
|
});
|
|
33724
33736
|
|
|
33737
|
+
var _excluded = ["style", "children"];
|
|
33738
|
+
var FABModalPresenter = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
33739
|
+
var style = _ref2.style,
|
|
33740
|
+
children = _ref2.children,
|
|
33741
|
+
props = _objectWithoutProperties(_ref2, _excluded);
|
|
33742
|
+
var animatedOpacity = React.useRef(new reactNative.Animated.Value(0));
|
|
33743
|
+
React__default["default"].useEffect(function () {
|
|
33744
|
+
reactNative.Animated.spring(animatedOpacity.current, {
|
|
33745
|
+
toValue: 1,
|
|
33746
|
+
useNativeDriver: true
|
|
33747
|
+
}).start();
|
|
33748
|
+
}, []);
|
|
33749
|
+
React__default["default"].useImperativeHandle(ref, function () {
|
|
33750
|
+
return {
|
|
33751
|
+
animatedOut: function animatedOut(completion) {
|
|
33752
|
+
reactNative.Animated.spring(animatedOpacity.current, {
|
|
33753
|
+
toValue: 0,
|
|
33754
|
+
useNativeDriver: true
|
|
33755
|
+
}).start(function () {
|
|
33756
|
+
completion === null || completion === void 0 ? void 0 : completion();
|
|
33757
|
+
});
|
|
33758
|
+
}
|
|
33759
|
+
};
|
|
33760
|
+
});
|
|
33761
|
+
return /*#__PURE__*/React__default["default"].createElement(Box, {
|
|
33762
|
+
style: reactNative.StyleSheet.absoluteFill,
|
|
33763
|
+
pointerEvents: "box-none"
|
|
33764
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactNative.Animated.View, _extends$1({
|
|
33765
|
+
style: [{
|
|
33766
|
+
width: '100%',
|
|
33767
|
+
height: '100%',
|
|
33768
|
+
justifyContent: 'center',
|
|
33769
|
+
alignItems: 'center',
|
|
33770
|
+
opacity: animatedOpacity.current
|
|
33771
|
+
}, style]
|
|
33772
|
+
}, props, {
|
|
33773
|
+
pointerEvents: "box-none"
|
|
33774
|
+
}), children));
|
|
33775
|
+
});
|
|
33776
|
+
/**
|
|
33777
|
+
* Present a modal on screen immediately.
|
|
33778
|
+
*
|
|
33779
|
+
* The new presented modal will be on top of existing modals if there are any.
|
|
33780
|
+
*
|
|
33781
|
+
* @param Content A component to be presented as a modal on screen.
|
|
33782
|
+
* This component will be centered horizontally and vertically on screen with
|
|
33783
|
+
* a semitransparent black overlay underneath.
|
|
33784
|
+
* @param contentProps Props for this modal component.
|
|
33785
|
+
* @returns A `ModalHandler` you can use to dismiss the modal.
|
|
33786
|
+
*/
|
|
33787
|
+
var showFABModal = function showFABModal(content) {
|
|
33788
|
+
var _ref3 = null;
|
|
33789
|
+
var rootSiblings = null;
|
|
33790
|
+
var dismiss = function dismiss(onDismiss) {
|
|
33791
|
+
if (rootSiblings) {
|
|
33792
|
+
var cleanup = function cleanup() {
|
|
33793
|
+
var _rootSiblings;
|
|
33794
|
+
(_rootSiblings = rootSiblings) === null || _rootSiblings === void 0 ? void 0 : _rootSiblings.destroy();
|
|
33795
|
+
rootSiblings = null;
|
|
33796
|
+
_ref3 = null;
|
|
33797
|
+
onDismiss === null || onDismiss === void 0 ? void 0 : onDismiss();
|
|
33798
|
+
};
|
|
33799
|
+
if (_ref3) {
|
|
33800
|
+
_ref3.animatedOut(cleanup);
|
|
33801
|
+
} else {
|
|
33802
|
+
cleanup();
|
|
33803
|
+
}
|
|
33804
|
+
}
|
|
33805
|
+
};
|
|
33806
|
+
var update = function update(newContent) {
|
|
33807
|
+
var _rootSiblings2;
|
|
33808
|
+
(_rootSiblings2 = rootSiblings) === null || _rootSiblings2 === void 0 ? void 0 : _rootSiblings2.update( /*#__PURE__*/React__default["default"].createElement(FABModalPresenter, {
|
|
33809
|
+
ref: function ref(_ref) {
|
|
33810
|
+
_ref3 = _ref;
|
|
33811
|
+
}
|
|
33812
|
+
}, newContent));
|
|
33813
|
+
};
|
|
33814
|
+
rootSiblings = new RootSiblings__default["default"]( /*#__PURE__*/React__default["default"].createElement(FABModalPresenter, {
|
|
33815
|
+
ref: function ref(_ref) {
|
|
33816
|
+
_ref3 = _ref;
|
|
33817
|
+
}
|
|
33818
|
+
}, content));
|
|
33819
|
+
return {
|
|
33820
|
+
dismiss: dismiss,
|
|
33821
|
+
update: update
|
|
33822
|
+
};
|
|
33823
|
+
};
|
|
33824
|
+
FABModalPresenter.displayName = 'FABModalPresenter';
|
|
33825
|
+
|
|
33826
|
+
var wrapperStyle = {
|
|
33827
|
+
width: reactNative.Dimensions.get('window').width,
|
|
33828
|
+
height: reactNative.Dimensions.get('window').height
|
|
33829
|
+
};
|
|
33830
|
+
var fABModal = function fABModal(_ref) {
|
|
33831
|
+
var children = _ref.children,
|
|
33832
|
+
onShow = _ref.onShow,
|
|
33833
|
+
testID = _ref.testID,
|
|
33834
|
+
_ref$visible = _ref.visible,
|
|
33835
|
+
visible = _ref$visible === void 0 ? true : _ref$visible;
|
|
33836
|
+
var _React$useState = React__default["default"].useState(),
|
|
33837
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
33838
|
+
modalHandler = _React$useState2[0],
|
|
33839
|
+
setModalHandler = _React$useState2[1];
|
|
33840
|
+
var getModalContent = React__default["default"].useCallback(function () {
|
|
33841
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.View, {
|
|
33842
|
+
pointerEvents: "box-none",
|
|
33843
|
+
style: wrapperStyle,
|
|
33844
|
+
testID: testID
|
|
33845
|
+
}, children);
|
|
33846
|
+
}, [visible, children, onShow, testID]);
|
|
33847
|
+
React__default["default"].useEffect(function () {
|
|
33848
|
+
if (visible) {
|
|
33849
|
+
// Modal does not exist, create a new one
|
|
33850
|
+
if (!modalHandler) {
|
|
33851
|
+
var newModalHandler = showFABModal(getModalContent());
|
|
33852
|
+
setModalHandler(newModalHandler);
|
|
33853
|
+
onShow === null || onShow === void 0 ? void 0 : onShow();
|
|
33854
|
+
}
|
|
33855
|
+
// Modal already exists, update it
|
|
33856
|
+
else {
|
|
33857
|
+
modalHandler.update(getModalContent());
|
|
33858
|
+
}
|
|
33859
|
+
} else {
|
|
33860
|
+
modalHandler === null || modalHandler === void 0 ? void 0 : modalHandler.dismiss();
|
|
33861
|
+
setModalHandler(undefined);
|
|
33862
|
+
}
|
|
33863
|
+
}, [getModalContent]);
|
|
33864
|
+
return null;
|
|
33865
|
+
};
|
|
33866
|
+
|
|
33725
33867
|
exports.Accordion = Accordion;
|
|
33726
33868
|
exports.Alert = Alert;
|
|
33727
33869
|
exports.Attachment = Attachment;
|
|
@@ -33743,6 +33885,7 @@ exports.Drawer = index$8;
|
|
|
33743
33885
|
exports.Empty = Empty;
|
|
33744
33886
|
exports.Error = Error$1;
|
|
33745
33887
|
exports.FAB = index$7;
|
|
33888
|
+
exports.FABModal = fABModal;
|
|
33746
33889
|
exports.Icon = Icon;
|
|
33747
33890
|
exports.Image = Image;
|
|
33748
33891
|
exports.List = List;
|