@hero-design/rn 8.20.0 → 8.22.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +2 -2
- package/.turbo/turbo-build:types.log +2 -0
- package/.turbo/turbo-lint.log +146 -0
- package/.turbo/turbo-publish:npm.log +9 -0
- package/.turbo/turbo-test.log +451 -0
- package/.turbo/turbo-type-check.log +2 -0
- package/es/index.js +236 -64
- package/lib/index.js +236 -64
- package/package.json +5 -5
- package/src/components/Button/Button.tsx +1 -1
- package/src/components/Button/StyledButton.tsx +0 -3
- package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +0 -10
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +0 -16
- package/src/components/Calendar/index.tsx +7 -2
- package/src/components/Carousel/StyledCarousel.tsx +12 -5
- package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +793 -14
- package/src/components/Carousel/__tests__/index.spec.tsx +41 -31
- package/src/components/Carousel/index.tsx +39 -7
- package/src/components/DatePicker/DatePickerAndroid.tsx +1 -1
- package/src/components/DatePicker/DatePickerCalendar.tsx +110 -0
- package/src/components/DatePicker/DatePickerIOS.tsx +1 -1
- package/src/components/DatePicker/__tests__/DatePicker.spec.tsx +27 -8
- package/src/components/DatePicker/__tests__/DatePickerCalendar.spec.tsx +61 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +670 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +220 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +0 -1
- package/src/components/DatePicker/index.tsx +5 -1
- package/src/components/DatePicker/types.ts +7 -1
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +0 -3
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +0 -1
- package/src/components/TimePicker/types.ts +1 -1
- package/src/components/Toast/Toast.tsx +3 -1
- package/src/components/Toast/types.ts +4 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +2 -3
- package/src/theme/components/button.ts +0 -5
- package/src/theme/components/carousel.ts +3 -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 +6 -2
- 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 +7 -1
- package/types/components/Carousel/contants.d.ts +0 -0
- package/types/components/Carousel/index.d.ts +7 -1
- 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 +1 -1
- package/types/components/DatePicker/DatePickerCalendar.d.ts +3 -0
- package/types/components/DatePicker/DatePickerIOS.d.ts +1 -1
- package/types/components/DatePicker/StyledDatePicker.d.ts +0 -0
- package/types/components/DatePicker/index.d.ts +1 -1
- package/types/components/DatePicker/types.d.ts +7 -1
- 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/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 +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 +1 -1
- package/types/components/Toast/StyledToast.d.ts +0 -0
- package/types/components/Toast/Toast.d.ts +1 -1
- 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 +4 -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 -3
- 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 +2 -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/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
|
@@ -944,13 +944,18 @@ var BASE_COLORS = {
|
|
|
944
944
|
aliceBlue: '#ecf0ff',
|
|
945
945
|
antiFlashWhite: '#f1f2f3',
|
|
946
946
|
apple: '#e3602a',
|
|
947
|
+
bigStone: '#344348',
|
|
947
948
|
blue1: '#5a68e2',
|
|
948
949
|
blue: '#1dbeee',
|
|
950
|
+
blueOblivion: '#23438f',
|
|
951
|
+
blazingBonfire: '#ffa234',
|
|
949
952
|
cornflowerBlue: '#5d80f0',
|
|
950
953
|
currant: '#48000a',
|
|
951
954
|
darkBlue: '#25006e',
|
|
952
955
|
deepSaffron: '#ffa234',
|
|
956
|
+
deepIntoTheJungle: '#004e48',
|
|
953
957
|
emerald: '#5ace7d',
|
|
958
|
+
flagstone: '#acacaf',
|
|
954
959
|
frenchSky: '#8999ff',
|
|
955
960
|
gold: '#ffd500',
|
|
956
961
|
green: '#01b39c',
|
|
@@ -958,13 +963,17 @@ var BASE_COLORS = {
|
|
|
958
963
|
grotesqueGreen: '#6af293',
|
|
959
964
|
hitPink: '#ffad79',
|
|
960
965
|
honeydew: '#f0fef4',
|
|
966
|
+
indianDance: '#f89076',
|
|
961
967
|
jordyBlue: '#92abfc',
|
|
962
968
|
linen: '#fcebe7',
|
|
963
969
|
maasstrichtBlue: '#001f23',
|
|
964
970
|
mauve: '#c38cee',
|
|
971
|
+
moussaka: '#6f2a17',
|
|
965
972
|
mellowApricot: '#ffbe71',
|
|
973
|
+
mintLeaf: '#01cbb0',
|
|
966
974
|
nightBlue: '#353957',
|
|
967
975
|
pastelRed: '#f46363',
|
|
976
|
+
pastelBlue: '#a1b5fc',
|
|
968
977
|
paua: '#130066',
|
|
969
978
|
peach: '#f8ac7d',
|
|
970
979
|
pineGreen: '#017d6d',
|
|
@@ -982,6 +991,8 @@ var BASE_COLORS = {
|
|
|
982
991
|
violet1: '#8505a2',
|
|
983
992
|
violet: '#7622d7',
|
|
984
993
|
vodka: '#b5c3fd',
|
|
994
|
+
theatreGold: '#a56822',
|
|
995
|
+
uniformGreen: '#4d4628',
|
|
985
996
|
yellow: '#fadb14'
|
|
986
997
|
};
|
|
987
998
|
var colorScales = Object.entries(BASE_COLORS).reduce(function (acc, _ref16) {
|
|
@@ -1152,13 +1163,19 @@ var palette$8 = {
|
|
|
1152
1163
|
var aliceBlue = colorScales.aliceBlue,
|
|
1153
1164
|
antiFlashWhite = colorScales.antiFlashWhite,
|
|
1154
1165
|
apple$2 = colorScales.apple,
|
|
1166
|
+
blazingBonfire = colorScales.blazingBonfire,
|
|
1167
|
+
bigStone = colorScales.bigStone,
|
|
1168
|
+
flagstone = colorScales.flagstone,
|
|
1155
1169
|
deepSaffron$1 = colorScales.deepSaffron,
|
|
1170
|
+
deepIntoTheJungle = colorScales.deepIntoTheJungle,
|
|
1156
1171
|
emerald$1 = colorScales.emerald,
|
|
1157
1172
|
grey$3 = colorScales.grey,
|
|
1158
1173
|
honeydew$2 = colorScales.honeydew,
|
|
1174
|
+
indianDance = colorScales.indianDance,
|
|
1159
1175
|
linen$2 = colorScales.linen,
|
|
1160
1176
|
maasstrichtBlue$2 = colorScales.maasstrichtBlue,
|
|
1161
1177
|
mellowApricot = colorScales.mellowApricot,
|
|
1178
|
+
moussaka = colorScales.moussaka,
|
|
1162
1179
|
pastelRed$1 = colorScales.pastelRed,
|
|
1163
1180
|
pineGreen$1 = colorScales.pineGreen,
|
|
1164
1181
|
seashell$2 = colorScales.seashell,
|
|
@@ -1166,7 +1183,12 @@ var aliceBlue = colorScales.aliceBlue,
|
|
|
1166
1183
|
sonicSilver$1 = colorScales.sonicSilver,
|
|
1167
1184
|
ultramarineBlue$1 = colorScales.ultramarineBlue,
|
|
1168
1185
|
vermilion$1 = colorScales.vermilion,
|
|
1169
|
-
vodka = colorScales.vodka
|
|
1186
|
+
vodka = colorScales.vodka,
|
|
1187
|
+
theatreGold = colorScales.theatreGold,
|
|
1188
|
+
uniformGreen = colorScales.uniformGreen,
|
|
1189
|
+
mintLeaf = colorScales.mintLeaf,
|
|
1190
|
+
blueOblivion = colorScales.blueOblivion,
|
|
1191
|
+
pastelBlue = colorScales.pastelBlue;
|
|
1170
1192
|
var palette$7 = {
|
|
1171
1193
|
black: '#000000',
|
|
1172
1194
|
white: '#ffffff',
|
|
@@ -1191,17 +1213,29 @@ var palette$7 = {
|
|
|
1191
1213
|
pastelRedLight20: pastelRed$1.lighten20,
|
|
1192
1214
|
mellowApricot: mellowApricot.base,
|
|
1193
1215
|
mellowApricotLight20: mellowApricot.lighten20,
|
|
1216
|
+
moussaka: moussaka.base,
|
|
1194
1217
|
emerald: emerald$1.base,
|
|
1195
1218
|
emeraldLight20: emerald$1.lighten20,
|
|
1196
1219
|
emeraldDark20: emerald$1.darken20,
|
|
1197
1220
|
vodka: vodka.base,
|
|
1198
1221
|
vodkaLight20: vodka.lighten20,
|
|
1199
1222
|
vermilion: vermilion$1.base,
|
|
1223
|
+
vermilionLight20: vermilion$1.lighten20,
|
|
1224
|
+
vermilionDark10: vermilion$1.darken10,
|
|
1200
1225
|
deepSaffron: deepSaffron$1.base,
|
|
1201
1226
|
deepSaffronDark20: deepSaffron$1.darken20,
|
|
1227
|
+
indianDance: indianDance.base,
|
|
1228
|
+
theatreGold: theatreGold.base,
|
|
1229
|
+
theatreGoldLight20: theatreGold.lighten20,
|
|
1202
1230
|
pineGreen: pineGreen$1.base,
|
|
1231
|
+
pineGreenLight20: pineGreen$1.lighten20,
|
|
1232
|
+
pineGreenDark10: pineGreen$1.darken10,
|
|
1203
1233
|
ultramarineBlue: ultramarineBlue$1.base,
|
|
1234
|
+
ultramarineBlueLight20: ultramarineBlue$1.lighten20,
|
|
1235
|
+
ultramarineBlueDark10: ultramarineBlue$1.darken10,
|
|
1204
1236
|
sonicSilver: sonicSilver$1.base,
|
|
1237
|
+
sonicSilverLight50: sonicSilver$1.lighten45,
|
|
1238
|
+
sonicSilverDark10: sonicSilver$1.darken10,
|
|
1205
1239
|
linen: linen$2.base,
|
|
1206
1240
|
seashell: seashell$2.base,
|
|
1207
1241
|
honeydew: honeydew$2.base,
|
|
@@ -1209,7 +1243,15 @@ var palette$7 = {
|
|
|
1209
1243
|
antiFlashWhite: antiFlashWhite.base,
|
|
1210
1244
|
apple: apple$2.base,
|
|
1211
1245
|
silverChalice: silverChalice.base,
|
|
1212
|
-
silverChaliceLight20: silverChalice.lighten20
|
|
1246
|
+
silverChaliceLight20: silverChalice.lighten20,
|
|
1247
|
+
uniformGreen: uniformGreen.base,
|
|
1248
|
+
blazingBonfire: blazingBonfire.base,
|
|
1249
|
+
deepIntoTheJungle: deepIntoTheJungle.base,
|
|
1250
|
+
mintLeaf: mintLeaf.base,
|
|
1251
|
+
blueOblivion: blueOblivion.base,
|
|
1252
|
+
pastelBlue: pastelBlue.base,
|
|
1253
|
+
bigStone: bigStone.base,
|
|
1254
|
+
flagstone: flagstone.base
|
|
1213
1255
|
};
|
|
1214
1256
|
var currant$1 = colorScales.currant,
|
|
1215
1257
|
sonicSilver = colorScales.sonicSilver,
|
|
@@ -1898,9 +1940,6 @@ var getButtonTheme = function getButtonTheme(theme) {
|
|
|
1898
1940
|
utility: theme.fontSizes.large,
|
|
1899
1941
|
textVariant: theme.fontSizes.large
|
|
1900
1942
|
};
|
|
1901
|
-
var lineHeight = {
|
|
1902
|
-
"default": theme.lineHeights.large
|
|
1903
|
-
};
|
|
1904
1943
|
var borderWidth = {
|
|
1905
1944
|
"default": theme.space.xxsmall
|
|
1906
1945
|
};
|
|
@@ -1948,7 +1987,6 @@ var getButtonTheme = function getButtonTheme(theme) {
|
|
|
1948
1987
|
sizes: sizes,
|
|
1949
1988
|
radii: radii,
|
|
1950
1989
|
colors: colors,
|
|
1951
|
-
lineHeight: lineHeight,
|
|
1952
1990
|
space: space
|
|
1953
1991
|
};
|
|
1954
1992
|
};
|
|
@@ -2015,7 +2053,9 @@ var getCarouselTheme = function getCarouselTheme(theme) {
|
|
|
2015
2053
|
headingMarginBottom: theme.space.medium,
|
|
2016
2054
|
footerPaddingHorizontal: theme.space.large,
|
|
2017
2055
|
footerPaddingVertical: theme.space.medium,
|
|
2018
|
-
footerMarginBottom: theme.space.large
|
|
2056
|
+
footerMarginBottom: theme.space.large,
|
|
2057
|
+
pageControlPaddingVertical: theme.space.small,
|
|
2058
|
+
pageControlWrapperHeight: scale(48)
|
|
2019
2059
|
};
|
|
2020
2060
|
var fontSizes = {
|
|
2021
2061
|
heading: theme.fontSizes['xxxxxlarge']
|
|
@@ -6075,7 +6115,7 @@ var StyledText$3 = index$a(reactNative.Text)(function (_ref) {
|
|
|
6075
6115
|
});
|
|
6076
6116
|
});
|
|
6077
6117
|
|
|
6078
|
-
var _excluded$
|
|
6118
|
+
var _excluded$s = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
|
|
6079
6119
|
var Text = function Text(_ref) {
|
|
6080
6120
|
var children = _ref.children,
|
|
6081
6121
|
_ref$fontSize = _ref.fontSize,
|
|
@@ -6088,7 +6128,7 @@ var Text = function Text(_ref) {
|
|
|
6088
6128
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
6089
6129
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
6090
6130
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
6091
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
6131
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$s);
|
|
6092
6132
|
return /*#__PURE__*/React__default["default"].createElement(StyledText$3, _extends$1({}, nativeProps, {
|
|
6093
6133
|
themeFontSize: fontSize,
|
|
6094
6134
|
themeFontWeight: fontWeight,
|
|
@@ -6610,10 +6650,10 @@ var StyledHeroIcon = index$a(HeroIcon)(function (_ref) {
|
|
|
6610
6650
|
};
|
|
6611
6651
|
});
|
|
6612
6652
|
|
|
6613
|
-
var _excluded$
|
|
6653
|
+
var _excluded$r = ["style"];
|
|
6614
6654
|
var AnimatedIcon = function AnimatedIcon(_ref) {
|
|
6615
6655
|
var style = _ref.style,
|
|
6616
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
6656
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$r);
|
|
6617
6657
|
var rotateAnimation = React.useRef(new reactNative.Animated.Value(0));
|
|
6618
6658
|
React.useEffect(function () {
|
|
6619
6659
|
var animation = reactNative.Animated.loop(reactNative.Animated.timing(rotateAnimation.current, {
|
|
@@ -6719,7 +6759,7 @@ var AccordionItem = function AccordionItem(_ref) {
|
|
|
6719
6759
|
}, content));
|
|
6720
6760
|
};
|
|
6721
6761
|
|
|
6722
|
-
var _excluded$
|
|
6762
|
+
var _excluded$q = ["key"];
|
|
6723
6763
|
var Accordion = function Accordion(_ref) {
|
|
6724
6764
|
var items = _ref.items,
|
|
6725
6765
|
activeItemKey = _ref.activeItemKey,
|
|
@@ -6740,7 +6780,7 @@ var Accordion = function Accordion(_ref) {
|
|
|
6740
6780
|
testID: testID
|
|
6741
6781
|
}, items.map(function (_ref2, index) {
|
|
6742
6782
|
var key = _ref2.key,
|
|
6743
|
-
props = _objectWithoutProperties(_ref2, _excluded$
|
|
6783
|
+
props = _objectWithoutProperties(_ref2, _excluded$q);
|
|
6744
6784
|
var open = _activeItemKey === key;
|
|
6745
6785
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
|
|
6746
6786
|
key: key
|
|
@@ -7137,7 +7177,7 @@ var StyledStatus = index$a(reactNative.Animated.View)(function (_ref3) {
|
|
|
7137
7177
|
};
|
|
7138
7178
|
});
|
|
7139
7179
|
|
|
7140
|
-
var _excluded$
|
|
7180
|
+
var _excluded$p = ["children", "visible", "intent", "style", "testID"];
|
|
7141
7181
|
var Status = function Status(_ref) {
|
|
7142
7182
|
var children = _ref.children,
|
|
7143
7183
|
_ref$visible = _ref.visible,
|
|
@@ -7146,7 +7186,7 @@ var Status = function Status(_ref) {
|
|
|
7146
7186
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
7147
7187
|
style = _ref.style,
|
|
7148
7188
|
testID = _ref.testID,
|
|
7149
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7189
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$p);
|
|
7150
7190
|
var _React$useRef = React__default["default"].useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
|
|
7151
7191
|
opacity = _React$useRef.current;
|
|
7152
7192
|
var isFirstRendering = React__default["default"].useRef(true);
|
|
@@ -7179,7 +7219,7 @@ var Status = function Status(_ref) {
|
|
|
7179
7219
|
}));
|
|
7180
7220
|
};
|
|
7181
7221
|
|
|
7182
|
-
var _excluded$
|
|
7222
|
+
var _excluded$o = ["content", "visible", "max", "intent", "style", "testID"];
|
|
7183
7223
|
var DEFAULT_MAX_NUMBER = 99;
|
|
7184
7224
|
var getPaddingState = function getPaddingState(content) {
|
|
7185
7225
|
return content.length > 1 ? 'wideContent' : 'narrowContent';
|
|
@@ -7194,7 +7234,7 @@ var Badge = function Badge(_ref) {
|
|
|
7194
7234
|
intent = _ref$intent === void 0 ? 'danger' : _ref$intent,
|
|
7195
7235
|
style = _ref.style,
|
|
7196
7236
|
testID = _ref.testID,
|
|
7197
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7237
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$o);
|
|
7198
7238
|
var _React$useRef = React__default["default"].useRef(new reactNative.Animated.Value(visible ? 1 : 0)),
|
|
7199
7239
|
opacity = _React$useRef.current;
|
|
7200
7240
|
var isFirstRendering = React__default["default"].useRef(true);
|
|
@@ -7298,7 +7338,7 @@ function omit(keys, obj) {
|
|
|
7298
7338
|
return result;
|
|
7299
7339
|
}
|
|
7300
7340
|
|
|
7301
|
-
var _excluded$
|
|
7341
|
+
var _excluded$n = ["onTabPress", "renderActiveTabOnly", "selectedTabKey", "tabs"];
|
|
7302
7342
|
var getInactiveIcon = function getInactiveIcon(icon) {
|
|
7303
7343
|
var inactiveIcon = "".concat(icon, "-outlined");
|
|
7304
7344
|
return isHeroIcon(inactiveIcon) ? inactiveIcon : icon;
|
|
@@ -7309,7 +7349,7 @@ var BottomNavigation = function BottomNavigation(_ref) {
|
|
|
7309
7349
|
renderActiveTabOnly = _ref$renderActiveTabO === void 0 ? false : _ref$renderActiveTabO,
|
|
7310
7350
|
selectedTabKey = _ref.selectedTabKey,
|
|
7311
7351
|
tabs = _ref.tabs,
|
|
7312
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7352
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$n);
|
|
7313
7353
|
var insets = reactNativeSafeAreaContext.useSafeAreaInsets();
|
|
7314
7354
|
/**
|
|
7315
7355
|
* List of loaded tabs, tabs will be loaded when navigated to.
|
|
@@ -7396,13 +7436,13 @@ var StyledDivider = index$a(reactNative.View)(function (_ref) {
|
|
|
7396
7436
|
}, horizontalMargin), verticalMargin);
|
|
7397
7437
|
});
|
|
7398
7438
|
|
|
7399
|
-
var _excluded$
|
|
7439
|
+
var _excluded$m = ["marginHorizontal", "marginVertical", "style", "testID"];
|
|
7400
7440
|
var Divider = function Divider(_ref) {
|
|
7401
7441
|
var marginHorizontal = _ref.marginHorizontal,
|
|
7402
7442
|
marginVertical = _ref.marginVertical,
|
|
7403
7443
|
style = _ref.style,
|
|
7404
7444
|
testID = _ref.testID,
|
|
7405
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
7445
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$m);
|
|
7406
7446
|
return /*#__PURE__*/React__default["default"].createElement(StyledDivider, _extends$1({}, nativeProps, {
|
|
7407
7447
|
themeMarginHorizontal: marginHorizontal,
|
|
7408
7448
|
themeMarginVertical: marginVertical,
|
|
@@ -7532,7 +7572,7 @@ var StyledLoadingDot = index$a(reactNative.View)(function (_ref2) {
|
|
|
7532
7572
|
}, themeStyling());
|
|
7533
7573
|
});
|
|
7534
7574
|
|
|
7535
|
-
var _excluded$
|
|
7575
|
+
var _excluded$l = ["count", "size", "testID", "themeVariant"];
|
|
7536
7576
|
var AnimatedLoadingIndicatorWrapper = reactNative.Animated.createAnimatedComponent(StyledLoadingIndicatorWrapper);
|
|
7537
7577
|
var AnimatedLoadingDot = reactNative.Animated.createAnimatedComponent(StyledLoadingDot);
|
|
7538
7578
|
var renderDotComponent = function renderDotComponent(_ref) {
|
|
@@ -7564,7 +7604,7 @@ var LoadingIndicator = function LoadingIndicator(_ref2) {
|
|
|
7564
7604
|
size = _ref2$size === void 0 ? 12 : _ref2$size,
|
|
7565
7605
|
testID = _ref2.testID,
|
|
7566
7606
|
themeVariant = _ref2.themeVariant,
|
|
7567
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
7607
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$l);
|
|
7568
7608
|
var progressAnimation = React.useRef(new reactNative.Animated.Value(0));
|
|
7569
7609
|
React.useEffect(function () {
|
|
7570
7610
|
var animation = reactNative.Animated.loop(reactNative.Animated.timing(progressAnimation.current, {
|
|
@@ -7649,8 +7689,7 @@ var genOutlineTextStyles = function genOutlineTextStyles(theme, intent, disabled
|
|
|
7649
7689
|
};
|
|
7650
7690
|
};
|
|
7651
7691
|
return _objectSpread2({
|
|
7652
|
-
fontSize: theme.__hd__.button.fontSize["default"]
|
|
7653
|
-
lineHeight: theme.__hd__.button.lineHeight["default"]
|
|
7692
|
+
fontSize: theme.__hd__.button.fontSize["default"]
|
|
7654
7693
|
}, textColorStyling());
|
|
7655
7694
|
};
|
|
7656
7695
|
var genTextVariantTextStyles = function genTextVariantTextStyles(theme, intent, disabled) {
|
|
@@ -7665,8 +7704,7 @@ var genTextVariantTextStyles = function genTextVariantTextStyles(theme, intent,
|
|
|
7665
7704
|
};
|
|
7666
7705
|
};
|
|
7667
7706
|
return _objectSpread2({
|
|
7668
|
-
fontSize: theme.__hd__.button.fontSize.textVariant
|
|
7669
|
-
lineHeight: theme.__hd__.button.lineHeight["default"]
|
|
7707
|
+
fontSize: theme.__hd__.button.fontSize.textVariant
|
|
7670
7708
|
}, textColorStyling());
|
|
7671
7709
|
};
|
|
7672
7710
|
var StyledButtonContainer = index$a(reactNative.TouchableHighlight)(function (_ref) {
|
|
@@ -7714,7 +7752,6 @@ var StyledButtonText = index$a(Typography.Text)(function (_ref2) {
|
|
|
7714
7752
|
case 'filled-danger':
|
|
7715
7753
|
return {
|
|
7716
7754
|
fontSize: theme.__hd__.button.fontSize["default"],
|
|
7717
|
-
lineHeight: theme.__hd__.button.lineHeight["default"],
|
|
7718
7755
|
color: theme.__hd__.button.colors.invertedText
|
|
7719
7756
|
};
|
|
7720
7757
|
case 'outlined-primary':
|
|
@@ -7874,9 +7911,9 @@ var Button = function Button(_ref) {
|
|
|
7874
7911
|
testID: "".concat(testID, "-left-icon"),
|
|
7875
7912
|
themeVariant: themeVariant
|
|
7876
7913
|
})), /*#__PURE__*/React__default["default"].createElement(StyledButtonText, {
|
|
7877
|
-
disabled: disabled,
|
|
7878
7914
|
ellipsizeMode: "tail",
|
|
7879
7915
|
numberOfLines: 1,
|
|
7916
|
+
disabled: disabled,
|
|
7880
7917
|
themeVariant: themeVariant
|
|
7881
7918
|
}, text), rightIcon !== undefined && /*#__PURE__*/React__default["default"].createElement(StyledButtonIconWrapper, {
|
|
7882
7919
|
themePosition: "right"
|
|
@@ -7970,13 +8007,13 @@ CompoundButton.Icon = IconButton;
|
|
|
7970
8007
|
CompoundButton.Utility = UtilityButton;
|
|
7971
8008
|
|
|
7972
8009
|
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
7973
|
-
var noop = function noop() {};
|
|
8010
|
+
var noop$1 = function noop() {};
|
|
7974
8011
|
|
|
7975
8012
|
var Header = function Header(_ref) {
|
|
7976
8013
|
var content = _ref.content,
|
|
7977
8014
|
showDivider = _ref.showDivider,
|
|
7978
8015
|
_ref$onRequestClose = _ref.onRequestClose,
|
|
7979
|
-
onRequestClose = _ref$onRequestClose === void 0 ? noop : _ref$onRequestClose,
|
|
8016
|
+
onRequestClose = _ref$onRequestClose === void 0 ? noop$1 : _ref$onRequestClose,
|
|
7980
8017
|
showCloseButton = _ref.showCloseButton;
|
|
7981
8018
|
return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(StyledHeaderWrapper, null, typeof content === 'string' ? /*#__PURE__*/React__default["default"].createElement(StyledHeader, null, /*#__PURE__*/React__default["default"].createElement(Typography.Text, {
|
|
7982
8019
|
fontSize: "large",
|
|
@@ -7994,11 +8031,11 @@ var Header = function Header(_ref) {
|
|
|
7994
8031
|
})) : null), showDivider ? /*#__PURE__*/React__default["default"].createElement(Divider, null) : null);
|
|
7995
8032
|
};
|
|
7996
8033
|
|
|
7997
|
-
var _excluded$
|
|
8034
|
+
var _excluded$k = ["scrollEventThrottle"];
|
|
7998
8035
|
var BottomSheetScrollView = function BottomSheetScrollView(_ref) {
|
|
7999
8036
|
var _ref$scrollEventThrot = _ref.scrollEventThrottle,
|
|
8000
8037
|
scrollEventThrottle = _ref$scrollEventThrot === void 0 ? 100 : _ref$scrollEventThrot,
|
|
8001
|
-
props = _objectWithoutProperties(_ref, _excluded$
|
|
8038
|
+
props = _objectWithoutProperties(_ref, _excluded$k);
|
|
8002
8039
|
var _useContext = React.useContext(BottomSheetContext),
|
|
8003
8040
|
setInternalShowDivider = _useContext.setInternalShowDivider;
|
|
8004
8041
|
var onScrollBeginDrag = React.useCallback(function (e) {
|
|
@@ -8313,7 +8350,7 @@ var borderWidths = {
|
|
|
8313
8350
|
var config = _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, colors), space), radii), borderWidths);
|
|
8314
8351
|
var flexPropsKey = ['alignContent', 'alignItems', 'alignSelf', 'display', 'flex', 'flexBasis', 'flexDirection', 'flexGrow', 'flexShrink', 'flexWrap', 'justifyContent'];
|
|
8315
8352
|
|
|
8316
|
-
var _excluded$
|
|
8353
|
+
var _excluded$j = ["theme"];
|
|
8317
8354
|
var getThemeValue = function getThemeValue(theme, key, props) {
|
|
8318
8355
|
var propConfig = config[key];
|
|
8319
8356
|
var propValue = props[key];
|
|
@@ -8340,18 +8377,18 @@ var mapStylePropToThemeValue = function mapStylePropToThemeValue(theme, props) {
|
|
|
8340
8377
|
var configKeys = Object.keys(config);
|
|
8341
8378
|
var StyledBox = index$a(reactNative.View)(function (_ref5) {
|
|
8342
8379
|
var theme = _ref5.theme,
|
|
8343
|
-
otherProps = _objectWithoutProperties(_ref5, _excluded$
|
|
8380
|
+
otherProps = _objectWithoutProperties(_ref5, _excluded$j);
|
|
8344
8381
|
var styleProps = pick(configKeys, otherProps);
|
|
8345
8382
|
var flexProps = pick(_toConsumableArray(flexPropsKey), otherProps);
|
|
8346
8383
|
return _objectSpread2(_objectSpread2({}, mapStylePropToThemeValue(theme, styleProps)), flexProps);
|
|
8347
8384
|
});
|
|
8348
8385
|
|
|
8349
|
-
var _excluded$
|
|
8386
|
+
var _excluded$i = ["children", "style", "testID"];
|
|
8350
8387
|
var Box = function Box(_ref) {
|
|
8351
8388
|
var children = _ref.children,
|
|
8352
8389
|
style = _ref.style,
|
|
8353
8390
|
testID = _ref.testID,
|
|
8354
|
-
otherProps = _objectWithoutProperties(_ref, _excluded$
|
|
8391
|
+
otherProps = _objectWithoutProperties(_ref, _excluded$i);
|
|
8355
8392
|
return /*#__PURE__*/React__default["default"].createElement(StyledBox, _extends$1({}, otherProps, {
|
|
8356
8393
|
style: style,
|
|
8357
8394
|
testID: testID
|
|
@@ -10821,15 +10858,16 @@ var Calendar = function Calendar(_ref) {
|
|
|
10821
10858
|
visibleDate = _ref.visibleDate,
|
|
10822
10859
|
onChange = _ref.onChange,
|
|
10823
10860
|
_ref$onPreviousPress = _ref.onPreviousPress,
|
|
10824
|
-
onPreviousPress = _ref$onPreviousPress === void 0 ? noop : _ref$onPreviousPress,
|
|
10861
|
+
onPreviousPress = _ref$onPreviousPress === void 0 ? noop$1 : _ref$onPreviousPress,
|
|
10825
10862
|
_ref$onNextPress = _ref.onNextPress,
|
|
10826
|
-
onNextPress = _ref$onNextPress === void 0 ? noop : _ref$onNextPress,
|
|
10863
|
+
onNextPress = _ref$onNextPress === void 0 ? noop$1 : _ref$onNextPress,
|
|
10827
10864
|
_ref$onTitlePress = _ref.onTitlePress,
|
|
10828
|
-
onTitlePress = _ref$onTitlePress === void 0 ? noop : _ref$onTitlePress,
|
|
10865
|
+
onTitlePress = _ref$onTitlePress === void 0 ? noop$1 : _ref$onTitlePress,
|
|
10829
10866
|
minDate = _ref.minDate,
|
|
10830
10867
|
maxDate = _ref.maxDate,
|
|
10831
10868
|
_ref$markedDates = _ref.markedDates,
|
|
10832
|
-
markedDates = _ref$markedDates === void 0 ? [] : _ref$markedDates
|
|
10869
|
+
markedDates = _ref$markedDates === void 0 ? [] : _ref$markedDates,
|
|
10870
|
+
testID = _ref.testID;
|
|
10833
10871
|
var currentMonth = visibleDate.getMonth();
|
|
10834
10872
|
var currentYear = visibleDate.getFullYear();
|
|
10835
10873
|
var now = new Date();
|
|
@@ -10860,7 +10898,9 @@ var Calendar = function Calendar(_ref) {
|
|
|
10860
10898
|
var disableNextButton = maxDate === undefined ? false : !daysOfNextMonth.some(function (date) {
|
|
10861
10899
|
return date !== undefined;
|
|
10862
10900
|
}) || maxDate <= lastDateOfMonth;
|
|
10863
|
-
return /*#__PURE__*/React__default["default"].createElement(StyledContainer$5,
|
|
10901
|
+
return /*#__PURE__*/React__default["default"].createElement(StyledContainer$5, {
|
|
10902
|
+
testID: testID
|
|
10903
|
+
}, /*#__PURE__*/React__default["default"].createElement(StyledCalendarHeader, null, /*#__PURE__*/React__default["default"].createElement(ContentNavigator, {
|
|
10864
10904
|
value: formatTime('MMMM yyyy', visibleDate),
|
|
10865
10905
|
onPreviousPress: onPreviousPress,
|
|
10866
10906
|
onNextPress: onNextPress,
|
|
@@ -10916,7 +10956,7 @@ var Calendar = function Calendar(_ref) {
|
|
|
10916
10956
|
})));
|
|
10917
10957
|
};
|
|
10918
10958
|
|
|
10919
|
-
var _excluded$
|
|
10959
|
+
var _excluded$h = ["rounded", "size", "testID", "style"];
|
|
10920
10960
|
var Image = function Image(_ref) {
|
|
10921
10961
|
var _ref$rounded = _ref.rounded,
|
|
10922
10962
|
rounded = _ref$rounded === void 0 ? false : _ref$rounded,
|
|
@@ -10924,7 +10964,7 @@ var Image = function Image(_ref) {
|
|
|
10924
10964
|
size = _ref$size === void 0 ? '6xlarge' : _ref$size,
|
|
10925
10965
|
testID = _ref.testID,
|
|
10926
10966
|
style = _ref.style,
|
|
10927
|
-
imageNativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
10967
|
+
imageNativeProps = _objectWithoutProperties(_ref, _excluded$h);
|
|
10928
10968
|
var theme = useTheme();
|
|
10929
10969
|
var imageSize = theme.__hd__.image.sizes[size];
|
|
10930
10970
|
return /*#__PURE__*/React__default["default"].createElement(reactNative.Image, _extends$1({
|
|
@@ -11020,6 +11060,7 @@ var StyledCarouselHeading = index$a(Typography.Text)(function (_ref2) {
|
|
|
11020
11060
|
});
|
|
11021
11061
|
var StyledCarouselImage = index$a(Image)(function () {
|
|
11022
11062
|
return {
|
|
11063
|
+
flexGrow: 2,
|
|
11023
11064
|
flex: 1,
|
|
11024
11065
|
width: '100%',
|
|
11025
11066
|
resizeMode: 'contain'
|
|
@@ -11040,8 +11081,7 @@ var StyledCustomSizeCarouselImage = index$a(Image)(function (_ref3) {
|
|
|
11040
11081
|
var StyledCarouselContentWrapper = index$a(Box)(function (_ref4) {
|
|
11041
11082
|
var width = _ref4.width;
|
|
11042
11083
|
return {
|
|
11043
|
-
width: width
|
|
11044
|
-
minHeight: scale(250)
|
|
11084
|
+
width: width
|
|
11045
11085
|
};
|
|
11046
11086
|
});
|
|
11047
11087
|
var StyledCarouselFooterWrapper = index$a(reactNative.View)(function (_ref5) {
|
|
@@ -11054,8 +11094,19 @@ var StyledCarouselFooterWrapper = index$a(reactNative.View)(function (_ref5) {
|
|
|
11054
11094
|
marginBottom: theme.__hd__.carousel.space.footerMarginBottom
|
|
11055
11095
|
};
|
|
11056
11096
|
});
|
|
11057
|
-
var StyledPageControl$1 = index$a(PageControl)({
|
|
11058
|
-
|
|
11097
|
+
var StyledPageControl$1 = index$a(PageControl)(function (_ref6) {
|
|
11098
|
+
var theme = _ref6.theme;
|
|
11099
|
+
return {
|
|
11100
|
+
paddingVertical: theme.__hd__.carousel.space.pageControlPaddingVertical
|
|
11101
|
+
};
|
|
11102
|
+
});
|
|
11103
|
+
var StyledPageControlWrapper = index$a(reactNative.View)(function (_ref7) {
|
|
11104
|
+
var theme = _ref7.theme;
|
|
11105
|
+
return {
|
|
11106
|
+
alignItems: 'center',
|
|
11107
|
+
justifyContent: 'center',
|
|
11108
|
+
height: theme.__hd__.carousel.space.pageControlWrapperHeight
|
|
11109
|
+
};
|
|
11059
11110
|
});
|
|
11060
11111
|
|
|
11061
11112
|
function isCarouselImageProps(image) {
|
|
@@ -11117,12 +11168,12 @@ var Indicator = index$a(reactNative.View)(function (_ref2) {
|
|
|
11117
11168
|
};
|
|
11118
11169
|
});
|
|
11119
11170
|
|
|
11120
|
-
var _excluded$
|
|
11171
|
+
var _excluded$g = ["intent", "children"];
|
|
11121
11172
|
var DataCard = function DataCard(_ref) {
|
|
11122
11173
|
var _ref$intent = _ref.intent,
|
|
11123
11174
|
intent = _ref$intent === void 0 ? 'info' : _ref$intent,
|
|
11124
11175
|
children = _ref.children,
|
|
11125
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
11176
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$g);
|
|
11126
11177
|
return /*#__PURE__*/React__default["default"].createElement(StyledDataCard, nativeProps, /*#__PURE__*/React__default["default"].createElement(Indicator, {
|
|
11127
11178
|
themeIntent: intent,
|
|
11128
11179
|
testID: "data-card-indicator"
|
|
@@ -11140,11 +11191,11 @@ var StyledCard$1 = index$a(reactNative.View)(function (_ref) {
|
|
|
11140
11191
|
});
|
|
11141
11192
|
});
|
|
11142
11193
|
|
|
11143
|
-
var _excluded$
|
|
11194
|
+
var _excluded$f = ["intent", "children"];
|
|
11144
11195
|
var Card = function Card(_ref) {
|
|
11145
11196
|
var intent = _ref.intent,
|
|
11146
11197
|
children = _ref.children,
|
|
11147
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
11198
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$f);
|
|
11148
11199
|
return /*#__PURE__*/React__default["default"].createElement(StyledCard$1, _extends$1({}, nativeProps, {
|
|
11149
11200
|
themeIntent: intent
|
|
11150
11201
|
}), children);
|
|
@@ -11332,7 +11383,7 @@ var CardCarousel = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
11332
11383
|
}));
|
|
11333
11384
|
});
|
|
11334
11385
|
|
|
11335
|
-
var _excluded$
|
|
11386
|
+
var _excluded$e = ["items", "onItemIndexChange", "renderActions", "selectedItemIndex", "style", "shouldShowPagination", "pageControlPosition"];
|
|
11336
11387
|
function useStateFromProp(initialValue) {
|
|
11337
11388
|
var _useState = React.useState(initialValue),
|
|
11338
11389
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -11343,6 +11394,9 @@ function useStateFromProp(initialValue) {
|
|
|
11343
11394
|
}, [initialValue]);
|
|
11344
11395
|
return [value, setValue];
|
|
11345
11396
|
}
|
|
11397
|
+
var noop = function noop(_) {
|
|
11398
|
+
return true;
|
|
11399
|
+
};
|
|
11346
11400
|
var Carousel = function Carousel(_ref) {
|
|
11347
11401
|
var items = _ref.items,
|
|
11348
11402
|
onItemIndexChange = _ref.onItemIndexChange,
|
|
@@ -11351,10 +11405,12 @@ var Carousel = function Carousel(_ref) {
|
|
|
11351
11405
|
selectedItemIndex = _ref$selectedItemInde === void 0 ? 0 : _ref$selectedItemInde,
|
|
11352
11406
|
style = _ref.style,
|
|
11353
11407
|
_ref$shouldShowPagina = _ref.shouldShowPagination,
|
|
11354
|
-
shouldShowPagination = _ref$shouldShowPagina === void 0 ?
|
|
11355
|
-
|
|
11356
|
-
|
|
11357
|
-
nativeProps = _objectWithoutProperties(_ref, _excluded$
|
|
11408
|
+
shouldShowPagination = _ref$shouldShowPagina === void 0 ? noop : _ref$shouldShowPagina,
|
|
11409
|
+
_ref$pageControlPosit = _ref.pageControlPosition,
|
|
11410
|
+
pageControlPosition = _ref$pageControlPosit === void 0 ? 'bottom' : _ref$pageControlPosit,
|
|
11411
|
+
nativeProps = _objectWithoutProperties(_ref, _excluded$e);
|
|
11412
|
+
useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop);
|
|
11413
|
+
useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
|
|
11358
11414
|
var carouselRef = React.useRef(null);
|
|
11359
11415
|
var _useStateFromProp = useStateFromProp(selectedItemIndex),
|
|
11360
11416
|
_useStateFromProp2 = _slicedToArray(_useStateFromProp, 2),
|
|
@@ -11396,7 +11452,10 @@ var Carousel = function Carousel(_ref) {
|
|
|
11396
11452
|
style: style
|
|
11397
11453
|
}, nativeProps), /*#__PURE__*/React__default["default"].createElement(StyledBackDrop, {
|
|
11398
11454
|
themeSlideBackground: items[currentSlideIndex].background
|
|
11399
|
-
}), /*#__PURE__*/React__default["default"].createElement(
|
|
11455
|
+
}), /*#__PURE__*/React__default["default"].createElement(StyledPageControlWrapper, null, pageControlPosition === 'top' && shouldShowPagination(currentSlideIndex) && /*#__PURE__*/React__default["default"].createElement(StyledPageControl$1, {
|
|
11456
|
+
numberOfPages: items.length,
|
|
11457
|
+
currentPage: currentSlideIndex
|
|
11458
|
+
})), /*#__PURE__*/React__default["default"].createElement(StyledCarouselView, null, /*#__PURE__*/React__default["default"].createElement(reactNative.FlatList, {
|
|
11400
11459
|
horizontal: true,
|
|
11401
11460
|
showsHorizontalScrollIndicator: false,
|
|
11402
11461
|
pagingEnabled: true,
|
|
@@ -11430,7 +11489,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
11430
11489
|
width: width
|
|
11431
11490
|
});
|
|
11432
11491
|
}
|
|
11433
|
-
}), /*#__PURE__*/React__default["default"].createElement(StyledCarouselFooterWrapper, null, renderActions && renderActions(currentSlideIndex), shouldShowPagination(currentSlideIndex) && /*#__PURE__*/React__default["default"].createElement(StyledPageControl$1, {
|
|
11492
|
+
}), /*#__PURE__*/React__default["default"].createElement(StyledCarouselFooterWrapper, null, renderActions && renderActions(currentSlideIndex), pageControlPosition === 'bottom' && shouldShowPagination(currentSlideIndex) && /*#__PURE__*/React__default["default"].createElement(StyledPageControl$1, {
|
|
11434
11493
|
numberOfPages: items.length,
|
|
11435
11494
|
currentPage: currentSlideIndex
|
|
11436
11495
|
}))));
|
|
@@ -11666,7 +11725,7 @@ var StyledErrorAndMaxLengthContainer = index$a(reactNative.View)(function () {
|
|
|
11666
11725
|
};
|
|
11667
11726
|
});
|
|
11668
11727
|
|
|
11669
|
-
var _excluded$
|
|
11728
|
+
var _excluded$d = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling"];
|
|
11670
11729
|
var getVariant$1 = function getVariant(_ref) {
|
|
11671
11730
|
var disabled = _ref.disabled,
|
|
11672
11731
|
error = _ref.error,
|
|
@@ -11714,7 +11773,7 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
11714
11773
|
renderInputValue = _ref2.renderInputValue,
|
|
11715
11774
|
_ref2$allowFontScalin = _ref2.allowFontScaling,
|
|
11716
11775
|
allowFontScaling = _ref2$allowFontScalin === void 0 ? false : _ref2$allowFontScalin,
|
|
11717
|
-
nativeProps = _objectWithoutProperties(_ref2, _excluded$
|
|
11776
|
+
nativeProps = _objectWithoutProperties(_ref2, _excluded$d);
|
|
11718
11777
|
var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
11719
11778
|
var isEmptyValue = displayText.length === 0;
|
|
11720
11779
|
var actualSuffix = loading ? 'loading' : suffix;
|
|
@@ -11947,6 +12006,110 @@ var DatePickerAndroid = function DatePickerAndroid(_ref) {
|
|
|
11947
12006
|
}) : null);
|
|
11948
12007
|
};
|
|
11949
12008
|
|
|
12009
|
+
var InternalCalendar = function InternalCalendar(_ref) {
|
|
12010
|
+
var minDate = _ref.minDate,
|
|
12011
|
+
maxDate = _ref.maxDate,
|
|
12012
|
+
value = _ref.value,
|
|
12013
|
+
_onChange = _ref.onChange;
|
|
12014
|
+
var _useState = React.useState(value || new Date()),
|
|
12015
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
12016
|
+
visibleDate = _useState2[0],
|
|
12017
|
+
setVisibleDate = _useState2[1];
|
|
12018
|
+
var _useState3 = React.useState(value || new Date()),
|
|
12019
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
12020
|
+
selectingDate = _useState4[0],
|
|
12021
|
+
setSelectingDate = _useState4[1];
|
|
12022
|
+
return /*#__PURE__*/React__default["default"].createElement(Calendar, {
|
|
12023
|
+
testID: "calendar",
|
|
12024
|
+
value: selectingDate,
|
|
12025
|
+
visibleDate: visibleDate,
|
|
12026
|
+
onChange: function onChange(date) {
|
|
12027
|
+
setSelectingDate(date);
|
|
12028
|
+
if (_onChange) {
|
|
12029
|
+
_onChange(date);
|
|
12030
|
+
}
|
|
12031
|
+
},
|
|
12032
|
+
onPreviousPress: function onPreviousPress() {
|
|
12033
|
+
return setVisibleDate(new Date(visibleDate.getFullYear(), visibleDate.getMonth() - 1, 1));
|
|
12034
|
+
},
|
|
12035
|
+
onNextPress: function onNextPress() {
|
|
12036
|
+
return setVisibleDate(new Date(visibleDate.getFullYear(), visibleDate.getMonth() + 1, 1));
|
|
12037
|
+
},
|
|
12038
|
+
minDate: minDate,
|
|
12039
|
+
maxDate: maxDate
|
|
12040
|
+
});
|
|
12041
|
+
};
|
|
12042
|
+
var DatePickerCalendar = function DatePickerCalendar(_ref2) {
|
|
12043
|
+
var value = _ref2.value,
|
|
12044
|
+
_ref2$minDate = _ref2.minDate,
|
|
12045
|
+
minDate = _ref2$minDate === void 0 ? new Date('1900-01-01T00:00:00.000Z') : _ref2$minDate,
|
|
12046
|
+
_ref2$maxDate = _ref2.maxDate,
|
|
12047
|
+
maxDate = _ref2$maxDate === void 0 ? new Date('2100-01-01T00:00:00.000Z') : _ref2$maxDate,
|
|
12048
|
+
label = _ref2.label,
|
|
12049
|
+
placeholder = _ref2.placeholder,
|
|
12050
|
+
onChange = _ref2.onChange,
|
|
12051
|
+
confirmLabel = _ref2.confirmLabel,
|
|
12052
|
+
_ref2$displayFormat = _ref2.displayFormat,
|
|
12053
|
+
displayFormat = _ref2$displayFormat === void 0 ? 'dd/MM/yyyy' : _ref2$displayFormat,
|
|
12054
|
+
_ref2$disabled = _ref2.disabled,
|
|
12055
|
+
disabled = _ref2$disabled === void 0 ? false : _ref2$disabled,
|
|
12056
|
+
required = _ref2.required,
|
|
12057
|
+
error = _ref2.error,
|
|
12058
|
+
helpText = _ref2.helpText,
|
|
12059
|
+
style = _ref2.style,
|
|
12060
|
+
testID = _ref2.testID;
|
|
12061
|
+
var _useState5 = React.useState(false),
|
|
12062
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
12063
|
+
open = _useState6[0],
|
|
12064
|
+
setOpen = _useState6[1];
|
|
12065
|
+
var _useState7 = React.useState(value || new Date()),
|
|
12066
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
12067
|
+
selectingDate = _useState8[0],
|
|
12068
|
+
setSelectingDate = _useState8[1];
|
|
12069
|
+
var displayValue = value ? formatTime(displayFormat, value) : '';
|
|
12070
|
+
return /*#__PURE__*/React__default["default"].createElement(reactNative.TouchableOpacity, {
|
|
12071
|
+
onPress: function onPress() {
|
|
12072
|
+
return setOpen(true);
|
|
12073
|
+
},
|
|
12074
|
+
disabled: disabled
|
|
12075
|
+
}, /*#__PURE__*/React__default["default"].createElement(reactNative.View, {
|
|
12076
|
+
pointerEvents: "none",
|
|
12077
|
+
testID: "datePickerCalendar"
|
|
12078
|
+
}, /*#__PURE__*/React__default["default"].createElement(TextInput, {
|
|
12079
|
+
label: label,
|
|
12080
|
+
value: displayValue,
|
|
12081
|
+
suffix: "calendar-dates-outlined",
|
|
12082
|
+
placeholder: placeholder || displayFormat,
|
|
12083
|
+
disabled: disabled,
|
|
12084
|
+
error: error,
|
|
12085
|
+
required: required,
|
|
12086
|
+
helpText: helpText,
|
|
12087
|
+
testID: testID,
|
|
12088
|
+
style: style
|
|
12089
|
+
})), /*#__PURE__*/React__default["default"].createElement(BottomSheet$1, {
|
|
12090
|
+
open: open,
|
|
12091
|
+
onRequestClose: function onRequestClose() {
|
|
12092
|
+
return setOpen(false);
|
|
12093
|
+
},
|
|
12094
|
+
header: label,
|
|
12095
|
+
footer: /*#__PURE__*/React__default["default"].createElement(CompoundButton, {
|
|
12096
|
+
variant: "text",
|
|
12097
|
+
text: confirmLabel,
|
|
12098
|
+
onPress: function onPress() {
|
|
12099
|
+
if (selectingDate) {
|
|
12100
|
+
onChange(selectingDate);
|
|
12101
|
+
}
|
|
12102
|
+
setOpen(false);
|
|
12103
|
+
}
|
|
12104
|
+
})
|
|
12105
|
+
}, /*#__PURE__*/React__default["default"].createElement(InternalCalendar, {
|
|
12106
|
+
minDate: minDate,
|
|
12107
|
+
maxDate: maxDate,
|
|
12108
|
+
value: value,
|
|
12109
|
+
onChange: setSelectingDate
|
|
12110
|
+
})));
|
|
12111
|
+
};
|
|
12112
|
+
|
|
11950
12113
|
var StyledPickerWrapper$1 = index$a(reactNative.View)(function (_ref) {
|
|
11951
12114
|
var theme = _ref.theme;
|
|
11952
12115
|
return {
|
|
@@ -12035,7 +12198,14 @@ var DatePickerIOS = function DatePickerIOS(_ref) {
|
|
|
12035
12198
|
}))));
|
|
12036
12199
|
};
|
|
12037
12200
|
|
|
12038
|
-
var
|
|
12201
|
+
var _excluded$c = ["variant"];
|
|
12202
|
+
var DatePicker = function DatePicker(_ref) {
|
|
12203
|
+
var _ref$variant = _ref.variant,
|
|
12204
|
+
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
12205
|
+
props = _objectWithoutProperties(_ref, _excluded$c);
|
|
12206
|
+
if (variant === 'calendar') {
|
|
12207
|
+
return /*#__PURE__*/React__default["default"].createElement(DatePickerCalendar, props);
|
|
12208
|
+
}
|
|
12039
12209
|
if (reactNative.Platform.OS === 'ios') {
|
|
12040
12210
|
return /*#__PURE__*/React__default["default"].createElement(DatePickerIOS, props);
|
|
12041
12211
|
}
|
|
@@ -15596,7 +15766,9 @@ var Toast$1 = function Toast(_ref2) {
|
|
|
15596
15766
|
autoDismiss = _ref2$autoDismiss === void 0 ? true : _ref2$autoDismiss,
|
|
15597
15767
|
onAction = _ref2.onAction,
|
|
15598
15768
|
actionLabel = _ref2.actionLabel,
|
|
15599
|
-
onDismiss = _ref2.onDismiss
|
|
15769
|
+
onDismiss = _ref2.onDismiss,
|
|
15770
|
+
_ref2$distance = _ref2.distance,
|
|
15771
|
+
distance = _ref2$distance === void 0 ? 0 : _ref2$distance;
|
|
15600
15772
|
var animatedValue = React.useRef(new reactNative.Animated.Value(0)).current;
|
|
15601
15773
|
var toastConfig = useToastConfig();
|
|
15602
15774
|
React.useEffect(function () {
|
|
@@ -15624,7 +15796,7 @@ var Toast$1 = function Toast(_ref2) {
|
|
|
15624
15796
|
});
|
|
15625
15797
|
var interpolateY = animatedValue.interpolate({
|
|
15626
15798
|
inputRange: [0, 1],
|
|
15627
|
-
outputRange:
|
|
15799
|
+
outputRange: toastConfig.position === 'top' ? [-20, distance] : [20, -distance]
|
|
15628
15800
|
});
|
|
15629
15801
|
return /*#__PURE__*/React__default["default"].createElement(Container, {
|
|
15630
15802
|
themeVariant: variant,
|