stream-chat-angular 4.7.0 → 4.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,71 +1,88 @@
1
1
  @use '../utils';
2
2
 
3
- .str-chat__channel-search-bar {
4
- @include utils.flex-row-center;
5
- padding: var(--str-chat__spacing-2_5);
3
+ .str-chat__channel-search {
4
+ position: relative;
6
5
 
7
- .str-chat__channel-search-bar-button {
8
- @include utils.button-reset;
9
- width: calc(var(--str-chat__spacing-px) * 40);
10
- height: calc(var(--str-chat__spacing-px) * 40);
6
+ .str-chat__channel-search-bar {
7
+ @include utils.flex-row-center;
11
8
  padding: var(--str-chat__spacing-2_5);
12
- cursor: pointer;
13
- }
14
-
15
- .str-chat__channel-search-input--wrapper {
16
- display: flex;
17
- align-items: center;
18
- flex: 1;
19
- padding: var(--str-chat__spacing-2_5);
20
- min-width: 0;
21
9
 
22
- .str-chat__channel-search-input--icon,
23
- .str-chat__channel-search-input--clear-button {
24
- display: inline-flex;
25
- padding: 0 var(--str-chat__spacing-2_5);
26
- }
27
-
28
- .str-chat__channel-search-input--clear-button {
10
+ .str-chat__channel-search-bar-button {
29
11
  @include utils.button-reset;
12
+ width: calc(var(--str-chat__spacing-px) * 40);
13
+ height: calc(var(--str-chat__spacing-px) * 40);
14
+ padding: var(--str-chat__spacing-2_5);
30
15
  cursor: pointer;
31
-
32
- &:disabled {
33
- cursor: default;
34
- }
35
16
  }
36
17
 
37
- input {
18
+ .str-chat__channel-search-input--wrapper {
19
+ display: flex;
20
+ align-items: center;
38
21
  flex: 1;
22
+ padding: var(--str-chat__spacing-2_5);
39
23
  min-width: 0;
24
+
25
+ .str-chat__channel-search-input--icon,
26
+ .str-chat__channel-search-input--clear-button {
27
+ display: inline-flex;
28
+ padding: 0 var(--str-chat__spacing-2_5);
29
+ }
30
+
31
+ .str-chat__channel-search-input--clear-button {
32
+ @include utils.button-reset;
33
+ cursor: pointer;
34
+
35
+ &:disabled {
36
+ cursor: default;
37
+ }
38
+ }
39
+
40
+ input {
41
+ flex: 1;
42
+ min-width: 0;
43
+ }
40
44
  }
41
45
  }
42
- }
43
46
 
44
- .str-chat__channel-search-results-header {
45
- width: 100%;
46
- padding: var(--str-chat__spacing-5) var(--str-chat__spacing-4);
47
- }
47
+ .str-chat__channel-search-container-searching {
48
+ width: 100%;
49
+ padding: var(--str-chat__spacing-5) var(--str-chat__spacing-4);
50
+ }
48
51
 
49
- .str-chat__channel-search-result-list {
50
- .str-chat__channel-search-container-empty {
51
- display: flex;
52
- flex-direction: column;
53
- align-items: center;
52
+ .str-chat__channel-search-results-header {
54
53
  width: 100%;
54
+ padding: var(--str-chat__spacing-5) var(--str-chat__spacing-4);
55
+ }
55
56
 
56
- svg {
57
- height: calc(var(--str-chat__spacing-px) * 90 + var(--str-chat__spacing-20));
58
- width: calc(var(--str-chat__spacing-px) * 90);
59
- padding: var(--str-chat__spacing-10) 0;
57
+
58
+ .str-chat__channel-search-result-list {
59
+ &.popup {
60
+ position: absolute;
61
+ left: 0;
62
+ right: 0;
60
63
  }
61
- }
62
64
 
63
- .str-chat__channel-search-result {
64
- @include utils.button-reset;
65
- display: flex;
66
- align-items: center;
67
- width: 100%;
68
- column-gap: var(--str-chat__spacing-2);
69
- padding: var(--str-chat__spacing-3) var(--str-chat__spacing-2);
65
+ .str-chat__channel-search-container-empty {
66
+ display: flex;
67
+ flex-direction: column;
68
+ align-items: center;
69
+ width: 100%;
70
+ padding: var(--str-chat__spacing-5) var(--str-chat__spacing-4);
71
+
72
+ svg {
73
+ height: calc(var(--str-chat__spacing-px) * 90 + var(--str-chat__spacing-20));
74
+ width: calc(var(--str-chat__spacing-px) * 90);
75
+ padding: var(--str-chat__spacing-10) 0;
76
+ }
77
+ }
78
+
79
+ .str-chat__channel-search-result {
80
+ @include utils.button-reset;
81
+ display: flex;
82
+ align-items: center;
83
+ width: 100%;
84
+ column-gap: var(--str-chat__spacing-2);
85
+ padding: var(--str-chat__spacing-3) var(--str-chat__spacing-2);
86
+ }
70
87
  }
71
- }
88
+ }
@@ -89,6 +89,25 @@
89
89
  --str-chat__secondary-surface-color
90
90
  );
91
91
 
92
+ --str-chat__channel-search-result-list-color: var(--str-chat__text-color);
93
+
94
+ --str-chat__channel-search-result-list-background-color: var(--str-chat__secondary-background-color);
95
+
96
+ /* Top border of the component */
97
+ --str-chat__channel-search-result-list-border-block-start: none;
98
+
99
+ /* Bottom border of the component */
100
+ --str-chat__channel-search-result-list-border-block-end: none;
101
+
102
+ /* Left (right in RTL layout) border of the component */
103
+ --str-chat__channel-search-result-list-border-inline-start: none;
104
+
105
+ /* Right (left in RTL layout) border of the component */
106
+ --str-chat__channel-search-result-list-border-inline-end: none;
107
+
108
+ /* Box shadow applied to the component */
109
+ --str-chat__channel-search-result-list-popup-box-shadow: 0 4px 4px var(--str-chat__box-shadow-color);
110
+
92
111
  /* The font color used in the search results header */
93
112
  --str-chat__channel-search-results-header-color: var(--str-chat__text-low-emphasis-color);
94
113
 
@@ -108,6 +127,25 @@
108
127
  /* Right (left in RTL layout) border of the component */
109
128
  --str-chat__channel-search-results-header-border-inline-end: none;
110
129
 
130
+ /* The font color used in the search results loading indicator */
131
+ --str-chat__channel-search-results-loading-indicator-color: var(--str-chat__text-low-emphasis-color);
132
+
133
+ /* The background color used in the search results loading indicator */
134
+ --str-chat__channel-search-results-loading-indicator-background-color: var(--str-chat__background-color);
135
+
136
+ /* Top border of the component */
137
+ --str-chat__channel-search-results-loading-indicator-border-block-start: none;
138
+
139
+ /* Bottom border of the component */
140
+ --str-chat__channel-search-results-loading-indicator-border-block-end: var(--str-chat__surface-color) 1px
141
+ solid;
142
+
143
+ /* Left (right in RTL layout) border of the component */
144
+ --str-chat__channel-search-results-loading-indicator-border-inline-start: none;
145
+
146
+ /* Right (left in RTL layout) border of the component */
147
+ --str-chat__channel-search-results-loading-indicator-border-inline-end: none;
148
+
111
149
  /* The font color used in the empty search results indicator */
112
150
  --str-chat__channel-search-results-empty-color: var(--str-chat__text-low-emphasis-color);
113
151
 
@@ -162,6 +200,16 @@
162
200
  }
163
201
 
164
202
  .str-chat__channel-search-result-list {
203
+ @include utils.component-layer-overrides('channel-search-result-list');
204
+
205
+ &.popup {
206
+ box-shadow: var(--str-chat__channel-search-result-list-popup-box-shadow);
207
+ }
208
+
209
+ .str-chat__channel-search-container-searching {
210
+ @include utils.component-layer-overrides('channel-search-results-loading-indicator');
211
+ }
212
+
165
213
  .str-chat__channel-search-container-empty {
166
214
  @include utils.component-layer-overrides('channel-search-results-empty');
167
215
  font: var(--str-chat__subtitle2-medium-text);
@@ -70,6 +70,9 @@
70
70
  /* The background of the message bubble */
71
71
  --str-chat__message-bubble-background-color: var(--str-chat__secondary-surface-color);
72
72
 
73
+ /* The text/icon of the message bubble, if the message was sent by the user */
74
+ --str-chat__own-message-bubble-color: var(--str-chat__message-bubble-color);
75
+
73
76
  /* The background of the message bubble, if the message was sent by the user */
74
77
  --str-chat__own-message-bubble-background-color: var(--str-chat__primary-surface-color);
75
78
 
@@ -212,6 +215,7 @@
212
215
  }
213
216
 
214
217
  &.str-chat__message--me .str-chat__message-bubble {
218
+ color: var(--str-chat__own-message-bubble-color);
215
219
  background-color: var(--str-chat__own-message-bubble-background-color);
216
220
  }
217
221
 
@@ -4,6 +4,6 @@
4
4
  display: flex;
5
5
  padding: var(--str-chat__spacing-2);
6
6
  z-index: 1;
7
- word-break: normal;
8
7
  max-width: calc(var(--str-chat__spacing-px) * 150);
8
+ width: max-content;
9
9
  }
@@ -1 +1 @@
1
- export const version = '4.7.0';
1
+ export const version = '4.9.0';