@layers-app/shared 0.3.0 → 0.3.2

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 (142) hide show
  1. package/dist/assets/default-workspace-avatar.jpg.js +4 -0
  2. package/dist/assets/layers-logo-full.svg.js +2 -3
  3. package/dist/assets/layers-logo-full.svg2.js +3 -2
  4. package/dist/assets/layers-logo-icon.svg.js +2 -3
  5. package/dist/assets/layers-logo-icon.svg2.js +3 -2
  6. package/dist/assets/projects/figureA.svg.js +4 -0
  7. package/dist/assets/projects/figureB.svg.js +4 -0
  8. package/dist/assets/qwebchannel.d.ts +15 -0
  9. package/dist/assets/qwebchannel.d.ts.map +1 -0
  10. package/dist/assets/taskPriorities/high.svg.js +5 -0
  11. package/dist/assets/taskPriorities/low.svg.js +5 -0
  12. package/dist/assets/taskPriorities/none.svg.js +5 -0
  13. package/dist/assets/taskPriorities/normal.svg.js +5 -0
  14. package/dist/assets/taskPriorities/urgent.svg.js +5 -0
  15. package/dist/components/AnimatedFigurePage/AnimatedFigurePage.d.ts +3 -0
  16. package/dist/components/AnimatedFigurePage/AnimatedFigurePage.d.ts.map +1 -0
  17. package/dist/components/AnimatedFigurePage/AnimatedFigurePage.js +69 -0
  18. package/dist/components/AnimatedFigurePage/AnimatedFigurePage.module.css.js +27 -0
  19. package/dist/components/AnimatedFigurePage/types.d.ts +15 -0
  20. package/dist/components/AnimatedFigurePage/types.d.ts.map +1 -0
  21. package/dist/components/AnimatedFigurePage/useParallax.d.ts +6 -0
  22. package/dist/components/AnimatedFigurePage/useParallax.d.ts.map +1 -0
  23. package/dist/components/AnimatedFigurePage/useParallax.js +29 -0
  24. package/dist/components/AppContainer/AppContainer.d.ts +1 -1
  25. package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
  26. package/dist/components/AppContainer/AppContainer.js +37 -36
  27. package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
  28. package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +80 -45
  29. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
  30. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +60 -69
  31. package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
  32. package/dist/components/AppContainer/hooks/useAppContainer.d.ts.map +1 -1
  33. package/dist/components/AppContainer/hooks/useAppContainer.js +57 -51
  34. package/dist/components/AppContainer/hooks/useAppContainerDataStore.d.ts.map +1 -1
  35. package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +3 -1
  36. package/dist/components/AppContainer/types.d.ts +3 -0
  37. package/dist/components/AppContainer/types.d.ts.map +1 -1
  38. package/dist/components/ColorPicker/ColorPicker.d.ts +9 -1
  39. package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
  40. package/dist/components/ColorPicker/ColorPicker.js +88 -74
  41. package/dist/components/ColorPicker/ColorPicker.module.css.js +31 -0
  42. package/dist/components/ColorPicker/ColorPickerList.d.ts +6 -0
  43. package/dist/components/ColorPicker/ColorPickerList.d.ts.map +1 -0
  44. package/dist/components/ColorPicker/ColorPickerList.js +134 -0
  45. package/dist/components/ColorPicker/ColorPickerPopover.d.ts +6 -6
  46. package/dist/components/ColorPicker/ColorPickerPopover.d.ts.map +1 -1
  47. package/dist/components/ColorPicker/ColorPickerPopover.js +29 -31
  48. package/dist/components/ColorPicker/ColorPickerToolbar.d.ts +13 -0
  49. package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -0
  50. package/dist/components/ColorPicker/ColorPickerToolbar.js +132 -0
  51. package/dist/components/ColorPicker/icons.d.ts +11 -0
  52. package/dist/components/ColorPicker/icons.d.ts.map +1 -0
  53. package/dist/components/ColorPicker/icons.js +71 -0
  54. package/dist/components/ColorPicker/types.d.ts +49 -0
  55. package/dist/components/ColorPicker/types.d.ts.map +1 -0
  56. package/dist/components/ColorPicker/types.js +10 -0
  57. package/dist/components/ColorPicker/useRecentColors.d.ts +13 -0
  58. package/dist/components/ColorPicker/useRecentColors.d.ts.map +1 -0
  59. package/dist/components/ColorPicker/useRecentColors.js +39 -0
  60. package/dist/components/CommentComposer/index.d.ts.map +1 -1
  61. package/dist/components/CommentComposer/index.js +115 -111
  62. package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
  63. package/dist/components/EmojiPicker/EmojiPanel.js +12 -10
  64. package/dist/components/EmojiPicker/EmojiPicker.d.ts +3 -1
  65. package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
  66. package/dist/components/EmojiPicker/EmojiPicker.js +49 -46
  67. package/dist/components/EmojiPicker/IconsPanel.d.ts +2 -1
  68. package/dist/components/EmojiPicker/IconsPanel.d.ts.map +1 -1
  69. package/dist/components/EmojiPicker/IconsPanel.js +47 -45
  70. package/dist/components/EmojiPicker/custom-icons/customIcons.d.ts.map +1 -1
  71. package/dist/components/EmojiPicker/custom-icons/customIcons.js +66 -31
  72. package/dist/components/EntityIcon.d.ts +3 -3
  73. package/dist/components/EntityIcon.d.ts.map +1 -1
  74. package/dist/components/EntityIcon.js +59 -35
  75. package/dist/components/EntityTitle/EntityTitle.d.ts +1 -1
  76. package/dist/components/EntityTitle/EntityTitle.d.ts.map +1 -1
  77. package/dist/components/EntityTitle/EntityTitle.js +34 -34
  78. package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
  79. package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
  80. package/dist/components/FilePicker/FilePicker.js +111 -123
  81. package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
  82. package/dist/components/FilePicker/FilePickerUpload.js +41 -39
  83. package/dist/components/FormViewer/components/fields/UploadField/UploadField.d.ts.map +1 -1
  84. package/dist/components/FormViewer/components/fields/UploadField/UploadField.js +34 -33
  85. package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts +3 -3
  86. package/dist/components/Logotype.d.ts +2 -1
  87. package/dist/components/Logotype.d.ts.map +1 -1
  88. package/dist/components/Logotype.js +58 -49
  89. package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
  90. package/dist/components/NavMenu/components/NavMenuItem.js +122 -107
  91. package/dist/components/NavMenu/types.d.ts +1 -0
  92. package/dist/components/NavMenu/types.d.ts.map +1 -1
  93. package/dist/components/ProjectIcon/ProjectIcon.js +13 -13
  94. package/dist/components/TreeIndent/TreeIndent.d.ts +9 -0
  95. package/dist/components/TreeIndent/TreeIndent.d.ts.map +1 -0
  96. package/dist/components/TreeIndent/TreeIndent.js +15 -0
  97. package/dist/components/TreeIndent/TreeIndent.module.css.js +11 -0
  98. package/dist/components/TreeIndent/index.d.ts +2 -0
  99. package/dist/components/TreeIndent/index.d.ts.map +1 -0
  100. package/dist/components/WorkspaceAvatar/WorkspaceAvatar.js +11 -11
  101. package/dist/components/WorkspaceMenu/WorkspaceMenu.d.ts.map +1 -1
  102. package/dist/components/WorkspaceMenu/WorkspaceMenu.js +97 -101
  103. package/dist/components/modals/RemoveConfirmModal.d.ts.map +1 -1
  104. package/dist/config/brand.d.ts +1 -0
  105. package/dist/config/brand.d.ts.map +1 -1
  106. package/dist/config/brand.js +42 -34
  107. package/dist/config/envConfig.d.ts +40 -0
  108. package/dist/config/envConfig.d.ts.map +1 -1
  109. package/dist/config/envConfig.js +29 -10
  110. package/dist/constants.d.ts.map +1 -1
  111. package/dist/constants.js +15 -4
  112. package/dist/helpers/getFileIcons.d.ts.map +1 -1
  113. package/dist/helpers/getFileIcons.js +34 -29
  114. package/dist/helpers/getFileType.d.ts +1 -1
  115. package/dist/helpers/getFileType.d.ts.map +1 -1
  116. package/dist/helpers/getFileType.js +3 -3
  117. package/dist/helpers/hotjar.d.ts.map +1 -1
  118. package/dist/helpers/hotjar.js +11 -7
  119. package/dist/helpers/platform.js +4 -4
  120. package/dist/helpers/showNotifications.d.ts +3 -0
  121. package/dist/helpers/showNotifications.d.ts.map +1 -1
  122. package/dist/helpers/showNotifications.js +79 -44
  123. package/dist/hooks/useDateFnsLocale.d.ts +2 -0
  124. package/dist/hooks/useDateFnsLocale.d.ts.map +1 -1
  125. package/dist/hooks/useDateFnsLocale.js +9 -8
  126. package/dist/hooks/useDateUtils.d.ts.map +1 -1
  127. package/dist/hooks/useDateUtils.js +19 -19
  128. package/dist/hooks/useFormatDistance.d.ts.map +1 -1
  129. package/dist/hooks/useFormatDistance.js +6 -6
  130. package/dist/hooks/useNumberQueryParam.d.ts +1 -1
  131. package/dist/hooks/useNumberQueryParam.d.ts.map +1 -1
  132. package/dist/index.css +1 -1
  133. package/dist/index.d.ts +8 -0
  134. package/dist/index.d.ts.map +1 -1
  135. package/dist/index.js +516 -494
  136. package/dist/lang/locales/ui_en.json.js +7 -7
  137. package/dist/lang/locales/ui_es.json.js +1 -1
  138. package/dist/lang/locales/ui_ru.json.js +11 -11
  139. package/dist/utils/formatStorage.d.ts +9 -0
  140. package/dist/utils/formatStorage.d.ts.map +1 -1
  141. package/dist/utils/formatStorage.js +14 -10
  142. package/package.json +1 -1
