@weavy/uikit-react 12.1.0 → 14.0.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.
Files changed (280) hide show
  1. package/changelog.md +60 -0
  2. package/dist/cjs/index.js +28 -6
  3. package/dist/cjs/index.js.map +1 -1
  4. package/dist/cjs/types/client/WeavyClient.d.ts +8 -1
  5. package/dist/cjs/types/components/Attachment.d.ts +2 -1
  6. package/dist/cjs/types/components/Chat.d.ts +1 -1
  7. package/dist/cjs/types/components/Messages.d.ts +3 -1
  8. package/dist/cjs/types/components/PdfViewer.d.ts +3 -1
  9. package/dist/cjs/types/components/Preview.d.ts +8 -10
  10. package/dist/cjs/types/contexts/PreviewContext.d.ts +2 -1
  11. package/dist/cjs/types/contexts/WeavyContext.d.ts +2 -3
  12. package/dist/cjs/types/hooks/useConversations.d.ts +1 -1
  13. package/dist/cjs/types/hooks/useMutateMessage.d.ts +1 -1
  14. package/dist/cjs/types/hooks/useMutateRead.d.ts +1 -0
  15. package/dist/cjs/types/types/Chat.d.ts +2 -1
  16. package/dist/cjs/types/types/Message.d.ts +2 -0
  17. package/dist/cjs/types/types/types.d.ts +63 -9
  18. package/dist/cjs/types/ui/Spinner.d.ts +10 -0
  19. package/dist/cjs/types/utils/fileUtilities.d.ts +1 -4
  20. package/dist/css/weavy-chat.css +1803 -1041
  21. package/dist/css/weavy-messenger.css +2141 -1360
  22. package/dist/css/weavy.css +1943 -1162
  23. package/dist/esm/index.js +28 -6
  24. package/dist/esm/index.js.map +1 -1
  25. package/dist/esm/types/client/WeavyClient.d.ts +8 -1
  26. package/dist/esm/types/components/Attachment.d.ts +2 -1
  27. package/dist/esm/types/components/Chat.d.ts +1 -1
  28. package/dist/esm/types/components/Messages.d.ts +3 -1
  29. package/dist/esm/types/components/PdfViewer.d.ts +3 -1
  30. package/dist/esm/types/components/Preview.d.ts +8 -10
  31. package/dist/esm/types/contexts/PreviewContext.d.ts +2 -1
  32. package/dist/esm/types/contexts/WeavyContext.d.ts +2 -3
  33. package/dist/esm/types/hooks/useConversations.d.ts +1 -1
  34. package/dist/esm/types/hooks/useMutateMessage.d.ts +1 -1
  35. package/dist/esm/types/hooks/useMutateRead.d.ts +1 -0
  36. package/dist/esm/types/types/Chat.d.ts +2 -1
  37. package/dist/esm/types/types/Message.d.ts +2 -0
  38. package/dist/esm/types/types/types.d.ts +63 -9
  39. package/dist/esm/types/ui/Spinner.d.ts +10 -0
  40. package/dist/esm/types/utils/fileUtilities.d.ts +1 -4
  41. package/dist/index.d.ts +15 -7
  42. package/package.json +2 -2
  43. package/rollup.config.js +3 -1
  44. package/src/client/WeavyClient.ts +105 -29
  45. package/src/components/Attachment.tsx +8 -7
  46. package/src/components/Chat.tsx +8 -7
  47. package/src/components/Conversation.tsx +29 -23
  48. package/src/components/ConversationBadge.tsx +7 -5
  49. package/src/components/ConversationForm.tsx +1 -1
  50. package/src/components/ConversationList.tsx +59 -11
  51. package/src/components/ConversationListItem.tsx +71 -54
  52. package/src/components/FileBrowser.tsx +53 -50
  53. package/src/components/MeetingCard.tsx +35 -13
  54. package/src/components/Meetings.tsx +1 -1
  55. package/src/components/Message.tsx +41 -41
  56. package/src/components/Messages.tsx +62 -61
  57. package/src/components/Messenger.tsx +7 -2
  58. package/src/components/NewConversation.tsx +1 -1
  59. package/src/components/PdfViewer.tsx +93 -88
  60. package/src/components/Preview.tsx +115 -54
  61. package/src/components/Reactions.tsx +11 -5
  62. package/src/components/SearchUsers.tsx +21 -11
  63. package/src/components/SeenBy.tsx +13 -7
  64. package/src/components/Typing.tsx +11 -12
  65. package/src/contexts/PreviewContext.tsx +90 -16
  66. package/src/contexts/UserContext.tsx +1 -1
  67. package/src/contexts/WeavyContext.tsx +10 -7
  68. package/src/hooks/useBadge.ts +2 -6
  69. package/src/hooks/useChat.ts +3 -14
  70. package/src/hooks/useConversation.ts +1 -7
  71. package/src/hooks/useConversations.ts +15 -11
  72. package/src/hooks/useFileUploader.ts +6 -8
  73. package/src/hooks/useMembers.ts +1 -7
  74. package/src/hooks/useMessages.ts +1 -7
  75. package/src/hooks/useMutateChat.ts +6 -11
  76. package/src/hooks/useMutateConversation.ts +7 -10
  77. package/src/hooks/useMutateConversationName.ts +10 -12
  78. package/src/hooks/useMutateDeleteReaction.ts +3 -8
  79. package/src/hooks/useMutateExternalBlobs.ts +6 -11
  80. package/src/hooks/useMutateMeeting.ts +6 -11
  81. package/src/hooks/useMutateMembers.ts +8 -13
  82. package/src/hooks/useMutateMessage.ts +9 -18
  83. package/src/hooks/useMutatePinned.ts +3 -8
  84. package/src/hooks/useMutateReaction.ts +6 -12
  85. package/src/hooks/useMutateRead.ts +5 -12
  86. package/src/hooks/useMutateRemoveMembers.ts +7 -12
  87. package/src/hooks/useMutateTyping.ts +6 -11
  88. package/src/hooks/usePresence.ts +2 -3
  89. package/src/hooks/useReactions.ts +11 -12
  90. package/src/hooks/useSearchUsers.ts +1 -6
  91. package/src/hooks/useUser.ts +3 -14
  92. package/src/scss/theme/_alert.scss +61 -63
  93. package/src/scss/theme/_appbar.scss +105 -28
  94. package/src/scss/theme/_avatar.scss +23 -28
  95. package/src/scss/theme/_badge.scss +26 -18
  96. package/src/scss/theme/_buttons.scss +107 -52
  97. package/src/scss/theme/_card.scss +102 -4
  98. package/src/scss/theme/_checkbox.scss +16 -20
  99. package/src/scss/theme/_code-vscode-dark.scss +184 -0
  100. package/src/scss/theme/_code-vscode-light.scss +179 -0
  101. package/src/scss/theme/_code.scss +9 -114
  102. package/src/scss/theme/_comment-editor-cm.scss +97 -0
  103. package/src/scss/theme/_comment-editor.scss +129 -0
  104. package/src/scss/theme/_comments.scss +66 -0
  105. package/src/scss/theme/_content.scss +33 -5
  106. package/src/scss/theme/_conversations.scss +19 -78
  107. package/src/scss/theme/_dropdown.scss +102 -15
  108. package/src/scss/theme/_embed.scss +135 -0
  109. package/src/scss/theme/_facepile.scss +11 -0
  110. package/src/scss/theme/_filebrowser.scss +1 -1
  111. package/src/scss/theme/_files.scss +77 -48
  112. package/src/scss/theme/_grid.scss +8 -0
  113. package/src/scss/theme/_icons.scss +155 -19
  114. package/src/scss/theme/_image-grid.scss +7 -10
  115. package/src/scss/theme/_input.scss +160 -0
  116. package/src/scss/theme/_item.scss +169 -0
  117. package/src/scss/theme/_list.scss +57 -0
  118. package/src/scss/theme/_meeting.scss +11 -0
  119. package/src/scss/theme/_message-editor-cm.scss +95 -0
  120. package/src/scss/theme/_message-editor.scss +66 -20
  121. package/src/scss/theme/_messages.scss +51 -105
  122. package/src/scss/theme/_meta.scss +12 -0
  123. package/src/scss/theme/_overlays.scss +31 -76
  124. package/src/scss/theme/_pager.scss +5 -1
  125. package/src/scss/theme/_pane.scss +13 -2
  126. package/src/scss/theme/_panels.scss +34 -25
  127. package/src/scss/theme/_picker-list.scss +5 -3
  128. package/src/scss/theme/_placeholder.scss +19 -0
  129. package/src/scss/theme/_poll.scss +49 -0
  130. package/src/scss/theme/_post-editor-cm.scss +100 -0
  131. package/src/scss/theme/_post-editor.scss +127 -0
  132. package/src/scss/theme/_post.scss +83 -0
  133. package/src/scss/theme/_preview-code.scss +14 -0
  134. package/src/scss/theme/_preview-embed.scss +11 -5
  135. package/src/scss/theme/_preview-image.scss +8 -26
  136. package/src/scss/theme/_preview-media.scss +1 -0
  137. package/src/scss/theme/_preview-pdf.scss +10 -15
  138. package/src/scss/theme/_preview-text.scss +1 -1
  139. package/src/scss/theme/_preview.scss +59 -76
  140. package/src/scss/theme/_reactions.scss +48 -17
  141. package/src/scss/theme/_sheet.scss +59 -0
  142. package/src/scss/theme/_sidebar.scss +86 -0
  143. package/src/scss/theme/_spinner.scss +11 -7
  144. package/src/scss/theme/_tab.scss +72 -0
  145. package/src/scss/theme/_tables.scss +70 -23
  146. package/src/scss/theme/_toasts.scss +56 -26
  147. package/src/scss/theme/_type.scss +41 -0
  148. package/src/scss/theme/{mixins → base}/_backdrop.scss +0 -0
  149. package/src/scss/theme/{bootstrap/mixins → base}/_breakpoints.scss +9 -0
  150. package/src/scss/theme/base/_colors.scss +315 -0
  151. package/src/scss/theme/base/_md.scss +19 -0
  152. package/src/scss/theme/base/_palette.scss +130 -0
  153. package/src/scss/theme/{mixins → base}/_position.scss +5 -5
  154. package/src/scss/theme/base/_reboot.scss +51 -0
  155. package/src/scss/theme/base/_scroll.scss +180 -0
  156. package/src/scss/theme/base/_svg.scss +49 -0
  157. package/src/scss/theme/base/_text.scss +23 -0
  158. package/src/scss/theme/base/_vars.scss +203 -0
  159. package/src/scss/theme/{fonts → base/fonts}/_fontmapping-roboto.scss +0 -0
  160. package/src/scss/theme/{fonts → base/fonts}/_fontmapping-segoe-ui.scss +0 -0
  161. package/src/scss/theme/base/fonts/_index.scss +2 -0
  162. package/src/scss/weavy-chat.scss +11 -4
  163. package/src/scss/weavy-messenger.scss +38 -21
  164. package/src/types/Chat.ts +2 -1
  165. package/src/types/Message.ts +3 -1
  166. package/src/types/types.ts +72 -10
  167. package/src/ui/Icon.tsx +1 -1
  168. package/src/ui/Spinner.tsx +19 -0
  169. package/src/utils/fileUtilities.ts +11 -125
  170. package/src/utils/infiniteScroll.js +11 -2
  171. package/src/utils/postal-parent.js +398 -0
  172. package/src/utils/promise.js +187 -0
  173. package/src/utils/scrollbarDetection.js +68 -9
  174. package/src/utils/utils.js +547 -0
  175. package/src/scss/theme/_attachments.scss +0 -74
  176. package/src/scss/theme/_cm-editor.scss +0 -42
  177. package/src/scss/theme/_colors.scss +0 -520
  178. package/src/scss/theme/_config.scss +0 -6
  179. package/src/scss/theme/_inputs.scss +0 -28
  180. package/src/scss/theme/_nav.scss +0 -52
  181. package/src/scss/theme/_palette.scss +0 -165
  182. package/src/scss/theme/_preview-icon.scss +0 -41
  183. package/src/scss/theme/_reboot.scss +0 -41
  184. package/src/scss/theme/_root.scss +0 -2
  185. package/src/scss/theme/_scroll.scss +0 -55
  186. package/src/scss/theme/_search.scss +0 -68
  187. package/src/scss/theme/_turbo.scss +0 -17
  188. package/src/scss/theme/_variables.scss +0 -139
  189. package/src/scss/theme/bootstrap/_accordion.scss +0 -146
  190. package/src/scss/theme/bootstrap/_alert.scss +0 -71
  191. package/src/scss/theme/bootstrap/_badge.scss +0 -38
  192. package/src/scss/theme/bootstrap/_breadcrumb.scss +0 -40
  193. package/src/scss/theme/bootstrap/_button-group.scss +0 -142
  194. package/src/scss/theme/bootstrap/_buttons.scss +0 -186
  195. package/src/scss/theme/bootstrap/_card.scss +0 -234
  196. package/src/scss/theme/bootstrap/_carousel.scss +0 -229
  197. package/src/scss/theme/bootstrap/_close.scss +0 -40
  198. package/src/scss/theme/bootstrap/_containers.scss +0 -41
  199. package/src/scss/theme/bootstrap/_dropdown.scss +0 -248
  200. package/src/scss/theme/bootstrap/_forms.scss +0 -9
  201. package/src/scss/theme/bootstrap/_functions.scss +0 -302
  202. package/src/scss/theme/bootstrap/_grid.scss +0 -33
  203. package/src/scss/theme/bootstrap/_helpers.scss +0 -10
  204. package/src/scss/theme/bootstrap/_images.scss +0 -42
  205. package/src/scss/theme/bootstrap/_list-group.scss +0 -191
  206. package/src/scss/theme/bootstrap/_maps.scss +0 -54
  207. package/src/scss/theme/bootstrap/_mixins.scss +0 -43
  208. package/src/scss/theme/bootstrap/_modal.scss +0 -237
  209. package/src/scss/theme/bootstrap/_nav.scss +0 -172
  210. package/src/scss/theme/bootstrap/_navbar.scss +0 -276
  211. package/src/scss/theme/bootstrap/_offcanvas.scss +0 -143
  212. package/src/scss/theme/bootstrap/_pagination.scss +0 -109
  213. package/src/scss/theme/bootstrap/_placeholders.scss +0 -51
  214. package/src/scss/theme/bootstrap/_popover.scss +0 -196
  215. package/src/scss/theme/bootstrap/_progress.scss +0 -59
  216. package/src/scss/theme/bootstrap/_reboot.scss +0 -610
  217. package/src/scss/theme/bootstrap/_root.scss +0 -73
  218. package/src/scss/theme/bootstrap/_spinners.scss +0 -85
  219. package/src/scss/theme/bootstrap/_tables.scss +0 -164
  220. package/src/scss/theme/bootstrap/_toasts.scss +0 -70
  221. package/src/scss/theme/bootstrap/_tooltip.scss +0 -120
  222. package/src/scss/theme/bootstrap/_transitions.scss +0 -27
  223. package/src/scss/theme/bootstrap/_type.scss +0 -106
  224. package/src/scss/theme/bootstrap/_utilities.scss +0 -647
  225. package/src/scss/theme/bootstrap/_variables.scss +0 -1633
  226. package/src/scss/theme/bootstrap/forms/_floating-labels.scss +0 -74
  227. package/src/scss/theme/bootstrap/forms/_form-check.scss +0 -175
  228. package/src/scss/theme/bootstrap/forms/_form-control.scss +0 -194
  229. package/src/scss/theme/bootstrap/forms/_form-range.scss +0 -91
  230. package/src/scss/theme/bootstrap/forms/_form-select.scss +0 -71
  231. package/src/scss/theme/bootstrap/forms/_form-text.scss +0 -11
  232. package/src/scss/theme/bootstrap/forms/_input-group.scss +0 -129
  233. package/src/scss/theme/bootstrap/forms/_labels.scss +0 -36
  234. package/src/scss/theme/bootstrap/forms/_validation.scss +0 -12
  235. package/src/scss/theme/bootstrap/helpers/_clearfix.scss +0 -3
  236. package/src/scss/theme/bootstrap/helpers/_color-bg.scss +0 -10
  237. package/src/scss/theme/bootstrap/helpers/_colored-links.scss +0 -12
  238. package/src/scss/theme/bootstrap/helpers/_position.scss +0 -36
  239. package/src/scss/theme/bootstrap/helpers/_ratio.scss +0 -26
  240. package/src/scss/theme/bootstrap/helpers/_stacks.scss +0 -15
  241. package/src/scss/theme/bootstrap/helpers/_stretched-link.scss +0 -15
  242. package/src/scss/theme/bootstrap/helpers/_text-truncation.scss +0 -7
  243. package/src/scss/theme/bootstrap/helpers/_visually-hidden.scss +0 -8
  244. package/src/scss/theme/bootstrap/helpers/_vr.scss +0 -8
  245. package/src/scss/theme/bootstrap/mixins/_alert.scss +0 -15
  246. package/src/scss/theme/bootstrap/mixins/_backdrop.scss +0 -14
  247. package/src/scss/theme/bootstrap/mixins/_banner.scss +0 -9
  248. package/src/scss/theme/bootstrap/mixins/_border-radius.scss +0 -78
  249. package/src/scss/theme/bootstrap/mixins/_box-shadow.scss +0 -18
  250. package/src/scss/theme/bootstrap/mixins/_buttons.scss +0 -70
  251. package/src/scss/theme/bootstrap/mixins/_caret.scss +0 -64
  252. package/src/scss/theme/bootstrap/mixins/_clearfix.scss +0 -9
  253. package/src/scss/theme/bootstrap/mixins/_color-scheme.scss +0 -7
  254. package/src/scss/theme/bootstrap/mixins/_container.scss +0 -11
  255. package/src/scss/theme/bootstrap/mixins/_deprecate.scss +0 -10
  256. package/src/scss/theme/bootstrap/mixins/_forms.scss +0 -152
  257. package/src/scss/theme/bootstrap/mixins/_gradients.scss +0 -47
  258. package/src/scss/theme/bootstrap/mixins/_grid.scss +0 -151
  259. package/src/scss/theme/bootstrap/mixins/_image.scss +0 -16
  260. package/src/scss/theme/bootstrap/mixins/_list-group.scss +0 -24
  261. package/src/scss/theme/bootstrap/mixins/_lists.scss +0 -7
  262. package/src/scss/theme/bootstrap/mixins/_pagination.scss +0 -10
  263. package/src/scss/theme/bootstrap/mixins/_reset-text.scss +0 -17
  264. package/src/scss/theme/bootstrap/mixins/_resize.scss +0 -6
  265. package/src/scss/theme/bootstrap/mixins/_table-variants.scss +0 -24
  266. package/src/scss/theme/bootstrap/mixins/_text-truncate.scss +0 -8
  267. package/src/scss/theme/bootstrap/mixins/_transition.scss +0 -26
  268. package/src/scss/theme/bootstrap/mixins/_utilities.scss +0 -97
  269. package/src/scss/theme/bootstrap/mixins/_visually-hidden.scss +0 -29
  270. package/src/scss/theme/bootstrap/utilities/_api.scss +0 -47
  271. package/src/scss/theme/bootstrap/vendor/_rfs.scss +0 -354
  272. package/src/scss/theme/bs/_badge.scss +0 -20
  273. package/src/scss/theme/bs/_buttons.scss +0 -185
  274. package/src/scss/theme/bs/_dropdown.scss +0 -86
  275. package/src/scss/theme/bs/_forms.scss +0 -161
  276. package/src/scss/theme/bs/_list-group.scss +0 -73
  277. package/src/scss/theme/bs/_tables.scss +0 -46
  278. package/src/scss/theme/fonts/_index.scss +0 -2
  279. package/src/scss/theme/mixins/_palette.scss +0 -165
  280. package/src/scss/theme/mixins/_scrollbar.scss +0 -110
