@layers-app/shared 0.3.9 → 0.4.0

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 (190) hide show
  1. package/dist/components/AnimatedFigurePage/AnimatedFigurePage.module.css.js +10 -10
  2. package/dist/components/AnimatedFigurePage/useParallax.d.ts +2 -2
  3. package/dist/components/AppContainer/AppContainer.module.css.js +1 -1
  4. package/dist/components/AppContainer/components/AppSidebarButton.d.ts +1 -4
  5. package/dist/components/AppContainer/components/AppSidebarButton.d.ts.map +1 -1
  6. package/dist/components/AppContainer/components/AppSidebarButton.js +15 -22
  7. package/dist/components/AppContainer/components/AppsSidebar/AppsSection.d.ts.map +1 -1
  8. package/dist/components/AppContainer/components/AppsSidebar/AppsSection.js +21 -22
  9. package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
  10. package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +91 -48
  11. package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +1 -1
  12. package/dist/components/AppShell/AppShell.module.css.js +5 -5
  13. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts +1 -3
  14. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts.map +1 -1
  15. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +63 -89
  16. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts +1 -1
  17. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.d.ts.map +1 -1
  18. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.js +26 -35
  19. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +4 -4
  20. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts +1 -1
  21. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.d.ts.map +1 -1
  22. package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/useShakePlayer.js +36 -43
  23. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts +0 -4
  24. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
  25. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.js +20 -59
  26. package/dist/components/AttachmentsGalleryModal/styles.module.css.js +18 -28
  27. package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
  28. package/dist/components/AttachmentsPreview/AttachmentsPreview.js +18 -22
  29. package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +1 -1
  30. package/dist/components/BouncingLogo/BouncingLogo.module.css.js +8 -8
  31. package/dist/components/CollapsibleContainer/CollapsibleContainer.module.css.js +1 -1
  32. package/dist/components/ColorPicker/ColorPicker.d.ts +18 -23
  33. package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
  34. package/dist/components/ColorPicker/ColorPicker.js +139 -145
  35. package/dist/components/ColorPicker/ColorPicker.module.css.js +8 -8
  36. package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
  37. package/dist/components/ColorPicker/ColorPickerToolbar.js +88 -71
  38. package/dist/components/ColorPicker/icons.js +4 -4
  39. package/dist/components/CommentComposer/CommentComposer.module.css.js +4 -4
  40. package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts.map +1 -1
  41. package/dist/components/CommentComposer/CommentEditorHotkeys.js +4 -3
  42. package/dist/components/CommentComposer/index.js +1 -1
  43. package/dist/components/CommentComposer/useVirtualAnchor.d.ts +1 -1
  44. package/dist/components/CommentComposer/useVirtualAnchor.d.ts.map +1 -1
  45. package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
  46. package/dist/components/Copyright/Copyright.module.css.js +1 -1
  47. package/dist/components/CustomKBD/CustomKBD.module.css.js +1 -1
  48. package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
  49. package/dist/components/EmojiPicker/EmojiPanel.js +22 -22
  50. package/dist/components/EmojiPicker/EmojiPicker.d.ts +1 -1
  51. package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
  52. package/dist/components/EmojiPicker/EmojiPicker.js +1 -0
  53. package/dist/components/EmojiPicker/EmojiPicker.module.css.js +8 -8
  54. package/dist/components/EmojiPicker/IconsPanel.js +13 -13
  55. package/dist/components/EntityIcon.d.ts.map +1 -1
  56. package/dist/components/EntityIcon.js +33 -43
  57. package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
  58. package/dist/components/ErrorPage/components/Error404.d.ts.map +1 -1
  59. package/dist/components/FeatureProgress/FeatureProgress.module.css.js +49 -49
  60. package/dist/components/FilePicker/FilePicker.d.ts +4 -2
  61. package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
  62. package/dist/components/FilePicker/FilePicker.js +241 -226
  63. package/dist/components/FilePicker/FilePicker.module.css.js +14 -12
  64. package/dist/components/FilePicker/FilePickerGallery.d.ts.map +1 -1
  65. package/dist/components/FilePicker/FilePickerGallery.js +60 -34
  66. package/dist/components/FilePicker/FilePickerGiphy.d.ts.map +1 -1
  67. package/dist/components/FilePicker/FilePickerGiphy.js +38 -39
  68. package/dist/components/FilePicker/FilePickerLink.d.ts.map +1 -1
  69. package/dist/components/FilePicker/FilePickerLink.js +29 -26
  70. package/dist/components/FilePicker/FilePickerUnsplash.d.ts.map +1 -1
  71. package/dist/components/FilePicker/FilePickerUnsplash.js +42 -43
  72. package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
  73. package/dist/components/FilePicker/FilePickerUpload.js +51 -35
  74. package/dist/components/FilePicker/coverCollections.d.ts +4 -0
  75. package/dist/components/FilePicker/coverCollections.d.ts.map +1 -0
  76. package/dist/components/FilePicker/coverCollections.js +164 -0
  77. package/dist/components/FilePicker/index.d.ts +1 -0
  78. package/dist/components/FilePicker/index.d.ts.map +1 -1
  79. package/dist/components/FormViewer/FormViewer.module.css.js +20 -20
  80. package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
  81. package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.module.css.js +1 -1
  82. package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.module.css.js +1 -1
  83. package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.module.css.js +8 -8
  84. package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +4 -4
  85. package/dist/components/FormViewer/helpers/conditions.d.ts +38 -38
  86. package/dist/components/FormViewer/helpers/helpers.d.ts +38 -38
  87. package/dist/components/FormViewer/helpers/steps.d.ts +38 -38
  88. package/dist/components/FormViewer/hooks/useActiveControl.d.ts +19 -19
  89. package/dist/components/FormViewer/hooks/useActiveStep.d.ts +38 -38
  90. package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts +0 -6
  91. package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts.map +1 -1
  92. package/dist/components/FormViewer/hooks/useFormGlobalTheme.js +3 -4
  93. package/dist/components/FormViewer/hooks/useFormMobile.d.ts +1 -1
  94. package/dist/components/FormViewer/hooks/useFormMobile.d.ts.map +1 -1
  95. package/dist/components/FormViewer/store/formStore.d.ts +248 -248
  96. package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
  97. package/dist/components/FormViewer/store/formStoreApi.d.ts +124 -124
  98. package/dist/components/FormViewer/store/selectors.d.ts +11655 -11655
  99. package/dist/components/FormViewer/types/form.d.ts +1 -1
  100. package/dist/components/FormViewer/types/form.d.ts.map +1 -1
  101. package/dist/components/FormViewer/types/schemes.d.ts +6358 -381
  102. package/dist/components/FormViewer/types/schemes.d.ts.map +1 -1
  103. package/dist/components/FormViewer/types/schemes.js +1 -1
  104. package/dist/components/GroupAvatar/index.d.ts +1 -3
  105. package/dist/components/GroupAvatar/index.d.ts.map +1 -1
  106. package/dist/components/GroupAvatar/index.js +21 -24
  107. package/dist/components/ImageCropper/ImageCropper.module.css.js +38 -38
  108. package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.module.css.js +11 -11
  109. package/dist/components/LanguagePicker/LanguagePicker.module.css.js +1 -1
  110. package/dist/components/Loaders/styles.module.css.js +6 -6
  111. package/dist/components/MediaLibrary/MediaLibrary.module.css.js +2 -2
  112. package/dist/components/MediaLibrary/MediaLibraryRow.js +7 -7
  113. package/dist/components/NavMenu/NavMenu.d.ts +1 -3
  114. package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
  115. package/dist/components/NavMenu/NavMenu.module.css.js +12 -12
  116. package/dist/components/NavMenu/components/DnDProvider.d.ts +1 -1
  117. package/dist/components/NavMenu/components/DnDProvider.d.ts.map +1 -1
  118. package/dist/components/NavMenu/components/NavMenuActionIcon.d.ts +1 -7
  119. package/dist/components/NavMenu/components/NavMenuActionIcon.d.ts.map +1 -1
  120. package/dist/components/NavMenu/components/NavMenuActionIcon.js +23 -21
  121. package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
  122. package/dist/components/NewColorPicker/components/Target.d.ts +1 -3
  123. package/dist/components/NewColorPicker/components/Target.d.ts.map +1 -1
  124. package/dist/components/NewColorPicker/components/Target.js +43 -48
  125. package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
  126. package/dist/components/Notification/Notification.js +1 -3
  127. package/dist/components/Notification/Notification.module.css.js +1 -1
  128. package/dist/components/Notification/NotificationCard.d.ts +1 -3
  129. package/dist/components/Notification/NotificationCard.d.ts.map +1 -1
  130. package/dist/components/Notification/NotificationCard.js +86 -87
  131. package/dist/components/OnBoarding/steps/DifferentLayouts/styles.module.css.js +3 -3
  132. package/dist/components/OnBoarding/steps/styles.module.css.js +9 -9
  133. package/dist/components/OnBoarding/styles.module.css.js +7 -7
  134. package/dist/components/OnboardingTour/OnboardingTourWrapper.d.ts +1 -1
  135. package/dist/components/OnboardingTour/OnboardingTourWrapper.d.ts.map +1 -1
  136. package/dist/components/OnboardingTour/OnboardingTourWrapper.js +74 -70
  137. package/dist/components/ProjectIcon/ProjectIcon.d.ts +12 -7
  138. package/dist/components/ProjectIcon/ProjectIcon.d.ts.map +1 -1
  139. package/dist/components/ProjectIcon/ProjectIcon.js +60 -58
  140. package/dist/components/SearchFilters/SearchFilters.module.css.js +1 -1
  141. package/dist/components/SettingsSection/styles.module.css.js +1 -1
  142. package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +1 -1
  143. package/dist/components/TreeIndent/TreeIndent.module.css.js +4 -4
  144. package/dist/components/UserAvatar/index.d.ts +1 -2
  145. package/dist/components/UserAvatar/index.d.ts.map +1 -1
  146. package/dist/components/UserAvatar/index.js +35 -38
  147. package/dist/components/WorkspaceAvatar/WorkspaceAvatar.d.ts +3 -3
  148. package/dist/components/WorkspaceAvatar/WorkspaceAvatar.d.ts.map +1 -1
  149. package/dist/components/WorkspaceAvatar/WorkspaceAvatar.js +18 -19
  150. package/dist/components/WorkspaceMenu/WorkspaceItem.js +17 -17
  151. package/dist/components/WorkspaceMenu/WorkspaceMenu.js +7 -7
  152. package/dist/components/table/FrontTable.d.ts.map +1 -1
  153. package/dist/components/table/hooks/useColumnsResizing.d.ts.map +1 -1
  154. package/dist/config/envConfig.d.ts +0 -8
  155. package/dist/config/envConfig.d.ts.map +1 -1
  156. package/dist/config/envConfig.js +13 -21
  157. package/dist/helpers/getFileIcons.d.ts.map +1 -1
  158. package/dist/helpers/getFileIcons.js +45 -63
  159. package/dist/helpers/getFileType.d.ts +1 -1
  160. package/dist/helpers/getFileType.d.ts.map +1 -1
  161. package/dist/helpers/getFileType.js +8 -29
  162. package/dist/helpers/getPartOfTheDay.d.ts +1 -1
  163. package/dist/helpers/platform.d.ts +1 -1
  164. package/dist/helpers/platform.d.ts.map +1 -1
  165. package/dist/helpers/platform.js +4 -5
  166. package/dist/helpers/showFeatureFeedback.module.css.js +4 -4
  167. package/dist/helpers/showNotifications.d.ts.map +1 -1
  168. package/dist/helpers/showNotifications.js +29 -30
  169. package/dist/helpers/showNotifications.module.css.js +1 -1
  170. package/dist/hooks/useOutsideClick.d.ts +1 -1
  171. package/dist/hooks/useOutsideClick.d.ts.map +1 -1
  172. package/dist/index.css +1 -1
  173. package/dist/index.d.ts +1 -2
  174. package/dist/index.d.ts.map +1 -1
  175. package/dist/index.js +465 -467
  176. package/dist/lang/locales/ui_en.json.js +20 -18
  177. package/dist/lang/locales/ui_es.json.js +14 -12
  178. package/dist/lang/locales/ui_ru.json.js +15 -13
  179. package/dist/node_modules/countries-and-timezones/esm/index.js +4011 -281
  180. package/docs/README.md +499 -499
  181. package/package.json +75 -75
  182. package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.d.ts +0 -6
  183. package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.d.ts.map +0 -1
  184. package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.js +0 -16
  185. package/dist/components/TextColorIcon.d.ts +0 -8
  186. package/dist/components/TextColorIcon.d.ts.map +0 -1
  187. package/dist/components/TextColorIcon.js +0 -60
  188. package/dist/helpers/offlineSuppression.d.ts +0 -3
  189. package/dist/helpers/offlineSuppression.d.ts.map +0 -1
  190. package/dist/helpers/offlineSuppression.js +0 -8
