@layers-app/shared 0.2.8 → 0.3.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/api/giphy/slice.d.ts +1 -1
- package/dist/api/giphy/slice.d.ts.map +1 -1
- package/dist/api/unsplash/slice.d.ts +1 -1
- package/dist/api/unsplash/slice.d.ts.map +1 -1
- package/dist/assets/default-workspace-avatar.jpg.js +4 -0
- package/dist/assets/layers-logo-full.svg.js +2 -3
- package/dist/assets/layers-logo-full.svg2.js +5 -0
- package/dist/assets/layers-logo-icon.svg.js +2 -3
- package/dist/assets/layers-logo-icon.svg2.js +5 -0
- package/dist/assets/projects/figureA.svg.js +4 -0
- package/dist/assets/projects/figureB.svg.js +4 -0
- package/dist/assets/qwebchannel.d.ts +15 -0
- package/dist/assets/qwebchannel.d.ts.map +1 -0
- package/dist/assets/taskPriorities/high.svg.js +5 -0
- package/dist/assets/taskPriorities/low.svg.js +5 -0
- package/dist/assets/taskPriorities/none.svg.js +5 -0
- package/dist/assets/taskPriorities/normal.svg.js +5 -0
- package/dist/assets/taskPriorities/urgent.svg.js +5 -0
- package/dist/components/AliasTextInput/AliasTextInput.d.ts.map +1 -1
- package/dist/components/AliasTextInput/AliasTextInput.js +8 -7
- package/dist/components/AnimatedFigurePage/AnimatedFigurePage.d.ts +3 -0
- package/dist/components/AnimatedFigurePage/AnimatedFigurePage.d.ts.map +1 -0
- package/dist/components/AnimatedFigurePage/AnimatedFigurePage.js +69 -0
- package/dist/components/AnimatedFigurePage/AnimatedFigurePage.module.css.js +27 -0
- package/dist/components/AnimatedFigurePage/types.d.ts +15 -0
- package/dist/components/AnimatedFigurePage/types.d.ts.map +1 -0
- package/dist/components/AnimatedFigurePage/useParallax.d.ts +6 -0
- package/dist/components/AnimatedFigurePage/useParallax.d.ts.map +1 -0
- package/dist/components/AnimatedFigurePage/useParallax.js +29 -0
- package/dist/components/AppContainer/AppContainer.d.ts +1 -1
- package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
- package/dist/components/AppContainer/AppContainer.js +37 -36
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +80 -45
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +120 -120
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.js +57 -51
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +3 -1
- package/dist/components/AppContainer/types.d.ts +3 -0
- package/dist/components/AppContainer/types.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerPopover.d.ts +6 -6
- package/dist/components/ColorPicker/ColorPickerPopover.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerPopover.js +29 -31
- package/dist/components/CommentComposer/index.d.ts.map +1 -1
- package/dist/components/CommentComposer/index.js +115 -111
- package/dist/components/CommunitiesDialog/index.d.ts.map +1 -1
- package/dist/components/CommunitiesDialog/index.js +47 -46
- package/dist/components/Copyright/index.d.ts.map +1 -1
- package/dist/components/Copyright/index.js +8 -7
- package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPanel.js +12 -10
- package/dist/components/EmojiPicker/EmojiPicker.d.ts +3 -1
- package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.js +49 -46
- package/dist/components/EmojiPicker/IconsPanel.d.ts +2 -1
- package/dist/components/EmojiPicker/IconsPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/IconsPanel.js +47 -45
- package/dist/components/EmojiPicker/custom-icons/customIcons.d.ts.map +1 -1
- package/dist/components/EmojiPicker/custom-icons/customIcons.js +66 -31
- package/dist/components/EntityIcon.d.ts +3 -3
- package/dist/components/EntityIcon.d.ts.map +1 -1
- package/dist/components/EntityIcon.js +59 -35
- package/dist/components/EntityTitle/EntityTitle.d.ts +1 -1
- package/dist/components/EntityTitle/EntityTitle.d.ts.map +1 -1
- package/dist/components/EntityTitle/EntityTitle.js +34 -34
- package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
- package/dist/components/FilePicker/FilePicker.d.ts +1 -1
- package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePicker.js +144 -152
- package/dist/components/FilePicker/FilePicker.module.css.js +10 -10
- package/dist/components/FilePicker/FilePickerGallery.js +13 -13
- package/dist/components/FilePicker/FilePickerGiphy.d.ts +1 -1
- package/dist/components/FilePicker/FilePickerGiphy.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerGiphy.js +46 -48
- package/dist/components/FilePicker/FilePickerLink.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerLink.js +16 -16
- package/dist/components/FilePicker/FilePickerUnsplash.d.ts +1 -1
- package/dist/components/FilePicker/FilePickerUnsplash.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUnsplash.js +49 -51
- package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUpload.js +44 -42
- package/dist/components/FilePicker/api/giphyApi.d.ts +2 -2
- package/dist/components/FilePicker/api/giphyApi.d.ts.map +1 -1
- package/dist/components/FilePicker/api/giphyApi.js +11 -14
- package/dist/components/FilePicker/api/unsplashApi.d.ts +2 -2
- package/dist/components/FilePicker/api/unsplashApi.d.ts.map +1 -1
- package/dist/components/FilePicker/api/unsplashApi.js +14 -19
- package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.d.ts.map +1 -1
- package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.js +70 -72
- package/dist/components/FormViewer/components/fields/UploadField/UploadField.d.ts.map +1 -1
- package/dist/components/FormViewer/components/fields/UploadField/UploadField.js +34 -33
- package/dist/components/FormViewer/helpers/conditions.d.ts +84 -84
- package/dist/components/FormViewer/helpers/helpers.d.ts +84 -84
- package/dist/components/FormViewer/helpers/steps.d.ts +84 -84
- package/dist/components/FormViewer/helpers/steps.d.ts.map +1 -1
- package/dist/components/FormViewer/helpers/steps.js +22 -21
- package/dist/components/FormViewer/hooks/useActiveControl.d.ts +71 -71
- package/dist/components/FormViewer/hooks/useActiveStep.d.ts +84 -84
- package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts +3 -3
- package/dist/components/FormViewer/store/formStore.d.ts +357 -357
- package/dist/components/FormViewer/store/formStoreApi.d.ts +178 -178
- package/dist/components/FormViewer/store/selectors.d.ts +23861 -23861
- package/dist/components/FormViewer/types/schemes.d.ts +1139 -1139
- package/dist/components/Logotype.d.ts +6 -4
- package/dist/components/Logotype.d.ts.map +1 -1
- package/dist/components/Logotype.js +62 -30
- package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuItem.js +122 -107
- package/dist/components/NavMenu/types.d.ts +1 -0
- package/dist/components/NavMenu/types.d.ts.map +1 -1
- package/dist/components/OnBoarding/OnBoardingPage.js +35 -35
- package/dist/components/ProjectIcon/ProjectIcon.js +13 -13
- package/dist/components/TreeIndent/TreeIndent.d.ts +9 -0
- package/dist/components/TreeIndent/TreeIndent.d.ts.map +1 -0
- package/dist/components/TreeIndent/TreeIndent.js +15 -0
- package/dist/components/TreeIndent/TreeIndent.module.css.js +11 -0
- package/dist/components/TreeIndent/index.d.ts +2 -0
- package/dist/components/TreeIndent/index.d.ts.map +1 -0
- package/dist/components/WorkspaceAvatar/WorkspaceAvatar.js +6 -6
- package/dist/components/WorkspaceMenu/WorkspaceMenu.d.ts.map +1 -1
- package/dist/components/WorkspaceMenu/WorkspaceMenu.js +97 -101
- package/dist/components/modals/RemoveConfirmModal.d.ts.map +1 -1
- package/dist/config/brand.d.ts +49 -0
- package/dist/config/brand.d.ts.map +1 -0
- package/dist/config/brand.js +77 -0
- package/dist/config/envConfig.d.ts +110 -0
- package/dist/config/envConfig.d.ts.map +1 -0
- package/dist/config/envConfig.js +48 -0
- package/dist/constants.d.ts +1 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +19 -7
- package/dist/helpers/getFileIcons.d.ts.map +1 -1
- package/dist/helpers/getFileIcons.js +34 -29
- package/dist/helpers/getFileType.d.ts +1 -1
- package/dist/helpers/getFileType.d.ts.map +1 -1
- package/dist/helpers/getFileType.js +3 -3
- package/dist/helpers/hotjar.d.ts.map +1 -1
- package/dist/helpers/hotjar.js +11 -7
- package/dist/helpers/platform.js +4 -4
- package/dist/helpers/showNotifications.d.ts +3 -0
- package/dist/helpers/showNotifications.d.ts.map +1 -1
- package/dist/helpers/showNotifications.js +79 -44
- package/dist/hooks/useDateFnsLocale.d.ts +2 -0
- package/dist/hooks/useDateFnsLocale.d.ts.map +1 -1
- package/dist/hooks/useDateFnsLocale.js +9 -8
- package/dist/hooks/useDateUtils.d.ts.map +1 -1
- package/dist/hooks/useDateUtils.js +19 -19
- package/dist/hooks/useDisableWindowScroll.js +3 -3
- package/dist/hooks/useFormatDistance.d.ts.map +1 -1
- package/dist/hooks/useFormatDistance.js +6 -6
- package/dist/hooks/useNumberQueryParam.d.ts +1 -1
- package/dist/hooks/useNumberQueryParam.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +505 -487
- package/dist/lang/locales/ui_en.json.js +1 -1
- package/dist/lang/locales/ui_es.json.js +5 -5
- package/dist/lang/locales/ui_ru.json.js +5 -5
- package/dist/utils/formatStorage.d.ts +9 -0
- package/dist/utils/formatStorage.d.ts.map +1 -1
- package/dist/utils/formatStorage.js +14 -10
- package/package.json +3 -6
- package/dist/assets/svg/default_icon.svg.js +0 -4
- package/dist/assets/svg/layers-logo-full.svg.js +0 -4
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsxs as r, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { useEffect as
|
|
3
|
-
import { useMantineColorScheme as
|
|
4
|
-
import { isAppMode as
|
|
5
|
-
import { useQueryParam as
|
|
2
|
+
import { useEffect as j } from "react";
|
|
3
|
+
import { useMantineColorScheme as B, Stack as D, Flex as H } from "@mantine/core";
|
|
4
|
+
import { isAppMode as M } from "../../helpers/isAppMode.js";
|
|
5
|
+
import { useQueryParam as N } from "../../hooks/useNumberQueryParam.js";
|
|
6
6
|
import { AppShell as e } from "../AppShell/AppShell.js";
|
|
7
|
-
import { AppsSidebar as
|
|
8
|
-
import { Header as
|
|
9
|
-
import { Main as
|
|
10
|
-
import
|
|
11
|
-
import { RightSidebar as
|
|
12
|
-
import { ToolSidebar as
|
|
13
|
-
import { ToolbarNewButton as
|
|
14
|
-
import { useAppContainerDataStore as
|
|
15
|
-
import { appContainerStore as
|
|
16
|
-
const
|
|
7
|
+
import { AppsSidebar as P } from "./components/AppsSidebar/AppsSidebar.js";
|
|
8
|
+
import { Header as W } from "./components/Header.js";
|
|
9
|
+
import { Main as E } from "./components/Main.js";
|
|
10
|
+
import O from "./components/NavbarContent.js";
|
|
11
|
+
import { RightSidebar as $ } from "./components/RightSidebar.js";
|
|
12
|
+
import { ToolSidebar as F } from "./components/ToolSidebar.js";
|
|
13
|
+
import { ToolbarNewButton as K } from "./components/ToolbarNewButton.js";
|
|
14
|
+
import { useAppContainerDataStore as Q } from "./hooks/useAppContainerDataStore.js";
|
|
15
|
+
import { appContainerStore as R } from "./hooks/useAppContainerStore.js";
|
|
16
|
+
const _ = ({
|
|
17
17
|
header: l,
|
|
18
18
|
content: h,
|
|
19
19
|
toolbar: i,
|
|
@@ -25,43 +25,44 @@ const R = ({
|
|
|
25
25
|
onInviteClick: u,
|
|
26
26
|
showAppsSidebar: S = !0,
|
|
27
27
|
headerBorderless: b = !1,
|
|
28
|
-
withBg: x = !1
|
|
28
|
+
withBg: x = !1,
|
|
29
|
+
hideHeader: w = !1
|
|
29
30
|
}) => {
|
|
30
|
-
const { toolbarWidth:
|
|
31
|
-
|
|
32
|
-
!
|
|
33
|
-
}, [t, s,
|
|
34
|
-
const
|
|
35
|
-
"--toolbar-width": `${
|
|
36
|
-
"--rightbar-width": `${
|
|
37
|
-
},
|
|
38
|
-
return /* @__PURE__ */ r(e, { style:
|
|
39
|
-
S && /* @__PURE__ */ o(e.Section, { w: "var(--apps-sidebar-width)", children: /* @__PURE__ */ o(
|
|
31
|
+
const { toolbarWidth: C, rightbarWidth: g, layout: a } = R.useStore(), A = Q((T) => T.user), p = M(A.mode, "DESKTOP"), { setColorScheme: s } = B(), t = N("theme");
|
|
32
|
+
j(() => {
|
|
33
|
+
!p && (t === "dark" || t === "light") && s(t);
|
|
34
|
+
}, [t, s, p]);
|
|
35
|
+
const y = {
|
|
36
|
+
"--toolbar-width": `${C}px`,
|
|
37
|
+
"--rightbar-width": `${g}px`
|
|
38
|
+
}, k = a !== "nothing" && !w, v = a === "default" && i;
|
|
39
|
+
return /* @__PURE__ */ r(e, { style: y, children: [
|
|
40
|
+
S && /* @__PURE__ */ o(e.Section, { w: "var(--apps-sidebar-width)", children: /* @__PURE__ */ o(P, { onInviteClick: u, trashMenu: f }) }),
|
|
40
41
|
/* @__PURE__ */ r(e.Section, { flex: 1, display: "flex", pos: "relative", children: [
|
|
41
|
-
|
|
42
|
-
/* @__PURE__ */ r(
|
|
43
|
-
|
|
42
|
+
v && /* @__PURE__ */ o(F, { onTitleChange: c, navbarTitle: d, children: i }),
|
|
43
|
+
/* @__PURE__ */ r(D, { mih: 0, gap: 0, h: "100%", flex: 2, miw: 0, children: [
|
|
44
|
+
k && /* @__PURE__ */ o(
|
|
44
45
|
e.Header,
|
|
45
46
|
{
|
|
46
47
|
px: "sm",
|
|
47
48
|
style: b ? { borderBottom: "none" } : void 0,
|
|
48
|
-
children: /* @__PURE__ */ o(
|
|
49
|
+
children: /* @__PURE__ */ o(W, { children: l })
|
|
49
50
|
}
|
|
50
51
|
),
|
|
51
|
-
/* @__PURE__ */ r(
|
|
52
|
-
/* @__PURE__ */ o(e.WorkContent, { children: /* @__PURE__ */ r(
|
|
52
|
+
/* @__PURE__ */ r(H, { mih: 0, gap: 0, h: "100%", children: [
|
|
53
|
+
/* @__PURE__ */ o(e.WorkContent, { children: /* @__PURE__ */ r(E, { withBg: x, children: [
|
|
53
54
|
h,
|
|
54
55
|
n && /* @__PURE__ */ o("footer", { children: n })
|
|
55
56
|
] }) }),
|
|
56
|
-
m && /* @__PURE__ */ o(
|
|
57
|
+
m && /* @__PURE__ */ o($, { children: m })
|
|
57
58
|
] })
|
|
58
59
|
] })
|
|
59
60
|
] })
|
|
60
61
|
] });
|
|
61
|
-
},
|
|
62
|
-
NavbarContent:
|
|
63
|
-
NewButton:
|
|
62
|
+
}, io = Object.assign(_, {
|
|
63
|
+
NavbarContent: O,
|
|
64
|
+
NewButton: K
|
|
64
65
|
});
|
|
65
66
|
export {
|
|
66
|
-
|
|
67
|
+
io as AppContainer
|
|
67
68
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/AppContainer/components/AppsSidebar/UserSection.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UserSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/AppContainer/components/AppsSidebar/UserSection.tsx"],"names":[],"mappings":"AAyBA,eAAO,MAAM,WAAW,GAAI,+BAGzB;IACD,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC5B,4CA8JA,CAAC"}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useTranslation as
|
|
3
|
-
import { Link as
|
|
4
|
-
import { Delete03Icon as
|
|
5
|
-
import { HugeiconsIcon as
|
|
6
|
-
import { Stack as
|
|
7
|
-
import { IconUserCircle as
|
|
8
|
-
import { usePlatform as
|
|
9
|
-
import { useTrashModalStore as
|
|
10
|
-
import { useAppContainerDataStore as
|
|
1
|
+
import { jsxs as t, jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useTranslation as O } from "react-i18next";
|
|
3
|
+
import { Link as D } from "react-router-dom";
|
|
4
|
+
import { Delete03Icon as E, UserAdd02Icon as x, HelpCircleIcon as A, Wifi01Icon as M, WifiDisconnected04Icon as L } from "@hugeicons/core-free-icons";
|
|
5
|
+
import { HugeiconsIcon as s } from "@hugeicons/react";
|
|
6
|
+
import { Stack as d, Menu as r, Tooltip as l, Box as I, ActionIcon as U } from "@mantine/core";
|
|
7
|
+
import { IconUserCircle as F } from "@tabler/icons-react";
|
|
8
|
+
import { usePlatform as R } from "../../../../hooks/usePlatform.js";
|
|
9
|
+
import { useTrashModalStore as k, openTrashModal as z, closeTrashModal as j } from "../../../../store/trashModal.js";
|
|
10
|
+
import { useAppContainerDataStore as G } from "../../hooks/useAppContainerDataStore.js";
|
|
11
11
|
import { AppSidebarButton as c } from "../AppSidebarButton.js";
|
|
12
12
|
import { HelpMenu as H } from "../menus/HelpMenu/HelpMenu.js";
|
|
13
|
-
import { MenuUserDropdown as
|
|
14
|
-
const
|
|
15
|
-
trashMenu:
|
|
16
|
-
onInviteClick:
|
|
13
|
+
import { MenuUserDropdown as K } from "../menus/UserMenu/MenuUserDropdown.js";
|
|
14
|
+
const io = ({
|
|
15
|
+
trashMenu: C,
|
|
16
|
+
onInviteClick: h
|
|
17
17
|
}) => {
|
|
18
|
-
const { t:
|
|
19
|
-
return /* @__PURE__ */
|
|
20
|
-
|
|
18
|
+
const { t: i } = O("appContainer"), m = R(), { user: f, isAnonym: p, userMenuItems: T, publicMode: S, navbarDisplayFormat: v, onSyncClick: g, syncState: N } = G(), w = k((e) => e.opened), u = !p && !S && f.role !== "mG", y = !p && m.has("inviteUsers") && h, n = v === "iconsAndLabels";
|
|
19
|
+
return /* @__PURE__ */ t(
|
|
20
|
+
d,
|
|
21
21
|
{
|
|
22
22
|
style: { borderTop: "1px solid var(--app-shell-border)" },
|
|
23
23
|
flex: 1,
|
|
@@ -25,71 +25,106 @@ const W = ({
|
|
|
25
25
|
gap: 16,
|
|
26
26
|
align: "center",
|
|
27
27
|
children: [
|
|
28
|
-
/* @__PURE__ */
|
|
29
|
-
|
|
28
|
+
/* @__PURE__ */ t(
|
|
29
|
+
d,
|
|
30
30
|
{
|
|
31
|
-
justify: !
|
|
31
|
+
justify: !u && !y ? "end" : "space-between",
|
|
32
32
|
gap: 8,
|
|
33
33
|
flex: 1,
|
|
34
34
|
children: [
|
|
35
|
-
|
|
35
|
+
u && /* @__PURE__ */ t(
|
|
36
36
|
r,
|
|
37
37
|
{
|
|
38
38
|
position: "right",
|
|
39
39
|
offset: 6,
|
|
40
40
|
width: 360,
|
|
41
|
-
opened:
|
|
42
|
-
onChange: (
|
|
43
|
-
|
|
41
|
+
opened: w,
|
|
42
|
+
onChange: (e) => {
|
|
43
|
+
e ? z() : j();
|
|
44
44
|
},
|
|
45
45
|
children: [
|
|
46
46
|
/* @__PURE__ */ o(r.Target, { children: /* @__PURE__ */ o(
|
|
47
|
-
|
|
47
|
+
l,
|
|
48
48
|
{
|
|
49
|
-
label:
|
|
49
|
+
label: i("trash"),
|
|
50
50
|
position: "right",
|
|
51
|
-
disabled:
|
|
51
|
+
disabled: n,
|
|
52
52
|
children: /* @__PURE__ */ o(
|
|
53
53
|
c,
|
|
54
54
|
{
|
|
55
|
-
title:
|
|
56
|
-
icon: /* @__PURE__ */ o(
|
|
55
|
+
title: n ? i("trash") : null,
|
|
56
|
+
icon: /* @__PURE__ */ o(s, { icon: E, size: 20 })
|
|
57
57
|
}
|
|
58
58
|
)
|
|
59
59
|
}
|
|
60
60
|
) }),
|
|
61
|
-
/* @__PURE__ */ o(r.Dropdown, { children:
|
|
61
|
+
/* @__PURE__ */ o(r.Dropdown, { children: C })
|
|
62
62
|
]
|
|
63
63
|
}
|
|
64
64
|
),
|
|
65
|
-
/* @__PURE__ */
|
|
66
|
-
|
|
65
|
+
/* @__PURE__ */ t(d, { gap: 8, children: [
|
|
66
|
+
y && /* @__PURE__ */ o(l, { label: i("invite"), position: "right", disabled: n, children: /* @__PURE__ */ o(
|
|
67
67
|
c,
|
|
68
68
|
{
|
|
69
|
-
title:
|
|
70
|
-
icon: /* @__PURE__ */ o(
|
|
71
|
-
onClick:
|
|
69
|
+
title: n ? i("invite") : null,
|
|
70
|
+
icon: /* @__PURE__ */ o(s, { icon: x, size: 20 }),
|
|
71
|
+
onClick: h
|
|
72
72
|
}
|
|
73
73
|
) }),
|
|
74
|
-
/* @__PURE__ */
|
|
75
|
-
/* @__PURE__ */ o(r.Target, { children: /* @__PURE__ */ o(
|
|
74
|
+
/* @__PURE__ */ t(r, { position: "right-end", offset: 6, width: 260, children: [
|
|
75
|
+
/* @__PURE__ */ o(r.Target, { children: /* @__PURE__ */ o(l, { label: i("help"), position: "right", disabled: n, children: /* @__PURE__ */ o(
|
|
76
76
|
c,
|
|
77
77
|
{
|
|
78
|
-
title:
|
|
79
|
-
icon: /* @__PURE__ */ o(
|
|
78
|
+
title: n ? i("help") : null,
|
|
79
|
+
icon: /* @__PURE__ */ o(s, { icon: A, size: 20 })
|
|
80
80
|
}
|
|
81
81
|
) }) }),
|
|
82
82
|
/* @__PURE__ */ o(r.Dropdown, { children: /* @__PURE__ */ o(H, {}) })
|
|
83
|
-
] })
|
|
83
|
+
] }),
|
|
84
|
+
m.isDesktop && g && (() => {
|
|
85
|
+
const e = (N || "").toUpperCase(), a = e === "SYNCED" || e === "OK", b = a ? "var(--mantine-color-green-6)" : e === "SYNCING" ? "var(--mantine-color-blue-6)" : e === "ERROR" || e === "CONFLICT" || e === "OFFLINE" ? "var(--mantine-color-red-6)" : e === "ATTENTION" ? "var(--mantine-color-orange-6)" : "var(--mantine-color-yellow-6)";
|
|
86
|
+
return /* @__PURE__ */ o(l, { label: i(a ? "sync.tooltipSynced" : e === "SYNCING" ? "sync.tooltipSyncing" : e === "OFFLINE" ? "sync.tooltipOffline" : e === "ERROR" ? "sync.tooltipError" : e === "CONFLICT" ? "sync.tooltipConflict" : e === "ATTENTION" ? "sync.tooltipAttention" : e === "QUEUED" ? "sync.tooltipQueued" : "sync.tooltipSyncing"), position: "right", children: /* @__PURE__ */ o(
|
|
87
|
+
c,
|
|
88
|
+
{
|
|
89
|
+
title: "Sync",
|
|
90
|
+
icon: /* @__PURE__ */ t(I, { pos: "relative", display: "inline-flex", children: [
|
|
91
|
+
/* @__PURE__ */ o(
|
|
92
|
+
s,
|
|
93
|
+
{
|
|
94
|
+
icon: a ? M : L,
|
|
95
|
+
size: 20,
|
|
96
|
+
color: b
|
|
97
|
+
}
|
|
98
|
+
),
|
|
99
|
+
/* @__PURE__ */ o(
|
|
100
|
+
I,
|
|
101
|
+
{
|
|
102
|
+
pos: "absolute",
|
|
103
|
+
bottom: -2,
|
|
104
|
+
right: -2,
|
|
105
|
+
w: 8,
|
|
106
|
+
h: 8,
|
|
107
|
+
style: {
|
|
108
|
+
borderRadius: "50%",
|
|
109
|
+
border: "2px solid var(--app-shell-bg)",
|
|
110
|
+
backgroundColor: b
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
)
|
|
114
|
+
] }),
|
|
115
|
+
onClick: g
|
|
116
|
+
}
|
|
117
|
+
) });
|
|
118
|
+
})()
|
|
84
119
|
] })
|
|
85
120
|
]
|
|
86
121
|
}
|
|
87
122
|
),
|
|
88
|
-
|
|
89
|
-
|
|
123
|
+
p ? /* @__PURE__ */ o(D, { to: "/login", children: /* @__PURE__ */ o(l, { label: "Log in", position: "right", children: /* @__PURE__ */ o(U, { size: "lg", variant: "light", children: /* @__PURE__ */ o(F, { size: 20 }) }) }) }) : /* @__PURE__ */ o(
|
|
124
|
+
K,
|
|
90
125
|
{
|
|
91
|
-
user:
|
|
92
|
-
menuItems:
|
|
126
|
+
user: f,
|
|
127
|
+
menuItems: T,
|
|
93
128
|
position: "right-end"
|
|
94
129
|
}
|
|
95
130
|
)
|
|
@@ -98,5 +133,5 @@ const W = ({
|
|
|
98
133
|
);
|
|
99
134
|
};
|
|
100
135
|
export {
|
|
101
|
-
|
|
136
|
+
io as UserSection
|
|
102
137
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HelpMenu.d.ts","sourceRoot":"","sources":["../../../../../../src/components/AppContainer/components/menus/HelpMenu/HelpMenu.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HelpMenu.d.ts","sourceRoot":"","sources":["../../../../../../src/components/AppContainer/components/menus/HelpMenu/HelpMenu.tsx"],"names":[],"mappings":"AAoCA,eAAO,MAAM,QAAQ,+CA4PpB,CAAC"}
|