@weavy/uikit-react 11.1.0 → 13.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.
Files changed (256) hide show
  1. package/.github/workflows/publish.yml +1 -1
  2. package/README.md +3 -4
  3. package/changelog.md +57 -0
  4. package/dist/cjs/index.js +28 -6
  5. package/dist/cjs/index.js.map +1 -1
  6. package/dist/cjs/types/client/WeavyClient.d.ts +8 -1
  7. package/dist/cjs/types/components/Attachment.d.ts +2 -1
  8. package/dist/cjs/types/components/Chat.d.ts +1 -1
  9. package/dist/cjs/types/components/Image.d.ts +2 -0
  10. package/dist/cjs/types/components/PdfViewer.d.ts +8 -0
  11. package/dist/cjs/types/components/Preview.d.ts +56 -0
  12. package/dist/cjs/types/contexts/MessengerContext.d.ts +1 -2
  13. package/dist/cjs/types/contexts/PreviewContext.d.ts +2 -1
  14. package/dist/cjs/types/contexts/WeavyContext.d.ts +2 -3
  15. package/dist/cjs/types/types/Chat.d.ts +1 -1
  16. package/dist/cjs/types/types/Messenger.d.ts +0 -1
  17. package/dist/cjs/types/types/types.d.ts +18 -8
  18. package/dist/cjs/types/ui/Spinner.d.ts +9 -0
  19. package/dist/cjs/types/utils/fileUtilities.d.ts +13 -1
  20. package/dist/css/weavy-chat.css +2860 -0
  21. package/dist/css/weavy-messenger.css +3217 -0
  22. package/dist/css/weavy.css +3217 -0
  23. package/dist/esm/index.js +28 -6
  24. package/dist/esm/index.js.map +1 -1
  25. package/dist/esm/types/client/WeavyClient.d.ts +8 -1
  26. package/dist/esm/types/components/Attachment.d.ts +2 -1
  27. package/dist/esm/types/components/Chat.d.ts +1 -1
  28. package/dist/esm/types/components/Image.d.ts +2 -0
  29. package/dist/esm/types/components/PdfViewer.d.ts +8 -0
  30. package/dist/esm/types/components/Preview.d.ts +56 -0
  31. package/dist/esm/types/contexts/MessengerContext.d.ts +1 -2
  32. package/dist/esm/types/contexts/PreviewContext.d.ts +2 -1
  33. package/dist/esm/types/contexts/WeavyContext.d.ts +2 -3
  34. package/dist/esm/types/types/Chat.d.ts +1 -1
  35. package/dist/esm/types/types/Messenger.d.ts +0 -1
  36. package/dist/esm/types/types/types.d.ts +18 -8
  37. package/dist/esm/types/ui/Spinner.d.ts +9 -0
  38. package/dist/esm/types/utils/fileUtilities.d.ts +13 -1
  39. package/dist/index.d.ts +15 -9
  40. package/package.json +14 -4
  41. package/rollup.config.js +3 -3
  42. package/src/client/WeavyClient.ts +105 -24
  43. package/src/components/Attachment.tsx +8 -8
  44. package/src/components/Avatar.tsx +2 -3
  45. package/src/components/Chat.tsx +13 -17
  46. package/src/components/Conversation.tsx +23 -32
  47. package/src/components/ConversationBadge.tsx +1 -2
  48. package/src/components/ConversationForm.tsx +11 -18
  49. package/src/components/ConversationList.tsx +4 -5
  50. package/src/components/ConversationListItem.tsx +11 -13
  51. package/src/components/FileBrowser.tsx +2 -3
  52. package/src/components/Image.tsx +39 -7
  53. package/src/components/MeetingCard.tsx +7 -8
  54. package/src/components/Message.tsx +13 -14
  55. package/src/components/Messages.tsx +7 -8
  56. package/src/components/Messenger.tsx +5 -6
  57. package/src/components/NewConversation.tsx +5 -7
  58. package/src/components/PdfViewer.tsx +276 -0
  59. package/src/components/Presence.tsx +2 -2
  60. package/src/components/Preview.tsx +355 -0
  61. package/src/components/Reactions.tsx +8 -8
  62. package/src/components/SearchUsers.tsx +19 -18
  63. package/src/components/SeenBy.tsx +1 -2
  64. package/src/contexts/MessengerContext.tsx +4 -12
  65. package/src/contexts/PreviewContext.tsx +89 -17
  66. package/src/contexts/WeavyContext.tsx +15 -5
  67. package/src/hooks/useBadge.ts +2 -6
  68. package/src/hooks/useChat.ts +3 -14
  69. package/src/hooks/useConversation.ts +1 -8
  70. package/src/hooks/useConversations.ts +1 -7
  71. package/src/hooks/useFileUploader.ts +6 -8
  72. package/src/hooks/useMembers.ts +1 -7
  73. package/src/hooks/useMessages.ts +1 -7
  74. package/src/hooks/useMutateChat.ts +6 -11
  75. package/src/hooks/useMutateConversation.ts +7 -10
  76. package/src/hooks/useMutateConversationName.ts +10 -12
  77. package/src/hooks/useMutateDeleteReaction.ts +3 -8
  78. package/src/hooks/useMutateExternalBlobs.ts +6 -11
  79. package/src/hooks/useMutateMeeting.ts +6 -11
  80. package/src/hooks/useMutateMembers.ts +8 -13
  81. package/src/hooks/useMutateMessage.ts +10 -15
  82. package/src/hooks/useMutatePinned.ts +3 -8
  83. package/src/hooks/useMutateReaction.ts +6 -12
  84. package/src/hooks/useMutateRead.ts +1 -10
  85. package/src/hooks/useMutateRemoveMembers.ts +7 -12
  86. package/src/hooks/useMutateTyping.ts +6 -11
  87. package/src/hooks/usePresence.ts +4 -5
  88. package/src/hooks/useReactions.ts +0 -1
  89. package/src/hooks/useSearchUsers.ts +1 -6
  90. package/src/hooks/useUser.ts +3 -14
  91. package/src/index.ts +2 -2
  92. package/src/scss/theme/_alert.scss +73 -0
  93. package/src/scss/theme/_appbar.scss +114 -0
  94. package/src/scss/theme/_attachments.scss +74 -0
  95. package/src/scss/theme/_avatar.scss +54 -0
  96. package/src/scss/theme/_badge.scss +47 -0
  97. package/src/scss/theme/_buttons.scss +96 -0
  98. package/src/scss/theme/_card.scss +7 -0
  99. package/src/scss/theme/_checkbox.scss +56 -0
  100. package/src/scss/theme/_cm-editor.scss +42 -0
  101. package/src/scss/theme/_code-vscode-dark.scss +184 -0
  102. package/src/scss/theme/_code-vscode-light.scss +179 -0
  103. package/src/scss/theme/_code.scss +12 -0
  104. package/src/scss/theme/_colors.scss +520 -0
  105. package/src/scss/theme/_config.scss +6 -0
  106. package/src/scss/theme/_content.scss +15 -0
  107. package/src/scss/theme/_conversations.scss +91 -0
  108. package/src/scss/theme/_dropdown.scss +86 -0
  109. package/src/scss/theme/_emoji.scss +5 -0
  110. package/src/scss/theme/_filebrowser.scss +26 -0
  111. package/src/scss/theme/_files.scss +140 -0
  112. package/src/scss/theme/_icons.scss +62 -0
  113. package/src/scss/theme/_image-grid.scss +63 -0
  114. package/src/scss/theme/_inputs.scss +28 -0
  115. package/src/scss/theme/_message-editor.scss +90 -0
  116. package/src/scss/theme/_messages.scss +238 -0
  117. package/src/scss/theme/_nav.scss +52 -0
  118. package/src/scss/theme/_overlays.scss +157 -0
  119. package/src/scss/theme/_pager.scss +19 -0
  120. package/src/scss/theme/_palette.scss +165 -0
  121. package/src/scss/theme/_pane.scss +16 -0
  122. package/src/scss/theme/_panels.scss +141 -0
  123. package/src/scss/theme/_picker-list.scss +37 -0
  124. package/src/scss/theme/_preview-code.scss +5 -0
  125. package/src/scss/theme/_preview-embed.scss +38 -0
  126. package/src/scss/theme/_preview-html.scss +7 -0
  127. package/src/scss/theme/_preview-icon.scss +41 -0
  128. package/src/scss/theme/_preview-image.scss +86 -0
  129. package/src/scss/theme/_preview-media.scss +28 -0
  130. package/src/scss/theme/_preview-pdf.scss +838 -0
  131. package/src/scss/theme/_preview-text.scss +5 -0
  132. package/src/scss/theme/_preview.scss +110 -0
  133. package/src/scss/theme/_reactions.scss +58 -0
  134. package/src/scss/theme/_reboot.scss +41 -0
  135. package/src/scss/theme/_root.scss +2 -0
  136. package/src/scss/theme/_scroll.scss +55 -0
  137. package/src/scss/theme/_search.scss +68 -0
  138. package/src/scss/theme/_spinner.scss +63 -0
  139. package/src/scss/theme/_tables.scss +53 -0
  140. package/src/scss/theme/_toasts.scss +47 -0
  141. package/src/scss/theme/_turbo.scss +17 -0
  142. package/src/scss/theme/_typing.scss +26 -0
  143. package/src/scss/theme/_variables.scss +139 -0
  144. package/src/scss/theme/bootstrap/_accordion.scss +146 -0
  145. package/src/scss/theme/bootstrap/_alert.scss +71 -0
  146. package/src/scss/theme/bootstrap/_badge.scss +38 -0
  147. package/src/scss/theme/bootstrap/_breadcrumb.scss +40 -0
  148. package/src/scss/theme/bootstrap/_button-group.scss +142 -0
  149. package/src/scss/theme/bootstrap/_buttons.scss +186 -0
  150. package/src/scss/theme/bootstrap/_card.scss +234 -0
  151. package/src/scss/theme/bootstrap/_carousel.scss +229 -0
  152. package/src/scss/theme/bootstrap/_close.scss +40 -0
  153. package/src/scss/theme/bootstrap/_containers.scss +41 -0
  154. package/src/scss/theme/bootstrap/_dropdown.scss +248 -0
  155. package/src/scss/theme/bootstrap/_forms.scss +9 -0
  156. package/src/scss/theme/bootstrap/_functions.scss +302 -0
  157. package/src/scss/theme/bootstrap/_grid.scss +33 -0
  158. package/src/scss/theme/bootstrap/_helpers.scss +10 -0
  159. package/src/scss/theme/bootstrap/_images.scss +42 -0
  160. package/src/scss/theme/bootstrap/_list-group.scss +191 -0
  161. package/src/scss/theme/bootstrap/_maps.scss +54 -0
  162. package/src/scss/theme/bootstrap/_mixins.scss +43 -0
  163. package/src/scss/theme/bootstrap/_modal.scss +237 -0
  164. package/src/scss/theme/bootstrap/_nav.scss +172 -0
  165. package/src/scss/theme/bootstrap/_navbar.scss +276 -0
  166. package/src/scss/theme/bootstrap/_offcanvas.scss +143 -0
  167. package/src/scss/theme/bootstrap/_pagination.scss +109 -0
  168. package/src/scss/theme/bootstrap/_placeholders.scss +51 -0
  169. package/src/scss/theme/bootstrap/_popover.scss +196 -0
  170. package/src/scss/theme/bootstrap/_progress.scss +59 -0
  171. package/src/scss/theme/bootstrap/_reboot.scss +610 -0
  172. package/src/scss/theme/bootstrap/_root.scss +73 -0
  173. package/src/scss/theme/bootstrap/_spinners.scss +85 -0
  174. package/src/scss/theme/bootstrap/_tables.scss +164 -0
  175. package/src/scss/theme/bootstrap/_toasts.scss +70 -0
  176. package/src/scss/theme/bootstrap/_tooltip.scss +120 -0
  177. package/src/scss/theme/bootstrap/_transitions.scss +27 -0
  178. package/src/scss/theme/bootstrap/_type.scss +106 -0
  179. package/src/scss/theme/bootstrap/_utilities.scss +647 -0
  180. package/src/scss/theme/bootstrap/_variables.scss +1633 -0
  181. package/src/scss/theme/bootstrap/forms/_floating-labels.scss +74 -0
  182. package/src/scss/theme/bootstrap/forms/_form-check.scss +175 -0
  183. package/src/scss/theme/bootstrap/forms/_form-control.scss +194 -0
  184. package/src/scss/theme/bootstrap/forms/_form-range.scss +91 -0
  185. package/src/scss/theme/bootstrap/forms/_form-select.scss +71 -0
  186. package/src/scss/theme/bootstrap/forms/_form-text.scss +11 -0
  187. package/src/scss/theme/bootstrap/forms/_input-group.scss +129 -0
  188. package/src/scss/theme/bootstrap/forms/_labels.scss +36 -0
  189. package/src/scss/theme/bootstrap/forms/_validation.scss +12 -0
  190. package/src/scss/theme/bootstrap/helpers/_clearfix.scss +3 -0
  191. package/src/scss/theme/bootstrap/helpers/_color-bg.scss +10 -0
  192. package/src/scss/theme/bootstrap/helpers/_colored-links.scss +12 -0
  193. package/src/scss/theme/bootstrap/helpers/_position.scss +36 -0
  194. package/src/scss/theme/bootstrap/helpers/_ratio.scss +26 -0
  195. package/src/scss/theme/bootstrap/helpers/_stacks.scss +15 -0
  196. package/src/scss/theme/bootstrap/helpers/_stretched-link.scss +15 -0
  197. package/src/scss/theme/bootstrap/helpers/_text-truncation.scss +7 -0
  198. package/src/scss/theme/bootstrap/helpers/_visually-hidden.scss +8 -0
  199. package/src/scss/theme/bootstrap/helpers/_vr.scss +8 -0
  200. package/src/scss/theme/bootstrap/mixins/_alert.scss +15 -0
  201. package/src/scss/theme/bootstrap/mixins/_backdrop.scss +14 -0
  202. package/src/scss/theme/bootstrap/mixins/_banner.scss +9 -0
  203. package/src/scss/theme/bootstrap/mixins/_border-radius.scss +78 -0
  204. package/src/scss/theme/bootstrap/mixins/_box-shadow.scss +18 -0
  205. package/src/scss/theme/bootstrap/mixins/_breakpoints.scss +127 -0
  206. package/src/scss/theme/bootstrap/mixins/_buttons.scss +70 -0
  207. package/src/scss/theme/bootstrap/mixins/_caret.scss +64 -0
  208. package/src/scss/theme/bootstrap/mixins/_clearfix.scss +9 -0
  209. package/src/scss/theme/bootstrap/mixins/_color-scheme.scss +7 -0
  210. package/src/scss/theme/bootstrap/mixins/_container.scss +11 -0
  211. package/src/scss/theme/bootstrap/mixins/_deprecate.scss +10 -0
  212. package/src/scss/theme/bootstrap/mixins/_forms.scss +152 -0
  213. package/src/scss/theme/bootstrap/mixins/_gradients.scss +47 -0
  214. package/src/scss/theme/bootstrap/mixins/_grid.scss +151 -0
  215. package/src/scss/theme/bootstrap/mixins/_image.scss +16 -0
  216. package/src/scss/theme/bootstrap/mixins/_list-group.scss +24 -0
  217. package/src/scss/theme/bootstrap/mixins/_lists.scss +7 -0
  218. package/src/scss/theme/bootstrap/mixins/_pagination.scss +10 -0
  219. package/src/scss/theme/bootstrap/mixins/_reset-text.scss +17 -0
  220. package/src/scss/theme/bootstrap/mixins/_resize.scss +6 -0
  221. package/src/scss/theme/bootstrap/mixins/_table-variants.scss +24 -0
  222. package/src/scss/theme/bootstrap/mixins/_text-truncate.scss +8 -0
  223. package/src/scss/theme/bootstrap/mixins/_transition.scss +26 -0
  224. package/src/scss/theme/bootstrap/mixins/_utilities.scss +97 -0
  225. package/src/scss/theme/bootstrap/mixins/_visually-hidden.scss +29 -0
  226. package/src/scss/theme/bootstrap/utilities/_api.scss +47 -0
  227. package/src/scss/theme/bootstrap/vendor/_rfs.scss +354 -0
  228. package/src/scss/theme/bs/_badge.scss +20 -0
  229. package/src/scss/theme/bs/_buttons.scss +185 -0
  230. package/src/scss/theme/bs/_dropdown.scss +86 -0
  231. package/src/scss/theme/bs/_forms.scss +161 -0
  232. package/src/scss/theme/bs/_list-group.scss +73 -0
  233. package/src/scss/theme/bs/_tables.scss +46 -0
  234. package/src/scss/theme/fonts/_fontmapping-roboto.scss +129 -0
  235. package/src/scss/theme/fonts/_fontmapping-segoe-ui.scss +127 -0
  236. package/src/scss/theme/fonts/_index.scss +2 -0
  237. package/src/scss/theme/mixins/_backdrop.scss +13 -0
  238. package/src/scss/theme/mixins/_palette.scss +165 -0
  239. package/src/scss/theme/mixins/_position.scss +33 -0
  240. package/src/scss/theme/mixins/_scrollbar.scss +110 -0
  241. package/src/scss/weavy-chat.scss +32 -0
  242. package/src/scss/weavy-messenger.scss +61 -0
  243. package/src/scss/weavy.scss +2 -0
  244. package/src/types/Chat.ts +1 -1
  245. package/src/types/Messenger.ts +1 -1
  246. package/src/types/types.ts +20 -11
  247. package/src/ui/Button.tsx +3 -4
  248. package/src/ui/Dropdown.tsx +4 -5
  249. package/src/ui/Icon.tsx +75 -39
  250. package/src/ui/Overlay.tsx +2 -3
  251. package/src/ui/Spinner.tsx +18 -0
  252. package/src/utils/fileUtilities.ts +166 -72
  253. package/src/utils/scrollbarDetection.js +48 -0
  254. package/dist/cjs/types/utils/styles.d.ts +0 -17
  255. package/dist/esm/types/utils/styles.d.ts +0 -17
  256. package/src/utils/styles.ts +0 -42
