@sendbird/uikit-react-native-foundation 3.1.2 → 3.3.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/lib/commonjs/assets/icon/icon-audio-off-filled.png +0 -0
- package/lib/commonjs/assets/icon/icon-audio-off-filled@2x.png +0 -0
- package/lib/commonjs/assets/icon/icon-audio-off-filled@3x.png +0 -0
- package/lib/commonjs/assets/icon/icon-audio-off.png +0 -0
- package/lib/commonjs/assets/icon/icon-audio-off@2x.png +0 -0
- package/lib/commonjs/assets/icon/icon-audio-off@3x.png +0 -0
- package/lib/commonjs/assets/icon/icon-audio-on-filled.png +0 -0
- package/lib/commonjs/assets/icon/icon-audio-on-filled@2x.png +0 -0
- package/lib/commonjs/assets/icon/icon-audio-on-filled@3x.png +0 -0
- package/lib/commonjs/assets/icon/icon-audio-on.png +0 -0
- package/lib/commonjs/assets/icon/icon-audio-on@2x.png +0 -0
- package/lib/commonjs/assets/icon/icon-audio-on@3x.png +0 -0
- package/lib/commonjs/assets/icon/icon-pause.png +0 -0
- package/lib/commonjs/assets/icon/icon-pause@2x.png +0 -0
- package/lib/commonjs/assets/icon/icon-pause@3x.png +0 -0
- package/lib/commonjs/assets/icon/icon-recording.png +0 -0
- package/lib/commonjs/assets/icon/icon-recording@2x.png +0 -0
- package/lib/commonjs/assets/icon/icon-recording@3x.png +0 -0
- package/lib/commonjs/assets/icon/icon-stop.png +0 -0
- package/lib/commonjs/assets/icon/icon-stop@2x.png +0 -0
- package/lib/commonjs/assets/icon/icon-stop@3x.png +0 -0
- package/lib/commonjs/assets/icon/index.js +7 -0
- package/lib/commonjs/assets/icon/index.js.map +1 -1
- package/lib/commonjs/components/Box/index.js +2 -2
- package/lib/commonjs/components/Box/index.js.map +1 -1
- package/lib/commonjs/components/Icon/index.js +4 -3
- package/lib/commonjs/components/Icon/index.js.map +1 -1
- package/lib/commonjs/components/Image/FastImageInternal.js.map +1 -1
- package/lib/commonjs/components/Image/index.js.map +1 -1
- package/lib/commonjs/components/Modal/index.js +1 -1
- package/lib/commonjs/components/Modal/index.js.map +1 -1
- package/lib/commonjs/components/PressBox/index.js.map +1 -1
- package/lib/commonjs/components/ProgressBar/index.js +72 -0
- package/lib/commonjs/components/ProgressBar/index.js.map +1 -0
- package/lib/commonjs/components/RegexText/index.js.map +1 -1
- package/lib/commonjs/components/TextInput/index.js +10 -3
- package/lib/commonjs/components/TextInput/index.js.map +1 -1
- package/lib/commonjs/index.js +16 -2
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/styles/HeaderStyleContext.js.map +1 -1
- package/lib/commonjs/styles/createScaleFactor.js +5 -4
- package/lib/commonjs/styles/createScaleFactor.js.map +1 -1
- package/lib/commonjs/styles/createStyleSheet.js +4 -0
- package/lib/commonjs/styles/createStyleSheet.js.map +1 -1
- package/lib/commonjs/theme/DarkUIKitTheme.js +80 -36
- package/lib/commonjs/theme/DarkUIKitTheme.js.map +1 -1
- package/lib/commonjs/theme/LightUIKitTheme.js +80 -36
- package/lib/commonjs/theme/LightUIKitTheme.js.map +1 -1
- package/lib/commonjs/types.js.map +1 -1
- package/lib/commonjs/ui/Avatar/AvatarStack.js +96 -0
- package/lib/commonjs/ui/Avatar/AvatarStack.js.map +1 -0
- package/lib/commonjs/ui/Avatar/index.js +6 -3
- package/lib/commonjs/ui/Avatar/index.js.map +1 -1
- package/lib/commonjs/ui/BottomSheet/index.js.map +1 -1
- package/lib/commonjs/ui/Dialog/DialogSheet.js.map +1 -1
- package/lib/commonjs/ui/GroupChannelMessage/Message.file.voice.js +108 -0
- package/lib/commonjs/ui/GroupChannelMessage/Message.file.voice.js.map +1 -0
- package/lib/commonjs/ui/GroupChannelMessage/Message.unknown.js +1 -1
- package/lib/commonjs/ui/GroupChannelMessage/Message.unknown.js.map +1 -1
- package/lib/commonjs/ui/GroupChannelMessage/index.js +2 -0
- package/lib/commonjs/ui/GroupChannelMessage/index.js.map +1 -1
- package/lib/commonjs/ui/GroupChannelPreview/index.js.map +1 -1
- package/lib/commonjs/ui/Header/index.js +5 -4
- package/lib/commonjs/ui/Header/index.js.map +1 -1
- package/lib/commonjs/ui/OpenChannelMessage/MessageContainer.js.map +1 -1
- package/lib/commonjs/ui/OpenChannelPreview/index.js.map +1 -1
- package/lib/commonjs/ui/ProfileCard/index.js.map +1 -1
- package/lib/commonjs/ui/TypingIndicatorBubble/index.js +118 -0
- package/lib/commonjs/ui/TypingIndicatorBubble/index.js.map +1 -0
- package/lib/module/assets/icon/icon-audio-off-filled.png +0 -0
- package/lib/module/assets/icon/icon-audio-off-filled@2x.png +0 -0
- package/lib/module/assets/icon/icon-audio-off-filled@3x.png +0 -0
- package/lib/module/assets/icon/icon-audio-off.png +0 -0
- package/lib/module/assets/icon/icon-audio-off@2x.png +0 -0
- package/lib/module/assets/icon/icon-audio-off@3x.png +0 -0
- package/lib/module/assets/icon/icon-audio-on-filled.png +0 -0
- package/lib/module/assets/icon/icon-audio-on-filled@2x.png +0 -0
- package/lib/module/assets/icon/icon-audio-on-filled@3x.png +0 -0
- package/lib/module/assets/icon/icon-audio-on.png +0 -0
- package/lib/module/assets/icon/icon-audio-on@2x.png +0 -0
- package/lib/module/assets/icon/icon-audio-on@3x.png +0 -0
- package/lib/module/assets/icon/icon-pause.png +0 -0
- package/lib/module/assets/icon/icon-pause@2x.png +0 -0
- package/lib/module/assets/icon/icon-pause@3x.png +0 -0
- package/lib/module/assets/icon/icon-recording.png +0 -0
- package/lib/module/assets/icon/icon-recording@2x.png +0 -0
- package/lib/module/assets/icon/icon-recording@3x.png +0 -0
- package/lib/module/assets/icon/icon-stop.png +0 -0
- package/lib/module/assets/icon/icon-stop@2x.png +0 -0
- package/lib/module/assets/icon/icon-stop@3x.png +0 -0
- package/lib/module/assets/icon/index.js +7 -0
- package/lib/module/assets/icon/index.js.map +1 -1
- package/lib/module/components/Box/index.js +2 -2
- package/lib/module/components/Box/index.js.map +1 -1
- package/lib/module/components/Icon/index.js +4 -3
- package/lib/module/components/Icon/index.js.map +1 -1
- package/lib/module/components/Image/FastImageInternal.js.map +1 -1
- package/lib/module/components/Image/index.js.map +1 -1
- package/lib/module/components/Modal/index.js +1 -1
- package/lib/module/components/Modal/index.js.map +1 -1
- package/lib/module/components/PressBox/index.js.map +1 -1
- package/lib/module/components/ProgressBar/index.js +62 -0
- package/lib/module/components/ProgressBar/index.js.map +1 -0
- package/lib/module/components/RegexText/index.js.map +1 -1
- package/lib/module/components/TextInput/index.js +10 -3
- package/lib/module/components/TextInput/index.js.map +1 -1
- package/lib/module/index.js +4 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/styles/HeaderStyleContext.js.map +1 -1
- package/lib/module/styles/createScaleFactor.js +5 -4
- package/lib/module/styles/createScaleFactor.js.map +1 -1
- package/lib/module/styles/createStyleSheet.js +4 -0
- package/lib/module/styles/createStyleSheet.js.map +1 -1
- package/lib/module/theme/DarkUIKitTheme.js +80 -36
- package/lib/module/theme/DarkUIKitTheme.js.map +1 -1
- package/lib/module/theme/LightUIKitTheme.js +80 -36
- package/lib/module/theme/LightUIKitTheme.js.map +1 -1
- package/lib/module/types.js.map +1 -1
- package/lib/module/ui/Avatar/AvatarStack.js +88 -0
- package/lib/module/ui/Avatar/AvatarStack.js.map +1 -0
- package/lib/module/ui/Avatar/index.js +6 -3
- package/lib/module/ui/Avatar/index.js.map +1 -1
- package/lib/module/ui/BottomSheet/index.js.map +1 -1
- package/lib/module/ui/Dialog/DialogSheet.js.map +1 -1
- package/lib/module/ui/GroupChannelMessage/Message.file.voice.js +98 -0
- package/lib/module/ui/GroupChannelMessage/Message.file.voice.js.map +1 -0
- package/lib/module/ui/GroupChannelMessage/Message.unknown.js +1 -1
- package/lib/module/ui/GroupChannelMessage/Message.unknown.js.map +1 -1
- package/lib/module/ui/GroupChannelMessage/index.js +2 -0
- package/lib/module/ui/GroupChannelMessage/index.js.map +1 -1
- package/lib/module/ui/GroupChannelPreview/index.js.map +1 -1
- package/lib/module/ui/Header/index.js +5 -4
- package/lib/module/ui/Header/index.js.map +1 -1
- package/lib/module/ui/OpenChannelMessage/MessageContainer.js.map +1 -1
- package/lib/module/ui/OpenChannelPreview/index.js.map +1 -1
- package/lib/module/ui/ProfileCard/index.js.map +1 -1
- package/lib/module/ui/TypingIndicatorBubble/index.js +108 -0
- package/lib/module/ui/TypingIndicatorBubble/index.js.map +1 -0
- package/lib/typescript/src/assets/icon/index.d.ts +7 -0
- package/lib/typescript/src/components/Box/index.d.ts +2 -1
- package/lib/typescript/src/components/Divider/index.d.ts +2 -1
- package/lib/typescript/src/components/Icon/index.d.ts +76 -7
- package/lib/typescript/src/components/Image/FastImageInternal.d.ts +2 -1
- package/lib/typescript/src/components/Image/index.d.ts +2 -1
- package/lib/typescript/src/components/ImageWithPlaceholder/index.d.ts +2 -1
- package/lib/typescript/src/components/Modal/index.d.ts +2 -1
- package/lib/typescript/src/components/PressBox/index.d.ts +2 -1
- package/lib/typescript/src/components/ProgressBar/index.d.ts +12 -0
- package/lib/typescript/src/components/RegexText/index.d.ts +3 -2
- package/lib/typescript/src/components/Switch/index.d.ts +1 -1
- package/lib/typescript/src/components/Text/index.d.ts +2 -1
- package/lib/typescript/src/components/VideoThumbnail/index.d.ts +2 -1
- package/lib/typescript/src/index.d.ts +5 -3
- package/lib/typescript/src/styles/HeaderStyleContext.d.ts +2 -2
- package/lib/typescript/src/styles/createScaleFactor.d.ts +4 -5
- package/lib/typescript/src/theme/UIKitThemeProvider.d.ts +1 -1
- package/lib/typescript/src/types.d.ts +11 -7
- package/lib/typescript/src/ui/ActionMenu/index.d.ts +2 -1
- package/lib/typescript/src/ui/Alert/index.d.ts +2 -1
- package/lib/typescript/src/ui/Avatar/AvatarGroup.d.ts +1 -1
- package/lib/typescript/src/ui/Avatar/AvatarIcon.d.ts +2 -1
- package/lib/typescript/src/ui/Avatar/AvatarStack.d.ts +16 -0
- package/lib/typescript/src/ui/Avatar/index.d.ts +30 -8
- package/lib/typescript/src/ui/Badge/index.d.ts +2 -1
- package/lib/typescript/src/ui/BottomSheet/index.d.ts +3 -2
- package/lib/typescript/src/ui/Button/index.d.ts +1 -1
- package/lib/typescript/src/ui/ChannelFrozenBanner/index.d.ts +2 -1
- package/lib/typescript/src/ui/Dialog/DialogBox.d.ts +1 -1
- package/lib/typescript/src/ui/Dialog/DialogSheet.d.ts +3 -3
- package/lib/typescript/src/ui/Dialog/index.d.ts +1 -1
- package/lib/typescript/src/ui/GroupChannelMessage/Message.admin.d.ts +2 -1
- package/lib/typescript/src/ui/GroupChannelMessage/Message.file.d.ts +2 -1
- package/lib/typescript/src/ui/GroupChannelMessage/Message.file.image.d.ts +2 -1
- package/lib/typescript/src/ui/GroupChannelMessage/Message.file.video.d.ts +2 -1
- package/lib/typescript/src/ui/GroupChannelMessage/Message.file.voice.d.ts +14 -0
- package/lib/typescript/src/ui/GroupChannelMessage/Message.unknown.d.ts +2 -1
- package/lib/typescript/src/ui/GroupChannelMessage/Message.user.d.ts +2 -1
- package/lib/typescript/src/ui/GroupChannelMessage/Message.user.og.d.ts +2 -1
- package/lib/typescript/src/ui/GroupChannelMessage/MessageBubbleWithText.d.ts +2 -1
- package/lib/typescript/src/ui/GroupChannelMessage/MessageContainer.d.ts +4 -3
- package/lib/typescript/src/ui/GroupChannelMessage/MessageOpenGraph.d.ts +2 -1
- package/lib/typescript/src/ui/GroupChannelMessage/index.d.ts +43 -7
- package/lib/typescript/src/ui/GroupChannelPreview/index.d.ts +3 -3
- package/lib/typescript/src/ui/Header/index.d.ts +8 -12
- package/lib/typescript/src/ui/LoadingSpinner/index.d.ts +2 -1
- package/lib/typescript/src/ui/MenuBar/index.d.ts +1 -1
- package/lib/typescript/src/ui/OpenChannelMessage/Message.admin.d.ts +2 -1
- package/lib/typescript/src/ui/OpenChannelMessage/Message.file.d.ts +2 -1
- package/lib/typescript/src/ui/OpenChannelMessage/Message.file.image.d.ts +2 -1
- package/lib/typescript/src/ui/OpenChannelMessage/Message.file.video.d.ts +2 -1
- package/lib/typescript/src/ui/OpenChannelMessage/Message.unknown.d.ts +2 -1
- package/lib/typescript/src/ui/OpenChannelMessage/Message.user.d.ts +2 -1
- package/lib/typescript/src/ui/OpenChannelMessage/Message.user.og.d.ts +2 -1
- package/lib/typescript/src/ui/OpenChannelMessage/MessageContainer.d.ts +2 -1
- package/lib/typescript/src/ui/OpenChannelMessage/index.d.ts +7 -7
- package/lib/typescript/src/ui/OpenChannelPreview/index.d.ts +2 -2
- package/lib/typescript/src/ui/OutlinedButton/index.d.ts +2 -1
- package/lib/typescript/src/ui/Placeholder/index.d.ts +2 -1
- package/lib/typescript/src/ui/ProfileCard/index.d.ts +3 -2
- package/lib/typescript/src/ui/Prompt/index.d.ts +2 -1
- package/lib/typescript/src/ui/Toast/index.d.ts +2 -2
- package/lib/typescript/src/ui/TypingIndicatorBubble/index.d.ts +10 -0
- package/package.json +5 -9
- package/src/assets/icon/icon-audio-off-filled.png +0 -0
- package/src/assets/icon/icon-audio-off-filled@2x.png +0 -0
- package/src/assets/icon/icon-audio-off-filled@3x.png +0 -0
- package/src/assets/icon/icon-audio-off.png +0 -0
- package/src/assets/icon/icon-audio-off@2x.png +0 -0
- package/src/assets/icon/icon-audio-off@3x.png +0 -0
- package/src/assets/icon/icon-audio-on-filled.png +0 -0
- package/src/assets/icon/icon-audio-on-filled@2x.png +0 -0
- package/src/assets/icon/icon-audio-on-filled@3x.png +0 -0
- package/src/assets/icon/icon-audio-on.png +0 -0
- package/src/assets/icon/icon-audio-on@2x.png +0 -0
- package/src/assets/icon/icon-audio-on@3x.png +0 -0
- package/src/assets/icon/icon-pause.png +0 -0
- package/src/assets/icon/icon-pause@2x.png +0 -0
- package/src/assets/icon/icon-pause@3x.png +0 -0
- package/src/assets/icon/icon-recording.png +0 -0
- package/src/assets/icon/icon-recording@2x.png +0 -0
- package/src/assets/icon/icon-recording@3x.png +0 -0
- package/src/assets/icon/icon-stop.png +0 -0
- package/src/assets/icon/icon-stop@2x.png +0 -0
- package/src/assets/icon/icon-stop@3x.png +0 -0
- package/src/assets/icon/index.ts +7 -0
- package/src/components/Box/index.tsx +1 -1
- package/src/components/Icon/index.tsx +6 -7
- package/src/components/Image/FastImageInternal.tsx +3 -2
- package/src/components/Image/index.ts +2 -1
- package/src/components/Modal/index.tsx +1 -1
- package/src/components/PressBox/index.tsx +1 -0
- package/src/components/ProgressBar/index.tsx +72 -0
- package/src/components/RegexText/index.tsx +3 -3
- package/src/components/TextInput/index.tsx +10 -3
- package/src/index.ts +5 -4
- package/src/styles/HeaderStyleContext.tsx +1 -1
- package/src/styles/createScaleFactor.ts +5 -5
- package/src/styles/createStyleSheet.ts +4 -0
- package/src/theme/DarkUIKitTheme.ts +80 -37
- package/src/theme/LightUIKitTheme.ts +80 -37
- package/src/types.ts +31 -7
- package/src/ui/Avatar/AvatarStack.tsx +103 -0
- package/src/ui/Avatar/index.tsx +8 -14
- package/src/ui/BottomSheet/index.tsx +2 -2
- package/src/ui/Dialog/DialogSheet.tsx +2 -2
- package/src/ui/GroupChannelMessage/Message.file.voice.tsx +123 -0
- package/src/ui/GroupChannelMessage/Message.unknown.tsx +1 -1
- package/src/ui/GroupChannelMessage/index.ts +7 -0
- package/src/ui/GroupChannelPreview/index.tsx +2 -2
- package/src/ui/Header/index.tsx +8 -12
- package/src/ui/OpenChannelMessage/MessageContainer.tsx +1 -1
- package/src/ui/OpenChannelPreview/index.tsx +1 -1
- package/src/ui/ProfileCard/index.tsx +2 -2
- package/src/ui/TypingIndicatorBubble/index.tsx +120 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { ViewProps, ViewStyle } from 'react-native';
|
|
2
3
|
import type { UIKitColors, UIKitPalette } from '../../types';
|
|
3
4
|
type BaseBoxProps = Pick<ViewStyle, 'flex' | 'flexShrink' | 'flexGrow' | 'flexDirection' | 'alignItems' | 'justifyContent' | 'borderRadius' | 'borderWidth' | 'borderColor' | 'borderBottomColor' | 'borderBottomWidth' | 'margin' | 'marginHorizontal' | 'marginVertical' | 'marginLeft' | 'marginRight' | 'marginTop' | 'marginBottom' | 'padding' | 'paddingHorizontal' | 'paddingVertical' | 'paddingLeft' | 'paddingRight' | 'paddingTop' | 'paddingBottom' | 'overflow' | 'width' | 'height'> & {
|
|
@@ -7,5 +8,5 @@ type BaseBoxProps = Pick<ViewStyle, 'flex' | 'flexShrink' | 'flexGrow' | 'flexDi
|
|
|
7
8
|
}) => string);
|
|
8
9
|
};
|
|
9
10
|
type BoxProps = BaseBoxProps & ViewProps;
|
|
10
|
-
declare const Box: ({ style, children, ...props }: BoxProps) => JSX.Element;
|
|
11
|
+
declare const Box: ({ style, children, ...props }: BoxProps) => React.JSX.Element;
|
|
11
12
|
export default Box;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
2
3
|
type Props = {
|
|
3
4
|
style?: StyleProp<ViewStyle>;
|
|
4
5
|
space?: number;
|
|
5
6
|
};
|
|
6
|
-
declare const Divider: ({ style, space }: Props) => JSX.Element;
|
|
7
|
+
declare const Divider: ({ style, space }: Props) => React.JSX.Element;
|
|
7
8
|
export default Divider;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { ImageStyle, StyleProp, ViewStyle } from 'react-native';
|
|
2
3
|
import { FileType } from '@sendbird/uikit-utils';
|
|
3
4
|
import IconAssets from '../../assets/icon';
|
|
@@ -9,11 +10,79 @@ type Props = {
|
|
|
9
10
|
style?: StyleProp<ImageStyle>;
|
|
10
11
|
containerStyle?: StyleProp<ViewStyle>;
|
|
11
12
|
};
|
|
12
|
-
declare const
|
|
13
|
-
Assets:
|
|
14
|
-
|
|
13
|
+
declare const _default: (({ icon, color, size, containerStyle, style }: Props) => React.JSX.Element) & {
|
|
14
|
+
Assets: {
|
|
15
|
+
'chat-hide': any;
|
|
16
|
+
'chat-show': any;
|
|
17
|
+
add: any;
|
|
18
|
+
archive: any;
|
|
19
|
+
'arrow-left': any;
|
|
20
|
+
'audio-off-filled': any;
|
|
21
|
+
'audio-off': any;
|
|
22
|
+
'audio-on-filled': any;
|
|
23
|
+
'audio-on': any;
|
|
24
|
+
ban: any;
|
|
25
|
+
broadcast: any;
|
|
26
|
+
camera: any;
|
|
27
|
+
channels: any;
|
|
28
|
+
'chat-filled': any;
|
|
29
|
+
chat: any;
|
|
30
|
+
'checkbox-off': any;
|
|
31
|
+
'checkbox-on': any;
|
|
32
|
+
'chevron-down': any;
|
|
33
|
+
'chevron-right': any;
|
|
34
|
+
close: any;
|
|
35
|
+
copy: any;
|
|
36
|
+
create: any;
|
|
37
|
+
delete: any;
|
|
38
|
+
document: any;
|
|
39
|
+
'done-all': any;
|
|
40
|
+
done: any;
|
|
41
|
+
download: any;
|
|
42
|
+
edit: any;
|
|
43
|
+
'emoji-more': any;
|
|
44
|
+
error: any;
|
|
45
|
+
'file-audio': any;
|
|
46
|
+
'file-document': any;
|
|
47
|
+
freeze: any;
|
|
48
|
+
gif: any;
|
|
49
|
+
info: any;
|
|
50
|
+
leave: any;
|
|
51
|
+
members: any;
|
|
52
|
+
message: any;
|
|
53
|
+
moderation: any;
|
|
54
|
+
more: any;
|
|
55
|
+
mute: any;
|
|
56
|
+
'notifications-filled': any;
|
|
57
|
+
'notifications-off-filled': any;
|
|
58
|
+
notifications: any;
|
|
59
|
+
operator: any;
|
|
60
|
+
pause: any;
|
|
61
|
+
photo: any;
|
|
62
|
+
play: any;
|
|
63
|
+
plus: any;
|
|
64
|
+
question: any;
|
|
65
|
+
'radio-off': any;
|
|
66
|
+
'radio-on': any;
|
|
67
|
+
recording: any;
|
|
68
|
+
refresh: any;
|
|
69
|
+
remove: any;
|
|
70
|
+
'reply-filled': any;
|
|
71
|
+
reply: any;
|
|
72
|
+
search: any;
|
|
73
|
+
send: any;
|
|
74
|
+
'settings-filled': any;
|
|
75
|
+
spinner: any;
|
|
76
|
+
stop: any;
|
|
77
|
+
streaming: any;
|
|
78
|
+
supergroup: any;
|
|
79
|
+
theme: any;
|
|
80
|
+
'thumbnail-none': any;
|
|
81
|
+
unarchive: any;
|
|
82
|
+
user: any;
|
|
83
|
+
};
|
|
84
|
+
File: ({ fileType, ...props }: Omit<Props, "icon"> & {
|
|
85
|
+
fileType: FileType;
|
|
86
|
+
}) => React.JSX.Element;
|
|
15
87
|
};
|
|
16
|
-
|
|
17
|
-
fileType: FileType;
|
|
18
|
-
}) => JSX.Element;
|
|
19
|
-
export default Icon;
|
|
88
|
+
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
1
2
|
import type { FastImageProps } from 'react-native-fast-image';
|
|
2
|
-
declare let FastImageInternal: (props: FastImageProps) =>
|
|
3
|
+
declare let FastImageInternal: (props: FastImageProps) => ReactNode | null;
|
|
3
4
|
export default FastImageInternal;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
1
2
|
import type { ImageProps as NativeImageProps } from 'react-native';
|
|
2
3
|
export interface SendbirdImageProps extends Omit<NativeImageProps, 'onLoad' | 'onError'> {
|
|
3
4
|
onLoad?: (event: {
|
|
@@ -9,6 +10,6 @@ export interface SendbirdImageProps extends Omit<NativeImageProps, 'onLoad' | 'o
|
|
|
9
10
|
}) => void;
|
|
10
11
|
tintColor?: string;
|
|
11
12
|
}
|
|
12
|
-
export type SendbirdImageComponent = (props: SendbirdImageProps) =>
|
|
13
|
+
export type SendbirdImageComponent = (props: SendbirdImageProps) => ReactNode;
|
|
13
14
|
declare const _default: SendbirdImageComponent;
|
|
14
15
|
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
2
3
|
type Props = {
|
|
3
4
|
source: number | {
|
|
@@ -7,5 +8,5 @@ type Props = {
|
|
|
7
8
|
height?: number | string;
|
|
8
9
|
style?: StyleProp<ViewStyle>;
|
|
9
10
|
};
|
|
10
|
-
declare const ImageWithPlaceholder: (props: Props) => JSX.Element;
|
|
11
|
+
declare const ImageWithPlaceholder: (props: Props) => React.JSX.Element;
|
|
11
12
|
export default ImageWithPlaceholder;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { ModalProps, StyleProp, ViewStyle } from 'react-native';
|
|
2
3
|
type ModalAnimationType = 'slide' | 'slide-no-gesture' | 'fade';
|
|
3
4
|
type Props = {
|
|
@@ -14,5 +15,5 @@ type Props = {
|
|
|
14
15
|
* Modal Close: Triggered by Modal.props.onClose() call
|
|
15
16
|
* - Modal.props.onClose() -> visible false -> animation start -> modalVisible false
|
|
16
17
|
* */
|
|
17
|
-
declare const Modal: ({ children, onClose, backgroundStyle, onDismiss, type, visible, disableBackgroundClose, enableKeyboardAvoid, statusBarTranslucent, ...props }: Props) => JSX.Element;
|
|
18
|
+
declare const Modal: ({ children, onClose, backgroundStyle, onDismiss, type, visible, disableBackgroundClose, enableKeyboardAvoid, statusBarTranslucent, ...props }: Props) => React.JSX.Element;
|
|
18
19
|
export default Modal;
|
|
@@ -4,6 +4,7 @@ type PressBoxStateParams = {
|
|
|
4
4
|
pressed: boolean;
|
|
5
5
|
};
|
|
6
6
|
type Props = {
|
|
7
|
+
disabled?: boolean;
|
|
7
8
|
onPress?: (event: GestureResponderEvent) => void;
|
|
8
9
|
onLongPress?: (event: GestureResponderEvent) => void;
|
|
9
10
|
delayLongPress?: number;
|
|
@@ -13,5 +14,5 @@ type Props = {
|
|
|
13
14
|
children?: React.ReactNode | ((params: PressBoxStateParams) => React.ReactNode);
|
|
14
15
|
};
|
|
15
16
|
export declare const DEFAULT_LONG_PRESS_DELAY = 350;
|
|
16
|
-
declare const PressBox: (props: Props) => JSX.Element;
|
|
17
|
+
declare const PressBox: (props: Props) => React.JSX.Element;
|
|
17
18
|
export default PressBox;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { ViewStyle } from 'react-native';
|
|
3
|
+
type Props = {
|
|
4
|
+
current: number;
|
|
5
|
+
total: number;
|
|
6
|
+
trackColor?: string;
|
|
7
|
+
barColor?: string;
|
|
8
|
+
overlay?: ReactNode | undefined;
|
|
9
|
+
style?: ViewStyle;
|
|
10
|
+
};
|
|
11
|
+
declare const ProgressBar: ({ current, total, trackColor, barColor, overlay, style }: Props) => React.JSX.Element;
|
|
12
|
+
export default ProgressBar;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
1
2
|
import { TextProps } from '../Text';
|
|
2
3
|
export interface RegexTextPattern {
|
|
3
4
|
regex: RegExp;
|
|
@@ -7,10 +8,10 @@ export interface RegexTextPattern {
|
|
|
7
8
|
index: number;
|
|
8
9
|
keyPrefix: string;
|
|
9
10
|
parentProps?: TextProps;
|
|
10
|
-
}): string |
|
|
11
|
+
}): string | ReactNode;
|
|
11
12
|
}
|
|
12
13
|
type Props = {
|
|
13
14
|
patterns: RegexTextPattern[];
|
|
14
15
|
} & TextProps;
|
|
15
|
-
declare const RegexText: ({ children, patterns, ...props }: Props) => JSX.Element;
|
|
16
|
+
declare const RegexText: ({ children, patterns, ...props }: Props) => React.JSX.Element;
|
|
16
17
|
export default RegexText;
|
|
@@ -7,5 +7,5 @@ type SwitchProps = React.PropsWithChildren<{
|
|
|
7
7
|
value: boolean;
|
|
8
8
|
onChangeValue: (val: boolean) => void;
|
|
9
9
|
}>;
|
|
10
|
-
declare const Switch: ({ value, onChangeValue, inactiveThumbColor, inactiveTrackColor, trackColor, thumbColor, }: SwitchProps) => JSX.Element;
|
|
10
|
+
declare const Switch: ({ value, onChangeValue, inactiveThumbColor, inactiveTrackColor, trackColor, thumbColor, }: SwitchProps) => React.JSX.Element;
|
|
11
11
|
export default Switch;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { TextProps as RNTextProps } from 'react-native';
|
|
2
3
|
import type { TypoName, UIKitTheme } from '../../types';
|
|
3
4
|
type TypographyProps = Partial<Record<TypoName, boolean>>;
|
|
4
5
|
export type TextProps = RNTextProps & TypographyProps & {
|
|
5
6
|
color?: ((colors: UIKitTheme['colors']) => string) | string;
|
|
6
7
|
};
|
|
7
|
-
declare const Text: ({ children, color, style, ...props }: TextProps) => JSX.Element;
|
|
8
|
+
declare const Text: ({ children, color, style, ...props }: TextProps) => React.JSX.Element;
|
|
8
9
|
export default Text;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
2
3
|
type Props = {
|
|
3
4
|
source: string;
|
|
@@ -9,5 +10,5 @@ type Props = {
|
|
|
9
10
|
/** @deprecated please use `source` prop **/
|
|
10
11
|
videoSource?: string;
|
|
11
12
|
};
|
|
12
|
-
export declare const VideoThumbnail: ({ fetchThumbnailFromVideoSource, style, source, videoSource, iconSize }: Props) => JSX.Element;
|
|
13
|
+
export declare const VideoThumbnail: ({ fetchThumbnailFromVideoSource, style, source, videoSource, iconSize }: Props) => React.JSX.Element;
|
|
13
14
|
export {};
|
|
@@ -8,6 +8,7 @@ export { default as Image } from './components/Image';
|
|
|
8
8
|
export { default as ImageWithPlaceholder } from './components/ImageWithPlaceholder';
|
|
9
9
|
export { default as Modal } from './components/Modal';
|
|
10
10
|
export { default as PressBox } from './components/PressBox';
|
|
11
|
+
export { default as ProgressBar } from './components/ProgressBar';
|
|
11
12
|
export { default as RegexText } from './components/RegexText';
|
|
12
13
|
export type { RegexTextPattern } from './components/RegexText';
|
|
13
14
|
export { default as Switch } from './components/Switch';
|
|
@@ -23,13 +24,13 @@ export { default as BottomSheet } from './ui/BottomSheet';
|
|
|
23
24
|
export { default as Button } from './ui/Button';
|
|
24
25
|
export { default as ChannelFrozenBanner } from './ui/ChannelFrozenBanner';
|
|
25
26
|
export { DialogProvider, useActionMenu, useAlert, usePrompt, useBottomSheet } from './ui/Dialog';
|
|
27
|
+
export { default as GroupChannelMessage } from './ui/GroupChannelMessage';
|
|
28
|
+
export type { GroupChannelMessageProps } from './ui/GroupChannelMessage';
|
|
29
|
+
export { default as GroupChannelPreview } from './ui/GroupChannelPreview';
|
|
26
30
|
export { default as Header } from './ui/Header';
|
|
27
31
|
export { default as LoadingSpinner } from './ui/LoadingSpinner';
|
|
28
32
|
export { default as MenuBar } from './ui/MenuBar';
|
|
29
33
|
export type { MenuBarProps } from './ui/MenuBar';
|
|
30
|
-
export { default as GroupChannelMessage } from './ui/GroupChannelMessage';
|
|
31
|
-
export type { GroupChannelMessageProps } from './ui/GroupChannelMessage';
|
|
32
|
-
export { default as GroupChannelPreview } from './ui/GroupChannelPreview';
|
|
33
34
|
export { default as OpenChannelMessage } from './ui/OpenChannelMessage';
|
|
34
35
|
export type { OpenChannelMessageProps } from './ui/OpenChannelMessage';
|
|
35
36
|
export { default as OpenChannelPreview } from './ui/OpenChannelPreview';
|
|
@@ -38,6 +39,7 @@ export { default as Placeholder } from './ui/Placeholder';
|
|
|
38
39
|
export { default as ProfileCard } from './ui/ProfileCard';
|
|
39
40
|
export { default as Prompt } from './ui/Prompt';
|
|
40
41
|
export { default as Toast, useToast, ToastProvider } from './ui/Toast';
|
|
42
|
+
export { default as TypingIndicatorBubble } from './ui/TypingIndicatorBubble';
|
|
41
43
|
/** Styles **/
|
|
42
44
|
export { default as createSelectByColorScheme } from './styles/createSelectByColorScheme';
|
|
43
45
|
export { default as createScaleFactor } from './styles/createScaleFactor';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { HeaderProps } from '../ui/Header';
|
|
3
3
|
export type HeaderStyleContextType = {
|
|
4
|
-
HeaderComponent: (props: HeaderProps) => React.
|
|
4
|
+
HeaderComponent: (props: HeaderProps) => React.ReactNode | null;
|
|
5
5
|
defaultTitleAlign: 'left' | 'center';
|
|
6
6
|
statusBarTranslucent: boolean;
|
|
7
7
|
topInset: number;
|
|
@@ -9,5 +9,5 @@ export type HeaderStyleContextType = {
|
|
|
9
9
|
};
|
|
10
10
|
export declare const HeaderStyleContext: React.Context<HeaderStyleContextType>;
|
|
11
11
|
type Props = Pick<HeaderStyleContextType, 'statusBarTranslucent' | 'defaultTitleAlign' | 'HeaderComponent'>;
|
|
12
|
-
export declare const HeaderStyleProvider: ({ children, HeaderComponent, defaultTitleAlign, statusBarTranslucent, }: React.PropsWithChildren<Props>) => JSX.Element;
|
|
12
|
+
export declare const HeaderStyleProvider: ({ children, HeaderComponent, defaultTitleAlign, statusBarTranslucent, }: React.PropsWithChildren<Props>) => React.JSX.Element;
|
|
13
13
|
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
declare const createScaleFactor: {
|
|
2
|
-
(deviceWidth?: number): (dp: number) => number;
|
|
3
|
-
updateScaleFactor(scaleFactor: (dp: number) => number): void;
|
|
4
|
-
};
|
|
5
1
|
export declare let DEFAULT_SCALE_FACTOR: (dp: number) => number;
|
|
6
|
-
|
|
2
|
+
declare const _default: ((deviceWidth?: number) => (dp: number) => number) & {
|
|
3
|
+
updateScaleFactor: (scaleFactor: (dp: number) => number) => void;
|
|
4
|
+
};
|
|
5
|
+
export default _default;
|
|
@@ -3,5 +3,5 @@ import type { UIKitTheme } from '../types';
|
|
|
3
3
|
type Props = React.PropsWithChildren<{
|
|
4
4
|
theme?: UIKitTheme;
|
|
5
5
|
}>;
|
|
6
|
-
declare const UIKitThemeProvider: ({ children, theme }: Props) => JSX.Element;
|
|
6
|
+
declare const UIKitThemeProvider: ({ children, theme }: Props) => React.JSX.Element;
|
|
7
7
|
export default UIKitThemeProvider;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
2
|
import type { TextStyle } from 'react-native';
|
|
3
3
|
export interface UIKitTypography {
|
|
4
4
|
h1: FontAttributes;
|
|
@@ -26,7 +26,7 @@ export interface UIKitTheme {
|
|
|
26
26
|
colors: UIKitColors;
|
|
27
27
|
typography: UIKitTypography;
|
|
28
28
|
}
|
|
29
|
-
export type Component = 'Header' | 'Button' | 'Dialog' | 'Input' | 'Badge' | 'Placeholder' | 'DateSeparator' | 'GroupChannelMessage' | 'GroupChannelPreview' | 'ProfileCard' | 'Reaction' | 'OpenChannelMessage' | 'OpenChannelPreview';
|
|
29
|
+
export type Component = 'Header' | 'Button' | 'Dialog' | 'Input' | 'Badge' | 'Placeholder' | 'DateSeparator' | 'GroupChannelMessage' | 'GroupChannelPreview' | 'ProfileCard' | 'Reaction' | 'OpenChannelMessage' | 'OpenChannelPreview' | 'VoiceMessageInput';
|
|
30
30
|
export type GetColorTree<Tree extends {
|
|
31
31
|
Variant: {
|
|
32
32
|
[key in Component]: string;
|
|
@@ -53,6 +53,7 @@ export type ComponentColorTree = GetColorTree<{
|
|
|
53
53
|
Reaction: 'default' | 'rounded';
|
|
54
54
|
OpenChannelMessage: 'default';
|
|
55
55
|
OpenChannelPreview: 'default';
|
|
56
|
+
VoiceMessageInput: 'default';
|
|
56
57
|
};
|
|
57
58
|
State: {
|
|
58
59
|
Header: 'none';
|
|
@@ -68,6 +69,7 @@ export type ComponentColorTree = GetColorTree<{
|
|
|
68
69
|
Reaction: 'enabled' | 'selected';
|
|
69
70
|
OpenChannelMessage: 'enabled' | 'pressed';
|
|
70
71
|
OpenChannelPreview: 'none';
|
|
72
|
+
VoiceMessageInput: 'active' | 'inactive';
|
|
71
73
|
};
|
|
72
74
|
ColorPart: {
|
|
73
75
|
Header: 'background' | 'borderBottom';
|
|
@@ -77,12 +79,13 @@ export type ComponentColorTree = GetColorTree<{
|
|
|
77
79
|
Badge: 'text' | 'background';
|
|
78
80
|
Placeholder: 'content' | 'highlight';
|
|
79
81
|
DateSeparator: 'text' | 'background';
|
|
80
|
-
GroupChannelMessage: 'textMsg' | 'textEdited' | 'textSenderName' | 'textTime' | 'background';
|
|
82
|
+
GroupChannelMessage: 'textMsg' | 'textEdited' | 'textSenderName' | 'textTime' | 'textVoicePlaytime' | 'background' | 'voiceSpinner' | 'voiceProgressTrack' | 'voiceActionIcon' | 'voiceActionIconBackground';
|
|
81
83
|
GroupChannelPreview: 'textTitle' | 'textTitleCaption' | 'textBody' | 'memberCount' | 'bodyIcon' | 'background' | 'coverBackground' | 'bodyIconBackground' | 'separator';
|
|
82
84
|
ProfileCard: 'textUsername' | 'textBodyLabel' | 'textBody' | 'background';
|
|
83
85
|
Reaction: 'background' | 'highlight';
|
|
84
86
|
OpenChannelMessage: 'textMsg' | 'textMsgPostfix' | 'textSenderName' | 'textTime' | 'textOperator' | 'background' | 'bubbleBackground' | 'adminBackground';
|
|
85
87
|
OpenChannelPreview: 'textTitle' | 'textParticipants' | 'frozenIcon' | 'participantsIcon' | 'background' | 'coverBackground' | 'separator';
|
|
88
|
+
VoiceMessageInput: 'textCancel' | 'textTime' | 'background' | 'actionIcon' | 'actionIconBackground' | 'sendIcon' | 'sendIconBackground' | 'progressTrack' | 'recording';
|
|
86
89
|
};
|
|
87
90
|
}>;
|
|
88
91
|
export type ComponentColors<T extends Component> = {
|
|
@@ -129,13 +132,14 @@ export interface UIKitColors {
|
|
|
129
132
|
reaction: ComponentColors<'Reaction'>;
|
|
130
133
|
openChannelMessage: ComponentColors<'OpenChannelMessage'>;
|
|
131
134
|
openChannelPreview: ComponentColors<'OpenChannelPreview'>;
|
|
135
|
+
voiceMessageInput: ComponentColors<'VoiceMessageInput'>;
|
|
132
136
|
};
|
|
133
137
|
}
|
|
134
|
-
export type HeaderElement =
|
|
138
|
+
export type HeaderElement = ReactNode;
|
|
135
139
|
export type HeaderPartProps = {
|
|
136
|
-
title?:
|
|
137
|
-
right?:
|
|
138
|
-
left?:
|
|
140
|
+
title?: ReactNode;
|
|
141
|
+
right?: ReactNode;
|
|
142
|
+
left?: ReactNode;
|
|
139
143
|
onPressLeft?: (...params: any[]) => any;
|
|
140
144
|
onPressRight?: (...params: any[]) => any;
|
|
141
145
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
export type ActionMenuItem = {
|
|
2
3
|
title?: string;
|
|
3
4
|
menuItems: {
|
|
@@ -13,5 +14,5 @@ type Props = {
|
|
|
13
14
|
onError?: (error: unknown) => void;
|
|
14
15
|
onDismiss?: () => void;
|
|
15
16
|
} & ActionMenuItem;
|
|
16
|
-
declare const ActionMenu: ({ visible, onHide, onError, onDismiss, title, menuItems }: Props) => JSX.Element;
|
|
17
|
+
declare const ActionMenu: ({ visible, onHide, onError, onDismiss, title, menuItems }: Props) => React.JSX.Element;
|
|
17
18
|
export default ActionMenu;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { AlertButton } from 'react-native';
|
|
2
3
|
export type AlertItem = {
|
|
3
4
|
title?: string;
|
|
@@ -9,5 +10,5 @@ type Props = {
|
|
|
9
10
|
onHide: () => void;
|
|
10
11
|
onDismiss?: () => void;
|
|
11
12
|
} & AlertItem;
|
|
12
|
-
declare const Alert: ({ onDismiss, visible, onHide, title, message, buttons }: Props) => JSX.Element;
|
|
13
|
+
declare const Alert: ({ onDismiss, visible, onHide, title, message, buttons }: Props) => React.JSX.Element;
|
|
13
14
|
export default Alert;
|
|
@@ -4,5 +4,5 @@ type Props = React.PropsWithChildren<{
|
|
|
4
4
|
size?: number;
|
|
5
5
|
containerStyle?: StyleProp<ViewStyle>;
|
|
6
6
|
}>;
|
|
7
|
-
declare const AvatarGroup: ({ children, containerStyle, size }: Props) => JSX.Element;
|
|
7
|
+
declare const AvatarGroup: ({ children, containerStyle, size }: Props) => React.JSX.Element;
|
|
8
8
|
export default AvatarGroup;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
2
3
|
import Icon from '../../components/Icon';
|
|
3
4
|
type Props = {
|
|
@@ -6,5 +7,5 @@ type Props = {
|
|
|
6
7
|
backgroundColor?: string;
|
|
7
8
|
containerStyle?: StyleProp<ViewStyle>;
|
|
8
9
|
};
|
|
9
|
-
declare const AvatarIcon: ({ size, icon, containerStyle, backgroundColor }: Props) => JSX.Element;
|
|
10
|
+
declare const AvatarIcon: ({ size, icon, containerStyle, backgroundColor }: Props) => React.JSX.Element;
|
|
10
11
|
export default AvatarIcon;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
|
+
type Props = React.PropsWithChildren<{
|
|
4
|
+
size?: number;
|
|
5
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
6
|
+
maxAvatar?: number;
|
|
7
|
+
avatarGap?: number;
|
|
8
|
+
styles?: {
|
|
9
|
+
borderWidth?: number;
|
|
10
|
+
borderColor?: string;
|
|
11
|
+
remainsTextColor?: string;
|
|
12
|
+
remainsBackgroundColor?: string;
|
|
13
|
+
};
|
|
14
|
+
}>;
|
|
15
|
+
declare const AvatarStack: ({ children, containerStyle, styles, maxAvatar, size, avatarGap, }: Props) => React.JSX.Element;
|
|
16
|
+
export default AvatarStack;
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
2
|
-
import AvatarGroup from './AvatarGroup';
|
|
3
|
-
import AvatarIcon from './AvatarIcon';
|
|
4
|
-
type SubComponents = {
|
|
5
|
-
Group: typeof AvatarGroup;
|
|
6
|
-
Icon: typeof AvatarIcon;
|
|
7
|
-
};
|
|
8
3
|
type Props = {
|
|
9
4
|
uri?: string;
|
|
10
5
|
size?: number;
|
|
@@ -12,5 +7,32 @@ type Props = {
|
|
|
12
7
|
muted?: boolean;
|
|
13
8
|
containerStyle?: StyleProp<ViewStyle>;
|
|
14
9
|
};
|
|
15
|
-
declare const
|
|
16
|
-
|
|
10
|
+
declare const _default: (({ uri, square, muted, size, containerStyle }: Props) => React.JSX.Element) & {
|
|
11
|
+
Group: ({ children, containerStyle, size }: {
|
|
12
|
+
size?: number | undefined;
|
|
13
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
14
|
+
} & {
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
}) => React.JSX.Element;
|
|
17
|
+
Icon: ({ size, icon, containerStyle, backgroundColor }: {
|
|
18
|
+
icon: "message" | "recording" | "done" | "search" | "chat-hide" | "chat-show" | "add" | "archive" | "arrow-left" | "audio-off-filled" | "audio-off" | "audio-on-filled" | "audio-on" | "ban" | "broadcast" | "camera" | "channels" | "chat-filled" | "chat" | "checkbox-off" | "checkbox-on" | "chevron-down" | "chevron-right" | "close" | "copy" | "create" | "delete" | "document" | "done-all" | "download" | "edit" | "emoji-more" | "error" | "file-audio" | "file-document" | "freeze" | "gif" | "info" | "leave" | "members" | "moderation" | "more" | "mute" | "notifications-filled" | "notifications-off-filled" | "notifications" | "operator" | "pause" | "photo" | "play" | "plus" | "question" | "radio-off" | "radio-on" | "refresh" | "remove" | "reply-filled" | "reply" | "send" | "settings-filled" | "spinner" | "stop" | "streaming" | "supergroup" | "theme" | "thumbnail-none" | "unarchive" | "user";
|
|
19
|
+
size?: number | undefined;
|
|
20
|
+
backgroundColor?: string | undefined;
|
|
21
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
22
|
+
}) => React.JSX.Element;
|
|
23
|
+
Stack: ({ children, containerStyle, styles, maxAvatar, size, avatarGap, }: {
|
|
24
|
+
size?: number | undefined;
|
|
25
|
+
containerStyle?: StyleProp<ViewStyle>;
|
|
26
|
+
maxAvatar?: number | undefined;
|
|
27
|
+
avatarGap?: number | undefined;
|
|
28
|
+
styles?: {
|
|
29
|
+
borderWidth?: number | undefined;
|
|
30
|
+
borderColor?: string | undefined;
|
|
31
|
+
remainsTextColor?: string | undefined;
|
|
32
|
+
remainsBackgroundColor?: string | undefined;
|
|
33
|
+
} | undefined;
|
|
34
|
+
} & {
|
|
35
|
+
children?: React.ReactNode;
|
|
36
|
+
}) => React.JSX.Element;
|
|
37
|
+
};
|
|
38
|
+
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
2
3
|
type Props = {
|
|
3
4
|
count: number;
|
|
@@ -7,5 +8,5 @@ type Props = {
|
|
|
7
8
|
style?: StyleProp<ViewStyle>;
|
|
8
9
|
size?: 'small' | 'default';
|
|
9
10
|
};
|
|
10
|
-
declare const Badge: ({ count, maxCount, badgeColor, textColor, style, size }: Props) => JSX.Element;
|
|
11
|
+
declare const Badge: ({ count, maxCount, badgeColor, textColor, style, size }: Props) => React.JSX.Element;
|
|
11
12
|
export default Badge;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
1
2
|
import type Icon from '../../components/Icon';
|
|
2
3
|
type HeaderProps = {
|
|
3
4
|
onClose: () => Promise<void>;
|
|
@@ -11,7 +12,7 @@ export type BottomSheetItem = {
|
|
|
11
12
|
disabled?: boolean;
|
|
12
13
|
onPress: () => void;
|
|
13
14
|
}[];
|
|
14
|
-
HeaderComponent?: (props: HeaderProps) =>
|
|
15
|
+
HeaderComponent?: (props: HeaderProps) => ReactNode;
|
|
15
16
|
};
|
|
16
17
|
type Props = {
|
|
17
18
|
visible: boolean;
|
|
@@ -19,5 +20,5 @@ type Props = {
|
|
|
19
20
|
onError?: (error: unknown) => void;
|
|
20
21
|
onDismiss?: () => void;
|
|
21
22
|
} & BottomSheetItem;
|
|
22
|
-
declare const BottomSheet: ({ onDismiss, onHide, visible, sheetItems, HeaderComponent }: Props) => JSX.Element;
|
|
23
|
+
declare const BottomSheet: ({ onDismiss, onHide, visible, sheetItems, HeaderComponent }: Props) => React.JSX.Element;
|
|
23
24
|
export default BottomSheet;
|
|
@@ -10,5 +10,5 @@ type Props = React.PropsWithChildren<{
|
|
|
10
10
|
buttonColor?: string;
|
|
11
11
|
contentColor?: string;
|
|
12
12
|
}>;
|
|
13
|
-
declare const Button: ({ icon, variant, buttonColor, contentColor, disabled, onPress, style, children, }: Props) => JSX.Element;
|
|
13
|
+
declare const Button: ({ icon, variant, buttonColor, contentColor, disabled, onPress, style, children, }: Props) => React.JSX.Element;
|
|
14
14
|
export default Button;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
2
3
|
type Props = {
|
|
3
4
|
style?: StyleProp<ViewStyle>;
|
|
@@ -5,5 +6,5 @@ type Props = {
|
|
|
5
6
|
textColor?: string;
|
|
6
7
|
backgroundColor?: string;
|
|
7
8
|
};
|
|
8
|
-
declare const ChannelFrozenBanner: ({ text, backgroundColor, textColor, style }: Props) => JSX.Element;
|
|
9
|
+
declare const ChannelFrozenBanner: ({ text, backgroundColor, textColor, style }: Props) => React.JSX.Element;
|
|
9
10
|
export default ChannelFrozenBanner;
|
|
@@ -3,5 +3,5 @@ import { StyleProp, ViewStyle } from 'react-native';
|
|
|
3
3
|
type Props = React.PropsWithChildren<{
|
|
4
4
|
style?: StyleProp<ViewStyle>;
|
|
5
5
|
}>;
|
|
6
|
-
declare const DialogBox: ({ style, children }: Props) => JSX.Element;
|
|
6
|
+
declare const DialogBox: ({ style, children }: Props) => React.JSX.Element;
|
|
7
7
|
export default DialogBox;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
2
|
import { StyleProp, ViewStyle } from 'react-native';
|
|
3
3
|
import Icon from '../../components/Icon';
|
|
4
4
|
type Props = React.PropsWithChildren<{
|
|
5
5
|
style?: StyleProp<ViewStyle>;
|
|
6
6
|
}>;
|
|
7
|
-
declare const DialogSheet: ((props: Props) =>
|
|
7
|
+
declare const DialogSheet: ((props: Props) => ReactNode) & {
|
|
8
8
|
Item: typeof SheetItem;
|
|
9
9
|
};
|
|
10
10
|
export type SheetItemProps = {
|
|
@@ -14,5 +14,5 @@ export type SheetItemProps = {
|
|
|
14
14
|
titleColor?: string;
|
|
15
15
|
disabled?: boolean;
|
|
16
16
|
};
|
|
17
|
-
declare const SheetItem: ({ icon, title, iconColor, titleColor, disabled }: SheetItemProps) => JSX.Element;
|
|
17
|
+
declare const SheetItem: ({ icon, title, iconColor, titleColor, disabled }: SheetItemProps) => React.JSX.Element;
|
|
18
18
|
export default DialogSheet;
|
|
@@ -38,7 +38,7 @@ type Props = React.PropsWithChildren<{
|
|
|
38
38
|
};
|
|
39
39
|
};
|
|
40
40
|
}>;
|
|
41
|
-
export declare const DialogProvider: ({ defaultLabels, children }: Props) => JSX.Element;
|
|
41
|
+
export declare const DialogProvider: ({ defaultLabels, children }: Props) => React.JSX.Element;
|
|
42
42
|
export declare const useActionMenu: () => Pick<DialogContextType, "openMenu">;
|
|
43
43
|
export declare const useAlert: () => Pick<DialogContextType, "alert">;
|
|
44
44
|
export declare const usePrompt: () => Pick<DialogContextType, "openPrompt">;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { SendbirdAdminMessage } from '@sendbird/uikit-utils';
|
|
2
3
|
import type { GroupChannelMessageProps } from './index';
|
|
3
|
-
declare const AdminMessage: (props: GroupChannelMessageProps<SendbirdAdminMessage>) => JSX.Element;
|
|
4
|
+
declare const AdminMessage: (props: GroupChannelMessageProps<SendbirdAdminMessage>) => React.JSX.Element;
|
|
4
5
|
export default AdminMessage;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { SendbirdFileMessage } from '@sendbird/uikit-utils';
|
|
2
3
|
import type { GroupChannelMessageProps } from './index';
|
|
3
4
|
type Props = GroupChannelMessageProps<SendbirdFileMessage>;
|
|
4
|
-
declare const FileMessage: (props: Props) => JSX.Element;
|
|
5
|
+
declare const FileMessage: (props: Props) => React.JSX.Element;
|
|
5
6
|
export default FileMessage;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { SendbirdFileMessage } from '@sendbird/uikit-utils';
|
|
2
3
|
import type { GroupChannelMessageProps } from './index';
|
|
3
|
-
declare const ImageFileMessage: (props: GroupChannelMessageProps<SendbirdFileMessage>) => JSX.Element;
|
|
4
|
+
declare const ImageFileMessage: (props: GroupChannelMessageProps<SendbirdFileMessage>) => React.JSX.Element;
|
|
4
5
|
export default ImageFileMessage;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { SendbirdFileMessage } from '@sendbird/uikit-utils';
|
|
2
3
|
import type { GroupChannelMessageProps } from './index';
|
|
3
4
|
type Props = GroupChannelMessageProps<SendbirdFileMessage, {
|
|
@@ -5,5 +6,5 @@ type Props = GroupChannelMessageProps<SendbirdFileMessage, {
|
|
|
5
6
|
path: string;
|
|
6
7
|
} | null>;
|
|
7
8
|
}>;
|
|
8
|
-
declare const VideoFileMessage: (props: Props) => JSX.Element;
|
|
9
|
+
declare const VideoFileMessage: (props: Props) => React.JSX.Element;
|
|
9
10
|
export default VideoFileMessage;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { SendbirdFileMessage } from '@sendbird/uikit-utils';
|
|
3
|
+
import type { GroupChannelMessageProps } from './index';
|
|
4
|
+
export type VoiceFileMessageState = {
|
|
5
|
+
status: 'preparing' | 'playing' | 'paused';
|
|
6
|
+
currentTime: number;
|
|
7
|
+
duration: number;
|
|
8
|
+
};
|
|
9
|
+
type Props = GroupChannelMessageProps<SendbirdFileMessage, {
|
|
10
|
+
durationMetaArrayKey?: string;
|
|
11
|
+
onUnmount: () => void;
|
|
12
|
+
}>;
|
|
13
|
+
declare const VoiceFileMessage: (props: Props) => React.JSX.Element;
|
|
14
|
+
export default VoiceFileMessage;
|