@anywayseo/tools 1.5.4 → 2.0.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.
Files changed (60) hide show
  1. package/dist/components/base/center/index.d.ts +1 -3
  2. package/dist/components/{expert → base/expert}/bio/index.d.ts +1 -1
  3. package/dist/components/{expert → base/expert}/index.d.ts +1 -1
  4. package/dist/components/base/grid/index.d.ts +3 -11
  5. package/dist/components/base/index.d.ts +2 -0
  6. package/dist/components/base/link-button/index.d.ts +2 -2
  7. package/dist/components/base/pulse-button/index.d.ts +8 -0
  8. package/dist/components/bonus-card/index.d.ts +1 -3
  9. package/dist/components/contact-form/index.d.ts +3 -1
  10. package/dist/components/expert-tip/index.d.ts +2 -3
  11. package/dist/components/faq/index.d.ts +2 -4
  12. package/dist/components/feature-card/index.d.ts +5 -0
  13. package/dist/components/features/index.d.ts +2 -3
  14. package/dist/components/game-card/index.d.ts +1 -3
  15. package/dist/components/game-demo/index.d.ts +3 -4
  16. package/dist/components/game-demo/preview/index.d.ts +3 -3
  17. package/dist/components/how-to/index.d.ts +2 -3
  18. package/dist/components/index.cjs +4 -1
  19. package/dist/components/index.d.ts +1 -0
  20. package/dist/components/index.mjs +12 -9
  21. package/dist/components/layout/footer/navigation/index.d.ts +5 -1
  22. package/dist/components/layout/header/{navbar/navigation → navigation}/desktop/item/index.d.ts +1 -1
  23. package/dist/components/layout/header/{navbar/navigation → navigation}/mobile/item/index.d.ts +1 -1
  24. package/dist/components/layout/header/{navbar/navigation → navigation}/types.d.ts +1 -1
  25. package/dist/components/list/index.d.ts +1 -2
  26. package/dist/components/pros-cons/index.d.ts +2 -3
  27. package/dist/components/table/index.d.ts +0 -1
  28. package/dist/components/tabs/index.d.ts +1 -2
  29. package/dist/index-BNb-P8a6.mjs +17 -0
  30. package/dist/index-BhsXlbd8.js +16 -0
  31. package/dist/{index-jvxaXXE3.js → index-BrTxsE2A.js} +18 -0
  32. package/dist/{index-C95D6IAi.mjs → index-CHSIkTv7.mjs} +138 -140
  33. package/dist/index-CnohyDGd.js +965 -0
  34. package/dist/{index-CJvs4SfG.mjs → index-j8Vo42fz.mjs} +18 -0
  35. package/dist/index.cjs +9 -5
  36. package/dist/index.mjs +17 -13
  37. package/dist/providers/index.cjs +3 -3
  38. package/dist/providers/index.d.ts +1 -1
  39. package/dist/providers/index.mjs +3 -3
  40. package/dist/providers/site-provider/index.d.ts +11 -0
  41. package/dist/types/components/image/index.d.ts +2 -0
  42. package/dist/types/components/index.d.ts +1 -0
  43. package/dist/types/index.d.ts +1 -1
  44. package/dist/types/site/index.d.ts +32 -0
  45. package/dist/utils/animation/index.d.ts +8 -0
  46. package/dist/utils/index.cjs +2 -1
  47. package/dist/utils/index.d.ts +1 -0
  48. package/dist/utils/index.mjs +2 -1
  49. package/package.json +104 -105
  50. package/dist/components/layout/header/navbar/index.d.ts +0 -6
  51. package/dist/index-BbMf3hdf.js +0 -967
  52. package/dist/index-Bs4zA1wD.mjs +0 -17
  53. package/dist/index-D96zh94V.js +0 -16
  54. package/dist/providers/site-metadata-provider/index.d.ts +0 -14
  55. package/dist/types/site-metadata/index.d.ts +0 -10
  56. /package/dist/components/layout/header/{navbar/brand → brand}/index.d.ts +0 -0
  57. /package/dist/components/layout/header/{navbar/navigation → navigation}/desktop/index.d.ts +0 -0
  58. /package/dist/components/layout/header/{navbar/navigation → navigation}/index.d.ts +0 -0
  59. /package/dist/components/layout/header/{navbar/navigation → navigation}/mobile/index.d.ts +0 -0
  60. /package/dist/components/layout/header/{navbar/theme-toggler → theme-toggler}/index.d.ts +0 -0
