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,122 +0,0 @@
1
- @use '../utils';
2
-
3
- .str-chat__channel-search {
4
- $search-bar-height: 65px;
5
- position: relative;
6
- display: flex;
7
- flex-direction: column;
8
- justify-content: center;
9
-
10
- &.str-chat__channel-search--active.str-chat__channel-search--inline,
11
- &.str-chat__channel-search--with-results.str-chat__channel-search--inline {
12
- height: 100%;
13
- }
14
-
15
- &.str-chat__channel-search--inline {
16
- min-height: 0;
17
- }
18
-
19
- .str-chat__channel-search-bar {
20
- @include utils.flex-row-center;
21
- padding: var(--str-chat__spacing-2_5);
22
- height: $search-bar-height;
23
-
24
- .str-chat__channel-search-bar-button {
25
- @include utils.button-reset;
26
- width: calc(var(--str-chat__spacing-px) * 40);
27
- height: calc(var(--str-chat__spacing-px) * 40);
28
- padding: var(--str-chat__spacing-2_5);
29
- cursor: pointer;
30
- }
31
-
32
- .str-chat__channel-search-input--wrapper {
33
- display: flex;
34
- align-items: center;
35
- flex: 1;
36
- padding: var(--str-chat__spacing-2_5);
37
- min-width: 0;
38
-
39
- .str-chat__channel-search-input--icon,
40
- .str-chat__channel-search-input--clear-button {
41
- display: inline-flex;
42
- padding: 0 var(--str-chat__spacing-2_5);
43
- }
44
-
45
- .str-chat__channel-search-input--clear-button {
46
- @include utils.button-reset;
47
- cursor: pointer;
48
-
49
- &:disabled {
50
- cursor: default;
51
- }
52
- }
53
-
54
- input {
55
- flex: 1;
56
- min-width: 0;
57
- }
58
- }
59
- }
60
-
61
- .str-chat__channel-search-container-searching {
62
- width: 100%;
63
- padding: var(--str-chat__spacing-5) var(--str-chat__spacing-4);
64
- }
65
-
66
- .str-chat__channel-search-results-header {
67
- width: 100%;
68
- padding: var(--str-chat__spacing-5) var(--str-chat__spacing-4);
69
- }
70
-
71
-
72
- .str-chat__channel-search-result-list {
73
- display: flex;
74
- flex-direction: column;
75
- overflow-y: auto;
76
- overflow-x: hidden;
77
-
78
- &.inline {
79
- flex: 1;
80
- }
81
-
82
- &.popup {
83
- position: absolute;
84
- left: 0;
85
- right: 0;
86
- top: $search-bar-height;
87
- height: 400px;
88
- // have to add z-index as since 1.2023 avatar has position relative
89
- // and the ones from channel list would show above search results
90
- z-index: 1;
91
- }
92
-
93
- .str-chat__channel-search-container-empty {
94
- display: flex;
95
- flex-direction: column;
96
- align-items: center;
97
- width: 100%;
98
- padding: var(--str-chat__spacing-5) var(--str-chat__spacing-4);
99
-
100
- svg {
101
- height: calc(var(--str-chat__spacing-px) * 90 + var(--str-chat__spacing-20));
102
- width: calc(var(--str-chat__spacing-px) * 90);
103
- padding: var(--str-chat__spacing-10) 0;
104
- }
105
- }
106
-
107
- .str-chat__channel-search-result {
108
- @include utils.button-reset;
109
- display: flex;
110
- align-items: center;
111
- width: 100%;
112
- column-gap: var(--str-chat__spacing-2);
113
- padding: var(--str-chat__spacing-3) var(--str-chat__spacing-2);
114
-
115
- .channel-search__result-text,
116
- .str-chat__channel-search-result--display-name {
117
- @include utils.ellipsis-text;
118
- @include utils.prevent-glitch-text-overflow;
119
- }
120
- }
121
- }
122
- }
@@ -1,238 +0,0 @@
1
- @use '../utils';
2
-
3
- /* Only available in React SDK. */
4
- .str-chat {
5
- /* The text/icon color of the component */
6
- --str-chat__channel-search-input-color: var(--str-chat__text-color);
7
-
8
- /* The text/icon color of the component */
9
- --str-chat__channel-search-input-placeholder-color: var(--str-chat__text-low-emphasis-color);
10
-
11
- /* The text/icon color of the component */
12
- --str-chat__channel-search-input-icon-color: var(--str-chat__text-low-emphasis-color);
13
-
14
- /* Top border of the component */
15
- --str-chat__channel-search-input-border-block-start: none;
16
-
17
- /* Bottom border of the component */
18
- --str-chat__channel-search-input-border-block-end: none;
19
-
20
- /* Left (right in RTL layout) borhe component */
21
- --str-chat__channel-search-input-border-inline-start: none;
22
-
23
- /* Right (left in RTL layout) borhe component */
24
- --str-chat__channel-search-input-border-inline-end: none;
25
-
26
- /* The border radius used for the borders of the component */
27
- --str-chat__channel-search-input-wrapper-border-radius: var(--str-chat__border-radius-lg);
28
-
29
- /* The background color of the component */
30
- --str-chat__channel-search-input-wrapper-background-color: transparent;
31
-
32
- /* Top border of the component */
33
- --str-chat__channel-search-input-wrapper-border-block-start: var(--str-chat__surface-color) 1px
34
- solid;
35
-
36
- /* Bottom border of the component */
37
- --str-chat__channel-search-input-wrapper-border-block-end: var(--str-chat__surface-color) 1px
38
- solid;
39
-
40
- /* Left (right in RTL layout) border of the component */
41
- --str-chat__channel-search-input-wrapper-border-inline-start: var(--str-chat__surface-color) 1px
42
- solid;
43
-
44
- /* Right (left in RTL layout) border of the component */
45
- --str-chat__channel-search-input-wrapper-border-inline-end: var(--str-chat__surface-color) 1px
46
- solid;
47
-
48
- /* The border radius used for the borders of the component */
49
- --str-chat__channel-search-input-wrapper-active-border-radius: var(--str-chat__border-radius-lg);
50
-
51
- /* The background color of the component */
52
- --str-chat__channel-search-input-wrapper-active-background-color: transparent;
53
-
54
- /* Top border of the component */
55
- --str-chat__channel-search-input-wrapper-active-border-block-start: var(--str-chat__primary-color)
56
- 1px solid;
57
-
58
- /* Bottom border of the component */
59
- --str-chat__channel-search-input-wrapper-active-border-block-end: var(--str-chat__primary-color)
60
- 1px solid;
61
-
62
- /* Left (right in RTL layout) border of the component */
63
- --str-chat__channel-search-input-wrapper-active-border-inline-start: var(
64
- --str-chat__primary-color
65
- )
66
- 1px solid;
67
-
68
- /* Right (left in RTL layout) border of the component */
69
- --str-chat__channel-search-input-wrapper-active-border-inline-end: var(--str-chat__primary-color)
70
- 1px solid;
71
-
72
- /* The background applied to channel search result */
73
- --str-chat__channel-search-result-background-color: transparent;
74
-
75
- /* Top border of the component */
76
- --str-chat__channel-search-result-border-block-start: none;
77
-
78
- /* Bottom border of the component */
79
- --str-chat__channel-search-result-border-block-end: none;
80
-
81
- /* Left (right in RTL layout) border of the component */
82
- --str-chat__channel-search-result-border-inline-start: none;
83
-
84
- /* Right (left in RTL layout) border of the component */
85
- --str-chat__channel-search-result-border-inline-end: none;
86
-
87
- /* Background color used for the search result hover / focused state */
88
- --str-chat__channel-search-result-hover-background-color: var(
89
- --str-chat__secondary-surface-color
90
- );
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
-
111
- /* The font color used in the search results header */
112
- --str-chat__channel-search-results-header-color: var(--str-chat__text-low-emphasis-color);
113
-
114
- /* The background color used in the search results header */
115
- --str-chat__channel-search-results-header-background-color: var(--str-chat__background-color);
116
-
117
- /* Top border of the component */
118
- --str-chat__channel-search-results-header-border-block-start: none;
119
-
120
- /* Bottom border of the component */
121
- --str-chat__channel-search-results-header-border-block-end: var(--str-chat__surface-color) 1px
122
- solid;
123
-
124
- /* Left (right in RTL layout) border of the component */
125
- --str-chat__channel-search-results-header-border-inline-start: none;
126
-
127
- /* Right (left in RTL layout) border of the component */
128
- --str-chat__channel-search-results-header-border-inline-end: none;
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
-
149
- /* The font color used in the empty search results indicator */
150
- --str-chat__channel-search-results-empty-color: var(--str-chat__text-low-emphasis-color);
151
-
152
- /* The icon color used in the empty search results indicator */
153
- --str-chat__channel-search-results-empty-icon-color: var(--str-chat__disabled-color);
154
-
155
- /* The background color used in the empty search results indicator */
156
- --str-chat__channel-search-results-empty-background-color: var(--str-chat__background-color);
157
-
158
- /* Top border of the component */
159
- --str-chat__channel-search-results-empty-border-block-start: none;
160
-
161
- /* Bottom border of the component */
162
- --str-chat__channel-search-results-empty-border-block-end: none;
163
-
164
- /* Left (right in RTL layout) border of the component */
165
- --str-chat__channel-search-results-empty-border-inline-start: none;
166
-
167
- /* Right (left in RTL layout) border of the component */
168
- --str-chat__channel-search-results-empty-border-inline-end: none;
169
- }
170
-
171
- .str-chat__channel-search-input--wrapper {
172
- @include utils.component-layer-overrides('channel-search-input-wrapper');
173
-
174
- input {
175
- @include utils.component-layer-overrides('channel-search-input');
176
- outline: none;
177
- font: var(--str-chat__subtitle-text);
178
- }
179
-
180
- .str-chat__channel-search-input--clear-button svg path {
181
- fill: transparent;
182
- }
183
- }
184
-
185
- .str-chat__channel-search-input--wrapper-active {
186
- @include utils.component-layer-overrides('channel-search-input-wrapper-active');
187
-
188
- .str-chat__channel-search-input--icon svg path {
189
- fill: var(--str-chat__primary-color);
190
- }
191
-
192
- .str-chat__channel-search-input--clear-button svg path {
193
- fill: var(--str-chat__text-low-emphasis-color);
194
- }
195
- }
196
-
197
- .str-chat__channel-search-results-header {
198
- @include utils.component-layer-overrides('channel-search-results-header');
199
- font: var(--str-chat__subtitle-text);
200
- }
201
-
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
-
213
- .str-chat__channel-search-container-empty {
214
- @include utils.component-layer-overrides('channel-search-results-empty');
215
- font: var(--str-chat__subtitle2-medium-text);
216
-
217
- svg path {
218
- fill: var(--str-chat__channel-search-results-empty-icon-color);
219
- }
220
- }
221
-
222
- .str-chat__channel-search-result {
223
- @include utils.component-layer-overrides('channel-search-result');
224
-
225
- .str-chat__channel-search-result--display-name {
226
- @include utils.channel-preview-display-name-theme;
227
- }
228
- }
229
-
230
- .str-chat__channel-preview-messenger--active {
231
- background-color: var(--str-chat__channel-preview-active-background-color);
232
- }
233
-
234
- .str-chat__channel-search-result:hover,
235
- .str-chat__channel-search-result--focused {
236
- background-color: var(--str-chat__channel-search-result-hover-background-color);
237
- }
238
- }
@@ -1,43 +0,0 @@
1
- .str-chat__chat-view {
2
- display: flex;
3
- width: 100%;
4
- height: 100%;
5
-
6
- &__selector {
7
- display: flex;
8
- flex-direction: column;
9
- padding-inline: 8px;
10
- padding-block: 16px;
11
- gap: 20px;
12
-
13
- &-button {
14
- --str-chat-icon-height: 20px;
15
- --str-chat-icon-width: 20px;
16
- --str-chat-unread-count-badge-absolute-offset-vertical: 25%;
17
-
18
- display: flex;
19
- flex-direction: column;
20
- align-items: center;
21
- padding-inline: 10px;
22
- padding-block: 10px;
23
- border-radius: 8px;
24
- gap: 4px;
25
- font-weight: 400;
26
- font-size: 12px;
27
- line-height: 1;
28
- box-sizing: border-box;
29
- cursor: pointer;
30
- position: relative;
31
- }
32
- }
33
-
34
- &__channels {
35
- display: flex;
36
- flex-grow: 1;
37
- }
38
-
39
- &__threads {
40
- display: flex;
41
- flex-grow: 1;
42
- }
43
- }
@@ -1,32 +0,0 @@
1
- /* Only available in React SDK. */
2
- .str-chat {
3
- --str-chat-selector-background-color: var(--str-chat__secondary-background-color);
4
- --str-chat-selector-border-color: var(--str-chat__surface-color);
5
-
6
- --str-chat-selector-button-color-default: var(--str-chat__text-low-emphasis-color);
7
- --str-chat-selector-button-color-selected: var(--str-chat__text-color);
8
- --str-chat-selector-button-background-color-default: transparent;
9
- --str-chat-selector-button-background-color-selected: var(--str-chat__surface-color);
10
- }
11
-
12
- .str-chat__chat-view {
13
- &__selector {
14
- border-right: 1px solid var(--str-chat-selector-border-color);
15
- background-color: var(--str-chat-selector-background-color);
16
-
17
- &-button {
18
- --str-chat-icon-color: var(--str-chat-selector-button-color-default);
19
-
20
- border: none;
21
- background: var(--str-chat-selector-button-background-color-default);
22
- color: var(--str-chat-selector-button-color-default);
23
-
24
-
25
- &[aria-selected='true'] {
26
- --str-chat-icon-color: var(--str-chat-selector-button-color-selected);
27
- color: var(--str-chat-selector-button-color-selected);
28
- background: var(--str-chat-selector-button-background-color-selected);
29
- }
30
- }
31
- }
32
- }
@@ -1,70 +0,0 @@
1
- @use '../utils';
2
-
3
- .str-chat__dialog-overlay {
4
- inset: 0;
5
- position: absolute;
6
- height: var(--str-chat__dialog-overlay-height);
7
- width: 100%;
8
- z-index: 2;
9
- }
10
-
11
- .str-chat__dialog {
12
- width: 100%;
13
-
14
- .str-chat__dialog__body {
15
- padding: 2rem 1rem;
16
- overflow-y: auto;
17
-
18
- .str-chat__dialog__title {
19
- margin-bottom: 1rem;
20
- }
21
- }
22
-
23
- .str-chat__dialog__controls {
24
- display: flex;
25
- justify-content: flex-end;
26
- gap: 1.25rem;
27
- padding: 2.25rem 1.25rem;
28
-
29
- .str-chat__dialog__controls-button {
30
- @include utils.button-reset;
31
- }
32
- }
33
- }
34
-
35
- .str-chat-angular__dialog-body {
36
- &.str-chat__dialog__body {
37
- padding: 0;
38
- }
39
-
40
- .str-chat__dialog__controls {
41
- padding-bottom: 0;
42
- }
43
- }
44
-
45
- .str-chat__prompt-dialog {
46
- input[type='text'] {
47
- width: 100%;
48
- padding: 0.625rem 1rem;
49
- }
50
- }
51
-
52
- .str-chat__dialog-menu {
53
- overflow: hidden;
54
-
55
- .str-chat__dialog-menu__button {
56
- display: flex;
57
- align-items: center;
58
- width: 100%;
59
- padding: 0.5rem 0.75rem;
60
-
61
- .str-chat__dialog-menu__button-icon {
62
- height: 1rem;
63
- width: 1rem;
64
- }
65
-
66
- .str-chat__dialog-menu__button-text {
67
- padding-inline: 0.675rem;
68
- }
69
- }
70
- }
@@ -1,103 +0,0 @@
1
- @use '../utils';
2
-
3
- .str-chat {
4
- /* The border radius used for the borders of the component */
5
- --str-chat__dialog-menu-border-radius: var(--str-chat__border-radius-sm);
6
-
7
- /* The text/icon color of the component */
8
- --str-chat__dialog-menu-color: var(--str-chat__text-color);
9
-
10
- /* The background color of the component */
11
- --str-chat__dialog-menu-background-color: var(--str-chat__secondary-background-color);
12
-
13
- /* Top border of the component */
14
- --str-chat__dialog-menu-border-block-start: none;
15
-
16
- /* Bottom border of the component */
17
- --str-chat__dialog-menu-border-block-end: none;
18
-
19
- /* Left (right in RTL layout) border of the component */
20
- --str-chat__dialog-menu-border-inline-start: none;
21
-
22
- /* Right (left in RTL layout) border of the component */
23
- --str-chat__dialog-menu-border-inline-end: none;
24
-
25
- /* Box shadow applied to the component */
26
- --str-chat__dialog-menu-box-shadow: 0 0 8px var(--str-chat__box-shadow-color);
27
-
28
- /* The border radius used for the borders of an item in the message actions box */
29
- --str-chat__dialog-menu-button-border-radius: 0;
30
-
31
- /* The text/icon color of an item in the message actions box */
32
- --str-chat__dialog-menu-button-color: var(--str-chat__text-color);
33
-
34
- /* The background color of an item in the message actions box */
35
- --str-chat__dialog-menu-button-background-color: transparent;
36
-
37
- /* The background color of an item in the message actions box when hovered */
38
- --str-chat__dialog-menu-button-hover-background-color: var(--str-chat__secondary-surface-color);
39
-
40
- /* Top border of an item in the message actions box */
41
- --str-chat__dialog-menu-button-border-block-start: none;
42
-
43
- /* Bottom border of an item in the message actions box */
44
- --str-chat__dialog-menu-button-border-block-end: none;
45
-
46
- /* Left (right in RTL layout) border of an item in the message actions box */
47
- --str-chat__dialog-menu-button-border-inline-start: none;
48
-
49
- /* Right (left in RTL layout) border of an item in the message actions box */
50
- --str-chat__dialog-menu-button-border-inline-end: none;
51
-
52
- /* Box shadow applied to an item in the message actions box */
53
- --str-chat__dialog-menu-button-box-shadow: none;
54
- }
55
-
56
- .str-chat__dialog {
57
- .str-chat__dialog__title {
58
- font: var(--str-chat__subtitle-medium-text);
59
- }
60
-
61
- .str-chat__dialog__prompt {
62
- font: var(--str-chat__subtitle-text);
63
- }
64
-
65
- .str-chat__dialog__controls {
66
- .str-chat__dialog__controls-button {
67
- cursor: pointer;
68
- font: var(--str-chat__body-medium-text);
69
- color: var(--str-chat__primary-color);
70
- }
71
-
72
- .str-chat__dialog__controls-button--submit {
73
- text-transform: uppercase;
74
-
75
- &:disabled {
76
- color: var(--str-chat__disabled-color);
77
- }
78
- }
79
- }
80
- }
81
-
82
- .str-chat__prompt-dialog {
83
- input[type=text] {
84
- font: var(--str-chat__subtitle-text);
85
- border-radius: 20px;
86
- border: 1px solid var(--str-chat__primary-color);
87
- }
88
- }
89
-
90
-
91
- .str-chat__dialog-menu {
92
- @include utils.component-layer-overrides('dialog-menu');
93
-
94
- .str-chat__dialog-menu__button {
95
- @include utils.component-layer-overrides('dialog-menu-button');
96
- cursor: pointer;
97
- font: var(--str-chat__subtitle-text);
98
-
99
- &:hover, &:focus{
100
- background-color: var(--str-chat__dialog-menu-button-hover-background-color);
101
- }
102
- }
103
- }
@@ -1,5 +0,0 @@
1
- .str-chat__drag-and-drop-container__item {
2
- display: flex;
3
- width: 100%;
4
- padding-block: 0.25rem;
5
- }
@@ -1,47 +0,0 @@
1
- .str-chat {
2
- /* Top border of the component */
3
- --str-chat__drag-and-drop-container-border-block-start: 2px solid transparent;
4
-
5
- /* Bottom border of the component */
6
- --str-chat__drag-and-drop-container-border-block-end: 2px solid transparent;
7
-
8
- /* Top border of the component on dragover */
9
- --str-chat__drag-and-drop-container-on-dragover-border-block-start: 2px solid var(--str-chat__primary-color);
10
-
11
- /* Bottom border of the component on dragover */
12
- --str-chat__drag-and-drop-container-on-dragover-border-block-end: 2px solid var(--str-chat__primary-color);
13
-
14
- /* Left (right in RTL layout) border of the component on dragover */
15
- --str-chat__drag-and-drop-container-on-dragover-border-inline-start: none;
16
-
17
- /* Right (left in RTL layout) border of the component on dragover */
18
- --str-chat__drag-and-drop-container-on-dragover-border-inline-end: none;
19
- }
20
-
21
-
22
- .str-chat__drag-and-drop-container--dragging {
23
- cursor: grabbing;
24
- }
25
-
26
- .str-chat__drag-and-drop-container__item[draggable="true"] {
27
- cursor: grab;
28
-
29
- &:active {
30
- background: transparent;
31
- }
32
- }
33
-
34
-
35
- .str-chat__drag-and-drop-container__item {
36
- border-bottom: var(--str-chat__drag-and-drop-container-border-block-start);
37
- border-top: var(--str-chat__drag-and-drop-container-border-block-start);
38
-
39
- &.str-chat__drag-and-drop-container__item--dragged-over-from-top {
40
- border-bottom: var(--str-chat__drag-and-drop-container-on-dragover-border-block-end);
41
- }
42
-
43
- &.str-chat__drag-and-drop-container__item--dragged-over-from-bottom {
44
- border-top: var(--str-chat__drag-and-drop-container-on-dragover-border-block-start);
45
- }
46
- }
47
-
@@ -1,14 +0,0 @@
1
- @use '../utils';
2
-
3
- .str-chat__dropzone-container {
4
- @include utils.flex-row-center;
5
-
6
- position: absolute;
7
- height: 100%;
8
- width: 100%;
9
- z-index: 5;
10
-
11
- p {
12
- margin: unset;
13
- }
14
- }
@@ -1,17 +0,0 @@
1
- .str-chat {
2
- /* The text/icon color of the dropzone container */
3
- --str-chat__dropzone-container-color: var(--str-chat__on-primary-color);
4
-
5
- /* The background color of the dropzone container */
6
- --str-chat__dropzone-container-background-color: var(--str-chat__primary-overlay-color);
7
-
8
- /* The backdrop filter applied to the dropzone container */
9
- --str-chat__dropzone-container-backdrop-filter: blur(3px);
10
- }
11
-
12
- .str-chat__dropzone-container {
13
- background-color: var(--str-chat__dropzone-container-background-color);
14
- color: var(--str-chat__dropzone-container-color);
15
- backdrop-filter: var(--str-chat__dropzone-container-backdrop-filter);
16
- font: var(--str-chat__subtitle-text);
17
- }