@weavy/uikit-react 13.0.0 → 14.0.1

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 (371) hide show
  1. package/changelog.md +30 -0
  2. package/dist/cjs/{types/client → client}/WeavyClient.d.ts +0 -0
  3. package/dist/cjs/{types/components → components}/Attachment.d.ts +0 -0
  4. package/dist/cjs/{types/components → components}/Avatar.d.ts +0 -0
  5. package/dist/{esm/types → cjs}/components/Chat.d.ts +1 -1
  6. package/dist/cjs/{types/components → components}/Conversation.d.ts +0 -0
  7. package/dist/cjs/{types/components → components}/ConversationBadge.d.ts +0 -0
  8. package/dist/cjs/{types/components → components}/ConversationForm.d.ts +0 -0
  9. package/dist/cjs/{types/components → components}/ConversationList.d.ts +0 -0
  10. package/dist/cjs/{types/components → components}/ConversationListItem.d.ts +0 -0
  11. package/dist/cjs/{types/components → components}/File.d.ts +0 -0
  12. package/dist/cjs/{types/components → components}/FileBrowser.d.ts +0 -0
  13. package/dist/cjs/{types/components → components}/Image.d.ts +0 -0
  14. package/dist/cjs/{types/components → components}/Meeting.d.ts +0 -0
  15. package/dist/cjs/{types/components → components}/MeetingCard.d.ts +0 -0
  16. package/dist/cjs/{types/components → components}/Meetings.d.ts +0 -0
  17. package/dist/cjs/{types/components → components}/Message.d.ts +0 -0
  18. package/dist/{esm/types → cjs}/components/Messages.d.ts +3 -1
  19. package/dist/cjs/{types/components → components}/Messenger.d.ts +0 -0
  20. package/dist/cjs/{types/components → components}/NewConversation.d.ts +0 -0
  21. package/dist/cjs/{types/components → components}/PdfViewer.d.ts +0 -0
  22. package/dist/cjs/{types/components → components}/Presence.d.ts +0 -0
  23. package/dist/cjs/{types/components → components}/Preview.d.ts +0 -0
  24. package/dist/cjs/{types/components → components}/Reactions.d.ts +0 -0
  25. package/dist/cjs/{types/components → components}/SearchUsers.d.ts +0 -0
  26. package/dist/cjs/{types/components → components}/SeenBy.d.ts +0 -0
  27. package/dist/cjs/{types/components → components}/Typing.d.ts +0 -0
  28. package/dist/cjs/{types/contexts → contexts}/MessengerContext.d.ts +0 -0
  29. package/dist/cjs/{types/contexts → contexts}/PreviewContext.d.ts +0 -0
  30. package/dist/cjs/{types/contexts → contexts}/UserContext.d.ts +0 -0
  31. package/dist/cjs/{types/contexts → contexts}/WeavyContext.d.ts +0 -0
  32. package/dist/cjs/{types/hooks → hooks}/useBadge.d.ts +0 -0
  33. package/dist/cjs/{types/hooks → hooks}/useChat.d.ts +0 -0
  34. package/dist/cjs/{types/hooks → hooks}/useConversation.d.ts +0 -0
  35. package/dist/cjs/hooks/useConversations.d.ts +1 -0
  36. package/dist/cjs/{types/hooks → hooks}/useDebounce.d.ts +0 -0
  37. package/dist/cjs/{types/hooks → hooks}/useEvents.d.ts +0 -0
  38. package/dist/cjs/{types/hooks → hooks}/useFileUploader.d.ts +0 -0
  39. package/dist/cjs/{types/hooks → hooks}/useMembers.d.ts +0 -0
  40. package/dist/cjs/{types/hooks → hooks}/useMessages.d.ts +0 -0
  41. package/dist/cjs/{types/hooks → hooks}/useMutateChat.d.ts +0 -0
  42. package/dist/cjs/{types/hooks → hooks}/useMutateConversation.d.ts +0 -0
  43. package/dist/cjs/{types/hooks → hooks}/useMutateConversationName.d.ts +0 -0
  44. package/dist/cjs/{types/hooks → hooks}/useMutateDeleteReaction.d.ts +0 -0
  45. package/dist/cjs/{types/hooks → hooks}/useMutateExternalBlobs.d.ts +0 -0
  46. package/dist/cjs/{types/hooks → hooks}/useMutateMeeting.d.ts +0 -0
  47. package/dist/cjs/{types/hooks → hooks}/useMutateMembers.d.ts +0 -0
  48. package/dist/{esm/types → cjs}/hooks/useMutateMessage.d.ts +1 -1
  49. package/dist/cjs/{types/hooks → hooks}/useMutatePinned.d.ts +0 -0
  50. package/dist/cjs/{types/hooks → hooks}/useMutateReaction.d.ts +0 -0
  51. package/dist/cjs/{types/hooks → hooks}/useMutateRead.d.ts +1 -0
  52. package/dist/cjs/{types/hooks → hooks}/useMutateRemoveMembers.d.ts +0 -0
  53. package/dist/cjs/{types/hooks → hooks}/useMutateTyping.d.ts +0 -0
  54. package/dist/cjs/{types/hooks → hooks}/usePresence.d.ts +0 -0
  55. package/dist/cjs/{types/hooks → hooks}/usePreview.d.ts +0 -0
  56. package/dist/cjs/{types/hooks → hooks}/useReactions.d.ts +0 -0
  57. package/dist/cjs/{types/hooks → hooks}/useSearchUsers.d.ts +0 -0
  58. package/dist/cjs/{types/hooks → hooks}/useThrottle.d.ts +0 -0
  59. package/dist/cjs/{types/hooks → hooks}/useUser.d.ts +0 -0
  60. package/dist/cjs/{types/index.d.ts → index.d.ts} +0 -0
  61. package/dist/cjs/index.js +6 -28
  62. package/dist/cjs/index.js.map +1 -1
  63. package/dist/cjs/types/{types/Chat.d.ts → Chat.d.ts} +1 -0
  64. package/dist/cjs/types/{types/Conversation.d.ts → Conversation.d.ts} +0 -0
  65. package/dist/cjs/types/{types/ConversationListItem.d.ts → ConversationListItem.d.ts} +0 -0
  66. package/dist/{esm/types → cjs}/types/Message.d.ts +2 -0
  67. package/dist/cjs/types/{types/Messenger.d.ts → Messenger.d.ts} +0 -0
  68. package/dist/cjs/types/{types/types.d.ts → types.d.ts} +47 -4
  69. package/dist/cjs/{types/ui → ui}/Button.d.ts +0 -0
  70. package/dist/cjs/{types/ui → ui}/Dropdown.d.ts +0 -0
  71. package/dist/cjs/{types/ui → ui}/Icon.d.ts +0 -0
  72. package/dist/cjs/{types/ui → ui}/Overlay.d.ts +0 -0
  73. package/dist/cjs/{types/ui → ui}/Spinner.d.ts +2 -1
  74. package/dist/cjs/{types/utils → utils}/fileUtilities.d.ts +0 -0
  75. package/dist/css/weavy-chat.css +1543 -959
  76. package/dist/css/weavy-messenger.css +1903 -1302
  77. package/dist/css/weavy.css +1703 -1102
  78. package/dist/esm/{types/client → client}/WeavyClient.d.ts +0 -0
  79. package/dist/esm/{types/components → components}/Attachment.d.ts +0 -0
  80. package/dist/esm/{types/components → components}/Avatar.d.ts +0 -0
  81. package/dist/{cjs/types → esm}/components/Chat.d.ts +1 -1
  82. package/dist/esm/{types/components → components}/Conversation.d.ts +0 -0
  83. package/dist/esm/{types/components → components}/ConversationBadge.d.ts +0 -0
  84. package/dist/esm/{types/components → components}/ConversationForm.d.ts +0 -0
  85. package/dist/esm/{types/components → components}/ConversationList.d.ts +0 -0
  86. package/dist/esm/{types/components → components}/ConversationListItem.d.ts +0 -0
  87. package/dist/esm/{types/components → components}/File.d.ts +0 -0
  88. package/dist/esm/{types/components → components}/FileBrowser.d.ts +0 -0
  89. package/dist/esm/{types/components → components}/Image.d.ts +0 -0
  90. package/dist/esm/{types/components → components}/Meeting.d.ts +0 -0
  91. package/dist/esm/{types/components → components}/MeetingCard.d.ts +0 -0
  92. package/dist/esm/{types/components → components}/Meetings.d.ts +0 -0
  93. package/dist/esm/{types/components → components}/Message.d.ts +0 -0
  94. package/dist/{cjs/types → esm}/components/Messages.d.ts +3 -1
  95. package/dist/esm/{types/components → components}/Messenger.d.ts +0 -0
  96. package/dist/esm/{types/components → components}/NewConversation.d.ts +0 -0
  97. package/dist/esm/{types/components → components}/PdfViewer.d.ts +0 -0
  98. package/dist/esm/{types/components → components}/Presence.d.ts +0 -0
  99. package/dist/esm/{types/components → components}/Preview.d.ts +0 -0
  100. package/dist/esm/{types/components → components}/Reactions.d.ts +0 -0
  101. package/dist/esm/{types/components → components}/SearchUsers.d.ts +0 -0
  102. package/dist/esm/{types/components → components}/SeenBy.d.ts +0 -0
  103. package/dist/esm/{types/components → components}/Typing.d.ts +0 -0
  104. package/dist/esm/{types/contexts → contexts}/MessengerContext.d.ts +0 -0
  105. package/dist/esm/{types/contexts → contexts}/PreviewContext.d.ts +0 -0
  106. package/dist/esm/{types/contexts → contexts}/UserContext.d.ts +0 -0
  107. package/dist/esm/{types/contexts → contexts}/WeavyContext.d.ts +0 -0
  108. package/dist/esm/{types/hooks → hooks}/useBadge.d.ts +0 -0
  109. package/dist/esm/{types/hooks → hooks}/useChat.d.ts +0 -0
  110. package/dist/esm/{types/hooks → hooks}/useConversation.d.ts +0 -0
  111. package/dist/esm/hooks/useConversations.d.ts +1 -0
  112. package/dist/esm/{types/hooks → hooks}/useDebounce.d.ts +0 -0
  113. package/dist/esm/{types/hooks → hooks}/useEvents.d.ts +0 -0
  114. package/dist/esm/{types/hooks → hooks}/useFileUploader.d.ts +0 -0
  115. package/dist/esm/{types/hooks → hooks}/useMembers.d.ts +0 -0
  116. package/dist/esm/{types/hooks → hooks}/useMessages.d.ts +0 -0
  117. package/dist/esm/{types/hooks → hooks}/useMutateChat.d.ts +0 -0
  118. package/dist/esm/{types/hooks → hooks}/useMutateConversation.d.ts +0 -0
  119. package/dist/esm/{types/hooks → hooks}/useMutateConversationName.d.ts +0 -0
  120. package/dist/esm/{types/hooks → hooks}/useMutateDeleteReaction.d.ts +0 -0
  121. package/dist/esm/{types/hooks → hooks}/useMutateExternalBlobs.d.ts +0 -0
  122. package/dist/esm/{types/hooks → hooks}/useMutateMeeting.d.ts +0 -0
  123. package/dist/esm/{types/hooks → hooks}/useMutateMembers.d.ts +0 -0
  124. package/dist/{cjs/types → esm}/hooks/useMutateMessage.d.ts +1 -1
  125. package/dist/esm/{types/hooks → hooks}/useMutatePinned.d.ts +0 -0
  126. package/dist/esm/{types/hooks → hooks}/useMutateReaction.d.ts +0 -0
  127. package/dist/esm/{types/hooks → hooks}/useMutateRead.d.ts +1 -0
  128. package/dist/esm/{types/hooks → hooks}/useMutateRemoveMembers.d.ts +0 -0
  129. package/dist/esm/{types/hooks → hooks}/useMutateTyping.d.ts +0 -0
  130. package/dist/esm/{types/hooks → hooks}/usePresence.d.ts +0 -0
  131. package/dist/esm/{types/hooks → hooks}/usePreview.d.ts +0 -0
  132. package/dist/esm/{types/hooks → hooks}/useReactions.d.ts +0 -0
  133. package/dist/esm/{types/hooks → hooks}/useSearchUsers.d.ts +0 -0
  134. package/dist/esm/{types/hooks → hooks}/useThrottle.d.ts +0 -0
  135. package/dist/esm/{types/hooks → hooks}/useUser.d.ts +0 -0
  136. package/dist/esm/{types/index.d.ts → index.d.ts} +0 -0
  137. package/dist/esm/index.js +6 -28
  138. package/dist/esm/index.js.map +1 -1
  139. package/dist/esm/types/{types/Chat.d.ts → Chat.d.ts} +1 -0
  140. package/dist/esm/types/{types/Conversation.d.ts → Conversation.d.ts} +0 -0
  141. package/dist/esm/types/{types/ConversationListItem.d.ts → ConversationListItem.d.ts} +0 -0
  142. package/dist/{cjs/types → esm}/types/Message.d.ts +2 -0
  143. package/dist/esm/types/{types/Messenger.d.ts → Messenger.d.ts} +0 -0
  144. package/dist/esm/types/{types/types.d.ts → types.d.ts} +47 -4
  145. package/dist/esm/{types/ui → ui}/Button.d.ts +0 -0
  146. package/dist/esm/{types/ui → ui}/Dropdown.d.ts +0 -0
  147. package/dist/esm/{types/ui → ui}/Icon.d.ts +0 -0
  148. package/dist/esm/{types/ui → ui}/Overlay.d.ts +0 -0
  149. package/dist/esm/{types/ui → ui}/Spinner.d.ts +2 -1
  150. package/dist/esm/{types/utils → utils}/fileUtilities.d.ts +0 -0
  151. package/dist/index.d.ts +2 -1
  152. package/package.json +18 -15
  153. package/{rollup.config.js → rollup.config.mjs} +10 -3
  154. package/src/client/WeavyClient.ts +12 -17
  155. package/src/components/Attachment.tsx +5 -5
  156. package/src/components/Chat.tsx +6 -5
  157. package/src/components/Conversation.tsx +26 -20
  158. package/src/components/ConversationBadge.tsx +7 -5
  159. package/src/components/ConversationForm.tsx +1 -1
  160. package/src/components/ConversationList.tsx +59 -11
  161. package/src/components/ConversationListItem.tsx +94 -58
  162. package/src/components/FileBrowser.tsx +53 -50
  163. package/src/components/Image.tsx +2 -1
  164. package/src/components/MeetingCard.tsx +35 -13
  165. package/src/components/Meetings.tsx +1 -1
  166. package/src/components/Message.tsx +41 -42
  167. package/src/components/Messages.tsx +61 -60
  168. package/src/components/Messenger.tsx +7 -2
  169. package/src/components/NewConversation.tsx +1 -1
  170. package/src/components/PdfViewer.tsx +5 -5
  171. package/src/components/Preview.tsx +2 -2
  172. package/src/components/Reactions.tsx +11 -5
  173. package/src/components/SearchUsers.tsx +19 -9
  174. package/src/components/SeenBy.tsx +13 -7
  175. package/src/components/Typing.tsx +11 -12
  176. package/src/contexts/UserContext.tsx +1 -1
  177. package/src/contexts/WeavyContext.tsx +3 -3
  178. package/src/hooks/useConversations.ts +15 -5
  179. package/src/hooks/useMutateMessage.ts +1 -5
  180. package/src/hooks/useMutateRead.ts +5 -3
  181. package/src/hooks/usePresence.ts +2 -3
  182. package/src/hooks/useReactions.ts +11 -12
  183. package/src/scss/theme/_alert.scss +61 -63
  184. package/src/scss/theme/_appbar.scss +105 -30
  185. package/src/scss/theme/_avatar.scss +23 -28
  186. package/src/scss/theme/_badge.scss +26 -18
  187. package/src/scss/theme/_buttons.scss +107 -52
  188. package/src/scss/theme/_card.scss +102 -4
  189. package/src/scss/theme/_checkbox.scss +16 -20
  190. package/src/scss/theme/_code-vscode-dark.scss +3 -3
  191. package/src/scss/theme/_code-vscode-light.scss +3 -3
  192. package/src/scss/theme/_code.scss +0 -2
  193. package/src/scss/theme/_comment-editor-cm.scss +97 -0
  194. package/src/scss/theme/_comment-editor.scss +129 -0
  195. package/src/scss/theme/_comments.scss +66 -0
  196. package/src/scss/theme/_content.scss +33 -5
  197. package/src/scss/theme/_conversations.scss +19 -78
  198. package/src/scss/theme/_dropdown.scss +102 -15
  199. package/src/scss/theme/_embed.scss +135 -0
  200. package/src/scss/theme/_facepile.scss +11 -0
  201. package/src/scss/theme/_filebrowser.scss +1 -1
  202. package/src/scss/theme/_files.scss +76 -47
  203. package/src/scss/theme/_grid.scss +8 -0
  204. package/src/scss/theme/_icons.scss +155 -19
  205. package/src/scss/theme/_image-grid.scss +7 -12
  206. package/src/scss/theme/_input.scss +160 -0
  207. package/src/scss/theme/_item.scss +169 -0
  208. package/src/scss/theme/_list.scss +57 -0
  209. package/src/scss/theme/_meeting.scss +11 -0
  210. package/src/scss/theme/_message-editor-cm.scss +95 -0
  211. package/src/scss/theme/_message-editor.scss +65 -19
  212. package/src/scss/theme/_messages.scss +51 -105
  213. package/src/scss/theme/_meta.scss +12 -0
  214. package/src/scss/theme/_overlays.scss +31 -76
  215. package/src/scss/theme/_pager.scss +5 -1
  216. package/src/scss/theme/_pane.scss +13 -2
  217. package/src/scss/theme/_panels.scss +33 -28
  218. package/src/scss/theme/_picker-list.scss +5 -3
  219. package/src/scss/theme/_placeholder.scss +19 -0
  220. package/src/scss/theme/_poll.scss +49 -0
  221. package/src/scss/theme/_post-editor-cm.scss +100 -0
  222. package/src/scss/theme/_post-editor.scss +127 -0
  223. package/src/scss/theme/_post.scss +83 -0
  224. package/src/scss/theme/_preview-code.scss +11 -2
  225. package/src/scss/theme/_preview-embed.scss +8 -2
  226. package/src/scss/theme/_preview-image.scss +8 -26
  227. package/src/scss/theme/_preview-media.scss +1 -0
  228. package/src/scss/theme/_preview-pdf.scss +10 -15
  229. package/src/scss/theme/_preview.scss +57 -79
  230. package/src/scss/theme/_reactions.scss +48 -17
  231. package/src/scss/theme/_sheet.scss +59 -0
  232. package/src/scss/theme/_sidebar.scss +86 -0
  233. package/src/scss/theme/_spinner.scss +11 -7
  234. package/src/scss/theme/_tab.scss +72 -0
  235. package/src/scss/theme/_tables.scss +70 -23
  236. package/src/scss/theme/_toasts.scss +56 -26
  237. package/src/scss/theme/_type.scss +41 -0
  238. package/src/scss/theme/{mixins → base}/_backdrop.scss +0 -0
  239. package/src/scss/theme/{bootstrap/mixins → base}/_breakpoints.scss +9 -0
  240. package/src/scss/theme/base/_colors.scss +315 -0
  241. package/src/scss/theme/base/_md.scss +19 -0
  242. package/src/scss/theme/base/_palette.scss +130 -0
  243. package/src/scss/theme/{mixins → base}/_position.scss +5 -5
  244. package/src/scss/theme/base/_reboot.scss +51 -0
  245. package/src/scss/theme/base/_scroll.scss +180 -0
  246. package/src/scss/theme/base/_svg.scss +49 -0
  247. package/src/scss/theme/base/_text.scss +23 -0
  248. package/src/scss/theme/base/_vars.scss +203 -0
  249. package/src/scss/theme/{fonts → base/fonts}/_fontmapping-roboto.scss +0 -0
  250. package/src/scss/theme/{fonts → base/fonts}/_fontmapping-segoe-ui.scss +0 -0
  251. package/src/scss/theme/base/fonts/_index.scss +2 -0
  252. package/src/scss/weavy-chat.scss +10 -4
  253. package/src/scss/weavy-messenger.scss +37 -21
  254. package/src/types/Chat.ts +2 -1
  255. package/src/types/Message.ts +3 -1
  256. package/src/types/types.ts +56 -5
  257. package/src/ui/Icon.tsx +1 -1
  258. package/src/ui/Spinner.tsx +3 -2
  259. package/src/utils/infiniteScroll.js +12 -3
  260. package/src/utils/postal-parent.js +398 -0
  261. package/src/utils/promise.js +187 -0
  262. package/src/utils/scrollbarDetection.js +71 -9
  263. package/src/utils/utils.js +547 -0
  264. package/dist/cjs/types/hooks/useConversations.d.ts +0 -1
  265. package/dist/esm/types/hooks/useConversations.d.ts +0 -1
  266. package/src/scss/theme/_attachments.scss +0 -74
  267. package/src/scss/theme/_cm-editor.scss +0 -42
  268. package/src/scss/theme/_colors.scss +0 -520
  269. package/src/scss/theme/_config.scss +0 -6
  270. package/src/scss/theme/_inputs.scss +0 -28
  271. package/src/scss/theme/_nav.scss +0 -52
  272. package/src/scss/theme/_palette.scss +0 -165
  273. package/src/scss/theme/_preview-icon.scss +0 -41
  274. package/src/scss/theme/_reboot.scss +0 -41
  275. package/src/scss/theme/_root.scss +0 -2
  276. package/src/scss/theme/_scroll.scss +0 -55
  277. package/src/scss/theme/_search.scss +0 -68
  278. package/src/scss/theme/_turbo.scss +0 -17
  279. package/src/scss/theme/_variables.scss +0 -139
  280. package/src/scss/theme/bootstrap/_accordion.scss +0 -146
  281. package/src/scss/theme/bootstrap/_alert.scss +0 -71
  282. package/src/scss/theme/bootstrap/_badge.scss +0 -38
  283. package/src/scss/theme/bootstrap/_breadcrumb.scss +0 -40
  284. package/src/scss/theme/bootstrap/_button-group.scss +0 -142
  285. package/src/scss/theme/bootstrap/_buttons.scss +0 -186
  286. package/src/scss/theme/bootstrap/_card.scss +0 -234
  287. package/src/scss/theme/bootstrap/_carousel.scss +0 -229
  288. package/src/scss/theme/bootstrap/_close.scss +0 -40
  289. package/src/scss/theme/bootstrap/_containers.scss +0 -41
  290. package/src/scss/theme/bootstrap/_dropdown.scss +0 -248
  291. package/src/scss/theme/bootstrap/_forms.scss +0 -9
  292. package/src/scss/theme/bootstrap/_functions.scss +0 -302
  293. package/src/scss/theme/bootstrap/_grid.scss +0 -33
  294. package/src/scss/theme/bootstrap/_helpers.scss +0 -10
  295. package/src/scss/theme/bootstrap/_images.scss +0 -42
  296. package/src/scss/theme/bootstrap/_list-group.scss +0 -191
  297. package/src/scss/theme/bootstrap/_maps.scss +0 -54
  298. package/src/scss/theme/bootstrap/_mixins.scss +0 -43
  299. package/src/scss/theme/bootstrap/_modal.scss +0 -237
  300. package/src/scss/theme/bootstrap/_nav.scss +0 -172
  301. package/src/scss/theme/bootstrap/_navbar.scss +0 -276
  302. package/src/scss/theme/bootstrap/_offcanvas.scss +0 -143
  303. package/src/scss/theme/bootstrap/_pagination.scss +0 -109
  304. package/src/scss/theme/bootstrap/_placeholders.scss +0 -51
  305. package/src/scss/theme/bootstrap/_popover.scss +0 -196
  306. package/src/scss/theme/bootstrap/_progress.scss +0 -59
  307. package/src/scss/theme/bootstrap/_reboot.scss +0 -610
  308. package/src/scss/theme/bootstrap/_root.scss +0 -73
  309. package/src/scss/theme/bootstrap/_spinners.scss +0 -85
  310. package/src/scss/theme/bootstrap/_tables.scss +0 -164
  311. package/src/scss/theme/bootstrap/_toasts.scss +0 -70
  312. package/src/scss/theme/bootstrap/_tooltip.scss +0 -120
  313. package/src/scss/theme/bootstrap/_transitions.scss +0 -27
  314. package/src/scss/theme/bootstrap/_type.scss +0 -106
  315. package/src/scss/theme/bootstrap/_utilities.scss +0 -647
  316. package/src/scss/theme/bootstrap/_variables.scss +0 -1633
  317. package/src/scss/theme/bootstrap/forms/_floating-labels.scss +0 -74
  318. package/src/scss/theme/bootstrap/forms/_form-check.scss +0 -175
  319. package/src/scss/theme/bootstrap/forms/_form-control.scss +0 -194
  320. package/src/scss/theme/bootstrap/forms/_form-range.scss +0 -91
  321. package/src/scss/theme/bootstrap/forms/_form-select.scss +0 -71
  322. package/src/scss/theme/bootstrap/forms/_form-text.scss +0 -11
  323. package/src/scss/theme/bootstrap/forms/_input-group.scss +0 -129
  324. package/src/scss/theme/bootstrap/forms/_labels.scss +0 -36
  325. package/src/scss/theme/bootstrap/forms/_validation.scss +0 -12
  326. package/src/scss/theme/bootstrap/helpers/_clearfix.scss +0 -3
  327. package/src/scss/theme/bootstrap/helpers/_color-bg.scss +0 -10
  328. package/src/scss/theme/bootstrap/helpers/_colored-links.scss +0 -12
  329. package/src/scss/theme/bootstrap/helpers/_position.scss +0 -36
  330. package/src/scss/theme/bootstrap/helpers/_ratio.scss +0 -26
  331. package/src/scss/theme/bootstrap/helpers/_stacks.scss +0 -15
  332. package/src/scss/theme/bootstrap/helpers/_stretched-link.scss +0 -15
  333. package/src/scss/theme/bootstrap/helpers/_text-truncation.scss +0 -7
  334. package/src/scss/theme/bootstrap/helpers/_visually-hidden.scss +0 -8
  335. package/src/scss/theme/bootstrap/helpers/_vr.scss +0 -8
  336. package/src/scss/theme/bootstrap/mixins/_alert.scss +0 -15
  337. package/src/scss/theme/bootstrap/mixins/_backdrop.scss +0 -14
  338. package/src/scss/theme/bootstrap/mixins/_banner.scss +0 -9
  339. package/src/scss/theme/bootstrap/mixins/_border-radius.scss +0 -78
  340. package/src/scss/theme/bootstrap/mixins/_box-shadow.scss +0 -18
  341. package/src/scss/theme/bootstrap/mixins/_buttons.scss +0 -70
  342. package/src/scss/theme/bootstrap/mixins/_caret.scss +0 -64
  343. package/src/scss/theme/bootstrap/mixins/_clearfix.scss +0 -9
  344. package/src/scss/theme/bootstrap/mixins/_color-scheme.scss +0 -7
  345. package/src/scss/theme/bootstrap/mixins/_container.scss +0 -11
  346. package/src/scss/theme/bootstrap/mixins/_deprecate.scss +0 -10
  347. package/src/scss/theme/bootstrap/mixins/_forms.scss +0 -152
  348. package/src/scss/theme/bootstrap/mixins/_gradients.scss +0 -47
  349. package/src/scss/theme/bootstrap/mixins/_grid.scss +0 -151
  350. package/src/scss/theme/bootstrap/mixins/_image.scss +0 -16
  351. package/src/scss/theme/bootstrap/mixins/_list-group.scss +0 -24
  352. package/src/scss/theme/bootstrap/mixins/_lists.scss +0 -7
  353. package/src/scss/theme/bootstrap/mixins/_pagination.scss +0 -10
  354. package/src/scss/theme/bootstrap/mixins/_reset-text.scss +0 -17
  355. package/src/scss/theme/bootstrap/mixins/_resize.scss +0 -6
  356. package/src/scss/theme/bootstrap/mixins/_table-variants.scss +0 -24
  357. package/src/scss/theme/bootstrap/mixins/_text-truncate.scss +0 -8
  358. package/src/scss/theme/bootstrap/mixins/_transition.scss +0 -26
  359. package/src/scss/theme/bootstrap/mixins/_utilities.scss +0 -97
  360. package/src/scss/theme/bootstrap/mixins/_visually-hidden.scss +0 -29
  361. package/src/scss/theme/bootstrap/utilities/_api.scss +0 -47
  362. package/src/scss/theme/bootstrap/vendor/_rfs.scss +0 -354
  363. package/src/scss/theme/bs/_badge.scss +0 -20
  364. package/src/scss/theme/bs/_buttons.scss +0 -185
  365. package/src/scss/theme/bs/_dropdown.scss +0 -86
  366. package/src/scss/theme/bs/_forms.scss +0 -161
  367. package/src/scss/theme/bs/_list-group.scss +0 -73
  368. package/src/scss/theme/bs/_tables.scss +0 -46
  369. package/src/scss/theme/fonts/_index.scss +0 -2
  370. package/src/scss/theme/mixins/_palette.scss +0 -165
  371. package/src/scss/theme/mixins/_scrollbar.scss +0 -110
