stream-chat-react 14.0.0-beta.5 → 14.0.0-beta.6

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 (33) hide show
  1. package/dist/cjs/{WithAudioPlayback.0c10cb67.js → WithAudioPlayback.f9abf707.js} +43 -33
  2. package/dist/cjs/WithAudioPlayback.f9abf707.js.map +1 -0
  3. package/dist/cjs/emojis.js +1 -1
  4. package/dist/cjs/index.js +54 -52
  5. package/dist/cjs/index.js.map +1 -1
  6. package/dist/css/index.css +149 -544
  7. package/dist/css/index.css.map +1 -1
  8. package/dist/es/{WithAudioPlayback.e7821fd4.mjs → WithAudioPlayback.d90f1a99.mjs} +43 -33
  9. package/dist/es/WithAudioPlayback.d90f1a99.mjs.map +1 -0
  10. package/dist/es/emojis.mjs +1 -1
  11. package/dist/es/index.mjs +55 -53
  12. package/dist/es/index.mjs.map +1 -1
  13. package/dist/types/components/Avatar/Avatar.d.ts +1 -1
  14. package/dist/types/components/Avatar/Avatar.d.ts.map +1 -1
  15. package/dist/types/components/Avatar/AvatarStack.d.ts +2 -2
  16. package/dist/types/components/Avatar/AvatarStack.d.ts.map +1 -1
  17. package/dist/types/components/Avatar/ChannelAvatar.d.ts +2 -6
  18. package/dist/types/components/Avatar/ChannelAvatar.d.ts.map +1 -1
  19. package/dist/types/components/Avatar/GroupAvatar.d.ts +6 -7
  20. package/dist/types/components/Avatar/GroupAvatar.d.ts.map +1 -1
  21. package/dist/types/components/ChannelHeader/ChannelHeader.d.ts.map +1 -1
  22. package/dist/types/components/ChannelListItem/ChannelListItemUI.d.ts.map +1 -1
  23. package/dist/types/components/ChannelListItem/utils.d.ts.map +1 -1
  24. package/dist/types/components/Icons/createIcon.d.ts +1 -1
  25. package/dist/types/components/Icons/createIcon.d.ts.map +1 -1
  26. package/dist/types/components/Icons/icons.d.ts +3 -3
  27. package/dist/types/components/Icons/icons.d.ts.map +1 -1
  28. package/dist/types/components/TypingIndicator/TypingIndicator.d.ts.map +1 -1
  29. package/dist/types/context/ComponentContext.d.ts +2 -2
  30. package/dist/types/context/ComponentContext.d.ts.map +1 -1
  31. package/package.json +1 -1
  32. package/dist/cjs/WithAudioPlayback.0c10cb67.js.map +0 -1
  33. package/dist/es/WithAudioPlayback.e7821fd4.mjs.map +0 -1
@@ -19,65 +19,9 @@
19
19
  .str-chat {
20
20
  /* Used for elements where sizing is necessary (such as icons, avatar), you can use this variable to scale those elements */
21
21
  --str-chat__spacing-px: 1px;
22
- /* Used for margins and paddings */
23
- --str-chat__spacing-0_5: var(--space-2);
24
- /* Used for margins and paddings */
25
- --str-chat__spacing-1: var(--space-4);
26
- /* Used for margins and paddings */
27
- --str-chat__spacing-1_5: calc(var(--space-4) + var(--space-2));
28
- /* Used for margins and paddings */
29
- --str-chat__spacing-2: var(--space-8);
30
- /* Used for margins and paddings */
31
- --str-chat__spacing-2_5: calc(var(--space-8) + var(--space-2));
32
- /* Used for margins and paddings */
33
- --str-chat__spacing-3: calc(var(--space-8) + var(--space-4));
34
- /* Used for margins and paddings */
35
- --str-chat__spacing-3_5: calc(var(--space-12) + var(--space-2));
36
- /* Used for margins and paddings */
37
- --str-chat__spacing-4: var(--space-16);
38
- /* Used for margins and paddings */
39
- --str-chat__spacing-5: var(--space-20);
40
- /* Used for margins and paddings */
41
- --str-chat__spacing-6: var(--space-24);
42
- /* Used for margins and paddings */
43
- --str-chat__spacing-7: calc(var(--space-24) + var(--space-4));
44
- /* Used for margins and paddings */
45
- --str-chat__spacing-8: var(--space-32);
46
- /* Used for margins and paddings */
47
- --str-chat__spacing-9: calc(var(--space-32) + var(--space-4));
48
- /* Used for margins and paddings */
49
- --str-chat__spacing-10: var(--space-40);
50
- /* Used for margins and paddings */
51
- --str-chat__spacing-11: calc(var(--space-40) + var(--space-4));
52
- /* Used for margins and paddings */
53
- --str-chat__spacing-12: calc(var(--space-48));
54
- /* Used for margins and paddings */
55
- --str-chat__spacing-14: calc(var(--space-48) + var(--space-8));
56
- /* Used for margins and paddings */
57
- --str-chat__spacing-16: var(--space-64);
58
22
  }
59
23
 
