@layers-app/shared 0.3.3 → 0.3.5-test

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 (53) hide show
  1. package/dist/components/AnimatedFigurePage/AnimatedFigurePage.module.css.js +10 -10
  2. package/dist/components/AppContainer/AppContainer.d.ts +1 -1
  3. package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
  4. package/dist/components/AppContainer/AppContainer.js +87 -55
  5. package/dist/components/AppContainer/AppContainer.module.css.js +5 -3
  6. package/dist/components/AppContainer/MeetWidgetContext.d.ts +9 -0
  7. package/dist/components/AppContainer/MeetWidgetContext.d.ts.map +1 -0
  8. package/dist/components/AppContainer/MeetWidgetContext.js +10 -0
  9. package/dist/components/AppContainer/components/AppSidebarButton.js +4 -4
  10. package/dist/components/AppContainer/components/AppsSidebar/AppsSection.d.ts +4 -1
  11. package/dist/components/AppContainer/components/AppsSidebar/AppsSection.d.ts.map +1 -1
  12. package/dist/components/AppContainer/components/AppsSidebar/AppsSection.js +25 -20
  13. package/dist/components/AppContainer/components/AppsSidebar/AppsSidebar.d.ts +5 -1
  14. package/dist/components/AppContainer/components/AppsSidebar/AppsSidebar.d.ts.map +1 -1
  15. package/dist/components/AppContainer/components/AppsSidebar/AppsSidebar.js +24 -13
  16. package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts +4 -1
  17. package/dist/components/AppContainer/components/AppsSidebar/TopSection.d.ts.map +1 -1
  18. package/dist/components/AppContainer/components/AppsSidebar/TopSection.js +35 -32
  19. package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts +3 -2
  20. package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
  21. package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +50 -39
  22. package/dist/components/AppContainer/components/Main.js +4 -4
  23. package/dist/components/AppContainer/components/SlideAnimation.js +4 -4
  24. package/dist/components/AppContainer/components/ToolSidebar.d.ts +2 -0
  25. package/dist/components/AppContainer/components/ToolSidebar.d.ts.map +1 -1
  26. package/dist/components/AppContainer/components/ToolSidebar.js +75 -60
  27. package/dist/components/AppContainer/types.d.ts +5 -0
  28. package/dist/components/AppContainer/types.d.ts.map +1 -1
  29. package/dist/components/ColorPicker/ColorPicker.d.ts +1 -0
  30. package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
  31. package/dist/components/ColorPicker/ColorPicker.js +63 -62
  32. package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
  33. package/dist/components/ColorPicker/ColorPickerToolbar.js +88 -71
  34. package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts.map +1 -1
  35. package/dist/components/CommentComposer/CommentEditorHotkeys.js +4 -3
  36. package/dist/components/CommentComposer/index.js +1 -1
  37. package/dist/components/EntityIcon.d.ts.map +1 -1
  38. package/dist/components/FilePicker/FilePickerGiphy.js +6 -6
  39. package/dist/components/FilePicker/FilePickerLink.js +13 -13
  40. package/dist/config/envConfig.d.ts +5 -3
  41. package/dist/config/envConfig.d.ts.map +1 -1
  42. package/dist/config/envConfig.js +26 -22
  43. package/dist/constants.d.ts +1 -0
  44. package/dist/constants.d.ts.map +1 -1
  45. package/dist/constants.js +8 -5
  46. package/dist/index.css +1 -1
  47. package/dist/index.d.ts +2 -0
  48. package/dist/index.d.ts.map +1 -1
  49. package/dist/index.js +509 -503
  50. package/dist/lang/locales/ui_en.json.js +16 -14
  51. package/dist/lang/locales/ui_es.json.js +12 -10
  52. package/dist/lang/locales/ui_ru.json.js +18 -16
  53. package/package.json +1 -1
