@anywayseo/tools 3.0.0 → 3.0.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-HmqLMmGf.js");
3
+ const index = require("../index-D32PZCoe.js");
4
4
  exports.Author = index.Author;
5
5
  exports.AuthorCard = index.AuthorCard;
6
6
  exports.BonusCard = index.BonusCard;
@@ -1,4 +1,4 @@
1
- import { h, A, B, i, C, F, a, b, G, c, d, j, H, L, k, e, N, P, l, R, S, T, f, g } from "../index-DIxzgBCq.mjs";
1
+ import { h, A, B, i, C, F, a, b, G, c, d, j, H, L, k, e, N, P, l, R, S, T, f, g } from "../index-VQ0_fg4m.mjs";
2
2
  export {
3
3
  h as Author,
4
4
  A as AuthorCard,
@@ -0,0 +1,36 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { Link, Text, UnorderedList, OrderedList, Heading } from "@chakra-ui/react";
3
+ import { MDXProvider } from "@mdx-js/react";
4
+ function omitProps(props, keysToOmit) {
5
+ const result = { ...props };
6
+ keysToOmit.forEach((key) => {
7
+ if (key in result) {
8
+ delete result[key];
9
+ }
10
+ });
11
+ return result;
12
+ }
13
+ const components = {
14
+ h1: (props) => /* @__PURE__ */ jsx(Heading, { as: "h1", size: "xl", mb: 4, ...omitProps(props, ["node"]) }),
15
+ h2: (props) => /* @__PURE__ */ jsx(Heading, { as: "h2", size: "lg", mt: 6, mb: 4, ...omitProps(props, ["node"]) }),
16
+ h3: (props) => /* @__PURE__ */ jsx(Heading, { as: "h3", size: "md", mt: 4, mb: 4, ...omitProps(props, ["node"]) }),
17
+ ol: (props) => /* @__PURE__ */ jsx(OrderedList, { mb: 4, ...omitProps(props, ["node"]) }),
18
+ ul: (props) => /* @__PURE__ */ jsx(UnorderedList, { mb: 4, ...omitProps(props, ["node"]) }),
19
+ p: (props) => /* @__PURE__ */ jsx(Text, { mb: 4, ...omitProps(props, ["node"]) }),
20
+ a: (props) => /* @__PURE__ */ jsx(
21
+ Link,
22
+ {
23
+ target: "_blank",
24
+ rel: "noopener noreferrer",
25
+ referrerPolicy: "no-referrer",
26
+ color: "brand.400",
27
+ ...omitProps(props, ["node"])
28
+ }
29
+ )
30
+ };
31
+ const MdxProvider = ({ children }) => {
32
+ return /* @__PURE__ */ jsx(MDXProvider, { components, children });
33
+ };
34
+ export {
35
+ MdxProvider as M
36
+ };
@@ -462,6 +462,9 @@ const GameInfo = ({ info }) => {
462
462
  /* @__PURE__ */ jsxRuntime.jsx(react$1.Divider, { my: 2 }),
463
463
  /* @__PURE__ */ jsxRuntime.jsx(react$1.Text, { fontWeight: "semibold", mb: 2, children: t(`group.${group}`) }),
464
464
  Object.entries(items).map(([itemKey, itemValue]) => {
465
+ if (!itemValue) {
466
+ return null;
467
+ }
465
468
  const feature = itemKey;
466
469
  const value = getGameInfoItemValue(feature, itemValue, currency);
467
470
  return /* @__PURE__ */ jsxRuntime.jsx(GameInfoItem, { title: t(`feature.${feature}`), value }, itemKey);
@@ -461,6 +461,9 @@ const GameInfo = ({ info }) => {
461
461
  /* @__PURE__ */ jsx(Divider, { my: 2 }),
462
462
  /* @__PURE__ */ jsx(Text, { fontWeight: "semibold", mb: 2, children: t2(`group.${group}`) }),
463
463
  Object.entries(items).map(([itemKey, itemValue]) => {
464
+ if (!itemValue) {
465
+ return null;
466
+ }
464
467
  const feature = itemKey;
465
468
  const value = getGameInfoItemValue(feature, itemValue, currency);
466
469
  return /* @__PURE__ */ jsx(GameInfoItem, { title: t2(`feature.${feature}`), value }, itemKey);
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ const jsxRuntime = require("react/jsx-runtime");
3
+ const react$1 = require("@chakra-ui/react");
4
+ const react = require("@mdx-js/react");
5
+ function omitProps(props, keysToOmit) {
6
+ const result = { ...props };
7
+ keysToOmit.forEach((key) => {
8
+ if (key in result) {
9
+ delete result[key];
10
+ }
11
+ });
12
+ return result;
13
+ }
14
+ const components = {
15
+ h1: (props) => /* @__PURE__ */ jsxRuntime.jsx(react$1.Heading, { as: "h1", size: "xl", mb: 4, ...omitProps(props, ["node"]) }),
16
+ h2: (props) => /* @__PURE__ */ jsxRuntime.jsx(react$1.Heading, { as: "h2", size: "lg", mt: 6, mb: 4, ...omitProps(props, ["node"]) }),
17
+ h3: (props) => /* @__PURE__ */ jsxRuntime.jsx(react$1.Heading, { as: "h3", size: "md", mt: 4, mb: 4, ...omitProps(props, ["node"]) }),
18
+ ol: (props) => /* @__PURE__ */ jsxRuntime.jsx(react$1.OrderedList, { mb: 4, ...omitProps(props, ["node"]) }),
19
+ ul: (props) => /* @__PURE__ */ jsxRuntime.jsx(react$1.UnorderedList, { mb: 4, ...omitProps(props, ["node"]) }),
20
+ p: (props) => /* @__PURE__ */ jsxRuntime.jsx(react$1.Text, { mb: 4, ...omitProps(props, ["node"]) }),
21
+ a: (props) => /* @__PURE__ */ jsxRuntime.jsx(
22
+ react$1.Link,
23
+ {
24
+ target: "_blank",
25
+ rel: "noopener noreferrer",
26
+ referrerPolicy: "no-referrer",
27
+ color: "brand.400",
28
+ ...omitProps(props, ["node"])
29
+ }
30
+ )
31
+ };
32
+ const MdxProvider = ({ children }) => {
33
+ return /* @__PURE__ */ jsxRuntime.jsx(react.MDXProvider, { components, children });
34
+ };
35
+ exports.MdxProvider = MdxProvider;
package/dist/index.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index-HmqLMmGf.js");
3
+ const index = require("./index-D32PZCoe.js");
4
4
  const index$1 = require("./index-IpSV-c71.js");
5
5
  const i18n$1 = require("./index-Biz1dDqA.js");
6
- const index$2 = require("./index-m97PmVsd.js");
6
+ const index$2 = require("./index-d3V0A4lN.js");
7
7
  const index$3 = require("./index-BhsXlbd8.js");
8
8
  const index$4 = require("./index-Cte2-g6s.js");
9
9
  const index$5 = require("./index-B-5oUop6.js");
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import { h, A, B, i, C, F, a, b, G, c, d, j, H, L, k, e, N, P, l, R, S, T, f, g } from "./index-DIxzgBCq.mjs";
1
+ import { h, A, B, i, C, F, a, b, G, c, d, j, H, L, k, e, N, P, l, R, S, T, f, g } from "./index-VQ0_fg4m.mjs";
2
2
  import { u } from "./index-xuSxvz5z.mjs";
3
3
  import { a as a2, G as G2, r } from "./index-DoBCANwf.mjs";
4
- import { M } from "./index-C-e_0aJJ.mjs";
4
+ import { M } from "./index-Bx3B21Dh.mjs";
5
5
  import { S as S2, u as u2 } from "./index-BNb-P8a6.mjs";
6
6
  import { A as A2, f as f2, b as b2, c as c2, a as a3, g as g2, p, r as r2, t } from "./index-25M8hPOF.mjs";
7
7
  import { e as e2, g as g3 } from "./index-BUx1Bxrs.mjs";
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("../index-m97PmVsd.js");
3
+ const index = require("../index-d3V0A4lN.js");
4
4
  const index$1 = require("../index-BhsXlbd8.js");
5
5
  exports.MdxProvider = index.MdxProvider;
6
6
  exports.SiteProvider = index$1.SiteProvider;
@@ -1,4 +1,4 @@
1
- import { M } from "../index-C-e_0aJJ.mjs";
1
+ import { M } from "../index-Bx3B21Dh.mjs";
2
2
  import { S, u } from "../index-BNb-P8a6.mjs";
3
3
  export {
4
4
  M as MdxProvider,
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": "3.0.0",
4
+ "version": "3.0.2",
5
5
  "keywords": [
6
6
  "react",
7
7
  "ui",
@@ -1,18 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { Link, Text, UnorderedList, OrderedList, Heading } from "@chakra-ui/react";
3
- import { MDXProvider } from "@mdx-js/react";
4
- const components = {
5
- h1: (props) => /* @__PURE__ */ jsx(Heading, { as: "h1", size: "xl", mb: 4, ...props }),
6
- h2: (props) => /* @__PURE__ */ jsx(Heading, { as: "h2", size: "lg", mt: 6, mb: 4, ...props }),
7
- h3: (props) => /* @__PURE__ */ jsx(Heading, { as: "h3", size: "md", mt: 4, mb: 4, ...props }),
8
- ol: (props) => /* @__PURE__ */ jsx(OrderedList, { mb: 4, ...props }),
9
- ul: (props) => /* @__PURE__ */ jsx(UnorderedList, { mb: 4, ...props }),
10
- p: (props) => /* @__PURE__ */ jsx(Text, { mb: 4, ...props }),
11
- a: (props) => /* @__PURE__ */ jsx(Link, { ...props, color: "brand.400" })
12
- };
13
- const MdxProvider = ({ children }) => {
14
- return /* @__PURE__ */ jsx(MDXProvider, { components, children });
15
- };
16
- export {
17
- MdxProvider as M
18
- };
@@ -1,17 +0,0 @@
1
- "use strict";
2
- const jsxRuntime = require("react/jsx-runtime");
3
- const react$1 = require("@chakra-ui/react");
4
- const react = require("@mdx-js/react");
5
- const components = {
6
- h1: (props) => /* @__PURE__ */ jsxRuntime.jsx(react$1.Heading, { as: "h1", size: "xl", mb: 4, ...props }),
7
- h2: (props) => /* @__PURE__ */ jsxRuntime.jsx(react$1.Heading, { as: "h2", size: "lg", mt: 6, mb: 4, ...props }),
8
- h3: (props) => /* @__PURE__ */ jsxRuntime.jsx(react$1.Heading, { as: "h3", size: "md", mt: 4, mb: 4, ...props }),
9
- ol: (props) => /* @__PURE__ */ jsxRuntime.jsx(react$1.OrderedList, { mb: 4, ...props }),
10
- ul: (props) => /* @__PURE__ */ jsxRuntime.jsx(react$1.UnorderedList, { mb: 4, ...props }),
11
- p: (props) => /* @__PURE__ */ jsxRuntime.jsx(react$1.Text, { mb: 4, ...props }),
12
- a: (props) => /* @__PURE__ */ jsxRuntime.jsx(react$1.Link, { ...props, color: "brand.400" })
13
- };
14
- const MdxProvider = ({ children }) => {
15
- return /* @__PURE__ */ jsxRuntime.jsx(react.MDXProvider, { components, children });
16
- };
17
- exports.MdxProvider = MdxProvider;