@@ -0,0 +1,169 @@
1
+ @use "base/vars";
2
+ @use "base/colors";
3
+ @use "base/text";
4
+
5
+ // An individual (list) item with support for icon/img, content and actions.
6
+ .wy-item {
7
+ position: relative;
8
+ display: flex;
9
+ align-items: center;
10
+ gap: .5rem;
11
+ padding: .25rem .75rem;
12
+ text-decoration: none;
13
+ min-height: 3rem;
14
+ // Adjust position of icon/avatar (makes padding/margin look ok for all combinations of item content)
15
+ > .wy-avatar, > .wy-icon, > .wy-icon-stack {
16
+ margin-left: -.25rem;
17
+ }
18
+ }
19
+
20
+ .wy-item-body {
21
+ width: 100%;
22
+ @include text.truncate;
23
+
24
+ > * {
25
+ @include text.truncate;
26
+ }
27
+ // adjust position of buttons/emoji
28
+ + .wy-dropdown, + .wy-button-icon, + .wy-item-actions {
29
+ margin-right: -.5rem;
30
+ }
31
+
32
+ + .wy-emoji {
33
+ margin-right: .125rem;
34
+ }
35
+
36
+ }
37
+
38
+ .wy-item-title {
39
+ color: colors.$on-background;
40
+ font-weight: vars.$headings-font-weight;
41
+ @include text.truncate;
42
+ }
43
+
44
+ .wy-item-text {
45
+ color: colors.$outline;
46
+ @include text.truncate;
47
+ font-size: vars.$font-size-sm;
48
+
49
+ .wy-emoji, .wy-icon {
50
+ width: 1.25rem;
51
+ height: 1.25rem;
52
+ vertical-align: -.3125rem;
53
+ }
54
+ }
55
+
56
+ // For items with more than one action, and items with top/bottom positioned actions
57
+ .wy-item-actions {
58
+ --wy-component-background-color: transparent;
59
+ display: flex;
60
+ align-items: center;
61
+ flex: 0 0 auto;
62
+ }
63
+
64
+ .wy-item-actions-top {
65
+ position: absolute;
66
+ top: .25rem;
67
+ right: .25rem;
68
+ margin:0 !important;
69
+ }
70
+
71
+ .wy-item-actions-bottom {
72
+ position: absolute;
73
+ bottom: .25rem;
74
+ right: .25rem;
75
+ margin: 0 !important;
76
+ }
77
+
78
+ .wy-item-body:has(+ .wy-item-actions-bottom) {
79
+ .wy-item-row:last-child {
80
+ // room for 2 icons
81
+ margin-right: 4.5rem;
82
+ }
83
+ }
84
+
85
+ .wy-item-body:has(+ .wy-item-actions-top) {
86
+ .wy-item-row:first-child {
87
+ // room for 1 icon
88
+ margin-right: 2rem;
89
+ }
90
+ }
91
+
92
+ .wy-item-row {
93
+ display: flex;
94
+ align-items: center;
95
+
96
+ &:first-child {
97
+ margin-bottom: .125rem;
98
+ }
99
+
100
+ .wy-item-title {
101
+ margin-right: auto;
102
+ }
103
+
104
+ .wy-item-text {
105
+ margin-right: auto;
106
+ }
107
+
108
+
109
+ .wy-meta {
110
+ margin: 0 .25rem;
111
+ white-space: nowrap;
112
+ }
113
+ }
114
+
115
+ // An actionable item with hover, disabled, and active states.
116
+ .wy-item-hover {
117
+ //--wy-component-background-color: #{colors.$surface-1};
118
+ //--wy-component-color: #{colors.$on-surface};
119
+ //background-color: var(--wy-component-background-color);
120
+ //color: var(--wy-component-color);
121
+
122
+ user-select: none;
123
+ cursor: pointer;
124
+
125
+ // Hover state
126
+ &:hover,
127
+ &:focus {
128
+ --wy-component-background-color: #{colors.$surface-2};
129
+ --wy-component-color: #{colors.$on-surface};
130
+ background-color: var(--wy-component-background-color);
131
+ color: var(--wy-component-color);
132
+ text-decoration: none;
133
+ }
134
+
135
+ &:active {
136
+ --wy-component-background-color: #{colors.$surface-variant};
137
+ --wy-component-color: #{colors.$on-surface-variant};
138
+ background-color: var(--wy-component-background-color);
139
+ color: var(--wy-component-color);
140
+ }
141
+
142
+ &.wy-disabled,
143
+ &:disabled {
144
+ //--wy-component-background-color: #{colors.$surface-1};
145
+ //background-color: var(--wy-component-background-color);
146
+ opacity: vars.$opacity-disabled;
147
+ pointer-events: none;
148
+ }
149
+ // Include both here for `<a>`s and `<button>`s
150
+ &.wy-active {
151
+ --wy-component-background-color: #{colors.$primary-container};
152
+ --wy-component-color: #{colors.$on-primary-container};
153
+ background-color: var(--wy-component-background-color);
154
+ color: var(--wy-component-color);
155
+ border-color: var(--wy-component-background-color);
156
+ }
157
+ }
158
+
159
+ // Item with room for larger icon and two rows of content
160
+ .wy-item-lg {
161
+ padding: .75rem;
162
+ min-height: 4.5rem;
163
+ gap: .75rem;
164
+
165
+ // adjust position of icon/avatar
166
+ > .wy-avatar, > .wy-icon, > .wy-icon-stack {
167
+ margin-left: 0;
168
+ }
169
+ }
@@ -0,0 +1,57 @@
1
+ @use "base/vars";
2
+ @use "base/colors";
3
+ @use "base/text";
4
+
5
+ // A list of items with rounded corners and spacing to visually group them together
6
+ .wy-list {
7
+ border-radius: vars.$border-radius-sm;
8
+ display: flex;
9
+ flex-direction: column;
10
+ gap: 1px;
11
+ min-width: 0;
12
+
13
+ .wy-item {
14
+
15
+ &:not(.wy-item-hover) {
16
+ --wy-component-background-color: #{colors.$background};
17
+ --wy-component-color: #{colors.$on-background};
18
+ background-color: var(--wy-component-background-color);
19
+ color: var(--wy-component-color);
20
+ }
21
+
22
+ &:first-child {
23
+ border-top-left-radius: inherit;
24
+ border-top-right-radius: inherit;
25
+ }
26
+
27
+ &:last-child {
28
+ border-bottom-left-radius: inherit;
29
+ border-bottom-right-radius: inherit;
30
+ }
31
+ }
32
+ }
33
+
34
+ // A list of items with rounded corners and borders to visually group them together
35
+ .wy-list-bordered {
36
+ border: 1px solid #{colors.$outline-variant};
37
+ gap:0;
38
+
39
+ .wy-item {
40
+ border-top: 1px solid #{colors.$outline-variant};
41
+ border-left: none;
42
+ border-right: none;
43
+
44
+ &:first-child {
45
+ border-top: none;
46
+ }
47
+
48
+ &:last-child {
49
+ border-bottom: none;
50
+ }
51
+
52
+ & + & {
53
+ // No top-border on following items
54
+ border-top-width: 0;
55
+ }
56
+ }
57
+ }
@@ -0,0 +1,11 @@
1
+ @use "base/colors";
2
+ @use "base/vars";
3
+
4
+ .wy-meeting {
5
+ flex: 1 1 100%;
6
+ align-items: flex-start;
7
+ }
8
+
9
+ .wy-meeting-actions {
10
+ margin-top: .5rem;
11
+ }
@@ -0,0 +1,95 @@
1
+ @use "base/vars";
2
+ @use "base/colors";
3
+ @use "base/scroll";
4
+ @use "base/svg";
5
+ @use "message-editor";
6
+
7
+ .wy-message-editor {
8
+ .ͼ1 .cm-scroller {
9
+ font-family: unset;
10
+ line-height: 1.5;
11
+ }
12
+
13
+ .ͼ1 .cm-widgetBuffer {
14
+ vertical-align: unset;
15
+ }
16
+
17
+ .ͼ1 .cm-placeholder {
18
+ color: #{colors.$outline};
19
+ }
20
+
21
+ .ͼ1.cm-editor {
22
+ @extend %message-editor-textfield;
23
+
24
+ &.cm-focused {
25
+ /* default theme in codemirror seems difficult to override */
26
+ --wy-component-color: #{colors.$on-background};
27
+ color: var(--wy-component-color);
28
+ border-color: #{colors.$outline-variant};
29
+ outline: 0;
30
+ }
31
+
32
+ .cm-content {
33
+ @extend %message-editor-textcontent;
34
+ }
35
+
36
+ .cm-scroller {
37
+ overflow: auto;
38
+
39
+ .wy-scrollbars & {
40
+ @include scroll.custom-scrollbar;
41
+ // scrollbar offsets
42
+ @include scroll.scrollbar-top-padding(0.375rem);
43
+ @include scroll.scrollbar-bottom-padding(0.375rem);
44
+ }
45
+ }
46
+ }
47
+
48
+ .wy-is-invalid + [data-editor-target] .cm-editor {
49
+ border-color: colors.$error !important;
50
+ }
51
+ // autocomplete dropdown menu
52
+ .ͼ1 {
53
+ .cm-tooltip.cm-tooltip-autocomplete > ul {
54
+ font-family: unset;
55
+ max-height: 15rem; // room for 5 items
56
+
57
+ > li {
58
+ padding: 0;
59
+ }
60
+ }
61
+ }
62
+
63
+ .ͼ2 {
64
+ .cm-tooltip {
65
+ border: none;
66
+ background-clip: padding-box;
67
+ background-color: #{colors.$surface-2};
68
+ color: #{colors.$on-surface};
69
+ border-radius: vars.$border-radius;
70
+ box-shadow: vars.$shadow-level1;
71
+ overflow: hidden;
72
+ z-index: vars.$zindex-dropdown;
73
+ }
74
+
75
+ .cm-tooltip-autocomplete ul li[aria-selected] {
76
+ background: #{colors.$primary-container};
77
+ color: unset;
78
+ }
79
+ }
80
+
81
+ .cm-tooltip-autocomplete {
82
+ .cm-completionLabel {
83
+ display: none;
84
+ }
85
+
86
+ .wy-item-hover:hover, .wy-item-hover:focus {
87
+ background: #{colors.$surface-variant};
88
+ }
89
+
90
+ .wy-avatar {
91
+ width: 32px;
92
+ height: 32px;
93
+ }
94
+ }
95
+ }
@@ -1,12 +1,43 @@
1
- @use "config" as *;
2
- @use "mixins/backdrop";
3
- @use "mixins/position";
1
+ @use "base/vars";
2
+ @use "base/colors";
3
+ @use "base/backdrop";
4
+ @use "base/position";
5
+
4
6
 
