@gamelearn/arcade-components 3.35.1 → 3.36.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.
@@ -56402,7 +56402,7 @@ function CardImage({ img: l }) {
56402
56402
  return /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: n, alt: "" });
56403
56403
  }
56404
56404
  function CardText({ text: l, hasImage: e }) {
56405
- return l ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `card-selector-item__textbox ${e ? "" : "card-selector-item__textbox--noimage"}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "card-selector-item__text", children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: l || "_" }) }) }) : null;
56405
+ return l ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: `card-selector-item__textbox ${e ? "" : "card-selector-item__textbox--noimage"}`, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "card-selector-item__text", children: HTMLReactParser$1(l) }) }) : null;
56406
56406
  }
56407
56407
  function CardNumber({ order: l }) {
56408
56408
  return l ? /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "card-selector-item__order", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: l }) }) : null;
@@ -56430,11 +56430,16 @@ function Card({ card: l, handleClick: e, flipped: n, cardIndex: t, wrongOrder: s
56430
56430
  onClick: () => {
56431
56431
  !o() && d() && e(t);
56432
56432
  },
56433
- className: `unset-button card-selector-item ${o() ? "card-selector-item--empty" : ""}`,
56433
+ className: [
56434
+ "unset-button card-selector-item",
56435
+ o() && "card-selector-item--empty",
56436
+ (l.textWithBackground || l.textWithBackground === void 0) && "card-selector-item--text-with-background",
56437
+ l.verticalAlignmentText && `card-selector-item--with-text-at-${l.verticalAlignmentText}`
56438
+ ].filter(Boolean).join(" "),
56434
56439
  "aria-label": l.text ? l.text : null,
56435
56440
  children: [
56436
- /* @__PURE__ */ jsxRuntimeExports.jsx(CardImage, { img: l.img }),
56437
- /* @__PURE__ */ jsxRuntimeExports.jsx(CardText, { text: l.text, hasImage: !!l.img }),
56441
+ l.img && /* @__PURE__ */ jsxRuntimeExports.jsx(CardImage, { img: l.img }),
56442
+ l.text && /* @__PURE__ */ jsxRuntimeExports.jsx(CardText, { text: l.text, hasImage: !!l.img }),
56438
56443
  /* @__PURE__ */ jsxRuntimeExports.jsx(
56439
56444
  CardContainer,
56440
56445
  {
@@ -58298,7 +58303,7 @@ function SurveyComponent({ emitEvent: l, getEvent: e, soundActions: n }) {
58298
58303
  children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: LangIsRtl() ? "icon-next" : "icon-back" })
58299
58304
  }
58300
58305
  ),
58301
- h && o === PAGES.length - 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
58306
+ !h && o === PAGES.length - 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
58302
58307
  "button",
58303
58308
  {
58304
58309
  "data-testid": "survey.finish",
@@ -58312,7 +58317,7 @@ function SurveyComponent({ emitEvent: l, getEvent: e, soundActions: n }) {
58312
58317
  children: p("survey.finish")
58313
58318
  }
58314
58319
  ) : null,
58315
- !h && o !== PAGES.length ? /* @__PURE__ */ jsxRuntimeExports.jsx(
58320
+ !h && o !== PAGES.length - 1 ? /* @__PURE__ */ jsxRuntimeExports.jsx(
58316
58321
  "button",
58317
58322
  {
58318
58323
  "data-testid": "nextButton",