@lokalise/harmony 1.27.3-exp-teamTypes.1 → 1.27.3
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/README.md +8 -7
- package/dist/harmony.cjs +1 -4
- package/dist/harmony.cjs.map +1 -1
- package/dist/harmony.css +3 -2
- package/dist/harmony.mjs +2 -5
- package/dist/harmony100.cjs +5 -7
- package/dist/harmony100.cjs.map +1 -1
- package/dist/harmony100.mjs +5 -7
- package/dist/harmony100.mjs.map +1 -1
- package/dist/harmony101.cjs +40 -18
- package/dist/harmony101.cjs.map +1 -1
- package/dist/harmony101.mjs +40 -18
- package/dist/harmony101.mjs.map +1 -1
- package/dist/harmony102.cjs +59 -13
- package/dist/harmony102.cjs.map +1 -1
- package/dist/harmony102.mjs +59 -13
- package/dist/harmony102.mjs.map +1 -1
- package/dist/harmony103.cjs +7 -16
- package/dist/harmony103.cjs.map +1 -1
- package/dist/harmony103.mjs +7 -16
- package/dist/harmony103.mjs.map +1 -1
- package/dist/harmony104.cjs +5 -6
- package/dist/harmony104.cjs.map +1 -1
- package/dist/harmony104.mjs +5 -6
- package/dist/harmony105.cjs +5 -5
- package/dist/harmony105.mjs +5 -5
- package/dist/harmony106.cjs +6 -5
- package/dist/harmony106.cjs.map +1 -1
- package/dist/harmony106.mjs +6 -5
- package/dist/harmony107.cjs +95 -61
- package/dist/harmony107.cjs.map +1 -1
- package/dist/harmony107.mjs +95 -61
- package/dist/harmony107.mjs.map +1 -1
- package/dist/harmony108.cjs +13 -88
- package/dist/harmony108.cjs.map +1 -1
- package/dist/harmony108.mjs +13 -88
- package/dist/harmony108.mjs.map +1 -1
- package/dist/harmony109.cjs +15 -19
- package/dist/harmony109.cjs.map +1 -1
- package/dist/harmony109.mjs +14 -18
- package/dist/harmony109.mjs.map +1 -1
- package/dist/harmony110.cjs +34 -94
- package/dist/harmony110.cjs.map +1 -1
- package/dist/harmony110.mjs +34 -94
- package/dist/harmony110.mjs.map +1 -1
- package/dist/harmony111.cjs +26 -11
- package/dist/harmony111.cjs.map +1 -1
- package/dist/harmony111.mjs +26 -11
- package/dist/harmony111.mjs.map +1 -1
- package/dist/harmony112.cjs +60 -12
- package/dist/harmony112.cjs.map +1 -1
- package/dist/harmony112.mjs +60 -12
- package/dist/harmony112.mjs.map +1 -1
- package/dist/harmony113.cjs +88 -36
- package/dist/harmony113.cjs.map +1 -1
- package/dist/harmony113.mjs +88 -36
- package/dist/harmony113.mjs.map +1 -1
- package/dist/harmony114.cjs +19 -29
- package/dist/harmony114.cjs.map +1 -1
- package/dist/harmony114.mjs +18 -28
- package/dist/harmony114.mjs.map +1 -1
- package/dist/harmony115.cjs +13 -7
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +13 -7
- package/dist/harmony115.mjs.map +1 -1
- package/dist/harmony116.cjs +15 -57
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +15 -57
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +15 -59
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +15 -59
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +12 -19
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +11 -18
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony119.cjs +15 -12
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +15 -12
- package/dist/harmony119.mjs.map +1 -1
- package/dist/harmony120.cjs +19 -13
- package/dist/harmony120.cjs.map +1 -1
- package/dist/harmony120.mjs +19 -13
- package/dist/harmony120.mjs.map +1 -1
- package/dist/harmony121.cjs +10 -14
- package/dist/harmony121.cjs.map +1 -1
- package/dist/harmony121.mjs +10 -14
- package/dist/harmony121.mjs.map +1 -1
- package/dist/harmony122.cjs +5 -10
- package/dist/harmony122.cjs.map +1 -1
- package/dist/harmony122.mjs +5 -10
- 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 +56 -20
- package/dist/harmony124.cjs.map +1 -1
- package/dist/harmony124.mjs +56 -20
- package/dist/harmony124.mjs.map +1 -1
- package/dist/harmony125.cjs +59 -11
- package/dist/harmony125.cjs.map +1 -1
- package/dist/harmony125.mjs +59 -11
- package/dist/harmony125.mjs.map +1 -1
- package/dist/harmony126.cjs +18 -46
- package/dist/harmony126.cjs.map +1 -1
- package/dist/harmony126.mjs +17 -45
- package/dist/harmony126.mjs.map +1 -1
- package/dist/harmony127.cjs +13 -13
- package/dist/harmony127.cjs.map +1 -1
- package/dist/harmony127.mjs +12 -12
- package/dist/harmony127.mjs.map +1 -1
- package/dist/harmony128.cjs +31 -5
- package/dist/harmony128.cjs.map +1 -1
- package/dist/harmony128.mjs +31 -5
- package/dist/harmony128.mjs.map +1 -1
- package/dist/harmony129.cjs +13 -11
- package/dist/harmony129.cjs.map +1 -1
- package/dist/harmony129.mjs +13 -11
- package/dist/harmony129.mjs.map +1 -1
- package/dist/harmony130.cjs +45 -31
- package/dist/harmony130.cjs.map +1 -1
- package/dist/harmony130.mjs +45 -31
- package/dist/harmony130.mjs.map +1 -1
- package/dist/harmony131.cjs +13 -15
- package/dist/harmony131.cjs.map +1 -1
- package/dist/harmony131.mjs +12 -14
- package/dist/harmony131.mjs.map +1 -1
- package/dist/harmony15.cjs +1 -1
- package/dist/harmony15.mjs +1 -1
- package/dist/harmony22.cjs +1 -1
- package/dist/harmony22.mjs +1 -1
- package/dist/harmony23.cjs +1 -1
- package/dist/harmony23.mjs +1 -1
- package/dist/harmony30.cjs +1 -1
- package/dist/harmony30.mjs +1 -1
- package/dist/harmony4.cjs.map +1 -1
- package/dist/harmony4.mjs.map +1 -1
- package/dist/harmony59.cjs +29 -63
- package/dist/harmony59.cjs.map +1 -1
- package/dist/harmony59.mjs +29 -63
- package/dist/harmony59.mjs.map +1 -1
- package/dist/harmony66.cjs +1 -1
- package/dist/harmony66.mjs +1 -1
- package/dist/harmony67.cjs +1 -1
- package/dist/harmony67.mjs +1 -1
- package/dist/harmony68.cjs +1 -1
- package/dist/harmony68.mjs +1 -1
- package/dist/harmony69.cjs +2 -2
- package/dist/harmony69.mjs +2 -2
- package/dist/harmony70.cjs +2 -2
- package/dist/harmony70.mjs +2 -2
- package/dist/harmony71.cjs +2 -2
- package/dist/harmony71.mjs +2 -2
- package/dist/harmony72.cjs +2 -2
- package/dist/harmony72.mjs +2 -2
- package/dist/harmony73.cjs +3 -3
- package/dist/harmony73.mjs +3 -3
- package/dist/harmony74.cjs +6 -6
- package/dist/harmony74.mjs +6 -6
- package/dist/harmony77.cjs +2 -2
- package/dist/harmony77.mjs +2 -2
- package/dist/harmony79.cjs +12 -7
- package/dist/harmony79.cjs.map +1 -1
- package/dist/harmony79.mjs +11 -6
- package/dist/harmony79.mjs.map +1 -1
- package/dist/harmony80.cjs +20 -8
- package/dist/harmony80.cjs.map +1 -1
- package/dist/harmony80.mjs +20 -8
- package/dist/harmony80.mjs.map +1 -1
- package/dist/harmony81.cjs +3 -6
- package/dist/harmony81.cjs.map +1 -1
- package/dist/harmony81.mjs +3 -6
- package/dist/harmony81.mjs.map +1 -1
- package/dist/harmony82.cjs +9 -57
- package/dist/harmony82.cjs.map +1 -1
- package/dist/harmony82.mjs +8 -56
- package/dist/harmony82.mjs.map +1 -1
- package/dist/harmony83.cjs +9 -33
- package/dist/harmony83.cjs.map +1 -1
- package/dist/harmony83.mjs +8 -32
- package/dist/harmony83.mjs.map +1 -1
- package/dist/harmony84.cjs +57 -5
- package/dist/harmony84.cjs.map +1 -1
- package/dist/harmony84.mjs +57 -5
- package/dist/harmony84.mjs.map +1 -1
- package/dist/harmony85.cjs +32 -9
- package/dist/harmony85.cjs.map +1 -1
- package/dist/harmony85.mjs +31 -8
- package/dist/harmony85.mjs.map +1 -1
- package/dist/harmony86.cjs +6 -25
- package/dist/harmony86.cjs.map +1 -1
- package/dist/harmony86.mjs +5 -24
- package/dist/harmony86.mjs.map +1 -1
- package/dist/harmony87.cjs +6 -3
- package/dist/harmony87.cjs.map +1 -1
- package/dist/harmony87.mjs +6 -3
- package/dist/harmony87.mjs.map +1 -1
- package/dist/harmony88.cjs +24 -21
- package/dist/harmony88.cjs.map +1 -1
- package/dist/harmony88.mjs +23 -20
- package/dist/harmony88.mjs.map +1 -1
- package/dist/harmony89.cjs +3 -9
- package/dist/harmony89.cjs.map +1 -1
- package/dist/harmony89.mjs +3 -9
- package/dist/harmony89.mjs.map +1 -1
- package/dist/harmony90.cjs +19 -9
- package/dist/harmony90.cjs.map +1 -1
- package/dist/harmony90.mjs +21 -11
- package/dist/harmony90.mjs.map +1 -1
- package/dist/harmony91.cjs +11 -20
- package/dist/harmony91.cjs.map +1 -1
- package/dist/harmony91.mjs +11 -20
- package/dist/harmony91.mjs.map +1 -1
- package/dist/harmony92.cjs +2 -2
- package/dist/harmony92.mjs +2 -2
- package/dist/harmony93.cjs +19 -22
- package/dist/harmony93.cjs.map +1 -1
- package/dist/harmony93.mjs +18 -21
- package/dist/harmony93.mjs.map +1 -1
- package/dist/harmony94.cjs +13 -5
- package/dist/harmony94.cjs.map +1 -1
- package/dist/harmony94.mjs +13 -5
- package/dist/harmony94.mjs.map +1 -1
- package/dist/harmony95.cjs +13 -129
- package/dist/harmony95.cjs.map +1 -1
- package/dist/harmony95.mjs +13 -129
- package/dist/harmony95.mjs.map +1 -1
- package/dist/harmony96.cjs +18 -9
- package/dist/harmony96.cjs.map +1 -1
- package/dist/harmony96.mjs +18 -9
- package/dist/harmony96.mjs.map +1 -1
- package/dist/harmony97.cjs +5 -5
- package/dist/harmony97.cjs.map +1 -1
- package/dist/harmony97.mjs +5 -5
- package/dist/harmony97.mjs.map +1 -1
- package/dist/harmony98.cjs +129 -37
- package/dist/harmony98.cjs.map +1 -1
- package/dist/harmony98.mjs +129 -37
- package/dist/harmony98.mjs.map +1 -1
- package/dist/harmony99.cjs +12 -60
- package/dist/harmony99.cjs.map +1 -1
- package/dist/harmony99.mjs +11 -59
- package/dist/harmony99.mjs.map +1 -1
- package/dist/types/src/components/Sidebar/Sidebar.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useListTeamsQuery.d.ts +9 -7
- package/dist/types/src/features/publicApi/hooks/useRetrieveTeamQuery.d.ts +11 -24
- package/dist/types/src/features/publicApi/team.d.ts +108 -187
- package/dist/types/src/features/publicApi/types/teamTypes.d.ts +115 -272
- package/package.json +1 -1
package/dist/harmony77.cjs
CHANGED
@@ -4,8 +4,8 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const louis = require("@lokalise/louis");
|
5
5
|
const clsx = require("./harmony62.cjs");
|
6
6
|
const React = require("react");
|
7
|
-
const NavItemContents = require("./
|
8
|
-
const styles_module = require("./
|
7
|
+
const NavItemContents = require("./harmony79.cjs");
|
8
|
+
const styles_module = require("./harmony80.cjs");
|
9
9
|
const NavigationTabsItem = React.forwardRef(
|
10
10
|
({ label, href = "", disabled = false, badge, onClick, novel }, ref) => /* @__PURE__ */ jsxRuntime.jsx(louis.Tooltip, { tooltip: "You do not have access to this function", show: disabled, children: /* @__PURE__ */ jsxRuntime.jsx(
|
11
11
|
"div",
|
package/dist/harmony77.mjs
CHANGED
@@ -2,8 +2,8 @@ import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Tooltip } from "@lokalise/louis";
|
3
3
|
import { clsx } from "./harmony62.mjs";
|
4
4
|
import { forwardRef } from "react";
|
5
|
-
import { NavItemContents } from "./
|
6
|
-
import classes from "./
|
5
|
+
import { NavItemContents } from "./harmony79.mjs";
|
6
|
+
import classes from "./harmony80.mjs";
|
7
7
|
const NavigationTabsItem = forwardRef(
|
8
8
|
({ label, href = "", disabled = false, badge, onClick, novel }, ref) => /* @__PURE__ */ jsx(Tooltip, { tooltip: "You do not have access to this function", show: disabled, children: /* @__PURE__ */ jsx(
|
9
9
|
"div",
|
package/dist/harmony79.cjs
CHANGED
@@ -1,9 +1,14 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
|
6
|
-
}
|
7
|
-
|
8
|
-
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
4
|
+
const louis = require("@lokalise/louis");
|
5
|
+
const styles_module = require("./harmony80.cjs");
|
6
|
+
const NavItemContents = ({ label, badge, novel }) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex gap-1", children: [
|
7
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
8
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: label }),
|
9
|
+
!!badge && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles_module.default.badge, "aria-label": `${badge} items requiring attention`, children: badge > 9 ? "9+" : badge })
|
10
|
+
] }),
|
11
|
+
!!novel && /* @__PURE__ */ jsxRuntime.jsx(louis.Tag, { className: styles_module.default.tag, children: novel })
|
12
|
+
] });
|
13
|
+
exports.NavItemContents = NavItemContents;
|
9
14
|
//# sourceMappingURL=harmony79.cjs.map
|
package/dist/harmony79.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony79.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony79.cjs","sources":["../src/components/NavigationPanel/components/NavigationTabs/NavigationTabsItem/NavItemContents.tsx"],"sourcesContent":["import { Tag } from '@lokalise/louis'\n\nimport classes from './styles.module.css'\n\ninterface NavItemContentProps {\n\tlabel: string\n\tbadge?: number\n\tnovel?: string\n}\nexport const NavItemContents = ({ label, badge, novel }: NavItemContentProps) => (\n\t<div className=\"flex gap-1\">\n\t\t<div>\n\t\t\t<span>{label}</span>\n\t\t\t{!!badge && (\n\t\t\t\t<div className={classes.badge} aria-label={`${badge} items requiring attention`}>\n\t\t\t\t\t{badge > 9 ? '9+' : badge}\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t\t{!!novel && <Tag className={classes.tag}>{novel}</Tag>}\n\t</div>\n)\n"],"names":["jsxs","jsx","classes","Tag"],"mappings":";;;;;AASa,MAAA,kBAAkB,CAAC,EAAE,OAAO,OAAO,YAC/CA,2BAAA,KAAC,OAAI,EAAA,WAAU,cACd,UAAA;AAAA,EAAAA,gCAAC,OACA,EAAA,UAAA;AAAA,IAAAC,2BAAAA,IAAC,UAAM,UAAM,MAAA,CAAA;AAAA,IACZ,CAAC,CAAC,SACFA,+BAAC,SAAI,WAAWC,cAAA,QAAQ,OAAO,cAAY,GAAG,KAAK,8BACjD,UAAQ,QAAA,IAAI,OAAO,MACrB,CAAA;AAAA,EAAA,GAEF;AAAA,EACC,CAAC,CAAC,SAASD,2BAAA,IAACE,aAAI,WAAWD,sBAAQ,KAAM,UAAM,MAAA,CAAA;AAAA,EACjD,CAAA;;"}
|
package/dist/harmony79.mjs
CHANGED
@@ -1,9 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
}
|
1
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
2
|
+
import { Tag } from "@lokalise/louis";
|
3
|
+
import classes from "./harmony80.mjs";
|
4
|
+
const NavItemContents = ({ label, badge, novel }) => /* @__PURE__ */ jsxs("div", { className: "flex gap-1", children: [
|
5
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
6
|
+
/* @__PURE__ */ jsx("span", { children: label }),
|
7
|
+
!!badge && /* @__PURE__ */ jsx("div", { className: classes.badge, "aria-label": `${badge} items requiring attention`, children: badge > 9 ? "9+" : badge })
|
8
|
+
] }),
|
9
|
+
!!novel && /* @__PURE__ */ jsx(Tag, { className: classes.tag, children: novel })
|
10
|
+
] });
|
5
11
|
export {
|
6
|
-
|
7
|
-
logoLink
|
12
|
+
NavItemContents
|
8
13
|
};
|
9
14
|
//# sourceMappingURL=harmony79.mjs.map
|
package/dist/harmony79.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony79.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony79.mjs","sources":["../src/components/NavigationPanel/components/NavigationTabs/NavigationTabsItem/NavItemContents.tsx"],"sourcesContent":["import { Tag } from '@lokalise/louis'\n\nimport classes from './styles.module.css'\n\ninterface NavItemContentProps {\n\tlabel: string\n\tbadge?: number\n\tnovel?: string\n}\nexport const NavItemContents = ({ label, badge, novel }: NavItemContentProps) => (\n\t<div className=\"flex gap-1\">\n\t\t<div>\n\t\t\t<span>{label}</span>\n\t\t\t{!!badge && (\n\t\t\t\t<div className={classes.badge} aria-label={`${badge} items requiring attention`}>\n\t\t\t\t\t{badge > 9 ? '9+' : badge}\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t\t{!!novel && <Tag className={classes.tag}>{novel}</Tag>}\n\t</div>\n)\n"],"names":[],"mappings":";;;AASa,MAAA,kBAAkB,CAAC,EAAE,OAAO,OAAO,YAC/C,qBAAC,OAAI,EAAA,WAAU,cACd,UAAA;AAAA,EAAA,qBAAC,OACA,EAAA,UAAA;AAAA,IAAA,oBAAC,UAAM,UAAM,MAAA,CAAA;AAAA,IACZ,CAAC,CAAC,SACF,oBAAC,SAAI,WAAW,QAAQ,OAAO,cAAY,GAAG,KAAK,8BACjD,UAAQ,QAAA,IAAI,OAAO,MACrB,CAAA;AAAA,EAAA,GAEF;AAAA,EACC,CAAC,CAAC,SAAS,oBAAC,OAAI,WAAW,QAAQ,KAAM,UAAM,MAAA,CAAA;AAAA,EACjD,CAAA;"}
|
package/dist/harmony80.cjs
CHANGED
@@ -1,12 +1,24 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
-
const
|
4
|
-
const
|
5
|
-
const
|
6
|
-
|
7
|
-
|
3
|
+
const badge = "_badge_1pc1v_1";
|
4
|
+
const tag = "_tag_1pc1v_15";
|
5
|
+
const withNavLinkStyle = "_withNavLinkStyle_1pc1v_42 _withLinkStyle_1pc1v_21";
|
6
|
+
const disabled = "_disabled_1pc1v_57";
|
7
|
+
const projectNavigationItem = "_projectNavigationItem_1pc1v_61";
|
8
|
+
const projectNavigationItemDisabled = "_projectNavigationItemDisabled_1pc1v_67";
|
9
|
+
const classes = {
|
10
|
+
badge,
|
11
|
+
tag,
|
12
|
+
withNavLinkStyle,
|
13
|
+
disabled,
|
14
|
+
projectNavigationItem,
|
15
|
+
projectNavigationItemDisabled
|
8
16
|
};
|
9
|
-
exports.
|
10
|
-
exports.default =
|
11
|
-
exports.
|
17
|
+
exports.badge = badge;
|
18
|
+
exports.default = classes;
|
19
|
+
exports.disabled = disabled;
|
20
|
+
exports.projectNavigationItem = projectNavigationItem;
|
21
|
+
exports.projectNavigationItemDisabled = projectNavigationItemDisabled;
|
22
|
+
exports.tag = tag;
|
23
|
+
exports.withNavLinkStyle = withNavLinkStyle;
|
12
24
|
//# sourceMappingURL=harmony80.cjs.map
|
package/dist/harmony80.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony80.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony80.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/harmony80.mjs
CHANGED
@@ -1,12 +1,24 @@
|
|
1
|
-
const
|
2
|
-
const
|
3
|
-
const
|
4
|
-
|
5
|
-
|
1
|
+
const badge = "_badge_1pc1v_1";
|
2
|
+
const tag = "_tag_1pc1v_15";
|
3
|
+
const withNavLinkStyle = "_withNavLinkStyle_1pc1v_42 _withLinkStyle_1pc1v_21";
|
4
|
+
const disabled = "_disabled_1pc1v_57";
|
5
|
+
const projectNavigationItem = "_projectNavigationItem_1pc1v_61";
|
6
|
+
const projectNavigationItemDisabled = "_projectNavigationItemDisabled_1pc1v_67";
|
7
|
+
const classes = {
|
8
|
+
badge,
|
9
|
+
tag,
|
10
|
+
withNavLinkStyle,
|
11
|
+
disabled,
|
12
|
+
projectNavigationItem,
|
13
|
+
projectNavigationItemDisabled
|
6
14
|
};
|
7
15
|
export {
|
8
|
-
|
9
|
-
|
10
|
-
|
16
|
+
badge,
|
17
|
+
classes as default,
|
18
|
+
disabled,
|
19
|
+
projectNavigationItem,
|
20
|
+
projectNavigationItemDisabled,
|
21
|
+
tag,
|
22
|
+
withNavLinkStyle
|
11
23
|
};
|
12
24
|
//# sourceMappingURL=harmony80.mjs.map
|
package/dist/harmony80.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony80.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony80.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|
package/dist/harmony81.cjs
CHANGED
@@ -1,12 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
-
const
|
4
|
-
const dropdownButtonActive = "_dropdownButtonActive_13l5r_18";
|
3
|
+
const logoLink = "_logoLink_1baxb_1";
|
5
4
|
const styles = {
|
6
|
-
|
7
|
-
dropdownButtonActive
|
5
|
+
logoLink
|
8
6
|
};
|
9
7
|
exports.default = styles;
|
10
|
-
exports.
|
11
|
-
exports.dropdownButtonActive = dropdownButtonActive;
|
8
|
+
exports.logoLink = logoLink;
|
12
9
|
//# sourceMappingURL=harmony81.cjs.map
|
package/dist/harmony81.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony81.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony81.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/harmony81.mjs
CHANGED
@@ -1,12 +1,9 @@
|
|
1
|
-
const
|
2
|
-
const dropdownButtonActive = "_dropdownButtonActive_13l5r_18";
|
1
|
+
const logoLink = "_logoLink_1baxb_1";
|
3
2
|
const styles = {
|
4
|
-
|
5
|
-
dropdownButtonActive
|
3
|
+
logoLink
|
6
4
|
};
|
7
5
|
export {
|
8
6
|
styles as default,
|
9
|
-
|
10
|
-
dropdownButtonActive
|
7
|
+
logoLink
|
11
8
|
};
|
12
9
|
//# sourceMappingURL=harmony81.mjs.map
|
package/dist/harmony81.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony81.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony81.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/harmony82.cjs
CHANGED
@@ -1,60 +1,12 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
const
|
6
|
-
|
7
|
-
|
8
|
-
const ProfileMenuContext = require("./harmony84.cjs");
|
9
|
-
const ProfileMenuContent = ({ children }) => {
|
10
|
-
const {
|
11
|
-
currentTeam,
|
12
|
-
otherTeams,
|
13
|
-
showUpgradeCta,
|
14
|
-
showBillingButton,
|
15
|
-
allowTeamCreation,
|
16
|
-
isProviderAlpha,
|
17
|
-
canAccessTeamSettings,
|
18
|
-
isEndOfTrialActive,
|
19
|
-
isTeamSuspended,
|
20
|
-
isFullyAuthenticated
|
21
|
-
} = ProfileMenuContext.useProfileMenu();
|
22
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
23
|
-
louis.Menu,
|
24
|
-
{
|
25
|
-
menuButton: () => /* @__PURE__ */ jsxRuntime.jsxs("button", { className: ProfileMenuContent_module.default.profileButton, "aria-label": "Profile menu", type: "button", children: [
|
26
|
-
(currentTeam == null ? void 0 : currentTeam.logoUrl) ? /* @__PURE__ */ jsxRuntime.jsx(
|
27
|
-
"img",
|
28
|
-
{
|
29
|
-
src: currentTeam.logoUrl,
|
30
|
-
className: clsx.clsx(ProfileMenuContent_module.default.profileImage, {
|
31
|
-
[ProfileMenuContent_module.default.profileImageHighlight]: showUpgradeCta
|
32
|
-
}),
|
33
|
-
alt: "Team Logo"
|
34
|
-
}
|
35
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(
|
36
|
-
"div",
|
37
|
-
{
|
38
|
-
className: clsx.clsx(ProfileMenuContent_module.default.userIconWrapper, "flex-row", "align-center", "items-center", {
|
39
|
-
[ProfileMenuContent_module.default.profileImageHighlight]: showUpgradeCta
|
40
|
-
}),
|
41
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(louis.UserIcon, { size: "25px" })
|
42
|
-
}
|
43
|
-
),
|
44
|
-
showUpgradeCta && /* @__PURE__ */ jsxRuntime.jsx(UpgradeIcon.UpgradeIcon, { className: ProfileMenuContent_module.default.profileImageUpgradeIcon })
|
45
|
-
] }),
|
46
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(louis.MenuList, { placement: "right-end", className: ProfileMenuContent_module.default.menuContainer, children: children({
|
47
|
-
allowTeamCreation,
|
48
|
-
otherTeams,
|
49
|
-
canAccessTeamSettings,
|
50
|
-
isEndOfTrialActive,
|
51
|
-
isTeamSuspended,
|
52
|
-
showBillingButton,
|
53
|
-
isProviderAlpha,
|
54
|
-
isFullyAuthenticated
|
55
|
-
}) })
|
56
|
-
}
|
57
|
-
);
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const link = "_link_18vhx_1";
|
4
|
+
const active = "_active_18vhx_18";
|
5
|
+
const styles = {
|
6
|
+
link,
|
7
|
+
active
|
58
8
|
};
|
59
|
-
exports.
|
9
|
+
exports.active = active;
|
10
|
+
exports.default = styles;
|
11
|
+
exports.link = link;
|
60
12
|
//# sourceMappingURL=harmony82.cjs.map
|
package/dist/harmony82.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony82.cjs","sources":[
|
1
|
+
{"version":3,"file":"harmony82.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
package/dist/harmony82.mjs
CHANGED
@@ -1,60 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
import { useProfileMenu } from "./harmony84.mjs";
|
7
|
-
const ProfileMenuContent = ({ children }) => {
|
8
|
-
const {
|
9
|
-
currentTeam,
|
10
|
-
otherTeams,
|
11
|
-
showUpgradeCta,
|
12
|
-
showBillingButton,
|
13
|
-
allowTeamCreation,
|
14
|
-
isProviderAlpha,
|
15
|
-
canAccessTeamSettings,
|
16
|
-
isEndOfTrialActive,
|
17
|
-
isTeamSuspended,
|
18
|
-
isFullyAuthenticated
|
19
|
-
} = useProfileMenu();
|
20
|
-
return /* @__PURE__ */ jsx(
|
21
|
-
Menu,
|
22
|
-
{
|
23
|
-
menuButton: () => /* @__PURE__ */ jsxs("button", { className: styles.profileButton, "aria-label": "Profile menu", type: "button", children: [
|
24
|
-
(currentTeam == null ? void 0 : currentTeam.logoUrl) ? /* @__PURE__ */ jsx(
|
25
|
-
"img",
|
26
|
-
{
|
27
|
-
src: currentTeam.logoUrl,
|
28
|
-
className: clsx(styles.profileImage, {
|
29
|
-
[styles.profileImageHighlight]: showUpgradeCta
|
30
|
-
}),
|
31
|
-
alt: "Team Logo"
|
32
|
-
}
|
33
|
-
) : /* @__PURE__ */ jsx(
|
34
|
-
"div",
|
35
|
-
{
|
36
|
-
className: clsx(styles.userIconWrapper, "flex-row", "align-center", "items-center", {
|
37
|
-
[styles.profileImageHighlight]: showUpgradeCta
|
38
|
-
}),
|
39
|
-
children: /* @__PURE__ */ jsx(UserIcon, { size: "25px" })
|
40
|
-
}
|
41
|
-
),
|
42
|
-
showUpgradeCta && /* @__PURE__ */ jsx(UpgradeIcon, { className: styles.profileImageUpgradeIcon })
|
43
|
-
] }),
|
44
|
-
children: /* @__PURE__ */ jsx(MenuList, { placement: "right-end", className: styles.menuContainer, children: children({
|
45
|
-
allowTeamCreation,
|
46
|
-
otherTeams,
|
47
|
-
canAccessTeamSettings,
|
48
|
-
isEndOfTrialActive,
|
49
|
-
isTeamSuspended,
|
50
|
-
showBillingButton,
|
51
|
-
isProviderAlpha,
|
52
|
-
isFullyAuthenticated
|
53
|
-
}) })
|
54
|
-
}
|
55
|
-
);
|
1
|
+
const link = "_link_18vhx_1";
|
2
|
+
const active = "_active_18vhx_18";
|
3
|
+
const styles = {
|
4
|
+
link,
|
5
|
+
active
|
56
6
|
};
|
57
7
|
export {
|
58
|
-
|
8
|
+
active,
|
9
|
+
styles as default,
|
10
|
+
link
|
59
11
|
};
|
60
12
|
//# sourceMappingURL=harmony82.mjs.map
|
package/dist/harmony82.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony82.mjs","sources":[
|
1
|
+
{"version":3,"file":"harmony82.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
package/dist/harmony83.cjs
CHANGED
@@ -1,36 +1,12 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
const
|
6
|
-
|
7
|
-
|
8
|
-
types.SidebarTeamRoles.biller,
|
9
|
-
types.SidebarTeamRoles.owner,
|
10
|
-
types.SidebarTeamRoles.admin
|
11
|
-
];
|
12
|
-
const ProfileMenuProvider = ({ children, config }) => {
|
13
|
-
const { teams, currentTeamId, planId, isEndOfTrialActive, isFullyAuthenticated, userTeamRole } = config;
|
14
|
-
const currentTeam = teams.find((t) => t.id === currentTeamId);
|
15
|
-
const otherTeams = teams.filter((t) => t.id !== currentTeamId);
|
16
|
-
const canChangeBilling = billingRoles.includes(userTeamRole);
|
17
|
-
const canAccessTeamSettings = billingRoles.includes(userTeamRole);
|
18
|
-
const isOnFreeOrTrialPlan = plan.isFreePlan(planId) || plan.isTrialPlan(planId);
|
19
|
-
const showUpgradeCta = isFullyAuthenticated && isOnFreeOrTrialPlan && canChangeBilling;
|
20
|
-
const showBillingButton = isFullyAuthenticated && canAccessTeamSettings && canChangeBilling;
|
21
|
-
const allowTeamCreation = isFullyAuthenticated && !isEndOfTrialActive;
|
22
|
-
const providerValue = {
|
23
|
-
...config,
|
24
|
-
currentTeam,
|
25
|
-
otherTeams,
|
26
|
-
canChangeBilling,
|
27
|
-
canAccessTeamSettings,
|
28
|
-
isOnFreeOrTrialPlan,
|
29
|
-
showUpgradeCta,
|
30
|
-
showBillingButton,
|
31
|
-
allowTeamCreation
|
32
|
-
};
|
33
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ProfileMenuContext.ProfileMenuContext.Provider, { value: providerValue, children });
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const dropdownButton = "_dropdownButton_1naek_1";
|
4
|
+
const dropdownButtonActive = "_dropdownButtonActive_1naek_19";
|
5
|
+
const styles = {
|
6
|
+
dropdownButton,
|
7
|
+
dropdownButtonActive
|
34
8
|
};
|
35
|
-
exports.
|
9
|
+
exports.default = styles;
|
10
|
+
exports.dropdownButton = dropdownButton;
|
11
|
+
exports.dropdownButtonActive = dropdownButtonActive;
|
36
12
|
//# sourceMappingURL=harmony83.cjs.map
|
package/dist/harmony83.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony83.cjs","sources":[
|
1
|
+
{"version":3,"file":"harmony83.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
package/dist/harmony83.mjs
CHANGED
@@ -1,36 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
SidebarTeamRoles.biller,
|
7
|
-
SidebarTeamRoles.owner,
|
8
|
-
SidebarTeamRoles.admin
|
9
|
-
];
|
10
|
-
const ProfileMenuProvider = ({ children, config }) => {
|
11
|
-
const { teams, currentTeamId, planId, isEndOfTrialActive, isFullyAuthenticated, userTeamRole } = config;
|
12
|
-
const currentTeam = teams.find((t) => t.id === currentTeamId);
|
13
|
-
const otherTeams = teams.filter((t) => t.id !== currentTeamId);
|
14
|
-
const canChangeBilling = billingRoles.includes(userTeamRole);
|
15
|
-
const canAccessTeamSettings = billingRoles.includes(userTeamRole);
|
16
|
-
const isOnFreeOrTrialPlan = isFreePlan(planId) || isTrialPlan(planId);
|
17
|
-
const showUpgradeCta = isFullyAuthenticated && isOnFreeOrTrialPlan && canChangeBilling;
|
18
|
-
const showBillingButton = isFullyAuthenticated && canAccessTeamSettings && canChangeBilling;
|
19
|
-
const allowTeamCreation = isFullyAuthenticated && !isEndOfTrialActive;
|
20
|
-
const providerValue = {
|
21
|
-
...config,
|
22
|
-
currentTeam,
|
23
|
-
otherTeams,
|
24
|
-
canChangeBilling,
|
25
|
-
canAccessTeamSettings,
|
26
|
-
isOnFreeOrTrialPlan,
|
27
|
-
showUpgradeCta,
|
28
|
-
showBillingButton,
|
29
|
-
allowTeamCreation
|
30
|
-
};
|
31
|
-
return /* @__PURE__ */ jsx(ProfileMenuContext.Provider, { value: providerValue, children });
|
1
|
+
const dropdownButton = "_dropdownButton_1naek_1";
|
2
|
+
const dropdownButtonActive = "_dropdownButtonActive_1naek_19";
|
3
|
+
const styles = {
|
4
|
+
dropdownButton,
|
5
|
+
dropdownButtonActive
|
32
6
|
};
|
33
7
|
export {
|
34
|
-
|
8
|
+
styles as default,
|
9
|
+
dropdownButton,
|
10
|
+
dropdownButtonActive
|
35
11
|
};
|
36
12
|
//# sourceMappingURL=harmony83.mjs.map
|
package/dist/harmony83.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony83.mjs","sources":[
|
1
|
+
{"version":3,"file":"harmony83.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
package/dist/harmony84.cjs
CHANGED
@@ -1,8 +1,60 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
const
|
4
|
-
const
|
5
|
-
const
|
6
|
-
|
7
|
-
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
4
|
+
const louis = require("@lokalise/louis");
|
5
|
+
const clsx = require("./harmony62.cjs");
|
6
|
+
const UpgradeIcon = require("./harmony90.cjs");
|
7
|
+
const ProfileMenuContent_module = require("./harmony96.cjs");
|
8
|
+
const ProfileMenuContext = require("./harmony86.cjs");
|
9
|
+
const ProfileMenuContent = ({ children }) => {
|
10
|
+
const {
|
11
|
+
currentTeam,
|
12
|
+
otherTeams,
|
13
|
+
showUpgradeCta,
|
14
|
+
showBillingButton,
|
15
|
+
allowTeamCreation,
|
16
|
+
isProviderAlpha,
|
17
|
+
canAccessTeamSettings,
|
18
|
+
isEndOfTrialActive,
|
19
|
+
isTeamSuspended,
|
20
|
+
isFullyAuthenticated
|
21
|
+
} = ProfileMenuContext.useProfileMenu();
|
22
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
23
|
+
louis.Menu,
|
24
|
+
{
|
25
|
+
menuButton: () => /* @__PURE__ */ jsxRuntime.jsxs("button", { className: ProfileMenuContent_module.default.profileButton, "aria-label": "Profile menu", type: "button", children: [
|
26
|
+
(currentTeam == null ? void 0 : currentTeam.logoUrl) ? /* @__PURE__ */ jsxRuntime.jsx(
|
27
|
+
"img",
|
28
|
+
{
|
29
|
+
src: currentTeam.logoUrl,
|
30
|
+
className: clsx.clsx(ProfileMenuContent_module.default.profileImage, {
|
31
|
+
[ProfileMenuContent_module.default.profileImageHighlight]: showUpgradeCta
|
32
|
+
}),
|
33
|
+
alt: "Team Logo"
|
34
|
+
}
|
35
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(
|
36
|
+
"div",
|
37
|
+
{
|
38
|
+
className: clsx.clsx(ProfileMenuContent_module.default.userIconWrapper, "flex-row", "align-center", "items-center", {
|
39
|
+
[ProfileMenuContent_module.default.profileImageHighlight]: showUpgradeCta
|
40
|
+
}),
|
41
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(louis.UserIcon, { size: "25px" })
|
42
|
+
}
|
43
|
+
),
|
44
|
+
showUpgradeCta && /* @__PURE__ */ jsxRuntime.jsx(UpgradeIcon.UpgradeIcon, { className: ProfileMenuContent_module.default.profileImageUpgradeIcon })
|
45
|
+
] }),
|
46
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(louis.MenuList, { placement: "right-end", className: ProfileMenuContent_module.default.menuContainer, children: children({
|
47
|
+
allowTeamCreation,
|
48
|
+
otherTeams,
|
49
|
+
canAccessTeamSettings,
|
50
|
+
isEndOfTrialActive,
|
51
|
+
isTeamSuspended,
|
52
|
+
showBillingButton,
|
53
|
+
isProviderAlpha,
|
54
|
+
isFullyAuthenticated
|
55
|
+
}) })
|
56
|
+
}
|
57
|
+
);
|
58
|
+
};
|
59
|
+
exports.ProfileMenuContent = ProfileMenuContent;
|
8
60
|
//# sourceMappingURL=harmony84.cjs.map
|
package/dist/harmony84.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony84.cjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/
|
1
|
+
{"version":3,"file":"harmony84.cjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/ProfileMenuContent.tsx"],"sourcesContent":["import { Menu, MenuList, UserIcon } from '@lokalise/louis'\nimport clsx from 'clsx'\nimport type { ReactNode } from 'react'\nimport { UpgradeIcon } from '../../UpgradeIcon/UpgradeIcon'\nimport styles from './ProfileMenuContent.module.css'\nimport { useProfileMenu } from './ProfileMenuContext'\nimport type { SidebarProfileMenuRenderProps } from './types'\n\nexport type ProfileMenuContentProps = {\n\tchildren: (props: SidebarProfileMenuRenderProps) => ReactNode\n}\n\nexport const ProfileMenuContent = ({ children }: ProfileMenuContentProps) => {\n\tconst {\n\t\tcurrentTeam,\n\t\totherTeams,\n\t\tshowUpgradeCta,\n\t\tshowBillingButton,\n\t\tallowTeamCreation,\n\t\tisProviderAlpha,\n\t\tcanAccessTeamSettings,\n\t\tisEndOfTrialActive,\n\t\tisTeamSuspended,\n\t\tisFullyAuthenticated,\n\t} = useProfileMenu()\n\n\treturn (\n\t\t<Menu\n\t\t\tmenuButton={() => (\n\t\t\t\t<button className={styles.profileButton} aria-label=\"Profile menu\" type=\"button\">\n\t\t\t\t\t{currentTeam?.logoUrl ? (\n\t\t\t\t\t\t<img\n\t\t\t\t\t\t\tsrc={currentTeam.logoUrl}\n\t\t\t\t\t\t\tclassName={clsx(styles.profileImage, {\n\t\t\t\t\t\t\t\t[styles.profileImageHighlight]: showUpgradeCta,\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\talt=\"Team Logo\"\n\t\t\t\t\t\t/>\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclassName={clsx(styles.userIconWrapper, 'flex-row', 'align-center', 'items-center', {\n\t\t\t\t\t\t\t\t[styles.profileImageHighlight]: showUpgradeCta,\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<UserIcon size={'25px'} />\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t\t{showUpgradeCta && <UpgradeIcon className={styles.profileImageUpgradeIcon} />}\n\t\t\t\t</button>\n\t\t\t)}\n\t\t>\n\t\t\t<MenuList placement=\"right-end\" className={styles.menuContainer}>\n\t\t\t\t{children({\n\t\t\t\t\tallowTeamCreation,\n\t\t\t\t\totherTeams,\n\t\t\t\t\tcanAccessTeamSettings,\n\t\t\t\t\tisEndOfTrialActive,\n\t\t\t\t\tisTeamSuspended,\n\t\t\t\t\tshowBillingButton,\n\t\t\t\t\tisProviderAlpha,\n\t\t\t\t\tisFullyAuthenticated,\n\t\t\t\t})}\n\t\t\t</MenuList>\n\t\t</Menu>\n\t)\n}\n"],"names":["useProfileMenu","jsx","Menu","jsxs","styles","clsx","UserIcon","UpgradeIcon","MenuList"],"mappings":";;;;;;;;AAYO,MAAM,qBAAqB,CAAC,EAAE,eAAwC;AACtE,QAAA;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,MACGA,kCAAe;AAGlB,SAAAC,2BAAA;AAAA,IAACC,MAAA;AAAA,IAAA;AAAA,MACA,YAAY,MACXC,2BAAAA,KAAC,UAAO,EAAA,WAAWC,0BAAAA,QAAO,eAAe,cAAW,gBAAe,MAAK,UACtE,UAAA;AAAA,SAAA,2CAAa,WACbH,2BAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACA,KAAK,YAAY;AAAA,YACjB,WAAWI,KAAAA,KAAKD,0BAAA,QAAO,cAAc;AAAA,cACpC,CAACA,0BAAAA,QAAO,qBAAqB,GAAG;AAAA,YAAA,CAChC;AAAA,YACD,KAAI;AAAA,UAAA;AAAA,QAAA,IAGLH,2BAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACA,WAAWI,KAAK,KAAAD,0BAAA,QAAO,iBAAiB,YAAY,gBAAgB,gBAAgB;AAAA,cACnF,CAACA,0BAAAA,QAAO,qBAAqB,GAAG;AAAA,YAAA,CAChC;AAAA,YAED,UAAAH,2BAAAA,IAACK,MAAAA,UAAS,EAAA,MAAM,OAAQ,CAAA;AAAA,UAAA;AAAA,QACzB;AAAA,QAEA,kBAAkBL,2BAAA,IAACM,YAAY,aAAA,EAAA,WAAWH,0BAAAA,QAAO,wBAAyB,CAAA;AAAA,MAAA,GAC5E;AAAA,MAGD,yCAACI,gBAAS,EAAA,WAAU,aAAY,WAAWJ,kCAAO,eAChD,UAAS,SAAA;AAAA,QACT;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MAAA,CACA,EACF,CAAA;AAAA,IAAA;AAAA,EACD;AAEF;;"}
|
package/dist/harmony84.mjs
CHANGED
@@ -1,8 +1,60 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
2
|
+
import { Menu, MenuList, UserIcon } from "@lokalise/louis";
|
3
|
+
import { clsx } from "./harmony62.mjs";
|
4
|
+
import { UpgradeIcon } from "./harmony90.mjs";
|
5
|
+
import styles from "./harmony96.mjs";
|
6
|
+
import { useProfileMenu } from "./harmony86.mjs";
|
7
|
+
const ProfileMenuContent = ({ children }) => {
|
8
|
+
const {
|
9
|
+
currentTeam,
|
10
|
+
otherTeams,
|
11
|
+
showUpgradeCta,
|
12
|
+
showBillingButton,
|
13
|
+
allowTeamCreation,
|
14
|
+
isProviderAlpha,
|
15
|
+
canAccessTeamSettings,
|
16
|
+
isEndOfTrialActive,
|
17
|
+
isTeamSuspended,
|
18
|
+
isFullyAuthenticated
|
19
|
+
} = useProfileMenu();
|
20
|
+
return /* @__PURE__ */ jsx(
|
21
|
+
Menu,
|
22
|
+
{
|
23
|
+
menuButton: () => /* @__PURE__ */ jsxs("button", { className: styles.profileButton, "aria-label": "Profile menu", type: "button", children: [
|
24
|
+
(currentTeam == null ? void 0 : currentTeam.logoUrl) ? /* @__PURE__ */ jsx(
|
25
|
+
"img",
|
26
|
+
{
|
27
|
+
src: currentTeam.logoUrl,
|
28
|
+
className: clsx(styles.profileImage, {
|
29
|
+
[styles.profileImageHighlight]: showUpgradeCta
|
30
|
+
}),
|
31
|
+
alt: "Team Logo"
|
32
|
+
}
|
33
|
+
) : /* @__PURE__ */ jsx(
|
34
|
+
"div",
|
35
|
+
{
|
36
|
+
className: clsx(styles.userIconWrapper, "flex-row", "align-center", "items-center", {
|
37
|
+
[styles.profileImageHighlight]: showUpgradeCta
|
38
|
+
}),
|
39
|
+
children: /* @__PURE__ */ jsx(UserIcon, { size: "25px" })
|
40
|
+
}
|
41
|
+
),
|
42
|
+
showUpgradeCta && /* @__PURE__ */ jsx(UpgradeIcon, { className: styles.profileImageUpgradeIcon })
|
43
|
+
] }),
|
44
|
+
children: /* @__PURE__ */ jsx(MenuList, { placement: "right-end", className: styles.menuContainer, children: children({
|
45
|
+
allowTeamCreation,
|
46
|
+
otherTeams,
|
47
|
+
canAccessTeamSettings,
|
48
|
+
isEndOfTrialActive,
|
49
|
+
isTeamSuspended,
|
50
|
+
showBillingButton,
|
51
|
+
isProviderAlpha,
|
52
|
+
isFullyAuthenticated
|
53
|
+
}) })
|
54
|
+
}
|
55
|
+
);
|
56
|
+
};
|
4
57
|
export {
|
5
|
-
|
6
|
-
useProfileMenu
|
58
|
+
ProfileMenuContent
|
7
59
|
};
|
8
60
|
//# sourceMappingURL=harmony84.mjs.map
|