60
24
  .str-chat {
61
- /* Border radius used for squared elements */
62
- --str-chat__border-radius-none: var(--radius-none);
63
- /* Border radius used for subtle rounding */
64
- --str-chat__border-radius-xxs: var(--radius-xxs);
65
- /* Border radius used for subtle rounding */
66
- --str-chat__border-radius-xs: var(--radius-xs);
67
- /* Border radius used for slightly rounded elements */
68
- --str-chat__border-radius-sm: var(--radius-sm);
69
- /* Border radius used for slightly rounded elements */
70
- --str-chat__border-radius-md: var(--radius-md);
71
- /* Border radius used for rounded elements */
72
- --str-chat__border-radius-lg: var(--radius-lg);
73
- /* Border radius used for rounded elements */
74
- --str-chat__border-radius-xl: var(--radius-xl);
75
- /* Border radius used for rounded elements */
76
- --str-chat__border-radius-2xl: var(--radius-2xl);
77
- /* Border radius used for rounded elements */
78
- --str-chat__border-radius-3xl: var(--radius-3xl);
79
- /* Border radius used for rounded elements */
80
- --str-chat__border-radius-4xl: var(--radius-4xl);
81
25
  /* Border radius used for circular elements */
82
26
  --str-chat__border-radius-circle: var(--radius-max);
83
27
  /* The font used in the chat, by default, we use [preinstalled OS fonts](https://systemfontstack.com/) */
@@ -91,10 +35,10 @@
91
35
  var(--typography-font-size-xs) / var(--typography-line-height-tight)
92
36
  var(--str-chat__font-family);
93
37
  --str-chat__caption-emphasis-text: normal var(--typography-font-weight-semi-bold)
94
- var(--typography-font-size-sm) / var(--typography-line-height-tight)
38
+ var(--typography-font-size-sm) / var(--typography-line-height-normal)
95
39
  var(--str-chat__font-family);
96
40
  --str-chat__caption-default-text: normal var(--typography-font-weight-regular)
97
- var(--typography-font-size-sm) / var(--typography-line-height-tight)
41
+ var(--typography-font-size-sm) / var(--typography-line-height-normal)
98
42
  var(--str-chat__font-family);
99
43
  --str-chat__body-emphasis-text: normal var(--typography-font-weight-semi-bold)
100
44
  var(--typography-font-size-md) / var(--typography-line-height-normal)
@@ -119,54 +63,18 @@
119
63
  --str-chat__numeric-xl-text: normal var(--typography-font-weight-bold)
120
64
  var(--typography-font-size-sm) / 100% var(--str-chat__font-family);
121
65
  color: var(--text-primary, #1a1b25);
122
- /* The font used for caption texts */
123
- --str-chat__caption-text: 0.75rem/1.3 var(--str-chat__font-family);
124
- /* The font used for caption texts with emphasize */
125
- --str-chat__caption-medium-text: 500 0.75rem/1.3 var(--str-chat__font-family);
126
- /* The font used for caption texts with emphasize */
127
- --str-chat__caption-strong-text: 700 0.75rem/1.3 var(--str-chat__font-family);
128
- /* The font used for body texts */
129
- --str-chat__body-text: 0.875rem/1.2 var(--str-chat__font-family);
130
- /* The font used for body texts with emphasize */
131
- --str-chat__body-medium-text: 500 0.875rem/1.2 var(--str-chat__font-family);
132
- /* The font used for body texts */
133
- --str-chat__body2-text: 0.9375rem/1.2 var(--str-chat__font-family);
134
- /* The font used for body texts with emphasize */
135
- --str-chat__body2-medium-text: 500 0.9375rem/1.2 var(--str-chat__font-family);
136
- /* The font used for subtitle texts */
137
- --str-chat__subtitle-text: 1rem/1.25 var(--str-chat__font-family);
138
- /* The font used for subtitle texts with emphasize */
139
- --str-chat__subtitle-medium-text: 500 1rem/1.25 var(--str-chat__font-family);
140
- /* The font used for subtitle texts */
141
- --str-chat__subtitle2-text: 1.25rem/1.2 var(--str-chat__font-family);
142
- /* The font used for subtitle texts with emphasize */
143
- --str-chat__subtitle2-medium-text: 500 1.25rem/1.2 var(--str-chat__font-family);
144
- /* The font used for headline texts */
145
- --str-chat__headline-text: 1.5rem/1.2 var(--str-chat__font-family);
146
- /* The font used for headline texts */
147
- --str-chat__headline2-text: 1.8rem/1.2 var(--str-chat__font-family);
148
66
  }
149
67
 
150
68
  .str-chat,
151
69
  .str-chat__theme-light {
152
70
  /* Used for emphasis, brands can inject their main color using this variable */
153
71
  --str-chat__primary-color: var(--accent-primary);
154
- /* Used for emphasised overlays - color of --str-chat__primary-color with alpha channel */
155
- --str-chat__primary-overlay-color: rgba(0, 95, 255, 0.6);
156
- /* Used for emphasis, brands can inject their main color using this variable, it has less emphasis than primary color */
157
- --str-chat__primary-color-low-emphasis: var(--str-chat__blue300);
158
- /* Used to indicate that a UI element with primary color is in an active state */
159
- --str-chat__active-primary-color: var(--str-chat__blue600);
160
72
  /* If the primary color is used as a background, text/icons are displayed in this color */
161
73
  --str-chat__on-primary-color: var(--str-chat__grey50);
162
74
  /* Used as a background color for the main chat UI components */
163
75
  --str-chat__background-color: var(--str-chat__grey50);
164
76
  /* Used as a background color for the main chat UI components */
165
77
  --str-chat__secondary-background-color: var(--str-chat__grey50);
166
- /* Used as a background color to give emphasis, but less vibrant than the primary color */
167
- --str-chat__primary-surface-color: var(--str-chat__blue100);
168
- /* Used as a background color to give emphasis, but less vibrant than the primary surface color */
169
- --str-chat__primary-surface-color-low-emphasis: var(--str-chat__blue50);
170
78
  /* A neutral color used to give emphasis to different surfaces */
171
79
  --str-chat__surface-color: var(--str-chat__grey300);
172
80
  /* A neutral color used to give emphasis to different surfaces */
@@ -179,8 +87,6 @@
179
87
  --str-chat__text-low-emphasis-color: var(--str-chat__grey500);
180
88
  /* Used for displaying disabled UI elements (typically buttons) */
181
89
  --str-chat__disabled-color: var(--str-chat__grey400);
182
- /* Used for text/icon colors if disabled color is used as a background color */
183
- --str-chat__on-disabled-color: var(--str-chat__grey50);
184
90
  /* Used for error messages, and destructive actions */
185
91
  --str-chat__danger-color: var(--str-chat__red400);
186
92
  /* The background color used to highlight a message when jumping to a message. Only available in React SDK. */
@@ -189,16 +95,10 @@
189
95
  --str-chat__unread-badge-color: var(--str-chat__red400);
190
96
  /* Used for text/icon colors if unread badge color is used as a background color */
191
97
  --str-chat__on-unread-badge-color: var(--str-chat__grey50);
192
- /* The background color used for overlays */
193
- --str-chat__overlay-color: rgba(252, 252, 252, 0.9);
194
98
  /* The background color used for subtle overlays */
195
99
  --str-chat__secondary-overlay-color: rgba(0, 0, 0, 0.2);
196
100
  /* The text/icon color used on subtle overlays */
197
101
  --str-chat__secondary-overlay-text-color: var(--str-chat__grey50);
198
- /* The background color used for opaque surfaces */
199
- --str-chat__opaque-surface-background-color: rgba(0, 0, 0, 0.8);
200
- /* The text color used on opaque surfaces */
201
- --str-chat__opaque-surface-text-color: var(--str-chat__grey50);
202
102
  /* If a component has a box shadow applied to it, this will be the color used for the shadow */
203
103
  --str-chat__box-shadow-color: rgba(0, 0, 0, 0.18);
204
104
  --str-chat__box-shadow-elevation-1:
@@ -210,46 +110,26 @@
210
110
 
211
111
  .str-chat__theme-dark {
212
112
  --str-chat__primary-color: var(--accent-primary);
213
- --str-chat__primary-overlay-color: rgba(51, 126, 255, 0.6);
214
- --str-chat__primary-color-low-emphasis: var(--str-chat__blue700);
215
- --str-chat__active-primary-color: var(--str-chat__blue600);
216
113
  --str-chat__on-primary-color: var(--str-chat__grey50);
217
114
  --str-chat__background-color: var(--str-chat__grey950);
218
115
  --str-chat__secondary-background-color: var(--str-chat__grey900);
219
- --str-chat__primary-surface-color: var(--str-chat__blue900);
220
- --str-chat__primary-surface-color-low-emphasis: var(--str-chat__blue950);
221
116
  --str-chat__surface-color: var(--str-chat__grey700);
222
117
  --str-chat__secondary-surface-color: var(--str-chat__grey800);
223
118
  --str-chat__tertiary-surface-color: var(--str-chat__grey900);
224
119
  --str-chat__text-color: var(--str-chat__grey50);
225
120
  --str-chat__text-low-emphasis-color: var(--str-chat__grey500);
226
121
  --str-chat__disabled-color: var(--str-chat__grey600);
227
- --str-chat__on-disabled-color: var(--str-chat__grey50);
228
122
  --str-chat__danger-color: var(--str-chat__red600);
229
123
  --str-chat__message-highlight-color: var(--str-chat__yellow900);
230
124
  --str-chat__unread-badge-color: var(--str-chat__red400);
231
125
  --str-chat__on-unread-badge-color: var(--str-chat__grey50);
232
- --str-chat__overlay-color: rgba(0, 0, 0, 0.7);
233
126
  --str-chat__secondary-overlay-color: rgba(0, 0, 0, 0.4);
234
127
  --str-chat__secondary-overlay-text-color: var(--str-chat__grey50);
235
- --str-chat__opaque-surface-background-color: rgba(250, 250, 250, 0.85);
236
- --str-chat__opaque-surface-text-color: var(--str-chat__grey900);
237
128
  --str-chat__box-shadow-color: rgba(0, 0, 0, 0.8);
238
129
  --str-chat__info-color: var(--str-chat__green500);
239
130
  }
240
131
 
241
132
  .str-chat {
242
- --str-chat__blue950: #001333;
243
- --str-chat__blue900: #00163d;
244
- --str-chat__blue800: #002666;
245
- --str-chat__blue700: #003999;
246
- --str-chat__blue600: #004ccc;
247
- --str-chat__blue500: #005fff;
248
- --str-chat__blue400: #337eff;
249
- --str-chat__blue300: #669fff;
250
- --str-chat__blue200: #ccdfff;
251
- --str-chat__blue100: #e0f0ff;
252
- --str-chat__blue50: #ebf5ff;
253
133
  --str-chat__grey950: #080707;
254
134
  --str-chat__grey900: #17191c;
255
135
  --str-chat__grey800: #1c1e22;
@@ -261,33 +141,10 @@
261
141
  --str-chat__grey200: #e9eaed;
262
142
  --str-chat__grey100: #f4f4f5;
263
143
  --str-chat__grey50: #ffffff;
264
- --str-chat__red900: #330003;
265
- --str-chat__red800: #660006;
266
- --str-chat__red700: #990008;
267
144
  --str-chat__red600: #cc000b;
268
- --str-chat__red500: #ff000e;
269
145
  --str-chat__red400: #ff3742;
270
- --str-chat__red300: #ff666e;
271
- --str-chat__red200: #ff999f;
272
- --str-chat__red100: #ffe5e7;
273
- --str-chat__green900: #062d16;
274
- --str-chat__green800: #0d592c;
275
- --str-chat__green700: #138643;
276
- --str-chat__green600: #19b359;
277
146
  --str-chat__green500: #20e070;
278
- --str-chat__green400: #4ce68c;
279
- --str-chat__green300: #79eca9;
280
- --str-chat__green200: #a6f2c6;
281
- --str-chat__green100: #e9f1ff;
282
147
  --str-chat__yellow900: #332500;
283
- --str-chat__yellow800: #664900;
284
- --str-chat__yellow700: #996e00;
285
- --str-chat__yellow600: #cc9200;
286
- --str-chat__yellow500: #ffb700;
287
- --str-chat__yellow400: #ffd466;
288
- --str-chat__yellow300: #ffe299;
289
- --str-chat__yellow200: #fff1cc;
290
- --str-chat__yellow100: #fff8e5;
291
148
  }
292
149
 
293
150
  /**
@@ -1103,6 +960,9 @@
1103
960
  height: 1em;
1104
961
  fill: currentColor;
1105
962
  }
963
+ [dir=rtl] .str-chat__icon[data-rtl-mirror] {
964
+ transform: scaleX(-1);
965
+ }
1106
966
 
1107
967
  .str-chat__icon--exclamation-mark {
1108
968
  stroke: currentColor;
@@ -1519,16 +1379,6 @@
1519
1379
  var(--background-core-surface-subtle)
1520
1380
  );
1521
1381
  --str-chat__switch-field-border-radius: var(--radius-md);
1522
- --str-chat__switch-field-title-font-size: var(--typography-font-size-sm, 14px);
1523
- --str-chat__switch-field-title-font-weight: var(--typography-font-weight-medium, 500);
1524
- --str-chat__switch-field-title-line-height: var(--typography-line-height-tight, 16px);
1525
- --str-chat__switch-field-title-color: var(--text-primary, #1a1b25);
1526
- --str-chat__switch-field-description-font-size: var(--typography-font-size-xs, 12px);
1527
- --str-chat__switch-field-description-font-weight: var(
1528
- --typography-font-weight-regular,
1529
- 400
1530
- );
1531
- --str-chat__switch-field-description-color: var(--text-tertiary, #687385);
1532
1382
  --str-chat__switch-field__track-off-bg: var(
1533
1383
  --control-toggle-switch-bg,
1534
1384
  var(--border-core-on-surface, #a3acba)
@@ -1574,29 +1424,6 @@
1574
1424
  min-width: 0;
1575
1425
  cursor: pointer;
1576
1426
  }
1577
- .str-chat .str-chat__form__switch-field__content {
1578
- display: flex;
1579
- flex-direction: column;
1580
- gap: var(--spacing-xxs, 4px);
1581
- min-width: 0;
1582
- }
1583
- .str-chat .str-chat__form__switch-field__title {
1584
- font-size: var(--str-chat__switch-field-title-font-size);
1585
- font-weight: var(--str-chat__switch-field-title-font-weight);
1586
- line-height: var(--str-chat__switch-field-title-line-height);
1587
- color: var(--str-chat__switch-field-title-color);
1588
- }
1589
- .str-chat .str-chat__form__switch-field__description {
1590
- font-size: var(--str-chat__switch-field-description-font-size);
1591
- font-weight: var(--str-chat__switch-field-description-font-weight);
1592
- line-height: var(--str-chat__switch-field-title-line-height);
1593
- color: var(--str-chat__switch-field-description-color);
1594
- }
1595
- .str-chat .str-chat__form__switch-field__expanded-content {
1596
- flex-shrink: 0;
1597
- display: flex;
1598
- align-items: center;
1599
- }
1600
1427
  .str-chat .str-chat__form__switch-field__switch {
1601
1428
  display: flex;
1602
1429
  align-items: center;
@@ -1750,7 +1577,7 @@
1750
1577
  align-items: center;
1751
1578
  justify-content: center;
1752
1579
  flex-shrink: 0;
1753
- margin-right: calc(-1 * var(--space-4));
1580
+ margin-inline-end: calc(-1 * var(--space-4));
1754
1581
  color: var(--input-text-icon);
1755
1582
  }
1756
1583
  .str-chat__form-text-input--error .str-chat__form-text-input__trailing {
@@ -1850,7 +1677,7 @@
1850
1677
  font: var(--str-chat__heading-sm-text);
1851
1678
  }
1852
1679
  .str-chat__alert-root .str-chat__alert-header .str-chat__alert-header__copy .str-chat__alert-header__description {
1853
- font: var(--str-chat__caption-default-tex);
1680
+ font: var(--str-chat__caption-default-text);
1854
1681
  }
1855
1682
  .str-chat__alert-root .str-chat__alert-actions {
1856
1683
  display: flex;
@@ -1872,7 +1699,7 @@
1872
1699
  }
1873
1700
  .str-chat__callout .str-chat__callout__close-button {
1874
1701
  position: absolute;
1875
- right: var(--spacing-xs);
1702
+ inset-inline-end: var(--spacing-xs);
1876
1703
  top: var(--spacing-xs);
1877
1704
  }
1878
1705
 
@@ -2102,7 +1929,7 @@
2102
1929
  overflow-x: clip;
2103
1930
  text-overflow: ellipsis;
2104
1931
  flex: auto;
2105
- text-align: left;
1932
+ text-align: start;
2106
1933
  color: var(--text-primary);
2107
1934
  white-space: nowrap;
2108
1935
  }
@@ -2221,7 +2048,7 @@
2221
2048
  color: var(--text-primary);
2222
2049
  }
2223
2050
  .str-chat__prompt .str-chat__prompt__header .str-chat__prompt__header__description {
2224
- font: var(--str-chat__body-text);
2051
+ font: var(--str-chat__caption-default-text);
2225
2052
  color: var(--text-secondary);
2226
2053
  }
2227
2054
  .str-chat__prompt .str-chat__prompt__header .str-chat__prompt__header__close-button {
@@ -2236,9 +2063,6 @@
2236
2063
  overscroll-behavior: contain;
2237
2064
  scrollbar-gutter: stable;
2238
2065
  }
2239
- .str-chat__prompt .str-chat__prompt__body .str-chat__prompt__title {
2240
- margin-bottom: 1rem;
2241
- }
2242
2066
  .str-chat__prompt .str-chat__prompt__footer {
2243
2067
  display: flex;
2244
2068
  align-items: center;
@@ -2283,7 +2107,7 @@
2283
2107
  color: var(--text-primary);
2284
2108
  }
2285
2109
  .str-chat__viewer .str-chat__viewer__header .str-chat__viewer__header__description {
2286
- font: var(--str-chat__body-text);
2110
+ font: var(--str-chat__caption-default-text);
2287
2111
  color: var(--text-secondary);
2288
2112
  }
2289
2113
  .str-chat__viewer .str-chat__viewer__header .str-chat__viewer__header__go-back-button path {
@@ -2300,9 +2124,6 @@
2300
2124
  flex: 1;
2301
2125
  min-height: 0;
2302
2126
  }
2303
- .str-chat__viewer .str-chat__viewer__body .str-chat__viewer__title {
2304
- margin-bottom: 1rem;
2305
- }
2306
2127
  .str-chat__viewer .str-chat__viewer__footer {
2307
2128
  display: flex;
2308
2129
  align-items: center;
@@ -2358,7 +2179,7 @@
2358
2179
  }
2359
2180
  .str-chat__modal--open .str-chat__modal__overlay__close-button {
2360
2181
  position: absolute;
2361
- right: 10px;
2182
+ inset-inline-end: 10px;
2362
2183
  top: 10px;
2363
2184
  padding: var(--spacing-xs);
2364
2185
  color: var(--text-on-accent);
@@ -2379,9 +2200,9 @@
2379
2200
 
2380
2201
  .str-chat {
2381
2202
  /* The margin applied to every attachment in the attachment list */
2382
- --str-chat__attachment-margin: var(--str-chat__spacing-0_5);
2383
- /* The border radius used for the borders of the component */
2384
- --str-chat__attachment-list-border-radius: 0;
2203
+ --str-chat__attachment-margin: var(--space-2)
2204
+ /* The border radius used for the borders of the component */
2205
+ --str-chat__attachment-list-border-radius: 0;
2385
2206
  /* The text/icon color of the component */
2386
2207
  --str-chat__attachment-list-color: var(--str-chat__text-color);
2387
2208
  /* The background color of the component */
@@ -2621,13 +2442,13 @@
2621
2442
  }
2622
2443
  .str-chat__attachment-list .str-chat__gallery .str-chat__message-attachment--svg-image,
2623
2444
  .str-chat__attachment-list .str-chat__message-attachment--image.str-chat__message-attachment--svg-image {
2624
- padding: var(--str-chat__spacing-6);
2445
+ padding: var(--space-24);
2625
2446
  }
2626
2447
  .str-chat__attachment-list .str-chat__gallery .str-chat__message-attachment--svg-image img,
2627
2448
  .str-chat__attachment-list .str-chat__message-attachment--image.str-chat__message-attachment--svg-image img {
2628
2449
  object-fit: contain;
2629
- max-width: calc(var(--str-chat__attachment-max-width) - var(--str-chat__spacing-6));
2630
- max-height: calc(var(--str-chat__attachment-max-width) - var(--str-chat__spacing-6));
2450
+ max-width: calc(var(--str-chat__attachment-max-width) - var(--space-24));
2451
+ max-height: calc(var(--str-chat__attachment-max-width) - var(--space-24));
2631
2452
  }
2632
2453
  .str-chat__attachment-list .str-chat__message-attachment-unsupported {
2633
2454
  background: var(--str-chat__file-attachment-background-color);
@@ -2641,8 +2462,8 @@
2641
2462
  display: flex;
2642
2463
  align-items: center;
2643
2464
  justify-content: center;
2644
- padding: var(--str-chat__spacing-2);
2645
- column-gap: var(--str-chat__spacing-4);
2465
+ padding: var(--space-8);
2466
+ column-gap: var(--space-16);
2646
2467
  }
2647
2468
  .str-chat__attachment-list .str-chat__message-attachment-unsupported .str-chat__file-icon {
2648
2469
  width: calc(var(--str-chat__spacing-px) * 30);
@@ -2680,7 +2501,7 @@
2680
2501
  flex-direction: column;
2681
2502
  align-items: flex-start;
2682
2503
  justify-content: center;
2683
- row-gap: var(--str-chat__spacing-0_5);
2504
+ row-gap: var(--space-2);
2684
2505
  min-width: 0;
2685
2506
  line-height: var(--typography-line-height-tight);
2686
2507
  }
@@ -2696,7 +2517,7 @@
2696
2517
  display: flex;
2697
2518
  align-items: center;
2698
2519
  justify-content: space-between;
2699
- column-gap: var(--str-chat__spacing-2);
2520
+ column-gap: var(--space-8);
2700
2521
  font-weight: var(--typography-font-weight-semi-bold);
2701
2522
  font-size: var(--typography-font-size-sm);
2702
2523
  }