@@ -1,121 +1,138 @@
1
- import { jsxs as C, jsx as o } from "react/jsx-runtime";
2
- import { forwardRef as D, useState as M, useCallback as w, useMemo as T } from "react";
3
- import { useMantineColorScheme as z, Box as u, Flex as x, UnstyledButton as H } from "@mantine/core";
4
- import { TextColorIcon as F, HighlightSwatch as N } from "./icons.js";
5
- import { isDefaultColor as I, normalizeColorItem as L } from "./types.js";
6
- import { useRecentColors as j } from "./useRecentColors.js";
7
- import t from "./ColorPicker.module.css.js";
1
+ import { jsxs as S, jsx as r } from "react/jsx-runtime";
2
+ import { forwardRef as z, useState as H, useCallback as w, useMemo as I } from "react";
3
+ import { useMantineColorScheme as j, Box as h, Flex as B, Tooltip as P, UnstyledButton as U } from "@mantine/core";
4
+ import { TextColorIcon as K, HighlightSwatch as D } from "./icons.js";
5
+ import { normalizeColorItem as $, isDefaultColor as q } from "./types.js";
6
+ import { useRecentColors as E } from "./useRecentColors.js";
7
+ import c from "./ColorPicker.module.css.js";
8
8
  function k({
9
- isActive: i,
9
+ isActive: s,
10
10
  round: m,
11
- disabled: a,
12
- onClick: h,
13
- children: c
11
+ disabled: u,
12
+ onClick: d,
13
+ children: i,
14
+ tooltipLabel: f
14
15
  }) {
15
- return /* @__PURE__ */ o(
16
- H,
16
+ const v = /* @__PURE__ */ r(
17
+ U,
17
18
  {
18
19
  type: "button",
19
- className: `${t.inlineSwatch}${m ? ` ${t.inlineSwatchRound}` : ""}${i ? ` ${t.inlineSwatchActive}` : ""}`,
20
- onMouseDown: (p) => p.preventDefault(),
21
- onClick: h,
22
- disabled: a,
23
- children: c
20
+ className: `${c.inlineSwatch}${m ? ` ${c.inlineSwatchRound}` : ""}${s ? ` ${c.inlineSwatchActive}` : ""}`,
21
+ onMouseDown: (C) => C.preventDefault(),
22
+ onClick: d,
23
+ disabled: u,
24
+ children: i
24
25
  }
25
26
  );
27
+ return f ? /* @__PURE__ */ r(P, { label: f, withArrow: !0, children: v }) : v;
26
28
  }
27
- const Q = D(({ sections: i, onChange: m, withRecentColors: a, maxRecentColors: h = 9, disabled: c, recentColorsLabel: p = "Recently used" }, R) => {
28
- const { colorScheme: y } = z(), S = y === "dark", { recentColors: B, addRecent: g } = j({ maxItems: h }), [v, K] = M(B), d = w(
29
- (e, r, n) => {
30
- a && (g(e, r, n), K((l) => {
31
- const f = l.filter(
32
- (s) => !(s.value === e && s.sectionKey === r)
29
+ const Y = z(({ sections: s, onChange: m, withRecentColors: u, maxRecentColors: d = 9, disabled: i, recentColorsLabel: f = "Recently used" }, v) => {
30
+ const { colorScheme: C } = j(), x = C === "dark", { recentColors: M, addRecent: F } = E({ maxItems: d }), [L, T] = H(M), p = w(
31
+ (e, o, t) => {
32
+ u && (F(e, o, t), T((l) => {
33
+ const n = l.filter(
34
+ (a) => !(a.value === e && a.sectionKey === o)
33
35
  );
34
- return [{ value: e, sectionKey: r, border: n }, ...f].slice(0, h);
35
- })), m(e, r);
36
+ return [{ value: e, sectionKey: o, border: t }, ...n].slice(0, d);
37
+ })), m(e, o);
36
38
  },
37
- [m, a, g]
38
- ), A = T(() => {
39
+ [m, u, F]
40
+ ), g = I(() => {
39
41
  const e = {};
40
- for (const r of i) e[r.key] = r;
42
+ for (const o of s) e[o.key] = o;
41
43
  return e;
42
- }, [i]), b = w(
43
- (e) => I(e) ? S ? "#FFFFFF" : "#000000" : e,
44
- [S]
44
+ }, [s]), y = w(
45
+ (e, o) => {
46
+ if (!o) return;
47
+ const t = g[o];
48
+ if (!t) return;
49
+ const l = t.colors.find((b) => $(b).value === e);
50
+ if (!l) return;
51
+ const { label: n, value: a } = $(l);
52
+ return n || a;
53
+ },
54
+ [g]
55
+ ), N = w(
56
+ (e) => q(e) ? x ? "#FFFFFF" : "#000000" : e,
57
+ [x]
45
58
  );
46
- return /* @__PURE__ */ C(u, { ref: R, children: [
47
- a && v.length > 0 && /* @__PURE__ */ C(u, { className: t.inlineSection, children: [
48
- /* @__PURE__ */ o(u, { className: t.inlineSectionLabel, children: p }),
49
- /* @__PURE__ */ o(x, { className: t.inlineRow, gap: 2, children: v.map((e, r) => {
50
- const n = e.sectionKey ? A[e.sectionKey] : void 0;
51
- return n?.key === "textColor" || n?.key === "color" || e.sectionKey === "color" ? /* @__PURE__ */ o(
59
+ return /* @__PURE__ */ S(h, { ref: v, children: [
60
+ u && L.length > 0 && /* @__PURE__ */ S(h, { className: c.inlineSection, children: [
61
+ /* @__PURE__ */ r(h, { className: c.inlineSectionLabel, children: f }),
62
+ /* @__PURE__ */ r(B, { className: c.inlineRow, gap: 2, children: L.map((e, o) => {
63
+ const t = e.sectionKey ? g[e.sectionKey] : void 0, l = t?.key === "textColor" || t?.key === "color" || e.sectionKey === "color", n = y(e.value, e.sectionKey);
64
+ return l ? /* @__PURE__ */ r(
52
65
  k,
53
66
  {
54
67
  isActive: !1,
55
- disabled: c,
56
- onClick: () => d(e.value, e.sectionKey ?? ""),
57
- children: /* @__PURE__ */ o(
58
- F,
68
+ disabled: i,
69
+ tooltipLabel: n,
70
+ onClick: () => p(e.value, e.sectionKey ?? ""),
71
+ children: /* @__PURE__ */ r(
72
+ K,
59
73
  {
60
74
  size: 20,
61
- color: b(e.value),
75
+ color: N(e.value),
62
76
  showBorder: !0
63
77
  }
64
78
  )
65
79
  },
66
- `${e.sectionKey}-${e.value}-${r}`
67
- ) : /* @__PURE__ */ o(
80
+ `${e.sectionKey}-${e.value}-${o}`
81
+ ) : /* @__PURE__ */ r(
68
82
  k,
69
83
  {
70
84
  isActive: !1,
71
85
  round: !0,
72
- disabled: c,
73
- onClick: () => d(e.value, e.sectionKey ?? ""),
74
- children: /* @__PURE__ */ o(
75
- N,
86
+ disabled: i,
87
+ tooltipLabel: n,
88
+ onClick: () => p(e.value, e.sectionKey ?? ""),
89
+ children: /* @__PURE__ */ r(
90
+ D,
76
91
  {
77
92
  bgColor: e.value,
78
93
  borderColor: e.border || "var(--mantine-color-default-border)"
79
94
  }
80
95
  )
81
96
  },
82
- `${e.sectionKey}-${e.value}-${r}`
97
+ `${e.sectionKey}-${e.value}-${o}`
83
98
  );
84
99
  }) })
85
100
  ] }),
86
- i.map((e) => {
87
- const r = e.key === "highlight" || e.key === "background" || e.key === "textHighlight";
88
- return /* @__PURE__ */ C(u, { className: t.inlineSection, children: [
89
- e.label && /* @__PURE__ */ o(u, { className: t.inlineSectionLabel, children: e.label }),
90
- /* @__PURE__ */ o(x, { className: t.inlineRow, gap: 2, children: e.colors.map((n) => {
91
- const { value: l, border: f } = L(n), s = l === e.value, $ = b(l);
92
- return r ? /* @__PURE__ */ o(
101
+ s.map((e) => {
102
+ const o = e.key === "highlight" || e.key === "background" || e.key === "textHighlight";
103
+ return /* @__PURE__ */ S(h, { className: c.inlineSection, children: [
104
+ e.label && /* @__PURE__ */ r(h, { className: c.inlineSectionLabel, children: e.label }),
105
+ /* @__PURE__ */ r(B, { className: c.inlineRow, gap: 2, children: e.colors.map((t) => {
106
+ const { value: l, border: n, label: a } = $(t), b = l === e.value, R = N(l), A = a || l;
107
+ return o ? /* @__PURE__ */ r(
93
108
  k,
94
109
  {
95
- isActive: s,
110
+ isActive: b,
96
111
  round: !0,
97
- disabled: c,
98
- onClick: () => d(l, e.key, f),
99
- children: /* @__PURE__ */ o(
100
- N,
112
+ disabled: i,
113
+ tooltipLabel: A,
114
+ onClick: () => p(l, e.key, n),
115
+ children: /* @__PURE__ */ r(
116
+ D,
101
117
  {
102
118
  bgColor: l,
103
- borderColor: f || $
119
+ borderColor: n || R
104
120
  }
105
121
  )
106
122
  },
107
123
  l
108
- ) : /* @__PURE__ */ o(
124
+ ) : /* @__PURE__ */ r(
109
125
  k,
110
126
  {
111
- isActive: s,
112
- disabled: c,
113
- onClick: () => d(l, e.key),
114
- children: /* @__PURE__ */ o(
115
- F,
127
+ isActive: b,
128
+ disabled: i,
129
+ tooltipLabel: A,
130
+ onClick: () => p(l, e.key),
131
+ children: /* @__PURE__ */ r(
132
+ K,
116
133
  {
117
134
  size: 20,
118
- color: $,
135
+ color: R,
119
136
  showBorder: !0
120
137
  }
121
138
  )
@@ -128,5 +145,5 @@ const Q = D(({ sections: i, onChange: m, withRecentColors: a, maxRecentColors: h
128
145
  ] });
129
146
  });
130
147
  export {
131
- Q as ColorPickerToolbar
148
+ Y as ColorPickerToolbar
132
149
  };
@@ -1,4 +1,4 @@
1
- import { jsxs as c, jsx as n } from "react/jsx-runtime";
1
+ import { jsx as n, jsxs as c } from "react/jsx-runtime";
2
2
  function s({
3
3
  size: t = 20,
4
4
  color: r = "var(--mantine-color-white)",
@@ -26,7 +26,7 @@ function s({
26
26
  fill: "none"
27
27
  }
28
28
  ),
29
- /* @__PURE__ */ n("g", { transform: "translate(4.3, 2.85) scale(0.95)", children: /* @__PURE__ */ n(
29
+ /* @__PURE__ */ n("g", { transform: "translate(4.54, 4.2) scale(0.95)", children: /* @__PURE__ */ n(
30
30
  "path",
31
31
  {
32
32
  d: "M5.74945 0C6.57421 0 7.09678 0.678265 7.50336 1.43555C7.93323 2.23628 8.38332 3.42022 8.95843 4.92676L11.4623 11.4873C11.5716 11.7742 11.4279 12.0955 11.1411 12.2051C10.8541 12.3144 10.5329 12.1706 10.4233 11.8838L8.5766 7.04883H2.9223L1.07562 11.8838C0.965974 12.1707 0.644849 12.3146 0.357848 12.2051C0.0710441 12.0955 -0.0726477 11.7742 0.0365593 11.4873L2.54047 4.92676C3.11563 3.42012 3.56662 2.23629 3.99652 1.43555C4.40306 0.678393 4.92485 8.51363e-05 5.74945 0ZM5.74945 1.11328C5.62925 1.11335 5.38778 1.19685 4.97699 1.96191C4.5893 2.68404 4.16803 3.7852 3.5805 5.32422L3.34711 5.93555H8.15179L7.9184 5.32422C7.33089 3.78522 6.9096 2.68403 6.52191 1.96191C6.11099 1.19664 5.86959 1.11328 5.74945 1.11328Z",
@@ -42,7 +42,7 @@ function d({
42
42
  bgColor: r,
43
43
  borderColor: e
44
44
  }) {
45
- const o = r === "inherit" || r === "" || r === "default", i = t * 0.375, l = o ? "var(--mantine-color-body)" : r, h = o ? "var(--mantine-color-default-border)" : e;
45
+ const o = r === "inherit" || r === "" || r === "default", i = t / 2 - 2, l = o ? "var(--mantine-color-body)" : r, h = o ? "var(--mantine-color-default-border)" : e;
46
46
  return /* @__PURE__ */ n(
47
47
  "svg",
48
48
  {
@@ -59,7 +59,7 @@ function d({
59
59
  r: i,
60
60
  fill: l,
61
61
  stroke: h,
62
- strokeWidth: "1.5"
62
+ strokeWidth: "1"
63
63
  }
64
64
  )
65
65
  }
@@ -1,15 +1,15 @@
1
- const o = "_commentComposerWrapper_1mv8w_1", e = "_commentComposerFloat_1mv8w_68", r = "_composerContainer_1mv8w_97", t = "_editorWrapper_1mv8w_113", m = "_editMode_1mv8w_181", p = {
1
+ const o = "_commentComposerWrapper_f5dl7_1", e = "_commentComposerFloat_f5dl7_135", r = "_composerContainer_f5dl7_193", t = "_editorWrapper_f5dl7_225", p = "_editMode_f5dl7_361", m = {
2
2
  commentComposerWrapper: o,
3
3
  commentComposerFloat: e,
4
4
  composerContainer: r,
5
5
  editorWrapper: t,
6
- editMode: m
6
+ editMode: p
7
7
  };
8
8
  export {
9
9
  e as commentComposerFloat,
10
10
  o as commentComposerWrapper,
11
11
  r as composerContainer,
12
- p as default,
13
- m as editMode,
12
+ m as default,
13
+ p as editMode,
14
14
  t as editorWrapper
15
15
  };
@@ -1 +1 @@
1
- {"version":3,"file":"CommentEditorHotkeys.d.ts","sourceRoot":"","sources":["../../../src/components/CommentComposer/CommentEditorHotkeys.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAIjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAI/C,eAAO,MAAM,oBAAoB,GAAI,8GAWlC;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;IACvC,iBAAiB,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;IAC/C,YAAY,EAAE;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,oBAAoB,CAAC,iBAAiB,EAAE,CAAC;KACjD,CAAC;IACF,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE,OAAO,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;CACZ,4CAuJA,CAAC"}
1
+ {"version":3,"file":"CommentEditorHotkeys.d.ts","sourceRoot":"","sources":["../../../src/components/CommentComposer/CommentEditorHotkeys.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAIjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAI/C,eAAO,MAAM,oBAAoB,GAAI,8GAWlC;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;IACvC,iBAAiB,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;IAC/C,YAAY,EAAE;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,oBAAoB,CAAC,iBAAiB,EAAE,CAAC;KACjD,CAAC;IACF,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE,OAAO,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;CACZ,4CAwJA,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as S } from "react/jsx-runtime";
2
- import { useRef as D, useEffect as m } from "react";
3
- import { useTranslation as T } from "react-i18next";
2
+ import { useRef as x, useEffect as m } from "react";
3
+ import { useTranslation as D } from "react-i18next";
4
4
  import { openRemoveConfirmModal as g } from "../modals/RemoveConfirmModal.js";
5
5
  import w from "./CommentComposer.module.css.js";
6
6
  const W = ({
@@ -15,7 +15,7 @@ const W = ({
15
15
  hasChanges: s,
16
16
  ns: P
17
17
  }) => {
18
- const p = D(null), L = i || f, { t: r } = T(P);
18
+ const p = x(null), L = i || f, { t: r } = D(P);
19
19
  return m(() => {
20
20
  const o = (e) => {
21
21
  if (e.code === "Enter" && !e.shiftKey) {
@@ -85,6 +85,7 @@ const W = ({
85
85
  cancel: r("editor.composer.cancel")
86
86
  },
87
87
  icon: null,
88
+ zIndex: 301,
88
89
  onConfirm: () => c?.()
89
90
  });
90
91
  return;
@@ -296,7 +296,7 @@ const Ne = ({
296
296
  offset: 10,
297
297
  withinPortal: !1,
298
298
  floatingStrategy: "fixed",
299
- zIndex: 100,
299
+ zIndex: 300,
300
300
  middlewares: {
301
301
  flip: { padding: 8 },
302
302
  shift: { padding: 8 },
@@ -10,6 +10,6 @@ interface UseVirtualAnchorProps {
10
10
  elements: HTMLSpanElement[];
11
11
  };
12
12
  }
13
- export declare function useVirtualAnchor({ isFloat, updateLocation, selectionRef, selectionState, }: UseVirtualAnchorProps): import("react").RefObject<HTMLDivElement | null>;
13
+ export declare function useVirtualAnchor({ isFloat, updateLocation, selectionRef, selectionState, }: UseVirtualAnchorProps): import("react").MutableRefObject<HTMLDivElement | null>;
14
14
  export {};
15
15
  //# sourceMappingURL=useVirtualAnchor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useVirtualAnchor.d.ts","sourceRoot":"","sources":["../../../src/components/CommentComposer/useVirtualAnchor.ts"],"names":[],"mappings":"AAEA,UAAU,qBAAqB;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,CAAC,EAAE,CACf,OAAO,EAAE,cAAc,EACvB,YAAY,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,EACzC,cAAc,EAAE;QACd,SAAS,EAAE,cAAc,CAAC;QAC1B,QAAQ,EAAE,eAAe,EAAE,CAAC;KAC7B,KACE,IAAI,CAAC;IACV,YAAY,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;IAC1C,cAAc,EAAE;QACd,SAAS,EAAE,cAAc,CAAC;QAC1B,QAAQ,EAAE,eAAe,EAAE,CAAC;KAC7B,CAAC;CACH;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,cAAc,EACd,YAAY,EACZ,cAAc,GACf,EAAE,qBAAqB,oDAsHvB"}
1
+ {"version":3,"file":"useVirtualAnchor.d.ts","sourceRoot":"","sources":["../../../src/components/CommentComposer/useVirtualAnchor.ts"],"names":[],"mappings":"AAEA,UAAU,qBAAqB;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,CAAC,EAAE,CACf,OAAO,EAAE,cAAc,EACvB,YAAY,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,EACzC,cAAc,EAAE;QACd,SAAS,EAAE,cAAc,CAAC;QAC1B,QAAQ,EAAE,eAAe,EAAE,CAAC;KAC7B,KACE,IAAI,CAAC;IACV,YAAY,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;IAC1C,cAAc,EAAE;QACd,SAAS,EAAE,cAAc,CAAC;QAC1B,QAAQ,EAAE,eAAe,EAAE,CAAC;KAC7B,CAAC;CACH;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,cAAc,EACd,YAAY,EACZ,cAAc,GACf,EAAE,qBAAqB,2DAsHvB"}
@@ -1,4 +1,4 @@
1
- const s = "_section_s7rqu_1", t = {
1
+ const s = "_section_6nzxb_1", t = {
2
2
  section: s
3
3
  };
4
4
  export {
@@ -1,4 +1,4 @@
1
- const r = "_brandingWrapper_vvk0o_1", a = {
1
+ const r = "_brandingWrapper_ag0no_1", a = {
2
2
  brandingWrapper: r
3
3
  };
4
4
  export {
@@ -1,4 +1,4 @@
1
- const o = "_root_195do_1", t = {
1
+ const o = "_root_122b9_1", t = {
2
2
  root: o
3
3
  };
4
4
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"EmojiPanel.d.ts","sourceRoot":"","sources":["../../../src/components/EmojiPicker/EmojiPanel.tsx"],"names":[],"mappings":"AAyCA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAsBjD,eAAO,MAAM,UAAU,GAAI,6DAMxB,IAAI,CAAC,gBAAgB,EAAE,SAAS,GAAG,OAAO,GAAG,UAAU,GAAG,aAAa,CAAC,GAAG;IAC5E,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC,4CAmTA,CAAC"}
1
+ {"version":3,"file":"EmojiPanel.d.ts","sourceRoot":"","sources":["../../../src/components/EmojiPicker/EmojiPanel.tsx"],"names":[],"mappings":"AAyCA,OAAO,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAsBjD,eAAO,MAAM,UAAU,GAAI,6DAMxB,IAAI,CAAC,gBAAgB,EAAE,SAAS,GAAG,OAAO,GAAG,UAAU,GAAG,aAAa,CAAC,GAAG;IAC5E,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACvC,4CAiTA,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { jsxs as y, jsx as t } from "react/jsx-runtime";
2
- import { useState as u, useRef as d, useEffect as R, useCallback as K } from "react";
2
+ import { useState as d, useRef as p, useEffect as R, useCallback as K } from "react";
3
3
  import { useTranslation as L } from "react-i18next";
4
4
  import { Search01Icon as U, ShuffleIcon as V, Clock01Icon as W, SmileIcon as X, Pizza01Icon as Z, FootballIcon as _, Airplane01Icon as ee, BulbIcon as te, Asterisk02Icon as oe, Flag02Icon as re } from "@hugeicons/core-free-icons";
5
5
  import { HugeiconsIcon as c } from "@hugeicons/react";
@@ -10,8 +10,8 @@ import le from "../../assets/svg/dog.svg.js";
10
10
  import { pickRandomEmoji as fe } from "../../helpers/pickRandomEmoji.js";
11
11
  import { NoData as ue } from "../NoData/NoData.js";
12
12
  import { IconEntity as de } from "../ProjectIcon/ProjectIcon.js";
13
- import { frequentEmoji as me } from "./constants.js";
14
- import { getEmojis as pe } from "./utils.js";
13
+ import { frequentEmoji as pe } from "./constants.js";
14
+ import { getEmojis as me } from "./utils.js";
15
15
  import T from "./EmojiPicker.module.css.js";
16
16
  const he = [
17
17
  { i: "frequent", icon: /* @__PURE__ */ t(c, { size: 20, icon: W }) },
@@ -27,31 +27,31 @@ const he = [
27
27
  { i: "symbols", icon: /* @__PURE__ */ t(c, { size: 20, icon: oe }) },
28
28
  { i: "flags", icon: /* @__PURE__ */ t(c, { size: 20, icon: re }) }
29
29
  ], Re = ({
30
- locales: m,
30
+ locales: u,
31
31
  onChange: C,
32
32
  onClose: M,
33
33
  setRandomIcon: P,
34
- querySearch: p
34
+ querySearch: m
35
35
  }) => {
36
- const [b, k] = u("frequent"), x = d("frequent"), h = d({}), I = d(null), [w, S] = u(""), [Q, O] = u([]), [a, B] = u(null), [E, j] = u([]), { t: G } = L(), g = d(!1), l = d(null);
36
+ const [b, k] = d("frequent"), x = p("frequent"), h = p({}), I = p(null), [S, w] = d(""), [Q, O] = d([]), [a, B] = d(null), [E, j] = d([]), { t: G } = L(), g = p(!1), l = p(null);
37
37
  R(() => {
38
- if (typeof p == "string") {
39
- const e = p.slice(1);
40
- if (S(e), a) {
38
+ if (typeof m == "string") {
39
+ const e = m.slice(1);
40
+ if (w(e), a) {
41
41
  const o = a.search(e);
42
42
  j(o.map((r) => r.item.e));
43
43
  }
44
44
  }
45
- }, [p, a]), R(() => {
45
+ }, [m, a]), R(() => {
46
46
  (async () => {
47
- const o = await pe(), r = o.flatMap(
47
+ const o = await me(), r = o.flatMap(
48
48
  (i) => i.e.map((n) => ({
49
49
  e: n.e,
50
50
  n: n.n,
51
51
  k: n.k
52
52
  // категория
53
53
  }))
54
- ), s = me.map(
54
+ ), s = pe.map(
55
55
  (i) => r.find((n) => n.e === i)
56
56
  );
57
57
  O([{ i: "frequent", e: s }, ...o]);
@@ -74,7 +74,7 @@ const he = [
74
74
  const H = K(
75
75
  (e) => {
76
76
  const o = e.currentTarget.value;
77
- if (S(o), a) {
77
+ if (w(o), a) {
78
78
  const r = a.search(o);
79
79
  j(r.map((s) => s.item.e));
80
80
  }
@@ -112,7 +112,7 @@ const he = [
112
112
  n < s && (s = n, r = f);
113
113
  }
114
114
  }), r !== x.current && (x.current = r, k(r));
115
- }, J = typeof p == "string";
115
+ }, J = typeof m == "string";
116
116
  return /* @__PURE__ */ y(v, { gap: 0, h: "100%", children: [
117
117
  /* @__PURE__ */ t(ne, { active: !0, children: /* @__PURE__ */ y(
118
118
  z,
@@ -128,8 +128,8 @@ const he = [
128
128
  ie,
129
129
  {
130
130
  leftSection: /* @__PURE__ */ t(c, { size: 16, icon: U }),
131
- value: w,
132
- placeholder: `${m?.search}...`,
131
+ value: S,
132
+ placeholder: `${u?.search}...`,
133
133
  "data-autofocus": !0,
134
134
  styles: {
135
135
  input: {
@@ -142,7 +142,7 @@ const he = [
142
142
  radius: "var(--mantine-radius-default)"
143
143
  }
144
144
  ),
145
- /* @__PURE__ */ t(ce, { withArrow: !0, label: G("random"), children: /* @__PURE__ */ t(
145
+ /* @__PURE__ */ t(ce, { withArrow: !0, label: u?.random || G("random"), children: /* @__PURE__ */ t(
146
146
  A,
147
147
  {
148
148
  h: 36,
@@ -175,7 +175,7 @@ const he = [
175
175
  },
176
176
  ref: I,
177
177
  onScroll: $,
178
- children: w ? /* @__PURE__ */ y(v, { flex: 1, align: "stretch", children: [
178
+ children: S ? /* @__PURE__ */ y(v, { flex: 1, align: "stretch", children: [
179
179
  !J && /* @__PURE__ */ t(
180
180
  F,
181
181
  {
@@ -185,7 +185,7 @@ const he = [
185
185
  top: -1,
186
186
  style: { zIndex: 1 },
187
187
  bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-6))",
188
- children: /* @__PURE__ */ t(q, { fz: "sm", c: "dimmed", children: m?.searchResults })
188
+ children: /* @__PURE__ */ t(q, { fz: "sm", c: "dimmed", children: u?.searchResults })
189
189
  }
190
190
  ),
191
191
  E.length ? /* @__PURE__ */ t(N, { cols: 10, spacing: 0, children: E.map((e) => /* @__PURE__ */ t(
@@ -201,7 +201,7 @@ const he = [
201
201
  ue,
202
202
  {
203
203
  size: 100,
204
- description: m?.searchNoResults,
204
+ description: u?.searchNoResults,
205
205
  descriptionProps: {
206
206
  fz: "sm"
207
207
  }
@@ -217,14 +217,14 @@ const he = [
217
217
  /* @__PURE__ */ t(
218
218
  F,
219
219
  {
220
- bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-6))",
220
+ bg: "transparent",
221
221
  py: 2,
222
222
  px: 6,
223
223
  pos: "sticky",
224
224
  top: -1,
225
225
  h: 23,
226
226
  style: { zIndex: 1 },
227
- children: /* @__PURE__ */ t(q, { fz: "xs", c: "dimmed", children: m?.emojiCategory?.[e.i] })
227
+ children: /* @__PURE__ */ t(q, { fz: "xs", c: "dimmed", children: u?.emojiCategory?.[e.i] })
228
228
  }
229
229
  ),
230
230
  /* @__PURE__ */ t(N, { cols: 10, spacing: 0, children: e.e.map((o) => /* @__PURE__ */ t(
@@ -30,8 +30,8 @@ export type EmojiPickerLocales = {
30
30
  chooseColor?: string;
31
31
  searchNoResults?: string;
32
32
  remove?: string;
33
- random?: string;
34
33
  icons?: string;
34
+ random?: string;
35
35
  emojiCategory?: Record<string, string>;
36
36
  };
37
37
  export declare const EmojiPicker: ({ project, value, querySearch, children, onChange, position, popoverProps, showIcons, showColors, defaultActiveTab, showEmojis, withinPortal, locales: _locales, openWhen, triggerRegex, typingSeq, showRemoveButton, keepOpenOnRandom, }: PropsWithChildren<EmojiPickerProps>) => import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"EmojiPicker.d.ts","sourceRoot":"","sources":["../../../src/components/EmojiPicker/EmojiPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAgC,MAAM,OAAO,CAAC;AAGxE,OAAO,EAIL,gBAAgB,EAEhB,YAAY,EAEb,MAAM,eAAe,CAAC;AAQvB,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,kIAAkI;IAClI,QAAQ,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IAChC,2GAA2G;IAC3G,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gHAAgH;IAChH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0FAA0F;IAC1F,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,2OAmBzB,iBAAiB,CAAC,gBAAgB,CAAC,4CAgNrC,CAAC"}
1
+ {"version":3,"file":"EmojiPicker.d.ts","sourceRoot":"","sources":["../../../src/components/EmojiPicker/EmojiPicker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAgC,MAAM,OAAO,CAAC;AAGxE,OAAO,EAIL,gBAAgB,EAEhB,YAAY,EAEb,MAAM,eAAe,CAAC;AAQvB,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC/B,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,kIAAkI;IAClI,QAAQ,CAAC,EAAE,OAAO,GAAG,UAAU,CAAC;IAChC,2GAA2G;IAC3G,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gHAAgH;IAChH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,0FAA0F;IAC1F,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,2OAmBzB,iBAAiB,CAAC,gBAAgB,CAAC,4CAiNrC,CAAC"}
@@ -30,6 +30,7 @@ const ee = ({
30
30
  emojis: e("emojis"),
31
31
  remove: e("remove"),
32
32
  search: e("search"),
33
+ random: e("random"),
33
34
  searchResults: e("emojiPicker.searchResults"),
34
35
  icons: e("emojiPicker.icons"),
35
36
  searchNoResults: e("emojiPicker.searchNoResults"),
@@ -1,13 +1,13 @@
1
- const o = "_item_o1hlf_1", a = "_randomIcon_o1hlf_26", n = "_originalTab_o1hlf_30", t = "_customTab_o1hlf_36", _ = {
1
+ const o = "_item_s1gb0_1", s = "_randomIcon_s1gb0_51", a = "_originalTab_s1gb0_59", n = "_customTab_s1gb0_71", t = {
2
2
  item: o,
3
- randomIcon: a,
4
- originalTab: n,
5
- customTab: t
3
+ randomIcon: s,
4
+ originalTab: a,
5
+ customTab: n
6
6
  };
7
7
  export {
8
- t as customTab,
9
- _ as default,
8
+ n as customTab,
9
+ t as default,
10
10
  o as item,
11
- n as originalTab,
12
- a as randomIcon
11
+ a as originalTab,
12
+ s as randomIcon
13
13
  };
@@ -13,18 +13,18 @@ import { IconEntity as I, IconType as A } from "../ProjectIcon/ProjectIcon.js";
13
13
  import { customIcons as D } from "./custom-icons/customIcons.js";
14
14
  import { getIconsList as F, getRandomIcon as ae } from "./utils.js";
15
15
  import h from "./EmojiPicker.module.css.js";
16
- async function le(c, a, l = 500) {
17
- const u = [], p = c.length;
16
+ async function le(a, c, l = 500) {
17
+ const u = [], p = a.length;
18
18
  for (let r = 0; r < p; r += l) {
19
- const w = c.slice(r, r + l).filter(a);
19
+ const w = a.slice(r, r + l).filter(c);
20
20
  u.push(...w), await new Promise((f) => setTimeout(f, 0));
21
21
  }
22
22
  return u;
23
23
  }
24
24
  const Ce = M(
25
25
  ({
26
- showColors: c,
27
- locales: a,
26
+ showColors: a,
27
+ locales: c,
28
28
  onChange: l,
29
29
  value: u,
30
30
  onClose: p,
@@ -65,7 +65,7 @@ const Ce = M(
65
65
  color: i?.color,
66
66
  type: i?.type || A.FILLED
67
67
  })
68
- ), c || p());
68
+ ), a || p());
69
69
  }), n = J({
70
70
  color: i?.color || ie.COLORS[0],
71
71
  theme: w
@@ -77,11 +77,11 @@ const Ce = M(
77
77
  "--icon-color-hover": K(n.value, 0.2)
78
78
  }, [n]), q = async () => {
79
79
  const o = await ae(r);
80
- S([]), l?.(I.stringify({ icon: o, color: i?.color })), !c && !C && p();
80
+ S([]), l?.(I.stringify({ icon: o, color: i?.color })), !a && !C && p();
81
81
  };
82
82
  return /* @__PURE__ */ m(y, { w: "100%", gap: "sm", pt: 12, pb: 8, h: "100%", children: [
83
- c && /* @__PURE__ */ m(y, { gap: 4, px: 8, w: "100%", children: [
84
- /* @__PURE__ */ e(b, { lh: "140%", fw: 500, c: "dimmed", fz: "xs", children: a?.chooseColor || k("chooseColor") }),
83
+ a && /* @__PURE__ */ m(y, { gap: 4, px: 8, w: "100%", children: [
84
+ /* @__PURE__ */ e(b, { lh: "140%", fw: 500, c: "dimmed", fz: "xs", children: c?.chooseColor || k("chooseColor") }),
85
85
  /* @__PURE__ */ e(
86
86
  ne,
87
87
  {
@@ -117,7 +117,7 @@ const Ce = M(
117
117
  {
118
118
  leftSection: /* @__PURE__ */ e(L, { size: 16, icon: Q }),
119
119
  value: f,
120
- placeholder: `${a?.search}...`,
120
+ placeholder: `${c?.search}...`,
121
121
  "data-autofocus": !0,
122
122
  styles: {
123
123
  input: {
@@ -130,7 +130,7 @@ const Ce = M(
130
130
  radius: "var(--mantine-radius-default)"
131
131
  }
132
132
  ) }),
133
- /* @__PURE__ */ e(Z, { withArrow: !0, label: k("random"), children: /* @__PURE__ */ e(
133
+ /* @__PURE__ */ e(Z, { withArrow: !0, label: c?.random || k("random"), children: /* @__PURE__ */ e(
134
134
  ee,
135
135
  {
136
136
  h: 36,
@@ -168,7 +168,7 @@ const Ce = M(
168
168
  top: -1,
169
169
  style: { zIndex: 1 },
170
170
  bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-6))",
171
- children: /* @__PURE__ */ e(b, { fz: "xs", fw: 500, lh: "140%", c: "dimmed", children: a?.searchResults })
171
+ children: /* @__PURE__ */ e(b, { fz: "xs", fw: 500, lh: "140%", c: "dimmed", children: c?.searchResults })
172
172
  }
173
173
  ),
174
174
  T.length ? /* @__PURE__ */ e(N, { cols: 8, spacing: 0, children: T.map((o) => {
@@ -203,7 +203,7 @@ const Ce = M(
203
203
  ce,
204
204
  {
205
205
  size: 100,
206
- description: a?.searchNoResults,
206
+ description: c?.searchNoResults,
207
207
  descriptionProps: {
208
208
  fz: "sm"
209
209
  }
@@ -1 +1 @@
1
- {"version":3,"file":"EntityIcon.d.ts","sourceRoot":"","sources":["../../src/components/EntityIcon.tsx"],"names":[],"mappings":"AA2BA,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,mDAwIA,CAAC"}
1
+ {"version":3,"file":"EntityIcon.d.ts","sourceRoot":"","sources":["../../src/components/EntityIcon.tsx"],"names":[],"mappings":"AA0BA,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,mDA6HA,CAAC"}