@anywayseo/tools 5.7.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.
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("../index-B71VkIfX.js");
4
- const index$1 = require("../index-BTpEZIok.js");
3
+ const index = require("../index-RL_4tl8T.js");
4
+ const index$1 = require("../index-CzAt2Bs2.js");
5
5
  const index$2 = require("../index-DDg_PkD2.js");
6
- const index$3 = require("../index-QPgJfbrC.js");
6
+ const index$3 = require("../index-CNyyTj_C.js");
7
7
  exports.ActionButton = index.ActionButton;
8
8
  exports.ArticleCard = index.ArticleCard;
9
9
  exports.ArticleCardGrid = index.ArticleCardGrid;
@@ -1,7 +1,7 @@
1
- import { A, a, b, c, n, o, d, B, e, C, r, q, F, f, g, G, h, i, j, p, H, I, L, N, s, P, S, k, T, l, t, m } from "../index-CEqTLcAR.mjs";
2
- import { C as C2, a as a2, b as b2, L as L2, c as c2, R, S as S2, d as d2 } from "../index-Lln67Kfn.mjs";
1
+ import { A, a, b, c, n, o, d, B, e, C, r, q, F, f, g, G, h, i, j, p, H, I, L, N, s, P, S, k, T, l, t, m } from "../index-N0fjwTCB.mjs";
2
+ import { C as C2, a as a2, b as b2, L as L2, c as c2, R, S as S2, d as d2 } from "../index-BUz6iLeg.mjs";
3
3
  import { H as H2, a as a3, b as b3, O, P as P2, U } from "../index-BEjKnOZA.mjs";
