@anywayseo/tools 1.0.0 → 1.0.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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("../index-NWY9BnRg.js");
3
+ const index = require("../index-alye-Zt-.js");
4
4
  exports.Author = index.Author;
5
5
  exports.ContactForm = index.ContactForm;
6
6
  exports.ExpertTip = index.ExpertTip;
@@ -1,4 +1,4 @@
1
- import { A, C, E, F, a, G, b, H, L, P, S } from "../index-Dfw_EKZ6.mjs";
1
+ import { A, C, E, F, a, G, b, H, L, P, S } from "../index-D5QkKj_Z.mjs";
2
2
  export {
3
3
  A as Author,
4
4
  C as ContactForm,
@@ -7,6 +7,7 @@ import "@mdx-js/react";
7
7
  import { u as useSiteMetadataContext } from "./index-Bs4zA1wD.mjs";
8
8
  import { useRef, useState, useLayoutEffect, Fragment as Fragment$1, useEffect } from "react";
9
9
  import { u as usePrimaryColors } from "./index-xuSxvz5z.mjs";
10
+ import { keyframes } from "@emotion/react";
10
11
  import { a as GameCharacteristic } from "./index-Bh5idiRE.mjs";
11
12
  import { t } from "i18next";
12
13
  import { b as formatNumber, f as formatDate, c as getDomain, g as getCurrentYear, a as getCurrentMonth } from "./index-BtWxmLHW.mjs";
@@ -231,10 +232,19 @@ const GameDemoContent = ({ src, isFullscreen, isLoaded, onLoad, onToggleFullscre
231
232
  /* @__PURE__ */ jsx(AbsoluteCenter, { children: /* @__PURE__ */ jsx(Spinner, { size: "xl", thickness: "0.6rem", display: isLoaded ? "none" : "block", color: "brand.100" }) })
232
233
  ] });
233
234
  };
234
- const pulsing = "_pulsing_u8aju_1";
235
- const styles = {
236
- pulsing
237
- };
235
+ const pulse = keyframes`
236
+ 0% {
237
+ box-shadow: 0 0 0 0 var(--chakra-colors-brand-100);
238
+ }
239
+
240
+ 50% {
241
+ box-shadow: 0 0 0 0.8rem rgba(0, 0, 0, 0);
242
+ }
243
+
244
+ 100% {
245
+ box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
246
+ }
247
+ `;
238
248
  const GameDemoPreview = ({ gameName, onPlay }) => {
239
249
  const { gamePreviewImageData } = useSiteMetadataContext();
240
250
  const { t: t2 } = useTranslation("gameDemo");
@@ -247,8 +257,8 @@ const GameDemoPreview = ({ gameName, onPlay }) => {
247
257
  size: { base: "sm", md: "lg" },
248
258
  color: "gray.200",
249
259
  bgColor: "brand.500",
260
+ animation: `${pulse} 2s infinite linear`,
250
261
  _hover: { bgColor: "brand.200", color: "gray.700" },
251
- className: styles.pulsing,
252
262
  onClick: onPlay,
253
263
  children: t2("action.playForFree")
254
264
  }
@@ -8,6 +8,7 @@ require("@mdx-js/react");
8
8
  const index = require("./index-D96zh94V.js");
9
9
  const react = require("react");
10
10
  const index$1 = require("./index-IpSV-c71.js");
11
+ const react$2 = require("@emotion/react");
11
12
  const i18n = require("./index-DB1dS9cp.js");
12
13
  const i18n$1 = require("i18next");
13
14
  const index$2 = require("./index-JMmaWcmu.js");
@@ -232,10 +233,19 @@ const GameDemoContent = ({ src, isFullscreen, isLoaded, onLoad, onToggleFullscre
232
233
  /* @__PURE__ */ jsxRuntime.jsx(react$1.AbsoluteCenter, { children: /* @__PURE__ */ jsxRuntime.jsx(react$1.Spinner, { size: "xl", thickness: "0.6rem", display: isLoaded ? "none" : "block", color: "brand.100" }) })
233
234
  ] });
234
235
  };
235
- const pulsing = "_pulsing_u8aju_1";
236
- const styles = {
237
- pulsing
238
- };
236
+ const pulse = react$2.keyframes`
237
+ 0% {
238
+ box-shadow: 0 0 0 0 var(--chakra-colors-brand-100);
239
+ }
240
+
241
+ 50% {
242
+ box-shadow: 0 0 0 0.8rem rgba(0, 0, 0, 0);
243
+ }
244
+
245
+ 100% {
246
+ box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
247
+ }
248
+ `;
239
249
  const GameDemoPreview = ({ gameName, onPlay }) => {
240
250
  const { gamePreviewImageData } = index.useSiteMetadataContext();
241
251
  const { t } = reactI18next.useTranslation("gameDemo");
@@ -248,8 +258,8 @@ const GameDemoPreview = ({ gameName, onPlay }) => {
248
258
  size: { base: "sm", md: "lg" },
249
259
  color: "gray.200",
250
260
  bgColor: "brand.500",
261
+ animation: `${pulse} 2s infinite linear`,
251
262
  _hover: { bgColor: "brand.200", color: "gray.700" },
252
- className: styles.pulsing,
253
263
  onClick: onPlay,
254
264
  children: t("action.playForFree")
255
265
  }
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-NWY9BnRg.js");
3
+ const index = require("./index-alye-Zt-.js");
4
4
  const index$1 = require("./index-IpSV-c71.js");
5
5
  const i18n$1 = require("./index-DB1dS9cp.js");
6
6
  const index$2 = require("./index-BWuTDC6H.js");
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { A, C, E, F, a, G, b, H, L, P, S } from "./index-Dfw_EKZ6.mjs";
1
+ import { A, C, E, F, a, G, b, H, L, P, S } from "./index-D5QkKj_Z.mjs";
2
2
  import { u } from "./index-xuSxvz5z.mjs";
3
3
  import { a as a2, G as G2, r } from "./index-Bh5idiRE.mjs";
4
4
  import { M } from "./index-wbMOJRW_.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": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "keywords": [
6
6
  "react",
7
7
  "ui",
package/dist/style.css DELETED
@@ -1,15 +0,0 @@
1
- ._pulsing_u8aju_1 {
2
- animation: _pulse_u8aju_1 2s infinite linear;
3
- }
4
-
5
- @keyframes _pulse_u8aju_1 {
6
- 0% {
7
- box-shadow: 0 0 0 0 var(--chakra-colors-brand-100);
8
- }
9
- 50% {
10
- box-shadow: 0 0 0 0.8rem rgba(0, 0, 0, 0);
11
- }
12
- 100% {
13
- box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
14
- }
15
- }