stream-chat-react 14.0.0-beta.3 → 14.0.0-beta.4
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/dist/cjs/WithAudioPlayback.236d404c.js +4670 -0
- package/dist/cjs/WithAudioPlayback.236d404c.js.map +1 -0
- package/dist/cjs/emojis.js +2 -2
- package/dist/cjs/emojis.js.map +1 -1
- package/dist/cjs/index.js +191 -264
- package/dist/cjs/index.js.map +1 -1
- package/dist/css/emoji-replacement.css +34 -0
- package/dist/css/emoji-replacement.css.map +1 -0
- package/dist/css/index.css +9 -25
- package/dist/css/index.css.map +1 -1
- package/dist/es/WithAudioPlayback.89700cb5.mjs +4654 -0
- package/dist/es/WithAudioPlayback.89700cb5.mjs.map +1 -0
- package/dist/es/emojis.mjs +2 -2
- package/dist/es/emojis.mjs.map +1 -1
- package/dist/es/index.mjs +230 -303
- package/dist/es/index.mjs.map +1 -1
- package/dist/types/components/Form/TextInput.d.ts +2 -2
- package/dist/types/components/Form/TextInput.d.ts.map +1 -1
- package/dist/types/components/Icons/IconGiphy.d.ts.map +1 -1
- package/dist/types/components/Icons/icons.d.ts +56 -340
- package/dist/types/components/Icons/icons.d.ts.map +1 -1
- package/dist/types/components/Loading/LoadingIndicator.d.ts +2 -2
- package/dist/types/components/Loading/LoadingIndicator.d.ts.map +1 -1
- package/dist/types/components/MessageComposer/AttachmentPreviewList/MediaAttachmentPreview.d.ts.map +1 -1
- package/dist/types/components/Poll/PollCreationDialog/OptionFieldSet.d.ts.map +1 -1
- package/package.json +3 -4
- package/dist/assets/icons/stream-chat-icons.eot +0 -0
- package/dist/assets/icons/stream-chat-icons.svg +0 -50
- package/dist/assets/icons/stream-chat-icons.ttf +0 -0
- package/dist/assets/icons/stream-chat-icons.woff +0 -0
- package/dist/assets/icons/stream-chat-icons.woff2 +0 -0
- package/dist/cjs/WithAudioPlayback.4a84360f.js +0 -4727
- package/dist/cjs/WithAudioPlayback.4a84360f.js.map +0 -1
- package/dist/css/v2/emoji-mart.css +0 -1
- package/dist/css/v2/emoji-replacement.css +0 -1
- package/dist/css/v2/index.css +0 -1
- package/dist/css/v2/index.layout.css +0 -1
- package/dist/es/WithAudioPlayback.a3d5a2fc.mjs +0 -4711
- package/dist/es/WithAudioPlayback.a3d5a2fc.mjs.map +0 -1
- package/dist/scss/v2/AIStateIndicator/AIStateIndicator-layout.scss +0 -3
- package/dist/scss/v2/AIStateIndicator/AIStateIndicator-theme.scss +0 -7
- package/dist/scss/v2/AttachmentList/AttachmentList-layout.scss +0 -701
- package/dist/scss/v2/AttachmentList/AttachmentList-theme.scss +0 -605
- package/dist/scss/v2/AttachmentPreviewList/AttachmentPreviewList-layout.scss +0 -141
- package/dist/scss/v2/AttachmentPreviewList/AttachmentPreviewList-theme.scss +0 -190
- package/dist/scss/v2/AudioRecorder/AudioRecorder-layout.scss +0 -139
- package/dist/scss/v2/AudioRecorder/AudioRecorder-theme.scss +0 -61
- package/dist/scss/v2/Autocomplete/Autocomplete-layout.scss +0 -94
- package/dist/scss/v2/Autocomplete/Autocomplete-theme.scss +0 -220
- package/dist/scss/v2/Avatar/Avatar-layout.scss +0 -137
- package/dist/scss/v2/Avatar/Avatar-theme.scss +0 -64
- package/dist/scss/v2/BaseImage/BaseImage-layout.scss +0 -21
- package/dist/scss/v2/BaseImage/BaseImage-theme.scss +0 -35
- package/dist/scss/v2/BaseImage/index.scss +0 -2
- package/dist/scss/v2/Channel/Channel-layout.scss +0 -141
- package/dist/scss/v2/Channel/Channel-theme.scss +0 -100
- package/dist/scss/v2/ChannelHeader/ChannelHeader-layout.scss +0 -27
- package/dist/scss/v2/ChannelHeader/ChannelHeader-theme.scss +0 -43
- package/dist/scss/v2/ChannelList/ChannelList-layout.scss +0 -65
- package/dist/scss/v2/ChannelList/ChannelList-theme.scss +0 -89
- package/dist/scss/v2/ChannelPreview/ChannelPreview-layout.scss +0 -126
- package/dist/scss/v2/ChannelPreview/ChannelPreview-theme.scss +0 -148
- package/dist/scss/v2/ChannelSearch/ChannelSearch-layout.scss +0 -122
- package/dist/scss/v2/ChannelSearch/ChannelSearch-theme.scss +0 -238
- package/dist/scss/v2/ChatView/ChatView-layout.scss +0 -43
- package/dist/scss/v2/ChatView/ChatView-theme.scss +0 -32
- package/dist/scss/v2/Dialog/Dialog-layout.scss +0 -70
- package/dist/scss/v2/Dialog/Dialog-theme.scss +0 -103
- package/dist/scss/v2/DragAndDropContainer/DragAndDropContainer-layout.scss +0 -5
- package/dist/scss/v2/DragAndDropContainer/DragAndDropContainer-theme.scss +0 -47
- package/dist/scss/v2/DropzoneContainer/DropzoneContainer-layout.scss +0 -14
- package/dist/scss/v2/DropzoneContainer/DropzoneContainer-theme.scss +0 -17
- package/dist/scss/v2/EditMessageForm/EditMessageForm-layout.scss +0 -51
- package/dist/scss/v2/EditMessageForm/EditMessageForm-theme.scss +0 -50
- package/dist/scss/v2/Form/Form-layout.scss +0 -49
- package/dist/scss/v2/Form/Form-theme.scss +0 -82
- package/dist/scss/v2/Icon/Icon-layout.scss +0 -98
- package/dist/scss/v2/Icon/Icon-theme.scss +0 -17
- package/dist/scss/v2/ImageCarousel/ImageCarousel-layout.scss +0 -51
- package/dist/scss/v2/ImageCarousel/ImageCarousel-theme.scss +0 -30
- package/dist/scss/v2/InfiniteScrollPaginator/InfiniteScrollPaginator-layout.scss +0 -4
- package/dist/scss/v2/LinkPreview/LinkPreview-layout.scss +0 -67
- package/dist/scss/v2/LinkPreview/LinkPreview-theme.scss +0 -32
- package/dist/scss/v2/LinkPreview/index.scss +0 -2
- package/dist/scss/v2/LoadingIndicator/LoadingIndicator-layout.scss +0 -64
- package/dist/scss/v2/LoadingIndicator/LoadingIndicator-theme.scss +0 -14
- package/dist/scss/v2/Location/Location-layout.scss +0 -52
- package/dist/scss/v2/Location/Location-theme.scss +0 -32
- package/dist/scss/v2/Message/Message-layout.scss +0 -619
- package/dist/scss/v2/Message/Message-theme.scss +0 -483
- package/dist/scss/v2/MessageActionsBox/MessageActionsBox-layout.scss +0 -21
- package/dist/scss/v2/MessageActionsBox/MessageActionsBox-theme.scss +0 -85
- package/dist/scss/v2/MessageBouncePrompt/MessageBouncePrompt-layout.scss +0 -19
- package/dist/scss/v2/MessageBouncePrompt/MessageBouncePrompt-theme.scss +0 -51
- package/dist/scss/v2/MessageInput/MessageInput-layout.scss +0 -268
- package/dist/scss/v2/MessageInput/MessageInput-theme.scss +0 -359
- package/dist/scss/v2/MessageList/MessageList-layout.scss +0 -65
- package/dist/scss/v2/MessageList/MessageList-theme.scss +0 -107
- package/dist/scss/v2/MessageList/VirtualizedMessageList-layout.scss +0 -57
- package/dist/scss/v2/MessageList/VirtualizedMessageList-theme.scss +0 -41
- package/dist/scss/v2/MessageReactions/MessageReactions-layout.scss +0 -143
- package/dist/scss/v2/MessageReactions/MessageReactions-theme.scss +0 -92
- package/dist/scss/v2/MessageReactions/MessageReactionsSelector-layout.scss +0 -86
- package/dist/scss/v2/MessageReactions/MessageReactionsSelector-theme.scss +0 -94
- package/dist/scss/v2/Modal/Modal-layout.scss +0 -74
- package/dist/scss/v2/Modal/Modal-theme.scss +0 -109
- package/dist/scss/v2/Notification/MessageNotification-layout.scss +0 -12
- package/dist/scss/v2/Notification/MessageNotification-theme.scss +0 -34
- package/dist/scss/v2/Notification/Notification-layout.scss +0 -7
- package/dist/scss/v2/Notification/Notification-theme.scss +0 -32
- package/dist/scss/v2/Notification/NotificationList-layout.scss +0 -11
- package/dist/scss/v2/Notification/NotificationList-theme.scss +0 -31
- package/dist/scss/v2/Poll/Poll-layout.scss +0 -493
- package/dist/scss/v2/Poll/Poll-theme.scss +0 -178
- package/dist/scss/v2/Search/Search-layout.scss +0 -148
- package/dist/scss/v2/Search/Search-theme.scss +0 -222
- package/dist/scss/v2/Thread/Thread-layout.scss +0 -65
- package/dist/scss/v2/Thread/Thread-theme.scss +0 -82
- package/dist/scss/v2/ThreadList/ThreadList-layout.scss +0 -152
- package/dist/scss/v2/ThreadList/ThreadList-theme.scss +0 -75
- package/dist/scss/v2/Tooltip/Tooltip-layout.scss +0 -10
- package/dist/scss/v2/Tooltip/Tooltip-theme.scss +0 -36
- package/dist/scss/v2/TypingIndicator/TypingIndicator-layout.scss +0 -31
- package/dist/scss/v2/TypingIndicator/TypingIndicator-theme.scss +0 -68
- package/dist/scss/v2/UnreadCountBadge/UnreadCountBadge-layout.scss +0 -49
- package/dist/scss/v2/UnreadCountBadge/UnreadCountBadge-theme.scss +0 -11
- package/dist/scss/v2/_base.scss +0 -65
- package/dist/scss/v2/_emoji-replacement.scss +0 -45
- package/dist/scss/v2/_global-layout-variables.scss +0 -65
- package/dist/scss/v2/_global-theme-variables.scss +0 -173
- package/dist/scss/v2/_icons.scss +0 -36
- package/dist/scss/v2/_palette-variables.scss +0 -55
- package/dist/scss/v2/_utils.scss +0 -212
- package/dist/scss/v2/_variables.scss +0 -2
- package/dist/scss/v2/common/CTAButton/CTAButton-layout.scss +0 -4
- package/dist/scss/v2/common/CTAButton/CTAButton-theme.scss +0 -42
- package/dist/scss/v2/common/CircleFAButton/CircleFAButton-layout.scss +0 -14
- package/dist/scss/v2/common/CircleFAButton/CircleFAButton-theme.scss +0 -35
- package/dist/scss/v2/index.layout.scss +0 -49
- package/dist/scss/v2/index.scss +0 -50
- package/dist/scss/v2/vendor/emoji-mart.scss +0 -514
- package/dist/scss/v2/vendor/react-image-gallery.scss +0 -258
- /package/dist/{assets → css/assets}/EmojiOneColor.woff2 +0 -0
- /package/dist/{assets → css/assets}/NotoColorEmoji-flags.woff2 +0 -0
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
@use '../utils';
|
|
2
|
-
|
|
3
|
-
.str-chat {
|
|
4
|
-
/* The border radius used for the borders of the component */
|
|
5
|
-
--str-chat__channel-border-radius: 0;
|
|
6
|
-
|
|
7
|
-
/* The text/icon color of the component */
|
|
8
|
-
--str-chat__channel-color: var(--str-chat__text-color);
|
|
9
|
-
|
|
10
|
-
/* The background color of the component */
|
|
11
|
-
--str-chat__channel-background-color: var(--str-chat__background-color);
|
|
12
|
-
|
|
13
|
-
/* Box shadow applied to the component */
|
|
14
|
-
--str-chat__channel-box-shadow: none;
|
|
15
|
-
|
|
16
|
-
/* Top border of the component */
|
|
17
|
-
--str-chat__channel-border-block-start: none;
|
|
18
|
-
|
|
19
|
-
/* Bottom border of the component */
|
|
20
|
-
--str-chat__channel-border-block-end: none;
|
|
21
|
-
|
|
22
|
-
/* Left (right in RTL layout) border of the component */
|
|
23
|
-
--str-chat__channel-border-inline-start: none;
|
|
24
|
-
|
|
25
|
-
/* Right (left in RTL layout) border of the component */
|
|
26
|
-
--str-chat__channel-border-inline-end: none;
|
|
27
|
-
|
|
28
|
-
/* The icon color used when no channel is selected */
|
|
29
|
-
--str-chat__channel-empty-indicator-color: var(--str-chat__disabled-color);
|
|
30
|
-
|
|
31
|
-
/* The text color used when no channel is selected */
|
|
32
|
-
--str-chat__channel-empty-color: var(--str-chat__text-low-emphasis-color);
|
|
33
|
-
|
|
34
|
-
/* The color of the loading indicator */
|
|
35
|
-
--str-chat__channel-loading-state-color: var(--str-chat__disabled-color);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.str-chat__channel {
|
|
39
|
-
@include utils.component-layer-overrides('channel');
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.str-chat__empty-channel {
|
|
43
|
-
--str-chat-icon-color: var(--str-chat__channel-empty-color);
|
|
44
|
-
@include utils.component-layer-overrides('channel');
|
|
45
|
-
@include utils.empty-theme('channel');
|
|
46
|
-
|
|
47
|
-
.str-chat__empty-channel-text {
|
|
48
|
-
color: var(--str-chat__channel-empty-color);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.str-chat__loading-channel {
|
|
53
|
-
@include utils.loading-animation;
|
|
54
|
-
|
|
55
|
-
.str-chat__loading-channel-header {
|
|
56
|
-
background-color: var(--str-chat__channel-header-background-color);
|
|
57
|
-
|
|
58
|
-
.str-chat__loading-channel-header-avatar {
|
|
59
|
-
@include utils.loading-item-background('channel');
|
|
60
|
-
border-radius: var(--str-chat__avatar-border-radius);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.str-chat__loading-channel-header-name,
|
|
64
|
-
.str-chat__loading-channel-header-info {
|
|
65
|
-
@include utils.loading-item-background('channel');
|
|
66
|
-
border-radius: var(--str-chat__border-radius-xs);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.str-chat__loading-channel-message-list {
|
|
71
|
-
background-color: var(--str-chat__message-list-background-color);
|
|
72
|
-
|
|
73
|
-
.str-chat__loading-channel-message-avatar {
|
|
74
|
-
@include utils.loading-item-background('channel');
|
|
75
|
-
border-radius: var(--str-chat__avatar-border-radius);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.str-chat__loading-channel-message-sender,
|
|
79
|
-
.str-chat__loading-channel-message-text,
|
|
80
|
-
.str-chat__loading-channel-message-date {
|
|
81
|
-
@include utils.loading-item-background('channel');
|
|
82
|
-
border-radius: var(--str-chat__message-bubble-border-radius);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.str-chat__loading-channel-message-input-row {
|
|
87
|
-
.str-chat__loading-channel-message-input,
|
|
88
|
-
.str-chat__loading-channel-message-send {
|
|
89
|
-
@include utils.loading-item-background('channel');
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.str-chat__loading-channel-message-input {
|
|
93
|
-
border-radius: var(--str-chat__message-textarea-border-radius);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.str-chat__loading-channel-message-send {
|
|
97
|
-
border-radius: var(--str-chat__message-send-border-radius);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
@use '../utils';
|
|
2
|
-
|
|
3
|
-
.str-chat__channel-header {
|
|
4
|
-
@include utils.header-layout;
|
|
5
|
-
|
|
6
|
-
// Only visible in theme-v1
|
|
7
|
-
.str-chat__header-hamburger {
|
|
8
|
-
display: none;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.str-chat__channel-header-end {
|
|
12
|
-
@include utils.header-text-layout;
|
|
13
|
-
|
|
14
|
-
p {
|
|
15
|
-
margin: 0;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.str-chat__channel-header-title,
|
|
19
|
-
.str-chat__channel-header-info {
|
|
20
|
-
@include utils.ellipsis-text;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.str-chat__channel-header-title {
|
|
24
|
-
@include utils.prevent-glitch-text-overflow;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
@use '../utils';
|
|
2
|
-
|
|
3
|
-
.str-chat {
|
|
4
|
-
/* The border radius used for the borders of the component */
|
|
5
|
-
--str-chat__channel-header-border-radius: 0;
|
|
6
|
-
|
|
7
|
-
/* The text/icon color of the component */
|
|
8
|
-
--str-chat__channel-header-color: 0;
|
|
9
|
-
|
|
10
|
-
/* The background color of the component */
|
|
11
|
-
--str-chat__channel-header-background-color: var(--str-chat__secondary-background-color);
|
|
12
|
-
|
|
13
|
-
/* Top border of the component */
|
|
14
|
-
--str-chat__channel-header-border-block-start: none;
|
|
15
|
-
|
|
16
|
-
/* Bottom border of the component */
|
|
17
|
-
--str-chat__channel-header-border-block-end: none;
|
|
18
|
-
|
|
19
|
-
/* Left (right in RTL layout) border of the component */
|
|
20
|
-
--str-chat__channel-header-border-inline-start: none;
|
|
21
|
-
|
|
22
|
-
/* Right (left in RTL layout) border of the component */
|
|
23
|
-
--str-chat__channel-header-border-inline-end: none;
|
|
24
|
-
|
|
25
|
-
/* Box shadow applied to the component */
|
|
26
|
-
--str-chat__channel-header-box-shadow: none;
|
|
27
|
-
|
|
28
|
-
/* The text/icon color used to display member information about the channel */
|
|
29
|
-
--str-chat__channel-header-info-color: var(--str-chat__text-low-emphasis-color);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.str-chat__channel-header {
|
|
33
|
-
@include utils.component-layer-overrides('channel-header');
|
|
34
|
-
|
|
35
|
-
.str-chat__channel-header-title {
|
|
36
|
-
font: var(--str-chat__subtitle-medium-text);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.str-chat__channel-header-info {
|
|
40
|
-
font: var(--str-chat__body-text);
|
|
41
|
-
color: var(--str-chat__channel-header-info-color);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
@use '../utils';
|
|
2
|
-
|
|
3
|
-
.str-chat__channel-list {
|
|
4
|
-
display: flex;
|
|
5
|
-
flex-direction: column;
|
|
6
|
-
height: 100%;
|
|
7
|
-
overflow-y: auto;
|
|
8
|
-
overflow-x: hidden;
|
|
9
|
-
|
|
10
|
-
.str-chat__channel-list-messenger {
|
|
11
|
-
height: 100%;
|
|
12
|
-
|
|
13
|
-
.str-chat__channel-list-messenger__main {
|
|
14
|
-
height: 100%;
|
|
15
|
-
|
|
16
|
-
.str-chat__channel-list-empty {
|
|
17
|
-
--str-chat-icon-height: calc(var(--str-chat__spacing-px) * 136);
|
|
18
|
-
@include utils.empty-layout;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
// Empty channel list for theme-v1
|
|
22
|
-
.str-chat__channel-list-empty-v1 {
|
|
23
|
-
display: none;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.str-chat__load-more-button {
|
|
29
|
-
display: flex;
|
|
30
|
-
justify-content: center;
|
|
31
|
-
margin: var(--str-chat__spacing-2) 0;
|
|
32
|
-
|
|
33
|
-
.str-chat__load-more-button__button {
|
|
34
|
-
@include utils.flex-row-center;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.stream-chat__paginated-list {
|
|
39
|
-
gap: 0;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.str-chat__channel-list-react {
|
|
44
|
-
overflow: hidden;
|
|
45
|
-
|
|
46
|
-
.str-chat__channel-list-messenger-react {
|
|
47
|
-
overflow: hidden;
|
|
48
|
-
padding-bottom: var(--str-chat__spacing-2_5);
|
|
49
|
-
|
|
50
|
-
.str-chat__channel-list-messenger-react__main {
|
|
51
|
-
overflow-y: auto;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.str-chat-angular__channel-list {
|
|
57
|
-
.str-chat__channel-list-messenger__main {
|
|
58
|
-
display: flex;
|
|
59
|
-
flex-direction: column;
|
|
60
|
-
|
|
61
|
-
stream-paginated-list {
|
|
62
|
-
min-height: 0;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
@use '../utils';
|
|
2
|
-
|
|
3
|
-
.str-chat {
|
|
4
|
-
/* The border radius used for the borders of the component */
|
|
5
|
-
--str-chat__channel-list-border-radius: 0;
|
|
6
|
-
|
|
7
|
-
/* The text/icon color of the component */
|
|
8
|
-
--str-chat__channel-list-color: var(--str-chat__text-color);
|
|
9
|
-
|
|
10
|
-
/* The background color of the component */
|
|
11
|
-
--str-chat__channel-list-background-color: var(--str-chat__secondary-background-color);
|
|
12
|
-
|
|
13
|
-
/* Box shadow applied to the component */
|
|
14
|
-
--str-chat__channel-list-box-shadow: none;
|
|
15
|
-
|
|
16
|
-
/* Top border of the component */
|
|
17
|
-
--str-chat__channel-list-border-block-start: none;
|
|
18
|
-
|
|
19
|
-
/* Bottom border of the component */
|
|
20
|
-
--str-chat__channel-list-border-block-end: none;
|
|
21
|
-
|
|
22
|
-
/* Left (right in RTL layout) border of the component */
|
|
23
|
-
--str-chat__channel-list-border-inline-start: none;
|
|
24
|
-
|
|
25
|
-
/* Right (left in RTL layout) border of the component */
|
|
26
|
-
--str-chat__channel-list-border-inline-end: 1px solid var(--str-chat__surface-color);
|
|
27
|
-
|
|
28
|
-
/* The border radius used for the borders of the load more button */
|
|
29
|
-
--str-chat__channel-list-load-more-border-radius: var(--str-chat__cta-button-border-radius);
|
|
30
|
-
|
|
31
|
-
/* The text/icon color of the load more button */
|
|
32
|
-
--str-chat__channel-list-load-more-color: var(--str-chat__cta-button-color);
|
|
33
|
-
|
|
34
|
-
/* The background color of the load more button */
|
|
35
|
-
--str-chat__channel-list-load-more-background-color: var(--str-chat__cta-button-background-color);
|
|
36
|
-
|
|
37
|
-
/* Box shadow applied to the load more button */
|
|
38
|
-
--str-chat__channel-list-load-more-box-shadow: var(--str-chat__cta-button-box-shadow);
|
|
39
|
-
|
|
40
|
-
/* Top border of the load more button */
|
|
41
|
-
--str-chat__channel-list-load-more-border-block-start: var(
|
|
42
|
-
--str-chat__cta-button-border-block-start
|
|
43
|
-
);
|
|
44
|
-
|
|
45
|
-
/* Bottom border of the load more button */
|
|
46
|
-
--str-chat__channel-list-load-more-border-block-end: var(--str-chat__cta-button-border-block-end);
|
|
47
|
-
|
|
48
|
-
/* Left (right in RTL layout) border of the load more button */
|
|
49
|
-
--str-chat__channel-list-load-more-border-inline-start: var(
|
|
50
|
-
--str-chat__cta-button-border-inline-start
|
|
51
|
-
);
|
|
52
|
-
|
|
53
|
-
/* Right (left in RTL layout) border of the load more button */
|
|
54
|
-
--str-chat__channel-list-load-more-border-inline-end: var(
|
|
55
|
-
--str-chat__cta-button-border-inline-end
|
|
56
|
-
);
|
|
57
|
-
|
|
58
|
-
/* The background color of the load more button in pressed state */
|
|
59
|
-
--str-chat__channel-list-load-more-pressed-background-color: var(
|
|
60
|
-
--str-chat__cta-button-pressed-background-color
|
|
61
|
-
);
|
|
62
|
-
|
|
63
|
-
/* The background color of the load more button in disabled state */
|
|
64
|
-
--str-chat__channel-list-load-more-disabled-background-color: var(
|
|
65
|
-
--str-chat__cta-button-disabled-background-color
|
|
66
|
-
);
|
|
67
|
-
|
|
68
|
-
/* The text/icon color of the load more button in disabled state */
|
|
69
|
-
--str-chat__channel-list-load-more-disabled-color: var(--str-chat__cta-button-disabled-color);
|
|
70
|
-
|
|
71
|
-
/* The text/icon color for the empty list state */
|
|
72
|
-
--str-chat__channel-list-empty-indicator-color: var(--str-chat__text-low-emphasis-color);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.str-chat__channel-list {
|
|
76
|
-
@include utils.component-layer-overrides('channel-list');
|
|
77
|
-
|
|
78
|
-
.str-chat__load-more-button__button {
|
|
79
|
-
@include utils.component-layer-overrides('channel-list-load-more');
|
|
80
|
-
@include utils.cta-button-overrides('channel-list-load-more');
|
|
81
|
-
width: 80%;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.str-chat__channel-list-empty {
|
|
85
|
-
--str-chat-icon-color: var(--str-chat__channel-list-empty-indicator-color);
|
|
86
|
-
@include utils.empty-theme('channel-list');
|
|
87
|
-
color: var(--str-chat__channel-list-empty-indicator-color);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
@use '../utils';
|
|
2
|
-
|
|
3
|
-
@mixin channel-preview-layout {
|
|
4
|
-
display: flex;
|
|
5
|
-
column-gap: var(--str-chat__spacing-2);
|
|
6
|
-
align-items: center;
|
|
7
|
-
justify-content: flex-start;
|
|
8
|
-
width: 100%;
|
|
9
|
-
padding: var(--str-chat__spacing-3) var(--str-chat__spacing-2);
|
|
10
|
-
margin: 0;
|
|
11
|
-
text-align: start;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
@mixin channel-preview-end-layout {
|
|
15
|
-
display: flex;
|
|
16
|
-
flex-direction: column;
|
|
17
|
-
row-gap: var(--str-chat__spacing-0_5);
|
|
18
|
-
width: 100%;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
// Unread badge will be bigger than channel name -> this would cause a layout shift when the unread badge appears -> this trick won't let the unread badge to increase the height of the container avoiding the layout shift
|
|
22
|
-
@mixin unread-badge-layout-fix {
|
|
23
|
-
.str-chat__channel-preview-end-first-row {
|
|
24
|
-
height: var(--str-chat__unread-badge-height);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.str-chat__channel-preview-container {
|
|
29
|
-
position: relative;
|
|
30
|
-
|
|
31
|
-
.str-chat__channel-preview__action-buttons {
|
|
32
|
-
position: absolute;
|
|
33
|
-
right: var(--str-chat__spacing-2);
|
|
34
|
-
bottom: var(--str-chat__spacing-3);
|
|
35
|
-
display: flex;
|
|
36
|
-
flex-direction: row;
|
|
37
|
-
align-items: center;
|
|
38
|
-
gap: 1px;
|
|
39
|
-
|
|
40
|
-
.str-chat__channel-preview__action-button {
|
|
41
|
-
|
|
42
|
-
--str-chat-icon-height: 13px;
|
|
43
|
-
cursor: pointer;
|
|
44
|
-
padding-block: 2px;
|
|
45
|
-
padding-inline: 4px;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.str-chat__channel-preview {
|
|
51
|
-
@include channel-preview-layout;
|
|
52
|
-
cursor: pointer;
|
|
53
|
-
|
|
54
|
-
.str-chat__channel-preview-end {
|
|
55
|
-
@include channel-preview-end-layout;
|
|
56
|
-
@include utils.ellipsis-text-parent;
|
|
57
|
-
|
|
58
|
-
.str-chat__channel-preview-end-first-row {
|
|
59
|
-
display: flex;
|
|
60
|
-
column-gap: var(--str-chat__spacing-1);
|
|
61
|
-
align-items: stretch;
|
|
62
|
-
|
|
63
|
-
.str-chat__channel-preview-unread-badge {
|
|
64
|
-
display: flex;
|
|
65
|
-
align-items: center;
|
|
66
|
-
padding: 0 var(--str-chat__spacing-2);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.str-chat__channel-preview-messenger--name {
|
|
70
|
-
width: 100%;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.str-chat__channel-preview-end-second-row {
|
|
75
|
-
@include utils.ellipsis-text-parent;
|
|
76
|
-
display: flex;
|
|
77
|
-
column-gap: var(--str-chat__spacing-1);
|
|
78
|
-
align-items: center;
|
|
79
|
-
|
|
80
|
-
.str-chat__channel-preview-messenger--last-message {
|
|
81
|
-
flex: 1;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.str-chat__channel-preview-messenger--status {
|
|
85
|
-
--str-chat-icon-height: calc(var(--str-chat__spacing-px) * 15);
|
|
86
|
-
|
|
87
|
-
svg {
|
|
88
|
-
width: calc(var(--str-chat__spacing-px) * 15);
|
|
89
|
-
height: calc(var(--str-chat__spacing-px) * 15);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.str-chat__channel-preview-messenger--name,
|
|
95
|
-
.str-chat__channel-preview-messenger--last-message {
|
|
96
|
-
@include utils.ellipsis-text;
|
|
97
|
-
@include utils.prevent-glitch-text-overflow;
|
|
98
|
-
min-width: 0;
|
|
99
|
-
|
|
100
|
-
p {
|
|
101
|
-
@include utils.ellipsis-text;
|
|
102
|
-
margin: 0;
|
|
103
|
-
// 40px is the width of the two action buttons
|
|
104
|
-
max-width: calc(100% - 40px);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.str-chat__channel-preview-loading {
|
|
111
|
-
@include channel-preview-layout;
|
|
112
|
-
|
|
113
|
-
.str-chat__channel-preview-end-loading {
|
|
114
|
-
@include channel-preview-end-layout;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.str-chat__loading-channels-username {
|
|
118
|
-
height: calc(var(--str-chat__spacing-px) * 16);
|
|
119
|
-
width: calc(var(--str-chat__spacing-px) * 66);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.str-chat__loading-channels-status {
|
|
123
|
-
height: calc(var(--str-chat__spacing-px) * 16);
|
|
124
|
-
width: 100%;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
@use '../utils';
|
|
2
|
-
|
|
3
|
-
.str-chat {
|
|
4
|
-
/* The border radius used for the borders of the component */
|
|
5
|
-
--str-chat__channel-preview-border-radius: 0;
|
|
6
|
-
|
|
7
|
-
/* The text/icon color of the component */
|
|
8
|
-
--str-chat__channel-preview-color: var(--str-chat__text-color);
|
|
9
|
-
|
|
10
|
-
/* The background color of the component */
|
|
11
|
-
--str-chat__channel-preview-background-color: transparent;
|
|
12
|
-
|
|
13
|
-
/* Top border of the component */
|
|
14
|
-
--str-chat__channel-preview-border-block-start: none;
|
|
15
|
-
|
|
16
|
-
/* Bottom border of the component */
|
|
17
|
-
--str-chat__channel-preview-border-block-end: none;
|
|
18
|
-
|
|
19
|
-
/* Left (right in RTL layout) border of the component */
|
|
20
|
-
--str-chat__channel-preview-border-inline-start: none;
|
|
21
|
-
|
|
22
|
-
/* Right (left in RTL layout) border of the component */
|
|
23
|
-
--str-chat__channel-preview-border-inline-end: none;
|
|
24
|
-
|
|
25
|
-
/* Background color used for selected channel preview components */
|
|
26
|
-
--str-chat__channel-preview-active-background-color: var(--str-chat__surface-color);
|
|
27
|
-
|
|
28
|
-
/* Background color used for the hover state */
|
|
29
|
-
--str-chat__channel-preview-hover-background-color: var(--str-chat__secondary-surface-color);
|
|
30
|
-
|
|
31
|
-
/* Text color of the latest message when preview is not hovered or selected */
|
|
32
|
-
--str-chat__channel-preview-latest-message-secondary-color: var(
|
|
33
|
-
--str-chat__text-low-emphasis-color
|
|
34
|
-
);
|
|
35
|
-
|
|
36
|
-
/* The color of the loading indicator while initializing the channel list */
|
|
37
|
-
--str-chat__channel-preview-loading-state-color: var(--str-chat__disabled-color);
|
|
38
|
-
|
|
39
|
-
/* The background color of the unread badge */
|
|
40
|
-
--str-chat__channel-preview-unread-badge-background-color: var(--str-chat__unread-badge-color);
|
|
41
|
-
|
|
42
|
-
/* The color of the unread badge */
|
|
43
|
-
--str-chat__channel-preview-unread-badge-color: var(--str-chat__on-unread-badge-color);
|
|
44
|
-
|
|
45
|
-
/* The border radius used for the borders of the unread badge */
|
|
46
|
-
--str-chat__channel-preview-unread-badge-border-radius: var(--str-chat__border-radius-circle);
|
|
47
|
-
|
|
48
|
-
/* Top border of the unread badge */
|
|
49
|
-
--str-chat__channel-preview-unread-badge-border-block-start: none;
|
|
50
|
-
|
|
51
|
-
/* Bottom border of the unread badge */
|
|
52
|
-
--str-chat__channel-preview-unread-badge-border-block-end: none;
|
|
53
|
-
|
|
54
|
-
/* Left (right in RTL layout) border of the unread badge */
|
|
55
|
-
--str-chat__channel-preview-unread-badge-border-inline-start: none;
|
|
56
|
-
|
|
57
|
-
/* Right (left in RTL layout) border of the unread badge */
|
|
58
|
-
--str-chat__channel-preview-unread-badge-border-inline-end: none;
|
|
59
|
-
|
|
60
|
-
/* The color of the message status indicator icon (only available in Angular) */
|
|
61
|
-
--str-chat__channel-preview-message-status-color: var(--str-chat__primary-color);
|
|
62
|
-
|
|
63
|
-
/* The color of the text that displays the message time (only available in Angular) */
|
|
64
|
-
--str-chat__channel-preview-message-time-color: var(--str-chat__message-secondary-color);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.str-chat__channel-preview-container {
|
|
68
|
-
.str-chat__channel-preview__action-buttons {
|
|
69
|
-
.str-chat__channel-preview__action-button {
|
|
70
|
-
--str-chat-icon-color: var(--str-chat__text-low-emphasis-color);
|
|
71
|
-
border: none;
|
|
72
|
-
background-color: transparent;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.str-chat__channel-preview__action-button--pin.str-chat__channel-preview__action-button--active {
|
|
76
|
-
--str-chat-icon-color: var(--str-chat__unread-badge-color);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.str-chat__channel-preview__action-button--archive.str-chat__channel-preview__action-button--active {
|
|
80
|
-
--str-chat-icon-color: var(--str-chat__text-color);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.str-chat__channel-preview {
|
|
86
|
-
@include utils.component-layer-overrides('channel-preview');
|
|
87
|
-
|
|
88
|
-
&--active,
|
|
89
|
-
&-messenger--active {
|
|
90
|
-
background-color: var(--str-chat__channel-preview-active-background-color);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
&:hover {
|
|
94
|
-
background-color: var(--str-chat__channel-preview-hover-background-color);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.str-chat__channel-preview-end-first-row {
|
|
98
|
-
@include utils.channel-preview-display-name-theme;
|
|
99
|
-
|
|
100
|
-
.str-chat__channel-preview-unread-badge {
|
|
101
|
-
@include utils.component-layer-overrides('channel-preview-unread-badge');
|
|
102
|
-
font-size: 80%;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.str-chat__channel-preview-messenger--last-message {
|
|
106
|
-
font: var(--str-chat__body-text);
|
|
107
|
-
color: var(--str-chat__channel-preview-latest-message-secondary-color);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
&--active,
|
|
111
|
-
&:hover {
|
|
112
|
-
.str-chat__channel-preview-messenger--last-message {
|
|
113
|
-
color: var(--str-chat__channel-preview-color);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.str-chat__channel-preview-messenger--status {
|
|
119
|
-
--str-chat-icon-color: var(--str-chat__channel-preview-message-status-color);
|
|
120
|
-
color: var(--str-chat__channel-preview-message-status-color);
|
|
121
|
-
|
|
122
|
-
svg {
|
|
123
|
-
path {
|
|
124
|
-
fill: var(--str-chat__channel-preview-message-status-color);
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.str-chat__channel-preview-messenger--time {
|
|
130
|
-
color: var(--str-chat__channel-preview-message-time-color);
|
|
131
|
-
font: var(--str-chat__caption-text);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.str-chat__channel-preview-loading {
|
|
136
|
-
@include utils.loading-animation;
|
|
137
|
-
|
|
138
|
-
.str-chat__loading-channels-avatar,
|
|
139
|
-
.str-chat__loading-channels-username,
|
|
140
|
-
.str-chat__loading-channels-status {
|
|
141
|
-
@include utils.loading-item-background('channel-preview');
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.str-chat__loading-channels-username,
|
|
145
|
-
.str-chat__loading-channels-status {
|
|
146
|
-
border-radius: var(--str-chat__border-radius-xs);
|
|
147
|
-
}
|
|
148
|
-
}
|