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,75 +0,0 @@
1
- /* Only available in React SDK. */
2
- .str-chat {
3
- --str-chat-thread-list-border-color: var(--str-chat__surface-color);
4
- --str-chat-thread-list-container-background-color: var(--str-chat__secondary-background-color);
5
-
6
- --str-chat-unseen-threads-banner-background-color: var(--str-chat__text-color);
7
- --str-chat-unseen-threads-banner-color: var(--str-chat__opaque-surface-text-color);
8
-
9
- --str-chat-thread-list-item-background-color-default: var(--str-chat__secondary-background-color);
10
- --str-chat-thread-list-item-background-color-selected: var(--str-chat__surface-color);
11
-
12
- --str-chat-thread-list-item-text-color: var(--str-chat__text-color);
13
- --str-chat-thread-list-item-text-low-emphasis-color: var(--str-chat__text-low-emphasis-color);
14
-
15
- --str-chat-thread-list-empty-placeholder-background-color: var(
16
- --str-chat__secondary-background-color
17
- );
18
- --str-chat-thread-list-empty-placeholder-color: var(--str-chat__text-low-emphasis-color);
19
- }
20
-
21
- .str-chat__thread-list-container {
22
- background-color: var(--str-chat-thread-list-container-background-color);
23
- }
24
-
25
- .str-chat__unseen-threads-banner {
26
- border-radius: 16px;
27
- background: var(--str-chat-unseen-threads-banner-background-color);
28
- color: var(--str-chat-unseen-threads-banner-color);
29
-
30
- &__button {
31
- --str-chat-icon-color: var(--str-chat-unseen-threads-banner-color);
32
- }
33
- }
34
-
35
- .str-chat__thread-list {
36
-
37
- border-right: 1px solid var(--str-chat-thread-list-border-color);
38
-
39
- .str-chat__thread-list-item {
40
- --str-chat-icon-color: var(--str-chat-thread-list-item-text-color);
41
-
42
- border: none;
43
- background-color: var(--str-chat-thread-list-item-background-color-default);
44
- color: var(--str-chat-thread-list-item-text-color);
45
-
46
- &[aria-selected='true'] {
47
- background-color: var(--str-chat-thread-list-item-background-color-selected);
48
-
49
- .str-chat__thread-list-item__parent-message-text,
50
- .str-chat__thread-list-item__latest-reply-text-and-timestamp {
51
- color: inherit;
52
- }
53
- }
54
-
55
- .str-chat__thread-list-item__parent-message-text {
56
- color: var(--str-chat-thread-list-item-text-low-emphasis-color);
57
- }
58
-
59
- .str-chat__thread-list-item__latest-reply {
60
- --str-chat__avatar-background-color: var(--str-chat__secondary-surface-color);
61
- --str-chat__avatar-color: var(--str-chat__text-low-emphasis-color);
62
- }
63
-
64
- .str-chat__thread-list-item__latest-reply-text-and-timestamp {
65
- color: var(--str-chat-thread-list-item-text-low-emphasis-color);
66
- }
67
- }
68
- }
69
-
70
- .str-chat__thread-list-empty-placeholder {
71
- --str-chat-icon-color: var(--str-chat-thread-list-empty-placeholder-color);
72
-
73
- background-color: var(--str-chat-thread-list-empty-placeholder-background-color);
74
- color: var(--str-chat-thread-list-empty-placeholder-color);
75
- }
@@ -1,10 +0,0 @@
1
- @use '../utils';
2
-
3
- .str-chat__tooltip {
4
- @include utils.prevent-glitch-text-overflow;
5
- display: flex;
6
- padding: var(--str-chat__spacing-2);
7
- z-index: 1;
8
- max-width: calc(var(--str-chat__spacing-px) * 150);
9
- width: max-content;
10
- }
@@ -1,36 +0,0 @@
1
- @use '../utils';
2
-
3
- .str-chat {
4
- /* The border radius used for the borders of the component */
5
- --str-chat__tooltip-border-radius: var(--str-chat__border-radius-xs);
6
-
7
- /* The text/icon color of the component */
8
- --str-chat__tooltip-color: var(--str-chat__text-color);
9
-
10
- /* The background color of the component */
11
- --str-chat__tooltip-background-color: var(--str-chat__secondary-background-color);
12
-
13
- /* Top border of the component */
14
- --str-chat__tooltip-border-block-start: none;
15
-
16
- /* Bottom border of the component */
17
- --str-chat__tooltip-border-block-end: none;
18
-
19
- /* Left (right in RTL layout) border of the component */
20
- --str-chat__tooltip-border-inline-start: none;
21
-
22
- /* Right (left in RTL layout) border of the component */
23
- --str-chat__tooltip-border-inline-end: none;
24
-
25
- /* Box shadow applied to the component */
26
- --str-chat__tooltip-box-shadow: 0 0 20px var(--str-chat__box-shadow-color);
27
- }
28
-
29
- .str-chat__tooltip {
30
- @include utils.component-layer-overrides('tooltip');
31
- font: var(--str-chat__caption-text);
32
-
33
- &::after {
34
- background-color: var(--str-chat__tooltip-background-color);
35
- }
36
- }
@@ -1,31 +0,0 @@
1
- @use '../utils';
2
-
3
- .str-chat__typing-indicator-react-host {
4
- position: static !important;
5
- }
6
-
7
- .str-chat__virtual-list .str-chat__typing-indicator {
8
- position: static;
9
- }
10
-
11
- .str-chat__typing-indicator {
12
- padding: var(--str-chat__spacing-1_5);
13
- display: flex;
14
- justify-content: flex-start;
15
- align-items: center;
16
- column-gap: var(--str-chat__spacing-1);
17
- position: absolute;
18
- inset-block-end: 0;
19
- inset-inline-start: 0;
20
- inset-inline-end: 0;
21
-
22
- .str-chat__typing-indicator__dots {
23
- @include utils.flex-row-center;
24
- column-gap: var(--str-chat__spacing-0_5);
25
-
26
- .str-chat__typing-indicator__dot {
27
- width: calc(var(--str-chat__spacing-px) * 4);
28
- height: calc(var(--str-chat__spacing-px) * 4);
29
- }
30
- }
31
- }
@@ -1,68 +0,0 @@
1
- @use '../utils';
2
-
3
- .str-chat {
4
- /* The border radius used for the borders of the component */
5
- --str-chat__typing-indicator-border-radius: none;
6
-
7
- /* The text/icon color of the component */
8
- --str-chat__typing-indicator-color: var(--str-chat__text-low-emphasis-color);
9
-
10
- /* The background color of the component */
11
- --str-chat__typing-indicator-background-color: var(--str-chat__overlay-color);
12
-
13
- /* Top border of the component */
14
- --str-chat__typing-indicator-border-block-start: none;
15
-
16
- /* Bottom border of the component */
17
- --str-chat__typing-indicator-border-block-end: none;
18
-
19
- /* Left (right in RTL layout) border of the component */
20
- --str-chat__typing-indicator-border-inline-start: none;
21
-
22
- /* Right (left in RTL layout) border of the component */
23
- --str-chat__typing-indicator-border-inline-end: none;
24
-
25
- /* Box shadow applied to the component */
26
- --str-chat__typing-indicator-box-shadow: none;
27
-
28
- /* Background color of the animated dots in the typing indicator */
29
- --str-chat__typing-indicator-dot-background-color: var(--str-chat__text-color);
30
- }
31
-
32
- .str-chat__typing-indicator {
33
- @include utils.component-layer-overrides('typing-indicator');
34
-
35
- .str-chat__typing-indicator__dots {
36
- .str-chat__typing-indicator__dot {
37
- border-radius: 999px;
38
- animation: dotFlashing 1s infinite alternate;
39
- background-color: var(--str-chat__typing-indicator-dot-background-color);
40
-
41
- &:nth-child(1) {
42
- animation-delay: 0s;
43
- }
44
-
45
- &:nth-child(2) {
46
- animation-delay: 0.5s;
47
- }
48
-
49
- &:nth-child(3) {
50
- animation-delay: 1s;
51
- }
52
-
53
- @keyframes dotFlashing {
54
- 0% {
55
- opacity: 1;
56
- }
57
-
58
- 50% {
59
- opacity: 0.6;
60
- }
61
-
62
- 100% {
63
- opacity: 0.2;
64
- }
65
- }
66
- }
67
- }
68
- }
@@ -1,49 +0,0 @@
1
- .str-chat {
2
- --str-chat-unread-count-badge-absolute-offset-vertical: 50%;
3
- --str-chat-unread-count-badge-absolute-offset-horizontal: 50%;
4
- }
5
-
6
- .str-chat__unread-count-badge-container {
7
- position: relative;
8
- display: flex;
9
- align-items: center;
10
- justify-content: center;
11
- }
12
-
13
- .str-chat__unread-count-badge {
14
- font-size: 12px;
15
- min-width: 22px;
16
- min-height: 22px;
17
- line-height: 8px;
18
- font-weight: 700;
19
- padding: 7px;
20
- flex-shrink: 0;
21
- display: flex;
22
- align-items: center;
23
- justify-content: center;
24
- font-variant-numeric: tabular-nums;
25
-
26
- &--top-right {
27
- position: absolute;
28
- translate: var(--str-chat-unread-count-badge-absolute-offset-horizontal)
29
- calc(var(--str-chat-unread-count-badge-absolute-offset-vertical) * -1);
30
- }
31
-
32
- &--bottom-left {
33
- position: absolute;
34
- translate: calc(var(--str-chat-unread-count-badge-absolute-offset-horizontal) * -1)
35
- var(--str-chat-unread-count-badge-absolute-offset-vertical);
36
- }
37
-
38
- &--bottom-right {
39
- position: absolute;
40
- translate: var(--str-chat-unread-count-badge-absolute-offset-horizontal)
41
- var(--str-chat-unread-count-badge-absolute-offset-vertical);
42
- }
43
-
44
- &--top-left {
45
- position: absolute;
46
- translate: calc(var(--str-chat-unread-count-badge-absolute-offset-horizontal) * -1)
47
- calc(var(--str-chat-unread-count-badge-absolute-offset-vertical) * -1);
48
- }
49
- }
@@ -1,11 +0,0 @@
1
- /* Only available in React SDK. */
2
- .str-chat {
3
- --str-chat-unread-count-badge-color: var(--str-chat__on-unread-badge-color);
4
- --str-chat-unread-count-badge-background-color: var(--str-chat__danger-color);
5
- }
6
-
7
- .str-chat__unread-count-badge {
8
- background-color: var(--str-chat-unread-count-badge-background-color);
9
- color: var(--str-chat-unread-count-badge-color);
10
- border-radius: 9999px;
11
- }
@@ -1,65 +0,0 @@
1
- .str-chat {
2
- box-sizing: border-box;
3
- font-family: var(--str-chat__font-family);
4
-
5
- * {
6
- box-sizing: border-box;
7
- }
8
-
9
- // Overriding styles of ngx-popperjs/ngx-float-ui
10
- .ngxp__container,
11
- .float-ui-container {
12
- z-index: 1;
13
- padding: 0 !important;
14
- box-shadow: none !important;
15
- border-color: transparent !important;
16
- max-width: 100vw;
17
-
18
- .ngxp__arrow {
19
- display: none;
20
- }
21
- }
22
- }
23
-
24
- // Fixes icon sizing problem in Angular SDK
25
- stream-icon,
26
- stream-icon-placeholder {
27
- display: flex;
28
- justify-content: center;
29
- align-items: center;
30
- }
31
-
32
- .stream-chat__paginated-list {
33
- display: flex;
34
- flex-direction: column;
35
- height: 100%;
36
- overflow-x: hidden;
37
- overflow-y: scroll;
38
- max-height: 100%;
39
- min-height: 0;
40
- gap: var(--str-chat__spacing-2);
41
-
42
- .str-chat__loading-indicator {
43
- margin: auto;
44
- }
45
-
46
- .str-chat__load-more-button__button {
47
- margin-inline: auto;
48
- }
49
- }
50
-
51
- stream-paginated-list {
52
- height: 100%;
53
- max-height: 100%;
54
- }
55
-
56
- stream-user-list {
57
- height: 100%;
58
- max-height: 100%;
59
-
60
- .str-chat__user-list-item {
61
- display: flex;
62
- align-items: center;
63
- gap: var(--str-chat__spacing-2);
64
- }
65
- }
@@ -1,45 +0,0 @@
1
- @use 'variables';
2
-
3
- $assetsPath: variables.$assetsPath !default;
4
-
5
- $emoji-flag-unicode-range: U+1F1E6-1F1FF;
6
-
7
- /* png based woff for most browsers */
8
- @font-face {
9
- font-family: ReplaceFlagEmojiPNG;
10
- src: url('#{$assetsPath}/NotoColorEmoji-flags.woff2') format('woff2');
11
- /* using the unicode-range attribute to limit the reach of the Flag Emoji web font to only flags */
12
- unicode-range: $emoji-flag-unicode-range;
13
- }
14
-
15
- /* svg based for firefox */
16
- @font-face {
17
- font-family: ReplaceFlagEmojiSVG;
18
- src: url('#{$assetsPath}/EmojiOneColor.woff2') format('woff2');
19
- unicode-range: $emoji-flag-unicode-range;
20
- }
21
-
22
- .str-chat--windows-flags {
23
- // TODO: consider adding the rule for reactions (list & selector) if we ever decide to make them use native emojis
24
- .str-chat__textarea__textarea, // class name from theme v1
25
- .str-chat__message-textarea,
26
- .str-chat__message-text-inner *,
27
- .str-chat__emoji-item--entity,
28
- .emoji-mart-emoji-native * {
29
- font-family: ReplaceFlagEmojiPNG, var(--str-chat__font-family), sans-serif;
30
- font-display: swap;
31
- }
32
- }
33
-
34
- @-moz-document url-prefix('') {
35
- .str-chat--windows-flags {
36
- .str-chat__textarea__textarea, // class name from theme v1
37
- .str-chat__message-textarea,
38
- .str-chat__message-text-inner *,
39
- .str-chat__emoji-item--entity,
40
- .emoji-mart-emoji-native * {
41
- font-family: ReplaceFlagEmojiSVG, var(--str-chat__font-family), sans-serif;
42
- font-display: swap;
43
- }
44
- }
45
- }
@@ -1,65 +0,0 @@
1
- // Since Angular uses dynamic components it's not enough the hide the message input for theme-v1/v2, we have to remove it from the DOM tree
2
- // Angular component lifecycle requires us to place this on the root level
3
- :root {
4
- /* The theme version being used, 1 or 2. Used internally by SDKs */
5
- --str-chat__theme-version: 2;
6
- }
7
-
8
- .str-chat {
9
- /* Used for elements where sizing is necessary (such as icons, avatar), you can use this variable to scale those elements */
10
- --str-chat__spacing-px: 1px;
11
-
12
- /* Used for margins and paddings */
13
- --str-chat__spacing-0_5: 0.125rem;
14
-
15
- /* Used for margins and paddings */
16
- --str-chat__spacing-1: 0.25rem;
17
-
18
- /* Used for margins and paddings */
19
- --str-chat__spacing-1_5: 0.375rem;
20
-
21
- /* Used for margins and paddings */
22
- --str-chat__spacing-2: 0.5rem;
23
-
24
- /* Used for margins and paddings */
25
- --str-chat__spacing-2_5: 0.625rem;
26
-
27
- /* Used for margins and paddings */
28
- --str-chat__spacing-3: 0.75rem;
29
-
30
- /* Used for margins and paddings */
31
- --str-chat__spacing-3_5: 0.875rem;
32
-
33
- /* Used for margins and paddings */
34
- --str-chat__spacing-4: 1rem; // 16px by default
35
-
36
- /* Used for margins and paddings */
37
- --str-chat__spacing-5: 1.25rem;
38
-
39
- /* Used for margins and paddings */
40
- --str-chat__spacing-6: 1.5rem;
41
-
42
- /* Used for margins and paddings */
43
- --str-chat__spacing-7: 1.75rem;
44
-
45
- /* Used for margins and paddings */
46
- --str-chat__spacing-8: 2rem;
47
-
48
- /* Used for margins and paddings */
49
- --str-chat__spacing-9: 2.25rem;
50
-
51
- /* Used for margins and paddings */
52
- --str-chat__spacing-10: 2.5rem;
53
-
54
- /* Used for margins and paddings */
55
- --str-chat__spacing-11: 2.75rem;
56
-
57
- /* Used for margins and paddings */
58
- --str-chat__spacing-12: 3rem;
59
-
60
- /* Used for margins and paddings */
61
- --str-chat__spacing-14: 3.5rem;
62
-
63
- /* Used for margins and paddings */
64
- --str-chat__spacing-16: 4rem;
65
- }
@@ -1,173 +0,0 @@
1
- .str-chat {
2
- /* Border radius used for slightly rounded elements */
3
- --str-chat__border-radius-xs: 8px;
4
-
5
- /* Border radius used for slightly rounded elements */
6
- --str-chat__border-radius-sm: 14px;
7
-
8
- /* Border radius used for rounded elements */
9
- --str-chat__border-radius-md: 18px;
10
-
11
- /* Border radius used for rounded elements */
12
- --str-chat__border-radius-lg: 20px;
13
-
14
- /* Border radius used for circular elements */
15
- --str-chat__border-radius-circle: 999px;
16
-
17
- /* The font used in the chat, by default, we use [preinstalled OS fonts](https://systemfontstack.com/) */
18
- --str-chat__font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen-Sans, Ubuntu,
19
- Cantarell, Helvetica Neue, sans-serif;
20
-
21
- /* The font used for caption texts */
22
- --str-chat__caption-text: 0.75rem/1.3 var(--str-chat__font-family);
23
-
24
- /* The font used for caption texts with emphasize */
25
- --str-chat__caption-medium-text: 500 0.75rem/1.3 var(--str-chat__font-family);
26
-
27
- /* The font used for caption texts with emphasize */
28
- --str-chat__caption-strong-text: 700 0.75rem/1.3 var(--str-chat__font-family);
29
-
30
- /* The font used for body texts */
31
- --str-chat__body-text: 0.875rem/1.2 var(--str-chat__font-family);
32
-
33
- /* The font used for body texts with emphasize */
34
- --str-chat__body-medium-text: 500 0.875rem/1.2 var(--str-chat__font-family);
35
-
36
- /* The font used for body texts */
37
- --str-chat__body2-text: 0.9375rem/1.2 var(--str-chat__font-family);
38
-
39
- /* The font used for body texts with emphasize */
40
- --str-chat__body2-medium-text: 500 0.9375rem/1.2 var(--str-chat__font-family);
41
-
42
- /* The font used for subtitle texts */
43
- --str-chat__subtitle-text: 1rem/1.25 var(--str-chat__font-family);
44
-
45
- /* The font used for subtitle texts with emphasize */
46
- --str-chat__subtitle-medium-text: 500 1rem/1.25 var(--str-chat__font-family);
47
-
48
- /* The font used for subtitle texts */
49
- --str-chat__subtitle2-text: 1.25rem/1.2 var(--str-chat__font-family);
50
-
51
- /* The font used for subtitle texts with emphasize */
52
- --str-chat__subtitle2-medium-text: 500 1.25rem/1.2 var(--str-chat__font-family);
53
-
54
- /* The font used for headline texts */
55
- --str-chat__headline-text: 1.5rem/1.2 var(--str-chat__font-family);
56
-
57
- /* The font used for headline texts */
58
- --str-chat__headline2-text: 1.8rem/1.2 var(--str-chat__font-family);
59
- }
60
-
61
- .str-chat,
62
- .str-chat__theme-light {
63
- /* Used for emphasis, brands can inject their main color using this variable */
64
- --str-chat__primary-color: var(--str-chat__blue500);
65
-
66
- /* Used for emphasised overlays - color of --str-chat__primary-color with alpha channel */
67
- --str-chat__primary-overlay-color: rgba(0, 95, 255, 0.6);
68
-
69
- /* Used for emphasis, brands can inject their main color using this variable, it has less emphasis than primary color */
70
- --str-chat__primary-color-low-emphasis: var(--str-chat__blue300);
71
-
72
- /* Used to indicate that a UI element with primary color is in an active state */
73
- --str-chat__active-primary-color: var(--str-chat__blue600);
74
-
75
- /* If the primary color is used as a background, text/icons are displayed in this color */
76
- --str-chat__on-primary-color: var(--str-chat__grey50);
77
-
78
- /* Used as a background color for the main chat UI components */
79
- --str-chat__background-color: var(--str-chat__grey50);
80
-
81
- /* Used as a background color for the main chat UI components */
82
- --str-chat__secondary-background-color: var(--str-chat__grey50);
83
-
84
- /* Used as a background color to give emphasis, but less vibrant than the primary color */
85
- --str-chat__primary-surface-color: var(--str-chat__blue100);
86
-
87
- /* Used as a background color to give emphasis, but less vibrant than the primary surface color */
88
- --str-chat__primary-surface-color-low-emphasis: var(--str-chat__blue50);
89
-
90
- /* A neutral color used to give emphasis to different surfaces */
91
- --str-chat__surface-color: var(--str-chat__grey300);
92
-
93
- /* A neutral color used to give emphasis to different surfaces */
94
- --str-chat__secondary-surface-color: var(--str-chat__grey200);
95
-
96
- /* A neutral color used to give emphasis to different surfaces */
97
- --str-chat__tertiary-surface-color: var(--str-chat__grey100);
98
-
99
- /* The main color used for texts/icons */
100
- --str-chat__text-color: var(--str-chat__grey950);
101
-
102
- /* Used for texts/icons that need less emphasis */
103
- --str-chat__text-low-emphasis-color: var(--str-chat__grey500);
104
-
105
- /* Used for displaying disabled UI elements (typically buttons) */
106
- --str-chat__disabled-color: var(--str-chat__grey400);
107
-
108
- /* Used for text/icon colors if disabled color is used as a background color */
109
- --str-chat__on-disabled-color: var(--str-chat__grey50);
110
-
111
- /* Used for error messages, and destructive actions */
112
- --str-chat__danger-color: var(--str-chat__red400);
113
-
114
- /* The background color used to highlight a message when jumping to a message. Only available in React SDK. */
115
- --str-chat__message-highlight-color: var(--str-chat__yellow100);
116
-
117
- /* Used for displaying the unread badge */
118
- --str-chat__unread-badge-color: var(--str-chat__red400);
119
-
120
- /* Used for text/icon colors if unread badge color is used as a background color */
121
- --str-chat__on-unread-badge-color: var(--str-chat__grey50);
122
-
123
- /* The background color used for overlays */
124
- --str-chat__overlay-color: rgba(252, 252, 252, 0.9);
125
-
126
- /* The background color used for subtle overlays */
127
- --str-chat__secondary-overlay-color: rgba(0, 0, 0, 0.2);
128
-
129
- /* The text/icon color used on subtle overlays */
130
- --str-chat__secondary-overlay-text-color: var(--str-chat__grey50);
131
-
132
- /* The background color used for opaque surfaces */
133
- --str-chat__opaque-surface-background-color: rgba(0, 0, 0, 0.8);
134
-
135
- /* The text color used on opaque surfaces */
136
- --str-chat__opaque-surface-text-color: var(--str-chat__grey50);
137
-
138
- /* If a component has a box shadow applied to it, this will be the color used for the shadow */
139
- --str-chat__box-shadow-color: rgba(0, 0, 0, 0.18);
140
-
141
- /* Used for online indicator and success messages */
142
- --str-chat__info-color: var(--str-chat__green500);
143
- }
144
-
145
- .str-chat__theme-dark {
146
- --str-chat__primary-color: var(--str-chat__blue400);
147
- --str-chat__primary-overlay-color: rgba(51, 126, 255, 0.6);
148
- --str-chat__primary-color-low-emphasis: var(--str-chat__blue700);
149
- --str-chat__active-primary-color: var(--str-chat__blue600);
150
- --str-chat__on-primary-color: var(--str-chat__grey50);
151
- --str-chat__background-color: var(--str-chat__grey950);
152
- --str-chat__secondary-background-color: var(--str-chat__grey900);
153
- --str-chat__primary-surface-color: var(--str-chat__blue900);
154
- --str-chat__primary-surface-color-low-emphasis: var(--str-chat__blue950);
155
- --str-chat__surface-color: var(--str-chat__grey700);
156
- --str-chat__secondary-surface-color: var(--str-chat__grey800);
157
- --str-chat__tertiary-surface-color: var(--str-chat__grey900);
158
- --str-chat__text-color: var(--str-chat__grey50);
159
- --str-chat__text-low-emphasis-color: var(--str-chat__grey500);
160
- --str-chat__disabled-color: var(--str-chat__grey600);
161
- --str-chat__on-disabled-color: var(--str-chat__grey50);
162
- --str-chat__danger-color: var(--str-chat__red600);
163
- --str-chat__message-highlight-color: var(--str-chat__yellow900);
164
- --str-chat__unread-badge-color: var(--str-chat__red400);
165
- --str-chat__on-unread-badge-color: var(--str-chat__grey50);
166
- --str-chat__overlay-color: rgba(0, 0, 0, 0.7);
167
- --str-chat__secondary-overlay-color: rgba(0, 0, 0, 0.4);
168
- --str-chat__secondary-overlay-text-color: var(--str-chat__grey50);
169
- --str-chat__opaque-surface-background-color: rgba(250, 250, 250, 0.85);
170
- --str-chat__opaque-surface-text-color: var(--str-chat__grey900);
171
- --str-chat__box-shadow-color: rgba(0, 0, 0, 0.8);
172
- --str-chat__info-color: var(--str-chat__green500);
173
- }