@hero-design/rn 8.22.0-alpha.0 → 8.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +9 -9
- package/.turbo/turbo-publish:npm.log +0 -9
- package/es/index.js +283 -91
- package/lib/index.js +283 -90
- package/package.json +5 -5
- package/src/components/Alert/index.tsx +6 -0
- package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +5 -5
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +180 -138
- package/src/components/FAB/FAB.tsx +17 -12
- package/src/components/FAB/StyledFAB.tsx +13 -4
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +13 -21
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +214 -151
- package/src/components/List/ListItem.tsx +12 -8
- package/src/components/Success/StyledSuccess.tsx +87 -0
- package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +497 -0
- package/src/components/Success/__tests__/index.spec.tsx +78 -0
- package/src/components/Success/index.tsx +129 -0
- package/src/components/Tag/StyledTag.tsx +1 -1
- package/src/components/Tag/__tests__/Tag.spec.tsx +22 -71
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +106 -53
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +265 -0
- package/src/components/TextInput/__tests__/index.spec.tsx +29 -0
- package/src/components/TextInput/index.tsx +6 -1
- package/src/index.ts +2 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +43 -3
- package/src/theme/components/empty.ts +1 -1
- package/src/theme/components/error.ts +1 -1
- package/src/theme/components/fab.ts +18 -1
- package/src/theme/components/success.ts +40 -0
- package/src/theme/components/tag.ts +1 -1
- package/src/theme/getTheme.ts +3 -0
- package/src/theme/global/colors/__tests__/__snapshots__/globalDark.spec.ts.snap +19 -19
- package/src/theme/global/colors/__tests__/__snapshots__/swagDark.spec.ts.snap +19 -19
- package/src/theme/global/colors/globalDark.ts +24 -24
- package/src/utils/hooks.ts +1 -1
- package/types/components/Accordion/AccordionItem.d.ts +0 -0
- package/types/components/Accordion/StyledAccordion.d.ts +0 -0
- package/types/components/Accordion/index.d.ts +0 -0
- package/types/components/Alert/StyledAlert.d.ts +0 -0
- package/types/components/Alert/index.d.ts +0 -0
- package/types/components/Attachment/StyledAttachment.d.ts +0 -0
- package/types/components/Attachment/index.d.ts +0 -0
- package/types/components/Avatar/Avatar.d.ts +0 -0
- package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +0 -0
- package/types/components/Avatar/AvatarStack/index.d.ts +0 -0
- package/types/components/Avatar/AvatarStack/utils.d.ts +0 -0
- package/types/components/Avatar/StyledAvatar.d.ts +0 -0
- package/types/components/Avatar/index.d.ts +0 -0
- package/types/components/Badge/Status.d.ts +0 -0
- package/types/components/Badge/StyledBadge.d.ts +0 -0
- package/types/components/Badge/index.d.ts +0 -0
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
- package/types/components/BottomNavigation/index.d.ts +0 -0
- package/types/components/BottomSheet/BottomSheetContext.d.ts +0 -0
- package/types/components/BottomSheet/Footer.d.ts +0 -0
- package/types/components/BottomSheet/Header.d.ts +0 -0
- package/types/components/BottomSheet/ScrollView.d.ts +0 -0
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -0
- package/types/components/BottomSheet/index.d.ts +0 -0
- package/types/components/Box/StyledBox.d.ts +0 -0
- package/types/components/Box/config.d.ts +0 -0
- package/types/components/Box/index.d.ts +0 -0
- package/types/components/Box/types.d.ts +0 -0
- package/types/components/Button/Button.d.ts +0 -0
- package/types/components/Button/IconButton.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/index.d.ts +0 -0
- package/types/components/Button/StyledButton.d.ts +0 -0
- package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +0 -0
- package/types/components/Button/UtilityButton/index.d.ts +0 -0
- package/types/components/Button/index.d.ts +0 -0
- package/types/components/Calendar/CalendarRowItem.d.ts +0 -0
- package/types/components/Calendar/StyledCalendar.d.ts +0 -0
- package/types/components/Calendar/helpers.d.ts +0 -0
- package/types/components/Calendar/index.d.ts +0 -0
- package/types/components/Card/DataCard/StyledDataCard.d.ts +0 -0
- package/types/components/Card/DataCard/index.d.ts +0 -0
- package/types/components/Card/StyledCard.d.ts +0 -0
- package/types/components/Card/index.d.ts +0 -0
- package/types/components/Carousel/CardCarousel.d.ts +0 -0
- package/types/components/Carousel/CarouselItem.d.ts +0 -0
- package/types/components/Carousel/StyledCardCarousel.d.ts +0 -0
- package/types/components/Carousel/StyledCarousel.d.ts +0 -0
- package/types/components/Carousel/contants.d.ts +0 -0
- package/types/components/Carousel/index.d.ts +0 -0
- package/types/components/Carousel/types.d.ts +0 -0
- package/types/components/Checkbox/StyledCheckbox.d.ts +0 -0
- package/types/components/Checkbox/index.d.ts +0 -0
- package/types/components/Collapse/StyledCollapse.d.ts +0 -0
- package/types/components/Collapse/index.d.ts +0 -0
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -0
- package/types/components/ContentNavigator/index.d.ts +0 -0
- package/types/components/DatePicker/DatePickerAndroid.d.ts +0 -0
- package/types/components/DatePicker/DatePickerCalendar.d.ts +0 -0
- package/types/components/DatePicker/DatePickerIOS.d.ts +0 -0
- package/types/components/DatePicker/StyledDatePicker.d.ts +0 -0
- package/types/components/DatePicker/index.d.ts +0 -0
- package/types/components/DatePicker/types.d.ts +0 -0
- package/types/components/Divider/StyledDivider.d.ts +0 -0
- package/types/components/Divider/index.d.ts +0 -0
- package/types/components/Drawer/DragableDrawer/helpers.d.ts +0 -0
- package/types/components/Drawer/DragableDrawer/index.d.ts +0 -0
- package/types/components/Drawer/StyledDrawer.d.ts +0 -0
- package/types/components/Drawer/index.d.ts +0 -0
- package/types/components/Empty/StyledEmpty.d.ts +0 -0
- package/types/components/Empty/index.d.ts +0 -0
- package/types/components/Error/StyledError.d.ts +0 -0
- package/types/components/Error/index.d.ts +0 -0
- package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
- package/types/components/FAB/ActionGroup/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 +7 -3
- 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 +54 -0
- package/types/components/Success/index.d.ts +42 -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/ScrollableTabs.d.ts +0 -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/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 +5 -1
- package/types/components/TimePicker/StyledTimePicker.d.ts +0 -0
- package/types/components/TimePicker/TimePickerAndroid.d.ts +0 -0
- package/types/components/TimePicker/TimePickerIOS.d.ts +0 -0
- package/types/components/TimePicker/index.d.ts +0 -0
- package/types/components/TimePicker/types.d.ts +0 -0
- package/types/components/Toast/StyledToast.d.ts +0 -0
- package/types/components/Toast/Toast.d.ts +0 -0
- package/types/components/Toast/ToastContainer.d.ts +0 -0
- package/types/components/Toast/ToastContext.d.ts +0 -0
- package/types/components/Toast/ToastProvider.d.ts +0 -0
- package/types/components/Toast/index.d.ts +0 -0
- package/types/components/Toast/types.d.ts +0 -0
- package/types/components/Toolbar/StyledToolbar.d.ts +0 -0
- package/types/components/Toolbar/ToolbarGroup.d.ts +0 -0
- package/types/components/Toolbar/ToolbarItem.d.ts +0 -0
- package/types/components/Toolbar/index.d.ts +0 -0
- package/types/components/Typography/Text/StyledText.d.ts +0 -0
- package/types/components/Typography/Text/index.d.ts +0 -0
- package/types/components/Typography/index.d.ts +0 -0
- package/types/index.d.ts +2 -1
- package/types/testHelpers/renderWithTheme.d.ts +0 -0
- package/types/theme/ThemeProvider.d.ts +0 -0
- package/types/theme/ThemeSwitcher.d.ts +0 -0
- package/types/theme/components/accordion.d.ts +0 -0
- package/types/theme/components/alert.d.ts +0 -0
- package/types/theme/components/attachment.d.ts +0 -0
- package/types/theme/components/avatar.d.ts +0 -0
- package/types/theme/components/badge.d.ts +0 -0
- package/types/theme/components/bottomNavigation.d.ts +0 -0
- package/types/theme/components/bottomSheet.d.ts +0 -0
- package/types/theme/components/button.d.ts +0 -0
- package/types/theme/components/calendar.d.ts +0 -0
- package/types/theme/components/card.d.ts +0 -0
- package/types/theme/components/cardCarousel.d.ts +0 -0
- package/types/theme/components/carousel.d.ts +0 -0
- package/types/theme/components/checkbox.d.ts +0 -0
- package/types/theme/components/contentNavigator.d.ts +0 -0
- package/types/theme/components/datePicker.d.ts +0 -0
- package/types/theme/components/divider.d.ts +0 -0
- package/types/theme/components/drawer.d.ts +0 -0
- package/types/theme/components/empty.d.ts +0 -0
- package/types/theme/components/error.d.ts +0 -0
- package/types/theme/components/fab.d.ts +10 -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 +32 -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 +2 -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/.turbo/turbo-build:types.log +0 -2
- package/.turbo/turbo-lint.log +0 -146
- package/.turbo/turbo-test.log +0 -451
- package/.turbo/turbo-type-check.log +0 -2
package/es/index.js
CHANGED
|
@@ -1427,26 +1427,26 @@ var globalPalette = {
|
|
|
1427
1427
|
inactiveOutline: palette$7.maasstrichtBlueLight60,
|
|
1428
1428
|
disabledOutline: palette$7.greyDark20,
|
|
1429
1429
|
// Accents
|
|
1430
|
-
error: palette$7.
|
|
1431
|
-
mutedError: palette$7.
|
|
1432
|
-
errorSurface: palette$7.
|
|
1433
|
-
onErrorSurface: palette$7.
|
|
1434
|
-
warning: palette$7.
|
|
1435
|
-
mutedWarning: palette$7.
|
|
1436
|
-
warningSurface: palette$7.
|
|
1437
|
-
onWarningSurface: palette$7.
|
|
1438
|
-
success: palette$7.
|
|
1439
|
-
mutedSuccess: palette$7.
|
|
1440
|
-
successSurface: palette$7.
|
|
1441
|
-
onSuccessSurface: palette$7.
|
|
1442
|
-
info: palette$7.
|
|
1443
|
-
mutedInfo: palette$7.
|
|
1444
|
-
infoSurface: palette$7.
|
|
1445
|
-
onInfoSurface: palette$7.
|
|
1446
|
-
archived: palette$7.
|
|
1447
|
-
mutedArchived: palette$7.
|
|
1448
|
-
archivedSurface: palette$7.
|
|
1449
|
-
onArchivedSurface: palette$7.
|
|
1430
|
+
error: palette$7.vermilionDark10,
|
|
1431
|
+
mutedError: palette$7.vermilionLight20,
|
|
1432
|
+
errorSurface: palette$7.moussaka,
|
|
1433
|
+
onErrorSurface: palette$7.indianDance,
|
|
1434
|
+
warning: palette$7.theatreGold,
|
|
1435
|
+
mutedWarning: palette$7.theatreGoldLight20,
|
|
1436
|
+
warningSurface: palette$7.uniformGreen,
|
|
1437
|
+
onWarningSurface: palette$7.blazingBonfire,
|
|
1438
|
+
success: palette$7.pineGreenDark10,
|
|
1439
|
+
mutedSuccess: palette$7.pineGreenLight20,
|
|
1440
|
+
successSurface: palette$7.deepIntoTheJungle,
|
|
1441
|
+
onSuccessSurface: palette$7.mintLeaf,
|
|
1442
|
+
info: palette$7.ultramarineBlueDark10,
|
|
1443
|
+
mutedInfo: palette$7.ultramarineBlueLight20,
|
|
1444
|
+
infoSurface: palette$7.blueOblivion,
|
|
1445
|
+
onInfoSurface: palette$7.pastelBlue,
|
|
1446
|
+
archived: palette$7.sonicSilverDark10,
|
|
1447
|
+
mutedArchived: palette$7.sonicSilverLight50,
|
|
1448
|
+
archivedSurface: palette$7.bigStone,
|
|
1449
|
+
onArchivedSurface: palette$7.flagstone
|
|
1450
1450
|
// End of Updated 21 / Nov / 22
|
|
1451
1451
|
};
|
|
1452
1452
|
|
|
@@ -2181,7 +2181,7 @@ var getDrawerTheme = function getDrawerTheme(theme) {
|
|
|
2181
2181
|
|
|
2182
2182
|
var getEmptyTheme = function getEmptyTheme(theme) {
|
|
2183
2183
|
var space = {
|
|
2184
|
-
titleMargin: theme.space.
|
|
2184
|
+
titleMargin: theme.space.small,
|
|
2185
2185
|
imageMargin: theme.space.large,
|
|
2186
2186
|
wrapperPadding: theme.space.medium
|
|
2187
2187
|
};
|
|
@@ -2214,7 +2214,7 @@ var getEmptyTheme = function getEmptyTheme(theme) {
|
|
|
2214
2214
|
var getErrorTheme = function getErrorTheme(theme) {
|
|
2215
2215
|
var space = {
|
|
2216
2216
|
titleMarginBottom: theme.space.small,
|
|
2217
|
-
imageMarginBottom: theme.space.
|
|
2217
|
+
imageMarginBottom: theme.space.large,
|
|
2218
2218
|
wrapperPadding: theme.space.large,
|
|
2219
2219
|
button: {
|
|
2220
2220
|
wrapperHorizontalPadding: theme.space.medium,
|
|
@@ -2259,7 +2259,8 @@ var getFABTheme = function getFABTheme(theme) {
|
|
|
2259
2259
|
actionItemPressedBackground: theme.colors.pressedSurface,
|
|
2260
2260
|
backdropBackground: theme.colors.overlayGlobalSurface,
|
|
2261
2261
|
titleText: theme.colors.onPrimary,
|
|
2262
|
-
actionItemText: theme.colors.onPrimary
|
|
2262
|
+
actionItemText: theme.colors.onPrimary,
|
|
2263
|
+
shadow: theme.colors.primaryOutline
|
|
2263
2264
|
};
|
|
2264
2265
|
var sizes = {
|
|
2265
2266
|
width: theme.sizes.xxxxxlarge,
|
|
@@ -2281,6 +2282,15 @@ var getFABTheme = function getFABTheme(theme) {
|
|
|
2281
2282
|
title: theme.lineHeights.large,
|
|
2282
2283
|
icon: theme.lineHeights.large
|
|
2283
2284
|
};
|
|
2285
|
+
var shadows = {
|
|
2286
|
+
offset: {
|
|
2287
|
+
width: 0,
|
|
2288
|
+
height: 2
|
|
2289
|
+
},
|
|
2290
|
+
opacity: 0.12,
|
|
2291
|
+
radius: theme.radii.medium,
|
|
2292
|
+
elevation: 2
|
|
2293
|
+
};
|
|
2284
2294
|
var space = {
|
|
2285
2295
|
actionItemPaddingLeft: theme.space.medium,
|
|
2286
2296
|
actionItemPaddingRight: theme.space.medium,
|
|
@@ -2307,6 +2317,7 @@ var getFABTheme = function getFABTheme(theme) {
|
|
|
2307
2317
|
colors: colors,
|
|
2308
2318
|
sizes: sizes,
|
|
2309
2319
|
lineHeights: lineHeights,
|
|
2320
|
+
shadows: shadows,
|
|
2310
2321
|
space: space
|
|
2311
2322
|
};
|
|
2312
2323
|
};
|
|
@@ -2682,6 +2693,44 @@ var getSpinnerTheme = function getSpinnerTheme(theme) {
|
|
|
2682
2693
|
};
|
|
2683
2694
|
};
|
|
2684
2695
|
|
|
2696
|
+
var getSuccessTheme = function getSuccessTheme(theme) {
|
|
2697
|
+
var space = {
|
|
2698
|
+
titleMarginBottom: theme.space.small,
|
|
2699
|
+
imageMarginBottom: theme.space.xlarge,
|
|
2700
|
+
wrapperPadding: theme.space.large,
|
|
2701
|
+
button: {
|
|
2702
|
+
wrapperHorizontalPadding: theme.space.medium,
|
|
2703
|
+
wrapperVerticalPadding: theme.space.xxxlarge,
|
|
2704
|
+
margin: theme.space.medium,
|
|
2705
|
+
padding: theme.space.medium
|
|
2706
|
+
}
|
|
2707
|
+
};
|
|
2708
|
+
var sizes = {
|
|
2709
|
+
image: theme.sizes['19xlarge']
|
|
2710
|
+
};
|
|
2711
|
+
var colors = {
|
|
2712
|
+
title: theme.colors.onDefaultGlobalSurface,
|
|
2713
|
+
description: theme.colors.mutedOnDefaultGlobalSurface,
|
|
2714
|
+
fullScreenBackground: theme.colors.decorativePrimarySurface,
|
|
2715
|
+
inPageBackground: theme.colors.neutralGlobalSurface
|
|
2716
|
+
};
|
|
2717
|
+
var fontSizes = {
|
|
2718
|
+
title: theme.fontSizes.xxxlarge,
|
|
2719
|
+
description: theme.fontSizes.xlarge
|
|
2720
|
+
};
|
|
2721
|
+
var fonts = {
|
|
2722
|
+
title: theme.fonts.playful.semiBold,
|
|
2723
|
+
description: theme.fonts.playful.regular
|
|
2724
|
+
};
|
|
2725
|
+
return {
|
|
2726
|
+
fontSizes: fontSizes,
|
|
2727
|
+
colors: colors,
|
|
2728
|
+
sizes: sizes,
|
|
2729
|
+
space: space,
|
|
2730
|
+
fonts: fonts
|
|
2731
|
+
};
|
|
2732
|
+
};
|
|
2733
|
+
|
|
2685
2734
|
var getSwipeableTheme = function getSwipeableTheme(theme) {
|
|
2686
2735
|
var colors = {
|
|
2687
2736
|
success: theme.colors.success,
|
|
@@ -2776,7 +2825,7 @@ var getTagTheme = function getTagTheme(theme) {
|
|
|
2776
2825
|
"default": theme.borderWidths.base
|
|
2777
2826
|
};
|
|
2778
2827
|
var colors = {
|
|
2779
|
-
primary: theme.colors.
|
|
2828
|
+
primary: theme.colors.onDefaultGlobalSurface,
|
|
2780
2829
|
primaryBackground: undefined,
|
|
2781
2830
|
info: theme.colors.onInfoSurface,
|
|
2782
2831
|
infoBackground: theme.colors.infoSurface,
|
|
@@ -3065,6 +3114,7 @@ var getTheme$1 = function getTheme() {
|
|
|
3065
3114
|
skeleton: getSkeletonTheme(globalTheme),
|
|
3066
3115
|
slider: getSliderTheme(globalTheme),
|
|
3067
3116
|
spinner: getSpinnerTheme(globalTheme),
|
|
3117
|
+
success: getSuccessTheme(globalTheme),
|
|
3068
3118
|
swipeable: getSwipeableTheme(globalTheme),
|
|
3069
3119
|
"switch": getSwitchTheme(globalTheme),
|
|
3070
3120
|
tabs: getTabsTheme(globalTheme),
|
|
@@ -5989,7 +6039,7 @@ var useDeprecation = function useDeprecation(message) {
|
|
|
5989
6039
|
useEffect(function () {
|
|
5990
6040
|
// eslint-disable-next-line no-console
|
|
5991
6041
|
if (cond) {
|
|
5992
|
-
console.
|
|
6042
|
+
console.warn(message);
|
|
5993
6043
|
}
|
|
5994
6044
|
}, [message, cond]);
|
|
5995
6045
|
};
|
|
@@ -6085,7 +6135,7 @@ var StyledText$3 = index$a(Text$1)(function (_ref) {
|
|
|
6085
6135
|
});
|
|
6086
6136
|
});
|
|
6087
6137
|
|
|
6088
|
-
var _excluded$
|
|
6138
|
+
var _excluded$t = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
|
|
6089
6139
|
var Text = function Text(_ref) {
|
|
6090
6140
|
var children = _ref.children,
|
|
6091
6141
|
_ref$fontSize = _ref.fontSize,
|
|
@@ -6098,7 +6148,7 @@ var Text = function Text(_ref) {
|
|
|
6098
6148
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
6099
6149
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
6100
6150
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
6101
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
6151
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$t);
|
|
6102
6152
|
return /*#__PURE__*/React.createElement(StyledText$3, _extends$1({}, nativeProps, {
|
|
6103
6153
|
themeFontSize: fontSize,
|
|
6104
6154
|
themeFontWeight: fontWeight,
|
|
@@ -6620,10 +6670,10 @@ var StyledHeroIcon = index$a(HeroIcon)(function (_ref) {
|
|
|
6620
6670
|
};
|
|
6621
6671
|
});
|
|
6622
6672
|
|
|
6623
|
-
var _excluded$
|
|
6673
|
+
var _excluded$s = ["style"];
|
|
6624
6674
|
var AnimatedIcon = function AnimatedIcon(_ref) {
|
|
6625
6675
|
var style = _ref.style,
|
|
6626
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
6676
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$s);
|
|
6627
6677
|
var rotateAnimation = useRef(new Animated.Value(0));
|
|
6628
6678
|
useEffect(function () {
|
|
6629
6679
|
var animation = Animated.loop(Animated.timing(rotateAnimation.current, {
|
|
@@ -6729,7 +6779,7 @@ var AccordionItem = function AccordionItem(_ref) {
|
|
|
6729
6779
|
}, content));
|
|
6730
6780
|
};
|
|
6731
6781
|
|
|
6732
|
-
var _excluded$
|
|
6782
|
+
var _excluded$r = ["key"];
|
|
6733
6783
|
var Accordion = function Accordion(_ref) {
|
|
6734
6784
|
var items = _ref.items,
|
|
6735
6785
|
activeItemKey = _ref.activeItemKey,
|
|
@@ -6750,7 +6800,7 @@ var Accordion = function Accordion(_ref) {
|
|
|
6750
6800
|
testID: testID
|
|
6751
6801
|
}, items.map(function (_ref2, index) {
|
|
6752
6802
|
var key = _ref2.key,
|
|
6753
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
6803
|
+
props = _objectWithoutProperties(_ref2, _excluded$r);
|
|
6754
6804
|
var open = _activeItemKey === key;
|
|
6755
6805
|
return /*#__PURE__*/React.createElement(React.Fragment, {
|
|
6756
6806
|
key: key
|
|
@@ -6845,6 +6895,7 @@ var Alert = function Alert(_ref2) {
|
|
|
6845
6895
|
variant = _ref2$variant === void 0 ? 'rounded' : _ref2$variant,
|
|
6846
6896
|
style = _ref2.style,
|
|
6847
6897
|
testID = _ref2.testID;
|
|
6898
|
+
useDeprecation("Alert's notification intent is deprecated and will be removed in the next major release. Please use other intents instead.", intent === 'notification');
|
|
6848
6899
|
return /*#__PURE__*/React.createElement(Container$1, {
|
|
6849
6900
|
themeVariant: variant,
|
|
6850
6901
|
themeIntent: intent,
|
|
@@ -7147,7 +7198,7 @@ var StyledStatus = index$a(Animated.View)(function (_ref3) {
|
|
|
7147
7198
|
};
|
|
7148
7199
|
});
|
|
7149
7200
|
|
|
7150
|
-
var _excluded$
|
|
7201
|
+
var _excluded$q = ["children", "visible", "intent", "style", "testID"];
|
|
7151
7202
|
var Status = function Status(_ref) {
|
|
7152
7203
|
var children = _ref.children,
|
|
7153
7204
|
_ref$visible = _ref.visible,
|
|
@@ -7156,7 +7207,7 @@ var Status = function Status(_ref) {
|
|
|
7156
7207
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
7157
7208
|
style = _ref.style,
|
|
7158
7209
|
testID = _ref.testID,
|
|
7159
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7210
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$q);
|
|
7160
7211
|
var _React$useRef = React.useRef(new Animated.Value(visible ? 1 : 0)),
|
|
7161
7212
|
opacity = _React$useRef.current;
|
|
7162
7213
|
var isFirstRendering = React.useRef(true);
|
|
@@ -7189,7 +7240,7 @@ var Status = function Status(_ref) {
|
|
|
7189
7240
|
}));
|
|
7190
7241
|
};
|
|
7191
7242
|
|
|
7192
|
-
var _excluded$
|
|
7243
|
+
var _excluded$p = ["content", "visible", "max", "intent", "style", "testID"];
|
|
7193
7244
|
var DEFAULT_MAX_NUMBER = 99;
|
|
7194
7245
|
var getPaddingState = function getPaddingState(content) {
|
|
7195
7246
|
return content.length > 1 ? 'wideContent' : 'narrowContent';
|
|
@@ -7204,7 +7255,7 @@ var Badge = function Badge(_ref) {
|
|
|
7204
7255
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
7205
7256
|
style = _ref.style,
|
|
7206
7257
|
testID = _ref.testID,
|
|
7207
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7258
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$p);
|
|
7208
7259
|
var _React$useRef = React.useRef(new Animated.Value(visible ? 1 : 0)),
|
|
7209
7260
|
opacity = _React$useRef.current;
|
|
7210
7261
|
var isFirstRendering = React.useRef(true);
|
|
@@ -7308,7 +7359,7 @@ function omit(keys, obj) {
|
|
|
7308
7359
|
return result;
|
|
7309
7360
|
}
|
|
7310
7361
|
|
|
7311
|
-
var _excluded$
|
|
7362
|
+
var _excluded$o = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
|
|
7312
7363
|
var getInactiveIcon = function getInactiveIcon(icon) {
|
|
7313
7364
|
var inactiveIcon = "".concat(icon, "-outlined");
|
|
7314
7365
|
return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
|
|
@@ -7319,7 +7370,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
7319
7370
|
renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
|
|
7320
7371
|
selectedTabKey = _ref.selectedTabKey,
|
|
7321
7372
|
tabs = _ref.tabs,
|
|
7322
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7373
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$o);
|
|
7323
7374
|
var insets = useSafeAreaInsets();
|
|
7324
7375
|
/**
|
|
7325
7376
|
* List of loaded tabs, tabs will be loaded when navigated to.
|
|
@@ -7406,13 +7457,13 @@ var StyledDivider = index$a(View)(function (_ref) {
|
|
|
7406
7457
|
}, horizontalMargin), verticalMargin);
|
|
7407
7458
|
});
|
|
7408
7459
|
|
|
7409
|
-
var _excluded$
|
|
7460
|
+
var _excluded$n = ["marginHorizontal", "marginVertical", "style", "testID"];
|
|
7410
7461
|
var Divider = function Divider(_ref) {
|
|
7411
7462
|
var marginHorizontal = _ref.marginHorizontal,
|
|
7412
7463
|
marginVertical = _ref.marginVertical,
|
|
7413
7464
|
style = _ref.style,
|
|
7414
7465
|
testID = _ref.testID,
|
|
7415
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7466
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$n);
|
|
7416
7467
|
return /*#__PURE__*/React.createElement(StyledDivider, _extends$1({}, nativeProps, {
|
|
7417
7468
|
themeMarginHorizontal: marginHorizontal,
|
|
7418
7469
|
themeMarginVertical: marginVertical,
|
|
@@ -7542,7 +7593,7 @@ var StyledLoadingDot = index$a(View)(function (_ref2) {
|
|
|
7542
7593
|
}, themeStyling());
|
|
7543
7594
|
});
|
|
7544
7595
|
|
|
7545
|
-
var _excluded$
|
|
7596
|
+
var _excluded$m = ["count", "size", "testID", "themeVariant"];
|
|
7546
7597
|
var AnimatedLoadingIndicatorWrapper = Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
|
|
7547
7598
|
var AnimatedLoadingDot = Animated.createAnimatedComponent(StyledLoadingDot);
|
|
7548
7599
|
var renderDotComponent = function renderDotComponent(_ref) {
|
|
@@ -7574,7 +7625,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
|
|
|
7574
7625
|
size = _ref2$size === void 0 ? 12 : _ref2$size,
|
|
7575
7626
|
testID = _ref2.testID,
|
|
7576
7627
|
themeVariant = _ref2.themeVariant,
|
|
7577
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
7628
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$m);
|
|
7578
7629
|
var progressAnimation = useRef(new Animated.Value(0));
|
|
7579
7630
|
useEffect(function () {
|
|
7580
7631
|
var animation = Animated.loop(Animated.timing(progressAnimation.current, {
|
|
@@ -8001,11 +8052,11 @@ var Header = function Header(_ref) {
|
|
|
8001
8052
|
})) : null), showDivider ? /*#__PURE__*/React.createElement(Divider, null) : null);
|
|
8002
8053
|
};
|
|
8003
8054
|
|
|
8004
|
-
var _excluded$
|
|
8055
|
+
var _excluded$l = ["scrollEventThrottle"];
|
|
8005
8056
|
var BottomSheetScrollView = function BottomSheetScrollView(_ref) {
|
|
8006
8057
|
var _ref$scrollEventThrot = _ref.scrollEventThrottle,
|
|
8007
8058
|
scrollEventThrottle = _ref$scrollEventThrot === void 0 ? 100 : _ref$scrollEventThrot,
|
|
8008
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8059
|
+
props = _objectWithoutProperties(_ref, _excluded$l);
|
|
8009
8060
|
var _useContext = useContext(BottomSheetContext),
|
|
8010
8061
|
setInternalShowDivider = _useContext.setInternalShowDivider;
|
|
8011
8062
|
var onScrollBeginDrag = useCallback(function (e) {
|
|
@@ -8320,7 +8371,7 @@ var borderWidths = {
|
|
|
8320
8371
|
var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
|
|
8321
8372
|
var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
|
|
8322
8373
|
|
|
8323
|
-
var _excluded$
|
|
8374
|
+
var _excluded$k = ["theme"];
|
|
8324
8375
|
var getThemeValue = function getThemeValue(theme, key, props) {
|
|
8325
8376
|
var propConfig = config[key];
|
|
8326
8377
|
var propValue = props[key];
|
|
@@ -8347,18 +8398,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
|
|
|
8347
8398
|
var configKeys = Object.keys(config);
|
|
8348
8399
|
var StyledBox = index$a(View)(function (_ref5) {
|
|
8349
8400
|
var theme = _ref5.theme,
|
|
8350
|
-
otherProps = _objectWithoutProperties(_ref5, _excluded$
|
|
8401
|
+
otherProps = _objectWithoutProperties(_ref5, _excluded$k);
|
|
8351
8402
|
var styleProps = pick(configKeys, otherProps);
|
|
8352
8403
|
var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
|
|
8353
8404
|
return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
|
|
8354
8405
|
});
|
|
8355
8406
|
|
|
8356
|
-
var _excluded$
|
|
8407
|
+
var _excluded$j = ["children", "style", "testID"];
|
|
8357
8408
|
var Box = function Box(_ref) {
|
|
8358
8409
|
var children = _ref.children,
|
|
8359
8410
|
style = _ref.style,
|
|
8360
8411
|
testID = _ref.testID,
|
|
8361
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
8412
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$j);
|
|
8362
8413
|
return /*#__PURE__*/React.createElement(StyledBox, _extends$1({}, otherProps, {
|
|
8363
8414
|
style: style,
|
|
8364
8415
|
testID: testID
|
|
@@ -10926,7 +10977,7 @@ var Calendar = function Calendar(_ref) {
|
|
|
10926
10977
|
})));
|
|
10927
10978
|
};
|
|
10928
10979
|
|
|
10929
|
-
var _excluded$
|
|
10980
|
+
var _excluded$i = ["rounded", "size", "testID", "style"];
|
|
10930
10981
|
var Image = function Image(_ref) {
|
|
10931
10982
|
var _ref$rounded = _ref.rounded,
|
|
10932
10983
|
rounded = _ref$rounded === void 0 ? false : _ref$rounded,
|
|
@@ -10934,7 +10985,7 @@ var Image = function Image(_ref) {
|
|
|
10934
10985
|
size = _ref$size === void 0 ? '6xlarge' : _ref$size,
|
|
10935
10986
|
testID = _ref.testID,
|
|
10936
10987
|
style = _ref.style,
|
|
10937
|
-
imageNativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10988
|
+
imageNativeProps = _objectWithoutProperties(_ref, _excluded$i);
|
|
10938
10989
|
var theme = useTheme();
|
|
10939
10990
|
var imageSize = theme.__hd__.image.sizes[size];
|
|
10940
10991
|
return /*#__PURE__*/React.createElement(Image$1, _extends$1({
|
|
@@ -11138,12 +11189,12 @@ var Indicator = index$a(View)(function (_ref2) {
|
|
|
11138
11189
|
};
|
|
11139
11190
|
});
|
|
11140
11191
|
|
|
11141
|
-
var _excluded$
|
|
11192
|
+
var _excluded$h = ["intent", "children"];
|
|
11142
11193
|
var DataCard = function DataCard(_ref) {
|
|
11143
11194
|
var _ref$intent = _ref.intent,
|
|
11144
11195
|
intent = _ref$intent === void 0 ? 'info' : _ref$intent,
|
|
11145
11196
|
children = _ref.children,
|
|
11146
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
11197
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$h);
|
|
11147
11198
|
return /*#__PURE__*/React.createElement(StyledDataCard, nativeProps, /*#__PURE__*/React.createElement(Indicator, {
|
|
11148
11199
|
themeIntent: intent,
|
|
11149
11200
|
testID: "data-card-indicator"
|
|
@@ -11161,11 +11212,11 @@ var StyledCard$1 = index$a(View)(function (_ref) {
|
|
|
11161
11212
|
});
|
|
11162
11213
|
});
|
|
11163
11214
|
|
|
11164
|
-
var _excluded$
|
|
11215
|
+
var _excluded$g = ["intent", "children"];
|
|
11165
11216
|
var Card = function Card(_ref) {
|
|
11166
11217
|
var intent = _ref.intent,
|
|
11167
11218
|
children = _ref.children,
|
|
11168
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
11219
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$g);
|
|
11169
11220
|
return /*#__PURE__*/React.createElement(StyledCard$1, _extends$1({}, nativeProps, {
|
|
11170
11221
|
themeIntent: intent
|
|
11171
11222
|
}), children);
|
|
@@ -11353,7 +11404,7 @@ var CardCarousel = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
11353
11404
|
}));
|
|
11354
11405
|
});
|
|
11355
11406
|
|
|
11356
|
-
var _excluded$
|
|
11407
|
+
var _excluded$f = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "pageControlPosition"];
|
|
11357
11408
|
function useStateFromProp(initialValue) {
|
|
11358
11409
|
var _useState = useState(initialValue),
|
|
11359
11410
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -11378,7 +11429,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
11378
11429
|
shouldShowPagination = _ref$shouldShowPagina === void 0 ? noop : _ref$shouldShowPagina,
|
|
11379
11430
|
_ref$pageControlPosit = _ref.pageControlPosition,
|
|
11380
11431
|
pageControlPosition = _ref$pageControlPosit === void 0 ? 'bottom' : _ref$pageControlPosit,
|
|
11381
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
11432
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$f);
|
|
11382
11433
|
useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop);
|
|
11383
11434
|
useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
|
|
11384
11435
|
var carouselRef = useRef(null);
|
|
@@ -11695,7 +11746,7 @@ var StyledErrorAndMaxLengthContainer = index$a(View)(function () {
|
|
|
11695
11746
|
};
|
|
11696
11747
|
});
|
|
11697
11748
|
|
|
11698
|
-
var _excluded$
|
|
11749
|
+
var _excluded$e = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "hideCharacterCount", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling"];
|
|
11699
11750
|
var getVariant$1 = function getVariant(_ref) {
|
|
11700
11751
|
var disabled = _ref.disabled,
|
|
11701
11752
|
error = _ref.error,
|
|
@@ -11737,13 +11788,15 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
11737
11788
|
_ref2$loading = _ref2.loading,
|
|
11738
11789
|
loading = _ref2$loading === void 0 ? false : _ref2$loading,
|
|
11739
11790
|
maxLength = _ref2.maxLength,
|
|
11791
|
+
_ref2$hideCharacterCo = _ref2.hideCharacterCount,
|
|
11792
|
+
hideCharacterCount = _ref2$hideCharacterCo === void 0 ? false : _ref2$hideCharacterCo,
|
|
11740
11793
|
helpText = _ref2.helpText,
|
|
11741
11794
|
value = _ref2.value,
|
|
11742
11795
|
defaultValue = _ref2.defaultValue,
|
|
11743
11796
|
renderInputValue = _ref2.renderInputValue,
|
|
11744
11797
|
_ref2$allowFontScalin = _ref2.allowFontScaling,
|
|
11745
11798
|
allowFontScaling = _ref2$allowFontScalin === void 0 ? false : _ref2$allowFontScalin,
|
|
11746
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
11799
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$e);
|
|
11747
11800
|
var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
11748
11801
|
var isEmptyValue = displayText.length === 0;
|
|
11749
11802
|
var actualSuffix = loading ? 'loading' : suffix;
|
|
@@ -11759,7 +11812,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
11759
11812
|
isFocused: isFocused,
|
|
11760
11813
|
isEmptyValue: isEmptyValue
|
|
11761
11814
|
});
|
|
11762
|
-
var shouldShowMaxLength = maxLength !== undefined;
|
|
11815
|
+
var shouldShowMaxLength = maxLength !== undefined && !hideCharacterCount;
|
|
11763
11816
|
var theme = useTheme();
|
|
11764
11817
|
var innerTextInput = React.useRef();
|
|
11765
11818
|
React.useImperativeHandle(ref, function () {
|
|
@@ -12168,11 +12221,11 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
12168
12221
|
}))));
|
|
12169
12222
|
};
|
|
12170
12223
|
|
|
12171
|
-
var _excluded$
|
|
12224
|
+
var _excluded$d = ["variant"];
|
|
12172
12225
|
var DatePicker = function DatePicker(_ref) {
|
|
12173
12226
|
var _ref$variant = _ref.variant,
|
|
12174
12227
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
12175
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
12228
|
+
props = _objectWithoutProperties(_ref, _excluded$d);
|
|
12176
12229
|
if (variant === 'calendar') {
|
|
12177
12230
|
return /*#__PURE__*/React.createElement(DatePickerCalendar, props);
|
|
12178
12231
|
}
|
|
@@ -12611,9 +12664,9 @@ var StyledErrorDescription = index$a(Typography.Text)(function (_ref9) {
|
|
|
12611
12664
|
};
|
|
12612
12665
|
});
|
|
12613
12666
|
|
|
12614
|
-
var _excluded$
|
|
12667
|
+
var _excluded$c = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"],
|
|
12615
12668
|
_excluded2 = ["visible", "variant", "title", "description", "image", "testID", "ctaText", "onCtaPress", "secondaryCtaText", "onSecondaryCtaPress"];
|
|
12616
|
-
var renderImage = function renderImage(image) {
|
|
12669
|
+
var renderImage$1 = function renderImage(image) {
|
|
12617
12670
|
if ( /*#__PURE__*/isValidElement(image)) {
|
|
12618
12671
|
return /*#__PURE__*/React.cloneElement(image, {
|
|
12619
12672
|
testID: 'error-image'
|
|
@@ -12637,14 +12690,14 @@ var ErrorPage = function ErrorPage(_ref) {
|
|
|
12637
12690
|
onCtaPress = _ref.onCtaPress,
|
|
12638
12691
|
secondaryCtaText = _ref.secondaryCtaText,
|
|
12639
12692
|
onSecondaryCtaPress = _ref.onSecondaryCtaPress,
|
|
12640
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
12693
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$c);
|
|
12641
12694
|
var showCta = ctaText && onCtaPress !== undefined;
|
|
12642
12695
|
var showSecondaryCta = secondaryCtaText && onSecondaryCtaPress !== undefined;
|
|
12643
12696
|
var showButtonContainer = showCta || showSecondaryCta;
|
|
12644
12697
|
return /*#__PURE__*/React.createElement(StyledErrorContainer$1, _extends$1({
|
|
12645
12698
|
testID: testID,
|
|
12646
12699
|
themeVariant: variant
|
|
12647
|
-
}, nativeProps), /*#__PURE__*/React.createElement(StyledErrorContent, null, image && /*#__PURE__*/React.createElement(StyledErrorImageContainer, null, renderImage(image)), /*#__PURE__*/React.createElement(StyledErrorTitle, null, title), description && /*#__PURE__*/React.createElement(StyledErrorDescription, null, description)), showButtonContainer && /*#__PURE__*/React.createElement(StyledErrorButtonContainer, null, showCta && /*#__PURE__*/React.createElement(StyledErrorButtonPrimary, {
|
|
12700
|
+
}, nativeProps), /*#__PURE__*/React.createElement(StyledErrorContent, null, image && /*#__PURE__*/React.createElement(StyledErrorImageContainer, null, renderImage$1(image)), /*#__PURE__*/React.createElement(StyledErrorTitle, null, title), description && /*#__PURE__*/React.createElement(StyledErrorDescription, null, description)), showButtonContainer && /*#__PURE__*/React.createElement(StyledErrorButtonContainer, null, showCta && /*#__PURE__*/React.createElement(StyledErrorButtonPrimary, {
|
|
12648
12701
|
variant: "filled",
|
|
12649
12702
|
text: ctaText,
|
|
12650
12703
|
onPress: onCtaPress
|
|
@@ -12745,7 +12798,7 @@ var Error$1 = function Error(_ref2) {
|
|
|
12745
12798
|
}, nativeProps));
|
|
12746
12799
|
};
|
|
12747
12800
|
|
|
12748
|
-
var
|
|
12801
|
+
var StyledFAB$1 = index$a(TouchableHighlight)(function (_ref) {
|
|
12749
12802
|
var theme = _ref.theme;
|
|
12750
12803
|
return {
|
|
12751
12804
|
backgroundColor: theme.__hd__.fab.colors.buttonBackground,
|
|
@@ -12756,7 +12809,8 @@ var StyledFABContainer = index$a(TouchableHighlight)(function (_ref) {
|
|
|
12756
12809
|
alignSelf: 'flex-start',
|
|
12757
12810
|
paddingHorizontal: theme.__hd__.fab.space.containerPaddingHorizontal,
|
|
12758
12811
|
paddingVertical: theme.__hd__.fab.space.containerPaddingVertical,
|
|
12759
|
-
flexDirection: 'row'
|
|
12812
|
+
flexDirection: 'row',
|
|
12813
|
+
elevation: theme.__hd__.fab.shadows.elevation
|
|
12760
12814
|
};
|
|
12761
12815
|
});
|
|
12762
12816
|
var StyledFABIcon = index$a(Icon)(function (_ref2) {
|
|
@@ -12780,12 +12834,21 @@ var StyledFABText = index$a(Typography.Text)(function (_ref3) {
|
|
|
12780
12834
|
marginHorizontal: theme.__hd__.fab.space.titleMarginHorizontal
|
|
12781
12835
|
};
|
|
12782
12836
|
});
|
|
12837
|
+
var StyledFABContainer = index$a(Box)(function (_ref4) {
|
|
12838
|
+
var theme = _ref4.theme;
|
|
12839
|
+
return {
|
|
12840
|
+
shadowColor: theme.__hd__.fab.colors.shadow,
|
|
12841
|
+
shadowOffset: theme.__hd__.fab.shadows.offset,
|
|
12842
|
+
shadowRadius: theme.__hd__.fab.shadows.radius,
|
|
12843
|
+
shadowOpacity: theme.__hd__.fab.shadows.opacity
|
|
12844
|
+
};
|
|
12845
|
+
});
|
|
12783
12846
|
|
|
12784
|
-
var _excluded$
|
|
12847
|
+
var _excluded$b = ["active"];
|
|
12785
12848
|
var AnimatedIcons = Animated.createAnimatedComponent(StyledFABIcon);
|
|
12786
12849
|
var AnimatedFABIcon = function AnimatedFABIcon(_ref) {
|
|
12787
12850
|
var active = _ref.active,
|
|
12788
|
-
iconProps = _objectWithoutProperties(_ref, _excluded$
|
|
12851
|
+
iconProps = _objectWithoutProperties(_ref, _excluded$b);
|
|
12789
12852
|
var rotateAnimation = useRef(new Animated.Value(active ? 1 : 0));
|
|
12790
12853
|
useEffect(function () {
|
|
12791
12854
|
var animation = Animated.timing(rotateAnimation.current, {
|
|
@@ -12846,9 +12909,10 @@ var FAB = function FAB(_ref3) {
|
|
|
12846
12909
|
var isIconOnly = !title;
|
|
12847
12910
|
var theme = useTheme();
|
|
12848
12911
|
return /*#__PURE__*/React.createElement(StyledFABContainer, {
|
|
12849
|
-
underlayColor: theme.__hd__.fab.colors.buttonPressedBackground,
|
|
12850
|
-
testID: testID,
|
|
12851
12912
|
style: style,
|
|
12913
|
+
testID: testID
|
|
12914
|
+
}, /*#__PURE__*/React.createElement(StyledFAB$1, {
|
|
12915
|
+
underlayColor: theme.__hd__.fab.colors.buttonPressedBackground,
|
|
12852
12916
|
onPress: onPress
|
|
12853
12917
|
}, isIconOnly ? /*#__PURE__*/React.createElement(IconOnlyContent, {
|
|
12854
12918
|
animated: animated,
|
|
@@ -12857,7 +12921,7 @@ var FAB = function FAB(_ref3) {
|
|
|
12857
12921
|
}) : /*#__PURE__*/React.createElement(IconWithTextContent, {
|
|
12858
12922
|
icon: icon,
|
|
12859
12923
|
title: title
|
|
12860
|
-
}));
|
|
12924
|
+
})));
|
|
12861
12925
|
};
|
|
12862
12926
|
|
|
12863
12927
|
var StyledActionItem = index$a(TouchableHighlight)(function (_ref) {
|
|
@@ -13141,10 +13205,10 @@ var ListItem = function ListItem(_ref) {
|
|
|
13141
13205
|
}, prefix && /*#__PURE__*/React.createElement(StyledPrefixContainer$1, null, typeof prefix === 'string' ? /*#__PURE__*/React.createElement(Icon, {
|
|
13142
13206
|
icon: prefix,
|
|
13143
13207
|
intent: disabled ? 'disabled-text' : 'primary'
|
|
13144
|
-
}) : prefix), /*#__PURE__*/React.createElement(StyledTitleContainer$1, null, /*#__PURE__*/React.createElement(Typography.Text, {
|
|
13208
|
+
}) : prefix), /*#__PURE__*/React.createElement(StyledTitleContainer$1, null, typeof title === 'string' ? /*#__PURE__*/React.createElement(Typography.Text, {
|
|
13145
13209
|
intent: "body",
|
|
13146
13210
|
fontSize: "large"
|
|
13147
|
-
}, title), !!subtitle && /*#__PURE__*/React.createElement(Typography.Text, {
|
|
13211
|
+
}, title) : title, !!subtitle && /*#__PURE__*/React.createElement(Typography.Text, {
|
|
13148
13212
|
intent: "subdued",
|
|
13149
13213
|
fontSize: "small"
|
|
13150
13214
|
}, subtitle)), suffix && /*#__PURE__*/React.createElement(StyledSuffixContainer$1, null, typeof suffix === 'string' ? /*#__PURE__*/React.createElement(Icon, {
|
|
@@ -13524,7 +13588,7 @@ var StyledStrokeEnd = index$a(View)(function (_ref6) {
|
|
|
13524
13588
|
};
|
|
13525
13589
|
});
|
|
13526
13590
|
|
|
13527
|
-
var _excluded$
|
|
13591
|
+
var _excluded$a = ["value", "renderValue", "intent", "style", "testID"];
|
|
13528
13592
|
var HalfCircle = function HalfCircle(_ref) {
|
|
13529
13593
|
var type = _ref.type,
|
|
13530
13594
|
themeIntent = _ref.themeIntent;
|
|
@@ -13545,7 +13609,7 @@ var ProgressCircle = function ProgressCircle(_ref2) {
|
|
|
13545
13609
|
intent = _ref2$intent === void 0 ? 'primary' : _ref2$intent,
|
|
13546
13610
|
style = _ref2.style,
|
|
13547
13611
|
testID = _ref2.testID,
|
|
13548
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
13612
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$a);
|
|
13549
13613
|
var theme = useTheme$1();
|
|
13550
13614
|
var radius = theme.__hd__.progress.sizes.circleDiameter / 2;
|
|
13551
13615
|
var progressAnimatedValue = useRef(new Animated.Value(0));
|
|
@@ -13662,14 +13726,14 @@ var StyledInner = index$a(Animated.View)(function (_ref2) {
|
|
|
13662
13726
|
};
|
|
13663
13727
|
});
|
|
13664
13728
|
|
|
13665
|
-
var _excluded$
|
|
13729
|
+
var _excluded$9 = ["value", "intent", "style", "testID"];
|
|
13666
13730
|
var ProgressBar = function ProgressBar(_ref) {
|
|
13667
13731
|
var value = _ref.value,
|
|
13668
13732
|
_ref$intent = _ref.intent,
|
|
13669
13733
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
13670
13734
|
style = _ref.style,
|
|
13671
13735
|
testID = _ref.testID,
|
|
13672
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
13736
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$9);
|
|
13673
13737
|
var _useState = useState(0),
|
|
13674
13738
|
_useState2 = _slicedToArray(_useState, 2),
|
|
13675
13739
|
width = _useState2[0],
|
|
@@ -13860,14 +13924,14 @@ var AnimatedSpinner = function AnimatedSpinner(_ref) {
|
|
|
13860
13924
|
}, dotProps))));
|
|
13861
13925
|
};
|
|
13862
13926
|
|
|
13863
|
-
var _excluded$
|
|
13927
|
+
var _excluded$8 = ["testID", "size", "intent"];
|
|
13864
13928
|
var Spinner = function Spinner(_ref) {
|
|
13865
13929
|
var testID = _ref.testID,
|
|
13866
13930
|
_ref$size = _ref.size,
|
|
13867
13931
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
13868
13932
|
_ref$intent = _ref.intent,
|
|
13869
13933
|
intent = _ref$intent === void 0 ? 'primary' : _ref$intent,
|
|
13870
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
13934
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$8);
|
|
13871
13935
|
return /*#__PURE__*/React.createElement(StyledView$1, nativeProps, /*#__PURE__*/React.createElement(StyledSpinnerContainer, {
|
|
13872
13936
|
testID: testID
|
|
13873
13937
|
}, /*#__PURE__*/React.createElement(AnimatedSpinner, {
|
|
@@ -13900,7 +13964,7 @@ var SwipeableAction = function SwipeableAction(_ref) {
|
|
|
13900
13964
|
}, children);
|
|
13901
13965
|
};
|
|
13902
13966
|
|
|
13903
|
-
var _excluded$
|
|
13967
|
+
var _excluded$7 = ["children", "state", "onStateChange", "leftActions", "leftActionsWidth", "rightActions", "rightActionsWidth"];
|
|
13904
13968
|
var renderActions = function renderActions(actions, width, progress, direction) {
|
|
13905
13969
|
var trans = progress.interpolate({
|
|
13906
13970
|
inputRange: [0, 1],
|
|
@@ -13925,7 +13989,7 @@ var Swipeable = function Swipeable(_ref) {
|
|
|
13925
13989
|
leftActionsWidth = _ref.leftActionsWidth,
|
|
13926
13990
|
rightActions = _ref.rightActions,
|
|
13927
13991
|
rightActionsWidth = _ref.rightActionsWidth,
|
|
13928
|
-
swipeableProps = _objectWithoutProperties(_ref, _excluded$
|
|
13992
|
+
swipeableProps = _objectWithoutProperties(_ref, _excluded$7);
|
|
13929
13993
|
var _useWindowDimensions = useWindowDimensions(),
|
|
13930
13994
|
width = _useWindowDimensions.width;
|
|
13931
13995
|
var swipeableRef = useRef(null);
|
|
@@ -14230,7 +14294,7 @@ var StyledSectionList = index$a(SectionList)(function (_ref4) {
|
|
|
14230
14294
|
};
|
|
14231
14295
|
});
|
|
14232
14296
|
|
|
14233
|
-
var _excluded$
|
|
14297
|
+
var _excluded$6 = ["keyExtractor", "loading", "onEndReached", "onQueryChange", "sections", "renderItem", "sectionListRef"];
|
|
14234
14298
|
var BaseOptionList = function BaseOptionList(_ref) {
|
|
14235
14299
|
var keyExtractor = _ref.keyExtractor,
|
|
14236
14300
|
loading = _ref.loading,
|
|
@@ -14239,7 +14303,7 @@ var BaseOptionList = function BaseOptionList(_ref) {
|
|
|
14239
14303
|
sections = _ref.sections,
|
|
14240
14304
|
renderItem = _ref.renderItem,
|
|
14241
14305
|
sectionListRef = _ref.sectionListRef,
|
|
14242
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
14306
|
+
rest = _objectWithoutProperties(_ref, _excluded$6);
|
|
14243
14307
|
var theme = useTheme$1();
|
|
14244
14308
|
var _useState = useState(false),
|
|
14245
14309
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -14308,7 +14372,7 @@ var Option$2 = function Option(_ref) {
|
|
|
14308
14372
|
return highlighted === true ? /*#__PURE__*/React.createElement(List.Item, props) : /*#__PURE__*/React.createElement(List.BasicItem, props);
|
|
14309
14373
|
};
|
|
14310
14374
|
|
|
14311
|
-
var _excluded$
|
|
14375
|
+
var _excluded$5 = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
|
|
14312
14376
|
var OptionList$1 = function OptionList(_ref) {
|
|
14313
14377
|
var keyExtractor = _ref.keyExtractor,
|
|
14314
14378
|
loading = _ref.loading,
|
|
@@ -14319,7 +14383,7 @@ var OptionList$1 = function OptionList(_ref) {
|
|
|
14319
14383
|
renderOption = _ref.renderOption,
|
|
14320
14384
|
value = _ref.value,
|
|
14321
14385
|
sectionListRef = _ref.sectionListRef,
|
|
14322
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
14386
|
+
rest = _objectWithoutProperties(_ref, _excluded$5);
|
|
14323
14387
|
var renderItem = function renderItem(info) {
|
|
14324
14388
|
var item = info.item;
|
|
14325
14389
|
var selected = value.includes(info.item.value);
|
|
@@ -14507,7 +14571,7 @@ var StyledOptionList = index$a(BaseOptionList)(function (_ref) {
|
|
|
14507
14571
|
};
|
|
14508
14572
|
});
|
|
14509
14573
|
|
|
14510
|
-
var _excluded$
|
|
14574
|
+
var _excluded$4 = ["keyExtractor", "loading", "onEndReached", "onPress", "onQueryChange", "sections", "renderOption", "value", "sectionListRef"];
|
|
14511
14575
|
var OptionList = function OptionList(_ref) {
|
|
14512
14576
|
var keyExtractor = _ref.keyExtractor,
|
|
14513
14577
|
loading = _ref.loading,
|
|
@@ -14518,7 +14582,7 @@ var OptionList = function OptionList(_ref) {
|
|
|
14518
14582
|
renderOption = _ref.renderOption,
|
|
14519
14583
|
value = _ref.value,
|
|
14520
14584
|
sectionListRef = _ref.sectionListRef,
|
|
14521
|
-
rest = _objectWithoutProperties(_ref, _excluded$
|
|
14585
|
+
rest = _objectWithoutProperties(_ref, _excluded$4);
|
|
14522
14586
|
var renderItem = function renderItem(info) {
|
|
14523
14587
|
var item = info.item;
|
|
14524
14588
|
var selected = item.value === value;
|
|
@@ -14683,7 +14747,7 @@ var StyledGradientContainer = index$a(Box)(function (_ref2) {
|
|
|
14683
14747
|
};
|
|
14684
14748
|
});
|
|
14685
14749
|
|
|
14686
|
-
var _excluded$
|
|
14750
|
+
var _excluded$3 = ["intent", "variant", "style", "onLayout"];
|
|
14687
14751
|
var AnimatedLinearGradient = Animated.createAnimatedComponent(LinearGradient);
|
|
14688
14752
|
var gradientPositions = {
|
|
14689
14753
|
start: {
|
|
@@ -14715,7 +14779,7 @@ var Skeleton = function Skeleton(_ref) {
|
|
|
14715
14779
|
variant = _ref$variant === void 0 ? 'rounded' : _ref$variant,
|
|
14716
14780
|
style = _ref.style,
|
|
14717
14781
|
onLayout = _ref.onLayout,
|
|
14718
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
14782
|
+
props = _objectWithoutProperties(_ref, _excluded$3);
|
|
14719
14783
|
var theme = useTheme();
|
|
14720
14784
|
var colors = useMemo(function () {
|
|
14721
14785
|
return getGradientColors(theme, intent);
|
|
@@ -14779,6 +14843,134 @@ var Skeleton = function Skeleton(_ref) {
|
|
|
14779
14843
|
})));
|
|
14780
14844
|
};
|
|
14781
14845
|
|
|
14846
|
+
var StyledSuccessContainer = index$a(View)(function (_ref) {
|
|
14847
|
+
var theme = _ref.theme,
|
|
14848
|
+
themeVariant = _ref.themeVariant;
|
|
14849
|
+
return {
|
|
14850
|
+
display: 'flex',
|
|
14851
|
+
flex: 1,
|
|
14852
|
+
flexDirection: 'column',
|
|
14853
|
+
backgroundColor: themeVariant === 'in-page' ? theme.__hd__.success.colors.inPageBackground : theme.__hd__.success.colors.fullScreenBackground
|
|
14854
|
+
};
|
|
14855
|
+
});
|
|
14856
|
+
var StyledSuccessImage = index$a(Image)(function (_ref2) {
|
|
14857
|
+
var theme = _ref2.theme;
|
|
14858
|
+
return {
|
|
14859
|
+
marginBottom: theme.__hd__.success.space.imageMarginBottom,
|
|
14860
|
+
width: theme.__hd__.success.sizes.image,
|
|
14861
|
+
height: theme.__hd__.success.sizes.image,
|
|
14862
|
+
resizeMode: 'contain'
|
|
14863
|
+
};
|
|
14864
|
+
});
|
|
14865
|
+
var StyledSuccessContent = index$a(View)(function (_ref3) {
|
|
14866
|
+
var theme = _ref3.theme;
|
|
14867
|
+
return {
|
|
14868
|
+
display: 'flex',
|
|
14869
|
+
flex: 1,
|
|
14870
|
+
flexDirection: 'column',
|
|
14871
|
+
justifyContent: 'center',
|
|
14872
|
+
alignItems: 'center',
|
|
14873
|
+
padding: theme.__hd__.success.space.wrapperPadding
|
|
14874
|
+
};
|
|
14875
|
+
});
|
|
14876
|
+
var StyledSuccessImageContainer = index$a(View)(function (_ref4) {
|
|
14877
|
+
var theme = _ref4.theme;
|
|
14878
|
+
return {
|
|
14879
|
+
marginBottom: theme.__hd__.success.space.imageMarginBottom,
|
|
14880
|
+
width: theme.__hd__.success.sizes.image,
|
|
14881
|
+
height: theme.__hd__.success.sizes.image
|
|
14882
|
+
};
|
|
14883
|
+
});
|
|
14884
|
+
var StyledSuccessTitle = index$a(Typography.Text)(function (_ref5) {
|
|
14885
|
+
var theme = _ref5.theme;
|
|
14886
|
+
return {
|
|
14887
|
+
fontFamily: theme.__hd__.success.fonts.title,
|
|
14888
|
+
fontSize: theme.__hd__.success.fontSizes.title,
|
|
14889
|
+
textAlign: 'center',
|
|
14890
|
+
marginBottom: theme.__hd__.success.space.titleMarginBottom,
|
|
14891
|
+
color: theme.__hd__.success.colors.title
|
|
14892
|
+
};
|
|
14893
|
+
});
|
|
14894
|
+
var StyledSuccessDescription = index$a(Typography.Text)(function (_ref6) {
|
|
14895
|
+
var theme = _ref6.theme;
|
|
14896
|
+
return {
|
|
14897
|
+
fontFamily: theme.__hd__.success.fonts.description,
|
|
14898
|
+
fontSize: theme.__hd__.success.fontSizes.description,
|
|
14899
|
+
textAlign: 'center',
|
|
14900
|
+
color: theme.__hd__.success.colors.description
|
|
14901
|
+
};
|
|
14902
|
+
});
|
|
14903
|
+
var StyledSuccessButtonContainer = index$a(View)(function (_ref7) {
|
|
14904
|
+
var theme = _ref7.theme;
|
|
14905
|
+
return {
|
|
14906
|
+
display: 'flex',
|
|
14907
|
+
flexDirection: 'column',
|
|
14908
|
+
justifyContent: 'center',
|
|
14909
|
+
alignItems: 'center',
|
|
14910
|
+
paddingHorizontal: theme.__hd__.success.space.button.wrapperHorizontalPadding,
|
|
14911
|
+
paddingVertical: theme.__hd__.success.space.button.wrapperVerticalPadding
|
|
14912
|
+
};
|
|
14913
|
+
});
|
|
14914
|
+
var StyledSuccessButtonPrimary = index$a(CompoundButton)(function (_ref8) {
|
|
14915
|
+
var theme = _ref8.theme;
|
|
14916
|
+
return {
|
|
14917
|
+
padding: theme.__hd__.success.space.button.padding
|
|
14918
|
+
};
|
|
14919
|
+
});
|
|
14920
|
+
var StyledSuccessModal = index$a(Modal)({
|
|
14921
|
+
height: '100%',
|
|
14922
|
+
width: '100%'
|
|
14923
|
+
});
|
|
14924
|
+
|
|
14925
|
+
var _excluded$2 = ["variant", "title", "description", "image", "testID", "ctaText", "onCtaPress"];
|
|
14926
|
+
var renderImage = function renderImage(image) {
|
|
14927
|
+
if ( /*#__PURE__*/isValidElement(image)) {
|
|
14928
|
+
return /*#__PURE__*/React.cloneElement(image, {
|
|
14929
|
+
testID: 'success-image'
|
|
14930
|
+
});
|
|
14931
|
+
}
|
|
14932
|
+
return /*#__PURE__*/React.createElement(StyledSuccessImage, {
|
|
14933
|
+
source: typeof image === 'string' ? {
|
|
14934
|
+
uri: image
|
|
14935
|
+
} : image,
|
|
14936
|
+
testID: "success-image"
|
|
14937
|
+
});
|
|
14938
|
+
};
|
|
14939
|
+
var SuccessPage = function SuccessPage(_ref) {
|
|
14940
|
+
var _ref$variant = _ref.variant,
|
|
14941
|
+
variant = _ref$variant === void 0 ? 'in-page' : _ref$variant,
|
|
14942
|
+
title = _ref.title,
|
|
14943
|
+
description = _ref.description,
|
|
14944
|
+
image = _ref.image,
|
|
14945
|
+
testID = _ref.testID,
|
|
14946
|
+
ctaText = _ref.ctaText,
|
|
14947
|
+
_ref$onCtaPress = _ref.onCtaPress,
|
|
14948
|
+
onCtaPress = _ref$onCtaPress === void 0 ? noop$1 : _ref$onCtaPress,
|
|
14949
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$2);
|
|
14950
|
+
return /*#__PURE__*/React.createElement(StyledSuccessContainer, _extends$1({
|
|
14951
|
+
testID: testID,
|
|
14952
|
+
themeVariant: variant
|
|
14953
|
+
}, nativeProps), /*#__PURE__*/React.createElement(StyledSuccessContent, null, !!image && /*#__PURE__*/React.createElement(StyledSuccessImageContainer, null, renderImage(image)), /*#__PURE__*/React.createElement(StyledSuccessTitle, null, title), !!description && /*#__PURE__*/React.createElement(StyledSuccessDescription, null, description)), !!ctaText && /*#__PURE__*/React.createElement(StyledSuccessButtonContainer, null, /*#__PURE__*/React.createElement(StyledSuccessButtonPrimary, {
|
|
14954
|
+
text: ctaText,
|
|
14955
|
+
onPress: onCtaPress
|
|
14956
|
+
})));
|
|
14957
|
+
};
|
|
14958
|
+
/**
|
|
14959
|
+
* Renders success page
|
|
14960
|
+
*
|
|
14961
|
+
* @param {SuccessProps} props
|
|
14962
|
+
* @return {*} {ReactElement}
|
|
14963
|
+
*/
|
|
14964
|
+
var Success = function Success(props) {
|
|
14965
|
+
var variant = props.variant;
|
|
14966
|
+
if (variant === 'full-screen') {
|
|
14967
|
+
return /*#__PURE__*/React.createElement(StyledSuccessModal, {
|
|
14968
|
+
animationType: "slide"
|
|
14969
|
+
}, /*#__PURE__*/React.createElement(SuccessPage, props));
|
|
14970
|
+
}
|
|
14971
|
+
return /*#__PURE__*/React.createElement(SuccessPage, props);
|
|
14972
|
+
};
|
|
14973
|
+
|
|
14782
14974
|
var StyledWrapper$1 = index$a(View)(function (_ref) {
|
|
14783
14975
|
var theme = _ref.theme;
|
|
14784
14976
|
return {
|
|
@@ -15409,7 +15601,7 @@ var index$2 = Object.assign(Tabs, {
|
|
|
15409
15601
|
|
|
15410
15602
|
var getFilledStyles = function getFilledStyles(themeIntent, theme) {
|
|
15411
15603
|
return {
|
|
15412
|
-
textColor: theme.__hd__.tag.colors
|
|
15604
|
+
textColor: theme.__hd__.tag.colors[themeIntent],
|
|
15413
15605
|
borderColor: theme.__hd__.tag.colors["".concat(themeIntent, "Background")],
|
|
15414
15606
|
backgroundColor: theme.__hd__.tag.colors["".concat(themeIntent, "Background")]
|
|
15415
15607
|
};
|
|
@@ -32423,4 +32615,4 @@ var index = Object.assign(RichTextEditor$1, {
|
|
|
32423
32615
|
Toolbar: EditorToolbar
|
|
32424
32616
|
});
|
|
32425
32617
|
|
|
32426
|
-
export { Accordion, Alert, Attachment, index$9 as Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar, Card$1 as Card, index$8 as Carousel, Checkbox, Collapse, ContentNavigator, DatePicker, Divider, index$7 as Drawer, Empty, Error$1 as Error, index$6 as FAB, Icon, Image, List, PageControl, PinInput, Progress, CompoundRadio as Radio, RefreshControl, index as RichTextEditor, SectionHeading, index$4 as Select, Skeleton, Slider, Spinner, index$5 as Swipeable, index$3 as Switch, index$2 as Tabs, Tag, TextInput, ThemeProvider, ThemeSwitcher, TimePicker, Toast, index$1 as Toolbar, Typography, eBensSystemPalette, getTheme$1 as getTheme, jobsSystemPalette, scale, swagDarkSystemPalette, swagSystemPalette, defaultTheme as theme, useAvatarColors, useTheme, walletSystemPalette, withTheme, workSystemPalette };
|
|
32618
|
+
export { Accordion, Alert, Attachment, index$9 as Avatar, Badge$1 as Badge, BottomNavigation, BottomSheet$1 as BottomSheet, Box, CompoundButton as Button, Calendar, Card$1 as Card, index$8 as Carousel, Checkbox, Collapse, ContentNavigator, DatePicker, Divider, index$7 as Drawer, Empty, Error$1 as Error, index$6 as FAB, Icon, Image, List, PageControl, PinInput, Progress, CompoundRadio as Radio, RefreshControl, index as RichTextEditor, SectionHeading, index$4 as Select, Skeleton, Slider, Spinner, Success, index$5 as Swipeable, index$3 as Switch, index$2 as Tabs, Tag, TextInput, ThemeProvider, ThemeSwitcher, TimePicker, Toast, index$1 as Toolbar, Typography, eBensSystemPalette, getTheme$1 as getTheme, jobsSystemPalette, scale, swagDarkSystemPalette, swagSystemPalette, defaultTheme as theme, useAvatarColors, useTheme, walletSystemPalette, withTheme, workSystemPalette };
|