@hero-design/rn 8.43.0 → 8.43.1
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 +1 -1
- package/CHANGELOG.md +9 -0
- package/es/index.js +1339 -1324
- package/jest-setup.ts +2 -0
- package/lib/index.js +1339 -1324
- package/package.json +20 -20
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +68 -0
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +102 -0
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +85 -0
- package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +34 -0
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +12 -0
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +108 -0
- package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +17 -0
- package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +36 -0
- package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +36 -0
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +51 -1
- package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +34 -0
- package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +128 -0
- package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +17 -0
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +80 -0
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +85 -0
- package/src/components/Carousel/CardCarousel.tsx +10 -7
- package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +4 -0
- package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +36 -0
- package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +68 -0
- package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +72 -0
- package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +204 -0
- package/src/components/Collapse/index.tsx +1 -1
- package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +72 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +36 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +12 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +12 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +54 -1
- package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +51 -0
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +81 -0
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +16 -0
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +24 -0
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +16 -0
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +60 -0
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +32 -0
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +32 -0
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +16 -0
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +24 -0
- package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +180 -0
- package/src/components/RichTextEditor/__tests__/__snapshots__/EditorToolbar.spec.tsx.snap +119 -0
- package/src/components/RichTextEditor/__tests__/__snapshots__/MentionList.spec.tsx.snap +1 -0
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +18 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +8 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +124 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +437 -4
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +8 -0
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +124 -0
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +323 -3
- package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +51 -0
- package/src/components/Swipeable/index.tsx +3 -3
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +9 -0
- package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +8 -0
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +171 -0
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +40 -0
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +159 -0
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +24 -0
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +66 -1
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +102 -0
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +72 -0
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +96 -0
- package/tsconfig.json +4 -1
- package/types/components/Accordion/AccordionItem.d.ts +2 -1
- package/types/components/Accordion/index.d.ts +1 -1
- package/types/components/Attachment/index.d.ts +2 -1
- package/types/components/Avatar/Avatar.d.ts +2 -1
- package/types/components/Avatar/AvatarStack/index.d.ts +2 -2
- package/types/components/Avatar/index.d.ts +3 -2
- package/types/components/Badge/StyledBadge.d.ts +0 -4
- package/types/components/BottomSheet/Footer.d.ts +2 -1
- package/types/components/BottomSheet/Header.d.ts +2 -1
- package/types/components/BottomSheet/ScrollView.d.ts +1 -0
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +0 -4
- package/types/components/Box/index.d.ts +2 -1
- package/types/components/Button/IconButton.d.ts +2 -1
- package/types/components/Button/LoadingIndicator/index.d.ts +2 -1
- package/types/components/Button/UtilityButton/index.d.ts +2 -1
- package/types/components/Calendar/CalendarRowItem.d.ts +2 -1
- package/types/components/Calendar/StyledCalendar.d.ts +1 -1
- package/types/components/Calendar/index.d.ts +2 -1
- package/types/components/Carousel/CardCarousel.d.ts +1 -1
- package/types/components/Carousel/CarouselItem.d.ts +2 -1
- package/types/components/Carousel/index.d.ts +2 -2
- package/types/components/Checkbox/index.d.ts +2 -1
- package/types/components/Chip/index.d.ts +2 -1
- package/types/components/Collapse/StyledCollapse.d.ts +0 -2
- package/types/components/Collapse/index.d.ts +2 -1
- package/types/components/ContentNavigator/index.d.ts +2 -1
- package/types/components/DatePicker/DatePickerAndroid.d.ts +2 -1
- package/types/components/DatePicker/DatePickerCalendar.d.ts +2 -1
- package/types/components/DatePicker/DatePickerIOS.d.ts +2 -1
- package/types/components/DatePicker/index.d.ts +2 -1
- package/types/components/Divider/index.d.ts +2 -1
- package/types/components/Drawer/StyledDrawer.d.ts +0 -6
- package/types/components/Error/StyledError.d.ts +0 -4
- package/types/components/FAB/ActionGroup/ActionItem.d.ts +2 -1
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +0 -4
- package/types/components/FAB/AnimatedFABIcon.d.ts +2 -1
- package/types/components/HeroDesignProvider/index.d.ts +2 -1
- package/types/components/Icon/AnimatedIcon.d.ts +2 -1
- package/types/components/Icon/index.d.ts +2 -1
- package/types/components/Icon/utils.d.ts +1 -1
- package/types/components/Image/index.d.ts +1 -0
- package/types/components/Modal/index.d.ts +2 -2
- package/types/components/PageControl/StyledPageControl.d.ts +0 -2
- package/types/components/PageControl/index.d.ts +2 -1
- package/types/components/PinInput/PinCell.d.ts +2 -1
- package/types/components/Portal/PortalHost.d.ts +1 -1
- package/types/components/Portal/PortalProvider.d.ts +1 -1
- package/types/components/Portal/index.d.ts +2 -2
- package/types/components/Progress/ProgressBar.d.ts +1 -0
- package/types/components/Progress/StyledProgressBar.d.ts +0 -2
- package/types/components/Progress/index.d.ts +1 -0
- package/types/components/Rate/StyledRate.d.ts +0 -2
- package/types/components/Rate/index.d.ts +2 -1
- package/types/components/RefreshControl/index.d.ts +2 -1
- package/types/components/RichTextEditor/EditorToolbar.d.ts +2 -1
- package/types/components/RichTextEditor/MentionList.d.ts +2 -1
- package/types/components/RichTextEditor/index.d.ts +2 -2
- package/types/components/Select/BaseOptionList.d.ts +1 -1
- package/types/components/Select/Footer.d.ts +2 -1
- package/types/components/Select/MultiSelect/Option.d.ts +2 -1
- package/types/components/Select/MultiSelect/OptionList.d.ts +2 -1
- package/types/components/Select/MultiSelect/index.d.ts +1 -1
- package/types/components/Select/SingleSelect/Option.d.ts +2 -1
- package/types/components/Select/SingleSelect/OptionList.d.ts +1 -1
- package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +2 -1
- package/types/components/Select/SingleSelect/index.d.ts +1 -1
- package/types/components/Select/helpers.d.ts +1 -2
- package/types/components/Select/index.d.ts +2 -1
- package/types/components/Skeleton/index.d.ts +2 -1
- package/types/components/Slider/index.d.ts +2 -1
- package/types/components/Spinner/AnimatedSpinner.d.ts +2 -1
- package/types/components/Success/StyledSuccess.d.ts +0 -2
- package/types/components/Swipeable/SwipeableAction.d.ts +2 -2
- package/types/components/Swipeable/index.d.ts +3 -3
- package/types/components/Switch/SelectorSwitch/Option.d.ts +2 -1
- package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +0 -6
- package/types/components/Switch/StyledSwitch.d.ts +0 -2
- package/types/components/Tabs/ActiveTabIndicator.d.ts +2 -1
- package/types/components/Tabs/SceneView.d.ts +1 -1
- package/types/components/Tabs/ScrollableTabs.d.ts +2 -1
- package/types/components/Tabs/ScrollableTabsHeader.d.ts +2 -1
- package/types/components/Tabs/StyledScrollableTabs.d.ts +0 -4
- package/types/components/Tabs/StyledTabs.d.ts +0 -4
- package/types/components/Tabs/TabWithBadge.d.ts +2 -2
- package/types/components/Tabs/index.d.ts +2 -1
- package/types/components/TextInput/StyledTextInput.d.ts +1 -1
- package/types/components/TextInput/index.d.ts +1 -1
- package/types/components/TimePicker/TimePickerAndroid.d.ts +2 -1
- package/types/components/TimePicker/TimePickerIOS.d.ts +2 -1
- package/types/components/TimePicker/index.d.ts +2 -1
- package/types/components/Toast/StyledToast.d.ts +0 -2
- package/types/components/Toast/Toast.d.ts +1 -0
- package/types/components/Toast/ToastProvider.d.ts +2 -1
- package/types/components/Toast/index.d.ts +1 -1
- package/types/components/Toolbar/ToolbarGroup.d.ts +2 -1
- package/types/components/Toolbar/ToolbarItem.d.ts +2 -1
- package/types/components/Toolbar/index.d.ts +3 -2
- package/types/components/Typography/Body/index.d.ts +2 -1
- package/types/components/Typography/Caption/index.d.ts +2 -1
- package/types/components/Typography/Label/index.d.ts +2 -1
- package/types/components/Typography/Text/index.d.ts +2 -1
- package/types/components/Typography/Title/index.d.ts +2 -1
- package/types/testHelpers/renderWithTheme.d.ts +1 -0
- package/types/theme/ThemeSwitcher.d.ts +2 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import type { StyleProp, ViewProps, ViewStyle } from 'react-native';
|
|
3
4
|
import { IconName } from '../Icon';
|
|
4
5
|
import type { BadgeConfigType } from './TabWithBadge';
|
|
@@ -55,7 +56,7 @@ export interface TabsProps extends ViewProps {
|
|
|
55
56
|
testID?: string;
|
|
56
57
|
}
|
|
57
58
|
declare const _default: (({ onTabPress, selectedTabKey, tabs, containerStyle, barStyle, lazy, lazyPreloadDistance, swipeEnabled, testID: componentTestID, }: TabsProps) => JSX.Element) & {
|
|
58
|
-
Scroll: ({ onTabPress, selectedTabKey, tabs, containerStyle, barStyle, lazy, lazyPreloadDistance, swipeEnabled, testID: componentTestID, }: TabsProps) => JSX.Element;
|
|
59
|
+
Scroll: ({ onTabPress, selectedTabKey, tabs, containerStyle, barStyle, lazy, lazyPreloadDistance, swipeEnabled, testID: componentTestID, }: TabsProps) => React.JSX.Element;
|
|
59
60
|
useIsFocused: () => boolean | undefined;
|
|
60
61
|
};
|
|
61
62
|
export default _default;
|
|
@@ -62,7 +62,7 @@ declare const StyledMaxLengthMessage: import("@emotion/native").StyledComponent<
|
|
|
62
62
|
} & {
|
|
63
63
|
themeState: State;
|
|
64
64
|
}, {}, {}>;
|
|
65
|
-
declare const StyledHelperText: ({ children, fontWeight, intent, allowFontScaling, ...nativeProps }: import("../Typography/Caption").CaptionProps) => JSX.Element;
|
|
65
|
+
declare const StyledHelperText: ({ children, fontWeight, intent, allowFontScaling, ...nativeProps }: import("../Typography/Caption").CaptionProps) => import("react").JSX.Element;
|
|
66
66
|
declare const StyledTextInput: import("@emotion/native").StyledComponent<import("react-native").TextInputProps & {
|
|
67
67
|
theme?: import("@emotion/react").Theme | undefined;
|
|
68
68
|
as?: import("react").ElementType<any> | undefined;
|
|
@@ -91,5 +91,5 @@ export declare const getState: ({ disabled, error, editable, loading, isEmptyVal
|
|
|
91
91
|
isFocused?: boolean | undefined;
|
|
92
92
|
isEmptyValue?: boolean | undefined;
|
|
93
93
|
}) => State;
|
|
94
|
-
declare const TextInput: React.ForwardRefExoticComponent<
|
|
94
|
+
declare const TextInput: React.ForwardRefExoticComponent<Omit<TextInputProps, "ref"> & React.RefAttributes<TextInputHandles>>;
|
|
95
95
|
export default TextInput;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { TimePickerProps } from './types';
|
|
2
|
-
declare const TimePickerAndroid: ({ value, label, placeholder, onChange, displayFormat, disabled, required, error, helpText, style, testID, showSuffix, }: TimePickerProps) => JSX.Element;
|
|
3
|
+
declare const TimePickerAndroid: ({ value, label, placeholder, onChange, displayFormat, disabled, required, error, helpText, style, testID, showSuffix, }: TimePickerProps) => React.JSX.Element;
|
|
3
4
|
export default TimePickerAndroid;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { TimePickerProps } from './types';
|
|
2
|
-
declare const TimePickerIOS: ({ value, label, placeholder, onChange, confirmLabel, displayFormat, disabled, required, error, helpText, style, testID, showSuffix, }: TimePickerProps) => JSX.Element;
|
|
3
|
+
declare const TimePickerIOS: ({ value, label, placeholder, onChange, confirmLabel, displayFormat, disabled, required, error, helpText, style, testID, showSuffix, }: TimePickerProps) => React.JSX.Element;
|
|
3
4
|
export default TimePickerIOS;
|
|
@@ -11,8 +11,6 @@ declare const ToastContainerWrapper: import("@emotion/native").StyledComponent<V
|
|
|
11
11
|
ref?: import("react").Ref<View> | undefined;
|
|
12
12
|
}>;
|
|
13
13
|
declare const Container: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
|
|
14
|
-
children?: import("react").ReactNode;
|
|
15
|
-
} & {
|
|
16
14
|
theme?: import("@emotion/react").Theme | undefined;
|
|
17
15
|
as?: import("react").ElementType<any> | undefined;
|
|
18
16
|
} & {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { ReactNode } from 'react';
|
|
2
3
|
import type { ToastContainerProps } from './types';
|
|
3
4
|
type ToastProviderProps = {
|
|
@@ -6,5 +7,5 @@ type ToastProviderProps = {
|
|
|
6
7
|
*/
|
|
7
8
|
children?: ReactNode;
|
|
8
9
|
} & ToastContainerProps;
|
|
9
|
-
declare const ToastProvider: ({ children, displayType, position: _position, }: ToastProviderProps) => JSX.Element;
|
|
10
|
+
declare const ToastProvider: ({ children, displayType, position: _position, }: ToastProviderProps) => React.JSX.Element;
|
|
10
11
|
export default ToastProvider;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
declare const Toast: {
|
|
3
3
|
Provider: ({ children, displayType, position: _position, }: {
|
|
4
4
|
children?: import("react").ReactNode;
|
|
5
|
-
} & import("./types").ToastContainerProps) => JSX.Element;
|
|
5
|
+
} & import("./types").ToastContainerProps) => import("react").JSX.Element;
|
|
6
6
|
Container: import("react").ForwardRefExoticComponent<import("./types").ToastContainerProps & import("react").RefAttributes<import("./ToastContext").ToastControllerContextType>>;
|
|
7
7
|
useToast: () => import("./ToastContext").ToastControllerContextType;
|
|
8
8
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { ToolbarItemProps } from './ToolbarItem';
|
|
2
3
|
export interface ToolbarGroupProps {
|
|
3
4
|
/**
|
|
@@ -9,5 +10,5 @@ export interface ToolbarGroupProps {
|
|
|
9
10
|
*/
|
|
10
11
|
align: 'left' | 'center' | 'right';
|
|
11
12
|
}
|
|
12
|
-
declare const ToolbarGroup: ({ align, items }: ToolbarGroupProps) => JSX.Element;
|
|
13
|
+
declare const ToolbarGroup: ({ align, items }: ToolbarGroupProps) => React.JSX.Element;
|
|
13
14
|
export default ToolbarGroup;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
2
3
|
import type { IconName } from '../Icon';
|
|
3
4
|
export interface ToolbarItemProps {
|
|
@@ -26,5 +27,5 @@ export interface ToolbarItemProps {
|
|
|
26
27
|
*/
|
|
27
28
|
style?: StyleProp<ViewStyle>;
|
|
28
29
|
}
|
|
29
|
-
declare const ToolbarItem: ({ icon, label, onPress, intent, disabled, style, }: ToolbarItemProps) => JSX.Element;
|
|
30
|
+
declare const ToolbarItem: ({ icon, label, onPress, intent, disabled, style, }: ToolbarItemProps) => React.JSX.Element;
|
|
30
31
|
export default ToolbarItem;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { ReactNode } from 'react';
|
|
2
3
|
import { ViewProps } from 'react-native';
|
|
3
4
|
export interface ToolbarProps extends Omit<ViewProps, 'style'> {
|
|
@@ -6,7 +7,7 @@ export interface ToolbarProps extends Omit<ViewProps, 'style'> {
|
|
|
6
7
|
*/
|
|
7
8
|
children?: ReactNode;
|
|
8
9
|
}
|
|
9
|
-
declare const _default: (({ children, ...rest }: ToolbarProps) => JSX.Element) & {
|
|
10
|
-
Group: ({ align, items }: import("./ToolbarGroup").ToolbarGroupProps) => JSX.Element;
|
|
10
|
+
declare const _default: (({ children, ...rest }: ToolbarProps) => React.JSX.Element) & {
|
|
11
|
+
Group: ({ align, items }: import("./ToolbarGroup").ToolbarGroupProps) => React.JSX.Element;
|
|
11
12
|
};
|
|
12
13
|
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { ReactNode } from 'react';
|
|
2
3
|
import type { TextProps as NativeTextProps, StyleProp, TextStyle } from 'react-native';
|
|
3
4
|
export interface BodyProps extends NativeTextProps {
|
|
@@ -28,5 +29,5 @@ export interface BodyProps extends NativeTextProps {
|
|
|
28
29
|
* */
|
|
29
30
|
variant?: 'regular' | 'regular-bold' | 'small' | 'small-bold';
|
|
30
31
|
}
|
|
31
|
-
declare const Body: ({ children, intent, allowFontScaling, typeface, variant, ...nativeProps }: BodyProps) => JSX.Element;
|
|
32
|
+
declare const Body: ({ children, intent, allowFontScaling, typeface, variant, ...nativeProps }: BodyProps) => React.JSX.Element;
|
|
32
33
|
export default Body;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { ReactNode } from 'react';
|
|
2
3
|
import type { TextProps as NativeTextProps, StyleProp, TextStyle } from 'react-native';
|
|
3
4
|
export interface CaptionProps extends NativeTextProps {
|
|
@@ -22,5 +23,5 @@ export interface CaptionProps extends NativeTextProps {
|
|
|
22
23
|
*/
|
|
23
24
|
testID?: string;
|
|
24
25
|
}
|
|
25
|
-
declare const Caption: ({ children, fontWeight, intent, allowFontScaling, ...nativeProps }: CaptionProps) => JSX.Element;
|
|
26
|
+
declare const Caption: ({ children, fontWeight, intent, allowFontScaling, ...nativeProps }: CaptionProps) => React.JSX.Element;
|
|
26
27
|
export default Caption;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { ReactNode } from 'react';
|
|
2
3
|
import type { TextProps as NativeTextProps, StyleProp, TextStyle } from 'react-native';
|
|
3
4
|
export interface LabelProps extends NativeTextProps {
|
|
@@ -18,5 +19,5 @@ export interface LabelProps extends NativeTextProps {
|
|
|
18
19
|
*/
|
|
19
20
|
testID?: string;
|
|
20
21
|
}
|
|
21
|
-
declare const Label: ({ children, intent, allowFontScaling, ...nativeProps }: LabelProps) => JSX.Element;
|
|
22
|
+
declare const Label: ({ children, intent, allowFontScaling, ...nativeProps }: LabelProps) => React.JSX.Element;
|
|
22
23
|
export default Label;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { ReactNode } from 'react';
|
|
2
3
|
import type { TextProps as NativeTextProps, StyleProp, TextStyle } from 'react-native';
|
|
3
4
|
export interface TextProps extends NativeTextProps {
|
|
@@ -32,5 +33,5 @@ export interface TextProps extends NativeTextProps {
|
|
|
32
33
|
*/
|
|
33
34
|
typeface?: 'neutral' | 'playful';
|
|
34
35
|
}
|
|
35
|
-
declare const Text: ({ children, fontSize, fontWeight, intent, typeface, allowFontScaling, ...nativeProps }: TextProps) => JSX.Element;
|
|
36
|
+
declare const Text: ({ children, fontSize, fontWeight, intent, typeface, allowFontScaling, ...nativeProps }: TextProps) => React.JSX.Element;
|
|
36
37
|
export default Text;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { ReactNode } from 'react';
|
|
2
3
|
import type { TextProps as NativeTextProps, StyleProp, TextStyle } from 'react-native';
|
|
3
4
|
export interface TitleProps extends NativeTextProps {
|
|
@@ -28,5 +29,5 @@ export interface TitleProps extends NativeTextProps {
|
|
|
28
29
|
*/
|
|
29
30
|
level?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
30
31
|
}
|
|
31
|
-
declare const Title: ({ children, intent, allowFontScaling, level, typeface, ...nativeProps }: TitleProps) => JSX.Element;
|
|
32
|
+
declare const Title: ({ children, intent, allowFontScaling, level, typeface, ...nativeProps }: TitleProps) => React.JSX.Element;
|
|
32
33
|
export default Title;
|
|
@@ -3,6 +3,6 @@ type ThemeName = 'swag' | 'swagDark' | 'work' | 'jobs' | 'wallet' | 'eBens';
|
|
|
3
3
|
declare const ThemeSwitcher: ({ name, children, }: {
|
|
4
4
|
name?: ThemeName | undefined;
|
|
5
5
|
children: React.ReactNode;
|
|
6
|
-
}) => JSX.Element;
|
|
7
|
-
export declare const withTheme: <P extends Record<string, unknown>>(C: React.ComponentType<P>, themeName: ThemeName) => (props: React.PropsWithChildren<P>) => JSX.Element;
|
|
6
|
+
}) => React.JSX.Element;
|
|
7
|
+
export declare const withTheme: <P extends Record<string, unknown>>(C: React.ComponentType<P>, themeName: ThemeName) => (props: React.PropsWithChildren<P>) => React.JSX.Element;
|
|
8
8
|
export default ThemeSwitcher;
|