@lokalise/harmony 1.29.4 → 1.29.5-exp-teamSwitch.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 +18 -13
- package/dist/harmony.cjs.map +1 -1
- package/dist/harmony.mjs +19 -14
- package/dist/harmony.mjs.map +1 -1
- package/dist/harmony100.cjs +1 -1
- package/dist/harmony100.mjs +1 -1
- package/dist/harmony103.cjs +2 -2
- package/dist/harmony103.mjs +2 -2
- package/dist/harmony106.cjs +6 -5
- package/dist/harmony106.cjs.map +1 -1
- package/dist/harmony106.mjs +6 -5
- package/dist/harmony107.cjs +5 -5
- package/dist/harmony107.mjs +5 -5
- package/dist/harmony108.cjs +6 -97
- package/dist/harmony108.cjs.map +1 -1
- package/dist/harmony108.mjs +5 -96
- package/dist/harmony108.mjs.map +1 -1
- package/dist/harmony109.cjs +62 -13
- package/dist/harmony109.cjs.map +1 -1
- package/dist/harmony109.mjs +61 -12
- package/dist/harmony109.mjs.map +1 -1
- package/dist/harmony110.cjs +87 -13
- package/dist/harmony110.cjs.map +1 -1
- package/dist/harmony110.mjs +87 -13
- package/dist/harmony110.mjs.map +1 -1
- package/dist/harmony111.cjs +19 -37
- package/dist/harmony111.cjs.map +1 -1
- package/dist/harmony111.mjs +18 -36
- package/dist/harmony111.mjs.map +1 -1
- package/dist/harmony112.cjs +87 -19
- package/dist/harmony112.cjs.map +1 -1
- package/dist/harmony112.mjs +87 -19
- package/dist/harmony112.mjs.map +1 -1
- package/dist/harmony113.cjs +13 -62
- package/dist/harmony113.cjs.map +1 -1
- package/dist/harmony113.mjs +12 -61
- package/dist/harmony113.mjs.map +1 -1
- package/dist/harmony114.cjs +13 -87
- package/dist/harmony114.cjs.map +1 -1
- package/dist/harmony114.mjs +13 -87
- package/dist/harmony114.mjs.map +1 -1
- package/dist/harmony115.cjs +37 -19
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +36 -18
- package/dist/harmony115.mjs.map +1 -1
- package/dist/harmony116.cjs +27 -12
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +27 -12
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +7 -15
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +7 -15
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +57 -16
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +57 -16
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony119.cjs +59 -15
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +59 -15
- package/dist/harmony119.mjs.map +1 -1
- package/dist/harmony120.cjs +19 -22
- package/dist/harmony120.cjs.map +1 -1
- package/dist/harmony120.mjs +18 -21
- package/dist/harmony120.mjs.map +1 -1
- package/dist/harmony121.cjs +12 -11
- package/dist/harmony121.cjs.map +1 -1
- package/dist/harmony121.mjs +12 -11
- package/dist/harmony121.mjs.map +1 -1
- package/dist/harmony122.cjs +14 -10
- package/dist/harmony122.cjs.map +1 -1
- package/dist/harmony122.mjs +14 -10
- package/dist/harmony122.mjs.map +1 -1
- package/dist/harmony123.cjs +16 -7
- package/dist/harmony123.cjs.map +1 -1
- package/dist/harmony123.mjs +16 -7
- package/dist/harmony123.mjs.map +1 -1
- package/dist/harmony124.cjs +11 -57
- package/dist/harmony124.cjs.map +1 -1
- package/dist/harmony124.mjs +11 -57
- package/dist/harmony124.mjs.map +1 -1
- package/dist/harmony125.cjs +15 -59
- package/dist/harmony125.cjs.map +1 -1
- package/dist/harmony125.mjs +15 -59
- package/dist/harmony125.mjs.map +1 -1
- package/dist/harmony126.cjs +22 -19
- package/dist/harmony126.cjs.map +1 -1
- package/dist/harmony126.mjs +21 -18
- 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 -5
- package/dist/harmony130.cjs.map +1 -1
- package/dist/harmony130.mjs +31 -5
- package/dist/harmony130.mjs.map +1 -1
- package/dist/harmony131.cjs +14 -46
- package/dist/harmony131.cjs.map +1 -1
- package/dist/harmony131.mjs +14 -46
- package/dist/harmony131.mjs.map +1 -1
- package/dist/harmony132.cjs +46 -12
- package/dist/harmony132.cjs.map +1 -1
- package/dist/harmony132.mjs +45 -11
- package/dist/harmony132.mjs.map +1 -1
- package/dist/harmony133.cjs +15 -0
- package/dist/harmony133.cjs.map +1 -0
- package/dist/harmony133.mjs +15 -0
- package/dist/harmony133.mjs.map +1 -0
- 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 +2 -2
- package/dist/harmony30.mjs +2 -2
- package/dist/harmony31.cjs +10 -1
- package/dist/harmony31.cjs.map +1 -1
- package/dist/harmony31.mjs +12 -3
- package/dist/harmony31.mjs.map +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/harmony5.cjs +1 -1
- package/dist/harmony5.mjs +1 -1
- package/dist/harmony51.cjs +5 -6
- package/dist/harmony51.cjs.map +1 -1
- package/dist/harmony51.mjs +5 -6
- package/dist/harmony51.mjs.map +1 -1
- package/dist/harmony52.cjs +14 -56
- package/dist/harmony52.cjs.map +1 -1
- package/dist/harmony52.mjs +14 -56
- package/dist/harmony52.mjs.map +1 -1
- package/dist/harmony53.cjs +48 -72
- package/dist/harmony53.cjs.map +1 -1
- package/dist/harmony53.mjs +47 -71
- package/dist/harmony53.mjs.map +1 -1
- package/dist/harmony54.cjs +78 -4
- package/dist/harmony54.cjs.map +1 -1
- package/dist/harmony54.mjs +78 -4
- package/dist/harmony54.mjs.map +1 -1
- package/dist/harmony55.cjs +4 -21
- package/dist/harmony55.cjs.map +1 -1
- package/dist/harmony55.mjs +4 -21
- package/dist/harmony55.mjs.map +1 -1
- package/dist/harmony56.cjs +20 -34
- package/dist/harmony56.cjs.map +1 -1
- package/dist/harmony56.mjs +20 -34
- package/dist/harmony56.mjs.map +1 -1
- package/dist/harmony57.cjs +35 -120
- package/dist/harmony57.cjs.map +1 -1
- package/dist/harmony57.mjs +34 -119
- package/dist/harmony57.mjs.map +1 -1
- package/dist/harmony58.cjs +121 -28
- package/dist/harmony58.cjs.map +1 -1
- package/dist/harmony58.mjs +121 -28
- package/dist/harmony58.mjs.map +1 -1
- package/dist/harmony59.cjs +28 -25
- package/dist/harmony59.cjs.map +1 -1
- package/dist/harmony59.mjs +28 -25
- package/dist/harmony59.mjs.map +1 -1
- package/dist/harmony6.cjs +4 -4
- package/dist/harmony6.mjs +4 -4
- package/dist/harmony60.cjs +24 -6
- package/dist/harmony60.cjs.map +1 -1
- package/dist/harmony60.mjs +24 -6
- package/dist/harmony60.mjs.map +1 -1
- package/dist/harmony61.cjs +6 -82
- package/dist/harmony61.cjs.map +1 -1
- package/dist/harmony61.mjs +6 -82
- package/dist/harmony61.mjs.map +1 -1
- package/dist/harmony62.cjs +86 -20
- package/dist/harmony62.cjs.map +1 -1
- package/dist/harmony62.mjs +86 -20
- package/dist/harmony62.mjs.map +1 -1
- package/dist/harmony63.cjs +22 -16
- package/dist/harmony63.cjs.map +1 -1
- package/dist/harmony63.mjs +22 -16
- package/dist/harmony63.mjs.map +1 -1
- package/dist/harmony64.cjs +19 -16
- package/dist/harmony64.cjs.map +1 -1
- package/dist/harmony64.mjs +18 -15
- package/dist/harmony64.mjs.map +1 -1
- package/dist/harmony65.cjs +15 -18
- package/dist/harmony65.cjs.map +1 -1
- package/dist/harmony65.mjs +15 -18
- package/dist/harmony65.mjs.map +1 -1
- package/dist/harmony66.cjs +18 -61
- package/dist/harmony66.cjs.map +1 -1
- package/dist/harmony66.mjs +18 -61
- package/dist/harmony66.mjs.map +1 -1
- package/dist/harmony67.cjs +61 -6
- package/dist/harmony67.cjs.map +1 -1
- package/dist/harmony67.mjs +61 -6
- package/dist/harmony67.mjs.map +1 -1
- package/dist/harmony68.cjs +7 -10
- package/dist/harmony68.cjs.map +1 -1
- package/dist/harmony68.mjs +6 -9
- package/dist/harmony68.mjs.map +1 -1
- package/dist/harmony69.cjs +8 -17
- package/dist/harmony69.cjs.map +1 -1
- package/dist/harmony69.mjs +8 -17
- package/dist/harmony69.mjs.map +1 -1
- package/dist/harmony70.cjs +13 -18
- package/dist/harmony70.cjs.map +1 -1
- package/dist/harmony70.mjs +14 -19
- package/dist/harmony70.mjs.map +1 -1
- package/dist/harmony71.cjs +22 -4
- package/dist/harmony71.cjs.map +1 -1
- package/dist/harmony71.mjs +22 -4
- package/dist/harmony71.mjs.map +1 -1
- package/dist/harmony72.cjs +4 -31
- package/dist/harmony72.cjs.map +1 -1
- package/dist/harmony72.mjs +5 -32
- package/dist/harmony72.mjs.map +1 -1
- package/dist/harmony73.cjs +26 -26
- package/dist/harmony73.cjs.map +1 -1
- package/dist/harmony73.mjs +28 -28
- package/dist/harmony73.mjs.map +1 -1
- package/dist/harmony74.cjs +25 -12
- package/dist/harmony74.cjs.map +1 -1
- package/dist/harmony74.mjs +26 -13
- package/dist/harmony74.mjs.map +1 -1
- package/dist/harmony75.cjs +12 -24
- package/dist/harmony75.cjs.map +1 -1
- package/dist/harmony75.mjs +13 -25
- package/dist/harmony75.mjs.map +1 -1
- package/dist/harmony76.cjs +27 -55
- package/dist/harmony76.cjs.map +1 -1
- package/dist/harmony76.mjs +29 -57
- package/dist/harmony76.mjs.map +1 -1
- package/dist/harmony77.cjs +60 -10
- package/dist/harmony77.cjs.map +1 -1
- package/dist/harmony77.mjs +59 -9
- package/dist/harmony77.mjs.map +1 -1
- package/dist/harmony78.cjs +10 -9
- package/dist/harmony78.cjs.map +1 -1
- package/dist/harmony78.mjs +9 -8
- package/dist/harmony78.mjs.map +1 -1
- package/dist/harmony79.cjs +5 -26
- package/dist/harmony79.cjs.map +1 -1
- package/dist/harmony79.mjs +8 -29
- package/dist/harmony79.mjs.map +1 -1
- package/dist/harmony80.cjs +29 -3
- package/dist/harmony80.cjs.map +1 -1
- package/dist/harmony80.mjs +29 -3
- package/dist/harmony80.mjs.map +1 -1
- package/dist/harmony81.cjs +4 -7
- package/dist/harmony81.cjs.map +1 -1
- package/dist/harmony81.mjs +3 -6
- package/dist/harmony81.mjs.map +1 -1
- package/dist/harmony82.cjs +12 -10
- package/dist/harmony82.cjs.map +1 -1
- package/dist/harmony82.mjs +11 -9
- package/dist/harmony82.mjs.map +1 -1
- package/dist/harmony83.cjs +20 -8
- package/dist/harmony83.cjs.map +1 -1
- package/dist/harmony83.mjs +20 -8
- package/dist/harmony83.mjs.map +1 -1
- package/dist/harmony84.cjs +6 -57
- package/dist/harmony84.cjs.map +1 -1
- package/dist/harmony84.mjs +5 -56
- package/dist/harmony84.mjs.map +1 -1
- package/dist/harmony85.cjs +9 -42
- package/dist/harmony85.cjs.map +1 -1
- package/dist/harmony85.mjs +8 -41
- package/dist/harmony85.mjs.map +1 -1
- package/dist/harmony86.cjs +10 -6
- package/dist/harmony86.cjs.map +1 -1
- package/dist/harmony86.mjs +9 -5
- package/dist/harmony86.mjs.map +1 -1
- package/dist/harmony87.cjs +57 -9
- package/dist/harmony87.cjs.map +1 -1
- package/dist/harmony87.mjs +56 -8
- package/dist/harmony87.mjs.map +1 -1
- package/dist/harmony88.cjs +42 -24
- package/dist/harmony88.cjs.map +1 -1
- package/dist/harmony88.mjs +41 -23
- package/dist/harmony88.mjs.map +1 -1
- package/dist/harmony89.cjs +6 -7
- package/dist/harmony89.cjs.map +1 -1
- package/dist/harmony89.mjs +5 -6
- package/dist/harmony89.mjs.map +1 -1
- package/dist/harmony90.cjs +9 -21
- package/dist/harmony90.cjs.map +1 -1
- package/dist/harmony90.mjs +8 -20
- package/dist/harmony90.mjs.map +1 -1
- package/dist/harmony91.cjs +21 -9
- package/dist/harmony91.cjs.map +1 -1
- package/dist/harmony91.mjs +21 -9
- package/dist/harmony91.mjs.map +1 -1
- package/dist/harmony92.cjs +7 -12
- package/dist/harmony92.cjs.map +1 -1
- package/dist/harmony92.mjs +6 -11
- package/dist/harmony92.mjs.map +1 -1
- package/dist/harmony93.cjs +21 -21
- package/dist/harmony93.cjs.map +1 -1
- package/dist/harmony93.mjs +20 -20
- package/dist/harmony93.mjs.map +1 -1
- package/dist/harmony94.cjs +12 -99
- package/dist/harmony94.cjs.map +1 -1
- package/dist/harmony94.mjs +11 -81
- package/dist/harmony94.mjs.map +1 -1
- package/dist/harmony95.cjs +1 -1
- package/dist/harmony95.mjs +1 -1
- package/dist/harmony97.cjs +99 -21
- package/dist/harmony97.cjs.map +1 -1
- package/dist/harmony97.mjs +81 -20
- package/dist/harmony97.mjs.map +1 -1
- package/dist/harmony98.cjs +21 -6
- package/dist/harmony98.cjs.map +1 -1
- package/dist/harmony98.mjs +20 -5
- package/dist/harmony98.mjs.map +1 -1
- package/dist/harmony99.cjs +6 -6
- package/dist/harmony99.cjs.map +1 -1
- package/dist/harmony99.mjs +5 -5
- package/dist/harmony99.mjs.map +1 -1
- package/dist/types/src/features/publicApi/hooks/useSwitchTeamMutation.d.ts +15 -0
- package/dist/types/src/features/publicApi/hooks/useSwitchTeamMutation.test.d.ts +1 -0
- package/dist/types/src/features/publicApi/node.d.ts +1 -0
- package/dist/types/src/features/publicApi/team.d.ts +61 -0
- package/dist/types/src/features/publicApi/types/teamTypes.d.ts +10 -0
- package/dist/types/tests/utils/apiHelpers.d.ts +1 -0
- package/package.json +1 -1
package/dist/harmony88.cjs
CHANGED
@@ -1,27 +1,45 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
const
|
6
|
-
const
|
7
|
-
const
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
4
|
+
const plan = require("./harmony7.cjs");
|
5
|
+
const types = require("./harmony99.cjs");
|
6
|
+
const ProfileMenuContext = require("./harmony89.cjs");
|
7
|
+
const billingRoles = [
|
8
|
+
types.SidebarTeamRoles.biller,
|
9
|
+
types.SidebarTeamRoles.owner,
|
10
|
+
types.SidebarTeamRoles.admin
|
11
|
+
];
|
12
|
+
const teamSettingsRoles = [
|
13
|
+
types.SidebarTeamRoles.biller,
|
14
|
+
types.SidebarTeamRoles.owner,
|
15
|
+
types.SidebarTeamRoles.admin
|
16
|
+
];
|
17
|
+
const upgradeCtaRoles = [
|
18
|
+
types.SidebarTeamRoles.biller,
|
19
|
+
types.SidebarTeamRoles.owner
|
20
|
+
];
|
21
|
+
const ProfileMenuProvider = ({ children, config }) => {
|
22
|
+
const { teams, currentTeamId, planId, isEndOfTrialActive, isFullyAuthenticated, userTeamRole } = config;
|
23
|
+
const currentTeam = teams.find((t) => t.id === currentTeamId);
|
24
|
+
const otherTeams = teams.filter((t) => t.id !== currentTeamId);
|
25
|
+
const canChangeBilling = billingRoles.includes(userTeamRole);
|
26
|
+
const canAccessTeamSettings = teamSettingsRoles.includes(userTeamRole);
|
27
|
+
const isOnFreeOrTrialPlan = plan.isFreePlan(planId) || plan.isTrialPlan(planId);
|
28
|
+
const showUpgradeCta = isFullyAuthenticated && isOnFreeOrTrialPlan && upgradeCtaRoles.includes(userTeamRole);
|
29
|
+
const showBillingButton = isFullyAuthenticated && canAccessTeamSettings && canChangeBilling;
|
30
|
+
const allowTeamCreation = isFullyAuthenticated && !isEndOfTrialActive;
|
31
|
+
const providerValue = {
|
32
|
+
...config,
|
33
|
+
currentTeam,
|
34
|
+
otherTeams,
|
35
|
+
canChangeBilling,
|
36
|
+
canAccessTeamSettings,
|
37
|
+
isOnFreeOrTrialPlan,
|
38
|
+
showUpgradeCta,
|
39
|
+
showBillingButton,
|
40
|
+
allowTeamCreation
|
41
|
+
};
|
42
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ProfileMenuContext.ProfileMenuContext.Provider, { value: providerValue, children });
|
18
43
|
};
|
19
|
-
exports.
|
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;
|
44
|
+
exports.ProfileMenuProvider = ProfileMenuProvider;
|
27
45
|
//# sourceMappingURL=harmony88.cjs.map
|
package/dist/harmony88.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony88.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony88.cjs","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\tSidebarTeamRoles.admin,\n]\n\nconst teamSettingsRoles: ReadonlyArray<SidebarTeamRole> = [\n\tSidebarTeamRoles.biller,\n\tSidebarTeamRoles.owner,\n\tSidebarTeamRoles.admin,\n]\n\nconst upgradeCtaRoles: 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 = teamSettingsRoles.includes(userTeamRole)\n\n\tconst isOnFreeOrTrialPlan = isFreePlan(planId) || isTrialPlan(planId)\n\n\tconst showUpgradeCta =\n\t\tisFullyAuthenticated && isOnFreeOrTrialPlan && upgradeCtaRoles.includes(userTeamRole)\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":["SidebarTeamRoles","isFreePlan","isTrialPlan","ProfileMenuContext"],"mappings":";;;;;;AAUA,MAAM,eAA+C;AAAA,EACpDA,MAAAA,iBAAiB;AAAA,EACjBA,MAAAA,iBAAiB;AAAA,EACjBA,uBAAiB;AAClB;AAEA,MAAM,oBAAoD;AAAA,EACzDA,MAAAA,iBAAiB;AAAA,EACjBA,MAAAA,iBAAiB;AAAA,EACjBA,uBAAiB;AAClB;AAEA,MAAM,kBAAkD;AAAA,EACvDA,MAAAA,iBAAiB;AAAA,EACjBA,uBAAiB;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,kBAAkB,SAAS,YAAY;AAErE,QAAM,sBAAsBC,KAAA,WAAW,MAAM,KAAKC,KAAAA,YAAY,MAAM;AAEpE,QAAM,iBACL,wBAAwB,uBAAuB,gBAAgB,SAAS,YAAY;AAE/E,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,wCAAQC,mBAAAA,mBAAmB,UAAnB,EAA4B,OAAO,eAAgB,UAAS;AACrE;;"}
|
package/dist/harmony88.mjs
CHANGED
@@ -1,27 +1,45 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
const
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
2
|
+
import { isFreePlan, isTrialPlan } from "./harmony7.mjs";
|
3
|
+
import { SidebarTeamRoles } from "./harmony99.mjs";
|
4
|
+
import { ProfileMenuContext } from "./harmony89.mjs";
|
5
|
+
const billingRoles = [
|
6
|
+
SidebarTeamRoles.biller,
|
7
|
+
SidebarTeamRoles.owner,
|
8
|
+
SidebarTeamRoles.admin
|
9
|
+
];
|
10
|
+
const teamSettingsRoles = [
|
11
|
+
SidebarTeamRoles.biller,
|
12
|
+
SidebarTeamRoles.owner,
|
13
|
+
SidebarTeamRoles.admin
|
14
|
+
];
|
15
|
+
const upgradeCtaRoles = [
|
16
|
+
SidebarTeamRoles.biller,
|
17
|
+
SidebarTeamRoles.owner
|
18
|
+
];
|
19
|
+
const ProfileMenuProvider = ({ children, config }) => {
|
20
|
+
const { teams, currentTeamId, planId, isEndOfTrialActive, isFullyAuthenticated, userTeamRole } = config;
|
21
|
+
const currentTeam = teams.find((t) => t.id === currentTeamId);
|
22
|
+
const otherTeams = teams.filter((t) => t.id !== currentTeamId);
|
23
|
+
const canChangeBilling = billingRoles.includes(userTeamRole);
|
24
|
+
const canAccessTeamSettings = teamSettingsRoles.includes(userTeamRole);
|
25
|
+
const isOnFreeOrTrialPlan = isFreePlan(planId) || isTrialPlan(planId);
|
26
|
+
const showUpgradeCta = isFullyAuthenticated && isOnFreeOrTrialPlan && upgradeCtaRoles.includes(userTeamRole);
|
27
|
+
const showBillingButton = isFullyAuthenticated && canAccessTeamSettings && canChangeBilling;
|
28
|
+
const allowTeamCreation = isFullyAuthenticated && !isEndOfTrialActive;
|
29
|
+
const providerValue = {
|
30
|
+
...config,
|
31
|
+
currentTeam,
|
32
|
+
otherTeams,
|
33
|
+
canChangeBilling,
|
34
|
+
canAccessTeamSettings,
|
35
|
+
isOnFreeOrTrialPlan,
|
36
|
+
showUpgradeCta,
|
37
|
+
showBillingButton,
|
38
|
+
allowTeamCreation
|
39
|
+
};
|
40
|
+
return /* @__PURE__ */ jsx(ProfileMenuContext.Provider, { value: providerValue, children });
|
16
41
|
};
|
17
42
|
export {
|
18
|
-
|
19
|
-
defaultProfileImage,
|
20
|
-
membership,
|
21
|
-
planWrapper,
|
22
|
-
profileImage,
|
23
|
-
teamDetails,
|
24
|
-
teamName,
|
25
|
-
wrapper
|
43
|
+
ProfileMenuProvider
|
26
44
|
};
|
27
45
|
//# sourceMappingURL=harmony88.mjs.map
|
package/dist/harmony88.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony88.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony88.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\tSidebarTeamRoles.admin,\n]\n\nconst teamSettingsRoles: ReadonlyArray<SidebarTeamRole> = [\n\tSidebarTeamRoles.biller,\n\tSidebarTeamRoles.owner,\n\tSidebarTeamRoles.admin,\n]\n\nconst upgradeCtaRoles: 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 = teamSettingsRoles.includes(userTeamRole)\n\n\tconst isOnFreeOrTrialPlan = isFreePlan(planId) || isTrialPlan(planId)\n\n\tconst showUpgradeCta =\n\t\tisFullyAuthenticated && isOnFreeOrTrialPlan && upgradeCtaRoles.includes(userTeamRole)\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;AAAA,EACjB,iBAAiB;AAClB;AAEA,MAAM,oBAAoD;AAAA,EACzD,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,iBAAiB;AAClB;AAEA,MAAM,kBAAkD;AAAA,EACvD,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,kBAAkB,SAAS,YAAY;AAErE,QAAM,sBAAsB,WAAW,MAAM,KAAK,YAAY,MAAM;AAEpE,QAAM,iBACL,wBAAwB,uBAAuB,gBAAgB,SAAS,YAAY;AAE/E,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/harmony89.cjs
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
|
6
|
-
|
7
|
-
exports.
|
8
|
-
exports.teamsContainer = teamsContainer;
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
+
const React = require("react");
|
4
|
+
const ProfileMenuContext = React.createContext({});
|
5
|
+
const useProfileMenu = () => React.useContext(ProfileMenuContext);
|
6
|
+
exports.ProfileMenuContext = ProfileMenuContext;
|
7
|
+
exports.useProfileMenu = useProfileMenu;
|
9
8
|
//# 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":["../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/harmony89.mjs
CHANGED
@@ -1,9 +1,8 @@
|
|
1
|
-
|
2
|
-
const
|
3
|
-
|
4
|
-
};
|
1
|
+
import { useContext, createContext } from "react";
|
2
|
+
const ProfileMenuContext = createContext({});
|
3
|
+
const useProfileMenu = () => useContext(ProfileMenuContext);
|
5
4
|
export {
|
6
|
-
|
7
|
-
|
5
|
+
ProfileMenuContext,
|
6
|
+
useProfileMenu
|
8
7
|
};
|
9
8
|
//# 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":["../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/harmony90.cjs
CHANGED
@@ -1,24 +1,12 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
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
|
-
);
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const container = "_container_q5pot_1";
|
4
|
+
const profileEmail = "_profileEmail_q5pot_5";
|
5
|
+
const styles = {
|
6
|
+
container,
|
7
|
+
profileEmail
|
22
8
|
};
|
23
|
-
exports.
|
9
|
+
exports.container = container;
|
10
|
+
exports.default = styles;
|
11
|
+
exports.profileEmail = profileEmail;
|
24
12
|
//# 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":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
|
package/dist/harmony90.mjs
CHANGED
@@ -1,24 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
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
|
-
);
|
1
|
+
const container = "_container_q5pot_1";
|
2
|
+
const profileEmail = "_profileEmail_q5pot_5";
|
3
|
+
const styles = {
|
4
|
+
container,
|
5
|
+
profileEmail
|
20
6
|
};
|
21
7
|
export {
|
22
|
-
|
8
|
+
container,
|
9
|
+
styles as default,
|
10
|
+
profileEmail
|
23
11
|
};
|
24
12
|
//# 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":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
package/dist/harmony91.cjs
CHANGED
@@ -1,15 +1,27 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
-
const
|
4
|
-
const
|
5
|
-
const
|
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";
|
6
10
|
const styles = {
|
7
|
-
|
8
|
-
|
9
|
-
|
11
|
+
wrapper,
|
12
|
+
profileImage,
|
13
|
+
teamDetails,
|
14
|
+
planWrapper,
|
15
|
+
teamName,
|
16
|
+
membership,
|
17
|
+
defaultProfileImage
|
10
18
|
};
|
11
|
-
exports.container = container;
|
12
19
|
exports.default = styles;
|
13
|
-
exports.
|
14
|
-
exports.
|
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;
|
15
27
|
//# sourceMappingURL=harmony91.cjs.map
|
package/dist/harmony91.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony91.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony91.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/harmony91.mjs
CHANGED
@@ -1,15 +1,27 @@
|
|
1
|
-
const
|
2
|
-
const
|
3
|
-
const
|
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";
|
4
8
|
const styles = {
|
5
|
-
|
6
|
-
|
7
|
-
|
9
|
+
wrapper,
|
10
|
+
profileImage,
|
11
|
+
teamDetails,
|
12
|
+
planWrapper,
|
13
|
+
teamName,
|
14
|
+
membership,
|
15
|
+
defaultProfileImage
|
8
16
|
};
|
9
17
|
export {
|
10
|
-
container,
|
11
18
|
styles as default,
|
12
|
-
|
13
|
-
|
19
|
+
defaultProfileImage,
|
20
|
+
membership,
|
21
|
+
planWrapper,
|
22
|
+
profileImage,
|
23
|
+
teamDetails,
|
24
|
+
teamName,
|
25
|
+
wrapper
|
14
26
|
};
|
15
27
|
//# sourceMappingURL=harmony91.mjs.map
|
package/dist/harmony91.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony91.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony91.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
|
package/dist/harmony92.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 teamsContainer = "_teamsContainer_1ncrr_5";
|
4
|
+
const styles = {
|
5
|
+
teamsContainer
|
6
|
+
};
|
7
|
+
exports.default = styles;
|
8
|
+
exports.teamsContainer = teamsContainer;
|
14
9
|
//# sourceMappingURL=harmony92.cjs.map
|
package/dist/harmony92.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony92.cjs","sources":[
|
1
|
+
{"version":3,"file":"harmony92.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/harmony92.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 teamsContainer = "_teamsContainer_1ncrr_5";
|
2
|
+
const styles = {
|
3
|
+
teamsContainer
|
4
|
+
};
|
11
5
|
export {
|
12
|
-
|
6
|
+
styles as default,
|
7
|
+
teamsContainer
|
13
8
|
};
|
14
9
|
//# sourceMappingURL=harmony92.mjs.map
|
package/dist/harmony92.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony92.mjs","sources":[
|
1
|
+
{"version":3,"file":"harmony92.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/harmony93.cjs
CHANGED
@@ -1,24 +1,24 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
const
|
6
|
-
const
|
7
|
-
const
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
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("./harmony65.cjs");
|
6
|
+
const UpgradeIcon_module = require("./harmony106.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, {})
|
20
|
+
}
|
21
|
+
);
|
16
22
|
};
|
17
|
-
exports.
|
18
|
-
exports.default = classes;
|
19
|
-
exports.disabled = disabled;
|
20
|
-
exports.projectNavigationItem = projectNavigationItem;
|
21
|
-
exports.projectNavigationItemDisabled = projectNavigationItemDisabled;
|
22
|
-
exports.tag = tag;
|
23
|
-
exports.withNavLinkStyle = withNavLinkStyle;
|
23
|
+
exports.UpgradeIcon = UpgradeIcon;
|
24
24
|
//# sourceMappingURL=harmony93.cjs.map
|
package/dist/harmony93.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony93.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony93.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/harmony93.mjs
CHANGED
@@ -1,24 +1,24 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
const
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
2
|
+
import { CaretUpIcon } from "@lokalise/louis";
|
3
|
+
import { clsx } from "./harmony65.mjs";
|
4
|
+
import styles from "./harmony106.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
|
+
);
|
14
20
|
};
|
15
21
|
export {
|
16
|
-
|
17
|
-
classes as default,
|
18
|
-
disabled,
|
19
|
-
projectNavigationItem,
|
20
|
-
projectNavigationItemDisabled,
|
21
|
-
tag,
|
22
|
-
withNavLinkStyle
|
22
|
+
UpgradeIcon
|
23
23
|
};
|
24
24
|
//# sourceMappingURL=harmony93.mjs.map
|
package/dist/harmony93.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony93.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony93.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;"}
|