@hero-design/rn 8.12.4 → 8.12.5-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 +149 -0
- package/.turbo/turbo-publish:npm.log +9 -0
- package/es/index.js +53 -58
- package/lib/index.js +53 -58
- package/package.json +5 -5
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +0 -8
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +0 -12
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +0 -13
- package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +4 -21
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +36 -189
- package/src/components/Avatar/StyledAvatar.tsx +4 -11
- package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +4 -21
- package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +8 -42
- package/src/components/Badge/StyledBadge.tsx +2 -4
- package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +42 -132
- package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +0 -1
- package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +0 -4
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
- package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
- package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +0 -10
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +0 -10
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +0 -5
- package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +0 -6
- package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +0 -2
- package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +0 -16
- package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +0 -4
- package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +0 -1
- package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +0 -2
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +0 -2
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +0 -4
- package/src/components/Empty/StyledEmpty.tsx +13 -14
- package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +20 -76
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +16 -56
- package/src/components/FAB/StyledFAB.tsx +2 -3
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +0 -1
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +8 -22
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +0 -4
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +8 -53
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +0 -4
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +0 -4
- package/src/components/PinInput/StyledPinInput.tsx +3 -6
- package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +18 -93
- package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +13 -73
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +0 -3
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +0 -2
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +0 -3
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +0 -4
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +1 -23
- package/src/components/SectionHeading/__tests__/index.spec.tsx +2 -2
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +0 -1
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +0 -20
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +0 -38
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +0 -1
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +0 -20
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +0 -35
- package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +0 -3
- package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +0 -1
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +0 -1
- package/src/components/Tabs/ScrollableTabs.tsx +208 -167
- package/src/components/Tabs/__tests__/ScrollableTabs.spec.tsx +58 -11
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +7 -24
- package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +7 -22
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +7 -27
- package/src/components/Tag/StyledTag.tsx +2 -3
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +62 -167
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +0 -22
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +0 -51
- package/src/components/TextInput/index.tsx +0 -2
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +0 -5
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +0 -7
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +0 -13
- package/src/components/Typography/Text/index.tsx +0 -2
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +0 -17
- package/src/theme/components/avatar.ts +1 -11
- package/src/theme/components/badge.ts +1 -5
- package/src/theme/components/pinInput.ts +1 -14
- package/src/types.ts +2 -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 +5 -4
- 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 +5 -3
- 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 +9 -5
- 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 +5 -3
- package/types/components/FAB/index.d.ts +0 -0
- package/types/components/Icon/AnimatedIcon.d.ts +0 -0
- package/types/components/Icon/HeroIcon/index.d.ts +0 -0
- package/types/components/Icon/IconList.d.ts +0 -0
- package/types/components/Icon/index.d.ts +0 -0
- package/types/components/Icon/utils.d.ts +0 -0
- package/types/components/Image/index.d.ts +0 -0
- package/types/components/List/BasicListItem.d.ts +0 -0
- package/types/components/List/ListItem.d.ts +0 -0
- package/types/components/List/StyledBasicListItem.d.ts +0 -0
- package/types/components/List/StyledListItem.d.ts +0 -0
- package/types/components/List/index.d.ts +0 -0
- package/types/components/PageControl/StyledPageControl.d.ts +0 -0
- package/types/components/PageControl/index.d.ts +0 -0
- package/types/components/PinInput/PinCell.d.ts +0 -0
- package/types/components/PinInput/StyledPinInput.d.ts +9 -5
- 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 +8 -1
- 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 +2 -1
- package/types/components/Tabs/utils.d.ts +0 -0
- package/types/components/Tag/StyledTag.d.ts +5 -3
- 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 +0 -10
- package/types/theme/components/badge.d.ts +0 -3
- 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 +0 -4
- 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 +2 -1
- 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.log
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
[
|
|
2
|
-
[
|
|
3
|
-
[
|
|
4
|
-
[
|
|
5
|
-
[
|
|
6
|
-
[
|
|
7
|
-
[
|
|
8
|
-
[
|
|
9
|
-
[
|
|
1
|
+
[34m@hero-design/rn:build[0m: cache hit, replaying output [2mf482b851404033d4[0m
|
|
2
|
+
[34m@hero-design/rn:build: [0m$ yarn build:js && yarn build:types
|
|
3
|
+
[34m@hero-design/rn:build: [0m$ rollup -c
|
|
4
|
+
[34m@hero-design/rn:build: [0m[36m
|
|
5
|
+
[34m@hero-design/rn:build: [0m[1msrc/index.ts[22m → [1mlib/index.js, es/index.js[22m...[39m
|
|
6
|
+
[34m@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
|
+
[34m@hero-design/rn:build: [0m[1m[33m(!) Plugin node-resolve: preferring built-in module 'events' over local alternative at '/Volumes/Data/Projects/hero-design/node_modules/events/events.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning[39m[22m
|
|
8
|
+
[34m@hero-design/rn:build: [0m[32mcreated [1mlib/index.js, es/index.js[22m in [1m30s[22m[39m
|
|
9
|
+
[34m@hero-design/rn:build: [0m$ tsc --noEmit false --emitDeclarationOnly --project tsconfig.prod.json
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
[34m@hero-design/rn:lint[0m: cache hit, replaying output [2m6363842493954154[0m
|
|
2
|
+
[34m@hero-design/rn:lint: [0m$ eslint src --ext .js,.jsx,.ts,.tsx --ignore-path ../../.gitignore
|
|
3
|
+
[34m@hero-design/rn:lint: [0m
|
|
4
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/BottomSheet/ScrollView.tsx
|
|
5
|
+
[34m@hero-design/rn:lint: [0m 25:5 warning React Hook useCallback has missing dependencies: 'props' and 'setInternalShowDivider'. Either include them or remove the dependency array. However, 'props' will change when *any* prop changes, so the preferred fix is to destructure the 'props' object outside of the useCallback call and refer to those specific props inside useCallback react-hooks/exhaustive-deps
|
|
6
|
+
[34m@hero-design/rn:lint: [0m 34:5 warning React Hook useCallback has missing dependencies: 'props' and 'setInternalShowDivider'. Either include them or remove the dependency array. However, 'props' will change when *any* prop changes, so the preferred fix is to destructure the 'props' object outside of the useCallback call and refer to those specific props inside useCallback react-hooks/exhaustive-deps
|
|
7
|
+
[34m@hero-design/rn:lint: [0m 43:5 warning React Hook useCallback has missing dependencies: 'props' and 'setInternalShowDivider'. Either include them or remove the dependency array. However, 'props' will change when *any* prop changes, so the preferred fix is to destructure the 'props' object outside of the useCallback call and refer to those specific props inside useCallback react-hooks/exhaustive-deps
|
|
8
|
+
[34m@hero-design/rn:lint: [0m
|
|
9
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/BottomSheet/index.tsx
|
|
10
|
+
[34m@hero-design/rn:lint: [0m 123:32 warning The ref value 'animatedValue.current' will likely have changed by the time this effect cleanup function runs. If this ref points to a node rendered by React, copy 'animatedValue.current' to a variable inside the effect, and use that variable in the cleanup function react-hooks/exhaustive-deps
|
|
11
|
+
[34m@hero-design/rn:lint: [0m 124:6 warning React Hook useEffect has missing dependencies: 'onDismiss' and 'visible'. Either include them or remove the dependency array. If 'onDismiss' changes too often, find the parent component that defines it and wrap that definition in useCallback react-hooks/exhaustive-deps
|
|
12
|
+
[34m@hero-design/rn:lint: [0m 137:6 warning React Hook useEffect has a missing dependency: 'onAnimationEnd'. Either include it or remove the dependency array react-hooks/exhaustive-deps
|
|
13
|
+
[34m@hero-design/rn:lint: [0m
|
|
14
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/Button/LoadingIndicator/index.tsx
|
|
15
|
+
[34m@hero-design/rn:lint: [0m 118:36 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
16
|
+
[34m@hero-design/rn:lint: [0m
|
|
17
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/Carousel/CardCarousel.tsx
|
|
18
|
+
[34m@hero-design/rn:lint: [0m 105:7 warning React Hook useCallback has a missing dependency: 'items.length'. Either include it or remove the dependency array react-hooks/exhaustive-deps
|
|
19
|
+
[34m@hero-design/rn:lint: [0m 121:8 warning React Hook useCallback has an unnecessary dependency: 'itemWidth'. Either exclude it or remove the dependency array react-hooks/exhaustive-deps
|
|
20
|
+
[34m@hero-design/rn:lint: [0m
|
|
21
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/Carousel/__tests__/CardCarousel.spec.tsx
|
|
22
|
+
[34m@hero-design/rn:lint: [0m 47:27 warning Forbidden non-null assertion @typescript-eslint/no-non-null-assertion
|
|
23
|
+
[34m@hero-design/rn:lint: [0m 47:27 warning Forbidden non-null assertion @typescript-eslint/no-non-null-assertion
|
|
24
|
+
[34m@hero-design/rn:lint: [0m 93:27 warning Forbidden non-null assertion @typescript-eslint/no-non-null-assertion
|
|
25
|
+
[34m@hero-design/rn:lint: [0m 93:27 warning Forbidden non-null assertion @typescript-eslint/no-non-null-assertion
|
|
26
|
+
[34m@hero-design/rn:lint: [0m
|
|
27
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/Carousel/index.tsx
|
|
28
|
+
[34m@hero-design/rn:lint: [0m 108:6 warning React Hook useEffect has missing dependencies: 'scrollX' and 'width'. Either include them or remove the dependency array react-hooks/exhaustive-deps
|
|
29
|
+
[34m@hero-design/rn:lint: [0m 114:6 warning React Hook useCallback has a missing dependency: 'internalOnItemIndexChange'. Either include it or remove the dependency array react-hooks/exhaustive-deps
|
|
30
|
+
[34m@hero-design/rn:lint: [0m
|
|
31
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/Collapse/index.tsx
|
|
32
|
+
[34m@hero-design/rn:lint: [0m 48:6 warning React Hook useEffect has a missing dependency: 'collapseAnim'. Either include it or remove the dependency array react-hooks/exhaustive-deps
|
|
33
|
+
[34m@hero-design/rn:lint: [0m
|
|
34
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/DatePicker/DatePickerAndroid.tsx
|
|
35
|
+
[34m@hero-design/rn:lint: [0m 53:25 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
36
|
+
[34m@hero-design/rn:lint: [0m
|
|
37
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/DatePicker/DatePickerIOS.tsx
|
|
38
|
+
[34m@hero-design/rn:lint: [0m 75:27 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
39
|
+
[34m@hero-design/rn:lint: [0m
|
|
40
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/Drawer/DragableDrawer/index.tsx
|
|
41
|
+
[34m@hero-design/rn:lint: [0m 78:6 warning React Hook useEffect has a missing dependency: 'pan'. Either include it or remove the dependency array react-hooks/exhaustive-deps
|
|
42
|
+
[34m@hero-design/rn:lint: [0m 88:6 warning React Hook useEffect has missing dependencies: 'initialHeightPercentage' and 'minimumHeightPercentage'. Either include them or remove the dependency array react-hooks/exhaustive-deps
|
|
43
|
+
[34m@hero-design/rn:lint: [0m 104:6 warning React Hook useEffect has missing dependencies: 'pan' and 'snapPoints'. Either include them or remove the dependency array react-hooks/exhaustive-deps
|
|
44
|
+
[34m@hero-design/rn:lint: [0m 127:6 warning React Hook useEffect has missing dependencies: 'height', 'minimumHeightPercentage', 'onCollapsed', 'onExpanded', and 'pan'. Either include them or remove the dependency array. If 'onExpanded' changes too often, find the parent component that defines it and wrap that definition in useCallback react-hooks/exhaustive-deps
|
|
45
|
+
[34m@hero-design/rn:lint: [0m
|
|
46
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/Drawer/index.tsx
|
|
47
|
+
[34m@hero-design/rn:lint: [0m 69:6 warning React Hook useEffect has a missing dependency: 'animatedValue'. Either include it or remove the dependency array react-hooks/exhaustive-deps
|
|
48
|
+
[34m@hero-design/rn:lint: [0m
|
|
49
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/Icon/utils.ts
|
|
50
|
+
[34m@hero-design/rn:lint: [0m 3:24 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
51
|
+
[34m@hero-design/rn:lint: [0m
|
|
52
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/PageControl/index.tsx
|
|
53
|
+
[34m@hero-design/rn:lint: [0m 40:6 warning React Hook React.useEffect has a missing dependency: 'animatedValue'. Either include it or remove the dependency array react-hooks/exhaustive-deps
|
|
54
|
+
[34m@hero-design/rn:lint: [0m
|
|
55
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/PinInput/index.tsx
|
|
56
|
+
[34m@hero-design/rn:lint: [0m 114:6 warning React Hook useCallback has missing dependencies: 'length', 'onChangeText', and 'onFulfill'. Either include them or remove the dependency array. If 'onChangeText' changes too often, find the parent component that defines it and wrap that definition in useCallback react-hooks/exhaustive-deps
|
|
57
|
+
[34m@hero-design/rn:lint: [0m 121:6 warning React Hook useEffect has missing dependencies: 'autoFocus' and 'focus'. Either include them or remove the dependency array react-hooks/exhaustive-deps
|
|
58
|
+
[34m@hero-design/rn:lint: [0m
|
|
59
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/RichTextEditor/EditorToolbar.tsx
|
|
60
|
+
[34m@hero-design/rn:lint: [0m 147:6 warning React Hook useEffect has a missing dependency: 'normalizeEventName'. Either include it or remove the dependency array react-hooks/exhaustive-deps
|
|
61
|
+
[34m@hero-design/rn:lint: [0m 208:5 warning React Hook useMemo has missing dependencies: 'normalizeEventName' and 'toggleToolbarButton'. Either include them or remove the dependency array react-hooks/exhaustive-deps
|
|
62
|
+
[34m@hero-design/rn:lint: [0m
|
|
63
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/RichTextEditor/MentionList.tsx
|
|
64
|
+
[34m@hero-design/rn:lint: [0m 63:6 warning React Hook useEffect has a missing dependency: 'normalizeEventName'. Either include it or remove the dependency array react-hooks/exhaustive-deps
|
|
65
|
+
[34m@hero-design/rn:lint: [0m
|
|
66
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/RichTextEditor/RichTextEditor.tsx
|
|
67
|
+
[34m@hero-design/rn:lint: [0m 50:13 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
68
|
+
[34m@hero-design/rn:lint: [0m 145:6 warning React Hook useMemo has an unnecessary dependency: 'isFocused'. Either exclude it or remove the dependency array react-hooks/exhaustive-deps
|
|
69
|
+
[34m@hero-design/rn:lint: [0m 171:6 warning React Hook useEffect has a missing dependency: 'normalizeEventName'. Either include it or remove the dependency array react-hooks/exhaustive-deps
|
|
70
|
+
[34m@hero-design/rn:lint: [0m 207:6 warning React Hook useMemo has missing dependencies: 'autoFocus', 'placeholder', 'theme.__hd__.richTextEditor.colors.text', 'theme.__hd__.richTextEditor.fontSizes.editor', and 'value'. Either include them or remove the dependency array react-hooks/exhaustive-deps
|
|
71
|
+
[34m@hero-design/rn:lint: [0m 244:6 warning React Hook useEffect has a missing dependency: 'normalizeEventName'. Either include it or remove the dependency array react-hooks/exhaustive-deps
|
|
72
|
+
[34m@hero-design/rn:lint: [0m 246:61 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
73
|
+
[34m@hero-design/rn:lint: [0m 306:5 warning React Hook useCallback has missing dependencies: 'handleEditorLayoutEvent', 'normalizeEventName', 'onChange', and 'onCursorChange'. Either include them or remove the dependency array. If 'onCursorChange' changes too often, find the parent component that defines it and wrap that definition in useCallback react-hooks/exhaustive-deps
|
|
74
|
+
[34m@hero-design/rn:lint: [0m
|
|
75
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/RichTextEditor/__tests__/MentionList.spec.tsx
|
|
76
|
+
[34m@hero-design/rn:lint: [0m 93:20 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
77
|
+
[34m@hero-design/rn:lint: [0m
|
|
78
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/RichTextEditor/hero-editor.d.ts
|
|
79
|
+
[34m@hero-design/rn:lint: [0m 7:43 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
80
|
+
[34m@hero-design/rn:lint: [0m
|
|
81
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/RichTextEditor/utils/rnWebView.ts
|
|
82
|
+
[34m@hero-design/rn:lint: [0m 11:9 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
83
|
+
[34m@hero-design/rn:lint: [0m
|
|
84
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/Select/MultiSelect/index.tsx
|
|
85
|
+
[34m@hero-design/rn:lint: [0m 86:6 warning React Hook useEffect has a missing dependency: 'value'. Either include it or remove the dependency array. If 'setSelectingValue' needs the current value of 'value', you can also switch to useReducer instead of useState and read 'value' in the reducer react-hooks/exhaustive-deps
|
|
86
|
+
[34m@hero-design/rn:lint: [0m
|
|
87
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/Switch/index.tsx
|
|
88
|
+
[34m@hero-design/rn:lint: [0m 70:6 warning React Hook useEffect has missing dependencies: 'animatedOffset' and 'offset'. Either include them or remove the dependency array react-hooks/exhaustive-deps
|
|
89
|
+
[34m@hero-design/rn:lint: [0m
|
|
90
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/Tabs/ScrollableTabs.tsx
|
|
91
|
+
[34m@hero-design/rn:lint: [0m 117:7 warning React Hook React.useImperativeHandle has a missing dependency: 'onTabPress'. Either include it or remove the dependency array. If 'onTabPress' changes too often, find the parent component that defines it and wrap that definition in useCallback react-hooks/exhaustive-deps
|
|
92
|
+
[34m@hero-design/rn:lint: [0m 152:8 warning React Hook React.useEffect has missing dependencies: 'tabs' and 'tabsAnims'. Either include them or remove the dependency array react-hooks/exhaustive-deps
|
|
93
|
+
[34m@hero-design/rn:lint: [0m
|
|
94
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/Tabs/__tests__/ScrollableTabs.spec.tsx
|
|
95
|
+
[34m@hero-design/rn:lint: [0m 140:27 warning Forbidden non-null assertion @typescript-eslint/no-non-null-assertion
|
|
96
|
+
[34m@hero-design/rn:lint: [0m 140:27 warning Forbidden non-null assertion @typescript-eslint/no-non-null-assertion
|
|
97
|
+
[34m@hero-design/rn:lint: [0m 141:28 warning Forbidden non-null assertion @typescript-eslint/no-non-null-assertion
|
|
98
|
+
[34m@hero-design/rn:lint: [0m 141:28 warning Forbidden non-null assertion @typescript-eslint/no-non-null-assertion
|
|
99
|
+
[34m@hero-design/rn:lint: [0m
|
|
100
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/TextInput/StyledTextInput.tsx
|
|
101
|
+
[34m@hero-design/rn:lint: [0m 33:62 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
102
|
+
[34m@hero-design/rn:lint: [0m
|
|
103
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/TextInput/__tests__/index.spec.tsx
|
|
104
|
+
[34m@hero-design/rn:lint: [0m 436:34 warning Forbidden non-null assertion @typescript-eslint/no-non-null-assertion
|
|
105
|
+
[34m@hero-design/rn:lint: [0m
|
|
106
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/TimePicker/TimePickerAndroid.tsx
|
|
107
|
+
[34m@hero-design/rn:lint: [0m 51:25 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
108
|
+
[34m@hero-design/rn:lint: [0m
|
|
109
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/TimePicker/TimePickerIOS.tsx
|
|
110
|
+
[34m@hero-design/rn:lint: [0m 76:27 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
111
|
+
[34m@hero-design/rn:lint: [0m
|
|
112
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/Toast/Toast.tsx
|
|
113
|
+
[34m@hero-design/rn:lint: [0m 69:6 warning React Hook useEffect has missing dependencies: 'autoDismiss', 'duration', and 'onDismiss'. Either include them or remove the dependency array. If 'onDismiss' changes too often, find the parent component that defines it and wrap that definition in useCallback react-hooks/exhaustive-deps
|
|
114
|
+
[34m@hero-design/rn:lint: [0m 80:6 warning React Hook useEffect has a missing dependency: 'animatedValue'. Either include it or remove the dependency array react-hooks/exhaustive-deps
|
|
115
|
+
[34m@hero-design/rn:lint: [0m
|
|
116
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/Toast/__tests__/index.spec.tsx
|
|
117
|
+
[34m@hero-design/rn:lint: [0m 19:10 warning React Hook useEffect has a missing dependency: 'toast'. Either include it or remove the dependency array react-hooks/exhaustive-deps
|
|
118
|
+
[34m@hero-design/rn:lint: [0m 82:10 warning React Hook useEffect has a missing dependency: 'toast'. Either include it or remove the dependency array react-hooks/exhaustive-deps
|
|
119
|
+
[34m@hero-design/rn:lint: [0m
|
|
120
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/theme/components/progress.ts
|
|
121
|
+
[34m@hero-design/rn:lint: [0m 1:10 warning Importing "mixColor" from "@hero-design/colors" is not recommended. Please use colors from useTheme hook instead @hero-design/not-recommended-import
|
|
122
|
+
[34m@hero-design/rn:lint: [0m
|
|
123
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/theme/global/colors/eBens.ts
|
|
124
|
+
[34m@hero-design/rn:lint: [0m 1:10 warning Importing "eBensPalette" from "@hero-design/colors" is not recommended. Please use colors from useTheme hook instead @hero-design/not-recommended-import
|
|
125
|
+
[34m@hero-design/rn:lint: [0m
|
|
126
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/theme/global/colors/global.ts
|
|
127
|
+
[34m@hero-design/rn:lint: [0m 1:10 warning Importing "defaultMobilePalette" from "@hero-design/colors" is not recommended. Please use colors from useTheme hook instead @hero-design/not-recommended-import
|
|
128
|
+
[34m@hero-design/rn:lint: [0m
|
|
129
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/theme/global/colors/jobs.ts
|
|
130
|
+
[34m@hero-design/rn:lint: [0m 1:10 warning Importing "jobsPalette" from "@hero-design/colors" is not recommended. Please use colors from useTheme hook instead @hero-design/not-recommended-import
|
|
131
|
+
[34m@hero-design/rn:lint: [0m
|
|
132
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/theme/global/colors/swag.ts
|
|
133
|
+
[34m@hero-design/rn:lint: [0m 1:10 warning Importing "swagPalette" from "@hero-design/colors" is not recommended. Please use colors from useTheme hook instead @hero-design/not-recommended-import
|
|
134
|
+
[34m@hero-design/rn:lint: [0m
|
|
135
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/theme/global/colors/wallet.ts
|
|
136
|
+
[34m@hero-design/rn:lint: [0m 1:10 warning Importing "walletPalette" from "@hero-design/colors" is not recommended. Please use colors from useTheme hook instead @hero-design/not-recommended-import
|
|
137
|
+
[34m@hero-design/rn:lint: [0m
|
|
138
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/theme/global/colors/work.ts
|
|
139
|
+
[34m@hero-design/rn:lint: [0m 1:10 warning Importing "workPalette" from "@hero-design/colors" is not recommended. Please use colors from useTheme hook instead @hero-design/not-recommended-import
|
|
140
|
+
[34m@hero-design/rn:lint: [0m
|
|
141
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/utils/__tests__/helpers.spec.ts
|
|
142
|
+
[34m@hero-design/rn:lint: [0m 15:18 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
143
|
+
[34m@hero-design/rn:lint: [0m 37:18 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
144
|
+
[34m@hero-design/rn:lint: [0m
|
|
145
|
+
[34m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/utils/hooks.ts
|
|
146
|
+
[34m@hero-design/rn:lint: [0m 26:7 warning Unexpected console statement no-console
|
|
147
|
+
[34m@hero-design/rn:lint: [0m
|
|
148
|
+
[34m@hero-design/rn:lint: [0m✖ 66 problems (0 errors, 66 warnings)
|
|
149
|
+
[34m@hero-design/rn:lint: [0m
|
|
@@ -0,0 +1,9 @@
|
|
|
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,16 +1723,6 @@ 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
|
-
};
|
|
1736
1726
|
var radii = {
|
|
1737
1727
|
rounded: theme.radii.rounded
|
|
1738
1728
|
};
|
|
@@ -1741,8 +1731,7 @@ var getAvatarTheme = function getAvatarTheme(theme) {
|
|
|
1741
1731
|
sizes: sizes,
|
|
1742
1732
|
radii: radii,
|
|
1743
1733
|
fonts: fonts,
|
|
1744
|
-
fontSizes: fontSizes
|
|
1745
|
-
lineHeights: lineHeights
|
|
1734
|
+
fontSizes: fontSizes
|
|
1746
1735
|
};
|
|
1747
1736
|
};
|
|
1748
1737
|
|
|
@@ -1762,9 +1751,6 @@ var getBadgeTheme = function getBadgeTheme(theme) {
|
|
|
1762
1751
|
var fontSizes = {
|
|
1763
1752
|
"default": theme.fontSizes.small
|
|
1764
1753
|
};
|
|
1765
|
-
var lineHeights = {
|
|
1766
|
-
"default": theme.lineHeights.small
|
|
1767
|
-
};
|
|
1768
1754
|
var sizes = {
|
|
1769
1755
|
height: theme.fontSizes.small + theme.sizes.small,
|
|
1770
1756
|
minWidth: theme.fontSizes.small + theme.sizes.small,
|
|
@@ -1781,8 +1767,7 @@ var getBadgeTheme = function getBadgeTheme(theme) {
|
|
|
1781
1767
|
fonts: fonts,
|
|
1782
1768
|
fontSizes: fontSizes,
|
|
1783
1769
|
sizes: sizes,
|
|
1784
|
-
space: space
|
|
1785
|
-
lineHeights: lineHeights
|
|
1770
|
+
space: space
|
|
1786
1771
|
};
|
|
1787
1772
|
};
|
|
1788
1773
|
|
|
@@ -2352,10 +2337,6 @@ var getPinInputTheme = function getPinInputTheme(theme) {
|
|
|
2352
2337
|
cellText: theme.fontSizes.xxxxlarge,
|
|
2353
2338
|
errorMessage: theme.fontSizes.small
|
|
2354
2339
|
};
|
|
2355
|
-
var lineHeights = {
|
|
2356
|
-
cellText: theme.lineHeights.xxxxlarge,
|
|
2357
|
-
errorMessage: theme.fontSizes.small
|
|
2358
|
-
};
|
|
2359
2340
|
var sizes = {
|
|
2360
2341
|
cellWidth: theme.sizes.xxlarge,
|
|
2361
2342
|
cellHeight: theme.sizes.xxxlarge,
|
|
@@ -2371,7 +2352,6 @@ var getPinInputTheme = function getPinInputTheme(theme) {
|
|
|
2371
2352
|
};
|
|
2372
2353
|
return {
|
|
2373
2354
|
borderWidths: borderWidths,
|
|
2374
|
-
lineHeights: lineHeights,
|
|
2375
2355
|
colors: colors,
|
|
2376
2356
|
fonts: fonts,
|
|
2377
2357
|
fontSizes: fontSizes,
|
|
@@ -5978,7 +5958,7 @@ var StyledText$3 = index$a(Text$1)(function (_ref) {
|
|
|
5978
5958
|
});
|
|
5979
5959
|
});
|
|
5980
5960
|
|
|
5981
|
-
var _excluded$p = ["children", "fontSize", "fontWeight", "intent", "typeface"
|
|
5961
|
+
var _excluded$p = ["children", "fontSize", "fontWeight", "intent", "typeface"];
|
|
5982
5962
|
var Text = function Text(_ref) {
|
|
5983
5963
|
var children = _ref.children,
|
|
5984
5964
|
_ref$fontSize = _ref.fontSize,
|
|
@@ -5989,15 +5969,12 @@ var Text = function Text(_ref) {
|
|
|
5989
5969
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
5990
5970
|
_ref$typeface = _ref.typeface,
|
|
5991
5971
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
5992
|
-
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
5993
|
-
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
5994
5972
|
nativeProps = _objectWithoutProperties(_ref, _excluded$p);
|
|
5995
5973
|
return /*#__PURE__*/React.createElement(StyledText$3, _extends$1({}, nativeProps, {
|
|
5996
5974
|
themeFontSize: fontSize,
|
|
5997
5975
|
themeFontWeight: fontWeight,
|
|
5998
5976
|
themeIntent: intent,
|
|
5999
|
-
themeTypeface: typeface
|
|
6000
|
-
allowFontScaling: allowFontScaling
|
|
5977
|
+
themeTypeface: typeface
|
|
6001
5978
|
}), children);
|
|
6002
5979
|
};
|
|
6003
5980
|
|
|
@@ -6831,15 +6808,12 @@ var StyledTextWrapper$1 = index$a(View)(function () {
|
|
|
6831
6808
|
height: '100%'
|
|
6832
6809
|
};
|
|
6833
6810
|
});
|
|
6834
|
-
var StyledText$2 = index$a(
|
|
6811
|
+
var StyledText$2 = index$a(Text$1)(function (_ref2) {
|
|
6835
6812
|
var themeSize = _ref2.themeSize,
|
|
6836
6813
|
theme = _ref2.theme;
|
|
6837
6814
|
return {
|
|
6838
6815
|
fontFamily: theme.__hd__.avatar.fonts["default"],
|
|
6839
6816
|
fontSize: theme.__hd__.avatar.fontSizes[themeSize],
|
|
6840
|
-
lineHeight: 0,
|
|
6841
|
-
textAlignVertical: 'center',
|
|
6842
|
-
textAlign: 'center',
|
|
6843
6817
|
color: theme.__hd__.avatar.colors.text,
|
|
6844
6818
|
overflow: 'hidden'
|
|
6845
6819
|
};
|
|
@@ -6988,12 +6962,11 @@ var StyledView$2 = index$a(Animated.View)(function (_ref) {
|
|
|
6988
6962
|
paddingHorizontal: themePadding === 'wideContent' ? theme.__hd__.badge.space.horizontalPadding : undefined
|
|
6989
6963
|
};
|
|
6990
6964
|
});
|
|
6991
|
-
var StyledText$1 = index$a(
|
|
6965
|
+
var StyledText$1 = index$a(Text$1)(function (_ref2) {
|
|
6992
6966
|
var theme = _ref2.theme;
|
|
6993
6967
|
return {
|
|
6994
6968
|
fontFamily: theme.__hd__.badge.fonts["default"],
|
|
6995
6969
|
fontSize: theme.__hd__.badge.fontSizes["default"],
|
|
6996
|
-
lineHeight: theme.__hd__.badge.lineHeights["default"],
|
|
6997
6970
|
color: theme.__hd__.badge.colors.text,
|
|
6998
6971
|
includeFontPadding: false,
|
|
6999
6972
|
textAlignVertical: 'center',
|
|
@@ -11543,7 +11516,7 @@ var StyledErrorAndMaxLengthContainer = index$a(View)(function () {
|
|
|
11543
11516
|
};
|
|
11544
11517
|
});
|
|
11545
11518
|
|
|
11546
|
-
var _excluded$a = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "helpText", "value", "defaultValue", "renderInputValue"
|
|
11519
|
+
var _excluded$a = ["label", "prefix", "suffix", "style", "textStyle", "testID", "accessibilityLabelledBy", "error", "required", "editable", "disabled", "loading", "maxLength", "helpText", "value", "defaultValue", "renderInputValue"];
|
|
11547
11520
|
var getVariant$1 = function getVariant(_ref) {
|
|
11548
11521
|
var disabled = _ref.disabled,
|
|
11549
11522
|
error = _ref.error,
|
|
@@ -11589,8 +11562,6 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
11589
11562
|
value = _ref2.value,
|
|
11590
11563
|
defaultValue = _ref2.defaultValue,
|
|
11591
11564
|
renderInputValue = _ref2.renderInputValue,
|
|
11592
|
-
_ref2$allowFontScalin = _ref2.allowFontScaling,
|
|
11593
|
-
allowFontScaling = _ref2$allowFontScalin === void 0 ? false : _ref2$allowFontScalin,
|
|
11594
11565
|
nativeProps = _objectWithoutProperties(_ref2, _excluded$a);
|
|
11595
11566
|
var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
11596
11567
|
var isEmptyValue = displayText.length === 0;
|
|
@@ -11679,8 +11650,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
11679
11650
|
},
|
|
11680
11651
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
11681
11652
|
// @ts-ignore
|
|
11682
|
-
accessibilityLabelledBy: accessibilityLabelledBy
|
|
11683
|
-
allowFontScaling: allowFontScaling
|
|
11653
|
+
accessibilityLabelledBy: accessibilityLabelledBy
|
|
11684
11654
|
}, nativeProps), {}, {
|
|
11685
11655
|
onFocus: function onFocus(event) {
|
|
11686
11656
|
var _nativeProps$onFocus;
|
|
@@ -12217,7 +12187,7 @@ var StyledWrapper$5 = index$a(View)(function (_ref) {
|
|
|
12217
12187
|
padding: theme.__hd__.empty.space.wrapperPadding
|
|
12218
12188
|
};
|
|
12219
12189
|
});
|
|
12220
|
-
var StyledTitle = index$a(
|
|
12190
|
+
var StyledTitle = index$a(Text$1)(function (_ref2) {
|
|
12221
12191
|
var theme = _ref2.theme,
|
|
12222
12192
|
themeVariant = _ref2.themeVariant;
|
|
12223
12193
|
return {
|
|
@@ -12228,7 +12198,7 @@ var StyledTitle = index$a(Typography.Text)(function (_ref2) {
|
|
|
12228
12198
|
color: themeVariant === 'dark' ? theme.__hd__.empty.colors.invertedText : theme.__hd__.empty.colors.text
|
|
12229
12199
|
};
|
|
12230
12200
|
});
|
|
12231
|
-
var StyledDescription = index$a(
|
|
12201
|
+
var StyledDescription = index$a(Text$1)(function (_ref3) {
|
|
12232
12202
|
var theme = _ref3.theme,
|
|
12233
12203
|
themeVariant = _ref3.themeVariant;
|
|
12234
12204
|
return {
|
|
@@ -12285,7 +12255,7 @@ var StyledFABIcon = index$a(Icon)(function (_ref2) {
|
|
|
12285
12255
|
textAlign: 'center'
|
|
12286
12256
|
};
|
|
12287
12257
|
});
|
|
12288
|
-
var StyledFABText = index$a(
|
|
12258
|
+
var StyledFABText = index$a(Text$1)(function (_ref3) {
|
|
12289
12259
|
var theme = _ref3.theme;
|
|
12290
12260
|
return {
|
|
12291
12261
|
fontFamily: theme.__hd__.fab.fonts.title,
|
|
@@ -12768,13 +12738,12 @@ var StyledCell = index$a(View)(function (_ref) {
|
|
|
12768
12738
|
borderColor: theme.__hd__.pinInput.colors[themeState]
|
|
12769
12739
|
};
|
|
12770
12740
|
});
|
|
12771
|
-
var StyledCellText = index$a(
|
|
12741
|
+
var StyledCellText = index$a(Text$1)(function (_ref2) {
|
|
12772
12742
|
var theme = _ref2.theme,
|
|
12773
12743
|
themeState = _ref2.themeState;
|
|
12774
12744
|
return {
|
|
12775
12745
|
fontFamily: theme.__hd__.pinInput.fonts.cellText,
|
|
12776
12746
|
fontSize: theme.__hd__.pinInput.fontSizes.cellText,
|
|
12777
|
-
lineHeight: theme.__hd__.pinInput.lineHeights.cellText,
|
|
12778
12747
|
color: theme.__hd__.pinInput.colors[themeState]
|
|
12779
12748
|
};
|
|
12780
12749
|
});
|
|
@@ -12825,11 +12794,10 @@ var StyledErrorContainer = index$a(View)(function (_ref7) {
|
|
|
12825
12794
|
var theme = _ref7.theme;
|
|
12826
12795
|
return {
|
|
12827
12796
|
flexDirection: 'row',
|
|
12828
|
-
paddingTop: theme.__hd__.pinInput.space.errorMessagePadding
|
|
12829
|
-
alignItems: 'center'
|
|
12797
|
+
paddingTop: theme.__hd__.pinInput.space.errorMessagePadding
|
|
12830
12798
|
};
|
|
12831
12799
|
});
|
|
12832
|
-
var StyledErrorMessage = index$a(
|
|
12800
|
+
var StyledErrorMessage = index$a(Text$1)(function (_ref8) {
|
|
12833
12801
|
var theme = _ref8.theme;
|
|
12834
12802
|
return {
|
|
12835
12803
|
fontFamily: theme.__hd__.pinInput.fonts.errorMessage,
|
|
@@ -14528,8 +14496,9 @@ var getTabItem$1 = function getTabItem(_ref) {
|
|
|
14528
14496
|
color: color
|
|
14529
14497
|
});
|
|
14530
14498
|
};
|
|
14531
|
-
var ScrollableTab = function
|
|
14532
|
-
var onTabPress = _ref2.onTabPress,
|
|
14499
|
+
var ScrollableTab = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
14500
|
+
var _ref2$onTabPress = _ref2.onTabPress,
|
|
14501
|
+
onTabPress = _ref2$onTabPress === void 0 ? noop : _ref2$onTabPress,
|
|
14533
14502
|
selectedTabKey = _ref2.selectedTabKey,
|
|
14534
14503
|
tabs = _ref2.tabs,
|
|
14535
14504
|
containerStyle = _ref2.containerStyle,
|
|
@@ -14551,20 +14520,46 @@ var ScrollableTab = function ScrollableTab(_ref2) {
|
|
|
14551
14520
|
var tabsAnims = useAnimatedValueArray(tabs.map(function (_, i) {
|
|
14552
14521
|
return i === selectedTabIndex ? 1 : 0;
|
|
14553
14522
|
}));
|
|
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]);
|
|
14554
14549
|
React.useEffect(function () {
|
|
14555
14550
|
var timeoutHandle = null;
|
|
14556
14551
|
if (selectedTabIndex !== -1) {
|
|
14557
|
-
var _flatListRef$
|
|
14558
|
-
(_flatListRef$
|
|
14552
|
+
var _flatListRef$current2;
|
|
14553
|
+
(_flatListRef$current2 = flatListRef.current) === null || _flatListRef$current2 === void 0 ? void 0 : _flatListRef$current2.scrollToIndex({
|
|
14559
14554
|
index: selectedTabIndex,
|
|
14560
14555
|
viewPosition: 0.5
|
|
14561
14556
|
});
|
|
14562
14557
|
// If the selected tab is changed too quickly, the setPage is crashed and not work anymore
|
|
14563
14558
|
// We apply throttle to prevent this issue https://github.com/Thinkei/hero-design/issues/1715
|
|
14564
14559
|
timeoutHandle = setTimeout(function () {
|
|
14565
|
-
var _pagerViewRef$
|
|
14560
|
+
var _pagerViewRef$current2;
|
|
14566
14561
|
// use no animation to prevent unexpected behavior if users select tab too quickly
|
|
14567
|
-
(_pagerViewRef$
|
|
14562
|
+
(_pagerViewRef$current2 = pagerViewRef.current) === null || _pagerViewRef$current2 === void 0 ? void 0 : _pagerViewRef$current2.setPageWithoutAnimation(selectedTabIndex);
|
|
14568
14563
|
}, 200);
|
|
14569
14564
|
}
|
|
14570
14565
|
var animation = Animated.parallel(_toConsumableArray(tabs.map(function (_, i) {
|
|
@@ -14581,7 +14576,7 @@ var ScrollableTab = function ScrollableTab(_ref2) {
|
|
|
14581
14576
|
clearTimeout(timeoutHandle);
|
|
14582
14577
|
}
|
|
14583
14578
|
};
|
|
14584
|
-
}, [selectedTabIndex, pagerViewRef]);
|
|
14579
|
+
}, [selectedTabIndex, selectedTabKey, pagerViewRef]);
|
|
14585
14580
|
return /*#__PURE__*/React.createElement(TabContainer, {
|
|
14586
14581
|
style: containerStyle,
|
|
14587
14582
|
testID: componentTestID
|
|
@@ -14600,8 +14595,8 @@ var ScrollableTab = function ScrollableTab(_ref2) {
|
|
|
14600
14595
|
onScrollToIndexFailed: function onScrollToIndexFailed(_ref3) {
|
|
14601
14596
|
var index = _ref3.index;
|
|
14602
14597
|
setTimeout(function () {
|
|
14603
|
-
var _flatListRef$
|
|
14604
|
-
return (_flatListRef$
|
|
14598
|
+
var _flatListRef$current3;
|
|
14599
|
+
return (_flatListRef$current3 = flatListRef.current) === null || _flatListRef$current3 === void 0 ? void 0 : _flatListRef$current3.scrollToIndex({
|
|
14605
14600
|
index: index,
|
|
14606
14601
|
viewPosition: 0.5
|
|
14607
14602
|
});
|
|
@@ -14657,7 +14652,7 @@ var ScrollableTab = function ScrollableTab(_ref2) {
|
|
|
14657
14652
|
onPageSelected: function onPageSelected(e) {
|
|
14658
14653
|
var index = e.nativeEvent.position;
|
|
14659
14654
|
var selectedItem = tabs[index];
|
|
14660
|
-
if (selectedItem) {
|
|
14655
|
+
if (selectedItem && selectedItem.key !== selectedTabKey) {
|
|
14661
14656
|
onTabPress(selectedItem.key);
|
|
14662
14657
|
}
|
|
14663
14658
|
},
|
|
@@ -14677,7 +14672,7 @@ var ScrollableTab = function ScrollableTab(_ref2) {
|
|
|
14677
14672
|
collapsable: false
|
|
14678
14673
|
}, isLazyScreen ? null : component);
|
|
14679
14674
|
})));
|
|
14680
|
-
};
|
|
14675
|
+
});
|
|
14681
14676
|
|
|
14682
14677
|
var getTabItem = function getTabItem(_ref) {
|
|
14683
14678
|
var item = _ref.item,
|
|
@@ -14838,7 +14833,7 @@ var StyledView = index$a(View)(function (_ref) {
|
|
|
14838
14833
|
backgroundColor: backgroundColor
|
|
14839
14834
|
};
|
|
14840
14835
|
});
|
|
14841
|
-
var StyledText = index$a(
|
|
14836
|
+
var StyledText = index$a(Text$1)(function (_ref3) {
|
|
14842
14837
|
var themeIntent = _ref3.themeIntent,
|
|
14843
14838
|
themeVariant = _ref3.themeVariant,
|
|
14844
14839
|
theme = _ref3.theme;
|