@open-slot-ui/core 0.13.0 → 0.13.2

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/dist/index.cjs CHANGED
@@ -2810,8 +2810,9 @@ function composeMenu(menu, opts = {}) {
2810
2810
  out.push({ kind: "image", id: "menu-banner", src: menu.banner.src, width: menu.banner.width, height: menu.banner.height });
2811
2811
  }
2812
2812
  out.push({ kind: "heading", id: "menu-sec-settings", text: titles.settings });
2813
- out.push({ kind: "slider", id: "music", label: "Music" });
2814
- out.push({ kind: "slider", id: "sfx", label: "Sound" });
2813
+ if (menu?.settings?.length) out.push(...menu.settings);
2814
+ out.push({ kind: "slider", id: "music", label: "Music", hint: "Background music volume." });
2815
+ out.push({ kind: "slider", id: "sfx", label: "Effects", hint: "Sound effect volume." });
2815
2816
  const locales = opts.locales ?? [];
2816
2817
  if (locales.length >= 2) {
2817
2818
  out.push({
@@ -2821,7 +2822,6 @@ function composeMenu(menu, opts = {}) {
2821
2822
  options: locales.map((code) => ({ value: code, label: LOCALE_LABELS[code] ?? code.toUpperCase() }))
2822
2823
  });
2823
2824
  }
2824
- if (menu?.settings?.length) out.push(...menu.settings);
2825
2825
  if (menu?.paytable?.length) {
2826
2826
  out.push({ kind: "heading", id: "menu-sec-paytable", text: titles.paytable });
2827
2827
  out.push(...menu.paytable);