@lokalise/harmony 1.27.1 → 1.27.3-exp-fixTeamsTypes.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/harmony.cjs +21 -15
- package/dist/harmony.cjs.map +1 -1
- package/dist/harmony.mjs +21 -15
- package/dist/harmony.mjs.map +1 -1
- package/dist/harmony100.cjs +4 -59
- package/dist/harmony100.cjs.map +1 -1
- package/dist/harmony100.mjs +5 -60
- package/dist/harmony100.mjs.map +1 -1
- package/dist/harmony101.cjs +39 -6
- package/dist/harmony101.cjs.map +1 -1
- package/dist/harmony101.mjs +39 -6
- package/dist/harmony101.mjs.map +1 -1
- package/dist/harmony102.cjs +60 -6
- package/dist/harmony102.cjs.map +1 -1
- package/dist/harmony102.mjs +59 -5
- package/dist/harmony102.mjs.map +1 -1
- package/dist/harmony103.cjs +8 -6
- package/dist/harmony103.cjs.map +1 -1
- package/dist/harmony103.mjs +7 -5
- package/dist/harmony103.mjs.map +1 -1
- package/dist/harmony104.cjs +6 -5
- package/dist/harmony104.cjs.map +1 -1
- package/dist/harmony104.mjs +6 -5
- package/dist/harmony105.cjs +6 -63
- package/dist/harmony105.cjs.map +1 -1
- package/dist/harmony105.mjs +5 -62
- package/dist/harmony105.mjs.map +1 -1
- package/dist/harmony106.cjs +6 -89
- package/dist/harmony106.cjs.map +1 -1
- package/dist/harmony106.mjs +5 -88
- package/dist/harmony106.mjs.map +1 -1
- package/dist/harmony107.cjs +63 -19
- package/dist/harmony107.cjs.map +1 -1
- package/dist/harmony107.mjs +62 -18
- package/dist/harmony107.mjs.map +1 -1
- package/dist/harmony108.cjs +85 -93
- package/dist/harmony108.cjs.map +1 -1
- package/dist/harmony108.mjs +85 -93
- package/dist/harmony108.mjs.map +1 -1
- package/dist/harmony109.cjs +19 -14
- package/dist/harmony109.cjs.map +1 -1
- package/dist/harmony109.mjs +18 -13
- package/dist/harmony109.mjs.map +1 -1
- package/dist/harmony110.cjs +95 -13
- package/dist/harmony110.cjs.map +1 -1
- package/dist/harmony110.mjs +95 -13
- package/dist/harmony110.mjs.map +1 -1
- package/dist/harmony111.cjs +11 -34
- package/dist/harmony111.cjs.map +1 -1
- package/dist/harmony111.mjs +11 -34
- package/dist/harmony111.mjs.map +1 -1
- package/dist/harmony112.cjs +13 -27
- package/dist/harmony112.cjs.map +1 -1
- package/dist/harmony112.mjs +13 -27
- package/dist/harmony112.mjs.map +1 -1
- package/dist/harmony113.cjs +36 -7
- package/dist/harmony113.cjs.map +1 -1
- package/dist/harmony113.mjs +36 -7
- package/dist/harmony113.mjs.map +1 -1
- package/dist/harmony114.cjs +27 -56
- package/dist/harmony114.cjs.map +1 -1
- package/dist/harmony114.mjs +27 -56
- package/dist/harmony114.mjs.map +1 -1
- package/dist/harmony115.cjs +13 -60
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +13 -60
- package/dist/harmony115.mjs.map +1 -1
- package/dist/harmony116.cjs +16 -19
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +15 -18
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +15 -12
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +15 -12
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +7 -15
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +7 -15
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony119.cjs +57 -16
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +57 -16
- package/dist/harmony119.mjs.map +1 -1
- package/dist/harmony120.cjs +59 -45
- package/dist/harmony120.cjs.map +1 -1
- package/dist/harmony120.mjs +59 -45
- package/dist/harmony120.mjs.map +1 -1
- package/dist/harmony121.cjs +15 -9
- package/dist/harmony121.cjs.map +1 -1
- package/dist/harmony121.mjs +15 -9
- package/dist/harmony121.mjs.map +1 -1
- package/dist/harmony127.cjs +1 -1
- package/dist/harmony127.mjs +1 -1
- package/dist/harmony130.cjs +49 -0
- package/dist/harmony130.cjs.map +1 -0
- package/dist/harmony130.mjs +49 -0
- package/dist/harmony130.mjs.map +1 -0
- package/dist/harmony131.cjs +15 -0
- package/dist/harmony131.cjs.map +1 -0
- package/dist/harmony131.mjs +15 -0
- package/dist/harmony131.mjs.map +1 -0
- 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/harmony25.cjs +1 -1
- package/dist/harmony25.mjs +1 -1
- package/dist/harmony26.cjs +2 -2
- package/dist/harmony26.mjs +2 -2
- package/dist/harmony27.cjs +2 -2
- package/dist/harmony27.mjs +2 -2
- package/dist/harmony28.cjs +2 -2
- package/dist/harmony28.mjs +2 -2
- package/dist/harmony29.cjs +1 -1
- package/dist/harmony29.mjs +1 -1
- package/dist/harmony3.cjs +3 -3
- package/dist/harmony3.mjs +3 -3
- package/dist/harmony30.cjs +3 -3
- package/dist/harmony30.mjs +3 -3
- package/dist/harmony31.cjs +1 -1
- package/dist/harmony31.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/harmony4.cjs +10 -10
- package/dist/harmony4.mjs +10 -10
- package/dist/harmony45.cjs +14 -12
- package/dist/harmony45.cjs.map +1 -1
- package/dist/harmony45.mjs +14 -12
- package/dist/harmony45.mjs.map +1 -1
- package/dist/harmony46.cjs +12 -14
- package/dist/harmony46.cjs.map +1 -1
- package/dist/harmony46.mjs +12 -14
- package/dist/harmony46.mjs.map +1 -1
- package/dist/harmony47.cjs +9 -6
- package/dist/harmony47.cjs.map +1 -1
- package/dist/harmony47.mjs +12 -9
- package/dist/harmony47.mjs.map +1 -1
- package/dist/harmony48.cjs +17 -56
- package/dist/harmony48.cjs.map +1 -1
- package/dist/harmony48.mjs +17 -56
- package/dist/harmony48.mjs.map +1 -1
- package/dist/harmony49.cjs +13 -79
- package/dist/harmony49.cjs.map +1 -1
- package/dist/harmony49.mjs +13 -79
- package/dist/harmony49.mjs.map +1 -1
- package/dist/harmony5.cjs +1 -1
- package/dist/harmony5.mjs +1 -1
- package/dist/harmony50.cjs +54 -4
- package/dist/harmony50.cjs.map +1 -1
- package/dist/harmony50.mjs +54 -4
- package/dist/harmony50.mjs.map +1 -1
- package/dist/harmony51.cjs +79 -22
- package/dist/harmony51.cjs.map +1 -1
- package/dist/harmony51.mjs +78 -21
- package/dist/harmony51.mjs.map +1 -1
- package/dist/harmony52.cjs +4 -35
- package/dist/harmony52.cjs.map +1 -1
- package/dist/harmony52.mjs +4 -35
- package/dist/harmony52.mjs.map +1 -1
- package/dist/harmony53.cjs +22 -116
- package/dist/harmony53.cjs.map +1 -1
- package/dist/harmony53.mjs +20 -114
- package/dist/harmony53.mjs.map +1 -1
- package/dist/harmony54.cjs +35 -19
- package/dist/harmony54.cjs.map +1 -1
- package/dist/harmony54.mjs +35 -19
- package/dist/harmony54.mjs.map +1 -1
- package/dist/harmony55.cjs +115 -24
- package/dist/harmony55.cjs.map +1 -1
- package/dist/harmony55.mjs +115 -24
- package/dist/harmony55.mjs.map +1 -1
- package/dist/harmony56.cjs +20 -7
- package/dist/harmony56.cjs.map +1 -1
- package/dist/harmony56.mjs +20 -7
- package/dist/harmony56.mjs.map +1 -1
- package/dist/harmony57.cjs +24 -48
- package/dist/harmony57.cjs.map +1 -1
- package/dist/harmony57.mjs +24 -48
- package/dist/harmony57.mjs.map +1 -1
- package/dist/harmony58.cjs +7 -23
- package/dist/harmony58.cjs.map +1 -1
- package/dist/harmony58.mjs +7 -23
- package/dist/harmony58.mjs.map +1 -1
- package/dist/harmony59.cjs +63 -16
- package/dist/harmony59.cjs.map +1 -1
- package/dist/harmony59.mjs +63 -16
- package/dist/harmony59.mjs.map +1 -1
- package/dist/harmony6.cjs +4 -4
- package/dist/harmony6.mjs +4 -4
- package/dist/harmony60.cjs +25 -16
- package/dist/harmony60.cjs.map +1 -1
- package/dist/harmony60.mjs +24 -15
- package/dist/harmony60.mjs.map +1 -1
- package/dist/harmony61.cjs +19 -19
- package/dist/harmony61.cjs.map +1 -1
- package/dist/harmony61.mjs +18 -18
- package/dist/harmony61.mjs.map +1 -1
- package/dist/harmony62.cjs +14 -60
- package/dist/harmony62.cjs.map +1 -1
- package/dist/harmony62.mjs +14 -60
- package/dist/harmony62.mjs.map +1 -1
- package/dist/harmony63.cjs +17 -5
- package/dist/harmony63.cjs.map +1 -1
- package/dist/harmony63.mjs +17 -5
- package/dist/harmony63.mjs.map +1 -1
- package/dist/harmony64.cjs +62 -10
- package/dist/harmony64.cjs.map +1 -1
- package/dist/harmony64.mjs +61 -9
- package/dist/harmony64.mjs.map +1 -1
- package/dist/harmony65.cjs +6 -18
- package/dist/harmony65.cjs.map +1 -1
- package/dist/harmony65.mjs +5 -17
- package/dist/harmony65.mjs.map +1 -1
- package/dist/harmony66.cjs +8 -22
- package/dist/harmony66.cjs.map +1 -1
- package/dist/harmony66.mjs +7 -21
- package/dist/harmony66.mjs.map +1 -1
- package/dist/harmony67.cjs +17 -4
- package/dist/harmony67.cjs.map +1 -1
- package/dist/harmony67.mjs +17 -4
- package/dist/harmony67.mjs.map +1 -1
- package/dist/harmony68.cjs +20 -29
- package/dist/harmony68.cjs.map +1 -1
- package/dist/harmony68.mjs +22 -31
- package/dist/harmony68.mjs.map +1 -1
- package/dist/harmony69.cjs +4 -31
- package/dist/harmony69.cjs.map +1 -1
- package/dist/harmony69.mjs +5 -32
- package/dist/harmony69.mjs.map +1 -1
- package/dist/harmony70.cjs +28 -15
- package/dist/harmony70.cjs.map +1 -1
- package/dist/harmony70.mjs +28 -15
- package/dist/harmony70.mjs.map +1 -1
- package/dist/harmony71.cjs +19 -18
- package/dist/harmony71.cjs.map +1 -1
- package/dist/harmony71.mjs +21 -20
- package/dist/harmony71.mjs.map +1 -1
- package/dist/harmony72.cjs +16 -56
- package/dist/harmony72.cjs.map +1 -1
- package/dist/harmony72.mjs +17 -57
- package/dist/harmony72.mjs.map +1 -1
- package/dist/harmony73.cjs +31 -9
- package/dist/harmony73.cjs.map +1 -1
- package/dist/harmony73.mjs +30 -8
- package/dist/harmony73.mjs.map +1 -1
- package/dist/harmony74.cjs +56 -5
- package/dist/harmony74.cjs.map +1 -1
- package/dist/harmony74.mjs +59 -8
- package/dist/harmony74.mjs.map +1 -1
- package/dist/harmony75.cjs +10 -30
- package/dist/harmony75.cjs.map +1 -1
- package/dist/harmony75.mjs +9 -29
- package/dist/harmony75.mjs.map +1 -1
- package/dist/harmony76.cjs +8 -3
- package/dist/harmony76.cjs.map +1 -1
- package/dist/harmony76.mjs +8 -3
- package/dist/harmony76.mjs.map +1 -1
- package/dist/harmony77.cjs +27 -9
- package/dist/harmony77.cjs.map +1 -1
- package/dist/harmony77.mjs +29 -11
- package/dist/harmony77.mjs.map +1 -1
- package/dist/harmony78.cjs +4 -22
- package/dist/harmony78.cjs.map +1 -1
- package/dist/harmony78.mjs +3 -21
- package/dist/harmony78.mjs.map +1 -1
- 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 -32
- package/dist/harmony83.cjs.map +1 -1
- package/dist/harmony83.mjs +8 -31
- 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 +21 -18
- package/dist/harmony90.cjs.map +1 -1
- package/dist/harmony90.mjs +21 -18
- package/dist/harmony90.mjs.map +1 -1
- package/dist/harmony91.cjs +12 -14
- package/dist/harmony91.cjs.map +1 -1
- package/dist/harmony91.mjs +11 -13
- package/dist/harmony91.mjs.map +1 -1
- package/dist/harmony92.cjs +97 -14
- package/dist/harmony92.cjs.map +1 -1
- package/dist/harmony92.mjs +80 -14
- package/dist/harmony92.mjs.map +1 -1
- 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 -4
- package/dist/harmony94.cjs.map +1 -1
- package/dist/harmony94.mjs +13 -4
- package/dist/harmony94.mjs.map +1 -1
- package/dist/harmony95.cjs +14 -97
- package/dist/harmony95.cjs.map +1 -1
- package/dist/harmony95.mjs +14 -80
- package/dist/harmony95.mjs.map +1 -1
- package/dist/harmony96.cjs +21 -132
- package/dist/harmony96.cjs.map +1 -1
- package/dist/harmony96.mjs +20 -131
- package/dist/harmony96.mjs.map +1 -1
- package/dist/harmony97.cjs +5 -12
- package/dist/harmony97.cjs.map +1 -1
- package/dist/harmony97.mjs +4 -11
- package/dist/harmony97.mjs.map +1 -1
- package/dist/harmony98.cjs +132 -5
- package/dist/harmony98.cjs.map +1 -1
- package/dist/harmony98.mjs +132 -5
- package/dist/harmony98.mjs.map +1 -1
- package/dist/harmony99.cjs +12 -40
- package/dist/harmony99.cjs.map +1 -1
- package/dist/harmony99.mjs +11 -39
- package/dist/harmony99.mjs.map +1 -1
- package/dist/types/src/features/publicApi/hooks/useListTeamsQuery.d.ts +2 -2
- package/dist/types/src/features/publicApi/hooks/useRetrieveTeamQuery.d.ts +2 -2
- package/dist/types/src/features/publicApi/node.d.ts +2 -0
- package/dist/types/src/features/publicApi/team.d.ts +22 -22
- package/dist/types/src/features/publicApi/types/teamTypes.d.ts +36 -26
- package/package.json +1 -1
package/dist/harmony65.mjs
CHANGED
@@ -1,21 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
import styles from "./harmony80.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]: window.location.pathname.startsWith(to)
|
12
|
-
}),
|
13
|
-
href: to,
|
14
|
-
children: /* @__PURE__ */ jsx(Icon, { size: "25px" })
|
15
|
-
}
|
16
|
-
) });
|
1
|
+
const sidebarContainer = "_sidebarContainer_bmdti_1";
|
2
|
+
const styles = {
|
3
|
+
sidebarContainer
|
17
4
|
};
|
18
5
|
export {
|
19
|
-
|
6
|
+
styles as default,
|
7
|
+
sidebarContainer
|
20
8
|
};
|
21
9
|
//# sourceMappingURL=harmony65.mjs.map
|
package/dist/harmony65.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony65.mjs","sources":[
|
1
|
+
{"version":3,"file":"harmony65.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/harmony66.cjs
CHANGED
@@ -1,26 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
4
|
-
const
|
5
|
-
const
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
"button",
|
13
|
-
{
|
14
|
-
type: "button",
|
15
|
-
className: clsx.clsx(Menu_module.default.dropdownButton, {
|
16
|
-
[Menu_module.default.dropdownButtonActive]: opened
|
17
|
-
}),
|
18
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: "25px" })
|
19
|
-
}
|
20
|
-
) }),
|
21
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(louis.MenuList, { placement: "right-start", children })
|
22
|
-
}
|
23
|
-
);
|
24
|
-
};
|
25
|
-
exports.Menu = Menu;
|
4
|
+
const Avatar_module = require("./harmony81.cjs");
|
5
|
+
const Avatar = ({
|
6
|
+
src,
|
7
|
+
href = "/",
|
8
|
+
ariaLabel = "Lokalise App Home",
|
9
|
+
alt = "Lokalise Logo"
|
10
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx("a", { className: Avatar_module.default.logoLink, href, "aria-label": ariaLabel, children: /* @__PURE__ */ jsxRuntime.jsx("img", { src, alt }) });
|
11
|
+
exports.Avatar = Avatar;
|
26
12
|
//# sourceMappingURL=harmony66.cjs.map
|
package/dist/harmony66.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony66.cjs","sources":["../src/components/Sidebar/Widgets/
|
1
|
+
{"version":3,"file":"harmony66.cjs","sources":["../src/components/Sidebar/Widgets/Avatar/Avatar.tsx"],"sourcesContent":["import styles from './Avatar.module.css'\n\ntype AvatarProps = {\n\t/** URL of the avatar/logo image */\n\tsrc: string\n\t/** Link destination when avatar is clicked. Defaults to '/' */\n\thref?: string\n\t/** Accessibility label for the avatar link. Defaults to 'Home' */\n\tariaLabel?: string\n\t/** Alt text for the avatar image. Defaults to 'Lokalise' */\n\talt?: string\n}\n\n/**\n * Display company main avatar / logo in the top section of the Sidebar.\n * Used as the main branding element and home navigation link.\n */\nexport const Avatar = ({\n\tsrc,\n\thref = '/',\n\tariaLabel = 'Lokalise App Home',\n\talt = 'Lokalise Logo',\n}: AvatarProps) => (\n\t<a className={styles.logoLink} href={href} aria-label={ariaLabel}>\n\t\t<img src={src} alt={alt} />\n\t</a>\n)\n"],"names":["jsx","styles"],"mappings":";;;;AAiBO,MAAM,SAAS,CAAC;AAAA,EACtB;AAAA,EACA,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,MAAM;AACP,MACEA,2BAAAA,IAAA,KAAA,EAAE,WAAWC,cAAA,QAAO,UAAU,MAAY,cAAY,WACtD,UAACD,2BAAAA,IAAA,OAAA,EAAI,KAAU,IAAA,CAAU,EAC1B,CAAA;;"}
|
package/dist/harmony66.mjs
CHANGED
@@ -1,26 +1,12 @@
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
2
|
-
import { Menu as Menu$1, MenuList, Tooltip } from "@lokalise/louis";
|
3
|
-
import { clsx } from "./harmony60.mjs";
|
4
2
|
import styles from "./harmony81.mjs";
|
5
|
-
const
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
{
|
12
|
-
type: "button",
|
13
|
-
className: clsx(styles.dropdownButton, {
|
14
|
-
[styles.dropdownButtonActive]: opened
|
15
|
-
}),
|
16
|
-
children: /* @__PURE__ */ jsx(Icon, { size: "25px" })
|
17
|
-
}
|
18
|
-
) }),
|
19
|
-
children: /* @__PURE__ */ jsx(MenuList, { placement: "right-start", children })
|
20
|
-
}
|
21
|
-
);
|
22
|
-
};
|
3
|
+
const Avatar = ({
|
4
|
+
src,
|
5
|
+
href = "/",
|
6
|
+
ariaLabel = "Lokalise App Home",
|
7
|
+
alt = "Lokalise Logo"
|
8
|
+
}) => /* @__PURE__ */ jsx("a", { className: styles.logoLink, href, "aria-label": ariaLabel, children: /* @__PURE__ */ jsx("img", { src, alt }) });
|
23
9
|
export {
|
24
|
-
|
10
|
+
Avatar
|
25
11
|
};
|
26
12
|
//# sourceMappingURL=harmony66.mjs.map
|
package/dist/harmony66.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony66.mjs","sources":["../src/components/Sidebar/Widgets/
|
1
|
+
{"version":3,"file":"harmony66.mjs","sources":["../src/components/Sidebar/Widgets/Avatar/Avatar.tsx"],"sourcesContent":["import styles from './Avatar.module.css'\n\ntype AvatarProps = {\n\t/** URL of the avatar/logo image */\n\tsrc: string\n\t/** Link destination when avatar is clicked. Defaults to '/' */\n\thref?: string\n\t/** Accessibility label for the avatar link. Defaults to 'Home' */\n\tariaLabel?: string\n\t/** Alt text for the avatar image. Defaults to 'Lokalise' */\n\talt?: string\n}\n\n/**\n * Display company main avatar / logo in the top section of the Sidebar.\n * Used as the main branding element and home navigation link.\n */\nexport const Avatar = ({\n\tsrc,\n\thref = '/',\n\tariaLabel = 'Lokalise App Home',\n\talt = 'Lokalise Logo',\n}: AvatarProps) => (\n\t<a className={styles.logoLink} href={href} aria-label={ariaLabel}>\n\t\t<img src={src} alt={alt} />\n\t</a>\n)\n"],"names":[],"mappings":";;AAiBO,MAAM,SAAS,CAAC;AAAA,EACtB;AAAA,EACA,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,MAAM;AACP,MACE,oBAAA,KAAA,EAAE,WAAW,OAAO,UAAU,MAAY,cAAY,WACtD,UAAC,oBAAA,OAAA,EAAI,KAAU,IAAA,CAAU,EAC1B,CAAA;"}
|
package/dist/harmony67.cjs
CHANGED
@@ -1,8 +1,21 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
4
|
-
const
|
5
|
-
const
|
6
|
-
const
|
7
|
-
|
4
|
+
const louis = require("@lokalise/louis");
|
5
|
+
const clsx = require("./harmony62.cjs");
|
6
|
+
const IconLink_module = require("./harmony82.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]: window.location.pathname.startsWith(to)
|
14
|
+
}),
|
15
|
+
href: to,
|
16
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: "25px" })
|
17
|
+
}
|
18
|
+
) });
|
19
|
+
};
|
20
|
+
exports.IconLink = IconLink;
|
8
21
|
//# sourceMappingURL=harmony67.cjs.map
|
package/dist/harmony67.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony67.cjs","sources":["../src/components/Sidebar/Widgets/
|
1
|
+
{"version":3,"file":"harmony67.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]: 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,gBAAAA,QAAO,MAAM,GAAG,OAAO,SAAS,SAAS,WAAW,EAAE;AAAA,MAAA,CACvD;AAAA,MACD,MAAM;AAAA,MAEN,UAAAJ,2BAAAA,IAAC,MAAK,EAAA,MAAK,OAAO,CAAA;AAAA,IAAA;AAAA,EAAA,GAEpB;AAEF;;"}
|
package/dist/harmony67.mjs
CHANGED
@@ -1,8 +1,21 @@
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
|
2
|
+
import { Tooltip, Link } from "@lokalise/louis";
|
3
|
+
import { clsx } from "./harmony62.mjs";
|
4
|
+
import styles from "./harmony82.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]: window.location.pathname.startsWith(to)
|
12
|
+
}),
|
13
|
+
href: to,
|
14
|
+
children: /* @__PURE__ */ jsx(Icon, { size: "25px" })
|
15
|
+
}
|
16
|
+
) });
|
17
|
+
};
|
5
18
|
export {
|
6
|
-
|
19
|
+
IconLink
|
7
20
|
};
|
8
21
|
//# sourceMappingURL=harmony67.mjs.map
|
package/dist/harmony67.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony67.mjs","sources":["../src/components/Sidebar/Widgets/
|
1
|
+
{"version":3,"file":"harmony67.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]: 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,SAAS,SAAS,WAAW,EAAE;AAAA,MAAA,CACvD;AAAA,MACD,MAAM;AAAA,MAEN,UAAA,oBAAC,MAAK,EAAA,MAAK,OAAO,CAAA;AAAA,IAAA;AAAA,EAAA,GAEpB;AAEF;"}
|
package/dist/harmony68.cjs
CHANGED
@@ -2,34 +2,25 @@
|
|
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
|
6
|
-
const
|
7
|
-
const
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
},
|
25
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `flex-col ${ProfileSettingsMenuItem_module.default.container}`, children: [
|
26
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Profile Settings" }),
|
27
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: ProfileSettingsMenuItem_module.default.profileEmail, children: userEmail })
|
28
|
-
] })
|
29
|
-
}
|
30
|
-
),
|
31
|
-
!hideBottomDivider && /* @__PURE__ */ jsxRuntime.jsx(louis.MenuDivider, {})
|
32
|
-
] });
|
5
|
+
const clsx = require("./harmony62.cjs");
|
6
|
+
const Menu_module = require("./harmony83.cjs");
|
7
|
+
const Menu = ({ children, icon: Icon }) => {
|
8
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
9
|
+
louis.Menu,
|
10
|
+
{
|
11
|
+
menuButton: ({ opened }) => /* @__PURE__ */ jsxRuntime.jsx(louis.Tooltip, { placement: "right", tooltip: "Help", children: /* @__PURE__ */ jsxRuntime.jsx(
|
12
|
+
"button",
|
13
|
+
{
|
14
|
+
type: "button",
|
15
|
+
className: clsx.clsx(Menu_module.default.dropdownButton, {
|
16
|
+
[Menu_module.default.dropdownButtonActive]: opened
|
17
|
+
}),
|
18
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: "25px" })
|
19
|
+
}
|
20
|
+
) }),
|
21
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(louis.MenuList, { placement: "right-start", children })
|
22
|
+
}
|
23
|
+
);
|
33
24
|
};
|
34
|
-
exports.
|
25
|
+
exports.Menu = Menu;
|
35
26
|
//# sourceMappingURL=harmony68.cjs.map
|
package/dist/harmony68.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony68.cjs","sources":["../src/components/Sidebar/Widgets/
|
1
|
+
{"version":3,"file":"harmony68.cjs","sources":["../src/components/Sidebar/Widgets/Menu/Menu.tsx"],"sourcesContent":["import { MenuList, type SvgIconProps, Tooltip, Menu as UIMenu } from '@lokalise/louis'\nimport clsx from 'clsx'\nimport type { FC, PropsWithChildren } from 'react'\nimport styles from './Menu.module.css'\n\ntype MenuProps = PropsWithChildren<{\n\t/** Icon component from @lokalise/louis to display in the menu button */\n\ticon: FC<SvgIconProps>\n}>\n\n/**\n * A dropdown menu component that displays an icon button which reveals a menu list when clicked.\n * The menu is positioned to the right of the button and includes a tooltip.\n *\n * Used primarily for dropdown menus in the Sidebar, such as the Help menu.\n *\n * @example\n * ```tsx\n * <Menu icon={HelpCenterIcon}>\n * <MenuItem href=\"/docs\">Documentation</MenuItem>\n * <MenuItem href=\"/tutorial\">Tutorials</MenuItem>\n * <MenuDivider />\n * <MenuItem href=\"/blog\">Blog</MenuItem>\n * </Menu>\n * ```\n */\nexport const Menu = ({ children, icon: Icon }: MenuProps) => {\n\treturn (\n\t\t<UIMenu\n\t\t\tmenuButton={({ opened }) => (\n\t\t\t\t<Tooltip placement=\"right\" tooltip=\"Help\">\n\t\t\t\t\t<button\n\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\tclassName={clsx(styles.dropdownButton, {\n\t\t\t\t\t\t\t[styles.dropdownButtonActive]: opened,\n\t\t\t\t\t\t})}\n\t\t\t\t\t>\n\t\t\t\t\t\t<Icon size=\"25px\" />\n\t\t\t\t\t</button>\n\t\t\t\t</Tooltip>\n\t\t\t)}\n\t\t>\n\t\t\t<MenuList placement=\"right-start\">{children}</MenuList>\n\t\t</UIMenu>\n\t)\n}\n"],"names":["jsx","UIMenu","Tooltip","clsx","styles","MenuList"],"mappings":";;;;;;AA0BO,MAAM,OAAO,CAAC,EAAE,UAAU,MAAM,WAAsB;AAE3D,SAAAA,2BAAA;AAAA,IAACC,MAAA;AAAA,IAAA;AAAA,MACA,YAAY,CAAC,EAAE,OAAO,qCACpBC,MAAQ,SAAA,EAAA,WAAU,SAAQ,SAAQ,QAClC,UAAAF,2BAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACA,MAAK;AAAA,UACL,WAAWG,KAAAA,KAAKC,YAAA,QAAO,gBAAgB;AAAA,YACtC,CAACA,YAAAA,QAAO,oBAAoB,GAAG;AAAA,UAAA,CAC/B;AAAA,UAED,UAAAJ,2BAAAA,IAAC,MAAK,EAAA,MAAK,OAAO,CAAA;AAAA,QAAA;AAAA,MAAA,GAEpB;AAAA,MAGD,UAACA,2BAAA,IAAAK,MAAA,UAAA,EAAS,WAAU,eAAe,SAAS,CAAA;AAAA,IAAA;AAAA,EAC7C;AAEF;;"}
|
package/dist/harmony68.mjs
CHANGED
@@ -1,35 +1,26 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import styles from "./
|
5
|
-
const
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
},
|
23
|
-
children: /* @__PURE__ */ jsxs("div", { className: `flex-col ${styles.container}`, children: [
|
24
|
-
/* @__PURE__ */ jsx("span", { children: "Profile Settings" }),
|
25
|
-
/* @__PURE__ */ jsx("span", { className: styles.profileEmail, children: userEmail })
|
26
|
-
] })
|
27
|
-
}
|
28
|
-
),
|
29
|
-
!hideBottomDivider && /* @__PURE__ */ jsx(MenuDivider, {})
|
30
|
-
] });
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
2
|
+
import { Menu as Menu$1, MenuList, Tooltip } from "@lokalise/louis";
|
3
|
+
import { clsx } from "./harmony62.mjs";
|
4
|
+
import styles from "./harmony83.mjs";
|
5
|
+
const Menu = ({ children, icon: Icon }) => {
|
6
|
+
return /* @__PURE__ */ jsx(
|
7
|
+
Menu$1,
|
8
|
+
{
|
9
|
+
menuButton: ({ opened }) => /* @__PURE__ */ jsx(Tooltip, { placement: "right", tooltip: "Help", children: /* @__PURE__ */ jsx(
|
10
|
+
"button",
|
11
|
+
{
|
12
|
+
type: "button",
|
13
|
+
className: clsx(styles.dropdownButton, {
|
14
|
+
[styles.dropdownButtonActive]: opened
|
15
|
+
}),
|
16
|
+
children: /* @__PURE__ */ jsx(Icon, { size: "25px" })
|
17
|
+
}
|
18
|
+
) }),
|
19
|
+
children: /* @__PURE__ */ jsx(MenuList, { placement: "right-start", children })
|
20
|
+
}
|
21
|
+
);
|
31
22
|
};
|
32
23
|
export {
|
33
|
-
|
24
|
+
Menu
|
34
25
|
};
|
35
26
|
//# sourceMappingURL=harmony68.mjs.map
|
package/dist/harmony68.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony68.mjs","sources":["../src/components/Sidebar/Widgets/
|
1
|
+
{"version":3,"file":"harmony68.mjs","sources":["../src/components/Sidebar/Widgets/Menu/Menu.tsx"],"sourcesContent":["import { MenuList, type SvgIconProps, Tooltip, Menu as UIMenu } from '@lokalise/louis'\nimport clsx from 'clsx'\nimport type { FC, PropsWithChildren } from 'react'\nimport styles from './Menu.module.css'\n\ntype MenuProps = PropsWithChildren<{\n\t/** Icon component from @lokalise/louis to display in the menu button */\n\ticon: FC<SvgIconProps>\n}>\n\n/**\n * A dropdown menu component that displays an icon button which reveals a menu list when clicked.\n * The menu is positioned to the right of the button and includes a tooltip.\n *\n * Used primarily for dropdown menus in the Sidebar, such as the Help menu.\n *\n * @example\n * ```tsx\n * <Menu icon={HelpCenterIcon}>\n * <MenuItem href=\"/docs\">Documentation</MenuItem>\n * <MenuItem href=\"/tutorial\">Tutorials</MenuItem>\n * <MenuDivider />\n * <MenuItem href=\"/blog\">Blog</MenuItem>\n * </Menu>\n * ```\n */\nexport const Menu = ({ children, icon: Icon }: MenuProps) => {\n\treturn (\n\t\t<UIMenu\n\t\t\tmenuButton={({ opened }) => (\n\t\t\t\t<Tooltip placement=\"right\" tooltip=\"Help\">\n\t\t\t\t\t<button\n\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\tclassName={clsx(styles.dropdownButton, {\n\t\t\t\t\t\t\t[styles.dropdownButtonActive]: opened,\n\t\t\t\t\t\t})}\n\t\t\t\t\t>\n\t\t\t\t\t\t<Icon size=\"25px\" />\n\t\t\t\t\t</button>\n\t\t\t\t</Tooltip>\n\t\t\t)}\n\t\t>\n\t\t\t<MenuList placement=\"right-start\">{children}</MenuList>\n\t\t</UIMenu>\n\t)\n}\n"],"names":["UIMenu"],"mappings":";;;;AA0BO,MAAM,OAAO,CAAC,EAAE,UAAU,MAAM,WAAsB;AAE3D,SAAA;AAAA,IAACA;AAAAA,IAAA;AAAA,MACA,YAAY,CAAC,EAAE,OAAO,0BACpB,SAAQ,EAAA,WAAU,SAAQ,SAAQ,QAClC,UAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACA,MAAK;AAAA,UACL,WAAW,KAAK,OAAO,gBAAgB;AAAA,YACtC,CAAC,OAAO,oBAAoB,GAAG;AAAA,UAAA,CAC/B;AAAA,UAED,UAAA,oBAAC,MAAK,EAAA,MAAK,OAAO,CAAA;AAAA,QAAA;AAAA,MAAA,GAEpB;AAAA,MAGD,UAAC,oBAAA,UAAA,EAAS,WAAU,eAAe,SAAS,CAAA;AAAA,IAAA;AAAA,EAC7C;AAEF;"}
|
package/dist/harmony69.cjs
CHANGED
@@ -1,35 +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
|
5
|
-
const
|
6
|
-
const
|
7
|
-
|
8
|
-
const TeamMenuItem = ({ team, onClick, hidePlanLabel }) => {
|
9
|
-
const { currentTeam, planId } = ProfileMenuContext.useProfileMenu();
|
10
|
-
const contextTeam = team || currentTeam;
|
11
|
-
if (!contextTeam) {
|
12
|
-
return null;
|
13
|
-
}
|
14
|
-
const planLabel = plan.isFreePlan(planId) ? "Free" : plan.isTrialPlan(planId) ? "Trial" : void 0;
|
15
|
-
const WrapperNode = onClick ? louis.MenuItem : "div";
|
16
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
17
|
-
WrapperNode,
|
18
|
-
{
|
19
|
-
className: TeamMenuItem_module.default.wrapper,
|
20
|
-
...onClick && { onClick: () => onClick(contextTeam) },
|
21
|
-
children: [
|
22
|
-
contextTeam.logoUrl ? /* @__PURE__ */ jsxRuntime.jsx("img", { className: TeamMenuItem_module.default.profileImage, src: contextTeam.logoUrl, alt: "Team logo" }) : /* @__PURE__ */ jsxRuntime.jsx("span", { className: `${TeamMenuItem_module.default.defaultProfileImage}`, children: /* @__PURE__ */ jsxRuntime.jsx(louis.UserIcon, { size: "25px" }) }),
|
23
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: TeamMenuItem_module.default.teamDetails, children: [
|
24
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: TeamMenuItem_module.default.planWrapper, children: [
|
25
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { title: contextTeam.name, className: TeamMenuItem_module.default.teamName, children: contextTeam.name }),
|
26
|
-
planLabel && !hidePlanLabel && /* @__PURE__ */ jsxRuntime.jsx("span", { className: TeamMenuItem_module.default.teamName, children: planLabel })
|
27
|
-
] }),
|
28
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: TeamMenuItem_module.default.membership, children: contextTeam.role })
|
29
|
-
] })
|
30
|
-
]
|
31
|
-
}
|
32
|
-
);
|
33
|
-
};
|
34
|
-
exports.TeamMenuItem = TeamMenuItem;
|
4
|
+
const ProfileMenuContent = require("./harmony84.cjs");
|
5
|
+
const ProfileMenuProvider = require("./harmony85.cjs");
|
6
|
+
const ProfileMenu = ({ config, children }) => /* @__PURE__ */ jsxRuntime.jsx(ProfileMenuProvider.ProfileMenuProvider, { config, children: /* @__PURE__ */ jsxRuntime.jsx(ProfileMenuContent.ProfileMenuContent, { children }) });
|
7
|
+
exports.ProfileMenu = ProfileMenu;
|
35
8
|
//# sourceMappingURL=harmony69.cjs.map
|
package/dist/harmony69.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony69.cjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/
|
1
|
+
{"version":3,"file":"harmony69.cjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/ProfileMenu.tsx"],"sourcesContent":["import { ProfileMenuContent, type ProfileMenuContentProps } from './ProfileMenuContent'\nimport { ProfileMenuProvider } from './ProfileMenuProvider'\nimport type { SidebarProfileMenuConfig } from './types'\n\ntype ProfileMenuProps = {\n\t/** Configuration object containing team and user settings */\n\tconfig: SidebarProfileMenuConfig\n\t/** Render function for the menu content */\n\tchildren: ProfileMenuContentProps['children']\n}\n\n/**\n * A contextual menu component that provides team management functionality.\n * It manages team switching, profile settings, billing options, and upgrade prompts.\n *\n * The component uses a render prop pattern to provide context values to its children,\n * allowing flexible composition of menu items based on user permissions and team status.\n *\n * @example\n * ```tsx\n * <ProfileMenu config={profileMenuConfig}>\n * {({ allowTeamCreation, showBillingButton }) => (\n * <>\n * <TeamSwitch onSwitchTeam={handleTeamSwitch} />\n * {allowTeamCreation && <MenuItem>Create new team</MenuItem>}\n * {showBillingButton && <MenuItem href=\"/billing\">Billing</MenuItem>}\n * </>\n * )}\n * </ProfileMenu>\n * ```\n */\nexport const ProfileMenu = ({ config, children }: ProfileMenuProps) => (\n\t<ProfileMenuProvider config={config}>\n\t\t<ProfileMenuContent>{children}</ProfileMenuContent>\n\t</ProfileMenuProvider>\n)\n"],"names":["jsx","ProfileMenuProvider","ProfileMenuContent"],"mappings":";;;;;AA+BO,MAAM,cAAc,CAAC,EAAE,QAAQ,SAAS,MAC7CA,2BAAA,IAAAC,oBAAA,qBAAA,EAAoB,QACpB,UAAAD,2BAAA,IAACE,mBAAoB,oBAAA,EAAA,SAAS,CAAA,EAC/B,CAAA;;"}
|
package/dist/harmony69.mjs
CHANGED
@@ -1,35 +1,8 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
|
5
|
-
import styles from "./harmony86.mjs";
|
6
|
-
const TeamMenuItem = ({ team, onClick, hidePlanLabel }) => {
|
7
|
-
const { currentTeam, planId } = useProfileMenu();
|
8
|
-
const contextTeam = team || currentTeam;
|
9
|
-
if (!contextTeam) {
|
10
|
-
return null;
|
11
|
-
}
|
12
|
-
const planLabel = isFreePlan(planId) ? "Free" : isTrialPlan(planId) ? "Trial" : void 0;
|
13
|
-
const WrapperNode = onClick ? MenuItem : "div";
|
14
|
-
return /* @__PURE__ */ jsxs(
|
15
|
-
WrapperNode,
|
16
|
-
{
|
17
|
-
className: styles.wrapper,
|
18
|
-
...onClick && { onClick: () => onClick(contextTeam) },
|
19
|
-
children: [
|
20
|
-
contextTeam.logoUrl ? /* @__PURE__ */ jsx("img", { className: styles.profileImage, src: contextTeam.logoUrl, alt: "Team logo" }) : /* @__PURE__ */ jsx("span", { className: `${styles.defaultProfileImage}`, children: /* @__PURE__ */ jsx(UserIcon, { size: "25px" }) }),
|
21
|
-
/* @__PURE__ */ jsxs("div", { className: styles.teamDetails, children: [
|
22
|
-
/* @__PURE__ */ jsxs("div", { className: styles.planWrapper, children: [
|
23
|
-
/* @__PURE__ */ jsx("span", { title: contextTeam.name, className: styles.teamName, children: contextTeam.name }),
|
24
|
-
planLabel && !hidePlanLabel && /* @__PURE__ */ jsx("span", { className: styles.teamName, children: planLabel })
|
25
|
-
] }),
|
26
|
-
/* @__PURE__ */ jsx("span", { className: styles.membership, children: contextTeam.role })
|
27
|
-
] })
|
28
|
-
]
|
29
|
-
}
|
30
|
-
);
|
31
|
-
};
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
2
|
+
import { ProfileMenuContent } from "./harmony84.mjs";
|
3
|
+
import { ProfileMenuProvider } from "./harmony85.mjs";
|
4
|
+
const ProfileMenu = ({ config, children }) => /* @__PURE__ */ jsx(ProfileMenuProvider, { config, children: /* @__PURE__ */ jsx(ProfileMenuContent, { children }) });
|
32
5
|
export {
|
33
|
-
|
6
|
+
ProfileMenu
|
34
7
|
};
|
35
8
|
//# sourceMappingURL=harmony69.mjs.map
|
package/dist/harmony69.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony69.mjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/
|
1
|
+
{"version":3,"file":"harmony69.mjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/ProfileMenu.tsx"],"sourcesContent":["import { ProfileMenuContent, type ProfileMenuContentProps } from './ProfileMenuContent'\nimport { ProfileMenuProvider } from './ProfileMenuProvider'\nimport type { SidebarProfileMenuConfig } from './types'\n\ntype ProfileMenuProps = {\n\t/** Configuration object containing team and user settings */\n\tconfig: SidebarProfileMenuConfig\n\t/** Render function for the menu content */\n\tchildren: ProfileMenuContentProps['children']\n}\n\n/**\n * A contextual menu component that provides team management functionality.\n * It manages team switching, profile settings, billing options, and upgrade prompts.\n *\n * The component uses a render prop pattern to provide context values to its children,\n * allowing flexible composition of menu items based on user permissions and team status.\n *\n * @example\n * ```tsx\n * <ProfileMenu config={profileMenuConfig}>\n * {({ allowTeamCreation, showBillingButton }) => (\n * <>\n * <TeamSwitch onSwitchTeam={handleTeamSwitch} />\n * {allowTeamCreation && <MenuItem>Create new team</MenuItem>}\n * {showBillingButton && <MenuItem href=\"/billing\">Billing</MenuItem>}\n * </>\n * )}\n * </ProfileMenu>\n * ```\n */\nexport const ProfileMenu = ({ config, children }: ProfileMenuProps) => (\n\t<ProfileMenuProvider config={config}>\n\t\t<ProfileMenuContent>{children}</ProfileMenuContent>\n\t</ProfileMenuProvider>\n)\n"],"names":[],"mappings":";;;AA+BO,MAAM,cAAc,CAAC,EAAE,QAAQ,SAAS,MAC7C,oBAAA,qBAAA,EAAoB,QACpB,UAAA,oBAAC,oBAAoB,EAAA,SAAS,CAAA,EAC/B,CAAA;"}
|
package/dist/harmony70.cjs
CHANGED
@@ -1,22 +1,35 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
4
|
-
const
|
5
|
-
const
|
6
|
-
const
|
7
|
-
const
|
8
|
-
|
9
|
-
|
4
|
+
const louis = require("@lokalise/louis");
|
5
|
+
const ProfileMenuContext = require("./harmony86.cjs");
|
6
|
+
const ProfileSettingsMenuItem_module = require("./harmony87.cjs");
|
7
|
+
const ProfileSettingsMenuItem = ({
|
8
|
+
href,
|
9
|
+
onClick,
|
10
|
+
userEmail,
|
11
|
+
hideBottomDivider
|
12
|
+
}) => {
|
13
|
+
const { isEndOfTrialActive, isTeamSuspended } = ProfileMenuContext.useProfileMenu();
|
14
|
+
if (isEndOfTrialActive || isTeamSuspended) {
|
10
15
|
return null;
|
11
16
|
}
|
12
|
-
return /* @__PURE__ */ jsxRuntime.
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
17
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
18
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
19
|
+
louis.MenuItem,
|
20
|
+
{
|
21
|
+
href,
|
22
|
+
onClick: () => {
|
23
|
+
onClick == null ? void 0 : onClick();
|
24
|
+
},
|
25
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `flex-col ${ProfileSettingsMenuItem_module.default.container}`, children: [
|
26
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Profile Settings" }),
|
27
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: ProfileSettingsMenuItem_module.default.profileEmail, children: userEmail })
|
28
|
+
] })
|
29
|
+
}
|
30
|
+
),
|
31
|
+
!hideBottomDivider && /* @__PURE__ */ jsxRuntime.jsx(louis.MenuDivider, {})
|
32
|
+
] });
|
20
33
|
};
|
21
|
-
exports.
|
34
|
+
exports.ProfileSettingsMenuItem = ProfileSettingsMenuItem;
|
22
35
|
//# sourceMappingURL=harmony70.cjs.map
|
package/dist/harmony70.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony70.cjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/
|
1
|
+
{"version":3,"file":"harmony70.cjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/ProfileSettingsMenuItem/ProfileSettingsMenuItem.tsx"],"sourcesContent":["import { MenuDivider, MenuItem } from '@lokalise/louis'\nimport { useProfileMenu } from '../ProfileMenuContext'\nimport styles from './ProfileSettingsMenuItem.module.css'\n\ntype ProfileSettingsMenuItemProps = {\n\t/** URL to the profile settings page */\n\thref: string\n\t/** User's email address to display below \"Profile Settings\" */\n\tuserEmail: string\n\t/** Optional callback function for tracking or additional actions */\n\tonClick?: () => void\n\t/** Whether to hide the divider that appears below this menu item */\n\thideBottomDivider?: boolean\n}\n\n/**\n * A menu item component that provides access to profile settings.\n *\n * Features:\n * - Displays \"Profile Settings\" with the user's email address below\n * - Conditionally renders based on team status\n * - Includes an optional divider below the item\n * - Will not render if:\n * - Team is suspended\n * - Team's trial period has ended\n *\n * @example\n * ```tsx\n * <ProfileSettingsMenuItem\n * href=\"/settings/profile\"\n * userEmail=\"user@example.com\"\n * onClick={() => trackSettingsClick()}\n * />\n *\n * // Without bottom divider\n * <ProfileSettingsMenuItem\n * href=\"/settings/profile\"\n * userEmail=\"user@example.com\"\n * hideBottomDivider\n * />\n * ```\n *\n * @note This component must be used within a ProfileMenu component\n * as it requires access to the ProfileMenu context for team status information.\n */\nexport const ProfileSettingsMenuItem = ({\n\thref,\n\tonClick,\n\tuserEmail,\n\thideBottomDivider,\n}: ProfileSettingsMenuItemProps) => {\n\tconst { isEndOfTrialActive, isTeamSuspended } = useProfileMenu()\n\n\tif (isEndOfTrialActive || isTeamSuspended) {\n\t\treturn null\n\t}\n\n\treturn (\n\t\t<>\n\t\t\t<MenuItem\n\t\t\t\thref={href}\n\t\t\t\tonClick={() => {\n\t\t\t\t\tonClick?.()\n\t\t\t\t}}\n\t\t\t>\n\t\t\t\t<div className={`flex-col ${styles.container}`}>\n\t\t\t\t\t<span>Profile Settings</span>\n\t\t\t\t\t<span className={styles.profileEmail}>{userEmail}</span>\n\t\t\t\t</div>\n\t\t\t</MenuItem>\n\n\t\t\t{!hideBottomDivider && <MenuDivider />}\n\t\t</>\n\t)\n}\n"],"names":["useProfileMenu","jsxs","Fragment","jsx","MenuItem","styles","MenuDivider"],"mappings":";;;;;;AA6CO,MAAM,0BAA0B,CAAC;AAAA,EACvC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACD,MAAoC;AACnC,QAAM,EAAE,oBAAoB,gBAAgB,IAAIA,kCAAe;AAE/D,MAAI,sBAAsB,iBAAiB;AACnC,WAAA;AAAA,EAAA;AAGR,SAEEC,2BAAA,KAAAC,qBAAA,EAAA,UAAA;AAAA,IAAAC,2BAAA;AAAA,MAACC,MAAA;AAAA,MAAA;AAAA,QACA;AAAA,QACA,SAAS,MAAM;AACJ;AAAA,QACX;AAAA,QAEA,0CAAC,OAAI,EAAA,WAAW,YAAYC,uCAAO,SAAS,IAC3C,UAAA;AAAA,UAAAF,2BAAAA,IAAC,UAAK,UAAgB,mBAAA,CAAA;AAAA,UACrBA,2BAAA,IAAA,QAAA,EAAK,WAAWE,+BAAA,QAAO,cAAe,UAAU,UAAA,CAAA;AAAA,QAAA,EAClD,CAAA;AAAA,MAAA;AAAA,IACD;AAAA,IAEC,CAAC,qBAAqBF,+BAACG,MAAAA,aAAY,CAAA,CAAA;AAAA,EAAA,GACrC;AAEF;;"}
|