4
- import { I as I2, L as L3 } from "../index-ksqN4RPm.mjs";
4
+ import { I as I2, L as L3 } from "../index-ZivV_RbX.mjs";
5
5
  export {
6
6
  A as ActionButton,
7
7
  a as ArticleCard,
@@ -3,7 +3,7 @@ const jsxRuntime = require("react/jsx-runtime");
3
3
  const react = require("@mdx-js/react");
4
4
  require("react-i18next");
5
5
  require("@chakra-ui/react");
6
- const index$1 = require("./index-QPgJfbrC.js");
6
+ const index$1 = require("./index-CNyyTj_C.js");
7
7
  require("./index-C6MG_f24.js");
8
8
  require("./index-B-k9oWE7.js");
9
9
  require("react");
@@ -1,6 +1,6 @@
1
1
  import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { Flex, Container as Container$1, useColorModeValue, useToast, useClipboard, Text, IconButton, Button, Box, Stack, Card, Badge, Td, Tr, Table, Thead, Th, Tbody } from "@chakra-ui/react";
3
- import { L as Link, a as useSiteContext, I as Image, u as usePageContext } from "./index-ksqN4RPm.mjs";
3
+ import { L as Link, a as useSiteContext, I as Image, u as usePageContext } from "./index-ZivV_RbX.mjs";
4
4
  import "@mdx-js/react";
5
5
  import { useTranslation } from "react-i18next";
6
6
  import { A as Animation } from "./index-BJRvnR8Q.mjs";
@@ -74,7 +74,7 @@ function normalizePath(path = "") {
74
74
  return path.replace(/^\/+|\/+$/g, "").replace(/\/+/g, "/");
75
75
  }
76
76
  function getLocalizedPath(path, currentLocaleCode, defaultLocaleCode) {
77
- const localePrefix = currentLocaleCode === defaultLocaleCode ? "/" : `/${currentLocaleCode}/`;
77
+ const localePrefix = currentLocaleCode === defaultLocaleCode ? "/" : `/${currentLocaleCode.toLowerCase()}/`;
78
78
  if (path === "/") {
79
79
  return localePrefix;
80
80
  }
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  const jsxRuntime = require("react/jsx-runtime");
3
3
  const react = require("@chakra-ui/react");
4
- const index = require("./index-QPgJfbrC.js");
4
+ const index = require("./index-CNyyTj_C.js");
5
5
  require("@mdx-js/react");
6
6
  const reactI18next = require("react-i18next");
7
7
  const index$2 = require("./index-C6MG_f24.js");
@@ -2,7 +2,7 @@ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
2
  import { useColorModeValue, Box, Text, Flex, Collapse, Button, Stack, Center as Center$1, SimpleGrid, Card, CardBody, CardFooter, CardHeader, Heading, Popover, PopoverTrigger, Portal, PopoverContent, PopoverBody, Accordion, AccordionItem, AccordionButton, AccordionIcon, AccordionPanel, LinkBox, LinkOverlay, IconButton, AbsoluteCenter, Spinner, Alert, AlertIcon, AlertTitle, AlertDescription, useDisclosure, Divider, Circle, List as List$1, ListItem, useToast, VStack, FormControl, FormLabel, InputGroup, InputLeftElement, Input, Textarea, ListIcon, TableContainer, Table as Table$1, Thead, Tr, Th, Tbody, Td, TableCaption, Tabs as Tabs$1, TabList, Tab, TabPanels, TabPanel } from "@chakra-ui/react";
3
3
  import { useTranslation } from "react-i18next";
4
4
  import { useMDXComponents } from "@mdx-js/react";
5
- import { u as usePageContext, I as Image, L as Link, a as useSiteContext } from "./index-ksqN4RPm.mjs";
5
+ import { u as usePageContext, I as Image, L as Link, a as useSiteContext } from "./index-ZivV_RbX.mjs";
6
6
  import "./index-BJRvnR8Q.mjs";
7
7
  import { b as GameCharacteristic, G as GameVolatility } from "./index-CVN8I7r9.mjs";
8
8
  import "react-medium-image-zoom";
@@ -10,7 +10,7 @@ import { useRef, useState, useLayoutEffect, Fragment as Fragment$1, useMemo } fr
10
10
  import { StarIcon, CloseIcon, ViewOffIcon, ViewIcon, EmailIcon, WarningIcon, CheckCircleIcon } from "@chakra-ui/icons";
11
11
  import { a as Heading2, H as Heading1, P as Paragraph, U as Unordered, O as Ordered } from "./index-BEjKnOZA.mjs";
12
12
  import { f as formatDate, b as formatNumber, a as getCurrentMonth, g as getCurrentYear } from "./index-C7z5qqm_.mjs";
13
- import { d as SocialNetworks, L as LinkButton } from "./index-Lln67Kfn.mjs";
13
+ import { d as SocialNetworks, L as LinkButton } from "./index-BUz6iLeg.mjs";
14
14
  import { u as usePrimaryColors } from "./index-CB0JfZMx.mjs";
15
15
  import { a as getSeededRandomComparator, r as randomComparator, g as getCurrencySymbol } from "./index-BeJTy4iY.mjs";
16
16
  import { t } from "i18next";
@@ -3,7 +3,7 @@ const jsxRuntime = require("react/jsx-runtime");
3
3
  const react = require("@chakra-ui/react");
4
4
  const reactI18next = require("react-i18next");
5
5
  const react$2 = require("@mdx-js/react");
6
- const index = require("./index-QPgJfbrC.js");
6
+ const index = require("./index-CNyyTj_C.js");
7
7
  require("./index-C6MG_f24.js");
8
8
  const index$6 = require("./index-B-k9oWE7.js");
9
9
  require("react-medium-image-zoom");
@@ -11,7 +11,7 @@ const react$1 = require("react");
11
11
  const icons = require("@chakra-ui/icons");
12
12
  const index$3 = require("./index-DDg_PkD2.js");
13
13
  const index$1 = require("./index-qR3kVjjs.js");
14
- const index$2 = require("./index-BTpEZIok.js");
14
+ const index$2 = require("./index-CzAt2Bs2.js");
15
15
  const index$4 = require("./index-D15SAjJc.js");
16
16
  const index$5 = require("./index-BfITsKAr.js");
17
17
  const i18next = require("i18next");
@@ -73,7 +73,7 @@ function normalizePath(path = "") {
73
73
  return path.replace(/^\/+|\/+$/g, "").replace(/\/+/g, "/");
74
74
  }
75
75
  function getLocalizedPath(path, currentLocaleCode, defaultLocaleCode) {
76
- const localePrefix = currentLocaleCode === defaultLocaleCode ? "/" : `/${currentLocaleCode}/`;
76
+ const localePrefix = currentLocaleCode === defaultLocaleCode ? "/" : `/${currentLocaleCode.toLowerCase()}/`;
77
77
  if (path === "/") {
78
78
  return localePrefix;
79
79
  }
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
2
2
  import { MDXProvider } from "@mdx-js/react";
3
3
  import "react-i18next";
4
4
  import "@chakra-ui/react";
5
- import { I as Image, L as Link } from "./index-ksqN4RPm.mjs";
5
+ import { I as Image, L as Link } from "./index-ZivV_RbX.mjs";
6
6
  import "./index-BJRvnR8Q.mjs";
7
7
  import "./index-CVN8I7r9.mjs";
8
8
  import "react";
package/dist/index.cjs CHANGED
@@ -1,14 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("./index-B71VkIfX.js");
4
- const index$1 = require("./index-BTpEZIok.js");
3
+ const index = require("./index-RL_4tl8T.js");
4
+ const index$1 = require("./index-CzAt2Bs2.js");
5
5
  const index$2 = require("./index-DDg_PkD2.js");
6
- const index$3 = require("./index-QPgJfbrC.js");
6
+ const index$3 = require("./index-CNyyTj_C.js");
7
7
  const index$4 = require("./index-ma-iV7GU.js");
8
8
  const index$5 = require("./index-D15SAjJc.js");
9
9
  const i18n = require("./i18n/index.cjs");
10
10
  const layout = require("./layout/index.cjs");
11
- const index$6 = require("./index-TxqSZvgf.js");
11
+ const index$6 = require("./index-BFkFqBM7.js");
12
12
  const index$7 = require("./index-B-k9oWE7.js");
13
13
  const index$8 = require("./index-C6MG_f24.js");
14
14
  const index$9 = require("./index-CYr1ct1t.js");
package/dist/index.mjs CHANGED
@@ -1,12 +1,12 @@
1
- import { A, a, b, c, n, o, d, B, e, C, r, q, F, f, g, G, h, i, j, p, H, I, L, N, s, P, S, k, T, l, t, m } from "./index-CEqTLcAR.mjs";
2
- import { C as C2, a as a2, b as b2, L as L2, c as c2, R, S as S2, d as d2 } from "./index-Lln67Kfn.mjs";
1
+ import { A, a, b, c, n, o, d, B, e, C, r, q, F, f, g, G, h, i, j, p, H, I, L, N, s, P, S, k, T, l, t, m } from "./index-N0fjwTCB.mjs";
2
+ import { C as C2, a as a2, b as b2, L as L2, c as c2, R, S as S2, d as d2 } from "./index-BUz6iLeg.mjs";
3
3
  import { H as H2, a as a3, b as b3, O, P as P2, U } from "./index-BEjKnOZA.mjs";
4
- import { I as I2, L as L3, P as P3, S as S3, u, a as a4 } from "./index-ksqN4RPm.mjs";
4
+ import { I as I2, L as L3, P as P3, S as S3, u, a as a4 } from "./index-ZivV_RbX.mjs";
5
5
  import { u as u2 } from "./index-DHURrUMW.mjs";
6
6
  import { u as u3 } from "./index-CB0JfZMx.mjs";
7
7
  import { DEFAULT_LANGUAGE, resources } from "./i18n/index.mjs";
8
8
  import { default as default2 } from "./layout/index.mjs";
9
- import { M } from "./index-FfZIjQy3.mjs";
9
+ import { M } from "./index-s2a55HsU.mjs";
10
10
  import { a as a5, C as C3, b as b4, G as G2, I as I3 } from "./index-CVN8I7r9.mjs";
11
11
  import { A as A2 } from "./index-BJRvnR8Q.mjs";
12
12
  import { b as b5, c as c3, g as g2, a as a6 } from "./index-cQqALZIW.mjs";
@@ -3,12 +3,12 @@ const jsxRuntime = require("react/jsx-runtime");
3
3
  const react = require("@chakra-ui/react");
4
4
  const reactI18next = require("react-i18next");
5
5
  require("@mdx-js/react");
6
- const index$1 = require("../index-QPgJfbrC.js");
6
+ const index$1 = require("../index-CNyyTj_C.js");
7
7
  require("../index-C6MG_f24.js");
8
8
  require("../index-B-k9oWE7.js");
9
9
  require("react-medium-image-zoom");
10
10
  const react$1 = require("react");
11
- const index = require("../index-BTpEZIok.js");
11
+ const index = require("../index-CzAt2Bs2.js");
12
12
  const icons = require("@chakra-ui/icons");
13
13
  require("i18next");
14
14
  require("react-markdown");
@@ -304,7 +304,17 @@ const LocaleSwitcher = ({ currentLocale, locales }) => {
304
304
  ] })
305
305
  }