5
7
  .wy-message-editor {
8
+ //background-color: colors.$surface-1;
9
+ }
10
+
11
+ .wy-message-editor-top {
12
+ @include position.sticky-top;
13
+
14
+ background-color: var(--wy-component-background-color);
15
+ color: var(--wy-component-color);
16
+ }
17
+
18
+ .wy-message-editor-bottom {
6
19
  @include position.sticky-bottom;
7
- @include backdrop.filter;
8
20
 
9
- background-color: rgba($light, $opacity-backdrop);
21
+ background-color: var(--wy-component-background-color);
22
+ color: var(--wy-component-color);
23
+ }
24
+
25
+ .wy-message-editor-dragging {
26
+ &::after {
27
+ content: "Drop files here to upload.";
28
+ background-color: rgba(255, 255, 255, .5);
29
+ display: flex;
30
+ justify-content: center;
31
+ align-items: center;
32
+ border: 2px dashed colors.$primary;
33
+ font-weight: vars.$font-weight-bold;
34
+ z-index: 10000;
35
+ position: absolute;
36
+ top: 0;
37
+ left: 0;
38
+ bottom: 0;
39
+ right: 0;
40
+ }
10
41
  }
11
42
 
12
43
  .wy-message-form {
@@ -19,13 +50,13 @@
19
50
  display: block;
20
51
  }
