@hero-design/rn 8.64.2 → 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/CHANGELOG.md +7 -0
- package/es/index.js +14 -0
- package/lib/index.js +551 -540
- package/package.json +3 -3
- package/{rollup.config.js → rollup.config.mjs} +3 -1
- package/stats/8.64.3/rn-stats.html +4842 -0
- 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"];
|
|
@@ -1362,6 +1359,7 @@ var palette$b = {
|
|
|
1362
1359
|
dodgerBlue: ultramarineBlue$2.base,
|
|
1363
1360
|
dodgerBlueDark15: ultramarineBlue$2.darken15,
|
|
1364
1361
|
dodgerBlueDark30: ultramarineBlue$2.darken30,
|
|
1362
|
+
dodgerBlueDark60: ultramarineBlue$2.darken60,
|
|
1365
1363
|
dodgerBlueLight30: ultramarineBlue$2.lighten30,
|
|
1366
1364
|
dodgerBlueLight45: ultramarineBlue$2.lighten45,
|
|
1367
1365
|
dodgerBlueLight60: ultramarineBlue$2.lighten60,
|
|
@@ -1370,8 +1368,10 @@ var palette$b = {
|
|
|
1370
1368
|
green: green$1.base,
|
|
1371
1369
|
greenDark15: green$1.darken15,
|
|
1372
1370
|
greenDark30: green$1.darken30,
|
|
1371
|
+
greenDark60: green$1.darken60,
|
|
1373
1372
|
greenDark75: green$1.darken75,
|
|
1374
1373
|
greenLight30: green$1.lighten30,
|
|
1374
|
+
greenLight45: green$1.lighten45,
|
|
1375
1375
|
greenLight75: green$1.lighten75,
|
|
1376
1376
|
greenLight90: green$1.lighten90,
|
|
1377
1377
|
grey: grey$2.base,
|
|
@@ -1380,6 +1380,7 @@ var palette$b = {
|
|
|
1380
1380
|
greyDark45: grey$2.darken45,
|
|
1381
1381
|
greyDark60: grey$2.darken60,
|
|
1382
1382
|
greyDark75: grey$2.darken75,
|
|
1383
|
+
greyLight30: grey$2.lighten30,
|
|
1383
1384
|
greyLight45: grey$2.lighten45,
|
|
1384
1385
|
greyLight60: grey$2.lighten60,
|
|
1385
1386
|
greyLight75: grey$2.lighten75,
|
|
@@ -1389,21 +1390,26 @@ var palette$b = {
|
|
|
1389
1390
|
grotesqueGreen: grotesqueGreen.base,
|
|
1390
1391
|
grotesqueGreenDark30: grotesqueGreen.darken30,
|
|
1391
1392
|
grotesqueGreenDark45: grotesqueGreen.darken45,
|
|
1393
|
+
grotesqueGreenDark60: grotesqueGreen.darken60,
|
|
1392
1394
|
grotesqueGreenLight30: grotesqueGreen.lighten30,
|
|
1395
|
+
grotesqueGreenLight45: grotesqueGreen.lighten45,
|
|
1393
1396
|
grotesqueGreenLight60: grotesqueGreen.lighten60,
|
|
1394
1397
|
grotesqueGreenLight75: grotesqueGreen.lighten75,
|
|
1395
1398
|
grotesqueGreenLight90: grotesqueGreen.lighten90,
|
|
1396
1399
|
orange: deepSaffron$2.base,
|
|
1397
1400
|
orangeDark15: deepSaffron$2.darken15,
|
|
1398
1401
|
orangeDark30: deepSaffron$2.darken30,
|
|
1402
|
+
orangeDark60: deepSaffron$2.darken60,
|
|
1399
1403
|
orangeDark75: deepSaffron$2.darken75,
|
|
1400
1404
|
orangeLight30: deepSaffron$2.lighten30,
|
|
1405
|
+
orangeLight45: deepSaffron$2.lighten45,
|
|
1401
1406
|
orangeLight75: deepSaffron$2.lighten75,
|
|
1402
1407
|
orangeLight90: deepSaffron$2.lighten90,
|
|
1403
1408
|
pink: pink$1.base,
|
|
1404
1409
|
pinkDark15: pink$1.darken15,
|
|
1405
1410
|
pinkDark30: pink$1.darken30,
|
|
1406
1411
|
pinkDark45: pink$1.darken45,
|
|
1412
|
+
pinkDark60: pink$1.darken60,
|
|
1407
1413
|
pinkDark75: pink$1.darken75,
|
|
1408
1414
|
pinkLight30: pink$1.lighten30,
|
|
1409
1415
|
pinkLight45: pink$1.lighten45,
|
|
@@ -1412,7 +1418,10 @@ var palette$b = {
|
|
|
1412
1418
|
purple: purple$1.base,
|
|
1413
1419
|
purpleDark15: purple$1.darken15,
|
|
1414
1420
|
purpleDark30: purple$1.darken30,
|
|
1421
|
+
purpleDark60: purple$1.darken60,
|
|
1415
1422
|
purpleLight30: purple$1.lighten30,
|
|
1423
|
+
purpleLight45: purple$1.lighten45,
|
|
1424
|
+
purpleLight75: purple$1.lighten75,
|
|
1416
1425
|
red: vermilion$2.base,
|
|
1417
1426
|
redDark15: vermilion$2.darken15,
|
|
1418
1427
|
redDark30: vermilion$2.darken30,
|
|
@@ -1428,6 +1437,7 @@ var palette$b = {
|
|
|
1428
1437
|
redLight90: vermilion$2.lighten90,
|
|
1429
1438
|
smalt: smalt.base,
|
|
1430
1439
|
smaltDark30: smalt.darken30,
|
|
1440
|
+
smaltDark60: smalt.darken60,
|
|
1431
1441
|
smaltDark75: smalt.darken75,
|
|
1432
1442
|
smaltLight30: smalt.lighten30,
|
|
1433
1443
|
smaltLight45: smalt.lighten45,
|
|
@@ -1449,6 +1459,7 @@ var palette$b = {
|
|
|
1449
1459
|
yellow: yellow$1.base,
|
|
1450
1460
|
yellowDark15: yellow$1.darken15,
|
|
1451
1461
|
yellowDark30: yellow$1.darken30,
|
|
1462
|
+
yellowDark60: yellow$1.darken60,
|
|
1452
1463
|
yellowDark75: yellow$1.darken75,
|
|
1453
1464
|
yellowLight30: yellow$1.lighten30,
|
|
1454
1465
|
yellowLight45: yellow$1.lighten45,
|
|
@@ -4932,15 +4943,15 @@ var ThemeSwitcher = function ThemeSwitcher(_ref) {
|
|
|
4932
4943
|
return getTheme$1(scale$1, swagDarkSystemPalette);
|
|
4933
4944
|
}
|
|
4934
4945
|
}, [name]);
|
|
4935
|
-
return /*#__PURE__*/
|
|
4946
|
+
return /*#__PURE__*/React__namespace.default.createElement(ThemeProvider, {
|
|
4936
4947
|
theme: theme
|
|
4937
4948
|
}, children);
|
|
4938
4949
|
};
|
|
4939
4950
|
var withTheme = function withTheme(C, themeName) {
|
|
4940
4951
|
return function (props) {
|
|
4941
|
-
return /*#__PURE__*/
|
|
4952
|
+
return /*#__PURE__*/React__namespace.default.createElement(ThemeSwitcher, {
|
|
4942
4953
|
name: themeName
|
|
4943
|
-
}, /*#__PURE__*/
|
|
4954
|
+
}, /*#__PURE__*/React__namespace.default.createElement(C, props));
|
|
4944
4955
|
};
|
|
4945
4956
|
};
|
|
4946
4957
|
|
|
@@ -6624,14 +6635,14 @@ var index$9 = components.reduce(function (acc, comp) {
|
|
|
6624
6635
|
|
|
6625
6636
|
// Get previous state value
|
|
6626
6637
|
var usePrevious = function usePrevious(value) {
|
|
6627
|
-
var ref =
|
|
6628
|
-
|
|
6638
|
+
var ref = React__namespace.default.useRef();
|
|
6639
|
+
React__namespace.default.useEffect(function () {
|
|
6629
6640
|
ref.current = value;
|
|
6630
6641
|
}, [value]);
|
|
6631
6642
|
return ref.current;
|
|
6632
6643
|
};
|
|
6633
6644
|
function usePropsOrInternalState(initialState, state, setState) {
|
|
6634
|
-
var _React$useState =
|
|
6645
|
+
var _React$useState = React__namespace.default.useState(initialState),
|
|
6635
6646
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
6636
6647
|
internalState = _React$useState2[0],
|
|
6637
6648
|
setInternalState = _React$useState2[1];
|
|
@@ -6679,11 +6690,11 @@ var Collapse = function Collapse(_ref) {
|
|
|
6679
6690
|
testID = _ref.testID,
|
|
6680
6691
|
style = _ref.style,
|
|
6681
6692
|
onLayout = _ref.onLayout;
|
|
6682
|
-
var _React$useState =
|
|
6693
|
+
var _React$useState = React__namespace.default.useState(0),
|
|
6683
6694
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
6684
6695
|
contentHeight = _React$useState2[0],
|
|
6685
6696
|
setContentHeight = _React$useState2[1];
|
|
6686
|
-
var _React$useState3 =
|
|
6697
|
+
var _React$useState3 = React__namespace.default.useState(false),
|
|
6687
6698
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
6688
6699
|
componentMounted = _React$useState4[0],
|
|
6689
6700
|
setComponentMounted = _React$useState4[1];
|
|
@@ -6701,13 +6712,13 @@ var Collapse = function Collapse(_ref) {
|
|
|
6701
6712
|
setComponentMounted(true);
|
|
6702
6713
|
onLayout === null || onLayout === void 0 || onLayout(e);
|
|
6703
6714
|
}, []);
|
|
6704
|
-
return /*#__PURE__*/
|
|
6715
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledWrapper$d, {
|
|
6705
6716
|
style: {
|
|
6706
6717
|
height: open ? contentHeight : 0
|
|
6707
6718
|
},
|
|
6708
6719
|
onLayout: onCollapseLayout,
|
|
6709
6720
|
testID: testID
|
|
6710
|
-
}, /*#__PURE__*/
|
|
6721
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledHiddenWrapper, null, /*#__PURE__*/React__namespace.default.createElement(StyledChildWrapper, {
|
|
6711
6722
|
onLayout: function onLayout(event) {
|
|
6712
6723
|
return fetchMaxHeight(event.nativeEvent.layout);
|
|
6713
6724
|
},
|
|
@@ -6783,7 +6794,7 @@ var Text = function Text(_ref) {
|
|
|
6783
6794
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
6784
6795
|
nativeProps = _objectWithoutProperties(_ref, _excluded$D);
|
|
6785
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.');
|
|
6786
|
-
return /*#__PURE__*/
|
|
6797
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledText$3, _extends$1({}, nativeProps, {
|
|
6787
6798
|
themeFontSize: fontSize,
|
|
6788
6799
|
themeFontWeight: fontWeight,
|
|
6789
6800
|
themeIntent: intent,
|
|
@@ -6821,7 +6832,7 @@ var Caption = function Caption(_ref) {
|
|
|
6821
6832
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
6822
6833
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
6823
6834
|
nativeProps = _objectWithoutProperties(_ref, _excluded$C);
|
|
6824
|
-
return /*#__PURE__*/
|
|
6835
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledCaption, _extends$1({}, nativeProps, {
|
|
6825
6836
|
themeFontWeight: fontWeight,
|
|
6826
6837
|
themeIntent: intent,
|
|
6827
6838
|
allowFontScaling: allowFontScaling
|
|
@@ -6847,7 +6858,7 @@ var Label = function Label(_ref) {
|
|
|
6847
6858
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
6848
6859
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
6849
6860
|
nativeProps = _objectWithoutProperties(_ref, _excluded$B);
|
|
6850
|
-
return /*#__PURE__*/
|
|
6861
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledLabel$1, _extends$1({}, nativeProps, {
|
|
6851
6862
|
themeIntent: intent,
|
|
6852
6863
|
allowFontScaling: allowFontScaling
|
|
6853
6864
|
}), children);
|
|
@@ -6879,7 +6890,7 @@ var Title = function Title(_ref) {
|
|
|
6879
6890
|
_ref$typeface = _ref.typeface,
|
|
6880
6891
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
6881
6892
|
nativeProps = _objectWithoutProperties(_ref, _excluded$A);
|
|
6882
|
-
return /*#__PURE__*/
|
|
6893
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledTitle$1, _extends$1({}, nativeProps, {
|
|
6883
6894
|
themeLevel: level,
|
|
6884
6895
|
themeTypeface: typeface,
|
|
6885
6896
|
themeIntent: intent,
|
|
@@ -6925,7 +6936,7 @@ var Body = function Body(_ref) {
|
|
|
6925
6936
|
_ref$variant = _ref.variant,
|
|
6926
6937
|
variant = _ref$variant === void 0 ? 'regular' : _ref$variant,
|
|
6927
6938
|
nativeProps = _objectWithoutProperties(_ref, _excluded$z);
|
|
6928
|
-
return /*#__PURE__*/
|
|
6939
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledBody, _extends$1({}, nativeProps, {
|
|
6929
6940
|
themeTypeface: typeface,
|
|
6930
6941
|
themeIntent: intent,
|
|
6931
6942
|
themeVariant: variant,
|
|
@@ -7512,13 +7523,13 @@ var AnimatedIcon = function AnimatedIcon(_ref) {
|
|
|
7512
7523
|
inputRange: [0, 1],
|
|
7513
7524
|
outputRange: ['0deg', '360deg']
|
|
7514
7525
|
});
|
|
7515
|
-
return /*#__PURE__*/
|
|
7526
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.Animated.View, {
|
|
7516
7527
|
style: [{
|
|
7517
7528
|
transform: [{
|
|
7518
7529
|
rotate: interpolatedRotateAnimation
|
|
7519
7530
|
}]
|
|
7520
7531
|
}, style]
|
|
7521
|
-
}, /*#__PURE__*/
|
|
7532
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledHeroIcon, otherProps));
|
|
7522
7533
|
};
|
|
7523
7534
|
|
|
7524
7535
|
var Icon = function Icon(_ref) {
|
|
@@ -7556,13 +7567,13 @@ var Icon = function Icon(_ref) {
|
|
|
7556
7567
|
accessibilityViewIsModal: accessibilityViewIsModal,
|
|
7557
7568
|
accessibilityActions: accessibilityActions
|
|
7558
7569
|
};
|
|
7559
|
-
return spin ? /*#__PURE__*/
|
|
7570
|
+
return spin ? /*#__PURE__*/React__namespace.default.createElement(AnimatedIcon, _extends$1({
|
|
7560
7571
|
name: icon,
|
|
7561
7572
|
themeIntent: intent,
|
|
7562
7573
|
themeSize: size,
|
|
7563
7574
|
style: style,
|
|
7564
7575
|
testID: testID
|
|
7565
|
-
}, accessibilityProps)) : /*#__PURE__*/
|
|
7576
|
+
}, accessibilityProps)) : /*#__PURE__*/React__namespace.default.createElement(StyledHeroIcon, _extends$1({
|
|
7566
7577
|
name: icon,
|
|
7567
7578
|
themeIntent: intent,
|
|
7568
7579
|
themeSize: size,
|
|
@@ -7582,19 +7593,19 @@ var AccordionItem = function AccordionItem(_ref) {
|
|
|
7582
7593
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
7583
7594
|
style = _ref.style,
|
|
7584
7595
|
testID = _ref.testID;
|
|
7585
|
-
return /*#__PURE__*/
|
|
7596
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledItemWrapper$1, {
|
|
7586
7597
|
themeVariant: variant,
|
|
7587
7598
|
style: style,
|
|
7588
7599
|
testID: testID
|
|
7589
|
-
}, /*#__PURE__*/
|
|
7600
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledHeaderWrapper$1, {
|
|
7590
7601
|
onPress: onPress
|
|
7591
|
-
}, typeof header === 'string' ? /*#__PURE__*/
|
|
7602
|
+
}, typeof header === 'string' ? /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
7592
7603
|
variant: "regular-bold"
|
|
7593
|
-
}, header) : header, /*#__PURE__*/
|
|
7604
|
+
}, header) : header, /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
7594
7605
|
icon: open ? 'arrow-up' : 'arrow-down',
|
|
7595
7606
|
intent: "secondary",
|
|
7596
7607
|
size: "small"
|
|
7597
|
-
})), /*#__PURE__*/
|
|
7608
|
+
})), /*#__PURE__*/React__namespace.default.createElement(StyledCollapse, {
|
|
7598
7609
|
open: open
|
|
7599
7610
|
}, content));
|
|
7600
7611
|
};
|
|
@@ -7615,18 +7626,18 @@ var Accordion = function Accordion(_ref) {
|
|
|
7615
7626
|
_usePropsOrInternalSt2 = _slicedToArray(_usePropsOrInternalSt, 2),
|
|
7616
7627
|
_activeItemKey = _usePropsOrInternalSt2[0],
|
|
7617
7628
|
_onItemPress = _usePropsOrInternalSt2[1];
|
|
7618
|
-
return /*#__PURE__*/
|
|
7629
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledWrapper$c, {
|
|
7619
7630
|
style: style,
|
|
7620
7631
|
testID: testID
|
|
7621
7632
|
}, items.map(function (_ref2, index) {
|
|
7622
7633
|
var key = _ref2.key,
|
|
7623
7634
|
props = _objectWithoutProperties(_ref2, _excluded$x);
|
|
7624
7635
|
var open = _activeItemKey === key;
|
|
7625
|
-
return /*#__PURE__*/
|
|
7636
|
+
return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, {
|
|
7626
7637
|
key: key
|
|
7627
|
-
}, variant === 'card' && index !== 0 && /*#__PURE__*/
|
|
7638
|
+
}, variant === 'card' && index !== 0 && /*#__PURE__*/React__namespace.default.createElement(Spacer$1, {
|
|
7628
7639
|
testID: "accordion-spacer"
|
|
7629
|
-
}), /*#__PURE__*/
|
|
7640
|
+
}), /*#__PURE__*/React__namespace.default.createElement(AccordionItem, _extends$1({}, props, {
|
|
7630
7641
|
open: open,
|
|
7631
7642
|
onPress: function onPress() {
|
|
7632
7643
|
return _onItemPress(open ? defaultValue : key);
|
|
@@ -7697,9 +7708,9 @@ var getIntentIcon$1 = function getIntentIcon(intent) {
|
|
|
7697
7708
|
};
|
|
7698
7709
|
var AlertIcon = function AlertIcon(_ref) {
|
|
7699
7710
|
var icon = _ref.icon;
|
|
7700
|
-
return icon ? /*#__PURE__*/
|
|
7711
|
+
return icon ? /*#__PURE__*/React__namespace.default.createElement(IconContainer$1, {
|
|
7701
7712
|
testID: "alert-left-icon"
|
|
7702
|
-
}, /*#__PURE__*/
|
|
7713
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
7703
7714
|
icon: icon,
|
|
7704
7715
|
size: "small"
|
|
7705
7716
|
})) : null;
|
|
@@ -7717,25 +7728,25 @@ var Alert = function Alert(_ref2) {
|
|
|
7717
7728
|
testID = _ref2.testID,
|
|
7718
7729
|
actionLabel = _ref2.actionLabel;
|
|
7719
7730
|
useDeprecation("Alert's notification intent is deprecated and will be removed in the next major release. Please use other intents instead.", intent === 'notification');
|
|
7720
|
-
return /*#__PURE__*/
|
|
7731
|
+
return /*#__PURE__*/React__namespace.default.createElement(Container$1, {
|
|
7721
7732
|
themeVariant: variant,
|
|
7722
7733
|
themeIntent: intent,
|
|
7723
7734
|
style: style,
|
|
7724
7735
|
testID: testID
|
|
7725
|
-
}, /*#__PURE__*/
|
|
7736
|
+
}, /*#__PURE__*/React__namespace.default.createElement(ContentContainer$1, {
|
|
7726
7737
|
showDivider: !!onClose
|
|
7727
|
-
}, icon !== null ? /*#__PURE__*/
|
|
7738
|
+
}, icon !== null ? /*#__PURE__*/React__namespace.default.createElement(AlertIcon, {
|
|
7728
7739
|
icon: icon || getIntentIcon$1(intent)
|
|
7729
|
-
}) : null, /*#__PURE__*/
|
|
7740
|
+
}) : null, /*#__PURE__*/React__namespace.default.createElement(TextContainer$1, null, typeof title === 'string' ? /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
7730
7741
|
variant: "small-bold"
|
|
7731
|
-
}, title) : title, typeof content === 'string' ? /*#__PURE__*/
|
|
7742
|
+
}, title) : title, typeof content === 'string' ? /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
7732
7743
|
variant: "small"
|
|
7733
|
-
}, content) : content)), onClose ? /*#__PURE__*/
|
|
7744
|
+
}, content) : content)), onClose ? /*#__PURE__*/React__namespace.default.createElement(CTAWrapper$1, {
|
|
7734
7745
|
onPress: onClose,
|
|
7735
7746
|
testID: "alert-close-icon"
|
|
7736
|
-
}, typeof actionLabel === 'string' ? /*#__PURE__*/
|
|
7747
|
+
}, typeof actionLabel === 'string' ? /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
7737
7748
|
variant: "small-bold"
|
|
7738
|
-
}, actionLabel) : /*#__PURE__*/
|
|
7749
|
+
}, actionLabel) : /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
7739
7750
|
icon: "cancel",
|
|
7740
7751
|
size: "small"
|
|
7741
7752
|
})) : null);
|
|
@@ -7783,26 +7794,26 @@ var Attachment = function Attachment(_ref) {
|
|
|
7783
7794
|
backgroundHighlighted = _ref$backgroundHighli === void 0 ? false : _ref$backgroundHighli,
|
|
7784
7795
|
style = _ref.style,
|
|
7785
7796
|
testID = _ref.testID;
|
|
7786
|
-
return /*#__PURE__*/
|
|
7797
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$6, {
|
|
7787
7798
|
testID: testID,
|
|
7788
7799
|
style: style
|
|
7789
|
-
}, /*#__PURE__*/
|
|
7800
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledContentContainer$1, {
|
|
7790
7801
|
themeHighlighted: backgroundHighlighted
|
|
7791
|
-
}, previewElement, filename ? /*#__PURE__*/
|
|
7802
|
+
}, previewElement, filename ? /*#__PURE__*/React__namespace.default.createElement(StyledTextContainer, {
|
|
7792
7803
|
testID: "attachment-content"
|
|
7793
|
-
}, /*#__PURE__*/
|
|
7804
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
7794
7805
|
variant: "small",
|
|
7795
7806
|
numberOfLines: 1
|
|
7796
|
-
}, filename)) : null), onDownload ? /*#__PURE__*/
|
|
7807
|
+
}, filename)) : null), onDownload ? /*#__PURE__*/React__namespace.default.createElement(StyledCTAWrapper, {
|
|
7797
7808
|
onPress: onDownload,
|
|
7798
7809
|
testID: "attachment-download-icon"
|
|
7799
|
-
}, /*#__PURE__*/
|
|
7810
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
7800
7811
|
icon: "download-outlined",
|
|
7801
7812
|
size: "small"
|
|
7802
|
-
})) : null, onRemove ? /*#__PURE__*/
|
|
7813
|
+
})) : null, onRemove ? /*#__PURE__*/React__namespace.default.createElement(StyledCTAWrapper, {
|
|
7803
7814
|
onPress: onRemove,
|
|
7804
7815
|
testID: "attachment-remove-icon"
|
|
7805
|
-
}, /*#__PURE__*/
|
|
7816
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
7806
7817
|
icon: "trash-bin-outlined",
|
|
7807
7818
|
size: "small",
|
|
7808
7819
|
intent: "danger"
|
|
@@ -7878,16 +7889,16 @@ var Avatar = function Avatar(_ref) {
|
|
|
7878
7889
|
hasImageError = _useState2[0],
|
|
7879
7890
|
setHasImageError = _useState2[1];
|
|
7880
7891
|
if (title === undefined && source === undefined) return null;
|
|
7881
|
-
return /*#__PURE__*/
|
|
7892
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledWrapper$b, {
|
|
7882
7893
|
testID: testID,
|
|
7883
7894
|
onPress: onPress,
|
|
7884
7895
|
disabled: onPress === undefined,
|
|
7885
7896
|
themeIntent: intent,
|
|
7886
7897
|
themeSize: size,
|
|
7887
7898
|
style: style
|
|
7888
|
-
}, (source === undefined || hasImageError) && /*#__PURE__*/
|
|
7899
|
+
}, (source === undefined || hasImageError) && /*#__PURE__*/React__namespace.default.createElement(StyledTextWrapper$1, null, /*#__PURE__*/React__namespace.default.createElement(StyledText$2, {
|
|
7889
7900
|
themeSize: size
|
|
7890
|
-
}, title)), source !== undefined && /*#__PURE__*/
|
|
7901
|
+
}, title)), source !== undefined && /*#__PURE__*/React__namespace.default.createElement(StyledImage, {
|
|
7891
7902
|
resizeMode: "cover",
|
|
7892
7903
|
source: source,
|
|
7893
7904
|
themeSize: size,
|
|
@@ -8132,7 +8143,7 @@ var Box = function Box(_ref) {
|
|
|
8132
8143
|
style = _ref.style,
|
|
8133
8144
|
testID = _ref.testID,
|
|
8134
8145
|
otherProps = _objectWithoutProperties(_ref, _excluded$v);
|
|
8135
|
-
return /*#__PURE__*/
|
|
8146
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledBox, _extends$1({}, otherProps, {
|
|
8136
8147
|
style: style,
|
|
8137
8148
|
testID: testID
|
|
8138
8149
|
}), children);
|
|
@@ -8231,7 +8242,7 @@ var Surplus = function Surplus(_ref) {
|
|
|
8231
8242
|
backgroundColor = _ref.backgroundColor;
|
|
8232
8243
|
if (value > 0) {
|
|
8233
8244
|
if (renderSurplus) {
|
|
8234
|
-
return /*#__PURE__*/
|
|
8245
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledSurplusContainer, {
|
|
8235
8246
|
testID: "surplus-container",
|
|
8236
8247
|
themeSize: size,
|
|
8237
8248
|
themeVariant: variant,
|
|
@@ -8241,7 +8252,7 @@ var Surplus = function Surplus(_ref) {
|
|
|
8241
8252
|
}
|
|
8242
8253
|
}, renderSurplus(value));
|
|
8243
8254
|
}
|
|
8244
|
-
return /*#__PURE__*/
|
|
8255
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledAvatar, {
|
|
8245
8256
|
testID: "surplus-container",
|
|
8246
8257
|
themeVariant: variant,
|
|
8247
8258
|
title: "+".concat(value),
|
|
@@ -8277,7 +8288,7 @@ var AvatarStack = function AvatarStack(_ref2) {
|
|
|
8277
8288
|
}
|
|
8278
8289
|
return remain;
|
|
8279
8290
|
}();
|
|
8280
|
-
return /*#__PURE__*/
|
|
8291
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledWrapper$a, {
|
|
8281
8292
|
themeSize: size,
|
|
8282
8293
|
themeAvatarCount: avatars.length,
|
|
8283
8294
|
themeHasSurplus: remainingAvatar > 0,
|
|
@@ -8285,7 +8296,7 @@ var AvatarStack = function AvatarStack(_ref2) {
|
|
|
8285
8296
|
testID: testID,
|
|
8286
8297
|
themeVariant: variant
|
|
8287
8298
|
}, avatars.map(function (avt, index) {
|
|
8288
|
-
return /*#__PURE__*/
|
|
8299
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledAvatar, _extends$1({
|
|
8289
8300
|
themeVariant: variant
|
|
8290
8301
|
}, avt.props, {
|
|
8291
8302
|
size: size,
|
|
@@ -8294,7 +8305,7 @@ var AvatarStack = function AvatarStack(_ref2) {
|
|
|
8294
8305
|
backgroundColor: colors[index % colors.length]
|
|
8295
8306
|
}
|
|
8296
8307
|
}));
|
|
8297
|
-
}), /*#__PURE__*/
|
|
8308
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Surplus, {
|
|
8298
8309
|
value: remainingAvatar,
|
|
8299
8310
|
index: avatars.length,
|
|
8300
8311
|
size: size,
|
|
@@ -8355,10 +8366,10 @@ var Status = function Status(_ref) {
|
|
|
8355
8366
|
style = _ref.style,
|
|
8356
8367
|
testID = _ref.testID,
|
|
8357
8368
|
nativeProps = _objectWithoutProperties(_ref, _excluded$u);
|
|
8358
|
-
var _React$useRef =
|
|
8369
|
+
var _React$useRef = React__namespace.default.useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
|
|
8359
8370
|
opacity = _React$useRef.current;
|
|
8360
|
-
var isFirstRendering =
|
|
8361
|
-
|
|
8371
|
+
var isFirstRendering = React__namespace.default.useRef(true);
|
|
8372
|
+
React__namespace.default.useEffect(function () {
|
|
8362
8373
|
// Do not run animation on very first rendering
|
|
8363
8374
|
if (isFirstRendering.current) {
|
|
8364
8375
|
isFirstRendering.current = false;
|
|
@@ -8370,10 +8381,10 @@ var Status = function Status(_ref) {
|
|
|
8370
8381
|
useNativeDriver: true
|
|
8371
8382
|
}).start();
|
|
8372
8383
|
}, [visible, opacity]);
|
|
8373
|
-
return /*#__PURE__*/
|
|
8384
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.View, _extends$1({}, nativeProps, {
|
|
8374
8385
|
style: style,
|
|
8375
8386
|
testID: testID
|
|
8376
|
-
}), children, /*#__PURE__*/
|
|
8387
|
+
}), children, /*#__PURE__*/React__namespace.default.createElement(StyledStatus, {
|
|
8377
8388
|
style: {
|
|
8378
8389
|
opacity: opacity,
|
|
8379
8390
|
transform: [{
|
|
@@ -8403,10 +8414,10 @@ var Badge = function Badge(_ref) {
|
|
|
8403
8414
|
style = _ref.style,
|
|
8404
8415
|
testID = _ref.testID,
|
|
8405
8416
|
nativeProps = _objectWithoutProperties(_ref, _excluded$t);
|
|
8406
|
-
var _React$useRef =
|
|
8417
|
+
var _React$useRef = React__namespace.default.useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
|
|
8407
8418
|
opacity = _React$useRef.current;
|
|
8408
|
-
var isFirstRendering =
|
|
8409
|
-
|
|
8419
|
+
var isFirstRendering = React__namespace.default.useRef(true);
|
|
8420
|
+
React__namespace.default.useEffect(function () {
|
|
8410
8421
|
// Do not run animation on very first rendering
|
|
8411
8422
|
if (isFirstRendering.current) {
|
|
8412
8423
|
isFirstRendering.current = false;
|
|
@@ -8419,7 +8430,7 @@ var Badge = function Badge(_ref) {
|
|
|
8419
8430
|
}).start();
|
|
8420
8431
|
}, [visible, opacity]);
|
|
8421
8432
|
var content = typeof originalContent === 'number' && originalContent > max ? "".concat(max, "+") : String(originalContent);
|
|
8422
|
-
return /*#__PURE__*/
|
|
8433
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledView$2, _extends$1({}, nativeProps, {
|
|
8423
8434
|
themeIntent: intent,
|
|
8424
8435
|
themePadding: getPaddingState(content),
|
|
8425
8436
|
style: [{
|
|
@@ -8432,7 +8443,7 @@ var Badge = function Badge(_ref) {
|
|
|
8432
8443
|
}]
|
|
8433
8444
|
}, style],
|
|
8434
8445
|
testID: testID
|
|
8435
|
-
}), /*#__PURE__*/
|
|
8446
|
+
}), /*#__PURE__*/React__namespace.default.createElement(StyledText$1, null, content));
|
|
8436
8447
|
};
|
|
8437
8448
|
var Badge$1 = Object.assign(Badge, {
|
|
8438
8449
|
Status: Status
|
|
@@ -8506,7 +8517,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
8506
8517
|
/**
|
|
8507
8518
|
* List of loaded tabs, tabs will be loaded when navigated to.
|
|
8508
8519
|
*/
|
|
8509
|
-
var _React$useState =
|
|
8520
|
+
var _React$useState = React__namespace.default.useState([selectedTabKey]),
|
|
8510
8521
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
8511
8522
|
loaded = _React$useState2[0],
|
|
8512
8523
|
setLoaded = _React$useState2[1];
|
|
@@ -8516,7 +8527,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
8516
8527
|
return [].concat(_toConsumableArray(loadedState), [selectedTabKey]);
|
|
8517
8528
|
});
|
|
8518
8529
|
}
|
|
8519
|
-
return /*#__PURE__*/
|
|
8530
|
+
return /*#__PURE__*/React__namespace.default.createElement(BottomNavigationContainer, nativeProps, /*#__PURE__*/React__namespace.default.createElement(ContentWrapper, null, tabs.map(function (tab) {
|
|
8520
8531
|
var key = tab.key,
|
|
8521
8532
|
component = tab.component,
|
|
8522
8533
|
testID = tab.testID;
|
|
@@ -8528,7 +8539,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
8528
8539
|
// Don't render a screen if we've never navigated to it
|
|
8529
8540
|
return null;
|
|
8530
8541
|
}
|
|
8531
|
-
return /*#__PURE__*/
|
|
8542
|
+
return /*#__PURE__*/React__namespace.default.createElement(BottomNavigationTab, {
|
|
8532
8543
|
key: key,
|
|
8533
8544
|
testID: testID ? "route-screen-".concat(testID) : undefined,
|
|
8534
8545
|
pointerEvents: active ? 'auto' : 'none',
|
|
@@ -8541,26 +8552,26 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
8541
8552
|
isIOS ? selectedTabKey !== key : true,
|
|
8542
8553
|
themeVisibility: active
|
|
8543
8554
|
}, component);
|
|
8544
|
-
})), /*#__PURE__*/
|
|
8555
|
+
})), /*#__PURE__*/React__namespace.default.createElement(BottomBarWrapper, {
|
|
8545
8556
|
themeInsets: insets
|
|
8546
|
-
}, /*#__PURE__*/
|
|
8557
|
+
}, /*#__PURE__*/React__namespace.default.createElement(BottomBar, null, tabs.map(function (tab) {
|
|
8547
8558
|
var key = tab.key,
|
|
8548
8559
|
icon = tab.icon,
|
|
8549
8560
|
title = tab.title,
|
|
8550
8561
|
testID = tab.testID;
|
|
8551
8562
|
var active = selectedTabKey === key;
|
|
8552
8563
|
var inactiveIcon = getInactiveIcon(icon);
|
|
8553
|
-
return /*#__PURE__*/
|
|
8564
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableWithoutFeedback, {
|
|
8554
8565
|
key: key,
|
|
8555
8566
|
onPress: function onPress() {
|
|
8556
8567
|
return onTabPress(key);
|
|
8557
8568
|
},
|
|
8558
8569
|
testID: testID
|
|
8559
|
-
}, /*#__PURE__*/
|
|
8570
|
+
}, /*#__PURE__*/React__namespace.default.createElement(BottomBarItem, null, /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
8560
8571
|
icon: active ? icon : inactiveIcon,
|
|
8561
8572
|
intent: active ? 'primary' : 'text',
|
|
8562
8573
|
testID: "hero-icon-".concat(icon)
|
|
8563
|
-
}), !!title && /*#__PURE__*/
|
|
8574
|
+
}), !!title && /*#__PURE__*/React__namespace.default.createElement(StyledBottomBarText, {
|
|
8564
8575
|
fontWeight: "semi-bold",
|
|
8565
8576
|
intent: active ? 'primary' : 'body',
|
|
8566
8577
|
numberOfLines: 1
|
|
@@ -8594,7 +8605,7 @@ var Divider = function Divider(_ref) {
|
|
|
8594
8605
|
style = _ref.style,
|
|
8595
8606
|
testID = _ref.testID,
|
|
8596
8607
|
nativeProps = _objectWithoutProperties(_ref, _excluded$r);
|
|
8597
|
-
return /*#__PURE__*/
|
|
8608
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledDivider, _extends$1({}, nativeProps, {
|
|
8598
8609
|
themeMarginHorizontal: marginHorizontal,
|
|
8599
8610
|
themeMarginVertical: marginVertical,
|
|
8600
8611
|
style: style,
|
|
@@ -8671,7 +8682,7 @@ var StyledIconWrapper$4 = index$9(reactNative.View)(function (_ref5) {
|
|
|
8671
8682
|
var Footer$1 = function Footer(_ref) {
|
|
8672
8683
|
var children = _ref.children,
|
|
8673
8684
|
showDivider = _ref.showDivider;
|
|
8674
|
-
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));
|
|
8675
8686
|
};
|
|
8676
8687
|
|
|
8677
8688
|
var genLoadingIndicatorStyles = function genLoadingIndicatorStyles(theme, intent) {
|
|
@@ -8730,14 +8741,14 @@ var renderDotComponent = function renderDotComponent(_ref) {
|
|
|
8730
8741
|
inputRange: [0.0, (index + 0.5) / (count + 1), (index + 1.0) / (count + 1), (index + 1.5) / (count + 1), 1.0],
|
|
8731
8742
|
outputRange: [1.0, 1.36, 1.56, 1.06, 1.0]
|
|
8732
8743
|
});
|
|
8733
|
-
return /*#__PURE__*/
|
|
8744
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.Animated.View, {
|
|
8734
8745
|
style: reactNative.StyleSheet.flatten([{
|
|
8735
8746
|
transform: [{
|
|
8736
8747
|
scale: interpolatedProgressAnimation
|
|
8737
8748
|
}]
|
|
8738
8749
|
}]),
|
|
8739
8750
|
key: index
|
|
8740
|
-
}, /*#__PURE__*/
|
|
8751
|
+
}, /*#__PURE__*/React__namespace.default.createElement(AnimatedLoadingDot, {
|
|
8741
8752
|
size: size,
|
|
8742
8753
|
themeVariant: themeVariant
|
|
8743
8754
|
}));
|
|
@@ -8775,7 +8786,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
|
|
|
8775
8786
|
}
|
|
8776
8787
|
return null;
|
|
8777
8788
|
};
|
|
8778
|
-
return /*#__PURE__*/
|
|
8789
|
+
return /*#__PURE__*/React__namespace.default.createElement(AnimatedLoadingIndicatorWrapper, _extends$1({
|
|
8779
8790
|
testID: testID
|
|
8780
8791
|
}, nativeProps), Array.from(new Array(count), renderLoadingDot, themeVariant));
|
|
8781
8792
|
};
|
|
@@ -9042,7 +9053,7 @@ var Button = function Button(_ref) {
|
|
|
9042
9053
|
return getUnderlayColor(theme, themeVariant);
|
|
9043
9054
|
}, [theme, themeVariant]);
|
|
9044
9055
|
useDeprecation("Button variant ".concat(deprecatedVariants.join(', '), " are deprecated."), deprecatedVariants.includes(themeVariant));
|
|
9045
|
-
return /*#__PURE__*/
|
|
9056
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledButtonContainer, {
|
|
9046
9057
|
accessibilityHint: accessibilityHint,
|
|
9047
9058
|
accessibilityLabel: accessibilityLabel,
|
|
9048
9059
|
disabled: disabled || loading,
|
|
@@ -9052,31 +9063,31 @@ var Button = function Button(_ref) {
|
|
|
9052
9063
|
themeButtonVariant: themeVariant,
|
|
9053
9064
|
style: style,
|
|
9054
9065
|
underlayColor: underlayColor
|
|
9055
|
-
}, loading === true ? /*#__PURE__*/
|
|
9066
|
+
}, loading === true ? /*#__PURE__*/React__namespace.default.createElement(LoadingIndicator, {
|
|
9056
9067
|
testID: "".concat(testID, "-loading-indicator"),
|
|
9057
9068
|
themeVariant: themeVariant
|
|
9058
|
-
}) : /*#__PURE__*/
|
|
9069
|
+
}) : /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, icon !== undefined && /*#__PURE__*/React__namespace.default.createElement(StyledButtonIconWrapper, {
|
|
9059
9070
|
themePosition: "left"
|
|
9060
|
-
}, isIconName(icon) ? /*#__PURE__*/
|
|
9071
|
+
}, isIconName(icon) ? /*#__PURE__*/React__namespace.default.createElement(StyledButtonIcon, {
|
|
9061
9072
|
disabled: disabled,
|
|
9062
9073
|
icon: icon,
|
|
9063
9074
|
testID: "".concat(testID, "-left-icon"),
|
|
9064
9075
|
themeButtonVariant: themeVariant
|
|
9065
|
-
}) : icon), isTextVariant(themeVariant) ? /*#__PURE__*/
|
|
9076
|
+
}) : icon), isTextVariant(themeVariant) ? /*#__PURE__*/React__namespace.default.createElement(StyledButtonTitleOfVariantText, {
|
|
9066
9077
|
variant: "regular-bold",
|
|
9067
9078
|
ellipsizeMode: "tail",
|
|
9068
9079
|
numberOfLines: 1,
|
|
9069
9080
|
disabled: disabled,
|
|
9070
9081
|
themeButtonVariant: themeVariant
|
|
9071
|
-
}, text) : /*#__PURE__*/
|
|
9082
|
+
}, text) : /*#__PURE__*/React__namespace.default.createElement(StyledButtonText, {
|
|
9072
9083
|
level: "h5",
|
|
9073
9084
|
ellipsizeMode: "tail",
|
|
9074
9085
|
numberOfLines: 1,
|
|
9075
9086
|
disabled: disabled,
|
|
9076
9087
|
themeButtonVariant: themeVariant
|
|
9077
|
-
}, text), rightIcon !== undefined && /*#__PURE__*/
|
|
9088
|
+
}, text), rightIcon !== undefined && /*#__PURE__*/React__namespace.default.createElement(StyledButtonIconWrapper, {
|
|
9078
9089
|
themePosition: "right"
|
|
9079
|
-
}, isIconName(rightIcon) ? /*#__PURE__*/
|
|
9090
|
+
}, isIconName(rightIcon) ? /*#__PURE__*/React__namespace.default.createElement(StyledButtonIcon, {
|
|
9080
9091
|
disabled: disabled,
|
|
9081
9092
|
icon: rightIcon,
|
|
9082
9093
|
testID: "".concat(testID, "-right-icon"),
|
|
@@ -9093,13 +9104,13 @@ var IconButton = function IconButton(_ref) {
|
|
|
9093
9104
|
style = _ref.style,
|
|
9094
9105
|
size = _ref.size,
|
|
9095
9106
|
intent = _ref.intent;
|
|
9096
|
-
return /*#__PURE__*/
|
|
9107
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
9097
9108
|
style: style,
|
|
9098
9109
|
onPress: onPress,
|
|
9099
9110
|
testID: testID,
|
|
9100
9111
|
hitSlop: hitSlop,
|
|
9101
9112
|
disabled: disabled
|
|
9102
|
-
}, /*#__PURE__*/
|
|
9113
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
9103
9114
|
icon: icon,
|
|
9104
9115
|
size: size,
|
|
9105
9116
|
intent: disabled ? 'disabled-text' : intent
|
|
@@ -9142,16 +9153,16 @@ var UtilityButton = function UtilityButton(_ref) {
|
|
|
9142
9153
|
intent = _ref$intent === void 0 ? 'text' : _ref$intent,
|
|
9143
9154
|
style = _ref.style,
|
|
9144
9155
|
hitSlop = _ref.hitSlop;
|
|
9145
|
-
return /*#__PURE__*/
|
|
9156
|
+
return /*#__PURE__*/React__namespace.default.createElement(ButtonContainer, {
|
|
9146
9157
|
style: style,
|
|
9147
9158
|
onPress: onPress,
|
|
9148
9159
|
testID: testID,
|
|
9149
9160
|
hitSlop: hitSlop
|
|
9150
|
-
}, /*#__PURE__*/
|
|
9161
|
+
}, /*#__PURE__*/React__namespace.default.createElement(IconWrapper, null, /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
9151
9162
|
icon: icon,
|
|
9152
9163
|
intent: intent,
|
|
9153
9164
|
testID: "".concat(testID, "-icon")
|
|
9154
|
-
})), /*#__PURE__*/
|
|
9165
|
+
})), /*#__PURE__*/React__namespace.default.createElement(ButtonText, {
|
|
9155
9166
|
intent: TEXT_INTENTS[intent]
|
|
9156
9167
|
}, text));
|
|
9157
9168
|
};
|
|
@@ -9169,19 +9180,19 @@ var Header = function Header(_ref) {
|
|
|
9169
9180
|
_ref$onRequestClose = _ref.onRequestClose,
|
|
9170
9181
|
onRequestClose = _ref$onRequestClose === void 0 ? noop$1 : _ref$onRequestClose,
|
|
9171
9182
|
showCloseButton = _ref.showCloseButton;
|
|
9172
|
-
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, {
|
|
9173
9184
|
variant: "regular-bold"
|
|
9174
|
-
}, content)) : /*#__PURE__*/
|
|
9185
|
+
}, content)) : /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
9175
9186
|
style: {
|
|
9176
9187
|
flex: 1
|
|
9177
9188
|
}
|
|
9178
|
-
}, content), showCloseButton ? /*#__PURE__*/
|
|
9189
|
+
}, content), showCloseButton ? /*#__PURE__*/React__namespace.default.createElement(StyledIconWrapper$4, null, /*#__PURE__*/React__namespace.default.createElement(CompoundButton.Icon, {
|
|
9179
9190
|
icon: "cancel",
|
|
9180
9191
|
onPress: onRequestClose,
|
|
9181
9192
|
intent: "text",
|
|
9182
9193
|
testID: "bottom-sheet-close-icon",
|
|
9183
9194
|
size: "xsmall"
|
|
9184
|
-
})) : null), showDivider ? /*#__PURE__*/
|
|
9195
|
+
})) : null), showDivider ? /*#__PURE__*/React__namespace.default.createElement(Divider, null) : null);
|
|
9185
9196
|
};
|
|
9186
9197
|
|
|
9187
9198
|
var _excluded$p = ["scrollEventThrottle"];
|
|
@@ -9206,7 +9217,7 @@ var BottomSheetScrollView = function BottomSheetScrollView(_ref) {
|
|
|
9206
9217
|
setInternalShowDivider(false);
|
|
9207
9218
|
props === null || props === void 0 || (_props$onMomentumScro2 = props.onMomentumScrollEnd) === null || _props$onMomentumScro2 === void 0 || _props$onMomentumScro2.call(props, e);
|
|
9208
9219
|
}, []);
|
|
9209
|
-
return /*#__PURE__*/
|
|
9220
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.ScrollView, _extends$1({}, props, {
|
|
9210
9221
|
onScrollBeginDrag: onScrollBeginDrag,
|
|
9211
9222
|
onMomentumScrollBegin: onMomentumScrollBegin,
|
|
9212
9223
|
onMomentumScrollEnd: onMomentumScrollEnd,
|
|
@@ -9292,23 +9303,23 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
9292
9303
|
setInternalShowDivider: setInternalShowDivider
|
|
9293
9304
|
};
|
|
9294
9305
|
}, [setInternalShowDivider]);
|
|
9295
|
-
return /*#__PURE__*/
|
|
9306
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.Modal, {
|
|
9296
9307
|
visible: visible,
|
|
9297
9308
|
onRequestClose: onRequestClose,
|
|
9298
9309
|
transparent: true,
|
|
9299
9310
|
testID: testID,
|
|
9300
9311
|
onShow: onOpen,
|
|
9301
9312
|
supportedOrientations: supportedOrientations
|
|
9302
|
-
}, /*#__PURE__*/
|
|
9313
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledWrapper$9, {
|
|
9303
9314
|
pointerEvents: "box-none"
|
|
9304
|
-
}, /*#__PURE__*/
|
|
9315
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledKeyboardAvoidingView, _extends$1({
|
|
9305
9316
|
behavior: reactNative.Platform.OS === 'ios' ? 'padding' : 'height'
|
|
9306
|
-
}, keyboardAvoidingViewProps), /*#__PURE__*/
|
|
9317
|
+
}, keyboardAvoidingViewProps), /*#__PURE__*/React__namespace.default.createElement(StyledBackdrop$2, {
|
|
9307
9318
|
style: {
|
|
9308
9319
|
opacity: interpolateOpacity
|
|
9309
9320
|
},
|
|
9310
9321
|
onPress: onRequestClose
|
|
9311
|
-
}), /*#__PURE__*/
|
|
9322
|
+
}), /*#__PURE__*/React__namespace.default.createElement(StyledBottomSheet, {
|
|
9312
9323
|
style: [style, {
|
|
9313
9324
|
transform: [{
|
|
9314
9325
|
scaleY: height > 0 ? 1 : 0
|
|
@@ -9316,14 +9327,14 @@ var BottomSheet = function BottomSheet(_ref) {
|
|
|
9316
9327
|
translateY: interpolateY
|
|
9317
9328
|
}]
|
|
9318
9329
|
}]
|
|
9319
|
-
}, header !== undefined ? /*#__PURE__*/
|
|
9330
|
+
}, header !== undefined ? /*#__PURE__*/React__namespace.default.createElement(Header, {
|
|
9320
9331
|
content: header,
|
|
9321
9332
|
showDivider: internalShowDivider,
|
|
9322
9333
|
onRequestClose: onRequestClose,
|
|
9323
9334
|
showCloseButton: showCloseButton
|
|
9324
|
-
}) : null, /*#__PURE__*/
|
|
9335
|
+
}) : null, /*#__PURE__*/React__namespace.default.createElement(BottomSheetContext.Provider, {
|
|
9325
9336
|
value: BottomSheetContextValue
|
|
9326
|
-
}, children), footer ? /*#__PURE__*/
|
|
9337
|
+
}, children), footer ? /*#__PURE__*/React__namespace.default.createElement(Footer$1, {
|
|
9327
9338
|
showDivider: showDivider
|
|
9328
9339
|
}, footer) : null))));
|
|
9329
9340
|
};
|
|
@@ -11624,29 +11635,29 @@ function ContentNavigator(_ref) {
|
|
|
11624
11635
|
testID = _ref.testID,
|
|
11625
11636
|
style = _ref.style;
|
|
11626
11637
|
var theme = useTheme();
|
|
11627
|
-
return /*#__PURE__*/
|
|
11638
|
+
return /*#__PURE__*/React__namespace.default.createElement(Wrapper, {
|
|
11628
11639
|
testID: testID,
|
|
11629
11640
|
style: style
|
|
11630
|
-
}, /*#__PURE__*/
|
|
11641
|
+
}, /*#__PURE__*/React__namespace.default.createElement(CompoundButton.Icon, {
|
|
11631
11642
|
icon: "arrow-left",
|
|
11632
11643
|
onPress: onPreviousPress,
|
|
11633
11644
|
disabled: previousDisabled,
|
|
11634
11645
|
testID: "previous-icon-button"
|
|
11635
|
-
}), fontSize === 'medium' ? /*#__PURE__*/
|
|
11646
|
+
}), fontSize === 'medium' ? /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
11636
11647
|
style: {
|
|
11637
11648
|
paddingHorizontal: theme.__hd__.contentNavigator.space.valueHorizontalPadding
|
|
11638
11649
|
},
|
|
11639
11650
|
variant: "small-bold",
|
|
11640
11651
|
onPress: onPress,
|
|
11641
11652
|
testID: "content-navigator-value"
|
|
11642
|
-
}, value) : /*#__PURE__*/
|
|
11653
|
+
}, value) : /*#__PURE__*/React__namespace.default.createElement(Typography.Title, {
|
|
11643
11654
|
style: {
|
|
11644
11655
|
paddingHorizontal: theme.__hd__.contentNavigator.space.valueHorizontalPadding
|
|
11645
11656
|
},
|
|
11646
11657
|
level: "h5",
|
|
11647
11658
|
onPress: onPress,
|
|
11648
11659
|
testID: "content-navigator-value"
|
|
11649
|
-
}, value), /*#__PURE__*/
|
|
11660
|
+
}, value), /*#__PURE__*/React__namespace.default.createElement(CompoundButton.Icon, {
|
|
11650
11661
|
icon: "arrow-right",
|
|
11651
11662
|
onPress: onNextPress,
|
|
11652
11663
|
disabled: nextDisabled,
|
|
@@ -11754,16 +11765,16 @@ var CalendarRowItem = function CalendarRowItem(_ref) {
|
|
|
11754
11765
|
_ref$marked = _ref.marked,
|
|
11755
11766
|
marked = _ref$marked === void 0 ? false : _ref$marked,
|
|
11756
11767
|
itemWidth = _ref.itemWidth;
|
|
11757
|
-
return /*#__PURE__*/
|
|
11768
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledCalendarRowItem, {
|
|
11758
11769
|
testID: "calendar-date-cell",
|
|
11759
11770
|
themeItemWidth: itemWidth
|
|
11760
|
-
}, /*#__PURE__*/
|
|
11771
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledCalendarCell, {
|
|
11761
11772
|
variant: getCellVariant(isSelected, isCurrent),
|
|
11762
11773
|
onPress: onPress
|
|
11763
|
-
}, /*#__PURE__*/
|
|
11774
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
11764
11775
|
variant: "small",
|
|
11765
11776
|
intent: isSelected ? 'inverted' : textIntent
|
|
11766
|
-
}, date ? date.getDate() : ''), marked ? /*#__PURE__*/
|
|
11777
|
+
}, date ? date.getDate() : ''), marked ? /*#__PURE__*/React__namespace.default.createElement(StyledMark, {
|
|
11767
11778
|
testID: "calendar-date-mark",
|
|
11768
11779
|
variant: isSelected ? 'inverted' : 'primary'
|
|
11769
11780
|
}) : null));
|
|
@@ -11868,26 +11879,26 @@ var Calendar = function Calendar(_ref) {
|
|
|
11868
11879
|
var disableNextButton = maxDate === undefined ? false : !daysOfNextMonth.some(function (date) {
|
|
11869
11880
|
return date !== undefined;
|
|
11870
11881
|
}) || maxDate <= lastDateOfMonth;
|
|
11871
|
-
return /*#__PURE__*/
|
|
11882
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$5, {
|
|
11872
11883
|
testID: testID
|
|
11873
|
-
}, /*#__PURE__*/
|
|
11874
|
-
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, {
|
|
11875
11886
|
testID: "calendar-month-picker",
|
|
11876
11887
|
onPress: function onPress() {
|
|
11877
11888
|
onToggleMonthPicker === null || onToggleMonthPicker === void 0 || onToggleMonthPicker(!monthPickerVisible);
|
|
11878
11889
|
setMonthPickerVisible(!monthPickerVisible);
|
|
11879
11890
|
}
|
|
11880
|
-
}, /*#__PURE__*/
|
|
11891
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Box, {
|
|
11881
11892
|
flexDirection: "row",
|
|
11882
11893
|
justifyContent: "center",
|
|
11883
11894
|
alignItems: "center"
|
|
11884
|
-
}, /*#__PURE__*/
|
|
11895
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Typography.Title, {
|
|
11885
11896
|
level: "h5",
|
|
11886
11897
|
style: {
|
|
11887
11898
|
textAlign: 'center',
|
|
11888
11899
|
marginRight: theme.__hd__.calendar.space.headerMarginRight
|
|
11889
11900
|
}
|
|
11890
|
-
}, formatTime('MMMM yyyy', visibleDate)), /*#__PURE__*/
|
|
11901
|
+
}, formatTime('MMMM yyyy', visibleDate)), /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
11891
11902
|
icon: monthPickerVisible ? 'arrow-up' : 'arrow-down',
|
|
11892
11903
|
size: "small"
|
|
11893
11904
|
}))),
|
|
@@ -11897,11 +11908,11 @@ var Calendar = function Calendar(_ref) {
|
|
|
11897
11908
|
previousDisabled: disablePrevButton,
|
|
11898
11909
|
nextDisabled: disableNextButton,
|
|
11899
11910
|
fontSize: "large"
|
|
11900
|
-
})), reactNative.Platform.OS === 'ios' && monthPickerVisible ? /*#__PURE__*/
|
|
11911
|
+
})), reactNative.Platform.OS === 'ios' && monthPickerVisible ? /*#__PURE__*/React__namespace.default.createElement(Box, {
|
|
11901
11912
|
style: {
|
|
11902
11913
|
overflow: 'hidden'
|
|
11903
11914
|
}
|
|
11904
|
-
}, /*#__PURE__*/
|
|
11915
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNativeMonthYearPicker.MonthYearPickerViewIOS, {
|
|
11905
11916
|
value: value,
|
|
11906
11917
|
minimumDate: minDate,
|
|
11907
11918
|
maximumDate: maxDate,
|
|
@@ -11911,7 +11922,7 @@ var Calendar = function Calendar(_ref) {
|
|
|
11911
11922
|
marginVertical: -theme.__hd__.calendar.space.iosPickerMarginVertical,
|
|
11912
11923
|
width: contentWidth
|
|
11913
11924
|
}
|
|
11914
|
-
})) : /*#__PURE__*/
|
|
11925
|
+
})) : /*#__PURE__*/React__namespace.default.createElement(Box, {
|
|
11915
11926
|
onLayout: reactNative.Platform.OS === 'ios' ? function (e) {
|
|
11916
11927
|
var _e$nativeEvent$layout = e.nativeEvent.layout,
|
|
11917
11928
|
width = _e$nativeEvent$layout.width,
|
|
@@ -11919,16 +11930,16 @@ var Calendar = function Calendar(_ref) {
|
|
|
11919
11930
|
setContentHeight(height);
|
|
11920
11931
|
setContentWidth(width);
|
|
11921
11932
|
} : undefined
|
|
11922
|
-
}, /*#__PURE__*/
|
|
11923
|
-
return /*#__PURE__*/
|
|
11933
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledCalendarRow, null, DAYS_OF_WEEK.map(function (day) {
|
|
11934
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledCalendarRowItem, {
|
|
11924
11935
|
key: day
|
|
11925
|
-
}, /*#__PURE__*/
|
|
11936
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledCalendarDayNameCell, {
|
|
11926
11937
|
themeItemWidth: calendarItemWidth
|
|
11927
|
-
}, /*#__PURE__*/
|
|
11938
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
11928
11939
|
variant: "small"
|
|
11929
11940
|
}, day)));
|
|
11930
|
-
})), /*#__PURE__*/
|
|
11931
|
-
return date ? /*#__PURE__*/
|
|
11941
|
+
})), /*#__PURE__*/React__namespace.default.createElement(StyledCalendarRow, null, daysOfPreviousMonth.map(function (date) {
|
|
11942
|
+
return date ? /*#__PURE__*/React__namespace.default.createElement(CalendarRowItem, {
|
|
11932
11943
|
key: date.toDateString(),
|
|
11933
11944
|
date: date,
|
|
11934
11945
|
isCurrent: isEqDate(now, date),
|
|
@@ -11939,12 +11950,12 @@ var Calendar = function Calendar(_ref) {
|
|
|
11939
11950
|
textIntent: "subdued",
|
|
11940
11951
|
marked: parsedMaskedDate[date.toDateString()],
|
|
11941
11952
|
itemWidth: contentWidth > 0 ? contentWidth / 7 : undefined
|
|
11942
|
-
}) : /*#__PURE__*/
|
|
11953
|
+
}) : /*#__PURE__*/React__namespace.default.createElement(StyledDisabledCalendarRowItem, {
|
|
11943
11954
|
themeItemWidth: calendarItemWidth,
|
|
11944
11955
|
testID: "calendar-disabled-cell"
|
|
11945
11956
|
});
|
|
11946
11957
|
}), daysOfCurrentMonth.map(function (date) {
|
|
11947
|
-
return date ? /*#__PURE__*/
|
|
11958
|
+
return date ? /*#__PURE__*/React__namespace.default.createElement(CalendarRowItem, {
|
|
11948
11959
|
itemWidth: calendarItemWidth,
|
|
11949
11960
|
key: date.toDateString(),
|
|
11950
11961
|
date: date,
|
|
@@ -11954,12 +11965,12 @@ var Calendar = function Calendar(_ref) {
|
|
|
11954
11965
|
return onChange === null || onChange === void 0 ? void 0 : onChange(date);
|
|
11955
11966
|
},
|
|
11956
11967
|
marked: parsedMaskedDate[date.toDateString()]
|
|
11957
|
-
}) : /*#__PURE__*/
|
|
11968
|
+
}) : /*#__PURE__*/React__namespace.default.createElement(StyledDisabledCalendarRowItem, {
|
|
11958
11969
|
themeItemWidth: calendarItemWidth,
|
|
11959
11970
|
testID: "calendar-disabled-cell"
|
|
11960
11971
|
});
|
|
11961
11972
|
}), daysOfNextMonth.map(function (date) {
|
|
11962
|
-
return date ? /*#__PURE__*/
|
|
11973
|
+
return date ? /*#__PURE__*/React__namespace.default.createElement(CalendarRowItem, {
|
|
11963
11974
|
itemWidth: calendarItemWidth,
|
|
11964
11975
|
key: date.toDateString(),
|
|
11965
11976
|
date: date,
|
|
@@ -11970,11 +11981,11 @@ var Calendar = function Calendar(_ref) {
|
|
|
11970
11981
|
},
|
|
11971
11982
|
textIntent: "subdued",
|
|
11972
11983
|
marked: parsedMaskedDate[date.toDateString()]
|
|
11973
|
-
}) : /*#__PURE__*/
|
|
11984
|
+
}) : /*#__PURE__*/React__namespace.default.createElement(StyledDisabledCalendarRowItem, {
|
|
11974
11985
|
themeItemWidth: calendarItemWidth,
|
|
11975
11986
|
testID: "calendar-disabled-cell"
|
|
11976
11987
|
});
|
|
11977
|
-
})), reactNative.Platform.OS === 'android' && monthPickerVisible && /*#__PURE__*/
|
|
11988
|
+
})), reactNative.Platform.OS === 'android' && monthPickerVisible && /*#__PURE__*/React__namespace.default.createElement(reactNativeMonthYearPicker.MonthYearPickerDialogueAndroid, {
|
|
11978
11989
|
doneButtonLabel: monthPickerConfirmLabel,
|
|
11979
11990
|
cancelButtonLabel: monthPickerCancelLabel,
|
|
11980
11991
|
value: value,
|
|
@@ -12014,7 +12025,7 @@ var DataCard = function DataCard(_ref) {
|
|
|
12014
12025
|
intent = _ref$intent === void 0 ? 'info' : _ref$intent,
|
|
12015
12026
|
children = _ref.children,
|
|
12016
12027
|
nativeProps = _objectWithoutProperties(_ref, _excluded$o);
|
|
12017
|
-
return /*#__PURE__*/
|
|
12028
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React__namespace.default.createElement(Indicator, {
|
|
12018
12029
|
themeIntent: intent,
|
|
12019
12030
|
testID: "data-card-indicator"
|
|
12020
12031
|
}), children);
|
|
@@ -12036,7 +12047,7 @@ var Card = function Card(_ref) {
|
|
|
12036
12047
|
var intent = _ref.intent,
|
|
12037
12048
|
children = _ref.children,
|
|
12038
12049
|
nativeProps = _objectWithoutProperties(_ref, _excluded$n);
|
|
12039
|
-
return /*#__PURE__*/
|
|
12050
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledCard$1, _extends$1({}, nativeProps, {
|
|
12040
12051
|
themeIntent: intent
|
|
12041
12052
|
}), children);
|
|
12042
12053
|
};
|
|
@@ -12068,14 +12079,14 @@ var PageControl = function PageControl(_ref) {
|
|
|
12068
12079
|
testID = _ref.testID,
|
|
12069
12080
|
style = _ref.style;
|
|
12070
12081
|
var theme = useTheme();
|
|
12071
|
-
var animatedValue =
|
|
12072
|
-
|
|
12082
|
+
var animatedValue = React__namespace.default.useRef(new reactNative.Animated.Value(currentPage)).current;
|
|
12083
|
+
React__namespace.default.useEffect(function () {
|
|
12073
12084
|
reactNative.Animated.spring(animatedValue, {
|
|
12074
12085
|
toValue: currentPage,
|
|
12075
12086
|
useNativeDriver: false // Native driver does not support animating width, it will cause the app to crash if set to true
|
|
12076
12087
|
}).start();
|
|
12077
12088
|
}, [currentPage]);
|
|
12078
|
-
return /*#__PURE__*/
|
|
12089
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledPageControl$2, {
|
|
12079
12090
|
testID: testID,
|
|
12080
12091
|
style: style
|
|
12081
12092
|
}, new Array(numberOfPages).fill('').map(function (_, index) {
|
|
@@ -12090,7 +12101,7 @@ var PageControl = function PageControl(_ref) {
|
|
|
12090
12101
|
outputRange: [0.5, 1, 0.5],
|
|
12091
12102
|
extrapolate: 'clamp'
|
|
12092
12103
|
});
|
|
12093
|
-
return /*#__PURE__*/
|
|
12104
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledPageControlAnimatedView, {
|
|
12094
12105
|
accessibilityState: {
|
|
12095
12106
|
selected: index === currentPage
|
|
12096
12107
|
},
|
|
@@ -12188,7 +12199,7 @@ var CardCarousel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
12188
12199
|
viewPosition: viewPosition
|
|
12189
12200
|
});
|
|
12190
12201
|
}, [currentIndex, items.length, viewPosition]);
|
|
12191
|
-
|
|
12202
|
+
React__namespace.default.useImperativeHandle(ref, function () {
|
|
12192
12203
|
return {
|
|
12193
12204
|
snapToIndex: function snapToIndex(index) {
|
|
12194
12205
|
_snapToIndex(index);
|
|
@@ -12234,17 +12245,17 @@ var CardCarousel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
12234
12245
|
}, [setFlatListWidth, onLayout]);
|
|
12235
12246
|
var renderItem = React.useCallback(function (_ref3) {
|
|
12236
12247
|
var item = _ref3.item;
|
|
12237
|
-
return /*#__PURE__*/
|
|
12248
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledItemWrapper, {
|
|
12238
12249
|
style: {
|
|
12239
12250
|
width: itemWidth
|
|
12240
12251
|
}
|
|
12241
|
-
}, /*#__PURE__*/
|
|
12252
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledCard, null, item));
|
|
12242
12253
|
}, [itemWidth]);
|
|
12243
12254
|
var contentContainerPaddingHorizontal = theme.__hd__.cardCarousel.space.contentContainerPaddingHorizontal;
|
|
12244
|
-
return /*#__PURE__*/
|
|
12255
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledWrapper$8, {
|
|
12245
12256
|
style: style,
|
|
12246
12257
|
testID: testID
|
|
12247
|
-
}, /*#__PURE__*/
|
|
12258
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.FlatList, {
|
|
12248
12259
|
contentInset: {
|
|
12249
12260
|
top: 0,
|
|
12250
12261
|
left: contentContainerPaddingHorizontal,
|
|
@@ -12252,14 +12263,14 @@ var CardCarousel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
12252
12263
|
right: contentContainerPaddingHorizontal
|
|
12253
12264
|
},
|
|
12254
12265
|
ListHeaderComponent: reactNative.Platform.select({
|
|
12255
|
-
android: /*#__PURE__*/
|
|
12266
|
+
android: /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
12256
12267
|
style: {
|
|
12257
12268
|
width: contentContainerPaddingHorizontal
|
|
12258
12269
|
}
|
|
12259
12270
|
})
|
|
12260
12271
|
}),
|
|
12261
12272
|
ListFooterComponent: reactNative.Platform.select({
|
|
12262
|
-
android: /*#__PURE__*/
|
|
12273
|
+
android: /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
12263
12274
|
style: {
|
|
12264
12275
|
width: contentContainerPaddingHorizontal
|
|
12265
12276
|
}
|
|
@@ -12288,7 +12299,7 @@ var CardCarousel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
12288
12299
|
viewabilityConfig: {
|
|
12289
12300
|
itemVisiblePercentThreshold: 80
|
|
12290
12301
|
}
|
|
12291
|
-
}), !hidePageControl && /*#__PURE__*/
|
|
12302
|
+
}), !hidePageControl && /*#__PURE__*/React__namespace.default.createElement(StyledPageControl$1, {
|
|
12292
12303
|
testID: "pageControl",
|
|
12293
12304
|
currentPage: currentIndex,
|
|
12294
12305
|
numberOfPages: items.length
|
|
@@ -12307,7 +12318,7 @@ var Image = function Image(_ref) {
|
|
|
12307
12318
|
imageNativeProps = _objectWithoutProperties(_ref, _excluded$m);
|
|
12308
12319
|
var theme = useTheme();
|
|
12309
12320
|
var imageSize = theme.__hd__.image.sizes[size];
|
|
12310
|
-
return /*#__PURE__*/
|
|
12321
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.Image, _extends$1({
|
|
12311
12322
|
testID: testID,
|
|
12312
12323
|
style: [{
|
|
12313
12324
|
width: imageSize,
|
|
@@ -12401,10 +12412,10 @@ var CarouselItem = function CarouselItem(_ref) {
|
|
|
12401
12412
|
heading = _ref.heading,
|
|
12402
12413
|
body = _ref.body;
|
|
12403
12414
|
var theme = useTheme$1();
|
|
12404
|
-
var ImageComponent =
|
|
12415
|
+
var ImageComponent = React__namespace.default.useMemo(function () {
|
|
12405
12416
|
if (image) {
|
|
12406
12417
|
if (isCarouselImageProps(image)) {
|
|
12407
|
-
return /*#__PURE__*/
|
|
12418
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledCustomSizeCarouselImage, {
|
|
12408
12419
|
source: image,
|
|
12409
12420
|
themeHeight: image.height,
|
|
12410
12421
|
themeWidth: image.width,
|
|
@@ -12414,7 +12425,7 @@ var CarouselItem = function CarouselItem(_ref) {
|
|
|
12414
12425
|
}
|
|
12415
12426
|
});
|
|
12416
12427
|
}
|
|
12417
|
-
return /*#__PURE__*/
|
|
12428
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledCarouselImage, {
|
|
12418
12429
|
source: typeof image === 'string' ? {
|
|
12419
12430
|
uri: image
|
|
12420
12431
|
} : image,
|
|
@@ -12425,17 +12436,17 @@ var CarouselItem = function CarouselItem(_ref) {
|
|
|
12425
12436
|
}
|
|
12426
12437
|
return null;
|
|
12427
12438
|
}, [image]);
|
|
12428
|
-
return /*#__PURE__*/
|
|
12439
|
+
return /*#__PURE__*/React__namespace.default.createElement(Box, {
|
|
12429
12440
|
style: {
|
|
12430
12441
|
width: width
|
|
12431
12442
|
}
|
|
12432
|
-
}, ImageComponent, /*#__PURE__*/
|
|
12443
|
+
}, ImageComponent, /*#__PURE__*/React__namespace.default.createElement(StyledCarouselContentWrapper, {
|
|
12433
12444
|
paddingHorizontal: "medium",
|
|
12434
12445
|
width: width
|
|
12435
|
-
}, content, !!heading && /*#__PURE__*/
|
|
12446
|
+
}, content, !!heading && /*#__PURE__*/React__namespace.default.createElement(StyledCarouselHeading, {
|
|
12436
12447
|
level: "h1",
|
|
12437
12448
|
typeface: "playful"
|
|
12438
|
-
}, heading), !!body && /*#__PURE__*/
|
|
12449
|
+
}, heading), !!body && /*#__PURE__*/React__namespace.default.createElement(Typography.Body, null, body)));
|
|
12439
12450
|
};
|
|
12440
12451
|
|
|
12441
12452
|
var _excluded$l = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "testID", "pageControlPosition"];
|
|
@@ -12516,15 +12527,15 @@ var Carousel = function Carousel(_ref) {
|
|
|
12516
12527
|
internalOnItemIndexChange(firstVisibleItem.index || 0);
|
|
12517
12528
|
}
|
|
12518
12529
|
});
|
|
12519
|
-
return /*#__PURE__*/
|
|
12530
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.View, _extends$1({
|
|
12520
12531
|
style: style,
|
|
12521
12532
|
testID: testID
|
|
12522
|
-
}, nativeProps), /*#__PURE__*/
|
|
12533
|
+
}, nativeProps), /*#__PURE__*/React__namespace.default.createElement(StyledBackDrop, {
|
|
12523
12534
|
themeSlideBackground: ((_items$currentSlideIn = items[currentSlideIndex]) === null || _items$currentSlideIn === void 0 ? void 0 : _items$currentSlideIn.background) || theme.colors.defaultGlobalSurface
|
|
12524
|
-
}), /*#__PURE__*/
|
|
12535
|
+
}), /*#__PURE__*/React__namespace.default.createElement(StyledPageControlWrapper, null, pageControlPosition === 'top' && shouldRenderPagination && /*#__PURE__*/React__namespace.default.createElement(StyledPageControl, {
|
|
12525
12536
|
numberOfPages: items.length,
|
|
12526
12537
|
currentPage: currentSlideIndex
|
|
12527
|
-
})), /*#__PURE__*/
|
|
12538
|
+
})), /*#__PURE__*/React__namespace.default.createElement(StyledCarouselView, null, /*#__PURE__*/React__namespace.default.createElement(reactNative.FlatList, {
|
|
12528
12539
|
onLayout: flatListOnLayout,
|
|
12529
12540
|
testID: testID ? "".concat(testID, "_flatlist") : undefined,
|
|
12530
12541
|
horizontal: true,
|
|
@@ -12552,7 +12563,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
12552
12563
|
heading = item.heading,
|
|
12553
12564
|
body = item.body,
|
|
12554
12565
|
content = item.content;
|
|
12555
|
-
return /*#__PURE__*/
|
|
12566
|
+
return /*#__PURE__*/React__namespace.default.createElement(CarouselItem, {
|
|
12556
12567
|
image: image,
|
|
12557
12568
|
heading: heading,
|
|
12558
12569
|
body: body,
|
|
@@ -12567,7 +12578,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
12567
12578
|
index: index
|
|
12568
12579
|
};
|
|
12569
12580
|
}
|
|
12570
|
-
}), /*#__PURE__*/
|
|
12581
|
+
}), /*#__PURE__*/React__namespace.default.createElement(StyledCarouselFooterWrapper, null, renderActions && renderActions(currentSlideIndex), pageControlPosition === 'bottom' && shouldRenderPagination && /*#__PURE__*/React__namespace.default.createElement(StyledPageControl, {
|
|
12571
12582
|
numberOfPages: items.length,
|
|
12572
12583
|
currentPage: currentSlideIndex
|
|
12573
12584
|
}))));
|
|
@@ -12685,7 +12696,7 @@ var Chip = function Chip(_ref) {
|
|
|
12685
12696
|
icon = _ref.icon,
|
|
12686
12697
|
onPress = _ref.onPress,
|
|
12687
12698
|
otherProps = _objectWithoutProperties(_ref, _excluded$k);
|
|
12688
|
-
var internalIcon =
|
|
12699
|
+
var internalIcon = React__namespace.default.useMemo(function () {
|
|
12689
12700
|
if (icon && variant === 'filled') {
|
|
12690
12701
|
return icon;
|
|
12691
12702
|
}
|
|
@@ -12694,17 +12705,17 @@ var Chip = function Chip(_ref) {
|
|
|
12694
12705
|
}
|
|
12695
12706
|
return undefined;
|
|
12696
12707
|
}, [icon, selected, variant]);
|
|
12697
|
-
return /*#__PURE__*/
|
|
12708
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledChipWrapper, _extends$1({
|
|
12698
12709
|
onPress: onPress,
|
|
12699
12710
|
themeVariant: variant,
|
|
12700
12711
|
themeSelected: selected
|
|
12701
|
-
}, otherProps), internalIcon && /*#__PURE__*/
|
|
12712
|
+
}, otherProps), internalIcon && /*#__PURE__*/React__namespace.default.createElement(StyledIconWrapper$3, null, /*#__PURE__*/React__namespace.default.createElement(StyledIcon$1, {
|
|
12702
12713
|
size: "xsmall",
|
|
12703
12714
|
icon: internalIcon,
|
|
12704
12715
|
themeSelected: selected,
|
|
12705
12716
|
themeVariant: variant,
|
|
12706
12717
|
testID: "chip-icon-".concat(internalIcon)
|
|
12707
|
-
})), /*#__PURE__*/
|
|
12718
|
+
})), /*#__PURE__*/React__namespace.default.createElement(StyledLabel, {
|
|
12708
12719
|
variant: "small",
|
|
12709
12720
|
themeVariant: variant,
|
|
12710
12721
|
themeSelected: selected
|
|
@@ -12785,20 +12796,20 @@ var Checkbox = function Checkbox(_ref2) {
|
|
|
12785
12796
|
disabled: disabled,
|
|
12786
12797
|
readonly: readonly
|
|
12787
12798
|
});
|
|
12788
|
-
return /*#__PURE__*/
|
|
12799
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledWrapper$7, {
|
|
12789
12800
|
onPress: onPress,
|
|
12790
12801
|
disabled: disabled || readonly,
|
|
12791
12802
|
themeState: themeState,
|
|
12792
12803
|
style: style,
|
|
12793
12804
|
testID: testID
|
|
12794
|
-
}, !!description && /*#__PURE__*/
|
|
12805
|
+
}, !!description && /*#__PURE__*/React__namespace.default.createElement(StyledDescription$1, {
|
|
12795
12806
|
intent: disabled ? 'subdued' : 'body',
|
|
12796
12807
|
variant: "small"
|
|
12797
|
-
}, description), /*#__PURE__*/
|
|
12808
|
+
}, description), /*#__PURE__*/React__namespace.default.createElement(StyledCheckboxContainer, null, checked && /*#__PURE__*/React__namespace.default.createElement(StyledCheckMark, {
|
|
12798
12809
|
icon: "box-check",
|
|
12799
12810
|
testID: "check-mark",
|
|
12800
12811
|
themeState: themeState
|
|
12801
|
-
}), /*#__PURE__*/
|
|
12812
|
+
}), /*#__PURE__*/React__namespace.default.createElement(StyledCheckbox, {
|
|
12802
12813
|
themeState: themeState
|
|
12803
12814
|
})));
|
|
12804
12815
|
};
|
|
@@ -12959,21 +12970,21 @@ var LABEL_ANIMATION_DURATION = 150;
|
|
|
12959
12970
|
var renderErrorOrHelpText = function renderErrorOrHelpText(_ref2) {
|
|
12960
12971
|
var error = _ref2.error,
|
|
12961
12972
|
helpText = _ref2.helpText;
|
|
12962
|
-
return error ? /*#__PURE__*/
|
|
12973
|
+
return error ? /*#__PURE__*/React__namespace.default.createElement(StyledErrorContainer$2, null, /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
12963
12974
|
testID: "input-error-icon",
|
|
12964
12975
|
icon: "circle-info",
|
|
12965
12976
|
size: "xsmall",
|
|
12966
12977
|
intent: "danger"
|
|
12967
|
-
}), /*#__PURE__*/
|
|
12978
|
+
}), /*#__PURE__*/React__namespace.default.createElement(StyledError, {
|
|
12968
12979
|
testID: "input-error-message"
|
|
12969
|
-
}, error)) : !!helpText && /*#__PURE__*/
|
|
12980
|
+
}, error)) : !!helpText && /*#__PURE__*/React__namespace.default.createElement(StyledHelperText, null, helpText);
|
|
12970
12981
|
};
|
|
12971
12982
|
var renderInput = function renderInput(_ref3) {
|
|
12972
12983
|
var variant = _ref3.variant,
|
|
12973
12984
|
nativeInputProps = _ref3.nativeInputProps,
|
|
12974
12985
|
renderInputValue = _ref3.renderInputValue,
|
|
12975
12986
|
ref = _ref3.ref;
|
|
12976
|
-
return renderInputValue ? renderInputValue(nativeInputProps) : /*#__PURE__*/
|
|
12987
|
+
return renderInputValue ? renderInputValue(nativeInputProps) : /*#__PURE__*/React__namespace.default.createElement(StyledTextInput, _extends$1({}, nativeInputProps, {
|
|
12977
12988
|
themeVariant: variant,
|
|
12978
12989
|
multiline: variant === 'textarea' || nativeInputProps.multiline,
|
|
12979
12990
|
ref: ref
|
|
@@ -12984,7 +12995,7 @@ var renderSuffix = function renderSuffix(_ref4) {
|
|
|
12984
12995
|
loading = _ref4.loading,
|
|
12985
12996
|
suffix = _ref4.suffix;
|
|
12986
12997
|
var actualSuffix = loading ? 'loading' : suffix;
|
|
12987
|
-
return typeof actualSuffix === 'string' ? /*#__PURE__*/
|
|
12998
|
+
return typeof actualSuffix === 'string' ? /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
12988
12999
|
intent: state === 'disabled' ? 'disabled-text' : 'text',
|
|
12989
13000
|
testID: "input-suffix",
|
|
12990
13001
|
icon: actualSuffix,
|
|
@@ -12995,7 +13006,7 @@ var renderSuffix = function renderSuffix(_ref4) {
|
|
|
12995
13006
|
var renderPrefix = function renderPrefix(_ref5) {
|
|
12996
13007
|
var state = _ref5.state,
|
|
12997
13008
|
prefix = _ref5.prefix;
|
|
12998
|
-
return typeof prefix === 'string' ? /*#__PURE__*/
|
|
13009
|
+
return typeof prefix === 'string' ? /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
12999
13010
|
intent: state === 'disabled' ? 'disabled-text' : 'text',
|
|
13000
13011
|
testID: "input-prefix",
|
|
13001
13012
|
icon: prefix,
|
|
@@ -13008,7 +13019,7 @@ var renderMaxLengthMessage = function renderMaxLengthMessage(_ref6) {
|
|
|
13008
13019
|
currentLength = _ref6.currentLength,
|
|
13009
13020
|
hideCharacterCount = _ref6.hideCharacterCount;
|
|
13010
13021
|
var shouldShowMaxLength = maxLength !== undefined && !hideCharacterCount;
|
|
13011
|
-
return shouldShowMaxLength && /*#__PURE__*/
|
|
13022
|
+
return shouldShowMaxLength && /*#__PURE__*/React__namespace.default.createElement(StyledMaxLengthMessage, {
|
|
13012
13023
|
themeState: state
|
|
13013
13024
|
}, currentLength, "/", maxLength);
|
|
13014
13025
|
};
|
|
@@ -13046,22 +13057,22 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
|
|
|
13046
13057
|
nativeProps = _objectWithoutProperties(_ref8, _excluded$j);
|
|
13047
13058
|
var displayText = getDisplayText(value, defaultValue);
|
|
13048
13059
|
var isEmptyValue = displayText.length === 0;
|
|
13049
|
-
var _React$useState =
|
|
13060
|
+
var _React$useState = React__namespace.default.useState({
|
|
13050
13061
|
height: 0,
|
|
13051
13062
|
width: 0
|
|
13052
13063
|
}),
|
|
13053
13064
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
13054
13065
|
inputSize = _React$useState2[0],
|
|
13055
13066
|
setInputSize = _React$useState2[1];
|
|
13056
|
-
var _React$useState3 =
|
|
13067
|
+
var _React$useState3 = React__namespace.default.useState(0),
|
|
13057
13068
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
13058
13069
|
labelWidth = _React$useState4[0],
|
|
13059
13070
|
setLabelWidth = _React$useState4[1];
|
|
13060
|
-
var _React$useState5 =
|
|
13071
|
+
var _React$useState5 = React__namespace.default.useState(0),
|
|
13061
13072
|
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
13062
13073
|
prefixWidth = _React$useState6[0],
|
|
13063
13074
|
setPrefixWidth = _React$useState6[1];
|
|
13064
|
-
var _React$useState7 =
|
|
13075
|
+
var _React$useState7 = React__namespace.default.useState(false),
|
|
13065
13076
|
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
|
13066
13077
|
isFocused = _React$useState8[0],
|
|
13067
13078
|
setIsFocused = _React$useState8[1];
|
|
@@ -13102,8 +13113,8 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
|
|
|
13102
13113
|
var width = event.nativeEvent.layout.width;
|
|
13103
13114
|
setLabelWidth(width);
|
|
13104
13115
|
}, []);
|
|
13105
|
-
var innerTextInput =
|
|
13106
|
-
|
|
13116
|
+
var innerTextInput = React__namespace.default.useRef();
|
|
13117
|
+
React__namespace.default.useImperativeHandle(ref, function () {
|
|
13107
13118
|
return {
|
|
13108
13119
|
// we don't expose this method, it's for testing https://medium.com/developer-rants/how-to-test-useref-without-mocking-useref-699165f4994e
|
|
13109
13120
|
getNativeTextInputRef: function getNativeTextInputRef() {
|
|
@@ -13195,25 +13206,25 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
|
|
|
13195
13206
|
defaultValue: defaultValue,
|
|
13196
13207
|
placeholder: isFocused || label === undefined ? nativeProps.placeholder : EMPTY_PLACEHOLDER_VALUE
|
|
13197
13208
|
});
|
|
13198
|
-
return /*#__PURE__*/
|
|
13209
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$4, {
|
|
13199
13210
|
style: styleWithoutBackgroundColor,
|
|
13200
13211
|
pointerEvents: state === 'disabled' || state === 'readonly' ? 'none' : 'auto',
|
|
13201
13212
|
testID: testID
|
|
13202
|
-
}, /*#__PURE__*/
|
|
13213
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledTextInputContainer, {
|
|
13203
13214
|
onLayout: onLayout
|
|
13204
|
-
}, /*#__PURE__*/
|
|
13215
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledBorderBackDrop, {
|
|
13205
13216
|
themeFocused: isFocused,
|
|
13206
13217
|
themeState: state,
|
|
13207
13218
|
testID: "text-input-border",
|
|
13208
13219
|
style: [{
|
|
13209
13220
|
backgroundColor: backgroundColor
|
|
13210
13221
|
}, borderStyle]
|
|
13211
|
-
}), /*#__PURE__*/
|
|
13222
|
+
}), /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
13212
13223
|
onLayout: onPrefixLayout
|
|
13213
13224
|
}, renderPrefix({
|
|
13214
13225
|
state: state,
|
|
13215
13226
|
prefix: prefix
|
|
13216
|
-
})), /*#__PURE__*/
|
|
13227
|
+
})), /*#__PURE__*/React__namespace.default.createElement(StyledLabelContainerInsideTextInput, {
|
|
13217
13228
|
themeVariant: variant,
|
|
13218
13229
|
pointerEvents: "none",
|
|
13219
13230
|
style: [{
|
|
@@ -13236,13 +13247,13 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
|
|
|
13236
13247
|
})
|
|
13237
13248
|
}]
|
|
13238
13249
|
}]
|
|
13239
|
-
}, required && /*#__PURE__*/
|
|
13250
|
+
}, required && /*#__PURE__*/React__namespace.default.createElement(StyledAsteriskLabelInsideTextInput, {
|
|
13240
13251
|
style: {
|
|
13241
13252
|
backgroundColor: backgroundColor
|
|
13242
13253
|
},
|
|
13243
13254
|
themeState: state,
|
|
13244
13255
|
testID: "input-label-asterisk"
|
|
13245
|
-
}, "*"), !!label && /*#__PURE__*/
|
|
13256
|
+
}, "*"), !!label && /*#__PURE__*/React__namespace.default.createElement(StyledLabelInsideTextInput, {
|
|
13246
13257
|
style: {
|
|
13247
13258
|
backgroundColor: backgroundColor
|
|
13248
13259
|
},
|
|
@@ -13250,7 +13261,7 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
|
|
|
13250
13261
|
testID: "input-label",
|
|
13251
13262
|
themeState: state,
|
|
13252
13263
|
onLayout: onLabelLayout
|
|
13253
|
-
}, label)), /*#__PURE__*/
|
|
13264
|
+
}, label)), /*#__PURE__*/React__namespace.default.createElement(StyledTextInputAndLabelContainer, null, renderInput({
|
|
13254
13265
|
variant: variant,
|
|
13255
13266
|
nativeInputProps: nativeInputProps,
|
|
13256
13267
|
renderInputValue: renderInputValue,
|
|
@@ -13261,7 +13272,7 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
|
|
|
13261
13272
|
state: state,
|
|
13262
13273
|
loading: loading,
|
|
13263
13274
|
suffix: suffix
|
|
13264
|
-
})), /*#__PURE__*/
|
|
13275
|
+
})), /*#__PURE__*/React__namespace.default.createElement(StyledErrorAndHelpTextContainer, null, /*#__PURE__*/React__namespace.default.createElement(StyledErrorAndMaxLengthContainer, null, renderErrorOrHelpText({
|
|
13265
13276
|
error: error,
|
|
13266
13277
|
helpText: helpText
|
|
13267
13278
|
}), renderMaxLengthMessage({
|
|
@@ -13322,15 +13333,15 @@ var DatePickerAndroid = function DatePickerAndroid(_ref) {
|
|
|
13322
13333
|
onChange: _onChange,
|
|
13323
13334
|
value: value
|
|
13324
13335
|
});
|
|
13325
|
-
return /*#__PURE__*/
|
|
13336
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
13326
13337
|
onPress: function onPress() {
|
|
13327
13338
|
return setOpen(true);
|
|
13328
13339
|
},
|
|
13329
13340
|
disabled: disabled
|
|
13330
|
-
}, /*#__PURE__*/
|
|
13341
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
13331
13342
|
pointerEvents: "none",
|
|
13332
13343
|
testID: "datePickerInputAndroid"
|
|
13333
|
-
}, /*#__PURE__*/
|
|
13344
|
+
}, /*#__PURE__*/React__namespace.default.createElement(TextInput, {
|
|
13334
13345
|
label: label,
|
|
13335
13346
|
value: displayValue,
|
|
13336
13347
|
suffix: "calendar-dates-outlined",
|
|
@@ -13341,7 +13352,7 @@ var DatePickerAndroid = function DatePickerAndroid(_ref) {
|
|
|
13341
13352
|
helpText: helpText,
|
|
13342
13353
|
style: style,
|
|
13343
13354
|
testID: testID
|
|
13344
|
-
})), open ? /*#__PURE__*/
|
|
13355
|
+
})), open ? /*#__PURE__*/React__namespace.default.createElement(DateTimePicker__default.default, {
|
|
13345
13356
|
testID: "datePickerAndroid",
|
|
13346
13357
|
mode: "date",
|
|
13347
13358
|
value: pickerInitValue,
|
|
@@ -13373,7 +13384,7 @@ var InternalCalendar = function InternalCalendar(_ref) {
|
|
|
13373
13384
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
13374
13385
|
selectingDate = _useState4[0],
|
|
13375
13386
|
setSelectingDate = _useState4[1];
|
|
13376
|
-
return /*#__PURE__*/
|
|
13387
|
+
return /*#__PURE__*/React__namespace.default.createElement(Calendar, {
|
|
13377
13388
|
testID: "calendar",
|
|
13378
13389
|
value: selectingDate,
|
|
13379
13390
|
visibleDate: visibleDate,
|
|
@@ -13442,15 +13453,15 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
13442
13453
|
onChange: onChange,
|
|
13443
13454
|
value: value
|
|
13444
13455
|
});
|
|
13445
|
-
return /*#__PURE__*/
|
|
13456
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
13446
13457
|
onPress: function onPress() {
|
|
13447
13458
|
return setOpen(true);
|
|
13448
13459
|
},
|
|
13449
13460
|
disabled: disabled
|
|
13450
|
-
}, /*#__PURE__*/
|
|
13461
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
13451
13462
|
pointerEvents: "none",
|
|
13452
13463
|
testID: "datePickerCalendar"
|
|
13453
|
-
}, /*#__PURE__*/
|
|
13464
|
+
}, /*#__PURE__*/React__namespace.default.createElement(TextInput, {
|
|
13454
13465
|
label: label,
|
|
13455
13466
|
value: displayValue,
|
|
13456
13467
|
suffix: "calendar-dates-outlined",
|
|
@@ -13461,13 +13472,13 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
13461
13472
|
helpText: helpText,
|
|
13462
13473
|
testID: testID,
|
|
13463
13474
|
style: style
|
|
13464
|
-
})), /*#__PURE__*/
|
|
13475
|
+
})), /*#__PURE__*/React__namespace.default.createElement(BottomSheet$1, {
|
|
13465
13476
|
open: open,
|
|
13466
13477
|
onRequestClose: function onRequestClose() {
|
|
13467
13478
|
return setOpen(false);
|
|
13468
13479
|
},
|
|
13469
13480
|
header: label,
|
|
13470
|
-
footer: shouldHideToolbar ? undefined : /*#__PURE__*/
|
|
13481
|
+
footer: shouldHideToolbar ? undefined : /*#__PURE__*/React__namespace.default.createElement(CompoundButton, {
|
|
13471
13482
|
variant: "text",
|
|
13472
13483
|
text: confirmLabel,
|
|
13473
13484
|
onPress: function onPress() {
|
|
@@ -13478,7 +13489,7 @@ var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
|
13478
13489
|
}
|
|
13479
13490
|
}),
|
|
13480
13491
|
supportedOrientations: supportedOrientations
|
|
13481
|
-
}, /*#__PURE__*/
|
|
13492
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.ScrollView, null, /*#__PURE__*/React__namespace.default.createElement(InternalCalendar, {
|
|
13482
13493
|
minDate: minDate,
|
|
13483
13494
|
maxDate: maxDate,
|
|
13484
13495
|
value: value,
|
|
@@ -13533,15 +13544,15 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
13533
13544
|
onChange: onChange,
|
|
13534
13545
|
value: value
|
|
13535
13546
|
});
|
|
13536
|
-
return /*#__PURE__*/
|
|
13547
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
13537
13548
|
onPress: function onPress() {
|
|
13538
13549
|
return setOpen(true);
|
|
13539
13550
|
},
|
|
13540
13551
|
disabled: disabled
|
|
13541
|
-
}, /*#__PURE__*/
|
|
13552
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
13542
13553
|
pointerEvents: "none",
|
|
13543
13554
|
testID: "datePickerInputIOS"
|
|
13544
|
-
}, /*#__PURE__*/
|
|
13555
|
+
}, /*#__PURE__*/React__namespace.default.createElement(TextInput, {
|
|
13545
13556
|
label: label,
|
|
13546
13557
|
value: displayValue,
|
|
13547
13558
|
suffix: "calendar-dates-outlined",
|
|
@@ -13552,13 +13563,13 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
13552
13563
|
helpText: helpText,
|
|
13553
13564
|
testID: testID,
|
|
13554
13565
|
style: style
|
|
13555
|
-
})), /*#__PURE__*/
|
|
13566
|
+
})), /*#__PURE__*/React__namespace.default.createElement(BottomSheet$1, {
|
|
13556
13567
|
open: open,
|
|
13557
13568
|
onRequestClose: function onRequestClose() {
|
|
13558
13569
|
return setOpen(false);
|
|
13559
13570
|
},
|
|
13560
13571
|
header: label,
|
|
13561
|
-
footer: /*#__PURE__*/
|
|
13572
|
+
footer: /*#__PURE__*/React__namespace.default.createElement(CompoundButton, {
|
|
13562
13573
|
variant: "text",
|
|
13563
13574
|
text: confirmLabel,
|
|
13564
13575
|
onPress: function onPress() {
|
|
@@ -13569,7 +13580,7 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
13569
13580
|
}
|
|
13570
13581
|
}),
|
|
13571
13582
|
supportedOrientations: supportedOrientations
|
|
13572
|
-
}, /*#__PURE__*/
|
|
13583
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledPickerWrapper$1, null, /*#__PURE__*/React__namespace.default.createElement(DateTimePicker__default.default, {
|
|
13573
13584
|
testID: "datePickerIOS",
|
|
13574
13585
|
value: selectingDate,
|
|
13575
13586
|
minimumDate: minDate,
|
|
@@ -13594,12 +13605,12 @@ var DatePicker = function DatePicker(_ref) {
|
|
|
13594
13605
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
13595
13606
|
props = _objectWithoutProperties(_ref, _excluded$i);
|
|
13596
13607
|
if (variant === 'calendar') {
|
|
13597
|
-
return /*#__PURE__*/
|
|
13608
|
+
return /*#__PURE__*/React__namespace.default.createElement(DatePickerCalendar, props);
|
|
13598
13609
|
}
|
|
13599
13610
|
if (reactNative.Platform.OS === 'ios') {
|
|
13600
|
-
return /*#__PURE__*/
|
|
13611
|
+
return /*#__PURE__*/React__namespace.default.createElement(DatePickerIOS, props);
|
|
13601
13612
|
}
|
|
13602
|
-
return /*#__PURE__*/
|
|
13613
|
+
return /*#__PURE__*/React__namespace.default.createElement(DatePickerAndroid, props);
|
|
13603
13614
|
};
|
|
13604
13615
|
|
|
13605
13616
|
var AnimatedPressable$1 = reactNative.Animated.createAnimatedComponent(reactNative.Pressable);
|
|
@@ -13810,11 +13821,11 @@ var DragableDrawer = function DragableDrawer(_ref) {
|
|
|
13810
13821
|
setAnimatedToValue(animatedValue);
|
|
13811
13822
|
}
|
|
13812
13823
|
})).current;
|
|
13813
|
-
return /*#__PURE__*/
|
|
13824
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledDragableContainer, {
|
|
13814
13825
|
testID: testID,
|
|
13815
13826
|
enableShadow: true,
|
|
13816
13827
|
pointerEvents: "box-none"
|
|
13817
|
-
}, /*#__PURE__*/
|
|
13828
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledDragableDrawerContainer, {
|
|
13818
13829
|
enableShadow: true,
|
|
13819
13830
|
style: {
|
|
13820
13831
|
transform: [{
|
|
@@ -13827,7 +13838,7 @@ var DragableDrawer = function DragableDrawer(_ref) {
|
|
|
13827
13838
|
var nativeEvent = _ref3.nativeEvent;
|
|
13828
13839
|
setHeight(nativeEvent.layout.height);
|
|
13829
13840
|
}
|
|
13830
|
-
}, /*#__PURE__*/
|
|
13841
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledHandlerContainer, panResponder.panHandlers, /*#__PURE__*/React__namespace.default.createElement(StyledHandler, null)), children));
|
|
13831
13842
|
};
|
|
13832
13843
|
|
|
13833
13844
|
var Drawer = function Drawer(_ref) {
|
|
@@ -13862,17 +13873,17 @@ var Drawer = function Drawer(_ref) {
|
|
|
13862
13873
|
return animation.stop();
|
|
13863
13874
|
};
|
|
13864
13875
|
}, [visible]);
|
|
13865
|
-
return /*#__PURE__*/
|
|
13876
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$3, {
|
|
13866
13877
|
testID: testID,
|
|
13867
13878
|
enableShadow: enableShadow,
|
|
13868
13879
|
pointerEvents: "box-none"
|
|
13869
|
-
}, /*#__PURE__*/
|
|
13880
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledBackdrop$1, {
|
|
13870
13881
|
pointerEvents: visible ? 'auto' : 'box-none',
|
|
13871
13882
|
onPress: onDismiss,
|
|
13872
13883
|
style: {
|
|
13873
13884
|
opacity: interpolateBackdropOpacity
|
|
13874
13885
|
}
|
|
13875
|
-
}), /*#__PURE__*/
|
|
13886
|
+
}), /*#__PURE__*/React__namespace.default.createElement(StyledDrawerContainer, {
|
|
13876
13887
|
enableShadow: enableShadow,
|
|
13877
13888
|
onLayout: function onLayout(_ref2) {
|
|
13878
13889
|
var nativeEvent = _ref2.nativeEvent;
|
|
@@ -13927,18 +13938,18 @@ var Empty = function Empty(_ref) {
|
|
|
13927
13938
|
_ref$variant = _ref.variant,
|
|
13928
13939
|
variant = _ref$variant === void 0 ? 'light' : _ref$variant;
|
|
13929
13940
|
var theme = useTheme();
|
|
13930
|
-
return /*#__PURE__*/
|
|
13941
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledWrapper$6, {
|
|
13931
13942
|
style: style,
|
|
13932
13943
|
testID: testID
|
|
13933
|
-
}, image !== undefined && /*#__PURE__*/
|
|
13944
|
+
}, image !== undefined && /*#__PURE__*/React__namespace.default.cloneElement(image, _objectSpread2(_objectSpread2({}, image.props), {}, {
|
|
13934
13945
|
style: [{
|
|
13935
13946
|
marginBottom: theme.__hd__.empty.space.imageMargin
|
|
13936
13947
|
}, image.props.style]
|
|
13937
|
-
})), /*#__PURE__*/
|
|
13948
|
+
})), /*#__PURE__*/React__namespace.default.createElement(StyledTitle, {
|
|
13938
13949
|
themeVariant: variant,
|
|
13939
13950
|
level: "h4",
|
|
13940
13951
|
typeface: "playful"
|
|
13941
|
-
}, title), !!description && /*#__PURE__*/
|
|
13952
|
+
}, title), !!description && /*#__PURE__*/React__namespace.default.createElement(StyledDescription, {
|
|
13942
13953
|
themeVariant: variant,
|
|
13943
13954
|
typeface: "playful"
|
|
13944
13955
|
}, description));
|
|
@@ -14031,7 +14042,7 @@ var PortalHostComponent = function PortalHostComponent(_ref) {
|
|
|
14031
14042
|
deregisterHost();
|
|
14032
14043
|
};
|
|
14033
14044
|
}, []);
|
|
14034
|
-
return /*#__PURE__*/
|
|
14045
|
+
return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, state.map(function (item) {
|
|
14035
14046
|
return item.node;
|
|
14036
14047
|
}));
|
|
14037
14048
|
};
|
|
@@ -14099,11 +14110,11 @@ var PortalProviderComponent = function PortalProviderComponent(_ref) {
|
|
|
14099
14110
|
_useReducer2 = _slicedToArray(_useReducer, 2),
|
|
14100
14111
|
state = _useReducer2[0],
|
|
14101
14112
|
dispatch = _useReducer2[1];
|
|
14102
|
-
return /*#__PURE__*/
|
|
14113
|
+
return /*#__PURE__*/React__namespace.default.createElement(PortalDispatchContext.Provider, {
|
|
14103
14114
|
value: dispatch
|
|
14104
|
-
}, /*#__PURE__*/
|
|
14115
|
+
}, /*#__PURE__*/React__namespace.default.createElement(PortalStateContext.Provider, {
|
|
14105
14116
|
value: state
|
|
14106
|
-
}, children, /*#__PURE__*/
|
|
14117
|
+
}, children, /*#__PURE__*/React__namespace.default.createElement(PortalHost, {
|
|
14107
14118
|
name: rootHostName
|
|
14108
14119
|
})));
|
|
14109
14120
|
};
|
|
@@ -14124,7 +14135,7 @@ var PortalComponent = function PortalComponent(_ref) {
|
|
|
14124
14135
|
return name || nanoid();
|
|
14125
14136
|
}, [name]);
|
|
14126
14137
|
var ChildrenComponent = React.useMemo(function () {
|
|
14127
|
-
return /*#__PURE__*/
|
|
14138
|
+
return /*#__PURE__*/React__namespace.default.createElement(ThemeProvider, {
|
|
14128
14139
|
theme: theme || defaultTheme
|
|
14129
14140
|
}, children);
|
|
14130
14141
|
}, [theme, children, defaultTheme]);
|
|
@@ -14224,12 +14235,12 @@ var Modal = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
14224
14235
|
return backHandler.remove();
|
|
14225
14236
|
};
|
|
14226
14237
|
}, [onRequestClose]);
|
|
14227
|
-
return /*#__PURE__*/
|
|
14238
|
+
return /*#__PURE__*/React__namespace.default.createElement(Portal$1, null, /*#__PURE__*/React__namespace.default.createElement(reactNative.Animated.View, {
|
|
14228
14239
|
style: _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
14229
14240
|
backgroundColor: transparent ? 'transparent' : theme.colors.overlayGlobalSurface,
|
|
14230
14241
|
opacity: animationType !== 'none' ? backdropOpacityAnimation : DEFAULT_BACKDROP_OPACITY
|
|
14231
14242
|
})
|
|
14232
|
-
}), /*#__PURE__*/
|
|
14243
|
+
}), /*#__PURE__*/React__namespace.default.createElement(reactNative.Animated.View, {
|
|
14233
14244
|
testID: testID,
|
|
14234
14245
|
style: _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
14235
14246
|
opacity: animationType === 'fade' ? modalAnimation : 1,
|
|
@@ -14265,7 +14276,7 @@ var ModalWrapper = function ModalWrapper(_ref3) {
|
|
|
14265
14276
|
(_modalRef$current2 = modalRef.current) === null || _modalRef$current2 === void 0 || _modalRef$current2.show();
|
|
14266
14277
|
}
|
|
14267
14278
|
}, [internalVisible]);
|
|
14268
|
-
return internalVisible ? /*#__PURE__*/
|
|
14279
|
+
return internalVisible ? /*#__PURE__*/React__namespace.default.createElement(Modal, _extends$1({
|
|
14269
14280
|
ref: modalRef
|
|
14270
14281
|
}, props)) : null;
|
|
14271
14282
|
};
|
|
@@ -14356,11 +14367,11 @@ var _excluded$g = ["variant", "title", "description", "image", "testID", "ctaTex
|
|
|
14356
14367
|
_excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
|
|
14357
14368
|
var renderImage$1 = function renderImage(image) {
|
|
14358
14369
|
if ( /*#__PURE__*/React.isValidElement(image)) {
|
|
14359
|
-
return /*#__PURE__*/
|
|
14370
|
+
return /*#__PURE__*/React__namespace.default.cloneElement(image, {
|
|
14360
14371
|
testID: 'error-image'
|
|
14361
14372
|
});
|
|
14362
14373
|
}
|
|
14363
|
-
return /*#__PURE__*/
|
|
14374
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledErrorImage, {
|
|
14364
14375
|
source: typeof image === 'string' ? {
|
|
14365
14376
|
uri: image
|
|
14366
14377
|
} : image,
|
|
@@ -14382,19 +14393,19 @@ var ErrorPage = function ErrorPage(_ref) {
|
|
|
14382
14393
|
var showCta = ctaText && onCtaPress !== undefined;
|
|
14383
14394
|
var showSecondaryCta = secondaryCtaText && onSecondaryCtaPress !== undefined;
|
|
14384
14395
|
var showButtonContainer = showCta || showSecondaryCta;
|
|
14385
|
-
return /*#__PURE__*/
|
|
14396
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledErrorContainer$1, _extends$1({
|
|
14386
14397
|
testID: testID,
|
|
14387
14398
|
themeVariant: variant
|
|
14388
|
-
}, 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, {
|
|
14389
14400
|
level: "h4",
|
|
14390
14401
|
typeface: "playful"
|
|
14391
|
-
}, title), description && /*#__PURE__*/
|
|
14402
|
+
}, title), description && /*#__PURE__*/React__namespace.default.createElement(StyledErrorDescription, {
|
|
14392
14403
|
typeface: "playful"
|
|
14393
|
-
}, description)), showButtonContainer && /*#__PURE__*/
|
|
14404
|
+
}, description)), showButtonContainer && /*#__PURE__*/React__namespace.default.createElement(StyledErrorButtonContainer, null, showCta && /*#__PURE__*/React__namespace.default.createElement(StyledErrorButtonPrimary, {
|
|
14394
14405
|
variant: "filled",
|
|
14395
14406
|
text: ctaText,
|
|
14396
14407
|
onPress: onCtaPress
|
|
14397
|
-
}), showSecondaryCta && /*#__PURE__*/
|
|
14408
|
+
}), showSecondaryCta && /*#__PURE__*/React__namespace.default.createElement(StyledErrorButtonSecondary, {
|
|
14398
14409
|
variant: "text",
|
|
14399
14410
|
text: secondaryCtaText,
|
|
14400
14411
|
onPress: onSecondaryCtaPress
|
|
@@ -14453,7 +14464,7 @@ var ErrorComponent = function ErrorComponent(_ref2) {
|
|
|
14453
14464
|
}
|
|
14454
14465
|
}, [isVisible, onCloseModal]);
|
|
14455
14466
|
if (variant === 'full-screen') {
|
|
14456
|
-
return /*#__PURE__*/
|
|
14467
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledErrorModal, {
|
|
14457
14468
|
visible: isVisible,
|
|
14458
14469
|
onRequestClose: function onRequestClose() {
|
|
14459
14470
|
return setIsVisible(false);
|
|
@@ -14462,7 +14473,7 @@ var ErrorComponent = function ErrorComponent(_ref2) {
|
|
|
14462
14473
|
return setIsVisible(false);
|
|
14463
14474
|
},
|
|
14464
14475
|
animationType: "slide"
|
|
14465
|
-
}, /*#__PURE__*/
|
|
14476
|
+
}, /*#__PURE__*/React__namespace.default.createElement(ErrorPage, _extends$1({
|
|
14466
14477
|
variant: variant,
|
|
14467
14478
|
title: title,
|
|
14468
14479
|
description: description,
|
|
@@ -14478,7 +14489,7 @@ var ErrorComponent = function ErrorComponent(_ref2) {
|
|
|
14478
14489
|
}
|
|
14479
14490
|
}, nativeProps)));
|
|
14480
14491
|
}
|
|
14481
|
-
return /*#__PURE__*/
|
|
14492
|
+
return /*#__PURE__*/React__namespace.default.createElement(ErrorPage, _extends$1({
|
|
14482
14493
|
variant: variant,
|
|
14483
14494
|
title: title,
|
|
14484
14495
|
description: description,
|
|
@@ -14559,13 +14570,13 @@ var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
|
|
|
14559
14570
|
inputRange: [0, 1],
|
|
14560
14571
|
outputRange: ['0deg', '-45deg']
|
|
14561
14572
|
});
|
|
14562
|
-
return /*#__PURE__*/
|
|
14573
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.Animated.View, {
|
|
14563
14574
|
style: reactNative.StyleSheet.flatten([{
|
|
14564
14575
|
transform: [{
|
|
14565
14576
|
rotate: interpolatedRotateAnimation
|
|
14566
14577
|
}]
|
|
14567
14578
|
}])
|
|
14568
|
-
}, /*#__PURE__*/
|
|
14579
|
+
}, /*#__PURE__*/React__namespace.default.createElement(AnimatedIcons, _extends$1({
|
|
14569
14580
|
size: "xsmall"
|
|
14570
14581
|
}, iconProps)));
|
|
14571
14582
|
};
|
|
@@ -14580,13 +14591,13 @@ var IconOnlyContent = function IconOnlyContent(_ref) {
|
|
|
14580
14591
|
animated = _ref.animated,
|
|
14581
14592
|
active = _ref.active;
|
|
14582
14593
|
if (animated) {
|
|
14583
|
-
return /*#__PURE__*/
|
|
14594
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledIconContainer, null, /*#__PURE__*/React__namespace.default.createElement(AnimatedFABIcon, {
|
|
14584
14595
|
active: active,
|
|
14585
14596
|
icon: icon,
|
|
14586
14597
|
testID: "animated-fab-icon"
|
|
14587
14598
|
}));
|
|
14588
14599
|
}
|
|
14589
|
-
return /*#__PURE__*/
|
|
14600
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledFABIcon, {
|
|
14590
14601
|
icon: icon,
|
|
14591
14602
|
testID: "styled-fab-icon"
|
|
14592
14603
|
});
|
|
@@ -14594,11 +14605,11 @@ var IconOnlyContent = function IconOnlyContent(_ref) {
|
|
|
14594
14605
|
var IconWithTextContent = function IconWithTextContent(_ref2) {
|
|
14595
14606
|
var icon = _ref2.icon,
|
|
14596
14607
|
title = _ref2.title;
|
|
14597
|
-
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, {
|
|
14598
14609
|
size: "xsmall",
|
|
14599
14610
|
icon: icon,
|
|
14600
14611
|
testID: "styled-fab-icon"
|
|
14601
|
-
})), /*#__PURE__*/
|
|
14612
|
+
})), /*#__PURE__*/React__namespace.default.createElement(StyledFABText, null, title));
|
|
14602
14613
|
};
|
|
14603
14614
|
var animateWidth = function animateWidth() {
|
|
14604
14615
|
reactNative.LayoutAnimation.configureNext({
|
|
@@ -14619,7 +14630,7 @@ var FAB$1 = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
|
|
|
14619
14630
|
active = _ref3.active,
|
|
14620
14631
|
style = _ref3.style;
|
|
14621
14632
|
var theme = useTheme();
|
|
14622
|
-
var _React$useState =
|
|
14633
|
+
var _React$useState = React__namespace.default.useState({
|
|
14623
14634
|
hideTitle: false,
|
|
14624
14635
|
hideButton: false
|
|
14625
14636
|
}),
|
|
@@ -14628,17 +14639,17 @@ var FAB$1 = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
|
|
|
14628
14639
|
setDisplayState = _React$useState2[1];
|
|
14629
14640
|
var isIconOnly = displayState.hideTitle || active || !title;
|
|
14630
14641
|
var animatedValues = {
|
|
14631
|
-
opacity:
|
|
14632
|
-
width:
|
|
14633
|
-
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
|
|
14634
14645
|
};
|
|
14635
14646
|
var marginBottom = Number((_StyleSheet$flatten = reactNative.StyleSheet.flatten(style)) === null || _StyleSheet$flatten === void 0 ? void 0 : _StyleSheet$flatten.marginBottom) || 0;
|
|
14636
|
-
var _React$useState3 =
|
|
14647
|
+
var _React$useState3 = React__namespace.default.useState(0),
|
|
14637
14648
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
14638
14649
|
buttonWidth = _React$useState4[0],
|
|
14639
14650
|
setButtonWidth = _React$useState4[1];
|
|
14640
14651
|
var hasSetButtonWidth = buttonWidth > 0;
|
|
14641
|
-
|
|
14652
|
+
React__namespace.default.useImperativeHandle(ref, function () {
|
|
14642
14653
|
return {
|
|
14643
14654
|
show: function show() {
|
|
14644
14655
|
reactNative.Animated.spring(animatedValues.translateY, {
|
|
@@ -14687,7 +14698,7 @@ var FAB$1 = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
|
|
|
14687
14698
|
}
|
|
14688
14699
|
};
|
|
14689
14700
|
}, []);
|
|
14690
|
-
return /*#__PURE__*/
|
|
14701
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledFAB$1, {
|
|
14691
14702
|
onLayout: function onLayout(event) {
|
|
14692
14703
|
return !hasSetButtonWidth && !active && setButtonWidth(event.nativeEvent.layout.width);
|
|
14693
14704
|
},
|
|
@@ -14704,7 +14715,7 @@ var FAB$1 = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
|
|
|
14704
14715
|
}],
|
|
14705
14716
|
testID: testID,
|
|
14706
14717
|
themeActive: active
|
|
14707
|
-
}, /*#__PURE__*/
|
|
14718
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.Animated.View, {
|
|
14708
14719
|
style: {
|
|
14709
14720
|
flexDirection: 'row',
|
|
14710
14721
|
opacity: animatedValues.opacity.interpolate({
|
|
@@ -14712,11 +14723,11 @@ var FAB$1 = /*#__PURE__*/React.forwardRef(function (_ref3, ref) {
|
|
|
14712
14723
|
outputRange: [0, 1]
|
|
14713
14724
|
})
|
|
14714
14725
|
}
|
|
14715
|
-
}, isIconOnly ? /*#__PURE__*/
|
|
14726
|
+
}, isIconOnly ? /*#__PURE__*/React__namespace.default.createElement(IconOnlyContent, {
|
|
14716
14727
|
animated: animated,
|
|
14717
14728
|
active: active,
|
|
14718
14729
|
icon: active ? 'add' : icon
|
|
14719
|
-
}) : /*#__PURE__*/
|
|
14730
|
+
}) : /*#__PURE__*/React__namespace.default.createElement(IconWithTextContent, {
|
|
14720
14731
|
icon: icon,
|
|
14721
14732
|
title: title
|
|
14722
14733
|
})));
|
|
@@ -14760,12 +14771,12 @@ var ActionItem = function ActionItem(_ref) {
|
|
|
14760
14771
|
_ref$active = _ref.active,
|
|
14761
14772
|
active = _ref$active === void 0 ? false : _ref$active;
|
|
14762
14773
|
var theme = useTheme();
|
|
14763
|
-
var animatedValue =
|
|
14774
|
+
var animatedValue = React__namespace.default.useRef(new reactNative.Animated.Value(0));
|
|
14764
14775
|
var translateY = animatedValue.current.interpolate({
|
|
14765
14776
|
inputRange: [0, 1],
|
|
14766
14777
|
outputRange: [50, 0]
|
|
14767
14778
|
});
|
|
14768
|
-
|
|
14779
|
+
React__namespace.default.useEffect(function () {
|
|
14769
14780
|
reactNative.Animated.spring(animatedValue.current, {
|
|
14770
14781
|
toValue: active ? 1 : 0,
|
|
14771
14782
|
useNativeDriver: reactNative.Platform.OS !== 'web',
|
|
@@ -14774,21 +14785,21 @@ var ActionItem = function ActionItem(_ref) {
|
|
|
14774
14785
|
bounciness: 10
|
|
14775
14786
|
}).start();
|
|
14776
14787
|
}, [active, index]);
|
|
14777
|
-
return /*#__PURE__*/
|
|
14788
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.Animated.View, {
|
|
14778
14789
|
style: {
|
|
14779
14790
|
transform: [{
|
|
14780
14791
|
translateY: translateY
|
|
14781
14792
|
}]
|
|
14782
14793
|
}
|
|
14783
|
-
}, /*#__PURE__*/
|
|
14794
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledActionItem, {
|
|
14784
14795
|
underlayColor: theme.__hd__.fab.colors.actionItemPressedBackground,
|
|
14785
14796
|
style: style,
|
|
14786
14797
|
onPress: onPress,
|
|
14787
14798
|
testID: testID
|
|
14788
|
-
}, /*#__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, {
|
|
14789
14800
|
size: "xsmall",
|
|
14790
14801
|
icon: icon
|
|
14791
|
-
})), /*#__PURE__*/
|
|
14802
|
+
})), /*#__PURE__*/React__namespace.default.createElement(StyledActionItemText, null, title))));
|
|
14792
14803
|
};
|
|
14793
14804
|
|
|
14794
14805
|
var StyledContainer$2 = index$9(reactNative.View)({
|
|
@@ -14853,7 +14864,7 @@ var ActionGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
14853
14864
|
var theme = useTheme();
|
|
14854
14865
|
var fabRef = React.useRef(null);
|
|
14855
14866
|
var animatedValue = React.useRef(new reactNative.Animated.Value(active ? 1 : 0));
|
|
14856
|
-
|
|
14867
|
+
React__namespace.default.useImperativeHandle(ref, function () {
|
|
14857
14868
|
return {
|
|
14858
14869
|
showFAB: function showFAB() {
|
|
14859
14870
|
var _fabRef$current;
|
|
@@ -14869,7 +14880,7 @@ var ActionGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
14869
14880
|
}
|
|
14870
14881
|
};
|
|
14871
14882
|
}, [fabRef]);
|
|
14872
|
-
|
|
14883
|
+
React__namespace.default.useEffect(function () {
|
|
14873
14884
|
reactNative.Animated.spring(animatedValue.current, {
|
|
14874
14885
|
toValue: active ? 1 : 0,
|
|
14875
14886
|
delay: 100,
|
|
@@ -14887,11 +14898,11 @@ var ActionGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
14887
14898
|
inputRange: [0, 1],
|
|
14888
14899
|
outputRange: [0, 1]
|
|
14889
14900
|
});
|
|
14890
|
-
return /*#__PURE__*/
|
|
14901
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$2, {
|
|
14891
14902
|
testID: testID,
|
|
14892
14903
|
pointerEvents: "box-none",
|
|
14893
14904
|
style: style
|
|
14894
|
-
}, /*#__PURE__*/
|
|
14905
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.Animated.View, null, /*#__PURE__*/React__namespace.default.createElement(StyledFAB, {
|
|
14895
14906
|
key: "fab",
|
|
14896
14907
|
testID: "fab",
|
|
14897
14908
|
icon: fabIcon,
|
|
@@ -14900,36 +14911,36 @@ var ActionGroup = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
14900
14911
|
active: active,
|
|
14901
14912
|
title: fabTitle,
|
|
14902
14913
|
ref: fabRef
|
|
14903
|
-
})), /*#__PURE__*/
|
|
14914
|
+
})), /*#__PURE__*/React__namespace.default.createElement(reactNative.Modal, {
|
|
14904
14915
|
visible: active,
|
|
14905
14916
|
animationType: "fade",
|
|
14906
14917
|
transparent: true,
|
|
14907
14918
|
statusBarTranslucent: true,
|
|
14908
14919
|
supportedOrientations: supportedOrientations
|
|
14909
|
-
}, /*#__PURE__*/
|
|
14920
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledContainerInModal, {
|
|
14910
14921
|
testID: testID,
|
|
14911
14922
|
style: [style]
|
|
14912
|
-
}, /*#__PURE__*/
|
|
14923
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledBackdrop, {
|
|
14913
14924
|
testID: "back-drop",
|
|
14914
14925
|
onPress: onBackdropPress
|
|
14915
|
-
}), /*#__PURE__*/
|
|
14926
|
+
}), /*#__PURE__*/React__namespace.default.createElement(StyledActionGroupContainer, {
|
|
14916
14927
|
testID: "action-group",
|
|
14917
14928
|
pointerEvents: "box-none",
|
|
14918
14929
|
style: {
|
|
14919
14930
|
opacity: actionGroupOpacity
|
|
14920
14931
|
}
|
|
14921
|
-
}, /*#__PURE__*/
|
|
14932
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Box, {
|
|
14922
14933
|
style: [style, {
|
|
14923
14934
|
paddingBottom: 0
|
|
14924
14935
|
}]
|
|
14925
14936
|
}, items === null || items === void 0 ? void 0 : items.map(function (itemProp, index) {
|
|
14926
|
-
return /*#__PURE__*/
|
|
14937
|
+
return /*#__PURE__*/React__namespace.default.createElement(ActionItem, _extends$1({
|
|
14927
14938
|
key: itemProp.key || "".concat(itemProp.icon, "_").concat(itemProp.title)
|
|
14928
14939
|
}, itemProp, {
|
|
14929
14940
|
index: active ? index : items.length - index,
|
|
14930
14941
|
active: active
|
|
14931
14942
|
}));
|
|
14932
|
-
}))), active && /*#__PURE__*/
|
|
14943
|
+
}))), active && /*#__PURE__*/React__namespace.default.createElement(StyledFAB
|
|
14933
14944
|
// This FAB is moved up a bit compared to the original FAB,
|
|
14934
14945
|
// set marginBottom to negative value to compensate for it
|
|
14935
14946
|
, {
|
|
@@ -15053,9 +15064,9 @@ var getIntentIcon = function getIntentIcon(intent) {
|
|
|
15053
15064
|
var ToastIcon = function ToastIcon(_ref) {
|
|
15054
15065
|
var themeIntent = _ref.themeIntent,
|
|
15055
15066
|
icon = _ref.icon;
|
|
15056
|
-
return icon ? /*#__PURE__*/
|
|
15067
|
+
return icon ? /*#__PURE__*/React__namespace.default.createElement(IconContainer, {
|
|
15057
15068
|
testID: "toast-left-icon"
|
|
15058
|
-
}, /*#__PURE__*/
|
|
15069
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
15059
15070
|
icon: icon,
|
|
15060
15071
|
size: "small",
|
|
15061
15072
|
intent: themeIntent === 'snackbar' ? 'text-inverted' : 'text'
|
|
@@ -15107,7 +15118,7 @@ var Toast$1 = function Toast(_ref2) {
|
|
|
15107
15118
|
inputRange: [0, 1],
|
|
15108
15119
|
outputRange: toastConfig.position === 'top' ? [-20, distance] : [20, -distance]
|
|
15109
15120
|
});
|
|
15110
|
-
return /*#__PURE__*/
|
|
15121
|
+
return /*#__PURE__*/React__namespace.default.createElement(Container, {
|
|
15111
15122
|
testID: "toast-container",
|
|
15112
15123
|
themeVariant: variant,
|
|
15113
15124
|
themeIntent: intent,
|
|
@@ -15117,21 +15128,21 @@ var Toast$1 = function Toast(_ref2) {
|
|
|
15117
15128
|
translateY: interpolateY
|
|
15118
15129
|
}]
|
|
15119
15130
|
}]
|
|
15120
|
-
}, /*#__PURE__*/
|
|
15131
|
+
}, /*#__PURE__*/React__namespace.default.createElement(ContentContainer, {
|
|
15121
15132
|
showDivider: !!actionLabel
|
|
15122
|
-
}, icon !== null ? /*#__PURE__*/
|
|
15133
|
+
}, icon !== null ? /*#__PURE__*/React__namespace.default.createElement(ToastIcon, {
|
|
15123
15134
|
themeIntent: intent,
|
|
15124
15135
|
icon: icon || getIntentIcon(intent)
|
|
15125
|
-
}) : null, /*#__PURE__*/
|
|
15136
|
+
}) : null, /*#__PURE__*/React__namespace.default.createElement(TextContainer, null, typeof content === 'string' ? /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
15126
15137
|
variant: "small",
|
|
15127
15138
|
intent: intent === 'snackbar' ? 'inverted' : 'body'
|
|
15128
|
-
}, content) : content)), actionLabel ? /*#__PURE__*/
|
|
15139
|
+
}, content) : content)), actionLabel ? /*#__PURE__*/React__namespace.default.createElement(CTAWrapper, {
|
|
15129
15140
|
testID: "toast-action-button",
|
|
15130
15141
|
onPress: function onPress() {
|
|
15131
15142
|
onAction === null || onAction === void 0 || onAction();
|
|
15132
15143
|
onDismiss === null || onDismiss === void 0 || onDismiss();
|
|
15133
15144
|
}
|
|
15134
|
-
}, typeof actionLabel === 'string' ? /*#__PURE__*/
|
|
15145
|
+
}, typeof actionLabel === 'string' ? /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
15135
15146
|
variant: "small-bold",
|
|
15136
15147
|
intent: intent === 'snackbar' ? 'inverted' : 'body'
|
|
15137
15148
|
}, actionLabel) : actionLabel) : null);
|
|
@@ -15145,7 +15156,7 @@ var SingleToastDisplay = function SingleToastDisplay(_ref) {
|
|
|
15145
15156
|
setToastList = _ref.setToastList;
|
|
15146
15157
|
var theme = useTheme$1();
|
|
15147
15158
|
var toast = toastList[toastList.length - 1];
|
|
15148
|
-
return toast ? /*#__PURE__*/
|
|
15159
|
+
return toast ? /*#__PURE__*/React__namespace.default.createElement(Toast$1, _extends$1({}, toast.props, {
|
|
15149
15160
|
key: toast.id,
|
|
15150
15161
|
style: {
|
|
15151
15162
|
marginBottom: theme.space.small
|
|
@@ -15161,7 +15172,7 @@ var SingleToastDisplay = function SingleToastDisplay(_ref) {
|
|
|
15161
15172
|
}
|
|
15162
15173
|
})) : null;
|
|
15163
15174
|
};
|
|
15164
|
-
var ToastContainer = /*#__PURE__*/
|
|
15175
|
+
var ToastContainer = /*#__PURE__*/React__namespace.default.forwardRef(function (_ref2, ref) {
|
|
15165
15176
|
var _ref2$displayType = _ref2.displayType,
|
|
15166
15177
|
displayType = _ref2$displayType === void 0 ? 'single' : _ref2$displayType,
|
|
15167
15178
|
_ref2$position = _ref2.position,
|
|
@@ -15196,17 +15207,17 @@ var ToastContainer = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
|
15196
15207
|
}
|
|
15197
15208
|
};
|
|
15198
15209
|
});
|
|
15199
|
-
return /*#__PURE__*/
|
|
15210
|
+
return /*#__PURE__*/React__namespace.default.createElement(ToastContainerWrapper, {
|
|
15200
15211
|
pointerEvents: "box-none",
|
|
15201
15212
|
position: position,
|
|
15202
15213
|
style: style
|
|
15203
|
-
}, displayType === 'single' ? /*#__PURE__*/
|
|
15214
|
+
}, displayType === 'single' ? /*#__PURE__*/React__namespace.default.createElement(SingleToastDisplay, {
|
|
15204
15215
|
toastList: toastList,
|
|
15205
15216
|
setToastList: setToastList
|
|
15206
15217
|
}) : toastList.map(function (_ref3) {
|
|
15207
15218
|
var id = _ref3.id,
|
|
15208
15219
|
props = _ref3.props;
|
|
15209
|
-
return /*#__PURE__*/
|
|
15220
|
+
return /*#__PURE__*/React__namespace.default.createElement(Toast$1, _extends$1({}, props, {
|
|
15210
15221
|
key: id,
|
|
15211
15222
|
style: {
|
|
15212
15223
|
marginBottom: theme.space.small
|
|
@@ -15248,15 +15259,15 @@ var ToastProvider = function ToastProvider(_ref) {
|
|
|
15248
15259
|
position: position
|
|
15249
15260
|
};
|
|
15250
15261
|
}, [displayType, position]);
|
|
15251
|
-
return /*#__PURE__*/
|
|
15262
|
+
return /*#__PURE__*/React__namespace.default.createElement(ToastContext.Provider, {
|
|
15252
15263
|
value: refState || fallbackToastControlContext
|
|
15253
|
-
}, /*#__PURE__*/
|
|
15264
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
15254
15265
|
style: {
|
|
15255
15266
|
flex: 1
|
|
15256
15267
|
}
|
|
15257
|
-
}, refState ? children : null, /*#__PURE__*/
|
|
15268
|
+
}, refState ? children : null, /*#__PURE__*/React__namespace.default.createElement(ToastConfigContext.Provider, {
|
|
15258
15269
|
value: config
|
|
15259
|
-
}, /*#__PURE__*/
|
|
15270
|
+
}, /*#__PURE__*/React__namespace.default.createElement(ToastContainer, {
|
|
15260
15271
|
ref: toastRef,
|
|
15261
15272
|
displayType: displayType,
|
|
15262
15273
|
position: position
|
|
@@ -15272,9 +15283,9 @@ var Toast = {
|
|
|
15272
15283
|
var HeroDesignProvider = function HeroDesignProvider(_ref) {
|
|
15273
15284
|
var theme = _ref.theme,
|
|
15274
15285
|
children = _ref.children;
|
|
15275
|
-
return /*#__PURE__*/
|
|
15286
|
+
return /*#__PURE__*/React__namespace.default.createElement(ThemeProvider, {
|
|
15276
15287
|
theme: theme
|
|
15277
|
-
}, /*#__PURE__*/
|
|
15288
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Toast.Provider, null, /*#__PURE__*/React__namespace.default.createElement(Portal$1.Provider, null, children)));
|
|
15278
15289
|
};
|
|
15279
15290
|
|
|
15280
15291
|
var StyledListItemContainer$1 = index$9(reactNative.TouchableHighlight)(function (_ref) {
|
|
@@ -15366,7 +15377,7 @@ var ListItem = function ListItem(_ref) {
|
|
|
15366
15377
|
_ref$disabled = _ref.disabled,
|
|
15367
15378
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled;
|
|
15368
15379
|
var theme = useTheme();
|
|
15369
|
-
return /*#__PURE__*/
|
|
15380
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledListItemContainer$1, {
|
|
15370
15381
|
style: style,
|
|
15371
15382
|
testID: testID,
|
|
15372
15383
|
themeSelected: selected,
|
|
@@ -15374,26 +15385,26 @@ var ListItem = function ListItem(_ref) {
|
|
|
15374
15385
|
onPress: onPress,
|
|
15375
15386
|
disabled: disabled,
|
|
15376
15387
|
underlayColor: theme.__hd__.list.colors.checkedListItemContainerBackground
|
|
15377
|
-
}, /*#__PURE__*/
|
|
15388
|
+
}, /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, leadingStatus && /*#__PURE__*/React__namespace.default.createElement(StyledLeadingStatus, {
|
|
15378
15389
|
themeLeadingStatusIntent: leadingStatus,
|
|
15379
15390
|
testID: "leadingStatus"
|
|
15380
|
-
}), /*#__PURE__*/
|
|
15391
|
+
}), /*#__PURE__*/React__namespace.default.createElement(StyledContentContainer, null, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
15381
15392
|
style: {
|
|
15382
15393
|
flexDirection: 'row',
|
|
15383
15394
|
alignItems: 'center'
|
|
15384
15395
|
}
|
|
15385
|
-
}, prefix && /*#__PURE__*/
|
|
15396
|
+
}, prefix && /*#__PURE__*/React__namespace.default.createElement(StyledPrefixContainer$1, null, typeof prefix === 'string' ? /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
15386
15397
|
icon: prefix,
|
|
15387
15398
|
intent: disabled ? 'disabled-text' : 'primary'
|
|
15388
|
-
}) : prefix), /*#__PURE__*/
|
|
15399
|
+
}) : prefix), /*#__PURE__*/React__namespace.default.createElement(StyledTitleContainer$1, null, typeof title === 'string' ? /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
15389
15400
|
intent: "body"
|
|
15390
|
-
}, title) : title, !!subtitle && /*#__PURE__*/
|
|
15401
|
+
}, title) : title, !!subtitle && /*#__PURE__*/React__namespace.default.createElement(Typography.Caption, {
|
|
15391
15402
|
intent: "subdued"
|
|
15392
|
-
}, subtitle)), suffix && /*#__PURE__*/
|
|
15403
|
+
}, subtitle)), suffix && /*#__PURE__*/React__namespace.default.createElement(StyledSuffixContainer$1, null, typeof suffix === 'string' ? /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
15393
15404
|
icon: suffix,
|
|
15394
15405
|
intent: disabled ? 'disabled-text' : 'primary',
|
|
15395
15406
|
size: "small"
|
|
15396
|
-
}) : suffix)), children && /*#__PURE__*/
|
|
15407
|
+
}) : suffix)), children && /*#__PURE__*/React__namespace.default.createElement(StyledChildrenContainer, null, children))));
|
|
15397
15408
|
};
|
|
15398
15409
|
|
|
15399
15410
|
var StyledPrefixContainer = index$9(reactNative.View)(function (_ref) {
|
|
@@ -15440,7 +15451,7 @@ var BasicListItem = function BasicListItem(_ref) {
|
|
|
15440
15451
|
disabled = _ref$disabled === void 0 ? false : _ref$disabled,
|
|
15441
15452
|
onPress = _ref.onPress;
|
|
15442
15453
|
var theme = useTheme();
|
|
15443
|
-
return /*#__PURE__*/
|
|
15454
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledListItemContainer, {
|
|
15444
15455
|
style: style,
|
|
15445
15456
|
testID: testID,
|
|
15446
15457
|
themeSelected: selected,
|
|
@@ -15448,14 +15459,14 @@ var BasicListItem = function BasicListItem(_ref) {
|
|
|
15448
15459
|
onPress: onPress,
|
|
15449
15460
|
disabled: disabled,
|
|
15450
15461
|
underlayColor: theme.__hd__.list.colors.checkedListItemContainerBackground
|
|
15451
|
-
}, /*#__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, {
|
|
15452
15463
|
icon: prefix,
|
|
15453
15464
|
intent: disabled ? 'disabled-text' : 'primary'
|
|
15454
|
-
}) : prefix), /*#__PURE__*/
|
|
15465
|
+
}) : prefix), /*#__PURE__*/React__namespace.default.createElement(StyledTitleContainer, null, typeof title === 'string' ? /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
15455
15466
|
intent: "body"
|
|
15456
|
-
}, title) : title, subtitle && /*#__PURE__*/
|
|
15467
|
+
}, title) : title, subtitle && /*#__PURE__*/React__namespace.default.createElement(Typography.Caption, {
|
|
15457
15468
|
intent: "subdued"
|
|
15458
|
-
}, subtitle)), suffix && /*#__PURE__*/
|
|
15469
|
+
}, subtitle)), suffix && /*#__PURE__*/React__namespace.default.createElement(StyledSuffixContainer, null, typeof suffix === 'string' ? /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
15459
15470
|
icon: suffix,
|
|
15460
15471
|
size: "small",
|
|
15461
15472
|
intent: disabled ? 'disabled-text' : 'primary'
|
|
@@ -15565,16 +15576,16 @@ function PinCell(_ref) {
|
|
|
15565
15576
|
focused = _ref$focused === void 0 ? false : _ref$focused,
|
|
15566
15577
|
_ref$state = _ref.state,
|
|
15567
15578
|
state = _ref$state === void 0 ? 'default' : _ref$state;
|
|
15568
|
-
return /*#__PURE__*/
|
|
15579
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledCell, {
|
|
15569
15580
|
themeFocused: focused,
|
|
15570
15581
|
themeState: state
|
|
15571
|
-
}, value === '' && /*#__PURE__*/
|
|
15582
|
+
}, value === '' && /*#__PURE__*/React__namespace.default.createElement(StyledMask, {
|
|
15572
15583
|
themeState: state,
|
|
15573
15584
|
testID: "pin-cell-mask"
|
|
15574
|
-
}), value !== '' && secure && /*#__PURE__*/
|
|
15585
|
+
}), value !== '' && secure && /*#__PURE__*/React__namespace.default.createElement(StyledFilledMask, {
|
|
15575
15586
|
themeState: state,
|
|
15576
15587
|
testID: "pin-cell-filled-mask"
|
|
15577
|
-
}), value !== '' && !secure && /*#__PURE__*/
|
|
15588
|
+
}), value !== '' && !secure && /*#__PURE__*/React__namespace.default.createElement(StyledCellText, {
|
|
15578
15589
|
themeState: state,
|
|
15579
15590
|
level: "h3"
|
|
15580
15591
|
}, value));
|
|
@@ -15647,24 +15658,24 @@ var PinInput = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
15647
15658
|
blur: blur
|
|
15648
15659
|
};
|
|
15649
15660
|
});
|
|
15650
|
-
return /*#__PURE__*/
|
|
15661
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledWrapper$5, {
|
|
15651
15662
|
style: style,
|
|
15652
15663
|
testID: testID
|
|
15653
|
-
}, /*#__PURE__*/
|
|
15654
|
-
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, {
|
|
15655
15666
|
key: index
|
|
15656
|
-
}, index !== 0 && /*#__PURE__*/
|
|
15667
|
+
}, index !== 0 && /*#__PURE__*/React__namespace.default.createElement(StyledSpacer, null), /*#__PURE__*/React__namespace.default.createElement(PinCell, {
|
|
15657
15668
|
value: value.charAt(index),
|
|
15658
15669
|
secure: secure,
|
|
15659
15670
|
focused: focused && index === value.length,
|
|
15660
15671
|
state: state
|
|
15661
15672
|
}));
|
|
15662
|
-
})), state === 'error' && /*#__PURE__*/
|
|
15673
|
+
})), state === 'error' && /*#__PURE__*/React__namespace.default.createElement(StyledErrorContainer, null, /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
15663
15674
|
icon: "circle-info",
|
|
15664
15675
|
size: "xsmall",
|
|
15665
15676
|
intent: "danger",
|
|
15666
15677
|
testID: "pin-error-icon"
|
|
15667
|
-
}), /*#__PURE__*/
|
|
15678
|
+
}), /*#__PURE__*/React__namespace.default.createElement(StyledErrorMessage, null, error)), /*#__PURE__*/React__namespace.default.createElement(StyledHiddenInput, {
|
|
15668
15679
|
themePinLength: length,
|
|
15669
15680
|
ref: inputRef,
|
|
15670
15681
|
value: value,
|
|
@@ -15769,9 +15780,9 @@ var _excluded$e = ["value", "renderValue", "intent", "style", "testID"];
|
|
|
15769
15780
|
var HalfCircle = function HalfCircle(_ref) {
|
|
15770
15781
|
var type = _ref.type,
|
|
15771
15782
|
themeIntent = _ref.themeIntent;
|
|
15772
|
-
return /*#__PURE__*/
|
|
15783
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledHalfCircleWrapper, null, type === 'background' ? /*#__PURE__*/React__namespace.default.createElement(StyledHalfCircleInnerBG, {
|
|
15773
15784
|
themeIntent: themeIntent
|
|
15774
|
-
}) : /*#__PURE__*/
|
|
15785
|
+
}) : /*#__PURE__*/React__namespace.default.createElement(StyledHalfCircleInnerFG, {
|
|
15775
15786
|
themeIntent: themeIntent
|
|
15776
15787
|
}));
|
|
15777
15788
|
};
|
|
@@ -15823,13 +15834,13 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
15823
15834
|
outputRange: ['0deg', '360deg'],
|
|
15824
15835
|
extrapolate: 'clamp'
|
|
15825
15836
|
});
|
|
15826
|
-
return /*#__PURE__*/
|
|
15837
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.View, _extends$1({}, nativeProps, {
|
|
15827
15838
|
testID: testID,
|
|
15828
15839
|
style: style
|
|
15829
|
-
}), /*#__PURE__*/
|
|
15840
|
+
}), /*#__PURE__*/React__namespace.default.createElement(StyledContainer$1, null, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, null, /*#__PURE__*/React__namespace.default.createElement(HalfCircle, {
|
|
15830
15841
|
type: "foreground",
|
|
15831
15842
|
themeIntent: intent
|
|
15832
|
-
}), /*#__PURE__*/
|
|
15843
|
+
}), /*#__PURE__*/React__namespace.default.createElement(reactNative.Animated.View, {
|
|
15833
15844
|
style: _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
15834
15845
|
transform: [{
|
|
15835
15846
|
translateX: radius / 2
|
|
@@ -15839,10 +15850,10 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
15839
15850
|
translateX: -radius / 2
|
|
15840
15851
|
}]
|
|
15841
15852
|
})
|
|
15842
|
-
}, /*#__PURE__*/
|
|
15853
|
+
}, /*#__PURE__*/React__namespace.default.createElement(HalfCircle, {
|
|
15843
15854
|
type: "background",
|
|
15844
15855
|
themeIntent: intent
|
|
15845
|
-
}))), /*#__PURE__*/
|
|
15856
|
+
}))), /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
15846
15857
|
style: {
|
|
15847
15858
|
transform: [{
|
|
15848
15859
|
rotate: '180deg'
|
|
@@ -15850,10 +15861,10 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
15850
15861
|
zIndex: 1,
|
|
15851
15862
|
marginLeft: -0.1
|
|
15852
15863
|
}
|
|
15853
|
-
}, /*#__PURE__*/
|
|
15864
|
+
}, /*#__PURE__*/React__namespace.default.createElement(HalfCircle, {
|
|
15854
15865
|
type: "foreground",
|
|
15855
15866
|
themeIntent: intent
|
|
15856
|
-
}), /*#__PURE__*/
|
|
15867
|
+
}), /*#__PURE__*/React__namespace.default.createElement(reactNative.Animated.View, {
|
|
15857
15868
|
style: _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
15858
15869
|
transform: [{
|
|
15859
15870
|
translateX: radius / 2
|
|
@@ -15864,21 +15875,21 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
15864
15875
|
}],
|
|
15865
15876
|
opacity: interpolateOpacityRightHalf
|
|
15866
15877
|
})
|
|
15867
|
-
}, /*#__PURE__*/
|
|
15878
|
+
}, /*#__PURE__*/React__namespace.default.createElement(HalfCircle, {
|
|
15868
15879
|
type: "background",
|
|
15869
15880
|
themeIntent: intent
|
|
15870
|
-
}))), /*#__PURE__*/
|
|
15881
|
+
}))), /*#__PURE__*/React__namespace.default.createElement(StyledStrokeEnd, {
|
|
15871
15882
|
themeIntent: intent
|
|
15872
|
-
}), /*#__PURE__*/
|
|
15883
|
+
}), /*#__PURE__*/React__namespace.default.createElement(reactNative.Animated.View, {
|
|
15873
15884
|
style: _objectSpread2(_objectSpread2({}, reactNative.StyleSheet.absoluteFillObject), {}, {
|
|
15874
15885
|
zIndex: 2,
|
|
15875
15886
|
transform: [{
|
|
15876
15887
|
rotate: interpolateDotRotate
|
|
15877
15888
|
}]
|
|
15878
15889
|
})
|
|
15879
|
-
}, /*#__PURE__*/
|
|
15890
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledStrokeEnd, {
|
|
15880
15891
|
themeIntent: intent
|
|
15881
|
-
})), /*#__PURE__*/
|
|
15892
|
+
})), /*#__PURE__*/React__namespace.default.createElement(StyledDonutCircle, null, /*#__PURE__*/React__namespace.default.createElement(Typography.Body, null, renderValue(value)))));
|
|
15882
15893
|
};
|
|
15883
15894
|
|
|
15884
15895
|
var StyledWrapper$4 = index$9(reactNative.View)(function (_ref) {
|
|
@@ -15935,11 +15946,11 @@ var ProgressBar = function ProgressBar(_ref) {
|
|
|
15935
15946
|
outputRange: [999, 0],
|
|
15936
15947
|
extrapolate: 'clamp'
|
|
15937
15948
|
});
|
|
15938
|
-
return /*#__PURE__*/
|
|
15949
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledWrapper$4, _extends$1({}, nativeProps, {
|
|
15939
15950
|
testID: testID,
|
|
15940
15951
|
style: style,
|
|
15941
15952
|
themeIntent: intent
|
|
15942
|
-
}), /*#__PURE__*/
|
|
15953
|
+
}), /*#__PURE__*/React__namespace.default.createElement(StyledInner, {
|
|
15943
15954
|
themeIntent: intent,
|
|
15944
15955
|
onLayout: function onLayout(_ref2) {
|
|
15945
15956
|
var nativeEvent = _ref2.nativeEvent;
|
|
@@ -15977,7 +15988,7 @@ var Slider = function Slider(_ref) {
|
|
|
15977
15988
|
style = _ref.style,
|
|
15978
15989
|
testID = _ref.testID;
|
|
15979
15990
|
var theme = useTheme();
|
|
15980
|
-
return /*#__PURE__*/
|
|
15991
|
+
return /*#__PURE__*/React__namespace.default.createElement(RnSlider__default.default, {
|
|
15981
15992
|
minimumValue: minimumValue,
|
|
15982
15993
|
maximumValue: maximumValue,
|
|
15983
15994
|
step: step,
|
|
@@ -16079,23 +16090,23 @@ var AnimatedSpinner = function AnimatedSpinner(_ref) {
|
|
|
16079
16090
|
themeSize: size,
|
|
16080
16091
|
themeIntent: intent
|
|
16081
16092
|
};
|
|
16082
|
-
return /*#__PURE__*/
|
|
16093
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.Animated.View, {
|
|
16083
16094
|
style: reactNative.StyleSheet.flatten([{
|
|
16084
16095
|
transform: [{
|
|
16085
16096
|
rotate: interpolatedRotateAnimation
|
|
16086
16097
|
}]
|
|
16087
16098
|
}])
|
|
16088
|
-
}, /*#__PURE__*/
|
|
16099
|
+
}, /*#__PURE__*/React__namespace.default.createElement(AnimatedRow, _extends$1({
|
|
16089
16100
|
themePosition: "top"
|
|
16090
|
-
}, rowProps), /*#__PURE__*/
|
|
16101
|
+
}, rowProps), /*#__PURE__*/React__namespace.default.createElement(AnimatedDot, _extends$1({
|
|
16091
16102
|
themePosition: "topLeft"
|
|
16092
|
-
}, dotProps)), /*#__PURE__*/
|
|
16103
|
+
}, dotProps)), /*#__PURE__*/React__namespace.default.createElement(AnimatedDot, _extends$1({
|
|
16093
16104
|
themePosition: "topRight"
|
|
16094
|
-
}, dotProps))), /*#__PURE__*/
|
|
16105
|
+
}, dotProps))), /*#__PURE__*/React__namespace.default.createElement(AnimatedRow, _extends$1({
|
|
16095
16106
|
themePosition: "bottom"
|
|
16096
|
-
}, rowProps), /*#__PURE__*/
|
|
16107
|
+
}, rowProps), /*#__PURE__*/React__namespace.default.createElement(AnimatedDot, _extends$1({
|
|
16097
16108
|
themePosition: "bottomLeft"
|
|
16098
|
-
}, dotProps)), /*#__PURE__*/
|
|
16109
|
+
}, dotProps)), /*#__PURE__*/React__namespace.default.createElement(AnimatedDot, _extends$1({
|
|
16099
16110
|
themePosition: "bottomRight"
|
|
16100
16111
|
}, dotProps))));
|
|
16101
16112
|
};
|
|
@@ -16108,9 +16119,9 @@ var Spinner = function Spinner(_ref) {
|
|
|
16108
16119
|
_ref$intent = _ref.intent,
|
|
16109
16120
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
16110
16121
|
nativeProps = _objectWithoutProperties(_ref, _excluded$c);
|
|
16111
|
-
return /*#__PURE__*/
|
|
16122
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledView$1, nativeProps, /*#__PURE__*/React__namespace.default.createElement(StyledSpinnerContainer, {
|
|
16112
16123
|
testID: testID
|
|
16113
|
-
}, /*#__PURE__*/
|
|
16124
|
+
}, /*#__PURE__*/React__namespace.default.createElement(AnimatedSpinner, {
|
|
16114
16125
|
size: size,
|
|
16115
16126
|
intent: intent
|
|
16116
16127
|
})));
|
|
@@ -16132,7 +16143,7 @@ var SwipeableAction = function SwipeableAction(_ref) {
|
|
|
16132
16143
|
style = _ref.style,
|
|
16133
16144
|
children = _ref.children,
|
|
16134
16145
|
testID = _ref.testID;
|
|
16135
|
-
return /*#__PURE__*/
|
|
16146
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledRectButton, {
|
|
16136
16147
|
onPress: onPress,
|
|
16137
16148
|
themeIntent: intent,
|
|
16138
16149
|
style: style,
|
|
@@ -16147,7 +16158,7 @@ var renderActions = function renderActions(actions, width, progress, direction)
|
|
|
16147
16158
|
outputRange: direction === 'left' ? [-width, 0] : [width, 0],
|
|
16148
16159
|
extrapolate: 'clamp'
|
|
16149
16160
|
});
|
|
16150
|
-
return /*#__PURE__*/
|
|
16161
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.Animated.View, {
|
|
16151
16162
|
style: {
|
|
16152
16163
|
width: width,
|
|
16153
16164
|
flexDirection: 'row',
|
|
@@ -16174,7 +16185,7 @@ var Swipeable = function Swipeable(_ref) {
|
|
|
16174
16185
|
var _useWindowDimensions = reactNative.useWindowDimensions(),
|
|
16175
16186
|
width = _useWindowDimensions.width;
|
|
16176
16187
|
var swipeableRef = React.useRef(null);
|
|
16177
|
-
var _React$useState =
|
|
16188
|
+
var _React$useState = React__namespace.default.useState(0),
|
|
16178
16189
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
16179
16190
|
containerWidth = _React$useState2[0],
|
|
16180
16191
|
setContainerWidth = _React$useState2[1];
|
|
@@ -16198,11 +16209,11 @@ var Swipeable = function Swipeable(_ref) {
|
|
|
16198
16209
|
break;
|
|
16199
16210
|
}
|
|
16200
16211
|
}, [state]);
|
|
16201
|
-
return /*#__PURE__*/
|
|
16212
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNativeGestureHandler.GestureHandlerRootView, null, /*#__PURE__*/React__namespace.default.createElement(Box, {
|
|
16202
16213
|
onLayout: function onLayout(e) {
|
|
16203
16214
|
return setContainerWidth(e.nativeEvent.layout.width);
|
|
16204
16215
|
}
|
|
16205
|
-
}, /*#__PURE__*/
|
|
16216
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNativeGestureHandler.Swipeable, _extends$1({}, swipeableProps, {
|
|
16206
16217
|
ref: swipeableRef
|
|
16207
16218
|
}, leftActions !== undefined && {
|
|
16208
16219
|
renderLeftActions: renderLeftActions
|
|
@@ -16274,7 +16285,7 @@ var StyledRadio = index$9(List.Item)(function (_ref4) {
|
|
|
16274
16285
|
var RadioCircle = function RadioCircle(_ref) {
|
|
16275
16286
|
var checked = _ref.checked,
|
|
16276
16287
|
text = _ref.text;
|
|
16277
|
-
return /*#__PURE__*/
|
|
16288
|
+
return /*#__PURE__*/React__namespace.default.createElement(Circle, null, checked && /*#__PURE__*/React__namespace.default.createElement(InnerCircle, {
|
|
16278
16289
|
testID: "".concat(text, "-selected-circle")
|
|
16279
16290
|
}));
|
|
16280
16291
|
};
|
|
@@ -16289,12 +16300,12 @@ var Radio = function Radio(_ref2) {
|
|
|
16289
16300
|
_ref2$inactiveIntent = _ref2.inactiveIntent,
|
|
16290
16301
|
inactiveIntent = _ref2$inactiveIntent === void 0 ? 'light' : _ref2$inactiveIntent,
|
|
16291
16302
|
children = _ref2.children;
|
|
16292
|
-
return /*#__PURE__*/
|
|
16303
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledRadio, {
|
|
16293
16304
|
onPress: onPress,
|
|
16294
16305
|
selected: checked,
|
|
16295
16306
|
title: text,
|
|
16296
16307
|
subtitle: subText,
|
|
16297
|
-
suffix: /*#__PURE__*/
|
|
16308
|
+
suffix: /*#__PURE__*/React__namespace.default.createElement(RadioCircle, {
|
|
16298
16309
|
checked: checked,
|
|
16299
16310
|
text: text
|
|
16300
16311
|
}),
|
|
@@ -16325,15 +16336,15 @@ var RadioGroup = function RadioGroup(_ref) {
|
|
|
16325
16336
|
testID = _ref.testID,
|
|
16326
16337
|
_ref$inactiveIntent = _ref.inactiveIntent,
|
|
16327
16338
|
inactiveIntent = _ref$inactiveIntent === void 0 ? 'light' : _ref$inactiveIntent;
|
|
16328
|
-
return /*#__PURE__*/
|
|
16339
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
16329
16340
|
style: style,
|
|
16330
16341
|
testID: testID
|
|
16331
16342
|
}, options.map(function (option, index) {
|
|
16332
|
-
return /*#__PURE__*/
|
|
16343
|
+
return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, {
|
|
16333
16344
|
key: getKey(option, index, keyExtractor)
|
|
16334
|
-
}, index !== 0 && /*#__PURE__*/
|
|
16345
|
+
}, index !== 0 && /*#__PURE__*/React__namespace.default.createElement(Spacer, {
|
|
16335
16346
|
themeIntent: inactiveIntent
|
|
16336
|
-
}), /*#__PURE__*/
|
|
16347
|
+
}), /*#__PURE__*/React__namespace.default.createElement(Radio, {
|
|
16337
16348
|
text: option.text,
|
|
16338
16349
|
subText: option.subText,
|
|
16339
16350
|
checked: option.value === value,
|
|
@@ -16402,20 +16413,20 @@ var SectionHeading = function SectionHeading(_ref) {
|
|
|
16402
16413
|
testID = _ref.testID;
|
|
16403
16414
|
useDeprecation("SectionHeading's fontSize prop is deprecated and will be removed in the next major release, please remove it.", fontSize !== undefined);
|
|
16404
16415
|
useDeprecation("SectionHeading's fontWeight prop is deprecated and will be removed in the next major release, please remove it.", fontWeight !== undefined);
|
|
16405
|
-
return /*#__PURE__*/
|
|
16416
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledHeading, {
|
|
16406
16417
|
themeSize: size,
|
|
16407
16418
|
style: style,
|
|
16408
16419
|
testID: testID
|
|
16409
|
-
}, /*#__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, {
|
|
16410
16421
|
icon: icon,
|
|
16411
16422
|
size: ICON_SIZE_MAP[size],
|
|
16412
16423
|
intent: ICON_INTENT_MAP[intent]
|
|
16413
|
-
}) : /*#__PURE__*/
|
|
16424
|
+
}) : /*#__PURE__*/React__namespace.default.cloneElement(icon, _objectSpread2({
|
|
16414
16425
|
size: ICON_SIZE_MAP[size],
|
|
16415
16426
|
intent: ICON_INTENT_MAP[intent]
|
|
16416
|
-
}, icon.props)))), size === 'small' ? /*#__PURE__*/
|
|
16427
|
+
}, icon.props)))), size === 'small' ? /*#__PURE__*/React__namespace.default.createElement(Typography.Caption, {
|
|
16417
16428
|
intent: intent
|
|
16418
|
-
}, text) : /*#__PURE__*/
|
|
16429
|
+
}, text) : /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
16419
16430
|
variant: "small",
|
|
16420
16431
|
intent: intent
|
|
16421
16432
|
}, text)), rightChildren);
|
|
@@ -16424,7 +16435,7 @@ var SectionHeading = function SectionHeading(_ref) {
|
|
|
16424
16435
|
var Footer = function Footer(_ref) {
|
|
16425
16436
|
var label = _ref.label,
|
|
16426
16437
|
onPress = _ref.onPress;
|
|
16427
|
-
return /*#__PURE__*/
|
|
16438
|
+
return /*#__PURE__*/React__namespace.default.createElement(CompoundButton, {
|
|
16428
16439
|
variant: "text",
|
|
16429
16440
|
text: label,
|
|
16430
16441
|
onPress: onPress
|
|
@@ -16535,7 +16546,7 @@ var BaseOptionList = function BaseOptionList(_ref) {
|
|
|
16535
16546
|
_useState2 = _slicedToArray(_useState, 2),
|
|
16536
16547
|
onEndReachedCalled = _useState2[0],
|
|
16537
16548
|
setOnEndReachedCalled = _useState2[1];
|
|
16538
|
-
return /*#__PURE__*/
|
|
16549
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledSectionList, _extends$1({
|
|
16539
16550
|
ref: sectionListRef,
|
|
16540
16551
|
style: _objectSpread2({}, onQueryChange ? {
|
|
16541
16552
|
height: reactNative.Dimensions.get('screen').height
|
|
@@ -16550,16 +16561,16 @@ var BaseOptionList = function BaseOptionList(_ref) {
|
|
|
16550
16561
|
if (onEndReached && onEndReachedCalled && !loading) onEndReached();
|
|
16551
16562
|
setOnEndReachedCalled(false);
|
|
16552
16563
|
},
|
|
16553
|
-
ListFooterComponent: loading ? /*#__PURE__*/
|
|
16564
|
+
ListFooterComponent: loading ? /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
16554
16565
|
style: {
|
|
16555
16566
|
display: 'flex',
|
|
16556
16567
|
alignItems: 'center',
|
|
16557
16568
|
height: theme.space.xxxxlarge
|
|
16558
16569
|
}
|
|
16559
|
-
}, /*#__PURE__*/
|
|
16570
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Spinner, null)) : null,
|
|
16560
16571
|
renderSectionHeader: function renderSectionHeader(_ref2) {
|
|
16561
16572
|
var category = _ref2.section.category;
|
|
16562
|
-
return category !== '' ? /*#__PURE__*/
|
|
16573
|
+
return category !== '' ? /*#__PURE__*/React__namespace.default.createElement(SectionHeading, {
|
|
16563
16574
|
text: category,
|
|
16564
16575
|
style: {
|
|
16565
16576
|
marginBottom: 0
|
|
@@ -16586,7 +16597,7 @@ var Option$2 = function Option(_ref) {
|
|
|
16586
16597
|
disabled: disabled,
|
|
16587
16598
|
onPress: onPress,
|
|
16588
16599
|
title: text,
|
|
16589
|
-
suffix: selected === true ? /*#__PURE__*/
|
|
16600
|
+
suffix: selected === true ? /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
16590
16601
|
testID: typeof text === 'string' ? "selected-icon-".concat(text) : undefined,
|
|
16591
16602
|
icon: "checkmark",
|
|
16592
16603
|
intent: disabled ? 'disabled-text' : 'primary',
|
|
@@ -16596,7 +16607,7 @@ var Option$2 = function Option(_ref) {
|
|
|
16596
16607
|
}
|
|
16597
16608
|
}) : undefined
|
|
16598
16609
|
};
|
|
16599
|
-
return highlighted === true ? /*#__PURE__*/
|
|
16610
|
+
return highlighted === true ? /*#__PURE__*/React__namespace.default.createElement(List.Item, props) : /*#__PURE__*/React__namespace.default.createElement(List.BasicItem, props);
|
|
16600
16611
|
};
|
|
16601
16612
|
|
|
16602
16613
|
var _excluded$9 = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
|
|
@@ -16626,7 +16637,7 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
16626
16637
|
return renderOption ? renderOption(_objectSpread2(_objectSpread2({}, info), {}, {
|
|
16627
16638
|
selected: selected,
|
|
16628
16639
|
onPress: onItemPress
|
|
16629
|
-
})) : /*#__PURE__*/
|
|
16640
|
+
})) : /*#__PURE__*/React__namespace.default.createElement(Option$2, {
|
|
16630
16641
|
selected: selected,
|
|
16631
16642
|
text: item.text,
|
|
16632
16643
|
disabled: item.disabled,
|
|
@@ -16634,7 +16645,7 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
16634
16645
|
highlighted: item.highlighted
|
|
16635
16646
|
});
|
|
16636
16647
|
};
|
|
16637
|
-
return /*#__PURE__*/
|
|
16648
|
+
return /*#__PURE__*/React__namespace.default.createElement(BaseOptionList, _extends$1({
|
|
16638
16649
|
keyExtractor: keyExtractor,
|
|
16639
16650
|
loading: loading,
|
|
16640
16651
|
onEndReached: onEndReached,
|
|
@@ -16693,15 +16704,15 @@ function MultiSelect(_ref) {
|
|
|
16693
16704
|
React.useEffect(function () {
|
|
16694
16705
|
setSelectingValue(value);
|
|
16695
16706
|
}, [open, value]);
|
|
16696
|
-
return /*#__PURE__*/
|
|
16707
|
+
return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
16697
16708
|
pointerEvents: !editable || disabled || inputProps !== null && inputProps !== void 0 && inputProps.loading ? 'none' : 'auto'
|
|
16698
|
-
}, /*#__PURE__*/
|
|
16709
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
16699
16710
|
onPress: function onPress() {
|
|
16700
16711
|
return setOpen(true);
|
|
16701
16712
|
}
|
|
16702
|
-
}, /*#__PURE__*/
|
|
16713
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
16703
16714
|
pointerEvents: "none"
|
|
16704
|
-
}, /*#__PURE__*/
|
|
16715
|
+
}, /*#__PURE__*/React__namespace.default.createElement(TextInput, _extends$1({}, inputProps, {
|
|
16705
16716
|
label: label,
|
|
16706
16717
|
value: renderSelectedValue ? rawValue : displayedValue,
|
|
16707
16718
|
suffix: "arrow-down",
|
|
@@ -16716,7 +16727,7 @@ function MultiSelect(_ref) {
|
|
|
16716
16727
|
renderInputValue: renderSelectedValue !== undefined && (rawValue === null || rawValue === void 0 ? void 0 : rawValue.length) > 0 ? function (props) {
|
|
16717
16728
|
return renderSelectedValue(value, props);
|
|
16718
16729
|
} : undefined
|
|
16719
|
-
}))))), /*#__PURE__*/
|
|
16730
|
+
}))))), /*#__PURE__*/React__namespace.default.createElement(BottomSheet$1, {
|
|
16720
16731
|
open: open,
|
|
16721
16732
|
onRequestClose: function onRequestClose() {
|
|
16722
16733
|
onDismiss === null || onDismiss === void 0 || onDismiss();
|
|
@@ -16726,13 +16737,13 @@ function MultiSelect(_ref) {
|
|
|
16726
16737
|
style: {
|
|
16727
16738
|
paddingBottom: isKeyboardVisible ? keyboardHeight : 0
|
|
16728
16739
|
},
|
|
16729
|
-
footer: typeof footerLabel === 'string' ? /*#__PURE__*/
|
|
16740
|
+
footer: typeof footerLabel === 'string' ? /*#__PURE__*/React__namespace.default.createElement(Footer, {
|
|
16730
16741
|
label: footerLabel,
|
|
16731
16742
|
onPress: function onPress() {
|
|
16732
16743
|
setOpen(false);
|
|
16733
16744
|
onConfirm(selectingValue);
|
|
16734
16745
|
}
|
|
16735
|
-
}) : /*#__PURE__*/
|
|
16746
|
+
}) : /*#__PURE__*/React__namespace.default.createElement(Box, {
|
|
16736
16747
|
flex: 1,
|
|
16737
16748
|
flexDirection: "row",
|
|
16738
16749
|
justifyContent: "flex-end"
|
|
@@ -16750,13 +16761,13 @@ function MultiSelect(_ref) {
|
|
|
16750
16761
|
}
|
|
16751
16762
|
},
|
|
16752
16763
|
supportedOrientations: supportedOrientations
|
|
16753
|
-
}, onQueryChange && /*#__PURE__*/
|
|
16764
|
+
}, onQueryChange && /*#__PURE__*/React__namespace.default.createElement(StyledSearchBar, null, /*#__PURE__*/React__namespace.default.createElement(TextInput, {
|
|
16754
16765
|
editable: true,
|
|
16755
16766
|
placeholder: "Search",
|
|
16756
16767
|
suffix: "search-outlined",
|
|
16757
16768
|
onChangeText: onQueryChange,
|
|
16758
16769
|
value: query
|
|
16759
|
-
})), /*#__PURE__*/
|
|
16770
|
+
})), /*#__PURE__*/React__namespace.default.createElement(OptionList$1, {
|
|
16760
16771
|
onQueryChange: onQueryChange,
|
|
16761
16772
|
onEndReached: onEndReached,
|
|
16762
16773
|
loading: loading,
|
|
@@ -16791,7 +16802,7 @@ var Option$1 = function Option(_ref) {
|
|
|
16791
16802
|
onPress: onPress,
|
|
16792
16803
|
title: text
|
|
16793
16804
|
};
|
|
16794
|
-
return highlighted === true ? /*#__PURE__*/
|
|
16805
|
+
return highlighted === true ? /*#__PURE__*/React__namespace.default.createElement(List.Item, props) : /*#__PURE__*/React__namespace.default.createElement(List.BasicItem, props);
|
|
16795
16806
|
};
|
|
16796
16807
|
|
|
16797
16808
|
var StyledOptionList = index$9(BaseOptionList)(function (_ref) {
|
|
@@ -16826,7 +16837,7 @@ var OptionList = function OptionList(_ref) {
|
|
|
16826
16837
|
return renderOption ? renderOption(_objectSpread2(_objectSpread2({}, info), {}, {
|
|
16827
16838
|
selected: selected,
|
|
16828
16839
|
onPress: onItemPress
|
|
16829
|
-
})) : /*#__PURE__*/
|
|
16840
|
+
})) : /*#__PURE__*/React__namespace.default.createElement(Option$1, {
|
|
16830
16841
|
selected: selected,
|
|
16831
16842
|
text: item.text,
|
|
16832
16843
|
disabled: item.disabled,
|
|
@@ -16834,7 +16845,7 @@ var OptionList = function OptionList(_ref) {
|
|
|
16834
16845
|
highlighted: item.highlighted
|
|
16835
16846
|
});
|
|
16836
16847
|
};
|
|
16837
|
-
return /*#__PURE__*/
|
|
16848
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledOptionList, _extends$1({
|
|
16838
16849
|
keyExtractor: keyExtractor,
|
|
16839
16850
|
loading: loading,
|
|
16840
16851
|
onEndReached: onEndReached,
|
|
@@ -16887,15 +16898,15 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
16887
16898
|
return value === opt.value;
|
|
16888
16899
|
})) === null || _flatOptions$find === void 0 ? void 0 : _flatOptions$find.text;
|
|
16889
16900
|
var rawValue = value ? String(value) : undefined;
|
|
16890
|
-
return /*#__PURE__*/
|
|
16901
|
+
return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
16891
16902
|
pointerEvents: !editable || disabled || inputProps !== null && inputProps !== void 0 && inputProps.loading ? 'none' : 'auto'
|
|
16892
|
-
}, /*#__PURE__*/
|
|
16903
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
16893
16904
|
onPress: function onPress() {
|
|
16894
16905
|
return setOpen(true);
|
|
16895
16906
|
}
|
|
16896
|
-
}, /*#__PURE__*/
|
|
16907
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
16897
16908
|
pointerEvents: "none"
|
|
16898
|
-
}, /*#__PURE__*/
|
|
16909
|
+
}, /*#__PURE__*/React__namespace.default.createElement(TextInput, _extends$1({}, inputProps, {
|
|
16899
16910
|
label: label,
|
|
16900
16911
|
value: renderSelectedValue ? rawValue : displayedValue,
|
|
16901
16912
|
suffix: "arrow-down",
|
|
@@ -16910,7 +16921,7 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
16910
16921
|
renderInputValue: renderSelectedValue !== undefined && !!rawValue ? function (props) {
|
|
16911
16922
|
return renderSelectedValue(value, props);
|
|
16912
16923
|
} : undefined
|
|
16913
|
-
}))))), /*#__PURE__*/
|
|
16924
|
+
}))))), /*#__PURE__*/React__namespace.default.createElement(BottomSheet$1, {
|
|
16914
16925
|
open: open,
|
|
16915
16926
|
onRequestClose: function onRequestClose() {
|
|
16916
16927
|
onDismiss === null || onDismiss === void 0 || onDismiss();
|
|
@@ -16928,13 +16939,13 @@ var SingleSelect = function SingleSelect(_ref) {
|
|
|
16928
16939
|
}
|
|
16929
16940
|
},
|
|
16930
16941
|
supportedOrientations: supportedOrientations
|
|
16931
|
-
}, onQueryChange && /*#__PURE__*/
|
|
16942
|
+
}, onQueryChange && /*#__PURE__*/React__namespace.default.createElement(StyledSearchBar, null, /*#__PURE__*/React__namespace.default.createElement(TextInput, {
|
|
16932
16943
|
editable: true,
|
|
16933
16944
|
placeholder: "Search",
|
|
16934
16945
|
suffix: "search-outlined",
|
|
16935
16946
|
onChangeText: onQueryChange,
|
|
16936
16947
|
value: query
|
|
16937
|
-
})), /*#__PURE__*/
|
|
16948
|
+
})), /*#__PURE__*/React__namespace.default.createElement(OptionList, {
|
|
16938
16949
|
onQueryChange: onQueryChange,
|
|
16939
16950
|
onEndReached: onEndReached,
|
|
16940
16951
|
loading: loading,
|
|
@@ -16981,7 +16992,7 @@ var StyledGradientContainer = index$9(Box)(function (_ref2) {
|
|
|
16981
16992
|
});
|
|
16982
16993
|
|
|
16983
16994
|
var _excluded$7 = ["intent", "variant", "style", "onLayout"];
|
|
16984
|
-
var AnimatedLinearGradient = reactNative.Animated.createAnimatedComponent(LinearGradient__default
|
|
16995
|
+
var AnimatedLinearGradient = reactNative.Animated.createAnimatedComponent(LinearGradient__default.default);
|
|
16985
16996
|
var gradientPositions = {
|
|
16986
16997
|
start: {
|
|
16987
16998
|
x: 0,
|
|
@@ -17048,14 +17059,14 @@ var Skeleton = function Skeleton(_ref) {
|
|
|
17048
17059
|
}
|
|
17049
17060
|
onLayout === null || onLayout === void 0 || onLayout(e);
|
|
17050
17061
|
}, []);
|
|
17051
|
-
return /*#__PURE__*/
|
|
17062
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledContainer, _extends$1({
|
|
17052
17063
|
style: style,
|
|
17053
17064
|
themeVariant: variant,
|
|
17054
17065
|
themeIntent: intent,
|
|
17055
17066
|
onLayout: onContainerLayout
|
|
17056
|
-
}, props), /*#__PURE__*/
|
|
17067
|
+
}, props), /*#__PURE__*/React__namespace.default.createElement(StyledGradientContainer, {
|
|
17057
17068
|
themeVariant: variant
|
|
17058
|
-
}, /*#__PURE__*/
|
|
17069
|
+
}, /*#__PURE__*/React__namespace.default.createElement(AnimatedLinearGradient, {
|
|
17059
17070
|
start: gradientPositions.start,
|
|
17060
17071
|
end: gradientPositions.end,
|
|
17061
17072
|
style: {
|
|
@@ -17147,11 +17158,11 @@ var StyledSuccessModal = index$9(ModalWrapper)({
|
|
|
17147
17158
|
var _excluded$6 = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
|
|
17148
17159
|
var renderImage = function renderImage(image) {
|
|
17149
17160
|
if ( /*#__PURE__*/React.isValidElement(image)) {
|
|
17150
|
-
return /*#__PURE__*/
|
|
17161
|
+
return /*#__PURE__*/React__namespace.default.cloneElement(image, {
|
|
17151
17162
|
testID: 'success-image'
|
|
17152
17163
|
});
|
|
17153
17164
|
}
|
|
17154
|
-
return /*#__PURE__*/
|
|
17165
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledSuccessImage, {
|
|
17155
17166
|
source: typeof image === 'string' ? {
|
|
17156
17167
|
uri: image
|
|
17157
17168
|
} : image,
|
|
@@ -17172,16 +17183,16 @@ var SuccessPage = function SuccessPage(_ref) {
|
|
|
17172
17183
|
onSecondaryCtaPress = _ref.onSecondaryCtaPress,
|
|
17173
17184
|
nativeProps = _objectWithoutProperties(_ref, _excluded$6);
|
|
17174
17185
|
var showSecondaryButton = secondaryCtaText && onSecondaryCtaPress;
|
|
17175
|
-
return /*#__PURE__*/
|
|
17186
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledSuccessContainer, _extends$1({
|
|
17176
17187
|
testID: testID,
|
|
17177
17188
|
themeVariant: variant
|
|
17178
|
-
}, 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, {
|
|
17179
17190
|
level: "h4",
|
|
17180
17191
|
typeface: "playful"
|
|
17181
|
-
}, 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, {
|
|
17182
17193
|
text: ctaText,
|
|
17183
17194
|
onPress: onCtaPress
|
|
17184
|
-
}), !!showSecondaryButton && /*#__PURE__*/
|
|
17195
|
+
}), !!showSecondaryButton && /*#__PURE__*/React__namespace.default.createElement(StyledSuccessButtonPrimary, {
|
|
17185
17196
|
variant: "text",
|
|
17186
17197
|
text: secondaryCtaText,
|
|
17187
17198
|
onPress: onSecondaryCtaPress
|
|
@@ -17196,11 +17207,11 @@ var SuccessPage = function SuccessPage(_ref) {
|
|
|
17196
17207
|
var Success = function Success(props) {
|
|
17197
17208
|
var variant = props.variant;
|
|
17198
17209
|
if (variant === 'full-screen') {
|
|
17199
|
-
return /*#__PURE__*/
|
|
17210
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledSuccessModal, {
|
|
17200
17211
|
animationType: "slide"
|
|
17201
|
-
}, /*#__PURE__*/
|
|
17212
|
+
}, /*#__PURE__*/React__namespace.default.createElement(SuccessPage, props));
|
|
17202
17213
|
}
|
|
17203
|
-
return /*#__PURE__*/
|
|
17214
|
+
return /*#__PURE__*/React__namespace.default.createElement(SuccessPage, props);
|
|
17204
17215
|
};
|
|
17205
17216
|
|
|
17206
17217
|
var AnimatedView = reactNative.Animated.createAnimatedComponent(reactNative.View);
|
|
@@ -17251,7 +17262,7 @@ var OptionContent = function OptionContent(_ref) {
|
|
|
17251
17262
|
return content;
|
|
17252
17263
|
}
|
|
17253
17264
|
if (badge.type === 'status') {
|
|
17254
|
-
return /*#__PURE__*/
|
|
17265
|
+
return /*#__PURE__*/React__namespace.default.createElement(Badge$1.Status, {
|
|
17255
17266
|
visible: true,
|
|
17256
17267
|
style: {
|
|
17257
17268
|
paddingHorizontal: theme.space.small
|
|
@@ -17283,27 +17294,27 @@ var Option = function Option(_ref2) {
|
|
|
17283
17294
|
}).start();
|
|
17284
17295
|
}, [selected]);
|
|
17285
17296
|
if (selected) {
|
|
17286
|
-
return /*#__PURE__*/
|
|
17297
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledTextWrapper, {
|
|
17287
17298
|
style: {
|
|
17288
17299
|
transform: [{
|
|
17289
17300
|
translateX: translateX
|
|
17290
17301
|
}]
|
|
17291
17302
|
},
|
|
17292
17303
|
onLayout: onLayout
|
|
17293
|
-
}, /*#__PURE__*/
|
|
17294
|
-
content: /*#__PURE__*/
|
|
17304
|
+
}, /*#__PURE__*/React__namespace.default.createElement(OptionContent, {
|
|
17305
|
+
content: /*#__PURE__*/React__namespace.default.createElement(Typography.Body, null, text),
|
|
17295
17306
|
badge: badge
|
|
17296
17307
|
}));
|
|
17297
17308
|
}
|
|
17298
|
-
return /*#__PURE__*/
|
|
17309
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledIconWrapper$1, {
|
|
17299
17310
|
style: {
|
|
17300
17311
|
transform: [{
|
|
17301
17312
|
translateX: translateX
|
|
17302
17313
|
}]
|
|
17303
17314
|
},
|
|
17304
17315
|
onLayout: onLayout
|
|
17305
|
-
}, /*#__PURE__*/
|
|
17306
|
-
content: /*#__PURE__*/
|
|
17316
|
+
}, /*#__PURE__*/React__namespace.default.createElement(OptionContent, {
|
|
17317
|
+
content: /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
17307
17318
|
icon: icon
|
|
17308
17319
|
}),
|
|
17309
17320
|
badge: badge
|
|
@@ -17345,16 +17356,16 @@ var SelectorSwitch = function SelectorSwitch(_ref) {
|
|
|
17345
17356
|
setKnotWidth(e.nativeEvent.layout.width);
|
|
17346
17357
|
}
|
|
17347
17358
|
}, [value]);
|
|
17348
|
-
return /*#__PURE__*/
|
|
17359
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableWithoutFeedback, {
|
|
17349
17360
|
onPress: function onPress() {
|
|
17350
17361
|
return _onPress === null || _onPress === void 0 ? void 0 : _onPress(value);
|
|
17351
17362
|
},
|
|
17352
17363
|
testID: testID
|
|
17353
|
-
}, /*#__PURE__*/
|
|
17364
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledWrapper$2, {
|
|
17354
17365
|
onLayout: onContainerLayout,
|
|
17355
17366
|
style: style
|
|
17356
17367
|
}, options.map(function (opt, index) {
|
|
17357
|
-
return /*#__PURE__*/
|
|
17368
|
+
return /*#__PURE__*/React__namespace.default.createElement(Option, _extends$1({}, opt, {
|
|
17358
17369
|
selected: opt.value === value
|
|
17359
17370
|
// eslint-disable-next-line react/no-array-index-key
|
|
17360
17371
|
,
|
|
@@ -17364,7 +17375,7 @@ var SelectorSwitch = function SelectorSwitch(_ref) {
|
|
|
17364
17375
|
},
|
|
17365
17376
|
index: index
|
|
17366
17377
|
}));
|
|
17367
|
-
}), /*#__PURE__*/
|
|
17378
|
+
}), /*#__PURE__*/React__namespace.default.createElement(StyledKnot$1, {
|
|
17368
17379
|
style: {
|
|
17369
17380
|
width: knotWidth,
|
|
17370
17381
|
transform: [{
|
|
@@ -17432,14 +17443,14 @@ var Switch = function Switch(_ref2) {
|
|
|
17432
17443
|
useNativeDriver: false
|
|
17433
17444
|
}).start();
|
|
17434
17445
|
}, [checked]);
|
|
17435
|
-
return /*#__PURE__*/
|
|
17446
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableWithoutFeedback, {
|
|
17436
17447
|
testID: testID,
|
|
17437
17448
|
onPress: onPress,
|
|
17438
17449
|
disabled: disabled
|
|
17439
|
-
}, /*#__PURE__*/
|
|
17450
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledWrapper$1, {
|
|
17440
17451
|
themeVariant: variant,
|
|
17441
17452
|
style: style
|
|
17442
|
-
}, /*#__PURE__*/
|
|
17453
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledKnot, {
|
|
17443
17454
|
style: {
|
|
17444
17455
|
left: animatedOffset
|
|
17445
17456
|
}
|
|
@@ -17503,7 +17514,7 @@ var ActiveTabIndicator = function ActiveTabIndicator(_ref) {
|
|
|
17503
17514
|
inputRange: inputRange,
|
|
17504
17515
|
outputRange: [0, tabsLength * indicatorWidth]
|
|
17505
17516
|
});
|
|
17506
|
-
return /*#__PURE__*/
|
|
17517
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledIndicator, {
|
|
17507
17518
|
themeWidth: indicatorWidth,
|
|
17508
17519
|
style: {
|
|
17509
17520
|
transform: [{
|
|
@@ -17579,18 +17590,18 @@ var SceneView = function SceneView(_ref) {
|
|
|
17579
17590
|
index = _ref.index,
|
|
17580
17591
|
selectedIndex = _ref.selectedIndex,
|
|
17581
17592
|
testID = _ref.testID;
|
|
17582
|
-
var _React$useState =
|
|
17593
|
+
var _React$useState = React__namespace.default.useState(Math.abs(selectedIndex - index) > lazyPreloadDistance),
|
|
17583
17594
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
17584
17595
|
isLoading = _React$useState2[0],
|
|
17585
17596
|
setIsLoading = _React$useState2[1];
|
|
17586
17597
|
var focused = index === selectedIndex;
|
|
17587
|
-
|
|
17598
|
+
React__namespace.default.useEffect(function () {
|
|
17588
17599
|
if (isLoading && Math.abs(selectedIndex - index) <= lazyPreloadDistance) {
|
|
17589
17600
|
// Always render the route when it becomes focused
|
|
17590
17601
|
setIsLoading(false);
|
|
17591
17602
|
}
|
|
17592
17603
|
}, [isLoading, index, selectedIndex, lazyPreloadDistance]);
|
|
17593
|
-
|
|
17604
|
+
React__namespace.default.useEffect(function () {
|
|
17594
17605
|
var timer;
|
|
17595
17606
|
if (!lazy && isLoading) {
|
|
17596
17607
|
// If lazy mode is not enabled, render the scene with a delay if not loaded already
|
|
@@ -17605,7 +17616,7 @@ var SceneView = function SceneView(_ref) {
|
|
|
17605
17616
|
}
|
|
17606
17617
|
};
|
|
17607
17618
|
}, [index, isLoading, lazy, focused]);
|
|
17608
|
-
return /*#__PURE__*/
|
|
17619
|
+
return /*#__PURE__*/React__namespace.default.createElement(TabScreen, {
|
|
17609
17620
|
accessibilityElementsHidden: !focused,
|
|
17610
17621
|
importantForAccessibility: focused ? 'auto' : 'no-hide-descendants',
|
|
17611
17622
|
style: [{
|
|
@@ -17620,9 +17631,9 @@ var TabWithBadge = function TabWithBadge(_ref) {
|
|
|
17620
17631
|
var config = _ref.config,
|
|
17621
17632
|
tabItem = _ref.tabItem;
|
|
17622
17633
|
var theme = useTheme$1();
|
|
17623
|
-
if (!config) return /*#__PURE__*/
|
|
17634
|
+
if (!config) return /*#__PURE__*/React__namespace.default.createElement(reactNative.View, null, tabItem);
|
|
17624
17635
|
if (config.type === 'status') {
|
|
17625
|
-
return /*#__PURE__*/
|
|
17636
|
+
return /*#__PURE__*/React__namespace.default.createElement(Badge$1.Status, {
|
|
17626
17637
|
visible: true,
|
|
17627
17638
|
style: {
|
|
17628
17639
|
paddingHorizontal: theme.space.xsmall
|
|
@@ -17630,7 +17641,7 @@ var TabWithBadge = function TabWithBadge(_ref) {
|
|
|
17630
17641
|
}, tabItem);
|
|
17631
17642
|
}
|
|
17632
17643
|
if (config.type === 'counter') {
|
|
17633
|
-
return /*#__PURE__*/
|
|
17644
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledBadgeWrapper, null, tabItem, /*#__PURE__*/React__namespace.default.createElement(Badge$1, {
|
|
17634
17645
|
content: config.value,
|
|
17635
17646
|
max: config.max,
|
|
17636
17647
|
intent: "info",
|
|
@@ -17639,11 +17650,11 @@ var TabWithBadge = function TabWithBadge(_ref) {
|
|
|
17639
17650
|
}
|
|
17640
17651
|
}));
|
|
17641
17652
|
}
|
|
17642
|
-
return /*#__PURE__*/
|
|
17653
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.View, null, tabItem);
|
|
17643
17654
|
};
|
|
17644
17655
|
|
|
17645
17656
|
var useAnimatedValueArray = function useAnimatedValueArray(initialValues) {
|
|
17646
|
-
var refs =
|
|
17657
|
+
var refs = React__namespace.default.useRef([]);
|
|
17647
17658
|
refs.current.length = initialValues.length;
|
|
17648
17659
|
initialValues.forEach(function (initialValue, i) {
|
|
17649
17660
|
var _refs$current$i;
|
|
@@ -17662,7 +17673,7 @@ var useInitHighlightedAnimation = function useInitHighlightedAnimation(_ref) {
|
|
|
17662
17673
|
}).map(function (_, i) {
|
|
17663
17674
|
return i === selectedIndex ? 1 : 0;
|
|
17664
17675
|
}));
|
|
17665
|
-
|
|
17676
|
+
React__namespace.default.useEffect(function () {
|
|
17666
17677
|
if (variant !== 'highlighted') {
|
|
17667
17678
|
return;
|
|
17668
17679
|
}
|
|
@@ -17705,7 +17716,7 @@ var useInitUnderlinedAnimation = function useInitUnderlinedAnimation(_ref) {
|
|
|
17705
17716
|
_ref$selectedIndex = _ref.selectedIndex,
|
|
17706
17717
|
selectedIndex = _ref$selectedIndex === void 0 ? 0 : _ref$selectedIndex,
|
|
17707
17718
|
variant = _ref.variant;
|
|
17708
|
-
var previousIndex =
|
|
17719
|
+
var previousIndex = React__namespace.default.useRef(0);
|
|
17709
17720
|
var translateXAnims = useAnimatedValueArray(Array.from({
|
|
17710
17721
|
length: tabsLength
|
|
17711
17722
|
}).map(function () {
|
|
@@ -17728,7 +17739,7 @@ var useInitUnderlinedAnimation = function useInitUnderlinedAnimation(_ref) {
|
|
|
17728
17739
|
outputRange: [0, 1]
|
|
17729
17740
|
});
|
|
17730
17741
|
});
|
|
17731
|
-
|
|
17742
|
+
React__namespace.default.useEffect(function () {
|
|
17732
17743
|
if (variant === 'underlined' && selectedIndex !== undefined && previousIndex.current !== selectedIndex) {
|
|
17733
17744
|
// Prepare for translateX into the right position.
|
|
17734
17745
|
if (selectedIndex > previousIndex.current) {
|
|
@@ -17753,7 +17764,7 @@ var getTabItem$1 = function getTabItem(_ref) {
|
|
|
17753
17764
|
color = _ref.color,
|
|
17754
17765
|
active = _ref.active;
|
|
17755
17766
|
if (isHeroIcon(item)) {
|
|
17756
|
-
return /*#__PURE__*/
|
|
17767
|
+
return /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
17757
17768
|
icon: item,
|
|
17758
17769
|
testID: "hero-icon-".concat(item),
|
|
17759
17770
|
size: "small",
|
|
@@ -17763,7 +17774,7 @@ var getTabItem$1 = function getTabItem(_ref) {
|
|
|
17763
17774
|
});
|
|
17764
17775
|
}
|
|
17765
17776
|
if (typeof item === 'string') {
|
|
17766
|
-
return /*#__PURE__*/
|
|
17777
|
+
return /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
17767
17778
|
variant: active ? 'regular-bold' : 'regular',
|
|
17768
17779
|
numberOfLines: 1,
|
|
17769
17780
|
style: {
|
|
@@ -17791,7 +17802,7 @@ var ScrollableTabHeader = function ScrollableTabHeader(_ref2) {
|
|
|
17791
17802
|
_ref2$variant = _ref2.variant,
|
|
17792
17803
|
variant = _ref2$variant === void 0 ? 'highlighted' : _ref2$variant;
|
|
17793
17804
|
var theme = useTheme$1();
|
|
17794
|
-
var flatListRef =
|
|
17805
|
+
var flatListRef = React__namespace.default.useRef(null);
|
|
17795
17806
|
// Init underlined animation data
|
|
17796
17807
|
var _useInitUnderlinedAni = useInitUnderlinedAnimation({
|
|
17797
17808
|
tabsLength: tabs.length,
|
|
@@ -17807,7 +17818,7 @@ var ScrollableTabHeader = function ScrollableTabHeader(_ref2) {
|
|
|
17807
17818
|
variant: variant
|
|
17808
17819
|
}),
|
|
17809
17820
|
tabsAnims = _useInitHighlightedAn.tabsAnims;
|
|
17810
|
-
|
|
17821
|
+
React__namespace.default.useEffect(function () {
|
|
17811
17822
|
if (selectedIndex !== undefined && selectedIndex !== -1) {
|
|
17812
17823
|
var _flatListRef$current;
|
|
17813
17824
|
(_flatListRef$current = flatListRef.current) === null || _flatListRef$current === void 0 || _flatListRef$current.scrollToIndex({
|
|
@@ -17818,10 +17829,10 @@ var ScrollableTabHeader = function ScrollableTabHeader(_ref2) {
|
|
|
17818
17829
|
return function () {
|
|
17819
17830
|
};
|
|
17820
17831
|
}, [selectedIndex]);
|
|
17821
|
-
return /*#__PURE__*/
|
|
17832
|
+
return /*#__PURE__*/React__namespace.default.createElement(HeaderTabWrapper, {
|
|
17822
17833
|
themeInsets: insets,
|
|
17823
17834
|
style: barStyle
|
|
17824
|
-
}, /*#__PURE__*/
|
|
17835
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.FlatList, {
|
|
17825
17836
|
testID: testID,
|
|
17826
17837
|
ref: flatListRef,
|
|
17827
17838
|
horizontal: true,
|
|
@@ -17870,15 +17881,15 @@ var ScrollableTabHeader = function ScrollableTabHeader(_ref2) {
|
|
|
17870
17881
|
color: active ? theme.__hd__.tabs.colors.active : theme.__hd__.tabs.colors.inactive,
|
|
17871
17882
|
active: active
|
|
17872
17883
|
});
|
|
17873
|
-
return /*#__PURE__*/
|
|
17884
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableWithoutFeedback, {
|
|
17874
17885
|
key: key,
|
|
17875
17886
|
onPress: function onPress() {
|
|
17876
17887
|
onTabPress(key);
|
|
17877
17888
|
},
|
|
17878
17889
|
testID: tabItemTestID
|
|
17879
|
-
}, /*#__PURE__*/
|
|
17890
|
+
}, /*#__PURE__*/React__namespace.default.createElement(HeaderTabItem, {
|
|
17880
17891
|
isFirstItem: index === 0
|
|
17881
|
-
}, variant === 'highlighted' && /*#__PURE__*/
|
|
17892
|
+
}, variant === 'highlighted' && /*#__PURE__*/React__namespace.default.createElement(HeaderTabItemOutlineWrapper, null, /*#__PURE__*/React__namespace.default.createElement(HeaderTabItemOutline, {
|
|
17882
17893
|
themeActive: active,
|
|
17883
17894
|
style: {
|
|
17884
17895
|
flex: 1,
|
|
@@ -17886,10 +17897,10 @@ var ScrollableTabHeader = function ScrollableTabHeader(_ref2) {
|
|
|
17886
17897
|
scaleX: outlineScale
|
|
17887
17898
|
}]
|
|
17888
17899
|
}
|
|
17889
|
-
})), /*#__PURE__*/
|
|
17900
|
+
})), /*#__PURE__*/React__namespace.default.createElement(HeaderTabItemWrapper, null, /*#__PURE__*/React__namespace.default.createElement(TabWithBadge, {
|
|
17890
17901
|
config: badge,
|
|
17891
17902
|
tabItem: tabItem
|
|
17892
|
-
})), variant === 'underlined' && /*#__PURE__*/
|
|
17903
|
+
})), variant === 'underlined' && /*#__PURE__*/React__namespace.default.createElement(HeaderTabItemIndicator, {
|
|
17893
17904
|
style: {
|
|
17894
17905
|
opacity: underlinedOpacity[index],
|
|
17895
17906
|
transform: [{
|
|
@@ -17915,11 +17926,11 @@ var useHandlePageScroll = function useHandlePageScroll() {
|
|
|
17915
17926
|
};
|
|
17916
17927
|
};
|
|
17917
17928
|
|
|
17918
|
-
var TabContext = /*#__PURE__*/
|
|
17919
|
-
var ScreenContext = /*#__PURE__*/
|
|
17929
|
+
var TabContext = /*#__PURE__*/React__namespace.default.createContext(null);
|
|
17930
|
+
var ScreenContext = /*#__PURE__*/React__namespace.default.createContext(null);
|
|
17920
17931
|
var useIsFocused = function useIsFocused() {
|
|
17921
|
-
var context =
|
|
17922
|
-
var key =
|
|
17932
|
+
var context = React__namespace.default.useContext(TabContext);
|
|
17933
|
+
var key = React__namespace.default.useContext(ScreenContext);
|
|
17923
17934
|
if (!context || !key) {
|
|
17924
17935
|
return;
|
|
17925
17936
|
}
|
|
@@ -17972,12 +17983,12 @@ var ScrollableTab = function ScrollableTab(_ref) {
|
|
|
17972
17983
|
selectedTabKey: selectedTabKey
|
|
17973
17984
|
};
|
|
17974
17985
|
}, [selectedTabKey]);
|
|
17975
|
-
return /*#__PURE__*/
|
|
17986
|
+
return /*#__PURE__*/React__namespace.default.createElement(TabContext.Provider, {
|
|
17976
17987
|
value: tabContextProviderValue
|
|
17977
|
-
}, /*#__PURE__*/
|
|
17988
|
+
}, /*#__PURE__*/React__namespace.default.createElement(TabContainer, {
|
|
17978
17989
|
style: containerStyle,
|
|
17979
17990
|
testID: componentTestID
|
|
17980
|
-
}, /*#__PURE__*/
|
|
17991
|
+
}, /*#__PURE__*/React__namespace.default.createElement(ScrollableTabHeader, {
|
|
17981
17992
|
tabs: tabs,
|
|
17982
17993
|
selectedIndex: selectedTabIndex,
|
|
17983
17994
|
onTabPress: onTabPress,
|
|
@@ -17985,7 +17996,7 @@ var ScrollableTab = function ScrollableTab(_ref) {
|
|
|
17985
17996
|
insets: insets,
|
|
17986
17997
|
testID: componentTestID ? "".concat(componentTestID, "-tab-bar") : undefined,
|
|
17987
17998
|
variant: variant
|
|
17988
|
-
}), /*#__PURE__*/
|
|
17999
|
+
}), /*#__PURE__*/React__namespace.default.createElement(PagerView__default.default, {
|
|
17989
18000
|
useNext: true,
|
|
17990
18001
|
initialPage: selectedTabIndex,
|
|
17991
18002
|
ref: pagerViewRef,
|
|
@@ -18007,10 +18018,10 @@ var ScrollableTab = function ScrollableTab(_ref) {
|
|
|
18007
18018
|
var key = tab.key,
|
|
18008
18019
|
component = tab.component,
|
|
18009
18020
|
testID = tab.testID;
|
|
18010
|
-
return /*#__PURE__*/
|
|
18021
|
+
return /*#__PURE__*/React__namespace.default.createElement(ScreenContext.Provider, {
|
|
18011
18022
|
value: key,
|
|
18012
18023
|
key: key
|
|
18013
|
-
}, /*#__PURE__*/
|
|
18024
|
+
}, /*#__PURE__*/React__namespace.default.createElement(SceneView, {
|
|
18014
18025
|
testID: testID,
|
|
18015
18026
|
index: index,
|
|
18016
18027
|
selectedIndex: selectedTabIndex,
|
|
@@ -18020,13 +18031,13 @@ var ScrollableTab = function ScrollableTab(_ref) {
|
|
|
18020
18031
|
}))));
|
|
18021
18032
|
};
|
|
18022
18033
|
|
|
18023
|
-
var AnimatedPagerView = reactNative.Animated.createAnimatedComponent(PagerView__default
|
|
18034
|
+
var AnimatedPagerView = reactNative.Animated.createAnimatedComponent(PagerView__default.default);
|
|
18024
18035
|
var getTabItem = function getTabItem(_ref) {
|
|
18025
18036
|
var item = _ref.item,
|
|
18026
18037
|
color = _ref.color,
|
|
18027
18038
|
active = _ref.active;
|
|
18028
18039
|
if (typeof item === 'string') {
|
|
18029
|
-
return /*#__PURE__*/
|
|
18040
|
+
return /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
18030
18041
|
variant: active ? 'small-bold' : 'small',
|
|
18031
18042
|
numberOfLines: 1,
|
|
18032
18043
|
style: {
|
|
@@ -18077,16 +18088,16 @@ var Tabs = function Tabs(_ref2) {
|
|
|
18077
18088
|
selectedTabKey: selectedTabKey
|
|
18078
18089
|
};
|
|
18079
18090
|
}, [selectedTabKey]);
|
|
18080
|
-
return /*#__PURE__*/
|
|
18091
|
+
return /*#__PURE__*/React__namespace.default.createElement(TabContext.Provider, {
|
|
18081
18092
|
value: tabContextProviderValue
|
|
18082
|
-
}, /*#__PURE__*/
|
|
18093
|
+
}, /*#__PURE__*/React__namespace.default.createElement(TabContainer$1, {
|
|
18083
18094
|
style: containerStyle,
|
|
18084
18095
|
testID: componentTestID
|
|
18085
|
-
}, /*#__PURE__*/
|
|
18096
|
+
}, /*#__PURE__*/React__namespace.default.createElement(HeaderTabWrapper$1, {
|
|
18086
18097
|
themeInsets: insets,
|
|
18087
18098
|
style: barStyle,
|
|
18088
18099
|
testID: componentTestID ? "".concat(componentTestID, "-tab-bar") : undefined
|
|
18089
|
-
}, /*#__PURE__*/
|
|
18100
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, null, /*#__PURE__*/React__namespace.default.createElement(HeaderTab, {
|
|
18090
18101
|
onLayout: function onLayout(e) {
|
|
18091
18102
|
var width = e.nativeEvent.layout.width;
|
|
18092
18103
|
if (tabsWidth !== width) {
|
|
@@ -18106,22 +18117,22 @@ var Tabs = function Tabs(_ref2) {
|
|
|
18106
18117
|
color: theme.__hd__.tabs.colors.text,
|
|
18107
18118
|
active: active
|
|
18108
18119
|
});
|
|
18109
|
-
return /*#__PURE__*/
|
|
18120
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableWithoutFeedback, {
|
|
18110
18121
|
key: key,
|
|
18111
18122
|
onPress: function onPress() {
|
|
18112
18123
|
onTabPress(key);
|
|
18113
18124
|
},
|
|
18114
18125
|
testID: testID
|
|
18115
|
-
}, /*#__PURE__*/
|
|
18126
|
+
}, /*#__PURE__*/React__namespace.default.createElement(HeaderTabItem$1, null, /*#__PURE__*/React__namespace.default.createElement(TabWithBadge, {
|
|
18116
18127
|
config: badge,
|
|
18117
18128
|
tabItem: tabItem
|
|
18118
18129
|
})));
|
|
18119
|
-
})), /*#__PURE__*/
|
|
18130
|
+
})), /*#__PURE__*/React__namespace.default.createElement(ActiveTabIndicator, {
|
|
18120
18131
|
positionAnimatedValue: positionAnimatedValue,
|
|
18121
18132
|
scrollOffsetAnimatedValue: scrollOffsetAnimatedValue,
|
|
18122
18133
|
tabsLength: tabs.length,
|
|
18123
18134
|
tabsWidth: tabsWidth
|
|
18124
|
-
}))), /*#__PURE__*/
|
|
18135
|
+
}))), /*#__PURE__*/React__namespace.default.createElement(AnimatedPagerView, {
|
|
18125
18136
|
useNext: true,
|
|
18126
18137
|
initialPage: selectedTabIndex,
|
|
18127
18138
|
ref: pagerViewRef,
|
|
@@ -18149,10 +18160,10 @@ var Tabs = function Tabs(_ref2) {
|
|
|
18149
18160
|
var key = tab.key,
|
|
18150
18161
|
component = tab.component,
|
|
18151
18162
|
testID = tab.testID;
|
|
18152
|
-
return /*#__PURE__*/
|
|
18163
|
+
return /*#__PURE__*/React__namespace.default.createElement(ScreenContext.Provider, {
|
|
18153
18164
|
value: key,
|
|
18154
18165
|
key: key
|
|
18155
|
-
}, /*#__PURE__*/
|
|
18166
|
+
}, /*#__PURE__*/React__namespace.default.createElement(SceneView, {
|
|
18156
18167
|
testID: testID,
|
|
18157
18168
|
key: key,
|
|
18158
18169
|
index: index,
|
|
@@ -18199,11 +18210,11 @@ var Tag = function Tag(_ref) {
|
|
|
18199
18210
|
testID = _ref.testID,
|
|
18200
18211
|
nativeProps = _objectWithoutProperties(_ref, _excluded$5);
|
|
18201
18212
|
useDeprecation("Tag's variant prop is deprecated and will be removed in the next major release. Please remove it.", variant !== undefined);
|
|
18202
|
-
return /*#__PURE__*/
|
|
18213
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledView, _extends$1({}, nativeProps, {
|
|
18203
18214
|
themeIntent: intent,
|
|
18204
18215
|
style: style,
|
|
18205
18216
|
testID: testID
|
|
18206
|
-
}), typeof content === 'string' ? /*#__PURE__*/
|
|
18217
|
+
}), typeof content === 'string' ? /*#__PURE__*/React__namespace.default.createElement(StyledText, {
|
|
18207
18218
|
themeIntent: intent,
|
|
18208
18219
|
fontWeight: "semi-bold"
|
|
18209
18220
|
}, content) : content);
|
|
@@ -18232,15 +18243,15 @@ var TimePickerAndroid = function TimePickerAndroid(_ref) {
|
|
|
18232
18243
|
var is12Hour = displayFormat.includes('hh');
|
|
18233
18244
|
var displayValue = value ? formatTime(displayFormat, value) : '';
|
|
18234
18245
|
var pickerInitValue = value || new Date();
|
|
18235
|
-
return /*#__PURE__*/
|
|
18246
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
18236
18247
|
onPress: function onPress() {
|
|
18237
18248
|
return setOpen(true);
|
|
18238
18249
|
},
|
|
18239
18250
|
disabled: disabled
|
|
18240
|
-
}, /*#__PURE__*/
|
|
18251
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
18241
18252
|
pointerEvents: "none",
|
|
18242
18253
|
testID: "timePickerInputAndroid"
|
|
18243
|
-
}, /*#__PURE__*/
|
|
18254
|
+
}, /*#__PURE__*/React__namespace.default.createElement(TextInput, {
|
|
18244
18255
|
label: label,
|
|
18245
18256
|
value: displayValue,
|
|
18246
18257
|
suffix: showSuffix ? 'clock-3' : undefined,
|
|
@@ -18251,7 +18262,7 @@ var TimePickerAndroid = function TimePickerAndroid(_ref) {
|
|
|
18251
18262
|
helpText: helpText,
|
|
18252
18263
|
style: style,
|
|
18253
18264
|
testID: testID
|
|
18254
|
-
})), open ? /*#__PURE__*/
|
|
18265
|
+
})), open ? /*#__PURE__*/React__namespace.default.createElement(DateTimePicker__default.default, {
|
|
18255
18266
|
testID: "timePickerAndroid",
|
|
18256
18267
|
mode: "time",
|
|
18257
18268
|
value: pickerInitValue,
|
|
@@ -18303,15 +18314,15 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
18303
18314
|
var is12Hour = displayFormat.includes('hh');
|
|
18304
18315
|
var displayValue = value ? formatTime(displayFormat, value) : '';
|
|
18305
18316
|
var theme = useTheme();
|
|
18306
|
-
return /*#__PURE__*/
|
|
18317
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableOpacity, {
|
|
18307
18318
|
onPress: function onPress() {
|
|
18308
18319
|
return setOpen(true);
|
|
18309
18320
|
},
|
|
18310
18321
|
disabled: disabled
|
|
18311
|
-
}, /*#__PURE__*/
|
|
18322
|
+
}, /*#__PURE__*/React__namespace.default.createElement(reactNative.View, {
|
|
18312
18323
|
pointerEvents: "none",
|
|
18313
18324
|
testID: "timePickerInputIOS"
|
|
18314
|
-
}, /*#__PURE__*/
|
|
18325
|
+
}, /*#__PURE__*/React__namespace.default.createElement(TextInput, {
|
|
18315
18326
|
label: label,
|
|
18316
18327
|
value: displayValue,
|
|
18317
18328
|
suffix: showSuffix ? 'clock-3' : undefined,
|
|
@@ -18322,13 +18333,13 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
18322
18333
|
helpText: helpText,
|
|
18323
18334
|
testID: testID,
|
|
18324
18335
|
style: style
|
|
18325
|
-
})), /*#__PURE__*/
|
|
18336
|
+
})), /*#__PURE__*/React__namespace.default.createElement(BottomSheet$1, {
|
|
18326
18337
|
open: open,
|
|
18327
18338
|
onRequestClose: function onRequestClose() {
|
|
18328
18339
|
return setOpen(false);
|
|
18329
18340
|
},
|
|
18330
18341
|
header: label,
|
|
18331
|
-
footer: /*#__PURE__*/
|
|
18342
|
+
footer: /*#__PURE__*/React__namespace.default.createElement(CompoundButton, {
|
|
18332
18343
|
variant: "text",
|
|
18333
18344
|
text: confirmLabel,
|
|
18334
18345
|
onPress: function onPress() {
|
|
@@ -18339,7 +18350,7 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
18339
18350
|
}
|
|
18340
18351
|
}),
|
|
18341
18352
|
supportedOrientations: supportedOrientations
|
|
18342
|
-
}, /*#__PURE__*/
|
|
18353
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledPickerWrapper, null, /*#__PURE__*/React__namespace.default.createElement(DateTimePicker__default.default, {
|
|
18343
18354
|
testID: "timePickerIOS",
|
|
18344
18355
|
value: selectingDate,
|
|
18345
18356
|
mode: "time"
|
|
@@ -18362,9 +18373,9 @@ var TimePickerIOS = function TimePickerIOS(_ref) {
|
|
|
18362
18373
|
|
|
18363
18374
|
var TimePicker = function TimePicker(props) {
|
|
18364
18375
|
if (reactNative.Platform.OS === 'ios') {
|
|
18365
|
-
return /*#__PURE__*/
|
|
18376
|
+
return /*#__PURE__*/React__namespace.default.createElement(TimePickerIOS, props);
|
|
18366
18377
|
}
|
|
18367
|
-
return /*#__PURE__*/
|
|
18378
|
+
return /*#__PURE__*/React__namespace.default.createElement(TimePickerAndroid, props);
|
|
18368
18379
|
};
|
|
18369
18380
|
|
|
18370
18381
|
var ToolbarWrapper = index$9(reactNative.View)(function (_ref) {
|
|
@@ -18432,12 +18443,12 @@ var IconItem = function IconItem(_ref) {
|
|
|
18432
18443
|
intent = _ref.intent,
|
|
18433
18444
|
disabled = _ref.disabled,
|
|
18434
18445
|
label = _ref.label;
|
|
18435
|
-
return /*#__PURE__*/
|
|
18446
|
+
return /*#__PURE__*/React__namespace.default.createElement(IconButtonWrapper, null, /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
18436
18447
|
icon: icon,
|
|
18437
18448
|
size: "medium",
|
|
18438
18449
|
intent: disabled ? 'disabled-text' : intent,
|
|
18439
18450
|
testID: "toolbar-item-icon-".concat(icon)
|
|
18440
|
-
}), label ? /*#__PURE__*/
|
|
18451
|
+
}), label ? /*#__PURE__*/React__namespace.default.createElement(IconButtonLabel, {
|
|
18441
18452
|
variant: "regular-bold",
|
|
18442
18453
|
intent: disabled ? 'subdued' : intent,
|
|
18443
18454
|
allowFontScaling: false,
|
|
@@ -18452,7 +18463,7 @@ var ToolbarItemContent = function ToolbarItemContent(_ref2) {
|
|
|
18452
18463
|
_ref2$disabled = _ref2.disabled,
|
|
18453
18464
|
disabled = _ref2$disabled === void 0 ? false : _ref2$disabled;
|
|
18454
18465
|
if (icon) {
|
|
18455
|
-
return /*#__PURE__*/
|
|
18466
|
+
return /*#__PURE__*/React__namespace.default.createElement(IconItem, {
|
|
18456
18467
|
icon: icon,
|
|
18457
18468
|
intent: intent,
|
|
18458
18469
|
disabled: disabled,
|
|
@@ -18460,7 +18471,7 @@ var ToolbarItemContent = function ToolbarItemContent(_ref2) {
|
|
|
18460
18471
|
});
|
|
18461
18472
|
}
|
|
18462
18473
|
if (label) {
|
|
18463
|
-
return /*#__PURE__*/
|
|
18474
|
+
return /*#__PURE__*/React__namespace.default.createElement(Typography.Body, {
|
|
18464
18475
|
variant: "regular-bold",
|
|
18465
18476
|
intent: disabled ? 'disabled' : intent,
|
|
18466
18477
|
allowFontScaling: false,
|
|
@@ -18478,11 +18489,11 @@ var ToolbarItem = function ToolbarItem(_ref3) {
|
|
|
18478
18489
|
_ref3$disabled = _ref3.disabled,
|
|
18479
18490
|
disabled = _ref3$disabled === void 0 ? false : _ref3$disabled,
|
|
18480
18491
|
style = _ref3.style;
|
|
18481
|
-
return /*#__PURE__*/
|
|
18492
|
+
return /*#__PURE__*/React__namespace.default.createElement(ToolbarItemWrapper, {
|
|
18482
18493
|
onPress: onPress,
|
|
18483
18494
|
disabled: disabled,
|
|
18484
18495
|
style: style
|
|
18485
|
-
}, /*#__PURE__*/
|
|
18496
|
+
}, /*#__PURE__*/React__namespace.default.createElement(ToolbarItemContent, {
|
|
18486
18497
|
icon: icon,
|
|
18487
18498
|
label: label,
|
|
18488
18499
|
intent: intent,
|
|
@@ -18496,7 +18507,7 @@ var ToolbarGroup = function ToolbarGroup(_ref) {
|
|
|
18496
18507
|
_ref$items = _ref.items,
|
|
18497
18508
|
items = _ref$items === void 0 ? [] : _ref$items;
|
|
18498
18509
|
useDeprecation("Toolbar's align prop is deprecated", align !== 'right');
|
|
18499
|
-
return /*#__PURE__*/
|
|
18510
|
+
return /*#__PURE__*/React__namespace.default.createElement(ToolbarGroupWrapper, {
|
|
18500
18511
|
align: align
|
|
18501
18512
|
}, items.map(function (_ref2) {
|
|
18502
18513
|
var label = _ref2.label,
|
|
@@ -18504,7 +18515,7 @@ var ToolbarGroup = function ToolbarGroup(_ref) {
|
|
|
18504
18515
|
onPress = _ref2.onPress,
|
|
18505
18516
|
disabled = _ref2.disabled,
|
|
18506
18517
|
intent = _ref2.intent;
|
|
18507
|
-
return /*#__PURE__*/
|
|
18518
|
+
return /*#__PURE__*/React__namespace.default.createElement(ToolbarItem, {
|
|
18508
18519
|
key: "".concat(label, "-").concat(icon),
|
|
18509
18520
|
label: label,
|
|
18510
18521
|
icon: icon,
|
|
@@ -18519,7 +18530,7 @@ var _excluded$4 = ["children"];
|
|
|
18519
18530
|
var Toolbar = function Toolbar(_ref) {
|
|
18520
18531
|
var children = _ref.children,
|
|
18521
18532
|
rest = _objectWithoutProperties(_ref, _excluded$4);
|
|
18522
|
-
return /*#__PURE__*/
|
|
18533
|
+
return /*#__PURE__*/React__namespace.default.createElement(ToolbarWrapper, rest, children);
|
|
18523
18534
|
};
|
|
18524
18535
|
var index$1 = Object.assign(Toolbar, {
|
|
18525
18536
|
Group: ToolbarGroup
|
|
@@ -18564,21 +18575,21 @@ var Rate = function Rate(_ref) {
|
|
|
18564
18575
|
useNativeDriver: reactNative.Platform.OS !== 'web'
|
|
18565
18576
|
}).start();
|
|
18566
18577
|
}, [value, animatedValue]);
|
|
18567
|
-
return /*#__PURE__*/
|
|
18568
|
-
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, {
|
|
18569
18580
|
key: item.value,
|
|
18570
18581
|
disabled: disabled || readonly,
|
|
18571
18582
|
onPress: function onPress() {
|
|
18572
18583
|
return onChange === null || onChange === void 0 ? void 0 : onChange(item.value);
|
|
18573
18584
|
},
|
|
18574
18585
|
testID: item.value.toString()
|
|
18575
|
-
}, /*#__PURE__*/
|
|
18586
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledIconWrapper, {
|
|
18576
18587
|
style: valueIndex === index && {
|
|
18577
18588
|
transform: [{
|
|
18578
18589
|
scale: scale
|
|
18579
18590
|
}]
|
|
18580
18591
|
}
|
|
18581
|
-
}, /*#__PURE__*/
|
|
18592
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
18582
18593
|
icon: index <= valueIndex ? 'star' : 'star-outlined',
|
|
18583
18594
|
intent: disabled ? 'disabled-text' : 'primary'
|
|
18584
18595
|
})));
|
|
@@ -18588,7 +18599,7 @@ var Rate = function Rate(_ref) {
|
|
|
18588
18599
|
var RefreshControl = function RefreshControl(_ref) {
|
|
18589
18600
|
var props = _extends$1({}, (_objectDestructuringEmpty(_ref), _ref));
|
|
18590
18601
|
var theme = useTheme();
|
|
18591
|
-
return /*#__PURE__*/
|
|
18602
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.RefreshControl, _extends$1({}, props, {
|
|
18592
18603
|
colors: [theme.__hd__.refreshControl.colors.indicator],
|
|
18593
18604
|
tintColor: theme.__hd__.refreshControl.colors.indicator
|
|
18594
18605
|
}));
|
|
@@ -18657,11 +18668,11 @@ var ToolbarButton = function ToolbarButton(_ref) {
|
|
|
18657
18668
|
onPress = _ref.onPress,
|
|
18658
18669
|
testID = _ref.testID,
|
|
18659
18670
|
selected = _ref.selected;
|
|
18660
|
-
return /*#__PURE__*/
|
|
18671
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledToolbarButton, {
|
|
18661
18672
|
selected: selected,
|
|
18662
18673
|
onPress: onPress,
|
|
18663
18674
|
testID: testID
|
|
18664
|
-
}, /*#__PURE__*/
|
|
18675
|
+
}, /*#__PURE__*/React__namespace.default.createElement(Icon, {
|
|
18665
18676
|
size: "small",
|
|
18666
18677
|
icon: icon
|
|
18667
18678
|
}));
|
|
@@ -18759,13 +18770,13 @@ var EditorToolbar = function EditorToolbar(_ref2) {
|
|
|
18759
18770
|
var toolbarButtons = React.useMemo(function () {
|
|
18760
18771
|
return toolbarButtonArray.map(function (button) {
|
|
18761
18772
|
if (button.buttonName === '|') {
|
|
18762
|
-
return /*#__PURE__*/
|
|
18773
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledSeparator, {
|
|
18763
18774
|
key: button.id
|
|
18764
18775
|
});
|
|
18765
18776
|
}
|
|
18766
18777
|
var config = buttonConfigs[button.buttonName];
|
|
18767
18778
|
if (config) {
|
|
18768
|
-
return /*#__PURE__*/
|
|
18779
|
+
return /*#__PURE__*/React__namespace.default.createElement(ToolbarButton, {
|
|
18769
18780
|
key: button.id,
|
|
18770
18781
|
testID: config.icon,
|
|
18771
18782
|
icon: config.icon,
|
|
@@ -18780,7 +18791,7 @@ var EditorToolbar = function EditorToolbar(_ref2) {
|
|
|
18780
18791
|
});
|
|
18781
18792
|
}, [toolbarButtonArray]);
|
|
18782
18793
|
if (show) {
|
|
18783
|
-
return /*#__PURE__*/
|
|
18794
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledToolbar, {
|
|
18784
18795
|
testID: testID
|
|
18785
18796
|
}, toolbarButtons);
|
|
18786
18797
|
}
|
|
@@ -18819,7 +18830,7 @@ var MentionList = function MentionList(_ref) {
|
|
|
18819
18830
|
if (isEmptyString(search)) {
|
|
18820
18831
|
return null;
|
|
18821
18832
|
}
|
|
18822
|
-
return /*#__PURE__*/
|
|
18833
|
+
return /*#__PURE__*/React__namespace.default.createElement(reactNative.View, null, render(search, function (id, name) {
|
|
18823
18834
|
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {
|
|
18824
18835
|
highlighted: false
|
|
18825
18836
|
};
|
|
@@ -19108,7 +19119,7 @@ var scheduler_production_min = {};
|
|
|
19108
19119
|
scheduler.exports = scheduler_production_min;
|
|
19109
19120
|
}
|
|
19110
19121
|
|
|
19111
|
-
var aa =
|
|
19122
|
+
var aa = React__namespace.default,
|
|
19112
19123
|
ca = scheduler.exports;
|
|
19113
19124
|
function p(a) {
|
|
19114
19125
|
for (var b = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, c = 1; c < arguments.length; c++) b += "&args[]=" + encodeURIComponent(arguments[c]);
|
|
@@ -26251,7 +26262,7 @@ function checkDCE() {
|
|
|
26251
26262
|
|
|
26252
26263
|
(function (module, exports) {
|
|
26253
26264
|
!function (e, t) {
|
|
26254
|
-
module.exports = t(
|
|
26265
|
+
module.exports = t(React__namespace.default, reactDom.exports);
|
|
26255
26266
|
}(window, function (e, t) {
|
|
26256
26267
|
return function (e) {
|
|
26257
26268
|
var t = {};
|
|
@@ -35557,14 +35568,14 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
35557
35568
|
postMessage(webview.current, message);
|
|
35558
35569
|
}
|
|
35559
35570
|
};
|
|
35560
|
-
var _React$useState =
|
|
35571
|
+
var _React$useState = React__namespace.default.useState({
|
|
35561
35572
|
height: 0,
|
|
35562
35573
|
width: 0
|
|
35563
35574
|
}),
|
|
35564
35575
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
35565
35576
|
inputSize = _React$useState2[0],
|
|
35566
35577
|
setInputSize = _React$useState2[1];
|
|
35567
|
-
var _React$useState3 =
|
|
35578
|
+
var _React$useState3 = React__namespace.default.useState(0),
|
|
35568
35579
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
35569
35580
|
labelWidth = _React$useState4[0],
|
|
35570
35581
|
setLabelWidth = _React$useState4[1];
|
|
@@ -35679,9 +35690,9 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
35679
35690
|
break;
|
|
35680
35691
|
}
|
|
35681
35692
|
}, []);
|
|
35682
|
-
return /*#__PURE__*/
|
|
35693
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledContainer$4, {
|
|
35683
35694
|
testID: testID
|
|
35684
|
-
}, /*#__PURE__*/
|
|
35695
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledLabelContainerInsideTextInput, {
|
|
35685
35696
|
themeVariant: "text",
|
|
35686
35697
|
pointerEvents: "none",
|
|
35687
35698
|
testID: "input-label-container",
|
|
@@ -35705,28 +35716,28 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
35705
35716
|
})
|
|
35706
35717
|
}]
|
|
35707
35718
|
}]
|
|
35708
|
-
}, required && /*#__PURE__*/
|
|
35719
|
+
}, required && /*#__PURE__*/React__namespace.default.createElement(StyledAsteriskLabelInsideTextInput, {
|
|
35709
35720
|
style: {
|
|
35710
35721
|
backgroundColor: theme.__hd__.textInput.colors.labelBackground
|
|
35711
35722
|
},
|
|
35712
35723
|
themeState: state
|
|
35713
|
-
}, "*"), !!label && /*#__PURE__*/
|
|
35724
|
+
}, "*"), !!label && /*#__PURE__*/React__namespace.default.createElement(StyledLabelInsideTextInput, {
|
|
35714
35725
|
style: {
|
|
35715
35726
|
backgroundColor: theme.__hd__.textInput.colors.labelBackground
|
|
35716
35727
|
},
|
|
35717
35728
|
testID: "input-label",
|
|
35718
35729
|
themeState: state,
|
|
35719
35730
|
onLayout: onLabelLayout
|
|
35720
|
-
}, label)), /*#__PURE__*/
|
|
35731
|
+
}, label)), /*#__PURE__*/React__namespace.default.createElement(StyledTextInputContainer, {
|
|
35721
35732
|
onLayout: onLayout
|
|
35722
|
-
}, /*#__PURE__*/
|
|
35733
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledBorderBackDrop, {
|
|
35723
35734
|
themeState: state,
|
|
35724
35735
|
themeFocused: isFocused
|
|
35725
|
-
}), /*#__PURE__*/
|
|
35736
|
+
}), /*#__PURE__*/React__namespace.default.createElement(StyledTextInputAndLabelContainer, null, /*#__PURE__*/React__namespace.default.createElement(reactNative.TouchableWithoutFeedback, {
|
|
35726
35737
|
onPress: function onPress(e) {
|
|
35727
35738
|
return e.stopPropagation();
|
|
35728
35739
|
}
|
|
35729
|
-
}, /*#__PURE__*/
|
|
35740
|
+
}, /*#__PURE__*/React__namespace.default.createElement(StyledWebView, {
|
|
35730
35741
|
ref: webview,
|
|
35731
35742
|
testID: "webview",
|
|
35732
35743
|
style: style,
|
|
@@ -35739,17 +35750,17 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
35739
35750
|
hideKeyboardAccessoryView: true,
|
|
35740
35751
|
keyboardDisplayRequiresUserAction: false,
|
|
35741
35752
|
height: webviewHeight
|
|
35742
|
-
})))), /*#__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, {
|
|
35743
35754
|
testID: "input-error-icon",
|
|
35744
35755
|
icon: "circle-info",
|
|
35745
35756
|
size: "xsmall",
|
|
35746
35757
|
intent: "danger"
|
|
35747
|
-
}), /*#__PURE__*/
|
|
35758
|
+
}), /*#__PURE__*/React__namespace.default.createElement(StyledError, {
|
|
35748
35759
|
testID: "input-error-message"
|
|
35749
|
-
}, error)) : !!helpText && /*#__PURE__*/
|
|
35760
|
+
}, error)) : !!helpText && /*#__PURE__*/React__namespace.default.createElement(StyledHelperText, null, helpText))));
|
|
35750
35761
|
};
|
|
35751
35762
|
var RichTextEditorWithRef = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
35752
|
-
return /*#__PURE__*/
|
|
35763
|
+
return /*#__PURE__*/React__namespace.default.createElement(RichTextEditor, _extends$1({}, props, {
|
|
35753
35764
|
forwardedRef: ref
|
|
35754
35765
|
}));
|
|
35755
35766
|
});
|
|
@@ -35781,18 +35792,18 @@ var AnimatedFAB = function AnimatedFAB(_ref) {
|
|
|
35781
35792
|
contentHeight = _ref.contentHeight,
|
|
35782
35793
|
layoutHeight = _ref.layoutHeight;
|
|
35783
35794
|
var component = 'items' in fabProps ? 'ActionGroup' : 'FAB';
|
|
35784
|
-
var ref =
|
|
35785
|
-
var currentContentHeight =
|
|
35786
|
-
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);
|
|
35787
35798
|
/** fabState is used to avoid calling duplicated animations. */
|
|
35788
|
-
var fabState =
|
|
35799
|
+
var fabState = React__namespace.default.useRef('show');
|
|
35789
35800
|
/** remainingScrollOffset determines whether to animate the FAB. */
|
|
35790
|
-
var remainingScrollOffset =
|
|
35801
|
+
var remainingScrollOffset = React__namespace.default.useRef(MAX_ANIMATABLE_SCROLL_DISTANCE);
|
|
35791
35802
|
/** currentScrollDirection is used to determine the scroll direction. */
|
|
35792
|
-
var currentScrollDirection =
|
|
35803
|
+
var currentScrollDirection = React__namespace.default.useRef('down');
|
|
35793
35804
|
/** lastScrollY is the scrollY from the preview scroll event. */
|
|
35794
|
-
var lastScrollY =
|
|
35795
|
-
var animateFab =
|
|
35805
|
+
var lastScrollY = React__namespace.default.useRef(0);
|
|
35806
|
+
var animateFab = React__namespace.default.useCallback(function (newState) {
|
|
35796
35807
|
if (fabState.current !== newState) {
|
|
35797
35808
|
if (newState === 'show') {
|
|
35798
35809
|
var _ref$current;
|
|
@@ -35807,7 +35818,7 @@ var AnimatedFAB = function AnimatedFAB(_ref) {
|
|
|
35807
35818
|
fabState.current = newState;
|
|
35808
35819
|
}
|
|
35809
35820
|
}, [component]);
|
|
35810
|
-
|
|
35821
|
+
React__namespace.default.useEffect(function () {
|
|
35811
35822
|
contentHeight.addListener(function (_ref2) {
|
|
35812
35823
|
var value = _ref2.value;
|
|
35813
35824
|
if (value > 0 && value !== currentContentHeight.current) {
|
|
@@ -35862,9 +35873,9 @@ var AnimatedFAB = function AnimatedFAB(_ref) {
|
|
|
35862
35873
|
layoutHeight.removeAllListeners();
|
|
35863
35874
|
};
|
|
35864
35875
|
}, [contentHeight, contentOffsetY, layoutHeight]);
|
|
35865
|
-
return component === 'FAB' ? /*#__PURE__*/
|
|
35876
|
+
return component === 'FAB' ? /*#__PURE__*/React__namespace.default.createElement(FAB, _extends$1({
|
|
35866
35877
|
ref: ref
|
|
35867
|
-
}, fabProps)) : /*#__PURE__*/
|
|
35878
|
+
}, fabProps)) : /*#__PURE__*/React__namespace.default.createElement(ActionGroup, _extends$1({
|
|
35868
35879
|
ref: ref
|
|
35869
35880
|
}, fabProps));
|
|
35870
35881
|
};
|
|
@@ -35872,14 +35883,14 @@ var AnimatedFAB = function AnimatedFAB(_ref) {
|
|
|
35872
35883
|
function AnimatedScroller(_ref) {
|
|
35873
35884
|
var ScrollComponent = _ref.ScrollComponent,
|
|
35874
35885
|
fabProps = _ref.fabProps;
|
|
35875
|
-
var contentOffsetY =
|
|
35876
|
-
var contentHeight =
|
|
35877
|
-
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;
|
|
35878
35889
|
// Common props for all ScrollView, FlatList and SectionList.
|
|
35879
35890
|
var _ScrollComponent$prop = ScrollComponent.props,
|
|
35880
35891
|
onScroll = _ScrollComponent$prop.onScroll,
|
|
35881
35892
|
scrollEventThrottle = _ScrollComponent$prop.scrollEventThrottle;
|
|
35882
|
-
return /*#__PURE__*/
|
|
35893
|
+
return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, /*#__PURE__*/React__namespace.default.cloneElement(ScrollComponent, _objectSpread2(_objectSpread2({}, ScrollComponent.props), {}, {
|
|
35883
35894
|
scrollEventThrottle: scrollEventThrottle || 100,
|
|
35884
35895
|
onScroll: reactNative.Animated.event([{
|
|
35885
35896
|
nativeEvent: {
|
|
@@ -35897,7 +35908,7 @@ function AnimatedScroller(_ref) {
|
|
|
35897
35908
|
useNativeDriver: false,
|
|
35898
35909
|
listener: onScroll
|
|
35899
35910
|
})
|
|
35900
|
-
})), !!fabProps && /*#__PURE__*/
|
|
35911
|
+
})), !!fabProps && /*#__PURE__*/React__namespace.default.createElement(AnimatedFAB, {
|
|
35901
35912
|
fabProps: fabProps,
|
|
35902
35913
|
contentOffsetY: contentOffsetY,
|
|
35903
35914
|
contentHeight: contentHeight,
|
|
@@ -35909,8 +35920,8 @@ var _excluded$2 = ["fabProps"];
|
|
|
35909
35920
|
var ScrollViewWithFAB = function ScrollViewWithFAB(_ref) {
|
|
35910
35921
|
var fabProps = _ref.fabProps,
|
|
35911
35922
|
props = _objectWithoutProperties(_ref, _excluded$2);
|
|
35912
|
-
return /*#__PURE__*/
|
|
35913
|
-
ScrollComponent: /*#__PURE__*/
|
|
35923
|
+
return /*#__PURE__*/React__namespace.default.createElement(AnimatedScroller, {
|
|
35924
|
+
ScrollComponent: /*#__PURE__*/React__namespace.default.createElement(reactNative.ScrollView, props),
|
|
35914
35925
|
fabProps: fabProps
|
|
35915
35926
|
});
|
|
35916
35927
|
};
|
|
@@ -35919,8 +35930,8 @@ var _excluded$1 = ["fabProps"];
|
|
|
35919
35930
|
function FlatListWithFAB(_ref) {
|
|
35920
35931
|
var fabProps = _ref.fabProps,
|
|
35921
35932
|
props = _objectWithoutProperties(_ref, _excluded$1);
|
|
35922
|
-
return /*#__PURE__*/
|
|
35923
|
-
ScrollComponent: /*#__PURE__*/
|
|
35933
|
+
return /*#__PURE__*/React__namespace.default.createElement(AnimatedScroller, {
|
|
35934
|
+
ScrollComponent: /*#__PURE__*/React__namespace.default.createElement(reactNative.FlatList, props),
|
|
35924
35935
|
fabProps: fabProps
|
|
35925
35936
|
});
|
|
35926
35937
|
}
|
|
@@ -35929,8 +35940,8 @@ var _excluded = ["fabProps"];
|
|
|
35929
35940
|
function SectionListWithFAB(_ref) {
|
|
35930
35941
|
var fabProps = _ref.fabProps,
|
|
35931
35942
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
35932
|
-
return /*#__PURE__*/
|
|
35933
|
-
ScrollComponent: /*#__PURE__*/
|
|
35943
|
+
return /*#__PURE__*/React__namespace.default.createElement(AnimatedScroller, {
|
|
35944
|
+
ScrollComponent: /*#__PURE__*/React__namespace.default.createElement(reactNative.SectionList, props),
|
|
35934
35945
|
fabProps: fabProps
|
|
35935
35946
|
});
|
|
35936
35947
|
}
|