@hero-design/rn 8.33.1 → 8.33.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +1 -1
- package/es/index.js +187 -208
- package/lib/index.js +187 -208
- package/package.json +7 -7
- package/src/components/Accordion/AccordionItem.tsx +1 -3
- package/src/components/Accordion/__tests__/AccordionItem.spec.tsx +5 -5
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +26 -34
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +36 -48
- package/src/components/Accordion/__tests__/index.spec.tsx +2 -2
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +26 -39
- package/src/components/Alert/__tests__/index.spec.tsx +8 -2
- package/src/components/Alert/index.tsx +2 -2
- package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +2 -3
- package/src/components/Attachment/index.tsx +3 -1
- package/src/components/Badge/StyledBadge.tsx +1 -4
- package/src/components/Badge/__tests__/Status.spec.tsx +1 -1
- package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +18 -48
- package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +2 -3
- package/src/components/BottomNavigation/StyledBottomNavigation.tsx +1 -1
- package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +4 -12
- package/src/components/BottomNavigation/index.tsx +0 -1
- package/src/components/BottomSheet/Header.tsx +1 -3
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +2 -3
- package/src/components/Button/Button.tsx +34 -11
- package/src/components/Button/StyledButton.tsx +45 -38
- package/src/components/Button/UtilityButton/StyledUtilityButton.tsx +2 -4
- package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +8 -14
- package/src/components/Button/__tests__/StyledButton.spec.tsx +12 -6
- package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +66 -90
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +56 -86
- package/src/components/Calendar/CalendarRowItem.tsx +5 -2
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +10 -15
- package/src/components/Calendar/index.tsx +1 -1
- package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +12 -18
- package/src/components/Card/__tests__/index.spec.tsx +1 -1
- package/src/components/Carousel/CarouselItem.tsx +4 -4
- package/src/components/Carousel/StyledCarousel.tsx +1 -4
- package/src/components/Carousel/__tests__/CardCarousel.spec.tsx +18 -18
- package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +24 -20
- package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +99 -165
- package/src/components/Checkbox/StyledCheckbox.tsx +1 -1
- package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +8 -12
- package/src/components/Checkbox/index.tsx +1 -1
- package/src/components/ContentNavigator/StyledContentNavigator.tsx +1 -6
- package/src/components/ContentNavigator/__tests__/StyledContentNavigator.spec.tsx +1 -9
- package/src/components/ContentNavigator/__tests__/__snapshots__/StyledContentNavigator.spec.tsx.snap +0 -29
- package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +124 -17
- package/src/components/ContentNavigator/__tests__/index.spec.tsx +16 -0
- package/src/components/ContentNavigator/index.tsx +30 -9
- package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +12 -18
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +4 -6
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +4 -6
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +13 -18
- package/src/components/Empty/StyledEmpty.tsx +2 -6
- package/src/components/Empty/__tests__/__snapshots__/index.spec.tsx.snap +22 -36
- package/src/components/Empty/index.tsx +4 -2
- package/src/components/Error/StyledError.tsx +2 -8
- package/src/components/Error/__tests__/__snapshots__/index.spec.tsx.snap +44 -76
- package/src/components/Error/index.tsx +6 -2
- package/src/components/FAB/ActionGroup/StyledActionGroup.tsx +1 -4
- package/src/components/FAB/ActionGroup/StyledActionItem.tsx +1 -5
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +54 -116
- package/src/components/FAB/ActionGroup/index.tsx +1 -1
- package/src/components/FAB/StyledFAB.tsx +1 -4
- package/src/components/FAB/__tests__/StyledFAB.spec.tsx +1 -1
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +2 -3
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +4 -8
- package/src/components/List/BasicListItem.tsx +2 -6
- package/src/components/List/ListItem.tsx +3 -5
- package/src/components/List/__tests__/ListItem.spec.tsx +4 -4
- package/src/components/List/__tests__/StyledBasicListItem.spec.tsx +3 -1
- package/src/components/List/__tests__/StyledListItem.spec.tsx +3 -1
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +4 -10
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +23 -37
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +8 -12
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +8 -12
- package/src/components/PageControl/index.tsx +0 -1
- package/src/components/PinInput/PinCell.tsx +3 -1
- package/src/components/PinInput/StyledPinInput.tsx +2 -7
- package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +25 -45
- package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +18 -34
- package/src/components/Progress/ProgressCircle.tsx +1 -3
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +3 -6
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +2 -4
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +3 -6
- package/src/components/RichTextEditor/RichTextEditor.tsx +2 -9
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +16 -24
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +2 -3
- package/src/components/SectionHeading/__tests__/index.spec.tsx +3 -1
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -2
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +12 -24
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +86 -130
- package/src/components/Select/MultiSelect/__tests__/index.spec.tsx +6 -10
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -2
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +12 -24
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +49 -79
- package/src/components/Select/SingleSelect/__tests__/index.spec.tsx +5 -9
- package/src/components/Success/StyledSuccess.tsx +2 -6
- package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +40 -64
- package/src/components/Success/index.tsx +3 -1
- package/src/components/Swipeable/__tests__/SwipeableAction.spec.tsx +2 -2
- package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +6 -9
- package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +2 -3
- package/src/components/Swipeable/__tests__/index.spec.tsx +6 -4
- package/src/components/Switch/SelectorSwitch/Option.tsx +1 -1
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +1 -2
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -2
- package/src/components/Tabs/ScrollableTabsHeader.tsx +3 -3
- package/src/components/Tabs/__tests__/SceneView.spec.tsx +4 -4
- package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +6 -9
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +33 -60
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +7 -13
- package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +3 -8
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +45 -81
- package/src/components/Tabs/index.tsx +3 -3
- package/src/components/Tag/StyledTag.tsx +1 -4
- package/src/components/Tag/__tests__/Tag.spec.tsx +5 -1
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +47 -93
- package/src/components/Tag/index.tsx +5 -1
- package/src/components/TextInput/StyledTextInput.tsx +8 -16
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +72 -134
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +145 -257
- package/src/components/TextInput/index.tsx +2 -3
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +12 -23
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +21 -35
- package/src/components/Toast/Toast.tsx +6 -5
- package/src/components/Toast/__tests__/Toast.spec.tsx +5 -1
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +26 -39
- package/src/components/Toolbar/StyledToolbar.tsx +1 -1
- package/src/components/Toolbar/ToolbarItem.tsx +4 -6
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +12 -18
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +14 -21
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +4 -0
- package/src/theme/components/badge.ts +15 -0
- package/src/theme/components/button.ts +16 -0
- package/src/theme/components/carousel.ts +15 -0
- package/src/theme/components/empty.ts +12 -0
- package/src/theme/components/error.ts +16 -0
- package/src/theme/components/fab.ts +11 -0
- package/src/theme/components/pinInput.ts +15 -0
- package/src/theme/components/success.ts +12 -0
- package/src/theme/components/tag.ts +16 -0
- package/src/theme/components/textInput.ts +1 -0
- package/src/theme/getTheme.ts +18 -18
- package/types/components/Badge/StyledBadge.d.ts +1 -1
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +1 -1
- package/types/components/Button/StyledButton.d.ts +12 -5
- package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +1 -1
- package/types/components/Carousel/StyledCarousel.d.ts +1 -1
- package/types/components/Checkbox/StyledCheckbox.d.ts +1 -1
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +1 -5
- package/types/components/Empty/StyledEmpty.d.ts +2 -2
- package/types/components/Error/StyledError.d.ts +2 -2
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +2 -2
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +1 -1
- package/types/components/FAB/StyledFAB.d.ts +1 -1
- package/types/components/PinInput/StyledPinInput.d.ts +2 -2
- package/types/components/Success/StyledSuccess.d.ts +2 -2
- package/types/components/Tag/StyledTag.d.ts +1 -1
- package/types/components/TextInput/StyledTextInput.d.ts +7 -10
- package/types/components/Toolbar/StyledToolbar.d.ts +1 -1
- package/types/theme/components/badge.d.ts +15 -0
- package/types/theme/components/button.d.ts +14 -0
- package/types/theme/components/carousel.d.ts +15 -0
- package/types/theme/components/empty.d.ts +11 -0
- package/types/theme/components/error.d.ts +15 -0
- package/types/theme/components/fab.d.ts +11 -0
- package/types/theme/components/pinInput.d.ts +15 -0
- package/types/theme/components/success.d.ts +11 -0
- package/types/theme/components/tag.d.ts +15 -0
- package/types/theme/components/textInput.d.ts +1 -0
- package/types/theme/getTheme.d.ts +18 -18
|
@@ -6,8 +6,4 @@ declare const Wrapper: import("@emotion/native").StyledComponent<import("react-n
|
|
|
6
6
|
}, {}, {
|
|
7
7
|
ref?: import("react").Ref<View> | undefined;
|
|
8
8
|
}>;
|
|
9
|
-
|
|
10
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
-
as?: import("react").ElementType<any> | undefined;
|
|
12
|
-
}, {}, {}>;
|
|
13
|
-
export { Wrapper, Value };
|
|
9
|
+
export { Wrapper };
|
|
@@ -7,13 +7,13 @@ declare const StyledWrapper: import("@emotion/native").StyledComponent<import("r
|
|
|
7
7
|
}, {}, {
|
|
8
8
|
ref?: import("react").Ref<View> | undefined;
|
|
9
9
|
}>;
|
|
10
|
-
declare const StyledTitle: import("@emotion/native").StyledComponent<import("
|
|
10
|
+
declare const StyledTitle: import("@emotion/native").StyledComponent<import("../Typography/Title").TitleProps & {
|
|
11
11
|
theme?: import("@emotion/react").Theme | undefined;
|
|
12
12
|
as?: import("react").ElementType<any> | undefined;
|
|
13
13
|
} & {
|
|
14
14
|
themeVariant: ThemeVariant;
|
|
15
15
|
}, {}, {}>;
|
|
16
|
-
declare const StyledDescription: import("@emotion/native").StyledComponent<import("
|
|
16
|
+
declare const StyledDescription: import("@emotion/native").StyledComponent<import("../Typography/Body").BodyProps & {
|
|
17
17
|
theme?: import("@emotion/react").Theme | undefined;
|
|
18
18
|
as?: import("react").ElementType<any> | undefined;
|
|
19
19
|
} & {
|
|
@@ -49,11 +49,11 @@ declare const StyledErrorImage: import("@emotion/native").StyledComponent<import
|
|
|
49
49
|
theme?: import("@emotion/react").Theme | undefined;
|
|
50
50
|
as?: import("react").ElementType<any> | undefined;
|
|
51
51
|
}, {}, {}>;
|
|
52
|
-
declare const StyledErrorTitle: import("@emotion/native").StyledComponent<import("
|
|
52
|
+
declare const StyledErrorTitle: import("@emotion/native").StyledComponent<import("../Typography/Title").TitleProps & {
|
|
53
53
|
theme?: import("@emotion/react").Theme | undefined;
|
|
54
54
|
as?: import("react").ElementType<any> | undefined;
|
|
55
55
|
}, {}, {}>;
|
|
56
|
-
declare const StyledErrorDescription: import("@emotion/native").StyledComponent<import("
|
|
56
|
+
declare const StyledErrorDescription: import("@emotion/native").StyledComponent<import("../Typography/Body").BodyProps & {
|
|
57
57
|
theme?: import("@emotion/react").Theme | undefined;
|
|
58
58
|
as?: import("react").ElementType<any> | undefined;
|
|
59
59
|
}, {}, {}>;
|
|
@@ -24,8 +24,8 @@ declare const StyledBackdrop: import("@emotion/native").StyledComponent<Animated
|
|
|
24
24
|
theme?: import("@emotion/react").Theme | undefined;
|
|
25
25
|
as?: import("react").ElementType<any> | undefined;
|
|
26
26
|
}, {}, {}>;
|
|
27
|
-
declare const StyledHeaderText: import("@emotion/native").StyledComponent<
|
|
27
|
+
declare const StyledHeaderText: import("@emotion/native").StyledComponent<import("../../Typography/Title").TitleProps & {
|
|
28
28
|
theme?: import("@emotion/react").Theme | undefined;
|
|
29
29
|
as?: import("react").ElementType<any> | undefined;
|
|
30
|
-
}, {}, {}>;
|
|
30
|
+
} & TextProps, {}, {}>;
|
|
31
31
|
export { StyledHeaderText, StyledBackdrop, StyledContainer, StyledActionGroupContainer, StyledFAB, };
|
|
@@ -8,7 +8,7 @@ declare const StyledActionItem: import("@emotion/native").StyledComponent<import
|
|
|
8
8
|
}, {}, {
|
|
9
9
|
ref?: import("react").Ref<TouchableHighlight> | undefined;
|
|
10
10
|
}>;
|
|
11
|
-
declare const StyledActionItemText: import("@emotion/native").StyledComponent<import("
|
|
11
|
+
declare const StyledActionItemText: import("@emotion/native").StyledComponent<import("../../Typography/Body").BodyProps & {
|
|
12
12
|
theme?: import("@emotion/react").Theme | undefined;
|
|
13
13
|
as?: import("react").ElementType<any> | undefined;
|
|
14
14
|
} & TouchableOpacityProps, {}, {}>;
|
|
@@ -12,7 +12,7 @@ declare const StyledFABIcon: import("@emotion/native").StyledComponent<IconProps
|
|
|
12
12
|
theme?: import("@emotion/react").Theme | undefined;
|
|
13
13
|
as?: import("react").ElementType<any> | undefined;
|
|
14
14
|
}, {}, {}>;
|
|
15
|
-
declare const StyledFABText: import("@emotion/native").StyledComponent<import("
|
|
15
|
+
declare const StyledFABText: import("@emotion/native").StyledComponent<import("../Typography/Body").BodyProps & {
|
|
16
16
|
theme?: import("@emotion/react").Theme | undefined;
|
|
17
17
|
as?: import("react").ElementType<any> | undefined;
|
|
18
18
|
} & TextProps, {}, {}>;
|
|
@@ -22,7 +22,7 @@ export declare const StyledCell: import("@emotion/native").StyledComponent<impor
|
|
|
22
22
|
}, {}, {
|
|
23
23
|
ref?: import("react").Ref<View> | undefined;
|
|
24
24
|
}>;
|
|
25
|
-
export declare const StyledCellText: import("@emotion/native").StyledComponent<import("
|
|
25
|
+
export declare const StyledCellText: import("@emotion/native").StyledComponent<import("../Typography/Title").TitleProps & {
|
|
26
26
|
theme?: import("@emotion/react").Theme | undefined;
|
|
27
27
|
as?: import("react").ElementType<any> | undefined;
|
|
28
28
|
} & {
|
|
@@ -64,7 +64,7 @@ export declare const StyledErrorContainer: import("@emotion/native").StyledCompo
|
|
|
64
64
|
}, {}, {
|
|
65
65
|
ref?: import("react").Ref<View> | undefined;
|
|
66
66
|
}>;
|
|
67
|
-
export declare const StyledErrorMessage: import("@emotion/native").StyledComponent<import("
|
|
67
|
+
export declare const StyledErrorMessage: import("@emotion/native").StyledComponent<import("../Typography/Caption").CaptionProps & {
|
|
68
68
|
theme?: import("@emotion/react").Theme | undefined;
|
|
69
69
|
as?: import("react").ElementType<any> | undefined;
|
|
70
70
|
}, {}, {}>;
|
|
@@ -25,11 +25,11 @@ declare const StyledSuccessImageContainer: import("@emotion/native").StyledCompo
|
|
|
25
25
|
}, {}, {
|
|
26
26
|
ref?: import("react").Ref<View> | undefined;
|
|
27
27
|
}>;
|
|
28
|
-
declare const StyledSuccessTitle: import("@emotion/native").StyledComponent<import("
|
|
28
|
+
declare const StyledSuccessTitle: import("@emotion/native").StyledComponent<import("../Typography/Title").TitleProps & {
|
|
29
29
|
theme?: import("@emotion/react").Theme | undefined;
|
|
30
30
|
as?: import("react").ElementType<any> | undefined;
|
|
31
31
|
}, {}, {}>;
|
|
32
|
-
declare const StyledSuccessDescription: import("@emotion/native").StyledComponent<import("
|
|
32
|
+
declare const StyledSuccessDescription: import("@emotion/native").StyledComponent<import("../Typography/Body").BodyProps & {
|
|
33
33
|
theme?: import("@emotion/react").Theme | undefined;
|
|
34
34
|
as?: import("react").ElementType<any> | undefined;
|
|
35
35
|
}, {}, {}>;
|
|
@@ -11,7 +11,7 @@ declare const StyledView: import("@emotion/native").StyledComponent<import("reac
|
|
|
11
11
|
}, {}, {
|
|
12
12
|
ref?: import("react").Ref<View> | undefined;
|
|
13
13
|
}>;
|
|
14
|
-
declare const StyledText: import("@emotion/native").StyledComponent<import("
|
|
14
|
+
declare const StyledText: import("@emotion/native").StyledComponent<import("../Typography/Caption").CaptionProps & {
|
|
15
15
|
theme?: import("@emotion/react").Theme | undefined;
|
|
16
16
|
as?: import("react").ElementType<any> | undefined;
|
|
17
17
|
} & {
|
|
@@ -14,13 +14,13 @@ declare const StyledLabelContainer: import("@emotion/native").StyledComponent<im
|
|
|
14
14
|
}, {}, {
|
|
15
15
|
ref?: import("react").Ref<View> | undefined;
|
|
16
16
|
}>;
|
|
17
|
-
declare const StyledLabel: import("@emotion/native").StyledComponent<import("
|
|
17
|
+
declare const StyledLabel: import("@emotion/native").StyledComponent<import("../Typography/Caption").CaptionProps & {
|
|
18
18
|
theme?: import("@emotion/react").Theme | undefined;
|
|
19
19
|
as?: import("react").ElementType<any> | undefined;
|
|
20
20
|
} & {
|
|
21
21
|
themeState: State;
|
|
22
22
|
}, {}, {}>;
|
|
23
|
-
declare const StyledAsteriskLabel: import("@emotion/native").StyledComponent<import("
|
|
23
|
+
declare const StyledAsteriskLabel: import("@emotion/native").StyledComponent<import("../Typography/Caption").CaptionProps & {
|
|
24
24
|
theme?: import("@emotion/react").Theme | undefined;
|
|
25
25
|
as?: import("react").ElementType<any> | undefined;
|
|
26
26
|
} & {
|
|
@@ -34,13 +34,13 @@ declare const StyledLabelContainerInsideTextInput: import("@emotion/native").Sty
|
|
|
34
34
|
}, {}, {
|
|
35
35
|
ref?: import("react").Ref<View> | undefined;
|
|
36
36
|
}>;
|
|
37
|
-
declare const StyledLabelInsideTextInput: import("@emotion/native").StyledComponent<import("
|
|
37
|
+
declare const StyledLabelInsideTextInput: import("@emotion/native").StyledComponent<import("../Typography/Body").BodyProps & {
|
|
38
38
|
theme?: import("@emotion/react").Theme | undefined;
|
|
39
39
|
as?: import("react").ElementType<any> | undefined;
|
|
40
40
|
} & {
|
|
41
41
|
themeState: State;
|
|
42
42
|
}, {}, {}>;
|
|
43
|
-
declare const StyledAsteriskLabelInsideTextInput: import("@emotion/native").StyledComponent<import("
|
|
43
|
+
declare const StyledAsteriskLabelInsideTextInput: import("@emotion/native").StyledComponent<import("../Typography/Body").BodyProps & {
|
|
44
44
|
theme?: import("@emotion/react").Theme | undefined;
|
|
45
45
|
as?: import("react").ElementType<any> | undefined;
|
|
46
46
|
} & {
|
|
@@ -52,20 +52,17 @@ declare const StyledErrorContainer: import("@emotion/native").StyledComponent<im
|
|
|
52
52
|
}, {}, {
|
|
53
53
|
ref?: import("react").Ref<View> | undefined;
|
|
54
54
|
}>;
|
|
55
|
-
declare const StyledError: import("@emotion/native").StyledComponent<import("
|
|
55
|
+
declare const StyledError: import("@emotion/native").StyledComponent<import("../Typography/Caption").CaptionProps & {
|
|
56
56
|
theme?: import("@emotion/react").Theme | undefined;
|
|
57
57
|
as?: import("react").ElementType<any> | undefined;
|
|
58
58
|
}, {}, {}>;
|
|
59
|
-
declare const StyledMaxLengthMessage: import("@emotion/native").StyledComponent<import("
|
|
59
|
+
declare const StyledMaxLengthMessage: import("@emotion/native").StyledComponent<import("../Typography/Caption").CaptionProps & {
|
|
60
60
|
theme?: import("@emotion/react").Theme | undefined;
|
|
61
61
|
as?: import("react").ElementType<any> | undefined;
|
|
62
62
|
} & {
|
|
63
63
|
themeState: State;
|
|
64
64
|
}, {}, {}>;
|
|
65
|
-
declare const StyledHelperText: import("
|
|
66
|
-
theme?: import("@emotion/react").Theme | undefined;
|
|
67
|
-
as?: import("react").ElementType<any> | undefined;
|
|
68
|
-
}, {}, {}>;
|
|
65
|
+
declare const StyledHelperText: ({ children, fontWeight, intent, allowFontScaling, ...nativeProps }: import("../Typography/Caption").CaptionProps) => JSX.Element;
|
|
69
66
|
declare const StyledTextInput: import("@emotion/native").StyledComponent<import("react-native").TextInputProps & {
|
|
70
67
|
theme?: import("@emotion/react").Theme | undefined;
|
|
71
68
|
as?: import("react").ElementType<any> | undefined;
|
|
@@ -27,7 +27,7 @@ declare const IconButtonWrapper: import("@emotion/native").StyledComponent<ViewP
|
|
|
27
27
|
}, {}, {
|
|
28
28
|
ref?: import("react").Ref<View> | undefined;
|
|
29
29
|
}>;
|
|
30
|
-
declare const IconButtonLabel: import("@emotion/native").StyledComponent<import("
|
|
30
|
+
declare const IconButtonLabel: import("@emotion/native").StyledComponent<import("../Typography/Body").BodyProps & {
|
|
31
31
|
theme?: import("@emotion/react").Theme | undefined;
|
|
32
32
|
as?: import("react").ElementType<any> | undefined;
|
|
33
33
|
}, {}, {}>;
|
|
@@ -30,4 +30,19 @@ declare const getBadgeTheme: (theme: GlobalTheme) => {
|
|
|
30
30
|
default: number;
|
|
31
31
|
};
|
|
32
32
|
};
|
|
33
|
+
type GetBadgeThemeReturnType = ReturnType<typeof getBadgeTheme>;
|
|
34
|
+
export interface BadgeThemeType extends GetBadgeThemeReturnType {
|
|
35
|
+
/**
|
|
36
|
+
* @deprecated will be removed in v9
|
|
37
|
+
* */
|
|
38
|
+
fonts: GetBadgeThemeReturnType['fonts'];
|
|
39
|
+
/**
|
|
40
|
+
* @deprecated will be removed in v9
|
|
41
|
+
* */
|
|
42
|
+
fontSizes: GetBadgeThemeReturnType['fontSizes'];
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated will be removed in v9
|
|
45
|
+
* */
|
|
46
|
+
lineHeights: GetBadgeThemeReturnType['lineHeights'];
|
|
47
|
+
}
|
|
33
48
|
export default getBadgeTheme;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { GlobalTheme } from '../global';
|
|
2
2
|
declare const getButtonTheme: (theme: GlobalTheme) => {
|
|
3
|
+
lineHeights: {
|
|
4
|
+
titleOfTextVariant: number;
|
|
5
|
+
};
|
|
3
6
|
borderWidth: {
|
|
4
7
|
default: number;
|
|
5
8
|
};
|
|
@@ -51,4 +54,15 @@ declare const getButtonTheme: (theme: GlobalTheme) => {
|
|
|
51
54
|
loadingIndicatorWrapperVerticalPadding: number;
|
|
52
55
|
};
|
|
53
56
|
};
|
|
57
|
+
type GetButtonThemeReturnType = ReturnType<typeof getButtonTheme>;
|
|
58
|
+
export interface ButtonThemeType extends GetButtonThemeReturnType {
|
|
59
|
+
/**
|
|
60
|
+
* @deprecated will be removed in v9
|
|
61
|
+
* */
|
|
62
|
+
fonts: GetButtonThemeReturnType['fonts'];
|
|
63
|
+
/**
|
|
64
|
+
* @deprecated will be removed in v9
|
|
65
|
+
* */
|
|
66
|
+
fontSize: GetButtonThemeReturnType['fontSize'];
|
|
67
|
+
}
|
|
54
68
|
export default getButtonTheme;
|
|
@@ -19,4 +19,19 @@ declare const getCarouselTheme: (theme: GlobalTheme) => {
|
|
|
19
19
|
heading: number;
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
|
+
type GetCarouselThemeReturnType = ReturnType<typeof getCarouselTheme>;
|
|
23
|
+
export interface CarouselThemeType extends GetCarouselThemeReturnType {
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated will be removed in v9
|
|
26
|
+
* */
|
|
27
|
+
fonts: GetCarouselThemeReturnType['fonts'];
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated will be removed in v9
|
|
30
|
+
* */
|
|
31
|
+
fontSizes: GetCarouselThemeReturnType['fontSizes'];
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated will be removed in v9
|
|
34
|
+
* */
|
|
35
|
+
lineHeights: GetCarouselThemeReturnType['lineHeights'];
|
|
36
|
+
}
|
|
22
37
|
export default getCarouselTheme;
|
|
@@ -23,4 +23,15 @@ declare const getEmptyTheme: (theme: GlobalTheme) => {
|
|
|
23
23
|
description: string;
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
|
+
type GetEmptyThemeReturnType = ReturnType<typeof getEmptyTheme>;
|
|
27
|
+
export interface EmptyThemeType extends GetEmptyThemeReturnType {
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated will be removed in v9
|
|
30
|
+
* */
|
|
31
|
+
fonts: GetEmptyThemeReturnType['fonts'];
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated will be removed in v9
|
|
34
|
+
* */
|
|
35
|
+
fontSizes: GetEmptyThemeReturnType['fontSizes'];
|
|
36
|
+
}
|
|
26
37
|
export default getEmptyTheme;
|
|
@@ -33,4 +33,19 @@ declare const getErrorTheme: (theme: GlobalTheme) => {
|
|
|
33
33
|
description: number;
|
|
34
34
|
};
|
|
35
35
|
};
|
|
36
|
+
type GetErrorThemeReturnType = ReturnType<typeof getErrorTheme>;
|
|
37
|
+
export interface ErrorThemeType extends GetErrorThemeReturnType {
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated will be removed in v9
|
|
40
|
+
* */
|
|
41
|
+
fonts: GetErrorThemeReturnType['fonts'];
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated will be removed in v9
|
|
44
|
+
* */
|
|
45
|
+
fontSizes: GetErrorThemeReturnType['fontSizes'];
|
|
46
|
+
/**
|
|
47
|
+
* @deprecated will be removed in v9
|
|
48
|
+
* */
|
|
49
|
+
lineHeight: GetErrorThemeReturnType['lineHeight'];
|
|
50
|
+
}
|
|
36
51
|
export default getErrorTheme;
|
|
@@ -59,4 +59,15 @@ declare const getFABTheme: (theme: GlobalTheme) => {
|
|
|
59
59
|
titleMarginHorizontal: number;
|
|
60
60
|
};
|
|
61
61
|
};
|
|
62
|
+
type GetFABThemeReturnType = ReturnType<typeof getFABTheme>;
|
|
63
|
+
export interface FABThemeType extends GetFABThemeReturnType {
|
|
64
|
+
/**
|
|
65
|
+
* @deprecated will be removed in v9
|
|
66
|
+
* */
|
|
67
|
+
fonts: GetFABThemeReturnType['fonts'];
|
|
68
|
+
/**
|
|
69
|
+
* @deprecated will be removed in v9
|
|
70
|
+
* */
|
|
71
|
+
fontSizes: GetFABThemeReturnType['fontSizes'];
|
|
72
|
+
}
|
|
62
73
|
export default getFABTheme;
|
|
@@ -36,4 +36,19 @@ declare const getPinInputTheme: (theme: GlobalTheme) => {
|
|
|
36
36
|
mask: number;
|
|
37
37
|
};
|
|
38
38
|
};
|
|
39
|
+
type GetPinInputThemeReturnType = ReturnType<typeof getPinInputTheme>;
|
|
40
|
+
export interface PinInputThemeType extends GetPinInputThemeReturnType {
|
|
41
|
+
/**
|
|
42
|
+
* @deprecated will be removed in v9
|
|
43
|
+
* */
|
|
44
|
+
fonts: GetPinInputThemeReturnType['fonts'];
|
|
45
|
+
/**
|
|
46
|
+
* @deprecated will be removed in v9
|
|
47
|
+
* */
|
|
48
|
+
fontSizes: GetPinInputThemeReturnType['fontSizes'];
|
|
49
|
+
/**
|
|
50
|
+
* @deprecated will be removed in v9
|
|
51
|
+
* */
|
|
52
|
+
lineHeights: GetPinInputThemeReturnType['lineHeights'];
|
|
53
|
+
}
|
|
39
54
|
export default getPinInputTheme;
|
|
@@ -29,4 +29,15 @@ declare const getSuccessTheme: (theme: GlobalTheme) => {
|
|
|
29
29
|
description: string;
|
|
30
30
|
};
|
|
31
31
|
};
|
|
32
|
+
type GetSuccessThemeReturnType = ReturnType<typeof getSuccessTheme>;
|
|
33
|
+
export interface SuccessThemeType extends GetSuccessThemeReturnType {
|
|
34
|
+
/**
|
|
35
|
+
* @deprecated will be removed in v9
|
|
36
|
+
* */
|
|
37
|
+
fonts: GetSuccessThemeReturnType['fonts'];
|
|
38
|
+
/**
|
|
39
|
+
* @deprecated will be removed in v9
|
|
40
|
+
* */
|
|
41
|
+
fontSizes: GetSuccessThemeReturnType['fontSizes'];
|
|
42
|
+
}
|
|
32
43
|
export default getSuccessTheme;
|
|
@@ -35,4 +35,19 @@ declare const getTagTheme: (theme: GlobalTheme) => {
|
|
|
35
35
|
default: number;
|
|
36
36
|
};
|
|
37
37
|
};
|
|
38
|
+
type GetTagThemeReturnType = ReturnType<typeof getTagTheme>;
|
|
39
|
+
export interface TagThemeType extends GetTagThemeReturnType {
|
|
40
|
+
/**
|
|
41
|
+
* @deprecated will be removed in v9
|
|
42
|
+
* */
|
|
43
|
+
fonts: GetTagThemeReturnType['fonts'];
|
|
44
|
+
/**
|
|
45
|
+
* @deprecated will be removed in v9
|
|
46
|
+
* */
|
|
47
|
+
fontSizes: GetTagThemeReturnType['fontSizes'];
|
|
48
|
+
/**
|
|
49
|
+
* @deprecated will be removed in v9
|
|
50
|
+
* */
|
|
51
|
+
lineHeights: GetTagThemeReturnType['lineHeights'];
|
|
52
|
+
}
|
|
38
53
|
export default getTagTheme;
|
|
@@ -54,6 +54,7 @@ declare const getTextInputTheme: (theme: GlobalTheme) => {
|
|
|
54
54
|
errorAndHelpTextContainerPaddingLeft: number;
|
|
55
55
|
containerMarginTop: number;
|
|
56
56
|
labelInsideTextInputMarginTop: number;
|
|
57
|
+
errorAndHelpTextContainerPaddingTop: number;
|
|
57
58
|
};
|
|
58
59
|
fonts: {
|
|
59
60
|
text: string;
|
|
@@ -2,27 +2,27 @@ import getAccordionTheme from './components/accordion';
|
|
|
2
2
|
import getAlertTheme from './components/alert';
|
|
3
3
|
import getAttachmentTheme from './components/attachment';
|
|
4
4
|
import getAvatarTheme from './components/avatar';
|
|
5
|
-
import
|
|
5
|
+
import { BadgeThemeType } from './components/badge';
|
|
6
6
|
import getBottomNavigationTheme from './components/bottomNavigation';
|
|
7
7
|
import getBottomSheetTheme from './components/bottomSheet';
|
|
8
|
-
import
|
|
8
|
+
import { ButtonThemeType } from './components/button';
|
|
9
9
|
import getCalendarTheme from './components/calendar';
|
|
10
10
|
import getCardTheme from './components/card';
|
|
11
|
-
import
|
|
11
|
+
import { CarouselThemeType } from './components/carousel';
|
|
12
12
|
import getCardCarouselTheme from './components/cardCarousel';
|
|
13
13
|
import getCheckboxTheme from './components/checkbox';
|
|
14
14
|
import getContentNavigatorTheme from './components/contentNavigator';
|
|
15
15
|
import getDatePickerTheme from './components/datePicker';
|
|
16
16
|
import getDividerTheme from './components/divider';
|
|
17
17
|
import getDrawerTheme from './components/drawer';
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
18
|
+
import { EmptyThemeType } from './components/empty';
|
|
19
|
+
import { ErrorThemeType } from './components/error';
|
|
20
|
+
import { FABThemeType } from './components/fab';
|
|
21
21
|
import getIconTheme from './components/icon';
|
|
22
22
|
import getImageTheme from './components/image';
|
|
23
23
|
import getListTheme from './components/list';
|
|
24
24
|
import getPageControlTheme from './components/pageControl';
|
|
25
|
-
import
|
|
25
|
+
import { PinInputThemeType } from './components/pinInput';
|
|
26
26
|
import getProgressTheme from './components/progress';
|
|
27
27
|
import getRadioTheme from './components/radio';
|
|
28
28
|
import getRateTheme from './components/rate';
|
|
@@ -33,11 +33,11 @@ import getSelectTheme from './components/select';
|
|
|
33
33
|
import getSkeletonTheme from './components/skeleton';
|
|
34
34
|
import getSliderTheme from './components/slider';
|
|
35
35
|
import getSpinnerTheme from './components/spinner';
|
|
36
|
-
import
|
|
36
|
+
import { SuccessThemeType } from './components/success';
|
|
37
37
|
import getSwipeableTheme from './components/swipeable';
|
|
38
38
|
import getSwitchTheme from './components/switch';
|
|
39
39
|
import getTabsTheme from './components/tabs';
|
|
40
|
-
import
|
|
40
|
+
import { TagThemeType } from './components/tag';
|
|
41
41
|
import getTextInputTheme from './components/textInput';
|
|
42
42
|
import getTimePickerTheme from './components/timePicker';
|
|
43
43
|
import getToastTheme from './components/toast';
|
|
@@ -50,27 +50,27 @@ type Theme = GlobalTheme & {
|
|
|
50
50
|
alert: ReturnType<typeof getAlertTheme>;
|
|
51
51
|
attachment: ReturnType<typeof getAttachmentTheme>;
|
|
52
52
|
avatar: ReturnType<typeof getAvatarTheme>;
|
|
53
|
-
badge:
|
|
53
|
+
badge: BadgeThemeType;
|
|
54
54
|
bottomNavigation: ReturnType<typeof getBottomNavigationTheme>;
|
|
55
55
|
bottomSheet: ReturnType<typeof getBottomSheetTheme>;
|
|
56
|
-
button:
|
|
56
|
+
button: ButtonThemeType;
|
|
57
57
|
calendar: ReturnType<typeof getCalendarTheme>;
|
|
58
58
|
card: ReturnType<typeof getCardTheme>;
|
|
59
|
-
carousel:
|
|
59
|
+
carousel: CarouselThemeType;
|
|
60
60
|
cardCarousel: ReturnType<typeof getCardCarouselTheme>;
|
|
61
61
|
checkbox: ReturnType<typeof getCheckboxTheme>;
|
|
62
62
|
contentNavigator: ReturnType<typeof getContentNavigatorTheme>;
|
|
63
63
|
datePicker: ReturnType<typeof getDatePickerTheme>;
|
|
64
64
|
divider: ReturnType<typeof getDividerTheme>;
|
|
65
65
|
drawer: ReturnType<typeof getDrawerTheme>;
|
|
66
|
-
empty:
|
|
67
|
-
error:
|
|
68
|
-
fab:
|
|
66
|
+
empty: EmptyThemeType;
|
|
67
|
+
error: ErrorThemeType;
|
|
68
|
+
fab: FABThemeType;
|
|
69
69
|
icon: ReturnType<typeof getIconTheme>;
|
|
70
70
|
image: ReturnType<typeof getImageTheme>;
|
|
71
71
|
list: ReturnType<typeof getListTheme>;
|
|
72
72
|
pageControl: ReturnType<typeof getPageControlTheme>;
|
|
73
|
-
pinInput:
|
|
73
|
+
pinInput: PinInputThemeType;
|
|
74
74
|
progress: ReturnType<typeof getProgressTheme>;
|
|
75
75
|
radio: ReturnType<typeof getRadioTheme>;
|
|
76
76
|
rate: ReturnType<typeof getRateTheme>;
|
|
@@ -81,11 +81,11 @@ type Theme = GlobalTheme & {
|
|
|
81
81
|
skeleton: ReturnType<typeof getSkeletonTheme>;
|
|
82
82
|
slider: ReturnType<typeof getSliderTheme>;
|
|
83
83
|
spinner: ReturnType<typeof getSpinnerTheme>;
|
|
84
|
-
success:
|
|
84
|
+
success: SuccessThemeType;
|
|
85
85
|
swipeable: ReturnType<typeof getSwipeableTheme>;
|
|
86
86
|
switch: ReturnType<typeof getSwitchTheme>;
|
|
87
87
|
tabs: ReturnType<typeof getTabsTheme>;
|
|
88
|
-
tag:
|
|
88
|
+
tag: TagThemeType;
|
|
89
89
|
textInput: ReturnType<typeof getTextInputTheme>;
|
|
90
90
|
timePicker: ReturnType<typeof getTimePickerTheme>;
|
|
91
91
|
toast: ReturnType<typeof getToastTheme>;
|