@@ -1,31 +1,32 @@
1
1
  import { jsxs as j, jsx as o } from "react/jsx-runtime";
2
- import { useState as d, useMemo as Q, useEffect as v } from "react";
3
- import { useTranslation as $ } from "react-i18next";
4
- import { Popover as k, Center as A, Tabs as s, Flex as T, Button as E } from "@mantine/core";
5
- import { IconEntity as G } from "../ProjectIcon/ProjectIcon.js";
6
- import { EmojiPanel as J } from "./EmojiPanel.js";
7
- import { IconsPanel as K } from "./IconsPanel.js";
2
+ import { useState as d, useMemo as $, useEffect as v } from "react";
3
+ import { useTranslation as A } from "react-i18next";
4
+ import { Popover as k, Center as E, Tabs as t, Flex as T, Button as G } from "@mantine/core";
5
+ import { IconEntity as J } from "../ProjectIcon/ProjectIcon.js";
6
+ import { EmojiPanel as K } from "./EmojiPanel.js";
7
+ import { IconsPanel as U } from "./IconsPanel.js";
8
8
  import f from "./EmojiPicker.module.css.js";
9
- const _ = ({
9
+ const ee = ({
10
10
  project: C,
11
11
  value: i,
12
- querySearch: a,
12
+ querySearch: l,
13
13
  children: N,
14
14
  onChange: p,
15
15
  position: R = "bottom-start",
16
- popoverProps: b,
16
+ popoverProps: P,
17
17
  showIcons: u,
18
18
  showColors: D,
19
19
  defaultActiveTab: I = null,
20
- showEmojis: t = !0,
20
+ showEmojis: s = !0,
21
21
  withinPortal: w = !1,
22
22
  locales: h,
23
23
  openWhen: g = "click",
24
- triggerRegex: P = /(^|\s):([^\s:]{1,})$/,
24
+ triggerRegex: b = /(^|\s):([^\s:]{1,})$/,
25
25
  typingSeq: c,
26
- showRemoveButton: L = !0
26
+ showRemoveButton: L = !0,
27
+ keepOpenOnRandom: M = !1
27
28
  }) => {
28
- const { t: e } = $("ui"), [n, r] = d(!1), [M, y] = d(I), [O, z] = d(i || null), [x, B] = d(null), l = Q(() => ({
29
+ const { t: e } = A("ui"), [n, r] = d(!1), [O, y] = d(I), [z, B] = d(i || null), [x, F] = d(null), a = $(() => ({
29
30
  emojis: e("emojis"),
30
31
  remove: e("remove"),
31
32
  search: e("search"),
@@ -43,27 +44,28 @@ const _ = ({
43
44
  objects: e("emojiPicker.categories.objects"),
44
45
  symbols: e("emojiPicker.categories.symbols"),
45
46
  flags: e("emojiPicker.categories.flags"),
47
+ additional: e("emojiPicker.categories.additional"),
46
48
  ...h?.emojiCategory
47
49
  },
48
50
  ...h
49
51
  }), [e, h]);
50
52
  v(() => {
51
- const m = u && G.parse(i)?.icon ? "icons" : t ? "emojis" : null;
53
+ const m = u && J.parse(i)?.icon ? "icons" : s ? "emojis" : null;
52
54
  !n && m && y(m);
53
- }, [n, t, u, i]), v(() => {
55
+ }, [n, s, u, i]), v(() => {
54
56
  if (g !== "realtime" || typeof c != "number" || x === c) return;
55
- B(c);
56
- const m = a ?? "", H = !!t && P.test(m);
57
- r(H);
57
+ F(c);
58
+ const m = l ?? "", Q = !!s && b.test(m);
59
+ r(Q);
58
60
  }, [
59
61
  g,
60
62
  c,
61
63
  x,
62
- a,
63
- P,
64
- t
64
+ l,
65
+ b,
66
+ s
65
67
  ]);
66
- const F = typeof a == "string";
68
+ const H = typeof l == "string";
67
69
  return /* @__PURE__ */ j(
68
70
  k,
69
71
  {
@@ -93,19 +95,19 @@ const _ = ({
93
95
  ]
94
96
  }
95
97
  },
96
- ...b || {},
98
+ ...P || {},
97
99
  children: [
98
100
  /* @__PURE__ */ o(k.Target, { children: /* @__PURE__ */ o(
99
- A,
101
+ E,
100
102
  {
101
- onClick: g === "click" && !b?.disabled ? () => r(!n) : void 0,
102
- children: N ?? O
103
+ onClick: g === "click" && !P?.disabled ? () => r(!n) : void 0,
104
+ children: N ?? z
103
105
  }
104
106
  ) }),
105
107
  /* @__PURE__ */ o(k.Dropdown, { w: "380px", children: /* @__PURE__ */ j(
106
- s,
108
+ t,
107
109
  {
108
- value: M,
110
+ value: O,
109
111
  onChange: y,
110
112
  keepMounted: !1,
111
113
  h: "100%",
@@ -123,8 +125,8 @@ const _ = ({
123
125
  }
124
126
  },
125
127
  children: [
126
- !F && /* @__PURE__ */ j(
127
- s.List,
128
+ !H && /* @__PURE__ */ j(
129
+ t.List,
128
130
  {
129
131
  style: {
130
132
  gap: "4px"
@@ -132,28 +134,28 @@ const _ = ({
132
134
  h: 54,
133
135
  px: 8,
134
136
  children: [
135
- t && /* @__PURE__ */ o(
136
- s.Tab,
137
+ s && /* @__PURE__ */ o(
138
+ t.Tab,
137
139
  {
138
140
  className: f.originalTab,
139
141
  h: "100%",
140
142
  p: 0,
141
143
  value: "emojis",
142
- children: /* @__PURE__ */ o(T, { className: f.customTab, px: "sm", h: 36, children: l.emojis })
144
+ children: /* @__PURE__ */ o(T, { className: f.customTab, px: "sm", h: 36, children: a.emojis })
143
145
  }
144
146
  ),
145
147
  u && /* @__PURE__ */ o(
146
- s.Tab,
148
+ t.Tab,
147
149
  {
148
150
  className: f.originalTab,
149
151
  h: "100%",
150
152
  p: 0,
151
153
  value: "icons",
152
- children: /* @__PURE__ */ o(T, { className: f.customTab, px: "sm", h: 36, children: l.icons })
154
+ children: /* @__PURE__ */ o(T, { className: f.customTab, px: "sm", h: 36, children: a.icons })
153
155
  }
154
156
  ),
155
157
  !!String(i) && L && /* @__PURE__ */ o(
156
- E,
158
+ G,
157
159
  {
158
160
  variant: "subtle",
159
161
  fz: "sm",
@@ -164,38 +166,39 @@ const _ = ({
164
166
  color: "var(--mantine-color-gray-light-color)",
165
167
  onClick: () => p?.(""),
166
168
  style: { marginLeft: "auto" },
167
- children: l.remove
169
+ children: a.remove
168
170
  }
169
171
  )
170
172
  ]
171
173
  }
172
174
  ),
173
- /* @__PURE__ */ o(s.Panel, { mah: 470, style: { overflow: "auto" }, value: "emojis", children: /* @__PURE__ */ o(
174
- J,
175
+ /* @__PURE__ */ o(t.Panel, { mah: 470, style: { overflow: "auto" }, value: "emojis", children: /* @__PURE__ */ o(
176
+ K,
175
177
  {
176
178
  onChange: p,
177
179
  value: i,
178
- querySearch: a,
179
- locales: l,
180
- setRandomIcon: z,
180
+ querySearch: l,
181
+ locales: a,
182
+ setRandomIcon: B,
181
183
  onClose: () => r(!1)
182
184
  }
183
185
  ) }),
184
186
  /* @__PURE__ */ o(
185
- s.Panel,
187
+ t.Panel,
186
188
  {
187
189
  mah: 470,
188
190
  h: "100%",
189
191
  style: { overflow: "auto" },
190
192
  value: "icons",
191
193
  children: /* @__PURE__ */ o(
192
- K,
194
+ U,
193
195
  {
194
196
  project: C,
195
197
  onChange: p,
196
198
  value: i,
197
- locales: l,
199
+ locales: a,
198
200
  showColors: D,
201
+ keepOpenOnRandom: M,
199
202
  onClose: () => r(!1)
200
203
  }
201
204
  )
@@ -209,5 +212,5 @@ const _ = ({
209
212
  );
210
213
  };
211
214
  export {
212
- _ as EmojiPicker
215
+ ee as EmojiPicker
213
216
  };
@@ -1,5 +1,6 @@
1
1
  import { EmojiPickerProps } from './EmojiPicker';
2
- export declare const IconsPanel: import("react").MemoExoticComponent<({ showColors, locales, onChange, value, onClose, project, }: Pick<EmojiPickerProps, "locales" | "showColors" | "value" | "onChange" | "project"> & {
2
+ export declare const IconsPanel: import("react").MemoExoticComponent<({ showColors, locales, onChange, value, onClose, project, keepOpenOnRandom, }: Pick<EmojiPickerProps, "locales" | "showColors" | "value" | "onChange" | "project"> & {
3
3
  onClose: () => void;
4
+ keepOpenOnRandom?: boolean;
4
5
  }) => import("react/jsx-runtime").JSX.Element>;
5
6
  //# sourceMappingURL=IconsPanel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"IconsPanel.d.ts","sourceRoot":"","sources":["../../../src/components/EmojiPicker/IconsPanel.tsx"],"names":[],"mappings":"AAoCA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AA0BjD,eAAO,MAAM,UAAU,oGAQlB,IAAI,CACL,gBAAgB,EAChB,SAAS,GAAG,YAAY,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,CAC5D,GAAG;IACF,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB,6CAuSF,CAAC"}
1
+ {"version":3,"file":"IconsPanel.d.ts","sourceRoot":"","sources":["../../../src/components/EmojiPicker/IconsPanel.tsx"],"names":[],"mappings":"AAoCA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AA0BjD,eAAO,MAAM,UAAU,sHASlB,IAAI,CACL,gBAAgB,EAChB,SAAS,GAAG,YAAY,GAAG,OAAO,GAAG,UAAU,GAAG,SAAS,CAC5D,GAAG;IACF,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,6CAwSF,CAAC"}
@@ -1,42 +1,43 @@
1
1
  import { jsxs as m, jsx as e } from "react/jsx-runtime";
2
- import { memo as B, useState as x, useEffect as M, useCallback as U, useMemo as V } from "react";
3
- import { useTranslation as j } from "react-i18next";
4
- import { Search01Icon as G, ShuffleIcon as Q } from "@hugeicons/core-free-icons";
2
+ import { memo as M, useState as x, useEffect as U, useCallback as V, useMemo as j } from "react";
3
+ import { useTranslation as G } from "react-i18next";
4
+ import { Search01Icon as Q, ShuffleIcon as Y } from "@hugeicons/core-free-icons";
5
5
  import { HugeiconsIcon as L } from "@hugeicons/react";
6
- import { useMantineTheme as Y, parseThemeColor as _, darken as J, Stack as y, Text as b, Flex as z, FocusTrap as K, TextInput as W, Tooltip as X, ActionIcon as Z, Box as ee, Paper as E, SimpleGrid as N } from "@mantine/core";
7
- import { useEvent as oe } from "draggable-ui";
8
- import { groupBy as te } from "lodash-es";
9
- import { DEFAULT_VALUES as re } from "../../constants.js";
10
- import { ColorPicker as ie } from "../ColorPicker/ColorPicker.js";
11
- import { NoData as ne } from "../NoData/NoData.js";
6
+ import { useMantineTheme as _, parseThemeColor as J, darken as K, Stack as y, Text as b, Flex as z, FocusTrap as W, TextInput as X, Tooltip as Z, ActionIcon as ee, Box as oe, Paper as E, SimpleGrid as N } from "@mantine/core";
7
+ import { useEvent as te } from "draggable-ui";
8
+ import { groupBy as re } from "lodash-es";
9
+ import { DEFAULT_VALUES as ie } from "../../constants.js";
10
+ import { ColorPicker as ne } from "../ColorPicker/ColorPicker.js";
11
+ import { NoData as ce } from "../NoData/NoData.js";
12
12
  import { IconEntity as I, IconType as A } from "../ProjectIcon/ProjectIcon.js";
13
13
  import { customIcons as D } from "./custom-icons/customIcons.js";
14
- import { getIconsList as F, getRandomIcon as ce } from "./utils.js";
14
+ import { getIconsList as F, getRandomIcon as ae } from "./utils.js";
15
15
  import h from "./EmojiPicker.module.css.js";
16
- async function ae(c, a, l = 500) {
16
+ async function le(c, a, l = 500) {
17
17
  const u = [], p = c.length;
18
18
  for (let r = 0; r < p; r += l) {
19
- const f = c.slice(r, r + l).filter(a);
20
- u.push(...f), await new Promise((w) => setTimeout(w, 0));
19
+ const w = c.slice(r, r + l).filter(a);
20
+ u.push(...w), await new Promise((f) => setTimeout(f, 0));
21
21
  }
22
22
  return u;
23
23
  }
24
- const be = B(
24
+ const Ce = M(
25
25
  ({
26
26
  showColors: c,
27
27
  locales: a,
28
28
  onChange: l,
29
29
  value: u,
30
30
  onClose: p,
31
- project: r
31
+ project: r,
32
+ keepOpenOnRandom: C = !1
32
33
  }) => {
33
- const C = Y(), [f, w] = x(""), { t: k } = j("ui"), [R, P] = x(
34
+ const w = _(), [f, R] = x(""), { t: k } = G("ui"), [P, $] = x(
34
35
  []
35
36
  );
36
- M(() => {
37
+ U(() => {
37
38
  (async () => {
38
- const t = await F(r), s = te(t, "c");
39
- P(
39
+ const t = await F(r), s = re(t, "c");
40
+ $(
40
41
  Object.entries(s).map((v) => ({
41
42
  id: v[0],
42
43
  icons: v[1].map((d) => d.n)
@@ -44,19 +45,19 @@ const be = B(
44
45
  );
45
46
  })();
46
47
  }, [r]);
47
- const [T, S] = x([]), $ = U(
48
+ const [T, S] = x([]), H = V(
48
49
  async (o) => {
49
50
  const t = o.currentTarget.value;
50
- w(t);
51
- const s = await F(r), v = await ae(
51
+ R(t);
52
+ const s = await F(r), v = await le(
52
53
  s,
53
- (d) => d.t.split(",").some((q) => t.includes(String(q))) || d.n.includes(t),
54
+ (d) => d.t.split(",").some((B) => t.includes(String(B))) || d.n.includes(t),
54
55
  500
55
56
  );
56
57
  S(v.map((d) => d.n));
57
58
  },
58
59
  [r]
59
- ), i = I.parse(u), g = oe((o) => {
60
+ ), i = I.parse(u), g = te((o) => {
60
61
  const t = o.currentTarget.getAttribute("data-icon");
61
62
  t && (l?.(
62
63
  I.stringify({
@@ -65,24 +66,24 @@ const be = B(
65
66
  type: i?.type || A.FILLED
66
67
  })
67
68
  ), c || p());
68
- }), n = _({
69
- color: i?.color || re.COLORS[0],
70
- theme: C
71
- }), H = V(() => n.isThemeColor ? {
69
+ }), n = J({
70
+ color: i?.color || ie.COLORS[0],
71
+ theme: w
72
+ }), O = j(() => n.isThemeColor ? {
72
73
  "--icon-color": `var(--mantine-color-${n.color}-filled)`,
73
74
  "--icon-color-hover": `var(--mantine-color-${n.color}-filled-hover)`
74
75
  } : {
75
76
  "--icon-color": n.value,
76
- "--icon-color-hover": J(n.value, 0.2)
77
- }, [n]), O = async () => {
78
- const o = await ce(r);
79
- S([]), l?.(I.stringify({ icon: o, color: i?.color })), c || p();
77
+ "--icon-color-hover": K(n.value, 0.2)
78
+ }, [n]), q = async () => {
79
+ const o = await ae(r);
80
+ S([]), l?.(I.stringify({ icon: o, color: i?.color })), !c && !C && p();
80
81
  };
81
82
  return /* @__PURE__ */ m(y, { w: "100%", gap: "sm", pt: 12, pb: 8, h: "100%", children: [
82
83
  c && /* @__PURE__ */ m(y, { gap: 4, px: 8, w: "100%", children: [
83
84
  /* @__PURE__ */ e(b, { lh: "140%", fw: 500, c: "dimmed", fz: "xs", children: a?.chooseColor || k("chooseColor") }),
84
85
  /* @__PURE__ */ e(
85
- ie,
86
+ ne,
86
87
  {
87
88
  swatchSize: 24,
88
89
  gap: 4,
@@ -111,10 +112,10 @@ const be = B(
111
112
  )
112
113
  ] }),
113
114
  /* @__PURE__ */ m(z, { w: "100%", justify: "space-between", gap: 4, px: 8, h: 38, children: [
114
- /* @__PURE__ */ e(K, { active: !0, children: /* @__PURE__ */ e(
115
- W,
115
+ /* @__PURE__ */ e(W, { active: !0, children: /* @__PURE__ */ e(
116
+ X,
116
117
  {
117
- leftSection: /* @__PURE__ */ e(L, { size: 16, icon: G }),
118
+ leftSection: /* @__PURE__ */ e(L, { size: 16, icon: Q }),
118
119
  value: f,
119
120
  placeholder: `${a?.search}...`,
120
121
  "data-autofocus": !0,
@@ -125,31 +126,31 @@ const be = B(
125
126
  }
126
127
  },
127
128
  w: 320,
128
- onChange: $,
129
+ onChange: H,
129
130
  radius: "var(--mantine-radius-default)"
130
131
  }
131
132
  ) }),
132
- /* @__PURE__ */ e(X, { withArrow: !0, label: k("random"), children: /* @__PURE__ */ e(
133
- Z,
133
+ /* @__PURE__ */ e(Z, { withArrow: !0, label: k("random"), children: /* @__PURE__ */ e(
134
+ ee,
134
135
  {
135
136
  h: 36,
136
137
  w: 36,
137
138
  variant: "outline",
138
139
  color: "var(--mantine-color-default-border)",
139
- onClick: O,
140
+ onClick: q,
140
141
  className: h.randomIcon,
141
142
  children: /* @__PURE__ */ e(
142
143
  L,
143
144
  {
144
145
  color: "var(--mantine-color-default-color)",
145
146
  size: 20,
146
- icon: Q
147
+ icon: Y
147
148
  }
148
149
  )
149
150
  }
150
151
  ) })
151
152
  ] }),
152
- /* @__PURE__ */ e(ee, { h: "100%", pl: 8, style: H, children: /* @__PURE__ */ e(
153
+ /* @__PURE__ */ e(oe, { h: "100%", pl: 8, pt: 4, style: O, children: /* @__PURE__ */ e(
153
154
  y,
154
155
  {
155
156
  mah: "210px",
@@ -199,7 +200,7 @@ const be = B(
199
200
  o
200
201
  );
201
202
  }) }) : /* @__PURE__ */ e(z, { flex: 1, justify: "center", align: "stretch", children: /* @__PURE__ */ e(
202
- ne,
203
+ ce,
203
204
  {
204
205
  size: 100,
205
206
  description: a?.searchNoResults,
@@ -208,11 +209,12 @@ const be = B(
208
209
  }
209
210
  }
210
211
  ) })
211
- ] }) : R.map((o) => /* @__PURE__ */ m("div", { children: [
212
+ ] }) : P.map((o) => /* @__PURE__ */ m("div", { children: [
212
213
  /* @__PURE__ */ e(
213
214
  E,
214
215
  {
215
216
  bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-6))",
217
+ px: 4,
216
218
  py: 6,
217
219
  pos: "sticky",
218
220
  top: -1,
@@ -263,5 +265,5 @@ const be = B(
263
265
  }
264
266
  );
265
267
  export {
266
- be as IconsPanel
268
+ Ce as IconsPanel
267
269
  };
@@ -1 +1 @@
1
- {"version":3,"file":"customIcons.d.ts","sourceRoot":"","sources":["../../../../src/components/EmojiPicker/custom-icons/customIcons.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAgBhD,KAAK,cAAc,GAAG;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,aAAa,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC;IAClD,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,cAAc,EA+E3C,CAAC;AAEF,eAAO,MAAM,WAAW;;CAEvB,CAAC"}
1
+ {"version":3,"file":"customIcons.d.ts","sourceRoot":"","sources":["../../../../src/components/EmojiPicker/custom-icons/customIcons.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAqBhD,KAAK,cAAc,GAAG;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,aAAa,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC;IAClD,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,EAAE,CAAC;CAChB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,cAAc,EA6G3C,CAAC;AAEF,eAAO,MAAM,WAAW;;CAEvB,CAAC"}
@@ -1,99 +1,134 @@
1
- import { StatusCancel as o } from "./StatusCancel.js";
2
- import { StatusDone as r } from "./StatusDone.js";
3
- import { StatusProgress00 as a } from "./StatusProgress00.js";
4
- import { StatusProgress10 as e } from "./StatusProgress10.js";
5
- import { StatusProgress20 as n } from "./StatusProgress20.js";
6
- import { StatusProgress30 as g } from "./StatusProgress30.js";
7
- import { StatusProgress40 as m } from "./StatusProgress40.js";
8
- import { StatusProgress50 as p } from "./StatusProgress50.js";
9
- import { StatusProgress60 as c } from "./StatusProgress60.js";
10
- import { StatusProgress70 as i } from "./StatusProgress70.js";
11
- import { StatusProgress80 as u } from "./StatusProgress80.js";
12
- import { StatusProgress90 as d } from "./StatusProgress90.js";
13
- import { StatusProgress100 as l } from "./StatusProgress100.js";
14
- const f = [
1
+ import s from "../../../assets/taskPriorities/high.svg.js";
2
+ import r from "../../../assets/taskPriorities/low.svg.js";
3
+ import a from "../../../assets/taskPriorities/none.svg.js";
4
+ import e from "../../../assets/taskPriorities/normal.svg.js";
5
+ import n from "../../../assets/taskPriorities/urgent.svg.js";
6
+ import { StatusCancel as m } from "./StatusCancel.js";
7
+ import { StatusDone as g } from "./StatusDone.js";
8
+ import { StatusProgress00 as i } from "./StatusProgress00.js";
9
+ import { StatusProgress10 as p } from "./StatusProgress10.js";
10
+ import { StatusProgress20 as c } from "./StatusProgress20.js";
11
+ import { StatusProgress30 as u } from "./StatusProgress30.js";
12
+ import { StatusProgress40 as d } from "./StatusProgress40.js";
13
+ import { StatusProgress50 as l } from "./StatusProgress50.js";
14
+ import { StatusProgress60 as y } from "./StatusProgress60.js";
15
+ import { StatusProgress70 as f } from "./StatusProgress70.js";
16
+ import { StatusProgress80 as A } from "./StatusProgress80.js";
17
+ import { StatusProgress90 as S } from "./StatusProgress90.js";
18
+ import { StatusProgress100 as P } from "./StatusProgress100.js";
19
+ const h = [
15
20
  {
16
- name: "status-done",
21
+ name: "high-priority",
22
+ component: s,
23
+ category: "Additional",
24
+ tags: ["priority", "high"]
25
+ },
26
+ {
27
+ name: "low-priority",
17
28
  component: r,
18
29
  category: "Additional",
30
+ tags: ["priority", "low"]
31
+ },
32
+ {
33
+ name: "none-priority",
34
+ component: a,
35
+ category: "Additional",
36
+ tags: ["priority", "none"]
37
+ },
38
+ {
39
+ name: "normal-priority",
40
+ component: e,
41
+ category: "Additional",
42
+ tags: ["priority", "normal"]
43
+ },
44
+ {
45
+ name: "urgent-priority",
46
+ component: n,
47
+ category: "Additional",
48
+ tags: ["priority", "urgent"]
49
+ },
50
+ {
51
+ name: "status-done",
52
+ component: g,
53
+ category: "Additional",
19
54
  tags: ["status", "done", "complete", "finished", "ok", "check"]
20
55
  },
21
56
  {
22
57
  name: "status-cancel",
23
- component: o,
58
+ component: m,
24
59
  category: "Additional",
25
60
  tags: ["status", "cancel", "x", "uncheck"]
26
61
  },
27
62
  {
28
63
  name: "status-progress-00",
29
- component: a,
64
+ component: i,
30
65
  category: "Additional",
31
66
  tags: ["status", "todo", "progress", "00"]
32
67
  },
33
68
  {
34
69
  name: "status-progress-10",
35
- component: e,
70
+ component: p,
36
71
  category: "Additional",
37
72
  tags: ["status", "progress", "10"]
38
73
  },
39
74
  {
40
75
  name: "status-progress-20",
41
- component: n,
76
+ component: c,
42
77
  category: "Additional",
43
78
  tags: ["status", "progress", "20"]
44
79
  },
45
80
  {
46
81
  name: "status-progress-30",
47
- component: g,
82
+ component: u,
48
83
  category: "Additional",
49
84
  tags: ["status", "progress", "30"]
50
85
  },
51
86
  {
52
87
  name: "status-progress-40",
53
- component: m,
88
+ component: d,
54
89
  category: "Additional",
55
90
  tags: ["status", "progress", "40"]
56
91
  },
57
92
  {
58
93
  name: "status-progress-50",
59
- component: p,
94
+ component: l,
60
95
  category: "Additional",
61
96
  tags: ["status", "progress", "50"]
62
97
  },
63
98
  {
64
99
  name: "status-progress-60",
65
- component: c,
100
+ component: y,
66
101
  category: "Additional",
67
102
  tags: ["status", "progress", "60"]
68
103
  },
69
104
  {
70
105
  name: "status-progress-70",
71
- component: i,
106
+ component: f,
72
107
  category: "Additional",
73
108
  tags: ["status", "progress", "70"]
74
109
  },
75
110
  {
76
111
  name: "status-progress-80",
77
- component: u,
112
+ component: A,
78
113
  category: "Additional",
79
114
  tags: ["status", "progress", "80"]
80
115
  },
81
116
  {
82
117
  name: "status-progress-90",
83
- component: d,
118
+ component: S,
84
119
  category: "Additional",
85
120
  tags: ["status", "progress", "90"]
86
121
  },
87
122
  {
88
123
  name: "status-progress-100",
89
- component: l,
124
+ component: P,
90
125
  category: "Additional",
91
126
  tags: ["status", "progress", "100", "done", "complete"]
92
127
  }
93
- ], O = Object.fromEntries(
94
- f.map(({ name: t, component: s }) => [t, s])
128
+ ], F = Object.fromEntries(
129
+ h.map(({ name: t, component: o }) => [t, o])
95
130
  );
96
131
  export {
97
- O as customIcons,
98
- f as customIconsData
132
+ F as customIcons,
133
+ h as customIconsData
99
134
  };
@@ -1,16 +1,16 @@
1
- interface IProps {
1
+ export interface EntityIconData {
2
2
  type?: string | null;
3
3
  icon?: string | null;
4
4
  title?: string | null;
5
5
  size?: number | null;
6
+ fz?: number | null;
6
7
  id?: string | null;
7
8
  parentId?: string | null;
8
9
  isFolder?: boolean;
9
10
  pathById?: string[];
10
11
  isOpen?: boolean;
11
12
  }
12
- export declare const EntityIcon: <T extends IProps>({ item }: {
13
+ export declare const EntityIcon: <T extends EntityIconData>({ item, }: {
13
14
  item?: T;
14
15
  }) => import("react/jsx-runtime").JSX.Element | null;
15
- export {};
16
16
  //# sourceMappingURL=EntityIcon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"EntityIcon.d.ts","sourceRoot":"","sources":["../../src/components/EntityIcon.tsx"],"names":[],"mappings":"AAYA,UAAU,MAAM;IACd,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAOD,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,MAAM,EAAE,UAAU;IAAE,IAAI,CAAC,EAAE,CAAC,CAAA;CAAE,mDAwHlE,CAAC"}
1
+ {"version":3,"file":"EntityIcon.d.ts","sourceRoot":"","sources":["../../src/components/EntityIcon.tsx"],"names":[],"mappings":"AAkBA,MAAM,WAAW,cAAc;IAC7B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAQD,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,cAAc,EAAE,WAElD;IACD,IAAI,CAAC,EAAE,CAAC,CAAC;CACV,mDAyHA,CAAC"}