@lokalise/harmony 2.0.3 → 2.0.4
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/harmony102.cjs +1 -1
- package/dist/harmony102.mjs +1 -1
- package/dist/harmony103.cjs +7 -7
- package/dist/harmony103.mjs +7 -7
- package/dist/harmony105.cjs +2 -2
- package/dist/harmony105.mjs +2 -2
- package/dist/harmony109.cjs +12 -3
- package/dist/harmony109.cjs.map +1 -1
- package/dist/harmony109.mjs +12 -3
- package/dist/harmony109.mjs.map +1 -1
- package/dist/harmony110.cjs +12 -18
- package/dist/harmony110.cjs.map +1 -1
- package/dist/harmony110.mjs +11 -17
- package/dist/harmony110.mjs.map +1 -1
- package/dist/harmony111.cjs +3 -76
- package/dist/harmony111.cjs.map +1 -1
- package/dist/harmony111.mjs +3 -76
- package/dist/harmony111.mjs.map +1 -1
- package/dist/harmony112.cjs +17 -11
- package/dist/harmony112.cjs.map +1 -1
- package/dist/harmony112.mjs +17 -11
- package/dist/harmony112.mjs.map +1 -1
- package/dist/harmony113.cjs +76 -34
- package/dist/harmony113.cjs.map +1 -1
- package/dist/harmony113.mjs +76 -34
- package/dist/harmony113.mjs.map +1 -1
- package/dist/harmony114.cjs +12 -9
- package/dist/harmony114.cjs.map +1 -1
- package/dist/harmony114.mjs +12 -9
- package/dist/harmony114.mjs.map +1 -1
- package/dist/harmony115.cjs +34 -47
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +34 -47
- package/dist/harmony115.mjs.map +1 -1
- package/dist/harmony116.cjs +10 -10
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +9 -9
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +44 -9
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +46 -11
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +6 -9
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +6 -9
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony121.cjs +6 -98
- package/dist/harmony121.cjs.map +1 -1
- package/dist/harmony121.mjs +7 -82
- package/dist/harmony121.mjs.map +1 -1
- package/dist/harmony122.cjs +16 -6
- package/dist/harmony122.cjs.map +1 -1
- package/dist/harmony122.mjs +17 -7
- package/dist/harmony122.mjs.map +1 -1
- package/dist/harmony123.cjs +7 -16
- package/dist/harmony123.cjs.map +1 -1
- package/dist/harmony123.mjs +7 -16
- package/dist/harmony123.mjs.map +1 -1
- package/dist/harmony124.cjs +3 -3
- package/dist/harmony124.cjs.map +1 -1
- package/dist/harmony124.mjs +3 -3
- package/dist/harmony124.mjs.map +1 -1
- package/dist/harmony125.cjs +14 -7
- package/dist/harmony125.cjs.map +1 -1
- package/dist/harmony125.mjs +14 -7
- package/dist/harmony125.mjs.map +1 -1
- package/dist/harmony126.cjs +20 -15
- package/dist/harmony126.cjs.map +1 -1
- package/dist/harmony126.mjs +20 -15
- package/dist/harmony126.mjs.map +1 -1
- package/dist/harmony127.cjs +1 -1
- package/dist/harmony127.mjs +1 -1
- package/dist/harmony129.cjs +99 -20
- package/dist/harmony129.cjs.map +1 -1
- package/dist/harmony129.mjs +82 -20
- package/dist/harmony129.mjs.map +1 -1
- package/dist/harmony131.cjs +2 -2
- package/dist/harmony131.mjs +2 -2
- package/dist/harmony132.cjs +2 -2
- package/dist/harmony132.mjs +2 -2
- package/dist/harmony133.cjs +2 -2
- package/dist/harmony133.mjs +2 -2
- package/dist/harmony135.cjs +2 -2
- package/dist/harmony135.mjs +2 -2
- package/dist/harmony136.cjs +2 -2
- package/dist/harmony136.mjs +2 -2
- package/dist/harmony137.cjs +1 -1
- package/dist/harmony137.mjs +1 -1
- package/dist/harmony138.cjs +2 -2
- package/dist/harmony138.mjs +2 -2
- package/dist/harmony139.cjs +1 -1
- package/dist/harmony139.mjs +1 -1
- package/dist/harmony140.cjs +2 -2
- package/dist/harmony140.mjs +2 -2
- package/dist/harmony145.cjs +4 -6
- package/dist/harmony145.cjs.map +1 -1
- package/dist/harmony145.mjs +3 -5
- package/dist/harmony145.mjs.map +1 -1
- package/dist/harmony146.cjs +4 -6
- package/dist/harmony146.cjs.map +1 -1
- package/dist/harmony146.mjs +3 -5
- package/dist/harmony146.mjs.map +1 -1
- package/dist/harmony147.cjs +3 -10
- package/dist/harmony147.cjs.map +1 -1
- package/dist/harmony147.mjs +3 -10
- package/dist/harmony147.mjs.map +1 -1
- package/dist/harmony148.cjs +14 -3
- package/dist/harmony148.cjs.map +1 -1
- package/dist/harmony148.mjs +14 -3
- package/dist/harmony148.mjs.map +1 -1
- package/dist/harmony149.cjs +14 -3
- package/dist/harmony149.cjs.map +1 -1
- package/dist/harmony149.mjs +14 -3
- package/dist/harmony149.mjs.map +1 -1
- package/dist/harmony150.cjs +3 -3
- package/dist/harmony150.cjs.map +1 -1
- package/dist/harmony150.mjs +3 -3
- package/dist/harmony150.mjs.map +1 -1
- package/dist/harmony151.cjs +6 -15
- package/dist/harmony151.cjs.map +1 -1
- package/dist/harmony151.mjs +5 -14
- package/dist/harmony151.mjs.map +1 -1
- package/dist/harmony152.cjs +6 -15
- package/dist/harmony152.cjs.map +1 -1
- package/dist/harmony152.mjs +5 -14
- package/dist/harmony152.mjs.map +1 -1
- package/dist/harmony153.cjs +10 -3
- package/dist/harmony153.cjs.map +1 -1
- package/dist/harmony153.mjs +10 -3
- package/dist/harmony153.mjs.map +1 -1
- package/dist/harmony161.cjs +31 -95
- package/dist/harmony161.cjs.map +1 -1
- package/dist/harmony161.mjs +31 -95
- package/dist/harmony161.mjs.map +1 -1
- package/dist/harmony162.cjs +94 -11
- package/dist/harmony162.cjs.map +1 -1
- package/dist/harmony162.mjs +94 -11
- package/dist/harmony162.mjs.map +1 -1
- package/dist/harmony163.cjs +12 -13
- package/dist/harmony163.cjs.map +1 -1
- package/dist/harmony163.mjs +12 -13
- package/dist/harmony163.mjs.map +1 -1
- package/dist/harmony164.cjs +13 -35
- package/dist/harmony164.cjs.map +1 -1
- package/dist/harmony164.mjs +13 -35
- package/dist/harmony164.mjs.map +1 -1
- package/dist/harmony165.cjs +32 -24
- package/dist/harmony165.cjs.map +1 -1
- package/dist/harmony165.mjs +32 -24
- package/dist/harmony165.mjs.map +1 -1
- package/dist/harmony166.cjs +27 -31
- package/dist/harmony166.cjs.map +1 -1
- package/dist/harmony166.mjs +27 -31
- package/dist/harmony166.mjs.map +1 -1
- package/dist/harmony167.cjs +1 -1
- package/dist/harmony167.mjs +1 -1
- package/dist/harmony168.cjs +1 -1
- package/dist/harmony168.mjs +1 -1
- package/dist/harmony169.cjs +2 -2
- package/dist/harmony169.mjs +2 -2
- package/dist/harmony170.cjs +4 -11
- package/dist/harmony170.cjs.map +1 -1
- package/dist/harmony170.mjs +4 -11
- package/dist/harmony170.mjs.map +1 -1
- package/dist/harmony171.cjs +10 -15
- package/dist/harmony171.cjs.map +1 -1
- package/dist/harmony171.mjs +10 -15
- package/dist/harmony171.mjs.map +1 -1
- package/dist/harmony172.cjs +13 -18
- package/dist/harmony172.cjs.map +1 -1
- package/dist/harmony172.mjs +13 -18
- package/dist/harmony172.mjs.map +1 -1
- package/dist/harmony173.cjs +19 -10
- package/dist/harmony173.cjs.map +1 -1
- package/dist/harmony173.mjs +19 -10
- package/dist/harmony173.mjs.map +1 -1
- package/dist/harmony174.cjs +12 -4
- package/dist/harmony174.cjs.map +1 -1
- package/dist/harmony174.mjs +12 -4
- package/dist/harmony174.mjs.map +1 -1
- package/dist/harmony20.cjs +1 -1
- package/dist/harmony20.mjs +1 -1
- package/dist/harmony32.cjs +1 -1
- package/dist/harmony32.mjs +1 -1
- package/dist/harmony33.cjs +1 -1
- package/dist/harmony33.mjs +1 -1
- package/dist/harmony34.cjs +1 -1
- package/dist/harmony34.mjs +1 -1
- package/dist/harmony39.cjs +1 -1
- package/dist/harmony39.mjs +1 -1
- package/dist/harmony40.cjs +1 -1
- package/dist/harmony40.mjs +1 -1
- package/dist/harmony41.cjs +1 -1
- package/dist/harmony41.mjs +1 -1
- package/dist/harmony42.cjs +2 -2
- package/dist/harmony42.mjs +2 -2
- package/dist/harmony43.cjs +2 -2
- package/dist/harmony43.mjs +2 -2
- package/dist/harmony44.cjs +1 -1
- package/dist/harmony44.mjs +1 -1
- package/dist/harmony62.cjs.map +1 -1
- package/dist/harmony62.mjs.map +1 -1
- package/dist/harmony63.cjs.map +1 -1
- package/dist/harmony63.mjs.map +1 -1
- package/dist/harmony64.cjs.map +1 -1
- package/dist/harmony64.mjs.map +1 -1
- package/dist/harmony65.cjs.map +1 -1
- package/dist/harmony65.mjs.map +1 -1
- package/dist/harmony66.cjs.map +1 -1
- package/dist/harmony66.mjs.map +1 -1
- package/dist/harmony67.cjs.map +1 -1
- package/dist/harmony67.mjs.map +1 -1
- package/dist/harmony68.cjs.map +1 -1
- package/dist/harmony68.mjs.map +1 -1
- package/dist/harmony69.cjs.map +1 -1
- package/dist/harmony69.mjs.map +1 -1
- package/dist/harmony70.cjs.map +1 -1
- package/dist/harmony70.mjs.map +1 -1
- package/dist/harmony71.cjs.map +1 -1
- package/dist/harmony71.mjs.map +1 -1
- package/dist/harmony72.cjs.map +1 -1
- package/dist/harmony72.mjs.map +1 -1
- package/dist/harmony73.cjs.map +1 -1
- package/dist/harmony73.mjs.map +1 -1
- package/dist/harmony74.cjs.map +1 -1
- package/dist/harmony74.mjs.map +1 -1
- package/dist/harmony75.cjs.map +1 -1
- package/dist/harmony75.mjs.map +1 -1
- package/dist/harmony94.cjs +1 -1
- package/dist/harmony94.mjs +1 -1
- package/dist/types/src/features/auth/frontend/hooks/useGetPromotedClassicSessionJwtQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useGetProjectPermissionMetaQuery.d.ts +1 -26
- package/dist/types/src/features/publicApi/hooks/useGetScoreQuery.d.ts +1 -11
- package/dist/types/src/features/publicApi/hooks/useGetTeamUsersQuery.d.ts +1 -11
- package/dist/types/src/features/publicApi/hooks/useGetUserTokenQuery.d.ts +1 -4
- package/dist/types/src/features/publicApi/hooks/useListContributorsQuery.d.ts +1 -25
- package/dist/types/src/features/publicApi/hooks/useListPermissionTemplates.d.ts +1 -13
- package/dist/types/src/features/publicApi/hooks/useListProjectLanguagesQuery.d.ts +1 -13
- package/dist/types/src/features/publicApi/hooks/useListProjectsQuery.d.ts +1 -65
- package/dist/types/src/features/publicApi/hooks/useListTeamUsersQuery.d.ts +1 -11
- package/dist/types/src/features/publicApi/hooks/useListTeamsQuery.d.ts +1 -14
- package/dist/types/src/features/publicApi/hooks/useRetrieveContributorQuery.d.ts +1 -25
- package/dist/types/src/features/publicApi/hooks/useRetrieveProjectQuery.d.ts +1 -63
- package/dist/types/src/features/publicApi/hooks/useRetrieveTeamQuery.d.ts +1 -33
- package/dist/types/src/features/publicApi/hooks/useRetrieveUserPermissions.d.ts +1 -8
- package/dist/types/src/utils/types/apiQueryOverrides.d.ts +1 -1
- package/package.json +1 -1
package/dist/harmony102.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const React = require("react");
|
|
5
|
-
const SidebarContext = require("./
|
|
5
|
+
const SidebarContext = require("./harmony111.cjs");
|
|
6
6
|
const SidebarProvider = ({
|
|
7
7
|
data,
|
|
8
8
|
jwt,
|
package/dist/harmony102.mjs
CHANGED
package/dist/harmony103.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
-
const IconLink = require("./
|
|
5
|
-
const ProfileMenu = require("./
|
|
6
|
-
const useSidebar = require("./
|
|
4
|
+
const IconLink = require("./harmony112.cjs");
|
|
5
|
+
const ProfileMenu = require("./harmony113.cjs");
|
|
6
|
+
const useSidebar = require("./harmony114.cjs");
|
|
7
7
|
const louis = require("@lokalise/louis");
|
|
8
|
-
const permissions = require("./
|
|
9
|
-
const Avatar = require("./
|
|
10
|
-
const HelpMenu = require("./
|
|
11
|
-
const SidebarContent_module = require("./
|
|
8
|
+
const permissions = require("./harmony115.cjs");
|
|
9
|
+
const Avatar = require("./harmony116.cjs");
|
|
10
|
+
const HelpMenu = require("./harmony117.cjs");
|
|
11
|
+
const SidebarContent_module = require("./harmony118.cjs");
|
|
12
12
|
const SidebarContent = ({ widgetsConfig, children, ...navProps }) => {
|
|
13
13
|
const sidebarContextProps = useSidebar.useSidebar();
|
|
14
14
|
const { jwt } = sidebarContextProps;
|
package/dist/harmony103.mjs
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { IconLink } from "./
|
|
3
|
-
import { ProfileMenu } from "./
|
|
4
|
-
import { useSidebar } from "./
|
|
2
|
+
import { IconLink } from "./harmony112.mjs";
|
|
3
|
+
import { ProfileMenu } from "./harmony113.mjs";
|
|
4
|
+
import { useSidebar } from "./harmony114.mjs";
|
|
5
5
|
import { Skeleton, Rectangle, ProjectIcon, ShoppingBagIcon, StyleguideIcon, ChartLineIcon } from "@lokalise/louis";
|
|
6
|
-
import { canAccessStyleGuide, canAccessReporting } from "./
|
|
7
|
-
import { Avatar } from "./
|
|
8
|
-
import { HelpMenu } from "./
|
|
9
|
-
import styles from "./
|
|
6
|
+
import { canAccessStyleGuide, canAccessReporting } from "./harmony115.mjs";
|
|
7
|
+
import { Avatar } from "./harmony116.mjs";
|
|
8
|
+
import { HelpMenu } from "./harmony117.mjs";
|
|
9
|
+
import styles from "./harmony118.mjs";
|
|
10
10
|
const SidebarContent = ({ widgetsConfig, children, ...navProps }) => {
|
|
11
11
|
const sidebarContextProps = useSidebar();
|
|
12
12
|
const { jwt } = sidebarContextProps;
|
package/dist/harmony105.cjs
CHANGED
|
@@ -4,8 +4,8 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const louis = require("@lokalise/louis");
|
|
5
5
|
const reactTable = require("@tanstack/react-table");
|
|
6
6
|
const clsx = require("./harmony92.cjs");
|
|
7
|
-
const SortingIcon = require("./
|
|
8
|
-
const TableHeaderCell_module = require("./
|
|
7
|
+
const SortingIcon = require("./harmony109.cjs");
|
|
8
|
+
const TableHeaderCell_module = require("./harmony110.cjs");
|
|
9
9
|
const TableHeaderCell = ({
|
|
10
10
|
header,
|
|
11
11
|
align = "left",
|
package/dist/harmony105.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { TableHeaderCell as TableHeaderCell$1 } from "@lokalise/louis";
|
|
3
3
|
import { flexRender } from "@tanstack/react-table";
|
|
4
4
|
import { clsx } from "./harmony92.mjs";
|
|
5
|
-
import { SortingIcon } from "./
|
|
6
|
-
import styles from "./
|
|
5
|
+
import { SortingIcon } from "./harmony109.mjs";
|
|
6
|
+
import styles from "./harmony110.mjs";
|
|
7
7
|
const TableHeaderCell = ({
|
|
8
8
|
header,
|
|
9
9
|
align = "left",
|
package/dist/harmony109.cjs
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const louis = require("@lokalise/louis");
|
|
5
|
+
const SortingIcon = ({ direction }) => {
|
|
6
|
+
if (direction === "asc") {
|
|
7
|
+
return /* @__PURE__ */ jsxRuntime.jsx(louis.SortAscendingIcon, { ariaLabel: "ascending sorting" });
|
|
8
|
+
}
|
|
9
|
+
if (direction === "desc") {
|
|
10
|
+
return /* @__PURE__ */ jsxRuntime.jsx(louis.SortDescendingIcon, { ariaLabel: "descending sorting" });
|
|
11
|
+
}
|
|
12
|
+
return /* @__PURE__ */ jsxRuntime.jsx(louis.SortIcon, { ariaLabel: "sorting" });
|
|
13
|
+
};
|
|
14
|
+
exports.SortingIcon = SortingIcon;
|
|
6
15
|
//# sourceMappingURL=harmony109.cjs.map
|
package/dist/harmony109.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony109.cjs","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"harmony109.cjs","sources":["../src/components/Table/components/SortingIcon.tsx"],"sourcesContent":["import { SortAscendingIcon, SortDescendingIcon, SortIcon } from '@lokalise/louis'\nimport type { SortDirection } from '@tanstack/react-table'\n\ntype SortingIconProps = {\n\tdirection: SortDirection | false\n}\n\nexport const SortingIcon = ({ direction }: SortingIconProps) => {\n\tif (direction === 'asc') {\n\t\treturn <SortAscendingIcon ariaLabel=\"ascending sorting\" />\n\t}\n\tif (direction === 'desc') {\n\t\treturn <SortDescendingIcon ariaLabel=\"descending sorting\" />\n\t}\n\treturn <SortIcon ariaLabel=\"sorting\" />\n}\n"],"names":["jsx","SortAscendingIcon","SortDescendingIcon","SortIcon"],"mappings":";;;;AAOO,MAAM,cAAc,CAAC,EAAE,gBAAkC;AAC/D,MAAI,cAAc,OAAO;AACjB,WAAAA,2BAAA,IAACC,MAAkB,mBAAA,EAAA,WAAU,oBAAoB,CAAA;AAAA,EAAA;AAEzD,MAAI,cAAc,QAAQ;AAClB,WAAAD,2BAAA,IAACE,MAAmB,oBAAA,EAAA,WAAU,qBAAqB,CAAA;AAAA,EAAA;AAEpD,SAAAF,2BAAA,IAACG,MAAS,UAAA,EAAA,WAAU,UAAU,CAAA;AACtC;;"}
|
package/dist/harmony109.mjs
CHANGED
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { SortAscendingIcon, SortDescendingIcon, SortIcon } from "@lokalise/louis";
|
|
3
|
+
const SortingIcon = ({ direction }) => {
|
|
4
|
+
if (direction === "asc") {
|
|
5
|
+
return /* @__PURE__ */ jsx(SortAscendingIcon, { ariaLabel: "ascending sorting" });
|
|
6
|
+
}
|
|
7
|
+
if (direction === "desc") {
|
|
8
|
+
return /* @__PURE__ */ jsx(SortDescendingIcon, { ariaLabel: "descending sorting" });
|
|
9
|
+
}
|
|
10
|
+
return /* @__PURE__ */ jsx(SortIcon, { ariaLabel: "sorting" });
|
|
11
|
+
};
|
|
3
12
|
export {
|
|
4
|
-
|
|
13
|
+
SortingIcon
|
|
5
14
|
};
|
|
6
15
|
//# sourceMappingURL=harmony109.mjs.map
|
package/dist/harmony109.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony109.mjs","sources":["../src/components/
|
|
1
|
+
{"version":3,"file":"harmony109.mjs","sources":["../src/components/Table/components/SortingIcon.tsx"],"sourcesContent":["import { SortAscendingIcon, SortDescendingIcon, SortIcon } from '@lokalise/louis'\nimport type { SortDirection } from '@tanstack/react-table'\n\ntype SortingIconProps = {\n\tdirection: SortDirection | false\n}\n\nexport const SortingIcon = ({ direction }: SortingIconProps) => {\n\tif (direction === 'asc') {\n\t\treturn <SortAscendingIcon ariaLabel=\"ascending sorting\" />\n\t}\n\tif (direction === 'desc') {\n\t\treturn <SortDescendingIcon ariaLabel=\"descending sorting\" />\n\t}\n\treturn <SortIcon ariaLabel=\"sorting\" />\n}\n"],"names":[],"mappings":";;AAOO,MAAM,cAAc,CAAC,EAAE,gBAAkC;AAC/D,MAAI,cAAc,OAAO;AACjB,WAAA,oBAAC,mBAAkB,EAAA,WAAU,oBAAoB,CAAA;AAAA,EAAA;AAEzD,MAAI,cAAc,QAAQ;AAClB,WAAA,oBAAC,oBAAmB,EAAA,WAAU,qBAAqB,CAAA;AAAA,EAAA;AAEpD,SAAA,oBAAC,UAAS,EAAA,WAAU,UAAU,CAAA;AACtC;"}
|
package/dist/harmony110.cjs
CHANGED
|
@@ -1,21 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
{
|
|
11
|
-
"aria-label": label,
|
|
12
|
-
className: clsx.clsx(IconLink_module.default.link, {
|
|
13
|
-
[IconLink_module.default.active]: typeof window !== "undefined" && window.location.pathname.startsWith(to)
|
|
14
|
-
}),
|
|
15
|
-
href: to,
|
|
16
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: "25px" })
|
|
17
|
-
}
|
|
18
|
-
) });
|
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
+
const headerSortButton = "_headerSortButton_b5tlh_1";
|
|
4
|
+
const centeredCell = "_centeredCell_b5tlh_15";
|
|
5
|
+
const rightAlignedCell = "_rightAlignedCell_b5tlh_19";
|
|
6
|
+
const styles = {
|
|
7
|
+
headerSortButton,
|
|
8
|
+
centeredCell,
|
|
9
|
+
rightAlignedCell
|
|
19
10
|
};
|
|
20
|
-
exports.
|
|
11
|
+
exports.centeredCell = centeredCell;
|
|
12
|
+
exports.default = styles;
|
|
13
|
+
exports.headerSortButton = headerSortButton;
|
|
14
|
+
exports.rightAlignedCell = rightAlignedCell;
|
|
21
15
|
//# sourceMappingURL=harmony110.cjs.map
|
package/dist/harmony110.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony110.cjs","sources":[
|
|
1
|
+
{"version":3,"file":"harmony110.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
package/dist/harmony110.mjs
CHANGED
|
@@ -1,21 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
{
|
|
9
|
-
"aria-label": label,
|
|
10
|
-
className: clsx(styles.link, {
|
|
11
|
-
[styles.active]: typeof window !== "undefined" && window.location.pathname.startsWith(to)
|
|
12
|
-
}),
|
|
13
|
-
href: to,
|
|
14
|
-
children: /* @__PURE__ */ jsx(Icon, { size: "25px" })
|
|
15
|
-
}
|
|
16
|
-
) });
|
|
1
|
+
const headerSortButton = "_headerSortButton_b5tlh_1";
|
|
2
|
+
const centeredCell = "_centeredCell_b5tlh_15";
|
|
3
|
+
const rightAlignedCell = "_rightAlignedCell_b5tlh_19";
|
|
4
|
+
const styles = {
|
|
5
|
+
headerSortButton,
|
|
6
|
+
centeredCell,
|
|
7
|
+
rightAlignedCell
|
|
17
8
|
};
|
|
18
9
|
export {
|
|
19
|
-
|
|
10
|
+
centeredCell,
|
|
11
|
+
styles as default,
|
|
12
|
+
headerSortButton,
|
|
13
|
+
rightAlignedCell
|
|
20
14
|
};
|
|
21
15
|
//# sourceMappingURL=harmony110.mjs.map
|
package/dist/harmony110.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony110.mjs","sources":[
|
|
1
|
+
{"version":3,"file":"harmony110.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/harmony111.cjs
CHANGED
|
@@ -1,79 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
const CreateNewTeamPlaceholder = require("./harmony133.cjs");
|
|
7
|
-
const DarkModeToggle = require("./harmony134.cjs");
|
|
8
|
-
const ProfileSettingsMenuItem = require("./harmony135.cjs");
|
|
9
|
-
const ProviderMenuItem = require("./harmony136.cjs");
|
|
10
|
-
const TeamMenuItem = require("./harmony137.cjs");
|
|
11
|
-
const TeamSettingsMenuItem = require("./harmony138.cjs");
|
|
12
|
-
const TeamSwitch = require("./harmony139.cjs");
|
|
13
|
-
const UpgradeMenuItem = require("./harmony140.cjs");
|
|
14
|
-
const useSidebar = require("./harmony112.cjs");
|
|
15
|
-
const louis = require("@lokalise/louis");
|
|
16
|
-
const permissions = require("./harmony113.cjs");
|
|
17
|
-
const clsx = require("./harmony92.cjs");
|
|
18
|
-
const ProfileMenu_module = require("./harmony141.cjs");
|
|
19
|
-
const UpgradeIcon = require("./harmony142.cjs");
|
|
20
|
-
const ProfileMenu = ({ config }) => {
|
|
21
|
-
const {
|
|
22
|
-
jwt,
|
|
23
|
-
data: { currentTeam }
|
|
24
|
-
} = useSidebar.useSidebar();
|
|
25
|
-
const {
|
|
26
|
-
darkModeToggle,
|
|
27
|
-
teamSwitch,
|
|
28
|
-
createTeam,
|
|
29
|
-
createTeamPlaceholder,
|
|
30
|
-
upgradeMenuItem,
|
|
31
|
-
profileSettings
|
|
32
|
-
} = config;
|
|
33
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
34
|
-
louis.Menu,
|
|
35
|
-
{
|
|
36
|
-
menuButton: () => {
|
|
37
|
-
var _a;
|
|
38
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("button", { className: ProfileMenu_module.default.profileButton, "aria-label": "Profile menu", type: "button", children: [
|
|
39
|
-
((_a = currentTeam.result) == null ? void 0 : _a.logoUrl) ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
40
|
-
"img",
|
|
41
|
-
{
|
|
42
|
-
src: currentTeam.result.logoUrl,
|
|
43
|
-
className: clsx.clsx(ProfileMenu_module.default.profileImage, {
|
|
44
|
-
[ProfileMenu_module.default.profileImageHighlight]: permissions.canUpgradePlan(jwt)
|
|
45
|
-
}),
|
|
46
|
-
alt: "Team Logo"
|
|
47
|
-
}
|
|
48
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
49
|
-
"div",
|
|
50
|
-
{
|
|
51
|
-
className: clsx.clsx(ProfileMenu_module.default.userIconWrapper, "flex-row", "align-center", "items-center", {
|
|
52
|
-
[ProfileMenu_module.default.profileImageHighlight]: permissions.canUpgradePlan(jwt)
|
|
53
|
-
}),
|
|
54
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(louis.UserIcon, { size: "25px" })
|
|
55
|
-
}
|
|
56
|
-
),
|
|
57
|
-
permissions.canUpgradePlan(jwt) && /* @__PURE__ */ jsxRuntime.jsx(UpgradeIcon.UpgradeIcon, { className: ProfileMenu_module.default.profileImageUpgradeIcon })
|
|
58
|
-
] });
|
|
59
|
-
},
|
|
60
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(louis.MenuList, { placement: "right-end", className: ProfileMenu_module.default.menuContainer, children: [
|
|
61
|
-
teamSwitch && /* @__PURE__ */ jsxRuntime.jsx(TeamSwitch.TeamSwitch, { onSwitchTeam: teamSwitch.onSwitchTeam }),
|
|
62
|
-
createTeam && /* @__PURE__ */ jsxRuntime.jsx(CreateNewTeam.CreateNewTeam, { onCreateTeam: createTeam.onCreateTeam }),
|
|
63
|
-
createTeamPlaceholder && /* @__PURE__ */ jsxRuntime.jsx(CreateNewTeamPlaceholder.CreateNewTeamPlaceholder, { onClick: createTeamPlaceholder.onClick }),
|
|
64
|
-
/* @__PURE__ */ jsxRuntime.jsx(TeamMenuItem.TeamMenuItem, {}),
|
|
65
|
-
upgradeMenuItem && /* @__PURE__ */ jsxRuntime.jsx(UpgradeMenuItem.UpgradeMenuItem, { href: upgradeMenuItem.href }),
|
|
66
|
-
/* @__PURE__ */ jsxRuntime.jsx(BillingMenuItem.BillingMenuItem, {}),
|
|
67
|
-
/* @__PURE__ */ jsxRuntime.jsx(TeamSettingsMenuItem.TeamSettingsMenuItem, {}),
|
|
68
|
-
/* @__PURE__ */ jsxRuntime.jsx(ProviderMenuItem.ProviderMenuItem, {}),
|
|
69
|
-
/* @__PURE__ */ jsxRuntime.jsx(louis.MenuDivider, {}),
|
|
70
|
-
/* @__PURE__ */ jsxRuntime.jsx(ProfileSettingsMenuItem.ProfileSettingsMenuItem, { ...profileSettings ?? {} }),
|
|
71
|
-
darkModeToggle && /* @__PURE__ */ jsxRuntime.jsx(DarkModeToggle.DarkModeToggle, { ...darkModeToggle }),
|
|
72
|
-
(permissions.canAccessProfileSettings(jwt) || darkModeToggle) && /* @__PURE__ */ jsxRuntime.jsx(louis.MenuDivider, {}),
|
|
73
|
-
/* @__PURE__ */ jsxRuntime.jsx(louis.MenuItem, { href: "/login?action=logout", children: "Logout" })
|
|
74
|
-
] })
|
|
75
|
-
}
|
|
76
|
-
);
|
|
77
|
-
};
|
|
78
|
-
exports.ProfileMenu = ProfileMenu;
|
|
3
|
+
const React = require("react");
|
|
4
|
+
const SidebarContext = React.createContext({});
|
|
5
|
+
exports.SidebarContext = SidebarContext;
|
|
79
6
|
//# sourceMappingURL=harmony111.cjs.map
|
package/dist/harmony111.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony111.cjs","sources":["../src/components/Sidebar/
|
|
1
|
+
{"version":3,"file":"harmony111.cjs","sources":["../src/components/Sidebar/SidebarContext.ts"],"sourcesContent":["import { createContext, useContext } from 'react'\nimport type { SidebarContextProps } from './types'\n\nexport const SidebarContext = createContext({} as SidebarContextProps)\n\nexport const useSidebar = () => {\n\tconst context = useContext(SidebarContext)\n\n\tif (!context) {\n\t\tthrow new Error(\n\t\t\t'You are using useSidebar hook outside its context. Please review your code implementation',\n\t\t)\n\t}\n\n\treturn context\n}\n"],"names":["createContext"],"mappings":";;;AAGa,MAAA,iBAAiBA,MAAc,cAAA,CAAyB,CAAA;;"}
|
package/dist/harmony111.mjs
CHANGED
|
@@ -1,79 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { CreateNewTeam } from "./harmony132.mjs";
|
|
4
|
-
import { CreateNewTeamPlaceholder } from "./harmony133.mjs";
|
|
5
|
-
import { DarkModeToggle } from "./harmony134.mjs";
|
|
6
|
-
import { ProfileSettingsMenuItem } from "./harmony135.mjs";
|
|
7
|
-
import { ProviderMenuItem } from "./harmony136.mjs";
|
|
8
|
-
import { TeamMenuItem } from "./harmony137.mjs";
|
|
9
|
-
import { TeamSettingsMenuItem } from "./harmony138.mjs";
|
|
10
|
-
import { TeamSwitch } from "./harmony139.mjs";
|
|
11
|
-
import { UpgradeMenuItem } from "./harmony140.mjs";
|
|
12
|
-
import { useSidebar } from "./harmony112.mjs";
|
|
13
|
-
import { Menu, MenuList, MenuDivider, MenuItem, UserIcon } from "@lokalise/louis";
|
|
14
|
-
import { canAccessProfileSettings, canUpgradePlan } from "./harmony113.mjs";
|
|
15
|
-
import { clsx } from "./harmony92.mjs";
|
|
16
|
-
import styles from "./harmony141.mjs";
|
|
17
|
-
import { UpgradeIcon } from "./harmony142.mjs";
|
|
18
|
-
const ProfileMenu = ({ config }) => {
|
|
19
|
-
const {
|
|
20
|
-
jwt,
|
|
21
|
-
data: { currentTeam }
|
|
22
|
-
} = useSidebar();
|
|
23
|
-
const {
|
|
24
|
-
darkModeToggle,
|
|
25
|
-
teamSwitch,
|
|
26
|
-
createTeam,
|
|
27
|
-
createTeamPlaceholder,
|
|
28
|
-
upgradeMenuItem,
|
|
29
|
-
profileSettings
|
|
30
|
-
} = config;
|
|
31
|
-
return /* @__PURE__ */ jsx(
|
|
32
|
-
Menu,
|
|
33
|
-
{
|
|
34
|
-
menuButton: () => {
|
|
35
|
-
var _a;
|
|
36
|
-
return /* @__PURE__ */ jsxs("button", { className: styles.profileButton, "aria-label": "Profile menu", type: "button", children: [
|
|
37
|
-
((_a = currentTeam.result) == null ? void 0 : _a.logoUrl) ? /* @__PURE__ */ jsx(
|
|
38
|
-
"img",
|
|
39
|
-
{
|
|
40
|
-
src: currentTeam.result.logoUrl,
|
|
41
|
-
className: clsx(styles.profileImage, {
|
|
42
|
-
[styles.profileImageHighlight]: canUpgradePlan(jwt)
|
|
43
|
-
}),
|
|
44
|
-
alt: "Team Logo"
|
|
45
|
-
}
|
|
46
|
-
) : /* @__PURE__ */ jsx(
|
|
47
|
-
"div",
|
|
48
|
-
{
|
|
49
|
-
className: clsx(styles.userIconWrapper, "flex-row", "align-center", "items-center", {
|
|
50
|
-
[styles.profileImageHighlight]: canUpgradePlan(jwt)
|
|
51
|
-
}),
|
|
52
|
-
children: /* @__PURE__ */ jsx(UserIcon, { size: "25px" })
|
|
53
|
-
}
|
|
54
|
-
),
|
|
55
|
-
canUpgradePlan(jwt) && /* @__PURE__ */ jsx(UpgradeIcon, { className: styles.profileImageUpgradeIcon })
|
|
56
|
-
] });
|
|
57
|
-
},
|
|
58
|
-
children: /* @__PURE__ */ jsxs(MenuList, { placement: "right-end", className: styles.menuContainer, children: [
|
|
59
|
-
teamSwitch && /* @__PURE__ */ jsx(TeamSwitch, { onSwitchTeam: teamSwitch.onSwitchTeam }),
|
|
60
|
-
createTeam && /* @__PURE__ */ jsx(CreateNewTeam, { onCreateTeam: createTeam.onCreateTeam }),
|
|
61
|
-
createTeamPlaceholder && /* @__PURE__ */ jsx(CreateNewTeamPlaceholder, { onClick: createTeamPlaceholder.onClick }),
|
|
62
|
-
/* @__PURE__ */ jsx(TeamMenuItem, {}),
|
|
63
|
-
upgradeMenuItem && /* @__PURE__ */ jsx(UpgradeMenuItem, { href: upgradeMenuItem.href }),
|
|
64
|
-
/* @__PURE__ */ jsx(BillingMenuItem, {}),
|
|
65
|
-
/* @__PURE__ */ jsx(TeamSettingsMenuItem, {}),
|
|
66
|
-
/* @__PURE__ */ jsx(ProviderMenuItem, {}),
|
|
67
|
-
/* @__PURE__ */ jsx(MenuDivider, {}),
|
|
68
|
-
/* @__PURE__ */ jsx(ProfileSettingsMenuItem, { ...profileSettings ?? {} }),
|
|
69
|
-
darkModeToggle && /* @__PURE__ */ jsx(DarkModeToggle, { ...darkModeToggle }),
|
|
70
|
-
(canAccessProfileSettings(jwt) || darkModeToggle) && /* @__PURE__ */ jsx(MenuDivider, {}),
|
|
71
|
-
/* @__PURE__ */ jsx(MenuItem, { href: "/login?action=logout", children: "Logout" })
|
|
72
|
-
] })
|
|
73
|
-
}
|
|
74
|
-
);
|
|
75
|
-
};
|
|
1
|
+
import { createContext } from "react";
|
|
2
|
+
const SidebarContext = createContext({});
|
|
76
3
|
export {
|
|
77
|
-
|
|
4
|
+
SidebarContext
|
|
78
5
|
};
|
|
79
6
|
//# sourceMappingURL=harmony111.mjs.map
|
package/dist/harmony111.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony111.mjs","sources":["../src/components/Sidebar/
|
|
1
|
+
{"version":3,"file":"harmony111.mjs","sources":["../src/components/Sidebar/SidebarContext.ts"],"sourcesContent":["import { createContext, useContext } from 'react'\nimport type { SidebarContextProps } from './types'\n\nexport const SidebarContext = createContext({} as SidebarContextProps)\n\nexport const useSidebar = () => {\n\tconst context = useContext(SidebarContext)\n\n\tif (!context) {\n\t\tthrow new Error(\n\t\t\t'You are using useSidebar hook outside its context. Please review your code implementation',\n\t\t)\n\t}\n\n\treturn context\n}\n"],"names":[],"mappings":";AAGa,MAAA,iBAAiB,cAAc,CAAyB,CAAA;"}
|
package/dist/harmony112.cjs
CHANGED
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const louis = require("@lokalise/louis");
|
|
5
|
+
const clsx = require("./harmony92.cjs");
|
|
6
|
+
const IconLink_module = require("./harmony130.cjs");
|
|
7
|
+
const IconLink = ({ label, to, icon: Icon }) => {
|
|
8
|
+
return /* @__PURE__ */ jsxRuntime.jsx(louis.Tooltip, { placement: "right", tooltip: label, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
9
|
+
louis.Link,
|
|
10
|
+
{
|
|
11
|
+
"aria-label": label,
|
|
12
|
+
className: clsx.clsx(IconLink_module.default.link, {
|
|
13
|
+
[IconLink_module.default.active]: typeof window !== "undefined" && window.location.pathname.startsWith(to)
|
|
14
|
+
}),
|
|
15
|
+
href: to,
|
|
16
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: "25px" })
|
|
17
|
+
}
|
|
18
|
+
) });
|
|
13
19
|
};
|
|
14
|
-
exports.
|
|
20
|
+
exports.IconLink = IconLink;
|
|
15
21
|
//# sourceMappingURL=harmony112.cjs.map
|
package/dist/harmony112.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony112.cjs","sources":["../src/components/Sidebar/
|
|
1
|
+
{"version":3,"file":"harmony112.cjs","sources":["../src/components/Sidebar/Widgets/IconLink/IconLink.tsx"],"sourcesContent":["import { Link, type SvgIconProps, Tooltip } from '@lokalise/louis'\nimport clsx from 'clsx'\nimport type { FC } from 'react'\nimport styles from './IconLink.module.css'\n\ntype IconLinkProps = {\n\t/** URL destination for the link */\n\tto: string\n\t/** Text to display in the tooltip when hovering over the icon */\n\tlabel: string\n\t/** Icon component from @lokalise/louis to display */\n\ticon: FC<SvgIconProps>\n}\n\n/**\n * A navigation link component that displays an icon with a tooltip.\n * When hovered, shows a tooltip with the label text.\n * The link is highlighted when the current URL matches its destination.\n *\n * @example\n * ```tsx\n * <IconLink to=\"/projects\" label=\"Projects\" icon={FolderOpenIcon} />\n * ```\n */\nexport const IconLink = ({ label, to, icon: Icon }: IconLinkProps) => {\n\treturn (\n\t\t<Tooltip placement=\"right\" tooltip={label}>\n\t\t\t<Link\n\t\t\t\taria-label={label}\n\t\t\t\tclassName={clsx(styles.link, {\n\t\t\t\t\t[styles.active]: typeof window !== 'undefined' && window.location.pathname.startsWith(to),\n\t\t\t\t})}\n\t\t\t\thref={to}\n\t\t\t>\n\t\t\t\t<Icon size=\"25px\" />\n\t\t\t</Link>\n\t\t</Tooltip>\n\t)\n}\n"],"names":["jsx","Tooltip","Link","clsx","styles"],"mappings":";;;;;;AAwBO,MAAM,WAAW,CAAC,EAAE,OAAO,IAAI,MAAM,WAA0B;AACrE,SACEA,2BAAA,IAAAC,MAAA,SAAA,EAAQ,WAAU,SAAQ,SAAS,OACnC,UAAAD,2BAAA;AAAA,IAACE,MAAA;AAAA,IAAA;AAAA,MACA,cAAY;AAAA,MACZ,WAAWC,KAAAA,KAAKC,gBAAA,QAAO,MAAM;AAAA,QAC5B,CAACA,gBAAO,QAAA,MAAM,GAAG,OAAO,WAAW,eAAe,OAAO,SAAS,SAAS,WAAW,EAAE;AAAA,MAAA,CACxF;AAAA,MACD,MAAM;AAAA,MAEN,UAAAJ,2BAAAA,IAAC,MAAK,EAAA,MAAK,OAAO,CAAA;AAAA,IAAA;AAAA,EAAA,GAEpB;AAEF;;"}
|
package/dist/harmony112.mjs
CHANGED
|
@@ -1,15 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Tooltip, Link } from "@lokalise/louis";
|
|
3
|
+
import { clsx } from "./harmony92.mjs";
|
|
4
|
+
import styles from "./harmony130.mjs";
|
|
5
|
+
const IconLink = ({ label, to, icon: Icon }) => {
|
|
6
|
+
return /* @__PURE__ */ jsx(Tooltip, { placement: "right", tooltip: label, children: /* @__PURE__ */ jsx(
|
|
7
|
+
Link,
|
|
8
|
+
{
|
|
9
|
+
"aria-label": label,
|
|
10
|
+
className: clsx(styles.link, {
|
|
11
|
+
[styles.active]: typeof window !== "undefined" && window.location.pathname.startsWith(to)
|
|
12
|
+
}),
|
|
13
|
+
href: to,
|
|
14
|
+
children: /* @__PURE__ */ jsx(Icon, { size: "25px" })
|
|
15
|
+
}
|
|
16
|
+
) });
|
|
11
17
|
};
|
|
12
18
|
export {
|
|
13
|
-
|
|
19
|
+
IconLink
|
|
14
20
|
};
|
|
15
21
|
//# sourceMappingURL=harmony112.mjs.map
|
package/dist/harmony112.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"harmony112.mjs","sources":["../src/components/Sidebar/
|
|
1
|
+
{"version":3,"file":"harmony112.mjs","sources":["../src/components/Sidebar/Widgets/IconLink/IconLink.tsx"],"sourcesContent":["import { Link, type SvgIconProps, Tooltip } from '@lokalise/louis'\nimport clsx from 'clsx'\nimport type { FC } from 'react'\nimport styles from './IconLink.module.css'\n\ntype IconLinkProps = {\n\t/** URL destination for the link */\n\tto: string\n\t/** Text to display in the tooltip when hovering over the icon */\n\tlabel: string\n\t/** Icon component from @lokalise/louis to display */\n\ticon: FC<SvgIconProps>\n}\n\n/**\n * A navigation link component that displays an icon with a tooltip.\n * When hovered, shows a tooltip with the label text.\n * The link is highlighted when the current URL matches its destination.\n *\n * @example\n * ```tsx\n * <IconLink to=\"/projects\" label=\"Projects\" icon={FolderOpenIcon} />\n * ```\n */\nexport const IconLink = ({ label, to, icon: Icon }: IconLinkProps) => {\n\treturn (\n\t\t<Tooltip placement=\"right\" tooltip={label}>\n\t\t\t<Link\n\t\t\t\taria-label={label}\n\t\t\t\tclassName={clsx(styles.link, {\n\t\t\t\t\t[styles.active]: typeof window !== 'undefined' && window.location.pathname.startsWith(to),\n\t\t\t\t})}\n\t\t\t\thref={to}\n\t\t\t>\n\t\t\t\t<Icon size=\"25px\" />\n\t\t\t</Link>\n\t\t</Tooltip>\n\t)\n}\n"],"names":[],"mappings":";;;;AAwBO,MAAM,WAAW,CAAC,EAAE,OAAO,IAAI,MAAM,WAA0B;AACrE,SACE,oBAAA,SAAA,EAAQ,WAAU,SAAQ,SAAS,OACnC,UAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,cAAY;AAAA,MACZ,WAAW,KAAK,OAAO,MAAM;AAAA,QAC5B,CAAC,OAAO,MAAM,GAAG,OAAO,WAAW,eAAe,OAAO,SAAS,SAAS,WAAW,EAAE;AAAA,MAAA,CACxF;AAAA,MACD,MAAM;AAAA,MAEN,UAAA,oBAAC,MAAK,EAAA,MAAK,OAAO,CAAA;AAAA,IAAA;AAAA,EAAA,GAEpB;AAEF;"}
|