@weavy/uikit-react 11.2.0 → 12.1.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.
Files changed (205) hide show
  1. package/.github/workflows/publish.yml +1 -1
  2. package/changelog.md +15 -0
  3. package/dist/cjs/index.js +6 -6
  4. package/dist/cjs/index.js.map +1 -1
  5. package/dist/cjs/types/components/Image.d.ts +2 -0
  6. package/dist/cjs/types/components/PdfViewer.d.ts +6 -0
  7. package/dist/cjs/types/components/Preview.d.ts +58 -0
  8. package/dist/cjs/types/types/types.d.ts +1 -0
  9. package/dist/cjs/types/utils/fileUtilities.d.ts +16 -1
  10. package/dist/css/weavy-chat.css +2684 -0
  11. package/dist/css/weavy-messenger.css +3039 -0
  12. package/dist/css/weavy.css +3039 -0
  13. package/dist/esm/index.js +6 -6
  14. package/dist/esm/index.js.map +1 -1
  15. package/dist/esm/types/components/Image.d.ts +2 -0
  16. package/dist/esm/types/components/PdfViewer.d.ts +6 -0
  17. package/dist/esm/types/components/Preview.d.ts +58 -0
  18. package/dist/esm/types/types/types.d.ts +1 -0
  19. package/dist/esm/types/utils/fileUtilities.d.ts +16 -1
  20. package/package.json +14 -4
  21. package/rollup.config.js +0 -2
  22. package/src/components/Attachment.tsx +5 -6
  23. package/src/components/Avatar.tsx +2 -3
  24. package/src/components/Chat.tsx +3 -4
  25. package/src/components/Conversation.tsx +20 -29
  26. package/src/components/ConversationBadge.tsx +1 -2
  27. package/src/components/ConversationForm.tsx +11 -18
  28. package/src/components/ConversationList.tsx +4 -5
  29. package/src/components/ConversationListItem.tsx +11 -13
  30. package/src/components/FileBrowser.tsx +1 -2
  31. package/src/components/Image.tsx +39 -7
  32. package/src/components/MeetingCard.tsx +7 -8
  33. package/src/components/Message.tsx +12 -13
  34. package/src/components/Messages.tsx +6 -7
  35. package/src/components/Messenger.tsx +3 -4
  36. package/src/components/NewConversation.tsx +5 -7
  37. package/src/components/PdfViewer.tsx +271 -0
  38. package/src/components/Presence.tsx +2 -2
  39. package/src/components/Preview.tsx +294 -0
  40. package/src/components/Reactions.tsx +6 -7
  41. package/src/components/SearchUsers.tsx +17 -16
  42. package/src/components/SeenBy.tsx +1 -2
  43. package/src/contexts/PreviewContext.tsx +4 -6
  44. package/src/hooks/useConversation.ts +0 -1
  45. package/src/hooks/usePresence.ts +4 -5
  46. package/src/hooks/useReactions.ts +0 -1
  47. package/src/scss/theme/_alert.scss +73 -0
  48. package/src/scss/theme/_appbar.scss +112 -0
  49. package/src/scss/theme/_attachments.scss +74 -0
  50. package/src/scss/theme/_avatar.scss +54 -0
  51. package/src/scss/theme/_badge.scss +47 -0
  52. package/src/scss/theme/_buttons.scss +96 -0
  53. package/src/scss/theme/_card.scss +7 -0
  54. package/src/scss/theme/_checkbox.scss +56 -0
  55. package/src/scss/theme/_cm-editor.scss +42 -0
  56. package/src/scss/theme/_code.scss +115 -0
  57. package/src/scss/theme/_colors.scss +520 -0
  58. package/src/scss/theme/_config.scss +6 -0
  59. package/src/scss/theme/_content.scss +15 -0
  60. package/src/scss/theme/_conversations.scss +91 -0
  61. package/src/scss/theme/_dropdown.scss +86 -0
  62. package/src/scss/theme/_emoji.scss +5 -0
  63. package/src/scss/theme/_filebrowser.scss +26 -0
  64. package/src/scss/theme/_files.scss +140 -0
  65. package/src/scss/theme/_icons.scss +62 -0
  66. package/src/scss/theme/_image-grid.scss +63 -0
  67. package/src/scss/theme/_inputs.scss +28 -0
  68. package/src/scss/theme/_message-editor.scss +90 -0
  69. package/src/scss/theme/_messages.scss +238 -0
  70. package/src/scss/theme/_nav.scss +52 -0
  71. package/src/scss/theme/_overlays.scss +157 -0
  72. package/src/scss/theme/_pager.scss +19 -0
  73. package/src/scss/theme/_palette.scss +165 -0
  74. package/src/scss/theme/_pane.scss +16 -0
  75. package/src/scss/theme/_panels.scss +137 -0
  76. package/src/scss/theme/_picker-list.scss +37 -0
  77. package/src/scss/theme/_preview-embed.scss +38 -0
  78. package/src/scss/theme/_preview-html.scss +7 -0
  79. package/src/scss/theme/_preview-icon.scss +41 -0
  80. package/src/scss/theme/_preview-image.scss +86 -0
  81. package/src/scss/theme/_preview-media.scss +28 -0
  82. package/src/scss/theme/_preview-pdf.scss +838 -0
  83. package/src/scss/theme/_preview-text.scss +5 -0
  84. package/src/scss/theme/_preview.scss +105 -0
  85. package/src/scss/theme/_reactions.scss +58 -0
  86. package/src/scss/theme/_reboot.scss +41 -0
  87. package/src/scss/theme/_root.scss +2 -0
  88. package/src/scss/theme/_scroll.scss +55 -0
  89. package/src/scss/theme/_search.scss +68 -0
  90. package/src/scss/theme/_spinner.scss +63 -0
  91. package/src/scss/theme/_tables.scss +53 -0
  92. package/src/scss/theme/_toasts.scss +47 -0
  93. package/src/scss/theme/_turbo.scss +17 -0
  94. package/src/scss/theme/_typing.scss +26 -0
  95. package/src/scss/theme/_variables.scss +139 -0
  96. package/src/scss/theme/bootstrap/_accordion.scss +146 -0
  97. package/src/scss/theme/bootstrap/_alert.scss +71 -0
  98. package/src/scss/theme/bootstrap/_badge.scss +38 -0
  99. package/src/scss/theme/bootstrap/_breadcrumb.scss +40 -0
  100. package/src/scss/theme/bootstrap/_button-group.scss +142 -0
  101. package/src/scss/theme/bootstrap/_buttons.scss +186 -0
  102. package/src/scss/theme/bootstrap/_card.scss +234 -0
  103. package/src/scss/theme/bootstrap/_carousel.scss +229 -0
  104. package/src/scss/theme/bootstrap/_close.scss +40 -0
  105. package/src/scss/theme/bootstrap/_containers.scss +41 -0
  106. package/src/scss/theme/bootstrap/_dropdown.scss +248 -0
  107. package/src/scss/theme/bootstrap/_forms.scss +9 -0
  108. package/src/scss/theme/bootstrap/_functions.scss +302 -0
  109. package/src/scss/theme/bootstrap/_grid.scss +33 -0
  110. package/src/scss/theme/bootstrap/_helpers.scss +10 -0
  111. package/src/scss/theme/bootstrap/_images.scss +42 -0
  112. package/src/scss/theme/bootstrap/_list-group.scss +191 -0
  113. package/src/scss/theme/bootstrap/_maps.scss +54 -0
  114. package/src/scss/theme/bootstrap/_mixins.scss +43 -0
  115. package/src/scss/theme/bootstrap/_modal.scss +237 -0
  116. package/src/scss/theme/bootstrap/_nav.scss +172 -0
  117. package/src/scss/theme/bootstrap/_navbar.scss +276 -0
  118. package/src/scss/theme/bootstrap/_offcanvas.scss +143 -0
  119. package/src/scss/theme/bootstrap/_pagination.scss +109 -0
  120. package/src/scss/theme/bootstrap/_placeholders.scss +51 -0
  121. package/src/scss/theme/bootstrap/_popover.scss +196 -0
  122. package/src/scss/theme/bootstrap/_progress.scss +59 -0
  123. package/src/scss/theme/bootstrap/_reboot.scss +610 -0
  124. package/src/scss/theme/bootstrap/_root.scss +73 -0
  125. package/src/scss/theme/bootstrap/_spinners.scss +85 -0
  126. package/src/scss/theme/bootstrap/_tables.scss +164 -0
  127. package/src/scss/theme/bootstrap/_toasts.scss +70 -0
  128. package/src/scss/theme/bootstrap/_tooltip.scss +120 -0
  129. package/src/scss/theme/bootstrap/_transitions.scss +27 -0
  130. package/src/scss/theme/bootstrap/_type.scss +106 -0
  131. package/src/scss/theme/bootstrap/_utilities.scss +647 -0
  132. package/src/scss/theme/bootstrap/_variables.scss +1633 -0
  133. package/src/scss/theme/bootstrap/forms/_floating-labels.scss +74 -0
  134. package/src/scss/theme/bootstrap/forms/_form-check.scss +175 -0
  135. package/src/scss/theme/bootstrap/forms/_form-control.scss +194 -0
  136. package/src/scss/theme/bootstrap/forms/_form-range.scss +91 -0
  137. package/src/scss/theme/bootstrap/forms/_form-select.scss +71 -0
  138. package/src/scss/theme/bootstrap/forms/_form-text.scss +11 -0
  139. package/src/scss/theme/bootstrap/forms/_input-group.scss +129 -0
  140. package/src/scss/theme/bootstrap/forms/_labels.scss +36 -0
  141. package/src/scss/theme/bootstrap/forms/_validation.scss +12 -0
  142. package/src/scss/theme/bootstrap/helpers/_clearfix.scss +3 -0
  143. package/src/scss/theme/bootstrap/helpers/_color-bg.scss +10 -0
  144. package/src/scss/theme/bootstrap/helpers/_colored-links.scss +12 -0
  145. package/src/scss/theme/bootstrap/helpers/_position.scss +36 -0
  146. package/src/scss/theme/bootstrap/helpers/_ratio.scss +26 -0
  147. package/src/scss/theme/bootstrap/helpers/_stacks.scss +15 -0
  148. package/src/scss/theme/bootstrap/helpers/_stretched-link.scss +15 -0
  149. package/src/scss/theme/bootstrap/helpers/_text-truncation.scss +7 -0
  150. package/src/scss/theme/bootstrap/helpers/_visually-hidden.scss +8 -0
  151. package/src/scss/theme/bootstrap/helpers/_vr.scss +8 -0
  152. package/src/scss/theme/bootstrap/mixins/_alert.scss +15 -0
  153. package/src/scss/theme/bootstrap/mixins/_backdrop.scss +14 -0
  154. package/src/scss/theme/bootstrap/mixins/_banner.scss +9 -0
  155. package/src/scss/theme/bootstrap/mixins/_border-radius.scss +78 -0
  156. package/src/scss/theme/bootstrap/mixins/_box-shadow.scss +18 -0
  157. package/src/scss/theme/bootstrap/mixins/_breakpoints.scss +127 -0
  158. package/src/scss/theme/bootstrap/mixins/_buttons.scss +70 -0
  159. package/src/scss/theme/bootstrap/mixins/_caret.scss +64 -0
  160. package/src/scss/theme/bootstrap/mixins/_clearfix.scss +9 -0
  161. package/src/scss/theme/bootstrap/mixins/_color-scheme.scss +7 -0
  162. package/src/scss/theme/bootstrap/mixins/_container.scss +11 -0
  163. package/src/scss/theme/bootstrap/mixins/_deprecate.scss +10 -0
  164. package/src/scss/theme/bootstrap/mixins/_forms.scss +152 -0
  165. package/src/scss/theme/bootstrap/mixins/_gradients.scss +47 -0
  166. package/src/scss/theme/bootstrap/mixins/_grid.scss +151 -0
  167. package/src/scss/theme/bootstrap/mixins/_image.scss +16 -0
  168. package/src/scss/theme/bootstrap/mixins/_list-group.scss +24 -0
  169. package/src/scss/theme/bootstrap/mixins/_lists.scss +7 -0
  170. package/src/scss/theme/bootstrap/mixins/_pagination.scss +10 -0
  171. package/src/scss/theme/bootstrap/mixins/_reset-text.scss +17 -0
  172. package/src/scss/theme/bootstrap/mixins/_resize.scss +6 -0
  173. package/src/scss/theme/bootstrap/mixins/_table-variants.scss +24 -0
  174. package/src/scss/theme/bootstrap/mixins/_text-truncate.scss +8 -0
  175. package/src/scss/theme/bootstrap/mixins/_transition.scss +26 -0
  176. package/src/scss/theme/bootstrap/mixins/_utilities.scss +97 -0
  177. package/src/scss/theme/bootstrap/mixins/_visually-hidden.scss +29 -0
  178. package/src/scss/theme/bootstrap/utilities/_api.scss +47 -0
  179. package/src/scss/theme/bootstrap/vendor/_rfs.scss +354 -0
  180. package/src/scss/theme/bs/_badge.scss +20 -0
  181. package/src/scss/theme/bs/_buttons.scss +185 -0
  182. package/src/scss/theme/bs/_dropdown.scss +86 -0
  183. package/src/scss/theme/bs/_forms.scss +161 -0
  184. package/src/scss/theme/bs/_list-group.scss +73 -0
  185. package/src/scss/theme/bs/_tables.scss +46 -0
  186. package/src/scss/theme/fonts/_fontmapping-roboto.scss +129 -0
  187. package/src/scss/theme/fonts/_fontmapping-segoe-ui.scss +127 -0
  188. package/src/scss/theme/fonts/_index.scss +2 -0
  189. package/src/scss/theme/mixins/_backdrop.scss +13 -0
  190. package/src/scss/theme/mixins/_palette.scss +165 -0
  191. package/src/scss/theme/mixins/_position.scss +33 -0
  192. package/src/scss/theme/mixins/_scrollbar.scss +110 -0
  193. package/src/scss/weavy-chat.scss +31 -0
  194. package/src/scss/weavy-messenger.scss +60 -0
  195. package/src/scss/weavy.scss +2 -0
  196. package/src/types/types.ts +2 -0
  197. package/src/ui/Button.tsx +3 -4
  198. package/src/ui/Dropdown.tsx +4 -5
  199. package/src/ui/Icon.tsx +75 -39
  200. package/src/ui/Overlay.tsx +2 -3
  201. package/src/utils/fileUtilities.ts +280 -72
  202. package/src/utils/scrollbarDetection.js +5 -7
  203. package/dist/cjs/types/utils/styles.d.ts +0 -17
  204. package/dist/esm/types/utils/styles.d.ts +0 -17
  205. package/src/utils/styles.ts +0 -57