@@ -0,0 +1,56 @@
1
+ @use "config" as *;
2
+
3
+ // Include mixin in the relative class that should be suffixed with -check
4
+ @mixin button-check {
5
+
6
+ // From bootstrap/scss/forms/_form_check
7
+ &-check {
8
+ position: absolute;
9
+ clip: rect(0, 0, 0, 0);
10
+ pointer-events: none;
11
+
12
+ &[disabled] + &,
13
+ &:disabled + & {
14
+ pointer-events: none;
15
+ filter: none;
16
+ opacity: $form-check-btn-check-disabled-opacity;
17
+ }
18
+ }
19
+
20
+ // From bootstrap/scss/_buttons
21
+ &-check:focus + &,
22
+ &:focus {
23
+ outline: 0;
24
+ box-shadow: $btn-focus-box-shadow;
25
+ }
26
+ &-check:checked + &,
27
+ &-check:active + & {
28
+ @include box-shadow($btn-active-box-shadow);
29
+
30
+ &:focus {
31
+ @include box-shadow($btn-focus-box-shadow, $btn-active-box-shadow);
32
+ }
33
+ }
34
+
35
+ // Custom icons
36
+ &-check + .#{wy}-button-icon {
37
+ svg:last-child {
38
+ display: none;
39
+ }
40
+ }
41
+
42
+ &-check:checked + .#{wy}-button-icon {
43
+ svg:first-child {
44
+ display: none;
45
+ }
46
+
47
+ svg:last-child {
48
+ display: inline-block;
49
+ }
50
+ }
51
+ }
52
+
53
+ // Create a suffixed subclass from .wy-button -> .wy-button-check
54
+ .wy-button {
55
+ @include button-check;
56
+ }
@@ -0,0 +1,42 @@
1
+ @use "config" as *;
2
+ @use "mixins/scrollbar";
3
+ @use "message-editor";
4
+
5
+ .ͼ1 .cm-scroller {
6
+ font-family: unset;
7
+ line-height: 1.25;
8
+ }
9
+
10
+ .ͼ1 .cm-widgetBuffer {
11
+ vertical-align: unset;
12
+ }
13
+
14
+ .cm-editor {
15
+ @extend %message-editor-textfield;
16
+
17
+ &.cm-focused {
18
+ /* default theme in codemirror seems difficult to override */
19
+ outline: $light solid 1px !important;
20
+ }
21
+
22
+ .cm-content {
23
+ @extend %message-editor-textcontent;
24
+ }
25
+
26
+ .cm-scroller {
27
+ overflow: auto;
28
+
29
+ .wy-scrollbars & {
30
+ @include scrollbar.custom-scrollbar;
31
+ }
32
+ }
33
+ }
34
+
35
+ .wy-is-invalid + [data-editor-target] .cm-editor {
36
+ padding-right: $input-height-inner;
37
+ background-image: escape-svg($form-feedback-icon-invalid);
38
+ background-repeat: no-repeat;
39
+ background-position: right $input-height-inner-quarter top $input-height-inner-quarter;
40
+ background-size: $input-height-inner-half $input-height-inner-half;
41
+ outline-color: $form-feedback-invalid-color !important;
42
+ }
@@ -0,0 +1,184 @@
1
+ // Theme generated from VS Code using https://prism.dotenv.dev/
2
+
3
+ code[class*="language-"],
4
+ pre[class*="language-"] {
5
+ color: #d4d4d4;
6
+ font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
7
+ text-align: left;
8
+ white-space: pre;
9
+ word-spacing: normal;
10
+ word-break: normal;
11
+ word-wrap: normal;
12
+ line-height: 1.5;
13
+
14
+ -moz-tab-size: 4;
15
+ -o-tab-size: 4;
16
+ tab-size: 4;
17
+
18
+ -webkit-hyphens: none;
19
+ -moz-hyphens: none;
20
+ -ms-hyphens: none;
21
+ hyphens: none;
22
+ }
23
+
24
+ /*pre[class*="language-"]::-moz-selection,
25
+ pre[class*="language-"] ::-moz-selection,
26
+ code[class*="language-"]::-moz-selection,
27
+ code[class*="language-"] ::-moz-selection {
28
+ text-shadow: none;
29
+ background: #1e1e1e;
30
+ }
31
+
32
+ pre[class*="language-"]::selection,
33
+ pre[class*="language-"] ::selection,
34
+ code[class*="language-"]::selection,
35
+ code[class*="language-"] ::selection {
36
+ text-shadow: none;
37
+ background: #1e1e1e;
38
+ }*/
39
+
40
+ @media print {
41
+ code[class*="language-"],
42
+ pre[class*="language-"] {
43
+ text-shadow: none;
44
+ }
45
+ }
46
+
47
+ /* Code blocks */
48
+ pre[class*="language-"] {
49
+ padding: 1em;
50
+ margin: 0.5em 0;
51
+ overflow: auto;
52
+ }
53
+
54
+ :not(pre) > code[class*="language-"],
55
+ pre[class*="language-"] {
56
+ color: white;
57
+ background: #1e1e1e;
58
+ }
59
+
60
+ :not(pre) > code[class*="language-"] {
61
+ padding: 0.1em;
62
+ border-radius: 0.3em;
63
+ white-space: normal;
64
+ }
65
+
66
+
67
+ .token.prolog {
68
+ color: #8080ff;
69
+
70
+ }
71
+
72
+ .token.comment {
73
+ color: #6A9955;
74
+
75
+ }
76
+
77
+ .token.punctuation {
78
+ color: #6A9955;
79
+
80
+ }
81
+
82
+ .token.builtin {
83
+ color: #4FC1FF;
84
+
85
+ }
86
+
87
+ .token.number {
88
+ color: #B5CEA8;
89
+
90
+ }
91
+
92
+ .token.variable {
93
+ color: #B5CEA8;
94
+
95
+ }
96
+
97
+ .token.inserted {
98
+ color: #B5CEA8;
99
+
100
+ }
101
+
102
+ .token.operator {
103
+ color: #D4D4D4;
104
+
105
+ }
106
+
107
+ .token.constant {
108
+ color: #646695;
109
+
110
+ }
111
+
112
+ .token.hexcode {
113
+ color: #646695;
114
+
115
+ }
116
+
117
+ .token.tag {
118
+ color: #569CD6;
119
+
120
+ }
121
+
122
+ .token.changed {
123
+ color: #569CD6;
124
+
125
+ }
126
+
127
+ .token.function {
128
+ color: #569CD6;
129
+
130
+ }
131
+
132
+ .token.keyword {
133
+ color: #569CD6;
134
+
135
+ }
136
+
137
+ .token.attr-name {
138
+ color: #9CDCFE;
139
+
140
+ }
141
+
142
+ .token.selector {
143
+ color: #9CDCFE;
144
+
145
+ }
146
+
147
+ .token.property {
148
+ color: #9CDCFE;
149
+
150
+ }
151
+
152
+ .token.deleted {
153
+ color: #CE9178;
154
+
155
+ }
156
+
157
+ .token.string {
158
+ color: #CE9178;
159
+
160
+ }
161
+
162
+ .token.regex {
163
+ color: #D16969;
164
+
165
+ }
166
+
167
+ .token.char {
168
+ color: #D16969;
169
+
170
+ }
171
+
172
+ .token.class-name {
173
+ color: #4EC9B0;
174
+
175
+ }
176
+
177
+ .token.important,
178
+ .token.bold {
179
+ font-weight: bold;
180
+ }
181
+
182
+ .token.italic {
183
+ font-style: italic;
184
+ }
@@ -0,0 +1,179 @@
1
+ // Theme generated from VS Code using https://prism.dotenv.dev/
2
+
3
+ code[class*="language-"],
4
+ pre[class*="language-"] {
5
+ color: #000000;
6
+ font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
7
+ text-align: left;
8
+ white-space: pre;
9
+ word-spacing: normal;
10
+ word-break: normal;
11
+ word-wrap: normal;
12
+ line-height: 1.5;
13
+
14
+ -moz-tab-size: 4;
15
+ -o-tab-size: 4;
16
+ tab-size: 4;
17
+
18
+ -webkit-hyphens: none;
19
+ -moz-hyphens: none;
20
+ -ms-hyphens: none;
21
+ hyphens: none;
22
+ }
23
+
24
+ /*pre[class*="language-"]::-moz-selection,
25
+ pre[class*="language-"] ::-moz-selection,
26
+ code[class*="language-"]::-moz-selection,
27
+ code[class*="language-"] ::-moz-selection {
28
+ text-shadow: none;
29
+ background: #ffffff;
30
+ }
31
+
32
+ pre[class*="language-"]::selection,
33
+ pre[class*="language-"] ::selection,
34
+ code[class*="language-"]::selection,
35
+ code[class*="language-"] ::selection {
36
+ text-shadow: none;
37
+ background: #ffffff;
38
+ }*/
39
+
40
+ @media print {
41
+ code[class*="language-"],
42
+ pre[class*="language-"] {
43
+ text-shadow: none;
44
+ }
45
+ }
46
+
47
+ /* Code blocks */
48
+ pre[class*="language-"] {
49
+ padding: 1em;
50
+ margin: 0.5em 0;
51
+ overflow: auto;
52
+ }
53
+
54
+ :not(pre) > code[class*="language-"],
55
+ pre[class*="language-"] {
56
+ color: white;
57
+ background: #ffffff;
58
+ }
59
+
60
+ :not(pre) > code[class*="language-"] {
61
+ padding: 0.1em;
62
+ border-radius: 0.3em;
63
+ white-space: normal;
64
+ }
65
+
66
+
67
+ .token.comment {
68
+ color: #008000;
69
+
70
+ }
71
+
72
+ .token.builtin {
73
+ color: #0070C1;
74
+
75
+ }
76
+
77
+ .token.number {
78
+ color: #098658;
79
+
80
+ }
81
+
82
+ .token.variable {
83
+ color: #098658;
84
+
85
+ }
86
+
87
+ .token.inserted {
88
+ color: #098658;
89
+
90
+ }
91
+
92
+ .token.operator {
93
+ color: #000000;
94
+
95
+ }
96
+
97
+ .token.constant {
98
+ color: #811F3F;
99
+
100
+ }
101
+
102
+ .token.hexcode {
103
+ color: #811F3F;
104
+
105
+ }
106
+
107
+ .token.regex {
108
+ color: #811F3F;
109
+
110
+ }
111
+
112
+ .token.char {
113
+ color: #811F3F;
114
+
115
+ }
116
+
117
+ .token.tag {
118
+ color: #800000;
119
+
120
+ }
121
+
122
+ .token.attr-name {
123
+ color: #FF0000;
124
+
125
+ }
126
+
127
+ .token.selector {
128
+ color: #FF0000;
129
+
130
+ }
131
+
132
+ .token.property {
133
+ color: #FF0000;
134
+
135
+ }
136
+
137
+ .token.deleted {
138
+ color: #A31515;
139
+
140
+ }
141
+
142
+ .token.string {
143
+ color: #A31515;
144
+
145
+ }
146
+
147
+ .token.changed {
148
+ color: #0451A5;
149
+
150
+ }
151
+
152
+ .token.punctuation {
153
+ color: #0451A5;
154
+
155
+ }
156
+
157
+ .token.function {
158
+ color: #0000FF;
159
+
160
+ }
161
+
162
+ .token.keyword {
163
+ color: #0000FF;
164
+
165
+ }
166
+
167
+ .token.class-name {
168
+ color: #267F99;
169
+
170
+ }
171
+
172
+ .token.important,
173
+ .token.bold {
174
+ font-weight: bold;
175
+ }
176
+
177
+ .token.italic {
178
+ font-style: italic;
179
+ }
@@ -0,0 +1,12 @@
1
+ @use "config" as *;
2
+
3
+ // Themes generated from VS Code using https://prism.dotenv.dev/
4
+ .wy-code {
5
+ :not(.wy-dark) &, &:not(.wy-dark) {
6
+ @import "code-vscode-light";
7
+ }
8
+
9
+ .wy-dark &, &.wy-dark {
10
+ @import "code-vscode-dark";
11
+ }
12
+ }