@hero-design/rn 8.64.3 → 8.64.4-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build$colon$types.log +0 -0
- package/.turbo/turbo-build.log +5 -2
- package/.turbo/turbo-lint.log +179 -0
- package/.turbo/turbo-publish:npm.log +9 -0
- package/.turbo/turbo-test.log +4565 -0
- package/.turbo/turbo-type-check.log +0 -0
- package/es/index.js +0 -0
- package/lib/index.js +537 -540
- package/package.json +2 -2
- package/{rollup.config.js → rollup.config.mjs} +3 -1
- package/stats/8.64.3/rn-stats.html +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/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 +35 -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 +0 -0
- package/types/theme/components/tabs.d.ts +0 -0
- package/types/theme/components/tag.d.ts +0 -0
- package/types/theme/components/textInput.d.ts +0 -0
- package/types/theme/components/timePicker.d.ts +0 -0
- package/types/theme/components/toast.d.ts +0 -0
- package/types/theme/components/toolbar.d.ts +0 -0
- package/types/theme/components/typography.d.ts +0 -0
- package/types/theme/getTheme.d.ts +0 -0
- package/types/theme/global/borders.d.ts +0 -0
- package/types/theme/global/colors/eBens.d.ts +0 -0
- package/types/theme/global/colors/global.d.ts +0 -0
- package/types/theme/global/colors/globalDark.d.ts +0 -0
- package/types/theme/global/colors/jobs.d.ts +0 -0
- package/types/theme/global/colors/swag.d.ts +0 -0
- package/types/theme/global/colors/swagDark.d.ts +0 -0
- package/types/theme/global/colors/types.d.ts +0 -0
- package/types/theme/global/colors/wallet.d.ts +0 -0
- package/types/theme/global/colors/work.d.ts +0 -0
- package/types/theme/global/index.d.ts +0 -0
- package/types/theme/global/scale.d.ts +0 -0
- package/types/theme/global/sizes.d.ts +0 -0
- package/types/theme/global/space.d.ts +0 -0
- package/types/theme/global/typography.d.ts +0 -0
- package/types/theme/index.d.ts +0 -0
- package/types/types.d.ts +0 -0
- package/types/utils/functions.d.ts +0 -0
- package/types/utils/helpers.d.ts +0 -0
- package/types/utils/hooks.d.ts +0 -0
- package/types/utils/scale.d.ts +0 -0
package/lib/index.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
3
|
var reactNative = require('react-native');
|
|
6
4
|
var React = require('react');
|
|
7
5
|
var reactNativeVectorIcons = require('react-native-vector-icons');
|
|
@@ -15,7 +13,7 @@ var PagerView = require('react-native-pager-view');
|
|
|
15
13
|
var events = require('events');
|
|
16
14
|
var reactNativeWebview = require('react-native-webview');
|
|
17
15
|
|
|
18
|
-
function
|
|
16
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
19
17
|
|
|
20
18
|
function _interopNamespace(e) {
|
|
21
19
|
if (e && e.__esModule) return e;
|
|
@@ -31,17 +29,16 @@ function _interopNamespace(e) {
|
|
|
31
29
|
}
|
|
32
30
|
});
|
|
33
31
|
}
|
|
34
|
-
n
|
|
32
|
+
n.default = e;
|
|
35
33
|
return Object.freeze(n);
|
|
36
34
|
}
|
|
37
35
|
|
|
38
36
|
var reactNative__namespace = /*#__PURE__*/_interopNamespace(reactNative);
|
|
39
37
|
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
40
|
-
var
|
|
41
|
-
var
|
|
42
|
-
var
|
|
43
|
-
var
|
|
44
|
-
var PagerView__default = /*#__PURE__*/_interopDefaultLegacy(PagerView);
|
|
38
|
+
var DateTimePicker__default = /*#__PURE__*/_interopDefault(DateTimePicker);
|
|
39
|
+
var RnSlider__default = /*#__PURE__*/_interopDefault(RnSlider);
|
|
40
|
+
var LinearGradient__default = /*#__PURE__*/_interopDefault(LinearGradient);
|
|
41
|
+
var PagerView__default = /*#__PURE__*/_interopDefault(PagerView);
|
|
45
42
|
|
|
46
43
|
function _iterableToArrayLimit(r, l) {
|
|
47
44
|
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
@@ -4946,15 +4943,15 @@ var ThemeSwitcher = function ThemeSwitcher(_ref) {
|
|
|
4946
4943
|
return getTheme$1(scale$1, swagDarkSystemPalette);
|
|
4947
4944
|
}
|
|
4948
4945
|
}, [name]);
|
|
4949
|
-
return /*#__PURE__*/
|
|
4946
|
+
return /*#__PURE__*/React__namespace.default.createElement(ThemeProvider, {
|
|
4950
4947
|
theme: theme
|
|
4951
4948
|
}, children);
|
|
4952
4949
|
};
|
|
4953
4950
|
var withTheme = function withTheme(C, themeName) {
|
|
4954
4951
|
return function (props) {
|
|
4955
|
-
return /*#__PURE__*/
|
|
4952
|
+
return /*#__PURE__*/React__namespace.default.createElement(ThemeSwitcher, {
|
|
4956
4953
|
name: themeName
|
|
4957
|
-
}, /*#__PURE__*/
|
|
4954
|
+
}, /*#__PURE__*/React__namespace.default.createElement(C, props));
|
|
4958
4955
|
};
|
|
4959
4956
|
};
|
|
4960
4957
|
|
|
@@ -6638,14 +6635,14 @@ var index$9 = components.reduce(function (acc, comp) {
|
|
|
6638
6635
|
|
|
6639
6636
|
// Get previous state value
|
|
6640
6637
|
var usePrevious = function usePrevious(value) {
|
|
6641
|
-
var ref =
|
|
6642
|
-
|
|
6638
|
+
var ref = React__namespace.default.useRef();
|
|
6639
|
+
React__namespace.default.useEffect(function () {
|
|
6643
6640
|
ref.current = value;
|
|
6644
6641
|
}, [value]);
|
|
6645
6642
|
return ref.current;
|
|
6646
6643
|
};
|
|
6647
6644
|
function usePropsOrInternalState(initialState, state, setState) {
|
|
6648
|
-
var _React$useState =
|
|
6645
|
+
var _React$useState = React__namespace.default.useState(initialState),
|
|
6649
6646
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
6650
6647
|
internalState = _React$useState2[0],
|
|
6651
6648
|
setInternalState = _React$useState2[1];
|
|
@@ -6693,11 +6690,11 @@ var Collapse = function Collapse(_ref) {
|
|
|
6693
6690
|
testID = _ref.testID,
|
|
6694
6691
|
style = _ref.style,
|
|
6695
6692
|
onLayout = _ref.onLayout;
|
|
6696
|
-
var _React$useState =
|
|
6693
|
+
var _React$useState = React__namespace.default.useState(0),
|
|
6697
6694
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
6698
6695
|
contentHeight = _React$useState2[0],
|
|
6699
6696
|
setContentHeight = _React$useState2[1];
|
|
6700
|
-
var _React$useState3 =
|
|
6697
|
+
var _React$useState3 = React__namespace.default.useState(false),
|
|
6701
6698
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
6702
6699
|
componentMounted = _React$useState4[0],
|
|
6703
6700
|
setComponentMounted = _React$useState4[1];
|
|
@@ -6715,13 +6712,13 @@ var Collapse = function Collapse(_ref) {
|
|
|
6715
6712
|
setComponentMounted(true);
|
|
6716
6713
|
onLayout === null || onLayout === void 0 || onLayout(e);
|
|
6717
6714
|
}, []);
|
|
6718
|
-
return /*#__PURE__*/
|
|
6715
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledWrapper$d, {
|
|
6719
6716
|
style: {
|
|
6720
6717
|
height: open ? contentHeight : 0
|
|
6721
6718
|
},
|
|
6722
6719
|
onLayout: onCollapseLayout,
|
|
6723
6720
|
testID: testID
|
|
6724
|
-
}, /*#__PURE__*/
|
|
6721
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledHiddenWrapper, null, /*#__PURE__*/React__namespace.default.createElement(StyledChildWrapper, {
|
|
6725
6722
|
onLayout: function onLayout(event) {
|
|
6726
6723
|
return fetchMaxHeight(event.nativeEvent.layout);
|
|
6727
6724
|
},
|
|
@@ -6797,7 +6794,7 @@ var Text = function Text(_ref) {
|
|
|
6797
6794
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
6798
6795
|
nativeProps = _objectWithoutProperties(_ref, _excluded$D);
|
|
6799
6796
|
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.');
|
|
6800
|
-
return /*#__PURE__*/
|
|
6797
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledText$3, _extends$1({}, nativeProps, {
|
|
6801
6798
|
themeFontSize: fontSize,
|
|
6802
6799
|
themeFontWeight: fontWeight,
|
|
6803
6800
|
themeIntent: intent,
|
|
@@ -6835,7 +6832,7 @@ var Caption = function Caption(_ref) {
|
|
|
6835
6832
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
6836
6833
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
6837
6834
|
nativeProps = _objectWithoutProperties(_ref, _excluded$C);
|
|
6838
|
-
return /*#__PURE__*/
|
|
6835
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledCaption, _extends$1({}, nativeProps, {
|
|
6839
6836
|
themeFontWeight: fontWeight,
|
|
6840
6837
|
themeIntent: intent,
|
|
6841
6838
|
allowFontScaling: allowFontScaling
|
|
@@ -6861,7 +6858,7 @@ var Label = function Label(_ref) {
|
|
|
6861
6858
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
6862
6859
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
6863
6860
|
nativeProps = _objectWithoutProperties(_ref, _excluded$B);
|
|
6864
|
-
return /*#__PURE__*/
|
|
6861
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledLabel$1, _extends$1({}, nativeProps, {
|
|
6865
6862
|
themeIntent: intent,
|
|
6866
6863
|
allowFontScaling: allowFontScaling
|
|
6867
6864
|
}), children);
|
|
@@ -6893,7 +6890,7 @@ var Title = function Title(_ref) {
|
|
|
6893
6890
|
_ref$typeface = _ref.typeface,
|
|
6894
6891
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
6895
6892
|
nativeProps = _objectWithoutProperties(_ref, _excluded$A);
|
|
6896
|
-
return /*#__PURE__*/
|
|
6893
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledTitle$1, _extends$1({}, nativeProps, {
|
|
6897
6894
|
themeLevel: level,
|
|
6898
6895
|
themeTypeface: typeface,
|
|
6899
6896
|
themeIntent: intent,
|
|
@@ -6939,7 +6936,7 @@ var Body = function Body(_ref) {
|
|
|
6939
6936
|
_ref$variant = _ref.variant,
|
|
6940
6937
|
variant = _ref$variant === void 0 ? 'regular' : _ref$variant,
|
|
6941
6938
|
nativeProps = _objectWithoutProperties(_ref, _excluded$z);
|
|
6942
|
-
return /*#__PURE__*/
|
|
6939
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledBody, _extends$1({}, nativeProps, {
|
|
6943
6940
|
themeTypeface: typeface,
|
|
6944
6941
|
themeIntent: intent,
|
|
6945
6942
|
themeVariant: variant,
|
|
@@ -7526,13 +7523,13 @@ var AnimatedIcon = function AnimatedIcon(_ref) {
|
|
|
7526
7523
|
inputRange: [0, 1],
|
|
7527
7524
|
outputRange: ['0deg', '360deg']
|
|
7528
7525
|
});
|
|
7529
|
-
return /*#__PURE__*/
|
|
7526
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.Animated.View, {
|
|
7530
7527
|
style: [{
|
|
7531
7528
|
transform: [{
|
|
7532
7529
|
rotate: interpolatedRotateAnimation
|
|
7533
7530
|
}]
|
|
7534
7531
|
}, style]
|
|
7535
|
-
}, /*#__PURE__*/
|
|
7532
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledHeroIcon, otherProps));
|
|
7536
7533
|
};
|
|
7537
7534
|
|
|
7538
7535
|
var Icon = function Icon(_ref) {
|
|
@@ -7570,13 +7567,13 @@ var Icon = function Icon(_ref) {
|
|
|
7570
7567
|
accessibilityViewIsModal: accessibilityViewIsModal,
|
|
7571
7568
|
accessibilityActions: accessibilityActions
|
|
7572
7569
|
};
|
|
7573
|
-
return spin ? /*#__PURE__*/
|
|
7570
|
+
return spin ? /*#__PURE__*/React__namespace.default.createElement(AnimatedIcon, _extends$1({
|
|
7574
7571
|
name: icon,
|
|
7575
7572
|
themeIntent: intent,
|
|
7576
7573
|
themeSize: size,
|
|
7577
7574
|
style: style,
|
|
7578
7575
|
testID: testID
|
|
7579
|
-
}, accessibilityProps)) : /*#__PURE__*/
|
|
7576
|
+
}, accessibilityProps)) : /*#__PURE__*/React__namespace.default.createElement(StyledHeroIcon, _extends$1({
|
|
7580
7577
|
name: icon,
|
|
7581
7578
|
themeIntent: intent,
|
|
7582
7579
|
themeSize: size,
|
|
@@ -7596,19 +7593,19 @@ var AccordionItem = function AccordionItem(_ref) {
|
|
|
7596
7593
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
7597
7594
|
style = _ref.style,
|
|
7598
7595
|
testID = _ref.testID;
|
|
7599
|
-
return /*#__PURE__*/
|
|
7596
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledItemWrapper$1, {
|
|
7600
7597
|
themeVariant: variant,
|
|
7601
7598
|
style: style,
|
|
7602
7599
|
testID: testID
|
|
7603
|
-
}, /*#__PURE__*/
|
|
7600
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledHeaderWrapper$1, {
|
|
7604
7601
|
onPress: onPress
|
|
7605
|
-
}, typeof header === 'string' ? /*#__PURE__*/
|
|
7602
|
+
}, typeof header === 'string' ? /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
7606
7603
|
variant: "regular-bold"
|
|
7607
|
-
}, header) : header, /*#__PURE__*/
|
|
7604
|
+
}, header) : header, /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
7608
7605
|
icon: open ? 'arrow-up' : 'arrow-down',
|
|
7609
7606
|
intent: "secondary",
|
|
7610
7607
|
size: "small"
|
|
7611
|
-
})), /*#__PURE__*/
|
|
7608
|
+
})), /*#__PURE__*/React__namespace.default.createElement(StyledCollapse, {
|
|
7612
7609
|
open: open
|
|
7613
7610
|
}, content));
|
|
7614
7611
|
};
|
|
@@ -7629,18 +7626,18 @@ var Accordion = function Accordion(_ref) {
|
|
|
7629
7626
|
_usePropsOrInternalSt2 = _slicedToArray(_usePropsOrInternalSt, 2),
|
|
7630
7627
|
_activeItemKey = _usePropsOrInternalSt2[0],
|
|
7631
7628
|
_onItemPress = _usePropsOrInternalSt2[1];
|
|
7632
|
-
return /*#__PURE__*/
|
|
7629
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledWrapper$c, {
|
|
7633
7630
|
style: style,
|
|
7634
7631
|
testID: testID
|
|
7635
7632
|
}, items.map(function (_ref2, index) {
|
|
7636
7633
|
var key = _ref2.key,
|
|
7637
7634
|
props = _objectWithoutProperties(_ref2, _excluded$x);
|
|
7638
7635
|
var open = _activeItemKey === key;
|
|
7639
|
-
return /*#__PURE__*/
|
|
7636
|
+
return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, {
|
|
7640
7637
|
key: key
|
|
7641
|
-
}, variant === 'card' && index !== 0 && /*#__PURE__*/
|
|
7638
|
+
}, variant === 'card' && index !== 0 && /*#__PURE__*/React__namespace.default.createElement(Spacer$1, {
|
|
7642
7639
|
testID: "accordion-spacer"
|
|
7643
|
-
}), /*#__PURE__*/
|
|
7640
|
+
}), /*#__PURE__*/React__namespace.default.createElement(AccordionItem, _extends$1({}, props, {
|
|
7644
7641
|
open: open,
|
|
7645
7642
|
onPress: function onPress() {
|
|
7646
7643
|
return _onItemPress(open ? defaultValue : key);
|
|
@@ -7711,9 +7708,9 @@ var getIntentIcon$1 = function getIntentIcon(intent) {
|
|
|
7711
7708
|
};
|
|
7712
7709
|
var AlertIcon = function AlertIcon(_ref) {
|
|
7713
7710
|
var icon = _ref.icon;
|
|
7714
|
-
return icon ? /*#__PURE__*/
|
|
7711
|
+
return icon ? /*#__PURE__*/React__namespace.default.createElement(IconContainer$1, {
|
|
7715
7712
|
testID: "alert-left-icon"
|
|
7716
|
-
}, /*#__PURE__*/
|
|
7713
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
7717
7714
|
icon: icon,
|
|
7718
7715
|
size: "small"
|
|
7719
7716
|
})) : null;
|
|
@@ -7731,25 +7728,25 @@ var Alert = function Alert(_ref2) {
|
|
|
7731
7728
|
testID = _ref2.testID,
|
|
7732
7729
|
actionLabel = _ref2.actionLabel;
|
|
7733
7730
|
useDeprecation("Alert's notification intent is deprecated and will be removed in the next major release. Please use other intents instead.", intent === 'notification');
|
|
7734
|
-
return /*#__PURE__*/
|
|
7731
|
+
return /*#__PURE__*/React__namespace.default.createElement(Container$1, {
|
|
7735
7732
|
themeVariant: variant,
|
|
7736
7733
|
themeIntent: intent,
|
|
7737
7734
|
style: style,
|
|
7738
7735
|
testID: testID
|
|
7739
|
-
}, /*#__PURE__*/
|
|
7736
|
+
}, /*#__PURE__*/React__namespace.default.createElement(ContentContainer$1, {
|
|
7740
7737
|
showDivider: !!onClose
|
|
7741
|
-
}, icon !== null ? /*#__PURE__*/
|
|
7738
|
+
}, icon !== null ? /*#__PURE__*/React__namespace.default.createElement(AlertIcon, {
|
|
7742
7739
|
icon: icon || getIntentIcon$1(intent)
|
|
7743
|
-
}) : null, /*#__PURE__*/
|
|
7740
|
+
}) : null, /*#__PURE__*/React__namespace.default.createElement(TextContainer$1, null, typeof title === 'string' ? /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
7744
7741
|
variant: "small-bold"
|
|
7745
|
-
}, title) : title, typeof content === 'string' ? /*#__PURE__*/
|
|
7742
|
+
}, title) : title, typeof content === 'string' ? /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
7746
7743
|
variant: "small"
|
|
7747
|
-
}, content) : content)), onClose ? /*#__PURE__*/
|
|
7744
|
+
}, content) : content)), onClose ? /*#__PURE__*/React__namespace.default.createElement(CTAWrapper$1, {
|
|
7748
7745
|
onPress: onClose,
|
|
7749
7746
|
testID: "alert-close-icon"
|
|
7750
|
-
}, typeof actionLabel === 'string' ? /*#__PURE__*/
|
|
7747
|
+
}, typeof actionLabel === 'string' ? /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
7751
7748
|
variant: "small-bold"
|
|
7752
|
-
}, actionLabel) : /*#__PURE__*/
|
|
7749
|
+
}, actionLabel) : /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
7753
7750
|
icon: "cancel",
|
|
7754
7751
|
size: "small"
|
|
7755
7752
|
})) : null);
|
|
@@ -7797,26 +7794,26 @@ var Attachment = function Attachment(_ref) {
|
|
|
7797
7794
|
backgroundHighlighted = _ref$backgroundHighli === void 0 ? false : _ref$backgroundHighli,
|
|
7798
7795
|
style = _ref.style,
|
|
7799
7796
|
testID = _ref.testID;
|
|
7800
|
-
return /*#__PURE__*/
|
|
7797
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$6, {
|
|
7801
7798
|
testID: testID,
|
|
7802
7799
|
style: style
|
|
7803
|
-
}, /*#__PURE__*/
|
|
7800
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledContentContainer$1, {
|
|
7804
7801
|
themeHighlighted: backgroundHighlighted
|
|
7805
|
-
}, previewElement, filename ? /*#__PURE__*/
|
|
7802
|
+
}, previewElement, filename ? /*#__PURE__*/React__namespace.default.createElement(StyledTextContainer, {
|
|
7806
7803
|
testID: "attachment-content"
|
|
7807
|
-
}, /*#__PURE__*/
|
|
7804
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
7808
7805
|
variant: "small",
|
|
7809
7806
|
numberOfLines: 1
|
|
7810
|
-
}, filename)) : null), onDownload ? /*#__PURE__*/
|
|
7807
|
+
}, filename)) : null), onDownload ? /*#__PURE__*/React__namespace.default.createElement(StyledCTAWrapper, {
|
|
7811
7808
|
onPress: onDownload,
|
|
7812
7809
|
testID: "attachment-download-icon"
|
|
7813
|
-
}, /*#__PURE__*/
|
|
7810
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
7814
7811
|
icon: "download-outlined",
|
|
7815
7812
|
size: "small"
|
|
7816
|
-
})) : null, onRemove ? /*#__PURE__*/
|
|
7813
|
+
})) : null, onRemove ? /*#__PURE__*/React__namespace.default.createElement(StyledCTAWrapper, {
|
|
7817
7814
|
onPress: onRemove,
|
|
7818
7815
|
testID: "attachment-remove-icon"
|
|
7819
|
-
}, /*#__PURE__*/
|
|
7816
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
7820
7817
|
icon: "trash-bin-outlined",
|
|
7821
7818
|
size: "small",
|
|
7822
7819
|
intent: "danger"
|
|
@@ -7892,16 +7889,16 @@ var Avatar = function Avatar(_ref) {
|
|
|
7892
7889
|
hasImageError = _useState2[0],
|
|
7893
7890
|
setHasImageError = _useState2[1];
|
|
7894
7891
|
if (title === undefined && source === undefined) return null;
|
|
7895
|
-
return /*#__PURE__*/
|
|
7892
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledWrapper$b, {
|
|
7896
7893
|
testID: testID,
|
|
7897
7894
|
onPress: onPress,
|
|
7898
7895
|
disabled: onPress === undefined,
|
|
7899
7896
|
themeIntent: intent,
|
|
7900
7897
|
themeSize: size,
|
|
7901
7898
|
style: style
|
|
7902
|
-
}, (source === undefined || hasImageError) && /*#__PURE__*/
|
|
7899
|
+
}, (source === undefined || hasImageError) && /*#__PURE__*/React__namespace.default.createElement(StyledTextWrapper$1, null, /*#__PURE__*/React__namespace.default.createElement(StyledText$2, {
|
|
7903
7900
|
themeSize: size
|
|
7904
|
-
}, title)), source !== undefined && /*#__PURE__*/
|
|
7901
|
+
}, title)), source !== undefined && /*#__PURE__*/React__namespace.default.createElement(StyledImage, {
|
|
7905
7902
|
resizeMode: "cover",
|
|
7906
7903
|
source: source,
|
|
7907
7904
|
themeSize: size,
|
|
@@ -8146,7 +8143,7 @@ var Box = function Box(_ref) {
|
|
|
8146
8143
|
style = _ref.style,
|
|
8147
8144
|
testID = _ref.testID,
|
|
8148
8145
|
otherProps = _objectWithoutProperties(_ref, _excluded$v);
|
|
8149
|
-
return /*#__PURE__*/
|
|
8146
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledBox, _extends$1({}, otherProps, {
|
|
8150
8147
|
style: style,
|
|
8151
8148
|
testID: testID
|
|
8152
8149
|
}), children);
|
|
@@ -8245,7 +8242,7 @@ var Surplus = function Surplus(_ref) {
|
|
|
8245
8242
|
backgroundColor = _ref.backgroundColor;
|
|
8246
8243
|
if (value > 0) {
|
|
8247
8244
|
if (renderSurplus) {
|
|
8248
|
-
return /*#__PURE__*/
|
|
8245
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledSurplusContainer, {
|
|
8249
8246
|
testID: "surplus-container",
|
|
8250
8247
|
themeSize: size,
|
|
8251
8248
|
themeVariant: variant,
|
|
@@ -8255,7 +8252,7 @@ var Surplus = function Surplus(_ref) {
|
|
|
8255
8252
|
}
|
|
8256
8253
|
}, renderSurplus(value));
|
|
8257
8254
|
}
|
|
8258
|
-
return /*#__PURE__*/
|
|
8255
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledAvatar, {
|
|
8259
8256
|
testID: "surplus-container",
|
|
8260
8257
|
themeVariant: variant,
|
|
8261
8258
|
title: "+".concat(value),
|
|
@@ -8291,7 +8288,7 @@ var AvatarStack = function AvatarStack(_ref2) {
|
|
|
8291
8288
|
}
|
|
8292
8289
|
return remain;
|
|
8293
8290
|
}();
|
|
8294
|
-
return /*#__PURE__*/
|
|
8291
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledWrapper$a, {
|
|
8295
8292
|
themeSize: size,
|
|
8296
8293
|
themeAvatarCount: avatars.length,
|
|
8297
8294
|
themeHasSurplus: remainingAvatar > 0,
|
|
@@ -8299,7 +8296,7 @@ var AvatarStack = function AvatarStack(_ref2) {
|
|
|
8299
8296
|
testID: testID,
|
|
8300
8297
|
themeVariant: variant
|
|
8301
8298
|
}, avatars.map(function (avt, index) {
|
|
8302
|
-
return /*#__PURE__*/
|
|
8299
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledAvatar, _extends$1({
|
|
8303
8300
|
themeVariant: variant
|
|
8304
8301
|
}, avt.props, {
|
|
8305
8302
|
size: size,
|
|
@@ -8308,7 +8305,7 @@ var AvatarStack = function AvatarStack(_ref2) {
|
|
|
8308
8305
|
backgroundColor: colors[index % colors.length]
|
|
8309
8306
|
}
|
|
8310
8307
|
}));
|
|
8311
|
-
}), /*#__PURE__*/
|
|
8308
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Surplus, {
|
|
8312
8309
|
value: remainingAvatar,
|
|
8313
8310
|
index: avatars.length,
|
|
8314
8311
|
size: size,
|
|
@@ -8369,10 +8366,10 @@ var Status = function Status(_ref) {
|
|
|
8369
8366
|
style = _ref.style,
|
|
8370
8367
|
testID = _ref.testID,
|
|
8371
8368
|
nativeProps = _objectWithoutProperties(_ref, _excluded$u);
|
|
8372
|
-
var _React$useRef =
|
|
8369
|
+
var _React$useRef = React__namespace.default.useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
|
|
8373
8370
|
opacity = _React$useRef.current;
|
|
8374
|
-
var isFirstRendering =
|
|
8375
|
-
|
|
8371
|
+
var isFirstRendering = React__namespace.default.useRef(true);
|
|
8372
|
+
React__namespace.default.useEffect(function () {
|
|
8376
8373
|
// Do not run animation on very first rendering
|
|
8377
8374
|
if (isFirstRendering.current) {
|
|
8378
8375
|
isFirstRendering.current = false;
|
|
@@ -8384,10 +8381,10 @@ var Status = function Status(_ref) {
|
|
|
8384
8381
|
useNativeDriver: true
|
|
8385
8382
|
}).start();
|
|
8386
8383
|
}, [visible, opacity]);
|
|
8387
|
-
return /*#__PURE__*/
|
|
8384
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.View, _extends$1({}, nativeProps, {
|
|
8388
8385
|
style: style,
|
|
8389
8386
|
testID: testID
|
|
8390
|
-
}), children, /*#__PURE__*/
|
|
8387
|
+
}), children, /*#__PURE__*/React__namespace.default.createElement(StyledStatus, {
|
|
8391
8388
|
style: {
|
|
8392
8389
|
opacity: opacity,
|
|
8393
8390
|
transform: [{
|
|
@@ -8417,10 +8414,10 @@ var Badge = function Badge(_ref) {
|
|
|
8417
8414
|
style = _ref.style,
|
|
8418
8415
|
testID = _ref.testID,
|
|
8419
8416
|
nativeProps = _objectWithoutProperties(_ref, _excluded$t);
|
|
8420
|
-
var _React$useRef =
|
|
8417
|
+
var _React$useRef = React__namespace.default.useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
|
|
8421
8418
|
opacity = _React$useRef.current;
|
|
8422
|
-
var isFirstRendering =
|
|
8423
|
-
|
|
8419
|
+
var isFirstRendering = React__namespace.default.useRef(true);
|
|
8420
|
+
React__namespace.default.useEffect(function () {
|
|
8424
8421
|
// Do not run animation on very first rendering
|
|
8425
8422
|
if (isFirstRendering.current) {
|
|
8426
8423
|
isFirstRendering.current = false;
|
|
@@ -8433,7 +8430,7 @@ var Badge = function Badge(_ref) {
|
|
|
8433
8430
|
}).start();
|
|
8434
8431
|
}, [visible, opacity]);
|
|
8435
8432
|
var content = typeof originalContent === 'number' && originalContent > max ? "".concat(max, "+") : String(originalContent);
|
|
8436
|
-
return /*#__PURE__*/
|
|
8433
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledView$2, _extends$1({}, nativeProps, {
|
|
8437
8434
|
themeIntent: intent,
|
|
8438
8435
|
themePadding: getPaddingState(content),
|
|
8439
8436
|
style: [{
|
|
@@ -8446,7 +8443,7 @@ var Badge = function Badge(_ref) {
|
|
|
8446
8443
|
}]
|
|
8447
8444
|
}, style],
|
|
8448
8445
|
testID: testID
|
|
8449
|
-
}), /*#__PURE__*/
|
|
8446
|
+
}), /*#__PURE__*/React__namespace.default.createElement(StyledText$1, null, content));
|
|
8450
8447
|
};
|
|
8451
8448
|
var Badge$1 = Object.assign(Badge, {
|
|
8452
8449
|
Status: Status
|
|
@@ -8520,7 +8517,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
8520
8517
|
/**
|
|
8521
8518
|
* List of loaded tabs, tabs will be loaded when navigated to.
|
|
8522
8519
|
*/
|
|
8523
|
-
var _React$useState =
|
|
8520
|
+
var _React$useState = React__namespace.default.useState([selectedTabKey]),
|
|
8524
8521
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
8525
8522
|
loaded = _React$useState2[0],
|
|
8526
8523
|
setLoaded = _React$useState2[1];
|
|
@@ -8530,7 +8527,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
8530
8527
|
return [].concat(_toConsumableArray(loadedState), [selectedTabKey]);
|
|
8531
8528
|
});
|
|
8532
8529
|
}
|
|
8533
|
-
return /*#__PURE__*/
|
|
8530
|
+
return /*#__PURE__*/React__namespace.default.createElement(BottomNavigationContainer, nativeProps, /*#__PURE__*/React__namespace.default.createElement(ContentWrapper, null, tabs.map(function (tab) {
|
|
8534
8531
|
var key = tab.key,
|
|
8535
8532
|
component = tab.component,
|
|
8536
8533
|
testID = tab.testID;
|
|
@@ -8542,7 +8539,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
8542
8539
|
// Don't render a screen if we've never navigated to it
|
|
8543
8540
|
return null;
|
|
8544
8541
|
}
|
|
8545
|
-
return /*#__PURE__*/
|
|
8542
|
+
return /*#__PURE__*/React__namespace.default.createElement(BottomNavigationTab, {
|
|
8546
8543
|
key: key,
|
|
8547
8544
|
testID: testID ? "route-screen-".concat(testID) : undefined,
|
|
8548
8545
|
pointerEvents: active ? 'auto' : 'none',
|
|
@@ -8555,26 +8552,26 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
8555
8552
|
isIOS ? selectedTabKey !== key : true,
|
|
8556
8553
|
themeVisibility: active
|
|
8557
8554
|
}, component);
|
|
8558
|
-
})), /*#__PURE__*/
|
|
8555
|
+
})), /*#__PURE__*/React__namespace.default.createElement(BottomBarWrapper, {
|
|
8559
8556
|
themeInsets: insets
|
|
8560
|
-
}, /*#__PURE__*/
|
|
8557
|
+
}, /*#__PURE__*/React__namespace.default.createElement(BottomBar, null, tabs.map(function (tab) {
|
|
8561
8558
|
var key = tab.key,
|
|
8562
8559
|
icon = tab.icon,
|
|
8563
8560
|
title = tab.title,
|
|
8564
8561
|
testID = tab.testID;
|
|
8565
8562
|
var active = selectedTabKey === key;
|
|
8566
8563
|
var inactiveIcon = getInactiveIcon(icon);
|
|
8567
|
-
return /*#__PURE__*/
|
|
8564
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableWithoutFeedback, {
|
|
8568
8565
|
key: key,
|
|
8569
8566
|
onPress: function onPress() {
|
|
8570
8567
|
return onTabPress(key);
|
|
8571
8568
|
},
|
|
8572
8569
|
testID: testID
|
|
8573
|
-
}, /*#__PURE__*/
|
|
8570
|
+
}, /*#__PURE__*/React__namespace.default.createElement(BottomBarItem, null, /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
8574
8571
|
icon: active ? icon : inactiveIcon,
|
|
8575
8572
|
intent: active ? 'primary' : 'text',
|
|
8576
8573
|
testID: "hero-icon-".concat(icon)
|
|
8577
|
-
}), !!title && /*#__PURE__*/
|
|
8574
|
+
}), !!title && /*#__PURE__*/React__namespace.default.createElement(StyledBottomBarText, {
|
|
8578
8575
|
fontWeight: "semi-bold",
|
|
8579
8576
|
intent: active ? 'primary' : 'body',
|
|
8580
8577
|
numberOfLines: 1
|
|
@@ -8608,7 +8605,7 @@ var Divider = function Divider(_ref) {
|
|
|
8608
8605
|
style = _ref.style,
|
|
8609
8606
|
testID = _ref.testID,
|
|
8610
8607
|
nativeProps = _objectWithoutProperties(_ref, _excluded$r);
|
|
8611
|
-
return /*#__PURE__*/
|
|
8608
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledDivider, _extends$1({}, nativeProps, {
|
|
8612
8609
|
themeMarginHorizontal: marginHorizontal,
|
|
8613
8610
|
themeMarginVertical: marginVertical,
|
|
8614
8611
|
style: style,
|
|
@@ -8685,7 +8682,7 @@ var StyledIconWrapper$4 = index$9(reactNative.View)(function (_ref5) {
|
|
|
8685
8682
|
var Footer$1 = function Footer(_ref) {
|
|
8686
8683
|
var children = _ref.children,
|
|
8687
8684
|
showDivider = _ref.showDivider;
|
|
8688
|
-
return /*#__PURE__*/
|
|
8685
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.View, null, showDivider ? /*#__PURE__*/React__namespace.default.createElement(Divider, null) : null, /*#__PURE__*/React__namespace.default.createElement(StyledFooter, null, children));
|
|
8689
8686
|
};
|
|
8690
8687
|
|
|
8691
8688
|
var genLoadingIndicatorStyles = function genLoadingIndicatorStyles(theme, intent) {
|
|
@@ -8744,14 +8741,14 @@ var renderDotComponent = function renderDotComponent(_ref) {
|
|
|
8744
8741
|
inputRange: [0.0, (index + 0.5) / (count + 1), (index + 1.0) / (count + 1), (index + 1.5) / (count + 1), 1.0],
|
|
8745
8742
|
outputRange: [1.0, 1.36, 1.56, 1.06, 1.0]
|
|
8746
8743
|
});
|
|
8747
|
-
return /*#__PURE__*/
|
|
8744
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.Animated.View, {
|
|
8748
8745
|
style: reactNative.StyleSheet.flatten([{
|
|
8749
8746
|
transform: [{
|
|
8750
8747
|
scale: interpolatedProgressAnimation
|
|
8751
8748
|
}]
|
|
8752
8749
|
}]),
|
|
8753
8750
|
key: index
|
|
8754
|
-
}, /*#__PURE__*/
|
|
8751
|
+
}, /*#__PURE__*/React__namespace.default.createElement(AnimatedLoadingDot, {
|
|
8755
8752
|
size: size,
|
|
8756
8753
|
themeVariant: themeVariant
|
|
8757
8754
|
}));
|
|
@@ -8789,7 +8786,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
|
|
|
8789
8786
|
}
|
|
8790
8787
|
return null;
|
|
8791
8788
|
};
|
|
8792
|
-
return /*#__PURE__*/
|
|
8789
|
+
return /*#__PURE__*/React__namespace.default.createElement(AnimatedLoadingIndicatorWrapper, _extends$1({
|
|
8793
8790
|
testID: testID
|
|
8794
8791
|
}, nativeProps), Array.from(new Array(count), renderLoadingDot, themeVariant));
|
|
8795
8792
|
};
|
|
@@ -9056,7 +9053,7 @@ var Button = function Button(_ref) {
|
|
|
9056
9053
|
return getUnderlayColor(theme, themeVariant);
|
|
9057
9054
|
}, [theme, themeVariant]);
|
|
9058
9055
|
useDeprecation("Button variant ".concat(deprecatedVariants.join(', '), " are deprecated."), deprecatedVariants.includes(themeVariant));
|
|
9059
|
-
return /*#__PURE__*/
|
|
9056
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledButtonContainer, {
|
|
9060
9057
|
accessibilityHint: accessibilityHint,
|
|
9061
9058
|
accessibilityLabel: accessibilityLabel,
|
|
9062
9059
|
disabled: disabled || loading,
|
|
@@ -9066,31 +9063,31 @@ var Button = function Button(_ref) {
|
|
|
9066
9063
|
themeButtonVariant: themeVariant,
|
|
9067
9064
|
style: style,
|
|
9068
9065
|
underlayColor: underlayColor
|
|
9069
|
-
}, loading === true ? /*#__PURE__*/
|
|
9066
|
+
}, loading === true ? /*#__PURE__*/React__namespace.default.createElement(LoadingIndicator, {
|
|
9070
9067
|
testID: "".concat(testID, "-loading-indicator"),
|
|
9071
9068
|
themeVariant: themeVariant
|
|
9072
|
-
}) : /*#__PURE__*/
|
|
9069
|
+
}) : /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, icon !== undefined && /*#__PURE__*/React__namespace.default.createElement(StyledButtonIconWrapper, {
|
|
9073
9070
|
themePosition: "left"
|
|
9074
|
-
}, isIconName(icon) ? /*#__PURE__*/
|
|
9071
|
+
}, isIconName(icon) ? /*#__PURE__*/React__namespace.default.createElement(StyledButtonIcon, {
|
|
9075
9072
|
disabled: disabled,
|
|
9076
9073
|
icon: icon,
|
|
9077
9074
|
testID: "".concat(testID, "-left-icon"),
|
|
9078
9075
|
themeButtonVariant: themeVariant
|
|
9079
|
-
}) : icon), isTextVariant(themeVariant) ? /*#__PURE__*/
|
|
9076
|
+
}) : icon), isTextVariant(themeVariant) ? /*#__PURE__*/React__namespace.default.createElement(StyledButtonTitleOfVariantText, {
|
|
9080
9077
|
variant: "regular-bold",
|
|
9081
9078
|
ellipsizeMode: "tail",
|
|
9082
9079
|
numberOfLines: 1,
|
|
9083
9080
|
disabled: disabled,
|
|
9084
9081
|
themeButtonVariant: themeVariant
|
|
9085
|
-
}, text) : /*#__PURE__*/
|
|
9082
|
+
}, text) : /*#__PURE__*/React__namespace.default.createElement(StyledButtonText, {
|
|
9086
9083
|
level: "h5",
|
|
9087
9084
|
ellipsizeMode: "tail",
|
|
9088
9085
|
numberOfLines: 1,
|
|
9089
9086
|
disabled: disabled,
|
|
9090
9087
|
themeButtonVariant: themeVariant
|
|
9091
|
-
}, text), rightIcon !== undefined && /*#__PURE__*/
|
|
9088
|
+
}, text), rightIcon !== undefined && /*#__PURE__*/React__namespace.default.createElement(StyledButtonIconWrapper, {
|
|
9092
9089
|
themePosition: "right"
|
|
9093
|
-
}, isIconName(rightIcon) ? /*#__PURE__*/
|
|
9090
|
+
}, isIconName(rightIcon) ? /*#__PURE__*/React__namespace.default.createElement(StyledButtonIcon, {
|
|
9094
9091
|
disabled: disabled,
|
|
9095
9092
|
icon: rightIcon,
|
|
9096
9093
|
testID: "".concat(testID, "-right-icon"),
|
|
@@ -9107,13 +9104,13 @@ var IconButton = function IconButton(_ref) {
|
|
|
9107
9104
|
style = _ref.style,
|
|
9108
9105
|
size = _ref.size,
|
|
9109
9106
|
intent = _ref.intent;
|
|
9110
|
-
return /*#__PURE__*/
|
|
9107
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
9111
9108
|
style: style,
|
|
9112
9109
|
onPress: onPress,
|
|
9113
9110
|
testID: testID,
|
|
9114
9111
|
hitSlop: hitSlop,
|
|
9115
9112
|
disabled: disabled
|
|
9116
|
-
}, /*#__PURE__*/
|
|
9113
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
9117
9114
|
icon: icon,
|
|
9118
9115
|
size: size,
|
|
9119
9116
|
intent: disabled ? 'disabled-text' : intent
|
|
@@ -9156,16 +9153,16 @@ var UtilityButton = function UtilityButton(_ref) {
|
|
|
9156
9153
|
intent = _ref$intent === void 0 ? 'text' : _ref$intent,
|
|
9157
9154
|
style = _ref.style,
|
|
9158
9155
|
hitSlop = _ref.hitSlop;
|
|
9159
|
-
return /*#__PURE__*/
|
|
9156
|
+
return /*#__PURE__*/React__namespace.default.createElement(ButtonContainer, {
|
|
9160
9157
|
style: style,
|
|
9161
9158
|
onPress: onPress,
|
|
9162
9159
|
testID: testID,
|
|
9163
9160
|
hitSlop: hitSlop
|
|
9164
|
-
}, /*#__PURE__*/
|
|
9161
|
+
}, /*#__PURE__*/React__namespace.default.createElement(IconWrapper, null, /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
9165
9162
|
icon: icon,
|
|
9166
9163
|
intent: intent,
|
|
9167
9164
|
testID: "".concat(testID, "-icon")
|
|
9168
|
-
})), /*#__PURE__*/
|
|
9165
|
+
})), /*#__PURE__*/React__namespace.default.createElement(ButtonText, {
|
|
9169
9166
|
intent: TEXT_INTENTS[intent]
|
|
9170
9167
|
}, text));
|
|
9171
9168
|
};
|
|
@@ -9183,19 +9180,19 @@ var Header = function Header(_ref) {
|
|
|
9183
9180
|
_ref$onRequestClose = _ref.onRequestClose,
|
|
9184
9181
|
onRequestClose = _ref$onRequestClose === void 0 ? noop$1 : _ref$onRequestClose,
|
|
9185
9182
|
showCloseButton = _ref.showCloseButton;
|
|
9186
|
-
return /*#__PURE__*/
|
|
9183
|
+
return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, /*#__PURE__*/React__namespace.default.createElement(StyledHeaderWrapper, null, typeof content === 'string' ? /*#__PURE__*/React__namespace.default.createElement(StyledHeader, null, /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
9187
9184
|
variant: "regular-bold"
|
|
9188
|
-
}, content)) : /*#__PURE__*/
|
|
9185
|
+
}, content)) : /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
9189
9186
|
style: {
|
|
9190
9187
|
flex: 1
|
|
9191
9188
|
}
|
|
9192
|
-
}, content), showCloseButton ? /*#__PURE__*/
|
|
9189
|
+
}, content), showCloseButton ? /*#__PURE__*/React__namespace.default.createElement(StyledIconWrapper$4, null, /*#__PURE__*/React__namespace.default.createElement(CompoundButton.Icon, {
|
|
9193
9190
|
icon: "cancel",
|
|
9194
9191
|
onPress: onRequestClose,
|
|
9195
9192
|
intent: "text",
|
|
9196
9193
|
testID: "bottom-sheet-close-icon",
|
|
9197
9194
|
size: "xsmall"
|
|
9198
|
-
})) : null), showDivider ? /*#__PURE__*/
|
|
9195
|
+
})) : null), showDivider ? /*#__PURE__*/React__namespace.default.createElement(Divider, null) : null);
|
|
9199
9196
|
};
|
|
9200
9197
|
|
|
9201
9198
|
var _excluded$p = ["scrollEventThrottle"];
|
|
@@ -9220,7 +9217,7 @@ var BottomSheetScrollView = function BottomSheetScrollView(_ref) {
|
|
|
9220
9217
|
setInternalShowDivider(false);
|
|
9221
9218
|
props === null || props === void 0 || (_props$onMomentumScro2 = props.onMomentumScrollEnd) === null || _props$onMomentumScro2 === void 0 || _props$onMomentumScro2.call(props, e);
|
|
9222
9219
|
}, []);
|
|
9223
|
-
return /*#__PURE__*/
|
|
9220
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.ScrollView, _extends$1({}, props, {
|
|
9224
9221
|
onScrollBeginDrag: onScrollBeginDrag,
|
|
9225
9222
|
onMomentumScrollBegin: onMomentumScrollBegin,
|
|
9226
9223
|
onMomentumScrollEnd: onMomentumScrollEnd,
|
|
@@ -9306,23 +9303,23 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
9306
9303
|
setInternalShowDivider: setInternalShowDivider
|
|
9307
9304
|
};
|
|
9308
9305
|
}, [setInternalShowDivider]);
|
|
9309
|
-
return /*#__PURE__*/
|
|
9306
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.Modal, {
|
|
9310
9307
|
visible: visible,
|
|
9311
9308
|
onRequestClose: onRequestClose,
|
|
9312
9309
|
transparent: true,
|
|
9313
9310
|
testID: testID,
|
|
9314
9311
|
onShow: onOpen,
|
|
9315
9312
|
supportedOrientations: supportedOrientations
|
|
9316
|
-
}, /*#__PURE__*/
|
|
9313
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledWrapper$9, {
|
|
9317
9314
|
pointerEvents: "box-none"
|
|
9318
|
-
}, /*#__PURE__*/
|
|
9315
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledKeyboardAvoidingView, _extends$1({
|
|
9319
9316
|
behavior: reactNative.Platform.OS === 'ios' ? 'padding' : 'height'
|
|
9320
|
-
}, keyboardAvoidingViewProps), /*#__PURE__*/
|
|
9317
|
+
}, keyboardAvoidingViewProps), /*#__PURE__*/React__namespace.default.createElement(StyledBackdrop$2, {
|
|
9321
9318
|
style: {
|
|
9322
9319
|
opacity: interpolateOpacity
|
|
9323
9320
|
},
|
|
9324
9321
|
onPress: onRequestClose
|
|
9325
|
-
}), /*#__PURE__*/
|
|
9322
|
+
}), /*#__PURE__*/React__namespace.default.createElement(StyledBottomSheet, {
|
|
9326
9323
|
style: [style, {
|
|
9327
9324
|
transform: [{
|
|
9328
9325
|
scaleY: height > 0 ? 1 : 0
|
|
@@ -9330,14 +9327,14 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
9330
9327
|
translateY: interpolateY
|
|
9331
9328
|
}]
|
|
9332
9329
|
}]
|
|
9333
|
-
}, header !== undefined ? /*#__PURE__*/
|
|
9330
|
+
}, header !== undefined ? /*#__PURE__*/React__namespace.default.createElement(Header, {
|
|
9334
9331
|
content: header,
|
|
9335
9332
|
showDivider: internalShowDivider,
|
|
9336
9333
|
onRequestClose: onRequestClose,
|
|
9337
9334
|
showCloseButton: showCloseButton
|
|
9338
|
-
}) : null, /*#__PURE__*/
|
|
9335
|
+
}) : null, /*#__PURE__*/React__namespace.default.createElement(BottomSheetContext.Provider, {
|
|
9339
9336
|
value: BottomSheetContextValue
|
|
9340
|
-
}, children), footer ? /*#__PURE__*/
|
|
9337
|
+
}, children), footer ? /*#__PURE__*/React__namespace.default.createElement(Footer$1, {
|
|
9341
9338
|
showDivider: showDivider
|
|
9342
9339
|
}, footer) : null))));
|
|
9343
9340
|
};
|
|
@@ -11638,29 +11635,29 @@ function ContentNavigator(_ref) {
|
|
|
11638
11635
|
testID = _ref.testID,
|
|
11639
11636
|
style = _ref.style;
|
|
11640
11637
|
var theme = useTheme();
|
|
11641
|
-
return /*#__PURE__*/
|
|
11638
|
+
return /*#__PURE__*/React__namespace.default.createElement(Wrapper, {
|
|
11642
11639
|
testID: testID,
|
|
11643
11640
|
style: style
|
|
11644
|
-
}, /*#__PURE__*/
|
|
11641
|
+
}, /*#__PURE__*/React__namespace.default.createElement(CompoundButton.Icon, {
|
|
11645
11642
|
icon: "arrow-left",
|
|
11646
11643
|
onPress: onPreviousPress,
|
|
11647
11644
|
disabled: previousDisabled,
|
|
11648
11645
|
testID: "previous-icon-button"
|
|
11649
|
-
}), fontSize === 'medium' ? /*#__PURE__*/
|
|
11646
|
+
}), fontSize === 'medium' ? /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
11650
11647
|
style: {
|
|
11651
11648
|
paddingHorizontal: theme.__hd__.contentNavigator.space.valueHorizontalPadding
|
|
11652
11649
|
},
|
|
11653
11650
|
variant: "small-bold",
|
|
11654
11651
|
onPress: onPress,
|
|
11655
11652
|
testID: "content-navigator-value"
|
|
11656
|
-
}, value) : /*#__PURE__*/
|
|
11653
|
+
}, value) : /*#__PURE__*/React__namespace.default.createElement(Typography.Title, {
|
|
11657
11654
|
style: {
|
|
11658
11655
|
paddingHorizontal: theme.__hd__.contentNavigator.space.valueHorizontalPadding
|
|
11659
11656
|
},
|
|
11660
11657
|
level: "h5",
|
|
11661
11658
|
onPress: onPress,
|
|
11662
11659
|
testID: "content-navigator-value"
|
|
11663
|
-
}, value), /*#__PURE__*/
|
|
11660
|
+
}, value), /*#__PURE__*/React__namespace.default.createElement(CompoundButton.Icon, {
|
|
11664
11661
|
icon: "arrow-right",
|
|
11665
11662
|
onPress: onNextPress,
|
|
11666
11663
|
disabled: nextDisabled,
|
|
@@ -11768,16 +11765,16 @@ var CalendarRowItem = function CalendarRowItem(_ref) {
|
|
|
11768
11765
|
_ref$marked = _ref.marked,
|
|
11769
11766
|
marked = _ref$marked === void 0 ? false : _ref$marked,
|
|
11770
11767
|
itemWidth = _ref.itemWidth;
|
|
11771
|
-
return /*#__PURE__*/
|
|
11768
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledCalendarRowItem, {
|
|
11772
11769
|
testID: "calendar-date-cell",
|
|
11773
11770
|
themeItemWidth: itemWidth
|
|
11774
|
-
}, /*#__PURE__*/
|
|
11771
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledCalendarCell, {
|
|
11775
11772
|
variant: getCellVariant(isSelected, isCurrent),
|
|
11776
11773
|
onPress: onPress
|
|
11777
|
-
}, /*#__PURE__*/
|
|
11774
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
11778
11775
|
variant: "small",
|
|
11779
11776
|
intent: isSelected ? 'inverted' : textIntent
|
|
11780
|
-
}, date ? date.getDate() : ''), marked ? /*#__PURE__*/
|
|
11777
|
+
}, date ? date.getDate() : ''), marked ? /*#__PURE__*/React__namespace.default.createElement(StyledMark, {
|
|
11781
11778
|
testID: "calendar-date-mark",
|
|
11782
11779
|
variant: isSelected ? 'inverted' : 'primary'
|
|
11783
11780
|
}) : null));
|
|
@@ -11882,26 +11879,26 @@ var Calendar = function Calendar(_ref) {
|
|
|
11882
11879
|
var disableNextButton = maxDate === undefined ? false : !daysOfNextMonth.some(function (date) {
|
|
11883
11880
|
return date !== undefined;
|
|
11884
11881
|
}) || maxDate <= lastDateOfMonth;
|
|
11885
|
-
return /*#__PURE__*/
|
|
11882
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$5, {
|
|
11886
11883
|
testID: testID
|
|
11887
|
-
}, /*#__PURE__*/
|
|
11888
|
-
value: !useMonthPicker ? formatTime('MMMM yyyy', visibleDate) : /*#__PURE__*/
|
|
11884
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledCalendarHeader, null, /*#__PURE__*/React__namespace.default.createElement(ContentNavigator, {
|
|
11885
|
+
value: !useMonthPicker ? formatTime('MMMM yyyy', visibleDate) : /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
11889
11886
|
testID: "calendar-month-picker",
|
|
11890
11887
|
onPress: function onPress() {
|
|
11891
11888
|
onToggleMonthPicker === null || onToggleMonthPicker === void 0 || onToggleMonthPicker(!monthPickerVisible);
|
|
11892
11889
|
setMonthPickerVisible(!monthPickerVisible);
|
|
11893
11890
|
}
|
|
11894
|
-
}, /*#__PURE__*/
|
|
11891
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Box, {
|
|
11895
11892
|
flexDirection: "row",
|
|
11896
11893
|
justifyContent: "center",
|
|
11897
11894
|
alignItems: "center"
|
|
11898
|
-
}, /*#__PURE__*/
|
|
11895
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Typography.Title, {
|
|
11899
11896
|
level: "h5",
|
|
11900
11897
|
style: {
|
|
11901
11898
|
textAlign: 'center',
|
|
11902
11899
|
marginRight: theme.__hd__.calendar.space.headerMarginRight
|
|
11903
11900
|
}
|
|
11904
|
-
}, formatTime('MMMM yyyy', visibleDate)), /*#__PURE__*/
|
|
11901
|
+
}, formatTime('MMMM yyyy', visibleDate)), /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
11905
11902
|
icon: monthPickerVisible ? 'arrow-up' : 'arrow-down',
|
|
11906
11903
|
size: "small"
|
|
11907
11904
|
}))),
|
|
@@ -11911,11 +11908,11 @@ var Calendar = function Calendar(_ref) {
|
|
|
11911
11908
|
previousDisabled: disablePrevButton,
|
|
11912
11909
|
nextDisabled: disableNextButton,
|
|
11913
11910
|
fontSize: "large"
|
|
11914
|
-
})), reactNative.Platform.OS === 'ios' && monthPickerVisible ? /*#__PURE__*/
|
|
11911
|
+
})), reactNative.Platform.OS === 'ios' && monthPickerVisible ? /*#__PURE__*/React__namespace.default.createElement(Box, {
|
|
11915
11912
|
style: {
|
|
11916
11913
|
overflow: 'hidden'
|
|
11917
11914
|
}
|
|
11918
|
-
}, /*#__PURE__*/
|
|
11915
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNativeMonthYearPicker.MonthYearPickerViewIOS, {
|
|
11919
11916
|
value: value,
|
|
11920
11917
|
minimumDate: minDate,
|
|
11921
11918
|
maximumDate: maxDate,
|
|
@@ -11925,7 +11922,7 @@ var Calendar = function Calendar(_ref) {
|
|
|
11925
11922
|
marginVertical: -theme.__hd__.calendar.space.iosPickerMarginVertical,
|
|
11926
11923
|
width: contentWidth
|
|
11927
11924
|
}
|
|
11928
|
-
})) : /*#__PURE__*/
|
|
11925
|
+
})) : /*#__PURE__*/React__namespace.default.createElement(Box, {
|
|
11929
11926
|
onLayout: reactNative.Platform.OS === 'ios' ? function (e) {
|
|
11930
11927
|
var _e$nativeEvent$layout = e.nativeEvent.layout,
|
|
11931
11928
|
width = _e$nativeEvent$layout.width,
|
|
@@ -11933,16 +11930,16 @@ var Calendar = function Calendar(_ref) {
|
|
|
11933
11930
|
setContentHeight(height);
|
|
11934
11931
|
setContentWidth(width);
|
|
11935
11932
|
} : undefined
|
|
11936
|
-
}, /*#__PURE__*/
|
|
11937
|
-
return /*#__PURE__*/
|
|
11933
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledCalendarRow, null, DAYS_OF_WEEK.map(function (day) {
|
|
11934
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledCalendarRowItem, {
|
|
11938
11935
|
key: day
|
|
11939
|
-
}, /*#__PURE__*/
|
|
11936
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledCalendarDayNameCell, {
|
|
11940
11937
|
themeItemWidth: calendarItemWidth
|
|
11941
|
-
}, /*#__PURE__*/
|
|
11938
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
11942
11939
|
variant: "small"
|
|
11943
11940
|
}, day)));
|
|
11944
|
-
})), /*#__PURE__*/
|
|
11945
|
-
return date ? /*#__PURE__*/
|
|
11941
|
+
})), /*#__PURE__*/React__namespace.default.createElement(StyledCalendarRow, null, daysOfPreviousMonth.map(function (date) {
|
|
11942
|
+
return date ? /*#__PURE__*/React__namespace.default.createElement(CalendarRowItem, {
|
|
11946
11943
|
key: date.toDateString(),
|
|
11947
11944
|
date: date,
|
|
11948
11945
|
isCurrent: isEqDate(now, date),
|
|
@@ -11953,12 +11950,12 @@ var Calendar = function Calendar(_ref) {
|
|
|
11953
11950
|
textIntent: "subdued",
|
|
11954
11951
|
marked: parsedMaskedDate[date.toDateString()],
|
|
11955
11952
|
itemWidth: contentWidth > 0 ? contentWidth / 7 : undefined
|
|
11956
|
-
}) : /*#__PURE__*/
|
|
11953
|
+
}) : /*#__PURE__*/React__namespace.default.createElement(StyledDisabledCalendarRowItem, {
|
|
11957
11954
|
themeItemWidth: calendarItemWidth,
|
|
11958
11955
|
testID: "calendar-disabled-cell"
|
|
11959
11956
|
});
|
|
11960
11957
|
}), daysOfCurrentMonth.map(function (date) {
|
|
11961
|
-
return date ? /*#__PURE__*/
|
|
11958
|
+
return date ? /*#__PURE__*/React__namespace.default.createElement(CalendarRowItem, {
|
|
11962
11959
|
itemWidth: calendarItemWidth,
|
|
11963
11960
|
key: date.toDateString(),
|
|
11964
11961
|
date: date,
|
|
@@ -11968,12 +11965,12 @@ var Calendar = function Calendar(_ref) {
|
|
|
11968
11965
|
return onChange === null || onChange === void 0 ? void 0 : onChange(date);
|
|
11969
11966
|
},
|
|
11970
11967
|
marked: parsedMaskedDate[date.toDateString()]
|
|
11971
|
-
}) : /*#__PURE__*/
|
|
11968
|
+
}) : /*#__PURE__*/React__namespace.default.createElement(StyledDisabledCalendarRowItem, {
|
|
11972
11969
|
themeItemWidth: calendarItemWidth,
|
|
11973
11970
|
testID: "calendar-disabled-cell"
|
|
11974
11971
|
});
|
|
11975
11972
|
}), daysOfNextMonth.map(function (date) {
|
|
11976
|
-
return date ? /*#__PURE__*/
|
|
11973
|
+
return date ? /*#__PURE__*/React__namespace.default.createElement(CalendarRowItem, {
|
|
11977
11974
|
itemWidth: calendarItemWidth,
|
|
11978
11975
|
key: date.toDateString(),
|
|
11979
11976
|
date: date,
|
|
@@ -11984,11 +11981,11 @@ var Calendar = function Calendar(_ref) {
|
|
|
11984
11981
|
},
|
|
11985
11982
|
textIntent: "subdued",
|
|
11986
11983
|
marked: parsedMaskedDate[date.toDateString()]
|
|
11987
|
-
}) : /*#__PURE__*/
|
|
11984
|
+
}) : /*#__PURE__*/React__namespace.default.createElement(StyledDisabledCalendarRowItem, {
|
|
11988
11985
|
themeItemWidth: calendarItemWidth,
|
|
11989
11986
|
testID: "calendar-disabled-cell"
|
|
11990
11987
|
});
|
|
11991
|
-
})), reactNative.Platform.OS === 'android' && monthPickerVisible && /*#__PURE__*/
|
|
11988
|
+
})), reactNative.Platform.OS === 'android' && monthPickerVisible && /*#__PURE__*/React__namespace.default.createElement(reactNativeMonthYearPicker.MonthYearPickerDialogueAndroid, {
|
|
11992
11989
|
doneButtonLabel: monthPickerConfirmLabel,
|
|
11993
11990
|
cancelButtonLabel: monthPickerCancelLabel,
|
|
11994
11991
|
value: value,
|
|
@@ -12028,7 +12025,7 @@ var DataCard = function DataCard(_ref) {
|
|
|
12028
12025
|
intent = _ref$intent === void 0 ? 'info' : _ref$intent,
|
|
12029
12026
|
children = _ref.children,
|
|
12030
12027
|
nativeProps = _objectWithoutProperties(_ref, _excluded$o);
|
|
12031
|
-
return /*#__PURE__*/
|
|
12028
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React__namespace.default.createElement(Indicator, {
|
|
12032
12029
|
themeIntent: intent,
|
|
12033
12030
|
testID: "data-card-indicator"
|
|
12034
12031
|
}), children);
|
|
@@ -12050,7 +12047,7 @@ var Card = function Card(_ref) {
|
|
|
12050
12047
|
var intent = _ref.intent,
|
|
12051
12048
|
children = _ref.children,
|
|
12052
12049
|
nativeProps = _objectWithoutProperties(_ref, _excluded$n);
|
|
12053
|
-
return /*#__PURE__*/
|
|
12050
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledCard$1, _extends$1({}, nativeProps, {
|
|
12054
12051
|
themeIntent: intent
|
|
12055
12052
|
}), children);
|
|
12056
12053
|
};
|
|
@@ -12082,14 +12079,14 @@ var PageControl = function PageControl(_ref) {
|
|
|
12082
12079
|
testID = _ref.testID,
|
|
12083
12080
|
style = _ref.style;
|
|
12084
12081
|
var theme = useTheme();
|
|
12085
|
-
var animatedValue =
|
|
12086
|
-
|
|
12082
|
+
var animatedValue = React__namespace.default.useRef(new reactNative.Animated.Value(currentPage)).current;
|
|
12083
|
+
React__namespace.default.useEffect(function () {
|
|
12087
12084
|
reactNative.Animated.spring(animatedValue, {
|
|
12088
12085
|
toValue: currentPage,
|
|
12089
12086
|
useNativeDriver: false // Native driver does not support animating width, it will cause the app to crash if set to true
|
|
12090
12087
|
}).start();
|
|
12091
12088
|
}, [currentPage]);
|
|
12092
|
-
return /*#__PURE__*/
|
|
12089
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledPageControl$2, {
|
|
12093
12090
|
testID: testID,
|
|
12094
12091
|
style: style
|
|
12095
12092
|
}, new Array(numberOfPages).fill('').map(function (_, index) {
|
|
@@ -12104,7 +12101,7 @@ var PageControl = function PageControl(_ref) {
|
|
|
12104
12101
|
outputRange: [0.5, 1, 0.5],
|
|
12105
12102
|
extrapolate: 'clamp'
|
|
12106
12103
|
});
|
|
12107
|
-
return /*#__PURE__*/
|
|
12104
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledPageControlAnimatedView, {
|
|
12108
12105
|
accessibilityState: {
|
|
12109
12106
|
selected: index === currentPage
|
|
12110
12107
|
},
|
|
@@ -12202,7 +12199,7 @@ var CardCarousel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
12202
12199
|
viewPosition: viewPosition
|
|
12203
12200
|
});
|
|
12204
12201
|
}, [currentIndex, items.length, viewPosition]);
|
|
12205
|
-
|
|
12202
|
+
React__namespace.default.useImperativeHandle(ref, function () {
|
|
12206
12203
|
return {
|
|
12207
12204
|
snapToIndex: function snapToIndex(index) {
|
|
12208
12205
|
_snapToIndex(index);
|
|
@@ -12248,17 +12245,17 @@ var CardCarousel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
12248
12245
|
}, [setFlatListWidth, onLayout]);
|
|
12249
12246
|
var renderItem = React.useCallback(function (_ref3) {
|
|
12250
12247
|
var item = _ref3.item;
|
|
12251
|
-
return /*#__PURE__*/
|
|
12248
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledItemWrapper, {
|
|
12252
12249
|
style: {
|
|
12253
12250
|
width: itemWidth
|
|
12254
12251
|
}
|
|
12255
|
-
}, /*#__PURE__*/
|
|
12252
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledCard, null, item));
|
|
12256
12253
|
}, [itemWidth]);
|
|
12257
12254
|
var contentContainerPaddingHorizontal = theme.__hd__.cardCarousel.space.contentContainerPaddingHorizontal;
|
|
12258
|
-
return /*#__PURE__*/
|
|
12255
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledWrapper$8, {
|
|
12259
12256
|
style: style,
|
|
12260
12257
|
testID: testID
|
|
12261
|
-
}, /*#__PURE__*/
|
|
12258
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.FlatList, {
|
|
12262
12259
|
contentInset: {
|
|
12263
12260
|
top: 0,
|
|
12264
12261
|
left: contentContainerPaddingHorizontal,
|
|
@@ -12266,14 +12263,14 @@ var CardCarousel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
12266
12263
|
right: contentContainerPaddingHorizontal
|
|
12267
12264
|
},
|
|
12268
12265
|
ListHeaderComponent: reactNative.Platform.select({
|
|
12269
|
-
android: /*#__PURE__*/
|
|
12266
|
+
android: /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
12270
12267
|
style: {
|
|
12271
12268
|
width: contentContainerPaddingHorizontal
|
|
12272
12269
|
}
|
|
12273
12270
|
})
|
|
12274
12271
|
}),
|
|
12275
12272
|
ListFooterComponent: reactNative.Platform.select({
|
|
12276
|
-
android: /*#__PURE__*/
|
|
12273
|
+
android: /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
12277
12274
|
style: {
|
|
12278
12275
|
width: contentContainerPaddingHorizontal
|
|
12279
12276
|
}
|
|
@@ -12302,7 +12299,7 @@ var CardCarousel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
12302
12299
|
viewabilityConfig: {
|
|
12303
12300
|
itemVisiblePercentThreshold: 80
|
|
12304
12301
|
}
|
|
12305
|
-
}), !hidePageControl && /*#__PURE__*/
|
|
12302
|
+
}), !hidePageControl && /*#__PURE__*/React__namespace.default.createElement(StyledPageControl$1, {
|
|
12306
12303
|
testID: "pageControl",
|
|
12307
12304
|
currentPage: currentIndex,
|
|
12308
12305
|
numberOfPages: items.length
|
|
@@ -12321,7 +12318,7 @@ var Image = function Image(_ref) {
|
|
|
12321
12318
|
imageNativeProps = _objectWithoutProperties(_ref, _excluded$m);
|
|
12322
12319
|
var theme = useTheme();
|
|
12323
12320
|
var imageSize = theme.__hd__.image.sizes[size];
|
|
12324
|
-
return /*#__PURE__*/
|
|
12321
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.Image, _extends$1({
|
|
12325
12322
|
testID: testID,
|
|
12326
12323
|
style: [{
|
|
12327
12324
|
width: imageSize,
|
|
@@ -12415,10 +12412,10 @@ var CarouselItem = function CarouselItem(_ref) {
|
|
|
12415
12412
|
heading = _ref.heading,
|
|
12416
12413
|
body = _ref.body;
|
|
12417
12414
|
var theme = useTheme$1();
|
|
12418
|
-
var ImageComponent =
|
|
12415
|
+
var ImageComponent = React__namespace.default.useMemo(function () {
|
|
12419
12416
|
if (image) {
|
|
12420
12417
|
if (isCarouselImageProps(image)) {
|
|
12421
|
-
return /*#__PURE__*/
|
|
12418
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledCustomSizeCarouselImage, {
|
|
12422
12419
|
source: image,
|
|
12423
12420
|
themeHeight: image.height,
|
|
12424
12421
|
themeWidth: image.width,
|
|
@@ -12428,7 +12425,7 @@ var CarouselItem = function CarouselItem(_ref) {
|
|
|
12428
12425
|
}
|
|
12429
12426
|
});
|
|
12430
12427
|
}
|
|
12431
|
-
return /*#__PURE__*/
|
|
12428
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledCarouselImage, {
|
|
12432
12429
|
source: typeof image === 'string' ? {
|
|
12433
12430
|
uri: image
|
|
12434
12431
|
} : image,
|
|
@@ -12439,17 +12436,17 @@ var CarouselItem = function CarouselItem(_ref) {
|
|
|
12439
12436
|
}
|
|
12440
12437
|
return null;
|
|
12441
12438
|
}, [image]);
|
|
12442
|
-
return /*#__PURE__*/
|
|
12439
|
+
return /*#__PURE__*/React__namespace.default.createElement(Box, {
|
|
12443
12440
|
style: {
|
|
12444
12441
|
width: width
|
|
12445
12442
|
}
|
|
12446
|
-
}, ImageComponent, /*#__PURE__*/
|
|
12443
|
+
}, ImageComponent, /*#__PURE__*/React__namespace.default.createElement(StyledCarouselContentWrapper, {
|
|
12447
12444
|
paddingHorizontal: "medium",
|
|
12448
12445
|
width: width
|
|
12449
|
-
}, content, !!heading && /*#__PURE__*/
|
|
12446
|
+
}, content, !!heading && /*#__PURE__*/React__namespace.default.createElement(StyledCarouselHeading, {
|
|
12450
12447
|
level: "h1",
|
|
12451
12448
|
typeface: "playful"
|
|
12452
|
-
}, heading), !!body && /*#__PURE__*/
|
|
12449
|
+
}, heading), !!body && /*#__PURE__*/React__namespace.default.createElement(Typography.Body, null, body)));
|
|
12453
12450
|
};
|
|
12454
12451
|
|
|
12455
12452
|
var _excluded$l = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
|
|
@@ -12530,15 +12527,15 @@ var Carousel = function Carousel(_ref) {
|
|
|
12530
12527
|
internalOnItemIndexChange(firstVisibleItem.index || 0);
|
|
12531
12528
|
}
|
|
12532
12529
|
});
|
|
12533
|
-
return /*#__PURE__*/
|
|
12530
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.View, _extends$1({
|
|
12534
12531
|
style: style,
|
|
12535
12532
|
testID: testID
|
|
12536
|
-
}, nativeProps), /*#__PURE__*/
|
|
12533
|
+
}, nativeProps), /*#__PURE__*/React__namespace.default.createElement(StyledBackDrop, {
|
|
12537
12534
|
themeSlideBackground: ((_items$currentSlideIn = items[currentSlideIndex]) === null || _items$currentSlideIn === void 0 ? void 0 : _items$currentSlideIn.background) || theme.colors.defaultGlobalSurface
|
|
12538
|
-
}), /*#__PURE__*/
|
|
12535
|
+
}), /*#__PURE__*/React__namespace.default.createElement(StyledPageControlWrapper, null, pageControlPosition === 'top' && shouldRenderPagination && /*#__PURE__*/React__namespace.default.createElement(StyledPageControl, {
|
|
12539
12536
|
numberOfPages: items.length,
|
|
12540
12537
|
currentPage: currentSlideIndex
|
|
12541
|
-
})), /*#__PURE__*/
|
|
12538
|
+
})), /*#__PURE__*/React__namespace.default.createElement(StyledCarouselView, null, /*#__PURE__*/React__namespace.default.createElement(reactNative.FlatList, {
|
|
12542
12539
|
onLayout: flatListOnLayout,
|
|
12543
12540
|
testID: testID ? "".concat(testID, "_flatlist") : undefined,
|
|
12544
12541
|
horizontal: true,
|
|
@@ -12566,7 +12563,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
12566
12563
|
heading = item.heading,
|
|
12567
12564
|
body = item.body,
|
|
12568
12565
|
content = item.content;
|
|
12569
|
-
return /*#__PURE__*/
|
|
12566
|
+
return /*#__PURE__*/React__namespace.default.createElement(CarouselItem, {
|
|
12570
12567
|
image: image,
|
|
12571
12568
|
heading: heading,
|
|
12572
12569
|
body: body,
|
|
@@ -12581,7 +12578,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
12581
12578
|
index: index
|
|
12582
12579
|
};
|
|
12583
12580
|
}
|
|
12584
|
-
}), /*#__PURE__*/
|
|
12581
|
+
}), /*#__PURE__*/React__namespace.default.createElement(StyledCarouselFooterWrapper, null, renderActions && renderActions(currentSlideIndex), pageControlPosition === 'bottom' && shouldRenderPagination && /*#__PURE__*/React__namespace.default.createElement(StyledPageControl, {
|
|
12585
12582
|
numberOfPages: items.length,
|
|
12586
12583
|
currentPage: currentSlideIndex
|
|
12587
12584
|
}))));
|
|
@@ -12699,7 +12696,7 @@ var Chip = function Chip(_ref) {
|
|
|
12699
12696
|
icon = _ref.icon,
|
|
12700
12697
|
onPress = _ref.onPress,
|
|
12701
12698
|
otherProps = _objectWithoutProperties(_ref, _excluded$k);
|
|
12702
|
-
var internalIcon =
|
|
12699
|
+
var internalIcon = React__namespace.default.useMemo(function () {
|
|
12703
12700
|
if (icon && variant === 'filled') {
|
|
12704
12701
|
return icon;
|
|
12705
12702
|
}
|
|
@@ -12708,17 +12705,17 @@ var Chip = function Chip(_ref) {
|
|
|
12708
12705
|
}
|
|
12709
12706
|
return undefined;
|
|
12710
12707
|
}, [icon, selected, variant]);
|
|
12711
|
-
return /*#__PURE__*/
|
|
12708
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledChipWrapper, _extends$1({
|
|
12712
12709
|
onPress: onPress,
|
|
12713
12710
|
themeVariant: variant,
|
|
12714
12711
|
themeSelected: selected
|
|
12715
|
-
}, otherProps), internalIcon && /*#__PURE__*/
|
|
12712
|
+
}, otherProps), internalIcon && /*#__PURE__*/React__namespace.default.createElement(StyledIconWrapper$3, null, /*#__PURE__*/React__namespace.default.createElement(StyledIcon$1, {
|
|
12716
12713
|
size: "xsmall",
|
|
12717
12714
|
icon: internalIcon,
|
|
12718
12715
|
themeSelected: selected,
|
|
12719
12716
|
themeVariant: variant,
|
|
12720
12717
|
testID: "chip-icon-".concat(internalIcon)
|
|
12721
|
-
})), /*#__PURE__*/
|
|
12718
|
+
})), /*#__PURE__*/React__namespace.default.createElement(StyledLabel, {
|
|
12722
12719
|
variant: "small",
|
|
12723
12720
|
themeVariant: variant,
|
|
12724
12721
|
themeSelected: selected
|
|
@@ -12799,20 +12796,20 @@ var Checkbox = function Checkbox(_ref2) {
|
|
|
12799
12796
|
disabled: disabled,
|
|
12800
12797
|
readonly: readonly
|
|
12801
12798
|
});
|
|
12802
|
-
return /*#__PURE__*/
|
|
12799
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledWrapper$7, {
|
|
12803
12800
|
onPress: onPress,
|
|
12804
12801
|
disabled: disabled || readonly,
|
|
12805
12802
|
themeState: themeState,
|
|
12806
12803
|
style: style,
|
|
12807
12804
|
testID: testID
|
|
12808
|
-
}, !!description && /*#__PURE__*/
|
|
12805
|
+
}, !!description && /*#__PURE__*/React__namespace.default.createElement(StyledDescription$1, {
|
|
12809
12806
|
intent: disabled ? 'subdued' : 'body',
|
|
12810
12807
|
variant: "small"
|
|
12811
|
-
}, description), /*#__PURE__*/
|
|
12808
|
+
}, description), /*#__PURE__*/React__namespace.default.createElement(StyledCheckboxContainer, null, checked && /*#__PURE__*/React__namespace.default.createElement(StyledCheckMark, {
|
|
12812
12809
|
icon: "box-check",
|
|
12813
12810
|
testID: "check-mark",
|
|
12814
12811
|
themeState: themeState
|
|
12815
|
-
}), /*#__PURE__*/
|
|
12812
|
+
}), /*#__PURE__*/React__namespace.default.createElement(StyledCheckbox, {
|
|
12816
12813
|
themeState: themeState
|
|
12817
12814
|
})));
|
|
12818
12815
|
};
|
|
@@ -12973,21 +12970,21 @@ var LABEL_ANIMATION_DURATION = 150;
|
|
|
12973
12970
|
var renderErrorOrHelpText = function renderErrorOrHelpText(_ref2) {
|
|
12974
12971
|
var error = _ref2.error,
|
|
12975
12972
|
helpText = _ref2.helpText;
|
|
12976
|
-
return error ? /*#__PURE__*/
|
|
12973
|
+
return error ? /*#__PURE__*/React__namespace.default.createElement(StyledErrorContainer$2, null, /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
12977
12974
|
testID: "input-error-icon",
|
|
12978
12975
|
icon: "circle-info",
|
|
12979
12976
|
size: "xsmall",
|
|
12980
12977
|
intent: "danger"
|
|
12981
|
-
}), /*#__PURE__*/
|
|
12978
|
+
}), /*#__PURE__*/React__namespace.default.createElement(StyledError, {
|
|
12982
12979
|
testID: "input-error-message"
|
|
12983
|
-
}, error)) : !!helpText && /*#__PURE__*/
|
|
12980
|
+
}, error)) : !!helpText && /*#__PURE__*/React__namespace.default.createElement(StyledHelperText, null, helpText);
|
|
12984
12981
|
};
|
|
12985
12982
|
var renderInput = function renderInput(_ref3) {
|
|
12986
12983
|
var variant = _ref3.variant,
|
|
12987
12984
|
nativeInputProps = _ref3.nativeInputProps,
|
|
12988
12985
|
renderInputValue = _ref3.renderInputValue,
|
|
12989
12986
|
ref = _ref3.ref;
|
|
12990
|
-
return renderInputValue ? renderInputValue(nativeInputProps) : /*#__PURE__*/
|
|
12987
|
+
return renderInputValue ? renderInputValue(nativeInputProps) : /*#__PURE__*/React__namespace.default.createElement(StyledTextInput, _extends$1({}, nativeInputProps, {
|
|
12991
12988
|
themeVariant: variant,
|
|
12992
12989
|
multiline: variant === 'textarea' || nativeInputProps.multiline,
|
|
12993
12990
|
ref: ref
|
|
@@ -12998,7 +12995,7 @@ var renderSuffix = function renderSuffix(_ref4) {
|
|
|
12998
12995
|
loading = _ref4.loading,
|
|
12999
12996
|
suffix = _ref4.suffix;
|
|
13000
12997
|
var actualSuffix = loading ? 'loading' : suffix;
|
|
13001
|
-
return typeof actualSuffix === 'string' ? /*#__PURE__*/
|
|
12998
|
+
return typeof actualSuffix === 'string' ? /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
13002
12999
|
intent: state === 'disabled' ? 'disabled-text' : 'text',
|
|
13003
13000
|
testID: "input-suffix",
|
|
13004
13001
|
icon: actualSuffix,
|
|
@@ -13009,7 +13006,7 @@ var renderSuffix = function renderSuffix(_ref4) {
|
|
|
13009
13006
|
var renderPrefix = function renderPrefix(_ref5) {
|
|
13010
13007
|
var state = _ref5.state,
|
|
13011
13008
|
prefix = _ref5.prefix;
|
|
13012
|
-
return typeof prefix === 'string' ? /*#__PURE__*/
|
|
13009
|
+
return typeof prefix === 'string' ? /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
13013
13010
|
intent: state === 'disabled' ? 'disabled-text' : 'text',
|
|
13014
13011
|
testID: "input-prefix",
|
|
13015
13012
|
icon: prefix,
|
|
@@ -13022,7 +13019,7 @@ var renderMaxLengthMessage = function renderMaxLengthMessage(_ref6) {
|
|
|
13022
13019
|
currentLength = _ref6.currentLength,
|
|
13023
13020
|
hideCharacterCount = _ref6.hideCharacterCount;
|
|
13024
13021
|
var shouldShowMaxLength = maxLength !== undefined && !hideCharacterCount;
|
|
13025
|
-
return shouldShowMaxLength && /*#__PURE__*/
|
|
13022
|
+
return shouldShowMaxLength && /*#__PURE__*/React__namespace.default.createElement(StyledMaxLengthMessage, {
|
|
13026
13023
|
themeState: state
|
|
13027
13024
|
}, currentLength, "/", maxLength);
|
|
13028
13025
|
};
|
|
@@ -13060,22 +13057,22 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
|
|
|
13060
13057
|
nativeProps = _objectWithoutProperties(_ref8, _excluded$j);
|
|
13061
13058
|
var displayText = getDisplayText(value, defaultValue);
|
|
13062
13059
|
var isEmptyValue = displayText.length === 0;
|
|
13063
|
-
var _React$useState =
|
|
13060
|
+
var _React$useState = React__namespace.default.useState({
|
|
13064
13061
|
height: 0,
|
|
13065
13062
|
width: 0
|
|
13066
13063
|
}),
|
|
13067
13064
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
13068
13065
|
inputSize = _React$useState2[0],
|
|
13069
13066
|
setInputSize = _React$useState2[1];
|
|
13070
|
-
var _React$useState3 =
|
|
13067
|
+
var _React$useState3 = React__namespace.default.useState(0),
|
|
13071
13068
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
13072
13069
|
labelWidth = _React$useState4[0],
|
|
13073
13070
|
setLabelWidth = _React$useState4[1];
|
|
13074
|
-
var _React$useState5 =
|
|
13071
|
+
var _React$useState5 = React__namespace.default.useState(0),
|
|
13075
13072
|
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
13076
13073
|
prefixWidth = _React$useState6[0],
|
|
13077
13074
|
setPrefixWidth = _React$useState6[1];
|
|
13078
|
-
var _React$useState7 =
|
|
13075
|
+
var _React$useState7 = React__namespace.default.useState(false),
|
|
13079
13076
|
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
13080
13077
|
isFocused = _React$useState8[0],
|
|
13081
13078
|
setIsFocused = _React$useState8[1];
|
|
@@ -13116,8 +13113,8 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
|
|
|
13116
13113
|
var width = event.nativeEvent.layout.width;
|
|
13117
13114
|
setLabelWidth(width);
|
|
13118
13115
|
}, []);
|
|
13119
|
-
var innerTextInput =
|
|
13120
|
-
|
|
13116
|
+
var innerTextInput = React__namespace.default.useRef();
|
|
13117
|
+
React__namespace.default.useImperativeHandle(ref, function () {
|
|
13121
13118
|
return {
|
|
13122
13119
|
// we don't expose this method, it's for testing https://medium.com/developer-rants/how-to-test-useref-without-mocking-useref-699165f4994e
|
|
13123
13120
|
getNativeTextInputRef: function getNativeTextInputRef() {
|
|
@@ -13209,25 +13206,25 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
|
|
|
13209
13206
|
defaultValue: defaultValue,
|
|
13210
13207
|
placeholder: isFocused || label === undefined ? nativeProps.placeholder : EMPTY_PLACEHOLDER_VALUE
|
|
13211
13208
|
});
|
|
13212
|
-
return /*#__PURE__*/
|
|
13209
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$4, {
|
|
13213
13210
|
style: styleWithoutBackgroundColor,
|
|
13214
13211
|
pointerEvents: state === 'disabled' || state === 'readonly' ? 'none' : 'auto',
|
|
13215
13212
|
testID: testID
|
|
13216
|
-
}, /*#__PURE__*/
|
|
13213
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledTextInputContainer, {
|
|
13217
13214
|
onLayout: onLayout
|
|
13218
|
-
}, /*#__PURE__*/
|
|
13215
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledBorderBackDrop, {
|
|
13219
13216
|
themeFocused: isFocused,
|
|
13220
13217
|
themeState: state,
|
|
13221
13218
|
testID: "text-input-border",
|
|
13222
13219
|
style: [{
|
|
13223
13220
|
backgroundColor: backgroundColor
|
|
13224
13221
|
}, borderStyle]
|
|
13225
|
-
}), /*#__PURE__*/
|
|
13222
|
+
}), /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
13226
13223
|
onLayout: onPrefixLayout
|
|
13227
13224
|
}, renderPrefix({
|
|
13228
13225
|
state: state,
|
|
13229
13226
|
prefix: prefix
|
|
13230
|
-
})), /*#__PURE__*/
|
|
13227
|
+
})), /*#__PURE__*/React__namespace.default.createElement(StyledLabelContainerInsideTextInput, {
|
|
13231
13228
|
themeVariant: variant,
|
|
13232
13229
|
pointerEvents: "none",
|
|
13233
13230
|
style: [{
|
|
@@ -13250,13 +13247,13 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
|
|
|
13250
13247
|
})
|
|
13251
13248
|
}]
|
|
13252
13249
|
}]
|
|
13253
|
-
}, required && /*#__PURE__*/
|
|
13250
|
+
}, required && /*#__PURE__*/React__namespace.default.createElement(StyledAsteriskLabelInsideTextInput, {
|
|
13254
13251
|
style: {
|
|
13255
13252
|
backgroundColor: backgroundColor
|
|
13256
13253
|
},
|
|
13257
13254
|
themeState: state,
|
|
13258
13255
|
testID: "input-label-asterisk"
|
|
13259
|
-
}, "*"), !!label && /*#__PURE__*/
|
|
13256
|
+
}, "*"), !!label && /*#__PURE__*/React__namespace.default.createElement(StyledLabelInsideTextInput, {
|
|
13260
13257
|
style: {
|
|
13261
13258
|
backgroundColor: backgroundColor
|
|
13262
13259
|
},
|
|
@@ -13264,7 +13261,7 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
|
|
|
13264
13261
|
testID: "input-label",
|
|
13265
13262
|
themeState: state,
|
|
13266
13263
|
onLayout: onLabelLayout
|
|
13267
|
-
}, label)), /*#__PURE__*/
|
|
13264
|
+
}, label)), /*#__PURE__*/React__namespace.default.createElement(StyledTextInputAndLabelContainer, null, renderInput({
|
|
13268
13265
|
variant: variant,
|
|
13269
13266
|
nativeInputProps: nativeInputProps,
|
|
13270
13267
|
renderInputValue: renderInputValue,
|
|
@@ -13275,7 +13272,7 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
|
|
|
13275
13272
|
state: state,
|
|
13276
13273
|
loading: loading,
|
|
13277
13274
|
suffix: suffix
|
|
13278
|
-
})), /*#__PURE__*/
|
|
13275
|
+
})), /*#__PURE__*/React__namespace.default.createElement(StyledErrorAndHelpTextContainer, null, /*#__PURE__*/React__namespace.default.createElement(StyledErrorAndMaxLengthContainer, null, renderErrorOrHelpText({
|
|
13279
13276
|
error: error,
|
|
13280
13277
|
helpText: helpText
|
|
13281
13278
|
}), renderMaxLengthMessage({
|
|
@@ -13336,15 +13333,15 @@ var DatePickerAndroid = function DatePickerAndroid(_ref) {
|
|
|
13336
13333
|
onChange: _onChange,
|
|
13337
13334
|
value: value
|
|
13338
13335
|
});
|
|
13339
|
-
return /*#__PURE__*/
|
|
13336
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
13340
13337
|
onPress: function onPress() {
|
|
13341
13338
|
return setOpen(true);
|
|
13342
13339
|
},
|
|
13343
13340
|
disabled: disabled
|
|
13344
|
-
}, /*#__PURE__*/
|
|
13341
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
13345
13342
|
pointerEvents: "none",
|
|
13346
13343
|
testID: "datePickerInputAndroid"
|
|
13347
|
-
}, /*#__PURE__*/
|
|
13344
|
+
}, /*#__PURE__*/React__namespace.default.createElement(TextInput, {
|
|
13348
13345
|
label: label,
|
|
13349
13346
|
value: displayValue,
|
|
13350
13347
|
suffix: "calendar-dates-outlined",
|
|
@@ -13355,7 +13352,7 @@ var DatePickerAndroid = function DatePickerAndroid(_ref) {
|
|
|
13355
13352
|
helpText: helpText,
|
|
13356
13353
|
style: style,
|
|
13357
13354
|
testID: testID
|
|
13358
|
-
})), open ? /*#__PURE__*/
|
|
13355
|
+
})), open ? /*#__PURE__*/React__namespace.default.createElement(DateTimePicker__default.default, {
|
|
13359
13356
|
testID: "datePickerAndroid",
|
|
13360
13357
|
mode: "date",
|
|
13361
13358
|
value: pickerInitValue,
|
|
@@ -13387,7 +13384,7 @@ var InternalCalendar = function InternalCalendar(_ref) {
|
|
|
13387
13384
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
13388
13385
|
selectingDate = _useState4[0],
|
|
13389
13386
|
setSelectingDate = _useState4[1];
|
|
13390
|
-
return /*#__PURE__*/
|
|
13387
|
+
return /*#__PURE__*/React__namespace.default.createElement(Calendar, {
|
|
13391
13388
|
testID: "calendar",
|
|
13392
13389
|
value: selectingDate,
|
|
13393
13390
|
visibleDate: visibleDate,
|
|
@@ -13456,15 +13453,15 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
13456
13453
|
onChange: onChange,
|
|
13457
13454
|
value: value
|
|
13458
13455
|
});
|
|
13459
|
-
return /*#__PURE__*/
|
|
13456
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
13460
13457
|
onPress: function onPress() {
|
|
13461
13458
|
return setOpen(true);
|
|
13462
13459
|
},
|
|
13463
13460
|
disabled: disabled
|
|
13464
|
-
}, /*#__PURE__*/
|
|
13461
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
13465
13462
|
pointerEvents: "none",
|
|
13466
13463
|
testID: "datePickerCalendar"
|
|
13467
|
-
}, /*#__PURE__*/
|
|
13464
|
+
}, /*#__PURE__*/React__namespace.default.createElement(TextInput, {
|
|
13468
13465
|
label: label,
|
|
13469
13466
|
value: displayValue,
|
|
13470
13467
|
suffix: "calendar-dates-outlined",
|
|
@@ -13475,13 +13472,13 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
13475
13472
|
helpText: helpText,
|
|
13476
13473
|
testID: testID,
|
|
13477
13474
|
style: style
|
|
13478
|
-
})), /*#__PURE__*/
|
|
13475
|
+
})), /*#__PURE__*/React__namespace.default.createElement(BottomSheet$1, {
|
|
13479
13476
|
open: open,
|
|
13480
13477
|
onRequestClose: function onRequestClose() {
|
|
13481
13478
|
return setOpen(false);
|
|
13482
13479
|
},
|
|
13483
13480
|
header: label,
|
|
13484
|
-
footer: shouldHideToolbar ? undefined : /*#__PURE__*/
|
|
13481
|
+
footer: shouldHideToolbar ? undefined : /*#__PURE__*/React__namespace.default.createElement(CompoundButton, {
|
|
13485
13482
|
variant: "text",
|
|
13486
13483
|
text: confirmLabel,
|
|
13487
13484
|
onPress: function onPress() {
|
|
@@ -13492,7 +13489,7 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
13492
13489
|
}
|
|
13493
13490
|
}),
|
|
13494
13491
|
supportedOrientations: supportedOrientations
|
|
13495
|
-
}, /*#__PURE__*/
|
|
13492
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.ScrollView, null, /*#__PURE__*/React__namespace.default.createElement(InternalCalendar, {
|
|
13496
13493
|
minDate: minDate,
|
|
13497
13494
|
maxDate: maxDate,
|
|
13498
13495
|
value: value,
|
|
@@ -13547,15 +13544,15 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
13547
13544
|
onChange: onChange,
|
|
13548
13545
|
value: value
|
|
13549
13546
|
});
|
|
13550
|
-
return /*#__PURE__*/
|
|
13547
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
13551
13548
|
onPress: function onPress() {
|
|
13552
13549
|
return setOpen(true);
|
|
13553
13550
|
},
|
|
13554
13551
|
disabled: disabled
|
|
13555
|
-
}, /*#__PURE__*/
|
|
13552
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
13556
13553
|
pointerEvents: "none",
|
|
13557
13554
|
testID: "datePickerInputIOS"
|
|
13558
|
-
}, /*#__PURE__*/
|
|
13555
|
+
}, /*#__PURE__*/React__namespace.default.createElement(TextInput, {
|
|
13559
13556
|
label: label,
|
|
13560
13557
|
value: displayValue,
|
|
13561
13558
|
suffix: "calendar-dates-outlined",
|
|
@@ -13566,13 +13563,13 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
13566
13563
|
helpText: helpText,
|
|
13567
13564
|
testID: testID,
|
|
13568
13565
|
style: style
|
|
13569
|
-
})), /*#__PURE__*/
|
|
13566
|
+
})), /*#__PURE__*/React__namespace.default.createElement(BottomSheet$1, {
|
|
13570
13567
|
open: open,
|
|
13571
13568
|
onRequestClose: function onRequestClose() {
|
|
13572
13569
|
return setOpen(false);
|
|
13573
13570
|
},
|
|
13574
13571
|
header: label,
|
|
13575
|
-
footer: /*#__PURE__*/
|
|
13572
|
+
footer: /*#__PURE__*/React__namespace.default.createElement(CompoundButton, {
|
|
13576
13573
|
variant: "text",
|
|
13577
13574
|
text: confirmLabel,
|
|
13578
13575
|
onPress: function onPress() {
|
|
@@ -13583,7 +13580,7 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
13583
13580
|
}
|
|
13584
13581
|
}),
|
|
13585
13582
|
supportedOrientations: supportedOrientations
|
|
13586
|
-
}, /*#__PURE__*/
|
|
13583
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledPickerWrapper$1, null, /*#__PURE__*/React__namespace.default.createElement(DateTimePicker__default.default, {
|
|
13587
13584
|
testID: "datePickerIOS",
|
|
13588
13585
|
value: selectingDate,
|
|
13589
13586
|
minimumDate: minDate,
|
|
@@ -13608,12 +13605,12 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
13608
13605
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
13609
13606
|
props = _objectWithoutProperties(_ref, _excluded$i);
|
|
13610
13607
|
if (variant === 'calendar') {
|
|
13611
|
-
return /*#__PURE__*/
|
|
13608
|
+
return /*#__PURE__*/React__namespace.default.createElement(DatePickerCalendar, props);
|
|
13612
13609
|
}
|
|
13613
13610
|
if (reactNative.Platform.OS === 'ios') {
|
|
13614
|
-
return /*#__PURE__*/
|
|
13611
|
+
return /*#__PURE__*/React__namespace.default.createElement(DatePickerIOS, props);
|
|
13615
13612
|
}
|
|
13616
|
-
return /*#__PURE__*/
|
|
13613
|
+
return /*#__PURE__*/React__namespace.default.createElement(DatePickerAndroid, props);
|
|
13617
13614
|
};
|
|
13618
13615
|
|
|
13619
13616
|
var AnimatedPressable$1 = reactNative.Animated.createAnimatedComponent(reactNative.Pressable);
|
|
@@ -13824,11 +13821,11 @@ var DragableDrawer = function DragableDrawer(_ref) {
|
|
|
13824
13821
|
setAnimatedToValue(animatedValue);
|
|
13825
13822
|
}
|
|
13826
13823
|
})).current;
|
|
13827
|
-
return /*#__PURE__*/
|
|
13824
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledDragableContainer, {
|
|
13828
13825
|
testID: testID,
|
|
13829
13826
|
enableShadow: true,
|
|
13830
13827
|
pointerEvents: "box-none"
|
|
13831
|
-
}, /*#__PURE__*/
|
|
13828
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledDragableDrawerContainer, {
|
|
13832
13829
|
enableShadow: true,
|
|
13833
13830
|
style: {
|
|
13834
13831
|
transform: [{
|
|
@@ -13841,7 +13838,7 @@ var DragableDrawer = function DragableDrawer(_ref) {
|
|
|
13841
13838
|
var nativeEvent = _ref3.nativeEvent;
|
|
13842
13839
|
setHeight(nativeEvent.layout.height);
|
|
13843
13840
|
}
|
|
13844
|
-
}, /*#__PURE__*/
|
|
13841
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledHandlerContainer, panResponder.panHandlers, /*#__PURE__*/React__namespace.default.createElement(StyledHandler, null)), children));
|
|
13845
13842
|
};
|
|
13846
13843
|
|
|
13847
13844
|
var Drawer = function Drawer(_ref) {
|
|
@@ -13876,17 +13873,17 @@ var Drawer = function Drawer(_ref) {
|
|
|
13876
13873
|
return animation.stop();
|
|
13877
13874
|
};
|
|
13878
13875
|
}, [visible]);
|
|
13879
|
-
return /*#__PURE__*/
|
|
13876
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$3, {
|
|
13880
13877
|
testID: testID,
|
|
13881
13878
|
enableShadow: enableShadow,
|
|
13882
13879
|
pointerEvents: "box-none"
|
|
13883
|
-
}, /*#__PURE__*/
|
|
13880
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledBackdrop$1, {
|
|
13884
13881
|
pointerEvents: visible ? 'auto' : 'box-none',
|
|
13885
13882
|
onPress: onDismiss,
|
|
13886
13883
|
style: {
|
|
13887
13884
|
opacity: interpolateBackdropOpacity
|
|
13888
13885
|
}
|
|
13889
|
-
}), /*#__PURE__*/
|
|
13886
|
+
}), /*#__PURE__*/React__namespace.default.createElement(StyledDrawerContainer, {
|
|
13890
13887
|
enableShadow: enableShadow,
|
|
13891
13888
|
onLayout: function onLayout(_ref2) {
|
|
13892
13889
|
var nativeEvent = _ref2.nativeEvent;
|
|
@@ -13941,18 +13938,18 @@ var Empty = function Empty(_ref) {
|
|
|
13941
13938
|
_ref$variant = _ref.variant,
|
|
13942
13939
|
variant = _ref$variant === void 0 ? 'light' : _ref$variant;
|
|
13943
13940
|
var theme = useTheme();
|
|
13944
|
-
return /*#__PURE__*/
|
|
13941
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledWrapper$6, {
|
|
13945
13942
|
style: style,
|
|
13946
13943
|
testID: testID
|
|
13947
|
-
}, image !== undefined && /*#__PURE__*/
|
|
13944
|
+
}, image !== undefined && /*#__PURE__*/React__namespace.default.cloneElement(image, _objectSpread2(_objectSpread2({}, image.props), {}, {
|
|
13948
13945
|
style: [{
|
|
13949
13946
|
marginBottom: theme.__hd__.empty.space.imageMargin
|
|
13950
13947
|
}, image.props.style]
|
|
13951
|
-
})), /*#__PURE__*/
|
|
13948
|
+
})), /*#__PURE__*/React__namespace.default.createElement(StyledTitle, {
|
|
13952
13949
|
themeVariant: variant,
|
|
13953
13950
|
level: "h4",
|
|
13954
13951
|
typeface: "playful"
|
|
13955
|
-
}, title), !!description && /*#__PURE__*/
|
|
13952
|
+
}, title), !!description && /*#__PURE__*/React__namespace.default.createElement(StyledDescription, {
|
|
13956
13953
|
themeVariant: variant,
|
|
13957
13954
|
typeface: "playful"
|
|
13958
13955
|
}, description));
|
|
@@ -14045,7 +14042,7 @@ var PortalHostComponent = function PortalHostComponent(_ref) {
|
|
|
14045
14042
|
deregisterHost();
|
|
14046
14043
|
};
|
|
14047
14044
|
}, []);
|
|
14048
|
-
return /*#__PURE__*/
|
|
14045
|
+
return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, state.map(function (item) {
|
|
14049
14046
|
return item.node;
|
|
14050
14047
|
}));
|
|
14051
14048
|
};
|
|
@@ -14113,11 +14110,11 @@ var PortalProviderComponent = function PortalProviderComponent(_ref) {
|
|
|
14113
14110
|
_useReducer2 = _slicedToArray(_useReducer, 2),
|
|
14114
14111
|
state = _useReducer2[0],
|
|
14115
14112
|
dispatch = _useReducer2[1];
|
|
14116
|
-
return /*#__PURE__*/
|
|
14113
|
+
return /*#__PURE__*/React__namespace.default.createElement(PortalDispatchContext.Provider, {
|
|
14117
14114
|
value: dispatch
|
|
14118
|
-
}, /*#__PURE__*/
|
|
14115
|
+
}, /*#__PURE__*/React__namespace.default.createElement(PortalStateContext.Provider, {
|
|
14119
14116
|
value: state
|
|
14120
|
-
}, children, /*#__PURE__*/
|
|
14117
|
+
}, children, /*#__PURE__*/React__namespace.default.createElement(PortalHost, {
|
|
14121
14118
|
name: rootHostName
|
|
14122
14119
|
})));
|
|
14123
14120
|
};
|
|
@@ -14138,7 +14135,7 @@ var PortalComponent = function PortalComponent(_ref) {
|
|
|
14138
14135
|
return name || nanoid();
|
|
14139
14136
|
}, [name]);
|
|
14140
14137
|
var ChildrenComponent = React.useMemo(function () {
|
|
14141
|
-
return /*#__PURE__*/
|
|
14138
|
+
return /*#__PURE__*/React__namespace.default.createElement(ThemeProvider, {
|
|
14142
14139
|
theme: theme || defaultTheme
|
|
14143
14140
|
}, children);
|
|
14144
14141
|
}, [theme, children, defaultTheme]);
|
|
@@ -14238,12 +14235,12 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
14238
14235
|
return backHandler.remove();
|
|
14239
14236
|
};
|
|
14240
14237
|
}, [onRequestClose]);
|
|
14241
|
-
return /*#__PURE__*/
|
|
14238
|
+
return /*#__PURE__*/React__namespace.default.createElement(Portal$1, null, /*#__PURE__*/React__namespace.default.createElement(reactNative.Animated.View, {
|
|
14242
14239
|
style: _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
14243
14240
|
backgroundColor: transparent ? 'transparent' : theme.colors.overlayGlobalSurface,
|
|
14244
14241
|
opacity: animationType !== 'none' ? backdropOpacityAnimation : DEFAULT_BACKDROP_OPACITY
|
|
14245
14242
|
})
|
|
14246
|
-
}), /*#__PURE__*/
|
|
14243
|
+
}), /*#__PURE__*/React__namespace.default.createElement(reactNative.Animated.View, {
|
|
14247
14244
|
testID: testID,
|
|
14248
14245
|
style: _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
14249
14246
|
opacity: animationType === 'fade' ? modalAnimation : 1,
|
|
@@ -14279,7 +14276,7 @@ var ModalWrapper = function ModalWrapper(_ref3) {
|
|
|
14279
14276
|
(_modalRef$current2 = modalRef.current) === null || _modalRef$current2 === void 0 || _modalRef$current2.show();
|
|
14280
14277
|
}
|
|
14281
14278
|
}, [internalVisible]);
|
|
14282
|
-
return internalVisible ? /*#__PURE__*/
|
|
14279
|
+
return internalVisible ? /*#__PURE__*/React__namespace.default.createElement(Modal, _extends$1({
|
|
14283
14280
|
ref: modalRef
|
|
14284
14281
|
}, props)) : null;
|
|
14285
14282
|
};
|
|
@@ -14370,11 +14367,11 @@ var _excluded$g = ["variant", "title", "description", "image", "testID", "ctaTex
|
|
|
14370
14367
|
_excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
|
|
14371
14368
|
var renderImage$1 = function renderImage(image) {
|
|
14372
14369
|
if ( /*#__PURE__*/React.isValidElement(image)) {
|
|
14373
|
-
return /*#__PURE__*/
|
|
14370
|
+
return /*#__PURE__*/React__namespace.default.cloneElement(image, {
|
|
14374
14371
|
testID: 'error-image'
|
|
14375
14372
|
});
|
|
14376
14373
|
}
|
|
14377
|
-
return /*#__PURE__*/
|
|
14374
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledErrorImage, {
|
|
14378
14375
|
source: typeof image === 'string' ? {
|
|
14379
14376
|
uri: image
|
|
14380
14377
|
} : image,
|
|
@@ -14396,19 +14393,19 @@ var ErrorPage = function ErrorPage(_ref) {
|
|
|
14396
14393
|
var showCta = ctaText && onCtaPress !== undefined;
|
|
14397
14394
|
var showSecondaryCta = secondaryCtaText && onSecondaryCtaPress !== undefined;
|
|
14398
14395
|
var showButtonContainer = showCta || showSecondaryCta;
|
|
14399
|
-
return /*#__PURE__*/
|
|
14396
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledErrorContainer$1, _extends$1({
|
|
14400
14397
|
testID: testID,
|
|
14401
14398
|
themeVariant: variant
|
|
14402
|
-
}, nativeProps), /*#__PURE__*/
|
|
14399
|
+
}, nativeProps), /*#__PURE__*/React__namespace.default.createElement(StyledErrorContent, null, image && /*#__PURE__*/React__namespace.default.createElement(StyledErrorImageContainer, null, renderImage$1(image)), /*#__PURE__*/React__namespace.default.createElement(StyledErrorTitle, {
|
|
14403
14400
|
level: "h4",
|
|
14404
14401
|
typeface: "playful"
|
|
14405
|
-
}, title), description && /*#__PURE__*/
|
|
14402
|
+
}, title), description && /*#__PURE__*/React__namespace.default.createElement(StyledErrorDescription, {
|
|
14406
14403
|
typeface: "playful"
|
|
14407
|
-
}, description)), showButtonContainer && /*#__PURE__*/
|
|
14404
|
+
}, description)), showButtonContainer && /*#__PURE__*/React__namespace.default.createElement(StyledErrorButtonContainer, null, showCta && /*#__PURE__*/React__namespace.default.createElement(StyledErrorButtonPrimary, {
|
|
14408
14405
|
variant: "filled",
|
|
14409
14406
|
text: ctaText,
|
|
14410
14407
|
onPress: onCtaPress
|
|
14411
|
-
}), showSecondaryCta && /*#__PURE__*/
|
|
14408
|
+
}), showSecondaryCta && /*#__PURE__*/React__namespace.default.createElement(StyledErrorButtonSecondary, {
|
|
14412
14409
|
variant: "text",
|
|
14413
14410
|
text: secondaryCtaText,
|
|
14414
14411
|
onPress: onSecondaryCtaPress
|
|
@@ -14467,7 +14464,7 @@ var ErrorComponent = function ErrorComponent(_ref2) {
|
|
|
14467
14464
|
}
|
|
14468
14465
|
}, [isVisible, onCloseModal]);
|
|
14469
14466
|
if (variant === 'full-screen') {
|
|
14470
|
-
return /*#__PURE__*/
|
|
14467
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledErrorModal, {
|
|
14471
14468
|
visible: isVisible,
|
|
14472
14469
|
onRequestClose: function onRequestClose() {
|
|
14473
14470
|
return setIsVisible(false);
|
|
@@ -14476,7 +14473,7 @@ var ErrorComponent = function ErrorComponent(_ref2) {
|
|
|
14476
14473
|
return setIsVisible(false);
|
|
14477
14474
|
},
|
|
14478
14475
|
animationType: "slide"
|
|
14479
|
-
}, /*#__PURE__*/
|
|
14476
|
+
}, /*#__PURE__*/React__namespace.default.createElement(ErrorPage, _extends$1({
|
|
14480
14477
|
variant: variant,
|
|
14481
14478
|
title: title,
|
|
14482
14479
|
description: description,
|
|
@@ -14492,7 +14489,7 @@ var ErrorComponent = function ErrorComponent(_ref2) {
|
|
|
14492
14489
|
}
|
|
14493
14490
|
}, nativeProps)));
|
|
14494
14491
|
}
|
|
14495
|
-
return /*#__PURE__*/
|
|
14492
|
+
return /*#__PURE__*/React__namespace.default.createElement(ErrorPage, _extends$1({
|
|
14496
14493
|
variant: variant,
|
|
14497
14494
|
title: title,
|
|
14498
14495
|
description: description,
|
|
@@ -14573,13 +14570,13 @@ var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
|
|
|
14573
14570
|
inputRange: [0, 1],
|
|
14574
14571
|
outputRange: ['0deg', '-45deg']
|
|
14575
14572
|
});
|
|
14576
|
-
return /*#__PURE__*/
|
|
14573
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.Animated.View, {
|
|
14577
14574
|
style: reactNative.StyleSheet.flatten([{
|
|
14578
14575
|
transform: [{
|
|
14579
14576
|
rotate: interpolatedRotateAnimation
|
|
14580
14577
|
}]
|
|
14581
14578
|
}])
|
|
14582
|
-
}, /*#__PURE__*/
|
|
14579
|
+
}, /*#__PURE__*/React__namespace.default.createElement(AnimatedIcons, _extends$1({
|
|
14583
14580
|
size: "xsmall"
|
|
14584
14581
|
}, iconProps)));
|
|
14585
14582
|
};
|
|
@@ -14594,13 +14591,13 @@ var IconOnlyContent = function IconOnlyContent(_ref) {
|
|
|
14594
14591
|
animated = _ref.animated,
|
|
14595
14592
|
active = _ref.active;
|
|
14596
14593
|
if (animated) {
|
|
14597
|
-
return /*#__PURE__*/
|
|
14594
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledIconContainer, null, /*#__PURE__*/React__namespace.default.createElement(AnimatedFABIcon, {
|
|
14598
14595
|
active: active,
|
|
14599
14596
|
icon: icon,
|
|
14600
14597
|
testID: "animated-fab-icon"
|
|
14601
14598
|
}));
|
|
14602
14599
|
}
|
|
14603
|
-
return /*#__PURE__*/
|
|
14600
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledFABIcon, {
|
|
14604
14601
|
icon: icon,
|
|
14605
14602
|
testID: "styled-fab-icon"
|
|
14606
14603
|
});
|
|
@@ -14608,11 +14605,11 @@ var IconOnlyContent = function IconOnlyContent(_ref) {
|
|
|
14608
14605
|
var IconWithTextContent = function IconWithTextContent(_ref2) {
|
|
14609
14606
|
var icon = _ref2.icon,
|
|
14610
14607
|
title = _ref2.title;
|
|
14611
|
-
return /*#__PURE__*/
|
|
14608
|
+
return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, /*#__PURE__*/React__namespace.default.createElement(StyledIconContainer, null, /*#__PURE__*/React__namespace.default.createElement(StyledFABIcon, {
|
|
14612
14609
|
size: "xsmall",
|
|
14613
14610
|
icon: icon,
|
|
14614
14611
|
testID: "styled-fab-icon"
|
|
14615
|
-
})), /*#__PURE__*/
|
|
14612
|
+
})), /*#__PURE__*/React__namespace.default.createElement(StyledFABText, null, title));
|
|
14616
14613
|
};
|
|
14617
14614
|
var animateWidth = function animateWidth() {
|
|
14618
14615
|
reactNative.LayoutAnimation.configureNext({
|
|
@@ -14633,7 +14630,7 @@ var FAB$1 = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
|
|
|
14633
14630
|
active = _ref3.active,
|
|
14634
14631
|
style = _ref3.style;
|
|
14635
14632
|
var theme = useTheme();
|
|
14636
|
-
var _React$useState =
|
|
14633
|
+
var _React$useState = React__namespace.default.useState({
|
|
14637
14634
|
hideTitle: false,
|
|
14638
14635
|
hideButton: false
|
|
14639
14636
|
}),
|
|
@@ -14642,17 +14639,17 @@ var FAB$1 = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
|
|
|
14642
14639
|
setDisplayState = _React$useState2[1];
|
|
14643
14640
|
var isIconOnly = displayState.hideTitle || active || !title;
|
|
14644
14641
|
var animatedValues = {
|
|
14645
|
-
opacity:
|
|
14646
|
-
width:
|
|
14647
|
-
translateY:
|
|
14642
|
+
opacity: React__namespace.default.useRef(new reactNative.Animated.Value(1)).current,
|
|
14643
|
+
width: React__namespace.default.useRef(new reactNative.Animated.Value(1)).current,
|
|
14644
|
+
translateY: React__namespace.default.useRef(new reactNative.Animated.Value(0)).current
|
|
14648
14645
|
};
|
|
14649
14646
|
var marginBottom = Number((_StyleSheet$flatten = reactNative.StyleSheet.flatten(style)) === null || _StyleSheet$flatten === void 0 ? void 0 : _StyleSheet$flatten.marginBottom) || 0;
|
|
14650
|
-
var _React$useState3 =
|
|
14647
|
+
var _React$useState3 = React__namespace.default.useState(0),
|
|
14651
14648
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
14652
14649
|
buttonWidth = _React$useState4[0],
|
|
14653
14650
|
setButtonWidth = _React$useState4[1];
|
|
14654
14651
|
var hasSetButtonWidth = buttonWidth > 0;
|
|
14655
|
-
|
|
14652
|
+
React__namespace.default.useImperativeHandle(ref, function () {
|
|
14656
14653
|
return {
|
|
14657
14654
|
show: function show() {
|
|
14658
14655
|
reactNative.Animated.spring(animatedValues.translateY, {
|
|
@@ -14701,7 +14698,7 @@ var FAB$1 = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
|
|
|
14701
14698
|
}
|
|
14702
14699
|
};
|
|
14703
14700
|
}, []);
|
|
14704
|
-
return /*#__PURE__*/
|
|
14701
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledFAB$1, {
|
|
14705
14702
|
onLayout: function onLayout(event) {
|
|
14706
14703
|
return !hasSetButtonWidth && !active && setButtonWidth(event.nativeEvent.layout.width);
|
|
14707
14704
|
},
|
|
@@ -14718,7 +14715,7 @@ var FAB$1 = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
|
|
|
14718
14715
|
}],
|
|
14719
14716
|
testID: testID,
|
|
14720
14717
|
themeActive: active
|
|
14721
|
-
}, /*#__PURE__*/
|
|
14718
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.Animated.View, {
|
|
14722
14719
|
style: {
|
|
14723
14720
|
flexDirection: 'row',
|
|
14724
14721
|
opacity: animatedValues.opacity.interpolate({
|
|
@@ -14726,11 +14723,11 @@ var FAB$1 = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
|
|
|
14726
14723
|
outputRange: [0, 1]
|
|
14727
14724
|
})
|
|
14728
14725
|
}
|
|
14729
|
-
}, isIconOnly ? /*#__PURE__*/
|
|
14726
|
+
}, isIconOnly ? /*#__PURE__*/React__namespace.default.createElement(IconOnlyContent, {
|
|
14730
14727
|
animated: animated,
|
|
14731
14728
|
active: active,
|
|
14732
14729
|
icon: active ? 'add' : icon
|
|
14733
|
-
}) : /*#__PURE__*/
|
|
14730
|
+
}) : /*#__PURE__*/React__namespace.default.createElement(IconWithTextContent, {
|
|
14734
14731
|
icon: icon,
|
|
14735
14732
|
title: title
|
|
14736
14733
|
})));
|
|
@@ -14774,12 +14771,12 @@ var ActionItem = function ActionItem(_ref) {
|
|
|
14774
14771
|
_ref$active = _ref.active,
|
|
14775
14772
|
active = _ref$active === void 0 ? false : _ref$active;
|
|
14776
14773
|
var theme = useTheme();
|
|
14777
|
-
var animatedValue =
|
|
14774
|
+
var animatedValue = React__namespace.default.useRef(new reactNative.Animated.Value(0));
|
|
14778
14775
|
var translateY = animatedValue.current.interpolate({
|
|
14779
14776
|
inputRange: [0, 1],
|
|
14780
14777
|
outputRange: [50, 0]
|
|
14781
14778
|
});
|
|
14782
|
-
|
|
14779
|
+
React__namespace.default.useEffect(function () {
|
|
14783
14780
|
reactNative.Animated.spring(animatedValue.current, {
|
|
14784
14781
|
toValue: active ? 1 : 0,
|
|
14785
14782
|
useNativeDriver: reactNative.Platform.OS !== 'web',
|
|
@@ -14788,21 +14785,21 @@ var ActionItem = function ActionItem(_ref) {
|
|
|
14788
14785
|
bounciness: 10
|
|
14789
14786
|
}).start();
|
|
14790
14787
|
}, [active, index]);
|
|
14791
|
-
return /*#__PURE__*/
|
|
14788
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.Animated.View, {
|
|
14792
14789
|
style: {
|
|
14793
14790
|
transform: [{
|
|
14794
14791
|
translateY: translateY
|
|
14795
14792
|
}]
|
|
14796
14793
|
}
|
|
14797
|
-
}, /*#__PURE__*/
|
|
14794
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledActionItem, {
|
|
14798
14795
|
underlayColor: theme.__hd__.fab.colors.actionItemPressedBackground,
|
|
14799
14796
|
style: style,
|
|
14800
14797
|
onPress: onPress,
|
|
14801
14798
|
testID: testID
|
|
14802
|
-
}, /*#__PURE__*/
|
|
14799
|
+
}, /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, /*#__PURE__*/React__namespace.default.createElement(StyledIconContainer, null, /*#__PURE__*/React__namespace.default.createElement(StyledIcon, {
|
|
14803
14800
|
size: "xsmall",
|
|
14804
14801
|
icon: icon
|
|
14805
|
-
})), /*#__PURE__*/
|
|
14802
|
+
})), /*#__PURE__*/React__namespace.default.createElement(StyledActionItemText, null, title))));
|
|
14806
14803
|
};
|
|
14807
14804
|
|
|
14808
14805
|
var StyledContainer$2 = index$9(reactNative.View)({
|
|
@@ -14867,7 +14864,7 @@ var ActionGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
14867
14864
|
var theme = useTheme();
|
|
14868
14865
|
var fabRef = React.useRef(null);
|
|
14869
14866
|
var animatedValue = React.useRef(new reactNative.Animated.Value(active ? 1 : 0));
|
|
14870
|
-
|
|
14867
|
+
React__namespace.default.useImperativeHandle(ref, function () {
|
|
14871
14868
|
return {
|
|
14872
14869
|
showFAB: function showFAB() {
|
|
14873
14870
|
var _fabRef$current;
|
|
@@ -14883,7 +14880,7 @@ var ActionGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
14883
14880
|
}
|
|
14884
14881
|
};
|
|
14885
14882
|
}, [fabRef]);
|
|
14886
|
-
|
|
14883
|
+
React__namespace.default.useEffect(function () {
|
|
14887
14884
|
reactNative.Animated.spring(animatedValue.current, {
|
|
14888
14885
|
toValue: active ? 1 : 0,
|
|
14889
14886
|
delay: 100,
|
|
@@ -14901,11 +14898,11 @@ var ActionGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
14901
14898
|
inputRange: [0, 1],
|
|
14902
14899
|
outputRange: [0, 1]
|
|
14903
14900
|
});
|
|
14904
|
-
return /*#__PURE__*/
|
|
14901
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$2, {
|
|
14905
14902
|
testID: testID,
|
|
14906
14903
|
pointerEvents: "box-none",
|
|
14907
14904
|
style: style
|
|
14908
|
-
}, /*#__PURE__*/
|
|
14905
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.Animated.View, null, /*#__PURE__*/React__namespace.default.createElement(StyledFAB, {
|
|
14909
14906
|
key: "fab",
|
|
14910
14907
|
testID: "fab",
|
|
14911
14908
|
icon: fabIcon,
|
|
@@ -14914,36 +14911,36 @@ var ActionGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
14914
14911
|
active: active,
|
|
14915
14912
|
title: fabTitle,
|
|
14916
14913
|
ref: fabRef
|
|
14917
|
-
})), /*#__PURE__*/
|
|
14914
|
+
})), /*#__PURE__*/React__namespace.default.createElement(reactNative.Modal, {
|
|
14918
14915
|
visible: active,
|
|
14919
14916
|
animationType: "fade",
|
|
14920
14917
|
transparent: true,
|
|
14921
14918
|
statusBarTranslucent: true,
|
|
14922
14919
|
supportedOrientations: supportedOrientations
|
|
14923
|
-
}, /*#__PURE__*/
|
|
14920
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledContainerInModal, {
|
|
14924
14921
|
testID: testID,
|
|
14925
14922
|
style: [style]
|
|
14926
|
-
}, /*#__PURE__*/
|
|
14923
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledBackdrop, {
|
|
14927
14924
|
testID: "back-drop",
|
|
14928
14925
|
onPress: onBackdropPress
|
|
14929
|
-
}), /*#__PURE__*/
|
|
14926
|
+
}), /*#__PURE__*/React__namespace.default.createElement(StyledActionGroupContainer, {
|
|
14930
14927
|
testID: "action-group",
|
|
14931
14928
|
pointerEvents: "box-none",
|
|
14932
14929
|
style: {
|
|
14933
14930
|
opacity: actionGroupOpacity
|
|
14934
14931
|
}
|
|
14935
|
-
}, /*#__PURE__*/
|
|
14932
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Box, {
|
|
14936
14933
|
style: [style, {
|
|
14937
14934
|
paddingBottom: 0
|
|
14938
14935
|
}]
|
|
14939
14936
|
}, items === null || items === void 0 ? void 0 : items.map(function (itemProp, index) {
|
|
14940
|
-
return /*#__PURE__*/
|
|
14937
|
+
return /*#__PURE__*/React__namespace.default.createElement(ActionItem, _extends$1({
|
|
14941
14938
|
key: itemProp.key || "".concat(itemProp.icon, "_").concat(itemProp.title)
|
|
14942
14939
|
}, itemProp, {
|
|
14943
14940
|
index: active ? index : items.length - index,
|
|
14944
14941
|
active: active
|
|
14945
14942
|
}));
|
|
14946
|
-
}))), active && /*#__PURE__*/
|
|
14943
|
+
}))), active && /*#__PURE__*/React__namespace.default.createElement(StyledFAB
|
|
14947
14944
|
// This FAB is moved up a bit compared to the original FAB,
|
|
14948
14945
|
// set marginBottom to negative value to compensate for it
|
|
14949
14946
|
, {
|
|
@@ -15067,9 +15064,9 @@ var getIntentIcon = function getIntentIcon(intent) {
|
|
|
15067
15064
|
var ToastIcon = function ToastIcon(_ref) {
|
|
15068
15065
|
var themeIntent = _ref.themeIntent,
|
|
15069
15066
|
icon = _ref.icon;
|
|
15070
|
-
return icon ? /*#__PURE__*/
|
|
15067
|
+
return icon ? /*#__PURE__*/React__namespace.default.createElement(IconContainer, {
|
|
15071
15068
|
testID: "toast-left-icon"
|
|
15072
|
-
}, /*#__PURE__*/
|
|
15069
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
15073
15070
|
icon: icon,
|
|
15074
15071
|
size: "small",
|
|
15075
15072
|
intent: themeIntent === 'snackbar' ? 'text-inverted' : 'text'
|
|
@@ -15121,7 +15118,7 @@ var Toast$1 = function Toast(_ref2) {
|
|
|
15121
15118
|
inputRange: [0, 1],
|
|
15122
15119
|
outputRange: toastConfig.position === 'top' ? [-20, distance] : [20, -distance]
|
|
15123
15120
|
});
|
|
15124
|
-
return /*#__PURE__*/
|
|
15121
|
+
return /*#__PURE__*/React__namespace.default.createElement(Container, {
|
|
15125
15122
|
testID: "toast-container",
|
|
15126
15123
|
themeVariant: variant,
|
|
15127
15124
|
themeIntent: intent,
|
|
@@ -15131,21 +15128,21 @@ var Toast$1 = function Toast(_ref2) {
|
|
|
15131
15128
|
translateY: interpolateY
|
|
15132
15129
|
}]
|
|
15133
15130
|
}]
|
|
15134
|
-
}, /*#__PURE__*/
|
|
15131
|
+
}, /*#__PURE__*/React__namespace.default.createElement(ContentContainer, {
|
|
15135
15132
|
showDivider: !!actionLabel
|
|
15136
|
-
}, icon !== null ? /*#__PURE__*/
|
|
15133
|
+
}, icon !== null ? /*#__PURE__*/React__namespace.default.createElement(ToastIcon, {
|
|
15137
15134
|
themeIntent: intent,
|
|
15138
15135
|
icon: icon || getIntentIcon(intent)
|
|
15139
|
-
}) : null, /*#__PURE__*/
|
|
15136
|
+
}) : null, /*#__PURE__*/React__namespace.default.createElement(TextContainer, null, typeof content === 'string' ? /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
15140
15137
|
variant: "small",
|
|
15141
15138
|
intent: intent === 'snackbar' ? 'inverted' : 'body'
|
|
15142
|
-
}, content) : content)), actionLabel ? /*#__PURE__*/
|
|
15139
|
+
}, content) : content)), actionLabel ? /*#__PURE__*/React__namespace.default.createElement(CTAWrapper, {
|
|
15143
15140
|
testID: "toast-action-button",
|
|
15144
15141
|
onPress: function onPress() {
|
|
15145
15142
|
onAction === null || onAction === void 0 || onAction();
|
|
15146
15143
|
onDismiss === null || onDismiss === void 0 || onDismiss();
|
|
15147
15144
|
}
|
|
15148
|
-
}, typeof actionLabel === 'string' ? /*#__PURE__*/
|
|
15145
|
+
}, typeof actionLabel === 'string' ? /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
15149
15146
|
variant: "small-bold",
|
|
15150
15147
|
intent: intent === 'snackbar' ? 'inverted' : 'body'
|
|
15151
15148
|
}, actionLabel) : actionLabel) : null);
|
|
@@ -15159,7 +15156,7 @@ var SingleToastDisplay = function SingleToastDisplay(_ref) {
|
|
|
15159
15156
|
setToastList = _ref.setToastList;
|
|
15160
15157
|
var theme = useTheme$1();
|
|
15161
15158
|
var toast = toastList[toastList.length - 1];
|
|
15162
|
-
return toast ? /*#__PURE__*/
|
|
15159
|
+
return toast ? /*#__PURE__*/React__namespace.default.createElement(Toast$1, _extends$1({}, toast.props, {
|
|
15163
15160
|
key: toast.id,
|
|
15164
15161
|
style: {
|
|
15165
15162
|
marginBottom: theme.space.small
|
|
@@ -15175,7 +15172,7 @@ var SingleToastDisplay = function SingleToastDisplay(_ref) {
|
|
|
15175
15172
|
}
|
|
15176
15173
|
})) : null;
|
|
15177
15174
|
};
|
|
15178
|
-
var ToastContainer = /*#__PURE__*/
|
|
15175
|
+
var ToastContainer = /*#__PURE__*/React__namespace.default.forwardRef(function (_ref2, ref) {
|
|
15179
15176
|
var _ref2$displayType = _ref2.displayType,
|
|
15180
15177
|
displayType = _ref2$displayType === void 0 ? 'single' : _ref2$displayType,
|
|
15181
15178
|
_ref2$position = _ref2.position,
|
|
@@ -15210,17 +15207,17 @@ var ToastContainer = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
|
15210
15207
|
}
|
|
15211
15208
|
};
|
|
15212
15209
|
});
|
|
15213
|
-
return /*#__PURE__*/
|
|
15210
|
+
return /*#__PURE__*/React__namespace.default.createElement(ToastContainerWrapper, {
|
|
15214
15211
|
pointerEvents: "box-none",
|
|
15215
15212
|
position: position,
|
|
15216
15213
|
style: style
|
|
15217
|
-
}, displayType === 'single' ? /*#__PURE__*/
|
|
15214
|
+
}, displayType === 'single' ? /*#__PURE__*/React__namespace.default.createElement(SingleToastDisplay, {
|
|
15218
15215
|
toastList: toastList,
|
|
15219
15216
|
setToastList: setToastList
|
|
15220
15217
|
}) : toastList.map(function (_ref3) {
|
|
15221
15218
|
var id = _ref3.id,
|
|
15222
15219
|
props = _ref3.props;
|
|
15223
|
-
return /*#__PURE__*/
|
|
15220
|
+
return /*#__PURE__*/React__namespace.default.createElement(Toast$1, _extends$1({}, props, {
|
|
15224
15221
|
key: id,
|
|
15225
15222
|
style: {
|
|
15226
15223
|
marginBottom: theme.space.small
|
|
@@ -15262,15 +15259,15 @@ var ToastProvider = function ToastProvider(_ref) {
|
|
|
15262
15259
|
position: position
|
|
15263
15260
|
};
|
|
15264
15261
|
}, [displayType, position]);
|
|
15265
|
-
return /*#__PURE__*/
|
|
15262
|
+
return /*#__PURE__*/React__namespace.default.createElement(ToastContext.Provider, {
|
|
15266
15263
|
value: refState || fallbackToastControlContext
|
|
15267
|
-
}, /*#__PURE__*/
|
|
15264
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
15268
15265
|
style: {
|
|
15269
15266
|
flex: 1
|
|
15270
15267
|
}
|
|
15271
|
-
}, refState ? children : null, /*#__PURE__*/
|
|
15268
|
+
}, refState ? children : null, /*#__PURE__*/React__namespace.default.createElement(ToastConfigContext.Provider, {
|
|
15272
15269
|
value: config
|
|
15273
|
-
}, /*#__PURE__*/
|
|
15270
|
+
}, /*#__PURE__*/React__namespace.default.createElement(ToastContainer, {
|
|
15274
15271
|
ref: toastRef,
|
|
15275
15272
|
displayType: displayType,
|
|
15276
15273
|
position: position
|
|
@@ -15286,9 +15283,9 @@ var Toast = {
|
|
|
15286
15283
|
var HeroDesignProvider = function HeroDesignProvider(_ref) {
|
|
15287
15284
|
var theme = _ref.theme,
|
|
15288
15285
|
children = _ref.children;
|
|
15289
|
-
return /*#__PURE__*/
|
|
15286
|
+
return /*#__PURE__*/React__namespace.default.createElement(ThemeProvider, {
|
|
15290
15287
|
theme: theme
|
|
15291
|
-
}, /*#__PURE__*/
|
|
15288
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Toast.Provider, null, /*#__PURE__*/React__namespace.default.createElement(Portal$1.Provider, null, children)));
|
|
15292
15289
|
};
|
|
15293
15290
|
|
|
15294
15291
|
var StyledListItemContainer$1 = index$9(reactNative.TouchableHighlight)(function (_ref) {
|
|
@@ -15380,7 +15377,7 @@ var ListItem = function ListItem(_ref) {
|
|
|
15380
15377
|
_ref$disabled = _ref.disabled,
|
|
15381
15378
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled;
|
|
15382
15379
|
var theme = useTheme();
|
|
15383
|
-
return /*#__PURE__*/
|
|
15380
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledListItemContainer$1, {
|
|
15384
15381
|
style: style,
|
|
15385
15382
|
testID: testID,
|
|
15386
15383
|
themeSelected: selected,
|
|
@@ -15388,26 +15385,26 @@ var ListItem = function ListItem(_ref) {
|
|
|
15388
15385
|
onPress: onPress,
|
|
15389
15386
|
disabled: disabled,
|
|
15390
15387
|
underlayColor: theme.__hd__.list.colors.checkedListItemContainerBackground
|
|
15391
|
-
}, /*#__PURE__*/
|
|
15388
|
+
}, /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, leadingStatus && /*#__PURE__*/React__namespace.default.createElement(StyledLeadingStatus, {
|
|
15392
15389
|
themeLeadingStatusIntent: leadingStatus,
|
|
15393
15390
|
testID: "leadingStatus"
|
|
15394
|
-
}), /*#__PURE__*/
|
|
15391
|
+
}), /*#__PURE__*/React__namespace.default.createElement(StyledContentContainer, null, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
15395
15392
|
style: {
|
|
15396
15393
|
flexDirection: 'row',
|
|
15397
15394
|
alignItems: 'center'
|
|
15398
15395
|
}
|
|
15399
|
-
}, prefix && /*#__PURE__*/
|
|
15396
|
+
}, prefix && /*#__PURE__*/React__namespace.default.createElement(StyledPrefixContainer$1, null, typeof prefix === 'string' ? /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
15400
15397
|
icon: prefix,
|
|
15401
15398
|
intent: disabled ? 'disabled-text' : 'primary'
|
|
15402
|
-
}) : prefix), /*#__PURE__*/
|
|
15399
|
+
}) : prefix), /*#__PURE__*/React__namespace.default.createElement(StyledTitleContainer$1, null, typeof title === 'string' ? /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
15403
15400
|
intent: "body"
|
|
15404
|
-
}, title) : title, !!subtitle && /*#__PURE__*/
|
|
15401
|
+
}, title) : title, !!subtitle && /*#__PURE__*/React__namespace.default.createElement(Typography.Caption, {
|
|
15405
15402
|
intent: "subdued"
|
|
15406
|
-
}, subtitle)), suffix && /*#__PURE__*/
|
|
15403
|
+
}, subtitle)), suffix && /*#__PURE__*/React__namespace.default.createElement(StyledSuffixContainer$1, null, typeof suffix === 'string' ? /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
15407
15404
|
icon: suffix,
|
|
15408
15405
|
intent: disabled ? 'disabled-text' : 'primary',
|
|
15409
15406
|
size: "small"
|
|
15410
|
-
}) : suffix)), children && /*#__PURE__*/
|
|
15407
|
+
}) : suffix)), children && /*#__PURE__*/React__namespace.default.createElement(StyledChildrenContainer, null, children))));
|
|
15411
15408
|
};
|
|
15412
15409
|
|
|
15413
15410
|
var StyledPrefixContainer = index$9(reactNative.View)(function (_ref) {
|
|
@@ -15454,7 +15451,7 @@ var BasicListItem = function BasicListItem(_ref) {
|
|
|
15454
15451
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
15455
15452
|
onPress = _ref.onPress;
|
|
15456
15453
|
var theme = useTheme();
|
|
15457
|
-
return /*#__PURE__*/
|
|
15454
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledListItemContainer, {
|
|
15458
15455
|
style: style,
|
|
15459
15456
|
testID: testID,
|
|
15460
15457
|
themeSelected: selected,
|
|
@@ -15462,14 +15459,14 @@ var BasicListItem = function BasicListItem(_ref) {
|
|
|
15462
15459
|
onPress: onPress,
|
|
15463
15460
|
disabled: disabled,
|
|
15464
15461
|
underlayColor: theme.__hd__.list.colors.checkedListItemContainerBackground
|
|
15465
|
-
}, /*#__PURE__*/
|
|
15462
|
+
}, /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, prefix && /*#__PURE__*/React__namespace.default.createElement(StyledPrefixContainer, null, typeof prefix === 'string' ? /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
15466
15463
|
icon: prefix,
|
|
15467
15464
|
intent: disabled ? 'disabled-text' : 'primary'
|
|
15468
|
-
}) : prefix), /*#__PURE__*/
|
|
15465
|
+
}) : prefix), /*#__PURE__*/React__namespace.default.createElement(StyledTitleContainer, null, typeof title === 'string' ? /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
15469
15466
|
intent: "body"
|
|
15470
|
-
}, title) : title, subtitle && /*#__PURE__*/
|
|
15467
|
+
}, title) : title, subtitle && /*#__PURE__*/React__namespace.default.createElement(Typography.Caption, {
|
|
15471
15468
|
intent: "subdued"
|
|
15472
|
-
}, subtitle)), suffix && /*#__PURE__*/
|
|
15469
|
+
}, subtitle)), suffix && /*#__PURE__*/React__namespace.default.createElement(StyledSuffixContainer, null, typeof suffix === 'string' ? /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
15473
15470
|
icon: suffix,
|
|
15474
15471
|
size: "small",
|
|
15475
15472
|
intent: disabled ? 'disabled-text' : 'primary'
|
|
@@ -15579,16 +15576,16 @@ function PinCell(_ref) {
|
|
|
15579
15576
|
focused = _ref$focused === void 0 ? false : _ref$focused,
|
|
15580
15577
|
_ref$state = _ref.state,
|
|
15581
15578
|
state = _ref$state === void 0 ? 'default' : _ref$state;
|
|
15582
|
-
return /*#__PURE__*/
|
|
15579
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledCell, {
|
|
15583
15580
|
themeFocused: focused,
|
|
15584
15581
|
themeState: state
|
|
15585
|
-
}, value === '' && /*#__PURE__*/
|
|
15582
|
+
}, value === '' && /*#__PURE__*/React__namespace.default.createElement(StyledMask, {
|
|
15586
15583
|
themeState: state,
|
|
15587
15584
|
testID: "pin-cell-mask"
|
|
15588
|
-
}), value !== '' && secure && /*#__PURE__*/
|
|
15585
|
+
}), value !== '' && secure && /*#__PURE__*/React__namespace.default.createElement(StyledFilledMask, {
|
|
15589
15586
|
themeState: state,
|
|
15590
15587
|
testID: "pin-cell-filled-mask"
|
|
15591
|
-
}), value !== '' && !secure && /*#__PURE__*/
|
|
15588
|
+
}), value !== '' && !secure && /*#__PURE__*/React__namespace.default.createElement(StyledCellText, {
|
|
15592
15589
|
themeState: state,
|
|
15593
15590
|
level: "h3"
|
|
15594
15591
|
}, value));
|
|
@@ -15661,24 +15658,24 @@ var PinInput = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
15661
15658
|
blur: blur
|
|
15662
15659
|
};
|
|
15663
15660
|
});
|
|
15664
|
-
return /*#__PURE__*/
|
|
15661
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledWrapper$5, {
|
|
15665
15662
|
style: style,
|
|
15666
15663
|
testID: testID
|
|
15667
|
-
}, /*#__PURE__*/
|
|
15668
|
-
return /*#__PURE__*/
|
|
15664
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledPinWrapper, null, _toConsumableArray(Array(length).keys()).map(function (index) {
|
|
15665
|
+
return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, {
|
|
15669
15666
|
key: index
|
|
15670
|
-
}, index !== 0 && /*#__PURE__*/
|
|
15667
|
+
}, index !== 0 && /*#__PURE__*/React__namespace.default.createElement(StyledSpacer, null), /*#__PURE__*/React__namespace.default.createElement(PinCell, {
|
|
15671
15668
|
value: value.charAt(index),
|
|
15672
15669
|
secure: secure,
|
|
15673
15670
|
focused: focused && index === value.length,
|
|
15674
15671
|
state: state
|
|
15675
15672
|
}));
|
|
15676
|
-
})), state === 'error' && /*#__PURE__*/
|
|
15673
|
+
})), state === 'error' && /*#__PURE__*/React__namespace.default.createElement(StyledErrorContainer, null, /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
15677
15674
|
icon: "circle-info",
|
|
15678
15675
|
size: "xsmall",
|
|
15679
15676
|
intent: "danger",
|
|
15680
15677
|
testID: "pin-error-icon"
|
|
15681
|
-
}), /*#__PURE__*/
|
|
15678
|
+
}), /*#__PURE__*/React__namespace.default.createElement(StyledErrorMessage, null, error)), /*#__PURE__*/React__namespace.default.createElement(StyledHiddenInput, {
|
|
15682
15679
|
themePinLength: length,
|
|
15683
15680
|
ref: inputRef,
|
|
15684
15681
|
value: value,
|
|
@@ -15783,9 +15780,9 @@ var _excluded$e = ["value", "renderValue", "intent", "style", "testID"];
|
|
|
15783
15780
|
var HalfCircle = function HalfCircle(_ref) {
|
|
15784
15781
|
var type = _ref.type,
|
|
15785
15782
|
themeIntent = _ref.themeIntent;
|
|
15786
|
-
return /*#__PURE__*/
|
|
15783
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledHalfCircleWrapper, null, type === 'background' ? /*#__PURE__*/React__namespace.default.createElement(StyledHalfCircleInnerBG, {
|
|
15787
15784
|
themeIntent: themeIntent
|
|
15788
|
-
}) : /*#__PURE__*/
|
|
15785
|
+
}) : /*#__PURE__*/React__namespace.default.createElement(StyledHalfCircleInnerFG, {
|
|
15789
15786
|
themeIntent: themeIntent
|
|
15790
15787
|
}));
|
|
15791
15788
|
};
|
|
@@ -15837,13 +15834,13 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
15837
15834
|
outputRange: ['0deg', '360deg'],
|
|
15838
15835
|
extrapolate: 'clamp'
|
|
15839
15836
|
});
|
|
15840
|
-
return /*#__PURE__*/
|
|
15837
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.View, _extends$1({}, nativeProps, {
|
|
15841
15838
|
testID: testID,
|
|
15842
15839
|
style: style
|
|
15843
|
-
}), /*#__PURE__*/
|
|
15840
|
+
}), /*#__PURE__*/React__namespace.default.createElement(StyledContainer$1, null, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, null, /*#__PURE__*/React__namespace.default.createElement(HalfCircle, {
|
|
15844
15841
|
type: "foreground",
|
|
15845
15842
|
themeIntent: intent
|
|
15846
|
-
}), /*#__PURE__*/
|
|
15843
|
+
}), /*#__PURE__*/React__namespace.default.createElement(reactNative.Animated.View, {
|
|
15847
15844
|
style: _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
15848
15845
|
transform: [{
|
|
15849
15846
|
translateX: radius / 2
|
|
@@ -15853,10 +15850,10 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
15853
15850
|
translateX: -radius / 2
|
|
15854
15851
|
}]
|
|
15855
15852
|
})
|
|
15856
|
-
}, /*#__PURE__*/
|
|
15853
|
+
}, /*#__PURE__*/React__namespace.default.createElement(HalfCircle, {
|
|
15857
15854
|
type: "background",
|
|
15858
15855
|
themeIntent: intent
|
|
15859
|
-
}))), /*#__PURE__*/
|
|
15856
|
+
}))), /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
15860
15857
|
style: {
|
|
15861
15858
|
transform: [{
|
|
15862
15859
|
rotate: '180deg'
|
|
@@ -15864,10 +15861,10 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
15864
15861
|
zIndex: 1,
|
|
15865
15862
|
marginLeft: -0.1
|
|
15866
15863
|
}
|
|
15867
|
-
}, /*#__PURE__*/
|
|
15864
|
+
}, /*#__PURE__*/React__namespace.default.createElement(HalfCircle, {
|
|
15868
15865
|
type: "foreground",
|
|
15869
15866
|
themeIntent: intent
|
|
15870
|
-
}), /*#__PURE__*/
|
|
15867
|
+
}), /*#__PURE__*/React__namespace.default.createElement(reactNative.Animated.View, {
|
|
15871
15868
|
style: _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
15872
15869
|
transform: [{
|
|
15873
15870
|
translateX: radius / 2
|
|
@@ -15878,21 +15875,21 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
15878
15875
|
}],
|
|
15879
15876
|
opacity: interpolateOpacityRightHalf
|
|
15880
15877
|
})
|
|
15881
|
-
}, /*#__PURE__*/
|
|
15878
|
+
}, /*#__PURE__*/React__namespace.default.createElement(HalfCircle, {
|
|
15882
15879
|
type: "background",
|
|
15883
15880
|
themeIntent: intent
|
|
15884
|
-
}))), /*#__PURE__*/
|
|
15881
|
+
}))), /*#__PURE__*/React__namespace.default.createElement(StyledStrokeEnd, {
|
|
15885
15882
|
themeIntent: intent
|
|
15886
|
-
}), /*#__PURE__*/
|
|
15883
|
+
}), /*#__PURE__*/React__namespace.default.createElement(reactNative.Animated.View, {
|
|
15887
15884
|
style: _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
15888
15885
|
zIndex: 2,
|
|
15889
15886
|
transform: [{
|
|
15890
15887
|
rotate: interpolateDotRotate
|
|
15891
15888
|
}]
|
|
15892
15889
|
})
|
|
15893
|
-
}, /*#__PURE__*/
|
|
15890
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledStrokeEnd, {
|
|
15894
15891
|
themeIntent: intent
|
|
15895
|
-
})), /*#__PURE__*/
|
|
15892
|
+
})), /*#__PURE__*/React__namespace.default.createElement(StyledDonutCircle, null, /*#__PURE__*/React__namespace.default.createElement(Typography.Body, null, renderValue(value)))));
|
|
15896
15893
|
};
|
|
15897
15894
|
|
|
15898
15895
|
var StyledWrapper$4 = index$9(reactNative.View)(function (_ref) {
|
|
@@ -15949,11 +15946,11 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
15949
15946
|
outputRange: [999, 0],
|
|
15950
15947
|
extrapolate: 'clamp'
|
|
15951
15948
|
});
|
|
15952
|
-
return /*#__PURE__*/
|
|
15949
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledWrapper$4, _extends$1({}, nativeProps, {
|
|
15953
15950
|
testID: testID,
|
|
15954
15951
|
style: style,
|
|
15955
15952
|
themeIntent: intent
|
|
15956
|
-
}), /*#__PURE__*/
|
|
15953
|
+
}), /*#__PURE__*/React__namespace.default.createElement(StyledInner, {
|
|
15957
15954
|
themeIntent: intent,
|
|
15958
15955
|
onLayout: function onLayout(_ref2) {
|
|
15959
15956
|
var nativeEvent = _ref2.nativeEvent;
|
|
@@ -15991,7 +15988,7 @@ var Slider = function Slider(_ref) {
|
|
|
15991
15988
|
style = _ref.style,
|
|
15992
15989
|
testID = _ref.testID;
|
|
15993
15990
|
var theme = useTheme();
|
|
15994
|
-
return /*#__PURE__*/
|
|
15991
|
+
return /*#__PURE__*/React__namespace.default.createElement(RnSlider__default.default, {
|
|
15995
15992
|
minimumValue: minimumValue,
|
|
15996
15993
|
maximumValue: maximumValue,
|
|
15997
15994
|
step: step,
|
|
@@ -16093,23 +16090,23 @@ var AnimatedSpinner = function AnimatedSpinner(_ref) {
|
|
|
16093
16090
|
themeSize: size,
|
|
16094
16091
|
themeIntent: intent
|
|
16095
16092
|
};
|
|
16096
|
-
return /*#__PURE__*/
|
|
16093
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.Animated.View, {
|
|
16097
16094
|
style: reactNative.StyleSheet.flatten([{
|
|
16098
16095
|
transform: [{
|
|
16099
16096
|
rotate: interpolatedRotateAnimation
|
|
16100
16097
|
}]
|
|
16101
16098
|
}])
|
|
16102
|
-
}, /*#__PURE__*/
|
|
16099
|
+
}, /*#__PURE__*/React__namespace.default.createElement(AnimatedRow, _extends$1({
|
|
16103
16100
|
themePosition: "top"
|
|
16104
|
-
}, rowProps), /*#__PURE__*/
|
|
16101
|
+
}, rowProps), /*#__PURE__*/React__namespace.default.createElement(AnimatedDot, _extends$1({
|
|
16105
16102
|
themePosition: "topLeft"
|
|
16106
|
-
}, dotProps)), /*#__PURE__*/
|
|
16103
|
+
}, dotProps)), /*#__PURE__*/React__namespace.default.createElement(AnimatedDot, _extends$1({
|
|
16107
16104
|
themePosition: "topRight"
|
|
16108
|
-
}, dotProps))), /*#__PURE__*/
|
|
16105
|
+
}, dotProps))), /*#__PURE__*/React__namespace.default.createElement(AnimatedRow, _extends$1({
|
|
16109
16106
|
themePosition: "bottom"
|
|
16110
|
-
}, rowProps), /*#__PURE__*/
|
|
16107
|
+
}, rowProps), /*#__PURE__*/React__namespace.default.createElement(AnimatedDot, _extends$1({
|
|
16111
16108
|
themePosition: "bottomLeft"
|
|
16112
|
-
}, dotProps)), /*#__PURE__*/
|
|
16109
|
+
}, dotProps)), /*#__PURE__*/React__namespace.default.createElement(AnimatedDot, _extends$1({
|
|
16113
16110
|
themePosition: "bottomRight"
|
|
16114
16111
|
}, dotProps))));
|
|
16115
16112
|
};
|
|
@@ -16122,9 +16119,9 @@ var Spinner = function Spinner(_ref) {
|
|
|
16122
16119
|
_ref$intent = _ref.intent,
|
|
16123
16120
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
16124
16121
|
nativeProps = _objectWithoutProperties(_ref, _excluded$c);
|
|
16125
|
-
return /*#__PURE__*/
|
|
16122
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledView$1, nativeProps, /*#__PURE__*/React__namespace.default.createElement(StyledSpinnerContainer, {
|
|
16126
16123
|
testID: testID
|
|
16127
|
-
}, /*#__PURE__*/
|
|
16124
|
+
}, /*#__PURE__*/React__namespace.default.createElement(AnimatedSpinner, {
|
|
16128
16125
|
size: size,
|
|
16129
16126
|
intent: intent
|
|
16130
16127
|
})));
|
|
@@ -16146,7 +16143,7 @@ var SwipeableAction = function SwipeableAction(_ref) {
|
|
|
16146
16143
|
style = _ref.style,
|
|
16147
16144
|
children = _ref.children,
|
|
16148
16145
|
testID = _ref.testID;
|
|
16149
|
-
return /*#__PURE__*/
|
|
16146
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledRectButton, {
|
|
16150
16147
|
onPress: onPress,
|
|
16151
16148
|
themeIntent: intent,
|
|
16152
16149
|
style: style,
|
|
@@ -16161,7 +16158,7 @@ var renderActions = function renderActions(actions, width, progress, direction)
|
|
|
16161
16158
|
outputRange: direction === 'left' ? [-width, 0] : [width, 0],
|
|
16162
16159
|
extrapolate: 'clamp'
|
|
16163
16160
|
});
|
|
16164
|
-
return /*#__PURE__*/
|
|
16161
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.Animated.View, {
|
|
16165
16162
|
style: {
|
|
16166
16163
|
width: width,
|
|
16167
16164
|
flexDirection: 'row',
|
|
@@ -16188,7 +16185,7 @@ var Swipeable = function Swipeable(_ref) {
|
|
|
16188
16185
|
var _useWindowDimensions = reactNative.useWindowDimensions(),
|
|
16189
16186
|
width = _useWindowDimensions.width;
|
|
16190
16187
|
var swipeableRef = React.useRef(null);
|
|
16191
|
-
var _React$useState =
|
|
16188
|
+
var _React$useState = React__namespace.default.useState(0),
|
|
16192
16189
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
16193
16190
|
containerWidth = _React$useState2[0],
|
|
16194
16191
|
setContainerWidth = _React$useState2[1];
|
|
@@ -16212,11 +16209,11 @@ var Swipeable = function Swipeable(_ref) {
|
|
|
16212
16209
|
break;
|
|
16213
16210
|
}
|
|
16214
16211
|
}, [state]);
|
|
16215
|
-
return /*#__PURE__*/
|
|
16212
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNativeGestureHandler.GestureHandlerRootView, null, /*#__PURE__*/React__namespace.default.createElement(Box, {
|
|
16216
16213
|
onLayout: function onLayout(e) {
|
|
16217
16214
|
return setContainerWidth(e.nativeEvent.layout.width);
|
|
16218
16215
|
}
|
|
16219
|
-
}, /*#__PURE__*/
|
|
16216
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNativeGestureHandler.Swipeable, _extends$1({}, swipeableProps, {
|
|
16220
16217
|
ref: swipeableRef
|
|
16221
16218
|
}, leftActions !== undefined && {
|
|
16222
16219
|
renderLeftActions: renderLeftActions
|
|
@@ -16288,7 +16285,7 @@ var StyledRadio = index$9(List.Item)(function (_ref4) {
|
|
|
16288
16285
|
var RadioCircle = function RadioCircle(_ref) {
|
|
16289
16286
|
var checked = _ref.checked,
|
|
16290
16287
|
text = _ref.text;
|
|
16291
|
-
return /*#__PURE__*/
|
|
16288
|
+
return /*#__PURE__*/React__namespace.default.createElement(Circle, null, checked && /*#__PURE__*/React__namespace.default.createElement(InnerCircle, {
|
|
16292
16289
|
testID: "".concat(text, "-selected-circle")
|
|
16293
16290
|
}));
|
|
16294
16291
|
};
|
|
@@ -16303,12 +16300,12 @@ var Radio = function Radio(_ref2) {
|
|
|
16303
16300
|
_ref2$inactiveIntent = _ref2.inactiveIntent,
|
|
16304
16301
|
inactiveIntent = _ref2$inactiveIntent === void 0 ? 'light' : _ref2$inactiveIntent,
|
|
16305
16302
|
children = _ref2.children;
|
|
16306
|
-
return /*#__PURE__*/
|
|
16303
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledRadio, {
|
|
16307
16304
|
onPress: onPress,
|
|
16308
16305
|
selected: checked,
|
|
16309
16306
|
title: text,
|
|
16310
16307
|
subtitle: subText,
|
|
16311
|
-
suffix: /*#__PURE__*/
|
|
16308
|
+
suffix: /*#__PURE__*/React__namespace.default.createElement(RadioCircle, {
|
|
16312
16309
|
checked: checked,
|
|
16313
16310
|
text: text
|
|
16314
16311
|
}),
|
|
@@ -16339,15 +16336,15 @@ var RadioGroup = function RadioGroup(_ref) {
|
|
|
16339
16336
|
testID = _ref.testID,
|
|
16340
16337
|
_ref$inactiveIntent = _ref.inactiveIntent,
|
|
16341
16338
|
inactiveIntent = _ref$inactiveIntent === void 0 ? 'light' : _ref$inactiveIntent;
|
|
16342
|
-
return /*#__PURE__*/
|
|
16339
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
16343
16340
|
style: style,
|
|
16344
16341
|
testID: testID
|
|
16345
16342
|
}, options.map(function (option, index) {
|
|
16346
|
-
return /*#__PURE__*/
|
|
16343
|
+
return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, {
|
|
16347
16344
|
key: getKey(option, index, keyExtractor)
|
|
16348
|
-
}, index !== 0 && /*#__PURE__*/
|
|
16345
|
+
}, index !== 0 && /*#__PURE__*/React__namespace.default.createElement(Spacer, {
|
|
16349
16346
|
themeIntent: inactiveIntent
|
|
16350
|
-
}), /*#__PURE__*/
|
|
16347
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Radio, {
|
|
16351
16348
|
text: option.text,
|
|
16352
16349
|
subText: option.subText,
|
|
16353
16350
|
checked: option.value === value,
|
|
@@ -16416,20 +16413,20 @@ var SectionHeading = function SectionHeading(_ref) {
|
|
|
16416
16413
|
testID = _ref.testID;
|
|
16417
16414
|
useDeprecation("SectionHeading's fontSize prop is deprecated and will be removed in the next major release, please remove it.", fontSize !== undefined);
|
|
16418
16415
|
useDeprecation("SectionHeading's fontWeight prop is deprecated and will be removed in the next major release, please remove it.", fontWeight !== undefined);
|
|
16419
|
-
return /*#__PURE__*/
|
|
16416
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledHeading, {
|
|
16420
16417
|
themeSize: size,
|
|
16421
16418
|
style: style,
|
|
16422
16419
|
testID: testID
|
|
16423
|
-
}, /*#__PURE__*/
|
|
16420
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledWrapper$3, null, /*#__PURE__*/React__namespace.default.createElement(StyledIconWrapper$2, null, icon !== undefined && (typeof icon === 'string' ? /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
16424
16421
|
icon: icon,
|
|
16425
16422
|
size: ICON_SIZE_MAP[size],
|
|
16426
16423
|
intent: ICON_INTENT_MAP[intent]
|
|
16427
|
-
}) : /*#__PURE__*/
|
|
16424
|
+
}) : /*#__PURE__*/React__namespace.default.cloneElement(icon, _objectSpread2({
|
|
16428
16425
|
size: ICON_SIZE_MAP[size],
|
|
16429
16426
|
intent: ICON_INTENT_MAP[intent]
|
|
16430
|
-
}, icon.props)))), size === 'small' ? /*#__PURE__*/
|
|
16427
|
+
}, icon.props)))), size === 'small' ? /*#__PURE__*/React__namespace.default.createElement(Typography.Caption, {
|
|
16431
16428
|
intent: intent
|
|
16432
|
-
}, text) : /*#__PURE__*/
|
|
16429
|
+
}, text) : /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
16433
16430
|
variant: "small",
|
|
16434
16431
|
intent: intent
|
|
16435
16432
|
}, text)), rightChildren);
|
|
@@ -16438,7 +16435,7 @@ var SectionHeading = function SectionHeading(_ref) {
|
|
|
16438
16435
|
var Footer = function Footer(_ref) {
|
|
16439
16436
|
var label = _ref.label,
|
|
16440
16437
|
onPress = _ref.onPress;
|
|
16441
|
-
return /*#__PURE__*/
|
|
16438
|
+
return /*#__PURE__*/React__namespace.default.createElement(CompoundButton, {
|
|
16442
16439
|
variant: "text",
|
|
16443
16440
|
text: label,
|
|
16444
16441
|
onPress: onPress
|
|
@@ -16549,7 +16546,7 @@ var BaseOptionList = function BaseOptionList(_ref) {
|
|
|
16549
16546
|
_useState2 = _slicedToArray(_useState, 2),
|
|
16550
16547
|
onEndReachedCalled = _useState2[0],
|
|
16551
16548
|
setOnEndReachedCalled = _useState2[1];
|
|
16552
|
-
return /*#__PURE__*/
|
|
16549
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledSectionList, _extends$1({
|
|
16553
16550
|
ref: sectionListRef,
|
|
16554
16551
|
style: _objectSpread2({}, onQueryChange ? {
|
|
16555
16552
|
height: reactNative.Dimensions.get('screen').height
|
|
@@ -16564,16 +16561,16 @@ var BaseOptionList = function BaseOptionList(_ref) {
|
|
|
16564
16561
|
if (onEndReached && onEndReachedCalled && !loading) onEndReached();
|
|
16565
16562
|
setOnEndReachedCalled(false);
|
|
16566
16563
|
},
|
|
16567
|
-
ListFooterComponent: loading ? /*#__PURE__*/
|
|
16564
|
+
ListFooterComponent: loading ? /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
16568
16565
|
style: {
|
|
16569
16566
|
display: 'flex',
|
|
16570
16567
|
alignItems: 'center',
|
|
16571
16568
|
height: theme.space.xxxxlarge
|
|
16572
16569
|
}
|
|
16573
|
-
}, /*#__PURE__*/
|
|
16570
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Spinner, null)) : null,
|
|
16574
16571
|
renderSectionHeader: function renderSectionHeader(_ref2) {
|
|
16575
16572
|
var category = _ref2.section.category;
|
|
16576
|
-
return category !== '' ? /*#__PURE__*/
|
|
16573
|
+
return category !== '' ? /*#__PURE__*/React__namespace.default.createElement(SectionHeading, {
|
|
16577
16574
|
text: category,
|
|
16578
16575
|
style: {
|
|
16579
16576
|
marginBottom: 0
|
|
@@ -16600,7 +16597,7 @@ var Option$2 = function Option(_ref) {
|
|
|
16600
16597
|
disabled: disabled,
|
|
16601
16598
|
onPress: onPress,
|
|
16602
16599
|
title: text,
|
|
16603
|
-
suffix: selected === true ? /*#__PURE__*/
|
|
16600
|
+
suffix: selected === true ? /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
16604
16601
|
testID: typeof text === 'string' ? "selected-icon-".concat(text) : undefined,
|
|
16605
16602
|
icon: "checkmark",
|
|
16606
16603
|
intent: disabled ? 'disabled-text' : 'primary',
|
|
@@ -16610,7 +16607,7 @@ var Option$2 = function Option(_ref) {
|
|
|
16610
16607
|
}
|
|
16611
16608
|
}) : undefined
|
|
16612
16609
|
};
|
|
16613
|
-
return highlighted === true ? /*#__PURE__*/
|
|
16610
|
+
return highlighted === true ? /*#__PURE__*/React__namespace.default.createElement(List.Item, props) : /*#__PURE__*/React__namespace.default.createElement(List.BasicItem, props);
|
|
16614
16611
|
};
|
|
16615
16612
|
|
|
16616
16613
|
var _excluded$9 = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
|
|
@@ -16640,7 +16637,7 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
16640
16637
|
return renderOption ? renderOption(_objectSpread2(_objectSpread2({}, info), {}, {
|
|
16641
16638
|
selected: selected,
|
|
16642
16639
|
onPress: onItemPress
|
|
16643
|
-
})) : /*#__PURE__*/
|
|
16640
|
+
})) : /*#__PURE__*/React__namespace.default.createElement(Option$2, {
|
|
16644
16641
|
selected: selected,
|
|
16645
16642
|
text: item.text,
|
|
16646
16643
|
disabled: item.disabled,
|
|
@@ -16648,7 +16645,7 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
16648
16645
|
highlighted: item.highlighted
|
|
16649
16646
|
});
|
|
16650
16647
|
};
|
|
16651
|
-
return /*#__PURE__*/
|
|
16648
|
+
return /*#__PURE__*/React__namespace.default.createElement(BaseOptionList, _extends$1({
|
|
16652
16649
|
keyExtractor: keyExtractor,
|
|
16653
16650
|
loading: loading,
|
|
16654
16651
|
onEndReached: onEndReached,
|
|
@@ -16707,15 +16704,15 @@ function MultiSelect(_ref) {
|
|
|
16707
16704
|
React.useEffect(function () {
|
|
16708
16705
|
setSelectingValue(value);
|
|
16709
16706
|
}, [open, value]);
|
|
16710
|
-
return /*#__PURE__*/
|
|
16707
|
+
return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
16711
16708
|
pointerEvents: !editable || disabled || inputProps !== null && inputProps !== void 0 && inputProps.loading ? 'none' : 'auto'
|
|
16712
|
-
}, /*#__PURE__*/
|
|
16709
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
16713
16710
|
onPress: function onPress() {
|
|
16714
16711
|
return setOpen(true);
|
|
16715
16712
|
}
|
|
16716
|
-
}, /*#__PURE__*/
|
|
16713
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
16717
16714
|
pointerEvents: "none"
|
|
16718
|
-
}, /*#__PURE__*/
|
|
16715
|
+
}, /*#__PURE__*/React__namespace.default.createElement(TextInput, _extends$1({}, inputProps, {
|
|
16719
16716
|
label: label,
|
|
16720
16717
|
value: renderSelectedValue ? rawValue : displayedValue,
|
|
16721
16718
|
suffix: "arrow-down",
|
|
@@ -16730,7 +16727,7 @@ function MultiSelect(_ref) {
|
|
|
16730
16727
|
renderInputValue: renderSelectedValue !== undefined && (rawValue === null || rawValue === void 0 ? void 0 : rawValue.length) > 0 ? function (props) {
|
|
16731
16728
|
return renderSelectedValue(value, props);
|
|
16732
16729
|
} : undefined
|
|
16733
|
-
}))))), /*#__PURE__*/
|
|
16730
|
+
}))))), /*#__PURE__*/React__namespace.default.createElement(BottomSheet$1, {
|
|
16734
16731
|
open: open,
|
|
16735
16732
|
onRequestClose: function onRequestClose() {
|
|
16736
16733
|
onDismiss === null || onDismiss === void 0 || onDismiss();
|
|
@@ -16740,13 +16737,13 @@ function MultiSelect(_ref) {
|
|
|
16740
16737
|
style: {
|
|
16741
16738
|
paddingBottom: isKeyboardVisible ? keyboardHeight : 0
|
|
16742
16739
|
},
|
|
16743
|
-
footer: typeof footerLabel === 'string' ? /*#__PURE__*/
|
|
16740
|
+
footer: typeof footerLabel === 'string' ? /*#__PURE__*/React__namespace.default.createElement(Footer, {
|
|
16744
16741
|
label: footerLabel,
|
|
16745
16742
|
onPress: function onPress() {
|
|
16746
16743
|
setOpen(false);
|
|
16747
16744
|
onConfirm(selectingValue);
|
|
16748
16745
|
}
|
|
16749
|
-
}) : /*#__PURE__*/
|
|
16746
|
+
}) : /*#__PURE__*/React__namespace.default.createElement(Box, {
|
|
16750
16747
|
flex: 1,
|
|
16751
16748
|
flexDirection: "row",
|
|
16752
16749
|
justifyContent: "flex-end"
|
|
@@ -16764,13 +16761,13 @@ function MultiSelect(_ref) {
|
|
|
16764
16761
|
}
|
|
16765
16762
|
},
|
|
16766
16763
|
supportedOrientations: supportedOrientations
|
|
16767
|
-
}, onQueryChange && /*#__PURE__*/
|
|
16764
|
+
}, onQueryChange && /*#__PURE__*/React__namespace.default.createElement(StyledSearchBar, null, /*#__PURE__*/React__namespace.default.createElement(TextInput, {
|
|
16768
16765
|
editable: true,
|
|
16769
16766
|
placeholder: "Search",
|
|
16770
16767
|
suffix: "search-outlined",
|
|
16771
16768
|
onChangeText: onQueryChange,
|
|
16772
16769
|
value: query
|
|
16773
|
-
})), /*#__PURE__*/
|
|
16770
|
+
})), /*#__PURE__*/React__namespace.default.createElement(OptionList$1, {
|
|
16774
16771
|
onQueryChange: onQueryChange,
|
|
16775
16772
|
onEndReached: onEndReached,
|
|
16776
16773
|
loading: loading,
|
|
@@ -16805,7 +16802,7 @@ var Option$1 = function Option(_ref) {
|
|
|
16805
16802
|
onPress: onPress,
|
|
16806
16803
|
title: text
|
|
16807
16804
|
};
|
|
16808
|
-
return highlighted === true ? /*#__PURE__*/
|
|
16805
|
+
return highlighted === true ? /*#__PURE__*/React__namespace.default.createElement(List.Item, props) : /*#__PURE__*/React__namespace.default.createElement(List.BasicItem, props);
|
|
16809
16806
|
};
|
|
16810
16807
|
|
|
16811
16808
|
var StyledOptionList = index$9(BaseOptionList)(function (_ref) {
|
|
@@ -16840,7 +16837,7 @@ var OptionList = function OptionList(_ref) {
|
|
|
16840
16837
|
return renderOption ? renderOption(_objectSpread2(_objectSpread2({}, info), {}, {
|
|
16841
16838
|
selected: selected,
|
|
16842
16839
|
onPress: onItemPress
|
|
16843
|
-
})) : /*#__PURE__*/
|
|
16840
|
+
})) : /*#__PURE__*/React__namespace.default.createElement(Option$1, {
|
|
16844
16841
|
selected: selected,
|
|
16845
16842
|
text: item.text,
|
|
16846
16843
|
disabled: item.disabled,
|
|
@@ -16848,7 +16845,7 @@ var OptionList = function OptionList(_ref) {
|
|
|
16848
16845
|
highlighted: item.highlighted
|
|
16849
16846
|
});
|
|
16850
16847
|
};
|
|
16851
|
-
return /*#__PURE__*/
|
|
16848
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledOptionList, _extends$1({
|
|
16852
16849
|
keyExtractor: keyExtractor,
|
|
16853
16850
|
loading: loading,
|
|
16854
16851
|
onEndReached: onEndReached,
|
|
@@ -16901,15 +16898,15 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
16901
16898
|
return value === opt.value;
|
|
16902
16899
|
})) === null || _flatOptions$find === void 0 ? void 0 : _flatOptions$find.text;
|
|
16903
16900
|
var rawValue = value ? String(value) : undefined;
|
|
16904
|
-
return /*#__PURE__*/
|
|
16901
|
+
return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
16905
16902
|
pointerEvents: !editable || disabled || inputProps !== null && inputProps !== void 0 && inputProps.loading ? 'none' : 'auto'
|
|
16906
|
-
}, /*#__PURE__*/
|
|
16903
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
16907
16904
|
onPress: function onPress() {
|
|
16908
16905
|
return setOpen(true);
|
|
16909
16906
|
}
|
|
16910
|
-
}, /*#__PURE__*/
|
|
16907
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
16911
16908
|
pointerEvents: "none"
|
|
16912
|
-
}, /*#__PURE__*/
|
|
16909
|
+
}, /*#__PURE__*/React__namespace.default.createElement(TextInput, _extends$1({}, inputProps, {
|
|
16913
16910
|
label: label,
|
|
16914
16911
|
value: renderSelectedValue ? rawValue : displayedValue,
|
|
16915
16912
|
suffix: "arrow-down",
|
|
@@ -16924,7 +16921,7 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
16924
16921
|
renderInputValue: renderSelectedValue !== undefined && !!rawValue ? function (props) {
|
|
16925
16922
|
return renderSelectedValue(value, props);
|
|
16926
16923
|
} : undefined
|
|
16927
|
-
}))))), /*#__PURE__*/
|
|
16924
|
+
}))))), /*#__PURE__*/React__namespace.default.createElement(BottomSheet$1, {
|
|
16928
16925
|
open: open,
|
|
16929
16926
|
onRequestClose: function onRequestClose() {
|
|
16930
16927
|
onDismiss === null || onDismiss === void 0 || onDismiss();
|
|
@@ -16942,13 +16939,13 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
16942
16939
|
}
|
|
16943
16940
|
},
|
|
16944
16941
|
supportedOrientations: supportedOrientations
|
|
16945
|
-
}, onQueryChange && /*#__PURE__*/
|
|
16942
|
+
}, onQueryChange && /*#__PURE__*/React__namespace.default.createElement(StyledSearchBar, null, /*#__PURE__*/React__namespace.default.createElement(TextInput, {
|
|
16946
16943
|
editable: true,
|
|
16947
16944
|
placeholder: "Search",
|
|
16948
16945
|
suffix: "search-outlined",
|
|
16949
16946
|
onChangeText: onQueryChange,
|
|
16950
16947
|
value: query
|
|
16951
|
-
})), /*#__PURE__*/
|
|
16948
|
+
})), /*#__PURE__*/React__namespace.default.createElement(OptionList, {
|
|
16952
16949
|
onQueryChange: onQueryChange,
|
|
16953
16950
|
onEndReached: onEndReached,
|
|
16954
16951
|
loading: loading,
|
|
@@ -16995,7 +16992,7 @@ var StyledGradientContainer = index$9(Box)(function (_ref2) {
|
|
|
16995
16992
|
});
|
|
16996
16993
|
|
|
16997
16994
|
var _excluded$7 = ["intent", "variant", "style", "onLayout"];
|
|
16998
|
-
var AnimatedLinearGradient = reactNative.Animated.createAnimatedComponent(LinearGradient__default
|
|
16995
|
+
var AnimatedLinearGradient = reactNative.Animated.createAnimatedComponent(LinearGradient__default.default);
|
|
16999
16996
|
var gradientPositions = {
|
|
17000
16997
|
start: {
|
|
17001
16998
|
x: 0,
|
|
@@ -17062,14 +17059,14 @@ var Skeleton = function Skeleton(_ref) {
|
|
|
17062
17059
|
}
|
|
17063
17060
|
onLayout === null || onLayout === void 0 || onLayout(e);
|
|
17064
17061
|
}, []);
|
|
17065
|
-
return /*#__PURE__*/
|
|
17062
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledContainer, _extends$1({
|
|
17066
17063
|
style: style,
|
|
17067
17064
|
themeVariant: variant,
|
|
17068
17065
|
themeIntent: intent,
|
|
17069
17066
|
onLayout: onContainerLayout
|
|
17070
|
-
}, props), /*#__PURE__*/
|
|
17067
|
+
}, props), /*#__PURE__*/React__namespace.default.createElement(StyledGradientContainer, {
|
|
17071
17068
|
themeVariant: variant
|
|
17072
|
-
}, /*#__PURE__*/
|
|
17069
|
+
}, /*#__PURE__*/React__namespace.default.createElement(AnimatedLinearGradient, {
|
|
17073
17070
|
start: gradientPositions.start,
|
|
17074
17071
|
end: gradientPositions.end,
|
|
17075
17072
|
style: {
|
|
@@ -17161,11 +17158,11 @@ var StyledSuccessModal = index$9(ModalWrapper)({
|
|
|
17161
17158
|
var _excluded$6 = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
|
|
17162
17159
|
var renderImage = function renderImage(image) {
|
|
17163
17160
|
if ( /*#__PURE__*/React.isValidElement(image)) {
|
|
17164
|
-
return /*#__PURE__*/
|
|
17161
|
+
return /*#__PURE__*/React__namespace.default.cloneElement(image, {
|
|
17165
17162
|
testID: 'success-image'
|
|
17166
17163
|
});
|
|
17167
17164
|
}
|
|
17168
|
-
return /*#__PURE__*/
|
|
17165
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledSuccessImage, {
|
|
17169
17166
|
source: typeof image === 'string' ? {
|
|
17170
17167
|
uri: image
|
|
17171
17168
|
} : image,
|
|
@@ -17186,16 +17183,16 @@ var SuccessPage = function SuccessPage(_ref) {
|
|
|
17186
17183
|
onSecondaryCtaPress = _ref.onSecondaryCtaPress,
|
|
17187
17184
|
nativeProps = _objectWithoutProperties(_ref, _excluded$6);
|
|
17188
17185
|
var showSecondaryButton = secondaryCtaText && onSecondaryCtaPress;
|
|
17189
|
-
return /*#__PURE__*/
|
|
17186
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledSuccessContainer, _extends$1({
|
|
17190
17187
|
testID: testID,
|
|
17191
17188
|
themeVariant: variant
|
|
17192
|
-
}, nativeProps), /*#__PURE__*/
|
|
17189
|
+
}, nativeProps), /*#__PURE__*/React__namespace.default.createElement(StyledSuccessContent, null, !!image && /*#__PURE__*/React__namespace.default.createElement(StyledSuccessImageContainer, null, renderImage(image)), /*#__PURE__*/React__namespace.default.createElement(StyledSuccessTitle, {
|
|
17193
17190
|
level: "h4",
|
|
17194
17191
|
typeface: "playful"
|
|
17195
|
-
}, title), typeof description === 'string' ? /*#__PURE__*/
|
|
17192
|
+
}, title), typeof description === 'string' ? /*#__PURE__*/React__namespace.default.createElement(StyledSuccessDescription, null, description) : description), !!ctaText && /*#__PURE__*/React__namespace.default.createElement(StyledSuccessButtonContainer, null, /*#__PURE__*/React__namespace.default.createElement(StyledSuccessButtonPrimary, {
|
|
17196
17193
|
text: ctaText,
|
|
17197
17194
|
onPress: onCtaPress
|
|
17198
|
-
}), !!showSecondaryButton && /*#__PURE__*/
|
|
17195
|
+
}), !!showSecondaryButton && /*#__PURE__*/React__namespace.default.createElement(StyledSuccessButtonPrimary, {
|
|
17199
17196
|
variant: "text",
|
|
17200
17197
|
text: secondaryCtaText,
|
|
17201
17198
|
onPress: onSecondaryCtaPress
|
|
@@ -17210,11 +17207,11 @@ var SuccessPage = function SuccessPage(_ref) {
|
|
|
17210
17207
|
var Success = function Success(props) {
|
|
17211
17208
|
var variant = props.variant;
|
|
17212
17209
|
if (variant === 'full-screen') {
|
|
17213
|
-
return /*#__PURE__*/
|
|
17210
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledSuccessModal, {
|
|
17214
17211
|
animationType: "slide"
|
|
17215
|
-
}, /*#__PURE__*/
|
|
17212
|
+
}, /*#__PURE__*/React__namespace.default.createElement(SuccessPage, props));
|
|
17216
17213
|
}
|
|
17217
|
-
return /*#__PURE__*/
|
|
17214
|
+
return /*#__PURE__*/React__namespace.default.createElement(SuccessPage, props);
|
|
17218
17215
|
};
|
|
17219
17216
|
|
|
17220
17217
|
var AnimatedView = reactNative.Animated.createAnimatedComponent(reactNative.View);
|
|
@@ -17265,7 +17262,7 @@ var OptionContent = function OptionContent(_ref) {
|
|
|
17265
17262
|
return content;
|
|
17266
17263
|
}
|
|
17267
17264
|
if (badge.type === 'status') {
|
|
17268
|
-
return /*#__PURE__*/
|
|
17265
|
+
return /*#__PURE__*/React__namespace.default.createElement(Badge$1.Status, {
|
|
17269
17266
|
visible: true,
|
|
17270
17267
|
style: {
|
|
17271
17268
|
paddingHorizontal: theme.space.small
|
|
@@ -17297,27 +17294,27 @@ var Option = function Option(_ref2) {
|
|
|
17297
17294
|
}).start();
|
|
17298
17295
|
}, [selected]);
|
|
17299
17296
|
if (selected) {
|
|
17300
|
-
return /*#__PURE__*/
|
|
17297
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledTextWrapper, {
|
|
17301
17298
|
style: {
|
|
17302
17299
|
transform: [{
|
|
17303
17300
|
translateX: translateX
|
|
17304
17301
|
}]
|
|
17305
17302
|
},
|
|
17306
17303
|
onLayout: onLayout
|
|
17307
|
-
}, /*#__PURE__*/
|
|
17308
|
-
content: /*#__PURE__*/
|
|
17304
|
+
}, /*#__PURE__*/React__namespace.default.createElement(OptionContent, {
|
|
17305
|
+
content: /*#__PURE__*/React__namespace.default.createElement(Typography.Body, null, text),
|
|
17309
17306
|
badge: badge
|
|
17310
17307
|
}));
|
|
17311
17308
|
}
|
|
17312
|
-
return /*#__PURE__*/
|
|
17309
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledIconWrapper$1, {
|
|
17313
17310
|
style: {
|
|
17314
17311
|
transform: [{
|
|
17315
17312
|
translateX: translateX
|
|
17316
17313
|
}]
|
|
17317
17314
|
},
|
|
17318
17315
|
onLayout: onLayout
|
|
17319
|
-
}, /*#__PURE__*/
|
|
17320
|
-
content: /*#__PURE__*/
|
|
17316
|
+
}, /*#__PURE__*/React__namespace.default.createElement(OptionContent, {
|
|
17317
|
+
content: /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
17321
17318
|
icon: icon
|
|
17322
17319
|
}),
|
|
17323
17320
|
badge: badge
|
|
@@ -17359,16 +17356,16 @@ var SelectorSwitch = function SelectorSwitch(_ref) {
|
|
|
17359
17356
|
setKnotWidth(e.nativeEvent.layout.width);
|
|
17360
17357
|
}
|
|
17361
17358
|
}, [value]);
|
|
17362
|
-
return /*#__PURE__*/
|
|
17359
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableWithoutFeedback, {
|
|
17363
17360
|
onPress: function onPress() {
|
|
17364
17361
|
return _onPress === null || _onPress === void 0 ? void 0 : _onPress(value);
|
|
17365
17362
|
},
|
|
17366
17363
|
testID: testID
|
|
17367
|
-
}, /*#__PURE__*/
|
|
17364
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledWrapper$2, {
|
|
17368
17365
|
onLayout: onContainerLayout,
|
|
17369
17366
|
style: style
|
|
17370
17367
|
}, options.map(function (opt, index) {
|
|
17371
|
-
return /*#__PURE__*/
|
|
17368
|
+
return /*#__PURE__*/React__namespace.default.createElement(Option, _extends$1({}, opt, {
|
|
17372
17369
|
selected: opt.value === value
|
|
17373
17370
|
// eslint-disable-next-line react/no-array-index-key
|
|
17374
17371
|
,
|
|
@@ -17378,7 +17375,7 @@ var SelectorSwitch = function SelectorSwitch(_ref) {
|
|
|
17378
17375
|
},
|
|
17379
17376
|
index: index
|
|
17380
17377
|
}));
|
|
17381
|
-
}), /*#__PURE__*/
|
|
17378
|
+
}), /*#__PURE__*/React__namespace.default.createElement(StyledKnot$1, {
|
|
17382
17379
|
style: {
|
|
17383
17380
|
width: knotWidth,
|
|
17384
17381
|
transform: [{
|
|
@@ -17446,14 +17443,14 @@ var Switch = function Switch(_ref2) {
|
|
|
17446
17443
|
useNativeDriver: false
|
|
17447
17444
|
}).start();
|
|
17448
17445
|
}, [checked]);
|
|
17449
|
-
return /*#__PURE__*/
|
|
17446
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableWithoutFeedback, {
|
|
17450
17447
|
testID: testID,
|
|
17451
17448
|
onPress: onPress,
|
|
17452
17449
|
disabled: disabled
|
|
17453
|
-
}, /*#__PURE__*/
|
|
17450
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledWrapper$1, {
|
|
17454
17451
|
themeVariant: variant,
|
|
17455
17452
|
style: style
|
|
17456
|
-
}, /*#__PURE__*/
|
|
17453
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledKnot, {
|
|
17457
17454
|
style: {
|
|
17458
17455
|
left: animatedOffset
|
|
17459
17456
|
}
|
|
@@ -17517,7 +17514,7 @@ var ActiveTabIndicator = function ActiveTabIndicator(_ref) {
|
|
|
17517
17514
|
inputRange: inputRange,
|
|
17518
17515
|
outputRange: [0, tabsLength * indicatorWidth]
|
|
17519
17516
|
});
|
|
17520
|
-
return /*#__PURE__*/
|
|
17517
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledIndicator, {
|
|
17521
17518
|
themeWidth: indicatorWidth,
|
|
17522
17519
|
style: {
|
|
17523
17520
|
transform: [{
|
|
@@ -17593,18 +17590,18 @@ var SceneView = function SceneView(_ref) {
|
|
|
17593
17590
|
index = _ref.index,
|
|
17594
17591
|
selectedIndex = _ref.selectedIndex,
|
|
17595
17592
|
testID = _ref.testID;
|
|
17596
|
-
var _React$useState =
|
|
17593
|
+
var _React$useState = React__namespace.default.useState(Math.abs(selectedIndex - index) > lazyPreloadDistance),
|
|
17597
17594
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
17598
17595
|
isLoading = _React$useState2[0],
|
|
17599
17596
|
setIsLoading = _React$useState2[1];
|
|
17600
17597
|
var focused = index === selectedIndex;
|
|
17601
|
-
|
|
17598
|
+
React__namespace.default.useEffect(function () {
|
|
17602
17599
|
if (isLoading && Math.abs(selectedIndex - index) <= lazyPreloadDistance) {
|
|
17603
17600
|
// Always render the route when it becomes focused
|
|
17604
17601
|
setIsLoading(false);
|
|
17605
17602
|
}
|
|
17606
17603
|
}, [isLoading, index, selectedIndex, lazyPreloadDistance]);
|
|
17607
|
-
|
|
17604
|
+
React__namespace.default.useEffect(function () {
|
|
17608
17605
|
var timer;
|
|
17609
17606
|
if (!lazy && isLoading) {
|
|
17610
17607
|
// If lazy mode is not enabled, render the scene with a delay if not loaded already
|
|
@@ -17619,7 +17616,7 @@ var SceneView = function SceneView(_ref) {
|
|
|
17619
17616
|
}
|
|
17620
17617
|
};
|
|
17621
17618
|
}, [index, isLoading, lazy, focused]);
|
|
17622
|
-
return /*#__PURE__*/
|
|
17619
|
+
return /*#__PURE__*/React__namespace.default.createElement(TabScreen, {
|
|
17623
17620
|
accessibilityElementsHidden: !focused,
|
|
17624
17621
|
importantForAccessibility: focused ? 'auto' : 'no-hide-descendants',
|
|
17625
17622
|
style: [{
|
|
@@ -17634,9 +17631,9 @@ var TabWithBadge = function TabWithBadge(_ref) {
|
|
|
17634
17631
|
var config = _ref.config,
|
|
17635
17632
|
tabItem = _ref.tabItem;
|
|
17636
17633
|
var theme = useTheme$1();
|
|
17637
|
-
if (!config) return /*#__PURE__*/
|
|
17634
|
+
if (!config) return /*#__PURE__*/React__namespace.default.createElement(reactNative.View, null, tabItem);
|
|
17638
17635
|
if (config.type === 'status') {
|
|
17639
|
-
return /*#__PURE__*/
|
|
17636
|
+
return /*#__PURE__*/React__namespace.default.createElement(Badge$1.Status, {
|
|
17640
17637
|
visible: true,
|
|
17641
17638
|
style: {
|
|
17642
17639
|
paddingHorizontal: theme.space.xsmall
|
|
@@ -17644,7 +17641,7 @@ var TabWithBadge = function TabWithBadge(_ref) {
|
|
|
17644
17641
|
}, tabItem);
|
|
17645
17642
|
}
|
|
17646
17643
|
if (config.type === 'counter') {
|
|
17647
|
-
return /*#__PURE__*/
|
|
17644
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledBadgeWrapper, null, tabItem, /*#__PURE__*/React__namespace.default.createElement(Badge$1, {
|
|
17648
17645
|
content: config.value,
|
|
17649
17646
|
max: config.max,
|
|
17650
17647
|
intent: "info",
|
|
@@ -17653,11 +17650,11 @@ var TabWithBadge = function TabWithBadge(_ref) {
|
|
|
17653
17650
|
}
|
|
17654
17651
|
}));
|
|
17655
17652
|
}
|
|
17656
|
-
return /*#__PURE__*/
|
|
17653
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.View, null, tabItem);
|
|
17657
17654
|
};
|
|
17658
17655
|
|
|
17659
17656
|
var useAnimatedValueArray = function useAnimatedValueArray(initialValues) {
|
|
17660
|
-
var refs =
|
|
17657
|
+
var refs = React__namespace.default.useRef([]);
|
|
17661
17658
|
refs.current.length = initialValues.length;
|
|
17662
17659
|
initialValues.forEach(function (initialValue, i) {
|
|
17663
17660
|
var _refs$current$i;
|
|
@@ -17676,7 +17673,7 @@ var useInitHighlightedAnimation = function useInitHighlightedAnimation(_ref) {
|
|
|
17676
17673
|
}).map(function (_, i) {
|
|
17677
17674
|
return i === selectedIndex ? 1 : 0;
|
|
17678
17675
|
}));
|
|
17679
|
-
|
|
17676
|
+
React__namespace.default.useEffect(function () {
|
|
17680
17677
|
if (variant !== 'highlighted') {
|
|
17681
17678
|
return;
|
|
17682
17679
|
}
|
|
@@ -17719,7 +17716,7 @@ var useInitUnderlinedAnimation = function useInitUnderlinedAnimation(_ref) {
|
|
|
17719
17716
|
_ref$selectedIndex = _ref.selectedIndex,
|
|
17720
17717
|
selectedIndex = _ref$selectedIndex === void 0 ? 0 : _ref$selectedIndex,
|
|
17721
17718
|
variant = _ref.variant;
|
|
17722
|
-
var previousIndex =
|
|
17719
|
+
var previousIndex = React__namespace.default.useRef(0);
|
|
17723
17720
|
var translateXAnims = useAnimatedValueArray(Array.from({
|
|
17724
17721
|
length: tabsLength
|
|
17725
17722
|
}).map(function () {
|
|
@@ -17742,7 +17739,7 @@ var useInitUnderlinedAnimation = function useInitUnderlinedAnimation(_ref) {
|
|
|
17742
17739
|
outputRange: [0, 1]
|
|
17743
17740
|
});
|
|
17744
17741
|
});
|
|
17745
|
-
|
|
17742
|
+
React__namespace.default.useEffect(function () {
|
|
17746
17743
|
if (variant === 'underlined' && selectedIndex !== undefined && previousIndex.current !== selectedIndex) {
|
|
17747
17744
|
// Prepare for translateX into the right position.
|
|
17748
17745
|
if (selectedIndex > previousIndex.current) {
|
|
@@ -17767,7 +17764,7 @@ var getTabItem$1 = function getTabItem(_ref) {
|
|
|
17767
17764
|
color = _ref.color,
|
|
17768
17765
|
active = _ref.active;
|
|
17769
17766
|
if (isHeroIcon(item)) {
|
|
17770
|
-
return /*#__PURE__*/
|
|
17767
|
+
return /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
17771
17768
|
icon: item,
|
|
17772
17769
|
testID: "hero-icon-".concat(item),
|
|
17773
17770
|
size: "small",
|
|
@@ -17777,7 +17774,7 @@ var getTabItem$1 = function getTabItem(_ref) {
|
|
|
17777
17774
|
});
|
|
17778
17775
|
}
|
|
17779
17776
|
if (typeof item === 'string') {
|
|
17780
|
-
return /*#__PURE__*/
|
|
17777
|
+
return /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
17781
17778
|
variant: active ? 'regular-bold' : 'regular',
|
|
17782
17779
|
numberOfLines: 1,
|
|
17783
17780
|
style: {
|
|
@@ -17805,7 +17802,7 @@ var ScrollableTabHeader = function ScrollableTabHeader(_ref2) {
|
|
|
17805
17802
|
_ref2$variant = _ref2.variant,
|
|
17806
17803
|
variant = _ref2$variant === void 0 ? 'highlighted' : _ref2$variant;
|
|
17807
17804
|
var theme = useTheme$1();
|
|
17808
|
-
var flatListRef =
|
|
17805
|
+
var flatListRef = React__namespace.default.useRef(null);
|
|
17809
17806
|
// Init underlined animation data
|
|
17810
17807
|
var _useInitUnderlinedAni = useInitUnderlinedAnimation({
|
|
17811
17808
|
tabsLength: tabs.length,
|
|
@@ -17821,7 +17818,7 @@ var ScrollableTabHeader = function ScrollableTabHeader(_ref2) {
|
|
|
17821
17818
|
variant: variant
|
|
17822
17819
|
}),
|
|
17823
17820
|
tabsAnims = _useInitHighlightedAn.tabsAnims;
|
|
17824
|
-
|
|
17821
|
+
React__namespace.default.useEffect(function () {
|
|
17825
17822
|
if (selectedIndex !== undefined && selectedIndex !== -1) {
|
|
17826
17823
|
var _flatListRef$current;
|
|
17827
17824
|
(_flatListRef$current = flatListRef.current) === null || _flatListRef$current === void 0 || _flatListRef$current.scrollToIndex({
|
|
@@ -17832,10 +17829,10 @@ var ScrollableTabHeader = function ScrollableTabHeader(_ref2) {
|
|
|
17832
17829
|
return function () {
|
|
17833
17830
|
};
|
|
17834
17831
|
}, [selectedIndex]);
|
|
17835
|
-
return /*#__PURE__*/
|
|
17832
|
+
return /*#__PURE__*/React__namespace.default.createElement(HeaderTabWrapper, {
|
|
17836
17833
|
themeInsets: insets,
|
|
17837
17834
|
style: barStyle
|
|
17838
|
-
}, /*#__PURE__*/
|
|
17835
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.FlatList, {
|
|
17839
17836
|
testID: testID,
|
|
17840
17837
|
ref: flatListRef,
|
|
17841
17838
|
horizontal: true,
|
|
@@ -17884,15 +17881,15 @@ var ScrollableTabHeader = function ScrollableTabHeader(_ref2) {
|
|
|
17884
17881
|
color: active ? theme.__hd__.tabs.colors.active : theme.__hd__.tabs.colors.inactive,
|
|
17885
17882
|
active: active
|
|
17886
17883
|
});
|
|
17887
|
-
return /*#__PURE__*/
|
|
17884
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableWithoutFeedback, {
|
|
17888
17885
|
key: key,
|
|
17889
17886
|
onPress: function onPress() {
|
|
17890
17887
|
onTabPress(key);
|
|
17891
17888
|
},
|
|
17892
17889
|
testID: tabItemTestID
|
|
17893
|
-
}, /*#__PURE__*/
|
|
17890
|
+
}, /*#__PURE__*/React__namespace.default.createElement(HeaderTabItem, {
|
|
17894
17891
|
isFirstItem: index === 0
|
|
17895
|
-
}, variant === 'highlighted' && /*#__PURE__*/
|
|
17892
|
+
}, variant === 'highlighted' && /*#__PURE__*/React__namespace.default.createElement(HeaderTabItemOutlineWrapper, null, /*#__PURE__*/React__namespace.default.createElement(HeaderTabItemOutline, {
|
|
17896
17893
|
themeActive: active,
|
|
17897
17894
|
style: {
|
|
17898
17895
|
flex: 1,
|
|
@@ -17900,10 +17897,10 @@ var ScrollableTabHeader = function ScrollableTabHeader(_ref2) {
|
|
|
17900
17897
|
scaleX: outlineScale
|
|
17901
17898
|
}]
|
|
17902
17899
|
}
|
|
17903
|
-
})), /*#__PURE__*/
|
|
17900
|
+
})), /*#__PURE__*/React__namespace.default.createElement(HeaderTabItemWrapper, null, /*#__PURE__*/React__namespace.default.createElement(TabWithBadge, {
|
|
17904
17901
|
config: badge,
|
|
17905
17902
|
tabItem: tabItem
|
|
17906
|
-
})), variant === 'underlined' && /*#__PURE__*/
|
|
17903
|
+
})), variant === 'underlined' && /*#__PURE__*/React__namespace.default.createElement(HeaderTabItemIndicator, {
|
|
17907
17904
|
style: {
|
|
17908
17905
|
opacity: underlinedOpacity[index],
|
|
17909
17906
|
transform: [{
|
|
@@ -17929,11 +17926,11 @@ var useHandlePageScroll = function useHandlePageScroll() {
|
|
|
17929
17926
|
};
|
|
17930
17927
|
};
|
|
17931
17928
|
|
|
17932
|
-
var TabContext = /*#__PURE__*/
|
|
17933
|
-
var ScreenContext = /*#__PURE__*/
|
|
17929
|
+
var TabContext = /*#__PURE__*/React__namespace.default.createContext(null);
|
|
17930
|
+
var ScreenContext = /*#__PURE__*/React__namespace.default.createContext(null);
|
|
17934
17931
|
var useIsFocused = function useIsFocused() {
|
|
17935
|
-
var context =
|
|
17936
|
-
var key =
|
|
17932
|
+
var context = React__namespace.default.useContext(TabContext);
|
|
17933
|
+
var key = React__namespace.default.useContext(ScreenContext);
|
|
17937
17934
|
if (!context || !key) {
|
|
17938
17935
|
return;
|
|
17939
17936
|
}
|
|
@@ -17986,12 +17983,12 @@ var ScrollableTab = function ScrollableTab(_ref) {
|
|
|
17986
17983
|
selectedTabKey: selectedTabKey
|
|
17987
17984
|
};
|
|
17988
17985
|
}, [selectedTabKey]);
|
|
17989
|
-
return /*#__PURE__*/
|
|
17986
|
+
return /*#__PURE__*/React__namespace.default.createElement(TabContext.Provider, {
|
|
17990
17987
|
value: tabContextProviderValue
|
|
17991
|
-
}, /*#__PURE__*/
|
|
17988
|
+
}, /*#__PURE__*/React__namespace.default.createElement(TabContainer, {
|
|
17992
17989
|
style: containerStyle,
|
|
17993
17990
|
testID: componentTestID
|
|
17994
|
-
}, /*#__PURE__*/
|
|
17991
|
+
}, /*#__PURE__*/React__namespace.default.createElement(ScrollableTabHeader, {
|
|
17995
17992
|
tabs: tabs,
|
|
17996
17993
|
selectedIndex: selectedTabIndex,
|
|
17997
17994
|
onTabPress: onTabPress,
|
|
@@ -17999,7 +17996,7 @@ var ScrollableTab = function ScrollableTab(_ref) {
|
|
|
17999
17996
|
insets: insets,
|
|
18000
17997
|
testID: componentTestID ? "".concat(componentTestID, "-tab-bar") : undefined,
|
|
18001
17998
|
variant: variant
|
|
18002
|
-
}), /*#__PURE__*/
|
|
17999
|
+
}), /*#__PURE__*/React__namespace.default.createElement(PagerView__default.default, {
|
|
18003
18000
|
useNext: true,
|
|
18004
18001
|
initialPage: selectedTabIndex,
|
|
18005
18002
|
ref: pagerViewRef,
|
|
@@ -18021,10 +18018,10 @@ var ScrollableTab = function ScrollableTab(_ref) {
|
|
|
18021
18018
|
var key = tab.key,
|
|
18022
18019
|
component = tab.component,
|
|
18023
18020
|
testID = tab.testID;
|
|
18024
|
-
return /*#__PURE__*/
|
|
18021
|
+
return /*#__PURE__*/React__namespace.default.createElement(ScreenContext.Provider, {
|
|
18025
18022
|
value: key,
|
|
18026
18023
|
key: key
|
|
18027
|
-
}, /*#__PURE__*/
|
|
18024
|
+
}, /*#__PURE__*/React__namespace.default.createElement(SceneView, {
|
|
18028
18025
|
testID: testID,
|
|
18029
18026
|
index: index,
|
|
18030
18027
|
selectedIndex: selectedTabIndex,
|
|
@@ -18034,13 +18031,13 @@ var ScrollableTab = function ScrollableTab(_ref) {
|
|
|
18034
18031
|
}))));
|
|
18035
18032
|
};
|
|
18036
18033
|
|
|
18037
|
-
var AnimatedPagerView = reactNative.Animated.createAnimatedComponent(PagerView__default
|
|
18034
|
+
var AnimatedPagerView = reactNative.Animated.createAnimatedComponent(PagerView__default.default);
|
|
18038
18035
|
var getTabItem = function getTabItem(_ref) {
|
|
18039
18036
|
var item = _ref.item,
|
|
18040
18037
|
color = _ref.color,
|
|
18041
18038
|
active = _ref.active;
|
|
18042
18039
|
if (typeof item === 'string') {
|
|
18043
|
-
return /*#__PURE__*/
|
|
18040
|
+
return /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
18044
18041
|
variant: active ? 'small-bold' : 'small',
|
|
18045
18042
|
numberOfLines: 1,
|
|
18046
18043
|
style: {
|
|
@@ -18091,16 +18088,16 @@ var Tabs = function Tabs(_ref2) {
|
|
|
18091
18088
|
selectedTabKey: selectedTabKey
|
|
18092
18089
|
};
|
|
18093
18090
|
}, [selectedTabKey]);
|
|
18094
|
-
return /*#__PURE__*/
|
|
18091
|
+
return /*#__PURE__*/React__namespace.default.createElement(TabContext.Provider, {
|
|
18095
18092
|
value: tabContextProviderValue
|
|
18096
|
-
}, /*#__PURE__*/
|
|
18093
|
+
}, /*#__PURE__*/React__namespace.default.createElement(TabContainer$1, {
|
|
18097
18094
|
style: containerStyle,
|
|
18098
18095
|
testID: componentTestID
|
|
18099
|
-
}, /*#__PURE__*/
|
|
18096
|
+
}, /*#__PURE__*/React__namespace.default.createElement(HeaderTabWrapper$1, {
|
|
18100
18097
|
themeInsets: insets,
|
|
18101
18098
|
style: barStyle,
|
|
18102
18099
|
testID: componentTestID ? "".concat(componentTestID, "-tab-bar") : undefined
|
|
18103
|
-
}, /*#__PURE__*/
|
|
18100
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, null, /*#__PURE__*/React__namespace.default.createElement(HeaderTab, {
|
|
18104
18101
|
onLayout: function onLayout(e) {
|
|
18105
18102
|
var width = e.nativeEvent.layout.width;
|
|
18106
18103
|
if (tabsWidth !== width) {
|
|
@@ -18120,22 +18117,22 @@ var Tabs = function Tabs(_ref2) {
|
|
|
18120
18117
|
color: theme.__hd__.tabs.colors.text,
|
|
18121
18118
|
active: active
|
|
18122
18119
|
});
|
|
18123
|
-
return /*#__PURE__*/
|
|
18120
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableWithoutFeedback, {
|
|
18124
18121
|
key: key,
|
|
18125
18122
|
onPress: function onPress() {
|
|
18126
18123
|
onTabPress(key);
|
|
18127
18124
|
},
|
|
18128
18125
|
testID: testID
|
|
18129
|
-
}, /*#__PURE__*/
|
|
18126
|
+
}, /*#__PURE__*/React__namespace.default.createElement(HeaderTabItem$1, null, /*#__PURE__*/React__namespace.default.createElement(TabWithBadge, {
|
|
18130
18127
|
config: badge,
|
|
18131
18128
|
tabItem: tabItem
|
|
18132
18129
|
})));
|
|
18133
|
-
})), /*#__PURE__*/
|
|
18130
|
+
})), /*#__PURE__*/React__namespace.default.createElement(ActiveTabIndicator, {
|
|
18134
18131
|
positionAnimatedValue: positionAnimatedValue,
|
|
18135
18132
|
scrollOffsetAnimatedValue: scrollOffsetAnimatedValue,
|
|
18136
18133
|
tabsLength: tabs.length,
|
|
18137
18134
|
tabsWidth: tabsWidth
|
|
18138
|
-
}))), /*#__PURE__*/
|
|
18135
|
+
}))), /*#__PURE__*/React__namespace.default.createElement(AnimatedPagerView, {
|
|
18139
18136
|
useNext: true,
|
|
18140
18137
|
initialPage: selectedTabIndex,
|
|
18141
18138
|
ref: pagerViewRef,
|
|
@@ -18163,10 +18160,10 @@ var Tabs = function Tabs(_ref2) {
|
|
|
18163
18160
|
var key = tab.key,
|
|
18164
18161
|
component = tab.component,
|
|
18165
18162
|
testID = tab.testID;
|
|
18166
|
-
return /*#__PURE__*/
|
|
18163
|
+
return /*#__PURE__*/React__namespace.default.createElement(ScreenContext.Provider, {
|
|
18167
18164
|
value: key,
|
|
18168
18165
|
key: key
|
|
18169
|
-
}, /*#__PURE__*/
|
|
18166
|
+
}, /*#__PURE__*/React__namespace.default.createElement(SceneView, {
|
|
18170
18167
|
testID: testID,
|
|
18171
18168
|
key: key,
|
|
18172
18169
|
index: index,
|
|
@@ -18213,11 +18210,11 @@ var Tag = function Tag(_ref) {
|
|
|
18213
18210
|
testID = _ref.testID,
|
|
18214
18211
|
nativeProps = _objectWithoutProperties(_ref, _excluded$5);
|
|
18215
18212
|
useDeprecation("Tag's variant prop is deprecated and will be removed in the next major release. Please remove it.", variant !== undefined);
|
|
18216
|
-
return /*#__PURE__*/
|
|
18213
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledView, _extends$1({}, nativeProps, {
|
|
18217
18214
|
themeIntent: intent,
|
|
18218
18215
|
style: style,
|
|
18219
18216
|
testID: testID
|
|
18220
|
-
}), typeof content === 'string' ? /*#__PURE__*/
|
|
18217
|
+
}), typeof content === 'string' ? /*#__PURE__*/React__namespace.default.createElement(StyledText, {
|
|
18221
18218
|
themeIntent: intent,
|
|
18222
18219
|
fontWeight: "semi-bold"
|
|
18223
18220
|
}, content) : content);
|
|
@@ -18246,15 +18243,15 @@ var TimePickerAndroid = function TimePickerAndroid(_ref) {
|
|
|
18246
18243
|
var is12Hour = displayFormat.includes('hh');
|
|
18247
18244
|
var displayValue = value ? formatTime(displayFormat, value) : '';
|
|
18248
18245
|
var pickerInitValue = value || new Date();
|
|
18249
|
-
return /*#__PURE__*/
|
|
18246
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
18250
18247
|
onPress: function onPress() {
|
|
18251
18248
|
return setOpen(true);
|
|
18252
18249
|
},
|
|
18253
18250
|
disabled: disabled
|
|
18254
|
-
}, /*#__PURE__*/
|
|
18251
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
18255
18252
|
pointerEvents: "none",
|
|
18256
18253
|
testID: "timePickerInputAndroid"
|
|
18257
|
-
}, /*#__PURE__*/
|
|
18254
|
+
}, /*#__PURE__*/React__namespace.default.createElement(TextInput, {
|
|
18258
18255
|
label: label,
|
|
18259
18256
|
value: displayValue,
|
|
18260
18257
|
suffix: showSuffix ? 'clock-3' : undefined,
|
|
@@ -18265,7 +18262,7 @@ var TimePickerAndroid = function TimePickerAndroid(_ref) {
|
|
|
18265
18262
|
helpText: helpText,
|
|
18266
18263
|
style: style,
|
|
18267
18264
|
testID: testID
|
|
18268
|
-
})), open ? /*#__PURE__*/
|
|
18265
|
+
})), open ? /*#__PURE__*/React__namespace.default.createElement(DateTimePicker__default.default, {
|
|
18269
18266
|
testID: "timePickerAndroid",
|
|
18270
18267
|
mode: "time",
|
|
18271
18268
|
value: pickerInitValue,
|
|
@@ -18317,15 +18314,15 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
18317
18314
|
var is12Hour = displayFormat.includes('hh');
|
|
18318
18315
|
var displayValue = value ? formatTime(displayFormat, value) : '';
|
|
18319
18316
|
var theme = useTheme();
|
|
18320
|
-
return /*#__PURE__*/
|
|
18317
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
18321
18318
|
onPress: function onPress() {
|
|
18322
18319
|
return setOpen(true);
|
|
18323
18320
|
},
|
|
18324
18321
|
disabled: disabled
|
|
18325
|
-
}, /*#__PURE__*/
|
|
18322
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
18326
18323
|
pointerEvents: "none",
|
|
18327
18324
|
testID: "timePickerInputIOS"
|
|
18328
|
-
}, /*#__PURE__*/
|
|
18325
|
+
}, /*#__PURE__*/React__namespace.default.createElement(TextInput, {
|
|
18329
18326
|
label: label,
|
|
18330
18327
|
value: displayValue,
|
|
18331
18328
|
suffix: showSuffix ? 'clock-3' : undefined,
|
|
@@ -18336,13 +18333,13 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
18336
18333
|
helpText: helpText,
|
|
18337
18334
|
testID: testID,
|
|
18338
18335
|
style: style
|
|
18339
|
-
})), /*#__PURE__*/
|
|
18336
|
+
})), /*#__PURE__*/React__namespace.default.createElement(BottomSheet$1, {
|
|
18340
18337
|
open: open,
|
|
18341
18338
|
onRequestClose: function onRequestClose() {
|
|
18342
18339
|
return setOpen(false);
|
|
18343
18340
|
},
|
|
18344
18341
|
header: label,
|
|
18345
|
-
footer: /*#__PURE__*/
|
|
18342
|
+
footer: /*#__PURE__*/React__namespace.default.createElement(CompoundButton, {
|
|
18346
18343
|
variant: "text",
|
|
18347
18344
|
text: confirmLabel,
|
|
18348
18345
|
onPress: function onPress() {
|
|
@@ -18353,7 +18350,7 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
18353
18350
|
}
|
|
18354
18351
|
}),
|
|
18355
18352
|
supportedOrientations: supportedOrientations
|
|
18356
|
-
}, /*#__PURE__*/
|
|
18353
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledPickerWrapper, null, /*#__PURE__*/React__namespace.default.createElement(DateTimePicker__default.default, {
|
|
18357
18354
|
testID: "timePickerIOS",
|
|
18358
18355
|
value: selectingDate,
|
|
18359
18356
|
mode: "time"
|
|
@@ -18376,9 +18373,9 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
18376
18373
|
|
|
18377
18374
|
var TimePicker = function TimePicker(props) {
|
|
18378
18375
|
if (reactNative.Platform.OS === 'ios') {
|
|
18379
|
-
return /*#__PURE__*/
|
|
18376
|
+
return /*#__PURE__*/React__namespace.default.createElement(TimePickerIOS, props);
|
|
18380
18377
|
}
|
|
18381
|
-
return /*#__PURE__*/
|
|
18378
|
+
return /*#__PURE__*/React__namespace.default.createElement(TimePickerAndroid, props);
|
|
18382
18379
|
};
|
|
18383
18380
|
|
|
18384
18381
|
var ToolbarWrapper = index$9(reactNative.View)(function (_ref) {
|
|
@@ -18446,12 +18443,12 @@ var IconItem = function IconItem(_ref) {
|
|
|
18446
18443
|
intent = _ref.intent,
|
|
18447
18444
|
disabled = _ref.disabled,
|
|
18448
18445
|
label = _ref.label;
|
|
18449
|
-
return /*#__PURE__*/
|
|
18446
|
+
return /*#__PURE__*/React__namespace.default.createElement(IconButtonWrapper, null, /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
18450
18447
|
icon: icon,
|
|
18451
18448
|
size: "medium",
|
|
18452
18449
|
intent: disabled ? 'disabled-text' : intent,
|
|
18453
18450
|
testID: "toolbar-item-icon-".concat(icon)
|
|
18454
|
-
}), label ? /*#__PURE__*/
|
|
18451
|
+
}), label ? /*#__PURE__*/React__namespace.default.createElement(IconButtonLabel, {
|
|
18455
18452
|
variant: "regular-bold",
|
|
18456
18453
|
intent: disabled ? 'subdued' : intent,
|
|
18457
18454
|
allowFontScaling: false,
|
|
@@ -18466,7 +18463,7 @@ var ToolbarItemContent = function ToolbarItemContent(_ref2) {
|
|
|
18466
18463
|
_ref2$disabled = _ref2.disabled,
|
|
18467
18464
|
disabled = _ref2$disabled === void 0 ? false : _ref2$disabled;
|
|
18468
18465
|
if (icon) {
|
|
18469
|
-
return /*#__PURE__*/
|
|
18466
|
+
return /*#__PURE__*/React__namespace.default.createElement(IconItem, {
|
|
18470
18467
|
icon: icon,
|
|
18471
18468
|
intent: intent,
|
|
18472
18469
|
disabled: disabled,
|
|
@@ -18474,7 +18471,7 @@ var ToolbarItemContent = function ToolbarItemContent(_ref2) {
|
|
|
18474
18471
|
});
|
|
18475
18472
|
}
|
|
18476
18473
|
if (label) {
|
|
18477
|
-
return /*#__PURE__*/
|
|
18474
|
+
return /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
18478
18475
|
variant: "regular-bold",
|
|
18479
18476
|
intent: disabled ? 'disabled' : intent,
|
|
18480
18477
|
allowFontScaling: false,
|
|
@@ -18492,11 +18489,11 @@ var ToolbarItem = function ToolbarItem(_ref3) {
|
|
|
18492
18489
|
_ref3$disabled = _ref3.disabled,
|
|
18493
18490
|
disabled = _ref3$disabled === void 0 ? false : _ref3$disabled,
|
|
18494
18491
|
style = _ref3.style;
|
|
18495
|
-
return /*#__PURE__*/
|
|
18492
|
+
return /*#__PURE__*/React__namespace.default.createElement(ToolbarItemWrapper, {
|
|
18496
18493
|
onPress: onPress,
|
|
18497
18494
|
disabled: disabled,
|
|
18498
18495
|
style: style
|
|
18499
|
-
}, /*#__PURE__*/
|
|
18496
|
+
}, /*#__PURE__*/React__namespace.default.createElement(ToolbarItemContent, {
|
|
18500
18497
|
icon: icon,
|
|
18501
18498
|
label: label,
|
|
18502
18499
|
intent: intent,
|
|
@@ -18510,7 +18507,7 @@ var ToolbarGroup = function ToolbarGroup(_ref) {
|
|
|
18510
18507
|
_ref$items = _ref.items,
|
|
18511
18508
|
items = _ref$items === void 0 ? [] : _ref$items;
|
|
18512
18509
|
useDeprecation("Toolbar's align prop is deprecated", align !== 'right');
|
|
18513
|
-
return /*#__PURE__*/
|
|
18510
|
+
return /*#__PURE__*/React__namespace.default.createElement(ToolbarGroupWrapper, {
|
|
18514
18511
|
align: align
|
|
18515
18512
|
}, items.map(function (_ref2) {
|
|
18516
18513
|
var label = _ref2.label,
|
|
@@ -18518,7 +18515,7 @@ var ToolbarGroup = function ToolbarGroup(_ref) {
|
|
|
18518
18515
|
onPress = _ref2.onPress,
|
|
18519
18516
|
disabled = _ref2.disabled,
|
|
18520
18517
|
intent = _ref2.intent;
|
|
18521
|
-
return /*#__PURE__*/
|
|
18518
|
+
return /*#__PURE__*/React__namespace.default.createElement(ToolbarItem, {
|
|
18522
18519
|
key: "".concat(label, "-").concat(icon),
|
|
18523
18520
|
label: label,
|
|
18524
18521
|
icon: icon,
|
|
@@ -18533,7 +18530,7 @@ var _excluded$4 = ["children"];
|
|
|
18533
18530
|
var Toolbar = function Toolbar(_ref) {
|
|
18534
18531
|
var children = _ref.children,
|
|
18535
18532
|
rest = _objectWithoutProperties(_ref, _excluded$4);
|
|
18536
|
-
return /*#__PURE__*/
|
|
18533
|
+
return /*#__PURE__*/React__namespace.default.createElement(ToolbarWrapper, rest, children);
|
|
18537
18534
|
};
|
|
18538
18535
|
var index$1 = Object.assign(Toolbar, {
|
|
18539
18536
|
Group: ToolbarGroup
|
|
@@ -18578,21 +18575,21 @@ var Rate = function Rate(_ref) {
|
|
|
18578
18575
|
useNativeDriver: reactNative.Platform.OS !== 'web'
|
|
18579
18576
|
}).start();
|
|
18580
18577
|
}, [value, animatedValue]);
|
|
18581
|
-
return /*#__PURE__*/
|
|
18582
|
-
return /*#__PURE__*/
|
|
18578
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledWrapper, otherProps, options.length > 0 && options.map(function (item, index) {
|
|
18579
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.Pressable, {
|
|
18583
18580
|
key: item.value,
|
|
18584
18581
|
disabled: disabled || readonly,
|
|
18585
18582
|
onPress: function onPress() {
|
|
18586
18583
|
return onChange === null || onChange === void 0 ? void 0 : onChange(item.value);
|
|
18587
18584
|
},
|
|
18588
18585
|
testID: item.value.toString()
|
|
18589
|
-
}, /*#__PURE__*/
|
|
18586
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledIconWrapper, {
|
|
18590
18587
|
style: valueIndex === index && {
|
|
18591
18588
|
transform: [{
|
|
18592
18589
|
scale: scale
|
|
18593
18590
|
}]
|
|
18594
18591
|
}
|
|
18595
|
-
}, /*#__PURE__*/
|
|
18592
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
18596
18593
|
icon: index <= valueIndex ? 'star' : 'star-outlined',
|
|
18597
18594
|
intent: disabled ? 'disabled-text' : 'primary'
|
|
18598
18595
|
})));
|
|
@@ -18602,7 +18599,7 @@ var Rate = function Rate(_ref) {
|
|
|
18602
18599
|
var RefreshControl = function RefreshControl(_ref) {
|
|
18603
18600
|
var props = _extends$1({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
18604
18601
|
var theme = useTheme();
|
|
18605
|
-
return /*#__PURE__*/
|
|
18602
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.RefreshControl, _extends$1({}, props, {
|
|
18606
18603
|
colors: [theme.__hd__.refreshControl.colors.indicator],
|
|
18607
18604
|
tintColor: theme.__hd__.refreshControl.colors.indicator
|
|
18608
18605
|
}));
|
|
@@ -18671,11 +18668,11 @@ var ToolbarButton = function ToolbarButton(_ref) {
|
|
|
18671
18668
|
onPress = _ref.onPress,
|
|
18672
18669
|
testID = _ref.testID,
|
|
18673
18670
|
selected = _ref.selected;
|
|
18674
|
-
return /*#__PURE__*/
|
|
18671
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledToolbarButton, {
|
|
18675
18672
|
selected: selected,
|
|
18676
18673
|
onPress: onPress,
|
|
18677
18674
|
testID: testID
|
|
18678
|
-
}, /*#__PURE__*/
|
|
18675
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
18679
18676
|
size: "small",
|
|
18680
18677
|
icon: icon
|
|
18681
18678
|
}));
|
|
@@ -18773,13 +18770,13 @@ var EditorToolbar = function EditorToolbar(_ref2) {
|
|
|
18773
18770
|
var toolbarButtons = React.useMemo(function () {
|
|
18774
18771
|
return toolbarButtonArray.map(function (button) {
|
|
18775
18772
|
if (button.buttonName === '|') {
|
|
18776
|
-
return /*#__PURE__*/
|
|
18773
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledSeparator, {
|
|
18777
18774
|
key: button.id
|
|
18778
18775
|
});
|
|
18779
18776
|
}
|
|
18780
18777
|
var config = buttonConfigs[button.buttonName];
|
|
18781
18778
|
if (config) {
|
|
18782
|
-
return /*#__PURE__*/
|
|
18779
|
+
return /*#__PURE__*/React__namespace.default.createElement(ToolbarButton, {
|
|
18783
18780
|
key: button.id,
|
|
18784
18781
|
testID: config.icon,
|
|
18785
18782
|
icon: config.icon,
|
|
@@ -18794,7 +18791,7 @@ var EditorToolbar = function EditorToolbar(_ref2) {
|
|
|
18794
18791
|
});
|
|
18795
18792
|
}, [toolbarButtonArray]);
|
|
18796
18793
|
if (show) {
|
|
18797
|
-
return /*#__PURE__*/
|
|
18794
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledToolbar, {
|
|
18798
18795
|
testID: testID
|
|
18799
18796
|
}, toolbarButtons);
|
|
18800
18797
|
}
|
|
@@ -18833,7 +18830,7 @@ var MentionList = function MentionList(_ref) {
|
|
|
18833
18830
|
if (isEmptyString(search)) {
|
|
18834
18831
|
return null;
|
|
18835
18832
|
}
|
|
18836
|
-
return /*#__PURE__*/
|
|
18833
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.View, null, render(search, function (id, name) {
|
|
18837
18834
|
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {
|
|
18838
18835
|
highlighted: false
|
|
18839
18836
|
};
|
|
@@ -19122,7 +19119,7 @@ var scheduler_production_min = {};
|
|
|
19122
19119
|
scheduler.exports = scheduler_production_min;
|
|
19123
19120
|
}
|
|
19124
19121
|
|
|
19125
|
-
var aa =
|
|
19122
|
+
var aa = React__namespace.default,
|
|
19126
19123
|
ca = scheduler.exports;
|
|
19127
19124
|
function p(a) {
|
|
19128
19125
|
for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, c = 1; c < arguments.length; c++) b += "&args[]=" + encodeURIComponent(arguments[c]);
|
|
@@ -26265,7 +26262,7 @@ function checkDCE() {
|
|
|
26265
26262
|
|
|
26266
26263
|
(function (module, exports) {
|
|
26267
26264
|
!function (e, t) {
|
|
26268
|
-
module.exports = t(
|
|
26265
|
+
module.exports = t(React__namespace.default, reactDom.exports);
|
|
26269
26266
|
}(window, function (e, t) {
|
|
26270
26267
|
return function (e) {
|
|
26271
26268
|
var t = {};
|
|
@@ -35571,14 +35568,14 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
35571
35568
|
postMessage(webview.current, message);
|
|
35572
35569
|
}
|
|
35573
35570
|
};
|
|
35574
|
-
var _React$useState =
|
|
35571
|
+
var _React$useState = React__namespace.default.useState({
|
|
35575
35572
|
height: 0,
|
|
35576
35573
|
width: 0
|
|
35577
35574
|
}),
|
|
35578
35575
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
35579
35576
|
inputSize = _React$useState2[0],
|
|
35580
35577
|
setInputSize = _React$useState2[1];
|
|
35581
|
-
var _React$useState3 =
|
|
35578
|
+
var _React$useState3 = React__namespace.default.useState(0),
|
|
35582
35579
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
35583
35580
|
labelWidth = _React$useState4[0],
|
|
35584
35581
|
setLabelWidth = _React$useState4[1];
|
|
@@ -35693,9 +35690,9 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
35693
35690
|
break;
|
|
35694
35691
|
}
|
|
35695
35692
|
}, []);
|
|
35696
|
-
return /*#__PURE__*/
|
|
35693
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$4, {
|
|
35697
35694
|
testID: testID
|
|
35698
|
-
}, /*#__PURE__*/
|
|
35695
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledLabelContainerInsideTextInput, {
|
|
35699
35696
|
themeVariant: "text",
|
|
35700
35697
|
pointerEvents: "none",
|
|
35701
35698
|
testID: "input-label-container",
|
|
@@ -35719,28 +35716,28 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
35719
35716
|
})
|
|
35720
35717
|
}]
|
|
35721
35718
|
}]
|
|
35722
|
-
}, required && /*#__PURE__*/
|
|
35719
|
+
}, required && /*#__PURE__*/React__namespace.default.createElement(StyledAsteriskLabelInsideTextInput, {
|
|
35723
35720
|
style: {
|
|
35724
35721
|
backgroundColor: theme.__hd__.textInput.colors.labelBackground
|
|
35725
35722
|
},
|
|
35726
35723
|
themeState: state
|
|
35727
|
-
}, "*"), !!label && /*#__PURE__*/
|
|
35724
|
+
}, "*"), !!label && /*#__PURE__*/React__namespace.default.createElement(StyledLabelInsideTextInput, {
|
|
35728
35725
|
style: {
|
|
35729
35726
|
backgroundColor: theme.__hd__.textInput.colors.labelBackground
|
|
35730
35727
|
},
|
|
35731
35728
|
testID: "input-label",
|
|
35732
35729
|
themeState: state,
|
|
35733
35730
|
onLayout: onLabelLayout
|
|
35734
|
-
}, label)), /*#__PURE__*/
|
|
35731
|
+
}, label)), /*#__PURE__*/React__namespace.default.createElement(StyledTextInputContainer, {
|
|
35735
35732
|
onLayout: onLayout
|
|
35736
|
-
}, /*#__PURE__*/
|
|
35733
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledBorderBackDrop, {
|
|
35737
35734
|
themeState: state,
|
|
35738
35735
|
themeFocused: isFocused
|
|
35739
|
-
}), /*#__PURE__*/
|
|
35736
|
+
}), /*#__PURE__*/React__namespace.default.createElement(StyledTextInputAndLabelContainer, null, /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableWithoutFeedback, {
|
|
35740
35737
|
onPress: function onPress(e) {
|
|
35741
35738
|
return e.stopPropagation();
|
|
35742
35739
|
}
|
|
35743
|
-
}, /*#__PURE__*/
|
|
35740
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledWebView, {
|
|
35744
35741
|
ref: webview,
|
|
35745
35742
|
testID: "webview",
|
|
35746
35743
|
style: style,
|
|
@@ -35753,17 +35750,17 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
35753
35750
|
hideKeyboardAccessoryView: true,
|
|
35754
35751
|
keyboardDisplayRequiresUserAction: false,
|
|
35755
35752
|
height: webviewHeight
|
|
35756
|
-
})))), /*#__PURE__*/
|
|
35753
|
+
})))), /*#__PURE__*/React__namespace.default.createElement(StyledErrorAndHelpTextContainer, null, /*#__PURE__*/React__namespace.default.createElement(StyledErrorAndMaxLengthContainer, null, error ? /*#__PURE__*/React__namespace.default.createElement(StyledErrorContainer$2, null, /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
35757
35754
|
testID: "input-error-icon",
|
|
35758
35755
|
icon: "circle-info",
|
|
35759
35756
|
size: "xsmall",
|
|
35760
35757
|
intent: "danger"
|
|
35761
|
-
}), /*#__PURE__*/
|
|
35758
|
+
}), /*#__PURE__*/React__namespace.default.createElement(StyledError, {
|
|
35762
35759
|
testID: "input-error-message"
|
|
35763
|
-
}, error)) : !!helpText && /*#__PURE__*/
|
|
35760
|
+
}, error)) : !!helpText && /*#__PURE__*/React__namespace.default.createElement(StyledHelperText, null, helpText))));
|
|
35764
35761
|
};
|
|
35765
35762
|
var RichTextEditorWithRef = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
35766
|
-
return /*#__PURE__*/
|
|
35763
|
+
return /*#__PURE__*/React__namespace.default.createElement(RichTextEditor, _extends$1({}, props, {
|
|
35767
35764
|
forwardedRef: ref
|
|
35768
35765
|
}));
|
|
35769
35766
|
});
|
|
@@ -35795,18 +35792,18 @@ var AnimatedFAB = function AnimatedFAB(_ref) {
|
|
|
35795
35792
|
contentHeight = _ref.contentHeight,
|
|
35796
35793
|
layoutHeight = _ref.layoutHeight;
|
|
35797
35794
|
var component = 'items' in fabProps ? 'ActionGroup' : 'FAB';
|
|
35798
|
-
var ref =
|
|
35799
|
-
var currentContentHeight =
|
|
35800
|
-
var currentLayoutHeight =
|
|
35795
|
+
var ref = React__namespace.default.useRef(null);
|
|
35796
|
+
var currentContentHeight = React__namespace.default.useRef(0);
|
|
35797
|
+
var currentLayoutHeight = React__namespace.default.useRef(0);
|
|
35801
35798
|
/** fabState is used to avoid calling duplicated animations. */
|
|
35802
|
-
var fabState =
|
|
35799
|
+
var fabState = React__namespace.default.useRef('show');
|
|
35803
35800
|
/** remainingScrollOffset determines whether to animate the FAB. */
|
|
35804
|
-
var remainingScrollOffset =
|
|
35801
|
+
var remainingScrollOffset = React__namespace.default.useRef(MAX_ANIMATABLE_SCROLL_DISTANCE);
|
|
35805
35802
|
/** currentScrollDirection is used to determine the scroll direction. */
|
|
35806
|
-
var currentScrollDirection =
|
|
35803
|
+
var currentScrollDirection = React__namespace.default.useRef('down');
|
|
35807
35804
|
/** lastScrollY is the scrollY from the preview scroll event. */
|
|
35808
|
-
var lastScrollY =
|
|
35809
|
-
var animateFab =
|
|
35805
|
+
var lastScrollY = React__namespace.default.useRef(0);
|
|
35806
|
+
var animateFab = React__namespace.default.useCallback(function (newState) {
|
|
35810
35807
|
if (fabState.current !== newState) {
|
|
35811
35808
|
if (newState === 'show') {
|
|
35812
35809
|
var _ref$current;
|
|
@@ -35821,7 +35818,7 @@ var AnimatedFAB = function AnimatedFAB(_ref) {
|
|
|
35821
35818
|
fabState.current = newState;
|
|
35822
35819
|
}
|
|
35823
35820
|
}, [component]);
|
|
35824
|
-
|
|
35821
|
+
React__namespace.default.useEffect(function () {
|
|
35825
35822
|
contentHeight.addListener(function (_ref2) {
|
|
35826
35823
|
var value = _ref2.value;
|
|
35827
35824
|
if (value > 0 && value !== currentContentHeight.current) {
|
|
@@ -35876,9 +35873,9 @@ var AnimatedFAB = function AnimatedFAB(_ref) {
|
|
|
35876
35873
|
layoutHeight.removeAllListeners();
|
|
35877
35874
|
};
|
|
35878
35875
|
}, [contentHeight, contentOffsetY, layoutHeight]);
|
|
35879
|
-
return component === 'FAB' ? /*#__PURE__*/
|
|
35876
|
+
return component === 'FAB' ? /*#__PURE__*/React__namespace.default.createElement(FAB, _extends$1({
|
|
35880
35877
|
ref: ref
|
|
35881
|
-
}, fabProps)) : /*#__PURE__*/
|
|
35878
|
+
}, fabProps)) : /*#__PURE__*/React__namespace.default.createElement(ActionGroup, _extends$1({
|
|
35882
35879
|
ref: ref
|
|
35883
35880
|
}, fabProps));
|
|
35884
35881
|
};
|
|
@@ -35886,14 +35883,14 @@ var AnimatedFAB = function AnimatedFAB(_ref) {
|
|
|
35886
35883
|
function AnimatedScroller(_ref) {
|
|
35887
35884
|
var ScrollComponent = _ref.ScrollComponent,
|
|
35888
35885
|
fabProps = _ref.fabProps;
|
|
35889
|
-
var contentOffsetY =
|
|
35890
|
-
var contentHeight =
|
|
35891
|
-
var layoutHeight =
|
|
35886
|
+
var contentOffsetY = React__namespace.default.useRef(new reactNative.Animated.Value(0)).current;
|
|
35887
|
+
var contentHeight = React__namespace.default.useRef(new reactNative.Animated.Value(0)).current;
|
|
35888
|
+
var layoutHeight = React__namespace.default.useRef(new reactNative.Animated.Value(0)).current;
|
|
35892
35889
|
// Common props for all ScrollView, FlatList and SectionList.
|
|
35893
35890
|
var _ScrollComponent$prop = ScrollComponent.props,
|
|
35894
35891
|
onScroll = _ScrollComponent$prop.onScroll,
|
|
35895
35892
|
scrollEventThrottle = _ScrollComponent$prop.scrollEventThrottle;
|
|
35896
|
-
return /*#__PURE__*/
|
|
35893
|
+
return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, /*#__PURE__*/React__namespace.default.cloneElement(ScrollComponent, _objectSpread2(_objectSpread2({}, ScrollComponent.props), {}, {
|
|
35897
35894
|
scrollEventThrottle: scrollEventThrottle || 100,
|
|
35898
35895
|
onScroll: reactNative.Animated.event([{
|
|
35899
35896
|
nativeEvent: {
|
|
@@ -35911,7 +35908,7 @@ function AnimatedScroller(_ref) {
|
|
|
35911
35908
|
useNativeDriver: false,
|
|
35912
35909
|
listener: onScroll
|
|
35913
35910
|
})
|
|
35914
|
-
})), !!fabProps && /*#__PURE__*/
|
|
35911
|
+
})), !!fabProps && /*#__PURE__*/React__namespace.default.createElement(AnimatedFAB, {
|
|
35915
35912
|
fabProps: fabProps,
|
|
35916
35913
|
contentOffsetY: contentOffsetY,
|
|
35917
35914
|
contentHeight: contentHeight,
|
|
@@ -35923,8 +35920,8 @@ var _excluded$2 = ["fabProps"];
|
|
|
35923
35920
|
var ScrollViewWithFAB = function ScrollViewWithFAB(_ref) {
|
|
35924
35921
|
var fabProps = _ref.fabProps,
|
|
35925
35922
|
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
35926
|
-
return /*#__PURE__*/
|
|
35927
|
-
ScrollComponent: /*#__PURE__*/
|
|
35923
|
+
return /*#__PURE__*/React__namespace.default.createElement(AnimatedScroller, {
|
|
35924
|
+
ScrollComponent: /*#__PURE__*/React__namespace.default.createElement(reactNative.ScrollView, props),
|
|
35928
35925
|
fabProps: fabProps
|
|
35929
35926
|
});
|
|
35930
35927
|
};
|
|
@@ -35933,8 +35930,8 @@ var _excluded$1 = ["fabProps"];
|
|
|
35933
35930
|
function FlatListWithFAB(_ref) {
|
|
35934
35931
|
var fabProps = _ref.fabProps,
|
|
35935
35932
|
props = _objectWithoutProperties(_ref, _excluded$1);
|
|
35936
|
-
return /*#__PURE__*/
|
|
35937
|
-
ScrollComponent: /*#__PURE__*/
|
|
35933
|
+
return /*#__PURE__*/React__namespace.default.createElement(AnimatedScroller, {
|
|
35934
|
+
ScrollComponent: /*#__PURE__*/React__namespace.default.createElement(reactNative.FlatList, props),
|
|
35938
35935
|
fabProps: fabProps
|
|
35939
35936
|
});
|
|
35940
35937
|
}
|
|
@@ -35943,8 +35940,8 @@ var _excluded = ["fabProps"];
|
|
|
35943
35940
|
function SectionListWithFAB(_ref) {
|
|
35944
35941
|
var fabProps = _ref.fabProps,
|
|
35945
35942
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
35946
|
-
return /*#__PURE__*/
|
|
35947
|
-
ScrollComponent: /*#__PURE__*/
|
|
35943
|
+
return /*#__PURE__*/React__namespace.default.createElement(AnimatedScroller, {
|
|
35944
|
+
ScrollComponent: /*#__PURE__*/React__namespace.default.createElement(reactNative.SectionList, props),
|
|
35948
35945
|
fabProps: fabProps
|
|
35949
35946
|
});
|
|
35950
35947
|
}
|