@anywayseo/tools 5.6.0 → 5.7.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/action-button/index.d.ts +5 -0
- package/dist/components/article-card/index.d.ts +7 -0
- package/dist/components/article-card-grid/index.d.ts +7 -0
- package/dist/components/article-info-card/index.d.ts +5 -0
- package/dist/components/base/article-meta/index.d.ts +7 -0
- package/dist/components/base/article-meta/item/index.d.ts +7 -0
- package/dist/components/base/copy-text/index.d.ts +6 -0
- package/dist/components/base/grid/index.d.ts +2 -4
- package/dist/components/base/index.d.ts +3 -0
- package/dist/components/base/rating/index.d.ts +10 -0
- package/dist/components/bonus-card-grid/index.d.ts +2 -4
- package/dist/components/casino-table/index.d.ts +8 -0
- package/dist/components/casino-table/row/casino-actions/index.d.ts +8 -0
- package/dist/components/casino-table/row/casino-bonus/index.d.ts +8 -0
- package/dist/components/casino-table/row/casino-info/index.d.ts +7 -0
- package/dist/components/casino-table/row/casino-info/item/index.d.ts +7 -0
- package/dist/components/casino-table/row/casino-info/utils.d.ts +2 -0
- package/dist/components/casino-table/row/casino-license/index.d.ts +5 -0
- package/dist/components/casino-table/row/casino-logo/index.d.ts +9 -0
- package/dist/components/casino-table/row/casino-name/index.d.ts +8 -0
- package/dist/components/casino-table/row/cell/index.d.ts +7 -0
- package/dist/components/casino-table/row/index.d.ts +7 -0
- package/dist/components/feature-card-grid/index.d.ts +2 -4
- package/dist/components/game-card-grid/index.d.ts +2 -4
- package/dist/components/game-demo/content/index.d.ts +1 -1
- package/dist/components/game-demo/index.d.ts +2 -2
- package/dist/components/game-demo/preview/alert/index.d.ts +3 -0
- package/dist/components/game-demo/preview/index.d.ts +2 -1
- package/dist/components/index.cjs +12 -3
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.mjs +32 -23
- package/dist/components/informer/index.d.ts +9 -0
- package/dist/components/informer/utils.d.ts +5 -0
- package/dist/components/tip/index.d.ts +3 -0
- package/dist/hooks/index.cjs +2 -2
- package/dist/hooks/index.mjs +2 -2
- package/dist/i18n/index.cjs +1 -1
- package/dist/i18n/index.mjs +1 -1
- package/dist/i18n/resources/bg/index.d.ts +51 -0
- package/dist/i18n/resources/da/index.d.ts +51 -0
- package/dist/i18n/resources/de/index.d.ts +51 -0
- package/dist/i18n/resources/en/index.d.ts +51 -0
- package/dist/i18n/resources/fi/index.d.ts +51 -0
- package/dist/i18n/resources/fr/index.d.ts +51 -0
- package/dist/i18n/resources/it/index.d.ts +51 -0
- package/dist/i18n/resources/ka/index.d.ts +51 -0
- package/dist/i18n/resources/pt/index.d.ts +51 -0
- package/dist/i18n/resources/ru/index.d.ts +51 -0
- package/dist/{index-DMR4Ptkt.js → index-B-k9oWE7.js} +606 -10
- package/dist/{index-D4zJ5RBA.js → index-BFkFqBM7.js} +5 -4
- package/dist/index-BUz6iLeg.mjs +402 -0
- package/dist/index-BeJTy4iY.mjs +26 -0
- package/dist/index-BfITsKAr.js +25 -0
- package/dist/{index-Drz_7u2p.mjs → index-C7z5qqm_.mjs} +21 -23
- package/dist/{index-DYS7zQW4.mjs → index-CB0JfZMx.mjs} +1 -1
- package/dist/{index-CR5rM7at.js → index-CNyyTj_C.js} +37 -36
- package/dist/{index-CWMHJGbL.mjs → index-CVN8I7r9.mjs} +616 -20
- package/dist/index-CzAt2Bs2.js +401 -0
- package/dist/{index-5J1CqqcW.js → index-D15SAjJc.js} +1 -1
- package/dist/{index-BzbpMLDD.mjs → index-DHURrUMW.mjs} +1 -1
- package/dist/{index-JUwyHkmj.mjs → index-N0fjwTCB.mjs} +238 -69
- package/dist/{index-CyuHme_p.js → index-RL_4tl8T.js} +403 -234
- package/dist/{index-HLGPI9-S.mjs → index-ZivV_RbX.mjs} +30 -29
- package/dist/{index-WFgDSB1A.js → index-ma-iV7GU.js} +1 -1
- package/dist/{index-CkRY_NXp.js → index-qR3kVjjs.js} +20 -22
- package/dist/{index-C2T70CMa.mjs → index-s2a55HsU.mjs} +5 -4
- package/dist/index.cjs +24 -12
- package/dist/index.mjs +53 -41
- package/dist/layout/index.cjs +24 -13
- package/dist/layout/index.mjs +24 -13
- package/dist/providers/index.cjs +2 -2
- package/dist/providers/index.mjs +2 -2
- package/dist/types/components/article-card/index.d.ts +9 -0
- package/dist/types/components/button/index.d.ts +1 -1
- package/dist/types/components/casino/index.d.ts +32 -0
- package/dist/types/components/casino-info/index.d.ts +12 -0
- package/dist/types/components/common/index.d.ts +1 -1
- package/dist/types/components/game-info/index.d.ts +4 -8
- package/dist/types/components/grid/index.d.ts +4 -0
- package/dist/types/components/index.d.ts +4 -0
- package/dist/types/components/informer/index.d.ts +5 -0
- package/dist/types/components/strapi-component/index.d.ts +1 -1
- package/dist/types/content/article/index.d.ts +12 -0
- package/dist/types/content/index.d.ts +1 -0
- package/dist/types/i18n/index.d.ts +1 -1
- package/dist/utils/index.cjs +5 -5
- package/dist/utils/index.mjs +7 -7
- package/package.json +1 -1
- package/dist/index-B1PwYYQt.mjs +0 -24
- package/dist/index-B6wz_B9_.js +0 -145
- package/dist/index-C-ri0Fgy.js +0 -23
- package/dist/index-COv56GyV.mjs +0 -146
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
type GameType = string;
|
|
2
|
-
type GameTheme = string;
|
|
3
1
|
type GamePlatform = 'iOS' | 'Android' | 'Windows' | 'Web';
|
|
4
|
-
type GameLanguage = string;
|
|
5
|
-
type GameFeature = 'multipliers' | 'wild-symbol' | 'scatter-symbol' | 'tumble' | 'free spins';
|
|
6
2
|
export declare enum GameVolatility {
|
|
7
3
|
High = "HIGH",
|
|
8
4
|
Medium = "MEDIUM",
|
|
@@ -39,8 +35,8 @@ export interface IGameInfo {
|
|
|
39
35
|
[GameCharacteristic.Name]: string;
|
|
40
36
|
[GameCharacteristic.Developer]: string;
|
|
41
37
|
[GameCharacteristic.ReleaseDate]: string;
|
|
42
|
-
[GameCharacteristic.Theme]:
|
|
43
|
-
[GameCharacteristic.Type]:
|
|
38
|
+
[GameCharacteristic.Theme]: string;
|
|
39
|
+
[GameCharacteristic.Type]: string;
|
|
44
40
|
[GameCharacteristic.Rtp]: number;
|
|
45
41
|
[GameCharacteristic.Volatility]: GameVolatility;
|
|
46
42
|
[GameCharacteristic.ReelsNumber]: number | string;
|
|
@@ -59,8 +55,8 @@ export interface IGameInfo {
|
|
|
59
55
|
[GameCharacteristic.HasBonusPurchase]: boolean;
|
|
60
56
|
[GameCharacteristic.HasCollectionSymbols]: boolean;
|
|
61
57
|
[GameCharacteristic.HasProgressiveJackpot]: boolean;
|
|
62
|
-
[GameCharacteristic.BonusFeatures]:
|
|
63
|
-
[GameCharacteristic.Languages]:
|
|
58
|
+
[GameCharacteristic.BonusFeatures]: string[] | string;
|
|
59
|
+
[GameCharacteristic.Languages]: string[];
|
|
64
60
|
[GameCharacteristic.Functions]: string;
|
|
65
61
|
}>;
|
|
66
62
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
export * from './article-card';
|
|
1
2
|
export * from './bonus-card';
|
|
2
3
|
export * from './button';
|
|
4
|
+
export * from './casino';
|
|
5
|
+
export * from './casino-info';
|
|
3
6
|
export * from './common';
|
|
4
7
|
export * from './external-image';
|
|
5
8
|
export * from './faq';
|
|
@@ -9,6 +12,7 @@ export * from './grid';
|
|
|
9
12
|
export * from './how-to';
|
|
10
13
|
export * from './icon';
|
|
11
14
|
export * from './image';
|
|
15
|
+
export * from './informer';
|
|
12
16
|
export * from './link';
|
|
13
17
|
export * from './locale-switcher';
|
|
14
18
|
export * from './navigation';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type StrapiComponentType = 'STRAPI__COMPONENT_CONTENT_CONTACTS_PAGE' | 'STRAPI__COMPONENT_CONTENT_COOKIE_POLICY_PAGE' | 'STRAPI__COMPONENT_CONTENT_FAQ' | 'STRAPI__COMPONENT_CONTENT_FEATURES' | 'STRAPI__COMPONENT_CONTENT_GAME_CARDS' | 'STRAPI__COMPONENT_CONTENT_GAME_CARD_TABS' | 'STRAPI__COMPONENT_CONTENT_GAME_DEMO' | 'STRAPI__COMPONENT_CONTENT_GAME_INFO' | 'STRAPI__COMPONENT_CONTENT_HOW_TO' | 'STRAPI__COMPONENT_CONTENT_LIST' | 'STRAPI__COMPONENT_CONTENT_MEDIA' | 'STRAPI__COMPONENT_CONTENT_PRIVACY_POLICY_PAGE' | 'STRAPI__COMPONENT_CONTENT_PROS_CONS' | 'STRAPI__COMPONENT_CONTENT_RICH_TEXT' | 'STRAPI__COMPONENT_CONTENT_TABLE' | 'STRAPI__COMPONENT_CONTENT_TERMS_CONDITIONS_PAGE' | 'STRAPI__COMPONENT_CONTENT_TIP';
|
|
1
|
+
export type StrapiComponentType = 'STRAPI__COMPONENT_CONTENT_ACTION_BUTTON' | 'STRAPI__COMPONENT_CONTENT_CONTACTS_PAGE' | 'STRAPI__COMPONENT_CONTENT_COOKIE_POLICY_PAGE' | 'STRAPI__COMPONENT_CONTENT_FAQ' | 'STRAPI__COMPONENT_CONTENT_FEATURES' | 'STRAPI__COMPONENT_CONTENT_GAME_CARDS' | 'STRAPI__COMPONENT_CONTENT_GAME_CARD_TABS' | 'STRAPI__COMPONENT_CONTENT_GAME_DEMO' | 'STRAPI__COMPONENT_CONTENT_GAME_INFO' | 'STRAPI__COMPONENT_CONTENT_HOW_TO' | 'STRAPI__COMPONENT_CONTENT_INFORMER' | 'STRAPI__COMPONENT_CONTENT_LIST' | 'STRAPI__COMPONENT_CONTENT_MEDIA' | 'STRAPI__COMPONENT_CONTENT_PRIVACY_POLICY_PAGE' | 'STRAPI__COMPONENT_CONTENT_PROS_CONS' | 'STRAPI__COMPONENT_CONTENT_RICH_TEXT' | 'STRAPI__COMPONENT_CONTENT_TABLE' | 'STRAPI__COMPONENT_CONTENT_TERMS_CONDITIONS_PAGE' | 'STRAPI__COMPONENT_CONTENT_TIP';
|
|
2
2
|
export interface IStrapiComponentFragment {
|
|
3
3
|
__typename: StrapiComponentType;
|
|
4
4
|
[prop: string]: unknown;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IAuthor } from '../author';
|
|
2
|
+
export interface IArticleMeta {
|
|
3
|
+
createdAt: string;
|
|
4
|
+
updatedAt?: string;
|
|
5
|
+
minutesToRead?: number;
|
|
6
|
+
author?: IAuthor;
|
|
7
|
+
}
|
|
8
|
+
export interface IArticleInfo {
|
|
9
|
+
title: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
meta?: IArticleMeta;
|
|
12
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type LanguageCode = 'en' | 'it' | 'de' | 'fr' | 'ru' | 'pt' | 'ka' | 'fi' | 'bg' | 'da';
|
|
2
|
-
export type Currency = 'USD' | 'EUR' | 'GBP' | 'RUB';
|
|
2
|
+
export type Currency = 'USD' | 'EUR' | 'GBP' | 'RUB' | 'BRL';
|
|
3
3
|
type LocaleCode = string;
|
|
4
4
|
export interface ILocale {
|
|
5
5
|
code: LocaleCode;
|
package/dist/utils/index.cjs
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const index = require("../index-C6MG_f24.js");
|
|
4
4
|
const index$1 = require("../index-CYr1ct1t.js");
|
|
5
|
-
const index$2 = require("../index-
|
|
6
|
-
const index$3 = require("../index-
|
|
5
|
+
const index$2 = require("../index-BfITsKAr.js");
|
|
6
|
+
const index$3 = require("../index-qR3kVjjs.js");
|
|
7
7
|
const index$4 = require("../index-DgrIJs-a.js");
|
|
8
8
|
const index$5 = require("../index-CbuiYkSg.js");
|
|
9
9
|
exports.Animation = index.Animation;
|
|
@@ -11,15 +11,15 @@ exports.getLocale = index$1.getLocale;
|
|
|
11
11
|
exports.getLocales = index$1.getLocales;
|
|
12
12
|
exports.getNavigation = index$1.getNavigation;
|
|
13
13
|
exports.getSiteName = index$1.getSiteName;
|
|
14
|
-
exports.formatNumber = index$2.formatNumber;
|
|
15
14
|
exports.getCurrencySymbol = index$2.getCurrencySymbol;
|
|
16
15
|
exports.getSeededRandomComparator = index$2.getSeededRandomComparator;
|
|
17
16
|
exports.randomComparator = index$2.randomComparator;
|
|
18
|
-
exports.round = index$2.round;
|
|
19
|
-
exports.toFixedTwo = index$2.toFixedTwo;
|
|
20
17
|
exports.formatDate = index$3.formatDate;
|
|
18
|
+
exports.formatNumber = index$3.formatNumber;
|
|
21
19
|
exports.getCurrentMonth = index$3.getCurrentMonth;
|
|
22
20
|
exports.getCurrentYear = index$3.getCurrentYear;
|
|
21
|
+
exports.round = index$3.round;
|
|
22
|
+
exports.toFixedTwo = index$3.toFixedTwo;
|
|
23
23
|
exports.buildPath = index$4.buildPath;
|
|
24
24
|
exports.isAbsolutePath = index$4.isAbsolutePath;
|
|
25
25
|
exports.isRelativePath = index$4.isRelativePath;
|
package/dist/utils/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { A } from "../index-BJRvnR8Q.mjs";
|
|
2
2
|
import { b, c, g, a } from "../index-cQqALZIW.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { f as
|
|
3
|
+
import { g as g2, a as a2, r } from "../index-BeJTy4iY.mjs";
|
|
4
|
+
import { f, b as b2, a as a3, g as g3, r as r2, t } from "../index-C7z5qqm_.mjs";
|
|
5
5
|
import { b as b3, a as a4, i } from "../index-Bph7a3PR.mjs";
|
|
6
6
|
import { D, L } from "../index-BRVKhbs6.mjs";
|
|
7
7
|
export {
|
|
@@ -9,19 +9,19 @@ export {
|
|
|
9
9
|
D as DARK_THEME_COLOR,
|
|
10
10
|
L as LIGHT_THEME_COLOR,
|
|
11
11
|
b3 as buildPath,
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
f as formatDate,
|
|
13
|
+
b2 as formatNumber,
|
|
14
14
|
g2 as getCurrencySymbol,
|
|
15
15
|
a3 as getCurrentMonth,
|
|
16
16
|
g3 as getCurrentYear,
|
|
17
17
|
b as getLocale,
|
|
18
18
|
c as getLocales,
|
|
19
19
|
g as getNavigation,
|
|
20
|
-
|
|
20
|
+
a2 as getSeededRandomComparator,
|
|
21
21
|
a as getSiteName,
|
|
22
22
|
a4 as isAbsolutePath,
|
|
23
23
|
i as isRelativePath,
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
r as randomComparator,
|
|
25
|
+
r2 as round,
|
|
26
26
|
t as toFixedTwo
|
|
27
27
|
};
|
package/package.json
CHANGED
package/dist/index-B1PwYYQt.mjs
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { DEFAULT_LANGUAGE } from "./i18n/index.mjs";
|
|
2
|
-
function getCurrentYear(locale = DEFAULT_LANGUAGE) {
|
|
3
|
-
const currentDate = /* @__PURE__ */ new Date();
|
|
4
|
-
const currentYear = new Intl.DateTimeFormat(locale, { year: "numeric" }).format(currentDate);
|
|
5
|
-
return currentYear;
|
|
6
|
-
}
|
|
7
|
-
function getCurrentMonth(locale = DEFAULT_LANGUAGE) {
|
|
8
|
-
const currentDate = /* @__PURE__ */ new Date();
|
|
9
|
-
const currentMonth = new Intl.DateTimeFormat(locale, { month: "long" }).format(currentDate);
|
|
10
|
-
return currentMonth;
|
|
11
|
-
}
|
|
12
|
-
function formatDate({ value, locale = DEFAULT_LANGUAGE, options }) {
|
|
13
|
-
const date = typeof value === "string" || typeof value === "number" ? new Date(value) : value;
|
|
14
|
-
if (isNaN(date.getTime())) {
|
|
15
|
-
throw new Error("Invalid date provided");
|
|
16
|
-
}
|
|
17
|
-
const formatter = new Intl.DateTimeFormat(locale, options);
|
|
18
|
-
return formatter.format(date);
|
|
19
|
-
}
|
|
20
|
-
export {
|
|
21
|
-
getCurrentMonth as a,
|
|
22
|
-
formatDate as f,
|
|
23
|
-
getCurrentYear as g
|
|
24
|
-
};
|
package/dist/index-B6wz_B9_.js
DELETED
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const jsxRuntime = require("react/jsx-runtime");
|
|
3
|
-
const react = require("@chakra-ui/react");
|
|
4
|
-
const index = require("./index-CR5rM7at.js");
|
|
5
|
-
require("@mdx-js/react");
|
|
6
|
-
require("react-medium-image-zoom");
|
|
7
|
-
require("react");
|
|
8
|
-
require("react-i18next");
|
|
9
|
-
const index$1 = require("./index-5J1CqqcW.js");
|
|
10
|
-
const index$2 = require("./index-C6MG_f24.js");
|
|
11
|
-
require("./index-DMR4Ptkt.js");
|
|
12
|
-
const FacebookIcon = (props) => {
|
|
13
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", "aria-label": "Facebook", ...props, children: [
|
|
14
|
-
/* @__PURE__ */ jsxRuntime.jsx("rect", { x: "1", y: "1", width: "22", height: "22", rx: "5", fill: "none", stroke: "currentColor", strokeWidth: "2" }),
|
|
15
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
16
|
-
"path",
|
|
17
|
-
{
|
|
18
|
-
d: "M13.5 8h2V6h-2c-2.2 0-3.5 1.3-3.5 3.5V11H8v2h2v5h2v-5h2l.5-2h-2v-1.3c0-.5.2-.7 1-.7Z",
|
|
19
|
-
fill: "currentColor"
|
|
20
|
-
}
|
|
21
|
-
)
|
|
22
|
-
] });
|
|
23
|
-
};
|
|
24
|
-
const InstagramIcon = (props) => {
|
|
25
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
26
|
-
"svg",
|
|
27
|
-
{
|
|
28
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
29
|
-
width: "24",
|
|
30
|
-
height: "24",
|
|
31
|
-
viewBox: "0 0 24 24",
|
|
32
|
-
"aria-label": "Instagram",
|
|
33
|
-
...props,
|
|
34
|
-
children: [
|
|
35
|
-
/* @__PURE__ */ jsxRuntime.jsx("rect", { x: "1", y: "1", width: "22", height: "22", rx: "5", fill: "none", stroke: "currentColor", strokeWidth: "2" }),
|
|
36
|
-
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "12", cy: "12", r: "4", fill: "none", stroke: "currentColor", strokeWidth: "2" }),
|
|
37
|
-
/* @__PURE__ */ jsxRuntime.jsx("circle", { cx: "17", cy: "7", r: "1.25", fill: "currentColor" })
|
|
38
|
-
]
|
|
39
|
-
}
|
|
40
|
-
);
|
|
41
|
-
};
|
|
42
|
-
const PinterestIcon = (props) => {
|
|
43
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
44
|
-
"svg",
|
|
45
|
-
{
|
|
46
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
47
|
-
width: "24",
|
|
48
|
-
height: "24",
|
|
49
|
-
viewBox: "0 0 24 24",
|
|
50
|
-
"aria-label": "Pinterest",
|
|
51
|
-
...props,
|
|
52
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
53
|
-
"path",
|
|
54
|
-
{
|
|
55
|
-
fill: "currentColor",
|
|
56
|
-
d: "M12 0C5.373 0 0 5.373 0 12c0 4.99 3.657 9.128 8.438 10.122-.117-.858-.222-2.178.047-3.116.242-.83 1.557-5.288 1.557-5.288s-.396-.792-.396-1.963c0-1.84 1.067-3.215 2.395-3.215 1.13 0 1.675.848 1.675 1.866 0 1.138-.724 2.842-1.097 4.421-.312 1.319.663 2.395 1.965 2.395 2.358 0 3.947-3.032 3.947-6.617 0-2.727-1.84-4.769-5.178-4.769-3.774 0-6.134 2.822-6.134 5.97 0 1.086.322 1.852.827 2.443.232.274.264.384.18.698-.06.23-.197.786-.256 1.007-.084.322-.34.437-.628.318-1.75-.714-2.564-2.63-2.564-4.785 0-3.555 2.998-7.817 8.946-7.817 4.782 0 7.923 3.454 7.923 7.168 0 4.924-2.74 8.6-6.781 8.6-1.356 0-2.63-.73-3.066-1.565l-.833 3.173c-.301 1.147-1.118 2.582-1.667 3.455C9.708 23.812 10.828 24 12 24c6.627 0 12-5.373 12-12S18.627 0 12 0z"
|
|
57
|
-
}
|
|
58
|
-
)
|
|
59
|
-
}
|
|
60
|
-
);
|
|
61
|
-
};
|
|
62
|
-
const XcomIcon = (props) => {
|
|
63
|
-
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", "aria-label": "X", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
64
|
-
"path",
|
|
65
|
-
{
|
|
66
|
-
fill: "currentColor",
|
|
67
|
-
d: "M18.244 2H21l-6.57 7.498L22 22h-5.657l-4.403-5.808L6.06 22H3.302l7.02-8.006L2 2h5.822l3.983 5.293L18.244 2zM16.97 20h1.9L8.153 4h-1.9L16.97 20z"
|
|
68
|
-
}
|
|
69
|
-
) });
|
|
70
|
-
};
|
|
71
|
-
const YoutubeIcon = (props) => {
|
|
72
|
-
return /* @__PURE__ */ jsxRuntime.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", "aria-label": "YouTube", ...props, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
73
|
-
"path",
|
|
74
|
-
{
|
|
75
|
-
fill: "currentColor",
|
|
76
|
-
d: "M23.498 6.186a2.974 2.974 0 0 0-2.095-2.107C19.505 3.5 12 3.5 12 3.5s-7.505 0-9.403.579A2.974 2.974 0 0 0 .502 6.186C0 8.09 0 12 0 12s0 3.91.502 5.814a2.974 2.974 0 0 0 2.095 2.107C4.495 20.5 12 20.5 12 20.5s7.505 0 9.403-.579a2.974 2.974 0 0 0 2.095-2.107C24 15.91 24 12 24 12s0-3.91-.502-5.814zM9.75 15.02V8.98L15.5 12l-5.75 3.02z"
|
|
77
|
-
}
|
|
78
|
-
) });
|
|
79
|
-
};
|
|
80
|
-
const SocialNetworkMap = {
|
|
81
|
-
facebook: FacebookIcon,
|
|
82
|
-
instagram: InstagramIcon,
|
|
83
|
-
pinterest: PinterestIcon,
|
|
84
|
-
x: XcomIcon,
|
|
85
|
-
youtube: YoutubeIcon
|
|
86
|
-
};
|
|
87
|
-
const SocialNetwork = ({ kind, url }) => {
|
|
88
|
-
const Icon = SocialNetworkMap[kind];
|
|
89
|
-
return /* @__PURE__ */ jsxRuntime.jsx(index.Link, { to: url, children: /* @__PURE__ */ jsxRuntime.jsx(Icon, {}) });
|
|
90
|
-
};
|
|
91
|
-
const SocialNetworks = ({ socialNetworks, ...flexProps }) => {
|
|
92
|
-
const uniqueSocialNetworks = [...new Map(socialNetworks.map((item) => [item.kind, item])).values()];
|
|
93
|
-
return /* @__PURE__ */ jsxRuntime.jsx(react.Flex, { gap: 2, ...flexProps, children: uniqueSocialNetworks.map((socialNetwork) => /* @__PURE__ */ jsxRuntime.jsx(SocialNetwork, { ...socialNetwork }, socialNetwork.kind)) });
|
|
94
|
-
};
|
|
95
|
-
const Container = ({ children }) => {
|
|
96
|
-
return /* @__PURE__ */ jsxRuntime.jsx(react.Container, { maxW: "container.xl", children });
|
|
97
|
-
};
|
|
98
|
-
const LinkButton = ({
|
|
99
|
-
label,
|
|
100
|
-
href,
|
|
101
|
-
linkType = "redirect",
|
|
102
|
-
size = "auto",
|
|
103
|
-
width = "auto",
|
|
104
|
-
textTransform,
|
|
105
|
-
textDecoration,
|
|
106
|
-
animation,
|
|
107
|
-
onClick,
|
|
108
|
-
...boxProps
|
|
109
|
-
}) => {
|
|
110
|
-
var _a;
|
|
111
|
-
const { config } = index.useSiteContext();
|
|
112
|
-
const { color, invertedColor } = index$1.usePrimaryColors();
|
|
113
|
-
const isInvertedColor = (_a = config == null ? void 0 : config.theme) == null ? void 0 : _a.isInvertedColor;
|
|
114
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
115
|
-
react.Button,
|
|
116
|
-
{
|
|
117
|
-
w: width,
|
|
118
|
-
size: size === "auto" ? { base: "sm", md: "lg" } : size,
|
|
119
|
-
bg: "brand.500",
|
|
120
|
-
color: isInvertedColor ? invertedColor : color,
|
|
121
|
-
animation: animation ? index$2.Animation[animation.type](animation.params) : void 0,
|
|
122
|
-
textTransform,
|
|
123
|
-
_hover: { textDecoration, bg: "brand.200" },
|
|
124
|
-
_active: { transform: "scale(0.95)" },
|
|
125
|
-
onClick,
|
|
126
|
-
...boxProps,
|
|
127
|
-
...href && {
|
|
128
|
-
as: index.Link,
|
|
129
|
-
to: href,
|
|
130
|
-
isRedirectLink: linkType === "redirect"
|
|
131
|
-
},
|
|
132
|
-
children: label
|
|
133
|
-
}
|
|
134
|
-
);
|
|
135
|
-
};
|
|
136
|
-
const Logo = () => {
|
|
137
|
-
const { metadata } = index.useSiteContext();
|
|
138
|
-
const { logo } = metadata;
|
|
139
|
-
return /* @__PURE__ */ jsxRuntime.jsx(react.Box, { display: "flex", h: { base: 10, md: 14 }, overflow: "hidden", children: /* @__PURE__ */ jsxRuntime.jsx(index.Image, { src: logo, alt: "Logo", objectFit: "contain" }) });
|
|
140
|
-
};
|
|
141
|
-
exports.Container = Container;
|
|
142
|
-
exports.LinkButton = LinkButton;
|
|
143
|
-
exports.Logo = Logo;
|
|
144
|
-
exports.SocialNetwork = SocialNetwork;
|
|
145
|
-
exports.SocialNetworks = SocialNetworks;
|
package/dist/index-C-ri0Fgy.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const i18n = require("./i18n/index.cjs");
|
|
3
|
-
function getCurrentYear(locale = i18n.DEFAULT_LANGUAGE) {
|
|
4
|
-
const currentDate = /* @__PURE__ */ new Date();
|
|
5
|
-
const currentYear = new Intl.DateTimeFormat(locale, { year: "numeric" }).format(currentDate);
|
|
6
|
-
return currentYear;
|
|
7
|
-
}
|
|
8
|
-
function getCurrentMonth(locale = i18n.DEFAULT_LANGUAGE) {
|
|
9
|
-
const currentDate = /* @__PURE__ */ new Date();
|
|
10
|
-
const currentMonth = new Intl.DateTimeFormat(locale, { month: "long" }).format(currentDate);
|
|
11
|
-
return currentMonth;
|
|
12
|
-
}
|
|
13
|
-
function formatDate({ value, locale = i18n.DEFAULT_LANGUAGE, options }) {
|
|
14
|
-
const date = typeof value === "string" || typeof value === "number" ? new Date(value) : value;
|
|
15
|
-
if (isNaN(date.getTime())) {
|
|
16
|
-
throw new Error("Invalid date provided");
|
|
17
|
-
}
|
|
18
|
-
const formatter = new Intl.DateTimeFormat(locale, options);
|
|
19
|
-
return formatter.format(date);
|
|
20
|
-
}
|
|
21
|
-
exports.formatDate = formatDate;
|
|
22
|
-
exports.getCurrentMonth = getCurrentMonth;
|
|
23
|
-
exports.getCurrentYear = getCurrentYear;
|
package/dist/index-COv56GyV.mjs
DELETED
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Flex, Container as Container$1, Button, Box } from "@chakra-ui/react";
|
|
3
|
-
import { L as Link, a as useSiteContext, I as Image } from "./index-HLGPI9-S.mjs";
|
|
4
|
-
import "@mdx-js/react";
|
|
5
|
-
import "react-medium-image-zoom";
|
|
6
|
-
import "react";
|
|
7
|
-
import "react-i18next";
|
|
8
|
-
import { u as usePrimaryColors } from "./index-DYS7zQW4.mjs";
|
|
9
|
-
import { A as Animation } from "./index-BJRvnR8Q.mjs";
|
|
10
|
-
import "./index-CWMHJGbL.mjs";
|
|
11
|
-
const FacebookIcon = (props) => {
|
|
12
|
-
return /* @__PURE__ */ jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", "aria-label": "Facebook", ...props, children: [
|
|
13
|
-
/* @__PURE__ */ jsx("rect", { x: "1", y: "1", width: "22", height: "22", rx: "5", fill: "none", stroke: "currentColor", strokeWidth: "2" }),
|
|
14
|
-
/* @__PURE__ */ jsx(
|
|
15
|
-
"path",
|
|
16
|
-
{
|
|
17
|
-
d: "M13.5 8h2V6h-2c-2.2 0-3.5 1.3-3.5 3.5V11H8v2h2v5h2v-5h2l.5-2h-2v-1.3c0-.5.2-.7 1-.7Z",
|
|
18
|
-
fill: "currentColor"
|
|
19
|
-
}
|
|
20
|
-
)
|
|
21
|
-
] });
|
|
22
|
-
};
|
|
23
|
-
const InstagramIcon = (props) => {
|
|
24
|
-
return /* @__PURE__ */ jsxs(
|
|
25
|
-
"svg",
|
|
26
|
-
{
|
|
27
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
28
|
-
width: "24",
|
|
29
|
-
height: "24",
|
|
30
|
-
viewBox: "0 0 24 24",
|
|
31
|
-
"aria-label": "Instagram",
|
|
32
|
-
...props,
|
|
33
|
-
children: [
|
|
34
|
-
/* @__PURE__ */ jsx("rect", { x: "1", y: "1", width: "22", height: "22", rx: "5", fill: "none", stroke: "currentColor", strokeWidth: "2" }),
|
|
35
|
-
/* @__PURE__ */ jsx("circle", { cx: "12", cy: "12", r: "4", fill: "none", stroke: "currentColor", strokeWidth: "2" }),
|
|
36
|
-
/* @__PURE__ */ jsx("circle", { cx: "17", cy: "7", r: "1.25", fill: "currentColor" })
|
|
37
|
-
]
|
|
38
|
-
}
|
|
39
|
-
);
|
|
40
|
-
};
|
|
41
|
-
const PinterestIcon = (props) => {
|
|
42
|
-
return /* @__PURE__ */ jsx(
|
|
43
|
-
"svg",
|
|
44
|
-
{
|
|
45
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
46
|
-
width: "24",
|
|
47
|
-
height: "24",
|
|
48
|
-
viewBox: "0 0 24 24",
|
|
49
|
-
"aria-label": "Pinterest",
|
|
50
|
-
...props,
|
|
51
|
-
children: /* @__PURE__ */ jsx(
|
|
52
|
-
"path",
|
|
53
|
-
{
|
|
54
|
-
fill: "currentColor",
|
|
55
|
-
d: "M12 0C5.373 0 0 5.373 0 12c0 4.99 3.657 9.128 8.438 10.122-.117-.858-.222-2.178.047-3.116.242-.83 1.557-5.288 1.557-5.288s-.396-.792-.396-1.963c0-1.84 1.067-3.215 2.395-3.215 1.13 0 1.675.848 1.675 1.866 0 1.138-.724 2.842-1.097 4.421-.312 1.319.663 2.395 1.965 2.395 2.358 0 3.947-3.032 3.947-6.617 0-2.727-1.84-4.769-5.178-4.769-3.774 0-6.134 2.822-6.134 5.97 0 1.086.322 1.852.827 2.443.232.274.264.384.18.698-.06.23-.197.786-.256 1.007-.084.322-.34.437-.628.318-1.75-.714-2.564-2.63-2.564-4.785 0-3.555 2.998-7.817 8.946-7.817 4.782 0 7.923 3.454 7.923 7.168 0 4.924-2.74 8.6-6.781 8.6-1.356 0-2.63-.73-3.066-1.565l-.833 3.173c-.301 1.147-1.118 2.582-1.667 3.455C9.708 23.812 10.828 24 12 24c6.627 0 12-5.373 12-12S18.627 0 12 0z"
|
|
56
|
-
}
|
|
57
|
-
)
|
|
58
|
-
}
|
|
59
|
-
);
|
|
60
|
-
};
|
|
61
|
-
const XcomIcon = (props) => {
|
|
62
|
-
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", "aria-label": "X", ...props, children: /* @__PURE__ */ jsx(
|
|
63
|
-
"path",
|
|
64
|
-
{
|
|
65
|
-
fill: "currentColor",
|
|
66
|
-
d: "M18.244 2H21l-6.57 7.498L22 22h-5.657l-4.403-5.808L6.06 22H3.302l7.02-8.006L2 2h5.822l3.983 5.293L18.244 2zM16.97 20h1.9L8.153 4h-1.9L16.97 20z"
|
|
67
|
-
}
|
|
68
|
-
) });
|
|
69
|
-
};
|
|
70
|
-
const YoutubeIcon = (props) => {
|
|
71
|
-
return /* @__PURE__ */ jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", "aria-label": "YouTube", ...props, children: /* @__PURE__ */ jsx(
|
|
72
|
-
"path",
|
|
73
|
-
{
|
|
74
|
-
fill: "currentColor",
|
|
75
|
-
d: "M23.498 6.186a2.974 2.974 0 0 0-2.095-2.107C19.505 3.5 12 3.5 12 3.5s-7.505 0-9.403.579A2.974 2.974 0 0 0 .502 6.186C0 8.09 0 12 0 12s0 3.91.502 5.814a2.974 2.974 0 0 0 2.095 2.107C4.495 20.5 12 20.5 12 20.5s7.505 0 9.403-.579a2.974 2.974 0 0 0 2.095-2.107C24 15.91 24 12 24 12s0-3.91-.502-5.814zM9.75 15.02V8.98L15.5 12l-5.75 3.02z"
|
|
76
|
-
}
|
|
77
|
-
) });
|
|
78
|
-
};
|
|
79
|
-
const SocialNetworkMap = {
|
|
80
|
-
facebook: FacebookIcon,
|
|
81
|
-
instagram: InstagramIcon,
|
|
82
|
-
pinterest: PinterestIcon,
|
|
83
|
-
x: XcomIcon,
|
|
84
|
-
youtube: YoutubeIcon
|
|
85
|
-
};
|
|
86
|
-
const SocialNetwork = ({ kind, url }) => {
|
|
87
|
-
const Icon = SocialNetworkMap[kind];
|
|
88
|
-
return /* @__PURE__ */ jsx(Link, { to: url, children: /* @__PURE__ */ jsx(Icon, {}) });
|
|
89
|
-
};
|
|
90
|
-
const SocialNetworks = ({ socialNetworks, ...flexProps }) => {
|
|
91
|
-
const uniqueSocialNetworks = [...new Map(socialNetworks.map((item) => [item.kind, item])).values()];
|
|
92
|
-
return /* @__PURE__ */ jsx(Flex, { gap: 2, ...flexProps, children: uniqueSocialNetworks.map((socialNetwork) => /* @__PURE__ */ jsx(SocialNetwork, { ...socialNetwork }, socialNetwork.kind)) });
|
|
93
|
-
};
|
|
94
|
-
const Container = ({ children }) => {
|
|
95
|
-
return /* @__PURE__ */ jsx(Container$1, { maxW: "container.xl", children });
|
|
96
|
-
};
|
|
97
|
-
const LinkButton = ({
|
|
98
|
-
label,
|
|
99
|
-
href,
|
|
100
|
-
linkType = "redirect",
|
|
101
|
-
size = "auto",
|
|
102
|
-
width = "auto",
|
|
103
|
-
textTransform,
|
|
104
|
-
textDecoration,
|
|
105
|
-
animation,
|
|
106
|
-
onClick,
|
|
107
|
-
...boxProps
|
|
108
|
-
}) => {
|
|
109
|
-
var _a;
|
|
110
|
-
const { config } = useSiteContext();
|
|
111
|
-
const { color, invertedColor } = usePrimaryColors();
|
|
112
|
-
const isInvertedColor = (_a = config == null ? void 0 : config.theme) == null ? void 0 : _a.isInvertedColor;
|
|
113
|
-
return /* @__PURE__ */ jsx(
|
|
114
|
-
Button,
|
|
115
|
-
{
|
|
116
|
-
w: width,
|
|
117
|
-
size: size === "auto" ? { base: "sm", md: "lg" } : size,
|
|
118
|
-
bg: "brand.500",
|
|
119
|
-
color: isInvertedColor ? invertedColor : color,
|
|
120
|
-
animation: animation ? Animation[animation.type](animation.params) : void 0,
|
|
121
|
-
textTransform,
|
|
122
|
-
_hover: { textDecoration, bg: "brand.200" },
|
|
123
|
-
_active: { transform: "scale(0.95)" },
|
|
124
|
-
onClick,
|
|
125
|
-
...boxProps,
|
|
126
|
-
...href && {
|
|
127
|
-
as: Link,
|
|
128
|
-
to: href,
|
|
129
|
-
isRedirectLink: linkType === "redirect"
|
|
130
|
-
},
|
|
131
|
-
children: label
|
|
132
|
-
}
|
|
133
|
-
);
|
|
134
|
-
};
|
|
135
|
-
const Logo = () => {
|
|
136
|
-
const { metadata } = useSiteContext();
|
|
137
|
-
const { logo } = metadata;
|
|
138
|
-
return /* @__PURE__ */ jsx(Box, { display: "flex", h: { base: 10, md: 14 }, overflow: "hidden", children: /* @__PURE__ */ jsx(Image, { src: logo, alt: "Logo", objectFit: "contain" }) });
|
|
139
|
-
};
|
|
140
|
-
export {
|
|
141
|
-
Container as C,
|
|
142
|
-
LinkButton as L,
|
|
143
|
-
SocialNetwork as S,
|
|
144
|
-
Logo as a,
|
|
145
|
-
SocialNetworks as b
|
|
146
|
-
};
|