@lokalise/harmony 1.37.0 → 1.37.1-exp-epic2x.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.css +110 -317
- package/dist/harmony100.cjs +10 -6
- package/dist/harmony100.cjs.map +1 -1
- package/dist/harmony100.mjs +9 -5
- package/dist/harmony100.mjs.map +1 -1
- package/dist/harmony101.cjs +22 -14
- package/dist/harmony101.cjs.map +1 -1
- package/dist/harmony101.mjs +24 -16
- package/dist/harmony101.mjs.map +1 -1
- package/dist/harmony102.cjs +14 -12
- package/dist/harmony102.cjs.map +1 -1
- package/dist/harmony102.mjs +13 -11
- package/dist/harmony102.mjs.map +1 -1
- package/dist/harmony103.cjs +34 -96
- package/dist/harmony103.cjs.map +1 -1
- package/dist/harmony103.mjs +34 -79
- package/dist/harmony103.mjs.map +1 -1
- package/dist/harmony104.cjs +12 -12
- package/dist/harmony104.cjs.map +1 -1
- package/dist/harmony104.mjs +12 -12
- package/dist/harmony104.mjs.map +1 -1
- package/dist/harmony105.cjs +22 -18
- package/dist/harmony105.cjs.map +1 -1
- package/dist/harmony105.mjs +22 -18
- package/dist/harmony105.mjs.map +1 -1
- package/dist/harmony106.cjs +35 -21
- package/dist/harmony106.cjs.map +1 -1
- package/dist/harmony106.mjs +34 -20
- package/dist/harmony106.mjs.map +1 -1
- package/dist/harmony107.cjs +21 -6
- package/dist/harmony107.cjs.map +1 -1
- package/dist/harmony107.mjs +20 -5
- package/dist/harmony107.mjs.map +1 -1
- package/dist/harmony108.cjs +19 -130
- package/dist/harmony108.cjs.map +1 -1
- package/dist/harmony108.mjs +19 -130
- package/dist/harmony108.mjs.map +1 -1
- package/dist/harmony109.cjs +3 -9
- package/dist/harmony109.cjs.map +1 -1
- package/dist/harmony109.mjs +3 -9
- package/dist/harmony109.mjs.map +1 -1
- package/dist/harmony110.cjs +16 -6
- package/dist/harmony110.cjs.map +1 -1
- package/dist/harmony110.mjs +15 -5
- package/dist/harmony110.mjs.map +1 -1
- package/dist/harmony111.cjs +6 -41
- package/dist/harmony111.cjs.map +1 -1
- package/dist/harmony111.mjs +5 -40
- package/dist/harmony111.mjs.map +1 -1
- package/dist/harmony112.cjs +6 -61
- package/dist/harmony112.cjs.map +1 -1
- package/dist/harmony112.mjs +5 -60
- package/dist/harmony112.mjs.map +1 -1
- package/dist/harmony113.cjs +9 -7
- package/dist/harmony113.cjs.map +1 -1
- package/dist/harmony113.mjs +8 -6
- package/dist/harmony113.mjs.map +1 -1
- package/dist/harmony114.cjs +3 -3
- package/dist/harmony114.mjs +3 -3
- package/dist/harmony115.cjs +9 -5
- package/dist/harmony115.cjs.map +1 -1
- package/dist/harmony115.mjs +9 -5
- package/dist/harmony115.mjs.map +1 -1
- package/dist/harmony116.cjs +24 -5
- package/dist/harmony116.cjs.map +1 -1
- package/dist/harmony116.mjs +24 -5
- package/dist/harmony116.mjs.map +1 -1
- package/dist/harmony117.cjs +7 -97
- package/dist/harmony117.cjs.map +1 -1
- package/dist/harmony117.mjs +6 -96
- package/dist/harmony117.mjs.map +1 -1
- package/dist/harmony118.cjs +13 -14
- package/dist/harmony118.cjs.map +1 -1
- package/dist/harmony118.mjs +12 -13
- package/dist/harmony118.mjs.map +1 -1
- package/dist/harmony119.cjs +7 -15
- package/dist/harmony119.cjs.map +1 -1
- package/dist/harmony119.mjs +6 -14
- package/dist/harmony119.mjs.map +1 -1
- package/dist/harmony120.cjs +94 -34
- package/dist/harmony120.cjs.map +1 -1
- package/dist/harmony120.mjs +94 -34
- package/dist/harmony120.mjs.map +1 -1
- package/dist/harmony121.cjs +11 -26
- package/dist/harmony121.cjs.map +1 -1
- package/dist/harmony121.mjs +11 -26
- package/dist/harmony121.mjs.map +1 -1
- package/dist/harmony122.cjs +12 -60
- package/dist/harmony122.cjs.map +1 -1
- package/dist/harmony122.mjs +12 -60
- package/dist/harmony122.mjs.map +1 -1
- package/dist/harmony123.cjs +36 -88
- package/dist/harmony123.cjs.map +1 -1
- package/dist/harmony123.mjs +36 -88
- package/dist/harmony123.mjs.map +1 -1
- package/dist/harmony124.cjs +29 -19
- package/dist/harmony124.cjs.map +1 -1
- package/dist/harmony124.mjs +28 -18
- package/dist/harmony124.mjs.map +1 -1
- package/dist/harmony125.cjs +1 -1
- package/dist/harmony125.mjs +1 -1
- package/dist/harmony126.cjs +1 -1
- package/dist/harmony126.mjs +1 -1
- package/dist/harmony127.cjs +2 -2
- package/dist/harmony127.mjs +2 -2
- package/dist/harmony128.cjs +11 -7
- package/dist/harmony128.cjs.map +1 -1
- package/dist/harmony128.mjs +11 -7
- package/dist/harmony128.mjs.map +1 -1
- package/dist/harmony129.cjs +15 -56
- package/dist/harmony129.cjs.map +1 -1
- package/dist/harmony129.mjs +15 -56
- package/dist/harmony129.mjs.map +1 -1
- package/dist/harmony13.cjs +1 -1
- package/dist/harmony13.mjs +1 -1
- package/dist/harmony130.cjs +20 -59
- package/dist/harmony130.cjs.map +1 -1
- package/dist/harmony130.mjs +20 -59
- package/dist/harmony130.mjs.map +1 -1
- package/dist/harmony131.cjs +13 -19
- package/dist/harmony131.cjs.map +1 -1
- package/dist/harmony131.mjs +12 -18
- package/dist/harmony131.mjs.map +1 -1
- package/dist/harmony132.cjs +5 -10
- package/dist/harmony132.cjs.map +1 -1
- package/dist/harmony132.mjs +5 -10
- package/dist/harmony132.mjs.map +1 -1
- package/dist/harmony133.cjs +11 -15
- package/dist/harmony133.cjs.map +1 -1
- package/dist/harmony133.mjs +11 -15
- package/dist/harmony133.mjs.map +1 -1
- package/dist/harmony134.cjs +28 -17
- package/dist/harmony134.cjs.map +1 -1
- package/dist/harmony134.mjs +28 -17
- package/dist/harmony134.mjs.map +1 -1
- package/dist/harmony135.cjs +12 -10
- package/dist/harmony135.cjs.map +1 -1
- package/dist/harmony135.mjs +12 -10
- package/dist/harmony135.mjs.map +1 -1
- package/dist/harmony16.cjs +1 -1
- package/dist/harmony16.mjs +1 -1
- package/dist/harmony23.cjs +1 -1
- package/dist/harmony23.mjs +1 -1
- package/dist/harmony24.cjs +1 -1
- package/dist/harmony24.mjs +1 -1
- package/dist/harmony4.cjs +15 -24
- package/dist/harmony4.cjs.map +1 -1
- package/dist/harmony4.mjs +15 -24
- package/dist/harmony4.mjs.map +1 -1
- package/dist/harmony5.cjs +1 -1
- package/dist/harmony5.mjs +1 -1
- package/dist/harmony6.cjs +3 -3
- package/dist/harmony6.mjs +3 -3
- package/dist/harmony7.cjs +1 -1
- package/dist/harmony7.mjs +1 -1
- package/dist/harmony72.cjs +1 -1
- package/dist/harmony72.mjs +1 -1
- package/dist/harmony73.cjs +51 -6
- package/dist/harmony73.cjs.map +1 -1
- package/dist/harmony73.mjs +50 -5
- package/dist/harmony73.mjs.map +1 -1
- package/dist/harmony74.cjs +38 -8
- package/dist/harmony74.cjs.map +1 -1
- package/dist/harmony74.mjs +39 -9
- package/dist/harmony74.mjs.map +1 -1
- package/dist/harmony75.cjs +9 -18
- package/dist/harmony75.cjs.map +1 -1
- package/dist/harmony75.mjs +8 -17
- package/dist/harmony75.mjs.map +1 -1
- package/dist/harmony76.cjs +6 -21
- package/dist/harmony76.cjs.map +1 -1
- package/dist/harmony76.mjs +8 -23
- package/dist/harmony76.mjs.map +1 -1
- package/dist/harmony77.cjs +28 -4
- package/dist/harmony77.cjs.map +1 -1
- package/dist/harmony77.mjs +28 -4
- package/dist/harmony77.mjs.map +1 -1
- package/dist/harmony78.cjs +3 -32
- package/dist/harmony78.cjs.map +1 -1
- package/dist/harmony78.mjs +3 -32
- package/dist/harmony78.mjs.map +1 -1
- package/dist/harmony79.cjs +30 -29
- package/dist/harmony79.cjs.map +1 -1
- package/dist/harmony79.mjs +31 -30
- package/dist/harmony79.mjs.map +1 -1
- package/dist/harmony80.cjs +25 -17
- package/dist/harmony80.cjs.map +1 -1
- package/dist/harmony80.mjs +25 -17
- package/dist/harmony80.mjs.map +1 -1
- package/dist/harmony81.cjs +3 -31
- package/dist/harmony81.cjs.map +1 -1
- package/dist/harmony81.mjs +3 -31
- package/dist/harmony81.mjs.map +1 -1
- package/dist/harmony82.cjs +12 -53
- package/dist/harmony82.cjs.map +1 -1
- package/dist/harmony82.mjs +14 -55
- package/dist/harmony82.mjs.map +1 -1
- package/dist/harmony83.cjs +75 -9
- package/dist/harmony83.cjs.map +1 -1
- package/dist/harmony83.mjs +74 -8
- package/dist/harmony83.mjs.map +1 -1
- package/dist/harmony84.cjs +11 -7
- package/dist/harmony84.cjs.map +1 -1
- package/dist/harmony84.mjs +12 -8
- package/dist/harmony84.mjs.map +1 -1
- package/dist/harmony85.cjs +29 -28
- package/dist/harmony85.cjs.map +1 -1
- package/dist/harmony85.mjs +29 -28
- package/dist/harmony85.mjs.map +1 -1
- package/dist/harmony86.cjs +9 -3
- package/dist/harmony86.cjs.map +1 -1
- package/dist/harmony86.mjs +9 -3
- package/dist/harmony86.mjs.map +1 -1
- package/dist/harmony87.cjs +42 -28
- package/dist/harmony87.cjs.map +1 -1
- package/dist/harmony87.mjs +44 -30
- package/dist/harmony87.mjs.map +1 -1
- package/dist/harmony88.cjs +9 -12
- package/dist/harmony88.cjs.map +1 -1
- package/dist/harmony88.mjs +8 -11
- package/dist/harmony88.mjs.map +1 -1
- package/dist/harmony89.cjs +12 -13
- package/dist/harmony89.cjs.map +1 -1
- package/dist/harmony89.mjs +11 -12
- package/dist/harmony89.mjs.map +1 -1
- package/dist/harmony90.cjs +22 -12
- package/dist/harmony90.cjs.map +1 -1
- package/dist/harmony90.mjs +21 -11
- package/dist/harmony90.mjs.map +1 -1
- package/dist/harmony91.cjs +12 -21
- package/dist/harmony91.cjs.map +1 -1
- package/dist/harmony91.mjs +11 -20
- package/dist/harmony91.mjs.map +1 -1
- package/dist/harmony92.cjs +9 -3
- package/dist/harmony92.cjs.map +1 -1
- package/dist/harmony92.mjs +9 -3
- package/dist/harmony92.mjs.map +1 -1
- package/dist/harmony93.cjs +99 -9
- package/dist/harmony93.cjs.map +1 -1
- package/dist/harmony93.mjs +81 -8
- package/dist/harmony93.mjs.map +1 -1
- package/dist/harmony94.cjs +14 -9
- package/dist/harmony94.cjs.map +1 -1
- package/dist/harmony94.mjs +13 -8
- package/dist/harmony94.mjs.map +1 -1
- package/dist/harmony95.cjs +20 -57
- package/dist/harmony95.cjs.map +1 -1
- package/dist/harmony95.mjs +20 -57
- package/dist/harmony95.mjs.map +1 -1
- package/dist/harmony96.cjs +9 -42
- package/dist/harmony96.cjs.map +1 -1
- package/dist/harmony96.mjs +8 -41
- package/dist/harmony96.mjs.map +1 -1
- package/dist/harmony97.cjs +14 -5
- package/dist/harmony97.cjs.map +1 -1
- package/dist/harmony97.mjs +14 -5
- package/dist/harmony97.mjs.map +1 -1
- package/dist/harmony98.cjs +17 -9
- package/dist/harmony98.cjs.map +1 -1
- package/dist/harmony98.mjs +16 -8
- package/dist/harmony98.mjs.map +1 -1
- package/dist/harmony99.cjs +21 -24
- package/dist/harmony99.cjs.map +1 -1
- package/dist/harmony99.mjs +20 -23
- package/dist/harmony99.mjs.map +1 -1
- package/dist/types/src/components/Sidebar/Sidebar.d.ts +15 -49
- package/dist/types/src/components/Sidebar/SidebarContent/SidebarContent.d.ts +7 -0
- package/dist/types/src/components/Sidebar/SidebarContext.d.ts +3 -0
- package/dist/types/src/components/Sidebar/SidebarProvider.d.ts +3 -0
- package/dist/types/src/components/Sidebar/Widgets/Avatar/Avatar.d.ts +5 -0
- package/dist/types/src/components/Sidebar/Widgets/HelpMenu/HelpMenu.d.ts +13 -0
- package/dist/types/src/components/Sidebar/Widgets/HelpMenu/HelpMenu.test.d.ts +1 -0
- package/dist/types/src/components/Sidebar/Widgets/IconLink/IconLink.test.d.ts +1 -0
- package/dist/types/src/components/Sidebar/Widgets/Menu/Menu.d.ts +3 -2
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/BillingMenuItem/BillingMenuItem.d.ts +13 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/CreateNewTeam/CreateNewTeam.d.ts +17 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/CreateNewTeam/CreateNewTeam.test.d.ts +1 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/CreateNewTeamPlaceholder/CreateNewTeamPlaceholder.d.ts +17 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/CreateNewTeamPlaceholder/CreateNewTeamPlaceholder.test.d.ts +1 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/DarkModeToggle/DarkModeToggle.d.ts +18 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/ProfileMenu.d.ts +11 -24
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/ProfileMenu.stories.d.ts +3 -5
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/ProfileSettingsMenuItem/ProfileSettingsMenuItem.d.ts +10 -35
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/ProfileSettingsMenuItem/ProfileSettingsMenuItem.test.d.ts +1 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/ProviderMenuItem/ProviderMenuItem.d.ts +13 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/ProviderMenuItem/ProviderMenuItem.test.d.ts +1 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/TeamMenuItem/TeamMenuItem.d.ts +1 -3
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/TeamMenuItem/TeamMenuItem.test.d.ts +1 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/TeamSettingsMenuItem/TeamSettingsMenuItem.d.ts +13 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/TeamSettingsMenuItem/TeamSettingsMenuItem.test.d.ts +1 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/TeamSwitch/TeamSwitch.d.ts +5 -7
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/TeamSwitch/TeamSwitch.test.d.ts +1 -0
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/UpgradeMenuItem/UpgradeMenuItem.d.ts +6 -9
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/UpgradeMenuItem/UpgradeMenuItem.test.d.ts +1 -0
- package/dist/types/src/components/Sidebar/Widgets/Tasks/utils/content.d.ts +4 -0
- package/dist/types/src/components/Sidebar/hooks/useSidebar.d.ts +1 -0
- package/dist/types/src/components/Sidebar/hooks/useSidebarDataLoader.d.ts +5 -0
- package/dist/types/src/components/Sidebar/types.d.ts +72 -0
- package/dist/types/src/features/auth/core/types/jwtTokenPayload.d.ts +16 -10
- package/dist/types/src/features/auth/core/types/jwtTokenPayload.fixture.d.ts +15 -11
- package/dist/types/src/features/auth/frontend/hooks/useAuthenticatedSessionPayload.d.ts +7 -5
- package/dist/types/src/features/auth/frontend/hooks/useAuthenticatedUser.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useCreateProjectMutation.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useGetProjectPermissionMetaQuery.d.ts +2 -2
- package/dist/types/src/features/publicApi/hooks/useGetTeamUsersQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useListPermissionTemplates.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useListProjectsQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useListTeamUsersQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useRetrieveProjectQuery.d.ts +1 -1
- package/dist/types/src/features/publicApi/hooks/useUpdateProjectMutation.d.ts +1 -1
- package/dist/types/src/features/publicApi/permissionTemplates.d.ts +4 -4
- package/dist/types/src/features/publicApi/projects.d.ts +18 -18
- package/dist/types/src/features/publicApi/teamUsers.d.ts +8 -8
- package/dist/types/src/features/publicApi/types/permissionTemplateTypes.d.ts +6 -6
- package/dist/types/src/features/publicApi/types/permissionTypes.d.ts +2 -2
- package/dist/types/src/features/publicApi/types/projectTypes.d.ts +18 -18
- package/dist/types/src/features/publicApi/types/teamUserTypes.d.ts +10 -10
- package/dist/types/src/utils/user/permissions.d.ts +9 -0
- package/dist/types/src/utils/user/permissions.test.d.ts +1 -0
- package/dist/types/tests/mocks/sidebar/sidebar.d.ts +19 -0
- package/dist/types/tests/utils/sidebar.d.ts +4 -0
- package/package.json +1 -1
- package/dist/harmony136.cjs +0 -9
- package/dist/harmony136.cjs.map +0 -1
- package/dist/harmony136.mjs +0 -9
- package/dist/harmony136.mjs.map +0 -1
- package/dist/harmony137.cjs +0 -15
- package/dist/harmony137.cjs.map +0 -1
- package/dist/harmony137.mjs +0 -15
- package/dist/harmony137.mjs.map +0 -1
- package/dist/harmony138.cjs +0 -35
- package/dist/harmony138.cjs.map +0 -1
- package/dist/harmony138.mjs +0 -35
- package/dist/harmony138.mjs.map +0 -1
- package/dist/harmony139.cjs +0 -17
- package/dist/harmony139.cjs.map +0 -1
- package/dist/harmony139.mjs +0 -17
- package/dist/harmony139.mjs.map +0 -1
- package/dist/harmony140.cjs +0 -49
- package/dist/harmony140.cjs.map +0 -1
- package/dist/harmony140.mjs +0 -49
- package/dist/harmony140.mjs.map +0 -1
- package/dist/harmony141.cjs +0 -15
- package/dist/harmony141.cjs.map +0 -1
- package/dist/harmony141.mjs +0 -15
- package/dist/harmony141.mjs.map +0 -1
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/ProfileMenuContent.d.ts +0 -6
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/ProfileMenuContext.d.ts +0 -3
- package/dist/types/src/components/Sidebar/Widgets/ProfileMenu/ProfileMenuProvider.d.ts +0 -7
- package/dist/types/src/components/Sidebar/utils/index.d.ts +0 -4
- /package/dist/types/src/components/Sidebar/Widgets/{ProfileMenu/ProfileMenu.test.d.ts → Avatar/Avatar.test.d.ts} +0 -0
- /package/dist/types/src/components/Sidebar/{UpgradeIcon → Widgets/ProfileMenu/UpgradeIcon}/UpgradeIcon.d.ts +0 -0
package/dist/harmony.css
CHANGED
@@ -56,51 +56,6 @@
|
|
56
56
|
padding-top: 0;
|
57
57
|
box-shadow: none;
|
58
58
|
}
|
59
|
-
._sidebarContainer_bmdti_1 {
|
60
|
-
border-right: 1px solid var(--lok-color-border-default);
|
61
|
-
position: fixed;
|
62
|
-
width: 65px;
|
63
|
-
top: 0;
|
64
|
-
left: 0;
|
65
|
-
bottom: 0;
|
66
|
-
background-color: var(--lok-color-background-surface-middle);
|
67
|
-
display: flex;
|
68
|
-
justify-content: space-between;
|
69
|
-
flex-direction: column;
|
70
|
-
padding-bottom: var(--lok-spacing-3);
|
71
|
-
z-index: 1;
|
72
|
-
}
|
73
|
-
|
74
|
-
._logoLink_bmdti_16 {
|
75
|
-
display: flex;
|
76
|
-
align-items: center;
|
77
|
-
justify-content: center;
|
78
|
-
height: 67px;
|
79
|
-
position: relative;
|
80
|
-
|
81
|
-
&:hover {
|
82
|
-
background-color: var(--lok-color-background-surface-middle);
|
83
|
-
}
|
84
|
-
|
85
|
-
> img {
|
86
|
-
width: 36px;
|
87
|
-
}
|
88
|
-
}
|
89
|
-
._logoLink_1baxb_1 {
|
90
|
-
display: flex;
|
91
|
-
align-items: center;
|
92
|
-
justify-content: center;
|
93
|
-
height: 67px;
|
94
|
-
position: relative;
|
95
|
-
|
96
|
-
&:hover {
|
97
|
-
background-color: var(--lok-color-background-surface-middle);
|
98
|
-
}
|
99
|
-
|
100
|
-
> img {
|
101
|
-
width: 36px;
|
102
|
-
}
|
103
|
-
}
|
104
59
|
._link_18vhx_1._link_18vhx_1 {
|
105
60
|
display: flex;
|
106
61
|
justify-content: center;
|
@@ -122,94 +77,16 @@
|
|
122
77
|
color: var(--lok-color-background-action-primary-default);
|
123
78
|
background-color: var(--lok-color-background-surface-fore);
|
124
79
|
}
|
125
|
-
.
|
126
|
-
|
127
|
-
display: flex;
|
128
|
-
justify-content: center;
|
129
|
-
align-items: center;
|
130
|
-
height: 65px;
|
131
|
-
width: 64px;
|
132
|
-
background: transparent;
|
133
|
-
border: none;
|
134
|
-
outline: none;
|
135
|
-
color: var(--lok-color-text-light-default);
|
136
|
-
|
137
|
-
&:hover {
|
138
|
-
color: var(--lok-color-background-action-primary-default);
|
139
|
-
background-color: var(--lok-color-background-surface-fore);
|
140
|
-
}
|
141
|
-
}
|
142
|
-
|
143
|
-
._dropdownButtonActive_1naek_19 {
|
144
|
-
color: var(--lok-color-background-action-primary-default);
|
145
|
-
background-color: var(--lok-color-background-surface-fore);
|
146
|
-
}
|
147
|
-
._iconContainer_nz34m_1 {
|
148
|
-
color: var(--lok-color-background-surface-default);
|
149
|
-
background-color: var(--lok-color-background-action-danger-default);
|
150
|
-
border-radius: 100%;
|
151
|
-
font-size: 10px;
|
152
|
-
height: 16px;
|
153
|
-
width: 16px;
|
154
|
-
}
|
155
|
-
:root {
|
156
|
-
--menu-container-width: 300px;
|
157
|
-
--profile-button-size: 65px;
|
158
|
-
}
|
159
|
-
|
160
|
-
._popoverContent_1phdw_6 {
|
161
|
-
width: var(--menu-container-width);
|
162
|
-
}
|
163
|
-
|
164
|
-
._menuContainer_1phdw_10 {
|
165
|
-
width: var(--menu-container-width);
|
166
|
-
font-size: var(--lok-font-size-small);
|
167
|
-
button,
|
168
|
-
a {
|
169
|
-
font-size: var(--lok-font-size-small);
|
170
|
-
padding: var(--lok-spacing-3) var(--lok-spacing-4);
|
171
|
-
}
|
172
|
-
}
|
173
|
-
|
174
|
-
._profileButton_1phdw_20 {
|
175
|
-
cursor: pointer;
|
176
|
-
position: relative;
|
177
|
-
border: none;
|
178
|
-
background: transparent;
|
179
|
-
height: var(--profile-button-size);
|
180
|
-
width: var(--profile-button-size);
|
181
|
-
|
182
|
-
&:hover {
|
183
|
-
background: none;
|
184
|
-
}
|
185
|
-
}
|
186
|
-
|
187
|
-
._profileImage_1phdw_33 {
|
188
|
-
width: 40px;
|
189
|
-
height: 40px;
|
190
|
-
border-radius: 100%;
|
191
|
-
background-color: var(--lok-color-background-surface-default);
|
192
|
-
object-fit: contain; /* Make sure that non-square images maintain their aspect ratio */
|
193
|
-
}
|
194
|
-
|
195
|
-
._profileImageHighlight_1phdw_41 {
|
196
|
-
border: 3px solid var(--lok-color-background-action-danger-default);
|
80
|
+
._mainLabel_1baso_1 {
|
81
|
+
color: var(--lok-color-text-disabled);
|
197
82
|
}
|
198
83
|
|
199
|
-
.
|
200
|
-
|
201
|
-
|
202
|
-
right: 10px;
|
84
|
+
._subLabel_1baso_5 {
|
85
|
+
color: var(--lok-color-text-disabled);
|
86
|
+
font: var(--lok-typography-body-tiny-default);
|
203
87
|
}
|
204
|
-
|
205
|
-
|
206
|
-
width: 45px;
|
207
|
-
height: 45px;
|
208
|
-
display: flex;
|
209
|
-
align-items: center;
|
210
|
-
border-radius: var(--lok-radius-rounded);
|
211
|
-
justify-content: center;
|
212
|
-
margin: auto;
|
88
|
+
._switchContainer_9byp6_1 {
|
89
|
+
flex-grow: 1;
|
213
90
|
}
|
214
91
|
._container_q5pot_1 {
|
215
92
|
max-width: 100%;
|
@@ -305,6 +182,14 @@
|
|
305
182
|
background-color: var(--lok-color-background-surface-default);
|
306
183
|
object-fit: contain;
|
307
184
|
}
|
185
|
+
._iconContainer_nz34m_1 {
|
186
|
+
color: var(--lok-color-background-surface-default);
|
187
|
+
background-color: var(--lok-color-background-action-danger-default);
|
188
|
+
border-radius: 100%;
|
189
|
+
font-size: 10px;
|
190
|
+
height: 16px;
|
191
|
+
width: 16px;
|
192
|
+
}
|
308
193
|
._container_1u995_1 {
|
309
194
|
max-width: 100%;
|
310
195
|
min-width: 0;
|
@@ -328,226 +213,134 @@
|
|
328
213
|
font: var(--lok-typography-body-small-strong);
|
329
214
|
height: 16px;
|
330
215
|
}
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
width: 100%;
|
335
|
-
display: flex;
|
336
|
-
justify-content: center;
|
337
|
-
align-items: center;
|
338
|
-
position: relative;
|
339
|
-
height: 65px;
|
340
|
-
color: var(--lok-color-text-light-default);
|
341
|
-
|
342
|
-
&:hover {
|
343
|
-
color: var(--lok-color-background-action-primary-default);
|
344
|
-
background-color: var(--lok-color-background-surface-fore);
|
345
|
-
}
|
346
|
-
}
|
347
|
-
|
348
|
-
._activeNavItem_1dudv_18 {
|
349
|
-
color: var(--lok-color-background-action-primary-default);
|
350
|
-
background-color: var(--lok-color-background-surface-fore);
|
216
|
+
:root {
|
217
|
+
--menu-container-width: 300px;
|
218
|
+
--profile-button-size: 65px;
|
351
219
|
}
|
352
220
|
|
353
|
-
.
|
354
|
-
|
355
|
-
top: calc(50% - 16px);
|
356
|
-
left: calc(50% + 2px);
|
357
|
-
|
358
|
-
display: flex;
|
359
|
-
align-items: center;
|
360
|
-
justify-content: center;
|
361
|
-
text-align: center;
|
362
|
-
|
363
|
-
width: 16px;
|
364
|
-
height: 16px;
|
365
|
-
border-radius: var(--lok-radius-rounded);
|
366
|
-
background-color: var(--lok-color-text-danger);
|
367
|
-
|
368
|
-
font-size: var(--lok-font-size-tiny);
|
369
|
-
text-transform: uppercase;
|
370
|
-
color: var(--lok-color-text-inverse);
|
221
|
+
._popoverContent_1phdw_6 {
|
222
|
+
width: var(--menu-container-width);
|
371
223
|
}
|
372
|
-
._langRowCompleted_vpgdi_1 {
|
373
|
-
background: var(--lok-color-background-info);
|
374
|
-
td {
|
375
|
-
overflow: hidden;
|
376
|
-
text-overflow: ellipsis;
|
377
|
-
text-align: start;
|
378
224
|
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
225
|
+
._menuContainer_1phdw_10 {
|
226
|
+
width: var(--menu-container-width);
|
227
|
+
font-size: var(--lok-font-size-small);
|
228
|
+
button,
|
229
|
+
a {
|
230
|
+
font-size: var(--lok-font-size-small);
|
231
|
+
padding: var(--lok-spacing-3) var(--lok-spacing-4);
|
383
232
|
}
|
384
233
|
}
|
385
234
|
|
386
|
-
.
|
387
|
-
|
388
|
-
text-align: left;
|
389
|
-
}
|
390
|
-
|
391
|
-
._langStatus_vpgdi_20 {
|
392
|
-
color: var(--lok-color-text-light-default);
|
393
|
-
|
394
|
-
&::before {
|
395
|
-
display: inline-block;
|
396
|
-
content: '';
|
397
|
-
width: 6px;
|
398
|
-
height: 6px;
|
399
|
-
border-radius: 50%;
|
400
|
-
margin: var(--lok-spacing-1);
|
401
|
-
background-color: #cbd5e0;
|
402
|
-
}
|
403
|
-
|
404
|
-
&[data-status='completed'] {
|
405
|
-
&::before {
|
406
|
-
background-color: #60e778;
|
407
|
-
}
|
408
|
-
}
|
409
|
-
|
410
|
-
&[data-status='in_progress'] {
|
411
|
-
&::before {
|
412
|
-
background-color: #facc15;
|
413
|
-
}
|
414
|
-
}
|
415
|
-
}
|
416
|
-
._taskContainer_mt2or_1 {
|
417
|
-
padding: var(--lok-spacing-4);
|
235
|
+
._profileButton_1phdw_20 {
|
236
|
+
cursor: pointer;
|
418
237
|
position: relative;
|
238
|
+
border: none;
|
239
|
+
background: transparent;
|
240
|
+
height: var(--profile-button-size);
|
241
|
+
width: var(--profile-button-size);
|
419
242
|
|
420
|
-
&:
|
421
|
-
|
422
|
-
content: '';
|
423
|
-
height: 1px;
|
424
|
-
width: calc(100% - 2 * var(--lok-spacing-4));
|
425
|
-
position: absolute;
|
426
|
-
top: 0;
|
427
|
-
left: var(--lok-spacing-4);
|
428
|
-
background: var(--lok-color-background-surface-fore);
|
243
|
+
&:hover {
|
244
|
+
background: none;
|
429
245
|
}
|
430
246
|
}
|
431
247
|
|
432
|
-
.
|
433
|
-
|
248
|
+
._profileImage_1phdw_33 {
|
249
|
+
width: 40px;
|
250
|
+
height: 40px;
|
251
|
+
border-radius: 100%;
|
252
|
+
background-color: var(--lok-color-background-surface-default);
|
253
|
+
object-fit: contain; /* Make sure that non-square images maintain their aspect ratio */
|
434
254
|
}
|
435
255
|
|
436
|
-
.
|
437
|
-
|
438
|
-
overflow: hidden;
|
439
|
-
text-overflow: ellipsis;
|
440
|
-
margin-block: var(--lok-spacing-4) var(--lok-spacing-2);
|
256
|
+
._profileImageHighlight_1phdw_41 {
|
257
|
+
border: 3px solid var(--lok-color-background-action-danger-default);
|
441
258
|
}
|
442
259
|
|
443
|
-
.
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
text-overflow: ellipsis;
|
260
|
+
._profileImageUpgradeIcon_1phdw_45 {
|
261
|
+
position: absolute;
|
262
|
+
bottom: 10px;
|
263
|
+
right: 10px;
|
448
264
|
}
|
449
265
|
|
450
|
-
.
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
border-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
}
|
466
|
-
|
467
|
-
thead th,
|
468
|
-
tbody td {
|
469
|
-
padding-left: var(--lok-spacing-2);
|
470
|
-
}
|
266
|
+
._userIconWrapper_1phdw_51 {
|
267
|
+
width: 45px;
|
268
|
+
height: 45px;
|
269
|
+
display: flex;
|
270
|
+
align-items: center;
|
271
|
+
border-radius: var(--lok-radius-rounded);
|
272
|
+
justify-content: center;
|
273
|
+
margin: auto;
|
274
|
+
}
|
275
|
+
._logoLink_1baxb_1 {
|
276
|
+
display: flex;
|
277
|
+
align-items: center;
|
278
|
+
justify-content: center;
|
279
|
+
height: 67px;
|
280
|
+
position: relative;
|
471
281
|
|
472
|
-
|
473
|
-
|
474
|
-
padding-right: var(--lok-spacing-4);
|
282
|
+
&:hover {
|
283
|
+
background-color: var(--lok-color-background-surface-middle);
|
475
284
|
}
|
476
285
|
|
477
|
-
|
478
|
-
|
479
|
-
text-align: left;
|
480
|
-
padding-bottom: var(--lok-spacing-1);
|
481
|
-
font: var(--lok-typography-body-tiny-default);
|
482
|
-
text-transform: uppercase;
|
483
|
-
|
484
|
-
&:nth-child(1) {
|
485
|
-
width: 170px;
|
486
|
-
}
|
487
|
-
|
488
|
-
&:nth-child(2) {
|
489
|
-
width: 107px;
|
490
|
-
}
|
491
|
-
|
492
|
-
&:nth-child(3) {
|
493
|
-
width: 75px;
|
494
|
-
}
|
495
|
-
|
496
|
-
&:nth-child(4) {
|
497
|
-
width: 118px;
|
498
|
-
}
|
286
|
+
> img {
|
287
|
+
width: 36px;
|
499
288
|
}
|
500
289
|
}
|
290
|
+
._shortcutMenu_ujdmb_1:hover {
|
291
|
+
background-color: var(--lok-color-background-active);
|
292
|
+
}
|
501
293
|
|
502
|
-
.
|
294
|
+
._shortcutLabel_ujdmb_5 {
|
295
|
+
margin-left: var(--lok-spacing-1);
|
503
296
|
color: var(--lok-color-text-light-default);
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
> span {
|
508
|
-
overflow: hidden;
|
509
|
-
text-overflow: ellipsis;
|
510
|
-
flex-basis: 100%;
|
511
|
-
max-width: max-content;
|
297
|
+
width: 47px;
|
298
|
+
text-align: right;
|
299
|
+
}
|
512
300
|
|
513
|
-
|
514
|
-
|
515
|
-
|
301
|
+
._dropdownButton_ujdmb_12 {
|
302
|
+
cursor: pointer;
|
303
|
+
display: flex;
|
304
|
+
justify-content: center;
|
305
|
+
align-items: center;
|
306
|
+
height: 65px;
|
307
|
+
width: 64px;
|
308
|
+
background: transparent;
|
309
|
+
border: none;
|
310
|
+
outline: none;
|
311
|
+
color: var(--lok-color-text-light-default);
|
516
312
|
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
}
|
313
|
+
&:hover {
|
314
|
+
color: var(--lok-color-background-action-primary-default);
|
315
|
+
background-color: var(--lok-color-background-surface-fore);
|
521
316
|
}
|
522
317
|
}
|
523
|
-
._loadingContainer_19d6m_1 {
|
524
|
-
height: 100px;
|
525
|
-
width: 487px;
|
526
|
-
left: 69px;
|
527
|
-
}
|
528
318
|
|
529
|
-
.
|
530
|
-
|
531
|
-
|
532
|
-
width: 360px;
|
533
|
-
left: 65px;
|
534
|
-
}
|
535
|
-
|
536
|
-
._noTasksHeading_19d6m_14 {
|
537
|
-
font: var(--lok-typography-heading-3);
|
319
|
+
._dropdownButtonActive_ujdmb_30 {
|
320
|
+
color: var(--lok-color-background-action-primary-default);
|
321
|
+
background-color: var(--lok-color-background-surface-fore);
|
538
322
|
}
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
323
|
+
._sidebarContainer_1x0gj_1 {
|
324
|
+
border-right: 1px solid var(--lok-color-border-default);
|
325
|
+
position: fixed;
|
326
|
+
width: 65px;
|
327
|
+
top: 0;
|
328
|
+
left: 0;
|
329
|
+
bottom: 0;
|
330
|
+
background-color: var(--lok-color-background-surface-middle);
|
331
|
+
display: flex;
|
332
|
+
justify-content: space-between;
|
333
|
+
flex-direction: column;
|
334
|
+
padding-bottom: var(--lok-spacing-3);
|
335
|
+
z-index: 1;
|
543
336
|
}
|
544
337
|
|
545
|
-
.
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
338
|
+
._sidebarSkeleton_1x0gj_16 {
|
339
|
+
display: flex;
|
340
|
+
flex-direction: column;
|
341
|
+
justify-content: center;
|
342
|
+
align-items: center;
|
343
|
+
gap: var(--lok-spacing-5);
|
551
344
|
}
|
552
345
|
._breadcrumbsItem_1hm6a_1 {
|
553
346
|
color: var(--lok-color-text-light-default);
|
package/dist/harmony100.cjs
CHANGED
@@ -1,9 +1,13 @@
|
|
1
1
|
"use strict";
|
2
|
-
Object.
|
3
|
-
const
|
4
|
-
const
|
5
|
-
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
4
|
+
const louis = require("@lokalise/louis");
|
5
|
+
const DarkModeToggle_module = require("./harmony114.cjs");
|
6
|
+
const DarkModeToggle = ({ onToggle, isDarkMode }) => {
|
7
|
+
return /* @__PURE__ */ jsxRuntime.jsx(louis.MenuItem, { onClick: onToggle, children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `flex-row justify-between gap-1 ${DarkModeToggle_module.default.switchContainer}`, children: [
|
8
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Dark mode" }),
|
9
|
+
/* @__PURE__ */ jsxRuntime.jsx(louis.Switch, { defaultChecked: isDarkMode, "aria-label": "Toggle dark mode" })
|
10
|
+
] }) });
|
6
11
|
};
|
7
|
-
exports.
|
8
|
-
exports.teamsContainer = teamsContainer;
|
12
|
+
exports.DarkModeToggle = DarkModeToggle;
|
9
13
|
//# sourceMappingURL=harmony100.cjs.map
|
package/dist/harmony100.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony100.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony100.cjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/DarkModeToggle/DarkModeToggle.tsx"],"sourcesContent":["import { MenuItem, Switch } from '@lokalise/louis'\nimport styles from './DarkModeToggle.module.css'\n\ntype DarkModeToggleProps = {\n\tonToggle: () => void\n\tisDarkMode: boolean\n}\n\n/**\n * A menu item component for toggling dark mode.\n * Displays a switch and label, and calls the provided onToggle handler when clicked.\n *\n * @example\n * ```\n * <DarkModeToggle\n * isDarkMode={isDarkMode}\n * onToggle={handleToggleDarkMode}\n * />\n * ```\n */\n\nexport const DarkModeToggle = ({ onToggle, isDarkMode }: DarkModeToggleProps) => {\n\treturn (\n\t\t<MenuItem onClick={onToggle}>\n\t\t\t<div className={`flex-row justify-between gap-1 ${styles.switchContainer}`}>\n\t\t\t\t<span>Dark mode</span>\n\t\t\t\t<Switch defaultChecked={isDarkMode} aria-label=\"Toggle dark mode\" />\n\t\t\t</div>\n\t\t</MenuItem>\n\t)\n}\n"],"names":["jsx","MenuItem","jsxs","styles","Switch"],"mappings":";;;;;AAqBO,MAAM,iBAAiB,CAAC,EAAE,UAAU,iBAAsC;AAE/E,SAAAA,2BAAAA,IAACC,MAAAA,UAAS,EAAA,SAAS,UAClB,UAAAC,2BAAA,KAAC,SAAI,WAAW,kCAAkCC,sBAAO,QAAA,eAAe,IACvE,UAAA;AAAA,IAAAH,2BAAAA,IAAC,UAAK,UAAS,YAAA,CAAA;AAAA,IACdA,2BAAA,IAAAI,MAAA,QAAA,EAAO,gBAAgB,YAAY,cAAW,mBAAmB,CAAA;AAAA,EAAA,EAAA,CACnE,EACD,CAAA;AAEF;;"}
|
package/dist/harmony100.mjs
CHANGED
@@ -1,9 +1,13 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
2
|
+
import { MenuItem, Switch } from "@lokalise/louis";
|
3
|
+
import styles from "./harmony114.mjs";
|
4
|
+
const DarkModeToggle = ({ onToggle, isDarkMode }) => {
|
5
|
+
return /* @__PURE__ */ jsx(MenuItem, { onClick: onToggle, children: /* @__PURE__ */ jsxs("div", { className: `flex-row justify-between gap-1 ${styles.switchContainer}`, children: [
|
6
|
+
/* @__PURE__ */ jsx("span", { children: "Dark mode" }),
|
7
|
+
/* @__PURE__ */ jsx(Switch, { defaultChecked: isDarkMode, "aria-label": "Toggle dark mode" })
|
8
|
+
] }) });
|
4
9
|
};
|
5
10
|
export {
|
6
|
-
|
7
|
-
teamsContainer
|
11
|
+
DarkModeToggle
|
8
12
|
};
|
9
13
|
//# sourceMappingURL=harmony100.mjs.map
|
package/dist/harmony100.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony100.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"harmony100.mjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/DarkModeToggle/DarkModeToggle.tsx"],"sourcesContent":["import { MenuItem, Switch } from '@lokalise/louis'\nimport styles from './DarkModeToggle.module.css'\n\ntype DarkModeToggleProps = {\n\tonToggle: () => void\n\tisDarkMode: boolean\n}\n\n/**\n * A menu item component for toggling dark mode.\n * Displays a switch and label, and calls the provided onToggle handler when clicked.\n *\n * @example\n * ```\n * <DarkModeToggle\n * isDarkMode={isDarkMode}\n * onToggle={handleToggleDarkMode}\n * />\n * ```\n */\n\nexport const DarkModeToggle = ({ onToggle, isDarkMode }: DarkModeToggleProps) => {\n\treturn (\n\t\t<MenuItem onClick={onToggle}>\n\t\t\t<div className={`flex-row justify-between gap-1 ${styles.switchContainer}`}>\n\t\t\t\t<span>Dark mode</span>\n\t\t\t\t<Switch defaultChecked={isDarkMode} aria-label=\"Toggle dark mode\" />\n\t\t\t</div>\n\t\t</MenuItem>\n\t)\n}\n"],"names":[],"mappings":";;;AAqBO,MAAM,iBAAiB,CAAC,EAAE,UAAU,iBAAsC;AAE/E,SAAA,oBAAC,UAAS,EAAA,SAAS,UAClB,UAAA,qBAAC,SAAI,WAAW,kCAAkC,OAAO,eAAe,IACvE,UAAA;AAAA,IAAA,oBAAC,UAAK,UAAS,YAAA,CAAA;AAAA,IACd,oBAAA,QAAA,EAAO,gBAAgB,YAAY,cAAW,mBAAmB,CAAA;AAAA,EAAA,EAAA,CACnE,EACD,CAAA;AAEF;"}
|
package/dist/harmony101.cjs
CHANGED
@@ -1,24 +1,32 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
4
|
+
const useSidebar = require("./harmony84.cjs");
|
4
5
|
const louis = require("@lokalise/louis");
|
5
|
-
const
|
6
|
-
const
|
7
|
-
const
|
6
|
+
const permissions = require("./harmony85.cjs");
|
7
|
+
const ProfileSettingsMenuItem_module = require("./harmony115.cjs");
|
8
|
+
const ProfileSettingsMenuItem = ({ onClick }) => {
|
9
|
+
var _a;
|
10
|
+
const {
|
11
|
+
data: { jwt }
|
12
|
+
} = useSidebar.useSidebar();
|
13
|
+
if (!permissions.canAccessProfileSettings(jwt.result)) {
|
14
|
+
return null;
|
15
|
+
}
|
8
16
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
9
|
-
|
17
|
+
louis.MenuItem,
|
10
18
|
{
|
11
|
-
"
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
19
|
+
"data-testid": "sidebar-profile-settings-menu-item",
|
20
|
+
href: "/settings",
|
21
|
+
onClick: () => {
|
22
|
+
onClick == null ? void 0 : onClick();
|
23
|
+
},
|
24
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: `flex-col ${ProfileSettingsMenuItem_module.default.container}`, children: [
|
25
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { children: "Profile Settings" }),
|
26
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: ProfileSettingsMenuItem_module.default.profileEmail, children: (_a = jwt.result) == null ? void 0 : _a.userEmail })
|
27
|
+
] })
|
20
28
|
}
|
21
29
|
);
|
22
30
|
};
|
23
|
-
exports.
|
31
|
+
exports.ProfileSettingsMenuItem = ProfileSettingsMenuItem;
|
24
32
|
//# sourceMappingURL=harmony101.cjs.map
|
package/dist/harmony101.cjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony101.cjs","sources":["../src/components/Sidebar/
|
1
|
+
{"version":3,"file":"harmony101.cjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/ProfileSettingsMenuItem/ProfileSettingsMenuItem.tsx"],"sourcesContent":["import { useSidebar } from '@components/Sidebar/hooks/useSidebar'\nimport { MenuItem } from '@lokalise/louis'\nimport { canAccessProfileSettings } from '@utils/user/permissions'\nimport styles from './ProfileSettingsMenuItem.module.css'\n\n/**\n * A menu item component for navigating to the profile settings page.\n * Checks the user's permissions using the Sidebar context and renders\n * nothing if the user does not have access.\n *\n * @example\n * ```\n * <ProfileSettingsMenuItem onClick={() => { }} />\n * ```\n *\n * @note This component must be used within a Sidebar Context.\n */\n\ntype ProfileSettingsMenuItem = {\n\tonClick?: () => void\n}\n\nexport const ProfileSettingsMenuItem = ({ onClick }: ProfileSettingsMenuItem) => {\n\tconst {\n\t\tdata: { jwt },\n\t} = useSidebar()\n\n\tif (!canAccessProfileSettings(jwt.result)) {\n\t\treturn null\n\t}\n\n\treturn (\n\t\t<MenuItem\n\t\t\tdata-testid=\"sidebar-profile-settings-menu-item\"\n\t\t\thref=\"/settings\"\n\t\t\tonClick={() => {\n\t\t\t\tonClick?.()\n\t\t\t}}\n\t\t>\n\t\t\t<div className={`flex-col ${styles.container}`}>\n\t\t\t\t<span>Profile Settings</span>\n\t\t\t\t<span className={styles.profileEmail}>{jwt.result?.userEmail}</span>\n\t\t\t</div>\n\t\t</MenuItem>\n\t)\n}\n"],"names":["useSidebar","canAccessProfileSettings","jsx","MenuItem","styles"],"mappings":";;;;;;;AAsBO,MAAM,0BAA0B,CAAC,EAAE,cAAuC;;AAC1E,QAAA;AAAA,IACL,MAAM,EAAE,IAAI;AAAA,MACTA,sBAAW;AAEf,MAAI,CAACC,YAAA,yBAAyB,IAAI,MAAM,GAAG;AACnC,WAAA;AAAA,EAAA;AAIP,SAAAC,2BAAA;AAAA,IAACC,MAAA;AAAA,IAAA;AAAA,MACA,eAAY;AAAA,MACZ,MAAK;AAAA,MACL,SAAS,MAAM;AACJ;AAAA,MACX;AAAA,MAEA,0CAAC,OAAI,EAAA,WAAW,YAAYC,uCAAO,SAAS,IAC3C,UAAA;AAAA,QAAAF,2BAAAA,IAAC,UAAK,UAAgB,mBAAA,CAAA;AAAA,uCACrB,QAAK,EAAA,WAAWE,uCAAO,cAAe,WAAA,SAAI,WAAJ,mBAAY,UAAU,CAAA;AAAA,MAAA,EAC9D,CAAA;AAAA,IAAA;AAAA,EACD;AAEF;;"}
|
package/dist/harmony101.mjs
CHANGED
@@ -1,24 +1,32 @@
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
import
|
5
|
-
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
2
|
+
import { useSidebar } from "./harmony84.mjs";
|
3
|
+
import { MenuItem } from "@lokalise/louis";
|
4
|
+
import { canAccessProfileSettings } from "./harmony85.mjs";
|
5
|
+
import styles from "./harmony115.mjs";
|
6
|
+
const ProfileSettingsMenuItem = ({ onClick }) => {
|
7
|
+
var _a;
|
8
|
+
const {
|
9
|
+
data: { jwt }
|
10
|
+
} = useSidebar();
|
11
|
+
if (!canAccessProfileSettings(jwt.result)) {
|
12
|
+
return null;
|
13
|
+
}
|
6
14
|
return /* @__PURE__ */ jsx(
|
7
|
-
|
15
|
+
MenuItem,
|
8
16
|
{
|
9
|
-
"
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
17
|
+
"data-testid": "sidebar-profile-settings-menu-item",
|
18
|
+
href: "/settings",
|
19
|
+
onClick: () => {
|
20
|
+
onClick == null ? void 0 : onClick();
|
21
|
+
},
|
22
|
+
children: /* @__PURE__ */ jsxs("div", { className: `flex-col ${styles.container}`, children: [
|
23
|
+
/* @__PURE__ */ jsx("span", { children: "Profile Settings" }),
|
24
|
+
/* @__PURE__ */ jsx("span", { className: styles.profileEmail, children: (_a = jwt.result) == null ? void 0 : _a.userEmail })
|
25
|
+
] })
|
18
26
|
}
|
19
27
|
);
|
20
28
|
};
|
21
29
|
export {
|
22
|
-
|
30
|
+
ProfileSettingsMenuItem
|
23
31
|
};
|
24
32
|
//# sourceMappingURL=harmony101.mjs.map
|
package/dist/harmony101.mjs.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"harmony101.mjs","sources":["../src/components/Sidebar/
|
1
|
+
{"version":3,"file":"harmony101.mjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/ProfileSettingsMenuItem/ProfileSettingsMenuItem.tsx"],"sourcesContent":["import { useSidebar } from '@components/Sidebar/hooks/useSidebar'\nimport { MenuItem } from '@lokalise/louis'\nimport { canAccessProfileSettings } from '@utils/user/permissions'\nimport styles from './ProfileSettingsMenuItem.module.css'\n\n/**\n * A menu item component for navigating to the profile settings page.\n * Checks the user's permissions using the Sidebar context and renders\n * nothing if the user does not have access.\n *\n * @example\n * ```\n * <ProfileSettingsMenuItem onClick={() => { }} />\n * ```\n *\n * @note This component must be used within a Sidebar Context.\n */\n\ntype ProfileSettingsMenuItem = {\n\tonClick?: () => void\n}\n\nexport const ProfileSettingsMenuItem = ({ onClick }: ProfileSettingsMenuItem) => {\n\tconst {\n\t\tdata: { jwt },\n\t} = useSidebar()\n\n\tif (!canAccessProfileSettings(jwt.result)) {\n\t\treturn null\n\t}\n\n\treturn (\n\t\t<MenuItem\n\t\t\tdata-testid=\"sidebar-profile-settings-menu-item\"\n\t\t\thref=\"/settings\"\n\t\t\tonClick={() => {\n\t\t\t\tonClick?.()\n\t\t\t}}\n\t\t>\n\t\t\t<div className={`flex-col ${styles.container}`}>\n\t\t\t\t<span>Profile Settings</span>\n\t\t\t\t<span className={styles.profileEmail}>{jwt.result?.userEmail}</span>\n\t\t\t</div>\n\t\t</MenuItem>\n\t)\n}\n"],"names":[],"mappings":";;;;;AAsBO,MAAM,0BAA0B,CAAC,EAAE,cAAuC;;AAC1E,QAAA;AAAA,IACL,MAAM,EAAE,IAAI;AAAA,MACT,WAAW;AAEf,MAAI,CAAC,yBAAyB,IAAI,MAAM,GAAG;AACnC,WAAA;AAAA,EAAA;AAIP,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,eAAY;AAAA,MACZ,MAAK;AAAA,MACL,SAAS,MAAM;AACJ;AAAA,MACX;AAAA,MAEA,+BAAC,OAAI,EAAA,WAAW,YAAY,OAAO,SAAS,IAC3C,UAAA;AAAA,QAAA,oBAAC,UAAK,UAAgB,mBAAA,CAAA;AAAA,4BACrB,QAAK,EAAA,WAAW,OAAO,cAAe,WAAA,SAAI,WAAJ,mBAAY,UAAU,CAAA;AAAA,MAAA,EAC9D,CAAA;AAAA,IAAA;AAAA,EACD;AAEF;"}
|