@anywayseo/tools 2.5.0 → 2.5.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.
- package/dist/components/bonus-card/index.d.ts +3 -1
- package/dist/components/game-card/index.d.ts +3 -1
- package/dist/components/index.cjs +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/{index-BWm-60DT.mjs → index-CIHivV4r.mjs} +10 -4
- package/dist/{index-BR5dWoW7.js → index-CQRefU3H.js} +10 -4
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/types/content/game/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("../index-
|
|
3
|
+
const index = require("../index-CQRefU3H.js");
|
|
4
4
|
exports.Author = index.Author;
|
|
5
5
|
exports.BonusCard = index.BonusCard;
|
|
6
6
|
exports.Center = index.Center;
|
|
@@ -143,12 +143,13 @@ const BonusCardTitle = ({ content }) => {
|
|
|
143
143
|
}
|
|
144
144
|
);
|
|
145
145
|
};
|
|
146
|
-
const BonusCard = ({ title, subtitle, content, link, image }) => {
|
|
146
|
+
const BonusCard = ({ title, subtitle, content, link, image, className }) => {
|
|
147
147
|
return /* @__PURE__ */ jsxs(
|
|
148
148
|
Card,
|
|
149
149
|
{
|
|
150
150
|
as: "article",
|
|
151
151
|
h: "full",
|
|
152
|
+
color: "whiteAlpha.900",
|
|
152
153
|
bg: "linear-gradient(90deg, #3b1f47, #731d58)",
|
|
153
154
|
_before: image ? {
|
|
154
155
|
content: '""',
|
|
@@ -163,6 +164,7 @@ const BonusCard = ({ title, subtitle, content, link, image }) => {
|
|
|
163
164
|
filter: "blur(0.05em) opacity(50%)",
|
|
164
165
|
zIndex: 0
|
|
165
166
|
} : void 0,
|
|
167
|
+
className,
|
|
166
168
|
children: [
|
|
167
169
|
/* @__PURE__ */ jsxs(CardBody, { as: "section", pb: 0, flex: 1, children: [
|
|
168
170
|
/* @__PURE__ */ jsx(BonusCardTitle, { content: title }),
|
|
@@ -304,7 +306,7 @@ const Features = ({ features, ...boxProps }) => {
|
|
|
304
306
|
}
|
|
305
307
|
);
|
|
306
308
|
};
|
|
307
|
-
const GameCard = ({ name, image, link }) => {
|
|
309
|
+
const GameCard = ({ name, description, image, link, height = "auto" }) => {
|
|
308
310
|
return /* @__PURE__ */ jsxs(
|
|
309
311
|
LinkBox,
|
|
310
312
|
{
|
|
@@ -314,11 +316,15 @@ const GameCard = ({ name, image, link }) => {
|
|
|
314
316
|
transition: "transform 0.2s ease",
|
|
315
317
|
cursor: link ? "pointer" : "default",
|
|
316
318
|
overflow: "hidden",
|
|
317
|
-
bg: "blackAlpha.
|
|
319
|
+
bg: "blackAlpha.200",
|
|
320
|
+
height,
|
|
318
321
|
_hover: { transform: "scale(1.1)" },
|
|
319
322
|
children: [
|
|
320
323
|
typeof image === "string" ? /* @__PURE__ */ jsx(Image, { src: image, alt: name, w: "100%", aspectRatio: "16/9", objectFit: "cover", objectPosition: "center" }) : !!image && /* @__PURE__ */ jsx(Box, { w: "100%", aspectRatio: "16/9", children: image }),
|
|
321
|
-
/* @__PURE__ */
|
|
324
|
+
/* @__PURE__ */ jsxs(Box, { as: "section", rounded: "md", p: 4, children: [
|
|
325
|
+
/* @__PURE__ */ jsx(Text, { as: "span", children: link ? /* @__PURE__ */ jsx(LinkOverlay, { href: link, children: name }) : name }),
|
|
326
|
+
!!description && /* @__PURE__ */ jsx(Text, { fontSize: "sm", color: "gray.600", children: description })
|
|
327
|
+
] })
|
|
322
328
|
]
|
|
323
329
|
}
|
|
324
330
|
);
|
|
@@ -144,12 +144,13 @@ const BonusCardTitle = ({ content }) => {
|
|
|
144
144
|
}
|
|
145
145
|
);
|
|
146
146
|
};
|
|
147
|
-
const BonusCard = ({ title, subtitle, content, link, image }) => {
|
|
147
|
+
const BonusCard = ({ title, subtitle, content, link, image, className }) => {
|
|
148
148
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
149
149
|
react.Card,
|
|
150
150
|
{
|
|
151
151
|
as: "article",
|
|
152
152
|
h: "full",
|
|
153
|
+
color: "whiteAlpha.900",
|
|
153
154
|
bg: "linear-gradient(90deg, #3b1f47, #731d58)",
|
|
154
155
|
_before: image ? {
|
|
155
156
|
content: '""',
|
|
@@ -164,6 +165,7 @@ const BonusCard = ({ title, subtitle, content, link, image }) => {
|
|
|
164
165
|
filter: "blur(0.05em) opacity(50%)",
|
|
165
166
|
zIndex: 0
|
|
166
167
|
} : void 0,
|
|
168
|
+
className,
|
|
167
169
|
children: [
|
|
168
170
|
/* @__PURE__ */ jsxRuntime.jsxs(react.CardBody, { as: "section", pb: 0, flex: 1, children: [
|
|
169
171
|
/* @__PURE__ */ jsxRuntime.jsx(BonusCardTitle, { content: title }),
|
|
@@ -305,7 +307,7 @@ const Features = ({ features, ...boxProps }) => {
|
|
|
305
307
|
}
|
|
306
308
|
);
|
|
307
309
|
};
|
|
308
|
-
const GameCard = ({ name, image, link }) => {
|
|
310
|
+
const GameCard = ({ name, description, image, link, height = "auto" }) => {
|
|
309
311
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
310
312
|
react.LinkBox,
|
|
311
313
|
{
|
|
@@ -315,11 +317,15 @@ const GameCard = ({ name, image, link }) => {
|
|
|
315
317
|
transition: "transform 0.2s ease",
|
|
316
318
|
cursor: link ? "pointer" : "default",
|
|
317
319
|
overflow: "hidden",
|
|
318
|
-
bg: "blackAlpha.
|
|
320
|
+
bg: "blackAlpha.200",
|
|
321
|
+
height,
|
|
319
322
|
_hover: { transform: "scale(1.1)" },
|
|
320
323
|
children: [
|
|
321
324
|
typeof image === "string" ? /* @__PURE__ */ jsxRuntime.jsx(react.Image, { src: image, alt: name, w: "100%", aspectRatio: "16/9", objectFit: "cover", objectPosition: "center" }) : !!image && /* @__PURE__ */ jsxRuntime.jsx(react.Box, { w: "100%", aspectRatio: "16/9", children: image }),
|
|
322
|
-
/* @__PURE__ */ jsxRuntime.
|
|
325
|
+
/* @__PURE__ */ jsxRuntime.jsxs(react.Box, { as: "section", rounded: "md", p: 4, children: [
|
|
326
|
+
/* @__PURE__ */ jsxRuntime.jsx(react.Text, { as: "span", children: link ? /* @__PURE__ */ jsxRuntime.jsx(react.LinkOverlay, { href: link, children: name }) : name }),
|
|
327
|
+
!!description && /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontSize: "sm", color: "gray.600", children: description })
|
|
328
|
+
] })
|
|
323
329
|
]
|
|
324
330
|
}
|
|
325
331
|
);
|
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-
|
|
3
|
+
const index = require("./index-CQRefU3H.js");
|
|
4
4
|
const index$1 = require("./index-IpSV-c71.js");
|
|
5
5
|
const i18n$1 = require("./index-BEqFPNAt.js");
|
|
6
6
|
const index$2 = require("./index-m97PmVsd.js");
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A, B, g, C, h, E, F, a, b, G, c, d, i, H, L, j, e, P, k, S, T, f } from "./index-
|
|
1
|
+
import { A, B, g, C, h, E, F, a, b, G, c, d, i, H, L, j, e, P, k, S, T, f } from "./index-CIHivV4r.mjs";
|
|
2
2
|
import { u } from "./index-xuSxvz5z.mjs";
|
|
3
3
|
import { a as a2, G as G2, r } from "./index-F6_fGeRI.mjs";
|
|
4
4
|
import { M } from "./index-C-e_0aJJ.mjs";
|