@hero-design/rn 8.64.9-alpha.0 → 8.65.0-alpha.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/CHANGELOG.md +6 -0
- package/es/index.js +17536 -17420
- package/lib/index.js +18073 -17960
- package/package.json +13 -15
- package/{rollup.config.js → rollup.config.mjs} +5 -3
- package/src/components/BottomNavigation/index.tsx +0 -4
- package/src/components/PinInput/StyledPinInput.tsx +0 -1
- package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +30 -5
- package/src/components/PinInput/__tests__/index.spec.tsx +23 -11
- package/src/components/PinInput/index.tsx +11 -5
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +1 -1
- package/stats/8.65.0/rn-stats.html +4842 -0
- package/tsconfig.json +2 -3
- package/tsconfig.rollup.json +27 -0
- package/types/components/Accordion/StyledAccordion.d.ts +5 -5
- package/types/components/Alert/StyledAlert.d.ts +5 -5
- package/types/components/Attachment/StyledAttachment.d.ts +4 -4
- package/types/components/Avatar/AvatarStack/StyledAvatarStack.d.ts +3 -3
- package/types/components/Avatar/StyledAvatar.d.ts +4 -4
- package/types/components/Badge/StyledBadge.d.ts +3 -3
- package/types/components/Badge/types.d.ts +53 -0
- package/types/components/BottomNavigation/StyledBottomNavigation.d.ts +7 -7
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +8 -8
- package/types/components/Box/StyledBox.d.ts +1 -1
- package/types/components/Button/LoadingIndicator/StyledLoadingIndicator.d.ts +2 -3
- package/types/components/Button/StyledButton.d.ts +5 -6
- package/types/components/Button/UtilityButton/StyledUtilityButton.d.ts +3 -3
- package/types/components/Calendar/StyledCalendar.d.ts +8 -8
- package/types/components/Card/DataCard/StyledDataCard.d.ts +2 -2
- package/types/components/Card/StyledCard.d.ts +1 -1
- package/types/components/Carousel/StyledCardCarousel.d.ts +4 -4
- package/types/components/Carousel/StyledCarousel.d.ts +9 -9
- package/types/components/Checkbox/StyledCheckbox.d.ts +5 -5
- package/types/components/Chip/StyledChip.d.ts +4 -4
- package/types/components/Collapse/StyledCollapse.d.ts +3 -3
- package/types/components/CompoundSearch/CompoundSearchHandler.d.ts +31 -0
- package/types/components/CompoundSearch/CompoundSearchTextInput.d.ts +60 -0
- package/types/components/CompoundSearch/StyledCompoundSearch.d.ts +40 -0
- package/types/components/CompoundSearch/index.d.ts +8 -0
- package/types/components/CompoundSearch/utils.d.ts +8 -0
- package/types/components/ContentNavigator/StyledContentNavigator.d.ts +1 -1
- package/types/components/DatePicker/StyledDatePicker.d.ts +1 -1
- package/types/components/Divider/StyledDivider.d.ts +1 -1
- package/types/components/Drawer/StyledDrawer.d.ts +7 -7
- package/types/components/Empty/StyledEmpty.d.ts +3 -3
- package/types/components/Error/StyledError.d.ts +10 -10
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +5 -5
- package/types/components/FAB/ActionGroup/StyledActionItem.d.ts +3 -3
- package/types/components/FAB/Pair/StyledFAB.d.ts +12 -0
- package/types/components/FAB/Pair/index.d.ts +16 -0
- package/types/components/FAB/StyledFAB.d.ts +4 -4
- package/types/components/Icon/HeroIcon/index.d.ts +1 -1
- package/types/components/List/StyledBasicListItem.d.ts +4 -4
- package/types/components/List/StyledListItem.d.ts +7 -7
- package/types/components/MapPin/Focussed.d.ts +13 -0
- package/types/components/MapPin/StyledMapPin.d.ts +32 -0
- package/types/components/MapPin/index.d.ts +5 -0
- package/types/components/MapPin/types.d.ts +38 -0
- package/types/components/PageControl/StyledPageControl.d.ts +2 -2
- package/types/components/PinInput/StyledPinInput.d.ts +10 -10
- package/types/components/Progress/ProgressStep.d.ts +20 -0
- package/types/components/Progress/StyledProgressBar.d.ts +2 -2
- package/types/components/Progress/StyledProgressCircle.d.ts +6 -6
- package/types/components/Progress/StyledStep.d.ts +23 -0
- package/types/components/Radio/StyledRadio.d.ts +4 -4
- package/types/components/Rate/StyledRate.d.ts +2 -2
- package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +2 -2
- package/types/components/RichTextEditor/StyledToolbar.d.ts +3 -3
- package/types/components/Search/SearchOneLine.d.ts +65 -0
- package/types/components/Search/SearchSuffixIcon.d.ts +24 -0
- package/types/components/Search/SearchTwoLine.d.ts +36 -0
- package/types/components/Search/StyledSearch.d.ts +49 -0
- package/types/components/Search/index.d.ts +10 -0
- package/types/components/Search/utils.d.ts +8 -0
- package/types/components/SectionHeading/StyledHeading.d.ts +3 -3
- package/types/components/Select/StyledSelect.d.ts +3 -3
- package/types/components/Skeleton/StyledSkeleton.d.ts +2 -2
- package/types/components/Spinner/StyledSpinner.d.ts +4 -4
- package/types/components/Success/StyledSuccess.d.ts +9 -9
- package/types/components/Swipeable/StyledSwipeable.d.ts +1 -1
- package/types/components/Switch/SelectorSwitch/StyledSelectorSwitch.d.ts +4 -4
- package/types/components/Switch/StyledSwitch.d.ts +2 -2
- package/types/components/Tabs/StyledScrollableTabs.d.ts +8 -8
- package/types/components/Tabs/StyledTabs.d.ts +7 -7
- package/types/components/Tag/StyledTag.d.ts +2 -2
- package/types/components/TextInput/StyledTextInput.d.ts +13 -13
- package/types/components/TimePicker/StyledTimePicker.d.ts +1 -1
- package/types/components/Toast/StyledToast.d.ts +6 -6
- package/types/components/Toolbar/StyledToolbar.d.ts +5 -5
- package/types/components/Typography/Body/StyledBody.d.ts +1 -1
- package/types/components/Typography/Caption/StyledCaption.d.ts +1 -1
- package/types/components/Typography/Label/StyledLabel.d.ts +1 -1
- package/types/components/Typography/Text/StyledText.d.ts +1 -1
- package/types/components/Typography/Title/StyledTitle.d.ts +1 -1
- package/types/theme/components/compoundSearch.d.ts +36 -0
- package/types/theme/components/mapPin.d.ts +40 -0
- package/types/theme/components/search.d.ts +64 -0
- package/types/theme/global/colors/swagLight.d.ts +3 -0
- package/types/theme/global/colors/swagLightGlobal.d.ts +3 -0
- package/types/theme/global/colors/swagLightJobs.d.ts +47 -0
package/tsconfig.json
CHANGED
|
@@ -12,8 +12,7 @@
|
|
|
12
12
|
"target": "esnext",
|
|
13
13
|
"types": ["jest"],
|
|
14
14
|
"paths": {
|
|
15
|
-
"react": ["./node_modules/@types/react"]
|
|
16
|
-
"react-native": ["./node_modules/react-native/types"],
|
|
15
|
+
"react": ["./node_modules/@types/react"]
|
|
17
16
|
},
|
|
18
17
|
"allowJs": true,
|
|
19
18
|
"esModuleInterop": true,
|
|
@@ -21,7 +20,7 @@
|
|
|
21
20
|
"moduleResolution": "node",
|
|
22
21
|
"noEmit": true,
|
|
23
22
|
"resolveJsonModule": true,
|
|
24
|
-
"skipLibCheck": true
|
|
23
|
+
"skipLibCheck": true
|
|
25
24
|
},
|
|
26
25
|
"include": ["src"],
|
|
27
26
|
"exclude": ["node_modules", "babel.config.js", "metro.config.js", "jest.config.js"]
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"declaration": false,
|
|
4
|
+
"jsx": "react-native",
|
|
5
|
+
"noFallthroughCasesInSwitch": true,
|
|
6
|
+
"noImplicitAny": true,
|
|
7
|
+
"noUnusedLocals": true,
|
|
8
|
+
"noUnusedParameters": true,
|
|
9
|
+
"strict": true,
|
|
10
|
+
"strictNullChecks": true,
|
|
11
|
+
"target": "esnext",
|
|
12
|
+
"types": ["jest"],
|
|
13
|
+
"paths": {
|
|
14
|
+
"react": ["./node_modules/@types/react"],
|
|
15
|
+
"react-native": ["./node_modules/react-native/types"]
|
|
16
|
+
},
|
|
17
|
+
"allowJs": true,
|
|
18
|
+
"esModuleInterop": true,
|
|
19
|
+
"lib": ["DOM", "ESNext"],
|
|
20
|
+
"moduleResolution": "node",
|
|
21
|
+
"noEmit": true,
|
|
22
|
+
"resolveJsonModule": true,
|
|
23
|
+
"skipLibCheck": true
|
|
24
|
+
},
|
|
25
|
+
"include": ["src"],
|
|
26
|
+
"exclude": ["node_modules", "babel.config.js", "metro.config.js", "jest.config.js"]
|
|
27
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { TouchableOpacity, View } from 'react-native';
|
|
2
2
|
export declare type Variant = 'default' | 'card';
|
|
3
3
|
export declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
4
|
-
theme?:
|
|
4
|
+
theme?: any;
|
|
5
5
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
6
6
|
}, {}, {
|
|
7
7
|
ref?: import("react").Ref<View> | undefined;
|
|
8
8
|
}>;
|
|
9
9
|
export declare const StyledItemWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
10
|
-
theme?:
|
|
10
|
+
theme?: any;
|
|
11
11
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
12
12
|
} & {
|
|
13
13
|
themeVariant: Variant;
|
|
@@ -15,17 +15,17 @@ export declare const StyledItemWrapper: import("@emotion/native").StyledComponen
|
|
|
15
15
|
ref?: import("react").Ref<View> | undefined;
|
|
16
16
|
}>;
|
|
17
17
|
export declare const StyledHeaderWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
|
|
18
|
-
theme?:
|
|
18
|
+
theme?: any;
|
|
19
19
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
20
20
|
}, {}, {
|
|
21
21
|
ref?: import("react").Ref<TouchableOpacity> | undefined;
|
|
22
22
|
}>;
|
|
23
23
|
export declare const StyledCollapse: import("@emotion/native").StyledComponent<import("../Collapse").CollapseProps & {
|
|
24
|
-
theme?:
|
|
24
|
+
theme?: any;
|
|
25
25
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
26
26
|
}, {}, {}>;
|
|
27
27
|
export declare const Spacer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
28
|
-
theme?:
|
|
28
|
+
theme?: any;
|
|
29
29
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
30
30
|
}, {}, {
|
|
31
31
|
ref?: import("react").Ref<View> | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { TouchableOpacity, View } from 'react-native';
|
|
2
2
|
import type { ViewProps } from 'react-native';
|
|
3
3
|
declare const Container: import("@emotion/native").StyledComponent<ViewProps & {
|
|
4
|
-
theme?:
|
|
4
|
+
theme?: any;
|
|
5
5
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
6
6
|
} & {
|
|
7
7
|
themeVariant: 'rounded' | 'unrounded';
|
|
@@ -10,19 +10,19 @@ declare const Container: import("@emotion/native").StyledComponent<ViewProps & {
|
|
|
10
10
|
ref?: import("react").Ref<View> | undefined;
|
|
11
11
|
}>;
|
|
12
12
|
declare const IconContainer: import("@emotion/native").StyledComponent<ViewProps & {
|
|
13
|
-
theme?:
|
|
13
|
+
theme?: any;
|
|
14
14
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
15
15
|
}, {}, {
|
|
16
16
|
ref?: import("react").Ref<View> | undefined;
|
|
17
17
|
}>;
|
|
18
18
|
declare const TextContainer: import("@emotion/native").StyledComponent<ViewProps & {
|
|
19
|
-
theme?:
|
|
19
|
+
theme?: any;
|
|
20
20
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
21
21
|
}, {}, {
|
|
22
22
|
ref?: import("react").Ref<View> | undefined;
|
|
23
23
|
}>;
|
|
24
24
|
declare const ContentContainer: import("@emotion/native").StyledComponent<ViewProps & {
|
|
25
|
-
theme?:
|
|
25
|
+
theme?: any;
|
|
26
26
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
27
27
|
} & {
|
|
28
28
|
showDivider: boolean;
|
|
@@ -30,7 +30,7 @@ declare const ContentContainer: import("@emotion/native").StyledComponent<ViewPr
|
|
|
30
30
|
ref?: import("react").Ref<View> | undefined;
|
|
31
31
|
}>;
|
|
32
32
|
declare const CTAWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
|
|
33
|
-
theme?:
|
|
33
|
+
theme?: any;
|
|
34
34
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
35
35
|
}, {}, {
|
|
36
36
|
ref?: import("react").Ref<TouchableOpacity> | undefined;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { TouchableOpacity, View } from 'react-native';
|
|
2
2
|
declare const StyledContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
3
|
-
theme?:
|
|
3
|
+
theme?: any;
|
|
4
4
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
5
|
}, {}, {
|
|
6
6
|
ref?: import("react").Ref<View> | undefined;
|
|
7
7
|
}>;
|
|
8
8
|
declare const StyledContentContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
9
|
-
theme?:
|
|
9
|
+
theme?: any;
|
|
10
10
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
11
11
|
} & {
|
|
12
12
|
themeHighlighted: boolean;
|
|
@@ -14,13 +14,13 @@ declare const StyledContentContainer: import("@emotion/native").StyledComponent<
|
|
|
14
14
|
ref?: import("react").Ref<View> | undefined;
|
|
15
15
|
}>;
|
|
16
16
|
declare const StyledTextContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
17
|
-
theme?:
|
|
17
|
+
theme?: any;
|
|
18
18
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
19
19
|
}, {}, {
|
|
20
20
|
ref?: import("react").Ref<View> | undefined;
|
|
21
21
|
}>;
|
|
22
22
|
declare const StyledCTAWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
|
|
23
|
-
theme?:
|
|
23
|
+
theme?: any;
|
|
24
24
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
25
25
|
}, {}, {
|
|
26
26
|
ref?: import("react").Ref<TouchableOpacity> | undefined;
|
|
@@ -2,7 +2,7 @@ import { View } from 'react-native';
|
|
|
2
2
|
import { AvatarProps } from '../Avatar';
|
|
3
3
|
declare type ThemeVariant = 'horizontal' | 'vertical';
|
|
4
4
|
export declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
5
|
-
theme?:
|
|
5
|
+
theme?: any;
|
|
6
6
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
7
7
|
} & {
|
|
8
8
|
themeSize: Required<AvatarProps>['size'];
|
|
@@ -13,14 +13,14 @@ export declare const StyledWrapper: import("@emotion/native").StyledComponent<im
|
|
|
13
13
|
ref?: import("react").Ref<View> | undefined;
|
|
14
14
|
}>;
|
|
15
15
|
export declare const StyledAvatar: import("@emotion/native").StyledComponent<AvatarProps & {
|
|
16
|
-
theme?:
|
|
16
|
+
theme?: any;
|
|
17
17
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
18
18
|
} & {
|
|
19
19
|
themeIndex: number;
|
|
20
20
|
themeVariant: ThemeVariant;
|
|
21
21
|
}, {}, {}>;
|
|
22
22
|
export declare const StyledSurplusContainer: import("@emotion/native").StyledComponent<import("../../Box").BoxProps & {
|
|
23
|
-
theme?:
|
|
23
|
+
theme?: any;
|
|
24
24
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
25
25
|
} & {
|
|
26
26
|
themeIndex: number;
|
|
@@ -3,7 +3,7 @@ import { TextProps } from '../Typography/Text';
|
|
|
3
3
|
declare type ThemeSize = 'small' | 'medium' | 'large' | 'xlarge' | 'xxlarge' | 'xxxlarge' | 'xxxxlarge' | 'xxxxxlarge';
|
|
4
4
|
declare type ThemeIntent = 'primary' | 'info' | 'danger' | 'success' | 'warning';
|
|
5
5
|
declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
|
|
6
|
-
theme?:
|
|
6
|
+
theme?: any;
|
|
7
7
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
8
8
|
} & {
|
|
9
9
|
themeSize: ThemeSize;
|
|
@@ -12,19 +12,19 @@ declare const StyledWrapper: import("@emotion/native").StyledComponent<import("r
|
|
|
12
12
|
ref?: import("react").Ref<TouchableOpacity> | undefined;
|
|
13
13
|
}>;
|
|
14
14
|
declare const StyledTextWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
15
|
-
theme?:
|
|
15
|
+
theme?: any;
|
|
16
16
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
17
17
|
}, {}, {
|
|
18
18
|
ref?: import("react").Ref<View> | undefined;
|
|
19
19
|
}>;
|
|
20
20
|
declare const StyledText: import("@emotion/native").StyledComponent<TextProps & {
|
|
21
|
-
theme?:
|
|
21
|
+
theme?: any;
|
|
22
22
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
23
23
|
} & {
|
|
24
24
|
themeSize: ThemeSize;
|
|
25
25
|
}, {}, {}>;
|
|
26
26
|
declare const StyledImage: import("@emotion/native").StyledComponent<import("react-native").ImageProps & {
|
|
27
|
-
theme?:
|
|
27
|
+
theme?: any;
|
|
28
28
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
29
29
|
} & {
|
|
30
30
|
themeSize: ThemeSize;
|
|
@@ -2,18 +2,18 @@ import { Animated } from 'react-native';
|
|
|
2
2
|
declare type ThemeIntent = 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'archived';
|
|
3
3
|
declare type ThemePadding = 'narrowContent' | 'wideContent';
|
|
4
4
|
declare const StyledView: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<import("react-native").View>> & {
|
|
5
|
-
theme?:
|
|
5
|
+
theme?: any;
|
|
6
6
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
7
7
|
} & {
|
|
8
8
|
themeIntent: ThemeIntent;
|
|
9
9
|
themePadding: ThemePadding;
|
|
10
10
|
}, {}, {}>;
|
|
11
11
|
declare const StyledText: import("@emotion/native").StyledComponent<import("../Typography/Caption").CaptionProps & {
|
|
12
|
-
theme?:
|
|
12
|
+
theme?: any;
|
|
13
13
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
14
14
|
}, {}, {}>;
|
|
15
15
|
declare const StyledStatus: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<import("react-native").View>> & {
|
|
16
|
-
theme?:
|
|
16
|
+
theme?: any;
|
|
17
17
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
18
18
|
} & {
|
|
19
19
|
themeIntent: ThemeIntent;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Animated, StyleProp, ViewStyle } from 'react-native';
|
|
2
|
+
import { IconName } from '../Icon';
|
|
3
|
+
interface BaseBadgeProps extends React.ComponentProps<typeof Animated.View> {
|
|
4
|
+
/**
|
|
5
|
+
* Whether the Badge is visible.
|
|
6
|
+
*/
|
|
7
|
+
visible?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* The maximum number displayed on the badge. If number exceeds this value, `${max}+` are displayed instead. (Only applied when content is number.)
|
|
10
|
+
*/
|
|
11
|
+
max?: number;
|
|
12
|
+
/**
|
|
13
|
+
* Visual intent color to apply to Badge.
|
|
14
|
+
*/
|
|
15
|
+
intent?: 'primary' | 'success' | 'warning' | 'danger' | 'info' | 'archived';
|
|
16
|
+
/**
|
|
17
|
+
* Additional style.
|
|
18
|
+
*/
|
|
19
|
+
style?: StyleProp<ViewStyle>;
|
|
20
|
+
/**
|
|
21
|
+
* Testing id of the component.
|
|
22
|
+
*/
|
|
23
|
+
testID?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Size of the badge
|
|
26
|
+
*/
|
|
27
|
+
size?: 'medium' | 'small';
|
|
28
|
+
/**
|
|
29
|
+
* Variant of the badge
|
|
30
|
+
*/
|
|
31
|
+
variant?: 'filled' | 'outlined';
|
|
32
|
+
}
|
|
33
|
+
export interface BasicBadgeProps extends BaseBadgeProps {
|
|
34
|
+
/**
|
|
35
|
+
* Content of the Badge.
|
|
36
|
+
*/
|
|
37
|
+
content: string | number;
|
|
38
|
+
/**
|
|
39
|
+
* Use Icon as the content of the Badge.
|
|
40
|
+
*/
|
|
41
|
+
icon?: never;
|
|
42
|
+
}
|
|
43
|
+
export interface IconBadgeProps extends BaseBadgeProps {
|
|
44
|
+
/**
|
|
45
|
+
* Content of the Badge.
|
|
46
|
+
*/
|
|
47
|
+
content?: never;
|
|
48
|
+
/**
|
|
49
|
+
* Use Icon as the content of the Badge.
|
|
50
|
+
*/
|
|
51
|
+
icon: IconName;
|
|
52
|
+
}
|
|
53
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { View } from 'react-native';
|
|
2
2
|
declare const BottomNavigationTab: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
3
|
-
theme?:
|
|
3
|
+
theme?: any;
|
|
4
4
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
5
|
} & {
|
|
6
6
|
themeVisibility?: boolean | undefined;
|
|
@@ -8,19 +8,19 @@ declare const BottomNavigationTab: import("@emotion/native").StyledComponent<imp
|
|
|
8
8
|
ref?: import("react").Ref<View> | undefined;
|
|
9
9
|
}>;
|
|
10
10
|
declare const BottomNavigationContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
11
|
-
theme?:
|
|
11
|
+
theme?: any;
|
|
12
12
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
13
13
|
}, {}, {
|
|
14
14
|
ref?: import("react").Ref<View> | undefined;
|
|
15
15
|
}>;
|
|
16
16
|
declare const ContentWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
17
|
-
theme?:
|
|
17
|
+
theme?: any;
|
|
18
18
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
19
19
|
}, {}, {
|
|
20
20
|
ref?: import("react").Ref<View> | undefined;
|
|
21
21
|
}>;
|
|
22
22
|
declare const BottomBarWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
23
|
-
theme?:
|
|
23
|
+
theme?: any;
|
|
24
24
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
25
25
|
} & {
|
|
26
26
|
themeInsets: {
|
|
@@ -33,19 +33,19 @@ declare const BottomBarWrapper: import("@emotion/native").StyledComponent<import
|
|
|
33
33
|
ref?: import("react").Ref<View> | undefined;
|
|
34
34
|
}>;
|
|
35
35
|
declare const BottomBar: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
36
|
-
theme?:
|
|
36
|
+
theme?: any;
|
|
37
37
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
38
38
|
}, {}, {
|
|
39
39
|
ref?: import("react").Ref<View> | undefined;
|
|
40
40
|
}>;
|
|
41
41
|
declare const BottomBarItem: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
42
|
-
theme?:
|
|
42
|
+
theme?: any;
|
|
43
43
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
44
44
|
}, {}, {
|
|
45
45
|
ref?: import("react").Ref<View> | undefined;
|
|
46
46
|
}>;
|
|
47
47
|
declare const StyledBottomBarText: import("@emotion/native").StyledComponent<import("../Typography/Caption").CaptionProps & {
|
|
48
|
-
theme?:
|
|
48
|
+
theme?: any;
|
|
49
49
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
50
50
|
}, {}, {}>;
|
|
51
51
|
export { BottomBar, BottomBarItem, BottomNavigationTab, BottomNavigationContainer, BottomBarWrapper, ContentWrapper, StyledBottomBarText, };
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import { Animated, KeyboardAvoidingView, KeyboardAvoidingViewProps, SafeAreaView, View } from 'react-native';
|
|
2
2
|
import type { ViewProps } from 'react-native';
|
|
3
3
|
declare const StyledWrapper: import("@emotion/native").StyledComponent<ViewProps & {
|
|
4
|
-
theme?:
|
|
4
|
+
theme?: any;
|
|
5
5
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
6
6
|
}, {}, {
|
|
7
7
|
ref?: import("react").Ref<View> | undefined;
|
|
8
8
|
}>;
|
|
9
9
|
declare const StyledKeyboardAvoidingView: import("@emotion/native").StyledComponent<KeyboardAvoidingViewProps & {
|
|
10
|
-
theme?:
|
|
10
|
+
theme?: any;
|
|
11
11
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
12
12
|
}, {}, {
|
|
13
13
|
ref?: import("react").Ref<KeyboardAvoidingView> | undefined;
|
|
14
14
|
}>;
|
|
15
15
|
declare const StyledBottomSheet: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<SafeAreaView>> & {
|
|
16
|
-
theme?:
|
|
16
|
+
theme?: any;
|
|
17
17
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
18
18
|
}, {}, {}>;
|
|
19
19
|
declare const StyledBackdrop: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").PressableProps & import("react").RefAttributes<View>> & {
|
|
20
|
-
theme?:
|
|
20
|
+
theme?: any;
|
|
21
21
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
22
22
|
}, {}, {}>;
|
|
23
23
|
declare const StyledHeaderWrapper: import("@emotion/native").StyledComponent<ViewProps & {
|
|
24
|
-
theme?:
|
|
24
|
+
theme?: any;
|
|
25
25
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
26
26
|
}, {}, {
|
|
27
27
|
ref?: import("react").Ref<View> | undefined;
|
|
28
28
|
}>;
|
|
29
29
|
declare const StyledHeader: import("@emotion/native").StyledComponent<ViewProps & {
|
|
30
|
-
theme?:
|
|
30
|
+
theme?: any;
|
|
31
31
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
32
32
|
}, {}, {
|
|
33
33
|
ref?: import("react").Ref<View> | undefined;
|
|
34
34
|
}>;
|
|
35
35
|
declare const StyledFooter: import("@emotion/native").StyledComponent<ViewProps & {
|
|
36
|
-
theme?:
|
|
36
|
+
theme?: any;
|
|
37
37
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
38
38
|
}, {}, {
|
|
39
39
|
ref?: import("react").Ref<View> | undefined;
|
|
40
40
|
}>;
|
|
41
41
|
declare const StyledIconWrapper: import("@emotion/native").StyledComponent<ViewProps & {
|
|
42
|
-
theme?:
|
|
42
|
+
theme?: any;
|
|
43
43
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
44
44
|
}, {}, {
|
|
45
45
|
ref?: import("react").Ref<View> | undefined;
|
|
@@ -7,7 +7,7 @@ export declare const getThemeValue: (theme: Theme, key: keyof StyleProps, props:
|
|
|
7
7
|
[x: string]: number;
|
|
8
8
|
} | undefined;
|
|
9
9
|
declare const StyledBox: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
10
|
-
theme?:
|
|
10
|
+
theme?: any;
|
|
11
11
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
12
12
|
} & StyleProps & FlexStyleProps, {}, {
|
|
13
13
|
ref?: import("react").Ref<View> | undefined;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
import type { Theme } from '@emotion/react';
|
|
2
1
|
import type { ViewProps } from 'react-native';
|
|
3
2
|
import { View } from 'react-native';
|
|
4
3
|
declare type ThemeVariant = 'basic-transparent' | 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger' | 'text-primary' | 'text-secondary' | 'text-danger';
|
|
5
4
|
declare const StyledLoadingIndicatorWrapper: import("@emotion/native").StyledComponent<ViewProps & {
|
|
6
|
-
theme?:
|
|
5
|
+
theme?: any;
|
|
7
6
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
8
7
|
}, {}, {
|
|
9
8
|
ref?: import("react").Ref<View> | undefined;
|
|
10
9
|
}>;
|
|
11
10
|
declare const StyledLoadingDot: import("@emotion/native").StyledComponent<ViewProps & {
|
|
12
|
-
theme?:
|
|
11
|
+
theme?: any;
|
|
13
12
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
14
13
|
} & {
|
|
15
14
|
size?: number | undefined;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { TouchableHighlight, View } from 'react-native';
|
|
2
|
-
import type { Theme } from '@emotion/react';
|
|
3
2
|
declare type Intent = 'primary' | 'secondary' | 'danger';
|
|
4
3
|
declare type ThemeVariant = 'filled-primary' | 'filled-secondary' | 'filled-danger' | 'outlined-primary' | 'outlined-secondary' | 'outlined-danger' | 'text-primary' | 'text-secondary' | 'text-danger';
|
|
5
4
|
declare const StyledButtonContainer: import("@emotion/native").StyledComponent<import("react-native").TouchableHighlightProps & {
|
|
6
|
-
theme?:
|
|
5
|
+
theme?: any;
|
|
7
6
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
8
7
|
} & {
|
|
9
8
|
disabled?: boolean | undefined;
|
|
@@ -13,21 +12,21 @@ declare const StyledButtonContainer: import("@emotion/native").StyledComponent<i
|
|
|
13
12
|
ref?: import("react").Ref<TouchableHighlight> | undefined;
|
|
14
13
|
}>;
|
|
15
14
|
declare const StyledButtonText: import("@emotion/native").StyledComponent<import("../Typography/Title").TitleProps & {
|
|
16
|
-
theme?:
|
|
15
|
+
theme?: any;
|
|
17
16
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
18
17
|
} & {
|
|
19
18
|
disabled?: boolean | undefined;
|
|
20
19
|
themeButtonVariant: ThemeVariant;
|
|
21
20
|
}, {}, {}>;
|
|
22
21
|
declare const StyledButtonTitleOfVariantText: import("@emotion/native").StyledComponent<import("../Typography/Body").BodyProps & {
|
|
23
|
-
theme?:
|
|
22
|
+
theme?: any;
|
|
24
23
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
25
24
|
} & {
|
|
26
25
|
disabled?: boolean | undefined;
|
|
27
26
|
themeButtonVariant: 'text-primary' | 'text-secondary' | 'text-danger';
|
|
28
27
|
}, {}, {}>;
|
|
29
28
|
declare const StyledButtonIconWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
30
|
-
theme?:
|
|
29
|
+
theme?: any;
|
|
31
30
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
32
31
|
} & {
|
|
33
32
|
themePosition: 'left' | 'right';
|
|
@@ -35,7 +34,7 @@ declare const StyledButtonIconWrapper: import("@emotion/native").StyledComponent
|
|
|
35
34
|
ref?: import("react").Ref<View> | undefined;
|
|
36
35
|
}>;
|
|
37
36
|
declare const StyledButtonIcon: import("@emotion/native").StyledComponent<import("../Icon").IconProps & {
|
|
38
|
-
theme?:
|
|
37
|
+
theme?: any;
|
|
39
38
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
40
39
|
} & {
|
|
41
40
|
disabled?: boolean | undefined;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { View, TouchableOpacity } from 'react-native';
|
|
2
2
|
export declare const ButtonContainer: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
|
|
3
|
-
theme?:
|
|
3
|
+
theme?: any;
|
|
4
4
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
5
|
}, {}, {
|
|
6
6
|
ref?: import("react").Ref<TouchableOpacity> | undefined;
|
|
7
7
|
}>;
|
|
8
8
|
export declare const IconWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
9
|
-
theme?:
|
|
9
|
+
theme?: any;
|
|
10
10
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
11
11
|
}, {}, {
|
|
12
12
|
ref?: import("react").Ref<View> | undefined;
|
|
13
13
|
}>;
|
|
14
14
|
export declare const ButtonText: import("@emotion/native").StyledComponent<import("../../Typography/Body").BodyProps & {
|
|
15
|
-
theme?:
|
|
15
|
+
theme?: any;
|
|
16
16
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
17
17
|
}, {}, {}>;
|
|
@@ -1,19 +1,19 @@
|
|
|
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?:
|
|
4
|
+
theme?: any;
|
|
5
5
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
6
6
|
}, {}, {
|
|
7
7
|
ref?: import("react").Ref<View> | undefined;
|
|
8
8
|
}>;
|
|
9
9
|
declare const StyledCalendarHeader: import("@emotion/native").StyledComponent<ViewProps & {
|
|
10
|
-
theme?:
|
|
10
|
+
theme?: any;
|
|
11
11
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
12
12
|
}, {}, {
|
|
13
13
|
ref?: import("react").Ref<View> | undefined;
|
|
14
14
|
}>;
|
|
15
15
|
declare const StyledCalendarDayNameCell: import("@emotion/native").StyledComponent<ViewProps & {
|
|
16
|
-
theme?:
|
|
16
|
+
theme?: any;
|
|
17
17
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
18
18
|
} & {
|
|
19
19
|
themeItemWidth?: number | undefined;
|
|
@@ -21,7 +21,7 @@ declare const StyledCalendarDayNameCell: import("@emotion/native").StyledCompone
|
|
|
21
21
|
ref?: import("react").Ref<View> | undefined;
|
|
22
22
|
}>;
|
|
23
23
|
declare const StyledCalendarCell: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
|
|
24
|
-
theme?:
|
|
24
|
+
theme?: any;
|
|
25
25
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
26
26
|
} & {
|
|
27
27
|
variant?: "selected" | "default" | "current" | undefined;
|
|
@@ -30,13 +30,13 @@ declare const StyledCalendarCell: import("@emotion/native").StyledComponent<impo
|
|
|
30
30
|
ref?: import("react").Ref<TouchableOpacity> | undefined;
|
|
31
31
|
}>;
|
|
32
32
|
declare const StyledCalendarRow: import("@emotion/native").StyledComponent<ViewProps & {
|
|
33
|
-
theme?:
|
|
33
|
+
theme?: any;
|
|
34
34
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
35
35
|
}, {}, {
|
|
36
36
|
ref?: import("react").Ref<View> | undefined;
|
|
37
37
|
}>;
|
|
38
38
|
declare const StyledCalendarRowItem: import("@emotion/native").StyledComponent<ViewProps & {
|
|
39
|
-
theme?:
|
|
39
|
+
theme?: any;
|
|
40
40
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
41
41
|
} & {
|
|
42
42
|
themeItemWidth?: number | undefined;
|
|
@@ -44,7 +44,7 @@ declare const StyledCalendarRowItem: import("@emotion/native").StyledComponent<V
|
|
|
44
44
|
ref?: import("react").Ref<View> | undefined;
|
|
45
45
|
}>;
|
|
46
46
|
declare const StyledDisabledCalendarRowItem: import("@emotion/native").StyledComponent<ViewProps & {
|
|
47
|
-
theme?:
|
|
47
|
+
theme?: any;
|
|
48
48
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
49
49
|
} & {
|
|
50
50
|
themeItemWidth?: number | undefined;
|
|
@@ -52,7 +52,7 @@ declare const StyledDisabledCalendarRowItem: import("@emotion/native").StyledCom
|
|
|
52
52
|
ref?: import("react").Ref<View> | undefined;
|
|
53
53
|
}>;
|
|
54
54
|
declare const StyledMark: import("@emotion/native").StyledComponent<ViewProps & {
|
|
55
|
-
theme?:
|
|
55
|
+
theme?: any;
|
|
56
56
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
57
57
|
} & {
|
|
58
58
|
variant: 'primary' | 'inverted';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { View } from 'react-native';
|
|
2
2
|
declare const StyledDataCard: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
3
|
-
theme?:
|
|
3
|
+
theme?: any;
|
|
4
4
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
5
|
}, {}, {
|
|
6
6
|
ref?: import("react").Ref<View> | undefined;
|
|
7
7
|
}>;
|
|
8
8
|
declare const Indicator: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
9
|
-
theme?:
|
|
9
|
+
theme?: any;
|
|
10
10
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
11
11
|
} & {
|
|
12
12
|
themeIntent: 'success' | 'info' | 'warning' | 'danger' | 'archived' | 'primary';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { View } from 'react-native';
|
|
2
2
|
declare const StyledCard: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
3
|
-
theme?:
|
|
3
|
+
theme?: any;
|
|
4
4
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
5
5
|
} & {
|
|
6
6
|
themeIntent?: "primary" | "success" | "warning" | "danger" | "archived" | undefined;
|
|
@@ -2,21 +2,21 @@ import { View, ViewProps } from 'react-native';
|
|
|
2
2
|
import { CardProps } from '../Card';
|
|
3
3
|
import { PageControlProps } from '../PageControl';
|
|
4
4
|
declare const StyledPageControl: import("@emotion/native").StyledComponent<PageControlProps & {
|
|
5
|
-
theme?:
|
|
5
|
+
theme?: any;
|
|
6
6
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
7
7
|
}, {}, {}>;
|
|
8
8
|
declare const StyledWrapper: import("@emotion/native").StyledComponent<ViewProps & {
|
|
9
|
-
theme?:
|
|
9
|
+
theme?: any;
|
|
10
10
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
11
11
|
}, {}, {
|
|
12
12
|
ref?: import("react").Ref<View> | undefined;
|
|
13
13
|
}>;
|
|
14
14
|
declare const StyledCard: import("@emotion/native").StyledComponent<CardProps & {
|
|
15
|
-
theme?:
|
|
15
|
+
theme?: any;
|
|
16
16
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
17
17
|
}, {}, {}>;
|
|
18
18
|
declare const StyledItemWrapper: import("@emotion/native").StyledComponent<ViewProps & {
|
|
19
|
-
theme?:
|
|
19
|
+
theme?: any;
|
|
20
20
|
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
21
21
|
}, {}, {
|
|
22
22
|
ref?: import("react").Ref<View> | undefined;
|