@weavy/uikit-react 12.1.0 → 14.0.0
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 +60 -0
- package/dist/cjs/index.js +28 -6
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/client/WeavyClient.d.ts +8 -1
- package/dist/cjs/types/components/Attachment.d.ts +2 -1
- package/dist/cjs/types/components/Chat.d.ts +1 -1
- package/dist/cjs/types/components/Messages.d.ts +3 -1
- package/dist/cjs/types/components/PdfViewer.d.ts +3 -1
- package/dist/cjs/types/components/Preview.d.ts +8 -10
- package/dist/cjs/types/contexts/PreviewContext.d.ts +2 -1
- package/dist/cjs/types/contexts/WeavyContext.d.ts +2 -3
- package/dist/cjs/types/hooks/useConversations.d.ts +1 -1
- package/dist/cjs/types/hooks/useMutateMessage.d.ts +1 -1
- package/dist/cjs/types/hooks/useMutateRead.d.ts +1 -0
- package/dist/cjs/types/types/Chat.d.ts +2 -1
- package/dist/cjs/types/types/Message.d.ts +2 -0
- package/dist/cjs/types/types/types.d.ts +63 -9
- package/dist/cjs/types/ui/Spinner.d.ts +10 -0
- package/dist/cjs/types/utils/fileUtilities.d.ts +1 -4
- package/dist/css/weavy-chat.css +1803 -1041
- package/dist/css/weavy-messenger.css +2141 -1360
- package/dist/css/weavy.css +1943 -1162
- package/dist/esm/index.js +28 -6
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/client/WeavyClient.d.ts +8 -1
- package/dist/esm/types/components/Attachment.d.ts +2 -1
- package/dist/esm/types/components/Chat.d.ts +1 -1
- package/dist/esm/types/components/Messages.d.ts +3 -1
- package/dist/esm/types/components/PdfViewer.d.ts +3 -1
- package/dist/esm/types/components/Preview.d.ts +8 -10
- package/dist/esm/types/contexts/PreviewContext.d.ts +2 -1
- package/dist/esm/types/contexts/WeavyContext.d.ts +2 -3
- package/dist/esm/types/hooks/useConversations.d.ts +1 -1
- package/dist/esm/types/hooks/useMutateMessage.d.ts +1 -1
- package/dist/esm/types/hooks/useMutateRead.d.ts +1 -0
- package/dist/esm/types/types/Chat.d.ts +2 -1
- package/dist/esm/types/types/Message.d.ts +2 -0
- package/dist/esm/types/types/types.d.ts +63 -9
- package/dist/esm/types/ui/Spinner.d.ts +10 -0
- package/dist/esm/types/utils/fileUtilities.d.ts +1 -4
- package/dist/index.d.ts +15 -7
- package/package.json +2 -2
- package/rollup.config.js +3 -1
- package/src/client/WeavyClient.ts +105 -29
- package/src/components/Attachment.tsx +8 -7
- package/src/components/Chat.tsx +8 -7
- package/src/components/Conversation.tsx +29 -23
- 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 +71 -54
- package/src/components/FileBrowser.tsx +53 -50
- package/src/components/MeetingCard.tsx +35 -13
- package/src/components/Meetings.tsx +1 -1
- package/src/components/Message.tsx +41 -41
- package/src/components/Messages.tsx +62 -61
- package/src/components/Messenger.tsx +7 -2
- package/src/components/NewConversation.tsx +1 -1
- package/src/components/PdfViewer.tsx +93 -88
- package/src/components/Preview.tsx +115 -54
- package/src/components/Reactions.tsx +11 -5
- package/src/components/SearchUsers.tsx +21 -11
- package/src/components/SeenBy.tsx +13 -7
- package/src/components/Typing.tsx +11 -12
- package/src/contexts/PreviewContext.tsx +90 -16
- package/src/contexts/UserContext.tsx +1 -1
- package/src/contexts/WeavyContext.tsx +10 -7
- package/src/hooks/useBadge.ts +2 -6
- package/src/hooks/useChat.ts +3 -14
- package/src/hooks/useConversation.ts +1 -7
- package/src/hooks/useConversations.ts +15 -11
- package/src/hooks/useFileUploader.ts +6 -8
- package/src/hooks/useMembers.ts +1 -7
- package/src/hooks/useMessages.ts +1 -7
- package/src/hooks/useMutateChat.ts +6 -11
- package/src/hooks/useMutateConversation.ts +7 -10
- package/src/hooks/useMutateConversationName.ts +10 -12
- package/src/hooks/useMutateDeleteReaction.ts +3 -8
- package/src/hooks/useMutateExternalBlobs.ts +6 -11
- package/src/hooks/useMutateMeeting.ts +6 -11
- package/src/hooks/useMutateMembers.ts +8 -13
- package/src/hooks/useMutateMessage.ts +9 -18
- package/src/hooks/useMutatePinned.ts +3 -8
- package/src/hooks/useMutateReaction.ts +6 -12
- package/src/hooks/useMutateRead.ts +5 -12
- package/src/hooks/useMutateRemoveMembers.ts +7 -12
- package/src/hooks/useMutateTyping.ts +6 -11
- package/src/hooks/usePresence.ts +2 -3
- package/src/hooks/useReactions.ts +11 -12
- package/src/hooks/useSearchUsers.ts +1 -6
- package/src/hooks/useUser.ts +3 -14
- package/src/scss/theme/_alert.scss +61 -63
- package/src/scss/theme/_appbar.scss +105 -28
- 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 +184 -0
- package/src/scss/theme/_code-vscode-light.scss +179 -0
- package/src/scss/theme/_code.scss +9 -114
- 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 +77 -48
- package/src/scss/theme/_grid.scss +8 -0
- package/src/scss/theme/_icons.scss +155 -19
- package/src/scss/theme/_image-grid.scss +7 -10
- 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 +66 -20
- 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 +34 -25
- 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 +14 -0
- package/src/scss/theme/_preview-embed.scss +11 -5
- 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-text.scss +1 -1
- package/src/scss/theme/_preview.scss +59 -76
- 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 +11 -4
- package/src/scss/weavy-messenger.scss +38 -21
- package/src/types/Chat.ts +2 -1
- package/src/types/Message.ts +3 -1
- package/src/types/types.ts +72 -10
- package/src/ui/Icon.tsx +1 -1
- package/src/ui/Spinner.tsx +19 -0
- package/src/utils/fileUtilities.ts +11 -125
- package/src/utils/infiniteScroll.js +11 -2
- package/src/utils/postal-parent.js +398 -0
- package/src/utils/promise.js +187 -0
- package/src/utils/scrollbarDetection.js +68 -9
- package/src/utils/utils.js +547 -0
- 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,17 +1,17 @@
|
|
|
1
|
-
@use "
|
|
2
|
-
@use "
|
|
3
|
-
@use "
|
|
4
|
-
|
|
1
|
+
@use "base/colors";
|
|
2
|
+
@use "base/vars";
|
|
3
|
+
@use "buttons"; // Ensures correct order, since buttons is needed by reactions
|
|
4
|
+
@use "dropdown"; // Ensures correct order, since dropdown is needed by reactions
|
|
5
5
|
|
|
6
6
|
.wy-reaction-count {
|
|
7
|
-
margin: 0 .
|
|
7
|
+
margin: 0 0.5rem 0 .125rem;
|
|
8
8
|
line-height: 1;
|
|
9
|
-
color:
|
|
10
|
-
font-size:
|
|
9
|
+
//color: vars.$text-muted;
|
|
10
|
+
font-size: vars.$font-size-sm;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.wy-reaction-menu {
|
|
14
|
-
padding: .
|
|
14
|
+
padding: .25rem;
|
|
15
15
|
font-size: 1.125rem;
|
|
16
16
|
border-radius: 2.5rem;
|
|
17
17
|
}
|
|
@@ -36,23 +36,54 @@
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
.wy-table-reactions {
|
|
39
|
-
@extend %table, %table-icons;
|
|
40
|
-
|
|
41
39
|
// avatar
|
|
42
40
|
td:first-child {
|
|
43
|
-
width:
|
|
44
|
-
padding-left: 0;
|
|
41
|
+
width: 3rem;
|
|
45
42
|
}
|
|
46
43
|
|
|
47
44
|
// name
|
|
48
45
|
td:nth-child(2) {
|
|
49
46
|
width: 100%;
|
|
50
|
-
@include text-truncate();
|
|
51
47
|
}
|
|
52
48
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
49
|
+
tr:last-child td {
|
|
50
|
+
box-shadow: none;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
.wy-reactions-line {
|
|
57
|
+
display: flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
|
|
60
|
+
/*> * {
|
|
61
|
+
position: relative;
|
|
62
|
+
}*/
|
|
63
|
+
|
|
64
|
+
.wy-reactions {
|
|
65
|
+
background: var(--wy-component-background-color);
|
|
66
|
+
color: currentColor;
|
|
67
|
+
border-radius: vars.$border-radius-pill;
|
|
68
|
+
display: flex;
|
|
69
|
+
width: auto;
|
|
70
|
+
background-clip: content-box;
|
|
71
|
+
|
|
72
|
+
> .wy-emoji {
|
|
73
|
+
&:first-child {
|
|
74
|
+
margin-left: .125rem;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&:last-child {
|
|
78
|
+
margin-right: .125rem;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.wy-reaction-menu-button {
|
|
84
|
+
background: var(--wy-component-background-color);
|
|
85
|
+
color: currentColor;
|
|
86
|
+
border-radius: vars.$border-radius-pill;
|
|
87
|
+
background-clip: content-box;
|
|
57
88
|
}
|
|
58
89
|
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
@use "base/vars";
|
|
2
|
+
@use "base/colors";
|
|
3
|
+
@use "base/scroll";
|
|
4
|
+
|
|
5
|
+
.wy-sheet {
|
|
6
|
+
// Reset scrollbar adjust
|
|
7
|
+
--wy-scrollbar-adjust-top: 0;
|
|
8
|
+
--wy-scrollbar-adjust-bottom: 0;
|
|
9
|
+
|
|
10
|
+
--wy-component-background-color: #{colors.$surface-3};
|
|
11
|
+
--wy-component-color: #{colors.$on-surface};
|
|
12
|
+
|
|
13
|
+
background-color: var(--wy-component-background-color);
|
|
14
|
+
color: var(--wy-component-color);
|
|
15
|
+
|
|
16
|
+
position: fixed;
|
|
17
|
+
z-index: vars.$zindex-modal;
|
|
18
|
+
display: flex;
|
|
19
|
+
flex-direction: column;
|
|
20
|
+
|
|
21
|
+
bottom: .5rem;
|
|
22
|
+
left: .5rem;
|
|
23
|
+
right: .5rem;
|
|
24
|
+
max-height: max(50vh, 50%);
|
|
25
|
+
min-height: 3rem;
|
|
26
|
+
margin: .5rem auto;
|
|
27
|
+
max-width: 32rem;
|
|
28
|
+
|
|
29
|
+
// transition hide
|
|
30
|
+
transition: opacity vars.$transition;
|
|
31
|
+
|
|
32
|
+
border-radius: vars.$border-radius;
|
|
33
|
+
box-shadow: vars.$shadow-level1;
|
|
34
|
+
|
|
35
|
+
> .wy-appbars, > .wy-appbar {
|
|
36
|
+
border-top-left-radius: inherit;
|
|
37
|
+
border-top-right-radius: inherit;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.wy-sheet-body {
|
|
42
|
+
overflow: hidden;
|
|
43
|
+
padding: .5rem;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
// Transitions
|
|
47
|
+
.wy-sheet {
|
|
48
|
+
&:not(.wy-show) {
|
|
49
|
+
opacity: 0;
|
|
50
|
+
transform: translateY(32rem);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&.wy-show {
|
|
54
|
+
opacity: 1;
|
|
55
|
+
transform: none;
|
|
56
|
+
// transition show
|
|
57
|
+
transition: transform vars.$transition, opacity vars.$transition;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
@use "base/vars";
|
|
2
|
+
@use "base/colors";
|
|
3
|
+
@use "base/breakpoints";
|
|
4
|
+
|
|
5
|
+
.wy-sidebar {
|
|
6
|
+
--wy-component-background-color: #{colors.$surface-2};
|
|
7
|
+
--wy-component-color: #{colors.$on-surface};
|
|
8
|
+
background: var(--wy-component-background-color);
|
|
9
|
+
color: var(--wy-component-color);
|
|
10
|
+
min-width: 0;
|
|
11
|
+
min-height: 0;
|
|
12
|
+
flex-grow: 0;
|
|
13
|
+
flex-shrink: 0;
|
|
14
|
+
flex-basis: 18rem;
|
|
15
|
+
z-index: 10;
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
transition: flex-basis #{vars.$transition};
|
|
19
|
+
position: relative;
|
|
20
|
+
order: 9999;
|
|
21
|
+
|
|
22
|
+
> * {
|
|
23
|
+
transition: opacity #{vars.$transition-fast} calc(#{vars.$transition-duration} - #{vars.$transition-duration-fast});
|
|
24
|
+
min-width: 18rem;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&[hidden] {
|
|
28
|
+
display: flex !important;
|
|
29
|
+
flex-basis: 0;
|
|
30
|
+
|
|
31
|
+
> * {
|
|
32
|
+
transition: opacity #{vars.$transition-fast};
|
|
33
|
+
opacity: 0;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@include breakpoints.media-breakpoint-up(md) {
|
|
38
|
+
> * {
|
|
39
|
+
min-width: 18rem;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.wy-sidebar-handle {
|
|
43
|
+
display: none;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@include breakpoints.media-breakpoint-down(md) {
|
|
48
|
+
transition: flex-basis #{vars.$transition}, margin-top #{vars.$transition};
|
|
49
|
+
border-top-left-radius: vars.$border-radius-lg;
|
|
50
|
+
border-top-right-radius: vars.$border-radius-lg;
|
|
51
|
+
flex-basis: 50vh;
|
|
52
|
+
|
|
53
|
+
&:not([hidden]) {
|
|
54
|
+
margin-top: calc(-1 * var(--wy-border-radius-lg));
|
|
55
|
+
|
|
56
|
+
&.wy-maximized {
|
|
57
|
+
flex-basis: calc(100vh - #{vars.$appbar-height} * 1.5);
|
|
58
|
+
margin-top: calc(-50vh + #{vars.$appbar-height} * 1.5 - var(--wy-border-radius-lg));
|
|
59
|
+
|
|
60
|
+
~ * .wy-nav-prev,
|
|
61
|
+
~ * .wy-nav-next {
|
|
62
|
+
display: none;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
> * {
|
|
68
|
+
min-height: vars.$appbar-height;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.wy-sidebar-handle {
|
|
74
|
+
width: 4rem;
|
|
75
|
+
background-clip: content-box;
|
|
76
|
+
background-color: #{colors.$on-surface-variant};
|
|
77
|
+
height: 1rem;
|
|
78
|
+
border: .375rem solid transparent;
|
|
79
|
+
position: absolute;
|
|
80
|
+
top: 0rem;
|
|
81
|
+
z-index: 2;
|
|
82
|
+
left: 50%;
|
|
83
|
+
margin-left: -2rem;
|
|
84
|
+
border-radius: #{vars.$border-radius-pill};
|
|
85
|
+
cursor: pointer;
|
|
86
|
+
}
|
|
@@ -1,20 +1,24 @@
|
|
|
1
|
-
@use "colors"
|
|
1
|
+
@use "base/colors";
|
|
2
2
|
|
|
3
3
|
$spinner-offset: 187 !default;
|
|
4
4
|
$spinner-duration: 1.4s !default;
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
.wy-spinner, .wy-icon[data-icon=spinner] {
|
|
7
|
+
align-self: center;
|
|
8
|
+
justify-self: center;
|
|
9
|
+
margin: auto;
|
|
7
10
|
|
|
8
11
|
circle {
|
|
9
12
|
stroke-dasharray: 1, 100;
|
|
10
13
|
stroke-dashoffset: 0;
|
|
11
14
|
transform-origin: center;
|
|
15
|
+
fill:none !important;
|
|
12
16
|
}
|
|
13
17
|
|
|
14
18
|
&.wy-spin {
|
|
15
19
|
// add class .wy-spin to animate the spinner (otherwise it will not be visible)
|
|
16
20
|
animation: wy-rotate $spinner-duration linear infinite;
|
|
17
|
-
|
|
21
|
+
|
|
18
22
|
circle {
|
|
19
23
|
animation: wy-dash $spinner-duration ease-in-out infinite, wy-color ($spinner-duration*2) ease-in-out infinite;
|
|
20
24
|
}
|
|
@@ -46,18 +50,18 @@ svg.wy-spinner {
|
|
|
46
50
|
|
|
47
51
|
@keyframes wy-color {
|
|
48
52
|
0%, 100% {
|
|
49
|
-
stroke:
|
|
53
|
+
stroke: colors.$primary;
|
|
50
54
|
}
|
|
51
55
|
|
|
52
56
|
25% {
|
|
53
|
-
stroke:
|
|
57
|
+
stroke: colors.$primary;
|
|
54
58
|
}
|
|
55
59
|
|
|
56
60
|
50% {
|
|
57
|
-
stroke:
|
|
61
|
+
stroke: transparent;
|
|
58
62
|
}
|
|
59
63
|
|
|
60
64
|
75% {
|
|
61
|
-
stroke:
|
|
65
|
+
stroke: colors.$primary;
|
|
62
66
|
}
|
|
63
67
|
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
@use "base/colors";
|
|
2
|
+
@use "base/vars";
|
|
3
|
+
|
|
4
|
+
.wy-tabs {
|
|
5
|
+
display: flex;
|
|
6
|
+
justify-content: space-evenly;
|
|
7
|
+
padding:.25rem;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.wy-tab {
|
|
11
|
+
--wy-component-color: #{colors.$primary};
|
|
12
|
+
--wy-component-background-color: transparent; // #{colors.$surface-2};
|
|
13
|
+
|
|
14
|
+
color: var(--wy-component-color);
|
|
15
|
+
background: var(--wy-component-background-color);
|
|
16
|
+
|
|
17
|
+
border: none;
|
|
18
|
+
border-radius: vars.$border-radius-lg;
|
|
19
|
+
|
|
20
|
+
display: inline-flex;
|
|
21
|
+
flex-direction: column;
|
|
22
|
+
align-items: center;
|
|
23
|
+
justify-content: center;
|
|
24
|
+
gap: .25rem;
|
|
25
|
+
position: relative;
|
|
26
|
+
|
|
27
|
+
text-align: center;
|
|
28
|
+
text-decoration: none;
|
|
29
|
+
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
user-select: none;
|
|
32
|
+
|
|
33
|
+
.wy-tab-icon {
|
|
34
|
+
// State layer
|
|
35
|
+
position: relative;
|
|
36
|
+
padding: .25rem 1rem;
|
|
37
|
+
border-radius: var(--wy-btn-border-radius);
|
|
38
|
+
display: inline-flex;
|
|
39
|
+
|
|
40
|
+
&::before {
|
|
41
|
+
content: "";
|
|
42
|
+
position: absolute;
|
|
43
|
+
top: 0;
|
|
44
|
+
left: 0;
|
|
45
|
+
width: 100%;
|
|
46
|
+
height: 100%;
|
|
47
|
+
border-radius: inherit;
|
|
48
|
+
background: var(--wy-component-color);
|
|
49
|
+
opacity: 0%;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&:hover {
|
|
54
|
+
.wy-tab-icon::before {
|
|
55
|
+
opacity: 8%;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&:focus, &:active, &.wy-active {
|
|
60
|
+
.wy-tab-icon::before {
|
|
61
|
+
opacity: 12%;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.wy-tab-label {
|
|
66
|
+
font-family: var(--wy-btn-font-family);
|
|
67
|
+
line-height: var(--wy-btn-line-height);
|
|
68
|
+
|
|
69
|
+
font-size: vars.$font-size-xs;
|
|
70
|
+
font-weight: vars.$font-weight-base;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -1,47 +1,83 @@
|
|
|
1
|
-
@use "
|
|
2
|
-
@use "
|
|
1
|
+
@use "base/vars";
|
|
2
|
+
@use "base/colors";
|
|
3
|
+
@use "base/text";
|
|
3
4
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
.wy-table {
|
|
6
|
+
--wy-component-color: #{colors.$on-background};
|
|
7
|
+
--wy-component-background-color: #{colors.$background};
|
|
8
|
+
color: var(--wy-component-color);
|
|
9
|
+
background-color: var(--wy-component-background-color);
|
|
7
10
|
table-layout: fixed;
|
|
11
|
+
width: 100%;
|
|
12
|
+
//margin-bottom: 1rem;
|
|
13
|
+
vertical-align: top;
|
|
14
|
+
border-collapse: collapse;
|
|
8
15
|
|
|
9
16
|
th, td {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
padding: $table-cell-padding-y-sm $table-cell-padding-x;
|
|
16
|
-
width: 2rem + $table-cell-padding-x;
|
|
17
|
-
// reset th styles (for dropdown menus in th)
|
|
18
|
-
font-size: $font-size-base;
|
|
19
|
-
font-weight: $font-weight-base;
|
|
20
|
-
text-transform: none;
|
|
21
|
-
letter-spacing: normal;
|
|
22
|
-
}
|
|
17
|
+
padding: vars.$table-cell-padding-y vars.$table-cell-padding-x;
|
|
18
|
+
box-shadow: #{colors.$outline-variant} 0px -1px 0px 0px inset;
|
|
19
|
+
line-height: 1;
|
|
20
|
+
vertical-align: middle;
|
|
21
|
+
height: 2.5rem;
|
|
23
22
|
|
|
24
23
|
&:first-child {
|
|
25
|
-
padding-
|
|
24
|
+
padding-left: calc(#{vars.$table-cell-padding-x} * 2);
|
|
26
25
|
}
|
|
27
26
|
|
|
28
27
|
&:last-child {
|
|
29
|
-
padding-
|
|
28
|
+
padding-right: calc(#{vars.$table-cell-padding-x} * 2);
|
|
30
29
|
}
|
|
31
30
|
}
|
|
31
|
+
|
|
32
|
+
> tbody {
|
|
33
|
+
vertical-align: inherit;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
> thead {
|
|
37
|
+
vertical-align: bottom;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.wy-table-cell-icon {
|
|
41
|
+
color: var(--wy-component-color);
|
|
42
|
+
vertical-align: middle;
|
|
43
|
+
text-align: center;
|
|
44
|
+
padding: calc(#{vars.$table-cell-padding-y} * .5) vars.$table-cell-padding-x;
|
|
45
|
+
width: calc(2.5rem + #{vars.$table-cell-padding-x} * 2);
|
|
46
|
+
// reset th styles (for dropdown menus in th)
|
|
47
|
+
font-size: vars.$font-size-base;
|
|
48
|
+
font-weight: vars.$font-weight-base;
|
|
49
|
+
text-transform: none;
|
|
50
|
+
letter-spacing: normal;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.wy-table-cell-text {
|
|
54
|
+
@include text.truncate;
|
|
55
|
+
width: 100%;
|
|
56
|
+
}
|
|
32
57
|
}
|
|
33
58
|
|
|
59
|
+
.wy-table-hover {
|
|
60
|
+
> tbody > tr:not(.wy-pager):hover > * {
|
|
61
|
+
--wy-component-color: #{colors.$on-surface};
|
|
62
|
+
--wy-component-background-color: #{colors.$surface-2};
|
|
63
|
+
color: var(--color);
|
|
64
|
+
background-color: var(--wy-component-background-color);
|
|
65
|
+
cursor: pointer;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
34
68
|
|
|
35
69
|
.wy-table-trashed {
|
|
36
70
|
th, td {
|
|
37
|
-
color: $text-muted;
|
|
38
71
|
text-decoration: line-through;
|
|
72
|
+
|
|
39
73
|
&:not(:last-child) {
|
|
40
|
-
|
|
74
|
+
> * {
|
|
75
|
+
opacity: vars.$opacity-disabled;
|
|
76
|
+
}
|
|
41
77
|
}
|
|
42
78
|
|
|
43
79
|
> a {
|
|
44
|
-
color:
|
|
80
|
+
color: var(--wy-component-color);
|
|
45
81
|
}
|
|
46
82
|
}
|
|
47
83
|
|
|
@@ -51,3 +87,14 @@
|
|
|
51
87
|
}
|
|
52
88
|
}
|
|
53
89
|
}
|
|
90
|
+
|
|
91
|
+
.wy-table-no-result {
|
|
92
|
+
text-align: center;
|
|
93
|
+
padding: 1rem;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
.wy-table-sort-link {
|
|
98
|
+
display: inline-flex;
|
|
99
|
+
align-items: center;
|
|
100
|
+
}
|
|
@@ -1,47 +1,77 @@
|
|
|
1
1
|
@use "sass:map";
|
|
2
|
-
@use "
|
|
2
|
+
@use "base/vars";
|
|
3
|
+
@use "base/colors";
|
|
4
|
+
|
|
5
|
+
$toast-max-width: 16rem !default;
|
|
6
|
+
$toast-padding-x: .75rem !default;
|
|
7
|
+
$toast-padding-y: .5rem !default;
|
|
3
8
|
|
|
4
9
|
.wy-toasts {
|
|
5
10
|
position: fixed;
|
|
6
11
|
left: 0;
|
|
7
|
-
bottom:
|
|
12
|
+
bottom: 3.5rem;
|
|
8
13
|
right: 0;
|
|
9
14
|
pointer-events: none;
|
|
10
15
|
display: flex;
|
|
11
16
|
flex-direction: column;
|
|
12
17
|
align-items: center;
|
|
13
18
|
justify-content: center;
|
|
14
|
-
z-index:
|
|
19
|
+
z-index: vars.$zindex-fixed;
|
|
20
|
+
gap: 1rem;
|
|
15
21
|
}
|
|
16
22
|
|
|
17
23
|
.wy-toast {
|
|
24
|
+
background: colors.$on-surface;
|
|
25
|
+
color: colors.$surface-2;
|
|
18
26
|
margin: 0 0 1rem;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
.
|
|
27
|
+
width: $toast-max-width;
|
|
28
|
+
max-width: calc(100% - 3rem);
|
|
29
|
+
gap: .5rem;
|
|
30
|
+
display: flex;
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
border-radius: vars.$border-radius;
|
|
33
|
+
margin-left: auto;
|
|
34
|
+
margin-right: auto;
|
|
35
|
+
margin-bottom: .5rem;
|
|
22
36
|
padding: $toast-padding-y $toast-padding-x;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
37
|
+
user-select: none;
|
|
38
|
+
box-shadow: vars.$shadow-level2;
|
|
39
|
+
position: relative;
|
|
40
|
+
overflow: hidden;
|
|
41
|
+
height: auto;
|
|
28
42
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
43
|
+
&.wy-fade {
|
|
44
|
+
transition: all vars.$transition;
|
|
45
|
+
|
|
46
|
+
&:not(.wy-show) {
|
|
47
|
+
opacity: 0;
|
|
48
|
+
height: 0;
|
|
49
|
+
padding-top: 0;
|
|
50
|
+
padding-bottom: 0;
|
|
51
|
+
margin-top: 0;
|
|
52
|
+
margin-bottom: 0;
|
|
53
|
+
}
|
|
37
54
|
}
|
|
55
|
+
}
|
|
38
56
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
57
|
+
.wy-toast-action {
|
|
58
|
+
position: sticky;
|
|
59
|
+
top: 4.5rem;
|
|
60
|
+
bottom: 4.5rem;
|
|
61
|
+
// TODO: check z-index - needs to be below dropdown z-index (1000) currently $zindex-toast is 1090
|
|
62
|
+
z-index: 999;
|
|
63
|
+
background-color: colors.$primary;
|
|
64
|
+
color: colors.$on-primary;
|
|
65
|
+
padding: .5rem 1rem;
|
|
66
|
+
border-radius: 50rem;
|
|
67
|
+
font-size: vars.$font-size-xs;
|
|
68
|
+
width: max-content;
|
|
69
|
+
align-self: center;
|
|
70
|
+
text-align: center;
|
|
71
|
+
box-shadow: none;
|
|
72
|
+
}
|
|
43
73
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
74
|
+
.wy-toast-primary {
|
|
75
|
+
background: colors.$on-primary-container;
|
|
76
|
+
color: colors.$primary-container;
|
|
47
77
|
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
@use "base/vars";
|
|
2
|
+
|
|
3
|
+
@mixin heading {
|
|
4
|
+
margin-top: .5rem;
|
|
5
|
+
margin-bottom: .5rem;
|
|
6
|
+
font-style: vars.$headings-font-style;
|
|
7
|
+
font-weight: vars.$headings-font-weight;
|
|
8
|
+
line-height: vars.$headings-line-height;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// We never use H1 since we are in a context
|
|
12
|
+
|
|
13
|
+
// ~ H2
|
|
14
|
+
.wy-title {
|
|
15
|
+
@include heading;
|
|
16
|
+
margin-top: .5rem;
|
|
17
|
+
margin-bottom: .5rem;
|
|
18
|
+
font-weight: 400;
|
|
19
|
+
font-size: 2.5rem;
|
|
20
|
+
line-height: 3rem;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// ~ H3
|
|
24
|
+
.wy-headline {
|
|
25
|
+
@include heading;
|
|
26
|
+
margin-top: .5rem;
|
|
27
|
+
margin-bottom: .5rem;
|
|
28
|
+
font-weight: 400;
|
|
29
|
+
font-size: 1.5rem;
|
|
30
|
+
line-height: 2rem;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// ~ H4
|
|
34
|
+
.wy-label {
|
|
35
|
+
@include heading;
|
|
36
|
+
margin-top: 0rem;
|
|
37
|
+
margin-bottom: 0rem;
|
|
38
|
+
font-weight: 500;
|
|
39
|
+
font-size: 1rem;
|
|
40
|
+
line-height: 1.5rem;
|
|
41
|
+
}
|
|
File without changes
|
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
$grid-breakpoints: (
|
|
2
|
+
xs: 0,
|
|
3
|
+
sm: 576px,
|
|
4
|
+
md: 768px,
|
|
5
|
+
lg: 992px,
|
|
6
|
+
xl: 1200px,
|
|
7
|
+
xxl: 1400px
|
|
8
|
+
) !default;
|
|
9
|
+
|
|
1
10
|
// Breakpoint viewport sizes and media queries.
|
|
2
11
|
//
|
|
3
12
|
// Breakpoints are defined as a map of (name: minimum width), order from small to large:
|