@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,130 @@
1
+ // initial color used to generate palette
2
+ $seed: #00658e;
3
+
4
+ // primary
5
+ $primary-0: #000000;
6
+ $primary-10: #001e2e;
7
+ $primary-20: #00344c;
8
+ $primary-30: #004c6c;
9
+ $primary-40: #00658e;
10
+ $primary-50: #007fb2;
11
+ $primary-60: #2f9ad0;
12
+ $primary-70: #53b5ec;
13
+ $primary-80: #84cfff;
14
+ $primary-90: #c7e7ff;
15
+ $primary-95: #e4f3ff;
16
+ $primary-99: #fbfcff;
17
+ $primary-100: #ffffff;
18
+
19
+ // secondary
20
+ $secondary-0: #000000;
21
+ $secondary-10: #201c00;
22
+ $secondary-20: #373100;
23
+ $secondary-30: #504700;
24
+ $secondary-40: #6a5f00;
25
+ $secondary-50: #857800;
26
+ $secondary-60: #a0921a;
27
+ $secondary-70: #bcad36;
28
+ $secondary-80: #d9c84f;
29
+ $secondary-90: #f6e468;
30
+ $secondary-95: #fff2a4;
31
+ $secondary-99: #fffbff;
32
+ $secondary-100: #ffffff;
33
+
34
+ // tertiary
35
+ $tertiary-0: #000000;
36
+ $tertiary-10: #002106;
37
+ $tertiary-20: #003910;
38
+ $tertiary-30: #00531b;
39
+ $tertiary-40: #206c2f;
40
+ $tertiary-50: #3c8645;
41
+ $tertiary-60: #56a15c;
42
+ $tertiary-70: #70bc75;
43
+ $tertiary-80: #8bd88e;
44
+ $tertiary-90: #a6f5a8;
45
+ $tertiary-95: #c7ffc4;
46
+ $tertiary-99: #f6fff1;
47
+ $tertiary-100: #ffffff;
48
+
49
+ // error
50
+ $error-0: #000000;
51
+ $error-10: #410002;
52
+ $error-20: #690005;
53
+ $error-30: #93000a;
54
+ $error-40: #ba1a1a;
55
+ $error-50: #de3730;
56
+ $error-60: #ff5449;
57
+ $error-70: #ff897d;
58
+ $error-80: #ffb4ab;
59
+ $error-90: #ffdad6;
60
+ $error-95: #ffedea;
61
+ $error-99: #fffbff;
62
+ $error-100: #ffffff;
63
+
64
+ // neutral
65
+ $neutral-0: #000000;
66
+ $neutral-10: #191c1e;
67
+ $neutral-20: #2e3133;
68
+ $neutral-30: #454749;
69
+ $neutral-40: #5c5e61;
70
+ $neutral-50: #75777a;
71
+ $neutral-60: #8f9193;
72
+ $neutral-70: #aaabae;
73
+ $neutral-80: #c5c6c9;
74
+ $neutral-90: #e2e2e5;
75
+ $neutral-95: #f0f1f3;
76
+ $neutral-99: #fcfcff;
77
+ $neutral-100: #ffffff;
78
+
79
+ // neutral variant
80
+ $neutral-variant-0: #000000;
81
+ $neutral-variant-10: #161c21;
82
+ $neutral-variant-20: #2b3136;
83
+ $neutral-variant-30: #41484d;
84
+ $neutral-variant-40: #595f65;
85
+ $neutral-variant-50: #71787e;
86
+ $neutral-variant-60: #8b9198;
87
+ $neutral-variant-70: #a5acb2;
88
+ $neutral-variant-80: #c1c7ce;
89
+ $neutral-variant-90: #dde3ea;
90
+ $neutral-variant-95: #ebf1f8;
91
+ $neutral-variant-99: #fbfcff;
92
+ $neutral-variant-100: #ffffff;
93
+
94
+ // custom colors
95
+ $blue-light: #7aadfa;
96
+ $indigo-light: #8489e0;
97
+ $purple-light: #bd78c2;
98
+ $pink-light: #d072a2;
99
+ $red-light: #da717c;
100
+ $orange-light: #ef9646;
101
+ $yellow-light: #d9c84f;
102
+ $green-light: #56a15c;
103
+ $teal-light: #00a29d;
104
+ $cyan-light: #008398;
105
+ $gray-light: #75777a;
106
+
107
+ $blue-dark: #a7c8ff;
108
+ $indigo-dark: #8489e0;
109
+ $purple-dark: #da92de;
110
+ $pink-dark: #ee8cbe;
111
+ $red-dark: #da717c;
112
+ $orange-dark: #ef9646;
113
+ $yellow-dark: #d9c84f;
114
+ $green-dark: #56a15c;
115
+ $teal-dark: #00a29d;
116
+ $cyan-dark: #009fb8;
117
+ $gray-dark: #8f9193;
118
+
119
+ // surface levels
120
+ $surface-1-light: #f0f4f9; // $neutral-99 + $primary-40 with 5% opacity
121
+ $surface-2-light: #e8f0f6; // $neutral-99 + $primary-40 with 8% opacity
122
+ $surface-3-light: #e0ebf2; // $neutral-99 + $primary-40 with 11% opacity
123
+ $surface-4-light: #deeaf1; // $neutral-99 + $primary-40 with 12% opacity
124
+ $surface-5-light: #d9e7ef; // $neutral-99 + $primary-40 with 14 opacity
125
+
126
+ $surface-1-dark: #1e2428; // $neutral-10 + $primary-80 with 5% opacity
127
+ $surface-2-dark: #212a2f; // $neutral-10 + $primary-80 with 8% opacity
128
+ $surface-3-dark: #242f36; // $neutral-10 + $primary-80 with 11% opacity
129
+ $surface-4-dark: #253138; // $neutral-10 + $primary-80 with 12% opacity
130
+ $surface-5-dark: #27343c; // $neutral-10 + $primary-80 with 14 opacity
@@ -1,11 +1,11 @@
1
- @use "../variables";
1
+ @use "vars";
2
2
 