@@ -1,4 +1,4 @@
1
- const e = "_page_1vjqw_5", g = "_figureContainer_1vjqw_31", _ = "_figure_1vjqw_31", a = "_figureA_1vjqw_57", r = "_figureB_1vjqw_65", n = "_grainOverlay_1vjqw_229", i = "_badgeWrap_1vjqw_253", t = "_badge0_1vjqw_309", d = "_badge1_1vjqw_319", o = "_badge2_1vjqw_337", b = "_badge3_1vjqw_355", s = {
1
+ const e = "_page_qm43p_5", g = "_figureContainer_qm43p_31", _ = "_figure_qm43p_31", a = "_figureA_qm43p_57", r = "_figureB_qm43p_65", n = "_grainOverlay_qm43p_229", i = "_badgeWrap_qm43p_253", p = "_badge0_qm43p_309", t = "_badge1_qm43p_319", d = "_badge2_qm43p_337", o = "_badge3_qm43p_355", b = {
2
2
  page: e,
3
3
  figureContainer: g,
4
4
  figure: _,
@@ -6,18 +6,18 @@ const e = "_page_1vjqw_5", g = "_figureContainer_1vjqw_31", _ = "_figure_1vjqw_3
6
6
  figureB: r,
7
7
  grainOverlay: n,
8
8
  badgeWrap: i,
9
- badge0: t,
10
- badge1: d,
11
- badge2: o,
12
- badge3: b
9
+ badge0: p,
10
+ badge1: t,
11
+ badge2: d,
12
+ badge3: o
13
13
  };
14
14
  export {
15
- t as badge0,
16
- d as badge1,
17
- o as badge2,
18
- b as badge3,
15
+ p as badge0,
16
+ t as badge1,
17
+ d as badge2,
18
+ o as badge3,
19
19
  i as badgeWrap,
20
- s as default,
20
+ b as default,
21
21
  _ as figure,
22
22
  a as figureA,
23
23
  r as figureB,
@@ -5,7 +5,7 @@ declare global {
5
5
  preSignMode?: boolean;
6
6
  }
7
7
  }
8
- export declare const AppContainer: (({ header, content, toolbar, navbarTitle, footer, onTitleChange, trashMenu, rightbar, onInviteClick, showAppsSidebar, headerBorderless, withBg, hideHeader, }: AppContainerProps) => import("react/jsx-runtime").JSX.Element) & {
8
+ export declare const AppContainer: (({ header, content, toolbar, navbarTitle, footer, onTitleChange, trashMenu, rightbar, onInviteClick, showAppsSidebar, headerBorderless, withBg, isBeta, hideHeader, showSearch, showMore, showBorders, showLogo, }: AppContainerProps) => import("react/jsx-runtime").JSX.Element) & {
9
9
  NavbarContent: ({ children }: import("react").PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
10
10
  NewButton: ({ children, ...props }: import("@mantine/core").PolymorphicComponentProps<"button", import("@mantine/core").ButtonProps>) => import("react/jsx-runtime").JSX.Element;
11
11
  };
@@ -1 +1 @@
1
- {"version":3,"file":"AppContainer.d.ts","sourceRoot":"","sources":["../../../src/components/AppContainer/AppContainer.tsx"],"names":[],"mappings":"AAqBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAE5C,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB;CACF;AA2ED,eAAO,MAAM,YAAY,kKA3DtB,iBAAiB;;;CA8DlB,CAAC"}
1
+ {"version":3,"file":"AppContainer.d.ts","sourceRoot":"","sources":["../../../src/components/AppContainer/AppContainer.tsx"],"names":[],"mappings":"AAsBA,OAAO,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAI5C,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,WAAW,CAAC,EAAE,OAAO,CAAC;KACvB;CACF;AAwGD,eAAO,MAAM,YAAY,uNAnFtB,iBAAiB;;;CAsFlB,CAAC"}
@@ -1,68 +1,100 @@
1
- import { jsxs as r, jsx as o } from "react/jsx-runtime";
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
- import { AppShell as e } from "../AppShell/AppShell.js";
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
- header: l,
18
- content: h,
19
- toolbar: i,
20
- navbarTitle: d,
21
- footer: n,
22
- onTitleChange: c,
23
- trashMenu: f,
24
- rightbar: m,
25
- onInviteClick: u,
26
- showAppsSidebar: S = !0,
27
- headerBorderless: b = !1,
28
- withBg: x = !1,
29
- hideHeader: w = !1
1
+ import { jsxs as o, jsx as e } from "react/jsx-runtime";
2
+ import { useEffect as E } from "react";
3
+ import { useMantineColorScheme as F, Stack as O, Flex as $ } from "@mantine/core";
4
+ import { isAppMode as K } from "../../helpers/isAppMode.js";
5
+ import { useQueryParam as Q } from "../../hooks/useNumberQueryParam.js";
6
+ import { AppShell as t } from "../AppShell/AppShell.js";
7
+ import { useMeetWidget as R } from "./MeetWidgetContext.js";
8
+ import { AppsSidebar as V } from "./components/AppsSidebar/AppsSidebar.js";
9
+ import { Header as _ } from "./components/Header.js";
10
+ import { Main as q } from "./components/Main.js";
11
+ import z from "./components/NavbarContent.js";
12
+ import { RightSidebar as G } from "./components/RightSidebar.js";
13
+ import { ToolSidebar as I } from "./components/ToolSidebar.js";
14
+ import { ToolbarNewButton as J } from "./components/ToolbarNewButton.js";
15
+ import { useAppContainerDataStore as L } from "./hooks/useAppContainerDataStore.js";
16
+ import { appContainerStore as U } from "./hooks/useAppContainerStore.js";
17
+ import X from "./AppContainer.module.css.js";
18
+ const Y = ({
19
+ header: h,
20
+ content: f,
21
+ toolbar: n,
22
+ navbarTitle: u,
23
+ footer: s,
24
+ onTitleChange: S,
25
+ trashMenu: b,
26
+ rightbar: a,
27
+ onInviteClick: g,
28
+ showAppsSidebar: x = !0,
29
+ headerBorderless: w = !1,
30
+ withBg: C = !1,
31
+ isBeta: M = !1,
32
+ hideHeader: A = !1,
33
+ showSearch: T = !0,
34
+ showMore: v = !0,
35
+ showBorders: y = !0,
36
+ showLogo: W = !1
30
37
  }) => {
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 }) }),
41
- /* @__PURE__ */ r(e.Section, { flex: 1, display: "flex", pos: "relative", children: [
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(
45
- e.Header,
38
+ const {
39
+ toolbarWidth: k,
40
+ rightbarWidth: N,
41
+ layout: l,
42
+ showToolbar: j
43
+ } = U.useStore(), B = L((P) => P.user), m = K(B.mode, "DESKTOP"), { setColorScheme: p } = F(), r = Q("theme"), i = R();
44
+ E(() => {
45
+ !m && (r === "dark" || r === "light") && p(r);
46
+ }, [r, p, m]);
47
+ const D = {
48
+ "--toolbar-width": `${k}px`,
49
+ "--rightbar-width": `${N}px`
50
+ }, H = l !== "nothing" && !A, d = l === "default" && !!n, c = !d || !j;
51
+ return /* @__PURE__ */ o(t, { style: D, children: [
52
+ x && /* @__PURE__ */ e(t.Section, { w: "var(--apps-sidebar-width)", children: /* @__PURE__ */ e(
53
+ V,
54
+ {
55
+ onInviteClick: g,
56
+ trashMenu: b,
57
+ showSearch: T,
58
+ showMore: v,
59
+ showBorders: y,
60
+ showLogo: W
61
+ }
62
+ ) }),
63
+ /* @__PURE__ */ o(t.Section, { flex: 1, display: "flex", pos: "relative", children: [
64
+ d && /* @__PURE__ */ e(
65
+ I,
66
+ {
67
+ isBeta: M,
68
+ onTitleChange: S,
69
+ navbarTitle: u,
70
+ bottomSlot: c ? null : i,
71
+ children: n
72
+ }
73
+ ),
74
+ i && c && /* @__PURE__ */ e("div", { className: X.floatingMeetSlot, children: i }),
75
+ /* @__PURE__ */ o(O, { mih: 0, gap: 0, h: "100%", flex: 2, miw: 0, children: [
76
+ H && /* @__PURE__ */ e(
77
+ t.Header,
46
78
  {
47
79
  px: "sm",
48
- style: b ? { borderBottom: "none" } : void 0,
49
- children: /* @__PURE__ */ o(W, { children: l })
80
+ style: w ? { borderBottom: "none" } : void 0,
81
+ children: /* @__PURE__ */ e(_, { children: h })
50
82
  }
51
83
  ),
52
- /* @__PURE__ */ r(H, { mih: 0, gap: 0, h: "100%", children: [
53
- /* @__PURE__ */ o(e.WorkContent, { children: /* @__PURE__ */ r(E, { withBg: x, children: [
54
- h,
55
- n && /* @__PURE__ */ o("footer", { children: n })
84
+ /* @__PURE__ */ o($, { mih: 0, gap: 0, h: "100%", children: [
85
+ /* @__PURE__ */ e(t.WorkContent, { children: /* @__PURE__ */ o(q, { withBg: C, children: [
86
+ f,
87
+ s && /* @__PURE__ */ e("footer", { children: s })
56
88
  ] }) }),
57
- m && /* @__PURE__ */ o($, { children: m })
89
+ a && /* @__PURE__ */ e(G, { children: a })
58
90
  ] })
59
91
  ] })
60
92
  ] })
61
93
  ] });
62
- }, io = Object.assign(_, {
63
- NavbarContent: O,
64
- NewButton: K
94
+ }, Se = Object.assign(Y, {
95
+ NavbarContent: z,
96
+ NewButton: J
65
97
  });
66
98
  export {
67
- io as AppContainer
99
+ Se as AppContainer
68
100
  };
@@ -1,13 +1,15 @@
1
- const t = "_toolTitleInput_12w1k_37", n = "_appSidebarButton_12w1k_67", o = "_slideContainer_12w1k_109", e = "_slideContent_12w1k_121", i = "_main_12w1k_151", s = {
1
+ const t = "_toolTitleInput_7pu9q_37", n = "_appSidebarButton_7pu9q_67", o = "_slideContainer_7pu9q_109", e = "_slideContent_7pu9q_121", i = "_main_7pu9q_151", l = "_floatingMeetSlot_7pu9q_169", a = {
2
2
  toolTitleInput: t,
3
3
  appSidebarButton: n,
4
4
  slideContainer: o,
5
5
  slideContent: e,
6
- main: i
6
+ main: i,
7
+ floatingMeetSlot: l
7
8
  };
8
9
  export {
9
10
  n as appSidebarButton,
10
- s as default,
11
+ a as default,
12
+ l as floatingMeetSlot,
11
13
  i as main,
12
14
  o as slideContainer,
13
15
  e as slideContent,
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+ interface MeetWidgetProviderProps {
3
+ value: ReactNode;
4
+ children: ReactNode;
5
+ }
6
+ export declare const MeetWidgetProvider: ({ value, children, }: MeetWidgetProviderProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const useMeetWidget: () => ReactNode;
8
+ export {};
9
+ //# sourceMappingURL=MeetWidgetContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MeetWidgetContext.d.ts","sourceRoot":"","sources":["../../../src/components/AppContainer/MeetWidgetContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA6B,MAAM,OAAO,CAAC;AAI7D,UAAU,uBAAuB;IAC/B,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,kBAAkB,GAAI,sBAGhC,uBAAuB,4CAIzB,CAAC;AAEF,eAAO,MAAM,aAAa,QAAO,SAA0C,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { jsx as r } from "react/jsx-runtime";
2
+ import { useContext as i, createContext as n } from "react";
3
+ const e = n(null), x = ({
4
+ value: t,
5
+ children: o
6
+ }) => /* @__PURE__ */ r(e.Provider, { value: t, children: o }), c = () => i(e);
7
+ export {
8
+ x as MeetWidgetProvider,
9
+ c as useMeetWidget
10
+ };
@@ -1,11 +1,11 @@
1
- import { jsxs as n, jsx as t } from "react/jsx-runtime";
2
- import { forwardRef as c } from "react";
1
+ import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
+ import { forwardRef as n } from "react";
3
3
  import { Stack as p, ActionIcon as s, Text as l } from "@mantine/core";
4
4
  import d from "../AppContainer.module.css.js";
5
- const h = c(({ title: r, icon: a, active: e, onClick: o }, i) => /* @__PURE__ */ n(
5
+ const h = n(({ title: r, icon: a, active: e, onClick: o }, c) => /* @__PURE__ */ i(
6
6
  p,
7
7
  {
8
- ref: i,
8
+ ref: c,
9
9
  className: d.appSidebarButton,
10
10
  gap: 0,
11
11
  align: "center",
@@ -1,2 +1,5 @@
1
- export declare const AppsSection: () => import("react/jsx-runtime").JSX.Element;
1
+ export declare const AppsSection: ({ showMore, showBorders, }: {
2
+ showMore?: boolean;
3
+ showBorders?: boolean;
4
+ }) => import("react/jsx-runtime").JSX.Element;
2
5
  //# sourceMappingURL=AppsSection.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AppsSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/AppContainer/components/AppsSidebar/AppsSection.tsx"],"names":[],"mappings":"AAYA,eAAO,MAAM,WAAW,+CAsDvB,CAAC"}
1
+ {"version":3,"file":"AppsSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/AppContainer/components/AppsSidebar/AppsSection.tsx"],"names":[],"mappings":"AAYA,eAAO,MAAM,WAAW,GAAI,4BAGzB;IACD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,4CA2DA,CAAC"}
@@ -1,24 +1,29 @@
1
1
  import { jsx as o, jsxs as l } from "react/jsx-runtime";
2
- import { useTranslation as h } from "react-i18next";
3
- import { matchPath as f } from "react-router-dom";
4
- import { More01Icon as u } from "@hugeicons/core-free-icons";
5
- import { HugeiconsIcon as b } from "@hugeicons/react";
6
- import { ScrollArea as g, Stack as w, Tooltip as a, Menu as e } from "@mantine/core";
7
- import { useAppContainerDataStore as S } from "../../hooks/useAppContainerDataStore.js";
8
- import { appContainerStore as A } from "../../hooks/useAppContainerStore.js";
2
+ import { useTranslation as f } from "react-i18next";
3
+ import { matchPath as b } from "react-router-dom";
4
+ import { More01Icon as g } from "@hugeicons/core-free-icons";
5
+ import { HugeiconsIcon as w } from "@hugeicons/react";
6
+ import { ScrollArea as S, Stack as v, Tooltip as a, Menu as e } from "@mantine/core";
7
+ import { useAppContainerDataStore as A } from "../../hooks/useAppContainerDataStore.js";
8
+ import { appContainerStore as C } from "../../hooks/useAppContainerStore.js";
9
9
  import { AppSidebarButton as p } from "../AppSidebarButton.js";
10
- import { MoreMenu as C } from "../menus/MoreMenu.js";
11
- const z = () => {
12
- const { t: n } = h("appContainer"), { hiddenTools: s } = A.useStore(), { tools: t, publicMode: c, navbarDisplayFormat: m } = S(), r = m === "iconsAndLabels";
10
+ import { MoreMenu as M } from "../menus/MoreMenu.js";
11
+ const F = ({
12
+ showMore: s = !0,
13
+ showBorders: c = !0
14
+ }) => {
15
+ const { t: n } = f("appContainer"), { hiddenTools: m } = C.useStore(), { tools: t, publicMode: d, navbarDisplayFormat: h } = A(), r = h === "iconsAndLabels";
13
16
  return /* @__PURE__ */ o(
14
- g,
17
+ S,
15
18
  {
16
19
  w: "var(--apps-sidebar-width)",
17
- style: { borderTop: "1px solid var(--app-shell-border)" },
20
+ style: {
21
+ borderTop: c ? "1px solid var(--app-shell-border)" : void 0
22
+ },
18
23
  py: 8,
19
- children: /* @__PURE__ */ l(w, { gap: 8, align: "center", children: [
20
- t?.filter((i) => !s.includes(i.id))?.map((i) => {
21
- const d = !!f(
24
+ children: /* @__PURE__ */ l(v, { gap: 8, align: "center", children: [
25
+ t?.filter((i) => !m.includes(i.id))?.map((i) => {
26
+ const u = !!b(
22
27
  { path: i.path, end: !1 },
23
28
  window.location.pathname
24
29
  );
@@ -33,7 +38,7 @@ const z = () => {
33
38
  {
34
39
  title: r ? i.name : null,
35
40
  icon: i.icon(),
36
- active: d,
41
+ active: u,
37
42
  onClick: i.onClick
38
43
  }
39
44
  )
@@ -41,20 +46,20 @@ const z = () => {
41
46
  i.id
42
47
  );
43
48
  }),
44
- !c && t.length > 1 && /* @__PURE__ */ l(e, { position: "right", closeOnItemClick: !1, children: [
49
+ s && !d && t.length > 1 && /* @__PURE__ */ l(e, { position: "right", closeOnItemClick: !1, children: [
45
50
  /* @__PURE__ */ o(e.Target, { children: /* @__PURE__ */ o(a, { label: n("more"), position: "right", disabled: r, children: /* @__PURE__ */ o(
46
51
  p,
47
52
  {
48
53
  title: r ? n("more") : null,
49
- icon: /* @__PURE__ */ o(b, { icon: u, size: 20 })
54
+ icon: /* @__PURE__ */ o(w, { icon: g, size: 20 })
50
55
  }
51
56
  ) }) }),
52
- /* @__PURE__ */ o(e.Dropdown, { miw: 240, children: /* @__PURE__ */ o(C, {}) })
57
+ /* @__PURE__ */ o(e.Dropdown, { miw: 240, children: /* @__PURE__ */ o(M, {}) })
53
58
  ] })
54
59
  ] })
55
60
  }
56
61
  );
57
62
  };
58
63
  export {
59
- z as AppsSection
64
+ F as AppsSection
60
65
  };
@@ -1,5 +1,9 @@
1
- export declare const AppsSidebar: ({ trashMenu, onInviteClick, }: {
1
+ export declare const AppsSidebar: ({ trashMenu, onInviteClick, showSearch, showMore, showBorders, showLogo, }: {
2
2
  trashMenu: React.ReactNode;
3
3
  onInviteClick?: () => void;
4
+ showSearch?: boolean;
5
+ showMore?: boolean;
6
+ showBorders?: boolean;
7
+ showLogo?: boolean;
4
8
  }) => import("react/jsx-runtime").JSX.Element;
5
9
  //# sourceMappingURL=AppsSidebar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"AppsSidebar.d.ts","sourceRoot":"","sources":["../../../../../src/components/AppContainer/components/AppsSidebar/AppsSidebar.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,WAAW,GAAI,+BAGzB;IACD,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;CAC5B,4CAQA,CAAC"}
1
+ {"version":3,"file":"AppsSidebar.d.ts","sourceRoot":"","sources":["../../../../../src/components/AppContainer/components/AppsSidebar/AppsSidebar.tsx"],"names":[],"mappings":"AAMA,eAAO,MAAM,WAAW,GAAI,4EAOzB;IACD,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,4CAYA,CAAC"}
@@ -1,16 +1,27 @@
1
- import { jsxs as t, jsx as o } from "react/jsx-runtime";
2
- import { Stack as e } from "@mantine/core";
3
- import { AppsSection as i } from "./AppsSection.js";
4
- import { TopSection as m } from "./TopSection.js";
5
- import { UserSection as s } from "./UserSection.js";
6
- const b = ({
7
- trashMenu: r,
8
- onInviteClick: p
9
- }) => /* @__PURE__ */ t(e, { gap: 0, justify: "space-between", pt: 8, pb: 8, h: "100%", children: [
10
- /* @__PURE__ */ o(m, {}),
11
- /* @__PURE__ */ o(i, {}),
12
- /* @__PURE__ */ o(s, { trashMenu: r, onInviteClick: p })
1
+ import { jsxs as s, jsx as t } from "react/jsx-runtime";
2
+ import { Stack as c } from "@mantine/core";
3
+ import { AppsSection as f } from "./AppsSection.js";
4
+ import { TopSection as n } from "./TopSection.js";
5
+ import { UserSection as a } from "./UserSection.js";
6
+ const l = ({
7
+ trashMenu: e,
8
+ onInviteClick: p,
9
+ showSearch: o = !0,
10
+ showMore: i = !0,
11
+ showBorders: r = !0,
12
+ showLogo: m = !1
13
+ }) => /* @__PURE__ */ s(c, { gap: 0, justify: "space-between", pt: 8, pb: 8, h: "100%", children: [
14
+ /* @__PURE__ */ t(n, { showSearch: o, showLogo: m }),
15
+ /* @__PURE__ */ t(f, { showMore: i, showBorders: r }),
16
+ /* @__PURE__ */ t(
17
+ a,
18
+ {
19
+ trashMenu: e,
20
+ onInviteClick: p,
21
+ showBorders: r
22
+ }
23
+ )
13
24
  ] });
14
25
  export {
15
- b as AppsSidebar
26
+ l as AppsSidebar
16
27
  };
@@ -1,2 +1,5 @@
1
- export declare const TopSection: () => import("react/jsx-runtime").JSX.Element;
1
+ export declare const TopSection: ({ showSearch, showLogo, }: {
2
+ showSearch?: boolean;
3
+ showLogo?: boolean;
4
+ }) => import("react/jsx-runtime").JSX.Element;
2
5
  //# sourceMappingURL=TopSection.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TopSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/AppContainer/components/AppsSidebar/TopSection.tsx"],"names":[],"mappings":"AAcA,eAAO,MAAM,UAAU,+CAgEtB,CAAC"}
1
+ {"version":3,"file":"TopSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/AppContainer/components/AppsSidebar/TopSection.tsx"],"names":[],"mappings":"AAcA,eAAO,MAAM,UAAU,GAAI,2BAGxB;IACD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,4CAoEA,CAAC"}
@@ -1,26 +1,29 @@
1
- import { jsxs as p, jsx as o } from "react/jsx-runtime";
2
- import { useTranslation as d } from "react-i18next";
3
- import { Search01Icon as h, Notification02Icon as f } from "@hugeicons/core-free-icons";
4
- import { HugeiconsIcon as s } from "@hugeicons/react";
5
- import { Stack as b, ActionIcon as u, Tooltip as n, Menu as a } from "@mantine/core";
6
- import { isFeature as v } from "../../../../helpers/feature.js";
7
- import { openSearchModal as w } from "../../../../store/searchModal.js";
8
- import { Notification as g } from "../../../Notification/Notification.js";
9
- import { WorkspaceAvatar as k } from "../../../WorkspaceAvatar/WorkspaceAvatar.js";
10
- import { WorkspaceMenu as y } from "../../../WorkspaceMenu/WorkspaceMenu.js";
11
- import { useAppContainerDataStore as A } from "../../hooks/useAppContainerDataStore.js";
12
- import { AppSidebarButton as l } from "../AppSidebarButton.js";
13
- const W = () => {
14
- const { t: i } = d("appContainer"), { workspaceMenu: r, isAnonym: e, publicMode: c, navbarDisplayFormat: m } = A(), t = m === "iconsAndLabels";
15
- return /* @__PURE__ */ p(b, { gap: 8, align: "center", pb: 8, children: [
16
- /* @__PURE__ */ o(
17
- y,
1
+ import { jsxs as s, jsx as o } from "react/jsx-runtime";
2
+ import { useTranslation as u } from "react-i18next";
3
+ import { Search01Icon as b, Notification02Icon as v } from "@hugeicons/core-free-icons";
4
+ import { HugeiconsIcon as p } from "@hugeicons/react";
5
+ import { Stack as w, ActionIcon as g, Tooltip as n, Menu as a } from "@mantine/core";
6
+ import { isFeature as k } from "../../../../helpers/feature.js";
7
+ import { openSearchModal as y } from "../../../../store/searchModal.js";
8
+ import { Notification as A } from "../../../Notification/Notification.js";
9
+ import { WorkspaceAvatar as l } from "../../../WorkspaceAvatar/WorkspaceAvatar.js";
10
+ import { WorkspaceMenu as S } from "../../../WorkspaceMenu/WorkspaceMenu.js";
11
+ import { useAppContainerDataStore as z } from "../../hooks/useAppContainerDataStore.js";
12
+ import { AppSidebarButton as m } from "../AppSidebarButton.js";
13
+ const H = ({
14
+ showSearch: d = !0,
15
+ showLogo: h = !1
16
+ }) => {
17
+ const { t: i } = u("appContainer"), { workspaceMenu: r, isAnonym: t, publicMode: c, navbarDisplayFormat: f } = z(), e = f === "iconsAndLabels";
18
+ return /* @__PURE__ */ s(w, { gap: 8, align: "center", pb: 8, children: [
19
+ h ? /* @__PURE__ */ o(l, { size: 36 }) : /* @__PURE__ */ o(
20
+ S,
18
21
  {
19
22
  ...r,
20
- isAnonym: e,
23
+ isAnonym: t,
21
24
  publicMode: c,
22
25
  children: /* @__PURE__ */ o(
23
- u,
26
+ g,
24
27
  {
25
28
  size: "lg",
26
29
  variant: "transparent",
@@ -33,43 +36,43 @@ const W = () => {
33
36
  openDelay: 400,
34
37
  position: "right",
35
38
  withArrow: !0,
36
- children: /* @__PURE__ */ o(k, { workspace: r.active, size: 36 })
39
+ children: /* @__PURE__ */ o(l, { workspace: r.active, size: 36 })
37
40
  }
38
41
  )
39
42
  }
40
43
  )
41
44
  }
42
45
  ),
43
- !e && !c && /* @__PURE__ */ o(n, { label: i("search"), position: "right", disabled: t, children: /* @__PURE__ */ o(
44
- l,
46
+ d && !t && !c && /* @__PURE__ */ o(n, { label: i("search"), position: "right", disabled: e, children: /* @__PURE__ */ o(
47
+ m,
45
48
  {
46
- title: t ? i("search") : null,
47
- icon: /* @__PURE__ */ o(s, { icon: h, size: 20 }),
49
+ title: e ? i("search") : null,
50
+ icon: /* @__PURE__ */ o(p, { icon: b, size: 20 }),
48
51
  onClick: () => {
49
- w();
52
+ y();
50
53
  }
51
54
  }
52
55
  ) }),
53
- v() && !e && /* @__PURE__ */ p(a, { position: "right-start", children: [
56
+ k() && !t && /* @__PURE__ */ s(a, { position: "right-start", children: [
54
57
  /* @__PURE__ */ o(a.Target, { children: /* @__PURE__ */ o(
55
58
  n,
56
59
  {
57
60
  label: i("activity"),
58
61
  position: "right",
59
- disabled: t,
62
+ disabled: e,
60
63
  children: /* @__PURE__ */ o(
61
- l,
64
+ m,
62
65
  {
63
- title: t ? i("activity") : null,
64
- icon: /* @__PURE__ */ o(s, { icon: f, size: 20 })
66
+ title: e ? i("activity") : null,
67
+ icon: /* @__PURE__ */ o(p, { icon: v, size: 20 })
65
68
  }
66
69
  )
67
70
  }
68
71
  ) }),
69
- /* @__PURE__ */ o(a.Dropdown, { px: 4, py: 0, w: 440, children: /* @__PURE__ */ o(g, {}) })
72
+ /* @__PURE__ */ o(a.Dropdown, { px: 4, py: 0, w: 440, children: /* @__PURE__ */ o(A, {}) })
70
73
  ] })
71
74
  ] });
72
75
  };
73
76
  export {
74
- W as TopSection
77
+ H as TopSection
75
78
  };
@@ -1,5 +1,6 @@
1
- export declare const UserSection: ({ trashMenu, onInviteClick, }: {
2
- trashMenu: React.ReactNode;
1
+ export declare const UserSection: ({ trashMenu, onInviteClick, showBorders, }: {
2
+ trashMenu?: React.ReactNode;
3
3
  onInviteClick?: () => void;
4
+ showBorders?: boolean;
4
5
  }) => import("react/jsx-runtime").JSX.Element;
5
6
  //# sourceMappingURL=UserSection.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"UserSection.d.ts","sourceRoot":"","sources":["../../../../../src/components/AppContainer/components/AppsSidebar/UserSection.tsx"],"names":[],"mappings":"AAyBA,eAAO,MAAM,WAAW,GAAI,4CAIzB;IACD,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,4CA2KA,CAAC"}