@novely/solid-renderer 0.42.0-next.1 → 0.42.0-next.3

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.
@@ -2,6 +2,7 @@ import type { JSX, VoidComponent } from 'solid-js';
2
2
  type NativeCanvasProps = JSX.CanvasHTMLAttributes<HTMLCanvasElement>;
3
3
  type CanvasProps = Omit<NativeCanvasProps, 'ref'> & {
4
4
  resize?: boolean;
5
+ throttle?: number;
5
6
  render: (canvas: HTMLCanvasElement, ctx: CanvasRenderingContext2D) => void;
6
7
  };
7
8
  declare const Canvas: VoidComponent<CanvasProps>;
@@ -1,26 +1,7 @@
1
- /**
2
- * These SVG icons are provided by Make Lemonade's Iconicicons (https://iconic.app/)
3
- * under the "Do WTF You Want With" license.
4
- */
5
- import type { JSX } from 'solid-js';
6
- type SVGProps = JSX.SvgSVGAttributes<SVGSVGElement>;
7
- type IconProps = SVGProps & {
8
- children: JSX.Element;
9
- };
10
- declare const Icon: {
11
- (props: IconProps): JSX.Element;
12
- Back(): JSX.Element;
13
- Book(): JSX.Element;
14
- Save(): JSX.Element;
15
- Exit(): JSX.Element;
16
- Menu(): JSX.Element;
17
- Close(): JSX.Element;
18
- Play(): JSX.Element;
19
- PlayMedia(): JSX.Element;
20
- StopMedia(): JSX.Element;
21
- Stop(): JSX.Element;
22
- FilePlus(): JSX.Element;
23
- ChevronDown(): JSX.Element;
24
- ChevronUp(): JSX.Element;
1
+ import type { JSX, VoidComponent } from 'solid-js';
2
+ type SVGAttributes = JSX.SvgSVGAttributes<SVGSVGElement>;
3
+ type IconProps = {
4
+ icon: string;
25
5
  };
6
+ declare const Icon: VoidComponent<SVGAttributes & IconProps>;
26
7
  export { Icon };
@@ -9,3 +9,4 @@ export { Canvas } from './Canvas';
9
9
  export { Select } from './Select';
10
10
  export { Range } from './Range';
11
11
  export { DialogOverview } from './DialogOverview';
12
+ export { Icon } from './Icon';
package/dist/index.jsx CHANGED
@@ -1,4 +1,4 @@
1
- // ../../node_modules/.pnpm/solid-js@1.9.1/node_modules/solid-js/dist/solid.js
1
+ // ../../node_modules/.pnpm/solid-js@1.9.3/node_modules/solid-js/dist/solid.js
2
2
  var sharedConfig = {
3
3
  context: void 0,
4
4
  registry: void 0,
@@ -973,7 +973,7 @@ function Match(props) {
973
973
  return props;
974
974
  }
975
975
 
976
- // ../../node_modules/.pnpm/solid-js@1.9.1/node_modules/solid-js/web/dist/web.js
976
+ // ../../node_modules/.pnpm/solid-js@1.9.3/node_modules/solid-js/web/dist/web.js
977
977
  var booleans = [
978
978
  "allowfullscreen",
979
979
  "async",
@@ -1923,7 +1923,7 @@ function validateConcurrency(concurrency) {
1923
1923
  }
1924
1924
  }
1925
1925
 
1926
- // ../../node_modules/.pnpm/simple-web-audio@0.8.0_postcss@8.4.47/node_modules/simple-web-audio/dist/index.mjs
1926
+ // ../../node_modules/.pnpm/simple-web-audio@0.8.0_postcss@8.4.49/node_modules/simple-web-audio/dist/index.mjs
1927
1927
  var waitForInteraction = (() => {
1928
1928
  const { promise, resolve } = Promise.withResolvers();
1929
1929
  const onUserInteraction = () => {
@@ -3075,26 +3075,43 @@ var Character = (props) => {
3075
3075
  return createMemo(canvas);
3076
3076
  };
3077
3077
 
3078
+ // src/components/Icon.tsx
3079
+ var _tmpl$2 = /* @__PURE__ */ template(`<svg data-icon fill="currentColor" width="24" height="24" viewBox="0 0 256 256"><use>`);
3080
+ var Icon = (props) => {
3081
+ const [it, rest] = splitProps(props, ["icon"]);
3082
+ return (() => {
3083
+ const _el$ = _tmpl$2(), _el$2 = _el$.firstChild;
3084
+ spread(_el$, rest, true, true);
3085
+ createRenderEffect(() => setAttribute(_el$2, "href", it.icon));
3086
+ return _el$;
3087
+ })();
3088
+ };
3089
+
3078
3090
  // src/components/ControlPanelButtons.tsx
3079
- var _tmpl$2 = /* @__PURE__ */ template(`<button role="menuitem" type="button" class="button control-panel__button"><span class="control-panel__button__content"></span><svg class="control-panel__button__icon" width="24" height="24" viewBox="0 0 256 256"><use href="#novely-back-icon">`);
3080
- var _tmpl$22 = /* @__PURE__ */ template(`<button role="menuitem" type="button" class="button control-panel__button" data-dialog-overview-button><span class="control-panel__button__content"></span><svg class="control-panel__button__icon" width="24" height="24" viewBox="0 0 256 256"><use href="#novely-book-open-icon">`);
3081
- var _tmpl$3 = /* @__PURE__ */ template(`<button role="menuitem" type="button" class="button control-panel__button"><span class="control-panel__button__content"></span><svg class="control-panel__button__icon" width="24" height="24" viewBox="0 0 256 256"><use href="#novely-save-icon">`);
3082
- var _tmpl$4 = /* @__PURE__ */ template(`<button role="menuitem" type="button" class="button control-panel__button control-panel__button--auto-mode"><span class="control-panel__button__content"></span><svg class="control-panel__button__icon" width="24" height="24" viewBox="0 0 256 256"><use>`);
3083
- var _tmpl$5 = /* @__PURE__ */ template(`<button role="menuitem" type="button" class="button control-panel__button"><span class="control-panel__button__content"></span><svg class="control-panel__button__icon" width="24" height="24" viewBox="0 0 256 256"><use href="#novely-files-icon">`);
3084
- var _tmpl$6 = /* @__PURE__ */ template(`<button role="menuitem" type="button" class="button control-panel__button"><span class="control-panel__button__content"></span><svg class="control-panel__button__icon" width="24" height="24" viewBox="0 0 256 256"><use href="#novely-x-icon">`);
3085
- var _tmpl$7 = /* @__PURE__ */ template(`<button role="menuitem" type="button" class="button control-panel__button"><svg width="24" height="24" viewBox="0 0 256 256"><use href="#novely-x-icon">`);
3091
+ var _tmpl$3 = /* @__PURE__ */ template(`<button role="menuitem" type="button" class="button control-panel__button"><span class="control-panel__button__content">`);
3092
+ var _tmpl$22 = /* @__PURE__ */ template(`<button role="menuitem" type="button" class="button control-panel__button" data-dialog-overview-button><span class="control-panel__button__content">`);
3093
+ var _tmpl$32 = /* @__PURE__ */ template(`<button role="menuitem" type="button" class="button control-panel__button control-panel__button--auto-mode"><span class="control-panel__button__content">`);
3094
+ var _tmpl$4 = /* @__PURE__ */ template(`<button role="menuitem" type="button" class="button control-panel__button">`);
3086
3095
  var ControlPanelButtons = (props) => {
3087
3096
  const data = useData();
3088
3097
  return [(() => {
3089
- const _el$ = _tmpl$2(), _el$2 = _el$.firstChild;
3098
+ const _el$ = _tmpl$3(), _el$2 = _el$.firstChild;
3090
3099
  addEventListener2(_el$, "click", data.options.back, true);
3091
3100
  insert(_el$2, () => data.t("GoBack"));
3101
+ insert(_el$, createComponent(Icon, {
3102
+ "class": "control-panel__button__icon",
3103
+ icon: "#novely-back-icon"
3104
+ }), null);
3092
3105
  createRenderEffect(() => setAttribute(_el$, "title", data.t("GoBack")));
3093
3106
  return _el$;
3094
3107
  })(), (() => {
3095
3108
  const _el$3 = _tmpl$22(), _el$4 = _el$3.firstChild;
3096
3109
  addEventListener2(_el$3, "click", props.openDialogOverview, true);
3097
3110
  insert(_el$4, () => data.t("DialogOverview"));
3111
+ insert(_el$3, createComponent(Icon, {
3112
+ "class": "control-panel__button__icon",
3113
+ icon: "#novely-book-open-icon"
3114
+ }), null);
3098
3115
  createRenderEffect(() => setAttribute(_el$3, "title", data.t("DialogOverview")));
3099
3116
  return _el$3;
3100
3117
  })(), (() => {
@@ -3103,60 +3120,73 @@ var ControlPanelButtons = (props) => {
3103
3120
  data.options.save("manual");
3104
3121
  };
3105
3122
  insert(_el$6, () => data.t("DoSave"));
3123
+ insert(_el$5, createComponent(Icon, {
3124
+ "class": "control-panel__button__icon",
3125
+ icon: "#novely-save-icon"
3126
+ }), null);
3106
3127
  createRenderEffect(() => setAttribute(_el$5, "title", data.t("DoSave")));
3107
3128
  return _el$5;
3108
3129
  })(), (() => {
3109
- const _el$7 = _tmpl$4(), _el$8 = _el$7.firstChild, _el$9 = _el$8.nextSibling, _el$10 = _el$9.firstChild;
3130
+ const _el$7 = _tmpl$32(), _el$8 = _el$7.firstChild;
3110
3131
  _el$7.$$click = () => {
3111
3132
  props.setAuto((prev) => !prev);
3112
3133
  };
3113
3134
  insert(_el$8, () => data.t(props.auto() ? "Stop" : "Auto"));
3114
- createRenderEffect((_p$) => {
3115
- const _v$ = data.t(props.auto() ? "Stop" : "Auto"), _v$2 = props.auto() ? "#novely-stop-icon" : "#novely-play-icon";
3116
- _v$ !== _p$._v$ && setAttribute(_el$7, "title", _p$._v$ = _v$);
3117
- _v$2 !== _p$._v$2 && setAttribute(_el$10, "href", _p$._v$2 = _v$2);
3118
- return _p$;
3119
- }, {
3120
- _v$: void 0,
3121
- _v$2: void 0
3122
- });
3135
+ insert(_el$7, createComponent(Icon, {
3136
+ "class": "control-panel__button__icon",
3137
+ get icon() {
3138
+ return props.auto() ? "#novely-stop-icon" : "#novely-play-icon";
3139
+ }
3140
+ }), null);
3141
+ createRenderEffect(() => setAttribute(_el$7, "title", data.t(props.auto() ? "Stop" : "Auto")));
3123
3142
  return _el$7;
3124
3143
  })(), (() => {
3125
- const _el$11 = _tmpl$5(), _el$12 = _el$11.firstChild;
3126
- _el$11.$$click = () => {
3144
+ const _el$9 = _tmpl$3(), _el$10 = _el$9.firstChild;
3145
+ _el$9.$$click = () => {
3127
3146
  data.options.save("auto");
3128
3147
  data.options.exit(true);
3129
3148
  props.openSettings();
3130
3149
  };
3131
- insert(_el$12, () => data.t("Settings"));
3132
- createRenderEffect(() => setAttribute(_el$11, "title", data.t("Settings")));
3133
- return _el$11;
3150
+ insert(_el$10, () => data.t("Settings"));
3151
+ insert(_el$9, createComponent(Icon, {
3152
+ "class": "control-panel__button__icon",
3153
+ icon: "#novely-files-icon"
3154
+ }), null);
3155
+ createRenderEffect(() => setAttribute(_el$9, "title", data.t("Settings")));
3156
+ return _el$9;
3134
3157
  })(), (() => {
3135
- const _el$13 = _tmpl$6(), _el$14 = _el$13.firstChild;
3136
- _el$13.$$click = () => {
3158
+ const _el$11 = _tmpl$3(), _el$12 = _el$11.firstChild;
3159
+ _el$11.$$click = () => {
3137
3160
  data.options.exit();
3138
3161
  };
3139
- insert(_el$14, () => data.t("Exit"));
3140
- createRenderEffect(() => setAttribute(_el$13, "title", data.t("Exit")));
3141
- return _el$13;
3162
+ insert(_el$12, () => data.t("Exit"));
3163
+ insert(_el$11, createComponent(Icon, {
3164
+ "class": "control-panel__button__icon",
3165
+ icon: "#novely-x-icon"
3166
+ }), null);
3167
+ createRenderEffect(() => setAttribute(_el$11, "title", data.t("Exit")));
3168
+ return _el$11;
3142
3169
  })(), createComponent(Show, {
3143
3170
  get when() {
3144
3171
  return data.media.hyperWide();
3145
3172
  },
3146
3173
  get children() {
3147
- const _el$15 = _tmpl$7();
3148
- _el$15.$$click = () => {
3174
+ const _el$13 = _tmpl$4();
3175
+ _el$13.$$click = () => {
3149
3176
  props.closeDropdown();
3150
3177
  };
3151
- createRenderEffect(() => setAttribute(_el$15, "title", data.t("CloseMenu")));
3152
- return _el$15;
3178
+ insert(_el$13, createComponent(Icon, {
3179
+ icon: "#novely-x-icon"
3180
+ }));
3181
+ createRenderEffect(() => setAttribute(_el$13, "title", data.t("CloseMenu")));
3182
+ return _el$13;
3153
3183
  }
3154
3184
  })];
3155
3185
  };
3156
3186
  delegateEvents(["click"]);
3157
3187
 
3158
3188
  // src/components/DialogName.tsx
3159
- var _tmpl$8 = /* @__PURE__ */ template(`<div class="action-dialog-name"><span>`);
3189
+ var _tmpl$5 = /* @__PURE__ */ template(`<div class="action-dialog-name">`);
3160
3190
  var _tmpl$23 = /* @__PURE__ */ template(`<span class="action-dialog-mood-separator">&#10022;`);
3161
3191
  var DialogName = (props) => {
3162
3192
  const data = useData();
@@ -3164,8 +3194,8 @@ var DialogName = (props) => {
3164
3194
  return props.character ? data.options.getCharacterColor(props.character) : "#000";
3165
3195
  };
3166
3196
  return (() => {
3167
- const _el$ = _tmpl$8(), _el$2 = _el$.firstChild;
3168
- insert(_el$2, () => props.name || " ");
3197
+ const _el$ = _tmpl$5();
3198
+ insert(_el$, () => props.name || " ", null);
3169
3199
  insert(_el$, createComponent(Show, {
3170
3200
  get when() {
3171
3201
  return props.mood;
@@ -3203,7 +3233,7 @@ function clsx() {
3203
3233
  }
3204
3234
 
3205
3235
  // src/components/Modal.tsx
3206
- var _tmpl$9 = /* @__PURE__ */ template(`<dialog>`);
3236
+ var _tmpl$6 = /* @__PURE__ */ template(`<dialog>`);
3207
3237
  var Modal = (props) => {
3208
3238
  const [it, rest] = splitProps(props, ["isOpen", "setIsOpen", "trapFocus", "isModal"]);
3209
3239
  let dialog;
@@ -3231,7 +3261,7 @@ var Modal = (props) => {
3231
3261
  dialog[it.isOpen() ? it.isModal ? "showModal" : "show" : "close"]();
3232
3262
  });
3233
3263
  return (() => {
3234
- const _el$ = _tmpl$9();
3264
+ const _el$ = _tmpl$6();
3235
3265
  const _ref$ = dialog;
3236
3266
  typeof _ref$ === "function" ? use(_ref$, _el$) : dialog = _el$;
3237
3267
  spread(_el$, mergeProps(rest, {
@@ -3243,7 +3273,7 @@ var Modal = (props) => {
3243
3273
  })();
3244
3274
  };
3245
3275
 
3246
- // ../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.5_solid-js@1.9.1/node_modules/@solid-primitives/transition-group/dist/index.js
3276
+ // ../../node_modules/.pnpm/@solid-primitives+transition-group@1.0.5_solid-js@1.9.3/node_modules/@solid-primitives/transition-group/dist/index.js
3247
3277
  var noop2 = () => {
3248
3278
  };
3249
3279
  var noopTransition = (el, done) => done();
@@ -3311,10 +3341,10 @@ function createSwitchTransition(source, options) {
3311
3341
  return returned;
3312
3342
  }
3313
3343
 
3314
- // ../../node_modules/.pnpm/@solid-primitives+utils@6.2.3_solid-js@1.9.1/node_modules/@solid-primitives/utils/dist/chunk/R5675YMU.js
3344
+ // ../../node_modules/.pnpm/@solid-primitives+utils@6.2.3_solid-js@1.9.3/node_modules/@solid-primitives/utils/dist/chunk/R5675YMU.js
3315
3345
  var access = (v) => typeof v === "function" && !v.length ? v() : v;
3316
3346
 
3317
- // ../../node_modules/.pnpm/@solid-primitives+refs@1.0.8_solid-js@1.9.1/node_modules/@solid-primitives/refs/dist/index.js
3347
+ // ../../node_modules/.pnpm/@solid-primitives+refs@1.0.8_solid-js@1.9.3/node_modules/@solid-primitives/refs/dist/index.js
3318
3348
  var defaultElementPredicate = isServer ? (item) => item != null && typeof item === "object" && "t" in item : (item) => item instanceof Element;
3319
3349
  function getFirstChild(value, predicate) {
3320
3350
  if (predicate(value))
@@ -3335,7 +3365,7 @@ function resolveFirst(fn, predicate = defaultElementPredicate, serverPredicate =
3335
3365
  return createMemo(() => getFirstChild(children2(), isServer ? serverPredicate : predicate));
3336
3366
  }
3337
3367
 
3338
- // ../../node_modules/.pnpm/solid-transition-group@0.2.3_solid-js@1.9.1/node_modules/solid-transition-group/dist/index.js
3368
+ // ../../node_modules/.pnpm/solid-transition-group@0.2.3_solid-js@1.9.3/node_modules/solid-transition-group/dist/index.js
3339
3369
  function createClassnames(props) {
3340
3370
  return createMemo(() => {
3341
3371
  const name = props.name || "s";
@@ -3440,9 +3470,9 @@ var { useContextState, removeContextState } = createContextStateRoot(() => {
3440
3470
  });
3441
3471
 
3442
3472
  // src/components/Save.tsx
3443
- var _tmpl$10 = /* @__PURE__ */ template(`<div class="saves__list-item__overlay">`);
3473
+ var _tmpl$7 = /* @__PURE__ */ template(`<div class="saves__list-item__overlay">`);
3444
3474
  var _tmpl$24 = /* @__PURE__ */ template(`<iframe tabindex="-1" class="saves__list-item__iframe" src="about:blank">`);
3445
- var _tmpl$32 = /* @__PURE__ */ template(`<li class="saves__list-item"><div class="saves__list-item__load" role="button" tabindex="0"></div><div class="saves__list-item__description"><div></div><div></div></div><button type="reset" class="button saves__button-reset"><span>`);
3475
+ var _tmpl$33 = /* @__PURE__ */ template(`<li class="saves__list-item"><div class="saves__list-item__load" role="button" tabindex="0"></div><div class="saves__list-item__description"><div></div><div></div></div><button type="reset" class="button saves__button-reset"><span>`);
3446
3476
  var _tmpl$42 = /* @__PURE__ */ template(`<div class="saves__list-item__iframe">`);
3447
3477
  var CURRENT_DATE = /* @__PURE__ */ new Date();
3448
3478
  var CURRENT_YEAR = CURRENT_DATE.getFullYear();
@@ -3549,7 +3579,7 @@ var Save = (props) => {
3549
3579
  clearTimeout(previewDoneTimeoutId);
3550
3580
  });
3551
3581
  return (() => {
3552
- const _el$ = _tmpl$32(), _el$2 = _el$.firstChild, _el$5 = _el$2.nextSibling, _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling, _el$8 = _el$5.nextSibling, _el$9 = _el$8.firstChild;
3582
+ const _el$ = _tmpl$33(), _el$2 = _el$.firstChild, _el$5 = _el$2.nextSibling, _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling, _el$8 = _el$5.nextSibling, _el$9 = _el$8.firstChild;
3553
3583
  setAttribute(_el$, "data-timestamp", timestamp);
3554
3584
  _el$2.$$keyup = (event) => {
3555
3585
  if (event.code === "Space") {
@@ -3570,7 +3600,7 @@ var Save = (props) => {
3570
3600
  return props.overlayShown;
3571
3601
  },
3572
3602
  get children() {
3573
- return _tmpl$10();
3603
+ return _tmpl$7();
3574
3604
  }
3575
3605
  });
3576
3606
  }
@@ -3760,7 +3790,7 @@ var TEXT_SPEED_MAP = {
3760
3790
  };
3761
3791
 
3762
3792
  // src/components/Typewriter.tsx
3763
- var _tmpl$11 = /* @__PURE__ */ template(`<span>`);
3793
+ var _tmpl$8 = /* @__PURE__ */ template(`<span>`);
3764
3794
  var PRM = matchMedia("(prefers-reduced-motion: reduce)");
3765
3795
  var createTypewriter = ({
3766
3796
  resolve
@@ -3800,7 +3830,7 @@ var createTypewriter = ({
3800
3830
  bypassed = false;
3801
3831
  });
3802
3832
  return (() => {
3803
- const _el$ = _tmpl$11();
3833
+ const _el$ = _tmpl$8();
3804
3834
  const _ref$ = node;
3805
3835
  typeof _ref$ === "function" ? use(_ref$, _el$) : node = _el$;
3806
3836
  spread(_el$, mergeProps(() => props.attributes), false, false);
@@ -3826,9 +3856,10 @@ var createTypewriter = ({
3826
3856
  };
3827
3857
 
3828
3858
  // src/components/Canvas.tsx
3829
- var _tmpl$12 = /* @__PURE__ */ template(`<canvas>`);
3859
+ import { throttle } from "es-toolkit/function";
3860
+ var _tmpl$9 = /* @__PURE__ */ template(`<canvas>`);
3830
3861
  var Canvas = (props) => {
3831
- const [local, rest] = splitProps(props, ["resize", "render"]);
3862
+ const [local, rest] = splitProps(props, ["resize", "throttle", "render"]);
3832
3863
  const [canvas, setCanvas] = createSignal();
3833
3864
  const ctx = createMemo(() => {
3834
3865
  const canvasElement = canvas();
@@ -3864,13 +3895,14 @@ var Canvas = (props) => {
3864
3895
  }
3865
3896
  }
3866
3897
  };
3898
+ const onResizeThrottled = local.throttle ? throttle(onResize, local.throttle) : onResize;
3867
3899
  onMount(onResize);
3868
- addEventListener("resize", onResize);
3900
+ addEventListener("resize", onResizeThrottled);
3869
3901
  onCleanup(() => {
3870
- removeEventListener("resize", onResize);
3902
+ removeEventListener("resize", onResizeThrottled);
3871
3903
  });
3872
3904
  return (() => {
3873
- const _el$ = _tmpl$12();
3905
+ const _el$ = _tmpl$9();
3874
3906
  use(setCanvas, _el$);
3875
3907
  spread(_el$, rest, false, false);
3876
3908
  return _el$;
@@ -3878,50 +3910,62 @@ var Canvas = (props) => {
3878
3910
  };
3879
3911
 
3880
3912
  // src/components/Select.tsx
3881
- var _tmpl$13 = /* @__PURE__ */ template(`<div class="select"><label class="select__label"><span class="select__label__icon"><svg width="24" height="24" viewBox="0 0 256 256"><use></use></svg></span> </label><div class="select__select-container"><select></select><svg class="select__icon" width="24" height="24" viewBox="0 0 256 256"><use href="#novely-caret-down-icon">`);
3913
+ var _tmpl$10 = /* @__PURE__ */ template(`<div class="select"><label class="select__label"><span class="select__label__icon"></span> </label><div class="select__select-container"><select>`);
3882
3914
  var Select = (props) => {
3883
3915
  const [local, rest] = splitProps(props, ["icon", "label"]);
3884
3916
  const id = createUniqueId();
3885
3917
  return (() => {
3886
- const _el$ = _tmpl$13(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, _el$5 = _el$4.firstChild, _el$6 = _el$3.nextSibling, _el$7 = _el$2.nextSibling, _el$8 = _el$7.firstChild, _el$9 = _el$8.nextSibling;
3918
+ const _el$ = _tmpl$10(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$2.nextSibling, _el$6 = _el$5.firstChild;
3887
3919
  setAttribute(_el$2, "for", id);
3888
3920
  setAttribute(_el$3, "aria-hidden", true);
3921
+ insert(_el$3, createComponent(Icon, {
3922
+ get icon() {
3923
+ return local.icon;
3924
+ }
3925
+ }));
3889
3926
  insert(_el$2, () => local.label, null);
3890
- spread(_el$8, mergeProps(rest, {
3927
+ spread(_el$6, mergeProps(rest, {
3891
3928
  "class": "select__select",
3892
3929
  "id": id
3893
3930
  }), false, true);
3894
- insert(_el$8, () => props.children);
3895
- setAttribute(_el$9, "aria-hidden", true);
3896
- createRenderEffect(() => setAttribute(_el$5, "href", local.icon));
3931
+ insert(_el$6, () => props.children);
3932
+ insert(_el$5, createComponent(Icon, {
3933
+ "class": "select__icon",
3934
+ "aria-hidden": true,
3935
+ icon: "#novely-caret-down-icon"
3936
+ }), null);
3897
3937
  return _el$;
3898
3938
  })();
3899
3939
  };
3900
3940
 
3901
3941
  // src/components/Range.tsx
3902
- var _tmpl$14 = /* @__PURE__ */ template(`<div class="range"><label class="range__label"><span class="range__label__icon"><svg width="24" height="24" viewBox="0 0 256 256"><use></use></svg></span> </label><input>`);
3942
+ var _tmpl$11 = /* @__PURE__ */ template(`<div class="range"><label class="range__label"><span class="range__label__icon"></span> </label><input>`);
3903
3943
  var Range = (props) => {
3904
3944
  const [local, rest] = splitProps(props, ["icon", "label"]);
3905
3945
  const id = createUniqueId();
3906
3946
  return (() => {
3907
- const _el$ = _tmpl$14(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, _el$5 = _el$4.firstChild, _el$6 = _el$3.nextSibling, _el$7 = _el$2.nextSibling;
3947
+ const _el$ = _tmpl$11(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$2.nextSibling;
3908
3948
  setAttribute(_el$2, "for", id);
3909
3949
  setAttribute(_el$3, "aria-hidden", true);
3950
+ insert(_el$3, () => createComponent(Icon, {
3951
+ get icon() {
3952
+ return local.icon;
3953
+ }
3954
+ }));
3910
3955
  insert(_el$2, () => local.label, null);
3911
- spread(_el$7, mergeProps(rest, {
3956
+ spread(_el$5, mergeProps(rest, {
3912
3957
  "class": "range__range",
3913
3958
  "type": "range",
3914
3959
  "id": id
3915
3960
  }), false, false);
3916
- createRenderEffect(() => setAttribute(_el$5, "href", local.icon));
3917
3961
  return _el$;
3918
3962
  })();
3919
3963
  };
3920
3964
 
3921
3965
  // src/components/DialogOverview.tsx
3922
- var _tmpl$15 = /* @__PURE__ */ template(`<div class="dialog-overview__head"><span></span><button type="button" class="button">`);
3966
+ var _tmpl$12 = /* @__PURE__ */ template(`<div class="dialog-overview__head"><span></span><button type="button" class="button">`);
3923
3967
  var _tmpl$25 = /* @__PURE__ */ template(`<div class="dialog-overview__body"><table class="dialog-overview__list">`);
3924
- var _tmpl$33 = /* @__PURE__ */ template(`<button type="button" class="dialog-overview__button-audio-control"><svg fill="currentColor" width="24" height="24" viewBox="0 0 256 256"><use>`);
3968
+ var _tmpl$34 = /* @__PURE__ */ template(`<button type="button" class="dialog-overview__button-audio-control">`);
3925
3969
  var _tmpl$43 = /* @__PURE__ */ template(`<tr class="dialog-overview__list-item"><td class="dialog-overview__list-item__name"><span></span></td><td></td><td class="dialog-overview__list-item__text"><span>`);
3926
3970
  var DialogOverview = (props) => {
3927
3971
  const data = useData();
@@ -3951,7 +3995,7 @@ var DialogOverview = (props) => {
3951
3995
  trapFocus: () => props.shown,
3952
3996
  get children() {
3953
3997
  return [(() => {
3954
- const _el$ = _tmpl$15(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
3998
+ const _el$ = _tmpl$12(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling;
3955
3999
  insert(_el$2, () => data.t("DialogOverview"));
3956
4000
  _el$3.$$click = () => {
3957
4001
  props.close();
@@ -3972,14 +4016,14 @@ var DialogOverview = (props) => {
3972
4016
  return data.options.getDialogOverview();
3973
4017
  },
3974
4018
  children: (entry) => (() => {
3975
- const _el$6 = _tmpl$43(), _el$7 = _el$6.firstChild, _el$8 = _el$7.firstChild, _el$9 = _el$7.nextSibling, _el$13 = _el$9.nextSibling, _el$14 = _el$13.firstChild;
4019
+ const _el$6 = _tmpl$43(), _el$7 = _el$6.firstChild, _el$8 = _el$7.firstChild, _el$9 = _el$7.nextSibling, _el$11 = _el$9.nextSibling, _el$12 = _el$11.firstChild;
3976
4020
  insert(_el$8, () => removeTagsFromHTML(entry.name));
3977
4021
  insert(_el$9, createComponent(Show, {
3978
4022
  get when() {
3979
4023
  return entry.voice;
3980
4024
  },
3981
4025
  get children() {
3982
- const _el$10 = _tmpl$33(), _el$11 = _el$10.firstChild, _el$12 = _el$11.firstChild;
4026
+ const _el$10 = _tmpl$34();
3983
4027
  _el$10.$$click = async () => {
3984
4028
  if (!entry.voice) return;
3985
4029
  const voice = props.audio.getAudio("voice", entry.voice);
@@ -4006,11 +4050,15 @@ var DialogOverview = (props) => {
4006
4050
  });
4007
4051
  }
4008
4052
  };
4009
- createRenderEffect(() => setAttribute(_el$12, "href", currentlyPlayingSource() === entry.voice ? "#novely-stop-icon" : "#novely-play-icon"));
4053
+ insert(_el$10, createComponent(Icon, {
4054
+ get icon() {
4055
+ return currentlyPlayingSource() === entry.voice ? "#novely-stop-icon" : "#novely-play-icon";
4056
+ }
4057
+ }));
4010
4058
  return _el$10;
4011
4059
  }
4012
4060
  }));
4013
- insert(_el$14, () => removeTagsFromHTML(entry.text));
4061
+ insert(_el$12, () => removeTagsFromHTML(entry.text));
4014
4062
  return _el$6;
4015
4063
  })()
4016
4064
  });
@@ -4023,7 +4071,7 @@ var DialogOverview = (props) => {
4023
4071
  };
4024
4072
  delegateEvents(["click"]);
4025
4073
 
4026
- // ../../node_modules/.pnpm/@solid-primitives+destructure@0.1.17_solid-js@1.9.1/node_modules/@solid-primitives/destructure/dist/index.js
4074
+ // ../../node_modules/.pnpm/@solid-primitives+destructure@0.1.17_solid-js@1.9.3/node_modules/@solid-primitives/destructure/dist/index.js
4027
4075
  var isReactiveObject = (value) => typeof value === "object" && value !== null;
4028
4076
  function createProxyCache(obj, get) {
4029
4077
  return new Proxy(
@@ -4069,14 +4117,14 @@ function destructure(source, options) {
4069
4117
  }
4070
4118
 
4071
4119
  // src/screens/game.tsx
4072
- var _tmpl$16 = /* @__PURE__ */ template(`<div class="action-dialog-person">`);
4120
+ var _tmpl$13 = /* @__PURE__ */ template(`<div class="action-dialog-person">`);
4073
4121
  var _tmpl$26 = /* @__PURE__ */ template(`<span class="dialog-label">`);
4074
- var _tmpl$34 = /* @__PURE__ */ template(`<div class="choice-dialog__choices">`);
4122
+ var _tmpl$35 = /* @__PURE__ */ template(`<div class="choice-dialog__choices">`);
4075
4123
  var _tmpl$44 = /* @__PURE__ */ template(`<label for="novely-input" class="input-dialog__text input-dialog__label">`);
4076
4124
  var _tmpl$52 = /* @__PURE__ */ template(`<span class="input-dialog__text input-dialog__error" aria-live="polite" aria-atomic="true">`);
4077
4125
  var _tmpl$62 = /* @__PURE__ */ template(`<button type="submit" class="button dialog-input__button">`);
4078
4126
  var _tmpl$72 = /* @__PURE__ */ template(`<div class="exit-dialog-buttons"><button type="button" class="button"></button><button type="button" class="button">`);
4079
- var _tmpl$82 = /* @__PURE__ */ template(`<button type="button" class="button control-panel__button"><svg width="24" height="24" viewBox="0 0 256 256"><use href="#novely-list-icon">`);
4127
+ var _tmpl$82 = /* @__PURE__ */ template(`<button type="button" class="button control-panel__button">`);
4080
4128
  var _tmpl$92 = /* @__PURE__ */ template(`<span class="control-panel-container-fix" aria-hidden="true">&#8203;`);
4081
4129
  var _tmpl$102 = /* @__PURE__ */ template(`<div class="control-panel-container-backdrop">`);
4082
4130
  var _tmpl$112 = /* @__PURE__ */ template(`<div class="control-panel"><div role="menubar" class="control-panel-container">`);
@@ -4161,7 +4209,8 @@ var Game = (props) => {
4161
4209
  const _el$ = _tmpl$122(), _el$2 = _el$.firstChild, _el$3 = _el$2.nextSibling, _el$4 = _el$3.firstChild, _el$6 = _el$4.firstChild, _el$16 = _el$3.nextSibling, _el$17 = _el$16.nextSibling, _el$23 = _el$17.nextSibling;
4162
4210
  insert(_el$, createComponent(Canvas, {
4163
4211
  "class": "background",
4164
- resize: false,
4212
+ resize: true,
4213
+ throttle: 150,
4165
4214
  render: async (canvas, ctx) => {
4166
4215
  const bg = background().background;
4167
4216
  const isColor = !isCSSImage(bg);
@@ -4223,7 +4272,7 @@ var Game = (props) => {
4223
4272
  return dialog().miniature.emotion;
4224
4273
  },
4225
4274
  get children() {
4226
- const _el$5 = _tmpl$16();
4275
+ const _el$5 = _tmpl$13();
4227
4276
  insert(_el$5, createComponent(Show, {
4228
4277
  get when() {
4229
4278
  return dialog().miniature.emotion;
@@ -4287,7 +4336,7 @@ var Game = (props) => {
4287
4336
  });
4288
4337
  return _el$7;
4289
4338
  })(), (() => {
4290
- const _el$8 = _tmpl$34();
4339
+ const _el$8 = _tmpl$35();
4291
4340
  insert(_el$8, createComponent(For, {
4292
4341
  get each() {
4293
4342
  return choice().choices;
@@ -4432,6 +4481,9 @@ var Game = (props) => {
4432
4481
  setControlPanelMenuExpanded((prev) => !prev);
4433
4482
  };
4434
4483
  setAttribute(_el$19, "aria-controls", controlPanelMenuID);
4484
+ insert(_el$19, createComponent(Icon, {
4485
+ icon: "#novely-list-icon"
4486
+ }));
4435
4487
  createRenderEffect((_p$) => {
4436
4488
  const _v$3 = data.t("OpenMenu"), _v$4 = controlPanelMenuExpanded();
4437
4489
  _v$3 !== _p$._v$3 && setAttribute(_el$19, "title", _p$._v$3 = _v$3);
@@ -4533,17 +4585,17 @@ var Game = (props) => {
4533
4585
  delegateEvents(["click", "keydown"]);
4534
4586
 
4535
4587
  // src/screens/loading.tsx
4536
- var _tmpl$17 = /* @__PURE__ */ template(`<div class="loading"><div class="loading__animation"><div></div><div></div><div></div><div>`);
4588
+ var _tmpl$14 = /* @__PURE__ */ template(`<div class="loading"><div class="loading__animation"><div></div><div></div><div></div><div>`);
4537
4589
  var Loading = (props) => {
4538
4590
  return (() => {
4539
- const _el$ = _tmpl$17();
4591
+ const _el$ = _tmpl$14();
4540
4592
  createRenderEffect(() => _el$.classList.toggle("overlay", !!props.overlay));
4541
4593
  return _el$;
4542
4594
  })();
4543
4595
  };
4544
4596
 
4545
4597
  // src/screens/mainmenu.tsx
4546
- var _tmpl$18 = /* @__PURE__ */ template(`<div class="main-menu"><div class="main-menu__controls"><button type="button" class="button main-menu__button"><span class="main-menu__button__text"></span><svg width="24" height="24" viewBox="0 0 256 256"><use href="#novely-file-plus-icon"></use></svg></button><button type="button" class="button main-menu__button"><span class="main-menu__button__text"></span><svg width="24" height="24" viewBox="0 0 256 256"><use href="#novely-play-game-icon"></use></svg></button><button type="button" class="button main-menu__button"><span class="main-menu__button__text"></span><svg width="24" height="24" viewBox="0 0 256 256"><use href="#novely-files-icon"></use></svg></button><button type="button" class="button main-menu__button"><span class="main-menu__button__text"></span><svg width="24" height="24" viewBox="0 0 256 256"><use href="#novely-settings-icon">`);
4598
+ var _tmpl$15 = /* @__PURE__ */ template(`<div class="main-menu"><div class="main-menu__controls"><button type="button" class="button main-menu__button"><span class="main-menu__button__text"></span></button><button type="button" class="button main-menu__button"><span class="main-menu__button__text"></span></button><button type="button" class="button main-menu__button"><span class="main-menu__button__text"></span></button><button type="button" class="button main-menu__button"><span class="main-menu__button__text">`);
4547
4599
  var _tmpl$27 = /* @__PURE__ */ template(`<button>`);
4548
4600
  var MainMenu = () => {
4549
4601
  const {
@@ -4560,23 +4612,35 @@ var MainMenu = () => {
4560
4612
  $rendererState.mutate((s) => s.screen, screen);
4561
4613
  });
4562
4614
  return (() => {
4563
- const _el$ = _tmpl$18(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, _el$5 = _el$3.nextSibling, _el$6 = _el$5.firstChild, _el$7 = _el$5.nextSibling, _el$8 = _el$7.firstChild, _el$9 = _el$7.nextSibling, _el$10 = _el$9.firstChild;
4615
+ const _el$ = _tmpl$15(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.firstChild, _el$5 = _el$3.nextSibling, _el$6 = _el$5.firstChild, _el$7 = _el$5.nextSibling, _el$8 = _el$7.firstChild, _el$9 = _el$7.nextSibling, _el$10 = _el$9.firstChild;
4564
4616
  _el$3.$$click = () => {
4565
4617
  options.newGame();
4566
4618
  };
4567
4619
  insert(_el$4, () => t("NewGame"));
4620
+ insert(_el$3, createComponent(Icon, {
4621
+ icon: "#novely-file-plus-icon"
4622
+ }), null);
4568
4623
  _el$5.$$click = () => {
4569
4624
  options.restore();
4570
4625
  };
4571
4626
  insert(_el$6, () => t("LoadSave"));
4627
+ insert(_el$5, createComponent(Icon, {
4628
+ icon: "#novely-play-game-icon"
4629
+ }), null);
4572
4630
  _el$7.$$click = () => {
4573
4631
  goto("saves");
4574
4632
  };
4575
4633
  insert(_el$8, () => t("Saves"));
4634
+ insert(_el$7, createComponent(Icon, {
4635
+ icon: "#novely-files-icon"
4636
+ }), null);
4576
4637
  _el$9.$$click = () => {
4577
4638
  goto("settings");
4578
4639
  };
4579
4640
  insert(_el$10, () => t("Settings"));
4641
+ insert(_el$9, createComponent(Icon, {
4642
+ icon: "#novely-settings-icon"
4643
+ }), null);
4580
4644
  insert(_el$2, createComponent(Show, {
4581
4645
  get when() {
4582
4646
  return language();
@@ -4599,9 +4663,9 @@ var MainMenu = () => {
4599
4663
  delegateEvents(["click"]);
4600
4664
 
4601
4665
  // src/screens/saves.tsx
4602
- var _tmpl$19 = /* @__PURE__ */ template(`<ol class="saves__list">`);
4666
+ var _tmpl$16 = /* @__PURE__ */ template(`<ol class="saves__list">`);
4603
4667
  var _tmpl$28 = /* @__PURE__ */ template(`<div class="saves"><div class="saves__controls"><button type="button" class="button saves__button"></button></div><div class="saves__list-container">`);
4604
- var _tmpl$35 = /* @__PURE__ */ template(`<div class="saves__list saves__list--empty">`);
4668
+ var _tmpl$36 = /* @__PURE__ */ template(`<div class="saves__list saves__list--empty">`);
4605
4669
  var Saves = () => {
4606
4670
  const {
4607
4671
  t,
@@ -4679,13 +4743,13 @@ var Saves = () => {
4679
4743
  },
4680
4744
  get fallback() {
4681
4745
  return (() => {
4682
- const _el$6 = _tmpl$35();
4746
+ const _el$6 = _tmpl$36();
4683
4747
  insert(_el$6, () => t("NoSaves"));
4684
4748
  return _el$6;
4685
4749
  })();
4686
4750
  },
4687
4751
  get children() {
4688
- const _el$5 = _tmpl$19();
4752
+ const _el$5 = _tmpl$16();
4689
4753
  use(setList, _el$5);
4690
4754
  insert(_el$5, createComponent(For, {
4691
4755
  get each() {
@@ -4716,7 +4780,7 @@ var Saves = () => {
4716
4780
  delegateEvents(["click"]);
4717
4781
 
4718
4782
  // src/screens/settings.tsx
4719
- var _tmpl$20 = /* @__PURE__ */ template(`<div class="root settings"><div class="settings__controls"><button type="button" class="button settings__button"></button><button type="button" class="button settings__button"></button></div><div class="settings__options"><div></div><div>`);
4783
+ var _tmpl$17 = /* @__PURE__ */ template(`<div class="root settings"><div class="settings__controls"><button type="button" class="button settings__button"></button><button type="button" class="button settings__button"></button></div><div class="settings__options"><div></div><div>`);
4720
4784
  var _tmpl$29 = /* @__PURE__ */ template(`<option>`);
4721
4785
  var Settings = (props) => {
4722
4786
  const {
@@ -4763,7 +4827,7 @@ var Settings = (props) => {
4763
4827
  return fn;
4764
4828
  };
4765
4829
  return (() => {
4766
- const _el$ = _tmpl$20(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$2.nextSibling, _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling;
4830
+ const _el$ = _tmpl$17(), _el$2 = _el$.firstChild, _el$3 = _el$2.firstChild, _el$4 = _el$3.nextSibling, _el$5 = _el$2.nextSibling, _el$6 = _el$5.firstChild, _el$7 = _el$6.nextSibling;
4767
4831
  _el$3.$$click = () => {
4768
4832
  $rendererState.setKey("screen", "mainmenu");
4769
4833
  };
@@ -4864,7 +4928,7 @@ var Settings = (props) => {
4864
4928
  delegateEvents(["click"]);
4865
4929
 
4866
4930
  // src/components/Root.tsx
4867
- var _tmpl$21 = /* @__PURE__ */ template(`<div class="root">`);
4931
+ var _tmpl$18 = /* @__PURE__ */ template(`<div class="root">`);
4868
4932
  var createRootComponent = ({
4869
4933
  $rendererState,
4870
4934
  $contextState,
@@ -4898,7 +4962,7 @@ var createRootComponent = ({
4898
4962
  emitter.emit("screen:change", currentScreen);
4899
4963
  });
4900
4964
  return (() => {
4901
- const _el$ = _tmpl$21();
4965
+ const _el$ = _tmpl$18();
4902
4966
  const _ref$ = setRoot;
4903
4967
  typeof _ref$ === "function" ? use(_ref$, _el$) : setRoot = _el$;
4904
4968
  insert(_el$, createComponent(Provider, {
@@ -5128,7 +5192,7 @@ var createEmitter = () => {
5128
5192
  };
5129
5193
 
5130
5194
  // src/renderer.tsx
5131
- var _tmpl$30 = /* @__PURE__ */ template(`<canvas>`);
5195
+ var _tmpl$19 = /* @__PURE__ */ template(`<canvas>`);
5132
5196
  var {
5133
5197
  preloadAudioBlocking
5134
5198
  } = createAudioMisc();
@@ -5187,7 +5251,7 @@ var createSolidRenderer = ({
5187
5251
  return chars[character];
5188
5252
  }
5189
5253
  const canvas = (() => {
5190
- const _el$ = _tmpl$30();
5254
+ const _el$ = _tmpl$19();
5191
5255
  setAttribute(_el$, "data-character", character);
5192
5256
  return _el$;
5193
5257
  })();
@@ -90,8 +90,8 @@
90
90
  }
91
91
  .characters > canvas {
92
92
  min-width: unset;
93
- max-width: calc(100% / max(2, var(--shown-characters-count)));
94
93
  max-height: 85%;
94
+ max-width: calc(100% / max(2, var(--shown-characters-count)));
95
95
  position: relative;
96
96
  }
97
97
  @media (max-aspect-ratio: .26) {
@@ -203,9 +203,9 @@
203
203
  z-index: 10;
204
204
  text-align: center;
205
205
  background: var(--novely-fullscreen-background-color, #0000004d);
206
+ max-width: 100vw;
206
207
  text-shadow: var(--novely-fullscreen-text-shadow, .125rem .125rem .25rem #00000080);
207
208
  color: var(--novely-fullscreen-text-color, white);
208
- max-width: 100vw;
209
209
  font-size: 2rem;
210
210
  display: none;
211
211
  position: fixed;
@@ -459,6 +459,8 @@
459
459
  display: none;
460
460
  }
461
461
  .action-dialog-container {
462
+ height: 100%;
463
+ min-height: 18vh;
462
464
  color: var(--novely-dialog-color, #fff);
463
465
  border: var(--novely-dialog-border-width, .18rem) solid var(--novely-dialog-border-color, #fff);
464
466
  border-radius: var(--novely-dialog-border-radius, .875rem);
@@ -469,8 +471,6 @@
469
471
  background-size: var(--novely-dialog-background-size, 6.25rem 6.25rem);
470
472
  flex-wrap: nowrap;
471
473
  flex-grow: 1;
472
- height: 100%;
473
- min-height: 18vh;
474
474
  padding-bottom: 2.8rem;
475
475
  display: flex;
476
476
  }
@@ -488,10 +488,10 @@
488
488
  display: block;
489
489
  }
490
490
  .action-dialog-name {
491
+ width: fit-content;
491
492
  box-shadow: var(--novely-px) var(--novely-px) .18rem #00000042;
492
493
  background: #fff;
493
494
  border-radius: .438rem .438rem 0 0;
494
- width: fit-content;
495
495
  margin-left: 5vmin;
496
496
  font-size: 1.85rem;
497
497
  line-height: 1.2;
@@ -503,12 +503,12 @@
503
503
  .action-dialog-content {
504
504
  word-wrap: break-word;
505
505
  word-break: break-word;
506
+ width: 100%;
506
507
  text-shadow:
507
508
  var(--novely-px) var(--novely-px) 0 black,
508
509
  calc(var(--novely-px) * -1) calc(var(--novely-px) * -1) 0 black,
509
510
  var(--novely-px) calc(var(--novely-px) * -1) 0 black,
510
511
  calc(var(--novely-px) * -1) var(--novely-px) 0 black;
511
- width: 100%;
512
512
  font-size: 2rem;
513
513
  line-height: 1.2;
514
514
  }
@@ -523,10 +523,10 @@
523
523
  }
524
524
  @media (max-aspect-ratio: .8) {
525
525
  .action-dialog {
526
+ width: 100%;
526
527
  bottom: 0;
527
528
  left: unset;
528
529
  transform: unset;
529
- width: 100%;
530
530
  }
531
531
  .action-dialog-name,
532
532
  .action-dialog-content {
@@ -687,6 +687,7 @@
687
687
  min-height: 1lh;
688
688
  }
689
689
  .input-dialog {
690
+ min-width: 35vw;
690
691
  color: var(--novely-input-dialog-color, #fff);
691
692
  border: var(--novely-input-dialog-border-width, .18rem) solid var(--novely-input-dialog-border-color, #fff);
692
693
  border-radius: var(--novely-input-dialog-border-radius, .875rem);
@@ -697,7 +698,6 @@
697
698
  background-size: var(--novely-input-dialog-background-size, 6.25rem 6.25rem);
698
699
  justify-content: center;
699
700
  align-items: center;
700
- min-width: 35vw;
701
701
  }
702
702
  @media (max-aspect-ratio: .8) {
703
703
  .input-dialog__text {
@@ -1028,6 +1028,8 @@ input[name=novely-input][type=checkbox] {
1028
1028
  overflow: hidden;
1029
1029
  }
1030
1030
  .saves__list {
1031
+ width: 100%;
1032
+ height: 80%;
1031
1033
  padding: var(--novely-saves-list-border-width, .875rem) 1rem;
1032
1034
  content-visibility: auto;
1033
1035
  border-radius: var(--novely-saves-list-border-radius, .875rem);
@@ -1035,8 +1037,6 @@ input[name=novely-input][type=checkbox] {
1035
1037
  flex-wrap: wrap;
1036
1038
  place-content: flex-start;
1037
1039
  gap: 1rem;
1038
- width: 100%;
1039
- height: 80%;
1040
1040
  margin-top: 0;
1041
1041
  margin-bottom: 0;
1042
1042
  list-style: none;
@@ -1215,11 +1215,11 @@ input[name=novely-input][type=checkbox] {
1215
1215
  line-height: 1.2;
1216
1216
  }
1217
1217
  .dialog-overview__body {
1218
+ width: 100%;
1219
+ height: calc(100vh - 4rem);
1218
1220
  padding: 0 var(--novely-saves-list-border-width, .675rem) 0 0;
1219
1221
  justify-content: center;
1220
1222
  align-items: baseline;
1221
- width: 100%;
1222
- height: calc(100vh - 4rem);
1223
1223
  display: flex;
1224
1224
  overflow-x: hidden;
1225
1225
  overflow-y: scroll;
@@ -1255,6 +1255,8 @@ input[name=novely-input][type=checkbox] {
1255
1255
  }
1256
1256
  .dialog-overview__button-audio-control {
1257
1257
  color: #fff;
1258
+ width: 2cap;
1259
+ height: 2cap;
1258
1260
  box-shadow: 0 0 0 var(--novely-px) #0003;
1259
1261
  cursor: pointer;
1260
1262
  background-color: #00000017;
@@ -1262,8 +1264,6 @@ input[name=novely-input][type=checkbox] {
1262
1264
  border-radius: .2rem;
1263
1265
  justify-content: center;
1264
1266
  align-items: center;
1265
- width: 2cap;
1266
- height: 2cap;
1267
1267
  padding: .4rem;
1268
1268
  display: flex;
1269
1269
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@novely/solid-renderer",
3
- "version": "0.42.0-next.1",
3
+ "version": "0.42.0-next.3",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -17,15 +17,16 @@
17
17
  "dependencies": {
18
18
  "@solid-primitives/destructure": "^0.1.17",
19
19
  "clsx": "^2.1.1",
20
+ "es-toolkit": "^1.23.0",
20
21
  "solid-js": "~1.9.3",
21
22
  "solid-transition-group": "^0.2.3",
22
- "@novely/core": "0.46.0-next.0",
23
+ "@novely/renderer-toolkit": "0.12.0",
23
24
  "@novely/typewriter": "0.5.1",
24
- "@novely/renderer-toolkit": "0.12.0"
25
+ "@novely/core": "0.46.0-next.1"
25
26
  },
26
27
  "peerDependencies": {
27
- "@novely/core": "*",
28
- "solid-js": "*"
28
+ "solid-js": "*",
29
+ "@novely/core": "0.46.0-next.1"
29
30
  },
30
31
  "license": "ISC",
31
32
  "bugs": {