@anywayseo/tools 5.8.0 → 5.8.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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("../index-BSOCyFLF.js");
3
+ const index = require("../index-D-WTkYJu.js");
4
4
  const index$1 = require("../index-BrpyfyHr.js");
5
5
  const index$2 = require("../index-DDg_PkD2.js");
6
6
  const index$3 = require("../index-BNkvrBOj.js");
@@ -1,4 +1,4 @@
1
- import { A, a, b, c, n, o, d, B, e, C, r, q, F, f, g, G, h, i, j, p, H, I, L, N, s, P, S, k, T, l, t, m } from "../index-Bigf9jEx.mjs";
1
+ import { A, a, b, c, n, o, d, B, e, C, r, q, F, f, g, G, h, i, j, p, H, I, L, N, s, P, S, k, T, l, t, m } from "../index-BN9vRBzY.mjs";
2
2
  import { C as C2, a as a2, b as b2, L as L2, c as c2, R, S as S2, d as d2 } from "../index-CodGh8Sq.mjs";
3
3
  import { H as H2, a as a3, b as b3, O, P as P2, U } from "../index-BEjKnOZA.mjs";
4
4
  import { I as I2, L as L3 } from "../index-C3FKVt3V.mjs";
@@ -405,7 +405,7 @@ const buttonAnimationProps = {
405
405
  type: "pulse",
406
406
  params: { duration: 2, timingFunction: "ease-out", isInfinite: true }
407
407
  };
408
- const GameDemoPreview = ({ image, alt, src, refLink, imageFit = "contain", onPlayDemo }) => {
408
+ const GameDemoPreview = ({ image, alt, src, refLink, imageFit = "cover", onPlayDemo }) => {
409
409
  const { t: t2 } = useTranslation("gameDemo");
410
410
  function getPrimaryButton() {
411
411
  if (refLink) {
@@ -435,7 +435,7 @@ const GameDemoPreview = ({ image, alt, src, refLink, imageFit = "contain", onPla
435
435
  }
436
436
  return /* @__PURE__ */ jsxs(Stack, { children: [
437
437
  !src && /* @__PURE__ */ jsx(GameDemoAlert, {}),
438
- /* @__PURE__ */ jsxs(Box, { position: "relative", children: [
438
+ /* @__PURE__ */ jsxs(Box, { position: "relative", flex: 1, children: [
439
439
  /* @__PURE__ */ jsx(Image, { src: image, alt, objectFit: imageFit, w: "100%", h: "100%" }),
440
440
  /* @__PURE__ */ jsx(AbsoluteCenter, { children: /* @__PURE__ */ jsxs(Stack, { spacing: 4, children: [
441
441
  getPrimaryButton(),
@@ -1077,7 +1077,16 @@ const StrapiComponent = ({ type, props, imageComponent }) => {
1077
1077
  name: props.name,
1078
1078
  src: props == null ? void 0 : props.src,
1079
1079
  refLink: ((_a = props == null ? void 0 : props.partner) == null ? void 0 : _a.refLink) ?? (props == null ? void 0 : props.href),
1080
- previewImage: /* @__PURE__ */ jsx(ExternalImage, { image: props.previewImage, alt: props.name, component: imageComponent }),
1080
+ previewImage: /* @__PURE__ */ jsx(
1081
+ ExternalImage,
1082
+ {
1083
+ image: props.previewImage,
1084
+ alt: props.name,
1085
+ component: imageComponent,
1086
+ objectFit: "cover",
1087
+ style: { height: "100%", aspectRatio: "16/9" }
1088
+ }
1089
+ ),
1081
1090
  mb: 4
1082
1091
  }
1083
1092
  );
@@ -406,7 +406,7 @@ const buttonAnimationProps = {
406
406
  type: "pulse",
407
407
  params: { duration: 2, timingFunction: "ease-out", isInfinite: true }
408
408
  };
409
- const GameDemoPreview = ({ image, alt, src, refLink, imageFit = "contain", onPlayDemo }) => {
409
+ const GameDemoPreview = ({ image, alt, src, refLink, imageFit = "cover", onPlayDemo }) => {
410
410
  const { t } = reactI18next.useTranslation("gameDemo");
411
411
  function getPrimaryButton() {
412
412
  if (refLink) {
@@ -436,7 +436,7 @@ const GameDemoPreview = ({ image, alt, src, refLink, imageFit = "contain", onPla
436
436
  }
437
437
  return /* @__PURE__ */ jsxRuntime.jsxs(react.Stack, { children: [
438
438
  !src && /* @__PURE__ */ jsxRuntime.jsx(GameDemoAlert, {}),
439
- /* @__PURE__ */ jsxRuntime.jsxs(react.Box, { position: "relative", children: [
439
+ /* @__PURE__ */ jsxRuntime.jsxs(react.Box, { position: "relative", flex: 1, children: [
440
440
  /* @__PURE__ */ jsxRuntime.jsx(index.Image, { src: image, alt, objectFit: imageFit, w: "100%", h: "100%" }),
441
441
  /* @__PURE__ */ jsxRuntime.jsx(react.AbsoluteCenter, { children: /* @__PURE__ */ jsxRuntime.jsxs(react.Stack, { spacing: 4, children: [
442
442
  getPrimaryButton(),
@@ -1078,7 +1078,16 @@ const StrapiComponent = ({ type, props, imageComponent }) => {
1078
1078
  name: props.name,
1079
1079
  src: props == null ? void 0 : props.src,
1080
1080
  refLink: ((_a = props == null ? void 0 : props.partner) == null ? void 0 : _a.refLink) ?? (props == null ? void 0 : props.href),
1081
- previewImage: /* @__PURE__ */ jsxRuntime.jsx(ExternalImage, { image: props.previewImage, alt: props.name, component: imageComponent }),
1081
+ previewImage: /* @__PURE__ */ jsxRuntime.jsx(
1082
+ ExternalImage,
1083
+ {
1084
+ image: props.previewImage,
1085
+ alt: props.name,
1086
+ component: imageComponent,
1087
+ objectFit: "cover",
1088
+ style: { height: "100%", aspectRatio: "16/9" }
1089
+ }
1090
+ ),
1082
1091
  mb: 4
1083
1092
  }
1084
1093
  );
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index-BSOCyFLF.js");
3
+ const index = require("./index-D-WTkYJu.js");
4
4
  const index$1 = require("./index-BrpyfyHr.js");
5
5
  const index$2 = require("./index-DDg_PkD2.js");
6
6
  const index$3 = require("./index-BNkvrBOj.js");
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { A, a, b, c, n, o, d, B, e, C, r, q, F, f, g, G, h, i, j, p, H, I, L, N, s, P, S, k, T, l, t, m } from "./index-Bigf9jEx.mjs";
1
+ import { A, a, b, c, n, o, d, B, e, C, r, q, F, f, g, G, h, i, j, p, H, I, L, N, s, P, S, k, T, l, t, m } from "./index-BN9vRBzY.mjs";
2
2
  import { C as C2, a as a2, b as b2, L as L2, c as c2, R, S as S2, d as d2 } from "./index-CodGh8Sq.mjs";
3
3
  import { H as H2, a as a3, b as b3, O, P as P2, U } from "./index-BEjKnOZA.mjs";
4
4
  import { I as I2, L as L3, P as P3, S as S3, u, a as a4 } from "./index-C3FKVt3V.mjs";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@anywayseo/tools",
3
3
  "description": "Shared UI Components and Modules",
4
- "version": "5.8.0",
4
+ "version": "5.8.2",
5
5
  "keywords": [
6
6
  "react",
7
7
  "ui",