stream-chat-angular 4.66.3 → 4.66.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/assets/version.d.ts +1 -1
- package/bundles/stream-chat-angular.umd.js +1 -1
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/version.js +2 -2
- package/fesm2015/stream-chat-angular.js +1 -1
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/package.json +1 -1
- package/src/assets/styles/assets/icons/stream-chat-icons.eot +0 -0
- package/src/assets/styles/assets/icons/stream-chat-icons.svg +46 -0
- package/src/assets/styles/assets/icons/stream-chat-icons.ttf +0 -0
- package/src/assets/styles/assets/icons/stream-chat-icons.woff +0 -0
- package/src/assets/styles/assets/icons/stream-chat-icons.woff2 +0 -0
- package/src/assets/styles/v2/assets/EmojiOneColor.woff2 +0 -0
- package/src/assets/styles/v2/assets/NotoColorEmoji-flags.woff2 +0 -0
- package/src/assets/styles/v2/assets/Poweredby_100px-White_VertText.png +0 -0
- package/src/assets/styles/v2/assets/icons/stream-chat-icons.eot +0 -0
- package/src/assets/styles/v2/assets/icons/stream-chat-icons.svg +46 -0
- package/src/assets/styles/v2/assets/icons/stream-chat-icons.ttf +0 -0
- package/src/assets/styles/v2/assets/icons/stream-chat-icons.woff +0 -0
- package/src/assets/styles/v2/assets/icons/stream-chat-icons.woff2 +0 -0
- package/src/assets/styles/v2/assets/str-chat__reaction-list-sprite@1x.png +0 -0
- package/src/assets/styles/v2/assets/str-chat__reaction-list-sprite@2x.png +0 -0
- package/src/assets/styles/v2/assets/str-chat__reaction-list-sprite@3x.png +0 -0
- package/src/assets/styles/v2/css/index.css +2 -2
- package/src/assets/styles/v2/css/index.layout.css +2 -2
- package/src/assets/styles/v2/scss/AttachmentList/AttachmentList-layout.scss +49 -13
- package/src/assets/styles/v2/scss/AttachmentList/AttachmentList-theme.scss +44 -0
- package/src/assets/styles/v2/scss/AttachmentPreviewList/AttachmentPreviewList-layout.scss +22 -9
- package/src/assets/styles/v2/scss/AttachmentPreviewList/AttachmentPreviewList-theme.scss +27 -0
- package/src/assets/styles/v2/scss/AudioRecorder/AudioRecorder-layout.scss +89 -0
- package/src/assets/styles/v2/scss/AudioRecorder/AudioRecorder-theme.scss +51 -0
- package/src/assets/styles/v2/scss/Avatar/Avatar-layout.scss +46 -0
- package/src/assets/styles/v2/scss/Channel/Channel-layout.scss +1 -0
- package/src/assets/styles/v2/scss/Channel/Channel-theme.scss +1 -0
- package/src/assets/styles/v2/scss/ChannelList/ChannelList-layout.scss +2 -2
- package/src/assets/styles/v2/scss/ChannelList/ChannelList-theme.scss +4 -2
- package/src/assets/styles/v2/scss/ChannelPreview/ChannelPreview-layout.scss +2 -0
- package/src/assets/styles/v2/scss/ChannelPreview/ChannelPreview-theme.scss +1 -0
- package/src/assets/styles/v2/scss/Icon/Icon-layout.scss +87 -0
- package/src/assets/styles/v2/scss/Icon/Icon-theme.scss +13 -0
- package/src/assets/styles/v2/scss/ImageCarousel/ImageCarousel-layout.scss +1 -0
- package/src/assets/styles/v2/scss/ImageCarousel/ImageCarousel-theme.scss +1 -0
- package/src/assets/styles/v2/scss/LoadingIndicator/LoadingIndicator-layout.scss +10 -1
- package/src/assets/styles/v2/scss/LoadingIndicator/LoadingIndicator-theme.scss +6 -4
- package/src/assets/styles/v2/scss/Message/Message-layout.scss +8 -2
- package/src/assets/styles/v2/scss/Message/Message-theme.scss +6 -0
- package/src/assets/styles/v2/scss/MessageInput/MessageInput-layout.scss +33 -1
- package/src/assets/styles/v2/scss/MessageInput/MessageInput-theme.scss +65 -2
- package/src/assets/styles/v2/scss/MessageList/MessageList-theme.scss +2 -0
- package/src/assets/styles/v2/scss/Modal/Modal-layout.scss +1 -0
- package/src/assets/styles/v2/scss/Modal/Modal-theme.scss +6 -0
- package/src/assets/styles/v2/scss/_base.scss +4 -3
- package/src/assets/styles/v2/scss/_icons.scss +22 -2
- package/src/assets/styles/v2/scss/index.layout.scss +2 -0
- package/src/assets/styles/v2/scss/index.scss +2 -0
- package/src/assets/version.ts +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@use '../utils';
|
|
2
2
|
|
|
3
3
|
.str-chat__attachment-preview-list {
|
|
4
|
+
--str-chat__loading-indicator-size: calc(var(--str-chat__spacing-px) * 18);
|
|
4
5
|
$preview-height: calc(var(--str-chat__spacing-px) * 72);
|
|
5
6
|
|
|
6
7
|
@include utils.flex-row-center;
|
|
@@ -46,6 +47,7 @@
|
|
|
46
47
|
}
|
|
47
48
|
}
|
|
48
49
|
|
|
50
|
+
.str-chat__attachment-preview-voice-recording,
|
|
49
51
|
.str-chat__attachment-preview-file {
|
|
50
52
|
display: flex;
|
|
51
53
|
justify-content: flex-start;
|
|
@@ -57,17 +59,10 @@
|
|
|
57
59
|
padding: 0 var(--str-chat__spacing-4);
|
|
58
60
|
column-gap: var(--str-chat__spacing-2);
|
|
59
61
|
|
|
60
|
-
.str-chat__attachment-preview-
|
|
61
|
-
@include utils.flex-row-center;
|
|
62
|
-
|
|
63
|
-
svg {
|
|
64
|
-
height: calc(var(--str-chat__spacing-px) * 37);
|
|
65
|
-
width: unset;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
|
|
62
|
+
.str-chat__attachment-preview-metadata,
|
|
69
63
|
.str-chat__attachment-preview-file-end {
|
|
70
64
|
@include utils.ellipsis-text-parent;
|
|
65
|
+
flex: 1;
|
|
71
66
|
display: flex;
|
|
72
67
|
flex-direction: column;
|
|
73
68
|
align-items: flex-start;
|
|
@@ -77,8 +72,24 @@
|
|
|
77
72
|
@include utils.ellipsis-text;
|
|
78
73
|
max-width: 100%;
|
|
79
74
|
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.str-chat__attachment-preview-file-icon {
|
|
78
|
+
--str-chat-icon-height: calc(var(--str-chat__spacing-px) * 37);
|
|
79
|
+
--str-chat-icon-width: auto;
|
|
80
|
+
@include utils.flex-row-center;
|
|
81
|
+
|
|
82
|
+
svg {
|
|
83
|
+
height: calc(var(--str-chat__spacing-px) * 37);
|
|
84
|
+
width: unset;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
80
88
|
|
|
89
|
+
.str-chat__attachment-preview-file {
|
|
90
|
+
.str-chat__attachment-preview-file-end {
|
|
81
91
|
.str-chat__attachment-preview-file-download {
|
|
92
|
+
--str-chat-icon-height: calc(var(--str-chat__spacing-px) * 16);
|
|
82
93
|
line-height: calc(var(--str-chat__spacing-px) * 13);
|
|
83
94
|
|
|
84
95
|
svg {
|
|
@@ -96,6 +107,7 @@
|
|
|
96
107
|
}
|
|
97
108
|
|
|
98
109
|
.str-chat__attachment-preview-delete {
|
|
110
|
+
--str-chat-icon-height: calc(var(--str-chat__spacing-px) * 24);
|
|
99
111
|
position: absolute;
|
|
100
112
|
top: calc(var(--str-chat__spacing-px) * 2);
|
|
101
113
|
inset-inline-end: calc(var(--str-chat__spacing-px) * 2);
|
|
@@ -109,6 +121,7 @@
|
|
|
109
121
|
}
|
|
110
122
|
|
|
111
123
|
.str-chat__attachment-preview-error {
|
|
124
|
+
--str-chat-icon-height: calc(var(--str-chat__spacing-px) * 24);
|
|
112
125
|
@include overlay;
|
|
113
126
|
@include utils.unset-button(unset);
|
|
114
127
|
inset-inline-start: 0;
|
|
@@ -107,6 +107,7 @@
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
+
.str-chat__attachment-preview-voice-recording,
|
|
110
111
|
.str-chat__attachment-preview-file {
|
|
111
112
|
@include utils.component-layer-overrides('attachment-preview-file');
|
|
112
113
|
|
|
@@ -114,6 +115,17 @@
|
|
|
114
115
|
font: var(--str-chat__subtitle-medium-text);
|
|
115
116
|
}
|
|
116
117
|
|
|
118
|
+
.str-chat__attachment-preview-file-download {
|
|
119
|
+
--str-chat-icon-color: var(--str-chat__attachment-preview-download-icon-color);
|
|
120
|
+
text-decoration: none;
|
|
121
|
+
|
|
122
|
+
svg path {
|
|
123
|
+
fill: var(--str-chat__attachment-preview-download-icon-color);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.str-chat__attachment-preview-file {
|
|
117
129
|
.str-chat__attachment-preview-file-download {
|
|
118
130
|
svg path {
|
|
119
131
|
fill: var(--str-chat__attachment-preview-download-icon-color);
|
|
@@ -121,7 +133,21 @@
|
|
|
121
133
|
}
|
|
122
134
|
}
|
|
123
135
|
|
|
136
|
+
.str-chat__attachment-preview-voice-recording {
|
|
137
|
+
.str-chat__recording-timer {
|
|
138
|
+
color: var(--str-chat__text-low-emphasis-color);
|
|
139
|
+
font: var(--str-chat__caption-medium-text);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
124
143
|
.str-chat__attachment-preview-delete {
|
|
144
|
+
--str-chat-icon-color: var(--str-chat__attachment-preview-close-icon-color);
|
|
145
|
+
|
|
146
|
+
.str-chat__icon {
|
|
147
|
+
background-color: var(--str-chat__attachment-preview-close-icon-background);
|
|
148
|
+
border-radius: 999px;
|
|
149
|
+
}
|
|
150
|
+
|
|
125
151
|
svg {
|
|
126
152
|
background-color: var(--str-chat__attachment-preview-close-icon-background);
|
|
127
153
|
border-radius: 999px;
|
|
@@ -133,6 +159,7 @@
|
|
|
133
159
|
}
|
|
134
160
|
|
|
135
161
|
.str-chat__attachment-preview-error {
|
|
162
|
+
--str-chat-icon-color: var(--str-chat__attachment-preview-retry-icon-color);
|
|
136
163
|
background-color: var(--str-chat__attachment-preview-overlay-color);
|
|
137
164
|
|
|
138
165
|
svg path {
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
@use '../utils';
|
|
2
|
+
|
|
3
|
+
.str-chat__audio_recorder-container {
|
|
4
|
+
bottom: 0;
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: flex-end;
|
|
8
|
+
width: 100%;
|
|
9
|
+
min-height: 3.25rem;
|
|
10
|
+
padding-inline: 1rem;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.str-chat__audio_recorder {
|
|
14
|
+
@include utils.flex-row-center;
|
|
15
|
+
gap: 0.375rem;
|
|
16
|
+
|
|
17
|
+
button {
|
|
18
|
+
@include utils.flex-row-center;
|
|
19
|
+
height: 32px;
|
|
20
|
+
width: 32px;
|
|
21
|
+
padding: 0;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.str-chat__audio_recorder__cancel-button svg {
|
|
25
|
+
height: 28px;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.str-chat__audio_recorder__toggle-playback-button svg {
|
|
29
|
+
height: 16px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.str-chat__audio_recorder__pause-recording-button svg {
|
|
33
|
+
height: 12px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.str-chat__audio_recorder__resume-recording-button svg {
|
|
37
|
+
height: 24px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.str-chat__audio_recorder__stop-button svg {
|
|
41
|
+
height: 12px;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.str-chat__audio_recorder__complete-button svg {
|
|
45
|
+
height: 16px;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.str-chat__recording-timer {
|
|
49
|
+
display: flex;
|
|
50
|
+
align-items: center;
|
|
51
|
+
width: 3rem;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.str-chat__recording-timer--hours {
|
|
55
|
+
width: 3.75rem;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.str-chat__wave-progress-bar__track-container {
|
|
59
|
+
padding-block: 0.5rem;
|
|
60
|
+
overflow-x: auto;
|
|
61
|
+
height: fit-content;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.str-chat__waveform-box-container {
|
|
65
|
+
flex: 1;
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
justify-content: flex-end;
|
|
69
|
+
width: 100%;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.str-chat__audio_recorder__waveform-box,
|
|
73
|
+
.str-chat__wave-progress-bar__track {
|
|
74
|
+
display: flex;
|
|
75
|
+
justify-content: flex-end;
|
|
76
|
+
align-items: center;
|
|
77
|
+
flex-wrap: nowrap;
|
|
78
|
+
height: 2rem;
|
|
79
|
+
margin-inline: 1rem;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.str-chat__wave-progress-bar__track {
|
|
83
|
+
width: 120px;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.str-chat__audio_recorder__waveform-box {
|
|
87
|
+
overflow-x: hidden;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
@use '../utils';
|
|
2
|
+
|
|
3
|
+
.str-chat__audio_recorder-container {
|
|
4
|
+
background-color: var(--str-chat__background-color);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.str-chat__audio_recorder {
|
|
8
|
+
//@include utils.component-layer-overrides('audio-recorder');
|
|
9
|
+
|
|
10
|
+
button {
|
|
11
|
+
@include utils.button-reset;
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
|
|
14
|
+
&:disabled {
|
|
15
|
+
cursor: default;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.str-chat__audio_recorder__cancel-button {
|
|
20
|
+
color: var(--str-chat__text-low-emphasis-color);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.str-chat__audio_recorder__toggle-playback-button {
|
|
24
|
+
color: var(--str-chat__text-low-emphasis-color);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.str-chat__audio_recorder__pause-recording-button,
|
|
28
|
+
.str-chat__audio_recorder__resume-recording-button {
|
|
29
|
+
color: var(--str-chat__danger-color);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.str-chat__audio_recorder__pause-recording-button {
|
|
33
|
+
border: 3px solid var(--str-chat__danger-color);
|
|
34
|
+
border-radius: var(--str-chat__border-radius-circle);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.str-chat__audio_recorder__stop-button,
|
|
38
|
+
.str-chat__audio_recorder__complete-button {
|
|
39
|
+
border-radius: var(--str-chat__border-radius-circle);
|
|
40
|
+
color: var(--str-chat__on-primary-color);
|
|
41
|
+
background-color: var(--str-chat__primary-color);
|
|
42
|
+
|
|
43
|
+
.str-chat__loading-indicator svg {
|
|
44
|
+
linearGradient {
|
|
45
|
+
stop:last-child {
|
|
46
|
+
stop-color: var(--str-chat__background-color);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -1,3 +1,28 @@
|
|
|
1
|
+
.str-chat {
|
|
2
|
+
/* The size of the avatar, only available in Angular v5+ */
|
|
3
|
+
--str-chat__avatar-size: calc(var(--str-chat__spacing-px) * 32);
|
|
4
|
+
|
|
5
|
+
.stream-chat__avatar--autocomplete-item {
|
|
6
|
+
--str-chat__avatar-size: calc(var(--str-chat__spacing-px) * 30);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.stream-chat__avatar--channel-header {
|
|
10
|
+
--str-chat__avatar-size: calc(var(--str-chat__spacing-px) * 40);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.stream-chat__avatar--channel-preview {
|
|
14
|
+
--str-chat__avatar-size: calc(var(--str-chat__spacing-px) * 49);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.stream-chat__avatar--quoted-message-sender {
|
|
18
|
+
--str-chat__avatar-size: calc(var(--str-chat__spacing-px) * 20);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.stream-chat__avatar--reaction {
|
|
22
|
+
--str-chat__avatar-size: calc(var(--str-chat__spacing-px) * 30);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
1
26
|
.str-chat__avatar {
|
|
2
27
|
position: relative;
|
|
3
28
|
|
|
@@ -21,3 +46,24 @@
|
|
|
21
46
|
width: calc(var(--str-chat__spacing-px) * 49);
|
|
22
47
|
height: calc(var(--str-chat__spacing-px) * 49);
|
|
23
48
|
}
|
|
49
|
+
|
|
50
|
+
.str-chat-angular__avatar {
|
|
51
|
+
height: var(--str-chat__avatar-size);
|
|
52
|
+
line-height: var(--str-chat__avatar-size);
|
|
53
|
+
width: var(--str-chat__avatar-size);
|
|
54
|
+
|
|
55
|
+
&.stream-chat__avatar--one-letter {
|
|
56
|
+
font-size: calc(var(--str-chat__avatar-size) * 0.5);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&.stream-chat__avatar--multiple-letters {
|
|
60
|
+
font-size: calc(var(--str-chat__avatar-size) * 0.3);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.str-chat__avatar-image {
|
|
64
|
+
height: 100%;
|
|
65
|
+
width: 100%;
|
|
66
|
+
object-fit: cover;;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
}
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
height: 100%;
|
|
15
15
|
|
|
16
16
|
.str-chat__channel-list-empty {
|
|
17
|
+
--str-chat-icon-height: calc(var(--str-chat__spacing-px) * 136);
|
|
17
18
|
@include utils.empty-layout;
|
|
18
19
|
}
|
|
19
20
|
|
|
@@ -40,7 +41,6 @@
|
|
|
40
41
|
}
|
|
41
42
|
}
|
|
42
43
|
|
|
43
|
-
|
|
44
44
|
.str-chat__channel-list-react {
|
|
45
45
|
overflow: hidden;
|
|
46
46
|
|
|
@@ -52,4 +52,4 @@
|
|
|
52
52
|
overflow-y: auto;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
}
|
|
55
|
+
}
|
|
@@ -68,8 +68,8 @@
|
|
|
68
68
|
/* The text/icon color of the load more button in disabled state */
|
|
69
69
|
--str-chat__channel-list-load-more-disabled-color: var(--str-chat__cta-button-disabled-color);
|
|
70
70
|
|
|
71
|
-
/* The icon color for the empty list state */
|
|
72
|
-
--str-chat__channel-list-empty-indicator-color: var(--str-
|
|
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
73
|
}
|
|
74
74
|
|
|
75
75
|
.str-chat__channel-list {
|
|
@@ -82,6 +82,8 @@
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
.str-chat__channel-list-empty {
|
|
85
|
+
--str-chat-icon-color: var(--str-chat__channel-list-empty-indicator-color);
|
|
85
86
|
@include utils.empty-theme('channel-list');
|
|
87
|
+
color: var(--str-chat__channel-list-empty-indicator-color);
|
|
86
88
|
}
|
|
87
89
|
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/* Only available in Angular v5+ */
|
|
2
|
+
.str-chat {
|
|
3
|
+
/* The height of the icon, only available in Angular v5+ */
|
|
4
|
+
--str-chat-icon-height: calc(var(--str-chat__spacing-px) * 24);
|
|
5
|
+
/* The width of the icon, only available in Angular v5+ */
|
|
6
|
+
--str-chat-icon-width: auto;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.str-chat__icon {
|
|
10
|
+
display: flex;
|
|
11
|
+
font-family: 'stream-chat-icons';
|
|
12
|
+
font-style: normal;
|
|
13
|
+
font-weight: normal;
|
|
14
|
+
font-size: var(--str-chat-icon-height);
|
|
15
|
+
line-height: var(--str-chat-icon-height);
|
|
16
|
+
height: var(--str-chat-icon-height);
|
|
17
|
+
width: var(--str-chat-icon-width);
|
|
18
|
+
|
|
19
|
+
&::before {
|
|
20
|
+
line-height: var(--str-chat-icon-height);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// File type icons
|
|
25
|
+
.str-chat__icon--unspecified-filetype {
|
|
26
|
+
content: url('data:image/svg+xml;base64,PHN2ZwogIGRhdGEtdGVzdGlkPSJ1bnNwZWNpZmllZC1maWxldHlwZSIKICB3aWR0aD0iMzQiCiAgaGVpZ2h0PSI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jU5MzEgMTcuNTA1NiAyMi4zMDU0IDE2LjMyMjIgMjEuNzI3NiAxNS4yMDI1QzIxLjYwMDEgMTQuOTU2MyAyMS43OTUgMTQuNjg2IDIyLjE2MDUgMTQuNjAyOFoiCiAgICBmaWxsPSIjMjcyN0IwIgogICAgZmlsbC1ydWxlPSJldmVub2RkIgogID48L3BhdGg+Cjwvc3ZnPg==');
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// Copy icon mapping here
|
|
34
|
+
.str-chat__icon--action::before {
|
|
35
|
+
content: '\e800';
|
|
36
|
+
} /* '' */
|
|
37
|
+
.str-chat__icon--arrow-down::before {
|
|
38
|
+
content: '\e801';
|
|
39
|
+
} /* '' */
|
|
40
|
+
.str-chat__icon--arrow-left::before {
|
|
41
|
+
content: '\e802';
|
|
42
|
+
} /* '' */
|
|
43
|
+
.str-chat__icon--arrow-right::before {
|
|
44
|
+
content: '\e803';
|
|
45
|
+
} /* '' */
|
|
46
|
+
.str-chat__icon--close::before {
|
|
47
|
+
content: '\e804';
|
|
48
|
+
} /* '' */
|
|
49
|
+
.str-chat__icon--arrow-up::before {
|
|
50
|
+
content: '\e805';
|
|
51
|
+
} /* '' */
|
|
52
|
+
.str-chat__icon--chat-bubble::before {
|
|
53
|
+
content: '\e806';
|
|
54
|
+
} /* '' */
|
|
55
|
+
.str-chat__icon--pause::before {
|
|
56
|
+
content: '\e807';
|
|
57
|
+
} /* '' */
|
|
58
|
+
.str-chat__icon--download::before {
|
|
59
|
+
content: '\e808';
|
|
60
|
+
} /* '' */
|
|
61
|
+
.str-chat__icon--delivered::before {
|
|
62
|
+
content: '\e809';
|
|
63
|
+
} /* '' */
|
|
64
|
+
.str-chat__icon--play::before {
|
|
65
|
+
content: '\e80a';
|
|
66
|
+
} /* '' */
|
|
67
|
+
.str-chat__icon--reaction::before {
|
|
68
|
+
content: '\e80b';
|
|
69
|
+
} /* '' */
|
|
70
|
+
.str-chat__icon--error::before {
|
|
71
|
+
content: '\e80c';
|
|
72
|
+
} /* '' */
|
|
73
|
+
.str-chat__icon--read::before {
|
|
74
|
+
content: '\e80d';
|
|
75
|
+
} /* '' */
|
|
76
|
+
.str-chat__icon--retry::before {
|
|
77
|
+
content: '\e80e';
|
|
78
|
+
} /* '' */
|
|
79
|
+
.str-chat__icon--reply-in-thread::before {
|
|
80
|
+
content: '\e80f';
|
|
81
|
+
} /* '' */
|
|
82
|
+
.str-chat__icon--send::before {
|
|
83
|
+
content: '\e810';
|
|
84
|
+
} /* '' */
|
|
85
|
+
.str-chat__icon--attach::before {
|
|
86
|
+
content: '\e811';
|
|
87
|
+
} /* '' */
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/* Only available in Angular v5+ */
|
|
2
|
+
.str-chat {
|
|
3
|
+
/* The color of the icon, only available in Angular v5+ */
|
|
4
|
+
--str-chat-icon-color: var(--str-chat__text-color);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.str-chat__icon {
|
|
8
|
+
color: var(--str-chat-icon-color);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.str-chat__icon--error {
|
|
12
|
+
--str-chat-icon-color: var(--str-chat__danger-color);
|
|
13
|
+
}
|
|
@@ -1,10 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
.str-chat {
|
|
2
|
+
/* The size of the loading indicator, only available in Angular v5+ */
|
|
3
|
+
--str-chat__loading-indicator-size: calc(var(--str-chat__spacing-px) * 15);
|
|
4
|
+
}
|
|
5
|
+
|
|
2
6
|
.str-chat__loading-indicator {
|
|
3
7
|
display: flex;
|
|
4
8
|
align-items: center;
|
|
5
9
|
justify-content: center;
|
|
6
10
|
animation: rotate 1s linear infinite;
|
|
7
11
|
|
|
12
|
+
svg {
|
|
13
|
+
width: var(--str-chat__loading-indicator-size);
|
|
14
|
+
height: var(--str-chat__loading-indicator-size);
|
|
15
|
+
}
|
|
16
|
+
|
|
8
17
|
@-webkit-keyframes rotate {
|
|
9
18
|
from {
|
|
10
19
|
-webkit-transform: rotate(0deg);
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
.str-chat {
|
|
2
|
+
/* The color of the loading indicator */
|
|
3
|
+
--str-chat__loading-indicator-color: var(--str-chat__primary-color);
|
|
4
|
+
}
|
|
5
|
+
|
|
1
6
|
.str-chat__loading-indicator {
|
|
2
7
|
svg {
|
|
3
8
|
linearGradient {
|
|
4
9
|
stop:last-child {
|
|
5
|
-
stop-color: var(
|
|
6
|
-
--str-chat__loading-indicator-color,
|
|
7
|
-
var(--str-chat__primary-color, #006cff)
|
|
8
|
-
);
|
|
10
|
+
stop-color: var(--str-chat__loading-indicator-color);
|
|
9
11
|
}
|
|
10
12
|
}
|
|
11
13
|
}
|
|
@@ -29,6 +29,10 @@
|
|
|
29
29
|
.str-chat__message-bubble {
|
|
30
30
|
max-width: var(--str-chat__message-max-width);
|
|
31
31
|
}
|
|
32
|
+
|
|
33
|
+
.str-chat__message-options {
|
|
34
|
+
--str-chat-icon-height: calc(var(--str-chat__message-options-button-size) * 0.7);
|
|
35
|
+
}
|
|
32
36
|
}
|
|
33
37
|
|
|
34
38
|
.str-chat__message.str-chat__message--has-attachment {
|
|
@@ -76,7 +80,7 @@
|
|
|
76
80
|
'. metadata';
|
|
77
81
|
column-gap: var(--str-chat__spacing-2);
|
|
78
82
|
grid-template-columns: auto 1fr;
|
|
79
|
-
justify-items: start;
|
|
83
|
+
justify-items: flex-start;
|
|
80
84
|
}
|
|
81
85
|
|
|
82
86
|
&.str-chat__message--me {
|
|
@@ -120,7 +124,7 @@
|
|
|
120
124
|
|
|
121
125
|
.str-chat__message-options {
|
|
122
126
|
grid-area: options;
|
|
123
|
-
align-items: start;
|
|
127
|
+
align-items: flex-start;
|
|
124
128
|
justify-content: flex-end;
|
|
125
129
|
flex-direction: row-reverse;
|
|
126
130
|
width: calc(3 * var(--str-chat__message-options-button-size));
|
|
@@ -218,6 +222,7 @@
|
|
|
218
222
|
}
|
|
219
223
|
|
|
220
224
|
.str-chat__message-status {
|
|
225
|
+
--str-chat-icon-height: calc(var(--str-chat__spacing-px) * 15);
|
|
221
226
|
@include utils.flex-row-center;
|
|
222
227
|
column-gap: var(--str-chat__spacing-0_5);
|
|
223
228
|
position: relative;
|
|
@@ -453,6 +458,7 @@
|
|
|
453
458
|
}
|
|
454
459
|
|
|
455
460
|
.str-chat__unread-messages-notification {
|
|
461
|
+
--str-chat-icon-height: calc(var(--str-chat__spacing-px) * 16);
|
|
456
462
|
position: absolute;
|
|
457
463
|
top: 0.75rem;
|
|
458
464
|
z-index: 2;
|
|
@@ -220,12 +220,15 @@
|
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
.str-chat__message-options {
|
|
223
|
+
--str-chat-icon-color: var(--str-chat__message-options-color);
|
|
224
|
+
|
|
223
225
|
.str-chat__message-actions-box-button,
|
|
224
226
|
.str-chat__message-reply-in-thread-button,
|
|
225
227
|
.str-chat__message-reactions-button {
|
|
226
228
|
// remove default button styles (React SDK uses button compared to div in Angular SDK)
|
|
227
229
|
@include utils.button-reset;
|
|
228
230
|
border-radius: var(--str-chat__message-options-border-radius);
|
|
231
|
+
color: var(--str-chat__message-options-color);
|
|
229
232
|
|
|
230
233
|
.str-chat__message-action-icon path {
|
|
231
234
|
fill: var(--str-chat__message-options-color);
|
|
@@ -272,6 +275,7 @@
|
|
|
272
275
|
}
|
|
273
276
|
|
|
274
277
|
.str-chat__message-status {
|
|
278
|
+
--str-chat-icon-color: var(--str-chat__message-status-color);
|
|
275
279
|
color: var(--str-chat__message-status-color);
|
|
276
280
|
font: var(--str-chat__body-text);
|
|
277
281
|
|
|
@@ -297,6 +301,7 @@
|
|
|
297
301
|
}
|
|
298
302
|
|
|
299
303
|
.str-chat__message-error-icon {
|
|
304
|
+
--str-chat-icon-color: var(--str-chat__message-error-message-color);
|
|
300
305
|
/* stylelint-disable-next-line selector-max-id */
|
|
301
306
|
svg #background {
|
|
302
307
|
fill: var(--str-chat__message-error-message-color);
|
|
@@ -393,6 +398,7 @@
|
|
|
393
398
|
}
|
|
394
399
|
|
|
395
400
|
.str-chat__unread-messages-notification {
|
|
401
|
+
--str-chat-icon-color: var(--str-chat__on-primary-color);
|
|
396
402
|
background-color: var(--str-chat__text-low-emphasis-color);
|
|
397
403
|
border-radius: 1.125rem;
|
|
398
404
|
|