@open-slot-ui/core 0.3.3 → 0.4.1

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
@@ -458,6 +458,13 @@ var ValueDisplay = class extends Control {
458
458
  if (!spec || typeof spec.code !== "string") return;
459
459
  this.currency.set({ ...spec, decimals: clampDecimals(spec.decimals) });
460
460
  }
461
+ /** Accent emphasis: the renderer tints the value in the theme accent while on.
462
+ * For "this number is modified" moments — e.g. a bet display showing the
463
+ * EFFECTIVE stake while an ante/boost multiplies it. */
464
+ emphasized = new Signal(false);
465
+ setEmphasis(on) {
466
+ this.emphasized.set(on === true);
467
+ }
461
468
  /** Integer minor units for the counter (no float drift). */
462
469
  get minorUnits() {
463
470
  return Math.round(this.value.get() * Math.pow(10, this.currency.get().decimals));
@@ -1449,10 +1456,12 @@ var openuiDefaults = {
1449
1456
  };
1450
1457
  var openuiSocialDefaults = {
1451
1458
  "openui.bet": "Play",
1452
- "openui.balance": "Credits",
1459
+ "openui.balance": "Balance",
1453
1460
  "openui.win": "Prize",
1454
1461
  "openui.buyFeature.title": "Play bonus",
1455
- "openui.buyFeature.message": "Play this bonus now?"
1462
+ "openui.buyFeature.message": "Play this bonus now?",
1463
+ "openui.err.insufficient.message": "You don't have enough balance for this play.",
1464
+ "openui.err.limit.message": "A play limit has been reached. Please try again later."
1456
1465
  };
1457
1466
  function interpolate(template, vars) {
1458
1467
  if (!vars) return template;