@layers-app/shared 0.2.4 → 0.2.5
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/jsons/emoji-categorized-windows.json.js +4 -0
- package/dist/assets/jsons/emoji-categorized-windows10.json.js +4 -0
- package/dist/assets/svg/users.svg.js +5 -0
- package/dist/assets/svg/whatsapp-icon.svg.js +5 -0
- package/dist/components/AliasTextInput/AliasTextInput.d.ts +3 -1
- package/dist/components/AliasTextInput/AliasTextInput.d.ts.map +1 -1
- package/dist/components/AliasTextInput/AliasTextInput.js +63 -54
- 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 +48 -45
- package/dist/components/AppContainer/AppContainer.module.css.js +1 -1
- package/dist/components/AppContainer/components/AppSidebarButton.js +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/AppsSection.js +5 -5
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.d.ts.map +1 -1
- package/dist/components/AppContainer/components/AppsSidebar/UserSection.js +56 -43
- package/dist/components/AppContainer/components/Main.d.ts +5 -1
- package/dist/components/AppContainer/components/Main.d.ts.map +1 -1
- package/dist/components/AppContainer/components/Main.js +11 -8
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.d.ts.map +1 -1
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.js +34 -19
- package/dist/components/AppContainer/components/menus/HelpMenu/HelpMenu.module.css.js +1 -1
- package/dist/components/AppContainer/components/menus/MoreMenu.js +8 -8
- package/dist/components/AppContainer/components/menus/UserMenu/MenuUserDropdown.d.ts +1 -0
- package/dist/components/AppContainer/components/menus/UserMenu/MenuUserDropdown.d.ts.map +1 -1
- package/dist/components/AppContainer/types.d.ts +1 -0
- package/dist/components/AppContainer/types.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryModal.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/AttachmentsGalleryModal.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/GallerySlide.js +5 -5
- package/dist/components/AttachmentsGalleryModal/components/ModalFooter.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ModalFooter.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ModalFooter.js +4 -4
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/components/ModalHeader.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useDownloadFile.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts +1 -1
- package/dist/components/AttachmentsGalleryModal/hooks/useGetPreviewUrl.d.ts.map +1 -1
- package/dist/components/AttachmentsGalleryModal/styles.module.css.js +9 -9
- package/dist/components/AttachmentsPreview/AttachmentsPreview.d.ts.map +1 -1
- package/dist/components/AttachmentsPreview/AttachmentsPreview.js +114 -88
- package/dist/components/AttachmentsPreview/AttachmentsPreview.module.css.js +9 -9
- package/dist/components/BouncingLogo/BouncingLogo.d.ts +6 -2
- package/dist/components/BouncingLogo/BouncingLogo.d.ts.map +1 -1
- package/dist/components/BouncingLogo/BouncingLogo.js +13 -14
- package/dist/components/BouncingLogo/BouncingLogo.module.css.js +12 -10
- package/dist/components/ColorPicker/ColorPicker.d.ts +2 -0
- package/dist/components/ColorPicker/ColorPicker.d.ts.map +1 -1
- package/dist/components/ColorPicker/ColorPicker.js +66 -59
- package/dist/components/CommentComposer/CommentEditorHotkeys.js +1 -1
- package/dist/components/CommunitiesDialog/styles.module.css.js +1 -1
- package/dist/components/Copyright/index.d.ts.map +1 -1
- package/dist/components/Copyright/index.js +6 -6
- package/dist/components/EmojiPicker/EmojiPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPanel.js +14 -14
- package/dist/components/EmojiPicker/EmojiPicker.d.ts.map +1 -1
- package/dist/components/EmojiPicker/EmojiPicker.js +87 -95
- package/dist/components/EmojiPicker/IconsPanel.d.ts.map +1 -1
- package/dist/components/EmojiPicker/IconsPanel.js +37 -38
- package/dist/components/EmojiPicker/utils.d.ts +11 -0
- package/dist/components/EmojiPicker/utils.d.ts.map +1 -0
- package/dist/components/EmojiPicker/utils.js +46 -0
- package/dist/components/EntityIcon.d.ts +5 -2
- package/dist/components/EntityIcon.d.ts.map +1 -1
- package/dist/components/EntityIcon.js +44 -46
- package/dist/components/FilePicker/FilePicker.d.ts.map +1 -1
- package/dist/components/FilePicker/FilePicker.js +58 -59
- package/dist/components/FilePicker/types.d.ts +1 -1
- package/dist/components/FilePicker/types.d.ts.map +1 -1
- package/dist/components/FormViewer/FormViewer.module.css.js +18 -18
- package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceCard.d.ts +4 -2
- package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceCard.d.ts.map +1 -1
- package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceCard.js +51 -26
- package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceField.d.ts.map +1 -1
- package/dist/components/FormViewer/components/fields/ChoiceField/PictureChoiceField.js +25 -23
- package/dist/components/FormViewer/components/fields/DragOptions/DragOptions.module.css.js +1 -1
- package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.d.ts +5 -2
- package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.d.ts.map +1 -1
- package/dist/components/FormViewer/components/fields/SelectableCard/PictureSelectableCard.js +105 -96
- package/dist/components/FormViewer/components/fields/SliderField.d.ts.map +1 -1
- package/dist/components/FormViewer/components/fields/SliderField.js +19 -18
- package/dist/components/FormViewer/components/fields/UploadField/UploadField.d.ts.map +1 -1
- package/dist/components/FormViewer/components/fields/UploadField/UploadFile/UploadFile.module.css.js +1 -1
- package/dist/components/FormViewer/helpers/cssScoping.d.ts.map +1 -1
- package/dist/components/FormViewer/helpers/staticClasses.d.ts.map +1 -1
- package/dist/components/FormViewer/store/formStore.d.ts +10 -3
- package/dist/components/FormViewer/store/formStore.d.ts.map +1 -1
- package/dist/components/LanguagePicker/LanguagePicker.js +13 -13
- package/dist/components/Loaders/styles.module.css.js +1 -1
- package/dist/components/NavMenu/NavMenu.d.ts +4 -1
- package/dist/components/NavMenu/NavMenu.d.ts.map +1 -1
- package/dist/components/NavMenu/NavMenu.js +96 -77
- package/dist/components/NavMenu/NavMenu.module.css.js +10 -10
- package/dist/components/NavMenu/components/DnDItem.d.ts +2 -1
- package/dist/components/NavMenu/components/DnDItem.d.ts.map +1 -1
- package/dist/components/NavMenu/components/DnDItem.js +32 -30
- package/dist/components/NavMenu/components/DnDProvider.d.ts.map +1 -1
- package/dist/components/NavMenu/components/DnDProvider.js +28 -26
- package/dist/components/NavMenu/components/DraggableOverlay.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuItem.d.ts +1 -1
- package/dist/components/NavMenu/components/NavMenuItem.d.ts.map +1 -1
- package/dist/components/NavMenu/components/NavMenuItem.js +108 -94
- package/dist/components/NavMenu/store.d.ts +1 -0
- package/dist/components/NavMenu/store.d.ts.map +1 -1
- 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/NoData/NoData.d.ts +32 -26
- package/dist/components/NoData/NoData.d.ts.map +1 -1
- package/dist/components/NoData/NoData.js +73 -73
- package/dist/components/OnBoarding/ProjectBoard.js +17 -17
- package/dist/components/OnBoarding/steps/AddTasks/AddTasksNav.js +7 -7
- package/dist/components/OnBoarding/steps/AddTasks/TasksListBoard.d.ts.map +1 -1
- package/dist/components/OnBoarding/steps/AddTasks/TasksListBoard.js +9 -9
- package/dist/components/OnBoarding/steps/CreateFirstProject.js +5 -5
- package/dist/components/OnBoarding/steps/DefineStatuses/DefineStatusesNav.js +7 -7
- package/dist/components/OnBoarding/steps/DefineStatuses/StatusesListBoard.js +6 -6
- package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsBoard.d.ts.map +1 -1
- package/dist/components/OnBoarding/steps/DifferentLayouts/DifferentLayoutsNav.js +10 -10
- package/dist/components/OnBoarding/steps/DifferentLayouts/KanbanLayout.js +5 -5
- package/dist/components/OnBoarding/steps/InviteUsers/BoardModal.js +10 -10
- package/dist/components/OnBoarding/steps/InviteUsers/InviteUsers.d.ts.map +1 -1
- package/dist/components/OnBoarding/steps/SelectCategory/CategorySelect.d.ts.map +1 -1
- package/dist/components/OnBoarding/steps/SelectCategory/CategorySelect.js +8 -8
- package/dist/components/OnBoarding/steps/SelectCategory/SelectCategoryNav.js +5 -5
- package/dist/components/OnBoarding/steps/StartedStep.js +5 -5
- package/dist/components/PaymentSuccess/PaymentSuccess.d.ts.map +1 -1
- package/dist/components/PaymentSuccess/PaymentSuccess.js +9 -9
- package/dist/components/SearchFilters/components/DateFilter.js +19 -19
- package/dist/components/SearchFilters/components/SearchHelp.d.ts.map +1 -1
- package/dist/components/SearchFilters/components/SearchHelp.js +7 -7
- package/dist/components/SortableList/SortableList.d.ts.map +1 -1
- package/dist/components/SortableList/components/SortableItem/SortableItem.d.ts.map +1 -1
- package/dist/components/SortableList/components/SortableItem/SortableItem.js +1 -9
- package/dist/components/SortableList/components/SortableItem/index.d.ts +1 -1
- package/dist/components/SortableList/components/SortableItem/index.d.ts.map +1 -1
- package/dist/components/StorageUsageEntityList/StorageEntityItem.d.ts +2 -6
- package/dist/components/StorageUsageEntityList/StorageEntityItem.d.ts.map +1 -1
- package/dist/components/StorageUsageEntityList/StorageEntityItem.js +19 -59
- package/dist/components/StorageUsageEntityList/StorageUsageEntityList.d.ts +1 -1
- package/dist/components/StorageUsageEntityList/StorageUsageEntityList.d.ts.map +1 -1
- package/dist/components/StorageUsageEntityList/StorageUsageEntityList.js +6 -24
- package/dist/components/StorageUsageProgress/StorageUsageProgress.module.css.js +7 -0
- package/dist/components/StorageUsageProgress/index.d.ts +2 -2
- package/dist/components/StorageUsageProgress/index.d.ts.map +1 -1
- package/dist/components/StorageUsageProgress/index.js +73 -40
- package/dist/components/ThemeIndicator/index.d.ts.map +1 -1
- package/dist/components/ThemeIndicator/index.js +4 -4
- package/dist/components/UserAvatar/index.js +14 -14
- package/dist/components/WorkspaceMenu/WorkspaceMenu.d.ts.map +1 -1
- package/dist/components/WorkspaceMenu/WorkspaceMenu.js +40 -37
- package/dist/components/modals/RemoveConfirmModal.d.ts.map +1 -1
- package/dist/components/modals/RemoveConfirmModal.js +31 -24
- package/dist/components/table/export.d.ts.map +1 -1
- package/dist/components/table/hooks/useSaveRowCount.d.ts.map +1 -1
- package/dist/components/table/hooks/useSaveRowCount.js +4 -4
- package/dist/components/table/hooks/useSorting.d.ts.map +1 -1
- package/dist/components/table/hooks/useSorting.js +3 -1
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +8 -1
- package/dist/helpers/getFileIcons.js +12 -12
- package/dist/helpers/isAppMode.d.ts +1 -1
- package/dist/helpers/isAppMode.d.ts.map +1 -1
- package/dist/helpers/validateAliasFormat.d.ts +2 -0
- package/dist/helpers/validateAliasFormat.d.ts.map +1 -0
- package/dist/helpers/validateAliasFormat.js +4 -0
- package/dist/hooks/useOutsideClick.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +328 -329
- package/dist/lang/locales/ui_en.json.js +1 -1
- package/dist/lang/locales/ui_es.json.js +9 -9
- package/dist/lang/locales/ui_ru.json.js +9 -9
- package/dist/store/trashModal.d.ts +8 -0
- package/dist/store/trashModal.d.ts.map +1 -0
- package/dist/store/trashModal.js +13 -0
- package/dist/types/storageCategories.d.ts +4 -0
- package/dist/types/storageCategories.d.ts.map +1 -0
- package/dist/types/storageCategories.js +21 -0
- package/dist/utils/formatStorage.d.ts +1 -1
- package/dist/utils/formatStorage.d.ts.map +1 -1
- package/dist/utils/formatStorage.js +3 -3
- package/docs/README.md +17 -4
- package/package.json +1 -1
- package/dist/assets/fileTypes/archives.svg.js +0 -5
- package/dist/assets/fileTypes/audio.svg.js +0 -5
- package/dist/assets/fileTypes/code.svg.js +0 -5
- package/dist/assets/fileTypes/documentsStorage.svg.js +0 -5
- package/dist/assets/fileTypes/images.svg.js +0 -5
- package/dist/assets/fileTypes/other.svg.js +0 -5
- package/dist/assets/fileTypes/videos.svg.js +0 -5
- package/dist/components/AppContainer/hooks/useSetAppContainerLayout.d.ts +0 -3
- package/dist/components/AppContainer/hooks/useSetAppContainerLayout.d.ts.map +0 -1
- package/dist/components/AppContainer/hooks/useSetAppContainerLayout.js +0 -10
- package/dist/components/EmojiPicker/getIconsList.d.ts +0 -8
- package/dist/components/EmojiPicker/getIconsList.d.ts.map +0 -1
- package/dist/components/EmojiPicker/getIconsList.js +0 -32
- package/dist/components/EmojiPicker/getRandomIcon.d.ts +0 -2
- package/dist/components/EmojiPicker/getRandomIcon.d.ts.map +0 -1
- package/dist/components/EmojiPicker/getRandomIcon.js +0 -10
- package/dist/components/NoData/NoData.module.css.js +0 -7
- package/dist/components/PaymentCancel/PaymentCancel.d.ts +0 -2
- package/dist/components/PaymentCancel/PaymentCancel.d.ts.map +0 -1
- package/dist/components/PaymentCancel/PaymentCancel.js +0 -41
- package/dist/components/PaymentError/PaymentError.d.ts +0 -2
- package/dist/components/PaymentError/PaymentError.d.ts.map +0 -1
- package/dist/components/PaymentError/PaymentError.js +0 -41
- package/dist/node_modules/@layers-app/layers/src/api/common.js +0 -41
- package/dist/store/accessOptionsControl.d.ts +0 -17
- package/dist/store/accessOptionsControl.d.ts.map +0 -1
- package/dist/store/accessOptionsControl.js +0 -18
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
const o = "
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
const o = "_wrapper_1y9p0_1", s = "_logo_1y9p0_8", p = "_desktop_1y9p0_23", _ = "_shadow_1y9p0_37", t = "_desktopShadow_1y9p0_50", d = {
|
|
2
|
+
wrapper: o,
|
|
3
|
+
logo: s,
|
|
4
|
+
desktop: p,
|
|
5
|
+
shadow: _,
|
|
6
|
+
desktopShadow: t
|
|
6
7
|
};
|
|
7
8
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
d as default,
|
|
10
|
+
p as desktop,
|
|
11
|
+
t as desktopShadow,
|
|
12
|
+
s as logo,
|
|
13
|
+
_ as shadow,
|
|
14
|
+
o as wrapper
|
|
13
15
|
};
|
|
@@ -3,6 +3,7 @@ interface ColorCircleProps extends Omit<ColorSwatchProps, 'color'>, Omit<React.C
|
|
|
3
3
|
value?: string | null;
|
|
4
4
|
isActive?: boolean;
|
|
5
5
|
swatchShape?: 'circle' | 'square';
|
|
6
|
+
withTick?: boolean;
|
|
6
7
|
}
|
|
7
8
|
export declare const ColorCircle: import("react").ForwardRefExoticComponent<ColorCircleProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
8
9
|
export declare const ColorPicker: import("react").ForwardRefExoticComponent<{
|
|
@@ -11,6 +12,7 @@ export declare const ColorPicker: import("react").ForwardRefExoticComponent<{
|
|
|
11
12
|
allowCustomColor?: boolean;
|
|
12
13
|
colors?: string[];
|
|
13
14
|
swatchShape?: "circle" | "square";
|
|
15
|
+
withTick?: boolean;
|
|
14
16
|
fullWidth?: boolean;
|
|
15
17
|
swatchSize?: number;
|
|
16
18
|
} & Omit<FlexProps, "onChange"> & import("react").RefAttributes<HTMLDivElement>> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ColorPicker.d.ts","sourceRoot":"","sources":["../../../src/components/ColorPicker/ColorPicker.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ColorPicker.d.ts","sourceRoot":"","sources":["../../../src/components/ColorPicker/ColorPicker.tsx"],"names":[],"mappings":"AAIA,OAAO,EAIL,gBAAgB,EAEhB,SAAS,EAKV,MAAM,eAAe,CAAC;AA+GvB,UAAU,gBACR,SAAQ,IAAI,CAAC,gBAAgB,EAAE,OAAO,CAAC,EACrC,IAAI,CACF,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,EACrC,MAAM,IAAI,CAAC,gBAAgB,EAAE,OAAO,CAAC,CACtC;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,WAAW,6GA2CvB,CAAC;AASF,eAAO,MAAM,WAAW;YAxKd,MAAM,GAAG,IAAI;eACV,CAAC,CAAC,EAAE,MAAM,KAAK,IAAI;uBACX,OAAO;aACjB,MAAM,EAAE;kBACH,QAAQ,GAAG,QAAQ;eACtB,OAAO;gBACN,OAAO;iBACN,MAAM;;;CAmKnB,CAAC"}
|
|
@@ -1,27 +1,30 @@
|
|
|
1
|
-
import { jsx as r, jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import R from "
|
|
6
|
-
import {
|
|
7
|
-
|
|
1
|
+
import { jsx as r, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as C, useState as u } from "react";
|
|
3
|
+
import { Tick02Icon as P } from "@hugeicons/core-free-icons";
|
|
4
|
+
import { HugeiconsIcon as T } from "@hugeicons/react";
|
|
5
|
+
import { useMantineTheme as x, Flex as p, Tooltip as j, ColorSwatch as v, getThemeColor as f, parseThemeColor as E, ColorInput as R, ActionIcon as h } from "@mantine/core";
|
|
6
|
+
import { IconPalette as A, IconPencil as D } from "@tabler/icons-react";
|
|
7
|
+
import F from "styled-components";
|
|
8
|
+
import { DEFAULT_VALUES as a } from "../../constants.js";
|
|
9
|
+
const H = C(
|
|
8
10
|
({
|
|
9
11
|
value: e,
|
|
10
|
-
onChange:
|
|
12
|
+
onChange: o,
|
|
11
13
|
allowCustomColor: i,
|
|
12
14
|
colors: l,
|
|
13
15
|
swatchShape: s = "circle",
|
|
16
|
+
withTick: c = !1,
|
|
14
17
|
fullWidth: n = !1,
|
|
15
18
|
swatchSize: b = 30,
|
|
16
|
-
...
|
|
17
|
-
},
|
|
18
|
-
const
|
|
19
|
-
color: e ||
|
|
20
|
-
theme:
|
|
21
|
-
}), [O, k] =
|
|
22
|
-
return
|
|
19
|
+
...w
|
|
20
|
+
}, y) => {
|
|
21
|
+
const S = x(), I = E({
|
|
22
|
+
color: e || a.COLORS[0],
|
|
23
|
+
theme: S
|
|
24
|
+
}), [O, k] = u(I.value), [z, d] = u(!1);
|
|
25
|
+
return z ? /* @__PURE__ */ m(p, { align: "center", mih: 30, children: [
|
|
23
26
|
/* @__PURE__ */ r(
|
|
24
|
-
|
|
27
|
+
R,
|
|
25
28
|
{
|
|
26
29
|
w: "100%",
|
|
27
30
|
popoverProps: {
|
|
@@ -33,7 +36,7 @@ const T = f(
|
|
|
33
36
|
size: "xs",
|
|
34
37
|
value: O,
|
|
35
38
|
onChange: k,
|
|
36
|
-
onChangeEnd:
|
|
39
|
+
onChangeEnd: o,
|
|
37
40
|
placeholder: "Select custom color"
|
|
38
41
|
}
|
|
39
42
|
),
|
|
@@ -43,31 +46,32 @@ const T = f(
|
|
|
43
46
|
radius: "xl",
|
|
44
47
|
variant: "default",
|
|
45
48
|
color: "gray",
|
|
46
|
-
onClick: () =>
|
|
49
|
+
onClick: () => d(!1),
|
|
47
50
|
children: /* @__PURE__ */ r(A, { size: 16 })
|
|
48
51
|
}
|
|
49
52
|
)
|
|
50
|
-
] }, 1) : /* @__PURE__ */
|
|
51
|
-
|
|
53
|
+
] }, 1) : /* @__PURE__ */ m(
|
|
54
|
+
p,
|
|
52
55
|
{
|
|
53
|
-
ref:
|
|
54
|
-
...
|
|
56
|
+
ref: y,
|
|
57
|
+
...w,
|
|
55
58
|
justify: n ? "space-between" : "flex-start",
|
|
56
59
|
align: "center",
|
|
57
60
|
mih: 32,
|
|
58
61
|
children: [
|
|
59
|
-
(l ||
|
|
60
|
-
const
|
|
62
|
+
(l || a.COLORS).map((t) => {
|
|
63
|
+
const L = t === e || !e && t === a.COLORS[0];
|
|
61
64
|
return /* @__PURE__ */ r(
|
|
62
|
-
|
|
65
|
+
M,
|
|
63
66
|
{
|
|
64
|
-
value:
|
|
65
|
-
isActive:
|
|
67
|
+
value: t,
|
|
68
|
+
isActive: L,
|
|
66
69
|
size: b - 4,
|
|
67
70
|
swatchShape: s,
|
|
68
|
-
|
|
71
|
+
withTick: c,
|
|
72
|
+
onClick: () => o?.(t)
|
|
69
73
|
},
|
|
70
|
-
|
|
74
|
+
t
|
|
71
75
|
);
|
|
72
76
|
}),
|
|
73
77
|
i && /* @__PURE__ */ r(
|
|
@@ -76,8 +80,8 @@ const T = f(
|
|
|
76
80
|
radius: "xl",
|
|
77
81
|
variant: "default",
|
|
78
82
|
color: "gray",
|
|
79
|
-
onClick: () =>
|
|
80
|
-
children: /* @__PURE__ */ r(
|
|
83
|
+
onClick: () => d(!0),
|
|
84
|
+
children: /* @__PURE__ */ r(D, { size: 16 })
|
|
81
85
|
}
|
|
82
86
|
)
|
|
83
87
|
]
|
|
@@ -85,47 +89,50 @@ const T = f(
|
|
|
85
89
|
2
|
|
86
90
|
);
|
|
87
91
|
}
|
|
88
|
-
),
|
|
89
|
-
({ value: e, isActive:
|
|
90
|
-
const n =
|
|
91
|
-
return /* @__PURE__ */ r(
|
|
92
|
-
|
|
92
|
+
), g = C(
|
|
93
|
+
({ value: e, isActive: o, swatchShape: i, withTick: l, ...s }, c) => {
|
|
94
|
+
const n = x();
|
|
95
|
+
return /* @__PURE__ */ r(p, { miw: 32, justify: "center", align: "center", children: /* @__PURE__ */ r(j, { label: e || "", withArrow: !0, children: /* @__PURE__ */ m(
|
|
96
|
+
v,
|
|
93
97
|
{
|
|
94
|
-
ref:
|
|
95
|
-
color: e ?
|
|
98
|
+
ref: c,
|
|
99
|
+
color: e ? f(e, n) : "",
|
|
96
100
|
radius: i === "circle" ? "xl" : "sm",
|
|
97
101
|
style: {
|
|
98
102
|
cursor: "pointer",
|
|
99
103
|
color: "var(--mantine-color-white)"
|
|
100
104
|
},
|
|
101
|
-
...
|
|
102
|
-
children:
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
105
|
+
...s,
|
|
106
|
+
children: [
|
|
107
|
+
o && /* @__PURE__ */ r(
|
|
108
|
+
"span",
|
|
109
|
+
{
|
|
110
|
+
style: {
|
|
111
|
+
position: "absolute",
|
|
112
|
+
top: -4,
|
|
113
|
+
left: -4,
|
|
114
|
+
right: -4,
|
|
115
|
+
bottom: -4,
|
|
116
|
+
border: `2px solid ${e ? f(e, n) : ""}`,
|
|
117
|
+
borderRadius: i === "circle" ? "var(--mantine-radius-xl)" : "var(--mantine-radius-sm)",
|
|
118
|
+
pointerEvents: "none",
|
|
119
|
+
boxSizing: "border-box"
|
|
120
|
+
}
|
|
115
121
|
}
|
|
116
|
-
|
|
117
|
-
|
|
122
|
+
),
|
|
123
|
+
l && o && /* @__PURE__ */ r(T, { size: 20, icon: P })
|
|
124
|
+
]
|
|
118
125
|
}
|
|
119
126
|
) }) });
|
|
120
127
|
}
|
|
121
|
-
),
|
|
128
|
+
), M = F(g)`
|
|
122
129
|
.mantine-ColorSwatch-colorOverlay {
|
|
123
130
|
border-radius: ${({ swatchShape: e }) => e === "square" ? "3px" : "50%"};
|
|
124
131
|
}
|
|
125
|
-
`,
|
|
126
|
-
ColorCircle:
|
|
132
|
+
`, K = Object.assign(H, {
|
|
133
|
+
ColorCircle: g
|
|
127
134
|
});
|
|
128
135
|
export {
|
|
129
|
-
|
|
130
|
-
|
|
136
|
+
g as ColorCircle,
|
|
137
|
+
K as ColorPicker
|
|
131
138
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Copyright/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Copyright/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAU,WAAW,EAAE,MAAM,eAAe,CAAC;AAQpD,UAAU,cAAc;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,GAAG,WAAW,CAwB5D,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import a from "
|
|
2
|
+
import { Button as n } from "@mantine/core";
|
|
3
|
+
import p from "clsx";
|
|
4
|
+
import { DEFAULT_FONT_FAMILY as a } from "../../constants.js";
|
|
5
5
|
import { Logotype as l } from "../Logotype.js";
|
|
6
6
|
import f from "./Copyright.module.css.js";
|
|
7
7
|
const F = ({
|
|
@@ -11,7 +11,7 @@ const F = ({
|
|
|
11
11
|
size: i = "md",
|
|
12
12
|
...m
|
|
13
13
|
}) => /* @__PURE__ */ r(
|
|
14
|
-
|
|
14
|
+
n,
|
|
15
15
|
{
|
|
16
16
|
component: "a",
|
|
17
17
|
href: "https://layers.md",
|
|
@@ -21,8 +21,8 @@ const F = ({
|
|
|
21
21
|
variant: "filled",
|
|
22
22
|
size: i,
|
|
23
23
|
color: o,
|
|
24
|
-
className:
|
|
25
|
-
style: { fontFamily:
|
|
24
|
+
className: p(f.brandingWrapper, e),
|
|
25
|
+
style: { fontFamily: a },
|
|
26
26
|
...m,
|
|
27
27
|
children: t
|
|
28
28
|
}
|
|
@@ -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;
|
|
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"}
|
|
@@ -11,8 +11,9 @@ 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
13
|
import { frequentEmoji as me } from "./constants.js";
|
|
14
|
+
import { getEmojis as pe } from "./utils.js";
|
|
14
15
|
import T from "./EmojiPicker.module.css.js";
|
|
15
|
-
const
|
|
16
|
+
const he = [
|
|
16
17
|
{ i: "frequent", icon: /* @__PURE__ */ t(c, { size: 20, icon: W }) },
|
|
17
18
|
{ i: "people", icon: /* @__PURE__ */ t(c, { size: 20, icon: X }) },
|
|
18
19
|
{
|
|
@@ -25,25 +26,25 @@ const pe = [
|
|
|
25
26
|
{ i: "objects", icon: /* @__PURE__ */ t(c, { size: 20, icon: te }) },
|
|
26
27
|
{ i: "symbols", icon: /* @__PURE__ */ t(c, { size: 20, icon: oe }) },
|
|
27
28
|
{ i: "flags", icon: /* @__PURE__ */ t(c, { size: 20, icon: re }) }
|
|
28
|
-
],
|
|
29
|
+
], Re = ({
|
|
29
30
|
locales: m,
|
|
30
31
|
onChange: C,
|
|
31
32
|
onClose: M,
|
|
32
33
|
setRandomIcon: P,
|
|
33
34
|
querySearch: p
|
|
34
35
|
}) => {
|
|
35
|
-
const [b, k] = u("frequent"), I = d("frequent"), h = d({}), z = d(null), [w, S] = u(""), [Q, O] = u([]), [a, B] = u(null), [
|
|
36
|
+
const [b, k] = u("frequent"), I = d("frequent"), h = d({}), z = 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
37
|
R(() => {
|
|
37
38
|
if (typeof p == "string") {
|
|
38
39
|
const e = p.slice(1);
|
|
39
40
|
if (S(e), a) {
|
|
40
41
|
const o = a.search(e);
|
|
41
|
-
|
|
42
|
+
j(o.map((r) => r.item.e));
|
|
42
43
|
}
|
|
43
44
|
}
|
|
44
45
|
}, [p, a]), R(() => {
|
|
45
46
|
(async () => {
|
|
46
|
-
const o =
|
|
47
|
+
const o = await pe(), r = o.flatMap(
|
|
47
48
|
(i) => i.e.map((n) => ({
|
|
48
49
|
e: n.e,
|
|
49
50
|
n: n.n,
|
|
@@ -75,11 +76,11 @@ const pe = [
|
|
|
75
76
|
const o = e.currentTarget.value;
|
|
76
77
|
if (S(o), a) {
|
|
77
78
|
const r = a.search(o);
|
|
78
|
-
|
|
79
|
+
j(r.map((s) => s.item.e));
|
|
79
80
|
}
|
|
80
81
|
},
|
|
81
82
|
[a]
|
|
82
|
-
),
|
|
83
|
+
), D = se((e) => {
|
|
83
84
|
const o = e.currentTarget.getAttribute("data-icon");
|
|
84
85
|
o && (C?.(
|
|
85
86
|
de.stringify({
|
|
@@ -174,7 +175,7 @@ const pe = [
|
|
|
174
175
|
},
|
|
175
176
|
ref: z,
|
|
176
177
|
onScroll: $,
|
|
177
|
-
children: w ? /* @__PURE__ */ y(v, { flex: 1,
|
|
178
|
+
children: w ? /* @__PURE__ */ y(v, { flex: 1, align: "stretch", children: [
|
|
178
179
|
!J && /* @__PURE__ */ t(
|
|
179
180
|
F,
|
|
180
181
|
{
|
|
@@ -186,19 +187,18 @@ const pe = [
|
|
|
186
187
|
children: /* @__PURE__ */ t(q, { fz: "sm", c: "dimmed", children: m?.searchResults })
|
|
187
188
|
}
|
|
188
189
|
),
|
|
189
|
-
|
|
190
|
+
E.length ? /* @__PURE__ */ t(N, { cols: 10, spacing: 0, children: E.map((e) => /* @__PURE__ */ t(
|
|
190
191
|
"div",
|
|
191
192
|
{
|
|
192
193
|
className: T.item,
|
|
193
194
|
"data-icon": e,
|
|
194
|
-
onClick:
|
|
195
|
+
onClick: D,
|
|
195
196
|
children: e
|
|
196
197
|
},
|
|
197
198
|
e
|
|
198
199
|
)) }) : /* @__PURE__ */ t(x, { flex: 1, justify: "center", align: "stretch", children: /* @__PURE__ */ t(
|
|
199
200
|
ue,
|
|
200
201
|
{
|
|
201
|
-
showDots: !1,
|
|
202
202
|
size: 100,
|
|
203
203
|
description: m?.searchNoResults,
|
|
204
204
|
descriptionProps: {
|
|
@@ -230,7 +230,7 @@ const pe = [
|
|
|
230
230
|
{
|
|
231
231
|
className: T.item,
|
|
232
232
|
"data-icon": o.e,
|
|
233
|
-
onClick:
|
|
233
|
+
onClick: D,
|
|
234
234
|
children: o.e
|
|
235
235
|
},
|
|
236
236
|
o.e
|
|
@@ -250,7 +250,7 @@ const pe = [
|
|
|
250
250
|
justify: "space-between",
|
|
251
251
|
h: "56px",
|
|
252
252
|
px: 8,
|
|
253
|
-
children:
|
|
253
|
+
children: he.map((e) => /* @__PURE__ */ t(
|
|
254
254
|
A,
|
|
255
255
|
{
|
|
256
256
|
variant: b === e.i ? "light" : "subtle",
|
|
@@ -268,5 +268,5 @@ const pe = [
|
|
|
268
268
|
] });
|
|
269
269
|
};
|
|
270
270
|
export {
|
|
271
|
-
|
|
271
|
+
Re as EmojiPanel
|
|
272
272
|
};
|
|
@@ -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;
|
|
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;CACpB,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,yNAkBzB,iBAAiB,CAAC,gBAAgB,CAAC,4CA+MrC,CAAC"}
|