@dodona/papyros 1.0.1 → 2.0.0-beta.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/LICENSE +0 -0
- package/README.md +0 -0
- package/dist/App.d.ts +1 -1
- package/dist/App.js +73 -0
- package/dist/App.js.map +1 -0
- package/dist/Backend.d.ts +0 -48
- package/dist/Backend.js +76 -0
- package/dist/Backend.js.map +1 -0
- package/dist/BackendEvent.d.ts +0 -0
- package/dist/BackendEvent.js +24 -0
- package/dist/BackendEvent.js.map +1 -0
- package/dist/BackendEventQueue.d.ts +0 -0
- package/dist/BackendEventQueue.js +135 -0
- package/dist/BackendEventQueue.js.map +1 -0
- package/dist/BackendManager.d.ts +1 -1
- package/dist/BackendManager.js +94 -0
- package/dist/BackendManager.js.map +1 -0
- package/dist/CodeRunner.d.ts +0 -0
- package/dist/CodeRunner.js +372 -0
- package/dist/CodeRunner.js.map +1 -0
- package/dist/Constants.d.ts +0 -0
- package/dist/Constants.js +36 -0
- package/dist/Constants.js.map +1 -0
- package/dist/InputManager.d.ts +0 -0
- package/dist/InputManager.js +102 -0
- package/dist/InputManager.js.map +1 -0
- package/dist/InputServiceWorker.d.ts +0 -0
- package/dist/InputServiceWorker.js +37 -0
- package/dist/InputServiceWorker.js.map +1 -0
- package/dist/Library.d.ts +2 -2
- package/dist/Library.js +9 -1
- package/dist/Library.js.map +1 -0
- package/dist/OutputManager.d.ts +0 -0
- package/dist/OutputManager.js +161 -0
- package/dist/OutputManager.js.map +1 -0
- package/dist/Papyros.css +563 -0
- package/dist/Papyros.d.ts +0 -1
- package/dist/Papyros.js +268 -0
- package/dist/Papyros.js.map +1 -0
- package/dist/ProgrammingLanguage.d.ts +0 -0
- package/dist/ProgrammingLanguage.js +9 -0
- package/dist/ProgrammingLanguage.js.map +1 -0
- package/dist/Translations.d.ts +74 -74
- package/dist/Translations.js +164 -0
- package/dist/Translations.js.map +1 -0
- package/dist/editor/BatchInputEditor.d.ts +0 -0
- package/dist/editor/BatchInputEditor.js +71 -0
- package/dist/editor/BatchInputEditor.js.map +1 -0
- package/dist/editor/CodeEditor.d.ts +0 -5
- package/dist/editor/CodeEditor.js +180 -0
- package/dist/editor/CodeEditor.js.map +1 -0
- package/dist/editor/CodeMirrorEditor.d.ts +0 -0
- package/dist/editor/CodeMirrorEditor.js +168 -0
- package/dist/editor/CodeMirrorEditor.js.map +1 -0
- package/dist/editor/DarkTheme.d.ts +0 -0
- package/dist/editor/DarkTheme.js +73 -0
- package/dist/editor/DarkTheme.js.map +1 -0
- package/dist/editor/Gutters.d.ts +0 -0
- package/dist/editor/Gutters.js +162 -0
- package/dist/editor/Gutters.js.map +1 -0
- package/dist/examples/Examples.d.ts +0 -0
- package/dist/examples/Examples.js +23 -0
- package/dist/examples/Examples.js.map +1 -0
- package/dist/examples/JavaScriptExamples.d.ts +0 -0
- package/dist/examples/JavaScriptExamples.js +16 -0
- package/dist/examples/JavaScriptExamples.js.map +1 -0
- package/dist/examples/PythonExamples.d.ts +0 -0
- package/dist/examples/PythonExamples.js +163 -0
- package/dist/examples/PythonExamples.js.map +1 -0
- package/dist/input/BatchInputHandler.d.ts +0 -0
- package/dist/input/BatchInputHandler.js +112 -0
- package/dist/input/BatchInputHandler.js.map +1 -0
- package/dist/input/InteractiveInputHandler.d.ts +0 -0
- package/dist/input/InteractiveInputHandler.js +90 -0
- package/dist/input/InteractiveInputHandler.js.map +1 -0
- package/dist/input/UserInputHandler.d.ts +0 -0
- package/dist/input/UserInputHandler.js +40 -0
- package/dist/input/UserInputHandler.js.map +1 -0
- package/dist/util/HTMLShapes.d.ts +0 -0
- package/dist/util/HTMLShapes.js +25 -0
- package/dist/util/HTMLShapes.js.map +1 -0
- package/dist/util/Logging.d.ts +0 -0
- package/dist/util/Logging.js +30 -0
- package/dist/util/Logging.js.map +1 -0
- package/dist/util/Rendering.d.ts +0 -0
- package/dist/util/Rendering.js +139 -0
- package/dist/util/Rendering.js.map +1 -0
- package/dist/util/Util.d.ts +1 -1
- package/dist/util/Util.js +148 -0
- package/dist/util/Util.js.map +1 -0
- package/dist/workers/input/InputWorker.d.ts +0 -0
- package/dist/workers/input/InputWorker.js +63 -1
- package/dist/workers/input/InputWorker.js.map +1 -0
- package/dist/workers/javascript/JavaScriptWorker.d.ts +39 -0
- package/dist/workers/javascript/JavaScriptWorker.js +148 -0
- package/dist/workers/javascript/JavaScriptWorker.js.map +1 -0
- package/dist/workers/javascript/worker.d.ts +1 -0
- package/dist/workers/javascript/worker.js +5 -0
- package/dist/workers/javascript/worker.js.map +1 -0
- package/dist/workers/python/PythonWorker.d.ts +31 -0
- package/dist/workers/python/PythonWorker.js +106 -0
- package/dist/workers/python/PythonWorker.js.map +1 -0
- package/dist/workers/python/python_package.tar.gz +0 -0
- package/dist/workers/python/worker.d.ts +1 -0
- package/dist/workers/python/worker.js +5 -0
- package/dist/workers/python/worker.js.map +1 -0
- package/package.json +45 -42
- package/dist/workers/javascript/JavaScriptWorker.worker.d.ts +0 -2
- package/dist/workers/python/PythonWorker.worker.d.ts +0 -2
package/dist/Papyros.css
ADDED
|
@@ -0,0 +1,563 @@
|
|
|
1
|
+
/* Utitilies are prefixed by Tailwind */
|
|
2
|
+
|
|
3
|
+
._tw-col-span-1 {
|
|
4
|
+
grid-column: span 1 / span 1 !important;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
._tw-col-span-2 {
|
|
8
|
+
grid-column: span 2 / span 2 !important;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
._tw-col-span-6 {
|
|
12
|
+
grid-column: span 6 / span 6 !important;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
._tw-m-10 {
|
|
16
|
+
margin: 2.5rem !important;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
._tw-m-2 {
|
|
20
|
+
margin: 0.5rem !important;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
._tw-mx-1 {
|
|
24
|
+
margin-left: 0.25rem !important;
|
|
25
|
+
margin-right: 0.25rem !important;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
._tw-my-1 {
|
|
29
|
+
margin-top: 0.25rem !important;
|
|
30
|
+
margin-bottom: 0.25rem !important;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
._tw-mr-0 {
|
|
34
|
+
margin-right: 0px !important;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
._tw-mr-0\.5 {
|
|
38
|
+
margin-right: 0.125rem !important;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
._tw-mr-3 {
|
|
42
|
+
margin-right: 0.75rem !important;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
._tw-box-border {
|
|
46
|
+
box-sizing: border-box !important;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
._tw-flex {
|
|
50
|
+
display: flex !important;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
._tw-grid {
|
|
54
|
+
display: grid !important;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
._tw-h-\[10px\] {
|
|
58
|
+
height: 10px !important;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
._tw-h-\[20px\] {
|
|
62
|
+
height: 20px !important;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
._tw-h-full {
|
|
66
|
+
height: 100% !important;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
._tw-max-h-1\/5 {
|
|
70
|
+
max-height: 16vh !important;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
._tw-max-h-3\/5 {
|
|
74
|
+
max-height: 48vh !important;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
._tw-max-h-full {
|
|
78
|
+
max-height: 80vh !important;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
._tw-max-h-screen {
|
|
82
|
+
max-height: 100vh !important;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
._tw-min-h-1\/4 {
|
|
86
|
+
min-height: 20vh !important;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
._tw-min-h-screen {
|
|
90
|
+
min-height: 100vh !important;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
._tw-w-\[10px\] {
|
|
94
|
+
width: 10px !important;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
._tw-w-\[20px\] {
|
|
98
|
+
width: 20px !important;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
._tw-w-full {
|
|
102
|
+
width: 100% !important;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
._tw-min-w-\[60px\] {
|
|
106
|
+
min-width: 60px !important;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
@keyframes _tw-spin {
|
|
110
|
+
to {
|
|
111
|
+
transform: rotate(360deg);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
._tw-animate-spin {
|
|
116
|
+
animation: _tw-spin 1s linear infinite !important;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
._tw-grid-cols-2 {
|
|
120
|
+
grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
._tw-grid-cols-8 {
|
|
124
|
+
grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
._tw-flex-row {
|
|
128
|
+
flex-direction: row !important;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
._tw-flex-row-reverse {
|
|
132
|
+
flex-direction: row-reverse !important;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
._tw-items-center {
|
|
136
|
+
align-items: center !important;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
._tw-gap-4 {
|
|
140
|
+
gap: 1rem !important;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
._tw-overflow-auto {
|
|
144
|
+
overflow: auto !important;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
._tw-overflow-y-hidden {
|
|
148
|
+
overflow-y: hidden !important;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
._tw-whitespace-pre {
|
|
152
|
+
white-space: pre !important;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
._tw-rounded-full {
|
|
156
|
+
border-radius: 9999px !important;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
._tw-rounded-lg {
|
|
160
|
+
border-radius: 0.5rem !important;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
._tw-border {
|
|
164
|
+
border-width: 1px !important;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
._tw-border-2 {
|
|
168
|
+
border-width: 2px !important;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
._tw-border-b-2 {
|
|
172
|
+
border-bottom-width: 2px !important;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
._tw-border-solid {
|
|
176
|
+
border-style: solid !important;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
._tw-border-blue-500 {
|
|
180
|
+
--tw-border-opacity: 1 !important;
|
|
181
|
+
border-color: rgb(59 130 246 / var(--tw-border-opacity)) !important;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
._tw-border-gray-200 {
|
|
185
|
+
--tw-border-opacity: 1 !important;
|
|
186
|
+
border-color: rgb(229 231 235 / var(--tw-border-opacity)) !important;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
._tw-border-red-500 {
|
|
190
|
+
--tw-border-opacity: 1 !important;
|
|
191
|
+
border-color: rgb(239 68 68 / var(--tw-border-opacity)) !important;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
._tw-border-b-red-500 {
|
|
195
|
+
--tw-border-opacity: 1 !important;
|
|
196
|
+
border-bottom-color: rgb(239 68 68 / var(--tw-border-opacity)) !important;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
._tw-bg-blue-500 {
|
|
200
|
+
--tw-bg-opacity: 1 !important;
|
|
201
|
+
background-color: rgb(59 130 246 / var(--tw-bg-opacity)) !important;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
._tw-bg-neutral-bg {
|
|
205
|
+
--tw-bg-opacity: 1 !important;
|
|
206
|
+
background-color: rgb(69 90 100 / var(--tw-bg-opacity)) !important;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
._tw-bg-red-500 {
|
|
210
|
+
--tw-bg-opacity: 1 !important;
|
|
211
|
+
background-color: rgb(239 68 68 / var(--tw-bg-opacity)) !important;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
._tw-bg-slate-200 {
|
|
215
|
+
--tw-bg-opacity: 1 !important;
|
|
216
|
+
background-color: rgb(226 232 240 / var(--tw-bg-opacity)) !important;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
._tw-bg-slate-500 {
|
|
220
|
+
--tw-bg-opacity: 1 !important;
|
|
221
|
+
background-color: rgb(100 116 139 / var(--tw-bg-opacity)) !important;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
._tw-bg-white {
|
|
225
|
+
--tw-bg-opacity: 1 !important;
|
|
226
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity)) !important;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
._tw-p-4 {
|
|
230
|
+
padding: 1rem !important;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
._tw-px-1 {
|
|
234
|
+
padding-left: 0.25rem !important;
|
|
235
|
+
padding-right: 0.25rem !important;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
._tw-px-2 {
|
|
239
|
+
padding-left: 0.5rem !important;
|
|
240
|
+
padding-right: 0.5rem !important;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
._tw-py-1 {
|
|
244
|
+
padding-top: 0.25rem !important;
|
|
245
|
+
padding-bottom: 0.25rem !important;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
._tw-text-center {
|
|
249
|
+
text-align: center !important;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
._tw-text-4xl {
|
|
253
|
+
font-size: 2.25rem !important;
|
|
254
|
+
line-height: 2.5rem !important;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
._tw-text-lg {
|
|
258
|
+
font-size: 1.125rem !important;
|
|
259
|
+
line-height: 1.75rem !important;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
._tw-font-bold {
|
|
263
|
+
font-weight: 700 !important;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
._tw-font-medium {
|
|
267
|
+
font-weight: 500 !important;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
._tw-text-\[\#FF8F00\] {
|
|
271
|
+
--tw-text-opacity: 1 !important;
|
|
272
|
+
color: rgb(255 143 0 / var(--tw-text-opacity)) !important;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
._tw-text-black {
|
|
276
|
+
--tw-text-opacity: 1 !important;
|
|
277
|
+
color: rgb(0 0 0 / var(--tw-text-opacity)) !important;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
._tw-text-blue-500 {
|
|
281
|
+
--tw-text-opacity: 1 !important;
|
|
282
|
+
color: rgb(59 130 246 / var(--tw-text-opacity)) !important;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
._tw-text-red-500 {
|
|
286
|
+
--tw-text-opacity: 1 !important;
|
|
287
|
+
color: rgb(239 68 68 / var(--tw-text-opacity)) !important;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
._tw-text-white {
|
|
291
|
+
--tw-text-opacity: 1 !important;
|
|
292
|
+
color: rgb(255 255 255 / var(--tw-text-opacity)) !important;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
._tw-border-b-red-500 {
|
|
296
|
+
border-bottom-color: #ef4444 !important;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
/* Tailwind base css that is used in Papyros */
|
|
300
|
+
|
|
301
|
+
/* Source: node_modules/tailwindcss/src/css/preflight.css */
|
|
302
|
+
|
|
303
|
+
/*
|
|
304
|
+
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
|
|
305
|
+
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
|
|
306
|
+
*/
|
|
307
|
+
|
|
308
|
+
.tailwind *,
|
|
309
|
+
.tailwind ::before,
|
|
310
|
+
.tailwind ::after {
|
|
311
|
+
box-sizing: border-box;
|
|
312
|
+
/* 1 */
|
|
313
|
+
border-width: 0;
|
|
314
|
+
/* 2 */
|
|
315
|
+
border-style: solid;
|
|
316
|
+
/* 2 */
|
|
317
|
+
border-color: #e5e7eb;
|
|
318
|
+
/* 2 */
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
.tailwind ::before,
|
|
322
|
+
.tailwind ::after {
|
|
323
|
+
--tw-content: '';
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/*
|
|
327
|
+
1. Use a consistent sensible line-height in all browsers.
|
|
328
|
+
2. Prevent adjustments of font size after orientation changes in iOS.
|
|
329
|
+
3. Use a more readable tab size.
|
|
330
|
+
4. Use the user's configured `sans` font-family by default.
|
|
331
|
+
*/
|
|
332
|
+
|
|
333
|
+
.tailwind-html {
|
|
334
|
+
line-height: 1.5;
|
|
335
|
+
/* 1 */
|
|
336
|
+
-webkit-text-size-adjust: 100%;
|
|
337
|
+
/* 2 */
|
|
338
|
+
-moz-tab-size: 4;
|
|
339
|
+
/* 3 */
|
|
340
|
+
-o-tab-size: 4;
|
|
341
|
+
tab-size: 4;
|
|
342
|
+
/* 3 */
|
|
343
|
+
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
344
|
+
/* 4 */
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
/*
|
|
348
|
+
1. Remove the margin in all browsers.
|
|
349
|
+
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
|
|
350
|
+
*/
|
|
351
|
+
|
|
352
|
+
.tailwind-body {
|
|
353
|
+
margin: 0;
|
|
354
|
+
/* 1 */
|
|
355
|
+
line-height: inherit;
|
|
356
|
+
/* 2 */
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
/*
|
|
360
|
+
1. Change the font styles in all browsers.
|
|
361
|
+
2. Remove the margin in Firefox and Safari.
|
|
362
|
+
3. Remove default padding in all browsers.
|
|
363
|
+
*/
|
|
364
|
+
|
|
365
|
+
.tailwind button,
|
|
366
|
+
.tailwind input,
|
|
367
|
+
.tailwind select,
|
|
368
|
+
.tailwind textarea {
|
|
369
|
+
font-family: inherit;
|
|
370
|
+
/* 1 */
|
|
371
|
+
font-size: 100%;
|
|
372
|
+
/* 1 */
|
|
373
|
+
line-height: inherit;
|
|
374
|
+
/* 1 */
|
|
375
|
+
color: inherit;
|
|
376
|
+
/* 1 */
|
|
377
|
+
margin: 0;
|
|
378
|
+
/* 2 */
|
|
379
|
+
padding: 0;
|
|
380
|
+
/* 3 */
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
/*
|
|
384
|
+
Use the modern Firefox focus style for all focusable elements.
|
|
385
|
+
*/
|
|
386
|
+
|
|
387
|
+
.tailwind :-moz-focusring {
|
|
388
|
+
outline: auto;
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
/*
|
|
392
|
+
Removes the default spacing and border for appropriate elements.
|
|
393
|
+
*/
|
|
394
|
+
|
|
395
|
+
.tailwind p {
|
|
396
|
+
margin: 0;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
/*
|
|
400
|
+
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
|
|
401
|
+
2. Set the default placeholder color to the user's configured gray 400 color.
|
|
402
|
+
*/
|
|
403
|
+
|
|
404
|
+
.tailwind input::-moz-placeholder, .tailwind textarea::-moz-placeholder {
|
|
405
|
+
opacity: 1;
|
|
406
|
+
/* 1 */
|
|
407
|
+
color: #9ca3af;
|
|
408
|
+
/* 2 */
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
.tailwind input::placeholder,
|
|
412
|
+
.tailwind textarea::placeholder {
|
|
413
|
+
opacity: 1;
|
|
414
|
+
/* 1 */
|
|
415
|
+
color: #9ca3af;
|
|
416
|
+
/* 2 */
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
/* Ensure the default browser behavior of the `hidden` attribute. */
|
|
420
|
+
|
|
421
|
+
[hidden] {
|
|
422
|
+
/* Make it invisible while keeping page layout */
|
|
423
|
+
visibility: hidden !important;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
/* CodeMirror search panel close button*/
|
|
427
|
+
|
|
428
|
+
.cm-search > [name="close"] {
|
|
429
|
+
cursor: pointer;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
.cm-content,
|
|
433
|
+
.papyros-font-family {
|
|
434
|
+
font-family: Monaco, Menlo, "Ubuntu Mono", Consolas, source-code-pro, monospace;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
/* Override top border generated by @codemirror/one-dark-theme */
|
|
438
|
+
|
|
439
|
+
.ͼo .cm-panels.cm-panels-bottom {
|
|
440
|
+
/* dark-mode-content in tailwind.config.js*/
|
|
441
|
+
border-color: #37474F;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
/* Change styling of tooltips generated by CodeMirror */
|
|
445
|
+
|
|
446
|
+
.cm-completionInfo {
|
|
447
|
+
white-space: pre;
|
|
448
|
+
overflow: auto;
|
|
449
|
+
resize: both;
|
|
450
|
+
/* override default max width/height to allow resizing */
|
|
451
|
+
max-width: 600px !important;
|
|
452
|
+
max-height: 600px !important;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
/*
|
|
456
|
+
Disable resizing left completion infos as its movements are mirrored
|
|
457
|
+
According to https://github.com/codemirror/codemirror.next/issues/815
|
|
458
|
+
this feature is out of scope for CodeMirror
|
|
459
|
+
*/
|
|
460
|
+
|
|
461
|
+
.cm-completionInfo-left {
|
|
462
|
+
resize: none;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
/* Add placeholder to an empty element */
|
|
466
|
+
|
|
467
|
+
.with-placeholder:empty:before {
|
|
468
|
+
content: attr(data-placeholder);
|
|
469
|
+
/* same value as placeholder-grey in tailwind.config.js */
|
|
470
|
+
color: #888;
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
/* Also override CodeMirror buttons to use this style */
|
|
474
|
+
|
|
475
|
+
.papyros-button, .cm-button {
|
|
476
|
+
margin: 0.25rem !important;
|
|
477
|
+
cursor: pointer !important;
|
|
478
|
+
border-radius: 0.5rem !important;
|
|
479
|
+
padding-left: 0.75rem !important;
|
|
480
|
+
padding-right: 0.75rem !important;
|
|
481
|
+
padding-top: 0.25rem !important;
|
|
482
|
+
padding-bottom: 0.25rem !important;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
.papyros-button:disabled, .cm-button:disabled {
|
|
486
|
+
cursor: not-allowed !important;
|
|
487
|
+
opacity: 0.5 !important;
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
/* Round the corners of textfields created by CodeMirror */
|
|
491
|
+
|
|
492
|
+
.cm-textfield {
|
|
493
|
+
border-radius: 0.5rem !important;
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
.placeholder\:_tw-text-placeholder-grey::-moz-placeholder {
|
|
497
|
+
--tw-text-opacity: 1 !important;
|
|
498
|
+
color: rgb(136 136 136 / var(--tw-text-opacity)) !important;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
.placeholder\:_tw-text-placeholder-grey::placeholder {
|
|
502
|
+
--tw-text-opacity: 1 !important;
|
|
503
|
+
color: rgb(136 136 136 / var(--tw-text-opacity)) !important;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.hover\:_tw-cursor-pointer:hover {
|
|
507
|
+
cursor: pointer !important;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
.focus\:_tw-outline-none:focus {
|
|
511
|
+
outline: 2px solid transparent !important;
|
|
512
|
+
outline-offset: 2px !important;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
.focus\:_tw-ring-1:focus {
|
|
516
|
+
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color) !important;
|
|
517
|
+
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color) !important;
|
|
518
|
+
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000) !important;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
.focus\:_tw-ring-blue-500:focus {
|
|
522
|
+
--tw-ring-opacity: 1 !important;
|
|
523
|
+
--tw-ring-color: rgb(59 130 246 / var(--tw-ring-opacity)) !important;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
.disabled\:_tw-cursor-not-allowed:disabled {
|
|
527
|
+
cursor: not-allowed !important;
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
:is(._tw-dark .dark\:_tw-border-dark-mode-blue) {
|
|
531
|
+
--tw-border-opacity: 1 !important;
|
|
532
|
+
border-color: rgb(2 119 189 / var(--tw-border-opacity)) !important;
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
:is(._tw-dark .dark\:_tw-border-dark-mode-content) {
|
|
536
|
+
--tw-border-opacity: 1 !important;
|
|
537
|
+
border-color: rgb(55 71 79 / var(--tw-border-opacity)) !important;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
:is(._tw-dark .dark\:_tw-bg-dark-mode-bg) {
|
|
541
|
+
--tw-bg-opacity: 1 !important;
|
|
542
|
+
background-color: rgb(38 50 56 / var(--tw-bg-opacity)) !important;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
:is(._tw-dark .dark\:_tw-bg-dark-mode-blue) {
|
|
546
|
+
--tw-bg-opacity: 1 !important;
|
|
547
|
+
background-color: rgb(2 119 189 / var(--tw-bg-opacity)) !important;
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
:is(._tw-dark .dark\:_tw-bg-slate-500) {
|
|
551
|
+
--tw-bg-opacity: 1 !important;
|
|
552
|
+
background-color: rgb(100 116 139 / var(--tw-bg-opacity)) !important;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
:is(._tw-dark .dark\:_tw-text-dark-mode-blue) {
|
|
556
|
+
--tw-text-opacity: 1 !important;
|
|
557
|
+
color: rgb(2 119 189 / var(--tw-text-opacity)) !important;
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
:is(._tw-dark .dark\:_tw-text-white) {
|
|
561
|
+
--tw-text-opacity: 1 !important;
|
|
562
|
+
color: rgb(255 255 255 / var(--tw-text-opacity)) !important;
|
|
563
|
+
}
|
package/dist/Papyros.d.ts
CHANGED