@@ -1,5 +1,22 @@
1
+ import { keyframes } from "@emotion/react";
1
2
  import "./index-DxLcykuT.mjs";
2
3
  import i18n from "i18next";
4
+ const pulse = keyframes`
5
+ 0% {
6
+ box-shadow: 0 0 0 0 var(--chakra-colors-brand-100);
7
+ }
8
+
9
+ 50% {
10
+ box-shadow: 0 0 0 0.8rem rgba(0, 0, 0, 0);
11
+ }
12
+
13
+ 100% {
14
+ box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
15
+ }
16
+ `;
17
+ const Animation = {
18
+ pulse
19
+ };
3
20
  function getCurrentYear() {
4
21
  const locale = i18n.language;
5
22
  const currentDate = /* @__PURE__ */ new Date();
@@ -78,6 +95,7 @@ function getDomain(url) {
78
95
  return url.replace(protocolRegex, "");
79
96
  }
80
97
  export {
98
+ Animation as A,
81
99
  getCurrentMonth as a,
82
100
  formatNumber as b,
83
101
  getCurrencySymbol as c,
package/dist/index.cjs CHANGED
@@ -1,19 +1,21 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index-BbMf3hdf.js");
3
+ const index = require("./index-CnohyDGd.js");
4
4
  const index$1 = require("./index-IpSV-c71.js");
5
5
  const i18n$1 = require("./index-DCIXk-YH.js");
6
6
  const index$2 = require("./index-BWuTDC6H.js");
7
- const index$3 = require("./index-D96zh94V.js");
8
- const index$4 = require("./index-jvxaXXE3.js");
7
+ const index$3 = require("./index-BhsXlbd8.js");
8
+ const index$4 = require("./index-BrTxsE2A.js");
9
9
  const index$5 = require("./index-B-5oUop6.js");
10
10
  const i18n = require("i18next");
11
11
  exports.Author = index.Author;
12
12
  exports.BonusCard = index.BonusCard;
13
13
  exports.Center = index.Center;
14
14
  exports.ContactForm = index.ContactForm;
15
+ exports.Expert = index.Expert;
15
16
  exports.ExpertTip = index.ExpertTip;
16
17
  exports.Faq = index.Faq;
18
+ exports.FeatureCard = index.FeatureCard;
17
19
  exports.Features = index.Features;
18
20
  exports.GameCard = index.GameCard;
19
21
  exports.GameDemo = index.GameDemo;
@@ -24,6 +26,7 @@ exports.Layout = index.Layout;
24
26
  exports.LinkButton = index.LinkButton;
25
27
  exports.List = index.List;
26
28
  exports.ProsCons = index.ProsCons;
29
+ exports.PulseButton = index.PulseButton;
27
30
  exports.Seo = index.Seo;
28
31
  exports.Table = index.Table;
29
32
  exports.Tabs = index.Tabs;
@@ -32,8 +35,9 @@ exports.GameCharacteristic = i18n$1.GameCharacteristic;
32
35
  exports.GameVolatility = i18n$1.GameVolatility;
33
36
  exports.resources = i18n$1.resources;
34
37
  exports.MdxProvider = index$2.MdxProvider;
35
- exports.SiteMetadataProvider = index$3.SiteMetadataProvider;
36
- exports.useSiteMetadataContext = index$3.useSiteMetadataContext;
38
+ exports.SiteProvider = index$3.SiteProvider;
39
+ exports.useSiteContext = index$3.useSiteContext;
40
+ exports.Animation = index$4.Animation;
37
41
  exports.formatDate = index$4.formatDate;
38
42
  exports.formatNumber = index$4.formatNumber;
39
43
  exports.getCurrencySymbol = index$4.getCurrencySymbol;
package/dist/index.mjs CHANGED
@@ -1,35 +1,39 @@
1
- import { A, B, f, C, E, F, a, G, b, c, g, H, L, h, d, P, S, T, e } from "./index-C95D6IAi.mjs";
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-CHSIkTv7.mjs";
2
2
  import { u } from "./index-xuSxvz5z.mjs";
3
3
  import { a as a2, G as G2, r } from "./index-DxLcykuT.mjs";
4
4
  import { M } from "./index-wbMOJRW_.mjs";
5
- import { S as S2, u as u2 } from "./index-Bs4zA1wD.mjs";
6
- import { f as f2, b as b2, c as c2, a as a3, g as g2, d as d2, p, r as r2, t } from "./index-CJvs4SfG.mjs";
5
+ import { S as S2, u as u2 } from "./index-BNb-P8a6.mjs";
6
+ import { A as A2, f as f2, b as b2, c as c2, a as a3, g as g2, d as d2, p, r as r2, t } from "./index-j8Vo42fz.mjs";
7
7
  import { e as e2, g as g3 } from "./index-BUx1Bxrs.mjs";
8
8
  import { default as default2 } from "i18next";
9
9
  export {
10
+ A2 as Animation,
10
11
  A as Author,
11
12
  B as BonusCard,
12
- f as Center,
13
+ g as Center,
13
14
  C as ContactForm,
15
+ h as Expert,
14
16
  E as ExpertTip,
15
17
  F as Faq,
16
- a as Features,
18
+ a as FeatureCard,
19
+ b as Features,
17
20
  G as GameCard,
18
21
  a2 as GameCharacteristic,
19
- b as GameDemo,
20
- c as GameInfo,
22
+ c as GameDemo,
23
+ d as GameInfo,
21
24
  G2 as GameVolatility,
22
- g as Grid,
25
+ i as Grid,
23
26
  H as HowTo,
24
27
  L as Layout,
25
- h as LinkButton,
26
- d as List,
28
+ j as LinkButton,
29
+ e as List,
27
30
  M as MdxProvider,
28
31
  P as ProsCons,
32
+ k as PulseButton,
29
33
  S as Seo,
30
- S2 as SiteMetadataProvider,
34
+ S2 as SiteProvider,
31
35
  T as Table,
32
- e as Tabs,
36
+ f as Tabs,
33
37
  e2 as extractTheme,
34
38
  f2 as formatDate,
35
39
  b2 as formatNumber,
@@ -44,5 +48,5 @@ export {
44
48
  r2 as round,
45
49
  t as toFixedTwo,
46
50
  u as usePrimaryColors,
47
- u2 as useSiteMetadataContext
51
+ u2 as useSiteContext
48
52
  };
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
3
  const index = require("../index-BWuTDC6H.js");
4
- const index$1 = require("../index-D96zh94V.js");
4
+ const index$1 = require("../index-BhsXlbd8.js");
5
5
  exports.MdxProvider = index.MdxProvider;
6
- exports.SiteMetadataProvider = index$1.SiteMetadataProvider;
7
- exports.useSiteMetadataContext = index$1.useSiteMetadataContext;
6
+ exports.SiteProvider = index$1.SiteProvider;
7
+ exports.useSiteContext = index$1.useSiteContext;
@@ -1,2 +1,2 @@
1
1
  export { default as MdxProvider } from './mdx-provider';
2
- export { default as SiteMetadataProvider, useSiteMetadataContext } from './site-metadata-provider';
2
+ export { default as SiteProvider, useSiteContext } from './site-provider';
@@ -1,7 +1,7 @@
1
1
  import { M } from "../index-wbMOJRW_.mjs";
2
- import { S, u } from "../index-Bs4zA1wD.mjs";
2
+ import { S, u } from "../index-BNb-P8a6.mjs";
3
3
  export {
4
4
  M as MdxProvider,
5
- S as SiteMetadataProvider,
6
- u as useSiteMetadataContext
5
+ S as SiteProvider,
6
+ u as useSiteContext
7
7
  };
@@ -0,0 +1,11 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+ import { ISiteAssets, ISiteConfigs, ISiteMetadata } from '../../types';
3
+ interface ISiteContext {
4
+ metadata: ISiteMetadata;
5
+ configs?: ISiteConfigs;
6
+ assets?: ISiteAssets;
7
+ }
8
+ type SiteMetadataProviderProps = ISiteContext;
9
+ declare const SiteProvider: FC<PropsWithChildren<SiteMetadataProviderProps>>;
10
+ export default SiteProvider;
11
+ export declare function useSiteContext(): ISiteContext;
@@ -0,0 +1,2 @@
1
+ import { ImageProps } from '@chakra-ui/react';
2
+ export type ImageFit = ImageProps['objectFit'];
@@ -4,5 +4,6 @@ export * from './faq';
4
4
  export * from './game-card';
5
5
  export * from './game-info';
6
6
  export * from './how-to';
7
+ export * from './image';
7
8
  export * from './pros-cons';
8
9
  export * from './tabs';
@@ -2,5 +2,5 @@ export * from './components';
2
2
  export * from './i18n';
3
3
  export * from './models';
4
4
  export * from './navigation';
5
- export * from './site-metadata';
5
+ export * from './site';
6
6
  export * from './theme';
@@ -0,0 +1,32 @@
1
+ import { ReactElement, ReactNode } from 'react';
2
+ import { Currency, LanguageCode } from '../i18n';
3
+ import { INavigationItem } from '../navigation';
4
+ type ImageUrl = string;
5
+ type ImageComponent = ReactElement;
6
+ type Image = ImageUrl | ImageComponent;
7
+ export interface ISiteAssets {
8
+ images?: {
9
+ logo?: Image;
10
+ gamePreview?: Image;
11
+ expert?: Image;
12
+ };
13
+ }
14
+ interface ISiteHeaderConfig {
15
+ navigation?: INavigationItem[];
16
+ toolbar?: ReactNode;
17
+ }
18
+ interface ISiteFooterConfig {
19
+ navigation?: INavigationItem[];
20
+ }
21
+ export interface ISiteConfigs {
22
+ header?: ISiteHeaderConfig;
23
+ footer?: ISiteFooterConfig;
24
+ }
25
+ export interface ISiteMetadata {
26
+ title: string;
27
+ description: string;
28
+ siteUrl: string;
29
+ lang: LanguageCode;
30
+ currency: Currency | Currency[];
31
+ }
32
+ export {};
@@ -0,0 +1,8 @@
1
+ export declare const Animation: {
2
+ readonly pulse: {
3
+ name: string;
4
+ styles: string;
5
+ anim: 1;
6
+ toString: () => string;
7
+ } & string;
8
+ };
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("../index-jvxaXXE3.js");
3
+ const index = require("../index-BrTxsE2A.js");
4
4
  const index$1 = require("../index-B-5oUop6.js");
5
+ exports.Animation = index.Animation;
5
6
  exports.formatDate = index.formatDate;
6
7
  exports.formatNumber = index.formatNumber;
7
8
  exports.getCurrencySymbol = index.getCurrencySymbol;
@@ -1,3 +1,4 @@
1
+ export * from './animation';
1
2
  export * from './date';
2
3
  export * from './numbers';
3
4
  export * from './theme';
@@ -1,6 +1,7 @@
1
- import { f, b, c, a, g, d, p, r, t } from "../index-CJvs4SfG.mjs";
1
+ import { A, f, b, c, a, g, d, p, r, t } from "../index-j8Vo42fz.mjs";
2
2
  import { e, g as g2 } from "../index-BUx1Bxrs.mjs";
3
3
  export {
4
+ A as Animation,
4
5
  e as extractTheme,
5
6
  f as formatDate,
6
7
  b as formatNumber,
package/package.json CHANGED
@@ -1,105 +1,104 @@
1
- {
2
- "name": "@anywayseo/tools",
3
- "description": "Shared UI Components and Modules",
4
- "version": "1.5.4",
5
- "keywords": [
6
- "react",
7
- "ui",
8
- "gatsby"
9
- ],
10
- "author": "zerg41",
11
- "license": "MIT",
12
- "private": false,
13
- "publishConfig": {
14
- "access": "public"
15
- },
16
- "files": [
17
- "dist",
18
- "README.md",
19
- "LICENSE"
20
- ],
21
- "main": "dist/index.cjs",
22
- "module": "dist/index.mjs",
23
- "types": "dist/index.d.ts",
24
- "exports": {
25
- ".": {
26
- "types": "./dist/index.d.ts",
27
- "import": "./dist/index.mjs",
28
- "require": "./dist/index.cjs",
29
- "default": "./dist/index.cjs"
30
- },
31
- "./i18n": {
32
- "types": "./dist/i18n/index.d.ts",
33
- "import": "./dist/i18n/index.mjs",
34
- "require": "./dist/i18n/index.cjs",
35
- "default": "./dist/i18n/index.cjs"
36
- },
37
- "./hooks": {
38
- "types": "./dist/hooks/index.d.ts",
39
- "import": "./dist/hooks/index.mjs",
40
- "require": "./dist/hooks/index.cjs",
41
- "default": "./dist/hooks/index.cjs"
42
- },
43
- "./components": {
44
- "types": "./dist/components/index.d.ts",
45
- "import": "./dist/components/index.mjs",
46
- "require": "./dist/components/index.cjs",
47
- "default": "./dist/components/index.cjs"
48
- },
49
- "./providers": {
50
- "types": "./dist/providers/index.d.ts",
51
- "import": "./dist/providers/index.mjs",
52
- "require": "./dist/providers/index.cjs",
53
- "default": "./dist/providers/index.cjs"
54
- },
55
- "./utils": {
56
- "types": "./dist/utils/index.d.ts",
57
- "import": "./dist/utils/index.mjs",
58
- "require": "./dist/utils/index.cjs",
59
- "default": "./dist/utils/index.cjs"
60
- },
61
- "./types": {
62
- "types": "./dist/types/index.d.ts",
63
- "default": "./dist/types/index.d.ts"
64
- }
65
- },
66
- "scripts": {
67
- "start": "npm pack",
68
- "build": "tsc -b && vite build",
69
- "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
70
- "prepack": "npm run build",
71
- "bump:patch": "npm version patch",
72
- "bump:minor": "npm version minor",
73
- "bump:major": "npm version major",
74
- "postversion": "git push --follow-tags && npm publish"
75
- },
76
- "devDependencies": {
77
- "@types/react": "18.3.12",
78
- "@types/react-dom": "18.3.1",
79
- "@typescript-eslint/eslint-plugin": "7.15.0",
80
- "@typescript-eslint/parser": "7.15.0",
81
- "@vitejs/plugin-react": "4.3.1",
82
- "eslint": "8.57.0",
83
- "eslint-plugin-react-hooks": "4.6.2",
84
- "eslint-plugin-react-refresh": "0.4.7",
85
- "sass": "1.80.7",
86
- "typescript": "5.6.3",
87
- "vite": "5.4.14",
88
- "vite-plugin-dts": "4.5.0"
89
- },
90
- "peerDependencies": {
91
- "@chakra-ui/icons": "^2.0.0",
92
- "@chakra-ui/react": "^2.0.0",
93
- "@ctrl/tinycolor": "^4.1.0",
94
- "@emotion/react": "^11.0.0",
95
- "@emotion/styled": "^11.0.0",
96
- "@mdx-js/react": "^2.0.0",
97
- "framer-motion": "^12.0.6",
98
- "gatsby": "^5.0.0",
99
- "gatsby-plugin-image": "^3.0.0",
100
- "i18next": "^24.0.0",
101
- "react": "^18.3.1",
102
- "react-dom": "^18.3.1",
103
- "react-i18next": "^15.0.0"
104
- }
105
- }
1
+ {
2
+ "name": "@anywayseo/tools",
3
+ "description": "Shared UI Components and Modules",
4
+ "version": "2.0.0",
5
+ "keywords": [
6
+ "react",
7
+ "ui",
8
+ "gatsby"
9
+ ],
10
+ "author": "zerg41",
11
+ "license": "MIT",
12
+ "private": false,
13
+ "publishConfig": {
14
+ "access": "public"
15
+ },
16
+ "files": [
17
+ "dist",
18
+ "README.md",
19
+ "LICENSE"
20
+ ],
21
+ "main": "dist/index.cjs",
22
+ "module": "dist/index.mjs",
23
+ "types": "dist/index.d.ts",
24
+ "exports": {
25
+ ".": {
26
+ "types": "./dist/index.d.ts",
27
+ "import": "./dist/index.mjs",
28
+ "require": "./dist/index.cjs",
29
+ "default": "./dist/index.cjs"
30
+ },
31
+ "./i18n": {
32
+ "types": "./dist/i18n/index.d.ts",
33
+ "import": "./dist/i18n/index.mjs",
34
+ "require": "./dist/i18n/index.cjs",
35
+ "default": "./dist/i18n/index.cjs"
36
+ },
37
+ "./hooks": {
38
+ "types": "./dist/hooks/index.d.ts",
39
+ "import": "./dist/hooks/index.mjs",
40
+ "require": "./dist/hooks/index.cjs",
41
+ "default": "./dist/hooks/index.cjs"
42
+ },
43
+ "./components": {
44
+ "types": "./dist/components/index.d.ts",
45
+ "import": "./dist/components/index.mjs",
46
+ "require": "./dist/components/index.cjs",
47
+ "default": "./dist/components/index.cjs"
48
+ },
49
+ "./providers": {
50
+ "types": "./dist/providers/index.d.ts",
51
+ "import": "./dist/providers/index.mjs",
52
+ "require": "./dist/providers/index.cjs",
53
+ "default": "./dist/providers/index.cjs"
54
+ },
55
+ "./utils": {
56
+ "types": "./dist/utils/index.d.ts",
57
+ "import": "./dist/utils/index.mjs",
58
+ "require": "./dist/utils/index.cjs",
59
+ "default": "./dist/utils/index.cjs"
60
+ },
61
+ "./types": {
62
+ "types": "./dist/types/index.d.ts",
63
+ "default": "./dist/types/index.d.ts"
64
+ }
65
+ },
66
+ "scripts": {
67
+ "start": "npm pack",
68
+ "build": "tsc -b && vite build",
69
+ "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
70
+ "prepack": "npm run build",
71
+ "bump:patch": "npm version patch",
72
+ "bump:minor": "npm version minor",
73
+ "bump:major": "npm version major",
74
+ "postversion": "git push --follow-tags && npm publish"
75
+ },
76
+ "devDependencies": {
77
+ "@types/react": "18.3.12",
78
+ "@types/react-dom": "18.3.1",
79
+ "@typescript-eslint/eslint-plugin": "7.15.0",
80
+ "@typescript-eslint/parser": "7.15.0",
81
+ "@vitejs/plugin-react": "4.3.1",
82
+ "eslint": "8.57.0",
83
+ "eslint-plugin-react-hooks": "4.6.2",
84
+ "eslint-plugin-react-refresh": "0.4.7",
85
+ "sass": "1.80.7",
86
+ "typescript": "5.6.3",
87
+ "vite": "5.4.14",
88
+ "vite-plugin-dts": "4.5.0"
89
+ },
90
+ "peerDependencies": {
91
+ "@chakra-ui/icons": "^2.0.0",
92
+ "@chakra-ui/react": "^2.0.0",
93
+ "@ctrl/tinycolor": "^4.1.0",
94
+ "@emotion/react": "^11.0.0",
95
+ "@emotion/styled": "^11.0.0",
96
+ "@mdx-js/react": "^2.0.0",
97
+ "framer-motion": "^12.0.6",
98
+ "gatsby": "^5.0.0",
99
+ "i18next": "^24.0.0",
100
+ "react": "^18.3.1",
101
+ "react-dom": "^18.3.1",
102
+ "react-i18next": "^15.0.0"
103
+ }
104
+ }
@@ -1,6 +0,0 @@
1
- import { FC, ReactNode } from 'react';
2
- type NavbarProps = {
3
- brand: ReactNode;
4
- };
5
- declare const Navbar: FC<NavbarProps>;
6
- export default Navbar;