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