@hero-design/rn 8.12.5-alpha.0 → 8.12.5
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 +58 -53
- package/lib/index.js +58 -53
- package/package.json +5 -5
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +8 -0
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +12 -0
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +13 -0
- package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +21 -4
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +189 -36
- package/src/components/Avatar/StyledAvatar.tsx +11 -4
- package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +21 -4
- package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +42 -8
- package/src/components/Badge/StyledBadge.tsx +4 -2
- package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +132 -42
- package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +1 -0
- package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
- package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
- package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +10 -0
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +10 -0
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +5 -0
- package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +6 -0
- package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +2 -0
- package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +16 -0
- package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
- package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +1 -0
- package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +2 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +4 -0
- package/src/components/Empty/StyledEmpty.tsx +14 -13
- package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +76 -20
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +56 -16
- package/src/components/FAB/StyledFAB.tsx +3 -2
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +1 -0
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +22 -8
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +4 -0
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +53 -8
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +4 -0
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +4 -0
- package/src/components/PinInput/StyledPinInput.tsx +6 -3
- package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +93 -18
- package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +73 -13
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +3 -0
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +2 -0
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +3 -0
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +4 -0
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +23 -1
- package/src/components/SectionHeading/__tests__/index.spec.tsx +2 -2
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +20 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +38 -0
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +20 -0
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +35 -0
- package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +3 -0
- package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
- package/src/components/Tabs/ScrollableTabs.tsx +167 -208
- package/src/components/Tabs/__tests__/ScrollableTabs.spec.tsx +11 -58
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +24 -7
- package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +22 -7
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +27 -7
- package/src/components/Tag/StyledTag.tsx +3 -2
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +167 -62
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +22 -0
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +51 -0
- package/src/components/TextInput/index.tsx +2 -0
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +5 -0
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +7 -0
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +13 -0
- package/src/components/Typography/Text/index.tsx +2 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +17 -0
- package/src/theme/components/avatar.ts +11 -1
- package/src/theme/components/badge.ts +5 -1
- package/src/theme/components/pinInput.ts +14 -1
- package/src/types.ts +0 -2
- 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 +4 -5
- 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 +3 -5
- 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/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 +5 -9
- package/types/components/Empty/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 +3 -5
- 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 +5 -9
- 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/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 +1 -8
- 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 +1 -2
- package/types/components/Tabs/utils.d.ts +0 -0
- package/types/components/Tag/StyledTag.d.ts +3 -5
- 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 +1 -1
- 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 +10 -0
- package/types/theme/components/badge.d.ts +3 -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/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 +4 -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/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 +1 -2
- 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 -149
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
[
|
|
2
|
-
[
|
|
3
|
-
[
|
|
4
|
-
[
|
|
5
|
-
[
|
|
6
|
-
[
|
|
7
|
-
[
|
|
8
|
-
[
|
|
9
|
-
[
|
|
1
|
+
[35m@hero-design/rn:build[0m: cache hit, replaying output [2m30919d84667a450d[0m
|
|
2
|
+
[35m@hero-design/rn:build: [0m$ yarn build:js && yarn build:types
|
|
3
|
+
[35m@hero-design/rn:build: [0m$ rollup -c
|
|
4
|
+
[35m@hero-design/rn:build: [0m[36m
|
|
5
|
+
[35m@hero-design/rn:build: [0m[1msrc/index.ts[22m → [1mlib/index.js, es/index.js[22m...[39m
|
|
6
|
+
[35m@hero-design/rn:build: [0m[1m[33m(!) Plugin replace: @rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to `true`, as the next major version will default this option to `true`.[39m[22m
|
|
7
|
+
[35m@hero-design/rn:build: [0m[1m[33m(!) Plugin node-resolve: preferring built-in module 'events' over local alternative at '/root/hero-design/node_modules/events/events.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning[39m[22m
|
|
8
|
+
[35m@hero-design/rn:build: [0m[32mcreated [1mlib/index.js, es/index.js[22m in [1m27.4s[22m[39m
|
|
9
|
+
[35m@hero-design/rn:build: [0m$ tsc --noEmit false --emitDeclarationOnly --project tsconfig.prod.json
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
[36m@hero-design/rn:publish:npm[0m: cache hit, replaying output [2m507c34f3e0a508f6[0m
|
|
2
|
-
[36m@hero-design/rn:publish:npm: [0m$ yarn publish --access public
|
|
3
|
-
[36m@hero-design/rn:publish:npm: [0m[1/4] Bumping version...
|
|
4
|
-
[36m@hero-design/rn:publish:npm: [0minfo Current version: 8.12.0-rc.0
|
|
5
|
-
[36m@hero-design/rn:publish:npm: [0m[2/4] Logging in...
|
|
6
|
-
[36m@hero-design/rn:publish:npm: [0m[3/4] Publishing...
|
|
7
|
-
[36m@hero-design/rn:publish:npm: [0msuccess Published.
|
|
8
|
-
[36m@hero-design/rn:publish:npm: [0m[4/4] Revoking token...
|
|
9
|
-
[36m@hero-design/rn:publish:npm: [0minfo Not revoking login token, specified via config file.
|
package/es/index.js
CHANGED
|
@@ -1723,6 +1723,16 @@ var getAvatarTheme = function getAvatarTheme(theme) {
|
|
|
1723
1723
|
xxxxlarge: theme.space.xlarge * 1.5,
|
|
1724
1724
|
xxxxxlarge: theme.space.xxlarge * 1.5
|
|
1725
1725
|
};
|
|
1726
|
+
var lineHeights = {
|
|
1727
|
+
small: theme.lineHeights.large,
|
|
1728
|
+
medium: theme.lineHeights.xlarge,
|
|
1729
|
+
large: theme.lineHeights.xxlarge,
|
|
1730
|
+
xlarge: theme.lineHeights.xxxlarge,
|
|
1731
|
+
xxlarge: theme.lineHeights.medium * 2,
|
|
1732
|
+
xxxlarge: theme.lineHeights.large * 1.5,
|
|
1733
|
+
xxxxlarge: theme.lineHeights.xlarge * 1.5,
|
|
1734
|
+
xxxxxlarge: theme.lineHeights.xxlarge * 1.5
|
|
1735
|
+
};
|
|
1726
1736
|
var radii = {
|
|
1727
1737
|
rounded: theme.radii.rounded
|
|
1728
1738
|
};
|
|
@@ -1731,7 +1741,8 @@ var getAvatarTheme = function getAvatarTheme(theme) {
|
|
|
1731
1741
|
sizes: sizes,
|
|
1732
1742
|
radii: radii,
|
|
1733
1743
|
fonts: fonts,
|
|
1734
|
-
fontSizes: fontSizes
|
|
1744
|
+
fontSizes: fontSizes,
|
|
1745
|
+
lineHeights: lineHeights
|
|
1735
1746
|
};
|
|
1736
1747
|
};
|
|
1737
1748
|
|
|
@@ -1751,6 +1762,9 @@ var getBadgeTheme = function getBadgeTheme(theme) {
|
|
|
1751
1762
|
var fontSizes = {
|
|
1752
1763
|
"default": theme.fontSizes.small
|
|
1753
1764
|
};
|
|
1765
|
+
var lineHeights = {
|
|
1766
|
+
"default": theme.lineHeights.small
|
|
1767
|
+
};
|
|
1754
1768
|
var sizes = {
|
|
1755
1769
|
height: theme.fontSizes.small + theme.sizes.small,
|
|
1756
1770
|
minWidth: theme.fontSizes.small + theme.sizes.small,
|
|
@@ -1767,7 +1781,8 @@ var getBadgeTheme = function getBadgeTheme(theme) {
|
|
|
1767
1781
|
fonts: fonts,
|
|
1768
1782
|
fontSizes: fontSizes,
|
|
1769
1783
|
sizes: sizes,
|
|
1770
|
-
space: space
|
|
1784
|
+
space: space,
|
|
1785
|
+
lineHeights: lineHeights
|
|
1771
1786
|
};
|
|
1772
1787
|
};
|
|
1773
1788
|
|
|
@@ -2337,6 +2352,10 @@ var getPinInputTheme = function getPinInputTheme(theme) {
|
|
|
2337
2352
|
cellText: theme.fontSizes.xxxxlarge,
|
|
2338
2353
|
errorMessage: theme.fontSizes.small
|
|
2339
2354
|
};
|
|
2355
|
+
var lineHeights = {
|
|
2356
|
+
cellText: theme.lineHeights.xxxxlarge,
|
|
2357
|
+
errorMessage: theme.fontSizes.small
|
|
2358
|
+
};
|
|
2340
2359
|
var sizes = {
|
|
2341
2360
|
cellWidth: theme.sizes.xxlarge,
|
|
2342
2361
|
cellHeight: theme.sizes.xxxlarge,
|
|
@@ -2352,6 +2371,7 @@ var getPinInputTheme = function getPinInputTheme(theme) {
|
|
|
2352
2371
|
};
|
|
2353
2372
|
return {
|
|
2354
2373
|
borderWidths: borderWidths,
|
|
2374
|
+
lineHeights: lineHeights,
|
|
2355
2375
|
colors: colors,
|
|
2356
2376
|
fonts: fonts,
|
|
2357
2377
|
fontSizes: fontSizes,
|
|
@@ -5958,7 +5978,7 @@ var StyledText$3 = index$a(Text$1)(function (_ref) {
|
|
|
5958
5978
|
});
|
|
5959
5979
|
});
|
|
5960
5980
|
|
|
5961
|
-
var _excluded$p = ["children", "fontSize", "fontWeight", "intent", "typeface"];
|
|
5981
|
+
var _excluded$p = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
|
|
5962
5982
|
var Text = function Text(_ref) {
|
|
5963
5983
|
var children = _ref.children,
|
|
5964
5984
|
_ref$fontSize = _ref.fontSize,
|
|
@@ -5969,12 +5989,15 @@ var Text = function Text(_ref) {
|
|
|
5969
5989
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
5970
5990
|
_ref$typeface = _ref.typeface,
|
|
5971
5991
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
5992
|
+
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
5993
|
+
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
5972
5994
|
nativeProps = _objectWithoutProperties(_ref, _excluded$p);
|
|
5973
5995
|
return /*#__PURE__*/React.createElement(StyledText$3, _extends$1({}, nativeProps, {
|
|
5974
5996
|
themeFontSize: fontSize,
|
|
5975
5997
|
themeFontWeight: fontWeight,
|
|
5976
5998
|
themeIntent: intent,
|
|
5977
|
-
themeTypeface: typeface
|
|
5999
|
+
themeTypeface: typeface,
|
|
6000
|
+
allowFontScaling: allowFontScaling
|
|
5978
6001
|
}), children);
|
|
5979
6002
|
};
|
|
5980
6003
|
|
|
@@ -6808,12 +6831,15 @@ var StyledTextWrapper$1 = index$a(View)(function () {
|
|
|
6808
6831
|
height: '100%'
|
|
6809
6832
|
};
|
|
6810
6833
|
});
|
|
6811
|
-
var StyledText$2 = index$a(Text
|
|
6834
|
+
var StyledText$2 = index$a(Typography.Text)(function (_ref2) {
|
|
6812
6835
|
var themeSize = _ref2.themeSize,
|
|
6813
6836
|
theme = _ref2.theme;
|
|
6814
6837
|
return {
|
|
6815
6838
|
fontFamily: theme.__hd__.avatar.fonts["default"],
|
|
6816
6839
|
fontSize: theme.__hd__.avatar.fontSizes[themeSize],
|
|
6840
|
+
lineHeight: 0,
|
|
6841
|
+
textAlignVertical: 'center',
|
|
6842
|
+
textAlign: 'center',
|
|
6817
6843
|
color: theme.__hd__.avatar.colors.text,
|
|
6818
6844
|
overflow: 'hidden'
|
|
6819
6845
|
};
|
|
@@ -6962,11 +6988,12 @@ var StyledView$2 = index$a(Animated.View)(function (_ref) {
|
|
|
6962
6988
|
paddingHorizontal: themePadding === 'wideContent' ? theme.__hd__.badge.space.horizontalPadding : undefined
|
|
6963
6989
|
};
|
|
6964
6990
|
});
|
|
6965
|
-
var StyledText$1 = index$a(Text
|
|
6991
|
+
var StyledText$1 = index$a(Typography.Text)(function (_ref2) {
|
|
6966
6992
|
var theme = _ref2.theme;
|
|
6967
6993
|
return {
|
|
6968
6994
|
fontFamily: theme.__hd__.badge.fonts["default"],
|
|
6969
6995
|
fontSize: theme.__hd__.badge.fontSizes["default"],
|
|
6996
|
+
lineHeight: theme.__hd__.badge.lineHeights["default"],
|
|
6970
6997
|
color: theme.__hd__.badge.colors.text,
|
|
6971
6998
|
includeFontPadding: false,
|
|
6972
6999
|
textAlignVertical: 'center',
|
|
@@ -11516,7 +11543,7 @@ var StyledErrorAndMaxLengthContainer = index$a(View)(function () {
|
|
|
11516
11543
|
};
|
|
11517
11544
|
});
|
|
11518
11545
|
|
|
11519
|
-
var _excluded$a = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "helpText", "value", "defaultValue", "renderInputValue"];
|
|
11546
|
+
var _excluded$a = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling"];
|
|
11520
11547
|
var getVariant$1 = function getVariant(_ref) {
|
|
11521
11548
|
var disabled = _ref.disabled,
|
|
11522
11549
|
error = _ref.error,
|
|
@@ -11562,6 +11589,8 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
11562
11589
|
value = _ref2.value,
|
|
11563
11590
|
defaultValue = _ref2.defaultValue,
|
|
11564
11591
|
renderInputValue = _ref2.renderInputValue,
|
|
11592
|
+
_ref2$allowFontScalin = _ref2.allowFontScaling,
|
|
11593
|
+
allowFontScaling = _ref2$allowFontScalin === void 0 ? false : _ref2$allowFontScalin,
|
|
11565
11594
|
nativeProps = _objectWithoutProperties(_ref2, _excluded$a);
|
|
11566
11595
|
var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
11567
11596
|
var isEmptyValue = displayText.length === 0;
|
|
@@ -11650,7 +11679,8 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
11650
11679
|
},
|
|
11651
11680
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
11652
11681
|
// @ts-ignore
|
|
11653
|
-
accessibilityLabelledBy: accessibilityLabelledBy
|
|
11682
|
+
accessibilityLabelledBy: accessibilityLabelledBy,
|
|
11683
|
+
allowFontScaling: allowFontScaling
|
|
11654
11684
|
}, nativeProps), {}, {
|
|
11655
11685
|
onFocus: function onFocus(event) {
|
|
11656
11686
|
var _nativeProps$onFocus;
|
|
@@ -12187,7 +12217,7 @@ var StyledWrapper$5 = index$a(View)(function (_ref) {
|
|
|
12187
12217
|
padding: theme.__hd__.empty.space.wrapperPadding
|
|
12188
12218
|
};
|
|
12189
12219
|
});
|
|
12190
|
-
var StyledTitle = index$a(Text
|
|
12220
|
+
var StyledTitle = index$a(Typography.Text)(function (_ref2) {
|
|
12191
12221
|
var theme = _ref2.theme,
|
|
12192
12222
|
themeVariant = _ref2.themeVariant;
|
|
12193
12223
|
return {
|
|
@@ -12198,7 +12228,7 @@ var StyledTitle = index$a(Text$1)(function (_ref2) {
|
|
|
12198
12228
|
color: themeVariant === 'dark' ? theme.__hd__.empty.colors.invertedText : theme.__hd__.empty.colors.text
|
|
12199
12229
|
};
|
|
12200
12230
|
});
|
|
12201
|
-
var StyledDescription = index$a(Text
|
|
12231
|
+
var StyledDescription = index$a(Typography.Text)(function (_ref3) {
|
|
12202
12232
|
var theme = _ref3.theme,
|
|
12203
12233
|
themeVariant = _ref3.themeVariant;
|
|
12204
12234
|
return {
|
|
@@ -12255,7 +12285,7 @@ var StyledFABIcon = index$a(Icon)(function (_ref2) {
|
|
|
12255
12285
|
textAlign: 'center'
|
|
12256
12286
|
};
|
|
12257
12287
|
});
|
|
12258
|
-
var StyledFABText = index$a(Text
|
|
12288
|
+
var StyledFABText = index$a(Typography.Text)(function (_ref3) {
|
|
12259
12289
|
var theme = _ref3.theme;
|
|
12260
12290
|
return {
|
|
12261
12291
|
fontFamily: theme.__hd__.fab.fonts.title,
|
|
@@ -12738,12 +12768,13 @@ var StyledCell = index$a(View)(function (_ref) {
|
|
|
12738
12768
|
borderColor: theme.__hd__.pinInput.colors[themeState]
|
|
12739
12769
|
};
|
|
12740
12770
|
});
|
|
12741
|
-
var StyledCellText = index$a(Text
|
|
12771
|
+
var StyledCellText = index$a(Typography.Text)(function (_ref2) {
|
|
12742
12772
|
var theme = _ref2.theme,
|
|
12743
12773
|
themeState = _ref2.themeState;
|
|
12744
12774
|
return {
|
|
12745
12775
|
fontFamily: theme.__hd__.pinInput.fonts.cellText,
|
|
12746
12776
|
fontSize: theme.__hd__.pinInput.fontSizes.cellText,
|
|
12777
|
+
lineHeight: theme.__hd__.pinInput.lineHeights.cellText,
|
|
12747
12778
|
color: theme.__hd__.pinInput.colors[themeState]
|
|
12748
12779
|
};
|
|
12749
12780
|
});
|
|
@@ -12794,10 +12825,11 @@ var StyledErrorContainer = index$a(View)(function (_ref7) {
|
|
|
12794
12825
|
var theme = _ref7.theme;
|
|
12795
12826
|
return {
|
|
12796
12827
|
flexDirection: 'row',
|
|
12797
|
-
paddingTop: theme.__hd__.pinInput.space.errorMessagePadding
|
|
12828
|
+
paddingTop: theme.__hd__.pinInput.space.errorMessagePadding,
|
|
12829
|
+
alignItems: 'center'
|
|
12798
12830
|
};
|
|
12799
12831
|
});
|
|
12800
|
-
var StyledErrorMessage = index$a(Text
|
|
12832
|
+
var StyledErrorMessage = index$a(Typography.Text)(function (_ref8) {
|
|
12801
12833
|
var theme = _ref8.theme;
|
|
12802
12834
|
return {
|
|
12803
12835
|
fontFamily: theme.__hd__.pinInput.fonts.errorMessage,
|
|
@@ -14496,9 +14528,8 @@ var getTabItem$1 = function getTabItem(_ref) {
|
|
|
14496
14528
|
color: color
|
|
14497
14529
|
});
|
|
14498
14530
|
};
|
|
14499
|
-
var ScrollableTab =
|
|
14500
|
-
var
|
|
14501
|
-
onTabPress = _ref2$onTabPress === void 0 ? noop : _ref2$onTabPress,
|
|
14531
|
+
var ScrollableTab = function ScrollableTab(_ref2) {
|
|
14532
|
+
var onTabPress = _ref2.onTabPress,
|
|
14502
14533
|
selectedTabKey = _ref2.selectedTabKey,
|
|
14503
14534
|
tabs = _ref2.tabs,
|
|
14504
14535
|
containerStyle = _ref2.containerStyle,
|
|
@@ -14520,46 +14551,20 @@ var ScrollableTab = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
14520
14551
|
var tabsAnims = useAnimatedValueArray(tabs.map(function (_, i) {
|
|
14521
14552
|
return i === selectedTabIndex ? 1 : 0;
|
|
14522
14553
|
}));
|
|
14523
|
-
React.useImperativeHandle(ref, function () {
|
|
14524
|
-
return {
|
|
14525
|
-
selectTabKey: function selectTabKey(tabKey) {
|
|
14526
|
-
var index = tabs.findIndex(function (item) {
|
|
14527
|
-
return item.key === tabKey;
|
|
14528
|
-
});
|
|
14529
|
-
if (index !== -1) {
|
|
14530
|
-
var _flatListRef$current, _pagerViewRef$current;
|
|
14531
|
-
(_flatListRef$current = flatListRef.current) === null || _flatListRef$current === void 0 ? void 0 : _flatListRef$current.scrollToIndex({
|
|
14532
|
-
index: index,
|
|
14533
|
-
viewPosition: 0.5
|
|
14534
|
-
});
|
|
14535
|
-
(_pagerViewRef$current = pagerViewRef.current) === null || _pagerViewRef$current === void 0 ? void 0 : _pagerViewRef$current.setPage(index);
|
|
14536
|
-
if (onTabPress) {
|
|
14537
|
-
onTabPress(tabKey);
|
|
14538
|
-
}
|
|
14539
|
-
}
|
|
14540
|
-
},
|
|
14541
|
-
getFlatListRef: function getFlatListRef() {
|
|
14542
|
-
return flatListRef.current;
|
|
14543
|
-
},
|
|
14544
|
-
getPagerViewRef: function getPagerViewRef() {
|
|
14545
|
-
return pagerViewRef.current;
|
|
14546
|
-
}
|
|
14547
|
-
};
|
|
14548
|
-
}, [pagerViewRef, flatListRef, tabs]);
|
|
14549
14554
|
React.useEffect(function () {
|
|
14550
14555
|
var timeoutHandle = null;
|
|
14551
14556
|
if (selectedTabIndex !== -1) {
|
|
14552
|
-
var _flatListRef$
|
|
14553
|
-
(_flatListRef$
|
|
14557
|
+
var _flatListRef$current;
|
|
14558
|
+
(_flatListRef$current = flatListRef.current) === null || _flatListRef$current === void 0 ? void 0 : _flatListRef$current.scrollToIndex({
|
|
14554
14559
|
index: selectedTabIndex,
|
|
14555
14560
|
viewPosition: 0.5
|
|
14556
14561
|
});
|
|
14557
14562
|
// If the selected tab is changed too quickly, the setPage is crashed and not work anymore
|
|
14558
14563
|
// We apply throttle to prevent this issue https://github.com/Thinkei/hero-design/issues/1715
|
|
14559
14564
|
timeoutHandle = setTimeout(function () {
|
|
14560
|
-
var _pagerViewRef$
|
|
14565
|
+
var _pagerViewRef$current;
|
|
14561
14566
|
// use no animation to prevent unexpected behavior if users select tab too quickly
|
|
14562
|
-
(_pagerViewRef$
|
|
14567
|
+
(_pagerViewRef$current = pagerViewRef.current) === null || _pagerViewRef$current === void 0 ? void 0 : _pagerViewRef$current.setPageWithoutAnimation(selectedTabIndex);
|
|
14563
14568
|
}, 200);
|
|
14564
14569
|
}
|
|
14565
14570
|
var animation = Animated.parallel(_toConsumableArray(tabs.map(function (_, i) {
|
|
@@ -14576,7 +14581,7 @@ var ScrollableTab = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
14576
14581
|
clearTimeout(timeoutHandle);
|
|
14577
14582
|
}
|
|
14578
14583
|
};
|
|
14579
|
-
}, [selectedTabIndex,
|
|
14584
|
+
}, [selectedTabIndex, pagerViewRef]);
|
|
14580
14585
|
return /*#__PURE__*/React.createElement(TabContainer, {
|
|
14581
14586
|
style: containerStyle,
|
|
14582
14587
|
testID: componentTestID
|
|
@@ -14595,8 +14600,8 @@ var ScrollableTab = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
14595
14600
|
onScrollToIndexFailed: function onScrollToIndexFailed(_ref3) {
|
|
14596
14601
|
var index = _ref3.index;
|
|
14597
14602
|
setTimeout(function () {
|
|
14598
|
-
var _flatListRef$
|
|
14599
|
-
return (_flatListRef$
|
|
14603
|
+
var _flatListRef$current2;
|
|
14604
|
+
return (_flatListRef$current2 = flatListRef.current) === null || _flatListRef$current2 === void 0 ? void 0 : _flatListRef$current2.scrollToIndex({
|
|
14600
14605
|
index: index,
|
|
14601
14606
|
viewPosition: 0.5
|
|
14602
14607
|
});
|
|
@@ -14652,7 +14657,7 @@ var ScrollableTab = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
14652
14657
|
onPageSelected: function onPageSelected(e) {
|
|
14653
14658
|
var index = e.nativeEvent.position;
|
|
14654
14659
|
var selectedItem = tabs[index];
|
|
14655
|
-
if (selectedItem
|
|
14660
|
+
if (selectedItem) {
|
|
14656
14661
|
onTabPress(selectedItem.key);
|
|
14657
14662
|
}
|
|
14658
14663
|
},
|
|
@@ -14672,7 +14677,7 @@ var ScrollableTab = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
14672
14677
|
collapsable: false
|
|
14673
14678
|
}, isLazyScreen ? null : component);
|
|
14674
14679
|
})));
|
|
14675
|
-
}
|
|
14680
|
+
};
|
|
14676
14681
|
|
|
14677
14682
|
var getTabItem = function getTabItem(_ref) {
|
|
14678
14683
|
var item = _ref.item,
|
|
@@ -14833,7 +14838,7 @@ var StyledView = index$a(View)(function (_ref) {
|
|
|
14833
14838
|
backgroundColor: backgroundColor
|
|
14834
14839
|
};
|
|
14835
14840
|
});
|
|
14836
|
-
var StyledText = index$a(Text
|
|
14841
|
+
var StyledText = index$a(Typography.Text)(function (_ref3) {
|
|
14837
14842
|
var themeIntent = _ref3.themeIntent,
|
|
14838
14843
|
themeVariant = _ref3.themeVariant,
|
|
14839
14844
|
theme = _ref3.theme;
|
package/lib/index.js
CHANGED
|
@@ -1752,6 +1752,16 @@ var getAvatarTheme = function getAvatarTheme(theme) {
|
|
|
1752
1752
|
xxxxlarge: theme.space.xlarge * 1.5,
|
|
1753
1753
|
xxxxxlarge: theme.space.xxlarge * 1.5
|
|
1754
1754
|
};
|
|
1755
|
+
var lineHeights = {
|
|
1756
|
+
small: theme.lineHeights.large,
|
|
1757
|
+
medium: theme.lineHeights.xlarge,
|
|
1758
|
+
large: theme.lineHeights.xxlarge,
|
|
1759
|
+
xlarge: theme.lineHeights.xxxlarge,
|
|
1760
|
+
xxlarge: theme.lineHeights.medium * 2,
|
|
1761
|
+
xxxlarge: theme.lineHeights.large * 1.5,
|
|
1762
|
+
xxxxlarge: theme.lineHeights.xlarge * 1.5,
|
|
1763
|
+
xxxxxlarge: theme.lineHeights.xxlarge * 1.5
|
|
1764
|
+
};
|
|
1755
1765
|
var radii = {
|
|
1756
1766
|
rounded: theme.radii.rounded
|
|
1757
1767
|
};
|
|
@@ -1760,7 +1770,8 @@ var getAvatarTheme = function getAvatarTheme(theme) {
|
|
|
1760
1770
|
sizes: sizes,
|
|
1761
1771
|
radii: radii,
|
|
1762
1772
|
fonts: fonts,
|
|
1763
|
-
fontSizes: fontSizes
|
|
1773
|
+
fontSizes: fontSizes,
|
|
1774
|
+
lineHeights: lineHeights
|
|
1764
1775
|
};
|
|
1765
1776
|
};
|
|
1766
1777
|
|
|
@@ -1780,6 +1791,9 @@ var getBadgeTheme = function getBadgeTheme(theme) {
|
|
|
1780
1791
|
var fontSizes = {
|
|
1781
1792
|
"default": theme.fontSizes.small
|
|
1782
1793
|
};
|
|
1794
|
+
var lineHeights = {
|
|
1795
|
+
"default": theme.lineHeights.small
|
|
1796
|
+
};
|
|
1783
1797
|
var sizes = {
|
|
1784
1798
|
height: theme.fontSizes.small + theme.sizes.small,
|
|
1785
1799
|
minWidth: theme.fontSizes.small + theme.sizes.small,
|
|
@@ -1796,7 +1810,8 @@ var getBadgeTheme = function getBadgeTheme(theme) {
|
|
|
1796
1810
|
fonts: fonts,
|
|
1797
1811
|
fontSizes: fontSizes,
|
|
1798
1812
|
sizes: sizes,
|
|
1799
|
-
space: space
|
|
1813
|
+
space: space,
|
|
1814
|
+
lineHeights: lineHeights
|
|
1800
1815
|
};
|
|
1801
1816
|
};
|
|
1802
1817
|
|
|
@@ -2366,6 +2381,10 @@ var getPinInputTheme = function getPinInputTheme(theme) {
|
|
|
2366
2381
|
cellText: theme.fontSizes.xxxxlarge,
|
|
2367
2382
|
errorMessage: theme.fontSizes.small
|
|
2368
2383
|
};
|
|
2384
|
+
var lineHeights = {
|
|
2385
|
+
cellText: theme.lineHeights.xxxxlarge,
|
|
2386
|
+
errorMessage: theme.fontSizes.small
|
|
2387
|
+
};
|
|
2369
2388
|
var sizes = {
|
|
2370
2389
|
cellWidth: theme.sizes.xxlarge,
|
|
2371
2390
|
cellHeight: theme.sizes.xxxlarge,
|
|
@@ -2381,6 +2400,7 @@ var getPinInputTheme = function getPinInputTheme(theme) {
|
|
|
2381
2400
|
};
|
|
2382
2401
|
return {
|
|
2383
2402
|
borderWidths: borderWidths,
|
|
2403
|
+
lineHeights: lineHeights,
|
|
2384
2404
|
colors: colors,
|
|
2385
2405
|
fonts: fonts,
|
|
2386
2406
|
fontSizes: fontSizes,
|
|
@@ -5987,7 +6007,7 @@ var StyledText$3 = index$a(reactNative.Text)(function (_ref) {
|
|
|
5987
6007
|
});
|
|
5988
6008
|
});
|
|
5989
6009
|
|
|
5990
|
-
var _excluded$p = ["children", "fontSize", "fontWeight", "intent", "typeface"];
|
|
6010
|
+
var _excluded$p = ["children", "fontSize", "fontWeight", "intent", "typeface", "allowFontScaling"];
|
|
5991
6011
|
var Text = function Text(_ref) {
|
|
5992
6012
|
var children = _ref.children,
|
|
5993
6013
|
_ref$fontSize = _ref.fontSize,
|
|
@@ -5998,12 +6018,15 @@ var Text = function Text(_ref) {
|
|
|
5998
6018
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
5999
6019
|
_ref$typeface = _ref.typeface,
|
|
6000
6020
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
6021
|
+
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
6022
|
+
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
6001
6023
|
nativeProps = _objectWithoutProperties(_ref, _excluded$p);
|
|
6002
6024
|
return /*#__PURE__*/React__default["default"].createElement(StyledText$3, _extends$1({}, nativeProps, {
|
|
6003
6025
|
themeFontSize: fontSize,
|
|
6004
6026
|
themeFontWeight: fontWeight,
|
|
6005
6027
|
themeIntent: intent,
|
|
6006
|
-
themeTypeface: typeface
|
|
6028
|
+
themeTypeface: typeface,
|
|
6029
|
+
allowFontScaling: allowFontScaling
|
|
6007
6030
|
}), children);
|
|
6008
6031
|
};
|
|
6009
6032
|
|
|
@@ -6837,12 +6860,15 @@ var StyledTextWrapper$1 = index$a(reactNative.View)(function () {
|
|
|
6837
6860
|
height: '100%'
|
|
6838
6861
|
};
|
|
6839
6862
|
});
|
|
6840
|
-
var StyledText$2 = index$a(
|
|
6863
|
+
var StyledText$2 = index$a(Typography.Text)(function (_ref2) {
|
|
6841
6864
|
var themeSize = _ref2.themeSize,
|
|
6842
6865
|
theme = _ref2.theme;
|
|
6843
6866
|
return {
|
|
6844
6867
|
fontFamily: theme.__hd__.avatar.fonts["default"],
|
|
6845
6868
|
fontSize: theme.__hd__.avatar.fontSizes[themeSize],
|
|
6869
|
+
lineHeight: 0,
|
|
6870
|
+
textAlignVertical: 'center',
|
|
6871
|
+
textAlign: 'center',
|
|
6846
6872
|
color: theme.__hd__.avatar.colors.text,
|
|
6847
6873
|
overflow: 'hidden'
|
|
6848
6874
|
};
|
|
@@ -6991,11 +7017,12 @@ var StyledView$2 = index$a(reactNative.Animated.View)(function (_ref) {
|
|
|
6991
7017
|
paddingHorizontal: themePadding === 'wideContent' ? theme.__hd__.badge.space.horizontalPadding : undefined
|
|
6992
7018
|
};
|
|
6993
7019
|
});
|
|
6994
|
-
var StyledText$1 = index$a(
|
|
7020
|
+
var StyledText$1 = index$a(Typography.Text)(function (_ref2) {
|
|
6995
7021
|
var theme = _ref2.theme;
|
|
6996
7022
|
return {
|
|
6997
7023
|
fontFamily: theme.__hd__.badge.fonts["default"],
|
|
6998
7024
|
fontSize: theme.__hd__.badge.fontSizes["default"],
|
|
7025
|
+
lineHeight: theme.__hd__.badge.lineHeights["default"],
|
|
6999
7026
|
color: theme.__hd__.badge.colors.text,
|
|
7000
7027
|
includeFontPadding: false,
|
|
7001
7028
|
textAlignVertical: 'center',
|
|
@@ -11545,7 +11572,7 @@ var StyledErrorAndMaxLengthContainer = index$a(reactNative.View)(function () {
|
|
|
11545
11572
|
};
|
|
11546
11573
|
});
|
|
11547
11574
|
|
|
11548
|
-
var _excluded$a = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "helpText", "value", "defaultValue", "renderInputValue"];
|
|
11575
|
+
var _excluded$a = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "helpText", "value", "defaultValue", "renderInputValue", "allowFontScaling"];
|
|
11549
11576
|
var getVariant$1 = function getVariant(_ref) {
|
|
11550
11577
|
var disabled = _ref.disabled,
|
|
11551
11578
|
error = _ref.error,
|
|
@@ -11591,6 +11618,8 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
11591
11618
|
value = _ref2.value,
|
|
11592
11619
|
defaultValue = _ref2.defaultValue,
|
|
11593
11620
|
renderInputValue = _ref2.renderInputValue,
|
|
11621
|
+
_ref2$allowFontScalin = _ref2.allowFontScaling,
|
|
11622
|
+
allowFontScaling = _ref2$allowFontScalin === void 0 ? false : _ref2$allowFontScalin,
|
|
11594
11623
|
nativeProps = _objectWithoutProperties(_ref2, _excluded$a);
|
|
11595
11624
|
var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
11596
11625
|
var isEmptyValue = displayText.length === 0;
|
|
@@ -11679,7 +11708,8 @@ var TextInput = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
11679
11708
|
},
|
|
11680
11709
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
11681
11710
|
// @ts-ignore
|
|
11682
|
-
accessibilityLabelledBy: accessibilityLabelledBy
|
|
11711
|
+
accessibilityLabelledBy: accessibilityLabelledBy,
|
|
11712
|
+
allowFontScaling: allowFontScaling
|
|
11683
11713
|
}, nativeProps), {}, {
|
|
11684
11714
|
onFocus: function onFocus(event) {
|
|
11685
11715
|
var _nativeProps$onFocus;
|
|
@@ -12216,7 +12246,7 @@ var StyledWrapper$5 = index$a(reactNative.View)(function (_ref) {
|
|
|
12216
12246
|
padding: theme.__hd__.empty.space.wrapperPadding
|
|
12217
12247
|
};
|
|
12218
12248
|
});
|
|
12219
|
-
var StyledTitle = index$a(
|
|
12249
|
+
var StyledTitle = index$a(Typography.Text)(function (_ref2) {
|
|
12220
12250
|
var theme = _ref2.theme,
|
|
12221
12251
|
themeVariant = _ref2.themeVariant;
|
|
12222
12252
|
return {
|
|
@@ -12227,7 +12257,7 @@ var StyledTitle = index$a(reactNative.Text)(function (_ref2) {
|
|
|
12227
12257
|
color: themeVariant === 'dark' ? theme.__hd__.empty.colors.invertedText : theme.__hd__.empty.colors.text
|
|
12228
12258
|
};
|
|
12229
12259
|
});
|
|
12230
|
-
var StyledDescription = index$a(
|
|
12260
|
+
var StyledDescription = index$a(Typography.Text)(function (_ref3) {
|
|
12231
12261
|
var theme = _ref3.theme,
|
|
12232
12262
|
themeVariant = _ref3.themeVariant;
|
|
12233
12263
|
return {
|
|
@@ -12284,7 +12314,7 @@ var StyledFABIcon = index$a(Icon)(function (_ref2) {
|
|
|
12284
12314
|
textAlign: 'center'
|
|
12285
12315
|
};
|
|
12286
12316
|
});
|
|
12287
|
-
var StyledFABText = index$a(
|
|
12317
|
+
var StyledFABText = index$a(Typography.Text)(function (_ref3) {
|
|
12288
12318
|
var theme = _ref3.theme;
|
|
12289
12319
|
return {
|
|
12290
12320
|
fontFamily: theme.__hd__.fab.fonts.title,
|
|
@@ -12767,12 +12797,13 @@ var StyledCell = index$a(reactNative.View)(function (_ref) {
|
|
|
12767
12797
|
borderColor: theme.__hd__.pinInput.colors[themeState]
|
|
12768
12798
|
};
|
|
12769
12799
|
});
|
|
12770
|
-
var StyledCellText = index$a(
|
|
12800
|
+
var StyledCellText = index$a(Typography.Text)(function (_ref2) {
|
|
12771
12801
|
var theme = _ref2.theme,
|
|
12772
12802
|
themeState = _ref2.themeState;
|
|
12773
12803
|
return {
|
|
12774
12804
|
fontFamily: theme.__hd__.pinInput.fonts.cellText,
|
|
12775
12805
|
fontSize: theme.__hd__.pinInput.fontSizes.cellText,
|
|
12806
|
+
lineHeight: theme.__hd__.pinInput.lineHeights.cellText,
|
|
12776
12807
|
color: theme.__hd__.pinInput.colors[themeState]
|
|
12777
12808
|
};
|
|
12778
12809
|
});
|
|
@@ -12823,10 +12854,11 @@ var StyledErrorContainer = index$a(reactNative.View)(function (_ref7) {
|
|
|
12823
12854
|
var theme = _ref7.theme;
|
|
12824
12855
|
return {
|
|
12825
12856
|
flexDirection: 'row',
|
|
12826
|
-
paddingTop: theme.__hd__.pinInput.space.errorMessagePadding
|
|
12857
|
+
paddingTop: theme.__hd__.pinInput.space.errorMessagePadding,
|
|
12858
|
+
alignItems: 'center'
|
|
12827
12859
|
};
|
|
12828
12860
|
});
|
|
12829
|
-
var StyledErrorMessage = index$a(
|
|
12861
|
+
var StyledErrorMessage = index$a(Typography.Text)(function (_ref8) {
|
|
12830
12862
|
var theme = _ref8.theme;
|
|
12831
12863
|
return {
|
|
12832
12864
|
fontFamily: theme.__hd__.pinInput.fonts.errorMessage,
|
|
@@ -14525,9 +14557,8 @@ var getTabItem$1 = function getTabItem(_ref) {
|
|
|
14525
14557
|
color: color
|
|
14526
14558
|
});
|
|
14527
14559
|
};
|
|
14528
|
-
var ScrollableTab =
|
|
14529
|
-
var
|
|
14530
|
-
onTabPress = _ref2$onTabPress === void 0 ? noop : _ref2$onTabPress,
|
|
14560
|
+
var ScrollableTab = function ScrollableTab(_ref2) {
|
|
14561
|
+
var onTabPress = _ref2.onTabPress,
|
|
14531
14562
|
selectedTabKey = _ref2.selectedTabKey,
|
|
14532
14563
|
tabs = _ref2.tabs,
|
|
14533
14564
|
containerStyle = _ref2.containerStyle,
|
|
@@ -14549,46 +14580,20 @@ var ScrollableTab = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
14549
14580
|
var tabsAnims = useAnimatedValueArray(tabs.map(function (_, i) {
|
|
14550
14581
|
return i === selectedTabIndex ? 1 : 0;
|
|
14551
14582
|
}));
|
|
14552
|
-
React__default["default"].useImperativeHandle(ref, function () {
|
|
14553
|
-
return {
|
|
14554
|
-
selectTabKey: function selectTabKey(tabKey) {
|
|
14555
|
-
var index = tabs.findIndex(function (item) {
|
|
14556
|
-
return item.key === tabKey;
|
|
14557
|
-
});
|
|
14558
|
-
if (index !== -1) {
|
|
14559
|
-
var _flatListRef$current, _pagerViewRef$current;
|
|
14560
|
-
(_flatListRef$current = flatListRef.current) === null || _flatListRef$current === void 0 ? void 0 : _flatListRef$current.scrollToIndex({
|
|
14561
|
-
index: index,
|
|
14562
|
-
viewPosition: 0.5
|
|
14563
|
-
});
|
|
14564
|
-
(_pagerViewRef$current = pagerViewRef.current) === null || _pagerViewRef$current === void 0 ? void 0 : _pagerViewRef$current.setPage(index);
|
|
14565
|
-
if (onTabPress) {
|
|
14566
|
-
onTabPress(tabKey);
|
|
14567
|
-
}
|
|
14568
|
-
}
|
|
14569
|
-
},
|
|
14570
|
-
getFlatListRef: function getFlatListRef() {
|
|
14571
|
-
return flatListRef.current;
|
|
14572
|
-
},
|
|
14573
|
-
getPagerViewRef: function getPagerViewRef() {
|
|
14574
|
-
return pagerViewRef.current;
|
|
14575
|
-
}
|
|
14576
|
-
};
|
|
14577
|
-
}, [pagerViewRef, flatListRef, tabs]);
|
|
14578
14583
|
React__default["default"].useEffect(function () {
|
|
14579
14584
|
var timeoutHandle = null;
|
|
14580
14585
|
if (selectedTabIndex !== -1) {
|
|
14581
|
-
var _flatListRef$
|
|
14582
|
-
(_flatListRef$
|
|
14586
|
+
var _flatListRef$current;
|
|
14587
|
+
(_flatListRef$current = flatListRef.current) === null || _flatListRef$current === void 0 ? void 0 : _flatListRef$current.scrollToIndex({
|
|
14583
14588
|
index: selectedTabIndex,
|
|
14584
14589
|
viewPosition: 0.5
|
|
14585
14590
|
});
|
|
14586
14591
|
// If the selected tab is changed too quickly, the setPage is crashed and not work anymore
|
|
14587
14592
|
// We apply throttle to prevent this issue https://github.com/Thinkei/hero-design/issues/1715
|
|
14588
14593
|
timeoutHandle = setTimeout(function () {
|
|
14589
|
-
var _pagerViewRef$
|
|
14594
|
+
var _pagerViewRef$current;
|
|
14590
14595
|
// use no animation to prevent unexpected behavior if users select tab too quickly
|
|
14591
|
-
(_pagerViewRef$
|
|
14596
|
+
(_pagerViewRef$current = pagerViewRef.current) === null || _pagerViewRef$current === void 0 ? void 0 : _pagerViewRef$current.setPageWithoutAnimation(selectedTabIndex);
|
|
14592
14597
|
}, 200);
|
|
14593
14598
|
}
|
|
14594
14599
|
var animation = reactNative.Animated.parallel(_toConsumableArray(tabs.map(function (_, i) {
|
|
@@ -14605,7 +14610,7 @@ var ScrollableTab = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
14605
14610
|
clearTimeout(timeoutHandle);
|
|
14606
14611
|
}
|
|
14607
14612
|
};
|
|
14608
|
-
}, [selectedTabIndex,
|
|
14613
|
+
}, [selectedTabIndex, pagerViewRef]);
|
|
14609
14614
|
return /*#__PURE__*/React__default["default"].createElement(TabContainer, {
|
|
14610
14615
|
style: containerStyle,
|
|
14611
14616
|
testID: componentTestID
|
|
@@ -14624,8 +14629,8 @@ var ScrollableTab = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
14624
14629
|
onScrollToIndexFailed: function onScrollToIndexFailed(_ref3) {
|
|
14625
14630
|
var index = _ref3.index;
|
|
14626
14631
|
setTimeout(function () {
|
|
14627
|
-
var _flatListRef$
|
|
14628
|
-
return (_flatListRef$
|
|
14632
|
+
var _flatListRef$current2;
|
|
14633
|
+
return (_flatListRef$current2 = flatListRef.current) === null || _flatListRef$current2 === void 0 ? void 0 : _flatListRef$current2.scrollToIndex({
|
|
14629
14634
|
index: index,
|
|
14630
14635
|
viewPosition: 0.5
|
|
14631
14636
|
});
|
|
@@ -14681,7 +14686,7 @@ var ScrollableTab = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
14681
14686
|
onPageSelected: function onPageSelected(e) {
|
|
14682
14687
|
var index = e.nativeEvent.position;
|
|
14683
14688
|
var selectedItem = tabs[index];
|
|
14684
|
-
if (selectedItem
|
|
14689
|
+
if (selectedItem) {
|
|
14685
14690
|
onTabPress(selectedItem.key);
|
|
14686
14691
|
}
|
|
14687
14692
|
},
|
|
@@ -14701,7 +14706,7 @@ var ScrollableTab = /*#__PURE__*/React.forwardRef(function (_ref2, ref) {
|
|
|
14701
14706
|
collapsable: false
|
|
14702
14707
|
}, isLazyScreen ? null : component);
|
|
14703
14708
|
})));
|
|
14704
|
-
}
|
|
14709
|
+
};
|
|
14705
14710
|
|
|
14706
14711
|
var getTabItem = function getTabItem(_ref) {
|
|
14707
14712
|
var item = _ref.item,
|
|
@@ -14862,7 +14867,7 @@ var StyledView = index$a(reactNative.View)(function (_ref) {
|
|
|
14862
14867
|
backgroundColor: backgroundColor
|
|
14863
14868
|
};
|
|
14864
14869
|
});
|
|
14865
|
-
var StyledText = index$a(
|
|
14870
|
+
var StyledText = index$a(Typography.Text)(function (_ref3) {
|
|
14866
14871
|
var themeIntent = _ref3.themeIntent,
|
|
14867
14872
|
themeVariant = _ref3.themeVariant,
|
|
14868
14873
|
theme = _ref3.theme;
|