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.
Files changed (144) hide show
  1. package/dist/cjs/WithAudioPlayback.236d404c.js +4670 -0
  2. package/dist/cjs/WithAudioPlayback.236d404c.js.map +1 -0
  3. package/dist/cjs/emojis.js +2 -2
  4. package/dist/cjs/emojis.js.map +1 -1
  5. package/dist/cjs/index.js +191 -264
  6. package/dist/cjs/index.js.map +1 -1
  7. package/dist/css/emoji-replacement.css +34 -0
  8. package/dist/css/emoji-replacement.css.map +1 -0
  9. package/dist/css/index.css +9 -25
  10. package/dist/css/index.css.map +1 -1
  11. package/dist/es/WithAudioPlayback.89700cb5.mjs +4654 -0
  12. package/dist/es/WithAudioPlayback.89700cb5.mjs.map +1 -0
  13. package/dist/es/emojis.mjs +2 -2
  14. package/dist/es/emojis.mjs.map +1 -1
  15. package/dist/es/index.mjs +230 -303
  16. package/dist/es/index.mjs.map +1 -1
  17. package/dist/types/components/Form/TextInput.d.ts +2 -2
  18. package/dist/types/components/Form/TextInput.d.ts.map +1 -1
  19. package/dist/types/components/Icons/IconGiphy.d.ts.map +1 -1
  20. package/dist/types/components/Icons/icons.d.ts +56 -340
  21. package/dist/types/components/Icons/icons.d.ts.map +1 -1
  22. package/dist/types/components/Loading/LoadingIndicator.d.ts +2 -2
  23. package/dist/types/components/Loading/LoadingIndicator.d.ts.map +1 -1
  24. package/dist/types/components/MessageComposer/AttachmentPreviewList/MediaAttachmentPreview.d.ts.map +1 -1
  25. package/dist/types/components/Poll/PollCreationDialog/OptionFieldSet.d.ts.map +1 -1
  26. package/package.json +3 -4
  27. package/dist/assets/icons/stream-chat-icons.eot +0 -0
  28. package/dist/assets/icons/stream-chat-icons.svg +0 -50
  29. package/dist/assets/icons/stream-chat-icons.ttf +0 -0
  30. package/dist/assets/icons/stream-chat-icons.woff +0 -0
  31. package/dist/assets/icons/stream-chat-icons.woff2 +0 -0
  32. package/dist/cjs/WithAudioPlayback.4a84360f.js +0 -4727
  33. package/dist/cjs/WithAudioPlayback.4a84360f.js.map +0 -1
  34. package/dist/css/v2/emoji-mart.css +0 -1
  35. package/dist/css/v2/emoji-replacement.css +0 -1
  36. package/dist/css/v2/index.css +0 -1
  37. package/dist/css/v2/index.layout.css +0 -1
  38. package/dist/es/WithAudioPlayback.a3d5a2fc.mjs +0 -4711
  39. package/dist/es/WithAudioPlayback.a3d5a2fc.mjs.map +0 -1
  40. package/dist/scss/v2/AIStateIndicator/AIStateIndicator-layout.scss +0 -3
  41. package/dist/scss/v2/AIStateIndicator/AIStateIndicator-theme.scss +0 -7
  42. package/dist/scss/v2/AttachmentList/AttachmentList-layout.scss +0 -701
  43. package/dist/scss/v2/AttachmentList/AttachmentList-theme.scss +0 -605
  44. package/dist/scss/v2/AttachmentPreviewList/AttachmentPreviewList-layout.scss +0 -141
  45. package/dist/scss/v2/AttachmentPreviewList/AttachmentPreviewList-theme.scss +0 -190
  46. package/dist/scss/v2/AudioRecorder/AudioRecorder-layout.scss +0 -139
  47. package/dist/scss/v2/AudioRecorder/AudioRecorder-theme.scss +0 -61
  48. package/dist/scss/v2/Autocomplete/Autocomplete-layout.scss +0 -94
  49. package/dist/scss/v2/Autocomplete/Autocomplete-theme.scss +0 -220
  50. package/dist/scss/v2/Avatar/Avatar-layout.scss +0 -137
  51. package/dist/scss/v2/Avatar/Avatar-theme.scss +0 -64
  52. package/dist/scss/v2/BaseImage/BaseImage-layout.scss +0 -21
  53. package/dist/scss/v2/BaseImage/BaseImage-theme.scss +0 -35
  54. package/dist/scss/v2/BaseImage/index.scss +0 -2
  55. package/dist/scss/v2/Channel/Channel-layout.scss +0 -141
  56. package/dist/scss/v2/Channel/Channel-theme.scss +0 -100
  57. package/dist/scss/v2/ChannelHeader/ChannelHeader-layout.scss +0 -27
  58. package/dist/scss/v2/ChannelHeader/ChannelHeader-theme.scss +0 -43
  59. package/dist/scss/v2/ChannelList/ChannelList-layout.scss +0 -65
  60. package/dist/scss/v2/ChannelList/ChannelList-theme.scss +0 -89
  61. package/dist/scss/v2/ChannelPreview/ChannelPreview-layout.scss +0 -126
  62. package/dist/scss/v2/ChannelPreview/ChannelPreview-theme.scss +0 -148
  63. package/dist/scss/v2/ChannelSearch/ChannelSearch-layout.scss +0 -122
  64. package/dist/scss/v2/ChannelSearch/ChannelSearch-theme.scss +0 -238
  65. package/dist/scss/v2/ChatView/ChatView-layout.scss +0 -43
  66. package/dist/scss/v2/ChatView/ChatView-theme.scss +0 -32
  67. package/dist/scss/v2/Dialog/Dialog-layout.scss +0 -70
  68. package/dist/scss/v2/Dialog/Dialog-theme.scss +0 -103
  69. package/dist/scss/v2/DragAndDropContainer/DragAndDropContainer-layout.scss +0 -5
  70. package/dist/scss/v2/DragAndDropContainer/DragAndDropContainer-theme.scss +0 -47
  71. package/dist/scss/v2/DropzoneContainer/DropzoneContainer-layout.scss +0 -14
  72. package/dist/scss/v2/DropzoneContainer/DropzoneContainer-theme.scss +0 -17
  73. package/dist/scss/v2/EditMessageForm/EditMessageForm-layout.scss +0 -51
  74. package/dist/scss/v2/EditMessageForm/EditMessageForm-theme.scss +0 -50
  75. package/dist/scss/v2/Form/Form-layout.scss +0 -49
  76. package/dist/scss/v2/Form/Form-theme.scss +0 -82
  77. package/dist/scss/v2/Icon/Icon-layout.scss +0 -98
  78. package/dist/scss/v2/Icon/Icon-theme.scss +0 -17
  79. package/dist/scss/v2/ImageCarousel/ImageCarousel-layout.scss +0 -51
  80. package/dist/scss/v2/ImageCarousel/ImageCarousel-theme.scss +0 -30
  81. package/dist/scss/v2/InfiniteScrollPaginator/InfiniteScrollPaginator-layout.scss +0 -4
  82. package/dist/scss/v2/LinkPreview/LinkPreview-layout.scss +0 -67
  83. package/dist/scss/v2/LinkPreview/LinkPreview-theme.scss +0 -32
  84. package/dist/scss/v2/LinkPreview/index.scss +0 -2
  85. package/dist/scss/v2/LoadingIndicator/LoadingIndicator-layout.scss +0 -64
  86. package/dist/scss/v2/LoadingIndicator/LoadingIndicator-theme.scss +0 -14
  87. package/dist/scss/v2/Location/Location-layout.scss +0 -52
  88. package/dist/scss/v2/Location/Location-theme.scss +0 -32
  89. package/dist/scss/v2/Message/Message-layout.scss +0 -619
  90. package/dist/scss/v2/Message/Message-theme.scss +0 -483
  91. package/dist/scss/v2/MessageActionsBox/MessageActionsBox-layout.scss +0 -21
  92. package/dist/scss/v2/MessageActionsBox/MessageActionsBox-theme.scss +0 -85
  93. package/dist/scss/v2/MessageBouncePrompt/MessageBouncePrompt-layout.scss +0 -19
  94. package/dist/scss/v2/MessageBouncePrompt/MessageBouncePrompt-theme.scss +0 -51
  95. package/dist/scss/v2/MessageInput/MessageInput-layout.scss +0 -268
  96. package/dist/scss/v2/MessageInput/MessageInput-theme.scss +0 -359
  97. package/dist/scss/v2/MessageList/MessageList-layout.scss +0 -65
  98. package/dist/scss/v2/MessageList/MessageList-theme.scss +0 -107
  99. package/dist/scss/v2/MessageList/VirtualizedMessageList-layout.scss +0 -57
  100. package/dist/scss/v2/MessageList/VirtualizedMessageList-theme.scss +0 -41
  101. package/dist/scss/v2/MessageReactions/MessageReactions-layout.scss +0 -143
  102. package/dist/scss/v2/MessageReactions/MessageReactions-theme.scss +0 -92
  103. package/dist/scss/v2/MessageReactions/MessageReactionsSelector-layout.scss +0 -86
  104. package/dist/scss/v2/MessageReactions/MessageReactionsSelector-theme.scss +0 -94
  105. package/dist/scss/v2/Modal/Modal-layout.scss +0 -74
  106. package/dist/scss/v2/Modal/Modal-theme.scss +0 -109
  107. package/dist/scss/v2/Notification/MessageNotification-layout.scss +0 -12
  108. package/dist/scss/v2/Notification/MessageNotification-theme.scss +0 -34
  109. package/dist/scss/v2/Notification/Notification-layout.scss +0 -7
  110. package/dist/scss/v2/Notification/Notification-theme.scss +0 -32
  111. package/dist/scss/v2/Notification/NotificationList-layout.scss +0 -11
  112. package/dist/scss/v2/Notification/NotificationList-theme.scss +0 -31
  113. package/dist/scss/v2/Poll/Poll-layout.scss +0 -493
  114. package/dist/scss/v2/Poll/Poll-theme.scss +0 -178
  115. package/dist/scss/v2/Search/Search-layout.scss +0 -148
  116. package/dist/scss/v2/Search/Search-theme.scss +0 -222
  117. package/dist/scss/v2/Thread/Thread-layout.scss +0 -65
  118. package/dist/scss/v2/Thread/Thread-theme.scss +0 -82
  119. package/dist/scss/v2/ThreadList/ThreadList-layout.scss +0 -152
  120. package/dist/scss/v2/ThreadList/ThreadList-theme.scss +0 -75
  121. package/dist/scss/v2/Tooltip/Tooltip-layout.scss +0 -10
  122. package/dist/scss/v2/Tooltip/Tooltip-theme.scss +0 -36
  123. package/dist/scss/v2/TypingIndicator/TypingIndicator-layout.scss +0 -31
  124. package/dist/scss/v2/TypingIndicator/TypingIndicator-theme.scss +0 -68
  125. package/dist/scss/v2/UnreadCountBadge/UnreadCountBadge-layout.scss +0 -49
  126. package/dist/scss/v2/UnreadCountBadge/UnreadCountBadge-theme.scss +0 -11
  127. package/dist/scss/v2/_base.scss +0 -65
  128. package/dist/scss/v2/_emoji-replacement.scss +0 -45
  129. package/dist/scss/v2/_global-layout-variables.scss +0 -65
  130. package/dist/scss/v2/_global-theme-variables.scss +0 -173
  131. package/dist/scss/v2/_icons.scss +0 -36
  132. package/dist/scss/v2/_palette-variables.scss +0 -55
  133. package/dist/scss/v2/_utils.scss +0 -212
  134. package/dist/scss/v2/_variables.scss +0 -2
  135. package/dist/scss/v2/common/CTAButton/CTAButton-layout.scss +0 -4
  136. package/dist/scss/v2/common/CTAButton/CTAButton-theme.scss +0 -42
  137. package/dist/scss/v2/common/CircleFAButton/CircleFAButton-layout.scss +0 -14
  138. package/dist/scss/v2/common/CircleFAButton/CircleFAButton-theme.scss +0 -35
  139. package/dist/scss/v2/index.layout.scss +0 -49
  140. package/dist/scss/v2/index.scss +0 -50
  141. package/dist/scss/v2/vendor/emoji-mart.scss +0 -514
  142. package/dist/scss/v2/vendor/react-image-gallery.scss +0 -258
  143. /package/dist/{assets → css/assets}/EmojiOneColor.woff2 +0 -0
  144. /package/dist/{assets → css/assets}/NotoColorEmoji-flags.woff2 +0 -0
