@lokalise/harmony 1.27.3-exp-fixTeamsTypes.1 → 1.27.3-exp-fixTeamsTypes.2
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/harmony100.cjs +7 -6
- package/dist/harmony100.cjs.map +1 -1
- package/dist/harmony100.mjs +6 -5
- package/dist/harmony100.mjs.map +1 -1
- package/dist/harmony101.cjs +18 -40
- package/dist/harmony101.cjs.map +1 -1
- package/dist/harmony101.mjs +18 -40
- package/dist/harmony101.mjs.map +1 -1
- package/dist/harmony102.cjs +13 -59
- package/dist/harmony102.cjs.map +1 -1
- package/dist/harmony102.mjs +13 -59
- package/dist/harmony102.mjs.map +1 -1
- package/dist/harmony103.cjs +16 -7
- package/dist/harmony103.cjs.map +1 -1
- package/dist/harmony103.mjs +16 -7
- package/dist/harmony103.mjs.map +1 -1
- package/dist/harmony104.cjs +99 -6
- package/dist/harmony104.cjs.map +1 -1
- package/dist/harmony104.mjs +81 -5
- package/dist/harmony104.mjs.map +1 -1
- package/dist/harmony105.cjs +63 -6
- package/dist/harmony105.cjs.map +1 -1
- package/dist/harmony105.mjs +62 -5
- package/dist/harmony105.mjs.map +1 -1
- package/dist/harmony106.cjs +89 -6
- package/dist/harmony106.cjs.map +1 -1
- package/dist/harmony106.mjs +88 -5
- package/dist/harmony106.mjs.map +1 -1
- package/dist/harmony107.cjs +19 -63
- package/dist/harmony107.cjs.map +1 -1
- package/dist/harmony107.mjs +18 -62
- package/dist/harmony107.mjs.map +1 -1
- package/dist/harmony108.cjs +6 -89
- package/dist/harmony108.cjs.map +1 -1
- package/dist/harmony108.mjs +5 -88
- package/dist/harmony108.mjs.map +1 -1
- package/dist/harmony109.cjs +5 -18
- package/dist/harmony109.cjs.map +1 -1
- package/dist/harmony109.mjs +5 -18
- package/dist/harmony109.mjs.map +1 -1
- package/dist/harmony110.cjs +7 -96
- package/dist/harmony110.cjs.map +1 -1
- package/dist/harmony110.mjs +7 -96
- package/dist/harmony110.mjs.map +1 -1
- package/dist/harmony111.cjs +57 -13
- package/dist/harmony111.cjs.map +1 -1
- package/dist/harmony111.mjs +57 -13
- package/dist/harmony111.mjs.map +1 -1
- package/dist/harmony112.cjs +60 -14
- package/dist/harmony112.cjs.map +1 -1
- package/dist/harmony112.mjs +60 -14
- package/dist/harmony112.mjs.map +1 -1
- package/dist/harmony113.cjs +19 -37
- package/dist/harmony113.cjs.map +1 -1
- package/dist/harmony113.mjs +18 -36
- package/dist/harmony113.mjs.map +1 -1
- package/dist/harmony114.cjs +87 -19
- package/dist/harmony114.cjs.map +1 -1
- package/dist/harmony114.mjs +87 -19
- package/dist/harmony114.mjs.map +1 -1
- package/dist/harmony115.cjs +12 -12
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +12 -12
- package/dist/harmony115.mjs.map +1 -1
- package/dist/harmony116.cjs +13 -14
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +13 -14
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +34 -14
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +34 -14
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +28 -7
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +28 -7
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony119.cjs +13 -57
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +13 -57
- package/dist/harmony119.mjs.map +1 -1
- package/dist/harmony120.cjs +14 -59
- package/dist/harmony120.cjs.map +1 -1
- package/dist/harmony120.mjs +14 -59
- package/dist/harmony120.mjs.map +1 -1
- package/dist/harmony121.cjs +17 -19
- package/dist/harmony121.cjs.map +1 -1
- package/dist/harmony121.mjs +16 -18
- package/dist/harmony121.mjs.map +1 -1
- package/dist/harmony122.cjs +46 -11
- package/dist/harmony122.cjs.map +1 -1
- package/dist/harmony122.mjs +46 -11
- package/dist/harmony122.mjs.map +1 -1
- package/dist/harmony123.cjs +13 -17
- package/dist/harmony123.cjs.map +1 -1
- package/dist/harmony123.mjs +12 -16
- package/dist/harmony123.mjs.map +1 -1
- package/dist/harmony124.cjs +10 -20
- package/dist/harmony124.cjs.map +1 -1
- package/dist/harmony124.mjs +10 -20
- package/dist/harmony124.mjs.map +1 -1
- package/dist/harmony125.cjs +14 -10
- package/dist/harmony125.cjs.map +1 -1
- package/dist/harmony125.mjs +14 -10
- package/dist/harmony125.mjs.map +1 -1
- package/dist/harmony126.cjs +20 -5
- package/dist/harmony126.cjs.map +1 -1
- package/dist/harmony126.mjs +20 -5
- package/dist/harmony126.mjs.map +1 -1
- package/dist/harmony127.cjs +11 -11
- package/dist/harmony127.cjs.map +1 -1
- package/dist/harmony127.mjs +11 -11
- package/dist/harmony127.mjs.map +1 -1
- package/dist/harmony128.cjs +5 -31
- package/dist/harmony128.cjs.map +1 -1
- package/dist/harmony128.mjs +5 -31
- package/dist/harmony128.mjs.map +1 -1
- package/dist/harmony129.cjs +11 -13
- package/dist/harmony129.cjs.map +1 -1
- package/dist/harmony129.mjs +11 -13
- package/dist/harmony129.mjs.map +1 -1
- package/dist/harmony130.cjs +31 -45
- package/dist/harmony130.cjs.map +1 -1
- package/dist/harmony130.mjs +31 -45
- package/dist/harmony130.mjs.map +1 -1
- package/dist/harmony131.cjs +15 -13
- package/dist/harmony131.cjs.map +1 -1
- package/dist/harmony131.mjs +14 -12
- 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/harmony59.cjs +9 -6
- package/dist/harmony59.cjs.map +1 -1
- package/dist/harmony59.mjs +9 -6
- package/dist/harmony59.mjs.map +1 -1
- package/dist/harmony64.cjs +1 -1
- package/dist/harmony64.mjs +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 +7 -12
- package/dist/harmony79.cjs.map +1 -1
- package/dist/harmony79.mjs +6 -11
- package/dist/harmony79.mjs.map +1 -1
- package/dist/harmony80.cjs +8 -20
- package/dist/harmony80.cjs.map +1 -1
- package/dist/harmony80.mjs +8 -20
- package/dist/harmony80.mjs.map +1 -1
- package/dist/harmony81.cjs +6 -3
- package/dist/harmony81.cjs.map +1 -1
- package/dist/harmony81.mjs +6 -3
- package/dist/harmony81.mjs.map +1 -1
- package/dist/harmony82.cjs +57 -9
- package/dist/harmony82.cjs.map +1 -1
- package/dist/harmony82.mjs +56 -8
- package/dist/harmony82.mjs.map +1 -1
- package/dist/harmony83.cjs +32 -9
- package/dist/harmony83.cjs.map +1 -1
- package/dist/harmony83.mjs +31 -8
- package/dist/harmony83.mjs.map +1 -1
- package/dist/harmony84.cjs +5 -57
- package/dist/harmony84.cjs.map +1 -1
- package/dist/harmony84.mjs +5 -57
- package/dist/harmony84.mjs.map +1 -1
- package/dist/harmony85.cjs +9 -32
- package/dist/harmony85.cjs.map +1 -1
- package/dist/harmony85.mjs +8 -31
- package/dist/harmony85.mjs.map +1 -1
- package/dist/harmony86.cjs +25 -6
- package/dist/harmony86.cjs.map +1 -1
- package/dist/harmony86.mjs +24 -5
- package/dist/harmony86.mjs.map +1 -1
- package/dist/harmony87.cjs +3 -6
- package/dist/harmony87.cjs.map +1 -1
- package/dist/harmony87.mjs +3 -6
- package/dist/harmony87.mjs.map +1 -1
- package/dist/harmony88.cjs +21 -24
- package/dist/harmony88.cjs.map +1 -1
- package/dist/harmony88.mjs +20 -23
- package/dist/harmony88.mjs.map +1 -1
- package/dist/harmony89.cjs +9 -3
- package/dist/harmony89.cjs.map +1 -1
- package/dist/harmony89.mjs +9 -3
- package/dist/harmony89.mjs.map +1 -1
- package/dist/harmony90.cjs +9 -19
- package/dist/harmony90.cjs.map +1 -1
- package/dist/harmony90.mjs +11 -21
- package/dist/harmony90.mjs.map +1 -1
- package/dist/harmony91.cjs +20 -11
- package/dist/harmony91.cjs.map +1 -1
- package/dist/harmony91.mjs +20 -11
- package/dist/harmony91.mjs.map +1 -1
- package/dist/harmony92.cjs +21 -99
- package/dist/harmony92.cjs.map +1 -1
- package/dist/harmony92.mjs +20 -81
- package/dist/harmony92.mjs.map +1 -1
- package/dist/harmony93.cjs +5 -18
- package/dist/harmony93.cjs.map +1 -1
- package/dist/harmony93.mjs +5 -18
- package/dist/harmony93.mjs.map +1 -1
- package/dist/harmony94.cjs +130 -12
- package/dist/harmony94.cjs.map +1 -1
- package/dist/harmony94.mjs +130 -12
- package/dist/harmony94.mjs.map +1 -1
- package/dist/harmony95.cjs +13 -17
- package/dist/harmony95.cjs.map +1 -1
- package/dist/harmony95.mjs +12 -16
- package/dist/harmony95.mjs.map +1 -1
- package/dist/harmony96.cjs +6 -22
- package/dist/harmony96.cjs.map +1 -1
- package/dist/harmony96.mjs +5 -21
- package/dist/harmony96.mjs.map +1 -1
- package/dist/harmony97.cjs +39 -4
- package/dist/harmony97.cjs.map +1 -1
- package/dist/harmony97.mjs +39 -4
- package/dist/harmony97.mjs.map +1 -1
- package/dist/harmony98.cjs +55 -127
- package/dist/harmony98.cjs.map +1 -1
- package/dist/harmony98.mjs +55 -127
- package/dist/harmony98.mjs.map +1 -1
- package/dist/harmony99.cjs +7 -12
- package/dist/harmony99.cjs.map +1 -1
- package/dist/harmony99.mjs +6 -11
- package/dist/harmony99.mjs.map +1 -1
- package/dist/types/src/features/publicApi/team.d.ts +2 -2
- package/dist/types/src/features/publicApi/types/teamTypes.d.ts +4 -6
- package/package.json +1 -1
package/dist/harmony66.cjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
4
|
-
const Avatar_module = require("./
|
4
|
+
const Avatar_module = require("./harmony79.cjs");
|
5
5
|
const Avatar = ({
|
6
6
|
src,
|
7
7
|
href = "/",
|
package/dist/harmony66.mjs
CHANGED
package/dist/harmony67.cjs
CHANGED
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
4
4
|
const louis = require("@lokalise/louis");
|
5
5
|
const clsx = require("./harmony62.cjs");
|
6
|
-
const IconLink_module = require("./
|
6
|
+
const IconLink_module = require("./harmony80.cjs");
|
7
7
|
const IconLink = ({ label, to, icon: Icon }) => {
|
8
8
|
return /* @__PURE__ */ jsxRuntime.jsx(louis.Tooltip, { placement: "right", tooltip: label, children: /* @__PURE__ */ jsxRuntime.jsx(
|
9
9
|
louis.Link,
|
package/dist/harmony67.mjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
2
2
|
import { Tooltip, Link } from "@lokalise/louis";
|
3
3
|
import { clsx } from "./harmony62.mjs";
|
4
|
-
import styles from "./
|
4
|
+
import styles from "./harmony80.mjs";
|
5
5
|
const IconLink = ({ label, to, icon: Icon }) => {
|
6
6
|
return /* @__PURE__ */ jsx(Tooltip, { placement: "right", tooltip: label, children: /* @__PURE__ */ jsx(
|
7
7
|
Link,
|
package/dist/harmony68.cjs
CHANGED
@@ -3,7 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
4
4
|
const louis = require("@lokalise/louis");
|
5
5
|
const clsx = require("./harmony62.cjs");
|
6
|
-
const Menu_module = require("./
|
6
|
+
const Menu_module = require("./harmony81.cjs");
|
7
7
|
const Menu = ({ children, icon: Icon }) => {
|
8
8
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
9
9
|
louis.Menu,
|
package/dist/harmony68.mjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
2
2
|
import { Menu as Menu$1, MenuList, Tooltip } from "@lokalise/louis";
|
3
3
|
import { clsx } from "./harmony62.mjs";
|
4
|
-
import styles from "./
|
4
|
+
import styles from "./harmony81.mjs";
|
5
5
|
const Menu = ({ children, icon: Icon }) => {
|
6
6
|
return /* @__PURE__ */ jsx(
|
7
7
|
Menu$1,
|
package/dist/harmony69.cjs
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
4
|
-
const ProfileMenuContent = require("./
|
5
|
-
const ProfileMenuProvider = require("./
|
4
|
+
const ProfileMenuContent = require("./harmony82.cjs");
|
5
|
+
const ProfileMenuProvider = require("./harmony83.cjs");
|
6
6
|
const ProfileMenu = ({ config, children }) => /* @__PURE__ */ jsxRuntime.jsx(ProfileMenuProvider.ProfileMenuProvider, { config, children: /* @__PURE__ */ jsxRuntime.jsx(ProfileMenuContent.ProfileMenuContent, { children }) });
|
7
7
|
exports.ProfileMenu = ProfileMenu;
|
8
8
|
//# sourceMappingURL=harmony69.cjs.map
|
package/dist/harmony69.mjs
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
2
|
-
import { ProfileMenuContent } from "./
|
3
|
-
import { ProfileMenuProvider } from "./
|
2
|
+
import { ProfileMenuContent } from "./harmony82.mjs";
|
3
|
+
import { ProfileMenuProvider } from "./harmony83.mjs";
|
4
4
|
const ProfileMenu = ({ config, children }) => /* @__PURE__ */ jsx(ProfileMenuProvider, { config, children: /* @__PURE__ */ jsx(ProfileMenuContent, { children }) });
|
5
5
|
export {
|
6
6
|
ProfileMenu
|
package/dist/harmony70.cjs
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
4
4
|
const louis = require("@lokalise/louis");
|
5
|
-
const ProfileMenuContext = require("./
|
6
|
-
const ProfileSettingsMenuItem_module = require("./
|
5
|
+
const ProfileMenuContext = require("./harmony84.cjs");
|
6
|
+
const ProfileSettingsMenuItem_module = require("./harmony85.cjs");
|
7
7
|
const ProfileSettingsMenuItem = ({
|
8
8
|
href,
|
9
9
|
onClick,
|
package/dist/harmony70.mjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
2
2
|
import { MenuItem, MenuDivider } from "@lokalise/louis";
|
3
|
-
import { useProfileMenu } from "./
|
4
|
-
import styles from "./
|
3
|
+
import { useProfileMenu } from "./harmony84.mjs";
|
4
|
+
import styles from "./harmony85.mjs";
|
5
5
|
const ProfileSettingsMenuItem = ({
|
6
6
|
href,
|
7
7
|
onClick,
|
package/dist/harmony71.cjs
CHANGED
@@ -3,8 +3,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
4
4
|
const louis = require("@lokalise/louis");
|
5
5
|
const plan = require("./harmony7.cjs");
|
6
|
-
const ProfileMenuContext = require("./
|
7
|
-
const TeamMenuItem_module = require("./
|
6
|
+
const ProfileMenuContext = require("./harmony84.cjs");
|
7
|
+
const TeamMenuItem_module = require("./harmony86.cjs");
|
8
8
|
const TeamMenuItem = ({ team, onClick, hidePlanLabel }) => {
|
9
9
|
const { currentTeam, planId } = ProfileMenuContext.useProfileMenu();
|
10
10
|
const contextTeam = team || currentTeam;
|
package/dist/harmony71.mjs
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
2
2
|
import { MenuItem, UserIcon } from "@lokalise/louis";
|
3
3
|
import { isFreePlan, isTrialPlan } from "./harmony7.mjs";
|
4
|
-
import { useProfileMenu } from "./
|
5
|
-
import styles from "./
|
4
|
+
import { useProfileMenu } from "./harmony84.mjs";
|
5
|
+
import styles from "./harmony86.mjs";
|
6
6
|
const TeamMenuItem = ({ team, onClick, hidePlanLabel }) => {
|
7
7
|
const { currentTeam, planId } = useProfileMenu();
|
8
8
|
const contextTeam = team || currentTeam;
|
package/dist/harmony72.cjs
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
4
|
-
const ProfileMenuContext = require("./
|
4
|
+
const ProfileMenuContext = require("./harmony84.cjs");
|
5
5
|
const TeamMenuItem = require("./harmony71.cjs");
|
6
|
-
const TeamSwitch_module = require("./
|
6
|
+
const TeamSwitch_module = require("./harmony87.cjs");
|
7
7
|
const TeamSwitch = ({ onSwitchTeam }) => {
|
8
8
|
const { otherTeams } = ProfileMenuContext.useProfileMenu();
|
9
9
|
if (otherTeams.length === 0) {
|
package/dist/harmony72.mjs
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
2
|
-
import { useProfileMenu } from "./
|
2
|
+
import { useProfileMenu } from "./harmony84.mjs";
|
3
3
|
import { TeamMenuItem } from "./harmony71.mjs";
|
4
|
-
import styles from "./
|
4
|
+
import styles from "./harmony87.mjs";
|
5
5
|
const TeamSwitch = ({ onSwitchTeam }) => {
|
6
6
|
const { otherTeams } = useProfileMenu();
|
7
7
|
if (otherTeams.length === 0) {
|
package/dist/harmony73.cjs
CHANGED
@@ -3,9 +3,9 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
4
4
|
const louis = require("@lokalise/louis");
|
5
5
|
const plan = require("./harmony7.cjs");
|
6
|
-
const UpgradeIcon = require("./
|
7
|
-
const ProfileMenuContext = require("./
|
8
|
-
const UpgradeMenuItem_module = require("./
|
6
|
+
const UpgradeIcon = require("./harmony88.cjs");
|
7
|
+
const ProfileMenuContext = require("./harmony84.cjs");
|
8
|
+
const UpgradeMenuItem_module = require("./harmony89.cjs");
|
9
9
|
const UpgradeMenuItem = ({ upgradeOptionHref }) => {
|
10
10
|
const { planId, trialDaysLeft, showUpgradeCta } = ProfileMenuContext.useProfileMenu();
|
11
11
|
if (!showUpgradeCta) {
|
package/dist/harmony73.mjs
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
2
2
|
import { MenuItem } from "@lokalise/louis";
|
3
3
|
import { isFreePlan } from "./harmony7.mjs";
|
4
|
-
import { UpgradeIcon } from "./
|
5
|
-
import { useProfileMenu } from "./
|
6
|
-
import styles from "./
|
4
|
+
import { UpgradeIcon } from "./harmony88.mjs";
|
5
|
+
import { useProfileMenu } from "./harmony84.mjs";
|
6
|
+
import styles from "./harmony89.mjs";
|
7
7
|
const UpgradeMenuItem = ({ upgradeOptionHref }) => {
|
8
8
|
const { planId, trialDaysLeft, showUpgradeCta } = useProfileMenu();
|
9
9
|
if (!showUpgradeCta) {
|
package/dist/harmony74.cjs
CHANGED
@@ -1,16 +1,16 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
4
|
-
const floatingUi_core = require("./
|
4
|
+
const floatingUi_core = require("./harmony94.cjs");
|
5
5
|
const louis = require("@lokalise/louis");
|
6
6
|
const useEffectOnce = require("./harmony11.cjs");
|
7
7
|
const clsx = require("./harmony62.cjs");
|
8
8
|
const React = require("react");
|
9
|
-
const Tasks_module = require("./
|
10
|
-
const TasksContext = require("./
|
11
|
-
const TasksPopover = require("./
|
12
|
-
const TasksProvider = require("./
|
13
|
-
const taskEvents = require("./
|
9
|
+
const Tasks_module = require("./harmony95.cjs");
|
10
|
+
const TasksContext = require("./harmony96.cjs");
|
11
|
+
const TasksPopover = require("./harmony97.cjs");
|
12
|
+
const TasksProvider = require("./harmony98.cjs");
|
13
|
+
const taskEvents = require("./harmony99.cjs");
|
14
14
|
const Tasks = TasksProvider.withTasksContext(() => {
|
15
15
|
const [open, setOpen] = React.useState(false);
|
16
16
|
const { tasksCount } = TasksContext.useTasks();
|
package/dist/harmony74.mjs
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
2
|
-
import { shift } from "./
|
2
|
+
import { shift } from "./harmony94.mjs";
|
3
3
|
import { Tooltip, Popover, Button, JobIcon } from "@lokalise/louis";
|
4
4
|
import { useEffectOnce } from "./harmony11.mjs";
|
5
5
|
import { clsx } from "./harmony62.mjs";
|
6
6
|
import { useState } from "react";
|
7
|
-
import styles from "./
|
8
|
-
import { useTasks } from "./
|
9
|
-
import { TasksPopover } from "./
|
10
|
-
import { withTasksContext } from "./
|
11
|
-
import { TaskEvents } from "./
|
7
|
+
import styles from "./harmony95.mjs";
|
8
|
+
import { useTasks } from "./harmony96.mjs";
|
9
|
+
import { TasksPopover } from "./harmony97.mjs";
|
10
|
+
import { withTasksContext } from "./harmony98.mjs";
|
11
|
+
import { TaskEvents } from "./harmony99.mjs";
|
12
12
|
const Tasks = withTasksContext(() => {
|
13
13
|
const [open, setOpen] = useState(false);
|
14
14
|
const { tasksCount } = useTasks();
|
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("./harmony90.cjs");
|
8
|
+
const styles_module = require("./harmony91.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 "./harmony90.mjs";
|
6
|
+
import classes from "./harmony91.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,14 +1,9 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
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;
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const logoLink = "_logoLink_1baxb_1";
|
4
|
+
const styles = {
|
5
|
+
logoLink
|
6
|
+
};
|
7
|
+
exports.default = styles;
|
8
|
+
exports.logoLink = logoLink;
|
14
9
|
//# sourceMappingURL=harmony79.cjs.map
|
package/dist/harmony79.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony79.cjs","sources":[
|
1
|
+
{"version":3,"file":"harmony79.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/harmony79.mjs
CHANGED
@@ -1,14 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
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
|
-
] });
|
1
|
+
const logoLink = "_logoLink_1baxb_1";
|
2
|
+
const styles = {
|
3
|
+
logoLink
|
4
|
+
};
|
11
5
|
export {
|
12
|
-
|
6
|
+
styles as default,
|
7
|
+
logoLink
|
13
8
|
};
|
14
9
|
//# sourceMappingURL=harmony79.mjs.map
|
package/dist/harmony79.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony79.mjs","sources":[
|
1
|
+
{"version":3,"file":"harmony79.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/harmony80.cjs
CHANGED
@@ -1,24 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
-
const
|
4
|
-
const
|
5
|
-
const
|
6
|
-
|
7
|
-
|
8
|
-
const projectNavigationItemDisabled = "_projectNavigationItemDisabled_1pc1v_67";
|
9
|
-
const classes = {
|
10
|
-
badge,
|
11
|
-
tag,
|
12
|
-
withNavLinkStyle,
|
13
|
-
disabled,
|
14
|
-
projectNavigationItem,
|
15
|
-
projectNavigationItemDisabled
|
3
|
+
const link = "_link_18vhx_1";
|
4
|
+
const active = "_active_18vhx_18";
|
5
|
+
const styles = {
|
6
|
+
link,
|
7
|
+
active
|
16
8
|
};
|
17
|
-
exports.
|
18
|
-
exports.default =
|
19
|
-
exports.
|
20
|
-
exports.projectNavigationItem = projectNavigationItem;
|
21
|
-
exports.projectNavigationItemDisabled = projectNavigationItemDisabled;
|
22
|
-
exports.tag = tag;
|
23
|
-
exports.withNavLinkStyle = withNavLinkStyle;
|
9
|
+
exports.active = active;
|
10
|
+
exports.default = styles;
|
11
|
+
exports.link = link;
|
24
12
|
//# 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,24 +1,12 @@
|
|
1
|
-
const
|
2
|
-
const
|
3
|
-
const
|
4
|
-
|
5
|
-
|
6
|
-
const projectNavigationItemDisabled = "_projectNavigationItemDisabled_1pc1v_67";
|
7
|
-
const classes = {
|
8
|
-
badge,
|
9
|
-
tag,
|
10
|
-
withNavLinkStyle,
|
11
|
-
disabled,
|
12
|
-
projectNavigationItem,
|
13
|
-
projectNavigationItemDisabled
|
1
|
+
const link = "_link_18vhx_1";
|
2
|
+
const active = "_active_18vhx_18";
|
3
|
+
const styles = {
|
4
|
+
link,
|
5
|
+
active
|
14
6
|
};
|
15
7
|
export {
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
projectNavigationItem,
|
20
|
-
projectNavigationItemDisabled,
|
21
|
-
tag,
|
22
|
-
withNavLinkStyle
|
8
|
+
active,
|
9
|
+
styles as default,
|
10
|
+
link
|
23
11
|
};
|
24
12
|
//# 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,9 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
-
const
|
3
|
+
const dropdownButton = "_dropdownButton_13l5r_1";
|
4
|
+
const dropdownButtonActive = "_dropdownButtonActive_13l5r_18";
|
4
5
|
const styles = {
|
5
|
-
|
6
|
+
dropdownButton,
|
7
|
+
dropdownButtonActive
|
6
8
|
};
|
7
9
|
exports.default = styles;
|
8
|
-
exports.
|
10
|
+
exports.dropdownButton = dropdownButton;
|
11
|
+
exports.dropdownButtonActive = dropdownButtonActive;
|
9
12
|
//# 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,9 +1,12 @@
|
|
1
|
-
const
|
1
|
+
const dropdownButton = "_dropdownButton_13l5r_1";
|
2
|
+
const dropdownButtonActive = "_dropdownButtonActive_13l5r_18";
|
2
3
|
const styles = {
|
3
|
-
|
4
|
+
dropdownButton,
|
5
|
+
dropdownButtonActive
|
4
6
|
};
|
5
7
|
export {
|
6
8
|
styles as default,
|
7
|
-
|
9
|
+
dropdownButton,
|
10
|
+
dropdownButtonActive
|
8
11
|
};
|
9
12
|
//# 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,12 +1,60 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
const
|
6
|
-
|
7
|
-
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
4
|
+
const louis = require("@lokalise/louis");
|
5
|
+
const clsx = require("./harmony62.cjs");
|
6
|
+
const UpgradeIcon = require("./harmony88.cjs");
|
7
|
+
const ProfileMenuContent_module = require("./harmony92.cjs");
|
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
|
+
);
|
8
58
|
};
|
9
|
-
exports.
|
10
|
-
exports.default = styles;
|
11
|
-
exports.link = link;
|
59
|
+
exports.ProfileMenuContent = ProfileMenuContent;
|
12
60
|
//# sourceMappingURL=harmony82.cjs.map
|
package/dist/harmony82.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony82.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony82.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/harmony82.mjs
CHANGED
@@ -1,12 +1,60 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
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 "./harmony88.mjs";
|
5
|
+
import styles from "./harmony92.mjs";
|
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
|
+
);
|
6
56
|
};
|
7
57
|
export {
|
8
|
-
|
9
|
-
styles as default,
|
10
|
-
link
|
58
|
+
ProfileMenuContent
|
11
59
|
};
|
12
60
|
//# sourceMappingURL=harmony82.mjs.map
|
package/dist/harmony82.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony82.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
1
|
+
{"version":3,"file":"harmony82.mjs","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":[],"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,MACG,eAAe;AAGlB,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,YAAY,MACX,qBAAC,UAAO,EAAA,WAAW,OAAO,eAAe,cAAW,gBAAe,MAAK,UACtE,UAAA;AAAA,SAAA,2CAAa,WACb;AAAA,UAAC;AAAA,UAAA;AAAA,YACA,KAAK,YAAY;AAAA,YACjB,WAAW,KAAK,OAAO,cAAc;AAAA,cACpC,CAAC,OAAO,qBAAqB,GAAG;AAAA,YAAA,CAChC;AAAA,YACD,KAAI;AAAA,UAAA;AAAA,QAAA,IAGL;AAAA,UAAC;AAAA,UAAA;AAAA,YACA,WAAW,KAAK,OAAO,iBAAiB,YAAY,gBAAgB,gBAAgB;AAAA,cACnF,CAAC,OAAO,qBAAqB,GAAG;AAAA,YAAA,CAChC;AAAA,YAED,UAAA,oBAAC,UAAS,EAAA,MAAM,OAAQ,CAAA;AAAA,UAAA;AAAA,QACzB;AAAA,QAEA,kBAAkB,oBAAC,aAAY,EAAA,WAAW,OAAO,wBAAyB,CAAA;AAAA,MAAA,GAC5E;AAAA,MAGD,8BAAC,UAAS,EAAA,WAAU,aAAY,WAAW,OAAO,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;"}
|