@layers-app/shared 0.3.7 → 0.3.9

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 +4 -1
  5. package/dist/components/AppContainer/components/AppSidebarButton.d.ts.map +1 -1
  6. package/dist/components/AppContainer/components/AppSidebarButton.js +22 -15
  7. package/dist/components/AppContainer/components/AppsSidebar/AppsSection.d.ts.map +1 -1
  8. package/dist/components/AppContainer/components/AppsSidebar/AppsSection.js +22 -21
  9. package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
  10. package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +48 -91
  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 +3 -1
  14. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts.map +1 -1
  15. package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +89 -63
  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 +35 -26
  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 +43 -36
  23. package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.d.ts +6 -0
  24. package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.d.ts.map +1 -0
  25. package/dist/components/AttachmentsGalleryModal/components/UnsupportedSection.js +16 -0
  26. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts +4 -0
  27. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
  28. package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.js +59 -20
  29. package/dist/components/AttachmentsGalleryModal/styles.module.css.js +28 -18
  30. package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
  31. package/dist/components/AttachmentsPreview/AttachmentsPreview.js +22 -18
  32. package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +1 -1
  33. package/dist/components/BouncingLogo/BouncingLogo.module.css.js +8 -8
  34. package/dist/components/CollapsibleContainer/CollapsibleContainer.module.css.js +1 -1
  35. package/dist/components/ColorPicker/ColorPicker.d.ts +23 -18
  36. package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
  37. package/dist/components/ColorPicker/ColorPicker.js +145 -139
  38. package/dist/components/ColorPicker/ColorPicker.module.css.js +14 -14
  39. package/dist/components/ColorPicker/ColorPickerToolbar.d.ts.map +1 -1
  40. package/dist/components/ColorPicker/ColorPickerToolbar.js +71 -88
  41. package/dist/components/ColorPicker/icons.js +1 -1
  42. package/dist/components/CommentComposer/CommentComposer.module.css.js +4 -4
  43. package/dist/components/CommentComposer/CommentEditorHotkeys.d.ts.map +1 -1
  44. package/dist/components/CommentComposer/CommentEditorHotkeys.js +3 -4
  45. package/dist/components/CommentComposer/index.js +1 -1
  46. package/dist/components/CommentComposer/useVirtualAnchor.d.ts +1 -1
  47. package/dist/components/CommentComposer/useVirtualAnchor.d.ts.map +1 -1
  48. package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
  49. package/dist/components/Copyright/Copyright.module.css.js +1 -1
  50. package/dist/components/CustomKBD/CustomKBD.module.css.js +1 -1
  51. package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
  52. package/dist/components/EmojiPicker/EmojiPanel.js +22 -22
  53. package/dist/components/EmojiPicker/EmojiPicker.d.ts +1 -1
  54. package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
  55. package/dist/components/EmojiPicker/EmojiPicker.js +0 -1
  56. package/dist/components/EmojiPicker/EmojiPicker.module.css.js +8 -8
  57. package/dist/components/EmojiPicker/IconsPanel.js +13 -13
  58. package/dist/components/EntityIcon.d.ts.map +1 -1
  59. package/dist/components/EntityIcon.js +43 -33
  60. package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
  61. package/dist/components/ErrorPage/components/Error404.d.ts.map +1 -1
  62. package/dist/components/FeatureProgress/FeatureProgress.module.css.js +49 -49
  63. package/dist/components/FilePicker/FilePicker.d.ts +2 -4
  64. package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
  65. package/dist/components/FilePicker/FilePicker.js +226 -241
  66. package/dist/components/FilePicker/FilePicker.module.css.js +12 -14
  67. package/dist/components/FilePicker/FilePickerGallery.d.ts.map +1 -1
  68. package/dist/components/FilePicker/FilePickerGallery.js +34 -60
  69. package/dist/components/FilePicker/FilePickerGiphy.d.ts.map +1 -1
  70. package/dist/components/FilePicker/FilePickerGiphy.js +39 -38
  71. package/dist/components/FilePicker/FilePickerLink.d.ts.map +1 -1
  72. package/dist/components/FilePicker/FilePickerLink.js +26 -29
  73. package/dist/components/FilePicker/FilePickerUnsplash.d.ts.map +1 -1
  74. package/dist/components/FilePicker/FilePickerUnsplash.js +43 -42
  75. package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
  76. package/dist/components/FilePicker/FilePickerUpload.js +35 -51
  77. package/dist/components/FilePicker/index.d.ts +0 -1
  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 +6 -0
  91. package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts.map +1 -1
  92. package/dist/components/FormViewer/hooks/useFormGlobalTheme.js +4 -3
  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 +381 -6358
  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 +3 -1
  105. package/dist/components/GroupAvatar/index.d.ts.map +1 -1
  106. package/dist/components/GroupAvatar/index.js +24 -21
  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 +3 -1
  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 +7 -1
  119. package/dist/components/NavMenu/components/NavMenuActionIcon.d.ts.map +1 -1
  120. package/dist/components/NavMenu/components/NavMenuActionIcon.js +21 -23
  121. package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
  122. package/dist/components/NewColorPicker/components/Target.d.ts +3 -1
  123. package/dist/components/NewColorPicker/components/Target.d.ts.map +1 -1
  124. package/dist/components/NewColorPicker/components/Target.js +48 -43
  125. package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
  126. package/dist/components/Notification/Notification.js +3 -1
  127. package/dist/components/Notification/Notification.module.css.js +1 -1
  128. package/dist/components/Notification/NotificationCard.d.ts +3 -1
  129. package/dist/components/Notification/NotificationCard.d.ts.map +1 -1
  130. package/dist/components/Notification/NotificationCard.js +87 -86
  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 +70 -74
  137. package/dist/components/ProjectIcon/ProjectIcon.d.ts +7 -12
  138. package/dist/components/ProjectIcon/ProjectIcon.d.ts.map +1 -1
  139. package/dist/components/ProjectIcon/ProjectIcon.js +58 -60
  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/TextColorIcon.d.ts +8 -0
  144. package/dist/components/TextColorIcon.d.ts.map +1 -0
  145. package/dist/components/TextColorIcon.js +60 -0
  146. package/dist/components/TreeIndent/TreeIndent.module.css.js +4 -4
  147. package/dist/components/UserAvatar/index.d.ts +2 -1
  148. package/dist/components/UserAvatar/index.d.ts.map +1 -1
  149. package/dist/components/UserAvatar/index.js +38 -35
  150. package/dist/components/WorkspaceAvatar/WorkspaceAvatar.d.ts +3 -3
  151. package/dist/components/WorkspaceAvatar/WorkspaceAvatar.d.ts.map +1 -1
  152. package/dist/components/WorkspaceAvatar/WorkspaceAvatar.js +19 -18
  153. package/dist/components/WorkspaceMenu/WorkspaceItem.js +17 -17
  154. package/dist/components/WorkspaceMenu/WorkspaceMenu.js +7 -7
  155. package/dist/components/table/FrontTable.d.ts.map +1 -1
  156. package/dist/components/table/hooks/useColumnsResizing.d.ts.map +1 -1
  157. package/dist/config/envConfig.d.ts +8 -0
  158. package/dist/config/envConfig.d.ts.map +1 -1
  159. package/dist/config/envConfig.js +21 -13
  160. package/dist/helpers/getFileIcons.d.ts.map +1 -1
  161. package/dist/helpers/getFileIcons.js +63 -45
  162. package/dist/helpers/getFileType.d.ts +1 -1
  163. package/dist/helpers/getFileType.d.ts.map +1 -1
  164. package/dist/helpers/getFileType.js +29 -8
  165. package/dist/helpers/getPartOfTheDay.d.ts +1 -1
  166. package/dist/helpers/offlineSuppression.d.ts +3 -0
  167. package/dist/helpers/offlineSuppression.d.ts.map +1 -0
  168. package/dist/helpers/offlineSuppression.js +8 -0
  169. package/dist/helpers/platform.d.ts +1 -1
  170. package/dist/helpers/platform.d.ts.map +1 -1
  171. package/dist/helpers/platform.js +5 -4
  172. package/dist/helpers/showFeatureFeedback.module.css.js +4 -4
  173. package/dist/helpers/showNotifications.d.ts.map +1 -1
  174. package/dist/helpers/showNotifications.js +30 -29
  175. package/dist/helpers/showNotifications.module.css.js +1 -1
  176. package/dist/hooks/useOutsideClick.d.ts +1 -1
  177. package/dist/hooks/useOutsideClick.d.ts.map +1 -1
  178. package/dist/index.css +1 -1
  179. package/dist/index.d.ts +2 -1
  180. package/dist/index.d.ts.map +1 -1
  181. package/dist/index.js +467 -465
  182. package/dist/lang/locales/ui_en.json.js +18 -20
  183. package/dist/lang/locales/ui_es.json.js +12 -14
  184. package/dist/lang/locales/ui_ru.json.js +13 -15
  185. package/dist/node_modules/countries-and-timezones/esm/index.js +281 -4011
  186. package/docs/README.md +499 -499
  187. package/package.json +75 -75
  188. package/dist/components/FilePicker/coverCollections.d.ts +0 -4
  189. package/dist/components/FilePicker/coverCollections.d.ts.map +0 -1
  190. package/dist/components/FilePicker/coverCollections.js +0 -164