@@ -2768,27 +2589,10 @@
2768
2589
  text-decoration: none;
2769
2590
  color: var(--str-chat__voice-recording-attachment-widget-color);
2770
2591
  }
2771
- .str-chat__attachment-list .str-chat__message-attachment__voice-recording-widget .str-chat__message-attachment__voice-recording-widget__metadata .str-chat__message-attachment-voice-recording-widget--first-row {
2772
- overflow-y: visible;
2773
- overflow-x: hidden;
2774
- overflow-x: clip;
2775
- min-width: 0;
2776
- width: 100%;
2777
- display: flex;
2778
- align-items: center;
2779
- justify-content: space-between;
2780
- gap: var(--str-chat__spacing-1);
2781
- }
2782
2592
  .str-chat__attachment-list .str-chat__message-attachment__voice-recording-widget .str-chat__message-attachment__voice-recording-widget__metadata .str-chat__message-attachment-download-icon svg {
2783
2593
  width: calc(var(--str-chat__spacing-px) * 24);
2784
2594
  height: calc(var(--str-chat__spacing-px) * 16);
2785
2595
  }
2786
- .str-chat__attachment-list .str-chat__message-attachment__voice-recording-widget .str-chat__message-attachment__voice-recording-widget__metadata .str-chat__message-attachment__voice-recording-widget__error-message {
2787
- display: flex;
2788
- align-items: center;
2789
- justify-content: flex-start;
2790
- gap: var(--str-chat__spacing-1);
2791
- }
2792
2596
  .str-chat__attachment-list .str-chat__message-attachment__voice-recording-widget .str-chat__message-attachment__voice-recording-widget__timer {
2793
2597
  min-width: calc(var(--str-chat__spacing-px) * 40);
2794
2598
  width: calc(var(--str-chat__spacing-px) * 40);
@@ -2797,9 +2601,6 @@
2797
2601
  .str-chat__attachment-list .str-chat__message-attachment-download-icon {
2798
2602
  --str-chat-icon-height: calc(var(--str-chat__spacing-px) * 16);
2799
2603
  }
2800
- .str-chat__attachment-list .str-chat__attachment-type-icon {
2801
- --str-chat-icon-height: calc(var(--str-chat__spacing-px) * 37);
2802
- }
2803
2604
 
2804
2605
  .str-chat__message.str-chat__message--has-single-attachment.str-chat__message--has-no-text .str-chat__message-bubble {
2805
2606
  border: 1px solid var(--chat-border-incoming);
@@ -3108,7 +2909,7 @@
3108
2909
  }
3109
2910
  .str-chat__message-attachment-geolocation .str-chat__message-attachment-geolocation__status .str-chat__message-attachment-geolocation__status--active .str-chat__message-attachment-geolocation__status--active-until {
3110
2911
  text-transform: lowercase;
3111
- font: var(--str-chat__caption-text);
2912
+ font: var(--str-chat__metadata-emphasis-text);
3112
2913
  }
3113
2914
 
3114
2915
  .str-chat {
@@ -3140,7 +2941,7 @@
3140
2941
  align-items: center;
3141
2942
  gap: var(--spacing-xxs, 4px);
3142
2943
  position: absolute;
3143
- left: 8px;
2944
+ inset-inline-start: 8px;
3144
2945
  bottom: 8px;
3145
2946
  border-radius: var(--radius-lg, 12px);
3146
2947
  background-color: var(--badge-bg-overlay, rgba(0, 0, 0, 0.75));
@@ -3302,7 +3103,7 @@
3302
3103
  grid-template-rows: 50% 50%;
3303
3104
  overflow: hidden;
3304
3105
  border-radius: var(--radius-lg);
3305
- gap: var(--str-chat__spacing-0_5);
3106
+ gap: var(--space-2);
3306
3107
  width: var(--str-chat__attachment-max-width);
3307
3108
  max-width: var(--str-chat__attachment-max-width);
3308
3109
  height: var(--str-chat__attachment-max-width);
@@ -3524,7 +3325,12 @@
3524
3325
  flex: 1;
3525
3326
  min-width: 0;
3526
3327
  cursor: pointer;
3527
- background: linear-gradient(to right, var(--str-chat__primary-color) var(--str-chat__message-attachment-audio-widget-progress), var(--str-chat__disabled-color) var(--str-chat__message-attachment-audio-widget-progress));
3328
+ background: linear-gradient(to var(--str-chat__progress-direction, right), var(--str-chat__primary-color) var(--str-chat__message-attachment-audio-widget-progress), var(--str-chat__disabled-color) var(--str-chat__message-attachment-audio-widget-progress));
3329
+ }
3330
+ [dir=rtl] .str-chat .str-chat__message-attachment-audio-widget--progress-track {
3331
+ --str-chat__progress-direction: left;
3332
+ }
3333
+ .str-chat .str-chat__message-attachment-audio-widget--progress-track {
3528
3334
  border-radius: calc(var(--str-chat__spacing-px) * 5);
3529
3335
  }
3530
3336
  .str-chat .str-chat__message-attachment-audio-widget--progress-track .str-chat__message-attachment-audio-widget--progress-indicator {
@@ -3570,7 +3376,7 @@
3570
3376
  }
3571
3377
  .str-chat .str-chat__wave-progress-bar__track .str-chat__wave-progress-bar__progress-indicator {
3572
3378
  position: absolute;
3573
- left: 0;
3379
+ inset-inline-start: 0;
3574
3380
  border: 2px solid var(--base-white);
3575
3381
  box-shadow: var(--light-elevation-3);
3576
3382
  background: var(--accent-neutral);
@@ -3615,7 +3421,7 @@
3615
3421
  width: 100%;
3616
3422
  height: 100%;
3617
3423
  }
3618
- .str-chat__avatar .str-chat__icon--person {
3424
+ .str-chat__avatar .str-chat__icon {
3619
3425
  width: var(--avatar-icon-size);
3620
3426
  height: var(--avatar-icon-size);
3621
3427
  stroke-width: var(--avatar-icon-stroke-width);
@@ -3643,7 +3449,7 @@
3643
3449
  width: var(--avatar-status-badge-size);
3644
3450
  height: var(--avatar-status-badge-size);
3645
3451
  z-index: 1;
3646
- left: calc(var(--avatar-size) / 2 + var(--avatar-size) / 2 * cos(var(--avatar-status-badge-angle)) - var(--avatar-status-badge-size) / 2);
3452
+ inset-inline-start: calc(var(--avatar-size) / 2 + var(--avatar-size) / 2 * cos(var(--avatar-status-badge-angle)) - var(--avatar-status-badge-size) / 2);
3647
3453
  top: calc(var(--avatar-size) / 2 + var(--avatar-size) / 2 * sin(var(--avatar-status-badge-angle)) - var(--avatar-status-badge-size) / 2);
3648
3454
  border-radius: var(--radius-max, 9999px);
3649
3455
  border-style: solid;
@@ -3714,15 +3520,15 @@
3714
3520
  }
3715
3521
  .str-chat__avatar-stack.str-chat__avatar-stack--size-xs > .str-chat__avatar:not(:first-child),
3716
3522
  .str-chat__avatar-stack.str-chat__avatar-stack--size-xs .str-chat__avatar-stack__count-badge {
3717
- margin-left: calc(var(--spacing-xs) * -1);
3523
+ margin-inline-start: calc(var(--spacing-xs) * -1);
3718
3524
  }
3719
3525
  .str-chat__avatar-stack.str-chat__avatar-stack--size-sm > .str-chat__avatar:not(:first-child),
3720
3526
  .str-chat__avatar-stack.str-chat__avatar-stack--size-sm .str-chat__avatar-stack__count-badge {
3721
- margin-left: calc(var(--spacing-sm) * -1);
3527
+ margin-inline-start: calc(var(--spacing-sm) * -1);
3722
3528
  }
3723
3529
  .str-chat__avatar-stack.str-chat__avatar-stack--size-md > .str-chat__avatar:not(:first-child),
3724
3530
  .str-chat__avatar-stack.str-chat__avatar-stack--size-md .str-chat__avatar-stack__count-badge {
3725
- margin-left: calc(var(--spacing-sm) * -1);
3531
+ margin-inline-start: calc(var(--spacing-sm) * -1);
3726
3532
  }
3727
3533
 
3728
3534
  .str-chat__avatar-group {
@@ -3768,7 +3574,7 @@
3768
3574
  position: absolute;
3769
3575
  width: var(--avatar-group-online-badge-size);
3770
3576
  height: var(--avatar-group-online-badge-size);
3771
- right: -2px;
3577
+ inset-inline-end: -2px;
3772
3578
  top: -2px;
3773
3579
  border-radius: var(--radius-max, 9999px);
3774
3580
  border-style: solid;
@@ -3800,27 +3606,27 @@
3800
3606
  }
3801
3607
  .str-chat__avatar-group:has(> :last-child:nth-child(4)) > :nth-child(1) {
3802
3608
  top: 0;
3803
- left: 0;
3609
+ inset-inline-start: 0;
3804
3610
  }
3805
3611
  .str-chat__avatar-group:has(> :last-child:nth-child(4)) > :nth-child(2) {
3806
3612
  top: 0;
3807
- right: 0;
3613
+ inset-inline-end: 0;
3808
3614
  }
3809
3615
  .str-chat__avatar-group:has(> :last-child:nth-child(4)) > :nth-child(3) {
3810
3616
  bottom: 0;
3811
- left: 0;
3617
+ inset-inline-start: 0;
3812
3618
  }
3813
3619
  .str-chat__avatar-group:has(> :last-child:nth-child(4)) > :last-child {
3814
3620
  bottom: 0;
3815
- right: 0;
3621
+ inset-inline-end: 0;
3816
3622
  }
3817
3623
  .str-chat__avatar-group:has(> :last-child:nth-child(3)):has(> .str-chat__avatar-group__count-badge) > :nth-child(1) {
3818
3624
  top: 0;
3819
- left: 0;
3625
+ inset-inline-start: 0;
3820
3626
  }
3821
3627
  .str-chat__avatar-group:has(> :last-child:nth-child(3)):has(> .str-chat__avatar-group__count-badge) > :nth-child(2) {
3822
3628
  top: 0;
3823
- right: 0;
3629
+ inset-inline-end: 0;
3824
3630
  }
3825
3631
  .str-chat__avatar-group:has(> :last-child:nth-child(3)):has(> .str-chat__avatar-group__count-badge) > :last-child {
3826
3632
  bottom: 0;
@@ -3830,19 +3636,19 @@
3830
3636
  }
3831
3637
  .str-chat__avatar-group:has(> :last-child:nth-child(3)):not(:has(> .str-chat__avatar-group__count-badge)) > :nth-child(2) {
3832
3638
  bottom: 0;
3833
- left: 0;
3639
+ inset-inline-start: 0;
3834
3640
  }
3835
3641
  .str-chat__avatar-group:has(> :last-child:nth-child(3)):not(:has(> .str-chat__avatar-group__count-badge)) > :last-child {
3836
3642
  bottom: 0;
3837
- right: 0;
3643
+ inset-inline-end: 0;
3838
3644
  }
3839
3645
  .str-chat__avatar-group:has(> :last-child:nth-child(2)) > :nth-child(1) {
3840
3646
  top: 0;
3841
- left: 0;
3647
+ inset-inline-start: 0;
3842
3648
  }
3843
3649
  .str-chat__avatar-group:has(> :last-child:nth-child(2)) > :last-child {
3844
3650
  bottom: 0;
3845
- right: 0;
3651
+ inset-inline-end: 0;
3846
3652
  }
3847
3653
 
3848
3654
  .str-chat__channel {
@@ -4011,8 +3817,6 @@
4011
3817
  --str-chat__channel-border-inline-start: none;
4012
3818
  /* Right (left in RTL layout) border of the component */
4013
3819
  --str-chat__channel-border-inline-end: none;
4014
- /* The icon color used when no channel is selected */
4015
- --str-chat__channel-empty-indicator-color: var(--str-chat__disabled-color);
4016
3820
  /* The base surface color behind the loading shimmer */
4017
3821
  --str-chat__channel-loading-state-color: var(--background-core-surface);
4018
3822
  }
@@ -4267,7 +4071,7 @@
4267
4071
  .str-chat__channel-list .str-chat__channel-list-inner {
4268
4072
  height: 100%;
4269
4073
  overflow: hidden;
4270
- padding-bottom: var(--str-chat__spacing-2_5);
4074
+ padding-bottom: calc(var(--space-8) + var(--space-2));
4271
4075
  }
4272
4076
  .str-chat__channel-list .str-chat__channel-list-inner .str-chat__channel-list-inner__main {
4273
4077
  height: 100%;
@@ -4279,7 +4083,7 @@
4279
4083
  flex-direction: column;
4280
4084
  align-items: center;
4281
4085
  justify-content: center;
4282
- padding: var(--str-chat__spacing-3);
4086
+ padding: calc(var(--space-8) + var(--space-4));
4283
4087
  }
4284
4088
  .str-chat__channel-list .str-chat__channel-list-inner .str-chat__channel-list-inner__main .str-chat__channel-list-empty p {
4285
4089
  color: var(--text-secondary);
@@ -4288,16 +4092,13 @@
4288
4092
  .str-chat__channel-list .str-chat__load-more-button {
4289
4093
  display: flex;
4290
4094
  justify-content: center;
4291
- margin: var(--str-chat__spacing-2) 0;
4095
+ margin: var(--space-8) 0;
4292
4096
  }
4293
4097
  .str-chat__channel-list .str-chat__load-more-button .str-chat__load-more-button__button {
4294
4098
  display: flex;
4295
4099
  align-items: center;
4296
4100
  justify-content: center;
4297
4101
  }
4298
- .str-chat__channel-list .stream-chat__paginated-list {
4299
- gap: 0;
4300
- }
4301
4102
  .str-chat__channel-list .str-chat__load-more-button__button {
4302
4103
  background: var(--str-chat__channel-list-load-more-background-color);
4303
4104
  color: var(--str-chat__channel-list-load-more-color);
@@ -4429,7 +4230,7 @@
4429
4230
  border-radius: var(--radius-md, 8px);
4430
4231
  background: var(--background-core-elevation-3, #fff);
4431
4232
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 2px 4px 0 rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.06);
4432
- right: 10px;
4233
+ inset-inline-end: 10px;
4433
4234
  top: 10px;
4434
4235
  padding: var(--spacing-xxs);
4435
4236
  }
@@ -4547,7 +4348,7 @@
4547
4348
  flex-direction: column;
4548
4349
  padding: var(--spacing-md);
4549
4350
  gap: var(--spacing-xs);
4550
- border-right: 1px solid var(--str-chat-selector-border-color);
4351
+ border-inline-end: 1px solid var(--str-chat-selector-border-color);
4551
4352
  background-color: var(--str-chat-selector-background-color);
4552
4353
  /* Mobile: hide when nav closed, show when nav open. */
4553
4354
  }
@@ -4624,7 +4425,7 @@
4624
4425
  align-items: center;
4625
4426
  }
4626
4427
  .str-chat__chat-view .str-chat__chat-view__selector .str-chat__chat-view__selector-button-tooltip {
4627
- left: calc(100% + 8px);
4428
+ inset-inline-start: calc(100% + 8px);
4628
4429
  opacity: 0;
4629
4430
  pointer-events: none;
4630
4431
  position: absolute;
@@ -4750,11 +4551,6 @@
4750
4551
  border-top: var(--str-chat__drag-and-drop-container-on-dragover-border-block-start);
4751
4552
  }
4752
4553
 
4753
- .str-chat {
4754
- /* The text color used when no channel is selected */
4755
- --str-chat__channel-empty-color: var(--text-secondary);
4756
- }
4757
-
4758
4554
  .str-chat__empty-channel {
4759
4555
  --str-chat-icon-color: var(--text-tertiary);
4760
4556
  display: flex;
@@ -4782,10 +4578,6 @@
4782
4578
  height: 32px;
4783
4579
  color: var(--str-chat-icon-color);
4784
4580
  }
4785
- .str-chat__empty-channel .str-chat__empty-channel-notifications {
4786
- position: absolute;
4787
- inset-block-end: var(--str-chat__spacing-2);
4788
- }
4789
4581
  .str-chat__empty-channel .str-chat__empty-channel-text {
4790
4582
  margin: 0;
4791
4583
  max-width: 230px;
@@ -5026,10 +4818,10 @@
5026
4818
  pointer-events: none;
5027
4819
  }
5028
4820
  .str-chat .str-chat__gallery__nav-button--prev {
5029
- left: var(--spacing-sm);
4821
+ inset-inline-start: var(--spacing-sm);
5030
4822
  }
5031
4823
  .str-chat .str-chat__gallery__nav-button--next {
5032
- right: var(--spacing-sm);
4824
+ inset-inline-end: var(--spacing-sm);
5033
4825
  }
5034
4826
  .str-chat .str-chat__gallery__position-indicator {
5035
4827
  position: absolute;
@@ -5255,7 +5047,7 @@
5255
5047
  align-items: center;
5256
5048
  gap: var(--spacing-md);
5257
5049
  padding: var(--spacing-xs);
5258
- padding-left: var(--spacing-sm);
5050
+ padding-inline-start: var(--spacing-sm);
5259
5051
  }
5260
5052
  .str-chat__audio_recorder .str-chat__audio-recorder__recording-playback .str-chat__recording-timer,
5261
5053
  .str-chat__audio_recorder .str-chat__audio-recorder__recording-preview .str-chat__recording-timer {
@@ -5329,12 +5121,6 @@
5329
5121
  width: auto;
5330
5122
  min-width: 0;
5331
5123
  }
5332
- .str-chat__audio_recorder .str-chat__wave-progress-bar__track-container {
5333
- max-width: 500px;
5334
- }
5335
- .str-chat__audio_recorder .str-chat__waveform-box-container {
5336
- max-width: 520px;
5337
- }
5338
5124
  .str-chat__audio_recorder .str-chat__wave-progress-bar__track {
5339
5125
  display: flex;
5340
5126
  min-width: 0;
@@ -5366,11 +5152,8 @@
5366
5152
  --str-chat__message-options-button-size: calc(var(--str-chat__spacing-px) * 26);
5367
5153
  --str-chat__message-border-radius: 0;
5368
5154
  --str-chat__message-color: var(--str-chat__text-color);
5369
- --str-chat__message-error-message-color: var(--str-chat__danger-color);
5370
- --str-chat__message-secondary-color: var(--str-chat__text-low-emphasis-color);
5371
5155
  --str-chat__message-link-color: var(--chat-text-link);
5372
5156
  --str-chat__message-mention-color: var(--str-chat__primary-color);
5373
- --str-chat__message-replies-count-color: var(--str-chat__primary-color);
5374
5157
  --str-chat__message-background-color: transparent;
5375
5158
  --str-chat__message-highlighted-background-color: var(
5376
5159
  --str-chat__message-highlight-color
@@ -5397,7 +5180,7 @@
5397
5180
  --str-chat__message-bubble-border-inline-start: none;
5398
5181
  --str-chat__message-bubble-border-inline-end: none;
5399
5182
  --str-chat__message-bubble-box-shadow: none;
5400
- --str-chat__blocked-message-border-radius: var(--str-chat__border-radius-md);
5183
+ --str-chat__blocked-message-border-radius: var(--radius-md);
5401
5184
  --str-chat__blocked-message-color: var(--str-chat__text-low-emphasis-color);
5402
5185
  --str-chat__blocked-message-background-color: var(--str-chat__secondary-surface-color);
5403
5186
  --str-chat__blocked-message-border-block-start: none;
@@ -5405,10 +5188,6 @@
5405
5188
  --str-chat__blocked-message-border-inline-start: none;
5406
5189
  --str-chat__blocked-message-border-inline-end: none;
5407
5190
  --str-chat__blocked-message-box-shadow: none;
5408
- --str-chat__translation-notice-color: var(--str-chat__text-low-emphasis-color);
5409
- --str-chat__translation-notice-active-background-color: var(
5410
- --str-chat__tertiary-surface-color
5411
- );
5412
5191
  --str-chat__message-reactions-host-offset-x: calc(var(--spacing-xs) * -1);
5413
5192
  /* Background color for pinned messages (Figma: background/core/highlight) */
5414
5193
  --str-chat__message-pinned-background-color: var(--background-core-highlight);
@@ -5441,11 +5220,6 @@
5441
5220
  --str-chat-message-options-size: calc(3 * var(--str-chat__message-options-button-size));
5442
5221
  padding-inline: var(--str-chat__message-composer-padding);
5443
5222
  }
5444
- .str-chat__message.str-chat__message-without-touch-support {
5445
- --str-chat-message-options-size: calc(
5446
- 1 * var(--str-chat__message-options-button-size)
5447
- );
5448
- }
5449
5223
  .str-chat__message .str-chat__message-bubble {
5450
5224
  max-width: var(--str-chat__message-max-width);
5451
5225
  display: flex;
@@ -5502,7 +5276,7 @@
5502
5276
 
5503
5277
  .str-chat__message-mention {
5504
5278
  color: var(--str-chat__message-mention-color);
5505
- font: var(--str-chat__body2-medium-text);
5279
+ font: var(--str-chat__body-emphasis-text);
5506
5280
  }
5507
5281
 
5508
5282
  .str-chat__message {
@@ -5538,7 +5312,7 @@
5538
5312
  justify-content: flex-end;
5539
5313
  }
5540
5314
  .str-chat__message.str-chat__message--other {
5541
- column-gap: var(--str-chat__spacing-2);
5315
+ column-gap: var(--space-8);
5542
5316
  justify-items: flex-start;
5543
5317
  }
5544
5318
  .str-chat__message.str-chat__message--other.str-chat__message--with-avatar {
@@ -5559,7 +5333,7 @@
5559
5333
  padding-inline-start: calc(var(--str-chat__message-reactions-host-offset-x) * -1);
5560
5334
  }
5561
5335
  .str-chat__message.str-chat__message--other .str-chat__message-inner .str-chat__message-reactions-host:has(.str-chat__message-reactions--top):has(.str-chat__message-reactions--flipped-horizontally) {
5562
- margin-right: var(--str-chat__message-reactions-host-offset-x);
5336
+ margin-inline-end: var(--str-chat__message-reactions-host-offset-x);
5563
5337
  }
5564
5338
  .str-chat__message.str-chat__message--other .str-chat__message-inner .str-chat__message-reactions-host .str-chat__message-reactions.str-chat__message-reactions--segmented.str-chat__message-reactions--bottom > .str-chat__message-reactions__list {
5565
5339
  justify-content: flex-start;
@@ -5574,7 +5348,7 @@
5574
5348
  grid-template-columns: 1fr auto;
5575
5349
  }
5576
5350
  .str-chat__message.str-chat__message--me {
5577
- column-gap: var(--str-chat__spacing-2);
5351
+ column-gap: var(--space-8);
5578
5352
  justify-items: flex-end;
5579
5353
  }
5580
5354
  .str-chat__message.str-chat__message--me.str-chat__message--with-avatar {
@@ -5595,7 +5369,7 @@
5595
5369
  padding-inline-end: calc(var(--str-chat__message-reactions-host-offset-x) * -1);
5596
5370
  }
5597
5371
  .str-chat__message.str-chat__message--me .str-chat__message-inner .str-chat__message-reactions-host:has(.str-chat__message-reactions--top):has(.str-chat__message-reactions--flipped-horizontally) {
5598
- margin-left: var(--str-chat__message-reactions-host-offset-x);
5372
+ margin-inline-start: var(--str-chat__message-reactions-host-offset-x);
5599
5373
  }
5600
5374
  .str-chat__message.str-chat__message--me .str-chat__message-inner .str-chat__message-reactions-host .str-chat__message-reactions.str-chat__message-reactions--segmented.str-chat__message-reactions--bottom > .str-chat__message-reactions__list {
5601
5375
  justify-content: flex-end;
@@ -5620,7 +5394,7 @@
5620
5394
  display: grid;
5621
5395
  grid-template-areas: "reactions ." "message-bubble options" "replies replies";
5622
5396
  grid-template-columns: auto 1fr;
5623
- column-gap: var(--str-chat__spacing-2);
5397
+ column-gap: var(--space-8);
5624
5398
  position: relative;
5625
5399
  }
5626
5400
  .str-chat__message .str-chat__message-inner .str-chat__message-reactions-host {
@@ -5677,27 +5451,6 @@
5677
5451
  .str-chat__message.str-chat__message--me .str-chat__message-inner:has(.str-chat__message-reactions--bottom) {
5678
5452
  grid-template-areas: "reminder reminder" "options message-bubble" "replies replies" ". reactions";
5679
5453
  }
5680
- .str-chat__message .str-chat__translation-notice {
5681
- grid-area: translation-notice;
5682
- }
5683
- .str-chat__message .str-chat__translation-notice button {
5684
- cursor: pointer;
5685
- padding: 0.25rem 0;
5686
- margin: 0;
5687
- font: var(--str-chat__body2-text);
5688
- color: var(--str-chat__translation-notice-color);
5689
- border: none;
5690
- background: none;
5691
- }
5692
- .str-chat__message .str-chat__translation-notice button:active, .str-chat__message .str-chat__translation-notice button:hover {
5693
- background: var(--str-chat__translation-notice-active-background-color);
5694
- }
5695
- .str-chat__message .str-chat__custom-message-metadata {
5696
- grid-area: custom-metadata;
5697
- height: var(--size-24);
5698
- margin-block-start: var(--spacing-xxs);
5699
- color: var(--str-chat__message-secondary-color);
5700
- }
5701
5454
  .str-chat__message .str-chat__message-metadata {
5702
5455
  grid-area: metadata;
5703
5456
  display: flex;
@@ -5713,18 +5466,12 @@
5713
5466
  overflow-y: hidden;
5714
5467
  margin-inline-end: var(--spacing-xxs);
5715
5468
  }
5716
- .str-chat__message .str-chat__message-metadata .str-chat__message-sender-name {
5717
- font: var(--str-chat__caption-medium-text);
5718
- }
5719
5469
  .str-chat__message .str-chat__message-metadata .str-chat__message-edited-indicator {
5720
- margin-left: var(--spacing-xs);
5470
+ margin-inline-start: var(--spacing-xs);
5721
5471
  }
5722
5472
  .str-chat__message.str-chat__message--me .str-chat__message-metadata {
5723
5473
  justify-content: flex-end;
5724
- text-align: right;
5725
- }
5726
- .str-chat__message .str-chat__message-is-thread-reply-button-wrapper {
5727
- grid-area: replies;
5474
+ text-align: end;
5728
5475
  }
5729
5476
  .str-chat__message .str-chat__message--blocked-inner {
5730
5477
  padding-inline: var(--spacing-sm);
@@ -5743,11 +5490,6 @@
5743
5490
  border-inline-start: var(--str-chat__blocked-message-border-inline-start);
5744
5491
  border-inline-end: var(--str-chat__blocked-message-border-inline-end);
5745
5492
  padding-block: var(--spacing-xs);
5746
- font: var(--str-chat__body2-text);
5747
- }
5748
- .str-chat__message .str-chat__emoji-display-fix {
5749
- display: inline-block;
5750
- width: 1.25em;
5751
5493
  }
5752
5494
  .str-chat__message .str-chat__message-error-indicator {
5753
5495
  display: none;
@@ -5791,103 +5533,32 @@
5791
5533
  background-color: var(--str-chat__message-active-background-color);
5792
5534
  }
5793
5535
  }
5794
- .str-chat__ul:not(.str-chat__message-options-in-bubble,
5795
- .str-chat__message-with-touch-support),
5796
- .str-chat__virtual-list:not(.str-chat__message-options-in-bubble,
5797
- .str-chat__message-with-touch-support) {
5536
+ .str-chat__ul,
5537
+ .str-chat__virtual-list {
5798
5538
  /* This rule won't be applied in browsers that don't support :has() */
5799
5539
  }
5800
- .str-chat__ul:not(.str-chat__message-options-in-bubble,
5801
- .str-chat__message-with-touch-support) .str-chat__li:hover:not(:has(.str-chat__modal--open)) .str-chat__message-options,
5802
- .str-chat__ul:not(.str-chat__message-options-in-bubble,
5803
- .str-chat__message-with-touch-support) .str-chat__li:focus-within:not(:has(.str-chat__modal--open)) .str-chat__message-options,
5804
- .str-chat__ul:not(.str-chat__message-options-in-bubble,
5805
- .str-chat__message-with-touch-support) .str-chat__li:has(.str-chat__message-options--active) .str-chat__message-options,
5806
- .str-chat__virtual-list:not(.str-chat__message-options-in-bubble,
5807
- .str-chat__message-with-touch-support) .str-chat__li:hover:not(:has(.str-chat__modal--open)) .str-chat__message-options,
5808
- .str-chat__virtual-list:not(.str-chat__message-options-in-bubble,
5809
- .str-chat__message-with-touch-support) .str-chat__li:focus-within:not(:has(.str-chat__modal--open)) .str-chat__message-options,
5810
- .str-chat__virtual-list:not(.str-chat__message-options-in-bubble,
5811
- .str-chat__message-with-touch-support) .str-chat__li:has(.str-chat__message-options--active) .str-chat__message-options {
5812
- display: flex;
5813
- }
5814
- .str-chat__ul:not(.str-chat__message-options-in-bubble,
5815
- .str-chat__message-with-touch-support) .str-chat__li:hover:not(:has(.str-chat__modal--open)) .str-chat__message--other .str-chat__message-inner,
5816
- .str-chat__ul:not(.str-chat__message-options-in-bubble,
5817
- .str-chat__message-with-touch-support) .str-chat__li:focus-within:not(:has(.str-chat__modal--open)) .str-chat__message--other .str-chat__message-inner,
5818
- .str-chat__ul:not(.str-chat__message-options-in-bubble,
5819
- .str-chat__message-with-touch-support) .str-chat__li:has(.str-chat__message-options--active) .str-chat__message--other .str-chat__message-inner,
5820
- .str-chat__virtual-list:not(.str-chat__message-options-in-bubble,
5821
- .str-chat__message-with-touch-support) .str-chat__li:hover:not(:has(.str-chat__modal--open)) .str-chat__message--other .str-chat__message-inner,
5822
- .str-chat__virtual-list:not(.str-chat__message-options-in-bubble,
5823
- .str-chat__message-with-touch-support) .str-chat__li:focus-within:not(:has(.str-chat__modal--open)) .str-chat__message--other .str-chat__message-inner,
5824
- .str-chat__virtual-list:not(.str-chat__message-options-in-bubble,
5825
- .str-chat__message-with-touch-support) .str-chat__li:has(.str-chat__message-options--active) .str-chat__message--other .str-chat__message-inner {
5826
- margin-inline-end: 0;
5827
- }
5828
- .str-chat__ul:not(.str-chat__message-options-in-bubble,
5829
- .str-chat__message-with-touch-support) .str-chat__li:hover:not(:has(.str-chat__modal--open)) .str-chat__message--me .str-chat__message-inner,
5830
- .str-chat__ul:not(.str-chat__message-options-in-bubble,
5831
- .str-chat__message-with-touch-support) .str-chat__li:focus-within:not(:has(.str-chat__modal--open)) .str-chat__message--me .str-chat__message-inner,
5832
- .str-chat__ul:not(.str-chat__message-options-in-bubble,
5833
- .str-chat__message-with-touch-support) .str-chat__li:has(.str-chat__message-options--active) .str-chat__message--me .str-chat__message-inner,
5834
- .str-chat__virtual-list:not(.str-chat__message-options-in-bubble,
5835
- .str-chat__message-with-touch-support) .str-chat__li:hover:not(:has(.str-chat__modal--open)) .str-chat__message--me .str-chat__message-inner,
5836
- .str-chat__virtual-list:not(.str-chat__message-options-in-bubble,
5837
- .str-chat__message-with-touch-support) .str-chat__li:focus-within:not(:has(.str-chat__modal--open)) .str-chat__message--me .str-chat__message-inner,
5838
- .str-chat__virtual-list:not(.str-chat__message-options-in-bubble,
5839
- .str-chat__message-with-touch-support) .str-chat__li:has(.str-chat__message-options--active) .str-chat__message--me .str-chat__message-inner {
5840
- margin-inline-start: 0;
5841
- }
5842
- .str-chat__ul:not(.str-chat__message-options-in-bubble,
5843
- .str-chat__message-with-touch-support),
5844
- .str-chat__virtual-list:not(.str-chat__message-options-in-bubble,
5845
- .str-chat__message-with-touch-support) {
5846
- /* Fallback for when :has() is unsupported */
5847
- }
5848
- @supports not selector(:has(a, b)) {
5849
- .str-chat__ul:not(.str-chat__message-options-in-bubble,
5850
- .str-chat__message-with-touch-support) .str-chat__li:hover .str-chat__message-options,
5851
- .str-chat__ul:not(.str-chat__message-options-in-bubble,
5852
- .str-chat__message-with-touch-support) .str-chat__li:focus-within .str-chat__message-options,
5853
- .str-chat__virtual-list:not(.str-chat__message-options-in-bubble,
5854
- .str-chat__message-with-touch-support) .str-chat__li:hover .str-chat__message-options,
5855
- .str-chat__virtual-list:not(.str-chat__message-options-in-bubble,
5856
- .str-chat__message-with-touch-support) .str-chat__li:focus-within .str-chat__message-options {
5857
- display: flex;
5858
- }
5859
- .str-chat__ul:not(.str-chat__message-options-in-bubble,
5860
- .str-chat__message-with-touch-support) .str-chat__li:hover .str-chat__message--other .str-chat__message-inner,
5861
- .str-chat__ul:not(.str-chat__message-options-in-bubble,
5862
- .str-chat__message-with-touch-support) .str-chat__li:focus-within .str-chat__message--other .str-chat__message-inner,
5863
- .str-chat__virtual-list:not(.str-chat__message-options-in-bubble,
5864
- .str-chat__message-with-touch-support) .str-chat__li:hover .str-chat__message--other .str-chat__message-inner,
5865
- .str-chat__virtual-list:not(.str-chat__message-options-in-bubble,
5866
- .str-chat__message-with-touch-support) .str-chat__li:focus-within .str-chat__message--other .str-chat__message-inner {
5867
- margin-inline-end: 0;
5868
- }
5869
- .str-chat__ul:not(.str-chat__message-options-in-bubble,
5870
- .str-chat__message-with-touch-support) .str-chat__li:hover .str-chat__message--me .str-chat__message-inner,
5871
- .str-chat__ul:not(.str-chat__message-options-in-bubble,
5872
- .str-chat__message-with-touch-support) .str-chat__li:focus-within .str-chat__message--me .str-chat__message-inner,
5873
- .str-chat__virtual-list:not(.str-chat__message-options-in-bubble,
5874
- .str-chat__message-with-touch-support) .str-chat__li:hover .str-chat__message--me .str-chat__message-inner,
5875
- .str-chat__virtual-list:not(.str-chat__message-options-in-bubble,
5876
- .str-chat__message-with-touch-support) .str-chat__li:focus-within .str-chat__message--me .str-chat__message-inner {
5877
- margin-inline-start: 0;
5878
- }
5879
- }
5880
-
5881
- .str-chat__ul.str-chat__message-options-in-bubble .str-chat__message-inner:hover .str-chat__message-options,
5882
- .str-chat__virtual-list.str-chat__message-options-in-bubble .str-chat__message-inner:hover .str-chat__message-options {
5540
+ .str-chat__ul .str-chat__li:hover:not(:has(.str-chat__modal--open)) .str-chat__message-options,
5541
+ .str-chat__ul .str-chat__li:focus-within:not(:has(.str-chat__modal--open)) .str-chat__message-options,
5542
+ .str-chat__ul .str-chat__li:has(.str-chat__message-options--active) .str-chat__message-options,
5543
+ .str-chat__virtual-list .str-chat__li:hover:not(:has(.str-chat__modal--open)) .str-chat__message-options,
5544
+ .str-chat__virtual-list .str-chat__li:focus-within:not(:has(.str-chat__modal--open)) .str-chat__message-options,
5545
+ .str-chat__virtual-list .str-chat__li:has(.str-chat__message-options--active) .str-chat__message-options {
5883
5546
  display: flex;
5884
5547
  }
5885
- .str-chat__ul.str-chat__message-options-in-bubble .str-chat__message--other .str-chat__message-inner:hover,
5886
- .str-chat__virtual-list.str-chat__message-options-in-bubble .str-chat__message--other .str-chat__message-inner:hover {
5548
+ .str-chat__ul .str-chat__li:hover:not(:has(.str-chat__modal--open)) .str-chat__message--other .str-chat__message-inner,
5549
+ .str-chat__ul .str-chat__li:focus-within:not(:has(.str-chat__modal--open)) .str-chat__message--other .str-chat__message-inner,
5550
+ .str-chat__ul .str-chat__li:has(.str-chat__message-options--active) .str-chat__message--other .str-chat__message-inner,
5551
+ .str-chat__virtual-list .str-chat__li:hover:not(:has(.str-chat__modal--open)) .str-chat__message--other .str-chat__message-inner,
5552
+ .str-chat__virtual-list .str-chat__li:focus-within:not(:has(.str-chat__modal--open)) .str-chat__message--other .str-chat__message-inner,
5553
+ .str-chat__virtual-list .str-chat__li:has(.str-chat__message-options--active) .str-chat__message--other .str-chat__message-inner {
5887
5554
  margin-inline-end: 0;
5888
5555
  }
5889
- .str-chat__ul.str-chat__message-options-in-bubble .str-chat__message--me .str-chat__message-inner:hover,
5890
- .str-chat__virtual-list.str-chat__message-options-in-bubble .str-chat__message--me .str-chat__message-inner:hover {
5556
+ .str-chat__ul .str-chat__li:hover:not(:has(.str-chat__modal--open)) .str-chat__message--me .str-chat__message-inner,
5557
+ .str-chat__ul .str-chat__li:focus-within:not(:has(.str-chat__modal--open)) .str-chat__message--me .str-chat__message-inner,
5558
+ .str-chat__ul .str-chat__li:has(.str-chat__message-options--active) .str-chat__message--me .str-chat__message-inner,
5559
+ .str-chat__virtual-list .str-chat__li:hover:not(:has(.str-chat__modal--open)) .str-chat__message--me .str-chat__message-inner,
5560
+ .str-chat__virtual-list .str-chat__li:focus-within:not(:has(.str-chat__modal--open)) .str-chat__message--me .str-chat__message-inner,
5561
+ .str-chat__virtual-list .str-chat__li:has(.str-chat__message-options--active) .str-chat__message--me .str-chat__message-inner {
5891
5562
  margin-inline-start: 0;
5892
5563
  }
5893
5564
 
@@ -5898,9 +5569,6 @@
5898
5569
  .str-chat__message-inner .str-chat__message-options {
5899
5570
  display: none;
5900
5571
  }
5901
- .str-chat__message-inner .str-chat__message-actions-open.str-chat__message-options {
5902
- display: flex;
5903
- }
5904
5572
 
5905
5573
  .str-chat__message-inner:focus-within .str-chat__message-options {
5906
5574
  display: flex;
@@ -5938,10 +5606,10 @@
5938
5606
  }
5939
5607
 
5940
5608
  .str-chat__message-with-thread-link.str-chat__message--other .str-chat__message-bubble {
5941
- border-end-start-radius: calc(var(--str-chat__border-radius-md) / 6);
5609
+ border-end-start-radius: calc(var(--radius-md) / 6);
5942
5610
  }
5943
5611
  .str-chat__message-with-thread-link.str-chat__message--me .str-chat__message-bubble {
5944
- border-end-end-radius: calc(var(--str-chat__border-radius-md) / 6);
5612
+ border-end-end-radius: calc(var(--radius-md) / 6);
5945
5613
  }
5946
5614
 
5947
5615
  .str-chat__li--top .str-chat__message.str-chat__message--with-avatar > .str-chat__avatar,
@@ -5950,22 +5618,6 @@
5950
5618
  pointer-events: none;
5951
5619
  }
5952
5620
 
5953
- .str-chat__message-with-touch-support .str-chat__message-bubble {
5954
- -webkit-touch-callout: none;
5955
- -webkit-user-select: none;
5956
- user-select: none;
5957
- }
5958
- .str-chat__message-with-touch-support.str-chat__message-menu-opened .str-chat__attachments-container,
5959
- .str-chat__message-with-touch-support.str-chat__message-menu-opened .str-chat__message-text-inner {
5960
- pointer-events: none;
5961
- }
5962
- .str-chat__message-with-touch-support .str-chat__message-inner {
5963
- margin-inline: 0;
5964
- }
5965
- .str-chat__message-with-touch-support .str-chat__message-options {
5966
- display: none;
5967
- }
5968
-
5969
5621
  .str-chat {
5970
5622
  --str-chat__message-also-sent-in-channel-color: var(--text-primary);
5971
5623
  --str-chat__message-also-sent-in-channel-background-color: transparent;
@@ -6010,7 +5662,7 @@
6010
5662
  display: flex;
6011
5663
  align-items: center;
6012
5664
  justify-content: center;
6013
- column-gap: var(--str-chat__spacing-0_5);
5665
+ column-gap: var(--space-2);
6014
5666
  position: relative;
6015
5667
  color: var(--chat-text-timestamp);
6016
5668
  }
@@ -6202,10 +5854,10 @@
6202
5854
  padding-inline-end: var(--spacing-xl);
6203
5855
  }
6204
5856
  .str-chat__message.str-chat__message--me .str-chat__message-replies-count-button-wrapper::after {
6205
- border-bottom-right-radius: var(--radius-max);
6206
- border-right: var(--replies-button-connector-stroke-width) solid var(--chat-thread-connector-outgoing);
6207
- border-bottom: var(--replies-button-connector-stroke-width) solid var(--chat-thread-connector-outgoing);
6208
- right: 0;
5857
+ border-end-end-radius: var(--radius-max);
5858
+ border-inline-end: var(--replies-button-connector-stroke-width) solid var(--chat-thread-connector-outgoing);
5859
+ border-block-end: var(--replies-button-connector-stroke-width) solid var(--chat-thread-connector-outgoing);
5860
+ inset-inline-end: 0;
6209
5861
  }
6210
5862
 
6211
5863
  .str-chat__message.str-chat__message--other .str-chat__message-replies-count-button-wrapper {
@@ -6218,10 +5870,10 @@
6218
5870
  padding-inline-start: var(--spacing-xl);
6219
5871
  }
6220
5872
  .str-chat__message.str-chat__message--other .str-chat__message-replies-count-button-wrapper::after {
6221
- border-bottom-left-radius: var(--radius-max);
6222
- border-left: var(--replies-button-connector-stroke-width) solid var(--chat-thread-connector-incoming);
6223
- border-bottom: var(--replies-button-connector-stroke-width) solid var(--chat-thread-connector-incoming);
6224
- left: 0;
5873
+ border-end-start-radius: var(--radius-max);
5874
+ border-inline-start: var(--replies-button-connector-stroke-width) solid var(--chat-thread-connector-incoming);
5875
+ border-block-end: var(--replies-button-connector-stroke-width) solid var(--chat-thread-connector-incoming);
5876
+ inset-inline-start: 0;
6225
5877
  }
6226
5878
 
6227
5879
  .str-chat__message-actions-box {
@@ -6261,8 +5913,7 @@
6261
5913
  .str-chat__message-options .str-chat__message-reactions-button:active {
6262
5914
  color: var(--str-chat__message-options-active-color);
6263
5915
  }
6264
- .str-chat__message-options .str-chat__message-actions-box-button,
6265
- .str-chat__message-options .str-chat__message-actions-container {
5916
+ .str-chat__message-options .str-chat__message-actions-box-button {
6266
5917
  position: relative;
6267
5918
  }
6268
5919
 
@@ -6396,11 +6047,11 @@
6396
6047
  flex: 0 1 auto;
6397
6048
  gap: var(--spacing-sm);
6398
6049
  padding: var(--spacing-md);
6399
- padding-right: var(--spacing-sm);
6050
+ padding-inline-end: var(--spacing-sm);
6400
6051
  width: 290px;
6401
6052
  }
6402
6053
  .str-chat .str-chat__attachment-preview-audio .str-chat__attachment-preview-file__data {
6403
- padding-right: var(--spacing-xs);
6054
+ padding-inline-end: var(--spacing-xs);
6404
6055
  }
6405
6056
  .str-chat .str-chat__attachment-preview-audio,
6406
6057
  .str-chat .str-chat__attachment-preview-file,
@@ -6447,20 +6098,19 @@
6447
6098
  align-items: center;
6448
6099
  gap: var(--spacing-xxs);
6449
6100
  position: absolute;
6450
- bottom: var(--spacing-xxs);
6451
- left: var(--spacing-xxs);
6452
- padding-inline: var(--button-padding-x-icon-only-sm);
6453
- padding-block: var(--button-padding-y-sm);
6454
- border-radius: var(--str-chat__attachment-preview-media-video-indicator-border-radius);
6455
- background-color: var(--str-chat__attachment-preview-media-video-indicator-background-color);
6456
- color: var(--str-chat__attachment-preview-media-video-indicator-color);
6457
- font-size: var(--typography-font-size-xxs);
6458
- font-weight: var(--typography-font-weight-bold);
6459
- line-height: var(--line-height-line-height-10);
6101
+ bottom: var(--spacing-xs);
6102
+ inset-inline-start: var(--spacing-xs);
6103
+ padding: var(--spacing-xxs) var(--spacing-xs);
6104
+ border-radius: var(--radius-max);
6105
+ background: var(--badge-bg-inverse);
6106
+ color: var(--badge-text-on-inverse);
6107
+ font: var(--str-chat__numeric-md-text);
6108
+ overflow: hidden;
6109
+ text-overflow: ellipsis;
6460
6110
  }
6461
- .str-chat .str-chat__attachment-preview-media .str-chat__attachment-preview-media__video-indicator .str-chat__icon--video-camera {
6462
- width: 10px;
6463
- height: 8px;
6111
+ .str-chat .str-chat__attachment-preview-media .str-chat__attachment-preview-media__video-indicator .str-chat__icon {
6112
+ width: var(--icon-size-xs);
6113
+ height: var(--icon-size-xs);
6464
6114
  fill: currentColor;
6465
6115
  }
6466
6116
  .str-chat .str-chat__attachment-preview-media__overlay {
@@ -6491,15 +6141,28 @@
6491
6141
  .str-chat .str-chat__attachment-preview-media__overlay:active {
6492
6142
  background-color: var(--str-chat__attachment-preview-media-overlay-pressed-background-color);
6493
6143
  }
6494
- .str-chat .str-chat__attachment-preview-media__overlay .str-chat__loading-indicator,
6495
- .str-chat .str-chat__attachment-preview-media__overlay .str-chat__icon--exclamation-mark {
6496
- width: 14px;
6497
- height: 14px;
6144
+ .str-chat .str-chat__attachment-preview-media__overlay .str-chat__icon.str-chat__loading-indicator {
6145
+ width: var(--icon-size-sm);
6146
+ height: var(--icon-size-sm);
6498
6147
  position: absolute;
6499
- left: var(--spacing-xxs);
6148
+ inset-inline-start: var(--spacing-xxs);
6500
6149
  bottom: var(--spacing-xxs);
6501
- border: 2px solid var(--control-remove-control-border);
6502
6150
  border-radius: var(--radius-max);
6151
+ border-radius: var(--radius-max);
6152
+ background: var(--background-core-elevation-0);
6153
+ color: var(--accent-primary);
6154
+ }
6155
+ .str-chat .str-chat__attachment-preview-media__overlay .str-chat__icon--exclamation {
6156
+ padding: var(--spacing-xxxs);
6157
+ width: var(--icon-size-sm);
6158
+ height: var(--icon-size-sm);
6159
+ position: absolute;
6160
+ inset-inline-start: var(--spacing-xxs);
6161
+ bottom: var(--spacing-xxs);
6162
+ border: 2px solid var(--badge-border);
6163
+ border-radius: var(--radius-max);
6164
+ background: var(--badge-bg-error);
6165
+ color: var(--badge-text-on-accent);
6503
6166
  }
6504
6167
  .str-chat .str-chat__attachment-preview-media--upload-error .str-chat__attachment-preview-media__overlay {
6505
6168
  background-color: var(--str-chat__attachment-preview-media-upload-error-overlay-background-color);
@@ -6542,9 +6205,9 @@
6542
6205
  font-size: var(--typography-font-size-xs);
6543
6206
  line-height: var(--typography-line-height-tight);
6544
6207
  }
6545
- .str-chat .str-chat__attachment-preview-file__info .str-chat__attachment-preview-file__data .str-chat__loading-indicator {
6546
- width: var(--size-12);
6547
- height: var(--size-12);
6208
+ .str-chat .str-chat__attachment-preview-file__info .str-chat__attachment-preview-file__data .str-chat__icon.str-chat__loading-indicator {
6209
+ width: var(--icon-size-sm);
6210
+ height: var(--icon-size-sm);
6548
6211
  }
6549
6212
  .str-chat .str-chat__attachment-preview-file__info .str-chat__attachment-preview-file__data .str-chat__attachment-preview-file__fatal-error {
6550
6213
  display: flex;
@@ -7188,7 +6851,7 @@
7188
6851
  height: 20px;
7189
6852
  width: 20px;
7190
6853
  position: absolute;
7191
- left: 10px;
6854
+ inset-inline-start: 10px;
7192
6855
  top: 10px;
7193
6856
  border-radius: var(--radius-max);
7194
6857
  background-color: var(--control-play-control-bg);
@@ -7208,7 +6871,7 @@
7208
6871
  position: absolute;
7209
6872
  z-index: 1;
7210
6873
  top: -6px;
7211
- right: -6px;
6874
+ inset-inline-end: -6px;
7212
6875
  background-color: var(--str-chat__attachment-preview-close-icon-background);
7213
6876
  border: 3px solid var(--str-chat__attachment-preview-close-icon-border-color);
7214
6877
  color: var(--str-chat__attachment-preview-close-icon-color);
@@ -7417,8 +7080,8 @@
7417
7080
  .str-chat__jump-to-latest-message .str-chat__jump-to-latest__unread-count {
7418
7081
  position: absolute;
7419
7082
  inset-block-end: 100%;
7420
- margin-block-end: var(--str-chat__spacing-1);
7421
- right: -15%;
7083
+ margin-block-end: var(--space-4);
7084
+ inset-inline-end: -15%;
7422
7085
  top: -15%;
7423
7086
  }
7424
7087
 
@@ -7543,7 +7206,7 @@
7543
7206
  }
7544
7207
  .str-chat__virtual-list__loading {
7545
7208
  display: flex;
7546
- padding-top: var(--str-chat__spacing-2);
7209
+ padding-top: var(--space-8);
7547
7210
  justify-content: center;
7548
7211
  width: 100%;
7549
7212
  position: absolute;
@@ -8212,7 +7875,7 @@
8212
7875
  width: 32px;
8213
7876
  aspect-ratio: 1/1;
8214
7877
  }
8215
- .str-chat__reaction-selector .str-chat__reaction-selector__add-button .str-chat__icon--plus {
7878
+ .str-chat__reaction-selector .str-chat__reaction-selector__add-button .str-chat__icon {
8216
7879
  width: var(--icon-size-sm);
8217
7880
  height: var(--icon-size-sm);
8218
7881
  }
@@ -8315,6 +7978,7 @@
8315
7978
  border-radius: var(--radius-max);
8316
7979
  border: 1px solid var(--reaction-border);
8317
7980
  background: var(--reaction-bg);
7981
+ color: var(--reaction-text);
8318
7982
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.16);
8319
7983
  font-weight: inherit;
8320
7984
  font-size: inherit;
@@ -8381,10 +8045,10 @@
8381
8045
  position: absolute;
8382
8046
  width: 100%;
8383
8047
  bottom: 0;
8384
- left: 0;
8048
+ inset-inline-start: 0;
8385
8049
  height: var(--size-12);
8386
- border-bottom-right-radius: inherit;
8387
- border-bottom-left-radius: inherit;
8050
+ border-end-end-radius: inherit;
8051
+ border-end-start-radius: inherit;
8388
8052
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 5%, rgba(0, 0, 0, 0.1) 130%);
8389
8053
  }
8390
8054
  .str-chat__message-reactions-detail {
@@ -8436,6 +8100,7 @@
8436
8100
  border-radius: var(--radius-max);
8437
8101
  border: 1px solid var(--reaction-border);
8438
8102
  background: var(--reaction-bg);
8103
+ color: var(--reaction-text);
8439
8104
  box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.16);
8440
8105
  font-weight: inherit;
8441
8106
  font-size: inherit;
@@ -8848,13 +8513,11 @@
8848
8513
  border-inline-start: var(--str-chat__thread-header-border-inline-start);
8849
8514
  border-inline-end: var(--str-chat__thread-header-border-inline-end);
8850
8515
  }
8851
- .str-chat__thread-header .str-chat__thread-header-name,
8852
8516
  .str-chat__thread-header .str-chat__thread-header-title {
8853
- font: var(--str-chat__subtitle-medium-text);
8517
+ font: var(--str-chat__heading-sm-text);
8854
8518
  }
8855
- .str-chat__thread-header .str-chat__thread-header-channel-name,
8856
8519
  .str-chat__thread-header .str-chat__thread-header-subtitle {
8857
- font: var(--str-chat__body-text);
8520
+ font: var(--str-chat__caption-default-text);
8858
8521
  color: var(--str-chat__thread-header-info-color);
8859
8522
  }
8860
8523
  .str-chat__thread-header .str-chat__thread-header-details {
@@ -8867,9 +8530,6 @@
8867
8530
  row-gap: var(--spacing-xxs);
8868
8531
  align-items: start;
8869
8532
  }
8870
- .str-chat__thread-header .str-chat__thread-header-details .str-chat__thread-header-name,
8871
- .str-chat__thread-header .str-chat__thread-header-details .str-chat__thread-header-reply-count,
8872
- .str-chat__thread-header .str-chat__thread-header-details .str-chat__thread-header-channel-name,
8873
8533
  .str-chat__thread-header .str-chat__thread-header-details .str-chat__thread-header-subtitle,
8874
8534
  .str-chat__thread-header .str-chat__thread-header-details .str-chat__thread-header-title {
8875
8535
  white-space: nowrap;
@@ -8908,35 +8568,6 @@
8908
8568
  align-items: center;
8909
8569
  }
8910
8570
 
8911
- .str-chat__thread-header--main {
8912
- display: flex;
8913
- align-items: center;
8914
- width: 100%;
8915
- padding: var(--spacing-md);
8916
- gap: var(--spacing-sm);
8917
- height: var(--str-chat__channel-header-height);
8918
- min-width: 0;
8919
- border-bottom: 1px solid var(--border-core-default);
8920
- background: var(--background-core-elevation-1);
8921
- }
8922
- .str-chat__thread-header--main .str-chat__thread-header--main__details {
8923
- display: flex;
8924
- flex-direction: column;
8925
- align-items: center;
8926
- overflow-y: hidden;
8927
- overflow-x: hidden;
8928
- max-width: 100%;
8929
- row-gap: var(--spacing-xxs);
8930
- }
8931
- .str-chat__thread-header--main .str-chat__thread-header--main__details .str-chat__thread-header--main__title {
8932
- font: var(--str-chat__heading-sm-text);
8933
- color: var(--text-primary);
8934
- }
8935
- .str-chat__thread-header--main .str-chat__thread-header--main__details .str-chat__thread-header--main__subtitle {
8936
- font: var(--str-chat__caption-default-text);
8937
- color: var(--text-secondary);
8938
- }
8939
-
8940
8571
  /* Only available in React SDK. */
8941
8572
  .str-chat {
8942
8573
  --str-chat-unread-count-badge-color: var(--str-chat__on-unread-badge-color);
@@ -9264,16 +8895,6 @@
9264
8895
  white-space: nowrap;
9265
8896
  }
9266
8897
 
9267
- .str-chat__thread-list-item__message-preview {
9268
- font-size: var(--typography-font-size-md);
9269
- font-weight: var(--typography-font-weight-regular);
9270
- line-height: var(--typography-line-height-normal);
9271
- color: var(--text-primary);
9272
- overflow: hidden;
9273
- text-overflow: ellipsis;
9274
- white-space: nowrap;
9275
- }
9276
-
9277
8898
  .str-chat__thread-list-item__content-trailing {
9278
8899
  display: flex;
9279
8900
  gap: var(--spacing-xs);
@@ -9340,11 +8961,11 @@
9340
8961
  border-inline-end: var(--str-chat__tooltip-border-inline-end);
9341
8962
  overflow-y: hidden;
9342
8963
  display: flex;
9343
- padding: var(--str-chat__spacing-2);
8964
+ padding: var(--space-8);
9344
8965
  z-index: 1;
9345
8966
  max-width: calc(var(--str-chat__spacing-px) * 150);
9346
8967
  width: max-content;
9347
- font: var(--str-chat__caption-text);
8968
+ font: var(--str-chat__metadata-emphasis-text);
9348
8969
  }
9349
8970
  .str-chat__tooltip::after {
9350
8971
  background-color: var(--str-chat__tooltip-background-color);
@@ -9397,22 +9018,6 @@
9397
9018
  align-items: center;
9398
9019
  column-gap: var(--spacing-xxs);
9399
9020
  }
9400
- .str-chat__typing-indicator__dots .str-chat__typing-indicator__dot {
9401
- width: 5px;
9402
- height: 5px;
9403
- border-radius: 50%;
9404
- background-color: var(--chat-text-typing-indicator);
9405
- animation: str-chat__typing-indicator-dot 1.2s ease-in-out infinite both;
9406
- }
9407
- .str-chat__typing-indicator__dots .str-chat__typing-indicator__dot:nth-child(1) {
9408
- animation-delay: 0s;
9409
- }
9410
- .str-chat__typing-indicator__dots .str-chat__typing-indicator__dot:nth-child(2) {
9411
- animation-delay: 0.15s;
9412
- }
9413
- .str-chat__typing-indicator__dots .str-chat__typing-indicator__dot:nth-child(3) {
9414
- animation-delay: 0.3s;
9415
- }
9416
9021
 
9417
9022
  /* SVG dots (TypingIndicatorDots component) */
9418
9023
  .str-chat__typing-indicator__dots svg {