@@ -0,0 +1,86 @@
1
+ @use "config" as *;
2
+ @use "bs/dropdown";
3
+
4
+ .wy-dropdown,
5
+ .wy-dropup {
6
+ position: relative
7
+ }
8
+
9
+ .wy-dropup {
10
+ .wy-dropdown-menu {
11
+ top: auto;
12
+ bottom: 100%;
13
+ margin-top: 0;
14
+ margin-bottom: $dropdown-spacer;
15
+ }
16
+ }
17
+
18
+
19
+ .wy-dropdown-toggle {
20
+ white-space: nowrap;
21
+ }
22
+
23
+ .wy-dropdown-menu {
24
+ @extend %dropdown-menu;
25
+
26
+ display: block;
27
+
28
+ .wy-dropup & {
29
+ top: auto;
30
+ bottom: 100%;
31
+ margin-top: 0;
32
+ margin-bottom: $dropdown-spacer;
33
+ }
34
+
35
+ // Bootstrap compatibility
36
+ [data-bs-toggle="dropdown"] ~ & {
37
+ &:not(.show) {
38
+ display: none;
39
+ }
40
+
41
+ &[hidden].show {
42
+ display: block !important;
43
+ }
44
+ }
45
+ }
46
+
47
+ .#{wy}-dropdown-menu-end {
48
+ right: 0;
49
+ }
50
+
51
+ .#{wy}-dropdown-item {
52
+ @extend %dropdown-item;
53
+ cursor: pointer;
54
+ display: flex;
55
+ align-items: center;
56
+
57
+ > img, .#{wy}-icon {
58
+ margin-right: .5rem;
59
+ color: $icon-color;
60
+ }
61
+
62
+ &:active {
63
+ > .#{wy}-icon {
64
+ $c: color-contrast($component-active-bg);
65
+ color: if($c == $color-contrast-light, $icon-light-color!important, $icon-color);
66
+ }
67
+ }
68
+
69
+ // dropdown item with icon for marking selection option
70
+ &.#{wy}-option {
71
+ .wy-icon {
72
+ visibility: hidden;
73
+ }
74
+ &.#{wy}-selected {
75
+ .wy-icon {
76
+ visibility: visible;
77
+ }
78
+ }
79
+ }
80
+
81
+ }
82
+
83
+ .#{wy}-dropdown-divider {
84
+ @extend %dropdown-divider;
85
+ }
86
+
@@ -0,0 +1,5 @@
1
+ .wy-emoji {
2
+ width: 1.25rem;
3
+ height: 1.25rem;
4
+ vertical-align: -.25rem;
5
+ }
@@ -0,0 +1,26 @@
1
+ // External filebrowsers
2
+ .wy-filebrowser {
3
+ pointer-events: none;
4
+ width: auto;
5
+ left: 0;
6
+ top: 0;
7
+ right: 0;
8
+ bottom: 0;
9
+ max-width: none;
10
+ display: flex;
11
+ align-items: center;
12
+ justify-content: center;
13
+ }
14
+
15
+ .wy-filebrowser-frame {
16
+ pointer-events: all;
17
+ display: none;
18
+ width: 100%;
19
+ height: 100%;
20
+ z-index: 99999999;
21
+ position: absolute;
22
+ top: 0;
23
+ left: 0;
24
+ border: 0;
25
+ background: rgba(0,0,0,.5)
26
+ }
@@ -0,0 +1,140 @@
1
+ @use "config" as *;
2
+ @use "tables";
3
+
4
+ .wy-files-dragging {
5
+ &::after {
6
+ content: "Drop files here to upload.";
7
+ background-color: rgba(255, 255, 255, .5);
8
+ display: flex;
9
+ justify-content: center;
10
+ align-items: center;
11
+ border: 2px dashed $primary;
12
+ font-weight: $font-weight-bold;
13
+ z-index: 10000;
14
+ position: fixed;
15
+ top: 0;
16
+ left: 0;
17
+ bottom: 0;
18
+ right: 0;
19
+ }
20
+ }
21
+
22
+ .wy-upload-progress{
23
+ display: flex;
24
+
25
+
26
+ progress{
27
+ visibility: hidden;
28
+ flex: 1;
29
+ border-radius: 0;
30
+ height: 0.5rem;
31
+ position: fixed;
32
+ width: 100%;
33
+
34
+ &::-webkit-progress-value{
35
+ background-color: $primary;
36
+ }
37
+ }
38
+ }
39
+
40
+ .wy-file-upload-errors{
41
+ display:flex;
42
+ flex-direction: column;
43
+
44
+ .wy-upload-error-row{
45
+ display:flex;
46
+ margin-bottom: 0.5rem;
47
+ align-items: center;
48
+ column-gap: 1rem;
49
+
50
+ .wy-upload-error-row-title{
51
+ flex: 1;
52
+ overflow:hidden;
53
+ white-space: nowrap;
54
+ text-overflow: ellipsis;
55
+ }
56
+
57
+ .wy-upload-error-row-conflict{
58
+ color: $warning;
59
+ }
60
+
61
+ .wy-upload-error-row-error{
62
+ color: $danger;
63
+ }
64
+ }
65
+ }
66
+
67
+ .wy-table-files {
68
+ @extend %table, %table-hover, %table-icons;
69
+
70
+ thead {
71
+ display: none;
72
+ }
73
+
74
+ tr[data-preview-url-param] {
75
+ cursor: pointer;
76
+ }
77
+
78
+ td {
79
+ vertical-align: middle;
80
+ }
81
+
82
+ td:nth-child(2) {
83
+ // make room for rename form
84
+ padding: 0 $table-cell-padding-x;
85
+ }
86
+
87
+ // filename
88
+ td:nth-child(2),
89
+ th:nth-child(2) {
90
+ width: 100%;
91
+ @include text-truncate();
92
+ }
93
+
94
+ // modified
95
+ td:nth-child(3),
96
+ th:nth-child(3) {
97
+ display: none;
98
+ width: 7rem;
99
+ @include text-truncate();
100
+ }
101
+
102
+ // kind
103
+ td:nth-child(4),
104
+ th:nth-child(4) {
105
+ display: none;
106
+ width: 7.5rem;
107
+ text-align: right;
108
+ @include text-truncate();
109
+ }
110
+
111
+ // size
112
+ td:nth-child(5),
113
+ th:nth-child(5) {
114
+ display: none;
115
+ width: 7rem;
116
+ text-align: right;
117
+ @include text-truncate();
118
+ }
119
+
120
+ @include media-breakpoint-up(sm) {
121
+ thead {
122
+ display: revert;
123
+ }
124
+
125
+ td:nth-child(5),
126
+ th:nth-child(5) {
127
+ display: table-cell;
128
+ }
129
+ }
130
+
131
+ @include media-breakpoint-up(md) {
132
+
133
+ td:nth-child(3),
134
+ th:nth-child(3),
135
+ td:nth-child(4),
136
+ th:nth-child(4) {
137
+ display: table-cell;
138
+ }
139
+ }
140
+ }
@@ -0,0 +1,62 @@
1
+ @use "variables" as *;
2
+
3
+ .wy-icon {
4
+ display: inline-flex;
5
+ align-items: center;
6
+ justify-content: center;
7
+ flex: 0 0 auto;
8
+ position: relative;
9
+
10
+ &:not([width]) {
11
+ width: 1.5rem;
12
+ }
13
+
14
+ &:not([height]) {
15
+ height: 1.5rem;
16
+ }
17
+ }
18
+
19
+ .wy-icon-overlay {
20
+ position: absolute;
21
+ bottom: 0;
22
+ right: 0;
23
+ background: var(--#{$prefix}white);
24
+ border-radius: 50%;
25
+ border: 1px solid var(--#{$prefix}white);
26
+ }
27
+
28
+ // stacked icons (icon+overlay icon)
29
+ .wy-icon-stack {
30
+ display: inline-block;
31
+ position: relative;
32
+ line-height: 1;
33
+ width: 1.5rem;
34
+ height: 1.5rem;
35
+
36
+ .wy-icon:first-child {
37
+ width: 100%;
38
+ height: 100%;
39
+ }
40
+
41
+ .wy-icon:last-child {
42
+ position: absolute;
43
+ bottom: 0;
44
+ right: 0;
45
+ width: 50%;
46
+ height: 50%;
47
+ background-color: var(--#{$prefix}body-bg);
48
+ border-radius: 50%;
49
+ }
50
+ }
51
+
52
+ // icons normally inherit the text color of its parent
53
+ .wy-icon:not([class*="wy-icon-"]) * {
54
+ fill: currentColor;
55
+ }
56
+
57
+ // colored icons
58
+ @each $color, $value in $theme-colors {
59
+ .wy-icon-#{$color} * {
60
+ fill: var(--#{$prefix}#{$color});
61
+ }
62
+ }
@@ -0,0 +1,63 @@
1
+ @use "variables";
2
+
3
+ $body-bg: variables.$body-bg !default;
4
+ $border-radius: variables.$border-radius !default;
5
+ $border-width: variables.$border-width !default;
6
+
7
+ // images in posts, messages and comments
8
+ .wy-image-grid {
9
+ display: flex;
10
+ flex-wrap: wrap;
11
+ justify-content: space-evenly;
12
+ position: relative;
13
+ border-radius: $border-radius;
14
+ overflow: hidden;
15
+ //background-color: $body-bg;
16
+ column-gap: $border-width;
17
+ row-gap: $border-width;
18
+
19
+ .wy-image {
20
+ padding: 0;
21
+ width: 50%;
22
+ position: relative;
23
+ flex: auto;
24
+ background-color: inherit;
25
+ background-clip: content-box;
26
+ min-width: max(25%, 4rem);
27
+ min-height: 4rem;
28
+
29
+ // 1 of not 2
30
+ &:first-of-type:not(:nth-last-of-type(2)) {
31
+ flex-basis: 100% !important;
32
+ }
33
+ }
34
+
35
+ .wy-image-area {
36
+ display: block;
37
+ height: 100%;
38
+ cursor: pointer;
39
+
40
+ img {
41
+ position: absolute;
42
+ height: 100%;
43
+ width: 100%;
44
+ // TODO: scale down only for small images like icons (with inline style?)
45
+ object-fit: contain;
46
+ }
47
+ }
48
+
49
+ .wy-more {
50
+ position: absolute;
51
+ line-height: 100%;
52
+ color: #fff;
53
+ background: rgba(0,0,0,0.5);
54
+ top: 0;
55
+ left: 0;
56
+ bottom: 0;
57
+ right: 0;
58
+ display: flex;
59
+ align-items: center;
60
+ justify-content: center;
61
+ font-size: 1.5rem;
62
+ }
63
+ }
@@ -0,0 +1,28 @@
1
+ @use "config";
2
+ @use "bs/forms";
3
+
4
+ @mixin input {
5
+ // @extend %form-control, %form-control-sm;
6
+ // background: colors.$light;
7
+ // border-color: transparent;
8
+ }
9
+
10
+ .wy-input {
11
+ @extend %form-control;
12
+ }
13
+
14
+ .wy-input-sm {
15
+ @extend %form-control, %form-control-sm;
16
+ }
17
+
18
+ .wy-is-invalid {
19
+ @extend %form-invalid;
20
+ }
21
+
22
+ .wy-description {
23
+ @extend %form-text
24
+ }
25
+
26
+ .wy-label {
27
+ @extend %form-label;
28
+ }
@@ -0,0 +1,90 @@
1
+ @use "config" as *;
2
+ @use "mixins/backdrop";
3
+ @use "mixins/position";
4
+
5
+ .wy-message-editor {
6
+ @include position.sticky-bottom;
7
+ @include backdrop.filter;
8
+
9
+ background-color: rgba($light, $opacity-backdrop);
10
+ }
11
+
12
+ .wy-message-form {
13
+ .wy-spinner {
14
+ display: none;
15
+ }
16
+
17
+ &.wy-uploading {
18
+ .wy-spinner {
19
+ display: block;
20
+ }
21
+
22
+ .wy-icon-attachment {
23
+ display: none;
24
+ }
25
+ }
26
+
27
+ .wy-picker-list:not(:empty) {
28
+ border-top: $border-width solid $border-color;
29
+ }
30
+ }
31
+
32
+ .wy-message-editor-inputs {
33
+ display: flex;
34
+ flex-direction: row;
35
+ align-items: flex-end;
36
+ border-top: $border-width solid rgba($gray-200, $opacity-backdrop);
37
+ padding: .5rem;
38
+ min-height: 3rem;
39
+
40
+ > :not(:last-child) {
41
+ margin-right: .5rem;
42
+ }
43
+ }
44
+
45
+ .wy-message-editor-buttons {
46
+ flex: 1 0 auto;
47
+ }
48
+
49
+ .wy-message-editor-text {
50
+ flex: 1 1 100%;
51
+ display: flex;
52
+ flex-direction: column;
53
+ }
54
+ %message-editor-textfield,
55
+ .wy-message-editor-textfield {
56
+ flex: 1 1 100%;
57
+ outline: $light solid 1px;
58
+ max-height: 10.2rem;
59
+ background-color: $input-bg;
60
+ border-radius: $border-radius-xl;
61
+ border: none;
62
+ }
63
+
64
+ %message-editor-textcontent,
65
+ .wy-message-editor-textcontent {
66
+ font-family: $font-family-base;
67
+ font-size: $font-size-base;
68
+ padding: $input-padding-y $input-padding-x;
69
+ }
70
+
71
+ %message-editor-grow,
72
+ .#{wy}-message-editor-grow {
73
+ display: grid;
74
+
75
+ &::after, > textarea {
76
+ @extend %message-editor-textfield;
77
+ grid-area: 1 / 1 / 2 / 2;
78
+ }
79
+
80
+ &::after {
81
+ content: attr(data-replicated-value) " ";
82
+ white-space: pre-wrap;
83
+ visibility: hidden;
84
+ }
85
+
86
+ > textarea {
87
+ resize: none;
88
+ overflow: hidden;
89
+ }
90
+ }