3
3
  @mixin fixed-top {
4
4
  position: fixed;
5
5
  top: 0;
6
6
  right: 0;
7
7
  left: 0;
8
- z-index: variables.$zindex-fixed;
8
+ z-index: vars.$zindex-fixed;
9
9
  }
10
10
 
11
11
  @mixin fixed-bottom {
@@ -13,14 +13,14 @@
13
13
  right: 0;
14
14
  bottom: 0;
15
15
  left: 0;
16
- z-index: variables.$zindex-fixed;
16
+ z-index: vars.$zindex-fixed;
17
17
  }
18
18
 
19
19
  @mixin sticky-top {
20
20
  @supports (position: sticky) {
21
21
  position: sticky;
22
22
  top: 0;
23
- z-index: variables.$zindex-sticky;
23
+ z-index: vars.$zindex-sticky;
24
24
  }
25
25
  }
26
26
 
@@ -28,6 +28,6 @@
28
28
  @supports (position: sticky) {
29
29
  position: sticky;
30
30
  bottom: 0;
31
- z-index: variables.$zindex-sticky;
31
+ z-index: vars.$zindex-sticky;
32
32
  }
33
33
  }
@@ -0,0 +1,51 @@
1
+ @use "sass:selector";
2
+ @use "colors";
3
+ @use "vars";
4
+
5
+ // Some cherry-picked and ported from bootstrap/scss/reboot
6
+ // Use :where() to get specificity 0 https://developer.mozilla.org/en-US/docs/Web/CSS/:where
7
+
8
+ // General style reboot selector for all classes starting with wy-
9
+ :where([class^='wy-'], [class*=' wy-']) {
10
+ box-sizing: border-box;
11
+ // See https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/
12
+ *::before, *::after {
13
+ box-sizing: inherit;
14
+ }
15
+ // Self and descendants
16
+ &, & * {
17
+ // A
18
+ &:where(a) {
19
+ text-decoration: vars.$link-decoration;
20
+ color: colors.$link;
21
+
22
+ &:hover {
23
+ text-decoration: vars.$link-hover-decoration;
24
+ }
25
+
26
+ &:where(:not([href]):not([class])) {
27
+
28
+ &, &:hover {
29
+ text-decoration: none;
30
+ }
31
+ }
32
+ }
33
+ // P
34
+ &:where(p) {
35
+ margin-top: 0;
36
+ margin-bottom: 1rem;
37
+ }
38
+ // LABEL
39
+ &:where(label) {
40
+ cursor: inherit;
41
+ }
42
+
43
+ &[hidden] {
44
+ display: none !important;
45
+ }
46
+
47
+ &:where([role="button"]) {
48
+ cursor: pointer;
49
+ }
50
+ }
51
+ }
@@ -0,0 +1,180 @@
1
+ @use "sass:selector";
2
+ @use "colors";
3
+
4
+ @mixin scroll-y {
5
+ overflow-y: auto;
6
+ touch-action: pan-y, pan-x;
7
+
8
+ // to enable HW acceleration and not cause repaint on scroll
9
+ // opacity needed for custom scrollbar to paint
10
+ will-change: scroll-position, opacity;
11
+ backface-visibility: hidden;
12
+
13
+ // ios momentum scrolling on iOS <= 12, cannot be used on the <body> element!
14
+ &:not(body) {
15
+ -webkit-overflow-scrolling: touch;
16
+ }
17
+
18
+ max-height: 100%;
19
+ }
20
+
21
+ @mixin scroll-x {
22
+ overflow-x: auto;
23
+ touch-action: pan-y, pan-x;
24
+
25
+ // to enable HW acceleration and not cause repaint on scroll
26
+ will-change: scroll-position, opacity;
27
+ backface-visibility: hidden;
28
+ max-width: 100%;
29
+ }
30
+
31
+ // custom scrollbar styling
32
+ @mixin custom-scrollbar {
33
+ // custom scrollbar for webkit browsers
34
+ // reference https://webkit.org/blog/363/styling-scrollbars/
35
+
36
+ &::-webkit-scrollbar {
37
+ height: .625rem;
38
+ width: .625rem;
39
+ background: transparent;
40
+ z-index: 999;
41
+ }
42
+
43
+ &::-webkit-scrollbar-track {
44
+ background: transparent;
45
+ }
46
+
47
+ &::-webkit-scrollbar-thumb {
48
+ //background-color: rgba(colors.$gray-500, 0.75);
49
+ background-color: colors.$outline;
50
+ border: .125rem solid transparent;
51
+ border-radius: .5rem;
52
+ background-clip: padding-box;
53
+ opacity: 75%;
54
+
55
+ &:hover {
56
+ //background-color: rgba(colors.$gray-700, 0.75);
57
+ background-color: colors.$outline-variant;
58
+ opacity: 75%;
59
+ }
60
+
61
+ &:window-inactive {
62
+ //background-color: rgba(colors.$gray-500, 0.5);
63
+ background-color: colors.$outline;
64
+ opacity: 50%;
65
+ }
66
+ }
67
+
68
+ // custom scrollbar for firefox
69
+ scrollbar-width: thin;
70
+ //scrollbar-color: rgba(colors.$gray-500, 0.75) transparent;
71
+ scrollbar-color: #{colors.$outline} transparent;
72
+ }
73
+
74
+ // custom scrollbar styling
75
+ @mixin thin-scrollbar {
76
+ // custom scrollbar for webkit browsers
77
+ &::-webkit-scrollbar {
78
+ height: .375rem;
79
+ width: .375rem;
80
+ background: transparent;
81
+ z-index: 999;
82
+ }
83
+
84
+ &::-webkit-scrollbar-track {
85
+ background: transparent;
86
+ }
87
+
88
+ &::-webkit-scrollbar-thumb {
89
+ //background-color: rgba(colors.$gray-700, 0.75);
90
+ background-color: colors.$outline-variant;
91
+ opacity: 75%;
92
+ border: 0 solid transparent;
93
+ border-radius: 0;
94
+ background-clip: padding-box;
95
+
96
+ &:hover {
97
+ //background-color: rgba(colors.$gray-500, 0.75);
98
+ background-color: colors.$outline;
99
+ opacity: 75%;
100
+ }
101
+
102
+ &:window-inactive {
103
+ //background-color: rgba(colors.$gray-500, 0.5);
104
+ background-color: colors.$outline;
105
+ opacity: 50%;
106
+ }
107
+ }
108
+
109
+ // custom scrollbar for firefox
110
+ scrollbar-width: thin;
111
+ //scrollbar-color: rgba(colors.$gray-700, 0.75) transparent;
112
+ scrollbar-color: #{colors.$outline-variant} transparent;
113
+ }
114
+
115
+ @mixin scrollbar-top-padding($scrollbar-padding) {
116
+ &::-webkit-scrollbar-button:vertical:start:single-button {
117
+ height: $scrollbar-padding;
118
+ }
119
+ }
120
+
121
+ @mixin scrollbar-bottom-padding($scrollbar-padding) {
122
+ &::-webkit-scrollbar-button:vertical:end:single-button {
123
+ height: $scrollbar-padding;
124
+ }
125
+ }
126
+
127
+ // Exposed styles
128
+
129
+ .wy-scroll-y {
130
+ @include scroll-y;
131
+
132
+ &:not(.wy-scroll-x) {
133
+ overflow-x: hidden;
134
+ touch-action: pan-y;
135
+ }
136
+ }
137
+
138
+ .wy-scroll-x {
139
+ @include scroll-x;
140
+
141
+ &:not(.wy-scroll-y) {
142
+ overflow-y: hidden;
143
+ touch-action: pan-x;
144
+ }
145
+ }
146
+
147
+ .wy-scrollbars {
148
+ // custom scrollbar styling
149
+ // use overlay scrollbars if supported
150
+
151
+ &.wy-scroll-y, .wy-scroll-y {
152
+ @supports (overflow-y: overlay) {
153
+ overflow-y: overlay;
154
+ }
155
+
156
+ @include custom-scrollbar;
157
+
158
+ // scrollbar offsets
159
+ @include scrollbar-top-padding(#{'var(--wy-scrollbar-adjust-top, 0)'});
160
+ @include scrollbar-bottom-padding(#{'var(--wy-scrollbar-adjust-bottom, 0)'});
161
+ }
162
+ }
163
+
164
+ // prevent scroll when opening modals etc.
165
+ .wy-block-scroll {
166
+ overflow: hidden !important;
167
+ }
168
+
169
+ // element for detecting scrollbar capabilities (visibility, overlay etc.)
170
+ .wy-scrollbar-detection {
171
+ position: fixed;
172
+ top: 0;
173
+ left: 0;
174
+ width: 8rem;
175
+ height: 8rem;
176
+ overflow: scroll;
177
+ z-index: -99999;
178
+ pointer-events: none;
179
+ visibility: hidden;
180
+ }
@@ -0,0 +1,49 @@
1
+ @use "sass:string";
2
+
3
+ $escaped-characters: (
4
+ ("<", "%3c"),
5
+ (">", "%3e"),
6
+ ("#", "%23"),
7
+ ("(", "%28"),
8
+ (")", "%29"),
9
+ ) !default;
10
+
11
+ // Replace `$search` with `$replace` in `$string`
12
+ // Used on our SVG icon backgrounds for custom forms.
13
+ //
14
+ // @author Hugo Giraudel
15
+ // @param {String} $string - Initial string
16
+ // @param {String} $search - Substring to replace
17
+ // @param {String} $replace ('') - New value
18
+ // @return {String} - Updated string
19
+ @function str-replace($string, $search, $replace: "") {
20
+ $index: string.index($string, $search);
21
+
22
+ @if $index {
23
+ @return string.slice($string, 1, $index - 1) + $replace + str-replace(string.slice($string, $index + string.length($search)), $search, $replace);
24
+ }
25
+
26
+ @return $string;
27
+ }
28
+
29
+ // See https://codepen.io/kevinweber/pen/dXWoRw
30
+ //
31
+ // Requires the use of quotes around data URIs.
32
+
33
+ @function escape($string) {
34
+ @if string.index($string, "data:image/svg+xml") {
35
+ @each $char, $encoded in $escaped-characters {
36
+ // Do not escape the url brackets
37
+ @if string.index($string, "url(") == 1 {
38
+ $string: url("#{str-replace(string.slice($string, 6, -3), $char, $encoded)}");
39
+ } @else {
40
+ $string: str-replace($string, $char, $encoded);
41
+ }
42
+ }
43
+ }
44
+
45
+ @return $string;
46
+ }
47
+
48
+ // spinner.svg encoded with https://codepen.io/jakob-e/pen/doMoML
49
+ $spinner: 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")
@@ -0,0 +1,23 @@
1
+ @use "vars";
2
+
3
+ // Text truncate
4
+ // Requires inline-block or block for proper styling
5
+ @mixin truncate {
6
+ overflow: hidden;
7
+ text-overflow: ellipsis;
8
+ white-space: nowrap;
9
+ }
10
+
11
+ // Use stretched-link on links to to make its containing block clickable via a ::after pseudo element.
12
+ // In most cases, this means that an element with position: relative; that contains a link is clickable.
13
+ @mixin stretched-link {
14
+ &::after {
15
+ position: absolute;
16
+ top: 0;
17
+ right: 0;
18
+ bottom: 0;
19
+ left: 0;
20
+ z-index: 1;
21
+ content: "";
22
+ }
23
+ }
@@ -0,0 +1,203 @@
1
+ @use "colors";
2
+ @use "md";
3
+
4
+ // Breakpoints for responsive layout
5
+ $breakpoint-sm: 576px;
6
+ $breakpoint-md: 768px;
7
+ $breakpoint-lg: 992px;
8
+ $breakpoint-xl: 1200px;
9
+ $breakpoint-xxl: 1400px;
10
+
11
+ // Z-index master list
12
+ $zindex-dropdown: 1000 !default;
13
+ $zindex-sticky: 1020 !default;
14
+ $zindex-fixed: 1030 !default;
15
+ //$zindex-offcanvas-backdrop: 1040 !default;
16
+ //$zindex-offcanvas: 1045 !default;
17
+ $zindex-modal-backdrop: 1050 !default;
18
+ $zindex-modal: 1055 !default;
19
+ $zindex-popover: 1070 !default;
20
+ $zindex-tooltip: 1080 !default;
21
+ $zindex-toast: 1090 !default;
22
+
23
+ $zindex-max: 2147483647 !default;
24
+
25
+ $font-family-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
26
+
27
+ $font-weight-thin: 100;
28
+ $font-weight-extralight: 200;
29
+ $font-weight-light: 300;
30
+ $font-weight-normal: 400;
31
+ $font-weight-medium: 500;
32
+ $font-weight-semibold: 600;
33
+ $font-weight-bold: 700;
34
+ $font-weight-extrabold: 800;
35
+ $font-weight-black: 900;
36
+ $font-weight-extrablack: 950;
37
+
38
+ // Components
39
+ $appbar-height: 3rem;
40
+ $footerbar-height: 4rem;
41
+
42
+ // VARIABLES
43
+
44
+ :where(:root, :host > *) {
45
+ /* Typography */
46
+
47
+ // Font should be inherited/unset by default
48
+ --wy-font-family: unset; // #{$font-family-sans-serif};
49
+ --wy-font-weight: unset; // #{$font-weight-normal};
50
+
51
+ --wy-line-height: 1.5;
52
+
53
+ --wy-font-size-base: 1rem; // Assumes the browser default, typically 16px
54
+ --wy-font-size-xxs: calc(.625 * var(--wy-font-size-base)); // .625rem 10px
55
+ --wy-font-size-xs: calc(.75 * var(--wy-font-size-base)); // .75rem 12px
56
+ --wy-font-size-sm: calc(.875 * var(--wy-font-size-base)); // .875rem 14px
57
+ --wy-font-size-lg: calc(1.25 * var(--wy-font-size-base)); // 1.25rem 20px
58
+
59
+ --wy-headings-font-style: unset;
60
+ --wy-headings-font-family: var(--wy-font-family);
61
+ --wy-headings-font-weight: #{$font-weight-medium};
62
+ --wy-headings-line-height: var(--wy-line-height);
63
+
64
+ /* Border */
65
+ --wy-border-radius: .5rem;
66
+ --wy-border-radius-sm: calc(.75 * var(--wy-border-radius)); // .375rem;
67
+ --wy-border-radius-lg: calc(1.5 * var(--wy-border-radius)); // .75rem;
68
+ --wy-border-radius-xl: calc(2 * var(--wy-border-radius)); // 1rem;
69
+ --wy-border-radius-pill: 50rem;
70
+
71
+ /* Links */
72
+ //--wy-link-color: #{colors.$primary}; ---> --wy-link in colors
73
+ --wy-link-decoration: none;
74
+ --wy-link-hover-decoration: null;
75
+
76
+ /* Tables */
77
+ --wy-table-cell-padding-x: .25rem;
78
+ --wy-table-cell-padding-y: .25rem;
79
+
80
+ /* Inputs */
81
+ --wy-input-padding-y: .4375rem;
82
+ --wy-input-padding-x: .75rem;
83
+ --wy-input-font-family: unset;
84
+ --wy-input-font-size: var(--wy-font-size-base);
85
+ --wy-input-font-weight: var(--wy-font-weight);
86
+ --wy-input-line-height: var(--wy-line-height);
87
+ --wy-input-border-width: 1px;
88
+ --wy-input-border-radius: var(--wy-border-radius);
89
+
90
+
91
+ /* Shadows */
92
+ --wy-shadow-level0: none; // xxs
93
+ --wy-shadow-level1: #{md.$shadow-2dp}; // xs
94
+ --wy-shadow-level2: #{md.$shadow-4dp}; // sm
95
+ --wy-shadow-level3: #{md.$shadow-8dp}; //
96
+ --wy-shadow-level4: #{md.$shadow-16dp}; // lg
97
+
98
+ /* Transitions */
99
+ --wy-transition-curve: #{md.$animation-curve-default};
100
+ --wy-transition-duration: #{md.$animation-duration};
101
+ --wy-transition-duration-fast: #{md.$animation-duration-fast};
102
+ --wy-transition: var(--wy-transition-duration) var(--wy-transition-curve);
103
+ --wy-transition-fast: var(--wy-transition-duration-fast) var(--wy-transition-curve);
104
+
105
+ /* Opacity */
106
+ --wy-opacity-backdrop: 95%;
107
+ --wy-opacity-muted: 38%;
108
+ --wy-opacity-disabled: 38%;
109
+ /*
110
+ --wy-opacity-disabled: 12%;
111
+ --wy-opacity-on-disabled: 38%;
112
+ */
113
+
114
+ /* State layer */
115
+ --wy-opacity-state-hover: 8%;
116
+ --wy-opacity-state-focus: 12%;
117
+ --wy-opacity-state-active: 12%;
118
+ --wy-opacity-state-drag: 16%;
119
+
120
+ /* Surface elevation */
121
+ --wy-surface-1-mix: 5%;
122
+ --wy-surface-2-mix: 8%;
123
+ --wy-surface-3-mix: 11%;
124
+ --wy-surface-4-mix: 12%;
125
+ --wy-surface-5-mix: 14%;
126
+
127
+ }
128
+
129
+ // Rounded corners
130
+ $border-radius-sm: var(--wy-border-radius-sm);
131
+ $border-radius: var(--wy-border-radius);
132
+ $border-radius-lg: var(--wy-border-radius-lg);
133
+ $border-radius-xl: var(--wy-border-radius-xl);
134
+ $border-radius-pill: var(--wy-border-radius-pill);
135
+
136
+ // Typography
137
+ $font-family-base: var(--wy-font-family);
138
+ $font-weight-base: var(--wy-font-weight);
139
+
140
+ $line-height-base: var(--wy-line-height);
141
+
142
+ $font-size-xxs: var(--wy-font-size-xxs);
143
+ $font-size-xs: var(--wy-font-size-xs);
144
+ $font-size-sm: var(--wy-font-size-sm);
145
+ $font-size-base: var(--wy-font-size-base);
146
+ $font-size-lg: var(--wy-font-size-lg);
147
+
148
+ $headings-font-style: var(--wy-headings-font-style);
149
+ $headings-font-family: var(--wy-headings-font-family);
150
+ $headings-font-weight: var(--wy-headings-font-weight);
151
+ $headings-line-height: var(--wy-headings-line-height);
152
+
153
+ // Links
154
+ //$link-color: var(--wy-link-color); ---> colors.$link;
155
+ $link-decoration: var(--wy-link-decoration);
156
+ $link-hover-decoration: var(--wy-link-hover-decoration);
157
+
158
+ // Tables
159
+ $table-cell-padding-x: var(--wy-table-cell-padding-x);
160
+ $table-cell-padding-y: var(--wy-table-cell-padding-y);
161
+
162
+ // Forms, Inputs
163
+ $input-padding-y: var(--wy-input-padding-y);
164
+ $input-padding-x: var(--wy-input-padding-x);
165
+ $input-font-family: var(--wy-input-font-family);
166
+ $input-font-size: var(--wy-input-font-size);
167
+ $input-font-weight: var(--wy-input-font-weight);
168
+ $input-line-height: var(--wy-input-line-height);
169
+ $input-border-width: var(--wy-input-border-width);
170
+ $input-border-radius: var(--wy-input-border-radius);
171
+
172
+ // Shadows
173
+ $shadow-level0: var(--wy-shadow-level0);
174
+ $shadow-level1: var(--wy-shadow-level1);
175
+ $shadow-level2: var(--wy-shadow-level2);
176
+ $shadow-level3: var(--wy-shadow-level3);
177
+ $shadow-level4: var(--wy-shadow-level4);
178
+
179
+ // Transitions
180
+ $transition-curve: var(--wy-transition-curve);
181
+ $transition-duration: var(--wy-transition-duration);
182
+ $transition-duration-fast: var(--wy-transition-duration-fast);
183
+ $transition: var(--wy-transition);
184
+ $transition-fast: var(--wy-transition-fast);
185
+
186
+ // Opacity
187
+ $opacity-backdrop: var(--wy-opacity-backdrop);
188
+ $opacity-muted: var(--wy-opacity-muted);
189
+ $opacity-disabled: var(--wy-opacity-disabled);
190
+ $opacity-on-disabled: var(--wy-opacity-on-disabled);
191
+
192
+ // State layer
193
+ $opacity-state-hover: var(--wy-opacity-state-hover);
194
+ $opacity-state-focus: var(--wy-opacity-state-focus);
195
+ $opacity-state-active: var(--wy-opacity-state-active);
196
+ $opacity-state-drag: var(--wy-opacity-state-drag);
197
+
198
+ // Surface elevation
199
+ $surface-1-mix: var(--wy-surface-1-mix);
200
+ $surface-2-mix: var(--wy-surface-2-mix);
201
+ $surface-3-mix: var(--wy-surface-3-mix);
202
+ $surface-4-mix: var(--wy-surface-4-mix);
203
+ $surface-5-mix: var(--wy-surface-5-mix);
@@ -0,0 +1,2 @@
1
+ @import './fontmapping-roboto';
2
+ @import './fontmapping-segoe-ui'; // Needed by Firefox