@anywayseo/tools 5.6.0 → 5.7.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 (92) hide show
  1. package/dist/components/action-button/index.d.ts +5 -0
  2. package/dist/components/article-card/index.d.ts +7 -0
  3. package/dist/components/article-card-grid/index.d.ts +7 -0
  4. package/dist/components/article-info-card/index.d.ts +5 -0
  5. package/dist/components/base/article-meta/index.d.ts +7 -0
  6. package/dist/components/base/article-meta/item/index.d.ts +7 -0
  7. package/dist/components/base/copy-text/index.d.ts +6 -0
  8. package/dist/components/base/grid/index.d.ts +2 -4
  9. package/dist/components/base/index.d.ts +3 -0
  10. package/dist/components/base/rating/index.d.ts +10 -0
  11. package/dist/components/bonus-card-grid/index.d.ts +2 -4
  12. package/dist/components/casino-table/index.d.ts +8 -0
  13. package/dist/components/casino-table/row/casino-actions/index.d.ts +8 -0
  14. package/dist/components/casino-table/row/casino-bonus/index.d.ts +8 -0
  15. package/dist/components/casino-table/row/casino-info/index.d.ts +7 -0
  16. package/dist/components/casino-table/row/casino-info/item/index.d.ts +7 -0
  17. package/dist/components/casino-table/row/casino-info/utils.d.ts +2 -0
  18. package/dist/components/casino-table/row/casino-license/index.d.ts +5 -0
  19. package/dist/components/casino-table/row/casino-logo/index.d.ts +9 -0
  20. package/dist/components/casino-table/row/casino-name/index.d.ts +8 -0
  21. package/dist/components/casino-table/row/cell/index.d.ts +7 -0
  22. package/dist/components/casino-table/row/index.d.ts +7 -0
  23. package/dist/components/feature-card-grid/index.d.ts +2 -4
  24. package/dist/components/game-card-grid/index.d.ts +2 -4
  25. package/dist/components/game-demo/content/index.d.ts +1 -1
  26. package/dist/components/game-demo/index.d.ts +2 -2
  27. package/dist/components/game-demo/preview/alert/index.d.ts +3 -0
  28. package/dist/components/game-demo/preview/index.d.ts +2 -1
  29. package/dist/components/index.cjs +12 -3
  30. package/dist/components/index.d.ts +6 -0
  31. package/dist/components/index.mjs +32 -23
  32. package/dist/components/informer/index.d.ts +9 -0
  33. package/dist/components/informer/utils.d.ts +5 -0
  34. package/dist/components/tip/index.d.ts +3 -0
  35. package/dist/hooks/index.cjs +2 -2
  36. package/dist/hooks/index.mjs +2 -2
  37. package/dist/i18n/index.cjs +1 -1
  38. package/dist/i18n/index.mjs +1 -1
  39. package/dist/i18n/resources/bg/index.d.ts +51 -0
  40. package/dist/i18n/resources/da/index.d.ts +51 -0
  41. package/dist/i18n/resources/de/index.d.ts +51 -0
  42. package/dist/i18n/resources/en/index.d.ts +51 -0
  43. package/dist/i18n/resources/fi/index.d.ts +51 -0
  44. package/dist/i18n/resources/fr/index.d.ts +51 -0
  45. package/dist/i18n/resources/it/index.d.ts +51 -0
  46. package/dist/i18n/resources/ka/index.d.ts +51 -0
  47. package/dist/i18n/resources/pt/index.d.ts +51 -0
  48. package/dist/i18n/resources/ru/index.d.ts +51 -0
  49. package/dist/{index-DMR4Ptkt.js → index-B-k9oWE7.js} +606 -10
  50. package/dist/{index-CyuHme_p.js → index-B71VkIfX.js} +403 -234
  51. package/dist/index-BTpEZIok.js +401 -0
  52. package/dist/index-BeJTy4iY.mjs +26 -0
  53. package/dist/index-BfITsKAr.js +25 -0
  54. package/dist/{index-Drz_7u2p.mjs → index-C7z5qqm_.mjs} +21 -23
  55. package/dist/{index-DYS7zQW4.mjs → index-CB0JfZMx.mjs} +1 -1
  56. package/dist/{index-JUwyHkmj.mjs → index-CEqTLcAR.mjs} +238 -69
  57. package/dist/{index-CWMHJGbL.mjs → index-CVN8I7r9.mjs} +616 -20
  58. package/dist/{index-5J1CqqcW.js → index-D15SAjJc.js} +1 -1
  59. package/dist/{index-BzbpMLDD.mjs → index-DHURrUMW.mjs} +1 -1
  60. package/dist/{index-C2T70CMa.mjs → index-FfZIjQy3.mjs} +5 -4
  61. package/dist/index-Lln67Kfn.mjs +402 -0
  62. package/dist/{index-CR5rM7at.js → index-QPgJfbrC.js} +36 -35
  63. package/dist/{index-D4zJ5RBA.js → index-TxqSZvgf.js} +5 -4
  64. package/dist/{index-HLGPI9-S.mjs → index-ksqN4RPm.mjs} +29 -28
  65. package/dist/{index-WFgDSB1A.js → index-ma-iV7GU.js} +1 -1
  66. package/dist/{index-CkRY_NXp.js → index-qR3kVjjs.js} +20 -22
  67. package/dist/index.cjs +24 -12
  68. package/dist/index.mjs +53 -41
  69. package/dist/layout/index.cjs +13 -12
  70. package/dist/layout/index.mjs +13 -12
  71. package/dist/providers/index.cjs +2 -2
  72. package/dist/providers/index.mjs +2 -2
  73. package/dist/types/components/article-card/index.d.ts +9 -0
  74. package/dist/types/components/button/index.d.ts +1 -1
  75. package/dist/types/components/casino/index.d.ts +32 -0
  76. package/dist/types/components/casino-info/index.d.ts +12 -0
  77. package/dist/types/components/common/index.d.ts +1 -1
  78. package/dist/types/components/game-info/index.d.ts +4 -8
  79. package/dist/types/components/grid/index.d.ts +4 -0
  80. package/dist/types/components/index.d.ts +4 -0
  81. package/dist/types/components/informer/index.d.ts +5 -0
  82. package/dist/types/components/strapi-component/index.d.ts +1 -1
  83. package/dist/types/content/article/index.d.ts +12 -0
  84. package/dist/types/content/index.d.ts +1 -0
  85. package/dist/types/i18n/index.d.ts +1 -1
  86. package/dist/utils/index.cjs +5 -5
  87. package/dist/utils/index.mjs +7 -7
  88. package/package.json +1 -1
  89. package/dist/index-B1PwYYQt.mjs +0 -24
  90. package/dist/index-B6wz_B9_.js +0 -145
  91. package/dist/index-C-ri0Fgy.js +0 -23
  92. package/dist/index-COv56GyV.mjs +0 -146
@@ -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 { f, g as g2, b as b2, a as a2, r, t } from "../index-Drz_7u2p.mjs";
4
- import { f as f2, a as a3, g as g3 } from "../index-B1PwYYQt.mjs";
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
- f2 as formatDate,
13
- f as formatNumber,
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
- b2 as getSeededRandomComparator,
20
+ a2 as getSeededRandomComparator,
21
21
  a as getSiteName,
22
22
  a4 as isAbsolutePath,
23
23
  i as isRelativePath,
24
- a2 as randomComparator,
25
- r as round,
24
+ r as randomComparator,
25
+ r2 as round,
26
26
  t as toFixedTwo
27
27
  };
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": "5.6.0",
4
+ "version": "5.7.0",
5
5
  "keywords": [
6
6
  "react",
7
7
  "ui",
@@ -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
- };
@@ -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;
@@ -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;
@@ -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
- };