21
52
 
22
- .wy-icon-attachment {
53
+ [data-icon=plus] {
23
54
  display: none;
24
55
  }
25
56
  }
26
57
 
27
58
  .wy-picker-list:not(:empty) {
28
- border-top: $border-width solid $border-color;
59
+ border-top: 1px solid #{colors.$outline-variant};
29
60
  }
30
61
  }
31
62
 
@@ -33,12 +64,12 @@
33
64
  display: flex;
34
65
  flex-direction: row;
35
66
  align-items: flex-end;
36
- border-top: $border-width solid rgba($gray-200, $opacity-backdrop);
37
- padding: .5rem;
38
- min-height: 3rem;
67
+ //border-top: 1px solid #{colors.$outline-variant};
68
+ padding: .5rem .25rem;
69
+ min-height: 3.5rem;
39
70
 
40
71
  > :not(:last-child) {
41
- margin-right: .5rem;
72
+ margin-right: .25rem;
42
73
  }
43
74
  }
44
75
 
@@ -51,25 +82,40 @@
51
82
  display: flex;
52
83
  flex-direction: column;
53
84
  }
85
+
86
+ .wy-message-editor-mention {
87
+ background: blue;
88
+ color: white;
89
+ }
90
+
91
+ .wy-message-editor-link {
92
+ background: blue;
93
+ color: white;
94
+ }
95
+
54
96
  %message-editor-textfield,
55
97
  .wy-message-editor-textfield {
56
98
  flex: 1 1 100%;
57
- outline: $light solid 1px;
58
- max-height: 10.2rem;
59
- background-color: $input-bg;
60
- border-radius: $border-radius-xl;
61
- border: none;
99
+ max-height: 11.25rem;
100
+ background-color: colors.$background;
101
+ color: colors.$on-background;
102
+ border-radius: 1.25rem;
103
+ border: vars.$input-border-width solid #{colors.$background};
104
+
105
+ &:focus {
106
+ border-color: #{colors.$outline-variant};
107
+ }
62
108
  }
63
109
 
64
110
  %message-editor-textcontent,
65
111
  .wy-message-editor-textcontent {
66
- font-family: $font-family-base;
67
- font-size: $font-size-base;
68
- padding: $input-padding-y $input-padding-x;
112
+ font-family: vars.$font-family-base;
113
+ font-size: vars.$font-size-base;
114
+ padding: vars.$input-padding-y vars.$input-padding-x;
69
115
  }
70
116
 
71
117
  %message-editor-grow,
72
- .#{wy}-message-editor-grow {
118
+ .wy-message-editor-grow {
73
119
  display: grid;
74
120
 
75
121
  &::after, > textarea {