@open-slot-ui/pixi 0.12.0 → 0.13.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/dist/art.js +1 -1
- package/dist/{chunk-FN6UJ3WO.js → chunk-MKTMN76I.js} +52 -13
- package/dist/chunk-MKTMN76I.js.map +1 -0
- package/dist/index.cjs +67 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +19 -15
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
- package/dist/chunk-FN6UJ3WO.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -479,7 +479,7 @@ interface MenuViewOptions {
|
|
|
479
479
|
controlSkins?: Partial<Record<string, ControlViewFactory>>;
|
|
480
480
|
/** Header title (localizable). Default 'Menu'. */
|
|
481
481
|
title?: string;
|
|
482
|
-
/** Max card width in px. Default
|
|
482
|
+
/** Max card width in px. Default 760 (the reference sheet width). */
|
|
483
483
|
maxWidth?: number;
|
|
484
484
|
}
|
|
485
485
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -479,7 +479,7 @@ interface MenuViewOptions {
|
|
|
479
479
|
controlSkins?: Partial<Record<string, ControlViewFactory>>;
|
|
480
480
|
/** Header title (localizable). Default 'Menu'. */
|
|
481
481
|
title?: string;
|
|
482
|
-
/** Max card width in px. Default
|
|
482
|
+
/** Max card width in px. Default 760 (the reference sheet width). */
|
|
483
483
|
maxWidth?: number;
|
|
484
484
|
}
|
|
485
485
|
/**
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ControlView, ButtonView, SliderView, buildBlockColumn, OpenUIPixi } from './chunk-
|
|
2
|
-
export { AutoplayDrawerView, AutoplayView, ButtonView, ControlView, DialogView, MenuView, OpenUIPixi, ReadoutView, SelectView, SliderView, SpinView, StepperView, TextCellRenderer, ToggleView, TurboView, Tweener, ValueDisplayView, buildBlockColumn, defaultSpinSkin, drawSpin, isDesktop, svgSpinSkin } from './chunk-
|
|
1
|
+
import { ControlView, ButtonView, SliderView, buildBlockColumn, OpenUIPixi } from './chunk-MKTMN76I.js';
|
|
2
|
+
export { AutoplayDrawerView, AutoplayView, ButtonView, ControlView, DialogView, MenuView, OpenUIPixi, ReadoutView, SelectView, SliderView, SpinView, StepperView, TextCellRenderer, ToggleView, TurboView, Tweener, ValueDisplayView, buildBlockColumn, defaultSpinSkin, drawSpin, isDesktop, svgSpinSkin } from './chunk-MKTMN76I.js';
|
|
3
3
|
import { Text, Graphics, Container, Rectangle, Texture, Sprite, Assets } from 'pixi.js';
|
|
4
4
|
import { INFO_MENU_VARS, escapeHtml, LOCALE_LABELS, renderBlocksHtml, INFO_MENU_CSS, createUI, composeMenu, buildPanel, factsVars, renderRulesAuditHtml, auditRules, formatAmountPrecise } from '@open-slot-ui/core';
|
|
5
5
|
|
|
@@ -933,7 +933,7 @@ function showBootError(opts = {}) {
|
|
|
933
933
|
host.innerHTML = `
|
|
934
934
|
<div class="openui-be-card">
|
|
935
935
|
<div class="openui-be-icon" aria-hidden="true">
|
|
936
|
-
<svg viewBox="0 0 48 48" width="
|
|
936
|
+
<svg viewBox="0 0 48 48" width="46" height="46"><path d="M24 5 4 41h40L24 5Z" fill="none" stroke="#000" stroke-width="4" stroke-linejoin="round"/><rect x="22" y="19" width="4" height="12" rx="2" fill="#000"/><circle cx="24" cy="35.5" r="2.5" fill="#000"/></svg>
|
|
937
937
|
</div>
|
|
938
938
|
<h1 class="openui-be-title">${esc2(title)}</h1>
|
|
939
939
|
<p class="openui-be-msg">${esc2(message)}</p>
|
|
@@ -941,19 +941,23 @@ function showBootError(opts = {}) {
|
|
|
941
941
|
${showReload ? `<button class="openui-be-reload" type="button">${esc2(opts.reloadLabel ?? "Reload")}</button>` : ""}
|
|
942
942
|
</div>
|
|
943
943
|
<style>
|
|
944
|
+
/* MONOCHROME by design \u2014 a neutral black-and-white system card, no theme accent. */
|
|
944
945
|
.openui-boot-error { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center;
|
|
945
|
-
font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #
|
|
946
|
-
background: rgba(
|
|
947
|
-
.openui-be-card { width: min(90%, 440px); text-align: center; padding:
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
.openui-be-
|
|
951
|
-
|
|
952
|
-
.openui-be-
|
|
953
|
-
.openui-be-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
.openui-be-reload
|
|
946
|
+
font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #181b20;
|
|
947
|
+
background: rgba(8,8,8,.62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
|
|
948
|
+
.openui-be-card { width: min(90%, 440px); text-align: center; padding: 40px 36px 32px;
|
|
949
|
+
display: flex; flex-direction: column; align-items: center; gap: 14px;
|
|
950
|
+
background: #fff; border: 4px solid #000; border-radius: 24px; box-shadow: 0 24px 60px rgba(0,0,0,.55); }
|
|
951
|
+
.openui-be-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 999px;
|
|
952
|
+
border: 4px solid #000; line-height: 0; }
|
|
953
|
+
.openui-be-title { margin: 0; font-size: 26px; font-weight: 800; color: #000; letter-spacing: .01em; }
|
|
954
|
+
.openui-be-msg { margin: 0; font-size: 16px; line-height: 1.5; font-weight: 600; color: #3a3f47; max-width: 34ch; }
|
|
955
|
+
.openui-be-detail { margin: 0; font-size: 12px; line-height: 1.4; color: #8a9099; word-break: break-word;
|
|
956
|
+
font-family: ui-monospace, "SF Mono", Menlo, monospace; max-width: 40ch; }
|
|
957
|
+
.openui-be-reload { appearance: none; cursor: pointer; margin-top: 8px; padding: 14px 42px; border-radius: 999px;
|
|
958
|
+
border: 4px solid #000; background: #000; color: #fff; font-weight: 800; font-size: 16px; letter-spacing: .03em;
|
|
959
|
+
transition: transform .1s ease, background .12s ease; }
|
|
960
|
+
.openui-be-reload:hover { background: #1c1c1c; }
|
|
957
961
|
.openui-be-reload:active { transform: scale(.96); }
|
|
958
962
|
</style>`;
|
|
959
963
|
if (showReload) {
|