@open-slot-ui/core 0.3.2 → 0.4.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/index.d.cts CHANGED
@@ -484,6 +484,11 @@ declare class ValueDisplay extends Control {
484
484
  get(): number;
485
485
  /** Keep the prior spec on malformed input; clamp decimals to 0..8 (P11). */
486
486
  setCurrency(spec: CurrencySpec): void;
487
+ /** Accent emphasis: the renderer tints the value in the theme accent while on.
488
+ * For "this number is modified" moments — e.g. a bet display showing the
489
+ * EFFECTIVE stake while an ante/boost multiplies it. */
490
+ readonly emphasized: Signal<boolean>;
491
+ setEmphasis(on: boolean): void;
487
492
  /** Integer minor units for the counter (no float drift). */
488
493
  get minorUnits(): number;
489
494
  }
package/dist/index.d.ts CHANGED
@@ -484,6 +484,11 @@ declare class ValueDisplay extends Control {
484
484
  get(): number;
485
485
  /** Keep the prior spec on malformed input; clamp decimals to 0..8 (P11). */
486
486
  setCurrency(spec: CurrencySpec): void;
487
+ /** Accent emphasis: the renderer tints the value in the theme accent while on.
488
+ * For "this number is modified" moments — e.g. a bet display showing the
489
+ * EFFECTIVE stake while an ante/boost multiplies it. */
490
+ readonly emphasized: Signal<boolean>;
491
+ setEmphasis(on: boolean): void;
487
492
  /** Integer minor units for the counter (no float drift). */
488
493
  get minorUnits(): number;
489
494
  }
package/dist/index.js CHANGED
@@ -456,6 +456,13 @@ var ValueDisplay = class extends Control {
456
456
  if (!spec || typeof spec.code !== "string") return;
457
457
  this.currency.set({ ...spec, decimals: clampDecimals(spec.decimals) });
458
458
  }
459
+ /** Accent emphasis: the renderer tints the value in the theme accent while on.
460
+ * For "this number is modified" moments — e.g. a bet display showing the
461
+ * EFFECTIVE stake while an ante/boost multiplies it. */
462
+ emphasized = new Signal(false);
463
+ setEmphasis(on) {
464
+ this.emphasized.set(on === true);
465
+ }
459
466
  /** Integer minor units for the counter (no float drift). */
460
467
  get minorUnits() {
461
468
  return Math.round(this.value.get() * Math.pow(10, this.currency.get().decimals));