@lokalise/harmony 1.27.0 → 1.27.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/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/harmony10.cjs +5 -2
- package/dist/harmony10.cjs.map +1 -1
- package/dist/harmony10.mjs +5 -2
- package/dist/harmony10.mjs.map +1 -1
- package/dist/harmony100.cjs +5 -18
- package/dist/harmony100.cjs.map +1 -1
- package/dist/harmony100.mjs +5 -18
- package/dist/harmony100.mjs.map +1 -1
- package/dist/harmony101.cjs +38 -12
- package/dist/harmony101.cjs.map +1 -1
- package/dist/harmony101.mjs +38 -12
- 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 +6 -59
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +6 -59
- package/dist/harmony115.mjs.map +1 -1
- package/dist/harmony116.cjs +57 -18
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +56 -17
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +60 -13
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +60 -13
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +19 -16
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +18 -15
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony119.cjs +12 -15
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +12 -15
- package/dist/harmony119.mjs.map +1 -1
- package/dist/harmony120.cjs +14 -10
- package/dist/harmony120.cjs.map +1 -1
- package/dist/harmony120.mjs +14 -10
- package/dist/harmony120.mjs.map +1 -1
- package/dist/harmony121.cjs +14 -14
- package/dist/harmony121.cjs.map +1 -1
- package/dist/harmony121.mjs +14 -14
- package/dist/harmony121.mjs.map +1 -1
- package/dist/harmony122.cjs +10 -20
- package/dist/harmony122.cjs.map +1 -1
- package/dist/harmony122.mjs +10 -20
- package/dist/harmony122.mjs.map +1 -1
- package/dist/harmony123.cjs +14 -10
- package/dist/harmony123.cjs.map +1 -1
- package/dist/harmony123.mjs +14 -10
- package/dist/harmony123.mjs.map +1 -1
- package/dist/harmony124.cjs +20 -5
- package/dist/harmony124.cjs.map +1 -1
- package/dist/harmony124.mjs +20 -5
- package/dist/harmony124.mjs.map +1 -1
- package/dist/harmony125.cjs +11 -11
- package/dist/harmony125.cjs.map +1 -1
- package/dist/harmony125.mjs +11 -11
- package/dist/harmony125.mjs.map +1 -1
- package/dist/harmony126.cjs +5 -31
- package/dist/harmony126.cjs.map +1 -1
- package/dist/harmony126.mjs +5 -31
- package/dist/harmony126.mjs.map +1 -1
- package/dist/harmony127.cjs +11 -13
- package/dist/harmony127.cjs.map +1 -1
- package/dist/harmony127.mjs +11 -13
- package/dist/harmony127.mjs.map +1 -1
- package/dist/harmony128.cjs +31 -45
- package/dist/harmony128.cjs.map +1 -1
- package/dist/harmony128.mjs +31 -45
- package/dist/harmony128.mjs.map +1 -1
- package/dist/harmony129.cjs +15 -13
- package/dist/harmony129.cjs.map +1 -1
- package/dist/harmony129.mjs +14 -12
- package/dist/harmony129.mjs.map +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 +48 -16
- package/dist/harmony59.cjs.map +1 -1
- package/dist/harmony59.mjs +48 -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 +8 -22
- 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 +21 -30
- 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 +29 -16
- 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 +30 -7
- package/dist/harmony77.cjs.map +1 -1
- package/dist/harmony77.mjs +29 -6
- package/dist/harmony77.mjs.map +1 -1
- package/dist/harmony78.cjs +4 -10
- package/dist/harmony78.cjs.map +1 -1
- package/dist/harmony78.mjs +3 -9
- package/dist/harmony78.mjs.map +1 -1
- package/dist/harmony79.cjs +12 -10
- package/dist/harmony79.cjs.map +1 -1
- package/dist/harmony79.mjs +11 -9
- package/dist/harmony79.mjs.map +1 -1
- package/dist/harmony80.cjs +21 -57
- package/dist/harmony80.cjs.map +1 -1
- package/dist/harmony80.mjs +20 -56
- package/dist/harmony80.mjs.map +1 -1
- package/dist/harmony81.cjs +6 -32
- package/dist/harmony81.cjs.map +1 -1
- package/dist/harmony81.mjs +5 -31
- package/dist/harmony81.mjs.map +1 -1
- package/dist/harmony82.cjs +10 -6
- package/dist/harmony82.cjs.map +1 -1
- package/dist/harmony82.mjs +9 -5
- package/dist/harmony82.mjs.map +1 -1
- package/dist/harmony83.cjs +6 -6
- package/dist/harmony83.mjs +6 -6
- package/dist/harmony84.cjs +57 -24
- package/dist/harmony84.cjs.map +1 -1
- package/dist/harmony84.mjs +56 -23
- package/dist/harmony84.mjs.map +1 -1
- package/dist/harmony85.cjs +32 -6
- package/dist/harmony85.cjs.map +1 -1
- package/dist/harmony85.mjs +31 -5
- package/dist/harmony85.mjs.map +1 -1
- package/dist/harmony86.cjs +5 -21
- package/dist/harmony86.cjs.map +1 -1
- package/dist/harmony86.mjs +5 -21
- package/dist/harmony86.mjs.map +1 -1
- package/dist/harmony87.cjs +4 -7
- package/dist/harmony87.cjs.map +1 -1
- package/dist/harmony87.mjs +4 -7
- package/dist/harmony87.mjs.map +1 -1
- package/dist/harmony88.cjs +25 -12
- package/dist/harmony88.cjs.map +1 -1
- package/dist/harmony88.mjs +24 -11
- package/dist/harmony88.mjs.map +1 -1
- package/dist/harmony89.cjs +5 -20
- package/dist/harmony89.cjs.map +1 -1
- package/dist/harmony89.mjs +5 -20
- package/dist/harmony89.mjs.map +1 -1
- package/dist/harmony90.cjs +19 -97
- package/dist/harmony90.cjs.map +1 -1
- package/dist/harmony90.mjs +19 -80
- package/dist/harmony90.mjs.map +1 -1
- package/dist/harmony91.cjs +13 -17
- package/dist/harmony91.cjs.map +1 -1
- package/dist/harmony91.mjs +12 -16
- package/dist/harmony91.mjs.map +1 -1
- package/dist/harmony92.cjs +19 -22
- package/dist/harmony92.cjs.map +1 -1
- package/dist/harmony92.mjs +18 -21
- package/dist/harmony92.mjs.map +1 -1
- package/dist/harmony93.cjs +13 -4
- package/dist/harmony93.cjs.map +1 -1
- package/dist/harmony93.mjs +13 -4
- package/dist/harmony93.mjs.map +1 -1
- package/dist/harmony94.cjs +13 -129
- package/dist/harmony94.cjs.map +1 -1
- package/dist/harmony94.mjs +13 -129
- package/dist/harmony94.mjs.map +1 -1
- package/dist/harmony95.cjs +99 -12
- package/dist/harmony95.cjs.map +1 -1
- package/dist/harmony95.mjs +81 -11
- package/dist/harmony95.mjs.map +1 -1
- package/dist/harmony96.cjs +22 -6
- package/dist/harmony96.cjs.map +1 -1
- package/dist/harmony96.mjs +21 -5
- package/dist/harmony96.mjs.map +1 -1
- package/dist/harmony97.cjs +4 -39
- package/dist/harmony97.cjs.map +1 -1
- package/dist/harmony97.mjs +4 -39
- package/dist/harmony97.mjs.map +1 -1
- package/dist/harmony98.cjs +127 -55
- package/dist/harmony98.cjs.map +1 -1
- package/dist/harmony98.mjs +127 -55
- package/dist/harmony98.mjs.map +1 -1
- package/dist/harmony99.cjs +12 -7
- package/dist/harmony99.cjs.map +1 -1
- package/dist/harmony99.mjs +11 -6
- package/dist/harmony99.mjs.map +1 -1
- package/dist/types/src/features/publicApi/node.d.ts +2 -0
- package/package.json +2 -2
package/dist/harmony85.mjs
CHANGED
@@ -1,9 +1,35 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
2
|
+
import { isFreePlan, isTrialPlan } from "./harmony7.mjs";
|
3
|
+
import { SidebarTeamRoles } from "./harmony97.mjs";
|
4
|
+
import { ProfileMenuContext } from "./harmony86.mjs";
|
5
|
+
const billingRoles = [
|
6
|
+
SidebarTeamRoles.biller,
|
7
|
+
SidebarTeamRoles.owner
|
8
|
+
];
|
9
|
+
const ProfileMenuProvider = ({ children, config }) => {
|
10
|
+
const { teams, currentTeamId, planId, isEndOfTrialActive, isFullyAuthenticated, userTeamRole } = config;
|
11
|
+
const currentTeam = teams.find((t) => t.id === currentTeamId);
|
12
|
+
const otherTeams = teams.filter((t) => t.id !== currentTeamId);
|
13
|
+
const canChangeBilling = billingRoles.includes(userTeamRole);
|
14
|
+
const canAccessTeamSettings = billingRoles.includes(userTeamRole);
|
15
|
+
const isOnFreeOrTrialPlan = isFreePlan(planId) || isTrialPlan(planId);
|
16
|
+
const showUpgradeCta = isFullyAuthenticated && isOnFreeOrTrialPlan && canChangeBilling;
|
17
|
+
const showBillingButton = isFullyAuthenticated && canAccessTeamSettings && canChangeBilling;
|
18
|
+
const allowTeamCreation = isFullyAuthenticated && !isEndOfTrialActive;
|
19
|
+
const providerValue = {
|
20
|
+
...config,
|
21
|
+
currentTeam,
|
22
|
+
otherTeams,
|
23
|
+
canChangeBilling,
|
24
|
+
canAccessTeamSettings,
|
25
|
+
isOnFreeOrTrialPlan,
|
26
|
+
showUpgradeCta,
|
27
|
+
showBillingButton,
|
28
|
+
allowTeamCreation
|
29
|
+
};
|
30
|
+
return /* @__PURE__ */ jsx(ProfileMenuContext.Provider, { value: providerValue, children });
|
4
31
|
};
|
5
32
|
export {
|
6
|
-
|
7
|
-
teamsContainer
|
33
|
+
ProfileMenuProvider
|
8
34
|
};
|
9
35
|
//# sourceMappingURL=harmony85.mjs.map
|
package/dist/harmony85.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony85.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
1
|
+
{"version":3,"file":"harmony85.mjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/ProfileMenuProvider.tsx"],"sourcesContent":["import { isFreePlan, isTrialPlan } from '@utils'\nimport type { PropsWithChildren } from 'react'\nimport { type SidebarTeamRole, SidebarTeamRoles } from '../../types'\nimport { ProfileMenuContext } from './ProfileMenuContext'\nimport type { SidebarProfileMenuConfig } from './types'\n\ntype ProfileMenuProviderProps = PropsWithChildren<{\n\tconfig: SidebarProfileMenuConfig\n}>\n\nconst billingRoles: ReadonlyArray<SidebarTeamRole> = [\n\tSidebarTeamRoles.biller,\n\tSidebarTeamRoles.owner,\n]\n\nexport const ProfileMenuProvider = ({ children, config }: ProfileMenuProviderProps) => {\n\tconst { teams, currentTeamId, planId, isEndOfTrialActive, isFullyAuthenticated, userTeamRole } =\n\t\tconfig\n\n\tconst currentTeam = teams.find((t) => t.id === currentTeamId)\n\n\tconst otherTeams = teams.filter((t) => t.id !== currentTeamId)\n\n\tconst canChangeBilling = billingRoles.includes(userTeamRole)\n\n\tconst canAccessTeamSettings = billingRoles.includes(userTeamRole)\n\n\tconst isOnFreeOrTrialPlan = isFreePlan(planId) || isTrialPlan(planId)\n\n\tconst showUpgradeCta = isFullyAuthenticated && isOnFreeOrTrialPlan && canChangeBilling\n\n\tconst showBillingButton = isFullyAuthenticated && canAccessTeamSettings && canChangeBilling\n\n\tconst allowTeamCreation = isFullyAuthenticated && !isEndOfTrialActive\n\n\tconst providerValue = {\n\t\t...config,\n\t\tcurrentTeam,\n\t\totherTeams,\n\t\tcanChangeBilling,\n\t\tcanAccessTeamSettings,\n\t\tisOnFreeOrTrialPlan,\n\t\tshowUpgradeCta,\n\t\tshowBillingButton,\n\t\tallowTeamCreation,\n\t}\n\n\treturn <ProfileMenuContext.Provider value={providerValue}>{children}</ProfileMenuContext.Provider>\n}\n"],"names":[],"mappings":";;;;AAUA,MAAM,eAA+C;AAAA,EACpD,iBAAiB;AAAA,EACjB,iBAAiB;AAClB;AAEO,MAAM,sBAAsB,CAAC,EAAE,UAAU,aAAuC;AACtF,QAAM,EAAE,OAAO,eAAe,QAAQ,oBAAoB,sBAAsB,iBAC/E;AAED,QAAM,cAAc,MAAM,KAAK,CAAC,MAAM,EAAE,OAAO,aAAa;AAE5D,QAAM,aAAa,MAAM,OAAO,CAAC,MAAM,EAAE,OAAO,aAAa;AAEvD,QAAA,mBAAmB,aAAa,SAAS,YAAY;AAErD,QAAA,wBAAwB,aAAa,SAAS,YAAY;AAEhE,QAAM,sBAAsB,WAAW,MAAM,KAAK,YAAY,MAAM;AAE9D,QAAA,iBAAiB,wBAAwB,uBAAuB;AAEhE,QAAA,oBAAoB,wBAAwB,yBAAyB;AAErE,QAAA,oBAAoB,wBAAwB,CAAC;AAEnD,QAAM,gBAAgB;AAAA,IACrB,GAAG;AAAA,IACH;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACD;AAEA,6BAAQ,mBAAmB,UAAnB,EAA4B,OAAO,eAAgB,UAAS;AACrE;"}
|
package/dist/harmony86.cjs
CHANGED
@@ -1,24 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
const
|
4
|
-
const
|
5
|
-
const
|
6
|
-
|
7
|
-
|
8
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
9
|
-
"div",
|
10
|
-
{
|
11
|
-
"aria-label": "Upgrade Icon",
|
12
|
-
className: clsx.clsx(
|
13
|
-
UpgradeIcon_module.default.iconContainer,
|
14
|
-
"flex-row",
|
15
|
-
"items-center",
|
16
|
-
"justify-center",
|
17
|
-
className
|
18
|
-
),
|
19
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(louis.CaretUpIcon, {})
|
20
|
-
}
|
21
|
-
);
|
22
|
-
};
|
23
|
-
exports.UpgradeIcon = UpgradeIcon;
|
3
|
+
const React = require("react");
|
4
|
+
const ProfileMenuContext = React.createContext({});
|
5
|
+
const useProfileMenu = () => React.useContext(ProfileMenuContext);
|
6
|
+
exports.ProfileMenuContext = ProfileMenuContext;
|
7
|
+
exports.useProfileMenu = useProfileMenu;
|
24
8
|
//# sourceMappingURL=harmony86.cjs.map
|
package/dist/harmony86.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony86.cjs","sources":["../src/components/Sidebar/
|
1
|
+
{"version":3,"file":"harmony86.cjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/ProfileMenuContext.ts"],"sourcesContent":["import { createContext, useContext } from 'react'\nimport type { SidebarProfileMenuContextProps } from './types'\n\nexport const ProfileMenuContext = createContext({} as SidebarProfileMenuContextProps)\n\nexport const useProfileMenu = () => useContext(ProfileMenuContext)\n"],"names":["createContext","useContext"],"mappings":";;;AAGa,MAAA,qBAAqBA,MAAc,cAAA,CAAoC,CAAA;AAEvE,MAAA,iBAAiB,MAAMC,MAAAA,WAAW,kBAAkB;;;"}
|
package/dist/harmony86.mjs
CHANGED
@@ -1,24 +1,8 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
import styles from "./harmony102.mjs";
|
5
|
-
const UpgradeIcon = ({ className = "" }) => {
|
6
|
-
return /* @__PURE__ */ jsx(
|
7
|
-
"div",
|
8
|
-
{
|
9
|
-
"aria-label": "Upgrade Icon",
|
10
|
-
className: clsx(
|
11
|
-
styles.iconContainer,
|
12
|
-
"flex-row",
|
13
|
-
"items-center",
|
14
|
-
"justify-center",
|
15
|
-
className
|
16
|
-
),
|
17
|
-
children: /* @__PURE__ */ jsx(CaretUpIcon, {})
|
18
|
-
}
|
19
|
-
);
|
20
|
-
};
|
1
|
+
import { useContext, createContext } from "react";
|
2
|
+
const ProfileMenuContext = createContext({});
|
3
|
+
const useProfileMenu = () => useContext(ProfileMenuContext);
|
21
4
|
export {
|
22
|
-
|
5
|
+
ProfileMenuContext,
|
6
|
+
useProfileMenu
|
23
7
|
};
|
24
8
|
//# sourceMappingURL=harmony86.mjs.map
|
package/dist/harmony86.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony86.mjs","sources":["../src/components/Sidebar/
|
1
|
+
{"version":3,"file":"harmony86.mjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/ProfileMenuContext.ts"],"sourcesContent":["import { createContext, useContext } from 'react'\nimport type { SidebarProfileMenuContextProps } from './types'\n\nexport const ProfileMenuContext = createContext({} as SidebarProfileMenuContextProps)\n\nexport const useProfileMenu = () => useContext(ProfileMenuContext)\n"],"names":[],"mappings":";AAGa,MAAA,qBAAqB,cAAc,CAAoC,CAAA;AAEvE,MAAA,iBAAiB,MAAM,WAAW,kBAAkB;"}
|
package/dist/harmony87.cjs
CHANGED
@@ -1,15 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
-
const container = "
|
4
|
-
const
|
5
|
-
const upgradeIconWrapper = "_upgradeIconWrapper_1u995_19";
|
3
|
+
const container = "_container_q5pot_1";
|
4
|
+
const profileEmail = "_profileEmail_q5pot_5";
|
6
5
|
const styles = {
|
7
6
|
container,
|
8
|
-
|
9
|
-
upgradeIconWrapper
|
7
|
+
profileEmail
|
10
8
|
};
|
11
9
|
exports.container = container;
|
12
10
|
exports.default = styles;
|
13
|
-
exports.
|
14
|
-
exports.upgradeIconWrapper = upgradeIconWrapper;
|
11
|
+
exports.profileEmail = profileEmail;
|
15
12
|
//# sourceMappingURL=harmony87.cjs.map
|
package/dist/harmony87.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony87.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony87.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
package/dist/harmony87.mjs
CHANGED
@@ -1,15 +1,12 @@
|
|
1
|
-
const container = "
|
2
|
-
const
|
3
|
-
const upgradeIconWrapper = "_upgradeIconWrapper_1u995_19";
|
1
|
+
const container = "_container_q5pot_1";
|
2
|
+
const profileEmail = "_profileEmail_q5pot_5";
|
4
3
|
const styles = {
|
5
4
|
container,
|
6
|
-
|
7
|
-
upgradeIconWrapper
|
5
|
+
profileEmail
|
8
6
|
};
|
9
7
|
export {
|
10
8
|
container,
|
11
9
|
styles as default,
|
12
|
-
|
13
|
-
upgradeIconWrapper
|
10
|
+
profileEmail
|
14
11
|
};
|
15
12
|
//# sourceMappingURL=harmony87.mjs.map
|
package/dist/harmony87.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony87.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony87.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
package/dist/harmony88.cjs
CHANGED
@@ -1,14 +1,27 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
const
|
6
|
-
const
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const wrapper = "_wrapper_1in7x_5";
|
4
|
+
const profileImage = "_profileImage_1in7x_11";
|
5
|
+
const teamDetails = "_teamDetails_1in7x_19";
|
6
|
+
const planWrapper = "_planWrapper_1in7x_28";
|
7
|
+
const teamName = "_teamName_1in7x_36";
|
8
|
+
const membership = "_membership_1in7x_53";
|
9
|
+
const defaultProfileImage = "_defaultProfileImage_1in7x_59";
|
10
|
+
const styles = {
|
11
|
+
wrapper,
|
12
|
+
profileImage,
|
13
|
+
teamDetails,
|
14
|
+
planWrapper,
|
15
|
+
teamName,
|
16
|
+
membership,
|
17
|
+
defaultProfileImage
|
18
|
+
};
|
19
|
+
exports.default = styles;
|
20
|
+
exports.defaultProfileImage = defaultProfileImage;
|
21
|
+
exports.membership = membership;
|
22
|
+
exports.planWrapper = planWrapper;
|
23
|
+
exports.profileImage = profileImage;
|
24
|
+
exports.teamDetails = teamDetails;
|
25
|
+
exports.teamName = teamName;
|
26
|
+
exports.wrapper = wrapper;
|
14
27
|
//# sourceMappingURL=harmony88.cjs.map
|
package/dist/harmony88.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony88.cjs","sources":[
|
1
|
+
{"version":3,"file":"harmony88.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/harmony88.mjs
CHANGED
@@ -1,14 +1,27 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
const
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
1
|
+
const wrapper = "_wrapper_1in7x_5";
|
2
|
+
const profileImage = "_profileImage_1in7x_11";
|
3
|
+
const teamDetails = "_teamDetails_1in7x_19";
|
4
|
+
const planWrapper = "_planWrapper_1in7x_28";
|
5
|
+
const teamName = "_teamName_1in7x_36";
|
6
|
+
const membership = "_membership_1in7x_53";
|
7
|
+
const defaultProfileImage = "_defaultProfileImage_1in7x_59";
|
8
|
+
const styles = {
|
9
|
+
wrapper,
|
10
|
+
profileImage,
|
11
|
+
teamDetails,
|
12
|
+
planWrapper,
|
13
|
+
teamName,
|
14
|
+
membership,
|
15
|
+
defaultProfileImage
|
16
|
+
};
|
11
17
|
export {
|
12
|
-
|
18
|
+
styles as default,
|
19
|
+
defaultProfileImage,
|
20
|
+
membership,
|
21
|
+
planWrapper,
|
22
|
+
profileImage,
|
23
|
+
teamDetails,
|
24
|
+
teamName,
|
25
|
+
wrapper
|
13
26
|
};
|
14
27
|
//# sourceMappingURL=harmony88.mjs.map
|
package/dist/harmony88.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony88.mjs","sources":[
|
1
|
+
{"version":3,"file":"harmony88.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
|
package/dist/harmony89.cjs
CHANGED
@@ -1,24 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
-
const
|
4
|
-
const
|
5
|
-
|
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
|
3
|
+
const teamsContainer = "_teamsContainer_1ncrr_5";
|
4
|
+
const styles = {
|
5
|
+
teamsContainer
|
16
6
|
};
|
17
|
-
exports.
|
18
|
-
exports.
|
19
|
-
exports.disabled = disabled;
|
20
|
-
exports.projectNavigationItem = projectNavigationItem;
|
21
|
-
exports.projectNavigationItemDisabled = projectNavigationItemDisabled;
|
22
|
-
exports.tag = tag;
|
23
|
-
exports.withNavLinkStyle = withNavLinkStyle;
|
7
|
+
exports.default = styles;
|
8
|
+
exports.teamsContainer = teamsContainer;
|
24
9
|
//# sourceMappingURL=harmony89.cjs.map
|
package/dist/harmony89.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony89.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony89.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/harmony89.mjs
CHANGED
@@ -1,24 +1,9 @@
|
|
1
|
-
const
|
2
|
-
const
|
3
|
-
|
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
|
1
|
+
const teamsContainer = "_teamsContainer_1ncrr_5";
|
2
|
+
const styles = {
|
3
|
+
teamsContainer
|
14
4
|
};
|
15
5
|
export {
|
16
|
-
|
17
|
-
|
18
|
-
disabled,
|
19
|
-
projectNavigationItem,
|
20
|
-
projectNavigationItemDisabled,
|
21
|
-
tag,
|
22
|
-
withNavLinkStyle
|
6
|
+
styles as default,
|
7
|
+
teamsContainer
|
23
8
|
};
|
24
9
|
//# sourceMappingURL=harmony89.mjs.map
|
package/dist/harmony89.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony89.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony89.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/harmony90.cjs
CHANGED
@@ -1,102 +1,24 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
-
const
|
4
|
-
const
|
5
|
-
const
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
4
|
+
const louis = require("@lokalise/louis");
|
5
|
+
const clsx = require("./harmony62.cjs");
|
6
|
+
const UpgradeIcon_module = require("./harmony104.cjs");
|
7
|
+
const UpgradeIcon = ({ className = "" }) => {
|
8
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
9
|
+
"div",
|
10
|
+
{
|
11
|
+
"aria-label": "Upgrade Icon",
|
12
|
+
className: clsx.clsx(
|
13
|
+
UpgradeIcon_module.default.iconContainer,
|
14
|
+
"flex-row",
|
15
|
+
"items-center",
|
16
|
+
"justify-center",
|
17
|
+
className
|
18
|
+
),
|
19
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(louis.CaretUpIcon, {})
|
17
20
|
}
|
18
|
-
|
19
|
-
n.default = e;
|
20
|
-
return Object.freeze(n);
|
21
|
-
}
|
22
|
-
const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
|
23
|
-
const patchResizeCallback = (resizeCallback, refreshMode, refreshRate, refreshOptions) => {
|
24
|
-
switch (refreshMode) {
|
25
|
-
case "debounce":
|
26
|
-
return debounce.default(resizeCallback, refreshRate, refreshOptions);
|
27
|
-
case "throttle":
|
28
|
-
return throttle.default(resizeCallback, refreshRate, refreshOptions);
|
29
|
-
default:
|
30
|
-
return resizeCallback;
|
31
|
-
}
|
21
|
+
);
|
32
22
|
};
|
33
|
-
|
34
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
35
|
-
(callback) => {
|
36
|
-
const callbackRef = React__namespace.useRef(callback);
|
37
|
-
React__namespace.useEffect(() => {
|
38
|
-
callbackRef.current = callback;
|
39
|
-
});
|
40
|
-
return React__namespace.useMemo(() => (...args) => {
|
41
|
-
var _a;
|
42
|
-
return (_a = callbackRef.current) === null || _a === void 0 ? void 0 : _a.call(callbackRef, ...args);
|
43
|
-
}, []);
|
44
|
-
}
|
45
|
-
);
|
46
|
-
const useRefProxy = (
|
47
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
48
|
-
(targetRef) => {
|
49
|
-
const [refElement, setRefElement] = React__namespace.useState((targetRef === null || targetRef === void 0 ? void 0 : targetRef.current) || null);
|
50
|
-
if (targetRef) {
|
51
|
-
setTimeout(() => {
|
52
|
-
if (targetRef.current !== refElement) {
|
53
|
-
setRefElement(targetRef.current);
|
54
|
-
}
|
55
|
-
}, 0);
|
56
|
-
}
|
57
|
-
const refProxy = React__namespace.useMemo(() => new Proxy((node) => {
|
58
|
-
if (node !== refElement) {
|
59
|
-
setRefElement(node);
|
60
|
-
}
|
61
|
-
}, {
|
62
|
-
get(target, prop) {
|
63
|
-
if (prop === "current") {
|
64
|
-
return refElement;
|
65
|
-
}
|
66
|
-
return target[prop];
|
67
|
-
},
|
68
|
-
set(target, prop, value) {
|
69
|
-
if (prop === "current") {
|
70
|
-
setRefElement(value);
|
71
|
-
} else {
|
72
|
-
target[prop] = value;
|
73
|
-
}
|
74
|
-
return true;
|
75
|
-
}
|
76
|
-
}), [refElement]);
|
77
|
-
return { refProxy, refElement, setRefElement };
|
78
|
-
}
|
79
|
-
);
|
80
|
-
const getDimensions = (entry, box) => {
|
81
|
-
if (box === "border-box") {
|
82
|
-
return {
|
83
|
-
width: entry.borderBoxSize[0].inlineSize,
|
84
|
-
height: entry.borderBoxSize[0].blockSize
|
85
|
-
};
|
86
|
-
}
|
87
|
-
if (box === "content-box") {
|
88
|
-
return {
|
89
|
-
width: entry.contentBoxSize[0].inlineSize,
|
90
|
-
height: entry.contentBoxSize[0].blockSize
|
91
|
-
};
|
92
|
-
}
|
93
|
-
return {
|
94
|
-
width: entry.contentRect.width,
|
95
|
-
height: entry.contentRect.height
|
96
|
-
};
|
97
|
-
};
|
98
|
-
exports.getDimensions = getDimensions;
|
99
|
-
exports.patchResizeCallback = patchResizeCallback;
|
100
|
-
exports.useCallbackRef = useCallbackRef;
|
101
|
-
exports.useRefProxy = useRefProxy;
|
23
|
+
exports.UpgradeIcon = UpgradeIcon;
|
102
24
|
//# sourceMappingURL=harmony90.cjs.map
|
package/dist/harmony90.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony90.cjs","sources":["../
|
1
|
+
{"version":3,"file":"harmony90.cjs","sources":["../src/components/Sidebar/UpgradeIcon/UpgradeIcon.tsx"],"sourcesContent":["import { CaretUpIcon } from '@lokalise/louis'\nimport clsx from 'clsx'\nimport styles from './UpgradeIcon.module.css'\n\ntype UpgradeIconProps = {\n\tclassName?: string\n}\n\nexport const UpgradeIcon = ({ className = '' }: UpgradeIconProps) => {\n\treturn (\n\t\t<div\n\t\t\taria-label={'Upgrade Icon'}\n\t\t\tclassName={clsx(\n\t\t\t\tstyles.iconContainer,\n\t\t\t\t'flex-row',\n\t\t\t\t'items-center',\n\t\t\t\t'justify-center',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t>\n\t\t\t<CaretUpIcon />\n\t\t</div>\n\t)\n}\n"],"names":["jsx","clsx","styles","CaretUpIcon"],"mappings":";;;;;;AAQO,MAAM,cAAc,CAAC,EAAE,YAAY,SAA2B;AAEnE,SAAAA,2BAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,cAAY;AAAA,MACZ,WAAWC,KAAA;AAAA,QACVC,mBAAAA,QAAO;AAAA,QACP;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACD;AAAA,MAEA,yCAACC,MAAAA,aAAY,CAAA,CAAA;AAAA,IAAA;AAAA,EACd;AAEF;;"}
|
package/dist/harmony90.mjs
CHANGED
@@ -1,85 +1,24 @@
|
|
1
|
-
import
|
2
|
-
import
|
3
|
-
import
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
React.useEffect(() => {
|
19
|
-
callbackRef.current = callback;
|
20
|
-
});
|
21
|
-
return React.useMemo(() => (...args) => {
|
22
|
-
var _a;
|
23
|
-
return (_a = callbackRef.current) === null || _a === void 0 ? void 0 : _a.call(callbackRef, ...args);
|
24
|
-
}, []);
|
25
|
-
}
|
26
|
-
);
|
27
|
-
const useRefProxy = (
|
28
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
29
|
-
(targetRef) => {
|
30
|
-
const [refElement, setRefElement] = React.useState((targetRef === null || targetRef === void 0 ? void 0 : targetRef.current) || null);
|
31
|
-
if (targetRef) {
|
32
|
-
setTimeout(() => {
|
33
|
-
if (targetRef.current !== refElement) {
|
34
|
-
setRefElement(targetRef.current);
|
35
|
-
}
|
36
|
-
}, 0);
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
2
|
+
import { CaretUpIcon } from "@lokalise/louis";
|
3
|
+
import { clsx } from "./harmony62.mjs";
|
4
|
+
import styles from "./harmony104.mjs";
|
5
|
+
const UpgradeIcon = ({ className = "" }) => {
|
6
|
+
return /* @__PURE__ */ jsx(
|
7
|
+
"div",
|
8
|
+
{
|
9
|
+
"aria-label": "Upgrade Icon",
|
10
|
+
className: clsx(
|
11
|
+
styles.iconContainer,
|
12
|
+
"flex-row",
|
13
|
+
"items-center",
|
14
|
+
"justify-center",
|
15
|
+
className
|
16
|
+
),
|
17
|
+
children: /* @__PURE__ */ jsx(CaretUpIcon, {})
|
37
18
|
}
|
38
|
-
|
39
|
-
if (node !== refElement) {
|
40
|
-
setRefElement(node);
|
41
|
-
}
|
42
|
-
}, {
|
43
|
-
get(target, prop) {
|
44
|
-
if (prop === "current") {
|
45
|
-
return refElement;
|
46
|
-
}
|
47
|
-
return target[prop];
|
48
|
-
},
|
49
|
-
set(target, prop, value) {
|
50
|
-
if (prop === "current") {
|
51
|
-
setRefElement(value);
|
52
|
-
} else {
|
53
|
-
target[prop] = value;
|
54
|
-
}
|
55
|
-
return true;
|
56
|
-
}
|
57
|
-
}), [refElement]);
|
58
|
-
return { refProxy, refElement, setRefElement };
|
59
|
-
}
|
60
|
-
);
|
61
|
-
const getDimensions = (entry, box) => {
|
62
|
-
if (box === "border-box") {
|
63
|
-
return {
|
64
|
-
width: entry.borderBoxSize[0].inlineSize,
|
65
|
-
height: entry.borderBoxSize[0].blockSize
|
66
|
-
};
|
67
|
-
}
|
68
|
-
if (box === "content-box") {
|
69
|
-
return {
|
70
|
-
width: entry.contentBoxSize[0].inlineSize,
|
71
|
-
height: entry.contentBoxSize[0].blockSize
|
72
|
-
};
|
73
|
-
}
|
74
|
-
return {
|
75
|
-
width: entry.contentRect.width,
|
76
|
-
height: entry.contentRect.height
|
77
|
-
};
|
19
|
+
);
|
78
20
|
};
|
79
21
|
export {
|
80
|
-
|
81
|
-
patchResizeCallback,
|
82
|
-
useCallbackRef,
|
83
|
-
useRefProxy
|
22
|
+
UpgradeIcon
|
84
23
|
};
|
85
24
|
//# sourceMappingURL=harmony90.mjs.map
|
package/dist/harmony90.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony90.mjs","sources":["../
|
1
|
+
{"version":3,"file":"harmony90.mjs","sources":["../src/components/Sidebar/UpgradeIcon/UpgradeIcon.tsx"],"sourcesContent":["import { CaretUpIcon } from '@lokalise/louis'\nimport clsx from 'clsx'\nimport styles from './UpgradeIcon.module.css'\n\ntype UpgradeIconProps = {\n\tclassName?: string\n}\n\nexport const UpgradeIcon = ({ className = '' }: UpgradeIconProps) => {\n\treturn (\n\t\t<div\n\t\t\taria-label={'Upgrade Icon'}\n\t\t\tclassName={clsx(\n\t\t\t\tstyles.iconContainer,\n\t\t\t\t'flex-row',\n\t\t\t\t'items-center',\n\t\t\t\t'justify-center',\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t>\n\t\t\t<CaretUpIcon />\n\t\t</div>\n\t)\n}\n"],"names":[],"mappings":";;;;AAQO,MAAM,cAAc,CAAC,EAAE,YAAY,SAA2B;AAEnE,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,cAAY;AAAA,MACZ,WAAW;AAAA,QACV,OAAO;AAAA,QACP;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACD;AAAA,MAEA,8BAAC,aAAY,CAAA,CAAA;AAAA,IAAA;AAAA,EACd;AAEF;"}
|