@hero-design/rn 8.22.0-alpha.0 → 8.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +9 -9
- package/.turbo/turbo-publish:npm.log +0 -9
- package/es/index.js +283 -91
- package/lib/index.js +283 -90
- package/package.json +5 -5
- package/src/components/Alert/index.tsx +6 -0
- package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +5 -5
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +180 -138
- package/src/components/FAB/FAB.tsx +17 -12
- package/src/components/FAB/StyledFAB.tsx +13 -4
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +13 -21
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +214 -151
- package/src/components/List/ListItem.tsx +12 -8
- package/src/components/Success/StyledSuccess.tsx +87 -0
- package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +497 -0
- package/src/components/Success/__tests__/index.spec.tsx +78 -0
- package/src/components/Success/index.tsx +129 -0
- package/src/components/Tag/StyledTag.tsx +1 -1
- package/src/components/Tag/__tests__/Tag.spec.tsx +22 -71
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +106 -53
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +265 -0
- package/src/components/TextInput/__tests__/index.spec.tsx +29 -0
- package/src/components/TextInput/index.tsx +6 -1
- package/src/index.ts +2 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +43 -3
- package/src/theme/components/empty.ts +1 -1
- package/src/theme/components/error.ts +1 -1
- package/src/theme/components/fab.ts +18 -1
- package/src/theme/components/success.ts +40 -0
- package/src/theme/components/tag.ts +1 -1
- package/src/theme/getTheme.ts +3 -0
- package/src/theme/global/colors/__tests__/__snapshots__/globalDark.spec.ts.snap +19 -19
- package/src/theme/global/colors/__tests__/__snapshots__/swagDark.spec.ts.snap +19 -19
- package/src/theme/global/colors/globalDark.ts +24 -24
- package/src/utils/hooks.ts +1 -1
- package/types/components/Accordion/AccordionItem.d.ts +0 -0
- package/types/components/Accordion/StyledAccordion.d.ts +0 -0
- package/types/components/Accordion/index.d.ts +0 -0
- package/types/components/Alert/StyledAlert.d.ts +0 -0
- package/types/components/Alert/index.d.ts +0 -0
- package/types/components/Attachment/StyledAttachment.d.ts +0 -0
- package/types/components/Attachment/index.d.ts +0 -0
- package/types/components/Avatar/Avatar.d.ts +0 -0
- package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +0 -0
- package/types/components/Avatar/AvatarStack/index.d.ts +0 -0
- package/types/components/Avatar/AvatarStack/utils.d.ts +0 -0
- package/types/components/Avatar/StyledAvatar.d.ts +0 -0
- package/types/components/Avatar/index.d.ts +0 -0
- package/types/components/Badge/Status.d.ts +0 -0
- package/types/components/Badge/StyledBadge.d.ts +0 -0
- package/types/components/Badge/index.d.ts +0 -0
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +0 -0
- package/types/components/BottomNavigation/index.d.ts +0 -0
- package/types/components/BottomSheet/BottomSheetContext.d.ts +0 -0
- package/types/components/BottomSheet/Footer.d.ts +0 -0
- package/types/components/BottomSheet/Header.d.ts +0 -0
- package/types/components/BottomSheet/ScrollView.d.ts +0 -0
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -0
- package/types/components/BottomSheet/index.d.ts +0 -0
- package/types/components/Box/StyledBox.d.ts +0 -0
- package/types/components/Box/config.d.ts +0 -0
- package/types/components/Box/index.d.ts +0 -0
- package/types/components/Box/types.d.ts +0 -0
- package/types/components/Button/Button.d.ts +0 -0
- package/types/components/Button/IconButton.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +0 -0
- package/types/components/Button/LoadingIndicator/index.d.ts +0 -0
- package/types/components/Button/StyledButton.d.ts +0 -0
- package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +0 -0
- package/types/components/Button/UtilityButton/index.d.ts +0 -0
- package/types/components/Button/index.d.ts +0 -0
- package/types/components/Calendar/CalendarRowItem.d.ts +0 -0
- package/types/components/Calendar/StyledCalendar.d.ts +0 -0
- package/types/components/Calendar/helpers.d.ts +0 -0
- package/types/components/Calendar/index.d.ts +0 -0
- package/types/components/Card/DataCard/StyledDataCard.d.ts +0 -0
- package/types/components/Card/DataCard/index.d.ts +0 -0
- package/types/components/Card/StyledCard.d.ts +0 -0
- package/types/components/Card/index.d.ts +0 -0
- package/types/components/Carousel/CardCarousel.d.ts +0 -0
- package/types/components/Carousel/CarouselItem.d.ts +0 -0
- package/types/components/Carousel/StyledCardCarousel.d.ts +0 -0
- package/types/components/Carousel/StyledCarousel.d.ts +0 -0
- package/types/components/Carousel/contants.d.ts +0 -0
- package/types/components/Carousel/index.d.ts +0 -0
- package/types/components/Carousel/types.d.ts +0 -0
- package/types/components/Checkbox/StyledCheckbox.d.ts +0 -0
- package/types/components/Checkbox/index.d.ts +0 -0
- package/types/components/Collapse/StyledCollapse.d.ts +0 -0
- package/types/components/Collapse/index.d.ts +0 -0
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +0 -0
- package/types/components/ContentNavigator/index.d.ts +0 -0
- package/types/components/DatePicker/DatePickerAndroid.d.ts +0 -0
- package/types/components/DatePicker/DatePickerCalendar.d.ts +0 -0
- package/types/components/DatePicker/DatePickerIOS.d.ts +0 -0
- package/types/components/DatePicker/StyledDatePicker.d.ts +0 -0
- package/types/components/DatePicker/index.d.ts +0 -0
- package/types/components/DatePicker/types.d.ts +0 -0
- package/types/components/Divider/StyledDivider.d.ts +0 -0
- package/types/components/Divider/index.d.ts +0 -0
- package/types/components/Drawer/DragableDrawer/helpers.d.ts +0 -0
- package/types/components/Drawer/DragableDrawer/index.d.ts +0 -0
- package/types/components/Drawer/StyledDrawer.d.ts +0 -0
- package/types/components/Drawer/index.d.ts +0 -0
- package/types/components/Empty/StyledEmpty.d.ts +0 -0
- package/types/components/Empty/index.d.ts +0 -0
- package/types/components/Error/StyledError.d.ts +0 -0
- package/types/components/Error/index.d.ts +0 -0
- package/types/components/FAB/ActionGroup/ActionItem.d.ts +0 -0
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -0
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +0 -0
- package/types/components/FAB/ActionGroup/index.d.ts +0 -0
- package/types/components/FAB/AnimatedFABIcon.d.ts +0 -0
- package/types/components/FAB/FAB.d.ts +0 -0
- package/types/components/FAB/StyledFAB.d.ts +7 -3
- package/types/components/FAB/index.d.ts +0 -0
- package/types/components/Icon/AnimatedIcon.d.ts +0 -0
- package/types/components/Icon/HeroIcon/index.d.ts +0 -0
- package/types/components/Icon/IconList.d.ts +0 -0
- package/types/components/Icon/index.d.ts +0 -0
- package/types/components/Icon/utils.d.ts +0 -0
- package/types/components/Image/index.d.ts +0 -0
- package/types/components/List/BasicListItem.d.ts +0 -0
- package/types/components/List/ListItem.d.ts +0 -0
- package/types/components/List/StyledBasicListItem.d.ts +0 -0
- package/types/components/List/StyledListItem.d.ts +0 -0
- package/types/components/List/index.d.ts +0 -0
- package/types/components/PageControl/StyledPageControl.d.ts +0 -0
- package/types/components/PageControl/index.d.ts +0 -0
- package/types/components/PinInput/PinCell.d.ts +0 -0
- package/types/components/PinInput/StyledPinInput.d.ts +0 -0
- package/types/components/PinInput/index.d.ts +0 -0
- package/types/components/Progress/ProgressBar.d.ts +0 -0
- package/types/components/Progress/ProgressCircle.d.ts +0 -0
- package/types/components/Progress/StyledProgressBar.d.ts +0 -0
- package/types/components/Progress/StyledProgressCircle.d.ts +0 -0
- package/types/components/Progress/__tests__/index.spec.d.ts +0 -0
- package/types/components/Progress/constants.d.ts +0 -0
- package/types/components/Progress/index.d.ts +0 -0
- package/types/components/Progress/types.d.ts +0 -0
- package/types/components/Radio/Radio.d.ts +0 -0
- package/types/components/Radio/RadioGroup.d.ts +0 -0
- package/types/components/Radio/StyledRadio.d.ts +0 -0
- package/types/components/Radio/index.d.ts +0 -0
- package/types/components/Radio/types.d.ts +0 -0
- package/types/components/RefreshControl/index.d.ts +0 -0
- package/types/components/RichTextEditor/EditorEvent.d.ts +0 -0
- package/types/components/RichTextEditor/EditorToolbar.d.ts +0 -0
- package/types/components/RichTextEditor/MentionList.d.ts +0 -0
- package/types/components/RichTextEditor/RichTextEditor.d.ts +0 -0
- package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +0 -0
- package/types/components/RichTextEditor/StyledToolbar.d.ts +0 -0
- package/types/components/RichTextEditor/__mocks__/heroEditorApp.d.ts +0 -0
- package/types/components/RichTextEditor/constants.d.ts +0 -0
- package/types/components/RichTextEditor/heroEditorApp.d.ts +0 -0
- package/types/components/RichTextEditor/index.d.ts +0 -0
- package/types/components/RichTextEditor/types.d.ts +0 -0
- package/types/components/RichTextEditor/utils/events.d.ts +0 -0
- package/types/components/RichTextEditor/utils/rnWebView.d.ts +0 -0
- package/types/components/SectionHeading/StyledHeading.d.ts +0 -0
- package/types/components/SectionHeading/index.d.ts +0 -0
- package/types/components/Select/BaseOptionList.d.ts +0 -0
- package/types/components/Select/Footer.d.ts +0 -0
- package/types/components/Select/MultiSelect/Option.d.ts +0 -0
- package/types/components/Select/MultiSelect/OptionList.d.ts +0 -0
- package/types/components/Select/MultiSelect/index.d.ts +0 -0
- package/types/components/Select/SingleSelect/Option.d.ts +0 -0
- package/types/components/Select/SingleSelect/OptionList.d.ts +0 -0
- package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +0 -0
- package/types/components/Select/SingleSelect/index.d.ts +0 -0
- package/types/components/Select/StyledSelect.d.ts +0 -0
- package/types/components/Select/helpers.d.ts +0 -0
- package/types/components/Select/index.d.ts +0 -0
- package/types/components/Select/types.d.ts +0 -0
- package/types/components/Skeleton/StyledSkeleton.d.ts +0 -0
- package/types/components/Skeleton/index.d.ts +0 -0
- package/types/components/Slider/index.d.ts +0 -0
- package/types/components/Spinner/AnimatedSpinner.d.ts +0 -0
- package/types/components/Spinner/StyledSpinner.d.ts +0 -0
- package/types/components/Spinner/index.d.ts +0 -0
- package/types/components/Success/StyledSuccess.d.ts +54 -0
- package/types/components/Success/index.d.ts +42 -0
- package/types/components/Swipeable/StyledSwipeable.d.ts +0 -0
- package/types/components/Swipeable/SwipeableAction.d.ts +0 -0
- package/types/components/Swipeable/index.d.ts +0 -0
- package/types/components/Switch/SelectorSwitch/Option.d.ts +0 -0
- package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -0
- package/types/components/Switch/SelectorSwitch/index.d.ts +0 -0
- package/types/components/Switch/StyledSwitch.d.ts +0 -0
- package/types/components/Switch/index.d.ts +0 -0
- package/types/components/Tabs/ActiveTabIndicator.d.ts +0 -0
- package/types/components/Tabs/ScrollableTabs.d.ts +0 -0
- package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -0
- package/types/components/Tabs/StyledTabs.d.ts +0 -0
- package/types/components/Tabs/TabWithBadge.d.ts +0 -0
- package/types/components/Tabs/index.d.ts +0 -0
- package/types/components/Tabs/utils.d.ts +0 -0
- package/types/components/Tag/StyledTag.d.ts +0 -0
- package/types/components/Tag/index.d.ts +0 -0
- package/types/components/TextInput/StyledTextInput.d.ts +0 -0
- package/types/components/TextInput/index.d.ts +5 -1
- package/types/components/TimePicker/StyledTimePicker.d.ts +0 -0
- package/types/components/TimePicker/TimePickerAndroid.d.ts +0 -0
- package/types/components/TimePicker/TimePickerIOS.d.ts +0 -0
- package/types/components/TimePicker/index.d.ts +0 -0
- package/types/components/TimePicker/types.d.ts +0 -0
- package/types/components/Toast/StyledToast.d.ts +0 -0
- package/types/components/Toast/Toast.d.ts +0 -0
- package/types/components/Toast/ToastContainer.d.ts +0 -0
- package/types/components/Toast/ToastContext.d.ts +0 -0
- package/types/components/Toast/ToastProvider.d.ts +0 -0
- package/types/components/Toast/index.d.ts +0 -0
- package/types/components/Toast/types.d.ts +0 -0
- package/types/components/Toolbar/StyledToolbar.d.ts +0 -0
- package/types/components/Toolbar/ToolbarGroup.d.ts +0 -0
- package/types/components/Toolbar/ToolbarItem.d.ts +0 -0
- package/types/components/Toolbar/index.d.ts +0 -0
- package/types/components/Typography/Text/StyledText.d.ts +0 -0
- package/types/components/Typography/Text/index.d.ts +0 -0
- package/types/components/Typography/index.d.ts +0 -0
- package/types/index.d.ts +2 -1
- package/types/testHelpers/renderWithTheme.d.ts +0 -0
- package/types/theme/ThemeProvider.d.ts +0 -0
- package/types/theme/ThemeSwitcher.d.ts +0 -0
- package/types/theme/components/accordion.d.ts +0 -0
- package/types/theme/components/alert.d.ts +0 -0
- package/types/theme/components/attachment.d.ts +0 -0
- package/types/theme/components/avatar.d.ts +0 -0
- package/types/theme/components/badge.d.ts +0 -0
- package/types/theme/components/bottomNavigation.d.ts +0 -0
- package/types/theme/components/bottomSheet.d.ts +0 -0
- package/types/theme/components/button.d.ts +0 -0
- package/types/theme/components/calendar.d.ts +0 -0
- package/types/theme/components/card.d.ts +0 -0
- package/types/theme/components/cardCarousel.d.ts +0 -0
- package/types/theme/components/carousel.d.ts +0 -0
- package/types/theme/components/checkbox.d.ts +0 -0
- package/types/theme/components/contentNavigator.d.ts +0 -0
- package/types/theme/components/datePicker.d.ts +0 -0
- package/types/theme/components/divider.d.ts +0 -0
- package/types/theme/components/drawer.d.ts +0 -0
- package/types/theme/components/empty.d.ts +0 -0
- package/types/theme/components/error.d.ts +0 -0
- package/types/theme/components/fab.d.ts +10 -0
- package/types/theme/components/icon.d.ts +0 -0
- package/types/theme/components/image.d.ts +0 -0
- package/types/theme/components/list.d.ts +0 -0
- package/types/theme/components/pageControl.d.ts +0 -0
- package/types/theme/components/pinInput.d.ts +0 -0
- package/types/theme/components/progress.d.ts +0 -0
- package/types/theme/components/radio.d.ts +0 -0
- package/types/theme/components/refreshControl.d.ts +0 -0
- package/types/theme/components/richTextEditor.d.ts +0 -0
- package/types/theme/components/sectionHeading.d.ts +0 -0
- package/types/theme/components/select.d.ts +0 -0
- package/types/theme/components/skeleton.d.ts +0 -0
- package/types/theme/components/slider.d.ts +0 -0
- package/types/theme/components/spinner.d.ts +0 -0
- package/types/theme/components/success.d.ts +32 -0
- package/types/theme/components/swipeable.d.ts +0 -0
- package/types/theme/components/switch.d.ts +0 -0
- package/types/theme/components/tabs.d.ts +0 -0
- package/types/theme/components/tag.d.ts +0 -0
- package/types/theme/components/textInput.d.ts +0 -0
- package/types/theme/components/timePicker.d.ts +0 -0
- package/types/theme/components/toast.d.ts +0 -0
- package/types/theme/components/toolbar.d.ts +0 -0
- package/types/theme/components/typography.d.ts +0 -0
- package/types/theme/getTheme.d.ts +2 -0
- package/types/theme/global/borders.d.ts +0 -0
- package/types/theme/global/colors/eBens.d.ts +0 -0
- package/types/theme/global/colors/global.d.ts +0 -0
- package/types/theme/global/colors/globalDark.d.ts +0 -0
- package/types/theme/global/colors/jobs.d.ts +0 -0
- package/types/theme/global/colors/swag.d.ts +0 -0
- package/types/theme/global/colors/swagDark.d.ts +0 -0
- package/types/theme/global/colors/types.d.ts +0 -0
- package/types/theme/global/colors/wallet.d.ts +0 -0
- package/types/theme/global/colors/work.d.ts +0 -0
- package/types/theme/global/index.d.ts +0 -0
- package/types/theme/global/scale.d.ts +0 -0
- package/types/theme/global/sizes.d.ts +0 -0
- package/types/theme/global/space.d.ts +0 -0
- package/types/theme/global/typography.d.ts +0 -0
- package/types/theme/index.d.ts +0 -0
- package/types/types.d.ts +0 -0
- package/types/utils/functions.d.ts +0 -0
- package/types/utils/helpers.d.ts +0 -0
- package/types/utils/hooks.d.ts +0 -0
- package/types/utils/scale.d.ts +0 -0
- package/.turbo/turbo-build:types.log +0 -2
- package/.turbo/turbo-lint.log +0 -146
- package/.turbo/turbo-test.log +0 -451
- package/.turbo/turbo-type-check.log +0 -2
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { ReactElement } from 'react';
|
|
2
|
+
import type { ViewProps, ImageSourcePropType, ImageProps as RNImageProps } from 'react-native';
|
|
3
|
+
import { SuccessVariant } from './StyledSuccess';
|
|
4
|
+
import { ImageProps } from '../Image';
|
|
5
|
+
export interface SuccessProps extends ViewProps {
|
|
6
|
+
/**
|
|
7
|
+
* Image to be displayed.
|
|
8
|
+
*/
|
|
9
|
+
image?: ReactElement<ImageProps | RNImageProps> | ImageSourcePropType | string;
|
|
10
|
+
/**
|
|
11
|
+
* Success's title.
|
|
12
|
+
*/
|
|
13
|
+
title: string;
|
|
14
|
+
/**
|
|
15
|
+
* Success's description.
|
|
16
|
+
*/
|
|
17
|
+
description?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Success's variant.
|
|
20
|
+
*/
|
|
21
|
+
variant?: SuccessVariant;
|
|
22
|
+
/**
|
|
23
|
+
* Action button text
|
|
24
|
+
*/
|
|
25
|
+
ctaText?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Callback when the action button is pressed.
|
|
28
|
+
*/
|
|
29
|
+
onCtaPress?: () => void;
|
|
30
|
+
/**
|
|
31
|
+
* Testing id of the component.
|
|
32
|
+
*/
|
|
33
|
+
testID?: string;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Renders success page
|
|
37
|
+
*
|
|
38
|
+
* @param {SuccessProps} props
|
|
39
|
+
* @return {*} {ReactElement}
|
|
40
|
+
*/
|
|
41
|
+
declare const Success: (props: SuccessProps) => ReactElement;
|
|
42
|
+
export default Success;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -62,6 +62,10 @@ export interface TextInputProps extends NativeTextInputProps {
|
|
|
62
62
|
* If the max length is set, the input will display the current length and the max length.
|
|
63
63
|
* */
|
|
64
64
|
maxLength?: number;
|
|
65
|
+
/**
|
|
66
|
+
* Whether to hide the character count.
|
|
67
|
+
* */
|
|
68
|
+
hideCharacterCount?: boolean;
|
|
65
69
|
/**
|
|
66
70
|
* The helper text to display.
|
|
67
71
|
*/
|
|
@@ -83,5 +87,5 @@ export declare const getVariant: ({ disabled, error, editable, loading, isEmptyV
|
|
|
83
87
|
isFocused?: boolean | undefined;
|
|
84
88
|
isEmptyValue?: boolean | undefined;
|
|
85
89
|
}) => Variant;
|
|
86
|
-
declare const TextInput: React.ForwardRefExoticComponent<Pick<TextInputProps, "children" | "label" | "style" | "hitSlop" | "onLayout" | "pointerEvents" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxProperties" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "disabled" | "value" | "onBlur" | "onFocus" | "onPressIn" | "onPressOut" | "allowFontScaling" | "numberOfLines" | "maxFontSizeMultiplier" | "selectionColor" | "textBreakStrategy" | "loading" | "accessibilityLabelledBy" | "textAlign" | "error" | "textAlignVertical" | "onContentSizeChange" | "onScroll" | "scrollEnabled" | "onChange" | "autoCapitalize" | "autoCorrect" | "autoFocus" | "blurOnSubmit" | "caretHidden" | "contextMenuHidden" | "defaultValue" | "editable" | "keyboardType" | "maxLength" | "multiline" | "onChangeText" | "onEndEditing" | "onSelectionChange" | "onSubmitEditing" | "onTextInput" | "onKeyPress" | "placeholder" | "placeholderTextColor" | "returnKeyType" | "secureTextEntry" | "selectTextOnFocus" | "selection" | "inputAccessoryViewID" | "clearButtonMode" | "clearTextOnFocus" | "dataDetectorTypes" | "enablesReturnKeyAutomatically" | "keyboardAppearance" | "passwordRules" | "rejectResponderTermination" | "selectionState" | "spellCheck" | "textContentType" | "autoComplete" | "importantForAutofill" | "disableFullscreenUI" | "inlineImageLeft" | "inlineImagePadding" | "returnKeyLabel" | "underlineColorAndroid" | "showSoftInputOnFocus" | "prefix" | "suffix" | "textStyle" | "required" | "helpText" | "renderInputValue"> & React.RefAttributes<TextInputHandles>>;
|
|
90
|
+
declare const TextInput: React.ForwardRefExoticComponent<Pick<TextInputProps, "children" | "label" | "style" | "hitSlop" | "onLayout" | "pointerEvents" | "removeClippedSubviews" | "testID" | "nativeID" | "collapsable" | "needsOffscreenAlphaCompositing" | "renderToHardwareTextureAndroid" | "focusable" | "shouldRasterizeIOS" | "isTVSelectable" | "hasTVPreferredFocus" | "tvParallaxProperties" | "tvParallaxShiftDistanceX" | "tvParallaxShiftDistanceY" | "tvParallaxTiltAngle" | "tvParallaxMagnification" | "onStartShouldSetResponder" | "onMoveShouldSetResponder" | "onResponderEnd" | "onResponderGrant" | "onResponderReject" | "onResponderMove" | "onResponderRelease" | "onResponderStart" | "onResponderTerminationRequest" | "onResponderTerminate" | "onStartShouldSetResponderCapture" | "onMoveShouldSetResponderCapture" | "onTouchStart" | "onTouchMove" | "onTouchEnd" | "onTouchCancel" | "onTouchEndCapture" | "accessible" | "accessibilityActions" | "accessibilityLabel" | "accessibilityRole" | "accessibilityState" | "accessibilityHint" | "accessibilityValue" | "onAccessibilityAction" | "accessibilityLiveRegion" | "importantForAccessibility" | "accessibilityElementsHidden" | "accessibilityViewIsModal" | "onAccessibilityEscape" | "onAccessibilityTap" | "onMagicTap" | "accessibilityIgnoresInvertColors" | "disabled" | "value" | "onBlur" | "onFocus" | "onPressIn" | "onPressOut" | "allowFontScaling" | "numberOfLines" | "maxFontSizeMultiplier" | "selectionColor" | "textBreakStrategy" | "loading" | "accessibilityLabelledBy" | "textAlign" | "error" | "textAlignVertical" | "onContentSizeChange" | "onScroll" | "scrollEnabled" | "onChange" | "autoCapitalize" | "autoCorrect" | "autoFocus" | "blurOnSubmit" | "caretHidden" | "contextMenuHidden" | "defaultValue" | "editable" | "keyboardType" | "maxLength" | "multiline" | "onChangeText" | "onEndEditing" | "onSelectionChange" | "onSubmitEditing" | "onTextInput" | "onKeyPress" | "placeholder" | "placeholderTextColor" | "returnKeyType" | "secureTextEntry" | "selectTextOnFocus" | "selection" | "inputAccessoryViewID" | "clearButtonMode" | "clearTextOnFocus" | "dataDetectorTypes" | "enablesReturnKeyAutomatically" | "keyboardAppearance" | "passwordRules" | "rejectResponderTermination" | "selectionState" | "spellCheck" | "textContentType" | "autoComplete" | "importantForAutofill" | "disableFullscreenUI" | "inlineImageLeft" | "inlineImagePadding" | "returnKeyLabel" | "underlineColorAndroid" | "showSoftInputOnFocus" | "prefix" | "suffix" | "textStyle" | "required" | "hideCharacterCount" | "helpText" | "renderInputValue"> & React.RefAttributes<TextInputHandles>>;
|
|
87
91
|
export default TextInput;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/types/index.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ import Radio from './components/Radio';
|
|
|
33
33
|
import SectionHeading from './components/SectionHeading';
|
|
34
34
|
import Select from './components/Select';
|
|
35
35
|
import Skeleton from './components/Skeleton';
|
|
36
|
+
import Success from './components/Success';
|
|
36
37
|
import Switch from './components/Switch';
|
|
37
38
|
import Tabs from './components/Tabs';
|
|
38
39
|
import Tag from './components/Tag';
|
|
@@ -44,5 +45,5 @@ import Typography from './components/Typography';
|
|
|
44
45
|
import RefreshControl from './components/RefreshControl';
|
|
45
46
|
import RichTextEditor from './components/RichTextEditor';
|
|
46
47
|
import PageControl from './components/PageControl';
|
|
47
|
-
export { theme, getTheme, useTheme, scale, ThemeProvider, ThemeSwitcher, withTheme, swagSystemPalette, swagDarkSystemPalette, workSystemPalette, jobsSystemPalette, walletSystemPalette, eBensSystemPalette, Accordion, Alert, Attachment, Avatar, useAvatarColors, Badge, BottomNavigation, BottomSheet, Box, Button, Calendar, Card, Carousel, Collapse, Checkbox, ContentNavigator, DatePicker, Divider, Drawer, Empty, Error, FAB, Icon, Image, List, PinInput, Progress, PageControl, Skeleton, Slider, Spinner, Swipeable, Radio, SectionHeading, Select, Switch, Tabs, Tag, TextInput, TimePicker, Toast, Toolbar, Typography, RefreshControl, RichTextEditor, };
|
|
48
|
+
export { theme, getTheme, useTheme, scale, ThemeProvider, ThemeSwitcher, withTheme, swagSystemPalette, swagDarkSystemPalette, workSystemPalette, jobsSystemPalette, walletSystemPalette, eBensSystemPalette, Accordion, Alert, Attachment, Avatar, useAvatarColors, Badge, BottomNavigation, BottomSheet, Box, Button, Calendar, Card, Carousel, Collapse, Checkbox, ContentNavigator, DatePicker, Divider, Drawer, Empty, Error, FAB, Icon, Image, List, PinInput, Progress, PageControl, Skeleton, Slider, Spinner, Swipeable, Radio, SectionHeading, Select, Success, Switch, Tabs, Tag, TextInput, TimePicker, Toast, Toolbar, Typography, RefreshControl, RichTextEditor, };
|
|
48
49
|
export * from './types';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -23,6 +23,7 @@ declare const getFABTheme: (theme: GlobalTheme) => {
|
|
|
23
23
|
backdropBackground: string;
|
|
24
24
|
titleText: string;
|
|
25
25
|
actionItemText: string;
|
|
26
|
+
shadow: string;
|
|
26
27
|
};
|
|
27
28
|
sizes: {
|
|
28
29
|
width: number;
|
|
@@ -34,6 +35,15 @@ declare const getFABTheme: (theme: GlobalTheme) => {
|
|
|
34
35
|
title: number;
|
|
35
36
|
icon: number;
|
|
36
37
|
};
|
|
38
|
+
shadows: {
|
|
39
|
+
offset: {
|
|
40
|
+
width: number;
|
|
41
|
+
height: number;
|
|
42
|
+
};
|
|
43
|
+
opacity: number;
|
|
44
|
+
radius: number;
|
|
45
|
+
elevation: number;
|
|
46
|
+
};
|
|
37
47
|
space: {
|
|
38
48
|
actionItemPaddingLeft: number;
|
|
39
49
|
actionItemPaddingRight: number;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { GlobalTheme } from '../global';
|
|
2
|
+
declare const getSuccessTheme: (theme: GlobalTheme) => {
|
|
3
|
+
fontSizes: {
|
|
4
|
+
title: number;
|
|
5
|
+
description: number;
|
|
6
|
+
};
|
|
7
|
+
colors: {
|
|
8
|
+
title: string;
|
|
9
|
+
description: string;
|
|
10
|
+
fullScreenBackground: string;
|
|
11
|
+
inPageBackground: string;
|
|
12
|
+
};
|
|
13
|
+
sizes: {
|
|
14
|
+
image: number;
|
|
15
|
+
};
|
|
16
|
+
space: {
|
|
17
|
+
titleMarginBottom: number;
|
|
18
|
+
imageMarginBottom: number;
|
|
19
|
+
wrapperPadding: number;
|
|
20
|
+
button: {
|
|
21
|
+
wrapperHorizontalPadding: number;
|
|
22
|
+
wrapperVerticalPadding: number;
|
|
23
|
+
margin: number;
|
|
24
|
+
padding: number;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
fonts: {
|
|
28
|
+
title: string;
|
|
29
|
+
description: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export default getSuccessTheme;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -32,6 +32,7 @@ import getSelectTheme from './components/select';
|
|
|
32
32
|
import getSkeletonTheme from './components/skeleton';
|
|
33
33
|
import getSliderTheme from './components/slider';
|
|
34
34
|
import getSpinnerTheme from './components/spinner';
|
|
35
|
+
import getSuccessTheme from './components/success';
|
|
35
36
|
import getSwipeableTheme from './components/swipeable';
|
|
36
37
|
import getSwitchTheme from './components/switch';
|
|
37
38
|
import getTabsTheme from './components/tabs';
|
|
@@ -78,6 +79,7 @@ declare type Theme = GlobalTheme & {
|
|
|
78
79
|
skeleton: ReturnType<typeof getSkeletonTheme>;
|
|
79
80
|
slider: ReturnType<typeof getSliderTheme>;
|
|
80
81
|
spinner: ReturnType<typeof getSpinnerTheme>;
|
|
82
|
+
success: ReturnType<typeof getSuccessTheme>;
|
|
81
83
|
swipeable: ReturnType<typeof getSwipeableTheme>;
|
|
82
84
|
switch: ReturnType<typeof getSwitchTheme>;
|
|
83
85
|
tabs: ReturnType<typeof getTabsTheme>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/types/theme/index.d.ts
CHANGED
|
File without changes
|
package/types/types.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/types/utils/helpers.d.ts
CHANGED
|
File without changes
|
package/types/utils/hooks.d.ts
CHANGED
|
File without changes
|
package/types/utils/scale.d.ts
CHANGED
|
File without changes
|
package/.turbo/turbo-lint.log
DELETED
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
[35m@hero-design/rn:lint[0m: cache hit, replaying output [2m56998e24c25cc778[0m
|
|
2
|
-
[35m@hero-design/rn:lint: [0m$ eslint src --ext .js,.jsx,.ts,.tsx --ignore-path ../../.gitignore
|
|
3
|
-
[35m@hero-design/rn:lint: [0m
|
|
4
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/BottomSheet/ScrollView.tsx
|
|
5
|
-
[35m@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
|
-
[35m@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
|
-
[35m@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
|
-
[35m@hero-design/rn:lint: [0m
|
|
9
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/BottomSheet/index.tsx
|
|
10
|
-
[35m@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
|
-
[35m@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
|
-
[35m@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
|
-
[35m@hero-design/rn:lint: [0m
|
|
14
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/Button/LoadingIndicator/index.tsx
|
|
15
|
-
[35m@hero-design/rn:lint: [0m 118:36 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
16
|
-
[35m@hero-design/rn:lint: [0m
|
|
17
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/Carousel/CardCarousel.tsx
|
|
18
|
-
[35m@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
|
-
[35m@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
|
-
[35m@hero-design/rn:lint: [0m
|
|
21
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/Carousel/__tests__/CardCarousel.spec.tsx
|
|
22
|
-
[35m@hero-design/rn:lint: [0m 47:27 warning Forbidden non-null assertion @typescript-eslint/no-non-null-assertion
|
|
23
|
-
[35m@hero-design/rn:lint: [0m 47:27 warning Forbidden non-null assertion @typescript-eslint/no-non-null-assertion
|
|
24
|
-
[35m@hero-design/rn:lint: [0m 93:27 warning Forbidden non-null assertion @typescript-eslint/no-non-null-assertion
|
|
25
|
-
[35m@hero-design/rn:lint: [0m 93:27 warning Forbidden non-null assertion @typescript-eslint/no-non-null-assertion
|
|
26
|
-
[35m@hero-design/rn:lint: [0m
|
|
27
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/Carousel/index.tsx
|
|
28
|
-
[35m@hero-design/rn:lint: [0m 128:6 warning React Hook useEffect has missing dependencies: 'scrollX' and 'width'. Either include them or remove the dependency array react-hooks/exhaustive-deps
|
|
29
|
-
[35m@hero-design/rn:lint: [0m 134:6 warning React Hook useCallback has a missing dependency: 'internalOnItemIndexChange'. Either include it or remove the dependency array react-hooks/exhaustive-deps
|
|
30
|
-
[35m@hero-design/rn:lint: [0m
|
|
31
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/Collapse/index.tsx
|
|
32
|
-
[35m@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
|
-
[35m@hero-design/rn:lint: [0m
|
|
34
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/DatePicker/DatePickerAndroid.tsx
|
|
35
|
-
[35m@hero-design/rn:lint: [0m 53:25 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
36
|
-
[35m@hero-design/rn:lint: [0m
|
|
37
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/DatePicker/DatePickerIOS.tsx
|
|
38
|
-
[35m@hero-design/rn:lint: [0m 75:27 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
39
|
-
[35m@hero-design/rn:lint: [0m
|
|
40
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/Drawer/DragableDrawer/index.tsx
|
|
41
|
-
[35m@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
|
-
[35m@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
|
-
[35m@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
|
-
[35m@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
|
-
[35m@hero-design/rn:lint: [0m
|
|
46
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/Drawer/index.tsx
|
|
47
|
-
[35m@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
|
-
[35m@hero-design/rn:lint: [0m
|
|
49
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/Icon/utils.ts
|
|
50
|
-
[35m@hero-design/rn:lint: [0m 3:24 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
51
|
-
[35m@hero-design/rn:lint: [0m
|
|
52
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/PageControl/index.tsx
|
|
53
|
-
[35m@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
|
-
[35m@hero-design/rn:lint: [0m
|
|
55
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/PinInput/index.tsx
|
|
56
|
-
[35m@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
|
-
[35m@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
|
-
[35m@hero-design/rn:lint: [0m
|
|
59
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/RichTextEditor/EditorToolbar.tsx
|
|
60
|
-
[35m@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
|
-
[35m@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
|
-
[35m@hero-design/rn:lint: [0m
|
|
63
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/RichTextEditor/MentionList.tsx
|
|
64
|
-
[35m@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
|
-
[35m@hero-design/rn:lint: [0m
|
|
66
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/RichTextEditor/RichTextEditor.tsx
|
|
67
|
-
[35m@hero-design/rn:lint: [0m 50:13 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
68
|
-
[35m@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
|
-
[35m@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
|
-
[35m@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
|
-
[35m@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
|
-
[35m@hero-design/rn:lint: [0m 246:61 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
73
|
-
[35m@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
|
-
[35m@hero-design/rn:lint: [0m
|
|
75
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/RichTextEditor/__tests__/MentionList.spec.tsx
|
|
76
|
-
[35m@hero-design/rn:lint: [0m 93:20 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
77
|
-
[35m@hero-design/rn:lint: [0m
|
|
78
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/RichTextEditor/hero-editor.d.ts
|
|
79
|
-
[35m@hero-design/rn:lint: [0m 7:43 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
80
|
-
[35m@hero-design/rn:lint: [0m
|
|
81
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/RichTextEditor/utils/rnWebView.ts
|
|
82
|
-
[35m@hero-design/rn:lint: [0m 11:9 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
83
|
-
[35m@hero-design/rn:lint: [0m
|
|
84
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/Select/MultiSelect/index.tsx
|
|
85
|
-
[35m@hero-design/rn:lint: [0m 87: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
|
-
[35m@hero-design/rn:lint: [0m
|
|
87
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/Skeleton/index.tsx
|
|
88
|
-
[35m@hero-design/rn:lint: [0m 91:6 warning React Hook useEffect has a missing dependency: 'animatedValue'. Either include it or remove the dependency array react-hooks/exhaustive-deps
|
|
89
|
-
[35m@hero-design/rn:lint: [0m 108:6 warning React Hook useCallback has missing dependencies: 'onLayout' and 'shouldStartAnimation'. Either include them or remove the dependency array. If 'onLayout' changes too often, find the parent component that defines it and wrap that definition in useCallback react-hooks/exhaustive-deps
|
|
90
|
-
[35m@hero-design/rn:lint: [0m
|
|
91
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/Switch/index.tsx
|
|
92
|
-
[35m@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
|
|
93
|
-
[35m@hero-design/rn:lint: [0m
|
|
94
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/Tabs/ScrollableTabs.tsx
|
|
95
|
-
[35m@hero-design/rn:lint: [0m 112:6 warning React Hook React.useEffect has missing dependencies: 'tabs' and 'tabsAnims'. Either include them or remove the dependency array react-hooks/exhaustive-deps
|
|
96
|
-
[35m@hero-design/rn:lint: [0m
|
|
97
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/TextInput/StyledTextInput.tsx
|
|
98
|
-
[35m@hero-design/rn:lint: [0m 33:62 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
99
|
-
[35m@hero-design/rn:lint: [0m
|
|
100
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/TextInput/__tests__/index.spec.tsx
|
|
101
|
-
[35m@hero-design/rn:lint: [0m 436:34 warning Forbidden non-null assertion @typescript-eslint/no-non-null-assertion
|
|
102
|
-
[35m@hero-design/rn:lint: [0m
|
|
103
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/TimePicker/TimePickerAndroid.tsx
|
|
104
|
-
[35m@hero-design/rn:lint: [0m 51:25 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
105
|
-
[35m@hero-design/rn:lint: [0m
|
|
106
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/TimePicker/TimePickerIOS.tsx
|
|
107
|
-
[35m@hero-design/rn:lint: [0m 76:27 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
108
|
-
[35m@hero-design/rn:lint: [0m
|
|
109
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/Toast/Toast.tsx
|
|
110
|
-
[35m@hero-design/rn:lint: [0m 70: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
|
|
111
|
-
[35m@hero-design/rn:lint: [0m 81:6 warning React Hook useEffect has a missing dependency: 'animatedValue'. Either include it or remove the dependency array react-hooks/exhaustive-deps
|
|
112
|
-
[35m@hero-design/rn:lint: [0m
|
|
113
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/components/Toast/__tests__/index.spec.tsx
|
|
114
|
-
[35m@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
|
|
115
|
-
[35m@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
|
|
116
|
-
[35m@hero-design/rn:lint: [0m
|
|
117
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/theme/components/progress.ts
|
|
118
|
-
[35m@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
|
|
119
|
-
[35m@hero-design/rn:lint: [0m
|
|
120
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/theme/global/colors/eBens.ts
|
|
121
|
-
[35m@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
|
|
122
|
-
[35m@hero-design/rn:lint: [0m
|
|
123
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/theme/global/colors/global.ts
|
|
124
|
-
[35m@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
|
|
125
|
-
[35m@hero-design/rn:lint: [0m
|
|
126
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/theme/global/colors/jobs.ts
|
|
127
|
-
[35m@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
|
|
128
|
-
[35m@hero-design/rn:lint: [0m
|
|
129
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/theme/global/colors/swag.ts
|
|
130
|
-
[35m@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
|
|
131
|
-
[35m@hero-design/rn:lint: [0m
|
|
132
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/theme/global/colors/wallet.ts
|
|
133
|
-
[35m@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
|
|
134
|
-
[35m@hero-design/rn:lint: [0m
|
|
135
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/theme/global/colors/work.ts
|
|
136
|
-
[35m@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
|
|
137
|
-
[35m@hero-design/rn:lint: [0m
|
|
138
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/utils/__tests__/helpers.spec.ts
|
|
139
|
-
[35m@hero-design/rn:lint: [0m 15:18 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
140
|
-
[35m@hero-design/rn:lint: [0m 37:18 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
|
|
141
|
-
[35m@hero-design/rn:lint: [0m
|
|
142
|
-
[35m@hero-design/rn:lint: [0m/Volumes/Data/Projects/hero-design/packages/rn/src/utils/hooks.ts
|
|
143
|
-
[35m@hero-design/rn:lint: [0m 26:7 warning Unexpected console statement no-console
|
|
144
|
-
[35m@hero-design/rn:lint: [0m
|
|
145
|
-
[35m@hero-design/rn:lint: [0m✖ 63 problems (0 errors, 63 warnings)
|
|
146
|
-
[35m@hero-design/rn:lint: [0m
|