@@ -1,138 +1,121 @@
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";
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";
8
8
  function k({
9
- isActive: s,
9
+ isActive: i,
10
10
  round: m,
11
- disabled: u,
12
- onClick: d,
13
- children: i,
14
- tooltipLabel: f
11
+ disabled: a,
12
+ onClick: h,
13
+ children: c
15
14
  }) {
16
- const v = /* @__PURE__ */ r(
17
- U,
15
+ return /* @__PURE__ */ o(
16
+ H,
18
17
  {
19
18
  type: "button",
20
- className: `${c.inlineSwatch}${m ? ` ${c.inlineSwatchRound}` : ""}${s ? ` ${c.inlineSwatchActive}` : ""}`,
21
- onMouseDown: (C) => C.preventDefault(),
22
- onClick: d,
23
- disabled: u,
24
- children: i
19
+ className: `${t.inlineSwatch}${m ? ` ${t.inlineSwatchRound}` : ""}${i ? ` ${t.inlineSwatchActive}` : ""}`,
20
+ onMouseDown: (p) => p.preventDefault(),
21
+ onClick: h,
22
+ disabled: a,
23
+ children: c
25
24
  }
26
25
  );
27
- return f ? /* @__PURE__ */ r(P, { label: f, withArrow: !0, children: v }) : v;
28
26
  }
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)
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)
35
33
  );
