@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
@@ -1,161 +0,0 @@
1
- @use "../config" as *;
2
-
3
- %form-control {
4
- display: block;
5
- width: 100%;
6
- padding: $input-padding-y $input-padding-x;
7
- font-family: $input-font-family;
8
- @include font-size($input-font-size);
9
- font-weight: $input-font-weight;
10
- line-height: $input-line-height;
11
- color: $input-color;
12
- background-color: $input-bg;
13
- background-clip: padding-box;
14
- border: $input-border-width solid $input-border-color;
15
- appearance: none; // Fix appearance for date inputs in Safari
16
-
17
- // Note: This has no effect on <select>s in some browsers, due to the limited stylability of `<select>`s in CSS.
18
- @include border-radius($input-border-radius, 0);
19
-
20
- @include box-shadow($input-box-shadow);
21
- @include transition($input-transition);
22
-
23
- &[type="file"] {
24
- overflow: hidden; // prevent pseudo element button overlap
25
-
26
- &:not(:disabled):not([readonly]) {
27
- cursor: pointer;
28
- }
29
- }
30
-
31
- // Customize the `:focus` state to imitate native WebKit styles.
32
- &:focus {
33
- color: $input-focus-color;
34
- background-color: $input-focus-bg;
35
- border-color: $input-focus-border-color;
36
- outline: 0;
37
- @if $enable-shadows {
38
- @include box-shadow($input-box-shadow, $input-focus-box-shadow);
39
- } @else {
40
- // Avoid using mixin so we can pass custom focus shadow properly
41
- box-shadow: $input-focus-box-shadow;
42
- }
43
- }
44
-
45
- // Add some height to date inputs on iOS
46
- // https://github.com/twbs/bootstrap/issues/23307
47
- // TODO: we can remove this workaround once https://bugs.webkit.org/show_bug.cgi?id=198959 is resolved
48
- &::-webkit-date-and-time-value {
49
- // Multiply line-height by 1em if it has no unit
50
- height: if(unit($input-line-height) == "", $input-line-height * 1em, $input-line-height);
51
- }
52
-
53
- // Placeholder
54
- &::placeholder {
55
- color: $input-placeholder-color;
56
- // Override Firefox's unusual default opacity; see https://github.com/twbs/bootstrap/pull/11526.
57
- opacity: 1;
58
- }
59
-
60
- // Disabled and read-only inputs
61
- //
62
- // HTML5 says that controls under a fieldset > legend:first-child won't be
63
- // disabled if the fieldset is disabled. Due to implementation difficulty, we
64
- // don't honor that edge case; we style them as disabled anyway.
65
- &:disabled,
66
- &[readonly] {
67
- background-color: $input-disabled-bg;
68
- border-color: $input-disabled-border-color;
69
- // iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655.
70
- opacity: 1;
71
- }
72
-
73
- // File input buttons theming
74
- &::file-selector-button {
75
- padding: $input-padding-y $input-padding-x;
76
- margin: (-$input-padding-y) (-$input-padding-x);
77
- margin-inline-end: $input-padding-x;
78
- color: $form-file-button-color;
79
- @include gradient-bg($form-file-button-bg);
80
- pointer-events: none;
81
- border-color: inherit;
82
- border-style: solid;
83
- border-width: 0;
84
- border-inline-end-width: $input-border-width;
85
- border-radius: 0; // stylelint-disable-line property-disallowed-list
86
- @include transition($btn-transition);
87
- }
88
-
89
- &:hover:not(:disabled):not([readonly])::file-selector-button {
90
- background-color: $form-file-button-hover-bg;
91
- }
92
-
93
- &::-webkit-file-upload-button {
94
- padding: $input-padding-y $input-padding-x;
95
- margin: (-$input-padding-y) (-$input-padding-x);
96
- margin-inline-end: $input-padding-x;
97
- color: $form-file-button-color;
98
- @include gradient-bg($form-file-button-bg);
99
- pointer-events: none;
100
- border-color: inherit;
101
- border-style: solid;
102
- border-width: 0;
103
- border-inline-end-width: $input-border-width;
104
- border-radius: 0; // stylelint-disable-line property-disallowed-list
105
- @include transition($btn-transition);
106
- }
107
-
108
- &:hover:not(:disabled):not([readonly])::-webkit-file-upload-button {
109
- background-color: $form-file-button-hover-bg;
110
- }
111
- }
112
-
113
- // Form control sizing
114
- //
115
- // Build on `.form-control` with modifier classes to decrease or increase the
116
- // height and font-size of form controls.
117
- //
118
- // Repeated in `_input_group.scss` to avoid Sass extend issues.
119
-
120
- %form-control-sm {
121
- min-height: $input-height-sm;
122
- padding: $input-padding-y-sm $input-padding-x-sm;
123
- //@include font-size($input-font-size-sm);
124
- @include font-size($input-font-size);
125
- @include border-radius($input-border-radius-sm);
126
-
127
- &::file-selector-button {
128
- padding: $input-padding-y-sm $input-padding-x-sm;
129
- margin: (-$input-padding-y-sm) (-$input-padding-x-sm);
130
- margin-inline-end: $input-padding-x-sm;
131
- }
132
-
133
- &::-webkit-file-upload-button {
134
- padding: $input-padding-y-sm $input-padding-x-sm;
135
- margin: (-$input-padding-y-sm) (-$input-padding-x-sm);
136
- margin-inline-end: $input-padding-x-sm;
137
- }
138
- }
139
-
140
- %form-text {
141
- margin-top: $form-text-margin-top;
142
- @include font-size($form-text-font-size);
143
- font-style: $form-text-font-style;
144
- font-weight: $form-text-font-weight;
145
- color: $form-text-color;
146
- }
147
-
148
- %form-label {
149
- margin-bottom: $form-label-margin-bottom;
150
- @include font-size($form-label-font-size);
151
- font-style: $form-label-font-style;
152
- font-weight: $form-label-font-weight;
153
- color: $form-label-color;
154
- }
155
-
156
- %form-invalid {
157
- border-color: $danger;
158
- &:focus {
159
- border-color: $danger;
160
- }
161
- }
@@ -1,73 +0,0 @@
1
- @use "../config" as *;
2
-
3
- // Interactive list items
4
- //
5
- // Use anchor or button elements instead of `li`s or `div`s to create interactive
6
- // list items. Includes an extra `.active` modifier class for selected items.
7
-
8
- %list-group-item-action {
9
- width: 100%; // For `<button>`s (anchors become 100% by default though)
10
- color: $list-group-action-color;
11
- text-align: inherit; // For `<button>`s (anchors inherit)
12
-
13
- // Hover state
14
- &:hover,
15
- &:focus {
16
- z-index: 1; // Place hover/focus items above their siblings for proper border styling
17
- color: $list-group-action-hover-color;
18
- text-decoration: none;
19
- background-color: $list-group-hover-bg;
20
- }
21
-
22
- &:active {
23
- color: $list-group-action-active-color;
24
- background-color: $list-group-action-active-bg;
25
- }
26
- }
27
-
28
-
29
- // Individual list items
30
- //
31
- // Use on `li`s or `div`s within the `.list-group` parent.
32
-
33
- %list-group-item {
34
- position: relative;
35
- display: block;
36
- padding: $list-group-item-padding-y $list-group-item-padding-x;
37
- color: $list-group-color;
38
- text-decoration: if($link-decoration == none, null, none);
39
- background-color: $list-group-bg;
40
- border: $list-group-border-width solid $list-group-border-color;
41
-
42
- &:first-child {
43
- @include border-top-radius(inherit);
44
- }
45
-
46
- &:last-child {
47
- @include border-bottom-radius(inherit);
48
- }
49
-
50
- &.disabled,
51
- &:disabled {
52
- color: $list-group-disabled-color;
53
- pointer-events: none;
54
- background-color: $list-group-disabled-bg;
55
- }
56
-
57
- // Include both here for `<a>`s and `<button>`s
58
- &.active {
59
- z-index: 2; // Place active items above their siblings for proper border styling
60
- color: $list-group-active-color;
61
- background-color: $list-group-active-bg;
62
- border-color: $list-group-active-border-color;
63
- }
64
-
65
- & + & {
66
- border-top-width: 0;
67
-
68
- &.active {
69
- margin-top: -$list-group-border-width;
70
- border-top-width: $list-group-border-width;
71
- }
72
- }
73
- }
@@ -1,46 +0,0 @@
1
- @use "../config" as *;
2
-
3
- %table {
4
- --#{$variable-prefix}table-bg: #{$table-bg};
5
- --#{$variable-prefix}table-accent-bg: #{$table-accent-bg};
6
- --#{$variable-prefix}table-striped-color: #{$table-striped-color};
7
- --#{$variable-prefix}table-striped-bg: #{$table-striped-bg};
8
- --#{$variable-prefix}table-active-color: #{$table-active-color};
9
- --#{$variable-prefix}table-active-bg: #{$table-active-bg};
10
- --#{$variable-prefix}table-hover-color: #{$table-hover-color};
11
- --#{$variable-prefix}table-hover-bg: #{$table-hover-bg};
12
-
13
- width: 100%;
14
- margin-bottom: $spacer;
15
- color: $table-color;
16
- vertical-align: $table-cell-vertical-align;
17
- border-color: $table-border-color;
18
-
19
- // Target th & td
20
- // We need the child combinator to prevent styles leaking to nested tables which doesn't have a `.table` class.
21
- // We use the universal selectors here to simplify the selector (else we would need 6 different selectors).
22
- // Another advantage is that this generates less code and makes the selector less specific making it easier to override.
23
- // stylelint-disable-next-line selector-max-universal
24
- > :not(caption) > * > * {
25
- padding: $table-cell-padding-y $table-cell-padding-x;
26
- background-color: var(--#{$variable-prefix}table-bg);
27
- border-bottom-width: $table-border-width;
28
- box-shadow: inset 0 0 0 9999px var(--#{$variable-prefix}table-accent-bg);
29
- }
30
-
31
- > tbody {
32
- vertical-align: inherit;
33
- }
34
-
35
- > thead {
36
- vertical-align: bottom;
37
- }
38
-
39
- }
40
-
41
- %table-hover {
42
- > tbody > tr:hover > * {
43
- --#{$variable-prefix}table-accent-bg: var(--#{$variable-prefix}table-hover-bg);
44
- color: var(--#{$variable-prefix}table-hover-color);
45
- }
46
- }
@@ -1,2 +0,0 @@
1
- @import 'fontmapping-roboto';
2
- @import 'fontmapping-segoe-ui'; // Needed by Firefox
@@ -1,165 +0,0 @@
1
- @use "sass:map";
2
- @use "sass:list";
3
- @use "sass:string";
4
- @use "sass:math";
5
- @use "sass:color";
6
-
7
- // RYB COLOR WHEEL
8
- // HSL mapping based on http://computergraphics.stackexchange.com/questions/1748/function-to-convert-hsv-angle-to-ryb-angle
9
- // Matching bootstrap and MD colors
10
- $color-names: (
11
- "red": null,
12
- "deep-orange": null,
13
- "orange": null,
14
- "amber": null,
15
- "yellow": null,
16
- "lime": null,
17
- "light-green": null,
18
- "green": null,
19
- "teal": null,
20
- "cyan": null,
21
- "light-blue": null,
22
- "blue": null,
23
- "indigo": null,
24
- "deep-purple": null,
25
- "purple": null,
26
- "pink": null
27
- ) !default;
28
-
29
- // Matching MD shades
30
- // Added 950 for dark theme compatibility
31
- $color-shades: (
32
- "50": 95,
33
- "100": 90,
34
- "200": 80,
35
- "300": 70,
36
- "400": 60,
37
- "500": 50,
38
- "600": 42,
39
- "700": 36,
40
- "800": 28,
41
- "900": 22,
42
- "950": 16
43
- ) !default;
44
-
45
- // color mapping
46
- $ryb-rgb-mapping: (
47
- (0, 0) // Red
48
- (50, 35) // Orange
49
- (110, 60) // Yellow
50
- (165, 120) // Green
51
- (210, 180) // Cyan
52
- (285, 240) // Blue
53
- (330, 300) // Purple
54
- (360, 360) // Red (same as 0)
55
- ) !default;
56
-
57
- // saturation mapping
58
- $hue-sat-mapping: (
59
- (0, 85) // Red
60
- (110, 100) // Yellow
61
- (165, 60) // Green
62
- (210, 88) // Cyan
63
- (285, 97) // Blue
64
- (330, 65) // Purple
65
- (360, 85) // Red (same as 0)
66
- ) !default;
67
-
68
- @function ryb-hue($h, $reverse: false) {
69
- $deg: $h % 360;
70
-
71
- $from: 1;
72
- $to: 2;
73
-
74
- @if $reverse {
75
- $from: 2;
76
- $to: 1;
77
- }
78
-
79
- $lower: 1;
80
- $upper: 2;
81
-
82
- @while $deg > list.nth(list.nth($ryb-rgb-mapping, $upper), $from) {
83
- $lower: $upper;
84
- $upper: $upper + 1;
85
- }
86
-
87
- $lower-from: list.nth(list.nth($ryb-rgb-mapping, $lower), $from);
88
- $lower-to: list.nth(list.nth($ryb-rgb-mapping, $lower), $to);
89
- $upper-from: list.nth(list.nth($ryb-rgb-mapping, $upper), $from);
90
- $upper-to: list.nth(list.nth($ryb-rgb-mapping, $upper), $to);
91
-
92
- $percent: math.div(($deg - $lower-from), ($upper-from - $lower-from));
93
- $hue: $lower-to + ($upper-to - $lower-to) * $percent;
94
-
95
- @return $hue;
96
- }
97
-
98
- @function ryb-saturation($rybHue, $saturation, $reverse: false) {
99
- $deg: $rybHue % 360;
100
- $sat: math.clamp(0, $saturation, 100);
101
-
102
- $index: 1;
103
- $value: 2;
104
-
105
- $lower: 1;
106
- $upper: 2;
107
-
108
- @while $deg > list.nth(list.nth($hue-sat-mapping, $upper), $index) {
109
- $lower: $upper;
110
- $upper: $upper + 1;
111
- }
112
-
113
- $lower-index: list.nth(list.nth($hue-sat-mapping, $lower), $index);
114
- $upper-index: list.nth(list.nth($hue-sat-mapping, $upper), $index);
115
- $lower-value: list.nth(list.nth($hue-sat-mapping, $lower), $value);
116
- $upper-value: list.nth(list.nth($hue-sat-mapping, $upper), $value);
117
-
118
- $percent: math.div(($deg - $lower-index), ($upper-index - $lower-index));
119
- $interpolation: math.div(($lower-value + ($upper-value - $lower-value) * $percent), 100);
120
-
121
- @if $reverse {
122
- @return math.div($sat, $interpolation);
123
- } @else {
124
- @return $sat * $interpolation;
125
- }
126
-
127
- }
128
-
129
- @function hsl-to-ryb-as-hsl($h, $s, $l) {
130
- $hue: math.floor(ryb-hue($h));
131
- $saturation: ryb-saturation($h, $s) * 1%;
132
- $lightness: $l * 1%;
133
- @return hsl($hue, $saturation, $lightness);
134
- }
135
-
136
- @function generate-colors($base-color) {
137
- $h: ryb-hue(math.div(hue($base-color), 1deg), true);
138
- $divisions: list.length($color-names);
139
-
140
- // 33% is minimum threshold to not get all colors gray
141
- $normalizedS: math.clamp(ryb-saturation($h, 33), math.div(saturation($base-color), 1%), ryb-saturation($h, 100));
142
- $s: ryb-saturation($h, $normalizedS, true);
143
-
144
- $distance: math.div(360, $divisions);
145
-
146
- $start-offset: $h % $distance;
147
-
148
- // Clone
149
- $generated-colors: map.merge($color-names, ());
150
-
151
- @for $i from 1 through $divisions {
152
- $ih: $start-offset + ($i - 1) * $distance;
153
- $il: map.get($color-shades, "500");
154
- $iname: list.nth(map.keys($color-names), $i);
155
- $icolor: hsl-to-ryb-as-hsl($ih, $s, $il);
156
- //@debug $iname $icolor;
157
- $generated-colors: map.set($generated-colors, $iname, $icolor);
158
- }
159
-
160
- @return $generated-colors;
161
- }
162
-
163
- @function color-shade($color, $shade, $shades: $color-shades) {
164
- @return color.change($color, $lightness: map.get($shades, $shade) * 1%)
165
- }
@@ -1,110 +0,0 @@
1
- @use "../colors";
2
-
3
- @mixin scroll-y {
4
- overflow-y: auto;
5
- touch-action: pan-y, pan-x;
6
-
7
- // to enable HW acceleration and not cause repaint on scroll
8
- // opacity needed for custom scrollbar to paint
9
- will-change: scroll-position, opacity;
10
- backface-visibility: hidden;
11
-
12
- // ios momentum scrolling on iOS <= 12, cannot be used on the <body> element!
13
- &:not(body) {
14
- -webkit-overflow-scrolling: touch;
15
- }
16
-
17
- max-height: 100%;
18
- }
19
-
20
- @mixin scroll-x {
21
- overflow-x: auto;
22
- touch-action: pan-y, pan-x;
23
-
24
- // to enable HW acceleration and not cause repaint on scroll
25
- will-change: scroll-position, opacity;
26
- backface-visibility: hidden;
27
- max-width: 100%;
28
- }
29
-
30
- // custom scrollbar styling
31
- @mixin custom-scrollbar {
32
- // custom scrollbar for webkit browsers
33
- // reference https://webkit.org/blog/363/styling-scrollbars/
34
-
35
- &::-webkit-scrollbar {
36
- height: .625rem;
37
- width: .625rem;
38
- background: transparent;
39
- z-index: 999;
40
- }
41
-
42
- &::-webkit-scrollbar-track {
43
- background: transparent;
44
- }
45
-
46
- &::-webkit-scrollbar-thumb {
47
- background-color: rgba(colors.$gray-500, 0.75);
48
- border: .125rem solid transparent;
49
- border-radius: .5rem;
50
- background-clip: padding-box;
51
-
52
- &:hover {
53
- background-color: rgba(colors.$gray-700, 0.75);
54
- }
55
-
56
- &:window-inactive {
57
- background-color: rgba(colors.$gray-500, 0.5);
58
- }
59
- }
60
-
61
- // custom scrollbar for firefox
62
- scrollbar-width: thin;
63
- scrollbar-color: rgba(colors.$gray-500, 0.75) transparent;
64
- }
65
-
66
- // custom scrollbar styling
67
- @mixin thin-scrollbar {
68
- // custom scrollbar for webkit browsers
69
- &::-webkit-scrollbar {
70
- height: .375rem;
71
- width: .375rem;
72
- background: transparent;
73
- z-index: 999;
74
- }
75
-
76
- &::-webkit-scrollbar-track {
77
- background: transparent;
78
- }
79
-
80
- &::-webkit-scrollbar-thumb {
81
- background-color: rgba(colors.$gray-700, 0.75);
82
- border: 0 solid transparent;
83
- border-radius: 0;
84
- background-clip: padding-box;
85
-
86
- &:hover {
87
- background-color: rgba(colors.$gray-500, 0.75);
88
- }
89
-
90
- &:window-inactive {
91
- background-color: rgba(colors.$gray-500, 0.5);
92
- }
93
- }
94
-
95
- // custom scrollbar for firefox
96
- scrollbar-width: thin;
97
- scrollbar-color: rgba(colors.$gray-700, 0.75) transparent;
98
- }
99
-
100
- @mixin scrollbar-top-padding($scrollbar-padding) {
101
- &::-webkit-scrollbar-button:vertical:start {
102
- height: $scrollbar-padding;
103
- }
104
- }
105
-
106
- @mixin scrollbar-bottom-padding($scrollbar-padding) {
107
- &::-webkit-scrollbar-button:vertical:end {
108
- height: $scrollbar-padding;
109
- }
110
- }