@novely/solid-renderer 0.0.3 → 0.0.5

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.
@@ -0,0 +1,500 @@
1
+ /* src/styles/root/root.css */
2
+ .root {
3
+ height: 100vh;
4
+ width: 100vw;
5
+ font-size: 1em;
6
+ font-family:
7
+ ui-sans-serif,
8
+ system-ui,
9
+ -apple-system,
10
+ BlinkMacSystemFont,
11
+ "Segoe UI",
12
+ Roboto,
13
+ "Helvetica Neue",
14
+ Arial,
15
+ "Noto Sans",
16
+ sans-serif,
17
+ "Apple Color Emoji",
18
+ "Segoe UI Emoji",
19
+ "Segoe UI Symbol",
20
+ "Noto Color Emoji";
21
+ background-repeat: no-repeat;
22
+ background-position: center;
23
+ background-size: cover;
24
+ }
25
+ .root,
26
+ .root * {
27
+ box-sizing: border-box;
28
+ }
29
+
30
+ /* src/styles/root/index.css */
31
+
32
+ /* src/styles/main-menu/main-menu.css */
33
+ .main-menu {
34
+ overflow: hidden;
35
+ background-image: var(--novely-main-menu-background-image);
36
+ padding: 0 1em;
37
+ display: grid;
38
+ justify-content: start;
39
+ align-content: center;
40
+ }
41
+
42
+ /* src/styles/main-menu/button/button.css */
43
+ .main-menu__button {
44
+ min-width: 30vw;
45
+ }
46
+
47
+ /* src/styles/main-menu/index.css */
48
+
49
+ /* src/styles/loading/loading.css */
50
+ .loading {
51
+ overflow: hidden;
52
+ background: black;
53
+ display: flex;
54
+ justify-content: center;
55
+ align-items: center;
56
+ }
57
+
58
+ /* src/styles/loading/animation/animation.css */
59
+ .loading__animation {
60
+ display: inline-block;
61
+ position: relative;
62
+ width: 80px;
63
+ height: 80px;
64
+ }
65
+ .loading__animation div {
66
+ position: absolute;
67
+ top: 33px;
68
+ width: 13px;
69
+ height: 13px;
70
+ border-radius: 50%;
71
+ background: #fff;
72
+ animation-timing-function: cubic-bezier(0, 1, 1, 0);
73
+ }
74
+ .loading__animation div:nth-child(1) {
75
+ left: 8px;
76
+ animation: lds-ellipsis1 0.6s infinite;
77
+ }
78
+ .loading__animation div:nth-child(2) {
79
+ left: 8px;
80
+ animation: lds-ellipsis2 0.6s infinite;
81
+ }
82
+ .loading__animation div:nth-child(3) {
83
+ left: 32px;
84
+ animation: lds-ellipsis2 0.6s infinite;
85
+ }
86
+ .loading__animation div:nth-child(4) {
87
+ left: 56px;
88
+ animation: lds-ellipsis3 0.6s infinite;
89
+ }
90
+ @keyframes lds-ellipsis1 {
91
+ 0% {
92
+ transform: scale(0);
93
+ }
94
+ 100% {
95
+ transform: scale(1);
96
+ }
97
+ }
98
+ @keyframes lds-ellipsis3 {
99
+ 0% {
100
+ transform: scale(1);
101
+ }
102
+ 100% {
103
+ transform: scale(0);
104
+ }
105
+ }
106
+ @keyframes lds-ellipsis2 {
107
+ 0% {
108
+ transform: translate(0, 0);
109
+ }
110
+ 100% {
111
+ transform: translate(24px, 0);
112
+ }
113
+ }
114
+
115
+ /* src/styles/loading/index.css */
116
+
117
+ /* src/styles/settings/settings.css */
118
+ .settings {
119
+ position: absolute;
120
+ inset: 0;
121
+ z-index: 1;
122
+ padding: 0 1em;
123
+ gap: 1em;
124
+ overflow: hidden;
125
+ background-image: var(--novely-settings-background-image);
126
+ display: flex;
127
+ }
128
+ @media (orientation: portrait) {
129
+ .settings {
130
+ flex-direction: column-reverse;
131
+ }
132
+ }
133
+
134
+ /* src/styles/settings/button/button.css */
135
+ .settings__button {
136
+ min-width: 30vw;
137
+ }
138
+ @media (orientation: portrait) {
139
+ .settings__button {
140
+ min-width: 80%;
141
+ }
142
+ }
143
+
144
+ /* src/styles/settings/column/column.css */
145
+ .settings__column {
146
+ display: flex;
147
+ align-items: center;
148
+ justify-content: center;
149
+ flex-direction: column;
150
+ flex-wrap: wrap;
151
+ }
152
+
153
+ /* src/styles/settings/index.css */
154
+
155
+ /* src/styles/saves/saves.css */
156
+ .saves {
157
+ position: absolute;
158
+ inset: 0;
159
+ z-index: 1;
160
+ padding: 0 1em;
161
+ gap: 1em;
162
+ overflow: hidden;
163
+ background-image: var(--novely-saves-background-image);
164
+ display: flex;
165
+ }
166
+ @media (orientation: portrait) {
167
+ .saves {
168
+ flex-direction: column-reverse;
169
+ }
170
+ }
171
+
172
+ /* src/styles/saves/button/button.css */
173
+ .saves__button {
174
+ min-width: 30vw;
175
+ }
176
+ .saves__button-load {
177
+ width: 100%;
178
+ }
179
+ @media (orientation: portrait) {
180
+ .saves__button {
181
+ min-width: 80%;
182
+ }
183
+ }
184
+
185
+ /* src/styles/saves/list/list.css */
186
+ .saves__list {
187
+ width: 100%;
188
+ height: 100%;
189
+ padding: 0 1em;
190
+ display: grid;
191
+ align-content: flex-start;
192
+ justify-content: center;
193
+ justify-items: stretch;
194
+ list-style: none;
195
+ overflow-y: scroll;
196
+ margin-block-start: 0;
197
+ margin-block-end: 0;
198
+ }
199
+ .saves__list-item {
200
+ display: flex;
201
+ }
202
+
203
+ /* src/styles/saves/column/column.css */
204
+ @media (orientation: portrait) {
205
+ .saves__column {
206
+ display: flex;
207
+ align-items: center;
208
+ justify-content: center;
209
+ flex-direction: column;
210
+ flex-wrap: wrap;
211
+ }
212
+ }
213
+
214
+ /* src/styles/saves/index.css */
215
+
216
+ /* src/styles/button/button.css */
217
+ .button {
218
+ background-color: var(--novely-button-background-color, #ffe9f3);
219
+ border: 4px solid var(--novely-button-border-color, #ffc7df);
220
+ color: var(--novely-button-color, #000);
221
+ margin: 0.4em 0;
222
+ padding: 0.4em;
223
+ font-size: 1.02em;
224
+ line-height: 1.2;
225
+ cursor: pointer;
226
+ user-select: none;
227
+ }
228
+ .button:hover {
229
+ background-color: var(--novely-button-hover-background-color, #ffffff);
230
+ border-color: var(--novely-button-hover-border-color, #ffc6d8);
231
+ color: var(--novely-button-hover-color, #ffb7a2);
232
+ }
233
+ .button[aria-disabled=true] {
234
+ cursor: not-allowed;
235
+ opacity: 0.9;
236
+ }
237
+
238
+ /* src/styles/button/index.css */
239
+
240
+ /* src/styles/characters/characters.css */
241
+ .characters {
242
+ position: absolute;
243
+ inset: 0;
244
+ z-index: 1;
245
+ overflow: hidden;
246
+ display: flex;
247
+ align-items: flex-end;
248
+ justify-content: center;
249
+ }
250
+ .characters > canvas {
251
+ position: relative;
252
+ min-width: unset;
253
+ max-height: 85vh;
254
+ max-width: 50vw;
255
+ }
256
+
257
+ /* src/styles/characters/index.css */
258
+
259
+ /* src/styles/control-panel/control-panel.css */
260
+ .control-panel {
261
+ z-index: 23;
262
+ position: absolute;
263
+ display: flex;
264
+ justify-content: end;
265
+ right: 0.4em;
266
+ bottom: 0.4em;
267
+ }
268
+
269
+ /* src/styles/control-panel/button/button.css */
270
+ .control-panel__button {
271
+ border: 2px solid var(--novely-button-border-color, #ffc7df);
272
+ margin: 0;
273
+ padding: 0.2em 0.4em;
274
+ font-size: 1em;
275
+ line-height: 1;
276
+ height: 2em;
277
+ }
278
+
279
+ /* src/styles/control-panel/index.css */
280
+
281
+ /* src/styles/action-text/action-text.css */
282
+ .action-text {
283
+ position: absolute;
284
+ inset: 0;
285
+ z-index: 2;
286
+ display: none;
287
+ text-align: center;
288
+ font-size: 1.5em;
289
+ }
290
+ .action-text[data-shown=true] {
291
+ display: flex;
292
+ align-items: center;
293
+ justify-content: center;
294
+ background: var(--novely-fullscreen-backgroun-color, rgba(0, 0, 0, 0.3));
295
+ text-shadow: var( --novely-fullscreen-text-shadow, 2px 2px 4px rgba(0, 0, 0, 0.5) );
296
+ color: var(--novely-fullscreen-text-color, white);
297
+ }
298
+ .action-text[data-shown=true] > span {
299
+ cursor: pointer;
300
+ }
301
+
302
+ /* src/styles/action-text/index.css */
303
+
304
+ /* src/styles/select/select.css */
305
+ .select {
306
+ width: 100%;
307
+ display: flex;
308
+ flex-direction: column;
309
+ align-items: start;
310
+ }
311
+
312
+ /* src/styles/select/select/select.css */
313
+ .select__select {
314
+ background-color: var(--novely-select-background-color, #ffe9f3);
315
+ border: 4px solid var(--novely-select-border-color, #ffc7df);
316
+ color: var(--novely-select-color, #000);
317
+ margin: 0.4em 0;
318
+ padding: 0.4em;
319
+ font-size: 1.02em;
320
+ }
321
+
322
+ /* src/styles/select/label/label.css */
323
+ .select__label {
324
+ background: var(--novely-select-label-background, #ffe9f3);
325
+ color: var(--novely-select-color, #000);
326
+ font-size: 1.02em;
327
+ padding: 0.25em 0.5em;
328
+ border-radius: 0.25em;
329
+ }
330
+
331
+ /* src/styles/select/index.css */
332
+
333
+ /* src/styles/action-dialog/action-dialog.css */
334
+ .action-dialog {
335
+ min-height: 26vh;
336
+ width: 75%;
337
+ position: absolute;
338
+ left: 50%;
339
+ transform: translateX(-50%);
340
+ bottom: 0.4em;
341
+ z-index: 22;
342
+ text-align: left;
343
+ flex-direction: column;
344
+ justify-content: flex-end;
345
+ cursor: default;
346
+ user-select: none;
347
+ }
348
+ .action-dialog-container {
349
+ height: 100%;
350
+ min-height: 18vh;
351
+ flex-grow: 1;
352
+ color: var(--novely-dialog-color, #ffffff);
353
+ border: 3px solid var(--novely-dialog-border-color, #ffffff);
354
+ border-radius: var(--novely-dialog-border-radius, 14px);
355
+ box-shadow: 1px 1px 4px var(--novely-dialog-box-shadow-color, #00000072);
356
+ background-image: var(--novely-dialog-background-image, radial-gradient(#d6608998 20%, transparent 20%), radial-gradient(#d6608998 20%, transparent 20%));
357
+ background-color: var(--novely-dialog-background-color, #f092b4d8);
358
+ background-position: var(--novely-dialog-background-position, 0 0, 50px 50px);
359
+ background-size: var(--novely-dialog-background-size, 100px 100px);
360
+ display: grid;
361
+ grid-template-areas: "pers text" "pers text";
362
+ padding-bottom: 2.8em;
363
+ }
364
+ .action-dialog-container[data-no-person=true] {
365
+ grid-template-areas: "text text" "text text";
366
+ }
367
+ .action-dialog-person {
368
+ max-height: 25vh;
369
+ max-width: 25vw;
370
+ grid-area: pers;
371
+ }
372
+ .action-dialog-name,
373
+ .action-dialog-content {
374
+ display: block;
375
+ padding: 1vmin;
376
+ margin: 0;
377
+ }
378
+ .action-dialog-name {
379
+ font-size: 1.4375em;
380
+ line-height: 1.2;
381
+ background: #ffffff;
382
+ border-radius: 7px 7px 0 0;
383
+ width: -moz-fit-content;
384
+ width: fit-content;
385
+ margin-left: 5vmin;
386
+ box-shadow: 1px 1px 3px #00000042;
387
+ }
388
+ .action-dialog-content {
389
+ font-size: 2.2375em;
390
+ line-height: 1.2;
391
+ width: 100%;
392
+ grid-area: text;
393
+ text-shadow:
394
+ 1px 1px 0 black,
395
+ -1px -1px 0 black,
396
+ 1px -1px 0 black,
397
+ -1px 1px 0 black;
398
+ }
399
+ .action-dialog-person > canvas,
400
+ .action-dialog-person > img {
401
+ height: 100%;
402
+ }
403
+ @media (orientation: portrait) {
404
+ .action-dialog {
405
+ width: 100%;
406
+ bottom: 0;
407
+ left: unset;
408
+ transform: unset;
409
+ }
410
+ .action-dialog-name {
411
+ font-size: 1.02em;
412
+ }
413
+ .action-dialog-content {
414
+ font-size: 1.32em;
415
+ }
416
+ .action-dialog-container {
417
+ border-radius: 14px 14px 0 0;
418
+ }
419
+ }
420
+
421
+ /* src/styles/action-dialog/index.css */
422
+
423
+ /* src/styles/dialog/dialog.css */
424
+ .dialog {
425
+ position: fixed;
426
+ inset: 0;
427
+ z-index: 20;
428
+ overflow-y: auto;
429
+ }
430
+ .dialog-container {
431
+ min-height: 100vh;
432
+ display: flex;
433
+ align-items: center;
434
+ justify-content: center;
435
+ }
436
+ .dialog-fix {
437
+ display: inline-block;
438
+ height: 100vh;
439
+ vertical-align: middle;
440
+ }
441
+ .dialog-panel {
442
+ text-align: left;
443
+ z-index: 21;
444
+ width: 100%;
445
+ max-width: 40vw;
446
+ min-height: 40vh;
447
+ display: flex;
448
+ flex-direction: column;
449
+ align-items: stretch;
450
+ }
451
+ .dialog-panel-label {
452
+ user-select: none;
453
+ font-size: 1.2375em;
454
+ }
455
+ @media (orientation: portrait) {
456
+ .dialog-panel {
457
+ max-width: 95vw;
458
+ }
459
+ }
460
+
461
+ /* src/styles/dialog/index.css */
462
+
463
+ /* src/styles/input-dialog/input-dialog.css */
464
+ .input-dialog-label {
465
+ display: flex;
466
+ flex-direction: column;
467
+ align-items: center;
468
+ justify-content: center;
469
+ font-size: 1.2375em;
470
+ width: 100%;
471
+ }
472
+ .input-dialog-label > span {
473
+ margin: 0.4em 0;
474
+ min-height: 1em;
475
+ min-height: 1lh;
476
+ }
477
+ .input-dialog-panel {
478
+ justify-content: center;
479
+ align-items: center;
480
+ color: rgb(255, 255, 255);
481
+ border: 3px solid #ffffff;
482
+ border-radius: 14px;
483
+ box-shadow: 1px 1px 4px #00000072;
484
+ background-image: radial-gradient(#d6608998 20%, transparent 20%), radial-gradient(#d6608998 20%, transparent 20%);
485
+ background-color: #f092b4d8;
486
+ background-position: 0 0, 50px 50px;
487
+ background-size: 100px 100px;
488
+ }
489
+
490
+ /* src/styles/input-dialog/button/button.css */
491
+ .dialog-input__button {
492
+ font-size: 1.2375em;
493
+ padding: 0.4em 0.6em;
494
+ width: -moz-fit-content;
495
+ width: fit-content;
496
+ }
497
+
498
+ /* src/styles/input-dialog/index.css */
499
+
500
+ /* src/styles/index.css */
package/dist/utils.d.ts CHANGED
@@ -6,5 +6,4 @@ declare const createImage: (src: string) => HTMLImageElement;
6
6
  */
7
7
  declare const canvasDrawImages: (canvas: HTMLCanvasElement | undefined, ctx: CanvasRenderingContext2D | undefined, images: HTMLImageElement[]) => readonly [HTMLCanvasElement, CanvasRenderingContext2D];
8
8
  declare const url: <T extends string>(str: T) => `url(${T})`;
9
- declare const join: (...elements: (string | boolean)[]) => string;
10
- export { isCSSImage, canvasDrawImages, url, createImage, capitalize, join };
9
+ export { isCSSImage, canvasDrawImages, url, createImage, capitalize };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@novely/solid-renderer",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -15,12 +15,11 @@
15
15
  },
16
16
  "devDependencies": {
17
17
  "esbuild": "^0.16.17",
18
- "esbuild-css-modules-plugin": "^2.7.1",
19
18
  "typescript": "^4.9.5"
20
19
  },
21
20
  "dependencies": {
22
21
  "@novely/core": "workspace:*",
23
- "@novely/typewriter": "^0.1.0",
22
+ "@novely/typewriter": "workspace:*",
24
23
  "solid-js": "1.7.3"
25
24
  },
26
25
  "peerDependencies": {