36
- return [{ value: e, sectionKey: o, border: t }, ...n].slice(0, d);
37
- })), m(e, o);
34
+ return [{ value: e, sectionKey: r, border: n }, ...f].slice(0, h);
35
+ })), m(e, r);
38
36
  },
39
- [m, u, F]
40
- ), g = I(() => {
37
+ [m, a, g]
38
+ ), A = T(() => {
41
39
  const e = {};
42
- for (const o of s) e[o.key] = o;
40
+ for (const r of i) e[r.key] = r;
43
41
  return e;
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]
42
+ }, [i]), b = w(
43
+ (e) => I(e) ? S ? "#FFFFFF" : "#000000" : e,
44
+ [S]
58
45
  );
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(
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(
65
52
  k,
66
53
  {
67
54
  isActive: !1,
68
- disabled: i,
69
- tooltipLabel: n,
70
- onClick: () => p(e.value, e.sectionKey ?? ""),
71
- children: /* @__PURE__ */ r(
72
- K,
55
+ disabled: c,
56
+ onClick: () => d(e.value, e.sectionKey ?? ""),
57
+ children: /* @__PURE__ */ o(
58
+ F,
73
59
  {
74
60
  size: 20,
75
- color: N(e.value),
61
+ color: b(e.value),
76
62
  showBorder: !0
77
63
  }
78
64
  )
79
65
  },
80
- `${e.sectionKey}-${e.value}-${o}`
81
- ) : /* @__PURE__ */ r(
66
+ `${e.sectionKey}-${e.value}-${r}`
67
+ ) : /* @__PURE__ */ o(
82
68
  k,
83
69
  {
84
70
  isActive: !1,
85
71
  round: !0,
86
- disabled: i,
87
- tooltipLabel: n,
88
- onClick: () => p(e.value, e.sectionKey ?? ""),
89
- children: /* @__PURE__ */ r(
90
- D,
72
+ disabled: c,
73
+ onClick: () => d(e.value, e.sectionKey ?? ""),
74
+ children: /* @__PURE__ */ o(
75
+ N,
91
76
  {
92
77
  bgColor: e.value,
93
78
  borderColor: e.border || "var(--mantine-color-default-border)"
94
79
  }
95
80
  )
96
81
  },
97
- `${e.sectionKey}-${e.value}-${o}`
82
+ `${e.sectionKey}-${e.value}-${r}`
98
83
  );
99
84
  }) })
