@hero-design/rn 8.82.1 → 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/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
- package/.turbo/turbo-build.log +0 -7
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import { TouchableOpacity, View } from 'react-native';
|
|
2
|
-
|
|
2
|
+
type CheckboxThemeState = 'default' | 'disabled' | 'readonly';
|
|
3
3
|
export declare const StyledWrapper: 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
|
themeState: CheckboxThemeState;
|
|
8
8
|
}, {}, {
|
|
9
9
|
ref?: import("react").Ref<TouchableOpacity> | undefined;
|
|
10
10
|
}>;
|
|
11
11
|
export declare const StyledDescription: import("@emotion/native").StyledComponent<import("../Typography/Body").BodyProps & {
|
|
12
|
-
theme?: import("@emotion/react").Theme
|
|
13
|
-
as?:
|
|
12
|
+
theme?: import("@emotion/react").Theme;
|
|
13
|
+
as?: React.ElementType;
|
|
14
14
|
}, {}, {}>;
|
|
15
15
|
export declare const StyledCheckboxContainer: 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
|
export declare const StyledCheckbox: 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
|
themeState: CheckboxThemeState;
|
|
26
26
|
}, {}, {
|
|
27
27
|
ref?: import("react").Ref<View> | undefined;
|
|
28
28
|
}>;
|
|
29
29
|
export declare const StyledCheckMark: import("@emotion/native").StyledComponent<import("../Icon").IconProps & {
|
|
30
|
-
theme?: import("@emotion/react").Theme
|
|
31
|
-
as?:
|
|
30
|
+
theme?: import("@emotion/react").Theme;
|
|
31
|
+
as?: React.ElementType;
|
|
32
32
|
} & {
|
|
33
33
|
themeState: CheckboxThemeState;
|
|
34
34
|
}, {}, {}>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { TouchableOpacity } from 'react-native';
|
|
2
|
-
|
|
2
|
+
type StyledChipWrapperProps = {
|
|
3
3
|
themeVariant?: 'outlined' | 'filled' | 'compact' | 'compact-outlined';
|
|
4
4
|
themeSelected?: boolean;
|
|
5
5
|
};
|
|
6
6
|
declare const StyledChipWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
|
|
7
|
-
theme?: import("@emotion/react").Theme
|
|
8
|
-
as?:
|
|
7
|
+
theme?: import("@emotion/react").Theme;
|
|
8
|
+
as?: React.ElementType;
|
|
9
9
|
} & StyledChipWrapperProps, {}, {
|
|
10
10
|
ref?: import("react").Ref<TouchableOpacity> | undefined;
|
|
11
11
|
}>;
|
|
12
12
|
declare const StyledChipIcon: import("@emotion/native").StyledComponent<import("../Icon").IconProps & {
|
|
13
|
-
theme?: import("@emotion/react").Theme
|
|
14
|
-
as?:
|
|
13
|
+
theme?: import("@emotion/react").Theme;
|
|
14
|
+
as?: React.ElementType;
|
|
15
15
|
}, {}, {}>;
|
|
16
16
|
export { StyledChipWrapper, StyledChipIcon };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Animated, View } from 'react-native';
|
|
2
2
|
declare const StyledWrapper: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
3
|
-
theme?: import("@emotion/react").Theme
|
|
4
|
-
as?:
|
|
3
|
+
theme?: import("@emotion/react").Theme;
|
|
4
|
+
as?: React.ElementType;
|
|
5
5
|
}, {}, {}>;
|
|
6
6
|
/**
|
|
7
7
|
* Height need to be high enough to cover most scenario
|
|
@@ -9,14 +9,14 @@ declare const StyledWrapper: import("@emotion/native").StyledComponent<Animated.
|
|
|
9
9
|
* to use with Animated.timing
|
|
10
10
|
*/
|
|
11
11
|
declare const StyledHiddenWrapper: 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 StyledChildWrapper: 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 { View } from 'react-native';
|
|
2
2
|
declare const Wrapper: 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
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { DatePickerProps } from './types';
|
|
3
|
-
|
|
3
|
+
type DatePickerAndroidProps = Omit<DatePickerProps, 'variant' | 'monthPickerConfirmLabel' | 'monthPickerCancelLabel'> & {
|
|
4
4
|
variant?: 'default' | 'month-year';
|
|
5
5
|
};
|
|
6
6
|
declare const DatePickerAndroid: ({ value, minDate, maxDate, label, placeholder, onChange, displayFormat, disabled, required, error, helpText, style, testID, variant, }: DatePickerAndroidProps) => React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { DatePickerProps } from './types';
|
|
3
|
-
declare const DatePickerCalendar: ({ value, minDate, maxDate, label, placeholder, onChange, confirmLabel, displayFormat, disabled, required, error, helpText, style, testID, monthPickerConfirmLabel, monthPickerCancelLabel, supportedOrientations, }: Omit<DatePickerProps,
|
|
3
|
+
declare const DatePickerCalendar: ({ value, minDate, maxDate, label, placeholder, onChange, confirmLabel, displayFormat, disabled, required, error, helpText, style, testID, monthPickerConfirmLabel, monthPickerCancelLabel, supportedOrientations, }: Omit<DatePickerProps, "variant">) => React.JSX.Element;
|
|
4
4
|
export default DatePickerCalendar;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { DatePickerProps } from './types';
|
|
3
|
-
|
|
3
|
+
type DatePickerIOSProps = Omit<DatePickerProps, 'variant' | 'monthPickerConfirmLabel' | 'monthPickerCancelLabel'> & {
|
|
4
4
|
variant?: 'default' | 'month-year';
|
|
5
5
|
};
|
|
6
6
|
declare const DatePickerIOS: ({ value, minDate, maxDate, label, placeholder, onChange, confirmLabel, displayFormat, disabled, required, error, helpText, style, testID, supportedOrientations, variant, }: DatePickerIOSProps) => React.JSX.Element;
|
|
@@ -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
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { DatePickerProps } from './types';
|
|
2
2
|
export declare const getDateValue: (value: Date, minDate?: Date | undefined, maxDate?: Date | undefined) => Date;
|
|
3
|
-
declare const useCalculateDate: ({ maxDate, minDate, onChange, value, }: Pick<DatePickerProps,
|
|
3
|
+
declare const useCalculateDate: ({ maxDate, minDate, onChange, value, }: Pick<DatePickerProps, "maxDate" | "minDate" | "onChange" | "value">) => void;
|
|
4
4
|
export default useCalculateDate;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { View } from 'react-native';
|
|
2
|
-
|
|
2
|
+
type MarginSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
3
3
|
declare const StyledDivider: 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
|
-
themeMarginHorizontal?: MarginSize
|
|
8
|
-
themeMarginVertical?: MarginSize
|
|
7
|
+
themeMarginHorizontal?: MarginSize;
|
|
8
|
+
themeMarginVertical?: MarginSize;
|
|
9
9
|
}, {}, {
|
|
10
10
|
ref?: import("react").Ref<View> | undefined;
|
|
11
11
|
}>;
|
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
import { Animated, View } from 'react-native';
|
|
2
2
|
import type { ViewProps } from 'react-native';
|
|
3
3
|
declare const StyledContainer: 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
|
enableShadow: boolean;
|
|
8
8
|
}, {}, {
|
|
9
9
|
ref?: import("react").Ref<View> | undefined;
|
|
10
10
|
}>;
|
|
11
11
|
declare const StyledDragableContainer: import("@emotion/native").StyledComponent<ViewProps & {
|
|
12
|
-
theme?: import("@emotion/react").Theme
|
|
13
|
-
as?:
|
|
12
|
+
theme?: import("@emotion/react").Theme;
|
|
13
|
+
as?: React.ElementType;
|
|
14
14
|
} & {
|
|
15
15
|
enableShadow: boolean;
|
|
16
16
|
}, {}, {
|
|
17
17
|
ref?: import("react").Ref<View> | undefined;
|
|
18
18
|
}>;
|
|
19
19
|
declare const StyledBackdrop: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").PressableProps & import("react").RefAttributes<View>> & {
|
|
20
|
-
theme?: import("@emotion/react").Theme
|
|
21
|
-
as?:
|
|
20
|
+
theme?: import("@emotion/react").Theme;
|
|
21
|
+
as?: React.ElementType;
|
|
22
22
|
}, {}, {}>;
|
|
23
23
|
declare const StyledDrawerContainer: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
|
|
24
|
-
theme?: import("@emotion/react").Theme
|
|
25
|
-
as?:
|
|
24
|
+
theme?: import("@emotion/react").Theme;
|
|
25
|
+
as?: React.ElementType;
|
|
26
26
|
} & {
|
|
27
27
|
enableShadow: boolean;
|
|
28
28
|
}, {}, {}>;
|
|
29
29
|
declare const StyledDragableDrawerContainer: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
|
|
30
|
-
theme?: import("@emotion/react").Theme
|
|
31
|
-
as?:
|
|
30
|
+
theme?: import("@emotion/react").Theme;
|
|
31
|
+
as?: React.ElementType;
|
|
32
32
|
} & {
|
|
33
33
|
enableShadow: boolean;
|
|
34
34
|
}, {}, {}>;
|
|
35
35
|
declare const StyledHandlerContainer: import("@emotion/native").StyledComponent<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 StyledHandler: import("@emotion/native").StyledComponent<ViewProps & {
|
|
42
|
-
theme?: import("@emotion/react").Theme
|
|
43
|
-
as?:
|
|
42
|
+
theme?: import("@emotion/react").Theme;
|
|
43
|
+
as?: React.ElementType;
|
|
44
44
|
} & {
|
|
45
|
-
active?: boolean
|
|
45
|
+
active?: boolean;
|
|
46
46
|
}, {}, {
|
|
47
47
|
ref?: import("react").Ref<View> | undefined;
|
|
48
48
|
}>;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { View } from 'react-native';
|
|
2
|
-
|
|
2
|
+
type ThemeVariant = 'light' | 'dark';
|
|
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
|
ref?: import("react").Ref<View> | undefined;
|
|
8
8
|
}>;
|
|
9
9
|
declare const StyledTitle: import("@emotion/native").StyledComponent<import("../Typography/Title").TitleProps & {
|
|
10
|
-
theme?: import("@emotion/react").Theme
|
|
11
|
-
as?:
|
|
10
|
+
theme?: import("@emotion/react").Theme;
|
|
11
|
+
as?: React.ElementType;
|
|
12
12
|
} & {
|
|
13
13
|
themeVariant: ThemeVariant;
|
|
14
14
|
}, {}, {}>;
|
|
15
15
|
declare const StyledDescription: import("@emotion/native").StyledComponent<import("../Typography/Body").BodyProps & {
|
|
16
|
-
theme?: import("@emotion/react").Theme
|
|
17
|
-
as?:
|
|
16
|
+
theme?: import("@emotion/react").Theme;
|
|
17
|
+
as?: React.ElementType;
|
|
18
18
|
} & {
|
|
19
19
|
themeVariant: ThemeVariant;
|
|
20
20
|
}, {}, {}>;
|
|
@@ -1,53 +1,53 @@
|
|
|
1
1
|
import { View } from 'react-native';
|
|
2
|
-
|
|
2
|
+
type ErrorVariant = 'full-screen' | 'in-page';
|
|
3
3
|
declare const StyledErrorModal: import("@emotion/native").StyledComponent<import("../Modal").ModalProps & {
|
|
4
|
-
theme?: import("@emotion/react").Theme
|
|
5
|
-
as?:
|
|
4
|
+
theme?: import("@emotion/react").Theme;
|
|
5
|
+
as?: React.ElementType;
|
|
6
6
|
}, {}, {}>;
|
|
7
7
|
declare const StyledErrorContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
8
|
-
theme?: import("@emotion/react").Theme
|
|
9
|
-
as?:
|
|
8
|
+
theme?: import("@emotion/react").Theme;
|
|
9
|
+
as?: React.ElementType;
|
|
10
10
|
} & {
|
|
11
11
|
themeVariant: ErrorVariant;
|
|
12
12
|
}, {}, {
|
|
13
13
|
ref?: import("react").Ref<View> | undefined;
|
|
14
14
|
}>;
|
|
15
15
|
declare const StyledErrorContent: 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 StyledErrorButtonContainer: 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 StyledErrorButtonPrimary: import("@emotion/native").StyledComponent<import("../Button/Button").ButtonProps & {
|
|
28
|
-
theme?: import("@emotion/react").Theme
|
|
29
|
-
as?:
|
|
28
|
+
theme?: import("@emotion/react").Theme;
|
|
29
|
+
as?: React.ElementType;
|
|
30
30
|
}, {}, {}>;
|
|
31
31
|
declare const StyledErrorButtonSecondary: import("@emotion/native").StyledComponent<import("../Button/Button").ButtonProps & {
|
|
32
|
-
theme?: import("@emotion/react").Theme
|
|
33
|
-
as?:
|
|
32
|
+
theme?: import("@emotion/react").Theme;
|
|
33
|
+
as?: React.ElementType;
|
|
34
34
|
}, {}, {}>;
|
|
35
35
|
declare const StyledErrorImageContainer: 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 StyledErrorImage: import("@emotion/native").StyledComponent<import("../Image").ImageProps & {
|
|
42
|
-
theme?: import("@emotion/react").Theme
|
|
43
|
-
as?:
|
|
42
|
+
theme?: import("@emotion/react").Theme;
|
|
43
|
+
as?: React.ElementType;
|
|
44
44
|
}, {}, {}>;
|
|
45
45
|
declare const StyledErrorTitle: import("@emotion/native").StyledComponent<import("../Typography/Title").TitleProps & {
|
|
46
|
-
theme?: import("@emotion/react").Theme
|
|
47
|
-
as?:
|
|
46
|
+
theme?: import("@emotion/react").Theme;
|
|
47
|
+
as?: React.ElementType;
|
|
48
48
|
}, {}, {}>;
|
|
49
49
|
declare const StyledErrorDescription: import("@emotion/native").StyledComponent<import("../Typography/Body").BodyProps & {
|
|
50
|
-
theme?: import("@emotion/react").Theme
|
|
51
|
-
as?:
|
|
50
|
+
theme?: import("@emotion/react").Theme;
|
|
51
|
+
as?: React.ElementType;
|
|
52
52
|
}, {}, {}>;
|
|
53
53
|
export { ErrorVariant, StyledErrorModal, StyledErrorImage, StyledErrorContainer, StyledErrorButtonContainer, StyledErrorButtonPrimary, StyledErrorButtonSecondary, StyledErrorContent, StyledErrorTitle, StyledErrorDescription, StyledErrorImageContainer, };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { Animated, View } from 'react-native';
|
|
2
2
|
import type { ViewProps } from 'react-native';
|
|
3
3
|
declare const StyledContainer: 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 StyledContainerInModal: 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 StyledActionGroupContainer: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
|
|
16
|
-
theme?: import("@emotion/react").Theme
|
|
17
|
-
as?:
|
|
16
|
+
theme?: import("@emotion/react").Theme;
|
|
17
|
+
as?: React.ElementType;
|
|
18
18
|
}, {}, {}>;
|
|
19
19
|
declare const StyledFAB: import("@emotion/native").StyledComponent<import("../FAB").FABProps & import("react").RefAttributes<import("../FAB").FABHandles> & {
|
|
20
|
-
theme?: import("@emotion/react").Theme
|
|
21
|
-
as?:
|
|
20
|
+
theme?: import("@emotion/react").Theme;
|
|
21
|
+
as?: React.ElementType;
|
|
22
22
|
}, {}, {}>;
|
|
23
23
|
declare const StyledBackdrop: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").PressableProps & import("react").RefAttributes<View>> & {
|
|
24
|
-
theme?: import("@emotion/react").Theme
|
|
25
|
-
as?:
|
|
24
|
+
theme?: import("@emotion/react").Theme;
|
|
25
|
+
as?: React.ElementType;
|
|
26
26
|
}, {}, {}>;
|
|
27
27
|
export { StyledActionGroupContainer, StyledBackdrop, StyledContainer, StyledContainerInModal, StyledFAB, };
|
|
@@ -2,17 +2,17 @@ import { TouchableOpacity } from 'react-native';
|
|
|
2
2
|
import type { TouchableOpacityProps } from 'react-native';
|
|
3
3
|
import type { IconProps } from '../../Icon';
|
|
4
4
|
declare const StyledActionItem: import("@emotion/native").StyledComponent<TouchableOpacityProps & {
|
|
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<TouchableOpacity> | undefined;
|
|
9
9
|
}>;
|
|
10
10
|
declare const StyledActionItemText: import("@emotion/native").StyledComponent<import("../../Typography/Body").BodyProps & {
|
|
11
|
-
theme?: import("@emotion/react").Theme
|
|
12
|
-
as?:
|
|
11
|
+
theme?: import("@emotion/react").Theme;
|
|
12
|
+
as?: React.ElementType;
|
|
13
13
|
} & TouchableOpacityProps, {}, {}>;
|
|
14
14
|
declare const StyledIcon: import("@emotion/native").StyledComponent<IconProps & {
|
|
15
|
-
theme?: import("@emotion/react").Theme
|
|
16
|
-
as?:
|
|
15
|
+
theme?: import("@emotion/react").Theme;
|
|
16
|
+
as?: React.ElementType;
|
|
17
17
|
}, {}, {}>;
|
|
18
18
|
export { StyledIcon, StyledActionItem, StyledActionItemText };
|
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import type { StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
import type { IconName } from '../../Icon';
|
|
4
4
|
import type { ActionItemProps } from './ActionItem';
|
|
5
|
-
export
|
|
5
|
+
export type ActionGroupHandles = {
|
|
6
6
|
showFAB: () => void;
|
|
7
7
|
collapseFAB: () => void;
|
|
8
8
|
hideFAB: () => void;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
declare const StyledFABPairWrapper: import("@emotion/native").StyledComponent<import("../../Box").BoxProps & {
|
|
2
|
-
theme?: import("@emotion/react").Theme
|
|
3
|
-
as?:
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
3
|
+
as?: React.ElementType;
|
|
4
4
|
}, {}, {}>;
|
|
5
5
|
declare const StyledFAB: import("@emotion/native").StyledComponent<import("../FAB").FABProps & import("react").RefAttributes<import("../FAB").FABHandles> & {
|
|
6
|
-
theme?: import("@emotion/react").Theme
|
|
7
|
-
as?:
|
|
6
|
+
theme?: import("@emotion/react").Theme;
|
|
7
|
+
as?: React.ElementType;
|
|
8
8
|
} & {
|
|
9
|
-
iconOnly?: boolean
|
|
10
|
-
isLast?: boolean
|
|
9
|
+
iconOnly?: boolean;
|
|
10
|
+
isLast?: boolean;
|
|
11
11
|
}, {}, {}>;
|
|
12
12
|
export { StyledFABPairWrapper, StyledFAB };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ViewProps } from 'react-native';
|
|
3
3
|
import { FABProps } from '../FAB';
|
|
4
|
-
export
|
|
4
|
+
export type InnerFABProps = Pick<FABProps, 'icon' | 'title' | 'onPress' | 'testID'>;
|
|
5
5
|
export interface FABPairProps extends ViewProps {
|
|
6
6
|
/**
|
|
7
7
|
* Configuration for the main FAB.
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { TextProps, Animated, TouchableOpacity } from 'react-native';
|
|
2
2
|
import type { IconProps } from '../Icon';
|
|
3
3
|
declare const StyledFAB: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").TouchableOpacityProps & import("react").RefAttributes<TouchableOpacity>> & {
|
|
4
|
-
theme?: import("@emotion/react").Theme
|
|
5
|
-
as?:
|
|
4
|
+
theme?: import("@emotion/react").Theme;
|
|
5
|
+
as?: React.ElementType;
|
|
6
6
|
} & {
|
|
7
|
-
themeActive?: boolean
|
|
7
|
+
themeActive?: boolean;
|
|
8
8
|
}, {}, {}>;
|
|
9
9
|
declare const StyledFABIcon: import("@emotion/native").StyledComponent<IconProps & {
|
|
10
|
-
theme?: import("@emotion/react").Theme
|
|
11
|
-
as?:
|
|
10
|
+
theme?: import("@emotion/react").Theme;
|
|
11
|
+
as?: React.ElementType;
|
|
12
12
|
}, {}, {}>;
|
|
13
13
|
declare const StyledFABText: import("@emotion/native").StyledComponent<import("../Typography/Body").BodyProps & {
|
|
14
|
-
theme?: import("@emotion/react").Theme
|
|
15
|
-
as?:
|
|
14
|
+
theme?: import("@emotion/react").Theme;
|
|
15
|
+
as?: React.ElementType;
|
|
16
16
|
} & TextProps, {}, {}>;
|
|
17
17
|
declare const StyledIconContainer: import("@emotion/native").StyledComponent<import("../Box").BoxProps & {
|
|
18
|
-
theme?: import("@emotion/react").Theme
|
|
19
|
-
as?:
|
|
18
|
+
theme?: import("@emotion/react").Theme;
|
|
19
|
+
as?: React.ElementType;
|
|
20
20
|
}, {}, {}>;
|
|
21
21
|
export { StyledFAB, StyledFABIcon, StyledFABText, StyledIconContainer };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native
|
|
2
|
-
theme?: import("@emotion/react").Theme
|
|
3
|
-
as?:
|
|
1
|
+
declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
|
|
2
|
+
theme?: import("@emotion/react").Theme;
|
|
3
|
+
as?: React.ElementType;
|
|
4
4
|
}, {}, {
|
|
5
|
-
ref?: import("react").Ref<import("react-native
|
|
5
|
+
ref?: import("react").Ref<import("react-native").TouchableOpacity> | undefined;
|
|
6
6
|
}>;
|
|
7
7
|
declare const StyledPrefixWrapper: import("@emotion/native").StyledComponent<import("../Box").BoxProps & {
|
|
8
|
-
theme?: import("@emotion/react").Theme
|
|
9
|
-
as?:
|
|
8
|
+
theme?: import("@emotion/react").Theme;
|
|
9
|
+
as?: React.ElementType;
|
|
10
10
|
}, {}, {}>;
|
|
11
11
|
declare const StyledSuffixWrapper: import("@emotion/native").StyledComponent<import("../Box").BoxProps & {
|
|
12
|
-
theme?: import("@emotion/react").Theme
|
|
13
|
-
as?:
|
|
12
|
+
theme?: import("@emotion/react").Theme;
|
|
13
|
+
as?: React.ElementType;
|
|
14
14
|
}, {}, {}>;
|
|
15
15
|
declare const StyledIcon: import("@emotion/native").StyledComponent<import("../Icon").IconProps & {
|
|
16
|
-
theme?: import("@emotion/react").Theme
|
|
17
|
-
as?:
|
|
16
|
+
theme?: import("@emotion/react").Theme;
|
|
17
|
+
as?: React.ElementType;
|
|
18
18
|
}, {}, {}>;
|
|
19
19
|
export { StyledWrapper, StyledPrefixWrapper, StyledSuffixWrapper, StyledIcon };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ComponentProps } from 'react';
|
|
3
3
|
import StyledHeroIcon from './HeroIcon';
|
|
4
|
-
|
|
4
|
+
type AnimatedIconProps = ComponentProps<typeof StyledHeroIcon>;
|
|
5
5
|
declare const AnimatedIcon: ({ style, ...otherProps }: AnimatedIconProps) => React.JSX.Element;
|
|
6
6
|
export default AnimatedIcon;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
type ThemeSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
2
|
+
type ThemeIntent = 'text' | 'primary' | 'secondary' | 'info' | 'danger' | 'success' | 'warning' | 'disabled-text' | 'text-inverted' | 'muted';
|
|
3
3
|
declare const StyledHeroIcon: import("@emotion/native").StyledComponent<import("react-native-vector-icons/Icon").IconProps & {
|
|
4
|
-
theme?: import("@emotion/react").Theme
|
|
5
|
-
as?:
|
|
4
|
+
theme?: import("@emotion/react").Theme;
|
|
5
|
+
as?: React.ElementType;
|
|
6
6
|
} & {
|
|
7
7
|
themeSize: ThemeSize;
|
|
8
8
|
themeIntent: ThemeIntent;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { AccessibilityProps, StyleProp, TextStyle } from 'react-native';
|
|
3
3
|
import IconList from './IconList';
|
|
4
|
-
export
|
|
4
|
+
export type IconName = typeof IconList[number];
|
|
5
5
|
export interface IconProps extends AccessibilityProps {
|
|
6
6
|
/**
|
|
7
7
|
* Name of the Icon.
|