@hero-design/rn 7.19.0 → 7.20.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/.eslintrc.json +6 -1
- package/.turbo/turbo-build.log +2 -2
- package/es/index.js +572 -194
- package/lib/index.js +572 -193
- package/package.json +4 -4
- package/src/components/Alert/StyledAlert.tsx +5 -5
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +140 -19
- package/src/components/Alert/__tests__/index.spec.tsx +21 -0
- package/src/components/Alert/index.tsx +13 -6
- package/src/components/Avatar/StyledAvatar.tsx +2 -1
- package/src/components/Avatar/index.tsx +2 -1
- package/src/components/Box/StyledBox.tsx +54 -0
- package/src/components/Box/__tests__/__snapshots__/index.spec.tsx.snap +605 -0
- package/src/components/Box/__tests__/helpers.spec.ts +14 -0
- package/src/components/Box/__tests__/index.spec.tsx +155 -0
- package/src/components/Box/config.ts +201 -0
- package/src/components/Box/helpers.ts +10 -0
- package/src/components/Box/index.tsx +13 -0
- package/src/components/Box/types.ts +38 -0
- package/src/components/Calendar/__tests__/index.spec.tsx +13 -17
- package/src/components/Card/DataCard/StyledDataCard.tsx +8 -2
- package/src/components/Card/DataCard/__tests__/StyledDataCard.spec.tsx +1 -0
- package/src/components/Card/DataCard/__tests__/__snapshots__/StyledDataCard.spec.tsx.snap +16 -0
- package/src/components/Card/DataCard/index.tsx +1 -1
- package/src/components/Card/StyledCard.tsx +12 -19
- package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +147 -0
- package/src/components/Card/__tests__/index.spec.tsx +18 -0
- package/src/components/Card/index.tsx +6 -1
- package/src/components/Drawer/DragableDrawer/helpers.ts +3 -4
- package/src/components/FAB/ActionGroup/index.tsx +6 -8
- package/src/components/RichTextEditor/__tests__/RichTextEditor.spec.tsx +4 -8
- package/src/components/SectionHeading/__tests__/__snapshots__/StyledHeading.spec.tsx.snap +1 -1
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +22 -20
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +22 -20
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
- package/src/components/Spinner/AnimatedSpinner.tsx +7 -7
- package/src/components/Spinner/StyledSpinner.tsx +24 -19
- package/src/components/Spinner/__tests__/AnimatedSpinner.spec.tsx +1 -1
- package/src/components/Spinner/__tests__/StyledSpinner.spec.tsx +32 -16
- package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +14 -12
- package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +273 -31
- package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +14 -12
- package/src/components/Spinner/index.tsx +10 -2
- package/src/components/Tabs/ScrollableTabs.tsx +9 -4
- package/src/components/Tabs/StyledScrollableTabs.tsx +6 -5
- package/src/components/Tabs/StyledTabs.tsx +6 -0
- package/src/components/Tabs/TabWithBadge.tsx +68 -0
- package/src/components/Tabs/__tests__/ScrollableTabs.spec.tsx +13 -0
- package/src/components/Tabs/__tests__/TabWithBadge.spec.tsx +48 -0
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +205 -43
- package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +165 -0
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +135 -34
- package/src/components/Tabs/__tests__/index.spec.tsx +12 -0
- package/src/components/Tabs/index.tsx +11 -4
- package/src/components/Tag/StyledTag.tsx +1 -11
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +4 -4
- package/src/components/Tag/index.tsx +2 -2
- package/src/components/TextInput/__tests__/index.spec.tsx +10 -14
- package/src/components/Toast/StyledToast.tsx +13 -7
- package/src/components/Toast/Toast.tsx +34 -9
- package/src/components/Toast/ToastProvider.tsx +15 -12
- package/src/components/Toast/__tests__/Toast.spec.tsx +17 -0
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +299 -19
- package/src/components/Toast/types.ts +15 -1
- package/src/components/Typography/Text/StyledText.tsx +7 -1
- package/src/components/Typography/Text/__tests__/StyledText.spec.tsx +1 -0
- package/src/components/Typography/Text/__tests__/__snapshots__/StyledText.spec.tsx.snap +22 -0
- package/src/components/Typography/Text/index.tsx +7 -1
- package/src/index.ts +2 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +76 -23
- package/src/theme/components/.eslintrc.json +10 -0
- package/src/theme/components/alert.ts +5 -1
- package/src/theme/components/avatar.ts +2 -0
- package/src/theme/components/card.ts +6 -7
- package/src/theme/components/sectionHeading.ts +1 -1
- package/src/theme/components/spinner.ts +19 -7
- package/src/theme/components/tabs.ts +3 -2
- package/src/theme/components/tag.ts +13 -13
- package/src/theme/components/toast.ts +17 -3
- package/src/theme/components/typography.ts +2 -0
- package/src/theme/global/colors/swag.ts +23 -0
- package/src/theme/global/colors/types.ts +23 -0
- package/src/theme/global/colors/work.ts +5 -0
- package/tsconfig.json +4 -15
- package/types/components/Accordion/StyledAccordion.d.ts +14 -14
- package/types/components/Alert/StyledAlert.d.ts +16 -16
- package/types/components/Alert/index.d.ts +1 -1
- package/types/components/Avatar/StyledAvatar.d.ts +16 -16
- package/types/components/Avatar/index.d.ts +2 -2
- package/types/components/Badge/StyledBadge.d.ts +7 -7
- 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 +19 -19
- package/types/components/Box/StyledBox.d.ts +15 -0
- package/types/components/Box/__tests__/helpers.spec.d.ts +1 -0
- package/types/components/Box/__tests__/index.spec.d.ts +1 -0
- package/types/components/Box/config.d.ts +170 -0
- package/types/components/Box/helpers.d.ts +1 -0
- package/types/components/Box/index.d.ts +5 -0
- package/types/components/Box/types.d.ts +31 -0
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +7 -7
- package/types/components/Button/StyledButton.d.ts +16 -16
- 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 +7 -7
- package/types/components/Card/DataCard/index.d.ts +1 -1
- package/types/components/Card/StyledCard.d.ts +7 -6
- package/types/components/Card/index.d.ts +5 -1
- package/types/components/Checkbox/StyledCheckbox.d.ts +10 -10
- package/types/components/Collapse/StyledCollapse.d.ts +8 -8
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +5 -5
- 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 +12 -12
- 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/List/StyledBasicListItem.d.ts +14 -14
- package/types/components/List/StyledListItem.d.ts +23 -23
- package/types/components/PinInput/StyledPinInput.d.ts +30 -30
- package/types/components/Progress/StyledProgressBar.d.ts +5 -5
- package/types/components/Progress/StyledProgressCircle.d.ts +18 -18
- package/types/components/Radio/StyledRadio.d.ts +9 -9
- 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 +3 -1
- package/types/components/Spinner/StyledSpinner.d.ts +14 -12
- package/types/components/Spinner/index.d.ts +5 -1
- package/types/components/Switch/StyledSwitch.d.ts +5 -5
- package/types/components/Tabs/StyledScrollableTabs.d.ts +24 -22
- package/types/components/Tabs/StyledTabs.d.ts +26 -20
- package/types/components/Tabs/TabWithBadge.d.ts +17 -0
- package/types/components/Tabs/__tests__/TabWithBadge.spec.d.ts +1 -0
- package/types/components/Tabs/index.d.ts +3 -1
- package/types/components/Tag/StyledTag.d.ts +6 -6
- package/types/components/Tag/index.d.ts +1 -1
- package/types/components/TextInput/StyledTextInput.d.ts +44 -44
- package/types/components/TextInput/index.d.ts +5 -5
- package/types/components/TimePicker/StyledTimePicker.d.ts +3 -3
- package/types/components/Toast/StyledToast.d.ts +19 -18
- package/types/components/Toast/types.d.ts +2 -1
- package/types/components/Toolbar/StyledToolbar.d.ts +9 -9
- package/types/components/Typography/Text/StyledText.d.ts +4 -4
- package/types/components/Typography/Text/index.d.ts +1 -1
- package/types/index.d.ts +2 -1
- package/types/testHelpers/renderWithTheme.d.ts +1 -1
- package/types/theme/ThemeSwitcher.d.ts +1 -1
- package/types/theme/components/alert.d.ts +5 -1
- package/types/theme/components/avatar.d.ts +2 -0
- package/types/theme/components/card.d.ts +6 -7
- package/types/theme/components/spinner.d.ts +17 -5
- package/types/theme/components/tabs.d.ts +1 -0
- package/types/theme/components/tag.d.ts +2 -2
- package/types/theme/components/toast.d.ts +18 -2
- package/types/theme/components/typography.d.ts +2 -0
- package/types/theme/global/colors/types.d.ts +17 -0
- package/types/theme/global/index.d.ts +17 -0
- package/types/utils/hooks.d.ts +1 -1
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
import { TouchableOpacity, 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?: import("react").ElementType<any
|
|
4
|
+
theme?: import("@emotion/react").Theme;
|
|
5
|
+
as?: import("react").ElementType<any>;
|
|
6
6
|
}, {}, {
|
|
7
|
-
ref?: import("react").Ref<View
|
|
7
|
+
ref?: import("react").Ref<View>;
|
|
8
8
|
}>;
|
|
9
9
|
declare const StyledCalendarHeader: import("@emotion/native").StyledComponent<ViewProps & {
|
|
10
|
-
theme?: import("@emotion/react").Theme
|
|
11
|
-
as?: import("react").ElementType<any
|
|
10
|
+
theme?: import("@emotion/react").Theme;
|
|
11
|
+
as?: import("react").ElementType<any>;
|
|
12
12
|
}, {}, {
|
|
13
|
-
ref?: import("react").Ref<View
|
|
13
|
+
ref?: import("react").Ref<View>;
|
|
14
14
|
}>;
|
|
15
15
|
declare const StyledCalendarDayNameCell: import("@emotion/native").StyledComponent<ViewProps & {
|
|
16
|
-
theme?: import("@emotion/react").Theme
|
|
17
|
-
as?: import("react").ElementType<any
|
|
16
|
+
theme?: import("@emotion/react").Theme;
|
|
17
|
+
as?: import("react").ElementType<any>;
|
|
18
18
|
}, {}, {
|
|
19
|
-
ref?: import("react").Ref<View
|
|
19
|
+
ref?: import("react").Ref<View>;
|
|
20
20
|
}>;
|
|
21
21
|
declare const StyledCalendarCell: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
|
|
22
|
-
theme?: import("@emotion/react").Theme
|
|
23
|
-
as?: import("react").ElementType<any
|
|
22
|
+
theme?: import("@emotion/react").Theme;
|
|
23
|
+
as?: import("react").ElementType<any>;
|
|
24
24
|
} & {
|
|
25
|
-
variant?:
|
|
25
|
+
variant?: 'default' | 'current' | 'selected';
|
|
26
26
|
}, {}, {
|
|
27
|
-
ref?: import("react").Ref<TouchableOpacity
|
|
27
|
+
ref?: import("react").Ref<TouchableOpacity>;
|
|
28
28
|
}>;
|
|
29
29
|
declare const StyledCalendarRow: import("@emotion/native").StyledComponent<ViewProps & {
|
|
30
|
-
theme?: import("@emotion/react").Theme
|
|
31
|
-
as?: import("react").ElementType<any
|
|
30
|
+
theme?: import("@emotion/react").Theme;
|
|
31
|
+
as?: import("react").ElementType<any>;
|
|
32
32
|
}, {}, {
|
|
33
|
-
ref?: import("react").Ref<View
|
|
33
|
+
ref?: import("react").Ref<View>;
|
|
34
34
|
}>;
|
|
35
35
|
declare const StyledCalendarRowItem: import("@emotion/native").StyledComponent<ViewProps & {
|
|
36
|
-
theme?: import("@emotion/react").Theme
|
|
37
|
-
as?: import("react").ElementType<any
|
|
36
|
+
theme?: import("@emotion/react").Theme;
|
|
37
|
+
as?: import("react").ElementType<any>;
|
|
38
38
|
}, {}, {
|
|
39
|
-
ref?: import("react").Ref<View
|
|
39
|
+
ref?: import("react").Ref<View>;
|
|
40
40
|
}>;
|
|
41
41
|
declare const StyledDisabledCalendarRowItem: import("@emotion/native").StyledComponent<ViewProps & {
|
|
42
|
-
theme?: import("@emotion/react").Theme
|
|
43
|
-
as?: import("react").ElementType<any
|
|
42
|
+
theme?: import("@emotion/react").Theme;
|
|
43
|
+
as?: import("react").ElementType<any>;
|
|
44
44
|
}, {}, {
|
|
45
|
-
ref?: import("react").Ref<View
|
|
45
|
+
ref?: import("react").Ref<View>;
|
|
46
46
|
}>;
|
|
47
47
|
declare const StyledMark: import("@emotion/native").StyledComponent<ViewProps & {
|
|
48
|
-
theme?: import("@emotion/react").Theme
|
|
49
|
-
as?: import("react").ElementType<any
|
|
48
|
+
theme?: import("@emotion/react").Theme;
|
|
49
|
+
as?: import("react").ElementType<any>;
|
|
50
50
|
} & {
|
|
51
51
|
variant: 'primary' | 'inverted';
|
|
52
52
|
}, {}, {
|
|
53
|
-
ref?: import("react").Ref<View
|
|
53
|
+
ref?: import("react").Ref<View>;
|
|
54
54
|
}>;
|
|
55
55
|
export { StyledContainer, StyledCalendarHeader, StyledCalendarRow, StyledCalendarRowItem, StyledDisabledCalendarRowItem, StyledCalendarDayNameCell, StyledCalendarCell, StyledMark, };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const initArray: <T>(length: number, func: (value: number) => T) => T[];
|
|
2
|
-
export declare const isEqDate: (dateA?: Date
|
|
3
|
-
export declare const getValidDate: (date: Date, minDate?: Date
|
|
2
|
+
export declare const isEqDate: (dateA?: Date, dateB?: Date) => boolean;
|
|
3
|
+
export declare const getValidDate: (date: Date, minDate?: Date, maxDate?: Date) => Date | undefined;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { View } from 'react-native';
|
|
2
2
|
declare const StyledDataCard: 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;
|
|
4
|
+
as?: import("react").ElementType<any>;
|
|
5
5
|
}, {}, {
|
|
6
|
-
ref?: import("react").Ref<View
|
|
6
|
+
ref?: import("react").Ref<View>;
|
|
7
7
|
}>;
|
|
8
8
|
declare const Indicator: 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;
|
|
10
|
+
as?: import("react").ElementType<any>;
|
|
11
11
|
} & {
|
|
12
|
-
themeIntent: 'success' | 'info' | 'warning' | 'danger' | 'archived';
|
|
12
|
+
themeIntent: 'success' | 'info' | 'warning' | 'danger' | 'archived' | 'primary';
|
|
13
13
|
}, {}, {
|
|
14
|
-
ref?: import("react").Ref<View
|
|
14
|
+
ref?: import("react").Ref<View>;
|
|
15
15
|
}>;
|
|
16
16
|
export { StyledDataCard, Indicator };
|
|
@@ -8,7 +8,7 @@ export interface DataCardProps extends ViewProps {
|
|
|
8
8
|
/**
|
|
9
9
|
* Visual intent color to apply to card.
|
|
10
10
|
*/
|
|
11
|
-
intent?: '
|
|
11
|
+
intent?: 'primary' | 'info' | 'success' | 'warning' | 'danger' | 'archived';
|
|
12
12
|
/**
|
|
13
13
|
* Additional style.
|
|
14
14
|
*/
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { View } from 'react-native';
|
|
2
2
|
declare const StyledCard: 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;
|
|
4
|
+
as?: import("react").ElementType<any>;
|
|
5
5
|
} & {
|
|
6
6
|
themeVariant: 'basic' | 'data';
|
|
7
|
+
themeIntent?: 'primary' | 'success' | 'warning';
|
|
7
8
|
}, {}, {
|
|
8
|
-
ref?: import("react").Ref<View
|
|
9
|
+
ref?: import("react").Ref<View>;
|
|
9
10
|
}>;
|
|
10
11
|
declare const LeftDataCard: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
11
|
-
theme?: import("@emotion/react").Theme
|
|
12
|
-
as?: import("react").ElementType<any
|
|
12
|
+
theme?: import("@emotion/react").Theme;
|
|
13
|
+
as?: import("react").ElementType<any>;
|
|
13
14
|
}, {}, {
|
|
14
|
-
ref?: import("react").Ref<View
|
|
15
|
+
ref?: import("react").Ref<View>;
|
|
15
16
|
}>;
|
|
16
17
|
export { StyledCard, LeftDataCard };
|
|
@@ -5,6 +5,10 @@ interface CardProps extends ViewProps {
|
|
|
5
5
|
* Card's content.
|
|
6
6
|
*/
|
|
7
7
|
children?: ReactNode;
|
|
8
|
+
/**
|
|
9
|
+
* Visual intent color to apply to card.
|
|
10
|
+
*/
|
|
11
|
+
intent?: 'primary' | 'success' | 'warning';
|
|
8
12
|
/**
|
|
9
13
|
* Card type.
|
|
10
14
|
* This is now deprecated. If you want to use "data" variant, please use Card.Data instead.
|
|
@@ -20,7 +24,7 @@ interface CardProps extends ViewProps {
|
|
|
20
24
|
*/
|
|
21
25
|
testID?: string;
|
|
22
26
|
}
|
|
23
|
-
declare const _default: (({ variant, children, ...nativeProps }: CardProps) => JSX.Element) & {
|
|
27
|
+
declare const _default: (({ variant, intent, children, ...nativeProps }: CardProps) => JSX.Element) & {
|
|
24
28
|
Data: ({ intent, children, ...nativeProps }: import("./DataCard").DataCardProps) => JSX.Element;
|
|
25
29
|
};
|
|
26
30
|
export default _default;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { TouchableOpacity, View } from 'react-native';
|
|
2
2
|
export declare const StyledWrapper: 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;
|
|
4
|
+
as?: import("react").ElementType<any>;
|
|
5
5
|
} & {
|
|
6
6
|
themeWithBorder: boolean;
|
|
7
7
|
themeDisabled: boolean;
|
|
8
8
|
}, {}, {
|
|
9
|
-
ref?: import("react").Ref<TouchableOpacity
|
|
9
|
+
ref?: import("react").Ref<TouchableOpacity>;
|
|
10
10
|
}>;
|
|
11
11
|
export declare const StyledDescription: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
|
|
12
|
-
theme?: import("@emotion/react").Theme
|
|
13
|
-
as?: import("react").ElementType<any
|
|
12
|
+
theme?: import("@emotion/react").Theme;
|
|
13
|
+
as?: import("react").ElementType<any>;
|
|
14
14
|
}, {}, {}>;
|
|
15
15
|
export declare const StyledCheckbox: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
16
|
-
theme?: import("@emotion/react").Theme
|
|
17
|
-
as?: import("react").ElementType<any
|
|
16
|
+
theme?: import("@emotion/react").Theme;
|
|
17
|
+
as?: import("react").ElementType<any>;
|
|
18
18
|
} & {
|
|
19
19
|
themeDisabled: boolean;
|
|
20
20
|
}, {}, {
|
|
21
|
-
ref?: import("react").Ref<View
|
|
21
|
+
ref?: import("react").Ref<View>;
|
|
22
22
|
}>;
|
|
23
23
|
export declare const StyledCheckMark: import("@emotion/native").StyledComponent<import("../Icon").IconProps & {
|
|
24
|
-
theme?: import("@emotion/react").Theme
|
|
25
|
-
as?: import("react").ElementType<any
|
|
24
|
+
theme?: import("@emotion/react").Theme;
|
|
25
|
+
as?: import("react").ElementType<any>;
|
|
26
26
|
}, {}, {}>;
|
|
@@ -2,8 +2,8 @@ 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
3
|
children?: import("react").ReactNode;
|
|
4
4
|
} & {
|
|
5
|
-
theme?: import("@emotion/react").Theme
|
|
6
|
-
as?: import("react").ElementType<any
|
|
5
|
+
theme?: import("@emotion/react").Theme;
|
|
6
|
+
as?: import("react").ElementType<any>;
|
|
7
7
|
}, {}, {}>;
|
|
8
8
|
/**
|
|
9
9
|
* Height need to be high enough to cover most scenario
|
|
@@ -11,15 +11,15 @@ declare const StyledWrapper: import("@emotion/native").StyledComponent<Animated.
|
|
|
11
11
|
* to use with Animated.timing
|
|
12
12
|
*/
|
|
13
13
|
declare const StyledHiddenWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
14
|
-
theme?: import("@emotion/react").Theme
|
|
15
|
-
as?: import("react").ElementType<any
|
|
14
|
+
theme?: import("@emotion/react").Theme;
|
|
15
|
+
as?: import("react").ElementType<any>;
|
|
16
16
|
}, {}, {
|
|
17
|
-
ref?: import("react").Ref<View
|
|
17
|
+
ref?: import("react").Ref<View>;
|
|
18
18
|
}>;
|
|
19
19
|
declare const StyledChildWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
20
|
-
theme?: import("@emotion/react").Theme
|
|
21
|
-
as?: import("react").ElementType<any
|
|
20
|
+
theme?: import("@emotion/react").Theme;
|
|
21
|
+
as?: import("react").ElementType<any>;
|
|
22
22
|
}, {}, {
|
|
23
|
-
ref?: import("react").Ref<View
|
|
23
|
+
ref?: import("react").Ref<View>;
|
|
24
24
|
}>;
|
|
25
25
|
export { StyledWrapper, StyledHiddenWrapper, StyledChildWrapper };
|
|
@@ -1,12 +1,12 @@
|
|
|
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?: import("react").ElementType<any
|
|
3
|
+
theme?: import("@emotion/react").Theme;
|
|
4
|
+
as?: import("react").ElementType<any>;
|
|
5
5
|
}, {}, {
|
|
6
|
-
ref?: import("react").Ref<View
|
|
6
|
+
ref?: import("react").Ref<View>;
|
|
7
7
|
}>;
|
|
8
8
|
declare const Value: import("@emotion/native").StyledComponent<import("../Typography/Text").TextProps & {
|
|
9
|
-
theme?: import("@emotion/react").Theme
|
|
10
|
-
as?: import("react").ElementType<any
|
|
9
|
+
theme?: import("@emotion/react").Theme;
|
|
10
|
+
as?: import("react").ElementType<any>;
|
|
11
11
|
}, {}, {}>;
|
|
12
12
|
export { Wrapper, Value };
|
|
@@ -1,9 +1,9 @@
|
|
|
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?: import("react").ElementType<any
|
|
4
|
+
theme?: import("@emotion/react").Theme;
|
|
5
|
+
as?: import("react").ElementType<any>;
|
|
6
6
|
}, {}, {
|
|
7
|
-
ref?: import("react").Ref<View
|
|
7
|
+
ref?: import("react").Ref<View>;
|
|
8
8
|
}>;
|
|
9
9
|
export { StyledPickerWrapper };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { View } from 'react-native';
|
|
2
2
|
declare 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?: import("react").ElementType<any
|
|
4
|
+
theme?: import("@emotion/react").Theme;
|
|
5
|
+
as?: import("react").ElementType<any>;
|
|
6
6
|
} & {
|
|
7
|
-
themeMarginHorizontal?: MarginSize
|
|
8
|
-
themeMarginVertical?: MarginSize
|
|
7
|
+
themeMarginHorizontal?: MarginSize;
|
|
8
|
+
themeMarginVertical?: MarginSize;
|
|
9
9
|
}, {}, {
|
|
10
|
-
ref?: import("react").Ref<View
|
|
10
|
+
ref?: import("react").Ref<View>;
|
|
11
11
|
}>;
|
|
12
12
|
export { StyledDivider };
|
|
@@ -1,55 +1,55 @@
|
|
|
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?: import("react").ElementType<any
|
|
4
|
+
theme?: import("@emotion/react").Theme;
|
|
5
|
+
as?: import("react").ElementType<any>;
|
|
6
6
|
} & {
|
|
7
7
|
enableShadow: boolean;
|
|
8
8
|
}, {}, {
|
|
9
|
-
ref?: import("react").Ref<View
|
|
9
|
+
ref?: import("react").Ref<View>;
|
|
10
10
|
}>;
|
|
11
11
|
declare const StyledDragableContainer: import("@emotion/native").StyledComponent<ViewProps & {
|
|
12
|
-
theme?: import("@emotion/react").Theme
|
|
13
|
-
as?: import("react").ElementType<any
|
|
12
|
+
theme?: import("@emotion/react").Theme;
|
|
13
|
+
as?: import("react").ElementType<any>;
|
|
14
14
|
} & {
|
|
15
15
|
enableShadow: boolean;
|
|
16
16
|
}, {}, {
|
|
17
|
-
ref?: import("react").Ref<View
|
|
17
|
+
ref?: import("react").Ref<View>;
|
|
18
18
|
}>;
|
|
19
19
|
declare const StyledBackdrop: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").PressableProps & import("react").RefAttributes<View>> & {
|
|
20
20
|
children?: import("react").ReactNode;
|
|
21
21
|
} & {
|
|
22
|
-
theme?: import("@emotion/react").Theme
|
|
23
|
-
as?: import("react").ElementType<any
|
|
22
|
+
theme?: import("@emotion/react").Theme;
|
|
23
|
+
as?: import("react").ElementType<any>;
|
|
24
24
|
}, {}, {}>;
|
|
25
25
|
declare const StyledDrawerContainer: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
|
|
26
26
|
children?: import("react").ReactNode;
|
|
27
27
|
} & {
|
|
28
|
-
theme?: import("@emotion/react").Theme
|
|
29
|
-
as?: import("react").ElementType<any
|
|
28
|
+
theme?: import("@emotion/react").Theme;
|
|
29
|
+
as?: import("react").ElementType<any>;
|
|
30
30
|
} & {
|
|
31
31
|
enableShadow: boolean;
|
|
32
32
|
}, {}, {}>;
|
|
33
33
|
declare const StyledDragableDrawerContainer: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
|
|
34
34
|
children?: import("react").ReactNode;
|
|
35
35
|
} & {
|
|
36
|
-
theme?: import("@emotion/react").Theme
|
|
37
|
-
as?: import("react").ElementType<any
|
|
36
|
+
theme?: import("@emotion/react").Theme;
|
|
37
|
+
as?: import("react").ElementType<any>;
|
|
38
38
|
} & {
|
|
39
39
|
enableShadow: boolean;
|
|
40
40
|
}, {}, {}>;
|
|
41
41
|
declare const StyledHandlerContainer: import("@emotion/native").StyledComponent<ViewProps & {
|
|
42
|
-
theme?: import("@emotion/react").Theme
|
|
43
|
-
as?: import("react").ElementType<any
|
|
42
|
+
theme?: import("@emotion/react").Theme;
|
|
43
|
+
as?: import("react").ElementType<any>;
|
|
44
44
|
}, {}, {
|
|
45
|
-
ref?: import("react").Ref<View
|
|
45
|
+
ref?: import("react").Ref<View>;
|
|
46
46
|
}>;
|
|
47
47
|
declare const StyledHandler: import("@emotion/native").StyledComponent<ViewProps & {
|
|
48
|
-
theme?: import("@emotion/react").Theme
|
|
49
|
-
as?: import("react").ElementType<any
|
|
48
|
+
theme?: import("@emotion/react").Theme;
|
|
49
|
+
as?: import("react").ElementType<any>;
|
|
50
50
|
} & {
|
|
51
|
-
active?: boolean
|
|
51
|
+
active?: boolean;
|
|
52
52
|
}, {}, {
|
|
53
|
-
ref?: import("react").Ref<View
|
|
53
|
+
ref?: import("react").Ref<View>;
|
|
54
54
|
}>;
|
|
55
55
|
export { StyledBackdrop, StyledContainer, StyledDrawerContainer, StyledHandlerContainer, StyledHandler, StyledDragableContainer, StyledDragableDrawerContainer, };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { View, Text } from 'react-native';
|
|
2
2
|
declare 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?: import("react").ElementType<any
|
|
4
|
+
theme?: import("@emotion/react").Theme;
|
|
5
|
+
as?: import("react").ElementType<any>;
|
|
6
6
|
}, {}, {
|
|
7
|
-
ref?: import("react").Ref<View
|
|
7
|
+
ref?: import("react").Ref<View>;
|
|
8
8
|
}>;
|
|
9
9
|
declare const StyledIllustration: 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;
|
|
11
|
+
as?: import("react").ElementType<any>;
|
|
12
12
|
}, {}, {
|
|
13
|
-
ref?: import("react").Ref<View
|
|
13
|
+
ref?: import("react").Ref<View>;
|
|
14
14
|
}>;
|
|
15
15
|
declare const StyledTitle: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
|
|
16
|
-
theme?: import("@emotion/react").Theme
|
|
17
|
-
as?: import("react").ElementType<any
|
|
16
|
+
theme?: import("@emotion/react").Theme;
|
|
17
|
+
as?: import("react").ElementType<any>;
|
|
18
18
|
} & {
|
|
19
19
|
themeVariant: ThemeVariant;
|
|
20
20
|
}, {}, {
|
|
21
|
-
ref?: import("react").Ref<Text
|
|
21
|
+
ref?: import("react").Ref<Text>;
|
|
22
22
|
}>;
|
|
23
23
|
declare const StyledDescription: import("@emotion/native").StyledComponent<import("react-native").TextProps & {
|
|
24
|
-
theme?: import("@emotion/react").Theme
|
|
25
|
-
as?: import("react").ElementType<any
|
|
24
|
+
theme?: import("@emotion/react").Theme;
|
|
25
|
+
as?: import("react").ElementType<any>;
|
|
26
26
|
} & {
|
|
27
27
|
themeVariant: ThemeVariant;
|
|
28
28
|
}, {}, {
|
|
29
|
-
ref?: import("react").Ref<Text
|
|
29
|
+
ref?: import("react").Ref<Text>;
|
|
30
30
|
}>;
|
|
31
31
|
export { StyledWrapper, StyledIllustration, StyledTitle, StyledDescription };
|
|
@@ -2,29 +2,29 @@ import { Animated, View } from 'react-native';
|
|
|
2
2
|
import type { ViewProps } from 'react-native';
|
|
3
3
|
import type { TextProps } from '../../Typography/Text';
|
|
4
4
|
declare const StyledContainer: import("@emotion/native").StyledComponent<ViewProps & {
|
|
5
|
-
theme?: import("@emotion/react").Theme
|
|
6
|
-
as?: import("react").ElementType<any
|
|
5
|
+
theme?: import("@emotion/react").Theme;
|
|
6
|
+
as?: import("react").ElementType<any>;
|
|
7
7
|
}, {}, {
|
|
8
|
-
ref?: import("react").Ref<View
|
|
8
|
+
ref?: import("react").Ref<View>;
|
|
9
9
|
}>;
|
|
10
10
|
declare const StyledActionGroupContainer: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
|
|
11
11
|
children?: import("react").ReactNode;
|
|
12
12
|
} & {
|
|
13
|
-
theme?: import("@emotion/react").Theme
|
|
14
|
-
as?: import("react").ElementType<any
|
|
13
|
+
theme?: import("@emotion/react").Theme;
|
|
14
|
+
as?: import("react").ElementType<any>;
|
|
15
15
|
}, {}, {}>;
|
|
16
16
|
declare const StyledFAB: import("@emotion/native").StyledComponent<import("../FAB").FABProps & {
|
|
17
|
-
theme?: import("@emotion/react").Theme
|
|
18
|
-
as?: import("react").ElementType<any
|
|
17
|
+
theme?: import("@emotion/react").Theme;
|
|
18
|
+
as?: import("react").ElementType<any>;
|
|
19
19
|
}, {}, {}>;
|
|
20
20
|
declare const StyledBackdrop: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
|
|
21
21
|
children?: import("react").ReactNode;
|
|
22
22
|
} & {
|
|
23
|
-
theme?: import("@emotion/react").Theme
|
|
24
|
-
as?: import("react").ElementType<any
|
|
23
|
+
theme?: import("@emotion/react").Theme;
|
|
24
|
+
as?: import("react").ElementType<any>;
|
|
25
25
|
}, {}, {}>;
|
|
26
26
|
declare const StyledHeaderText: import("@emotion/native").StyledComponent<TextProps & {
|
|
27
|
-
theme?: import("@emotion/react").Theme
|
|
28
|
-
as?: import("react").ElementType<any
|
|
27
|
+
theme?: import("@emotion/react").Theme;
|
|
28
|
+
as?: import("react").ElementType<any>;
|
|
29
29
|
}, {}, {}>;
|
|
30
30
|
export { StyledHeaderText, StyledBackdrop, StyledContainer, StyledActionGroupContainer, 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?: import("react").ElementType<any
|
|
5
|
+
theme?: import("@emotion/react").Theme;
|
|
6
|
+
as?: import("react").ElementType<any>;
|
|
7
7
|
}, {}, {
|
|
8
|
-
ref?: import("react").Ref<TouchableOpacity
|
|
8
|
+
ref?: import("react").Ref<TouchableOpacity>;
|
|
9
9
|
}>;
|
|
10
10
|
declare const StyledActionItemText: import("@emotion/native").StyledComponent<import("../../Typography/Text").TextProps & {
|
|
11
|
-
theme?: import("@emotion/react").Theme
|
|
12
|
-
as?: import("react").ElementType<any
|
|
11
|
+
theme?: import("@emotion/react").Theme;
|
|
12
|
+
as?: import("react").ElementType<any>;
|
|
13
13
|
} & TouchableOpacityProps, {}, {}>;
|
|
14
14
|
declare const StyledIcon: import("@emotion/native").StyledComponent<IconProps & {
|
|
15
|
-
theme?: import("@emotion/react").Theme
|
|
16
|
-
as?: import("react").ElementType<any
|
|
15
|
+
theme?: import("@emotion/react").Theme;
|
|
16
|
+
as?: import("react").ElementType<any>;
|
|
17
17
|
}, {}, {}>;
|
|
18
18
|
export { StyledIcon, StyledActionItem, StyledActionItemText };
|
|
@@ -2,19 +2,19 @@ import { Text, TouchableHighlight } from 'react-native';
|
|
|
2
2
|
import type { TextProps, TouchableHighlightProps } from 'react-native';
|
|
3
3
|
import type { IconProps } from '../Icon';
|
|
4
4
|
declare const StyledFABContainer: import("@emotion/native").StyledComponent<TouchableHighlightProps & {
|
|
5
|
-
theme?: import("@emotion/react").Theme
|
|
6
|
-
as?: import("react").ElementType<any
|
|
5
|
+
theme?: import("@emotion/react").Theme;
|
|
6
|
+
as?: import("react").ElementType<any>;
|
|
7
7
|
}, {}, {
|
|
8
|
-
ref?: import("react").Ref<TouchableHighlight
|
|
8
|
+
ref?: import("react").Ref<TouchableHighlight>;
|
|
9
9
|
}>;
|
|
10
10
|
declare const StyledFABIcon: import("@emotion/native").StyledComponent<IconProps & {
|
|
11
|
-
theme?: import("@emotion/react").Theme
|
|
12
|
-
as?: import("react").ElementType<any
|
|
11
|
+
theme?: import("@emotion/react").Theme;
|
|
12
|
+
as?: import("react").ElementType<any>;
|
|
13
13
|
}, {}, {}>;
|
|
14
14
|
declare const StyledFABText: import("@emotion/native").StyledComponent<TextProps & {
|
|
15
|
-
theme?: import("@emotion/react").Theme
|
|
16
|
-
as?: import("react").ElementType<any
|
|
15
|
+
theme?: import("@emotion/react").Theme;
|
|
16
|
+
as?: import("react").ElementType<any>;
|
|
17
17
|
}, {}, {
|
|
18
|
-
ref?: import("react").Ref<Text
|
|
18
|
+
ref?: import("react").Ref<Text>;
|
|
19
19
|
}>;
|
|
20
20
|
export { StyledFABContainer, StyledFABIcon, StyledFABText };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
declare type ThemeSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
2
2
|
declare type ThemeIntent = 'text' | 'primary' | 'info' | 'danger' | 'success' | 'warning' | 'disabled-text' | 'text-inverted';
|
|
3
3
|
declare const StyledHeroIcon: import("@emotion/native").StyledComponent<import("react-native-vector-icons/Icon").IconProps & {
|
|
4
|
-
theme?: import("@emotion/react").Theme
|
|
5
|
-
as?: import("react").ElementType<any
|
|
4
|
+
theme?: import("@emotion/react").Theme;
|
|
5
|
+
as?: import("react").ElementType<any>;
|
|
6
6
|
} & {
|
|
7
7
|
themeSize: ThemeSize;
|
|
8
8
|
themeIntent: ThemeIntent;
|
|
9
9
|
}, {}, {
|
|
10
|
-
ref?: import("react").Ref<import("react-native-vector-icons/Icon").Icon
|
|
10
|
+
ref?: import("react").Ref<import("react-native-vector-icons/Icon").Icon>;
|
|
11
11
|
}>;
|
|
12
12
|
export default StyledHeroIcon;
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { TouchableHighlight, View } from 'react-native';
|
|
2
2
|
declare const StyledPrefixContainer: 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;
|
|
4
|
+
as?: import("react").ElementType<any>;
|
|
5
5
|
}, {}, {
|
|
6
|
-
ref?: import("react").Ref<View
|
|
6
|
+
ref?: import("react").Ref<View>;
|
|
7
7
|
}>;
|
|
8
8
|
declare const StyledSuffixContainer: 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;
|
|
10
|
+
as?: import("react").ElementType<any>;
|
|
11
11
|
}, {}, {
|
|
12
|
-
ref?: import("react").Ref<View
|
|
12
|
+
ref?: import("react").Ref<View>;
|
|
13
13
|
}>;
|
|
14
14
|
declare const StyledTitleContainer: 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;
|
|
16
|
+
as?: import("react").ElementType<any>;
|
|
17
17
|
}, {}, {
|
|
18
|
-
ref?: import("react").Ref<View
|
|
18
|
+
ref?: import("react").Ref<View>;
|
|
19
19
|
}>;
|
|
20
20
|
declare const StyledListItemContainer: import("@emotion/native").StyledComponent<import("react-native").TouchableHighlightProps & {
|
|
21
|
-
theme?: import("@emotion/react").Theme
|
|
22
|
-
as?: import("react").ElementType<any
|
|
21
|
+
theme?: import("@emotion/react").Theme;
|
|
22
|
+
as?: import("react").ElementType<any>;
|
|
23
23
|
} & {
|
|
24
|
-
themeSelected?: boolean
|
|
25
|
-
themeDisabled?: boolean
|
|
24
|
+
themeSelected?: boolean;
|
|
25
|
+
themeDisabled?: boolean;
|
|
26
26
|
}, {}, {
|
|
27
|
-
ref?: import("react").Ref<TouchableHighlight
|
|
27
|
+
ref?: import("react").Ref<TouchableHighlight>;
|
|
28
28
|
}>;
|
|
29
29
|
export { StyledListItemContainer, StyledPrefixContainer, StyledTitleContainer, StyledSuffixContainer, };
|