@hero-design/rn 7.14.3-alpha.2 → 7.14.3-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/index.js +15483 -6304
- package/lib/assets/fonts/hero-icons.ttf +0 -0
- package/lib/index.js +15486 -6303
- package/package.json +1 -2
- package/types/components/Accordion/index.d.ts +2 -5
- package/types/components/Badge/StyledBadge.d.ts +27 -0
- package/types/components/BottomSheet/StyledBottomSheet.d.ts +46 -0
- package/types/components/Calendar/CalendarRowItem.d.ts +10 -0
- package/types/components/Calendar/StyledCalendar.d.ts +54 -0
- package/types/components/Calendar/__tests__/CalendarRowItem.spec.d.ts +1 -0
- package/types/components/Calendar/__tests__/helper.spec.d.ts +1 -0
- package/types/components/Calendar/__tests__/index.spec.d.ts +1 -0
- package/types/components/Calendar/helpers.d.ts +3 -0
- package/types/components/Calendar/index.d.ts +40 -0
- package/types/components/Collapse/StyledCollapse.d.ts +25 -0
- package/types/components/ContentNavigator/index.d.ts +5 -1
- package/types/components/DatePicker/DatePickerAndroid.d.ts +1 -1
- package/types/components/DatePicker/DatePickerIOS.d.ts +1 -1
- package/types/components/DatePicker/types.d.ts +4 -0
- package/types/components/Drawer/StyledDrawer.d.ts +24 -0
- package/types/components/Empty/StyledEmpty.d.ts +31 -0
- package/types/components/Empty/__tests__/index.spec.d.ts +1 -0
- package/types/components/Empty/index.d.ts +26 -0
- package/types/components/FAB/ActionGroup/StyledActionGroup.d.ts +29 -0
- package/types/components/Icon/IconList.d.ts +1 -1
- package/types/components/Icon/utils.d.ts +1 -1
- package/types/components/Progress/StyledProgressBar.d.ts +17 -0
- package/types/components/RichTextEditor/EditorEvent.d.ts +3 -0
- package/types/components/RichTextEditor/EditorToolbar.d.ts +17 -0
- package/types/components/RichTextEditor/MentionList.d.ts +12 -0
- package/types/components/RichTextEditor/RichTextEditor.d.ts +65 -0
- package/types/components/RichTextEditor/StyledRichTextEditor.d.ts +16 -0
- package/types/components/RichTextEditor/StyledToolbar.d.ts +21 -0
- package/types/components/RichTextEditor/__tests__/EditorToolbar.spec.d.ts +1 -0
- package/types/components/RichTextEditor/__tests__/MentionList.spec.d.ts +1 -0
- package/types/components/RichTextEditor/__tests__/RichTextEditor.spec.d.ts +1 -0
- package/types/components/RichTextEditor/constants.d.ts +19 -0
- package/types/components/RichTextEditor/index.d.ts +5 -0
- package/types/components/RichTextEditor/utils/events.d.ts +8 -0
- package/types/components/RichTextEditor/utils/rnWebView.d.ts +7 -0
- package/types/components/SectionHeading/index.d.ts +2 -2
- package/types/components/Select/MultiSelect/OptionList.d.ts +1 -1
- package/types/components/Select/MultiSelect/index.d.ts +1 -1
- package/types/components/Select/SingleSelect/OptionList.d.ts +1 -1
- package/types/components/Select/SingleSelect/index.d.ts +1 -1
- package/types/components/Select/StyledOptionList.d.ts +1 -1
- package/types/components/Select/index.d.ts +4 -2
- package/types/components/Select/types.d.ts +3 -2
- package/types/components/Switch/StyledSwitch.d.ts +36 -0
- package/types/components/Tabs/StyledScrollableTabs.d.ts +60 -0
- package/types/components/Tabs/StyledTabs.d.ts +54 -0
- package/types/components/TimePicker/TimePickerAndroid.d.ts +1 -1
- package/types/components/TimePicker/TimePickerIOS.d.ts +1 -1
- package/types/components/TimePicker/types.d.ts +4 -0
- package/types/components/Toast/StyledToast.d.ts +45 -0
- package/types/components/Typography/Text/StyledText.d.ts +1 -1
- package/types/components/Typography/Text/index.d.ts +1 -1
- package/types/index.d.ts +4 -1
- package/types/theme/components/calendar.d.ts +26 -0
- package/types/theme/components/empty.d.ts +28 -0
- package/types/theme/components/richTextEditor.d.ts +26 -0
- package/types/theme/components/typography.d.ts +1 -0
- package/types/theme/index.d.ts +6 -0
- package/types/types.d.ts +2 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { View } from 'react-native';
|
|
2
|
+
import { WebView } from 'react-native-webview';
|
|
3
|
+
export declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any> | undefined;
|
|
6
|
+
}, {}, {
|
|
7
|
+
ref?: import("react").Ref<View> | undefined;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const StyledWebView: import("@emotion/native").StyledComponent<import("react-native-webview/lib/WebViewTypes").IOSWebViewProps & import("react-native-webview/lib/WebViewTypes").AndroidWebViewProps & import("react-native-webview/lib/WebViewTypes").WindowsWebViewProps & {
|
|
10
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
+
as?: import("react").ElementType<any> | undefined;
|
|
12
|
+
} & {
|
|
13
|
+
height: number | undefined;
|
|
14
|
+
}, {}, {
|
|
15
|
+
ref?: import("react").Ref<WebView<unknown>> | undefined;
|
|
16
|
+
}>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { TouchableOpacity, View } from 'react-native';
|
|
2
|
+
export declare const StyledToolbarButton: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
} & {
|
|
6
|
+
selected: boolean;
|
|
7
|
+
}, {}, {
|
|
8
|
+
ref?: import("react").Ref<TouchableOpacity> | undefined;
|
|
9
|
+
}>;
|
|
10
|
+
export declare const StyledToolbar: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
11
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
12
|
+
as?: import("react").ElementType<any> | undefined;
|
|
13
|
+
}, {}, {
|
|
14
|
+
ref?: import("react").Ref<View> | undefined;
|
|
15
|
+
}>;
|
|
16
|
+
export declare const StyledSeparator: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
17
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
18
|
+
as?: import("react").ElementType<any> | undefined;
|
|
19
|
+
}, {}, {
|
|
20
|
+
ref?: import("react").Ref<View> | undefined;
|
|
21
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare enum ToolbarEvents {
|
|
2
|
+
Bold = "bold",
|
|
3
|
+
Italic = "italic",
|
|
4
|
+
Underline = "underline",
|
|
5
|
+
BulletedList = "bulleted-list",
|
|
6
|
+
NumberedList = "numbered-list",
|
|
7
|
+
HeadingOne = "heading-one",
|
|
8
|
+
HeadingTwo = "heading-two"
|
|
9
|
+
}
|
|
10
|
+
export declare enum ToolbarButtonName {
|
|
11
|
+
Bold = "bold",
|
|
12
|
+
Italic = "italic",
|
|
13
|
+
Underline = "underline",
|
|
14
|
+
BulletedList = "bulletedList",
|
|
15
|
+
NumberedList = "numberedList",
|
|
16
|
+
HeadingOne = "headingOne",
|
|
17
|
+
HeadingTwo = "headingTwo",
|
|
18
|
+
Seperator = "|"
|
|
19
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare const _default: import("react").ForwardRefExoticComponent<Omit<import("./RichTextEditor").RichTextEditorProps, "forwardedRef"> & import("react").RefAttributes<import("./RichTextEditor").RichTextEditorRef>> & {
|
|
2
|
+
MentionList: ({ name: eventPrefix, render }: import("./MentionList").MentionListProps) => JSX.Element | null;
|
|
3
|
+
Toolbar: ({ name, buttons, testID, }: import("./EditorToolbar").EditorToolbarProps) => JSX.Element | null;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EventEmitter } from 'events';
|
|
2
|
+
export interface Listener<T> {
|
|
3
|
+
(data: T): void;
|
|
4
|
+
}
|
|
5
|
+
export declare const off: <T>(emitter: EventEmitter, eventName: string, listener: Listener<T>) => void;
|
|
6
|
+
export declare const emit: <T>(emitter: EventEmitter, eventName: string, data: T) => boolean;
|
|
7
|
+
export declare const setMaxListeners: (emitter: EventEmitter, n: number) => void;
|
|
8
|
+
export declare const on: <T>(emitter: EventEmitter, eventName: string, listener: Listener<T>) => () => void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import WebView from 'react-native-webview';
|
|
2
|
+
export declare const requestBlurEditor: (element: WebView) => void;
|
|
3
|
+
export interface WebViewEventMessage {
|
|
4
|
+
type: string;
|
|
5
|
+
data: any;
|
|
6
|
+
}
|
|
7
|
+
export declare const postMessage: (element: WebView, message: WebViewEventMessage) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { StyleProp, ViewProps, ViewStyle } from 'react-native';
|
|
3
|
-
import { IconName } from '../Icon';
|
|
3
|
+
import { IconName, IconProps } from '../Icon';
|
|
4
4
|
export interface SectionHeadingProps extends ViewProps {
|
|
5
5
|
/**
|
|
6
6
|
* Heading text.
|
|
@@ -9,7 +9,7 @@ export interface SectionHeadingProps extends ViewProps {
|
|
|
9
9
|
/**
|
|
10
10
|
* Name of the Icon.
|
|
11
11
|
*/
|
|
12
|
-
icon?: IconName
|
|
12
|
+
icon?: IconName | ReactElement<IconProps>;
|
|
13
13
|
/**
|
|
14
14
|
* Right corner content
|
|
15
15
|
*/
|
|
@@ -5,5 +5,5 @@ interface OptionListProps<T> extends MultiSelectProps<T> {
|
|
|
5
5
|
*/
|
|
6
6
|
onPress: (value: T[]) => void;
|
|
7
7
|
}
|
|
8
|
-
declare const OptionList: <T>({ keyExtractor, loading, onEndReached, onPress, onQueryChange, options, value, }: Pick<OptionListProps<T>, "value" | "onPress" | "loading" | "options" | "keyExtractor" | "
|
|
8
|
+
declare const OptionList: <T>({ keyExtractor, loading, onEndReached, onPress, onQueryChange, options, value, }: Pick<OptionListProps<T>, "value" | "onPress" | "loading" | "options" | "keyExtractor" | "onQueryChange" | "onEndReached">) => JSX.Element;
|
|
9
9
|
export default OptionList;
|
|
@@ -13,5 +13,5 @@ export interface MultiSelectProps<T> extends SelectProps<T> {
|
|
|
13
13
|
*/
|
|
14
14
|
footerLabel: string;
|
|
15
15
|
}
|
|
16
|
-
declare function MultiSelect<T>({ footerLabel, label, loading, onConfirm, onDimiss, onEndReached, onQueryChange, options, query, style, testID, value, }: MultiSelectProps<T>): JSX.Element;
|
|
16
|
+
declare function MultiSelect<T>({ footerLabel, label, loading, onConfirm, onDimiss, onEndReached, onQueryChange, options, query, error, editable, disabled, numberOfLines, style, testID, value, }: MultiSelectProps<T>): JSX.Element;
|
|
17
17
|
export default MultiSelect;
|
|
@@ -5,5 +5,5 @@ interface OptionListProps<T> extends SingleSelectProps<T> {
|
|
|
5
5
|
*/
|
|
6
6
|
onPress: (value: T | null) => void;
|
|
7
7
|
}
|
|
8
|
-
declare const OptionList: <T>({ keyExtractor, loading, onEndReached, onPress, onQueryChange, options, value, }: Pick<OptionListProps<T>, "value" | "onPress" | "loading" | "options" | "keyExtractor" | "
|
|
8
|
+
declare const OptionList: <T>({ keyExtractor, loading, onEndReached, onPress, onQueryChange, options, value, }: Pick<OptionListProps<T>, "value" | "onPress" | "loading" | "options" | "keyExtractor" | "onQueryChange" | "onEndReached">) => JSX.Element;
|
|
9
9
|
export default OptionList;
|
|
@@ -9,5 +9,5 @@ export interface SingleSelectProps<T> extends SelectProps<T> {
|
|
|
9
9
|
*/
|
|
10
10
|
onConfirm: (value: T | null) => void;
|
|
11
11
|
}
|
|
12
|
-
declare const SingleSelect: <T>({ label, loading, onConfirm, onDimiss, onEndReached, onQueryChange, options, query, style, testID, value, }: SingleSelectProps<T>) => JSX.Element;
|
|
12
|
+
declare const SingleSelect: <T>({ label, loading, onConfirm, onDimiss, onEndReached, onQueryChange, options, query, error, editable, disabled, numberOfLines, style, testID, value, }: SingleSelectProps<T>) => JSX.Element;
|
|
13
13
|
export default SingleSelect;
|
|
@@ -13,5 +13,5 @@ export interface OptionListProps<T> extends SelectProps<T> {
|
|
|
13
13
|
*/
|
|
14
14
|
scrollIndex?: number;
|
|
15
15
|
}
|
|
16
|
-
declare const StyledOptionList: <T>({ keyExtractor, loading, onEndReached, onQueryChange, options, RenderItem, scrollIndex, }: Pick<OptionListProps<T>, "loading" | "options" | "keyExtractor" | "
|
|
16
|
+
declare const StyledOptionList: <T>({ keyExtractor, loading, onEndReached, onQueryChange, options, RenderItem, scrollIndex, }: Pick<OptionListProps<T>, "loading" | "options" | "keyExtractor" | "onQueryChange" | "onEndReached" | "scrollIndex" | "RenderItem">) => JSX.Element;
|
|
17
17
|
export default StyledOptionList;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import MultiSelect from './MultiSelect';
|
|
2
|
-
|
|
1
|
+
import MultiSelect, { MultiSelectProps } from './MultiSelect';
|
|
2
|
+
import { SingleSelectProps } from './SingleSelect';
|
|
3
|
+
declare const _default: (<T>({ label, loading, onConfirm, onDimiss, onEndReached, onQueryChange, options, query, error, editable, disabled, numberOfLines, style, testID, value, }: SingleSelectProps<T>) => JSX.Element) & {
|
|
3
4
|
Multi: typeof MultiSelect;
|
|
4
5
|
};
|
|
5
6
|
export default _default;
|
|
7
|
+
export { MultiSelectProps, SingleSelectProps };
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
2
|
+
import { TextInputProps } from '../TextInput';
|
|
2
3
|
export declare type OptionType<T> = {
|
|
3
4
|
value: T;
|
|
4
5
|
text: string;
|
|
5
6
|
key?: string;
|
|
6
7
|
};
|
|
7
|
-
export interface SelectProps<T> {
|
|
8
|
+
export interface SelectProps<T> extends Pick<TextInputProps, 'editable' | 'disabled' | 'numberOfLines' | 'error'> {
|
|
8
9
|
/**
|
|
9
10
|
* An array of options to be selected.
|
|
10
11
|
*/
|
|
@@ -23,7 +24,7 @@ export interface SelectProps<T> {
|
|
|
23
24
|
*/
|
|
24
25
|
onQueryChange?: (value: string) => void;
|
|
25
26
|
/**
|
|
26
|
-
* Event handler when selection
|
|
27
|
+
* Event handler when selection dismiss
|
|
27
28
|
*/
|
|
28
29
|
onDimiss?: () => void;
|
|
29
30
|
/**
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Animated, View } from 'react-native';
|
|
2
|
+
declare type ThemeSize = 'small' | 'medium';
|
|
3
|
+
declare const StyledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any> | undefined;
|
|
6
|
+
} & {
|
|
7
|
+
themeChecked: boolean | undefined;
|
|
8
|
+
themeSize: ThemeSize;
|
|
9
|
+
}, {}, {
|
|
10
|
+
ref?: import("react").Ref<View> | undefined;
|
|
11
|
+
}>;
|
|
12
|
+
declare const StyledDisabledWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
13
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
14
|
+
as?: import("react").ElementType<any> | undefined;
|
|
15
|
+
} & {
|
|
16
|
+
themeSize: ThemeSize;
|
|
17
|
+
}, {}, {
|
|
18
|
+
ref?: import("react").Ref<View> | undefined;
|
|
19
|
+
}>;
|
|
20
|
+
declare const StyledThumbWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
21
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
22
|
+
as?: import("react").ElementType<any> | undefined;
|
|
23
|
+
} & {
|
|
24
|
+
themeSize: ThemeSize;
|
|
25
|
+
}, {}, {
|
|
26
|
+
ref?: import("react").Ref<View> | undefined;
|
|
27
|
+
}>;
|
|
28
|
+
declare const StyledKnot: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
29
|
+
children?: import("react").ReactNode;
|
|
30
|
+
} & {
|
|
31
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
32
|
+
as?: import("react").ElementType<any> | undefined;
|
|
33
|
+
} & {
|
|
34
|
+
themeSize: ThemeSize;
|
|
35
|
+
}, {}, {}>;
|
|
36
|
+
export { StyledWrapper, StyledDisabledWrapper, StyledThumbWrapper, StyledKnot };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Animated, View } from 'react-native';
|
|
2
|
+
import PagerView from 'react-native-pager-view';
|
|
3
|
+
declare const TabScreen: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any> | undefined;
|
|
6
|
+
}, {}, {
|
|
7
|
+
ref?: import("react").Ref<View> | undefined;
|
|
8
|
+
}>;
|
|
9
|
+
declare const TabContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
10
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
+
as?: import("react").ElementType<any> | undefined;
|
|
12
|
+
}, {}, {
|
|
13
|
+
ref?: import("react").Ref<View> | undefined;
|
|
14
|
+
}>;
|
|
15
|
+
declare const ContentWrapper: import("@emotion/native").StyledComponent<import("react-native-pager-view").PagerViewProps & {
|
|
16
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
17
|
+
as?: import("react").ElementType<any> | undefined;
|
|
18
|
+
}, {}, {
|
|
19
|
+
ref?: import("react").Ref<PagerView> | undefined;
|
|
20
|
+
}>;
|
|
21
|
+
declare const HeaderTabWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
22
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
23
|
+
as?: import("react").ElementType<any> | undefined;
|
|
24
|
+
} & {
|
|
25
|
+
themeInsets: {
|
|
26
|
+
top: number;
|
|
27
|
+
right: number;
|
|
28
|
+
bottom: number;
|
|
29
|
+
left: number;
|
|
30
|
+
};
|
|
31
|
+
}, {}, {
|
|
32
|
+
ref?: import("react").Ref<View> | undefined;
|
|
33
|
+
}>;
|
|
34
|
+
declare const HeaderTabItem: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
35
|
+
children?: import("react").ReactNode;
|
|
36
|
+
} & {
|
|
37
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
38
|
+
as?: import("react").ElementType<any> | undefined;
|
|
39
|
+
}, {}, {}>;
|
|
40
|
+
declare const HeaderTabItemOutlineWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
41
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
42
|
+
as?: import("react").ElementType<any> | undefined;
|
|
43
|
+
}, {}, {
|
|
44
|
+
ref?: import("react").Ref<View> | undefined;
|
|
45
|
+
}>;
|
|
46
|
+
declare const HeaderTabItemOutline: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
47
|
+
children?: import("react").ReactNode;
|
|
48
|
+
} & {
|
|
49
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
50
|
+
as?: import("react").ElementType<any> | undefined;
|
|
51
|
+
} & {
|
|
52
|
+
themeActive: boolean;
|
|
53
|
+
}, {}, {}>;
|
|
54
|
+
declare const HeaderTabItemWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
55
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
56
|
+
as?: import("react").ElementType<any> | undefined;
|
|
57
|
+
}, {}, {
|
|
58
|
+
ref?: import("react").Ref<View> | undefined;
|
|
59
|
+
}>;
|
|
60
|
+
export { HeaderTabItem, TabScreen, TabContainer, HeaderTabWrapper, ContentWrapper, HeaderTabItemOutlineWrapper, HeaderTabItemOutline, HeaderTabItemWrapper, };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { Animated, View } from 'react-native';
|
|
2
|
+
import PagerView from 'react-native-pager-view';
|
|
3
|
+
declare const TabContainer: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
4
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
5
|
+
as?: import("react").ElementType<any> | undefined;
|
|
6
|
+
}, {}, {
|
|
7
|
+
ref?: import("react").Ref<View> | undefined;
|
|
8
|
+
}>;
|
|
9
|
+
declare const HeaderTabWrapper: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
10
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
11
|
+
as?: import("react").ElementType<any> | undefined;
|
|
12
|
+
} & {
|
|
13
|
+
themeInsets: {
|
|
14
|
+
top: number;
|
|
15
|
+
right: number;
|
|
16
|
+
bottom: number;
|
|
17
|
+
left: number;
|
|
18
|
+
};
|
|
19
|
+
}, {}, {
|
|
20
|
+
ref?: import("react").Ref<View> | undefined;
|
|
21
|
+
}>;
|
|
22
|
+
declare const HeaderTab: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
23
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
24
|
+
as?: import("react").ElementType<any> | undefined;
|
|
25
|
+
}, {}, {
|
|
26
|
+
ref?: import("react").Ref<View> | undefined;
|
|
27
|
+
}>;
|
|
28
|
+
declare const HeaderTabItem: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
29
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
30
|
+
as?: import("react").ElementType<any> | undefined;
|
|
31
|
+
}, {}, {
|
|
32
|
+
ref?: import("react").Ref<View> | undefined;
|
|
33
|
+
}>;
|
|
34
|
+
declare const ContentWrapper: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native-pager-view").PagerViewProps & import("react").RefAttributes<PagerView>> & {
|
|
35
|
+
children?: import("react").ReactNode;
|
|
36
|
+
} & {
|
|
37
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
38
|
+
as?: import("react").ElementType<any> | undefined;
|
|
39
|
+
}, {}, {}>;
|
|
40
|
+
declare const TabScreen: import("@emotion/native").StyledComponent<import("react-native").ViewProps & {
|
|
41
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
42
|
+
as?: import("react").ElementType<any> | undefined;
|
|
43
|
+
}, {}, {
|
|
44
|
+
ref?: import("react").Ref<View> | undefined;
|
|
45
|
+
}>;
|
|
46
|
+
declare const StyledIndicator: import("@emotion/native").StyledComponent<Animated.AnimatedProps<import("react-native").ViewProps & import("react").RefAttributes<View>> & {
|
|
47
|
+
children?: import("react").ReactNode;
|
|
48
|
+
} & {
|
|
49
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
50
|
+
as?: import("react").ElementType<any> | undefined;
|
|
51
|
+
} & {
|
|
52
|
+
themeWidth: number;
|
|
53
|
+
}, {}, {}>;
|
|
54
|
+
export { TabContainer, HeaderTabWrapper, HeaderTab, HeaderTabItem, ContentWrapper, TabScreen, StyledIndicator, };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TimePickerProps } from './types';
|
|
2
|
-
declare const TimePickerAndroid: ({ value, label, placeholder, onChange, displayFormat, disabled, required, error, style, testID, }: TimePickerProps) => JSX.Element;
|
|
2
|
+
declare const TimePickerAndroid: ({ value, label, placeholder, onChange, displayFormat, disabled, required, error, helpText, style, testID, }: TimePickerProps) => JSX.Element;
|
|
3
3
|
export default TimePickerAndroid;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { TimePickerProps } from './types';
|
|
2
|
-
declare const TimePickerIOS: ({ value, label, placeholder, onChange, confirmLabel, displayFormat, disabled, required, error, style, testID, }: TimePickerProps) => JSX.Element;
|
|
2
|
+
declare const TimePickerIOS: ({ value, label, placeholder, onChange, confirmLabel, displayFormat, disabled, required, error, helpText, style, testID, }: TimePickerProps) => JSX.Element;
|
|
3
3
|
export default TimePickerIOS;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Animated, TouchableOpacity, View, ViewProps } from 'react-native';
|
|
2
|
+
declare const ToastContainerWrapper: import("@emotion/native").StyledComponent<ViewProps & {
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
} & {
|
|
6
|
+
position: 'top' | 'bottom';
|
|
7
|
+
}, {}, {
|
|
8
|
+
ref?: import("react").Ref<View> | undefined;
|
|
9
|
+
}>;
|
|
10
|
+
declare const Container: import("@emotion/native").StyledComponent<Animated.AnimatedProps<ViewProps & import("react").RefAttributes<View>> & {
|
|
11
|
+
children?: import("react").ReactNode;
|
|
12
|
+
} & {
|
|
13
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
14
|
+
as?: import("react").ElementType<any> | undefined;
|
|
15
|
+
} & {
|
|
16
|
+
themeVariant: 'default' | 'round';
|
|
17
|
+
themeIntent: 'success' | 'info' | 'warning' | 'error';
|
|
18
|
+
}, {}, {}>;
|
|
19
|
+
declare const IconContainer: import("@emotion/native").StyledComponent<ViewProps & {
|
|
20
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
21
|
+
as?: import("react").ElementType<any> | undefined;
|
|
22
|
+
}, {}, {
|
|
23
|
+
ref?: import("react").Ref<View> | undefined;
|
|
24
|
+
}>;
|
|
25
|
+
declare const TextContainer: import("@emotion/native").StyledComponent<ViewProps & {
|
|
26
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
27
|
+
as?: import("react").ElementType<any> | undefined;
|
|
28
|
+
}, {}, {
|
|
29
|
+
ref?: import("react").Ref<View> | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
declare const ContentContainer: import("@emotion/native").StyledComponent<ViewProps & {
|
|
32
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
33
|
+
as?: import("react").ElementType<any> | undefined;
|
|
34
|
+
} & {
|
|
35
|
+
showDivider: boolean;
|
|
36
|
+
}, {}, {
|
|
37
|
+
ref?: import("react").Ref<View> | undefined;
|
|
38
|
+
}>;
|
|
39
|
+
declare const CTAWrapper: import("@emotion/native").StyledComponent<import("react-native").TouchableOpacityProps & {
|
|
40
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
41
|
+
as?: import("react").ElementType<any> | undefined;
|
|
42
|
+
}, {}, {
|
|
43
|
+
ref?: import("react").Ref<TouchableOpacity> | undefined;
|
|
44
|
+
}>;
|
|
45
|
+
export { ToastContainerWrapper, Container, ContentContainer, TextContainer, IconContainer, CTAWrapper, };
|
|
@@ -5,7 +5,7 @@ declare const StyledText: import("@emotion/native").StyledComponent<import("reac
|
|
|
5
5
|
} & {
|
|
6
6
|
themeFontSize: 'small' | 'medium' | 'large' | 'xlarge' | 'xxxxxlarge';
|
|
7
7
|
themeFontWeight: 'light' | 'regular' | 'semi-bold';
|
|
8
|
-
themeIntent: 'body' | 'subdued' | 'primary' | 'success' | 'info' | 'warning' | 'danger';
|
|
8
|
+
themeIntent: 'body' | 'subdued' | 'primary' | 'success' | 'info' | 'warning' | 'danger' | 'inverted';
|
|
9
9
|
}, {}, {
|
|
10
10
|
ref?: import("react").Ref<Text> | undefined;
|
|
11
11
|
}>;
|
|
@@ -16,7 +16,7 @@ export interface TextProps extends NativeTextProps {
|
|
|
16
16
|
/**
|
|
17
17
|
* Visual intent color to apply to the text.
|
|
18
18
|
*/
|
|
19
|
-
intent?: 'body' | 'subdued' | 'primary' | 'success' | 'info' | 'warning' | 'danger';
|
|
19
|
+
intent?: 'body' | 'subdued' | 'primary' | 'success' | 'info' | 'warning' | 'danger' | 'inverted';
|
|
20
20
|
/**
|
|
21
21
|
* Additional style.
|
|
22
22
|
*/
|
package/types/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import Badge from './components/Badge';
|
|
|
7
7
|
import BottomNavigation from './components/BottomNavigation';
|
|
8
8
|
import BottomSheet from './components/BottomSheet';
|
|
9
9
|
import Button from './components/Button';
|
|
10
|
+
import Calendar from './components/Calendar';
|
|
10
11
|
import Card from './components/Card';
|
|
11
12
|
import Collapse from './components/Collapse';
|
|
12
13
|
import Checkbox from './components/Checkbox';
|
|
@@ -14,6 +15,7 @@ import ContentNavigator from './components/ContentNavigator';
|
|
|
14
15
|
import DatePicker from './components/DatePicker';
|
|
15
16
|
import Divider from './components/Divider';
|
|
16
17
|
import Drawer from './components/Drawer';
|
|
18
|
+
import Empty from './components/Empty';
|
|
17
19
|
import FAB from './components/FAB';
|
|
18
20
|
import Icon from './components/Icon';
|
|
19
21
|
import List from './components/List';
|
|
@@ -31,5 +33,6 @@ import TimePicker from './components/TimePicker';
|
|
|
31
33
|
import Toast from './components/Toast';
|
|
32
34
|
import Toolbar from './components/Toolbar';
|
|
33
35
|
import Typography from './components/Typography';
|
|
34
|
-
|
|
36
|
+
import RichTextEditor from './components/RichTextEditor';
|
|
37
|
+
export { theme, getTheme, useTheme, scale, ThemeProvider, Accordion, Alert, Avatar, Badge, BottomNavigation, BottomSheet, Button, Calendar, Card, Collapse, Checkbox, ContentNavigator, DatePicker, Divider, Drawer, Empty, FAB, Icon, List, PinInput, Progress, Spinner, Radio, SectionHeading, Select, Switch, Tabs, Tag, TextInput, TimePicker, Toast, Toolbar, Typography, RichTextEditor, };
|
|
35
38
|
export * from './types';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { GlobalTheme } from '../global';
|
|
2
|
+
declare const getCalendarTheme: (theme: GlobalTheme) => {
|
|
3
|
+
radii: {
|
|
4
|
+
default: number;
|
|
5
|
+
};
|
|
6
|
+
colors: {
|
|
7
|
+
background: string;
|
|
8
|
+
border: string;
|
|
9
|
+
primary: string;
|
|
10
|
+
inverted: string;
|
|
11
|
+
};
|
|
12
|
+
sizes: {
|
|
13
|
+
cellWidth: number;
|
|
14
|
+
cellHeight: number;
|
|
15
|
+
cellCircleWidth: number;
|
|
16
|
+
cellCircleHeight: number;
|
|
17
|
+
markWidth: number;
|
|
18
|
+
markHeight: number;
|
|
19
|
+
};
|
|
20
|
+
space: {
|
|
21
|
+
rowVerticalPadding: number;
|
|
22
|
+
headerVerticalPadding: number;
|
|
23
|
+
headerHorizontalPadding: number;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export default getCalendarTheme;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { GlobalTheme } from '../global';
|
|
2
|
+
declare const getEmptyTheme: (theme: GlobalTheme) => {
|
|
3
|
+
fontSizes: {
|
|
4
|
+
title: number;
|
|
5
|
+
description: number;
|
|
6
|
+
};
|
|
7
|
+
colors: {
|
|
8
|
+
text: string;
|
|
9
|
+
invertedText: string;
|
|
10
|
+
subduedText: string;
|
|
11
|
+
illustrationBackground: string;
|
|
12
|
+
};
|
|
13
|
+
sizes: {
|
|
14
|
+
illustration: number;
|
|
15
|
+
};
|
|
16
|
+
space: {
|
|
17
|
+
medium: number;
|
|
18
|
+
large: number;
|
|
19
|
+
};
|
|
20
|
+
fonts: {
|
|
21
|
+
title: string;
|
|
22
|
+
description: string;
|
|
23
|
+
};
|
|
24
|
+
radii: {
|
|
25
|
+
illustration: number;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export default getEmptyTheme;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { GlobalTheme } from '../global';
|
|
2
|
+
declare const getRichTextEditorTheme: (theme: GlobalTheme) => {
|
|
3
|
+
colors: {
|
|
4
|
+
toolbarBorderColor: string;
|
|
5
|
+
toolbarBackgroundColor: string;
|
|
6
|
+
toolbarButtonSelectedBackground: string;
|
|
7
|
+
};
|
|
8
|
+
space: {
|
|
9
|
+
wrapperMarginBottom: number;
|
|
10
|
+
toolbarHorizontalPadding: number;
|
|
11
|
+
editorPadding: number;
|
|
12
|
+
};
|
|
13
|
+
borderWidths: {
|
|
14
|
+
webViewBorderBottomWidth: number;
|
|
15
|
+
};
|
|
16
|
+
fontSizes: {
|
|
17
|
+
editor: number;
|
|
18
|
+
};
|
|
19
|
+
sizes: {
|
|
20
|
+
editorMinHeight: number;
|
|
21
|
+
toolbarButtonSize: number;
|
|
22
|
+
toolbarSeparatorWidth: number;
|
|
23
|
+
toolbarSeparatorHeight: number;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
export default getRichTextEditorTheme;
|
package/types/theme/index.d.ts
CHANGED
|
@@ -6,18 +6,21 @@ import getBadgeTheme from './components/badge';
|
|
|
6
6
|
import getBottomNavigationTheme from './components/bottomNavigation';
|
|
7
7
|
import getBottomSheetTheme from './components/bottomSheet';
|
|
8
8
|
import getButtonTheme from './components/button';
|
|
9
|
+
import getCalendarTheme from './components/calendar';
|
|
9
10
|
import getCardTheme from './components/card';
|
|
10
11
|
import getCheckboxTheme from './components/checkbox';
|
|
11
12
|
import getContentNavigatorTheme from './components/contentNavigator';
|
|
12
13
|
import getDatePickerTheme from './components/datePicker';
|
|
13
14
|
import getDividerTheme from './components/divider';
|
|
14
15
|
import getDrawerTheme from './components/drawer';
|
|
16
|
+
import getEmptyTheme from './components/empty';
|
|
15
17
|
import getFABTheme from './components/fab';
|
|
16
18
|
import getIconTheme from './components/icon';
|
|
17
19
|
import getListTheme from './components/list';
|
|
18
20
|
import getPinInputTheme from './components/pinInput';
|
|
19
21
|
import getProgressTheme from './components/progress';
|
|
20
22
|
import getRadioTheme from './components/radio';
|
|
23
|
+
import getRichTextEditorTheme from './components/richTextEditor';
|
|
21
24
|
import getSectionHeadingTheme from './components/sectionHeading';
|
|
22
25
|
import getSelectTheme from './components/select';
|
|
23
26
|
import getSpinnerTheme from './components/spinner';
|
|
@@ -38,18 +41,21 @@ declare type Theme = GlobalTheme & {
|
|
|
38
41
|
bottomNavigation: ReturnType<typeof getBottomNavigationTheme>;
|
|
39
42
|
bottomSheet: ReturnType<typeof getBottomSheetTheme>;
|
|
40
43
|
button: ReturnType<typeof getButtonTheme>;
|
|
44
|
+
calendar: ReturnType<typeof getCalendarTheme>;
|
|
41
45
|
card: ReturnType<typeof getCardTheme>;
|
|
42
46
|
checkbox: ReturnType<typeof getCheckboxTheme>;
|
|
43
47
|
contentNavigator: ReturnType<typeof getContentNavigatorTheme>;
|
|
44
48
|
datePicker: ReturnType<typeof getDatePickerTheme>;
|
|
45
49
|
divider: ReturnType<typeof getDividerTheme>;
|
|
46
50
|
drawer: ReturnType<typeof getDrawerTheme>;
|
|
51
|
+
empty: ReturnType<typeof getEmptyTheme>;
|
|
47
52
|
fab: ReturnType<typeof getFABTheme>;
|
|
48
53
|
icon: ReturnType<typeof getIconTheme>;
|
|
49
54
|
list: ReturnType<typeof getListTheme>;
|
|
50
55
|
pinInput: ReturnType<typeof getPinInputTheme>;
|
|
51
56
|
progress: ReturnType<typeof getProgressTheme>;
|
|
52
57
|
radio: ReturnType<typeof getRadioTheme>;
|
|
58
|
+
richTextEditor: ReturnType<typeof getRichTextEditorTheme>;
|
|
53
59
|
sectionHeading: ReturnType<typeof getSectionHeadingTheme>;
|
|
54
60
|
select: ReturnType<typeof getSelectTheme>;
|
|
55
61
|
spinner: ReturnType<typeof getSpinnerTheme>;
|
package/types/types.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BottomNavigationTabType } from './components/BottomNavigation';
|
|
2
2
|
import { IconName } from './components/Icon';
|
|
3
|
+
import { SingleSelectProps, MultiSelectProps } from './components/Select';
|
|
3
4
|
import { TabType } from './components/Tabs';
|
|
4
5
|
import { TextInputProps } from './components/TextInput';
|
|
5
6
|
import { Theme } from './theme';
|
|
6
|
-
export type { BottomNavigationTabType, IconName, TabType, Theme, TextInputProps, };
|
|
7
|
+
export type { BottomNavigationTabType, IconName, SingleSelectProps, MultiSelectProps, TabType, Theme, TextInputProps, };
|