@gamelearn/arcade-components 3.35.1 → 3.36.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.
|
@@ -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:
|
|
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:
|
|
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
|
{
|