@betorigami/game-ui-shared 8.0.0 → 8.1.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.
@@ -28,7 +28,7 @@ export declare class GameLayout extends OrigamiElement {
28
28
  private get isUiLocked();
29
29
  private get gameFooterPosition();
30
30
  private getCustomBackgroundUrl;
31
- private getGameAreaCustomStyles;
31
+ private getSkinCssVariables;
32
32
  private previousHistoryController?;
33
33
  private onHistoryDataChanged;
34
34
  firstUpdated(): void;
package/dist/index.mjs CHANGED
@@ -699,6 +699,13 @@ const tu = O`
699
699
  .game-outcome-container {
700
700
  display: flex;
701
701
  flex-direction: column;
702
+ padding: 12px;
703
+ background-color: var(--background-secondary);
704
+ background-image: var(--custom-game-background-image, none);
705
+ background-size: cover;
706
+ background-position: center;
707
+ background-repeat: no-repeat;
708
+ border-radius: var(--border-radius);
702
709
  }
703
710
 
704
711
  .game-inputs-section {
@@ -4555,9 +4562,6 @@ const ic = /* @__PURE__ */ new Map(), by = (e) => {
4555
4562
 
4556
4563
  origami-limbo-multiplier {
4557
4564
  pointer-events: none;
4558
- background-color: var(--background-secondary);
4559
- padding: 12px;
4560
- border-radius: var(--border-radius);
4561
4565
  }
4562
4566
 
4563
4567
  origami-diamonds-slots {
@@ -4565,7 +4569,6 @@ const ic = /* @__PURE__ */ new Map(), by = (e) => {
4565
4569
  width: 100%;
4566
4570
  height: auto;
4567
4571
  flex: 0 0 auto;
4568
- background-color: var(--background-secondary);
4569
4572
  --platform-height: 32px;
4570
4573
  }
4571
4574
 
@@ -11431,7 +11434,8 @@ const Tg = O`
11431
11434
  }
11432
11435
 
11433
11436
  .game-area-container {
11434
- padding: 12px;
11437
+ --game-area-padding: 12px;
11438
+ padding: var(--game-area-padding);
11435
11439
  background-color: var(--background-secondary);
11436
11440
  background-image: var(--custom-game-background-image, none);
11437
11441
  background-size: cover;
@@ -11439,7 +11443,6 @@ const Tg = O`
11439
11443
  background-repeat: no-repeat;
11440
11444
  width: 100%;
11441
11445
  height: 100%;
11442
- border-radius: var(--border-radius);
11443
11446
  }
11444
11447
 
11445
11448
  .game-layout-container {
@@ -11500,8 +11503,6 @@ const Tg = O`
11500
11503
  order: 1;
11501
11504
  transition: min-height var(--anim-duration-fast) var(--ease-out-cubic);
11502
11505
  min-height: auto;
11503
- padding: 12px;
11504
- background: var(--background-tertiary);
11505
11506
  }
11506
11507
 
11507
11508
  .divider {
@@ -11540,7 +11541,6 @@ const Tg = O`
11540
11541
  width: 100%;
11541
11542
  background-color: var(--background-tertiary);
11542
11543
  padding: 12px;
11543
- padding-top: 0;
11544
11544
  display: flex;
11545
11545
  flex-direction: column;
11546
11546
  gap: 12px;
@@ -11603,11 +11603,6 @@ const Tg = O`
11603
11603
 
11604
11604
  ${ea} {
11605
11605
  :host {
11606
- .game-area-container {
11607
- border-radius: 0;
11608
- background: var(--background-tertiary);
11609
- }
11610
-
11611
11606
  .content-bottom {
11612
11607
  display: none;
11613
11608
  }
@@ -11626,13 +11621,10 @@ const Tg = O`
11626
11621
  min-height: 0;
11627
11622
  height: 100%;
11628
11623
  order: 2;
11629
- padding: 0;
11630
- background: transparent;
11631
11624
  overflow: hidden;
11632
11625
  }
11633
11626
 
11634
11627
  .game-layout-control-panel {
11635
- padding-top: 12px;
11636
11628
  width: 300px;
11637
11629
  min-width: 300px;
11638
11630
  border-right: 1px solid var(--layout-divider, var(--background-base));
@@ -12512,7 +12504,7 @@ let He = class extends K {
12512
12504
  return null;
12513
12505
  }
12514
12506
  }
12515
- getGameAreaCustomStyles() {
12507
+ getSkinCssVariables() {
12516
12508
  const e = {}, t = this.getCustomBackgroundUrl();
12517
12509
  return t && (e["--custom-game-background-image"] = `url("${t}")`), this.skin.value.customCardRedColor && (e["--card-color-red"] = this.skin.value.customCardRedColor), this.skin.value.customCardBlackColor && (e["--card-color-black"] = this.skin.value.customCardBlackColor), e;
12518
12510
  }
@@ -12931,6 +12923,7 @@ let He = class extends K {
12931
12923
  "game-layout-container": !0,
12932
12924
  "footer-above": this.gameFooterPosition === "ABOVE"
12933
12925
  })}
12926
+ style=${Ka(this.getSkinCssVariables())}
12934
12927
  @footer-hotkeys-click=${() => {
12935
12928
  this.setModalContent({ type: "hotkeys" });
12936
12929
  }}
@@ -12962,7 +12955,7 @@ let He = class extends K {
12962
12955
  aria-label=${d("modals.gameArea", this.locale.value.language)}
12963
12956
  role="region"
12964
12957
  >
12965
- <div class="game-area-container" style=${Ka(this.getGameAreaCustomStyles())}>
12958
+ <div class="game-area-container">
12966
12959
  <slot name="game-area" style=${"height: 100%;"}></slot>
12967
12960
  </div>
12968
12961
 
@@ -15931,8 +15924,8 @@ const Nf = O`
15931
15924
  :host {
15932
15925
  display: block;
15933
15926
  position: absolute;
15934
- top: 0;
15935
- right: 12px;
15927
+ top: var(--game-area-padding, 0px);
15928
+ right: 0;
15936
15929
  z-index: 1;
15937
15930
  pointer-events: none;
15938
15931
  transform: translateY(-85%);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@betorigami/game-ui-shared",
3
- "version": "8.0.0",
3
+ "version": "8.1.0",
4
4
  "author": "",
5
5
  "license": "UNLICENSED",
6
6
  "description": "The Lit components, controllers, translations and wire types shared by every Origami game UI",