@layers-app/shared 0.3.0 → 0.3.1
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.
- package/dist/assets/default-workspace-avatar.jpg.js +4 -0
- package/dist/assets/layers-logo-full.svg.js +2 -3
- package/dist/assets/layers-logo-full.svg2.js +3 -2
- package/dist/assets/layers-logo-icon.svg.js +2 -3
- package/dist/assets/layers-logo-icon.svg2.js +3 -2
- package/dist/assets/projects/figureA.svg.js +4 -0
- package/dist/assets/projects/figureB.svg.js +4 -0
- package/dist/assets/qwebchannel.d.ts +15 -0
- package/dist/assets/qwebchannel.d.ts.map +1 -0
- package/dist/assets/taskPriorities/high.svg.js +5 -0
- package/dist/assets/taskPriorities/low.svg.js +5 -0
- package/dist/assets/taskPriorities/none.svg.js +5 -0
- package/dist/assets/taskPriorities/normal.svg.js +5 -0
- package/dist/assets/taskPriorities/urgent.svg.js +5 -0
- package/dist/components/AnimatedFigurePage/AnimatedFigurePage.d.ts +3 -0
- package/dist/components/AnimatedFigurePage/AnimatedFigurePage.d.ts.map +1 -0
- package/dist/components/AnimatedFigurePage/AnimatedFigurePage.js +69 -0
- package/dist/components/AnimatedFigurePage/AnimatedFigurePage.module.css.js +27 -0
- package/dist/components/AnimatedFigurePage/types.d.ts +15 -0
- package/dist/components/AnimatedFigurePage/types.d.ts.map +1 -0
- package/dist/components/AnimatedFigurePage/useParallax.d.ts +6 -0
- package/dist/components/AnimatedFigurePage/useParallax.d.ts.map +1 -0
- package/dist/components/AnimatedFigurePage/useParallax.js +29 -0
- package/dist/components/AppContainer/AppContainer.d.ts +1 -1
- package/dist/components/AppContainer/AppContainer.d.ts.map +1 -1
- package/dist/components/AppContainer/AppContainer.js +37 -36
- package/dist/components/AppContainer/AppContainer.module.css.js +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +80 -45
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +60 -69
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainer.js +57 -51
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.d.ts.map +1 -1
- package/dist/components/AppContainer/hooks/useAppContainerDataStore.js +3 -1
- package/dist/components/AppContainer/types.d.ts +3 -0
- package/dist/components/AppContainer/types.d.ts.map +1 -1
- package/dist/components/AppShell/AppShell.module.css.js +5 -5
- package/dist/components/AttachmentsGalleryModal/components/ShakePlayer/ShakaPlayer.module.css.js +4 -4
- package/dist/components/AttachmentsGalleryModal/styles.module.css.js +14 -14
- package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +1 -1
- package/dist/components/BouncingLogo/BouncingLogo.module.css.js +8 -8
- package/dist/components/CollapsibleContainer/CollapsibleContainer.module.css.js +1 -1
- package/dist/components/ColorPicker/ColorPickerPopover.d.ts +6 -6
- package/dist/components/ColorPicker/ColorPickerPopover.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPickerPopover.js +29 -31
- package/dist/components/CommentComposer/CommentComposer.module.css.js +4 -4
- package/dist/components/CommentComposer/index.d.ts.map +1 -1
- package/dist/components/CommentComposer/index.js +115 -111
- package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
- package/dist/components/Copyright/Copyright.module.css.js +1 -1
- package/dist/components/CustomKBD/CustomKBD.module.css.js +1 -1
- package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPanel.js +12 -10
- package/dist/components/EmojiPicker/EmojiPicker.d.ts +3 -1
- package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.js +49 -46
- package/dist/components/EmojiPicker/EmojiPicker.module.css.js +8 -8
- package/dist/components/EmojiPicker/IconsPanel.d.ts +2 -1
- package/dist/components/EmojiPicker/IconsPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/IconsPanel.js +47 -45
- package/dist/components/EmojiPicker/custom-icons/customIcons.d.ts.map +1 -1
- package/dist/components/EmojiPicker/custom-icons/customIcons.js +66 -31
- package/dist/components/EntityIcon.d.ts +3 -3
- package/dist/components/EntityIcon.d.ts.map +1 -1
- package/dist/components/EntityIcon.js +59 -35
- package/dist/components/EntityTitle/EntityTitle.d.ts +1 -1
- package/dist/components/EntityTitle/EntityTitle.d.ts.map +1 -1
- package/dist/components/EntityTitle/EntityTitle.js +34 -34
- package/dist/components/EntityTitle/EntityTitle.module.css.js +1 -1
- package/dist/components/ErrorPage/components/Error404.d.ts.map +1 -1
- package/dist/components/FeatureProgress/FeatureProgress.module.css.js +49 -49
- package/dist/components/FilePicker/FilePicker.d.ts +4 -2
- package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePicker.js +241 -238
- package/dist/components/FilePicker/FilePicker.module.css.js +14 -12
- package/dist/components/FilePicker/FilePickerGallery.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerGallery.js +60 -34
- package/dist/components/FilePicker/FilePickerGiphy.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerGiphy.js +35 -36
- package/dist/components/FilePicker/FilePickerLink.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerLink.js +26 -23
- package/dist/components/FilePicker/FilePickerUnsplash.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUnsplash.js +42 -43
- package/dist/components/FilePicker/FilePickerUpload.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePickerUpload.js +60 -42
- package/dist/components/FilePicker/coverCollections.d.ts +4 -0
- package/dist/components/FilePicker/coverCollections.d.ts.map +1 -0
- package/dist/components/FilePicker/coverCollections.js +164 -0
- package/dist/components/FilePicker/index.d.ts +1 -0
- package/dist/components/FilePicker/index.d.ts.map +1 -1
- package/dist/components/FormViewer/FormViewer.module.css.js +20 -20
- package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/DropdownField/DropdownField.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/EditableContent/EditableContent.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/SelectableCard/SelectableCard.module.css.js +8 -8
- package/dist/components/FormViewer/components/fields/UploadField/UploadField.d.ts.map +1 -1
- package/dist/components/FormViewer/components/fields/UploadField/UploadField.js +34 -33
- package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +4 -4
- package/dist/components/FormViewer/hooks/useFormGlobalTheme.d.ts +3 -3
- package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
- package/dist/components/ImageCropper/ImageCropper.module.css.js +38 -38
- package/dist/components/IntegrationFlowAnimation/IntegrationFlowAnimation.module.css.js +11 -11
- package/dist/components/LanguagePicker/LanguagePicker.module.css.js +1 -1
- package/dist/components/Loaders/styles.module.css.js +6 -6
- package/dist/components/Logotype.d.ts +2 -1
- package/dist/components/Logotype.d.ts.map +1 -1
- package/dist/components/Logotype.js +58 -49
- package/dist/components/MediaLibrary/MediaLibrary.module.css.js +2 -2
- package/dist/components/NavMenu/NavMenu.module.css.js +12 -12
- package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuItem.js +122 -107
- package/dist/components/NavMenu/types.d.ts +1 -0
- package/dist/components/NavMenu/types.d.ts.map +1 -1
- package/dist/components/NavbarResizer/NavbarResizer.module.css.js +2 -2
- package/dist/components/NotPublicPanel/NotPublicPanel.module.css.js +11 -11
- package/dist/components/Notification/Notification.module.css.js +1 -1
- package/dist/components/OnBoarding/steps/DifferentLayouts/styles.module.css.js +3 -3
- package/dist/components/OnBoarding/steps/styles.module.css.js +9 -9
- package/dist/components/OnBoarding/styles.module.css.js +7 -7
- package/dist/components/ProjectIcon/ProjectIcon.js +13 -13
- package/dist/components/SearchFilters/SearchFilters.module.css.js +1 -1
- package/dist/components/SettingsSection/styles.module.css.js +1 -1
- package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +1 -1
- package/dist/components/TreeIndent/TreeIndent.d.ts +9 -0
- package/dist/components/TreeIndent/TreeIndent.d.ts.map +1 -0
- package/dist/components/TreeIndent/TreeIndent.js +15 -0
- package/dist/components/TreeIndent/TreeIndent.module.css.js +11 -0
- package/dist/components/TreeIndent/index.d.ts +2 -0
- package/dist/components/TreeIndent/index.d.ts.map +1 -0
- package/dist/components/WorkspaceAvatar/WorkspaceAvatar.js +11 -11
- package/dist/components/WorkspaceMenu/WorkspaceMenu.d.ts.map +1 -1
- package/dist/components/WorkspaceMenu/WorkspaceMenu.js +97 -101
- package/dist/components/modals/RemoveConfirmModal.d.ts.map +1 -1
- package/dist/components/table/FrontTable.d.ts.map +1 -1
- package/dist/components/table/hooks/useColumnsResizing.d.ts.map +1 -1
- package/dist/config/brand.d.ts +1 -0
- package/dist/config/brand.d.ts.map +1 -1
- package/dist/config/brand.js +42 -34
- package/dist/config/envConfig.d.ts +40 -0
- package/dist/config/envConfig.d.ts.map +1 -1
- package/dist/config/envConfig.js +29 -10
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +15 -4
- package/dist/helpers/getFileIcons.d.ts.map +1 -1
- package/dist/helpers/getFileIcons.js +34 -29
- package/dist/helpers/getFileType.d.ts +1 -1
- package/dist/helpers/getFileType.d.ts.map +1 -1
- package/dist/helpers/getFileType.js +3 -3
- package/dist/helpers/hotjar.d.ts.map +1 -1
- package/dist/helpers/hotjar.js +11 -7
- package/dist/helpers/platform.js +4 -4
- package/dist/helpers/showFeatureFeedback.module.css.js +4 -4
- package/dist/helpers/showNotifications.d.ts +3 -0
- package/dist/helpers/showNotifications.d.ts.map +1 -1
- package/dist/helpers/showNotifications.js +79 -44
- package/dist/helpers/showNotifications.module.css.js +1 -1
- package/dist/hooks/useDateFnsLocale.d.ts +2 -0
- package/dist/hooks/useDateFnsLocale.d.ts.map +1 -1
- package/dist/hooks/useDateFnsLocale.js +9 -8
- package/dist/hooks/useDateUtils.d.ts.map +1 -1
- package/dist/hooks/useDateUtils.js +19 -19
- package/dist/hooks/useFormatDistance.d.ts.map +1 -1
- package/dist/hooks/useFormatDistance.js +6 -6
- package/dist/hooks/useNumberQueryParam.d.ts +1 -1
- package/dist/hooks/useNumberQueryParam.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +504 -492
- package/dist/lang/locales/ui_en.json.js +15 -15
- package/dist/lang/locales/ui_es.json.js +11 -11
- package/dist/lang/locales/ui_ru.json.js +16 -16
- package/dist/utils/formatStorage.d.ts +9 -0
- package/dist/utils/formatStorage.d.ts.map +1 -1
- package/dist/utils/formatStorage.js +14 -10
- package/docs/README.md +499 -499
- package/package.json +75 -75
|
@@ -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,
|
|
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"}
|
|
@@ -3,7 +3,7 @@ import { useState as u, useRef as d, useEffect as R, useCallback as K } from "re
|
|
|
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";
|
|
6
|
-
import { Stack as v, FocusTrap as ne, Flex as
|
|
6
|
+
import { Stack as v, FocusTrap as ne, Flex as z, TextInput as ie, Tooltip as ce, ActionIcon as A, Paper as F, Text as q, SimpleGrid as N } from "@mantine/core";
|
|
7
7
|
import { useEvent as se } from "draggable-ui";
|
|
8
8
|
import ae from "fuse.js";
|
|
9
9
|
import le from "../../assets/svg/dog.svg.js";
|
|
@@ -33,7 +33,7 @@ const he = [
|
|
|
33
33
|
setRandomIcon: P,
|
|
34
34
|
querySearch: p
|
|
35
35
|
}) => {
|
|
36
|
-
const [b, k] = u("frequent"),
|
|
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
38
|
if (typeof p == "string") {
|
|
39
39
|
const e = p.slice(1);
|
|
@@ -88,20 +88,20 @@ const he = [
|
|
|
88
88
|
})
|
|
89
89
|
), M());
|
|
90
90
|
}), Y = (e) => {
|
|
91
|
-
const o =
|
|
91
|
+
const o = I.current, r = h.current[e.i];
|
|
92
92
|
if (!o || !r) return;
|
|
93
93
|
g.current = !0, l.current = e.i, k(e.i);
|
|
94
94
|
const s = r.offsetTop - o.offsetTop;
|
|
95
95
|
o.scrollTo({ top: s, behavior: "smooth" });
|
|
96
96
|
}, $ = () => {
|
|
97
|
-
const e =
|
|
97
|
+
const e = I.current;
|
|
98
98
|
if (!e) return;
|
|
99
99
|
const o = e.scrollTop;
|
|
100
100
|
if (g.current && l.current) {
|
|
101
101
|
const f = h.current[l.current];
|
|
102
102
|
if (f) {
|
|
103
103
|
const i = f.offsetTop - e.offsetTop;
|
|
104
|
-
Math.abs(i - o) < 12 && (g.current = !1,
|
|
104
|
+
Math.abs(i - o) < 12 && (g.current = !1, x.current = l.current, k(l.current), l.current = null);
|
|
105
105
|
}
|
|
106
106
|
if (g.current) return;
|
|
107
107
|
}
|
|
@@ -111,11 +111,11 @@ const he = [
|
|
|
111
111
|
const n = Math.abs(i.offsetTop - e.offsetTop - o);
|
|
112
112
|
n < s && (s = n, r = f);
|
|
113
113
|
}
|
|
114
|
-
}), r !==
|
|
114
|
+
}), r !== x.current && (x.current = r, k(r));
|
|
115
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,
|
|
119
119
|
{
|
|
120
120
|
my: "sm",
|
|
121
121
|
justify: "space-between",
|
|
@@ -173,13 +173,14 @@ const he = [
|
|
|
173
173
|
style: {
|
|
174
174
|
overflowY: "auto"
|
|
175
175
|
},
|
|
176
|
-
ref:
|
|
176
|
+
ref: I,
|
|
177
177
|
onScroll: $,
|
|
178
178
|
children: w ? /* @__PURE__ */ y(v, { flex: 1, align: "stretch", children: [
|
|
179
179
|
!J && /* @__PURE__ */ t(
|
|
180
180
|
F,
|
|
181
181
|
{
|
|
182
182
|
py: 6,
|
|
183
|
+
px: 6,
|
|
183
184
|
pos: "sticky",
|
|
184
185
|
top: -1,
|
|
185
186
|
style: { zIndex: 1 },
|
|
@@ -196,7 +197,7 @@ const he = [
|
|
|
196
197
|
children: e
|
|
197
198
|
},
|
|
198
199
|
e
|
|
199
|
-
)) }) : /* @__PURE__ */ t(
|
|
200
|
+
)) }) : /* @__PURE__ */ t(z, { flex: 1, justify: "center", align: "stretch", children: /* @__PURE__ */ t(
|
|
200
201
|
ue,
|
|
201
202
|
{
|
|
202
203
|
size: 100,
|
|
@@ -218,6 +219,7 @@ const he = [
|
|
|
218
219
|
{
|
|
219
220
|
bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-6))",
|
|
220
221
|
py: 2,
|
|
222
|
+
px: 6,
|
|
221
223
|
pos: "sticky",
|
|
222
224
|
top: -1,
|
|
223
225
|
h: 23,
|
|
@@ -242,7 +244,7 @@ const he = [
|
|
|
242
244
|
}
|
|
243
245
|
) }),
|
|
244
246
|
/* @__PURE__ */ t(
|
|
245
|
-
|
|
247
|
+
z,
|
|
246
248
|
{
|
|
247
249
|
style: {
|
|
248
250
|
borderTop: "1px solid var(--tab-border-color)"
|
|
@@ -20,6 +20,8 @@ export type EmojiPickerProps = {
|
|
|
20
20
|
triggerRegex?: RegExp;
|
|
21
21
|
/** Monotonically increasing counter updated by the parent on each keypress; used to detect real-time typing. */
|
|
22
22
|
typingSeq?: number;
|
|
23
|
+
/** If true, clicking the random icon button will not close the popover. Default: false */
|
|
24
|
+
keepOpenOnRandom?: boolean;
|
|
23
25
|
};
|
|
24
26
|
export type EmojiPickerLocales = {
|
|
25
27
|
emojis?: string;
|
|
@@ -31,5 +33,5 @@ export type EmojiPickerLocales = {
|
|
|
31
33
|
icons?: string;
|
|
32
34
|
emojiCategory?: Record<string, string>;
|
|
33
35
|
};
|
|
34
|
-
export declare const EmojiPicker: ({ project, value, querySearch, children, onChange, position, popoverProps, showIcons, showColors, defaultActiveTab, showEmojis, withinPortal, locales: _locales, openWhen, triggerRegex, typingSeq, showRemoveButton, }: PropsWithChildren<EmojiPickerProps>) => import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
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;
|
|
35
37
|
//# sourceMappingURL=EmojiPicker.d.ts.map
|
|
@@ -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;
|
|
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,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,31 +1,32 @@
|
|
|
1
1
|
import { jsxs as j, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { useState as d, useMemo as
|
|
3
|
-
import { useTranslation as
|
|
4
|
-
import { Popover as k, Center as
|
|
5
|
-
import { IconEntity as
|
|
6
|
-
import { EmojiPanel as
|
|
7
|
-
import { IconsPanel as
|
|
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:
|
|
12
|
+
querySearch: l,
|
|
13
13
|
children: N,
|
|
14
14
|
onChange: p,
|
|
15
15
|
position: R = "bottom-start",
|
|
16
|
-
popoverProps:
|
|
16
|
+
popoverProps: P,
|
|
17
17
|
showIcons: u,
|
|
18
18
|
showColors: D,
|
|
19
19
|
defaultActiveTab: I = null,
|
|
20
|
-
showEmojis:
|
|
20
|
+
showEmojis: s = !0,
|
|
21
21
|
withinPortal: w = !1,
|
|
22
22
|
locales: h,
|
|
23
23
|
openWhen: g = "click",
|
|
24
|
-
triggerRegex:
|
|
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 } =
|
|
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 &&
|
|
53
|
+
const m = u && J.parse(i)?.icon ? "icons" : s ? "emojis" : null;
|
|
52
54
|
!n && m && y(m);
|
|
53
|
-
}, [n,
|
|
55
|
+
}, [n, s, u, i]), v(() => {
|
|
54
56
|
if (g !== "realtime" || typeof c != "number" || x === c) return;
|
|
55
|
-
|
|
56
|
-
const m =
|
|
57
|
-
r(
|
|
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
|
-
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
l,
|
|
65
|
+
b,
|
|
66
|
+
s
|
|
65
67
|
]);
|
|
66
|
-
const
|
|
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
|
-
...
|
|
98
|
+
...P || {},
|
|
97
99
|
children: [
|
|
98
100
|
/* @__PURE__ */ o(k.Target, { children: /* @__PURE__ */ o(
|
|
99
|
-
|
|
101
|
+
E,
|
|
100
102
|
{
|
|
101
|
-
onClick: g === "click" && !
|
|
102
|
-
children: N ??
|
|
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
|
-
|
|
108
|
+
t,
|
|
107
109
|
{
|
|
108
|
-
value:
|
|
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
|
-
!
|
|
127
|
-
|
|
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
|
-
|
|
136
|
-
|
|
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:
|
|
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
|
-
|
|
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:
|
|
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
|
-
|
|
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:
|
|
169
|
+
children: a.remove
|
|
168
170
|
}
|
|
169
171
|
)
|
|
170
172
|
]
|
|
171
173
|
}
|
|
172
174
|
),
|
|
173
|
-
/* @__PURE__ */ o(
|
|
174
|
-
|
|
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:
|
|
179
|
-
locales:
|
|
180
|
-
setRandomIcon:
|
|
180
|
+
querySearch: l,
|
|
181
|
+
locales: a,
|
|
182
|
+
setRandomIcon: B,
|
|
181
183
|
onClose: () => r(!1)
|
|
182
184
|
}
|
|
183
185
|
) }),
|
|
184
186
|
/* @__PURE__ */ o(
|
|
185
|
-
|
|
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
|
-
|
|
194
|
+
U,
|
|
193
195
|
{
|
|
194
196
|
project: C,
|
|
195
197
|
onChange: p,
|
|
196
198
|
value: i,
|
|
197
|
-
locales:
|
|
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
|
-
|
|
215
|
+
ee as EmojiPicker
|
|
213
216
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const o = "
|
|
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:
|
|
4
|
-
originalTab:
|
|
5
|
-
customTab:
|
|
3
|
+
randomIcon: s,
|
|
4
|
+
originalTab: a,
|
|
5
|
+
customTab: n
|
|
6
6
|
};
|
|
7
7
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
n as customTab,
|
|
9
|
+
t as default,
|
|
10
10
|
o as item,
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
a as originalTab,
|
|
12
|
+
s as randomIcon
|
|
13
13
|
};
|
|
@@ -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,
|
|
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
|
|
3
|
-
import { useTranslation as
|
|
4
|
-
import { Search01Icon as
|
|
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
|
|
7
|
-
import { useEvent as
|
|
8
|
-
import { groupBy as
|
|
9
|
-
import { DEFAULT_VALUES as
|
|
10
|
-
import { ColorPicker as
|
|
11
|
-
import { NoData as
|
|
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
|
|
14
|
+
import { getIconsList as F, getRandomIcon as ae } from "./utils.js";
|
|
15
15
|
import h from "./EmojiPicker.module.css.js";
|
|
16
|
-
async function
|
|
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
|
|
20
|
-
u.push(...
|
|
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
|
|
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
|
|
34
|
+
const w = _(), [f, R] = x(""), { t: k } = G("ui"), [P, $] = x(
|
|
34
35
|
[]
|
|
35
36
|
);
|
|
36
|
-
|
|
37
|
+
U(() => {
|
|
37
38
|
(async () => {
|
|
38
|
-
const t = await F(r), s =
|
|
39
|
-
|
|
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([]),
|
|
48
|
+
const [T, S] = x([]), H = V(
|
|
48
49
|
async (o) => {
|
|
49
50
|
const t = o.currentTarget.value;
|
|
50
|
-
|
|
51
|
-
const s = await F(r), v = await
|
|
51
|
+
R(t);
|
|
52
|
+
const s = await F(r), v = await le(
|
|
52
53
|
s,
|
|
53
|
-
(d) => d.t.split(",").some((
|
|
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 =
|
|
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 ||
|
|
70
|
-
theme:
|
|
71
|
-
}),
|
|
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":
|
|
77
|
-
}, [n]),
|
|
78
|
-
const o = await
|
|
79
|
-
S([]), l?.(I.stringify({ icon: o, color: i?.color })), c
|
|
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
|
-
|
|
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(
|
|
115
|
-
|
|
115
|
+
/* @__PURE__ */ e(W, { active: !0, children: /* @__PURE__ */ e(
|
|
116
|
+
X,
|
|
116
117
|
{
|
|
117
|
-
leftSection: /* @__PURE__ */ e(L, { size: 16, icon:
|
|
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(
|
|
133
|
-
|
|
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:
|
|
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:
|
|
147
|
+
icon: Y
|
|
147
148
|
}
|
|
148
149
|
)
|
|
149
150
|
}
|
|
150
151
|
) })
|
|
151
152
|
] }),
|
|
152
|
-
/* @__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
|
-
|
|
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
|
-
] }) :
|
|
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
|
-
|
|
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;
|
|
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"}
|