@hero-design/rn 8.82.2-alpha.0 → 8.82.2-alpha.2
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/CHANGELOG.md +0 -6
- package/es/index.js +40 -0
- package/eslint.config.js +2 -4
- package/lib/index.js +40 -0
- package/package.json +3 -3
- package/types/components/Accordion/AccordionItem.d.ts +1 -1
- package/types/components/Accordion/StyledAccordion.d.ts +11 -11
- package/types/components/Accordion/index.d.ts +1 -1
- package/types/components/Alert/StyledAlert.d.ts +16 -16
- package/types/components/Alert/index.d.ts +1 -1
- package/types/components/Attachment/StyledAttachment.d.ts +8 -8
- package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +9 -9
- package/types/components/Avatar/StyledAvatar.d.ts +10 -10
- package/types/components/Badge/StyledBadge.d.ts +12 -12
- package/types/components/Badge/index.d.ts +1 -1
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +15 -15
- package/types/components/BottomNavigation/index.d.ts +1 -1
- package/types/components/BottomSheet/BottomSheetContext.d.ts +1 -1
- package/types/components/BottomSheet/Header.d.ts +2 -2
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +22 -22
- package/types/components/Box/StyledBox.d.ts +2 -2
- package/types/components/Box/config.d.ts +2 -2
- package/types/components/Box/types.d.ts +3 -3
- package/types/components/Button/Button.d.ts +1 -1
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +6 -6
- package/types/components/Button/LoadingIndicator/index.d.ts +1 -1
- package/types/components/Button/StyledButton.d.ts +22 -22
- package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +6 -6
- package/types/components/Calendar/StyledCalendar.d.ts +22 -22
- package/types/components/Card/DataCard/StyledDataCard.d.ts +5 -5
- package/types/components/Card/StyledCard.d.ts +4 -4
- package/types/components/Carousel/CardCarousel.d.ts +1 -1
- package/types/components/Carousel/StyledCardCarousel.d.ts +8 -8
- package/types/components/Carousel/StyledCarousel.d.ts +21 -21
- package/types/components/Carousel/types.d.ts +2 -2
- package/types/components/Checkbox/StyledCheckbox.d.ts +11 -11
- package/types/components/Checkbox/index.d.ts +1 -1
- package/types/components/Chip/StyledChip.d.ts +5 -5
- package/types/components/Collapse/StyledCollapse.d.ts +6 -6
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +2 -2
- package/types/components/DatePicker/DatePickerAndroid.d.ts +1 -1
- package/types/components/DatePicker/DatePickerCalendar.d.ts +1 -1
- package/types/components/DatePicker/DatePickerIOS.d.ts +1 -1
- package/types/components/DatePicker/StyledDatePicker.d.ts +2 -2
- package/types/components/DatePicker/useCalculateDate.d.ts +1 -1
- package/types/components/Divider/StyledDivider.d.ts +5 -5
- package/types/components/Drawer/DragableDrawer/helpers.d.ts +1 -1
- package/types/components/Drawer/StyledDrawer.d.ts +15 -15
- package/types/components/Empty/StyledEmpty.d.ts +7 -7
- package/types/components/Error/StyledError.d.ts +21 -21
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +10 -10
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +6 -6
- package/types/components/FAB/ActionGroup/index.d.ts +1 -1
- package/types/components/FAB/AnimatedFABIcon.d.ts +1 -1
- package/types/components/FAB/FAB.d.ts +1 -1
- package/types/components/FAB/Pair/StyledFAB.d.ts +6 -6
- package/types/components/FAB/Pair/index.d.ts +1 -1
- package/types/components/FAB/StyledFAB.d.ts +9 -9
- package/types/components/FloatingIsland/StyledFloatingIsland.d.ts +10 -10
- package/types/components/Icon/AnimatedIcon.d.ts +1 -1
- package/types/components/Icon/HeroIcon/index.d.ts +4 -4
- package/types/components/Icon/index.d.ts +1 -1
- package/types/components/Icon/utils.d.ts +2 -1
- package/types/components/List/StyledBasicListItem.d.ts +10 -10
- package/types/components/List/StyledListItem.d.ts +18 -18
- package/types/components/MapPin/StyledMapPin.d.ts +11 -11
- package/types/components/MapPin/types.d.ts +1 -1
- package/types/components/PageControl/StyledPageControl.d.ts +4 -4
- package/types/components/PinInput/StyledPinInput.d.ts +21 -21
- package/types/components/Portal/reducer.d.ts +1 -1
- package/types/components/Portal/types.d.ts +1 -1
- package/types/components/Progress/ProgressStep.d.ts +1 -1
- package/types/components/Progress/StyledProgressBar.d.ts +4 -4
- package/types/components/Progress/StyledProgressCircle.d.ts +12 -12
- package/types/components/Progress/StyledStep.d.ts +10 -10
- package/types/components/Progress/types.d.ts +1 -1
- package/types/components/Radio/StyledRadio.d.ts +9 -9
- package/types/components/Radio/index.d.ts +1 -1
- package/types/components/Radio/types.d.ts +1 -1
- package/types/components/Rate/StyledRate.d.ts +4 -4
- package/types/components/RefreshControl/index.d.ts +1 -1
- package/types/components/RichTextEditor/EditorEvent.d.ts +0 -1
- package/types/components/RichTextEditor/RichTextEditor.d.ts +1 -1
- package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +4 -4
- package/types/components/RichTextEditor/StyledToolbar.d.ts +6 -6
- package/types/components/RichTextEditor/types.d.ts +1 -1
- package/types/components/Search/SearchOneLine.d.ts +5 -5
- package/types/components/Search/StyledSearch.d.ts +18 -18
- package/types/components/Search/index.d.ts +1 -1
- package/types/components/Search/utils.d.ts +2 -2
- package/types/components/SectionHeading/StyledHeading.d.ts +7 -7
- package/types/components/Select/BaseOptionList.d.ts +1 -1
- package/types/components/Select/MultiSelect/Option.d.ts +2 -2
- package/types/components/Select/MultiSelect/OptionList.d.ts +1 -1
- package/types/components/Select/SingleSelect/Option.d.ts +2 -2
- package/types/components/Select/SingleSelect/OptionList.d.ts +1 -1
- package/types/components/Select/SingleSelect/StyledSingleSelect.d.ts +2 -1
- package/types/components/Select/StyledSelect.d.ts +6 -6
- package/types/components/Select/helpers.d.ts +2 -2
- package/types/components/Select/types.d.ts +6 -6
- package/types/components/Skeleton/StyledSkeleton.d.ts +6 -6
- package/types/components/Spinner/AnimatedSpinner.d.ts +2 -2
- package/types/components/Spinner/StyledSpinner.d.ts +13 -13
- package/types/components/Success/StyledSuccess.d.ts +19 -19
- package/types/components/Swipeable/StyledSwipeable.d.ts +3 -3
- package/types/components/Swipeable/index.d.ts +2 -2
- package/types/components/Switch/SelectorSwitch/Option.d.ts +3 -5
- package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +8 -8
- package/types/components/Switch/SelectorSwitch/index.d.ts +3 -3
- package/types/components/Switch/StyledSwitch.d.ts +5 -5
- package/types/components/Switch/index.d.ts +3 -3
- package/types/components/Tabs/SceneView.d.ts +3 -3
- package/types/components/Tabs/ScrollableTabsHeader/hooks/useInitHighlightedAnimation.d.ts +2 -2
- package/types/components/Tabs/ScrollableTabsHeader/hooks/useInitUnderlinedAnimation.d.ts +2 -2
- package/types/components/Tabs/StyledScrollableTabs.d.ts +17 -17
- package/types/components/Tabs/StyledTabs.d.ts +14 -14
- package/types/components/Tabs/TabWithBadge.d.ts +3 -3
- package/types/components/Tabs/index.d.ts +2 -2
- package/types/components/Tabs/useHandlePageScroll.d.ts +1 -1
- package/types/components/Tag/StyledTag.d.ts +5 -5
- package/types/components/TextInput/StyledTextInput.d.ts +28 -28
- package/types/components/TextInput/index.d.ts +16 -16
- package/types/components/TimePicker/StyledTimePicker.d.ts +2 -2
- package/types/components/Toast/StyledToast.d.ts +18 -18
- package/types/components/Toast/ToastContext.d.ts +2 -2
- package/types/components/Toast/ToastProvider.d.ts +1 -1
- package/types/components/Toast/types.d.ts +2 -2
- package/types/components/Toolbar/StyledToolbar.d.ts +25 -25
- package/types/components/Toolbar/ToolbarMessage.d.ts +4 -4
- package/types/components/Typography/Body/StyledBody.d.ts +4 -4
- package/types/components/Typography/Caption/StyledCaption.d.ts +3 -3
- package/types/components/Typography/Label/StyledLabel.d.ts +2 -2
- package/types/components/Typography/Text/StyledText.d.ts +6 -6
- package/types/components/Typography/Title/StyledTitle.d.ts +4 -4
- package/types/components/Typography/types.d.ts +1 -1
- package/types/testHelpers/utils.d.ts +1 -1
- package/types/theme/ThemeSwitcher.d.ts +3 -3
- package/types/theme/components/badge.d.ts +1 -1
- package/types/theme/components/button.d.ts +1 -1
- package/types/theme/components/carousel.d.ts +1 -1
- package/types/theme/components/empty.d.ts +1 -1
- package/types/theme/components/error.d.ts +1 -1
- package/types/theme/components/fab.d.ts +1 -1
- package/types/theme/components/pinInput.d.ts +1 -1
- package/types/theme/components/success.d.ts +1 -1
- package/types/theme/components/tag.d.ts +1 -1
- package/types/theme/getTheme.d.ts +1 -1
- package/types/theme/global/colors/types.d.ts +3 -3
- package/types/theme/global/index.d.ts +4 -4
- package/types/theme/global/scale.d.ts +1 -1
- package/types/theme/global/shadows.d.ts +1 -1
- package/types/theme/global/typography.d.ts +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import type { ReactElement } from 'react';
|
|
2
2
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
export interface SwitchProps {
|
|
4
4
|
/**
|
|
@@ -22,7 +22,7 @@ export interface SwitchProps {
|
|
|
22
22
|
*/
|
|
23
23
|
testID?: string;
|
|
24
24
|
}
|
|
25
|
-
declare const _default: (({ disabled, checked, onPress, style, testID, }: SwitchProps) =>
|
|
26
|
-
Selector: <T>({ options, value, onPress, style, testID, }: import("./SelectorSwitch").SelectorSwitchProps<T>) =>
|
|
25
|
+
declare const _default: (({ disabled, checked, onPress, style, testID, }: SwitchProps) => ReactElement) & {
|
|
26
|
+
Selector: <T>({ options, value, onPress, style, testID, }: import("./SelectorSwitch").SelectorSwitchProps<T>) => ReactElement;
|
|
27
27
|
};
|
|
28
28
|
export default _default;
|
|
@@ -3,8 +3,8 @@ declare const SceneView: ({ lazy, lazyPreloadDistance, children, index, selected
|
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
index: number;
|
|
5
5
|
selectedIndex: number;
|
|
6
|
-
lazy?: boolean
|
|
7
|
-
lazyPreloadDistance?: number
|
|
8
|
-
testID?: string
|
|
6
|
+
lazy?: boolean;
|
|
7
|
+
lazyPreloadDistance?: number;
|
|
8
|
+
testID?: string;
|
|
9
9
|
}) => React.JSX.Element;
|
|
10
10
|
export default SceneView;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Animated } from 'react-native';
|
|
2
2
|
declare const useInitHighlightedAnimation: ({ selectedIndex, tabsLength, variant, }: {
|
|
3
|
-
selectedIndex?: number
|
|
3
|
+
selectedIndex?: number;
|
|
4
4
|
tabsLength: number;
|
|
5
|
-
variant:
|
|
5
|
+
variant: "underlined" | "highlighted";
|
|
6
6
|
}) => {
|
|
7
7
|
tabsAnims: Animated.Value[];
|
|
8
8
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Animated } from 'react-native';
|
|
2
2
|
declare const useInitUnderlinedAnimation: ({ tabsLength, selectedIndex, variant, }: {
|
|
3
3
|
tabsLength: number;
|
|
4
|
-
selectedIndex?: number
|
|
5
|
-
variant:
|
|
4
|
+
selectedIndex?: number;
|
|
5
|
+
variant: "underlined" | "highlighted";
|
|
6
6
|
}) => {
|
|
7
7
|
underlinedTranslateX: Animated.AnimatedInterpolation<string | number>[];
|
|
8
8
|
underlinedOpacity: Animated.AnimatedInterpolation<string | number>[];
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { Animated, View } from 'react-native';
|
|
2
2
|
declare const TabScreen: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
3
|
-
theme?: import("@emotion/react").Theme
|
|
4
|
-
as?:
|
|
3
|
+
theme?: import("@emotion/react").Theme;
|
|
4
|
+
as?: React.ElementType;
|
|
5
5
|
}, {}, {
|
|
6
6
|
ref?: import("react").Ref<View> | undefined;
|
|
7
7
|
}>;
|
|
8
8
|
declare const TabContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
9
|
-
theme?: import("@emotion/react").Theme
|
|
10
|
-
as?:
|
|
9
|
+
theme?: import("@emotion/react").Theme;
|
|
10
|
+
as?: React.ElementType;
|
|
11
11
|
}, {}, {
|
|
12
12
|
ref?: import("react").Ref<View> | undefined;
|
|
13
13
|
}>;
|
|
14
14
|
declare const HeaderTabWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
15
|
-
theme?: import("@emotion/react").Theme
|
|
16
|
-
as?:
|
|
15
|
+
theme?: import("@emotion/react").Theme;
|
|
16
|
+
as?: React.ElementType;
|
|
17
17
|
} & {
|
|
18
18
|
themeInsets: {
|
|
19
19
|
top: number;
|
|
@@ -25,31 +25,31 @@ declare const HeaderTabWrapper: import("@emotion/native").StyledComponent<import
|
|
|
25
25
|
ref?: import("react").Ref<View> | undefined;
|
|
26
26
|
}>;
|
|
27
27
|
declare const HeaderTabItem: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
28
|
-
theme?: import("@emotion/react").Theme
|
|
29
|
-
as?:
|
|
28
|
+
theme?: import("@emotion/react").Theme;
|
|
29
|
+
as?: React.ElementType;
|
|
30
30
|
} & {
|
|
31
|
-
isFirstItem?: boolean
|
|
31
|
+
isFirstItem?: boolean;
|
|
32
32
|
}, {}, {}>;
|
|
33
33
|
declare const HeaderTabItemOutlineWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
34
|
-
theme?: import("@emotion/react").Theme
|
|
35
|
-
as?:
|
|
34
|
+
theme?: import("@emotion/react").Theme;
|
|
35
|
+
as?: React.ElementType;
|
|
36
36
|
}, {}, {
|
|
37
37
|
ref?: import("react").Ref<View> | undefined;
|
|
38
38
|
}>;
|
|
39
39
|
declare const HeaderTabItemOutline: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
40
|
-
theme?: import("@emotion/react").Theme
|
|
41
|
-
as?:
|
|
40
|
+
theme?: import("@emotion/react").Theme;
|
|
41
|
+
as?: React.ElementType;
|
|
42
42
|
} & {
|
|
43
43
|
themeActive: boolean;
|
|
44
44
|
}, {}, {}>;
|
|
45
45
|
declare const HeaderTabItemWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
46
|
-
theme?: import("@emotion/react").Theme
|
|
47
|
-
as?:
|
|
46
|
+
theme?: import("@emotion/react").Theme;
|
|
47
|
+
as?: React.ElementType;
|
|
48
48
|
}, {}, {
|
|
49
49
|
ref?: import("react").Ref<View> | undefined;
|
|
50
50
|
}>;
|
|
51
51
|
declare const HeaderTabItemIndicator: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
52
|
-
theme?: import("@emotion/react").Theme
|
|
53
|
-
as?:
|
|
52
|
+
theme?: import("@emotion/react").Theme;
|
|
53
|
+
as?: React.ElementType;
|
|
54
54
|
}, {}, {}>;
|
|
55
55
|
export { HeaderTabItem, TabScreen, TabContainer, HeaderTabWrapper, HeaderTabItemOutlineWrapper, HeaderTabItemOutline, HeaderTabItemWrapper, HeaderTabItemIndicator, };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Animated, View } from 'react-native';
|
|
2
2
|
declare const TabContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
3
|
-
theme?: import("@emotion/react").Theme
|
|
4
|
-
as?:
|
|
3
|
+
theme?: import("@emotion/react").Theme;
|
|
4
|
+
as?: React.ElementType;
|
|
5
5
|
}, {}, {
|
|
6
6
|
ref?: import("react").Ref<View> | undefined;
|
|
7
7
|
}>;
|
|
8
8
|
declare const HeaderTabWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
9
|
-
theme?: import("@emotion/react").Theme
|
|
10
|
-
as?:
|
|
9
|
+
theme?: import("@emotion/react").Theme;
|
|
10
|
+
as?: React.ElementType;
|
|
11
11
|
} & {
|
|
12
12
|
themeInsets: {
|
|
13
13
|
top: number;
|
|
@@ -19,32 +19,32 @@ declare const HeaderTabWrapper: import("@emotion/native").StyledComponent<import
|
|
|
19
19
|
ref?: import("react").Ref<View> | undefined;
|
|
20
20
|
}>;
|
|
21
21
|
declare const HeaderTab: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
22
|
-
theme?: import("@emotion/react").Theme
|
|
23
|
-
as?:
|
|
22
|
+
theme?: import("@emotion/react").Theme;
|
|
23
|
+
as?: React.ElementType;
|
|
24
24
|
}, {}, {
|
|
25
25
|
ref?: import("react").Ref<View> | undefined;
|
|
26
26
|
}>;
|
|
27
27
|
declare const HeaderTabItem: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
28
|
-
theme?: import("@emotion/react").Theme
|
|
29
|
-
as?:
|
|
28
|
+
theme?: import("@emotion/react").Theme;
|
|
29
|
+
as?: React.ElementType;
|
|
30
30
|
}, {}, {
|
|
31
31
|
ref?: import("react").Ref<View> | undefined;
|
|
32
32
|
}>;
|
|
33
33
|
declare const TabScreen: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
34
|
-
theme?: import("@emotion/react").Theme
|
|
35
|
-
as?:
|
|
34
|
+
theme?: import("@emotion/react").Theme;
|
|
35
|
+
as?: React.ElementType;
|
|
36
36
|
}, {}, {
|
|
37
37
|
ref?: import("react").Ref<View> | undefined;
|
|
38
38
|
}>;
|
|
39
39
|
declare const StyledIndicator: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
40
|
-
theme?: import("@emotion/react").Theme
|
|
41
|
-
as?:
|
|
40
|
+
theme?: import("@emotion/react").Theme;
|
|
41
|
+
as?: React.ElementType;
|
|
42
42
|
} & {
|
|
43
43
|
themeWidth: number;
|
|
44
44
|
}, {}, {}>;
|
|
45
45
|
declare const StyledBadgeWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
46
|
-
theme?: import("@emotion/react").Theme
|
|
47
|
-
as?:
|
|
46
|
+
theme?: import("@emotion/react").Theme;
|
|
47
|
+
as?: React.ElementType;
|
|
48
48
|
}, {}, {
|
|
49
49
|
ref?: import("react").Ref<View> | undefined;
|
|
50
50
|
}>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
export
|
|
2
|
+
export type StatusBadgeType = {
|
|
3
3
|
type: 'status';
|
|
4
4
|
};
|
|
5
|
-
export
|
|
5
|
+
export type CounterBadgeType = {
|
|
6
6
|
type: 'counter';
|
|
7
7
|
value: number;
|
|
8
8
|
max?: number;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type BadgeConfigType = StatusBadgeType | CounterBadgeType;
|
|
11
11
|
interface TabWithBadgeProps {
|
|
12
12
|
config?: BadgeConfigType;
|
|
13
13
|
tabItem: ReactNode;
|
|
@@ -3,10 +3,10 @@ import React from 'react';
|
|
|
3
3
|
import type { StyleProp, ViewProps, ViewStyle } from 'react-native';
|
|
4
4
|
import { IconName } from '../Icon';
|
|
5
5
|
import type { BadgeConfigType } from './TabWithBadge';
|
|
6
|
-
export
|
|
6
|
+
export type ItemType = string | IconName | ((props: {
|
|
7
7
|
color: string;
|
|
8
8
|
}) => ReactNode);
|
|
9
|
-
export
|
|
9
|
+
export type TabType = {
|
|
10
10
|
key: string;
|
|
11
11
|
activeItem: ItemType;
|
|
12
12
|
inactiveItem?: ItemType;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { NativeSyntheticEvent } from 'react-native';
|
|
2
2
|
declare const useHandlePageScroll: () => {
|
|
3
3
|
onPageScrollStateChanged: (e: NativeSyntheticEvent<Readonly<{
|
|
4
|
-
pageScrollState:
|
|
4
|
+
pageScrollState: "idle" | "dragging" | "settling";
|
|
5
5
|
}>>) => void;
|
|
6
6
|
hasScrolled: import("react").MutableRefObject<boolean>;
|
|
7
7
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { View } from 'react-native';
|
|
2
|
-
|
|
2
|
+
type ThemeIntent = 'primary' | 'info' | 'success' | 'warning' | 'danger' | 'archived';
|
|
3
3
|
declare const StyledView: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
4
|
-
theme?: import("@emotion/react").Theme
|
|
5
|
-
as?:
|
|
4
|
+
theme?: import("@emotion/react").Theme;
|
|
5
|
+
as?: React.ElementType;
|
|
6
6
|
} & {
|
|
7
7
|
themeIntent: ThemeIntent;
|
|
8
8
|
}, {}, {
|
|
9
9
|
ref?: import("react").Ref<View> | undefined;
|
|
10
10
|
}>;
|
|
11
11
|
declare const StyledText: import("@emotion/native").StyledComponent<import("../Typography/Caption").CaptionProps & {
|
|
12
|
-
theme?: import("@emotion/react").Theme
|
|
13
|
-
as?:
|
|
12
|
+
theme?: import("@emotion/react").Theme;
|
|
13
|
+
as?: React.ElementType;
|
|
14
14
|
} & {
|
|
15
15
|
themeIntent: ThemeIntent;
|
|
16
16
|
}, {}, {}>;
|
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
import { TextInput, View, Animated } from 'react-native';
|
|
2
|
-
export
|
|
3
|
-
|
|
2
|
+
export type State = 'default' | 'filled' | 'disabled' | 'readonly' | 'error';
|
|
3
|
+
type Variant = 'text' | 'textarea';
|
|
4
4
|
declare const StyledContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
5
|
-
theme?: import("@emotion/react").Theme
|
|
6
|
-
as?:
|
|
5
|
+
theme?: import("@emotion/react").Theme;
|
|
6
|
+
as?: React.ElementType;
|
|
7
7
|
}, {}, {
|
|
8
8
|
ref?: import("react").Ref<View> | undefined;
|
|
9
9
|
}>;
|
|
10
10
|
declare const StyledLabelContainerInsideTextInput: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
11
|
-
theme?: import("@emotion/react").Theme
|
|
12
|
-
as?:
|
|
11
|
+
theme?: import("@emotion/react").Theme;
|
|
12
|
+
as?: React.ElementType;
|
|
13
13
|
} & {
|
|
14
14
|
themeVariant: Variant;
|
|
15
15
|
}, {}, {}>;
|
|
16
16
|
declare const StyledLabelInsideTextInput: import("@emotion/native").StyledComponent<import("../Typography/Body").BodyProps & {
|
|
17
|
-
theme?: import("@emotion/react").Theme
|
|
18
|
-
as?:
|
|
17
|
+
theme?: import("@emotion/react").Theme;
|
|
18
|
+
as?: React.ElementType;
|
|
19
19
|
} & {
|
|
20
20
|
themeState: State;
|
|
21
21
|
}, {}, {}>;
|
|
22
22
|
declare const StyledAsteriskLabelInsideTextInput: import("@emotion/native").StyledComponent<import("../Typography/Body").BodyProps & {
|
|
23
|
-
theme?: import("@emotion/react").Theme
|
|
24
|
-
as?:
|
|
23
|
+
theme?: import("@emotion/react").Theme;
|
|
24
|
+
as?: React.ElementType;
|
|
25
25
|
} & {
|
|
26
26
|
themeState: State;
|
|
27
27
|
}, {}, {}>;
|
|
28
28
|
declare const StyledErrorContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
29
|
-
theme?: import("@emotion/react").Theme
|
|
30
|
-
as?:
|
|
29
|
+
theme?: import("@emotion/react").Theme;
|
|
30
|
+
as?: React.ElementType;
|
|
31
31
|
}, {}, {
|
|
32
32
|
ref?: import("react").Ref<View> | undefined;
|
|
33
33
|
}>;
|
|
34
34
|
declare const StyledError: import("@emotion/native").StyledComponent<import("../Typography/Caption").CaptionProps & {
|
|
35
|
-
theme?: import("@emotion/react").Theme
|
|
36
|
-
as?:
|
|
35
|
+
theme?: import("@emotion/react").Theme;
|
|
36
|
+
as?: React.ElementType;
|
|
37
37
|
}, {}, {}>;
|
|
38
38
|
declare const StyledMaxLengthMessage: import("@emotion/native").StyledComponent<import("../Typography/Caption").CaptionProps & {
|
|
39
|
-
theme?: import("@emotion/react").Theme
|
|
40
|
-
as?:
|
|
39
|
+
theme?: import("@emotion/react").Theme;
|
|
40
|
+
as?: React.ElementType;
|
|
41
41
|
} & {
|
|
42
42
|
themeState: State;
|
|
43
43
|
}, {}, {}>;
|
|
44
44
|
declare const StyledHelperText: ({ children, fontWeight, intent, allowFontScaling, ...nativeProps }: import("../Typography/Caption").CaptionProps) => import("react").JSX.Element;
|
|
45
45
|
declare const StyledTextInput: import("@emotion/native").StyledComponent<import("react-native").TextInputProps & {
|
|
46
|
-
theme?: import("@emotion/react").Theme
|
|
47
|
-
as?:
|
|
46
|
+
theme?: import("@emotion/react").Theme;
|
|
47
|
+
as?: React.ElementType;
|
|
48
48
|
} & {
|
|
49
49
|
themeVariant: Variant;
|
|
50
50
|
}, {}, {
|
|
51
51
|
ref?: import("react").Ref<TextInput> | undefined;
|
|
52
52
|
}>;
|
|
53
53
|
declare const StyledBorderBackDrop: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
54
|
-
theme?: import("@emotion/react").Theme
|
|
55
|
-
as?:
|
|
54
|
+
theme?: import("@emotion/react").Theme;
|
|
55
|
+
as?: React.ElementType;
|
|
56
56
|
} & {
|
|
57
57
|
themeState: State;
|
|
58
58
|
themeFocused: boolean;
|
|
@@ -60,26 +60,26 @@ declare const StyledBorderBackDrop: import("@emotion/native").StyledComponent<im
|
|
|
60
60
|
ref?: import("react").Ref<View> | undefined;
|
|
61
61
|
}>;
|
|
62
62
|
declare const StyledTextInputContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
63
|
-
theme?: import("@emotion/react").Theme
|
|
64
|
-
as?:
|
|
63
|
+
theme?: import("@emotion/react").Theme;
|
|
64
|
+
as?: React.ElementType;
|
|
65
65
|
}, {}, {
|
|
66
66
|
ref?: import("react").Ref<View> | undefined;
|
|
67
67
|
}>;
|
|
68
68
|
declare const StyledTextInputAndLabelContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
69
|
-
theme?: import("@emotion/react").Theme
|
|
70
|
-
as?:
|
|
69
|
+
theme?: import("@emotion/react").Theme;
|
|
70
|
+
as?: React.ElementType;
|
|
71
71
|
}, {}, {
|
|
72
72
|
ref?: import("react").Ref<View> | undefined;
|
|
73
73
|
}>;
|
|
74
74
|
declare const StyledErrorAndHelpTextContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
75
|
-
theme?: import("@emotion/react").Theme
|
|
76
|
-
as?:
|
|
75
|
+
theme?: import("@emotion/react").Theme;
|
|
76
|
+
as?: React.ElementType;
|
|
77
77
|
}, {}, {
|
|
78
78
|
ref?: import("react").Ref<View> | undefined;
|
|
79
79
|
}>;
|
|
80
80
|
declare const StyledErrorAndMaxLengthContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
81
|
-
theme?: import("@emotion/react").Theme
|
|
82
|
-
as?:
|
|
81
|
+
theme?: import("@emotion/react").Theme;
|
|
82
|
+
as?: React.ElementType;
|
|
83
83
|
}, {}, {
|
|
84
84
|
ref?: import("react").Ref<View> | undefined;
|
|
85
85
|
}>;
|
|
@@ -3,8 +3,8 @@ import { TextInput as RNTextInput } from 'react-native';
|
|
|
3
3
|
import type { TextInputProps as NativeTextInputProps, StyleProp, ViewStyle, TextStyle } from 'react-native';
|
|
4
4
|
import type { State } from './StyledTextInput';
|
|
5
5
|
import type { IconName } from '../Icon';
|
|
6
|
-
export
|
|
7
|
-
export
|
|
6
|
+
export type TextInputHandles = Pick<RNTextInput, 'focus' | 'clear' | 'blur' | 'isFocused' | 'setNativeProps'>;
|
|
7
|
+
export type TextInputVariant = 'text' | 'textarea';
|
|
8
8
|
export interface TextInputProps extends NativeTextInputProps {
|
|
9
9
|
/**
|
|
10
10
|
* Field label.
|
|
@@ -85,38 +85,38 @@ export interface TextInputProps extends NativeTextInputProps {
|
|
|
85
85
|
variant?: TextInputVariant;
|
|
86
86
|
}
|
|
87
87
|
export declare const getState: ({ disabled, error, editable, loading, isEmptyValue, }: {
|
|
88
|
-
disabled?: boolean
|
|
89
|
-
error?: string
|
|
90
|
-
editable?: boolean
|
|
88
|
+
disabled?: boolean;
|
|
89
|
+
error?: string;
|
|
90
|
+
editable?: boolean;
|
|
91
91
|
loading: boolean;
|
|
92
|
-
isFocused?: boolean
|
|
93
|
-
isEmptyValue?: boolean
|
|
92
|
+
isFocused?: boolean;
|
|
93
|
+
isEmptyValue?: boolean;
|
|
94
94
|
}) => State;
|
|
95
95
|
export declare const LABEL_ANIMATION_DURATION = 150;
|
|
96
96
|
export declare const renderErrorOrHelpText: ({ error, helpText, }: {
|
|
97
|
-
error?: string
|
|
98
|
-
helpText?: string
|
|
97
|
+
error?: string;
|
|
98
|
+
helpText?: string;
|
|
99
99
|
}) => false | React.JSX.Element;
|
|
100
100
|
export declare const renderInput: ({ variant, nativeInputProps, renderInputValue, ref, }: {
|
|
101
101
|
variant: TextInputVariant;
|
|
102
102
|
nativeInputProps: NativeTextInputProps;
|
|
103
|
-
multiline?: boolean
|
|
104
|
-
renderInputValue?: (
|
|
105
|
-
ref?: React.Ref<RNTextInput
|
|
103
|
+
multiline?: boolean;
|
|
104
|
+
renderInputValue?: (inputProps: NativeTextInputProps) => React.ReactNode;
|
|
105
|
+
ref?: React.Ref<RNTextInput>;
|
|
106
106
|
}) => string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
|
|
107
107
|
export declare const renderSuffix: ({ state, loading, suffix, }: {
|
|
108
108
|
state: State;
|
|
109
109
|
loading: boolean;
|
|
110
|
-
suffix?:
|
|
111
|
-
}) => "number" | "swag" | "wallet" | React.JSX.Element | "bold" | "menu" | "filter" | "image" | "switch" | "target" | "restart" | "
|
|
110
|
+
suffix?: IconName | React.ReactElement;
|
|
111
|
+
}) => "number" | "swag" | "wallet" | React.JSX.Element | "bold" | "menu" | "filter" | "image" | "switch" | "target" | "restart" | "list" | "loading" | "warning" | "activate" | "add-emoji" | "add-person" | "adjustment" | "alignment" | "antenna" | "archive" | "assignment-warning" | "bank" | "bell" | "billing" | "bolt" | "bookmark-added" | "bookmark" | "box-check" | "box" | "bpay" | "buildings" | "cake" | "calendar-clock" | "calendar" | "candy-box-menu" | "caret-down-small" | "caret-down" | "caret-left-small" | "caret-left" | "caret-right-small" | "caret-right" | "caret-up-small" | "caret-up" | "check-radio" | "circle-add" | "circle-cancel" | "circle-check" | "circle-down" | "circle-info" | "circle-left" | "circle-ok" | "circle-pencil" | "circle-question" | "circle-remove" | "circle-right" | "circle-up" | "circle-warning" | "clock-3" | "clock" | "cloud-download" | "cloud-upload" | "cog" | "coin" | "contacts" | "credit-card" | "diamond" | "direction-arrows" | "directory" | "document" | "dollar-coin-shine" | "dot" | "double-buildings" | "edit-template" | "envelope" | "exclude" | "expand-content" | "expense" | "explore_nearby" | "eye-circle" | "eye-invisible" | "eye" | "face-meh" | "face-sad" | "face-smiley" | "feed" | "feedbacks" | "file-certified" | "file-clone" | "file-copy" | "file-csv" | "file-dispose" | "file-doc" | "file-excel" | "file-export" | "file-lock" | "file-pdf" | "file-powerpoint" | "file-search" | "file-secured" | "file-sheets" | "file-slide" | "file-verified" | "file-word" | "file" | "folder-user" | "folder" | "format-bold" | "format-heading1" | "format-heading2" | "format-italic" | "format-list-bulleted" | "format-list-numbered" | "format-underlined" | "funnel-filter" | "global-dollar" | "globe" | "graduation-cap" | "graph" | "happy-sun" | "health-bag" | "heart" | "hero-points" | "home" | "import" | "incident-siren" | "instapay-daily" | "instapay-now" | "instapay" | "loading-2" | "location-on" | "location" | "lock" | "looks-one" | "looks-two" | "media-content" | "money-notes" | "moneybag" | "moon" | "multiple-stars" | "multiple-users" | "near-me" | "node" | "open-folder" | "paperclip" | "payment-summary" | "pencil" | "phone" | "piggy-bank" | "plane-up" | "plane" | "play-arrow" | "play-circle" | "print" | "raising-hands" | "reply-arrow" | "reply" | "reschedule" | "rostering" | "salary-sacrifice" | "save" | "schedule-send" | "schedule" | "search-person" | "send" | "speaker-active" | "speaker" | "star-award" | "star-badge" | "star-circle" | "star-medal" | "star" | "steps-circle" | "stopwatch" | "suitcase" | "surfing" | "survey" | "swag-pillar-benefit" | "swag-pillar-career" | "swag-pillar-money" | "swag-pillar-work" | "swipe-right" | "tag" | "teams" | "thumb-down" | "timesheet" | "touch-id" | "trash-bin" | "unlock" | "user" | "video-1" | "video-2" | "accommodation-outlined" | "activate-outlined" | "add-credit-card-outlined" | "add-person-outlined" | "add-section-outlined" | "add-time-outlined" | "add" | "adjustment-outlined" | "afternoon-outlined" | "ai-outlined" | "alignment-2-outlined" | "alignment-outlined" | "all-caps" | "application-outlined" | "arrow-down" | "arrow-downwards" | "arrow-left" | "arrow-leftwards" | "arrow-right" | "arrow-rightwards" | "arrow-up" | "arrow-upwards" | "article-outlined" | "at-sign" | "auto-graph-outlined" | "automotive-outlined" | "bakery-outlined" | "bar-outlined" | "beauty-outlined" | "beer-outlined" | "bell-active-outlined" | "bell-outlined" | "bell-slash-outlined" | "bill-management-outlined" | "billing-outlined" | "body-outlined" | "bolt-outlined" | "book-outlined" | "bookmark-added-outlined" | "bookmark-outlined" | "box-1-outlined" | "box-check-outlined" | "box-outlined" | "bullet-points" | "cake-outlined" | "calendar-dates-outlined" | "calendar-star-outlined" | "call-outlined" | "call-split-outlined" | "camera-outlined" | "cancel" | "car-forward-outlined" | "cashback-outlined" | "charging-station-outlined" | "chat-bubble-outlined" | "chat-unread-outlined" | "checkmark" | "circle-add-outlined" | "circle-cancel-outlined" | "circle-down-outlined" | "circle-info-outlined" | "circle-left-outlined" | "circle-ok-outlined" | "circle-question-outlined" | "circle-remove-outlined" | "circle-right-outlined" | "circle-up-outlined" | "circle-warning-outlined" | "clock-2-outlined" | "clock-in-outlined" | "clock-out-outlined" | "clock-outlined" | "cog-outlined" | "coin-outlined" | "coin-super-outlined" | "comment-outlined" | "contacts-outlined" | "contacts-user-outlined" | "credit-card-outlined" | "cultural-site-outlined" | "cup-outlined" | "dentistry-outlined" | "direction-arrows-outlined" | "directory-outlined" | "document-outlined" | "dollar-box-outlined" | "dollar-card-outlined" | "dollar-coin-shine-outlined" | "dollar-credit-card-outlined" | "dollar-sign" | "double-buildings-outlined" | "double-left-arrows" | "double-right-arrows" | "download-box-outlined" | "download-outlined" | "edit-template-outlined" | "electronics-outlined" | "email-outlined" | "end-break-outlined" | "enter-arrow" | "entertainment-outlined" | "envelope-outlined" | "evening-outlined" | "expense-approval-outlined" | "expense-outlined" | "explore-outlined" | "extension-outlined" | "external-link" | "eye-invisible-outlined" | "eye-outlined" | "face-id" | "face-meh-outlined" | "face-open-smiley-outlined" | "face-sad-outlined" | "face-smiley-outlined" | "fastfood-outlined" | "feed-outlined" | "file-certified-outlined" | "file-clone-outlined" | "file-copy-outlined" | "file-dispose-outlined" | "file-dollar-certified-outlined" | "file-dollar-outlined" | "file-download-outlined" | "file-export-outlined" | "file-lock-outlined" | "file-outlined" | "file-search-outlined" | "file-secured-outlined" | "file-statutory-outlined" | "file-verified-outlined" | "filter-outlined" | "fitness-outlined" | "folder-outlined" | "folder-upload-outlined" | "folder-user-outlined" | "form-outlined" | "funnel-filter-outline" | "goal-outlined" | "graph-outlined" | "grocery-outlined" | "hand-holding-user-outlined" | "handshake-outlined" | "happy-sun-outlined" | "health-bag-outlined" | "heart-outlined" | "home-active-outlined" | "home-outlined" | "id-card-outlined" | "image-outlined" | "import-outlined" | "instapay-outlined" | "italic" | "job-search-outlined" | "leave-approval-outlined" | "link-1" | "link-2" | "list-outlined" | "live-help-outlined" | "local_mall_outlined" | "location-on-outlined" | "location-outlined" | "lock-outlined" | "locked-file-outlined" | "log-out" | "mail-outlined" | "map-outlined" | "media-content-outlined" | "menu-close" | "menu-expand" | "menu-fold-outlined" | "menu-unfold-outlined" | "moneybag-outlined" | "moon-outlined" | "more-horizontal" | "more-vertical" | "morning-outlined" | "multiple-folders-outlined" | "multiple-users-outlined" | "near-me-outlined" | "node-outlined" | "number-points" | "overview-outlined" | "park-outlined" | "payment-summary-outlined" | "payslip-outlined" | "pencil-outlined" | "percentage" | "phone-outlined" | "piggy-bank-outlined" | "plane-outlined" | "play-circle-outlined" | "print-outlined" | "propane-tank-outlined" | "qr-code-outlined" | "qualification-outlined" | "re-assign" | "redeem" | "refresh" | "remove" | "reply-outlined" | "restaurant-outlined" | "resume-outlined" | "return-arrow" | "rostering-outlined" | "safety-outlined" | "save-outlined" | "schedule-outlined" | "search-outlined" | "search-secured-outlined" | "send-outlined" | "share-1" | "share-2" | "share-outlined-2" | "share-outlined" | "shop-outlined" | "shopping_basket_outlined" | "show-chart-outlined" | "single-down-arrow" | "single-left-arrow" | "single-right-arrow" | "single-up-arrow" | "smart-match-outlined" | "sparkle-outlined" | "speaker-active-outlined" | "speaker-outlined" | "star-circle-outlined" | "star-outlined" | "start-break-outlined" | "stash-outlined" | "stopwatch-outlined" | "strikethrough" | "styler-outlined" | "suitcase-clock-outlined" | "suitcase-outlined" | "survey-outlined" | "switch-outlined" | "sync" | "tag-outlined" | "target-outlined" | "tennis-outlined" | "thumb-down-outlined" | "ticket-outlined" | "timesheet-outlined" | "timesheets-outlined" | "today-outlined" | "transfer" | "transportation-outlined" | "trash-bin-outlined" | "umbrela-outlined" | "unavailability-outlined" | "unavailable" | "underline" | "union-outlined" | "unlock-outlined" | "upload-outlined" | "user-circle-outlined" | "user-gear-outlined" | "user-outlined" | "user-rectangle-outlined" | "video-1-outlined" | "video-2-outlined" | "volunteer-outlined" | "wallet-outlined" | "wellness-outlined" | undefined;
|
|
112
112
|
export declare const renderPrefix: ({ state, prefix, }: {
|
|
113
113
|
state: State;
|
|
114
|
-
prefix?:
|
|
114
|
+
prefix?: IconName | React.ReactElement;
|
|
115
115
|
}) => React.JSX.Element | undefined;
|
|
116
116
|
export declare const renderMaxLengthMessage: ({ maxLength, state, currentLength, hideCharacterCount, }: {
|
|
117
117
|
state: State;
|
|
118
118
|
currentLength: number;
|
|
119
|
-
maxLength?: number
|
|
119
|
+
maxLength?: number;
|
|
120
120
|
hideCharacterCount: boolean;
|
|
121
121
|
}) => false | React.JSX.Element;
|
|
122
122
|
export declare const getDisplayText: (value?: string, defaultValue?: string) => string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { View } from 'react-native';
|
|
2
2
|
import type { ViewProps } from 'react-native';
|
|
3
3
|
declare const StyledPickerWrapper: import("@emotion/native").StyledComponent<ViewProps & {
|
|
4
|
-
theme?: import("@emotion/react").Theme
|
|
5
|
-
as?:
|
|
4
|
+
theme?: import("@emotion/react").Theme;
|
|
5
|
+
as?: React.ElementType;
|
|
6
6
|
}, {}, {
|
|
7
7
|
ref?: import("react").Ref<View> | undefined;
|
|
8
8
|
}>;
|