@hero-design/rn 8.42.4 → 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 +20 -0
- package/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/es/index.js +2174 -1988
- package/jest-setup.ts +2 -0
- package/lib/assets/fonts/hero-icons-mobile.ttf +0 -0
- package/lib/index.js +2173 -1986
- 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 +247 -211
- package/src/components/BottomSheet/index.tsx +1 -1
- package/src/components/Button/LoadingIndicator/StyledLoadingIndicator.tsx +6 -10
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +0 -20
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +0 -70
- package/src/components/Button/StyledButton.tsx +4 -0
- package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +34 -0
- package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +144 -42
- package/src/components/Button/__tests__/__snapshots__/IconButton.spec.tsx.snap +17 -0
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +90 -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 +39 -0
- package/src/components/Carousel/__tests__/index.spec.tsx +8 -10
- 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/StyledChip.tsx +121 -0
- package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +1147 -0
- package/src/components/Chip/__tests__/index.spec.tsx +136 -0
- package/src/components/Chip/index.tsx +82 -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 +48 -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 +470 -399
- package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +51 -0
- package/src/components/Error/__tests__/index.spec.tsx +9 -6
- 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/Icon/HeroIcon/glyphMap.json +1 -1
- package/src/components/Icon/IconList.ts +1 -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__/RichTextEditor.spec.tsx +8 -10
- 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 +804 -455
- package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +7 -10
- 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 +790 -532
- package/src/components/Success/__tests__/index.spec.tsx +9 -6
- 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__/SceneView.spec.tsx +19 -23
- 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 +482 -399
- 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/src/index.ts +2 -0
- package/src/testHelpers/renderWithTheme.tsx +1 -7
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +38 -1
- package/src/theme/components/button.ts +0 -1
- package/src/theme/components/chip.ts +47 -0
- package/src/theme/getTheme.ts +3 -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/StyledLoadingIndicator.d.ts +3 -3
- 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/StyledChip.d.ts +31 -0
- package/types/components/Chip/index.d.ts +27 -0
- 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/IconList.d.ts +1 -1
- package/types/components/Icon/index.d.ts +3 -2
- 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/index.d.ts +2 -1
- package/types/testHelpers/renderWithTheme.d.ts +1 -0
- package/types/theme/ThemeSwitcher.d.ts +2 -2
- package/types/theme/components/button.d.ts +0 -1
- package/types/theme/components/chip.d.ts +40 -0
- package/types/theme/getTheme.d.ts +2 -0
- package/.turbo/turbo-publish:npm.log +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
export interface ModalProps {
|
|
3
3
|
/**
|
|
4
4
|
* Content of the modal.
|
|
@@ -33,5 +33,5 @@ export interface ModalProps {
|
|
|
33
33
|
*/
|
|
34
34
|
onDismiss?: () => void;
|
|
35
35
|
}
|
|
36
|
-
declare const ModalWrapper: ({ visible, ...props }: ModalProps) => JSX.Element | null;
|
|
36
|
+
declare const ModalWrapper: ({ visible, ...props }: ModalProps) => React.JSX.Element | null;
|
|
37
37
|
export default ModalWrapper;
|
|
@@ -7,8 +7,6 @@ declare const StyledPageControl: import("@emotion/native").StyledComponent<impor
|
|
|
7
7
|
ref?: import("react").Ref<View> | undefined;
|
|
8
8
|
}>;
|
|
9
9
|
declare const StyledPageControlAnimatedView: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
10
|
-
children?: import("react").ReactNode;
|
|
11
|
-
} & {
|
|
12
10
|
theme?: import("@emotion/react").Theme | undefined;
|
|
13
11
|
as?: import("react").ElementType<any> | undefined;
|
|
14
12
|
}, {}, {}>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
2
3
|
export interface PageControlProps {
|
|
3
4
|
/**
|
|
@@ -17,5 +18,5 @@ export interface PageControlProps {
|
|
|
17
18
|
*/
|
|
18
19
|
testID?: string;
|
|
19
20
|
}
|
|
20
|
-
declare const PageControl: ({ numberOfPages, currentPage, testID, style, }: PageControlProps) => JSX.Element;
|
|
21
|
+
declare const PageControl: ({ numberOfPages, currentPage, testID, style, }: PageControlProps) => React.JSX.Element;
|
|
21
22
|
export default PageControl;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { State } from './StyledPinInput';
|
|
2
3
|
declare function PinCell({ value, secure, focused, state, }: {
|
|
3
4
|
value: string;
|
|
4
5
|
secure?: boolean;
|
|
5
6
|
focused?: boolean;
|
|
6
7
|
state?: State;
|
|
7
|
-
}): JSX.Element;
|
|
8
|
+
}): React.JSX.Element;
|
|
8
9
|
export default PinCell;
|
|
@@ -2,4 +2,4 @@ import React from 'react';
|
|
|
2
2
|
export interface PortalHostProps {
|
|
3
3
|
name: string;
|
|
4
4
|
}
|
|
5
|
-
export declare const PortalHost: React.MemoExoticComponent<({ name }: PortalHostProps) => JSX.Element>;
|
|
5
|
+
export declare const PortalHost: React.MemoExoticComponent<({ name }: PortalHostProps) => React.JSX.Element>;
|
|
@@ -4,4 +4,4 @@ export interface PortalProviderProps {
|
|
|
4
4
|
rootHostName?: string;
|
|
5
5
|
children: ReactNode | ReactNode[];
|
|
6
6
|
}
|
|
7
|
-
export declare const PortalProvider: React.MemoExoticComponent<({ rootHostName, children, }: PortalProviderProps) => JSX.Element>;
|
|
7
|
+
export declare const PortalProvider: React.MemoExoticComponent<({ rootHostName, children, }: PortalProviderProps) => React.JSX.Element>;
|
|
@@ -12,7 +12,7 @@ export interface PortalProps {
|
|
|
12
12
|
declare const _default: React.NamedExoticComponent<PortalProps> & {
|
|
13
13
|
readonly type: ({ name, hostName, children, theme }: PortalProps) => null;
|
|
14
14
|
} & {
|
|
15
|
-
Provider: React.MemoExoticComponent<({ rootHostName, children, }: import("./PortalProvider").PortalProviderProps) => JSX.Element>;
|
|
16
|
-
Host: React.MemoExoticComponent<({ name }: import("./PortalHost").PortalHostProps) => JSX.Element>;
|
|
15
|
+
Provider: React.MemoExoticComponent<({ rootHostName, children, }: import("./PortalProvider").PortalProviderProps) => React.JSX.Element>;
|
|
16
|
+
Host: React.MemoExoticComponent<({ name }: import("./PortalHost").PortalHostProps) => React.JSX.Element>;
|
|
17
17
|
};
|
|
18
18
|
export default _default;
|
|
@@ -11,8 +11,6 @@ declare const StyledWrapper: import("@emotion/native").StyledComponent<ViewProps
|
|
|
11
11
|
ref?: import("react").Ref<View> | undefined;
|
|
12
12
|
}>;
|
|
13
13
|
declare const StyledInner: 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
|
+
/// <reference types="react" />
|
|
1
2
|
declare const Progress: {
|
|
2
3
|
readonly Circle: ({ value, renderValue, intent, style, testID, ...nativeProps }: import("./ProgressCircle").ProgressCircleProps) => JSX.Element;
|
|
3
4
|
readonly Bar: ({ value, intent, style, testID, ...nativeProps }: import("./ProgressBar").ProgressBarProps) => JSX.Element;
|
|
@@ -5,8 +5,6 @@ declare const StyledWrapper: import("@emotion/native").StyledComponent<import(".
|
|
|
5
5
|
as?: import("react").ElementType<any> | undefined;
|
|
6
6
|
}, {}, {}>;
|
|
7
7
|
declare const StyledIconWrapper: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
8
|
-
children?: import("react").ReactNode;
|
|
9
|
-
} & {
|
|
10
8
|
theme?: import("@emotion/react").Theme | undefined;
|
|
11
9
|
as?: import("react").ElementType<any> | undefined;
|
|
12
10
|
}, {}, {}>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { ViewProps } from 'react-native';
|
|
2
3
|
export interface RateOption<T extends string | number> {
|
|
3
4
|
value: T;
|
|
@@ -24,5 +25,5 @@ export interface RateProps<T extends string | number> extends ViewProps {
|
|
|
24
25
|
*/
|
|
25
26
|
disabled?: boolean;
|
|
26
27
|
}
|
|
27
|
-
declare const Rate: <T extends string | number>({ options, value, onChange, readonly, disabled, ...otherProps }: RateProps<T>) => JSX.Element;
|
|
28
|
+
declare const Rate: <T extends string | number>({ options, value, onChange, readonly, disabled, ...otherProps }: RateProps<T>) => React.JSX.Element;
|
|
28
29
|
export default Rate;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { RefreshControlProps as NativeRefreshControlProps } from 'react-native';
|
|
2
3
|
export type RefreshControlProps = Omit<NativeRefreshControlProps, 'colors' | 'tintColor'>;
|
|
3
|
-
declare const RefreshControl: ({ ...props }: RefreshControlProps) => JSX.Element;
|
|
4
|
+
declare const RefreshControl: ({ ...props }: RefreshControlProps) => React.JSX.Element;
|
|
4
5
|
export default RefreshControl;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { ToolbarButtonName } from './types';
|
|
2
3
|
export interface EditorToolbarProps {
|
|
3
4
|
/**
|
|
@@ -13,5 +14,5 @@ export interface EditorToolbarProps {
|
|
|
13
14
|
*/
|
|
14
15
|
testID?: string;
|
|
15
16
|
}
|
|
16
|
-
declare const EditorToolbar: ({ name, buttons, testID, }: EditorToolbarProps) => JSX.Element | null;
|
|
17
|
+
declare const EditorToolbar: ({ name, buttons, testID, }: EditorToolbarProps) => React.JSX.Element | null;
|
|
17
18
|
export default EditorToolbar;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface OnSelectOptionsType<TMetaData> {
|
|
2
3
|
highlighted: boolean;
|
|
3
4
|
meta?: TMetaData;
|
|
@@ -12,5 +13,5 @@ export interface MentionListProps<TMetaData = unknown> {
|
|
|
12
13
|
*/
|
|
13
14
|
render: (searchText: string, onSelect: (id: string, name: string, options?: OnSelectOptionsType<TMetaData>) => void) => JSX.Element;
|
|
14
15
|
}
|
|
15
|
-
declare const MentionList: <TMetaData>({ name: eventPrefix, render, }: MentionListProps<TMetaData>) => JSX.Element | null;
|
|
16
|
+
declare const MentionList: <TMetaData>({ name: eventPrefix, render, }: MentionListProps<TMetaData>) => React.JSX.Element | null;
|
|
16
17
|
export default MentionList;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import type { RichTextEditorProps, RichTextEditorRef } from './RichTextEditor';
|
|
3
3
|
export type { RichTextEditorProps, RichTextEditorRef };
|
|
4
4
|
declare const _default: import("react").ForwardRefExoticComponent<Omit<RichTextEditorProps, "forwardedRef"> & import("react").RefAttributes<RichTextEditorRef>> & {
|
|
5
|
-
MentionList: <TMetaData>({ name: eventPrefix, render, }: import("./MentionList").MentionListProps<TMetaData>) => JSX.Element | null;
|
|
6
|
-
Toolbar: ({ name, buttons, testID, }: import("./EditorToolbar").EditorToolbarProps) => JSX.Element | null;
|
|
5
|
+
MentionList: <TMetaData>({ name: eventPrefix, render, }: import("./MentionList").MentionListProps<TMetaData>) => import("react").JSX.Element | null;
|
|
6
|
+
Toolbar: ({ name, buttons, testID, }: import("./EditorToolbar").EditorToolbarProps) => import("react").JSX.Element | null;
|
|
7
7
|
};
|
|
8
8
|
export default _default;
|
|
@@ -4,5 +4,5 @@ import type { OptionType, SelectProps, SectionType } from './types';
|
|
|
4
4
|
export type BaseOptionListProps<V, T extends OptionType<V>> = Pick<SelectProps<V, T>, 'keyExtractor' | 'loading' | 'onEndReached' | 'onQueryChange'> & {
|
|
5
5
|
sectionListRef?: React.RefObject<SectionList<T, SectionType>>;
|
|
6
6
|
} & SectionListProps<T, SectionType>;
|
|
7
|
-
declare const BaseOptionList: <V, T extends OptionType<V>>({ keyExtractor, loading, onEndReached, onQueryChange, sections, renderItem, sectionListRef, ...rest }: BaseOptionListProps<V, T>) => JSX.Element;
|
|
7
|
+
declare const BaseOptionList: <V, T extends OptionType<V>>({ keyExtractor, loading, onEndReached, onQueryChange, sections, renderItem, sectionListRef, ...rest }: BaseOptionListProps<V, T>) => React.JSX.Element;
|
|
8
8
|
export default BaseOptionList;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { ReactElement } from 'react';
|
|
2
3
|
declare const Option: ({ text, disabled, selected, onPress, highlighted, }: {
|
|
3
4
|
text: string | ReactElement;
|
|
@@ -5,5 +6,5 @@ declare const Option: ({ text, disabled, selected, onPress, highlighted, }: {
|
|
|
5
6
|
selected: boolean;
|
|
6
7
|
onPress: () => void;
|
|
7
8
|
highlighted?: boolean | undefined;
|
|
8
|
-
}) => JSX.Element;
|
|
9
|
+
}) => React.JSX.Element;
|
|
9
10
|
export default Option;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { BaseOptionListProps } from '../BaseOptionList';
|
|
2
3
|
import type { MultiSelectProps } from '.';
|
|
3
4
|
import type { OptionType } from '../types';
|
|
4
5
|
type OptionListProps<V, T extends OptionType<V>> = Pick<MultiSelectProps<V, T>, 'keyExtractor' | 'loading' | 'onEndReached' | 'onQueryChange' | 'value' | 'renderOption'> & {
|
|
5
6
|
onPress: (value: V[]) => void;
|
|
6
7
|
} & BaseOptionListProps<V, T>;
|
|
7
|
-
declare const OptionList: <V, T extends OptionType<V>>({ keyExtractor, loading, onEndReached, onPress, onQueryChange, sections, renderOption, value, sectionListRef, ...rest }: OptionListProps<V, T>) => JSX.Element;
|
|
8
|
+
declare const OptionList: <V, T extends OptionType<V>>({ keyExtractor, loading, onEndReached, onPress, onQueryChange, sections, renderOption, value, sectionListRef, ...rest }: OptionListProps<V, T>) => React.JSX.Element;
|
|
8
9
|
export default OptionList;
|
|
@@ -22,5 +22,5 @@ export interface MultiSelectProps<V, T extends OptionType<V> = OptionType<V>> ex
|
|
|
22
22
|
*/
|
|
23
23
|
renderSelectedValue?: (selectedValue: V[], inputProps: NativeTextInputProps) => React.ReactNode;
|
|
24
24
|
}
|
|
25
|
-
declare function MultiSelect<V, T extends OptionType<V>>({ footerLabel, label, loading, inputProps, onConfirm, onDismiss, onEndReached, onQueryChange, options, renderOption, renderSelectedValue, query, error, editable, disabled, required, style, testID, value, }: MultiSelectProps<V, T>): JSX.Element;
|
|
25
|
+
declare function MultiSelect<V, T extends OptionType<V>>({ footerLabel, label, loading, inputProps, onConfirm, onDismiss, onEndReached, onQueryChange, options, renderOption, renderSelectedValue, query, error, editable, disabled, required, style, testID, value, }: MultiSelectProps<V, T>): React.JSX.Element;
|
|
26
26
|
export default MultiSelect;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { ReactElement } from 'react';
|
|
2
3
|
declare const Option: ({ text, disabled, selected, onPress, highlighted, }: {
|
|
3
4
|
text: string | ReactElement;
|
|
@@ -5,5 +6,5 @@ declare const Option: ({ text, disabled, selected, onPress, highlighted, }: {
|
|
|
5
6
|
selected: boolean;
|
|
6
7
|
onPress: () => void;
|
|
7
8
|
highlighted?: boolean | undefined;
|
|
8
|
-
}) => JSX.Element;
|
|
9
|
+
}) => React.JSX.Element;
|
|
9
10
|
export default Option;
|
|
@@ -7,5 +7,5 @@ type OptionListProps<V, T extends OptionType<V>> = Pick<SingleSelectProps<V, T>,
|
|
|
7
7
|
onPress: (value: V | null) => void;
|
|
8
8
|
sectionListRef?: React.RefObject<SectionList<T, SectionType>>;
|
|
9
9
|
} & BaseOptionListProps<V, T>;
|
|
10
|
-
declare const OptionList: <V, T extends OptionType<V>>({ keyExtractor, loading, onEndReached, onPress, onQueryChange, sections, renderOption, value, sectionListRef, ...rest }: OptionListProps<V, T>) => JSX.Element;
|
|
10
|
+
declare const OptionList: <V, T extends OptionType<V>>({ keyExtractor, loading, onEndReached, onPress, onQueryChange, sections, renderOption, value, sectionListRef, ...rest }: OptionListProps<V, T>) => React.JSX.Element;
|
|
11
11
|
export default OptionList;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledOptionList: <V, T extends import("../types").OptionType<V>>({ keyExtractor, loading, onEndReached, onQueryChange, sections, renderItem, sectionListRef, ...rest }: import("../BaseOptionList").BaseOptionListProps<V, T>) => import("react").JSX.Element;
|
|
@@ -15,5 +15,5 @@ export interface SingleSelectProps<V, T extends OptionType<V> = OptionType<V>> e
|
|
|
15
15
|
*/
|
|
16
16
|
renderSelectedValue?: (selectedValue: V | null, inputProps: NativeTextInputProps) => React.ReactNode;
|
|
17
17
|
}
|
|
18
|
-
declare const SingleSelect: <V, T extends OptionType<V>>({ label, loading, inputProps, onConfirm, onDismiss, onEndReached, onQueryChange, options, renderOption, renderSelectedValue, query, error, editable, disabled, required, style, testID, value, }: SingleSelectProps<V, T>) => JSX.Element;
|
|
18
|
+
declare const SingleSelect: <V, T extends OptionType<V>>({ label, loading, inputProps, onConfirm, onDismiss, onEndReached, onQueryChange, options, renderOption, renderSelectedValue, query, error, editable, disabled, required, style, testID, value, }: SingleSelectProps<V, T>) => React.JSX.Element;
|
|
19
19
|
export default SingleSelect;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import type { SectionData, CombinedOptionsType, OptionType } from './types';
|
|
3
|
-
export declare const getKey: <V, T extends OptionType<V>>(option: T, index: number, keyExtractor?: ((opt: T, i?: number) => string) | undefined) =>
|
|
2
|
+
export declare const getKey: <V, T extends OptionType<V>>(option: T, index: number, keyExtractor?: ((opt: T, i?: number) => string) | undefined) => string | number;
|
|
4
3
|
export declare const isSections: <V, T extends OptionType<V>>(options: CombinedOptionsType<V, T>) => options is SectionData<V, T>[];
|
|
5
4
|
export declare const toSections: <V, T extends OptionType<V>>(options: CombinedOptionsType<V, T>) => SectionData<V, T>[];
|
|
6
5
|
export declare const toFlatOptions: <V, T extends OptionType<V>>(options: CombinedOptionsType<V, T>) => OptionType<V>[];
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import MultiSelect from './MultiSelect';
|
|
2
3
|
import type { MultiSelectProps } from './MultiSelect';
|
|
3
4
|
import type { SingleSelectProps } from './SingleSelect';
|
|
4
5
|
export type { MultiSelectProps, SingleSelectProps };
|
|
5
|
-
declare const _default: (<V, T extends import("./types").OptionType<V>>({ label, loading, inputProps, onConfirm, onDismiss, onEndReached, onQueryChange, options, renderOption, renderSelectedValue, query, error, editable, disabled, required, style, testID, value, }: SingleSelectProps<V, T>) => JSX.Element) & {
|
|
6
|
+
declare const _default: (<V, T extends import("./types").OptionType<V>>({ label, loading, inputProps, onConfirm, onDismiss, onEndReached, onQueryChange, options, renderOption, renderSelectedValue, query, error, editable, disabled, required, style, testID, value, }: SingleSelectProps<V, T>) => import("react").JSX.Element) & {
|
|
6
7
|
Multi: typeof MultiSelect;
|
|
7
8
|
};
|
|
8
9
|
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { ViewProps } from 'react-native';
|
|
2
3
|
export interface SkeletonProps extends ViewProps {
|
|
3
4
|
/**
|
|
@@ -9,5 +10,5 @@ export interface SkeletonProps extends ViewProps {
|
|
|
9
10
|
*/
|
|
10
11
|
variant?: 'circular' | 'rectangular' | 'rounded';
|
|
11
12
|
}
|
|
12
|
-
declare const Skeleton: ({ intent, variant, style, onLayout, ...props }: SkeletonProps) => JSX.Element;
|
|
13
|
+
declare const Skeleton: ({ intent, variant, style, onLayout, ...props }: SkeletonProps) => React.JSX.Element;
|
|
13
14
|
export default Skeleton;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
2
3
|
export interface SliderProps {
|
|
3
4
|
/**
|
|
@@ -48,5 +49,5 @@ export interface SliderProps {
|
|
|
48
49
|
*/
|
|
49
50
|
testID?: string;
|
|
50
51
|
}
|
|
51
|
-
declare const Slider: ({ minimumValue, maximumValue, step, value, onValueChange, onSlidingStart, onSlidingComplete, disabled, style, testID, }: SliderProps) => JSX.Element;
|
|
52
|
+
declare const Slider: ({ minimumValue, maximumValue, step, value, onValueChange, onSlidingStart, onSlidingComplete, disabled, style, testID, }: SliderProps) => React.JSX.Element;
|
|
52
53
|
export default Slider;
|
|
@@ -40,8 +40,6 @@ declare const StyledSuccessButtonContainer: import("@emotion/native").StyledComp
|
|
|
40
40
|
ref?: import("react").Ref<View> | undefined;
|
|
41
41
|
}>;
|
|
42
42
|
declare const StyledSuccessButtonPrimary: import("@emotion/native").StyledComponent<import("../Button/Button").ButtonProps & {
|
|
43
|
-
children?: import("react").ReactNode;
|
|
44
|
-
} & {
|
|
45
43
|
theme?: import("@emotion/react").Theme | undefined;
|
|
46
44
|
as?: import("react").ElementType<any> | undefined;
|
|
47
45
|
}, {}, {}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
import { ActionIntent } from './StyledSwipeable';
|
|
4
4
|
export interface SwipeableActionProps {
|
|
@@ -23,5 +23,5 @@ export interface SwipeableActionProps {
|
|
|
23
23
|
*/
|
|
24
24
|
testID?: string;
|
|
25
25
|
}
|
|
26
|
-
declare const SwipeableAction: ({ intent, onPress, style, children, testID, }: SwipeableActionProps) => JSX.Element;
|
|
26
|
+
declare const SwipeableAction: ({ intent, onPress, style, children, testID, }: SwipeableActionProps) => React.JSX.Element;
|
|
27
27
|
export default SwipeableAction;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentProps, ReactNode } from 'react';
|
|
1
|
+
import React, { ComponentProps, ReactNode } from 'react';
|
|
2
2
|
import { RectButton, Swipeable as RnghSwipeable } from 'react-native-gesture-handler';
|
|
3
3
|
type State = 'closed' | 'leftOpen' | 'rightOpen';
|
|
4
4
|
type RnghSwipeableProps = ComponentProps<typeof RnghSwipeable>;
|
|
@@ -38,8 +38,8 @@ export interface SwipeableProps extends Pick<RnghSwipeableProps, 'enableTrackpad
|
|
|
38
38
|
*/
|
|
39
39
|
testID?: string;
|
|
40
40
|
}
|
|
41
|
-
declare const _default: (({ children, state, onStateChange, leftActions, leftActionsWidth, rightActions, rightActionsWidth, ...swipeableProps }: SwipeableProps) => JSX.Element) & {
|
|
42
|
-
Action: ({ intent, onPress, style, children, testID, }: import("./SwipeableAction").SwipeableActionProps) => JSX.Element;
|
|
41
|
+
declare const _default: (({ children, state, onStateChange, leftActions, leftActionsWidth, rightActions, rightActionsWidth, ...swipeableProps }: SwipeableProps) => React.JSX.Element) & {
|
|
42
|
+
Action: ({ intent, onPress, style, children, testID, }: import("./SwipeableAction").SwipeableActionProps) => React.JSX.Element;
|
|
43
43
|
Content: typeof RectButton;
|
|
44
44
|
};
|
|
45
45
|
export default _default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { ReactElement } from 'react';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import { LayoutChangeEvent } from 'react-native';
|
|
3
4
|
import type { BadgeConfigType, OptionType } from '.';
|
|
4
5
|
export declare const OptionContent: ({ content, badge, }: {
|
|
@@ -6,7 +7,7 @@ export declare const OptionContent: ({ content, badge, }: {
|
|
|
6
7
|
badge?: {
|
|
7
8
|
type: "status";
|
|
8
9
|
} | undefined;
|
|
9
|
-
}) => JSX.Element;
|
|
10
|
+
}) => React.JSX.Element;
|
|
10
11
|
declare const Option: <T>({ text, icon, badge, selected, onLayout, index, }: Pick<OptionType<T>, "text" | "icon" | "badge"> & {
|
|
11
12
|
selected: boolean;
|
|
12
13
|
onLayout?: ((e: LayoutChangeEvent) => void) | undefined;
|
|
@@ -7,20 +7,14 @@ export declare const StyledWrapper: import("@emotion/native").StyledComponent<im
|
|
|
7
7
|
ref?: import("react").Ref<View> | undefined;
|
|
8
8
|
}>;
|
|
9
9
|
export declare const StyledTextWrapper: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
10
|
-
children?: import("react").ReactNode;
|
|
11
|
-
} & {
|
|
12
10
|
theme?: import("@emotion/react").Theme | undefined;
|
|
13
11
|
as?: import("react").ElementType<any> | undefined;
|
|
14
12
|
}, {}, {}>;
|
|
15
13
|
export declare const StyledIconWrapper: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
16
|
-
children?: import("react").ReactNode;
|
|
17
|
-
} & {
|
|
18
14
|
theme?: import("@emotion/react").Theme | undefined;
|
|
19
15
|
as?: import("react").ElementType<any> | undefined;
|
|
20
16
|
}, {}, {}>;
|
|
21
17
|
export declare const StyledKnot: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
22
|
-
children?: import("react").ReactNode;
|
|
23
|
-
} & {
|
|
24
18
|
theme?: import("@emotion/react").Theme | undefined;
|
|
25
19
|
as?: import("react").ElementType<any> | undefined;
|
|
26
20
|
}, {}, {}>;
|
|
@@ -10,8 +10,6 @@ declare const StyledWrapper: import("@emotion/native").StyledComponent<import("r
|
|
|
10
10
|
ref?: import("react").Ref<View> | undefined;
|
|
11
11
|
}>;
|
|
12
12
|
declare const StyledKnot: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
13
|
-
children?: import("react").ReactNode;
|
|
14
|
-
} & {
|
|
15
13
|
theme?: import("@emotion/react").Theme | undefined;
|
|
16
14
|
as?: import("react").ElementType<any> | undefined;
|
|
17
15
|
}, {}, {}>;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { Animated } from 'react-native';
|
|
2
3
|
declare const ActiveTabIndicator: ({ scrollOffsetAnimatedValue, positionAnimatedValue, tabsLength, tabsWidth, }: {
|
|
3
4
|
scrollOffsetAnimatedValue: Animated.Value;
|
|
4
5
|
positionAnimatedValue: Animated.Value;
|
|
5
6
|
tabsLength: number;
|
|
6
7
|
tabsWidth: number;
|
|
7
|
-
}) => JSX.Element;
|
|
8
|
+
}) => React.JSX.Element;
|
|
8
9
|
export default ActiveTabIndicator;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { TabsProps } from '.';
|
|
2
|
-
declare const ScrollableTab: ({ onTabPress, selectedTabKey, tabs, containerStyle, barStyle, lazy, lazyPreloadDistance, swipeEnabled, testID: componentTestID, }: TabsProps) => JSX.Element;
|
|
3
|
+
declare const ScrollableTab: ({ onTabPress, selectedTabKey, tabs, containerStyle, barStyle, lazy, lazyPreloadDistance, swipeEnabled, testID: componentTestID, }: TabsProps) => React.JSX.Element;
|
|
3
4
|
export default ScrollableTab;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { StyleProp, ViewStyle, ViewProps } from 'react-native';
|
|
2
3
|
import type { TabType } from '.';
|
|
3
4
|
export interface ScrollableTabHeaderProps extends ViewProps {
|
|
@@ -31,5 +32,5 @@ export interface ScrollableTabHeaderProps extends ViewProps {
|
|
|
31
32
|
left: number;
|
|
32
33
|
};
|
|
33
34
|
}
|
|
34
|
-
declare const ScrollableTabHeader: ({ onTabPress, selectedIndex, tabs, barStyle, testID, insets, }: ScrollableTabHeaderProps) => JSX.Element;
|
|
35
|
+
declare const ScrollableTabHeader: ({ onTabPress, selectedIndex, tabs, barStyle, testID, insets, }: ScrollableTabHeaderProps) => React.JSX.Element;
|
|
35
36
|
export default ScrollableTabHeader;
|
|
@@ -33,8 +33,6 @@ declare const HeaderTabWrapper: import("@emotion/native").StyledComponent<import
|
|
|
33
33
|
ref?: import("react").Ref<View> | undefined;
|
|
34
34
|
}>;
|
|
35
35
|
declare const HeaderTabItem: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
36
|
-
children?: import("react").ReactNode;
|
|
37
|
-
} & {
|
|
38
36
|
theme?: import("@emotion/react").Theme | undefined;
|
|
39
37
|
as?: import("react").ElementType<any> | undefined;
|
|
40
38
|
} & {
|
|
@@ -47,8 +45,6 @@ declare const HeaderTabItemOutlineWrapper: import("@emotion/native").StyledCompo
|
|
|
47
45
|
ref?: import("react").Ref<View> | undefined;
|
|
48
46
|
}>;
|
|
49
47
|
declare const HeaderTabItemOutline: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
50
|
-
children?: import("react").ReactNode;
|
|
51
|
-
} & {
|
|
52
48
|
theme?: import("@emotion/react").Theme | undefined;
|
|
53
49
|
as?: import("react").ElementType<any> | undefined;
|
|
54
50
|
} & {
|
|
@@ -33,8 +33,6 @@ declare const HeaderTabItem: import("@emotion/native").StyledComponent<import("r
|
|
|
33
33
|
ref?: import("react").Ref<View> | undefined;
|
|
34
34
|
}>;
|
|
35
35
|
declare const ContentWrapper: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native-pager-view").PagerViewProps & import("react").RefAttributes<PagerView>> & {
|
|
36
|
-
children?: import("react").ReactNode;
|
|
37
|
-
} & {
|
|
38
36
|
theme?: import("@emotion/react").Theme | undefined;
|
|
39
37
|
as?: import("react").ElementType<any> | undefined;
|
|
40
38
|
}, {}, {}>;
|
|
@@ -45,8 +43,6 @@ declare const TabScreen: import("@emotion/native").StyledComponent<import("react
|
|
|
45
43
|
ref?: import("react").Ref<View> | undefined;
|
|
46
44
|
}>;
|
|
47
45
|
declare const StyledIndicator: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
48
|
-
children?: import("react").ReactNode;
|
|
49
|
-
} & {
|
|
50
46
|
theme?: import("@emotion/react").Theme | undefined;
|
|
51
47
|
as?: import("react").ElementType<any> | undefined;
|
|
52
48
|
} & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
export type StatusBadgeType = {
|
|
3
3
|
type: 'status';
|
|
4
4
|
};
|
|
@@ -12,5 +12,5 @@ interface TabWithBadgeProps {
|
|
|
12
12
|
config?: BadgeConfigType;
|
|
13
13
|
tabItem: ReactNode;
|
|
14
14
|
}
|
|
15
|
-
declare const TabWithBadge: ({ config, tabItem }: TabWithBadgeProps) => JSX.Element;
|
|
15
|
+
declare const TabWithBadge: ({ config, tabItem }: TabWithBadgeProps) => React.JSX.Element;
|
|
16
16
|
export default TabWithBadge;
|
|
@@ -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;
|