@hero-design/rn 8.21.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 +9 -9
- 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 +47 -5
- package/lib/index.js +47 -5
- package/package.json +1 -1
- package/src/components/Carousel/StyledCarousel.tsx +1 -2
- package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +6 -12
- package/src/components/Carousel/index.tsx +1 -1
- package/types/components/Accordion/AccordionItem.d.ts +0 -0
- package/types/components/Accordion/StyledAccordion.d.ts +0 -0
- package/types/components/Accordion/index.d.ts +0 -0
- package/types/components/Alert/StyledAlert.d.ts +0 -0
- package/types/components/Alert/index.d.ts +0 -0
- package/types/components/Attachment/StyledAttachment.d.ts +0 -0
- package/types/components/Attachment/index.d.ts +0 -0
- package/types/components/Avatar/Avatar.d.ts +0 -0
- package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +0 -0
- package/types/components/Avatar/AvatarStack/index.d.ts +0 -0
- package/types/components/Avatar/AvatarStack/utils.d.ts +0 -0
- package/types/components/Avatar/StyledAvatar.d.ts +0 -0
- package/types/components/Avatar/index.d.ts +0 -0
- package/types/components/Badge/Status.d.ts +0 -0
- package/types/components/Badge/StyledBadge.d.ts +0 -0
- package/types/components/Badge/index.d.ts +0 -0
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
- package/types/components/BottomNavigation/index.d.ts +0 -0
- package/types/components/BottomSheet/BottomSheetContext.d.ts +0 -0
- package/types/components/BottomSheet/Footer.d.ts +0 -0
- package/types/components/BottomSheet/Header.d.ts +0 -0
- package/types/components/BottomSheet/ScrollView.d.ts +0 -0
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -0
- package/types/components/BottomSheet/index.d.ts +0 -0
- package/types/components/Box/StyledBox.d.ts +0 -0
- package/types/components/Box/config.d.ts +0 -0
- package/types/components/Box/index.d.ts +0 -0
- package/types/components/Box/types.d.ts +0 -0
- package/types/components/Button/Button.d.ts +0 -0
- package/types/components/Button/IconButton.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/index.d.ts +0 -0
- package/types/components/Button/StyledButton.d.ts +0 -0
- package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +0 -0
- package/types/components/Button/UtilityButton/index.d.ts +0 -0
- package/types/components/Button/index.d.ts +0 -0
- package/types/components/Calendar/CalendarRowItem.d.ts +0 -0
- package/types/components/Calendar/StyledCalendar.d.ts +0 -0
- package/types/components/Calendar/helpers.d.ts +0 -0
- package/types/components/Calendar/index.d.ts +0 -0
- package/types/components/Card/DataCard/StyledDataCard.d.ts +0 -0
- package/types/components/Card/DataCard/index.d.ts +0 -0
- package/types/components/Card/StyledCard.d.ts +0 -0
- package/types/components/Card/index.d.ts +0 -0
- package/types/components/Carousel/CardCarousel.d.ts +0 -0
- package/types/components/Carousel/CarouselItem.d.ts +0 -0
- package/types/components/Carousel/StyledCardCarousel.d.ts +0 -0
- package/types/components/Carousel/StyledCarousel.d.ts +0 -0
- package/types/components/Carousel/contants.d.ts +0 -0
- package/types/components/Carousel/index.d.ts +0 -0
- package/types/components/Carousel/types.d.ts +0 -0
- package/types/components/Checkbox/StyledCheckbox.d.ts +0 -0
- package/types/components/Checkbox/index.d.ts +0 -0
- package/types/components/Collapse/StyledCollapse.d.ts +0 -0
- package/types/components/Collapse/index.d.ts +0 -0
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -0
- package/types/components/ContentNavigator/index.d.ts +0 -0
- package/types/components/DatePicker/DatePickerAndroid.d.ts +0 -0
- package/types/components/DatePicker/DatePickerCalendar.d.ts +0 -0
- package/types/components/DatePicker/DatePickerIOS.d.ts +0 -0
- package/types/components/DatePicker/StyledDatePicker.d.ts +0 -0
- package/types/components/DatePicker/index.d.ts +0 -0
- package/types/components/DatePicker/types.d.ts +0 -0
- package/types/components/Divider/StyledDivider.d.ts +0 -0
- package/types/components/Divider/index.d.ts +0 -0
- package/types/components/Drawer/DragableDrawer/helpers.d.ts +0 -0
- package/types/components/Drawer/DragableDrawer/index.d.ts +0 -0
- package/types/components/Drawer/StyledDrawer.d.ts +0 -0
- package/types/components/Drawer/index.d.ts +0 -0
- package/types/components/Empty/StyledEmpty.d.ts +0 -0
- package/types/components/Empty/index.d.ts +0 -0
- package/types/components/Error/StyledError.d.ts +0 -0
- package/types/components/Error/index.d.ts +0 -0
- package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -0
- package/types/components/FAB/ActionGroup/index.d.ts +0 -0
- package/types/components/FAB/AnimatedFABIcon.d.ts +0 -0
- package/types/components/FAB/FAB.d.ts +0 -0
- package/types/components/FAB/StyledFAB.d.ts +0 -0
- package/types/components/FAB/index.d.ts +0 -0
- package/types/components/Icon/AnimatedIcon.d.ts +0 -0
- package/types/components/Icon/HeroIcon/index.d.ts +0 -0
- package/types/components/Icon/IconList.d.ts +0 -0
- package/types/components/Icon/index.d.ts +0 -0
- package/types/components/Icon/utils.d.ts +0 -0
- package/types/components/Image/index.d.ts +0 -0
- package/types/components/List/BasicListItem.d.ts +0 -0
- package/types/components/List/ListItem.d.ts +0 -0
- package/types/components/List/StyledBasicListItem.d.ts +0 -0
- package/types/components/List/StyledListItem.d.ts +0 -0
- package/types/components/List/index.d.ts +0 -0
- package/types/components/PageControl/StyledPageControl.d.ts +0 -0
- package/types/components/PageControl/index.d.ts +0 -0
- package/types/components/PinInput/PinCell.d.ts +0 -0
- package/types/components/PinInput/StyledPinInput.d.ts +0 -0
- package/types/components/PinInput/index.d.ts +0 -0
- package/types/components/Progress/ProgressBar.d.ts +0 -0
- package/types/components/Progress/ProgressCircle.d.ts +0 -0
- package/types/components/Progress/StyledProgressBar.d.ts +0 -0
- package/types/components/Progress/StyledProgressCircle.d.ts +0 -0
- package/types/components/Progress/__tests__/index.spec.d.ts +0 -0
- package/types/components/Progress/constants.d.ts +0 -0
- package/types/components/Progress/index.d.ts +0 -0
- package/types/components/Progress/types.d.ts +0 -0
- package/types/components/Radio/Radio.d.ts +0 -0
- package/types/components/Radio/RadioGroup.d.ts +0 -0
- package/types/components/Radio/StyledRadio.d.ts +0 -0
- package/types/components/Radio/index.d.ts +0 -0
- package/types/components/Radio/types.d.ts +0 -0
- package/types/components/RefreshControl/index.d.ts +0 -0
- package/types/components/RichTextEditor/EditorEvent.d.ts +0 -0
- package/types/components/RichTextEditor/EditorToolbar.d.ts +0 -0
- package/types/components/RichTextEditor/MentionList.d.ts +0 -0
- package/types/components/RichTextEditor/RichTextEditor.d.ts +0 -0
- package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +0 -0
- package/types/components/RichTextEditor/StyledToolbar.d.ts +0 -0
- package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +0 -0
- package/types/components/RichTextEditor/constants.d.ts +0 -0
- package/types/components/RichTextEditor/heroEditorApp.d.ts +0 -0
- package/types/components/RichTextEditor/index.d.ts +0 -0
- package/types/components/RichTextEditor/types.d.ts +0 -0
- package/types/components/RichTextEditor/utils/events.d.ts +0 -0
- package/types/components/RichTextEditor/utils/rnWebView.d.ts +0 -0
- package/types/components/SectionHeading/StyledHeading.d.ts +0 -0
- package/types/components/SectionHeading/index.d.ts +0 -0
- package/types/components/Select/BaseOptionList.d.ts +0 -0
- package/types/components/Select/Footer.d.ts +0 -0
- package/types/components/Select/MultiSelect/Option.d.ts +0 -0
- package/types/components/Select/MultiSelect/OptionList.d.ts +0 -0
- package/types/components/Select/MultiSelect/index.d.ts +0 -0
- package/types/components/Select/SingleSelect/Option.d.ts +0 -0
- package/types/components/Select/SingleSelect/OptionList.d.ts +0 -0
- package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +0 -0
- package/types/components/Select/SingleSelect/index.d.ts +0 -0
- package/types/components/Select/StyledSelect.d.ts +0 -0
- package/types/components/Select/helpers.d.ts +0 -0
- package/types/components/Select/index.d.ts +0 -0
- package/types/components/Select/types.d.ts +0 -0
- package/types/components/Skeleton/StyledSkeleton.d.ts +0 -0
- package/types/components/Skeleton/index.d.ts +0 -0
- package/types/components/Slider/index.d.ts +0 -0
- package/types/components/Spinner/AnimatedSpinner.d.ts +0 -0
- package/types/components/Spinner/StyledSpinner.d.ts +0 -0
- package/types/components/Spinner/index.d.ts +0 -0
- package/types/components/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 +0 -0
- package/types/components/Toast/StyledToast.d.ts +0 -0
- package/types/components/Toast/Toast.d.ts +0 -0
- package/types/components/Toast/ToastContainer.d.ts +0 -0
- package/types/components/Toast/ToastContext.d.ts +0 -0
- package/types/components/Toast/ToastProvider.d.ts +0 -0
- package/types/components/Toast/index.d.ts +0 -0
- package/types/components/Toast/types.d.ts +0 -0
- package/types/components/Toolbar/StyledToolbar.d.ts +0 -0
- package/types/components/Toolbar/ToolbarGroup.d.ts +0 -0
- package/types/components/Toolbar/ToolbarItem.d.ts +0 -0
- package/types/components/Toolbar/index.d.ts +0 -0
- package/types/components/Typography/Text/StyledText.d.ts +0 -0
- package/types/components/Typography/Text/index.d.ts +0 -0
- package/types/components/Typography/index.d.ts +0 -0
- package/types/index.d.ts +0 -0
- package/types/testHelpers/renderWithTheme.d.ts +0 -0
- package/types/theme/ThemeProvider.d.ts +0 -0
- package/types/theme/ThemeSwitcher.d.ts +0 -0
- package/types/theme/components/accordion.d.ts +0 -0
- package/types/theme/components/alert.d.ts +0 -0
- package/types/theme/components/attachment.d.ts +0 -0
- package/types/theme/components/avatar.d.ts +0 -0
- package/types/theme/components/badge.d.ts +0 -0
- package/types/theme/components/bottomNavigation.d.ts +0 -0
- package/types/theme/components/bottomSheet.d.ts +0 -0
- package/types/theme/components/button.d.ts +0 -0
- package/types/theme/components/calendar.d.ts +0 -0
- package/types/theme/components/card.d.ts +0 -0
- package/types/theme/components/cardCarousel.d.ts +0 -0
- package/types/theme/components/carousel.d.ts +0 -0
- package/types/theme/components/checkbox.d.ts +0 -0
- package/types/theme/components/contentNavigator.d.ts +0 -0
- package/types/theme/components/datePicker.d.ts +0 -0
- package/types/theme/components/divider.d.ts +0 -0
- package/types/theme/components/drawer.d.ts +0 -0
- package/types/theme/components/empty.d.ts +0 -0
- package/types/theme/components/error.d.ts +0 -0
- package/types/theme/components/fab.d.ts +0 -0
- package/types/theme/components/icon.d.ts +0 -0
- package/types/theme/components/image.d.ts +0 -0
- package/types/theme/components/list.d.ts +0 -0
- package/types/theme/components/pageControl.d.ts +0 -0
- package/types/theme/components/pinInput.d.ts +0 -0
- package/types/theme/components/progress.d.ts +0 -0
- package/types/theme/components/radio.d.ts +0 -0
- package/types/theme/components/refreshControl.d.ts +0 -0
- package/types/theme/components/richTextEditor.d.ts +0 -0
- package/types/theme/components/sectionHeading.d.ts +0 -0
- package/types/theme/components/select.d.ts +0 -0
- package/types/theme/components/skeleton.d.ts +0 -0
- package/types/theme/components/slider.d.ts +0 -0
- package/types/theme/components/spinner.d.ts +0 -0
- package/types/theme/components/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,
|
|
@@ -11018,6 +11060,7 @@ var StyledCarouselHeading = index$a(Typography.Text)(function (_ref2) {
|
|
|
11018
11060
|
});
|
|
11019
11061
|
var StyledCarouselImage = index$a(Image)(function () {
|
|
11020
11062
|
return {
|
|
11063
|
+
flexGrow: 2,
|
|
11021
11064
|
flex: 1,
|
|
11022
11065
|
width: '100%',
|
|
11023
11066
|
resizeMode: 'contain'
|
|
@@ -11038,8 +11081,7 @@ var StyledCustomSizeCarouselImage = index$a(Image)(function (_ref3) {
|
|
|
11038
11081
|
var StyledCarouselContentWrapper = index$a(Box)(function (_ref4) {
|
|
11039
11082
|
var width = _ref4.width;
|
|
11040
11083
|
return {
|
|
11041
|
-
width: width
|
|
11042
|
-
minHeight: scale(250)
|
|
11084
|
+
width: width
|
|
11043
11085
|
};
|
|
11044
11086
|
});
|
|
11045
11087
|
var StyledCarouselFooterWrapper = index$a(reactNative.View)(function (_ref5) {
|
|
@@ -11368,7 +11410,7 @@ var Carousel = function Carousel(_ref) {
|
|
|
11368
11410
|
pageControlPosition = _ref$pageControlPosit === void 0 ? 'bottom' : _ref$pageControlPosit,
|
|
11369
11411
|
nativeProps = _objectWithoutProperties(_ref, _excluded$e);
|
|
11370
11412
|
useDeprecation("shouldShowPagination prop has been deprecated", shouldShowPagination !== noop);
|
|
11371
|
-
useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition
|
|
11413
|
+
useDeprecation("The use of 'pageControlPosition == bottom' has been deprecated", pageControlPosition === 'bottom');
|
|
11372
11414
|
var carouselRef = React.useRef(null);
|
|
11373
11415
|
var _useStateFromProp = useStateFromProp(selectedItemIndex),
|
|
11374
11416
|
_useStateFromProp2 = _slicedToArray(_useStateFromProp, 2),
|
package/package.json
CHANGED
|
@@ -3,7 +3,6 @@ import styled from '@emotion/native';
|
|
|
3
3
|
import Typography from '../Typography';
|
|
4
4
|
import Image from '../Image';
|
|
5
5
|
import Box from '../Box';
|
|
6
|
-
import { scale } from '../../utils/scale';
|
|
7
6
|
import PageControl from '../PageControl';
|
|
8
7
|
|
|
9
8
|
const StyledBackDrop = styled(View)<{
|
|
@@ -31,6 +30,7 @@ const StyledCarouselHeading = styled(Typography.Text)(({ theme }) => ({
|
|
|
31
30
|
}));
|
|
32
31
|
|
|
33
32
|
const StyledCarouselImage = styled(Image)(() => ({
|
|
33
|
+
flexGrow: 2,
|
|
34
34
|
flex: 1,
|
|
35
35
|
width: '100%',
|
|
36
36
|
resizeMode: 'contain',
|
|
@@ -51,7 +51,6 @@ const StyledCarouselContentWrapper = styled(Box)<{
|
|
|
51
51
|
width: number;
|
|
52
52
|
}>(({ width }) => ({
|
|
53
53
|
width,
|
|
54
|
-
minHeight: scale(250),
|
|
55
54
|
}));
|
|
56
55
|
|
|
57
56
|
const StyledCarouselFooterWrapper = styled(View)(({ theme }) => ({
|
|
@@ -156,6 +156,7 @@ exports[`Carousel renders correctly with pageControlPosition bottom 1`] = `
|
|
|
156
156
|
Array [
|
|
157
157
|
Object {
|
|
158
158
|
"flex": 1,
|
|
159
|
+
"flexGrow": 2,
|
|
159
160
|
"resizeMode": "contain",
|
|
160
161
|
"width": "100%",
|
|
161
162
|
},
|
|
@@ -175,7 +176,6 @@ exports[`Carousel renders correctly with pageControlPosition bottom 1`] = `
|
|
|
175
176
|
},
|
|
176
177
|
Array [
|
|
177
178
|
Object {
|
|
178
|
-
"minHeight": 250,
|
|
179
179
|
"width": 750,
|
|
180
180
|
},
|
|
181
181
|
undefined,
|
|
@@ -275,6 +275,7 @@ exports[`Carousel renders correctly with pageControlPosition bottom 1`] = `
|
|
|
275
275
|
Array [
|
|
276
276
|
Object {
|
|
277
277
|
"flex": 1,
|
|
278
|
+
"flexGrow": 2,
|
|
278
279
|
"resizeMode": "contain",
|
|
279
280
|
"width": "100%",
|
|
280
281
|
},
|
|
@@ -294,7 +295,6 @@ exports[`Carousel renders correctly with pageControlPosition bottom 1`] = `
|
|
|
294
295
|
},
|
|
295
296
|
Array [
|
|
296
297
|
Object {
|
|
297
|
-
"minHeight": 250,
|
|
298
298
|
"width": 750,
|
|
299
299
|
},
|
|
300
300
|
undefined,
|
|
@@ -437,7 +437,6 @@ exports[`Carousel renders correctly with pageControlPosition bottom 1`] = `
|
|
|
437
437
|
},
|
|
438
438
|
Array [
|
|
439
439
|
Object {
|
|
440
|
-
"minHeight": 250,
|
|
441
440
|
"width": 750,
|
|
442
441
|
},
|
|
443
442
|
undefined,
|
|
@@ -561,7 +560,6 @@ exports[`Carousel renders correctly with pageControlPosition bottom 1`] = `
|
|
|
561
560
|
},
|
|
562
561
|
Array [
|
|
563
562
|
Object {
|
|
564
|
-
"minHeight": 250,
|
|
565
563
|
"width": 750,
|
|
566
564
|
},
|
|
567
565
|
undefined,
|
|
@@ -992,6 +990,7 @@ exports[`Carousel renders correctly with pageControlPosition top 1`] = `
|
|
|
992
990
|
Array [
|
|
993
991
|
Object {
|
|
994
992
|
"flex": 1,
|
|
993
|
+
"flexGrow": 2,
|
|
995
994
|
"resizeMode": "contain",
|
|
996
995
|
"width": "100%",
|
|
997
996
|
},
|
|
@@ -1011,7 +1010,6 @@ exports[`Carousel renders correctly with pageControlPosition top 1`] = `
|
|
|
1011
1010
|
},
|
|
1012
1011
|
Array [
|
|
1013
1012
|
Object {
|
|
1014
|
-
"minHeight": 250,
|
|
1015
1013
|
"width": 750,
|
|
1016
1014
|
},
|
|
1017
1015
|
undefined,
|
|
@@ -1111,6 +1109,7 @@ exports[`Carousel renders correctly with pageControlPosition top 1`] = `
|
|
|
1111
1109
|
Array [
|
|
1112
1110
|
Object {
|
|
1113
1111
|
"flex": 1,
|
|
1112
|
+
"flexGrow": 2,
|
|
1114
1113
|
"resizeMode": "contain",
|
|
1115
1114
|
"width": "100%",
|
|
1116
1115
|
},
|
|
@@ -1130,7 +1129,6 @@ exports[`Carousel renders correctly with pageControlPosition top 1`] = `
|
|
|
1130
1129
|
},
|
|
1131
1130
|
Array [
|
|
1132
1131
|
Object {
|
|
1133
|
-
"minHeight": 250,
|
|
1134
1132
|
"width": 750,
|
|
1135
1133
|
},
|
|
1136
1134
|
undefined,
|
|
@@ -1273,7 +1271,6 @@ exports[`Carousel renders correctly with pageControlPosition top 1`] = `
|
|
|
1273
1271
|
},
|
|
1274
1272
|
Array [
|
|
1275
1273
|
Object {
|
|
1276
|
-
"minHeight": 250,
|
|
1277
1274
|
"width": 750,
|
|
1278
1275
|
},
|
|
1279
1276
|
undefined,
|
|
@@ -1397,7 +1394,6 @@ exports[`Carousel renders correctly with pageControlPosition top 1`] = `
|
|
|
1397
1394
|
},
|
|
1398
1395
|
Array [
|
|
1399
1396
|
Object {
|
|
1400
|
-
"minHeight": 250,
|
|
1401
1397
|
"width": 750,
|
|
1402
1398
|
},
|
|
1403
1399
|
undefined,
|
|
@@ -1681,6 +1677,7 @@ exports[`Carousel should call skip call back when press skip 1`] = `
|
|
|
1681
1677
|
Array [
|
|
1682
1678
|
Object {
|
|
1683
1679
|
"flex": 1,
|
|
1680
|
+
"flexGrow": 2,
|
|
1684
1681
|
"resizeMode": "contain",
|
|
1685
1682
|
"width": "100%",
|
|
1686
1683
|
},
|
|
@@ -1700,7 +1697,6 @@ exports[`Carousel should call skip call back when press skip 1`] = `
|
|
|
1700
1697
|
},
|
|
1701
1698
|
Array [
|
|
1702
1699
|
Object {
|
|
1703
|
-
"minHeight": 250,
|
|
1704
1700
|
"width": 750,
|
|
1705
1701
|
},
|
|
1706
1702
|
undefined,
|
|
@@ -1800,6 +1796,7 @@ exports[`Carousel should call skip call back when press skip 1`] = `
|
|
|
1800
1796
|
Array [
|
|
1801
1797
|
Object {
|
|
1802
1798
|
"flex": 1,
|
|
1799
|
+
"flexGrow": 2,
|
|
1803
1800
|
"resizeMode": "contain",
|
|
1804
1801
|
"width": "100%",
|
|
1805
1802
|
},
|
|
@@ -1819,7 +1816,6 @@ exports[`Carousel should call skip call back when press skip 1`] = `
|
|
|
1819
1816
|
},
|
|
1820
1817
|
Array [
|
|
1821
1818
|
Object {
|
|
1822
|
-
"minHeight": 250,
|
|
1823
1819
|
"width": 750,
|
|
1824
1820
|
},
|
|
1825
1821
|
undefined,
|
|
@@ -1962,7 +1958,6 @@ exports[`Carousel should call skip call back when press skip 1`] = `
|
|
|
1962
1958
|
},
|
|
1963
1959
|
Array [
|
|
1964
1960
|
Object {
|
|
1965
|
-
"minHeight": 250,
|
|
1966
1961
|
"width": 750,
|
|
1967
1962
|
},
|
|
1968
1963
|
undefined,
|
|
@@ -2086,7 +2081,6 @@ exports[`Carousel should call skip call back when press skip 1`] = `
|
|
|
2086
2081
|
},
|
|
2087
2082
|
Array [
|
|
2088
2083
|
Object {
|
|
2089
|
-
"minHeight": 250,
|
|
2090
2084
|
"width": 750,
|
|
2091
2085
|
},
|
|
2092
2086
|
undefined,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|