@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,354 +0,0 @@
1
- // stylelint-disable property-blacklist, scss/dollar-variable-default
2
-
3
- // SCSS RFS mixin
4
- //
5
- // Automated responsive values for font sizes, paddings, margins and much more
6
- //
7
- // Licensed under MIT (https://github.com/twbs/rfs/blob/main/LICENSE)
8
-
9
- // Configuration
10
-
11
- // Base value
12
- $rfs-base-value: 1.25rem !default;
13
- $rfs-unit: rem !default;
14
-
15
- @if $rfs-unit != rem and $rfs-unit != px {
16
- @error "`#{$rfs-unit}` is not a valid unit for $rfs-unit. Use `px` or `rem`.";
17
- }
18
-
19
- // Breakpoint at where values start decreasing if screen width is smaller
20
- $rfs-breakpoint: 1200px !default;
21
- $rfs-breakpoint-unit: px !default;
22
-
23
- @if $rfs-breakpoint-unit != px and $rfs-breakpoint-unit != em and $rfs-breakpoint-unit != rem {
24
- @error "`#{$rfs-breakpoint-unit}` is not a valid unit for $rfs-breakpoint-unit. Use `px`, `em` or `rem`.";
25
- }
26
-
27
- // Resize values based on screen height and width
28
- $rfs-two-dimensional: false !default;
29
-
30
- // Factor of decrease
31
- $rfs-factor: 10 !default;
32
-
33
- @if type-of($rfs-factor) != number or $rfs-factor <= 1 {
34
- @error "`#{$rfs-factor}` is not a valid $rfs-factor, it must be greater than 1.";
35
- }
36
-
37
- // Mode. Possibilities: "min-media-query", "max-media-query"
38
- $rfs-mode: min-media-query !default;
39
-
40
- // Generate enable or disable classes. Possibilities: false, "enable" or "disable"
41
- $rfs-class: false !default;
42
-
43
- // 1 rem = $rfs-rem-value px
44
- $rfs-rem-value: 16 !default;
45
-
46
- // Safari iframe resize bug: https://github.com/twbs/rfs/issues/14
47
- $rfs-safari-iframe-resize-bug-fix: false !default;
48
-
49
- // Disable RFS by setting $enable-rfs to false
50
- $enable-rfs: true !default;
51
-
52
- // Cache $rfs-base-value unit
53
- $rfs-base-value-unit: unit($rfs-base-value);
54
-
55
- @function divide($dividend, $divisor, $precision: 10) {
56
- $sign: if($dividend > 0 and $divisor > 0 or $dividend < 0 and $divisor < 0, 1, -1);
57
- $dividend: abs($dividend);
58
- $divisor: abs($divisor);
59
- @if $dividend == 0 {
60
- @return 0;
61
- }
62
- @if $divisor == 0 {
63
- @error "Cannot divide by 0";
64
- }
65
- $remainder: $dividend;
66
- $result: 0;
67
- $factor: 10;
68
- @while ($remainder > 0 and $precision >= 0) {
69
- $quotient: 0;
70
- @while ($remainder >= $divisor) {
71
- $remainder: $remainder - $divisor;
72
- $quotient: $quotient + 1;
73
- }
74
- $result: $result * 10 + $quotient;
75
- $factor: $factor * .1;
76
- $remainder: $remainder * 10;
77
- $precision: $precision - 1;
78
- @if ($precision < 0 and $remainder >= $divisor * 5) {
79
- $result: $result + 1;
80
- }
81
- }
82
- $result: $result * $factor * $sign;
83
- $dividend-unit: unit($dividend);
84
- $divisor-unit: unit($divisor);
85
- $unit-map: (
86
- "px": 1px,
87
- "rem": 1rem,
88
- "em": 1em,
89
- "%": 1%
90
- );
91
- @if ($dividend-unit != $divisor-unit and map-has-key($unit-map, $dividend-unit)) {
92
- $result: $result * map-get($unit-map, $dividend-unit);
93
- }
94
- @return $result;
95
- }
96
-
97
- // Remove px-unit from $rfs-base-value for calculations
98
- @if $rfs-base-value-unit == px {
99
- $rfs-base-value: divide($rfs-base-value, $rfs-base-value * 0 + 1);
100
- }
101
- @else if $rfs-base-value-unit == rem {
102
- $rfs-base-value: divide($rfs-base-value, divide($rfs-base-value * 0 + 1, $rfs-rem-value));
103
- }
104
-
105
- // Cache $rfs-breakpoint unit to prevent multiple calls
106
- $rfs-breakpoint-unit-cache: unit($rfs-breakpoint);
107
-
108
- // Remove unit from $rfs-breakpoint for calculations
109
- @if $rfs-breakpoint-unit-cache == px {
110
- $rfs-breakpoint: divide($rfs-breakpoint, $rfs-breakpoint * 0 + 1);
111
- }
112
- @else if $rfs-breakpoint-unit-cache == rem or $rfs-breakpoint-unit-cache == "em" {
113
- $rfs-breakpoint: divide($rfs-breakpoint, divide($rfs-breakpoint * 0 + 1, $rfs-rem-value));
114
- }
115
-
116
- // Calculate the media query value
117
- $rfs-mq-value: if($rfs-breakpoint-unit == px, #{$rfs-breakpoint}px, #{divide($rfs-breakpoint, $rfs-rem-value)}#{$rfs-breakpoint-unit});
118
- $rfs-mq-property-width: if($rfs-mode == max-media-query, max-width, min-width);
119
- $rfs-mq-property-height: if($rfs-mode == max-media-query, max-height, min-height);
120
-
121
- // Internal mixin used to determine which media query needs to be used
122
- @mixin _rfs-media-query {
123
- @if $rfs-two-dimensional {
124
- @if $rfs-mode == max-media-query {
125
- @media (#{$rfs-mq-property-width}: #{$rfs-mq-value}), (#{$rfs-mq-property-height}: #{$rfs-mq-value}) {
126
- @content;
127
- }
128
- }
129
- @else {
130
- @media (#{$rfs-mq-property-width}: #{$rfs-mq-value}) and (#{$rfs-mq-property-height}: #{$rfs-mq-value}) {
131
- @content;
132
- }
133
- }
134
- }
135
- @else {
136
- @media (#{$rfs-mq-property-width}: #{$rfs-mq-value}) {
137
- @content;
138
- }
139
- }
140
- }
141
-
142
- // Internal mixin that adds disable classes to the selector if needed.
143
- @mixin _rfs-rule {
144
- @if $rfs-class == disable and $rfs-mode == max-media-query {
145
- // Adding an extra class increases specificity, which prevents the media query to override the property
146
- &,
147
- .disable-rfs &,
148
- &.disable-rfs {
149
- @content;
150
- }
151
- }
152
- @else if $rfs-class == enable and $rfs-mode == min-media-query {
153
- .enable-rfs &,
154
- &.enable-rfs {
155
- @content;
156
- }
157
- }
158
- @else {
159
- @content;
160
- }
161
- }
162
-
163
- // Internal mixin that adds enable classes to the selector if needed.
164
- @mixin _rfs-media-query-rule {
165
-
166
- @if $rfs-class == enable {
167
- @if $rfs-mode == min-media-query {
168
- @content;
169
- }
170
-
171
- @include _rfs-media-query {
172
- .enable-rfs &,
173
- &.enable-rfs {
174
- @content;
175
- }
176
- }
177
- }
178
- @else {
179
- @if $rfs-class == disable and $rfs-mode == min-media-query {
180
- .disable-rfs &,
181
- &.disable-rfs {
182
- @content;
183
- }
184
- }
185
- @include _rfs-media-query {
186
- @content;
187
- }
188
- }
189
- }
190
-
191
- // Helper function to get the formatted non-responsive value
192
- @function rfs-value($values) {
193
- // Convert to list
194
- $values: if(type-of($values) != list, ($values,), $values);
195
-
196
- $val: '';
197
-
198
- // Loop over each value and calculate value
199
- @each $value in $values {
200
- @if $value == 0 {
201
- $val: $val + ' 0';
202
- }
203
- @else {
204
- // Cache $value unit
205
- $unit: if(type-of($value) == "number", unit($value), false);
206
-
207
- @if $unit == px {
208
- // Convert to rem if needed
209
- $val: $val + ' ' + if($rfs-unit == rem, #{divide($value, $value * 0 + $rfs-rem-value)}rem, $value);
210
- }
211
- @else if $unit == rem {
212
- // Convert to px if needed
213
- $val: $val + ' ' + if($rfs-unit == px, #{divide($value, $value * 0 + 1) * $rfs-rem-value}px, $value);
214
- }
215
- @else {
216
- // If $value isn't a number (like inherit) or $value has a unit (not px or rem, like 1.5em) or $ is 0, just print the value
217
- $val: $val + ' ' + $value;
218
- }
219
- }
220
- }
221
-
222
- // Remove first space
223
- @return unquote(str-slice($val, 2));
224
- }
225
-
226
- // Helper function to get the responsive value calculated by RFS
227
- @function rfs-fluid-value($values) {
228
- // Convert to list
229
- $values: if(type-of($values) != list, ($values,), $values);
230
-
231
- $val: '';
232
-
233
- // Loop over each value and calculate value
234
- @each $value in $values {
235
- @if $value == 0 {
236
- $val: $val + ' 0';
237
- }
238
-
239
- @else {
240
- // Cache $value unit
241
- $unit: if(type-of($value) == "number", unit($value), false);
242
-
243
- // If $value isn't a number (like inherit) or $value has a unit (not px or rem, like 1.5em) or $ is 0, just print the value
244
- @if not $unit or $unit != px and $unit != rem {
245
- $val: $val + ' ' + $value;
246
- }
247
-
248
- @else {
249
- // Remove unit from $value for calculations
250
- $value: divide($value, $value * 0 + if($unit == px, 1, divide(1, $rfs-rem-value)));
251
-
252
- // Only add the media query if the value is greater than the minimum value
253
- @if abs($value) <= $rfs-base-value or not $enable-rfs {
254
- $val: $val + ' ' + if($rfs-unit == rem, #{divide($value, $rfs-rem-value)}rem, #{$value}px);
255
- }
256
- @else {
257
- // Calculate the minimum value
258
- $value-min: $rfs-base-value + divide(abs($value) - $rfs-base-value, $rfs-factor);
259
-
260
- // Calculate difference between $value and the minimum value
261
- $value-diff: abs($value) - $value-min;
262
-
263
- // Base value formatting
264
- $min-width: if($rfs-unit == rem, #{divide($value-min, $rfs-rem-value)}rem, #{$value-min}px);
265
-
266
- // Use negative value if needed
267
- $min-width: if($value < 0, -$min-width, $min-width);
268
-
269
- // Use `vmin` if two-dimensional is enabled
270
- $variable-unit: if($rfs-two-dimensional, vmin, vw);
271
-
272
- // Calculate the variable width between 0 and $rfs-breakpoint
273
- $variable-width: #{divide($value-diff * 100, $rfs-breakpoint)}#{$variable-unit};
274
-
275
- // Return the calculated value
276
- $val: $val + ' calc(' + $min-width + if($value < 0, ' - ', ' + ') + $variable-width + ')';
277
- }
278
- }
279
- }
280
- }
281
-
282
- // Remove first space
283
- @return unquote(str-slice($val, 2));
284
- }
285
-
286
- // RFS mixin
287
- @mixin rfs($values, $property: font-size) {
288
- @if $values != null {
289
- $val: rfs-value($values);
290
- $fluidVal: rfs-fluid-value($values);
291
-
292
- // Do not print the media query if responsive & non-responsive values are the same
293
- @if $val == $fluidVal {
294
- #{$property}: $val;
295
- }
296
- @else {
297
- @include _rfs-rule {
298
- #{$property}: if($rfs-mode == max-media-query, $val, $fluidVal);
299
-
300
- // Include safari iframe resize fix if needed
301
- min-width: if($rfs-safari-iframe-resize-bug-fix, (0 * 1vw), null);
302
- }
303
-
304
- @include _rfs-media-query-rule {
305
- #{$property}: if($rfs-mode == max-media-query, $fluidVal, $val);
306
- }
307
- }
308
- }
309
- }
310
-
311
- // Shorthand helper mixins
312
- @mixin font-size($value) {
313
- @include rfs($value);
314
- }
315
-
316
- @mixin padding($value) {
317
- @include rfs($value, padding);
318
- }
319
-
320
- @mixin padding-top($value) {
321
- @include rfs($value, padding-top);
322
- }
323
-
324
- @mixin padding-right($value) {
325
- @include rfs($value, padding-right);
326
- }
327
-
328
- @mixin padding-bottom($value) {
329
- @include rfs($value, padding-bottom);
330
- }
331
-
332
- @mixin padding-left($value) {
333
- @include rfs($value, padding-left);
334
- }
335
-
336
- @mixin margin($value) {
337
- @include rfs($value, margin);
338
- }
339
-
340
- @mixin margin-top($value) {
341
- @include rfs($value, margin-top);
342
- }
343
-
344
- @mixin margin-right($value) {
345
- @include rfs($value, margin-right);
346
- }
347
-
348
- @mixin margin-bottom($value) {
349
- @include rfs($value, margin-bottom);
350
- }
351
-
352
- @mixin margin-left($value) {
353
- @include rfs($value, margin-left);
354
- }
@@ -1,20 +0,0 @@
1
- @use "../config" as *;
2
-
3
- %badge {
4
- display: inline-block;
5
- padding: $badge-padding-y $badge-padding-x;
6
- @include font-size($badge-font-size);
7
- font-weight: $badge-font-weight;
8
- line-height: 1;
9
- color: $badge-color;
10
- text-align: center;
11
- white-space: nowrap;
12
- vertical-align: baseline;
13
- @include border-radius($badge-border-radius);
14
- @include gradient-bg();
15
-
16
- // Empty badges collapse automatically
17
- &:empty {
18
- display: none;
19
- }
20
- }
@@ -1,185 +0,0 @@
1
- @use "../config" as *;
2
-
3
-
4
- %btn {
5
- // scss-docs-start btn-css-vars
6
- --#{$prefix}btn-padding-x: #{$btn-padding-x};
7
- --#{$prefix}btn-padding-y: #{$btn-padding-y};
8
- --#{$prefix}btn-font-family: #{$btn-font-family};
9
- @include rfs($btn-font-size, --#{$prefix}btn-font-size);
10
- --#{$prefix}btn-font-weight: #{$btn-font-weight};
11
- --#{$prefix}btn-line-height: #{$btn-line-height};
12
- --#{$prefix}btn-color: #{$body-color};
13
- --#{$prefix}btn-bg: transparent;
14
- --#{$prefix}btn-border-width: #{$btn-border-width};
15
- --#{$prefix}btn-border-color: transparent;
16
- --#{$prefix}btn-border-radius: #{$btn-border-radius};
17
- --#{$prefix}btn-box-shadow: #{$btn-box-shadow};
18
- --#{$prefix}btn-disabled-opacity: #{$btn-disabled-opacity};
19
- --#{$prefix}btn-focus-box-shadow: 0 0 0 #{$btn-focus-width} rgba(var(--#{$prefix}btn-focus-shadow-rgb), .5);
20
- // scss-docs-end btn-css-vars
21
-
22
- display: inline-block;
23
- padding: var(--#{$prefix}btn-padding-y) var(--#{$prefix}btn-padding-x);
24
- font-family: var(--#{$prefix}btn-font-family);
25
- @include font-size(var(--#{$prefix}btn-font-size));
26
- font-weight: var(--#{$prefix}btn-font-weight);
27
- line-height: var(--#{$prefix}btn-line-height);
28
- color: var(--#{$prefix}btn-color);
29
- text-align: center;
30
- text-decoration: if($link-decoration == none, null, none);
31
- white-space: $btn-white-space;
32
- vertical-align: middle;
33
- cursor: if($enable-button-pointers, pointer, null);
34
- user-select: none;
35
- border: var(--#{$prefix}btn-border-width) solid var(--#{$prefix}btn-border-color);
36
- @include border-radius(var(--#{$prefix}btn-border-radius));
37
- @include gradient-bg(var(--#{$prefix}btn-bg));
38
- @include box-shadow(var(--#{$prefix}btn-box-shadow));
39
- @include transition($btn-transition);
40
-
41
- &:hover {
42
- color: var(--#{$prefix}btn-hover-color);
43
- text-decoration: if($link-hover-decoration == underline, none, null);
44
- background-color: var(--#{$prefix}btn-hover-bg);
45
- border-color: var(--#{$prefix}btn-hover-border-color);
46
- }
47
-
48
- .btn-check:focus + &,
49
- &:focus {
50
- color: var(--#{$prefix}btn-hover-color);
51
- @include gradient-bg(var(--#{$prefix}btn-hover-bg));
52
- border-color: var(--#{$prefix}btn-hover-border-color);
53
- outline: 0;
54
- // Avoid using mixin so we can pass custom focus shadow properly
55
- @if $enable-shadows {
56
- box-shadow: var(--#{$prefix}btn-box-shadow), var(--#{$prefix}btn-focus-box-shadow);
57
- } @else {
58
- box-shadow: var(--#{$prefix}btn-focus-box-shadow);
59
- }
60
- }
61
-
62
- .btn-check:checked + &,
63
- .btn-check:active + &,
64
- &:active,
65
- &.active,
66
- &.show {
67
- color: var(--#{$prefix}btn-active-color);
68
- background-color: var(--#{$prefix}btn-active-bg);
69
- // Remove CSS gradients if they're enabled
70
- background-image: if($enable-gradients, none, null);
71
- border-color: var(--#{$prefix}btn-active-border-color);
72
- @include box-shadow(var(--#{$prefix}btn-active-shadow));
73
-
74
- &:focus {
75
- // Avoid using mixin so we can pass custom focus shadow properly
76
- @if $enable-shadows {
77
- box-shadow: var(--#{$prefix}btn-active-shadow), var(--#{$prefix}btn-focus-box-shadow);
78
- } @else {
79
- box-shadow: var(--#{$prefix}btn-focus-box-shadow);
80
- }
81
- }
82
- }
83
-
84
- &:disabled,
85
- &.disabled,
86
- fieldset:disabled & {
87
- color: var(--#{$prefix}btn-disabled-color);
88
- pointer-events: none;
89
- background-color: var(--#{$prefix}btn-disabled-bg);
90
- background-image: if($enable-gradients, none, null);
91
- border-color: var(--#{$prefix}btn-disabled-border-color);
92
- opacity: var(--#{$prefix}btn-disabled-opacity);
93
- @include box-shadow(none);
94
- }
95
- }
96
-
97
-
98
- //
99
- // Alternate buttons
100
- //
101
-
102
- // scss-docs-start btn-variant-loops
103
- @each $color, $value in $theme-colors {
104
- %btn-#{$color} {
105
- @if $color == "light" {
106
- @include button-variant(
107
- $value,
108
- $value,
109
- $hover-background: shade-color($value, $btn-hover-bg-shade-amount),
110
- $hover-border: shade-color($value, $btn-hover-border-shade-amount),
111
- $active-background: shade-color($value, $btn-active-bg-shade-amount),
112
- $active-border: shade-color($value, $btn-active-border-shade-amount)
113
- );
114
- } @else if $color == "dark" {
115
- @include button-variant(
116
- $value,
117
- $value,
118
- $hover-background: tint-color($value, $btn-hover-bg-tint-amount),
119
- $hover-border: tint-color($value, $btn-hover-border-tint-amount),
120
- $active-background: tint-color($value, $btn-active-bg-tint-amount),
121
- $active-border: tint-color($value, $btn-active-border-tint-amount)
122
- );
123
- } @else {
124
- @include button-variant($value, $value);
125
- }
126
- }
127
- }
128
-
129
- @each $color, $value in $theme-colors {
130
- %btn-outline-#{$color} {
131
- @include button-outline-variant($value);
132
- }
133
- }
134
- // scss-docs-end btn-variant-loops
135
-
136
-
137
- //
138
- // Link buttons
139
- //
140
-
141
- // Make a button look and behave like a link
142
- %btn-link {
143
- --#{$prefix}btn-font-weight: #{$font-weight-normal};
144
- --#{$prefix}btn-color: #{$btn-link-color};
145
- --#{$prefix}btn-bg: transparent;
146
- --#{$prefix}btn-border-color: transparent;
147
- --#{$prefix}btn-hover-color: #{$btn-link-hover-color};
148
- --#{$prefix}btn-hover-border-color: transparent;
149
- --#{$prefix}btn-active-color: #{$btn-link-hover-color};
150
- --#{$prefix}btn-active-border-color: transparent;
151
- --#{$prefix}btn-disabled-color: #{$btn-link-disabled-color};
152
- --#{$prefix}btn-disabled-border-color: transparent;
153
- --#{$prefix}btn-box-shadow: none;
154
- --#{$prefix}btn-focus-shadow-rgb: #{to-rgb(mix(color-contrast($primary), $primary, 15%))};
155
-
156
- text-decoration: $link-decoration;
157
-
158
- &:hover,
159
- &:focus {
160
- text-decoration: $link-hover-decoration;
161
- }
162
-
163
- &:focus {
164
- color: var(--#{$prefix}btn-color);
165
- }
166
-
167
- &:hover {
168
- color: var(--#{$prefix}btn-hover-color);
169
- }
170
-
171
- // No need for an active state here
172
- }
173
-
174
-
175
- //
176
- // Button Sizes
177
- //
178
-
179
- %btn-lg {
180
- @include button-size($btn-padding-y-lg, $btn-padding-x-lg, $btn-font-size-lg, $btn-border-radius-lg);
181
- }
182
-
183
- %btn-sm {
184
- @include button-size($btn-padding-y-sm, $btn-padding-x-sm, $btn-font-size-sm, $btn-border-radius-sm);
185
- }
@@ -1,86 +0,0 @@
1
- @use "../config" as *;
2
-
3
- $dropdown-spacer: $dropdown-spacer !default;
4
-
5
- // The dropdown menu
6
- %dropdown-menu {
7
- position: absolute;
8
- z-index: $zindex-dropdown;
9
- display: none; // none by default, but block on "open" of the menu
10
- min-width: $dropdown-min-width;
11
- padding: $dropdown-padding-y $dropdown-padding-x;
12
- margin: 0; // Override default margin of ul
13
- @include font-size($dropdown-font-size);
14
- color: $dropdown-color;
15
- text-align: left; // Ensures proper alignment if parent has it changed (e.g., modal footer)
16
- list-style: none;
17
- background-color: $dropdown-bg;
18
- background-clip: padding-box;
19
- border: $dropdown-border-width solid $dropdown-border-color;
20
- @include border-radius($dropdown-border-radius);
21
- @include box-shadow($dropdown-box-shadow);
22
-
23
- &[data-bs-popper] {
24
- top: 100%;
25
- left: 0;
26
- margin-top: $dropdown-spacer;
27
- }
28
- }
29
-
30
- // Dividers (basically an `<hr>`) within the dropdown
31
- %dropdown-divider {
32
- height: 0;
33
- margin: $dropdown-divider-margin-y 0;
34
- overflow: hidden;
35
- border-top: 1px solid $dropdown-divider-bg;
36
- }
37
-
38
-
39
- %dropdown-item {
40
- display: block;
41
- width: 100%; // For `<button>`s
42
- padding: $dropdown-item-padding-y $dropdown-item-padding-x;
43
- clear: both;
44
- font-weight: $font-weight-normal;
45
- color: $dropdown-link-color;
46
- text-align: inherit; // For `<button>`s
47
- text-decoration: if($link-decoration == none, null, none);
48
- white-space: nowrap; // prevent links from randomly breaking onto new lines
49
- background-color: transparent; // For `<button>`s
50
- border: 0; // For `<button>`s
51
-
52
- // Prevent dropdown overflow if there's no padding
53
- // See https://github.com/twbs/bootstrap/pull/27703
54
- @if $dropdown-padding-y == 0 {
55
- &:first-child {
56
- @include border-top-radius($dropdown-inner-border-radius);
57
- }
58
-
59
- &:last-child {
60
- @include border-bottom-radius($dropdown-inner-border-radius);
61
- }
62
- }
63
-
64
- &:hover,
65
- &:focus {
66
- color: $dropdown-link-hover-color;
67
- text-decoration: if($link-hover-decoration == underline, none, null);
68
- @include gradient-bg($dropdown-link-hover-bg);
69
- }
70
-
71
- &.active,
72
- &:active {
73
- color: $dropdown-link-active-color;
74
- text-decoration: none;
75
- @include gradient-bg($dropdown-link-active-bg);
76
- }
77
-
78
- &.disabled,
79
- &:disabled {
80
- color: $dropdown-link-disabled-color;
81
- pointer-events: none;
82
- background-color: transparent;
83
- // Remove CSS gradients if they're enabled
84
- background-image: if($enable-gradients, none, null);
85
- }
86
- }