@@ -1,220 +0,0 @@
1
- @use '../utils';
2
-
3
- .str-chat {
4
- /* The border radius used for the borders of the component */
5
- --str-chat__autocomplete-menu-border-radius: var(--str-chat__border-radius-xs);
6
-
7
- /* The text/icon color of the component */
8
- --str-chat__autocomplete-menu-color: var(--str-chat__text-color);
9
-
10
- /* The background color of the component */
11
- --str-chat__autocomplete-menu-background-color: var(--str-chat__secondary-background-color);
12
-
13
- /* Top border of the component */
14
- --str-chat__autocomplete-menu-border-block-start: none;
15
-
16
- /* Bottom border of the component */
17
- --str-chat__autocomplete-menu-border-block-end: none;
18
-
19
- /* Left (right in RTL layout) border of the component */
20
- --str-chat__autocomplete-menu-border-inline-start: none;
21
-
22
- /* Right (left in RTL layout) border of the component */
23
- --str-chat__autocomplete-menu-border-inline-end: none;
24
-
25
- /* Box shadow applied to the component */
26
- --str-chat__autocomplete-menu-box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
27
-
28
- /* The background color of a selected autocomplete item */
29
- --str-chat__autocomplete-active-background-color: var(--str-chat__surface-color);
30
-
31
- /* The border radius used for the borders of the component (ReactSDK) */
32
- --str-chat__suggestion-list-container-border-radius: var(--str-chat__border-radius-xs);
33
-
34
- /* The text/icon color of the component (ReactSDK) */
35
- --str-chat__suggestion-list-container-color: var(--str-chat__text-color);
36
-
37
- /* The background color of the component (ReactSDK) */
38
- --str-chat__suggestion-list-container-background-color: var(
39
- --str-chat__secondary-background-color
40
- );
41
-
42
- /* Top border of the component (ReactSDK) */
43
- --str-chat__suggestion-list-container-border-block-start: none;
44
-
45
- /* Bottom border of the component (ReactSDK) */
46
- --str-chat__suggestion-list-container-border-block-end: none;
47
-
48
- /* Left (right in RTL layout) border of the component (ReactSDK) */
49
- --str-chat__suggestion-list-container-border-inline-start: none;
50
-
51
- /* Right (left in RTL layout) border of the component (ReactSDK) */
52
- --str-chat__suggestion-list-container-border-inline-end: none;
53
-
54
- /* Box shadow applied to the component (ReactSDK) */
55
- --str-chat__suggestion-list-container-box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
56
-
57
- /* The background color of a selected autocomplete item (ReactSDK) */
58
- --str-chat__suggestion-list-item--selected-background-color: var(--str-chat__surface-color);
59
-
60
- /* The border radius used for the borders of the slash command item in the autocomplete list */
61
- --str-chat__slash-command-border-radius: 0;
62
-
63
- /* The text/icon color of the slash command item in the autocomplete list */
64
- --str-chat__slash-command-color: var(--str-chat__text-color);
65
-
66
- /* The background color of the slash command item in the autocomplete list */
67
- --str-chat__slash-command-background-color: transparent;
68
-
69
- /* Top border of the slash command item in the autocomplete list */
70
- --str-chat__slash-command-border-block-start: none;
71
-
72
- /* Bottom border of the slash command item in the autocomplete list */
73
- --str-chat__slash-command-border-block-end: none;
74
-
75
- /* Left (right in RTL layout) border of the slash command item in the autocomplete list */
76
- --str-chat__slash-command-border-inline-start: none;
77
-
78
- /* Right (left in RTL layout) border of the slash command item in the autocomplete list */
79
- --str-chat__slash-command-border-inline-end: none;
80
-
81
- /* Box shadow of the slash command item in the autocomplete list */
82
- --str-chat__slash-command-box-shadow: none;
83
-
84
- /* Text color of the arguments of a slash command item in the autocomplete list */
85
- --str-chat__slash-command-args-color: var(--str-chat__text-low-emphasis-color);
86
-
87
- /* The border radius used for the borders of the user mention item in the autocomplete list */
88
- --str-chat__mention-list-user-item-border-radius: 0;
89
-
90
- /* The text/icon color of the user mention item in the autocomplete list */
91
- --str-chat__mention-list-user-item-color: var(--str-chat__text-color);
92
-
93
- /* The background color of the user mention item in the autocomplete list */
94
- --str-chat__mention-list-user-item-background-color: transparent;
95
-
96
- /* Top border of the user mention item in the autocomplete list */
97
- --str-chat__mention-list-user-item-border-block-start: none;
98
-
99
- /* Bottom border of the user mention item in the autocomplete list */
100
- --str-chat__mention-list-user-item-border-block-end: none;
101
-
102
- /* Left (right in RTL layout) border of the user mention item in the autocomplete list */
103
- --str-chat__mention-list-user-item-border-inline-start: none;
104
-
105
- /* Right (left in RTL layout) border of the user mention item in the autocomplete list */
106
- --str-chat__mention-list-user-item-border-inline-end: none;
107
-
108
- /* Box shadow of the user mention item in the autocomplete list */
109
- --str-chat__mention-list-user-item-box-shadow: none;
110
-
111
- /* The text color of the at sign inside a user mention itome in the autocomplete list */
112
- --str-chat__mention-list-user-item-at-sign-color: var(--str-chat__primary-color);
113
-
114
- /* The font used in the emoji suggestion item in the autocomplete list */
115
- --str-chat__mention-list-emoji-item-font-family: var(--str-chat__font-family);
116
-
117
- /* The border radius used for the borders of the emoji suggestion item in the autocomplete list */
118
- --str-chat__mention-list-emoji-item-border-radius: 0;
119
-
120
- /* The text/icon color of the emoji suggestion item in the autocomplete list */
121
- --str-chat__mention-list-emoji-item-color: var(--str-chat__text-color);
122
-
123
- /* The background color of the emoji suggestion item in the autocomplete list */
124
- --str-chat__mention-list-emoji-item-background-color: transparent;
125
-
126
- /* Top border of the emoji suggestion item in the autocomplete list */
127
- --str-chat__mention-list-emoji-item-border-block-start: none;
128
-
129
- /* Bottom border of the emoji suggestion item in the autocomplete list */
130
- --str-chat__mention-list-emoji-item-border-block-end: none;
131
-
132
- /* Left (right in RTL layout) border of the emoji suggestion item in the autocomplete list */
133
- --str-chat__mention-list-emoji-item-border-inline-start: none;
134
-
135
- /* Right (left in RTL layout) border of the emoji suggestion item in the autocomplete list */
136
- --str-chat__mention-list-emoji-item-border-inline-end: none;
137
-
138
- /* Box shadow of the emoji suggestion item in the autocomplete list */
139
- --str-chat__mention-list-emoji-item-box-shadow: none;
140
- }
141
-
142
- // Class defined by Angular mentions
143
- // !important necessary to override library defined styles
144
- .mention-menu {
145
- @include utils.component-layer-overrides('autocomplete-menu', '!important');
146
-
147
- .active.mention-active > a {
148
- background-color: var(--str-chat__autocomplete-active-background-color) !important;
149
- }
150
-
151
- .mention-item {
152
- color: var(--str-chat__autocomplete-menu-color) !important;
153
- background-color: transparent !important;
154
- }
155
- }
156
-
157
- .str-chat__slash-command {
158
- @include utils.component-layer-overrides('slash-command');
159
- text-align: left;
160
- font: var(--str-chat__subtitle-text);
161
-
162
- .str-chat__slash-command-header {
163
- .str-chat__slash-command-name {
164
- text-transform: capitalize;
165
- font: var(--str-chat__subtitle2-text);
166
- }
167
-
168
- .str-chat__slash-command-args {
169
- color: var(--str-chat__slash-command-args-color);
170
- font: var(--str-chat__subtitle-text);
171
- }
172
- }
173
- }
174
-
175
- .str-chat__user-item {
176
- @include utils.component-layer-overrides('mention-list-user-item');
177
-
178
- .str-chat__user-item--name {
179
- font: var(--str-chat__subtitle-text);
180
- }
181
-
182
- .str-chat__user-item-at {
183
- font: var(--str-chat__subtitle2-text);
184
- color: var(--str-chat__mention-list-user-item-at-sign-color);
185
- }
186
- }
187
-
188
- .str-chat__emoji-item {
189
- @include utils.component-layer-overrides('mention-list-emoji-item');
190
-
191
- .str-chat__emoji-item--name {
192
- font: var(--str-chat__subtitle-text);
193
- }
194
- }
195
-
196
- // TODO?: rename to autocomplete? or create new file
197
- .str-chat__suggestion-list-container {
198
- @include utils.component-layer-overrides('suggestion-list-container');
199
-
200
- .str-chat__suggestion-list {
201
- .str-chat__suggestion-list-item {
202
- > a {
203
- text-decoration: none;
204
- }
205
- }
206
-
207
- .str-chat__suggestion-item--selected {
208
- background-color: var(--str-chat__suggestion-list-item--selected-background-color);
209
- }
210
- }
211
-
212
- .str-chat__suggestion-list--react {
213
- .str-chat__suggestion-list-item {
214
- > button {
215
- @include utils.button-reset;
216
- text-decoration: none;
217
- }
218
- }
219
- }
220
- }
@@ -1,137 +0,0 @@
1
- .str-chat {
2
- --str-chat__avatar-size: calc(var(--str-chat__spacing-px) * 32);
3
-
4
- .str-chat__avatar--autocomplete-item,
5
- .stream-chat__avatar--autocomplete-item {
6
- --str-chat__avatar-size: calc(var(--str-chat__spacing-px) * 30);
7
- }
8
-
9
- .str-chat__avatar--channel-header,
10
- .stream-chat__avatar--channel-header {
11
- --str-chat__avatar-size: calc(var(--str-chat__spacing-px) * 40);
12
- }
13
-
14
- .str-chat__avatar--channel-preview,
15
- .stream-chat__avatar--channel-preview {
16
- --str-chat__avatar-size: calc(var(--str-chat__spacing-px) * 49);
17
- }
18
-
19
- .str-chat__avatar--quoted-message-sender,
20
- .stream-chat__avatar--quoted-message-sender {
21
- --str-chat__avatar-size: calc(var(--str-chat__spacing-px) * 20);
22
- }
23
-
24
- .str-chat__avatar--reaction,
25
- .stream-chat__avatar--reaction {
26
- --str-chat__avatar-size: calc(var(--str-chat__spacing-px) * 30);
27
- }
28
-
29
- .str-chat__avatar--message-status,
30
- .stream-chat__avatar--message-status {
31
- --str-chat__avatar-size: calc(var(--str-chat__spacing-px) * 15);
32
- }
33
-
34
- .str-chat__avatar--poll-vote-author {
35
- --str-chat__avatar-size: calc(var(--str-chat__spacing-px) * 20);
36
- }
37
- }
38
-
39
- .str-chat__avatar {
40
- position: relative;
41
- display: flex;
42
- align-items: center;
43
- justify-content: center;
44
- height: var(--str-chat__avatar-size);
45
- line-height: var(--str-chat__avatar-size);
46
- width: var(--str-chat__avatar-size);
47
- min-width: var(--str-chat__avatar-size);
48
-
49
- &.str-chat__avatar--one-letter,
50
- &.stream-chat__avatar--one-letter {
51
- font-size: calc(var(--str-chat__avatar-size) * 0.5);
52
- }
53
-
54
- &.str-chat__avatar--no-letters {
55
- --str-chat-icon-width: calc(var(--str-chat__avatar-size) * 0.33);
56
- --str-chat-icon-height: calc(var(--str-chat__avatar-size) * 0.33);
57
- }
58
-
59
- &.str-chat__avatar--multiple-letters,
60
- &.stream-chat__avatar--multiple-letters {
61
- font-size: calc(var(--str-chat__avatar-size) * 0.3);
62
- }
63
-
64
- .str-chat__avatar-image {
65
- height: 100%;
66
- width: 100%;
67
- object-fit: cover;
68
- }
69
-
70
- .str-chat__avatar-fallback {
71
- text-align: center;
72
- height: inherit;
73
- width: inherit;
74
- }
75
-
76
- .str-chat__avatar--online-indicator {
77
- position: absolute;
78
- width: calc(var(--str-chat__spacing-px) * 12);
79
- height: calc(var(--str-chat__spacing-px) * 12);
80
- inset-inline-end: 3%;
81
- inset-block-start: 2%;
82
- }
83
- }
84
-
85
- .str-chat__loading-channels-avatar {
86
- flex-shrink: 0;
87
- width: calc(var(--str-chat__spacing-px) * 49);
88
- height: calc(var(--str-chat__spacing-px) * 49);
89
- }
90
-
91
-
92
- .str-chat__avatar-group {
93
- display: grid;
94
- grid-template-columns: repeat(2, 1fr);
95
- grid-template-rows: repeat(2, 1fr);
96
- height: var(--str-chat__avatar-size);
97
- line-height: var(--str-chat__avatar-size);
98
- width: var(--str-chat__avatar-size);
99
- min-width: var(--str-chat__avatar-size);
100
- overflow: hidden;
101
-
102
- &.str-chat__avatar-group--three-part {
103
- .str-chat__avatar:nth-child(1) {
104
- grid-area: 1 / 1 / 3 / 2;
105
- }
106
-
107
- .str-chat__avatar:nth-child(2) {
108
- grid-area: 1 / 2 / 2 / 3;
109
- }
110
-
111
- .str-chat__avatar:nth-child(3) {
112
- grid-area: 2 / 2 / 3 / 3;
113
- }
114
- }
115
-
116
- .str-chat__avatar {
117
- height: 100%;
118
- line-height: 100%;
119
- width: 100%;
120
- min-width: 100%;
121
-
122
- .str-chat__avatar-fallback, img {
123
- border-radius: 0;
124
- }
125
-
126
- &.str-chat__avatar--single .str-chat__avatar-fallback {
127
- display: flex;
128
- align-items: center;
129
- justify-content: center;
130
- font-size: calc(var(--str-chat__avatar-size) * 0.5);
131
- }
132
-
133
- .str-chat__avatar-fallback {
134
- font-size: calc(var(--str-chat__avatar-size) * 0.33);
135
- }
136
- }
137
- }
@@ -1,64 +0,0 @@
1
- @use '../utils';
2
-
3
- .str-chat {
4
- /* The border radius used for the borders of the component */
5
- --str-chat__avatar-border-radius: var(--str-chat__border-radius-circle);
6
-
7
- /* The text/icon color of the component */
8
- --str-chat__avatar-color: var(--str-chat__on-primary-color);
9
-
10
- /* The background color of the component */
11
- --str-chat__avatar-background-color: var(--str-chat__primary-color);
12
-
13
- /* Top border of the component */
14
- --str-chat__avatar-border-block-start: none;
15
-
16
- /* Bottom border of the component */
17
- --str-chat__avatar-border-block-end: none;
18
-
19
- /* Left (right in RTL layout) border of the component */
20
- --str-chat__avatar-border-inline-start: none;
21
-
22
- /* Right (left in RTL layout) border of the component */
23
- --str-chat__avatar-border-inline-end: none;
24
-
25
- /* Box shadow applied to the component */
26
- --str-chat__avatar-box-shadow: none;
27
-
28
- /* The color of the online indicator (only available in Angular SDK) */
29
- --str-chat__avatar-online-indicator-color: var(--str-chat__info-color);
30
-
31
- /* The border radius of the online indicator (only available in Angular SDK) */
32
- --str-chat__avatar-online-indicator-border-radius: var(--str-chat__border-radius-circle);
33
- }
34
-
35
- .str-chat__avatar {
36
- .str-chat__avatar-image {
37
- @include utils.component-layer-overrides('avatar');
38
- display: block;
39
- }
40
-
41
- &.str-chat__avatar--no-letters {
42
- --str-chat-icon-color: var(--str-chat__avatar-color);
43
- @include utils.component-layer-overrides('avatar');
44
- }
45
-
46
- .str-chat__avatar-fallback {
47
- @include utils.component-layer-overrides('avatar');
48
- text-transform: uppercase;
49
- }
50
-
51
- .str-chat__avatar--online-indicator {
52
- background-color: var(--str-chat__avatar-online-indicator-color);
53
- border-radius: var(--str-chat__avatar-online-indicator-border-radius);
54
- }
55
- }
56
-
57
- .str-chat__loading-channels-avatar {
58
- border-radius: var(--str-chat__avatar-border-radius);
59
- }
60
-
61
-
62
- .str-chat__avatar-group {
63
- border-radius: var(--str-chat__avatar-border-radius);
64
- }
@@ -1,21 +0,0 @@
1
- .str-chat__base-image {
2
- .str-chat__message-attachment-file--item-download {
3
- display: block;
4
- }
5
- }
6
-
7
- .str-chat__message-attachment-card--header,
8
- .str-chat__gallery-image,
9
- .str-chat__message-attachment--image {
10
- .str-chat__message-attachment-file--item-download {
11
- position: absolute;
12
- top: 0.5rem;
13
- right: 1rem;
14
- }
15
- }
16
-
17
- .str-chat__attachment-preview-image {
18
- .str-chat__message-attachment-file--item-download {
19
- display: none;
20
- }
21
- }
@@ -1,35 +0,0 @@
1
- @use '../utils';
2
-
3
- .str-chat__base-image {
4
- color: transparent; // prevents the img alt text from being seen through the mask
5
- }
6
-
7
- .str-chat__base-image--load-failed {
8
- @include utils.apply-mask-image(
9
- var(--str-chat__image-fallback-icon),
10
- var(--str-chat__disabled-color),
11
- 5rem 5rem
12
- );
13
-
14
- ~ .str-chat__message-attachment-file--item-download {
15
- .str-chat__message-attachment-download-icon path {
16
- fill: var(--str-chat__text-color);
17
- }
18
- }
19
- }
20
-
21
- .str-chat__attachment-preview-image {
22
- .str-chat__base-image--load-failed {
23
- $fallbackSize: 1.5rem 1.5rem;
24
- mask-size: $fallbackSize;
25
- -webkit-mask-size: $fallbackSize;
26
- }
27
- }
28
-
29
- .str-chat__attachment-preview-list .str-chat__attachment-preview-image--error {
30
- background-color: var(--str-chat__secondary-surface-color);
31
-
32
- .str-chat__attachment-preview-thumbnail.str-chat__base-image--load-failed {
33
- background-color: var(--str-chat__disabled-color);
34
- }
35
- }
@@ -1,2 +0,0 @@
1
- @import "BaseImage-layout";
2
- @import "BaseImage-theme";
@@ -1,141 +0,0 @@
1
- @use '../utils';
2
-
3
- .str-chat__channel {
4
- height: 100%;
5
- display: flex;
6
- flex-direction: column;
7
- position: relative;
8
-
9
- .str-chat__container {
10
- height: 100%;
11
- display: flex;
12
-
13
- .str-chat__main-panel {
14
- height: 100%;
15
- display: flex;
16
- flex-direction: column;
17
- width: 100%;
18
- min-width: 0;
19
- }
20
- }
21
- }
22
-
23
- .str-chat__empty-channel {
24
- --str-chat-icon-height: calc(var(--str-chat__spacing-px) * 136);
25
- @include utils.empty-layout;
26
- position: relative;
27
-
28
- .str-chat__empty-channel-notifications {
29
- position: absolute;
30
- inset-block-end: var(--str-chat__spacing-2);
31
- }
32
- }
33
-
34
- .str-chat__loading-channel {
35
- $text-height: calc(var(--str-chat__spacing-px) * 16);
36
- height: 100%;
37
- display: flex;
38
- flex-direction: column;
39
-
40
- .str-chat__loading-channel-header {
41
- @include utils.header-layout;
42
-
43
- .str-chat__loading-channel-header-avatar {
44
- flex-shrink: 0;
45
- width: calc(var(--str-chat__spacing-px) * 40);
46
- height: calc(var(--str-chat__spacing-px) * 40);
47
- border-radius: var(--str-chat__avatar-border-radius);
48
- }
49
-
50
- .str-chat__loading-channel-header-end {
51
- @include utils.header-text-layout;
52
-
53
- .str-chat__loading-channel-header-name {
54
- border-radius: var(--str-chat__border-radius-xs);
55
- height: $text-height;
56
- width: calc(var(--str-chat__spacing-px) * 170);
57
- }
58
-
59
- .str-chat__loading-channel-header-info {
60
- border-radius: var(--str-chat__border-radius-xs);
61
- height: $text-height;
62
- width: calc(var(--str-chat__spacing-px) * 66);
63
- }
64
- }
65
- }
66
-
67
- .str-chat__loading-channel-message-list {
68
- /* stylelint-disable */
69
- height: 100%;
70
- @include utils.message-list-spacing;
71
-
72
- .str-chat__loading-channel-message {
73
- display: flex;
74
- width: 100%;
75
- column-gap: var(--str-chat__spacing-2);
76
- padding: var(--str-chat__spacing-4) 0;
77
-
78
- .str-chat__loading-channel-message-avatar {
79
- flex-shrink: 0;
80
- width: calc(var(--str-chat__spacing-px) * 49);
81
- height: calc(var(--str-chat__spacing-px) * 49);
82
- }
83
-
84
- .str-chat__loading-channel-message-end {
85
- display: flex;
86
- flex-direction: column;
87
- width: 100%;
88
- row-gap: var(--str-chat__spacing-2);
89
-
90
- .str-chat__loading-channel-message-last-row {
91
- display: flex;
92
- width: 100%;
93
- column-gap: var(--str-chat__spacing-2);
94
- }
95
- }
96
-
97
- .str-chat__loading-channel-message-sender {
98
- height: $text-height;
99
- width: calc(var(--str-chat__spacing-px) * 66);
100
- }
101
-
102
- .str-chat__loading-channel-message-text {
103
- height: $text-height;
104
- width: 100%;
105
- }
106
-
107
- .str-chat__loading-channel-message-date {
108
- height: $text-height;
109
- width: calc(var(--str-chat__spacing-px) * 50);
110
- }
111
-
112
- &:nth-of-type(2) {
113
- flex-direction: row-reverse;
114
-
115
- .str-chat__loading-channel-message-sender {
116
- align-self: end;
117
- }
118
-
119
- .str-chat__loading-channel-message-last-row {
120
- flex-direction: row-reverse;
121
- }
122
- }
123
- }
124
- }
125
-
126
- .str-chat__loading-channel-message-input-row {
127
- display: flex;
128
- column-gap: var(--str-chat__spacing-2);
129
- padding: var(--str-chat__spacing-2);
130
-
131
- .str-chat__loading-channel-message-input {
132
- width: 100%;
133
- height: calc(var(--str-chat__spacing-px) * 36);
134
- }
135
-
136
- .str-chat__loading-channel-message-send {
137
- height: calc(var(--str-chat__spacing-px) * 36);
138
- width: calc(var(--str-chat__spacing-px) * 36);
139
- }
140
- }
141
- }