@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.
- package/changelog.md +30 -0
- package/dist/cjs/{types/client → client}/WeavyClient.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Attachment.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Avatar.d.ts +0 -0
- package/dist/{esm/types → cjs}/components/Chat.d.ts +1 -1
- package/dist/cjs/{types/components → components}/Conversation.d.ts +0 -0
- package/dist/cjs/{types/components → components}/ConversationBadge.d.ts +0 -0
- package/dist/cjs/{types/components → components}/ConversationForm.d.ts +0 -0
- package/dist/cjs/{types/components → components}/ConversationList.d.ts +0 -0
- package/dist/cjs/{types/components → components}/ConversationListItem.d.ts +0 -0
- package/dist/cjs/{types/components → components}/File.d.ts +0 -0
- package/dist/cjs/{types/components → components}/FileBrowser.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Image.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Meeting.d.ts +0 -0
- package/dist/cjs/{types/components → components}/MeetingCard.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Meetings.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Message.d.ts +0 -0
- package/dist/{esm/types → cjs}/components/Messages.d.ts +3 -1
- package/dist/cjs/{types/components → components}/Messenger.d.ts +0 -0
- package/dist/cjs/{types/components → components}/NewConversation.d.ts +0 -0
- package/dist/cjs/{types/components → components}/PdfViewer.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Presence.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Preview.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Reactions.d.ts +0 -0
- package/dist/cjs/{types/components → components}/SearchUsers.d.ts +0 -0
- package/dist/cjs/{types/components → components}/SeenBy.d.ts +0 -0
- package/dist/cjs/{types/components → components}/Typing.d.ts +0 -0
- package/dist/cjs/{types/contexts → contexts}/MessengerContext.d.ts +0 -0
- package/dist/cjs/{types/contexts → contexts}/PreviewContext.d.ts +0 -0
- package/dist/cjs/{types/contexts → contexts}/UserContext.d.ts +0 -0
- package/dist/cjs/{types/contexts → contexts}/WeavyContext.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useBadge.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useChat.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useConversation.d.ts +0 -0
- package/dist/cjs/hooks/useConversations.d.ts +1 -0
- package/dist/cjs/{types/hooks → hooks}/useDebounce.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useEvents.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useFileUploader.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMembers.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMessages.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateChat.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateConversation.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateConversationName.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateDeleteReaction.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateExternalBlobs.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateMeeting.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateMembers.d.ts +0 -0
- package/dist/{esm/types → cjs}/hooks/useMutateMessage.d.ts +1 -1
- package/dist/cjs/{types/hooks → hooks}/useMutatePinned.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateReaction.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateRead.d.ts +1 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateRemoveMembers.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useMutateTyping.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/usePresence.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/usePreview.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useReactions.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useSearchUsers.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useThrottle.d.ts +0 -0
- package/dist/cjs/{types/hooks → hooks}/useUser.d.ts +0 -0
- package/dist/cjs/{types/index.d.ts → index.d.ts} +0 -0
- package/dist/cjs/index.js +6 -28
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/{types/Chat.d.ts → Chat.d.ts} +1 -0
- package/dist/cjs/types/{types/Conversation.d.ts → Conversation.d.ts} +0 -0
- package/dist/cjs/types/{types/ConversationListItem.d.ts → ConversationListItem.d.ts} +0 -0
- package/dist/{esm/types → cjs}/types/Message.d.ts +2 -0
- package/dist/cjs/types/{types/Messenger.d.ts → Messenger.d.ts} +0 -0
- package/dist/cjs/types/{types/types.d.ts → types.d.ts} +47 -4
- package/dist/cjs/{types/ui → ui}/Button.d.ts +0 -0
- package/dist/cjs/{types/ui → ui}/Dropdown.d.ts +0 -0
- package/dist/cjs/{types/ui → ui}/Icon.d.ts +0 -0
- package/dist/cjs/{types/ui → ui}/Overlay.d.ts +0 -0
- package/dist/cjs/{types/ui → ui}/Spinner.d.ts +2 -1
- package/dist/cjs/{types/utils → utils}/fileUtilities.d.ts +0 -0
- package/dist/css/weavy-chat.css +1543 -959
- package/dist/css/weavy-messenger.css +1903 -1302
- package/dist/css/weavy.css +1703 -1102
- package/dist/esm/{types/client → client}/WeavyClient.d.ts +0 -0
- package/dist/esm/{types/components → components}/Attachment.d.ts +0 -0
- package/dist/esm/{types/components → components}/Avatar.d.ts +0 -0
- package/dist/{cjs/types → esm}/components/Chat.d.ts +1 -1
- package/dist/esm/{types/components → components}/Conversation.d.ts +0 -0
- package/dist/esm/{types/components → components}/ConversationBadge.d.ts +0 -0
- package/dist/esm/{types/components → components}/ConversationForm.d.ts +0 -0
- package/dist/esm/{types/components → components}/ConversationList.d.ts +0 -0
- package/dist/esm/{types/components → components}/ConversationListItem.d.ts +0 -0
- package/dist/esm/{types/components → components}/File.d.ts +0 -0
- package/dist/esm/{types/components → components}/FileBrowser.d.ts +0 -0
- package/dist/esm/{types/components → components}/Image.d.ts +0 -0
- package/dist/esm/{types/components → components}/Meeting.d.ts +0 -0
- package/dist/esm/{types/components → components}/MeetingCard.d.ts +0 -0
- package/dist/esm/{types/components → components}/Meetings.d.ts +0 -0
- package/dist/esm/{types/components → components}/Message.d.ts +0 -0
- package/dist/{cjs/types → esm}/components/Messages.d.ts +3 -1
- package/dist/esm/{types/components → components}/Messenger.d.ts +0 -0
- package/dist/esm/{types/components → components}/NewConversation.d.ts +0 -0
- package/dist/esm/{types/components → components}/PdfViewer.d.ts +0 -0
- package/dist/esm/{types/components → components}/Presence.d.ts +0 -0
- package/dist/esm/{types/components → components}/Preview.d.ts +0 -0
- package/dist/esm/{types/components → components}/Reactions.d.ts +0 -0
- package/dist/esm/{types/components → components}/SearchUsers.d.ts +0 -0
- package/dist/esm/{types/components → components}/SeenBy.d.ts +0 -0
- package/dist/esm/{types/components → components}/Typing.d.ts +0 -0
- package/dist/esm/{types/contexts → contexts}/MessengerContext.d.ts +0 -0
- package/dist/esm/{types/contexts → contexts}/PreviewContext.d.ts +0 -0
- package/dist/esm/{types/contexts → contexts}/UserContext.d.ts +0 -0
- package/dist/esm/{types/contexts → contexts}/WeavyContext.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useBadge.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useChat.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useConversation.d.ts +0 -0
- package/dist/esm/hooks/useConversations.d.ts +1 -0
- package/dist/esm/{types/hooks → hooks}/useDebounce.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useEvents.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useFileUploader.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMembers.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMessages.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateChat.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateConversation.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateConversationName.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateDeleteReaction.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateExternalBlobs.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateMeeting.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateMembers.d.ts +0 -0
- package/dist/{cjs/types → esm}/hooks/useMutateMessage.d.ts +1 -1
- package/dist/esm/{types/hooks → hooks}/useMutatePinned.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateReaction.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateRead.d.ts +1 -0
- package/dist/esm/{types/hooks → hooks}/useMutateRemoveMembers.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useMutateTyping.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/usePresence.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/usePreview.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useReactions.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useSearchUsers.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useThrottle.d.ts +0 -0
- package/dist/esm/{types/hooks → hooks}/useUser.d.ts +0 -0
- package/dist/esm/{types/index.d.ts → index.d.ts} +0 -0
- package/dist/esm/index.js +6 -28
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/{types/Chat.d.ts → Chat.d.ts} +1 -0
- package/dist/esm/types/{types/Conversation.d.ts → Conversation.d.ts} +0 -0
- package/dist/esm/types/{types/ConversationListItem.d.ts → ConversationListItem.d.ts} +0 -0
- package/dist/{cjs/types → esm}/types/Message.d.ts +2 -0
- package/dist/esm/types/{types/Messenger.d.ts → Messenger.d.ts} +0 -0
- package/dist/esm/types/{types/types.d.ts → types.d.ts} +47 -4
- package/dist/esm/{types/ui → ui}/Button.d.ts +0 -0
- package/dist/esm/{types/ui → ui}/Dropdown.d.ts +0 -0
- package/dist/esm/{types/ui → ui}/Icon.d.ts +0 -0
- package/dist/esm/{types/ui → ui}/Overlay.d.ts +0 -0
- package/dist/esm/{types/ui → ui}/Spinner.d.ts +2 -1
- package/dist/esm/{types/utils → utils}/fileUtilities.d.ts +0 -0
- package/dist/index.d.ts +2 -1
- package/package.json +18 -15
- package/{rollup.config.js → rollup.config.mjs} +10 -3
- package/src/client/WeavyClient.ts +12 -17
- package/src/components/Attachment.tsx +5 -5
- package/src/components/Chat.tsx +6 -5
- package/src/components/Conversation.tsx +26 -20
- package/src/components/ConversationBadge.tsx +7 -5
- package/src/components/ConversationForm.tsx +1 -1
- package/src/components/ConversationList.tsx +59 -11
- package/src/components/ConversationListItem.tsx +94 -58
- package/src/components/FileBrowser.tsx +53 -50
- package/src/components/Image.tsx +2 -1
- package/src/components/MeetingCard.tsx +35 -13
- package/src/components/Meetings.tsx +1 -1
- package/src/components/Message.tsx +41 -42
- package/src/components/Messages.tsx +61 -60
- package/src/components/Messenger.tsx +7 -2
- package/src/components/NewConversation.tsx +1 -1
- package/src/components/PdfViewer.tsx +5 -5
- package/src/components/Preview.tsx +2 -2
- package/src/components/Reactions.tsx +11 -5
- package/src/components/SearchUsers.tsx +19 -9
- package/src/components/SeenBy.tsx +13 -7
- package/src/components/Typing.tsx +11 -12
- package/src/contexts/UserContext.tsx +1 -1
- package/src/contexts/WeavyContext.tsx +3 -3
- package/src/hooks/useConversations.ts +15 -5
- package/src/hooks/useMutateMessage.ts +1 -5
- package/src/hooks/useMutateRead.ts +5 -3
- package/src/hooks/usePresence.ts +2 -3
- package/src/hooks/useReactions.ts +11 -12
- package/src/scss/theme/_alert.scss +61 -63
- package/src/scss/theme/_appbar.scss +105 -30
- package/src/scss/theme/_avatar.scss +23 -28
- package/src/scss/theme/_badge.scss +26 -18
- package/src/scss/theme/_buttons.scss +107 -52
- package/src/scss/theme/_card.scss +102 -4
- package/src/scss/theme/_checkbox.scss +16 -20
- package/src/scss/theme/_code-vscode-dark.scss +3 -3
- package/src/scss/theme/_code-vscode-light.scss +3 -3
- package/src/scss/theme/_code.scss +0 -2
- package/src/scss/theme/_comment-editor-cm.scss +97 -0
- package/src/scss/theme/_comment-editor.scss +129 -0
- package/src/scss/theme/_comments.scss +66 -0
- package/src/scss/theme/_content.scss +33 -5
- package/src/scss/theme/_conversations.scss +19 -78
- package/src/scss/theme/_dropdown.scss +102 -15
- package/src/scss/theme/_embed.scss +135 -0
- package/src/scss/theme/_facepile.scss +11 -0
- package/src/scss/theme/_filebrowser.scss +1 -1
- package/src/scss/theme/_files.scss +76 -47
- package/src/scss/theme/_grid.scss +8 -0
- package/src/scss/theme/_icons.scss +155 -19
- package/src/scss/theme/_image-grid.scss +7 -12
- package/src/scss/theme/_input.scss +160 -0
- package/src/scss/theme/_item.scss +169 -0
- package/src/scss/theme/_list.scss +57 -0
- package/src/scss/theme/_meeting.scss +11 -0
- package/src/scss/theme/_message-editor-cm.scss +95 -0
- package/src/scss/theme/_message-editor.scss +65 -19
- package/src/scss/theme/_messages.scss +51 -105
- package/src/scss/theme/_meta.scss +12 -0
- package/src/scss/theme/_overlays.scss +31 -76
- package/src/scss/theme/_pager.scss +5 -1
- package/src/scss/theme/_pane.scss +13 -2
- package/src/scss/theme/_panels.scss +33 -28
- package/src/scss/theme/_picker-list.scss +5 -3
- package/src/scss/theme/_placeholder.scss +19 -0
- package/src/scss/theme/_poll.scss +49 -0
- package/src/scss/theme/_post-editor-cm.scss +100 -0
- package/src/scss/theme/_post-editor.scss +127 -0
- package/src/scss/theme/_post.scss +83 -0
- package/src/scss/theme/_preview-code.scss +11 -2
- package/src/scss/theme/_preview-embed.scss +8 -2
- package/src/scss/theme/_preview-image.scss +8 -26
- package/src/scss/theme/_preview-media.scss +1 -0
- package/src/scss/theme/_preview-pdf.scss +10 -15
- package/src/scss/theme/_preview.scss +57 -79
- package/src/scss/theme/_reactions.scss +48 -17
- package/src/scss/theme/_sheet.scss +59 -0
- package/src/scss/theme/_sidebar.scss +86 -0
- package/src/scss/theme/_spinner.scss +11 -7
- package/src/scss/theme/_tab.scss +72 -0
- package/src/scss/theme/_tables.scss +70 -23
- package/src/scss/theme/_toasts.scss +56 -26
- package/src/scss/theme/_type.scss +41 -0
- package/src/scss/theme/{mixins → base}/_backdrop.scss +0 -0
- package/src/scss/theme/{bootstrap/mixins → base}/_breakpoints.scss +9 -0
- package/src/scss/theme/base/_colors.scss +315 -0
- package/src/scss/theme/base/_md.scss +19 -0
- package/src/scss/theme/base/_palette.scss +130 -0
- package/src/scss/theme/{mixins → base}/_position.scss +5 -5
- package/src/scss/theme/base/_reboot.scss +51 -0
- package/src/scss/theme/base/_scroll.scss +180 -0
- package/src/scss/theme/base/_svg.scss +49 -0
- package/src/scss/theme/base/_text.scss +23 -0
- package/src/scss/theme/base/_vars.scss +203 -0
- package/src/scss/theme/{fonts → base/fonts}/_fontmapping-roboto.scss +0 -0
- package/src/scss/theme/{fonts → base/fonts}/_fontmapping-segoe-ui.scss +0 -0
- package/src/scss/theme/base/fonts/_index.scss +2 -0
- package/src/scss/weavy-chat.scss +10 -4
- package/src/scss/weavy-messenger.scss +37 -21
- package/src/types/Chat.ts +2 -1
- package/src/types/Message.ts +3 -1
- package/src/types/types.ts +56 -5
- package/src/ui/Icon.tsx +1 -1
- package/src/ui/Spinner.tsx +3 -2
- package/src/utils/infiniteScroll.js +12 -3
- package/src/utils/postal-parent.js +398 -0
- package/src/utils/promise.js +187 -0
- package/src/utils/scrollbarDetection.js +71 -9
- package/src/utils/utils.js +547 -0
- package/dist/cjs/types/hooks/useConversations.d.ts +0 -1
- package/dist/esm/types/hooks/useConversations.d.ts +0 -1
- package/src/scss/theme/_attachments.scss +0 -74
- package/src/scss/theme/_cm-editor.scss +0 -42
- package/src/scss/theme/_colors.scss +0 -520
- package/src/scss/theme/_config.scss +0 -6
- package/src/scss/theme/_inputs.scss +0 -28
- package/src/scss/theme/_nav.scss +0 -52
- package/src/scss/theme/_palette.scss +0 -165
- package/src/scss/theme/_preview-icon.scss +0 -41
- package/src/scss/theme/_reboot.scss +0 -41
- package/src/scss/theme/_root.scss +0 -2
- package/src/scss/theme/_scroll.scss +0 -55
- package/src/scss/theme/_search.scss +0 -68
- package/src/scss/theme/_turbo.scss +0 -17
- package/src/scss/theme/_variables.scss +0 -139
- package/src/scss/theme/bootstrap/_accordion.scss +0 -146
- package/src/scss/theme/bootstrap/_alert.scss +0 -71
- package/src/scss/theme/bootstrap/_badge.scss +0 -38
- package/src/scss/theme/bootstrap/_breadcrumb.scss +0 -40
- package/src/scss/theme/bootstrap/_button-group.scss +0 -142
- package/src/scss/theme/bootstrap/_buttons.scss +0 -186
- package/src/scss/theme/bootstrap/_card.scss +0 -234
- package/src/scss/theme/bootstrap/_carousel.scss +0 -229
- package/src/scss/theme/bootstrap/_close.scss +0 -40
- package/src/scss/theme/bootstrap/_containers.scss +0 -41
- package/src/scss/theme/bootstrap/_dropdown.scss +0 -248
- package/src/scss/theme/bootstrap/_forms.scss +0 -9
- package/src/scss/theme/bootstrap/_functions.scss +0 -302
- package/src/scss/theme/bootstrap/_grid.scss +0 -33
- package/src/scss/theme/bootstrap/_helpers.scss +0 -10
- package/src/scss/theme/bootstrap/_images.scss +0 -42
- package/src/scss/theme/bootstrap/_list-group.scss +0 -191
- package/src/scss/theme/bootstrap/_maps.scss +0 -54
- package/src/scss/theme/bootstrap/_mixins.scss +0 -43
- package/src/scss/theme/bootstrap/_modal.scss +0 -237
- package/src/scss/theme/bootstrap/_nav.scss +0 -172
- package/src/scss/theme/bootstrap/_navbar.scss +0 -276
- package/src/scss/theme/bootstrap/_offcanvas.scss +0 -143
- package/src/scss/theme/bootstrap/_pagination.scss +0 -109
- package/src/scss/theme/bootstrap/_placeholders.scss +0 -51
- package/src/scss/theme/bootstrap/_popover.scss +0 -196
- package/src/scss/theme/bootstrap/_progress.scss +0 -59
- package/src/scss/theme/bootstrap/_reboot.scss +0 -610
- package/src/scss/theme/bootstrap/_root.scss +0 -73
- package/src/scss/theme/bootstrap/_spinners.scss +0 -85
- package/src/scss/theme/bootstrap/_tables.scss +0 -164
- package/src/scss/theme/bootstrap/_toasts.scss +0 -70
- package/src/scss/theme/bootstrap/_tooltip.scss +0 -120
- package/src/scss/theme/bootstrap/_transitions.scss +0 -27
- package/src/scss/theme/bootstrap/_type.scss +0 -106
- package/src/scss/theme/bootstrap/_utilities.scss +0 -647
- package/src/scss/theme/bootstrap/_variables.scss +0 -1633
- package/src/scss/theme/bootstrap/forms/_floating-labels.scss +0 -74
- package/src/scss/theme/bootstrap/forms/_form-check.scss +0 -175
- package/src/scss/theme/bootstrap/forms/_form-control.scss +0 -194
- package/src/scss/theme/bootstrap/forms/_form-range.scss +0 -91
- package/src/scss/theme/bootstrap/forms/_form-select.scss +0 -71
- package/src/scss/theme/bootstrap/forms/_form-text.scss +0 -11
- package/src/scss/theme/bootstrap/forms/_input-group.scss +0 -129
- package/src/scss/theme/bootstrap/forms/_labels.scss +0 -36
- package/src/scss/theme/bootstrap/forms/_validation.scss +0 -12
- package/src/scss/theme/bootstrap/helpers/_clearfix.scss +0 -3
- package/src/scss/theme/bootstrap/helpers/_color-bg.scss +0 -10
- package/src/scss/theme/bootstrap/helpers/_colored-links.scss +0 -12
- package/src/scss/theme/bootstrap/helpers/_position.scss +0 -36
- package/src/scss/theme/bootstrap/helpers/_ratio.scss +0 -26
- package/src/scss/theme/bootstrap/helpers/_stacks.scss +0 -15
- package/src/scss/theme/bootstrap/helpers/_stretched-link.scss +0 -15
- package/src/scss/theme/bootstrap/helpers/_text-truncation.scss +0 -7
- package/src/scss/theme/bootstrap/helpers/_visually-hidden.scss +0 -8
- package/src/scss/theme/bootstrap/helpers/_vr.scss +0 -8
- package/src/scss/theme/bootstrap/mixins/_alert.scss +0 -15
- package/src/scss/theme/bootstrap/mixins/_backdrop.scss +0 -14
- package/src/scss/theme/bootstrap/mixins/_banner.scss +0 -9
- package/src/scss/theme/bootstrap/mixins/_border-radius.scss +0 -78
- package/src/scss/theme/bootstrap/mixins/_box-shadow.scss +0 -18
- package/src/scss/theme/bootstrap/mixins/_buttons.scss +0 -70
- package/src/scss/theme/bootstrap/mixins/_caret.scss +0 -64
- package/src/scss/theme/bootstrap/mixins/_clearfix.scss +0 -9
- package/src/scss/theme/bootstrap/mixins/_color-scheme.scss +0 -7
- package/src/scss/theme/bootstrap/mixins/_container.scss +0 -11
- package/src/scss/theme/bootstrap/mixins/_deprecate.scss +0 -10
- package/src/scss/theme/bootstrap/mixins/_forms.scss +0 -152
- package/src/scss/theme/bootstrap/mixins/_gradients.scss +0 -47
- package/src/scss/theme/bootstrap/mixins/_grid.scss +0 -151
- package/src/scss/theme/bootstrap/mixins/_image.scss +0 -16
- package/src/scss/theme/bootstrap/mixins/_list-group.scss +0 -24
- package/src/scss/theme/bootstrap/mixins/_lists.scss +0 -7
- package/src/scss/theme/bootstrap/mixins/_pagination.scss +0 -10
- package/src/scss/theme/bootstrap/mixins/_reset-text.scss +0 -17
- package/src/scss/theme/bootstrap/mixins/_resize.scss +0 -6
- package/src/scss/theme/bootstrap/mixins/_table-variants.scss +0 -24
- package/src/scss/theme/bootstrap/mixins/_text-truncate.scss +0 -8
- package/src/scss/theme/bootstrap/mixins/_transition.scss +0 -26
- package/src/scss/theme/bootstrap/mixins/_utilities.scss +0 -97
- package/src/scss/theme/bootstrap/mixins/_visually-hidden.scss +0 -29
- package/src/scss/theme/bootstrap/utilities/_api.scss +0 -47
- package/src/scss/theme/bootstrap/vendor/_rfs.scss +0 -354
- package/src/scss/theme/bs/_badge.scss +0 -20
- package/src/scss/theme/bs/_buttons.scss +0 -185
- package/src/scss/theme/bs/_dropdown.scss +0 -86
- package/src/scss/theme/bs/_forms.scss +0 -161
- package/src/scss/theme/bs/_list-group.scss +0 -73
- package/src/scss/theme/bs/_tables.scss +0 -46
- package/src/scss/theme/fonts/_index.scss +0 -2
- package/src/scss/theme/mixins/_palette.scss +0 -165
- package/src/scss/theme/mixins/_scrollbar.scss +0 -110
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
// This mixin uses an `if()` technique to be compatible with Dart Sass
|
|
2
|
-
// See https://github.com/sass/sass/issues/1873#issuecomment-152293725 for more details
|
|
3
|
-
|
|
4
|
-
// scss-docs-start form-validation-mixins
|
|
5
|
-
@mixin form-validation-state-selector($state) {
|
|
6
|
-
@if ($state == "valid" or $state == "invalid") {
|
|
7
|
-
.was-validated #{if(&, "&", "")}:#{$state},
|
|
8
|
-
#{if(&, "&", "")}.is-#{$state} {
|
|
9
|
-
@content;
|
|
10
|
-
}
|
|
11
|
-
} @else {
|
|
12
|
-
#{if(&, "&", "")}.is-#{$state} {
|
|
13
|
-
@content;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
@mixin form-validation-state(
|
|
19
|
-
$state,
|
|
20
|
-
$color,
|
|
21
|
-
$icon,
|
|
22
|
-
$tooltip-color: color-contrast($color),
|
|
23
|
-
$tooltip-bg-color: rgba($color, $form-feedback-tooltip-opacity),
|
|
24
|
-
$focus-box-shadow: 0 0 $input-btn-focus-blur $input-focus-width rgba($color, $input-btn-focus-color-opacity)
|
|
25
|
-
) {
|
|
26
|
-
.#{$state}-feedback {
|
|
27
|
-
display: none;
|
|
28
|
-
width: 100%;
|
|
29
|
-
margin-top: $form-feedback-margin-top;
|
|
30
|
-
@include font-size($form-feedback-font-size);
|
|
31
|
-
font-style: $form-feedback-font-style;
|
|
32
|
-
color: $color;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.#{$state}-tooltip {
|
|
36
|
-
position: absolute;
|
|
37
|
-
top: 100%;
|
|
38
|
-
z-index: 5;
|
|
39
|
-
display: none;
|
|
40
|
-
max-width: 100%; // Contain to parent when possible
|
|
41
|
-
padding: $form-feedback-tooltip-padding-y $form-feedback-tooltip-padding-x;
|
|
42
|
-
margin-top: .1rem;
|
|
43
|
-
@include font-size($form-feedback-tooltip-font-size);
|
|
44
|
-
line-height: $form-feedback-tooltip-line-height;
|
|
45
|
-
color: $tooltip-color;
|
|
46
|
-
background-color: $tooltip-bg-color;
|
|
47
|
-
@include border-radius($form-feedback-tooltip-border-radius);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
@include form-validation-state-selector($state) {
|
|
51
|
-
~ .#{$state}-feedback,
|
|
52
|
-
~ .#{$state}-tooltip {
|
|
53
|
-
display: block;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.form-control {
|
|
58
|
-
@include form-validation-state-selector($state) {
|
|
59
|
-
border-color: $color;
|
|
60
|
-
|
|
61
|
-
@if $enable-validation-icons {
|
|
62
|
-
padding-right: $input-height-inner;
|
|
63
|
-
background-image: escape-svg($icon);
|
|
64
|
-
background-repeat: no-repeat;
|
|
65
|
-
background-position: right $input-height-inner-quarter center;
|
|
66
|
-
background-size: $input-height-inner-half $input-height-inner-half;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
&:focus {
|
|
70
|
-
border-color: $color;
|
|
71
|
-
box-shadow: $focus-box-shadow;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
// stylelint-disable-next-line selector-no-qualifying-type
|
|
77
|
-
textarea.form-control {
|
|
78
|
-
@include form-validation-state-selector($state) {
|
|
79
|
-
@if $enable-validation-icons {
|
|
80
|
-
padding-right: $input-height-inner;
|
|
81
|
-
background-position: top $input-height-inner-quarter right $input-height-inner-quarter;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.form-select {
|
|
87
|
-
@include form-validation-state-selector($state) {
|
|
88
|
-
border-color: $color;
|
|
89
|
-
|
|
90
|
-
@if $enable-validation-icons {
|
|
91
|
-
&:not([multiple]):not([size]),
|
|
92
|
-
&:not([multiple])[size="1"] {
|
|
93
|
-
padding-right: $form-select-feedback-icon-padding-end;
|
|
94
|
-
background-image: escape-svg($form-select-indicator), escape-svg($icon);
|
|
95
|
-
background-position: $form-select-bg-position, $form-select-feedback-icon-position;
|
|
96
|
-
background-size: $form-select-bg-size, $form-select-feedback-icon-size;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
&:focus {
|
|
101
|
-
border-color: $color;
|
|
102
|
-
box-shadow: $focus-box-shadow;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.form-control-color {
|
|
108
|
-
@include form-validation-state-selector($state) {
|
|
109
|
-
@if $enable-validation-icons {
|
|
110
|
-
width: add($form-color-width, $input-height-inner);
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.form-check-input {
|
|
116
|
-
@include form-validation-state-selector($state) {
|
|
117
|
-
border-color: $color;
|
|
118
|
-
|
|
119
|
-
&:checked {
|
|
120
|
-
background-color: $color;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
&:focus {
|
|
124
|
-
box-shadow: $focus-box-shadow;
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
~ .form-check-label {
|
|
128
|
-
color: $color;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
.form-check-inline .form-check-input {
|
|
133
|
-
~ .#{$state}-feedback {
|
|
134
|
-
margin-left: .5em;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.input-group .form-control,
|
|
139
|
-
.input-group .form-select {
|
|
140
|
-
@include form-validation-state-selector($state) {
|
|
141
|
-
@if $state == "valid" {
|
|
142
|
-
z-index: 1;
|
|
143
|
-
} @else if $state == "invalid" {
|
|
144
|
-
z-index: 2;
|
|
145
|
-
}
|
|
146
|
-
&:focus {
|
|
147
|
-
z-index: 3;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
// scss-docs-end form-validation-mixins
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
// Gradients
|
|
2
|
-
|
|
3
|
-
// scss-docs-start gradient-bg-mixin
|
|
4
|
-
@mixin gradient-bg($color: null) {
|
|
5
|
-
background-color: $color;
|
|
6
|
-
|
|
7
|
-
@if $enable-gradients {
|
|
8
|
-
background-image: var(--#{$prefix}gradient);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
// scss-docs-end gradient-bg-mixin
|
|
12
|
-
|
|
13
|
-
// scss-docs-start gradient-mixins
|
|
14
|
-
// Horizontal gradient, from left to right
|
|
15
|
-
//
|
|
16
|
-
// Creates two color stops, start and end, by specifying a color and position for each color stop.
|
|
17
|
-
@mixin gradient-x($start-color: $gray-700, $end-color: $gray-800, $start-percent: 0%, $end-percent: 100%) {
|
|
18
|
-
background-image: linear-gradient(to right, $start-color $start-percent, $end-color $end-percent);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
// Vertical gradient, from top to bottom
|
|
22
|
-
//
|
|
23
|
-
// Creates two color stops, start and end, by specifying a color and position for each color stop.
|
|
24
|
-
@mixin gradient-y($start-color: $gray-700, $end-color: $gray-800, $start-percent: null, $end-percent: null) {
|
|
25
|
-
background-image: linear-gradient(to bottom, $start-color $start-percent, $end-color $end-percent);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
@mixin gradient-directional($start-color: $gray-700, $end-color: $gray-800, $deg: 45deg) {
|
|
29
|
-
background-image: linear-gradient($deg, $start-color, $end-color);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@mixin gradient-x-three-colors($start-color: $blue, $mid-color: $purple, $color-stop: 50%, $end-color: $red) {
|
|
33
|
-
background-image: linear-gradient(to right, $start-color, $mid-color $color-stop, $end-color);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
@mixin gradient-y-three-colors($start-color: $blue, $mid-color: $purple, $color-stop: 50%, $end-color: $red) {
|
|
37
|
-
background-image: linear-gradient($start-color, $mid-color $color-stop, $end-color);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
@mixin gradient-radial($inner-color: $gray-700, $outer-color: $gray-800) {
|
|
41
|
-
background-image: radial-gradient(circle, $inner-color, $outer-color);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
@mixin gradient-striped($color: rgba($white, .15), $angle: 45deg) {
|
|
45
|
-
background-image: linear-gradient($angle, $color 25%, transparent 25%, transparent 50%, $color 50%, $color 75%, transparent 75%, transparent);
|
|
46
|
-
}
|
|
47
|
-
// scss-docs-end gradient-mixins
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
// Grid system
|
|
2
|
-
//
|
|
3
|
-
// Generate semantic grid columns with these mixins.
|
|
4
|
-
|
|
5
|
-
@mixin make-row($gutter: $grid-gutter-width) {
|
|
6
|
-
--#{$prefix}gutter-x: #{$gutter};
|
|
7
|
-
--#{$prefix}gutter-y: 0;
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-wrap: wrap;
|
|
10
|
-
// TODO: Revisit calc order after https://github.com/react-bootstrap/react-bootstrap/issues/6039 is fixed
|
|
11
|
-
margin-top: calc(-1 * var(--#{$prefix}gutter-y)); // stylelint-disable-line function-disallowed-list
|
|
12
|
-
margin-right: calc(-.5 * var(--#{$prefix}gutter-x)); // stylelint-disable-line function-disallowed-list
|
|
13
|
-
margin-left: calc(-.5 * var(--#{$prefix}gutter-x)); // stylelint-disable-line function-disallowed-list
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
@mixin make-col-ready() {
|
|
17
|
-
// Add box sizing if only the grid is loaded
|
|
18
|
-
box-sizing: if(variable-exists(include-column-box-sizing) and $include-column-box-sizing, border-box, null);
|
|
19
|
-
// Prevent columns from becoming too narrow when at smaller grid tiers by
|
|
20
|
-
// always setting `width: 100%;`. This works because we set the width
|
|
21
|
-
// later on to override this initial width.
|
|
22
|
-
flex-shrink: 0;
|
|
23
|
-
width: 100%;
|
|
24
|
-
max-width: 100%; // Prevent `.col-auto`, `.col` (& responsive variants) from breaking out the grid
|
|
25
|
-
padding-right: calc(var(--#{$prefix}gutter-x) * .5); // stylelint-disable-line function-disallowed-list
|
|
26
|
-
padding-left: calc(var(--#{$prefix}gutter-x) * .5); // stylelint-disable-line function-disallowed-list
|
|
27
|
-
margin-top: var(--#{$prefix}gutter-y);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
@mixin make-col($size: false, $columns: $grid-columns) {
|
|
31
|
-
@if $size {
|
|
32
|
-
flex: 0 0 auto;
|
|
33
|
-
width: percentage(divide($size, $columns));
|
|
34
|
-
|
|
35
|
-
} @else {
|
|
36
|
-
flex: 1 1 0;
|
|
37
|
-
max-width: 100%;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
@mixin make-col-auto() {
|
|
42
|
-
flex: 0 0 auto;
|
|
43
|
-
width: auto;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
@mixin make-col-offset($size, $columns: $grid-columns) {
|
|
47
|
-
$num: divide($size, $columns);
|
|
48
|
-
margin-left: if($num == 0, 0, percentage($num));
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
// Row columns
|
|
52
|
-
//
|
|
53
|
-
// Specify on a parent element(e.g., .row) to force immediate children into NN
|
|
54
|
-
// number of columns. Supports wrapping to new lines, but does not do a Masonry
|
|
55
|
-
// style grid.
|
|
56
|
-
@mixin row-cols($count) {
|
|
57
|
-
> * {
|
|
58
|
-
flex: 0 0 auto;
|
|
59
|
-
width: divide(100%, $count);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
// Framework grid generation
|
|
64
|
-
//
|
|
65
|
-
// Used only by Bootstrap to generate the correct number of grid classes given
|
|
66
|
-
// any value of `$grid-columns`.
|
|
67
|
-
|
|
68
|
-
@mixin make-grid-columns($columns: $grid-columns, $gutter: $grid-gutter-width, $breakpoints: $grid-breakpoints) {
|
|
69
|
-
@each $breakpoint in map-keys($breakpoints) {
|
|
70
|
-
$infix: breakpoint-infix($breakpoint, $breakpoints);
|
|
71
|
-
|
|
72
|
-
@include media-breakpoint-up($breakpoint, $breakpoints) {
|
|
73
|
-
// Provide basic `.col-{bp}` classes for equal-width flexbox columns
|
|
74
|
-
.col#{$infix} {
|
|
75
|
-
flex: 1 0 0%; // Flexbugs #4: https://github.com/philipwalton/flexbugs#flexbug-4
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.row-cols#{$infix}-auto > * {
|
|
79
|
-
@include make-col-auto();
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
@if $grid-row-columns > 0 {
|
|
83
|
-
@for $i from 1 through $grid-row-columns {
|
|
84
|
-
.row-cols#{$infix}-#{$i} {
|
|
85
|
-
@include row-cols($i);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.col#{$infix}-auto {
|
|
91
|
-
@include make-col-auto();
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
@if $columns > 0 {
|
|
95
|
-
@for $i from 1 through $columns {
|
|
96
|
-
.col#{$infix}-#{$i} {
|
|
97
|
-
@include make-col($i, $columns);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
// `$columns - 1` because offsetting by the width of an entire row isn't possible
|
|
102
|
-
@for $i from 0 through ($columns - 1) {
|
|
103
|
-
@if not ($infix == "" and $i == 0) { // Avoid emitting useless .offset-0
|
|
104
|
-
.offset#{$infix}-#{$i} {
|
|
105
|
-
@include make-col-offset($i, $columns);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
// Gutters
|
|
112
|
-
//
|
|
113
|
-
// Make use of `.g-*`, `.gx-*` or `.gy-*` utilities to change spacing between the columns.
|
|
114
|
-
@each $key, $value in $gutters {
|
|
115
|
-
.g#{$infix}-#{$key},
|
|
116
|
-
.gx#{$infix}-#{$key} {
|
|
117
|
-
--#{$prefix}gutter-x: #{$value};
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.g#{$infix}-#{$key},
|
|
121
|
-
.gy#{$infix}-#{$key} {
|
|
122
|
-
--#{$prefix}gutter-y: #{$value};
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
@mixin make-cssgrid($columns: $grid-columns, $breakpoints: $grid-breakpoints) {
|
|
130
|
-
@each $breakpoint in map-keys($breakpoints) {
|
|
131
|
-
$infix: breakpoint-infix($breakpoint, $breakpoints);
|
|
132
|
-
|
|
133
|
-
@include media-breakpoint-up($breakpoint, $breakpoints) {
|
|
134
|
-
@if $columns > 0 {
|
|
135
|
-
@for $i from 1 through $columns {
|
|
136
|
-
.g-col#{$infix}-#{$i} {
|
|
137
|
-
grid-column: auto / span $i;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
// Start with `1` because `0` is and invalid value.
|
|
142
|
-
// Ends with `$columns - 1` because offsetting by the width of an entire row isn't possible.
|
|
143
|
-
@for $i from 1 through ($columns - 1) {
|
|
144
|
-
.g-start#{$infix}-#{$i} {
|
|
145
|
-
grid-column-start: $i;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// Image Mixins
|
|
2
|
-
// - Responsive image
|
|
3
|
-
// - Retina image
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
// Responsive image
|
|
7
|
-
//
|
|
8
|
-
// Keep images from scaling beyond the width of their parents.
|
|
9
|
-
|
|
10
|
-
@mixin img-fluid {
|
|
11
|
-
// Part 1: Set a maximum relative to the parent
|
|
12
|
-
max-width: 100%;
|
|
13
|
-
// Part 2: Override the height to auto, otherwise images will be stretched
|
|
14
|
-
// when setting a width and height attribute on the img element.
|
|
15
|
-
height: auto;
|
|
16
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
// List Groups
|
|
2
|
-
|
|
3
|
-
// scss-docs-start list-group-mixin
|
|
4
|
-
@mixin list-group-item-variant($state, $background, $color) {
|
|
5
|
-
.list-group-item-#{$state} {
|
|
6
|
-
color: $color;
|
|
7
|
-
background-color: $background;
|
|
8
|
-
|
|
9
|
-
&.list-group-item-action {
|
|
10
|
-
&:hover,
|
|
11
|
-
&:focus {
|
|
12
|
-
color: $color;
|
|
13
|
-
background-color: shade-color($background, 10%);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
&.active {
|
|
17
|
-
color: $white;
|
|
18
|
-
background-color: $color;
|
|
19
|
-
border-color: $color;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
// scss-docs-end list-group-mixin
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// Pagination
|
|
2
|
-
|
|
3
|
-
// scss-docs-start pagination-mixin
|
|
4
|
-
@mixin pagination-size($padding-y, $padding-x, $font-size, $border-radius) {
|
|
5
|
-
--#{$prefix}pagination-padding-x: #{$padding-x};
|
|
6
|
-
--#{$prefix}pagination-padding-y: #{$padding-y};
|
|
7
|
-
@include rfs($font-size, --#{$prefix}pagination-font-size);
|
|
8
|
-
--#{$prefix}pagination-border-radius: #{$border-radius};
|
|
9
|
-
}
|
|
10
|
-
// scss-docs-end pagination-mixin
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
@mixin reset-text {
|
|
2
|
-
font-family: $font-family-base;
|
|
3
|
-
// We deliberately do NOT reset font-size or overflow-wrap / word-wrap.
|
|
4
|
-
font-style: normal;
|
|
5
|
-
font-weight: $font-weight-normal;
|
|
6
|
-
line-height: $line-height-base;
|
|
7
|
-
text-align: left; // Fallback for where `start` is not supported
|
|
8
|
-
text-align: start;
|
|
9
|
-
text-decoration: none;
|
|
10
|
-
text-shadow: none;
|
|
11
|
-
text-transform: none;
|
|
12
|
-
letter-spacing: normal;
|
|
13
|
-
word-break: normal;
|
|
14
|
-
white-space: normal;
|
|
15
|
-
word-spacing: normal;
|
|
16
|
-
line-break: auto;
|
|
17
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
// scss-docs-start table-variant
|
|
2
|
-
@mixin table-variant($state, $background) {
|
|
3
|
-
.table-#{$state} {
|
|
4
|
-
$color: color-contrast(opaque($body-bg, $background));
|
|
5
|
-
$hover-bg: mix($color, $background, percentage($table-hover-bg-factor));
|
|
6
|
-
$striped-bg: mix($color, $background, percentage($table-striped-bg-factor));
|
|
7
|
-
$active-bg: mix($color, $background, percentage($table-active-bg-factor));
|
|
8
|
-
$border-color: mix($color, $background, percentage($table-border-factor));
|
|
9
|
-
|
|
10
|
-
--#{$prefix}table-color: #{$color};
|
|
11
|
-
--#{$prefix}table-bg: #{$background};
|
|
12
|
-
--#{$prefix}table-border-color: #{$border-color};
|
|
13
|
-
--#{$prefix}table-striped-bg: #{$striped-bg};
|
|
14
|
-
--#{$prefix}table-striped-color: #{color-contrast($striped-bg)};
|
|
15
|
-
--#{$prefix}table-active-bg: #{$active-bg};
|
|
16
|
-
--#{$prefix}table-active-color: #{color-contrast($active-bg)};
|
|
17
|
-
--#{$prefix}table-hover-bg: #{$hover-bg};
|
|
18
|
-
--#{$prefix}table-hover-color: #{color-contrast($hover-bg)};
|
|
19
|
-
|
|
20
|
-
color: var(--#{$prefix}table-color);
|
|
21
|
-
border-color: var(--#{$prefix}table-border-color);
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
// scss-docs-end table-variant
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// stylelint-disable property-disallowed-list
|
|
2
|
-
@mixin transition($transition...) {
|
|
3
|
-
@if length($transition) == 0 {
|
|
4
|
-
$transition: $transition-base;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
@if length($transition) > 1 {
|
|
8
|
-
@each $value in $transition {
|
|
9
|
-
@if $value == null or $value == none {
|
|
10
|
-
@warn "The keyword 'none' or 'null' must be used as a single argument.";
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
@if $enable-transitions {
|
|
16
|
-
@if nth($transition, 1) != null {
|
|
17
|
-
transition: $transition;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
@if $enable-reduced-motion and nth($transition, 1) != null and nth($transition, 1) != none {
|
|
21
|
-
@media (prefers-reduced-motion: reduce) {
|
|
22
|
-
transition: none;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
// Utility generator
|
|
2
|
-
// Used to generate utilities & print utilities
|
|
3
|
-
@mixin generate-utility($utility, $infix, $is-rfs-media-query: false) {
|
|
4
|
-
$values: map-get($utility, values);
|
|
5
|
-
|
|
6
|
-
// If the values are a list or string, convert it into a map
|
|
7
|
-
@if type-of($values) == "string" or type-of(nth($values, 1)) != "list" {
|
|
8
|
-
$values: zip($values, $values);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@each $key, $value in $values {
|
|
12
|
-
$properties: map-get($utility, property);
|
|
13
|
-
|
|
14
|
-
// Multiple properties are possible, for example with vertical or horizontal margins or paddings
|
|
15
|
-
@if type-of($properties) == "string" {
|
|
16
|
-
$properties: append((), $properties);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
// Use custom class if present
|
|
20
|
-
$property-class: if(map-has-key($utility, class), map-get($utility, class), nth($properties, 1));
|
|
21
|
-
$property-class: if($property-class == null, "", $property-class);
|
|
22
|
-
|
|
23
|
-
// Use custom CSS variable name if present, otherwise default to `class`
|
|
24
|
-
$css-variable-name: if(map-has-key($utility, css-variable-name), map-get($utility, css-variable-name), map-get($utility, class));
|
|
25
|
-
|
|
26
|
-
// State params to generate pseudo-classes
|
|
27
|
-
$state: if(map-has-key($utility, state), map-get($utility, state), ());
|
|
28
|
-
|
|
29
|
-
$infix: if($property-class == "" and str-slice($infix, 1, 1) == "-", str-slice($infix, 2), $infix);
|
|
30
|
-
|
|
31
|
-
// Don't prefix if value key is null (eg. with shadow class)
|
|
32
|
-
$property-class-modifier: if($key, if($property-class == "" and $infix == "", "", "-") + $key, "");
|
|
33
|
-
|
|
34
|
-
@if map-get($utility, rfs) {
|
|
35
|
-
// Inside the media query
|
|
36
|
-
@if $is-rfs-media-query {
|
|
37
|
-
$val: rfs-value($value);
|
|
38
|
-
|
|
39
|
-
// Do not render anything if fluid and non fluid values are the same
|
|
40
|
-
$value: if($val == rfs-fluid-value($value), null, $val);
|
|
41
|
-
}
|
|
42
|
-
@else {
|
|
43
|
-
$value: rfs-fluid-value($value);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
$is-css-var: map-get($utility, css-var);
|
|
48
|
-
$is-local-vars: map-get($utility, local-vars);
|
|
49
|
-
$is-rtl: map-get($utility, rtl);
|
|
50
|
-
|
|
51
|
-
@if $value != null {
|
|
52
|
-
@if $is-rtl == false {
|
|
53
|
-
/* rtl:begin:remove */
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
@if $is-css-var {
|
|
57
|
-
.#{$property-class + $infix + $property-class-modifier} {
|
|
58
|
-
--#{$prefix}#{$css-variable-name}: #{$value};
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
@each $pseudo in $state {
|
|
62
|
-
.#{$property-class + $infix + $property-class-modifier}-#{$pseudo}:#{$pseudo} {
|
|
63
|
-
--#{$prefix}#{$css-variable-name}: #{$value};
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
} @else {
|
|
67
|
-
.#{$property-class + $infix + $property-class-modifier} {
|
|
68
|
-
@each $property in $properties {
|
|
69
|
-
@if $is-local-vars {
|
|
70
|
-
@each $local-var, $variable in $is-local-vars {
|
|
71
|
-
--#{$prefix}#{$local-var}: #{$variable};
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
#{$property}: $value if($enable-important-utilities, !important, null);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
@each $pseudo in $state {
|
|
79
|
-
.#{$property-class + $infix + $property-class-modifier}-#{$pseudo}:#{$pseudo} {
|
|
80
|
-
@each $property in $properties {
|
|
81
|
-
@if $is-local-vars {
|
|
82
|
-
@each $local-var, $variable in $is-local-vars {
|
|
83
|
-
--#{$prefix}#{$local-var}: #{$variable};
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
#{$property}: $value if($enable-important-utilities, !important, null);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
@if $is-rtl == false {
|
|
93
|
-
/* rtl:end:remove */
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
// stylelint-disable declaration-no-important
|
|
2
|
-
|
|
3
|
-
// Hide content visually while keeping it accessible to assistive technologies
|
|
4
|
-
//
|
|
5
|
-
// See: https://www.a11yproject.com/posts/2013-01-11-how-to-hide-content/
|
|
6
|
-
// See: https://kittygiraudel.com/2016/10/13/css-hide-and-seek/
|
|
7
|
-
|
|
8
|
-
@mixin visually-hidden() {
|
|
9
|
-
position: absolute !important;
|
|
10
|
-
width: 1px !important;
|
|
11
|
-
height: 1px !important;
|
|
12
|
-
padding: 0 !important;
|
|
13
|
-
margin: -1px !important; // Fix for https://github.com/twbs/bootstrap/issues/25686
|
|
14
|
-
overflow: hidden !important;
|
|
15
|
-
clip: rect(0, 0, 0, 0) !important;
|
|
16
|
-
white-space: nowrap !important;
|
|
17
|
-
border: 0 !important;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// Use to only display content when it's focused, or one of its child elements is focused
|
|
21
|
-
// (i.e. when focus is within the element/container that the class was applied to)
|
|
22
|
-
//
|
|
23
|
-
// Useful for "Skip to main content" links; see https://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1
|
|
24
|
-
|
|
25
|
-
@mixin visually-hidden-focusable() {
|
|
26
|
-
&:not(:focus):not(:focus-within) {
|
|
27
|
-
@include visually-hidden();
|
|
28
|
-
}
|
|
29
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
// Loop over each breakpoint
|
|
2
|
-
@each $breakpoint in map-keys($grid-breakpoints) {
|
|
3
|
-
|
|
4
|
-
// Generate media query if needed
|
|
5
|
-
@include media-breakpoint-up($breakpoint) {
|
|
6
|
-
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
|
7
|
-
|
|
8
|
-
// Loop over each utility property
|
|
9
|
-
@each $key, $utility in $utilities {
|
|
10
|
-
// The utility can be disabled with `false`, thus check if the utility is a map first
|
|
11
|
-
// Only proceed if responsive media queries are enabled or if it's the base media query
|
|
12
|
-
@if type-of($utility) == "map" and (map-get($utility, responsive) or $infix == "") {
|
|
13
|
-
@include generate-utility($utility, $infix);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
// RFS rescaling
|
|
20
|
-
@media (min-width: $rfs-mq-value) {
|
|
21
|
-
@each $breakpoint in map-keys($grid-breakpoints) {
|
|
22
|
-
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
|
23
|
-
|
|
24
|
-
@if (map-get($grid-breakpoints, $breakpoint) < $rfs-breakpoint) {
|
|
25
|
-
// Loop over each utility property
|
|
26
|
-
@each $key, $utility in $utilities {
|
|
27
|
-
// The utility can be disabled with `false`, thus check if the utility is a map first
|
|
28
|
-
// Only proceed if responsive media queries are enabled or if it's the base media query
|
|
29
|
-
@if type-of($utility) == "map" and map-get($utility, rfs) and (map-get($utility, responsive) or $infix == "") {
|
|
30
|
-
@include generate-utility($utility, $infix, true);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
// Print utilities
|
|
39
|
-
@media print {
|
|
40
|
-
@each $key, $utility in $utilities {
|
|
41
|
-
// The utility can be disabled with `false`, thus check if the utility is a map first
|
|
42
|
-
// Then check if the utility needs print styles
|
|
43
|
-
@if type-of($utility) == "map" and map-get($utility, print) == true {
|
|
44
|
-
@include generate-utility($utility, "-print");
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|