100
85
  ] }),
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(
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(
108
93
  k,
109
94
  {
110
- isActive: b,
95
+ isActive: s,
111
96
  round: !0,
112
- disabled: i,
113
- tooltipLabel: A,
114
- onClick: () => p(l, e.key, n),
115
- children: /* @__PURE__ */ r(
116
- D,
97
+ disabled: c,
98
+ onClick: () => d(l, e.key, f),
99
+ children: /* @__PURE__ */ o(
100
+ N,
117
101
  {
118
102
  bgColor: l,
119
- borderColor: n || R
103
+ borderColor: f || $
120
104
  }
121
105
  )
122
106
  },
123
107
  l
124
- ) : /* @__PURE__ */ r(
108
+ ) : /* @__PURE__ */ o(
125
109
  k,
126
110
  {
127
- isActive: b,
128
- disabled: i,
129
- tooltipLabel: A,
130
- onClick: () => p(l, e.key),
131
- children: /* @__PURE__ */ r(
132
- K,
111
+ isActive: s,
112
+ disabled: c,
113
+ onClick: () => d(l, e.key),
114
+ children: /* @__PURE__ */ o(
115
+ F,
133
116
  {
134
117
  size: 20,
135
- color: R,
118
+ color: $,
136
119
  showBorder: !0
137
120
  }
138
121
  )
@@ -145,5 +128,5 @@ const Y = z(({ sections: s, onChange: m, withRecentColors: u, maxRecentColors: d
145
128
  ] });
146
129
  });
147
130
  export {
148
- Y as ColorPickerToolbar
131
+ Q as ColorPickerToolbar
149
132
  };
@@ -1,4 +1,4 @@
1
- import { jsx as n, jsxs as c } from "react/jsx-runtime";
1
+ import { jsxs as c, jsx as n } from "react/jsx-runtime";
2
2
  function s({
3
3
  size: t = 20,
4
4
  color: r = "var(--mantine-color-white)",
@@ -1,15 +1,15 @@
1
- const o = "_commentComposerWrapper_f5dl7_1", e = "_commentComposerFloat_f5dl7_135", r = "_composerContainer_f5dl7_193", t = "_editorWrapper_f5dl7_225", p = "_editMode_f5dl7_361", m = {
1
+ const o = "_commentComposerWrapper_1mv8w_1", e = "_commentComposerFloat_1mv8w_68", r = "_composerContainer_1mv8w_97", t = "_editorWrapper_1mv8w_113", m = "_editMode_1mv8w_181", p = {
2
2
  commentComposerWrapper: o,
3
3
  commentComposerFloat: e,
4
4
  composerContainer: r,
5
5
  editorWrapper: t,
6
- editMode: p
6
+ editMode: m
7
7
  };
8
8
  export {
9
9
  e as commentComposerFloat,
10
10
  o as commentComposerWrapper,
11
11
  r as composerContainer,
12
- m as default,
13
- p as editMode,
12
+ p as default,
13
+ m 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,4CAwJA,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,4CAuJA,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { jsx as S } from "react/jsx-runtime";
2
- import { useRef as x, useEffect as m } from "react";
3
- import { useTranslation as D } from "react-i18next";
2
+ import { useRef as D, useEffect as m } from "react";
3
+ import { useTranslation as T } 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 = x(null), L = i || f, { t: r } = D(P);
18
+ const p = D(null), L = i || f, { t: r } = T(P);
19
19
  return m(() => {
20
20
  const o = (e) => {
21
21
  if (e.code === "Enter" && !e.shiftKey) {
@@ -85,7 +85,6 @@ const W = ({
85
85
  cancel: r("editor.composer.cancel")
86
86
  },
87
87
  icon: null,
88
- zIndex: 301,
89
88
  onConfirm: () => c?.()
90
89
  });
91
90
  return;
@@ -296,7 +296,7 @@ const Ne = ({
296
296
  offset: 10,
297
297
  withinPortal: !1,
298
298
  floatingStrategy: "fixed",
299
- zIndex: 300,
299
+ zIndex: 100,
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").MutableRefObject<HTMLDivElement | null>;
13
+ export declare function useVirtualAnchor({ isFloat, updateLocation, selectionRef, selectionState, }: UseVirtualAnchorProps): import("react").RefObject<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,2DAsHvB"}
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,4 +1,4 @@
1
- const s = "_section_6nzxb_1", t = {
1
+ const s = "_section_s7rqu_1", t = {
2
2
  section: s
3
3
  };
4
4
  export {
@@ -1,4 +1,4 @@
1
- const r = "_brandingWrapper_ag0no_1", a = {
1
+ const r = "_brandingWrapper_vvk0o_1", a = {
2
2
  brandingWrapper: r
3
3
  };
4
4
  export {
@@ -1,4 +1,4 @@
1
- const o = "_root_122b9_1", t = {
1
+ const o = "_root_195do_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,4CAiTA,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,4CAmTA,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { jsxs as y, jsx as t } from "react/jsx-runtime";
2
- import { useState as d, useRef as p, useEffect as R, useCallback as K } from "react";
2
+ import { useState as u, useRef as d, 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 pe } from "./constants.js";
14
- import { getEmojis as me } from "./utils.js";
13
+ import { frequentEmoji as me } from "./constants.js";
14
+ import { getEmojis as pe } 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: u,
30
+ locales: m,
31
31
  onChange: C,
32
32
  onClose: M,
33
33
  setRandomIcon: P,
34
- querySearch: m
34
+ querySearch: p
35
35
  }) => {
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);
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);
37
37
  R(() => {
38
- if (typeof m == "string") {
39
- const e = m.slice(1);
40
- if (w(e), a) {
38
+ if (typeof p == "string") {
39
+ const e = p.slice(1);
40
+ if (S(e), a) {
41
41
  const o = a.search(e);
42
42
  j(o.map((r) => r.item.e));
43
43
  }
44
44
  }
45
- }, [m, a]), R(() => {
45
+ }, [p, a]), R(() => {
46
46
  (async () => {
47
- const o = await me(), r = o.flatMap(
47
+ const o = await pe(), 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 = pe.map(
54
+ ), s = me.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 (w(o), a) {
77
+ if (S(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 m == "string";
115
+ }, J = typeof p == "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: S,
132
- placeholder: `${u?.search}...`,
131
+ value: w,
132
+ placeholder: `${m?.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: u?.random || G("random"), children: /* @__PURE__ */ t(
145
+ /* @__PURE__ */ t(ce, { withArrow: !0, label: 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: S ? /* @__PURE__ */ y(v, { flex: 1, align: "stretch", children: [
178
+ children: w ? /* @__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: u?.searchResults })
188
+ children: /* @__PURE__ */ t(q, { fz: "sm", c: "dimmed", children: m?.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: u?.searchNoResults,
204
+ description: m?.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: "transparent",
220
+ bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-6))",
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: u?.emojiCategory?.[e.i] })
227
+ children: /* @__PURE__ */ t(q, { fz: "xs", c: "dimmed", children: m?.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
- icons?: string;
34
33
  random?: string;
34
+ icons?: 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,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"}
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"}
@@ -30,7 +30,6 @@ const ee = ({
30
30
  emojis: e("emojis"),
31
31
  remove: e("remove"),
32
32
  search: e("search"),
33
- random: e("random"),
34
33
  searchResults: e("emojiPicker.searchResults"),
35
34
  icons: e("emojiPicker.icons"),
36
35
  searchNoResults: e("emojiPicker.searchNoResults"),
@@ -1,13 +1,13 @@
1
- const o = "_item_s1gb0_1", s = "_randomIcon_s1gb0_51", a = "_originalTab_s1gb0_59", n = "_customTab_s1gb0_71", t = {
1
+ const o = "_item_o1hlf_1", a = "_randomIcon_o1hlf_26", n = "_originalTab_o1hlf_30", t = "_customTab_o1hlf_36", _ = {
2
2
  item: o,
3
- randomIcon: s,
4
- originalTab: a,
5
- customTab: n
3
+ randomIcon: a,
4
+ originalTab: n,
5
+ customTab: t
6
6
  };
7
7
  export {
8
- n as customTab,
9
- t as default,
8
+ t as customTab,
9
+ _ as default,
10
10
  o as item,
11
- a as originalTab,
12
- s as randomIcon
11
+ n as originalTab,
12
+ a 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(a, c, l = 500) {
17
- const u = [], p = a.length;
16
+ async function le(c, a, l = 500) {
17
+ const u = [], p = c.length;
18
18
  for (let r = 0; r < p; r += l) {
19
- const w = a.slice(r, r + l).filter(c);
19
+ const w = c.slice(r, r + l).filter(a);
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: a,
27
- locales: c,
26
+ showColors: c,
27
+ locales: a,
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
- ), a || p());
68
+ ), c || 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 })), !a && !C && p();
80
+ S([]), l?.(I.stringify({ icon: o, color: i?.color })), !c && !C && p();
81
81
  };
82
82
  return /* @__PURE__ */ m(y, { w: "100%", gap: "sm", pt: 12, pb: 8, h: "100%", children: [
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") }),
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") }),
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: `${c?.search}...`,
120
+ placeholder: `${a?.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: c?.random || k("random"), children: /* @__PURE__ */ e(
133
+ /* @__PURE__ */ e(Z, { withArrow: !0, label: 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: c?.searchResults })
171
+ children: /* @__PURE__ */ e(b, { fz: "xs", fw: 500, lh: "140%", c: "dimmed", children: a?.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: c?.searchNoResults,
206
+ description: a?.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":"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"}
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"}