@@ -0,0 +1,12 @@
1
+ @use "base/vars";
2
+ @use "base/colors";
3
+
4
+ // A component for item metadata such as dates, times etc.
5
+ .wy-meta {
6
+ color: colors.$outline;
7
+ font-size: vars.$font-size-sm;
8
+ }
9
+
10
+ .wy-meta-sm {
11
+ font-size: vars.$font-size-xs;
12
+ }
@@ -1,4 +1,6 @@
1
- @use "config" as *;
1
+ @use "base/vars";
2
+ @use "base/colors";
3
+ @use "base/breakpoints";
2
4
 
3
5
  .wy-viewport {
4
6
  position: fixed;
@@ -6,7 +8,7 @@
6
8
  right: 0;
7
9
  bottom: 0;
8
10
  left: 0;
9
- z-index: 2147483647; /* max possible z-index */;
11
+ z-index: vars.$zindex-max; /* max possible z-index */;
10
12
  pointer-events: none;
11
13
  }
12
14
 
@@ -30,7 +32,7 @@
30
32
  perspective-origin: center center;
31
33
 
32
34
  .wy-panel {
33
- background-color: rgba(mix($white, #FFF), $opacity-backdrop);
35
+ background-color: colors.$background;
34
36
  //max-height: 100vh; // Causes height error in safari
35
37
 
36
38
  &:not(.wy-transition) {
@@ -42,10 +44,10 @@
42
44
  border-bottom: none;
43
45
  flex-direction: row;
44
46
  transition: opacity .1s .2s step-end;
45
-
47
+ //background: colors.$surface-1;
46
48
 
47
49
  .wy-icon {
48
- color: $icon-color;
50
+ color: colors.$on-surface;
49
51
  }
50
52
  }
51
53
 
@@ -60,74 +62,9 @@
60
62
  background-color: transparent;
61
63
  }
62
64
 
63
- &.wy-controls-light {
64
- .wy-icon {
65
- color: $icon-color;
66
- }
67
- }
68
-
69
- &.wy-light {
70
- background-color: rgba(mix($white, #FFF), $opacity-backdrop);
71
-
72
- .wy-icon {
73
- color: $icon-color;
74
- }
75
- }
76
-
77
- &.wy-controls-dark {
78
- .wy-icon {
79
- color: $navbar-dark-color;
80
-
81
- &:hover, &:focus {
82
- color: $navbar-dark-hover-color;
83
- }
84
-
85
- &:active {
86
- color: $navbar-dark-active-color;
87
- }
88
- }
89
- }
90
-
91
- &.wy-dark {
92
- background-color: rgba(mix($dark, #000), $opacity-backdrop);
93
-
94
- .wy-icon {
95
- color: $navbar-dark-color;
96
-
97
- &:hover, &:focus {
98
- color: $navbar-dark-hover-color;
99
- }
100
-
101
- &:active {
102
- color: $navbar-dark-active-color;
103
- }
104
- }
105
-
106
- &.wy-open[data-title]::before {
107
- background-color: rgba($dark, $opacity-backdrop);
108
- color: $navbar-dark-color;
109
- box-shadow: rgba($gray-800, $opacity-backdrop) 0px -1px 0px 0px inset
110
- }
111
- }
112
-
113
- &.wy-floating {
114
- @include media-breakpoint-up(md, $grid-breakpoints) {
115
- left: 1rem;
116
- top: 1rem;
117
- right: 1rem;
118
- bottom: 1rem;
119
- border-radius: .1875rem;
120
- box-shadow: $md-shadow-16dp;
121
- &:not(.wy-scroll-y) {
122
- overflow: hidden;
123
- }
124
- }
125
- }
126
-
127
65
  &.wy-modal {
128
- background-color: rgba(mix($white, #FFF), $opacity-backdrop);
129
-
130
- @include media-breakpoint-up(md, $grid-breakpoints) {
66
+ // TODO: REMOVE BREAKPOINTS
67
+ @include breakpoints.media-breakpoint-up(md) {
131
68
  left: auto;
132
69
  right: auto;
133
70
  top: 2rem;
@@ -136,8 +73,8 @@
136
73
  margin-top: auto;
137
74
  margin-right: 4rem;
138
75
  margin-bottom: auto;
139
- border-radius: .25rem;
140
- box-shadow: $md-shadow-16dp;
76
+ border-radius: vars.$border-radius; //.25rem;
77
+ box-shadow: vars.$shadow-level4;
141
78
  width: 32rem;
142
79
  max-height: 32rem;
143
80
  &:not(.wy-scroll-y) {
@@ -146,10 +83,28 @@
146
83
  }
147
84
  }
148
85
 
86
+ &.wy-modal-full {
87
+ // TODO: REMOVE BREAKPOINTS
88
+ @include breakpoints.media-breakpoint-up(md) {
89
+ left: 1rem;
90
+ top: 1rem;
91
+ right: 1rem;
92
+ bottom: 1rem;
93
+ margin: 0;
94
+ border-radius: vars.$border-radius; //.1875rem;
95
+ box-shadow: vars.$shadow-level4;
96
+ width: auto;
97
+ max-height: none;
98
+ &:not(.wy-scroll-y) {
99
+ overflow: hidden;
100
+ }
101
+ }
102
+ }
103
+
149
104
  &.wy-loading {
150
105
  .wy-controls {
151
- transition: opacity $md-animation-duration $md-animation-curve-default;
152
- //transition: opacity .2s .2s variables.$md-animation-curve-default;
106
+ transition: opacity vars.$transition;
107
+ //transition: opacity variables.$transition .2s;
153
108
  opacity: 1;
154
109
  }
155
110
  }
@@ -2,7 +2,7 @@
2
2
  pointer-events: none;
3
3
  }
4
4
 
5
- a.wy-pager {
5
+ :not(tr).wy-pager {
6
6
  display: block;
7
7
  text-align: center;
8
8
  margin: 1rem auto;
@@ -17,3 +17,7 @@ tr.wy-pager td {
17
17
  margin: 1rem auto;
18
18
  }
19
19
  }
20
+
21
+ .wy-grid .wy-pager {
22
+ display: flex;
23
+ }
@@ -1,8 +1,12 @@
1
+ @use "base/colors";
2
+
1
3
  .wy-pane {
2
- min-height: 100vh;
3
4
  display: flex;
4
5
  flex-direction: column;
5
6
  position: relative;
7
+ min-height: 0;
8
+ height: 100%;
9
+ flex: 1 1 auto;
6
10
  }
7
11
 
8
12
  .wy-pane-body {
@@ -12,5 +16,12 @@
12
16
  }
13
17
 
14
18
  .wy-pane-group {
15
- padding: .5rem;
19
+ padding: .75rem;
20
+ }
21
+
22
+ .wy-pane-background {
23
+ --wy-component-background-color: #{colors.$background};
24
+ --wy-component-color: #{colors.$on-background};
25
+ background-color: var(--wy-component-background-color);
26
+ color: var(--wy-component-color);
16
27
  }
@@ -1,5 +1,8 @@
1
- @use "config" as *;
2
- @use "mixins/backdrop";
1
+ @use "sass:color";
2
+ @use "base/vars";
3
+ @use "base/colors";
4
+ @use "base/backdrop";
5
+ @use "base/svg";
3
6
 
4
7
  .wy-panels {
5
8
  position: absolute;
@@ -20,14 +23,14 @@
20
23
  left: 0;
21
24
  pointer-events: none;
22
25
  overflow: hidden;
23
- background-color: rgba(mix($white, #FFF), $opacity-backdrop);
26
+ background-color: colors.$background;
24
27
  display: flex;
25
28
  flex-direction: column;
26
29
 
27
30
  .wy-controls {
28
- top: .75rem;
29
- left: .75rem;
30
- min-width: 2rem;
31
+ top: .25rem;
32
+ left: .25rem;
33
+ min-width: 2.5rem;
31
34
  width: auto;
32
35
  display: flex;
33
36
  z-index: 10000;
@@ -39,20 +42,22 @@
39
42
  }
40
43
 
41
44
  .wy-icon {
42
- color: $icon-color;
45
+ color: colors.$on-background;
43
46
  }
44
47
 
45
- border-bottom: 1px solid $border-color;
48
+ border-bottom: 1px solid colors.$outline-variant;
46
49
  }
47
50
 
48
51
  .wy-panel-frame {
49
- transition: opacity .1s .2s $md-animation-curve-default;
52
+ transition: opacity vars.$transition-fast;
53
+ transition-delay: .2s;
50
54
  opacity: 1;
51
55
  }
52
56
 
53
57
  &:not(.wy-loaded) .wy-panel-frame {
54
58
  opacity: 0;
55
- transition: opacity .2s .1s step-start;
59
+ transition: opacity .2s step-start;
60
+ transition-delay: .1s;
56
61
  }
57
62
 
58
63
  &.wy-open {
@@ -65,23 +70,22 @@
65
70
  top: 0;
66
71
  left: 0;
67
72
  right: 0;
68
- height: $appbar-height;
69
- padding: $navbar-padding-y $navbar-padding-x;
73
+ height: vars.$appbar-height;
74
+ padding: .25rem;
70
75
  opacity: 0;
71
76
  pointer-events: none;
72
77
  display: flex;
73
78
  align-items: center;
74
79
  justify-content: center;
75
- transition: opacity .1s .2s step-end;
76
- font-family: var(--#{$prefix}font-sans-serif, #{$font-family-sans-serif});
77
- line-height: $line-height-base;
78
- font-weight: $font-weight-base;
79
-
80
- background-color: rgba($gray-50, $opacity-backdrop);
81
- color: $navbar-light-color;
82
- //border-bottom: $border-width solid rgba($gray-200, $opacity-backdrop);
83
- box-shadow: rgba($gray-200, $opacity-backdrop) 0px -1px 0px 0px inset;
80
+ transition: opacity .1s step-end;
81
+ transition-delay: .2s;
82
+ font-family: inherit;
83
+ line-height: vars.$line-height-base;
84
+ font-weight: vars.$font-weight-base;
84
85
 
86
+ background-color: colors.$surface-1;
87
+ color: colors.$on-surface;
88
+ box-shadow: #{colors.$outline-variant} 0px -1px 0px 0px inset;
85
89
 
86
90
  @include backdrop.filter;
87
91
  }
@@ -95,20 +99,21 @@
95
99
  right: 0;
96
100
  pointer-events: none;
97
101
  opacity: 0;
98
- transition: opacity $md-animation-duration $md-animation-curve-default 0s;
102
+ transition: opacity vars.$transition;
103
+ transition-duration: 0s;
99
104
  }
100
105
 
101
106
  &.wy-loading {
102
107
  &[data-title]::before {
103
- transition: opacity $md-animation-duration $md-animation-curve-default;
108
+ //transition: opacity vars.$transition;
104
109
  opacity: 1;
105
110
  }
106
111
 
107
112
  &::after {
108
- transition: opacity $md-animation-duration $md-animation-curve-default .5s;
113
+ transition: opacity vars.$transition;
114
+ transition-duration: .5s;
109
115
  opacity: 1;
110
- // spinner.svg encoded with https://codepen.io/jakob-e/pen/doMoML
111
- background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' width='24' height='24' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3E%3Cstyle type='text/css'%3Eg%7Banimation:rotate 2s linear infinite;transform-origin:center center%7Dcircle%7Bstroke-dasharray:1,100;stroke-dashoffset:0;animation:dash 1.5s ease-in-out infinite,color 6s ease-in-out infinite%7D@keyframes rotate%7B100%25%7Btransform:rotate(360deg)%7D%7D@keyframes dash%7B0%25%7Bstroke-dasharray:1,100;stroke-dashoffset:0%7D50%25%7Bstroke-dasharray:44.5,100;stroke-dashoffset:-17.5px%7D100%25%7Bstroke-dasharray:44.5,100;stroke-dashoffset:-62px%7D%7D@keyframes color%7B0%25,100%25%7Bstroke:%23216eb4%7D40%25%7Bstroke:%2328b7cf%7D66%25%7Bstroke:%23216eb4%7D80%25,90%25%7Bstroke:%2328b7cf%7D%7D%3C/style%3E%3Cg%3E%3Ccircle fill='none' cx='12' cy='12' r='11' stroke-linecap='butt' stroke-width='2' /%3E%3C/g%3E%3C/svg%3E");
116
+ background-image: svg.$spinner;
112
117
  background-repeat: no-repeat;
113
118
  background-position: 50%;
114
119
  background-size: rem(2);
@@ -122,10 +127,10 @@
122
127
  .wy-panel {
123
128
  opacity: 0;
124
129
  visibility: hidden;
125
- transition: opacity $md-animation-duration-fast $md-animation-curve-default .01s, transform $md-animation-duration-fast $md-animation-curve-default .01s, visibility .01s step-end $md-animation-duration-fast;
130
+ transition: opacity vars.$transition-fast .01s, transform vars.$transition-fast .01s, visibility .01s step-end vars.$transition-duration-fast;
126
131
 
127
132
  &.wy-open {
128
- transition: opacity $md-animation-duration $md-animation-curve-default, transform $md-animation-duration $md-animation-curve-default, visibility $md-animation-duration step-start;
133
+ transition: opacity vars.$transition, transform vars.$transition, visibility vars.$transition-duration step-start;
129
134
  visibility: visible;
130
135
 
131
136
  &.wy-transition {
@@ -1,7 +1,9 @@
1
- @use "config" as *;
2
-
1
+ @use "base/text";
3
2
 
4
3
  .wy-picker-list {
4
+ background: var(--wy-component-background-color);
5
+ color: var(--wy-component-color);
6
+
5
7
  border: none;
6
8
 
7
9
  > .wy-picker-list-item:first-child, > :first-child .wy-picker-list-item {
@@ -33,5 +35,5 @@
33
35
 
34
36
  .wy-picker-list-item-title {
35
37
  flex-grow: 1;
36
- @include text-truncate();
38
+ @include text.truncate;
37
39
  }
@@ -0,0 +1,19 @@
1
+ @use "base/colors";
2
+
3
+ $placeholder-opacity-max: .5;
4
+ $placeholder-opacity-min: .2;
5
+
6
+ .wy-placeholder {
7
+ cursor: wait;
8
+ color: var(--wy-outline);
9
+ background-color: var(--wy-outline);
10
+ opacity: $placeholder-opacity-max;
11
+ animation: wy-placeholder-glow 2s ease-in-out infinite;
12
+ }
13
+
14
+ @keyframes wy-placeholder-glow {
15
+ 50% {
16
+ opacity: $placeholder-opacity-min;
17
+ }
18
+ }
19
+
@@ -0,0 +1,49 @@
1
+ @use "base/colors";
2
+ @use "base/vars";
3
+
4
+ .wy-poll {
5
+ flex: 1 1 100%;
6
+ min-width: 0;
7
+ }
8
+
9
+ .wy-poll-form {
10
+ background: var(--wy-component-background-color);
11
+ color: var(--wy-component-color);
12
+ padding: .5rem;
13
+
14
+ &:empty {
15
+ display: none;
16
+ }
17
+
18
+ input:not(:first-child) {
19
+ margin-top: .5rem;
20
+ }
21
+ }
22
+
23
+ .wy-poll-option {
24
+ position: relative;
25
+ background-color: #{colors.$background};
26
+ border: 1px solid #{colors.$outline-variant};
27
+ border-radius: vars.$border-radius-sm;
28
+ margin-bottom: .25rem;
29
+ padding: 0.25rem 1rem;
30
+ min-height: 2.5rem;
31
+ cursor: pointer;
32
+
33
+ .wy-progress {
34
+ position: absolute;
35
+ top: 0;
36
+ left: 0;
37
+ bottom: 0;
38
+ background-color: #{colors.$primary-container};
39
+ }
40
+
41
+ > :not(.wy-progress) {
42
+ z-index: 1;
43
+ }
44
+
45
+ .wy-facepile {
46
+ margin-right: -.5rem;
47
+ }
48
+ }
49
+
@@ -0,0 +1,100 @@
1
+ @use "base/vars";
2
+ @use "base/colors";
3
+ @use "base/scroll";
4
+ @use "base/svg";
5
+ @use "post-editor";
6
+
7
+
8
+ .wy-post-editor {
9
+ .ͼ1 .cm-scroller {
10
+ font-family: unset;
11
+ line-height: 1.5;
12
+ }
13
+
14
+ .ͼ1 .cm-widgetBuffer {
15
+ vertical-align: unset;
16
+ }
17
+
18
+ .ͼ1 .cm-placeholder {
19
+ color: #{colors.$outline};
20
+ }
21
+
22
+ .ͼ2 .cm-content {
23
+ caret-color: #{colors.$primary};
24
+ }
25
+
26
+ .ͼ1.cm-editor {
27
+ @extend %post-editor-textfield;
28
+
29
+ &.cm-focused {
30
+ /* default theme in codemirror seems difficult to override */
31
+ --wy-component-color: #{colors.$on-background};
32
+ color: var(--wy-component-color);
33
+ border-color: #{colors.$primary};
34
+ outline: 0;
35
+ }
36
+
37
+ .cm-content {
38
+ @extend %post-editor-textcontent;
39
+ }
40
+
41
+ .cm-scroller {
42
+ overflow: auto;
43
+
44
+ .wy-scrollbars & {
45
+ @include scroll.custom-scrollbar;
46
+ // scrollbar offsets
47
+ @include scroll.scrollbar-top-padding(0.375rem);
48
+ @include scroll.scrollbar-bottom-padding(0.375rem);
49
+ }
50
+ }
51
+ }
52
+
53
+ .wy-is-invalid + [data-editor-target] .cm-editor {
54
+ border-color: colors.$error !important;
55
+ }
56
+ // autocomplete dropdown menu
57
+ .ͼ1 {
58
+ .cm-tooltip.cm-tooltip-autocomplete > ul {
59
+ font-family: unset;
60
+ max-height: 15rem; // room for 5 items
61
+
62
+ > li {
63
+ padding: 0;
64
+ }
65
+ }
66
+ }
67
+
68
+ .ͼ2 {
69
+ .cm-tooltip {
70
+ border: none;
71
+ background-clip: padding-box;
72
+ background-color: #{colors.$surface-2};
73
+ color: #{colors.$on-surface};
74
+ border-radius: vars.$border-radius;
75
+ box-shadow: vars.$shadow-level1;
76
+ overflow: hidden;
77
+ z-index: vars.$zindex-dropdown;
78
+ }
79
+
80
+ .cm-tooltip-autocomplete ul li[aria-selected] {
81
+ background: #{colors.$primary-container};
82
+ color: unset;
83
+ }
84
+ }
85
+
86
+ .cm-tooltip-autocomplete {
87
+ .cm-completionLabel {
88
+ display: none;
89
+ }
90
+
91
+ .wy-item-hover:hover, .wy-item-hover:focus {
92
+ background: #{colors.$surface-variant};
93
+ }
94
+
95
+ .wy-avatar {
96
+ width: 32px;
97
+ height: 32px;
98
+ }
99
+ }
100
+ }
@@ -0,0 +1,127 @@
1
+ @use "base/vars";
2
+ @use "base/colors";
3
+ @use "base/backdrop";
4
+ @use "base/position";
5
+
6
+ .wy-post-editor {
7
+ padding: .75rem;
8
+
9
+ &.wy-uploading {
10
+ .wy-icon-active-stack {
11
+ > :first-child {
12
+ opacity: 0;
13
+ }
14
+
15
+ > :last-child {
16
+ opacity: 1;
17
+ }
18
+ }
19
+ }
20
+
21
+ .wy-picker-list:not(:empty) {
22
+ margin-top: .75rem;
23
+ border-top: 1px solid #{colors.$outline-variant};
24
+ }
25
+ }
26
+
27
+
28
+ .wy-post-editor-dragging {
29
+ &::after {
30
+ content: "Drop files here to upload.";
31
+ background-color: rgba(255, 255, 255, .5);
32
+ display: flex;
33
+ justify-content: center;
34
+ align-items: center;
35
+ border: 2px dashed colors.$primary;
36
+ font-weight: vars.$font-weight-bold;
37
+ z-index: 10000;
38
+ position: absolute;
39
+ top: 0;
40
+ left: 0;
41
+ bottom: 0;
42
+ right: 0;
43
+ }
44
+ }
45
+
46
+
47
+ .wy-post-editor-inputs {
48
+ display: flex;
49
+ flex-direction: row;
50
+ align-items: flex-end;
51
+ //border-top: 1px solid #{colors.$outline-variant};
52
+ //padding: .5rem .25rem;
53
+ min-height: 3.5rem;
54
+ flex-wrap: wrap;
55
+
56
+ > :not(:last-child) {
57
+ margin-right: .25rem;
58
+ }
59
+
60
+ > :last-child {
61
+ margin-left: auto;
62
+ }
63
+ }
64
+
65
+ .wy-post-editor-buttons {
66
+ flex: 1 0 auto;
67
+ }
68
+
69
+ .wy-post-editor-text {
70
+ flex: 1 1 100%;
71
+ display: flex;
72
+ flex-direction: column;
73
+ }
74
+
75
+ .wy-post-editor-mention {
76
+ background: blue;
77
+ color: white;
78
+ }
79
+
80
+ .wy-post-editor-link {
81
+ background: blue;
82
+ color: white;
83
+ }
84
+
85
+ %post-editor-textfield,
86
+ .wy-post-editor-textfield {
87
+ flex: 1 1 100%;
88
+ max-height: 11.25rem;
89
+ min-height: 4rem;
90
+ background-color: colors.$background;
91
+ color: colors.$on-background;
92
+ border-radius: vars.$border-radius;
93
+ border: vars.$input-border-width solid #{colors.$outline-variant};
94
+ caret-color: #{colors.$primary};
95
+
96
+ &:focus {
97
+ border-color: #{colors.$primary};
98
+ }
99
+ }
100
+
101
+ %post-editor-textcontent,
102
+ .wy-post-editor-textcontent {
103
+ font-family: vars.$font-family-base;
104
+ font-size: vars.$font-size-base;
105
+ padding: vars.$input-padding-y vars.$input-padding-x;
106
+ }
107
+
108
+ %post-editor-grow,
109
+ .wy-post-editor-grow {
110
+ display: grid;
111
+
112
+ &::after, > textarea {
113
+ @extend %post-editor-textfield;
114
+ grid-area: 1 / 1 / 2 / 2;
115
+ }
116
+
117
+ &::after {
118
+ content: attr(data-replicated-value) " ";
119
+ white-space: pre-wrap;
120
+ visibility: hidden;
121
+ }
122
+
123
+ > textarea {
124
+ resize: none;
125
+ overflow: hidden;
126
+ }
127
+ }