306
306
  ),
307
- /* @__PURE__ */ jsxRuntime.jsx(react.MenuList, { minW: "fit-content", children: localeMenuItems.map(({ code, name, icon }) => /* @__PURE__ */ jsxRuntime.jsx(react.MenuItem, { as: index$1.Link, to: `/${code}`, icon: /* @__PURE__ */ jsxRuntime.jsx(react.Icon, { as: icon, w: 4, h: 4 }), children: name }, code)) })
307
+ /* @__PURE__ */ jsxRuntime.jsx(react.MenuList, { minW: "fit-content", children: localeMenuItems.map(({ code, name, icon }) => /* @__PURE__ */ jsxRuntime.jsx(
308
+ react.MenuItem,
309
+ {
310
+ as: index$1.Link,
311
+ to: `/${code}`,
312
+ icon: /* @__PURE__ */ jsxRuntime.jsx(react.Icon, { as: icon, w: 4, h: 4 }),
313
+ _hover: { textDecoration: "none" },
314
+ children: name
315
+ },
316
+ code
317
+ )) })
308
318
  ] });
309
319
  };
310
320
  const NavLink = react$1.forwardRef(({ slug, label }, ref) => {
@@ -349,7 +359,7 @@ const NavList$1 = ({ slug, label, children }) => {
349
359
  boxShadow: "xl",
350
360
  bg: background,
351
361
  children: /* @__PURE__ */ jsxRuntime.jsx(react.List, { spacing: 2, p: 0, children: children == null ? void 0 : children.map((child, index2) => {
352
- return /* @__PURE__ */ jsxRuntime.jsx(react.ListItem, { rounded: "md", _hover: { bg: backgroundHover }, children: /* @__PURE__ */ jsxRuntime.jsxs(react.Flex, { as: index$1.Link, to: index$3.buildPath(child.slug, slug), p: 2, role: "group", textDecoration: "none", children: [
362
+ return /* @__PURE__ */ jsxRuntime.jsx(react.ListItem, { rounded: "md", _hover: { bg: backgroundHover }, children: /* @__PURE__ */ jsxRuntime.jsxs(react.Flex, { as: index$1.Link, to: index$3.buildPath(child.slug, slug), p: 2, role: "group", _hover: { textDecoration: "none" }, children: [
353
363
  /* @__PURE__ */ jsxRuntime.jsx(react.Text, { fontWeight: 500, transition: "all .3s ease", _groupHover: { color: "brand.400" }, children: child.label }),
354
364
  /* @__PURE__ */ jsxRuntime.jsx(
355
365
  react.Flex,
@@ -413,7 +423,7 @@ const NavList = ({ slug, label, children, isExpanded, onExpand }) => {
413
423
  borderLeft: 1,
414
424
  borderStyle: "solid",
415
425
  borderColor: react.useColorModeValue("gray.200", "gray.700"),
416
- children: children == null ? void 0 : children.map((child, index2) => /* @__PURE__ */ jsxRuntime.jsx(react.Flex, { as: "li", role: "listitem", children: /* @__PURE__ */ jsxRuntime.jsx(react.Text, { as: index$1.Link, to: index$3.buildPath(child.slug, slug), p: 2, fontSize: "sm", textDecoration: "none", children: child.label }) }, index2))
426
+ children: children == null ? void 0 : children.map((child, index2) => /* @__PURE__ */ jsxRuntime.jsx(react.Flex, { as: "li", role: "listitem", children: /* @__PURE__ */ jsxRuntime.jsx(react.Text, { as: index$1.Link, to: index$3.buildPath(child.slug, slug), p: 2, fontSize: "sm", _hover: { textDecoration: "none" }, children: child.label }) }, index2))
417
427
  }
418
428
  ) })
419
429
  ] });
@@ -2,12 +2,12 @@ import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { Box, Divider, AbsoluteCenter, useColorModeValue, Text, SimpleGrid, Flex, Menu, MenuButton, Button, HStack, Icon, MenuList, MenuItem, Popover, PopoverTrigger, PopoverContent, List, ListItem, Stack, Collapse, useDisclosure, IconButton, Heading } from "@chakra-ui/react";
3
3
  import { useTranslation } from "react-i18next";
4
4
  import "@mdx-js/react";
5
- import { L as Link, a as useSiteContext, u as usePageContext } from "../index-ksqN4RPm.mjs";
5
+ import { L as Link, a as useSiteContext, u as usePageContext } from "../index-ZivV_RbX.mjs";
6
6
  import "../index-BJRvnR8Q.mjs";
7
7
  import "../index-CVN8I7r9.mjs";
8
8
  import "react-medium-image-zoom";
9
9
  import { useMemo, forwardRef, useState, useEffect } from "react";
10
- import { a as Container, c as Logo, d as SocialNetworks, L as LinkButton } from "../index-Lln67Kfn.mjs";
10
+ import { a as Container, c as Logo, d as SocialNetworks, L as LinkButton } from "../index-BUz6iLeg.mjs";
11
11
  import { ChevronDownIcon, ChevronRightIcon, CloseIcon, HamburgerIcon, ChevronUpIcon } from "@chakra-ui/icons";
12
12
  import "i18next";
13
13
  import "react-markdown";
@@ -303,7 +303,17 @@ const LocaleSwitcher = ({ currentLocale, locales }) => {
303
303
  ] })
304
304
  }
305
305
  ),
306
- /* @__PURE__ */ jsx(MenuList, { minW: "fit-content", children: localeMenuItems.map(({ code, name, icon }) => /* @__PURE__ */ jsx(MenuItem, { as: Link, to: `/${code}`, icon: /* @__PURE__ */ jsx(Icon, { as: icon, w: 4, h: 4 }), children: name }, code)) })
306
+ /* @__PURE__ */ jsx(MenuList, { minW: "fit-content", children: localeMenuItems.map(({ code, name, icon }) => /* @__PURE__ */ jsx(
307
+ MenuItem,
308
+ {
309
+ as: Link,
310
+ to: `/${code}`,
311
+ icon: /* @__PURE__ */ jsx(Icon, { as: icon, w: 4, h: 4 }),
312
+ _hover: { textDecoration: "none" },
313
+ children: name
314
+ },
315
+ code
316
+ )) })
307
317
  ] });
308
318
  };
309
319
  const NavLink = forwardRef(({ slug, label }, ref) => {
@@ -348,7 +358,7 @@ const NavList$1 = ({ slug, label, children }) => {
348
358
  boxShadow: "xl",
349
359
  bg: background,
350
360
  children: /* @__PURE__ */ jsx(List, { spacing: 2, p: 0, children: children == null ? void 0 : children.map((child, index) => {
351
- return /* @__PURE__ */ jsx(ListItem, { rounded: "md", _hover: { bg: backgroundHover }, children: /* @__PURE__ */ jsxs(Flex, { as: Link, to: buildPath(child.slug, slug), p: 2, role: "group", textDecoration: "none", children: [
361
+ return /* @__PURE__ */ jsx(ListItem, { rounded: "md", _hover: { bg: backgroundHover }, children: /* @__PURE__ */ jsxs(Flex, { as: Link, to: buildPath(child.slug, slug), p: 2, role: "group", _hover: { textDecoration: "none" }, children: [
352
362
  /* @__PURE__ */ jsx(Text, { fontWeight: 500, transition: "all .3s ease", _groupHover: { color: "brand.400" }, children: child.label }),
353
363
  /* @__PURE__ */ jsx(
354
364
  Flex,
@@ -412,7 +422,7 @@ const NavList = ({ slug, label, children, isExpanded, onExpand }) => {
412
422
  borderLeft: 1,
413
423
  borderStyle: "solid",
414
424
  borderColor: useColorModeValue("gray.200", "gray.700"),
415
- children: children == null ? void 0 : children.map((child, index) => /* @__PURE__ */ jsx(Flex, { as: "li", role: "listitem", children: /* @__PURE__ */ jsx(Text, { as: Link, to: buildPath(child.slug, slug), p: 2, fontSize: "sm", textDecoration: "none", children: child.label }) }, index))
425
+ children: children == null ? void 0 : children.map((child, index) => /* @__PURE__ */ jsx(Flex, { as: "li", role: "listitem", children: /* @__PURE__ */ jsx(Text, { as: Link, to: buildPath(child.slug, slug), p: 2, fontSize: "sm", _hover: { textDecoration: "none" }, children: child.label }) }, index))
416
426
  }
417
427
  ) })
418
428
  ] });
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index = require("../index-TxqSZvgf.js");
4
- const index$1 = require("../index-QPgJfbrC.js");
3
+ const index = require("../index-BFkFqBM7.js");
4
+ const index$1 = require("../index-CNyyTj_C.js");
5
5
  exports.MdxProvider = index.MdxProvider;
6
6
  exports.PageProvider = index$1.PageProvider;
7
7
  exports.SiteProvider = index$1.SiteProvider;
@@ -1,5 +1,5 @@
1
- import { M } from "../index-FfZIjQy3.mjs";
2
- import { P, S, u, a } from "../index-ksqN4RPm.mjs";
1
+ import { M } from "../index-s2a55HsU.mjs";
2
+ import { P, S, u, a } from "../index-ZivV_RbX.mjs";
3
3
  export {
4
4
  M as MdxProvider,
5
5
  P as PageProvider,
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.7.0",
4
+ "version": "5.7.1",
5
5
  "keywords": [
6
6
  "react",
7
7
  "ui",