@hero-design/rn 7.23.0 → 7.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +2 -2
- package/assets/fonts/hero-icons.ttf +0 -0
- package/es/index.js +1364 -9239
- package/lib/assets/fonts/hero-icons.ttf +0 -0
- package/lib/index.js +1368 -9238
- package/package.json +7 -4
- package/rollup.config.js +1 -0
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +4 -4
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +6 -6
- package/src/components/Attachment/StyledAttachment.tsx +44 -0
- package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +158 -0
- package/src/components/Attachment/__tests__/index.spec.tsx +59 -0
- package/src/components/Attachment/index.tsx +77 -0
- package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +3 -3
- package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/Badge/Status.tsx +1 -1
- package/src/components/Badge/StyledBadge.tsx +8 -1
- package/src/components/Badge/__tests__/Badge.spec.tsx +9 -0
- package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +44 -0
- package/src/components/Badge/index.tsx +1 -1
- package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/BottomSheet/Header.tsx +2 -1
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +52 -52
- package/src/components/BottomSheet/index.tsx +4 -4
- package/src/components/Button/Button.tsx +0 -11
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/StyledLoadingIndicator.spec.tsx.snap +4 -4
- package/src/components/Button/LoadingIndicator/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
- package/src/components/Button/LoadingIndicator/index.tsx +1 -1
- package/src/components/Button/StyledButton.tsx +24 -63
- package/src/components/Button/UtilityButton/__tests__/index.spec.tsx +2 -2
- package/src/components/Button/__tests__/Button.spec.tsx +10 -5
- package/src/components/Button/__tests__/StyledButton.spec.tsx +0 -70
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +301 -1206
- package/src/components/Calendar/CalendarRowItem.tsx +1 -4
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +5 -5
- package/src/components/Calendar/index.tsx +4 -3
- package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +1 -1
- package/src/components/Card/__tests__/__snapshots__/StyledCard.spec.tsx.snap +1 -1
- package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Checkbox/StyledCheckbox.tsx +7 -5
- package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +4 -12
- package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +95 -42
- package/src/components/Checkbox/index.tsx +4 -2
- package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/ContentNavigator/index.tsx +14 -9
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +2 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +29 -27
- package/src/components/Drawer/DragableDrawer/index.tsx +0 -2
- package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/Empty/index.tsx +1 -2
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +12 -12
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +1 -1
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/Icon/HeroIcon/fonts/hero-icons.ttf +0 -0
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -0
- package/src/components/Icon/HeroIcon/index.tsx +3 -7
- package/src/components/Icon/IconList.ts +36 -6
- package/src/components/Icon/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Icon/index.tsx +1 -0
- package/src/components/List/BasicListItem.tsx +13 -8
- package/src/components/List/ListItem.tsx +8 -6
- package/src/components/List/StyledBasicListItem.tsx +2 -2
- package/src/components/List/StyledListItem.tsx +2 -2
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +24 -36
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +39 -59
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +40 -44
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +50 -50
- package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +6 -6
- package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +21 -21
- package/src/components/Progress/ProgressBar.tsx +1 -1
- package/src/components/Progress/ProgressCircle.tsx +1 -1
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +10 -10
- package/src/components/Progress/types.ts +7 -1
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +20 -32
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +30 -48
- package/src/components/RefreshControl/__tests__/index.spec.tsx +1 -3
- package/src/components/RefreshControl/index.tsx +4 -2
- package/src/components/RichTextEditor/MentionList.tsx +12 -3
- package/src/components/RichTextEditor/RichTextEditor.tsx +4 -8
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +6 -4
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +13 -20
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +154 -238
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +435 -650
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +11 -18
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +144 -228
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +414 -629
- package/src/components/Select/StyledOptionList.tsx +0 -1
- package/src/components/Select/__tests__/__snapshots__/StyledSelect.spec.tsx.snap +1 -1
- package/src/components/Spinner/AnimatedSpinner.tsx +22 -7
- package/src/components/Spinner/StyledSpinner.tsx +15 -11
- package/src/components/Spinner/__tests__/AnimatedSpinner.spec.tsx +3 -1
- package/src/components/Spinner/__tests__/StyledSpinner.spec.tsx +42 -31
- package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +12 -8
- package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +543 -83
- package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +12 -8
- package/src/components/Spinner/index.tsx +6 -1
- package/src/components/Swipeable/StyledSwipeable.tsx +11 -0
- package/src/components/Swipeable/SwipeableAction.tsx +45 -0
- package/src/components/Swipeable/__tests__/SwipeableAction.spec.tsx +37 -0
- package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +130 -0
- package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +33 -0
- package/src/components/Swipeable/__tests__/index.spec.tsx +34 -0
- package/src/components/Swipeable/index.tsx +160 -0
- package/src/components/Switch/SelectorSwitch/Option.tsx +1 -5
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +3 -3
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/Switch/SelectorSwitch/__tests__/index.spec.tsx +1 -0
- package/src/components/Switch/SelectorSwitch/index.tsx +4 -1
- package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +1 -1
- package/src/components/Tabs/StyledTabs.tsx +1 -1
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +1 -1
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +2 -2
- package/src/components/TextInput/StyledTextInput.tsx +7 -12
- package/src/components/TextInput/__tests__/StyledTextInput.spec.tsx +12 -6
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +31 -146
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +40 -14
- package/src/components/TextInput/__tests__/index.spec.tsx +114 -124
- package/src/components/TextInput/index.tsx +8 -6
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +2 -0
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +29 -27
- package/src/components/Toast/Toast.tsx +0 -3
- package/src/components/Toast/ToastProvider.tsx +1 -0
- package/src/components/Toast/__tests__/index.spec.tsx +1 -1
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +12 -12
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +6 -6
- package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +4 -4
- package/src/emotion.d.ts +1 -0
- package/src/index.ts +10 -0
- package/src/theme/ThemeSwitcher.tsx +7 -1
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +96 -78
- package/src/theme/__tests__/ensureCompatibleWithV7.spec.tsx +13 -0
- package/src/theme/components/alert.ts +1 -1
- package/src/theme/components/attachment.ts +28 -0
- package/src/theme/components/avatar.ts +1 -1
- package/src/theme/components/badge.ts +2 -1
- package/src/theme/components/bottomNavigation.ts +1 -1
- package/src/theme/components/bottomSheet.ts +2 -2
- package/src/theme/components/button.ts +4 -20
- package/src/theme/components/calendar.ts +3 -3
- package/src/theme/components/card.ts +1 -1
- package/src/theme/components/checkbox.ts +2 -2
- package/src/theme/components/divider.ts +1 -1
- package/src/theme/components/drawer.ts +2 -2
- package/src/theme/components/empty.ts +3 -3
- package/src/theme/components/fab.ts +7 -7
- package/src/theme/components/icon.ts +4 -4
- package/src/theme/components/list.ts +0 -2
- package/src/theme/components/pinInput.ts +4 -4
- package/src/theme/components/progress.ts +6 -5
- package/src/theme/components/radio.ts +1 -1
- package/src/theme/components/richTextEditor.ts +2 -2
- package/src/theme/components/slider.ts +2 -2
- package/src/theme/components/spinner.ts +4 -1
- package/src/theme/components/swipeable.ts +13 -0
- package/src/theme/components/switch.ts +4 -4
- package/src/theme/components/tabs.ts +6 -5
- package/src/theme/components/tag.ts +2 -2
- package/src/theme/components/textInput.ts +23 -33
- package/src/theme/components/toast.ts +3 -3
- package/src/theme/components/toolbar.ts +3 -3
- package/src/theme/components/typography.ts +7 -7
- package/src/theme/getTheme.ts +7 -1
- package/src/theme/global/colors/eBens.ts +23 -0
- package/src/theme/global/colors/global.ts +15 -6
- package/src/theme/global/colors/jobs.ts +15 -10
- package/src/theme/global/colors/legacySystemPalette.ts +6 -6
- package/src/theme/global/colors/swag.ts +32 -53
- package/src/theme/global/colors/types.ts +35 -15
- package/src/theme/global/colors/wallet.ts +23 -0
- package/src/theme/global/colors/work.ts +15 -11
- package/src/theme/global/index.ts +4 -0
- package/src/theme/index.ts +4 -0
- package/src/types.ts +2 -0
- package/src/utils/functions.ts +2 -0
- package/src/utils/scale.ts +1 -1
- package/testUtils/setup.tsx +13 -0
- package/tsconfig.json +8 -2
- package/types/components/Accordion/StyledAccordion.d.ts +14 -14
- package/types/components/Alert/StyledAlert.d.ts +15 -15
- package/types/components/Attachment/StyledAttachment.d.ts +28 -0
- package/types/components/Attachment/index.d.ts +37 -0
- package/types/components/Avatar/StyledAvatar.d.ts +15 -15
- package/types/components/Avatar/index.d.ts +1 -1
- package/types/components/Badge/Status.d.ts +1 -1
- package/types/components/Badge/StyledBadge.d.ts +8 -8
- package/types/components/Badge/index.d.ts +1 -1
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +21 -21
- package/types/components/BottomSheet/Header.d.ts +1 -1
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +22 -22
- package/types/components/Box/StyledBox.d.ts +4 -4
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +7 -7
- package/types/components/Button/StyledButton.d.ts +15 -18
- package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +8 -8
- package/types/components/Calendar/StyledCalendar.d.ts +25 -25
- package/types/components/Calendar/helpers.d.ts +2 -2
- package/types/components/Card/DataCard/StyledDataCard.d.ts +6 -6
- package/types/components/Card/StyledCard.d.ts +7 -7
- package/types/components/Checkbox/StyledCheckbox.d.ts +16 -10
- package/types/components/Collapse/StyledCollapse.d.ts +8 -8
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +5 -5
- package/types/components/ContentNavigator/index.d.ts +2 -1
- package/types/components/DatePicker/StyledDatePicker.d.ts +3 -3
- package/types/components/Divider/StyledDivider.d.ts +5 -5
- package/types/components/Drawer/StyledDrawer.d.ts +19 -19
- package/types/components/Empty/StyledEmpty.d.ts +9 -9
- package/types/components/Empty/index.d.ts +1 -2
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +11 -11
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +7 -7
- package/types/components/FAB/StyledFAB.d.ts +8 -8
- package/types/components/Icon/HeroIcon/index.d.ts +3 -3
- package/types/components/Icon/IconList.d.ts +1 -1
- package/types/components/Icon/index.d.ts +4 -1
- package/types/components/Icon/utils.d.ts +1 -1
- package/types/components/List/StyledBasicListItem.d.ts +16 -16
- package/types/components/List/StyledListItem.d.ts +25 -25
- package/types/components/PinInput/StyledPinInput.d.ts +30 -30
- package/types/components/Progress/ProgressBar.d.ts +1 -1
- package/types/components/Progress/ProgressCircle.d.ts +1 -1
- package/types/components/Progress/StyledProgressBar.d.ts +5 -5
- package/types/components/Progress/StyledProgressCircle.d.ts +18 -18
- package/types/components/Progress/types.d.ts +1 -1
- package/types/components/Radio/StyledRadio.d.ts +9 -9
- package/types/components/RefreshControl/index.d.ts +1 -2
- package/types/components/RichTextEditor/EditorToolbar.d.ts +1 -1
- package/types/components/RichTextEditor/MentionList.d.ts +1 -1
- package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +6 -6
- package/types/components/RichTextEditor/StyledToolbar.d.ts +9 -9
- package/types/components/RichTextEditor/index.d.ts +2 -2
- package/types/components/SectionHeading/StyledHeading.d.ts +9 -9
- package/types/components/Select/MultiSelect/Option.d.ts +1 -1
- package/types/components/Select/SingleSelect/Option.d.ts +1 -1
- package/types/components/Select/StyledSelect.d.ts +11 -11
- package/types/components/Select/helpers.d.ts +1 -1
- package/types/components/Spinner/AnimatedSpinner.d.ts +2 -1
- package/types/components/Spinner/StyledSpinner.d.ts +13 -12
- package/types/components/Spinner/index.d.ts +5 -1
- package/types/components/Swipeable/StyledSwipeable.d.ts +10 -0
- package/types/components/Swipeable/SwipeableAction.d.ts +27 -0
- package/types/components/Swipeable/index.d.ts +45 -0
- package/types/components/Switch/SelectorSwitch/Option.d.ts +3 -1
- package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +9 -9
- package/types/components/Switch/StyledSwitch.d.ts +5 -5
- package/types/components/Tabs/StyledScrollableTabs.d.ts +23 -23
- package/types/components/Tabs/StyledTabs.d.ts +22 -22
- package/types/components/Tag/StyledTag.d.ts +6 -6
- package/types/components/TextInput/StyledTextInput.d.ts +46 -45
- package/types/components/TextInput/index.d.ts +6 -6
- package/types/components/TimePicker/StyledTimePicker.d.ts +3 -3
- package/types/components/Toast/StyledToast.d.ts +17 -17
- package/types/components/Toolbar/StyledToolbar.d.ts +9 -9
- package/types/components/Typography/Text/StyledText.d.ts +3 -3
- package/types/index.d.ts +4 -2
- package/types/testHelpers/renderWithTheme.d.ts +1 -1
- package/types/theme/ThemeSwitcher.d.ts +2 -2
- package/types/theme/components/attachment.d.ts +21 -0
- package/types/theme/components/badge.d.ts +1 -0
- package/types/theme/components/button.d.ts +0 -15
- package/types/theme/components/list.d.ts +0 -1
- package/types/theme/components/progress.d.ts +1 -0
- package/types/theme/components/spinner.d.ts +4 -1
- package/types/theme/components/swipeable.d.ts +9 -0
- package/types/theme/components/tabs.d.ts +1 -0
- package/types/theme/components/tag.d.ts +2 -2
- package/types/theme/components/textInput.d.ts +0 -10
- package/types/theme/getTheme.d.ts +4 -0
- package/types/theme/global/colors/eBens.d.ts +3 -0
- package/types/theme/global/colors/types.d.ts +23 -16
- package/types/theme/global/colors/wallet.d.ts +3 -0
- package/types/theme/global/index.d.ts +26 -12
- package/types/theme/index.d.ts +2 -2
- package/types/types.d.ts +2 -1
- package/types/utils/functions.d.ts +1 -0
- package/types/utils/hooks.d.ts +1 -1
- package/src/components/Icon/HeroIcon/selection.json +0 -7029
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { RefreshControlProps as NativeRefreshControlProps } from 'react-native';
|
|
2
|
-
export
|
|
3
|
-
}
|
|
2
|
+
export declare type RefreshControlProps = Omit<NativeRefreshControlProps, 'colors' | 'tintColor'>;
|
|
4
3
|
declare const RefreshControl: ({ ...props }: RefreshControlProps) => JSX.Element;
|
|
5
4
|
export default RefreshControl;
|
|
@@ -13,5 +13,5 @@ export interface EditorToolbarProps {
|
|
|
13
13
|
*/
|
|
14
14
|
testID?: string;
|
|
15
15
|
}
|
|
16
|
-
declare const EditorToolbar: ({ name, buttons, testID, }: EditorToolbarProps) => JSX.Element;
|
|
16
|
+
declare const EditorToolbar: ({ name, buttons, testID, }: EditorToolbarProps) => JSX.Element | null;
|
|
17
17
|
export default EditorToolbar;
|
|
@@ -12,5 +12,5 @@ export interface MentionListProps<TMetaData = unknown> {
|
|
|
12
12
|
*/
|
|
13
13
|
render: (searchText: string, onSelect: (id: string, name: string, options?: OnSelectOptionsType<TMetaData>) => void) => JSX.Element;
|
|
14
14
|
}
|
|
15
|
-
declare const MentionList: <TMetaData>({ name: eventPrefix, render }: MentionListProps<TMetaData>) => JSX.Element;
|
|
15
|
+
declare const MentionList: <TMetaData>({ name: eventPrefix, render, }: MentionListProps<TMetaData>) => JSX.Element | null;
|
|
16
16
|
export default MentionList;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { View } from 'react-native';
|
|
2
2
|
import { WebView } from 'react-native-webview';
|
|
3
3
|
export declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
4
|
-
theme?: import("@emotion/react").Theme;
|
|
5
|
-
as?: import("react").ElementType<any
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any> | undefined;
|
|
6
6
|
}, {}, {
|
|
7
|
-
ref?: import("react").Ref<View
|
|
7
|
+
ref?: import("react").Ref<View> | undefined;
|
|
8
8
|
}>;
|
|
9
9
|
export declare const StyledWebView: import("@emotion/native").StyledComponent<import("react-native-webview/lib/WebViewTypes").IOSWebViewProps & import("react-native-webview/lib/WebViewTypes").AndroidWebViewProps & import("react-native-webview/lib/WebViewTypes").WindowsWebViewProps & {
|
|
10
|
-
theme?: import("@emotion/react").Theme;
|
|
11
|
-
as?: import("react").ElementType<any
|
|
10
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
+
as?: import("react").ElementType<any> | undefined;
|
|
12
12
|
} & {
|
|
13
13
|
height: number | undefined;
|
|
14
14
|
}, {}, {
|
|
15
|
-
ref?: import("react").Ref<WebView<unknown
|
|
15
|
+
ref?: import("react").Ref<WebView<unknown>> | undefined;
|
|
16
16
|
}>;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { TouchableOpacity, View } from 'react-native';
|
|
2
2
|
export declare const StyledToolbarButton: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
|
|
3
|
-
theme?: import("@emotion/react").Theme;
|
|
4
|
-
as?: import("react").ElementType<any
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
5
|
} & {
|
|
6
6
|
selected: boolean;
|
|
7
7
|
}, {}, {
|
|
8
|
-
ref?: import("react").Ref<TouchableOpacity
|
|
8
|
+
ref?: import("react").Ref<TouchableOpacity> | undefined;
|
|
9
9
|
}>;
|
|
10
10
|
export declare const StyledToolbar: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
11
|
-
theme?: import("@emotion/react").Theme;
|
|
12
|
-
as?: import("react").ElementType<any
|
|
11
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
+
as?: import("react").ElementType<any> | undefined;
|
|
13
13
|
}, {}, {
|
|
14
|
-
ref?: import("react").Ref<View
|
|
14
|
+
ref?: import("react").Ref<View> | undefined;
|
|
15
15
|
}>;
|
|
16
16
|
export declare const StyledSeparator: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
17
|
-
theme?: import("@emotion/react").Theme;
|
|
18
|
-
as?: import("react").ElementType<any
|
|
17
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
18
|
+
as?: import("react").ElementType<any> | undefined;
|
|
19
19
|
}, {}, {
|
|
20
|
-
ref?: import("react").Ref<View
|
|
20
|
+
ref?: import("react").Ref<View> | undefined;
|
|
21
21
|
}>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RichTextEditorProps, RichTextEditorRef } from './RichTextEditor';
|
|
2
2
|
export type { RichTextEditorProps, RichTextEditorRef };
|
|
3
3
|
declare const _default: import("react").ForwardRefExoticComponent<Omit<RichTextEditorProps, "forwardedRef"> & import("react").RefAttributes<RichTextEditorRef>> & {
|
|
4
|
-
MentionList: <TMetaData>({ name: eventPrefix, render }: import("./MentionList").MentionListProps<TMetaData>) => JSX.Element;
|
|
5
|
-
Toolbar: ({ name, buttons, testID, }: import("./EditorToolbar").EditorToolbarProps) => JSX.Element;
|
|
4
|
+
MentionList: <TMetaData>({ name: eventPrefix, render, }: import("./MentionList").MentionListProps<TMetaData>) => JSX.Element | null;
|
|
5
|
+
Toolbar: ({ name, buttons, testID, }: import("./EditorToolbar").EditorToolbarProps) => JSX.Element | null;
|
|
6
6
|
};
|
|
7
7
|
export default _default;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { View } from 'react-native';
|
|
2
2
|
declare const StyledHeading: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
3
|
-
theme?: import("@emotion/react").Theme;
|
|
4
|
-
as?: import("react").ElementType<any
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
5
|
}, {}, {
|
|
6
|
-
ref?: import("react").Ref<View
|
|
6
|
+
ref?: import("react").Ref<View> | undefined;
|
|
7
7
|
}>;
|
|
8
8
|
declare const StyledIconWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
9
|
-
theme?: import("@emotion/react").Theme;
|
|
10
|
-
as?: import("react").ElementType<any
|
|
9
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
10
|
+
as?: import("react").ElementType<any> | undefined;
|
|
11
11
|
}, {}, {
|
|
12
|
-
ref?: import("react").Ref<View
|
|
12
|
+
ref?: import("react").Ref<View> | undefined;
|
|
13
13
|
}>;
|
|
14
14
|
declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
15
|
-
theme?: import("@emotion/react").Theme;
|
|
16
|
-
as?: import("react").ElementType<any
|
|
15
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
16
|
+
as?: import("react").ElementType<any> | undefined;
|
|
17
17
|
}, {}, {
|
|
18
|
-
ref?: import("react").Ref<View
|
|
18
|
+
ref?: import("react").Ref<View> | undefined;
|
|
19
19
|
}>;
|
|
20
20
|
export { StyledHeading, StyledIconWrapper, StyledWrapper };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import { 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?: import("react").ElementType<any
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
5
|
}, {}, {
|
|
6
|
-
ref?: import("react").Ref<View
|
|
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?: import("react").ElementType<any
|
|
9
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
10
|
+
as?: import("react").ElementType<any> | undefined;
|
|
11
11
|
}, {}, {
|
|
12
|
-
ref?: import("react").Ref<View
|
|
12
|
+
ref?: import("react").Ref<View> | undefined;
|
|
13
13
|
}>;
|
|
14
14
|
declare const FooterText: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
|
|
15
|
-
theme?: import("@emotion/react").Theme;
|
|
16
|
-
as?: import("react").ElementType<any
|
|
15
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
16
|
+
as?: import("react").ElementType<any> | undefined;
|
|
17
17
|
}, {}, {}>;
|
|
18
18
|
declare const StyledSearchBar: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
19
|
-
theme?: import("@emotion/react").Theme;
|
|
20
|
-
as?: import("react").ElementType<any
|
|
19
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
20
|
+
as?: import("react").ElementType<any> | undefined;
|
|
21
21
|
}, {}, {
|
|
22
|
-
ref?: import("react").Ref<View
|
|
22
|
+
ref?: import("react").Ref<View> | undefined;
|
|
23
23
|
}>;
|
|
24
24
|
export { SectionSpacer, OptionSpacer, FooterText, StyledSearchBar };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SectionData, CombinedOptionsType, OptionType } from './types';
|
|
2
|
-
export declare const getKey: <V, T extends OptionType<V>>(option: T, index: number, keyExtractor?: (opt: T, i?: number) => string) => import("react").Key;
|
|
2
|
+
export declare const getKey: <V, T extends OptionType<V>>(option: T, index: number, keyExtractor?: ((opt: T, i?: number | undefined) => string) | undefined) => import("react").Key;
|
|
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>[];
|
|
@@ -1,33 +1,34 @@
|
|
|
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?: import("react").ElementType<any
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any> | undefined;
|
|
6
6
|
}, {}, {
|
|
7
|
-
ref?: import("react").Ref<View
|
|
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?: import("react").ElementType<any
|
|
10
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
+
as?: import("react").ElementType<any> | undefined;
|
|
12
12
|
}, {}, {
|
|
13
|
-
ref?: import("react").Ref<View
|
|
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?: import("react").ElementType<any
|
|
16
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
17
|
+
as?: import("react").ElementType<any> | undefined;
|
|
18
18
|
} & {
|
|
19
19
|
themePosition: 'top' | 'bottom';
|
|
20
20
|
themeSize: 'small' | 'medium';
|
|
21
21
|
}, {}, {
|
|
22
|
-
ref?: import("react").Ref<View
|
|
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?: import("react").ElementType<any
|
|
25
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
26
|
+
as?: import("react").ElementType<any> | undefined;
|
|
27
27
|
} & {
|
|
28
28
|
themePosition: 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
|
|
29
29
|
themeSize: 'small' | 'medium';
|
|
30
|
+
themeIntent: 'primary' | 'inverted';
|
|
30
31
|
}, {}, {
|
|
31
|
-
ref?: import("react").Ref<View
|
|
32
|
+
ref?: import("react").Ref<View> | undefined;
|
|
32
33
|
}>;
|
|
33
34
|
export { StyledView, StyledSpinnerContainer, StyledSpinnerRow, StyledSpinnerDot, };
|
|
@@ -5,10 +5,14 @@ interface SpinnerProps extends ViewProps {
|
|
|
5
5
|
* Size of Spinner.
|
|
6
6
|
*/
|
|
7
7
|
size?: 'small' | 'medium';
|
|
8
|
+
/**
|
|
9
|
+
* Spinner's variant.
|
|
10
|
+
*/
|
|
11
|
+
intent?: 'primary' | 'inverted';
|
|
8
12
|
/**
|
|
9
13
|
* Testing id of the component.
|
|
10
14
|
*/
|
|
11
15
|
testID?: string;
|
|
12
16
|
}
|
|
13
|
-
declare const Spinner: ({ testID, size, ...nativeProps }: SpinnerProps) => ReactElement;
|
|
17
|
+
declare const Spinner: ({ testID, size, intent, ...nativeProps }: SpinnerProps) => ReactElement;
|
|
14
18
|
export default Spinner;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TouchableOpacity } from 'react-native';
|
|
2
|
+
export declare type ActionIntent = 'primary' | 'success' | 'danger';
|
|
3
|
+
export declare const StyledRectButton: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any> | undefined;
|
|
6
|
+
} & {
|
|
7
|
+
themeIntent: ActionIntent;
|
|
8
|
+
}, {}, {
|
|
9
|
+
ref?: import("react").Ref<TouchableOpacity> | undefined;
|
|
10
|
+
}>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
import { ActionIntent } from './StyledSwipeable';
|
|
4
|
+
export interface SwipeableActionProps {
|
|
5
|
+
/**
|
|
6
|
+
* Visual intent color applied to action.
|
|
7
|
+
*/
|
|
8
|
+
intent?: ActionIntent;
|
|
9
|
+
/**
|
|
10
|
+
* Callback when the action button is pressed.
|
|
11
|
+
*/
|
|
12
|
+
onPress?: () => void;
|
|
13
|
+
/**
|
|
14
|
+
* Action button's content
|
|
15
|
+
*/
|
|
16
|
+
children?: ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* Additional style.
|
|
19
|
+
*/
|
|
20
|
+
style?: StyleProp<ViewStyle>;
|
|
21
|
+
/**
|
|
22
|
+
* Testing id of the component.
|
|
23
|
+
*/
|
|
24
|
+
testID?: string;
|
|
25
|
+
}
|
|
26
|
+
declare const SwipeableAction: ({ intent, onPress, style, children, testID, }: SwipeableActionProps) => JSX.Element;
|
|
27
|
+
export default SwipeableAction;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import { Swipeable as RnghSwipeable, RectButton } from 'react-native-gesture-handler';
|
|
3
|
+
declare type State = 'closed' | 'leftOpen' | 'rightOpen';
|
|
4
|
+
declare type RnghSwipeableProps = ComponentProps<typeof RnghSwipeable>;
|
|
5
|
+
export interface SwipeableProps extends Pick<RnghSwipeableProps, 'enableTrackpadTwoFingerGesture' | 'friction' | 'leftThreshold' | 'rightThreshold' | 'overshootLeft' | 'overshootRight' | 'overshootFriction' | 'useNativeAnimations' | 'containerStyle' | 'childrenContainerStyle'> {
|
|
6
|
+
/**
|
|
7
|
+
* React node that is swipeable.
|
|
8
|
+
*/
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* State of the component.
|
|
12
|
+
*/
|
|
13
|
+
state?: 'closed' | 'leftOpen' | 'rightOpen';
|
|
14
|
+
/**
|
|
15
|
+
* Callback when the state of the component changes.
|
|
16
|
+
*/
|
|
17
|
+
onStateChange?: (state: State) => void;
|
|
18
|
+
/**
|
|
19
|
+
* Action panel that is going to be revealed from the left side when user swipes right.
|
|
20
|
+
*/
|
|
21
|
+
leftActions?: ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* Width of the left action panel.
|
|
24
|
+
* By default, it will take up the whole width of the device.
|
|
25
|
+
*/
|
|
26
|
+
leftActionsWidth?: number;
|
|
27
|
+
/**
|
|
28
|
+
* Action panel that is going to be revealed from the right side when user swipes left.
|
|
29
|
+
*/
|
|
30
|
+
rightActions?: ReactNode;
|
|
31
|
+
/**
|
|
32
|
+
* Width of the right action panel.
|
|
33
|
+
* By default, it will take up the whole width of the device.
|
|
34
|
+
*/
|
|
35
|
+
rightActionsWidth?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Testing ID of the component
|
|
38
|
+
*/
|
|
39
|
+
testID?: string;
|
|
40
|
+
}
|
|
41
|
+
declare const _default: (({ children, state, onStateChange, leftActions, leftActionsWidth, rightActions, rightActionsWidth, ...swipeableProps }: SwipeableProps) => JSX.Element) & {
|
|
42
|
+
Action: ({ intent, onPress, style, children, testID, }: import("./SwipeableAction").SwipeableActionProps) => JSX.Element;
|
|
43
|
+
Content: typeof RectButton;
|
|
44
|
+
};
|
|
45
|
+
export default _default;
|
|
@@ -2,7 +2,9 @@ import type { ReactElement } from 'react';
|
|
|
2
2
|
import type { BadgeConfigType, OptionType } from '.';
|
|
3
3
|
export declare const OptionContent: ({ content, badge, }: {
|
|
4
4
|
content: ReactElement;
|
|
5
|
-
badge?:
|
|
5
|
+
badge?: {
|
|
6
|
+
type: "status";
|
|
7
|
+
} | undefined;
|
|
6
8
|
}) => JSX.Element;
|
|
7
9
|
declare const Option: <T>({ text, icon, badge, selected, }: Pick<OptionType<T>, "text" | "icon" | "badge"> & {
|
|
8
10
|
selected: boolean;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { View } 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?: import("react").ElementType<any
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
5
|
}, {}, {
|
|
6
|
-
ref?: import("react").Ref<View
|
|
6
|
+
ref?: import("react").Ref<View> | undefined;
|
|
7
7
|
}>;
|
|
8
8
|
export declare const StyledTextWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
9
|
-
theme?: import("@emotion/react").Theme;
|
|
10
|
-
as?: import("react").ElementType<any
|
|
9
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
10
|
+
as?: import("react").ElementType<any> | undefined;
|
|
11
11
|
}, {}, {
|
|
12
|
-
ref?: import("react").Ref<View
|
|
12
|
+
ref?: import("react").Ref<View> | undefined;
|
|
13
13
|
}>;
|
|
14
14
|
export declare const StyledIconWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
15
|
-
theme?: import("@emotion/react").Theme;
|
|
16
|
-
as?: import("react").ElementType<any
|
|
15
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
16
|
+
as?: import("react").ElementType<any> | undefined;
|
|
17
17
|
}, {}, {
|
|
18
|
-
ref?: import("react").Ref<View
|
|
18
|
+
ref?: import("react").Ref<View> | undefined;
|
|
19
19
|
}>;
|
|
@@ -2,19 +2,19 @@ import { Animated, View } from 'react-native';
|
|
|
2
2
|
declare type ThemeSize = 'small' | 'medium';
|
|
3
3
|
export declare type Variant = 'checked' | 'unchecked' | 'disabled-checked' | 'disabled-unchecked';
|
|
4
4
|
declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
5
|
-
theme?: import("@emotion/react").Theme;
|
|
6
|
-
as?: import("react").ElementType<any
|
|
5
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
6
|
+
as?: import("react").ElementType<any> | undefined;
|
|
7
7
|
} & {
|
|
8
8
|
themeVariant: Variant;
|
|
9
9
|
themeSize: ThemeSize;
|
|
10
10
|
}, {}, {
|
|
11
|
-
ref?: import("react").Ref<View
|
|
11
|
+
ref?: import("react").Ref<View> | undefined;
|
|
12
12
|
}>;
|
|
13
13
|
declare const StyledKnot: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
14
14
|
children?: import("react").ReactNode;
|
|
15
15
|
} & {
|
|
16
|
-
theme?: import("@emotion/react").Theme;
|
|
17
|
-
as?: import("react").ElementType<any
|
|
16
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
17
|
+
as?: import("react").ElementType<any> | undefined;
|
|
18
18
|
} & {
|
|
19
19
|
themeSize: ThemeSize;
|
|
20
20
|
}, {}, {}>;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { Animated, View } from 'react-native';
|
|
2
2
|
import PagerView from 'react-native-pager-view';
|
|
3
3
|
declare const TabScreen: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
4
|
-
theme?: import("@emotion/react").Theme;
|
|
5
|
-
as?: import("react").ElementType<any
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any> | undefined;
|
|
6
6
|
}, {}, {
|
|
7
|
-
ref?: import("react").Ref<View
|
|
7
|
+
ref?: import("react").Ref<View> | undefined;
|
|
8
8
|
}>;
|
|
9
9
|
declare const TabContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
10
|
-
theme?: import("@emotion/react").Theme;
|
|
11
|
-
as?: import("react").ElementType<any
|
|
10
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
+
as?: import("react").ElementType<any> | undefined;
|
|
12
12
|
}, {}, {
|
|
13
|
-
ref?: import("react").Ref<View
|
|
13
|
+
ref?: import("react").Ref<View> | undefined;
|
|
14
14
|
}>;
|
|
15
15
|
declare const ContentWrapper: import("@emotion/native").StyledComponent<import("react-native-pager-view").PagerViewProps & {
|
|
16
|
-
theme?: import("@emotion/react").Theme;
|
|
17
|
-
as?: import("react").ElementType<any
|
|
16
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
17
|
+
as?: import("react").ElementType<any> | undefined;
|
|
18
18
|
}, {}, {
|
|
19
|
-
ref?: import("react").Ref<PagerView
|
|
19
|
+
ref?: import("react").Ref<PagerView> | undefined;
|
|
20
20
|
}>;
|
|
21
21
|
declare const HeaderTabWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
22
|
-
theme?: import("@emotion/react").Theme;
|
|
23
|
-
as?: import("react").ElementType<any
|
|
22
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
23
|
+
as?: import("react").ElementType<any> | undefined;
|
|
24
24
|
} & {
|
|
25
25
|
themeInsets: {
|
|
26
26
|
top: number;
|
|
@@ -29,34 +29,34 @@ declare const HeaderTabWrapper: import("@emotion/native").StyledComponent<import
|
|
|
29
29
|
left: number;
|
|
30
30
|
};
|
|
31
31
|
}, {}, {
|
|
32
|
-
ref?: import("react").Ref<View
|
|
32
|
+
ref?: import("react").Ref<View> | undefined;
|
|
33
33
|
}>;
|
|
34
34
|
declare const HeaderTabItem: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
35
35
|
children?: import("react").ReactNode;
|
|
36
36
|
} & {
|
|
37
|
-
theme?: import("@emotion/react").Theme;
|
|
38
|
-
as?: import("react").ElementType<any
|
|
37
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
38
|
+
as?: import("react").ElementType<any> | undefined;
|
|
39
39
|
} & {
|
|
40
|
-
isFirstItem?: boolean;
|
|
40
|
+
isFirstItem?: boolean | undefined;
|
|
41
41
|
}, {}, {}>;
|
|
42
42
|
declare const HeaderTabItemOutlineWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
43
|
-
theme?: import("@emotion/react").Theme;
|
|
44
|
-
as?: import("react").ElementType<any
|
|
43
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
44
|
+
as?: import("react").ElementType<any> | undefined;
|
|
45
45
|
}, {}, {
|
|
46
|
-
ref?: import("react").Ref<View
|
|
46
|
+
ref?: import("react").Ref<View> | undefined;
|
|
47
47
|
}>;
|
|
48
48
|
declare const HeaderTabItemOutline: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
49
49
|
children?: import("react").ReactNode;
|
|
50
50
|
} & {
|
|
51
|
-
theme?: import("@emotion/react").Theme;
|
|
52
|
-
as?: import("react").ElementType<any
|
|
51
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
52
|
+
as?: import("react").ElementType<any> | undefined;
|
|
53
53
|
} & {
|
|
54
54
|
themeActive: boolean;
|
|
55
55
|
}, {}, {}>;
|
|
56
56
|
declare const HeaderTabItemWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
57
|
-
theme?: import("@emotion/react").Theme;
|
|
58
|
-
as?: import("react").ElementType<any
|
|
57
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
58
|
+
as?: import("react").ElementType<any> | undefined;
|
|
59
59
|
}, {}, {
|
|
60
|
-
ref?: import("react").Ref<View
|
|
60
|
+
ref?: import("react").Ref<View> | undefined;
|
|
61
61
|
}>;
|
|
62
62
|
export { HeaderTabItem, TabScreen, TabContainer, HeaderTabWrapper, ContentWrapper, HeaderTabItemOutlineWrapper, HeaderTabItemOutline, HeaderTabItemWrapper, };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { Animated, View } from 'react-native';
|
|
2
2
|
import PagerView from 'react-native-pager-view';
|
|
3
3
|
declare const TabContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
4
|
-
theme?: import("@emotion/react").Theme;
|
|
5
|
-
as?: import("react").ElementType<any
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any> | undefined;
|
|
6
6
|
}, {}, {
|
|
7
|
-
ref?: import("react").Ref<View
|
|
7
|
+
ref?: import("react").Ref<View> | undefined;
|
|
8
8
|
}>;
|
|
9
9
|
declare const HeaderTabWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
10
|
-
theme?: import("@emotion/react").Theme;
|
|
11
|
-
as?: import("react").ElementType<any
|
|
10
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
+
as?: import("react").ElementType<any> | undefined;
|
|
12
12
|
} & {
|
|
13
13
|
themeInsets: {
|
|
14
14
|
top: number;
|
|
@@ -17,44 +17,44 @@ declare const HeaderTabWrapper: import("@emotion/native").StyledComponent<import
|
|
|
17
17
|
left: number;
|
|
18
18
|
};
|
|
19
19
|
}, {}, {
|
|
20
|
-
ref?: import("react").Ref<View
|
|
20
|
+
ref?: import("react").Ref<View> | undefined;
|
|
21
21
|
}>;
|
|
22
22
|
declare const HeaderTab: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
23
|
-
theme?: import("@emotion/react").Theme;
|
|
24
|
-
as?: import("react").ElementType<any
|
|
23
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
24
|
+
as?: import("react").ElementType<any> | undefined;
|
|
25
25
|
}, {}, {
|
|
26
|
-
ref?: import("react").Ref<View
|
|
26
|
+
ref?: import("react").Ref<View> | undefined;
|
|
27
27
|
}>;
|
|
28
28
|
declare const HeaderTabItem: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
29
|
-
theme?: import("@emotion/react").Theme;
|
|
30
|
-
as?: import("react").ElementType<any
|
|
29
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
30
|
+
as?: import("react").ElementType<any> | undefined;
|
|
31
31
|
}, {}, {
|
|
32
|
-
ref?: import("react").Ref<View
|
|
32
|
+
ref?: import("react").Ref<View> | undefined;
|
|
33
33
|
}>;
|
|
34
34
|
declare const ContentWrapper: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native-pager-view").PagerViewProps & import("react").RefAttributes<PagerView>> & {
|
|
35
35
|
children?: import("react").ReactNode;
|
|
36
36
|
} & {
|
|
37
|
-
theme?: import("@emotion/react").Theme;
|
|
38
|
-
as?: import("react").ElementType<any
|
|
37
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
38
|
+
as?: import("react").ElementType<any> | undefined;
|
|
39
39
|
}, {}, {}>;
|
|
40
40
|
declare const TabScreen: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
41
|
-
theme?: import("@emotion/react").Theme;
|
|
42
|
-
as?: import("react").ElementType<any
|
|
41
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
42
|
+
as?: import("react").ElementType<any> | undefined;
|
|
43
43
|
}, {}, {
|
|
44
|
-
ref?: import("react").Ref<View
|
|
44
|
+
ref?: import("react").Ref<View> | undefined;
|
|
45
45
|
}>;
|
|
46
46
|
declare const StyledIndicator: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
47
47
|
children?: import("react").ReactNode;
|
|
48
48
|
} & {
|
|
49
|
-
theme?: import("@emotion/react").Theme;
|
|
50
|
-
as?: import("react").ElementType<any
|
|
49
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
50
|
+
as?: import("react").ElementType<any> | undefined;
|
|
51
51
|
} & {
|
|
52
52
|
themeWidth: number;
|
|
53
53
|
}, {}, {}>;
|
|
54
54
|
declare const StyledBadgeWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
55
|
-
theme?: import("@emotion/react").Theme;
|
|
56
|
-
as?: import("react").ElementType<any
|
|
55
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
56
|
+
as?: import("react").ElementType<any> | undefined;
|
|
57
57
|
}, {}, {
|
|
58
|
-
ref?: import("react").Ref<View
|
|
58
|
+
ref?: import("react").Ref<View> | undefined;
|
|
59
59
|
}>;
|
|
60
60
|
export { TabContainer, HeaderTabWrapper, HeaderTab, HeaderTabItem, ContentWrapper, TabScreen, StyledIndicator, StyledBadgeWrapper, };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { View, Text } from 'react-native';
|
|
2
2
|
declare type ThemeIntent = 'default' | '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?: import("react").ElementType<any
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any> | undefined;
|
|
6
6
|
} & {
|
|
7
7
|
themeIntent: ThemeIntent;
|
|
8
8
|
}, {}, {
|
|
9
|
-
ref?: import("react").Ref<View
|
|
9
|
+
ref?: import("react").Ref<View> | undefined;
|
|
10
10
|
}>;
|
|
11
11
|
declare const StyledText: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
|
|
12
|
-
theme?: import("@emotion/react").Theme;
|
|
13
|
-
as?: import("react").ElementType<any
|
|
12
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
13
|
+
as?: import("react").ElementType<any> | undefined;
|
|
14
14
|
} & {
|
|
15
15
|
themeIntent: ThemeIntent;
|
|
16
16
|
}, {}, {
|
|
17
|
-
ref?: import("react").Ref<Text
|
|
17
|
+
ref?: import("react").Ref<Text> | undefined;
|
|
18
18
|
}>;
|
|
19
19
|
export { StyledView, StyledText };
|