@hero-design/rn 8.82.2-alpha.0 → 8.82.2-alpha.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/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
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import type { TextInputProps as NativeTextInputProps, TextInput as RNTextInput, StyleProp, ViewStyle, TextStyle } from 'react-native';
|
|
3
3
|
import { State } from './StyledSearch';
|
|
4
4
|
import { IconName } from '../Icon';
|
|
5
|
-
export
|
|
5
|
+
export type SearchOneLineHandles = Pick<RNTextInput, 'focus' | 'clear' | 'blur' | 'isFocused' | 'setNativeProps'>;
|
|
6
6
|
interface SearchOneLineProps extends NativeTextInputProps {
|
|
7
7
|
/**
|
|
8
8
|
* Name of Icon or ReactElement to render on the left side of the input, before the user's cursor.
|
|
@@ -60,10 +60,10 @@ interface SearchOneLineProps extends NativeTextInputProps {
|
|
|
60
60
|
clearable?: boolean;
|
|
61
61
|
}
|
|
62
62
|
export declare const getState: ({ disabled, editable, isEmptyValue, }: {
|
|
63
|
-
disabled?: boolean
|
|
64
|
-
editable?: boolean
|
|
65
|
-
isFocused?: boolean
|
|
66
|
-
isEmptyValue?: boolean
|
|
63
|
+
disabled?: boolean;
|
|
64
|
+
editable?: boolean;
|
|
65
|
+
isFocused?: boolean;
|
|
66
|
+
isEmptyValue?: boolean;
|
|
67
67
|
}) => State;
|
|
68
68
|
declare const SearchOneLine: React.ForwardRefExoticComponent<SearchOneLineProps & React.RefAttributes<SearchOneLineHandles>>;
|
|
69
69
|
export default SearchOneLine;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { TextInput, View } from 'react-native';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type State = 'default' | 'filled' | 'disabled' | 'readonly';
|
|
3
|
+
export type Variant = 'basic' | 'reversed';
|
|
4
4
|
export 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
|
export declare const StyledInputContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
11
|
-
theme?: import("@emotion/react").Theme
|
|
12
|
-
as?:
|
|
11
|
+
theme?: import("@emotion/react").Theme;
|
|
12
|
+
as?: React.ElementType;
|
|
13
13
|
} & {
|
|
14
14
|
themeFocused: boolean;
|
|
15
15
|
themeVariant: Variant;
|
|
@@ -17,33 +17,33 @@ export declare const StyledInputContainer: import("@emotion/native").StyledCompo
|
|
|
17
17
|
ref?: import("react").Ref<View> | undefined;
|
|
18
18
|
}>;
|
|
19
19
|
export declare const StyledAffixContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
20
|
-
theme?: import("@emotion/react").Theme
|
|
21
|
-
as?:
|
|
20
|
+
theme?: import("@emotion/react").Theme;
|
|
21
|
+
as?: React.ElementType;
|
|
22
22
|
}, {}, {
|
|
23
23
|
ref?: import("react").Ref<View> | undefined;
|
|
24
24
|
}>;
|
|
25
25
|
export declare const StyledSuffixContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
26
|
-
theme?: import("@emotion/react").Theme
|
|
27
|
-
as?:
|
|
26
|
+
theme?: import("@emotion/react").Theme;
|
|
27
|
+
as?: React.ElementType;
|
|
28
28
|
}, {}, {
|
|
29
29
|
ref?: import("react").Ref<View> | undefined;
|
|
30
30
|
}>;
|
|
31
31
|
export declare const StyledInput: import("@emotion/native").StyledComponent<import("react-native").TextInputProps & {
|
|
32
|
-
theme?: import("@emotion/react").Theme
|
|
33
|
-
as?:
|
|
32
|
+
theme?: import("@emotion/react").Theme;
|
|
33
|
+
as?: React.ElementType;
|
|
34
34
|
}, {}, {
|
|
35
35
|
ref?: import("react").Ref<TextInput> | undefined;
|
|
36
36
|
}>;
|
|
37
37
|
export declare const StyledHandlerContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
38
|
-
theme?: import("@emotion/react").Theme
|
|
39
|
-
as?:
|
|
38
|
+
theme?: import("@emotion/react").Theme;
|
|
39
|
+
as?: React.ElementType;
|
|
40
40
|
}, {}, {
|
|
41
41
|
ref?: import("react").Ref<View> | undefined;
|
|
42
42
|
}>;
|
|
43
43
|
export declare const StyledBadge: import("@emotion/native").StyledComponent<(import("../Badge/types").BasicBadgeProps & {
|
|
44
|
-
theme?: import("@emotion/react").Theme
|
|
45
|
-
as?:
|
|
44
|
+
theme?: import("@emotion/react").Theme;
|
|
45
|
+
as?: React.ElementType;
|
|
46
46
|
}) | (import("../Badge/types").IconBadgeProps & {
|
|
47
|
-
theme?: import("@emotion/react").Theme
|
|
48
|
-
as?:
|
|
47
|
+
theme?: import("@emotion/react").Theme;
|
|
48
|
+
as?: React.ElementType;
|
|
49
49
|
}), {}, {}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import SearchTwoLine from './SearchTwoLine';
|
|
2
2
|
import SearchOneLine from './SearchOneLine';
|
|
3
3
|
import SearchSuffixIcon from './SearchSuffixIcon';
|
|
4
|
-
|
|
4
|
+
type SearchType = {
|
|
5
5
|
OneLine: typeof SearchOneLine;
|
|
6
6
|
TwoLine: typeof SearchTwoLine;
|
|
7
7
|
SuffixIcon: typeof SearchSuffixIcon;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IconName } from '../Icon';
|
|
3
3
|
export declare const renderPrefix: ({ prefix, }: {
|
|
4
|
-
prefix?:
|
|
4
|
+
prefix?: IconName | React.ReactElement;
|
|
5
5
|
}) => React.JSX.Element | undefined;
|
|
6
6
|
export declare const renderSuffix: ({ suffix, }: {
|
|
7
|
-
suffix?:
|
|
7
|
+
suffix?: IconName | React.ReactElement;
|
|
8
8
|
}) => React.JSX.Element | undefined;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { View } from 'react-native';
|
|
2
|
-
|
|
2
|
+
type StyledHeadingProps = {
|
|
3
3
|
themeSize: 'small' | 'medium';
|
|
4
4
|
};
|
|
5
5
|
declare const StyledHeading: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
6
|
-
theme?: import("@emotion/react").Theme
|
|
7
|
-
as?:
|
|
6
|
+
theme?: import("@emotion/react").Theme;
|
|
7
|
+
as?: React.ElementType;
|
|
8
8
|
} & StyledHeadingProps, {}, {
|
|
9
9
|
ref?: import("react").Ref<View> | undefined;
|
|
10
10
|
}>;
|
|
11
11
|
declare const StyledIconWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
12
|
-
theme?: import("@emotion/react").Theme
|
|
13
|
-
as?:
|
|
12
|
+
theme?: import("@emotion/react").Theme;
|
|
13
|
+
as?: React.ElementType;
|
|
14
14
|
}, {}, {
|
|
15
15
|
ref?: import("react").Ref<View> | undefined;
|
|
16
16
|
}>;
|
|
17
17
|
declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
18
|
-
theme?: import("@emotion/react").Theme
|
|
19
|
-
as?:
|
|
18
|
+
theme?: import("@emotion/react").Theme;
|
|
19
|
+
as?: React.ElementType;
|
|
20
20
|
}, {}, {
|
|
21
21
|
ref?: import("react").Ref<View> | undefined;
|
|
22
22
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { SectionList, SectionListProps } from 'react-native';
|
|
3
3
|
import type { OptionType, SelectProps, SectionType } from './types';
|
|
4
|
-
export
|
|
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
7
|
declare const BaseOptionList: <V, T extends OptionType<V>>({ keyExtractor, loading, onEndReached, onQueryChange, sections, renderItem, sectionListRef, ...rest }: BaseOptionListProps<V, T>) => React.JSX.Element;
|
|
@@ -2,9 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import type { ReactElement } from 'react';
|
|
3
3
|
declare const Option: ({ text, disabled, selected, onPress, highlighted, }: {
|
|
4
4
|
text: string | ReactElement;
|
|
5
|
-
disabled?: boolean
|
|
5
|
+
disabled?: boolean;
|
|
6
6
|
selected: boolean;
|
|
7
7
|
onPress: () => void;
|
|
8
|
-
highlighted?: boolean
|
|
8
|
+
highlighted?: boolean;
|
|
9
9
|
}) => React.JSX.Element;
|
|
10
10
|
export default Option;
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { BaseOptionListProps } from '../BaseOptionList';
|
|
3
3
|
import type { MultiSelectProps } from '.';
|
|
4
4
|
import type { OptionType } from '../types';
|
|
5
|
-
|
|
5
|
+
type OptionListProps<V, T extends OptionType<V>> = Pick<MultiSelectProps<V, T>, 'keyExtractor' | 'loading' | 'onEndReached' | 'onQueryChange' | 'value' | 'renderOption'> & {
|
|
6
6
|
onPress: (value: V[]) => void;
|
|
7
7
|
} & BaseOptionListProps<V, T>;
|
|
8
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;
|
|
@@ -2,9 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import type { ReactElement } from 'react';
|
|
3
3
|
declare const Option: ({ text, disabled, selected, onPress, highlighted, }: {
|
|
4
4
|
text: string | ReactElement;
|
|
5
|
-
disabled?: boolean
|
|
5
|
+
disabled?: boolean;
|
|
6
6
|
selected: boolean;
|
|
7
7
|
onPress: () => void;
|
|
8
|
-
highlighted?: boolean
|
|
8
|
+
highlighted?: boolean;
|
|
9
9
|
}) => React.JSX.Element;
|
|
10
10
|
export default Option;
|
|
@@ -3,7 +3,7 @@ import { SectionList } from 'react-native';
|
|
|
3
3
|
import type { SingleSelectProps } from '.';
|
|
4
4
|
import type { OptionType, SectionType } from '../types';
|
|
5
5
|
import { BaseOptionListProps } from '../BaseOptionList';
|
|
6
|
-
|
|
6
|
+
type OptionListProps<V, T extends OptionType<V>> = Pick<SingleSelectProps<V, T>, 'keyExtractor' | 'loading' | 'onEndReached' | 'onQueryChange' | 'value' | 'renderOption'> & {
|
|
7
7
|
onPress: (value: V | null) => void;
|
|
8
8
|
sectionListRef?: React.RefObject<SectionList<T, SectionType>>;
|
|
9
9
|
} & BaseOptionListProps<V, T>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import BaseOptionList from '../BaseOptionList';
|
|
2
|
+
export declare const StyledOptionList: typeof BaseOptionList;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { SectionList, View } from 'react-native';
|
|
2
2
|
declare const SectionSpacer: 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 OptionSpacer: 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 StyledSearchBar: 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
|
ref?: import("react").Ref<View> | undefined;
|
|
19
19
|
}>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { SectionData, CombinedOptionsType, OptionType } from './types';
|
|
2
|
-
export declare const getKey: <V, T extends OptionType<V>>(option: T, index: number, keyExtractor?: (
|
|
2
|
+
export declare const getKey: <V, T extends OptionType<V>>(option: T, index: number, keyExtractor?: (opt: T, i?: number) => string) => string | number;
|
|
3
3
|
export declare const isSections: <V, T extends OptionType<V>>(options: CombinedOptionsType<V, T>) => options is SectionData<V, T>[];
|
|
4
4
|
export declare const toSections: <V, T extends OptionType<V>>(options: CombinedOptionsType<V, T>) => SectionData<V, T>[];
|
|
5
5
|
export declare const toFlatOptions: <V, T extends OptionType<V>>(options: CombinedOptionsType<V, T>) => OptionType<V>[];
|
|
6
|
-
export
|
|
6
|
+
export type ScrollParams = {
|
|
7
7
|
itemIndex: number;
|
|
8
8
|
sectionIndex: number;
|
|
9
9
|
};
|
|
@@ -2,23 +2,23 @@ import type { ReactElement } from 'react';
|
|
|
2
2
|
import type { ListRenderItemInfo, SectionListData, SectionListRenderItemInfo, StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
import { BottomSheetProps } from '../BottomSheet';
|
|
4
4
|
import type { TextInputProps } from '../TextInput';
|
|
5
|
-
export
|
|
5
|
+
export type OptionType<V> = {
|
|
6
6
|
value: V;
|
|
7
7
|
text: string;
|
|
8
8
|
key?: string;
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
highlighted?: boolean;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type SectionType = {
|
|
13
13
|
category: string;
|
|
14
14
|
};
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
15
|
+
export type SectionData<V, T extends OptionType<V>> = SectionListData<T, SectionType>;
|
|
16
|
+
export type CombinedOptionsType<V, T extends OptionType<V>> = T[] | SectionData<V, T>[];
|
|
17
|
+
export type ListRenderOptionInfo<V, T extends OptionType<V>> = ListRenderItemInfo<T> & {
|
|
18
18
|
selected: boolean;
|
|
19
19
|
onPress: () => void;
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type SectionListRenderOptionInfo<V, T extends OptionType<V>> = SectionListRenderItemInfo<T, SectionType> & {
|
|
22
22
|
selected: boolean;
|
|
23
23
|
onPress: () => void;
|
|
24
24
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
type ThemeIntent = 'light' | 'dark';
|
|
2
|
+
type ThemeVariant = 'circular' | 'rectangular' | 'rounded';
|
|
3
3
|
declare const StyledContainer: import("@emotion/native").StyledComponent<import("../Box").BoxProps & {
|
|
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
|
themeVariant: ThemeVariant;
|
|
9
9
|
}, {}, {}>;
|
|
10
10
|
declare const StyledGradientContainer: import("@emotion/native").StyledComponent<import("../Box").BoxProps & {
|
|
11
|
-
theme?: import("@emotion/react").Theme
|
|
12
|
-
as?:
|
|
11
|
+
theme?: import("@emotion/react").Theme;
|
|
12
|
+
as?: React.ElementType;
|
|
13
13
|
} & {
|
|
14
14
|
themeVariant: ThemeVariant;
|
|
15
15
|
}, {}, {}>;
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import { View } from 'react-native';
|
|
2
2
|
import type { ViewProps } from 'react-native';
|
|
3
3
|
declare const StyledView: 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
|
}>;
|
|
9
9
|
declare const StyledSpinnerContainer: import("@emotion/native").StyledComponent<ViewProps & {
|
|
10
|
-
theme?: import("@emotion/react").Theme
|
|
11
|
-
as?:
|
|
10
|
+
theme?: import("@emotion/react").Theme;
|
|
11
|
+
as?: React.ElementType;
|
|
12
12
|
}, {}, {
|
|
13
13
|
ref?: import("react").Ref<View> | undefined;
|
|
14
14
|
}>;
|
|
15
15
|
declare const StyledSpinnerRow: import("@emotion/native").StyledComponent<ViewProps & {
|
|
16
|
-
theme?: import("@emotion/react").Theme
|
|
17
|
-
as?:
|
|
16
|
+
theme?: import("@emotion/react").Theme;
|
|
17
|
+
as?: React.ElementType;
|
|
18
18
|
} & {
|
|
19
|
-
themePosition:
|
|
20
|
-
themeSize:
|
|
19
|
+
themePosition: "top" | "bottom";
|
|
20
|
+
themeSize: "small" | "medium";
|
|
21
21
|
}, {}, {
|
|
22
22
|
ref?: import("react").Ref<View> | undefined;
|
|
23
23
|
}>;
|
|
24
24
|
declare const StyledSpinnerDot: import("@emotion/native").StyledComponent<ViewProps & {
|
|
25
|
-
theme?: import("@emotion/react").Theme
|
|
26
|
-
as?:
|
|
25
|
+
theme?: import("@emotion/react").Theme;
|
|
26
|
+
as?: React.ElementType;
|
|
27
27
|
} & {
|
|
28
|
-
themePosition:
|
|
29
|
-
themeSize:
|
|
30
|
-
themeIntent:
|
|
28
|
+
themePosition: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
29
|
+
themeSize: "small" | "medium";
|
|
30
|
+
themeIntent: "primary" | "inverted";
|
|
31
31
|
}, {}, {
|
|
32
32
|
ref?: import("react").Ref<View> | undefined;
|
|
33
33
|
}>;
|
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import { View } from 'react-native';
|
|
2
|
-
|
|
2
|
+
type SuccessVariant = 'full-screen' | 'in-page';
|
|
3
3
|
declare const StyledSuccessContainer: 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
|
themeVariant: SuccessVariant;
|
|
8
8
|
}, {}, {
|
|
9
9
|
ref?: import("react").Ref<View> | undefined;
|
|
10
10
|
}>;
|
|
11
11
|
declare const StyledSuccessImage: import("@emotion/native").StyledComponent<import("../Image").ImageProps & {
|
|
12
|
-
theme?: import("@emotion/react").Theme
|
|
13
|
-
as?:
|
|
12
|
+
theme?: import("@emotion/react").Theme;
|
|
13
|
+
as?: React.ElementType;
|
|
14
14
|
}, {}, {}>;
|
|
15
15
|
declare const StyledSuccessContent: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
16
|
-
theme?: import("@emotion/react").Theme
|
|
17
|
-
as?:
|
|
16
|
+
theme?: import("@emotion/react").Theme;
|
|
17
|
+
as?: React.ElementType;
|
|
18
18
|
}, {}, {
|
|
19
19
|
ref?: import("react").Ref<View> | undefined;
|
|
20
20
|
}>;
|
|
21
21
|
declare const StyledSuccessImageContainer: 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 StyledSuccessTitle: import("@emotion/native").StyledComponent<import("../Typography/Title").TitleProps & {
|
|
28
|
-
theme?: import("@emotion/react").Theme
|
|
29
|
-
as?:
|
|
28
|
+
theme?: import("@emotion/react").Theme;
|
|
29
|
+
as?: React.ElementType;
|
|
30
30
|
}, {}, {}>;
|
|
31
31
|
declare const StyledSuccessDescription: import("@emotion/native").StyledComponent<import("../Typography/Body").BodyProps & {
|
|
32
|
-
theme?: import("@emotion/react").Theme
|
|
33
|
-
as?:
|
|
32
|
+
theme?: import("@emotion/react").Theme;
|
|
33
|
+
as?: React.ElementType;
|
|
34
34
|
}, {}, {}>;
|
|
35
35
|
declare const StyledSuccessButtonContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
36
|
-
theme?: import("@emotion/react").Theme
|
|
37
|
-
as?:
|
|
36
|
+
theme?: import("@emotion/react").Theme;
|
|
37
|
+
as?: React.ElementType;
|
|
38
38
|
}, {}, {
|
|
39
39
|
ref?: import("react").Ref<View> | undefined;
|
|
40
40
|
}>;
|
|
41
41
|
declare const StyledSuccessButtonPrimary: import("@emotion/native").StyledComponent<import("../Button/Button").ButtonProps & {
|
|
42
|
-
theme?: import("@emotion/react").Theme
|
|
43
|
-
as?:
|
|
42
|
+
theme?: import("@emotion/react").Theme;
|
|
43
|
+
as?: React.ElementType;
|
|
44
44
|
}, {}, {}>;
|
|
45
45
|
declare const StyledSuccessModal: import("@emotion/native").StyledComponent<import("../Modal").ModalProps & {
|
|
46
|
-
theme?: import("@emotion/react").Theme
|
|
47
|
-
as?:
|
|
46
|
+
theme?: import("@emotion/react").Theme;
|
|
47
|
+
as?: React.ElementType;
|
|
48
48
|
}, {}, {}>;
|
|
49
49
|
export { SuccessVariant, StyledSuccessImage, StyledSuccessContainer, StyledSuccessContent, StyledSuccessImageContainer, StyledSuccessTitle, StyledSuccessDescription, StyledSuccessButtonContainer, StyledSuccessButtonPrimary, StyledSuccessModal, };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { TouchableOpacity } from 'react-native';
|
|
2
|
-
export
|
|
2
|
+
export type ActionIntent = 'primary' | 'success' | 'danger';
|
|
3
3
|
export declare const StyledRectButton: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
|
|
4
|
-
theme?: import("@emotion/react").Theme
|
|
5
|
-
as?:
|
|
4
|
+
theme?: import("@emotion/react").Theme;
|
|
5
|
+
as?: React.ElementType;
|
|
6
6
|
} & {
|
|
7
7
|
themeIntent: ActionIntent;
|
|
8
8
|
}, {}, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { ComponentProps, ReactNode } from 'react';
|
|
2
2
|
import { Swipeable as RnghSwipeable } from 'react-native-gesture-handler';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
type State = 'closed' | 'leftOpen' | 'rightOpen';
|
|
4
|
+
type RnghSwipeableProps = ComponentProps<typeof RnghSwipeable>;
|
|
5
5
|
export interface SwipeableProps extends Pick<RnghSwipeableProps, 'enableTrackpadTwoFingerGesture' | 'friction' | 'leftThreshold' | 'rightThreshold' | 'overshootLeft' | 'overshootRight' | 'overshootFriction' | 'useNativeAnimations' | 'containerStyle' | 'childrenContainerStyle'> {
|
|
6
6
|
/**
|
|
7
7
|
* React node that is swipeable.
|
|
@@ -4,13 +4,11 @@ import { LayoutChangeEvent } from 'react-native';
|
|
|
4
4
|
import type { BadgeConfigType, OptionType } from '.';
|
|
5
5
|
export declare const OptionContent: ({ content, badge, }: {
|
|
6
6
|
content: ReactElement;
|
|
7
|
-
badge?:
|
|
8
|
-
type: "status";
|
|
9
|
-
} | undefined;
|
|
7
|
+
badge?: BadgeConfigType;
|
|
10
8
|
}) => React.JSX.Element;
|
|
11
9
|
declare const Option: <T>({ text, icon, badge, selected, onLayout, index, }: Pick<OptionType<T>, "text" | "icon" | "badge"> & {
|
|
12
10
|
selected: boolean;
|
|
13
|
-
onLayout?: (
|
|
14
|
-
index?: number
|
|
11
|
+
onLayout?: (e: LayoutChangeEvent) => void;
|
|
12
|
+
index?: number;
|
|
15
13
|
}) => ReactElement;
|
|
16
14
|
export default Option;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { View, Animated } from 'react-native';
|
|
2
2
|
export declare const StyledWrapper: 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
|
export declare const StyledTextWrapper: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
9
|
-
theme?: import("@emotion/react").Theme
|
|
10
|
-
as?:
|
|
9
|
+
theme?: import("@emotion/react").Theme;
|
|
10
|
+
as?: React.ElementType;
|
|
11
11
|
}, {}, {}>;
|
|
12
12
|
export declare const StyledIconWrapper: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
13
|
-
theme?: import("@emotion/react").Theme
|
|
14
|
-
as?:
|
|
13
|
+
theme?: import("@emotion/react").Theme;
|
|
14
|
+
as?: React.ElementType;
|
|
15
15
|
}, {}, {}>;
|
|
16
16
|
export declare const StyledKnot: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
17
|
-
theme?: import("@emotion/react").Theme
|
|
18
|
-
as?:
|
|
17
|
+
theme?: import("@emotion/react").Theme;
|
|
18
|
+
as?: React.ElementType;
|
|
19
19
|
}, {}, {}>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
import type { IconName } from '../../Icon';
|
|
4
|
-
|
|
4
|
+
type StatusBadgeType = {
|
|
5
5
|
type: 'status';
|
|
6
6
|
};
|
|
7
|
-
export
|
|
8
|
-
export
|
|
7
|
+
export type BadgeConfigType = StatusBadgeType;
|
|
8
|
+
export type OptionType<T> = {
|
|
9
9
|
value: T;
|
|
10
10
|
text: string;
|
|
11
11
|
icon: IconName;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Animated, View } from 'react-native';
|
|
2
|
-
export
|
|
2
|
+
export type Variant = 'checked' | 'unchecked' | 'disabled-checked' | 'disabled-unchecked';
|
|
3
3
|
declare const StyledWrapper: 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
|
themeVariant: Variant;
|
|
8
8
|
}, {}, {
|
|
9
9
|
ref?: import("react").Ref<View> | undefined;
|
|
10
10
|
}>;
|
|
11
11
|
declare const StyledKnot: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
12
|
-
theme?: import("@emotion/react").Theme
|
|
13
|
-
as?:
|
|
12
|
+
theme?: import("@emotion/react").Theme;
|
|
13
|
+
as?: React.ElementType;
|
|
14
14
|
}, {}, {}>;
|
|
15
15
|
export { StyledWrapper, StyledKnot };
|