@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,25 +1,36 @@
1
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";
2
+ import { useTranslation as D } from "react-i18next";
3
+ import { Link as E } from "react-router-dom";
4
+ import { Delete03Icon as x, UserAdd02Icon as A, HelpCircleIcon as L, Wifi01Icon as M, WifiDisconnected04Icon as U } from "@hugeicons/core-free-icons";
5
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";
6
+ import { Stack as d, Menu as r, Tooltip as l, Box as C, ActionIcon as F } from "@mantine/core";
7
+ import { IconUserCircle as R } from "@tabler/icons-react";
8
+ import { usePlatform as k } from "../../../../hooks/usePlatform.js";
9
+ import { useTrashModalStore as z, openTrashModal as j, closeTrashModal as G } from "../../../../store/trashModal.js";
10
+ import { useAppContainerDataStore as H } from "../../hooks/useAppContainerDataStore.js";
11
11
  import { AppSidebarButton as c } from "../AppSidebarButton.js";
12
- import { HelpMenu as H } from "../menus/HelpMenu/HelpMenu.js";
13
- import { MenuUserDropdown as K } from "../menus/UserMenu/MenuUserDropdown.js";
14
- const io = ({
15
- trashMenu: C,
16
- onInviteClick: h
12
+ import { HelpMenu as K } from "../menus/HelpMenu/HelpMenu.js";
13
+ import { MenuUserDropdown as Y } from "../menus/UserMenu/MenuUserDropdown.js";
14
+ const no = ({
15
+ trashMenu: h,
16
+ onInviteClick: m,
17
+ showBorders: T = !0
17
18
  }) => {
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
+ const { t: i } = D("appContainer"), f = k(), {
20
+ user: g,
21
+ isAnonym: p,
22
+ userMenuItems: v,
23
+ publicMode: S,
24
+ navbarDisplayFormat: N,
25
+ onSyncClick: u,
26
+ syncState: w
27
+ } = H(), O = z((e) => e.opened), y = !p && !S && g.role !== "mG" && h, b = !p && f.has("inviteUsers") && m, n = N === "iconsAndLabels";
19
28
  return /* @__PURE__ */ t(
20
29
  d,
21
30
  {
22
- style: { borderTop: "1px solid var(--app-shell-border)" },
31
+ style: {
32
+ borderTop: T ? "1px solid var(--app-shell-border)" : void 0
33
+ },
23
34
  flex: 1,
24
35
  pt: 8,
25
36
  gap: 16,
@@ -28,19 +39,19 @@ const io = ({
28
39
  /* @__PURE__ */ t(
29
40
  d,
30
41
  {
31
- justify: !u && !y ? "end" : "space-between",
42
+ justify: !y && !b ? "end" : "space-between",
32
43
  gap: 8,
33
44
  flex: 1,
34
45
  children: [
35
- u && /* @__PURE__ */ t(
46
+ y && /* @__PURE__ */ t(
36
47
  r,
37
48
  {
38
49
  position: "right",
39
50
  offset: 6,
40
51
  width: 360,
41
- opened: w,
52
+ opened: O,
42
53
  onChange: (e) => {
43
- e ? z() : j();
54
+ e ? j() : G();
44
55
  },
45
56
  children: [
46
57
  /* @__PURE__ */ o(r.Target, { children: /* @__PURE__ */ o(
@@ -53,22 +64,22 @@ const io = ({
53
64
  c,
54
65
  {
55
66
  title: n ? i("trash") : null,
56
- icon: /* @__PURE__ */ o(s, { icon: E, size: 20 })
67
+ icon: /* @__PURE__ */ o(s, { icon: x, size: 20 })
57
68
  }
58
69
  )
59
70
  }
60
71
  ) }),
61
- /* @__PURE__ */ o(r.Dropdown, { children: C })
72
+ /* @__PURE__ */ o(r.Dropdown, { children: h })
62
73
  ]
63
74
  }
64
75
  ),
65
76
  /* @__PURE__ */ t(d, { gap: 8, children: [
66
- y && /* @__PURE__ */ o(l, { label: i("invite"), position: "right", disabled: n, children: /* @__PURE__ */ o(
77
+ b && /* @__PURE__ */ o(l, { label: i("invite"), position: "right", disabled: n, children: /* @__PURE__ */ o(
67
78
  c,
68
79
  {
69
80
  title: n ? i("invite") : null,
70
- icon: /* @__PURE__ */ o(s, { icon: x, size: 20 }),
71
- onClick: h
81
+ icon: /* @__PURE__ */ o(s, { icon: A, size: 20 }),
82
+ onClick: m
72
83
  }
73
84
  ) }),
74
85
  /* @__PURE__ */ t(r, { position: "right-end", offset: 6, width: 260, children: [
@@ -76,28 +87,28 @@ const io = ({
76
87
  c,
77
88
  {
78
89
  title: n ? i("help") : null,
79
- icon: /* @__PURE__ */ o(s, { icon: A, size: 20 })
90
+ icon: /* @__PURE__ */ o(s, { icon: L, size: 20 })
80
91
  }
81
92
  ) }) }),
82
- /* @__PURE__ */ o(r.Dropdown, { children: /* @__PURE__ */ o(H, {}) })
93
+ /* @__PURE__ */ o(r.Dropdown, { children: /* @__PURE__ */ o(K, {}) })
83
94
  ] }),
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)";
95
+ f.isDesktop && u && (() => {
96
+ const e = (w || "").toUpperCase(), a = e === "SYNCED" || e === "OK", I = 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
97
  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
98
  c,
88
99
  {
89
100
  title: "Sync",
90
- icon: /* @__PURE__ */ t(I, { pos: "relative", display: "inline-flex", children: [
101
+ icon: /* @__PURE__ */ t(C, { pos: "relative", display: "inline-flex", children: [
91
102
  /* @__PURE__ */ o(
92
103
  s,
93
104
  {
94
- icon: a ? M : L,
105
+ icon: a ? M : U,
95
106
  size: 20,
96
- color: b
107
+ color: I
97
108
  }
98
109
  ),
99
110
  /* @__PURE__ */ o(
100
- I,
111
+ C,
101
112
  {
102
113
  pos: "absolute",
103
114
  bottom: -2,
@@ -107,12 +118,12 @@ const io = ({
107
118
  style: {
108
119
  borderRadius: "50%",
109
120
  border: "2px solid var(--app-shell-bg)",
110
- backgroundColor: b
121
+ backgroundColor: I
111
122
  }
112
123
  }
113
124
  )
114
125
  ] }),
115
- onClick: g
126
+ onClick: u
116
127
  }
117
128
  ) });
118
129
  })()
@@ -120,11 +131,11 @@ const io = ({
120
131
  ]
121
132
  }
122
133
  ),
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,
134
+ p ? /* @__PURE__ */ o(E, { to: "/login", children: /* @__PURE__ */ o(l, { label: "Log in", position: "right", children: /* @__PURE__ */ o(F, { size: "lg", variant: "light", children: /* @__PURE__ */ o(R, { size: 20 }) }) }) }) : /* @__PURE__ */ o(
135
+ Y,
125
136
  {
126
- user: f,
127
- menuItems: T,
137
+ user: g,
138
+ menuItems: v,
128
139
  position: "right-end"
129
140
  }
130
141
  )
@@ -133,5 +144,5 @@ const io = ({
133
144
  );
134
145
  };
135
146
  export {
136
- io as UserSection
147
+ no as UserSection
137
148
  };
@@ -1,16 +1,16 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
2
  import { appContainerStore as n } from "../hooks/useAppContainerStore.js";
3
3
  import s from "../AppContainer.module.css.js";
4
- const p = ({ children: o, withBg: r = !1 }) => {
5
- const a = n.useStore((t) => t.showToolbar);
4
+ const p = ({ children: o, withBg: a = !1 }) => {
5
+ const r = n.useStore((t) => t.showToolbar);
6
6
  return /* @__PURE__ */ e(
7
7
  "main",
8
8
  {
9
9
  className: s.main,
10
- "data-tool-sidebar-opened": a,
10
+ "data-tool-sidebar-opened": r,
11
11
  "data-app-container": !0,
12
12
  style: {
13
- backgroundColor: r ? "light-dark(var(--mantine-color-gray-1), var(--mantine-color-dark-5))" : "unset"
13
+ backgroundColor: a ? "light-dark(var(--mantine-color-gray-1), var(--mantine-color-dark-5))" : "unset"
14
14
  },
15
15
  children: o
16
16
  }
@@ -3,13 +3,13 @@ import { useIsFirstRender as a } from "@mantine/hooks";
3
3
  import { AnimatePresence as m, motion as d } from "framer-motion";
4
4
  import t from "../AppContainer.module.css.js";
5
5
  const u = ({
6
- children: n,
7
- show: s,
6
+ children: s,
7
+ show: n,
8
8
  width: e,
9
9
  position: r
10
10
  }) => {
11
11
  const o = a();
12
- return /* @__PURE__ */ i(m, { children: s && /* @__PURE__ */ i(
12
+ return /* @__PURE__ */ i(m, { children: n && /* @__PURE__ */ i(
13
13
  d.div,
14
14
  {
15
15
  className: t.slideContainer,
@@ -32,7 +32,7 @@ const u = ({
32
32
  className: t.slideContent,
33
33
  style: { width: e },
34
34
  "data-position": r,
35
- children: n
35
+ children: s
36
36
  }
37
37
  )
38
38
  }
@@ -2,6 +2,8 @@ import { PropsWithChildren } from 'react';
2
2
  interface ToolSidebarProps extends PropsWithChildren {
3
3
  navbarTitle?: string;
4
4
  onTitleChange?: (title?: string) => void;
5
+ isBeta?: boolean;
6
+ bottomSlot?: React.ReactNode;
5
7
  }
6
8
  export declare const ToolSidebar: (props: ToolSidebarProps) => import("react/jsx-runtime").JSX.Element;
7
9
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"ToolSidebar.d.ts","sourceRoot":"","sources":["../../../../src/components/AppContainer/components/ToolSidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAA8B,MAAM,OAAO,CAAC;AAsBtE,UAAU,gBAAiB,SAAQ,iBAAiB;IAClD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC1C;AAED,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB,4CA4HlD,CAAC"}
1
+ {"version":3,"file":"ToolSidebar.d.ts","sourceRoot":"","sources":["../../../../src/components/AppContainer/components/ToolSidebar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAA8B,MAAM,OAAO,CAAC;AAsBtE,UAAU,gBAAiB,SAAQ,iBAAiB;IAClD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B;AAED,eAAO,MAAM,WAAW,GAAI,OAAO,gBAAgB,4CA2IlD,CAAC"}
@@ -1,49 +1,49 @@
1
- import { jsx as t, jsxs as r } from "react/jsx-runtime";
2
- import { useRef as b, useEffect as m, useMemo as S } from "react";
3
- import { useTranslation as y } from "react-i18next";
4
- import { useNavigate as C, useParams as W, useLocation as I, matchPath as z } from "react-router-dom";
5
- import { ActionIcon as A, Title as L, TextInput as N, Text as k } from "@mantine/core";
6
- import { useField as B } from "@mantine/form";
7
- import { IconArrowLeft as H } from "@tabler/icons-react";
8
- import { AppShell as c } from "../../AppShell/AppShell.js";
9
- import { NavbarResizer as P } from "../../NavbarResizer/NavbarResizer.js";
10
- import { useAppContainerDataStore as R } from "../hooks/useAppContainerDataStore.js";
11
- import { appContainerStore as d } from "../hooks/useAppContainerStore.js";
12
- import { SidebarToggleButton as V } from "./SidebarToggleButton.js";
13
- import { SlideAnimation as j } from "./SlideAnimation.js";
14
- import f from "../AppContainer.module.css.js";
15
- const _ = (u) => {
16
- const { t: g } = y("appContainer"), { children: T, navbarTitle: o, onTitleChange: i } = u, w = C(), { showToolbar: a, toolbarWidth: x } = d.useStore(), { formId: v } = W(), l = b(i);
17
- m(() => {
18
- l.current = i;
1
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
2
+ import { useRef as y, useEffect as c, useMemo as C } from "react";
3
+ import { useTranslation as W } from "react-i18next";
4
+ import { useNavigate as z, useParams as I, useLocation as A, matchPath as B } from "react-router-dom";
5
+ import { ActionIcon as L, Title as N, TextInput as k, Flex as F, Text as H, Badge as P } from "@mantine/core";
6
+ import { useField as R } from "@mantine/form";
7
+ import { IconArrowLeft as V } from "@tabler/icons-react";
8
+ import { AppShell as d } from "../../AppShell/AppShell.js";
9
+ import { NavbarResizer as j } from "../../NavbarResizer/NavbarResizer.js";
10
+ import { useAppContainerDataStore as D } from "../hooks/useAppContainerDataStore.js";
11
+ import { appContainerStore as f } from "../hooks/useAppContainerStore.js";
12
+ import { SidebarToggleButton as E } from "./SidebarToggleButton.js";
13
+ import { SlideAnimation as M } from "./SlideAnimation.js";
14
+ import u from "../AppContainer.module.css.js";
15
+ const ot = (g) => {
16
+ const { t: a } = W("appContainer"), { children: x, navbarTitle: o, onTitleChange: i, isBeta: T, bottomSlot: w } = g, b = z(), { showToolbar: l, toolbarWidth: v } = f.useStore(), { formId: S } = I(), s = y(i);
17
+ c(() => {
18
+ s.current = i;
19
19
  }, [i]);
20
- const s = B({
20
+ const p = R({
21
21
  initialValue: o || "",
22
22
  onValueChange: (e) => {
23
- l.current?.(e);
23
+ s.current?.(e);
24
24
  }
25
25
  });
26
- m(() => {
27
- s.setValue(o || "");
26
+ c(() => {
27
+ p.setValue(o || "");
28
28
  }, [o]);
29
- const p = I(), h = R((e) => e.tools), n = S(() => h.find((e) => !!z({ path: e.path, end: !1 }, p.pathname)), [p.pathname, h]);
29
+ const h = A(), m = D((e) => e.tools), r = C(() => m.find((e) => !!B({ path: e.path, end: !1 }, h.pathname)), [h.pathname, m]);
30
30
  return /* @__PURE__ */ t(
31
- j,
31
+ M,
32
32
  {
33
- show: a,
33
+ show: l,
34
34
  width: "var(--toolbar-width)",
35
35
  position: "left",
36
- children: /* @__PURE__ */ r(c.LeftSidebar, { pos: "relative", children: [
37
- a && /* @__PURE__ */ t(
38
- P,
36
+ children: /* @__PURE__ */ n(d.LeftSidebar, { pos: "relative", children: [
37
+ l && /* @__PURE__ */ t(
38
+ j,
39
39
  {
40
40
  position: "left",
41
- width: x,
42
- onChange: d.api.setToolbarWidth
41
+ width: v,
42
+ onChange: f.api.setToolbarWidth
43
43
  }
44
44
  ),
45
- /* @__PURE__ */ r(c.Header, { pl: 16, pr: 14, children: [
46
- /* @__PURE__ */ r(
45
+ /* @__PURE__ */ n(d.Header, { pl: 16, pr: 14, children: [
46
+ /* @__PURE__ */ n(
47
47
  "div",
48
48
  {
49
49
  style: {
@@ -54,33 +54,33 @@ const _ = (u) => {
54
54
  minWidth: 0
55
55
  },
56
56
  children: [
57
- n?.withBackButton && v && n.name && /* @__PURE__ */ t(
58
- A,
57
+ r?.withBackButton && S && r.name && /* @__PURE__ */ t(
58
+ L,
59
59
  {
60
- onClick: () => w(n?.path),
60
+ onClick: () => b(r?.path),
61
61
  variant: "light",
62
62
  size: "md",
63
63
  color: "gray",
64
- children: /* @__PURE__ */ t(H, { size: 18 })
64
+ children: /* @__PURE__ */ t(V, { size: 18 })
65
65
  }
66
66
  ),
67
67
  /* @__PURE__ */ t(
68
- L,
68
+ N,
69
69
  {
70
70
  order: 4,
71
71
  fz: 16,
72
72
  component: "div",
73
73
  style: { flex: 1, minWidth: 0 },
74
74
  children: i ? /* @__PURE__ */ t(
75
- N,
75
+ k,
76
76
  {
77
- ...s.getInputProps(),
78
- placeholder: g("noName"),
77
+ ...p.getInputProps(),
78
+ placeholder: a("noName"),
79
79
  maxLength: 50,
80
80
  minLength: 1,
81
81
  unstyled: !0,
82
82
  classNames: {
83
- input: f.toolTitleInput
83
+ input: u.toolTitleInput
84
84
  },
85
85
  styles: {
86
86
  root: {
@@ -98,34 +98,49 @@ const _ = (u) => {
98
98
  }
99
99
  }
100
100
  }
101
- ) : /* @__PURE__ */ t(
102
- k,
103
- {
104
- component: "span",
105
- className: f.toolTitleText,
106
- truncate: "end",
107
- style: {
108
- fontSize: "inherit",
109
- fontWeight: "inherit",
110
- lineHeight: "inherit",
111
- display: "block",
112
- width: "100%"
113
- },
114
- children: o
115
- }
116
- )
101
+ ) : /* @__PURE__ */ n(F, { gap: "xs", children: [
102
+ /* @__PURE__ */ t(
103
+ H,
104
+ {
105
+ component: "span",
106
+ className: u.toolTitleText,
107
+ truncate: "end",
108
+ style: {
109
+ fontSize: "inherit",
110
+ fontWeight: "inherit",
111
+ lineHeight: "inherit",
112
+ display: "block"
113
+ // width: '100%',
114
+ },
115
+ children: o
116
+ }
117
+ ),
118
+ T && /* @__PURE__ */ t(
119
+ P,
120
+ {
121
+ px: 8,
122
+ py: 4,
123
+ fz: "xs",
124
+ fw: 600,
125
+ variant: "light",
126
+ color: "yellow",
127
+ children: a("beta")
128
+ }
129
+ )
130
+ ] })
117
131
  }
118
132
  )
119
133
  ]
120
134
  }
121
135
  ),
122
- /* @__PURE__ */ t(V, {})
136
+ /* @__PURE__ */ t(E, {})
123
137
  ] }),
124
- T
138
+ x,
139
+ w
125
140
  ] })
126
141
  }
127
142
  );
128
143
  };
129
144
  export {
130
- _ as ToolSidebar
145
+ ot as ToolSidebar
131
146
  };
@@ -27,7 +27,12 @@ export type AppContainerProps = {
27
27
  trashMenu?: ReactNode;
28
28
  onInviteClick?: () => void;
29
29
  withBg?: boolean;
30
+ isBeta?: boolean;
30
31
  hideHeader?: boolean;
32
+ showSearch?: boolean;
33
+ showMore?: boolean;
34
+ showBorders?: boolean;
35
+ showLogo?: boolean;
31
36
  };
32
37
  export type AppContainerDataStore = {
33
38
  tools: ToolDef[];
@@ -1 +1 @@
1
- {"version":3,"file":"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SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;CACjE,CAAC;AAEF,KAAK,wBAAwB,GAAG;IAC9B,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,CAAC,CAAC;CACX,CAAC;AAEF,MAAM,MAAM,wBAAwB,GAAG;IACrC,qBAAqB,EAAE,CAAC,IAAI,EAAE,wBAAwB,KAAK,IAAI,CAAC;CACjE,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG,aAAa,GAAG,SAAS,GAAG,SAAS,CAAC;AAEvE,MAAM,MAAM,iBAAiB,GAAG;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,MAAM,EAAE,kBAAkB,CAAC;IAC3B,YAAY,EAAE,OAAO,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC"}
@@ -3,6 +3,7 @@ import { ColorPickerList } from './ColorPickerList';
3
3
  import type { ColorItem } from './types';
4
4
  interface ColorCircleProps extends Omit<ColorSwatchProps, 'color'>, Omit<React.ComponentPropsWithoutRef<'div'>, keyof Omit<ColorSwatchProps, 'color'>> {
5
5
  value?: string | null;
6
+ label?: string;
6
7
  isActive?: boolean;
7
8
  swatchShape?: 'circle' | 'square';
8
9
  swatchVariant?: 'filled' | 'outline';
@@ -1 +1 @@
1
- {"version":3,"file":"ColorPicker.d.ts","sourceRoot":"","sources":["../../../src/components/ColorPicker/ColorPicker.tsx"],"names":[],"mappings":"AAIA,OAAO,EAIL,gBAAgB,EAEhB,SAAS,EAKV,MAAM,eAAe,CAAC;AAMvB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAgHzC,UAAU,gBACR,SA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